@astryx-vue/core 0.36.1 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-C4oB89RV.js → AlertDialog-DwITRN1M.js} +1 -1
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-CU12SF6s.js → AppShell-ClZ2Y8cu.js} +2 -2
  5. package/dist/AvatarGroup/index.d.ts +1 -1
  6. package/dist/Banner/index.d.ts +1 -1
  7. package/dist/BottomSheet/index.d.ts +1 -1
  8. package/dist/BottomSheet/index.js +2 -2
  9. package/dist/{BottomSheet-DCLOhzZP.js → BottomSheet-CDxV1Rkx.js} +3 -3
  10. package/dist/BottomSheet-Cr6FacYP.js +1853 -0
  11. package/dist/Breadcrumbs/index.js +2 -2
  12. package/dist/{Breadcrumbs-BfjWIfgO.js → Breadcrumbs-DaxgM0-F.js} +1 -1
  13. package/dist/ButtonGroup/index.d.ts +1 -1
  14. package/dist/Calendar/index.d.ts +1 -1
  15. package/dist/Carousel/index.d.ts +1 -1
  16. package/dist/Chat/index.d.ts +1 -1
  17. package/dist/Chat/index.js +1 -1
  18. package/dist/{Chat-f9HzZe5y.js → Chat-BRtDKajd.js} +230 -12
  19. package/dist/CheckboxInput/index.d.ts +1 -1
  20. package/dist/CheckboxList/index.d.ts +1 -1
  21. package/dist/ClickableCard/index.d.ts +1 -1
  22. package/dist/Collapsible/index.js +1 -1
  23. package/dist/{Collapsible-Dxp-BWv-.js → Collapsible-DfVihLCR.js} +1 -1
  24. package/dist/CommandPalette/index.js +1 -1
  25. package/dist/{CommandPalette-PyPfsPLY.js → CommandPalette-CWaKVNGZ.js} +2 -1
  26. package/dist/ComplexSelector/index.js +1 -1
  27. package/dist/{ComplexSelector-B07QdP_p.js → ComplexSelector-D2QRdM57.js} +1 -1
  28. package/dist/ContextMenu/index.d.ts +1 -1
  29. package/dist/ContextMenu/index.js +2 -2
  30. package/dist/{ContextMenu-B6NH9NBS.js → ContextMenu-D-G53u7B.js} +4 -4
  31. package/dist/DateInput/index.d.ts +1 -1
  32. package/dist/DateInput/index.js +1 -1
  33. package/dist/{DateInput-TrPijW9a.js → DateInput-BHSp4fZS.js} +2 -2
  34. package/dist/DateRangeInput/index.d.ts +1 -1
  35. package/dist/DateRangeInput/index.js +1 -1
  36. package/dist/{DateRangeInput-bKPzsoHA.js → DateRangeInput-DP1QWK_6.js} +1 -1
  37. package/dist/DateTimeInput/index.d.ts +1 -1
  38. package/dist/DateTimeInput/index.js +1 -1
  39. package/dist/{DateTimeInput-5jZPqFu2.js → DateTimeInput-Bgx9lgWb.js} +3 -3
  40. package/dist/Dialog/index.d.ts +1 -1
  41. package/dist/Dialog/index.js +3 -3
  42. package/dist/{Dialog-CDAicnpK.js → Dialog-DCKT1dWC.js} +2 -1
  43. package/dist/{Dialog-dm_qZ9NI.js → Dialog-DRQrtKHT.js} +5 -82
  44. package/dist/{DialogHeader-CQfcOIfF.js → DialogHeader-C3Mc580J.js} +1 -1
  45. package/dist/Drawer/index.d.ts +1 -1
  46. package/dist/Drawer/index.js +1 -1
  47. package/dist/Drawer-CnFTUjln.js +422 -0
  48. package/dist/DropdownMenu/index.js +2 -2
  49. package/dist/{DropdownMenu-C-SLsVSO.js → DropdownMenu-DU_Rw88D.js} +4 -4
  50. package/dist/HoverCard/index.d.ts +1 -1
  51. package/dist/InfoTip/index.d.ts +1 -1
  52. package/dist/Layout/index.js +2 -2
  53. package/dist/{Layout-CpFgVnlQ.js → Layout-BDS2ZN6C.js} +1 -1
  54. package/dist/{LayoutPanel-Dhm0Hubb.js → LayoutPanel-D56PBM4I.js} +1 -1
  55. package/dist/Lightbox/index.js +1 -1
  56. package/dist/{Lightbox-BSzyDGkK.js → Lightbox-CnTXrgq6.js} +2 -2
  57. package/dist/Link/index.d.ts +1 -1
  58. package/dist/List/index.d.ts +1 -1
  59. package/dist/Markdown/index.d.ts +1 -1
  60. package/dist/MobileNav/index.js +1 -1
  61. package/dist/{MobileNavToggle-C1_IinAo.js → MobileNavToggle-CjlgmcSf.js} +2 -2
  62. package/dist/MoreMenu/index.d.ts +1 -1
  63. package/dist/MoreMenu/index.js +1 -1
  64. package/dist/{MoreMenu-DbYO8V7N.js → MoreMenu-CGTbwTyw.js} +1 -1
  65. package/dist/MultiSelector/index.d.ts +1 -1
  66. package/dist/MultiSelector/index.js +1 -1
  67. package/dist/{MultiSelector-CthCkW-w.js → MultiSelector-DUQMNBoZ.js} +1 -1
  68. package/dist/NavItem/index.d.ts +1 -1
  69. package/dist/NavMenu/index.js +2 -2
  70. package/dist/{NavMenu-g8ZVhLMG.js → NavMenu-BflnhBtX.js} +1 -1
  71. package/dist/{NavMenuItem-DJg9jfHm.js → NavMenuItem-CrFrczWe.js} +1 -1
  72. package/dist/NumberInput/index.d.ts +1 -1
  73. package/dist/NumberInput/index.js +1 -1
  74. package/dist/{NumberInput-BM52uE72.js → NumberInput-vWUcgJU8.js} +2 -0
  75. package/dist/OverflowList/index.d.ts +1 -1
  76. package/dist/OverflowList/index.js +1 -1
  77. package/dist/{OverflowList-nW6GCEsY.js → OverflowList-D9Ua6e3-.js} +1 -1
  78. package/dist/Overlay/index.d.ts +1 -1
  79. package/dist/Pagination/index.d.ts +1 -1
  80. package/dist/Pagination/index.js +1 -1
  81. package/dist/{Pagination-DFZivDZZ.js → Pagination-DBikmHyn.js} +3 -3
  82. package/dist/Popover/index.js +1 -1
  83. package/dist/{Popover-IvZGq1LC.js → Popover-CTCWhA_K.js} +3 -3
  84. package/dist/PowerSearch/index.d.ts +1 -1
  85. package/dist/PowerSearch/index.js +1 -1
  86. package/dist/{PowerSearch-CQdyB8_N.js → PowerSearch-CTNFHNnr.js} +10 -10
  87. package/dist/ProgressBar/index.d.ts +1 -1
  88. package/dist/Radio/index.d.ts +1 -1
  89. package/dist/RadioList/index.d.ts +1 -1
  90. package/dist/ScrollableArea/index.d.ts +1 -1
  91. package/dist/SelectableCard/index.d.ts +1 -1
  92. package/dist/Selector/index.d.ts +1 -1
  93. package/dist/Selector/index.js +1 -1
  94. package/dist/{Selector-icOfE3ja.js → Selector-BvxQXUYr.js} +1 -1
  95. package/dist/SideNav/index.d.ts +1 -1
  96. package/dist/SideNav/index.js +1 -1
  97. package/dist/{SideNav-ZZ5zCQz0.js → SideNav-D8jQrwtL.js} +1 -1
  98. package/dist/Stack/index.d.ts +1 -1
  99. package/dist/Stepper/index.d.ts +1 -1
  100. package/dist/Switch/index.d.ts +1 -1
  101. package/dist/TabList/index.d.ts +1 -1
  102. package/dist/TabList/index.js +1 -1
  103. package/dist/{TabList-C-HBxmkc.js → TabList-DjRutwar.js} +1 -1
  104. package/dist/Table/index.d.ts +1 -1
  105. package/dist/Table/index.js +1 -1
  106. package/dist/{Table-aMqVf_iH.js → Table-3GiSElIS.js} +8 -8
  107. package/dist/TextArea/index.d.ts +1 -1
  108. package/dist/TextArea/index.js +1 -1
  109. package/dist/{TextArea-YJtL9Fi6.js → TextArea-BtBC4IoD.js} +2 -0
  110. package/dist/TextInput/index.d.ts +1 -1
  111. package/dist/TextInput/index.js +1 -1
  112. package/dist/{TextInput-CuPxOApN.js → TextInput-cotkU2bC.js} +2 -0
  113. package/dist/{TimeField-DNxPI2cM.js → TimeField-BYuUKUNq.js} +1 -1
  114. package/dist/TimeInput/index.d.ts +1 -1
  115. package/dist/TimeInput/index.js +1 -1
  116. package/dist/{TimeInput-PJdyNX0T.js → TimeInput-Bqo_oHMl.js} +1 -1
  117. package/dist/Timer/index.d.ts +1 -1
  118. package/dist/Timestamp/index.d.ts +1 -1
  119. package/dist/Toast/index.js +1 -1
  120. package/dist/{Toast-W6aKxXlF.js → Toast-BSay0eZw.js} +14 -6
  121. package/dist/ToggleButton/index.d.ts +1 -1
  122. package/dist/Tokenizer/index.js +1 -1
  123. package/dist/{Tokenizer-CdyoUaoZ.js → Tokenizer-D-wBxbBE.js} +3 -3
  124. package/dist/Toolbar/index.d.ts +1 -1
  125. package/dist/Tooltip/index.d.ts +1 -1
  126. package/dist/TopNav/index.d.ts +1 -1
  127. package/dist/TopNav/index.js +1 -1
  128. package/dist/{TopNav-CxAm5bN5.js → TopNav-D7jH9iwk.js} +2 -2
  129. package/dist/TreeList/index.d.ts +1 -1
  130. package/dist/{accessibleName-CN1vKvS_.js → accessibleName-CHrrgpAy.js} +1 -1
  131. package/dist/composables/index.js +4 -4
  132. package/dist/{focusLeaving-DMkbxFkF.js → focusLeaving-BbZ69DYV.js} +1 -1
  133. package/dist/{focusReturn-DfZS7TCp.js → focusReturn-BeSRm0xD.js} +34 -3
  134. package/dist/{index-ZXrvTM3A.d.ts → index-0RIgvtdm.d.ts} +2 -2
  135. package/dist/{index-tdOyqA_U.d.ts → index-Ak1b0V24.d.ts} +1 -1
  136. package/dist/{index-DYabo8TI.d.ts → index-B44fLswd.d.ts} +2 -2
  137. package/dist/{index-B27k2e77.d.ts → index-B7Rd2RuL.d.ts} +44 -32
  138. package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
  139. package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
  140. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  141. package/dist/{index-x7g2WHHx.d.ts → index-BhpRhww0.d.ts} +3 -3
  142. package/dist/{index-rr6Rns7h.d.ts → index-CGRtGORf.d.ts} +1 -1
  143. package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
  144. package/dist/{index-CdvmnNMH.d.ts → index-COgrQZIL.d.ts} +1 -1
  145. package/dist/{index-CBOv5j3c.d.ts → index-CbA8rR_b.d.ts} +1 -1
  146. package/dist/{index-JE1HrzdJ.d.ts → index-DVX2jlTQ.d.ts} +2 -2
  147. package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
  148. package/dist/{index-BfFpUr1B.d.ts → index-ZKBj_1nu.d.ts} +1 -1
  149. package/dist/{index-BufuCsTx.d.ts → index-hwP1oWCA.d.ts} +2 -2
  150. package/dist/{index-C3JmGujU.d.ts → index-mK1ICsVg.d.ts} +1 -1
  151. package/dist/index.d.ts +17 -17
  152. package/dist/index.js +46 -46
  153. package/dist/{layerFocusReturn-CEvrMbxH.js → layerFocusReturn-uixUCSc8.js} +1 -1
  154. package/dist/{lazyBottomSheet-DlrpPOl8.js → lazyBottomSheet-C6Rw8yoX.js} +1 -1
  155. package/dist/{modalOutlet-Drr9a16b.js → modalOutlet-BwR9AAlm.js} +16 -1
  156. package/dist/position-DwHfneha.js +79 -0
  157. package/dist/rideKeyboard-BCzVooOd.js +1635 -0
  158. package/dist/sheetTransition-BEm1GCv1.js +76 -0
  159. package/dist/{useChatStreamScroll-DWhnCSP1.js → useChatStreamScroll-3mJvbNtI.js} +30 -4
  160. package/dist/{useFocusTrap-DcjriBe1.js → useFocusTrap-Bj9GskLh.js} +1 -1
  161. package/dist/{useMenuPress-zOinmIFS.js → useMenuPress-kjmot8Bn.js} +1 -1
  162. package/dist/useMobileKeyboard-BDPV51xl.js +806 -0
  163. package/dist/{useRestoreFocus-DS7uQWok.js → useRestoreFocus-m3rsqE4d.js} +1 -1
  164. package/package.json +1 -1
  165. package/styles/chat.css +6 -0
  166. package/styles/drawer.css +136 -44
  167. package/dist/BottomSheet-Chr9yCIL.js +0 -4353
  168. package/dist/Drawer-DKSqpR2p.js +0 -137
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as _sfc_main$11 } from "./BottomSheet-Chr9yCIL.js";
1
+ import { n as _sfc_main$11 } from "./BottomSheet-Cr6FacYP.js";
2
2
  import { t as isRenderable } from "./isRenderable-BnKHIqfd.js";
