@m3e/core 1.0.0-rc.1
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/NOTICE.md +8 -0
- package/README.md +59 -0
- package/cem.config.mjs +16 -0
- package/demo/index.html +58 -0
- package/dist/a11y.js +1431 -0
- package/dist/a11y.js.map +1 -0
- package/dist/a11y.min.js +87 -0
- package/dist/a11y.min.js.map +1 -0
- package/dist/anchoring.js +1748 -0
- package/dist/anchoring.js.map +1 -0
- package/dist/anchoring.min.js +7 -0
- package/dist/anchoring.min.js.map +1 -0
- package/dist/bidi.js +106 -0
- package/dist/bidi.js.map +1 -0
- package/dist/bidi.min.js +16 -0
- package/dist/bidi.min.js.map +1 -0
- package/dist/css-custom-data.json +257 -0
- package/dist/custom-elements.json +13504 -0
- package/dist/html-custom-data.json +199 -0
- package/dist/index.js +4342 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +520 -0
- package/dist/index.min.js.map +1 -0
- package/dist/layout.js +64 -0
- package/dist/layout.js.map +1 -0
- package/dist/layout.min.js +15 -0
- package/dist/layout.min.js.map +1 -0
- package/dist/platform.js +56 -0
- package/dist/platform.js.map +1 -0
- package/dist/platform.min.js +15 -0
- package/dist/platform.min.js.map +1 -0
- package/dist/src/a11y/AriaDescriber.d.ts +31 -0
- package/dist/src/a11y/AriaDescriber.d.ts.map +1 -0
- package/dist/src/a11y/FocusTrapElement.d.ts +25 -0
- package/dist/src/a11y/FocusTrapElement.d.ts.map +1 -0
- package/dist/src/a11y/InteractivityChecker.d.ts +22 -0
- package/dist/src/a11y/InteractivityChecker.d.ts.map +1 -0
- package/dist/src/a11y/LiveAnnouncer.d.ts +56 -0
- package/dist/src/a11y/LiveAnnouncer.d.ts.map +1 -0
- package/dist/src/a11y/aria-reference.d.ts +30 -0
- package/dist/src/a11y/aria-reference.d.ts.map +1 -0
- package/dist/src/a11y/index.d.ts +8 -0
- package/dist/src/a11y/index.d.ts.map +1 -0
- package/dist/src/a11y/keycodes/KeyCode.d.ts +118 -0
- package/dist/src/a11y/keycodes/KeyCode.d.ts.map +1 -0
- package/dist/src/a11y/keycodes/ModifierKeys.d.ts +5 -0
- package/dist/src/a11y/keycodes/ModifierKeys.d.ts.map +1 -0
- package/dist/src/a11y/keycodes/getKeyCode.d.ts +7 -0
- package/dist/src/a11y/keycodes/getKeyCode.d.ts.map +1 -0
- package/dist/src/a11y/keycodes/hasModifierKey.d.ts +9 -0
- package/dist/src/a11y/keycodes/hasModifierKey.d.ts.map +1 -0
- package/dist/src/a11y/keycodes/index.d.ts +6 -0
- package/dist/src/a11y/keycodes/index.d.ts.map +1 -0
- package/dist/src/a11y/keycodes/isModifierAllowed.d.ts +9 -0
- package/dist/src/a11y/keycodes/isModifierAllowed.d.ts.map +1 -0
- package/dist/src/a11y/list-key/FocusKeyManager.d.ts +17 -0
- package/dist/src/a11y/list-key/FocusKeyManager.d.ts.map +1 -0
- package/dist/src/a11y/list-key/ListKeyManager.d.ts +114 -0
- package/dist/src/a11y/list-key/ListKeyManager.d.ts.map +1 -0
- package/dist/src/a11y/list-key/ListManager.d.ts +37 -0
- package/dist/src/a11y/list-key/ListManager.d.ts.map +1 -0
- package/dist/src/a11y/list-key/RadioKeyManager.d.ts +20 -0
- package/dist/src/a11y/list-key/RadioKeyManager.d.ts.map +1 -0
- package/dist/src/a11y/list-key/RovingTabIndexManager.d.ts +22 -0
- package/dist/src/a11y/list-key/RovingTabIndexManager.d.ts.map +1 -0
- package/dist/src/a11y/list-key/SelectionManager.d.ts +46 -0
- package/dist/src/a11y/list-key/SelectionManager.d.ts.map +1 -0
- package/dist/src/a11y/list-key/Typeahead.d.ts +64 -0
- package/dist/src/a11y/list-key/Typeahead.d.ts.map +1 -0
- package/dist/src/a11y/list-key/index.d.ts +8 -0
- package/dist/src/a11y/list-key/index.d.ts.map +1 -0
- package/dist/src/a11y/visuallyHide.d.ts +6 -0
- package/dist/src/a11y/visuallyHide.d.ts.map +1 -0
- package/dist/src/anchoring/AnchorOptions.d.ts +15 -0
- package/dist/src/anchoring/AnchorOptions.d.ts.map +1 -0
- package/dist/src/anchoring/AnchorPosition.d.ts +3 -0
- package/dist/src/anchoring/AnchorPosition.d.ts.map +1 -0
- package/dist/src/anchoring/index.d.ts +4 -0
- package/dist/src/anchoring/index.d.ts.map +1 -0
- package/dist/src/anchoring/positionAnchor.d.ts +12 -0
- package/dist/src/anchoring/positionAnchor.d.ts.map +1 -0
- package/dist/src/bidi/Directionality.d.ts +27 -0
- package/dist/src/bidi/Directionality.d.ts.map +1 -0
- package/dist/src/bidi/index.d.ts +2 -0
- package/dist/src/bidi/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/layout/Breakpoint.d.ts +26 -0
- package/dist/src/layout/Breakpoint.d.ts.map +1 -0
- package/dist/src/layout/BreakpointObserver.d.ts +18 -0
- package/dist/src/layout/BreakpointObserver.d.ts.map +1 -0
- package/dist/src/layout/index.d.ts +3 -0
- package/dist/src/layout/index.d.ts.map +1 -0
- package/dist/src/platform/Platform.d.ts +34 -0
- package/dist/src/platform/Platform.d.ts.map +1 -0
- package/dist/src/platform/index.d.ts +2 -0
- package/dist/src/platform/index.d.ts.map +1 -0
- package/dist/src/shared/controllers/FocusController.d.ts +30 -0
- package/dist/src/shared/controllers/FocusController.d.ts.map +1 -0
- package/dist/src/shared/controllers/HoverController.d.ts +40 -0
- package/dist/src/shared/controllers/HoverController.d.ts.map +1 -0
- package/dist/src/shared/controllers/IntersectionController.d.ts +40 -0
- package/dist/src/shared/controllers/IntersectionController.d.ts.map +1 -0
- package/dist/src/shared/controllers/LongPressController.d.ts +32 -0
- package/dist/src/shared/controllers/LongPressController.d.ts.map +1 -0
- package/dist/src/shared/controllers/MonitorControllerBase.d.ts +62 -0
- package/dist/src/shared/controllers/MonitorControllerBase.d.ts.map +1 -0
- package/dist/src/shared/controllers/MutationController.d.ts +37 -0
- package/dist/src/shared/controllers/MutationController.d.ts.map +1 -0
- package/dist/src/shared/controllers/PressedController.d.ts +45 -0
- package/dist/src/shared/controllers/PressedController.d.ts.map +1 -0
- package/dist/src/shared/controllers/ResizeController.d.ts +40 -0
- package/dist/src/shared/controllers/ResizeController.d.ts.map +1 -0
- package/dist/src/shared/controllers/ScrollController.d.ts +34 -0
- package/dist/src/shared/controllers/ScrollController.d.ts.map +1 -0
- package/dist/src/shared/controllers/index.d.ts +9 -0
- package/dist/src/shared/controllers/index.d.ts.map +1 -0
- package/dist/src/shared/decorators/debounce.d.ts +7 -0
- package/dist/src/shared/decorators/debounce.d.ts.map +1 -0
- package/dist/src/shared/decorators/index.d.ts +2 -0
- package/dist/src/shared/decorators/index.d.ts.map +1 -0
- package/dist/src/shared/directives/index.d.ts +2 -0
- package/dist/src/shared/directives/index.d.ts.map +1 -0
- package/dist/src/shared/directives/safeStyleMap.d.ts +44 -0
- package/dist/src/shared/directives/safeStyleMap.d.ts.map +1 -0
- package/dist/src/shared/index.d.ts +8 -0
- package/dist/src/shared/index.d.ts.map +1 -0
- package/dist/src/shared/mixins/AttachInternals.d.ts +24 -0
- package/dist/src/shared/mixins/AttachInternals.d.ts.map +1 -0
- package/dist/src/shared/mixins/Checked.d.ts +24 -0
- package/dist/src/shared/mixins/Checked.d.ts.map +1 -0
- package/dist/src/shared/mixins/CheckedIndeterminate.d.ts +25 -0
- package/dist/src/shared/mixins/CheckedIndeterminate.d.ts.map +1 -0
- package/dist/src/shared/mixins/CheckedOrSelected.d.ts +23 -0
- package/dist/src/shared/mixins/CheckedOrSelected.d.ts.map +1 -0
- package/dist/src/shared/mixins/ConstraintValidation.d.ts +48 -0
- package/dist/src/shared/mixins/ConstraintValidation.d.ts.map +1 -0
- package/dist/src/shared/mixins/Constructor.d.ts +3 -0
- package/dist/src/shared/mixins/Constructor.d.ts.map +1 -0
- package/dist/src/shared/mixins/Dirty.d.ts +27 -0
- package/dist/src/shared/mixins/Dirty.d.ts.map +1 -0
- package/dist/src/shared/mixins/Disabled.d.ts +25 -0
- package/dist/src/shared/mixins/Disabled.d.ts.map +1 -0
- package/dist/src/shared/mixins/DisabledInteractive.d.ts +25 -0
- package/dist/src/shared/mixins/DisabledInteractive.d.ts.map +1 -0
- package/dist/src/shared/mixins/EventAttribute.d.ts +11 -0
- package/dist/src/shared/mixins/EventAttribute.d.ts.map +1 -0
- package/dist/src/shared/mixins/Focusable.d.ts +11 -0
- package/dist/src/shared/mixins/Focusable.d.ts.map +1 -0
- package/dist/src/shared/mixins/FormAssociated.d.ts +34 -0
- package/dist/src/shared/mixins/FormAssociated.d.ts.map +1 -0
- package/dist/src/shared/mixins/FormSubmitter.d.ts +31 -0
- package/dist/src/shared/mixins/FormSubmitter.d.ts.map +1 -0
- package/dist/src/shared/mixins/HtmlFor.d.ts +30 -0
- package/dist/src/shared/mixins/HtmlFor.d.ts.map +1 -0
- package/dist/src/shared/mixins/KeyboardClick.d.ts +11 -0
- package/dist/src/shared/mixins/KeyboardClick.d.ts.map +1 -0
- package/dist/src/shared/mixins/Labelled.d.ts +22 -0
- package/dist/src/shared/mixins/Labelled.d.ts.map +1 -0
- package/dist/src/shared/mixins/LinkButton.d.ts +36 -0
- package/dist/src/shared/mixins/LinkButton.d.ts.map +1 -0
- package/dist/src/shared/mixins/ReadOnly.d.ts +25 -0
- package/dist/src/shared/mixins/ReadOnly.d.ts.map +1 -0
- package/dist/src/shared/mixins/Required.d.ts +26 -0
- package/dist/src/shared/mixins/Required.d.ts.map +1 -0
- package/dist/src/shared/mixins/RequiredConstraintValidation.d.ts +21 -0
- package/dist/src/shared/mixins/RequiredConstraintValidation.d.ts.map +1 -0
- package/dist/src/shared/mixins/Role.d.ts +13 -0
- package/dist/src/shared/mixins/Role.d.ts.map +1 -0
- package/dist/src/shared/mixins/Selected.d.ts +24 -0
- package/dist/src/shared/mixins/Selected.d.ts.map +1 -0
- package/dist/src/shared/mixins/Touched.d.ts +27 -0
- package/dist/src/shared/mixins/Touched.d.ts.map +1 -0
- package/dist/src/shared/mixins/Vertical.d.ts +24 -0
- package/dist/src/shared/mixins/Vertical.d.ts.map +1 -0
- package/dist/src/shared/mixins/hasKeys.d.ts +9 -0
- package/dist/src/shared/mixins/hasKeys.d.ts.map +1 -0
- package/dist/src/shared/mixins/index.d.ts +25 -0
- package/dist/src/shared/mixins/index.d.ts.map +1 -0
- package/dist/src/shared/primitives/CollapsibleElement.d.ts +58 -0
- package/dist/src/shared/primitives/CollapsibleElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/ElevationElement.d.ts +88 -0
- package/dist/src/shared/primitives/ElevationElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/ElevationLevel.d.ts +3 -0
- package/dist/src/shared/primitives/ElevationLevel.d.ts.map +1 -0
- package/dist/src/shared/primitives/ElevationToken.d.ts +15 -0
- package/dist/src/shared/primitives/ElevationToken.d.ts.map +1 -0
- package/dist/src/shared/primitives/FocusRingElement.d.ts +78 -0
- package/dist/src/shared/primitives/FocusRingElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/FocusRingToken.d.ts +17 -0
- package/dist/src/shared/primitives/FocusRingToken.d.ts.map +1 -0
- package/dist/src/shared/primitives/PseudoCheckboxElement.d.ts +50 -0
- package/dist/src/shared/primitives/PseudoCheckboxElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/PseudoRadioElement.d.ts +41 -0
- package/dist/src/shared/primitives/PseudoRadioElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/RippleElement.d.ts +110 -0
- package/dist/src/shared/primitives/RippleElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/RippleToken.d.ts +12 -0
- package/dist/src/shared/primitives/RippleToken.d.ts.map +1 -0
- package/dist/src/shared/primitives/ScrollContainerElement.d.ts +64 -0
- package/dist/src/shared/primitives/ScrollContainerElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/ScrollDividers.d.ts +3 -0
- package/dist/src/shared/primitives/ScrollDividers.d.ts.map +1 -0
- package/dist/src/shared/primitives/SlideElement.d.ts +48 -0
- package/dist/src/shared/primitives/SlideElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/StateLayerElement.d.ts +77 -0
- package/dist/src/shared/primitives/StateLayerElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/StateLayerToken.d.ts +13 -0
- package/dist/src/shared/primitives/StateLayerToken.d.ts.map +1 -0
- package/dist/src/shared/primitives/TextOverflowElement.d.ts +39 -0
- package/dist/src/shared/primitives/TextOverflowElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/index.d.ts +13 -0
- package/dist/src/shared/primitives/index.d.ts.map +1 -0
- package/dist/src/shared/tokens/ColorToken.d.ts +96 -0
- package/dist/src/shared/tokens/ColorToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/DensityToken.d.ts +15 -0
- package/dist/src/shared/tokens/DensityToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/DesignToken.d.ts +366 -0
- package/dist/src/shared/tokens/DesignToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/ElevationToken.d.ts +16 -0
- package/dist/src/shared/tokens/ElevationToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/MotionToken.d.ts +69 -0
- package/dist/src/shared/tokens/MotionToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/ScrollbarToken.d.ts +10 -0
- package/dist/src/shared/tokens/ScrollbarToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/ShapeToken.d.ts +79 -0
- package/dist/src/shared/tokens/ShapeToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/StateToken.d.ts +10 -0
- package/dist/src/shared/tokens/StateToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/TypescaleToken.d.ts +220 -0
- package/dist/src/shared/tokens/TypescaleToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/index.d.ts +2 -0
- package/dist/src/shared/tokens/index.d.ts.map +1 -0
- package/dist/src/shared/utils/getTextContent.d.ts +8 -0
- package/dist/src/shared/utils/getTextContent.d.ts.map +1 -0
- package/dist/src/shared/utils/guid.d.ts +6 -0
- package/dist/src/shared/utils/guid.d.ts.map +1 -0
- package/dist/src/shared/utils/hasAssignedNodes.d.ts +7 -0
- package/dist/src/shared/utils/hasAssignedNodes.d.ts.map +1 -0
- package/dist/src/shared/utils/index.d.ts +6 -0
- package/dist/src/shared/utils/index.d.ts.map +1 -0
- package/dist/src/shared/utils/prefersReducedMotion.d.ts +6 -0
- package/dist/src/shared/utils/prefersReducedMotion.d.ts.map +1 -0
- package/dist/src/shared/utils/scrollIntoViewIfNeeded.d.ts +8 -0
- package/dist/src/shared/utils/scrollIntoViewIfNeeded.d.ts.map +1 -0
- package/eslint.config.mjs +21 -0
- package/package.json +87 -0
- package/rollup.config.js +132 -0
- package/src/a11y/AriaDescriber.ts +130 -0
- package/src/a11y/FocusTrapElement.ts +136 -0
- package/src/a11y/InteractivityChecker.ts +62 -0
- package/src/a11y/LiveAnnouncer.ts +143 -0
- package/src/a11y/aria-reference.ts +51 -0
- package/src/a11y/index.ts +8 -0
- package/src/a11y/keycodes/KeyCode.ts +128 -0
- package/src/a11y/keycodes/ModifierKeys.ts +5 -0
- package/src/a11y/keycodes/getKeyCode.ts +8 -0
- package/src/a11y/keycodes/hasModifierKey.ts +11 -0
- package/src/a11y/keycodes/index.ts +5 -0
- package/src/a11y/keycodes/isModifierAllowed.ts +12 -0
- package/src/a11y/list-key/FocusKeyManager.ts +25 -0
- package/src/a11y/list-key/ListKeyManager.ts +350 -0
- package/src/a11y/list-key/ListManager.ts +66 -0
- package/src/a11y/list-key/RadioKeyManager.ts +49 -0
- package/src/a11y/list-key/RovingTabIndexManager.ts +56 -0
- package/src/a11y/list-key/SelectionManager.ts +132 -0
- package/src/a11y/list-key/Typeahead.ts +131 -0
- package/src/a11y/list-key/index.ts +7 -0
- package/src/a11y/visuallyHide.ts +18 -0
- package/src/anchoring/AnchorOptions.ts +19 -0
- package/src/anchoring/AnchorPosition.ts +14 -0
- package/src/anchoring/index.ts +3 -0
- package/src/anchoring/positionAnchor.ts +53 -0
- package/src/bidi/Directionality.ts +85 -0
- package/src/bidi/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/layout/Breakpoint.ts +26 -0
- package/src/layout/BreakpointObserver.ts +44 -0
- package/src/layout/index.ts +2 -0
- package/src/platform/Platform.ts +67 -0
- package/src/platform/index.ts +1 -0
- package/src/shared/controllers/FocusController.ts +60 -0
- package/src/shared/controllers/HoverController.ts +140 -0
- package/src/shared/controllers/IntersectionController.ts +81 -0
- package/src/shared/controllers/LongPressController.ts +87 -0
- package/src/shared/controllers/MonitorControllerBase.ts +99 -0
- package/src/shared/controllers/MutationController.ts +89 -0
- package/src/shared/controllers/PressedController.ts +137 -0
- package/src/shared/controllers/ResizeController.ts +83 -0
- package/src/shared/controllers/ScrollController.ts +100 -0
- package/src/shared/controllers/index.ts +8 -0
- package/src/shared/decorators/debounce.ts +19 -0
- package/src/shared/decorators/index.ts +1 -0
- package/src/shared/directives/index.ts +1 -0
- package/src/shared/directives/safeStyleMap.ts +108 -0
- package/src/shared/index.ts +7 -0
- package/src/shared/mixins/AttachInternals.ts +48 -0
- package/src/shared/mixins/Checked.ts +50 -0
- package/src/shared/mixins/CheckedIndeterminate.ts +47 -0
- package/src/shared/mixins/CheckedOrSelected.ts +36 -0
- package/src/shared/mixins/ConstraintValidation.ts +213 -0
- package/src/shared/mixins/Constructor.ts +2 -0
- package/src/shared/mixins/Dirty.ts +71 -0
- package/src/shared/mixins/Disabled.ts +49 -0
- package/src/shared/mixins/DisabledInteractive.ts +78 -0
- package/src/shared/mixins/EventAttribute.ts +25 -0
- package/src/shared/mixins/Focusable.ts +52 -0
- package/src/shared/mixins/FormAssociated.ts +152 -0
- package/src/shared/mixins/FormSubmitter.ts +123 -0
- package/src/shared/mixins/HtmlFor.ts +89 -0
- package/src/shared/mixins/KeyboardClick.ts +46 -0
- package/src/shared/mixins/Labelled.ts +88 -0
- package/src/shared/mixins/LinkButton.ts +169 -0
- package/src/shared/mixins/ReadOnly.ts +48 -0
- package/src/shared/mixins/Required.ts +50 -0
- package/src/shared/mixins/RequiredConstraintValidation.ts +45 -0
- package/src/shared/mixins/Role.ts +134 -0
- package/src/shared/mixins/Selected.ts +50 -0
- package/src/shared/mixins/Touched.ts +71 -0
- package/src/shared/mixins/Vertical.ts +44 -0
- package/src/shared/mixins/hasKeys.ts +10 -0
- package/src/shared/mixins/index.ts +24 -0
- package/src/shared/primitives/CollapsibleElement.ts +227 -0
- package/src/shared/primitives/ElevationElement.ts +254 -0
- package/src/shared/primitives/ElevationLevel.ts +2 -0
- package/src/shared/primitives/ElevationToken.ts +18 -0
- package/src/shared/primitives/FocusRingElement.ts +199 -0
- package/src/shared/primitives/FocusRingToken.ts +24 -0
- package/src/shared/primitives/PseudoCheckboxElement.ts +116 -0
- package/src/shared/primitives/PseudoRadioElement.ts +83 -0
- package/src/shared/primitives/RippleElement.ts +289 -0
- package/src/shared/primitives/RippleToken.ts +15 -0
- package/src/shared/primitives/ScrollContainerElement.ts +151 -0
- package/src/shared/primitives/ScrollDividers.ts +2 -0
- package/src/shared/primitives/SlideElement.ts +128 -0
- package/src/shared/primitives/StateLayerElement.ts +191 -0
- package/src/shared/primitives/StateLayerToken.ts +16 -0
- package/src/shared/primitives/TextOverflowElement.ts +60 -0
- package/src/shared/primitives/index.ts +12 -0
- package/src/shared/tokens/ColorToken.ts +142 -0
- package/src/shared/tokens/DensityToken.ts +23 -0
- package/src/shared/tokens/DesignToken.ts +35 -0
- package/src/shared/tokens/ElevationToken.ts +115 -0
- package/src/shared/tokens/MotionToken.ts +107 -0
- package/src/shared/tokens/ScrollbarToken.ts +13 -0
- package/src/shared/tokens/ShapeToken.ts +138 -0
- package/src/shared/tokens/StateToken.ts +13 -0
- package/src/shared/tokens/TypescaleToken.ts +230 -0
- package/src/shared/tokens/index.ts +1 -0
- package/src/shared/utils/getTextContent.ts +31 -0
- package/src/shared/utils/guid.ts +11 -0
- package/src/shared/utils/hasAssignedNodes.ts +8 -0
- package/src/shared/utils/index.ts +5 -0
- package/src/shared/utils/prefersReducedMotion.ts +9 -0
- package/src/shared/utils/scrollIntoViewIfNeeded.ts +18 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
import { FormAssociatedMixin } from "./FormAssociated";
|
|
4
|
+
/** A symbol through which a "Form Associated" custom element validates its current state. */
|
|
5
|
+
export declare const validate: unique symbol;
|
|
6
|
+
/** Defines functionality for a "Form Associated" custom element that supports constraint validation. */
|
|
7
|
+
export interface ConstraintValidationMixin extends FormAssociatedMixin {
|
|
8
|
+
/** Whether the element is a submittable element that is a candidate for constraint validation. */
|
|
9
|
+
readonly willValidate: boolean;
|
|
10
|
+
/** The validity state of the element. */
|
|
11
|
+
readonly validity: ValidityState;
|
|
12
|
+
/** The error message that would be displayed if the user submits the form, or an empty string if no error message. */
|
|
13
|
+
readonly validationMessage: string;
|
|
14
|
+
/**
|
|
15
|
+
* Validates the current state of the control.
|
|
16
|
+
* @returns {ValidityStateFlags | undefined} The current validity state.
|
|
17
|
+
*/
|
|
18
|
+
[validate](): ValidityStateFlags | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Returns `true` if the element has no validity problems; otherwise, returns `false`, fires
|
|
21
|
+
* an invalid event, and (if the event isn't canceled) reports the problem to the user.
|
|
22
|
+
*/
|
|
23
|
+
reportValidity(): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Returns `true` if the element has no validity problems; otherwise,
|
|
26
|
+
* returns `false`, fires an invalid event.
|
|
27
|
+
*/
|
|
28
|
+
checkValidity(): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Sets a custom validity message for the element.
|
|
31
|
+
* @param error The message to use for validity errors.
|
|
32
|
+
*/
|
|
33
|
+
setCustomValidity(error: string): void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Determines whether a value is a `ConstraintValidationMixin`.
|
|
37
|
+
* @param {unknown} value The value to test.
|
|
38
|
+
* @returns Whether `value` is a `ConstraintValidationMixin`.
|
|
39
|
+
*/
|
|
40
|
+
export declare function isConstraintValidationMixin(value: unknown): value is ConstraintValidationMixin;
|
|
41
|
+
/**
|
|
42
|
+
* Mixin to augment an element with "Form Associated" behavior that supports constraint validation.
|
|
43
|
+
* @template T The type of the base class.
|
|
44
|
+
* @param {T} base The base class.
|
|
45
|
+
* @returns {Constructor<ConstraintValidationMixin> & T} A constructor that implements `ConstraintValidationMixin`.
|
|
46
|
+
*/
|
|
47
|
+
export declare function ConstraintValidation<T extends Constructor<LitElement & FormAssociatedMixin>>(base: T): Constructor<ConstraintValidationMixin> & T;
|
|
48
|
+
//# sourceMappingURL=ConstraintValidation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConstraintValidation.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/ConstraintValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiD,MAAM,KAAK,CAAC;AAGhF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAyB,MAAM,kBAAkB,CAAC;AAI9E,6FAA6F;AAC7F,eAAO,MAAM,QAAQ,eAAqB,CAAC;AAE3C,wGAAwG;AACxG,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IACpE,kGAAkG;IAClG,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAE/B,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IAEjC,sHAAsH;IACtH,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IAEnC;;;OAGG;IACH,CAAC,QAAQ,CAAC,IAAI,kBAAkB,GAAG,SAAS,CAAC;IAE7C;;;OAGG;IACH,cAAc,IAAI,OAAO,CAAC;IAE1B;;;OAGG;IACH,aAAa,IAAI,OAAO,CAAC;IAEzB;;;OAGG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,yBAAyB,CAY9F;AAKD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,GAAG,mBAAmB,CAAC,EAC1F,IAAI,EAAE,CAAC,GACN,WAAW,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAuI5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Constructor.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/Constructor.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,MAAM,IAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
/** Defines functionality for an element that can be marked as dirty. */
|
|
4
|
+
export interface DirtyMixin {
|
|
5
|
+
/** Whether the user has not modified the value of the element. */
|
|
6
|
+
readonly pristine: boolean;
|
|
7
|
+
/** Whether the user has modified the value of the element. */
|
|
8
|
+
readonly dirty: boolean;
|
|
9
|
+
/** Marks the element as pristine. */
|
|
10
|
+
markAsPristine(): void;
|
|
11
|
+
/** Marks the element as dirty. */
|
|
12
|
+
markAsDirty(): void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Determines whether a value is a `DirtyMixin`.
|
|
16
|
+
* @param {unknown} value The value to test.
|
|
17
|
+
* @returns A value indicating whether `value` is a `DirtyMixin`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function isDirtyMixin(value: unknown): value is DirtyMixin;
|
|
20
|
+
/**
|
|
21
|
+
* Mixin to augment an element with functionality used to mark it as dirty.
|
|
22
|
+
* @template T The type of the base class.
|
|
23
|
+
* @param {T} base The base class.
|
|
24
|
+
* @returns {Constructor<DirtyMixin> & T} A constructor that implements `DirtyMixin`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function Dirty<T extends Constructor<LitElement>>(base: T): Constructor<DirtyMixin> & T;
|
|
27
|
+
//# sourceMappingURL=Dirty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dirty.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/Dirty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,wEAAwE;AACxE,MAAM,WAAW,UAAU;IACzB,kEAAkE;IAClE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAE3B,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IAExB,qCAAqC;IACrC,cAAc,IAAI,IAAI,CAAC;IAEvB,kCAAkC;IAClC,WAAW,IAAI,IAAI,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAEhE;AAID;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,CAiC7F"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
/** Defines functionality for an element which supports a disabled state. */
|
|
4
|
+
export interface DisabledMixin {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the element is disabled.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Determines whether a value is a `DisabledMixin`.
|
|
13
|
+
* @param {unknown} value The value to test.
|
|
14
|
+
* @returns {value is DisabledMixin} Whether `value` is a `DisabledMixin`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isDisabledMixin(value: unknown): value is DisabledMixin;
|
|
17
|
+
/**
|
|
18
|
+
* Mixin to augment an element with behavior that supports a disabled state.
|
|
19
|
+
* @template T The type of the base class.
|
|
20
|
+
* @param {T} base The base class.
|
|
21
|
+
* @param {boolean} [reflect=true] Whether the disabled property is reflected as an attribute.
|
|
22
|
+
* @returns {Constructor<DisabledMixin> & T} A constructor that implements `DisabledMixin`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function Disabled<T extends Constructor<LitElement>>(base: T, reflect?: boolean): Constructor<DisabledMixin> & T;
|
|
25
|
+
//# sourceMappingURL=Disabled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Disabled.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/Disabled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,4EAA4E;AAC5E,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EACxD,IAAI,EAAE,CAAC,EACP,OAAO,GAAE,OAAc,GACtB,WAAW,CAAC,aAAa,CAAC,GAAG,CAAC,CAchC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
import { DisabledMixin } from "./Disabled";
|
|
4
|
+
/** Defines functionality for an element which supports an interactive disabled state. */
|
|
5
|
+
export interface DisabledInteractiveMixin extends DisabledMixin {
|
|
6
|
+
/**
|
|
7
|
+
* Whether the element is disabled and interactive.
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
disabledInteractive: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Determines whether a value is a `DisabledInteractiveMixin`.
|
|
14
|
+
* @param {unknown} value The value to test.
|
|
15
|
+
* @returns {value is DisabledInteractiveMixin} Whether `value` is a `DisabledInteractiveMixin`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isDisabledInteractiveMixin(value: unknown): value is DisabledInteractiveMixin;
|
|
18
|
+
/**
|
|
19
|
+
* Mixin to augment an element with behavior that supports an interactive disabled state.
|
|
20
|
+
* @template T The type of the base class.
|
|
21
|
+
* @param {T} base The base class.
|
|
22
|
+
* @returns {Constructor<DisabledInteractiveMixin>} A constructor that implements `DisabledInteractiveMixin`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function DisabledInteractive<T extends Constructor<LitElement & DisabledMixin>>(base: T): Constructor<DisabledInteractiveMixin> & T;
|
|
25
|
+
//# sourceMappingURL=DisabledInteractive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisabledInteractive.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/DisabledInteractive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAmB,MAAM,YAAY,CAAC;AAG5D,yFAAyF;AACzF,MAAM,WAAW,wBAAyB,SAAQ,aAAa;IAC7D;;;OAGG;IACH,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,wBAAwB,CAE5F;AAMD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,GAAG,aAAa,CAAC,EACnF,IAAI,EAAE,CAAC,GACN,WAAW,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAwC3C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
/**
|
|
4
|
+
* Mixin that adds support for custom event attributes.
|
|
5
|
+
* @template T The type of base class from which to inherit.
|
|
6
|
+
* @param {T} base The base class from which to inherit.
|
|
7
|
+
* @param {string[]} types The types of event attributes.
|
|
8
|
+
* @returns {T} A class extending `base` that supports custom event attributes.
|
|
9
|
+
*/
|
|
10
|
+
export declare function EventAttribute<T extends Constructor<LitElement>>(base: T, ...types: string[]): T;
|
|
11
|
+
//# sourceMappingURL=EventAttribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventAttribute.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/EventAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,CAahG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
import { DisabledMixin } from "./Disabled";
|
|
4
|
+
/**
|
|
5
|
+
* Mixin to augment an element with behavior that supports a focused state.
|
|
6
|
+
* @template T The type of the base class.
|
|
7
|
+
* @param {T} base The base class.
|
|
8
|
+
* @returns {Constructor & T} A constructor that implements focusable behavior.
|
|
9
|
+
*/
|
|
10
|
+
export declare function Focusable<T extends Constructor<LitElement & DisabledMixin>>(base: T): Constructor & T;
|
|
11
|
+
//# sourceMappingURL=Focusable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Focusable.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/Focusable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,GAAG,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,WAAW,GAAG,CAAC,CAsCrG"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { AttachInternalsMixin } from "./AttachInternals";
|
|
3
|
+
import { Constructor } from "./Constructor";
|
|
4
|
+
import { DisabledMixin } from "./Disabled";
|
|
5
|
+
import { LabelledMixin } from "./Labelled";
|
|
6
|
+
/** A symbol through which a "Form Associated" custom element provides a value for a form. */
|
|
7
|
+
export declare const formValue: unique symbol;
|
|
8
|
+
/** A symbol through which a "Form Associated" custom element provides a default value for resetting a form. */
|
|
9
|
+
export declare const defaultValue: unique symbol;
|
|
10
|
+
/** Defines functionality for a "Form Associated" custom element. */
|
|
11
|
+
export interface FormAssociatedMixin extends LabelledMixin, DisabledMixin, AttachInternalsMixin {
|
|
12
|
+
/** The `HTMLFormElement` associated with this element. */
|
|
13
|
+
readonly form: HTMLFormElement | null;
|
|
14
|
+
/** The form value of the element. */
|
|
15
|
+
readonly [formValue]: string | File | FormData | null;
|
|
16
|
+
/** The default value (value or checked state) of the element. */
|
|
17
|
+
readonly [defaultValue]: unknown;
|
|
18
|
+
/** The name that identifies the element when submitting the associated form. */
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Determines whether a value is a `FormAssociatedMixin`.
|
|
23
|
+
* @param {unknown} value The value to test.
|
|
24
|
+
* @returns A value indicating whether `value` is a `FormAssociatedMixin`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function isFormAssociatedMixin(value: unknown): value is FormAssociatedMixin;
|
|
27
|
+
/**
|
|
28
|
+
* Mixin to augment an element with "Form Associated" behavior.
|
|
29
|
+
* @template T The type of the base class.
|
|
30
|
+
* @param {T} base The base class.
|
|
31
|
+
* @returns {Constructor<FormAssociatedMixin> & T} A constructor that implements `FormAssociatedMixin`.
|
|
32
|
+
*/
|
|
33
|
+
export declare function FormAssociated<T extends Constructor<LitElement & DisabledMixin & AttachInternalsMixin>>(base: T): Constructor<FormAssociatedMixin> & T;
|
|
34
|
+
//# sourceMappingURL=FormAssociated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormAssociated.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/FormAssociated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AAGtD,OAAO,EAAE,oBAAoB,EAAqC,MAAM,mBAAmB,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAmB,aAAa,EAAE,MAAM,YAAY,CAAC;AAG5D,6FAA6F;AAC7F,eAAO,MAAM,SAAS,eAAsB,CAAC;AAE7C,+GAA+G;AAC/G,eAAO,MAAM,YAAY,eAAyB,CAAC;AAEnD,oEAAoE;AACpE,MAAM,WAAW,mBAAoB,SAAQ,aAAa,EAAE,aAAa,EAAE,oBAAoB;IAC7F,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,CAAC;IAEtC,qCAAqC;IACrC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,GAAG,IAAI,CAAC;IAEtD,iEAAiE;IACjE,QAAQ,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAEjC,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,mBAAmB,CAMlF;AAMD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,GAAG,aAAa,GAAG,oBAAoB,CAAC,EACrG,IAAI,EAAE,CAAC,GACN,WAAW,CAAC,mBAAmB,CAAC,GAAG,CAAC,CA4FtC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { AttachInternalsMixin } from "./AttachInternals";
|
|
3
|
+
import { Constructor } from "./Constructor";
|
|
4
|
+
/** Specifies the form submission behaviors. */
|
|
5
|
+
export type FormSubmitterType = "button" | "submit" | "reset";
|
|
6
|
+
/** Defines functionality for an element which can be used to submit a form. */
|
|
7
|
+
export interface FormSubmitterMixin extends AttachInternalsMixin {
|
|
8
|
+
/**
|
|
9
|
+
* The name of the element, submitted as a pair with the element's `value`
|
|
10
|
+
* as part of form data, when the element is used to submit a form.
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/** The value associated with the element's name when it's submitted with form data. */
|
|
14
|
+
value: string | null;
|
|
15
|
+
/** The type of the element. */
|
|
16
|
+
type: FormSubmitterType;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Determines whether a value is a `FormSubmitterMixin`.
|
|
20
|
+
* @param {unknown} value The value to test.
|
|
21
|
+
* @returns {value is FormSubmitterMixin} Whether `value` is a `FormSubmitterMixin`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isFormSubmitterMixin(value: unknown): value is FormSubmitterMixin;
|
|
24
|
+
/**
|
|
25
|
+
* Mixin to augment an element with behavior used to submit a form.
|
|
26
|
+
* @template T The type of the base class.
|
|
27
|
+
* @param {T} base The base class.
|
|
28
|
+
* @returns {Constructor<FormSubmitterMixin>} A constructor that implements `FormSubmitterMixin`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function FormSubmitter<T extends Constructor<LitElement & AttachInternalsMixin>>(base: T): Constructor<FormSubmitterMixin> & T;
|
|
31
|
+
//# sourceMappingURL=FormSubmitter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormSubmitter.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/FormSubmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAGjC,OAAO,EAAE,oBAAoB,EAAqC,MAAM,mBAAmB,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,+CAA+C;AAC/C,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE9D,+EAA+E;AAC/E,MAAM,WAAW,kBAAmB,SAAQ,oBAAoB;IAC9D;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,uFAAuF;IACvF,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,+BAA+B;IAC/B,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,kBAAkB,CAEhF;AAID;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,GAAG,oBAAoB,CAAC,EACpF,IAAI,EAAE,CAAC,GACN,WAAW,CAAC,kBAAkB,CAAC,GAAG,CAAC,CA4ErC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
/** Defines functionality for an attached element associated with an interactive control. */
|
|
4
|
+
export interface HtmlForMixin {
|
|
5
|
+
/** The identifier of the interactive control to which this element is attached. */
|
|
6
|
+
htmlFor: string | null;
|
|
7
|
+
/** The interactive element to which this element is attached. */
|
|
8
|
+
readonly control: HTMLElement | null;
|
|
9
|
+
/**
|
|
10
|
+
* Attaches the element to an interactive control.
|
|
11
|
+
* @param {HTMLElement} control The element that controls the attachable element.
|
|
12
|
+
*/
|
|
13
|
+
attach(control: HTMLElement): void;
|
|
14
|
+
/** Detaches the element from its current interactive control. */
|
|
15
|
+
detach(): void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Determines whether a value is a `HtmlForMixin`.
|
|
19
|
+
* @param {unknown} value The value to test.
|
|
20
|
+
* @returns {value is HtmlForMixin} Whether `value` is a `HtmlForMixin`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function isHtmlForMixin(value: unknown): value is HtmlForMixin;
|
|
23
|
+
/**
|
|
24
|
+
* Mixin that creates an attached element associated with an interactive control.
|
|
25
|
+
* @template T The type of the base class.
|
|
26
|
+
* @param {T} base The base class.
|
|
27
|
+
* @returns {Constructor<HtmlForMixin> & T} A constructor extends `base` and implements `HtmlForMixin`.
|
|
28
|
+
*/
|
|
29
|
+
export declare function HtmlFor<T extends Constructor<LitElement>>(base: T): Constructor<HtmlForMixin> & T;
|
|
30
|
+
//# sourceMappingURL=HtmlFor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HtmlFor.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/HtmlFor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,4FAA4F;AAC5F,MAAM,WAAW,YAAY;IAC3B,mFAAmF;IACnF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAErC;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAEnC,iEAAiE;IACjE,MAAM,IAAI,IAAI,CAAC;CAChB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAEpE;AAKD;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,CA8CjG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
/**
|
|
4
|
+
* Mixin to augment an element with behavior emits a click event on keyboard events.
|
|
5
|
+
* @template T The type of the base class.
|
|
6
|
+
* @param {T} base The base class.
|
|
7
|
+
* @param {boolean} [allowEnter=true] Whether the `ENTER` key emits a click event.
|
|
8
|
+
* @returns {T} A class that extends `base` with keyboard click behavior.
|
|
9
|
+
*/
|
|
10
|
+
export declare function KeyboardClick<T extends Constructor<LitElement>>(base: T, allowEnter?: boolean): T;
|
|
11
|
+
//# sourceMappingURL=KeyboardClick.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyboardClick.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/KeyboardClick.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,GAAE,OAAc,GAAG,CAAC,CAgCvG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { AttachInternalsMixin } from "./AttachInternals";
|
|
3
|
+
import { Constructor } from "./Constructor";
|
|
4
|
+
/** Defines functionality for a labelled custom element. */
|
|
5
|
+
export interface LabelledMixin extends AttachInternalsMixin {
|
|
6
|
+
/** The label elements that the element is associated with. */
|
|
7
|
+
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Determines whether a value is a `LabelledMixin`.
|
|
11
|
+
* @param {unknown} value The value to test.
|
|
12
|
+
* @returns A value indicating whether `value` is a `LabelledMixin`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isLabelledMixin(value: unknown): value is LabelledMixin;
|
|
15
|
+
/**
|
|
16
|
+
* Mixin to augment an element with support for labelling.
|
|
17
|
+
* @template T The type of the base class.
|
|
18
|
+
* @param {T} base The base class.
|
|
19
|
+
* @returns {Constructor<FormAssociatedMixin> & T} A constructor that implements `FormAssociatedMixin`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function Labelled<T extends Constructor<LitElement & AttachInternalsMixin>>(base: T): Constructor<LabelledMixin> & T;
|
|
22
|
+
//# sourceMappingURL=Labelled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Labelled.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/Labelled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAIjD,OAAO,EAAE,oBAAoB,EAAqC,MAAM,mBAAmB,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAM5C,2DAA2D;AAC3D,MAAM,WAAW,aAAc,SAAQ,oBAAoB;IACzD,8DAA8D;IAC9D,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;CAC/C;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAKD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,GAAG,oBAAoB,CAAC,EAC/E,IAAI,EAAE,CAAC,GACN,WAAW,CAAC,aAAa,CAAC,GAAG,CAAC,CAkDhC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
/** A symbol through which to access a function used to render a pseudo link. */
|
|
4
|
+
export declare const renderPseudoLink: unique symbol;
|
|
5
|
+
/** Specifies the possible targets for a link. */
|
|
6
|
+
export type LinkTarget = "_self" | "_blank" | "_parent" | "_top" | (string & {});
|
|
7
|
+
/** Defines functionality for an interactive element that functions as a link. */
|
|
8
|
+
export interface LinkButtonMixin {
|
|
9
|
+
/** The URL to which the link button points. */
|
|
10
|
+
href: string;
|
|
11
|
+
/** The target of the link button. */
|
|
12
|
+
target: LinkTarget;
|
|
13
|
+
/** The relationship between the `target` of the link button and the document. */
|
|
14
|
+
rel: string;
|
|
15
|
+
/**
|
|
16
|
+
* A value indicating whether the `target` of the link button will be downloaded,
|
|
17
|
+
* optionally specifying the new name of the file.
|
|
18
|
+
*/
|
|
19
|
+
download: string | null;
|
|
20
|
+
/** Function used to render a pseudo link. */
|
|
21
|
+
[renderPseudoLink](): unknown;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Determines whether a value is a `LinkButtonMixin`.
|
|
25
|
+
* @param {unknown} value The value to test.
|
|
26
|
+
* @returns {value is LinkButtonMixin} Whether `value` is a `LinkButtonMixin`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isLinkButtonMixin(value: unknown): value is LinkButtonMixin;
|
|
29
|
+
/**
|
|
30
|
+
* Mixin to augment an element with behavior that supports functioning as a link.
|
|
31
|
+
* @template T The type of the base class.
|
|
32
|
+
* @param {T} base The base class.
|
|
33
|
+
* @returns {Constructor<LinkButtonMixin>} A constructor that implements `LinkButtonMixin`.
|
|
34
|
+
*/
|
|
35
|
+
export declare function LinkButton<T extends Constructor<LitElement>>(base: T): Constructor<LinkButtonMixin> & T;
|
|
36
|
+
//# sourceMappingURL=LinkButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/LinkButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAW,MAAM,KAAK,CAAC;AAIhD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,gFAAgF;AAChF,eAAO,MAAM,gBAAgB,eAA6B,CAAC;AAE3D,iDAAiD;AACjD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEjF,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC9B,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IAEb,qCAAqC;IACrC,MAAM,EAAE,UAAU,CAAC;IAEnB,iFAAiF;IACjF,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,6CAA6C;IAC7C,CAAC,gBAAgB,CAAC,IAAI,OAAO,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E;AAID;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,eAAe,CAAC,GAAG,CAAC,CAmHvG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
/** Defines functionality for an element which supports a read-only state. */
|
|
4
|
+
export interface ReadOnlyMixin {
|
|
5
|
+
/**
|
|
6
|
+
* A value indicating whether the element is read-only.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
readOnly: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Determines whether a value is a `ReadOnlyMixin`.
|
|
13
|
+
* @param {unknown} value The value to test.
|
|
14
|
+
* @returns A value indicating whether `value` is a `ReadOnlyMixin`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isReadOnlyMixin(value: unknown): value is ReadOnlyMixin;
|
|
17
|
+
/**
|
|
18
|
+
* Mixin to augment an element with behavior that supports a read-only state.
|
|
19
|
+
* @template T The type of the base class.
|
|
20
|
+
* @param {T} base The base class.
|
|
21
|
+
* @param {boolean} reflect A value indicating whether the read-only state is reflected as an attribute. The default value is `true`.
|
|
22
|
+
* @returns {Constructor<ReadOnlyMixin> & T} A constructor that implements `ReadOnlyMixin`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function ReadOnly<T extends Constructor<LitElement>>(base: T, reflect?: boolean): Constructor<ReadOnlyMixin> & T;
|
|
25
|
+
//# sourceMappingURL=ReadOnly.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadOnly.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/ReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,6EAA6E;AAC7E,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EACxD,IAAI,EAAE,CAAC,EACP,OAAO,GAAE,OAAc,GACtB,WAAW,CAAC,aAAa,CAAC,GAAG,CAAC,CAahC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
/** Defines functionality for an element which supports a required state. */
|
|
4
|
+
export interface RequiredMixin {
|
|
5
|
+
/**
|
|
6
|
+
* Whether a value is required for the element.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
required: boolean;
|
|
10
|
+
/** Whether a value is not required for the element. */
|
|
11
|
+
readonly optional: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Determines whether a value is a `RequiredMixin`.
|
|
15
|
+
* @param {unknown} value The value to test.
|
|
16
|
+
* @returns A value indicating whether `value` is a `RequiredMixin`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function isRequiredMixin(value: unknown): value is RequiredMixin;
|
|
19
|
+
/**
|
|
20
|
+
* Mixin to augment an element with behavior that supports a required state.
|
|
21
|
+
* @template T The type of the base class.
|
|
22
|
+
* @param {T} base The base class.
|
|
23
|
+
* @returns {Constructor<RequiredMixin> & T} A constructor that implements `RequiredMixin`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function Required<T extends Constructor<LitElement>>(base: T): Constructor<RequiredMixin> & T;
|
|
26
|
+
//# sourceMappingURL=Required.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Required.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/Required.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,4EAA4E;AAC5E,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB,uDAAuD;IACvD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,aAAa,CAAC,GAAG,CAAC,CAgBnG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
import { ConstraintValidationMixin } from "./ConstraintValidation";
|
|
4
|
+
import { RequiredMixin } from "./Required";
|
|
5
|
+
/** Defines functionality for an element which supports validating a required state. */
|
|
6
|
+
export interface RequiredConstraintValidationMixin extends RequiredMixin, ConstraintValidationMixin {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Determines whether a value is a `RequiredConstraintValidationMixin`.
|
|
10
|
+
* @param {unknown} value The value to test.
|
|
11
|
+
* @returns A value indicating whether `value` is a `RequiredConstraintValidationMixin`.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isRequiredConstraintValidationMixin(value: unknown): value is RequiredConstraintValidationMixin;
|
|
14
|
+
/**
|
|
15
|
+
* Mixin to augment an element with behavior that supports a required state.
|
|
16
|
+
* @template T The type of the base class.
|
|
17
|
+
* @param {T} base The base class.
|
|
18
|
+
* @returns {Constructor<RequiredConstraintValidationMixin> & T} A constructor that implements `RequiredConstraintValidationMixin`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function RequiredConstraintValidation<T extends Constructor<LitElement & RequiredMixin & ConstraintValidationMixin>>(base: T): Constructor<RequiredConstraintValidationMixin> & T;
|
|
21
|
+
//# sourceMappingURL=RequiredConstraintValidation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequiredConstraintValidation.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/RequiredConstraintValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,yBAAyB,EAAyC,MAAM,wBAAwB,CAAC;AAE1G,OAAO,EAAmB,aAAa,EAAE,MAAM,YAAY,CAAC;AAE5D,uFAAuF;AACvF,MAAM,WAAW,iCAAkC,SAAQ,aAAa,EAAE,yBAAyB;CAAG;AAEtG;;;;GAIG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iCAAiC,CAE9G;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,CAAC,SAAS,WAAW,CAAC,UAAU,GAAG,aAAa,GAAG,yBAAyB,CAAC,EAC7E,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,iCAAiC,CAAC,GAAG,CAAC,CAiB7D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
/** Specifies valid values for the ARIA `role` attribute. */
|
|
4
|
+
export type ARIARole = "alert" | "alertdialog" | "button" | "checkbox" | "dialog" | "gridcell" | "link" | "log" | "marquee" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "option" | "progressbar" | "radio" | "scrollbar" | "searchbox" | "slider" | "spinbutton" | "status" | "switch" | "tab" | "tabpanel" | "textbox" | "timer" | "tooltip" | "treeitem" | "combobox" | "grid" | "listbox" | "menu" | "menubar" | "radiogroup" | "tablist" | "tree" | "treegrid" | "application" | "article" | "cell" | "columnheader" | "definition" | "directory" | "document" | "feed" | "figure" | "group" | "heading" | "img" | "list" | "listitem" | "math" | "none" | "note" | "presentation" | "region" | "row" | "rowgroup" | "rowheader" | "separator" | "table" | "term" | "text" | "toolbar" | "banner" | "complementary" | "contentinfo" | "form" | "main" | "navigation" | "region" | "search" | "doc-abstract" | "doc-acknowledgments" | "doc-afterword" | "doc-appendix" | "doc-backlink" | "doc-biblioentry" | "doc-bibliography" | "doc-biblioref" | "doc-chapter" | "doc-colophon" | "doc-conclusion" | "doc-cover" | "doc-credit" | "doc-credits" | "doc-dedication" | "doc-endnote" | "doc-endnotes" | "doc-epigraph" | "doc-epilogue" | "doc-errata" | "doc-example" | "doc-footnote" | "doc-foreword" | "doc-glossary" | "doc-glossref" | "doc-index" | "doc-introduction" | "doc-noteref" | "doc-notice" | "doc-pagebreak" | "doc-pagelist" | "doc-part" | "doc-preface" | "doc-prologue" | "doc-pullquote" | "doc-qna" | "doc-subtitle" | "doc-tip" | "doc-toc";
|
|
5
|
+
/**
|
|
6
|
+
* Mixin to augment an element with an ARIA role.
|
|
7
|
+
* @template T The type of the base class.
|
|
8
|
+
* @param {T} base The base class.
|
|
9
|
+
* @param {ARIARole} role The ARIA role.
|
|
10
|
+
* @returns {Constructor & T} A constructor that implements focusable behavior.
|
|
11
|
+
*/
|
|
12
|
+
export declare function Role<T extends Constructor<LitElement>>(base: T, role: ARIARole): Constructor & T;
|
|
13
|
+
//# sourceMappingURL=Role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/Role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,4DAA4D;AAC5D,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,aAAa,GACb,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,UAAU,GACV,MAAM,GACN,KAAK,GACL,SAAS,GACT,UAAU,GACV,kBAAkB,GAClB,eAAe,GACf,QAAQ,GACR,aAAa,GACb,OAAO,GACP,WAAW,GACX,WAAW,GACX,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,UAAU,GACV,SAAS,GACT,OAAO,GACP,SAAS,GACT,UAAU,GACV,UAAU,GACV,MAAM,GACN,SAAS,GACT,MAAM,GACN,SAAS,GACT,YAAY,GACZ,SAAS,GACT,MAAM,GACN,UAAU,GACV,aAAa,GACb,SAAS,GACT,MAAM,GACN,cAAc,GACd,YAAY,GACZ,WAAW,GACX,UAAU,GACV,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,KAAK,GACL,MAAM,GACN,UAAU,GACV,MAAM,GACN,MAAM,GACN,MAAM,GACN,cAAc,GACd,QAAQ,GACR,KAAK,GACL,UAAU,GACV,WAAW,GACX,WAAW,GACX,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,QAAQ,GACR,eAAe,GACf,aAAa,GACb,MAAM,GACN,MAAM,GACN,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,qBAAqB,GACrB,eAAe,GACf,cAAc,GACd,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,eAAe,GACf,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,WAAW,GACX,YAAY,GACZ,aAAa,GACb,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,cAAc,GACd,cAAc,GACd,YAAY,GACZ,aAAa,GACb,cAAc,GACd,cAAc,GACd,cAAc,GACd,cAAc,GACd,WAAW,GACX,kBAAkB,GAClB,aAAa,GACb,YAAY,GACZ,eAAe,GACf,cAAc,GACd,UAAU,GACV,aAAa,GACb,cAAc,GACd,eAAe,GACf,SAAS,GACT,cAAc,GACd,SAAS,GACT,SAAS,CAAC;AAEd;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,GAAG,WAAW,GAAG,CAAC,CAShG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
/** Defines functionality for an element which supports a selected state. */
|
|
4
|
+
export interface SelectedMixin {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the element is selected.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
selected: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Determines whether a value is a `SelectedMixin`.
|
|
13
|
+
* @param {unknown} value The value to test.
|
|
14
|
+
* @returns Whether `value` is a `SelectedMixin`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isSelectedMixin(value: unknown): value is SelectedMixin;
|
|
17
|
+
/**
|
|
18
|
+
* Mixin to augment an element with behavior that supports a selected state.
|
|
19
|
+
* @template T The type of the base class.
|
|
20
|
+
* @param {T} base The base class.
|
|
21
|
+
* @returns {Constructor<SelectedMixin> & T} A constructor that implements `SelectedMixin`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function Selected<T extends Constructor<LitElement>>(base: T): Constructor<SelectedMixin> & T;
|
|
24
|
+
//# sourceMappingURL=Selected.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Selected.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/Selected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,4EAA4E;AAC5E,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,aAAa,CAAC,GAAG,CAAC,CAmBnG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
/** Defines functionality for an element that can be marked as touched. */
|
|
4
|
+
export interface TouchedMixin {
|
|
5
|
+
/** Whether the user has interacted when the element. */
|
|
6
|
+
readonly touched: boolean;
|
|
7
|
+
/** Whether the user has not interacted when the element. */
|
|
8
|
+
readonly untouched: boolean;
|
|
9
|
+
/** Marks the element as touched. */
|
|
10
|
+
markAsTouched(): void;
|
|
11
|
+
/** Marks the element as untouched. */
|
|
12
|
+
markAsUntouched(): void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Determines whether a value is a `TouchedMixin`.
|
|
16
|
+
* @param {unknown} value The value to test.
|
|
17
|
+
* @returns A value indicating whether `value` is a `TouchedMixin`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function isTouchedMixin(value: unknown): value is TouchedMixin;
|
|
20
|
+
/**
|
|
21
|
+
* Mixin to augment an element with functionality used to mark it as touched.
|
|
22
|
+
* @template T The type of the base class.
|
|
23
|
+
* @param {T} base The base class.
|
|
24
|
+
* @returns {Constructor<TouchedMixin> & T} A constructor that implements `TouchedMixin`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function Touched<T extends Constructor<LitElement>>(base: T): Constructor<TouchedMixin> & T;
|
|
27
|
+
//# sourceMappingURL=Touched.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Touched.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/Touched.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,0EAA0E;AAC1E,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,4DAA4D;IAC5D,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAE5B,oCAAoC;IACpC,aAAa,IAAI,IAAI,CAAC;IAEtB,sCAAsC;IACtC,eAAe,IAAI,IAAI,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAEpE;AAID;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,CAiCjG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "./Constructor";
|
|
3
|
+
/** Defines functionality for an element which supports a vertical orientation. */
|
|
4
|
+
export interface VerticalMixin {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the element is oriented vertically.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
vertical: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Determines whether a value is a `VerticalMixin`.
|
|
13
|
+
* @param {unknown} value The value to test.
|
|
14
|
+
* @returns A value indicating whether `value` is a `VerticalMixin`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isVerticalMixin(value: unknown): value is VerticalMixin;
|
|
17
|
+
/**
|
|
18
|
+
* Mixin to augment an element with behavior that supports a vertical orientation.
|
|
19
|
+
* @template T The type of the base class.
|
|
20
|
+
* @param {T} base The base class.
|
|
21
|
+
* @returns {Constructor<VerticalMixin> & T} A constructor that implements `VerticalMixin`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function Vertical<T extends Constructor<LitElement>>(base: T): Constructor<VerticalMixin> & T;
|
|
24
|
+
//# sourceMappingURL=Vertical.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Vertical.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/Vertical.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,kFAAkF;AAClF,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,aAAa,CAAC,GAAG,CAAC,CAanG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determines whether an object has keys for a given type.
|
|
3
|
+
* @template T The type to test.
|
|
4
|
+
* @param {unknown} value The value to test.
|
|
5
|
+
* @param {...keys: Array<keyof T>} keys The keys of `T` to test.
|
|
6
|
+
* @returns {boolean} Whether `value` has all `keys`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function hasKeys<T extends object>(value: unknown, ...keys: Array<keyof T>): boolean;
|
|
9
|
+
//# sourceMappingURL=hasKeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasKeys.d.ts","sourceRoot":"","sources":["../../../../src/shared/mixins/hasKeys.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,OAAO,CAE1F"}
|