@astryx-vue/core 0.6.1 → 0.7.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 (142) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-CBkJecfc.js → AlertDialog-5bbCe_ma.js} +1 -1
  3. package/dist/AvatarGroup/index.d.ts +1 -1
  4. package/dist/AvatarGroup/index.js +1 -1
  5. package/dist/{AvatarGroup-DhVBdHeQ.js → AvatarGroup-ezWQX5UE.js} +5 -2
  6. package/dist/Banner/index.d.ts +1 -1
  7. package/dist/BottomSheet/index.js +2 -2
  8. package/dist/{BottomSheet-m54uCMJN.js → BottomSheet-BrxST6Zp.js} +2 -1
  9. package/dist/{BottomSheet-B4sc3F1S.js → BottomSheet-itRm1Yh5.js} +1 -0
  10. package/dist/Breadcrumbs/index.d.ts +2 -2
  11. package/dist/Breadcrumbs/index.js +1 -1
  12. package/dist/{Breadcrumbs-DRXYUqOk.js → Breadcrumbs-DYmOUlSu.js} +1 -1
  13. package/dist/Button/index.d.ts +1 -1
  14. package/dist/ButtonGroup/index.d.ts +1 -1
  15. package/dist/Calendar/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-sNg2CZ_P.js → Chat-DpH2ob4k.js} +1 -1
  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/ClickableCard/index.js +1 -1
  23. package/dist/{ClickableCard-DM66XZ07.js → ClickableCard-CGjr4c7g.js} +1 -1
  24. package/dist/CommandPalette/index.js +1 -1
  25. package/dist/{CommandPalette-DFxk2sil.js → CommandPalette-B6lzcEE4.js} +1 -1
  26. package/dist/ComplexSelector/index.js +1 -1
  27. package/dist/{ComplexSelector-32r0RVQE.js → ComplexSelector-CABdPOyw.js} +16 -3
  28. package/dist/ContextMenu/index.d.ts +2 -2
  29. package/dist/ContextMenu/index.js +1 -1
  30. package/dist/{ContextMenu-BH_yV1xZ.js → ContextMenu-DMSJQdZ5.js} +1 -1
  31. package/dist/DateInput/index.d.ts +1 -1
  32. package/dist/DateInput/index.js +1 -1
  33. package/dist/{DateInput-B57PrbII.js → DateInput-cVln1Xnn.js} +4 -6
  34. package/dist/DateRangeInput/index.d.ts +1 -1
  35. package/dist/DateTimeInput/index.d.ts +1 -1
  36. package/dist/DateTimeInput/index.js +1 -1
  37. package/dist/{DateTimeInput-BMw1A5Q3.js → DateTimeInput-CViJJt8m.js} +3 -3
  38. package/dist/Dialog/index.d.ts +1 -1
  39. package/dist/Dialog/index.js +3 -2
  40. package/dist/{Dialog-fhyxB00e.js → Dialog-BhxN-tp4.js} +1 -0
  41. package/dist/Dialog-Bn4eUNiy.js +49 -0
  42. package/dist/{Dialog-CL8u76KG.js → DialogHeader-B-Lz4rB5.js} +3 -49
  43. package/dist/Divider/index.d.ts +1 -1
  44. package/dist/Drawer/index.d.ts +2 -0
  45. package/dist/Drawer/index.js +2 -0
  46. package/dist/Drawer-DjSbpQcy.js +137 -0
  47. package/dist/DropdownMenu/index.d.ts +2 -2
  48. package/dist/DropdownMenu/index.js +2 -2
  49. package/dist/{DropdownMenu-C0QDklYy.js → DropdownMenu-Cr1zAiZm.js} +142 -27
  50. package/dist/{DropdownMenu-DO9lDRvW.js → DropdownMenu-CxbpuT2r.js} +2 -2
  51. package/dist/{DropdownMenuRadioItem.vue-D-VSfulY.d.ts → DropdownMenuRadioItem.vue-z0XU7pZS.d.ts} +9 -0
  52. package/dist/FileInput/index.d.ts +1 -1
  53. package/dist/HoverCard/index.d.ts +1 -1
  54. package/dist/HoverCard/index.js +1 -1
  55. package/dist/{HoverCard-BpJhT0sn.js → HoverCard-C3zQizyS.js} +93 -67
  56. package/dist/InputGroup/index.d.ts +1 -1
  57. package/dist/List/index.d.ts +1 -1
  58. package/dist/MetadataList/index.d.ts +1 -1
  59. package/dist/MoreMenu/index.d.ts +1 -1
  60. package/dist/MultiSelector/index.d.ts +1 -1
  61. package/dist/MultiSelector/index.js +1 -1
  62. package/dist/{MultiSelector-DVqD6OEy.js → MultiSelector-r5acBuN0.js} +10 -5
  63. package/dist/NavItem/index.d.ts +1 -1
  64. package/dist/NumberInput/index.d.ts +1 -1
  65. package/dist/OverflowList/index.d.ts +1 -1
  66. package/dist/Overlay/index.d.ts +1 -1
  67. package/dist/Pagination/index.d.ts +1 -1
  68. package/dist/Pagination/index.js +1 -1
  69. package/dist/{Pagination-L0IDhBbo.js → Pagination-CYmPEKKt.js} +1 -1
  70. package/dist/Popover/index.d.ts +1 -1
  71. package/dist/PowerSearch/index.d.ts +1 -1
  72. package/dist/PowerSearch/index.js +1 -1
  73. package/dist/{PowerSearch-CBYYhpvA.js → PowerSearch-CjhX2YkL.js} +8 -8
  74. package/dist/ProgressBar/index.d.ts +1 -1
  75. package/dist/Radio/index.d.ts +1 -1
  76. package/dist/RadioList/index.d.ts +1 -1
  77. package/dist/ScrollableArea/index.d.ts +1 -1
  78. package/dist/SegmentedControl/index.d.ts +1 -1
  79. package/dist/SelectableCard/index.d.ts +1 -1
  80. package/dist/Selector/index.d.ts +1 -1
  81. package/dist/Selector/index.js +1 -1
  82. package/dist/{Selector-Dle5Lbvs.js → Selector-PYpxWfKo.js} +38 -15
  83. package/dist/SideNav/index.d.ts +1 -1
  84. package/dist/Stepper/index.d.ts +1 -1
  85. package/dist/Switch/index.d.ts +1 -1
  86. package/dist/TabList/index.js +1 -1
  87. package/dist/{TabList-npiEQK-q.js → TabList-CXLDPFte.js} +30 -6
  88. package/dist/Table/index.d.ts +1 -1
  89. package/dist/Table/index.js +1 -1
  90. package/dist/{Table-DiCsQaqu.js → Table-36BOw1Q0.js} +4 -4
  91. package/dist/TextArea/index.d.ts +1 -1
  92. package/dist/TextInput/index.d.ts +1 -1
  93. package/dist/{TimeField-Dajh0ej2.js → TimeField-BnXwqr_O.js} +8 -12
  94. package/dist/TimeInput/index.d.ts +1 -1
  95. package/dist/TimeInput/index.js +1 -1
  96. package/dist/{TimeInput-BVrrBcMF.js → TimeInput-68-3BdYQ.js} +1 -1
  97. package/dist/Timestamp/index.d.ts +1 -1
  98. package/dist/Timestamp/index.js +1 -1
  99. package/dist/{Timestamp-Bf6iQTk6.js → Timestamp-DTr30OUF.js} +1 -1
  100. package/dist/ToggleButton/index.d.ts +1 -1
  101. package/dist/Token/index.d.ts +1 -1
  102. package/dist/Token/index.js +1 -1
  103. package/dist/{Token-CBrEN21_.js → Token-DP3bU-8c.js} +1 -1
  104. package/dist/Tokenizer/index.js +1 -1
  105. package/dist/{Tokenizer-DxOCrbq3.js → Tokenizer-DT1Kj9dR.js} +1 -1
  106. package/dist/Toolbar/index.d.ts +1 -1
  107. package/dist/Tooltip/index.d.ts +1 -1
  108. package/dist/TopNav/index.d.ts +1 -1
  109. package/dist/TreeList/index.d.ts +1 -1
  110. package/dist/Typeahead/index.js +1 -1
  111. package/dist/{Typeahead-XpX5aA-Q.js → Typeahead-D4oT1wUP.js} +1 -1
  112. package/dist/{disabledInteraction-C9lrgFxB.js → disabledInteraction-CPzL8kVP.js} +20 -1
  113. package/dist/{index-BhLLG-Gi.d.ts → index-B2kcUxGA.d.ts} +1 -1
  114. package/dist/{index-C1zwvxPH.d.ts → index-B3yTdknp.d.ts} +1 -1
  115. package/dist/{index-Cy1rEWC-.d.ts → index-B449gOMC.d.ts} +2 -2
  116. package/dist/{index-EvhMa33P.d.ts → index-B6eL2gOK.d.ts} +1 -1
  117. package/dist/{index-DbiZvj1P.d.ts → index-B8EnP-PB.d.ts} +1 -1
  118. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  119. package/dist/{index-UFlyBbRd.d.ts → index-Bm_3wP0q.d.ts} +1 -1
  120. package/dist/{index-_pze-_fd.d.ts → index-C3dirxkN.d.ts} +3 -3
  121. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  122. package/dist/{index-DybUnyAp.d.ts → index-CA9Nneq_.d.ts} +4 -4
  123. package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
  124. package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
  125. package/dist/{index-B5cFQLav.d.ts → index-Djd6glIa.d.ts} +197 -106
  126. package/dist/{index-C7sam-SB.d.ts → index-Dl4Kx5Pl.d.ts} +1 -1
  127. package/dist/{index-BNaRK-s5.d.ts → index-DsaP4-eB.d.ts} +1 -1
  128. package/dist/{index-C_6RCsGf.d.ts → index-Gnewu6-J.d.ts} +1 -1
  129. package/dist/{index-Cq31D3fJ.d.ts → index-GpET2_oj.d.ts} +1 -1
  130. package/dist/{index-B1WWphal.d.ts → index-IvAfdGCC.d.ts} +1 -1
  131. package/dist/{index-j0WJTviq.d.ts → index-MEix_m1o.d.ts} +2 -2
  132. package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
  133. package/dist/{index-eP0-QrWx.d.ts → index-aTBpXbot.d.ts} +6 -6
  134. package/dist/{index-Ca8VIE4l.d.ts → index-cG1E0U2s.d.ts} +1 -1
  135. package/dist/{index-Ds201-d2.d.ts → index-qayqGnJT.d.ts} +1 -1
  136. package/dist/index.d.ts +64 -64
  137. package/dist/index.js +102 -100
  138. package/package.json +5 -1
  139. package/styles/drawer.css +77 -0
  140. package/styles/dropdown-menu.css +28 -0
  141. package/styles.css +1 -0
  142. package/dist/{index-J6YRJ7Ul.d.ts → index-BJ9Wim6J.d.ts} +2 -2
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as useImperativeAlertDialog } from "../AlertDialog-CBkJecfc.js";
1
+ import { n as _sfc_main, t as useImperativeAlertDialog } from "../AlertDialog-5bbCe_ma.js";
2
2
  export { _sfc_main as AlertDialog, useImperativeAlertDialog };