3
3
  import { i as useClickableContainer, n as hasInteractiveAncestor, r as hasTextSelection, t as INTERACTIVE_SELECTORS } from "./useClickableContainer-Dtjg-nkm.js";
4
4
  import { t as usePressFeedback } from "./usePressFeedback-CF4ISMfb.js";
@@ -21,12 +21,12 @@ import { n as useDevWarning, t as devWarn } from "./useDevWarning-B2fsk2B-.js";
21
21
  import { _ as useContainerReveal, a as usePanGesture, b as createPanGesture, c as useIndicatorFocusRing, d as useImageMode, f as useGridRovingFocus, g as useControllableState, h as useDragToSnapPoints, i as useSnapPaging, l as imageModeFromPixels, m as useEntryAnimation, n as snapToGraphemeBoundary, o as useLinkify, p as useGridFocus, r as useStreamingText, s as useKeyboardHint, t as useTouchTrigger, u as perceptualLightness, v as useAnimator, x as createAnimator, y as createDragToSnapPoints } from "./composables-CpG7bhuQ.js";
22
22
  import { n as normalizeTokenName } from "./tokenName-0U-WEH09.js";
23
23
  import { a as useSideNavCollapse } from "./context-Dweha8vW.js";
24
- import { a as _sfc_main$148, i as _sfc_main$147, n as _sfc_main$150, r as _sfc_main$149, t as _sfc_main$151 } from "./SideNav-ZZ5zCQz0.js";
24
+ import { a as _sfc_main$148, i as _sfc_main$147, n as _sfc_main$150, r as _sfc_main$149, t as _sfc_main$151 } from "./SideNav-D8jQrwtL.js";
25
25
  import { t as useAnimatedLayout } from "./useAnimatedLayout-Dq-cttfe.js";
