@astryx-vue/core 0.9.1 → 0.10.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 (121) hide show
  1. package/README.md +8 -1
  2. package/dist/AvatarGroup/index.d.ts +1 -1
  3. package/dist/Banner/index.d.ts +1 -1
  4. package/dist/BottomSheet/index.d.ts +1 -1
  5. package/dist/Breadcrumbs/index.js +1 -1
  6. package/dist/{Breadcrumbs-CrqG4fGx.js → Breadcrumbs-Dxjz2Dxn.js} +1 -1
  7. package/dist/Button/index.d.ts +1 -1
  8. package/dist/ButtonGroup/index.d.ts +1 -1
  9. package/dist/Calendar/index.d.ts +1 -1
  10. package/dist/Card/index.d.ts +1 -1
  11. package/dist/Carousel/index.d.ts +1 -1
  12. package/dist/Chat/index.d.ts +1 -1
  13. package/dist/Chat/index.js +1 -1
  14. package/dist/{Chat-Bl_Wr2lK.js → Chat-Bz9KRyug.js} +1 -1
  15. package/dist/CheckboxInput/index.d.ts +1 -1
  16. package/dist/CheckboxList/index.d.ts +1 -1
  17. package/dist/ClickableCard/index.d.ts +1 -1
  18. package/dist/Collapsible/index.d.ts +1 -1
  19. package/dist/CommandPalette/index.d.ts +1 -1
  20. package/dist/ContextMenu/index.d.ts +1 -1
  21. package/dist/ContextMenu/index.js +1 -1
  22. package/dist/{ContextMenu-DN_nTBgW.js → ContextMenu-6AnjpPJg.js} +119 -142
  23. package/dist/DateInput/index.d.ts +1 -1
  24. package/dist/DateRangeInput/index.d.ts +1 -1
  25. package/dist/DateTimeInput/index.d.ts +1 -1
  26. package/dist/Dialog/index.d.ts +1 -1
  27. package/dist/Divider/index.d.ts +1 -1
  28. package/dist/Drawer/index.d.ts +1 -1
  29. package/dist/DropdownMenu/index.js +2 -2
  30. package/dist/{DropdownMenu-B758ASzK.js → DropdownMenu-B9eUWp_X.js} +23 -41
  31. package/dist/{DropdownMenu-D_KdcZCL.js → DropdownMenu-DJK_xIUd.js} +3 -5
  32. package/dist/Field/index.d.ts +1 -1
  33. package/dist/FileInput/index.d.ts +1 -1
  34. package/dist/HoverCard/index.d.ts +1 -1
  35. package/dist/HoverCard/index.js +1 -1
  36. package/dist/{HoverCard-CLcbBLBN.js → HoverCard-3S3axq-o.js} +2 -39
  37. package/dist/InfoTip/index.d.ts +1 -1
  38. package/dist/InputGroup/index.d.ts +1 -1
  39. package/dist/Link/index.d.ts +1 -1
  40. package/dist/List/index.d.ts +1 -1
  41. package/dist/MoreMenu/index.d.ts +1 -1
  42. package/dist/MoreMenu/index.js +1 -1
  43. package/dist/{MoreMenu-1lxF-JY5.js → MoreMenu-DaLb4bgr.js} +1 -24
  44. package/dist/MultiSelector/index.d.ts +1 -1
  45. package/dist/NavMenu/index.js +1 -1
  46. package/dist/{NavMenu-C5BgRNpG.js → NavMenu-ChlWdHfi.js} +1 -1
  47. package/dist/NumberInput/index.d.ts +1 -1
  48. package/dist/OverflowList/index.d.ts +1 -1
  49. package/dist/Overlay/index.d.ts +1 -1
  50. package/dist/Pagination/index.d.ts +1 -1
  51. package/dist/Popover/index.d.ts +1 -1
  52. package/dist/PowerSearch/index.d.ts +1 -1
  53. package/dist/ProgressBar/index.d.ts +1 -1
  54. package/dist/Radio/index.d.ts +1 -1
  55. package/dist/RadioList/index.d.ts +1 -1
  56. package/dist/Resizable/index.d.ts +1 -1
  57. package/dist/ScrollableArea/index.d.ts +1 -1
  58. package/dist/SegmentedControl/index.d.ts +1 -1
  59. package/dist/SelectableCard/index.d.ts +1 -1
  60. package/dist/Selector/index.d.ts +1 -1
  61. package/dist/SideNav/index.d.ts +1 -1
  62. package/dist/Stack/index.d.ts +1 -1
  63. package/dist/Stepper/index.d.ts +1 -1
  64. package/dist/Switch/index.d.ts +1 -1
  65. package/dist/TabList/index.d.ts +1 -1
  66. package/dist/Table/index.d.ts +1 -1
  67. package/dist/TextArea/index.d.ts +1 -1
  68. package/dist/TextInput/index.d.ts +1 -1
  69. package/dist/TimeInput/index.d.ts +1 -1
  70. package/dist/Timestamp/index.d.ts +1 -1
  71. package/dist/Timestamp/index.js +1 -1
  72. package/dist/{Timestamp-B7H0KScU.js → Timestamp-DWnbOvnI.js} +1 -1
  73. package/dist/ToggleButton/index.d.ts +1 -1
  74. package/dist/Token/index.d.ts +1 -1
  75. package/dist/Tokenizer/index.d.ts +1 -1
  76. package/dist/Toolbar/index.d.ts +1 -1
  77. package/dist/Tooltip/index.d.ts +1 -1
  78. package/dist/TopNav/index.d.ts +1 -1
  79. package/dist/TreeList/index.d.ts +1 -1
  80. package/dist/TreeList/index.js +1 -1
  81. package/dist/{TreeList-DeknLfbQ.js → TreeList-CRMLcaRx.js} +11 -5
  82. package/dist/Typeahead/index.d.ts +1 -1
  83. package/dist/composables/index.js +3 -2
  84. package/dist/{composables-CF4EnyHW.js → composables-JBLeessI.js} +1 -145
  85. package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
  86. package/dist/{index-wY6dKz6c.d.ts → index-BEZ4ezJk.d.ts} +2 -2
  87. package/dist/{index-CfPGC9aW.d.ts → index-BMCjAlq6.d.ts} +1 -1
  88. package/dist/{index-C1C7wOAU.d.ts → index-BM_ecKyA.d.ts} +11 -11
  89. package/dist/{index-DTfA4uE3.d.ts → index-BSCGAS9f.d.ts} +3 -3
  90. package/dist/{index-CsxZ8Jr0.d.ts → index-BWzEt0gT.d.ts} +3 -3
  91. package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
  92. package/dist/{index-O_KX_p13.d.ts → index-Bh81JoCO.d.ts} +11 -11
  93. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  94. package/dist/{index-CEjvYAUZ.d.ts → index-BvWBeoa8.d.ts} +1 -1
  95. package/dist/{index-GmoeIuhl.d.ts → index-Byan7Dad.d.ts} +1 -1
  96. package/dist/{index-dWlCpnua.d.ts → index-C5e2rZML.d.ts} +2 -2
  97. package/dist/{index-5WZNQzWs.d.ts → index-CTmPclix.d.ts} +9 -9
  98. package/dist/{index-B449gOMC.d.ts → index-Cj3oYBbW.d.ts} +1 -1
  99. package/dist/{index-6kd7pher.d.ts → index-CtFkEity.d.ts} +1 -1
  100. package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
  101. package/dist/{index-B-3EGjfQ.d.ts → index-D1ncEgaS.d.ts} +1 -1
  102. package/dist/{index-BxWCX2pJ.d.ts → index-DFjI9t5J.d.ts} +1 -1
  103. package/dist/{index-CM2L3SUw.d.ts → index-DItIx1wC.d.ts} +4 -4
  104. package/dist/{index-Bnj1hZmL.d.ts → index-DPH5yoAr.d.ts} +1 -1
  105. package/dist/{index-CuTGi_CF.d.ts → index-DcCW_2qu.d.ts} +76 -76
  106. package/dist/{index-Cun6cXGP.d.ts → index-DnskskrO.d.ts} +3 -3
  107. package/dist/{index-Dg0JsBpI.d.ts → index-DoSTYXsP.d.ts} +2 -2
  108. package/dist/{index-DZKv1WNB.d.ts → index-Dsab_-sG.d.ts} +1 -1
  109. package/dist/{index-PsawGBwC.d.ts → index-DzuyarZi.d.ts} +4 -4
  110. package/dist/{index-DneQgJfI.d.ts → index-O9y23OPJ.d.ts} +1 -1
  111. package/dist/{index-MEix_m1o.d.ts → index-R9mtTNPl.d.ts} +3 -3
  112. package/dist/{index-CdvmnNMH.d.ts → index-Xc3q9f84.d.ts} +2 -2
  113. package/dist/{index-Dy746dfn.d.ts → index-unAZVFGz.d.ts} +1 -1
  114. package/dist/index.d.ts +30 -30
  115. package/dist/index.js +13 -12
  116. package/dist/menuActivation-BqiaK6ot.js +27 -0
  117. package/dist/typeaheadMatch-Cl-oxKFt.js +78 -0
  118. package/dist/useTouchTrigger-GGd85Obb.js +146 -0
  119. package/dist/{useTypeahead-DXnNlISe.js → useTypeahead-DSMObTtg.js} +10 -10
  120. package/package.json +1 -1
  121. package/dist/{index-J6YRJ7Ul.d.ts → index-BqhgeAT4.d.ts} +1 -1
