@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/tooltip.js
ADDED
|
@@ -0,0 +1,1378 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* Copyright (c) 2025 matraic
|
|
4
|
+
* See LICENSE file in the project root for full license text.
|
|
5
|
+
*/
|
|
6
|
+
import { ActionElementBase, HtmlFor, HoverController, LongPressController, isDisabledMixin, DesignToken, hasAssignedNodes, getTextContent } from '@m3e/web/core';
|
|
7
|
+
import { LitElement, unsafeCSS, css, html } from 'lit';
|
|
8
|
+
import { M3eInteractivityChecker, M3eAriaDescriber } from '@m3e/web/core/a11y';
|
|
9
|
+
import { M3eDirectionality } from '@m3e/web/core/bidi';
|
|
10
|
+
import { M3ePlatform } from '@m3e/web/core/platform';
|
|
11
|
+
import { positionAnchor } from '@m3e/web/core/anchoring';
|
|
12
|
+
|
|
13
|
+
/******************************************************************************
|
|
14
|
+
Copyright (c) Microsoft Corporation.
|
|
15
|
+
|
|
16
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
17
|
+
purpose with or without fee is hereby granted.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
20
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
21
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
22
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
23
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
24
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
25
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
26
|
+
***************************************************************************** */
|
|
27
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
28
|
+
|
|
29
|
+
function __decorate(decorators, target, key, desc) {
|
|
30
|
+
var c = arguments.length,
|
|
31
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
32
|
+
d;
|
|
33
|
+
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;
|
|
34
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
|
+
}
|
|
36
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
37
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
38
|
+
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");
|
|
39
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
40
|
+
}
|
|
41
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
42
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
43
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
44
|
+
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");
|
|
45
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
46
|
+
}
|
|
47
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
48
|
+
var e = new Error(message);
|
|
49
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @license
|
|
54
|
+
* Copyright 2017 Google LLC
|
|
55
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
+
*/
|
|
57
|
+
const t$2 = t => (e, o) => {
|
|
58
|
+
void 0 !== o ? o.addInitializer(() => {
|
|
59
|
+
customElements.define(t, e);
|
|
60
|
+
}) : customElements.define(t, e);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @license
|
|
65
|
+
* Copyright 2019 Google LLC
|
|
66
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
67
|
+
*/
|
|
68
|
+
const t$1 = globalThis,
|
|
69
|
+
e$4 = t$1.ShadowRoot && (void 0 === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
70
|
+
s$1 = Symbol(),
|
|
71
|
+
o$4 = new WeakMap();
|
|
72
|
+
let n$3 = class n {
|
|
73
|
+
constructor(t, e, o) {
|
|
74
|
+
if (this._$cssResult$ = true, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
75
|
+
this.cssText = t, this.t = e;
|
|
76
|
+
}
|
|
77
|
+
get styleSheet() {
|
|
78
|
+
let t = this.o;
|
|
79
|
+
const s = this.t;
|
|
80
|
+
if (e$4 && void 0 === t) {
|
|
81
|
+
const e = void 0 !== s && 1 === s.length;
|
|
82
|
+
e && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$4.set(s, t));
|
|
83
|
+
}
|
|
84
|
+
return t;
|
|
85
|
+
}
|
|
86
|
+
toString() {
|
|
87
|
+
return this.cssText;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
const r$4 = t => new n$3("string" == typeof t ? t : t + "", void 0, s$1),
|
|
91
|
+
S$1 = (s, o) => {
|
|
92
|
+
if (e$4) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
|
|
93
|
+
const o = document.createElement("style"),
|
|
94
|
+
n = t$1.litNonce;
|
|
95
|
+
void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
c$2 = e$4 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
99
|
+
let e = "";
|
|
100
|
+
for (const s of t.cssRules) e += s.cssText;
|
|
101
|
+
return r$4(e);
|
|
102
|
+
})(t) : t;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @license
|
|
106
|
+
* Copyright 2017 Google LLC
|
|
107
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
108
|
+
*/
|
|
109
|
+
const {
|
|
110
|
+
is: i$1,
|
|
111
|
+
defineProperty: e$3,
|
|
112
|
+
getOwnPropertyDescriptor: h$1,
|
|
113
|
+
getOwnPropertyNames: r$3,
|
|
114
|
+
getOwnPropertySymbols: o$3,
|
|
115
|
+
getPrototypeOf: n$2
|
|
116
|
+
} = Object,
|
|
117
|
+
a$1 = globalThis,
|
|
118
|
+
c$1 = a$1.trustedTypes,
|
|
119
|
+
l$1 = c$1 ? c$1.emptyScript : "",
|
|
120
|
+
p$1 = a$1.reactiveElementPolyfillSupport,
|
|
121
|
+
d$1 = (t, s) => t,
|
|
122
|
+
u$1 = {
|
|
123
|
+
toAttribute(t, s) {
|
|
124
|
+
switch (s) {
|
|
125
|
+
case Boolean:
|
|
126
|
+
t = t ? l$1 : null;
|
|
127
|
+
break;
|
|
128
|
+
case Object:
|
|
129
|
+
case Array:
|
|
130
|
+
t = null == t ? t : JSON.stringify(t);
|
|
131
|
+
}
|
|
132
|
+
return t;
|
|
133
|
+
},
|
|
134
|
+
fromAttribute(t, s) {
|
|
135
|
+
let i = t;
|
|
136
|
+
switch (s) {
|
|
137
|
+
case Boolean:
|
|
138
|
+
i = null !== t;
|
|
139
|
+
break;
|
|
140
|
+
case Number:
|
|
141
|
+
i = null === t ? null : Number(t);
|
|
142
|
+
break;
|
|
143
|
+
case Object:
|
|
144
|
+
case Array:
|
|
145
|
+
try {
|
|
146
|
+
i = JSON.parse(t);
|
|
147
|
+
} catch (t) {
|
|
148
|
+
i = null;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return i;
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
f$1 = (t, s) => !i$1(t, s),
|
|
155
|
+
b = {
|
|
156
|
+
attribute: true,
|
|
157
|
+
type: String,
|
|
158
|
+
converter: u$1,
|
|
159
|
+
reflect: false,
|
|
160
|
+
useDefault: false,
|
|
161
|
+
hasChanged: f$1
|
|
162
|
+
};
|
|
163
|
+
Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= new WeakMap();
|
|
164
|
+
class y extends HTMLElement {
|
|
165
|
+
static addInitializer(t) {
|
|
166
|
+
this._$Ei(), (this.l ??= []).push(t);
|
|
167
|
+
}
|
|
168
|
+
static get observedAttributes() {
|
|
169
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
170
|
+
}
|
|
171
|
+
static createProperty(t, s = b) {
|
|
172
|
+
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) {
|
|
173
|
+
const i = Symbol(),
|
|
174
|
+
h = this.getPropertyDescriptor(t, i, s);
|
|
175
|
+
void 0 !== h && e$3(this.prototype, t, h);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
static getPropertyDescriptor(t, s, i) {
|
|
179
|
+
const {
|
|
180
|
+
get: e,
|
|
181
|
+
set: r
|
|
182
|
+
} = h$1(this.prototype, t) ?? {
|
|
183
|
+
get() {
|
|
184
|
+
return this[s];
|
|
185
|
+
},
|
|
186
|
+
set(t) {
|
|
187
|
+
this[s] = t;
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
return {
|
|
191
|
+
get: e,
|
|
192
|
+
set(s) {
|
|
193
|
+
const h = e?.call(this);
|
|
194
|
+
r?.call(this, s), this.requestUpdate(t, h, i);
|
|
195
|
+
},
|
|
196
|
+
configurable: true,
|
|
197
|
+
enumerable: true
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
static getPropertyOptions(t) {
|
|
201
|
+
return this.elementProperties.get(t) ?? b;
|
|
202
|
+
}
|
|
203
|
+
static _$Ei() {
|
|
204
|
+
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
205
|
+
const t = n$2(this);
|
|
206
|
+
t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
207
|
+
}
|
|
208
|
+
static finalize() {
|
|
209
|
+
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
210
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
211
|
+
const t = this.properties,
|
|
212
|
+
s = [...r$3(t), ...o$3(t)];
|
|
213
|
+
for (const i of s) this.createProperty(i, t[i]);
|
|
214
|
+
}
|
|
215
|
+
const t = this[Symbol.metadata];
|
|
216
|
+
if (null !== t) {
|
|
217
|
+
const s = litPropertyMetadata.get(t);
|
|
218
|
+
if (void 0 !== s) for (const [t, i] of s) this.elementProperties.set(t, i);
|
|
219
|
+
}
|
|
220
|
+
this._$Eh = new Map();
|
|
221
|
+
for (const [t, s] of this.elementProperties) {
|
|
222
|
+
const i = this._$Eu(t, s);
|
|
223
|
+
void 0 !== i && this._$Eh.set(i, t);
|
|
224
|
+
}
|
|
225
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
226
|
+
}
|
|
227
|
+
static finalizeStyles(s) {
|
|
228
|
+
const i = [];
|
|
229
|
+
if (Array.isArray(s)) {
|
|
230
|
+
const e = new Set(s.flat(1 / 0).reverse());
|
|
231
|
+
for (const s of e) i.unshift(c$2(s));
|
|
232
|
+
} else void 0 !== s && i.push(c$2(s));
|
|
233
|
+
return i;
|
|
234
|
+
}
|
|
235
|
+
static _$Eu(t, s) {
|
|
236
|
+
const i = s.attribute;
|
|
237
|
+
return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
238
|
+
}
|
|
239
|
+
constructor() {
|
|
240
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
241
|
+
}
|
|
242
|
+
_$Ev() {
|
|
243
|
+
this._$ES = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
|
|
244
|
+
}
|
|
245
|
+
addController(t) {
|
|
246
|
+
(this._$EO ??= new Set()).add(t), void 0 !== this.renderRoot && this.isConnected && t.hostConnected?.();
|
|
247
|
+
}
|
|
248
|
+
removeController(t) {
|
|
249
|
+
this._$EO?.delete(t);
|
|
250
|
+
}
|
|
251
|
+
_$E_() {
|
|
252
|
+
const t = new Map(),
|
|
253
|
+
s = this.constructor.elementProperties;
|
|
254
|
+
for (const i of s.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
255
|
+
t.size > 0 && (this._$Ep = t);
|
|
256
|
+
}
|
|
257
|
+
createRenderRoot() {
|
|
258
|
+
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
259
|
+
return S$1(t, this.constructor.elementStyles), t;
|
|
260
|
+
}
|
|
261
|
+
connectedCallback() {
|
|
262
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(t => t.hostConnected?.());
|
|
263
|
+
}
|
|
264
|
+
enableUpdating(t) {}
|
|
265
|
+
disconnectedCallback() {
|
|
266
|
+
this._$EO?.forEach(t => t.hostDisconnected?.());
|
|
267
|
+
}
|
|
268
|
+
attributeChangedCallback(t, s, i) {
|
|
269
|
+
this._$AK(t, i);
|
|
270
|
+
}
|
|
271
|
+
_$ET(t, s) {
|
|
272
|
+
const i = this.constructor.elementProperties.get(t),
|
|
273
|
+
e = this.constructor._$Eu(t, i);
|
|
274
|
+
if (void 0 !== e && true === i.reflect) {
|
|
275
|
+
const h = (void 0 !== i.converter?.toAttribute ? i.converter : u$1).toAttribute(s, i.type);
|
|
276
|
+
this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
_$AK(t, s) {
|
|
280
|
+
const i = this.constructor,
|
|
281
|
+
e = i._$Eh.get(t);
|
|
282
|
+
if (void 0 !== e && this._$Em !== e) {
|
|
283
|
+
const t = i.getPropertyOptions(e),
|
|
284
|
+
h = "function" == typeof t.converter ? {
|
|
285
|
+
fromAttribute: t.converter
|
|
286
|
+
} : void 0 !== t.converter?.fromAttribute ? t.converter : u$1;
|
|
287
|
+
this._$Em = e;
|
|
288
|
+
const r = h.fromAttribute(s, t.type);
|
|
289
|
+
this[e] = r ?? this._$Ej?.get(e) ?? r, this._$Em = null;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
requestUpdate(t, s, i) {
|
|
293
|
+
if (void 0 !== t) {
|
|
294
|
+
const e = this.constructor,
|
|
295
|
+
h = this[t];
|
|
296
|
+
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;
|
|
297
|
+
this.C(t, s, i);
|
|
298
|
+
}
|
|
299
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
300
|
+
}
|
|
301
|
+
C(t, s, {
|
|
302
|
+
useDefault: i,
|
|
303
|
+
reflect: e,
|
|
304
|
+
wrapped: h
|
|
305
|
+
}, r) {
|
|
306
|
+
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));
|
|
307
|
+
}
|
|
308
|
+
async _$EP() {
|
|
309
|
+
this.isUpdatePending = true;
|
|
310
|
+
try {
|
|
311
|
+
await this._$ES;
|
|
312
|
+
} catch (t) {
|
|
313
|
+
Promise.reject(t);
|
|
314
|
+
}
|
|
315
|
+
const t = this.scheduleUpdate();
|
|
316
|
+
return null != t && (await t), !this.isUpdatePending;
|
|
317
|
+
}
|
|
318
|
+
scheduleUpdate() {
|
|
319
|
+
return this.performUpdate();
|
|
320
|
+
}
|
|
321
|
+
performUpdate() {
|
|
322
|
+
if (!this.isUpdatePending) return;
|
|
323
|
+
if (!this.hasUpdated) {
|
|
324
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
325
|
+
for (const [t, s] of this._$Ep) this[t] = s;
|
|
326
|
+
this._$Ep = void 0;
|
|
327
|
+
}
|
|
328
|
+
const t = this.constructor.elementProperties;
|
|
329
|
+
if (t.size > 0) for (const [s, i] of t) {
|
|
330
|
+
const {
|
|
331
|
+
wrapped: t
|
|
332
|
+
} = i,
|
|
333
|
+
e = this[s];
|
|
334
|
+
true !== t || this._$AL.has(s) || void 0 === e || this.C(s, void 0, i, e);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
let t = false;
|
|
338
|
+
const s = this._$AL;
|
|
339
|
+
try {
|
|
340
|
+
t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EM();
|
|
341
|
+
} catch (s) {
|
|
342
|
+
throw t = false, this._$EM(), s;
|
|
343
|
+
}
|
|
344
|
+
t && this._$AE(s);
|
|
345
|
+
}
|
|
346
|
+
willUpdate(t) {}
|
|
347
|
+
_$AE(t) {
|
|
348
|
+
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
|
|
349
|
+
}
|
|
350
|
+
_$EM() {
|
|
351
|
+
this._$AL = new Map(), this.isUpdatePending = false;
|
|
352
|
+
}
|
|
353
|
+
get updateComplete() {
|
|
354
|
+
return this.getUpdateComplete();
|
|
355
|
+
}
|
|
356
|
+
getUpdateComplete() {
|
|
357
|
+
return this._$ES;
|
|
358
|
+
}
|
|
359
|
+
shouldUpdate(t) {
|
|
360
|
+
return true;
|
|
361
|
+
}
|
|
362
|
+
update(t) {
|
|
363
|
+
this._$Eq &&= this._$Eq.forEach(t => this._$ET(t, this[t])), this._$EM();
|
|
364
|
+
}
|
|
365
|
+
updated(t) {}
|
|
366
|
+
firstUpdated(t) {}
|
|
367
|
+
}
|
|
368
|
+
y.elementStyles = [], y.shadowRootOptions = {
|
|
369
|
+
mode: "open"
|
|
370
|
+
}, y[d$1("elementProperties")] = new Map(), y[d$1("finalized")] = new Map(), p$1?.({
|
|
371
|
+
ReactiveElement: y
|
|
372
|
+
}), (a$1.reactiveElementVersions ??= []).push("2.1.1");
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* @license
|
|
376
|
+
* Copyright 2017 Google LLC
|
|
377
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
378
|
+
*/
|
|
379
|
+
const o$2 = {
|
|
380
|
+
attribute: true,
|
|
381
|
+
type: String,
|
|
382
|
+
converter: u$1,
|
|
383
|
+
reflect: false,
|
|
384
|
+
hasChanged: f$1
|
|
385
|
+
},
|
|
386
|
+
r$2 = (t = o$2, e, r) => {
|
|
387
|
+
const {
|
|
388
|
+
kind: n,
|
|
389
|
+
metadata: i
|
|
390
|
+
} = r;
|
|
391
|
+
let s = globalThis.litPropertyMetadata.get(i);
|
|
392
|
+
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) {
|
|
393
|
+
const {
|
|
394
|
+
name: o
|
|
395
|
+
} = r;
|
|
396
|
+
return {
|
|
397
|
+
set(r) {
|
|
398
|
+
const n = e.get.call(this);
|
|
399
|
+
e.set.call(this, r), this.requestUpdate(o, n, t);
|
|
400
|
+
},
|
|
401
|
+
init(e) {
|
|
402
|
+
return void 0 !== e && this.C(o, void 0, t, e), e;
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
if ("setter" === n) {
|
|
407
|
+
const {
|
|
408
|
+
name: o
|
|
409
|
+
} = r;
|
|
410
|
+
return function (r) {
|
|
411
|
+
const n = this[o];
|
|
412
|
+
e.call(this, r), this.requestUpdate(o, n, t);
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
throw Error("Unsupported decorator location: " + n);
|
|
416
|
+
};
|
|
417
|
+
function n$1(t) {
|
|
418
|
+
return (e, o) => "object" == typeof o ? r$2(t, e, o) : ((t, e, o) => {
|
|
419
|
+
const r = e.hasOwnProperty(o);
|
|
420
|
+
return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
421
|
+
})(t, e, o);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @license
|
|
426
|
+
* Copyright 2017 Google LLC
|
|
427
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
428
|
+
*/
|
|
429
|
+
function r$1(r) {
|
|
430
|
+
return n$1({
|
|
431
|
+
...r,
|
|
432
|
+
state: true,
|
|
433
|
+
attribute: false
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* @license
|
|
439
|
+
* Copyright 2017 Google LLC
|
|
440
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
441
|
+
*/
|
|
442
|
+
const e$2 = (e, t, c) => (c.configurable = true, c.enumerable = true, Reflect.decorate && "object" != typeof t && Object.defineProperty(e, t, c), c);
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* @license
|
|
446
|
+
* Copyright 2017 Google LLC
|
|
447
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
448
|
+
*/
|
|
449
|
+
function e$1(e, r) {
|
|
450
|
+
return (n, s, i) => {
|
|
451
|
+
const o = t => t.renderRoot?.querySelector(e) ?? null;
|
|
452
|
+
return e$2(n, s, {
|
|
453
|
+
get() {
|
|
454
|
+
return o(this);
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* An element, nested within a clickable element, used to dismiss a parenting rich tooltip.
|
|
462
|
+
* @tag m3e-rich-tooltip-action
|
|
463
|
+
*
|
|
464
|
+
* @slot - Renders the content of the action.
|
|
465
|
+
*
|
|
466
|
+
* @attr disable-restore-focus - Whether to focus should not be restored to the trigger when activated.
|
|
467
|
+
*/
|
|
468
|
+
let M3eRichTooltipActionElement = class M3eRichTooltipActionElement extends ActionElementBase {
|
|
469
|
+
constructor() {
|
|
470
|
+
super(...arguments);
|
|
471
|
+
/** Whether to focus should not be restored to the trigger when activated. */
|
|
472
|
+
this.disableRestoreFocus = false;
|
|
473
|
+
}
|
|
474
|
+
/** @inheritdoc */
|
|
475
|
+
_onClick() {
|
|
476
|
+
this.closest("m3e-rich-tooltip")?.hide(!this.disableRestoreFocus);
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
__decorate([n$1({
|
|
480
|
+
attribute: "disable-restore-focus",
|
|
481
|
+
type: Boolean
|
|
482
|
+
})], M3eRichTooltipActionElement.prototype, "disableRestoreFocus", void 0);
|
|
483
|
+
M3eRichTooltipActionElement = __decorate([t$2("m3e-rich-tooltip-action")], M3eRichTooltipActionElement);
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* @license
|
|
487
|
+
* Copyright 2017 Google LLC
|
|
488
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
489
|
+
*/
|
|
490
|
+
const t = globalThis,
|
|
491
|
+
i = t.trustedTypes,
|
|
492
|
+
s = i ? i.createPolicy("lit-html", {
|
|
493
|
+
createHTML: t => t
|
|
494
|
+
}) : void 0,
|
|
495
|
+
e = "$lit$",
|
|
496
|
+
h = `lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
497
|
+
o$1 = "?" + h,
|
|
498
|
+
n = `<${o$1}>`,
|
|
499
|
+
r = document,
|
|
500
|
+
l = () => r.createComment(""),
|
|
501
|
+
c = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
502
|
+
a = Array.isArray,
|
|
503
|
+
u = t => a(t) || "function" == typeof t?.[Symbol.iterator],
|
|
504
|
+
d = "[ \t\n\f\r]",
|
|
505
|
+
f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
506
|
+
v = /-->/g,
|
|
507
|
+
_ = />/g,
|
|
508
|
+
m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
509
|
+
p = /'/g,
|
|
510
|
+
g = /"/g,
|
|
511
|
+
$ = /^(?:script|style|textarea|title)$/i,
|
|
512
|
+
T = Symbol.for("lit-noChange"),
|
|
513
|
+
E = Symbol.for("lit-nothing"),
|
|
514
|
+
A = new WeakMap(),
|
|
515
|
+
C = r.createTreeWalker(r, 129);
|
|
516
|
+
function P(t, i) {
|
|
517
|
+
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
518
|
+
return void 0 !== s ? s.createHTML(i) : i;
|
|
519
|
+
}
|
|
520
|
+
const V = (t, i) => {
|
|
521
|
+
const s = t.length - 1,
|
|
522
|
+
o = [];
|
|
523
|
+
let r,
|
|
524
|
+
l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
|
|
525
|
+
c = f;
|
|
526
|
+
for (let i = 0; i < s; i++) {
|
|
527
|
+
const s = t[i];
|
|
528
|
+
let a,
|
|
529
|
+
u,
|
|
530
|
+
d = -1,
|
|
531
|
+
y = 0;
|
|
532
|
+
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);
|
|
533
|
+
const x = c === m && t[i + 1].startsWith("/>") ? " " : "";
|
|
534
|
+
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);
|
|
535
|
+
}
|
|
536
|
+
return [P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), o];
|
|
537
|
+
};
|
|
538
|
+
class N {
|
|
539
|
+
constructor({
|
|
540
|
+
strings: t,
|
|
541
|
+
_$litType$: s
|
|
542
|
+
}, n) {
|
|
543
|
+
let r;
|
|
544
|
+
this.parts = [];
|
|
545
|
+
let c = 0,
|
|
546
|
+
a = 0;
|
|
547
|
+
const u = t.length - 1,
|
|
548
|
+
d = this.parts,
|
|
549
|
+
[f, v] = V(t, s);
|
|
550
|
+
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
|
551
|
+
const t = this.el.content.firstChild;
|
|
552
|
+
t.replaceWith(...t.childNodes);
|
|
553
|
+
}
|
|
554
|
+
for (; null !== (r = C.nextNode()) && d.length < u;) {
|
|
555
|
+
if (1 === r.nodeType) {
|
|
556
|
+
if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(e)) {
|
|
557
|
+
const i = v[a++],
|
|
558
|
+
s = r.getAttribute(t).split(h),
|
|
559
|
+
e = /([.?@])?(.*)/.exec(i);
|
|
560
|
+
d.push({
|
|
561
|
+
type: 1,
|
|
562
|
+
index: c,
|
|
563
|
+
name: e[2],
|
|
564
|
+
strings: s,
|
|
565
|
+
ctor: "." === e[1] ? H : "?" === e[1] ? I : "@" === e[1] ? L : k
|
|
566
|
+
}), r.removeAttribute(t);
|
|
567
|
+
} else t.startsWith(h) && (d.push({
|
|
568
|
+
type: 6,
|
|
569
|
+
index: c
|
|
570
|
+
}), r.removeAttribute(t));
|
|
571
|
+
if ($.test(r.tagName)) {
|
|
572
|
+
const t = r.textContent.split(h),
|
|
573
|
+
s = t.length - 1;
|
|
574
|
+
if (s > 0) {
|
|
575
|
+
r.textContent = i ? i.emptyScript : "";
|
|
576
|
+
for (let i = 0; i < s; i++) r.append(t[i], l()), C.nextNode(), d.push({
|
|
577
|
+
type: 2,
|
|
578
|
+
index: ++c
|
|
579
|
+
});
|
|
580
|
+
r.append(t[s], l());
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
} else if (8 === r.nodeType) if (r.data === o$1) d.push({
|
|
584
|
+
type: 2,
|
|
585
|
+
index: c
|
|
586
|
+
});else {
|
|
587
|
+
let t = -1;
|
|
588
|
+
for (; -1 !== (t = r.data.indexOf(h, t + 1));) d.push({
|
|
589
|
+
type: 7,
|
|
590
|
+
index: c
|
|
591
|
+
}), t += h.length - 1;
|
|
592
|
+
}
|
|
593
|
+
c++;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
static createElement(t, i) {
|
|
597
|
+
const s = r.createElement("template");
|
|
598
|
+
return s.innerHTML = t, s;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
function S(t, i, s = t, e) {
|
|
602
|
+
if (i === T) return i;
|
|
603
|
+
let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
|
|
604
|
+
const o = c(i) ? void 0 : i._$litDirective$;
|
|
605
|
+
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;
|
|
606
|
+
}
|
|
607
|
+
class M {
|
|
608
|
+
constructor(t, i) {
|
|
609
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
610
|
+
}
|
|
611
|
+
get parentNode() {
|
|
612
|
+
return this._$AM.parentNode;
|
|
613
|
+
}
|
|
614
|
+
get _$AU() {
|
|
615
|
+
return this._$AM._$AU;
|
|
616
|
+
}
|
|
617
|
+
u(t) {
|
|
618
|
+
const {
|
|
619
|
+
el: {
|
|
620
|
+
content: i
|
|
621
|
+
},
|
|
622
|
+
parts: s
|
|
623
|
+
} = this._$AD,
|
|
624
|
+
e = (t?.creationScope ?? r).importNode(i, true);
|
|
625
|
+
C.currentNode = e;
|
|
626
|
+
let h = C.nextNode(),
|
|
627
|
+
o = 0,
|
|
628
|
+
n = 0,
|
|
629
|
+
l = s[0];
|
|
630
|
+
for (; void 0 !== l;) {
|
|
631
|
+
if (o === l.index) {
|
|
632
|
+
let i;
|
|
633
|
+
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];
|
|
634
|
+
}
|
|
635
|
+
o !== l?.index && (h = C.nextNode(), o++);
|
|
636
|
+
}
|
|
637
|
+
return C.currentNode = r, e;
|
|
638
|
+
}
|
|
639
|
+
p(t) {
|
|
640
|
+
let i = 0;
|
|
641
|
+
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++;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
class R {
|
|
645
|
+
get _$AU() {
|
|
646
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
647
|
+
}
|
|
648
|
+
constructor(t, i, s, e) {
|
|
649
|
+
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;
|
|
650
|
+
}
|
|
651
|
+
get parentNode() {
|
|
652
|
+
let t = this._$AA.parentNode;
|
|
653
|
+
const i = this._$AM;
|
|
654
|
+
return void 0 !== i && 11 === t?.nodeType && (t = i.parentNode), t;
|
|
655
|
+
}
|
|
656
|
+
get startNode() {
|
|
657
|
+
return this._$AA;
|
|
658
|
+
}
|
|
659
|
+
get endNode() {
|
|
660
|
+
return this._$AB;
|
|
661
|
+
}
|
|
662
|
+
_$AI(t, i = this) {
|
|
663
|
+
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);
|
|
664
|
+
}
|
|
665
|
+
O(t) {
|
|
666
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
667
|
+
}
|
|
668
|
+
T(t) {
|
|
669
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
670
|
+
}
|
|
671
|
+
_(t) {
|
|
672
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r.createTextNode(t)), this._$AH = t;
|
|
673
|
+
}
|
|
674
|
+
$(t) {
|
|
675
|
+
const {
|
|
676
|
+
values: i,
|
|
677
|
+
_$litType$: s
|
|
678
|
+
} = t,
|
|
679
|
+
e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
|
|
680
|
+
if (this._$AH?._$AD === e) this._$AH.p(i);else {
|
|
681
|
+
const t = new M(e, this),
|
|
682
|
+
s = t.u(this.options);
|
|
683
|
+
t.p(i), this.T(s), this._$AH = t;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
_$AC(t) {
|
|
687
|
+
let i = A.get(t.strings);
|
|
688
|
+
return void 0 === i && A.set(t.strings, i = new N(t)), i;
|
|
689
|
+
}
|
|
690
|
+
k(t) {
|
|
691
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
692
|
+
const i = this._$AH;
|
|
693
|
+
let s,
|
|
694
|
+
e = 0;
|
|
695
|
+
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++;
|
|
696
|
+
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
697
|
+
}
|
|
698
|
+
_$AR(t = this._$AA.nextSibling, i) {
|
|
699
|
+
for (this._$AP?.(false, true, i); t !== this._$AB;) {
|
|
700
|
+
const i = t.nextSibling;
|
|
701
|
+
t.remove(), t = i;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
setConnected(t) {
|
|
705
|
+
void 0 === this._$AM && (this._$Cv = t, this._$AP?.(t));
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
class k {
|
|
709
|
+
get tagName() {
|
|
710
|
+
return this.element.tagName;
|
|
711
|
+
}
|
|
712
|
+
get _$AU() {
|
|
713
|
+
return this._$AM._$AU;
|
|
714
|
+
}
|
|
715
|
+
constructor(t, i, s, e, h) {
|
|
716
|
+
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;
|
|
717
|
+
}
|
|
718
|
+
_$AI(t, i = this, s, e) {
|
|
719
|
+
const h = this.strings;
|
|
720
|
+
let o = false;
|
|
721
|
+
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);else {
|
|
722
|
+
const e = t;
|
|
723
|
+
let n, r;
|
|
724
|
+
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;
|
|
725
|
+
}
|
|
726
|
+
o && !e && this.j(t);
|
|
727
|
+
}
|
|
728
|
+
j(t) {
|
|
729
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
class H extends k {
|
|
733
|
+
constructor() {
|
|
734
|
+
super(...arguments), this.type = 3;
|
|
735
|
+
}
|
|
736
|
+
j(t) {
|
|
737
|
+
this.element[this.name] = t === E ? void 0 : t;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
class I extends k {
|
|
741
|
+
constructor() {
|
|
742
|
+
super(...arguments), this.type = 4;
|
|
743
|
+
}
|
|
744
|
+
j(t) {
|
|
745
|
+
this.element.toggleAttribute(this.name, !!t && t !== E);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
class L extends k {
|
|
749
|
+
constructor(t, i, s, e, h) {
|
|
750
|
+
super(t, i, s, e, h), this.type = 5;
|
|
751
|
+
}
|
|
752
|
+
_$AI(t, i = this) {
|
|
753
|
+
if ((t = S(this, t, i, 0) ?? E) === T) return;
|
|
754
|
+
const s = this._$AH,
|
|
755
|
+
e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
756
|
+
h = t !== E && (s === E || e);
|
|
757
|
+
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
758
|
+
}
|
|
759
|
+
handleEvent(t) {
|
|
760
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
class z {
|
|
764
|
+
constructor(t, i, s) {
|
|
765
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
766
|
+
}
|
|
767
|
+
get _$AU() {
|
|
768
|
+
return this._$AM._$AU;
|
|
769
|
+
}
|
|
770
|
+
_$AI(t) {
|
|
771
|
+
S(this, t);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
const j = t.litHtmlPolyfillSupport;
|
|
775
|
+
j?.(N, R), (t.litHtmlVersions ??= []).push("3.3.1");
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* @license
|
|
779
|
+
* Copyright 2018 Google LLC
|
|
780
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
781
|
+
*/
|
|
782
|
+
const o = o => o ?? E;
|
|
783
|
+
|
|
784
|
+
var _TooltipElementBase_instances, _a, _TooltipElementBase_for, _TooltipElementBase_anchorCleanup, _TooltipElementBase_tooltipHovering, _TooltipElementBase_controlClickHandler, _TooltipElementBase_hoverController, _TooltipElementBase_longPressController, _TooltipElementBase_handleControlClick, _TooltipElementBase_disableNativeGesturesIfNecessary;
|
|
785
|
+
/** The space, in pixels, between the tooltip and anchor. */
|
|
786
|
+
const TOOLTIP_OFFSET = 4;
|
|
787
|
+
/** The default time, in milliseconds, before hiding a tooltip. */
|
|
788
|
+
const TOOLTIP_HIDE_DELAY = 200;
|
|
789
|
+
/** Provides a base implementation for a tooltip. This class must be inherited. */
|
|
790
|
+
class TooltipElementBase extends HtmlFor(LitElement) {
|
|
791
|
+
constructor() {
|
|
792
|
+
super(...arguments);
|
|
793
|
+
_TooltipElementBase_instances.add(this);
|
|
794
|
+
/** @private */
|
|
795
|
+
_TooltipElementBase_for.set(this, null);
|
|
796
|
+
/** @private */
|
|
797
|
+
_TooltipElementBase_anchorCleanup.set(this, void 0);
|
|
798
|
+
/** @private */
|
|
799
|
+
_TooltipElementBase_tooltipHovering.set(this, false);
|
|
800
|
+
/** @private */
|
|
801
|
+
_TooltipElementBase_controlClickHandler.set(this, () => __classPrivateFieldGet(this, _TooltipElementBase_instances, "m", _TooltipElementBase_handleControlClick).call(this));
|
|
802
|
+
/** @private */
|
|
803
|
+
_TooltipElementBase_hoverController.set(this, new HoverController(this, {
|
|
804
|
+
target: null,
|
|
805
|
+
endDelay: TOOLTIP_HIDE_DELAY,
|
|
806
|
+
callback: (hovering, target) => {
|
|
807
|
+
if (this._isInteractive) return;
|
|
808
|
+
if (hovering) {
|
|
809
|
+
if (target === this._base) {
|
|
810
|
+
__classPrivateFieldSet(this, _TooltipElementBase_tooltipHovering, true, "f");
|
|
811
|
+
return;
|
|
812
|
+
}
|
|
813
|
+
this.show();
|
|
814
|
+
} else if (!__classPrivateFieldGet(this, _TooltipElementBase_tooltipHovering, "f") || target === this._base) {
|
|
815
|
+
__classPrivateFieldSet(this, _TooltipElementBase_tooltipHovering, false, "f");
|
|
816
|
+
this.hide();
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}));
|
|
820
|
+
/** @private */
|
|
821
|
+
_TooltipElementBase_longPressController.set(this, new LongPressController(this, {
|
|
822
|
+
target: null,
|
|
823
|
+
callback: pressed => {
|
|
824
|
+
if (this._isInteractive) return;
|
|
825
|
+
if (pressed) {
|
|
826
|
+
this.show();
|
|
827
|
+
} else {
|
|
828
|
+
this.hide();
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
}));
|
|
832
|
+
/**
|
|
833
|
+
* Whether the element is disabled.
|
|
834
|
+
* @default false
|
|
835
|
+
*/
|
|
836
|
+
this.disabled = false;
|
|
837
|
+
/**
|
|
838
|
+
* The mode in which to handle touch gestures.
|
|
839
|
+
* @default "auto"
|
|
840
|
+
*/
|
|
841
|
+
this.touchGestures = "auto";
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* The amount of time, in milliseconds, before showing the tooltip.
|
|
845
|
+
* @default 0
|
|
846
|
+
*/
|
|
847
|
+
get showDelay() {
|
|
848
|
+
return __classPrivateFieldGet(this, _TooltipElementBase_hoverController, "f").startDelay;
|
|
849
|
+
}
|
|
850
|
+
set showDelay(value) {
|
|
851
|
+
__classPrivateFieldGet(this, _TooltipElementBase_hoverController, "f").startDelay = value;
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* The amount of time, in milliseconds, before hiding the tooltip.
|
|
855
|
+
* @default 200
|
|
856
|
+
*/
|
|
857
|
+
get hideDelay() {
|
|
858
|
+
return __classPrivateFieldGet(this, _TooltipElementBase_hoverController, "f").endDelay;
|
|
859
|
+
}
|
|
860
|
+
set hideDelay(value) {
|
|
861
|
+
__classPrivateFieldGet(this, _TooltipElementBase_hoverController, "f").endDelay = value;
|
|
862
|
+
}
|
|
863
|
+
/** Whether the tooltip is currently open. */
|
|
864
|
+
get isOpen() {
|
|
865
|
+
return _a.__openTooltips.includes(this);
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* Whether the tooltip is interactive.
|
|
869
|
+
* @internal
|
|
870
|
+
*/
|
|
871
|
+
get _isInteractive() {
|
|
872
|
+
return false;
|
|
873
|
+
}
|
|
874
|
+
/** @inheritdoc */
|
|
875
|
+
attach(control) {
|
|
876
|
+
super.attach(control);
|
|
877
|
+
if (M3ePlatform.iOS || M3ePlatform.Android) {
|
|
878
|
+
__classPrivateFieldGet(this, _TooltipElementBase_longPressController, "f").observe(control);
|
|
879
|
+
__classPrivateFieldGet(this, _TooltipElementBase_instances, "m", _TooltipElementBase_disableNativeGesturesIfNecessary).call(this);
|
|
880
|
+
} else {
|
|
881
|
+
__classPrivateFieldGet(this, _TooltipElementBase_hoverController, "f").observe(control);
|
|
882
|
+
}
|
|
883
|
+
control.addEventListener("click", __classPrivateFieldGet(this, _TooltipElementBase_controlClickHandler, "f"));
|
|
884
|
+
}
|
|
885
|
+
/** @inheritdoc */
|
|
886
|
+
detach() {
|
|
887
|
+
if (this.control) {
|
|
888
|
+
__classPrivateFieldGet(this, _TooltipElementBase_hoverController, "f").unobserve(this.control);
|
|
889
|
+
__classPrivateFieldGet(this, _TooltipElementBase_longPressController, "f").observe(this.control);
|
|
890
|
+
this.control.removeEventListener("click", __classPrivateFieldGet(this, _TooltipElementBase_controlClickHandler, "f"));
|
|
891
|
+
this.hide();
|
|
892
|
+
}
|
|
893
|
+
super.detach();
|
|
894
|
+
}
|
|
895
|
+
/** @inheritdoc */
|
|
896
|
+
update(changedProperties) {
|
|
897
|
+
super.update(changedProperties);
|
|
898
|
+
if (changedProperties.has("disabled") && this.disabled) {
|
|
899
|
+
this.hide();
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
/** @inheritdoc */
|
|
903
|
+
firstUpdated(_changedProperties) {
|
|
904
|
+
super.firstUpdated(_changedProperties);
|
|
905
|
+
if (this._base) {
|
|
906
|
+
__classPrivateFieldGet(this, _TooltipElementBase_hoverController, "f").observe(this._base);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* Manually shows the tooltip.
|
|
911
|
+
* @returns {Promise<void>} A `Promise` that resolves when the tooltip is shown.
|
|
912
|
+
*/
|
|
913
|
+
async show() {
|
|
914
|
+
if (!this.control || this.disabled || isDisabledMixin(this.control) && this.control.disabled) return;
|
|
915
|
+
_a.__openTooltips.filter(x => x !== this).forEach(x => x.hide());
|
|
916
|
+
this._base.showPopover();
|
|
917
|
+
__classPrivateFieldSet(this, _TooltipElementBase_anchorCleanup, await positionAnchor(this._base, this.control, {
|
|
918
|
+
position: this._anchorPosition,
|
|
919
|
+
inline: true,
|
|
920
|
+
flip: true,
|
|
921
|
+
shift: true,
|
|
922
|
+
offset: TOOLTIP_OFFSET
|
|
923
|
+
}, (x, y) => this._updatePosition(this._base, x, y)), "f");
|
|
924
|
+
if (!_a.__openTooltips.includes(this)) {
|
|
925
|
+
_a.__openTooltips.push(this);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
/** Manually hides the tooltip. */
|
|
929
|
+
hide() {
|
|
930
|
+
this._base.hidePopover();
|
|
931
|
+
__classPrivateFieldGet(this, _TooltipElementBase_anchorCleanup, "f")?.call(this);
|
|
932
|
+
__classPrivateFieldSet(this, _TooltipElementBase_anchorCleanup, undefined, "f");
|
|
933
|
+
__classPrivateFieldGet(this, _TooltipElementBase_hoverController, "f").clearDelays();
|
|
934
|
+
if (_a.__openTooltips.includes(this)) {
|
|
935
|
+
_a.__openTooltips = _a.__openTooltips.filter(x => x !== this);
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
_a = TooltipElementBase, _TooltipElementBase_for = new WeakMap(), _TooltipElementBase_anchorCleanup = new WeakMap(), _TooltipElementBase_tooltipHovering = new WeakMap(), _TooltipElementBase_controlClickHandler = new WeakMap(), _TooltipElementBase_hoverController = new WeakMap(), _TooltipElementBase_longPressController = new WeakMap(), _TooltipElementBase_instances = new WeakSet(), _TooltipElementBase_handleControlClick = function _TooltipElementBase_handleControlClick() {
|
|
940
|
+
if (this._isInteractive) {
|
|
941
|
+
if (_a.__openTooltips.includes(this)) {
|
|
942
|
+
this.hide();
|
|
943
|
+
} else {
|
|
944
|
+
this.show();
|
|
945
|
+
}
|
|
946
|
+
} else {
|
|
947
|
+
this.hide();
|
|
948
|
+
}
|
|
949
|
+
}, _TooltipElementBase_disableNativeGesturesIfNecessary = function _TooltipElementBase_disableNativeGesturesIfNecessary() {
|
|
950
|
+
if (this.touchGestures !== "off" && __classPrivateFieldGet(this, _TooltipElementBase_for, "f")) {
|
|
951
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
952
|
+
const style = __classPrivateFieldGet(this, _TooltipElementBase_for, "f").style;
|
|
953
|
+
// If gestures are set to `auto`, we don't disable text selection on inputs and
|
|
954
|
+
// textareas, because it prevents the user from typing into them on iOS Safari.
|
|
955
|
+
if (this.touchGestures === "on" || __classPrivateFieldGet(this, _TooltipElementBase_for, "f").nodeName !== "INPUT" && __classPrivateFieldGet(this, _TooltipElementBase_for, "f").nodeName !== "TEXTAREA") {
|
|
956
|
+
style.userSelect = style.msUserSelect = style.webkitUserSelect = style.MozUserSelect = "none";
|
|
957
|
+
}
|
|
958
|
+
// If we have `auto` gestures and the element uses native HTML dragging,
|
|
959
|
+
// we don't set `-webkit-user-drag` because it prevents the native behavior.
|
|
960
|
+
if (this.touchGestures === "on" || !__classPrivateFieldGet(this, _TooltipElementBase_for, "f").draggable) {
|
|
961
|
+
style.webkitUserDrag = "none";
|
|
962
|
+
}
|
|
963
|
+
style.touchAction = "none";
|
|
964
|
+
style.webkitTapHighlightColor = "transparent";
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
/** @private */
|
|
968
|
+
TooltipElementBase.__openTooltips = new Array();
|
|
969
|
+
__decorate([e$1(".base")], TooltipElementBase.prototype, "_base", void 0);
|
|
970
|
+
__decorate([n$1({
|
|
971
|
+
type: Boolean,
|
|
972
|
+
reflect: true
|
|
973
|
+
})], TooltipElementBase.prototype, "disabled", void 0);
|
|
974
|
+
__decorate([n$1({
|
|
975
|
+
attribute: "show-delay",
|
|
976
|
+
type: Number
|
|
977
|
+
})], TooltipElementBase.prototype, "showDelay", null);
|
|
978
|
+
__decorate([n$1({
|
|
979
|
+
attribute: "hide-delay",
|
|
980
|
+
type: Number
|
|
981
|
+
})], TooltipElementBase.prototype, "hideDelay", null);
|
|
982
|
+
__decorate([n$1({
|
|
983
|
+
attribute: "touch-gestures"
|
|
984
|
+
})], TooltipElementBase.prototype, "touchGestures", void 0);
|
|
985
|
+
|
|
986
|
+
var _M3eRichTooltipElement_instances, _M3eRichTooltipElement_id, _M3eRichTooltipElement_subheadText, _M3eRichTooltipElement_contentText, _M3eRichTooltipElement_message, _M3eRichTooltipElement_messageRegistered, _M3eRichTooltipElement_documentClickHandler, _M3eRichTooltipElement_handleBeforeToggle, _M3eRichTooltipElement_handleToggle, _M3eRichTooltipElement_handleDocumentClick, _M3eRichTooltipElement_handleKeyDown, _M3eRichTooltipElement_handleSubheadSlotChange, _M3eRichTooltipElement_handleContentSlotChange, _M3eRichTooltipElement_handleActionsSlotChange, _M3eRichTooltipElement_updateMessage;
|
|
987
|
+
var M3eRichTooltipElement_1;
|
|
988
|
+
/**
|
|
989
|
+
* Provides contextual details for a control, such as explaining the value or purpose of a feature.
|
|
990
|
+
*
|
|
991
|
+
* @description
|
|
992
|
+
* The `m3e-rich-tooltip` component provides contextual guidance for a control. It supports an optional
|
|
993
|
+
* subhead, multi-line supporting text, and optional action elements. When non‑interactive, it behaves
|
|
994
|
+
* as a standard tooltip and contributes an `aria-describedby` message to its control. When interactive,
|
|
995
|
+
* it becomes a lightweight anchored dialog with manual popover behavior, keyboard dismissal, and
|
|
996
|
+
* click‑outside light‑dismiss.
|
|
997
|
+
*
|
|
998
|
+
* @example
|
|
999
|
+
* The following example illustrates connecting an interactive rich tooltip to a button using the `for` attribute.
|
|
1000
|
+
* ```html
|
|
1001
|
+
* <m3e-icon-button id="btnSettings">
|
|
1002
|
+
* <m3e-icon name="settings"></m3e-icon>
|
|
1003
|
+
* </m3e-icon-button>
|
|
1004
|
+
* <m3e-rich-tooltip for="btnSettings">
|
|
1005
|
+
* <span slot="subhead">New settings available</span>
|
|
1006
|
+
* Now you can adjust the uploaded image quality, and upgrade your available storage space.
|
|
1007
|
+
* <div slot="actions">
|
|
1008
|
+
* <m3e-button>
|
|
1009
|
+
* <m3e-rich-tooltip-action>Learn more</m3e-rich-tooltip-action>
|
|
1010
|
+
* </m3e-button>
|
|
1011
|
+
* </div>
|
|
1012
|
+
* </m3e-rich-tooltip>
|
|
1013
|
+
* ```
|
|
1014
|
+
*
|
|
1015
|
+
* @tag m3e-rich-tooltip
|
|
1016
|
+
*
|
|
1017
|
+
* @slot - The main supporting text of the tooltip.
|
|
1018
|
+
* @slot subhead - Optional subhead text displayed above the supporting content.
|
|
1019
|
+
* @slot actions - Optional action elements displayed at the bottom of the tooltip.
|
|
1020
|
+
*
|
|
1021
|
+
* @attr disabled - Whether the element is disabled.
|
|
1022
|
+
* @attr for - The identifier of the interactive control to which this element is attached.
|
|
1023
|
+
* @attr hide-delay - The amount of time, in milliseconds, before hiding the tooltip.
|
|
1024
|
+
* @attr position - The position of the tooltip.
|
|
1025
|
+
* @attr show-delay - The amount of time, in milliseconds, before showing the tooltip.
|
|
1026
|
+
*
|
|
1027
|
+
* @fires beforetoggle - Dispatched before the toggle state changes.
|
|
1028
|
+
* @fires toggle - Dispatched after the toggle state has changed.
|
|
1029
|
+
*
|
|
1030
|
+
* @cssprop --m3e-rich-tooltip-padding-top - Top padding of the tooltip container.
|
|
1031
|
+
* @cssprop --m3e-rich-tooltip-padding-bottom - Bottom padding of the tooltip container (when no actions are present).
|
|
1032
|
+
* @cssprop --m3e-rich-tooltip-padding-inline - Horizontal padding of the tooltip container.
|
|
1033
|
+
* @cssprop --m3e-rich-tooltip-max-width - Maximum width of the tooltip surface.
|
|
1034
|
+
* @cssprop --m3e-rich-tooltip-shape - Border‑radius of the tooltip container.
|
|
1035
|
+
* @cssprop --m3e-rich-tooltip-container-color - Background color of the tooltip surface.
|
|
1036
|
+
* @cssprop --m3e-rich-tooltip-subhead-color - Color of the subhead text.
|
|
1037
|
+
* @cssprop --m3e-rich-tooltip-subhead-font-size - Font size of the subhead text.
|
|
1038
|
+
* @cssprop --m3e-rich-tooltip-subhead-font-weight - Font weight of the subhead text.
|
|
1039
|
+
* @cssprop --m3e-rich-tooltip-subhead-line-height - Line height of the subhead text.
|
|
1040
|
+
* @cssprop --m3e-rich-tooltip-subhead-tracking - Letter‑spacing of the subhead text.
|
|
1041
|
+
* @cssprop --m3e-rich-tooltip-subhead-bottom-space - Space below the subhead before the supporting text.
|
|
1042
|
+
* @cssprop --m3e-rich-tooltip-supporting-text-color - Color of the supporting text.
|
|
1043
|
+
* @cssprop --m3e-rich-tooltip-supporting-text-font-size - Font size of the supporting text.
|
|
1044
|
+
* @cssprop --m3e-rich-tooltip-supporting-text-font-weight - Font weight of the supporting text.
|
|
1045
|
+
* @cssprop --m3e-rich-tooltip-supporting-text-line-height - Line height of the supporting text.
|
|
1046
|
+
* @cssprop --m3e-rich-tooltip-supporting-text-tracking - Letter‑spacing of the supporting text.
|
|
1047
|
+
* @cssprop --m3e-rich-tooltip-actions-padding-inline - Horizontal padding applied to the actions slot area.
|
|
1048
|
+
* @cssprop --m3e-rich-tooltip-actions-top-space - Space above the actions slot.
|
|
1049
|
+
* @cssprop --m3e-rich-tooltip-actions-bottom-space - Space below the actions slot.
|
|
1050
|
+
*/
|
|
1051
|
+
let M3eRichTooltipElement = M3eRichTooltipElement_1 = class M3eRichTooltipElement extends TooltipElementBase {
|
|
1052
|
+
constructor() {
|
|
1053
|
+
super(...arguments);
|
|
1054
|
+
_M3eRichTooltipElement_instances.add(this);
|
|
1055
|
+
/** @private */
|
|
1056
|
+
_M3eRichTooltipElement_id.set(this, M3eRichTooltipElement_1.__nextId++);
|
|
1057
|
+
/** @private */
|
|
1058
|
+
_M3eRichTooltipElement_subheadText.set(this, "");
|
|
1059
|
+
/** @private */
|
|
1060
|
+
_M3eRichTooltipElement_contentText.set(this, "");
|
|
1061
|
+
/** @private */
|
|
1062
|
+
_M3eRichTooltipElement_message.set(this, "");
|
|
1063
|
+
/** @private */
|
|
1064
|
+
_M3eRichTooltipElement_messageRegistered.set(this, false);
|
|
1065
|
+
/** @private */
|
|
1066
|
+
this._hasSubhead = false;
|
|
1067
|
+
/** @private */
|
|
1068
|
+
this._interactive = false;
|
|
1069
|
+
/** @private */
|
|
1070
|
+
_M3eRichTooltipElement_documentClickHandler.set(this, e => __classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleDocumentClick).call(this, e));
|
|
1071
|
+
/**
|
|
1072
|
+
* The position of the tooltip.
|
|
1073
|
+
* @default "below-after"
|
|
1074
|
+
*/
|
|
1075
|
+
this.position = "below-after";
|
|
1076
|
+
}
|
|
1077
|
+
/** @inheritdoc */
|
|
1078
|
+
get _isInteractive() {
|
|
1079
|
+
return this._interactive;
|
|
1080
|
+
}
|
|
1081
|
+
/** @inheritdoc */
|
|
1082
|
+
get _anchorPosition() {
|
|
1083
|
+
switch (this.position) {
|
|
1084
|
+
case "above":
|
|
1085
|
+
return "top";
|
|
1086
|
+
case "above-after":
|
|
1087
|
+
return M3eDirectionality.current === "rtl" ? "top-start" : "top-end";
|
|
1088
|
+
case "above-before":
|
|
1089
|
+
return M3eDirectionality.current === "rtl" ? "top-end" : "top-start";
|
|
1090
|
+
case "after":
|
|
1091
|
+
return M3eDirectionality.current === "rtl" ? "left" : "right";
|
|
1092
|
+
case "before":
|
|
1093
|
+
return M3eDirectionality.current === "rtl" ? "right" : "left";
|
|
1094
|
+
case "below":
|
|
1095
|
+
return "bottom";
|
|
1096
|
+
case "below-after":
|
|
1097
|
+
return M3eDirectionality.current === "rtl" ? "bottom-start" : "bottom-end";
|
|
1098
|
+
case "below-before":
|
|
1099
|
+
return M3eDirectionality.current === "rtl" ? "bottom-end" : "bottom-start";
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
/** @inheritdoc */
|
|
1103
|
+
render() {
|
|
1104
|
+
const subheadId = this._interactive && this._hasSubhead ? `m3e-rich-tooltip-${__classPrivateFieldGet(this, _M3eRichTooltipElement_id, "f")}-subhead` : undefined;
|
|
1105
|
+
return html`<div class="base" popover="manual" role="${o(this._interactive ? "dialog" : undefined)}" aria-labelledby="${o(subheadId)}" @keydown="${__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleKeyDown)}" @beforetoggle="${__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleBeforeToggle)}" @toggle="${__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleToggle)}"><m3e-elevation level="3"></m3e-elevation><div class="subhead" id="${o(subheadId)}"><slot name="subhead" @slotchange="${__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleSubheadSlotChange)}"></slot></div><div class="content"><slot @slotchange="${__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleContentSlotChange)}"></slot></div><div class="actions"><slot name="actions" @slotchange="${__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleActionsSlotChange)}"></slot></div></div>`;
|
|
1106
|
+
}
|
|
1107
|
+
/** @inheritdoc */
|
|
1108
|
+
show() {
|
|
1109
|
+
if (this._interactive) {
|
|
1110
|
+
document.addEventListener("click", __classPrivateFieldGet(this, _M3eRichTooltipElement_documentClickHandler, "f"));
|
|
1111
|
+
}
|
|
1112
|
+
return super.show();
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* Manually hides the tooltip.
|
|
1116
|
+
* @param [restoreFocus=true] Whether to restore focus to the element that triggered the interactive tooltip.
|
|
1117
|
+
*/
|
|
1118
|
+
hide(restoreFocus = true) {
|
|
1119
|
+
if (this._interactive) {
|
|
1120
|
+
document.removeEventListener("click", __classPrivateFieldGet(this, _M3eRichTooltipElement_documentClickHandler, "f"));
|
|
1121
|
+
}
|
|
1122
|
+
super.hide();
|
|
1123
|
+
if (restoreFocus && this._interactive && this.control && M3eInteractivityChecker.isFocusable(this.control)) {
|
|
1124
|
+
this.control.focus();
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
/** @inheritdoc */
|
|
1128
|
+
attach(control) {
|
|
1129
|
+
super.attach(control);
|
|
1130
|
+
__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_updateMessage).call(this);
|
|
1131
|
+
if (this._interactive) {
|
|
1132
|
+
control.ariaHasPopup = "dialog";
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
/** @inheritdoc */
|
|
1136
|
+
update(changedProperties) {
|
|
1137
|
+
super.update(changedProperties);
|
|
1138
|
+
if (changedProperties.has("_interactive")) {
|
|
1139
|
+
this.ariaHidden = this._interactive ? null : "true";
|
|
1140
|
+
__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_updateMessage).call(this);
|
|
1141
|
+
if (this.control && this._interactive) {
|
|
1142
|
+
this.control.ariaHasPopup = "dialog";
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
/** @inheritdoc */
|
|
1147
|
+
_updatePosition(base, x, y) {
|
|
1148
|
+
if (this.position.includes("before") && this.position !== "before") {
|
|
1149
|
+
if (M3eDirectionality.current === "rtl") {
|
|
1150
|
+
x += this.control?.clientWidth ?? 0;
|
|
1151
|
+
} else {
|
|
1152
|
+
x -= this.control?.clientWidth ?? 0;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
if (this.position.includes("after") && this.position !== "after") {
|
|
1156
|
+
if (M3eDirectionality.current === "rtl") {
|
|
1157
|
+
x -= this.control?.clientWidth ?? 0;
|
|
1158
|
+
} else {
|
|
1159
|
+
x += this.control?.clientWidth ?? 0;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
if (M3eDirectionality.current === "rtl") {
|
|
1163
|
+
base.style.right = `${window.innerWidth - x - base.clientWidth}px`;
|
|
1164
|
+
base.style.left = "";
|
|
1165
|
+
} else {
|
|
1166
|
+
base.style.left = `${x}px`;
|
|
1167
|
+
base.style.right = "";
|
|
1168
|
+
}
|
|
1169
|
+
base.style.top = `${y}px`;
|
|
1170
|
+
}
|
|
1171
|
+
};
|
|
1172
|
+
_M3eRichTooltipElement_id = new WeakMap();
|
|
1173
|
+
_M3eRichTooltipElement_subheadText = new WeakMap();
|
|
1174
|
+
_M3eRichTooltipElement_contentText = new WeakMap();
|
|
1175
|
+
_M3eRichTooltipElement_message = new WeakMap();
|
|
1176
|
+
_M3eRichTooltipElement_messageRegistered = new WeakMap();
|
|
1177
|
+
_M3eRichTooltipElement_documentClickHandler = new WeakMap();
|
|
1178
|
+
_M3eRichTooltipElement_instances = new WeakSet();
|
|
1179
|
+
_M3eRichTooltipElement_handleBeforeToggle = function _M3eRichTooltipElement_handleBeforeToggle(e) {
|
|
1180
|
+
const forwarded = new ToggleEvent("beforetoggle", {
|
|
1181
|
+
oldState: e.oldState,
|
|
1182
|
+
newState: e.newState,
|
|
1183
|
+
bubbles: true,
|
|
1184
|
+
composed: true,
|
|
1185
|
+
cancelable: e.cancelable
|
|
1186
|
+
});
|
|
1187
|
+
if (!this.dispatchEvent(forwarded)) {
|
|
1188
|
+
e.preventDefault();
|
|
1189
|
+
this.hide();
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
_M3eRichTooltipElement_handleToggle = function _M3eRichTooltipElement_handleToggle(e) {
|
|
1193
|
+
const forwarded = new ToggleEvent("toggle", {
|
|
1194
|
+
oldState: e.oldState,
|
|
1195
|
+
newState: e.newState,
|
|
1196
|
+
bubbles: true,
|
|
1197
|
+
composed: true
|
|
1198
|
+
});
|
|
1199
|
+
this.dispatchEvent(forwarded);
|
|
1200
|
+
};
|
|
1201
|
+
_M3eRichTooltipElement_handleDocumentClick = function _M3eRichTooltipElement_handleDocumentClick(e) {
|
|
1202
|
+
if (!e.composedPath().some(x => x instanceof M3eRichTooltipElement_1 || x === this.control)) {
|
|
1203
|
+
this.hide();
|
|
1204
|
+
}
|
|
1205
|
+
};
|
|
1206
|
+
_M3eRichTooltipElement_handleKeyDown = function _M3eRichTooltipElement_handleKeyDown(e) {
|
|
1207
|
+
if (e.key === "Escape" && !e.shiftKey && !e.ctrlKey) {
|
|
1208
|
+
e.preventDefault();
|
|
1209
|
+
this.hide();
|
|
1210
|
+
}
|
|
1211
|
+
};
|
|
1212
|
+
_M3eRichTooltipElement_handleSubheadSlotChange = function _M3eRichTooltipElement_handleSubheadSlotChange(e) {
|
|
1213
|
+
this._hasSubhead = hasAssignedNodes(e.target);
|
|
1214
|
+
this.shadowRoot?.querySelector(".base")?.classList.toggle("has-subhead", this._hasSubhead);
|
|
1215
|
+
__classPrivateFieldSet(this, _M3eRichTooltipElement_subheadText, this._hasSubhead ? getTextContent(e.target, true) : "", "f");
|
|
1216
|
+
__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_updateMessage).call(this);
|
|
1217
|
+
};
|
|
1218
|
+
_M3eRichTooltipElement_handleContentSlotChange = function _M3eRichTooltipElement_handleContentSlotChange(e) {
|
|
1219
|
+
this._interactive = M3eInteractivityChecker.findInteractiveElements(this).length > 0;
|
|
1220
|
+
__classPrivateFieldSet(this, _M3eRichTooltipElement_contentText, getTextContent(e.target, true), "f");
|
|
1221
|
+
__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_updateMessage).call(this);
|
|
1222
|
+
};
|
|
1223
|
+
_M3eRichTooltipElement_handleActionsSlotChange = function _M3eRichTooltipElement_handleActionsSlotChange(e) {
|
|
1224
|
+
this.shadowRoot?.querySelector(".base")?.classList.toggle("has-actions", hasAssignedNodes(e.target));
|
|
1225
|
+
this._interactive = M3eInteractivityChecker.findInteractiveElements(this).length > 0;
|
|
1226
|
+
__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_updateMessage).call(this);
|
|
1227
|
+
};
|
|
1228
|
+
_M3eRichTooltipElement_updateMessage = function _M3eRichTooltipElement_updateMessage() {
|
|
1229
|
+
const message = __classPrivateFieldGet(this, _M3eRichTooltipElement_subheadText, "f") ? `${__classPrivateFieldGet(this, _M3eRichTooltipElement_subheadText, "f")}/n${__classPrivateFieldGet(this, _M3eRichTooltipElement_contentText, "f")}` : __classPrivateFieldGet(this, _M3eRichTooltipElement_contentText, "f");
|
|
1230
|
+
if (this.isConnected && this.control) {
|
|
1231
|
+
if (__classPrivateFieldGet(this, _M3eRichTooltipElement_message, "f") && __classPrivateFieldGet(this, _M3eRichTooltipElement_messageRegistered, "f")) {
|
|
1232
|
+
M3eAriaDescriber.removeDescription(this.control, __classPrivateFieldGet(this, _M3eRichTooltipElement_message, "f"));
|
|
1233
|
+
__classPrivateFieldSet(this, _M3eRichTooltipElement_messageRegistered, false, "f");
|
|
1234
|
+
}
|
|
1235
|
+
__classPrivateFieldSet(this, _M3eRichTooltipElement_message, message, "f");
|
|
1236
|
+
if (__classPrivateFieldGet(this, _M3eRichTooltipElement_message, "f") && !this._interactive) {
|
|
1237
|
+
M3eAriaDescriber.describe(this.control, __classPrivateFieldGet(this, _M3eRichTooltipElement_message, "f"));
|
|
1238
|
+
__classPrivateFieldSet(this, _M3eRichTooltipElement_messageRegistered, true, "f");
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
};
|
|
1242
|
+
/** The styles of the element. */
|
|
1243
|
+
M3eRichTooltipElement.styles = css`:host { display: contents; } .base { flex-direction: column; position: absolute; padding: unset; margin: unset; border: unset; padding-block-start: var(--m3e-rich-tooltip-padding-top, 0.75rem); padding-inline: var(--m3e-rich-tooltip-padding-inline, 1rem); max-width: var(--m3e-rich-tooltip-max-width, 20rem); box-sizing: border-box; overflow: visible; border-radius: var(--m3e-rich-tooltip-shape, ${DesignToken.shape.corner.medium}); background-color: var(--m3e-rich-tooltip-container-color, ${DesignToken.color.surfaceContainer}); display: none; opacity: 0; transform: scale(0.8); transition: ${unsafeCSS(`opacity ${DesignToken.motion.duration.short3} ${DesignToken.motion.easing.standard},
|
|
1244
|
+
transform ${DesignToken.motion.duration.short3} ${DesignToken.motion.easing.standard},
|
|
1245
|
+
overlay ${DesignToken.motion.duration.short3} ${DesignToken.motion.easing.standard} allow-discrete,
|
|
1246
|
+
display ${DesignToken.motion.duration.short3} ${DesignToken.motion.easing.standard} allow-discrete`)}; } .base:not(.has-actions) { padding-block-end: var(--m3e-rich-tooltip-padding-bottom, 0.75rem); } .base::backdrop { background-color: transparent; } .base:popover-open { display: flex; opacity: 1; transform: scale(1); } .base:not(.has-subhead) .subhead, .base:not(.has-actions) .actions { display: none; } .subhead { color: var(--m3e-rich-tooltip-subhead-color, ${DesignToken.color.onSurfaceVariant}); font-size: var(--m3e-rich-tooltip-subhead-font-size, ${DesignToken.typescale.standard.title.small.fontSize}); font-weight: var( --m3e-rich-tooltip-subhead-font-weight, ${DesignToken.typescale.standard.title.small.fontWeight} ); line-height: var( --m3e-rich-tooltip-subhead-line-height, ${DesignToken.typescale.standard.title.small.lineHeight} ); letter-spacing: var(--m3e-rich-tooltip-subhead-tracking, ${DesignToken.typescale.standard.title.small.tracking}); padding-block-end: var(--m3e-rich-tooltip-subhead-bottom-space, 0.25rem); } .content { color: var(--m3e-rich-tooltip-supporting-text-color, ${DesignToken.color.onSurfaceVariant}); font-size: var( --m3e-rich-tooltip-supporting-text-font-size, ${DesignToken.typescale.standard.body.medium.fontSize} ); font-weight: var( --m3e-rich-tooltip-supporting-text-font-weight, ${DesignToken.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-rich-tooltip-supporting-text-line-height, ${DesignToken.typescale.standard.body.medium.lineHeight} ); letter-spacing: var( --m3e-rich-tooltip-supporting-text-tracking, ${DesignToken.typescale.standard.body.medium.tracking} ); } .actions { margin-inline: calc( 0px - calc( var(--m3e-rich-tooltip-padding-inline, 1rem) - var(--m3e-rich-tooltip-actions-padding-inline, 0.25rem) ) ); padding-block-start: var(--m3e-rich-tooltip-actions-top-space, 0.75rem); padding-block-end: var(--m3e-rich-tooltip-actions-bottom-space, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: 1.5rem; column-gap: 0.5rem; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } @starting-style { .base:popover-open { opacity: 0; transform: scale(0.8); } } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Canvas; color: CanvasText; box-sizing: border-box; border: 1px solid CanvasText; } }`;
|
|
1247
|
+
/** @private */
|
|
1248
|
+
M3eRichTooltipElement.__nextId = 0;
|
|
1249
|
+
__decorate([r$1()], M3eRichTooltipElement.prototype, "_hasSubhead", void 0);
|
|
1250
|
+
__decorate([r$1()], M3eRichTooltipElement.prototype, "_interactive", void 0);
|
|
1251
|
+
__decorate([n$1()], M3eRichTooltipElement.prototype, "position", void 0);
|
|
1252
|
+
M3eRichTooltipElement = M3eRichTooltipElement_1 = __decorate([t$2("m3e-rich-tooltip")], M3eRichTooltipElement);
|
|
1253
|
+
|
|
1254
|
+
var _M3eTooltipElement_instances, _M3eTooltipElement_message, _M3eTooltipElement_handleSlotChange, _M3eTooltipElement_handleToggle;
|
|
1255
|
+
/**
|
|
1256
|
+
* Adds additional context to a button or other UI element.
|
|
1257
|
+
*
|
|
1258
|
+
* @description
|
|
1259
|
+
* The `m3e-tooltip` component provides contextual information in response to user interaction, enhancing comprehension
|
|
1260
|
+
* and reducing ambiguity. Tooltips are positioned relative to a target element and support configurable delays for
|
|
1261
|
+
* show and hide behavior. The component is designed to reinforce accessibility and usability, especially in dense or
|
|
1262
|
+
* icon-driven interfaces. Use the `for` attribute to designate the element for which to provide a tooltip.
|
|
1263
|
+
*
|
|
1264
|
+
* @example
|
|
1265
|
+
* The following example illustrates connecting a tooltip to a button using the `for` attribute.
|
|
1266
|
+
* ```html
|
|
1267
|
+
* <m3e-icon-button id="button" aria-label="Back">
|
|
1268
|
+
* <m3e-icon name="arrow_back"></m3e-icon>
|
|
1269
|
+
* </m3e-icon-button>
|
|
1270
|
+
* <m3e-tooltip for="button">Go Back</m3e-tooltip>
|
|
1271
|
+
* ```
|
|
1272
|
+
*
|
|
1273
|
+
* @tag m3e-tooltip
|
|
1274
|
+
*
|
|
1275
|
+
* @slot - Renders the content of the tooltip.
|
|
1276
|
+
*
|
|
1277
|
+
* @attr disabled - Whether the element is disabled.
|
|
1278
|
+
* @attr for - The identifier of the interactive control to which this element is attached.
|
|
1279
|
+
* @attr hide-delay - The amount of time, in milliseconds, before hiding the tooltip.
|
|
1280
|
+
* @attr position - The position of the tooltip.
|
|
1281
|
+
* @attr show-delay - The amount of time, in milliseconds, before showing the tooltip.
|
|
1282
|
+
*
|
|
1283
|
+
* @cssprop --m3e-tooltip-padding - Internal spacing of the tooltip container.
|
|
1284
|
+
* @cssprop --m3e-tooltip-min-width - Minimum width of the tooltip.
|
|
1285
|
+
* @cssprop --m3e-tooltip-max-width - Maximum width of the tooltip.
|
|
1286
|
+
* @cssprop --m3e-tooltip-min-height - Minimum height of the tooltip container.
|
|
1287
|
+
* @cssprop --m3e-tooltip-max-height - Maximum height of the tooltip.
|
|
1288
|
+
* @cssprop --m3e-tooltip-shape - Border radius of the tooltip container.
|
|
1289
|
+
* @cssprop --m3e-tooltip-container-color - Background color of the tooltip.
|
|
1290
|
+
* @cssprop --m3e-tooltip-supporting-text-color - Text color of supporting text.
|
|
1291
|
+
* @cssprop --m3e-tooltip-supporting-text-font-size - Font size of supporting text.
|
|
1292
|
+
* @cssprop --m3e-tooltip-supporting-text-font-weight - Font weight of supporting text.
|
|
1293
|
+
* @cssprop --m3e-tooltip-supporting-text-line-height - Line height of supporting text.
|
|
1294
|
+
* @cssprop --m3e-tooltip-supporting-text-tracking - Letter spacing of supporting text.
|
|
1295
|
+
*/
|
|
1296
|
+
let M3eTooltipElement = class M3eTooltipElement extends TooltipElementBase {
|
|
1297
|
+
constructor() {
|
|
1298
|
+
super(...arguments);
|
|
1299
|
+
_M3eTooltipElement_instances.add(this);
|
|
1300
|
+
/** @private */
|
|
1301
|
+
_M3eTooltipElement_message.set(this, void 0);
|
|
1302
|
+
/**
|
|
1303
|
+
* The position of the tooltip.
|
|
1304
|
+
* @default "below"
|
|
1305
|
+
*/
|
|
1306
|
+
this.position = "below";
|
|
1307
|
+
}
|
|
1308
|
+
/** @inheritdoc */
|
|
1309
|
+
get _anchorPosition() {
|
|
1310
|
+
return this.position === "above" ? "top" : this.position === "below" ? "bottom" : this.position === "before" ? M3eDirectionality.current === "ltr" ? "left" : "right" : M3eDirectionality.current === "ltr" ? "right" : "left";
|
|
1311
|
+
}
|
|
1312
|
+
/** @inheritdoc */
|
|
1313
|
+
attach(control) {
|
|
1314
|
+
super.attach(control);
|
|
1315
|
+
if (__classPrivateFieldGet(this, _M3eTooltipElement_message, "f")) {
|
|
1316
|
+
M3eAriaDescriber.describe(control, __classPrivateFieldGet(this, _M3eTooltipElement_message, "f"));
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
/** @inheritdoc */
|
|
1320
|
+
detach() {
|
|
1321
|
+
if (this.control && __classPrivateFieldGet(this, _M3eTooltipElement_message, "f")) {
|
|
1322
|
+
M3eAriaDescriber.removeDescription(this.control, __classPrivateFieldGet(this, _M3eTooltipElement_message, "f"));
|
|
1323
|
+
}
|
|
1324
|
+
super.detach();
|
|
1325
|
+
}
|
|
1326
|
+
/** @inheritdoc */
|
|
1327
|
+
connectedCallback() {
|
|
1328
|
+
super.connectedCallback();
|
|
1329
|
+
this.ariaHidden = "true";
|
|
1330
|
+
}
|
|
1331
|
+
/** @inheritdoc */
|
|
1332
|
+
render() {
|
|
1333
|
+
return html`<div class="base" popover="manual" @toggle="${__classPrivateFieldGet(this, _M3eTooltipElement_instances, "m", _M3eTooltipElement_handleToggle)}"><slot @slotchange="${__classPrivateFieldGet(this, _M3eTooltipElement_instances, "m", _M3eTooltipElement_handleSlotChange)}"></slot></div>`;
|
|
1334
|
+
}
|
|
1335
|
+
/** @inheritdoc */
|
|
1336
|
+
_updatePosition(base, x, y) {
|
|
1337
|
+
if (M3eDirectionality.current === "rtl") {
|
|
1338
|
+
base.style.right = `${window.innerWidth - x - base.clientWidth}px`;
|
|
1339
|
+
base.style.left = "";
|
|
1340
|
+
} else {
|
|
1341
|
+
base.style.left = `${x}px`;
|
|
1342
|
+
base.style.right = "";
|
|
1343
|
+
}
|
|
1344
|
+
base.style.top = `${y}px`;
|
|
1345
|
+
}
|
|
1346
|
+
};
|
|
1347
|
+
_M3eTooltipElement_message = new WeakMap();
|
|
1348
|
+
_M3eTooltipElement_instances = new WeakSet();
|
|
1349
|
+
_M3eTooltipElement_handleSlotChange = function _M3eTooltipElement_handleSlotChange(e) {
|
|
1350
|
+
const message = getTextContent(e.target, true);
|
|
1351
|
+
if (this.isConnected && this.control) {
|
|
1352
|
+
if (__classPrivateFieldGet(this, _M3eTooltipElement_message, "f")) {
|
|
1353
|
+
M3eAriaDescriber.removeDescription(this.control, __classPrivateFieldGet(this, _M3eTooltipElement_message, "f"));
|
|
1354
|
+
}
|
|
1355
|
+
__classPrivateFieldSet(this, _M3eTooltipElement_message, message, "f");
|
|
1356
|
+
if (__classPrivateFieldGet(this, _M3eTooltipElement_message, "f")) {
|
|
1357
|
+
M3eAriaDescriber.describe(this.control, __classPrivateFieldGet(this, _M3eTooltipElement_message, "f"));
|
|
1358
|
+
}
|
|
1359
|
+
} else {
|
|
1360
|
+
__classPrivateFieldSet(this, _M3eTooltipElement_message, message, "f");
|
|
1361
|
+
}
|
|
1362
|
+
};
|
|
1363
|
+
_M3eTooltipElement_handleToggle = function _M3eTooltipElement_handleToggle(e) {
|
|
1364
|
+
if (e.newState === "open") {
|
|
1365
|
+
const multiline = this._base.getBoundingClientRect().height > parseFloat(getComputedStyle(this._base).minHeight);
|
|
1366
|
+
this.classList.toggle("-multiline", multiline);
|
|
1367
|
+
}
|
|
1368
|
+
};
|
|
1369
|
+
/** The styles of the element. */
|
|
1370
|
+
M3eTooltipElement.styles = css`:host { display: contents; } .base { position: absolute; pointer-events: none; margin: unset; border: unset; word-break: normal; overflow-wrap: anywhere; padding: var(--m3e-tooltip-padding, 0.25rem 0.5rem); min-width: var(--m3e-tooltip-min-width, 2.5rem); max-width: var(--m3e-tooltip-max-width, 12.5rem); min-height: var(--m3e-tooltip-min-height, 1.5rem); max-height: var(--m3e-tooltip-max-height, 40vh); box-sizing: border-box; overflow: hidden; text-align: center; border-radius: var(--m3e-tooltip-shape, ${DesignToken.shape.corner.extraSmall}); background-color: var(--m3e-tooltip-container-color, ${DesignToken.color.inverseSurface}); color: var(--m3e-tooltip-supporting-text-color, ${DesignToken.color.inverseOnSurface}); font-size: var(--m3e-tooltip-supporting-text-font-size, ${DesignToken.typescale.standard.body.small.fontSize}); font-weight: var( --m3e-tooltip-supporting-text-font-weight, ${DesignToken.typescale.standard.body.small.fontWeight} ); line-height: var( --m3e-tooltip-supporting-text-line-height, ${DesignToken.typescale.standard.body.small.lineHeight} ); letter-spacing: var( --m3e-tooltip-supporting-text-tracking, ${DesignToken.typescale.standard.body.small.tracking} ); display: none; opacity: 0; transform: scale(0.8); transition: ${unsafeCSS(`opacity ${DesignToken.motion.duration.short3} ${DesignToken.motion.easing.standard},
|
|
1371
|
+
transform ${DesignToken.motion.duration.short3} ${DesignToken.motion.easing.standard},
|
|
1372
|
+
overlay ${DesignToken.motion.duration.short3} ${DesignToken.motion.easing.standard} allow-discrete,
|
|
1373
|
+
display ${DesignToken.motion.duration.short3} ${DesignToken.motion.easing.standard} allow-discrete`)}; } :host(.-multiline) .base { text-align: start; } .base::backdrop { background-color: transparent; } .base:popover-open { display: block; opacity: 1; transform: scale(1); } @starting-style { .base:popover-open { opacity: 0; transform: scale(0.8); } } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Canvas; color: CanvasText; box-sizing: border-box; border: 1px solid CanvasText; } }`;
|
|
1374
|
+
__decorate([n$1()], M3eTooltipElement.prototype, "position", void 0);
|
|
1375
|
+
M3eTooltipElement = __decorate([t$2("m3e-tooltip")], M3eTooltipElement);
|
|
1376
|
+
|
|
1377
|
+
export { M3eRichTooltipActionElement, M3eRichTooltipElement, M3eTooltipElement, TooltipElementBase };
|
|
1378
|
+
//# sourceMappingURL=tooltip.js.map
|