26
26
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
27
27
  import { n as useAppShellMobile, t as appShellMobileKey } from "./useAppShellMobile-DTsyuAJ4.js";
28
28
  import { n as useAsyncSource, t as createStaticSource } from "./useAsyncSource-7GTcK8ep.js";
29
- import { n as CHAT_MESSAGE_CLASS, r as useChatNewMessages, t as useChatStreamScroll } from "./useChatStreamScroll-DWhnCSP1.js";
29
+ import { i as useChatNewMessages, r as CHAT_MESSAGE_CLASS, t as useChatStreamScroll } from "./useChatStreamScroll-3mJvbNtI.js";
30
30
  import { t as useClipboard } from "./useClipboard-CTY3GwFz.js";
31
31
  import { t as useCombobox } from "./useCombobox-BbDP75hw.js";
32
32
  import { n as resolveDateSurface, t as resolveDatePresentation } from "./useDatePresentation-C07PnOCw.js";
@@ -35,7 +35,7 @@ import { t as useDisclosureHandle } from "./useDisclosureHandle-Df3HhAfC.js";
35
35
  import { t as useFieldControlState } from "./useFieldControlState-voICDrys.js";
36
36
  import { t as fileInputMessages } from "./file-input-CzK0qCvm.js";
37
37
  import { n as selectFiles, t as formatFileSize } from "./useFileSelection-Cfcbh8XI.js";
38
- import { t as useFocusTrap } from "./useFocusTrap-DcjriBe1.js";
38
+ import { t as useFocusTrap } from "./useFocusTrap-Bj9GskLh.js";
39
39
  import { t as useHandleRef } from "./useHandleRef-6cdKugm8.js";
40
40
  import { n as percent, r as useHotkeys, t as useResizable } from "./useResizable-7-uUaJ7x.js";
41
41
  import { t as useInputContainer } from "./useInputContainer-CLhsKYZ6.js";
@@ -47,14 +47,14 @@ import { t as kbdMessages } from "./kbd-eX_twmH9.js";
47
47
  import { t as _sfc_main$98 } from "./Kbd-CbD993ig.js";
48
48
  import { t as keyboardHintMessages } from "./keyboard-hint-KWx0-7kD.js";
49
49
  import { t as useListFocus } from "./useListFocus-Ccd_HU9T.js";
50
- import { a as menuPressStep, c as resetMenuPress, i as MENU_PRESS_SETTLE_MS, l as useLongPress, n as useMenuPress, o as MENU_PRESS_MARKER, r as MENU_PRESS_HANDOFF_PX, s as isMenuPressActivation, t as MENU_PRESS_LIT_ATTRIBUTE } from "./useMenuPress-zOinmIFS.js";
50
+ import { a as menuPressStep, c as resetMenuPress, i as MENU_PRESS_SETTLE_MS, l as useLongPress, n as useMenuPress, o as MENU_PRESS_MARKER, r as MENU_PRESS_HANDOFF_PX, s as isMenuPressActivation, t as MENU_PRESS_LIT_ATTRIBUTE } from "./useMenuPress-kjmot8Bn.js";
51
51
  import { t as useMergedRefs } from "./useMergedRefs-DTGo1cEU.js";
52
52
  import { a as todayISODate, i as toISODate, n as buildMonthGrid, r as parseISODate, t as addMonths } from "./useMonthGrid-Bzvlstgc.js";
53
53
  import { n as useNumberField, t as computeSteppedValue } from "./useNumberField-Dk1BE3-K.js";
54
54
  import { n as computeOverflow, t as useOverflow } from "./useOverflow-GU0pxGaU.js";
55
55
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
56
56
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
57
- import { t as useRestoreFocus } from "./useRestoreFocus-DS7uQWok.js";
57
+ import { t as useRestoreFocus } from "./useRestoreFocus-m3rsqE4d.js";
58
58
  import { t as useScrollableArea } from "./useScrollableArea-BaHkGWbX.js";
59
59
  import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
60
60
  import { t as useScrollOverflow } from "./useScrollOverflow-DuMoGXmm.js";