package/README.md CHANGED
@@ -2,7 +2,14 @@
2
2
 
3
3
  Vue 3 components for [astryx-vue](https://github.com/astryx-vue/astryx-vue), an unofficial port of Astryx. Not affiliated with Meta.
4
4
 
5
- > **Using an agent?** Install `@astryx-vue/cli` and run `astryx-vue component Button`, or `astryx-vue init --features agents` so the agent looks components up instead of guessing. The binary is `astryx-vue`, not `astryx`.
5
+ > **Setup is install, then `init`.** Add the CLI and run `init` once, before you write UI:
6
+ >
7
+ > ```sh
8
+ > pnpm add -D @astryx-vue/cli # or: npm install -D / yarn add -D / bun add -d
9
+ > pnpm exec astryx-vue init # asks no questions
10
+ > ```
11
+ >
12
+ > `init` prints the setup steps (packages, theme, locale) and saves the astryx-vue guide to your `AGENTS.md`/`CLAUDE.md`, so any agent working in the project looks components up, such as `astryx-vue component Button`, instead of guessing. The binary is `astryx-vue`, not `astryx`.
6
13
 
7
14
  ## Install
8
15
 
@@ -1,2 +1,2 @@
1
- import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-CuTGi_CF.js";
1
+ import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-DcCW_2qu.js";
2
2
  export { _default as AvatarGroup, _default$1 as AvatarGroupOverflow, type AvatarGroupOverflowEmits, type AvatarGroupOverflowProps, type AvatarGroupOverflowSlots, type AvatarGroupProps };
@@ -1,2 +1,2 @@
1
- import { do as _default, fo as BannerContainer, go as BannerStatus, ho as BannerSlots, mo as BannerProps, po as BannerEmits } from "../index-CuTGi_CF.js";
1
+ import { do as _default, fo as BannerContainer, go as BannerStatus, ho as BannerSlots, mo as BannerProps, po as BannerEmits } from "../index-DcCW_2qu.js";
2
2
  export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
@@ -1,2 +1,2 @@
1
- import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-BxWCX2pJ.js";
1
+ import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-DFjI9t5J.js";
2
2
  export { _default as BottomSheet, type BottomSheetEmits, type BottomSheetHeight, type BottomSheetMotion, type BottomSheetPadding, type BottomSheetProps, type BottomSheetPurpose, type BottomSheetSlots, type BottomSheetSnapPoint, type BottomSheetState, _default$1 as BottomSheetSwitcher };
@@ -1,3 +1,3 @@
1
1
  import { a as _sfc_main$1, i as _sfc_main$2, r as _sfc_main$3 } from "../useMenuDrillIn-uQtOSny6.js";
2
- import { n as _sfc_main, t as _sfc_main$4 } from "../Breadcrumbs-CrqG4fGx.js";
2
+ import { n as _sfc_main, t as _sfc_main$4 } from "../Breadcrumbs-Dxjz2Dxn.js";
3
3
  export { _sfc_main as BreadcrumbItem, _sfc_main$1 as BreadcrumbMenuCheckboxItem, _sfc_main$2 as BreadcrumbMenuRadioGroup, _sfc_main$3 as BreadcrumbMenuRadioItem, _sfc_main$4 as Breadcrumbs };
@@ -3,7 +3,7 @@ import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide
3
3
  import { t as _sfc_main$2 } from "./Icon-BCHo7W0x.js";
4
4
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
5
5
  import { n as useDevWarning } from "./useDevWarning-B2fsk2B-.js";
6
- import { t as _sfc_main$3 } from "./DropdownMenu-B758ASzK.js";
6
+ import { t as _sfc_main$3 } from "./DropdownMenu-B9eUWp_X.js";
7
7
  import { n as isNavigableHref } from "./link-DuuA2eCL.js";
8
8
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, onMounted, onScopeDispose, onUpdated, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, unref, useId, useSlots, useTemplateRef, watch, withCtx } from "vue";
9
9
  import "../styles/breadcrumbs.css";
@@ -1,3 +1,3 @@
1
1
  import { a as ButtonProps, c as ButtonSizeValue, d as ButtonVariantMap, i as ButtonLinkElement, l as ButtonSlots, n as ButtonElevation, o as ButtonRootElement, r as ButtonEmits, s as ButtonSize, t as ButtonClickAction, u as ButtonVariant } from "../types-DRpOiAlm.js";
2
- import { t as _default } from "../index-CsxZ8Jr0.js";
2
+ import { t as _default } from "../index-BWzEt0gT.js";
3
3
  export { _default as Button, _default as default, type ButtonClickAction, type ButtonElevation, type ButtonEmits, type ButtonLinkElement, type ButtonProps, type ButtonRootElement, type ButtonSize, type ButtonSizeValue, type ButtonSlots, type ButtonVariant, type ButtonVariantMap };
