@adobe/spectrum-wc-core 0.0.0-snapshot.20260922095923
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/dist/_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.js +9 -0
- package/dist/components/accordion/Accordion.base.d.ts +59 -0
- package/dist/components/accordion/Accordion.base.js +69 -0
- package/dist/components/accordion/Accordion.base.js.map +1 -0
- package/dist/components/accordion/Accordion.types.d.ts +22 -0
- package/dist/components/accordion/Accordion.types.js +21 -0
- package/dist/components/accordion/Accordion.types.js.map +1 -0
- package/dist/components/accordion/AccordionItem.base.d.ts +96 -0
- package/dist/components/accordion/AccordionItem.base.js +93 -0
- package/dist/components/accordion/AccordionItem.base.js.map +1 -0
- package/dist/components/accordion/index.d.ts +14 -0
- package/dist/components/accordion/index.js +4 -0
- package/dist/components/action-button/ActionButton.types.d.ts +15 -0
- package/dist/components/action-button/ActionButton.types.js +12 -0
- package/dist/components/action-button/ActionButton.types.js.map +1 -0
- package/dist/components/action-button/index.d.ts +12 -0
- package/dist/components/action-button/index.js +2 -0
- package/dist/components/action-group/ActionGroup.base.d.ts +108 -0
- package/dist/components/action-group/ActionGroup.base.js +53 -0
- package/dist/components/action-group/ActionGroup.base.js.map +1 -0
- package/dist/components/action-group/ActionGroup.types.d.ts +17 -0
- package/dist/components/action-group/ActionGroup.types.js +12 -0
- package/dist/components/action-group/ActionGroup.types.js.map +1 -0
- package/dist/components/action-group/index.d.ts +13 -0
- package/dist/components/action-group/index.js +3 -0
- package/dist/components/alert-banner/AlertBanner.base.d.ts +36 -0
- package/dist/components/alert-banner/AlertBanner.base.js +57 -0
- package/dist/components/alert-banner/AlertBanner.base.js.map +1 -0
- package/dist/components/alert-banner/AlertBanner.types.d.ts +13 -0
- package/dist/components/alert-banner/AlertBanner.types.js +10 -0
- package/dist/components/alert-banner/AlertBanner.types.js.map +1 -0
- package/dist/components/alert-banner/index.d.ts +13 -0
- package/dist/components/alert-banner/index.js +3 -0
- package/dist/components/asset/Asset.base.d.ts +101 -0
- package/dist/components/asset/Asset.base.js +130 -0
- package/dist/components/asset/Asset.base.js.map +1 -0
- package/dist/components/asset/Asset.types.d.ts +31 -0
- package/dist/components/asset/Asset.types.js +14 -0
- package/dist/components/asset/Asset.types.js.map +1 -0
- package/dist/components/asset/index.d.ts +13 -0
- package/dist/components/asset/index.js +3 -0
- package/dist/components/avatar/Avatar.base.d.ts +53 -0
- package/dist/components/avatar/Avatar.base.js +52 -0
- package/dist/components/avatar/Avatar.base.js.map +1 -0
- package/dist/components/avatar/Avatar.types.d.ts +19 -0
- package/dist/components/avatar/Avatar.types.js +24 -0
- package/dist/components/avatar/Avatar.types.js.map +1 -0
- package/dist/components/avatar/index.d.ts +13 -0
- package/dist/components/avatar/index.js +3 -0
- package/dist/components/badge/Badge.base.d.ts +114 -0
- package/dist/components/badge/Badge.base.js +49 -0
- package/dist/components/badge/Badge.base.js.map +1 -0
- package/dist/components/badge/Badge.types.d.ts +21 -0
- package/dist/components/badge/Badge.types.js +43 -0
- package/dist/components/badge/Badge.types.js.map +1 -0
- package/dist/components/badge/index.d.ts +13 -0
- package/dist/components/badge/index.js +3 -0
- package/dist/components/button/Button.base.d.ts +78 -0
- package/dist/components/button/Button.base.js +51 -0
- package/dist/components/button/Button.base.js.map +1 -0
- package/dist/components/button/Button.types.d.ts +19 -0
- package/dist/components/button/Button.types.js +16 -0
- package/dist/components/button/Button.types.js.map +1 -0
- package/dist/components/button/index.d.ts +13 -0
- package/dist/components/button/index.js +3 -0
- package/dist/components/button-group/ButtonGroup.base.d.ts +89 -0
- package/dist/components/button-group/ButtonGroup.base.js +60 -0
- package/dist/components/button-group/ButtonGroup.base.js.map +1 -0
- package/dist/components/button-group/ButtonGroup.types.d.ts +17 -0
- package/dist/components/button-group/ButtonGroup.types.js +15 -0
- package/dist/components/button-group/ButtonGroup.types.js.map +1 -0
- package/dist/components/button-group/index.d.ts +13 -0
- package/dist/components/button-group/index.js +3 -0
- package/dist/components/card/Card.base.d.ts +172 -0
- package/dist/components/card/Card.base.js +123 -0
- package/dist/components/card/Card.base.js.map +1 -0
- package/dist/components/card/Card.types.d.ts +18 -0
- package/dist/components/card/Card.types.js +21 -0
- package/dist/components/card/Card.types.js.map +1 -0
- package/dist/components/card/index.d.ts +13 -0
- package/dist/components/card/index.js +3 -0
- package/dist/components/color-handle/ColorHandle.base.d.ts +51 -0
- package/dist/components/color-handle/ColorHandle.base.js +39 -0
- package/dist/components/color-handle/ColorHandle.base.js.map +1 -0
- package/dist/components/color-handle/ColorHandle.types.d.ts +30 -0
- package/dist/components/color-handle/color-contrast.d.ts +55 -0
- package/dist/components/color-handle/color-contrast.js +49 -0
- package/dist/components/color-handle/color-contrast.js.map +1 -0
- package/dist/components/color-handle/index.d.ts +14 -0
- package/dist/components/color-handle/index.js +3 -0
- package/dist/components/color-loupe/ColorLoupe.base.d.ts +41 -0
- package/dist/components/color-loupe/ColorLoupe.base.js +21 -0
- package/dist/components/color-loupe/ColorLoupe.base.js.map +1 -0
- package/dist/components/color-loupe/index.d.ts +12 -0
- package/dist/components/color-loupe/index.js +2 -0
- package/dist/components/divider/Divider.base.d.ts +43 -0
- package/dist/components/divider/Divider.base.js +42 -0
- package/dist/components/divider/Divider.base.js.map +1 -0
- package/dist/components/divider/Divider.types.d.ts +15 -0
- package/dist/components/divider/Divider.types.js +10 -0
- package/dist/components/divider/Divider.types.js.map +1 -0
- package/dist/components/divider/index.d.ts +13 -0
- package/dist/components/divider/index.js +3 -0
- package/dist/components/dropzone/Dropzone.base.d.ts +74 -0
- package/dist/components/dropzone/Dropzone.base.js +82 -0
- package/dist/components/dropzone/Dropzone.base.js.map +1 -0
- package/dist/components/dropzone/Dropzone.types.d.ts +43 -0
- package/dist/components/dropzone/Dropzone.types.js +15 -0
- package/dist/components/dropzone/Dropzone.types.js.map +1 -0
- package/dist/components/dropzone/index.d.ts +13 -0
- package/dist/components/dropzone/index.js +3 -0
- package/dist/components/icon/Icon.base.d.ts +36 -0
- package/dist/components/icon/Icon.base.js +28 -0
- package/dist/components/icon/Icon.base.js.map +1 -0
- package/dist/components/icon/Icon.types.d.ts +13 -0
- package/dist/components/icon/Icon.types.js +12 -0
- package/dist/components/icon/Icon.types.js.map +1 -0
- package/dist/components/icon/index.d.ts +13 -0
- package/dist/components/icon/index.js +3 -0
- package/dist/components/illustrated-message/IllustratedMessage.base.d.ts +60 -0
- package/dist/components/illustrated-message/IllustratedMessage.base.js +59 -0
- package/dist/components/illustrated-message/IllustratedMessage.base.js.map +1 -0
- package/dist/components/illustrated-message/IllustratedMessage.types.d.ts +15 -0
- package/dist/components/illustrated-message/IllustratedMessage.types.js +10 -0
- package/dist/components/illustrated-message/IllustratedMessage.types.js.map +1 -0
- package/dist/components/illustrated-message/index.d.ts +13 -0
- package/dist/components/illustrated-message/index.js +3 -0
- package/dist/components/infield-button/InfieldButton.base.d.ts +28 -0
- package/dist/components/infield-button/InfieldButton.base.js +22 -0
- package/dist/components/infield-button/InfieldButton.base.js.map +1 -0
- package/dist/components/infield-button/InfieldButton.types.d.ts +13 -0
- package/dist/components/infield-button/InfieldButton.types.js +11 -0
- package/dist/components/infield-button/InfieldButton.types.js.map +1 -0
- package/dist/components/infield-button/index.d.ts +13 -0
- package/dist/components/infield-button/index.js +3 -0
- package/dist/components/meter/Meter.base.d.ts +40 -0
- package/dist/components/meter/Meter.base.js +32 -0
- package/dist/components/meter/Meter.base.js.map +1 -0
- package/dist/components/meter/Meter.types.d.ts +13 -0
- package/dist/components/meter/Meter.types.js +11 -0
- package/dist/components/meter/Meter.types.js.map +1 -0
- package/dist/components/meter/index.d.ts +13 -0
- package/dist/components/meter/index.js +3 -0
- package/dist/components/popover/Popover.base.d.ts +226 -0
- package/dist/components/popover/Popover.base.js +287 -0
- package/dist/components/popover/Popover.base.js.map +1 -0
- package/dist/components/popover/Popover.types.d.ts +39 -0
- package/dist/components/popover/Popover.types.js +24 -0
- package/dist/components/popover/Popover.types.js.map +1 -0
- package/dist/components/popover/index.d.ts +13 -0
- package/dist/components/popover/index.js +3 -0
- package/dist/components/progress-bar/ProgressBar.base.d.ts +34 -0
- package/dist/components/progress-bar/ProgressBar.base.js +21 -0
- package/dist/components/progress-bar/ProgressBar.base.js.map +1 -0
- package/dist/components/progress-bar/ProgressBar.types.d.ts +12 -0
- package/dist/components/progress-bar/index.d.ts +13 -0
- package/dist/components/progress-bar/index.js +2 -0
- package/dist/components/progress-circle/ProgressCircle.base.d.ts +83 -0
- package/dist/components/progress-circle/ProgressCircle.base.js +77 -0
- package/dist/components/progress-circle/ProgressCircle.base.js.map +1 -0
- package/dist/components/progress-circle/ProgressCircle.types.d.ts +15 -0
- package/dist/components/progress-circle/ProgressCircle.types.js +10 -0
- package/dist/components/progress-circle/ProgressCircle.types.js.map +1 -0
- package/dist/components/progress-circle/index.d.ts +13 -0
- package/dist/components/progress-circle/index.js +3 -0
- package/dist/components/status-light/StatusLight.base.d.ts +69 -0
- package/dist/components/status-light/StatusLight.base.js +32 -0
- package/dist/components/status-light/StatusLight.base.js.map +1 -0
- package/dist/components/status-light/StatusLight.types.d.ts +19 -0
- package/dist/components/status-light/StatusLight.types.js +32 -0
- package/dist/components/status-light/StatusLight.types.js.map +1 -0
- package/dist/components/status-light/index.d.ts +13 -0
- package/dist/components/status-light/index.js +3 -0
- package/dist/components/tabs/Tab.base.d.ts +49 -0
- package/dist/components/tabs/Tab.base.js +39 -0
- package/dist/components/tabs/Tab.base.js.map +1 -0
- package/dist/components/tabs/Tab.types.d.ts +17 -0
- package/dist/components/tabs/TabPanel.base.d.ts +49 -0
- package/dist/components/tabs/TabPanel.base.js +36 -0
- package/dist/components/tabs/TabPanel.base.js.map +1 -0
- package/dist/components/tabs/TabPanel.types.d.ts +17 -0
- package/dist/components/tabs/Tabs.base.d.ts +221 -0
- package/dist/components/tabs/Tabs.base.js +213 -0
- package/dist/components/tabs/Tabs.base.js.map +1 -0
- package/dist/components/tabs/Tabs.types.d.ts +55 -0
- package/dist/components/tabs/Tabs.types.js +6 -0
- package/dist/components/tabs/Tabs.types.js.map +1 -0
- package/dist/components/tabs/index.d.ts +17 -0
- package/dist/components/tabs/index.js +5 -0
- package/dist/components/tooltip/Tooltip.base.d.ts +159 -0
- package/dist/components/tooltip/Tooltip.base.js +198 -0
- package/dist/components/tooltip/Tooltip.base.js.map +1 -0
- package/dist/components/tooltip/Tooltip.types.d.ts +18 -0
- package/dist/components/tooltip/Tooltip.types.js +15 -0
- package/dist/components/tooltip/Tooltip.types.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +13 -0
- package/dist/components/tooltip/index.js +3 -0
- package/dist/controllers/color-controller/index.d.ts +12 -0
- package/dist/controllers/color-controller/index.js +2 -0
- package/dist/controllers/color-controller/src/color-controller.d.ts +226 -0
- package/dist/controllers/color-controller/src/color-controller.js +253 -0
- package/dist/controllers/color-controller/src/color-controller.js.map +1 -0
- package/dist/controllers/drag-and-drop-controller/index.d.ts +12 -0
- package/dist/controllers/drag-and-drop-controller/index.js +2 -0
- package/dist/controllers/drag-and-drop-controller/src/drag-and-drop-controller.d.ts +68 -0
- package/dist/controllers/drag-and-drop-controller/src/drag-and-drop-controller.js +56 -0
- package/dist/controllers/drag-and-drop-controller/src/drag-and-drop-controller.js.map +1 -0
- package/dist/controllers/focusgroup-navigation-controller/index.d.ts +12 -0
- package/dist/controllers/focusgroup-navigation-controller/index.js +2 -0
- package/dist/controllers/focusgroup-navigation-controller/src/focusgroup-navigation-controller.d.ts +496 -0
- package/dist/controllers/focusgroup-navigation-controller/src/focusgroup-navigation-controller.js +345 -0
- package/dist/controllers/focusgroup-navigation-controller/src/focusgroup-navigation-controller.js.map +1 -0
- package/dist/controllers/hover-controller/index.d.ts +12 -0
- package/dist/controllers/hover-controller/index.js +2 -0
- package/dist/controllers/hover-controller/src/hover-controller.d.ts +118 -0
- package/dist/controllers/hover-controller/src/hover-controller.js +90 -0
- package/dist/controllers/hover-controller/src/hover-controller.js.map +1 -0
- package/dist/controllers/index.d.ts +26 -0
- package/dist/controllers/index.js +18 -0
- package/dist/controllers/language-resolution.d.ts +87 -0
- package/dist/controllers/language-resolution.js +56 -0
- package/dist/controllers/language-resolution.js.map +1 -0
- package/dist/controllers/live-selection-controller/index.d.ts +12 -0
- package/dist/controllers/live-selection-controller/index.js +2 -0
- package/dist/controllers/live-selection-controller/src/live-selection-controller.d.ts +144 -0
- package/dist/controllers/live-selection-controller/src/live-selection-controller.js +36 -0
- package/dist/controllers/live-selection-controller/src/live-selection-controller.js.map +1 -0
- package/dist/controllers/page-scroll-lock-controller/index.d.ts +12 -0
- package/dist/controllers/page-scroll-lock-controller/index.js +2 -0
- package/dist/controllers/page-scroll-lock-controller/src/page-scroll-lock.d.ts +20 -0
- package/dist/controllers/page-scroll-lock-controller/src/page-scroll-lock.js +30 -0
- package/dist/controllers/page-scroll-lock-controller/src/page-scroll-lock.js.map +1 -0
- package/dist/controllers/pending-controller/index.d.ts +12 -0
- package/dist/controllers/pending-controller/index.js +2 -0
- package/dist/controllers/pending-controller/src/pending-controller.d.ts +95 -0
- package/dist/controllers/pending-controller/src/pending-controller.js +55 -0
- package/dist/controllers/pending-controller/src/pending-controller.js.map +1 -0
- package/dist/controllers/placement-controller/index.d.ts +12 -0
- package/dist/controllers/placement-controller/index.js +4 -0
- package/dist/controllers/placement-controller/src/fallback-placements.d.ts +9 -0
- package/dist/controllers/placement-controller/src/fallback-placements.js +71 -0
- package/dist/controllers/placement-controller/src/fallback-placements.js.map +1 -0
- package/dist/controllers/placement-controller/src/placement-controller.d.ts +152 -0
- package/dist/controllers/placement-controller/src/placement-controller.js +129 -0
- package/dist/controllers/placement-controller/src/placement-controller.js.map +1 -0
- package/dist/controllers/placement-controller/src/placement-conversion.d.ts +35 -0
- package/dist/controllers/placement-controller/src/placement-conversion.js +54 -0
- package/dist/controllers/placement-controller/src/placement-conversion.js.map +1 -0
- package/dist/controllers/placement-controller/src/types.d.ts +128 -0
- package/dist/controllers/placement-controller/src/types.js +29 -0
- package/dist/controllers/placement-controller/src/types.js.map +1 -0
- package/dist/controllers/slot-attribute-propagation-controller/index.d.ts +12 -0
- package/dist/controllers/slot-attribute-propagation-controller/index.js +2 -0
- package/dist/controllers/slot-attribute-propagation-controller/src/slot-attribute-propagation-controller.d.ts +65 -0
- package/dist/controllers/slot-attribute-propagation-controller/src/slot-attribute-propagation-controller.js +33 -0
- package/dist/controllers/slot-attribute-propagation-controller/src/slot-attribute-propagation-controller.js.map +1 -0
- package/dist/controllers/slot-presence-controller/index.d.ts +12 -0
- package/dist/controllers/slot-presence-controller/index.js +2 -0
- package/dist/controllers/slot-presence-controller/src/slot-presence-controller.d.ts +57 -0
- package/dist/controllers/slot-presence-controller/src/slot-presence-controller.js +44 -0
- package/dist/controllers/slot-presence-controller/src/slot-presence-controller.js.map +1 -0
- package/dist/controllers/slot-text-controller/index.d.ts +12 -0
- package/dist/controllers/slot-text-controller/index.js +2 -0
- package/dist/controllers/slot-text-controller/src/slot-text-controller.d.ts +92 -0
- package/dist/controllers/slot-text-controller/src/slot-text-controller.js +53 -0
- package/dist/controllers/slot-text-controller/src/slot-text-controller.js.map +1 -0
- package/dist/directives/index.d.ts +15 -0
- package/dist/directives/index.js +3 -0
- package/dist/directives/pending-spinner/index.d.ts +12 -0
- package/dist/directives/pending-spinner/index.js +1 -0
- package/dist/directives/pending-spinner/src/pending-spinner.d.ts +22 -0
- package/dist/directives/pending-spinner/src/pending-spinner.js +39 -0
- package/dist/directives/pending-spinner/src/pending-spinner.js.map +1 -0
- package/dist/element/define-element.d.ts +16 -0
- package/dist/element/define-element.js +8 -0
- package/dist/element/define-element.js.map +1 -0
- package/dist/element/index.d.ts +14 -0
- package/dist/element/index.js +4 -0
- package/dist/element/spectrum-element.d.ts +69 -0
- package/dist/element/spectrum-element.js +85 -0
- package/dist/element/spectrum-element.js.map +1 -0
- package/dist/element/version.d.ts +19 -0
- package/dist/element/version.js +6 -0
- package/dist/element/version.js.map +1 -0
- package/dist/mixins/disabled-mixin.d.ts +30 -0
- package/dist/mixins/disabled-mixin.js +27 -0
- package/dist/mixins/disabled-mixin.js.map +1 -0
- package/dist/mixins/index.d.ts +16 -0
- package/dist/mixins/index.js +5 -0
- package/dist/mixins/linear-progress-mixin.d.ts +41 -0
- package/dist/mixins/linear-progress-mixin.js +115 -0
- package/dist/mixins/linear-progress-mixin.js.map +1 -0
- package/dist/mixins/pending-mixin.d.ts +45 -0
- package/dist/mixins/pending-mixin.js +50 -0
- package/dist/mixins/pending-mixin.js.map +1 -0
- package/dist/mixins/sized-mixin.d.ts +49 -0
- package/dist/mixins/sized-mixin.js +42 -0
- package/dist/mixins/sized-mixin.js.map +1 -0
- package/dist/utils/actual-placement.d.ts +10 -0
- package/dist/utils/actual-placement.js +8 -0
- package/dist/utils/actual-placement.js.map +1 -0
- package/dist/utils/capitalize.d.ts +26 -0
- package/dist/utils/capitalize.js +8 -0
- package/dist/utils/capitalize.js.map +1 -0
- package/dist/utils/deep-contains.d.ts +26 -0
- package/dist/utils/deep-contains.js +14 -0
- package/dist/utils/deep-contains.js.map +1 -0
- package/dist/utils/dev-validation.d.ts +88 -0
- package/dist/utils/dev-validation.js +33 -0
- package/dist/utils/dev-validation.js.map +1 -0
- package/dist/utils/dismissible-stack.d.ts +26 -0
- package/dist/utils/dismissible-stack.js +16 -0
- package/dist/utils/dismissible-stack.js.map +1 -0
- package/dist/utils/focusable-selectors.d.ts +43 -0
- package/dist/utils/focusable-selectors.js +18 -0
- package/dist/utils/focusable-selectors.js.map +1 -0
- package/dist/utils/get-active-element.d.ts +31 -0
- package/dist/utils/get-active-element.js +11 -0
- package/dist/utils/get-active-element.js.map +1 -0
- package/dist/utils/get-label-from-slot.d.ts +12 -0
- package/dist/utils/get-label-from-slot.js +10 -0
- package/dist/utils/get-label-from-slot.js.map +1 -0
- package/dist/utils/index.d.ts +22 -0
- package/dist/utils/index.js +12 -0
- package/dist/utils/is-focus-visible-in-tree.d.ts +33 -0
- package/dist/utils/is-focus-visible-in-tree.js +11 -0
- package/dist/utils/is-focus-visible-in-tree.js.map +1 -0
- package/dist/utils/resolve-trigger.d.ts +42 -0
- package/dist/utils/resolve-trigger.js +23 -0
- package/dist/utils/resolve-trigger.js.map +1 -0
- package/dist/utils/transition.d.ts +53 -0
- package/dist/utils/transition.js +26 -0
- package/dist/utils/transition.js.map +1 -0
- package/package.json +644 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { __decorate as e } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.js";
|
|
2
|
+
import { SlotAttributePropagationController as t } from "../../controllers/slot-attribute-propagation-controller/src/slot-attribute-propagation-controller.js";
|
|
3
|
+
import { ILLUSTRATED_MESSAGE_VALID_ORIENTATIONS as n, ILLUSTRATED_MESSAGE_VALID_SIZES as r } from "./IllustratedMessage.types.js";
|
|
4
|
+
import { property as i } from "lit/decorators.js";
|
|
5
|
+
import { SpectrumElement as a } from "@adobe/spectrum-wc-core/element/index.js";
|
|
6
|
+
import { validateAllowedChildren as o, validateEnum as s, warnIf as c } from "@adobe/spectrum-wc-core/utils/index.js";
|
|
7
|
+
import { SlotTextController as l } from "@adobe/spectrum-wc-core/controllers/slot-text-controller/index.js";
|
|
8
|
+
//#region components/illustrated-message/IllustratedMessage.base.ts
|
|
9
|
+
var u, d = class extends a {
|
|
10
|
+
constructor(...e) {
|
|
11
|
+
super(...e), this.size = "m", this.orientation = "vertical", this.slotText = new l(this), this._sizePropagation = new t(this, {
|
|
12
|
+
attribute: "size",
|
|
13
|
+
getValue: () => this.size,
|
|
14
|
+
slotName: "actions"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
get hasIllustration() {
|
|
18
|
+
return this.slotText.hasContent;
|
|
19
|
+
}
|
|
20
|
+
update(e) {
|
|
21
|
+
e.has("size") && s(this, {
|
|
22
|
+
prop: "size",
|
|
23
|
+
value: this.size,
|
|
24
|
+
valid: r,
|
|
25
|
+
url: "https://spectrum-web-components.adobe.com/?path=/docs/components-illustrated-message--docs"
|
|
26
|
+
}), e.has("orientation") && s(this, {
|
|
27
|
+
prop: "orientation",
|
|
28
|
+
value: this.orientation,
|
|
29
|
+
valid: n,
|
|
30
|
+
url: "https://spectrum-web-components.adobe.com/?path=/docs/components-illustrated-message--docs"
|
|
31
|
+
}), super.update(e);
|
|
32
|
+
}
|
|
33
|
+
handleActionsSlotChange() {
|
|
34
|
+
this._sizePropagation.propagate();
|
|
35
|
+
}
|
|
36
|
+
handleHeadingSlotChange(e) {
|
|
37
|
+
let t = e.target, n = "https://spectrum-web-components.adobe.com/?path=/docs/components-illustrated-message--docs";
|
|
38
|
+
o(this, t, [
|
|
39
|
+
"h2",
|
|
40
|
+
"h3",
|
|
41
|
+
"h4",
|
|
42
|
+
"h5",
|
|
43
|
+
"h6"
|
|
44
|
+
], "heading", n);
|
|
45
|
+
let r = t.assignedElements().length;
|
|
46
|
+
c(this, r > 1, `<${this.localName}> "heading" slot accepts a single heading element but received ${r}.`, n, { issues: [`heading slot: ${r} elements`] });
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
u = d, u.VALID_SIZES = r, u.VALID_ORIENTATIONS = n, e([i({
|
|
50
|
+
type: String,
|
|
51
|
+
reflect: !0
|
|
52
|
+
})], d.prototype, "size", void 0), e([i({
|
|
53
|
+
type: String,
|
|
54
|
+
reflect: !0
|
|
55
|
+
})], d.prototype, "orientation", void 0);
|
|
56
|
+
//#endregion
|
|
57
|
+
export { d as IllustratedMessageBase };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=IllustratedMessage.base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IllustratedMessage.base.js","names":[],"sources":["../../../components/illustrated-message/IllustratedMessage.base.ts"],"sourcesContent":["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nimport { SlotTextController } from '@adobe/spectrum-wc-core/controllers/slot-text-controller/index.js';\nimport { SpectrumElement } from '@adobe/spectrum-wc-core/element/index.js';\nimport {\n validateAllowedChildren,\n validateEnum,\n warnIf,\n} from '@adobe/spectrum-wc-core/utils/index.js';\n\nimport { SlotAttributePropagationController } from '../../controllers/slot-attribute-propagation-controller/index.js';\nimport {\n ILLUSTRATED_MESSAGE_VALID_ORIENTATIONS,\n ILLUSTRATED_MESSAGE_VALID_SIZES,\n type IllustratedMessageOrientation,\n type IllustratedMessageSize,\n} from './IllustratedMessage.types.js';\n\n/**\n * An illustrated message displays an illustration and a message, typically\n * used in empty states or error pages.\n *\n * @slot - Decorative or informative SVG illustration\n * @slot heading - Optional heading; when present, must be a single h2–h6 element.\n * Both constraints (allowed h2–h6 children and a single heading) are validated\n * in dev mode.\n * @slot description - Supporting description text\n * @slot actions - Optional action controls displayed below the description, typically a button or button group. Receives `size` automatically from the illustrated message.\n */\nexport abstract class IllustratedMessageBase extends SpectrumElement {\n // ─────────────────────────\n // API TO OVERRIDE\n // ─────────────────────────\n\n /**\n * @internal\n */\n static readonly VALID_SIZES: readonly IllustratedMessageSize[] =\n ILLUSTRATED_MESSAGE_VALID_SIZES;\n\n /**\n * @internal\n */\n static readonly VALID_ORIENTATIONS: readonly IllustratedMessageOrientation[] =\n ILLUSTRATED_MESSAGE_VALID_ORIENTATIONS;\n\n // ──────────────────\n // SHARED API\n // ──────────────────\n\n /**\n * The size of the message\n *\n * @default m\n */\n @property({ type: String, reflect: true })\n public size: IllustratedMessageSize = 'm';\n\n /**\n * The layout orientation\n */\n @property({ type: String, reflect: true })\n public orientation: IllustratedMessageOrientation = 'vertical';\n\n // ──────────────────────\n // CONTROLLERS\n // ──────────────────────\n\n /**\n * Observes whether the default (illustration) slot has assigned content.\n *\n * @internal\n */\n protected slotText = new SlotTextController(this);\n\n // ──────────────────────\n // IMPLEMENTATION\n // ──────────────────────\n\n private readonly _sizePropagation = new SlotAttributePropagationController(\n this,\n {\n attribute: 'size',\n getValue: () => this.size,\n slotName: 'actions',\n }\n );\n\n /**\n * Whether the default (illustration) slot has assigned content, so\n * rendering subclasses can collapse the illustration wrapper when no\n * illustration is provided instead of reserving its fixed size.\n */\n protected get hasIllustration(): boolean {\n return this.slotText.hasContent;\n }\n\n protected override update(changedProperties: PropertyValues): void {\n if (changedProperties.has('size')) {\n validateEnum(this, {\n prop: 'size',\n value: this.size,\n valid: ILLUSTRATED_MESSAGE_VALID_SIZES,\n url: 'https://spectrum-web-components.adobe.com/?path=/docs/components-illustrated-message--docs',\n });\n }\n\n if (changedProperties.has('orientation')) {\n validateEnum(this, {\n prop: 'orientation',\n value: this.orientation,\n valid: ILLUSTRATED_MESSAGE_VALID_ORIENTATIONS,\n url: 'https://spectrum-web-components.adobe.com/?path=/docs/components-illustrated-message--docs',\n });\n }\n\n super.update(changedProperties);\n }\n\n protected handleActionsSlotChange(): void {\n this._sizePropagation.propagate();\n }\n\n /**\n * @internal\n *\n * Validates the heading slot: children must be `<h2>`–`<h6>`, and at most a\n * single heading is allowed. Rendering subclasses must wire this to the\n * heading slot's `slotchange` event (e.g.\n * `<slot name=\"heading\" @slotchange=${this.handleHeadingSlotChange}>`) for the\n * validation warnings to fire.\n */\n protected handleHeadingSlotChange(event: Event): void {\n const slot = event.target as HTMLSlotElement;\n const url =\n 'https://spectrum-web-components.adobe.com/?path=/docs/components-illustrated-message--docs';\n validateAllowedChildren(\n this,\n slot,\n ['h2', 'h3', 'h4', 'h5', 'h6'],\n 'heading',\n url\n );\n const headingCount = slot.assignedElements().length;\n warnIf(\n this,\n headingCount > 1,\n `<${this.localName}> \"heading\" slot accepts a single heading element but received ${headingCount}.`,\n url,\n { issues: [`heading slot: ${headingCount} elements`] }\n );\n }\n}\n"],"mappings":";;;;;;;;OA0CsB,IAAtB,cAAqD,EAAgB;;2BA2B7B,wBAMc,4BAW/B,IAAI,EAAmB,KAAK,0BAMb,IAAI,EACtC,MACA;GACE,WAAW;GACX,gBAAgB,KAAK;GACrB,UAAU;GACX,CACF;;CAOD,IAAc,kBAA2B;AACvC,SAAO,KAAK,SAAS;;CAGvB,OAA0B,GAAyC;AAmBjE,EAlBI,EAAkB,IAAI,OAAO,IAC/B,EAAa,MAAM;GACjB,MAAM;GACN,OAAO,KAAK;GACZ,OAAO;GACP,KAAK;GACN,CAAC,EAGA,EAAkB,IAAI,cAAc,IACtC,EAAa,MAAM;GACjB,MAAM;GACN,OAAO,KAAK;GACZ,OAAO;GACP,KAAK;GACN,CAAC,EAGJ,MAAM,OAAO,EAAkB;;CAGjC,0BAA0C;AACxC,OAAK,iBAAiB,WAAW;;CAYnC,wBAAkC,GAAoB;EACpD,IAAM,IAAO,EAAM,QACb,IACJ;AACF,IACE,MACA,GACA;GAAC;GAAM;GAAM;GAAM;GAAM;GAAK,EAC9B,WACA,EACD;EACD,IAAM,IAAe,EAAK,kBAAkB,CAAC;AAC7C,IACE,MACA,IAAe,GACf,IAAI,KAAK,UAAU,iEAAiE,EAAa,IACjG,GACA,EAAE,QAAQ,CAAC,iBAAiB,EAAa,WAAW,EAAE,CACvD;;;uBAhHD,0BAMA,MAWD,EAAS;CAAE,MAAM;CAAQ,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,QAAA,KAAA,EAAA,KAMzC,EAAS;CAAE,MAAM;CAAQ,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,eAAA,KAAA,EAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ILLUSTRATED_MESSAGE_VALID_SIZES: readonly ["s", "m", "l"];
|
|
13
|
+
export declare const ILLUSTRATED_MESSAGE_VALID_ORIENTATIONS: readonly ["vertical", "horizontal"];
|
|
14
|
+
export type IllustratedMessageSize = (typeof ILLUSTRATED_MESSAGE_VALID_SIZES)[number];
|
|
15
|
+
export type IllustratedMessageOrientation = (typeof ILLUSTRATED_MESSAGE_VALID_ORIENTATIONS)[number];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region components/illustrated-message/IllustratedMessage.types.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"s",
|
|
4
|
+
"m",
|
|
5
|
+
"l"
|
|
6
|
+
], t = ["vertical", "horizontal"];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as ILLUSTRATED_MESSAGE_VALID_ORIENTATIONS, e as ILLUSTRATED_MESSAGE_VALID_SIZES };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=IllustratedMessage.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IllustratedMessage.types.js","names":[],"sources":["../../../components/illustrated-message/IllustratedMessage.types.ts"],"sourcesContent":["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport type { ElementSize } from '@adobe/spectrum-wc-core/mixins/index.js';\n\nexport const ILLUSTRATED_MESSAGE_VALID_SIZES = [\n 's',\n 'm',\n 'l',\n] as const satisfies readonly ElementSize[];\n\nexport const ILLUSTRATED_MESSAGE_VALID_ORIENTATIONS = [\n 'vertical',\n 'horizontal',\n] as const satisfies readonly string[];\n\nexport type IllustratedMessageSize =\n (typeof ILLUSTRATED_MESSAGE_VALID_SIZES)[number];\n\nexport type IllustratedMessageOrientation =\n (typeof ILLUSTRATED_MESSAGE_VALID_ORIENTATIONS)[number];\n"],"mappings":";AAcA,IAAa,IAAkC;CAC7C;CACA;CACA;CACD,EAEY,IAAyC,CACpD,YACA,aACD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
export * from './IllustratedMessage.base.js';
|
|
13
|
+
export * from './IllustratedMessage.types.js';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ILLUSTRATED_MESSAGE_VALID_ORIENTATIONS as e, ILLUSTRATED_MESSAGE_VALID_SIZES as t } from "./IllustratedMessage.types.js";
|
|
2
|
+
import { IllustratedMessageBase as n } from "./IllustratedMessage.base.js";
|
|
3
|
+
export { e as ILLUSTRATED_MESSAGE_VALID_ORIENTATIONS, t as ILLUSTRATED_MESSAGE_VALID_SIZES, n as IllustratedMessageBase };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ButtonBase } from '../button';
|
|
2
|
+
import { InfieldButtonSize } from './InfieldButton.types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Abstract base class for infield button components. Extends ButtonBase with a
|
|
5
|
+
* restricted size set, quiet treatment, and non-focusable shadow root.
|
|
6
|
+
*
|
|
7
|
+
* Infield buttons are always embedded inside a form field (e.g. number field). They are
|
|
8
|
+
* clickable via pointer only; they are not in the tab order and not independently focusable.
|
|
9
|
+
* All keyboard behavior is owned by the parent field, which also provides the visible
|
|
10
|
+
* focus ring. The parent field is expected to set the `size` attribute.
|
|
11
|
+
*
|
|
12
|
+
* @slot icon - Icon to display inside the button.
|
|
13
|
+
*
|
|
14
|
+
* @attribute {ElementSize} size - Size delegated from the parent field. Defaults to
|
|
15
|
+
* medium when no parent sets it, though standalone usage is not supported.
|
|
16
|
+
*/
|
|
17
|
+
export declare abstract class InfieldButtonBase extends ButtonBase {
|
|
18
|
+
/** @internal */
|
|
19
|
+
static readonly VALID_SIZES: readonly InfieldButtonSize[];
|
|
20
|
+
/** @internal */
|
|
21
|
+
static readonly NO_DEFAULT_SIZE = true;
|
|
22
|
+
static shadowRootOptions: ShadowRootInit;
|
|
23
|
+
/**
|
|
24
|
+
* Applies the quiet (no-background) visual treatment. Used when the infield button
|
|
25
|
+
* is part of a quiet field variant.
|
|
26
|
+
*/
|
|
27
|
+
quiet: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __decorate as e } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.js";
|
|
2
|
+
import { INFIELD_BUTTON_VALID_SIZES as t } from "./InfieldButton.types.js";
|
|
3
|
+
import { property as n } from "lit/decorators.js";
|
|
4
|
+
import { SpectrumElement as r } from "@adobe/spectrum-wc-core/element/index.js";
|
|
5
|
+
import { ButtonBase as i } from "@adobe/spectrum-wc-core/components/button";
|
|
6
|
+
//#region components/infield-button/InfieldButton.base.ts
|
|
7
|
+
var a, o = class extends i {
|
|
8
|
+
constructor(...e) {
|
|
9
|
+
super(...e), this.quiet = !1;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
a = o, a.VALID_SIZES = t, a.NO_DEFAULT_SIZE = !0, a.shadowRootOptions = {
|
|
13
|
+
...r.shadowRootOptions,
|
|
14
|
+
delegatesFocus: !1
|
|
15
|
+
}, e([n({
|
|
16
|
+
type: Boolean,
|
|
17
|
+
reflect: !0
|
|
18
|
+
})], o.prototype, "quiet", void 0);
|
|
19
|
+
//#endregion
|
|
20
|
+
export { o as InfieldButtonBase };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=InfieldButton.base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfieldButton.base.js","names":[],"sources":["../../../components/infield-button/InfieldButton.base.ts"],"sourcesContent":["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { property } from 'lit/decorators.js';\n\nimport { ButtonBase } from '@adobe/spectrum-wc-core/components/button';\nimport { SpectrumElement } from '@adobe/spectrum-wc-core/element/index.js';\n\nimport {\n INFIELD_BUTTON_VALID_SIZES,\n type InfieldButtonSize,\n} from './InfieldButton.types.js';\n\n/**\n * Abstract base class for infield button components. Extends ButtonBase with a\n * restricted size set, quiet treatment, and non-focusable shadow root.\n *\n * Infield buttons are always embedded inside a form field (e.g. number field). They are\n * clickable via pointer only; they are not in the tab order and not independently focusable.\n * All keyboard behavior is owned by the parent field, which also provides the visible\n * focus ring. The parent field is expected to set the `size` attribute.\n *\n * @slot icon - Icon to display inside the button.\n *\n * @attribute {ElementSize} size - Size delegated from the parent field. Defaults to\n * medium when no parent sets it, though standalone usage is not supported.\n */\nexport abstract class InfieldButtonBase extends ButtonBase {\n // ────────────────────\n // API OVERRIDES\n // ────────────────────\n\n /** @internal */\n static override readonly VALID_SIZES: readonly InfieldButtonSize[] =\n INFIELD_BUTTON_VALID_SIZES;\n\n // The parent field owns sizing; infield buttons must not auto-reflect size=\"m\"\n // when no explicit size is provided. Overriding NO_DEFAULT_SIZE lets the\n // SizedMixin setter and update() read this flag via this.constructor, so the\n // decision cascades through the full prototype chain without closure leakage.\n /** @internal */\n static override readonly NO_DEFAULT_SIZE = true;\n\n // Infield buttons are clickable but never independently focusable. The parent field\n // owns keyboard behavior and supplies the only focus ring.\n static override shadowRootOptions: ShadowRootInit = {\n ...SpectrumElement.shadowRootOptions,\n delegatesFocus: false,\n };\n\n // ───────────────────\n // API ADDITIONS\n // ───────────────────\n\n /**\n * Applies the quiet (no-background) visual treatment. Used when the infield button\n * is part of a quiet field variant.\n */\n @property({ type: Boolean, reflect: true })\n public quiet: boolean = false;\n}\n"],"mappings":";;;;;;OAoCsB,IAAtB,cAAgD,EAAW;;4BAgCjC;;;uBAzBtB,uBAOyC,0BAIS;CAClD,GAAG,EAAgB;CACnB,gBAAgB;CACjB,KAUA,EAAS;CAAE,MAAM;CAAS,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,SAAA,KAAA,EAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
export declare const INFIELD_BUTTON_VALID_SIZES: readonly ["s", "m", "l", "xl"];
|
|
13
|
+
export type InfieldButtonSize = (typeof INFIELD_BUTTON_VALID_SIZES)[number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfieldButton.types.js","names":[],"sources":["../../../components/infield-button/InfieldButton.types.ts"],"sourcesContent":["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport type { ElementSize } from '@adobe/spectrum-wc-core/mixins/index.js';\n\n// ──────────────────\n// SHARED\n// ──────────────────\n\nexport const INFIELD_BUTTON_VALID_SIZES = [\n 's',\n 'm',\n 'l',\n 'xl',\n] as const satisfies readonly ElementSize[];\n\n// ──────────────────\n// TYPES\n// ──────────────────\n\nexport type InfieldButtonSize = (typeof INFIELD_BUTTON_VALID_SIZES)[number];\n"],"mappings":";AAkBA,IAAa,IAA6B;CACxC;CACA;CACA;CACA;CACD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
export * from './InfieldButton.base.js';
|
|
13
|
+
export * from './InfieldButton.types.js';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { SpectrumElement } from '../../element/index.js';
|
|
3
|
+
import { LINEAR_PROGRESS_VALID_SIZES } from '../../mixins/index.js';
|
|
4
|
+
import { MeterVariant } from './Meter.types.js';
|
|
5
|
+
declare const MeterBase_base: typeof SpectrumElement & {
|
|
6
|
+
new (...args: any[]): import('../../mixins/index.js').SizedElementInterface;
|
|
7
|
+
prototype: import('../../mixins/index.js').SizedElementInterface;
|
|
8
|
+
} & import('../../mixins/index.js').SizedElementConstructor & {
|
|
9
|
+
new (...args: any[]): import('../../mixins/index.js').LinearProgressInterface;
|
|
10
|
+
prototype: import('../../mixins/index.js').LinearProgressInterface;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A non-focusable, read-only bar that shows a value inside a fixed range.
|
|
14
|
+
* Implements the WAI-ARIA `meter` role on the shadow `.swc-Meter` element
|
|
15
|
+
* (the host carries no ARIA).
|
|
16
|
+
*
|
|
17
|
+
* @attribute {ElementSize} size - The size of the meter.
|
|
18
|
+
*/
|
|
19
|
+
export declare abstract class MeterBase extends MeterBase_base {
|
|
20
|
+
/**
|
|
21
|
+
* The size of the meter.
|
|
22
|
+
*
|
|
23
|
+
* @default m
|
|
24
|
+
*/
|
|
25
|
+
size: (typeof LINEAR_PROGRESS_VALID_SIZES)[number];
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*
|
|
29
|
+
* A readonly array of all valid variants for the meter. Concrete
|
|
30
|
+
* subclasses re-declare with their own valid set so validation logic
|
|
31
|
+
* resolves against `(this.constructor as typeof MeterBase).VARIANTS`.
|
|
32
|
+
*/
|
|
33
|
+
static readonly VARIANTS: readonly string[];
|
|
34
|
+
/**
|
|
35
|
+
* The variant of the meter. Drives the bar fill color.
|
|
36
|
+
*/
|
|
37
|
+
variant: MeterVariant;
|
|
38
|
+
protected willUpdate(changes: PropertyValues): void;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __decorate as e } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.js";
|
|
2
|
+
import { METER_VARIANTS as t } from "./Meter.types.js";
|
|
3
|
+
import { property as n } from "lit/decorators.js";
|
|
4
|
+
import { SpectrumElement as r } from "@adobe/spectrum-wc-core/element/index.js";
|
|
5
|
+
import { LINEAR_PROGRESS_VALID_SIZES as i, LinearProgressMixin as a, SizedMixin as o } from "@adobe/spectrum-wc-core/mixins/index.js";
|
|
6
|
+
import { validateEnum as s } from "@adobe/spectrum-wc-core/utils/index.js";
|
|
7
|
+
//#region components/meter/Meter.base.ts
|
|
8
|
+
var c, l = class extends a(o(r, {
|
|
9
|
+
validSizes: i,
|
|
10
|
+
defaultSize: "m"
|
|
11
|
+
})) {
|
|
12
|
+
constructor(...e) {
|
|
13
|
+
super(...e), this.variant = "informative";
|
|
14
|
+
}
|
|
15
|
+
willUpdate(e) {
|
|
16
|
+
let t = this.constructor;
|
|
17
|
+
t.VARIANTS.includes(this.variant) || (s(this, {
|
|
18
|
+
prop: "variant",
|
|
19
|
+
value: this.variant,
|
|
20
|
+
valid: t.VARIANTS,
|
|
21
|
+
url: "https://spectrum-web-components.adobe.com/?path=/docs/components-meter--docs"
|
|
22
|
+
}), this.variant = "informative"), super.willUpdate(e);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
c = l, c.VARIANTS = t, e([n({
|
|
26
|
+
type: String,
|
|
27
|
+
reflect: !0
|
|
28
|
+
})], l.prototype, "variant", void 0);
|
|
29
|
+
//#endregion
|
|
30
|
+
export { l as MeterBase };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=Meter.base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Meter.base.js","names":[],"sources":["../../../components/meter/Meter.base.ts"],"sourcesContent":["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nimport { SpectrumElement } from '@adobe/spectrum-wc-core/element/index.js';\nimport {\n LINEAR_PROGRESS_VALID_SIZES,\n LinearProgressMixin,\n SizedMixin,\n} from '@adobe/spectrum-wc-core/mixins/index.js';\nimport { validateEnum } from '@adobe/spectrum-wc-core/utils/index.js';\n\nimport { METER_VARIANTS, type MeterVariant } from './Meter.types.js';\n\n/**\n * A non-focusable, read-only bar that shows a value inside a fixed range.\n * Implements the WAI-ARIA `meter` role on the shadow `.swc-Meter` element\n * (the host carries no ARIA).\n *\n * @attribute {ElementSize} size - The size of the meter.\n */\nexport abstract class MeterBase extends LinearProgressMixin(\n SizedMixin(SpectrumElement, {\n validSizes: LINEAR_PROGRESS_VALID_SIZES,\n defaultSize: 'm',\n })\n) {\n /**\n * The size of the meter.\n *\n * @default m\n */\n declare public size: (typeof LINEAR_PROGRESS_VALID_SIZES)[number];\n\n // ─────────────────────────\n // API TO OVERRIDE\n // ─────────────────────────\n\n /**\n * @internal\n *\n * A readonly array of all valid variants for the meter. Concrete\n * subclasses re-declare with their own valid set so validation logic\n * resolves against `(this.constructor as typeof MeterBase).VARIANTS`.\n */\n static readonly VARIANTS: readonly string[] = METER_VARIANTS;\n\n /**\n * The variant of the meter. Drives the bar fill color.\n */\n @property({ type: String, reflect: true })\n public variant: MeterVariant = 'informative';\n\n // ──────────────────────\n // IMPLEMENTATION\n // ──────────────────────\n\n protected override willUpdate(changes: PropertyValues): void {\n const constructor = this.constructor as typeof MeterBase;\n if (!constructor.VARIANTS.includes(this.variant)) {\n validateEnum(this, {\n prop: 'variant',\n value: this.variant,\n valid: constructor.VARIANTS,\n url: 'https://spectrum-web-components.adobe.com/?path=/docs/components-meter--docs',\n });\n // Unknown variant: fall back to the default so the reflected\n // attribute and fill color always resolve to a valid variant.\n // Normalizing in `willUpdate` (Lit's input-normalization hook) folds\n // the change into the current cycle instead of scheduling a second\n // reactive update.\n this.variant = 'informative';\n }\n super.willUpdate(changes);\n }\n}\n"],"mappings":";;;;;;;OAgCsB,IAAtB,cAAwC,EACtC,EAAW,GAAiB;CAC1B,YAAY;CACZ,aAAa;CACd,CAAC,CACH,CAAC;;8BAyB+B;;CAM/B,WAA8B,GAA+B;EAC3D,IAAM,IAAc,KAAK;AAezB,EAdK,EAAY,SAAS,SAAS,KAAK,QAAQ,KAC9C,EAAa,MAAM;GACjB,MAAM;GACN,OAAO,KAAK;GACZ,OAAO,EAAY;GACnB,KAAK;GACN,CAAC,EAMF,KAAK,UAAU,gBAEjB,MAAM,WAAW,EAAQ;;;oBA5BmB,MAK7C,EAAS;CAAE,MAAM;CAAQ,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,WAAA,KAAA,EAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
export declare const METER_VARIANTS: readonly ["informative", "positive", "notice", "negative"];
|
|
13
|
+
export type MeterVariant = (typeof METER_VARIANTS)[number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Meter.types.js","names":[],"sources":["../../../components/meter/Meter.types.ts"],"sourcesContent":["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport const METER_VARIANTS = [\n 'informative',\n 'positive',\n 'notice',\n 'negative',\n] as const;\nexport type MeterVariant = (typeof METER_VARIANTS)[number];\n"],"mappings":";AAYA,IAAa,IAAiB;CAC5B;CACA;CACA;CACA;CACD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
export * from './Meter.base.js';
|
|
13
|
+
export * from './Meter.types.js';
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { VirtualTrigger } from '../../controllers/index.js';
|
|
3
|
+
import { SpectrumElement } from '../../element/index.js';
|
|
4
|
+
import { Placement, PopoverSize } from './Popover.types.js';
|
|
5
|
+
/**
|
|
6
|
+
* Abstract base for the popover component. Owns the popover's behavior: the
|
|
7
|
+
* dual-mode dialog lifecycle (`showPopover()` / `showModal()`), trigger and ARIA
|
|
8
|
+
* wiring, positioning through the `PlacementController`, dismissal coordination,
|
|
9
|
+
* and `swc-*` event dispatch. The concrete SWC subclass adds only the styles, the
|
|
10
|
+
* render template, and the shadow-DOM element getters (`internalElement`,
|
|
11
|
+
* `tipElement`) it overrides.
|
|
12
|
+
*
|
|
13
|
+
* @slot - Popover content. Free-form; consumers slot whatever pattern they build.
|
|
14
|
+
*/
|
|
15
|
+
export declare abstract class PopoverBase extends SpectrumElement {
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*
|
|
19
|
+
* The valid placement values for the popover. Narrowed in downstream
|
|
20
|
+
* first-party subclasses per the proxy pattern.
|
|
21
|
+
*/
|
|
22
|
+
static readonly VALID_PLACEMENTS: readonly Placement[];
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*
|
|
26
|
+
* The valid fixed sizes for the popover.
|
|
27
|
+
*/
|
|
28
|
+
static readonly VALID_SIZES: readonly PopoverSize[];
|
|
29
|
+
/**
|
|
30
|
+
* Whether the popover is open.
|
|
31
|
+
*
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
open: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Opt in to blocking modal behavior (`<dialog>.showModal()`): focus trap,
|
|
37
|
+
* background inert, native `role="dialog"`. When unset, the popover uses
|
|
38
|
+
* `popover="auto"` light-dismiss behavior.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
modal: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Accessible name for the popover's dialog surface, forwarded as `aria-label`
|
|
45
|
+
* to the internal element. Required in both modes (the surface is a dialog);
|
|
46
|
+
* the component dev-warns when opened without one.
|
|
47
|
+
*/
|
|
48
|
+
accessibleLabel: string;
|
|
49
|
+
/**
|
|
50
|
+
* The placement of the popover relative to its trigger.
|
|
51
|
+
*
|
|
52
|
+
* @default 'bottom'
|
|
53
|
+
*/
|
|
54
|
+
placement: Placement;
|
|
55
|
+
/**
|
|
56
|
+
* Optional fixed size. When set, the popover uses a fixed inline size
|
|
57
|
+
* (`s` → 336px, `m` → 416px, `l` → 576px); when unset, it fits its contents.
|
|
58
|
+
*/
|
|
59
|
+
size?: PopoverSize;
|
|
60
|
+
/**
|
|
61
|
+
* Hide the popover's arrow (tip). The arrow is shown by default.
|
|
62
|
+
*
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
hideArrow: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Main-axis offset in pixels from the trigger.
|
|
68
|
+
*
|
|
69
|
+
* @default 8
|
|
70
|
+
*/
|
|
71
|
+
offset: number;
|
|
72
|
+
/**
|
|
73
|
+
* Cross-axis offset in pixels from the trigger.
|
|
74
|
+
*
|
|
75
|
+
* @default 0
|
|
76
|
+
*/
|
|
77
|
+
crossOffset: number;
|
|
78
|
+
/**
|
|
79
|
+
* Distance from the viewport edge for the `flip` and `shift` middleware.
|
|
80
|
+
*
|
|
81
|
+
* Positioning implementation detail. Set by first-party components; excluded
|
|
82
|
+
* from the public API. Users are not expected to set it.
|
|
83
|
+
*
|
|
84
|
+
* @internal
|
|
85
|
+
* @default 8
|
|
86
|
+
*/
|
|
87
|
+
containerPadding: number;
|
|
88
|
+
/**
|
|
89
|
+
* Allow the popover to flip to the opposite side when constrained. When
|
|
90
|
+
* `false`, the popover stays in the requested placement.
|
|
91
|
+
*
|
|
92
|
+
* @default true
|
|
93
|
+
*/
|
|
94
|
+
shouldFlip: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Minimum inset of the tip from the popover's corners, passed to the
|
|
97
|
+
* `PlacementController`'s `arrow` middleware as its `padding`.
|
|
98
|
+
*
|
|
99
|
+
* Positioning implementation detail. Set by first-party components; excluded
|
|
100
|
+
* from the public API. Users are not expected to set it.
|
|
101
|
+
*
|
|
102
|
+
* @internal
|
|
103
|
+
* @default 8
|
|
104
|
+
*/
|
|
105
|
+
tipPadding: number;
|
|
106
|
+
/**
|
|
107
|
+
* ID of the trigger element in the same document tree root.
|
|
108
|
+
*/
|
|
109
|
+
for?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Direct trigger reference. Overrides `for` when both are set. Use for
|
|
112
|
+
* cross-shadow-root triggers or programmatic wiring.
|
|
113
|
+
*/
|
|
114
|
+
triggerElement: HTMLElement | VirtualTrigger | null;
|
|
115
|
+
/**
|
|
116
|
+
* Suppress the automatic click-to-toggle wiring on the resolved trigger. When
|
|
117
|
+
* set, control visibility through the `open` property instead. ARIA
|
|
118
|
+
* relationship wiring still applies.
|
|
119
|
+
*
|
|
120
|
+
* @default false
|
|
121
|
+
*/
|
|
122
|
+
manual: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* The internal top-layer element (a `<div popover>` or a `<dialog>`) the
|
|
125
|
+
* lifecycle drives. Mandatory: the SWC rendering layer must implement this to
|
|
126
|
+
* return the rendered `.swc-Popover` element from the shadow DOM (it may still
|
|
127
|
+
* return `null` before the first render, which the lifecycle guards against).
|
|
128
|
+
*/
|
|
129
|
+
protected abstract get internalElement(): HTMLElement | null;
|
|
130
|
+
/**
|
|
131
|
+
* The arrow tip element passed to the `PlacementController`. Optional: returns
|
|
132
|
+
* `null` in the base class (no arrow), and the SWC rendering layer overrides it
|
|
133
|
+
* to return the rendered `.swc-Popover-tip` element when an arrow is shown.
|
|
134
|
+
*/
|
|
135
|
+
protected get tipElement(): HTMLElement | null;
|
|
136
|
+
/**
|
|
137
|
+
* The arrow's height in pixels, added to the trigger gap when the arrow is
|
|
138
|
+
* shown. Returns `0` in the base class; the SWC rendering layer overrides it
|
|
139
|
+
* with the token-derived value so the gap stays in sync with the tip, keeping
|
|
140
|
+
* the base free of any coupling to the surface's CSS.
|
|
141
|
+
*/
|
|
142
|
+
protected get arrowHeight(): number;
|
|
143
|
+
private _placementController;
|
|
144
|
+
/**
|
|
145
|
+
* Page-scroll lock for modal mode. Reference-counted at module scope so stacked
|
|
146
|
+
* modal surfaces coordinate a single lock and restore the original overflow
|
|
147
|
+
* exactly once. See {@link PageScrollLockController}.
|
|
148
|
+
*/
|
|
149
|
+
private _scrollLock;
|
|
150
|
+
/** The trigger's AT-facing element that receives ARIA wiring. */
|
|
151
|
+
private _interactiveElement;
|
|
152
|
+
/** The positioning anchor (an element or a `VirtualTrigger`). */
|
|
153
|
+
private _anchor;
|
|
154
|
+
/** The element the click-to-toggle listeners are currently attached to. */
|
|
155
|
+
private _clickTrigger;
|
|
156
|
+
/**
|
|
157
|
+
* True between a trigger press start (`pointerdown`/`touchstart`) and its
|
|
158
|
+
* `click`, so a light-dismiss inside that window is attributed to the press.
|
|
159
|
+
* Both events open it, covering touch (where the dismiss can fire off
|
|
160
|
+
* `touchstart` before `pointerdown`).
|
|
161
|
+
*/
|
|
162
|
+
private _triggerPointerActive;
|
|
163
|
+
/** Cancels the pending press-end listeners armed in `_onTriggerPressStart`. */
|
|
164
|
+
private _pressEndAbort;
|
|
165
|
+
/**
|
|
166
|
+
* Set when the trigger press light-dismissed an open popover (an `'outside'`
|
|
167
|
+
* close observed while `_triggerPointerActive`), so the trailing `click` of
|
|
168
|
+
* that same gesture is read as the close rather than a reopen.
|
|
169
|
+
*/
|
|
170
|
+
private _dismissedByTriggerPress;
|
|
171
|
+
/** Cause of the in-progress close, read when dispatching `swc-close`. */
|
|
172
|
+
private _closeSource;
|
|
173
|
+
/** Suppresses the open/close effect when `open` is synced from a native event. */
|
|
174
|
+
private _syncingOpen;
|
|
175
|
+
/**
|
|
176
|
+
* Suppresses the next `swc-open` dispatch. Set when re-showing an
|
|
177
|
+
* already-open popover (a `modal` toggle swaps the internal element), so the
|
|
178
|
+
* mode swap does not emit a second `swc-open` with no intervening close.
|
|
179
|
+
*/
|
|
180
|
+
private _suppressOpenEvent;
|
|
181
|
+
/** Document Escape listener (default mode) used to label the close source. */
|
|
182
|
+
private _escapeListener?;
|
|
183
|
+
/** Tears down the in-flight `_afterTransition` wiring (listener + fallback timer). */
|
|
184
|
+
private _cancelAfterTransition?;
|
|
185
|
+
/**
|
|
186
|
+
* Set after the first render. Auto-focus on open is suppressed until then so an
|
|
187
|
+
* initially-`open` popover (server-rendered or a static demo) does not steal
|
|
188
|
+
* focus on mount; only an open triggered after the element is live moves focus.
|
|
189
|
+
*/
|
|
190
|
+
private _hasCompletedFirstUpdate;
|
|
191
|
+
/**
|
|
192
|
+
* Set when a default-mode open should move focus into the dialog surface;
|
|
193
|
+
* consumed by the first placement compute so focus lands after the surface is
|
|
194
|
+
* anchored on screen (focusing it at its 0,0 reset origin would shift layout).
|
|
195
|
+
* Modal mode moves focus natively via `showModal()`.
|
|
196
|
+
*/
|
|
197
|
+
private _pendingFocusOnOpen;
|
|
198
|
+
disconnectedCallback(): void;
|
|
199
|
+
protected update(changedProperties: PropertyValues): void;
|
|
200
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
201
|
+
private _positioningChanged;
|
|
202
|
+
private _wireTrigger;
|
|
203
|
+
private _removeTriggerListeners;
|
|
204
|
+
private _onTriggerPressStart;
|
|
205
|
+
private _onTriggerPressEnd;
|
|
206
|
+
private _onTriggerClick;
|
|
207
|
+
private _clearTriggerAria;
|
|
208
|
+
private _isFocusWithin;
|
|
209
|
+
private _startPositioning;
|
|
210
|
+
private _show;
|
|
211
|
+
private _focusSurface;
|
|
212
|
+
private _hide;
|
|
213
|
+
private _closeTeardown;
|
|
214
|
+
private _stopPositioningWhenClosed;
|
|
215
|
+
/** Set `open` without re-triggering the show/hide effect. */
|
|
216
|
+
private _syncOpen;
|
|
217
|
+
protected _onBeforeToggle: (event: ToggleEvent) => void;
|
|
218
|
+
protected _onCancel: (event: Event) => void;
|
|
219
|
+
protected _onClose: () => void;
|
|
220
|
+
protected _onPointerDown: (event: PointerEvent) => void;
|
|
221
|
+
private _addEscapeListener;
|
|
222
|
+
private _removeEscapeListener;
|
|
223
|
+
private _dispatchOpen;
|
|
224
|
+
private _dispatchClose;
|
|
225
|
+
private _afterTransition;
|
|
226
|
+
}
|