@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
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* Copyright (c) 2025 matraic
|
|
4
|
+
* See LICENSE file in the project root for full license text.
|
|
5
|
+
*/
|
|
6
|
+
import{css as t,LitElement as e,html as r}from"lit";import{DesignToken as a}from"@m3e/web/core";function n(t,e,r,a){var n,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i}function o(t,e,r,a){if("a"===r&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!a:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?a:"a"===r?a.call(t):a?a.value:e.get(t)}function i(t,e,r,a,n){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?n.call(t,r):n?n.value=r:e.set(t,r),r}"function"==typeof SuppressedError&&SuppressedError;
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2017 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*/
|
|
12
|
+
const s=globalThis,c=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),l=new WeakMap;
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright 2019 Google LLC
|
|
16
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
+
*/let u=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&l.set(e,t))}return t}toString(){return this.cssText}};const d=(t,e)=>{if(c)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const r of e){const e=document.createElement("style"),a=s.litNonce;void 0!==a&&e.setAttribute("nonce",a),e.textContent=r.cssText,t.appendChild(e)}},m=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new u("string"==typeof t?t:t+"",void 0,h))(e)})(t):t,{is:g,defineProperty:f,getOwnPropertyDescriptor:p,getOwnPropertyNames:y,getOwnPropertySymbols:b,getPrototypeOf:P}=Object,w=globalThis,C=w.trustedTypes,k=C?C.emptyScript:"",M=w.reactiveElementPolyfillSupport,v=(t,e)=>t,_={toAttribute(t,e){switch(e){case Boolean:t=t?k:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},A=(t,e)=>!g(t,e),D={attribute:!0,type:String,converter:_,reflect:!1,useDefault:!1,hasChanged:A};
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/Symbol.metadata??=Symbol("metadata"),w.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=D){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),a=this.getPropertyDescriptor(t,r,e);void 0!==a&&f(this.prototype,t,a)}}static getPropertyDescriptor(t,e,r){const{get:a,set:n}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:a,set(e){const o=a?.call(this);n?.call(this,e),this.requestUpdate(t,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??D}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const t=P(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(v("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v("properties"))){const t=this.properties,e=[...y(t),...b(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(m(t))}else void 0!==t&&e.push(m(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return d(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){const r=this.constructor.elementProperties.get(t),a=this.constructor._$Eu(t,r);if(void 0!==a&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:_).toAttribute(e,r.type);this._$Em=t,null==n?this.removeAttribute(a):this.setAttribute(a,n),this._$Em=null}}_$AK(t,e){const r=this.constructor,a=r._$Eh.get(t);if(void 0!==a&&this._$Em!==a){const t=r.getPropertyOptions(a),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:_;this._$Em=a;const o=n.fromAttribute(e,t.type);this[a]=o??this._$Ej?.get(a)??o,this._$Em=null}}requestUpdate(t,e,r){if(void 0!==t){const a=this.constructor,n=this[t];if(r??=a.getPropertyOptions(t),!((r.hasChanged??A)(n,e)||r.useDefault&&r.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,r))))return;this.C(t,e,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:a,wrapped:n},o){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==n||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),!0===a&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t){const{wrapped:t}=r,a=this[e];!0!==t||this._$AL.has(e)||void 0===a||this.C(e,void 0,r,a)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[v("elementProperties")]=new Map,S[v("finalized")]=new Map,M?.({ReactiveElement:S}),(w.reactiveElementVersions??=[]).push("2.1.1");
|
|
23
|
+
/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright 2017 Google LLC
|
|
26
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
+
*/
|
|
28
|
+
const E={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:A},x=(t=E,e,r)=>{const{kind:a,metadata:n}=r;let o=globalThis.litPropertyMetadata.get(n);if(void 0===o&&globalThis.litPropertyMetadata.set(n,o=new Map),"setter"===a&&((t=Object.create(t)).wrapped=!0),o.set(r.name,t),"accessor"===a){const{name:a}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(a,n,t)},init(e){return void 0!==e&&this.C(a,void 0,t,e),e}}}if("setter"===a){const{name:a}=r;return function(r){const n=this[a];e.call(this,r),this.requestUpdate(a,n,t)}}throw Error("Unsupported decorator location: "+a)};function T(t){return(e,r)=>"object"==typeof r?x(t,e,r):((t,e,r)=>{const a=e.hasOwnProperty(r);return e.constructor.createProperty(r,t),a?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}
|
|
29
|
+
/**
|
|
30
|
+
* @license
|
|
31
|
+
* Copyright 2021 Google LLC
|
|
32
|
+
*
|
|
33
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
34
|
+
* you may not use this file except in compliance with the License.
|
|
35
|
+
* You may obtain a copy of the License at
|
|
36
|
+
*
|
|
37
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
38
|
+
*
|
|
39
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
40
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
41
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
42
|
+
* See the License for the specific language governing permissions and
|
|
43
|
+
* limitations under the License.
|
|
44
|
+
*/function I(t){return t<0?-1:0===t?0:1}function F(t,e,r){return(1-r)*t+r*e}function L(t,e,r){return r<t?t:r>e?e:r}function O(t){return(t%=360)<0&&(t+=360),t}function R(t,e){return[t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2]]}
|
|
45
|
+
/**
|
|
46
|
+
* @license
|
|
47
|
+
* Copyright 2021 Google LLC
|
|
48
|
+
*
|
|
49
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
50
|
+
* you may not use this file except in compliance with the License.
|
|
51
|
+
* You may obtain a copy of the License at
|
|
52
|
+
*
|
|
53
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
54
|
+
*
|
|
55
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
56
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
57
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
58
|
+
* See the License for the specific language governing permissions and
|
|
59
|
+
* limitations under the License.
|
|
60
|
+
*/const $=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],B=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],V=[95.047,100,108.883];function H(t,e,r){return(255<<24|(255&t)<<16|(255&e)<<8|255&r)>>>0}function U(t){return H(G(t[0]),G(t[1]),G(t[2]))}function N(t){return t>>16&255}function z(t){return t>>8&255}function q(t){return 255&t}function j(t){const e=function(t){return R([W(N(t)),W(z(t)),W(q(t))],$)}(t)[1];return 116*J(e/100)-16}function K(t){return 100*function(t){const e=216/24389,r=24389/27,a=t*t*t;return a>e?a:(116*t-16)/r}
|
|
61
|
+
/**
|
|
62
|
+
* @license
|
|
63
|
+
* Copyright 2021 Google LLC
|
|
64
|
+
*
|
|
65
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
66
|
+
* you may not use this file except in compliance with the License.
|
|
67
|
+
* You may obtain a copy of the License at
|
|
68
|
+
*
|
|
69
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
70
|
+
*
|
|
71
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
72
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
73
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
74
|
+
* See the License for the specific language governing permissions and
|
|
75
|
+
* limitations under the License.
|
|
76
|
+
*/((t+16)/116)}function Y(t){return 116*J(t/100)-16}function W(t){const e=t/255;return e<=.040449936?e/12.92*100:100*Math.pow((e+.055)/1.055,2.4)}function G(t){const e=t/100;let r=0;return r=e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,a=0,n=255,(o=Math.round(255*r))<a?a:o>n?n:o;var a,n,o}function J(t){const e=24389/27;return t>216/24389?Math.pow(t,1/3):(e*t+16)/116}class X{static make(t=function(){return V}(),e=200/Math.PI*K(50)/100,r=50,a=2,n=!1){const o=t,i=.401288*o[0]+.650173*o[1]+-.051461*o[2],s=-.250268*o[0]+1.204414*o[1]+.045854*o[2],c=-.002079*o[0]+.048952*o[1]+.953127*o[2],h=.8+a/10,l=h>=.9?F(.59,.69,10*(h-.9)):F(.525,.59,10*(h-.8));let u=n?1:h*(1-1/3.6*Math.exp((-e-42)/92));u=u>1?1:u<0?0:u;const d=h,m=[u*(100/i)+1-u,u*(100/s)+1-u,u*(100/c)+1-u],g=1/(5*e+1),f=g*g*g*g,p=1-f,y=f*e+.1*p*p*Math.cbrt(5*e),b=K(r)/t[1],P=1.48+Math.sqrt(b),w=.725/Math.pow(b,.2),C=w,k=[Math.pow(y*m[0]*i/100,.42),Math.pow(y*m[1]*s/100,.42),Math.pow(y*m[2]*c/100,.42)],M=[400*k[0]/(k[0]+27.13),400*k[1]/(k[1]+27.13),400*k[2]/(k[2]+27.13)];return new X(b,(2*M[0]+M[1]+.05*M[2])*w,w,C,l,d,m,y,Math.pow(y,.25),P)}constructor(t,e,r,a,n,o,i,s,c,h){this.n=t,this.aw=e,this.nbb=r,this.ncb=a,this.c=n,this.nc=o,this.rgbD=i,this.fl=s,this.fLRoot=c,this.z=h}}X.DEFAULT=X.make();
|
|
77
|
+
/**
|
|
78
|
+
* @license
|
|
79
|
+
* Copyright 2021 Google LLC
|
|
80
|
+
*
|
|
81
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
82
|
+
* you may not use this file except in compliance with the License.
|
|
83
|
+
* You may obtain a copy of the License at
|
|
84
|
+
*
|
|
85
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
86
|
+
*
|
|
87
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
88
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
89
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
90
|
+
* See the License for the specific language governing permissions and
|
|
91
|
+
* limitations under the License.
|
|
92
|
+
*/
|
|
93
|
+
class Z{constructor(t,e,r,a,n,o,i,s,c){this.hue=t,this.chroma=e,this.j=r,this.q=a,this.m=n,this.s=o,this.jstar=i,this.astar=s,this.bstar=c}distance(t){const e=this.jstar-t.jstar,r=this.astar-t.astar,a=this.bstar-t.bstar,n=Math.sqrt(e*e+r*r+a*a);return 1.41*Math.pow(n,.63)}static fromInt(t){return Z.fromIntInViewingConditions(t,X.DEFAULT)}static fromIntInViewingConditions(t,e){const r=(65280&t)>>8,a=255&t,n=W((16711680&t)>>16),o=W(r),i=W(a),s=.41233895*n+.35762064*o+.18051042*i,c=.2126*n+.7152*o+.0722*i,h=.01932141*n+.11916382*o+.95034478*i,l=.401288*s+.650173*c-.051461*h,u=-.250268*s+1.204414*c+.045854*h,d=-.002079*s+.048952*c+.953127*h,m=e.rgbD[0]*l,g=e.rgbD[1]*u,f=e.rgbD[2]*d,p=Math.pow(e.fl*Math.abs(m)/100,.42),y=Math.pow(e.fl*Math.abs(g)/100,.42),b=Math.pow(e.fl*Math.abs(f)/100,.42),P=400*I(m)*p/(p+27.13),w=400*I(g)*y/(y+27.13),C=400*I(f)*b/(b+27.13),k=(11*P+-12*w+C)/11,M=(P+w-2*C)/9,v=(20*P+20*w+21*C)/20,_=(40*P+20*w+C)/20,A=180*Math.atan2(M,k)/Math.PI,D=A<0?A+360:A>=360?A-360:A,S=D*Math.PI/180,E=_*e.nbb,x=100*Math.pow(E/e.aw,e.c*e.z),T=4/e.c*Math.sqrt(x/100)*(e.aw+4)*e.fLRoot,F=D<20.14?D+360:D,L=5e4/13*(.25*(Math.cos(F*Math.PI/180+2)+3.8))*e.nc*e.ncb*Math.sqrt(k*k+M*M)/(v+.305),O=Math.pow(L,.9)*Math.pow(1.64-Math.pow(.29,e.n),.73),R=O*Math.sqrt(x/100),$=R*e.fLRoot,B=50*Math.sqrt(O*e.c/(e.aw+4)),V=(1+100*.007)*x/(1+.007*x),H=1/.0228*Math.log(1+.0228*$),U=H*Math.cos(S),N=H*Math.sin(S);return new Z(D,R,x,T,$,B,V,U,N)}static fromJch(t,e,r){return Z.fromJchInViewingConditions(t,e,r,X.DEFAULT)}static fromJchInViewingConditions(t,e,r,a){const n=4/a.c*Math.sqrt(t/100)*(a.aw+4)*a.fLRoot,o=e*a.fLRoot,i=e/Math.sqrt(t/100),s=50*Math.sqrt(i*a.c/(a.aw+4)),c=r*Math.PI/180,h=(1+100*.007)*t/(1+.007*t),l=1/.0228*Math.log(1+.0228*o),u=l*Math.cos(c),d=l*Math.sin(c);return new Z(r,e,t,n,o,s,h,u,d)}static fromUcs(t,e,r){return Z.fromUcsInViewingConditions(t,e,r,X.DEFAULT)}static fromUcsInViewingConditions(t,e,r,a){const n=e,o=r,i=Math.sqrt(n*n+o*o),s=(Math.exp(.0228*i)-1)/.0228/a.fLRoot;let c=Math.atan2(o,n)*(180/Math.PI);c<0&&(c+=360);const h=t/(1-.007*(t-100));return Z.fromJchInViewingConditions(h,s,c,a)}toInt(){return this.viewed(X.DEFAULT)}viewed(t){const e=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(e/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),a=this.hue*Math.PI/180,n=.25*(Math.cos(a+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),i=n*(5e4/13)*t.nc*t.ncb,s=o/t.nbb,c=Math.sin(a),h=Math.cos(a),l=23*(s+.305)*r/(23*i+11*r*h+108*r*c),u=l*h,d=l*c,m=(460*s+451*u+288*d)/1403,g=(460*s-891*u-261*d)/1403,f=(460*s-220*u-6300*d)/1403,p=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),y=I(m)*(100/t.fl)*Math.pow(p,1/.42),b=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),P=I(g)*(100/t.fl)*Math.pow(b,1/.42),w=Math.max(0,27.13*Math.abs(f)/(400-Math.abs(f))),C=I(f)*(100/t.fl)*Math.pow(w,1/.42),k=y/t.rgbD[0],M=P/t.rgbD[1],v=C/t.rgbD[2],_=function(t,e,r){const a=B,n=a[0][0]*t+a[0][1]*e+a[0][2]*r,o=a[1][0]*t+a[1][1]*e+a[1][2]*r,i=a[2][0]*t+a[2][1]*e+a[2][2]*r;return H(G(n),G(o),G(i))}(1.86206786*k-1.01125463*M+.14918677*v,.38752654*k+.62144744*M-.00897398*v,-.0158415*k-.03412294*M+1.04996444*v);return _}static fromXyzInViewingConditions(t,e,r,a){const n=.401288*t+.650173*e-.051461*r,o=-.250268*t+1.204414*e+.045854*r,i=-.002079*t+.048952*e+.953127*r,s=a.rgbD[0]*n,c=a.rgbD[1]*o,h=a.rgbD[2]*i,l=Math.pow(a.fl*Math.abs(s)/100,.42),u=Math.pow(a.fl*Math.abs(c)/100,.42),d=Math.pow(a.fl*Math.abs(h)/100,.42),m=400*I(s)*l/(l+27.13),g=400*I(c)*u/(u+27.13),f=400*I(h)*d/(d+27.13),p=(11*m+-12*g+f)/11,y=(m+g-2*f)/9,b=(20*m+20*g+21*f)/20,P=(40*m+20*g+f)/20,w=180*Math.atan2(y,p)/Math.PI,C=w<0?w+360:w>=360?w-360:w,k=C*Math.PI/180,M=P*a.nbb,v=100*Math.pow(M/a.aw,a.c*a.z),_=4/a.c*Math.sqrt(v/100)*(a.aw+4)*a.fLRoot,A=C<20.14?C+360:C,D=5e4/13*(1/4*(Math.cos(A*Math.PI/180+2)+3.8))*a.nc*a.ncb*Math.sqrt(p*p+y*y)/(b+.305),S=Math.pow(D,.9)*Math.pow(1.64-Math.pow(.29,a.n),.73),E=S*Math.sqrt(v/100),x=E*a.fLRoot,T=50*Math.sqrt(S*a.c/(a.aw+4)),F=(1+100*.007)*v/(1+.007*v),L=Math.log(1+.0228*x)/.0228,O=L*Math.cos(k),R=L*Math.sin(k);return new Z(C,E,v,_,x,T,F,O,R)}xyzInViewingConditions(t){const e=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(e/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),a=this.hue*Math.PI/180,n=.25*(Math.cos(a+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),i=n*(5e4/13)*t.nc*t.ncb,s=o/t.nbb,c=Math.sin(a),h=Math.cos(a),l=23*(s+.305)*r/(23*i+11*r*h+108*r*c),u=l*h,d=l*c,m=(460*s+451*u+288*d)/1403,g=(460*s-891*u-261*d)/1403,f=(460*s-220*u-6300*d)/1403,p=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),y=I(m)*(100/t.fl)*Math.pow(p,1/.42),b=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),P=I(g)*(100/t.fl)*Math.pow(b,1/.42),w=Math.max(0,27.13*Math.abs(f)/(400-Math.abs(f))),C=I(f)*(100/t.fl)*Math.pow(w,1/.42),k=y/t.rgbD[0],M=P/t.rgbD[1],v=C/t.rgbD[2];return[1.86206786*k-1.01125463*M+.14918677*v,.38752654*k+.62144744*M-.00897398*v,-.0158415*k-.03412294*M+1.04996444*v]}}
|
|
94
|
+
/**
|
|
95
|
+
* @license
|
|
96
|
+
* Copyright 2021 Google LLC
|
|
97
|
+
*
|
|
98
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
99
|
+
* you may not use this file except in compliance with the License.
|
|
100
|
+
* You may obtain a copy of the License at
|
|
101
|
+
*
|
|
102
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
103
|
+
*
|
|
104
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
105
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
106
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
107
|
+
* See the License for the specific language governing permissions and
|
|
108
|
+
* limitations under the License.
|
|
109
|
+
*/class Q{static sanitizeRadians(t){return(t+8*Math.PI)%(2*Math.PI)}static trueDelinearized(t){const e=t/100;let r=0;return r=e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,255*r}static chromaticAdaptation(t){const e=Math.pow(Math.abs(t),.42);return 400*I(t)*e/(e+27.13)}static hueOf(t){const e=R(t,Q.SCALED_DISCOUNT_FROM_LINRGB),r=Q.chromaticAdaptation(e[0]),a=Q.chromaticAdaptation(e[1]),n=Q.chromaticAdaptation(e[2]),o=(11*r+-12*a+n)/11,i=(r+a-2*n)/9;return Math.atan2(i,o)}static areInCyclicOrder(t,e,r){return Q.sanitizeRadians(e-t)<Q.sanitizeRadians(r-t)}static intercept(t,e,r){return(e-t)/(r-t)}static lerpPoint(t,e,r){return[t[0]+(r[0]-t[0])*e,t[1]+(r[1]-t[1])*e,t[2]+(r[2]-t[2])*e]}static setCoordinate(t,e,r,a){const n=Q.intercept(t[a],e,r[a]);return Q.lerpPoint(t,n,r)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,e){const r=Q.Y_FROM_LINRGB[0],a=Q.Y_FROM_LINRGB[1],n=Q.Y_FROM_LINRGB[2],o=e%4<=1?0:100,i=e%2==0?0:100;if(e<4){const e=o,s=i,c=(t-e*a-s*n)/r;return Q.isBounded(c)?[c,e,s]:[-1,-1,-1]}if(e<8){const e=o,s=i,c=(t-s*r-e*n)/a;return Q.isBounded(c)?[s,c,e]:[-1,-1,-1]}{const e=o,s=i,c=(t-e*r-s*a)/n;return Q.isBounded(c)?[e,s,c]:[-1,-1,-1]}}static bisectToSegment(t,e){let r=[-1,-1,-1],a=r,n=0,o=0,i=!1,s=!0;for(let c=0;c<12;c++){const h=Q.nthVertex(t,c);if(h[0]<0)continue;const l=Q.hueOf(h);i?(s||Q.areInCyclicOrder(n,l,o))&&(s=!1,Q.areInCyclicOrder(n,e,l)?(a=h,o=l):(r=h,n=l)):(r=h,a=h,n=l,o=l,i=!0)}return[r,a]}static midpoint(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]}static criticalPlaneBelow(t){return Math.floor(t-.5)}static criticalPlaneAbove(t){return Math.ceil(t-.5)}static bisectToLimit(t,e){const r=Q.bisectToSegment(t,e);let a=r[0],n=Q.hueOf(a),o=r[1];for(let t=0;t<3;t++)if(a[t]!==o[t]){let r=-1,i=255;a[t]<o[t]?(r=Q.criticalPlaneBelow(Q.trueDelinearized(a[t])),i=Q.criticalPlaneAbove(Q.trueDelinearized(o[t]))):(r=Q.criticalPlaneAbove(Q.trueDelinearized(a[t])),i=Q.criticalPlaneBelow(Q.trueDelinearized(o[t])));for(let s=0;s<8&&!(Math.abs(i-r)<=1);s++){const s=Math.floor((r+i)/2),c=Q.CRITICAL_PLANES[s],h=Q.setCoordinate(a,c,o,t),l=Q.hueOf(h);Q.areInCyclicOrder(n,e,l)?(o=h,i=s):(a=h,n=l,r=s)}}return Q.midpoint(a,o)}static inverseChromaticAdaptation(t){const e=Math.abs(t),r=Math.max(0,27.13*e/(400-e));return I(t)*Math.pow(r,1/.42)}static findResultByJ(t,e,r){let a=11*Math.sqrt(r);const n=X.DEFAULT,o=1/Math.pow(1.64-Math.pow(.29,n.n),.73),i=.25*(Math.cos(t+2)+3.8)*(5e4/13)*n.nc*n.ncb,s=Math.sin(t),c=Math.cos(t);for(let t=0;t<5;t++){const h=a/100,l=0===e||0===a?0:e/Math.sqrt(h),u=Math.pow(l*o,1/.9),d=n.aw*Math.pow(h,1/n.c/n.z)/n.nbb,m=23*(d+.305)*u/(23*i+11*u*c+108*u*s),g=m*c,f=m*s,p=(460*d+451*g+288*f)/1403,y=(460*d-891*g-261*f)/1403,b=(460*d-220*g-6300*f)/1403,P=R([Q.inverseChromaticAdaptation(p),Q.inverseChromaticAdaptation(y),Q.inverseChromaticAdaptation(b)],Q.LINRGB_FROM_SCALED_DISCOUNT);if(P[0]<0||P[1]<0||P[2]<0)return 0;const w=Q.Y_FROM_LINRGB[0],C=Q.Y_FROM_LINRGB[1],k=Q.Y_FROM_LINRGB[2],M=w*P[0]+C*P[1]+k*P[2];if(M<=0)return 0;if(4===t||Math.abs(M-r)<.002)return P[0]>100.01||P[1]>100.01||P[2]>100.01?0:U(P);a-=(M-r)*a/(2*M)}return 0}static solveToInt(t,e,r){if(e<1e-4||r<1e-4||r>99.9999)return function(t){const e=G(K(t));return H(e,e,e)}(r);const a=(t=O(t))/180*Math.PI,n=K(r),o=Q.findResultByJ(a,e,n);if(0!==o)return o;return U(Q.bisectToLimit(n,a))}static solveToCam(t,e,r){return Z.fromInt(Q.solveToInt(t,e,r))}}Q.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],Q.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],Q.Y_FROM_LINRGB=[.2126,.7152,.0722],Q.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];
|
|
110
|
+
/**
|
|
111
|
+
* @license
|
|
112
|
+
* Copyright 2021 Google LLC
|
|
113
|
+
*
|
|
114
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
115
|
+
* you may not use this file except in compliance with the License.
|
|
116
|
+
* You may obtain a copy of the License at
|
|
117
|
+
*
|
|
118
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
119
|
+
*
|
|
120
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
121
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
122
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
123
|
+
* See the License for the specific language governing permissions and
|
|
124
|
+
* limitations under the License.
|
|
125
|
+
*/
|
|
126
|
+
class tt{static from(t,e,r){return new tt(Q.solveToInt(t,e,r))}static fromInt(t){return new tt(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(Q.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(Q.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(Q.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const e=Z.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=j(t),this.argb=t}setInternalState(t){const e=Z.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=j(t),this.argb=t}inViewingConditions(t){const e=Z.fromInt(this.toInt()).xyzInViewingConditions(t),r=Z.fromXyzInViewingConditions(e[0],e[1],e[2],X.make());return tt.from(r.hue,r.chroma,Y(e[1]))}}
|
|
127
|
+
/**
|
|
128
|
+
* @license
|
|
129
|
+
* Copyright 2022 Google LLC
|
|
130
|
+
*
|
|
131
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
132
|
+
* you may not use this file except in compliance with the License.
|
|
133
|
+
* You may obtain a copy of the License at
|
|
134
|
+
*
|
|
135
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
136
|
+
*
|
|
137
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
138
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
139
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
140
|
+
* See the License for the specific language governing permissions and
|
|
141
|
+
* limitations under the License.
|
|
142
|
+
*/class et{static ratioOfTones(t,e){return t=L(0,100,t),e=L(0,100,e),et.ratioOfYs(K(t),K(e))}static ratioOfYs(t,e){const r=t>e?t:e;return(r+5)/((r===e?t:e)+5)}static lighter(t,e){if(t<0||t>100)return-1;const r=K(t),a=e*(r+5)-5,n=et.ratioOfYs(a,r),o=Math.abs(n-e);if(n<e&&o>.04)return-1;const i=Y(a)+.4;return i<0||i>100?-1:i}static darker(t,e){if(t<0||t>100)return-1;const r=K(t),a=(r+5)/e-5,n=et.ratioOfYs(r,a),o=Math.abs(n-e);if(n<e&&o>.04)return-1;const i=Y(a)-.4;return i<0||i>100?-1:i}static lighterUnsafe(t,e){const r=et.lighter(t,e);return r<0?100:r}static darkerUnsafe(t,e){const r=et.darker(t,e);return r<0?0:r}}
|
|
143
|
+
/**
|
|
144
|
+
* @license
|
|
145
|
+
* Copyright 2023 Google LLC
|
|
146
|
+
*
|
|
147
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
148
|
+
* you may not use this file except in compliance with the License.
|
|
149
|
+
* You may obtain a copy of the License at
|
|
150
|
+
*
|
|
151
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
152
|
+
*
|
|
153
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
154
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
155
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
156
|
+
* See the License for the specific language governing permissions and
|
|
157
|
+
* limitations under the License.
|
|
158
|
+
*/class rt{static isDisliked(t){const e=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,r=Math.round(t.chroma)>16,a=Math.round(t.tone)<65;return e&&r&&a}static fixIfDisliked(t){return rt.isDisliked(t)?tt.from(t.hue,t.chroma,70):t}}
|
|
159
|
+
/**
|
|
160
|
+
* @license
|
|
161
|
+
* Copyright 2022 Google LLC
|
|
162
|
+
*
|
|
163
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
164
|
+
* you may not use this file except in compliance with the License.
|
|
165
|
+
* You may obtain a copy of the License at
|
|
166
|
+
*
|
|
167
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
168
|
+
*
|
|
169
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
170
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
171
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
172
|
+
* See the License for the specific language governing permissions and
|
|
173
|
+
* limitations under the License.
|
|
174
|
+
*/class at{static fromPalette(t){return new at(t.name??"",t.palette,t.tone,t.isBackground??!1,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}constructor(t,e,r,a,n,o,i,s){if(this.name=t,this.palette=e,this.tone=r,this.isBackground=a,this.background=n,this.secondBackground=o,this.contrastCurve=i,this.toneDeltaPair=s,this.hctCache=new Map,!n&&o)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!n&&i)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(n&&!i)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(t){return this.getHct(t).toInt()}getHct(t){const e=this.hctCache.get(t);if(null!=e)return e;const r=this.getTone(t),a=this.palette(t).getHct(r);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,a),a}getTone(t){const e=t.contrastLevel<0;if(this.toneDeltaPair){const r=this.toneDeltaPair(t),a=r.roleA,n=r.roleB,o=r.delta,i=r.polarity,s=r.stayTogether,c=this.background(t).getTone(t),h="nearer"===i||"lighter"===i&&!t.isDark||"darker"===i&&t.isDark,l=h?a:n,u=h?n:a,d=this.name===l.name,m=t.isDark?1:-1,g=l.contrastCurve.get(t.contrastLevel),f=u.contrastCurve.get(t.contrastLevel),p=l.tone(t);let y=et.ratioOfTones(c,p)>=g?p:at.foregroundTone(c,g);const b=u.tone(t);let P=et.ratioOfTones(c,b)>=f?b:at.foregroundTone(c,f);return e&&(y=at.foregroundTone(c,g),P=at.foregroundTone(c,f)),(P-y)*m>=o||(P=L(0,100,y+o*m),(P-y)*m>=o||(y=L(0,100,P-o*m))),50<=y&&y<60?m>0?(y=60,P=Math.max(P,y+o*m)):(y=49,P=Math.min(P,y+o*m)):50<=P&&P<60&&(s?m>0?(y=60,P=Math.max(P,y+o*m)):(y=49,P=Math.min(P,y+o*m)):P=m>0?60:49),d?y:P}{let r=this.tone(t);if(null==this.background)return r;const a=this.background(t).getTone(t),n=this.contrastCurve.get(t.contrastLevel);if(et.ratioOfTones(a,r)>=n||(r=at.foregroundTone(a,n)),e&&(r=at.foregroundTone(a,n)),this.isBackground&&50<=r&&r<60&&(r=et.ratioOfTones(49,a)>=n?49:60),this.secondBackground){const[e,a]=[this.background,this.secondBackground],[o,i]=[e(t).getTone(t),a(t).getTone(t)],[s,c]=[Math.max(o,i),Math.min(o,i)];if(et.ratioOfTones(s,r)>=n&&et.ratioOfTones(c,r)>=n)return r;const h=et.lighter(s,n),l=et.darker(c,n),u=[];-1!==h&&u.push(h),-1!==l&&u.push(l);return at.tonePrefersLightForeground(o)||at.tonePrefersLightForeground(i)?h<0?100:h:1===u.length?u[0]:l<0?0:l}return r}}static foregroundTone(t,e){const r=et.lighterUnsafe(t,e),a=et.darkerUnsafe(t,e),n=et.ratioOfTones(r,t),o=et.ratioOfTones(a,t);if(at.tonePrefersLightForeground(t)){const t=Math.abs(n-o)<.1&&n<e&&o<e;return n>=e||n>=o||t?r:a}return o>=e||o>=n?a:r}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return at.tonePrefersLightForeground(t)&&!at.toneAllowsLightForeground(t)?49:t}}
|
|
175
|
+
/**
|
|
176
|
+
* @license
|
|
177
|
+
* Copyright 2021 Google LLC
|
|
178
|
+
*
|
|
179
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
180
|
+
* you may not use this file except in compliance with the License.
|
|
181
|
+
* You may obtain a copy of the License at
|
|
182
|
+
*
|
|
183
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
184
|
+
*
|
|
185
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
186
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
187
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
188
|
+
* See the License for the specific language governing permissions and
|
|
189
|
+
* limitations under the License.
|
|
190
|
+
*/class nt{static fromInt(t){const e=tt.fromInt(t);return nt.fromHct(e)}static fromHct(t){return new nt(t.hue,t.chroma,t)}static fromHueAndChroma(t,e){const r=new ot(t,e).create();return new nt(t,e,r)}constructor(t,e,r){this.hue=t,this.chroma=e,this.keyColor=r,this.cache=new Map}tone(t){let e=this.cache.get(t);return void 0===e&&(e=tt.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,e)),e}getHct(t){return tt.fromInt(this.tone(t))}}class ot{constructor(t,e){this.hue=t,this.requestedChroma=e,this.chromaCache=new Map,this.maxChromaValue=200}create(){let t=0,e=100;for(;t<e;){const r=Math.floor((t+e)/2),a=this.maxChroma(r)<this.maxChroma(r+1);if(this.maxChroma(r)>=this.requestedChroma-.01)if(Math.abs(t-50)<Math.abs(e-50))e=r;else{if(t===r)return tt.from(this.hue,this.requestedChroma,t);t=r}else a?t=r+1:e=r}return tt.from(this.hue,this.requestedChroma,t)}maxChroma(t){if(this.chromaCache.has(t))return this.chromaCache.get(t);const e=tt.from(this.hue,this.maxChromaValue,t).chroma;return this.chromaCache.set(t,e),e}}
|
|
191
|
+
/**
|
|
192
|
+
* @license
|
|
193
|
+
* Copyright 2023 Google LLC
|
|
194
|
+
*
|
|
195
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
196
|
+
* you may not use this file except in compliance with the License.
|
|
197
|
+
* You may obtain a copy of the License at
|
|
198
|
+
*
|
|
199
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
200
|
+
*
|
|
201
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
202
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
203
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
204
|
+
* See the License for the specific language governing permissions and
|
|
205
|
+
* limitations under the License.
|
|
206
|
+
*/class it{constructor(t,e,r,a){this.low=t,this.normal=e,this.medium=r,this.high=a}get(t){return t<=-1?this.low:t<0?F(this.low,this.normal,(t- -1)/1):t<.5?F(this.normal,this.medium,(t-0)/.5):t<1?F(this.medium,this.high,(t-.5)/.5):this.high}}
|
|
207
|
+
/**
|
|
208
|
+
* @license
|
|
209
|
+
* Copyright 2023 Google LLC
|
|
210
|
+
*
|
|
211
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
212
|
+
* you may not use this file except in compliance with the License.
|
|
213
|
+
* You may obtain a copy of the License at
|
|
214
|
+
*
|
|
215
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
216
|
+
*
|
|
217
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
218
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
219
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
220
|
+
* See the License for the specific language governing permissions and
|
|
221
|
+
* limitations under the License.
|
|
222
|
+
*/class st{constructor(t,e,r,a,n){this.roleA=t,this.roleB=e,this.delta=r,this.polarity=a,this.stayTogether=n}}
|
|
223
|
+
/**
|
|
224
|
+
* @license
|
|
225
|
+
* Copyright 2022 Google LLC
|
|
226
|
+
*
|
|
227
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
228
|
+
* you may not use this file except in compliance with the License.
|
|
229
|
+
* You may obtain a copy of the License at
|
|
230
|
+
*
|
|
231
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
232
|
+
*
|
|
233
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
234
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
235
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
236
|
+
* See the License for the specific language governing permissions and
|
|
237
|
+
* limitations under the License.
|
|
238
|
+
*/var ct,ht,lt,ut,dt,mt,gt,ft,pt,yt;
|
|
239
|
+
/**
|
|
240
|
+
* @license
|
|
241
|
+
* Copyright 2022 Google LLC
|
|
242
|
+
*
|
|
243
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
244
|
+
* you may not use this file except in compliance with the License.
|
|
245
|
+
* You may obtain a copy of the License at
|
|
246
|
+
*
|
|
247
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
248
|
+
*
|
|
249
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
250
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
251
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
252
|
+
* See the License for the specific language governing permissions and
|
|
253
|
+
* limitations under the License.
|
|
254
|
+
*/
|
|
255
|
+
function bt(t){return t.variant===ct.FIDELITY||t.variant===ct.CONTENT}function Pt(t){return t.variant===ct.MONOCHROME}!function(t){t[t.MONOCHROME=0]="MONOCHROME",t[t.NEUTRAL=1]="NEUTRAL",t[t.TONAL_SPOT=2]="TONAL_SPOT",t[t.VIBRANT=3]="VIBRANT",t[t.EXPRESSIVE=4]="EXPRESSIVE",t[t.FIDELITY=5]="FIDELITY",t[t.CONTENT=6]="CONTENT",t[t.RAINBOW=7]="RAINBOW",t[t.FRUIT_SALAD=8]="FRUIT_SALAD"}(ct||(ct={}));class wt{static highestSurface(t){return t.isDark?wt.surfaceBright:wt.surfaceDim}}wt.contentAccentToneDelta=15,wt.primaryPaletteKeyColor=at.fromPalette({name:"primary_palette_key_color",palette:t=>t.primaryPalette,tone:t=>t.primaryPalette.keyColor.tone}),wt.secondaryPaletteKeyColor=at.fromPalette({name:"secondary_palette_key_color",palette:t=>t.secondaryPalette,tone:t=>t.secondaryPalette.keyColor.tone}),wt.tertiaryPaletteKeyColor=at.fromPalette({name:"tertiary_palette_key_color",palette:t=>t.tertiaryPalette,tone:t=>t.tertiaryPalette.keyColor.tone}),wt.neutralPaletteKeyColor=at.fromPalette({name:"neutral_palette_key_color",palette:t=>t.neutralPalette,tone:t=>t.neutralPalette.keyColor.tone}),wt.neutralVariantPaletteKeyColor=at.fromPalette({name:"neutral_variant_palette_key_color",palette:t=>t.neutralVariantPalette,tone:t=>t.neutralVariantPalette.keyColor.tone}),wt.background=at.fromPalette({name:"background",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0}),wt.onBackground=at.fromPalette({name:"on_background",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>wt.background,contrastCurve:new it(3,3,4.5,7)}),wt.surface=at.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0}),wt.surfaceDim=at.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:new it(87,87,80,75).get(t.contrastLevel),isBackground:!0}),wt.surfaceBright=at.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?new it(24,24,29,34).get(t.contrastLevel):98,isBackground:!0}),wt.surfaceContainerLowest=at.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?new it(4,4,2,0).get(t.contrastLevel):100,isBackground:!0}),wt.surfaceContainerLow=at.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.isDark?new it(10,10,11,12).get(t.contrastLevel):new it(96,96,96,95).get(t.contrastLevel),isBackground:!0}),wt.surfaceContainer=at.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.isDark?new it(12,12,16,20).get(t.contrastLevel):new it(94,94,92,90).get(t.contrastLevel),isBackground:!0}),wt.surfaceContainerHigh=at.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.isDark?new it(17,17,21,25).get(t.contrastLevel):new it(92,92,88,85).get(t.contrastLevel),isBackground:!0}),wt.surfaceContainerHighest=at.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?new it(22,22,26,30).get(t.contrastLevel):new it(90,90,84,80).get(t.contrastLevel),isBackground:!0}),wt.onSurface=at.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>wt.highestSurface(t),contrastCurve:new it(4.5,7,11,21)}),wt.surfaceVariant=at.fromPalette({name:"surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:90,isBackground:!0}),wt.onSurfaceVariant=at.fromPalette({name:"on_surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?80:30,background:t=>wt.highestSurface(t),contrastCurve:new it(3,4.5,7,11)}),wt.inverseSurface=at.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:20}),wt.inverseOnSurface=at.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?20:95,background:t=>wt.inverseSurface,contrastCurve:new it(4.5,7,11,21)}),wt.outline=at.fromPalette({name:"outline",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?60:50,background:t=>wt.highestSurface(t),contrastCurve:new it(1.5,3,4.5,7)}),wt.outlineVariant=at.fromPalette({name:"outline_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:80,background:t=>wt.highestSurface(t),contrastCurve:new it(1,1,3,4.5)}),wt.shadow=at.fromPalette({name:"shadow",palette:t=>t.neutralPalette,tone:t=>0}),wt.scrim=at.fromPalette({name:"scrim",palette:t=>t.neutralPalette,tone:t=>0}),wt.surfaceTint=at.fromPalette({name:"surface_tint",palette:t=>t.primaryPalette,tone:t=>t.isDark?80:40,isBackground:!0}),wt.primary=at.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>Pt(t)?t.isDark?100:0:t.isDark?80:40,isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(3,4.5,7,7),toneDeltaPair:t=>new st(wt.primaryContainer,wt.primary,10,"nearer",!1)}),wt.onPrimary=at.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,tone:t=>Pt(t)?t.isDark?10:90:t.isDark?20:100,background:t=>wt.primary,contrastCurve:new it(4.5,7,11,21)}),wt.primaryContainer=at.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>bt(t)?t.sourceColorHct.tone:Pt(t)?t.isDark?85:25:t.isDark?30:90,isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(1,1,3,4.5),toneDeltaPair:t=>new st(wt.primaryContainer,wt.primary,10,"nearer",!1)}),wt.onPrimaryContainer=at.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,tone:t=>bt(t)?at.foregroundTone(wt.primaryContainer.tone(t),4.5):Pt(t)?t.isDark?0:100:t.isDark?90:30,background:t=>wt.primaryContainer,contrastCurve:new it(3,4.5,7,11)}),wt.inversePrimary=at.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>t.isDark?40:80,background:t=>wt.inverseSurface,contrastCurve:new it(3,4.5,7,7)}),wt.secondary=at.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(3,4.5,7,7),toneDeltaPair:t=>new st(wt.secondaryContainer,wt.secondary,10,"nearer",!1)}),wt.onSecondary=at.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,tone:t=>Pt(t)?t.isDark?10:100:t.isDark?20:100,background:t=>wt.secondary,contrastCurve:new it(4.5,7,11,21)}),wt.secondaryContainer=at.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>{const e=t.isDark?30:90;return Pt(t)?t.isDark?30:85:bt(t)?function(t,e,r,a){let n=r,o=tt.from(t,e,r);if(o.chroma<e){let r=o.chroma;for(;o.chroma<e;){n+=a?-1:1;const i=tt.from(t,e,n);if(r>i.chroma)break;if(Math.abs(i.chroma-e)<.4)break;Math.abs(i.chroma-e)<Math.abs(o.chroma-e)&&(o=i),r=Math.max(r,i.chroma)}}return n}(t.secondaryPalette.hue,t.secondaryPalette.chroma,e,!t.isDark):e},isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(1,1,3,4.5),toneDeltaPair:t=>new st(wt.secondaryContainer,wt.secondary,10,"nearer",!1)}),wt.onSecondaryContainer=at.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,tone:t=>Pt(t)?t.isDark?90:10:bt(t)?at.foregroundTone(wt.secondaryContainer.tone(t),4.5):t.isDark?90:30,background:t=>wt.secondaryContainer,contrastCurve:new it(3,4.5,7,11)}),wt.tertiary=at.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>Pt(t)?t.isDark?90:25:t.isDark?80:40,isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(3,4.5,7,7),toneDeltaPair:t=>new st(wt.tertiaryContainer,wt.tertiary,10,"nearer",!1)}),wt.onTertiary=at.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,tone:t=>Pt(t)?t.isDark?10:90:t.isDark?20:100,background:t=>wt.tertiary,contrastCurve:new it(4.5,7,11,21)}),wt.tertiaryContainer=at.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>{if(Pt(t))return t.isDark?60:49;if(!bt(t))return t.isDark?30:90;const e=t.tertiaryPalette.getHct(t.sourceColorHct.tone);return rt.fixIfDisliked(e).tone},isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(1,1,3,4.5),toneDeltaPair:t=>new st(wt.tertiaryContainer,wt.tertiary,10,"nearer",!1)}),wt.onTertiaryContainer=at.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>Pt(t)?t.isDark?0:100:bt(t)?at.foregroundTone(wt.tertiaryContainer.tone(t),4.5):t.isDark?90:30,background:t=>wt.tertiaryContainer,contrastCurve:new it(3,4.5,7,11)}),wt.error=at.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(3,4.5,7,7),toneDeltaPair:t=>new st(wt.errorContainer,wt.error,10,"nearer",!1)}),wt.onError=at.fromPalette({name:"on_error",palette:t=>t.errorPalette,tone:t=>t.isDark?20:100,background:t=>wt.error,contrastCurve:new it(4.5,7,11,21)}),wt.errorContainer=at.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?30:90,isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(1,1,3,4.5),toneDeltaPair:t=>new st(wt.errorContainer,wt.error,10,"nearer",!1)}),wt.onErrorContainer=at.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,tone:t=>Pt(t)?t.isDark?90:10:t.isDark?90:30,background:t=>wt.errorContainer,contrastCurve:new it(3,4.5,7,11)}),wt.primaryFixed=at.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>Pt(t)?40:90,isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(1,1,3,4.5),toneDeltaPair:t=>new st(wt.primaryFixed,wt.primaryFixedDim,10,"lighter",!0)}),wt.primaryFixedDim=at.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>Pt(t)?30:80,isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(1,1,3,4.5),toneDeltaPair:t=>new st(wt.primaryFixed,wt.primaryFixedDim,10,"lighter",!0)}),wt.onPrimaryFixed=at.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,tone:t=>Pt(t)?100:10,background:t=>wt.primaryFixedDim,secondBackground:t=>wt.primaryFixed,contrastCurve:new it(4.5,7,11,21)}),wt.onPrimaryFixedVariant=at.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,tone:t=>Pt(t)?90:30,background:t=>wt.primaryFixedDim,secondBackground:t=>wt.primaryFixed,contrastCurve:new it(3,4.5,7,11)}),wt.secondaryFixed=at.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>Pt(t)?80:90,isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(1,1,3,4.5),toneDeltaPair:t=>new st(wt.secondaryFixed,wt.secondaryFixedDim,10,"lighter",!0)}),wt.secondaryFixedDim=at.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>Pt(t)?70:80,isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(1,1,3,4.5),toneDeltaPair:t=>new st(wt.secondaryFixed,wt.secondaryFixedDim,10,"lighter",!0)}),wt.onSecondaryFixed=at.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>10,background:t=>wt.secondaryFixedDim,secondBackground:t=>wt.secondaryFixed,contrastCurve:new it(4.5,7,11,21)}),wt.onSecondaryFixedVariant=at.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,tone:t=>Pt(t)?25:30,background:t=>wt.secondaryFixedDim,secondBackground:t=>wt.secondaryFixed,contrastCurve:new it(3,4.5,7,11)}),wt.tertiaryFixed=at.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>Pt(t)?40:90,isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(1,1,3,4.5),toneDeltaPair:t=>new st(wt.tertiaryFixed,wt.tertiaryFixedDim,10,"lighter",!0)}),wt.tertiaryFixedDim=at.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>Pt(t)?30:80,isBackground:!0,background:t=>wt.highestSurface(t),contrastCurve:new it(1,1,3,4.5),toneDeltaPair:t=>new st(wt.tertiaryFixed,wt.tertiaryFixedDim,10,"lighter",!0)}),wt.onTertiaryFixed=at.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>Pt(t)?100:10,background:t=>wt.tertiaryFixedDim,secondBackground:t=>wt.tertiaryFixed,contrastCurve:new it(4.5,7,11,21)}),wt.onTertiaryFixedVariant=at.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,tone:t=>Pt(t)?90:30,background:t=>wt.tertiaryFixedDim,secondBackground:t=>wt.tertiaryFixed,contrastCurve:new it(3,4.5,7,11)});
|
|
256
|
+
/**
|
|
257
|
+
* @license
|
|
258
|
+
* Copyright 2022 Google LLC
|
|
259
|
+
*
|
|
260
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
261
|
+
* you may not use this file except in compliance with the License.
|
|
262
|
+
* You may obtain a copy of the License at
|
|
263
|
+
*
|
|
264
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
265
|
+
*
|
|
266
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
267
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
268
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
269
|
+
* See the License for the specific language governing permissions and
|
|
270
|
+
* limitations under the License.
|
|
271
|
+
*/
|
|
272
|
+
class Ct{constructor(t){this.sourceColorArgb=t.sourceColorArgb,this.variant=t.variant,this.contrastLevel=t.contrastLevel,this.isDark=t.isDark,this.sourceColorHct=tt.fromInt(t.sourceColorArgb),this.primaryPalette=t.primaryPalette,this.secondaryPalette=t.secondaryPalette,this.tertiaryPalette=t.tertiaryPalette,this.neutralPalette=t.neutralPalette,this.neutralVariantPalette=t.neutralVariantPalette,this.errorPalette=nt.fromHueAndChroma(25,84)}static getRotatedHue(t,e,r){const a=t.hue;if(e.length!==r.length)throw new Error(`mismatch between hue length ${e.length} & rotations ${r.length}`);if(1===r.length)return O(t.hue+r[0]);const n=e.length;for(let t=0;t<=n-2;t++){const n=e[t],o=e[t+1];if(n<a&&a<o)return O(a+r[t])}return a}getArgb(t){return t.getArgb(this)}getHct(t){return t.getHct(this)}get primaryPaletteKeyColor(){return this.getArgb(wt.primaryPaletteKeyColor)}get secondaryPaletteKeyColor(){return this.getArgb(wt.secondaryPaletteKeyColor)}get tertiaryPaletteKeyColor(){return this.getArgb(wt.tertiaryPaletteKeyColor)}get neutralPaletteKeyColor(){return this.getArgb(wt.neutralPaletteKeyColor)}get neutralVariantPaletteKeyColor(){return this.getArgb(wt.neutralVariantPaletteKeyColor)}get background(){return this.getArgb(wt.background)}get onBackground(){return this.getArgb(wt.onBackground)}get surface(){return this.getArgb(wt.surface)}get surfaceDim(){return this.getArgb(wt.surfaceDim)}get surfaceBright(){return this.getArgb(wt.surfaceBright)}get surfaceContainerLowest(){return this.getArgb(wt.surfaceContainerLowest)}get surfaceContainerLow(){return this.getArgb(wt.surfaceContainerLow)}get surfaceContainer(){return this.getArgb(wt.surfaceContainer)}get surfaceContainerHigh(){return this.getArgb(wt.surfaceContainerHigh)}get surfaceContainerHighest(){return this.getArgb(wt.surfaceContainerHighest)}get onSurface(){return this.getArgb(wt.onSurface)}get surfaceVariant(){return this.getArgb(wt.surfaceVariant)}get onSurfaceVariant(){return this.getArgb(wt.onSurfaceVariant)}get inverseSurface(){return this.getArgb(wt.inverseSurface)}get inverseOnSurface(){return this.getArgb(wt.inverseOnSurface)}get outline(){return this.getArgb(wt.outline)}get outlineVariant(){return this.getArgb(wt.outlineVariant)}get shadow(){return this.getArgb(wt.shadow)}get scrim(){return this.getArgb(wt.scrim)}get surfaceTint(){return this.getArgb(wt.surfaceTint)}get primary(){return this.getArgb(wt.primary)}get onPrimary(){return this.getArgb(wt.onPrimary)}get primaryContainer(){return this.getArgb(wt.primaryContainer)}get onPrimaryContainer(){return this.getArgb(wt.onPrimaryContainer)}get inversePrimary(){return this.getArgb(wt.inversePrimary)}get secondary(){return this.getArgb(wt.secondary)}get onSecondary(){return this.getArgb(wt.onSecondary)}get secondaryContainer(){return this.getArgb(wt.secondaryContainer)}get onSecondaryContainer(){return this.getArgb(wt.onSecondaryContainer)}get tertiary(){return this.getArgb(wt.tertiary)}get onTertiary(){return this.getArgb(wt.onTertiary)}get tertiaryContainer(){return this.getArgb(wt.tertiaryContainer)}get onTertiaryContainer(){return this.getArgb(wt.onTertiaryContainer)}get error(){return this.getArgb(wt.error)}get onError(){return this.getArgb(wt.onError)}get errorContainer(){return this.getArgb(wt.errorContainer)}get onErrorContainer(){return this.getArgb(wt.onErrorContainer)}get primaryFixed(){return this.getArgb(wt.primaryFixed)}get primaryFixedDim(){return this.getArgb(wt.primaryFixedDim)}get onPrimaryFixed(){return this.getArgb(wt.onPrimaryFixed)}get onPrimaryFixedVariant(){return this.getArgb(wt.onPrimaryFixedVariant)}get secondaryFixed(){return this.getArgb(wt.secondaryFixed)}get secondaryFixedDim(){return this.getArgb(wt.secondaryFixedDim)}get onSecondaryFixed(){return this.getArgb(wt.onSecondaryFixed)}get onSecondaryFixedVariant(){return this.getArgb(wt.onSecondaryFixedVariant)}get tertiaryFixed(){return this.getArgb(wt.tertiaryFixed)}get tertiaryFixedDim(){return this.getArgb(wt.tertiaryFixedDim)}get onTertiaryFixed(){return this.getArgb(wt.onTertiaryFixed)}get onTertiaryFixedVariant(){return this.getArgb(wt.onTertiaryFixedVariant)}}
|
|
273
|
+
/**
|
|
274
|
+
* @license
|
|
275
|
+
* Copyright 2021 Google LLC
|
|
276
|
+
*
|
|
277
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
278
|
+
* you may not use this file except in compliance with the License.
|
|
279
|
+
* You may obtain a copy of the License at
|
|
280
|
+
*
|
|
281
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
282
|
+
*
|
|
283
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
284
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
285
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
286
|
+
* See the License for the specific language governing permissions and
|
|
287
|
+
* limitations under the License.
|
|
288
|
+
*/class kt{static of(t){return new kt(t,!1)}static contentOf(t){return new kt(t,!0)}static fromColors(t){return kt.createPaletteFromColors(!1,t)}static contentFromColors(t){return kt.createPaletteFromColors(!0,t)}static createPaletteFromColors(t,e){const r=new kt(e.primary,t);if(e.secondary){const a=new kt(e.secondary,t);r.a2=a.a1}if(e.tertiary){const a=new kt(e.tertiary,t);r.a3=a.a1}if(e.error){const a=new kt(e.error,t);r.error=a.a1}if(e.neutral){const a=new kt(e.neutral,t);r.n1=a.n1}if(e.neutralVariant){const a=new kt(e.neutralVariant,t);r.n2=a.n2}return r}constructor(t,e){const r=tt.fromInt(t),a=r.hue,n=r.chroma;e?(this.a1=nt.fromHueAndChroma(a,n),this.a2=nt.fromHueAndChroma(a,n/3),this.a3=nt.fromHueAndChroma(a+60,n/2),this.n1=nt.fromHueAndChroma(a,Math.min(n/12,4)),this.n2=nt.fromHueAndChroma(a,Math.min(n/6,8))):(this.a1=nt.fromHueAndChroma(a,Math.max(48,n)),this.a2=nt.fromHueAndChroma(a,16),this.a3=nt.fromHueAndChroma(a+60,24),this.n1=nt.fromHueAndChroma(a,4),this.n2=nt.fromHueAndChroma(a,8)),this.error=nt.fromHueAndChroma(25,84)}}
|
|
289
|
+
/**
|
|
290
|
+
* @license
|
|
291
|
+
* Copyright 2022 Google LLC
|
|
292
|
+
*
|
|
293
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
294
|
+
* you may not use this file except in compliance with the License.
|
|
295
|
+
* You may obtain a copy of the License at
|
|
296
|
+
*
|
|
297
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
298
|
+
*
|
|
299
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
300
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
301
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
302
|
+
* See the License for the specific language governing permissions and
|
|
303
|
+
* limitations under the License.
|
|
304
|
+
*/class Mt extends Ct{constructor(t,e,r){super({sourceColorArgb:t.toInt(),variant:ct.EXPRESSIVE,contrastLevel:r,isDark:e,primaryPalette:nt.fromHueAndChroma(O(t.hue+240),40),secondaryPalette:nt.fromHueAndChroma(Ct.getRotatedHue(t,Mt.hues,Mt.secondaryRotations),24),tertiaryPalette:nt.fromHueAndChroma(Ct.getRotatedHue(t,Mt.hues,Mt.tertiaryRotations),32),neutralPalette:nt.fromHueAndChroma(t.hue+15,8),neutralVariantPalette:nt.fromHueAndChroma(t.hue+15,12)})}}Mt.hues=[0,21,51,121,151,191,271,321,360],Mt.secondaryRotations=[45,95,45,20,45,90,45,45,45],Mt.tertiaryRotations=[120,120,20,45,20,15,20,120,120];
|
|
305
|
+
/**
|
|
306
|
+
* @license
|
|
307
|
+
* Copyright 2022 Google LLC
|
|
308
|
+
*
|
|
309
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
310
|
+
* you may not use this file except in compliance with the License.
|
|
311
|
+
* You may obtain a copy of the License at
|
|
312
|
+
*
|
|
313
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
314
|
+
*
|
|
315
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
316
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
317
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
318
|
+
* See the License for the specific language governing permissions and
|
|
319
|
+
* limitations under the License.
|
|
320
|
+
*/
|
|
321
|
+
class vt extends Ct{constructor(t,e,r){super({sourceColorArgb:t.toInt(),variant:ct.VIBRANT,contrastLevel:r,isDark:e,primaryPalette:nt.fromHueAndChroma(t.hue,200),secondaryPalette:nt.fromHueAndChroma(Ct.getRotatedHue(t,vt.hues,vt.secondaryRotations),24),tertiaryPalette:nt.fromHueAndChroma(Ct.getRotatedHue(t,vt.hues,vt.tertiaryRotations),32),neutralPalette:nt.fromHueAndChroma(t.hue,10),neutralVariantPalette:nt.fromHueAndChroma(t.hue,12)})}}
|
|
322
|
+
/**
|
|
323
|
+
* @license
|
|
324
|
+
* Copyright 2021 Google LLC
|
|
325
|
+
*
|
|
326
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
327
|
+
* you may not use this file except in compliance with the License.
|
|
328
|
+
* You may obtain a copy of the License at
|
|
329
|
+
*
|
|
330
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
331
|
+
*
|
|
332
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
333
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
334
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
335
|
+
* See the License for the specific language governing permissions and
|
|
336
|
+
* limitations under the License.
|
|
337
|
+
*/
|
|
338
|
+
function _t(t){const e=N(t),r=z(t),a=q(t),n=[e.toString(16),r.toString(16),a.toString(16)];for(const[t,e]of n.entries())1===e.length&&(n[t]="0"+e);return"#"+n.join("")}function At(t){return parseInt(t,16)}vt.hues=[0,41,61,101,131,181,251,301,360],vt.secondaryRotations=[18,15,10,12,15,18,15,12,12],vt.tertiaryRotations=[35,30,20,25,30,35,30,25,25];let Dt=class extends e{constructor(){super(...arguments),ht.add(this),lt.set(this,new CSSStyleSheet),ut.set(this,!1),dt.set(this,void 0),mt.set(this,void 0),gt.set(this,void 0),ft.set(this,()=>o(this,ht,"m",pt).call(this,!0)),this.color="#6750A4",this.scheme="auto",this.contrast="standard",this.strongFocus=!1,this.density=0,this.motion="standard"}get isDark(){switch(this.scheme){case"light":return!1;case"dark":return!0;default:if(this.parentElement instanceof HTMLBodyElement)switch(document.documentElement.style.colorScheme){case"light":return!1;case"dark":return!0}return o(this,mt,"f")?.matches??!1}}connectedCallback(){super.connectedCallback(),this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(o(this,lt,"f"))&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,o(this,lt,"f")]),i(this,dt,matchMedia("(prefers-color-scheme: light)"),"f"),i(this,mt,matchMedia("(prefers-color-scheme: dark)"),"f"),i(this,gt,matchMedia("(forced-colors: active)"),"f"),[o(this,dt,"f"),o(this,mt,"f"),o(this,gt,"f")].forEach(t=>t.addEventListener("change",o(this,ft,"f")))}disconnectedCallback(){super.disconnectedCallback(),[o(this,dt,"f"),o(this,mt,"f"),o(this,gt,"f")].forEach(t=>t?.removeEventListener("change",o(this,ft,"f"))),i(this,dt,i(this,mt,i(this,gt,void 0,"f"),"f"),"f")}updated(t){super.updated(t),o(this,ht,"m",pt).call(this,o(this,ut,"f")&&["color","scheme","contrast"].some(e=>t.has(e)))}firstUpdated(t){super.firstUpdated(t),i(this,ut,!0,"f")}render(){return r`<slot></slot>`}};lt=new WeakMap,ut=new WeakMap,dt=new WeakMap,mt=new WeakMap,gt=new WeakMap,ft=new WeakMap,ht=new WeakSet,pt=function(t){const e=function(t){const e=3===(t=t.replace("#","")).length,r=6===t.length,a=8===t.length;if(!e&&!r&&!a)throw new Error("unexpected hex "+t);let n=0,o=0,i=0;return e?(n=At(t.slice(0,1).repeat(2)),o=At(t.slice(1,2).repeat(2)),i=At(t.slice(2,3).repeat(2))):r?(n=At(t.slice(0,2)),o=At(t.slice(2,4)),i=At(t.slice(4,6))):a&&(n=At(t.slice(2,4)),o=At(t.slice(4,6)),i=At(t.slice(6,8))),(255<<24|(255&n)<<16|(255&o)<<8|255&i)>>>0}(this.color),r=kt.of(e),a=new Ct({sourceColorArgb:e,variant:1,contrastLevel:o(this,ht,"m",yt).call(this),isDark:this.isDark,primaryPalette:r.a1,secondaryPalette:r.a2,tertiaryPalette:r.a3,neutralPalette:r.n1,neutralVariantPalette:r.n2});let n="";for(const t in wt)if(!t.endsWith("PaletteKeyColor")){const e=wt[t];e instanceof at&&(n+=`--md-sys-color-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}: ${_t(e.getArgb(a))};`)}if("expressive"===this.motion&&(n+="--md-sys-motion-spring-fast-spatial: 350ms cubic-bezier(0.42, 1.67, 0.21, 0.90);",n+="--md-sys-motion-spring-default-spatial: 500ms cubic-bezier(0.38, 1.21, 0.22, 1.00);",n+="--md-sys-motion-spring-slow-spatial: 650ms cubic-bezier(0.39, 1.29, 0.35, 0.98);",n+="--md-sys-motion-spring-fast-effects: 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00);",n+="--md-sys-motion-spring-default-effects: 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00);",n+="--md-sys-motion-spring-slow-effects: 300ms cubic-bezier(0.34, 0.88, 0.34, 1.00);"),n+=`--md-sys-density-scale: ${this.density};`,n+=`--m3e-scrollbar-thumb-color: ${_t(a.neutralPalette.tone(60))};`,n+=`--m3e-focus-ring-visibility: ${this.strongFocus?"visible":"hidden"};`,o(this,lt,"f").replaceSync(`:host { ${n} }`),this.parentElement instanceof HTMLBodyElement){const t=getComputedStyle(this);switch(this.scheme){case"light":document.documentElement.style.colorScheme="light";break;case"dark":document.documentElement.style.colorScheme="dark";break;default:switch(document.documentElement.style.colorScheme){case"light":case"dark":document.documentElement.style.colorScheme="light dark"}}o(this,gt,"f")?.matches?this.parentElement.style.backgroundColor=this.parentElement.style.color=this.parentElement.ownerDocument.documentElement.style.scrollbarColor=this.parentElement.style.scrollbarColor="":(this.parentElement.style.backgroundColor=t.getPropertyValue("--md-sys-color-background"),this.parentElement.style.color=t.getPropertyValue("--md-sys-color-on-background"),this.parentElement.ownerDocument.documentElement.style.scrollbarColor=this.parentElement.style.scrollbarColor=`${t.getPropertyValue("--m3e-scrollbar-thumb-color")} ${t.getPropertyValue("--m3e-scrollbar-track-color")}`)}o(this,ut,"f")&&this.dispatchEvent(new Event("change",{bubbles:!0})),t&&document.body.offsetHeight},yt=function(){switch(this.contrast){case"high":return 1;case"medium":return.5;default:return 0}},Dt.styles=t`:host { display: contents; font-size: ${a.typescale.standard.body.large.fontSize}; font-weight: ${a.typescale.standard.body.large.fontWeight}; line-height: ${a.typescale.standard.body.large.lineHeight}; letter-spacing: ${a.typescale.standard.body.large.tracking}; }`,n([T()],Dt.prototype,"color",void 0),n([T()],Dt.prototype,"scheme",void 0),n([T()],Dt.prototype,"contrast",void 0),n([T({attribute:"strong-focus",type:Boolean})],Dt.prototype,"strongFocus",void 0),n([T({type:Number})],Dt.prototype,"density",void 0),n([T()],Dt.prototype,"motion",void 0),Dt=n([(t=>(e,r)=>{void 0!==r?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)})("m3e-theme")],Dt);export{Dt as M3eThemeElement};
|
|
339
|
+
//# sourceMappingURL=theme.min.js.map
|