@@ -1,6 +1,6 @@
1
1
  import { t as _sfc_main$1 } from "./Button-xMGOU3Wj.js";
2
2
  import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
3
- import { t as _sfc_main$2 } from "./Dialog-fhyxB00e.js";
3
+ import { t as _sfc_main$2 } from "./Dialog-BhxN-tp4.js";
4
4
  import { t as _sfc_main$3 } from "./Heading-BzBunfN7.js";
5
5
  import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
6
6
  import { t as _sfc_main$4 } from "./Stack-Bp-XN9J4.js";
@@ -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-B5cFQLav.js";
1
+ import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-Djd6glIa.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 { n as _sfc_main, t as _sfc_main$1 } from "../AvatarGroup-DhVBdHeQ.js";
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../AvatarGroup-ezWQX5UE.js";
2
2
  export { _sfc_main as AvatarGroup, _sfc_main$1 as AvatarGroupOverflow };
@@ -4,7 +4,7 @@ import { t as _sfc_main$2 } from "./VisuallyHidden-C7NN3VEP.js";
4
4
  import { s as useAstryxMessages } from "./context-CVUee2tp.js";
5
5
  import { t as useListFocus } from "./useListFocus-ChxLg0b4.js";
6
6
  import { o as AvatarGroupContext, r as resolveSize } from "./utils-ClVseK2w.js";
7
- import { computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, getCurrentInstance, mergeProps, normalizeStyle, onMounted, onUpdated, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, withCtx } from "vue";
7
+ import { computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, getCurrentInstance, mergeProps, normalizeStyle, onMounted, onUpdated, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, withCtx } from "vue";
8
8
  import "../styles/avatar-group.css";
9
9
  //#region src/AvatarGroup/AvatarGroup.vue