@@ -1,2 +1,2 @@
1
- import { co as ButtonGroupProps, lo as ButtonGroupSlots, so as _default, uo as ButtonGroupOrientation } from "../index-CuTGi_CF.js";
1
+ import { co as ButtonGroupProps, lo as ButtonGroupSlots, so as _default, uo as ButtonGroupOrientation } from "../index-DcCW_2qu.js";
2
2
  export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
@@ -1,2 +1,2 @@
1
- import { ao as CalendarRangeValue, eo as _default, io as CalendarProps, no as CalendarHandle, oo as CalendarSlots, ro as CalendarHandleRef, to as CalendarEmits } from "../index-CuTGi_CF.js";
1
+ import { ao as CalendarRangeValue, eo as _default, io as CalendarProps, no as CalendarHandle, oo as CalendarSlots, ro as CalendarHandleRef, to as CalendarEmits } from "../index-DcCW_2qu.js";
2
2
  export { _default as Calendar, type CalendarEmits, type CalendarHandle, type CalendarHandleRef, type CalendarProps, type CalendarRangeValue, type CalendarSlots };
@@ -1,2 +1,2 @@
1
- import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-CTjkJP4x.js";
1
+ import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-Bgk1Rj2A.js";
2
2
  export { _default as Card, type CardElevation, type CardProps, type CardSizeValue, type CardSlots, type CardVariant, type CardVariantMap };
@@ -1,2 +1,2 @@
1
- import { $a as CarouselSlots, Qa as CarouselProps, Xa as CarouselGap, Ya as _default, Za as CarouselHandle } from "../index-CuTGi_CF.js";
1
+ import { $a as CarouselSlots, Qa as CarouselProps, Xa as CarouselGap, Ya as _default, Za as CarouselHandle } from "../index-DcCW_2qu.js";
2
2
  export { _default as Carousel, type CarouselGap, type CarouselHandle, type CarouselProps, type CarouselSlots };