@@ -63,7 +63,7 @@ import { a as formatDisplayTime12h, i as createISOTimeString, n as clampTime, o
63
63
  import { a as parseISOTime, i as parseDisplayTime, n as formatISOTime, o as resolveTimeSurface, r as isTimeInRange, s as shiftTime, t as formatDisplayTime } from "./useTimeValue-8YfPQffv.js";
64
64
  import { n as isActionTrigger } from "./useTouchTriggerInternal-C_mowlpv.js";
65
65
  import { t as useTypeahead } from "./useTypeahead-HlZ9cICe.js";
66
- import { t as _sfc_main$69 } from "./Dialog-dm_qZ9NI.js";
66
+ import { t as _sfc_main$69 } from "./Dialog-DRQrtKHT.js";
67
67
  import { t as useTooltip } from "./useTooltip-DCp4sTM1.js";
68
68
  import { t as _sfc_main$188 } from "./Tooltip-BdG9g6c6.js";
69
69
  import { n as useTruncation } from "./useTruncation-D_T-ezdp.js";
@@ -71,12 +71,12 @@ import { t as _sfc_main$88 } from "./Heading-BZ0ydu2s.js";
71
71
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
72
72
  import { t as _sfc_main$155 } from "./Stack-DPB-Ztf7.js";
73
73
  import { t as _sfc_main$173 } from "./Text-bvai__ae.js";
74
- import { n as _sfc_main, t as useImperativeAlertDialog } from "./AlertDialog-C4oB89RV.js";
75
- import { a as _sfc_main$100, n as _sfc_main$103, r as _sfc_main$101, t as _sfc_main$104 } from "./LayoutPanel-Dhm0Hubb.js";
74
+ import { n as _sfc_main, t as useImperativeAlertDialog } from "./AlertDialog-DwITRN1M.js";
75
+ import { a as _sfc_main$100, n as _sfc_main$103, r as _sfc_main$101, t as _sfc_main$104 } from "./LayoutPanel-D56PBM4I.js";
76
76
  import { t as layoutMessages } from "./layout-DhX4-SyE.js";
77
77
  import { t as navMessages } from "./nav-DpKQUHqR.js";
78
- import { n as _sfc_main$114, t as _sfc_main$115 } from "./MobileNavToggle-C1_IinAo.js";
79
- import { t as _sfc_main$1 } from "./AppShell-CU12SF6s.js";
78
+ import { n as _sfc_main$114, t as _sfc_main$115 } from "./MobileNavToggle-CjlgmcSf.js";
79
+ import { t as _sfc_main$1 } from "./AppShell-ClZ2Y8cu.js";
80
80
  import { n as WIDTH_BREAKPOINT_NAMES, t as DEFAULT_WIDTH_BREAKPOINTS } from "./adaptationTypes-Beao49TN.js";
81
81
  import { t as _sfc_main$2 } from "./AspectRatio-Bij7e-tq.js";
82
82
  import { n as _sfc_main$3, t as _sfc_main$6 } from "./Avatar-CpWBsTqf.js";
@@ -88,11 +88,11 @@ import { t as bannerMessages } from "./banner-Bv76b50U.js";
88
88
  import { t as _sfc_main$8 } from "./Banner-DeauKxQw.js";
89
89
  import { t as _sfc_main$10 } from "./Blockquote-DRoKdcxZ.js";
90
90
  import "./Blockquote/index.js";
91
- import { t as _sfc_main$12 } from "./BottomSheet-DCLOhzZP.js";
91
+ import { t as _sfc_main$12 } from "./BottomSheet-CDxV1Rkx.js";
92
92
  import { a as useListContext, i as useItemDescriptionId, t as _sfc_main$97 } from "./Item-CKYsTbM4.js";
93
93
  import { t as _sfc_main$43 } from "./CheckboxIndicator-fH4d-JE1.js";
94
- import { a as _sfc_main$16, l as useDropdownMenuContext, m as useContextMenuSize, o as _sfc_main$15, p as useContextMenu, s as _sfc_main$14, u as useDropdownMenuRadioGroup } from "./accessibleName-CN1vKvS_.js";
95
- import { a as _sfc_main$75, i as _sfc_main$76, n as _sfc_main$78, r as _sfc_main$77, t as _sfc_main$74 } from "./DropdownMenu-C-SLsVSO.js";
94
+ import { a as _sfc_main$16, l as useDropdownMenuContext, m as useContextMenuSize, o as _sfc_main$15, p as useContextMenu, s as _sfc_main$14, u as useDropdownMenuRadioGroup } from "./accessibleName-CHrrgpAy.js";
95
+ import { a as _sfc_main$75, i as _sfc_main$76, n as _sfc_main$78, r as _sfc_main$77, t as _sfc_main$74 } from "./DropdownMenu-DU_Rw88D.js";
96
96
  import { n as compactDefinition, t as DEFAULT_COMPACT_DEFINITION } from "./compactDefinition-BeFUKEFg.js";
97
97
  import { t as _sfc_main$71 } from "./Divider-mOZ6vIQw.js";
98
98
  import { t as spinnerMessages } from "./spinner-DVia-eDf.js";
@@ -100,7 +100,7 @@ import { t as _sfc_main$154 } from "./Spinner-D1adu3uH.js";
100
100
  import { a as _sfc_main$136, i as isCoreIndicatorName, n as defaultIndicators, o as _sfc_main$42, r as getIndicator, t as useIndicator } from "./useIndicator-PFDBNOvX.js";
101
101
  import { t as dropdownMenuMessages } from "./dropdown-menu-BDu4gWwQ.js";
102
102
  import { r as resolveNavRoot } from "./link-DuuA2eCL.js";
103
- import { n as _sfc_main$13, t as _sfc_main$17 } from "./Breadcrumbs-BfjWIfgO.js";
103
+ import { n as _sfc_main$13, t as _sfc_main$17 } from "./Breadcrumbs-DaxgM0-F.js";
104
104
  import { n as _sfc_main$19 } from "./ButtonGroup-CEDeeGkY.js";
105
105
  import { A as plainDateSetFirstOfMonth, C as plainDateIsAfter, D as plainDateMax, E as plainDateIsInRange, F as plainDateToday, I as plainDateWeekFieldName, M as plainDateToDate, N as plainDateToISO, O as plainDateMin, P as plainDateToInstant, S as plainDateGetWeekNumber, T as plainDateIsEqual, _ as plainDateDiffDays, a as DATE_FORMAT_SHORT_WITH_WEEKDAY, b as plainDateFromISO, c as DATE_FORMAT_WITH_WEEKDAY, d as getDaysInMonth, f as getTimeZoneParts, g as plainDateDayOfWeek, h as plainDateCreate, i as DATE_FORMAT_SHORT, j as plainDateSetStartOfWeek, k as plainDateSetEndOfWeekExclusive, l as SHARED_DATE_FORMAT_OPTIONS, m as plainDateAddMonths, n as DATE_FORMAT_MONTH_ONLY, o as DATE_FORMAT_SHORT_WITH_YEAR, p as plainDateAddDays, r as DATE_FORMAT_MONTH_YEAR, s as DATE_FORMAT_WEEKDAY_ONLY, t as DATE_FORMAT_LONG, u as formatSharedDate, v as plainDateFormat, w as plainDateIsBefore, x as plainDateFromInstant, y as plainDateFromDate } from "./plainDate-CaTDErKr.js";
106
106
  import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
@@ -112,7 +112,7 @@ import { t as carouselMessages } from "./carousel-Uaa3h_cg.js";
112
112
  import { t as _sfc_main$22 } from "./Carousel-5NYWpta1.js";
113
113
  import { t as _sfc_main$23 } from "./Center-B7FTd7Hw.js";
114
114
  import { t as chatMessages } from "./chat-BUFYB3bA.js";
115
- import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$25, a as _sfc_main$39, b as _sfc_main$26, c as _sfc_main$35, d as _sfc_main$32, f as _sfc_main$31, g as _sfc_main$27, h as _sfc_main$28, i as _sfc_main$40, l as _sfc_main$34, m as _sfc_main$30, n as useSpeechRecognition, o as _sfc_main$38, p as _sfc_main$29, r as _sfc_main$41, s as _sfc_main$37, t as useChatDictation, u as _sfc_main$33, v as _sfc_main$24, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$36 } from "./Chat-f9HzZe5y.js";
115
+ import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$25, a as _sfc_main$39, b as _sfc_main$26, c as _sfc_main$35, d as _sfc_main$32, f as _sfc_main$31, g as _sfc_main$27, h as _sfc_main$28, i as _sfc_main$40, l as _sfc_main$34, m as _sfc_main$30, n as useSpeechRecognition, o as _sfc_main$38, p as _sfc_main$29, r as _sfc_main$41, s as _sfc_main$37, t as useChatDictation, u as _sfc_main$33, v as _sfc_main$24, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$36 } from "./Chat-BRtDKajd.js";
116
116
  import { n as useHoverCard, t as _sfc_main$89 } from "./HoverCard-BhHZE9q6.js";
