@astryx-vue/core 0.6.0 → 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 (155) 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/AppShell/index.d.ts +1 -1
  4. package/dist/AvatarGroup/index.d.ts +1 -1
  5. package/dist/AvatarGroup/index.js +1 -1
  6. package/dist/{AvatarGroup-DhVBdHeQ.js → AvatarGroup-ezWQX5UE.js} +5 -2
  7. package/dist/Banner/index.d.ts +1 -1
  8. package/dist/BottomSheet/index.js +2 -2
  9. package/dist/{BottomSheet-m54uCMJN.js → BottomSheet-BrxST6Zp.js} +2 -1
  10. package/dist/{BottomSheet-B4sc3F1S.js → BottomSheet-itRm1Yh5.js} +1 -0
  11. package/dist/Breadcrumbs/index.d.ts +2 -2
  12. package/dist/Breadcrumbs/index.js +1 -1
  13. package/dist/{Breadcrumbs-DRXYUqOk.js → Breadcrumbs-DYmOUlSu.js} +1 -1
  14. package/dist/Button/index.d.ts +1 -1
  15. package/dist/ButtonGroup/index.d.ts +1 -1
  16. package/dist/Calendar/index.d.ts +1 -1
  17. package/dist/Card/index.d.ts +1 -1
  18. package/dist/Chat/index.d.ts +1 -1
  19. package/dist/Chat/index.js +1 -1
  20. package/dist/{Chat-sNg2CZ_P.js → Chat-DpH2ob4k.js} +1 -1
  21. package/dist/CheckboxInput/index.d.ts +1 -1
  22. package/dist/CheckboxInput/index.js +1 -1
  23. package/dist/{CheckboxInput-DDORpsYN.js → CheckboxInput-D0SSjziv.js} +2 -4
  24. package/dist/CheckboxList/index.d.ts +1 -1
  25. package/dist/CheckboxList/index.js +1 -1
  26. package/dist/{CheckboxList-B8_wed6z.js → CheckboxList-DnqRfWKg.js} +1 -1
  27. package/dist/ClickableCard/index.d.ts +1 -1
  28. package/dist/ClickableCard/index.js +1 -1
  29. package/dist/{ClickableCard-DM66XZ07.js → ClickableCard-CGjr4c7g.js} +1 -1
  30. package/dist/Code/index.d.ts +1 -1
  31. package/dist/Collapsible/index.d.ts +1 -1
  32. package/dist/CommandPalette/index.js +1 -1
  33. package/dist/{CommandPalette-DFxk2sil.js → CommandPalette-B6lzcEE4.js} +1 -1
  34. package/dist/ComplexSelector/index.d.ts +1 -1
  35. package/dist/ComplexSelector/index.js +1 -1
  36. package/dist/{ComplexSelector-32r0RVQE.js → ComplexSelector-CABdPOyw.js} +16 -3
  37. package/dist/ContextMenu/index.d.ts +2 -2
  38. package/dist/ContextMenu/index.js +1 -1
  39. package/dist/{ContextMenu-BH_yV1xZ.js → ContextMenu-DMSJQdZ5.js} +1 -1
  40. package/dist/DateInput/index.d.ts +1 -1
  41. package/dist/DateInput/index.js +1 -1
  42. package/dist/{DateInput-B57PrbII.js → DateInput-cVln1Xnn.js} +4 -6
  43. package/dist/DateRangeInput/index.d.ts +1 -1
  44. package/dist/DateTimeInput/index.d.ts +1 -1
  45. package/dist/DateTimeInput/index.js +1 -1
  46. package/dist/{DateTimeInput-BMw1A5Q3.js → DateTimeInput-CViJJt8m.js} +3 -3
  47. package/dist/Dialog/index.d.ts +1 -1
  48. package/dist/Dialog/index.js +3 -2
  49. package/dist/{Dialog-fhyxB00e.js → Dialog-BhxN-tp4.js} +1 -0
  50. package/dist/Dialog-Bn4eUNiy.js +49 -0
  51. package/dist/{Dialog-CL8u76KG.js → DialogHeader-B-Lz4rB5.js} +3 -49
  52. package/dist/Divider/index.d.ts +1 -1
  53. package/dist/Drawer/index.d.ts +2 -0
  54. package/dist/Drawer/index.js +2 -0
  55. package/dist/Drawer-DjSbpQcy.js +137 -0
  56. package/dist/DropdownMenu/index.d.ts +2 -2
  57. package/dist/DropdownMenu/index.js +2 -2
  58. package/dist/{DropdownMenu-C0QDklYy.js → DropdownMenu-Cr1zAiZm.js} +142 -27
  59. package/dist/{DropdownMenu-DO9lDRvW.js → DropdownMenu-CxbpuT2r.js} +2 -2
  60. package/dist/{DropdownMenuRadioItem.vue-D-VSfulY.d.ts → DropdownMenuRadioItem.vue-z0XU7pZS.d.ts} +9 -0
  61. package/dist/FileInput/index.d.ts +1 -1
  62. package/dist/HoverCard/index.js +1 -1
  63. package/dist/{HoverCard-BpJhT0sn.js → HoverCard-C3zQizyS.js} +93 -67
  64. package/dist/List/index.d.ts +1 -1
  65. package/dist/Markdown/plugin-protocol/index.js +4 -3
  66. package/dist/MetadataList/index.d.ts +1 -1
  67. package/dist/MoreMenu/index.d.ts +1 -1
  68. package/dist/MultiSelector/index.d.ts +1 -1
  69. package/dist/MultiSelector/index.js +1 -1
  70. package/dist/{MultiSelector-DVqD6OEy.js → MultiSelector-r5acBuN0.js} +10 -5
  71. package/dist/NavItem/index.d.ts +1 -1
  72. package/dist/NumberInput/index.d.ts +1 -1
  73. package/dist/OverflowList/index.d.ts +1 -1
  74. package/dist/Pagination/index.d.ts +1 -1
  75. package/dist/Pagination/index.js +1 -1
  76. package/dist/{Pagination-L0IDhBbo.js → Pagination-CYmPEKKt.js} +1 -1
  77. package/dist/Popover/index.d.ts +1 -1
  78. package/dist/PowerSearch/index.d.ts +1 -1
  79. package/dist/PowerSearch/index.js +1 -1
  80. package/dist/{PowerSearch-CBYYhpvA.js → PowerSearch-CjhX2YkL.js} +8 -8
  81. package/dist/ProgressBar/index.d.ts +1 -1
  82. package/dist/Radio/index.d.ts +1 -1
  83. package/dist/RadioList/index.d.ts +1 -1
  84. package/dist/ScrollableArea/index.d.ts +1 -1
  85. package/dist/SelectableCard/index.d.ts +1 -1
  86. package/dist/Selector/index.d.ts +1 -1
  87. package/dist/Selector/index.js +1 -1
  88. package/dist/{Selector-Dle5Lbvs.js → Selector-PYpxWfKo.js} +38 -15
  89. package/dist/SideNav/index.d.ts +1 -1
  90. package/dist/Stepper/index.d.ts +1 -1
  91. package/dist/Switch/index.d.ts +1 -1
  92. package/dist/Switch/index.js +1 -1
  93. package/dist/{Switch-DBdLd0-t.js → Switch-DSuC0F7H.js} +2 -4
  94. package/dist/TabList/index.d.ts +1 -1
  95. package/dist/TabList/index.js +1 -1
  96. package/dist/{TabList-npiEQK-q.js → TabList-CXLDPFte.js} +30 -6
  97. package/dist/Table/index.d.ts +1 -1
  98. package/dist/Table/index.js +1 -1
  99. package/dist/{Table-BwfRe7_x.js → Table-36BOw1Q0.js} +5 -5
  100. package/dist/TextArea/index.d.ts +1 -1
  101. package/dist/TextInput/index.d.ts +1 -1
  102. package/dist/{TimeField-Dajh0ej2.js → TimeField-BnXwqr_O.js} +8 -12
  103. package/dist/TimeInput/index.d.ts +1 -1
  104. package/dist/TimeInput/index.js +1 -1
  105. package/dist/{TimeInput-BVrrBcMF.js → TimeInput-68-3BdYQ.js} +1 -1
  106. package/dist/Timestamp/index.d.ts +1 -1
  107. package/dist/Timestamp/index.js +1 -1
  108. package/dist/{Timestamp-Bf6iQTk6.js → Timestamp-DTr30OUF.js} +1 -1
  109. package/dist/ToggleButton/index.d.ts +1 -1
  110. package/dist/Token/index.d.ts +1 -1
  111. package/dist/Token/index.js +1 -1
  112. package/dist/{Token-CBrEN21_.js → Token-DP3bU-8c.js} +1 -1
  113. package/dist/Tokenizer/index.d.ts +1 -1
  114. package/dist/Tokenizer/index.js +1 -1
  115. package/dist/{Tokenizer-DxOCrbq3.js → Tokenizer-DT1Kj9dR.js} +1 -1
  116. package/dist/Toolbar/index.d.ts +1 -1
  117. package/dist/TopNav/index.d.ts +1 -1
  118. package/dist/TreeList/index.d.ts +1 -1
  119. package/dist/Typeahead/index.d.ts +1 -1
  120. package/dist/Typeahead/index.js +1 -1
  121. package/dist/{Typeahead-XpX5aA-Q.js → Typeahead-D4oT1wUP.js} +1 -1
  122. package/dist/{disabledInteraction-C9lrgFxB.js → disabledInteraction-CPzL8kVP.js} +20 -1
  123. package/dist/{index-Dacg7XTH.d.ts → index-8px-LKw_.d.ts} +2 -2
  124. package/dist/{index-D_K1wfRa.d.ts → index-B2kcUxGA.d.ts} +1 -1
  125. package/dist/{index-CL8JvxHW.d.ts → index-B3yTdknp.d.ts} +1 -1
  126. package/dist/{index-rszZajcw.d.ts → index-B449gOMC.d.ts} +2 -2
  127. package/dist/{index-RW8kvEwf.d.ts → index-B6eL2gOK.d.ts} +5 -5
  128. package/dist/{index-C3f1zsJR.d.ts → index-Bm_3wP0q.d.ts} +2 -2
  129. package/dist/{index-BaxM-pFP.d.ts → index-BnEhvmdR.d.ts} +4 -4
  130. package/dist/{index-DTyX3QfK.d.ts → index-C3dirxkN.d.ts} +4 -4
  131. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  132. package/dist/{index-WrrH8ulk.d.ts → index-CA9Nneq_.d.ts} +6 -6
  133. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  134. package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
  135. package/dist/{index-DLAG3m9W.d.ts → index-DXJ3U3ve.d.ts} +2 -2
  136. package/dist/{index-DR3eQt87.d.ts → index-Djd6glIa.d.ts} +206 -115
  137. package/dist/{index-BNaRK-s5.d.ts → index-DsaP4-eB.d.ts} +1 -1
  138. package/dist/{index-C_6RCsGf.d.ts → index-Gnewu6-J.d.ts} +1 -1
  139. package/dist/{index-B1WWphal.d.ts → index-IvAfdGCC.d.ts} +1 -1
  140. package/dist/{index-TA1zVibb.d.ts → index-MEix_m1o.d.ts} +4 -4
  141. package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
  142. package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
  143. package/dist/{index-CqSDC6Af.d.ts → index-aTBpXbot.d.ts} +6 -6
  144. package/dist/{index-ChOyJzJh.d.ts → index-cG1E0U2s.d.ts} +2 -2
  145. package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
  146. package/dist/{index-3t5RAfNP.d.ts → index-mkbGYz8f.d.ts} +2 -2
  147. package/dist/{index-C732aNMY.d.ts → index-qayqGnJT.d.ts} +3 -3
  148. package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
  149. package/dist/index.d.ts +68 -68
  150. package/dist/index.js +104 -102
  151. package/package.json +5 -1
  152. package/styles/drawer.css +77 -0
  153. package/styles/dropdown-menu.css +28 -0
  154. package/styles.css +1 -0
  155. package/dist/{index-CHx33xGa.d.ts → index-BJ9Wim6J.d.ts} +1 -1
@@ -93,6 +93,83 @@ function mergeIds(...ids) {
93
93
  return kept.length > 0 ? kept.join(" ") : void 0;
94
94
  }
95
95
  //#endregion
96
+ //#region src/HoverCard/hoverCardTriggerBinding.ts
97
+ function useHoverCardTriggerBinding(options) {
98
+ let bound = null;
99
+ let describedByBefore = null;
100
+ let haspopupBefore = null;
101
+ let controlsBefore = null;
102
+ let expandedBefore = null;
103
+ let canExpand = false;
104
+ function applyTriggerAttributes() {
105
+ const active = options.triggerRef.value;
106
+ if (!active) return;
107
+ if (options.isDialog.value) {
108
+ active.setAttribute("aria-haspopup", "dialog");
109
+ if (options.isOpen.value) active.setAttribute("aria-controls", mergeIds(controlsBefore, options.layerId) ?? "");
110
+ else if (controlsBefore) active.setAttribute("aria-controls", controlsBefore);
111
+ else active.removeAttribute("aria-controls");
112
+ if (canExpand) active.setAttribute("aria-expanded", String(options.isOpen.value));
113
+ else if (expandedBefore) active.setAttribute("aria-expanded", expandedBefore);
114
+ else active.removeAttribute("aria-expanded");
115
+ return;
116
+ }
117
+ active.setAttribute("aria-describedby", mergeIds(describedByBefore, options.layerId) ?? "");
118
+ }
119
+ function restoreTriggerAttributes() {
120
+ const active = bound;
121
+ if (!active) return;
122
+ if (describedByBefore) active.setAttribute("aria-describedby", describedByBefore);
123
+ else active.removeAttribute("aria-describedby");
124
+ for (const [name, before] of [
125
+ ["aria-haspopup", haspopupBefore],
126
+ ["aria-controls", controlsBefore],
127
+ ["aria-expanded", expandedBefore]
128
+ ]) if (before) active.setAttribute(name, before);
129
+ else active.removeAttribute(name);
130
+ }
131
+ function bind(element) {
132
+ if (bound === element) return;
133
+ unbind();
134
+ bound = element;
135
+ describedByBefore = element.getAttribute("aria-describedby");
136
+ haspopupBefore = element.getAttribute("aria-haspopup");
137
+ controlsBefore = element.getAttribute("aria-controls");
138
+ expandedBefore = element.getAttribute("aria-expanded");
139
+ canExpand = options.supportsExpanded(element);
140
+ element.addEventListener("pointerenter", options.handlers.onPointerEnter);
141
+ element.addEventListener("mouseenter", options.handlers.onMouseEnter);
142
+ element.addEventListener("mouseleave", options.handlers.onMouseLeave);
143
+ element.addEventListener("pointerdown", options.handlers.onPointerDown);
144
+ if (options.shouldListenFocus(element)) {
145
+ element.addEventListener("focusin", options.handlers.onFocusIn);
146
+ element.addEventListener("focusout", options.handlers.onFocusOut);
147
+ }
148
+ applyTriggerAttributes();
149
+ }
150
+ function unbind() {
151
+ if (bound == null) return;
152
+ bound.removeEventListener("pointerenter", options.handlers.onPointerEnter);
153
+ bound.removeEventListener("mouseenter", options.handlers.onMouseEnter);
154
+ bound.removeEventListener("mouseleave", options.handlers.onMouseLeave);
155
+ bound.removeEventListener("pointerdown", options.handlers.onPointerDown);
156
+ bound.removeEventListener("focusin", options.handlers.onFocusIn);
157
+ bound.removeEventListener("focusout", options.handlers.onFocusOut);
158
+ restoreTriggerAttributes();
159
+ bound = null;
160
+ describedByBefore = null;
161
+ haspopupBefore = null;
162
+ controlsBefore = null;
163
+ expandedBefore = null;
164
+ canExpand = false;
165
+ }
166
+ return {
167
+ bind,
168
+ unbind,
169
+ applyTriggerAttributes
170
+ };
171
+ }
172
+ //#endregion
96
173
  //#region src/HoverCard/useHoverCard.ts
97
174
  const GAP = 4;
98
175
  const TOUCH_POINTER_TYPES = /* @__PURE__ */ new Set(["touch", "pen"]);
@@ -248,84 +325,33 @@ function useHoverCard(options = {}) {
248
325
  if (triggerRef.value?.contains(target) || layer.contentRef.value?.contains(target)) return;
249
326
  hideNow();
250
327
  }
251
- let bound = null;
252
- let describedByBefore = null;
253
- let haspopupBefore = null;
254
- let controlsBefore = null;
255
- let expandedBefore = null;
256
- let canExpand = false;
257
- function applyTriggerAttributes() {
258
- const active = triggerRef.value;
259
- if (!active) return;
260
- if (isDialog.value) {
261
- active.setAttribute("aria-haspopup", "dialog");
262
- if (isOpen.value) active.setAttribute("aria-controls", mergeIds(controlsBefore, layer.id) ?? "");
263
- else if (controlsBefore) active.setAttribute("aria-controls", controlsBefore);
264
- else active.removeAttribute("aria-controls");
265
- if (canExpand) active.setAttribute("aria-expanded", String(isOpen.value));
266
- else if (expandedBefore) active.setAttribute("aria-expanded", expandedBefore);
267
- else active.removeAttribute("aria-expanded");
268
- return;
269
- }
270
- active.setAttribute("aria-describedby", mergeIds(describedByBefore, layer.id) ?? "");
271
- }
272
- function restoreTriggerAttributes() {
273
- const active = bound;
274
- if (!active) return;
275
- if (describedByBefore) active.setAttribute("aria-describedby", describedByBefore);
276
- else active.removeAttribute("aria-describedby");
277
- if (haspopupBefore) active.setAttribute("aria-haspopup", haspopupBefore);
278
- else active.removeAttribute("aria-haspopup");
279
- if (controlsBefore) active.setAttribute("aria-controls", controlsBefore);
280
- else active.removeAttribute("aria-controls");
281
- if (expandedBefore) active.setAttribute("aria-expanded", expandedBefore);
282
- else active.removeAttribute("aria-expanded");
283
- }
284
328
  function shouldListenFocus(element) {
285
329
  const mode = toValue(options.focusTrigger) ?? "auto";
286
330
  return mode === "always" || mode === "auto" && isFocusable(element);
287
331
  }
288
- function bind(element) {
289
- if (bound === element) return;
290
- unbind();
291
- bound = element;
292
- describedByBefore = element.getAttribute("aria-describedby");
293
- haspopupBefore = element.getAttribute("aria-haspopup");
294
- controlsBefore = element.getAttribute("aria-controls");
295
- expandedBefore = element.getAttribute("aria-expanded");
296
- canExpand = supportsAriaExpanded(element);
297
- element.addEventListener("pointerenter", onPointerEnter);
298
- element.addEventListener("mouseenter", onMouseEnter);
299
- element.addEventListener("mouseleave", onMouseLeave);
300
- element.addEventListener("pointerdown", onPointerDown);
301
- if (shouldListenFocus(element)) {
302
- element.addEventListener("focusin", onFocusIn);
303
- element.addEventListener("focusout", onFocusOut);
332
+ const { bind, unbind, applyTriggerAttributes } = useHoverCardTriggerBinding({
333
+ triggerRef,
334
+ isOpen,
335
+ isDialog,
336
+ layerId: layer.id,
337
+ supportsExpanded: supportsAriaExpanded,
338
+ shouldListenFocus,
339
+ handlers: {
340
+ onPointerEnter,
341
+ onMouseEnter,
342
+ onMouseLeave,
343
+ onPointerDown,
344
+ onFocusIn,
345
+ onFocusOut
304
346
  }
305
- applyTriggerAttributes();
306
- }
307
- function unbind() {
308
- if (bound == null) return;
309
- bound.removeEventListener("pointerenter", onPointerEnter);
310
- bound.removeEventListener("mouseenter", onMouseEnter);
311
- bound.removeEventListener("mouseleave", onMouseLeave);
312
- bound.removeEventListener("pointerdown", onPointerDown);
313
- bound.removeEventListener("focusin", onFocusIn);
314
- bound.removeEventListener("focusout", onFocusOut);
315
- restoreTriggerAttributes();
316
- bound = null;
317
- describedByBefore = null;
318
- haspopupBefore = null;
319
- controlsBefore = null;
320
- expandedBefore = null;
321
- canExpand = false;
322
- }
347
+ });
323
348
  watch(triggerRef, (element) => {
324
349
  if (element == null) unbind();
325
350
  else bind(element);
326
351
  }, { flush: "sync" });
327
352
  watch(isOpen, (visible) => {
328
353
  applyTriggerAttributes();
354
+ if (!visible) isHoveringContent = false;
329
355
  if (typeof document === "undefined") return;
330
356
  if (visible) document.addEventListener("pointerdown", onDocumentPointerDown, true);
331
357
  else document.removeEventListener("pointerdown", onDocumentPointerDown, true);
@@ -1,3 +1,3 @@
1
1
  import { _ as ListItemProps, a as ItemLayout, b as ListProps, c as ItemSwipeAction, d as ItemSwipeSide, f as ItemTarget, g as ListEdgeCompensation, h as ListEdge, i as ItemLabel, l as ItemSwipeActions, m as ListDensity, n as ItemDensity, o as ItemProps, p as ItemText, r as ItemElement, s as ItemSlots, t as ItemAlign, u as ItemSwipeBehavior, v as ListItemSlots, x as ListSlots, y as ListMarkerStyle } from "../types-Dxs5rf-2.js";
2
- import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-C3f1zsJR.js";
2
+ import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-Bm_3wP0q.js";
3
3
  export { _default as Item, type ItemAlign, type ItemDensity, type ItemElement, type ItemLabel, type ItemLayout, type ItemProps, type ItemSlots, type ItemSwipeAction, type ItemSwipeActions, type ItemSwipeBehavior, type ItemSwipeSide, type ItemTarget, type ItemText, _default$1 as List, type ListDensity, type ListEdge, type ListEdgeCompensation, _default$2 as ListItem, type ListItemProps, type ListItemSlots, type ListMarkerStyle, type ListProps, type ListSlots, useItemDescriptionId, useListContext };
@@ -24,14 +24,15 @@ function readFields(source) {
24
24
  const body = source.slice(openingLength);
25
25
  const close = /(?:^|\r?\n)---(?=\r?\n|$)/.exec(body);
26
26
  if (close == null) return { status: "defer" };
27
- const fields = Object.create(null);
27
+ const entries = /* @__PURE__ */ new Map();
28
28
  for (const line of body.slice(0, close.index).split(/\r?\n/)) {
29
29
  if (line.trim() === "") continue;
30
30
  const separator = line.indexOf(":");
31
31
  const key = separator < 0 ? "" : line.slice(0, separator).trim();
32
- if (separator <= 0 || key === "" || Object.hasOwn(fields, key)) return { status: "none" };
33
- fields[key] = line.slice(separator + 1).trim();
32
+ if (separator <= 0 || key === "" || entries.has(key)) return { status: "none" };
33
+ entries.set(key, line.slice(separator + 1).trim());
34
34
  }
35
+ const fields = Object.fromEntries(entries);
35
36
  let end = openingLength + close.index + close[0].length;
36
37
  if (source.startsWith("\r\n", end)) end += 2;
37
38
  else if (source[end] === "\n") end += 1;
@@ -1,2 +1,2 @@
1
- import { a as MetadataListItemSlots, c as MetadataListOrientation, i as MetadataListItemProps, l as MetadataListProps, n as _default, o as MetadataListLabelConfig, r as MetadataListColumns, s as MetadataListLabelPosition, t as _default$1, u as MetadataListSlots } from "../index-utZGF4GR.js";
1
+ import { a as MetadataListItemSlots, c as MetadataListOrientation, i as MetadataListItemProps, l as MetadataListProps, n as _default, o as MetadataListLabelConfig, r as MetadataListColumns, s as MetadataListLabelPosition, t as _default$1, u as MetadataListSlots } from "../index-NOXYEdOI.js";
2
2
  export { _default as MetadataList, type MetadataListColumns, _default$1 as MetadataListItem, type MetadataListItemProps, type MetadataListItemSlots, type MetadataListLabelConfig, type MetadataListLabelPosition, type MetadataListOrientation, type MetadataListProps, type MetadataListSlots };
@@ -1,2 +1,2 @@
1
- import { $r as MoreMenuDivider, Qr as _default, ai as MoreMenuOption, ci as MoreMenuResolvedPresentation, ei as MoreMenuEmits, ii as MoreMenuItemVariant, li as MoreMenuSection, ni as MoreMenuInitialFocus, oi as MoreMenuPresentation, ri as MoreMenuItem, si as MoreMenuProps, ti as MoreMenuIcon, ui as MoreMenuSlots } from "../index-DR3eQt87.js";
1
+ import { $r as MoreMenuDivider, Qr as _default, ai as MoreMenuOption, ci as MoreMenuResolvedPresentation, ei as MoreMenuEmits, ii as MoreMenuItemVariant, li as MoreMenuSection, ni as MoreMenuInitialFocus, oi as MoreMenuPresentation, ri as MoreMenuItem, si as MoreMenuProps, ti as MoreMenuIcon, ui as MoreMenuSlots } from "../index-Djd6glIa.js";
2
2
  export { _default as MoreMenu, type MoreMenuDivider, type MoreMenuEmits, type MoreMenuIcon, type MoreMenuInitialFocus, type MoreMenuItem, type MoreMenuItemVariant, type MoreMenuOption, type MoreMenuPresentation, type MoreMenuProps, type MoreMenuResolvedPresentation, type MoreMenuSection, type MoreMenuSlots };
@@ -1,2 +1,2 @@
1
- import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-WrrH8ulk.js";
1
+ import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-CA9Nneq_.js";
2
2
  export { _default as MultiSelector, type MultiSelectorCheckboxPosition, type MultiSelectorCreateChange, type MultiSelectorDivider, type MultiSelectorEmits, type MultiSelectorHandle, type MultiSelectorHandleRef, type MultiSelectorOption, type MultiSelectorOptionData, type MultiSelectorPresentation, type MultiSelectorProps, type MultiSelectorSection, type MultiSelectorSelectedItem, type MultiSelectorSize, type MultiSelectorSlots, type MultiSelectorStatus, type MultiSelectorStatusVariant, type MultiSelectorTriggerDisplay, type MultiSelectorVariant, SELECT_ALL_VALUE, flattenOptions };
@@ -1,2 +1,2 @@
1
- import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-DVqD6OEy.js";
1
+ import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-r5acBuN0.js";
2
2
  export { _sfc_main as MultiSelector, SELECT_ALL_VALUE, flattenOptions };
@@ -12,15 +12,16 @@ import { n as isKeyboardModality, r as trackInteractionModality } from "./intera
12
12
  import { s as useAstryxMessages } from "./context-CVUee2tp.js";
13
13
  import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
14
14
  import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
15
- import { t as _sfc_main$4 } from "./BottomSheet-B4sc3F1S.js";
15
+ import { t as _sfc_main$4 } from "./BottomSheet-itRm1Yh5.js";
16
16
  import { t as _sfc_main$5 } from "./Spinner-B7xuy3ZA.js";
17
17
  import { t as useIndicator } from "./useIndicator-fTOZfYVI.js";
18
18
  import { t as _sfc_main$6 } from "./Field-DRQuVVlH.js";
19
19
  import { n as useInputGroupContext } from "./context-IvbU9c3T.js";
20
20
  import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
21
+ import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
21
22
  import { n as fieldStatusPlacement, t as normalizeTriggerVariant } from "./triggerVariant-BsL8jMHs.js";
22
23
  import { n as _sfc_main$7, t as searchResultMessage } from "./searchResultMessage-DEyqvflW.js";
23
- import { t as _sfc_main$8 } from "./Token-CBrEN21_.js";
24
+ import { t as _sfc_main$8 } from "./Token-DP3bU-8c.js";
24
25
  import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-DGxxKHZb.js";
25
26
  import { n as OptionAction, r as isOptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-CkJcuvaU.js";
26
27
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, onScopeDispose, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
@@ -820,7 +821,6 @@ const _hoisted_2 = {
820
821
  "aria-hidden": "true"
821
822
  };
822
823
  const _hoisted_3 = [
823
- "disabled",
824
824
  "aria-disabled",
825
825
  "aria-readonly",
826
826
  "aria-busy",
@@ -1119,7 +1119,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1119
1119
  });
1120
1120
  useDevWarning("MultiSelector", "`containerClass`/`containerStyle` have no effect on a custom trigger.", () => hasCustomTrigger.value && (props.containerClass != null || props.containerStyle != null));
1121
1121
  useDevWarning("MultiSelector", "`controlClass`/`controlStyle` have no effect on a custom trigger.", () => hasCustomTrigger.value && (props.controlClass != null || props.controlStyle != null));
1122
+ /**
1123
+ * 禁用态用 `aria-disabled` 表达,触发器仍留在 Tab 序列里(spec:AST-085 FR1)。
1124
+ * 原生 `disabled` 不会派发事件,换成 aria 之后要自己挡住指针和按键(FR2)。
1125
+ */
1122
1126
  function onTriggerClick(event) {
1127
+ if (consumeWhileDisabled(event, control.isDisabled.value)) return;
1123
1128
  if (control.canActivate.value) combobox.toggle();
1124
1129
  emit("click", event);
1125
1130
  }
@@ -1128,6 +1133,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1128
1133
  disabledTooltip.onFocus(event);
1129
1134
  }
1130
1135
  function onTriggerKeyDown(event) {
1136
+ if (consumeWhileDisabled(event, control.isDisabled.value)) return;
1131
1137
  menu.onKeyDown(event);
1132
1138
  if (!event.defaultPrevented) emit("keydown", event);
1133
1139
  }
@@ -1221,8 +1227,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1221
1227
  ref: triggerRef,
1222
1228
  type: "button",
1223
1229
  class: "astryx-multi-selector-trigger",
1224
- disabled: unref(control).isDisabled.value && !showsDisabledMessage.value,
1225
- "aria-disabled": showsDisabledMessage.value ? "true" : void 0,
1230
+ "aria-disabled": unref(control).isDisabled.value || void 0,
1226
1231
  "aria-readonly": unref(control).isReadOnly.value || void 0,
1227
1232
  "aria-busy": unref(control).isLoading.value || void 0,
1228
1233
  role: props.searchable && !unref(control).isReadOnly.value ? void 0 : "combobox",
@@ -1,3 +1,3 @@
1
1
  import { a as NavItemSize, i as NavItemProps, n as NavIconSlots, o as NavItemSlots, r as NavItemEmits, s as NavLinkComponent, t as NavIconProps } from "../types-BG23kC3S.js";
2
- import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-CL8JvxHW.js";
2
+ import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-B3yTdknp.js";
3
3
  export { _default as NavIcon, type NavIconProps, type NavIconSlots, _default$1 as NavItem, type NavItemEmits, type NavItemProps, type NavItemSize, type NavItemSlots, type NavLinkComponent, resolveNavRoot };
@@ -1,2 +1,2 @@
1
- import { Jr as _default, Xr as NumberInputProps, Yr as NumberInputEmits, Zr as NumberInputStatus } from "../index-DR3eQt87.js";
1
+ import { Jr as _default, Xr as NumberInputProps, Yr as NumberInputEmits, Zr as NumberInputStatus } from "../index-Djd6glIa.js";
2
2
  export { _default as NumberInput, type NumberInputEmits, type NumberInputProps, type NumberInputStatus };
@@ -1,2 +1,2 @@
1
- import { Gr as OverflowListEmits, Kr as OverflowListItem, Ur as _default, Wr as OverflowListCollapsedItem, qr as OverflowListProps } from "../index-DR3eQt87.js";
1
+ import { Gr as OverflowListEmits, Kr as OverflowListItem, Ur as _default, Wr as OverflowListCollapsedItem, qr as OverflowListProps } from "../index-Djd6glIa.js";
2
2
  export { _default as OverflowList, type OverflowListCollapsedItem, type OverflowListEmits, type OverflowListItem, type OverflowListProps };
@@ -1,2 +1,2 @@
1
- import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-rszZajcw.js";
1
+ import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-B449gOMC.js";
2
2
  export { _default as Pagination, type PaginationEmits, type PaginationProps, type PaginationSize, type PaginationSlots, type PaginationVariant };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Pagination-L0IDhBbo.js";
1
+ import { t as _sfc_main } from "../Pagination-CYmPEKKt.js";
2
2
  export { _sfc_main as Pagination };
@@ -1,6 +1,6 @@
1
1
  import { s as useAstryxMessages } from "./context-CVUee2tp.js";
2
2
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
3
- import { t as _sfc_main$1 } from "./Selector-Dle5Lbvs.js";
3
+ import { t as _sfc_main$1 } from "./Selector-PYpxWfKo.js";
4
4
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, vShow, watch, withDirectives, withKeys } from "vue";
5
5
  import "../styles/pagination.css";
6
6
  /**
@@ -1,3 +1,3 @@
1
1
  import { a as PopoverRole, i as PopoverProps, n as PopoverPadding, r as PopoverPlacement, t as PopoverAlignment } from "../types-OGMYGejX.js";
2
- import { i as _default, n as UsePopoverReturn, r as usePopover, t as UsePopoverOptions } from "../index-TA1zVibb.js";
2
+ import { i as _default, n as UsePopoverReturn, r as usePopover, t as UsePopoverOptions } from "../index-MEix_m1o.js";
3
3
  export { _default as Popover, type PopoverAlignment, type PopoverPadding, type PopoverPlacement, type PopoverProps, type PopoverRole, type UsePopoverOptions, type UsePopoverReturn, usePopover };
@@ -1,2 +1,2 @@
1
- import { A as PowerSearchItem, C as PowerSearchEmits, D as PowerSearchFieldType, E as PowerSearchFieldDefinition, F as PowerSearchSlots, I as PowerSearchStatus, M as PowerSearchOverflow, N as PowerSearchProps, O as PowerSearchFilter, P as PowerSearchSize, S as PowerSearchConfig, T as PowerSearchField, _ as FilterValue, a as usePowerSearchConfig, b as PowerSearchChangeType, c as resolveOperatorLabel, d as formatFilterValue, f as completePowerSearchFilter, g as DateTimeRangePart, h as DateTimeRange, i as createPowerSearchConfig, j as PowerSearchOperator, k as PowerSearchHandle, l as formatDateAbsolute, m as createPowerSearchLookup, n as InferPowerSearchData, o as _default, p as PowerSearchLookup, r as applyPowerSearchFilters, s as resolveEditorPlacement, t as searchPowerSearchFields, u as formatDateAbsoluteCompact, v as OperatorValue, w as PowerSearchEntity, x as PowerSearchComponents, y as PartialFilter } from "../index-DTyX3QfK.js";
1
+ import { A as PowerSearchItem, C as PowerSearchEmits, D as PowerSearchFieldType, E as PowerSearchFieldDefinition, F as PowerSearchSlots, I as PowerSearchStatus, M as PowerSearchOverflow, N as PowerSearchProps, O as PowerSearchFilter, P as PowerSearchSize, S as PowerSearchConfig, T as PowerSearchField, _ as FilterValue, a as usePowerSearchConfig, b as PowerSearchChangeType, c as resolveOperatorLabel, d as formatFilterValue, f as completePowerSearchFilter, g as DateTimeRangePart, h as DateTimeRange, i as createPowerSearchConfig, j as PowerSearchOperator, k as PowerSearchHandle, l as formatDateAbsolute, m as createPowerSearchLookup, n as InferPowerSearchData, o as _default, p as PowerSearchLookup, r as applyPowerSearchFilters, s as resolveEditorPlacement, t as searchPowerSearchFields, u as formatDateAbsoluteCompact, v as OperatorValue, w as PowerSearchEntity, x as PowerSearchComponents, y as PartialFilter } from "../index-C3dirxkN.js";
2
2
  export { type DateTimeRange, type DateTimeRangePart, type FilterValue, type InferPowerSearchData, type OperatorValue, type PartialFilter, _default as PowerSearch, type PowerSearchChangeType, type PowerSearchComponents, type PowerSearchConfig, type PowerSearchEmits, type PowerSearchEntity, type PowerSearchField, type PowerSearchFieldDefinition, type PowerSearchFieldType, type PowerSearchFilter, type PowerSearchHandle, type PowerSearchItem, type PowerSearchLookup, type PowerSearchOperator, type PowerSearchOverflow, type PowerSearchProps, type PowerSearchSize, type PowerSearchSlots, type PowerSearchStatus, applyPowerSearchFilters, completePowerSearchFilter, createPowerSearchConfig, createPowerSearchLookup, formatDateAbsolute, formatDateAbsoluteCompact, formatFilterValue, resolveEditorPlacement, resolveOperatorLabel, searchPowerSearchFields, usePowerSearchConfig };
@@ -1,2 +1,2 @@
1
- import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "../PowerSearch-CBYYhpvA.js";
1
+ import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "../PowerSearch-CjhX2YkL.js";
2
2
  export { _sfc_main as PowerSearch, applyPowerSearchFilters, completePowerSearchFilter, createPowerSearchConfig, createPowerSearchLookup, formatDateAbsolute, formatDateAbsoluteCompact, formatFilterValue, resolveEditorPlacement, resolveOperatorLabel, searchPowerSearchFields, usePowerSearchConfig };
@@ -12,19 +12,19 @@ import { t as _sfc_main$7 } from "./Tooltip-sAM8i1eO.js";
12
12
  import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
13
13
  import { t as _sfc_main$8 } from "./Field-DRQuVVlH.js";
14
14
  import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
15
- import { t as _sfc_main$9 } from "./DateInput-B57PrbII.js";
15
+ import { t as _sfc_main$9 } from "./DateInput-cVln1Xnn.js";
16
16
  import { t as _sfc_main$10 } from "./DateRangeInput-D-umWs1s.js";
17
- import { t as _sfc_main$11 } from "./DateTimeInput-BMw1A5Q3.js";
18
- import { t as _sfc_main$12 } from "./Token-CBrEN21_.js";
17
+ import { t as _sfc_main$11 } from "./DateTimeInput-CViJJt8m.js";
18
+ import { t as _sfc_main$12 } from "./Token-DP3bU-8c.js";
19
19
  import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-DGxxKHZb.js";
20
- import { t as _sfc_main$13 } from "./MultiSelector-DVqD6OEy.js";
20
+ import { t as _sfc_main$13 } from "./MultiSelector-r5acBuN0.js";
21
21
  import { n as resolveNumberInputCommit, t as _sfc_main$14 } from "./NumberInput-DP7XAtGl.js";
22
- import { t as _sfc_main$15 } from "./Selector-Dle5Lbvs.js";
22
+ import { t as _sfc_main$15 } from "./Selector-PYpxWfKo.js";
23
23
  import { i as useTypeaheadMenu } from "./TypeaheadMenu-By-HLpFy.js";
24
24
  import { t as _sfc_main$16 } from "./TextInput-CzAq1vnQ.js";
25
- import { t as _sfc_main$17 } from "./TimeInput-BVrrBcMF.js";
26
- import { t as _sfc_main$18 } from "./Tokenizer-DxOCrbq3.js";
27
- import { t as _sfc_main$19 } from "./Typeahead-XpX5aA-Q.js";
25
+ import { t as _sfc_main$17 } from "./TimeInput-68-3BdYQ.js";
26
+ import { t as _sfc_main$18 } from "./Tokenizer-DT1Kj9dR.js";
27
+ import { t as _sfc_main$19 } from "./Typeahead-D4oT1wUP.js";
28
28
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
29
29
  import "../styles/layer.css";
30
30
  import "../styles/visually-hidden-utility.css";
@@ -1,2 +1,2 @@
1
- import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-YKCx03zD.js";
1
+ import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-CdvmnNMH.js";
2
2
  export { _default as ProgressBar, type ProgressBarMark, type ProgressBarProps, type ProgressBarSize, type ProgressBarVariant };
@@ -1,2 +1,2 @@
1
- import { Ar as RadioChangeEvent, Br as RadioStatus, Fr as RadioOption, Hr as RadioValue, Ir as RadioOrientation, Lr as RadioProps, Mr as RadioGroupProps, Nr as RadioGroupSlots, Or as _default$1, Rr as RadioSize, Vr as RadioStatusType, jr as RadioGroupEmits, kr as _default, zr as RadioSlots } from "../index-DR3eQt87.js";
1
+ import { Ar as RadioChangeEvent, Br as RadioStatus, Fr as RadioOption, Hr as RadioValue, Ir as RadioOrientation, Lr as RadioProps, Mr as RadioGroupProps, Nr as RadioGroupSlots, Or as _default$1, Rr as RadioSize, Vr as RadioStatusType, jr as RadioGroupEmits, kr as _default, zr as RadioSlots } from "../index-Djd6glIa.js";
2
2
  export { _default as Radio, type RadioChangeEvent, _default$1 as RadioGroup, type RadioGroupEmits, type RadioGroupProps, type RadioGroupSlots, type RadioOption, type RadioOrientation, type RadioProps, type RadioSize, type RadioSlots, type RadioStatus, type RadioStatusType, type RadioValue };
@@ -1,2 +1,2 @@
1
- import { Dr as _default, Er as RadioListItemProps, Pr as RadioListProps, Tr as _default$1 } from "../index-DR3eQt87.js";
1
+ import { Dr as _default, Er as RadioListItemProps, Pr as RadioListProps, Tr as _default$1 } from "../index-Djd6glIa.js";
2
2
  export { _default as RadioList, _default$1 as RadioListItem, type RadioListItemProps, type RadioListProps };
@@ -1,2 +1,2 @@
1
- import { Cr as ScrollableAreaProps, Sr as _default, wr as ScrollableAreaSlots } from "../index-DR3eQt87.js";
1
+ import { Cr as ScrollableAreaProps, Sr as _default, wr as ScrollableAreaSlots } from "../index-Djd6glIa.js";
2
2
  export { _default as ScrollableArea, type ScrollableAreaProps, type ScrollableAreaSlots };
@@ -1,2 +1,2 @@
1
- import { br as SelectableCardProps, vr as _default, xr as SelectableCardSlots, yr as SelectableCardEmits } from "../index-DR3eQt87.js";
1
+ import { br as SelectableCardProps, vr as _default, xr as SelectableCardSlots, yr as SelectableCardEmits } from "../index-Djd6glIa.js";
2
2
  export { _default as SelectableCard, _default as default, type SelectableCardEmits, type SelectableCardProps, type SelectableCardSlots };
@@ -1,2 +1,2 @@
1
- import { a as SelectorOption, c as SelectorProps, d as SelectorSlots, f as SelectorStatus, h as SelectorVariant, i as SelectorIndicatorPosition, l as SelectorSection, m as SelectorStatusVariant, n as SelectorEmits, o as SelectorOptionInput, p as SelectorStatusInput, r as SelectorEntry, s as SelectorPresentation, t as _default, u as SelectorSize } from "../index-CqSDC6Af.js";
1
+ import { a as SelectorOption, c as SelectorProps, d as SelectorSlots, f as SelectorStatus, h as SelectorVariant, i as SelectorIndicatorPosition, l as SelectorSection, m as SelectorStatusVariant, n as SelectorEmits, o as SelectorOptionInput, p as SelectorStatusInput, r as SelectorEntry, s as SelectorPresentation, t as _default, u as SelectorSize } from "../index-aTBpXbot.js";
2
2
  export { _default as Selector, type SelectorEmits, type SelectorEntry, type SelectorIndicatorPosition, type SelectorOption, type SelectorOptionInput, type SelectorPresentation, type SelectorProps, type SelectorSection, type SelectorSize, type SelectorSlots, type SelectorStatus, type SelectorStatusInput, type SelectorStatusVariant, type SelectorVariant };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Selector-Dle5Lbvs.js";
1
+ import { t as _sfc_main } from "../Selector-PYpxWfKo.js";
2
2
  export { _sfc_main as Selector };
@@ -10,12 +10,13 @@ import { t as useFieldControlState } from "./useFieldControlState-voICDrys.js";
10
10
  import { n as focusElement } from "./focus-l8jVTcqd.js";
11
11
  import { s as useAstryxMessages } from "./context-CVUee2tp.js";
12
12
  import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
13
- import { t as _sfc_main$5 } from "./BottomSheet-B4sc3F1S.js";
13
+ import { t as _sfc_main$5 } from "./BottomSheet-itRm1Yh5.js";
14
14
  import { t as _sfc_main$6 } from "./Spinner-B7xuy3ZA.js";
15
15
  import { t as useIndicator } from "./useIndicator-fTOZfYVI.js";
16
16
  import { t as _sfc_main$7 } from "./Field-DRQuVVlH.js";
17
17
  import { n as useInputGroupContext } from "./context-IvbU9c3T.js";
18
18
  import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
19
+ import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
19
20
  import { n as fieldStatusPlacement, t as normalizeTriggerVariant } from "./triggerVariant-BsL8jMHs.js";
20
21
  import { n as _sfc_main$8, t as searchResultMessage } from "./searchResultMessage-DEyqvflW.js";
21
22
  import { n as OptionAction, r as isOptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-CkJcuvaU.js";
@@ -384,6 +385,27 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
384
385
  }
385
386
  });
386
387
  //#endregion
388
+ //#region src/Selector/triggerActivation.ts
389
+ /**
390
+ * @file triggerActivation.ts
391
+ * @input 触发器需要的状态读取函数、面板开关和调用方回调
392
+ * @output 一对带禁用守卫的 click 与 keydown 处理函数
393
+ * @position Selector 内置触发器的激活入口(spec:AST-085 FR2)
394
+ */
395
+ function createTriggerActivation(options) {
396
+ return {
397
+ onClick(event) {
398
+ if (consumeWhileDisabled(event, options.isDisabled())) return;
399
+ options.emitClick(event);
400
+ if (options.canActivate()) options.toggle();
401
+ },
402
+ onKeyDown(event) {
403
+ if (consumeWhileDisabled(event, options.isDisabled())) return;
404
+ options.onKeyDown(event);
405
+ }
406
+ };
407
+ }
408
+ //#endregion
387
409
  //#region src/Selector/useSelectorPopup.ts
388
410
  /** 选项操作把弹出层锁成网格,并拦下行末方向键。 */
389
411
  function useSelectorPopup(options) {
@@ -441,7 +463,6 @@ function useSelectorPopup(options) {
441
463
  const _hoisted_1 = ["data-variant"];
442
464
  const _hoisted_2 = [
443
465
  "id",
444
- "disabled",
445
466
  "role",
446
467
  "aria-haspopup",
447
468
  "aria-expanded",
@@ -748,10 +769,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
748
769
  watch(announcement, (message) => {
749
770
  if (message) announce(message);
750
771
  });
751
- function onTriggerClick(event) {
752
- emit("click", event);
753
- if (control.canActivate.value) combobox.toggle();
754
- }
755
772
  function onTriggerFocus(event) {
756
773
  emit("focus", event);
757
774
  disabledTooltip.onFocus(event);
@@ -772,6 +789,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
772
789
  isSheet: () => isSheet.value,
773
790
  emitKeydown: (event) => emit("keydown", event)
774
791
  });
792
+ const { onClick: onTriggerClick, onKeyDown: onTriggerKeyDown } = createTriggerActivation({
793
+ isDisabled: () => control.isDisabled.value,
794
+ canActivate: () => control.canActivate.value,
795
+ toggle: () => combobox.toggle(),
796
+ emitClick: (event) => emit("click", event),
797
+ onKeyDown: (event) => popup.onTriggerKeyDown(event)
798
+ });
775
799
  const { gridMode, actionGrid, popupKind } = popup;
776
800
  function onOptionClick(option) {
777
801
  if (!option.disabled) combobox.select(option.value);
@@ -832,8 +856,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
832
856
  }]]),
833
857
  style: normalizeStyle(unref(parts).controlStyle()),
834
858
  "data-variant": triggerVariant.value,
835
- onPointerenter: _cache[2] || (_cache[2] = (...args) => unref(disabledTooltip).onPointerEnter && unref(disabledTooltip).onPointerEnter(...args)),
836
- onPointerleave: _cache[3] || (_cache[3] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
859
+ onPointerenter: _cache[3] || (_cache[3] = (...args) => unref(disabledTooltip).onPointerEnter && unref(disabledTooltip).onPointerEnter(...args)),
860
+ onPointerleave: _cache[4] || (_cache[4] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
837
861
  }, [
838
862
  createElementVNode("button", mergeProps(unref(parts).forwardedAttrs(), {
839
863
  id: selectorId.value,
@@ -842,23 +866,22 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
842
866
  "is-open": unref(combobox).isOpen.value,
843
867
  "is-disabled": unref(control).isDisabled.value
844
868
  }],
845
- disabled: unref(control).isDisabled.value && !showsDisabledMessage.value,
846
869
  role: unref(control).isReadOnly.value || !props.searchable ? "combobox" : void 0,
847
870
  "aria-haspopup": unref(popupKind),
848
871
  "aria-expanded": unref(control).isReadOnly.value ? false : unref(combobox).isOpen.value,
849
872
  "aria-controls": unref(control).isReadOnly.value ? void 0 : listboxId.value,
850
873
  "aria-readonly": unref(control).isReadOnly.value || void 0,
851
- "aria-disabled": showsDisabledMessage.value || void 0,
874
+ "aria-disabled": unref(control).isDisabled.value || void 0,
852
875
  "aria-busy": unref(control).isLoading.value || void 0,
853
876
  "aria-required": props.isRequired || void 0,
854
877
  "aria-label": props.label,
855
878
  "aria-describedby": describedBy.value,
856
879
  "aria-autocomplete": props.searchable ? void 0 : "none",
857
880
  "aria-activedescendant": !props.searchable && !unref(control).isReadOnly.value ? unref(actionGrid).activeDescendant.value : void 0,
858
- onClick: onTriggerClick,
881
+ onClick: _cache[0] || (_cache[0] = (...args) => unref(onTriggerClick) && unref(onTriggerClick)(...args)),
859
882
  onFocus: onTriggerFocus,
860
- onBlur: _cache[0] || (_cache[0] = (...args) => unref(disabledTooltip).onBlur && unref(disabledTooltip).onBlur(...args)),
861
- onKeydown: _cache[1] || (_cache[1] = (...args) => unref(popup).onTriggerKeyDown && unref(popup).onTriggerKeyDown(...args))
883
+ onBlur: _cache[1] || (_cache[1] = (...args) => unref(disabledTooltip).onBlur && unref(disabledTooltip).onBlur(...args)),
884
+ onKeydown: _cache[2] || (_cache[2] = (...args) => unref(onTriggerKeyDown) && unref(onTriggerKeyDown)(...args))
862
885
  }), [createElementVNode("span", { class: normalizeClass(["astryx-selector-value", {
863
886
  "is-placeholder": !selectedOption.value,
864
887
  "is-rich": unref(slots).selected,
@@ -932,7 +955,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
932
955
  isSheet.value ? (openBlock(), createBlock(_sfc_main$5, {
933
956
  key: 2,
934
957
  "is-open": sheetOpen.value,
935
- "onUpdate:isOpen": _cache[4] || (_cache[4] = ($event) => sheetOpen.value = $event),
958
+ "onUpdate:isOpen": _cache[5] || (_cache[5] = ($event) => sheetOpen.value = $event),
936
959
  height: "hug",
937
960
  label: sheetLabel.value,
938
961
  padding: 2
@@ -1020,7 +1043,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1020
1043
  "width": "1px",
1021
1044
  "height": "1px"
1022
1045
  }
1023
- }, [_cache[5] || (_cache[5] = createElementVNode("option", { value: "" }, null, -1)), (openBlock(true), createElementBlock(Fragment, null, renderList(flatOptions.value, (option) => {
1046
+ }, [_cache[6] || (_cache[6] = createElementVNode("option", { value: "" }, null, -1)), (openBlock(true), createElementBlock(Fragment, null, renderList(flatOptions.value, (option) => {
1024
1047
  return openBlock(), createElementBlock("option", {
1025
1048
  key: option.value,
1026
1049
  value: option.value
@@ -1,2 +1,2 @@
1
- import { $n as _default$3, Qn as _default$4, _r as useSideNavCollapse, ar as SideNavCollapseButtonSlots, cr as SideNavEmits, dr as SideNavItemEmits, er as _default$2, fr as SideNavItemProps, gr as SideNavCollapseContext, hr as SideNavSectionProps, ir as SideNavCollapseButtonSize, lr as SideNavHandle, mr as SideNavResizable, nr as _default, or as SideNavCollapsible, pr as SideNavProps, rr as SideNavCollapseButtonProps, sr as SideNavControlledCollapsible, tr as _default$1, ur as SideNavHeadingProps } from "../index-DR3eQt87.js";
1
+ import { $n as _default$3, Qn as _default$4, _r as useSideNavCollapse, ar as SideNavCollapseButtonSlots, cr as SideNavEmits, dr as SideNavItemEmits, er as _default$2, fr as SideNavItemProps, gr as SideNavCollapseContext, hr as SideNavSectionProps, ir as SideNavCollapseButtonSize, lr as SideNavHandle, mr as SideNavResizable, nr as _default, or as SideNavCollapsible, pr as SideNavProps, rr as SideNavCollapseButtonProps, sr as SideNavControlledCollapsible, tr as _default$1, ur as SideNavHeadingProps } from "../index-Djd6glIa.js";
2
2
  export { _default as SideNav, _default$1 as SideNavCollapseButton, type SideNavCollapseButtonProps, type SideNavCollapseButtonSize, type SideNavCollapseButtonSlots, type SideNavCollapseContext, type SideNavCollapsible, type SideNavControlledCollapsible, type SideNavEmits, type SideNavHandle, _default$2 as SideNavHeading, type SideNavHeadingProps, _default$3 as SideNavItem, type SideNavItemEmits, type SideNavItemProps, type SideNavProps, type SideNavResizable, _default$4 as SideNavSection, type SideNavSectionProps, useSideNavCollapse };
@@ -1,2 +1,2 @@
1
- import { a as StepProps, c as StepperCollapsedVariant, d as StepperIndicatorPosition, f as StepperOrientation, i as StepProgress, l as StepperDensity, m as StepperSlots, n as _default, o as StepSlots, p as StepperProps, r as StepIndicator, s as StepStatus, t as _default$1, u as StepperHorizontalOptions } from "../index-ChOyJzJh.js";
1
+ import { a as StepProps, c as StepperCollapsedVariant, d as StepperIndicatorPosition, f as StepperOrientation, i as StepProgress, l as StepperDensity, m as StepperSlots, n as _default, o as StepSlots, p as StepperProps, r as StepIndicator, s as StepStatus, t as _default$1, u as StepperHorizontalOptions } from "../index-cG1E0U2s.js";
2
2
  export { _default as Step, type StepIndicator, type StepProgress, type StepProps, type StepSlots, type StepStatus, _default$1 as Stepper, type StepperCollapsedVariant, type StepperDensity, type StepperHorizontalOptions, type StepperIndicatorPosition, type StepperOrientation, type StepperProps, type StepperSlots };
@@ -1,2 +1,2 @@
1
- import { Gn as SwitchChangeEvent, Jn as SwitchSize, Kn as SwitchEmits, Un as _default, Wn as SwitchChangeAction, Xn as SwitchStatus, Yn as SwitchSlots, Zn as SwitchStatusType, qn as SwitchProps } from "../index-DR3eQt87.js";
1
+ import { Gn as SwitchChangeEvent, Jn as SwitchSize, Kn as SwitchEmits, Un as _default, Wn as SwitchChangeAction, Xn as SwitchStatus, Yn as SwitchSlots, Zn as SwitchStatusType, qn as SwitchProps } from "../index-Djd6glIa.js";
2
2
  export { _default as Switch, type SwitchChangeAction, type SwitchChangeEvent, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, type SwitchStatus, type SwitchStatusType };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Switch-DBdLd0-t.js";
1
+ import { t as _sfc_main } from "../Switch-DSuC0F7H.js";
2
2
  export { _sfc_main as Switch };
@@ -72,7 +72,6 @@ const _hoisted_2 = { class: "astryx-switch-control" };
72
72
  const _hoisted_3 = [
73
73
  "id",
74
74
  "checked",
75
- "disabled",
76
75
  "name",
77
76
  "form",
78
77
  "readonly",
@@ -254,14 +253,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
254
253
  type: "checkbox",
255
254
  role: "switch",
256
255
  checked: unref(action).value.value,
257
- disabled: __props.isDisabled && !showsDisabledMessage.value,
258
256
  name: __props.isDisabled ? void 0 : __props.htmlName ?? inputAttrs().name,
259
- form: showsDisabledMessage.value ? "" : inputAttrs().form,
257
+ form: __props.isDisabled ? "" : inputAttrs().form,
260
258
  readonly: __props.isReadOnly || showsDisabledMessage.value,
261
259
  "aria-checked": unref(action).value.value,
262
260
  "aria-labelledby": labelledBy(),
263
261
  "aria-describedby": describedBy(),
264
- "aria-disabled": showsDisabledMessage.value || void 0,
262
+ "aria-disabled": __props.isDisabled || void 0,
265
263
  "aria-readonly": __props.isReadOnly || void 0,
266
264
  "aria-busy": busy.value || void 0,
267
265
  "aria-required": unref(ariaRequired),
@@ -1,2 +1,2 @@
1
- import { a as TabListLayout, c as TabListSize, d as TabMenuProps, f as TabProps, i as TabListEdgeCompensation, l as TabListTab, n as _default$1, o as TabListOverflow, p as TabSlots, r as _default, s as TabListProps, t as _default$2, u as TabMenuOption } from "../index-DLAG3m9W.js";
1
+ import { a as TabListLayout, c as TabListSize, d as TabMenuProps, f as TabProps, i as TabListEdgeCompensation, l as TabListTab, n as _default$1, o as TabListOverflow, p as TabSlots, r as _default, s as TabListProps, t as _default$2, u as TabMenuOption } from "../index-DXJ3U3ve.js";
2
2
  export { _default as Tab, _default$1 as TabList, type TabListEdgeCompensation, type TabListLayout, type TabListOverflow, type TabListProps, type TabListSize, type TabListTab, _default$2 as TabMenu, type TabMenuOption, type TabMenuProps, type TabProps, type TabSlots };