@@ -1,2 +1,2 @@
1
- import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatReasoningProps, B as ChatComposerDrawerEmits, Bt as ChatTypingIndicatorProps, C as _default$15, Ct as ChatMessageMetadataProps, D as _default$11, Dt as ChatMessageSlots, E as _default$12, Et as ChatMessageSender, F as _default$3, Ft as ChatToolCallItem, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallStatus, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsEmits, M as _default$6, Mt as ChatSystemMessageProps, N as _default$5, Nt as ChatSystemMessageSlots, O as _default$10, Ot as ChatMessageStatus, P as _default$4, Pt as ChatSystemMessageVariant, Q as ChatComposerToken, R as _default, Rt as ChatToolCallsProps, S as _default$16, St as ChatMessageListSlots, T as _default$13, Tt as ChatMessageProps, U as ChatComposerElevation, V as ChatComposerDrawerProps, Vt as ChatUnreadDividerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageBubbleProps, a as useChatPasteAsToken, at as ChatSendButtonEmits, b as useChatMessageContext, bt as ChatMessageListAlign, c as SpeechRecognitionError, ct as ChatTokenizedTextProps, d as useSpeechRecognition, dt as ChatLayoutProps, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatLayoutScrollButtonEmits, g as ChatComposerContextValue, gt as ChatMessageBubbleGroup, h as useChatComposerTokens, ht as ChatLayoutSlots, i as pastedTextLabel, it as ChatDictationButtonProps, j as _default$7, jt as ChatReasoningSlots, k as _default$9, kt as ChatReasoningEmits, l as UseSpeechRecognitionOptions, lt as ChatTokenizedTextSlots, m as UseChatComposerTokensReturn, mt as ChatLayoutScrollSlotProps, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatSendButtonProps, p as UseChatComposerTokensOptions, pt as ChatLayoutScrollButtonProps, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatSendButtonSlots, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatDensity, v as useChatLayoutContext, vt as ChatMessageBubbleSlots, w as _default$14, wt as ChatMessageMetadataSlots, x as _default$17, xt as ChatMessageListProps, y as useChatListContext, yt as ChatMessageBubbleVariant, z as ChatComposerDensity, zt as ChatToolCallsSlots } from "../index-5WZNQzWs.js";
1
+ import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatReasoningProps, B as ChatComposerDrawerEmits, Bt as ChatTypingIndicatorProps, C as _default$15, Ct as ChatMessageMetadataProps, D as _default$11, Dt as ChatMessageSlots, E as _default$12, Et as ChatMessageSender, F as _default$3, Ft as ChatToolCallItem, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallStatus, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsEmits, M as _default$6, Mt as ChatSystemMessageProps, N as _default$5, Nt as ChatSystemMessageSlots, O as _default$10, Ot as ChatMessageStatus, P as _default$4, Pt as ChatSystemMessageVariant, Q as ChatComposerToken, R as _default, Rt as ChatToolCallsProps, S as _default$16, St as ChatMessageListSlots, T as _default$13, Tt as ChatMessageProps, U as ChatComposerElevation, V as ChatComposerDrawerProps, Vt as ChatUnreadDividerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageBubbleProps, a as useChatPasteAsToken, at as ChatSendButtonEmits, b as useChatMessageContext, bt as ChatMessageListAlign, c as SpeechRecognitionError, ct as ChatTokenizedTextProps, d as useSpeechRecognition, dt as ChatLayoutProps, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatLayoutScrollButtonEmits, g as ChatComposerContextValue, gt as ChatMessageBubbleGroup, h as useChatComposerTokens, ht as ChatLayoutSlots, i as pastedTextLabel, it as ChatDictationButtonProps, j as _default$7, jt as ChatReasoningSlots, k as _default$9, kt as ChatReasoningEmits, l as UseSpeechRecognitionOptions, lt as ChatTokenizedTextSlots, m as UseChatComposerTokensReturn, mt as ChatLayoutScrollSlotProps, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatSendButtonProps, p as UseChatComposerTokensOptions, pt as ChatLayoutScrollButtonProps, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatSendButtonSlots, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatDensity, v as useChatLayoutContext, vt as ChatMessageBubbleSlots, w as _default$14, wt as ChatMessageMetadataSlots, x as _default$17, xt as ChatMessageListProps, y as useChatListContext, yt as ChatMessageBubbleVariant, z as ChatComposerDensity, zt as ChatToolCallsSlots } from "../index-CTmPclix.js";
2
2
  export { _default as ChatComposer, type ChatComposerContextValue, type ChatComposerDensity, _default$1 as ChatComposerDrawer, type ChatComposerDrawerEmits, type ChatComposerDrawerProps, type ChatComposerDrawerSlots, type ChatComposerElevation, type ChatComposerEmits, _default$2 as ChatComposerInput, type ChatComposerInputControl, type ChatComposerInputEmits, type ChatComposerInputHandle, type ChatComposerInputProps, type ChatComposerProps, type ChatComposerSlots, type ChatComposerStatus, type ChatComposerToken, type ChatComposerTokenBadge, type ChatComposerTokenCustom, _default$3 as ChatComposerTokenElement, type ChatComposerTokenElementProps, type ChatComposerTrigger, type ChatComposerTriggerItem, type ChatDensity, _default$4 as ChatDictationButton, type ChatDictationButtonProps, _default$5 as ChatLayout, type ChatLayoutProps, _default$6 as ChatLayoutScrollButton, type ChatLayoutScrollButtonEmits, type ChatLayoutScrollButtonProps, type ChatLayoutScrollSlotProps, type ChatLayoutSlots, _default$7 as ChatMessage, _default$8 as ChatMessageBubble, type ChatMessageBubbleGroup, type ChatMessageBubbleProps, type ChatMessageBubbleSlots, type ChatMessageBubbleVariant, _default$9 as ChatMessageList, type ChatMessageListAlign, type ChatMessageListProps, type ChatMessageListSlots, _default$10 as ChatMessageMetadata, type ChatMessageMetadataProps, type ChatMessageMetadataSlots, type ChatMessageProps, type ChatMessageSender, type ChatMessageSlots, type ChatMessageStatus, _default$11 as ChatReasoning, type ChatReasoningEmits, type ChatReasoningProps, type ChatReasoningSlots, _default$12 as ChatSendButton, type ChatSendButtonEmits, type ChatSendButtonProps, type ChatSendButtonSlots, _default$13 as ChatSystemMessage, type ChatSystemMessageProps, type ChatSystemMessageSlots, type ChatSystemMessageVariant, _default$14 as ChatTokenizedText, type ChatTokenizedTextProps, type ChatTokenizedTextSlots, type ChatToolCallItem, type ChatToolCallStatus, _default$15 as ChatToolCalls, type ChatToolCallsEmits, type ChatToolCallsProps, type ChatToolCallsSlots, _default$16 as ChatTypingIndicator, type ChatTypingIndicatorProps, _default$17 as ChatUnreadDivider, type ChatUnreadDividerProps, PASTE_TOKEN_THRESHOLD, type SpeechRecognitionError, type TokenPortal, type UseChatComposerTokensOptions, type UseChatComposerTokensReturn, type UseChatDictationOptions, type UseChatPasteAsTokenOptions, type UseChatPasteAsTokenReturn, type UseSpeechRecognitionOptions, type UseSpeechRecognitionReturn, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
@@ -1,2 +1,2 @@
1
- import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-Bl_Wr2lK.js";
1
+ import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-Bz9KRyug.js";
2
2
  export { _sfc_main as ChatComposer, _sfc_main$1 as ChatComposerDrawer, _sfc_main$2 as ChatComposerInput, _sfc_main$3 as ChatComposerTokenElement, _sfc_main$4 as ChatDictationButton, _sfc_main$5 as ChatLayout, _sfc_main$6 as ChatLayoutScrollButton, _sfc_main$7 as ChatMessage, _sfc_main$8 as ChatMessageBubble, _sfc_main$9 as ChatMessageList, _sfc_main$10 as ChatMessageMetadata, _sfc_main$11 as ChatReasoning, _sfc_main$12 as ChatSendButton, _sfc_main$13 as ChatSystemMessage, _sfc_main$14 as ChatTokenizedText, _sfc_main$15 as ChatToolCalls, _sfc_main$16 as ChatTypingIndicator, _sfc_main$17 as ChatUnreadDivider, PASTE_TOKEN_THRESHOLD, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
@@ -13,7 +13,7 @@ import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
13
13
  import { t as _sfc_main$27 } from "./Badge-BbPS_49c.js";
14
14
  import { t as _sfc_main$28 } from "./Divider-mOZ6vIQw.js";
15
15
  import { t as chatMessages } from "./chat-mh_siWVp.js";
16
- import { t as _sfc_main$29 } from "./HoverCard-CLcbBLBN.js";
16
+ import { t as _sfc_main$29 } from "./HoverCard-3S3axq-o.js";
17
17
  import { t as _sfc_main$30 } from "./Spinner-DEVPDsD0.js";
18
18
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toValue, unref, useId, useModel, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
19
19
  import "../styles/layer.css";
@@ -1,2 +1,2 @@
1
- import { Ga as CheckboxInputEmits, Ha as _default, Ja as CheckboxValue, Ka as CheckboxInputProps, Ua as CheckboxInputChangeAction, Wa as CheckboxInputChangeEvent, qa as CheckboxInputSlots } from "../index-CuTGi_CF.js";
1
+ import { Ga as CheckboxInputEmits, Ha as _default, Ja as CheckboxValue, Ka as CheckboxInputProps, Ua as CheckboxInputChangeAction, Wa as CheckboxInputChangeEvent, qa as CheckboxInputSlots } from "../index-DcCW_2qu.js";
2
2
  export { _default as CheckboxInput, type CheckboxInputChangeAction, type CheckboxInputChangeEvent, type CheckboxInputEmits, type CheckboxInputProps, type CheckboxInputSlots, type CheckboxValue };
@@ -1,2 +1,2 @@
1
- import { Ba as CheckboxListItemProps, Ia as _default$1, La as _default, Ra as CheckboxListEmits, Va as CheckboxListProps, za as CheckboxListItemEmits } from "../index-CuTGi_CF.js";
1
+ import { Ba as CheckboxListItemProps, Ia as _default$1, La as _default, Ra as CheckboxListEmits, Va as CheckboxListProps, za as CheckboxListItemEmits } from "../index-DcCW_2qu.js";
2
2
  export { _default as CheckboxList, type CheckboxListEmits, _default$1 as CheckboxListItem, type CheckboxListItemEmits, type CheckboxListItemProps, type CheckboxListProps };
@@ -1,2 +1,2 @@
1
- import { Fa as ClickableCardSlots, Ma as _default, Na as ClickableCardEmits, Pa as ClickableCardProps } from "../index-CuTGi_CF.js";
1
+ import { Fa as ClickableCardSlots, Ma as _default, Na as ClickableCardEmits, Pa as ClickableCardProps } from "../index-DcCW_2qu.js";
2
2
  export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
@@ -1,2 +1,2 @@
1
- import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-wY6dKz6c.js";
1
+ import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-BEZ4ezJk.js";
2
2
  export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleConfig, type CollapsibleEmits, _default$1 as CollapsibleGroup, type CollapsibleGroupDensity, type CollapsibleGroupEmits, type CollapsibleGroupProps, type CollapsibleGroupSlots, type CollapsibleGroupType, type CollapsibleGroupValue, type CollapsibleProps, type CollapsibleSlots, type UseCollapsibleOptions, type UseCollapsibleReturn, useCollapsible };
@@ -1,2 +1,2 @@
1
- import { _ as CommandPaletteSlots, a as _default$2, c as CommandPaletteEmits, d as CommandPaletteInputProps, f as CommandPaletteItemEmits, g as CommandPaletteProps, h as CommandPaletteListProps, i as _default$3, l as CommandPaletteGroupProps, m as CommandPaletteItemSlotProps, n as _default$5, o as _default$1, p as CommandPaletteItemProps, r as _default$4, s as _default, t as _default$6, u as CommandPaletteInputEmits } from "../index-Dy746dfn.js";
1
+ import { _ as CommandPaletteSlots, a as _default$2, c as CommandPaletteEmits, d as CommandPaletteInputProps, f as CommandPaletteItemEmits, g as CommandPaletteProps, h as CommandPaletteListProps, i as _default$3, l as CommandPaletteGroupProps, m as CommandPaletteItemSlotProps, n as _default$5, o as _default$1, p as CommandPaletteItemProps, r as _default$4, s as _default, t as _default$6, u as CommandPaletteInputEmits } from "../index-unAZVFGz.js";
2
2
  export { _default as CommandPalette, type CommandPaletteEmits, _default$1 as CommandPaletteEmpty, _default$2 as CommandPaletteFooter, _default$3 as CommandPaletteGroup, type CommandPaletteGroupProps, _default$4 as CommandPaletteInput, type CommandPaletteInputEmits, type CommandPaletteInputProps, _default$5 as CommandPaletteItem, type CommandPaletteItemEmits, type CommandPaletteItemProps, type CommandPaletteItemSlotProps, _default$6 as CommandPaletteList, type CommandPaletteListProps, type CommandPaletteProps, type CommandPaletteSlots };
@@ -1,3 +1,3 @@
1
- import { $i as _default$4, Aa as ContextMenuVariant, Ca as ContextMenuSection, Da as ContextMenuSubMenuProps, Ea as ContextMenuSubMenuEmits, Oa as ContextMenuSubMenuSlots, Qi as _default$7, Sa as ContextMenuRadioOptionData, Ta as ContextMenuSlots, _a as ContextMenuItemTarget, aa as ContextMenuCheckboxData, ba as ContextMenuProps, ca as ContextMenuEmits, da as ContextMenuGroupSlots, ea as _default$3, fa as ContextMenuItemData, ga as ContextMenuItemSlots, ha as ContextMenuItemProps, ia as useContextMenuSize, ja as ContextMenuWidth, ka as ContextMenuTriggerElement, la as ContextMenuEntry, ma as ContextMenuItemIcon, na as _default, oa as ContextMenuDividerData, pa as ContextMenuItemEmits, ra as useContextMenu, sa as ContextMenuDividerProps, ta as _default$2, ua as ContextMenuGroupProps, va as ContextMenuOption, wa as ContextMenuSize, xa as ContextMenuRadioData, ya as ContextMenuPresentation } from "../index-CuTGi_CF.js";
1
+ import { $i as _default$4, Aa as ContextMenuVariant, Ca as ContextMenuSection, Da as ContextMenuSubMenuProps, Ea as ContextMenuSubMenuEmits, Oa as ContextMenuSubMenuSlots, Qi as _default$7, Sa as ContextMenuRadioOptionData, Ta as ContextMenuSlots, _a as ContextMenuItemTarget, aa as ContextMenuCheckboxData, ba as ContextMenuProps, ca as ContextMenuEmits, da as ContextMenuGroupSlots, ea as _default$3, fa as ContextMenuItemData, ga as ContextMenuItemSlots, ha as ContextMenuItemProps, ia as useContextMenuSize, ja as ContextMenuWidth, ka as ContextMenuTriggerElement, la as ContextMenuEntry, ma as ContextMenuItemIcon, na as _default, oa as ContextMenuDividerData, pa as ContextMenuItemEmits, ra as useContextMenu, sa as ContextMenuDividerProps, ta as _default$2, ua as ContextMenuGroupProps, va as ContextMenuOption, wa as ContextMenuSize, xa as ContextMenuRadioData, ya as ContextMenuPresentation } from "../index-DcCW_2qu.js";
2
2
  import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-C9DdN6UE.js";
3
3
  export { _default as ContextMenu, type ContextMenuCheckboxData, _default$1 as ContextMenuCheckboxItem, _default$2 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, type ContextMenuEntry, _default$3 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$4 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuPresentation, type ContextMenuProps, type ContextMenuRadioData, _default$5 as ContextMenuRadioGroup, _default$6 as ContextMenuRadioItem, type ContextMenuRadioOptionData, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$7 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
@@ -1,3 +1,3 @@
1
1
  import { a as _sfc_main$1, d as useContextMenu, f as useContextMenuSize, i as _sfc_main$5, r as _sfc_main$6 } from "../useMenuDrillIn-uQtOSny6.js";
2
- import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-DN_nTBgW.js";
2
+ import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-6AnjpPJg.js";
3
3
  export { _sfc_main as ContextMenu, _sfc_main$1 as ContextMenuCheckboxItem, _sfc_main$2 as ContextMenuDivider, _sfc_main$3 as ContextMenuGroup, _sfc_main$4 as ContextMenuItem, _sfc_main$5 as ContextMenuRadioGroup, _sfc_main$6 as ContextMenuRadioItem, _sfc_main$7 as ContextMenuSubMenu, useContextMenu, useContextMenuSize };
@@ -12,6 +12,7 @@ import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
12
12
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
13
13
  import { a as _sfc_main$9, d as useContextMenu, f as useContextMenuSize, i as _sfc_main$10, l as contextMenuContextKey, n as useDropdownMenuMessages, r as _sfc_main$11, t as useMenuDrillIn, u as submenuAncestorOpenKey } from "./useMenuDrillIn-uQtOSny6.js";
14
14
  import { t as _sfc_main$12 } from "./Divider-mOZ6vIQw.js";
15
+ import { n as isModifiedClick, t as activateMenuItem } from "./menuActivation-BqiaK6ot.js";
15
16
  import { t as _sfc_main$13 } from "./Spinner-DEVPDsD0.js";
16
17
  import { t as contextMenuMessages } from "./context-menu-9i6CObx3.js";
17
18
  import { t as useSubmenuMode } from "./useSubmenuMode-CZN9qrUo.js";
@@ -57,6 +58,124 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
57
58
  }
58
59
  });