117
117
  import "./CheckboxIndicator/index.js";
118
118
  import { t as infoTipMessages } from "./info-tip-BV42YsA4.js";
@@ -135,18 +135,18 @@ import { t as codeBlockMessages } from "./code-block-DCVrTLMZ.js";
135
135
  import { g as isCodeLanguage, m as createCodeLanguage } from "./grammar-Dz71GleT.js";
136
136
  import { i as githubDark, n as SYNTAX_TOKEN_KEYS, r as defineSyntaxTheme, t as DIFF_SYNTAX_TOKEN_KEYS } from "./syntaxTheme-R7xnu5x5.js";
137
137
  import { _ as CodeLineTokens, a as catppuccinMocha, c as githubLight, d as nord, f as oneDarkPro, g as tokyoNightLight, h as tokyoNight, i as catppuccinLatte, l as lightSyntaxPresets, m as solarizedLight, n as _sfc_main$161, o as darkSyntaxPresets, p as oneLight, r as allSyntaxPresets, s as dracula, t as useSyntaxTheme, u as monokai } from "./Code-qHt8uZqb.js";
138
- import { n as _sfc_main$51, r as useCollapsible, t as _sfc_main$52 } from "./Collapsible-Dxp-BWv-.js";
138
+ import { n as _sfc_main$51, r as useCollapsible, t as _sfc_main$52 } from "./Collapsible-DfVihLCR.js";
139
139
  import { t as commandPaletteMessages } from "./command-palette-g8Mnclgo.js";
140
- import { a as _sfc_main$56, i as _sfc_main$57, n as _sfc_main$59, o as _sfc_main$55, r as _sfc_main$58, s as _sfc_main$54, t as _sfc_main$53 } from "./CommandPalette-PyPfsPLY.js";
140
+ import { a as _sfc_main$56, i as _sfc_main$57, n as _sfc_main$59, o as _sfc_main$55, r as _sfc_main$58, s as _sfc_main$54, t as _sfc_main$53 } from "./CommandPalette-CWaKVNGZ.js";
141
141
  import { t as inputMessages } from "./input-DUSvqqG_.js";
142
142
  import { t as selectorMessages } from "./selector-BmGLjm94.js";
143
143
  import { t as popoverMessages } from "./popover-DxCyd_Ua.js";
144
- import { n as usePopover, t as _sfc_main$131 } from "./Popover-IvZGq1LC.js";
145
- import { n as _sfc_main$60 } from "./ComplexSelector-B07QdP_p.js";
144
+ import { n as usePopover, t as _sfc_main$131 } from "./Popover-CTCWhA_K.js";
145
+ import { n as _sfc_main$60 } from "./ComplexSelector-D2QRdM57.js";
146
146
  import { t as contextMenuMessages } from "./context-menu-9i6CObx3.js";
147
- import { a as _sfc_main$62, i as _sfc_main$63, n as _sfc_main$65, r as _sfc_main$64, t as _sfc_main$61 } from "./ContextMenu-B6NH9NBS.js";
147
+ import { a as _sfc_main$62, i as _sfc_main$63, n as _sfc_main$65, r as _sfc_main$64, t as _sfc_main$61 } from "./ContextMenu-D-G53u7B.js";
148
148
  import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
149
- import { t as _sfc_main$66 } from "./DateInput-TrPijW9a.js";
149
+ import { t as _sfc_main$66 } from "./DateInput-BHSp4fZS.js";
150
150
  import { t as formatInstant } from "./formatInstant-CjCwl6JS.js";
151
151
  import { a as pickerPresentationFromNativePicker, c as resolvePickerPresentation, i as effectivePickerPresentation, l as isLocaleDayFirst, o as presentationFromNativePicker, r as effectiveInputPresentation, s as resolveInputPresentation, t as DEFAULT_INPUT_PRESENTATION, u as parseDateInput } from "./inputPresentation-DES0JwkL.js";
152
152
  import { n as alertDialogMessages, t as tokenizerMessages } from "./tokenizer-C1y-55Ft.js";
@@ -176,14 +176,14 @@ import { t as treeListMessages } from "./tree-list-NZ1EZhtd.js";
176
176
  import { t as typeaheadMessages } from "./typeahead-BgfLP7vR.js";
177
177
  import { n as useLocale, r as useCollator, t as useTranslator } from "./locale-CHA0DNw5.js";
178
178
  import "./DateInput/index.js";
179
- import { t as _sfc_main$67 } from "./DateRangeInput-bKPzsoHA.js";
179
+ import { t as _sfc_main$67 } from "./DateRangeInput-DP1QWK_6.js";
180
180
  import "./DateRangeInput/index.js";