10
10
  const _hoisted_1 = [
@@ -83,6 +83,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
83
83
  const props = __props;
84
84
  const emit = __emit;
85
85
  const instance = getCurrentInstance();
86
+ const attrs = useAttrs();
86
87
  const messages = useAstryxMessages();
87
88
  const press = usePressFeedback();
88
89
  const avatarGroup = readLayerScoped(AvatarGroupContext);
@@ -111,6 +112,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
111
112
  "--astryx-avatar-group-overflow-computed-font-size": `max(var(--astryx-text-supporting-size, 0.75rem), ${Math.round(numericSize.value * OVERFLOW_FONT_RATIO * 100) / 100}px)`
112
113
  }));
113
114
  const pressBindings = computed(() => isInteractive.value ? press.pressableProps : {});
115
+ /** 静态指示器的 `img` 语义可以被调用方换掉,比如标成 `note`。 */
116
+ const staticRole = computed(() => attrs.role ?? "img");
114
117
  return (_ctx, _cache) => {
115
118
  return openBlock(), createBlock(resolveDynamicComponent(isInteractive.value ? "button" : "span"), mergeProps(pressBindings.value, {
116
119
  class: ["astryx-avatar-group-overflow", [`astryx-avatar-group-overflow--${shape.value}`, { "astryx-avatar-group-overflow--interactive": isInteractive.value }]],
@@ -120,7 +123,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
120
123
  "data-avatar-item": isInteractive.value ? "" : void 0,
121
124
  type: isInteractive.value ? "button" : void 0,
122
125
  "aria-label": accessibleName.value,
123
- role: isInteractive.value ? void 0 : "img",
126
+ role: isInteractive.value ? void 0 : staticRole.value,
124
127
  onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event))
125
128
  }), {
126
129
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(`+${safeCount.value}`), 1)])]),
@@ -1,2 +1,2 @@
1
- import { Ga as _default, Ja as BannerProps, Ka as BannerContainer, Xa as BannerStatus, Ya as BannerSlots, qa as BannerEmits } from "../index-B5cFQLav.js";
1
+ import { ao as BannerStatus, eo as _default, io as BannerSlots, no as BannerEmits, ro as BannerProps, to as BannerContainer } from "../index-Djd6glIa.js";
2
2
  export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
@@ -1,3 +1,3 @@
1
- import { t as _sfc_main } from "../BottomSheet-B4sc3F1S.js";
2
- import { t as _sfc_main$1 } from "../BottomSheet-m54uCMJN.js";
1
+ import { t as _sfc_main } from "../BottomSheet-itRm1Yh5.js";
2
+ import { t as _sfc_main$1 } from "../BottomSheet-BrxST6Zp.js";
3
3
  export { _sfc_main as BottomSheet, _sfc_main$1 as BottomSheetSwitcher };
@@ -1,7 +1,7 @@
1
1
  import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
2
2
  import { n as useFocusTrap } from "./useRestoreFocus-XEKs5-gp.js";
3
3
  import { t as useScrollLock } from "./scrollLock-C3aT4-0z.js";
4
- import { n as useSheetLayerDismiss, r as bottomSheetSwitcherKey } from "./BottomSheet-B4sc3F1S.js";
4
+ import { n as useSheetLayerDismiss, r as bottomSheetSwitcherKey } from "./BottomSheet-itRm1Yh5.js";
5
5
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, mergeProps, nextTick, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, shallowRef, useModel, useTemplateRef, watch } from "vue";
6
6
  import "../styles/bottom-sheet.css";
7
7
  //#region src/BottomSheet/BottomSheetSwitcher.vue
@@ -130,6 +130,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
130
130
  requestClose();
131
131
  }
132
132
  function onCancel(event) {
133
+ if (event.target !== dialog.value) return;
133
134
  emit("cancel", event);
134
135
  if (event.defaultPrevented) return;
135
136
  event.preventDefault();
@@ -987,6 +987,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
987
987
  dismissOnEscape();
988
988
  }
989
989
  function onCancel(event) {
990
+ if (event.target !== dialog.value) return;
990
991
  event.preventDefault();
991
992
  if (!layer.isTop()) return;
992
993
  dismissOnEscape();
@@ -1,3 +1,3 @@
1
- import { b as DropdownMenuCheckboxItemProps, j as DropdownMenuRadioItemProps, k as DropdownMenuRadioGroupProps, n as _default$2, r as _default$1, t as _default$3 } from "../DropdownMenuRadioItem.vue-D-VSfulY.js";
2
- import { a as BreadcrumbsProps, i as BreadcrumbMenuOption, n as _default, o as BreadcrumbsVariant, r as BreadcrumbItemProps, t as _default$4 } from "../index-C_6RCsGf.js";
1
+ import { b as DropdownMenuCheckboxItemProps, j as DropdownMenuRadioItemProps, k as DropdownMenuRadioGroupProps, n as _default$2, r as _default$1, t as _default$3 } from "../DropdownMenuRadioItem.vue-z0XU7pZS.js";
2
+ import { a as BreadcrumbsProps, i as BreadcrumbMenuOption, n as _default, o as BreadcrumbsVariant, r as BreadcrumbItemProps, t as _default$4 } from "../index-Gnewu6-J.js";
3
3
  export { _default as BreadcrumbItem, type BreadcrumbItemProps, _default$1 as BreadcrumbMenuCheckboxItem, type DropdownMenuCheckboxItemProps as BreadcrumbMenuCheckboxItemProps, type BreadcrumbMenuOption, _default$2 as BreadcrumbMenuRadioGroup, type DropdownMenuRadioGroupProps as BreadcrumbMenuRadioGroupProps, _default$3 as BreadcrumbMenuRadioItem, type DropdownMenuRadioItemProps as BreadcrumbMenuRadioItemProps, _default$4 as Breadcrumbs, type BreadcrumbsProps, type BreadcrumbsVariant };
@@ -1,3 +1,3 @@
1
1
  import { i as _sfc_main$1, n as _sfc_main$3, r as _sfc_main$2 } from "../useMenuDrillIn-CjU_ZMhh.js";
2
- import { n as _sfc_main, t as _sfc_main$4 } from "../Breadcrumbs-DRXYUqOk.js";
2
+ import { n as _sfc_main, t as _sfc_main$4 } from "../Breadcrumbs-DYmOUlSu.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 };
@@ -2,7 +2,7 @@ import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide
2
2
  import { t as _sfc_main$2 } from "./Icon-Dosui-zD.js";
3
3
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
4
4
  import { n as useDevWarning } from "./useDevWarning-DznOpOHT.js";
5
- import { t as _sfc_main$3 } from "./DropdownMenu-DO9lDRvW.js";
5
+ import { t as _sfc_main$3 } from "./DropdownMenu-CxbpuT2r.js";
6
6
  import { n as isNavigableHref } from "./link-DuuA2eCL.js";
7
7
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, onMounted, onScopeDispose, onUpdated, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, useId, useSlots, useTemplateRef, watch, withCtx } from "vue";
8
8
  import "../styles/breadcrumbs.css";