59
60
  //#endregion
61
+ //#region src/ContextMenu/ContextMenuItem.vue
62
+ const _hoisted_1$2 = {
63
+ key: 0,
64
+ class: "astryx-context-menu-item__start"
65
+ };
66
+ const _hoisted_2$2 = { class: "astryx-context-menu-item__content" };
67
+ const _hoisted_3$2 = {
68
+ class: "astryx-context-menu-item__label",
69
+ "data-menu-item-label": ""
70
+ };
71
+ const _hoisted_4$2 = {
72
+ key: 0,
73
+ class: "astryx-context-menu-item__description"
74
+ };
75
+ const _hoisted_5$1 = {
76
+ key: 1,
77
+ class: "astryx-context-menu-item__end"
78
+ };
79
+ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
80
+ name: "AstryxContextMenuItem",
81
+ __name: "ContextMenuItem",
82
+ props: {
83
+ icon: {},
84
+ label: {},
85
+ description: {},
86
+ endContent: {},
87
+ href: {},
88
+ target: {},
89
+ rel: {},
90
+ isDisabled: {
91
+ type: Boolean,
92
+ default: false
93
+ },
94
+ hasCloseOnSelect: {
95
+ type: Boolean,
96
+ default: true
97
+ },
98
+ variant: { default: "default" }
99
+ },
100
+ emits: ["click"],
101
+ setup(__props, { emit: __emit }) {
102
+ const props = __props;
103
+ const emit = __emit;
104
+ const menu = useContextMenu();
105
+ const linkComponent = useLinkComponent();
106
+ /** 有链接时用的根组件,没有 provider 时还是 `<a>`。 */
107
+ const linkRoot = computed(() => linkComponent.value == null ? "a" : toRaw(linkComponent.value));
108
+ const size = useContextMenuSize();
109
+ const root = useTemplateRef("root");
110
+ const isDestructive = computed(() => props.variant === "destructive");
111
+ const iconColor = computed(() => isDestructive.value ? "error" : "secondary");
112
+ function handleClick(event) {
113
+ if (props.isDisabled) {
114
+ event.preventDefault();
115
+ return;
116
+ }
117
+ if (!(props.href != null && isModifiedClick(event))) emit("click", event);
118
+ if (props.hasCloseOnSelect) menu?.closeMenu();
119
+ }
120
+ function handleAuxClick(event) {
121
+ if (props.isDisabled) {
122
+ event.preventDefault();
123
+ return;
124
+ }
125
+ if (props.href == null || event.button !== 1) return;
126
+ if (props.hasCloseOnSelect) menu?.closeMenu();
127
+ }
128
+ function handlePointerMove(event) {
129
+ if (props.isDisabled || event.pointerType !== "mouse") return;
130
+ const element = root.value;
131
+ if (element == null || element === element.ownerDocument.activeElement) return;
132
+ element.focus({ preventScroll: true });
133
+ }
134
+ return (_ctx, _cache) => {
135
+ return openBlock(), createBlock(resolveDynamicComponent(__props.href != null ? linkRoot.value : "div"), {
136
+ ref_key: "root",
137
+ ref: root,
138
+ "aria-disabled": __props.isDisabled || void 0,
139
+ class: normalizeClass(["astryx-context-menu-item", { "astryx-context-menu-item--destructive": isDestructive.value }]),
140
+ "data-disabled": __props.isDisabled || void 0,
141
+ "data-size": unref(size),
142
+ "data-variant": __props.variant,
143
+ href: __props.href,
144
+ to: __props.href != null && linkRoot.value !== "a" ? __props.href : void 0,
145
+ rel: __props.rel,
146
+ role: "menuitem",
147
+ tabindex: __props.isDisabled ? void 0 : -1,
148
+ target: __props.target,
149
+ onAuxclick: handleAuxClick,
150
+ onClick: handleClick,
151
+ onPointermove: handlePointerMove
152
+ }, {
153
+ default: withCtx(() => [
154
+ __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
155
+ color: iconColor.value,
156
+ icon: __props.icon,
157
+ size: "sm"
158
+ }, null, 8, ["color", "icon"])])])) : createCommentVNode("v-if", true),
159
+ createElementVNode("span", _hoisted_2$2, [createElementVNode("span", _hoisted_3$2, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])]), __props.description != null || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_4$2, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
160
+ __props.endContent != null || _ctx.$slots.endContent ? (openBlock(), createElementBlock("span", _hoisted_5$1, [renderSlot(_ctx.$slots, "endContent", {}, () => [createTextVNode(toDisplayString(__props.endContent), 1)])])) : createCommentVNode("v-if", true)
161
+ ]),
162
+ _: 3
163
+ }, 40, [
164
+ "aria-disabled",
165
+ "class",
166
+ "data-disabled",
167
+ "data-size",
168
+ "data-variant",
169
+ "href",
170
+ "to",
171
+ "rel",
172
+ "tabindex",
173
+ "target"
174
+ ]);
175
+ };
176
+ }
177
+ });
178
+ //#endregion
60
179
  //#region src/ContextMenu/menuNav.ts
