@astryx-vue/core 0.28.0 → 0.28.1

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 (126) hide show
  1. package/dist/AppShell/index.d.ts +1 -1
  2. package/dist/AppShell/index.js +1 -1
  3. package/dist/{AppShell-Da255Ktm.js → AppShell-CxUmt6hX.js} +1 -1
  4. package/dist/AvatarGroup/index.d.ts +1 -1
  5. package/dist/Banner/index.d.ts +1 -1
  6. package/dist/BottomSheet/index.d.ts +1 -1
  7. package/dist/BottomSheet/index.js +2 -2
  8. package/dist/{BottomSheet-gctYQ3sV.js → BottomSheet-D3893Ymj.js} +33 -9
  9. package/dist/{BottomSheet-Dn8gpT4m.js → BottomSheet-DVe5Nw9Z.js} +111 -25
  10. package/dist/Breadcrumbs/index.js +1 -1
  11. package/dist/{Breadcrumbs-CmtcXM4e.js → Breadcrumbs-CQa-Jjnn.js} +1 -1
  12. package/dist/Button/index.d.ts +1 -1
  13. package/dist/ButtonGroup/index.d.ts +1 -1
  14. package/dist/Calendar/index.d.ts +1 -1
  15. package/dist/Card/index.d.ts +1 -1
  16. package/dist/Carousel/index.d.ts +1 -1
  17. package/dist/Chat/index.d.ts +1 -1
  18. package/dist/CheckboxInput/index.d.ts +1 -1
  19. package/dist/CheckboxList/index.d.ts +1 -1
  20. package/dist/ClickableCard/index.d.ts +1 -1
  21. package/dist/Code/index.d.ts +1 -1
  22. package/dist/Collapsible/index.d.ts +1 -1
  23. package/dist/ComplexSelector/index.js +1 -1
  24. package/dist/{ComplexSelector-Dq9esodQ.js → ComplexSelector-CZiUA6Gm.js} +1 -1
  25. package/dist/ContextMenu/index.d.ts +1 -1
  26. package/dist/ContextMenu/index.js +1 -1
  27. package/dist/{ContextMenu-DB4XcNKf.js → ContextMenu-8I420g7H.js} +1 -1
  28. package/dist/DateInput/index.d.ts +1 -1
  29. package/dist/DateInput/index.js +1 -1
  30. package/dist/{DateInput-DNqm49AX.js → DateInput-KZF_A_31.js} +2 -2
  31. package/dist/DateRangeInput/index.d.ts +1 -1
  32. package/dist/DateRangeInput/index.js +1 -1
  33. package/dist/{DateRangeInput-Bch513M0.js → DateRangeInput-4GCWgLFN.js} +1 -1
  34. package/dist/DateTimeInput/index.d.ts +1 -1
  35. package/dist/DateTimeInput/index.js +1 -1
  36. package/dist/{DateTimeInput-BCFgCeNy.js → DateTimeInput-BGcdOmRp.js} +3 -3
  37. package/dist/Dialog/index.d.ts +1 -1
  38. package/dist/Divider/index.d.ts +1 -1
  39. package/dist/Drawer/index.d.ts +1 -1
  40. package/dist/DropdownMenu/index.js +2 -2
  41. package/dist/{DropdownMenu-DlfMGzZ2.js → DropdownMenu-B-dBiomz.js} +1 -1
  42. package/dist/{DropdownMenu-D9swCben.js → DropdownMenu-CSqkl-Xl.js} +1 -1
  43. package/dist/InfoTip/index.d.ts +1 -1
  44. package/dist/Link/index.d.ts +1 -1
  45. package/dist/List/index.d.ts +1 -1
  46. package/dist/Markdown/index.d.ts +1 -1
  47. package/dist/MobileNav/index.js +1 -1
  48. package/dist/{MobileNavToggle-Dx7rmb-V.js → MobileNavToggle-D5yGMHU4.js} +1 -1
  49. package/dist/MoreMenu/index.d.ts +1 -1
  50. package/dist/MultiSelector/index.d.ts +1 -1
  51. package/dist/MultiSelector/index.js +1 -1
  52. package/dist/{MultiSelector-BUXFzIla.js → MultiSelector-BSA613nO.js} +1 -1
  53. package/dist/NavItem/index.d.ts +1 -1
  54. package/dist/NumberInput/index.d.ts +1 -1
  55. package/dist/OverflowList/index.d.ts +1 -1
  56. package/dist/Pagination/index.d.ts +1 -1
  57. package/dist/Pagination/index.js +1 -1
  58. package/dist/{Pagination-BNPBvFW1.js → Pagination-DWfvdCpK.js} +1 -1
  59. package/dist/Popover/index.d.ts +1 -1
  60. package/dist/Popover/index.js +1 -1
  61. package/dist/{Popover-MJQZog5m.js → Popover-CB5UYJZc.js} +1 -1
  62. package/dist/PowerSearch/index.d.ts +1 -1
  63. package/dist/PowerSearch/index.js +1 -1
  64. package/dist/{PowerSearch-Bv-yUo6C.js → PowerSearch-BW0jBC1d.js} +7 -7
  65. package/dist/ProgressBar/index.d.ts +1 -1
  66. package/dist/Radio/index.d.ts +1 -1
  67. package/dist/RadioList/index.d.ts +1 -1
  68. package/dist/ScrollableArea/index.d.ts +1 -1
  69. package/dist/SelectableCard/index.d.ts +1 -1
  70. package/dist/Selector/index.d.ts +1 -1
  71. package/dist/Selector/index.js +1 -1
  72. package/dist/{Selector-BrNA4sLV.js → Selector-4sexgsUO.js} +1 -1
  73. package/dist/SideNav/index.d.ts +1 -1
  74. package/dist/Switch/index.d.ts +1 -1
  75. package/dist/TabList/index.d.ts +1 -1
  76. package/dist/Table/index.d.ts +1 -1
  77. package/dist/Table/index.js +1 -1
  78. package/dist/{Table-B0Aj43zB.js → Table-CRLL1RGr.js} +5 -5
  79. package/dist/TextArea/index.d.ts +1 -1
  80. package/dist/TextInput/index.d.ts +1 -1
  81. package/dist/{TimeField-hB88chlQ.js → TimeField-B83zAjAA.js} +1 -1
  82. package/dist/TimeInput/index.d.ts +1 -1
  83. package/dist/TimeInput/index.js +1 -1
  84. package/dist/{TimeInput-JrTs9r66.js → TimeInput-BoIZG-dF.js} +1 -1
  85. package/dist/Timestamp/index.d.ts +1 -1
  86. package/dist/ToggleButton/index.d.ts +1 -1
  87. package/dist/Token/index.d.ts +1 -1
  88. package/dist/Tokenizer/index.d.ts +1 -1
  89. package/dist/Tokenizer/index.js +1 -1
  90. package/dist/{Tokenizer-iJb-WZ55.js → Tokenizer-DrkIayoF.js} +1 -1
  91. package/dist/Toolbar/index.d.ts +1 -1
  92. package/dist/TopNav/index.d.ts +1 -1
  93. package/dist/TopNav/index.js +1 -1
  94. package/dist/{TopNav-ctvKlpxf.js → TopNav-Rcz2zriX.js} +1 -1
  95. package/dist/Typeahead/index.d.ts +1 -1
  96. package/dist/composables/index.d.ts +1 -1
  97. package/dist/composables/index.js +1 -1
  98. package/dist/{index-BhxqUt3y.d.ts → index--kbwaSXW.d.ts} +1 -1
  99. package/dist/{index-CkzTX9pb.d.ts → index-0COIBuxA.d.ts} +57 -57
  100. package/dist/{index-DogWVRJi.d.ts → index-0RIgvtdm.d.ts} +1 -1
  101. package/dist/{index-tpkJfk6X.d.ts → index-Bh-GqMzd.d.ts} +7 -0
  102. package/dist/{index-Bu4R0WZA.d.ts → index-BqQlY3fL.d.ts} +2 -2
  103. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  104. package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
  105. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  106. package/dist/{index-DFLPv9io.d.ts → index-CUuUoX3h.d.ts} +6 -4
  107. package/dist/{index-DDrL_-hJ.d.ts → index-CbA8rR_b.d.ts} +3 -3
  108. package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
  109. package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
  110. package/dist/{index-C6IcBhAn.d.ts → index-ClJINYPl.d.ts} +2 -2
  111. package/dist/{index-T5bzxQ30.d.ts → index-DCyYldjP.d.ts} +1 -1
  112. package/dist/{index-BLsYMZgA.d.ts → index-DW_ASIiu.d.ts} +2 -2
  113. package/dist/{index-Ct6SEtjd.d.ts → index-GyRgg1-v.d.ts} +5 -5
  114. package/dist/{index-CMZnO7VU.d.ts → index-MBiq-7Np.d.ts} +6 -6
  115. package/dist/{index-DIw5D3zj.d.ts → index-ZKBj_1nu.d.ts} +2 -2
  116. package/dist/{index-Ea2V_FSK.d.ts → index-aHC2C89h.d.ts} +4 -4
  117. package/dist/{index-C9uW39Mj.d.ts → index-mK1ICsVg.d.ts} +3 -3
  118. package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
  119. package/dist/index.d.ts +22 -22
  120. package/dist/index.js +22 -22
  121. package/dist/{lazyBottomSheet-CxEu25bK.js → lazyBottomSheet-BK8yIqcZ.js} +1 -1
  122. package/dist/{useRestoreFocus-AeZABFZN.js → useRestoreFocus-DS7uQWok.js} +1 -1
  123. package/package.json +1 -1
  124. package/styles/bottom-sheet.css +26 -5
  125. package/styles/date-input.css +2 -3
  126. package/dist/{index-CHx33xGa.d.ts → index-D8lv2BiD.d.ts} +1 -1
