@sandlada/mdc 0.1.0-nightly.14072025
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 +21 -0
- package/LICENSES/LICENSE-APACHE-2.0.txt +202 -0
- package/README.md +43 -0
- package/build/all.d.ts +40 -0
- package/build/all.d.ts.map +1 -0
- package/build/all.js +1 -0
- package/build/class-map-DQX-4Y_I.js +11 -0
- package/build/color-CigMJnjV.js +1 -0
- package/build/component-definitions/badge.definition.d.ts +15 -0
- package/build/component-definitions/badge.definition.d.ts.map +1 -0
- package/build/component-definitions/badge.definition.js +6 -0
- package/build/component-definitions/button.definition.d.ts +1017 -0
- package/build/component-definitions/button.definition.d.ts.map +1 -0
- package/build/component-definitions/button.definition.js +6 -0
- package/build/component-definitions/card.definition.d.ts +99 -0
- package/build/component-definitions/card.definition.d.ts.map +1 -0
- package/build/component-definitions/card.definition.js +6 -0
- package/build/component-definitions/checkbox.definition.d.ts +74 -0
- package/build/component-definitions/checkbox.definition.d.ts.map +1 -0
- package/build/component-definitions/checkbox.definition.js +6 -0
- package/build/component-definitions/dialog.definition.d.ts +74 -0
- package/build/component-definitions/dialog.definition.d.ts.map +1 -0
- package/build/component-definitions/dialog.definition.js +1 -0
- package/build/component-definitions/divider.definition.d.ts +5 -0
- package/build/component-definitions/divider.definition.d.ts.map +1 -0
- package/build/component-definitions/divider.definition.js +6 -0
- package/build/component-definitions/elevation.definition.d.ts +5 -0
- package/build/component-definitions/elevation.definition.d.ts.map +1 -0
- package/build/component-definitions/elevation.definition.js +6 -0
- package/build/component-definitions/fab.definition.d.ts +643 -0
- package/build/component-definitions/fab.definition.d.ts.map +1 -0
- package/build/component-definitions/fab.definition.js +6 -0
- package/build/component-definitions/focus-ring.definition.d.ts +13 -0
- package/build/component-definitions/focus-ring.definition.d.ts.map +1 -0
- package/build/component-definitions/focus-ring.definition.js +7 -0
- package/build/component-definitions/icon-button.definition.d.ts +718 -0
- package/build/component-definitions/icon-button.definition.d.ts.map +1 -0
- package/build/component-definitions/icon-button.definition.js +6 -0
- package/build/component-definitions/icon.definition.d.ts +10 -0
- package/build/component-definitions/icon.definition.d.ts.map +1 -0
- package/build/component-definitions/icon.definition.js +6 -0
- package/build/component-definitions/progress-indicator.definition.d.ts +52 -0
- package/build/component-definitions/progress-indicator.definition.d.ts.map +1 -0
- package/build/component-definitions/progress-indicator.definition.js +1 -0
- package/build/component-definitions/radio-button.definition.d.ts +29 -0
- package/build/component-definitions/radio-button.definition.d.ts.map +1 -0
- package/build/component-definitions/radio-button.definition.js +6 -0
- package/build/component-definitions/ripple.definition.d.ts +7 -0
- package/build/component-definitions/ripple.definition.d.ts.map +1 -0
- package/build/component-definitions/ripple.definition.js +6 -0
- package/build/component-definitions/switch.definition.d.ts +84 -0
- package/build/component-definitions/switch.definition.d.ts.map +1 -0
- package/build/component-definitions/switch.definition.js +6 -0
- package/build/components/button/base-button.d.ts +74 -0
- package/build/components/button/base-button.d.ts.map +1 -0
- package/build/components/button/base-button.js +6 -0
- package/build/components/button/button.d.ts +49 -0
- package/build/components/button/button.d.ts.map +1 -0
- package/build/components/button/button.js +1 -0
- package/build/components/button/button.style.d.ts +6 -0
- package/build/components/button/button.style.d.ts.map +1 -0
- package/build/components/button/button.style.js +618 -0
- package/build/components/button/elevated-button.d.ts +11 -0
- package/build/components/button/elevated-button.d.ts.map +1 -0
- package/build/components/button/elevated-button.js +1 -0
- package/build/components/button/filled-button.d.ts +11 -0
- package/build/components/button/filled-button.d.ts.map +1 -0
- package/build/components/button/filled-button.js +1 -0
- package/build/components/button/filled-tonal-button.d.ts +11 -0
- package/build/components/button/filled-tonal-button.d.ts.map +1 -0
- package/build/components/button/filled-tonal-button.js +1 -0
- package/build/components/button/outlined-button.d.ts +11 -0
- package/build/components/button/outlined-button.d.ts.map +1 -0
- package/build/components/button/outlined-button.js +1 -0
- package/build/components/button/text-button.d.ts +10 -0
- package/build/components/button/text-button.d.ts.map +1 -0
- package/build/components/button/text-button.js +1 -0
- package/build/components/button/togglable-button.d.ts +55 -0
- package/build/components/button/togglable-button.d.ts.map +1 -0
- package/build/components/button/togglable-button.js +1 -0
- package/build/components/button/toggle-elevated-button.d.ts +11 -0
- package/build/components/button/toggle-elevated-button.d.ts.map +1 -0
- package/build/components/button/toggle-elevated-button.js +1 -0
- package/build/components/button/toggle-filled-button.d.ts +11 -0
- package/build/components/button/toggle-filled-button.d.ts.map +1 -0
- package/build/components/button/toggle-filled-button.js +1 -0
- package/build/components/button/toggle-filled-tonal-button.d.ts +11 -0
- package/build/components/button/toggle-filled-tonal-button.d.ts.map +1 -0
- package/build/components/button/toggle-filled-tonal-button.js +1 -0
- package/build/components/button/toggle-outlined-button.d.ts +11 -0
- package/build/components/button/toggle-outlined-button.d.ts.map +1 -0
- package/build/components/button/toggle-outlined-button.js +1 -0
- package/build/components/dialog/base-dialog.d.ts +42 -0
- package/build/components/dialog/base-dialog.d.ts.map +1 -0
- package/build/components/dialog/base-dialog.js +1 -0
- package/build/components/dialog/basic-dialog.d.ts +10 -0
- package/build/components/dialog/basic-dialog.d.ts.map +1 -0
- package/build/components/dialog/basic-dialog.js +1 -0
- package/build/components/dialog/dialog-action.d.ts +62 -0
- package/build/components/dialog/dialog-action.d.ts.map +1 -0
- package/build/components/dialog/dialog-action.js +1 -0
- package/build/components/dialog/dialog-animations.d.ts +48 -0
- package/build/components/dialog/dialog-animations.d.ts.map +1 -0
- package/build/components/dialog/dialog-animations.js +6 -0
- package/build/components/dialog/dialog.style.d.ts +2 -0
- package/build/components/dialog/dialog.style.d.ts.map +1 -0
- package/build/components/dialog/dialog.style.js +217 -0
- package/build/components/divider/divider.d.ts +18 -0
- package/build/components/divider/divider.d.ts.map +1 -0
- package/build/components/divider/divider.js +1 -0
- package/build/components/divider/divider.style.d.ts +2 -0
- package/build/components/divider/divider.style.d.ts.map +1 -0
- package/build/components/divider/divider.style.js +6 -0
- package/build/components/elevation/elevation.d.ts +46 -0
- package/build/components/elevation/elevation.d.ts.map +1 -0
- package/build/components/elevation/elevation.js +1 -0
- package/build/components/elevation/elevation.style.d.ts +2 -0
- package/build/components/elevation/elevation.style.d.ts.map +1 -0
- package/build/components/elevation/elevation.style.js +6 -0
- package/build/components/fab/extended-fab.d.ts +36 -0
- package/build/components/fab/extended-fab.d.ts.map +1 -0
- package/build/components/fab/extended-fab.js +1 -0
- package/build/components/fab/extended-primary-fab.d.ts +10 -0
- package/build/components/fab/extended-primary-fab.d.ts.map +1 -0
- package/build/components/fab/extended-primary-fab.js +1 -0
- package/build/components/fab/extended-secondary-fab.d.ts +10 -0
- package/build/components/fab/extended-secondary-fab.d.ts.map +1 -0
- package/build/components/fab/extended-secondary-fab.js +1 -0
- package/build/components/fab/extended-tertiary-fab.d.ts +10 -0
- package/build/components/fab/extended-tertiary-fab.d.ts.map +1 -0
- package/build/components/fab/extended-tertiary-fab.js +1 -0
- package/build/components/fab/extended-tonal-primary-fab.d.ts +10 -0
- package/build/components/fab/extended-tonal-primary-fab.d.ts.map +1 -0
- package/build/components/fab/extended-tonal-primary-fab.js +1 -0
- package/build/components/fab/extended-tonal-secondary-fab.d.ts +10 -0
- package/build/components/fab/extended-tonal-secondary-fab.d.ts.map +1 -0
- package/build/components/fab/extended-tonal-secondary-fab.js +1 -0
- package/build/components/fab/extended-tonal-tertiary-fab.d.ts +10 -0
- package/build/components/fab/extended-tonal-tertiary-fab.d.ts.map +1 -0
- package/build/components/fab/extended-tonal-tertiary-fab.js +1 -0
- package/build/components/fab/fab.d.ts +45 -0
- package/build/components/fab/fab.d.ts.map +1 -0
- package/build/components/fab/fab.js +1 -0
- package/build/components/fab/fab.style.d.ts +13 -0
- package/build/components/fab/fab.style.d.ts.map +1 -0
- package/build/components/fab/fab.style.js +6 -0
- package/build/components/fab/primary-fab.d.ts +10 -0
- package/build/components/fab/primary-fab.d.ts.map +1 -0
- package/build/components/fab/primary-fab.js +1 -0
- package/build/components/fab/secondary-fab.d.ts +10 -0
- package/build/components/fab/secondary-fab.d.ts.map +1 -0
- package/build/components/fab/secondary-fab.js +1 -0
- package/build/components/fab/tertiary-fab.d.ts +10 -0
- package/build/components/fab/tertiary-fab.d.ts.map +1 -0
- package/build/components/fab/tertiary-fab.js +1 -0
- package/build/components/fab/tonal-primary-fab.d.ts +10 -0
- package/build/components/fab/tonal-primary-fab.d.ts.map +1 -0
- package/build/components/fab/tonal-primary-fab.js +1 -0
- package/build/components/fab/tonal-secondary-fab.d.ts +10 -0
- package/build/components/fab/tonal-secondary-fab.d.ts.map +1 -0
- package/build/components/fab/tonal-secondary-fab.js +1 -0
- package/build/components/fab/tonal-tertiary-fab.d.ts +10 -0
- package/build/components/fab/tonal-tertiary-fab.d.ts.map +1 -0
- package/build/components/fab/tonal-tertiary-fab.js +1 -0
- package/build/components/focus-ring/focus-ring.d.ts +56 -0
- package/build/components/focus-ring/focus-ring.d.ts.map +1 -0
- package/build/components/focus-ring/focus-ring.js +1 -0
- package/build/components/focus-ring/focus-ring.style.d.ts +2 -0
- package/build/components/focus-ring/focus-ring.style.d.ts.map +1 -0
- package/build/components/focus-ring/focus-ring.style.js +108 -0
- package/build/components/icon/icon.d.ts +50 -0
- package/build/components/icon/icon.d.ts.map +1 -0
- package/build/components/icon/icon.js +1 -0
- package/build/components/icon/icon.style.d.ts +2 -0
- package/build/components/icon/icon.style.d.ts.map +1 -0
- package/build/components/icon/icon.style.js +6 -0
- package/build/components/icon-button/base-icon-button.d.ts +62 -0
- package/build/components/icon-button/base-icon-button.d.ts.map +1 -0
- package/build/components/icon-button/base-icon-button.js +1 -0
- package/build/components/icon-button/filled-icon-button.d.ts +10 -0
- package/build/components/icon-button/filled-icon-button.d.ts.map +1 -0
- package/build/components/icon-button/filled-icon-button.js +1 -0
- package/build/components/icon-button/filled-tonal-icon-button.d.ts +10 -0
- package/build/components/icon-button/filled-tonal-icon-button.d.ts.map +1 -0
- package/build/components/icon-button/filled-tonal-icon-button.js +1 -0
- package/build/components/icon-button/icon-button.d.ts +19 -0
- package/build/components/icon-button/icon-button.d.ts.map +1 -0
- package/build/components/icon-button/icon-button.js +1 -0
- package/build/components/icon-button/icon-button.style.d.ts +5 -0
- package/build/components/icon-button/icon-button.style.d.ts.map +1 -0
- package/build/components/icon-button/icon-button.style.js +411 -0
- package/build/components/icon-button/outlined-icon-button.d.ts +11 -0
- package/build/components/icon-button/outlined-icon-button.d.ts.map +1 -0
- package/build/components/icon-button/outlined-icon-button.js +1 -0
- package/build/components/icon-button/standard-icon-button.d.ts +10 -0
- package/build/components/icon-button/standard-icon-button.d.ts.map +1 -0
- package/build/components/icon-button/standard-icon-button.js +1 -0
- package/build/components/icon-button/togglable-icon-button.d.ts +39 -0
- package/build/components/icon-button/togglable-icon-button.d.ts.map +1 -0
- package/build/components/icon-button/togglable-icon-button.js +1 -0
- package/build/components/icon-button/toggle-filled-icon-button.d.ts +10 -0
- package/build/components/icon-button/toggle-filled-icon-button.d.ts.map +1 -0
- package/build/components/icon-button/toggle-filled-icon-button.js +1 -0
- package/build/components/icon-button/toggle-filled-tonal-icon-button.d.ts +10 -0
- package/build/components/icon-button/toggle-filled-tonal-icon-button.d.ts.map +1 -0
- package/build/components/icon-button/toggle-filled-tonal-icon-button.js +1 -0
- package/build/components/icon-button/toggle-outlined-icon-button.d.ts +11 -0
- package/build/components/icon-button/toggle-outlined-icon-button.d.ts.map +1 -0
- package/build/components/icon-button/toggle-outlined-icon-button.js +1 -0
- package/build/components/icon-button/toggle-standard-icon-button.d.ts +10 -0
- package/build/components/icon-button/toggle-standard-icon-button.d.ts.map +1 -0
- package/build/components/icon-button/toggle-standard-icon-button.js +1 -0
- package/build/components/progress-indicator/base-progress-indicator.d.ts +28 -0
- package/build/components/progress-indicator/base-progress-indicator.d.ts.map +1 -0
- package/build/components/progress-indicator/base-progress-indicator.js +1 -0
- package/build/components/progress-indicator/linear-progress-indicator.d.ts +29 -0
- package/build/components/progress-indicator/linear-progress-indicator.d.ts.map +1 -0
- package/build/components/progress-indicator/linear-progress-indicator.js +1 -0
- package/build/components/progress-indicator/progress-indicator.style.d.ts +2 -0
- package/build/components/progress-indicator/progress-indicator.style.d.ts.map +1 -0
- package/build/components/progress-indicator/progress-indicator.style.js +271 -0
- package/build/components/radio-button/radio-button-selection-controller.d.ts +81 -0
- package/build/components/radio-button/radio-button-selection-controller.d.ts.map +1 -0
- package/build/components/radio-button/radio-button-selection-controller.js +6 -0
- package/build/components/radio-button/radio-button.d.ts +50 -0
- package/build/components/radio-button/radio-button.d.ts.map +1 -0
- package/build/components/radio-button/radio-button.js +1 -0
- package/build/components/radio-button/radio-button.style.d.ts +2 -0
- package/build/components/radio-button/radio-button.style.d.ts.map +1 -0
- package/build/components/radio-button/radio-button.style.js +143 -0
- package/build/components/ripple/ripple-action.d.ts +52 -0
- package/build/components/ripple/ripple-action.d.ts.map +1 -0
- package/build/components/ripple/ripple-action.js +10 -0
- package/build/components/ripple/ripple.d.ts +32 -0
- package/build/components/ripple/ripple.d.ts.map +1 -0
- package/build/components/ripple/ripple.js +1 -0
- package/build/components/ripple/ripple.style.d.ts +2 -0
- package/build/components/ripple/ripple.style.d.ts.map +1 -0
- package/build/components/ripple/ripple.style.js +6 -0
- package/build/components/switch/switch.d.ts +45 -0
- package/build/components/switch/switch.d.ts.map +1 -0
- package/build/components/switch/switch.js +1 -0
- package/build/components/switch/switch.style.d.ts +2 -0
- package/build/components/switch/switch.style.d.ts.map +1 -0
- package/build/components/switch/switch.style.js +329 -0
- package/build/components/typography/typography.d.ts +44 -0
- package/build/components/typography/typography.d.ts.map +1 -0
- package/build/components/typography/typography.js +1 -0
- package/build/components/typography/typography.styles.d.ts +3 -0
- package/build/components/typography/typography.styles.d.ts.map +1 -0
- package/build/components/typography/typography.styles.js +6 -0
- package/build/custom-element-Dz3n6kSt.js +6 -0
- package/build/definitions.d.ts +15 -0
- package/build/definitions.d.ts.map +1 -0
- package/build/definitions.js +1 -0
- package/build/easing-5hHInU7b.js +1 -0
- package/build/elevation-dUQez_WX.js +1 -0
- package/build/lit-element-Bf8D1KRw.js +22 -0
- package/build/property-CHB_6zYv.js +6 -0
- package/build/query-DifSdHBD.js +11 -0
- package/build/shape-CrZ0CLVJ.js +1 -0
- package/build/state-B54YIR_M.js +6 -0
- package/build/state-C-haZXan.js +1 -0
- package/build/tslib.es6-CmLYFWVC.js +1 -0
- package/build/typescale-Bh1NLwSE.js +1 -0
- package/build/utils/aria/aria.d.ts +71 -0
- package/build/utils/aria/aria.d.ts.map +1 -0
- package/build/utils/aria/aria.js +6 -0
- package/build/utils/aria/delegate.d.ts +55 -0
- package/build/utils/aria/delegate.d.ts.map +1 -0
- package/build/utils/aria/delegate.js +7 -0
- package/build/utils/behaviors/constraint-validation.d.ts +134 -0
- package/build/utils/behaviors/constraint-validation.d.ts.map +1 -0
- package/build/utils/behaviors/constraint-validation.js +6 -0
- package/build/utils/behaviors/element-internals.d.ts +46 -0
- package/build/utils/behaviors/element-internals.d.ts.map +1 -0
- package/build/utils/behaviors/element-internals.js +6 -0
- package/build/utils/behaviors/mixin.d.ts +55 -0
- package/build/utils/behaviors/mixin.d.ts.map +1 -0
- package/build/utils/behaviors/mixin.js +1 -0
- package/build/utils/behaviors/validators/checkbox-validator.d.ts +36 -0
- package/build/utils/behaviors/validators/checkbox-validator.d.ts.map +1 -0
- package/build/utils/behaviors/validators/checkbox-validator.js +6 -0
- package/build/utils/behaviors/validators/radio-validator.d.ts +39 -0
- package/build/utils/behaviors/validators/radio-validator.d.ts.map +1 -0
- package/build/utils/behaviors/validators/radio-validator.js +6 -0
- package/build/utils/behaviors/validators/select-validator.d.ts +36 -0
- package/build/utils/behaviors/validators/select-validator.d.ts.map +1 -0
- package/build/utils/behaviors/validators/select-validator.js +6 -0
- package/build/utils/behaviors/validators/text-field-validator.d.ts +111 -0
- package/build/utils/behaviors/validators/text-field-validator.d.ts.map +1 -0
- package/build/utils/behaviors/validators/text-field-validator.js +6 -0
- package/build/utils/behaviors/validators/validator.d.ts +97 -0
- package/build/utils/behaviors/validators/validator.d.ts.map +1 -0
- package/build/utils/behaviors/validators/validator.js +6 -0
- package/build/utils/controller/attachable-controller.d.ts +116 -0
- package/build/utils/controller/attachable-controller.d.ts.map +1 -0
- package/build/utils/controller/attachable-controller.js +9 -0
- package/build/utils/controller/form-submitter.d.ts +71 -0
- package/build/utils/controller/form-submitter.d.ts.map +1 -0
- package/build/utils/controller/form-submitter.js +6 -0
- package/build/utils/event/dispatch-hook.d.ts +86 -0
- package/build/utils/event/dispatch-hook.d.ts.map +1 -0
- package/build/utils/event/dispatch-hook.js +6 -0
- package/build/utils/event/form-label-activation.d.ts +56 -0
- package/build/utils/event/form-label-activation.d.ts.map +1 -0
- package/build/utils/event/form-label-activation.js +6 -0
- package/build/utils/event/redispatch-event.d.ts +28 -0
- package/build/utils/event/redispatch-event.d.ts.map +1 -0
- package/build/utils/event/redispatch-event.js +6 -0
- package/build/utils/form/form-associated.d.ts +200 -0
- package/build/utils/form/form-associated.d.ts.map +1 -0
- package/build/utils/form/form-associated.js +1 -0
- package/build/utils/string/to-kebab-case.d.ts +11 -0
- package/build/utils/string/to-kebab-case.d.ts.map +1 -0
- package/build/utils/string/to-kebab-case.js +6 -0
- package/build/utils/tokens/create-logic-shape-tokens.d.ts +14 -0
- package/build/utils/tokens/create-logic-shape-tokens.d.ts.map +1 -0
- package/build/utils/tokens/create-logic-shape-tokens.js +6 -0
- package/build/utils/tokens/create-var.d.ts +14 -0
- package/build/utils/tokens/create-var.d.ts.map +1 -0
- package/build/utils/tokens/create-var.js +6 -0
- package/build/utils/tokens/create-wrapped-tokens.d.ts +24 -0
- package/build/utils/tokens/create-wrapped-tokens.d.ts.map +1 -0
- package/build/utils/tokens/create-wrapped-tokens.js +6 -0
- package/build/utils/tokens/exclude-tokens.d.ts +7 -0
- package/build/utils/tokens/exclude-tokens.d.ts.map +1 -0
- package/build/utils/tokens/exclude-tokens.js +6 -0
- package/build/utils/tokens/index.d.ts +12 -0
- package/build/utils/tokens/index.d.ts.map +1 -0
- package/build/utils/tokens/index.js +1 -0
- package/build/utils/tokens/override-component-tokens.d.ts +34 -0
- package/build/utils/tokens/override-component-tokens.d.ts.map +1 -0
- package/build/utils/tokens/override-component-tokens.js +6 -0
- package/build/utils/tokens/string-tokens.d.ts +14 -0
- package/build/utils/tokens/string-tokens.d.ts.map +1 -0
- package/build/utils/tokens/string-tokens.js +6 -0
- package/build/utils/uuid/generate-uuid.d.ts +19 -0
- package/build/utils/uuid/generate-uuid.d.ts.map +1 -0
- package/build/utils/uuid/generate-uuid.js +6 -0
- package/build/utils.d.ts +3 -0
- package/build/utils.d.ts.map +1 -0
- package/build/utils.js +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './component-definitions/badge.definition';
|
|
2
|
+
export * from './component-definitions/button.definition';
|
|
3
|
+
export * from './component-definitions/checkbox.definition';
|
|
4
|
+
export * from './component-definitions/dialog.definition';
|
|
5
|
+
export * from './component-definitions/divider.definition';
|
|
6
|
+
export * from './component-definitions/elevation.definition';
|
|
7
|
+
export * from './component-definitions/fab.definition';
|
|
8
|
+
export * from './component-definitions/focus-ring.definition';
|
|
9
|
+
export * from './component-definitions/icon-button.definition';
|
|
10
|
+
export * from './component-definitions/icon.definition';
|
|
11
|
+
export * from './component-definitions/progress-indicator.definition';
|
|
12
|
+
export * from './component-definitions/radio-button.definition';
|
|
13
|
+
export * from './component-definitions/ripple.definition';
|
|
14
|
+
export * from './component-definitions/switch.definition';
|
|
15
|
+
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../src/definitions.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAA;AACxD,cAAc,2CAA2C,CAAA;AACzD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,2CAA2C,CAAA;AACzD,cAAc,4CAA4C,CAAA;AAC1D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,wCAAwC,CAAA;AACtD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,gDAAgD,CAAA;AAC9D,cAAc,yCAAyC,CAAA;AACvD,cAAc,uDAAuD,CAAA;AACrE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,2CAA2C,CAAA;AACzD,cAAc,2CAA2C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{BadgeDefinition}from"./component-definitions/badge.definition.js";export{ElevatedButtonDefinition,FilledButtonDefinition,FilledTonalButtonDefinition,OutlinedButtonDefinition,TextButtonDefinition}from"./component-definitions/button.definition.js";export{CheckboxDefinition}from"./component-definitions/checkbox.definition.js";export{BasicDialogDefinition,FullscreenDialogDefinition}from"./component-definitions/dialog.definition.js";export{DividerDefinition}from"./component-definitions/divider.definition.js";export{ElevationDefinition}from"./component-definitions/elevation.definition.js";export{PrimaryExtendedFabDefinition,PrimaryFabDefinition,SecondaryExtendedFabDefinition,SecondaryFabDefinition,TertiaryExtendedFabDefinition,TertiaryFabDefinition,TonalPrimaryExtendedFabDefinition,TonalPrimaryFabDefinition,TonalSecondaryExtendedFabDefinition,TonalSecondaryFabDefinition,TonalTertiaryExtendedFabDefinition,TonalTertiaryFabDefinition}from"./component-definitions/fab.definition.js";export{FocusRingDefinition}from"./component-definitions/focus-ring.definition.js";export{FilledIconButtonDefinition,FilledTonalIconButtonDefinition,OutlinedIconButtonDefinition,StandardIconButtonDefinition}from"./component-definitions/icon-button.definition.js";export{IconDefinition}from"./component-definitions/icon.definition.js";export{CircularProgressIndicatorDefinition,LinearProgressIndicatorDefinition}from"./component-definitions/progress-indicator.definition.js";export{RadioButtonDefinition}from"./component-definitions/radio-button.definition.js";export{RippleDefinition}from"./component-definitions/ripple.definition.js";export{SwitchDefinition}from"./component-definitions/switch.definition.js";import"./color-CigMJnjV.js";import"./shape-CrZ0CLVJ.js";import"./typescale-Bh1NLwSE.js";import"./elevation-dUQez_WX.js";import"./state-C-haZXan.js";import"./utils/tokens/create-logic-shape-tokens.js";import"./lit-element-Bf8D1KRw.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class e{static Standard="cubic-bezier(0.20, 0.00, 0.0, 1.00)";static StandardAccelerate="cubic-bezier(0.30, 0.00, 1.0, 1.00)";static StandardDecelerate="cubic-bezier(0.00, 0.00, 0.0, 1.00)";static Emphasized="cubic-bezier(0.20, 0.00, 0.0, 1.00)";static EmphasizedAccelerate="cubic-bezier(0.30, 0.00, 0.8, 0.15)";static EmphasizedDecelerate="cubic-bezier(0.05, 0.70, 0.1, 1.00)";static Legacy="cubic-bezier(0.40, 0.00, 0.2, 1.00)";static LegacyAccelerate="cubic-bezier(0.40, 0.00, 1.0, 1.00)";static LegacyDecelerate="cubic-bezier(0.00, 0.00, 0.2, 1.00)";static Linear="cubic-bezier(0.00, 0.00, 1.0, 1.00)";static ExpressiveFastSpatial="cubic-bezier(0.42, 1.67, 0.21, 0.90)";static ExpressiveDefaultSpatial="cubic-bezier(0.38, 1.21, 0.22, 1.00)";static ExpressiveSlowSpatial="cubic-bezier(0.39, 1.29, 0.35, 0.98)";static ExpressiveFastEffects="cubic-bezier(0.31, 0.94, 0.34, 1.00)";static ExpressiveDefaultEffects="cubic-bezier(0.34, 0.80, 0.34, 1.00)";static ExpressiveSlowEffects="cubic-bezier(0.34, 0.88, 0.34, 1.00)";static StandardFastSpatial="cubic-bezier(0.27, 1.06, 0.18, 1.00)";static StandardDefaultSpatial="cubic-bezier(0.27, 1.06, 0.18, 1.00)";static StandardSlowSpatial="cubic-bezier(0.27, 1.06, 0.18, 1.00)";static StandardFastEffects="cubic-bezier(0.31, 0.94, 0.34, 1.00)";static StandardDefaultEffects="cubic-bezier(0.34, 0.80, 0.34, 1.00)";static StandardSlowEffects="cubic-bezier(0.34, 0.88, 0.34, 1.00)"}export{e as E};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class e{static Level0="var(--md-sys-elevation-level-0, 0)";static Level1="var(--md-sys-elevation-level-1, 1)";static Level2="var(--md-sys-elevation-level-2, 3)";static Level3="var(--md-sys-elevation-level-3, 6)";static Level4="var(--md-sys-elevation-level-4, 8)";static Level5="var(--md-sys-elevation-level-5, 12)"}export{e as E};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),i=new WeakMap;let n=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=i.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(s,t))}return t}toString(){return this.cssText}};const r=t=>new n("string"==typeof t?t:t+"",void 0,s),o=(t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new n(i,t,s)},h=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t,{is:a,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:d,getOwnPropertySymbols:p,getPrototypeOf:u}=Object,$=globalThis,_=$.trustedTypes,f=_?_.emptyScript:"",A=$.reactiveElementPolyfillSupport,m=(t,e)=>t,y={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},g=(t,e)=>!a(t,e),v={attribute:!0,type:String,converter:y,reflect:!1,useDefault:!1,hasChanged:g};
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2017 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*/Symbol.metadata??=Symbol("metadata"),$.litPropertyMetadata??=new WeakMap;let E=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const r=i?.call(this);n?.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??v}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=u(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,e=[...d(t),...p(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((s,i)=>{if(e)s.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of i){const i=document.createElement("style"),n=t.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,s.appendChild(i)}})(s,this.constructor.elementStyles),s}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const n=(void 0!==s.converter?.toAttribute?s.converter:y).toAttribute(e,s.type);this._$Em=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:y;this._$Em=i,this[i]=n.fromAttribute(e,t.type)??this._$Ej?.get(i)??null,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,n=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??g)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},r){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==n||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[m("elementProperties")]=new Map,E[m("finalized")]=new Map,A?.({ReactiveElement:E}),($.reactiveElementVersions??=[]).push("2.1.0");
|
|
12
|
+
/**
|
|
13
|
+
* @license
|
|
14
|
+
* Copyright 2017 Google LLC
|
|
15
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
+
*/
|
|
17
|
+
const S=globalThis,b=S.trustedTypes,w=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,x="?"+P,U=`<${x}>`,O=document,H=()=>O.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,N="[ \t\n\f\r]",R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,D=/>/g,L=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,z=/"/g,B=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...s)=>({_$litType$:t,strings:e,values:s}))(1),W=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),q=new WeakMap,J=O.createTreeWalker(O,129);function K(t,e){if(!T(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==w?w.createHTML(e):e}const Z=(t,e)=>{const s=t.length-1,i=[];let n,r=2===e?"<svg>":3===e?"<math>":"",o=R;for(let e=0;e<s;e++){const s=t[e];let h,a,l=-1,c=0;for(;c<s.length&&(o.lastIndex=c,a=o.exec(s),null!==a);)c=o.lastIndex,o===R?"!--"===a[1]?o=k:void 0!==a[1]?o=D:void 0!==a[2]?(B.test(a[2])&&(n=RegExp("</"+a[2],"g")),o=L):void 0!==a[3]&&(o=L):o===L?">"===a[0]?(o=n??R,l=-1):void 0===a[1]?l=-2:(l=o.lastIndex-a[2].length,h=a[1],o=void 0===a[3]?L:'"'===a[3]?z:j):o===z||o===j?o=L:o===k||o===D?o=R:(o=L,n=void 0);const d=o===L&&t[e+1].startsWith("/>")?" ":"";r+=o===R?s+U:l>=0?(i.push(h),s.slice(0,l)+C+s.slice(l)+P+d):s+P+(-2===l?e:d)}return[K(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class F{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0;const o=t.length-1,h=this.parts,[a,l]=Z(t,e);if(this.el=F.createElement(a,s),J.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=J.nextNode())&&h.length<o;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(C)){const e=l[r++],s=i.getAttribute(t).split(P),o=/([.?@])?(.*)/.exec(e);h.push({type:1,index:n,name:o[2],strings:s,ctor:"."===o[1]?tt:"?"===o[1]?et:"@"===o[1]?st:Y}),i.removeAttribute(t)}else t.startsWith(P)&&(h.push({type:6,index:n}),i.removeAttribute(t));if(B.test(i.tagName)){const t=i.textContent.split(P),e=t.length-1;if(e>0){i.textContent=b?b.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],H()),J.nextNode(),h.push({type:2,index:++n});i.append(t[e],H())}}}else if(8===i.nodeType)if(i.data===x)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(P,t+1));)h.push({type:7,index:n}),t+=P.length-1}n++}}static createElement(t,e){const s=O.createElement("template");return s.innerHTML=t,s}}function G(t,e,s=t,i){if(e===W)return e;let n=void 0!==i?s._$Co?.[i]:s._$Cl;const r=M(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=n:s._$Cl=n),void 0!==n&&(e=G(t,n._$AS(t,e.values),n,i)),e}class Q{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??O).importNode(e,!0);J.currentNode=i;let n=J.nextNode(),r=0,o=0,h=s[0];for(;void 0!==h;){if(r===h.index){let e;2===h.type?e=new X(n,n.nextSibling,this,t):1===h.type?e=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(e=new it(n,this,t)),this._$AV.push(e),h=s[++o]}r!==h?.index&&(n=J.nextNode(),r++)}return J.currentNode=O,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class X{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),M(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==W&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>T(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==V&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=F.createElement(K(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new Q(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new F(t)),e}k(t){T(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new X(this.O(H()),this.O(H()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Y{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=V}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=G(this,t,e,0),r=!M(t)||t!==this._$AH&&t!==W,r&&(this._$AH=t);else{const i=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=G(this,i[s+o],e,o),h===W&&(h=this._$AH[o]),r||=!M(h)||h!==this._$AH[o],h===V?t=V:t!==V&&(t+=(h??"")+n[o+1]),this._$AH[o]=h}r&&!i&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class tt extends Y{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}class et extends Y{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==V)}}class st extends Y{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=G(this,t,e,0)??V)===W)return;const s=this._$AH,i=t===V&&s!==V||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==V&&(s===V||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const nt=S.litHtmlPolyfillSupport;nt?.(F,X),(S.litHtmlVersions??=[]).push("3.3.0");const rt=(t,e,s)=>{const i=s?.renderBefore??e;let n=i._$litPart$;if(void 0===n){const t=s?.renderBefore??null;i._$litPart$=n=new X(e.insertBefore(H(),t),t,void 0,s??{})}return n._$AI(t),n
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/},ot=globalThis;class ht extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=rt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return W}}ht._$litElement$=!0,ht.finalized=!0,ot.litElementHydrateSupport?.({LitElement:ht});const at=ot.litElementPolyfillSupport;at?.({LitElement:ht}),(ot.litElementVersions??=[]).push("4.2.0");export{rt as B,V as E,W as T,ht as a,g as f,o as i,r,y as u,I as x};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{f as t,u as e}from"./lit-element-Bf8D1KRw.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/const r={attribute:!0,type:String,converter:e,reflect:!1,hasChanged:t},o=(t=r,e,o)=>{const{kind:s,metadata:n}=o;let a=globalThis.litPropertyMetadata.get(n);if(void 0===a&&globalThis.litPropertyMetadata.set(n,a=new Map),"setter"===s&&((t=Object.create(t)).wrapped=!0),a.set(o.name,t),"accessor"===s){const{name:r}=o;return{set(o){const s=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,s,t)},init(e){return void 0!==e&&this.C(r,void 0,t,e),e}}}if("setter"===s){const{name:r}=o;return function(o){const s=this[r];e.call(this,o),this.requestUpdate(r,s,t)}}throw Error("Unsupported decorator location: "+s)};function s(t){return(e,r)=>"object"==typeof r?o(t,e,r):((t,e,r)=>{const o=e.hasOwnProperty(r);return e.constructor.createProperty(r,t),o?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}export{s as n};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const e=(e,r,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&"object"!=typeof r&&Object.defineProperty(e,r,t),t);
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2017 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*/function r(r,t){return(t,o,n)=>e(t,o,{get(){return e=this,e.renderRoot?.querySelector(r)??null;var e}})}export{e as a,r as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class a{static None="var(--md-sys-shape-corner-none, 0px)";static ExtraSmall="var(--md-sys-shape-corner-extra-small, 4px)";static Small="var(--md-sys-shape-corner-small, 8px)";static Medium="var(--md-sys-shape-corner-medium, 12px)";static Large="var(--md-sys-shape-corner-large, 16px)";static LargeIncreased="var(--md-sys-shape-corner-large-increased, 20px)";static ExtraLarge="var(--md-sys-shape-corner-extra-large, 28px)";static ExtraLargeIncreased="var(--md-sys-shape-corner-extra-large-increased, 32px)";static ExtraExtraLarge="var(--md-sys-shape-corner-extra-extra-large, 48px)";static Full="var(--md-sys-shape-corner-full, calc(infinity * 1px))"}export{a as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class t{static DraggedStateLayerOpacity="0.16";static FocusedStateLayerOpacity="0.12";static HoveredStateLayerOpacity="0.08";static PressedStateLayerOpacity="0.12";static FocusIndicator=class{static Thickness="3px";static OuterOffset="2px"}}export{t as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,r,t,o){var c,f=arguments.length,n=f<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,r,t,o);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(n=(f<3?c(n):f>3?c(r,t,n):c(r,t))||n);return f>3&&n&&Object.defineProperty(r,t,n),n}"function"==typeof SuppressedError&&SuppressedError;export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class i{static Brand="Roboto";static Plain="Roboto";static WeightBold="700";static WeightMedium="500";static WeightRegular="400"}class a{static DisplayLargeFont=i.Plain;static DisplayLargeSize="57px";static DisplayLargeTracking="-0.25px";static DisplayLargeLineHeight="64px";static DisplayLargeWeight=i.WeightRegular;static DisplayMediumFont=i.Plain;static DisplayMediumSize="45px";static DisplayMediumTracking="0px";static DisplayMediumLineHeight="52px";static DisplayMediumWeight=i.WeightRegular;static DisplaySmallFont=i.Plain;static DisplaySmallSize="36px";static DisplaySmallTracking="0px";static DisplaySmallLineHeight="44px";static DisplaySmallWeight=i.WeightRegular;static HeadlineLargeFont=i.Plain;static HeadlineLargeSize="32px";static HeadlineLargeTracking="0px";static HeadlineLargeLineHeight="40px";static HeadlineLargeWeight=i.WeightRegular;static HeadlineMediumFont=i.Plain;static HeadlineMediumSize="28px";static HeadlineMediumTracking="0px";static HeadlineMediumLineHeight="36px";static HeadlineMediumWeight=i.WeightRegular;static HeadlineSmallFont=i.Plain;static HeadlineSmallSize="24px";static HeadlineSmallTracking="0px";static HeadlineSmallLineHeight="32px";static HeadlineSmallWeight=i.WeightRegular;static TitleLargeFont=i.Plain;static TitleLargeSize="22px";static TitleLargeTracking="0px";static TitleLargeLineHeight="28px";static TitleLargeWeight=i.WeightRegular;static TitleMediumFont=i.Plain;static TitleMediumSize="16px";static TitleMediumTracking="0.15px";static TitleMediumLineHeight="24px";static TitleMediumWeight=i.WeightMedium;static TitleSmallFont=i.Plain;static TitleSmallSize="14px";static TitleSmallTracking="0.1px";static TitleSmallLineHeight="20px";static TitleSmallWeight=i.WeightMedium;static BodyLargeFont=i.Plain;static BodyLargeSize="16px";static BodyLargeTracking="0.5px";static BodyLargeLineHeight="24px";static BodyLargeWeight=i.WeightRegular;static BodyMediumFont=i.Plain;static BodyMediumSize="14px";static BodyMediumTracking="0.25px";static BodyMediumLineHeight="20px";static BodyMediumWeight=i.WeightRegular;static BodySmallFont=i.Plain;static BodySmallSize="12px";static BodySmallTracking="0.4px";static BodySmallLineHeight="16px";static BodySmallWeight=i.WeightRegular;static LabelLargeFont=i.Plain;static LabelLargeSize="14px";static LabelLargeTracking="0.1px";static LabelLargeLineHeight="20px";static LabelLargeWeight=i.WeightMedium;static LabelMediumFont=i.Plain;static LabelMediumSize="12px";static LabelMediumTracking="0.5px";static LabelMediumLineHeight="16px";static LabelMediumWeight=i.WeightMedium;static LabelSmallFont=i.Plain;static LabelSmallSize="11px";static LabelSmallTracking="0.5px";static LabelSmallLineHeight="16px";static LabelSmallWeight=i.WeightMedium;static EmphasizedDisplayLargeFont=i.Plain;static EmphasizedDisplayLargeSize="57px";static EmphasizedDisplayLargeTracking="-0.25px";static EmphasizedDisplayLargeLineHeight="64px";static EmphasizedDisplayLargeWeight=i.WeightMedium;static EmphasizedDisplayMediumFont=i.Plain;static EmphasizedDisplayMediumSize="45px";static EmphasizedDisplayMediumTracking="0px";static EmphasizedDisplayMediumLineHeight="52px";static EmphasizedDisplayMediumWeight=i.WeightMedium;static EmphasizedDisplaySmallFont=i.Plain;static EmphasizedDisplaySmallSize="36px";static EmphasizedDisplaySmallTracking="0px";static EmphasizedDisplaySmallLineHeight="44px";static EmphasizedDisplaySmallWeight=i.WeightMedium;static EmphasizedHeadlineLargeFont=i.Plain;static EmphasizedHeadlineLargeSize="32px";static EmphasizedHeadlineLargeTracking="0px";static EmphasizedHeadlineLargeLineHeight="40px";static EmphasizedHeadlineLargeWeight=i.WeightMedium;static EmphasizedHeadlineMediumFont=i.Plain;static EmphasizedHeadlineMediumSize="28px";static EmphasizedHeadlineMediumTracking="0px";static EmphasizedHeadlineMediumLineHeight="36px";static EmphasizedHeadlineMediumWeight=i.WeightMedium;static EmphasizedHeadlineSmallFont=i.Plain;static EmphasizedHeadlineSmallSize="24px";static EmphasizedHeadlineSmallTracking="0px";static EmphasizedHeadlineSmallLineHeight="32px";static EmphasizedHeadlineSmallWeight=i.WeightMedium;static EmphasizedTitleLargeFont=i.Plain;static EmphasizedTitleLargeSize="22px";static EmphasizedTitleLargeTracking="0px";static EmphasizedTitleLargeLineHeight="28px";static EmphasizedTitleLargeWeight=i.WeightMedium;static EmphasizedTitleMediumFont=i.Plain;static EmphasizedTitleMediumSize="16px";static EmphasizedTitleMediumTracking="0.15px";static EmphasizedTitleMediumLineHeight="24px";static EmphasizedTitleMediumWeight=i.WeightBold;static EmphasizedTitleSmallFont=i.Plain;static EmphasizedTitleSmallSize="14px";static EmphasizedTitleSmallTracking="0.1px";static EmphasizedTitleSmallLineHeight="20px";static EmphasizedTitleSmallWeight=i.WeightBold;static EmphasizedBodyLargeFont=i.Plain;static EmphasizedBodyLargeSize="16px";static EmphasizedBodyLargeTracking="0.5px";static EmphasizedBodyLargeLineHeight="24px";static EmphasizedBodyLargeWeight=i.WeightMedium;static EmphasizedBodyMediumFont=i.Plain;static EmphasizedBodyMediumSize="14px";static EmphasizedBodyMediumTracking="0.25px";static EmphasizedBodyMediumLineHeight="20px";static EmphasizedBodyMediumWeight=i.WeightMedium;static EmphasizedBodySmallFont=i.Plain;static EmphasizedBodySmallSize="12px";static EmphasizedBodySmallTracking="0.4px";static EmphasizedBodySmallLineHeight="16px";static EmphasizedBodySmallWeight=i.WeightMedium;static EmphasizedLabelLargeFont=i.Plain;static EmphasizedLabelLargeSize="14px";static EmphasizedLabelLargeTracking="0.1px";static EmphasizedLabelLargeLineHeight="20px";static EmphasizedLabelLargeWeight=i.WeightBold;static EmphasizedLabelMediumFont=i.Plain;static EmphasizedLabelMediumSize="12px";static EmphasizedLabelMediumTracking="0.5px";static EmphasizedLabelMediumLineHeight="16px";static EmphasizedLabelMediumWeight=i.WeightBold;static EmphasizedLabelSmallFont=i.Plain;static EmphasizedLabelSmallSize="11px";static EmphasizedLabelSmallTracking="0.5px";static EmphasizedLabelSmallLineHeight="16px";static EmphasizedLabelSmallWeight=i.WeightBold}export{a as T};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
export type AriaProperty = keyof ARIAMixin;
|
|
7
|
+
export declare const AriaProperties: Set<"ariaAtomic" | "ariaAutoComplete" | "ariaBrailleLabel" | "ariaBrailleRoleDescription" | "ariaBusy" | "ariaChecked" | "ariaColCount" | "ariaColIndex" | "ariaColIndexText" | "ariaColSpan" | "ariaCurrent" | "ariaDescription" | "ariaDisabled" | "ariaExpanded" | "ariaHasPopup" | "ariaHidden" | "ariaInvalid" | "ariaKeyShortcuts" | "ariaLabel" | "ariaLevel" | "ariaLive" | "ariaModal" | "ariaMultiLine" | "ariaMultiSelectable" | "ariaOrientation" | "ariaPlaceholder" | "ariaPosInSet" | "ariaPressed" | "ariaReadOnly" | "ariaRelevant" | "ariaRequired" | "ariaRoleDescription" | "ariaRowCount" | "ariaRowIndex" | "ariaRowIndexText" | "ariaRowSpan" | "ariaSelected" | "ariaSetSize" | "ariaSort" | "ariaValueMax" | "ariaValueMin" | "ariaValueNow" | "ariaValueText" | "role">;
|
|
8
|
+
type AriaPropertyToAttribute<K extends string> = K extends `aria${infer Suffix}Element${infer OptS}` ? `aria-${Lowercase<Suffix>}` : K extends `aria${infer Suffix}` ? `aria-${Lowercase<Suffix>}` : K;
|
|
9
|
+
export type AriaAttribute = AriaPropertyToAttribute<AriaProperty>;
|
|
10
|
+
export declare const AriaAttributes: Set<AriaAttribute>;
|
|
11
|
+
export declare function isARIAAttribute(attribute: string): attribute is AriaAttribute;
|
|
12
|
+
export declare function ariaPropertyToAttribute<K extends AriaProperty>(property: K): AriaPropertyToAttribute<K>;
|
|
13
|
+
/**
|
|
14
|
+
* An extension of `ARIAMixin` that enforces strict value types for aria
|
|
15
|
+
* properties.
|
|
16
|
+
*
|
|
17
|
+
* This is needed for correct typing in render functions with lit analyzer.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* render() {
|
|
21
|
+
* const {ariaLabel} = this as ARIAMixinStrict;
|
|
22
|
+
* return html`
|
|
23
|
+
* <button aria-label=${ariaLabel || nothing}>
|
|
24
|
+
* <slot></slot>
|
|
25
|
+
* </button>
|
|
26
|
+
* `;
|
|
27
|
+
* }
|
|
28
|
+
*/
|
|
29
|
+
export interface AriaMixinStrict extends ARIAMixin {
|
|
30
|
+
ariaAtomic: 'true' | 'false' | null;
|
|
31
|
+
ariaAutoComplete: 'none' | 'inline' | 'list' | 'both' | null;
|
|
32
|
+
ariaBusy: 'true' | 'false' | null;
|
|
33
|
+
ariaChecked: 'true' | 'false' | null;
|
|
34
|
+
ariaColCount: `${number}` | null;
|
|
35
|
+
ariaColIndex: `${number}` | null;
|
|
36
|
+
ariaColSpan: `${number}` | null;
|
|
37
|
+
ariaCurrent: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false' | null;
|
|
38
|
+
ariaDisabled: 'true' | 'false' | null;
|
|
39
|
+
ariaExpanded: 'true' | 'false' | null;
|
|
40
|
+
ariaHasPopup: 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | null;
|
|
41
|
+
ariaHidden: 'true' | 'false' | null;
|
|
42
|
+
ariaInvalid: 'true' | 'false' | null;
|
|
43
|
+
ariaKeyShortcuts: string | null;
|
|
44
|
+
ariaLabel: string | null;
|
|
45
|
+
ariaLevel: `${number}` | null;
|
|
46
|
+
ariaLive: 'assertive' | 'off' | 'polite' | null;
|
|
47
|
+
ariaModal: 'true' | 'false' | null;
|
|
48
|
+
ariaMultiLine: 'true' | 'false' | null;
|
|
49
|
+
ariaMultiSelectable: 'true' | 'false' | null;
|
|
50
|
+
ariaOrientation: 'horizontal' | 'vertical' | 'undefined' | null;
|
|
51
|
+
ariaPlaceholder: string | null;
|
|
52
|
+
ariaPosInSet: `${number}` | null;
|
|
53
|
+
ariaPressed: 'true' | 'false' | null;
|
|
54
|
+
ariaReadOnly: 'true' | 'false' | null;
|
|
55
|
+
ariaRequired: 'true' | 'false' | null;
|
|
56
|
+
ariaRoleDescription: string | null;
|
|
57
|
+
ariaRowCount: `${number}` | null;
|
|
58
|
+
ariaRowIndex: `${number}` | null;
|
|
59
|
+
ariaRowSpan: `${number}` | null;
|
|
60
|
+
ariaSelected: 'true' | 'false' | null;
|
|
61
|
+
ariaSetSize: `${number}` | null;
|
|
62
|
+
ariaSort: 'ascending' | 'descending' | 'none' | 'other' | null;
|
|
63
|
+
ariaValueMax: `${number}` | null;
|
|
64
|
+
ariaValueMin: `${number}` | null;
|
|
65
|
+
ariaValueNow: `${number}` | null;
|
|
66
|
+
ariaValueText: string | null;
|
|
67
|
+
role: AriaRole | null;
|
|
68
|
+
}
|
|
69
|
+
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';
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=aria.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aria.d.ts","sourceRoot":"","sources":["../../../src/utils/aria/aria.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
const a=new Set(["ariaAtomic","ariaAutoComplete","ariaBrailleLabel","ariaBrailleRoleDescription","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColIndexText","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowIndexText","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","role"]),e=new Set(a.values().map(r));function i(a){return e.has(a)}function r(a){return a.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}export{e as AriaAttributes,a as AriaProperties,r as ariaPropertyToAttribute,i as isARIAAttribute};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
import type { MixinBase, MixinReturn } from '../behaviors/mixin';
|
|
8
|
+
/**
|
|
9
|
+
* Mixes in aria delegation for elements that delegate focus and aria to inner
|
|
10
|
+
* shadow root elements.
|
|
11
|
+
*
|
|
12
|
+
* This mixin fixes invalid aria announcements with shadow roots, caused by
|
|
13
|
+
* duplicate aria attributes on both the host and the inner shadow root element.
|
|
14
|
+
*
|
|
15
|
+
* Note: this mixin **does not yet support** ID reference attributes, such as
|
|
16
|
+
* `aria-labelledby` or `aria-controls`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* class MyButton extends mixinDelegatesAria(LitElement) {
|
|
21
|
+
* static shadowRootOptions = {mode: 'open', delegatesFocus: true};
|
|
22
|
+
*
|
|
23
|
+
* render() {
|
|
24
|
+
* return html`
|
|
25
|
+
* <button aria-label=${this.ariaLabel || nothing}>
|
|
26
|
+
* <slot></slot>
|
|
27
|
+
* </button>
|
|
28
|
+
* `;
|
|
29
|
+
* }
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
* ```html
|
|
33
|
+
* <my-button aria-label="Plus one">+1</my-button>
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* Use `ARIAMixinStrict` for lit analyzer strict types, such as the "role"
|
|
37
|
+
* attribute.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* return html`
|
|
42
|
+
* <button role=${(this as ARIAMixinStrict).role || nothing}>
|
|
43
|
+
* <slot></slot>
|
|
44
|
+
* </button>
|
|
45
|
+
* `;
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* In the future, updates to the Accessibility Object Model (AOM) will provide
|
|
49
|
+
* built-in aria delegation features that will replace this mixin.
|
|
50
|
+
*
|
|
51
|
+
* @param base The class to mix functionality into.
|
|
52
|
+
* @return The provided class with aria delegation mixed in.
|
|
53
|
+
*/
|
|
54
|
+
export declare function mixinDelegatesAria<T extends MixinBase<LitElement>>(base: T): MixinReturn<T>;
|
|
55
|
+
//# sourceMappingURL=delegate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delegate.d.ts","sourceRoot":"","sources":["../../../src/utils/aria/delegate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAA6B,MAAM,KAAK,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAQhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,SAAS,CAAC,UAAU,CAAC,EAC9D,IAAI,EAAE,CAAC,GACR,WAAW,CAAC,CAAC,CAAC,CAoEhB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import"../../lit-element-Bf8D1KRw.js";import{AriaProperties as t,ariaPropertyToAttribute as e,isARIAAttribute as r}from"./aria.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2023 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
const s=Symbol("privateIgnoreAttributeChangesFor");function a(a){var n;class o extends a{constructor(){super(...arguments),this[n]=new Set}static{n=s}attributeChangedCallback(t,e,a){if(!r(t))return void super.attributeChangedCallback(t,e,a);if(this[s].has(t))return;this[s].add(t),this.removeAttribute(t),this[s].delete(t);const i=u(t);null===a?delete this.dataset[i]:this.dataset[i]=a,this.requestUpdate(u(t),e)}getAttribute(t){return r(t)?super.getAttribute(i(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),r(t)&&(super.removeAttribute(i(t)),this.requestUpdate())}}return function(r){for(const s of t){const t=e(s),a=i(t),n=u(t);r.createProperty(s,{attribute:t,noAccessor:!0}),r.createProperty(Symbol(a),{attribute:a,noAccessor:!0}),Object.defineProperty(r.prototype,s,{configurable:!0,enumerable:!0,get(){return this.dataset[n]??null},set(t){const e=this.dataset[n]??null;t!==e&&(null===t?delete this.dataset[n]:this.dataset[n]=t,this.requestUpdate(s,e))}})}}(o),o}function i(t){return`data-${t}`}function u(t){return t.replace(/-\w/,t=>t[1].toUpperCase())}export{a as mixinDelegatesAria};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
import { type FormAssociated } from '../form/form-associated';
|
|
8
|
+
import { type WithElementInternals } from './element-internals';
|
|
9
|
+
import type { MixinBase, MixinReturn } from './mixin';
|
|
10
|
+
import { Validator } from './validators/validator';
|
|
11
|
+
/**
|
|
12
|
+
* A form associated element that provides constraint validation APIs.
|
|
13
|
+
*
|
|
14
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Constraint_validation
|
|
15
|
+
*/
|
|
16
|
+
export interface ConstraintValidation extends FormAssociated {
|
|
17
|
+
/**
|
|
18
|
+
* Returns a ValidityState object that represents the validity states of the
|
|
19
|
+
* element.
|
|
20
|
+
*
|
|
21
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/ValidityState
|
|
22
|
+
*/
|
|
23
|
+
readonly validity: ValidityState;
|
|
24
|
+
/**
|
|
25
|
+
* Returns a validation error message or an empty string if the element is
|
|
26
|
+
* valid.
|
|
27
|
+
*
|
|
28
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/validationMessage
|
|
29
|
+
*/
|
|
30
|
+
readonly validationMessage: string;
|
|
31
|
+
/**
|
|
32
|
+
* Returns whether an element will successfully validate based on forms
|
|
33
|
+
* validation rules and constraints.
|
|
34
|
+
*
|
|
35
|
+
* Disabled and readonly elements will not validate.
|
|
36
|
+
*
|
|
37
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/willValidate
|
|
38
|
+
*/
|
|
39
|
+
readonly willValidate: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Checks the element's constraint validation and returns true if the element
|
|
42
|
+
* is valid or false if not.
|
|
43
|
+
*
|
|
44
|
+
* If invalid, this method will dispatch an `invalid` event.
|
|
45
|
+
*
|
|
46
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/checkValidity
|
|
47
|
+
*
|
|
48
|
+
* @return true if the element is valid, or false if not.
|
|
49
|
+
*/
|
|
50
|
+
checkValidity(): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Checks the element's constraint validation and returns true if the element
|
|
53
|
+
* is valid or false if not.
|
|
54
|
+
*
|
|
55
|
+
* If invalid, this method will dispatch a cancelable `invalid` event. If not
|
|
56
|
+
* canceled, a the current `validationMessage` will be reported to the user.
|
|
57
|
+
*
|
|
58
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/reportValidity
|
|
59
|
+
*
|
|
60
|
+
* @return true if the element is valid, or false if not.
|
|
61
|
+
*/
|
|
62
|
+
reportValidity(): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Sets the element's constraint validation error message. When set to a
|
|
65
|
+
* non-empty string, `validity.customError` will be true and
|
|
66
|
+
* `validationMessage` will display the provided error.
|
|
67
|
+
*
|
|
68
|
+
* Use this method to customize error messages reported.
|
|
69
|
+
*
|
|
70
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity
|
|
71
|
+
*
|
|
72
|
+
* @param error The error message to display, or an empty string.
|
|
73
|
+
*/
|
|
74
|
+
setCustomValidity(error: string): void;
|
|
75
|
+
/**
|
|
76
|
+
* Creates and returns a `Validator` that is used to compute and cache
|
|
77
|
+
* validity for the element.
|
|
78
|
+
*
|
|
79
|
+
* A validator that caches validity is important since constraint validation
|
|
80
|
+
* must be computed synchronously and frequently in response to constraint
|
|
81
|
+
* validation property changes.
|
|
82
|
+
*/
|
|
83
|
+
[createValidator](): Validator<unknown>;
|
|
84
|
+
/**
|
|
85
|
+
* Returns shadow DOM child that is used as the anchor for the platform
|
|
86
|
+
* `reportValidity()` popup. This is often the root element or the inner
|
|
87
|
+
* focus-delegated element.
|
|
88
|
+
*/
|
|
89
|
+
[getValidityAnchor](): HTMLElement | null;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* A symbol property used to create a constraint validation `Validator`.
|
|
93
|
+
* Required for all `mixinConstraintValidation()` elements.
|
|
94
|
+
*/
|
|
95
|
+
export declare const createValidator: unique symbol;
|
|
96
|
+
/**
|
|
97
|
+
* A symbol property used to return an anchor for constraint validation popups.
|
|
98
|
+
* Required for all `mixinConstraintValidation()` elements.
|
|
99
|
+
*/
|
|
100
|
+
export declare const getValidityAnchor: unique symbol;
|
|
101
|
+
/**
|
|
102
|
+
* Mixes in constraint validation APIs for an element.
|
|
103
|
+
*
|
|
104
|
+
* See https://developer.mozilla.org/en-US/docs/Web/HTML/Constraint_validation
|
|
105
|
+
* for more details.
|
|
106
|
+
*
|
|
107
|
+
* Implementations must provide a validator to cache and compute its validity,
|
|
108
|
+
* along with a shadow root element to anchor validation popups to.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```ts
|
|
112
|
+
* const baseClass = mixinConstraintValidation(
|
|
113
|
+
* mixinFormAssociated(mixinElementInternals(LitElement))
|
|
114
|
+
* );
|
|
115
|
+
*
|
|
116
|
+
* class MyCheckbox extends baseClass {
|
|
117
|
+
* \@property({type: Boolean}) checked = false;
|
|
118
|
+
* \@property({type: Boolean}) required = false;
|
|
119
|
+
*
|
|
120
|
+
* [createValidator]() {
|
|
121
|
+
* return new CheckboxValidator(() => this);
|
|
122
|
+
* }
|
|
123
|
+
*
|
|
124
|
+
* [getValidityAnchor]() {
|
|
125
|
+
* return this.renderRoot.querySelector('.root');
|
|
126
|
+
* }
|
|
127
|
+
* }
|
|
128
|
+
* ```
|
|
129
|
+
*
|
|
130
|
+
* @param base The class to mix functionality into.
|
|
131
|
+
* @return The provided class with `ConstraintValidation` mixed in.
|
|
132
|
+
*/
|
|
133
|
+
export declare function mixinConstraintValidation<T extends MixinBase<LitElement & FormAssociated & WithElementInternals>>(base: T): MixinReturn<T, ConstraintValidation>;
|
|
134
|
+
//# sourceMappingURL=constraint-validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constraint-validation.d.ts","sourceRoot":"","sources":["../../../src/utils/behaviors/constraint-validation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAY,UAAU,EAAiD,MAAM,KAAK,CAAA;AACzF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAElD;;;;GAIG;AACH,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IACxD;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAA;IAEhC;;;;;OAKG;IACH,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;IAElC;;;;;;;OAOG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;IAE9B;;;;;;;;;OASG;IACH,aAAa,IAAI,OAAO,CAAA;IAExB;;;;;;;;;;OAUG;IACH,cAAc,IAAI,OAAO,CAAA;IAEzB;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAEtC;;;;;;;OAOG;IACH,CAAC,eAAe,CAAC,IAAI,SAAS,CAAC,OAAO,CAAC,CAAA;IAEvC;;;;OAIG;IACH,CAAC,iBAAiB,CAAC,IAAI,WAAW,GAAG,IAAI,CAAA;CAC5C;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,eAA4B,CAAA;AAExD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,eAA8B,CAAA;AAO5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,yBAAyB,CACrC,CAAC,SAAS,SAAS,CAAC,UAAU,GAAG,cAAc,GAAG,oBAAoB,CAAC,EACzE,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,EAAE,oBAAoB,CAAC,CAyG/C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import"../../lit-element-Bf8D1KRw.js";import"../../tslib.es6-CmLYFWVC.js";import{internals as t}from"./element-internals.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2023 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/const i=Symbol("createValidator"),e=Symbol("getValidityAnchor"),s=Symbol("privateValidator"),r=Symbol("privateSyncValidity"),a=Symbol("privateCustomValidationMessage");function l(l){var o;class d extends l{constructor(){super(...arguments),this[o]=""}get validity(){return this[r](),this[t].validity}get validationMessage(){return this[r](),this[t].validationMessage}get willValidate(){return this[r](),this[t].willValidate}checkValidity(){return this[r](),this[t].checkValidity()}reportValidity(){return this[r](),this[t].reportValidity()}setCustomValidity(t){this[a]=t,this[r]()}requestUpdate(t,i,e){super.requestUpdate(t,i,e),this[r]()}firstUpdated(t){super.firstUpdated(t),this[r]()}[(o=a,r)](){this[s]||(this[s]=this[i]());const{validity:r,validationMessage:l}=this[s].getValidity(),o=!!this[a],d=this[a]||l;this[t].setValidity({...r,customError:o},d,this[e]()??void 0)}[i](){throw new Error("Implement [createValidator]")}[e](){throw new Error("Implement [getValidityAnchor]")}}return d}export{i as createValidator,e as getValidityAnchor,l as mixinConstraintValidation};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
import { type MixinBase, type MixinReturn } from './mixin';
|
|
8
|
+
/**
|
|
9
|
+
* A unique symbol used for protected access to an instance's
|
|
10
|
+
* `ElementInternals`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* class MyElement extends mixinElementInternals(LitElement) {
|
|
15
|
+
* constructor() {
|
|
16
|
+
* super();
|
|
17
|
+
* this[internals].role = 'button';
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const internals: unique symbol;
|
|
23
|
+
/**
|
|
24
|
+
* An instance with an `internals` symbol property for the component's
|
|
25
|
+
* `ElementInternals`.
|
|
26
|
+
*
|
|
27
|
+
* Use this when protected access is needed for an instance's `ElementInternals`
|
|
28
|
+
* from other files. A unique symbol is used to access the internals.
|
|
29
|
+
*/
|
|
30
|
+
export interface WithElementInternals {
|
|
31
|
+
/**
|
|
32
|
+
* An instance's `ElementInternals`.
|
|
33
|
+
*/
|
|
34
|
+
[internals]: ElementInternals;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Mixes in an attached `ElementInternals` instance.
|
|
38
|
+
*
|
|
39
|
+
* This mixin is only needed when other shared code needs access to a
|
|
40
|
+
* component's `ElementInternals`, such as form-associated mixins.
|
|
41
|
+
*
|
|
42
|
+
* @param base The class to mix functionality into.
|
|
43
|
+
* @return The provided class with `WithElementInternals` mixed in.
|
|
44
|
+
*/
|
|
45
|
+
export declare function mixinElementInternals<T extends MixinBase<LitElement>>(base: T): MixinReturn<T, WithElementInternals>;
|
|
46
|
+
//# sourceMappingURL=element-internals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element-internals.d.ts","sourceRoot":"","sources":["../../../src/utils/behaviors/element-internals.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAChC,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS,eAAsB,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,CAAC,SAAS,CAAC,EAAE,gBAAgB,CAAA;CAChC;AAKD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,SAAS,CAAC,UAAU,CAAC,EACjE,IAAI,EAAE,CAAC,GACR,WAAW,CAAC,CAAC,EAAE,oBAAoB,CAAC,CAmBtC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import"../../lit-element-Bf8D1KRw.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2023 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/const t=Symbol("internals"),e=Symbol("privateInternals");function n(n){return class extends n{get[t](){return this[e]||(this[e]=this.attachInternals()),this[e]}}}export{t as internals,n as mixinElementInternals};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The base class for a mixin with an optional expected base class type.
|
|
8
|
+
*
|
|
9
|
+
* @template ExpectedBase Optional expected base class type, such as
|
|
10
|
+
* `LitElement`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* interface Foo {
|
|
15
|
+
* isFoo: boolean;
|
|
16
|
+
* }
|
|
17
|
+
*
|
|
18
|
+
* function mixinFoo<T extends MixinBase>(base: T): MixinReturn<T, Foo> {
|
|
19
|
+
* // Mixins must be `abstract`
|
|
20
|
+
* abstract class FooImpl extends base implements Foo {
|
|
21
|
+
* isFoo = true;
|
|
22
|
+
* }
|
|
23
|
+
*
|
|
24
|
+
* return FooImpl;
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export type MixinBase<ExpectedBase = object> = abstract new (...args: any[]) => ExpectedBase;
|
|
29
|
+
/**
|
|
30
|
+
* The return value of a mixin.
|
|
31
|
+
*
|
|
32
|
+
* @template MixinBase The generic that extends `MixinBase` used for the mixin's
|
|
33
|
+
* base class argument.
|
|
34
|
+
* @template MixinClass Optional interface of fuctionality that was mixed in.
|
|
35
|
+
* Omit if no additional APIs were added (such as purely overriding base
|
|
36
|
+
* class functionality).
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* interface Foo {
|
|
41
|
+
* isFoo: boolean;
|
|
42
|
+
* }
|
|
43
|
+
*
|
|
44
|
+
* // Mixins must be `abstract`
|
|
45
|
+
* function mixinFoo<T extends MixinBase>(base: T): MixinReturn<T, Foo> {
|
|
46
|
+
* abstract class FooImpl extends base implements Foo {
|
|
47
|
+
* isFoo = true;
|
|
48
|
+
* }
|
|
49
|
+
*
|
|
50
|
+
* return FooImpl;
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export type MixinReturn<MixinBase, MixinClass = object> = (abstract new (...args: any[]) => MixinClass) & MixinBase;
|
|
55
|
+
//# sourceMappingURL=mixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mixin.d.ts","sourceRoot":"","sources":["../../../src/utils/behaviors/mixin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,SAAS,CAAC,YAAY,GAAG,MAAM,IAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,YAAY,CAAA;AAE5F;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,WAAW,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Validator } from './validator.js';
|
|
7
|
+
/**
|
|
8
|
+
* Constraint validation properties for a checkbox.
|
|
9
|
+
*/
|
|
10
|
+
export interface ICheckboxState {
|
|
11
|
+
/**
|
|
12
|
+
* Whether the checkbox is checked.
|
|
13
|
+
*/
|
|
14
|
+
readonly checked: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the checkbox is required.
|
|
17
|
+
*/
|
|
18
|
+
readonly required: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A validator that provides constraint validation that emulates
|
|
22
|
+
* `<input type="checkbox">` validation.
|
|
23
|
+
*/
|
|
24
|
+
export declare class CheckboxValidator extends Validator<ICheckboxState> {
|
|
25
|
+
private checkboxControl?;
|
|
26
|
+
protected computeValidity(state: ICheckboxState): {
|
|
27
|
+
validity: ValidityState;
|
|
28
|
+
validationMessage: string;
|
|
29
|
+
};
|
|
30
|
+
protected equals(prev: ICheckboxState, next: ICheckboxState): boolean;
|
|
31
|
+
protected copy({ checked, required }: ICheckboxState): {
|
|
32
|
+
checked: boolean;
|
|
33
|
+
required: boolean;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=checkbox-validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-validator.d.ts","sourceRoot":"","sources":["../../../../src/utils/behaviors/validators/checkbox-validator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IAEzB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;CAC7B;AAED;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC5D,OAAO,CAAC,eAAe,CAAC,CAAkB;cAEvB,eAAe,CAAC,KAAK,EAAE,cAAc;;;;cAerC,MAAM,CAAC,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc;cAIjD,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,cAAc;;;;CAGhE"}
|