@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/stepper.js
ADDED
|
@@ -0,0 +1,1498 @@
|
|
|
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, css, nothing } from 'lit';
|
|
7
|
+
import { Role, Selected, KeyboardClick, Focusable, HtmlFor, Disabled, AttachInternals, DesignToken, ActionElementBase } from '@m3e/web/core';
|
|
8
|
+
import { addAriaReferencedId, removeAriaReferencedId, selectionManager, SelectionManager } from '@m3e/web/core/a11y';
|
|
9
|
+
import { M3eBreakpointObserver, Breakpoint } from '@m3e/web/core/layout';
|
|
10
|
+
|
|
11
|
+
/******************************************************************************
|
|
12
|
+
Copyright (c) Microsoft Corporation.
|
|
13
|
+
|
|
14
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
15
|
+
purpose with or without fee is hereby granted.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
18
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
19
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
20
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
21
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
22
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
23
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
24
|
+
***************************************************************************** */
|
|
25
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
26
|
+
|
|
27
|
+
function __decorate(decorators, target, key, desc) {
|
|
28
|
+
var c = arguments.length,
|
|
29
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
30
|
+
d;
|
|
31
|
+
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;
|
|
32
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33
|
+
}
|
|
34
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
35
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
36
|
+
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");
|
|
37
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
38
|
+
}
|
|
39
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
40
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
41
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
42
|
+
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");
|
|
43
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
44
|
+
}
|
|
45
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
46
|
+
var e = new Error(message);
|
|
47
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @license
|
|
52
|
+
* Copyright 2017 Google LLC
|
|
53
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
+
*/
|
|
55
|
+
const t$2 = t => (e, o) => {
|
|
56
|
+
void 0 !== o ? o.addInitializer(() => {
|
|
57
|
+
customElements.define(t, e);
|
|
58
|
+
}) : customElements.define(t, e);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @license
|
|
63
|
+
* Copyright 2019 Google LLC
|
|
64
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
+
*/
|
|
66
|
+
const t$1 = globalThis,
|
|
67
|
+
e$4 = t$1.ShadowRoot && (void 0 === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
68
|
+
s$1 = Symbol(),
|
|
69
|
+
o$4 = new WeakMap();
|
|
70
|
+
let n$3 = class n {
|
|
71
|
+
constructor(t, e, o) {
|
|
72
|
+
if (this._$cssResult$ = true, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
73
|
+
this.cssText = t, this.t = e;
|
|
74
|
+
}
|
|
75
|
+
get styleSheet() {
|
|
76
|
+
let t = this.o;
|
|
77
|
+
const s = this.t;
|
|
78
|
+
if (e$4 && void 0 === t) {
|
|
79
|
+
const e = void 0 !== s && 1 === s.length;
|
|
80
|
+
e && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$4.set(s, t));
|
|
81
|
+
}
|
|
82
|
+
return t;
|
|
83
|
+
}
|
|
84
|
+
toString() {
|
|
85
|
+
return this.cssText;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const r$4 = t => new n$3("string" == typeof t ? t : t + "", void 0, s$1),
|
|
89
|
+
S$1 = (s, o) => {
|
|
90
|
+
if (e$4) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
|
|
91
|
+
const o = document.createElement("style"),
|
|
92
|
+
n = t$1.litNonce;
|
|
93
|
+
void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
c$2 = e$4 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
97
|
+
let e = "";
|
|
98
|
+
for (const s of t.cssRules) e += s.cssText;
|
|
99
|
+
return r$4(e);
|
|
100
|
+
})(t) : t;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @license
|
|
104
|
+
* Copyright 2017 Google LLC
|
|
105
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
+
*/
|
|
107
|
+
const {
|
|
108
|
+
is: i$1,
|
|
109
|
+
defineProperty: e$3,
|
|
110
|
+
getOwnPropertyDescriptor: h$1,
|
|
111
|
+
getOwnPropertyNames: r$3,
|
|
112
|
+
getOwnPropertySymbols: o$3,
|
|
113
|
+
getPrototypeOf: n$2
|
|
114
|
+
} = Object,
|
|
115
|
+
a$1 = globalThis,
|
|
116
|
+
c$1 = a$1.trustedTypes,
|
|
117
|
+
l$1 = c$1 ? c$1.emptyScript : "",
|
|
118
|
+
p$1 = a$1.reactiveElementPolyfillSupport,
|
|
119
|
+
d$1 = (t, s) => t,
|
|
120
|
+
u$1 = {
|
|
121
|
+
toAttribute(t, s) {
|
|
122
|
+
switch (s) {
|
|
123
|
+
case Boolean:
|
|
124
|
+
t = t ? l$1 : null;
|
|
125
|
+
break;
|
|
126
|
+
case Object:
|
|
127
|
+
case Array:
|
|
128
|
+
t = null == t ? t : JSON.stringify(t);
|
|
129
|
+
}
|
|
130
|
+
return t;
|
|
131
|
+
},
|
|
132
|
+
fromAttribute(t, s) {
|
|
133
|
+
let i = t;
|
|
134
|
+
switch (s) {
|
|
135
|
+
case Boolean:
|
|
136
|
+
i = null !== t;
|
|
137
|
+
break;
|
|
138
|
+
case Number:
|
|
139
|
+
i = null === t ? null : Number(t);
|
|
140
|
+
break;
|
|
141
|
+
case Object:
|
|
142
|
+
case Array:
|
|
143
|
+
try {
|
|
144
|
+
i = JSON.parse(t);
|
|
145
|
+
} catch (t) {
|
|
146
|
+
i = null;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return i;
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
f$1 = (t, s) => !i$1(t, s),
|
|
153
|
+
b = {
|
|
154
|
+
attribute: true,
|
|
155
|
+
type: String,
|
|
156
|
+
converter: u$1,
|
|
157
|
+
reflect: false,
|
|
158
|
+
useDefault: false,
|
|
159
|
+
hasChanged: f$1
|
|
160
|
+
};
|
|
161
|
+
Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= new WeakMap();
|
|
162
|
+
class y extends HTMLElement {
|
|
163
|
+
static addInitializer(t) {
|
|
164
|
+
this._$Ei(), (this.l ??= []).push(t);
|
|
165
|
+
}
|
|
166
|
+
static get observedAttributes() {
|
|
167
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
168
|
+
}
|
|
169
|
+
static createProperty(t, s = b) {
|
|
170
|
+
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) {
|
|
171
|
+
const i = Symbol(),
|
|
172
|
+
h = this.getPropertyDescriptor(t, i, s);
|
|
173
|
+
void 0 !== h && e$3(this.prototype, t, h);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
static getPropertyDescriptor(t, s, i) {
|
|
177
|
+
const {
|
|
178
|
+
get: e,
|
|
179
|
+
set: r
|
|
180
|
+
} = h$1(this.prototype, t) ?? {
|
|
181
|
+
get() {
|
|
182
|
+
return this[s];
|
|
183
|
+
},
|
|
184
|
+
set(t) {
|
|
185
|
+
this[s] = t;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
return {
|
|
189
|
+
get: e,
|
|
190
|
+
set(s) {
|
|
191
|
+
const h = e?.call(this);
|
|
192
|
+
r?.call(this, s), this.requestUpdate(t, h, i);
|
|
193
|
+
},
|
|
194
|
+
configurable: true,
|
|
195
|
+
enumerable: true
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
static getPropertyOptions(t) {
|
|
199
|
+
return this.elementProperties.get(t) ?? b;
|
|
200
|
+
}
|
|
201
|
+
static _$Ei() {
|
|
202
|
+
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
203
|
+
const t = n$2(this);
|
|
204
|
+
t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
205
|
+
}
|
|
206
|
+
static finalize() {
|
|
207
|
+
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
208
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
209
|
+
const t = this.properties,
|
|
210
|
+
s = [...r$3(t), ...o$3(t)];
|
|
211
|
+
for (const i of s) this.createProperty(i, t[i]);
|
|
212
|
+
}
|
|
213
|
+
const t = this[Symbol.metadata];
|
|
214
|
+
if (null !== t) {
|
|
215
|
+
const s = litPropertyMetadata.get(t);
|
|
216
|
+
if (void 0 !== s) for (const [t, i] of s) this.elementProperties.set(t, i);
|
|
217
|
+
}
|
|
218
|
+
this._$Eh = new Map();
|
|
219
|
+
for (const [t, s] of this.elementProperties) {
|
|
220
|
+
const i = this._$Eu(t, s);
|
|
221
|
+
void 0 !== i && this._$Eh.set(i, t);
|
|
222
|
+
}
|
|
223
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
224
|
+
}
|
|
225
|
+
static finalizeStyles(s) {
|
|
226
|
+
const i = [];
|
|
227
|
+
if (Array.isArray(s)) {
|
|
228
|
+
const e = new Set(s.flat(1 / 0).reverse());
|
|
229
|
+
for (const s of e) i.unshift(c$2(s));
|
|
230
|
+
} else void 0 !== s && i.push(c$2(s));
|
|
231
|
+
return i;
|
|
232
|
+
}
|
|
233
|
+
static _$Eu(t, s) {
|
|
234
|
+
const i = s.attribute;
|
|
235
|
+
return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
236
|
+
}
|
|
237
|
+
constructor() {
|
|
238
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
239
|
+
}
|
|
240
|
+
_$Ev() {
|
|
241
|
+
this._$ES = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
|
|
242
|
+
}
|
|
243
|
+
addController(t) {
|
|
244
|
+
(this._$EO ??= new Set()).add(t), void 0 !== this.renderRoot && this.isConnected && t.hostConnected?.();
|
|
245
|
+
}
|
|
246
|
+
removeController(t) {
|
|
247
|
+
this._$EO?.delete(t);
|
|
248
|
+
}
|
|
249
|
+
_$E_() {
|
|
250
|
+
const t = new Map(),
|
|
251
|
+
s = this.constructor.elementProperties;
|
|
252
|
+
for (const i of s.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
253
|
+
t.size > 0 && (this._$Ep = t);
|
|
254
|
+
}
|
|
255
|
+
createRenderRoot() {
|
|
256
|
+
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
257
|
+
return S$1(t, this.constructor.elementStyles), t;
|
|
258
|
+
}
|
|
259
|
+
connectedCallback() {
|
|
260
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(t => t.hostConnected?.());
|
|
261
|
+
}
|
|
262
|
+
enableUpdating(t) {}
|
|
263
|
+
disconnectedCallback() {
|
|
264
|
+
this._$EO?.forEach(t => t.hostDisconnected?.());
|
|
265
|
+
}
|
|
266
|
+
attributeChangedCallback(t, s, i) {
|
|
267
|
+
this._$AK(t, i);
|
|
268
|
+
}
|
|
269
|
+
_$ET(t, s) {
|
|
270
|
+
const i = this.constructor.elementProperties.get(t),
|
|
271
|
+
e = this.constructor._$Eu(t, i);
|
|
272
|
+
if (void 0 !== e && true === i.reflect) {
|
|
273
|
+
const h = (void 0 !== i.converter?.toAttribute ? i.converter : u$1).toAttribute(s, i.type);
|
|
274
|
+
this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
_$AK(t, s) {
|
|
278
|
+
const i = this.constructor,
|
|
279
|
+
e = i._$Eh.get(t);
|
|
280
|
+
if (void 0 !== e && this._$Em !== e) {
|
|
281
|
+
const t = i.getPropertyOptions(e),
|
|
282
|
+
h = "function" == typeof t.converter ? {
|
|
283
|
+
fromAttribute: t.converter
|
|
284
|
+
} : void 0 !== t.converter?.fromAttribute ? t.converter : u$1;
|
|
285
|
+
this._$Em = e;
|
|
286
|
+
const r = h.fromAttribute(s, t.type);
|
|
287
|
+
this[e] = r ?? this._$Ej?.get(e) ?? r, this._$Em = null;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
requestUpdate(t, s, i) {
|
|
291
|
+
if (void 0 !== t) {
|
|
292
|
+
const e = this.constructor,
|
|
293
|
+
h = this[t];
|
|
294
|
+
if (i ??= e.getPropertyOptions(t), !((i.hasChanged ?? f$1)(h, s) || i.useDefault && i.reflect && h === this._$Ej?.get(t) && !this.hasAttribute(e._$Eu(t, i)))) return;
|
|
295
|
+
this.C(t, s, i);
|
|
296
|
+
}
|
|
297
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
298
|
+
}
|
|
299
|
+
C(t, s, {
|
|
300
|
+
useDefault: i,
|
|
301
|
+
reflect: e,
|
|
302
|
+
wrapped: h
|
|
303
|
+
}, r) {
|
|
304
|
+
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));
|
|
305
|
+
}
|
|
306
|
+
async _$EP() {
|
|
307
|
+
this.isUpdatePending = true;
|
|
308
|
+
try {
|
|
309
|
+
await this._$ES;
|
|
310
|
+
} catch (t) {
|
|
311
|
+
Promise.reject(t);
|
|
312
|
+
}
|
|
313
|
+
const t = this.scheduleUpdate();
|
|
314
|
+
return null != t && (await t), !this.isUpdatePending;
|
|
315
|
+
}
|
|
316
|
+
scheduleUpdate() {
|
|
317
|
+
return this.performUpdate();
|
|
318
|
+
}
|
|
319
|
+
performUpdate() {
|
|
320
|
+
if (!this.isUpdatePending) return;
|
|
321
|
+
if (!this.hasUpdated) {
|
|
322
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
323
|
+
for (const [t, s] of this._$Ep) this[t] = s;
|
|
324
|
+
this._$Ep = void 0;
|
|
325
|
+
}
|
|
326
|
+
const t = this.constructor.elementProperties;
|
|
327
|
+
if (t.size > 0) for (const [s, i] of t) {
|
|
328
|
+
const {
|
|
329
|
+
wrapped: t
|
|
330
|
+
} = i,
|
|
331
|
+
e = this[s];
|
|
332
|
+
true !== t || this._$AL.has(s) || void 0 === e || this.C(s, void 0, i, e);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
let t = false;
|
|
336
|
+
const s = this._$AL;
|
|
337
|
+
try {
|
|
338
|
+
t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EM();
|
|
339
|
+
} catch (s) {
|
|
340
|
+
throw t = false, this._$EM(), s;
|
|
341
|
+
}
|
|
342
|
+
t && this._$AE(s);
|
|
343
|
+
}
|
|
344
|
+
willUpdate(t) {}
|
|
345
|
+
_$AE(t) {
|
|
346
|
+
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
|
|
347
|
+
}
|
|
348
|
+
_$EM() {
|
|
349
|
+
this._$AL = new Map(), this.isUpdatePending = false;
|
|
350
|
+
}
|
|
351
|
+
get updateComplete() {
|
|
352
|
+
return this.getUpdateComplete();
|
|
353
|
+
}
|
|
354
|
+
getUpdateComplete() {
|
|
355
|
+
return this._$ES;
|
|
356
|
+
}
|
|
357
|
+
shouldUpdate(t) {
|
|
358
|
+
return true;
|
|
359
|
+
}
|
|
360
|
+
update(t) {
|
|
361
|
+
this._$Eq &&= this._$Eq.forEach(t => this._$ET(t, this[t])), this._$EM();
|
|
362
|
+
}
|
|
363
|
+
updated(t) {}
|
|
364
|
+
firstUpdated(t) {}
|
|
365
|
+
}
|
|
366
|
+
y.elementStyles = [], y.shadowRootOptions = {
|
|
367
|
+
mode: "open"
|
|
368
|
+
}, y[d$1("elementProperties")] = new Map(), y[d$1("finalized")] = new Map(), p$1?.({
|
|
369
|
+
ReactiveElement: y
|
|
370
|
+
}), (a$1.reactiveElementVersions ??= []).push("2.1.1");
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* @license
|
|
374
|
+
* Copyright 2017 Google LLC
|
|
375
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
376
|
+
*/
|
|
377
|
+
const o$2 = {
|
|
378
|
+
attribute: true,
|
|
379
|
+
type: String,
|
|
380
|
+
converter: u$1,
|
|
381
|
+
reflect: false,
|
|
382
|
+
hasChanged: f$1
|
|
383
|
+
},
|
|
384
|
+
r$2 = (t = o$2, e, r) => {
|
|
385
|
+
const {
|
|
386
|
+
kind: n,
|
|
387
|
+
metadata: i
|
|
388
|
+
} = r;
|
|
389
|
+
let s = globalThis.litPropertyMetadata.get(i);
|
|
390
|
+
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) {
|
|
391
|
+
const {
|
|
392
|
+
name: o
|
|
393
|
+
} = r;
|
|
394
|
+
return {
|
|
395
|
+
set(r) {
|
|
396
|
+
const n = e.get.call(this);
|
|
397
|
+
e.set.call(this, r), this.requestUpdate(o, n, t);
|
|
398
|
+
},
|
|
399
|
+
init(e) {
|
|
400
|
+
return void 0 !== e && this.C(o, void 0, t, e), e;
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
if ("setter" === n) {
|
|
405
|
+
const {
|
|
406
|
+
name: o
|
|
407
|
+
} = r;
|
|
408
|
+
return function (r) {
|
|
409
|
+
const n = this[o];
|
|
410
|
+
e.call(this, r), this.requestUpdate(o, n, t);
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
throw Error("Unsupported decorator location: " + n);
|
|
414
|
+
};
|
|
415
|
+
function n$1(t) {
|
|
416
|
+
return (e, o) => "object" == typeof o ? r$2(t, e, o) : ((t, e, o) => {
|
|
417
|
+
const r = e.hasOwnProperty(o);
|
|
418
|
+
return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
419
|
+
})(t, e, o);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @license
|
|
424
|
+
* Copyright 2017 Google LLC
|
|
425
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
426
|
+
*/
|
|
427
|
+
function r$1(r) {
|
|
428
|
+
return n$1({
|
|
429
|
+
...r,
|
|
430
|
+
state: true,
|
|
431
|
+
attribute: false
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* @license
|
|
437
|
+
* Copyright 2017 Google LLC
|
|
438
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
439
|
+
*/
|
|
440
|
+
const e$2 = (e, t, c) => (c.configurable = true, c.enumerable = true, Reflect.decorate && "object" != typeof t && Object.defineProperty(e, t, c), c);
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* @license
|
|
444
|
+
* Copyright 2017 Google LLC
|
|
445
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
446
|
+
*/
|
|
447
|
+
function e$1(e, r) {
|
|
448
|
+
return (n, s, i) => {
|
|
449
|
+
const o = t => t.renderRoot?.querySelector(e) ?? null;
|
|
450
|
+
return e$2(n, s, {
|
|
451
|
+
get() {
|
|
452
|
+
return o(this);
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* A panel presented for a step in a wizard-like workflow.
|
|
460
|
+
*
|
|
461
|
+
* @description
|
|
462
|
+
* The `m3e-step-panel` is a container for presenting contextual content and actions
|
|
463
|
+
* associated with a single step in a structured workflow.
|
|
464
|
+
*
|
|
465
|
+
* @example
|
|
466
|
+
* The following example demonstrates a linear multi-step form flow using the `m3e-stepper`
|
|
467
|
+
* component. Each `m3e-step` defines a navigable step label, linked to its corresponding
|
|
468
|
+
* `m3e-step-panel` via the `for` attribute. Navigation is orchestrated using the
|
|
469
|
+
* `m3e-stepper-next`, `m3e-stepper-previous`, and `m3e-stepper-reset` components.
|
|
470
|
+
*
|
|
471
|
+
* <m3e-stepper>
|
|
472
|
+
* <m3e-step for="step1">Fill out your name</m3e-step>
|
|
473
|
+
* <m3e-step for="step2">Fill out your address</m3e-step>
|
|
474
|
+
* <m3e-step for="step3">Done</m3e-step>
|
|
475
|
+
* <m3e-step-panel id="step1">
|
|
476
|
+
* <form>
|
|
477
|
+
* <m3e-form-field>
|
|
478
|
+
* <label slot="label" for="name">Name</label>
|
|
479
|
+
* <input name="name" id="name" required />
|
|
480
|
+
* </m3e-form-field>
|
|
481
|
+
* </form>
|
|
482
|
+
* <div slot="actions">
|
|
483
|
+
* <m3e-button><m3e-stepper-next>Next</m3e-stepper-next></m3e-button>
|
|
484
|
+
* </div>
|
|
485
|
+
* </m3e-step-panel>
|
|
486
|
+
* <m3e-step-panel id="step2">
|
|
487
|
+
* <form>
|
|
488
|
+
* <m3e-form-field>
|
|
489
|
+
* <label slot="label" for="address">Address</label>
|
|
490
|
+
* <input name="address" id="address" required />
|
|
491
|
+
* </m3e-form-field>
|
|
492
|
+
* </form>
|
|
493
|
+
* <div slot="actions">
|
|
494
|
+
* <m3e-button><m3e-stepper-previous>Back</m3e-stepper-previous></m3e-button>
|
|
495
|
+
* <m3e-button><m3e-stepper-next>Next</m3e-stepper-next></m3e-button>
|
|
496
|
+
* </div>
|
|
497
|
+
* </m3e-step-panel>
|
|
498
|
+
* <m3e-step-panel id="step3">Done
|
|
499
|
+
* <div slot="actions">
|
|
500
|
+
* <m3e-button><m3e-stepper-previous>Back</m3e-stepper-previous></m3e-button>
|
|
501
|
+
* <m3e-button><m3e-stepper-reset>Reset</m3e-stepper-reset></m3e-button>
|
|
502
|
+
* </div>
|
|
503
|
+
* </m3e-step-panel>
|
|
504
|
+
* </m3e-stepper>
|
|
505
|
+
*
|
|
506
|
+
* @tag m3e-step-panel
|
|
507
|
+
*
|
|
508
|
+
* @slot - Renders the content of the panel.
|
|
509
|
+
* @slot actions- Renders the actions bar of the panel.
|
|
510
|
+
*
|
|
511
|
+
* @cssprop --m3e-step-panel-padding - Padding inside the step panel container, defining internal spacing around content.
|
|
512
|
+
* @cssprop --m3e-step-panel-spacing - Vertical gap between stacked elements within the step panel.
|
|
513
|
+
* @cssprop --m3e-step-panel-actions-height - Minimum height of the slotted actions container.
|
|
514
|
+
*/
|
|
515
|
+
let M3eStepPanelElement = class M3eStepPanelElement extends Role(LitElement, "tabpanel") {
|
|
516
|
+
constructor() {
|
|
517
|
+
super(...arguments);
|
|
518
|
+
/** @internal */
|
|
519
|
+
this.active = false;
|
|
520
|
+
}
|
|
521
|
+
/** @inheritdoc */
|
|
522
|
+
connectedCallback() {
|
|
523
|
+
this.slot = "panel";
|
|
524
|
+
super.connectedCallback();
|
|
525
|
+
}
|
|
526
|
+
/** @inheritdoc */
|
|
527
|
+
render() {
|
|
528
|
+
return html`<m3e-collapsible ?open="${this.active}"><div class="content"><div><slot></slot></div><slot name="actions"></slot></div></m3e-collapsible>`;
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
/** The styles of the element. */
|
|
532
|
+
M3eStepPanelElement.styles = css`:host { display: block; } .content { display: flex; flex-direction: column; padding: var(--m3e-step-panel-padding, 1rem 1.5rem 1.5rem 1.5rem); row-gap: var(--m3e-step-panel-spacing, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: var(--m3e-step-panel-actions-height, 3rem); } ::slotted([slot="actions"][end]) { justify-content: flex-end; }`;
|
|
533
|
+
__decorate([r$1()], M3eStepPanelElement.prototype, "active", void 0);
|
|
534
|
+
M3eStepPanelElement = __decorate([t$2("m3e-step-panel")], M3eStepPanelElement);
|
|
535
|
+
|
|
536
|
+
var _M3eStepElement_instances, _M3eStepElement_clickHandler, _M3eStepElement_renderIcon, _M3eStepElement_handleClick;
|
|
537
|
+
var M3eStepElement_1;
|
|
538
|
+
/**
|
|
539
|
+
* A step in a wizard-like workflow.
|
|
540
|
+
*
|
|
541
|
+
* @description
|
|
542
|
+
* The `m3e-step` component represents a single step in a structured, wizard-like workflow.
|
|
543
|
+
* It supports semantic labeling, stateful styling, and optional interaction for completed,
|
|
544
|
+
* selected, invalid, or disabled states. It aligns with Material Design guidance for progressive
|
|
545
|
+
* disclosure, accessible navigation, and visual continuity across horizontal and vertical layouts.
|
|
546
|
+
*
|
|
547
|
+
* @example
|
|
548
|
+
* The following example demonstrates a linear multi-step form flow using the `m3e-stepper`
|
|
549
|
+
* component. Each `m3e-step` defines a navigable step label, linked to its corresponding
|
|
550
|
+
* `m3e-step-panel` via the `for` attribute. Navigation is orchestrated using the
|
|
551
|
+
* `m3e-stepper-next`, `m3e-stepper-previous`, and `m3e-stepper-reset` components.
|
|
552
|
+
*
|
|
553
|
+
* <m3e-stepper>
|
|
554
|
+
* <m3e-step for="step1">Fill out your name</m3e-step>
|
|
555
|
+
* <m3e-step for="step2">Fill out your address</m3e-step>
|
|
556
|
+
* <m3e-step for="step3">Done</m3e-step>
|
|
557
|
+
* <m3e-step-panel id="step1">
|
|
558
|
+
* <form>
|
|
559
|
+
* <m3e-form-field>
|
|
560
|
+
* <label slot="label" for="name">Name</label>
|
|
561
|
+
* <input name="name" id="name" required />
|
|
562
|
+
* </m3e-form-field>
|
|
563
|
+
* </form>
|
|
564
|
+
* <div slot="actions">
|
|
565
|
+
* <m3e-button><m3e-stepper-next>Next</m3e-stepper-next></m3e-button>
|
|
566
|
+
* </div>
|
|
567
|
+
* </m3e-step-panel>
|
|
568
|
+
* <m3e-step-panel id="step2">
|
|
569
|
+
* <form>
|
|
570
|
+
* <m3e-form-field>
|
|
571
|
+
* <label slot="label" for="address">Address</label>
|
|
572
|
+
* <input name="address" id="address" required />
|
|
573
|
+
* </m3e-form-field>
|
|
574
|
+
* </form>
|
|
575
|
+
* <div slot="actions">
|
|
576
|
+
* <m3e-button><m3e-stepper-previous>Back</m3e-stepper-previous></m3e-button>
|
|
577
|
+
* <m3e-button><m3e-stepper-next>Next</m3e-stepper-next></m3e-button>
|
|
578
|
+
* </div>
|
|
579
|
+
* </m3e-step-panel>
|
|
580
|
+
* <m3e-step-panel id="step3">Done
|
|
581
|
+
* <div slot="actions">
|
|
582
|
+
* <m3e-button><m3e-stepper-previous>Back</m3e-stepper-previous></m3e-button>
|
|
583
|
+
* <m3e-button><m3e-stepper-reset>Reset</m3e-stepper-reset></m3e-button>
|
|
584
|
+
* </div>
|
|
585
|
+
* </m3e-step-panel>
|
|
586
|
+
* </m3e-stepper>
|
|
587
|
+
*
|
|
588
|
+
* @tag m3e-step
|
|
589
|
+
*
|
|
590
|
+
* @slot - Renders the label of the step.
|
|
591
|
+
* @slot icon - Renders the icon of the step.
|
|
592
|
+
* @slot done-icon - Renders the icon of a completed step.
|
|
593
|
+
* @slot edit-icon - Renders the icon of a completed editable step.
|
|
594
|
+
* @slot error-icon - Renders icon of an invalid step.
|
|
595
|
+
* @slot hint - Renders the hint text of the step.
|
|
596
|
+
* @slot error - Renders the error message for an invalid step.
|
|
597
|
+
*
|
|
598
|
+
* @attr completed - Whether the step has been completed.
|
|
599
|
+
* @attr disabled - Whether the element is disabled.
|
|
600
|
+
* @attr editable - Whether the step is editable and users can return to it after completion.
|
|
601
|
+
* @attr for - The identifier of the interactive control to which this element is attached.
|
|
602
|
+
* @attr optional - Whether the step is optional.
|
|
603
|
+
* @attr selected - Whether the element is selected.
|
|
604
|
+
*
|
|
605
|
+
* @fires input - Emitted when the selected state changes.
|
|
606
|
+
* @fires change - Emitted when the selected state changes.
|
|
607
|
+
* @fires click - Emitted when the element is clicked.
|
|
608
|
+
*
|
|
609
|
+
* @cssprop --m3e-step-shape - Border radius of the step container, defining its visual shape.
|
|
610
|
+
* @cssprop --m3e-step-padding - Internal padding of the step container, used for layout spacing.
|
|
611
|
+
* @cssprop --m3e-step-icon-shape - Border radius of the icon container, controlling its geometric form.
|
|
612
|
+
* @cssprop --m3e-step-icon-size - Width and height of the icon container and icon glyph.
|
|
613
|
+
* @cssprop --m3e-step-selected-icon-container-color - Background color of the icon when the step is selected.
|
|
614
|
+
* @cssprop --m3e-step-selected-icon-color - Foreground color of the icon when the step is selected.
|
|
615
|
+
* @cssprop --m3e-step-completed-icon-container-color - Background color of the icon when the step is completed.
|
|
616
|
+
* @cssprop --m3e-step-completed-icon-color - Foreground color of the icon when the step is completed.
|
|
617
|
+
* @cssprop --m3e-step-unselected-icon-container-color - Background color of the icon when the step is inactive.
|
|
618
|
+
* @cssprop --m3e-step-unselected-icon-color - Foreground color of the icon when the step is inactive.
|
|
619
|
+
* @cssprop --m3e-step-icon-error-color - Foreground color of the icon when the step is invalid.
|
|
620
|
+
* @cssprop --m3e-step-disabled-icon-container-color - Base color used to mix the disabled icon background.
|
|
621
|
+
* @cssprop --m3e-step-disabled-icon-color - Base color used to mix the disabled icon foreground.
|
|
622
|
+
* @cssprop --m3e-step-label-color - Text color of the step label in its default state.
|
|
623
|
+
* @cssprop --m3e-step-label-error-color - Text color of the step label when the step is invalid.
|
|
624
|
+
* @cssprop --m3e-step-disabled-label-color - Base color used to mix the disabled label foreground.
|
|
625
|
+
* @cssprop --m3e-step-font-size - Font size of the step label.
|
|
626
|
+
* @cssprop --m3e-step-font-weight - Font weight of the step label.
|
|
627
|
+
* @cssprop --m3e-step-line-height - Line height of the step label.
|
|
628
|
+
* @cssprop --m3e-step-tracking - Letter spacing of the step label.
|
|
629
|
+
* @cssprop --m3e-step-icon-label-space - Gap between icon and label.
|
|
630
|
+
* @cssprop --m3e-step-hint-font-size - Font size of hint and error messages.
|
|
631
|
+
* @cssprop --m3e-step-hint-font-weight - Font weight of hint and error messages.
|
|
632
|
+
* @cssprop --m3e-step-hint-line-height - Line height of hint and error messages.
|
|
633
|
+
* @cssprop --m3e-step-hint-tracking - Letter spacing of hint and error messages.
|
|
634
|
+
* @cssprop --m3e-step-hint-color - Text color of hint messages in valid state.
|
|
635
|
+
* @cssprop --m3e-step-disabled-hint-color - Base color used to mix the disabled hint foreground.
|
|
636
|
+
*/
|
|
637
|
+
let M3eStepElement = M3eStepElement_1 = class M3eStepElement extends Selected(KeyboardClick(Focusable(HtmlFor(Disabled(AttachInternals(Role(LitElement, "tab"))))))) {
|
|
638
|
+
constructor() {
|
|
639
|
+
super(...arguments);
|
|
640
|
+
_M3eStepElement_instances.add(this);
|
|
641
|
+
/** @private */
|
|
642
|
+
_M3eStepElement_clickHandler.set(this, e => __classPrivateFieldGet(this, _M3eStepElement_instances, "m", _M3eStepElement_handleClick).call(this, e));
|
|
643
|
+
/**
|
|
644
|
+
* Whether the step is optional.
|
|
645
|
+
* @default false
|
|
646
|
+
*/
|
|
647
|
+
this.optional = false;
|
|
648
|
+
/**
|
|
649
|
+
* Whether the step is editable and users can return to it after completion.
|
|
650
|
+
* @default false
|
|
651
|
+
*/
|
|
652
|
+
this.editable = false;
|
|
653
|
+
/**
|
|
654
|
+
* Whether the step has been completed.
|
|
655
|
+
* @default false
|
|
656
|
+
*/
|
|
657
|
+
this.completed = false;
|
|
658
|
+
/**
|
|
659
|
+
* Whether the step has an error.
|
|
660
|
+
* @default false
|
|
661
|
+
*/
|
|
662
|
+
this.invalid = false;
|
|
663
|
+
/** @internal */
|
|
664
|
+
this.index = -1;
|
|
665
|
+
}
|
|
666
|
+
/** A reference to the panel controlled by the step. */
|
|
667
|
+
get panel() {
|
|
668
|
+
return this.control instanceof M3eStepPanelElement ? this.control : null;
|
|
669
|
+
}
|
|
670
|
+
/** The stepper to which this step belongs. */
|
|
671
|
+
get stepper() {
|
|
672
|
+
return this.closest("m3e-stepper");
|
|
673
|
+
}
|
|
674
|
+
/** Resets the step to its initial state, clearing any form data. */
|
|
675
|
+
reset() {
|
|
676
|
+
this.invalid = false;
|
|
677
|
+
this.completed = false;
|
|
678
|
+
this.panel?.querySelector("form")?.reset();
|
|
679
|
+
}
|
|
680
|
+
/** @inheritdoc */
|
|
681
|
+
attach(control) {
|
|
682
|
+
if (control instanceof M3eStepPanelElement) {
|
|
683
|
+
control.id = control.id || `m3e-step-panel-${M3eStepElement_1.__nextId++}`;
|
|
684
|
+
addAriaReferencedId(this, "aria-controls", control.id);
|
|
685
|
+
control.style.order = this.style.order;
|
|
686
|
+
}
|
|
687
|
+
super.attach(control);
|
|
688
|
+
}
|
|
689
|
+
/** @inheritdoc */
|
|
690
|
+
detach() {
|
|
691
|
+
if (this.control) {
|
|
692
|
+
this.control.style.order = "";
|
|
693
|
+
if (this.control.id) {
|
|
694
|
+
removeAriaReferencedId(this, "aria-controls", this.control.id);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
super.detach();
|
|
698
|
+
}
|
|
699
|
+
/** @inheritdoc */
|
|
700
|
+
connectedCallback() {
|
|
701
|
+
this.slot = "step";
|
|
702
|
+
super.connectedCallback();
|
|
703
|
+
this.addEventListener("click", __classPrivateFieldGet(this, _M3eStepElement_clickHandler, "f"));
|
|
704
|
+
}
|
|
705
|
+
/** @inheritdoc */
|
|
706
|
+
disconnectedCallback() {
|
|
707
|
+
super.disconnectedCallback();
|
|
708
|
+
this.removeEventListener("click", __classPrivateFieldGet(this, _M3eStepElement_clickHandler, "f"));
|
|
709
|
+
}
|
|
710
|
+
/** @inheritdoc */
|
|
711
|
+
update(changedProperties) {
|
|
712
|
+
super.update(changedProperties);
|
|
713
|
+
if (changedProperties.has("selected")) {
|
|
714
|
+
this.closest("m3e-stepper")?.[selectionManager].notifySelectionChange(this);
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
/** @inheritdoc */
|
|
718
|
+
firstUpdated(_changedProperties) {
|
|
719
|
+
super.firstUpdated(_changedProperties);
|
|
720
|
+
[this._focusRing, this._stateLayer, this._ripple].forEach(x => x?.attach(this));
|
|
721
|
+
}
|
|
722
|
+
/** @inheritdoc */
|
|
723
|
+
render() {
|
|
724
|
+
const hint = html`<slot name="hint">${this.optional ? html`<span class="hint">(Optional)</span>` : nothing}</slot>`;
|
|
725
|
+
const error = html`<slot name="error">${hint}</slot>`;
|
|
726
|
+
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="wrapper"><div class="icon" aria-hidden="true">${__classPrivateFieldGet(this, _M3eStepElement_instances, "m", _M3eStepElement_renderIcon).call(this)}</div><div class="label"><slot></slot>${this.invalid ? error : hint}</div></div></div>`;
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
_M3eStepElement_clickHandler = new WeakMap();
|
|
730
|
+
_M3eStepElement_instances = new WeakSet();
|
|
731
|
+
_M3eStepElement_renderIcon = function _M3eStepElement_renderIcon() {
|
|
732
|
+
if (!this.selected) {
|
|
733
|
+
if (this.invalid) {
|
|
734
|
+
return html`<slot name="error-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg></slot>`;
|
|
735
|
+
}
|
|
736
|
+
if (this.completed) {
|
|
737
|
+
if (this.editable) {
|
|
738
|
+
return html`<slot name="edit-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"/></svg></slot>`;
|
|
739
|
+
}
|
|
740
|
+
return html`<slot name="done-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg></slot>`;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
return html`<slot name="icon">${this.index + 1}</slot>`;
|
|
744
|
+
};
|
|
745
|
+
_M3eStepElement_handleClick = function _M3eStepElement_handleClick(e) {
|
|
746
|
+
if (this.disabled) {
|
|
747
|
+
e.preventDefault();
|
|
748
|
+
e.stopImmediatePropagation();
|
|
749
|
+
}
|
|
750
|
+
if (e.defaultPrevented || this.selected) return;
|
|
751
|
+
this.selected = true;
|
|
752
|
+
if (this.dispatchEvent(new Event("input", {
|
|
753
|
+
bubbles: true,
|
|
754
|
+
composed: true,
|
|
755
|
+
cancelable: true
|
|
756
|
+
})) && this.closest("m3e-stepper")?.moveTo(this.index)) {
|
|
757
|
+
this.dispatchEvent(new Event("change", {
|
|
758
|
+
bubbles: true
|
|
759
|
+
}));
|
|
760
|
+
} else {
|
|
761
|
+
this.selected = false;
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
/** The styles of the element. */
|
|
765
|
+
M3eStepElement.styles = css`:host { display: block; outline: none; min-width: 0px; position: relative; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { min-width: inherit; position: relative; border-radius: var(--m3e-step-shape, ${DesignToken.shape.corner.medium}); padding: var(--m3e-step-padding, 1.5rem); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .icon { flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--m3e-step-icon-shape, 50%); width: var(--m3e-step-icon-size, 1.5rem); height: var(--m3e-step-icon-size, 1.5rem); } .icon svg, ::slotted([slot="icon"]), ::slotted([slot="edit-icon"]), ::slotted([slot="done-icon"]), ::slotted([slot="error-icon"]) { width: 1em; font-size: var(--m3e-step-icon-size, 1.5rem) !important; } :host(:not([aria-disabled="true"])[selected]) .icon { background-color: var(--m3e-step-selected-icon-container-color, ${DesignToken.color.primary}); color: var(--m3e-step-selected-icon-color, ${DesignToken.color.onPrimary}); } :host(:not([aria-disabled="true"])[completed]:not([invalid])) .icon { background-color: var(--m3e-step-completed-icon-container-color, ${DesignToken.color.primary}); color: var(--m3e-step-completed-icon-color, ${DesignToken.color.onPrimary}); } :host(:not([aria-disabled="true"]):not([selected]):not([completed]):not([invalid])) .icon { background-color: var(--m3e-step-unselected-icon-container-color, ${DesignToken.color.inverseSurface}); color: var(--m3e-step-unselected-icon-color, ${DesignToken.color.inverseOnSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .icon { color: var(--m3e-step-icon-error-color, ${DesignToken.color.error}); } :host([aria-disabled="true"]) .icon { background-color: color-mix( in srgb, var(--m3e-step-disabled-icon-container-color, ${DesignToken.color.onSurface}) 10%, transparent ); color: color-mix(in srgb, var(--m3e-step-disabled-icon-color, ${DesignToken.color.onSurface}) 38%, transparent); } :host(:not([aria-disabled="true"])) .label { color: var(--m3e-step-label-color, ${DesignToken.color.onSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .label { color: var(--m3e-step-label-error-color, ${DesignToken.color.error}); } :host([aria-disabled="true"]) .label { color: color-mix(in srgb, var(--m3e-step-disabled-label-color, ${DesignToken.color.onSurface}) 38%, transparent); } .wrapper { display: flex; align-items: center; height: 100%; border-radius: inherit; font-size: var(--m3e-step-font-size, ${DesignToken.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-step-font-weight, ${DesignToken.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-step-line-height, ${DesignToken.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-step-tracking, ${DesignToken.typescale.standard.title.small.tracking}); flex-direction: var(--_step-direction, row); gap: var(--m3e-step-icon-label-space, 0.5rem); justify-content: flex-start; } .label { display: flex; flex-direction: column; align-items: var(--_step-label-align-items, flex-start); } ::slotted([slot="hint"]), .hint, ::slotted([slot="error"]) { font-size: var(--m3e-step-hint-font-size, ${DesignToken.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-step-hint-font-weight, ${DesignToken.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-step-hint-line-height, ${DesignToken.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-step-hint-tracking, ${DesignToken.typescale.standard.body.small.tracking}); } :host(:not([aria-disabled="true"]):not([invalid])) ::slotted([slot="hint"]), :host(:not([aria-disabled="true"]):not([invalid])) .hint { color: var(--m3e-step-hint-color, ${DesignToken.color.onSurfaceVariant}); } :host([aria-disabled="true"]) ::slotted([slot="hint"]), :host([aria-disabled="true"]) .hint { color: color-mix(in srgb, var(--m3e-step-disabled-hint-color, ${DesignToken.color.onSurface}) 38%, transparent); }`;
|
|
766
|
+
/** @private */
|
|
767
|
+
M3eStepElement.__nextId = 0;
|
|
768
|
+
__decorate([e$1(".focus-ring")], M3eStepElement.prototype, "_focusRing", void 0);
|
|
769
|
+
__decorate([e$1(".state-layer")], M3eStepElement.prototype, "_stateLayer", void 0);
|
|
770
|
+
__decorate([e$1(".ripple")], M3eStepElement.prototype, "_ripple", void 0);
|
|
771
|
+
__decorate([n$1({
|
|
772
|
+
type: Boolean,
|
|
773
|
+
reflect: true
|
|
774
|
+
})], M3eStepElement.prototype, "optional", void 0);
|
|
775
|
+
__decorate([n$1({
|
|
776
|
+
type: Boolean,
|
|
777
|
+
reflect: true
|
|
778
|
+
})], M3eStepElement.prototype, "editable", void 0);
|
|
779
|
+
__decorate([n$1({
|
|
780
|
+
type: Boolean,
|
|
781
|
+
reflect: true
|
|
782
|
+
})], M3eStepElement.prototype, "completed", void 0);
|
|
783
|
+
__decorate([n$1({
|
|
784
|
+
type: Boolean,
|
|
785
|
+
reflect: true
|
|
786
|
+
})], M3eStepElement.prototype, "invalid", void 0);
|
|
787
|
+
__decorate([r$1()], M3eStepElement.prototype, "index", void 0);
|
|
788
|
+
M3eStepElement = M3eStepElement_1 = __decorate([t$2("m3e-step")], M3eStepElement);
|
|
789
|
+
|
|
790
|
+
var _StepperButtonElementBase_action;
|
|
791
|
+
/** A base implementation for a button used to move to a step in a stepper. This class must be inherited. */
|
|
792
|
+
class StepperButtonElementBase extends ActionElementBase {
|
|
793
|
+
constructor(action) {
|
|
794
|
+
super();
|
|
795
|
+
/** @private */
|
|
796
|
+
_StepperButtonElementBase_action.set(this, void 0);
|
|
797
|
+
__classPrivateFieldSet(this, _StepperButtonElementBase_action, action, "f");
|
|
798
|
+
}
|
|
799
|
+
/** @inheritdoc */
|
|
800
|
+
_onClick() {
|
|
801
|
+
switch (__classPrivateFieldGet(this, _StepperButtonElementBase_action, "f")) {
|
|
802
|
+
case "next":
|
|
803
|
+
this.closest("m3e-stepper")?.moveNext();
|
|
804
|
+
break;
|
|
805
|
+
case "previous":
|
|
806
|
+
this.closest("m3e-stepper")?.movePrevious();
|
|
807
|
+
break;
|
|
808
|
+
case "reset":
|
|
809
|
+
this.closest("m3e-stepper")?.reset();
|
|
810
|
+
break;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
_StepperButtonElementBase_action = new WeakMap();
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* @license
|
|
818
|
+
* Copyright 2017 Google LLC
|
|
819
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
820
|
+
*/
|
|
821
|
+
const t = globalThis,
|
|
822
|
+
i = t.trustedTypes,
|
|
823
|
+
s = i ? i.createPolicy("lit-html", {
|
|
824
|
+
createHTML: t => t
|
|
825
|
+
}) : void 0,
|
|
826
|
+
e = "$lit$",
|
|
827
|
+
h = `lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
828
|
+
o$1 = "?" + h,
|
|
829
|
+
n = `<${o$1}>`,
|
|
830
|
+
r = document,
|
|
831
|
+
l = () => r.createComment(""),
|
|
832
|
+
c = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
833
|
+
a = Array.isArray,
|
|
834
|
+
u = t => a(t) || "function" == typeof t?.[Symbol.iterator],
|
|
835
|
+
d = "[ \t\n\f\r]",
|
|
836
|
+
f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
837
|
+
v = /-->/g,
|
|
838
|
+
_ = />/g,
|
|
839
|
+
m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
840
|
+
p = /'/g,
|
|
841
|
+
g = /"/g,
|
|
842
|
+
$ = /^(?:script|style|textarea|title)$/i,
|
|
843
|
+
T = Symbol.for("lit-noChange"),
|
|
844
|
+
E = Symbol.for("lit-nothing"),
|
|
845
|
+
A = new WeakMap(),
|
|
846
|
+
C = r.createTreeWalker(r, 129);
|
|
847
|
+
function P(t, i) {
|
|
848
|
+
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
849
|
+
return void 0 !== s ? s.createHTML(i) : i;
|
|
850
|
+
}
|
|
851
|
+
const V = (t, i) => {
|
|
852
|
+
const s = t.length - 1,
|
|
853
|
+
o = [];
|
|
854
|
+
let r,
|
|
855
|
+
l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
|
|
856
|
+
c = f;
|
|
857
|
+
for (let i = 0; i < s; i++) {
|
|
858
|
+
const s = t[i];
|
|
859
|
+
let a,
|
|
860
|
+
u,
|
|
861
|
+
d = -1,
|
|
862
|
+
y = 0;
|
|
863
|
+
for (; y < s.length && (c.lastIndex = y, u = c.exec(s), null !== u);) y = c.lastIndex, c === f ? "!--" === u[1] ? c = v : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m) : void 0 !== u[3] && (c = m) : c === m ? ">" === u[0] ? (c = r ?? f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m : '"' === u[3] ? g : p) : c === g || c === p ? c = m : c === v || c === _ ? c = f : (c = m, r = void 0);
|
|
864
|
+
const x = c === m && t[i + 1].startsWith("/>") ? " " : "";
|
|
865
|
+
l += c === f ? s + n : d >= 0 ? (o.push(a), s.slice(0, d) + e + s.slice(d) + h + x) : s + h + (-2 === d ? i : x);
|
|
866
|
+
}
|
|
867
|
+
return [P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), o];
|
|
868
|
+
};
|
|
869
|
+
class N {
|
|
870
|
+
constructor({
|
|
871
|
+
strings: t,
|
|
872
|
+
_$litType$: s
|
|
873
|
+
}, n) {
|
|
874
|
+
let r;
|
|
875
|
+
this.parts = [];
|
|
876
|
+
let c = 0,
|
|
877
|
+
a = 0;
|
|
878
|
+
const u = t.length - 1,
|
|
879
|
+
d = this.parts,
|
|
880
|
+
[f, v] = V(t, s);
|
|
881
|
+
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
|
882
|
+
const t = this.el.content.firstChild;
|
|
883
|
+
t.replaceWith(...t.childNodes);
|
|
884
|
+
}
|
|
885
|
+
for (; null !== (r = C.nextNode()) && d.length < u;) {
|
|
886
|
+
if (1 === r.nodeType) {
|
|
887
|
+
if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(e)) {
|
|
888
|
+
const i = v[a++],
|
|
889
|
+
s = r.getAttribute(t).split(h),
|
|
890
|
+
e = /([.?@])?(.*)/.exec(i);
|
|
891
|
+
d.push({
|
|
892
|
+
type: 1,
|
|
893
|
+
index: c,
|
|
894
|
+
name: e[2],
|
|
895
|
+
strings: s,
|
|
896
|
+
ctor: "." === e[1] ? H : "?" === e[1] ? I : "@" === e[1] ? L : k
|
|
897
|
+
}), r.removeAttribute(t);
|
|
898
|
+
} else t.startsWith(h) && (d.push({
|
|
899
|
+
type: 6,
|
|
900
|
+
index: c
|
|
901
|
+
}), r.removeAttribute(t));
|
|
902
|
+
if ($.test(r.tagName)) {
|
|
903
|
+
const t = r.textContent.split(h),
|
|
904
|
+
s = t.length - 1;
|
|
905
|
+
if (s > 0) {
|
|
906
|
+
r.textContent = i ? i.emptyScript : "";
|
|
907
|
+
for (let i = 0; i < s; i++) r.append(t[i], l()), C.nextNode(), d.push({
|
|
908
|
+
type: 2,
|
|
909
|
+
index: ++c
|
|
910
|
+
});
|
|
911
|
+
r.append(t[s], l());
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
} else if (8 === r.nodeType) if (r.data === o$1) d.push({
|
|
915
|
+
type: 2,
|
|
916
|
+
index: c
|
|
917
|
+
});else {
|
|
918
|
+
let t = -1;
|
|
919
|
+
for (; -1 !== (t = r.data.indexOf(h, t + 1));) d.push({
|
|
920
|
+
type: 7,
|
|
921
|
+
index: c
|
|
922
|
+
}), t += h.length - 1;
|
|
923
|
+
}
|
|
924
|
+
c++;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
static createElement(t, i) {
|
|
928
|
+
const s = r.createElement("template");
|
|
929
|
+
return s.innerHTML = t, s;
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
function S(t, i, s = t, e) {
|
|
933
|
+
if (i === T) return i;
|
|
934
|
+
let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
|
|
935
|
+
const o = c(i) ? void 0 : i._$litDirective$;
|
|
936
|
+
return h?.constructor !== o && (h?._$AO?.(false), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
|
937
|
+
}
|
|
938
|
+
class M {
|
|
939
|
+
constructor(t, i) {
|
|
940
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
941
|
+
}
|
|
942
|
+
get parentNode() {
|
|
943
|
+
return this._$AM.parentNode;
|
|
944
|
+
}
|
|
945
|
+
get _$AU() {
|
|
946
|
+
return this._$AM._$AU;
|
|
947
|
+
}
|
|
948
|
+
u(t) {
|
|
949
|
+
const {
|
|
950
|
+
el: {
|
|
951
|
+
content: i
|
|
952
|
+
},
|
|
953
|
+
parts: s
|
|
954
|
+
} = this._$AD,
|
|
955
|
+
e = (t?.creationScope ?? r).importNode(i, true);
|
|
956
|
+
C.currentNode = e;
|
|
957
|
+
let h = C.nextNode(),
|
|
958
|
+
o = 0,
|
|
959
|
+
n = 0,
|
|
960
|
+
l = s[0];
|
|
961
|
+
for (; void 0 !== l;) {
|
|
962
|
+
if (o === l.index) {
|
|
963
|
+
let i;
|
|
964
|
+
2 === l.type ? i = new R(h, h.nextSibling, this, t) : 1 === l.type ? i = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i = new z(h, this, t)), this._$AV.push(i), l = s[++n];
|
|
965
|
+
}
|
|
966
|
+
o !== l?.index && (h = C.nextNode(), o++);
|
|
967
|
+
}
|
|
968
|
+
return C.currentNode = r, e;
|
|
969
|
+
}
|
|
970
|
+
p(t) {
|
|
971
|
+
let i = 0;
|
|
972
|
+
for (const s of this._$AV) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
class R {
|
|
976
|
+
get _$AU() {
|
|
977
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
978
|
+
}
|
|
979
|
+
constructor(t, i, s, e) {
|
|
980
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? true;
|
|
981
|
+
}
|
|
982
|
+
get parentNode() {
|
|
983
|
+
let t = this._$AA.parentNode;
|
|
984
|
+
const i = this._$AM;
|
|
985
|
+
return void 0 !== i && 11 === t?.nodeType && (t = i.parentNode), t;
|
|
986
|
+
}
|
|
987
|
+
get startNode() {
|
|
988
|
+
return this._$AA;
|
|
989
|
+
}
|
|
990
|
+
get endNode() {
|
|
991
|
+
return this._$AB;
|
|
992
|
+
}
|
|
993
|
+
_$AI(t, i = this) {
|
|
994
|
+
t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
|
|
995
|
+
}
|
|
996
|
+
O(t) {
|
|
997
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
998
|
+
}
|
|
999
|
+
T(t) {
|
|
1000
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
1001
|
+
}
|
|
1002
|
+
_(t) {
|
|
1003
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r.createTextNode(t)), this._$AH = t;
|
|
1004
|
+
}
|
|
1005
|
+
$(t) {
|
|
1006
|
+
const {
|
|
1007
|
+
values: i,
|
|
1008
|
+
_$litType$: s
|
|
1009
|
+
} = t,
|
|
1010
|
+
e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
|
|
1011
|
+
if (this._$AH?._$AD === e) this._$AH.p(i);else {
|
|
1012
|
+
const t = new M(e, this),
|
|
1013
|
+
s = t.u(this.options);
|
|
1014
|
+
t.p(i), this.T(s), this._$AH = t;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
_$AC(t) {
|
|
1018
|
+
let i = A.get(t.strings);
|
|
1019
|
+
return void 0 === i && A.set(t.strings, i = new N(t)), i;
|
|
1020
|
+
}
|
|
1021
|
+
k(t) {
|
|
1022
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
1023
|
+
const i = this._$AH;
|
|
1024
|
+
let s,
|
|
1025
|
+
e = 0;
|
|
1026
|
+
for (const h of t) e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
1027
|
+
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
1028
|
+
}
|
|
1029
|
+
_$AR(t = this._$AA.nextSibling, i) {
|
|
1030
|
+
for (this._$AP?.(false, true, i); t !== this._$AB;) {
|
|
1031
|
+
const i = t.nextSibling;
|
|
1032
|
+
t.remove(), t = i;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
setConnected(t) {
|
|
1036
|
+
void 0 === this._$AM && (this._$Cv = t, this._$AP?.(t));
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
class k {
|
|
1040
|
+
get tagName() {
|
|
1041
|
+
return this.element.tagName;
|
|
1042
|
+
}
|
|
1043
|
+
get _$AU() {
|
|
1044
|
+
return this._$AM._$AU;
|
|
1045
|
+
}
|
|
1046
|
+
constructor(t, i, s, e, h) {
|
|
1047
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = E;
|
|
1048
|
+
}
|
|
1049
|
+
_$AI(t, i = this, s, e) {
|
|
1050
|
+
const h = this.strings;
|
|
1051
|
+
let o = false;
|
|
1052
|
+
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);else {
|
|
1053
|
+
const e = t;
|
|
1054
|
+
let n, r;
|
|
1055
|
+
for (t = h[0], n = 0; n < h.length - 1; n++) r = S(this, e[s + n], i, n), r === T && (r = this._$AH[n]), o ||= !c(r) || r !== this._$AH[n], r === E ? t = E : t !== E && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
|
|
1056
|
+
}
|
|
1057
|
+
o && !e && this.j(t);
|
|
1058
|
+
}
|
|
1059
|
+
j(t) {
|
|
1060
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
class H extends k {
|
|
1064
|
+
constructor() {
|
|
1065
|
+
super(...arguments), this.type = 3;
|
|
1066
|
+
}
|
|
1067
|
+
j(t) {
|
|
1068
|
+
this.element[this.name] = t === E ? void 0 : t;
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
class I extends k {
|
|
1072
|
+
constructor() {
|
|
1073
|
+
super(...arguments), this.type = 4;
|
|
1074
|
+
}
|
|
1075
|
+
j(t) {
|
|
1076
|
+
this.element.toggleAttribute(this.name, !!t && t !== E);
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
class L extends k {
|
|
1080
|
+
constructor(t, i, s, e, h) {
|
|
1081
|
+
super(t, i, s, e, h), this.type = 5;
|
|
1082
|
+
}
|
|
1083
|
+
_$AI(t, i = this) {
|
|
1084
|
+
if ((t = S(this, t, i, 0) ?? E) === T) return;
|
|
1085
|
+
const s = this._$AH,
|
|
1086
|
+
e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
1087
|
+
h = t !== E && (s === E || e);
|
|
1088
|
+
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1089
|
+
}
|
|
1090
|
+
handleEvent(t) {
|
|
1091
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
class z {
|
|
1095
|
+
constructor(t, i, s) {
|
|
1096
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
1097
|
+
}
|
|
1098
|
+
get _$AU() {
|
|
1099
|
+
return this._$AM._$AU;
|
|
1100
|
+
}
|
|
1101
|
+
_$AI(t) {
|
|
1102
|
+
S(this, t);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
const j = t.litHtmlPolyfillSupport;
|
|
1106
|
+
j?.(N, R), (t.litHtmlVersions ??= []).push("3.3.1");
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* @license
|
|
1110
|
+
* Copyright 2018 Google LLC
|
|
1111
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1112
|
+
*/
|
|
1113
|
+
const o = o => o ?? E;
|
|
1114
|
+
|
|
1115
|
+
var _M3eStepperElement_instances, _M3eStepperElement_breakpointUnobserve, _M3eStepperElement_renderHeader, _M3eStepperElement_handleChange, _M3eStepperElement_handleSlotChange, _M3eStepperElement_handleKeyDown, _M3eStepperElement_handleSelectedChange, _M3eStepperElement_checkValidity, _M3eStepperElement_updateDisplayOrder, _a;
|
|
1116
|
+
/**
|
|
1117
|
+
* Provides a wizard-like workflow by dividing content into logical steps.
|
|
1118
|
+
*
|
|
1119
|
+
* @description
|
|
1120
|
+
* The `m3e-stepper` component orchestrates a structured, wizard-like workflow by dividing
|
|
1121
|
+
* content into discrete, navigable steps. It supports horizontal and vertical orientations,
|
|
1122
|
+
* linear progression, and configurable label and header positioning.
|
|
1123
|
+
*
|
|
1124
|
+
* @example
|
|
1125
|
+
* The following example demonstrates a linear multi-step form flow using the `m3e-stepper`
|
|
1126
|
+
* component. Each `m3e-step` defines a navigable step label, linked to its corresponding
|
|
1127
|
+
* `m3e-step-panel` via the `for` attribute. Navigation is orchestrated using the
|
|
1128
|
+
* `m3e-stepper-next`, `m3e-stepper-previous`, and `m3e-stepper-reset` components.
|
|
1129
|
+
*
|
|
1130
|
+
* <m3e-stepper>
|
|
1131
|
+
* <m3e-step for="step1">Fill out your name</m3e-step>
|
|
1132
|
+
* <m3e-step for="step2">Fill out your address</m3e-step>
|
|
1133
|
+
* <m3e-step for="step3">Done</m3e-step>
|
|
1134
|
+
* <m3e-step-panel id="step1">
|
|
1135
|
+
* <form>
|
|
1136
|
+
* <m3e-form-field>
|
|
1137
|
+
* <label slot="label" for="name">Name</label>
|
|
1138
|
+
* <input name="name" id="name" required />
|
|
1139
|
+
* </m3e-form-field>
|
|
1140
|
+
* </form>
|
|
1141
|
+
* <div slot="actions">
|
|
1142
|
+
* <m3e-button><m3e-stepper-next>Next</m3e-stepper-next></m3e-button>
|
|
1143
|
+
* </div>
|
|
1144
|
+
* </m3e-step-panel>
|
|
1145
|
+
* <m3e-step-panel id="step2">
|
|
1146
|
+
* <form>
|
|
1147
|
+
* <m3e-form-field>
|
|
1148
|
+
* <label slot="label" for="address">Address</label>
|
|
1149
|
+
* <input name="address" id="address" required />
|
|
1150
|
+
* </m3e-form-field>
|
|
1151
|
+
* </form>
|
|
1152
|
+
* <div slot="actions">
|
|
1153
|
+
* <m3e-button><m3e-stepper-previous>Back</m3e-stepper-previous></m3e-button>
|
|
1154
|
+
* <m3e-button><m3e-stepper-next>Next</m3e-stepper-next></m3e-button>
|
|
1155
|
+
* </div>
|
|
1156
|
+
* </m3e-step-panel>
|
|
1157
|
+
* <m3e-step-panel id="step3">Done
|
|
1158
|
+
* <div slot="actions">
|
|
1159
|
+
* <m3e-button><m3e-stepper-previous>Back</m3e-stepper-previous></m3e-button>
|
|
1160
|
+
* <m3e-button><m3e-stepper-reset>Reset</m3e-stepper-reset></m3e-button>
|
|
1161
|
+
* </div>
|
|
1162
|
+
* </m3e-step-panel>
|
|
1163
|
+
* </m3e-stepper>
|
|
1164
|
+
*
|
|
1165
|
+
* @tag m3e-stepper
|
|
1166
|
+
*
|
|
1167
|
+
* @attr header-position - The position of the step header, when oriented horizontally.
|
|
1168
|
+
* @attr label-position - The position of the step labels, when oriented horizontally.
|
|
1169
|
+
* @attr linear - Whether the validity of previous steps should be checked or not.
|
|
1170
|
+
* @attr orientation - The orientation of the stepper.
|
|
1171
|
+
*
|
|
1172
|
+
* @slot step - Renders a step.
|
|
1173
|
+
* @slot panel - Renders a panel.
|
|
1174
|
+
*
|
|
1175
|
+
* @fires change - Emitted when the selected step changes.
|
|
1176
|
+
*
|
|
1177
|
+
* @cssprop --m3e-step-divider-thickness - Thickness of the divider line between steps.
|
|
1178
|
+
* @cssprop --m3e-step-divider-color - Color of the divider line between steps.
|
|
1179
|
+
* @cssprop --m3e-step-divider-inset - Inset offset for divider alignment within step layout.
|
|
1180
|
+
*/
|
|
1181
|
+
let M3eStepperElement = class M3eStepperElement extends AttachInternals(LitElement) {
|
|
1182
|
+
constructor() {
|
|
1183
|
+
super(...arguments);
|
|
1184
|
+
_M3eStepperElement_instances.add(this);
|
|
1185
|
+
/** @private */
|
|
1186
|
+
_M3eStepperElement_breakpointUnobserve.set(this, void 0);
|
|
1187
|
+
/** @private */
|
|
1188
|
+
this._selectedIndex = null;
|
|
1189
|
+
/** @internal */
|
|
1190
|
+
this[_a] = new SelectionManager().withHomeAndEnd().withWrap().onSelectedItemsChange(() => __classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_handleSelectedChange).call(this));
|
|
1191
|
+
/**
|
|
1192
|
+
* The position of the step header, when oriented horizontally.
|
|
1193
|
+
* @default "above"
|
|
1194
|
+
*/
|
|
1195
|
+
this.headerPosition = "above";
|
|
1196
|
+
/**
|
|
1197
|
+
* The position of the step labels, when oriented horizontally.
|
|
1198
|
+
* @default "end"
|
|
1199
|
+
*/
|
|
1200
|
+
this.labelPosition = "end";
|
|
1201
|
+
/**
|
|
1202
|
+
* Whether the validity of previous steps should be checked or not.
|
|
1203
|
+
* @default false
|
|
1204
|
+
*/
|
|
1205
|
+
this.linear = false;
|
|
1206
|
+
/**
|
|
1207
|
+
* The orientation of the stepper.
|
|
1208
|
+
* @default "horizontal"
|
|
1209
|
+
*/
|
|
1210
|
+
this.orientation = "horizontal";
|
|
1211
|
+
}
|
|
1212
|
+
/** The steps. */
|
|
1213
|
+
get steps() {
|
|
1214
|
+
return this[selectionManager]?.items ?? [];
|
|
1215
|
+
}
|
|
1216
|
+
/** The selected step. */
|
|
1217
|
+
get selectedStep() {
|
|
1218
|
+
return this._selectedIndex !== null ? this.steps[this._selectedIndex] ?? null : null;
|
|
1219
|
+
}
|
|
1220
|
+
/** The zero-based index of the selected step. */
|
|
1221
|
+
get selectedIndex() {
|
|
1222
|
+
return this._selectedIndex ?? -1;
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
* Moves the stepper to the previous step.
|
|
1226
|
+
* @returns {boolean} Whether the stepper moved to the previous step.
|
|
1227
|
+
*/
|
|
1228
|
+
movePrevious() {
|
|
1229
|
+
return this.moveTo((this._selectedIndex ?? 1) - 1);
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* Moves the stepper to the next step.
|
|
1233
|
+
* @returns {boolean} Whether the stepper moved to the next step.
|
|
1234
|
+
*/
|
|
1235
|
+
moveNext() {
|
|
1236
|
+
return this.moveTo((this._selectedIndex ?? -1) + 1);
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Moves the stepper to the step with the specified index.
|
|
1240
|
+
* @param index The zero-based index of the step to which to move.
|
|
1241
|
+
* @returns {boolean} Whether the stepper moved to the specified `index`.
|
|
1242
|
+
*/
|
|
1243
|
+
moveTo(index) {
|
|
1244
|
+
const selectedStep = this.selectedStep;
|
|
1245
|
+
if (selectedStep && selectedStep.index === index) {
|
|
1246
|
+
return true;
|
|
1247
|
+
}
|
|
1248
|
+
if (this.steps[index]?.disabled) {
|
|
1249
|
+
return false;
|
|
1250
|
+
}
|
|
1251
|
+
if (index >= 0 && index < this.steps.length) {
|
|
1252
|
+
if (selectedStep) {
|
|
1253
|
+
const valid = __classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_checkValidity).call(this);
|
|
1254
|
+
if (this.linear) {
|
|
1255
|
+
if (index < selectedStep.index) {
|
|
1256
|
+
const previousStep = this[selectionManager].items[index];
|
|
1257
|
+
if (!previousStep || previousStep.completed && !previousStep.editable) {
|
|
1258
|
+
return false;
|
|
1259
|
+
}
|
|
1260
|
+
} else if (index > selectedStep.index + 1) {
|
|
1261
|
+
const nextStep = this[selectionManager].items[index];
|
|
1262
|
+
if (!nextStep || !nextStep.completed) {
|
|
1263
|
+
return false;
|
|
1264
|
+
}
|
|
1265
|
+
} else if (!valid && !selectedStep.optional) {
|
|
1266
|
+
return false;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
selectedStep.completed = true;
|
|
1270
|
+
}
|
|
1271
|
+
this._selectedIndex = index;
|
|
1272
|
+
this[selectionManager].select(this.selectedStep);
|
|
1273
|
+
this.dispatchEvent(new Event("change", {
|
|
1274
|
+
bubbles: true
|
|
1275
|
+
}));
|
|
1276
|
+
return true;
|
|
1277
|
+
} else {
|
|
1278
|
+
if (selectedStep) {
|
|
1279
|
+
this[selectionManager].deselect(selectedStep);
|
|
1280
|
+
this.dispatchEvent(new Event("change", {
|
|
1281
|
+
bubbles: true
|
|
1282
|
+
}));
|
|
1283
|
+
}
|
|
1284
|
+
return false;
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
/** Resets the stepper to its initial state, clearing any form data. */
|
|
1288
|
+
reset() {
|
|
1289
|
+
this.steps.forEach(x => x.reset());
|
|
1290
|
+
const index = this.steps.findIndex(x => !x.disabled);
|
|
1291
|
+
if (index !== this._selectedIndex) {
|
|
1292
|
+
this._selectedIndex = index;
|
|
1293
|
+
this[selectionManager].select(this.selectedStep);
|
|
1294
|
+
this.dispatchEvent(new Event("change", {
|
|
1295
|
+
bubbles: true
|
|
1296
|
+
}));
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
/** @inheritdoc */
|
|
1300
|
+
connectedCallback() {
|
|
1301
|
+
super.connectedCallback();
|
|
1302
|
+
this.classList.toggle("-no-animate", true);
|
|
1303
|
+
}
|
|
1304
|
+
/** @inheritdoc */
|
|
1305
|
+
disconnectedCallback() {
|
|
1306
|
+
super.disconnectedCallback();
|
|
1307
|
+
this._orientation = undefined;
|
|
1308
|
+
__classPrivateFieldGet(this, _M3eStepperElement_breakpointUnobserve, "f")?.call(this);
|
|
1309
|
+
}
|
|
1310
|
+
/** @inheritdoc */
|
|
1311
|
+
update(changedProperties) {
|
|
1312
|
+
super.update(changedProperties);
|
|
1313
|
+
if (changedProperties.has("orientation")) {
|
|
1314
|
+
__classPrivateFieldGet(this, _M3eStepperElement_breakpointUnobserve, "f")?.call(this);
|
|
1315
|
+
if (this.orientation === "auto") {
|
|
1316
|
+
__classPrivateFieldSet(this, _M3eStepperElement_breakpointUnobserve, M3eBreakpointObserver.observe([Breakpoint.XSmall], matches => {
|
|
1317
|
+
this._orientation = matches.get(Breakpoint.XSmall) ? "vertical" : "horizontal";
|
|
1318
|
+
__classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_updateDisplayOrder).call(this);
|
|
1319
|
+
}), "f");
|
|
1320
|
+
} else {
|
|
1321
|
+
this._orientation = undefined;
|
|
1322
|
+
__classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_updateDisplayOrder).call(this);
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
if (changedProperties.has("_orientation")) {
|
|
1326
|
+
__classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_updateDisplayOrder).call(this);
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
/** @inheritdoc */
|
|
1330
|
+
render() {
|
|
1331
|
+
let panelIndex;
|
|
1332
|
+
if (this.selectedStep?.panel) {
|
|
1333
|
+
panelIndex = [...this.querySelectorAll("[slot='panel']")].indexOf(this.selectedStep.panel);
|
|
1334
|
+
if (panelIndex === -1) {
|
|
1335
|
+
panelIndex = undefined;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
if (!this[selectionManager].vertical) {
|
|
1339
|
+
return html`${this.headerPosition === "above" ? __classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_renderHeader).call(this) : nothing}<m3e-slide class="steps" selected-index="${o(panelIndex)}"><slot name="panel"></slot></m3e-slide>${this.headerPosition === "below" ? __classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_renderHeader).call(this) : nothing}`;
|
|
1340
|
+
}
|
|
1341
|
+
return html`${__classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_renderHeader).call(this)}<slot name="panel"></slot>`;
|
|
1342
|
+
}
|
|
1343
|
+
};
|
|
1344
|
+
_M3eStepperElement_breakpointUnobserve = new WeakMap();
|
|
1345
|
+
_M3eStepperElement_instances = new WeakSet();
|
|
1346
|
+
_a = selectionManager;
|
|
1347
|
+
_M3eStepperElement_renderHeader = function _M3eStepperElement_renderHeader() {
|
|
1348
|
+
return html`<div class="header" role="tablist" aria-orientation="${o(this[selectionManager].vertical ? "vertical" : undefined)}" @change="${__classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_handleChange)}"><slot name="step" @slotchange="${__classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_handleSlotChange)}" @keydown="${__classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_handleKeyDown)}"></slot></div>`;
|
|
1349
|
+
};
|
|
1350
|
+
_M3eStepperElement_handleChange = function _M3eStepperElement_handleChange(e) {
|
|
1351
|
+
e.stopPropagation();
|
|
1352
|
+
// Note: change event emitted from moveTo.
|
|
1353
|
+
};
|
|
1354
|
+
_M3eStepperElement_handleSlotChange = function _M3eStepperElement_handleSlotChange() {
|
|
1355
|
+
const {
|
|
1356
|
+
added,
|
|
1357
|
+
removed
|
|
1358
|
+
} = this[selectionManager].setItems([...this.querySelectorAll("m3e-step")]);
|
|
1359
|
+
if (added.length > 0 || removed.length > 0) {
|
|
1360
|
+
this.querySelectorAll(".-m3e-step-divider").forEach(x => x.remove());
|
|
1361
|
+
for (let i = 0; i < this[selectionManager].items.length; i++) {
|
|
1362
|
+
const step = this[selectionManager].items[i];
|
|
1363
|
+
step.index = i;
|
|
1364
|
+
if (i > 0) {
|
|
1365
|
+
const divider = document.createElement("div");
|
|
1366
|
+
divider.ariaHidden = "true";
|
|
1367
|
+
divider.classList.add("-m3e-step-divider");
|
|
1368
|
+
divider.slot = "step";
|
|
1369
|
+
step.insertAdjacentElement("beforebegin", divider);
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
__classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_updateDisplayOrder).call(this);
|
|
1373
|
+
if (this[selectionManager].selectedItems.length == 0) {
|
|
1374
|
+
this[selectionManager].select(this[selectionManager].items.find(x => !x.disabled));
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
};
|
|
1378
|
+
_M3eStepperElement_handleKeyDown = function _M3eStepperElement_handleKeyDown(e) {
|
|
1379
|
+
this[selectionManager].onKeyDown(e);
|
|
1380
|
+
};
|
|
1381
|
+
_M3eStepperElement_handleSelectedChange = function _M3eStepperElement_handleSelectedChange() {
|
|
1382
|
+
const selected = this[selectionManager].selectedItems[0];
|
|
1383
|
+
let selectedIndex = selected ? this.steps.indexOf(selected) : null;
|
|
1384
|
+
if (selectedIndex === -1) {
|
|
1385
|
+
selectedIndex = null;
|
|
1386
|
+
}
|
|
1387
|
+
this._selectedIndex = selectedIndex;
|
|
1388
|
+
for (const step of this[selectionManager].items) {
|
|
1389
|
+
if (step.panel) {
|
|
1390
|
+
step.panel.active = step.index === selectedIndex;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
if (selected && this.matches(":focus-within") && !selected.matches(":focus")) {
|
|
1394
|
+
selected.focus();
|
|
1395
|
+
}
|
|
1396
|
+
if (this.classList.contains("-no-animate")) {
|
|
1397
|
+
requestAnimationFrame(() => this.classList.toggle("-no-animate", false));
|
|
1398
|
+
}
|
|
1399
|
+
};
|
|
1400
|
+
_M3eStepperElement_checkValidity = function _M3eStepperElement_checkValidity() {
|
|
1401
|
+
let valid = false;
|
|
1402
|
+
if (this.selectedStep) {
|
|
1403
|
+
valid = this.selectedStep.panel?.querySelector("form")?.checkValidity() ?? true;
|
|
1404
|
+
if (this.selectedStep.optional) {
|
|
1405
|
+
valid = true;
|
|
1406
|
+
}
|
|
1407
|
+
this.selectedStep.invalid = !valid;
|
|
1408
|
+
}
|
|
1409
|
+
return valid;
|
|
1410
|
+
};
|
|
1411
|
+
_M3eStepperElement_updateDisplayOrder = function _M3eStepperElement_updateDisplayOrder() {
|
|
1412
|
+
this[selectionManager].vertical = (this._orientation ?? this.orientation) === "vertical";
|
|
1413
|
+
this.classList.toggle("-vertical", this[selectionManager].vertical);
|
|
1414
|
+
if (!this[selectionManager].vertical) {
|
|
1415
|
+
this.steps.forEach(x => {
|
|
1416
|
+
x.style.order = "";
|
|
1417
|
+
if (x.panel) {
|
|
1418
|
+
x.panel.style.order = "";
|
|
1419
|
+
}
|
|
1420
|
+
});
|
|
1421
|
+
} else {
|
|
1422
|
+
this.steps.forEach((x, i) => {
|
|
1423
|
+
x.style.order = `${i}`;
|
|
1424
|
+
if (x.panel) {
|
|
1425
|
+
x.panel.style.order = `${i}`;
|
|
1426
|
+
}
|
|
1427
|
+
});
|
|
1428
|
+
}
|
|
1429
|
+
};
|
|
1430
|
+
(() => {
|
|
1431
|
+
if (document) {
|
|
1432
|
+
const lightDomStyle = new CSSStyleSheet();
|
|
1433
|
+
lightDomStyle.replaceSync(css`m3e-stepper:not(.-vertical) > .-m3e-step-divider::before { border-bottom-width: var(--m3e-step-divider-thickness, 1px); border-bottom-style: solid; border-bottom-color: var(--m3e-step-divider-color, ${DesignToken.color.outline}); } m3e-stepper:not(.-vertical) > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:not(.-vertical) > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { border-bottom-width: var(--m3e-step-divider-thickness, 1px); border-bottom-style: solid; border-bottom-color: var(--m3e-step-divider-color, ${DesignToken.color.outline}); } m3e-stepper:not(.-vertical)[label-position="end"] > .-m3e-step-divider { margin-block: auto; } m3e-stepper:not(.-vertical)[label-position="below"] > .-m3e-step-divider::before, m3e-stepper:not(.-vertical)[label-position="below"] > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:not(.-vertical)[label-position="below"] > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { margin-block-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); } m3e-stepper.-vertical > [slot="panel"] { margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); } m3e-stepper.-vertical > [slot="panel"]:not(:last-of-type) { border-inline-start-width: var(--m3e-step-divider-thickness, 1px); border-inline-start-style: solid; border-inline-start-color: var(--m3e-step-divider-color, ${DesignToken.color.outline}); } m3e-stepper.-vertical > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper.-vertical > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); border-inline-start-width: var(--m3e-step-divider-thickness, 1px); border-inline-start-style: solid; border-inline-start-color: var(--m3e-step-divider-color, ${DesignToken.color.outline}); }`.toString());
|
|
1434
|
+
document.adoptedStyleSheets = [...document.adoptedStyleSheets, lightDomStyle];
|
|
1435
|
+
}
|
|
1436
|
+
})();
|
|
1437
|
+
/** The styles of the element. */
|
|
1438
|
+
M3eStepperElement.styles = css`:host { display: flex; flex-direction: column; position: relative; } :host(:not(.-vertical)) .header { display: flex; align-items: flex-start; flex-wrap: nowrap; } :host(:not(.-vertical)) ::slotted(.-m3e-step-divider) { flex: 1 1 auto; position: relative; min-width: 2rem; } :host(:not(.-vertical)) ::slotted(.-m3e-step-divider)::before { content: ""; position: absolute; left: 0; right: 0; } :host(:not(.-vertical):not([label-position="below"])) ::slotted(.-m3e-step-divider)::before { top: 50%; } :host(:not(.-vertical)) ::slotted([slot="step"]) { align-self: stretch; } :host(:not(.-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(.-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; top: 0; } :host(:not(.-vertical)[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(.-vertical)[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: 50%; } :host(:not(:dir(rtl)):not(.-vertical)[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(.-vertical)[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(.-vertical)[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(.-vertical)[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(:dir(rtl)):not(.-vertical)[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(.-vertical)[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(.-vertical)[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(.-vertical)[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(.-vertical)[label-position="below"]) { --_step-direction: column; --_step-label-align-items: center; } :host(.-vertical) .header { display: contents; } :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider)) { flex: none; } :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; left: 0; } :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { top: 0; bottom: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); bottom: 0; } :host(:not(.-vertical)) { --m3e-collapsible-animation-duration: 0ms; } :host(.-no-animate) { --m3e-collapsible-animation-duration: 0ms; }`;
|
|
1439
|
+
__decorate([r$1()], M3eStepperElement.prototype, "_orientation", void 0);
|
|
1440
|
+
__decorate([r$1()], M3eStepperElement.prototype, "_selectedIndex", void 0);
|
|
1441
|
+
__decorate([n$1({
|
|
1442
|
+
attribute: "header-position",
|
|
1443
|
+
reflect: true
|
|
1444
|
+
})], M3eStepperElement.prototype, "headerPosition", void 0);
|
|
1445
|
+
__decorate([n$1({
|
|
1446
|
+
attribute: "label-position",
|
|
1447
|
+
reflect: true
|
|
1448
|
+
})], M3eStepperElement.prototype, "labelPosition", void 0);
|
|
1449
|
+
__decorate([n$1({
|
|
1450
|
+
type: Boolean,
|
|
1451
|
+
reflect: true
|
|
1452
|
+
})], M3eStepperElement.prototype, "linear", void 0);
|
|
1453
|
+
__decorate([n$1({
|
|
1454
|
+
reflect: true
|
|
1455
|
+
})], M3eStepperElement.prototype, "orientation", void 0);
|
|
1456
|
+
M3eStepperElement = __decorate([t$2("m3e-stepper")], M3eStepperElement);
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* An element, nested within a clickable element, used to move a stepper to the next step.
|
|
1460
|
+
* @tag m3e-stepper-previous
|
|
1461
|
+
*
|
|
1462
|
+
* @slot - Renders the content of the action.
|
|
1463
|
+
*/
|
|
1464
|
+
let M3eStepperNextElement = class M3eStepperNextElement extends StepperButtonElementBase {
|
|
1465
|
+
constructor() {
|
|
1466
|
+
super("next");
|
|
1467
|
+
}
|
|
1468
|
+
};
|
|
1469
|
+
M3eStepperNextElement = __decorate([t$2("m3e-stepper-next")], M3eStepperNextElement);
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* An element, nested within a clickable element, used to move a stepper to the previous step.
|
|
1473
|
+
* @tag m3e-stepper-previous
|
|
1474
|
+
*
|
|
1475
|
+
* @slot - Renders the content of the action.
|
|
1476
|
+
*/
|
|
1477
|
+
let M3eStepperPreviousElement = class M3eStepperPreviousElement extends StepperButtonElementBase {
|
|
1478
|
+
constructor() {
|
|
1479
|
+
super("previous");
|
|
1480
|
+
}
|
|
1481
|
+
};
|
|
1482
|
+
M3eStepperPreviousElement = __decorate([t$2("m3e-stepper-previous")], M3eStepperPreviousElement);
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* An element, nested within a clickable element, used to reset a stepper to its initial state.
|
|
1486
|
+
* @tag m3e-stepper-reset
|
|
1487
|
+
*
|
|
1488
|
+
* @slot - Renders the content of the action.
|
|
1489
|
+
*/
|
|
1490
|
+
let M3eStepperResetElement = class M3eStepperResetElement extends StepperButtonElementBase {
|
|
1491
|
+
constructor() {
|
|
1492
|
+
super("reset");
|
|
1493
|
+
}
|
|
1494
|
+
};
|
|
1495
|
+
M3eStepperResetElement = __decorate([t$2("m3e-stepper-reset")], M3eStepperResetElement);
|
|
1496
|
+
|
|
1497
|
+
export { M3eStepElement, M3eStepPanelElement, M3eStepperElement, M3eStepperNextElement, M3eStepperPreviousElement, M3eStepperResetElement, StepperButtonElementBase };
|
|
1498
|
+
//# sourceMappingURL=stepper.js.map
|