181
- import { t as _sfc_main$68 } from "./DateTimeInput-5jZPqFu2.js";
181
+ import { t as _sfc_main$68 } from "./DateTimeInput-Bgx9lgWb.js";
182
182
  import "./DateTimeInput/index.js";
183
- import { t as _sfc_main$70 } from "./DialogHeader-CQfcOIfF.js";
184
- import { n as useDialogContext, t as useImperativeDialog } from "./Dialog-CDAicnpK.js";
183
+ import { t as _sfc_main$70 } from "./DialogHeader-C3Mc580J.js";
184
+ import { n as useDialogContext, t as useImperativeDialog } from "./Dialog-DCKT1dWC.js";
185
185
  import "./Divider/index.js";
186
- import { n as _sfc_main$72, t as _sfc_main$73 } from "./Drawer-DKSqpR2p.js";
186
+ import { n as _sfc_main$72, t as _sfc_main$73 } from "./Drawer-CnFTUjln.js";
187
187
  import "./DropdownMenu/index.js";
188
188
  import { t as _sfc_main$79 } from "./EmptyState-DU7uOI2G.js";
189
189
  import "./EmptyState/index.js";
@@ -203,8 +203,8 @@ import { n as _sfc_main$94, t as _sfc_main$95 } from "./InputGroup-CjB_XpEy.js";
203
203
  import { a as resolveProviderMessages, i as getLocaleDirection, r as useLocaleDirection, t as _sfc_main$96 } from "./InternationalizationProvider-yLbf4Wi_.js";
204
204
  import "./Kbd/index.js";
205
205
  import { n as mergeInset, r as resolveInset, t as _sfc_main$99 } from "./LayerProvider-B6zpMBWC.js";
206
- import { t as _sfc_main$102 } from "./Layout-CpFgVnlQ.js";
207
- import { n as _sfc_main$105, t as useLightbox } from "./Lightbox-BSzyDGkK.js";
206
+ import { t as _sfc_main$102 } from "./Layout-BDS2ZN6C.js";
207
+ import { n as _sfc_main$105, t as useLightbox } from "./Lightbox-CnTXrgq6.js";
208
208
  import { t as _sfc_main$106 } from "./Link-BnM830Xa.js";
209
209
  import "./Link/index.js";
210
210
  import { t as _sfc_main$107 } from "./LinkProvider-Qsps9_mL.js";
@@ -214,31 +214,31 @@ import { a as visitMarkdownNodes, i as defineMarkdownPlugin, n as applyInlinePlu
214
214
  import { n as uniqueSlug, t as slugify } from "./slug-D6ln5PTq.js";
215
215
  import { n as _sfc_main$112, t as _sfc_main$113 } from "./MetadataList-n3YXiP4a.js";
216
216
  import "./MobileNav/index.js";
217
- import { t as _sfc_main$116 } from "./MoreMenu-DbYO8V7N.js";
217
+ import { t as _sfc_main$116 } from "./MoreMenu-CGTbwTyw.js";
218
218
  import { t as _sfc_main$185 } from "./Token-Dk6MPUkH.js";
219
- import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main$117 } from "./MultiSelector-CthCkW-w.js";
219
+ import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main$117 } from "./MultiSelector-DUQMNBoZ.js";
220
220
  import "./MultiSelector/index.js";
221
221
  import { t as _sfc_main$121 } from "./NavItem-thEKXyJA.js";
222
222
  import { t as _sfc_main$122 } from "./NavItem-DTO-BEfc.js";
223
223
  import { t as _sfc_main$118 } from "./NavDisclosure-BpYjtYo5.js";
224
- import { n as _sfc_main$119, t as _sfc_main$120 } from "./NavMenu-g8ZVhLMG.js";
225
- import { n as _sfc_main$123, t as _sfc_main$124 } from "./NavMenuItem-DJg9jfHm.js";
226
- import { t as _sfc_main$125 } from "./NumberInput-BM52uE72.js";
224
+ import { n as _sfc_main$119, t as _sfc_main$120 } from "./NavMenu-BflnhBtX.js";
225
+ import { n as _sfc_main$123, t as _sfc_main$124 } from "./NavMenuItem-CrFrczWe.js";
226
+ import { t as _sfc_main$125 } from "./NumberInput-vWUcgJU8.js";
227
227
  import "./NumberInput/index.js";
228
228
  import { i as _sfc_main$126, n as useOutlineFromDOM, r as parseOutlineFromMarkdown, t as useOutlineFromMarkdown } from "./Outline-D4DJTfKp.js";
229
- import { t as _sfc_main$127 } from "./OverflowList-nW6GCEsY.js";
229
+ import { t as _sfc_main$127 } from "./OverflowList-D9Ua6e3-.js";
230
230
  import { n as useOverlay, r as _sfc_main$129, t as _sfc_main$128 } from "./Overlay-DKILTHxI.js";
231
- import { t as _sfc_main$130 } from "./Pagination-DFZivDZZ.js";
232
- import { t as _sfc_main$146 } from "./Selector-icOfE3ja.js";
231
+ import { t as _sfc_main$130 } from "./Pagination-DBikmHyn.js";
232
+ import { t as _sfc_main$146 } from "./Selector-BvxQXUYr.js";
233
233
  import "./Pagination/index.js";
234
234
  import "./Popover/index.js";
235
- import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main$132, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "./PowerSearch-CQdyB8_N.js";
235
+ import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main$132, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "./PowerSearch-CTNFHNnr.js";
236
236
  import { a as _sfc_main$198 } from "./useTypeaheadMenuConfig-B14t0HGE.js";
237
- import { t as _sfc_main$186 } from "./Tokenizer-CdyoUaoZ.js";
238
- import { t as _sfc_main$175 } from "./TextInput-CuPxOApN.js";
237
+ import { t as _sfc_main$186 } from "./Tokenizer-D-wBxbBE.js";
238
+ import { t as _sfc_main$175 } from "./TextInput-cotkU2bC.js";
239
239
  import { n as _sfc_main$134, t as _sfc_main$135 } from "./RadioGroup-OLFNjvKt.js";
240
240
  import { n as _sfc_main$137, t as _sfc_main$138 } from "./RadioListItem-BAEF0vc8.js";
241
- import { t as _sfc_main$178 } from "./TimeInput-PJdyNX0T.js";
241
+ import { t as _sfc_main$178 } from "./TimeInput-Bqo_oHMl.js";
242
242
  import { n as _sfc_main$9, t as _sfc_main$197 } from "./Typeahead-Cx086Mmv.js";
