@re-code/aurora 0.0.0-stage → 0.2.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.
- package/LICENSE +21 -0
- package/README.md +92 -2
- package/dist/aurora/aurora.esm.js +1 -0
- package/dist/aurora/index.esm.js +1 -0
- package/dist/aurora/p-038b2190.entry.js +1 -0
- package/dist/aurora/p-0608e910.entry.js +1 -0
- package/dist/aurora/p-17210bb6.entry.js +1 -0
- package/dist/aurora/p-17e65032.entry.js +1 -0
- package/dist/aurora/p-21786a68.entry.js +1 -0
- package/dist/aurora/p-23e57d65.entry.js +1 -0
- package/dist/aurora/p-278d3434.entry.js +1 -0
- package/dist/aurora/p-2a16d544.entry.js +1 -0
- package/dist/aurora/p-31a86367.entry.js +1 -0
- package/dist/aurora/p-35edd036.entry.js +1 -0
- package/dist/aurora/p-372a3416.entry.js +1 -0
- package/dist/aurora/p-40bb52c3.entry.js +1 -0
- package/dist/aurora/p-487df7d8.entry.js +1 -0
- package/dist/aurora/p-546a2f69.entry.js +1 -0
- package/dist/aurora/p-57512cd7.entry.js +1 -0
- package/dist/aurora/p-5d2a88ca.entry.js +1 -0
- package/dist/aurora/p-62ccacf0.entry.js +1 -0
- package/dist/aurora/p-64229ad2.entry.js +1 -0
- package/dist/aurora/p-685b9e53.entry.js +1 -0
- package/dist/aurora/p-689f37db.entry.js +1 -0
- package/dist/aurora/p-746825ce.entry.js +1 -0
- package/dist/aurora/p-88b72de7.entry.js +1 -0
- package/dist/aurora/p-89b66c7a.entry.js +1 -0
- package/dist/aurora/p-8de508c7.entry.js +1 -0
- package/dist/aurora/p-8ed72e5b.entry.js +1 -0
- package/dist/aurora/p-B3rlZvSP.js +7 -0
- package/dist/aurora/p-B71krpcd.js +1 -0
- package/dist/aurora/p-BTRtOC1j.js +1 -0
- package/dist/aurora/p-BTZwl4uD.js +7 -0
- package/dist/aurora/p-BvnCPjl5.js +1 -0
- package/dist/aurora/p-C-bRwiWx.js +1 -0
- package/dist/aurora/p-C2iVoG0G.js +1 -0
- package/dist/aurora/p-C48ks26E.js +1 -0
- package/dist/aurora/p-C6E5E18W.js +7 -0
- package/dist/aurora/p-CA3n-tpF.js +7 -0
- package/dist/aurora/p-CIZeCYao.js +1 -0
- package/dist/aurora/p-CJtRxiuh.js +7 -0
- package/dist/aurora/p-CU9sZ49I.js +7 -0
- package/dist/aurora/p-CfazOBmW.js +1 -0
- package/dist/aurora/p-Ci-XzGE3.js +1 -0
- package/dist/aurora/p-CnJOd66V.js +7 -0
- package/dist/aurora/p-CoyAdNcI.js +1 -0
- package/dist/aurora/p-Cq5N0E4D.js +7 -0
- package/dist/aurora/p-CrKUXDm4.js +1 -0
- package/dist/aurora/p-DBHfOAQc.js +1 -0
- package/dist/aurora/p-DD6GCVQb.js +1 -0
- package/dist/aurora/p-DQuL1Twl.js +1 -0
- package/dist/aurora/p-DTEnois3.js +7 -0
- package/dist/aurora/p-DVGjumbs.js +1 -0
- package/dist/aurora/p-DXbj-yic.js +1 -0
- package/dist/aurora/p-DgfWQsck.js +1 -0
- package/dist/aurora/p-Dogh3-Bf.js +1 -0
- package/dist/aurora/p-DqqWqhAT.js +1 -0
- package/dist/aurora/p-Dv3Jcvbc.js +1 -0
- package/dist/aurora/p-DzNA1eDU.js +1 -0
- package/dist/aurora/p-JU60IJxn.js +1 -0
- package/dist/aurora/p-KLUZmSN-.js +3 -0
- package/dist/aurora/p-TdUs41zm.js +1 -0
- package/dist/aurora/p-a1e257c7.entry.js +1 -0
- package/dist/aurora/p-a72596b4.entry.js +1 -0
- package/dist/aurora/p-a87dc1d3.entry.js +1 -0
- package/dist/aurora/p-a8e984e1.entry.js +1 -0
- package/dist/aurora/p-b2feddb2.entry.js +1 -0
- package/dist/aurora/p-bd1f6486.entry.js +1 -0
- package/dist/aurora/p-c330982c.entry.js +1 -0
- package/dist/aurora/p-c3668073.entry.js +1 -0
- package/dist/aurora/p-e1c97234.entry.js +1 -0
- package/dist/aurora/p-e72126a2.entry.js +1 -0
- package/dist/aurora/p-e7c81a6b.entry.js +1 -0
- package/dist/aurora/p-ec96e6ff.entry.js +1 -0
- package/dist/aurora/p-ed998b0c.entry.js +1 -0
- package/dist/aurora/p-ee2ea46e.entry.js +1 -0
- package/dist/aurora/p-ee4475a6.entry.js +1 -0
- package/dist/aurora/p-efa289c1.entry.js +1 -0
- package/dist/aurora/p-efd60427.entry.js +1 -0
- package/dist/aurora/p-f89bde2b.entry.js +1 -0
- package/dist/aurora/p-fd4e9cdd.entry.js +1 -0
- package/dist/aurora/p-gvyxpLwV.js +1 -0
- package/dist/aurora/p-kEvQ5xF7.js +1 -0
- package/dist/aurora/p-kbAXs-sG.js +7 -0
- package/dist/aurora/p-klxij34W.js +1 -0
- package/dist/aurora/p-kpQFQ7bu.js +7 -0
- package/dist/aurora/p-tdx7CCkD.js +7 -0
- package/dist/aurora/p-vjn4H-yX.js +1 -0
- package/dist/cjs/accordion-DlPfFEHE.js +37 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/attributes-Bn886Odj.js +30 -0
- package/dist/cjs/au-accordion-item.cjs.entry.js +88 -0
- package/dist/cjs/au-accordion.cjs.entry.js +100 -0
- package/dist/cjs/au-alert.cjs.entry.js +117 -0
- package/dist/cjs/au-avatar.cjs.entry.js +177 -0
- package/dist/cjs/au-badge.cjs.entry.js +60 -0
- package/dist/cjs/au-breadcrumb-item.cjs.entry.js +84 -0
- package/dist/cjs/au-breadcrumb.cjs.entry.js +80 -0
- package/dist/cjs/au-button.cjs.entry.js +328 -0
- package/dist/cjs/au-card.cjs.entry.js +76 -0
- package/dist/cjs/au-checkbox.cjs.entry.js +183 -0
- package/dist/cjs/au-chip.cjs.entry.js +249 -0
- package/dist/cjs/au-code-block.cjs.entry.js +678 -0
- package/dist/cjs/au-combobox.cjs.entry.js +755 -0
- package/dist/cjs/au-container.cjs.entry.js +58 -0
- package/dist/cjs/au-dialog.cjs.entry.js +377 -0
- package/dist/cjs/au-divider.cjs.entry.js +106 -0
- package/dist/cjs/au-field.cjs.entry.js +185 -0
- package/dist/cjs/au-icon-D0L9Wwy0.js +350 -0
- package/dist/cjs/au-icon.cjs.entry.js +9 -0
- package/dist/cjs/au-input.cjs.entry.js +312 -0
- package/dist/cjs/au-label.cjs.entry.js +45 -0
- package/dist/cjs/au-menu-item.cjs.entry.js +71 -0
- package/dist/cjs/au-menu.cjs.entry.js +347 -0
- package/dist/cjs/au-nav-group.cjs.entry.js +50 -0
- package/dist/cjs/au-nav-link.cjs.entry.js +84 -0
- package/dist/cjs/au-navbar.cjs.entry.js +306 -0
- package/dist/cjs/au-number-input.cjs.entry.js +350 -0
- package/dist/cjs/au-popover.cjs.entry.js +130 -0
- package/dist/cjs/au-radio-group.cjs.entry.js +348 -0
- package/dist/cjs/au-radio.cjs.entry.js +45 -0
- package/dist/cjs/au-segmented-control.cjs.entry.js +544 -0
- package/dist/cjs/au-segmented-option.cjs.entry.js +78 -0
- package/dist/cjs/au-select.cjs.entry.js +336 -0
- package/dist/cjs/au-sidebar-nav.cjs.entry.js +178 -0
- package/dist/cjs/au-slider.cjs.entry.js +286 -0
- package/dist/cjs/au-splitter.cjs.entry.js +230 -0
- package/dist/cjs/au-switch.cjs.entry.js +175 -0
- package/dist/cjs/au-tab-panel.cjs.entry.js +63 -0
- package/dist/cjs/au-tab.cjs.entry.js +41 -0
- package/dist/cjs/au-tabs.cjs.entry.js +406 -0
- package/dist/cjs/au-textarea.cjs.entry.js +245 -0
- package/dist/cjs/au-toast-region.cjs.entry.js +692 -0
- package/dist/cjs/au-toast.cjs.entry.js +63 -0
- package/dist/cjs/au-toc.cjs.entry.js +445 -0
- package/dist/cjs/au-tooltip.cjs.entry.js +395 -0
- package/dist/cjs/aurora.cjs.js +25 -0
- package/dist/cjs/check-D8fNlWlh.js +16 -0
- package/dist/cjs/checkable-DhECpB9t.js +8 -0
- package/dist/cjs/circle-check-B3FqDucz.js +20 -0
- package/dist/cjs/circle-x-Tf2qIuBI.js +21 -0
- package/dist/cjs/constants.generated-CnWw9jDb.js +134 -0
- package/dist/cjs/control-id-CcdWN8_D.js +16 -0
- package/dist/cjs/copy-DJmgvzQq.js +19 -0
- package/dist/cjs/copy-check-Bktgfkg4.js +20 -0
- package/dist/cjs/deep-active-element-CoEYUbhF.js +11 -0
- package/dist/cjs/group-validity-D2brpooM.js +11 -0
- package/dist/cjs/icon-loader-DyRasOnf.js +111 -0
- package/dist/cjs/index-B8lDYTMv.js +2314 -0
- package/dist/cjs/index-DI4bia-1.js +159 -0
- package/dist/cjs/index.cjs.js +358 -0
- package/dist/cjs/info-BLcxKacU.js +20 -0
- package/dist/cjs/initial-value-CfGBZMr4.js +13 -0
- package/dist/cjs/item-update-DZTXbDLY.js +15 -0
- package/dist/cjs/link-state-B3rIWSPS.js +40 -0
- package/dist/cjs/live-announcer-vcS-BUxR.js +400 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/menu-CSfWKlaI.js +41 -0
- package/dist/cjs/minus-6XziUaOZ.js +16 -0
- package/dist/cjs/navigation-lpcPjVEI.js +63 -0
- package/dist/cjs/octagon-alert-CFrlltqZ.js +27 -0
- package/dist/cjs/plus-D3o9M7Mi.js +19 -0
- package/dist/cjs/popover-controller-B95YfF3I.js +237 -0
- package/dist/cjs/popover-support-CmR5F5K2.js +250 -0
- package/dist/cjs/resolve-size-LxALRdcg.js +13 -0
- package/dist/cjs/restore-DQu6RpSH.js +148 -0
- package/dist/cjs/reveal-BTJffR-G.js +69 -0
- package/dist/cjs/roving-CFu47frk.js +70 -0
- package/dist/cjs/segmented-CfUI9Mjx.js +53 -0
- package/dist/cjs/slider-DX8MuU0y.js +84 -0
- package/dist/cjs/toast-request-C-x_BbsL.js +67 -0
- package/dist/cjs/triangle-alert-VJkqaFrl.js +27 -0
- package/dist/cjs/user-round-Bb69LiUK.js +20 -0
- package/dist/cjs/warn-once-lHF-gQZp.js +21 -0
- package/dist/cjs/x-BmyhNJrF.js +19 -0
- package/dist/collection/collection-manifest.json +56 -0
- package/dist/collection/components/actions/au-button/au-button.constants.js +65 -0
- package/dist/collection/components/actions/au-button/au-button.css +224 -0
- package/dist/collection/components/actions/au-button/au-button.js +636 -0
- package/dist/collection/components/actions/au-button/au-button.types.js +1 -0
- package/dist/collection/components/actions/au-button/index.js +2 -0
- package/dist/collection/components/data-display/au-accordion/au-accordion.constants.js +11 -0
- package/dist/collection/components/data-display/au-accordion/au-accordion.css +7 -0
- package/dist/collection/components/data-display/au-accordion/au-accordion.js +143 -0
- package/dist/collection/components/data-display/au-accordion/au-accordion.types.js +1 -0
- package/dist/collection/components/data-display/au-accordion/index.js +2 -0
- package/dist/collection/components/data-display/au-accordion-item/au-accordion-item.css +156 -0
- package/dist/collection/components/data-display/au-accordion-item/au-accordion-item.js +186 -0
- package/dist/collection/components/data-display/au-accordion-item/index.js +1 -0
- package/dist/collection/components/data-display/au-avatar/au-avatar.constants.js +26 -0
- package/dist/collection/components/data-display/au-avatar/au-avatar.css +93 -0
- package/dist/collection/components/data-display/au-avatar/au-avatar.js +308 -0
- package/dist/collection/components/data-display/au-avatar/au-avatar.types.js +1 -0
- package/dist/collection/components/data-display/au-avatar/index.js +2 -0
- package/dist/collection/components/data-display/au-avatar/internal/initials.js +41 -0
- package/dist/collection/components/data-display/au-badge/au-badge.constants.js +29 -0
- package/dist/collection/components/data-display/au-badge/au-badge.css +152 -0
- package/dist/collection/components/data-display/au-badge/au-badge.js +142 -0
- package/dist/collection/components/data-display/au-badge/au-badge.types.js +1 -0
- package/dist/collection/components/data-display/au-badge/index.js +2 -0
- package/dist/collection/components/data-display/au-card/au-card.constants.js +20 -0
- package/dist/collection/components/data-display/au-card/au-card.css +125 -0
- package/dist/collection/components/data-display/au-card/au-card.js +127 -0
- package/dist/collection/components/data-display/au-card/au-card.types.js +1 -0
- package/dist/collection/components/data-display/au-card/index.js +2 -0
- package/dist/collection/components/data-display/au-chip/au-chip.constants.js +22 -0
- package/dist/collection/components/data-display/au-chip/au-chip.css +207 -0
- package/dist/collection/components/data-display/au-chip/au-chip.js +371 -0
- package/dist/collection/components/data-display/au-chip/au-chip.types.js +1 -0
- package/dist/collection/components/data-display/au-chip/index.js +2 -0
- package/dist/collection/components/data-display/au-chip/internal/neighbor.js +48 -0
- package/dist/collection/components/data-display/au-chip/internal/remove-key.js +13 -0
- package/dist/collection/components/data-display/au-code-block/au-code-block.constants.js +31 -0
- package/dist/collection/components/data-display/au-code-block/au-code-block.css +331 -0
- package/dist/collection/components/data-display/au-code-block/au-code-block.js +576 -0
- package/dist/collection/components/data-display/au-code-block/au-code-block.types.js +1 -0
- package/dist/collection/components/data-display/au-code-block/index.js +2 -0
- package/dist/collection/components/data-display/au-code-block/internal/highlight-lines.js +29 -0
- package/dist/collection/components/data-display/au-code-block/internal/highlight-result.js +42 -0
- package/dist/collection/components/data-display/au-code-block/internal/light-source.js +30 -0
- package/dist/collection/components/data-display/au-code-block/internal/normalize-code.js +48 -0
- package/dist/collection/components/data-display/internal/accordion.js +31 -0
- package/dist/collection/components/feedback/au-alert/au-alert.constants.js +20 -0
- package/dist/collection/components/feedback/au-alert/au-alert.css +171 -0
- package/dist/collection/components/feedback/au-alert/au-alert.js +241 -0
- package/dist/collection/components/feedback/au-alert/au-alert.types.js +1 -0
- package/dist/collection/components/feedback/au-alert/index.js +2 -0
- package/dist/collection/components/feedback/au-toast/au-toast.constants.js +1 -0
- package/dist/collection/components/feedback/au-toast/au-toast.css +150 -0
- package/dist/collection/components/feedback/au-toast/au-toast.js +145 -0
- package/dist/collection/components/feedback/au-toast/au-toast.service.js +140 -0
- package/dist/collection/components/feedback/au-toast/au-toast.types.js +1 -0
- package/dist/collection/components/feedback/au-toast/index.js +2 -0
- package/dist/collection/components/feedback/au-toast-region/au-toast-region.css +71 -0
- package/dist/collection/components/feedback/au-toast-region/au-toast-region.js +653 -0
- package/dist/collection/components/feedback/au-toast-region/index.js +2 -0
- package/dist/collection/components/feedback/internal/toast-announcer.js +5 -0
- package/dist/collection/components/feedback/internal/toast-constants.js +52 -0
- package/dist/collection/components/feedback/internal/toast-options.js +64 -0
- package/dist/collection/components/feedback/internal/toast-popover.js +22 -0
- package/dist/collection/components/feedback/internal/toast-queue.js +74 -0
- package/dist/collection/components/feedback/internal/toast-registry.js +24 -0
- package/dist/collection/components/feedback/internal/toast-request.js +6 -0
- package/dist/collection/components/feedback/internal/toast-timers.js +61 -0
- package/dist/collection/components/feedback/internal/toast-timing.js +5 -0
- package/dist/collection/components/feedback/internal/toast-types.js +1 -0
- package/dist/collection/components/forms/au-checkbox/au-checkbox.constants.js +2 -0
- package/dist/collection/components/forms/au-checkbox/au-checkbox.css +212 -0
- package/dist/collection/components/forms/au-checkbox/au-checkbox.js +468 -0
- package/dist/collection/components/forms/au-checkbox/au-checkbox.types.js +1 -0
- package/dist/collection/components/forms/au-checkbox/index.js +2 -0
- package/dist/collection/components/forms/au-combobox/au-combobox.constants.js +26 -0
- package/dist/collection/components/forms/au-combobox/au-combobox.css +374 -0
- package/dist/collection/components/forms/au-combobox/au-combobox.js +1165 -0
- package/dist/collection/components/forms/au-combobox/au-combobox.types.js +1 -0
- package/dist/collection/components/forms/au-combobox/index.js +2 -0
- package/dist/collection/components/forms/au-field/au-field.css +78 -0
- package/dist/collection/components/forms/au-field/au-field.js +195 -0
- package/dist/collection/components/forms/au-field/index.js +1 -0
- package/dist/collection/components/forms/au-input/au-input.constants.js +35 -0
- package/dist/collection/components/forms/au-input/au-input.css +195 -0
- package/dist/collection/components/forms/au-input/au-input.js +845 -0
- package/dist/collection/components/forms/au-input/au-input.types.js +1 -0
- package/dist/collection/components/forms/au-input/index.js +2 -0
- package/dist/collection/components/forms/au-label/au-label.constants.js +7 -0
- package/dist/collection/components/forms/au-label/au-label.css +38 -0
- package/dist/collection/components/forms/au-label/au-label.js +109 -0
- package/dist/collection/components/forms/au-label/au-label.types.js +1 -0
- package/dist/collection/components/forms/au-label/index.js +2 -0
- package/dist/collection/components/forms/au-number-input/au-number-input.constants.js +15 -0
- package/dist/collection/components/forms/au-number-input/au-number-input.css +276 -0
- package/dist/collection/components/forms/au-number-input/au-number-input.js +711 -0
- package/dist/collection/components/forms/au-number-input/au-number-input.types.js +1 -0
- package/dist/collection/components/forms/au-number-input/index.js +2 -0
- package/dist/collection/components/forms/au-radio/au-radio.constants.js +2 -0
- package/dist/collection/components/forms/au-radio/au-radio.css +126 -0
- package/dist/collection/components/forms/au-radio/au-radio.js +129 -0
- package/dist/collection/components/forms/au-radio/au-radio.types.js +1 -0
- package/dist/collection/components/forms/au-radio/index.js +2 -0
- package/dist/collection/components/forms/au-radio-group/au-radio-group.constants.js +6 -0
- package/dist/collection/components/forms/au-radio-group/au-radio-group.css +67 -0
- package/dist/collection/components/forms/au-radio-group/au-radio-group.js +643 -0
- package/dist/collection/components/forms/au-radio-group/au-radio-group.types.js +1 -0
- package/dist/collection/components/forms/au-radio-group/index.js +2 -0
- package/dist/collection/components/forms/au-segmented-control/au-segmented-control.constants.js +26 -0
- package/dist/collection/components/forms/au-segmented-control/au-segmented-control.css +92 -0
- package/dist/collection/components/forms/au-segmented-control/au-segmented-control.js +916 -0
- package/dist/collection/components/forms/au-segmented-control/au-segmented-control.types.js +1 -0
- package/dist/collection/components/forms/au-segmented-control/index.js +2 -0
- package/dist/collection/components/forms/au-segmented-option/au-segmented-option.css +103 -0
- package/dist/collection/components/forms/au-segmented-option/au-segmented-option.js +191 -0
- package/dist/collection/components/forms/au-segmented-option/au-segmented-option.types.js +1 -0
- package/dist/collection/components/forms/au-segmented-option/index.js +1 -0
- package/dist/collection/components/forms/au-select/au-select.constants.js +7 -0
- package/dist/collection/components/forms/au-select/au-select.css +194 -0
- package/dist/collection/components/forms/au-select/au-select.js +589 -0
- package/dist/collection/components/forms/au-select/au-select.types.js +1 -0
- package/dist/collection/components/forms/au-select/index.js +2 -0
- package/dist/collection/components/forms/au-select/internal/read-select-options.js +45 -0
- package/dist/collection/components/forms/au-slider/au-slider.constants.js +11 -0
- package/dist/collection/components/forms/au-slider/au-slider.css +296 -0
- package/dist/collection/components/forms/au-slider/au-slider.js +675 -0
- package/dist/collection/components/forms/au-slider/au-slider.types.js +1 -0
- package/dist/collection/components/forms/au-slider/index.js +2 -0
- package/dist/collection/components/forms/au-switch/au-switch.constants.js +2 -0
- package/dist/collection/components/forms/au-switch/au-switch.css +201 -0
- package/dist/collection/components/forms/au-switch/au-switch.js +440 -0
- package/dist/collection/components/forms/au-switch/au-switch.types.js +1 -0
- package/dist/collection/components/forms/au-switch/index.js +2 -0
- package/dist/collection/components/forms/au-textarea/au-textarea.constants.js +16 -0
- package/dist/collection/components/forms/au-textarea/au-textarea.css +187 -0
- package/dist/collection/components/forms/au-textarea/au-textarea.js +694 -0
- package/dist/collection/components/forms/au-textarea/au-textarea.types.js +1 -0
- package/dist/collection/components/forms/au-textarea/index.js +2 -0
- package/dist/collection/components/forms/internal/combobox.js +86 -0
- package/dist/collection/components/forms/internal/number-input.js +54 -0
- package/dist/collection/components/forms/internal/segmented.js +43 -0
- package/dist/collection/components/forms/internal/slider.js +76 -0
- package/dist/collection/components/layout/au-container/au-container.constants.js +22 -0
- package/dist/collection/components/layout/au-container/au-container.css +109 -0
- package/dist/collection/components/layout/au-container/au-container.js +144 -0
- package/dist/collection/components/layout/au-container/au-container.types.js +1 -0
- package/dist/collection/components/layout/au-container/index.js +2 -0
- package/dist/collection/components/layout/au-divider/au-divider.constants.js +23 -0
- package/dist/collection/components/layout/au-divider/au-divider.css +73 -0
- package/dist/collection/components/layout/au-divider/au-divider.js +194 -0
- package/dist/collection/components/layout/au-divider/au-divider.types.js +1 -0
- package/dist/collection/components/layout/au-divider/index.js +2 -0
- package/dist/collection/components/layout/au-splitter/au-splitter.constants.js +9 -0
- package/dist/collection/components/layout/au-splitter/au-splitter.css +168 -0
- package/dist/collection/components/layout/au-splitter/au-splitter.js +376 -0
- package/dist/collection/components/layout/au-splitter/au-splitter.types.js +1 -0
- package/dist/collection/components/layout/au-splitter/index.js +2 -0
- package/dist/collection/components/layout/internal/splitter.js +27 -0
- package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.constants.js +4 -0
- package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.css +20 -0
- package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.js +110 -0
- package/dist/collection/components/navigation/au-breadcrumb/index.js +2 -0
- package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.css +127 -0
- package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.js +186 -0
- package/dist/collection/components/navigation/au-breadcrumb-item/index.js +1 -0
- package/dist/collection/components/navigation/au-nav-group/au-nav-group.css +137 -0
- package/dist/collection/components/navigation/au-nav-group/au-nav-group.js +96 -0
- package/dist/collection/components/navigation/au-nav-group/index.js +1 -0
- package/dist/collection/components/navigation/au-nav-link/au-nav-link.css +128 -0
- package/dist/collection/components/navigation/au-nav-link/au-nav-link.js +205 -0
- package/dist/collection/components/navigation/au-nav-link/index.js +1 -0
- package/dist/collection/components/navigation/au-navbar/au-navbar.constants.js +40 -0
- package/dist/collection/components/navigation/au-navbar/au-navbar.css +185 -0
- package/dist/collection/components/navigation/au-navbar/au-navbar.js +409 -0
- package/dist/collection/components/navigation/au-navbar/au-navbar.types.js +1 -0
- package/dist/collection/components/navigation/au-navbar/index.js +2 -0
- package/dist/collection/components/navigation/au-navbar/internal/collapse.js +14 -0
- package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.constants.js +2 -0
- package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.css +29 -0
- package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.js +251 -0
- package/dist/collection/components/navigation/au-sidebar-nav/index.js +2 -0
- package/dist/collection/components/navigation/au-tab/au-tab.css +84 -0
- package/dist/collection/components/navigation/au-tab/au-tab.js +107 -0
- package/dist/collection/components/navigation/au-tab/index.js +1 -0
- package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.css +20 -0
- package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.js +134 -0
- package/dist/collection/components/navigation/au-tab-panel/index.js +1 -0
- package/dist/collection/components/navigation/au-tabs/au-tabs.constants.js +12 -0
- package/dist/collection/components/navigation/au-tabs/au-tabs.css +107 -0
- package/dist/collection/components/navigation/au-tabs/au-tabs.js +554 -0
- package/dist/collection/components/navigation/au-tabs/au-tabs.types.js +1 -0
- package/dist/collection/components/navigation/au-tabs/index.js +2 -0
- package/dist/collection/components/navigation/au-tabs/internal/indicator-geometry.js +18 -0
- package/dist/collection/components/navigation/au-toc/au-toc.constants.js +6 -0
- package/dist/collection/components/navigation/au-toc/au-toc.css +107 -0
- package/dist/collection/components/navigation/au-toc/au-toc.js +462 -0
- package/dist/collection/components/navigation/au-toc/index.js +2 -0
- package/dist/collection/components/navigation/au-toc/internal/toc-model.js +89 -0
- package/dist/collection/components/navigation/internal/reveal.js +65 -0
- package/dist/collection/components/overlays/au-dialog/au-dialog.constants.js +29 -0
- package/dist/collection/components/overlays/au-dialog/au-dialog.css +324 -0
- package/dist/collection/components/overlays/au-dialog/au-dialog.js +618 -0
- package/dist/collection/components/overlays/au-dialog/au-dialog.types.js +1 -0
- package/dist/collection/components/overlays/au-dialog/index.js +2 -0
- package/dist/collection/components/overlays/au-menu/au-menu.constants.js +37 -0
- package/dist/collection/components/overlays/au-menu/au-menu.css +163 -0
- package/dist/collection/components/overlays/au-menu/au-menu.js +507 -0
- package/dist/collection/components/overlays/au-menu/au-menu.types.js +1 -0
- package/dist/collection/components/overlays/au-menu/index.js +2 -0
- package/dist/collection/components/overlays/au-menu-item/au-menu-item.css +127 -0
- package/dist/collection/components/overlays/au-menu-item/au-menu-item.js +185 -0
- package/dist/collection/components/overlays/au-menu-item/au-menu-item.types.js +1 -0
- package/dist/collection/components/overlays/au-menu-item/index.js +1 -0
- package/dist/collection/components/overlays/au-popover/au-popover.constants.js +24 -0
- package/dist/collection/components/overlays/au-popover/au-popover.css +149 -0
- package/dist/collection/components/overlays/au-popover/au-popover.js +253 -0
- package/dist/collection/components/overlays/au-popover/au-popover.types.js +1 -0
- package/dist/collection/components/overlays/au-popover/index.js +2 -0
- package/dist/collection/components/overlays/au-tooltip/au-tooltip.constants.js +19 -0
- package/dist/collection/components/overlays/au-tooltip/au-tooltip.css +144 -0
- package/dist/collection/components/overlays/au-tooltip/au-tooltip.js +517 -0
- package/dist/collection/components/overlays/au-tooltip/index.js +2 -0
- package/dist/collection/components/overlays/internal/menu.js +34 -0
- package/dist/collection/components/overlays/internal/popover-controller.js +233 -0
- package/dist/collection/components/overlays/internal/typeahead.js +28 -0
- package/dist/collection/components/primitives/au-icon/au-icon.constants.js +3 -0
- package/dist/collection/components/primitives/au-icon/au-icon.css +36 -0
- package/dist/collection/components/primitives/au-icon/au-icon.js +367 -0
- package/dist/collection/components/primitives/au-icon/au-icon.types.js +1 -0
- package/dist/collection/components/primitives/au-icon/core-icons.js +20 -0
- package/dist/collection/components/primitives/au-icon/icon-loader.js +76 -0
- package/dist/collection/components/primitives/au-icon/index.js +1 -0
- package/dist/collection/foundations/constants/constants.generated.mjs +119 -0
- package/dist/collection/foundations/constants/index.js +2 -0
- package/dist/collection/foundations/constants/resolve-size.js +9 -0
- package/dist/collection/foundations/icons/autoload.js +21 -0
- package/dist/collection/foundations/icons/icon-autoload-hook.js +13 -0
- package/dist/collection/foundations/icons/icon-registry.js +147 -0
- package/dist/collection/foundations/icons/icon-sizes.js +8 -0
- package/dist/collection/foundations/icons/icon-slug.js +26 -0
- package/dist/collection/foundations/icons/icon.constants.generated.js +2284 -0
- package/dist/collection/foundations/icons/icon.constants.js +18 -0
- package/dist/collection/foundations/icons/icon.types.js +1 -0
- package/dist/collection/foundations/icons/index.js +3 -0
- package/dist/collection/foundations/icons/mdi-map.js +86 -0
- package/dist/collection/foundations/icons/register-lucide-icons.js +30 -0
- package/dist/collection/foundations/themes/theme.js +161 -0
- package/dist/collection/foundations/tokens/index.js +2 -0
- package/dist/collection/foundations/tokens/tokens.generated.mjs +178 -0
- package/dist/collection/index.js +10 -0
- package/dist/collection/integrations/basics/index.js +2 -0
- package/dist/collection/integrations/basics/is-plain-object.js +1 -0
- package/dist/collection/integrations/flux/index.js +1 -0
- package/dist/collection/integrations/flux/loader.js +66 -0
- package/dist/collection/integrations/flux/provide.js +16 -0
- package/dist/collection/integrations/flux/registry.js +42 -0
- package/dist/collection/shared/anchored/anchor-position.js +101 -0
- package/dist/collection/shared/anchored/js-positioning.js +113 -0
- package/dist/collection/shared/anchored/popover-support.js +30 -0
- package/dist/collection/shared/clipboard/clipboard.js +14 -0
- package/dist/collection/shared/clipboard/copy-procedure.js +189 -0
- package/dist/collection/shared/clipboard/copy-types.js +15 -0
- package/dist/collection/shared/focus/deep-active-element.js +7 -0
- package/dist/collection/shared/focus/index.js +1 -0
- package/dist/collection/shared/form-control/attributes.js +25 -0
- package/dist/collection/shared/form-control/checkable.js +4 -0
- package/dist/collection/shared/form-control/control-id.js +11 -0
- package/dist/collection/shared/form-control/described-by.js +5 -0
- package/dist/collection/shared/form-control/form-control-controller.js +88 -0
- package/dist/collection/shared/form-control/group-validity.js +7 -0
- package/dist/collection/shared/form-control/host-events.js +19 -0
- package/dist/collection/shared/form-control/index.js +10 -0
- package/dist/collection/shared/form-control/initial-value.js +9 -0
- package/dist/collection/shared/form-control/restore.js +12 -0
- package/dist/collection/shared/form-control/validation-message.js +12 -0
- package/dist/collection/shared/live-announcer/announce-queue.js +141 -0
- package/dist/collection/shared/live-announcer/announce-timing.js +12 -0
- package/dist/collection/shared/live-announcer/index.js +1 -0
- package/dist/collection/shared/live-announcer/live-announcer.js +150 -0
- package/dist/collection/shared/live-announcer/public.js +6 -0
- package/dist/collection/shared/modal-placement.js +42 -0
- package/dist/collection/shared/modal-target.js +59 -0
- package/dist/collection/shared/navigation/index.js +2 -0
- package/dist/collection/shared/navigation/link-state.js +34 -0
- package/dist/collection/shared/navigation/navigation.js +56 -0
- package/dist/collection/shared/observers/index.js +180 -0
- package/dist/collection/shared/roving-focus/index.js +2 -0
- package/dist/collection/shared/roving-focus/item-update.js +11 -0
- package/dist/collection/shared/roving-focus/roving.js +65 -0
- package/dist/collection/shared/warn-once.js +17 -0
- package/dist/components/au-accordion-item.d.ts +11 -0
- package/dist/components/au-accordion-item.js +1 -0
- package/dist/components/au-accordion.d.ts +11 -0
- package/dist/components/au-accordion.js +1 -0
- package/dist/components/au-alert.d.ts +11 -0
- package/dist/components/au-alert.js +1 -0
- package/dist/components/au-avatar.d.ts +11 -0
- package/dist/components/au-avatar.js +1 -0
- package/dist/components/au-badge.d.ts +11 -0
- package/dist/components/au-badge.js +1 -0
- package/dist/components/au-breadcrumb-item.d.ts +11 -0
- package/dist/components/au-breadcrumb-item.js +1 -0
- package/dist/components/au-breadcrumb.d.ts +11 -0
- package/dist/components/au-breadcrumb.js +1 -0
- package/dist/components/au-button.d.ts +11 -0
- package/dist/components/au-button.js +1 -0
- package/dist/components/au-card.d.ts +11 -0
- package/dist/components/au-card.js +1 -0
- package/dist/components/au-checkbox.d.ts +11 -0
- package/dist/components/au-checkbox.js +1 -0
- package/dist/components/au-chip.d.ts +11 -0
- package/dist/components/au-chip.js +1 -0
- package/dist/components/au-code-block.d.ts +11 -0
- package/dist/components/au-code-block.js +1 -0
- package/dist/components/au-combobox.d.ts +11 -0
- package/dist/components/au-combobox.js +1 -0
- package/dist/components/au-container.d.ts +11 -0
- package/dist/components/au-container.js +1 -0
- package/dist/components/au-dialog.d.ts +11 -0
- package/dist/components/au-dialog.js +1 -0
- package/dist/components/au-divider.d.ts +11 -0
- package/dist/components/au-divider.js +1 -0
- package/dist/components/au-field.d.ts +11 -0
- package/dist/components/au-field.js +1 -0
- package/dist/components/au-icon.d.ts +11 -0
- package/dist/components/au-icon.js +1 -0
- package/dist/components/au-input.d.ts +11 -0
- package/dist/components/au-input.js +1 -0
- package/dist/components/au-label.d.ts +11 -0
- package/dist/components/au-label.js +1 -0
- package/dist/components/au-menu-item.d.ts +11 -0
- package/dist/components/au-menu-item.js +1 -0
- package/dist/components/au-menu.d.ts +11 -0
- package/dist/components/au-menu.js +1 -0
- package/dist/components/au-nav-group.d.ts +11 -0
- package/dist/components/au-nav-group.js +1 -0
- package/dist/components/au-nav-link.d.ts +11 -0
- package/dist/components/au-nav-link.js +1 -0
- package/dist/components/au-navbar.d.ts +11 -0
- package/dist/components/au-navbar.js +1 -0
- package/dist/components/au-number-input.d.ts +11 -0
- package/dist/components/au-number-input.js +1 -0
- package/dist/components/au-popover.d.ts +11 -0
- package/dist/components/au-popover.js +1 -0
- package/dist/components/au-radio-group.d.ts +11 -0
- package/dist/components/au-radio-group.js +1 -0
- package/dist/components/au-radio.d.ts +11 -0
- package/dist/components/au-radio.js +1 -0
- package/dist/components/au-segmented-control.d.ts +11 -0
- package/dist/components/au-segmented-control.js +1 -0
- package/dist/components/au-segmented-option.d.ts +11 -0
- package/dist/components/au-segmented-option.js +1 -0
- package/dist/components/au-select.d.ts +11 -0
- package/dist/components/au-select.js +1 -0
- package/dist/components/au-sidebar-nav.d.ts +11 -0
- package/dist/components/au-sidebar-nav.js +1 -0
- package/dist/components/au-slider.d.ts +11 -0
- package/dist/components/au-slider.js +1 -0
- package/dist/components/au-splitter.d.ts +11 -0
- package/dist/components/au-splitter.js +1 -0
- package/dist/components/au-switch.d.ts +11 -0
- package/dist/components/au-switch.js +1 -0
- package/dist/components/au-tab-panel.d.ts +11 -0
- package/dist/components/au-tab-panel.js +1 -0
- package/dist/components/au-tab.d.ts +11 -0
- package/dist/components/au-tab.js +1 -0
- package/dist/components/au-tabs.d.ts +11 -0
- package/dist/components/au-tabs.js +1 -0
- package/dist/components/au-textarea.d.ts +11 -0
- package/dist/components/au-textarea.js +1 -0
- package/dist/components/au-toast-region.d.ts +11 -0
- package/dist/components/au-toast-region.js +1 -0
- package/dist/components/au-toast.d.ts +11 -0
- package/dist/components/au-toast.js +1 -0
- package/dist/components/au-toc.d.ts +11 -0
- package/dist/components/au-toc.js +1 -0
- package/dist/components/au-tooltip.d.ts +11 -0
- package/dist/components/au-tooltip.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-B3rlZvSP.js +7 -0
- package/dist/components/p-B71krpcd.js +1 -0
- package/dist/components/p-BTRtOC1j.js +1 -0
- package/dist/components/p-BTZwl4uD.js +7 -0
- package/dist/components/p-BvnCPjl5.js +1 -0
- package/dist/components/p-C-bRwiWx.js +1 -0
- package/dist/components/p-C2iVoG0G.js +1 -0
- package/dist/components/p-C48ks26E.js +1 -0
- package/dist/components/p-C6E5E18W.js +7 -0
- package/dist/components/p-CA3n-tpF.js +7 -0
- package/dist/components/p-CIZeCYao.js +1 -0
- package/dist/components/p-CJtRxiuh.js +7 -0
- package/dist/components/p-CU9sZ49I.js +7 -0
- package/dist/components/p-CfazOBmW.js +1 -0
- package/dist/components/p-Ci-XzGE3.js +1 -0
- package/dist/components/p-CnJOd66V.js +7 -0
- package/dist/components/p-Cq5N0E4D.js +7 -0
- package/dist/components/p-CrKUXDm4.js +1 -0
- package/dist/components/p-DAqsVCAy.js +1 -0
- package/dist/components/p-DBHfOAQc.js +1 -0
- package/dist/components/p-DD6GCVQb.js +1 -0
- package/dist/components/p-DIL-tsh4.js +1 -0
- package/dist/components/p-DTEnois3.js +7 -0
- package/dist/components/p-DTeHrc-Q.js +1 -0
- package/dist/components/p-DgfWQsck.js +1 -0
- package/dist/components/p-Dogh3-Bf.js +1 -0
- package/dist/components/p-DqqWqhAT.js +1 -0
- package/dist/components/p-Dv3Jcvbc.js +1 -0
- package/dist/components/p-DzNA1eDU.js +1 -0
- package/dist/components/p-JU60IJxn.js +1 -0
- package/dist/components/p-M21eKzKU.js +1 -0
- package/dist/components/p-TdUs41zm.js +1 -0
- package/dist/components/p-gvyxpLwV.js +1 -0
- package/dist/components/p-kEvQ5xF7.js +1 -0
- package/dist/components/p-kbAXs-sG.js +7 -0
- package/dist/components/p-klxij34W.js +1 -0
- package/dist/components/p-kpQFQ7bu.js +7 -0
- package/dist/components/p-tdx7CCkD.js +7 -0
- package/dist/components/p-vjn4H-yX.js +1 -0
- package/dist/custom-elements.json +9944 -0
- package/dist/esm/accordion-CfazOBmW.js +33 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/attributes-CrKUXDm4.js +27 -0
- package/dist/esm/au-accordion-item.entry.js +86 -0
- package/dist/esm/au-accordion.entry.js +98 -0
- package/dist/esm/au-alert.entry.js +115 -0
- package/dist/esm/au-avatar.entry.js +175 -0
- package/dist/esm/au-badge.entry.js +58 -0
- package/dist/esm/au-breadcrumb-item.entry.js +82 -0
- package/dist/esm/au-breadcrumb.entry.js +78 -0
- package/dist/esm/au-button.entry.js +326 -0
- package/dist/esm/au-card.entry.js +74 -0
- package/dist/esm/au-checkbox.entry.js +181 -0
- package/dist/esm/au-chip.entry.js +247 -0
- package/dist/esm/au-code-block.entry.js +676 -0
- package/dist/esm/au-combobox.entry.js +753 -0
- package/dist/esm/au-container.entry.js +56 -0
- package/dist/esm/au-dialog.entry.js +375 -0
- package/dist/esm/au-divider.entry.js +104 -0
- package/dist/esm/au-field.entry.js +183 -0
- package/dist/esm/au-icon-B17psn7x.js +344 -0
- package/dist/esm/au-icon.entry.js +3 -0
- package/dist/esm/au-input.entry.js +310 -0
- package/dist/esm/au-label.entry.js +43 -0
- package/dist/esm/au-menu-item.entry.js +69 -0
- package/dist/esm/au-menu.entry.js +345 -0
- package/dist/esm/au-nav-group.entry.js +48 -0
- package/dist/esm/au-nav-link.entry.js +82 -0
- package/dist/esm/au-navbar.entry.js +304 -0
- package/dist/esm/au-number-input.entry.js +348 -0
- package/dist/esm/au-popover.entry.js +128 -0
- package/dist/esm/au-radio-group.entry.js +346 -0
- package/dist/esm/au-radio.entry.js +43 -0
- package/dist/esm/au-segmented-control.entry.js +542 -0
- package/dist/esm/au-segmented-option.entry.js +76 -0
- package/dist/esm/au-select.entry.js +334 -0
- package/dist/esm/au-sidebar-nav.entry.js +176 -0
- package/dist/esm/au-slider.entry.js +284 -0
- package/dist/esm/au-splitter.entry.js +228 -0
- package/dist/esm/au-switch.entry.js +173 -0
- package/dist/esm/au-tab-panel.entry.js +61 -0
- package/dist/esm/au-tab.entry.js +39 -0
- package/dist/esm/au-tabs.entry.js +404 -0
- package/dist/esm/au-textarea.entry.js +243 -0
- package/dist/esm/au-toast-region.entry.js +690 -0
- package/dist/esm/au-toast.entry.js +61 -0
- package/dist/esm/au-toc.entry.js +443 -0
- package/dist/esm/au-tooltip.entry.js +393 -0
- package/dist/esm/aurora.js +21 -0
- package/dist/esm/check-CnJOd66V.js +14 -0
- package/dist/esm/checkable-kEvQ5xF7.js +6 -0
- package/dist/esm/circle-check-kpQFQ7bu.js +18 -0
- package/dist/esm/circle-x-tdx7CCkD.js +19 -0
- package/dist/esm/constants.generated-DqqWqhAT.js +120 -0
- package/dist/esm/control-id-C48ks26E.js +13 -0
- package/dist/esm/copy-B3rlZvSP.js +17 -0
- package/dist/esm/copy-check-Cq5N0E4D.js +18 -0
- package/dist/esm/deep-active-element-C-bRwiWx.js +9 -0
- package/dist/esm/group-validity-C2iVoG0G.js +9 -0
- package/dist/esm/icon-loader-CqLCmu4h.js +109 -0
- package/dist/esm/index-JU60IJxn.js +155 -0
- package/dist/esm/index-KLUZmSN-.js +2304 -0
- package/dist/esm/index.js +321 -0
- package/dist/esm/info-CA3n-tpF.js +18 -0
- package/dist/esm/initial-value-B71krpcd.js +11 -0
- package/dist/esm/item-update-DgfWQsck.js +13 -0
- package/dist/esm/link-state-DhPKwPml.js +37 -0
- package/dist/esm/live-announcer-CXd2OhYs.js +391 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/menu-vjn4H-yX.js +35 -0
- package/dist/esm/minus-kbAXs-sG.js +14 -0
- package/dist/esm/navigation-TdUs41zm.js +58 -0
- package/dist/esm/octagon-alert-DTEnois3.js +25 -0
- package/dist/esm/plus-CU9sZ49I.js +17 -0
- package/dist/esm/popover-controller-DUrPFfIx.js +235 -0
- package/dist/esm/popover-support-DBHfOAQc.js +247 -0
- package/dist/esm/resolve-size-DD6GCVQb.js +11 -0
- package/dist/esm/restore-gvyxpLwV.js +141 -0
- package/dist/esm/reveal-BvnCPjl5.js +67 -0
- package/dist/esm/roving-Dogh3-Bf.js +67 -0
- package/dist/esm/segmented-BTRtOC1j.js +45 -0
- package/dist/esm/slider-CIZeCYao.js +78 -0
- package/dist/esm/toast-request-Kwv9rt06.js +55 -0
- package/dist/esm/triangle-alert-CJtRxiuh.js +25 -0
- package/dist/esm/user-round-C6E5E18W.js +18 -0
- package/dist/esm/warn-once-Ci-XzGE3.js +19 -0
- package/dist/esm/x-BTZwl4uD.js +17 -0
- package/dist/foundations/accessibility/_index.scss +34 -0
- package/dist/foundations/constants/_config.scss +119 -0
- package/dist/foundations/constants/_index.scss +1 -0
- package/dist/foundations/interactions/_index.scss +19 -0
- package/dist/foundations/responsive/_breakpoints.scss +104 -0
- package/dist/foundations/responsive/_index.scss +1 -0
- package/dist/foundations/themes/_dark.scss +60 -0
- package/dist/foundations/themes/_default.scss +37 -0
- package/dist/foundations/themes/_glass.scss +98 -0
- package/dist/foundations/themes/_index.scss +2 -0
- package/dist/foundations/themes/_minimal.scss +54 -0
- package/dist/foundations/tokens/_config.scss +186 -0
- package/dist/foundations/tokens/_functions.scss +19 -0
- package/dist/foundations/tokens/_index.scss +3 -0
- package/dist/foundations/tokens/_runtime.scss +102 -0
- package/dist/foundations/utilities/_borders.scss +116 -0
- package/dist/foundations/utilities/_colors.scss +17 -0
- package/dist/foundations/utilities/_flex.scss +144 -0
- package/dist/foundations/utilities/_grid.scss +105 -0
- package/dist/foundations/utilities/_index.scss +92 -0
- package/dist/foundations/utilities/_positioning.scss +44 -0
- package/dist/foundations/utilities/_sizing.scss +38 -0
- package/dist/foundations/utilities/_spacing.scss +119 -0
- package/dist/foundations/utilities/_typography.scss +85 -0
- package/dist/icons/foundations/icons/autoload.d.ts +9 -0
- package/dist/icons/foundations/icons/autoload.js +21 -0
- package/dist/icons/foundations/icons/icon-autoload-hook.d.ts +14 -0
- package/dist/icons/foundations/icons/icon-autoload-hook.js +13 -0
- package/dist/icons/foundations/icons/icon-registry.d.ts +11 -0
- package/dist/icons/foundations/icons/icon-registry.js +147 -0
- package/dist/icons/foundations/icons/icon-sizes.d.ts +8 -0
- package/dist/icons/foundations/icons/icon-sizes.js +8 -0
- package/dist/icons/foundations/icons/icon-slug.d.ts +6 -0
- package/dist/icons/foundations/icons/icon-slug.js +26 -0
- package/dist/icons/foundations/icons/icon.constants.d.ts +14 -0
- package/dist/icons/foundations/icons/icon.constants.generated.d.ts +2281 -0
- package/dist/icons/foundations/icons/icon.constants.generated.js +2284 -0
- package/dist/icons/foundations/icons/icon.constants.js +18 -0
- package/dist/icons/foundations/icons/icon.types.d.ts +21 -0
- package/dist/icons/foundations/icons/icon.types.js +1 -0
- package/dist/icons/foundations/icons/index.d.ts +5 -0
- package/dist/icons/foundations/icons/index.js +3 -0
- package/dist/icons/foundations/icons/mdi-map.d.ts +92 -0
- package/dist/icons/foundations/icons/mdi-map.js +86 -0
- package/dist/icons/foundations/icons/register-lucide-icons.d.ts +14 -0
- package/dist/icons/foundations/icons/register-lucide-icons.js +30 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.js +2 -0
- package/dist/icons/integrations/basics/index.d.ts +2 -0
- package/dist/icons/integrations/basics/index.js +2 -0
- package/dist/icons/integrations/basics/is-plain-object.d.ts +1 -0
- package/dist/icons/integrations/basics/is-plain-object.js +1 -0
- package/dist/icons/package.json +3 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/scss/index.scss +4 -0
- package/dist/scss/interactions.scss +1 -0
- package/dist/scss/responsive.scss +2 -0
- package/dist/scss/themes/dark.scss +1 -0
- package/dist/scss/themes/default.scss +1 -0
- package/dist/scss/themes/glass.scss +1 -0
- package/dist/scss/themes/minimal.scss +1 -0
- package/dist/scss/tokens.scss +1 -0
- package/dist/scss/utilities/_index.scss +5 -0
- package/dist/scss/utilities/borders.scss +3 -0
- package/dist/scss/utilities/colors.scss +2 -0
- package/dist/scss/utilities/flex.scss +1 -0
- package/dist/scss/utilities/grid.scss +1 -0
- package/dist/scss/utilities/positioning.scss +2 -0
- package/dist/scss/utilities/sizing.scss +3 -0
- package/dist/scss/utilities/spacing.scss +3 -0
- package/dist/scss/utilities/typography.scss +3 -0
- package/dist/styles.css +263 -0
- package/dist/themes/glass.css +88 -0
- package/dist/themes/minimal.css +50 -0
- package/dist/tokens.cjs +38 -0
- package/dist/tokens.d.ts +337 -0
- package/dist/tokens.mjs +35 -0
- package/dist/types/components/actions/au-button/au-button.constants.d.ts +57 -0
- package/dist/types/components/actions/au-button/au-button.d.ts +93 -0
- package/dist/types/components/actions/au-button/au-button.types.d.ts +9 -0
- package/dist/types/components/actions/au-button/index.d.ts +2 -0
- package/dist/types/components/data-display/au-accordion/au-accordion.constants.d.ts +12 -0
- package/dist/types/components/data-display/au-accordion/au-accordion.d.ts +27 -0
- package/dist/types/components/data-display/au-accordion/au-accordion.types.d.ts +1 -0
- package/dist/types/components/data-display/au-accordion/index.d.ts +3 -0
- package/dist/types/components/data-display/au-accordion-item/au-accordion-item.d.ts +31 -0
- package/dist/types/components/data-display/au-accordion-item/index.d.ts +1 -0
- package/dist/types/components/data-display/au-avatar/au-avatar.constants.d.ts +26 -0
- package/dist/types/components/data-display/au-avatar/au-avatar.d.ts +39 -0
- package/dist/types/components/data-display/au-avatar/au-avatar.types.d.ts +1 -0
- package/dist/types/components/data-display/au-avatar/index.d.ts +3 -0
- package/dist/types/components/data-display/au-avatar/internal/initials.d.ts +7 -0
- package/dist/types/components/data-display/au-badge/au-badge.constants.d.ts +43 -0
- package/dist/types/components/data-display/au-badge/au-badge.d.ts +15 -0
- package/dist/types/components/data-display/au-badge/au-badge.types.d.ts +1 -0
- package/dist/types/components/data-display/au-badge/index.d.ts +3 -0
- package/dist/types/components/data-display/au-card/au-card.constants.d.ts +29 -0
- package/dist/types/components/data-display/au-card/au-card.d.ts +17 -0
- package/dist/types/components/data-display/au-card/au-card.types.d.ts +1 -0
- package/dist/types/components/data-display/au-card/index.d.ts +3 -0
- package/dist/types/components/data-display/au-chip/au-chip.constants.d.ts +23 -0
- package/dist/types/components/data-display/au-chip/au-chip.d.ts +46 -0
- package/dist/types/components/data-display/au-chip/au-chip.types.d.ts +10 -0
- package/dist/types/components/data-display/au-chip/index.d.ts +3 -0
- package/dist/types/components/data-display/au-chip/internal/neighbor.d.ts +6 -0
- package/dist/types/components/data-display/au-chip/internal/remove-key.d.ts +16 -0
- package/dist/types/components/data-display/au-code-block/au-code-block.constants.d.ts +32 -0
- package/dist/types/components/data-display/au-code-block/au-code-block.d.ts +89 -0
- package/dist/types/components/data-display/au-code-block/au-code-block.types.d.ts +17 -0
- package/dist/types/components/data-display/au-code-block/index.d.ts +3 -0
- package/dist/types/components/data-display/au-code-block/internal/highlight-lines.d.ts +10 -0
- package/dist/types/components/data-display/au-code-block/internal/highlight-result.d.ts +22 -0
- package/dist/types/components/data-display/au-code-block/internal/light-source.d.ts +10 -0
- package/dist/types/components/data-display/au-code-block/internal/normalize-code.d.ts +9 -0
- package/dist/types/components/data-display/internal/accordion.d.ts +26 -0
- package/dist/types/components/feedback/au-alert/au-alert.constants.d.ts +24 -0
- package/dist/types/components/feedback/au-alert/au-alert.d.ts +37 -0
- package/dist/types/components/feedback/au-alert/au-alert.types.d.ts +1 -0
- package/dist/types/components/feedback/au-alert/index.d.ts +3 -0
- package/dist/types/components/feedback/au-toast/au-toast.constants.d.ts +2 -0
- package/dist/types/components/feedback/au-toast/au-toast.d.ts +25 -0
- package/dist/types/components/feedback/au-toast/au-toast.service.d.ts +8 -0
- package/dist/types/components/feedback/au-toast/au-toast.types.d.ts +1 -0
- package/dist/types/components/feedback/au-toast/index.d.ts +3 -0
- package/dist/types/components/feedback/au-toast-region/au-toast-region.d.ts +106 -0
- package/dist/types/components/feedback/au-toast-region/index.d.ts +4 -0
- package/dist/types/components/feedback/internal/toast-announcer.d.ts +5 -0
- package/dist/types/components/feedback/internal/toast-constants.d.ts +70 -0
- package/dist/types/components/feedback/internal/toast-options.d.ts +28 -0
- package/dist/types/components/feedback/internal/toast-popover.d.ts +4 -0
- package/dist/types/components/feedback/internal/toast-queue.d.ts +39 -0
- package/dist/types/components/feedback/internal/toast-registry.d.ts +11 -0
- package/dist/types/components/feedback/internal/toast-request.d.ts +10 -0
- package/dist/types/components/feedback/internal/toast-timers.d.ts +19 -0
- package/dist/types/components/feedback/internal/toast-timing.d.ts +5 -0
- package/dist/types/components/feedback/internal/toast-types.d.ts +37 -0
- package/dist/types/components/forms/au-checkbox/au-checkbox.constants.d.ts +2 -0
- package/dist/types/components/forms/au-checkbox/au-checkbox.d.ts +63 -0
- package/dist/types/components/forms/au-checkbox/au-checkbox.types.d.ts +23 -0
- package/dist/types/components/forms/au-checkbox/index.d.ts +3 -0
- package/dist/types/components/forms/au-combobox/au-combobox.constants.d.ts +26 -0
- package/dist/types/components/forms/au-combobox/au-combobox.d.ts +167 -0
- package/dist/types/components/forms/au-combobox/au-combobox.types.d.ts +49 -0
- package/dist/types/components/forms/au-combobox/index.d.ts +4 -0
- package/dist/types/components/forms/au-field/au-field.d.ts +31 -0
- package/dist/types/components/forms/au-field/index.d.ts +1 -0
- package/dist/types/components/forms/au-input/au-input.constants.d.ts +35 -0
- package/dist/types/components/forms/au-input/au-input.d.ts +104 -0
- package/dist/types/components/forms/au-input/au-input.types.d.ts +35 -0
- package/dist/types/components/forms/au-input/index.d.ts +4 -0
- package/dist/types/components/forms/au-label/au-label.constants.d.ts +7 -0
- package/dist/types/components/forms/au-label/au-label.d.ts +12 -0
- package/dist/types/components/forms/au-label/au-label.types.d.ts +7 -0
- package/dist/types/components/forms/au-label/index.d.ts +2 -0
- package/dist/types/components/forms/au-number-input/au-number-input.constants.d.ts +15 -0
- package/dist/types/components/forms/au-number-input/au-number-input.d.ts +93 -0
- package/dist/types/components/forms/au-number-input/au-number-input.types.d.ts +35 -0
- package/dist/types/components/forms/au-number-input/index.d.ts +4 -0
- package/dist/types/components/forms/au-radio/au-radio.constants.d.ts +2 -0
- package/dist/types/components/forms/au-radio/au-radio.d.ts +13 -0
- package/dist/types/components/forms/au-radio/au-radio.types.d.ts +11 -0
- package/dist/types/components/forms/au-radio/index.d.ts +3 -0
- package/dist/types/components/forms/au-radio-group/au-radio-group.constants.d.ts +6 -0
- package/dist/types/components/forms/au-radio-group/au-radio-group.d.ts +89 -0
- package/dist/types/components/forms/au-radio-group/au-radio-group.types.d.ts +23 -0
- package/dist/types/components/forms/au-radio-group/index.d.ts +4 -0
- package/dist/types/components/forms/au-segmented-control/au-segmented-control.constants.d.ts +26 -0
- package/dist/types/components/forms/au-segmented-control/au-segmented-control.d.ts +113 -0
- package/dist/types/components/forms/au-segmented-control/au-segmented-control.types.d.ts +30 -0
- package/dist/types/components/forms/au-segmented-control/index.d.ts +4 -0
- package/dist/types/components/forms/au-segmented-option/au-segmented-option.d.ts +23 -0
- package/dist/types/components/forms/au-segmented-option/au-segmented-option.types.d.ts +14 -0
- package/dist/types/components/forms/au-segmented-option/index.d.ts +2 -0
- package/dist/types/components/forms/au-select/au-select.constants.d.ts +7 -0
- package/dist/types/components/forms/au-select/au-select.d.ts +91 -0
- package/dist/types/components/forms/au-select/au-select.types.d.ts +25 -0
- package/dist/types/components/forms/au-select/index.d.ts +4 -0
- package/dist/types/components/forms/au-select/internal/read-select-options.d.ts +28 -0
- package/dist/types/components/forms/au-slider/au-slider.constants.d.ts +11 -0
- package/dist/types/components/forms/au-slider/au-slider.d.ts +84 -0
- package/dist/types/components/forms/au-slider/au-slider.types.d.ts +41 -0
- package/dist/types/components/forms/au-slider/index.d.ts +4 -0
- package/dist/types/components/forms/au-switch/au-switch.constants.d.ts +2 -0
- package/dist/types/components/forms/au-switch/au-switch.d.ts +61 -0
- package/dist/types/components/forms/au-switch/au-switch.types.d.ts +21 -0
- package/dist/types/components/forms/au-switch/index.d.ts +3 -0
- package/dist/types/components/forms/au-textarea/au-textarea.constants.d.ts +16 -0
- package/dist/types/components/forms/au-textarea/au-textarea.d.ts +87 -0
- package/dist/types/components/forms/au-textarea/au-textarea.types.d.ts +33 -0
- package/dist/types/components/forms/au-textarea/index.d.ts +4 -0
- package/dist/types/components/forms/internal/combobox.d.ts +51 -0
- package/dist/types/components/forms/internal/number-input.d.ts +18 -0
- package/dist/types/components/forms/internal/segmented.d.ts +34 -0
- package/dist/types/components/forms/internal/slider.d.ts +42 -0
- package/dist/types/components/layout/au-container/au-container.constants.d.ts +24 -0
- package/dist/types/components/layout/au-container/au-container.d.ts +15 -0
- package/dist/types/components/layout/au-container/au-container.types.d.ts +1 -0
- package/dist/types/components/layout/au-container/index.d.ts +3 -0
- package/dist/types/components/layout/au-divider/au-divider.constants.d.ts +23 -0
- package/dist/types/components/layout/au-divider/au-divider.d.ts +23 -0
- package/dist/types/components/layout/au-divider/au-divider.types.d.ts +1 -0
- package/dist/types/components/layout/au-divider/index.d.ts +3 -0
- package/dist/types/components/layout/au-splitter/au-splitter.constants.d.ts +9 -0
- package/dist/types/components/layout/au-splitter/au-splitter.d.ts +53 -0
- package/dist/types/components/layout/au-splitter/au-splitter.types.d.ts +19 -0
- package/dist/types/components/layout/au-splitter/index.d.ts +4 -0
- package/dist/types/components/layout/internal/splitter.d.ts +22 -0
- package/dist/types/components/navigation/au-breadcrumb/au-breadcrumb.constants.d.ts +4 -0
- package/dist/types/components/navigation/au-breadcrumb/au-breadcrumb.d.ts +23 -0
- package/dist/types/components/navigation/au-breadcrumb/index.d.ts +2 -0
- package/dist/types/components/navigation/au-breadcrumb-item/au-breadcrumb-item.d.ts +28 -0
- package/dist/types/components/navigation/au-breadcrumb-item/index.d.ts +1 -0
- package/dist/types/components/navigation/au-nav-group/au-nav-group.d.ts +16 -0
- package/dist/types/components/navigation/au-nav-group/index.d.ts +1 -0
- package/dist/types/components/navigation/au-nav-link/au-nav-link.d.ts +25 -0
- package/dist/types/components/navigation/au-nav-link/index.d.ts +1 -0
- package/dist/types/components/navigation/au-navbar/au-navbar.constants.d.ts +40 -0
- package/dist/types/components/navigation/au-navbar/au-navbar.d.ts +74 -0
- package/dist/types/components/navigation/au-navbar/au-navbar.types.d.ts +9 -0
- package/dist/types/components/navigation/au-navbar/index.d.ts +4 -0
- package/dist/types/components/navigation/au-navbar/internal/collapse.d.ts +6 -0
- package/dist/types/components/navigation/au-sidebar-nav/au-sidebar-nav.constants.d.ts +2 -0
- package/dist/types/components/navigation/au-sidebar-nav/au-sidebar-nav.d.ts +49 -0
- package/dist/types/components/navigation/au-sidebar-nav/index.d.ts +2 -0
- package/dist/types/components/navigation/au-tab/au-tab.d.ts +11 -0
- package/dist/types/components/navigation/au-tab/index.d.ts +1 -0
- package/dist/types/components/navigation/au-tab-panel/au-tab-panel.d.ts +20 -0
- package/dist/types/components/navigation/au-tab-panel/index.d.ts +1 -0
- package/dist/types/components/navigation/au-tabs/au-tabs.constants.d.ts +12 -0
- package/dist/types/components/navigation/au-tabs/au-tabs.d.ts +79 -0
- package/dist/types/components/navigation/au-tabs/au-tabs.types.d.ts +7 -0
- package/dist/types/components/navigation/au-tabs/index.d.ts +4 -0
- package/dist/types/components/navigation/au-tabs/internal/indicator-geometry.d.ts +31 -0
- package/dist/types/components/navigation/au-toc/au-toc.constants.d.ts +6 -0
- package/dist/types/components/navigation/au-toc/au-toc.d.ts +84 -0
- package/dist/types/components/navigation/au-toc/index.d.ts +2 -0
- package/dist/types/components/navigation/au-toc/internal/toc-model.d.ts +41 -0
- package/dist/types/components/navigation/internal/reveal.d.ts +24 -0
- package/dist/types/components/overlays/au-dialog/au-dialog.constants.d.ts +33 -0
- package/dist/types/components/overlays/au-dialog/au-dialog.d.ts +103 -0
- package/dist/types/components/overlays/au-dialog/au-dialog.types.d.ts +11 -0
- package/dist/types/components/overlays/au-dialog/index.d.ts +3 -0
- package/dist/types/components/overlays/au-menu/au-menu.constants.d.ts +37 -0
- package/dist/types/components/overlays/au-menu/au-menu.d.ts +67 -0
- package/dist/types/components/overlays/au-menu/au-menu.types.d.ts +12 -0
- package/dist/types/components/overlays/au-menu/index.d.ts +4 -0
- package/dist/types/components/overlays/au-menu-item/au-menu-item.d.ts +19 -0
- package/dist/types/components/overlays/au-menu-item/au-menu-item.types.d.ts +14 -0
- package/dist/types/components/overlays/au-menu-item/index.d.ts +2 -0
- package/dist/types/components/overlays/au-popover/au-popover.constants.d.ts +33 -0
- package/dist/types/components/overlays/au-popover/au-popover.d.ts +28 -0
- package/dist/types/components/overlays/au-popover/au-popover.types.d.ts +10 -0
- package/dist/types/components/overlays/au-popover/index.d.ts +3 -0
- package/dist/types/components/overlays/au-tooltip/au-tooltip.constants.d.ts +28 -0
- package/dist/types/components/overlays/au-tooltip/au-tooltip.d.ts +80 -0
- package/dist/types/components/overlays/au-tooltip/index.d.ts +3 -0
- package/dist/types/components/overlays/internal/menu.d.ts +34 -0
- package/dist/types/components/overlays/internal/popover-controller.d.ts +102 -0
- package/dist/types/components/overlays/internal/typeahead.d.ts +17 -0
- package/dist/types/components/primitives/au-icon/au-icon.constants.d.ts +5 -0
- package/dist/types/components/primitives/au-icon/au-icon.d.ts +37 -0
- package/dist/types/components/primitives/au-icon/au-icon.types.d.ts +13 -0
- package/dist/types/components/primitives/au-icon/core-icons.d.ts +9 -0
- package/dist/types/components/primitives/au-icon/icon-loader.d.ts +8 -0
- package/dist/types/components/primitives/au-icon/index.d.ts +3 -0
- package/dist/types/components.d.ts +4419 -0
- package/dist/types/foundations/constants/constants.generated.d.mts +136 -0
- package/dist/types/foundations/constants/index.d.ts +3 -0
- package/dist/types/foundations/constants/resolve-size.d.ts +5 -0
- package/dist/types/foundations/icons/autoload.d.ts +9 -0
- package/dist/types/foundations/icons/icon-autoload-hook.d.ts +14 -0
- package/dist/types/foundations/icons/icon-registry.d.ts +11 -0
- package/dist/types/foundations/icons/icon-sizes.d.ts +8 -0
- package/dist/types/foundations/icons/icon-slug.d.ts +6 -0
- package/dist/types/foundations/icons/icon.constants.d.ts +14 -0
- package/dist/types/foundations/icons/icon.constants.generated.d.ts +2281 -0
- package/dist/types/foundations/icons/icon.types.d.ts +21 -0
- package/dist/types/foundations/icons/index.d.ts +5 -0
- package/dist/types/foundations/icons/mdi-map.d.ts +92 -0
- package/dist/types/foundations/icons/register-lucide-icons.d.ts +14 -0
- package/dist/types/foundations/themes/theme.d.ts +68 -0
- package/dist/types/foundations/tokens/index.d.ts +4 -0
- package/dist/types/foundations/tokens/tokens.generated.d.mts +199 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/integrations/basics/index.d.ts +2 -0
- package/dist/types/integrations/basics/is-plain-object.d.ts +1 -0
- package/dist/types/integrations/flux/index.d.ts +2 -0
- package/dist/types/integrations/flux/loader.d.ts +21 -0
- package/dist/types/integrations/flux/provide.d.ts +12 -0
- package/dist/types/integrations/flux/registry.d.ts +25 -0
- package/dist/types/shared/anchored/anchor-position.d.ts +43 -0
- package/dist/types/shared/anchored/js-positioning.d.ts +36 -0
- package/dist/types/shared/anchored/popover-support.d.ts +15 -0
- package/dist/types/shared/clipboard/clipboard.d.ts +13 -0
- package/dist/types/shared/clipboard/copy-procedure.d.ts +17 -0
- package/dist/types/shared/clipboard/copy-types.d.ts +33 -0
- package/dist/types/shared/focus/deep-active-element.d.ts +2 -0
- package/dist/types/shared/focus/index.d.ts +1 -0
- package/dist/types/shared/form-control/attributes.d.ts +11 -0
- package/dist/types/shared/form-control/checkable.d.ts +5 -0
- package/dist/types/shared/form-control/control-id.d.ts +7 -0
- package/dist/types/shared/form-control/described-by.d.ts +2 -0
- package/dist/types/shared/form-control/form-control-controller.d.ts +40 -0
- package/dist/types/shared/form-control/group-validity.d.ts +5 -0
- package/dist/types/shared/form-control/host-events.d.ts +13 -0
- package/dist/types/shared/form-control/index.d.ts +11 -0
- package/dist/types/shared/form-control/initial-value.d.ts +5 -0
- package/dist/types/shared/form-control/restore.d.ts +4 -0
- package/dist/types/shared/form-control/validation-message.d.ts +11 -0
- package/dist/types/shared/live-announcer/announce-queue.d.ts +51 -0
- package/dist/types/shared/live-announcer/announce-timing.d.ts +12 -0
- package/dist/types/shared/live-announcer/index.d.ts +2 -0
- package/dist/types/shared/live-announcer/live-announcer.d.ts +31 -0
- package/dist/types/shared/live-announcer/public.d.ts +7 -0
- package/dist/types/shared/modal-placement.d.ts +14 -0
- package/dist/types/shared/modal-target.d.ts +22 -0
- package/dist/types/shared/navigation/index.d.ts +4 -0
- package/dist/types/shared/navigation/link-state.d.ts +34 -0
- package/dist/types/shared/navigation/navigation.d.ts +28 -0
- package/dist/types/shared/observers/index.d.ts +42 -0
- package/dist/types/shared/roving-focus/index.d.ts +3 -0
- package/dist/types/shared/roving-focus/item-update.d.ts +8 -0
- package/dist/types/shared/roving-focus/roving.d.ts +22 -0
- package/dist/types/shared/warn-once.d.ts +5 -0
- package/dist/types/stencil-public-runtime.d.ts +1879 -0
- package/dist/types/vue.d.ts +68 -0
- package/dist/utilities/base.css +3160 -0
- package/dist/utilities/responsive.css +11165 -0
- package/dist/utilities.css +14326 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +493 -4
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure positioning for overlays when CSS anchor positioning is not available (spec C14). It places
|
|
3
|
+
* a box next to an anchor rectangle on one of eight placements, flips to the opposite side when
|
|
4
|
+
* the preferred side does not fit, and shifts along the cross axis to stay inside the viewport.
|
|
5
|
+
* It implements the same geometry as the CSS mode (`position-area`), so both modes agree.
|
|
6
|
+
*/
|
|
7
|
+
/** The smallest distance kept between the box and the viewport edge, in pixels. */
|
|
8
|
+
export const VIEWPORT_GAP = 8;
|
|
9
|
+
const OPPOSITE_SIDE = {
|
|
10
|
+
top: 'bottom',
|
|
11
|
+
bottom: 'top',
|
|
12
|
+
start: 'end',
|
|
13
|
+
end: 'start',
|
|
14
|
+
};
|
|
15
|
+
const split = (placement) => {
|
|
16
|
+
const [side, align] = placement.split('-');
|
|
17
|
+
return { side, align: align ?? 'center' };
|
|
18
|
+
};
|
|
19
|
+
const join = (side, align) => (align === 'center' ? side : `${side}-${align}`);
|
|
20
|
+
const clamp = (value, min, max) => Math.max(min, Math.min(value, Math.max(min, max)));
|
|
21
|
+
/** Room on a side of the anchor, inside the viewport gap. */
|
|
22
|
+
function room(input, side) {
|
|
23
|
+
const { anchor, viewport, direction } = input;
|
|
24
|
+
const physical = physicalSide(side, direction);
|
|
25
|
+
switch (physical) {
|
|
26
|
+
case 'top':
|
|
27
|
+
return anchor.top - VIEWPORT_GAP;
|
|
28
|
+
case 'bottom':
|
|
29
|
+
return viewport.height - (anchor.top + anchor.height) - VIEWPORT_GAP;
|
|
30
|
+
case 'left':
|
|
31
|
+
return anchor.left - VIEWPORT_GAP;
|
|
32
|
+
default:
|
|
33
|
+
return viewport.width - (anchor.left + anchor.width) - VIEWPORT_GAP;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function physicalSide(side, direction) {
|
|
37
|
+
if (side === 'top' || side === 'bottom')
|
|
38
|
+
return side;
|
|
39
|
+
const startIsLeft = direction === 'ltr';
|
|
40
|
+
if (side === 'start')
|
|
41
|
+
return startIsLeft ? 'left' : 'right';
|
|
42
|
+
return startIsLeft ? 'right' : 'left';
|
|
43
|
+
}
|
|
44
|
+
const needed = (input, side) => (side === 'top' || side === 'bottom' ? input.floating.height : input.floating.width) +
|
|
45
|
+
input.offset;
|
|
46
|
+
/** The unclamped position of the box for one placement. */
|
|
47
|
+
function place(input, placement) {
|
|
48
|
+
const { anchor, floating, offset, direction } = input;
|
|
49
|
+
const { side, align } = split(placement);
|
|
50
|
+
const physical = physicalSide(side, direction);
|
|
51
|
+
const rtl = direction === 'rtl';
|
|
52
|
+
if (physical === 'top' || physical === 'bottom') {
|
|
53
|
+
const top = physical === 'top'
|
|
54
|
+
? anchor.top - offset - floating.height
|
|
55
|
+
: anchor.top + anchor.height + offset;
|
|
56
|
+
// Inline alignment: `start` hugs the inline-start edge of the anchor.
|
|
57
|
+
const alignLeft = align === 'start' ? !rtl : align === 'end' ? rtl : null;
|
|
58
|
+
let left;
|
|
59
|
+
if (alignLeft === null)
|
|
60
|
+
left = anchor.left + anchor.width / 2 - floating.width / 2;
|
|
61
|
+
else if (alignLeft)
|
|
62
|
+
left = anchor.left;
|
|
63
|
+
else
|
|
64
|
+
left = anchor.left + anchor.width - floating.width;
|
|
65
|
+
return { top, left };
|
|
66
|
+
}
|
|
67
|
+
const left = physical === 'left'
|
|
68
|
+
? anchor.left - offset - floating.width
|
|
69
|
+
: anchor.left + anchor.width + offset;
|
|
70
|
+
return { top: anchor.top + anchor.height / 2 - floating.height / 2, left };
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Compute the top-left corner of a floating box.
|
|
74
|
+
*
|
|
75
|
+
* It flips to the opposite side when the preferred side does not fit and the opposite side has more
|
|
76
|
+
* room (when neither fits, the side with more room is used). It then shifts along the cross axis so
|
|
77
|
+
* that the box stays at least `VIEWPORT_GAP` inside the viewport.
|
|
78
|
+
*/
|
|
79
|
+
export function computeAnchorPosition(input) {
|
|
80
|
+
const { side, align } = split(input.placement);
|
|
81
|
+
let used = side;
|
|
82
|
+
if (room(input, side) < needed(input, side)) {
|
|
83
|
+
const opposite = OPPOSITE_SIDE[side];
|
|
84
|
+
if (room(input, opposite) > room(input, side))
|
|
85
|
+
used = opposite;
|
|
86
|
+
}
|
|
87
|
+
const placement = join(used, align);
|
|
88
|
+
const raw = place(input, placement);
|
|
89
|
+
const { viewport, floating } = input;
|
|
90
|
+
const vertical = used === 'top' || used === 'bottom';
|
|
91
|
+
return {
|
|
92
|
+
// Only the cross axis shifts: the gap to the anchor on the main axis is never given up.
|
|
93
|
+
top: vertical
|
|
94
|
+
? raw.top
|
|
95
|
+
: clamp(raw.top, VIEWPORT_GAP, viewport.height - VIEWPORT_GAP - floating.height),
|
|
96
|
+
left: vertical
|
|
97
|
+
? clamp(raw.left, VIEWPORT_GAP, viewport.width - VIEWPORT_GAP - floating.width)
|
|
98
|
+
: raw.left,
|
|
99
|
+
placement,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { computeAnchorPosition, } from "./anchor-position.js";
|
|
2
|
+
const TOP = '--_au-top';
|
|
3
|
+
const LEFT = '--_au-left';
|
|
4
|
+
const SCALE = '--_au-offset-scale';
|
|
5
|
+
/** Resolve a CSS length (rem, em, calc, var) to pixels with the browser, through a computed length. */
|
|
6
|
+
export function resolveLengthPx(host, value) {
|
|
7
|
+
const view = host.ownerDocument.defaultView;
|
|
8
|
+
if (!view)
|
|
9
|
+
return 0;
|
|
10
|
+
const previous = host.style.outlineOffset;
|
|
11
|
+
host.style.outlineOffset = value;
|
|
12
|
+
const resolved = Number.parseFloat(view.getComputedStyle(host).outlineOffset);
|
|
13
|
+
host.style.outlineOffset = previous;
|
|
14
|
+
return Number.isFinite(resolved) ? resolved : 0;
|
|
15
|
+
}
|
|
16
|
+
export class JsPositioner {
|
|
17
|
+
host;
|
|
18
|
+
options;
|
|
19
|
+
source;
|
|
20
|
+
running = false;
|
|
21
|
+
frame;
|
|
22
|
+
resizeObserver;
|
|
23
|
+
constructor(host, options) {
|
|
24
|
+
this.host = host;
|
|
25
|
+
this.options = options;
|
|
26
|
+
}
|
|
27
|
+
/** Start positioning next to `source`, or centered in the viewport when there is none. */
|
|
28
|
+
start(source) {
|
|
29
|
+
this.source = source;
|
|
30
|
+
const view = this.host.ownerDocument.defaultView;
|
|
31
|
+
if (!view)
|
|
32
|
+
return;
|
|
33
|
+
if (!this.running) {
|
|
34
|
+
this.running = true;
|
|
35
|
+
view.addEventListener('scroll', this.schedule, { capture: true, passive: true });
|
|
36
|
+
view.addEventListener('resize', this.schedule);
|
|
37
|
+
// The box can change size after it is shown (a web font arrives, the content changes).
|
|
38
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
39
|
+
this.resizeObserver = new ResizeObserver(this.schedule);
|
|
40
|
+
this.resizeObserver.observe(this.host);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
this.update();
|
|
44
|
+
}
|
|
45
|
+
/** Stop, remove the listeners and the inline properties. */
|
|
46
|
+
stop() {
|
|
47
|
+
const view = this.host.ownerDocument.defaultView;
|
|
48
|
+
if (this.running && view) {
|
|
49
|
+
view.removeEventListener('scroll', this.schedule, { capture: true });
|
|
50
|
+
view.removeEventListener('resize', this.schedule);
|
|
51
|
+
}
|
|
52
|
+
this.resizeObserver?.disconnect();
|
|
53
|
+
this.resizeObserver = undefined;
|
|
54
|
+
if (this.frame !== undefined && view)
|
|
55
|
+
view.cancelAnimationFrame(this.frame);
|
|
56
|
+
this.frame = undefined;
|
|
57
|
+
this.running = false;
|
|
58
|
+
this.source = undefined;
|
|
59
|
+
for (const property of [TOP, LEFT, SCALE])
|
|
60
|
+
this.host.style.removeProperty(property);
|
|
61
|
+
}
|
|
62
|
+
schedule = () => {
|
|
63
|
+
const view = this.host.ownerDocument.defaultView;
|
|
64
|
+
if (!view || this.frame !== undefined)
|
|
65
|
+
return;
|
|
66
|
+
this.frame = view.requestAnimationFrame(() => {
|
|
67
|
+
this.frame = undefined;
|
|
68
|
+
if (this.running)
|
|
69
|
+
this.update();
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
update() {
|
|
73
|
+
const { host } = this;
|
|
74
|
+
const doc = host.ownerDocument;
|
|
75
|
+
const view = doc.defaultView;
|
|
76
|
+
if (!view)
|
|
77
|
+
return;
|
|
78
|
+
// Switch to script positioning before measuring. While `position-area` still applies, the box
|
|
79
|
+
// is laid out inside the anchor's area, which can wrap its text, so its size would be wrong.
|
|
80
|
+
if (!host.style.getPropertyValue(TOP)) {
|
|
81
|
+
host.style.setProperty(TOP, '0px');
|
|
82
|
+
host.style.setProperty(LEFT, '0px');
|
|
83
|
+
host.style.setProperty(SCALE, '0');
|
|
84
|
+
}
|
|
85
|
+
const floating = host.getBoundingClientRect();
|
|
86
|
+
const viewport = {
|
|
87
|
+
width: doc.documentElement.clientWidth,
|
|
88
|
+
height: doc.documentElement.clientHeight,
|
|
89
|
+
};
|
|
90
|
+
let top;
|
|
91
|
+
let left;
|
|
92
|
+
if (this.source && this.source.isConnected) {
|
|
93
|
+
const rect = this.source.getBoundingClientRect();
|
|
94
|
+
const offset = resolveLengthPx(host, `var(${this.options.offsetProperty}, ${this.options.defaultOffset})`);
|
|
95
|
+
const direction = view.getComputedStyle(host).direction === 'rtl' ? 'rtl' : 'ltr';
|
|
96
|
+
({ top, left } = computeAnchorPosition({
|
|
97
|
+
anchor: { top: rect.top, left: rect.left, width: rect.width, height: rect.height },
|
|
98
|
+
floating: { width: floating.width, height: floating.height },
|
|
99
|
+
viewport,
|
|
100
|
+
placement: this.options.placement(),
|
|
101
|
+
offset,
|
|
102
|
+
direction,
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
top = Math.max(0, (viewport.height - floating.height) / 2);
|
|
107
|
+
left = Math.max(0, (viewport.width - floating.width) / 2);
|
|
108
|
+
}
|
|
109
|
+
host.style.setProperty(TOP, `${top}px`);
|
|
110
|
+
host.style.setProperty(LEFT, `${left}px`);
|
|
111
|
+
host.style.setProperty(SCALE, '0');
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feature detection for the overlay components (spec C2). It is the single place that decides
|
|
3
|
+
* which platform features exist, so the browser tests that stub a feature (and the component specs
|
|
4
|
+
* that stub the test window) aim at one spot. Support is detected, never sniffed from a user agent.
|
|
5
|
+
*/
|
|
6
|
+
const cache = new WeakMap();
|
|
7
|
+
function detect(doc) {
|
|
8
|
+
const view = doc.defaultView;
|
|
9
|
+
const popover = typeof view?.HTMLElement?.prototype?.showPopover === 'function';
|
|
10
|
+
let hint = false;
|
|
11
|
+
if (popover) {
|
|
12
|
+
const probe = doc.createElement('div');
|
|
13
|
+
probe.popover = 'hint';
|
|
14
|
+
hint = probe.popover === 'hint';
|
|
15
|
+
}
|
|
16
|
+
const supports = view?.CSS?.supports;
|
|
17
|
+
const anchor = typeof supports === 'function' &&
|
|
18
|
+
supports.call(view?.CSS, 'anchor-name: --a') &&
|
|
19
|
+
supports.call(view?.CSS, 'position-area: top');
|
|
20
|
+
return { popover, hint, anchor };
|
|
21
|
+
}
|
|
22
|
+
/** The platform support of a document. Computed once per document, then cached. */
|
|
23
|
+
export function getPopoverSupport(doc = document) {
|
|
24
|
+
let support = cache.get(doc);
|
|
25
|
+
if (!support) {
|
|
26
|
+
support = detect(doc);
|
|
27
|
+
cache.set(doc, support);
|
|
28
|
+
}
|
|
29
|
+
return support;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defaultClipboardEnvironment, runCopy } from "./copy-procedure.js";
|
|
2
|
+
export { COPY_EVENT, COPY_FAILURE_REASON, COPY_METHOD } from './copy-types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Copy `text` to the clipboard. It never rejects and never throws: the promise always resolves to a
|
|
5
|
+
* `CopyResult`. Call it from a user gesture (a click handler), because browsers require one.
|
|
6
|
+
*
|
|
7
|
+
* It uses `navigator.clipboard.writeText` when it can, and falls back to `execCommand('copy')` on a
|
|
8
|
+
* hidden textarea when the async API is missing or was rejected. It dispatches `au-copy` once, on
|
|
9
|
+
* `options.target` when that is a connected element, else on `document`. Whitespace is copied
|
|
10
|
+
* untrimmed. It announces nothing: the caller announces its own localized text.
|
|
11
|
+
*/
|
|
12
|
+
export function copyText(text, options) {
|
|
13
|
+
return runCopy(defaultClipboardEnvironment(), text, options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { appendPlaced, resolvePlacement } from "../modal-placement.js";
|
|
2
|
+
import { deepActiveElement } from "../modal-target.js";
|
|
3
|
+
import { COPY_EVENT, COPY_FAILURE_REASON, COPY_METHOD } from "./copy-types.js";
|
|
4
|
+
/** The real environment, read lazily so that importing the module touches no global. */
|
|
5
|
+
export function defaultClipboardEnvironment() {
|
|
6
|
+
const scope = globalThis;
|
|
7
|
+
let clipboard;
|
|
8
|
+
try {
|
|
9
|
+
clipboard = scope.navigator?.clipboard;
|
|
10
|
+
}
|
|
11
|
+
catch {
|
|
12
|
+
clipboard = undefined;
|
|
13
|
+
}
|
|
14
|
+
return { document: scope.document, clipboard, isSecureContext: scope.isSecureContext };
|
|
15
|
+
}
|
|
16
|
+
const failure = (reason, error) => error === undefined ? { ok: false, reason } : { ok: false, reason, error };
|
|
17
|
+
const nameOf = (error) => typeof error === 'object' && error !== null ? error.name : undefined;
|
|
18
|
+
const isDenial = (error) => nameOf(error) === 'NotAllowedError' || nameOf(error) === 'SecurityError';
|
|
19
|
+
/** Dispatches `au-copy` once, on a connected target or the document. It never throws. */
|
|
20
|
+
function dispatchResult(doc, target, result) {
|
|
21
|
+
try {
|
|
22
|
+
const Custom = doc.createEvent('CustomEvent').constructor;
|
|
23
|
+
const event = new Custom(COPY_EVENT, {
|
|
24
|
+
bubbles: true,
|
|
25
|
+
composed: true,
|
|
26
|
+
cancelable: false,
|
|
27
|
+
detail: result,
|
|
28
|
+
});
|
|
29
|
+
(target?.isConnected ? target : doc).dispatchEvent(event);
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
// A failing listener or an unusual document must not turn a result into a throw.
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function saveState(doc) {
|
|
36
|
+
const active = deepActiveElement(doc);
|
|
37
|
+
let input;
|
|
38
|
+
const tag = active?.tagName.toLowerCase();
|
|
39
|
+
if (tag === 'input' || tag === 'textarea') {
|
|
40
|
+
try {
|
|
41
|
+
const field = active;
|
|
42
|
+
if (field.selectionStart !== null && field.selectionEnd !== null) {
|
|
43
|
+
input = {
|
|
44
|
+
start: field.selectionStart,
|
|
45
|
+
end: field.selectionEnd,
|
|
46
|
+
direction: (field.selectionDirection ?? 'none'),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
catch {
|
|
51
|
+
// Some input types throw when their selection is read.
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const ranges = [];
|
|
55
|
+
try {
|
|
56
|
+
const selection = doc.getSelection?.();
|
|
57
|
+
for (let index = 0; selection && index < selection.rangeCount; index += 1) {
|
|
58
|
+
ranges.push(selection.getRangeAt(index).cloneRange());
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
// A document without selection support restores nothing.
|
|
63
|
+
}
|
|
64
|
+
return { active, input, ranges };
|
|
65
|
+
}
|
|
66
|
+
function restoreState(doc, saved) {
|
|
67
|
+
try {
|
|
68
|
+
// The document ranges go first: in Chromium, `removeAllRanges()` and `addRange()` also reset the
|
|
69
|
+
// selection of a focused `input` or `textarea`, so doing them last would lose it (AC-6.F12).
|
|
70
|
+
const selection = doc.getSelection?.();
|
|
71
|
+
if (selection) {
|
|
72
|
+
selection.removeAllRanges();
|
|
73
|
+
for (const range of saved.ranges)
|
|
74
|
+
selection.addRange(range);
|
|
75
|
+
}
|
|
76
|
+
const { active } = saved;
|
|
77
|
+
if (active && active.isConnected && active !== doc.body) {
|
|
78
|
+
active.focus({ preventScroll: true });
|
|
79
|
+
if (saved.input) {
|
|
80
|
+
try {
|
|
81
|
+
active.setSelectionRange(saved.input.start, saved.input.end, saved.input.direction);
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
// The element no longer accepts a selection.
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
doc.activeElement?.blur?.();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
// A failed restore never changes the result.
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function createTextarea(doc, text) {
|
|
97
|
+
const textarea = doc.createElement('textarea');
|
|
98
|
+
textarea.value = text;
|
|
99
|
+
textarea.setAttribute('readonly', '');
|
|
100
|
+
textarea.setAttribute('aria-hidden', 'true');
|
|
101
|
+
textarea.setAttribute('tabindex', '-1');
|
|
102
|
+
textarea.style.cssText =
|
|
103
|
+
'position: fixed; inset-block-start: 0; inset-inline-start: 0; inline-size: 1px; block-size: 1px; padding: 0; border: 0; margin: 0; opacity: 0; pointer-events: none; font-size: 12pt';
|
|
104
|
+
return textarea;
|
|
105
|
+
}
|
|
106
|
+
/** The `execCommand('copy')` fallback (spec section 2.3, step 5). It never throws. */
|
|
107
|
+
function fallbackCopy(doc, text) {
|
|
108
|
+
if (typeof doc.execCommand !== 'function' || !doc.body)
|
|
109
|
+
return failure('unsupported');
|
|
110
|
+
const saved = saveState(doc);
|
|
111
|
+
const textarea = createTextarea(doc, text);
|
|
112
|
+
try {
|
|
113
|
+
const placement = resolvePlacement(doc);
|
|
114
|
+
if (!placement)
|
|
115
|
+
return failure('unsupported');
|
|
116
|
+
appendPlaced(doc, textarea, placement, 'clipboard');
|
|
117
|
+
textarea.focus({ preventScroll: true });
|
|
118
|
+
textarea.select();
|
|
119
|
+
textarea.setSelectionRange(0, text.length);
|
|
120
|
+
// An inert textarea (under a modal that cannot hold it) takes no focus, and `execCommand` would
|
|
121
|
+
// report success without copying anything (spike FS7).
|
|
122
|
+
if (deepActiveElement(doc) !== textarea)
|
|
123
|
+
return failure('failed');
|
|
124
|
+
try {
|
|
125
|
+
return doc.execCommand('copy') ? { ok: true } : failure('denied');
|
|
126
|
+
}
|
|
127
|
+
catch (error) {
|
|
128
|
+
return failure(isDenial(error) ? 'denied' : 'failed', error);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
catch (error) {
|
|
132
|
+
return failure('failed', error);
|
|
133
|
+
}
|
|
134
|
+
finally {
|
|
135
|
+
textarea.remove();
|
|
136
|
+
restoreState(doc, saved);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* The copy procedure (spec section 2.3) with an injectable environment. It never rejects and never
|
|
141
|
+
* throws, and it calls `writeText` synchronously so that the caller's user activation is still
|
|
142
|
+
* present (F4). The result is dispatched as `au-copy` before the promise resolves.
|
|
143
|
+
*/
|
|
144
|
+
export function runCopy(env, text, options = {}) {
|
|
145
|
+
const doc = env.document;
|
|
146
|
+
const finish = (result) => {
|
|
147
|
+
if (doc)
|
|
148
|
+
dispatchResult(doc, options.target, result);
|
|
149
|
+
return result;
|
|
150
|
+
};
|
|
151
|
+
const none = (reason) => Promise.resolve(finish({ ok: false, method: COPY_METHOD.none, reason }));
|
|
152
|
+
if (typeof text !== 'string')
|
|
153
|
+
return none(COPY_FAILURE_REASON.invalid);
|
|
154
|
+
if (text === '')
|
|
155
|
+
return none(COPY_FAILURE_REASON.empty);
|
|
156
|
+
if (!doc)
|
|
157
|
+
return none(COPY_FAILURE_REASON.noDocument);
|
|
158
|
+
const { clipboard } = env;
|
|
159
|
+
if (clipboard && typeof clipboard.writeText === 'function' && env.isSecureContext !== false) {
|
|
160
|
+
let attempt;
|
|
161
|
+
try {
|
|
162
|
+
attempt = Promise.resolve(clipboard.writeText(text));
|
|
163
|
+
}
|
|
164
|
+
catch (error) {
|
|
165
|
+
attempt = Promise.reject(error);
|
|
166
|
+
}
|
|
167
|
+
return attempt.then(() => finish({ ok: true, method: COPY_METHOD.clipboardApi }), (error) => {
|
|
168
|
+
const outcome = fallbackCopy(doc, text);
|
|
169
|
+
if (outcome.ok)
|
|
170
|
+
return finish({ ok: true, method: COPY_METHOD.execCommand });
|
|
171
|
+
return finish({
|
|
172
|
+
ok: false,
|
|
173
|
+
method: COPY_METHOD.execCommand,
|
|
174
|
+
reason: nameOf(error) === 'NotAllowedError' ? 'denied' : 'failed',
|
|
175
|
+
error,
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
const outcome = fallbackCopy(doc, text);
|
|
180
|
+
if (outcome.ok)
|
|
181
|
+
return Promise.resolve(finish({ ok: true, method: COPY_METHOD.execCommand }));
|
|
182
|
+
const reason = outcome.reason;
|
|
183
|
+
const result = reason === COPY_FAILURE_REASON.unsupported
|
|
184
|
+
? { ok: false, method: COPY_METHOD.none, reason }
|
|
185
|
+
: outcome.error === undefined
|
|
186
|
+
? { ok: false, method: COPY_METHOD.execCommand, reason }
|
|
187
|
+
: { ok: false, method: COPY_METHOD.execCommand, reason, error: outcome.error };
|
|
188
|
+
return Promise.resolve(finish(result));
|
|
189
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Constants and types of the clipboard service. Public through `clipboard.ts`. */
|
|
2
|
+
export const COPY_EVENT = 'au-copy';
|
|
3
|
+
export const COPY_METHOD = {
|
|
4
|
+
clipboardApi: 'clipboard-api',
|
|
5
|
+
execCommand: 'exec-command',
|
|
6
|
+
none: 'none',
|
|
7
|
+
};
|
|
8
|
+
export const COPY_FAILURE_REASON = {
|
|
9
|
+
invalid: 'invalid',
|
|
10
|
+
empty: 'empty',
|
|
11
|
+
noDocument: 'no-document',
|
|
12
|
+
denied: 'denied',
|
|
13
|
+
unsupported: 'unsupported',
|
|
14
|
+
failed: 'failed',
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { deepActiveElement } from './deep-active-element.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Removes only `undefined` values from a native-attribute object before it is
|
|
3
|
+
* spread into Stencil JSX. False, zero, empty strings, and null remain intact.
|
|
4
|
+
*/
|
|
5
|
+
export function omitUndefinedAttributes(attributes) {
|
|
6
|
+
const defined = {};
|
|
7
|
+
for (const key of Object.keys(attributes)) {
|
|
8
|
+
const value = attributes[key];
|
|
9
|
+
if (value !== undefined)
|
|
10
|
+
defined[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return defined;
|
|
13
|
+
}
|
|
14
|
+
/** Keeps the enumerated HTML spellcheck attribute explicit for both boolean values. */
|
|
15
|
+
export function syncSpellcheckAttribute(element, value) {
|
|
16
|
+
if (!element)
|
|
17
|
+
return;
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
element.removeAttribute('spellcheck');
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
// Stencil treats false as a removable boolean JSX attribute, but spellcheck
|
|
23
|
+
// is an enumerated HTML attribute and requires the literal string "false".
|
|
24
|
+
element.setAttribute('spellcheck', value ? 'true' : 'false');
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const sequences = new Map();
|
|
2
|
+
/** Creates a document-unique control ID such as `aurora-input-1`, counted per prefix. */
|
|
3
|
+
export function createControlId(prefix) {
|
|
4
|
+
const next = (sequences.get(prefix) ?? 0) + 1;
|
|
5
|
+
sequences.set(prefix, next);
|
|
6
|
+
return `aurora-${prefix}-${next}`;
|
|
7
|
+
}
|
|
8
|
+
/** IDs of the hint and error elements that belong to a control ID. */
|
|
9
|
+
export function controlDescriptionIds(id) {
|
|
10
|
+
return { hint: `${id}-hint`, error: `${id}-error` };
|
|
11
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { resolveValidationMessage } from "./validation-message.js";
|
|
2
|
+
/**
|
|
3
|
+
* Pushes a form control's value and validity into ElementInternals. It holds no
|
|
4
|
+
* reactive state and never calls back into the component; the component owns
|
|
5
|
+
* its `@State` and applies the returned result.
|
|
6
|
+
*/
|
|
7
|
+
export class FormControlController {
|
|
8
|
+
getInternals;
|
|
9
|
+
constructor(getInternals) {
|
|
10
|
+
this.getInternals = getInternals;
|
|
11
|
+
}
|
|
12
|
+
sync(snapshot) {
|
|
13
|
+
const internals = this.getInternals();
|
|
14
|
+
if (!internals)
|
|
15
|
+
return { nativeInvalid: undefined };
|
|
16
|
+
const value = snapshot.disabled ? null : snapshot.value;
|
|
17
|
+
if (snapshot.state !== undefined)
|
|
18
|
+
internals.setFormValue(value, snapshot.state);
|
|
19
|
+
else
|
|
20
|
+
internals.setFormValue(value);
|
|
21
|
+
const { target } = snapshot;
|
|
22
|
+
if (typeof internals.setValidity !== 'function')
|
|
23
|
+
return { nativeInvalid: undefined };
|
|
24
|
+
if (!target) {
|
|
25
|
+
return snapshot.computed
|
|
26
|
+
? this.syncComputed(internals, snapshot, snapshot.computed)
|
|
27
|
+
: { nativeInvalid: undefined };
|
|
28
|
+
}
|
|
29
|
+
// Disabled and barred (read-only) controls do not participate in constraint validation.
|
|
30
|
+
if (snapshot.disabled || snapshot.barred) {
|
|
31
|
+
internals.setValidity({});
|
|
32
|
+
return { nativeInvalid: false };
|
|
33
|
+
}
|
|
34
|
+
const { validity } = target;
|
|
35
|
+
if (snapshot.customInvalid) {
|
|
36
|
+
internals.setValidity({
|
|
37
|
+
badInput: validity.badInput,
|
|
38
|
+
customError: true,
|
|
39
|
+
patternMismatch: validity.patternMismatch,
|
|
40
|
+
rangeOverflow: validity.rangeOverflow,
|
|
41
|
+
rangeUnderflow: validity.rangeUnderflow,
|
|
42
|
+
stepMismatch: validity.stepMismatch,
|
|
43
|
+
tooLong: validity.tooLong,
|
|
44
|
+
tooShort: validity.tooShort,
|
|
45
|
+
typeMismatch: validity.typeMismatch,
|
|
46
|
+
valueMissing: validity.valueMissing,
|
|
47
|
+
}, resolveValidationMessage({
|
|
48
|
+
...(snapshot.error !== undefined && { error: snapshot.error }),
|
|
49
|
+
nativeMessage: target.validationMessage,
|
|
50
|
+
...(snapshot.invalidMessage !== undefined && {
|
|
51
|
+
invalidMessage: snapshot.invalidMessage,
|
|
52
|
+
}),
|
|
53
|
+
}), target);
|
|
54
|
+
return { nativeInvalid: false };
|
|
55
|
+
}
|
|
56
|
+
if (validity.valid) {
|
|
57
|
+
internals.setValidity({});
|
|
58
|
+
return { nativeInvalid: false };
|
|
59
|
+
}
|
|
60
|
+
internals.setValidity(validity, target.validationMessage, target);
|
|
61
|
+
return { nativeInvalid: true };
|
|
62
|
+
}
|
|
63
|
+
/** Validity for controls without a native constraint target (see `FormControlSnapshot.computed`). */
|
|
64
|
+
syncComputed(internals, snapshot, { flags, anchor }) {
|
|
65
|
+
if (snapshot.disabled || snapshot.barred) {
|
|
66
|
+
internals.setValidity({});
|
|
67
|
+
return { nativeInvalid: false };
|
|
68
|
+
}
|
|
69
|
+
const anchorArguments = anchor ? [anchor] : [];
|
|
70
|
+
if (snapshot.customInvalid) {
|
|
71
|
+
internals.setValidity({ ...flags, customError: true }, resolveValidationMessage({
|
|
72
|
+
...(snapshot.error !== undefined && { error: snapshot.error }),
|
|
73
|
+
...(snapshot.invalidMessage !== undefined && {
|
|
74
|
+
invalidMessage: snapshot.invalidMessage,
|
|
75
|
+
}),
|
|
76
|
+
}), ...anchorArguments);
|
|
77
|
+
return { nativeInvalid: false };
|
|
78
|
+
}
|
|
79
|
+
if (!Object.values(flags).some(Boolean)) {
|
|
80
|
+
internals.setValidity({});
|
|
81
|
+
return { nativeInvalid: false };
|
|
82
|
+
}
|
|
83
|
+
internals.setValidity(flags, resolveValidationMessage({
|
|
84
|
+
...(snapshot.invalidMessage !== undefined && { invalidMessage: snapshot.invalidMessage }),
|
|
85
|
+
}), ...anchorArguments);
|
|
86
|
+
return { nativeInvalid: true };
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validity flags for a control that has no native constraint target and whose
|
|
3
|
+
* only constraint is "a selection is required", such as a radio group.
|
|
4
|
+
*/
|
|
5
|
+
export function requiredSelectionFlags(required, hasValue) {
|
|
6
|
+
return { valueMissing: required && !hasValue };
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dispatches the composed, bubbling `change` event a form control forwards from
|
|
3
|
+
* its host. The constructor comes from the owning document rather than
|
|
4
|
+
* defaultView so the event stays in the same DOM realm as the host, including
|
|
5
|
+
* when the element is adopted into another document.
|
|
6
|
+
*/
|
|
7
|
+
export function dispatchHostChange(host) {
|
|
8
|
+
const EventConstructor = host.ownerDocument.createEvent('Event').constructor;
|
|
9
|
+
host.dispatchEvent(new EventConstructor('change', { bubbles: true, composed: true }));
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Dispatches the composed, bubbling `input` event for a form control that has
|
|
13
|
+
* no native control whose own `input` event could reach the host (for example a
|
|
14
|
+
* radio group). Uses the same document-derived constructor as `dispatchHostChange`.
|
|
15
|
+
*/
|
|
16
|
+
export function dispatchHostInput(host) {
|
|
17
|
+
const EventConstructor = host.ownerDocument.createEvent('Event').constructor;
|
|
18
|
+
host.dispatchEvent(new EventConstructor('input', { bubbles: true, composed: true }));
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { omitUndefinedAttributes, syncSpellcheckAttribute } from './attributes.js';
|
|
2
|
+
export { checkableFormValue } from './checkable.js';
|
|
3
|
+
export { controlDescriptionIds, createControlId } from './control-id.js';
|
|
4
|
+
export { joinIdRefs } from './described-by.js';
|
|
5
|
+
export { FormControlController } from './form-control-controller.js';
|
|
6
|
+
export { dispatchHostChange, dispatchHostInput } from './host-events.js';
|
|
7
|
+
export { requiredSelectionFlags } from './group-validity.js';
|
|
8
|
+
export { resolveInitialValue } from './initial-value.js';
|
|
9
|
+
export { restoredChecked, restoredText } from './restore.js';
|
|
10
|
+
export { DEFAULT_VALIDATION_MESSAGE, resolveValidationMessage } from './validation-message.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The value a text control starts with: `defaultValue` applies only when the
|
|
3
|
+
* host has no `value` attribute and `value` is still empty.
|
|
4
|
+
*/
|
|
5
|
+
export function resolveInitialValue(host, value, defaultValue) {
|
|
6
|
+
if (!host.hasAttribute('value') && !value && defaultValue !== undefined)
|
|
7
|
+
return defaultValue;
|
|
8
|
+
return value;
|
|
9
|
+
}
|