@@ -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-DnrU3HYQ.js";
2
- import { t as _default } from "../index-BhLLG-Gi.js";
2
+ import { t as _default } from "../index-B2kcUxGA.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 { Ha as ButtonGroupProps, Ua as ButtonGroupSlots, Va as _default, Wa as ButtonGroupOrientation } from "../index-B5cFQLav.js";
1
+ import { $a as ButtonGroupOrientation, Qa as ButtonGroupSlots, Xa as _default, Za as ButtonGroupProps } from "../index-Djd6glIa.js";
2
2
  export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
@@ -1,2 +1,2 @@
1
- import { Ba as CalendarSlots, Fa as CalendarEmits, Ia as CalendarHandle, La as CalendarHandleRef, Pa as _default, Ra as CalendarProps, za as CalendarRangeValue } from "../index-B5cFQLav.js";
1
+ import { Ga as CalendarHandle, Ja as CalendarRangeValue, Ka as CalendarHandleRef, Ua as _default, Wa as CalendarEmits, Ya as CalendarSlots, qa as CalendarProps } from "../index-Djd6glIa.js";
2
2
  export { _default as Calendar, type CalendarEmits, type CalendarHandle, type CalendarHandleRef, type CalendarProps, type CalendarRangeValue, type CalendarSlots };
@@ -1,2 +1,2 @@
1
- import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatReasoningProps, B as ChatComposerDrawerEmits, Bt as ChatTypingIndicatorProps, C as _default$15, Ct as ChatMessageMetadataProps, D as _default$11, Dt as ChatMessageSlots, E as _default$12, Et as ChatMessageSender, F as _default$3, Ft as ChatToolCallItem, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallStatus, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsEmits, M as _default$6, Mt as ChatSystemMessageProps, N as _default$5, Nt as ChatSystemMessageSlots, O as _default$10, Ot as ChatMessageStatus, P as _default$4, Pt as ChatSystemMessageVariant, Q as ChatComposerToken, R as _default, Rt as ChatToolCallsProps, S as _default$16, St as ChatMessageListSlots, T as _default$13, Tt as ChatMessageProps, U as ChatComposerElevation, V as ChatComposerDrawerProps, Vt as ChatUnreadDividerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageBubbleProps, a as useChatPasteAsToken, at as ChatSendButtonEmits, b as useChatMessageContext, bt as ChatMessageListAlign, c as SpeechRecognitionError, ct as ChatTokenizedTextProps, d as useSpeechRecognition, dt as ChatLayoutProps, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatLayoutScrollButtonEmits, g as ChatComposerContextValue, gt as ChatMessageBubbleGroup, h as useChatComposerTokens, ht as ChatLayoutSlots, i as pastedTextLabel, it as ChatDictationButtonProps, j as _default$7, jt as ChatReasoningSlots, k as _default$9, kt as ChatReasoningEmits, l as UseSpeechRecognitionOptions, lt as ChatTokenizedTextSlots, m as UseChatComposerTokensReturn, mt as ChatLayoutScrollSlotProps, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatSendButtonProps, p as UseChatComposerTokensOptions, pt as ChatLayoutScrollButtonProps, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatSendButtonSlots, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatDensity, v as useChatLayoutContext, vt as ChatMessageBubbleSlots, w as _default$14, wt as ChatMessageMetadataSlots, x as _default$17, xt as ChatMessageListProps, y as useChatListContext, yt as ChatMessageBubbleVariant, z as ChatComposerDensity, zt as ChatToolCallsSlots } from "../index-EvhMa33P.js";
1
+ import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatReasoningProps, B as ChatComposerDrawerEmits, Bt as ChatTypingIndicatorProps, C as _default$15, Ct as ChatMessageMetadataProps, D as _default$11, Dt as ChatMessageSlots, E as _default$12, Et as ChatMessageSender, F as _default$3, Ft as ChatToolCallItem, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallStatus, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsEmits, M as _default$6, Mt as ChatSystemMessageProps, N as _default$5, Nt as ChatSystemMessageSlots, O as _default$10, Ot as ChatMessageStatus, P as _default$4, Pt as ChatSystemMessageVariant, Q as ChatComposerToken, R as _default, Rt as ChatToolCallsProps, S as _default$16, St as ChatMessageListSlots, T as _default$13, Tt as ChatMessageProps, U as ChatComposerElevation, V as ChatComposerDrawerProps, Vt as ChatUnreadDividerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageBubbleProps, a as useChatPasteAsToken, at as ChatSendButtonEmits, b as useChatMessageContext, bt as ChatMessageListAlign, c as SpeechRecognitionError, ct as ChatTokenizedTextProps, d as useSpeechRecognition, dt as ChatLayoutProps, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatLayoutScrollButtonEmits, g as ChatComposerContextValue, gt as ChatMessageBubbleGroup, h as useChatComposerTokens, ht as ChatLayoutSlots, i as pastedTextLabel, it as ChatDictationButtonProps, j as _default$7, jt as ChatReasoningSlots, k as _default$9, kt as ChatReasoningEmits, l as UseSpeechRecognitionOptions, lt as ChatTokenizedTextSlots, m as UseChatComposerTokensReturn, mt as ChatLayoutScrollSlotProps, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatSendButtonProps, p as UseChatComposerTokensOptions, pt as ChatLayoutScrollButtonProps, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatSendButtonSlots, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatDensity, v as useChatLayoutContext, vt as ChatMessageBubbleSlots, w as _default$14, wt as ChatMessageMetadataSlots, x as _default$17, xt as ChatMessageListProps, y as useChatListContext, yt as ChatMessageBubbleVariant, z as ChatComposerDensity, zt as ChatToolCallsSlots } from "../index-B6eL2gOK.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 { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-sNg2CZ_P.js";
1
+ import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-DpH2ob4k.js";
2
2
  export { _sfc_main as ChatComposer, _sfc_main$1 as ChatComposerDrawer, _sfc_main$2 as ChatComposerInput, _sfc_main$3 as ChatComposerTokenElement, _sfc_main$4 as ChatDictationButton, _sfc_main$5 as ChatLayout, _sfc_main$6 as ChatLayoutScrollButton, _sfc_main$7 as ChatMessage, _sfc_main$8 as ChatMessageBubble, _sfc_main$9 as ChatMessageList, _sfc_main$10 as ChatMessageMetadata, _sfc_main$11 as ChatReasoning, _sfc_main$12 as ChatSendButton, _sfc_main$13 as ChatSystemMessage, _sfc_main$14 as ChatTokenizedText, _sfc_main$15 as ChatToolCalls, _sfc_main$16 as ChatTypingIndicator, _sfc_main$17 as ChatUnreadDivider, PASTE_TOKEN_THRESHOLD, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
@@ -11,7 +11,7 @@ import { o as useAstryxLocale, s as useAstryxMessages } from "./context-CVUee2tp
11
11
  import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
12
12
  import { t as _sfc_main$27 } from "./Badge-CjDQPF5g.js";
13
13
  import { t as _sfc_main$28 } from "./Divider-mOZ6vIQw.js";
14
- import { t as _sfc_main$29 } from "./HoverCard-BpJhT0sn.js";
14
+ import { t as _sfc_main$29 } from "./HoverCard-C3zQizyS.js";
15
15
  import { t as _sfc_main$30 } from "./Spinner-B7xuy3ZA.js";
16
16
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toValue, unref, useId, useModel, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
17
17
  import "../styles/layer.css";
@@ -1,2 +1,2 @@
1
- import { Aa as CheckboxInputEmits, Da as _default, Ma as CheckboxInputSlots, Na as CheckboxValue, Oa as CheckboxInputChangeAction, ja as CheckboxInputProps, ka as CheckboxInputChangeEvent } from "../index-B5cFQLav.js";
1
+ import { Ba as CheckboxInputProps, Ha as CheckboxValue, Ia as _default, La as CheckboxInputChangeAction, Ra as CheckboxInputChangeEvent, Va as CheckboxInputSlots, za as CheckboxInputEmits } from "../index-Djd6glIa.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 { Ca as CheckboxListEmits, Ea as CheckboxListProps, Sa as _default, Ta as CheckboxListItemProps, wa as CheckboxListItemEmits, xa as _default$1 } from "../index-B5cFQLav.js";
1
+ import { Aa as _default$1, Fa as CheckboxListProps, Ma as CheckboxListEmits, Na as CheckboxListItemEmits, Pa as CheckboxListItemProps, ja as _default } from "../index-Djd6glIa.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 { _a as _default, ba as ClickableCardSlots, va as ClickableCardEmits, ya as ClickableCardProps } from "../index-B5cFQLav.js";
1
+ import { Da as ClickableCardEmits, Ea as _default, Oa as ClickableCardProps, ka as ClickableCardSlots } from "../index-Djd6glIa.js";
2
2
  export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as ClickableCard_default } from "../ClickableCard-DM66XZ07.js";