243
243
  import { t as _sfc_main$133 } from "./ProgressBar-B2ds3imd.js";
244
244
  import "./Radio/index.js";
@@ -261,11 +261,11 @@ import { n as _sfc_main$156, r as _sfc_main$87, t as _sfc_main$199 } from "./Sta
261
261
  import { t as _sfc_main$157 } from "./StatusDot-Jw676Z_6.js";
262
262
  import { n as _sfc_main$158, t as _sfc_main$159 } from "./Stepper-3oMdVe0c.js";
263
263
  import { t as _sfc_main$160 } from "./Switch-COKmqJQU.js";
264
- import { A as applyTableFilters, B as useTableColumnResize, C as useTableRowExpansion, D as buildGroupedRows, E as useTableInfiniteScroll, F as columnResizeDirectionSign, G as pixel, H as cellText, I as columnResizeMinWidth, J as resolveColumnWidths, K as proportional, L as columnResizeStep, M as useTableFiltering, N as useTableColumnSettings, O as isTableGroupHeader, P as useTableColumnSettingsState, R as isProportionalColumnWidth, S as useTableRowIndex, T as isInteractiveRowClick, U as generateColumns, V as capitalize, W as paginateData, Y as sortRows, _ as useTableSortable, a as _sfc_main$168, b as useTableSelectionState, c as _sfc_main$165, d as flattenTree, f as useTableTreeData, g as useTableStickyColumns, h as stickyOffsets, i as _sfc_main$169, j as useTableFilterState, k as useTableGroupedRows, l as useTableColumnsVirtualization, m as resolveStickySide, n as _sfc_main$171, o as _sfc_main$167, p as useTableTreeState, q as resolveColumnFloorWidths, r as _sfc_main$170, s as _sfc_main$166, t as _sfc_main$172, u as useTableRowsVirtualization, v as useTableSortableState, w as useTablePagination, x as useTableRowStatus, y as useTableSelection, z as resizeColumnWidths } from "./Table-aMqVf_iH.js";
264
+ import { A as applyTableFilters, B as useTableColumnResize, C as useTableRowExpansion, D as buildGroupedRows, E as useTableInfiniteScroll, F as columnResizeDirectionSign, G as pixel, H as cellText, I as columnResizeMinWidth, J as resolveColumnWidths, K as proportional, L as columnResizeStep, M as useTableFiltering, N as useTableColumnSettings, O as isTableGroupHeader, P as useTableColumnSettingsState, R as isProportionalColumnWidth, S as useTableRowIndex, T as isInteractiveRowClick, U as generateColumns, V as capitalize, W as paginateData, Y as sortRows, _ as useTableSortable, a as _sfc_main$168, b as useTableSelectionState, c as _sfc_main$165, d as flattenTree, f as useTableTreeData, g as useTableStickyColumns, h as stickyOffsets, i as _sfc_main$169, j as useTableFilterState, k as useTableGroupedRows, l as useTableColumnsVirtualization, m as resolveStickySide, n as _sfc_main$171, o as _sfc_main$167, p as useTableTreeState, q as resolveColumnFloorWidths, r as _sfc_main$170, s as _sfc_main$166, t as _sfc_main$172, u as useTableRowsVirtualization, v as useTableSortableState, w as useTablePagination, x as useTableRowStatus, y as useTableSelection, z as resizeColumnWidths } from "./Table-3GiSElIS.js";
265
265
  import { t as _sfc_main$187 } from "./Toolbar-BHkPxDxA.js";
266
- import { n as _sfc_main$163, r as _sfc_main$162, t as _sfc_main$164 } from "./TabList-C-HBxmkc.js";
266
+ import { n as _sfc_main$163, r as _sfc_main$162, t as _sfc_main$164 } from "./TabList-DjRutwar.js";
267
267
  import "./Text/index.js";
268
- import { t as _sfc_main$174 } from "./TextArea-YJtL9Fi6.js";
268
+ import { t as _sfc_main$174 } from "./TextArea-BtBC4IoD.js";
269
269
  import "./TextInput/index.js";
270
270
  import { l as DATA_TOKEN_DEFAULTS, n as useTheme, t as _sfc_main$111 } from "./MediaTheme-CBkEmVe4.js";
271
271
  import { a as neutralTheme, c as expandMotionScale, i as isDefinedTheme, l as expandRadiusScale, n as _sfc_main$176, o as STATUS_COLOR_DEFAULTS, r as defineTheme, s as expandTypeScale, t as useMediaTheme, u as expandColorScale } from "./Theme-CwruhtLu.js";
@@ -273,13 +273,13 @@ import { t as _sfc_main$177 } from "./Thumbnail-oqrKH-co.js";
273
273
  import "./TimeInput/index.js";
274
274
  import { n as getPresentation, t as _sfc_main$179 } from "./Timer-CO-JNJTI.js";
275
275
  import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main$180 } from "./Timestamp-CfzqAAX2.js";
276
- import { n as _sfc_main$182, r as _sfc_main$181, t as useToast } from "./Toast-W6aKxXlF.js";
276
+ import { n as _sfc_main$182, r as _sfc_main$181, t as useToast } from "./Toast-BSay0eZw.js";
277
277
  import { n as _sfc_main$184, r as _sfc_main$183 } from "./ToggleButton-Ditxp2jT.js";
278
278
  import { t as TOKEN_COLORS } from "./Token-BdRzlXzm.js";
279
279
  import "./Tokenizer/index.js";
280
280
  import "./Toolbar/index.js";
281
281
  import "./Tooltip/index.js";
282
- import { a as _sfc_main$191, i as _sfc_main$192, n as _sfc_main$194, o as _sfc_main$190, r as _sfc_main$193, s as _sfc_main$189, t as _sfc_main$195 } from "./TopNav-CxAm5bN5.js";
282
+ import { a as _sfc_main$191, i as _sfc_main$192, n as _sfc_main$194, o as _sfc_main$190, r as _sfc_main$193, s as _sfc_main$189, t as _sfc_main$195 } from "./TopNav-D7jH9iwk.js";
283
283
  import { n as useTreeFocus, t as _sfc_main$196 } from "./TreeList-Dnx-uco3.js";
284
284
  import "./Typeahead/index.js";
285
285
  import { a as groupItems, i as getItemGroup, n as getInputARIA, o as normalizeDayOfWeek, r as joinAriaIDs, s as chainEventHandlers } from "./utils-BW62BpDR.js";
@@ -1,6 +1,6 @@
1
1
  import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
2
2
  import { t as FOCUSABLE_SELECTOR } from "./focus-x7mxEqjR.js";
3
- import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
3
+ import { t as focusForLastInput } from "./focusReturn-BeSRm0xD.js";
4
4
  //#region src/layer/layerFocusReturn.ts
