@m3e/core 1.0.0-rc.1 → 1.0.0-rc.2
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/README.md +1 -2
- package/dist/a11y.js +6 -18
- package/dist/a11y.js.map +1 -1
- package/dist/a11y.min.js +5 -5
- package/dist/a11y.min.js.map +1 -1
- package/dist/custom-elements.json +3449 -3429
- package/dist/html-custom-data.json +14 -6
- package/dist/index.js +198 -29
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +87 -87
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/cem.config.mjs +0 -16
- package/demo/index.html +0 -58
- package/dist/src/a11y/AriaDescriber.d.ts +0 -31
- package/dist/src/a11y/AriaDescriber.d.ts.map +0 -1
- package/dist/src/a11y/FocusTrapElement.d.ts +0 -25
- package/dist/src/a11y/FocusTrapElement.d.ts.map +0 -1
- package/dist/src/a11y/InteractivityChecker.d.ts +0 -22
- package/dist/src/a11y/InteractivityChecker.d.ts.map +0 -1
- package/dist/src/a11y/LiveAnnouncer.d.ts +0 -56
- package/dist/src/a11y/LiveAnnouncer.d.ts.map +0 -1
- package/dist/src/a11y/aria-reference.d.ts +0 -30
- package/dist/src/a11y/aria-reference.d.ts.map +0 -1
- package/dist/src/a11y/index.d.ts +0 -8
- package/dist/src/a11y/index.d.ts.map +0 -1
- package/dist/src/a11y/keycodes/KeyCode.d.ts +0 -118
- package/dist/src/a11y/keycodes/KeyCode.d.ts.map +0 -1
- package/dist/src/a11y/keycodes/ModifierKeys.d.ts +0 -5
- package/dist/src/a11y/keycodes/ModifierKeys.d.ts.map +0 -1
- package/dist/src/a11y/keycodes/getKeyCode.d.ts +0 -7
- package/dist/src/a11y/keycodes/getKeyCode.d.ts.map +0 -1
- package/dist/src/a11y/keycodes/hasModifierKey.d.ts +0 -9
- package/dist/src/a11y/keycodes/hasModifierKey.d.ts.map +0 -1
- package/dist/src/a11y/keycodes/index.d.ts +0 -6
- package/dist/src/a11y/keycodes/index.d.ts.map +0 -1
- package/dist/src/a11y/keycodes/isModifierAllowed.d.ts +0 -9
- package/dist/src/a11y/keycodes/isModifierAllowed.d.ts.map +0 -1
- package/dist/src/a11y/list-key/FocusKeyManager.d.ts +0 -17
- package/dist/src/a11y/list-key/FocusKeyManager.d.ts.map +0 -1
- package/dist/src/a11y/list-key/ListKeyManager.d.ts +0 -114
- package/dist/src/a11y/list-key/ListKeyManager.d.ts.map +0 -1
- package/dist/src/a11y/list-key/ListManager.d.ts +0 -37
- package/dist/src/a11y/list-key/ListManager.d.ts.map +0 -1
- package/dist/src/a11y/list-key/RadioKeyManager.d.ts +0 -20
- package/dist/src/a11y/list-key/RadioKeyManager.d.ts.map +0 -1
- package/dist/src/a11y/list-key/RovingTabIndexManager.d.ts +0 -22
- package/dist/src/a11y/list-key/RovingTabIndexManager.d.ts.map +0 -1
- package/dist/src/a11y/list-key/SelectionManager.d.ts +0 -46
- package/dist/src/a11y/list-key/SelectionManager.d.ts.map +0 -1
- package/dist/src/a11y/list-key/Typeahead.d.ts +0 -64
- package/dist/src/a11y/list-key/Typeahead.d.ts.map +0 -1
- package/dist/src/a11y/list-key/index.d.ts +0 -8
- package/dist/src/a11y/list-key/index.d.ts.map +0 -1
- package/dist/src/a11y/visuallyHide.d.ts +0 -6
- package/dist/src/a11y/visuallyHide.d.ts.map +0 -1
- package/dist/src/anchoring/AnchorOptions.d.ts +0 -15
- package/dist/src/anchoring/AnchorOptions.d.ts.map +0 -1
- package/dist/src/anchoring/AnchorPosition.d.ts +0 -3
- package/dist/src/anchoring/AnchorPosition.d.ts.map +0 -1
- package/dist/src/anchoring/index.d.ts +0 -4
- package/dist/src/anchoring/index.d.ts.map +0 -1
- package/dist/src/anchoring/positionAnchor.d.ts +0 -12
- package/dist/src/anchoring/positionAnchor.d.ts.map +0 -1
- package/dist/src/bidi/Directionality.d.ts +0 -27
- package/dist/src/bidi/Directionality.d.ts.map +0 -1
- package/dist/src/bidi/index.d.ts +0 -2
- package/dist/src/bidi/index.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/layout/Breakpoint.d.ts +0 -26
- package/dist/src/layout/Breakpoint.d.ts.map +0 -1
- package/dist/src/layout/BreakpointObserver.d.ts +0 -18
- package/dist/src/layout/BreakpointObserver.d.ts.map +0 -1
- package/dist/src/layout/index.d.ts +0 -3
- package/dist/src/layout/index.d.ts.map +0 -1
- package/dist/src/platform/Platform.d.ts +0 -34
- package/dist/src/platform/Platform.d.ts.map +0 -1
- package/dist/src/platform/index.d.ts +0 -2
- package/dist/src/platform/index.d.ts.map +0 -1
- package/dist/src/shared/controllers/FocusController.d.ts +0 -30
- package/dist/src/shared/controllers/FocusController.d.ts.map +0 -1
- package/dist/src/shared/controllers/HoverController.d.ts +0 -40
- package/dist/src/shared/controllers/HoverController.d.ts.map +0 -1
- package/dist/src/shared/controllers/IntersectionController.d.ts +0 -40
- package/dist/src/shared/controllers/IntersectionController.d.ts.map +0 -1
- package/dist/src/shared/controllers/LongPressController.d.ts +0 -32
- package/dist/src/shared/controllers/LongPressController.d.ts.map +0 -1
- package/dist/src/shared/controllers/MonitorControllerBase.d.ts +0 -62
- package/dist/src/shared/controllers/MonitorControllerBase.d.ts.map +0 -1
- package/dist/src/shared/controllers/MutationController.d.ts +0 -37
- package/dist/src/shared/controllers/MutationController.d.ts.map +0 -1
- package/dist/src/shared/controllers/PressedController.d.ts +0 -45
- package/dist/src/shared/controllers/PressedController.d.ts.map +0 -1
- package/dist/src/shared/controllers/ResizeController.d.ts +0 -40
- package/dist/src/shared/controllers/ResizeController.d.ts.map +0 -1
- package/dist/src/shared/controllers/ScrollController.d.ts +0 -34
- package/dist/src/shared/controllers/ScrollController.d.ts.map +0 -1
- package/dist/src/shared/controllers/index.d.ts +0 -9
- package/dist/src/shared/controllers/index.d.ts.map +0 -1
- package/dist/src/shared/decorators/debounce.d.ts +0 -7
- package/dist/src/shared/decorators/debounce.d.ts.map +0 -1
- package/dist/src/shared/decorators/index.d.ts +0 -2
- package/dist/src/shared/decorators/index.d.ts.map +0 -1
- package/dist/src/shared/directives/index.d.ts +0 -2
- package/dist/src/shared/directives/index.d.ts.map +0 -1
- package/dist/src/shared/directives/safeStyleMap.d.ts +0 -44
- package/dist/src/shared/directives/safeStyleMap.d.ts.map +0 -1
- package/dist/src/shared/index.d.ts +0 -8
- package/dist/src/shared/index.d.ts.map +0 -1
- package/dist/src/shared/mixins/AttachInternals.d.ts +0 -24
- package/dist/src/shared/mixins/AttachInternals.d.ts.map +0 -1
- package/dist/src/shared/mixins/Checked.d.ts +0 -24
- package/dist/src/shared/mixins/Checked.d.ts.map +0 -1
- package/dist/src/shared/mixins/CheckedIndeterminate.d.ts +0 -25
- package/dist/src/shared/mixins/CheckedIndeterminate.d.ts.map +0 -1
- package/dist/src/shared/mixins/CheckedOrSelected.d.ts +0 -23
- package/dist/src/shared/mixins/CheckedOrSelected.d.ts.map +0 -1
- package/dist/src/shared/mixins/ConstraintValidation.d.ts +0 -48
- package/dist/src/shared/mixins/ConstraintValidation.d.ts.map +0 -1
- package/dist/src/shared/mixins/Constructor.d.ts +0 -3
- package/dist/src/shared/mixins/Constructor.d.ts.map +0 -1
- package/dist/src/shared/mixins/Dirty.d.ts +0 -27
- package/dist/src/shared/mixins/Dirty.d.ts.map +0 -1
- package/dist/src/shared/mixins/Disabled.d.ts +0 -25
- package/dist/src/shared/mixins/Disabled.d.ts.map +0 -1
- package/dist/src/shared/mixins/DisabledInteractive.d.ts +0 -25
- package/dist/src/shared/mixins/DisabledInteractive.d.ts.map +0 -1
- package/dist/src/shared/mixins/EventAttribute.d.ts +0 -11
- package/dist/src/shared/mixins/EventAttribute.d.ts.map +0 -1
- package/dist/src/shared/mixins/Focusable.d.ts +0 -11
- package/dist/src/shared/mixins/Focusable.d.ts.map +0 -1
- package/dist/src/shared/mixins/FormAssociated.d.ts +0 -34
- package/dist/src/shared/mixins/FormAssociated.d.ts.map +0 -1
- package/dist/src/shared/mixins/FormSubmitter.d.ts +0 -31
- package/dist/src/shared/mixins/FormSubmitter.d.ts.map +0 -1
- package/dist/src/shared/mixins/HtmlFor.d.ts +0 -30
- package/dist/src/shared/mixins/HtmlFor.d.ts.map +0 -1
- package/dist/src/shared/mixins/KeyboardClick.d.ts +0 -11
- package/dist/src/shared/mixins/KeyboardClick.d.ts.map +0 -1
- package/dist/src/shared/mixins/Labelled.d.ts +0 -22
- package/dist/src/shared/mixins/Labelled.d.ts.map +0 -1
- package/dist/src/shared/mixins/LinkButton.d.ts +0 -36
- package/dist/src/shared/mixins/LinkButton.d.ts.map +0 -1
- package/dist/src/shared/mixins/ReadOnly.d.ts +0 -25
- package/dist/src/shared/mixins/ReadOnly.d.ts.map +0 -1
- package/dist/src/shared/mixins/Required.d.ts +0 -26
- package/dist/src/shared/mixins/Required.d.ts.map +0 -1
- package/dist/src/shared/mixins/RequiredConstraintValidation.d.ts +0 -21
- package/dist/src/shared/mixins/RequiredConstraintValidation.d.ts.map +0 -1
- package/dist/src/shared/mixins/Role.d.ts +0 -13
- package/dist/src/shared/mixins/Role.d.ts.map +0 -1
- package/dist/src/shared/mixins/Selected.d.ts +0 -24
- package/dist/src/shared/mixins/Selected.d.ts.map +0 -1
- package/dist/src/shared/mixins/Touched.d.ts +0 -27
- package/dist/src/shared/mixins/Touched.d.ts.map +0 -1
- package/dist/src/shared/mixins/Vertical.d.ts +0 -24
- package/dist/src/shared/mixins/Vertical.d.ts.map +0 -1
- package/dist/src/shared/mixins/hasKeys.d.ts +0 -9
- package/dist/src/shared/mixins/hasKeys.d.ts.map +0 -1
- package/dist/src/shared/mixins/index.d.ts +0 -25
- package/dist/src/shared/mixins/index.d.ts.map +0 -1
- package/dist/src/shared/primitives/CollapsibleElement.d.ts +0 -58
- package/dist/src/shared/primitives/CollapsibleElement.d.ts.map +0 -1
- package/dist/src/shared/primitives/ElevationElement.d.ts +0 -88
- package/dist/src/shared/primitives/ElevationElement.d.ts.map +0 -1
- package/dist/src/shared/primitives/ElevationLevel.d.ts +0 -3
- package/dist/src/shared/primitives/ElevationLevel.d.ts.map +0 -1
- package/dist/src/shared/primitives/ElevationToken.d.ts +0 -15
- package/dist/src/shared/primitives/ElevationToken.d.ts.map +0 -1
- package/dist/src/shared/primitives/FocusRingElement.d.ts +0 -78
- package/dist/src/shared/primitives/FocusRingElement.d.ts.map +0 -1
- package/dist/src/shared/primitives/FocusRingToken.d.ts +0 -17
- package/dist/src/shared/primitives/FocusRingToken.d.ts.map +0 -1
- package/dist/src/shared/primitives/PseudoCheckboxElement.d.ts +0 -50
- package/dist/src/shared/primitives/PseudoCheckboxElement.d.ts.map +0 -1
- package/dist/src/shared/primitives/PseudoRadioElement.d.ts +0 -41
- package/dist/src/shared/primitives/PseudoRadioElement.d.ts.map +0 -1
- package/dist/src/shared/primitives/RippleElement.d.ts +0 -110
- package/dist/src/shared/primitives/RippleElement.d.ts.map +0 -1
- package/dist/src/shared/primitives/RippleToken.d.ts +0 -12
- package/dist/src/shared/primitives/RippleToken.d.ts.map +0 -1
- package/dist/src/shared/primitives/ScrollContainerElement.d.ts +0 -64
- package/dist/src/shared/primitives/ScrollContainerElement.d.ts.map +0 -1
- package/dist/src/shared/primitives/ScrollDividers.d.ts +0 -3
- package/dist/src/shared/primitives/ScrollDividers.d.ts.map +0 -1
- package/dist/src/shared/primitives/SlideElement.d.ts +0 -48
- package/dist/src/shared/primitives/SlideElement.d.ts.map +0 -1
- package/dist/src/shared/primitives/StateLayerElement.d.ts +0 -77
- package/dist/src/shared/primitives/StateLayerElement.d.ts.map +0 -1
- package/dist/src/shared/primitives/StateLayerToken.d.ts +0 -13
- package/dist/src/shared/primitives/StateLayerToken.d.ts.map +0 -1
- package/dist/src/shared/primitives/TextOverflowElement.d.ts +0 -39
- package/dist/src/shared/primitives/TextOverflowElement.d.ts.map +0 -1
- package/dist/src/shared/primitives/index.d.ts +0 -13
- package/dist/src/shared/primitives/index.d.ts.map +0 -1
- package/dist/src/shared/tokens/ColorToken.d.ts +0 -96
- package/dist/src/shared/tokens/ColorToken.d.ts.map +0 -1
- package/dist/src/shared/tokens/DensityToken.d.ts +0 -15
- package/dist/src/shared/tokens/DensityToken.d.ts.map +0 -1
- package/dist/src/shared/tokens/DesignToken.d.ts +0 -366
- package/dist/src/shared/tokens/DesignToken.d.ts.map +0 -1
- package/dist/src/shared/tokens/ElevationToken.d.ts +0 -16
- package/dist/src/shared/tokens/ElevationToken.d.ts.map +0 -1
- package/dist/src/shared/tokens/MotionToken.d.ts +0 -69
- package/dist/src/shared/tokens/MotionToken.d.ts.map +0 -1
- package/dist/src/shared/tokens/ScrollbarToken.d.ts +0 -10
- package/dist/src/shared/tokens/ScrollbarToken.d.ts.map +0 -1
- package/dist/src/shared/tokens/ShapeToken.d.ts +0 -79
- package/dist/src/shared/tokens/ShapeToken.d.ts.map +0 -1
- package/dist/src/shared/tokens/StateToken.d.ts +0 -10
- package/dist/src/shared/tokens/StateToken.d.ts.map +0 -1
- package/dist/src/shared/tokens/TypescaleToken.d.ts +0 -220
- package/dist/src/shared/tokens/TypescaleToken.d.ts.map +0 -1
- package/dist/src/shared/tokens/index.d.ts +0 -2
- package/dist/src/shared/tokens/index.d.ts.map +0 -1
- package/dist/src/shared/utils/getTextContent.d.ts +0 -8
- package/dist/src/shared/utils/getTextContent.d.ts.map +0 -1
- package/dist/src/shared/utils/guid.d.ts +0 -6
- package/dist/src/shared/utils/guid.d.ts.map +0 -1
- package/dist/src/shared/utils/hasAssignedNodes.d.ts +0 -7
- package/dist/src/shared/utils/hasAssignedNodes.d.ts.map +0 -1
- package/dist/src/shared/utils/index.d.ts +0 -6
- package/dist/src/shared/utils/index.d.ts.map +0 -1
- package/dist/src/shared/utils/prefersReducedMotion.d.ts +0 -6
- package/dist/src/shared/utils/prefersReducedMotion.d.ts.map +0 -1
- package/dist/src/shared/utils/scrollIntoViewIfNeeded.d.ts +0 -8
- package/dist/src/shared/utils/scrollIntoViewIfNeeded.d.ts.map +0 -1
- package/eslint.config.mjs +0 -21
- package/rollup.config.js +0 -132
- package/src/a11y/AriaDescriber.ts +0 -130
- package/src/a11y/FocusTrapElement.ts +0 -136
- package/src/a11y/InteractivityChecker.ts +0 -62
- package/src/a11y/LiveAnnouncer.ts +0 -143
- package/src/a11y/aria-reference.ts +0 -51
- package/src/a11y/index.ts +0 -8
- package/src/a11y/keycodes/KeyCode.ts +0 -128
- package/src/a11y/keycodes/ModifierKeys.ts +0 -5
- package/src/a11y/keycodes/getKeyCode.ts +0 -8
- package/src/a11y/keycodes/hasModifierKey.ts +0 -11
- package/src/a11y/keycodes/index.ts +0 -5
- package/src/a11y/keycodes/isModifierAllowed.ts +0 -12
- package/src/a11y/list-key/FocusKeyManager.ts +0 -25
- package/src/a11y/list-key/ListKeyManager.ts +0 -350
- package/src/a11y/list-key/ListManager.ts +0 -66
- package/src/a11y/list-key/RadioKeyManager.ts +0 -49
- package/src/a11y/list-key/RovingTabIndexManager.ts +0 -56
- package/src/a11y/list-key/SelectionManager.ts +0 -132
- package/src/a11y/list-key/Typeahead.ts +0 -131
- package/src/a11y/list-key/index.ts +0 -7
- package/src/a11y/visuallyHide.ts +0 -18
- package/src/anchoring/AnchorOptions.ts +0 -19
- package/src/anchoring/AnchorPosition.ts +0 -14
- package/src/anchoring/index.ts +0 -3
- package/src/anchoring/positionAnchor.ts +0 -53
- package/src/bidi/Directionality.ts +0 -85
- package/src/bidi/index.ts +0 -1
- package/src/index.ts +0 -1
- package/src/layout/Breakpoint.ts +0 -26
- package/src/layout/BreakpointObserver.ts +0 -44
- package/src/layout/index.ts +0 -2
- package/src/platform/Platform.ts +0 -67
- package/src/platform/index.ts +0 -1
- package/src/shared/controllers/FocusController.ts +0 -60
- package/src/shared/controllers/HoverController.ts +0 -140
- package/src/shared/controllers/IntersectionController.ts +0 -81
- package/src/shared/controllers/LongPressController.ts +0 -87
- package/src/shared/controllers/MonitorControllerBase.ts +0 -99
- package/src/shared/controllers/MutationController.ts +0 -89
- package/src/shared/controllers/PressedController.ts +0 -137
- package/src/shared/controllers/ResizeController.ts +0 -83
- package/src/shared/controllers/ScrollController.ts +0 -100
- package/src/shared/controllers/index.ts +0 -8
- package/src/shared/decorators/debounce.ts +0 -19
- package/src/shared/decorators/index.ts +0 -1
- package/src/shared/directives/index.ts +0 -1
- package/src/shared/directives/safeStyleMap.ts +0 -108
- package/src/shared/index.ts +0 -7
- package/src/shared/mixins/AttachInternals.ts +0 -48
- package/src/shared/mixins/Checked.ts +0 -50
- package/src/shared/mixins/CheckedIndeterminate.ts +0 -47
- package/src/shared/mixins/CheckedOrSelected.ts +0 -36
- package/src/shared/mixins/ConstraintValidation.ts +0 -213
- package/src/shared/mixins/Constructor.ts +0 -2
- package/src/shared/mixins/Dirty.ts +0 -71
- package/src/shared/mixins/Disabled.ts +0 -49
- package/src/shared/mixins/DisabledInteractive.ts +0 -78
- package/src/shared/mixins/EventAttribute.ts +0 -25
- package/src/shared/mixins/Focusable.ts +0 -52
- package/src/shared/mixins/FormAssociated.ts +0 -152
- package/src/shared/mixins/FormSubmitter.ts +0 -123
- package/src/shared/mixins/HtmlFor.ts +0 -89
- package/src/shared/mixins/KeyboardClick.ts +0 -46
- package/src/shared/mixins/Labelled.ts +0 -88
- package/src/shared/mixins/LinkButton.ts +0 -169
- package/src/shared/mixins/ReadOnly.ts +0 -48
- package/src/shared/mixins/Required.ts +0 -50
- package/src/shared/mixins/RequiredConstraintValidation.ts +0 -45
- package/src/shared/mixins/Role.ts +0 -134
- package/src/shared/mixins/Selected.ts +0 -50
- package/src/shared/mixins/Touched.ts +0 -71
- package/src/shared/mixins/Vertical.ts +0 -44
- package/src/shared/mixins/hasKeys.ts +0 -10
- package/src/shared/mixins/index.ts +0 -24
- package/src/shared/primitives/CollapsibleElement.ts +0 -227
- package/src/shared/primitives/ElevationElement.ts +0 -254
- package/src/shared/primitives/ElevationLevel.ts +0 -2
- package/src/shared/primitives/ElevationToken.ts +0 -18
- package/src/shared/primitives/FocusRingElement.ts +0 -199
- package/src/shared/primitives/FocusRingToken.ts +0 -24
- package/src/shared/primitives/PseudoCheckboxElement.ts +0 -116
- package/src/shared/primitives/PseudoRadioElement.ts +0 -83
- package/src/shared/primitives/RippleElement.ts +0 -289
- package/src/shared/primitives/RippleToken.ts +0 -15
- package/src/shared/primitives/ScrollContainerElement.ts +0 -151
- package/src/shared/primitives/ScrollDividers.ts +0 -2
- package/src/shared/primitives/SlideElement.ts +0 -128
- package/src/shared/primitives/StateLayerElement.ts +0 -191
- package/src/shared/primitives/StateLayerToken.ts +0 -16
- package/src/shared/primitives/TextOverflowElement.ts +0 -60
- package/src/shared/primitives/index.ts +0 -12
- package/src/shared/tokens/ColorToken.ts +0 -142
- package/src/shared/tokens/DensityToken.ts +0 -23
- package/src/shared/tokens/DesignToken.ts +0 -35
- package/src/shared/tokens/ElevationToken.ts +0 -115
- package/src/shared/tokens/MotionToken.ts +0 -107
- package/src/shared/tokens/ScrollbarToken.ts +0 -13
- package/src/shared/tokens/ShapeToken.ts +0 -138
- package/src/shared/tokens/StateToken.ts +0 -13
- package/src/shared/tokens/TypescaleToken.ts +0 -230
- package/src/shared/tokens/index.ts +0 -1
- package/src/shared/utils/getTextContent.ts +0 -31
- package/src/shared/utils/guid.ts +0 -11
- package/src/shared/utils/hasAssignedNodes.ts +0 -8
- package/src/shared/utils/index.ts +0 -5
- package/src/shared/utils/prefersReducedMotion.ts +0 -9
- package/src/shared/utils/scrollIntoViewIfNeeded.ts +0 -18
- package/tsconfig.json +0 -9
package/dist/index.js
CHANGED
|
@@ -429,7 +429,7 @@ class MutationController extends MonitorControllerBase {
|
|
|
429
429
|
}
|
|
430
430
|
_MutationController_host = new WeakMap(), _MutationController_callback = new WeakMap(), _MutationController_skipInitial = new WeakMap(), _MutationController_config = new WeakMap(), _MutationController_observer = new WeakMap(), _MutationController_unobservedUpdate = new WeakMap();
|
|
431
431
|
|
|
432
|
-
var _PressedController_instances, _PressedController_capture, _PressedController_callback, _PressedController_isPressedKey, _PressedController_pressedTargets, _PressedController_pointerDownHandler, _PressedController_pointerUpHandler, _PressedController_keyDownHandler, _PressedController_keyUpHandler, _PressedController_handlePointerDown, _PressedController_handlePointerUp, _PressedController_handleKeyDown, _PressedController_handleKeyUp;
|
|
432
|
+
var _PressedController_instances, _PressedController_capture, _PressedController_callback, _PressedController_isPressedKey, _PressedController_pressedTargets, _PressedController_minPressedDuration, _PressedController_pointerDownHandler, _PressedController_pointerUpHandler, _PressedController_keyDownHandler, _PressedController_keyUpHandler, _PressedController_handlePointerDown, _PressedController_handlePointerUp, _PressedController_handleKeyDown, _PressedController_handleKeyUp;
|
|
433
433
|
/** A `ReactiveController` used to monitor the pressed state of one or more elements. */
|
|
434
434
|
class PressedController extends MonitorControllerBase {
|
|
435
435
|
/**
|
|
@@ -443,7 +443,8 @@ class PressedController extends MonitorControllerBase {
|
|
|
443
443
|
/** @private */ _PressedController_capture.set(this, void 0);
|
|
444
444
|
/** @private */ _PressedController_callback.set(this, void 0);
|
|
445
445
|
/** @private */ _PressedController_isPressedKey.set(this, void 0);
|
|
446
|
-
/** @private */ _PressedController_pressedTargets.set(this, new
|
|
446
|
+
/** @private */ _PressedController_pressedTargets.set(this, new Map());
|
|
447
|
+
/** @private */ _PressedController_minPressedDuration.set(this, void 0);
|
|
447
448
|
/** @private */ _PressedController_pointerDownHandler.set(this, (e) => __classPrivateFieldGet(this, _PressedController_instances, "m", _PressedController_handlePointerDown).call(this, e));
|
|
448
449
|
/** @private */ _PressedController_pointerUpHandler.set(this, (e) => __classPrivateFieldGet(this, _PressedController_instances, "m", _PressedController_handlePointerUp).call(this, e));
|
|
449
450
|
/** @private */ _PressedController_keyDownHandler.set(this, (e) => __classPrivateFieldGet(this, _PressedController_instances, "m", _PressedController_handleKeyDown).call(this, e));
|
|
@@ -451,6 +452,7 @@ class PressedController extends MonitorControllerBase {
|
|
|
451
452
|
__classPrivateFieldSet(this, _PressedController_capture, options.capture, "f");
|
|
452
453
|
__classPrivateFieldSet(this, _PressedController_callback, options.callback, "f");
|
|
453
454
|
__classPrivateFieldSet(this, _PressedController_isPressedKey, options.isPressedKey, "f");
|
|
455
|
+
__classPrivateFieldSet(this, _PressedController_minPressedDuration, options.minPressedDuration ?? 0, "f");
|
|
454
456
|
}
|
|
455
457
|
/** @inheritdoc */
|
|
456
458
|
hostConnected() {
|
|
@@ -486,37 +488,61 @@ class PressedController extends MonitorControllerBase {
|
|
|
486
488
|
}
|
|
487
489
|
}
|
|
488
490
|
}
|
|
489
|
-
_PressedController_capture = new WeakMap(), _PressedController_callback = new WeakMap(), _PressedController_isPressedKey = new WeakMap(), _PressedController_pressedTargets = new WeakMap(), _PressedController_pointerDownHandler = new WeakMap(), _PressedController_pointerUpHandler = new WeakMap(), _PressedController_keyDownHandler = new WeakMap(), _PressedController_keyUpHandler = new WeakMap(), _PressedController_instances = new WeakSet(), _PressedController_handlePointerDown = function _PressedController_handlePointerDown(e) {
|
|
491
|
+
_PressedController_capture = new WeakMap(), _PressedController_callback = new WeakMap(), _PressedController_isPressedKey = new WeakMap(), _PressedController_pressedTargets = new WeakMap(), _PressedController_minPressedDuration = new WeakMap(), _PressedController_pointerDownHandler = new WeakMap(), _PressedController_pointerUpHandler = new WeakMap(), _PressedController_keyDownHandler = new WeakMap(), _PressedController_keyUpHandler = new WeakMap(), _PressedController_instances = new WeakSet(), _PressedController_handlePointerDown = function _PressedController_handlePointerDown(e) {
|
|
490
492
|
if (e.pointerType === "mouse" && e.button > 1)
|
|
491
493
|
return;
|
|
492
494
|
for (const target of e.composedPath()) {
|
|
493
495
|
if (target instanceof HTMLElement && this.isObserving(target)) {
|
|
494
|
-
__classPrivateFieldGet(this, _PressedController_pressedTargets, "f").
|
|
495
|
-
|
|
496
|
+
if (!__classPrivateFieldGet(this, _PressedController_pressedTargets, "f").has(target)) {
|
|
497
|
+
__classPrivateFieldGet(this, _PressedController_pressedTargets, "f").set(target, performance.now());
|
|
498
|
+
__classPrivateFieldGet(this, _PressedController_callback, "f").call(this, true, { x: e.x, y: e.y }, target);
|
|
499
|
+
}
|
|
496
500
|
break;
|
|
497
501
|
}
|
|
498
502
|
}
|
|
499
503
|
}, _PressedController_handlePointerUp = function _PressedController_handlePointerUp(e) {
|
|
500
504
|
if (e.pointerType === "mouse" && e.button > 1)
|
|
501
505
|
return;
|
|
502
|
-
|
|
503
|
-
|
|
506
|
+
const x = e.x;
|
|
507
|
+
const y = e.y;
|
|
508
|
+
for (const target of __classPrivateFieldGet(this, _PressedController_pressedTargets, "f").keys()) {
|
|
509
|
+
const remainingTime = __classPrivateFieldGet(this, _PressedController_minPressedDuration, "f") - (performance.now() - __classPrivateFieldGet(this, _PressedController_pressedTargets, "f").get(target));
|
|
510
|
+
if (remainingTime > 0) {
|
|
511
|
+
setTimeout(() => {
|
|
512
|
+
__classPrivateFieldGet(this, _PressedController_pressedTargets, "f").delete(target);
|
|
513
|
+
__classPrivateFieldGet(this, _PressedController_callback, "f").call(this, false, { x, y }, target);
|
|
514
|
+
}, remainingTime);
|
|
515
|
+
}
|
|
516
|
+
else {
|
|
517
|
+
__classPrivateFieldGet(this, _PressedController_pressedTargets, "f").delete(target);
|
|
518
|
+
__classPrivateFieldGet(this, _PressedController_callback, "f").call(this, false, { x, y }, target);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
504
521
|
}, _PressedController_handleKeyDown = function _PressedController_handleKeyDown(e) {
|
|
505
522
|
const target = e.target;
|
|
506
523
|
if (!__classPrivateFieldGet(this, _PressedController_pressedTargets, "f").has(target) && __classPrivateFieldGet(this, _PressedController_isPressedKey, "f")?.call(this, e.key)) {
|
|
507
524
|
if (e.key === " ") {
|
|
508
525
|
e.preventDefault();
|
|
509
526
|
}
|
|
510
|
-
__classPrivateFieldGet(this, _PressedController_pressedTargets, "f").
|
|
527
|
+
__classPrivateFieldGet(this, _PressedController_pressedTargets, "f").set(target, performance.now());
|
|
511
528
|
const bounds = target.getBoundingClientRect();
|
|
512
529
|
__classPrivateFieldGet(this, _PressedController_callback, "f").call(this, true, { x: bounds.x + bounds.width / 2, y: bounds.y + bounds.height / 2 }, target);
|
|
513
530
|
}
|
|
514
531
|
}, _PressedController_handleKeyUp = function _PressedController_handleKeyUp(e) {
|
|
515
532
|
const target = e.target;
|
|
516
533
|
if (__classPrivateFieldGet(this, _PressedController_pressedTargets, "f").has(target) && __classPrivateFieldGet(this, _PressedController_isPressedKey, "f")?.call(this, e.key)) {
|
|
517
|
-
__classPrivateFieldGet(this, _PressedController_pressedTargets, "f").
|
|
534
|
+
const remainingTime = __classPrivateFieldGet(this, _PressedController_minPressedDuration, "f") - (performance.now() - __classPrivateFieldGet(this, _PressedController_pressedTargets, "f").get(target));
|
|
518
535
|
const bounds = target.getBoundingClientRect();
|
|
519
|
-
|
|
536
|
+
if (remainingTime > 0) {
|
|
537
|
+
setTimeout(() => {
|
|
538
|
+
__classPrivateFieldGet(this, _PressedController_pressedTargets, "f").delete(target);
|
|
539
|
+
__classPrivateFieldGet(this, _PressedController_callback, "f").call(this, false, { x: bounds.x + bounds.width / 2, y: bounds.y + bounds.height / 2 }, target);
|
|
540
|
+
}, remainingTime);
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
__classPrivateFieldGet(this, _PressedController_pressedTargets, "f").delete(target);
|
|
544
|
+
__classPrivateFieldGet(this, _PressedController_callback, "f").call(this, false, { x: bounds.x + bounds.width / 2, y: bounds.y + bounds.height / 2 }, target);
|
|
545
|
+
}
|
|
520
546
|
}
|
|
521
547
|
};
|
|
522
548
|
|
|
@@ -787,10 +813,12 @@ const _internals = Symbol("_internals");
|
|
|
787
813
|
*/
|
|
788
814
|
function AttachInternals(base, formAssociated) {
|
|
789
815
|
class _AttachInternals extends base {
|
|
816
|
+
/** @internal */
|
|
790
817
|
get [internals]() {
|
|
791
818
|
return this[_internals] ?? (this[_internals] = this.attachInternals());
|
|
792
819
|
}
|
|
793
820
|
}
|
|
821
|
+
/** Indicates that this custom element participates in form submission, validation, and form state restoration. */
|
|
794
822
|
_AttachInternals.formAssociated = formAssociated;
|
|
795
823
|
return _AttachInternals;
|
|
796
824
|
}
|
|
@@ -858,8 +886,13 @@ function Checked(base) {
|
|
|
858
886
|
class _CheckedMixin extends base {
|
|
859
887
|
constructor() {
|
|
860
888
|
super(...arguments);
|
|
889
|
+
/**
|
|
890
|
+
* Whether the element is checked.
|
|
891
|
+
* @default false
|
|
892
|
+
*/
|
|
861
893
|
this.checked = false;
|
|
862
894
|
}
|
|
895
|
+
/** @inheritdoc */
|
|
863
896
|
update(changedProperties) {
|
|
864
897
|
super.update(changedProperties);
|
|
865
898
|
if (changedProperties.has("checked")) {
|
|
@@ -898,8 +931,13 @@ function CheckedIndeterminate(base) {
|
|
|
898
931
|
class _CheckedIndeterminateMixin extends Checked(base) {
|
|
899
932
|
constructor() {
|
|
900
933
|
super(...arguments);
|
|
934
|
+
/**
|
|
935
|
+
* Whether the element's checked state is indeterminate.
|
|
936
|
+
* @default false
|
|
937
|
+
*/
|
|
901
938
|
this.indeterminate = false;
|
|
902
939
|
}
|
|
940
|
+
/** @inheritdoc */
|
|
903
941
|
update(changedProperties) {
|
|
904
942
|
super.update(changedProperties);
|
|
905
943
|
if (changedProperties.has("indeterminate") && this.role && this.role !== "none" && this.role !== "presentation") {
|
|
@@ -931,8 +969,13 @@ function Selected(base) {
|
|
|
931
969
|
class _SelectedMixin extends base {
|
|
932
970
|
constructor() {
|
|
933
971
|
super(...arguments);
|
|
972
|
+
/**
|
|
973
|
+
* Whether the element is selected.
|
|
974
|
+
* @default false
|
|
975
|
+
*/
|
|
934
976
|
this.selected = false;
|
|
935
977
|
}
|
|
978
|
+
/** @inheritdoc */
|
|
936
979
|
update(changedProperties) {
|
|
937
980
|
super.update(changedProperties);
|
|
938
981
|
if (changedProperties.has("selected")) {
|
|
@@ -1003,26 +1046,33 @@ function Dirty(base) {
|
|
|
1003
1046
|
class _Dirty extends base {
|
|
1004
1047
|
constructor() {
|
|
1005
1048
|
super(...arguments);
|
|
1049
|
+
/** @private */
|
|
1006
1050
|
this[_a] = () => this.markAsDirty();
|
|
1007
1051
|
}
|
|
1052
|
+
/** Whether the user has modified the value of the element. */
|
|
1008
1053
|
get dirty() {
|
|
1009
1054
|
return this.classList.contains("-dirty");
|
|
1010
1055
|
}
|
|
1056
|
+
/** Whether the user has not modified the value of the element. */
|
|
1011
1057
|
get pristine() {
|
|
1012
1058
|
return !this.dirty;
|
|
1013
1059
|
}
|
|
1060
|
+
/** @inheritdoc */
|
|
1014
1061
|
connectedCallback() {
|
|
1015
1062
|
this.markAsPristine();
|
|
1016
1063
|
super.connectedCallback();
|
|
1017
1064
|
this.addEventListener("change", this[_eventHandler$2]);
|
|
1018
1065
|
}
|
|
1066
|
+
/** @inheritdoc */
|
|
1019
1067
|
disconnectedCallback() {
|
|
1020
1068
|
super.disconnectedCallback();
|
|
1021
1069
|
this.removeEventListener("change", this[_eventHandler$2]);
|
|
1022
1070
|
}
|
|
1071
|
+
/** Marks the element as pristine. */
|
|
1023
1072
|
markAsPristine() {
|
|
1024
1073
|
this.classList.toggle("-dirty", false);
|
|
1025
1074
|
}
|
|
1075
|
+
/** Marks the element as dirty. */
|
|
1026
1076
|
markAsDirty() {
|
|
1027
1077
|
this.classList.toggle("-dirty", true);
|
|
1028
1078
|
}
|
|
@@ -1051,26 +1101,33 @@ function Touched(base) {
|
|
|
1051
1101
|
class _Touched extends base {
|
|
1052
1102
|
constructor() {
|
|
1053
1103
|
super(...arguments);
|
|
1104
|
+
/** @private */
|
|
1054
1105
|
this[_a] = () => this.markAsTouched();
|
|
1055
1106
|
}
|
|
1107
|
+
/** Whether the user has interacted when the element. */
|
|
1056
1108
|
get touched() {
|
|
1057
1109
|
return this.classList.contains("-touched");
|
|
1058
1110
|
}
|
|
1111
|
+
/** Whether the user has not interacted when the element. */
|
|
1059
1112
|
get untouched() {
|
|
1060
1113
|
return !this.touched;
|
|
1061
1114
|
}
|
|
1115
|
+
/** @inheritdoc */
|
|
1062
1116
|
connectedCallback() {
|
|
1063
1117
|
this.markAsUntouched();
|
|
1064
1118
|
super.connectedCallback();
|
|
1065
1119
|
this.addEventListener("focusout", this[_eventHandler$1]);
|
|
1066
1120
|
}
|
|
1121
|
+
/** @inheritdoc */
|
|
1067
1122
|
disconnectedCallback() {
|
|
1068
1123
|
super.disconnectedCallback();
|
|
1069
1124
|
this.removeEventListener("focusout", this[_eventHandler$1]);
|
|
1070
1125
|
}
|
|
1126
|
+
/** Marks the element as touched. */
|
|
1071
1127
|
markAsTouched() {
|
|
1072
1128
|
this.classList.toggle("-touched", true);
|
|
1073
1129
|
}
|
|
1130
|
+
/** Marks the element as untouched. */
|
|
1074
1131
|
markAsUntouched() {
|
|
1075
1132
|
this.classList.toggle("-touched", false);
|
|
1076
1133
|
}
|
|
@@ -1728,8 +1785,13 @@ function Disabled(base, reflect = true) {
|
|
|
1728
1785
|
class _DisabledMixin extends base {
|
|
1729
1786
|
constructor() {
|
|
1730
1787
|
super(...arguments);
|
|
1788
|
+
/**
|
|
1789
|
+
* Whether the element is disabled.
|
|
1790
|
+
* @default false
|
|
1791
|
+
*/
|
|
1731
1792
|
this.disabled = false;
|
|
1732
1793
|
}
|
|
1794
|
+
/** @inheritdoc */
|
|
1733
1795
|
update(changedProperties) {
|
|
1734
1796
|
super.update(changedProperties);
|
|
1735
1797
|
if (changedProperties.has("disabled") && this.role && this.role !== "none" && this.role !== "presentation") {
|
|
@@ -1765,6 +1827,7 @@ function DisabledInteractive(base) {
|
|
|
1765
1827
|
class _DisabledInteractiveMixin extends base {
|
|
1766
1828
|
constructor() {
|
|
1767
1829
|
super(...arguments);
|
|
1830
|
+
/** @private */
|
|
1768
1831
|
this[_a] = (e) => {
|
|
1769
1832
|
if (this.disabledInteractive) {
|
|
1770
1833
|
// Only allow specific keys when disabled and interactive.
|
|
@@ -1775,16 +1838,23 @@ function DisabledInteractive(base) {
|
|
|
1775
1838
|
e.preventDefault();
|
|
1776
1839
|
}
|
|
1777
1840
|
};
|
|
1841
|
+
/**
|
|
1842
|
+
* Whether the element is disabled and interactive.
|
|
1843
|
+
* @default false
|
|
1844
|
+
*/
|
|
1778
1845
|
this.disabledInteractive = false;
|
|
1779
1846
|
}
|
|
1847
|
+
/** @inheritdoc */
|
|
1780
1848
|
connectedCallback() {
|
|
1781
1849
|
SUPPRESSED_EVENTS.forEach((x) => this.addEventListener(x, this[_suppressedEventHandler], true));
|
|
1782
1850
|
super.connectedCallback();
|
|
1783
1851
|
}
|
|
1852
|
+
/** @inheritdoc */
|
|
1784
1853
|
disconnectedCallback() {
|
|
1785
1854
|
SUPPRESSED_EVENTS.forEach((x) => this.removeEventListener(x, this[_suppressedEventHandler], true));
|
|
1786
1855
|
super.disconnectedCallback();
|
|
1787
1856
|
}
|
|
1857
|
+
/** @inheritdoc */
|
|
1788
1858
|
update(changedProperties) {
|
|
1789
1859
|
super.update(changedProperties);
|
|
1790
1860
|
if ((changedProperties.has("disabled") || changedProperties.has("disabledInteractive")) &&
|
|
@@ -1824,29 +1894,35 @@ function Labelled(base) {
|
|
|
1824
1894
|
class _Labelled extends base {
|
|
1825
1895
|
constructor() {
|
|
1826
1896
|
super(...arguments);
|
|
1897
|
+
/** @private */
|
|
1827
1898
|
this[_a] = (e) => {
|
|
1828
1899
|
if (!e.defaultPrevented) {
|
|
1829
1900
|
this[_updateLabels]();
|
|
1830
1901
|
}
|
|
1831
1902
|
};
|
|
1832
1903
|
}
|
|
1904
|
+
/** The label elements that the element is associated with. */
|
|
1833
1905
|
get labels() {
|
|
1834
1906
|
return this[internals].labels;
|
|
1835
1907
|
}
|
|
1908
|
+
/** @inheritdoc */
|
|
1836
1909
|
connectedCallback() {
|
|
1837
1910
|
super.connectedCallback();
|
|
1838
1911
|
this.addEventListener("focusout", this[_eventHandler]);
|
|
1839
1912
|
this.addEventListener("change", this[_eventHandler]);
|
|
1840
1913
|
}
|
|
1914
|
+
/** @inheritdoc */
|
|
1841
1915
|
disconnectedCallback() {
|
|
1842
1916
|
super.disconnectedCallback();
|
|
1843
1917
|
this.removeEventListener("focusout", this[_eventHandler]);
|
|
1844
1918
|
this.removeEventListener("change", this[_eventHandler]);
|
|
1845
1919
|
}
|
|
1920
|
+
/** @inheritdoc */
|
|
1846
1921
|
update(changedProperties) {
|
|
1847
1922
|
super.update(changedProperties);
|
|
1848
1923
|
this[_updateLabels]();
|
|
1849
1924
|
}
|
|
1925
|
+
/** @private */
|
|
1850
1926
|
[(_a = _eventHandler, _updateLabels)]() {
|
|
1851
1927
|
const focusable = this.hasAttribute("tabindex");
|
|
1852
1928
|
const disabled = (isDisabledMixin(this) && this.disabled) || (isDisabledInteractiveMixin(this) && this.disabledInteractive);
|
|
@@ -1861,6 +1937,7 @@ function Labelled(base) {
|
|
|
1861
1937
|
}
|
|
1862
1938
|
}
|
|
1863
1939
|
}
|
|
1940
|
+
/** Indicates that this custom element participates in form submission, validation, and form state restoration. */
|
|
1864
1941
|
_Labelled.formAssociated = true;
|
|
1865
1942
|
return _Labelled;
|
|
1866
1943
|
}
|
|
@@ -1893,21 +1970,26 @@ function FormAssociated(base) {
|
|
|
1893
1970
|
class _FormAssociatedMixin extends base {
|
|
1894
1971
|
constructor() {
|
|
1895
1972
|
super(...arguments);
|
|
1896
|
-
this[_a] = false;
|
|
1897
|
-
this[_b] = false;
|
|
1973
|
+
/** @private */ this[_a] = false;
|
|
1974
|
+
/** @private */ this[_b] = false;
|
|
1898
1975
|
}
|
|
1976
|
+
/** The `HTMLFormElement` associated with this element. */
|
|
1899
1977
|
get form() {
|
|
1900
1978
|
return this[internals].form;
|
|
1901
1979
|
}
|
|
1980
|
+
/** @inheritdoc */
|
|
1902
1981
|
get labels() {
|
|
1903
1982
|
return this[internals].labels;
|
|
1904
1983
|
}
|
|
1984
|
+
/** @internal */
|
|
1905
1985
|
get [(_a = _defaultIndeterminate, _b = _formDisabled, formValue)]() {
|
|
1906
1986
|
return null;
|
|
1907
1987
|
}
|
|
1988
|
+
/** @internal */
|
|
1908
1989
|
get [defaultValue]() {
|
|
1909
1990
|
return this[_defaultValue];
|
|
1910
1991
|
}
|
|
1992
|
+
/** The name that identifies the element when submitting the associated form. */
|
|
1911
1993
|
get name() {
|
|
1912
1994
|
return this.getAttribute("name") ?? "";
|
|
1913
1995
|
}
|
|
@@ -1922,12 +2004,17 @@ function FormAssociated(base) {
|
|
|
1922
2004
|
// Disabled attributes should not be reflected for form associated elements due to
|
|
1923
2005
|
// how the formDisabledCallback overrides an element's disabled state.
|
|
1924
2006
|
// See https://github.com/whatwg/html/issues/8365
|
|
2007
|
+
/**
|
|
2008
|
+
* Whether the element is disabled.
|
|
2009
|
+
* @default false
|
|
2010
|
+
*/
|
|
1925
2011
|
get disabled() {
|
|
1926
2012
|
return super.disabled || this[_formDisabled];
|
|
1927
2013
|
}
|
|
1928
2014
|
set disabled(value) {
|
|
1929
2015
|
super.disabled = value;
|
|
1930
2016
|
}
|
|
2017
|
+
/** @inheritdoc */
|
|
1931
2018
|
connectedCallback() {
|
|
1932
2019
|
super.connectedCallback();
|
|
1933
2020
|
if (isCheckedMixin(this)) {
|
|
@@ -1940,10 +2027,12 @@ function FormAssociated(base) {
|
|
|
1940
2027
|
this[_defaultValue] = this.value;
|
|
1941
2028
|
}
|
|
1942
2029
|
}
|
|
2030
|
+
/** @inheritdoc */
|
|
1943
2031
|
requestUpdate(name, oldValue, options) {
|
|
1944
2032
|
super.requestUpdate(name, oldValue, options);
|
|
1945
2033
|
this[internals].setFormValue(this[formValue]);
|
|
1946
2034
|
}
|
|
2035
|
+
/** Called when the element is disabled or enabled via its form association. */
|
|
1947
2036
|
formDisabledCallback(disabled) {
|
|
1948
2037
|
const wasDisabled = this.disabled;
|
|
1949
2038
|
this[_formDisabled] = disabled;
|
|
@@ -1951,6 +2040,7 @@ function FormAssociated(base) {
|
|
|
1951
2040
|
this.requestUpdate("disabled", wasDisabled);
|
|
1952
2041
|
}
|
|
1953
2042
|
}
|
|
2043
|
+
/** Called when the associated form is reset. */
|
|
1954
2044
|
formResetCallback() {
|
|
1955
2045
|
if (isCheckedMixin(this)) {
|
|
1956
2046
|
this.checked = this[_defaultValue] === true;
|
|
@@ -1969,6 +2059,7 @@ function FormAssociated(base) {
|
|
|
1969
2059
|
}
|
|
1970
2060
|
}
|
|
1971
2061
|
}
|
|
2062
|
+
/** Indicates that this custom element participates in form submission, validation, and form state restoration. */
|
|
1972
2063
|
_FormAssociatedMixin.formAssociated = true;
|
|
1973
2064
|
__decorate([
|
|
1974
2065
|
n$1({ noAccessor: true })
|
|
@@ -2004,20 +2095,28 @@ function ConstraintValidation(base) {
|
|
|
2004
2095
|
super(...arguments);
|
|
2005
2096
|
__ConstraintValidation_instances.add(this);
|
|
2006
2097
|
}
|
|
2098
|
+
/** Whether the element is a submittable element that is a candidate for constraint validation. */
|
|
2007
2099
|
get willValidate() {
|
|
2008
2100
|
return this[internals].willValidate;
|
|
2009
2101
|
}
|
|
2102
|
+
/** The validity state of the element. */
|
|
2010
2103
|
get validity() {
|
|
2011
2104
|
this[_updateValidity]();
|
|
2012
2105
|
return this[internals].validity;
|
|
2013
2106
|
}
|
|
2107
|
+
/** The error message that would be displayed if the user submits the form, or an empty string if no error message. */
|
|
2014
2108
|
get validationMessage() {
|
|
2015
2109
|
this[_updateValidity]();
|
|
2016
2110
|
return this[internals].validationMessage;
|
|
2017
2111
|
}
|
|
2112
|
+
/** @internal */
|
|
2018
2113
|
[(__ConstraintValidation_instances = new WeakSet(), validate)]() {
|
|
2019
2114
|
return this[_validityMessage] ? { customError: true } : undefined;
|
|
2020
2115
|
}
|
|
2116
|
+
/**
|
|
2117
|
+
* Returns `true` if the element has no validity problems; otherwise, returns `false`, fires
|
|
2118
|
+
* an invalid event, and (if the event isn't canceled) reports the problem to the user.
|
|
2119
|
+
*/
|
|
2021
2120
|
reportValidity() {
|
|
2022
2121
|
if (isTouchedMixin(this)) {
|
|
2023
2122
|
this.markAsTouched();
|
|
@@ -2025,10 +2124,18 @@ function ConstraintValidation(base) {
|
|
|
2025
2124
|
this[_updateValidity]();
|
|
2026
2125
|
return this[internals].reportValidity();
|
|
2027
2126
|
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Returns `true` if the element has no validity problems; otherwise,
|
|
2129
|
+
* returns `false`, fires an invalid event.
|
|
2130
|
+
*/
|
|
2028
2131
|
checkValidity() {
|
|
2029
2132
|
this[_updateValidity]();
|
|
2030
2133
|
return this[internals].checkValidity();
|
|
2031
2134
|
}
|
|
2135
|
+
/**
|
|
2136
|
+
* Sets a custom validity message for the element.
|
|
2137
|
+
* @param error The message to use for validity errors.
|
|
2138
|
+
*/
|
|
2032
2139
|
setCustomValidity(error) {
|
|
2033
2140
|
if (error) {
|
|
2034
2141
|
this[_validityMessage] = error;
|
|
@@ -2038,14 +2145,17 @@ function ConstraintValidation(base) {
|
|
|
2038
2145
|
}
|
|
2039
2146
|
this[_updateValidity]();
|
|
2040
2147
|
}
|
|
2148
|
+
/** @inheritdoc */
|
|
2041
2149
|
requestUpdate(name, oldValue, options) {
|
|
2042
2150
|
super.requestUpdate(name, oldValue, options);
|
|
2043
2151
|
this[_updateValidity]();
|
|
2044
2152
|
}
|
|
2153
|
+
/** @inheritdoc */
|
|
2045
2154
|
firstUpdated(_changedProperties) {
|
|
2046
2155
|
super.firstUpdated(_changedProperties);
|
|
2047
2156
|
this[_updateValidity]();
|
|
2048
2157
|
}
|
|
2158
|
+
/** @private */
|
|
2049
2159
|
[_updateValidity]() {
|
|
2050
2160
|
if (isServer || !this.isConnected)
|
|
2051
2161
|
return;
|
|
@@ -2120,6 +2230,7 @@ function ConstraintValidation(base) {
|
|
|
2120
2230
|
*/
|
|
2121
2231
|
function EventAttribute(base, ...types) {
|
|
2122
2232
|
class _EventAttribute extends base {
|
|
2233
|
+
/** @inheritdoc */
|
|
2123
2234
|
dispatchEvent(event) {
|
|
2124
2235
|
if (types.includes(event.type)) {
|
|
2125
2236
|
const eventAttribute = this.getAttribute(`on${event.type}`);
|
|
@@ -2145,6 +2256,7 @@ function Focusable(base) {
|
|
|
2145
2256
|
class _FocusableMixin extends base {
|
|
2146
2257
|
constructor() {
|
|
2147
2258
|
super(...arguments);
|
|
2259
|
+
/** @private */
|
|
2148
2260
|
this[_a] = 0;
|
|
2149
2261
|
}
|
|
2150
2262
|
/** @inheritdoc */
|
|
@@ -2152,12 +2264,14 @@ function Focusable(base) {
|
|
|
2152
2264
|
this[_tabindex] = Number.parseInt(this.getAttribute("tabindex") ?? "0");
|
|
2153
2265
|
super.connectedCallback();
|
|
2154
2266
|
}
|
|
2267
|
+
/** @inheritdoc */
|
|
2155
2268
|
firstUpdated(_changedProperties) {
|
|
2156
2269
|
super.firstUpdated(_changedProperties);
|
|
2157
2270
|
if (!this.hasAttribute("tabindex") && !_changedProperties.has("disabled")) {
|
|
2158
2271
|
this.setAttribute("tabindex", `${this[_tabindex]}`);
|
|
2159
2272
|
}
|
|
2160
2273
|
}
|
|
2274
|
+
/** @inheritdoc */
|
|
2161
2275
|
update(changedProperties) {
|
|
2162
2276
|
super.update(changedProperties);
|
|
2163
2277
|
if (changedProperties.has("disabled")) {
|
|
@@ -2200,7 +2314,12 @@ function FormSubmitter(base) {
|
|
|
2200
2314
|
class _FormSubmitterMixin extends base {
|
|
2201
2315
|
constructor() {
|
|
2202
2316
|
super(...arguments);
|
|
2317
|
+
/**
|
|
2318
|
+
* The type of the element.
|
|
2319
|
+
* @default "button"
|
|
2320
|
+
*/
|
|
2203
2321
|
this.type = "button";
|
|
2322
|
+
/** @private */
|
|
2204
2323
|
this[_a] = async (e) => {
|
|
2205
2324
|
if ((isDisabledMixin(this) && this.disabled) || (isDisabledInteractiveMixin(this) && this.disabledInteractive)) {
|
|
2206
2325
|
return;
|
|
@@ -2229,6 +2348,10 @@ function FormSubmitter(base) {
|
|
|
2229
2348
|
}
|
|
2230
2349
|
};
|
|
2231
2350
|
}
|
|
2351
|
+
/**
|
|
2352
|
+
* The name of the element, submitted as a pair with the element's `value`
|
|
2353
|
+
* as part of form data, when the element is used to submit a form.
|
|
2354
|
+
*/
|
|
2232
2355
|
get name() {
|
|
2233
2356
|
return this.getAttribute("name") ?? "";
|
|
2234
2357
|
}
|
|
@@ -2240,6 +2363,7 @@ function FormSubmitter(base) {
|
|
|
2240
2363
|
this.removeAttribute("name");
|
|
2241
2364
|
}
|
|
2242
2365
|
}
|
|
2366
|
+
/** The value associated with the element's name when it's submitted with form data. */
|
|
2243
2367
|
get value() {
|
|
2244
2368
|
return this.getAttribute("value");
|
|
2245
2369
|
}
|
|
@@ -2251,10 +2375,12 @@ function FormSubmitter(base) {
|
|
|
2251
2375
|
this.removeAttribute("value");
|
|
2252
2376
|
}
|
|
2253
2377
|
}
|
|
2378
|
+
/** @inheritdoc */
|
|
2254
2379
|
connectedCallback() {
|
|
2255
2380
|
super.connectedCallback();
|
|
2256
2381
|
this.addEventListener("click", this[_clickHandler$1]);
|
|
2257
2382
|
}
|
|
2383
|
+
/** @inheritdoc */
|
|
2258
2384
|
disconnectedCallback() {
|
|
2259
2385
|
super.disconnectedCallback();
|
|
2260
2386
|
this.removeEventListener("click", this[_clickHandler$1]);
|
|
@@ -2296,15 +2422,19 @@ function HtmlFor(base) {
|
|
|
2296
2422
|
super(...arguments);
|
|
2297
2423
|
/** @private */ this[_a] = null;
|
|
2298
2424
|
/** @private */ this[_b] = false;
|
|
2425
|
+
/** The identifier of the interactive control to which this element is attached. */
|
|
2299
2426
|
this.htmlFor = null;
|
|
2300
2427
|
}
|
|
2428
|
+
/** The interactive element to which this element is attached. */
|
|
2301
2429
|
get control() {
|
|
2302
2430
|
return this[_control];
|
|
2303
2431
|
}
|
|
2432
|
+
/** @inheritdoc */
|
|
2304
2433
|
firstUpdated(_changedProperties) {
|
|
2305
2434
|
super.firstUpdated(_changedProperties);
|
|
2306
2435
|
this[_firstUpdated] = true;
|
|
2307
2436
|
}
|
|
2437
|
+
/** @inheritdoc */
|
|
2308
2438
|
update(changedProperties) {
|
|
2309
2439
|
super.update(changedProperties);
|
|
2310
2440
|
if (changedProperties.has("htmlFor")) {
|
|
@@ -2324,9 +2454,14 @@ function HtmlFor(base) {
|
|
|
2324
2454
|
}
|
|
2325
2455
|
}
|
|
2326
2456
|
}
|
|
2457
|
+
/**
|
|
2458
|
+
* Attaches the element to an interactive control.
|
|
2459
|
+
* @param {HTMLElement} control The element that controls the attachable element.
|
|
2460
|
+
*/
|
|
2327
2461
|
attach(control) {
|
|
2328
2462
|
this[_control] = control;
|
|
2329
2463
|
}
|
|
2464
|
+
/** Detaches the element from its current interactive control. */
|
|
2330
2465
|
detach() {
|
|
2331
2466
|
this[_control] = null;
|
|
2332
2467
|
}
|
|
@@ -2351,12 +2486,15 @@ function KeyboardClick(base, allowEnter = true) {
|
|
|
2351
2486
|
constructor() {
|
|
2352
2487
|
super(...arguments);
|
|
2353
2488
|
__KeyboardClickMixin_instances.add(this);
|
|
2489
|
+
/** @private */
|
|
2354
2490
|
__KeyboardClickMixin_keyUpHandler.set(this, (e) => __classPrivateFieldGet(this, __KeyboardClickMixin_instances, "m", __KeyboardClickMixin_handleKeyUp).call(this, e));
|
|
2355
2491
|
}
|
|
2492
|
+
/** @inheritdoc */
|
|
2356
2493
|
connectedCallback() {
|
|
2357
2494
|
super.connectedCallback();
|
|
2358
2495
|
this.addEventListener("keyup", __classPrivateFieldGet(this, __KeyboardClickMixin_keyUpHandler, "f"));
|
|
2359
2496
|
}
|
|
2497
|
+
/** @inheritdoc */
|
|
2360
2498
|
disconnectedCallback() {
|
|
2361
2499
|
super.disconnectedCallback();
|
|
2362
2500
|
this.removeEventListener("keyup", __classPrivateFieldGet(this, __KeyboardClickMixin_keyUpHandler, "f"));
|
|
@@ -2441,10 +2579,27 @@ function LinkButton(base) {
|
|
|
2441
2579
|
link.click();
|
|
2442
2580
|
}
|
|
2443
2581
|
};
|
|
2582
|
+
/**
|
|
2583
|
+
* The URL to which the link button points.
|
|
2584
|
+
* @default ""
|
|
2585
|
+
*/
|
|
2444
2586
|
this.href = "";
|
|
2587
|
+
/**
|
|
2588
|
+
* The target of the link button.
|
|
2589
|
+
* @default ""
|
|
2590
|
+
*/
|
|
2445
2591
|
this.target = "";
|
|
2592
|
+
/**
|
|
2593
|
+
* The relationship between the `target` of the link button and the document.
|
|
2594
|
+
* @default ""
|
|
2595
|
+
*/
|
|
2446
2596
|
this.rel = "";
|
|
2447
2597
|
}
|
|
2598
|
+
/**
|
|
2599
|
+
* A value indicating whether the `target` of the link button will be downloaded,
|
|
2600
|
+
* optionally specifying the new name of the file.
|
|
2601
|
+
* @default null
|
|
2602
|
+
*/
|
|
2448
2603
|
get download() {
|
|
2449
2604
|
return this.getAttribute("download");
|
|
2450
2605
|
}
|
|
@@ -2460,6 +2615,7 @@ function LinkButton(base) {
|
|
|
2460
2615
|
this.requestUpdate("download", old);
|
|
2461
2616
|
}
|
|
2462
2617
|
}
|
|
2618
|
+
/** @inheritdoc */
|
|
2463
2619
|
connectedCallback() {
|
|
2464
2620
|
super.connectedCallback();
|
|
2465
2621
|
this.addEventListener("click", this[_clickHandler]);
|
|
@@ -2467,10 +2623,12 @@ function LinkButton(base) {
|
|
|
2467
2623
|
this.role = "link";
|
|
2468
2624
|
}
|
|
2469
2625
|
}
|
|
2626
|
+
/** @inheritdoc */
|
|
2470
2627
|
disconnectedCallback() {
|
|
2471
2628
|
super.disconnectedCallback();
|
|
2472
2629
|
this.removeEventListener("click", this[_clickHandler]);
|
|
2473
2630
|
}
|
|
2631
|
+
/** @internal */
|
|
2474
2632
|
[(__LinkButtonMixin_instances = new WeakSet(), _a = _clickHandler, renderPseudoLink)]() {
|
|
2475
2633
|
const disabled = isDisabledMixin(this) && this.disabled;
|
|
2476
2634
|
const disabledInteractive = isDisabledInteractiveMixin(this) && this.disabledInteractive;
|
|
@@ -2542,8 +2700,13 @@ function ReadOnly(base, reflect = true) {
|
|
|
2542
2700
|
class _ReadOnlyMixin extends base {
|
|
2543
2701
|
constructor() {
|
|
2544
2702
|
super(...arguments);
|
|
2703
|
+
/**
|
|
2704
|
+
* A value indicating whether the element is read-only.
|
|
2705
|
+
* @default false
|
|
2706
|
+
*/
|
|
2545
2707
|
this.readOnly = false;
|
|
2546
2708
|
}
|
|
2709
|
+
/** @inheritdoc */
|
|
2547
2710
|
update(changedProperties) {
|
|
2548
2711
|
super.update(changedProperties);
|
|
2549
2712
|
if (changedProperties.has("readOnly")) {
|
|
@@ -2575,11 +2738,17 @@ function Required(base) {
|
|
|
2575
2738
|
class _RequiredMixin extends base {
|
|
2576
2739
|
constructor() {
|
|
2577
2740
|
super(...arguments);
|
|
2741
|
+
/**
|
|
2742
|
+
* Whether a value is required for the element.
|
|
2743
|
+
* @default false
|
|
2744
|
+
*/
|
|
2578
2745
|
this.required = false;
|
|
2579
2746
|
}
|
|
2747
|
+
/** Whether a value is not required for the element. */
|
|
2580
2748
|
get optional() {
|
|
2581
2749
|
return !this.required;
|
|
2582
2750
|
}
|
|
2751
|
+
/** @inheritdoc */
|
|
2583
2752
|
update(changedProperties) {
|
|
2584
2753
|
super.update(changedProperties);
|
|
2585
2754
|
if (changedProperties.has("required")) {
|
|
@@ -2609,6 +2778,7 @@ function isRequiredConstraintValidationMixin(value) {
|
|
|
2609
2778
|
*/
|
|
2610
2779
|
function RequiredConstraintValidation(base) {
|
|
2611
2780
|
class _RequiredConstraintValidation extends base {
|
|
2781
|
+
/** @internal */
|
|
2612
2782
|
[validate]() {
|
|
2613
2783
|
const validity = super[validate]();
|
|
2614
2784
|
if (!validity && this.required) {
|
|
@@ -2635,6 +2805,7 @@ function RequiredConstraintValidation(base) {
|
|
|
2635
2805
|
*/
|
|
2636
2806
|
function Role(base, role) {
|
|
2637
2807
|
class _RoleMixin extends base {
|
|
2808
|
+
/** @inheritdoc */
|
|
2638
2809
|
connectedCallback() {
|
|
2639
2810
|
this.role = this.role || role;
|
|
2640
2811
|
super.connectedCallback();
|
|
@@ -2661,8 +2832,13 @@ function Vertical(base) {
|
|
|
2661
2832
|
class _VerticalMixin extends base {
|
|
2662
2833
|
constructor() {
|
|
2663
2834
|
super(...arguments);
|
|
2835
|
+
/**
|
|
2836
|
+
* Whether the element is oriented vertically.
|
|
2837
|
+
* @default false
|
|
2838
|
+
*/
|
|
2664
2839
|
this.vertical = false;
|
|
2665
2840
|
}
|
|
2841
|
+
/** @inheritdoc */
|
|
2666
2842
|
update(changedProperties) {
|
|
2667
2843
|
super.update(changedProperties);
|
|
2668
2844
|
if (changedProperties.has("vertical")) {
|
|
@@ -2740,13 +2916,13 @@ function prefersReducedMotion() {
|
|
|
2740
2916
|
* If needed, scrolls an element into view within a given scroll container.
|
|
2741
2917
|
* @param {HTMLElement} element The element to scroll into view.
|
|
2742
2918
|
* @param {HTMLElement} scrollContainer The scrollable container.
|
|
2743
|
-
* @param {
|
|
2919
|
+
* @param {ScrollIntoViewOptions} [options=undefined] Options used to scroll into view.
|
|
2744
2920
|
*/
|
|
2745
|
-
function scrollIntoViewIfNeeded(element, scrollContainer,
|
|
2746
|
-
const
|
|
2747
|
-
const
|
|
2748
|
-
if (
|
|
2749
|
-
element.scrollIntoView(
|
|
2921
|
+
function scrollIntoViewIfNeeded(element, scrollContainer, options) {
|
|
2922
|
+
const containerBounds = scrollContainer.getBoundingClientRect();
|
|
2923
|
+
const elementBounds = element.getBoundingClientRect();
|
|
2924
|
+
if (elementBounds.top < containerBounds.top || elementBounds.bottom > containerBounds.bottom) {
|
|
2925
|
+
element.scrollIntoView(options);
|
|
2750
2926
|
}
|
|
2751
2927
|
}
|
|
2752
2928
|
|
|
@@ -2775,7 +2951,7 @@ var _M3eCollapsibleElement_instances, _M3eCollapsibleElement_slotChanged, _M3eCo
|
|
|
2775
2951
|
*
|
|
2776
2952
|
* @cssprop --m3e-collapsible-animation-duration - The duration of the expand / collapse animation.
|
|
2777
2953
|
*/
|
|
2778
|
-
let M3eCollapsibleElement = class M3eCollapsibleElement extends EventAttribute(
|
|
2954
|
+
let M3eCollapsibleElement = class M3eCollapsibleElement extends EventAttribute(LitElement, "opening", "opened", "closing", "closed") {
|
|
2779
2955
|
constructor() {
|
|
2780
2956
|
super(...arguments);
|
|
2781
2957
|
_M3eCollapsibleElement_instances.add(this);
|
|
@@ -2930,7 +3106,6 @@ const ElevationToken = {
|
|
|
2930
3106
|
|
|
2931
3107
|
var _M3eElevationElement_instances, _M3eElevationElement_hoverController, _M3eElevationElement_focusController, _M3eElevationElement_pressedController, _M3eElevationElement_handleHoverChange, _M3eElevationElement_handleFocusChange, _M3eElevationElement_handlePressedChange;
|
|
2932
3108
|
/**
|
|
2933
|
-
* @summary
|
|
2934
3109
|
* Visually depicts elevation using a shadow.
|
|
2935
3110
|
*
|
|
2936
3111
|
* @description
|
|
@@ -3184,7 +3359,6 @@ const FocusRingToken = {
|
|
|
3184
3359
|
|
|
3185
3360
|
var _M3eFocusRingElement_instances, _M3eFocusRingElement_focusController, _M3eFocusRingElement_handleFocusChange;
|
|
3186
3361
|
/**
|
|
3187
|
-
* @summary
|
|
3188
3362
|
* A focus ring used to depict a strong focus indicator.
|
|
3189
3363
|
*
|
|
3190
3364
|
* @description
|
|
@@ -3372,7 +3546,6 @@ M3eFocusRingElement = __decorate([
|
|
|
3372
3546
|
], M3eFocusRingElement);
|
|
3373
3547
|
|
|
3374
3548
|
/**
|
|
3375
|
-
* @summary
|
|
3376
3549
|
* An element which looks like a checkbox.
|
|
3377
3550
|
*
|
|
3378
3551
|
* @description
|
|
@@ -3477,7 +3650,6 @@ M3ePseudoCheckboxElement = __decorate([
|
|
|
3477
3650
|
], M3ePseudoCheckboxElement);
|
|
3478
3651
|
|
|
3479
3652
|
/**
|
|
3480
|
-
* @summary
|
|
3481
3653
|
* An element which looks like a radio button.
|
|
3482
3654
|
*
|
|
3483
3655
|
* @description
|
|
@@ -3562,7 +3734,6 @@ const RippleToken = {
|
|
|
3562
3734
|
|
|
3563
3735
|
var _M3eRippleElement_instances, _M3eRippleElement_ripple, _M3eRippleElement_pressedController, _M3eRippleElement_destroyRipple, _M3eRippleElement_handleAnimationEnd, _M3eRippleElement_handlePressedChange;
|
|
3564
3736
|
/**
|
|
3565
|
-
* @summary
|
|
3566
3737
|
* Connects user input to screen reactions using ripples.
|
|
3567
3738
|
*
|
|
3568
3739
|
* @description
|
|
@@ -3611,6 +3782,7 @@ let M3eRippleElement = class M3eRippleElement extends HtmlFor(Role(LitElement, "
|
|
|
3611
3782
|
/** @private */ _M3eRippleElement_ripple.set(this, null);
|
|
3612
3783
|
/** @private */ _M3eRippleElement_pressedController.set(this, new PressedController(this, {
|
|
3613
3784
|
target: null,
|
|
3785
|
+
minPressedDuration: 150,
|
|
3614
3786
|
isPressedKey: (key) => key === " " || (!this.disableEnter && key === "Enter"),
|
|
3615
3787
|
callback: (pressed, { x, y }) => __classPrivateFieldGet(this, _M3eRippleElement_instances, "m", _M3eRippleElement_handlePressedChange).call(this, pressed, x, y),
|
|
3616
3788
|
}));
|
|
@@ -3837,7 +4009,6 @@ M3eRippleElement = __decorate([
|
|
|
3837
4009
|
|
|
3838
4010
|
var _M3eScrollContainerElement_scrollHandler;
|
|
3839
4011
|
/**
|
|
3840
|
-
* @summary
|
|
3841
4012
|
* A vertically oriented content container which presents dividers above and below content when scrolled.
|
|
3842
4013
|
*
|
|
3843
4014
|
* @description
|
|
@@ -3867,7 +4038,7 @@ var _M3eScrollContainerElement_scrollHandler;
|
|
|
3867
4038
|
* @cssprop --m3e-focus-ring-factor - Animation factor for focus ring thickness.
|
|
3868
4039
|
* @cssprop --m3e-focus-ring-duration - Duration of the focus ring animation.
|
|
3869
4040
|
*/
|
|
3870
|
-
let M3eScrollContainerElement = class M3eScrollContainerElement extends
|
|
4041
|
+
let M3eScrollContainerElement = class M3eScrollContainerElement extends LitElement {
|
|
3871
4042
|
constructor() {
|
|
3872
4043
|
super(...arguments);
|
|
3873
4044
|
/** @private */ _M3eScrollContainerElement_scrollHandler.set(this, () => this._updateScroll());
|
|
@@ -4000,7 +4171,7 @@ var _M3eSlide_instances, _M3eSlide_updateItems;
|
|
|
4000
4171
|
*
|
|
4001
4172
|
* @cssprop --m3e-slide-animation-duration - The duration of transitions between slotted items.
|
|
4002
4173
|
*/
|
|
4003
|
-
let M3eSlide = class M3eSlide extends
|
|
4174
|
+
let M3eSlide = class M3eSlide extends LitElement {
|
|
4004
4175
|
constructor() {
|
|
4005
4176
|
super(...arguments);
|
|
4006
4177
|
_M3eSlide_instances.add(this);
|
|
@@ -4110,7 +4281,6 @@ const StateLayerToken = {
|
|
|
4110
4281
|
|
|
4111
4282
|
var _M3eStateLayerElement_instances, _M3eStateLayerElement_hoverController, _M3eStateLayerElement_focusController, _M3eStateLayerElement_handleHoverChange, _M3eStateLayerElement_handleFocusChange;
|
|
4112
4283
|
/**
|
|
4113
|
-
* @summary
|
|
4114
4284
|
* Provides focus and hover state layer treatment for an interactive element.
|
|
4115
4285
|
*
|
|
4116
4286
|
* @description
|
|
@@ -4286,7 +4456,6 @@ M3eStateLayerElement = __decorate([
|
|
|
4286
4456
|
], M3eStateLayerElement);
|
|
4287
4457
|
|
|
4288
4458
|
/**
|
|
4289
|
-
* @summary
|
|
4290
4459
|
* An inline container which presents an ellipsis when content overflows.
|
|
4291
4460
|
*
|
|
4292
4461
|
* @description
|