@@ -1,2 +1,2 @@
1
- import { a as AppShellMobileNav, c as AppShellVariant, i as AppShellHeight, n as AppShellBreakpoint, o as AppShellProps, r as AppShellEmits, s as AppShellSlots, t as _default } from "../index-T5bzxQ30.js";
1
+ import { a as AppShellMobileNav, c as AppShellVariant, i as AppShellHeight, n as AppShellBreakpoint, o as AppShellProps, r as AppShellEmits, s as AppShellSlots, t as _default } from "../index-DCyYldjP.js";
2
2
  export { _default as AppShell, type AppShellBreakpoint, type AppShellEmits, type AppShellHeight, type AppShellMobileNav, type AppShellProps, type AppShellSlots, type AppShellVariant };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../AppShell-Da255Ktm.js";
1
+ import { t as _sfc_main } from "../AppShell-CxUmt6hX.js";
2
2
  export { _sfc_main as AppShell };
@@ -11,7 +11,7 @@ import { n as observeMainOverflow } from "./useScrollRegionProps-DwkPUb-O.js";
11
11
  import { a as _sfc_main$2, n as _sfc_main$4, r as _sfc_main$3, t as _sfc_main$5 } from "./LayoutPanel-BPboQAJj.js";
12
12
  import { t as layoutMessages } from "./layout-DhX4-SyE.js";
13
13
  import { t as navMessages } from "./nav-DpKQUHqR.js";
14
- import { n as _sfc_main$7, t as _sfc_main$6 } from "./MobileNavToggle-Dx7rmb-V.js";
14
+ import { n as _sfc_main$7, t as _sfc_main$6 } from "./MobileNavToggle-D5yGMHU4.js";
15
15
  import { t as DEFAULT_WIDTH_BREAKPOINTS } from "./adaptationTypes-Beao49TN.js";
16
16
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, onBeforeUnmount, onMounted, openBlock, provide, reactive, ref, renderSlot, shallowReactive, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
17
17
  import "../styles/app-shell.css";
@@ -1,2 +1,2 @@
1
- import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-CkzTX9pb.js";
1
+ import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-0COIBuxA.js";
2
2
  export { _default as AvatarGroup, _default$1 as AvatarGroupOverflow, type AvatarGroupOverflowEmits, type AvatarGroupOverflowProps, type AvatarGroupOverflowSlots, type AvatarGroupProps };
@@ -1,2 +1,2 @@
1
- import { Jc as BannerEmits, Kc as _default, Xc as BannerSlots, Yc as BannerProps, Zc as BannerStatus, qc as BannerContainer } from "../index-CkzTX9pb.js";
1
+ import { Jc as BannerEmits, Kc as _default, Xc as BannerSlots, Yc as BannerProps, Zc as BannerStatus, qc as BannerContainer } from "../index-0COIBuxA.js";
2
2
  export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
@@ -1,2 +1,2 @@
1
- import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-DFLPv9io.js";
1
+ import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-CUuUoX3h.js";
2
2
  export { _default as BottomSheet, type BottomSheetEmits, type BottomSheetHeight, type BottomSheetMotion, type BottomSheetPadding, type BottomSheetProps, type BottomSheetPurpose, type BottomSheetSlots, type BottomSheetSnapPoint, type BottomSheetState, _default$1 as BottomSheetSwitcher };
@@ -1,3 +1,3 @@
1
- import { n as _sfc_main } from "../BottomSheet-Dn8gpT4m.js";
2
- import { t as _sfc_main$1 } from "../BottomSheet-gctYQ3sV.js";
1
+ import { n as _sfc_main } from "../BottomSheet-DVe5Nw9Z.js";
2
+ import { t as _sfc_main$1 } from "../BottomSheet-D3893Ymj.js";
3
3
  export { _sfc_main as BottomSheet, _sfc_main$1 as BottomSheetSwitcher };
@@ -1,11 +1,16 @@
1
- import { i as bottomSheetSwitcherKey, r as useSheetLayerDismiss } from "./BottomSheet-Dn8gpT4m.js";
1
+ import { a as focusSheetOnOpen, i as bottomSheetSwitcherKey, r as useSheetLayerDismiss } from "./BottomSheet-DVe5Nw9Z.js";
2
2
  import { s as isImeKeyEvent } from "./layerDepth-D3Rh8T5C.js";
3
3
  import { t as useFocusTrap } from "./useFocusTrap-BD9POtMp.js";
4
4
  import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
5
- import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, mergeProps, nextTick, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, shallowRef, useModel, useTemplateRef, watch } from "vue";
5
+ import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-CEvrMbxH.js";
6
+ import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeModels, mergeProps, nextTick, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, shallowRef, useModel, useTemplateRef, watch } from "vue";
6
7
  import "../styles/bottom-sheet.css";
7
8
  //#region src/BottomSheet/BottomSheetSwitcher.vue