5
5
  function documentOf(element) {
6
6
  if (element != null) return element.ownerDocument;
@@ -1,7 +1,7 @@
1
1
  import { defineAsyncComponent } from "vue";
2
2
  //#region src/BottomSheet/lazyBottomSheet.ts
3
3
  function loadBottomSheet() {
4
- return import("./BottomSheet-Chr9yCIL.js").then((n) => n.t);
4
+ return import("./BottomSheet-Cr6FacYP.js").then((n) => n.t);
5
5
  }
6
6
  /**
7
7
  * 按需加载的 BottomSheet:只在底部弹层真正进入组件树时请求,只用锚定浮层的页面
@@ -59,6 +59,21 @@ function createModalOutletHandle() {
59
59
  };
60
60
  }
61
61
  /**
62
+ * 非模态的顶层元素(无遮罩的抽屉)每进入一次顶层就加一。
63
+ *
64
+ * 顶层里后进去的画在上面。toast 视口比抽屉先进顶层时会被它盖住,所以抽屉进去后
65
+ * 报一声,视口重新进一次顶层,又排回最上面。模态层不用报:它们走上面的挂载点清单。
66
+ */
67
+ const topLayerEntries = shallowRef(0);
68
+ /** 非模态的顶层元素刚进入顶层时调用。 */
69
+ function notifyTopLayerEntry() {
70
+ topLayerEntries.value++;
71
+ }
72
+ /** 非模态顶层进入的计数。只用来监听变化。 */
73
+ function useTopLayerEntries() {
74
+ return topLayerEntries;
75
+ }
76
+ /**
62
77
  * 等模态对话框把进场动画跑完。
63
78
  *
64
79
  * 动画里的 `transform` 会让对话框成为子元素 `position: fixed` 的参照物,而顶层
@@ -77,4 +92,4 @@ function whenModalSettled(element, timeout = 600) {
77
92
  return Promise.race([settled, capped]);
78
93
  }
79
94
  //#endregion
80
- export { useActiveModalOutlet as n, whenModalSettled as r, createModalOutletHandle as t };
95
+ export { whenModalSettled as a, useTopLayerEntries as i, notifyTopLayerEntry as n, useActiveModalOutlet as r, createModalOutletHandle as t };
@@ -0,0 +1,79 @@
1
+ import { r as didOutsideDismissInGesture, s as currentGesture } from "./layerDepth-DRfWATFr.js";
2
+ //#region src/layer/useBackdropPress.ts
3
+ /**
4
+ * 模态框「点遮罩关闭」的共用判断。Dialog(含 Drawer、CommandPalette)都走这里。
5
+ *
6
+ * 原生 `<dialog>` 的遮罩没有自己的元素,点在遮罩上的 click 目标就是 dialog 本身。
7
+ * 只看 click 不够,两种情况要排除:
8
+ *
9
+ * - 按下在框里、松手在遮罩上(拖选文字、拖滑块拖出了边)。浏览器把这次 click
10
+ * 发给两者共同的祖先,也就是 dialog,看起来像点了遮罩。只有按下和松手都在
11
+ * 遮罩上才算。
12
+ * - 这一下按压已经把框里打开的弹出框当作「点外面」关掉了。这一下是弹出框的,
13
+ * 模态框留着;再点一次遮罩才关它,和连按两次 Escape 一样。
14
+ */
15
+ function useBackdropPress(getHost, onDismiss) {
16
+ let downOnBackdrop = false;
17
+ let downGesture = null;
18
+ function onPointerDown(event) {
19
+ downOnBackdrop = event.target === getHost();
20
+ downGesture = currentGesture();
21
+ }
22
+ function onClick(event) {
23
+ const startedOnBackdrop = downOnBackdrop;
24
+ const gesture = downGesture;
25
+ downOnBackdrop = false;
26
+ downGesture = null;
27
+ if (event.target !== getHost() || !startedOnBackdrop) return;
28
+ if (gesture != null && didOutsideDismissInGesture(gesture)) return;
29
+ onDismiss();
30
+ }
31
+ return {
32
+ onPointerDown,
33
+ onClick
34
+ };
35
+ }
36
+ //#endregion
37
+ //#region src/Dialog/context.ts
38
+ const DIALOG_CONTEXT_KEY = Symbol("astryx-dialog");
39
+ //#endregion
40
+ //#region src/Dialog/initialFocus.ts
41
+ /**
42
+ * 对话框打开时第一个拿到焦点的元素。
43
+ *
44
+ * 先看明确要求初始焦点的元素(`data-autofocus`),再看标题的默认要求
45
+ * (`data-dialog-default-focus`)。一个要求属于离它最近的那个对话框:嵌套的子对话框
46
+ * 里的要求是子对话框的,哪怕它关着也可能还排着版,焦点落进去就没人看得见了。
47
+ * 藏在 `hidden`、`inert` 里或者被禁用的要求不算数,顺延给下一个。
48
+ */
49
+ function findInitialFocusTarget(dialog) {
50
+ return [...dialog.querySelectorAll("[data-autofocus]"), ...dialog.querySelectorAll("[data-dialog-default-focus]")].find((request) => isEligible(request, dialog)) ?? null;
51
+ }
52
+ function isEligible(request, dialog) {
53
+ if (request.closest("dialog") !== dialog) return false;
54
+ if (request.matches(":disabled")) return false;
55
+ const hidden = request.closest("[hidden], [inert]");
56
+ return hidden == null || !dialog.contains(hidden);
57
+ }
58
+ //#endregion
59
+ //#region src/Dialog/position.ts
60
+ function formatPosition(value) {
61
+ return typeof value === "number" ? `${value}px` : value;
62
+ }
63
+ /**
64
+ * 把 {@link DialogPosition} 映射为 CSS 偏移。未设置的偏移回退为 `auto`。
65
+ */
66
+ function resolveDialogPositionOffsets(position) {
67
+ const { top, bottom, start, end } = position;
68
+ return {
69
+ top: top !== void 0 ? formatPosition(top) : "auto",
70
+ bottom: bottom !== void 0 ? formatPosition(bottom) : "auto",
71
+ insetInlineStart: start !== void 0 ? formatPosition(start) : "auto",
72
+ insetInlineEnd: end !== void 0 ? formatPosition(end) : "auto"
73
+ };
74
+ }
75
+ function formatDialogSize(value) {
76
+ return typeof value === "number" ? `${value}px` : value;
77
+ }
78
+ //#endregion
79
+ export { useBackdropPress as a, DIALOG_CONTEXT_KEY as i, resolveDialogPositionOffsets as n, findInitialFocusTarget as r, formatDialogSize as t };