61
180
  /**
62
181
  * Roles a menu row can carry. The selectable roles sit alongside the plain
@@ -71,30 +190,6 @@ const MENU_ITEM_ROLES = /* @__PURE__ */ new Set([
71
190
  const MENU_ITEM_SELECTOR = [...MENU_ITEM_ROLES].map((role) => `[role="${role}"]:not([aria-disabled="true"])`).join(",");
72
191
  /** Selector for any menu level, used to scope a level's rows and key events. */
73
192
  const MENU_BOUNDARY_SELECTOR = "[role=\"menu\"]";
74
- /**
75
- * Whether a click carries a modifier or a non-primary button. On a row that is
76
- * a link the browser gives such a click a meaning of its own, which the row
77
- * must leave alone.
78
- */
79
- function isModifiedClick(event) {
80
- return event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || (event.button ?? 0) !== 0;
81
- }
82
- /**
83
- * Activate a row from the keyboard: a synthesized click that carries the key's
84
- * modifiers, so a modified Enter on a link row opens the way a modified click
85
- * would. `detail` stays 0, the mark of a non-pointer activation.
86
- */
87
- function activateMenuItem(row, key) {
88
- row.dispatchEvent(new MouseEvent("click", {
89
- altKey: key.altKey,
90
- bubbles: true,
91
- cancelable: true,
92
- composed: true,
93
- ctrlKey: key.ctrlKey,
94
- metaKey: key.metaKey,
95
- shiftKey: key.shiftKey
96
- }));
97
- }
98
193
  function isDisabledRow(row) {
99
194
  return row.getAttribute("aria-disabled") === "true" || row.hasAttribute("disabled");
100
195
  }
@@ -272,124 +367,6 @@ function useMenuNav(options) {
272
367
  resetTypeahead
273
368
  };
274
369
  }
275
- //#endregion
276
- //#region src/ContextMenu/ContextMenuItem.vue
277
- const _hoisted_1$2 = {
278
- key: 0,
279
- class: "astryx-context-menu-item__start"
280
- };
281
- const _hoisted_2$2 = { class: "astryx-context-menu-item__content" };
282
- const _hoisted_3$2 = {
283
- class: "astryx-context-menu-item__label",
284
- "data-menu-item-label": ""
285
- };
286
- const _hoisted_4$2 = {
287
- key: 0,
288
- class: "astryx-context-menu-item__description"
289
- };
290
- const _hoisted_5$1 = {
291
- key: 1,
292
- class: "astryx-context-menu-item__end"
293
- };
294
- const _sfc_main$3 = /*@__PURE__*/ defineComponent({
295
- name: "AstryxContextMenuItem",
296
- __name: "ContextMenuItem",
297
- props: {
298
- icon: {},
299
- label: {},
300
- description: {},
301
- endContent: {},
302
- href: {},
303
- target: {},
304
- rel: {},
305
- isDisabled: {
306
- type: Boolean,
307
- default: false
308
- },
309
- hasCloseOnSelect: {
310
- type: Boolean,
311
- default: true
312
- },
313
- variant: { default: "default" }
314
- },
315
- emits: ["click"],
316
- setup(__props, { emit: __emit }) {
317
- const props = __props;
318
- const emit = __emit;
319
- const menu = useContextMenu();
320
- const linkComponent = useLinkComponent();
321
- /** 有链接时用的根组件,没有 provider 时还是 `<a>`。 */
322
- const linkRoot = computed(() => linkComponent.value == null ? "a" : toRaw(linkComponent.value));
323
- const size = useContextMenuSize();
324
- const root = useTemplateRef("root");
325
- const isDestructive = computed(() => props.variant === "destructive");
326
- const iconColor = computed(() => isDestructive.value ? "error" : "secondary");
327
- function handleClick(event) {
328
- if (props.isDisabled) {
329
- event.preventDefault();
330
- return;
331
- }
332
- if (!(props.href != null && isModifiedClick(event))) emit("click", event);
333
- if (props.hasCloseOnSelect) menu?.closeMenu();
334
- }
335
- function handleAuxClick(event) {
336
- if (props.isDisabled) {
337
- event.preventDefault();
338
- return;
339
- }
340
- if (props.href == null || event.button !== 1) return;
341
- if (props.hasCloseOnSelect) menu?.closeMenu();
342
- }
343
- function handlePointerMove(event) {
344
- if (props.isDisabled || event.pointerType !== "mouse") return;
345
- const element = root.value;
346
- if (element == null || element === element.ownerDocument.activeElement) return;
347
- element.focus({ preventScroll: true });
348
- }
349
- return (_ctx, _cache) => {
350
- return openBlock(), createBlock(resolveDynamicComponent(__props.href != null ? linkRoot.value : "div"), {
351
- ref_key: "root",
352
- ref: root,
353
- "aria-disabled": __props.isDisabled || void 0,
354
- class: normalizeClass(["astryx-context-menu-item", { "astryx-context-menu-item--destructive": isDestructive.value }]),
355
- "data-disabled": __props.isDisabled || void 0,
356
- "data-size": unref(size),
357
- "data-variant": __props.variant,
358
- href: __props.href,
359
- to: __props.href != null && linkRoot.value !== "a" ? __props.href : void 0,
360
- rel: __props.rel,
361
- role: "menuitem",
362
- tabindex: __props.isDisabled ? void 0 : -1,
363
- target: __props.target,
364
- onAuxclick: handleAuxClick,
365
- onClick: handleClick,
366
- onPointermove: handlePointerMove
367
- }, {
368
- default: withCtx(() => [
369
- __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
370
- color: iconColor.value,
371
- icon: __props.icon,
372
- size: "sm"
373
- }, null, 8, ["color", "icon"])])])) : createCommentVNode("v-if", true),
374
- createElementVNode("span", _hoisted_2$2, [createElementVNode("span", _hoisted_3$2, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])]), __props.description != null || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_4$2, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
375
- __props.endContent != null || _ctx.$slots.endContent ? (openBlock(), createElementBlock("span", _hoisted_5$1, [renderSlot(_ctx.$slots, "endContent", {}, () => [createTextVNode(toDisplayString(__props.endContent), 1)])])) : createCommentVNode("v-if", true)
376
- ]),
377
- _: 3
378
- }, 40, [
379
- "aria-disabled",
380
- "class",
381
- "data-disabled",
382
- "data-size",
383
- "data-variant",
384
- "href",
385
- "to",
386
- "rel",
387
- "tabindex",
388
- "target"
389
- ]);
390
- };
391
- }
392
- });
393
370
  function useSubmenuHover(options) {
394
371
  const hasHover = useMediaQuery("(hover: hover)");
395
372
  let showTimer;
@@ -1,2 +1,2 @@
1
- import { Gi as DateInputFormatName, Hi as _default, Ji as DateInputProps, Ki as DateInputNativePicker, Ui as DateInputEmits, Wi as DateInputFormat, Xi as DateInputStatus, Yi as DateInputSlots, Zi as DateInputStatusType, qi as DateInputPresentation } from "../index-CuTGi_CF.js";
1
+ import { Gi as DateInputFormatName, Hi as _default, Ji as DateInputProps, Ki as DateInputNativePicker, Ui as DateInputEmits, Wi as DateInputFormat, Xi as DateInputStatus, Yi as DateInputSlots, Zi as DateInputStatusType, qi as DateInputPresentation } from "../index-DcCW_2qu.js";
2
2
  export { _default as DateInput, type DateInputEmits, type DateInputFormat, type DateInputFormatName, type DateInputNativePicker, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };
@@ -1,2 +1,2 @@
1
- import { Bi as DateRangeInputProps, Li as _default, Ri as DateRange, Vi as DateRangePreset, zi as DateRangeInputEmits } from "../index-CuTGi_CF.js";
1
+ import { Bi as DateRangeInputProps, Li as _default, Ri as DateRange, Vi as DateRangePreset, zi as DateRangeInputEmits } from "../index-DcCW_2qu.js";
2
2
  export { type DateRange, _default as DateRangeInput, type DateRangeInputEmits, type DateRangeInputProps, type DateRangePreset };
@@ -1,2 +1,2 @@
1
- import { Fi as DateTimeInputProps, Ii as DateTimeInputSize, Ni as _default, Pi as DateTimeInputEmits } from "../index-CuTGi_CF.js";
1
+ import { Fi as DateTimeInputProps, Ii as DateTimeInputSize, Ni as _default, Pi as DateTimeInputEmits } from "../index-DcCW_2qu.js";
2
2
  export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
@@ -1,2 +1,2 @@
1
- import { a as _default, c as DialogPadding, d as DialogPurpose, f as DialogVariant, i as _default$1, l as DialogPosition, n as ImperativeDialogReturn, o as DialogBlockPosition, r as useImperativeDialog, s as DialogHeaderProps, t as ImperativeDialogOptions, u as DialogProps } from "../index-DZKv1WNB.js";
1
+ import { a as _default, c as DialogPadding, d as DialogPurpose, f as DialogVariant, i as _default$1, l as DialogPosition, n as ImperativeDialogReturn, o as DialogBlockPosition, r as useImperativeDialog, s as DialogHeaderProps, t as ImperativeDialogOptions, u as DialogProps } from "../index-Dsab_-sG.js";
2
2
  export { _default as Dialog, type DialogBlockPosition, _default$1 as DialogHeader, type DialogHeaderProps, type DialogPadding, type DialogPosition, type DialogProps, type DialogPurpose, type DialogVariant, type ImperativeDialogOptions, type ImperativeDialogReturn, useImperativeDialog };
@@ -1,2 +1,2 @@
1
- import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-C8wfe0Mr.js";
1
+ import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-D05JGsT3.js";
2
2
  export { _default as Divider, type DividerOrientation, type DividerProps, type DividerVariant };
@@ -1,2 +1,2 @@
1
- import { Ai as DrawerPlacement, Di as DrawerHeaderEmits, Ei as DrawerEmits, Mi as DrawerSlots, Oi as DrawerHeaderProps, Ti as _default, ji as DrawerProps, ki as DrawerHeaderSlots, wi as _default$1 } from "../index-CuTGi_CF.js";
1
+ import { Ai as DrawerPlacement, Di as DrawerHeaderEmits, Ei as DrawerEmits, Mi as DrawerSlots, Oi as DrawerHeaderProps, Ti as _default, ji as DrawerProps, ki as DrawerHeaderSlots, wi as _default$1 } from "../index-DcCW_2qu.js";
2
2
  export { _default as Drawer, type DrawerEmits, _default$1 as DrawerHeader, type DrawerHeaderEmits, type DrawerHeaderProps, type DrawerHeaderSlots, type DrawerPlacement, type DrawerProps, type DrawerSlots };
@@ -1,4 +1,4 @@
1
1
  import { a as _sfc_main$1, c as useDropdownMenuRadioGroup, i as _sfc_main$5, r as _sfc_main$6, s as useDropdownMenuContext } from "../useMenuDrillIn-uQtOSny6.js";
2
- import { c as _sfc_main$2, i as _sfc_main$4, s as _sfc_main$3, t as _sfc_main } from "../DropdownMenu-B758ASzK.js";
3
- import { t as _sfc_main$7 } from "../DropdownMenu-D_KdcZCL.js";
2
+ import { a as _sfc_main$4, o as _sfc_main$3, s as _sfc_main$2, t as _sfc_main } from "../DropdownMenu-B9eUWp_X.js";
3
+ import { t as _sfc_main$7 } from "../DropdownMenu-DJK_xIUd.js";
4
4
  export { _sfc_main as DropdownMenu, _sfc_main$1 as DropdownMenuCheckboxItem, _sfc_main$2 as DropdownMenuDivider, _sfc_main$3 as DropdownMenuGroup, _sfc_main$4 as DropdownMenuItem, _sfc_main$5 as DropdownMenuRadioGroup, _sfc_main$6 as DropdownMenuRadioItem, _sfc_main$7 as DropdownMenuSubMenu, useDropdownMenuContext, useDropdownMenuRadioGroup };
@@ -10,12 +10,13 @@ import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
10
10
  import { r as getFocusables } from "./focus-l8jVTcqd.js";
11
11
  import { t as useMenuPress } from "./useMenuPress-BLPwY_m1.js";
12
12
  import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
13
- import { t as useTypeahead } from "./useTypeahead-DXnNlISe.js";
13
+ import { t as useTypeahead } from "./useTypeahead-DSMObTtg.js";
14
14
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
15
15
  import { t as _sfc_main$10 } from "./Item-Cfv4ALls.js";
16
16
  import { a as _sfc_main$12, i as _sfc_main$13, n as useDropdownMenuMessages, o as dropdownMenuContextKey, r as _sfc_main$11, s as useDropdownMenuContext, t as useMenuDrillIn } from "./useMenuDrillIn-uQtOSny6.js";
17
17
  import { n as clampInlineSize, r as isIntrinsicInlineSize, t as LAYER_MAX_INLINE_SIZE } from "./inlineSize-BNe8wggI.js";
18
18
  import { t as _sfc_main$14 } from "./Divider-mOZ6vIQw.js";
19
+ import { n as isModifiedClick, t as activateMenuItem } from "./menuActivation-BqiaK6ot.js";
19
20
  import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineAsyncComponent, defineComponent, guardReactiveProps, h, inject, markRaw, mergeModels, mergeProps, nextTick, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, reactive, ref, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useAttrs, useId, useModel, useSlots, vShow, watch, withCtx, withDirectives } from "vue";