8
- const _hoisted_1 = ["aria-label", "aria-modal"];
9
+ const _hoisted_1 = [
10
+ "data-settled",
11
+ "aria-label",
12
+ "aria-modal"
13
+ ];
9
14
  const _sfc_main = /*@__PURE__*/ defineComponent({
10
15
  name: "AstryxBottomSheetSwitcher",
11
16
  inheritAttrs: false,
@@ -31,6 +36,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
31
36
  const sheets = shallowRef(/* @__PURE__ */ new Map());
32
37
  const dialog = useTemplateRef("dialog");
33
38
  const isScrollLocked = ref(false);
39
+ const isSettled = ref(getCurrentInstance()?.vnode.el != null && activeSheet.value != null);
40
+ let focusRecord = null;
34
41
  let handoffTimer;
35
42
  useScrollLock(isScrollLocked);
36
43
  function registration(id) {
@@ -90,18 +97,27 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
90
97
  const element = dialog.value;
91
98
  if (!element) return;
92
99
  if (!element.open) {
100
+ focusRecord?.stop();
101
+ focusRecord = trackLayerFocus({ getLayer: () => dialog.value });
93
102
  if (props.hasScrim) element.showModal();
94
103
  else element.show();
95
104
  }
96
105
  isScrollLocked.value = props.hasScrim;
97
- nextTick(() => {
98
- const panel = activeElement.value;
99
- if (!panel) return;
100
- (panel.querySelector("[data-autofocus]") ?? panel).focus({ preventScroll: true });
106
+ nextTick(() => focusSheetOnOpen(activeElement.value, true));
107
+ }
108
+ function returnFocus(record, wasStranded) {
109
+ if (wasStranded) restoreLayerFocus(record, {
110
+ layer: null,
111
+ name: "BottomSheetSwitcher"
101
112
  });
113
+ record.stop();
102
114
  }
103
115
  function closeDialog() {
116
+ const record = focusRecord;
117
+ focusRecord = null;
118
+ const wasStranded = record != null && isLayerFocusStranded(record, dialog.value);
104
119
  dialog.value?.close();
120
+ if (record != null) returnFocus(record, wasStranded);
105
121
  isScrollLocked.value = false;
106
122
  retainedId.value = null;
107
123
  alignmentOffset.value = 0;
@@ -141,7 +157,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
141
157
  if (event.target !== event.currentTarget) return;
142
158
  if (props.hasScrim && flowPurpose.value === "info") setActive(null);
143
159
  }
144
- watch(activeSheet, (id) => {
160
+ watch(activeSheet, (id, previous) => {
161
+ if (previous != null) isSettled.value = false;
145
162
  if (id) openDialog();
146
163
  else closeDialog();
147
164
  }, { flush: "post" });
@@ -149,6 +166,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
149
166
  if (activeSheet.value) openDialog();
150
167
  });
151
168
  onBeforeUnmount(() => {
169
+ const record = focusRecord;
170
+ focusRecord = null;
171
+ if (record != null) {
172
+ const wasStranded = isLayerFocusStranded(record, dialog.value);
173
+ queueMicrotask(() => returnFocus(record, wasStranded));
174
+ }
152
175
  if (handoffTimer != null) clearTimeout(handoffTimer);
153
176
  isScrollLocked.value = false;
154
177
  });
@@ -160,8 +183,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
160
183
  "astryx-bottom-sheet-dialog--scrim": __props.hasScrim,
161
184
  "astryx-bottom-sheet-dialog--closing": activeSheet.value == null
162
185
  }],
186
+ "data-settled": isSettled.value || void 0,
163
187
  "aria-label": dialogLabel.value,
164
- "aria-modal": __props.hasScrim && activeSheet.value != null ? "true" : void 0,
188
+ "aria-modal": isScrollLocked.value && activeSheet.value != null ? "true" : void 0,
165
189
  onCancel,
166
190
  onClick: onDialogClick,
167
191
  onKeydown
@@ -3,14 +3,15 @@ import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
3
3
  import { i as isTopLayer, n as useLayerDepth, o as pushLayer, s as isImeKeyEvent, t as provideLayerDepth } from "./layerDepth-D3Rh8T5C.js";
4
4
  import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
5
5
  import { t as useFocusTrap } from "./useFocusTrap-BD9POtMp.js";
6
- import { t as useRestoreFocus } from "./useRestoreFocus-AeZABFZN.js";
6
+ import { t as useRestoreFocus } from "./useRestoreFocus-DS7uQWok.js";
7
7
  import { t as attachScrollKeyboardDelegation } from "./scrollKeyboardDelegation-DZ4t5PvC.js";
8
8
  import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
9
+ import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-CEvrMbxH.js";
9
10
  import { t as createModalOutletHandle } from "./modalOutlet-Drr9a16b.js";
10
11
  import { o as provideLayoutContainer } from "./context-D-Hwh-Jf.js";
11
12
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
12
13
  import { t as bottomSheetEscapeKey } from "./escape-DzSxSmez.js";
13
- import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, onUpdated, openBlock, provide, ref, renderSlot, toValue, unref, useAttrs, useModel, useTemplateRef, watch, withCtx } from "vue";
14
+ import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, onUpdated, openBlock, provide, ref, renderSlot, toValue, unref, useAttrs, useModel, useTemplateRef, watch, withCtx } from "vue";
14
15
  import "../styles/bottom-sheet.css";
15
16
  //#region \0rolldown/runtime.js
16
17
  var __defProp = Object.defineProperty;
@@ -139,6 +140,10 @@ function transitionMsFor(element, property) {
139
140
  return Math.max(longest, duration + (delays[index % delays.length] ?? 0));
140
141
  }, 0);
141
142
  }