1
+ import { n as _sfc_main, t as ClickableCard_default } from "../ClickableCard-CGjr4c7g.js";
2
2
  export { _sfc_main as ClickableCard, ClickableCard_default as default };
@@ -2,7 +2,7 @@ import { t as usePressFeedback } from "./usePressFeedback-BJCpjEpv.js";
2
2
  import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
3
3
  import { i as useClickableContainer } from "./useClickableContainer-CdGp_Cev.js";
4
4
  import { t as _sfc_main$2 } from "./Card-B-I24X9S.js";
5
- import { t as disabledInteractionProps } from "./disabledInteraction-C9lrgFxB.js";
5
+ import { n as disabledInteractionProps } from "./disabledInteraction-CPzL8kVP.js";
6
6
  import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, useTemplateRef, withCtx } from "vue";
7
7
  import "../styles/clickable-card.css";
8
8
  //#region src/ClickableCard/ClickableCard.vue
@@ -1,2 +1,2 @@
1
- import { a as _sfc_main$3, i as _sfc_main$4, n as _sfc_main$6, o as _sfc_main$2, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main } from "../CommandPalette-DFxk2sil.js";
1
+ import { a as _sfc_main$3, i as _sfc_main$4, n as _sfc_main$6, o as _sfc_main$2, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main } from "../CommandPalette-B6lzcEE4.js";
2
2
  export { _sfc_main as CommandPalette, _sfc_main$1 as CommandPaletteEmpty, _sfc_main$2 as CommandPaletteFooter, _sfc_main$3 as CommandPaletteGroup, _sfc_main$4 as CommandPaletteInput, _sfc_main$5 as CommandPaletteItem, _sfc_main$6 as CommandPaletteList };
@@ -4,7 +4,7 @@ import { t as useAnnounce } from "./announce-B210eJVf.js";
4
4
  import { n as useAsyncSource } from "./useAsyncSource-Gk0VtE7_.js";
5
5
  import { t as _sfc_main$8 } from "./Kbd-CV3LO2Ge.js";
6
6
  import { s as useAstryxMessages } from "./context-CVUee2tp.js";
7
- import { n as DIALOG_CONTEXT_KEY, t as _sfc_main$9 } from "./Dialog-fhyxB00e.js";
7
+ import { n as DIALOG_CONTEXT_KEY, t as _sfc_main$9 } from "./Dialog-BhxN-tp4.js";
8
8
  import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
9
9
  import { t as _sfc_main$10 } from "./Spinner-B7xuy3ZA.js";
10
10
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-32r0RVQE.js";
1
+ import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-CABdPOyw.js";
2
2
  export { _sfc_main as ComplexSelector, ComplexSelector_default as default };
@@ -5,6 +5,7 @@ import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
5
5
  import { t as _sfc_main$2 } from "./Spinner-B7xuy3ZA.js";
6
6
  import { t as _sfc_main$3 } from "./Field-DRQuVVlH.js";
7
7
  import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
8
+ import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
8
9
  import { n as fieldStatusPlacement, t as normalizeTriggerVariant } from "./triggerVariant-BsL8jMHs.js";
9
10
  import { t as _sfc_main$4 } from "./Popover-DsGCMcaU.js";
10
11
  import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
@@ -18,8 +19,8 @@ const _hoisted_1 = [
18
19
  "aria-busy",
19
20
  "aria-expanded",
20
21
  "aria-invalid",
21
- "aria-required",
22
- "disabled"
22
+ "aria-disabled",
23
+ "aria-required"
23
24
  ];
24
25
  const _hoisted_2 = { class: "astryx-complex-selector-value" };
25
26
  const _sfc_main = /*@__PURE__*/ defineComponent({
@@ -199,22 +200,33 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
199
200
  }
200
201
  }
