Wykres commitów

109 Commity (b281c5bbc1951ff98129c807c2c5352bdb119583)

Autor SHA1 Wiadomość Data
Cory LaViska b281c5bbc1 use Set instead of WeakMap 2023-02-07 13:56:02 -05:00
Cory LaViska 776ab2c715 add getForm() method 2023-02-07 09:01:32 -05:00
Cory LaViska a539058253 validate even with novalidate; fixes #1164 2023-02-06 17:18:01 -05:00
Cory LaViska 039ab175c3 add comment 2023-02-06 10:46:37 -05:00
dhellgartner 38a9e98d9b
Tab group tests (#1128)
* remove duplicate test

* Add tests for sl-tab-group -- initial round of tests

* use individual fixtures for each test

* extract mocks + utility functions in external files

* remove unnecessary internals of intersection observer from the mock

* added first test on scroll buttons

* add scrolling tests

* remove resize observer mock

Resize observer is triggered but waiting for element
to be updated is not enough. You need to free the main thread
with the test for some time

* Also removed intersection observer mock

By waiting long enough for the things to happen automatically

* Fix problems with resize observer

These problems appeared after npm ci but (according
to the sources linked in the comments) unproblematic

* Handle merge request comments

* replace custom wait function with corresponding function
 from openwc/testing
* Extracted waitForScrollingToEnd and isElementVisibleFromScrolling into
dedicated files to be reused
* Improve queryByTestId --> make it usable for more complex values
* Add js docs

* run lint fix

* Added tests for selecting a tab by click

* added further tests for tab group selection

* use Promise<void> instead of Promise<any>

to avoid eslint errors

---------

Co-authored-by: Dominikus Hellgartner <dominikus.hellgartner@gmail.com>
2023-01-27 09:55:28 -05:00
Cory LaViska 511182b41b add padding to offset scrollbar; fixes #1132 2023-01-17 11:56:16 -05:00
Cory LaViska 3c2f5ec48e sort this, eslint 2023-01-13 15:43:55 -05:00
Cory LaViska aa65077b12 add getFormControls() method 2023-01-13 14:06:58 -05:00
Cory LaViska 6e26daf804 add form attribute; fixes #1130 2023-01-13 12:34:33 -05:00
Cory LaViska 0df27cf730 never return -0 2023-01-10 16:14:30 -05:00
Cory LaViska e2d2f5d670 rename FormSubmitController; remove this.invalid 2023-01-10 13:24:06 -05:00
Cory LaViska 8056379fdd support multiple properties in watch decorator 2023-01-09 16:07:59 -05:00
Cory LaViska 57064aef4d remove void 2023-01-03 13:36:12 -05:00
Cory LaViska 388a4f85a4 Revert "Remove the need to bind member methods in the connectedCallback (#1081)"
This reverts commit 5f8556b1b2.
2023-01-03 10:19:25 -05:00
Jeremiah Hoyet 5f8556b1b2
Remove the need to bind member methods in the connectedCallback (#1081)
* Remove the need to bind member methods in the connectedCallback

* Remove console.log
2023-01-03 10:15:12 -05:00
Cory LaViska 70585e1d2a finishing touches 2022-12-28 15:31:42 -05:00
Cory LaViska 5bff912162 loosen up that type 2022-12-20 13:00:13 -05:00
Cory LaViska 9f79445292 improve scroll on open 2022-12-20 10:31:55 -05:00
Cory LaViska 3675787ddd remove polyfill 2022-12-13 07:24:06 -05:00
Cory LaViska c6df057e15 fixes #917 2022-12-07 17:40:46 -05:00
Cory LaViska 3877351fdc fix wrong values for buttons in form submission 2022-12-06 14:04:34 -05:00
Cory LaViska 7885572ebd jsdoc exported functions 2022-12-06 11:48:57 -05:00
Bünyamin Eskiocak bc6a813c46
Added `formenctype` to `<sl-button>` (#1009)
* added formenctype to sl-button

* updated changelog

Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
2022-11-21 12:37:54 -05:00
Cory LaViska daebd08475 add validation states to all form controls; closes #1011 2022-11-18 09:56:05 -05:00
Cory LaViska 5eeb98d39d fixes #925 2022-11-09 11:34:50 -05:00
Cory LaViska 69ff4f0bbc refactor emit into ShoelaceElement 2022-09-16 16:21:40 -04:00
Cory LaViska 09224041b8 revert fix 2022-08-23 10:42:01 -04:00
Cory LaViska 326816e7b7 fixes #867 2022-08-23 09:00:03 -04:00
Cory LaViska c8f42c5bde fixes #862 2022-08-18 08:43:37 -04:00
Cory LaViska 32f24a881e make dir/lang reactive everywhere 2022-08-17 11:37:37 -04:00
Cory LaViska 389b78f748 remove :focus-visible shim 2022-07-07 09:43:27 -04:00
Alessandro b2cf3a5505
feat(form): add reset functionality (#799)
* feat(form): add reset functionality

* feat(interal): add defaultValue decorator

* feat: add defaultValue and defaultChecked

* chore: implement unit tests

* chore: remove leftover
2022-06-28 17:59:52 -04:00
Pavel Dymkov 012206e4d8 Algorithm fix: fill "allElements" with only unique elements to improve performance. 2022-06-24 15:37:38 +03:00
Cory LaViska ca876b291a revert formdata event detection 2022-06-10 17:22:34 -04:00
Cory LaViska c850a7eae1 improve formdata event detection 2022-06-10 16:52:31 -04:00
Cory LaViska ea07346ae6 change weakmap name 2022-06-01 09:27:16 -04:00
Cory LaViska af1e440103 fixes #772 2022-06-01 09:23:06 -04:00
Cory LaViska 79306e0618 use HSB grid for color picker; fixes #762 2022-05-26 17:01:29 -04:00
Cory LaViska 37b172dbfd fixes #758 2022-05-24 10:34:47 -04:00
Cory LaViska 7333760ada ignore polyfill types 2022-05-11 08:17:27 -04:00
Cory LaViska cb0b5feef8 prettier 2022-05-11 08:12:02 -04:00
Jared White d683a76a49
Ensure `FormDataPolyfill` arg is optional (#749)
Fixes #747
2022-05-11 08:08:53 -04:00
Cory LaViska c86ae623cb fixes #732 2022-04-25 08:00:16 -04:00
Cory LaViska fc938ea3eb improve form control listeners 2022-04-11 10:36:16 -04:00
Cory LaViska 7467806969 revert capturing due to inconsistent behavior; #718 2022-04-08 10:25:43 -04:00
Cory LaViska 9f844a8b91 fixes #718 2022-04-08 10:14:59 -04:00
Cory LaViska af4d25ee37 restore desired commits 2022-03-24 08:11:49 -04:00
Cory LaViska 300cbd090f revert path aliases 2022-03-24 08:01:09 -04:00
Cory LaViska e32c15204c Revert recent changes 2022-03-24 07:48:03 -04:00
Cory LaViska 0a5fb5e9e7 refactor radio base class 2022-03-23 17:37:24 -04:00