143
+ /** Whether a CSS transition of `property` still runs on `element`. */
144
+ function hasRunningTransition(element, property) {
145
+ return (element.getAnimations?.() ?? []).some((animation) => animation.transitionProperty === property && (animation.playState === "running" || animation.playState === "paused"));
146
+ }
142
147
  /**
143
148
  * Calls `complete` when `element` finishes transitioning `property`: on the
144
149
  * matching `transitionend`/`transitioncancel`, or on a timer backstop so a
@@ -152,6 +157,7 @@ function waitForTransition(element, property, complete) {
152
157
  }
153
158
  let done = false;
154
159
  let timer = null;
160
+ let backstopMs = 0;
155
161
  let onTransitionEnd = () => {};
156
162
  const finish = () => {
157
163
  if (done) return;
@@ -162,7 +168,15 @@ function waitForTransition(element, property, complete) {
162
168
  complete();
163
169
  };
164
170
  onTransitionEnd = (event) => {
165
- if (event.target === element && event.propertyName === property) finish();
171
+ if (event.target !== element || event.propertyName !== property) return;
172
+ if (event.type === "transitioncancel" && hasRunningTransition(element, property)) {
173
+ if (timer != null) {
174
+ clearTimeout(timer);
175
+ timer = setTimeout(finish, backstopMs);
176
+ }
177
+ return;
178
+ }
179
+ finish();
166
180
  };
167
181
  const duration = transitionMsFor(element, property);
168
182
  if (duration <= 0) {
@@ -171,7 +185,8 @@ function waitForTransition(element, property, complete) {
171
185
  }
172
186
  element.addEventListener("transitionend", onTransitionEnd);
173
187
  element.addEventListener("transitioncancel", onTransitionEnd);
174
- timer = setTimeout(finish, duration + BACKSTOP_BUFFER_MS);
188
+ backstopMs = duration + BACKSTOP_BUFFER_MS;
189
+ timer = setTimeout(finish, backstopMs);
175
190
  return () => {
176
191
  if (timer != null) clearTimeout(timer);
177
192
  element.removeEventListener("transitionend", onTransitionEnd);
@@ -268,6 +283,22 @@ const MAGNET_RANGE = 40;
268
283
  const OVERSCROLL_RESISTANCE = .35;
269
284
  const OVERSCROLL_MAX = 48;
270
285
  const VELOCITY_WINDOW_MS = 100;
286
+ /**
287
+ * Whether a gesture that lands on `target` began inside another layer rendered
288
+ * in this sheet's content: a `<dialog>` between the target and the body.
289
+ * A sheet or Dialog opened from inside a sheet renders its dialog as a
290
+ * descendant of the host's body, so its pointer and touch events bubble
291
+ * through the host's listeners. That gesture is the layer's own: the host
292
+ * neither arms a drag on it nor takes the pointer for it.
293
+ */
294
+ function isInsideNestedLayer(target, body) {
295
+ for (let element = target instanceof Element ? target : null; element != null && element !== body; element = element.parentElement) if (element.localName === "dialog") return true;
296
+ return false;
297
+ }
298
+ /** Scroll edges a body gesture may arm on, or `null` when the gesture belongs to a nested layer. */
299
+ function armingEdges(body, target) {
300
+ return isInsideNestedLayer(target, body) ? null : blockScrollEdges(body, target);
301
+ }
271
302
  function magnetize(value, targets) {
272
303
  if (targets.length === 0) return value;
273
304
  let nearest = targets[0];
@@ -594,7 +625,11 @@ function useSheetGestures(options) {
594
625
  if (event.button != null && event.button !== 0) return;
595
626
  const element = body.value;
596
627
  if (!element) return;
597
- const edges = blockScrollEdges(element, event.target);
628
+ const edges = armingEdges(element, event.target);
629
+ if (edges == null) {
630
+ pendingBody = null;
631
+ return;
632
+ }
598
633
  pendingBody = {
599
634
  pointerId: event.pointerId,
600
635
  startY: event.clientY,
@@ -611,17 +646,12 @@ function useSheetGestures(options) {
611
646
  }
612
647
  const touch = event.changedTouches[0];
613
648
  const element = body.value;
614
- if (!touch || !element) {
615
- touchArming = null;
616
- return;
617
- }
618
- const edges = blockScrollEdges(element, event.target);
619
- touchArming = {
649
+ const edges = touch && element ? armingEdges(element, event.target) : null;
650
+ touchArming = touch && edges ? {
620
651
  identifier: touch.identifier,
621
652
  startY: touch.clientY,
622
- atTop: edges.atTop,
623
- atBottom: edges.atBottom
624
- };
653
+ ...edges
654
+ } : null;
625
655
  }
626
656
  function onTouchMove(event) {
627
657
  if (event.touches.length > 1) {
@@ -889,6 +919,38 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
889
919
  }
890
920
  });
891
921
  //#endregion
922
+ //#region src/BottomSheet/focusSheetPanel.ts
923
+ /**
924
+ * 抽屉里第一个可以接住焦点的 `data-autofocus` 元素拿到焦点。
925
+ *
926
+ * 抽屉里再开的抽屉或对话框,它的元素属于那一层;inert 的、看不见的、聚焦不上的都跳过。
927
+ * 返回有没有找到。
928
+ */
929
+ function focusFirstEligibleAutofocus(panel) {
930
+ const dialog = panel.closest("dialog");
931
+ for (const candidate of panel.querySelectorAll("[data-autofocus]")) {
932
+ if (candidate.closest("dialog") !== dialog || candidate.closest("[inert]") != null || typeof candidate.checkVisibility === "function" && !candidate.checkVisibility()) continue;
933
+ candidate.focus({ preventScroll: true });
934
+ if (candidate.ownerDocument.activeElement === candidate) return true;
935
+ }
936
+ return false;
937
+ }
938
+ /**
939
+ * 抽屉打开时把焦点放到该去的地方。
940
+ *
941
+ * 原生对话框打开时会按自己的规矩聚焦(Chromium 落在面板上,Firefox 落在第一个控件上),
942
+ * 那不是使用者的选择:只要有可聚焦的 `data-autofocus` 元素,它就盖过原生的落点,所有浏览器一致。
943
+ * 没有的话,焦点已经在抽屉里就不动;不在里面且这一层要接管焦点(模态的),就落在面板上。
944
+ */
945
+ function focusSheetOnOpen(panel, takesPanelFocus) {
946
+ if (panel == null) return;
947
+ const active = panel.ownerDocument.activeElement;
948
+ const isInsidePanel = active != null && panel.contains(active) && active.closest("dialog") === panel.closest("dialog");
949
+ if (isInsidePanel && active.hasAttribute("data-autofocus")) return;
950
+ if (focusFirstEligibleAutofocus(panel)) return;
951
+ if (!isInsidePanel && takesPanelFocus) panel.focus({ preventScroll: true });
952
+ }
953
+ //#endregion
892
954
  //#region src/BottomSheet/switcher.ts
893
955
  const bottomSheetSwitcherKey = Symbol("astryx-bottom-sheet-switcher");
894
956
  //#endregion
@@ -937,6 +999,7 @@ const _hoisted_3 = {
937
999
  class: "astryx-bottom-sheet__positioner astryx-bottom-sheet__positioner--inline"
938
1000
  };
939
1001
  const _hoisted_4 = [
1002
+ "data-settled",
940
1003
  "aria-label",
941
1004
  "aria-labelledby",
942
1005
  "aria-modal",
@@ -999,6 +1062,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
999
1062
  const panel = useTemplateRef("panel");
1000
1063
  const isPresented = ref(false);
1001
1064
  const scrimOpacity = ref(1);
1065
+ const isModalShown = ref(false);
1066
+ const isSettled = ref(getCurrentInstance()?.vnode.el != null && isOpen.value && !hosted.value && !props.isInline);
1002
1067
  const panelState = computed(() => {
1003
1068
  if (retained.value) return "exiting";
1004
1069
  if (open.value) return "open";
@@ -1014,7 +1079,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1014
1079
  });
1015
1080
  useRestoreFocus({
1016
1081
  isEnabled: computed(() => !props.isInline && !hosted.value),
1017
- shouldRestore: isOpen
1082
+ shouldRestore: isOpen,
1083
+ preventScroll: true
1018
1084
  });
1019
1085
  /** The dialog carries the accessible name; the panel keeps every other attribute. */
1020
1086
  const dialogLabel = computed(() => {
@@ -1040,14 +1106,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1040
1106
  return panel.value?.element ?? null;
1041
1107
  }
1042
1108
  function focusPanel() {
1043
- const element = panelElement();
1044
- if (!element || typeof document === "undefined") return;
1045
- const active = document.activeElement;
1046
- if (active != null && element.contains(active)) return;
1047
- const autofocus = element.querySelector("[data-autofocus]");
1048
- if (autofocus != null) autofocus.focus({ preventScroll: true });
1049
- else if (props.hasScrim) element.focus({ preventScroll: true });
1109
+ if (typeof document === "undefined") return;
1110
+ focusSheetOnOpen(panelElement(), props.hasScrim);
1050
1111
  }
1112
+ let focusRecord = null;
1051
1113
  const modalOutlet = createModalOutletHandle();
1052
1114
  function openSheet() {
1053
1115
  if (props.isInline || typeof document === "undefined") return;
@@ -1055,8 +1117,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1055
1117
  if (!dialogElement) return;
1056
1118
  isPresented.value = true;
1057
1119
  if (!dialogElement.open) {
1120
+ focusRecord?.stop();
1121
+ focusRecord = trackLayerFocus({ getLayer: () => dialog.value });
1058
1122
  if (props.hasScrim) {
1059
1123
  dialogElement.showModal();
1124
+ isModalShown.value = true;
1060
1125
  if (!hosted.value) modalOutlet.attach(dialogElement);
1061
1126
  } else dialogElement.show();
1062
1127
  }
@@ -1068,8 +1133,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1068
1133
  dialog.value?.close();
1069
1134
  unlockScroll();
1070
1135
  isPresented.value = false;
1136
+ isModalShown.value = false;
1137
+ focusRecord?.stop();
1138
+ focusRecord = null;
1071
1139
  const target = toValue(props.finalFocusRef);
1072
- if (target?.isConnected) focusForLastInput(target);
1140
+ if (target?.isConnected) focusForLastInput(target, { preventScroll: true });
1073
1141
  }
1074
1142
  const layer = useSheetLayerDismiss({
1075
1143
  isActive: computed(() => !hosted.value && !props.isInline && (isOpen.value || isPresented.value)),
@@ -1122,6 +1190,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1122
1190
  if (hosted.value || !value) return;
1123
1191
  openSheet();
1124
1192
  }, { flush: "post" });
1193
+ watch(isOpen, (value) => {
1194
+ if (value) return;
1195
+ isSettled.value = false;
1196
+ isModalShown.value = false;
1197
+ });
1125
1198
  const isExiting = computed(() => !hosted.value && !props.isInline && !isOpen.value && isPresented.value);
1126
1199
  let releaseExitHold = null;
1127
1200
  watch(isExiting, (exiting) => {
@@ -1142,6 +1215,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1142
1215
  if (isOpen.value) openSheet();
1143
1216
  });
1144
1217
  onBeforeUnmount(() => {
1218
+ const record = focusRecord;
1219
+ focusRecord = null;
1220
+ if (record != null) {
1221
+ const wasStranded = isLayerFocusStranded(record, dialog.value);
1222
+ queueMicrotask(() => {
1223
+ if (wasStranded) restoreLayerFocus(record, {
1224
+ layer: null,
1225
+ name: "BottomSheet"
1226
+ });
1227
+ record.stop();
1228
+ });
1229
+ }
1145
1230
  releaseExitHold?.();
1146
1231
  releaseExitHold = null;
1147
1232
  modalOutlet.detach();
@@ -1210,9 +1295,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1210
1295
  "astryx-bottom-sheet-dialog--scrim": __props.hasScrim,
1211
1296
  "astryx-bottom-sheet-dialog--closing": !isOpen.value && isPresented.value
1212
1297
  }]),
1298
+ "data-settled": isSettled.value || void 0,
1213
1299
  "aria-label": dialogLabel.value,
1214
1300
  "aria-labelledby": labelledBy.value,
1215
- "aria-modal": __props.hasScrim && isOpen.value ? "true" : void 0,
1301
+ "aria-modal": __props.hasScrim && isModalShown.value ? "true" : void 0,
1216
1302
  role: __props.purpose === "required" ? "alertdialog" : void 0,
1217
1303
  style: normalizeStyle(dialogStyle.value),
1218
1304
  onCancel,
@@ -1251,4 +1337,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1251
1337
  }
1252
1338
  });