201
202
  /** 内置触发器:先让调用方有机会取消打开,再走自己的开关。 */
203
+ /**
204
+ * 禁用态用 `aria-disabled` 表达,触发器仍留在 Tab 序列里(spec:AST-085 FR1)。
205
+ * 原生 `disabled` 不会派发事件,换成 aria 之后要自己挡住指针和按键(FR2)。
206
+ */
207
+ function blockedWhileDisabled(event) {
208
+ return consumeWhileDisabled(event, props.isDisabled);
209
+ }
202
210
  function onBuiltinClick(event) {
211
+ if (blockedWhileDisabled(event)) return;
203
212
  emit("click", event);
204
213
  if (event.defaultPrevented) event.stopImmediatePropagation();
205
214
  }
206
215
  /** 内置触发器:内置处理完再透出,每个键都收到。 */
207
216
  function onBuiltinKeyDown(event) {
217
+ if (blockedWhileDisabled(event)) return;
208
218
  onTriggerKeyDown(event);
209
219
  emit("keydown", event);
210
220
  }
211
221
  /** 自定义触发器:开关已经做完,点不能取消;内置处理取消的键不外透。 */
212
222
  function onCustomClick(event) {
213
223
  event.stopImmediatePropagation();
224
+ if (blockedWhileDisabled(event)) return;
214
225
  toggle();
215
226
  emit("click", event);
216
227
  }
217
228
  function onCustomKeyDown(event) {
229
+ if (blockedWhileDisabled(event)) return;
218
230
  onTriggerKeyDown(event);
219
231
  if (!event.defaultPrevented) emit("keydown", event);
220
232
  }
@@ -225,6 +237,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
225
237
  "id": triggerId,
226
238
  "onClick": onCustomClick,
227
239
  "onKeydown": onCustomKeyDown,
240
+ "aria-disabled": props.isDisabled ? "true" : void 0,
228
241
  "aria-haspopup": "dialog",
229
242
  "aria-expanded": isOpen.value,
230
243
  "aria-controls": isOpen.value ? contentId : void 0,
@@ -349,9 +362,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
349
362
  "aria-busy": isBusy.value || void 0,
350
363
  "aria-expanded": isOpen.value,
351
364
  "aria-invalid": __props.status?.type === "error" || void 0,
365
+ "aria-disabled": __props.isDisabled || void 0,
352
366
  "aria-labelledby": labelId,
353
367
  "aria-required": __props.isRequired || void 0,
354
- disabled: __props.isDisabled,
355
368
  type: "button",
356
369
  onClick: onBuiltinClick,
357
370
  onKeydown: onBuiltinKeyDown
@@ -1,3 +1,3 @@
1
- import { $i as ContextMenuItemIcon, Bi as _default$2, Gi as ContextMenuDividerData, Hi as useContextMenu, Ji as ContextMenuEntry, Ki as ContextMenuDividerProps, Li as _default$7, Qi as ContextMenuItemEmits, Ri as _default$4, Ui as useContextMenuSize, Vi as _default, Wi as ContextMenuCheckboxData, Xi as ContextMenuGroupSlots, Yi as ContextMenuGroupProps, Zi as ContextMenuItemData, aa as ContextMenuProps, ca as ContextMenuSection, da as ContextMenuSubMenuEmits, ea as ContextMenuItemProps, fa as ContextMenuSubMenuProps, ga as ContextMenuWidth, ha as ContextMenuVariant, ia as ContextMenuPresentation, la as ContextMenuSize, ma as ContextMenuTriggerElement, na as ContextMenuItemTarget, oa as ContextMenuRadioData, pa as ContextMenuSubMenuSlots, qi as ContextMenuEmits, ra as ContextMenuOption, sa as ContextMenuRadioOptionData, ta as ContextMenuItemSlots, ua as ContextMenuSlots, zi as _default$3 } from "../index-B5cFQLav.js";
2
- import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-D-VSfulY.js";
1
+ import { $i as ContextMenuCheckboxData, Ca as ContextMenuTriggerElement, Ji as _default$3, Ki as _default$7, Qi as useContextMenuSize, Sa as ContextMenuSubMenuSlots, Ta as ContextMenuWidth, Xi as _default, Yi as _default$2, Zi as useContextMenu, _a as ContextMenuSection, aa as ContextMenuGroupSlots, ba as ContextMenuSubMenuEmits, ca as ContextMenuItemIcon, da as ContextMenuItemTarget, ea as ContextMenuDividerData, fa as ContextMenuOption, ga as ContextMenuRadioOptionData, ha as ContextMenuRadioData, ia as ContextMenuGroupProps, la as ContextMenuItemProps, ma as ContextMenuProps, na as ContextMenuEmits, oa as ContextMenuItemData, pa as ContextMenuPresentation, qi as _default$4, ra as ContextMenuEntry, sa as ContextMenuItemEmits, ta as ContextMenuDividerProps, ua as ContextMenuItemSlots, va as ContextMenuSize, wa as ContextMenuVariant, xa as ContextMenuSubMenuProps, ya as ContextMenuSlots } from "../index-Djd6glIa.js";
2
+ import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-z0XU7pZS.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 { d as useContextMenuSize, i as _sfc_main$1, n as _sfc_main$6, r as _sfc_main$5, u as useContextMenu } from "../useMenuDrillIn-CjU_ZMhh.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-BH_yV1xZ.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-DMSJQdZ5.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 };
@@ -8,7 +8,7 @@ import { o as resetMenuPress, s as useLongPress, t as useMenuPress } from "./use
8
8
  import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
9
9
  import { t as _sfc_main$7 } from "./LayerContentBoundary-CvsKxwwm.js";
10
10
  import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
11
- import { t as _sfc_main$8 } from "./BottomSheet-B4sc3F1S.js";
11
+ import { t as _sfc_main$8 } from "./BottomSheet-itRm1Yh5.js";
12
12
  import { c as contextMenuContextKey, d as useContextMenuSize, i as _sfc_main$9, l as submenuAncestorOpenKey, n as _sfc_main$11, r as _sfc_main$10, t as useMenuDrillIn, u as useContextMenu } from "./useMenuDrillIn-CjU_ZMhh.js";
13
13
  import { t as _sfc_main$12 } from "./Divider-mOZ6vIQw.js";
14
14
  import { t as _sfc_main$13 } from "./Spinner-B7xuy3ZA.js";
