10 Commits

Author SHA1 Message Date
Material Web Team
3f6070ea31 chore(testing): Adds submitForm to testing harness. This submits the element's associated form if one exists and returns the submitted FormData object.
* updates form_controller tests.
* updates switch tests.
* adds form submission tests to text field.

PiperOrigin-RevId: 495992202
2022-12-16 17:01:56 -08:00
Material Web Team
4e3054bab3 feat(controller): add label activation support to FormController
Extends `FormController` to provide label activation via form associated custom elements via a shim where not supported (currently just Safari).

Performing label activation is the responsibility of form associated elements.

Helpers are provided to facilitate this, including `isActivationClick` and `dispatchActivationClick`. Note, any element that should perform an action via a click, could use these helpers to help distinguish external "activation" clicks.

PiperOrigin-RevId: 495689270
2022-12-15 13:56:49 -08:00
Alexander Marks
933cb14ac8 chore: Comment-out jasmine import statements for external compatibility
PiperOrigin-RevId: 491970248
2022-11-30 11:18:44 -08:00
Elizabeth Mitchell
73ca8ae0eb chore: use relative paths
PiperOrigin-RevId: 481941267
2022-10-18 09:28:59 -07:00
Elizabeth Mitchell
c4523aef64 chore(testing): add jasmine clock support
PiperOrigin-RevId: 473842842
2022-09-12 14:18:44 -07:00
Daniel Freedman
5dd43faffb feat(icon-button): Implement isRTL helper library, and refactor icon-button to use it.
PiperOrigin-RevId: 471352106
2022-08-31 14:13:05 -07:00
Alexander Marks
30c95aeee1 chore: add ".js" extensions to import statements.
In particular, this allows external build tools like Rollup and @web/dev-server to understand imports of Lit, which is configured to require the ".js" extension via its export conditions (so that Lit import maps can remain minimal).

PiperOrigin-RevId: 469772992
2022-08-24 11:01:21 -07:00
Elizabeth Mitchell
65463164c9 chore: various build fixes
PiperOrigin-RevId: 467245676
2022-08-12 10:51:27 -07:00
Elizabeth Mitchell
2a0d563338 feat(controller): add stringConverter for empty reflecting attributes
PiperOrigin-RevId: 464124340
2022-07-29 11:43:40 -07:00
Material Web Team
41d41cc278 chore: update repository for Material 3
PiperOrigin-RevId: 455635969
2022-06-17 16:42:04 +00:00