1253
1339
  //#endregion
1254
- export { bottomSheetSwitcherKey as i, _sfc_main as n, useSheetLayerDismiss as r, BottomSheet_exports as t };
1340
+ export { focusSheetOnOpen as a, bottomSheetSwitcherKey as i, _sfc_main as n, useSheetLayerDismiss as r, BottomSheet_exports as t };
@@ -1,3 +1,3 @@
1
1
  import { a as _sfc_main$1, i as _sfc_main$2, r as _sfc_main$3 } from "../useMenuDrillIn-BQx6lQMz.js";
2
- import { n as _sfc_main, t as _sfc_main$4 } from "../Breadcrumbs-CmtcXM4e.js";
2
+ import { n as _sfc_main, t as _sfc_main$4 } from "../Breadcrumbs-CQa-Jjnn.js";
3
3
  export { _sfc_main as BreadcrumbItem, _sfc_main$1 as BreadcrumbMenuCheckboxItem, _sfc_main$2 as BreadcrumbMenuRadioGroup, _sfc_main$3 as BreadcrumbMenuRadioItem, _sfc_main$4 as Breadcrumbs };
@@ -3,7 +3,7 @@ import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide
3
3
  import { t as _sfc_main$2 } from "./Icon-Dk0jccgU.js";
4
4
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
5
5
  import { n as useDevWarning } from "./useDevWarning-B2fsk2B-.js";
6
- import { t as _sfc_main$3 } from "./DropdownMenu-DlfMGzZ2.js";
6
+ import { t as _sfc_main$3 } from "./DropdownMenu-B-dBiomz.js";
7
7
  import { t as useCloseMobileDrawer } from "./closeOnActivate-D1KgKWwm.js";
8
8
  import { n as isNavigableHref } from "./link-DuuA2eCL.js";
9
9
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, onMounted, onScopeDispose, onUpdated, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, unref, useId, useSlots, useTemplateRef, watch, withCtx } from "vue";
@@ -1,3 +1,3 @@
1
1
  import { a as ButtonProps, c as ButtonSizeValue, d as ButtonVariantMap, i as ButtonLinkElement, l as ButtonSlots, n as ButtonElevation, o as ButtonRootElement, r as ButtonEmits, s as ButtonSize, t as ButtonClickAction, u as ButtonVariant } from "../types-DRpOiAlm.js";
2
- import { t as _default } from "../index-BhxqUt3y.js";
2
+ import { t as _default } from "../index--kbwaSXW.js";
3
3
  export { _default as Button, _default as default, type ButtonClickAction, type ButtonElevation, type ButtonEmits, type ButtonLinkElement, type ButtonProps, type ButtonRootElement, type ButtonSize, type ButtonSizeValue, type ButtonSlots, type ButtonVariant, type ButtonVariantMap };
@@ -1,2 +1,2 @@
1
- import { Gc as ButtonGroupOrientation, Hc as _default, Uc as ButtonGroupProps, Wc as ButtonGroupSlots } from "../index-CkzTX9pb.js";
1
+ import { Gc as ButtonGroupOrientation, Hc as _default, Uc as ButtonGroupProps, Wc as ButtonGroupSlots } from "../index-0COIBuxA.js";
2
2
  export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
@@ -1,2 +1,2 @@
1
- import { Ac as UseCalendarDaysReturn, Bc as CalendarRangeValue, Dc as useCalendarNavigation, Ec as UseCalendarNavigationReturn, Fc as _default, Ic as CalendarEmits, Lc as CalendarHandle, Mc as UseCalendarConstraintsOptions, Nc as UseCalendarConstraintsReturn, Oc as CalendarDay, Pc as useCalendarConstraints, Rc as CalendarHandleRef, Tc as UseCalendarNavigationOptions, Vc as CalendarSlots, jc as useCalendarDays, kc as UseCalendarDaysOptions, zc as CalendarProps } from "../index-CkzTX9pb.js";
1
+ import { Ac as UseCalendarDaysReturn, Bc as CalendarRangeValue, Dc as useCalendarNavigation, Ec as UseCalendarNavigationReturn, Fc as _default, Ic as CalendarEmits, Lc as CalendarHandle, Mc as UseCalendarConstraintsOptions, Nc as UseCalendarConstraintsReturn, Oc as CalendarDay, Pc as useCalendarConstraints, Rc as CalendarHandleRef, Tc as UseCalendarNavigationOptions, Vc as CalendarSlots, jc as useCalendarDays, kc as UseCalendarDaysOptions, zc as CalendarProps } from "../index-0COIBuxA.js";
2
2
  export { _default as Calendar, type CalendarDay, type CalendarEmits, type CalendarHandle, type CalendarHandleRef, type CalendarProps, type CalendarRangeValue, type CalendarSlots, type UseCalendarConstraintsOptions, type UseCalendarConstraintsReturn, type UseCalendarDaysOptions, type UseCalendarDaysReturn, type UseCalendarNavigationOptions, type UseCalendarNavigationReturn, useCalendarConstraints, useCalendarDays, useCalendarNavigation };
@@ -1,2 +1,2 @@
1
- import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-Bgk1Rj2A.js";
1
+ import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-CTjkJP4x.js";
2
2
  export { _default as Card, type CardElevation, type CardProps, type CardSizeValue, type CardSlots, type CardVariant, type CardVariantMap };
@@ -1,2 +1,2 @@
1
- import { Cc as CarouselProps, Sc as CarouselHandle, bc as _default, wc as CarouselSlots, xc as CarouselGap } from "../index-CkzTX9pb.js";
1
+ import { Cc as CarouselProps, Sc as CarouselHandle, bc as _default, wc as CarouselSlots, xc as CarouselGap } from "../index-0COIBuxA.js";
2
2
  export { _default as Carousel, type CarouselGap, type CarouselHandle, type CarouselProps, type CarouselSlots };