@@ -1,2 +1,2 @@
1
- import { Ai as DateInputFormatName, Di as _default, Fi as DateInputStatus, Ii as DateInputStatusType, Mi as DateInputPresentation, Ni as DateInputProps, Oi as DateInputEmits, Pi as DateInputSlots, ji as DateInputNativePicker, ki as DateInputFormat } from "../index-B5cFQLav.js";
1
+ import { Bi as DateInputNativePicker, Gi as DateInputStatusType, Hi as DateInputProps, Ii as _default, Li as DateInputEmits, Ri as DateInputFormat, Ui as DateInputSlots, Vi as DateInputPresentation, Wi as DateInputStatus, zi as DateInputFormatName } from "../index-Djd6glIa.js";
2
2
  export { _default as DateInput, type DateInputEmits, 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-B57PrbII.js";
1
+ import { t as _sfc_main } from "../DateInput-cVln1Xnn.js";
2
2
  export { _sfc_main as DateInput };
@@ -10,7 +10,7 @@ import { o as useAstryxLocale, s as useAstryxMessages } from "./context-CVUee2tp
10
10
  import { a as weekdayNames, i as standaloneShortWeekdayNames, r as formatCalendarMonth } from "./locale-D4DoSjrL.js";
11
11
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
12
12
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
13
- import { t as _sfc_main$8 } from "./BottomSheet-B4sc3F1S.js";
13
+ import { t as _sfc_main$8 } from "./BottomSheet-itRm1Yh5.js";
14
14
  import { a as isOutsideCalendarBounds, c as toCalendarDate, i as isCalendarDateDisabled, l as weekStartIndex, n as resolveCalendarKey, o as formatWeekdayDate, r as buildCalendarWeeks, s as sameCalendarDay, t as _sfc_main$9 } from "./Calendar-Gx77cbI3.js";
15
15
  import { t as _sfc_main$10 } from "./Spinner-B7xuy3ZA.js";
16
16
  import { i as useAriaRequired } from "./context-Cfml4jaK.js";
@@ -767,7 +767,6 @@ const _hoisted_5 = [
767
767
  "id",
768
768
  "value",
769
769
  "placeholder",
770
- "disabled",
771
770
  "readonly",
772
771
  "aria-disabled",
773
772
  "inputmode",
@@ -1013,7 +1012,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1013
1012
  return parts.forwardedAttrs();
1014
1013
  }
1015
1014
  function onInput(event) {
1016
- if (useSheet.value || event instanceof InputEvent && event.isComposing) return;
1015
+ if (useSheet.value || locked.value || event instanceof InputEvent && event.isComposing) return;
1017
1016
  const target = event.target;
1018
1017
  const value = target.value.trim();
1019
1018
  inputValue.value = target.value;
@@ -1216,9 +1215,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1216
1215
  role: "combobox",
1217
1216
  value: inputValue.value,
1218
1217
  placeholder: resolvedPlaceholder.value,
1219
- disabled: locked.value && !showsDisabledMessage.value,
1220
- readonly: useSheet.value || showsDisabledMessage.value,
1221
- "aria-disabled": showsDisabledMessage.value || void 0,
1218
+ readonly: useSheet.value || locked.value,
1219
+ "aria-disabled": locked.value || void 0,
1222
1220
  inputmode: useSheet.value ? "none" : void 0,
1223
1221
  "aria-label": showsField.value ? void 0 : props.label,
1224
1222
  "aria-labelledby": showsField.value ? field?.labelId : void 0,
@@ -1,2 +1,2 @@
1
- import { Ci as DateRange, Ei as DateRangePreset, Si as _default, Ti as DateRangeInputProps, wi as DateRangeInputEmits } from "../index-B5cFQLav.js";
1
+ import { Fi as DateRangePreset, Mi as DateRange, Ni as DateRangeInputEmits, Pi as DateRangeInputProps, ji as _default } from "../index-Djd6glIa.js";
2
2
  export { type DateRange, _default as DateRangeInput, type DateRangeInputEmits, type DateRangeInputProps, type DateRangePreset };
@@ -1,2 +1,2 @@
1
- import { bi as DateTimeInputProps, vi as _default, xi as DateTimeInputSize, yi as DateTimeInputEmits } from "../index-B5cFQLav.js";
1
+ import { Ai as DateTimeInputSize, Di as _default, Oi as DateTimeInputEmits, ki as DateTimeInputProps } from "../index-Djd6glIa.js";
2
2
  export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateTimeInput-BMw1A5Q3.js";
1
+ import { t as _sfc_main } from "../DateTimeInput-CViJJt8m.js";
2
2
  export { _sfc_main as DateTimeInput };
@@ -6,13 +6,13 @@ import { o as useAstryxLocale, s as useAstryxMessages } from "./context-CVUee2tp
6
6
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
7
7
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
8
8
  import { a as parseISOTime, n as formatISOTime, t as formatDisplayTime } from "./useTimeValue-BJd0xBhG.js";
9
- import { t as _sfc_main$5 } from "./BottomSheet-B4sc3F1S.js";
9
+ import { t as _sfc_main$5 } from "./BottomSheet-itRm1Yh5.js";
10
10
  import { t as _sfc_main$6 } from "./Spinner-B7xuy3ZA.js";
11
11
  import { t as _sfc_main$7 } from "./Field-DRQuVVlH.js";
12
12
  import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
13
13
  import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
14
- import { n as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-B57PrbII.js";
15
- import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-Dajh0ej2.js";
14
+ import { n as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-cVln1Xnn.js";
15
+ import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-BnXwqr_O.js";
16
16
  import { r as effectivePickerPresentation, s as resolvePickerPresentation } from "./inputPresentation-BOyHkCDr.js";
17
17
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, toDisplayString, unref, useAttrs, useId, useModel, watch, withCtx } from "vue";
18
18
  import "../styles/date-time-input.css";
@@ -1,2 +1,2 @@
1
- import { a as _default, c as DialogPadding, d as DialogPurpose, f as DialogVariant, i as _default$1, l as DialogPosition, n as ImperativeDialogReturn, o as DialogBlockPosition, r as useImperativeDialog, s as DialogHeaderProps, t as ImperativeDialogOptions, u as DialogProps } from "../index-Ds201-d2.js";
1
+ import { a as _default, c as DialogPadding, d as DialogPurpose, f as DialogVariant, i as _default$1, l as DialogPosition, n as ImperativeDialogReturn, o as DialogBlockPosition, r as useImperativeDialog, s as DialogHeaderProps, t as ImperativeDialogOptions, u as DialogProps } from "../index-qayqGnJT.js";
2
2
  export { _default as Dialog, type DialogBlockPosition, _default$1 as DialogHeader, type DialogHeaderProps, type DialogPadding, type DialogPosition, type DialogProps, type DialogPurpose, type DialogVariant, type ImperativeDialogOptions, type ImperativeDialogReturn, useImperativeDialog };
@@ -1,3 +1,4 @@
1
- import { t as _sfc_main } from "../Dialog-fhyxB00e.js";
2
- import { n as _sfc_main$1, t as useImperativeDialog } from "../Dialog-CL8u76KG.js";
1
+ import { t as _sfc_main } from "../Dialog-BhxN-tp4.js";
2
+ import { t as _sfc_main$1 } from "../DialogHeader-B-Lz4rB5.js";
3
+ import { t as useImperativeDialog } from "../Dialog-Bn4eUNiy.js";
3
4
  export { _sfc_main as Dialog, _sfc_main$1 as DialogHeader, useImperativeDialog };
@@ -191,6 +191,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
191
191
  unlockScroll();
192
192
  }
193
193
  function onCancel(event) {
194
+ if (event.target !== dialogRef.value) return;
194
195
  event.preventDefault();
195
196
  if (props.purpose !== "required") emit("openChange", false);
196
197
  }
@@ -0,0 +1,49 @@
1
+ import { t as _sfc_main } from "./Dialog-BhxN-tp4.js";
2
+ import { defineComponent, h, readonly, ref, shallowRef } from "vue";
3
+ //#region src/Dialog/useImperativeDialog.ts
4
+ /**
5
+ * 无需管理 `isOpen` 状态即可打开对话框。
6
+ *
7
+ * @example
8
+ * ```
9
+ * const dialog = useImperativeDialog()
10
+ * // <button @click="dialog.show(() => h('p', 'Hello'))">Open</button>
11
+ * // <dialog.Host />
12
+ * ```
13
+ */
14
+ function useImperativeDialog(defaultOptions = {}) {
15
+ const isOpen = ref(false);
16
+ const content = shallowRef(() => null);
17
+ const options = shallowRef(defaultOptions);
18
+ function show(nextContent, nextOptions) {
19
+ content.value = nextContent;
20
+ if (nextOptions) options.value = {
21
+ ...options.value,
22
+ ...nextOptions
23
+ };
24
+ isOpen.value = true;
25
+ }
26
+ function hide() {
27
+ isOpen.value = false;
28
+ }
29
+ const Host = defineComponent({
30
+ name: "AstryxImperativeDialogHost",
31
+ setup() {
32
+ return () => h(_sfc_main, {
33
+ ...options.value,
34
+ isOpen: isOpen.value,
35
+ onOpenChange: (open) => {
36
+ if (!open) isOpen.value = false;
37
+ }
38
+ }, { default: () => content.value() });
39
+ }
40
+ });
41
+ return {
42
+ show,
43
+ hide,
44
+ isOpen: readonly(isOpen),
45
+ Host
46
+ };
47
+ }
48
+ //#endregion
49
+ export { useImperativeDialog as t };
@@ -1,7 +1,7 @@
1
1
  import { t as _sfc_main$1 } from "./IconButton-BmMIccb4.js";
2
2
  import { s as useAstryxMessages } from "./context-CVUee2tp.js";
3
- import { n as DIALOG_CONTEXT_KEY, t as _sfc_main$2 } from "./Dialog-fhyxB00e.js";
4
- import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, h, inject, mergeProps, normalizeClass, onBeforeUnmount, onMounted, openBlock, readonly, ref, renderSlot, shallowRef, toDisplayString, useAttrs, useId, useSlots, withCtx } from "vue";
3
+ import { n as DIALOG_CONTEXT_KEY } from "./Dialog-BhxN-tp4.js";
4
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, mergeProps, normalizeClass, onBeforeUnmount, onMounted, openBlock, renderSlot, toDisplayString, useAttrs, useId, useSlots, withCtx } from "vue";
5
5
  import "../styles/dialog-header.css";