20
21
  import "../styles/dropdown-menu.css";
21
22
  //#region src/composables/internal/useFocusReturnVisibility.ts
@@ -114,43 +115,6 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
114
115
  }
115
116
  });
116
117
  //#endregion
117
- //#region src/DropdownMenu/menuItemRoles.ts
118
- /**
119
- * Rows a menu's roving focus, typeahead, and keyboard activation all agree on.
120
- */
121
- const MENU_ITEM_ROLES = /* @__PURE__ */ new Set([
122
- "menuitem",
123
- "menuitemradio",
124
- "menuitemcheckbox"
125
- ]);
126
- /** Rows the arrow keys may land on: enabled menu items, in DOM order. */
127
- const MENU_ITEM_SELECTOR = [...MENU_ITEM_ROLES].map((role) => `[role="${role}"]:not([aria-disabled="true"])`).join(",");
128
- /** Scopes item collection and key handling to one menu level. */
129
- const MENU_BOUNDARY_SELECTOR = "[role=\"menu\"]";
130
- /**
131
- * Whether a click carries a modifier or a non-primary button: on a row that is
132
- * a link the browser gives it a meaning of its own, which the row leaves alone.
133
- */
134
- function isModifiedClick(event) {
135
- return event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || event.button !== 0;
136
- }
137
- /**
138
- * Activate a row from the keyboard: a synthesized click that carries the key's
139
- * modifiers, so a ⌘-Enter on a link row opens it the way a ⌘-click would.
140
- * `detail` stays 0, the mark of a non-pointer activation.
141
- */
142
- function activateMenuItem(row, key) {
143
- row.dispatchEvent(new MouseEvent("click", {
144
- altKey: key.altKey,
145
- bubbles: true,
146
- cancelable: true,
147
- composed: true,
148
- ctrlKey: key.ctrlKey,
149
- metaKey: key.metaKey,
150
- shiftKey: key.shiftKey
151
- }));
152
- }
153
- //#endregion
154
118
  //#region src/DropdownMenu/DropdownMenuItem.vue