@@ -1,2 +1,2 @@
1
- import { $o as _default$17, $s as ChatMessageListProps, As as ChatComposerToken, Bo as SpeechRecognitionError, Bs as ChatTokenizedTextProps, Cs as ChatComposerInputControl, Ds as ChatComposerProps, Es as ChatComposerInputProps, Fo as UseChatPasteAsTokenReturn, Fs as ChatComposerTriggerItem, Go as UseChatComposerTokensOptions, Gs as ChatLayoutScrollButtonProps, Ho as UseSpeechRecognitionReturn, Hs as ChatDensity, Io as pastedTextLabel, Is as ChatDictationButtonProps, Jo as ChatComposerContextValue, Js as ChatMessageBubbleGroup, Ko as UseChatComposerTokensReturn, Ks as ChatLayoutScrollSlotProps, Lo as useChatPasteAsToken, Ls as ChatSendButtonEmits, Ms as ChatComposerTokenCustom, No as PASTE_TOKEN_THRESHOLD, Ns as ChatComposerTokenElementProps, Os as ChatComposerSlots, Po as UseChatPasteAsTokenOptions, Ps as ChatComposerTrigger, Qo as useChatMessageContext, Qs as ChatMessageListAlign, Ro as UseChatDictationOptions, Rs as ChatSendButtonProps, Ss as ChatComposerEmits, Ts as ChatComposerInputHandle, Uo as useSpeechRecognition, Us as ChatLayoutProps, Vo as UseSpeechRecognitionOptions, Vs as ChatTokenizedTextSlots, Wo as TokenPortal, Ws as ChatLayoutScrollButtonEmits, Xo as useChatLayoutContext, Xs as ChatMessageBubbleSlots, Yo as useChatComposerContext, Ys as ChatMessageBubbleProps, Zo as useChatListContext, Zs as ChatMessageBubbleVariant, _c as ChatToolCallsSlots, _s as ChatComposerDensity, ac as ChatMessageSlots, as as _default$11, bs as ChatComposerDrawerSlots, cc as ChatReasoningProps, cs as _default$8, dc as ChatSystemMessageSlots, ds as _default$5, ec as ChatMessageListSlots, es as _default$16, fc as ChatSystemMessageVariant, fs as _default$4, gc as ChatToolCallsProps, gs as _default, hc as ChatToolCallsEmits, hs as _default$1, ic as ChatMessageSender, is as _default$12, js as ChatComposerTokenBadge, ks as ChatComposerStatus, lc as ChatReasoningSlots, ls as _default$7, mc as ChatToolCallStatus, ms as _default$2, nc as ChatMessageMetadataSlots, ns as _default$14, oc as ChatMessageStatus, os as _default$10, pc as ChatToolCallItem, ps as _default$3, qo as useChatComposerTokens, qs as ChatLayoutSlots, rc as ChatMessageProps, rs as _default$13, sc as ChatReasoningEmits, ss as _default$9, tc as ChatMessageMetadataProps, ts as _default$15, uc as ChatSystemMessageProps, us as _default$6, vc as ChatTypingIndicatorProps, vs as ChatComposerDrawerEmits, ws as ChatComposerInputEmits, xs as ChatComposerElevation, yc as ChatUnreadDividerProps, ys as ChatComposerDrawerProps, zo as useChatDictation, zs as ChatSendButtonSlots } from "../index-CkzTX9pb.js";
1
+ import { $o as _default$17, $s as ChatMessageListProps, As as ChatComposerToken, Bo as SpeechRecognitionError, Bs as ChatTokenizedTextProps, Cs as ChatComposerInputControl, Ds as ChatComposerProps, Es as ChatComposerInputProps, Fo as UseChatPasteAsTokenReturn, Fs as ChatComposerTriggerItem, Go as UseChatComposerTokensOptions, Gs as ChatLayoutScrollButtonProps, Ho as UseSpeechRecognitionReturn, Hs as ChatDensity, Io as pastedTextLabel, Is as ChatDictationButtonProps, Jo as ChatComposerContextValue, Js as ChatMessageBubbleGroup, Ko as UseChatComposerTokensReturn, Ks as ChatLayoutScrollSlotProps, Lo as useChatPasteAsToken, Ls as ChatSendButtonEmits, Ms as ChatComposerTokenCustom, No as PASTE_TOKEN_THRESHOLD, Ns as ChatComposerTokenElementProps, Os as ChatComposerSlots, Po as UseChatPasteAsTokenOptions, Ps as ChatComposerTrigger, Qo as useChatMessageContext, Qs as ChatMessageListAlign, Ro as UseChatDictationOptions, Rs as ChatSendButtonProps, Ss as ChatComposerEmits, Ts as ChatComposerInputHandle, Uo as useSpeechRecognition, Us as ChatLayoutProps, Vo as UseSpeechRecognitionOptions, Vs as ChatTokenizedTextSlots, Wo as TokenPortal, Ws as ChatLayoutScrollButtonEmits, Xo as useChatLayoutContext, Xs as ChatMessageBubbleSlots, Yo as useChatComposerContext, Ys as ChatMessageBubbleProps, Zo as useChatListContext, Zs as ChatMessageBubbleVariant, _c as ChatToolCallsSlots, _s as ChatComposerDensity, ac as ChatMessageSlots, as as _default$11, bs as ChatComposerDrawerSlots, cc as ChatReasoningProps, cs as _default$8, dc as ChatSystemMessageSlots, ds as _default$5, ec as ChatMessageListSlots, es as _default$16, fc as ChatSystemMessageVariant, fs as _default$4, gc as ChatToolCallsProps, gs as _default, hc as ChatToolCallsEmits, hs as _default$1, ic as ChatMessageSender, is as _default$12, js as ChatComposerTokenBadge, ks as ChatComposerStatus, lc as ChatReasoningSlots, ls as _default$7, mc as ChatToolCallStatus, ms as _default$2, nc as ChatMessageMetadataSlots, ns as _default$14, oc as ChatMessageStatus, os as _default$10, pc as ChatToolCallItem, ps as _default$3, qo as useChatComposerTokens, qs as ChatLayoutSlots, rc as ChatMessageProps, rs as _default$13, sc as ChatReasoningEmits, ss as _default$9, tc as ChatMessageMetadataProps, ts as _default$15, uc as ChatSystemMessageProps, us as _default$6, vc as ChatTypingIndicatorProps, vs as ChatComposerDrawerEmits, ws as ChatComposerInputEmits, xs as ChatComposerElevation, yc as ChatUnreadDividerProps, ys as ChatComposerDrawerProps, zo as useChatDictation, zs as ChatSendButtonSlots } from "../index-0COIBuxA.js";
2
2
  export { _default as ChatComposer, type ChatComposerContextValue, type ChatComposerDensity, _default$1 as ChatComposerDrawer, type ChatComposerDrawerEmits, type ChatComposerDrawerProps, type ChatComposerDrawerSlots, type ChatComposerElevation, type ChatComposerEmits, _default$2 as ChatComposerInput, type ChatComposerInputControl, type ChatComposerInputEmits, type ChatComposerInputHandle, type ChatComposerInputProps, type ChatComposerProps, type ChatComposerSlots, type ChatComposerStatus, type ChatComposerToken, type ChatComposerTokenBadge, type ChatComposerTokenCustom, _default$3 as ChatComposerTokenElement, type ChatComposerTokenElementProps, type ChatComposerTrigger, type ChatComposerTriggerItem, type ChatDensity, _default$4 as ChatDictationButton, type ChatDictationButtonProps, _default$5 as ChatLayout, type ChatLayoutProps, _default$6 as ChatLayoutScrollButton, type ChatLayoutScrollButtonEmits, type ChatLayoutScrollButtonProps, type ChatLayoutScrollSlotProps, type ChatLayoutSlots, _default$7 as ChatMessage, _default$8 as ChatMessageBubble, type ChatMessageBubbleGroup, type ChatMessageBubbleProps, type ChatMessageBubbleSlots, type ChatMessageBubbleVariant, _default$9 as ChatMessageList, type ChatMessageListAlign, type ChatMessageListProps, type ChatMessageListSlots, _default$10 as ChatMessageMetadata, type ChatMessageMetadataProps, type ChatMessageMetadataSlots, type ChatMessageProps, type ChatMessageSender, type ChatMessageSlots, type ChatMessageStatus, _default$11 as ChatReasoning, type ChatReasoningEmits, type ChatReasoningProps, type ChatReasoningSlots, _default$12 as ChatSendButton, type ChatSendButtonEmits, type ChatSendButtonProps, type ChatSendButtonSlots, _default$13 as ChatSystemMessage, type ChatSystemMessageProps, type ChatSystemMessageSlots, type ChatSystemMessageVariant, _default$14 as ChatTokenizedText, type ChatTokenizedTextProps, type ChatTokenizedTextSlots, type ChatToolCallItem, type ChatToolCallStatus, _default$15 as ChatToolCalls, type ChatToolCallsEmits, type ChatToolCallsProps, type ChatToolCallsSlots, _default$16 as ChatTypingIndicator, type ChatTypingIndicatorProps, _default$17 as ChatUnreadDivider, type ChatUnreadDividerProps, PASTE_TOKEN_THRESHOLD, type SpeechRecognitionError, type TokenPortal, type UseChatComposerTokensOptions, type UseChatComposerTokensReturn, type UseChatDictationOptions, type UseChatPasteAsTokenOptions, type UseChatPasteAsTokenReturn, type UseSpeechRecognitionOptions, type UseSpeechRecognitionReturn, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
@@ -1,2 +1,2 @@
1
- import { Ao as CheckboxInputProps, Do as CheckboxInputChangeAction, Eo as _default, Mo as CheckboxValue, Oo as CheckboxInputChangeEvent, jo as CheckboxInputSlots, ko as CheckboxInputEmits } from "../index-CkzTX9pb.js";
1
+ import { Ao as CheckboxInputProps, Do as CheckboxInputChangeAction, Eo as _default, Mo as CheckboxValue, Oo as CheckboxInputChangeEvent, jo as CheckboxInputSlots, ko as CheckboxInputEmits } from "../index-0COIBuxA.js";
2
2
  export { _default as CheckboxInput, type CheckboxInputChangeAction, type CheckboxInputChangeEvent, type CheckboxInputEmits, type CheckboxInputProps, type CheckboxInputSlots, type CheckboxValue };
@@ -1,2 +1,2 @@
1
- import { Co as CheckboxListItemEmits, So as CheckboxListEmits, To as CheckboxListProps, bo as _default$1, wo as CheckboxListItemProps, xo as _default } from "../index-CkzTX9pb.js";
1
+ import { Co as CheckboxListItemEmits, So as CheckboxListEmits, To as CheckboxListProps, bo as _default$1, wo as CheckboxListItemProps, xo as _default } from "../index-0COIBuxA.js";
2
2
  export { _default as CheckboxList, type CheckboxListEmits, _default$1 as CheckboxListItem, type CheckboxListItemEmits, type CheckboxListItemProps, type CheckboxListProps };
@@ -1,2 +1,2 @@
1
- import { _o as ClickableCardEmits, go as _default, vo as ClickableCardProps, yo as ClickableCardSlots } from "../index-CkzTX9pb.js";
1
+ import { _o as ClickableCardEmits, go as _default, vo as ClickableCardProps, yo as ClickableCardSlots } from "../index-0COIBuxA.js";
2
2
  export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
@@ -1,4 +1,4 @@
1
1
  import { a as SyntaxThemeInput, c as SyntaxTokenValue, i as SyntaxThemeDefinition, l as defineSyntaxTheme, n as SYNTAX_TOKEN_KEYS, o as SyntaxThemeTokens, r as SyntaxDiffTokenKey, s as SyntaxTokenKey, t as DIFF_SYNTAX_TOKEN_KEYS, u as githubDark } from "../syntaxTheme-CwVEcVDk.js";
2
- import { A as _default$1, B as CodeSize, C as applyHighlightRanges, D as diffLineKind, E as DiffLines, F as CodeBlockSize, H as SyntaxToken, I as CodeBlockTokenizer, L as CodeColor, M as CodeBlockContainer, N as CodeBlockEmits, O as parseFenceLanguage, P as CodeBlockProps, R as CodeHighlightMode, S as HIGHLIGHTED_TOKEN_TYPES, T as DiffLineKind, U as TokenLine, V as CodeSlots, _ as oneDarkPro, a as tokenize, b as tokyoNight, c as allSyntaxPresets, d as darkSyntaxPresets, f as dracula, g as nord, h as monokai, i as flatTokensToLines, j as _default, k as splitDiffLines, l as catppuccinLatte, m as lightSyntaxPresets, n as useSyntaxTheme, o as tokenizeAsync, p as githubLight, r as SYNC_TOKENIZE_THRESHOLD, s as _default$2, t as UseSyntaxThemeReturn, u as catppuccinMocha, v as oneLight, w as applyHighlightRangesFlat, x as tokyoNightLight, y as solarizedLight, z as CodeProps } from "../index-Bzi3A980.js";
2
+ import { A as _default$1, B as CodeSize, C as applyHighlightRanges, D as diffLineKind, E as DiffLines, F as CodeBlockSize, H as SyntaxToken, I as CodeBlockTokenizer, L as CodeColor, M as CodeBlockContainer, N as CodeBlockEmits, O as parseFenceLanguage, P as CodeBlockProps, R as CodeHighlightMode, S as HIGHLIGHTED_TOKEN_TYPES, T as DiffLineKind, U as TokenLine, V as CodeSlots, _ as oneDarkPro, a as tokenize, b as tokyoNight, c as allSyntaxPresets, d as darkSyntaxPresets, f as dracula, g as nord, h as monokai, i as flatTokensToLines, j as _default, k as splitDiffLines, l as catppuccinLatte, m as lightSyntaxPresets, n as useSyntaxTheme, o as tokenizeAsync, p as githubLight, r as SYNC_TOKENIZE_THRESHOLD, s as _default$2, t as UseSyntaxThemeReturn, u as catppuccinMocha, v as oneLight, w as applyHighlightRangesFlat, x as tokyoNightLight, y as solarizedLight, z as CodeProps } from "../index-ChqMaV6N.js";
3
3
  import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-DeO8fCW_.js";
4
4
  export { _default as Code, _default$1 as CodeBlock, type CodeBlockContainer, type CodeBlockEmits, type CodeBlockProps, type CodeBlockSize, type CodeBlockTokenizer, type CodeColor, type CodeHighlightMode, type CodeProps, type CodeSize, type CodeSlots, type UseClipboardOptions as CopyToClipboardOptions, type UseClipboardReturn as CopyToClipboardReturn, DIFF_SYNTAX_TOKEN_KEYS, type DiffLineKind, type DiffLines, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, type SyntaxDiffTokenKey, _default$2 as SyntaxTheme, type SyntaxThemeDefinition, type SyntaxThemeInput, type SyntaxThemeTokens, type SyntaxToken, type SyntaxTokenKey, type SyntaxTokenValue, type TokenLine, type UseSyntaxThemeReturn, allSyntaxPresets, applyHighlightRanges, applyHighlightRangesFlat, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
@@ -1,2 +1,2 @@
1
- import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-ql9ApSTF.js";
1
+ import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-yQc-te9a.js";
2
2
  export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleConfig, type CollapsibleEmits, _default$1 as CollapsibleGroup, type CollapsibleGroupDensity, type CollapsibleGroupEmits, type CollapsibleGroupProps, type CollapsibleGroupSlots, type CollapsibleGroupType, type CollapsibleGroupValue, type CollapsibleProps, type CollapsibleSlots, type UseCollapsibleOptions, type UseCollapsibleReturn, useCollapsible };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-Dq9esodQ.js";
1
+ import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-CZiUA6Gm.js";
2
2
  export { _sfc_main as ComplexSelector, ComplexSelector_default as default };
@@ -12,7 +12,7 @@ import { t as _sfc_main$4 } from "./Field-DrUMz0oj.js";
12
12
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
13
13
  import { n as fieldStatusPlacement, r as _sfc_main$5, t as normalizeTriggerVariant } from "./triggerVariant-DG0VhG-X.js";
14
14
  import { t as selectorMessages } from "./selector-BmGLjm94.js";
15
- import { t as _sfc_main$6 } from "./Popover-MJQZog5m.js";
15
+ import { t as _sfc_main$6 } from "./Popover-CB5UYJZc.js";
16
16
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
17
17
  import "../styles/visually-hidden-utility.css";
18
18
  import "../styles/complex-selector.css";
@@ -1,3 +1,3 @@
1
- import { $a as ContextMenuItemProps, Ba as _default, Ga as ContextMenuDividerProps, Ha as useContextMenuSize, Ia as _default$7, Ja as ContextMenuGroupProps, Ka as ContextMenuEmits, La as _default$4, Qa as ContextMenuItemIcon, Ra as _default$3, Ua as ContextMenuCheckboxData, Va as useContextMenu, Wa as ContextMenuDividerData, Xa as ContextMenuItemData, Ya as ContextMenuGroupSlots, Za as ContextMenuItemEmits, ao as ContextMenuRadioData, co as ContextMenuSize, do as ContextMenuSubMenuProps, eo as ContextMenuItemSlots, fo as ContextMenuSubMenuSlots, ho as ContextMenuWidth, io as ContextMenuProps, lo as ContextMenuSlots, mo as ContextMenuVariant, no as ContextMenuOption, oo as ContextMenuRadioOptionData, po as ContextMenuTriggerElement, qa as ContextMenuEntry, ro as ContextMenuPresentation, so as ContextMenuSection, to as ContextMenuItemTarget, uo as ContextMenuSubMenuEmits, za as _default$2 } from "../index-CkzTX9pb.js";
1
+ import { $a as ContextMenuItemProps, Ba as _default, Ga as ContextMenuDividerProps, Ha as useContextMenuSize, Ia as _default$7, Ja as ContextMenuGroupProps, Ka as ContextMenuEmits, La as _default$4, Qa as ContextMenuItemIcon, Ra as _default$3, Ua as ContextMenuCheckboxData, Va as useContextMenu, Wa as ContextMenuDividerData, Xa as ContextMenuItemData, Ya as ContextMenuGroupSlots, Za as ContextMenuItemEmits, ao as ContextMenuRadioData, co as ContextMenuSize, do as ContextMenuSubMenuProps, eo as ContextMenuItemSlots, fo as ContextMenuSubMenuSlots, ho as ContextMenuWidth, io as ContextMenuProps, lo as ContextMenuSlots, mo as ContextMenuVariant, no as ContextMenuOption, oo as ContextMenuRadioOptionData, po as ContextMenuTriggerElement, qa as ContextMenuEntry, ro as ContextMenuPresentation, so as ContextMenuSection, to as ContextMenuItemTarget, uo as ContextMenuSubMenuEmits, za as _default$2 } from "../index-0COIBuxA.js";
2
2
  import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-C8rePTyz.js";
3
3
  export { _default as ContextMenu, type ContextMenuCheckboxData, _default$1 as ContextMenuCheckboxItem, _default$2 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, type ContextMenuEntry, _default$3 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$4 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuPresentation, type ContextMenuProps, type ContextMenuRadioData, _default$5 as ContextMenuRadioGroup, _default$6 as ContextMenuRadioItem, type ContextMenuRadioOptionData, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$7 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
@@ -1,3 +1,3 @@
1
1
  import { a as _sfc_main$1, d as useContextMenu, f as useContextMenuSize, i as _sfc_main$5, r as _sfc_main$6 } from "../useMenuDrillIn-BQx6lQMz.js";
2
- import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-DB4XcNKf.js";
2
+ import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-8I420g7H.js";
3
3
  export { _sfc_main as ContextMenu, _sfc_main$1 as ContextMenuCheckboxItem, _sfc_main$2 as ContextMenuDivider, _sfc_main$3 as ContextMenuGroup, _sfc_main$4 as ContextMenuItem, _sfc_main$5 as ContextMenuRadioGroup, _sfc_main$6 as ContextMenuRadioItem, _sfc_main$7 as ContextMenuSubMenu, useContextMenu, useContextMenuSize };
@@ -1,4 +1,4 @@
1
- import { n as _sfc_main$6 } from "./BottomSheet-Dn8gpT4m.js";
1
+ import { n as _sfc_main$6 } from "./BottomSheet-DVe5Nw9Z.js";
2
2
  import { t as _sfc_main$7 } from "./Icon-Dk0jccgU.js";
3
3
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
4
4
  import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-C7_S7qUA.js";
@@ -1,2 +1,2 @@
1
- import { Aa as DateInputNativePicker, Da as DateInputEmits, Ea as DateInputEntryError, Fa as DateInputStatusType, Ma as DateInputProps, Na as DateInputSlots, Oa as DateInputFormat, Pa as DateInputStatus, Ta as _default, ja as DateInputPresentation, ka as DateInputFormatName } from "../index-CkzTX9pb.js";
1
+ import { Aa as DateInputNativePicker, Da as DateInputEmits, Ea as DateInputEntryError, Fa as DateInputStatusType, Ma as DateInputProps, Na as DateInputSlots, Oa as DateInputFormat, Pa as DateInputStatus, Ta as _default, ja as DateInputPresentation, ka as DateInputFormatName } from "../index-0COIBuxA.js";
2
2
  export { _default as DateInput, type DateInputEmits, type DateInputEntryError, type DateInputFormat, type DateInputFormatName, type DateInputNativePicker, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateInput-DNqm49AX.js";
1
+ import { t as _sfc_main } from "../DateInput-KZF_A_31.js";
2
2
  export { _sfc_main as DateInput };
@@ -1,4 +1,4 @@
1
- import { n as _sfc_main$4 } from "./BottomSheet-Dn8gpT4m.js";
1
+ import { n as _sfc_main$4 } from "./BottomSheet-DVe5Nw9Z.js";
2
2
  import { t as _sfc_main$5 } from "./Icon-Dk0jccgU.js";
3
3
  import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
4
4
  import { i as useSize } from "./SizeContext-BbaF-SEx.js";
@@ -26,7 +26,7 @@ import { t as _sfc_main$10 } from "./Spinner-DEVPDsD0.js";
26
26
  import { a as useAriaRequired, o as useEntryErrorBehavior } from "./context-CrVCeUUK.js";
27
27
  import { t as _sfc_main$11 } from "./Field-DrUMz0oj.js";
28
28
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
29
- import { t as _sfc_main$12 } from "./Popover-MJQZog5m.js";
29
+ import { t as _sfc_main$12 } from "./Popover-CB5UYJZc.js";
30
30
  import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
31
31
  import { t as formatInstant } from "./formatInstant-CjCwl6JS.js";
32
32
  import { n as calendarPickerPresentation, u as parseDateInput } from "./inputPresentation-DES0JwkL.js";
@@ -1,2 +1,2 @@
1
- import { Ca as DateRangeInputProps, Sa as DateRangeInputEmits, ba as _default, wa as DateRangePreset, xa as DateRange } from "../index-CkzTX9pb.js";
1
+ import { Ca as DateRangeInputProps, Sa as DateRangeInputEmits, ba as _default, wa as DateRangePreset, xa as DateRange } from "../index-0COIBuxA.js";
2
2
  export { type DateRange, _default as DateRangeInput, type DateRangeInputEmits, type DateRangeInputProps, type DateRangePreset };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateRangeInput-Bch513M0.js";
1
+ import { t as _sfc_main } from "../DateRangeInput-4GCWgLFN.js";
2
2
  export { _sfc_main as DateRangeInput };
@@ -23,7 +23,7 @@ import { t as _sfc_main$7 } from "./Spinner-DEVPDsD0.js";
23
23
  import { a as useAriaRequired } from "./context-CrVCeUUK.js";
24
24
  import { t as _sfc_main$8 } from "./Field-DrUMz0oj.js";
25
25
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
26
- import { t as _sfc_main$9 } from "./Popover-MJQZog5m.js";
26
+ import { t as _sfc_main$9 } from "./Popover-CB5UYJZc.js";
27
27
  import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
28
28
  import { t as dateRangeInputMessages } from "./date-range-input-WnkVv8HN.js";
29
29
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, renderList, shallowRef, ssrContextKey, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
@@ -1,2 +1,2 @@
1
- import { _a as DateTimeInputEmits, ga as _default, va as DateTimeInputProps, ya as DateTimeInputSize } from "../index-CkzTX9pb.js";
1
+ import { _a as DateTimeInputEmits, ga as _default, va as DateTimeInputProps, ya as DateTimeInputSize } from "../index-0COIBuxA.js";
2
2
  export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };