@astryx-vue/core 0.9.0 → 0.9.2

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 (129) hide show
  1. package/README.md +8 -1
  2. package/dist/AppShell/index.d.ts +1 -1
  3. package/dist/AvatarGroup/index.d.ts +1 -1
  4. package/dist/Banner/index.d.ts +1 -1
  5. package/dist/BottomSheet/index.d.ts +1 -1
  6. package/dist/Breadcrumbs/index.js +1 -1
  7. package/dist/{Breadcrumbs-sakAtNnr.js → Breadcrumbs-Dxjz2Dxn.js} +1 -1
  8. package/dist/Button/index.d.ts +1 -1
  9. package/dist/ButtonGroup/index.d.ts +1 -1
  10. package/dist/Calendar/index.d.ts +1 -1
  11. package/dist/Card/index.d.ts +1 -1
  12. package/dist/Carousel/index.d.ts +1 -1
  13. package/dist/Chat/index.d.ts +1 -1
  14. package/dist/Chat/index.js +1 -1
  15. package/dist/{Chat-Bl_Wr2lK.js → Chat-Bz9KRyug.js} +1 -1
  16. package/dist/CheckboxInput/index.d.ts +1 -1
  17. package/dist/CheckboxList/index.d.ts +1 -1
  18. package/dist/ClickableCard/index.d.ts +1 -1
  19. package/dist/Code/index.d.ts +2 -2
  20. package/dist/Code/index.js +2 -2
  21. package/dist/{CodeBlock-CSxQPryb.js → CodeBlock-B0LPcu-J.js} +1 -1
  22. package/dist/Collapsible/index.d.ts +1 -1
  23. package/dist/CommandPalette/index.d.ts +1 -1
  24. package/dist/ComplexSelector/index.d.ts +1 -1
  25. package/dist/ContextMenu/index.d.ts +1 -1
  26. package/dist/ContextMenu/index.js +1 -1
  27. package/dist/{ContextMenu-DN_nTBgW.js → ContextMenu-6AnjpPJg.js} +119 -142
  28. package/dist/DateInput/index.d.ts +1 -1
  29. package/dist/DateRangeInput/index.d.ts +1 -1
  30. package/dist/DateTimeInput/index.d.ts +1 -1
  31. package/dist/Dialog/index.d.ts +1 -1
  32. package/dist/Divider/index.d.ts +1 -1
  33. package/dist/Drawer/index.d.ts +1 -1
  34. package/dist/DropdownMenu/index.js +2 -2
  35. package/dist/{DropdownMenu-BPZjqbcw.js → DropdownMenu-B9eUWp_X.js} +23 -41
  36. package/dist/{DropdownMenu-BJicFgwf.js → DropdownMenu-DJK_xIUd.js} +3 -5
  37. package/dist/FileInput/index.d.ts +1 -1
  38. package/dist/Heading/index.d.ts +1 -1
  39. package/dist/HoverCard/index.d.ts +1 -1
  40. package/dist/HoverCard/index.js +1 -1
  41. package/dist/{HoverCard-CLcbBLBN.js → HoverCard-3S3axq-o.js} +2 -39
  42. package/dist/InfoTip/index.d.ts +1 -1
  43. package/dist/Link/index.d.ts +1 -1
  44. package/dist/List/index.d.ts +1 -1
  45. package/dist/Markdown/index.d.ts +1 -1
  46. package/dist/Markdown/index.js +1 -1
  47. package/dist/{Markdown-DsE-40yq.js → Markdown-Vix78gtF.js} +1 -1
  48. package/dist/MoreMenu/index.d.ts +1 -1
  49. package/dist/MoreMenu/index.js +1 -1
  50. package/dist/{MoreMenu-1lxF-JY5.js → MoreMenu-DaLb4bgr.js} +1 -24
  51. package/dist/MultiSelector/index.d.ts +1 -1
  52. package/dist/NavItem/index.d.ts +1 -1
  53. package/dist/NavMenu/index.js +1 -1
  54. package/dist/{NavMenu-t7WN2bcq.js → NavMenu-ChlWdHfi.js} +1 -1
  55. package/dist/NumberInput/index.d.ts +1 -1
  56. package/dist/OverflowList/index.d.ts +1 -1
  57. package/dist/Overlay/index.d.ts +1 -1
  58. package/dist/Pagination/index.d.ts +1 -1
  59. package/dist/Popover/index.d.ts +1 -1
  60. package/dist/PowerSearch/index.d.ts +1 -1
  61. package/dist/ProgressBar/index.d.ts +1 -1
  62. package/dist/Radio/index.d.ts +1 -1
  63. package/dist/RadioList/index.d.ts +1 -1
  64. package/dist/ScrollableArea/index.d.ts +1 -1
  65. package/dist/SelectableCard/index.d.ts +1 -1
  66. package/dist/Selector/index.d.ts +1 -1
  67. package/dist/SideNav/index.d.ts +1 -1
  68. package/dist/Stepper/index.d.ts +1 -1
  69. package/dist/Switch/index.d.ts +1 -1
  70. package/dist/TabList/index.d.ts +1 -1
  71. package/dist/Table/index.d.ts +1 -1
  72. package/dist/Text/index.d.ts +1 -1
  73. package/dist/TextArea/index.d.ts +1 -1
  74. package/dist/TextInput/index.d.ts +1 -1
  75. package/dist/TimeInput/index.d.ts +1 -1
  76. package/dist/Timestamp/index.d.ts +1 -1
  77. package/dist/Timestamp/index.js +1 -1
  78. package/dist/{Timestamp-B7H0KScU.js → Timestamp-DWnbOvnI.js} +1 -1
  79. package/dist/ToggleButton/index.d.ts +1 -1
  80. package/dist/Tokenizer/index.d.ts +1 -1
  81. package/dist/Toolbar/index.d.ts +1 -1
  82. package/dist/Tooltip/index.d.ts +1 -1
  83. package/dist/TopNav/index.d.ts +1 -1
  84. package/dist/TreeList/index.d.ts +1 -1
  85. package/dist/TreeList/index.js +1 -1
  86. package/dist/{TreeList-DeknLfbQ.js → TreeList-CRMLcaRx.js} +11 -5
  87. package/dist/composables/index.d.ts +2 -2
  88. package/dist/composables/index.js +4 -3
  89. package/dist/{composables-CF4EnyHW.js → composables-JBLeessI.js} +1 -145
  90. package/dist/{index-Cun6cXGP.d.ts → index--tm6L1ot.d.ts} +1 -1
  91. package/dist/{index-B62UAbz4.d.ts → index-1dm_6bEx.d.ts} +9 -9
  92. package/dist/{index-CO9GW-ik.d.ts → index-B-3EGjfQ.d.ts} +1 -1
  93. package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
  94. package/dist/{index-CuW4AQ7M.d.ts → index-B8K2sDmO.d.ts} +4 -4
  95. package/dist/{index-MEix_m1o.d.ts → index-BAC56Bhr.d.ts} +1 -1
  96. package/dist/{index-wY6dKz6c.d.ts → index-BEZ4ezJk.d.ts} +2 -2
  97. package/dist/{index-CP-fJFcJ.d.ts → index-BOCb89V9.d.ts} +3 -3
  98. package/dist/{index-qayqGnJT.d.ts → index-BZchpRgm.d.ts} +3 -3
  99. package/dist/{index-Ccj-2j56.d.ts → index-Bb1_-p0B.d.ts} +4 -5
  100. package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
  101. package/dist/{index-mkbGYz8f.d.ts → index-Bn-v89Vt.d.ts} +3 -3
  102. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  103. package/dist/{index-DTfA4uE3.d.ts → index-BzZC2Y7c.d.ts} +1 -1
  104. package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
  105. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  106. package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
  107. package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
  108. package/dist/{index-DgW-eqEr.d.ts → index-CuDsVeop.d.ts} +4 -4
  109. package/dist/{index-a1jCiQP7.d.ts → index-DG7FmGCE.d.ts} +6 -6
  110. package/dist/{index-D1JXm7Et.d.ts → index-DMcf0QeR.d.ts} +3 -3
  111. package/dist/{index-BNC-YmLY.d.ts → index-DTQSrLdD.d.ts} +66 -66
  112. package/dist/{index-dWlCpnua.d.ts → index-Dlq0cFK-.d.ts} +3 -3
  113. package/dist/{index-O9y23OPJ.d.ts → index-DneQgJfI.d.ts} +1 -1
  114. package/dist/{index-C1zwvxPH.d.ts → index-KcCNhdAw.d.ts} +2 -2
  115. package/dist/{index-qsSn6gXx.d.ts → index-PRGBAtll.d.ts} +8 -8
  116. package/dist/{index-BmYnVNI-.d.ts → index-WA7z12bQ.d.ts} +2 -2
  117. package/dist/{index-COgrQZIL.d.ts → index-YKCx03zD.d.ts} +2 -2
  118. package/dist/{index-yhfD6HG9.d.ts → index-o00Upzjp.d.ts} +2 -2
  119. package/dist/{index-Uh-ddE5F.d.ts → index-ul1hNxih.d.ts} +2 -2
  120. package/dist/{index-Dy746dfn.d.ts → index-unAZVFGz.d.ts} +1 -1
  121. package/dist/index.d.ts +32 -32
  122. package/dist/index.js +16 -15
  123. package/dist/menuActivation-BqiaK6ot.js +27 -0
  124. package/dist/typeaheadMatch-Cl-oxKFt.js +78 -0
  125. package/dist/{useClipboard-CU-kfqeJ.d.ts → useClipboard-ZdT7wKBL.d.ts} +1 -1
  126. package/dist/{useClipboard-Dk8cS810.js → useClipboard-i4a_x_Io.js} +1 -1
  127. package/dist/useTouchTrigger-GGd85Obb.js +146 -0
  128. package/dist/{useTypeahead-BvtflkRk.js → useTypeahead-DSMObTtg.js} +10 -11
  129. package/package.json +1 -1
@@ -4,6 +4,7 @@ import { i as isIconGlyph, t as _sfc_main$2 } from "./Icon-BCHo7W0x.js";
4
4
  import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
5
5
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
6
6
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
7
+ import { n as isShortcutChord, r as nextTypeaheadBuffer, t as findTypeaheadMatch } from "./typeaheadMatch-Cl-oxKFt.js";
7
8
  import { t as _sfc_main$3 } from "./Badge-BbPS_49c.js";
8
9
  import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
9
10
  import { t as treeListMessages } from "./tree-list-NZ1EZhtd.js";
@@ -371,10 +372,10 @@ function useTreeFocus(options) {
371
372
  const ids = item.getAttribute("aria-labelledby")?.split(/\s+/).filter(Boolean) ?? [];
372
373
  if (ids.length > 0) {
373
374
  const doc = item.ownerDocument;
374
- return ids.map((id) => doc.getElementById(id)?.textContent ?? "").join(" ").trim().toLowerCase();
375
+ return ids.map((id) => doc.getElementById(id)?.textContent ?? "").join(" ").trim();
375
376
  }
376
377
  }
377
- return (item.textContent ?? "").trim().toLowerCase();
378
+ return (item.textContent ?? "").trim();
378
379
  }
379
380
  /** 树节点的 id:优先 `data-tree-id`,退回元素自己的 `id`。 */
380
381
  function idOf(item) {
@@ -412,14 +413,19 @@ function useTreeFocus(options) {
412
413
  const activeItem = active instanceof Element ? active.closest(selector) : null;
413
414
  const currentIndex = list.findIndex((item) => item === activeItem);
414
415
  const current = currentIndex >= 0 ? list[currentIndex] : void 0;
415
- if ((options.typeahead ?? true) && event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey && !NAVIGATION_KEYS.has(event.key)) {
416
- typeahead.buffer += event.key.toLowerCase();
416
+ if ((options.typeahead ?? true) && event.key.length === 1 && !isShortcutChord(event) && (!event.altKey || event.getModifierState("AltGraph")) && !NAVIGATION_KEYS.has(event.key)) {
417
+ const nextBuffer = nextTypeaheadBuffer(typeahead.buffer, event.key);
418
+ if (nextBuffer == null) return;
419
+ typeahead.buffer = nextBuffer;
417
420
  clearTimeout(typeahead.timer);
418
421
  typeahead.timer = setTimeout(() => {
419
422
  typeahead.buffer = "";
420
423
  }, TYPEAHEAD_RESET_MS);
421
424
  const query = typeahead.buffer;
422
- const match = [...list.slice(currentIndex + 1), ...list.slice(0, currentIndex + 1)].find((item) => !disabled(item) && matchText(item).startsWith(query));
425
+ const from = query.length === 1 ? currentIndex + 1 : Math.max(currentIndex, 0);
426
+ const ordered = [...list.slice(from), ...list.slice(0, from)].filter((item) => !disabled(item));
427
+ const matchIndex = findTypeaheadMatch(ordered.map((_, index) => index), (index) => matchText(ordered[index]), query);
428
+ const match = matchIndex >= 0 ? ordered[matchIndex] : void 0;
423
429
  if (match != null) {
424
430
  event.preventDefault();
425
431
  focusItem(match);
@@ -1,6 +1,6 @@
1
- import { $ as MergedRef, $n as ContainerRevealOptions, $t as useImageMode, A as useRestoreFocus, An as useDisclosureHandle, Ar as SnapPagingOptions, At as KeyboardHintOrientation, B as UseOverflowReturn, Bn as ParsedTime, Br as orderRange, Bt as UseInputStatusIconReturn, C as ScrollStickyContainment, Cn as UseEntryAnimationOptions, Cr as AppShellMobile, Ct as useLayerMountTarget, D as useScrollableArea, Dn as useDismiss, Dr as AnnouncePoliteness, Dt as UseLayerOptions, E as UseScrollableAreaResult, En as UseDismissOptions, Er as AnnounceFn, Et as LayerMode, F as PendingChange, Fn as resolveDatePresentation, Fr as compareISODate, Ft as UseInteractiveRoleOptions, G as UseNumberFieldOptions, Gn as isTimeInRange, Gt as IndicatorFocusRingHandlers, H as useOverflow, Hn as TimeSurface, Hr as spanDays, Ht as InputContainerHandlers, I as usePendingChange, In as resolveDateSurface, Ir as formatDateRange, It as UseInteractiveRoleReturn, J as addMonths, Jn as resolveTimeSurface, Jt as useIndicatorFocusRing, K as computeSteppedValue, Kn as parseDisplayTime, Kt as UseIndicatorFocusRingOptions, L as ComputeOverflowInput, Ln as HourFormat, Lr as isDayOutsideSpan, Lt as useInteractiveRole, M as UsePressFeedbackOptions, Mn as useDevWarning, Mr as RangeClickResult, Mt as UseKeyboardHintOptions, N as UsePressFeedbackReturn, Nn as DatePresentation, Nr as WeekStartsOn, Nt as useKeyboardHint, O as RestoreFocus, On as DisclosureHandle, Or as useAnnounce, Ot as UseLayerReturn, P as usePressFeedback, Pn as DateSurface, Pr as applyRangeClick, Pt as InteractiveRole, Q as todayISODate, Qn as useControllableState, Qt as perceptualLightness, R as ComputeOverflowResult, Rn as ISOTimeString, Rr as isRangeWithinSpan, Rt as InputStatusVariant, S as ScrollRole, Sn as EntryAnimationPreset, Sr as useChatNewMessages, St as useListFocus, T as UseScrollableAreaOptions, Tn as useEntryAnimation, Tr as useAppShellMobile, Tt as useResolvedLayerTeleport, U as NumberField, Un as formatDisplayTime, Ut as UseInputContainerOptions, V as computeOverflow, Vn as TimePresentation, Vr as resolveWeekStart, Vt as useInputStatusIcon, W as NumberStepDirection, Wn as formatISOTime, Wt as useInputContainer, X as parseISODate, Xn as ControllableState, Xt as UseImageModeOptions, Y as buildMonthGrid, Yn as shiftTime, Yt as ImageSampleRegion, Z as toISODate, Zn as UseControllableStateOptions, Zt as imageModeFromPixels, _ as useScrollLock, _n as formatFileSize, _r as UseChatStreamScrollReturn, _t as LongPressOptions, a as UseTouchTriggerOptions, an as UseGridRovingFocusOptions, ar as ComboboxOption, at as isMenuPressActivation, b as ScrollKeyboardAccess, bn as FieldControlStateInput, br as UseChatNewMessagesOptions, bt as ListFocusOrientation, c as useTouchTrigger, cn as UseGridFocusReturn, cr as useCoarsePointer, ct as MENU_PRESS_SETTLE_MS, d as snapToGraphemeBoundary, dn as UseFocusTrapOptions, dr as UseClickableContainerOptions, dt as MenuPressGesture, en as Hotkey, er as ContentRevealOptions, et as MergedRefHandle, f as useStreamingText, fn as useFocusTrap, fr as hasInteractiveAncestor, ft as MenuPressPointerType, g as useScrollOverflow, gn as FileSizeUnits, gr as UseChatStreamScrollOptions, gt as LongPressHandlers, h as UseScrollOverflowResult, hn as FileSelectionResult, hr as ChatScrollToBottomOptions, ht as useMediaQuery, i as LayerTouchTrigger, in as GridRovingFocus, ir as Combobox, it as useMenuPress, j as useResolvedLabelHidden, jn as devWarn, jr as ISODateRange, jt as UseKeyboardHint, k as UseRestoreFocusOptions, kn as DisclosureHandleRef, kr as SnapPaging, kt as useLayer, l as StreamingTextSpeed, ln as useGridFocus, lr as ClickableContainerHandlers, lt as MenuPressEffect, m as ScrollOverflowState, mn as FileSelectionOptions, mr as useClickableContainer, mt as menuPressStep, n as UseTypeaheadReturn, nn as HandleRef, nr as UseContainerRevealOptions, nt as MenuPress, o as UseTouchTriggerReturn, on as useGridRovingFocus, or as UseComboboxOptions, ot as resetMenuPress, p as useSnapPaging, pn as FileRejection, pr as hasTextSelection, pt as MenuPressStep, q as useNumberField, qn as parseISOTime, qt as UseIndicatorFocusRingReturn, r as useTypeahead, rn as useHandleRef, rr as useContainerReveal, rt as MenuPressOptions, s as isActionTrigger, sn as UseGridFocusOptions, sr as useCombobox, st as MENU_PRESS_MARKER, t as UseTypeaheadOptions, tn as useHotkeys, tr as UseContainerReveal, tt as useMergedRefs, u as UseStreamingTextOptions, un as FocusTrap, ur as INTERACTIVE_SELECTORS, ut as MenuPressEvent, v as ScrollAxis, vn as selectFiles, vr as useChatStreamScroll, vt as useLongPress, w as ScrollableAreaState, wn as UseEntryAnimationReturn, wr as appShellMobileKey, wt as useLayerTeleportTarget, x as ScrollOverscroll, xn as useFieldControlState, xr as UseChatNewMessagesReturn, xt as UseListFocusOptions, y as ScrollAxisState, yn as FieldControlState, yr as CHAT_MESSAGE_CLASS, yt as ListFocus, z as UseOverflowOptions, zn as NativePicker, zr as isSameRange, zt as UseInputStatusIconOptions } from "../index-Ccj-2j56.js";
1
+ import { $ as MergedRef, $n as ContainerRevealOptions, $t as useImageMode, A as useRestoreFocus, An as useDisclosureHandle, Ar as SnapPagingOptions, At as KeyboardHintOrientation, B as UseOverflowReturn, Bn as ParsedTime, Br as orderRange, Bt as UseInputStatusIconReturn, C as ScrollStickyContainment, Cn as UseEntryAnimationOptions, Cr as AppShellMobile, Ct as useLayerMountTarget, D as useScrollableArea, Dn as useDismiss, Dr as AnnouncePoliteness, Dt as UseLayerOptions, E as UseScrollableAreaResult, En as UseDismissOptions, Er as AnnounceFn, Et as LayerMode, F as PendingChange, Fn as resolveDatePresentation, Fr as compareISODate, Ft as UseInteractiveRoleOptions, G as UseNumberFieldOptions, Gn as isTimeInRange, Gt as IndicatorFocusRingHandlers, H as useOverflow, Hn as TimeSurface, Hr as spanDays, Ht as InputContainerHandlers, I as usePendingChange, In as resolveDateSurface, Ir as formatDateRange, It as UseInteractiveRoleReturn, J as addMonths, Jn as resolveTimeSurface, Jt as useIndicatorFocusRing, K as computeSteppedValue, Kn as parseDisplayTime, Kt as UseIndicatorFocusRingOptions, L as ComputeOverflowInput, Ln as HourFormat, Lr as isDayOutsideSpan, Lt as useInteractiveRole, M as UsePressFeedbackOptions, Mn as useDevWarning, Mr as RangeClickResult, Mt as UseKeyboardHintOptions, N as UsePressFeedbackReturn, Nn as DatePresentation, Nr as WeekStartsOn, Nt as useKeyboardHint, O as RestoreFocus, On as DisclosureHandle, Or as useAnnounce, Ot as UseLayerReturn, P as usePressFeedback, Pn as DateSurface, Pr as applyRangeClick, Pt as InteractiveRole, Q as todayISODate, Qn as useControllableState, Qt as perceptualLightness, R as ComputeOverflowResult, Rn as ISOTimeString, Rr as isRangeWithinSpan, Rt as InputStatusVariant, S as ScrollRole, Sn as EntryAnimationPreset, Sr as useChatNewMessages, St as useListFocus, T as UseScrollableAreaOptions, Tn as useEntryAnimation, Tr as useAppShellMobile, Tt as useResolvedLayerTeleport, U as NumberField, Un as formatDisplayTime, Ut as UseInputContainerOptions, V as computeOverflow, Vn as TimePresentation, Vr as resolveWeekStart, Vt as useInputStatusIcon, W as NumberStepDirection, Wn as formatISOTime, Wt as useInputContainer, X as parseISODate, Xn as ControllableState, Xt as UseImageModeOptions, Y as buildMonthGrid, Yn as shiftTime, Yt as ImageSampleRegion, Z as toISODate, Zn as UseControllableStateOptions, Zt as imageModeFromPixels, _ as useScrollLock, _n as formatFileSize, _r as UseChatStreamScrollReturn, _t as LongPressOptions, a as UseTouchTriggerOptions, an as UseGridRovingFocusOptions, ar as ComboboxOption, at as isMenuPressActivation, b as ScrollKeyboardAccess, bn as FieldControlStateInput, br as UseChatNewMessagesOptions, bt as ListFocusOrientation, c as useTouchTrigger, cn as UseGridFocusReturn, cr as useCoarsePointer, ct as MENU_PRESS_SETTLE_MS, d as snapToGraphemeBoundary, dn as UseFocusTrapOptions, dr as UseClickableContainerOptions, dt as MenuPressGesture, en as Hotkey, er as ContentRevealOptions, et as MergedRefHandle, f as useStreamingText, fn as useFocusTrap, fr as hasInteractiveAncestor, ft as MenuPressPointerType, g as useScrollOverflow, gn as FileSizeUnits, gr as UseChatStreamScrollOptions, gt as LongPressHandlers, h as UseScrollOverflowResult, hn as FileSelectionResult, hr as ChatScrollToBottomOptions, ht as useMediaQuery, i as LayerTouchTrigger, in as GridRovingFocus, ir as Combobox, it as useMenuPress, j as useResolvedLabelHidden, jn as devWarn, jr as ISODateRange, jt as UseKeyboardHint, k as UseRestoreFocusOptions, kn as DisclosureHandleRef, kr as SnapPaging, kt as useLayer, l as StreamingTextSpeed, ln as useGridFocus, lr as ClickableContainerHandlers, lt as MenuPressEffect, m as ScrollOverflowState, mn as FileSelectionOptions, mr as useClickableContainer, mt as menuPressStep, n as UseTypeaheadReturn, nn as HandleRef, nr as UseContainerRevealOptions, nt as MenuPress, o as UseTouchTriggerReturn, on as useGridRovingFocus, or as UseComboboxOptions, ot as resetMenuPress, p as useSnapPaging, pn as FileRejection, pr as hasTextSelection, pt as MenuPressStep, q as useNumberField, qn as parseISOTime, qt as UseIndicatorFocusRingReturn, r as useTypeahead, rn as useHandleRef, rr as useContainerReveal, rt as MenuPressOptions, s as isActionTrigger, sn as UseGridFocusOptions, sr as useCombobox, st as MENU_PRESS_MARKER, t as UseTypeaheadOptions, tn as useHotkeys, tr as UseContainerReveal, tt as useMergedRefs, u as UseStreamingTextOptions, un as FocusTrap, ur as INTERACTIVE_SELECTORS, ut as MenuPressEvent, v as ScrollAxis, vn as selectFiles, vr as useChatStreamScroll, vt as useLongPress, w as ScrollableAreaState, wn as UseEntryAnimationReturn, wr as appShellMobileKey, wt as useLayerTeleportTarget, x as ScrollOverscroll, xn as useFieldControlState, xr as UseChatNewMessagesReturn, xt as UseListFocusOptions, y as ScrollAxisState, yn as FieldControlState, yr as CHAT_MESSAGE_CLASS, yt as ListFocus, z as UseOverflowOptions, zn as NativePicker, zr as isSameRange, zt as UseInputStatusIconOptions } from "../index-Bb1_-p0B.js";
2
2
  import { a as SearchableItem, c as useAsyncSource, i as SearchSource, n as AsyncSourceStatus, o as UseAsyncSourceOptions, r as CreateStaticSourceOptions, s as createStaticSource, t as AsyncSource } from "../useAsyncSource-aGzrvRkI.js";
3
- import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-CU-kfqeJ.js";
3
+ import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-ZdT7wKBL.js";
4
4
  import { t as characterCount } from "../characters-rcDbGt71.js";
5
5
  import { a as ResizableRegionConfig, c as UseResizableMultiConfig, d as percent, f as useResizable, i as ResizableRegion, l as UseResizableOptions, n as ResizablePercentSize, o as ResizableSize, r as ResizableProps, s as ResizableState, t as ResizableDirection, u as UseResizableSingleOptions } from "../useResizable-fEGAFziz.js";
6
6
  export { type AnnounceFn, type AnnouncePoliteness, type AppShellMobile, type AsyncSource, type AsyncSourceStatus, CHAT_MESSAGE_CLASS, type ChatScrollToBottomOptions, type ClickableContainerHandlers, type Combobox, type ComboboxOption, type ComputeOverflowInput, type ComputeOverflowResult, type ContainerRevealOptions, type ContentRevealOptions, type ControllableState, type CreateStaticSourceOptions, type DatePresentation, type DateSurface, type DisclosureHandle, type DisclosureHandleRef, type EntryAnimationPreset, type FieldControlState, type FieldControlStateInput, type FileRejection, type FileSelectionOptions, type FileSelectionResult, type FileSizeUnits, type FocusTrap, type GridRovingFocus, type HandleRef, type Hotkey, type HourFormat, INTERACTIVE_SELECTORS, type ISODateRange, type ISOTimeString, type ImageSampleRegion, type IndicatorFocusRingHandlers, type InputContainerHandlers, type InputStatusVariant, type InteractiveRole, type KeyboardHintOrientation, type LayerMode, type LayerTouchTrigger, type ListFocus, type ListFocusOrientation, type LongPressHandlers, type LongPressOptions, MENU_PRESS_MARKER, MENU_PRESS_SETTLE_MS, type MenuPress, type MenuPressEffect, type MenuPressEvent, type MenuPressGesture, type MenuPressOptions, type MenuPressPointerType, type MenuPressStep, type MergedRef, type MergedRefHandle, type NativePicker, type NumberField, type NumberStepDirection, type ParsedTime, type PendingChange, type RangeClickResult, type ResizableDirection, type ResizablePercentSize, type ResizableProps, type ResizableRegion, type ResizableRegionConfig, type ResizableSize, type ResizableState, type RestoreFocus, type ScrollAxis, type ScrollAxisState, type ScrollKeyboardAccess, type ScrollOverflowState, type ScrollOverscroll, type ScrollRole, type ScrollStickyContainment, type ScrollableAreaState, type SearchSource, type SearchableItem, type SnapPaging, type SnapPagingOptions, type StreamingTextSpeed, type TimePresentation, type TimeSurface, type UseAsyncSourceOptions, type UseChatNewMessagesOptions, type UseChatNewMessagesReturn, type UseChatStreamScrollOptions, type UseChatStreamScrollReturn, type UseClickableContainerOptions, type UseClipboardOptions, type UseClipboardReturn, type UseComboboxOptions, type UseContainerReveal, type UseContainerRevealOptions, type UseControllableStateOptions, type UseDismissOptions, type UseEntryAnimationOptions, type UseEntryAnimationReturn, type UseFocusTrapOptions, type UseGridFocusOptions, type UseGridFocusReturn, type UseGridRovingFocusOptions, type UseImageModeOptions, type UseIndicatorFocusRingOptions, type UseIndicatorFocusRingReturn, type UseInputContainerOptions, type UseInputStatusIconOptions, type UseInputStatusIconReturn, type UseInteractiveRoleOptions, type UseInteractiveRoleReturn, type UseKeyboardHint, type UseKeyboardHintOptions, type UseLayerOptions, type UseLayerReturn, type UseListFocusOptions, type UseNumberFieldOptions, type UseOverflowOptions, type UseOverflowReturn, type UsePressFeedbackOptions, type UsePressFeedbackReturn, type UseResizableMultiConfig, type UseResizableOptions, type UseResizableSingleOptions, type UseRestoreFocusOptions, type UseScrollOverflowResult, type UseScrollableAreaOptions, type UseScrollableAreaResult, type UseStreamingTextOptions, type UseTouchTriggerOptions, type UseTouchTriggerReturn, type UseTypeaheadOptions, type UseTypeaheadReturn, type WeekStartsOn, addMonths, appShellMobileKey, applyRangeClick, buildMonthGrid, compareISODate, computeOverflow, computeSteppedValue, characterCount as countCharacters, createStaticSource, devWarn, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, hasInteractiveAncestor, hasTextSelection, imageModeFromPixels, isActionTrigger, isDayOutsideSpan, isMenuPressActivation, isRangeWithinSpan, isSameRange, isTimeInRange, menuPressStep, orderRange, parseDisplayTime, parseISODate, parseISOTime, percent, perceptualLightness, resetMenuPress, resolveDatePresentation, resolveDateSurface, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, snapToGraphemeBoundary, spanDays, toISODate, todayISODate, useAnnounce, useAppShellMobile, useAsyncSource, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useCoarsePointer, useCombobox, useContainerReveal, useControllableState, useDevWarning, useDisclosureHandle, useDismiss, useEntryAnimation, useFieldControlState, useFocusTrap, useGridFocus, useGridRovingFocus, useHandleRef, useHotkeys, useImageMode, useIndicatorFocusRing, useInputContainer, useInputStatusIcon, useInteractiveRole, useKeyboardHint, useLayer, useLayerMountTarget, useLayerTeleportTarget, useListFocus, useLongPress, useMediaQuery, useMenuPress, useMergedRefs, useNumberField, useOverflow, usePendingChange, usePressFeedback, useResizable, useResolvedLabelHidden, useResolvedLayerTeleport, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useSnapPaging, useStreamingText, useTouchTrigger, useTypeahead };
@@ -11,9 +11,9 @@ import { t as useAnnounce } from "../announce-B210eJVf.js";
11
11
  import { n as useAppShellMobile, t as appShellMobileKey } from "../useAppShellMobile-DTsyuAJ4.js";
12
12
  import { n as useAsyncSource, t as createStaticSource } from "../useAsyncSource-Gk0VtE7_.js";
13
13
  import { n as CHAT_MESSAGE_CLASS, r as useChatNewMessages, t as useChatStreamScroll } from "../useChatStreamScroll-oDfybEos.js";
14
- import { t as useClipboard } from "../useClipboard-Dk8cS810.js";
14
+ import { t as useClipboard } from "../useClipboard-i4a_x_Io.js";
15
15
  import { t as useCombobox } from "../useCombobox-CTo5C-gc.js";
16
- import { a as useSnapPaging, c as imageModeFromPixels, d as useGridRovingFocus, f as useGridFocus, h as useContainerReveal, i as useStreamingText, l as perceptualLightness, m as useControllableState, n as useTouchTrigger, o as useKeyboardHint, p as useEntryAnimation, r as snapToGraphemeBoundary, s as useIndicatorFocusRing, t as isActionTrigger, u as useImageMode } from "../composables-CF4EnyHW.js";
16
+ import { a as useIndicatorFocusRing, c as useImageMode, d as useEntryAnimation, f as useControllableState, i as useKeyboardHint, l as useGridRovingFocus, n as useStreamingText, o as imageModeFromPixels, p as useContainerReveal, r as useSnapPaging, s as perceptualLightness, t as snapToGraphemeBoundary, u as useGridFocus } from "../composables-JBLeessI.js";
17
17
  import { n as resolveDateSurface, t as resolveDatePresentation } from "../useDatePresentation-C07PnOCw.js";
18
18
  import { a as isRangeWithinSpan, c as resolveWeekStart, i as isDayOutsideSpan, l as spanDays, n as compareISODate, o as isSameRange, r as formatDateRange, s as orderRange, t as applyRangeClick } from "../useDateRange-CIXoE_8k.js";
19
19
  import { n as useDevWarning, t as devWarn } from "../useDevWarning-B2fsk2B-.js";
@@ -38,5 +38,6 @@ import { t as useScrollableArea } from "../useScrollableArea-BE8b3qm7.js";
38
38
  import { t as useScrollLock } from "../scrollLock-C3aT4-0z.js";
39
39
  import { t as useScrollOverflow } from "../useScrollOverflow-DuMoGXmm.js";
40
40
  import { a as parseISOTime, i as parseDisplayTime, n as formatISOTime, o as resolveTimeSurface, r as isTimeInRange, s as shiftTime, t as formatDisplayTime } from "../useTimeValue-BJd0xBhG.js";
41
- import { t as useTypeahead } from "../useTypeahead-BvtflkRk.js";
41
+ import { n as useTouchTrigger, t as isActionTrigger } from "../useTouchTrigger-GGd85Obb.js";
42
+ import { t as useTypeahead } from "../useTypeahead-DSMObTtg.js";
42
43
  export { CHAT_MESSAGE_CLASS, INTERACTIVE_SELECTORS, MENU_PRESS_MARKER, MENU_PRESS_SETTLE_MS, addMonths, appShellMobileKey, applyRangeClick, buildMonthGrid, compareISODate, computeOverflow, computeSteppedValue, characterCount as countCharacters, createStaticSource, devWarn, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, hasInteractiveAncestor, hasTextSelection, imageModeFromPixels, isActionTrigger, isDayOutsideSpan, isMenuPressActivation, isRangeWithinSpan, isSameRange, isTimeInRange, menuPressStep, orderRange, parseDisplayTime, parseISODate, parseISOTime, percent, perceptualLightness, resetMenuPress, resolveDatePresentation, resolveDateSurface, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, snapToGraphemeBoundary, spanDays, toISODate, todayISODate, useAnnounce, useAppShellMobile, useAsyncSource, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useCoarsePointer, useCombobox, useContainerReveal, useControllableState, useDevWarning, useDisclosureHandle, useDismiss, useEntryAnimation, useFieldControlState, useFocusTrap, useGridFocus, useGridRovingFocus, useHandleRef, useHotkeys, useImageMode, useIndicatorFocusRing, useInputContainer, useInputStatusIcon, useInteractiveRole, useKeyboardHint, useLayer, useLayerMountTarget, useLayerTeleportTarget, useListFocus, useLongPress, useMediaQuery, useMenuPress, useMergedRefs, useNumberField, useOverflow, usePendingChange, usePressFeedback, useResizable, useResolvedLabelHidden, useResolvedLayerTeleport, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useSnapPaging, useStreamingText, useTouchTrigger, useTypeahead };
@@ -1,4 +1,3 @@
1
- import { r as trackInteractionModality, t as getInteractionModality } from "./interactionModality-ACpTMhak.js";
2
1
  import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
3
2
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
4
3
  import { t as _sfc_main$1 } from "./Kbd-D4JPY4VI.js";
@@ -1186,147 +1185,4 @@ function useStreamingText(targetText, isStreaming = false, options) {
1186
1185
  });
1187
1186
  }
1188
1187
  //#endregion
1189
- //#region src/composables/useTouchTrigger.ts
1190
- /**
1191
- * 「按下去」算作点击的指针类型。笔也在里面,但它只在落笔时算:
1192
- * 笔悬停在屏幕上方时是悬停,和鼠标一样。
1193
- */
1194
- const TOUCH_POINTER_TYPES = /* @__PURE__ */ new Set(["touch", "pen"]);
1195
- /**
1196
- * 表示「激活它会做事」的 ARIA role。显式 role 优先于标签名:
1197
- * `<button role="presentation">` 只是布景,`<span role="button">` 才是真控件。
1198
- */
1199
- const ACTION_ROLES = /* @__PURE__ */ new Set([
1200
- "button",
1201
- "checkbox",
1202
- "combobox",
1203
- "link",
1204
- "menuitem",
1205
- "menuitemcheckbox",
1206
- "menuitemradio",
1207
- "option",
1208
- "radio",
1209
- "searchbox",
1210
- "slider",
1211
- "spinbutton",
1212
- "switch",
1213
- "tab",
1214
- "textbox"
1215
- ]);
1216
- /**
1217
- * 激活这个元素是不是「做了别的事」,而不是「显示浮层」。
1218
- *
1219
- * 比「可聚焦」窄是有意的:纯文字 Tooltip 的触发器带 `tabindex=0`,
1220
- * 键盘用户要能聚焦它读提示,但它本身没有动作。
1221
- *
1222
- * 返回 true 只决定「浮层不开」,那一下点击本身不会被吞掉:这里不调
1223
- * `preventDefault`,也不调 `stopPropagation`。
1224
- */
1225
- function isActionTrigger(element) {
1226
- const role = element.getAttribute("role");
1227
- if (role != null && role !== "") return ACTION_ROLES.has(role);
1228
- switch (element.tagName) {
1229
- case "BUTTON":
1230
- case "INPUT":
1231
- case "LABEL":
1232
- case "SELECT":
1233
- case "SUMMARY":
1234
- case "TEXTAREA": return true;
1235
- case "A":
1236
- case "AREA": return element.hasAttribute("href");
1237
- default: return isEditable(element);
1238
- }
1239
- }
1240
- function isEditable(element) {
1241
- if (element.isContentEditable === true) return true;
1242
- const attribute = element.getAttribute("contenteditable");
1243
- return attribute != null && attribute !== "false";
1244
- }
1245
- /**
1246
- * 悬停类浮层(Tooltip、HoverCard)共用的触屏行为。
1247
- *
1248
- * 触屏上表达不了「悬停」:点一下会合成 `mouseenter`,不处理的悬停浮层要么
1249
- * 每次点都弹出来、又没有东西能关掉它,要么把用户点控件的这一下吃掉。
1250
- */
1251
- function useTouchTrigger(options) {
1252
- trackInteractionModality();
1253
- const isTouchPointer = ref(false);
1254
- let isOpenNow = toValue(options.isOpen);
1255
- /**
1256
- * 这一层是不是被「点一下」打开的。只有点开的浮层才欠用户一次「点外面关闭」:
1257
- * 悬停打开的自己会随指针离开关掉,受控打开的不是我们该关的。
1258
- */
1259
- let isTapOpen = false;
1260
- let outsideListener = null;
1261
- watch(() => toValue(options.isOpen), (open) => {
1262
- if (isOpenNow && !open) disarmOutsideDismiss();
1263
- isOpenNow = open;
1264
- }, { flush: "sync" });
1265
- function disarmOutsideDismiss() {
1266
- isTapOpen = false;
1267
- if (outsideListener == null) return;
1268
- document.removeEventListener("pointerdown", outsideListener, true);
1269
- outsideListener = null;
1270
- }
1271
- /**
1272
- * 装「点外面关闭」。用捕获阶段,触发器自己 stopPropagation 也拦不住,
1273
- * 免得留一个关不掉的浮层。打开它的那一次按压在 document 捕获阶段已经走过了,
1274
- * 所以这个监听看不到它。
1275
- */
1276
- function armOutsideDismiss() {
1277
- isTapOpen = true;
1278
- if (outsideListener != null) return;
1279
- outsideListener = (event) => {
1280
- const target = event.target;
1281
- if (target != null) {
1282
- if (options.triggerRef.value?.contains(target) === true) return;
1283
- if (document.getElementById(toValue(options.layerId))?.contains(target) === true) return;
1284
- }
1285
- disarmOutsideDismiss();
1286
- options.hide();
1287
- };
1288
- document.addEventListener("pointerdown", outsideListener, true);
1289
- }
1290
- onScopeDispose(disarmOutsideDismiss);
1291
- function isEnabledNow() {
1292
- return toValue(options.isEnabled) ?? true;
1293
- }
1294
- function isControlledNow() {
1295
- return toValue(options.isControlled) === true;
1296
- }
1297
- function isTouchInteraction() {
1298
- return isTouchPointer.value && getInteractionModality() === "pointer";
1299
- }
1300
- function handlePointerEnter(event) {
1301
- isTouchPointer.value = event.pointerType === "touch";
1302
- }
1303
- function handlePointerDown(event) {
1304
- const isTouch = TOUCH_POINTER_TYPES.has(event.pointerType);
1305
- isTouchPointer.value = isTouch;
1306
- if (!isTouch || isControlledNow()) return false;
1307
- const trigger = options.triggerRef.value;
1308
- const touchTrigger = toValue(options.touchTrigger);
1309
- if ((touchTrigger === "auto" ? trigger != null && isActionTrigger(trigger) ? "none" : "tap" : touchTrigger) === "none" || !isEnabledNow()) {
1310
- disarmOutsideDismiss();
1311
- options.hide();
1312
- return true;
1313
- }
1314
- if (isOpenNow || isTapOpen) {
1315
- disarmOutsideDismiss();
1316
- options.hide();
1317
- return true;
1318
- }
1319
- armOutsideDismiss();
1320
- options.show();
1321
- return true;
1322
- }
1323
- return {
1324
- isTouchPointer,
1325
- isTouchInteraction,
1326
- handlePointerEnter,
1327
- handlePointerDown,
1328
- clearTapOpen: disarmOutsideDismiss
1329
- };
1330
- }
1331
- //#endregion
1332
- export { useSnapPaging as a, imageModeFromPixels as c, useGridRovingFocus as d, useGridFocus as f, useContainerReveal as h, useStreamingText as i, perceptualLightness as l, useControllableState as m, useTouchTrigger as n, useKeyboardHint as o, useEntryAnimation as p, snapToGraphemeBoundary as r, useIndicatorFocusRing as s, isActionTrigger as t, useImageMode as u };
1188
+ export { useIndicatorFocusRing as a, useImageMode as c, useEntryAnimation as d, useControllableState as f, useKeyboardHint as i, useGridRovingFocus as l, useStreamingText as n, imageModeFromPixels as o, useContainerReveal as p, useSnapPaging as r, perceptualLightness as s, snapToGraphemeBoundary as t, useGridFocus as u };
@@ -89,11 +89,11 @@ declare const __VLS_base: import("vue").DefineComponent<HoverCardProps, {
89
89
  placement: HoverCardPlacement;
90
90
  alignment: HoverCardAlignment;
91
91
  isDefaultOpen: boolean;
92
- isEnabled: boolean;
93
92
  delay: number;
94
93
  hideDelay: number;
95
94
  focusTrigger: HoverCardFocusTrigger;
96
95
  touchTrigger: HoverCardTouchTrigger;
96
+ isEnabled: boolean;
97
97
  hasHoverIndication: HoverCardHoverIndication;
98
98
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
99
99
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -173,35 +173,35 @@ declare const __VLS_base: import("vue").DefineComponent<MultiSelectorProps, {
173
173
  blur: () => void | undefined;
174
174
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
175
175
  search: (query: string) => any;
176
- click: (event: MouseEvent) => any;
177
- focus: (event: FocusEvent) => any;
178
176
  change: (value: (string | number)[], change?: MultiSelectorCreateChange | undefined) => any;
177
+ click: (event: MouseEvent) => any;
179
178
  keydown: (event: KeyboardEvent) => any;
180
179
  openChange: (isOpen: boolean) => any;
181
180
  "update:modelValue": (value: (string | number)[]) => any;
181
+ focus: (event: FocusEvent) => any;
182
182
  }, string, import("vue").PublicProps, Readonly<MultiSelectorProps> & Readonly<{
183
183
  onSearch?: ((query: string) => any) | undefined;
184
- onClick?: ((event: MouseEvent) => any) | undefined;
185
- onFocus?: ((event: FocusEvent) => any) | undefined;
186
184
  onChange?: ((value: (string | number)[], change?: MultiSelectorCreateChange | undefined) => any) | undefined;
185
+ onClick?: ((event: MouseEvent) => any) | undefined;
187
186
  onKeydown?: ((event: KeyboardEvent) => any) | undefined;
188
187
  onOpenChange?: ((isOpen: boolean) => any) | undefined;
189
188
  "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
189
+ onFocus?: ((event: FocusEvent) => any) | undefined;
190
190
  }>, {
191
191
  required: boolean;
192
- isLoading: boolean;
193
- variant: MultiSelectorVariant;
194
192
  status: MultiSelectorStatus;
193
+ variant: MultiSelectorVariant;
194
+ isLoading: boolean;
195
195
  modelValue: readonly (string | number)[];
196
196
  statusVariant: MultiSelectorStatusVariant;
197
- disabled: boolean;
198
197
  isReadOnly: boolean;
199
- clearable: boolean;
198
+ disabled: boolean;
200
199
  presentation: MultiSelectorPresentation;
200
+ searchable: boolean;
201
+ clearable: boolean;
201
202
  labelHidden: boolean;
202
203
  hasCreate: boolean;
203
204
  optional: boolean;
204
- searchable: boolean;
205
205
  selectAll: boolean;
206
206
  triggerDisplay: MultiSelectorTriggerDisplay;
207
207
  maxBadges: number;
@@ -99,8 +99,8 @@ type __VLS_WithSlots$1<T, S> = T & {
99
99
  //#region src/Stepper/Stepper.vue.d.ts
100
100
  type __VLS_Slots = StepperSlots;
101
101
  declare const __VLS_base: import("vue").DefineComponent<StepperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{}>, {
102
- orientation: StepperOrientation;
103
102
  density: StepperDensity;
103
+ orientation: StepperOrientation;
104
104
  indicatorPosition: StepperIndicatorPosition;
105
105
  hasCollapsibleLabels: boolean;
106
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -52,8 +52,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
52
52
  "onUpdate:mobileNavOpen"?: ((value: boolean) => any) | undefined;
53
53
  onMobileNavOpenChange?: ((isOpen: boolean) => any) | undefined;
54
54
  }>, {
55
- variant: AppShellVariant;
56
55
  height: AppShellHeight;
56
+ variant: AppShellVariant;
57
57
  mobileNav: false | AppShellMobileNav;
58
58
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
59
59
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -8,14 +8,14 @@ declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {
8
8
  }, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
9
9
  onClick?: ((event: MouseEvent) => any) | undefined;
10
10
  }>, {
11
- type: "button" | "reset" | "submit";
12
- elevation: ButtonElevation;
11
+ type: "button" | "submit" | "reset";
13
12
  isDisabled: boolean;
14
- isLoading: boolean;
13
+ variant: ButtonVariant;
14
+ elevation: ButtonElevation;
15
15
  isIconOnly: boolean;
16
16
  isInterruptible: boolean;
17
+ isLoading: boolean;
17
18
  loadingLabel: string;
18
- variant: ButtonVariant;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
21
  declare const _default: typeof __VLS_export;
@@ -17,8 +17,8 @@ declare const __VLS_base: import("vue").DefineComponent<PopoverProps, {}, {}, {}
17
17
  }>, {
18
18
  label: string;
19
19
  anchor: HTMLElement | null;
20
- width: string | number;
21
20
  padding: PopoverPadding;
21
+ width: string | number;
22
22
  isOpen: boolean;
23
23
  placement: LayerPlacement;
24
24
  alignment: LayerAlignment;
@@ -154,11 +154,11 @@ type __VLS_ModelProps = {
154
154
  };
155
155
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
156
156
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
157
- "update:value": (value: CollapsibleGroupValue | undefined) => any;
158
157
  change: (value: CollapsibleGroupValue) => any;
158
+ "update:value": (value: CollapsibleGroupValue | undefined) => any;
159
159
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
160
- "onUpdate:value"?: ((value: CollapsibleGroupValue | undefined) => any) | undefined;
161
160
  onChange?: ((value: CollapsibleGroupValue) => any) | undefined;
161
+ "onUpdate:value"?: ((value: CollapsibleGroupValue | undefined) => any) | undefined;
162
162
  }>, {
163
163
  type: CollapsibleGroupType;
164
164
  hasDividers: boolean;
@@ -140,8 +140,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps$1, {
140
140
  height: string | number;
141
141
  isInline: boolean;
142
142
  purpose: BottomSheetPurpose;
143
- snapPoints: readonly BottomSheetSnapPoint[];
144
143
  hasScrim: boolean;
144
+ snapPoints: readonly BottomSheetSnapPoint[];
145
145
  finalFocusRef: import("vue").MaybeRef<HTMLElement | null>;
146
146
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
147
147
  declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
@@ -175,11 +175,11 @@ type __VLS_Slots = {} & {
175
175
  default?: (props: typeof __VLS_1) => any;
176
176
  };
177
177
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
178
- "update:activeSheet": (value: string | null) => any;
179
178
  cancel: (event: Event) => any;
179
+ "update:activeSheet": (value: string | null) => any;
180
180
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
181
- "onUpdate:activeSheet"?: ((value: string | null) => any) | undefined;
182
181
  onCancel?: ((event: Event) => any) | undefined;
182
+ "onUpdate:activeSheet"?: ((value: string | null) => any) | undefined;
183
183
  }>, {
184
184
  hasScrim: boolean;
185
185
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -80,11 +80,11 @@ declare const __VLS_base$1: import("vue").DefineComponent<DialogProps, {}, {}, {
80
80
  }, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
81
81
  onOpenChange?: ((isOpen: boolean) => any) | undefined;
82
82
  }>, {
83
- variant: DialogVariant;
84
- width: string | number;
85
83
  padding: DialogPadding;
86
- isInline: boolean;
84
+ width: string | number;
85
+ variant: DialogVariant;
87
86
  position: DialogPosition;
87
+ isInline: boolean;
88
88
  purpose: DialogPurpose;
89
89
  maxHeight: string | number;
90
90
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,7 +1,7 @@
1
1
  import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
2
2
  import "./useAsyncSource-aGzrvRkI.js";
3
3
  import { o as FieldStatusInput } from "./types-bAQk3F8G.js";
4
- import "./useClipboard-CU-kfqeJ.js";
4
+ import "./useClipboard-ZdT7wKBL.js";
5
5
  import "./useResizable-fEGAFziz.js";
6
6
  import { CSSProperties, Component, ComponentPublicInstance, ComputedRef, InjectionKey, MaybeRefOrGetter, Ref, ShallowRef } from "vue";
7
7
  import { CalendarDate } from "@internationalized/date";
@@ -420,9 +420,9 @@ declare function useDisclosureHandle(read: () => DisclosureHandleRef | undefined
420
420
  /**
421
421
  * 全页面共用的「浮层关闭栈」。
422
422
  *
423
- * 以前每一个浮层各自在 document 上挂一套 pointerdown 和 keydown 监听,
424
- * 结果按一次 Escape 会把所有开着的层一起关掉:Dialog 里开一个下拉菜单,
425
- * 一次 Escape 连 Dialog 也关了。这里把这件事收成一处:
423
+ * 如果每个浮层各自在 document 上挂一套 pointerdown 和 keydown 监听,
424
+ * 按一次 Escape 就会把所有开着的层一起关掉:Dialog 里开一个下拉菜单,
425
+ * 一次 Escape 连 Dialog 也关了。所以这件事收在这一处:
426
426
  *
427
427
  * - document 上只有一套监听,栈里有层才挂上去,栈空了就摘掉。
428
428
  * - Escape 永远只看「最上面那一层」:`'close'` 关掉它,`'block'` 吃掉按键但不关,
@@ -1849,7 +1849,6 @@ interface UseTypeaheadReturn {
1849
1849
  }
1850
1850
  /**
1851
1851
  * 对应原版 Astryx 的 `hooks/useTypeahead`。
1852
- * 以前放在 DropdownMenu,名字是 `useMenuTypeahead`,旧名字仍可从原路径引用。
1853
1852
  *
1854
1853
  * 反复按同一个字母会在匹配项之间循环,而不是把查询收得更窄。
1855
1854
  * 空格留给激活;只有缓冲里已经有字时,空格才算查询的一部分。
@@ -111,8 +111,8 @@ type __VLS_Slots = CardSlots;
111
111
  declare const __VLS_base: import("vue").DefineComponent<CardProps, {
112
112
  element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
113
113
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
114
- elevation: CardElevation;
115
114
  variant: keyof CardVariantMap;
115
+ elevation: CardElevation;
116
116
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
117
117
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
118
118
  declare const _default: typeof __VLS_export;
@@ -101,11 +101,11 @@ interface TokenizerSlots<T extends SearchableItem = SearchableItem> {
101
101
  declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
102
102
  props: import("vue").PublicProps & __VLS_PrettifyLocal<TokenizerProps<T> & {
103
103
  onSearch?: ((query: string) => any) | undefined;
104
- onBlur?: ((event: FocusEvent) => any) | undefined;
105
- onFocus?: ((event: FocusEvent) => any) | undefined;
106
104
  onChange?: ((value: T[], change: TokenizerChange<T>) => any) | undefined;
107
105
  onOpenChange?: ((isOpen: boolean) => any) | undefined;
108
106
  "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
107
+ onBlur?: ((event: FocusEvent) => any) | undefined;
108
+ onFocus?: ((event: FocusEvent) => any) | undefined;
109
109
  onChangeQuery?: ((query: string) => any) | undefined;
110
110
  }> & (typeof globalThis extends {
111
111
  __VLS_PROPS_FALLBACK: infer P;
@@ -116,7 +116,7 @@ declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<
116
116
  }>) => void;
117
117
  attrs: any;
118
118
  slots: TokenizerSlots<T>;
119
- emit: ((evt: "search", query: string) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "change", value: T[], change: TokenizerChange<T>) => void) & ((evt: "openChange", isOpen: boolean) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "changeQuery", query: string) => void);
119
+ emit: ((evt: "search", query: string) => void) & ((evt: "change", value: T[], change: TokenizerChange<T>) => void) & ((evt: "openChange", isOpen: boolean) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "changeQuery", query: string) => void);
120
120
  }>) => import("vue").VNode & {
121
121
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
122
122
  };
@@ -175,8 +175,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
175
175
  }>, {
176
176
  position: OverlayPosition;
177
177
  align: OverlayAlign;
178
- showOn: OverlayShowOn;
179
178
  scrim: OverlayScrimMode;
179
+ showOn: OverlayShowOn;
180
180
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
181
181
  declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
182
182
  declare const _default$1: typeof __VLS_export$1;
@@ -192,8 +192,8 @@ declare const __VLS_base: import("vue").DefineComponent<OverlayScrimProps, {}, {
192
192
  isOpen: boolean;
193
193
  position: OverlayPosition;
194
194
  align: OverlayAlign;
195
- showOn: OverlayShowOn;
196
195
  scrim: OverlayScrimMode;
196
+ showOn: OverlayShowOn;
197
197
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
198
198
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
199
199
  declare const _default: typeof __VLS_export;
@@ -71,11 +71,11 @@ declare const __VLS_base: import("vue").DefineComponent<TooltipProps, {}, {}, {}
71
71
  placement: TooltipPlacement;
72
72
  alignment: TooltipAlignment;
73
73
  isDefaultOpen: boolean;
74
- isEnabled: boolean;
75
74
  delay: number;
76
75
  hideDelay: number;
77
76
  focusTrigger: TooltipFocusTrigger;
78
77
  touchTrigger: TooltipTouchTrigger;
78
+ isEnabled: boolean;
79
79
  hasHoverIndication: boolean | "auto";
80
80
  anchorsOnSelf: boolean;
81
81
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -80,10 +80,10 @@ type __VLS_Slots = {} & {
80
80
  };
81
81
  declare const __VLS_base: import("vue").DefineComponent<HeadingProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeadingProps> & Readonly<{}>, {
82
82
  color: HeadingColor;
83
+ maxLines: number;
83
84
  display: HeadingDisplay;
84
85
  justify: HeadingJustify;
85
86
  hasCapsize: boolean;
86
- maxLines: number;
87
87
  hasTruncateTooltip: HeadingTruncateTooltip;
88
88
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
89
89
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,8 +21,8 @@ type __VLS_Slots = {} & {
21
21
  label?: (props: typeof __VLS_1) => any;
22
22
  };
23
23
  declare const __VLS_base: import("vue").DefineComponent<DividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DividerProps> & Readonly<{}>, {
24
- variant: DividerVariant;
25
24
  orientation: DividerOrientation;
25
+ variant: DividerVariant;
26
26
  isFullBleed: boolean;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -343,8 +343,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
343
343
  };
344
344
  }>> & Readonly<{}>, {
345
345
  plugins: readonly (MarkdownPluginEntry<MarkdownExtensionNode<string, string, MarkdownAstDataValue, "inline" | "block">> | MarkdownPlugin)[] | undefined;
346
- content: string;
347
346
  density: MarkdownDensity | undefined;
347
+ content: string;
348
348
  display: MarkdownDisplay | undefined;
349
349
  contentWidth: string | number | undefined;
350
350
  components: MarkdownComponents | undefined;
@@ -9,10 +9,10 @@ declare const __VLS_base: import("vue").DefineComponent<TextProps, {}, {}, {}, {
9
9
  type: TextType;
10
10
  as: TextAs;
11
11
  color: TextColor;
12
+ maxLines: number;
12
13
  display: TextDisplay;
13
14
  justify: TextJustify;
14
15
  hasCapsize: boolean;
15
- maxLines: number;
16
16
  hasTruncateTooltip: TextTruncateTooltip;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -391,23 +391,23 @@ declare const __VLS_base: import("vue").DefineComponent<PowerSearchProps, {
391
391
  focusTypeahead: () => void | undefined;
392
392
  blurTypeahead: () => void | undefined;
393
393
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
394
+ change: (filters: PowerSearchFilter[], changeType: PowerSearchChangeType, index: number) => any;
394
395
  blur: (event: FocusEvent) => any;
395
396
  focus: (event: FocusEvent) => any;
396
- change: (filters: PowerSearchFilter[], changeType: PowerSearchChangeType, index: number) => any;
397
397
  "update:filters": (filters: PowerSearchFilter[]) => any;
398
398
  }, string, import("vue").PublicProps, Readonly<PowerSearchProps> & Readonly<{
399
+ onChange?: ((filters: PowerSearchFilter[], changeType: PowerSearchChangeType, index: number) => any) | undefined;
399
400
  onBlur?: ((event: FocusEvent) => any) | undefined;
400
401
  onFocus?: ((event: FocusEvent) => any) | undefined;
401
- onChange?: ((filters: PowerSearchFilter[], changeType: PowerSearchChangeType, index: number) => any) | undefined;
402
402
  "onUpdate:filters"?: ((filters: PowerSearchFilter[]) => any) | undefined;
403
403
  }>, {
404
404
  status: PowerSearchStatus;
405
405
  statusVariant: PowerSearchStatusVariant;
406
- disabled: boolean;
407
406
  hasClear: boolean;
407
+ disabled: boolean;
408
408
  clearable: boolean;
409
- labelHidden: boolean;
410
409
  overflow: PowerSearchOverflow;
410
+ labelHidden: boolean;
411
411
  readOnly: boolean;
412
412
  maxTokenLength: number;
413
413
  maxSearchResults: number;