6
6
  //#region src/Dialog/DialogHeader.vue
7
7
  const _hoisted_1 = {
@@ -109,50 +109,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
109
109
  }
110
110
  });
111
111
  //#endregion
112
- //#region src/Dialog/useImperativeDialog.ts
113
- /**
114
- * 无需管理 `isOpen` 状态即可打开对话框。
115
- *
116
- * @example
117
- * ```
118
- * const dialog = useImperativeDialog()
119
- * // <button @click="dialog.show(() => h('p', 'Hello'))">Open</button>
120
- * // <dialog.Host />
121
- * ```
122
- */
123
- function useImperativeDialog(defaultOptions = {}) {
124
- const isOpen = ref(false);
125
- const content = shallowRef(() => null);
126
- const options = shallowRef(defaultOptions);
127
- function show(nextContent, nextOptions) {
128
- content.value = nextContent;
129
- if (nextOptions) options.value = {
130
- ...options.value,
131
- ...nextOptions
132
- };
133
- isOpen.value = true;
134
- }
135
- function hide() {
136
- isOpen.value = false;
137
- }
138
- const Host = defineComponent({
139
- name: "AstryxImperativeDialogHost",
140
- setup() {
141
- return () => h(_sfc_main$2, {
142
- ...options.value,
143
- isOpen: isOpen.value,
144
- onOpenChange: (open) => {
145
- if (!open) isOpen.value = false;
146
- }
147
- }, { default: () => content.value() });
148
- }
149
- });
150
- return {
151
- show,
152
- hide,
153
- isOpen: readonly(isOpen),
154
- Host
155
- };
156
- }
157
- //#endregion
158
- export { _sfc_main as n, useImperativeDialog as t };
112
+ export { _sfc_main as t };
@@ -1,2 +1,2 @@
1
- import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-D05JGsT3.js";
1
+ import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-C8wfe0Mr.js";
2
2
  export { _default as Divider, type DividerOrientation, type DividerProps, type DividerVariant };
@@ -0,0 +1,2 @@
1
+ import { Ci as DrawerHeaderSlots, Ei as DrawerSlots, Si as DrawerHeaderProps, Ti as DrawerProps, bi as DrawerEmits, vi as _default$1, wi as DrawerPlacement, xi as DrawerHeaderEmits, yi as _default } from "../index-Djd6glIa.js";
2
+ export { _default as Drawer, type DrawerEmits, _default$1 as DrawerHeader, type DrawerHeaderEmits, type DrawerHeaderProps, type DrawerHeaderSlots, type DrawerPlacement, type DrawerProps, type DrawerSlots };
@@ -0,0 +1,2 @@
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../Drawer-DjSbpQcy.js";
2
+ export { _sfc_main as Drawer, _sfc_main$1 as DrawerHeader };