@m3e/web 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +85 -0
- package/dist/all.js +28231 -0
- package/dist/all.js.map +1 -0
- package/dist/all.min.js +482 -0
- package/dist/all.min.js.map +1 -0
- package/dist/app-bar.js +763 -0
- package/dist/app-bar.js.map +1 -0
- package/dist/app-bar.min.js +40 -0
- package/dist/app-bar.min.js.map +1 -0
- package/dist/autocomplete.js +883 -0
- package/dist/autocomplete.js.map +1 -0
- package/dist/autocomplete.min.js +29 -0
- package/dist/autocomplete.min.js.map +1 -0
- package/dist/avatar.js +416 -0
- package/dist/avatar.js.map +1 -0
- package/dist/avatar.min.js +23 -0
- package/dist/avatar.min.js.map +1 -0
- package/dist/badge.js +583 -0
- package/dist/badge.js.map +1 -0
- package/dist/badge.min.js +29 -0
- package/dist/badge.min.js.map +1 -0
- package/dist/bottom-sheet.js +1193 -0
- package/dist/bottom-sheet.js.map +1 -0
- package/dist/bottom-sheet.min.js +29 -0
- package/dist/bottom-sheet.min.js.map +1 -0
- package/dist/button-group.js +643 -0
- package/dist/button-group.js.map +1 -0
- package/dist/button-group.min.js +44 -0
- package/dist/button-group.min.js.map +1 -0
- package/dist/button.js +1690 -0
- package/dist/button.js.map +1 -0
- package/dist/button.min.js +40 -0
- package/dist/button.min.js.map +1 -0
- package/dist/card.js +821 -0
- package/dist/card.js.map +1 -0
- package/dist/card.min.js +40 -0
- package/dist/card.min.js.map +1 -0
- package/dist/checkbox.js +608 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/checkbox.min.js +40 -0
- package/dist/checkbox.min.js.map +1 -0
- package/dist/chips.js +1761 -0
- package/dist/chips.js.map +1 -0
- package/dist/chips.min.js +46 -0
- package/dist/chips.min.js.map +1 -0
- package/dist/core-a11y.js +1810 -0
- package/dist/core-a11y.js.map +1 -0
- package/dist/core-a11y.min.js +74 -0
- package/dist/core-a11y.min.js.map +1 -0
- package/dist/core-anchoring.js +1747 -0
- package/dist/core-anchoring.js.map +1 -0
- package/dist/core-anchoring.min.js +7 -0
- package/dist/core-anchoring.min.js.map +1 -0
- package/dist/core-bidi.js +105 -0
- package/dist/core-bidi.js.map +1 -0
- package/dist/core-bidi.min.js +16 -0
- package/dist/core-bidi.min.js.map +1 -0
- package/dist/core-layout.js +64 -0
- package/dist/core-layout.js.map +1 -0
- package/dist/core-layout.min.js +15 -0
- package/dist/core-layout.min.js.map +1 -0
- package/dist/core-platform.js +46 -0
- package/dist/core-platform.js.map +1 -0
- package/dist/core-platform.min.js +15 -0
- package/dist/core-platform.min.js.map +1 -0
- package/dist/core.js +5641 -0
- package/dist/core.js.map +1 -0
- package/dist/core.min.js +55 -0
- package/dist/core.min.js.map +1 -0
- package/dist/css-custom-data.json +11892 -0
- package/dist/custom-elements.json +63037 -0
- package/dist/dialog.js +1079 -0
- package/dist/dialog.js.map +1 -0
- package/dist/dialog.min.js +51 -0
- package/dist/dialog.min.js.map +1 -0
- package/dist/divider.js +489 -0
- package/dist/divider.js.map +1 -0
- package/dist/divider.min.js +29 -0
- package/dist/divider.min.js.map +1 -0
- package/dist/drawer-container.js +861 -0
- package/dist/drawer-container.js.map +1 -0
- package/dist/drawer-container.min.js +34 -0
- package/dist/drawer-container.min.js.map +1 -0
- package/dist/expansion-panel.js +878 -0
- package/dist/expansion-panel.js.map +1 -0
- package/dist/expansion-panel.min.js +40 -0
- package/dist/expansion-panel.min.js.map +1 -0
- package/dist/fab-menu.js +850 -0
- package/dist/fab-menu.js.map +1 -0
- package/dist/fab-menu.min.js +40 -0
- package/dist/fab-menu.min.js.map +1 -0
- package/dist/fab.js +1459 -0
- package/dist/fab.js.map +1 -0
- package/dist/fab.min.js +40 -0
- package/dist/fab.min.js.map +1 -0
- package/dist/form-field.js +919 -0
- package/dist/form-field.js.map +1 -0
- package/dist/form-field.min.js +61 -0
- package/dist/form-field.min.js.map +1 -0
- package/dist/heading.js +597 -0
- package/dist/heading.js.map +1 -0
- package/dist/heading.min.js +29 -0
- package/dist/heading.min.js.map +1 -0
- package/dist/html-custom-data.json +2628 -0
- package/dist/icon-button.js +1419 -0
- package/dist/icon-button.js.map +1 -0
- package/dist/icon-button.min.js +40 -0
- package/dist/icon-button.min.js.map +1 -0
- package/dist/icon.js +547 -0
- package/dist/icon.js.map +1 -0
- package/dist/icon.min.js +40 -0
- package/dist/icon.min.js.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/list.js +1840 -0
- package/dist/list.js.map +1 -0
- package/dist/list.min.js +52 -0
- package/dist/list.min.js.map +1 -0
- package/dist/loading-indicator.js +533 -0
- package/dist/loading-indicator.js.map +1 -0
- package/dist/loading-indicator.min.js +40 -0
- package/dist/loading-indicator.min.js.map +1 -0
- package/dist/menu.js +1509 -0
- package/dist/menu.js.map +1 -0
- package/dist/menu.min.js +45 -0
- package/dist/menu.min.js.map +1 -0
- package/dist/nav-bar.js +738 -0
- package/dist/nav-bar.js.map +1 -0
- package/dist/nav-bar.min.js +45 -0
- package/dist/nav-bar.min.js.map +1 -0
- package/dist/nav-menu.js +1498 -0
- package/dist/nav-menu.js.map +1 -0
- package/dist/nav-menu.min.js +50 -0
- package/dist/nav-menu.min.js.map +1 -0
- package/dist/nav-rail.js +565 -0
- package/dist/nav-rail.js.map +1 -0
- package/dist/nav-rail.min.js +23 -0
- package/dist/nav-rail.min.js.map +1 -0
- package/dist/option.js +802 -0
- package/dist/option.js.map +1 -0
- package/dist/option.min.js +40 -0
- package/dist/option.min.js.map +1 -0
- package/dist/paginator.js +700 -0
- package/dist/paginator.js.map +1 -0
- package/dist/paginator.min.js +37 -0
- package/dist/paginator.min.js.map +1 -0
- package/dist/progress-indicator.js +1405 -0
- package/dist/progress-indicator.js.map +1 -0
- package/dist/progress-indicator.min.js +108 -0
- package/dist/progress-indicator.min.js.map +1 -0
- package/dist/radio-group.js +757 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/radio-group.min.js +40 -0
- package/dist/radio-group.min.js.map +1 -0
- package/dist/segmented-button.js +782 -0
- package/dist/segmented-button.js.map +1 -0
- package/dist/segmented-button.min.js +40 -0
- package/dist/segmented-button.min.js.map +1 -0
- package/dist/select.js +1235 -0
- package/dist/select.js.map +1 -0
- package/dist/select.min.js +57 -0
- package/dist/select.min.js.map +1 -0
- package/dist/shape.js +543 -0
- package/dist/shape.js.map +1 -0
- package/dist/shape.min.js +29 -0
- package/dist/shape.min.js.map +1 -0
- package/dist/slide-group.js +655 -0
- package/dist/slide-group.js.map +1 -0
- package/dist/slide-group.min.js +45 -0
- package/dist/slide-group.min.js.map +1 -0
- package/dist/slider.js +1343 -0
- package/dist/slider.js.map +1 -0
- package/dist/slider.min.js +50 -0
- package/dist/slider.min.js.map +1 -0
- package/dist/snackbar.js +632 -0
- package/dist/snackbar.js.map +1 -0
- package/dist/snackbar.min.js +29 -0
- package/dist/snackbar.min.js.map +1 -0
- package/dist/split-button.js +661 -0
- package/dist/split-button.js.map +1 -0
- package/dist/split-button.min.js +40 -0
- package/dist/split-button.min.js.map +1 -0
- package/dist/src/all.d.ts +47 -0
- package/dist/src/all.d.ts.map +1 -0
- package/dist/src/app-bar/AppBarElement.d.ts +139 -0
- package/dist/src/app-bar/AppBarElement.d.ts.map +1 -0
- package/dist/src/app-bar/AppBarSize.d.ts +3 -0
- package/dist/src/app-bar/AppBarSize.d.ts.map +1 -0
- package/dist/src/app-bar/index.d.ts +3 -0
- package/dist/src/app-bar/index.d.ts.map +1 -0
- package/dist/src/app-bar/styles/AppBarSizeStyle.d.ts +7 -0
- package/dist/src/app-bar/styles/AppBarSizeStyle.d.ts.map +1 -0
- package/dist/src/app-bar/styles/AppBarSizeToken.d.ts +28 -0
- package/dist/src/app-bar/styles/AppBarSizeToken.d.ts.map +1 -0
- package/dist/src/app-bar/styles/AppBarStyle.d.ts +7 -0
- package/dist/src/app-bar/styles/AppBarStyle.d.ts.map +1 -0
- package/dist/src/app-bar/styles/AppBarToken.d.ts +15 -0
- package/dist/src/app-bar/styles/AppBarToken.d.ts.map +1 -0
- package/dist/src/app-bar/styles/index.d.ts +3 -0
- package/dist/src/app-bar/styles/index.d.ts.map +1 -0
- package/dist/src/autocomplete/AutocompleteElement.d.ts +79 -0
- package/dist/src/autocomplete/AutocompleteElement.d.ts.map +1 -0
- package/dist/src/autocomplete/index.d.ts +2 -0
- package/dist/src/autocomplete/index.d.ts.map +1 -0
- package/dist/src/avatar/AvatarElement.d.ts +54 -0
- package/dist/src/avatar/AvatarElement.d.ts.map +1 -0
- package/dist/src/avatar/index.d.ts +2 -0
- package/dist/src/avatar/index.d.ts.map +1 -0
- package/dist/src/badge/BadgeElement.d.ts +76 -0
- package/dist/src/badge/BadgeElement.d.ts.map +1 -0
- package/dist/src/badge/BadgePosition.d.ts +3 -0
- package/dist/src/badge/BadgePosition.d.ts.map +1 -0
- package/dist/src/badge/BadgeSize.d.ts +3 -0
- package/dist/src/badge/BadgeSize.d.ts.map +1 -0
- package/dist/src/badge/index.d.ts +4 -0
- package/dist/src/badge/index.d.ts.map +1 -0
- package/dist/src/bottom-sheet/BottomSheetActionElement.d.ts +17 -0
- package/dist/src/bottom-sheet/BottomSheetActionElement.d.ts.map +1 -0
- package/dist/src/bottom-sheet/BottomSheetElement.d.ts +189 -0
- package/dist/src/bottom-sheet/BottomSheetElement.d.ts.map +1 -0
- package/dist/src/bottom-sheet/BottomSheetTriggerElement.d.ts +36 -0
- package/dist/src/bottom-sheet/BottomSheetTriggerElement.d.ts.map +1 -0
- package/dist/src/bottom-sheet/index.d.ts +4 -0
- package/dist/src/bottom-sheet/index.d.ts.map +1 -0
- package/dist/src/button/ButtonElement.d.ts +429 -0
- package/dist/src/button/ButtonElement.d.ts.map +1 -0
- package/dist/src/button/ButtonShape.d.ts +3 -0
- package/dist/src/button/ButtonShape.d.ts.map +1 -0
- package/dist/src/button/ButtonSize.d.ts +3 -0
- package/dist/src/button/ButtonSize.d.ts.map +1 -0
- package/dist/src/button/ButtonVariant.d.ts +3 -0
- package/dist/src/button/ButtonVariant.d.ts.map +1 -0
- package/dist/src/button/index.d.ts +5 -0
- package/dist/src/button/index.d.ts.map +1 -0
- package/dist/src/button/styles/ButtonSizeStyle.d.ts +7 -0
- package/dist/src/button/styles/ButtonSizeStyle.d.ts.map +1 -0
- package/dist/src/button/styles/ButtonSizeToken.d.ts +27 -0
- package/dist/src/button/styles/ButtonSizeToken.d.ts.map +1 -0
- package/dist/src/button/styles/ButtonStyle.d.ts +7 -0
- package/dist/src/button/styles/ButtonStyle.d.ts.map +1 -0
- package/dist/src/button/styles/ButtonVariantStyle.d.ts +7 -0
- package/dist/src/button/styles/ButtonVariantStyle.d.ts.map +1 -0
- package/dist/src/button/styles/ButtonVariantToken.d.ts +75 -0
- package/dist/src/button/styles/ButtonVariantToken.d.ts.map +1 -0
- package/dist/src/button/styles/index.d.ts +4 -0
- package/dist/src/button/styles/index.d.ts.map +1 -0
- package/dist/src/button-group/ButtonGroupElement.d.ts +98 -0
- package/dist/src/button-group/ButtonGroupElement.d.ts.map +1 -0
- package/dist/src/button-group/ButtonGroupSize.d.ts +3 -0
- package/dist/src/button-group/ButtonGroupSize.d.ts.map +1 -0
- package/dist/src/button-group/ButtonGroupVariant.d.ts +3 -0
- package/dist/src/button-group/ButtonGroupVariant.d.ts.map +1 -0
- package/dist/src/button-group/index.d.ts +4 -0
- package/dist/src/button-group/index.d.ts.map +1 -0
- package/dist/src/card/CardElement.d.ts +171 -0
- package/dist/src/card/CardElement.d.ts.map +1 -0
- package/dist/src/card/CardOrientation.d.ts +3 -0
- package/dist/src/card/CardOrientation.d.ts.map +1 -0
- package/dist/src/card/CardVariant.d.ts +3 -0
- package/dist/src/card/CardVariant.d.ts.map +1 -0
- package/dist/src/card/index.d.ts +4 -0
- package/dist/src/card/index.d.ts.map +1 -0
- package/dist/src/card/styles/CardStyle.d.ts +7 -0
- package/dist/src/card/styles/CardStyle.d.ts.map +1 -0
- package/dist/src/card/styles/CardToken.d.ts +9 -0
- package/dist/src/card/styles/CardToken.d.ts.map +1 -0
- package/dist/src/card/styles/CardVariantStyle.d.ts +7 -0
- package/dist/src/card/styles/CardVariantStyle.d.ts.map +1 -0
- package/dist/src/card/styles/CardVariantToken.d.ts +50 -0
- package/dist/src/card/styles/CardVariantToken.d.ts.map +1 -0
- package/dist/src/card/styles/index.d.ts +3 -0
- package/dist/src/card/styles/index.d.ts.map +1 -0
- package/dist/src/checkbox/CheckboxElement.d.ts +100 -0
- package/dist/src/checkbox/CheckboxElement.d.ts.map +1 -0
- package/dist/src/checkbox/index.d.ts +2 -0
- package/dist/src/checkbox/index.d.ts.map +1 -0
- package/dist/src/chips/AssistChipElement.d.ts +83 -0
- package/dist/src/chips/AssistChipElement.d.ts.map +1 -0
- package/dist/src/chips/ChipElement.d.ts +83 -0
- package/dist/src/chips/ChipElement.d.ts.map +1 -0
- package/dist/src/chips/ChipSetElement.d.ts +42 -0
- package/dist/src/chips/ChipSetElement.d.ts.map +1 -0
- package/dist/src/chips/ChipVariant.d.ts +3 -0
- package/dist/src/chips/ChipVariant.d.ts.map +1 -0
- package/dist/src/chips/FilterChipElement.d.ts +105 -0
- package/dist/src/chips/FilterChipElement.d.ts.map +1 -0
- package/dist/src/chips/FilterChipSetElement.d.ts +81 -0
- package/dist/src/chips/FilterChipSetElement.d.ts.map +1 -0
- package/dist/src/chips/InputChipElement.d.ts +117 -0
- package/dist/src/chips/InputChipElement.d.ts.map +1 -0
- package/dist/src/chips/InputChipSetElement.d.ts +74 -0
- package/dist/src/chips/InputChipSetElement.d.ts.map +1 -0
- package/dist/src/chips/SuggestionChipElement.d.ts +84 -0
- package/dist/src/chips/SuggestionChipElement.d.ts.map +1 -0
- package/dist/src/chips/index.d.ts +10 -0
- package/dist/src/chips/index.d.ts.map +1 -0
- package/dist/src/core/a11y/AriaDescriber.d.ts +31 -0
- package/dist/src/core/a11y/AriaDescriber.d.ts.map +1 -0
- package/dist/src/core/a11y/FocusTrapElement.d.ts +25 -0
- package/dist/src/core/a11y/FocusTrapElement.d.ts.map +1 -0
- package/dist/src/core/a11y/InteractivityChecker.d.ts +22 -0
- package/dist/src/core/a11y/InteractivityChecker.d.ts.map +1 -0
- package/dist/src/core/a11y/LiveAnnouncer.d.ts +56 -0
- package/dist/src/core/a11y/LiveAnnouncer.d.ts.map +1 -0
- package/dist/src/core/a11y/aria-reference.d.ts +30 -0
- package/dist/src/core/a11y/aria-reference.d.ts.map +1 -0
- package/dist/src/core/a11y/index.d.ts +8 -0
- package/dist/src/core/a11y/index.d.ts.map +1 -0
- package/dist/src/core/a11y/keycodes/KeyCode.d.ts +118 -0
- package/dist/src/core/a11y/keycodes/KeyCode.d.ts.map +1 -0
- package/dist/src/core/a11y/keycodes/ModifierKeys.d.ts +5 -0
- package/dist/src/core/a11y/keycodes/ModifierKeys.d.ts.map +1 -0
- package/dist/src/core/a11y/keycodes/getKeyCode.d.ts +7 -0
- package/dist/src/core/a11y/keycodes/getKeyCode.d.ts.map +1 -0
- package/dist/src/core/a11y/keycodes/hasModifierKey.d.ts +9 -0
- package/dist/src/core/a11y/keycodes/hasModifierKey.d.ts.map +1 -0
- package/dist/src/core/a11y/keycodes/index.d.ts +6 -0
- package/dist/src/core/a11y/keycodes/index.d.ts.map +1 -0
- package/dist/src/core/a11y/keycodes/isModifierAllowed.d.ts +9 -0
- package/dist/src/core/a11y/keycodes/isModifierAllowed.d.ts.map +1 -0
- package/dist/src/core/a11y/list-key/FocusKeyManager.d.ts +17 -0
- package/dist/src/core/a11y/list-key/FocusKeyManager.d.ts.map +1 -0
- package/dist/src/core/a11y/list-key/ListKeyManager.d.ts +125 -0
- package/dist/src/core/a11y/list-key/ListKeyManager.d.ts.map +1 -0
- package/dist/src/core/a11y/list-key/ListManager.d.ts +37 -0
- package/dist/src/core/a11y/list-key/ListManager.d.ts.map +1 -0
- package/dist/src/core/a11y/list-key/RadioKeyManager.d.ts +20 -0
- package/dist/src/core/a11y/list-key/RadioKeyManager.d.ts.map +1 -0
- package/dist/src/core/a11y/list-key/RovingTabIndexManager.d.ts +22 -0
- package/dist/src/core/a11y/list-key/RovingTabIndexManager.d.ts.map +1 -0
- package/dist/src/core/a11y/list-key/SelectionManager.d.ts +46 -0
- package/dist/src/core/a11y/list-key/SelectionManager.d.ts.map +1 -0
- package/dist/src/core/a11y/list-key/Typeahead.d.ts +64 -0
- package/dist/src/core/a11y/list-key/Typeahead.d.ts.map +1 -0
- package/dist/src/core/a11y/list-key/index.d.ts +8 -0
- package/dist/src/core/a11y/list-key/index.d.ts.map +1 -0
- package/dist/src/core/a11y/visuallyHide.d.ts +6 -0
- package/dist/src/core/a11y/visuallyHide.d.ts.map +1 -0
- package/dist/src/core/anchoring/AnchorOptions.d.ts +15 -0
- package/dist/src/core/anchoring/AnchorOptions.d.ts.map +1 -0
- package/dist/src/core/anchoring/AnchorPosition.d.ts +3 -0
- package/dist/src/core/anchoring/AnchorPosition.d.ts.map +1 -0
- package/dist/src/core/anchoring/index.d.ts +4 -0
- package/dist/src/core/anchoring/index.d.ts.map +1 -0
- package/dist/src/core/anchoring/positionAnchor.d.ts +12 -0
- package/dist/src/core/anchoring/positionAnchor.d.ts.map +1 -0
- package/dist/src/core/bidi/Directionality.d.ts +27 -0
- package/dist/src/core/bidi/Directionality.d.ts.map +1 -0
- package/dist/src/core/bidi/index.d.ts +2 -0
- package/dist/src/core/bidi/index.d.ts.map +1 -0
- package/dist/src/core/index.d.ts +2 -0
- package/dist/src/core/index.d.ts.map +1 -0
- package/dist/src/core/layout/Breakpoint.d.ts +26 -0
- package/dist/src/core/layout/Breakpoint.d.ts.map +1 -0
- package/dist/src/core/layout/BreakpointObserver.d.ts +18 -0
- package/dist/src/core/layout/BreakpointObserver.d.ts.map +1 -0
- package/dist/src/core/layout/index.d.ts +3 -0
- package/dist/src/core/layout/index.d.ts.map +1 -0
- package/dist/src/core/platform/Platform.d.ts +34 -0
- package/dist/src/core/platform/Platform.d.ts.map +1 -0
- package/dist/src/core/platform/index.d.ts +2 -0
- package/dist/src/core/platform/index.d.ts.map +1 -0
- package/dist/src/core/shared/controllers/AnimationLoopController.d.ts +13 -0
- package/dist/src/core/shared/controllers/AnimationLoopController.d.ts.map +1 -0
- package/dist/src/core/shared/controllers/FocusController.d.ts +34 -0
- package/dist/src/core/shared/controllers/FocusController.d.ts.map +1 -0
- package/dist/src/core/shared/controllers/HoverController.d.ts +40 -0
- package/dist/src/core/shared/controllers/HoverController.d.ts.map +1 -0
- package/dist/src/core/shared/controllers/IntersectionController.d.ts +40 -0
- package/dist/src/core/shared/controllers/IntersectionController.d.ts.map +1 -0
- package/dist/src/core/shared/controllers/LongPressController.d.ts +32 -0
- package/dist/src/core/shared/controllers/LongPressController.d.ts.map +1 -0
- package/dist/src/core/shared/controllers/MonitorControllerBase.d.ts +62 -0
- package/dist/src/core/shared/controllers/MonitorControllerBase.d.ts.map +1 -0
- package/dist/src/core/shared/controllers/MutationController.d.ts +37 -0
- package/dist/src/core/shared/controllers/MutationController.d.ts.map +1 -0
- package/dist/src/core/shared/controllers/PressedController.d.ts +47 -0
- package/dist/src/core/shared/controllers/PressedController.d.ts.map +1 -0
- package/dist/src/core/shared/controllers/ResizeController.d.ts +40 -0
- package/dist/src/core/shared/controllers/ResizeController.d.ts.map +1 -0
- package/dist/src/core/shared/controllers/ScrollController.d.ts +34 -0
- package/dist/src/core/shared/controllers/ScrollController.d.ts.map +1 -0
- package/dist/src/core/shared/controllers/ScrollLockController.d.ts +16 -0
- package/dist/src/core/shared/controllers/ScrollLockController.d.ts.map +1 -0
- package/dist/src/core/shared/controllers/index.d.ts +11 -0
- package/dist/src/core/shared/controllers/index.d.ts.map +1 -0
- package/dist/src/core/shared/converters/index.d.ts +2 -0
- package/dist/src/core/shared/converters/index.d.ts.map +1 -0
- package/dist/src/core/shared/converters/spaceSeparatedStringConverter.d.ts +4 -0
- package/dist/src/core/shared/converters/spaceSeparatedStringConverter.d.ts.map +1 -0
- package/dist/src/core/shared/decorators/debounce.d.ts +7 -0
- package/dist/src/core/shared/decorators/debounce.d.ts.map +1 -0
- package/dist/src/core/shared/decorators/index.d.ts +2 -0
- package/dist/src/core/shared/decorators/index.d.ts.map +1 -0
- package/dist/src/core/shared/directives/index.d.ts +2 -0
- package/dist/src/core/shared/directives/index.d.ts.map +1 -0
- package/dist/src/core/shared/directives/safeStyleMap.d.ts +44 -0
- package/dist/src/core/shared/directives/safeStyleMap.d.ts.map +1 -0
- package/dist/src/core/shared/index.d.ts +9 -0
- package/dist/src/core/shared/index.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/AttachInternals.d.ts +24 -0
- package/dist/src/core/shared/mixins/AttachInternals.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/Checked.d.ts +24 -0
- package/dist/src/core/shared/mixins/Checked.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/CheckedIndeterminate.d.ts +25 -0
- package/dist/src/core/shared/mixins/CheckedIndeterminate.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/CheckedOrSelected.d.ts +23 -0
- package/dist/src/core/shared/mixins/CheckedOrSelected.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/ConstraintValidation.d.ts +48 -0
- package/dist/src/core/shared/mixins/ConstraintValidation.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/Constructor.d.ts +3 -0
- package/dist/src/core/shared/mixins/Constructor.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/Dirty.d.ts +27 -0
- package/dist/src/core/shared/mixins/Dirty.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/Disabled.d.ts +25 -0
- package/dist/src/core/shared/mixins/Disabled.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/DisabledInteractive.d.ts +25 -0
- package/dist/src/core/shared/mixins/DisabledInteractive.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/EventAttribute.d.ts +11 -0
- package/dist/src/core/shared/mixins/EventAttribute.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/Focusable.d.ts +11 -0
- package/dist/src/core/shared/mixins/Focusable.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/FormAssociated.d.ts +34 -0
- package/dist/src/core/shared/mixins/FormAssociated.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/FormSubmitter.d.ts +34 -0
- package/dist/src/core/shared/mixins/FormSubmitter.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/HtmlFor.d.ts +30 -0
- package/dist/src/core/shared/mixins/HtmlFor.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/KeyboardClick.d.ts +11 -0
- package/dist/src/core/shared/mixins/KeyboardClick.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/Labelled.d.ts +26 -0
- package/dist/src/core/shared/mixins/Labelled.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/LinkButton.d.ts +46 -0
- package/dist/src/core/shared/mixins/LinkButton.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/ReadOnly.d.ts +25 -0
- package/dist/src/core/shared/mixins/ReadOnly.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/Required.d.ts +26 -0
- package/dist/src/core/shared/mixins/Required.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/RequiredConstraintValidation.d.ts +21 -0
- package/dist/src/core/shared/mixins/RequiredConstraintValidation.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/Role.d.ts +13 -0
- package/dist/src/core/shared/mixins/Role.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/Selected.d.ts +24 -0
- package/dist/src/core/shared/mixins/Selected.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/Touched.d.ts +27 -0
- package/dist/src/core/shared/mixins/Touched.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/Vertical.d.ts +24 -0
- package/dist/src/core/shared/mixins/Vertical.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/hasKeys.d.ts +9 -0
- package/dist/src/core/shared/mixins/hasKeys.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/index.d.ts +25 -0
- package/dist/src/core/shared/mixins/index.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/ActionElementBase.d.ts +22 -0
- package/dist/src/core/shared/primitives/ActionElementBase.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/CollapsibleElement.d.ts +58 -0
- package/dist/src/core/shared/primitives/CollapsibleElement.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/ElevationElement.d.ts +87 -0
- package/dist/src/core/shared/primitives/ElevationElement.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/ElevationLevel.d.ts +3 -0
- package/dist/src/core/shared/primitives/ElevationLevel.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/ElevationToken.d.ts +15 -0
- package/dist/src/core/shared/primitives/ElevationToken.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/FocusRingElement.d.ts +77 -0
- package/dist/src/core/shared/primitives/FocusRingElement.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/FocusRingToken.d.ts +17 -0
- package/dist/src/core/shared/primitives/FocusRingToken.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/PseudoCheckboxElement.d.ts +49 -0
- package/dist/src/core/shared/primitives/PseudoCheckboxElement.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/PseudoRadioElement.d.ts +40 -0
- package/dist/src/core/shared/primitives/PseudoRadioElement.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/RippleElement.d.ts +97 -0
- package/dist/src/core/shared/primitives/RippleElement.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/RippleToken.d.ts +12 -0
- package/dist/src/core/shared/primitives/RippleToken.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/ScrollContainerElement.d.ts +61 -0
- package/dist/src/core/shared/primitives/ScrollContainerElement.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/ScrollDividers.d.ts +3 -0
- package/dist/src/core/shared/primitives/ScrollDividers.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/SlideElement.d.ts +45 -0
- package/dist/src/core/shared/primitives/SlideElement.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/StateLayerElement.d.ts +83 -0
- package/dist/src/core/shared/primitives/StateLayerElement.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/StateLayerToken.d.ts +13 -0
- package/dist/src/core/shared/primitives/StateLayerToken.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/TextHighlightElement.d.ts +81 -0
- package/dist/src/core/shared/primitives/TextHighlightElement.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/TextOverflowElement.d.ts +38 -0
- package/dist/src/core/shared/primitives/TextOverflowElement.d.ts.map +1 -0
- package/dist/src/core/shared/primitives/index.d.ts +15 -0
- package/dist/src/core/shared/primitives/index.d.ts.map +1 -0
- package/dist/src/core/shared/tokens/ColorToken.d.ts +96 -0
- package/dist/src/core/shared/tokens/ColorToken.d.ts.map +1 -0
- package/dist/src/core/shared/tokens/DensityToken.d.ts +15 -0
- package/dist/src/core/shared/tokens/DensityToken.d.ts.map +1 -0
- package/dist/src/core/shared/tokens/DesignToken.d.ts +366 -0
- package/dist/src/core/shared/tokens/DesignToken.d.ts.map +1 -0
- package/dist/src/core/shared/tokens/ElevationToken.d.ts +16 -0
- package/dist/src/core/shared/tokens/ElevationToken.d.ts.map +1 -0
- package/dist/src/core/shared/tokens/MotionToken.d.ts +69 -0
- package/dist/src/core/shared/tokens/MotionToken.d.ts.map +1 -0
- package/dist/src/core/shared/tokens/ScrollbarToken.d.ts +10 -0
- package/dist/src/core/shared/tokens/ScrollbarToken.d.ts.map +1 -0
- package/dist/src/core/shared/tokens/ShapeToken.d.ts +79 -0
- package/dist/src/core/shared/tokens/ShapeToken.d.ts.map +1 -0
- package/dist/src/core/shared/tokens/StateToken.d.ts +10 -0
- package/dist/src/core/shared/tokens/StateToken.d.ts.map +1 -0
- package/dist/src/core/shared/tokens/TypescaleToken.d.ts +220 -0
- package/dist/src/core/shared/tokens/TypescaleToken.d.ts.map +1 -0
- package/dist/src/core/shared/tokens/index.d.ts +2 -0
- package/dist/src/core/shared/tokens/index.d.ts.map +1 -0
- package/dist/src/core/shared/utils/VelocityTracker.d.ts +22 -0
- package/dist/src/core/shared/utils/VelocityTracker.d.ts.map +1 -0
- package/dist/src/core/shared/utils/computeCssSize.d.ts +8 -0
- package/dist/src/core/shared/utils/computeCssSize.d.ts.map +1 -0
- package/dist/src/core/shared/utils/computeLineCount.d.ts +7 -0
- package/dist/src/core/shared/utils/computeLineCount.d.ts.map +1 -0
- package/dist/src/core/shared/utils/focusWhenReady.d.ts +8 -0
- package/dist/src/core/shared/utils/focusWhenReady.d.ts.map +1 -0
- package/dist/src/core/shared/utils/forcedColorsActive.d.ts +6 -0
- package/dist/src/core/shared/utils/forcedColorsActive.d.ts.map +1 -0
- package/dist/src/core/shared/utils/generateClipPaths.d.ts +8 -0
- package/dist/src/core/shared/utils/generateClipPaths.d.ts.map +1 -0
- package/dist/src/core/shared/utils/getTextContent.d.ts +8 -0
- package/dist/src/core/shared/utils/getTextContent.d.ts.map +1 -0
- package/dist/src/core/shared/utils/guid.d.ts +6 -0
- package/dist/src/core/shared/utils/guid.d.ts.map +1 -0
- package/dist/src/core/shared/utils/hasAssignedNodes.d.ts +7 -0
- package/dist/src/core/shared/utils/hasAssignedNodes.d.ts.map +1 -0
- package/dist/src/core/shared/utils/index.d.ts +15 -0
- package/dist/src/core/shared/utils/index.d.ts.map +1 -0
- package/dist/src/core/shared/utils/interceptProperty.d.ts +17 -0
- package/dist/src/core/shared/utils/interceptProperty.d.ts.map +1 -0
- package/dist/src/core/shared/utils/prefersReducedMotion.d.ts +6 -0
- package/dist/src/core/shared/utils/prefersReducedMotion.d.ts.map +1 -0
- package/dist/src/core/shared/utils/resolveElementById.d.ts +8 -0
- package/dist/src/core/shared/utils/resolveElementById.d.ts.map +1 -0
- package/dist/src/core/shared/utils/resolveFragmentUrl.d.ts +22 -0
- package/dist/src/core/shared/utils/resolveFragmentUrl.d.ts.map +1 -0
- package/dist/src/core/shared/utils/scrollIntoViewIfNeeded.d.ts +8 -0
- package/dist/src/core/shared/utils/scrollIntoViewIfNeeded.d.ts.map +1 -0
- package/dist/src/dialog/DialogActionElement.d.ts +24 -0
- package/dist/src/dialog/DialogActionElement.d.ts.map +1 -0
- package/dist/src/dialog/DialogElement.d.ts +142 -0
- package/dist/src/dialog/DialogElement.d.ts.map +1 -0
- package/dist/src/dialog/DialogTriggerElement.d.ts +21 -0
- package/dist/src/dialog/DialogTriggerElement.d.ts.map +1 -0
- package/dist/src/dialog/index.d.ts +4 -0
- package/dist/src/dialog/index.d.ts.map +1 -0
- package/dist/src/divider/DividerElement.d.ts +63 -0
- package/dist/src/divider/DividerElement.d.ts.map +1 -0
- package/dist/src/divider/index.d.ts +2 -0
- package/dist/src/divider/index.d.ts.map +1 -0
- package/dist/src/drawer-container/DrawerContainerElement.d.ts +107 -0
- package/dist/src/drawer-container/DrawerContainerElement.d.ts.map +1 -0
- package/dist/src/drawer-container/DrawerMode.d.ts +3 -0
- package/dist/src/drawer-container/DrawerMode.d.ts.map +1 -0
- package/dist/src/drawer-container/DrawerPosition.d.ts +3 -0
- package/dist/src/drawer-container/DrawerPosition.d.ts.map +1 -0
- package/dist/src/drawer-container/DrawerToggleElement.d.ts +42 -0
- package/dist/src/drawer-container/DrawerToggleElement.d.ts.map +1 -0
- package/dist/src/drawer-container/index.d.ts +5 -0
- package/dist/src/drawer-container/index.d.ts.map +1 -0
- package/dist/src/drawer-container/styles/DrawerContainerStyle.d.ts +7 -0
- package/dist/src/drawer-container/styles/DrawerContainerStyle.d.ts.map +1 -0
- package/dist/src/drawer-container/styles/DrawerContainerToken.d.ts +16 -0
- package/dist/src/drawer-container/styles/DrawerContainerToken.d.ts.map +1 -0
- package/dist/src/drawer-container/styles/index.d.ts +2 -0
- package/dist/src/drawer-container/styles/index.d.ts.map +1 -0
- package/dist/src/expansion-panel/AccordionElement.d.ts +53 -0
- package/dist/src/expansion-panel/AccordionElement.d.ts.map +1 -0
- package/dist/src/expansion-panel/ExpansionHeaderElement.d.ts +62 -0
- package/dist/src/expansion-panel/ExpansionHeaderElement.d.ts.map +1 -0
- package/dist/src/expansion-panel/ExpansionPanelElement.d.ts +132 -0
- package/dist/src/expansion-panel/ExpansionPanelElement.d.ts.map +1 -0
- package/dist/src/expansion-panel/ExpansionToggleDirection.d.ts +3 -0
- package/dist/src/expansion-panel/ExpansionToggleDirection.d.ts.map +1 -0
- package/dist/src/expansion-panel/ExpansionTogglePosition.d.ts +3 -0
- package/dist/src/expansion-panel/ExpansionTogglePosition.d.ts.map +1 -0
- package/dist/src/expansion-panel/index.d.ts +6 -0
- package/dist/src/expansion-panel/index.d.ts.map +1 -0
- package/dist/src/expansion-panel/styles/ExpansionHeaderStyle.d.ts +6 -0
- package/dist/src/expansion-panel/styles/ExpansionHeaderStyle.d.ts.map +1 -0
- package/dist/src/expansion-panel/styles/ExpansionHeaderToken.d.ts +17 -0
- package/dist/src/expansion-panel/styles/ExpansionHeaderToken.d.ts.map +1 -0
- package/dist/src/expansion-panel/styles/ExpansionPanelStyle.d.ts +6 -0
- package/dist/src/expansion-panel/styles/ExpansionPanelStyle.d.ts.map +1 -0
- package/dist/src/expansion-panel/styles/ExpansionPanelToken.d.ts +21 -0
- package/dist/src/expansion-panel/styles/ExpansionPanelToken.d.ts.map +1 -0
- package/dist/src/expansion-panel/styles/index.d.ts +3 -0
- package/dist/src/expansion-panel/styles/index.d.ts.map +1 -0
- package/dist/src/fab/FabElement.d.ts +356 -0
- package/dist/src/fab/FabElement.d.ts.map +1 -0
- package/dist/src/fab/FabSize.d.ts +3 -0
- package/dist/src/fab/FabSize.d.ts.map +1 -0
- package/dist/src/fab/FabVariant.d.ts +3 -0
- package/dist/src/fab/FabVariant.d.ts.map +1 -0
- package/dist/src/fab/index.d.ts +4 -0
- package/dist/src/fab/index.d.ts.map +1 -0
- package/dist/src/fab/styles/FabSizeStyle.d.ts +7 -0
- package/dist/src/fab/styles/FabSizeStyle.d.ts.map +1 -0
- package/dist/src/fab/styles/FabSizeToken.d.ts +25 -0
- package/dist/src/fab/styles/FabSizeToken.d.ts.map +1 -0
- package/dist/src/fab/styles/FabStyle.d.ts +7 -0
- package/dist/src/fab/styles/FabStyle.d.ts.map +1 -0
- package/dist/src/fab/styles/FabVariantStyle.d.ts +7 -0
- package/dist/src/fab/styles/FabVariantStyle.d.ts.map +1 -0
- package/dist/src/fab/styles/FabVariantToken.d.ts +52 -0
- package/dist/src/fab/styles/FabVariantToken.d.ts.map +1 -0
- package/dist/src/fab/styles/index.d.ts +4 -0
- package/dist/src/fab/styles/index.d.ts.map +1 -0
- package/dist/src/fab-menu/FabMenuElement.d.ts +110 -0
- package/dist/src/fab-menu/FabMenuElement.d.ts.map +1 -0
- package/dist/src/fab-menu/FabMenuItemElement.d.ts +74 -0
- package/dist/src/fab-menu/FabMenuItemElement.d.ts.map +1 -0
- package/dist/src/fab-menu/FabMenuTriggerElement.d.ts +43 -0
- package/dist/src/fab-menu/FabMenuTriggerElement.d.ts.map +1 -0
- package/dist/src/fab-menu/FabMenuVariant.d.ts +3 -0
- package/dist/src/fab-menu/FabMenuVariant.d.ts.map +1 -0
- package/dist/src/fab-menu/index.d.ts +5 -0
- package/dist/src/fab-menu/index.d.ts.map +1 -0
- package/dist/src/form-field/FloatLabelType.d.ts +3 -0
- package/dist/src/form-field/FloatLabelType.d.ts.map +1 -0
- package/dist/src/form-field/FormFieldControl.d.ts +48 -0
- package/dist/src/form-field/FormFieldControl.d.ts.map +1 -0
- package/dist/src/form-field/FormFieldElement.d.ts +145 -0
- package/dist/src/form-field/FormFieldElement.d.ts.map +1 -0
- package/dist/src/form-field/FormFieldVariant.d.ts +3 -0
- package/dist/src/form-field/FormFieldVariant.d.ts.map +1 -0
- package/dist/src/form-field/HideSubscriptType.d.ts +3 -0
- package/dist/src/form-field/HideSubscriptType.d.ts.map +1 -0
- package/dist/src/form-field/index.d.ts +6 -0
- package/dist/src/form-field/index.d.ts.map +1 -0
- package/dist/src/heading/HeadingElement.d.ts +176 -0
- package/dist/src/heading/HeadingElement.d.ts.map +1 -0
- package/dist/src/heading/HeadingLevel.d.ts +3 -0
- package/dist/src/heading/HeadingLevel.d.ts.map +1 -0
- package/dist/src/heading/HeadingSize.d.ts +3 -0
- package/dist/src/heading/HeadingSize.d.ts.map +1 -0
- package/dist/src/heading/HeadingVariant.d.ts +3 -0
- package/dist/src/heading/HeadingVariant.d.ts.map +1 -0
- package/dist/src/heading/index.d.ts +5 -0
- package/dist/src/heading/index.d.ts.map +1 -0
- package/dist/src/icon/IconElement.d.ts +83 -0
- package/dist/src/icon/IconElement.d.ts.map +1 -0
- package/dist/src/icon/IconGrade.d.ts +3 -0
- package/dist/src/icon/IconGrade.d.ts.map +1 -0
- package/dist/src/icon/IconVariant.d.ts +3 -0
- package/dist/src/icon/IconVariant.d.ts.map +1 -0
- package/dist/src/icon/index.d.ts +4 -0
- package/dist/src/icon/index.d.ts.map +1 -0
- package/dist/src/icon-button/IconButtonElement.d.ts +316 -0
- package/dist/src/icon-button/IconButtonElement.d.ts.map +1 -0
- package/dist/src/icon-button/IconButtonShape.d.ts +3 -0
- package/dist/src/icon-button/IconButtonShape.d.ts.map +1 -0
- package/dist/src/icon-button/IconButtonSize.d.ts +3 -0
- package/dist/src/icon-button/IconButtonSize.d.ts.map +1 -0
- package/dist/src/icon-button/IconButtonVariant.d.ts +3 -0
- package/dist/src/icon-button/IconButtonVariant.d.ts.map +1 -0
- package/dist/src/icon-button/IconButtonWidth.d.ts +3 -0
- package/dist/src/icon-button/IconButtonWidth.d.ts.map +1 -0
- package/dist/src/icon-button/index.d.ts +6 -0
- package/dist/src/icon-button/index.d.ts.map +1 -0
- package/dist/src/icon-button/styles/IconButtonSizeStyle.d.ts +7 -0
- package/dist/src/icon-button/styles/IconButtonSizeStyle.d.ts.map +1 -0
- package/dist/src/icon-button/styles/IconButtonSizeToken.d.ts +26 -0
- package/dist/src/icon-button/styles/IconButtonSizeToken.d.ts.map +1 -0
- package/dist/src/icon-button/styles/IconButtonStyle.d.ts +7 -0
- package/dist/src/icon-button/styles/IconButtonStyle.d.ts.map +1 -0
- package/dist/src/icon-button/styles/IconButtonVariantStyle.d.ts +7 -0
- package/dist/src/icon-button/styles/IconButtonVariantStyle.d.ts.map +1 -0
- package/dist/src/icon-button/styles/IconButtonVariantToken.d.ts +61 -0
- package/dist/src/icon-button/styles/IconButtonVariantToken.d.ts.map +1 -0
- package/dist/src/icon-button/styles/index.d.ts +4 -0
- package/dist/src/icon-button/styles/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/list/ActionListElement.d.ts +46 -0
- package/dist/src/list/ActionListElement.d.ts.map +1 -0
- package/dist/src/list/ExpandableListItemElement.d.ts +152 -0
- package/dist/src/list/ExpandableListItemElement.d.ts.map +1 -0
- package/dist/src/list/ListActionElement.d.ts +111 -0
- package/dist/src/list/ListActionElement.d.ts.map +1 -0
- package/dist/src/list/ListElement.d.ts +89 -0
- package/dist/src/list/ListElement.d.ts.map +1 -0
- package/dist/src/list/ListItemButtonElement.d.ts +25 -0
- package/dist/src/list/ListItemButtonElement.d.ts.map +1 -0
- package/dist/src/list/ListItemContentType.d.ts +3 -0
- package/dist/src/list/ListItemContentType.d.ts.map +1 -0
- package/dist/src/list/ListItemElement.d.ts +112 -0
- package/dist/src/list/ListItemElement.d.ts.map +1 -0
- package/dist/src/list/ListOptionElement.d.ts +127 -0
- package/dist/src/list/ListOptionElement.d.ts.map +1 -0
- package/dist/src/list/ListVariant.d.ts +3 -0
- package/dist/src/list/ListVariant.d.ts.map +1 -0
- package/dist/src/list/SelectionListElement.d.ts +77 -0
- package/dist/src/list/SelectionListElement.d.ts.map +1 -0
- package/dist/src/list/index.d.ts +11 -0
- package/dist/src/list/index.d.ts.map +1 -0
- package/dist/src/loading-indicator/LoadingIndicatorElement.d.ts +56 -0
- package/dist/src/loading-indicator/LoadingIndicatorElement.d.ts.map +1 -0
- package/dist/src/loading-indicator/LoadingIndicatorToken.d.ts +9 -0
- package/dist/src/loading-indicator/LoadingIndicatorToken.d.ts.map +1 -0
- package/dist/src/loading-indicator/LoadingIndicatorVariant.d.ts +3 -0
- package/dist/src/loading-indicator/LoadingIndicatorVariant.d.ts.map +1 -0
- package/dist/src/loading-indicator/ShapePolygon.d.ts +7 -0
- package/dist/src/loading-indicator/ShapePolygon.d.ts.map +1 -0
- package/dist/src/loading-indicator/index.d.ts +3 -0
- package/dist/src/loading-indicator/index.d.ts.map +1 -0
- package/dist/src/menu/MenuElement.d.ts +156 -0
- package/dist/src/menu/MenuElement.d.ts.map +1 -0
- package/dist/src/menu/MenuItemCheckboxElement.d.ts +94 -0
- package/dist/src/menu/MenuItemCheckboxElement.d.ts.map +1 -0
- package/dist/src/menu/MenuItemElement.d.ts +130 -0
- package/dist/src/menu/MenuItemElement.d.ts.map +1 -0
- package/dist/src/menu/MenuItemElementBase.d.ts +21 -0
- package/dist/src/menu/MenuItemElementBase.d.ts.map +1 -0
- package/dist/src/menu/MenuItemGroupElement.d.ts +27 -0
- package/dist/src/menu/MenuItemGroupElement.d.ts.map +1 -0
- package/dist/src/menu/MenuItemRadioElement.d.ts +95 -0
- package/dist/src/menu/MenuItemRadioElement.d.ts.map +1 -0
- package/dist/src/menu/MenuPosition.d.ts +5 -0
- package/dist/src/menu/MenuPosition.d.ts.map +1 -0
- package/dist/src/menu/MenuTriggerElement.d.ts +78 -0
- package/dist/src/menu/MenuTriggerElement.d.ts.map +1 -0
- package/dist/src/menu/MenuVariant.d.ts +3 -0
- package/dist/src/menu/MenuVariant.d.ts.map +1 -0
- package/dist/src/menu/index.d.ts +9 -0
- package/dist/src/menu/index.d.ts.map +1 -0
- package/dist/src/nav-bar/NavBarElement.d.ts +73 -0
- package/dist/src/nav-bar/NavBarElement.d.ts.map +1 -0
- package/dist/src/nav-bar/NavBarMode.d.ts +3 -0
- package/dist/src/nav-bar/NavBarMode.d.ts.map +1 -0
- package/dist/src/nav-bar/NavItemElement.d.ts +105 -0
- package/dist/src/nav-bar/NavItemElement.d.ts.map +1 -0
- package/dist/src/nav-bar/NavItemOrientation.d.ts +3 -0
- package/dist/src/nav-bar/NavItemOrientation.d.ts.map +1 -0
- package/dist/src/nav-bar/index.d.ts +5 -0
- package/dist/src/nav-bar/index.d.ts.map +1 -0
- package/dist/src/nav-menu/NavMenuElement.d.ts +113 -0
- package/dist/src/nav-menu/NavMenuElement.d.ts.map +1 -0
- package/dist/src/nav-menu/NavMenuItemElement.d.ts +189 -0
- package/dist/src/nav-menu/NavMenuItemElement.d.ts.map +1 -0
- package/dist/src/nav-menu/NavMenuItemGroupElement.d.ts +63 -0
- package/dist/src/nav-menu/NavMenuItemGroupElement.d.ts.map +1 -0
- package/dist/src/nav-menu/index.d.ts +4 -0
- package/dist/src/nav-menu/index.d.ts.map +1 -0
- package/dist/src/nav-rail/NavRailElement.d.ts +69 -0
- package/dist/src/nav-rail/NavRailElement.d.ts.map +1 -0
- package/dist/src/nav-rail/NavRailToggleElement.d.ts +46 -0
- package/dist/src/nav-rail/NavRailToggleElement.d.ts.map +1 -0
- package/dist/src/nav-rail/index.d.ts +3 -0
- package/dist/src/nav-rail/index.d.ts.map +1 -0
- package/dist/src/option/OptGroupElement.d.ts +42 -0
- package/dist/src/option/OptGroupElement.d.ts.map +1 -0
- package/dist/src/option/OptionElement.d.ts +79 -0
- package/dist/src/option/OptionElement.d.ts.map +1 -0
- package/dist/src/option/OptionPanelElement.d.ts +82 -0
- package/dist/src/option/OptionPanelElement.d.ts.map +1 -0
- package/dist/src/option/index.d.ts +4 -0
- package/dist/src/option/index.d.ts.map +1 -0
- package/dist/src/paginator/PageEventDetail.d.ts +12 -0
- package/dist/src/paginator/PageEventDetail.d.ts.map +1 -0
- package/dist/src/paginator/PaginatorElement.d.ts +170 -0
- package/dist/src/paginator/PaginatorElement.d.ts.map +1 -0
- package/dist/src/paginator/index.d.ts +3 -0
- package/dist/src/paginator/index.d.ts.map +1 -0
- package/dist/src/progress-indicator/CircularProgressIndicatorElement.d.ts +65 -0
- package/dist/src/progress-indicator/CircularProgressIndicatorElement.d.ts.map +1 -0
- package/dist/src/progress-indicator/LinearProgressIndicatorElement.d.ts +70 -0
- package/dist/src/progress-indicator/LinearProgressIndicatorElement.d.ts.map +1 -0
- package/dist/src/progress-indicator/LinearProgressMode.d.ts +3 -0
- package/dist/src/progress-indicator/LinearProgressMode.d.ts.map +1 -0
- package/dist/src/progress-indicator/ProgressElementIndicatorBase.d.ts +29 -0
- package/dist/src/progress-indicator/ProgressElementIndicatorBase.d.ts.map +1 -0
- package/dist/src/progress-indicator/ProgressIndicatorVariant.d.ts +3 -0
- package/dist/src/progress-indicator/ProgressIndicatorVariant.d.ts.map +1 -0
- package/dist/src/progress-indicator/index.d.ts +6 -0
- package/dist/src/progress-indicator/index.d.ts.map +1 -0
- package/dist/src/radio-group/RadioElement.d.ts +88 -0
- package/dist/src/radio-group/RadioElement.d.ts.map +1 -0
- package/dist/src/radio-group/RadioGroupElement.d.ts +77 -0
- package/dist/src/radio-group/RadioGroupElement.d.ts.map +1 -0
- package/dist/src/radio-group/index.d.ts +3 -0
- package/dist/src/radio-group/index.d.ts.map +1 -0
- package/dist/src/segmented-button/ButtonSegmentElement.d.ts +105 -0
- package/dist/src/segmented-button/ButtonSegmentElement.d.ts.map +1 -0
- package/dist/src/segmented-button/SegmentedButtonElement.d.ts +90 -0
- package/dist/src/segmented-button/SegmentedButtonElement.d.ts.map +1 -0
- package/dist/src/segmented-button/index.d.ts +3 -0
- package/dist/src/segmented-button/index.d.ts.map +1 -0
- package/dist/src/select/SelectElement.d.ts +119 -0
- package/dist/src/select/SelectElement.d.ts.map +1 -0
- package/dist/src/select/index.d.ts +2 -0
- package/dist/src/select/index.d.ts.map +1 -0
- package/dist/src/shape/ShapeElement.d.ts +48 -0
- package/dist/src/shape/ShapeElement.d.ts.map +1 -0
- package/dist/src/shape/ShapeName.d.ts +3 -0
- package/dist/src/shape/ShapeName.d.ts.map +1 -0
- package/dist/src/shape/ShapeNameStyle.d.ts +7 -0
- package/dist/src/shape/ShapeNameStyle.d.ts.map +1 -0
- package/dist/src/shape/ShapePolygon.d.ts +8 -0
- package/dist/src/shape/ShapePolygon.d.ts.map +1 -0
- package/dist/src/shape/ShapeStyle.d.ts +7 -0
- package/dist/src/shape/ShapeStyle.d.ts.map +1 -0
- package/dist/src/shape/ShapeToken.d.ts +13 -0
- package/dist/src/shape/ShapeToken.d.ts.map +1 -0
- package/dist/src/shape/index.d.ts +3 -0
- package/dist/src/shape/index.d.ts.map +1 -0
- package/dist/src/slide-group/SlideGroupElement.d.ts +91 -0
- package/dist/src/slide-group/SlideGroupElement.d.ts.map +1 -0
- package/dist/src/slide-group/index.d.ts +2 -0
- package/dist/src/slide-group/index.d.ts.map +1 -0
- package/dist/src/slider/SliderElement.d.ts +144 -0
- package/dist/src/slider/SliderElement.d.ts.map +1 -0
- package/dist/src/slider/SliderSize.d.ts +3 -0
- package/dist/src/slider/SliderSize.d.ts.map +1 -0
- package/dist/src/slider/SliderThumbElement.d.ts +80 -0
- package/dist/src/slider/SliderThumbElement.d.ts.map +1 -0
- package/dist/src/slider/index.d.ts +4 -0
- package/dist/src/slider/index.d.ts.map +1 -0
- package/dist/src/snackbar/Snackbar.d.ts +62 -0
- package/dist/src/snackbar/Snackbar.d.ts.map +1 -0
- package/dist/src/snackbar/SnackbarElement.d.ts +79 -0
- package/dist/src/snackbar/SnackbarElement.d.ts.map +1 -0
- package/dist/src/snackbar/index.d.ts +3 -0
- package/dist/src/snackbar/index.d.ts.map +1 -0
- package/dist/src/split-button/SplitButtonElement.d.ts +106 -0
- package/dist/src/split-button/SplitButtonElement.d.ts.map +1 -0
- package/dist/src/split-button/SplitButtonVariant.d.ts +3 -0
- package/dist/src/split-button/SplitButtonVariant.d.ts.map +1 -0
- package/dist/src/split-button/index.d.ts +3 -0
- package/dist/src/split-button/index.d.ts.map +1 -0
- package/dist/src/stepper/StepElement.d.ts +161 -0
- package/dist/src/stepper/StepElement.d.ts.map +1 -0
- package/dist/src/stepper/StepHeaderPosition.d.ts +3 -0
- package/dist/src/stepper/StepHeaderPosition.d.ts.map +1 -0
- package/dist/src/stepper/StepLabelPosition.d.ts +3 -0
- package/dist/src/stepper/StepLabelPosition.d.ts.map +1 -0
- package/dist/src/stepper/StepPanelElement.d.ts +76 -0
- package/dist/src/stepper/StepPanelElement.d.ts.map +1 -0
- package/dist/src/stepper/StepperButtonElementBase.d.ts +9 -0
- package/dist/src/stepper/StepperButtonElementBase.d.ts.map +1 -0
- package/dist/src/stepper/StepperElement.d.ts +139 -0
- package/dist/src/stepper/StepperElement.d.ts.map +1 -0
- package/dist/src/stepper/StepperNextElement.d.ts +16 -0
- package/dist/src/stepper/StepperNextElement.d.ts.map +1 -0
- package/dist/src/stepper/StepperOrientation.d.ts +3 -0
- package/dist/src/stepper/StepperOrientation.d.ts.map +1 -0
- package/dist/src/stepper/StepperPreviousElement.d.ts +16 -0
- package/dist/src/stepper/StepperPreviousElement.d.ts.map +1 -0
- package/dist/src/stepper/StepperResetElement.d.ts +16 -0
- package/dist/src/stepper/StepperResetElement.d.ts.map +1 -0
- package/dist/src/stepper/index.d.ts +11 -0
- package/dist/src/stepper/index.d.ts.map +1 -0
- package/dist/src/switch/SwitchElement.d.ts +147 -0
- package/dist/src/switch/SwitchElement.d.ts.map +1 -0
- package/dist/src/switch/SwitchIcons.d.ts +3 -0
- package/dist/src/switch/SwitchIcons.d.ts.map +1 -0
- package/dist/src/switch/index.d.ts +3 -0
- package/dist/src/switch/index.d.ts.map +1 -0
- package/dist/src/switch/styles/SwitchHandleStyle.d.ts +6 -0
- package/dist/src/switch/styles/SwitchHandleStyle.d.ts.map +1 -0
- package/dist/src/switch/styles/SwitchIconStyle.d.ts +6 -0
- package/dist/src/switch/styles/SwitchIconStyle.d.ts.map +1 -0
- package/dist/src/switch/styles/SwitchStateLayerStyle.d.ts +6 -0
- package/dist/src/switch/styles/SwitchStateLayerStyle.d.ts.map +1 -0
- package/dist/src/switch/styles/SwitchStyle.d.ts +6 -0
- package/dist/src/switch/styles/SwitchStyle.d.ts.map +1 -0
- package/dist/src/switch/styles/SwitchToken.d.ts +76 -0
- package/dist/src/switch/styles/SwitchToken.d.ts.map +1 -0
- package/dist/src/switch/styles/SwitchTrackStyle.d.ts +6 -0
- package/dist/src/switch/styles/SwitchTrackStyle.d.ts.map +1 -0
- package/dist/src/switch/styles/index.d.ts +6 -0
- package/dist/src/switch/styles/index.d.ts.map +1 -0
- package/dist/src/tabs/TabElement.d.ts +90 -0
- package/dist/src/tabs/TabElement.d.ts.map +1 -0
- package/dist/src/tabs/TabHeaderPosition.d.ts +3 -0
- package/dist/src/tabs/TabHeaderPosition.d.ts.map +1 -0
- package/dist/src/tabs/TabPanelElement.d.ts +45 -0
- package/dist/src/tabs/TabPanelElement.d.ts.map +1 -0
- package/dist/src/tabs/TabVariant.d.ts +3 -0
- package/dist/src/tabs/TabVariant.d.ts.map +1 -0
- package/dist/src/tabs/TabsElement.d.ts +118 -0
- package/dist/src/tabs/TabsElement.d.ts.map +1 -0
- package/dist/src/tabs/index.d.ts +6 -0
- package/dist/src/tabs/index.d.ts.map +1 -0
- package/dist/src/textarea-autosize/TextareaAutosizeElement.d.ts +81 -0
- package/dist/src/textarea-autosize/TextareaAutosizeElement.d.ts.map +1 -0
- package/dist/src/textarea-autosize/index.d.ts +2 -0
- package/dist/src/textarea-autosize/index.d.ts.map +1 -0
- package/dist/src/theme/ColorScheme.d.ts +3 -0
- package/dist/src/theme/ColorScheme.d.ts.map +1 -0
- package/dist/src/theme/ContrastLevel.d.ts +3 -0
- package/dist/src/theme/ContrastLevel.d.ts.map +1 -0
- package/dist/src/theme/MotionScheme.d.ts +3 -0
- package/dist/src/theme/MotionScheme.d.ts.map +1 -0
- package/dist/src/theme/ThemeElement.d.ts +91 -0
- package/dist/src/theme/ThemeElement.d.ts.map +1 -0
- package/dist/src/theme/index.d.ts +5 -0
- package/dist/src/theme/index.d.ts.map +1 -0
- package/dist/src/toc/TocElement.d.ts +86 -0
- package/dist/src/toc/TocElement.d.ts.map +1 -0
- package/dist/src/toc/TocGenerator.d.ts +25 -0
- package/dist/src/toc/TocGenerator.d.ts.map +1 -0
- package/dist/src/toc/TocItemElement.d.ts +49 -0
- package/dist/src/toc/TocItemElement.d.ts.map +1 -0
- package/dist/src/toc/index.d.ts +4 -0
- package/dist/src/toc/index.d.ts.map +1 -0
- package/dist/src/toolbar/ToolbarElement.d.ts +89 -0
- package/dist/src/toolbar/ToolbarElement.d.ts.map +1 -0
- package/dist/src/toolbar/ToolbarShape.d.ts +3 -0
- package/dist/src/toolbar/ToolbarShape.d.ts.map +1 -0
- package/dist/src/toolbar/ToolbarVariant.d.ts +3 -0
- package/dist/src/toolbar/ToolbarVariant.d.ts.map +1 -0
- package/dist/src/toolbar/index.d.ts +4 -0
- package/dist/src/toolbar/index.d.ts.map +1 -0
- package/dist/src/tooltip/RichTooltipActionElement.d.ts +21 -0
- package/dist/src/tooltip/RichTooltipActionElement.d.ts.map +1 -0
- package/dist/src/tooltip/RichTooltipElement.d.ts +116 -0
- package/dist/src/tooltip/RichTooltipElement.d.ts.map +1 -0
- package/dist/src/tooltip/RichTooltipPosition.d.ts +3 -0
- package/dist/src/tooltip/RichTooltipPosition.d.ts.map +1 -0
- package/dist/src/tooltip/TooltipElement.d.ts +73 -0
- package/dist/src/tooltip/TooltipElement.d.ts.map +1 -0
- package/dist/src/tooltip/TooltipElementBase.d.ts +69 -0
- package/dist/src/tooltip/TooltipElementBase.d.ts.map +1 -0
- package/dist/src/tooltip/TooltipPosition.d.ts +3 -0
- package/dist/src/tooltip/TooltipPosition.d.ts.map +1 -0
- package/dist/src/tooltip/TooltipTouchGestures.d.ts +3 -0
- package/dist/src/tooltip/TooltipTouchGestures.d.ts.map +1 -0
- package/dist/src/tooltip/index.d.ts +8 -0
- package/dist/src/tooltip/index.d.ts.map +1 -0
- package/dist/stepper.js +1498 -0
- package/dist/stepper.js.map +1 -0
- package/dist/stepper.min.js +57 -0
- package/dist/stepper.min.js.map +1 -0
- package/dist/switch.js +758 -0
- package/dist/switch.js.map +1 -0
- package/dist/switch.min.js +40 -0
- package/dist/switch.min.js.map +1 -0
- package/dist/tabs.js +1173 -0
- package/dist/tabs.js.map +1 -0
- package/dist/tabs.min.js +51 -0
- package/dist/tabs.min.js.map +1 -0
- package/dist/textarea-autosize.js +688 -0
- package/dist/textarea-autosize.js.map +1 -0
- package/dist/textarea-autosize.min.js +37 -0
- package/dist/textarea-autosize.min.js.map +1 -0
- package/dist/theme.js +3712 -0
- package/dist/theme.js.map +1 -0
- package/dist/theme.min.js +339 -0
- package/dist/theme.min.js.map +1 -0
- package/dist/toc.js +795 -0
- package/dist/toc.js.map +1 -0
- package/dist/toc.min.js +45 -0
- package/dist/toc.min.js.map +1 -0
- package/dist/toolbar.js +557 -0
- package/dist/toolbar.js.map +1 -0
- package/dist/toolbar.min.js +29 -0
- package/dist/toolbar.min.js.map +1 -0
- package/dist/tooltip.js +1378 -0
- package/dist/tooltip.js.map +1 -0
- package/dist/tooltip.min.js +57 -0
- package/dist/tooltip.min.js.map +1 -0
- package/package.json +287 -0
package/dist/option.js
ADDED
|
@@ -0,0 +1,802 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* Copyright (c) 2025 matraic
|
|
4
|
+
* See LICENSE file in the project root for full license text.
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement, html, unsafeCSS, css } from 'lit';
|
|
7
|
+
import { Selected, Disabled, Role, DesignToken, getTextContent, ScrollController } from '@m3e/web/core';
|
|
8
|
+
import { typeaheadLabel, removeAriaReferencedId, addAriaReferencedId } from '@m3e/web/core/a11y';
|
|
9
|
+
import { positionAnchor } from '@m3e/web/core/anchoring';
|
|
10
|
+
import { M3eDirectionality } from '@m3e/web/core/bidi';
|
|
11
|
+
|
|
12
|
+
/******************************************************************************
|
|
13
|
+
Copyright (c) Microsoft Corporation.
|
|
14
|
+
|
|
15
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
16
|
+
purpose with or without fee is hereby granted.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
19
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
20
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
21
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
22
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
23
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
24
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
25
|
+
***************************************************************************** */
|
|
26
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
27
|
+
|
|
28
|
+
function __decorate(decorators, target, key, desc) {
|
|
29
|
+
var c = arguments.length,
|
|
30
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
31
|
+
d;
|
|
32
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
33
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
34
|
+
}
|
|
35
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
36
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
37
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
38
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
39
|
+
}
|
|
40
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
41
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
42
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
43
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
44
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
45
|
+
}
|
|
46
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
47
|
+
var e = new Error(message);
|
|
48
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @license
|
|
53
|
+
* Copyright 2017 Google LLC
|
|
54
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
|
+
*/
|
|
56
|
+
const t$1 = t => (e, o) => {
|
|
57
|
+
void 0 !== o ? o.addInitializer(() => {
|
|
58
|
+
customElements.define(t, e);
|
|
59
|
+
}) : customElements.define(t, e);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @license
|
|
64
|
+
* Copyright 2019 Google LLC
|
|
65
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
66
|
+
*/
|
|
67
|
+
const t = globalThis,
|
|
68
|
+
e$3 = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
69
|
+
s = Symbol(),
|
|
70
|
+
o$2 = new WeakMap();
|
|
71
|
+
let n$2 = class n {
|
|
72
|
+
constructor(t, e, o) {
|
|
73
|
+
if (this._$cssResult$ = true, o !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
74
|
+
this.cssText = t, this.t = e;
|
|
75
|
+
}
|
|
76
|
+
get styleSheet() {
|
|
77
|
+
let t = this.o;
|
|
78
|
+
const s = this.t;
|
|
79
|
+
if (e$3 && void 0 === t) {
|
|
80
|
+
const e = void 0 !== s && 1 === s.length;
|
|
81
|
+
e && (t = o$2.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$2.set(s, t));
|
|
82
|
+
}
|
|
83
|
+
return t;
|
|
84
|
+
}
|
|
85
|
+
toString() {
|
|
86
|
+
return this.cssText;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const r$2 = t => new n$2("string" == typeof t ? t : t + "", void 0, s),
|
|
90
|
+
S = (s, o) => {
|
|
91
|
+
if (e$3) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
|
|
92
|
+
const o = document.createElement("style"),
|
|
93
|
+
n = t.litNonce;
|
|
94
|
+
void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
c$1 = e$3 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
98
|
+
let e = "";
|
|
99
|
+
for (const s of t.cssRules) e += s.cssText;
|
|
100
|
+
return r$2(e);
|
|
101
|
+
})(t) : t;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @license
|
|
105
|
+
* Copyright 2017 Google LLC
|
|
106
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
107
|
+
*/
|
|
108
|
+
const {
|
|
109
|
+
is: i,
|
|
110
|
+
defineProperty: e$2,
|
|
111
|
+
getOwnPropertyDescriptor: h,
|
|
112
|
+
getOwnPropertyNames: r$1,
|
|
113
|
+
getOwnPropertySymbols: o$1,
|
|
114
|
+
getPrototypeOf: n$1
|
|
115
|
+
} = Object,
|
|
116
|
+
a = globalThis,
|
|
117
|
+
c = a.trustedTypes,
|
|
118
|
+
l = c ? c.emptyScript : "",
|
|
119
|
+
p = a.reactiveElementPolyfillSupport,
|
|
120
|
+
d = (t, s) => t,
|
|
121
|
+
u = {
|
|
122
|
+
toAttribute(t, s) {
|
|
123
|
+
switch (s) {
|
|
124
|
+
case Boolean:
|
|
125
|
+
t = t ? l : null;
|
|
126
|
+
break;
|
|
127
|
+
case Object:
|
|
128
|
+
case Array:
|
|
129
|
+
t = null == t ? t : JSON.stringify(t);
|
|
130
|
+
}
|
|
131
|
+
return t;
|
|
132
|
+
},
|
|
133
|
+
fromAttribute(t, s) {
|
|
134
|
+
let i = t;
|
|
135
|
+
switch (s) {
|
|
136
|
+
case Boolean:
|
|
137
|
+
i = null !== t;
|
|
138
|
+
break;
|
|
139
|
+
case Number:
|
|
140
|
+
i = null === t ? null : Number(t);
|
|
141
|
+
break;
|
|
142
|
+
case Object:
|
|
143
|
+
case Array:
|
|
144
|
+
try {
|
|
145
|
+
i = JSON.parse(t);
|
|
146
|
+
} catch (t) {
|
|
147
|
+
i = null;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return i;
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
f = (t, s) => !i(t, s),
|
|
154
|
+
b = {
|
|
155
|
+
attribute: true,
|
|
156
|
+
type: String,
|
|
157
|
+
converter: u,
|
|
158
|
+
reflect: false,
|
|
159
|
+
useDefault: false,
|
|
160
|
+
hasChanged: f
|
|
161
|
+
};
|
|
162
|
+
Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= new WeakMap();
|
|
163
|
+
class y extends HTMLElement {
|
|
164
|
+
static addInitializer(t) {
|
|
165
|
+
this._$Ei(), (this.l ??= []).push(t);
|
|
166
|
+
}
|
|
167
|
+
static get observedAttributes() {
|
|
168
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
169
|
+
}
|
|
170
|
+
static createProperty(t, s = b) {
|
|
171
|
+
if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
172
|
+
const i = Symbol(),
|
|
173
|
+
h = this.getPropertyDescriptor(t, i, s);
|
|
174
|
+
void 0 !== h && e$2(this.prototype, t, h);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
static getPropertyDescriptor(t, s, i) {
|
|
178
|
+
const {
|
|
179
|
+
get: e,
|
|
180
|
+
set: r
|
|
181
|
+
} = h(this.prototype, t) ?? {
|
|
182
|
+
get() {
|
|
183
|
+
return this[s];
|
|
184
|
+
},
|
|
185
|
+
set(t) {
|
|
186
|
+
this[s] = t;
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
return {
|
|
190
|
+
get: e,
|
|
191
|
+
set(s) {
|
|
192
|
+
const h = e?.call(this);
|
|
193
|
+
r?.call(this, s), this.requestUpdate(t, h, i);
|
|
194
|
+
},
|
|
195
|
+
configurable: true,
|
|
196
|
+
enumerable: true
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
static getPropertyOptions(t) {
|
|
200
|
+
return this.elementProperties.get(t) ?? b;
|
|
201
|
+
}
|
|
202
|
+
static _$Ei() {
|
|
203
|
+
if (this.hasOwnProperty(d("elementProperties"))) return;
|
|
204
|
+
const t = n$1(this);
|
|
205
|
+
t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
206
|
+
}
|
|
207
|
+
static finalize() {
|
|
208
|
+
if (this.hasOwnProperty(d("finalized"))) return;
|
|
209
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
210
|
+
const t = this.properties,
|
|
211
|
+
s = [...r$1(t), ...o$1(t)];
|
|
212
|
+
for (const i of s) this.createProperty(i, t[i]);
|
|
213
|
+
}
|
|
214
|
+
const t = this[Symbol.metadata];
|
|
215
|
+
if (null !== t) {
|
|
216
|
+
const s = litPropertyMetadata.get(t);
|
|
217
|
+
if (void 0 !== s) for (const [t, i] of s) this.elementProperties.set(t, i);
|
|
218
|
+
}
|
|
219
|
+
this._$Eh = new Map();
|
|
220
|
+
for (const [t, s] of this.elementProperties) {
|
|
221
|
+
const i = this._$Eu(t, s);
|
|
222
|
+
void 0 !== i && this._$Eh.set(i, t);
|
|
223
|
+
}
|
|
224
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
225
|
+
}
|
|
226
|
+
static finalizeStyles(s) {
|
|
227
|
+
const i = [];
|
|
228
|
+
if (Array.isArray(s)) {
|
|
229
|
+
const e = new Set(s.flat(1 / 0).reverse());
|
|
230
|
+
for (const s of e) i.unshift(c$1(s));
|
|
231
|
+
} else void 0 !== s && i.push(c$1(s));
|
|
232
|
+
return i;
|
|
233
|
+
}
|
|
234
|
+
static _$Eu(t, s) {
|
|
235
|
+
const i = s.attribute;
|
|
236
|
+
return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
237
|
+
}
|
|
238
|
+
constructor() {
|
|
239
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
240
|
+
}
|
|
241
|
+
_$Ev() {
|
|
242
|
+
this._$ES = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
|
|
243
|
+
}
|
|
244
|
+
addController(t) {
|
|
245
|
+
(this._$EO ??= new Set()).add(t), void 0 !== this.renderRoot && this.isConnected && t.hostConnected?.();
|
|
246
|
+
}
|
|
247
|
+
removeController(t) {
|
|
248
|
+
this._$EO?.delete(t);
|
|
249
|
+
}
|
|
250
|
+
_$E_() {
|
|
251
|
+
const t = new Map(),
|
|
252
|
+
s = this.constructor.elementProperties;
|
|
253
|
+
for (const i of s.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
254
|
+
t.size > 0 && (this._$Ep = t);
|
|
255
|
+
}
|
|
256
|
+
createRenderRoot() {
|
|
257
|
+
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
258
|
+
return S(t, this.constructor.elementStyles), t;
|
|
259
|
+
}
|
|
260
|
+
connectedCallback() {
|
|
261
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(t => t.hostConnected?.());
|
|
262
|
+
}
|
|
263
|
+
enableUpdating(t) {}
|
|
264
|
+
disconnectedCallback() {
|
|
265
|
+
this._$EO?.forEach(t => t.hostDisconnected?.());
|
|
266
|
+
}
|
|
267
|
+
attributeChangedCallback(t, s, i) {
|
|
268
|
+
this._$AK(t, i);
|
|
269
|
+
}
|
|
270
|
+
_$ET(t, s) {
|
|
271
|
+
const i = this.constructor.elementProperties.get(t),
|
|
272
|
+
e = this.constructor._$Eu(t, i);
|
|
273
|
+
if (void 0 !== e && true === i.reflect) {
|
|
274
|
+
const h = (void 0 !== i.converter?.toAttribute ? i.converter : u).toAttribute(s, i.type);
|
|
275
|
+
this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
_$AK(t, s) {
|
|
279
|
+
const i = this.constructor,
|
|
280
|
+
e = i._$Eh.get(t);
|
|
281
|
+
if (void 0 !== e && this._$Em !== e) {
|
|
282
|
+
const t = i.getPropertyOptions(e),
|
|
283
|
+
h = "function" == typeof t.converter ? {
|
|
284
|
+
fromAttribute: t.converter
|
|
285
|
+
} : void 0 !== t.converter?.fromAttribute ? t.converter : u;
|
|
286
|
+
this._$Em = e;
|
|
287
|
+
const r = h.fromAttribute(s, t.type);
|
|
288
|
+
this[e] = r ?? this._$Ej?.get(e) ?? r, this._$Em = null;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
requestUpdate(t, s, i) {
|
|
292
|
+
if (void 0 !== t) {
|
|
293
|
+
const e = this.constructor,
|
|
294
|
+
h = this[t];
|
|
295
|
+
if (i ??= e.getPropertyOptions(t), !((i.hasChanged ?? f)(h, s) || i.useDefault && i.reflect && h === this._$Ej?.get(t) && !this.hasAttribute(e._$Eu(t, i)))) return;
|
|
296
|
+
this.C(t, s, i);
|
|
297
|
+
}
|
|
298
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
299
|
+
}
|
|
300
|
+
C(t, s, {
|
|
301
|
+
useDefault: i,
|
|
302
|
+
reflect: e,
|
|
303
|
+
wrapped: h
|
|
304
|
+
}, r) {
|
|
305
|
+
i && !(this._$Ej ??= new Map()).has(t) && (this._$Ej.set(t, r ?? s ?? this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && (this._$Eq ??= new Set()).add(t));
|
|
306
|
+
}
|
|
307
|
+
async _$EP() {
|
|
308
|
+
this.isUpdatePending = true;
|
|
309
|
+
try {
|
|
310
|
+
await this._$ES;
|
|
311
|
+
} catch (t) {
|
|
312
|
+
Promise.reject(t);
|
|
313
|
+
}
|
|
314
|
+
const t = this.scheduleUpdate();
|
|
315
|
+
return null != t && (await t), !this.isUpdatePending;
|
|
316
|
+
}
|
|
317
|
+
scheduleUpdate() {
|
|
318
|
+
return this.performUpdate();
|
|
319
|
+
}
|
|
320
|
+
performUpdate() {
|
|
321
|
+
if (!this.isUpdatePending) return;
|
|
322
|
+
if (!this.hasUpdated) {
|
|
323
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
324
|
+
for (const [t, s] of this._$Ep) this[t] = s;
|
|
325
|
+
this._$Ep = void 0;
|
|
326
|
+
}
|
|
327
|
+
const t = this.constructor.elementProperties;
|
|
328
|
+
if (t.size > 0) for (const [s, i] of t) {
|
|
329
|
+
const {
|
|
330
|
+
wrapped: t
|
|
331
|
+
} = i,
|
|
332
|
+
e = this[s];
|
|
333
|
+
true !== t || this._$AL.has(s) || void 0 === e || this.C(s, void 0, i, e);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
let t = false;
|
|
337
|
+
const s = this._$AL;
|
|
338
|
+
try {
|
|
339
|
+
t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EM();
|
|
340
|
+
} catch (s) {
|
|
341
|
+
throw t = false, this._$EM(), s;
|
|
342
|
+
}
|
|
343
|
+
t && this._$AE(s);
|
|
344
|
+
}
|
|
345
|
+
willUpdate(t) {}
|
|
346
|
+
_$AE(t) {
|
|
347
|
+
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
|
|
348
|
+
}
|
|
349
|
+
_$EM() {
|
|
350
|
+
this._$AL = new Map(), this.isUpdatePending = false;
|
|
351
|
+
}
|
|
352
|
+
get updateComplete() {
|
|
353
|
+
return this.getUpdateComplete();
|
|
354
|
+
}
|
|
355
|
+
getUpdateComplete() {
|
|
356
|
+
return this._$ES;
|
|
357
|
+
}
|
|
358
|
+
shouldUpdate(t) {
|
|
359
|
+
return true;
|
|
360
|
+
}
|
|
361
|
+
update(t) {
|
|
362
|
+
this._$Eq &&= this._$Eq.forEach(t => this._$ET(t, this[t])), this._$EM();
|
|
363
|
+
}
|
|
364
|
+
updated(t) {}
|
|
365
|
+
firstUpdated(t) {}
|
|
366
|
+
}
|
|
367
|
+
y.elementStyles = [], y.shadowRootOptions = {
|
|
368
|
+
mode: "open"
|
|
369
|
+
}, y[d("elementProperties")] = new Map(), y[d("finalized")] = new Map(), p?.({
|
|
370
|
+
ReactiveElement: y
|
|
371
|
+
}), (a.reactiveElementVersions ??= []).push("2.1.1");
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @license
|
|
375
|
+
* Copyright 2017 Google LLC
|
|
376
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
377
|
+
*/
|
|
378
|
+
const o = {
|
|
379
|
+
attribute: true,
|
|
380
|
+
type: String,
|
|
381
|
+
converter: u,
|
|
382
|
+
reflect: false,
|
|
383
|
+
hasChanged: f
|
|
384
|
+
},
|
|
385
|
+
r = (t = o, e, r) => {
|
|
386
|
+
const {
|
|
387
|
+
kind: n,
|
|
388
|
+
metadata: i
|
|
389
|
+
} = r;
|
|
390
|
+
let s = globalThis.litPropertyMetadata.get(i);
|
|
391
|
+
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map()), "setter" === n && ((t = Object.create(t)).wrapped = true), s.set(r.name, t), "accessor" === n) {
|
|
392
|
+
const {
|
|
393
|
+
name: o
|
|
394
|
+
} = r;
|
|
395
|
+
return {
|
|
396
|
+
set(r) {
|
|
397
|
+
const n = e.get.call(this);
|
|
398
|
+
e.set.call(this, r), this.requestUpdate(o, n, t);
|
|
399
|
+
},
|
|
400
|
+
init(e) {
|
|
401
|
+
return void 0 !== e && this.C(o, void 0, t, e), e;
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
if ("setter" === n) {
|
|
406
|
+
const {
|
|
407
|
+
name: o
|
|
408
|
+
} = r;
|
|
409
|
+
return function (r) {
|
|
410
|
+
const n = this[o];
|
|
411
|
+
e.call(this, r), this.requestUpdate(o, n, t);
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
throw Error("Unsupported decorator location: " + n);
|
|
415
|
+
};
|
|
416
|
+
function n(t) {
|
|
417
|
+
return (e, o) => "object" == typeof o ? r(t, e, o) : ((t, e, o) => {
|
|
418
|
+
const r = e.hasOwnProperty(o);
|
|
419
|
+
return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
420
|
+
})(t, e, o);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* @license
|
|
425
|
+
* Copyright 2017 Google LLC
|
|
426
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
427
|
+
*/
|
|
428
|
+
const e$1 = (e, t, c) => (c.configurable = true, c.enumerable = true, Reflect.decorate && "object" != typeof t && Object.defineProperty(e, t, c), c);
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* @license
|
|
432
|
+
* Copyright 2017 Google LLC
|
|
433
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
434
|
+
*/
|
|
435
|
+
function e(e, r) {
|
|
436
|
+
return (n, s, i) => {
|
|
437
|
+
const o = t => t.renderRoot?.querySelector(e) ?? null;
|
|
438
|
+
return e$1(n, s, {
|
|
439
|
+
get() {
|
|
440
|
+
return o(this);
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
var _M3eOptionElement_instances, _M3eOptionElement_value, _M3eOptionElement_textContent, _M3eOptionElement_handleSlotChange;
|
|
447
|
+
/**
|
|
448
|
+
* An option that can be selected.
|
|
449
|
+
*
|
|
450
|
+
* @description
|
|
451
|
+
* The `m3e-option` component represents an individual selectable item within an option list,
|
|
452
|
+
* adhering to Material Design 3 specifications. It provides visual feedback through state layers and ripple effects,
|
|
453
|
+
* supports single and multiple selection modes, and includes comprehensive accessibility features including
|
|
454
|
+
* keyboard navigation and focus management. The component automatically manages its visual appearance based on
|
|
455
|
+
* selection and disabled states, with configurable styling for interactive and non-interactive variants.
|
|
456
|
+
*
|
|
457
|
+
* @tag m3e-option
|
|
458
|
+
*
|
|
459
|
+
* @slot - Renders the label of the option.
|
|
460
|
+
*
|
|
461
|
+
* @attr disabled - Whether the element is disabled.
|
|
462
|
+
* @attr selected - Whether the element is selected.
|
|
463
|
+
* @attr value - A string representing the value of the option.
|
|
464
|
+
*
|
|
465
|
+
* @cssprop --m3e-option-container-height - The height of the option container.
|
|
466
|
+
* @cssprop --m3e-option-color - The text color of the option.
|
|
467
|
+
* @cssprop --m3e-option-container-hover-color - The color for the hover state layer.
|
|
468
|
+
* @cssprop --m3e-option-container-focus-color - The color for the focus state layer.
|
|
469
|
+
* @cssprop --m3e-option-ripple-color - The color of the ripple effect.
|
|
470
|
+
* @cssprop --m3e-option-selected-color - The text color when the option is selected.
|
|
471
|
+
* @cssprop --m3e-option-selected-container-color - The background color when the option is selected.
|
|
472
|
+
* @cssprop --m3e-option-selected-container-hover-color - The hover color for the selected state layer.
|
|
473
|
+
* @cssprop --m3e-option-selected-container-focus-color - The focus color for the selected state layer.
|
|
474
|
+
* @cssprop --m3e-option-selected-ripple-color - The ripple color when the option is selected.
|
|
475
|
+
* @cssprop --m3e-option-disabled-color - The text color when the option is disabled.
|
|
476
|
+
* @cssprop --m3e-option-disabled-opacity - The opacity level applied to the disabled text color.
|
|
477
|
+
* @cssprop --m3e-option-icon-label-space - The spacing between the icon and label.
|
|
478
|
+
* @cssprop --m3e-option-padding-start - The left padding of the option content.
|
|
479
|
+
* @cssprop --m3e-option-padding-end - The right padding of the option content.
|
|
480
|
+
* @cssprop --m3e-option-label-text-font-size - The font size of the option label.
|
|
481
|
+
* @cssprop --m3e-option-label-text-font-weight - The font weight of the option label.
|
|
482
|
+
* @cssprop --m3e-option-label-text-line-height - The line height of the option label.
|
|
483
|
+
* @cssprop --m3e-option-label-text-tracking - The letter spacing of the option label.
|
|
484
|
+
* @cssprop --m3e-option-focus-ring-shape - The corner radius of the focus ring.
|
|
485
|
+
* @cssprop --m3e-option-icon-size - The size of the option icons.
|
|
486
|
+
* @cssprop --m3e-option-shape - Base shape of the option.
|
|
487
|
+
* @cssprop --m3e-option-selected-shape - Shape used for a selected option.
|
|
488
|
+
* @cssprop --m3e-option-first-child-shape - Shape for the first option in a list.
|
|
489
|
+
* @cssprop --m3e-option-last-child-shape - Shape for the last option in a list.
|
|
490
|
+
|
|
491
|
+
*/
|
|
492
|
+
let M3eOptionElement = class M3eOptionElement extends Selected(Disabled(Role(LitElement, "option"))) {
|
|
493
|
+
constructor() {
|
|
494
|
+
super(...arguments);
|
|
495
|
+
_M3eOptionElement_instances.add(this);
|
|
496
|
+
/** @private */
|
|
497
|
+
_M3eOptionElement_value.set(this, void 0);
|
|
498
|
+
/** @private */
|
|
499
|
+
_M3eOptionElement_textContent.set(this, "");
|
|
500
|
+
}
|
|
501
|
+
/** A string representing the value of the option. */
|
|
502
|
+
get value() {
|
|
503
|
+
return __classPrivateFieldGet(this, _M3eOptionElement_value, "f") ?? __classPrivateFieldGet(this, _M3eOptionElement_textContent, "f");
|
|
504
|
+
}
|
|
505
|
+
set value(value) {
|
|
506
|
+
__classPrivateFieldSet(this, _M3eOptionElement_value, value, "f");
|
|
507
|
+
}
|
|
508
|
+
/** @internal */
|
|
509
|
+
[(_M3eOptionElement_value = new WeakMap(), _M3eOptionElement_textContent = new WeakMap(), _M3eOptionElement_instances = new WeakSet(), typeaheadLabel)]() {
|
|
510
|
+
return __classPrivateFieldGet(this, _M3eOptionElement_textContent, "f");
|
|
511
|
+
}
|
|
512
|
+
/** Whether the option represents an empty option. */
|
|
513
|
+
get isEmpty() {
|
|
514
|
+
return this.value === "";
|
|
515
|
+
}
|
|
516
|
+
/** @inheritdoc */
|
|
517
|
+
connectedCallback() {
|
|
518
|
+
super.connectedCallback();
|
|
519
|
+
[this.focusRing, this.stateLayer, this._ripple].forEach(x => x?.attach(this));
|
|
520
|
+
}
|
|
521
|
+
/** @inheritdoc */
|
|
522
|
+
firstUpdated(_changedProperties) {
|
|
523
|
+
super.firstUpdated(_changedProperties);
|
|
524
|
+
[this.focusRing, this.stateLayer, this._ripple].forEach(x => x?.attach(this));
|
|
525
|
+
}
|
|
526
|
+
/** @inheritdoc */
|
|
527
|
+
update(changedProperties) {
|
|
528
|
+
super.update(changedProperties);
|
|
529
|
+
if (changedProperties.has("selected") && this.selected) {
|
|
530
|
+
const panel = this.closest("[role='listbox']") ?? this.closest("m3e-select");
|
|
531
|
+
if (panel && panel.ariaMultiSelectable !== "true" && !panel.hasAttribute("multi")) {
|
|
532
|
+
panel.querySelectorAll("m3e-option").forEach(x => {
|
|
533
|
+
if (x !== this && x.selected) {
|
|
534
|
+
x.selected = false;
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
/** @inheritdoc */
|
|
541
|
+
render() {
|
|
542
|
+
return html`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg></div><m3e-text-overflow class="label"><slot @slotchange="${__classPrivateFieldGet(this, _M3eOptionElement_instances, "m", _M3eOptionElement_handleSlotChange)}"></slot></m3e-text-overflow></div></div>`;
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
_M3eOptionElement_handleSlotChange = function _M3eOptionElement_handleSlotChange(e) {
|
|
546
|
+
__classPrivateFieldSet(this, _M3eOptionElement_textContent, getTextContent(e.target), "f");
|
|
547
|
+
this.classList.toggle("-empty", this.isEmpty);
|
|
548
|
+
};
|
|
549
|
+
/** The styles of the element. */
|
|
550
|
+
M3eOptionElement.styles = css`:host { display: block; outline: none; user-select: none; flex: none; height: var(--m3e-option-container-height, 2.75rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) .base { color: var(--m3e-option-color, ${DesignToken.color.onSurface}); --m3e-state-layer-hover-color: var(--m3e-option-container-hover-color, ${DesignToken.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-option-container-focus-color, ${DesignToken.color.onSurface}); --m3e-ripple-color: var(--m3e-option-ripple-color, ${DesignToken.color.onSurface}); } :host(:not([aria-disabled="true"]):not(.-empty)[selected]) .base { color: var(--m3e-option-selected-color, ${DesignToken.color.onTertiaryContainer}); background-color: var(--m3e-option-selected-container-color, ${DesignToken.color.tertiaryContainer}); --m3e-state-layer-hover-color: var( --m3e-option-selected-container-hover-color, ${DesignToken.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-option-selected-container-focus-color, ${DesignToken.color.onTertiaryContainer} ); --m3e-ripple-color: var(--m3e-option-selected-ripple-color, ${DesignToken.color.onTertiaryContainer}); } :host(:not([aria-disabled="true"])) { cursor: pointer; } :host([aria-disabled="true"]) .base { color: color-mix( in srgb, var(--m3e-option-disabled-color, ${DesignToken.color.onSurface}) var(--m3e-option-disabled-opacity, 38%), transparent ); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: var(--m3e-option-shape, ${DesignToken.shape.corner.extraSmall}); transition: ${unsafeCSS(`border-radius ${DesignToken.motion.spring.fastEffects}`)}; } :host([selected]:not(.-first)) .base { border-top-left-radius: var(--m3e-option-selected-shape, ${DesignToken.shape.corner.medium}); border-top-right-radius: var(--m3e-option-selected-shape, ${DesignToken.shape.corner.medium}); } :host([selected]:not(.-last)) .base { border-bottom-left-radius: var(--m3e-option-selected-shape, ${DesignToken.shape.corner.medium}); border-bottom-right-radius: var(--m3e-option-selected-shape, ${DesignToken.shape.corner.medium}); } :host(.-first) .base { border-top-left-radius: var(--m3e-option-first-child-shape, ${DesignToken.shape.corner.medium}); border-top-right-radius: var(--m3e-option-first-child-shape, ${DesignToken.shape.corner.medium}); } :host(.-last) .base { border-bottom-left-radius: var(--m3e-option-last-child-shape, ${DesignToken.shape.corner.medium}); border-bottom-right-radius: var(--m3e-option-last-child-shape, ${DesignToken.shape.corner.medium}); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { flex: 1 1 auto; display: inline-flex; align-items: center; width: 100%; overflow: hidden; column-gap: var(--m3e-option-icon-label-space, 0.5rem); padding-inline-start: var(--_option-padding-start, var(--m3e-option-padding-start, 0.75rem)); padding-inline-end: var(--m3e-option-padding-end, 0.75rem); font-size: var(--m3e-option-label-text-font-size, ${DesignToken.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-option-label-text-font-weight, ${DesignToken.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-option-label-text-line-height, ${DesignToken.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-option-label-text-tracking, ${DesignToken.typescale.standard.label.large.tracking}); } .focus-ring { border-radius: var(--m3e-option-focus-ring-shape, inherit); } .icon { margin-inline-start: calc(0px - var(--m3e-option-icon-label-space, 0.5rem)); transition: ${unsafeCSS(`margin-inline-start ${DesignToken.motion.spring.fastEffects}, width ${DesignToken.motion.spring.fastEffects}`)}; } :host([selected]) .icon { margin-inline-start: 0; width: var(--m3e-option-icon-size, 1.25rem); } .icon { flex: none; width: 0px; font-size: var(--m3e-option-icon-size, 1.25rem); } :host(.-empty) .icon, :host(.-hide-selection-indicator) .icon, :host(:not([selected])) .check { display: none; } @media (forced-colors: active) { .base { background-color: Menu; color: MenuText; } :host([aria-disabled="true"]) .base { color: GrayText; } } @media (prefers-reduced-motion) { .icon, .base { transition: none; } }`;
|
|
551
|
+
__decorate([e(".focus-ring")], M3eOptionElement.prototype, "focusRing", void 0);
|
|
552
|
+
__decorate([e(".state-layer")], M3eOptionElement.prototype, "stateLayer", void 0);
|
|
553
|
+
__decorate([e(".ripple")], M3eOptionElement.prototype, "_ripple", void 0);
|
|
554
|
+
__decorate([n()], M3eOptionElement.prototype, "value", null);
|
|
555
|
+
M3eOptionElement = __decorate([t$1("m3e-option")], M3eOptionElement);
|
|
556
|
+
|
|
557
|
+
var _M3eOptGroupElement_instances, _M3eOptGroupElement_labelId, _M3eOptGroupElement_label, _M3eOptGroupElement_handleLabelSlotChange;
|
|
558
|
+
var M3eOptGroupElement_1;
|
|
559
|
+
/**
|
|
560
|
+
* Groups options under a subheading.
|
|
561
|
+
*
|
|
562
|
+
* @description
|
|
563
|
+
* The `m3e-optgroup` component organizes related options within an option list,
|
|
564
|
+
* providing visual and semantic grouping through a customizable label. It manages `aria-labelledby`
|
|
565
|
+
* associations automatically and applies Material Design 3 typography and spacing conventions to
|
|
566
|
+
* the group label. The component maintains proper semantic structure by utilizing the ARIA `group` role,
|
|
567
|
+
* ensuring that assistive technologies correctly interpret the hierarchical relationship between the label
|
|
568
|
+
* and contained options.
|
|
569
|
+
*
|
|
570
|
+
* @tag m3e-optgroup
|
|
571
|
+
*
|
|
572
|
+
* @slot - Renders the options of the group.
|
|
573
|
+
* @slot label - Renders the label of the group.
|
|
574
|
+
*
|
|
575
|
+
* @cssprop --m3e-option-height - The height of the group label container.
|
|
576
|
+
* @cssprop --m3e-option-font-size - The font size of the group label.
|
|
577
|
+
* @cssprop --m3e-option-font-weight - The font weight of the group label.
|
|
578
|
+
* @cssprop --m3e-option-line-height - The line height of the group label.
|
|
579
|
+
* @cssprop --m3e-option-tracking - The letter spacing of the group label.
|
|
580
|
+
* @cssprop --m3e-option-padding-end - The right padding of the label.
|
|
581
|
+
* @cssprop --m3e-option-padding-start - The left padding of the label.
|
|
582
|
+
* @cssprop --m3e-option-color - The text color of the group label.
|
|
583
|
+
*/
|
|
584
|
+
let M3eOptGroupElement = M3eOptGroupElement_1 = class M3eOptGroupElement extends Role(LitElement, "group") {
|
|
585
|
+
constructor() {
|
|
586
|
+
super(...arguments);
|
|
587
|
+
_M3eOptGroupElement_instances.add(this);
|
|
588
|
+
/** @private */
|
|
589
|
+
_M3eOptGroupElement_labelId.set(this, `m3e-optgroup-label-${M3eOptGroupElement_1.__nextId++}`);
|
|
590
|
+
/** @private */
|
|
591
|
+
_M3eOptGroupElement_label.set(this, void 0);
|
|
592
|
+
}
|
|
593
|
+
/** @inheritdoc */
|
|
594
|
+
render() {
|
|
595
|
+
return html`<m3e-text-overflow class="label"><slot name="label" @slotchange="${__classPrivateFieldGet(this, _M3eOptGroupElement_instances, "m", _M3eOptGroupElement_handleLabelSlotChange)}"></slot></m3e-text-overflow><slot></slot>`;
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
_M3eOptGroupElement_labelId = new WeakMap();
|
|
599
|
+
_M3eOptGroupElement_label = new WeakMap();
|
|
600
|
+
_M3eOptGroupElement_instances = new WeakSet();
|
|
601
|
+
_M3eOptGroupElement_handleLabelSlotChange = function _M3eOptGroupElement_handleLabelSlotChange(e) {
|
|
602
|
+
const label = e.target.assignedElements({
|
|
603
|
+
flatten: true
|
|
604
|
+
})[0] ?? undefined;
|
|
605
|
+
if (label === __classPrivateFieldGet(this, _M3eOptGroupElement_label, "f")) return;
|
|
606
|
+
if (__classPrivateFieldGet(this, _M3eOptGroupElement_label, "f")?.id) {
|
|
607
|
+
removeAriaReferencedId(this, "aria-labelledby", __classPrivateFieldGet(this, _M3eOptGroupElement_label, "f").id);
|
|
608
|
+
if (__classPrivateFieldGet(this, _M3eOptGroupElement_label, "f").id === __classPrivateFieldGet(this, _M3eOptGroupElement_labelId, "f")) {
|
|
609
|
+
__classPrivateFieldGet(this, _M3eOptGroupElement_label, "f").id = "";
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
__classPrivateFieldSet(this, _M3eOptGroupElement_label, label, "f");
|
|
613
|
+
if (__classPrivateFieldGet(this, _M3eOptGroupElement_label, "f")) {
|
|
614
|
+
__classPrivateFieldGet(this, _M3eOptGroupElement_label, "f").id = __classPrivateFieldGet(this, _M3eOptGroupElement_label, "f").id || __classPrivateFieldGet(this, _M3eOptGroupElement_labelId, "f");
|
|
615
|
+
addAriaReferencedId(this, "aria-labelledby", __classPrivateFieldGet(this, _M3eOptGroupElement_label, "f").id);
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
/** The styles of the element. */
|
|
619
|
+
M3eOptGroupElement.styles = css`:host { display: block; --_option-padding-start: calc(var(--m3e-option-padding-start, 0.75rem) * 2); } .label { height: var(--m3e-option-height, 3rem); font-size: var(--m3e-option-font-size, ${DesignToken.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-option-font-weight, ${DesignToken.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-option-line-height, ${DesignToken.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-option-tracking, ${DesignToken.typescale.standard.label.large.tracking}); padding-inline-end: var(--m3e-option-padding-end, 0.75rem); padding-inline-start: var(--m3e-option-padding-start, 0.75rem); color: var(--m3e-option-color, ${DesignToken.color.onSurface}); flex: none; }`;
|
|
620
|
+
/** @private */
|
|
621
|
+
M3eOptGroupElement.__nextId = 0;
|
|
622
|
+
M3eOptGroupElement = M3eOptGroupElement_1 = __decorate([t$1("m3e-optgroup")], M3eOptGroupElement);
|
|
623
|
+
|
|
624
|
+
var _M3eOptionPanelElement_instances, _M3eOptionPanelElement_trigger, _M3eOptionPanelElement_anchor, _M3eOptionPanelElement_anchorCleanup, _M3eOptionPanelElement_documentClickHandler, _M3eOptionPanelElement_scrollController, _M3eOptionPanelElement_toggleHandler, _M3eOptionPanelElement_handleSlotChange, _M3eOptionPanelElement_handleDocumentClick;
|
|
625
|
+
var M3eOptionPanelElement_1;
|
|
626
|
+
/**
|
|
627
|
+
* Presents a list of options on a temporary surface.
|
|
628
|
+
*
|
|
629
|
+
* @description
|
|
630
|
+
* The `m3e-option-panel` component renders a scrollable container for displaying selectable options
|
|
631
|
+
* as a Material Design 3 menu surface. It provides dynamic positioning and anchoring to trigger elements,
|
|
632
|
+
* automatic viewport boundary detection with intelligent repositioning, and smooth enter/exit animations.
|
|
633
|
+
*
|
|
634
|
+
* @tag m3e-option-panel
|
|
635
|
+
*
|
|
636
|
+
* @slot - Renders the contents of the list.
|
|
637
|
+
*
|
|
638
|
+
* @fires beforetoggle - Dispatched before the toggle state changes.
|
|
639
|
+
* @fires toggle - Dispatched after the toggle state has changed.
|
|
640
|
+
*
|
|
641
|
+
* @cssprop --m3e-option-panel-container-shape - Corner radius of the panel container.
|
|
642
|
+
* @cssprop --m3e-option-panel-container-min-width - Minimum width of the panel container.
|
|
643
|
+
* @cssprop --m3e-option-panel-container-max-width - Maximum width of the panel container.
|
|
644
|
+
* @cssprop --m3e-option-panel-container-max-height - Maximum height of the panel container.
|
|
645
|
+
* @cssprop --m3e-option-panel-container-padding-block - Vertical padding inside the panel container.
|
|
646
|
+
* @cssprop --m3e-option-panel-container-padding-inline - Horizontal padding inside the panel container.
|
|
647
|
+
* @cssprop --m3e-option-panel-container-color - Background color of the panel container.
|
|
648
|
+
* @cssprop --m3e-option-panel-container-elevation - Box shadow elevation of the panel container.
|
|
649
|
+
* @cssprop --m3e-option-panel-gap - Vertical spacing between option items.
|
|
650
|
+
* @cssprop --m3e-option-panel-divider-spacing - Vertical spacing around slotted `m3e-divider` elements.
|
|
651
|
+
* @cssprop --m3e-option-panel-text-highlight-container-color - Background color used for text highlight matches.
|
|
652
|
+
* @cssprop --m3e-option-panel-text-highlight-color - Text color used for text highlight matches.
|
|
653
|
+
|
|
654
|
+
*/
|
|
655
|
+
let M3eOptionPanelElement = M3eOptionPanelElement_1 = class M3eOptionPanelElement extends Role(LitElement, "listbox") {
|
|
656
|
+
constructor() {
|
|
657
|
+
super(...arguments);
|
|
658
|
+
_M3eOptionPanelElement_instances.add(this);
|
|
659
|
+
/** @private */
|
|
660
|
+
_M3eOptionPanelElement_trigger.set(this, void 0);
|
|
661
|
+
/** @private */
|
|
662
|
+
_M3eOptionPanelElement_anchor.set(this, void 0);
|
|
663
|
+
/** @private */
|
|
664
|
+
_M3eOptionPanelElement_anchorCleanup.set(this, void 0);
|
|
665
|
+
/** @private */
|
|
666
|
+
_M3eOptionPanelElement_documentClickHandler.set(this, e => __classPrivateFieldGet(this, _M3eOptionPanelElement_instances, "m", _M3eOptionPanelElement_handleDocumentClick).call(this, e));
|
|
667
|
+
/** @private */
|
|
668
|
+
_M3eOptionPanelElement_scrollController.set(this, new ScrollController(this, {
|
|
669
|
+
target: null,
|
|
670
|
+
callback: () => this.hide(false)
|
|
671
|
+
}));
|
|
672
|
+
/** @private */
|
|
673
|
+
_M3eOptionPanelElement_toggleHandler.set(this, e => {
|
|
674
|
+
if (e.newState === "closed") {
|
|
675
|
+
__classPrivateFieldGet(this, _M3eOptionPanelElement_anchorCleanup, "f")?.call(this);
|
|
676
|
+
__classPrivateFieldSet(this, _M3eOptionPanelElement_anchorCleanup, undefined, "f");
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
/** Whether the menu is open. */
|
|
681
|
+
get isOpen() {
|
|
682
|
+
return __classPrivateFieldGet(this, _M3eOptionPanelElement_trigger, "f") !== undefined;
|
|
683
|
+
}
|
|
684
|
+
/** @inheritdoc */
|
|
685
|
+
connectedCallback() {
|
|
686
|
+
super.connectedCallback();
|
|
687
|
+
this.classList.add("-no-animate");
|
|
688
|
+
this.setAttribute("popover", "manual");
|
|
689
|
+
this.addEventListener("toggle", __classPrivateFieldGet(this, _M3eOptionPanelElement_toggleHandler, "f"));
|
|
690
|
+
document.addEventListener("click", __classPrivateFieldGet(this, _M3eOptionPanelElement_documentClickHandler, "f"));
|
|
691
|
+
}
|
|
692
|
+
/** @inheritdoc */
|
|
693
|
+
disconnectedCallback() {
|
|
694
|
+
super.disconnectedCallback();
|
|
695
|
+
this.removeEventListener("toggle", __classPrivateFieldGet(this, _M3eOptionPanelElement_toggleHandler, "f"));
|
|
696
|
+
document.removeEventListener("click", __classPrivateFieldGet(this, _M3eOptionPanelElement_documentClickHandler, "f"));
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* Opens the menu.
|
|
700
|
+
* @param {HTMLElement} trigger The element that triggered the menu.
|
|
701
|
+
* @param {HTMLElement | undefined} anchor The element used to position the menu.
|
|
702
|
+
* @returns {Promise<void>} A `Promise` that resolves when the menu is opened.
|
|
703
|
+
*/
|
|
704
|
+
async show(trigger, anchor) {
|
|
705
|
+
if (__classPrivateFieldGet(this, _M3eOptionPanelElement_trigger, "f") && __classPrivateFieldGet(this, _M3eOptionPanelElement_trigger, "f") !== trigger) {
|
|
706
|
+
this.hide();
|
|
707
|
+
}
|
|
708
|
+
__classPrivateFieldSet(this, _M3eOptionPanelElement_anchorCleanup, await positionAnchor(this, anchor ?? trigger, {
|
|
709
|
+
position: "bottom-start",
|
|
710
|
+
inline: true,
|
|
711
|
+
flip: true
|
|
712
|
+
}, (x, y, position) => {
|
|
713
|
+
this.classList.toggle("-top", position.includes("top"));
|
|
714
|
+
this.classList.toggle("-bottom", position.includes("bottom"));
|
|
715
|
+
if (M3eDirectionality.current === "rtl") {
|
|
716
|
+
this.style.right = `${window.innerWidth - x - this.clientWidth}px`;
|
|
717
|
+
this.style.left = "";
|
|
718
|
+
} else {
|
|
719
|
+
this.style.left = `${x}px`;
|
|
720
|
+
this.style.right = "";
|
|
721
|
+
}
|
|
722
|
+
this.style.top = `${y}px`;
|
|
723
|
+
}), "f");
|
|
724
|
+
this.showPopover();
|
|
725
|
+
__classPrivateFieldSet(this, _M3eOptionPanelElement_trigger, trigger, "f");
|
|
726
|
+
__classPrivateFieldGet(this, _M3eOptionPanelElement_trigger, "f").ariaExpanded = "true";
|
|
727
|
+
__classPrivateFieldSet(this, _M3eOptionPanelElement_anchor, anchor, "f");
|
|
728
|
+
__classPrivateFieldGet(this, _M3eOptionPanelElement_scrollController, "f").observe(__classPrivateFieldGet(this, _M3eOptionPanelElement_trigger, "f"));
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Hides the menu.
|
|
732
|
+
* @param {boolean} [restoreFocus=false] Whether to restore focus to the menu's trigger.
|
|
733
|
+
*/
|
|
734
|
+
hide(restoreFocus = false) {
|
|
735
|
+
this.hidePopover();
|
|
736
|
+
if (__classPrivateFieldGet(this, _M3eOptionPanelElement_trigger, "f")) {
|
|
737
|
+
__classPrivateFieldGet(this, _M3eOptionPanelElement_trigger, "f").ariaExpanded = "false";
|
|
738
|
+
if (restoreFocus) {
|
|
739
|
+
__classPrivateFieldGet(this, _M3eOptionPanelElement_trigger, "f").focus();
|
|
740
|
+
}
|
|
741
|
+
__classPrivateFieldGet(this, _M3eOptionPanelElement_scrollController, "f").unobserve(__classPrivateFieldGet(this, _M3eOptionPanelElement_trigger, "f"));
|
|
742
|
+
__classPrivateFieldSet(this, _M3eOptionPanelElement_trigger, undefined, "f");
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Toggles the menu.
|
|
747
|
+
* @param {HTMLElement} trigger The element that triggered the menu.
|
|
748
|
+
* @param {HTMLElement | undefined} anchor The element used to position the menu.
|
|
749
|
+
* @returns {Promise<void>} A `Promise` that resolves when the menu is opened or closed.
|
|
750
|
+
*/
|
|
751
|
+
async toggle(trigger, anchor) {
|
|
752
|
+
if (__classPrivateFieldGet(this, _M3eOptionPanelElement_trigger, "f")) {
|
|
753
|
+
this.hide();
|
|
754
|
+
} else {
|
|
755
|
+
await this.show(trigger, anchor);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
/** @inheritdoc */
|
|
759
|
+
firstUpdated(_changedProperties) {
|
|
760
|
+
super.firstUpdated(_changedProperties);
|
|
761
|
+
requestAnimationFrame(() => this.classList.remove("-no-animate"));
|
|
762
|
+
}
|
|
763
|
+
/** @inheritdoc */
|
|
764
|
+
render() {
|
|
765
|
+
return html`<div class="base"><slot @slotchange="${__classPrivateFieldGet(this, _M3eOptionPanelElement_instances, "m", _M3eOptionPanelElement_handleSlotChange)}"></slot></div>`;
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
_M3eOptionPanelElement_trigger = new WeakMap();
|
|
769
|
+
_M3eOptionPanelElement_anchor = new WeakMap();
|
|
770
|
+
_M3eOptionPanelElement_anchorCleanup = new WeakMap();
|
|
771
|
+
_M3eOptionPanelElement_documentClickHandler = new WeakMap();
|
|
772
|
+
_M3eOptionPanelElement_scrollController = new WeakMap();
|
|
773
|
+
_M3eOptionPanelElement_toggleHandler = new WeakMap();
|
|
774
|
+
_M3eOptionPanelElement_instances = new WeakSet();
|
|
775
|
+
_M3eOptionPanelElement_handleSlotChange = function _M3eOptionPanelElement_handleSlotChange() {
|
|
776
|
+
const options = [...this.querySelectorAll("m3e-option")];
|
|
777
|
+
options.forEach((x, i) => {
|
|
778
|
+
x.classList.toggle("-first", i === 0);
|
|
779
|
+
x.classList.toggle("-last", i === options.length - 1);
|
|
780
|
+
});
|
|
781
|
+
};
|
|
782
|
+
_M3eOptionPanelElement_handleDocumentClick = function _M3eOptionPanelElement_handleDocumentClick(e) {
|
|
783
|
+
if (!e.composedPath().some(x => x instanceof M3eOptionPanelElement_1 || x === __classPrivateFieldGet(this, _M3eOptionPanelElement_trigger, "f") || x === __classPrivateFieldGet(this, _M3eOptionPanelElement_anchor, "f"))) {
|
|
784
|
+
this.hide();
|
|
785
|
+
}
|
|
786
|
+
};
|
|
787
|
+
(() => {
|
|
788
|
+
if (document) {
|
|
789
|
+
const lightDomStyle = new CSSStyleSheet();
|
|
790
|
+
lightDomStyle.replaceSync(css`m3e-option-panel > m3e-divider { margin-block: var(--m3e-option-panel-divider-spacing, 0.5rem); }`.toString());
|
|
791
|
+
document.adoptedStyleSheets = [...document.adoptedStyleSheets, lightDomStyle];
|
|
792
|
+
}
|
|
793
|
+
})();
|
|
794
|
+
/** The styles of the element. */
|
|
795
|
+
M3eOptionPanelElement.styles = css`:host { position: absolute; flex-direction: column; padding: unset; margin: unset; border: unset; overflow-y: auto; scrollbar-width: ${DesignToken.scrollbar.thinWidth}; scrollbar-color: ${DesignToken.scrollbar.color}; scroll-padding-block: calc( var(--m3e-focus-ring-thickness, 0.1875rem) + var(--m3e-option-panel-container-padding-block, 0.25rem) ); border-radius: var(--m3e-option-panel-container-shape, ${DesignToken.shape.corner.large}); min-width: var(--m3e-option-panel-container-min-width, 7rem); max-width: var(--m3e-option-panel-container-max-width, 17.5rem); max-height: var(--m3e-option-panel-container-max-height, 17.5rem); background-color: var(--m3e-option-panel-container-color, ${DesignToken.color.surfaceContainer}); box-shadow: var(--m3e-option-panel-container-elevation, ${DesignToken.elevation.level3}); opacity: 0; display: none; } .base { display: flex; flex-direction: column; row-gap: var(--m3e-option-panel-gap, 0.125rem); min-width: inherit; max-width: inherit; padding-block: var(--m3e-option-panel-container-padding-block, 0.25rem); padding-inline: var(--m3e-option-panel-container-padding-inline, 0.25rem); --m3e-text-highlight-container-color: var( --m3e-option-panel-text-highlight-container-color, ${DesignToken.color.tertiaryContainer} ); --m3e-text-highlight-color: var( --m3e-option-panel-text-highlight-color, ${DesignToken.color.onTertiaryContainer} ); } :host(:not(.-no-animate)) { transition: ${unsafeCSS(`opacity ${DesignToken.motion.duration.short2} ${DesignToken.motion.easing.standard},
|
|
796
|
+
transform ${DesignToken.motion.duration.short2} ${DesignToken.motion.easing.standard},
|
|
797
|
+
overlay ${DesignToken.motion.duration.short2} ${DesignToken.motion.easing.standard} allow-discrete,
|
|
798
|
+
display ${DesignToken.motion.duration.short2} ${DesignToken.motion.easing.standard} allow-discrete`)}; } :host { transform: scaleY(0.8); } :host(:popover-open) { transform: scaleY(1); display: block; opacity: 1; } :host::backdrop { background-color: transparent; } :host(.-bottom) { transform-origin: top; } :host(.-top) { transform-origin: bottom; } @starting-style { :host(:popover-open) { transform: scaleY(0.8); } } @media (prefers-reduced-motion) { :host(:not(.-no-animate)) { transition: none; } } @media (forced-colors: active) { :host { background-color: Menu; color: MenuText; outline: 1px solid MenuText; } }`;
|
|
799
|
+
M3eOptionPanelElement = M3eOptionPanelElement_1 = __decorate([t$1("m3e-option-panel")], M3eOptionPanelElement);
|
|
800
|
+
|
|
801
|
+
export { M3eOptGroupElement, M3eOptionElement, M3eOptionPanelElement };
|
|
802
|
+
//# sourceMappingURL=option.js.map
|