@ai-ecoverse/slicc-spectrum 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +63 -3
  2. package/dist/chunk-24WRGUXG.js +168 -0
  3. package/dist/chunk-24WRGUXG.js.map +7 -0
  4. package/dist/chunk-364Y2XOJ.js +28 -0
  5. package/dist/chunk-364Y2XOJ.js.map +7 -0
  6. package/dist/chunk-4RGMMAR4.js +18 -0
  7. package/dist/chunk-4RGMMAR4.js.map +7 -0
  8. package/dist/chunk-5OVGH7HO.js +28 -0
  9. package/dist/chunk-5OVGH7HO.js.map +7 -0
  10. package/dist/chunk-6A6NIESE.js +9 -0
  11. package/dist/chunk-6A6NIESE.js.map +7 -0
  12. package/dist/chunk-EN3XGF2M.js +26 -0
  13. package/dist/chunk-EN3XGF2M.js.map +7 -0
  14. package/dist/chunk-ER3HU7OE.js +22 -0
  15. package/dist/chunk-ER3HU7OE.js.map +7 -0
  16. package/dist/chunk-FN3Y2AYJ.js +17 -0
  17. package/dist/chunk-FN3Y2AYJ.js.map +7 -0
  18. package/dist/chunk-H5WU2XYY.js +8 -0
  19. package/dist/chunk-H5WU2XYY.js.map +7 -0
  20. package/dist/chunk-HBUX7E54.js +234 -0
  21. package/dist/chunk-HBUX7E54.js.map +7 -0
  22. package/dist/chunk-IBQ4O4NO.js +13 -0
  23. package/dist/chunk-IBQ4O4NO.js.map +7 -0
  24. package/dist/chunk-J45KH7MF.js +180 -0
  25. package/dist/chunk-J45KH7MF.js.map +7 -0
  26. package/dist/chunk-JASEW37G.js +411 -0
  27. package/dist/chunk-JASEW37G.js.map +7 -0
  28. package/dist/chunk-MR7SU4GJ.js +59 -0
  29. package/dist/chunk-MR7SU4GJ.js.map +7 -0
  30. package/dist/chunk-MTF6JFSL.js +1093 -0
  31. package/dist/chunk-MTF6JFSL.js.map +7 -0
  32. package/dist/chunk-Q4AC2O6Z.js +13 -0
  33. package/dist/chunk-Q4AC2O6Z.js.map +7 -0
  34. package/dist/chunk-SZ33GAVH.js +2638 -0
  35. package/dist/chunk-SZ33GAVH.js.map +7 -0
  36. package/dist/chunk-T5NHW4KC.js +23 -0
  37. package/dist/chunk-T5NHW4KC.js.map +7 -0
  38. package/dist/chunk-T5QFSUYQ.js +8 -0
  39. package/dist/chunk-T5QFSUYQ.js.map +7 -0
  40. package/dist/chunk-TS7SL372.js +687 -0
  41. package/dist/chunk-TS7SL372.js.map +7 -0
  42. package/dist/chunk-Y4Z7K443.js +64 -0
  43. package/dist/chunk-Y4Z7K443.js.map +7 -0
  44. package/dist/chunk-ZMBN6APP.js +11 -0
  45. package/dist/chunk-ZMBN6APP.js.map +7 -0
  46. package/dist/chunk-ZTPYBVZL.js +181 -0
  47. package/dist/chunk-ZTPYBVZL.js.map +7 -0
  48. package/dist/fonts/source-code-pro-latin-400-normal.woff2 +0 -0
  49. package/dist/fonts/source-code-pro-latin-600-normal.woff2 +0 -0
  50. package/dist/slicc-dummy.js +1393 -0
  51. package/dist/slicc-dummy.js.map +7 -0
  52. package/dist/slicc-terminal.js +2 -27
  53. package/dist/slicc-terminal.js.map +4 -4
  54. package/dist/slicc-ui.js +22441 -0
  55. package/dist/slicc-ui.js.map +7 -0
  56. package/dist/types/app/agents.d.ts +11 -0
  57. package/dist/types/app/app.d.ts +40 -0
  58. package/dist/types/app/base.d.ts +27 -0
  59. package/dist/types/app/chat.d.ts +23 -0
  60. package/dist/types/app/fonts.d.ts +3 -0
  61. package/dist/types/app/markdown.d.ts +24 -0
  62. package/dist/types/app/panels.d.ts +31 -0
  63. package/dist/types/app/spectrum.d.ts +19 -0
  64. package/dist/types/components/dock.d.ts +24 -0
  65. package/dist/types/components/sheets.d.ts +1 -0
  66. package/dist/types/dummy/agent.d.ts +14 -0
  67. package/dist/types/dummy/browser.d.ts +15 -0
  68. package/dist/types/dummy/clock.d.ts +5 -0
  69. package/dist/types/dummy/files.d.ts +14 -0
  70. package/dist/types/dummy/fixtures.d.ts +11 -0
  71. package/dist/types/dummy/index.d.ts +6 -0
  72. package/dist/types/dummy/script.d.ts +23 -0
  73. package/dist/types/dummy/settings.d.ts +13 -0
  74. package/dist/types/dummy/shell.d.ts +16 -0
  75. package/dist/types/dummy/terminals.d.ts +15 -0
  76. package/dist/types/dummy.d.ts +2 -0
  77. package/dist/types/model/emitter.d.ts +9 -0
  78. package/dist/types/model/types.d.ts +183 -0
  79. package/dist/types/ui.d.ts +15 -0
  80. package/package.json +29 -11
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../node_modules/@spectrum-web-components/modal/src/modal.css.ts", "../node_modules/@spectrum-web-components/underlay/src/underlay.css.ts", "../node_modules/@spectrum-web-components/underlay/src/Underlay.ts", "../node_modules/@spectrum-web-components/underlay/sp-underlay.ts", "../node_modules/@spectrum-web-components/tray/src/tray.css.ts", "../node_modules/@spectrum-web-components/tray/src/Tray.ts", "../node_modules/@spectrum-web-components/tray/sp-tray.ts"],
4
+ "sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-modal-confirm-entry-animation-duration:var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-animation-duration-500));--spectrum-modal-confirm-entry-animation-delay:var(--mod-overlay-animation-duration-opened,var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-animation-duration-200)));--spectrum-modal-confirm-exit-animation-duration:var(--mod-overlay-animation-duration,var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-animation-duration-100)));--spectrum-modal-confirm-exit-animation-delay:var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-animation-duration-0));--spectrum-modal-fullscreen-margin:var(--mod-modal-fullscreen-margin,32px)}.modal{visibility:hidden;z-index:1;max-inline-size:90%;max-inline-size:var(--mod-modal-max-width,90%);max-block-size:90vh;max-block-size:var(--mod-modal-max-height,90vh);background:var(--mod-modal-background-color,var(--spectrum-modal-background-color));border-radius:var(--mod-modal-confirm-border-radius,var(--spectrum-corner-radius-100));pointer-events:auto;opacity:0;transform:translateY(var(--mod-modal-confirm-entry-animation-distance,var(--spectrum-dialog-confirm-entry-animation-distance)));transition:opacity var(--spectrum-modal-confirm-exit-animation-duration)var(--spectrum-animation-ease-in)var(--spectrum-modal-confirm-exit-animation-delay),visibility var(--spectrum-animation-duration-0)var(--spectrum-animation-linear)calc(var(--spectrum-modal-confirm-exit-animation-delay) + var(--spectrum-modal-confirm-exit-animation-duration)),transform var(--spectrum-animation-duration-0)var(--spectrum-animation-linear)calc(var(--spectrum-modal-confirm-exit-animation-delay) + var(--spectrum-modal-confirm-exit-animation-duration));outline:none;overflow:hidden}:host([open]) .modal{visibility:visible;pointer-events:auto;opacity:1;transition:transform var(--spectrum-modal-confirm-entry-animation-duration)var(--spectrum-animation-ease-out)var(--spectrum-modal-confirm-entry-animation-delay),opacity var(--spectrum-modal-confirm-entry-animation-duration)var(--spectrum-animation-ease-out)var(--spectrum-modal-confirm-entry-animation-delay);transform:translateY(0)}@media only screen and (device-height<=350px),only screen and (device-width<=400px){:host([responsive]) .modal{border-radius:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}}.fullscreen{max-block-size:none;max-inline-size:none;position:fixed;inset-block-start:var(--spectrum-modal-fullscreen-margin);inset-block-end:var(--spectrum-modal-fullscreen-margin);inset-inline-start:var(--spectrum-modal-fullscreen-margin);inset-inline-end:var(--spectrum-modal-fullscreen-margin)}.fullscreenTakeover{box-sizing:border-box;border:none;border-radius:0;max-block-size:none;max-inline-size:none;position:fixed;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}:host{--spectrum-modal-background-color:var(--system-modal-background-color)}:host{--spectrum-dialog-confirm-exit-animation-duration:var(--swc-test-duration);--spectrum-dialog-confirm-entry-animation-duration:var(--swc-test-duration);--spectrum-modal-confirm-entry-animation-distance:var(--spectrum-dialog-confirm-entry-animation-distance);height:100dvh}.modal{overflow:visible}\n`;\nexport default styles;", "import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-underlay-background-exit-animation-duration:var(--mod-underlay-background-exit-animation-duration,var(--spectrum-animation-duration-300));--spectrum-underlay-background-exit-animation-ease:var(--mod-underlay-background-exit-animation-ease,var(--spectrum-animation-ease-in));--spectrum-underlay-background-exit-animation-delay:var(--mod-underlay-background-exit-animation-delay,var(--spectrum-animation-duration-200));--spectrum-underlay-background-entry-animation-duration:var(--mod-underlay-background-entry-animation-duration,var(--spectrum-animation-duration-600));--spectrum-underlay-background-entry-animation-ease:var(--mod-underlay-background-entry-animation-ease,var(--spectrum-animation-ease-out));--spectrum-underlay-background-entry-animation-delay:var(--mod-underlay-background-entry-animation-delay,var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0)));--spectrum-underlay-background-color:var(--mod-underlay-background-color,rgba(var(--spectrum-black-rgb),var(--spectrum-overlay-opacity)));visibility:hidden;z-index:1;background-color:var(--spectrum-underlay-background-color);pointer-events:none;opacity:0;transition:opacity var(--spectrum-underlay-background-exit-animation-duration)var(--spectrum-underlay-background-exit-animation-ease)var(--spectrum-underlay-background-exit-animation-delay),visibility 0s linear calc(var(--spectrum-underlay-background-exit-animation-delay) + var(--spectrum-underlay-background-exit-animation-duration));position:fixed;inset-block:0;inset-inline:0;overflow:hidden}:host([open]){visibility:visible;pointer-events:auto;opacity:1;transition:opacity var(--spectrum-underlay-background-entry-animation-duration)var(--spectrum-underlay-background-entry-animation-ease)var(--spectrum-underlay-background-entry-animation-delay);transition-delay:var(--spectrum-underlay-background-entry-animation-delay)}\n`;\nexport default styles;", "/**\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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './underlay.css.js';\n\n/**\n * @element sp-underlay\n *\n * @fires close - When the underlay is \"clicked\" and the consuming pattern should chose whether to close based on that interaction\n */\nexport class Underlay extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n private canClick = false;\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n public override click(): void {\n this.dispatchEvent(new Event('close'));\n }\n\n protected handlePointerdown(): void {\n this.canClick = true;\n }\n\n protected handlePointerup(): void {\n if (this.canClick) {\n this.click();\n }\n this.canClick = false;\n }\n\n protected override render(): TemplateResult {\n return html``;\n }\n\n protected override firstUpdated(): void {\n this.addEventListener('pointerdown', this.handlePointerdown);\n this.addEventListener('pointerup', this.handlePointerup);\n }\n}\n", "/**\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 */\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\nimport { Underlay } from './src/Underlay.js';\n\ndefineElement('sp-underlay', Underlay);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-underlay': Underlay;\n }\n}\n", "import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{justify-content:center;inline-size:100%;display:flex;position:fixed;inset-block-end:0;inset-inline-start:0}.tray{--spectrum-tray-max-inline-size:var(--mod-tray-max-inline-size,375px);--spectrum-tray-spacing-edge-to-tray-safe-zone:var(--mod-tray-spacing-edge-to-tray-safe-zone,64px);--spectrum-tray-entry-animation-delay:var(--mod-tray-entry-animation-delay,.16s);--spectrum-tray-entry-animation-duration:var(--mod-tray-entry-animation-duration,var(--spectrum-animation-duration-500));--spectrum-tray-exit-animation-delay:var(--mod-tray-exit-animation-delay,0s);--spectrum-tray-exit-animation-duration:var(--mod-tray-exit-animation-duration,var(--spectrum-animation-duration-100));--spectrum-tray-corner-radius:var(--mod-tray-corner-radius,var(--spectrum-corner-radius-100));--spectrum-tray-background-color:var(--highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-background-layer-2-color)));--mod-modal-max-width:100%;box-sizing:border-box;max-block-size:calc(100vh - 64px);inline-size:100%;max-inline-size:100%;max-block-size:calc(100vh - var(--spectrum-tray-spacing-edge-to-tray-safe-zone));background-color:var(--spectrum-tray-background-color);border-radius:0;border-radius:var(--mod-tray-corner-radius-portrait,0)var(--mod-tray-corner-radius-portrait,0)0 0;transition:opacity var(--spectrum-tray-exit-animation-duration)cubic-bezier(.5,0,1,1)0s,visibility var(--spectrum-tray-exit-animation-duration)linear calc(var(--spectrum-tray-exit-animation-duration)),transform var(--spectrum-tray-exit-animation-duration)cubic-bezier(.5,0,1,1)0s;transition:opacity var(--spectrum-tray-exit-animation-duration)cubic-bezier(.5,0,1,1)var(--spectrum-tray-exit-animation-delay),visibility var(--spectrum-tray-exit-animation-duration)linear calc(var(--spectrum-tray-exit-animation-delay) + var(--spectrum-tray-exit-animation-duration)),transform var(--spectrum-tray-exit-animation-duration)cubic-bezier(.5,0,1,1)var(--spectrum-tray-exit-animation-delay);outline:none;margin-block-start:var(--spectrum-tray-spacing-edge-to-tray-safe-zone);padding-block-start:var(--mod-tray-top-to-content-area,var(--spectrum-tray-top-to-content-area));padding-block-end:var(--mod-tray-bottom-to-content-area,var(--spectrum-tray-top-to-content-area));overflow:auto;transform:translateY(100%)}:host([open]) .tray{transition:transform var(--spectrum-tray-entry-animation-duration)cubic-bezier(0,0,.4,1)var(--spectrum-tray-entry-animation-delay),opacity var(--spectrum-tray-entry-animation-duration)cubic-bezier(0,0,.4,1)var(--spectrum-tray-entry-animation-delay);transform:translateY(0)}@media screen and (orientation:landscape){.tray{max-inline-size:var(--spectrum-tray-max-inline-size);border-start-start-radius:var(--spectrum-tray-corner-radius);border-start-end-radius:var(--spectrum-tray-corner-radius)}}@media (forced-colors:active){.tray{--highcontrast-tray-background-color:Canvas;border:solid}.tray ::slotted(*){border:none}}:host{align-items:flex-end;max-height:100dvh;position:fixed!important}sp-underlay{touch-action:none}.tray{overscroll-behavior:contain;display:inline-flex}.visually-hidden,::slotted(.visually-hidden){white-space:nowrap;clip-path:inset(50%);border:0;width:1px;height:1px;margin:0 -1px -1px 0;padding:0;position:absolute;overflow:hidden}\n`;\nexport default styles;", "/**\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 {\n CSSResultArray,\n html,\n nothing,\n PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n state,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport modalStyles from '@spectrum-web-components/modal/src/modal.css.js';\nimport { MatchMediaController } from '@spectrum-web-components/reactive-controllers/src/MatchMedia.js';\nimport { firstFocusableIn } from '@spectrum-web-components/shared/src/first-focusable-in.js';\n\nimport '@spectrum-web-components/underlay/sp-underlay.js';\n\nimport styles from './tray.css.js';\n\n/**\n * @element sp-tray\n *\n * @slot - content to display within the Tray\n *\n * @fires close - Announces that the Tray has been closed.\n */\nexport class Tray extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [modalStyles, styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n protected prefersMotion = new MatchMediaController(\n this,\n '(prefers-reduced-motion: no-preference)'\n );\n\n private transitionPromise = Promise.resolve();\n\n private resolveTransitionPromise = () => {};\n\n @query('.tray')\n private tray!: HTMLDivElement;\n\n @query('slot')\n private contentSlot!: HTMLSlotElement;\n\n public override focus(): void {\n const firstFocusable = firstFocusableIn(this);\n if (firstFocusable) {\n firstFocusable.focus();\n } else if (this.children.length === 1) {\n this.tray.focus();\n } else {\n super.focus();\n }\n }\n\n private animating = false;\n\n public overlayWillCloseCallback(): boolean {\n if (!this.open) {\n return this.animating;\n }\n this.close();\n return true;\n }\n\n public close(): void {\n this.open = false;\n if (!this.prefersMotion.matches) {\n this.dispatchClosed();\n }\n }\n\n /**\n * When set, prevents the tray from rendering visually-hidden dismiss helpers.\n * Use this if your slotted content has custom keyboard-accessible dismiss functionality\n * that the auto-detection doesn't recognize.\n *\n * By default, the tray automatically detects buttons in slotted content.\n */\n @property({ type: Boolean, attribute: 'has-keyboard-dismiss' })\n public hasKeyboardDismissButton = false;\n\n /**\n * Returns a visually hidden dismiss button for mobile screen reader accessibility.\n * This button is placed before and after tray content to allow mobile screen reader\n * users (particularly VoiceOver on iOS) to easily dismiss the overlay.\n */\n protected get dismissHelper(): TemplateResult {\n return html`\n <div class=\"visually-hidden\">\n <button aria-label=\"Dismiss\" @click=${this.close}></button>\n </div>\n `;\n }\n\n /**\n * Internal state tracking whether dismiss helpers are needed.\n * Automatically updated when slotted content changes.\n */\n @state()\n private needsDismissHelper = true;\n\n /**\n * Check if slotted content has keyboard-accessible dismiss buttons.\n * Looks for buttons in light DOM and checks for known components with built-in dismiss.\n */\n private checkForDismissButtons(): void {\n if (!this.contentSlot) {\n this.needsDismissHelper = true;\n return;\n }\n\n const slottedElements = this.contentSlot.assignedElements({\n flatten: true,\n });\n\n if (slottedElements.length === 0) {\n this.needsDismissHelper = true;\n return;\n }\n\n const hasDismissButton = slottedElements.some((element) => {\n // Check if element is a button itself\n if (\n element.tagName === 'SP-BUTTON' ||\n element.tagName === 'SP-CLOSE-BUTTON' ||\n element.tagName === 'BUTTON'\n ) {\n return true;\n }\n\n // Check for dismissable dialog (has built-in dismiss button in shadow DOM)\n if (\n element.tagName === 'SP-DIALOG' &&\n element.hasAttribute('dismissable')\n ) {\n return true;\n }\n\n // Check for dismissable dialog-wrapper\n if (\n element.tagName === 'SP-DIALOG-WRAPPER' &&\n element.hasAttribute('dismissable')\n ) {\n return true;\n }\n\n // Check for buttons in light DOM (won't see shadow DOM)\n const buttons = element.querySelectorAll(\n 'sp-button, sp-close-button, button'\n );\n if (buttons.length > 0) {\n return true;\n }\n\n return false;\n });\n\n this.needsDismissHelper = !hasDismissButton;\n }\n\n private handleSlotChange(): void {\n this.checkForDismissButtons();\n }\n\n private dispatchClosed(): void {\n this.dispatchEvent(\n new Event('close', {\n bubbles: true,\n })\n );\n }\n\n protected handleUnderlayTransitionend(): void {\n if (!this.open) {\n this.resolveTransitionPromise();\n this.dispatchClosed();\n }\n }\n\n protected handleTrayTransitionend(): void {\n if (this.open) {\n this.resolveTransitionPromise();\n }\n }\n\n protected override firstUpdated(changes: PropertyValues<this>): void {\n super.firstUpdated(changes);\n // Run initial button detection\n this.checkForDismissButtons();\n }\n\n protected override update(changes: PropertyValues<this>): void {\n if (\n changes.has('open') &&\n changes.get('open') !== undefined &&\n this.prefersMotion.matches\n ) {\n this.animating = true;\n this.transitionPromise = new Promise((res) => {\n this.resolveTransitionPromise = () => {\n this.animating = false;\n res();\n };\n });\n }\n super.update(changes);\n }\n\n protected override render(): TemplateResult {\n return html`\n <sp-underlay\n ?open=${this.open}\n @close=${this.close}\n @transitionend=${this.handleUnderlayTransitionend}\n ></sp-underlay>\n <div\n class=\"tray modal\"\n tabindex=\"-1\"\n @transitionend=${this.handleTrayTransitionend}\n >\n ${!this.hasKeyboardDismissButton && this.needsDismissHelper\n ? this.dismissHelper\n : nothing}\n <slot @slotchange=${this.handleSlotChange}></slot>\n ${!this.hasKeyboardDismissButton && this.needsDismissHelper\n ? this.dismissHelper\n : nothing}\n </div>\n `;\n }\n\n /**\n * Bind the open/close transition into the update complete lifecycle so\n * that the overlay system can wait for it to be \"visibly ready\" before\n * attempting to throw focus into the content contained herein. Not\n * waiting for this can cause small amounts of page scroll to happen\n * while opening the Tray when focusable content is included: e.g. Menu\n * elements whose selected Menu Item is not the first Menu Item.\n */\n protected override async getUpdateComplete(): Promise<boolean> {\n const complete = (await super.getUpdateComplete()) as boolean;\n await this.transitionPromise;\n return complete;\n }\n}\n", "/**\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 { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\nimport { Tray } from './src/Tray.js';\n\ndefineElement('sp-tray', Tray);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-tray': Tray;\n }\n}\n"],
5
+ "mappings": "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",
6
+ "names": ["styles", "css", "styles", "css", "SpectrumElement", "styles", "html", "__decorateClass", "property", "defineElement", "Underlay", "styles", "css", "SpectrumElement", "MatchMediaController", "modalStyles", "styles", "firstFocusable", "firstFocusableIn", "html", "slottedElements", "hasDismissButton", "element", "changes", "res", "nothing", "complete", "__decorateClass", "property", "query", "state", "defineElement", "Tray"]
7
+ }
@@ -0,0 +1,411 @@
1
+ import {
2
+ A,
3
+ E,
4
+ j
5
+ } from "./chunk-TS7SL372.js";
6
+
7
+ // node_modules/lit-html/directives/if-defined.js
8
+ var o = (o7) => o7 ?? A;
9
+
10
+ // node_modules/lit-html/directive.js
11
+ var t = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
12
+ var e = (t3) => (...e5) => ({ _$litDirective$: t3, values: e5 });
13
+ var i = class {
14
+ constructor(t3) {
15
+ }
16
+ get _$AU() {
17
+ return this._$AM._$AU;
18
+ }
19
+ _$AT(t3, e5, i5) {
20
+ this._$Ct = t3, this._$AM = e5, this._$Ci = i5;
21
+ }
22
+ _$AS(t3, e5) {
23
+ return this.update(t3, e5);
24
+ }
25
+ update(t3, e5) {
26
+ return this.render(...e5);
27
+ }
28
+ };
29
+
30
+ // node_modules/lit-html/directives/style-map.js
31
+ var n = "important";
32
+ var i2 = " !" + n;
33
+ var o2 = e(class extends i {
34
+ constructor(t3) {
35
+ if (super(t3), t3.type !== t.ATTRIBUTE || "style" !== t3.name || t3.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
36
+ }
37
+ render(t3) {
38
+ return Object.keys(t3).reduce((e5, r3) => {
39
+ const s4 = t3[r3];
40
+ return null == s4 ? e5 : e5 + `${r3 = r3.includes("-") ? r3 : r3.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s4};`;
41
+ }, "");
42
+ }
43
+ update(e5, [r3]) {
44
+ const { style: s4 } = e5.element;
45
+ if (void 0 === this.ft) return this.ft = new Set(Object.keys(r3)), this.render(r3);
46
+ for (const t3 of this.ft) null == r3[t3] && (this.ft.delete(t3), t3.includes("-") ? s4.removeProperty(t3) : s4[t3] = null);
47
+ for (const t3 in r3) {
48
+ const e6 = r3[t3];
49
+ if (null != e6) {
50
+ this.ft.add(t3);
51
+ const r4 = "string" == typeof e6 && e6.endsWith(i2);
52
+ t3.includes("-") || r4 ? s4.setProperty(t3, r4 ? e6.slice(0, -11) : e6, r4 ? n : "") : s4[t3] = e6;
53
+ }
54
+ }
55
+ return E;
56
+ }
57
+ });
58
+
59
+ // node_modules/lit-html/directive-helpers.js
60
+ var { I: t2 } = j;
61
+ var i3 = (o7) => o7;
62
+ var n2 = (o7) => null === o7 || "object" != typeof o7 && "function" != typeof o7;
63
+ var r = (o7) => void 0 === o7.strings;
64
+ var s = () => document.createComment("");
65
+ var v = (o7, n7, e5) => {
66
+ const l2 = o7._$AA.parentNode, d = void 0 === n7 ? o7._$AB : n7._$AA;
67
+ if (void 0 === e5) {
68
+ const i5 = l2.insertBefore(s(), d), n8 = l2.insertBefore(s(), d);
69
+ e5 = new t2(i5, n8, o7, o7.options);
70
+ } else {
71
+ const t3 = e5._$AB.nextSibling, n8 = e5._$AM, c4 = n8 !== o7;
72
+ if (c4) {
73
+ let t4;
74
+ e5._$AQ?.(o7), e5._$AM = o7, void 0 !== e5._$AP && (t4 = o7._$AU) !== n8._$AU && e5._$AP(t4);
75
+ }
76
+ if (t3 !== d || c4) {
77
+ let o8 = e5._$AA;
78
+ for (; o8 !== t3; ) {
79
+ const t4 = i3(o8).nextSibling;
80
+ i3(l2).insertBefore(o8, d), o8 = t4;
81
+ }
82
+ }
83
+ }
84
+ return e5;
85
+ };
86
+ var u = (o7, t3, i5 = o7) => (o7._$AI(t3, i5), o7);
87
+ var m = {};
88
+ var p = (o7, t3 = m) => o7._$AH = t3;
89
+ var M = (o7) => o7._$AH;
90
+ var h = (o7) => {
91
+ o7._$AR(), o7._$AA.remove();
92
+ };
93
+
94
+ // node_modules/lit-html/directives/repeat.js
95
+ var u2 = (e5, s4, t3) => {
96
+ const r3 = /* @__PURE__ */ new Map();
97
+ for (let l2 = s4; l2 <= t3; l2++) r3.set(e5[l2], l2);
98
+ return r3;
99
+ };
100
+ var c = e(class extends i {
101
+ constructor(e5) {
102
+ if (super(e5), e5.type !== t.CHILD) throw Error("repeat() can only be used in text expressions");
103
+ }
104
+ dt(e5, s4, t3) {
105
+ let r3;
106
+ void 0 === t3 ? t3 = s4 : void 0 !== s4 && (r3 = s4);
107
+ const l2 = [], o7 = [];
108
+ let i5 = 0;
109
+ for (const s5 of e5) l2[i5] = r3 ? r3(s5, i5) : i5, o7[i5] = t3(s5, i5), i5++;
110
+ return { values: o7, keys: l2 };
111
+ }
112
+ render(e5, s4, t3) {
113
+ return this.dt(e5, s4, t3).values;
114
+ }
115
+ update(s4, [t3, r3, c4]) {
116
+ const d = M(s4), { values: p2, keys: a } = this.dt(t3, r3, c4);
117
+ if (!Array.isArray(d)) return this.ut = a, p2;
118
+ const h4 = this.ut ??= [], v2 = [];
119
+ let m3, y, x = 0, j2 = d.length - 1, k = 0, w = p2.length - 1;
120
+ for (; x <= j2 && k <= w; ) if (null === d[x]) x++;
121
+ else if (null === d[j2]) j2--;
122
+ else if (h4[x] === a[k]) v2[k] = u(d[x], p2[k]), x++, k++;
123
+ else if (h4[j2] === a[w]) v2[w] = u(d[j2], p2[w]), j2--, w--;
124
+ else if (h4[x] === a[w]) v2[w] = u(d[x], p2[w]), v(s4, v2[w + 1], d[x]), x++, w--;
125
+ else if (h4[j2] === a[k]) v2[k] = u(d[j2], p2[k]), v(s4, d[x], d[j2]), j2--, k++;
126
+ else if (void 0 === m3 && (m3 = u2(a, k, w), y = u2(h4, x, j2)), m3.has(h4[x])) if (m3.has(h4[j2])) {
127
+ const e5 = y.get(a[k]), t4 = void 0 !== e5 ? d[e5] : null;
128
+ if (null === t4) {
129
+ const e6 = v(s4, d[x]);
130
+ u(e6, p2[k]), v2[k] = e6;
131
+ } else v2[k] = u(t4, p2[k]), v(s4, d[x], t4), d[e5] = null;
132
+ k++;
133
+ } else h(d[j2]), j2--;
134
+ else h(d[x]), x++;
135
+ for (; k <= w; ) {
136
+ const e5 = v(s4, v2[w + 1]);
137
+ u(e5, p2[k]), v2[k++] = e5;
138
+ }
139
+ for (; x <= j2; ) {
140
+ const e5 = d[x++];
141
+ null !== e5 && h(e5);
142
+ }
143
+ return this.ut = a, p(s4, v2), E;
144
+ }
145
+ });
146
+
147
+ // node_modules/lit-html/directives/class-map.js
148
+ var e2 = e(class extends i {
149
+ constructor(t3) {
150
+ if (super(t3), t3.type !== t.ATTRIBUTE || "class" !== t3.name || t3.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
151
+ }
152
+ render(t3) {
153
+ return " " + Object.keys(t3).filter((s4) => t3[s4]).join(" ") + " ";
154
+ }
155
+ update(s4, [i5]) {
156
+ if (void 0 === this.st) {
157
+ this.st = /* @__PURE__ */ new Set(), void 0 !== s4.strings && (this.nt = new Set(s4.strings.join(" ").split(/\s/).filter((t3) => "" !== t3)));
158
+ for (const t3 in i5) i5[t3] && !this.nt?.has(t3) && this.st.add(t3);
159
+ return this.render(i5);
160
+ }
161
+ const r3 = s4.element.classList;
162
+ for (const t3 of this.st) t3 in i5 || (r3.remove(t3), this.st.delete(t3));
163
+ for (const t3 in i5) {
164
+ const s5 = !!i5[t3];
165
+ s5 === this.st.has(t3) || this.nt?.has(t3) || (s5 ? (r3.add(t3), this.st.add(t3)) : (r3.remove(t3), this.st.delete(t3)));
166
+ }
167
+ return E;
168
+ }
169
+ });
170
+
171
+ // node_modules/lit-html/async-directive.js
172
+ var s2 = (i5, t3) => {
173
+ const e5 = i5._$AN;
174
+ if (void 0 === e5) return false;
175
+ for (const i6 of e5) i6._$AO?.(t3, false), s2(i6, t3);
176
+ return true;
177
+ };
178
+ var o3 = (i5) => {
179
+ let t3, e5;
180
+ do {
181
+ if (void 0 === (t3 = i5._$AM)) break;
182
+ e5 = t3._$AN, e5.delete(i5), i5 = t3;
183
+ } while (0 === e5?.size);
184
+ };
185
+ var r2 = (i5) => {
186
+ for (let t3; t3 = i5._$AM; i5 = t3) {
187
+ let e5 = t3._$AN;
188
+ if (void 0 === e5) t3._$AN = e5 = /* @__PURE__ */ new Set();
189
+ else if (e5.has(i5)) break;
190
+ e5.add(i5), c2(t3);
191
+ }
192
+ };
193
+ function h2(i5) {
194
+ void 0 !== this._$AN ? (o3(this), this._$AM = i5, r2(this)) : this._$AM = i5;
195
+ }
196
+ function n3(i5, t3 = false, e5 = 0) {
197
+ const r3 = this._$AH, h4 = this._$AN;
198
+ if (void 0 !== h4 && 0 !== h4.size) if (t3) if (Array.isArray(r3)) for (let i6 = e5; i6 < r3.length; i6++) s2(r3[i6], false), o3(r3[i6]);
199
+ else null != r3 && (s2(r3, false), o3(r3));
200
+ else s2(this, i5);
201
+ }
202
+ var c2 = (i5) => {
203
+ i5.type == t.CHILD && (i5._$AP ??= n3, i5._$AQ ??= h2);
204
+ };
205
+ var f = class extends i {
206
+ constructor() {
207
+ super(...arguments), this._$AN = void 0;
208
+ }
209
+ _$AT(i5, t3, e5) {
210
+ super._$AT(i5, t3, e5), r2(this), this.isConnected = i5._$AU;
211
+ }
212
+ _$AO(i5, t3 = true) {
213
+ i5 !== this.isConnected && (this.isConnected = i5, i5 ? this.reconnected?.() : this.disconnected?.()), t3 && (s2(this, i5), o3(this));
214
+ }
215
+ setValue(t3) {
216
+ if (r(this._$Ct)) this._$Ct._$AI(t3, this);
217
+ else {
218
+ const i5 = [...this._$Ct._$AH];
219
+ i5[this._$Ci] = t3, this._$Ct._$AI(i5, this, 0);
220
+ }
221
+ }
222
+ disconnected() {
223
+ }
224
+ reconnected() {
225
+ }
226
+ };
227
+
228
+ // node_modules/lit-html/directives/private-async-helpers.js
229
+ var s3 = class {
230
+ constructor(t3) {
231
+ this.G = t3;
232
+ }
233
+ disconnect() {
234
+ this.G = void 0;
235
+ }
236
+ reconnect(t3) {
237
+ this.G = t3;
238
+ }
239
+ deref() {
240
+ return this.G;
241
+ }
242
+ };
243
+ var i4 = class {
244
+ constructor() {
245
+ this.Y = void 0, this.Z = void 0;
246
+ }
247
+ get() {
248
+ return this.Y;
249
+ }
250
+ pause() {
251
+ this.Y ??= new Promise((t3) => this.Z = t3);
252
+ }
253
+ resume() {
254
+ this.Z?.(), this.Y = this.Z = void 0;
255
+ }
256
+ };
257
+
258
+ // node_modules/lit-html/directives/until.js
259
+ var n4 = (t3) => !n2(t3) && "function" == typeof t3.then;
260
+ var h3 = 1073741823;
261
+ var c3 = class extends f {
262
+ constructor() {
263
+ super(...arguments), this._$Cwt = h3, this._$Cbt = [], this._$CK = new s3(this), this._$CX = new i4();
264
+ }
265
+ render(...s4) {
266
+ return s4.find((t3) => !n4(t3)) ?? E;
267
+ }
268
+ update(s4, i5) {
269
+ const e5 = this._$Cbt;
270
+ let r3 = e5.length;
271
+ this._$Cbt = i5;
272
+ const o7 = this._$CK, c4 = this._$CX;
273
+ this.isConnected || this.disconnected();
274
+ for (let t3 = 0; t3 < i5.length && !(t3 > this._$Cwt); t3++) {
275
+ const s5 = i5[t3];
276
+ if (!n4(s5)) return this._$Cwt = t3, s5;
277
+ t3 < r3 && s5 === e5[t3] || (this._$Cwt = h3, r3 = 0, Promise.resolve(s5).then(async (t4) => {
278
+ for (; c4.get(); ) await c4.get();
279
+ const i6 = o7.deref();
280
+ if (void 0 !== i6) {
281
+ const e6 = i6._$Cbt.indexOf(s5);
282
+ e6 > -1 && e6 < i6._$Cwt && (i6._$Cwt = e6, i6.setValue(t4));
283
+ }
284
+ }));
285
+ }
286
+ return E;
287
+ }
288
+ disconnected() {
289
+ this._$CK.disconnect(), this._$CX.pause();
290
+ }
291
+ reconnected() {
292
+ this._$CK.reconnect(this), this._$CX.resume();
293
+ }
294
+ };
295
+ var m2 = e(c3);
296
+
297
+ // node_modules/lit-html/directives/live.js
298
+ var l = e(class extends i {
299
+ constructor(r3) {
300
+ if (super(r3), r3.type !== t.PROPERTY && r3.type !== t.ATTRIBUTE && r3.type !== t.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
301
+ if (!r(r3)) throw Error("`live` bindings can only contain a single expression");
302
+ }
303
+ render(r3) {
304
+ return r3;
305
+ }
306
+ update(i5, [t3]) {
307
+ if (t3 === E || t3 === A) return t3;
308
+ const o7 = i5.element, l2 = i5.name;
309
+ if (i5.type === t.PROPERTY) {
310
+ if (t3 === o7[l2]) return E;
311
+ } else if (i5.type === t.BOOLEAN_ATTRIBUTE) {
312
+ if (!!t3 === o7.hasAttribute(l2)) return E;
313
+ } else if (i5.type === t.ATTRIBUTE && o7.getAttribute(l2) === t3 + "") return E;
314
+ return p(i5), t3;
315
+ }
316
+ });
317
+
318
+ // node_modules/lit-html/directives/unsafe-html.js
319
+ var e3 = class extends i {
320
+ constructor(i5) {
321
+ if (super(i5), this.it = A, i5.type !== t.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
322
+ }
323
+ render(r3) {
324
+ if (r3 === A || null == r3) return this._t = void 0, this.it = r3;
325
+ if (r3 === E) return r3;
326
+ if ("string" != typeof r3) throw Error(this.constructor.directiveName + "() called with a non-string value");
327
+ if (r3 === this.it) return this._t;
328
+ this.it = r3;
329
+ const s4 = [r3];
330
+ return s4.raw = s4, this._t = { _$litType$: this.constructor.resultType, strings: s4, values: [] };
331
+ }
332
+ };
333
+ e3.directiveName = "unsafeHTML", e3.resultType = 1;
334
+ var o4 = e(e3);
335
+
336
+ // node_modules/lit-html/directives/ref.js
337
+ var o5 = /* @__PURE__ */ new WeakMap();
338
+ var n5 = e(class extends f {
339
+ render(i5) {
340
+ return A;
341
+ }
342
+ update(i5, [s4]) {
343
+ const e5 = s4 !== this.G;
344
+ return e5 && this.rt(void 0), (e5 || this.lt !== this.ct) && (this.G = s4, this.ht = i5.options?.host, this.rt(this.ct = i5.element)), A;
345
+ }
346
+ rt(t3) {
347
+ if (void 0 !== this.G) if (this.isConnected || (t3 = void 0), "function" == typeof this.G) {
348
+ const i5 = this.ht ?? globalThis;
349
+ let s4 = o5.get(i5);
350
+ void 0 === s4 && (s4 = /* @__PURE__ */ new WeakMap(), o5.set(i5, s4)), void 0 !== s4.get(this.G) && this.G.call(this.ht, void 0), s4.set(this.G, t3), void 0 !== t3 && this.G.call(this.ht, t3);
351
+ } else this.G.value = t3;
352
+ }
353
+ get lt() {
354
+ return "function" == typeof this.G ? o5.get(this.ht ?? globalThis)?.get(this.G) : this.G?.value;
355
+ }
356
+ disconnected() {
357
+ this.lt === this.ct && this.rt(void 0);
358
+ }
359
+ reconnected() {
360
+ this.rt(this.ct);
361
+ }
362
+ });
363
+
364
+ export {
365
+ o,
366
+ c,
367
+ e2 as e,
368
+ o2,
369
+ l
370
+ };
371
+ /*! Bundled license information:
372
+
373
+ lit-html/directives/if-defined.js:
374
+ lit-html/directives/style-map.js:
375
+ lit-html/directives/class-map.js:
376
+ (**
377
+ * @license
378
+ * Copyright 2018 Google LLC
379
+ * SPDX-License-Identifier: BSD-3-Clause
380
+ *)
381
+
382
+ lit-html/directive.js:
383
+ lit-html/directives/repeat.js:
384
+ lit-html/async-directive.js:
385
+ lit-html/directives/until.js:
386
+ lit-html/directives/unsafe-html.js:
387
+ (**
388
+ * @license
389
+ * Copyright 2017 Google LLC
390
+ * SPDX-License-Identifier: BSD-3-Clause
391
+ *)
392
+
393
+ lit-html/directive-helpers.js:
394
+ lit-html/directives/live.js:
395
+ lit-html/directives/ref.js:
396
+ (**
397
+ * @license
398
+ * Copyright 2020 Google LLC
399
+ * SPDX-License-Identifier: BSD-3-Clause
400
+ *)
401
+
402
+ lit-html/directives/private-async-helpers.js:
403
+ lit-html/directives/when.js:
404
+ lit-html/directives/join.js:
405
+ (**
406
+ * @license
407
+ * Copyright 2021 Google LLC
408
+ * SPDX-License-Identifier: BSD-3-Clause
409
+ *)
410
+ */
411
+ //# sourceMappingURL=chunk-JASEW37G.js.map