155
119
  const _hoisted_1$2 = {
156
120
  key: 0,
@@ -603,6 +567,25 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
603
567
  }
604
568
  });
605
569
  //#endregion
570
+ //#region src/DropdownMenu/menuItemRoles.ts
571
+ /**
572
+ * Rows a menu's roving focus, typeahead, and keyboard activation all agree on.
573
+ */
574
+ const MENU_ITEM_ROLES = /* @__PURE__ */ new Set([
575
+ "menuitem",
576
+ "menuitemradio",
577
+ "menuitemcheckbox"
578
+ ]);
579
+ /** Rows the arrow keys may land on: enabled menu items, in DOM order. */
580
+ const MENU_ITEM_SELECTOR = [...MENU_ITEM_ROLES].map((role) => `[role="${role}"]:not([aria-disabled="true"])`).join(",");
581
+ /** Scopes item collection and key handling to one menu level. */
582
+ const MENU_BOUNDARY_SELECTOR = "[role=\"menu\"]";
583
+ /** Keyboard-activate the focused element when it is a menu row. */
584
+ function activateFocusedMenuItem(key) {
585
+ const focused = typeof document !== "undefined" ? document.activeElement : null;
586
+ if (focused instanceof HTMLElement && MENU_ITEM_ROLES.has(focused.getAttribute("role") ?? "")) activateMenuItem(focused, key);
587
+ }
588
+ //#endregion
606
589
  //#region src/DropdownMenu/useMenuFocus.ts
607
590
  function isDisabled(el) {
608
591
  return el.getAttribute("aria-disabled") === "true" || el.hasAttribute("disabled");
@@ -1121,8 +1104,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1121
1104
  if (event.key === "Enter" || event.key === " ") {
1122
1105
  event.preventDefault();
1123
1106
  if (event.repeat) return;
1124
- const focused = typeof document !== "undefined" ? document.activeElement : null;
1125
- if (focused instanceof HTMLElement && MENU_ITEM_ROLES.has(focused.getAttribute("role") ?? "")) activateMenuItem(focused, event);
1107
+ activateFocusedMenuItem(event);
1126
1108
  return;
1127
1109
  }
1128
1110
  if (event.key === "Tab") {
@@ -1283,4 +1265,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1283
1265
  }
1284
1266
  });
1285
1267
  //#endregion
1286
- export { MENU_ITEM_ROLES as a, _sfc_main$5 as c, _sfc_main$2 as i, _sfc_main$6 as l, useMenuRegions as n, activateMenuItem as o, useMenuFocus as r, _sfc_main$3 as s, _sfc_main as t };
1268
+ export { _sfc_main$2 as a, _sfc_main$6 as c, activateFocusedMenuItem as i, useMenuRegions as n, _sfc_main$3 as o, useMenuFocus as r, _sfc_main$5 as s, _sfc_main as t };