@astryx-vue/core 0.2.0 → 0.2.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 (225) hide show
  1. package/dist/AppShell/index.js +1 -1
  2. package/dist/{AppShell-EiGyPFbA.js → AppShell-Cb41gIAj.js} +2 -2
  3. package/dist/Avatar/index.d.ts +1 -1
  4. package/dist/Avatar/index.js +1 -1
  5. package/dist/Avatar-jmHInHwj.js +244 -0
  6. package/dist/AvatarGroup/index.d.ts +1 -1
  7. package/dist/AvatarGroup/index.js +1 -1
  8. package/dist/{AvatarGroup-CZcgAMjM.js → AvatarGroup-QyzSrpYA.js} +8 -7
  9. package/dist/Badge/index.d.ts +2 -1
  10. package/dist/Badge/index.js +1 -1
  11. package/dist/Badge-CjDQPF5g.js +30 -0
  12. package/dist/Banner/index.d.ts +1 -1
  13. package/dist/Breadcrumbs/index.d.ts +2 -2
  14. package/dist/Breadcrumbs/index.js +1 -1
  15. package/dist/{Breadcrumbs-C3YZFQ9w.js → Breadcrumbs-CTQ7fjDn.js} +45 -11
  16. package/dist/ButtonGroup/index.d.ts +1 -1
  17. package/dist/Calendar/index.d.ts +2 -2
  18. package/dist/Calendar/index.js +1 -1
  19. package/dist/Calendar-BFaI5AMv.js +352 -0
  20. package/dist/Card/index.d.ts +1 -1
  21. package/dist/Carousel/index.js +1 -1
  22. package/dist/{Carousel-BTtHkKea.js → Carousel-X0cuQkvg.js} +2 -2
  23. package/dist/Chat/index.d.ts +2 -2
  24. package/dist/Chat/index.js +2 -2
  25. package/dist/Chat-M0tiGrNT.js +3148 -0
  26. package/dist/CheckboxInput/index.d.ts +1 -1
  27. package/dist/CheckboxList/index.d.ts +1 -1
  28. package/dist/CheckboxList/index.js +1 -1
  29. package/dist/Citation/index.js +1 -1
  30. package/dist/{Citation-DijdbUUu.js → Citation-C1veUk5p.js} +2 -2
  31. package/dist/ClickableCard/index.d.ts +1 -1
  32. package/dist/Code/index.js +1 -1
  33. package/dist/{CodeBlock-CxTb6j9_.js → CodeBlock-DesTJAkm.js} +1 -1
  34. package/dist/Collapsible/index.js +1 -1
  35. package/dist/{Collapsible-9MC08X39.js → Collapsible-BestK35V.js} +1 -1
  36. package/dist/CommandPalette/index.js +1 -1
  37. package/dist/{CommandPalette-BD2iODF5.js → CommandPalette-BArt97V8.js} +1 -1
  38. package/dist/ComplexSelector/index.d.ts +1 -1
  39. package/dist/ComplexSelector/index.js +1 -1
  40. package/dist/{ComplexSelector-D9iXd5cH.js → ComplexSelector-CAoig1RK.js} +2 -2
  41. package/dist/ContextMenu/index.d.ts +2 -2
  42. package/dist/ContextMenu/index.js +1 -1
  43. package/dist/{ContextMenu-HS_WqYIg.js → ContextMenu-9Im6i43E.js} +101 -63
  44. package/dist/DateInput/index.d.ts +2 -2
  45. package/dist/DateInput/index.js +1 -1
  46. package/dist/DateInput-BLocxqC3.js +376 -0
  47. package/dist/DateRangeInput/index.d.ts +1 -1
  48. package/dist/DateRangeInput/index.js +1 -1
  49. package/dist/{DateRangeInput-1bhPGG2s.js → DateRangeInput-DwDy3eRo.js} +2 -2
  50. package/dist/DateTimeInput/index.d.ts +1 -1
  51. package/dist/DateTimeInput/index.js +1 -1
  52. package/dist/{DateTimeInput-SnPdgk6P.js → DateTimeInput-BYiaC9bn.js} +5 -3
  53. package/dist/DropdownMenu/index.d.ts +3 -2
  54. package/dist/DropdownMenu/index.js +3 -2
  55. package/dist/DropdownMenu-Ddfr-aEC.js +164 -0
  56. package/dist/{DropdownMenu-UJGych6v.js → DropdownMenu-Dh-WAHKb.js} +63 -16
  57. package/dist/FileInput/index.d.ts +1 -1
  58. package/dist/FileInput/index.js +1 -1
  59. package/dist/{FileInput-BQiwE-GB.js → FileInput-DLO6V12n.js} +2 -2
  60. package/dist/Icon/index.d.ts +4 -3
  61. package/dist/Icon/index.js +3 -2
  62. package/dist/Icon/plugin.d.ts +45 -0
  63. package/dist/Icon/plugin.js +177 -0
  64. package/dist/Icon-CJKjdJy-.js +198 -0
  65. package/dist/Lightbox/index.js +1 -1
  66. package/dist/{Lightbox-CshKoB0r.js → Lightbox-CdFCS_EA.js} +2 -2
  67. package/dist/Link/index.d.ts +1 -1
  68. package/dist/Link/index.js +1 -1
  69. package/dist/Link-DqdQZ37C.js +141 -0
  70. package/dist/Markdown/index.js +1 -1
  71. package/dist/{Markdown-D-Ua055V.js → Markdown-BqKloI3w.js} +3 -3
  72. package/dist/MetadataList/index.js +1 -1
  73. package/dist/{MetadataList-sYph_d8Q.js → MetadataList-CvZkmisf.js} +1 -1
  74. package/dist/MobileNav/index.js +1 -1
  75. package/dist/{MobileNavToggle-DD9D01aj.js → MobileNavToggle-Bwi0qXXM.js} +1 -1
  76. package/dist/MoreMenu/index.d.ts +1 -1
  77. package/dist/MoreMenu/index.js +1 -1
  78. package/dist/{MoreMenu-BVrK5kkk.js → MoreMenu-BwJaJrkB.js} +2 -2
  79. package/dist/MultiSelector/index.js +1 -1
  80. package/dist/{MultiSelector-DiYov9sF.js → MultiSelector-C-ETfFy_.js} +2 -2
  81. package/dist/NumberInput/index.d.ts +2 -2
  82. package/dist/NumberInput/index.js +1 -1
  83. package/dist/NumberInput-DjetVB8O.js +210 -0
  84. package/dist/Outline/index.js +1 -1
  85. package/dist/{Outline-DQfEBxlc.js → Outline-Bz9c-u5y.js} +1 -1
  86. package/dist/OverflowList/index.d.ts +1 -1
  87. package/dist/OverflowList/index.js +1 -1
  88. package/dist/{OverflowList-BU5VCntl.js → OverflowList-ED-KN9Y5.js} +1 -1
  89. package/dist/Overlay/index.d.ts +1 -1
  90. package/dist/Pagination/index.d.ts +2 -2
  91. package/dist/Pagination/index.js +1 -1
  92. package/dist/{Pagination-HdhtykeF.js → Pagination-Cb66HMEf.js} +76 -22
  93. package/dist/PowerSearch/index.d.ts +2 -0
  94. package/dist/PowerSearch/index.js +2 -0
  95. package/dist/PowerSearch-CjU8y4mi.js +2386 -0
  96. package/dist/ProgressBar/index.d.ts +1 -1
  97. package/dist/ProgressBar/index.js +1 -1
  98. package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
  99. package/dist/Radio/index.d.ts +1 -1
  100. package/dist/RadioList/index.d.ts +1 -1
  101. package/dist/Resizable/index.d.ts +1 -1
  102. package/dist/Resizable/index.js +1 -1
  103. package/dist/{Resizable-BhSMfO5B.js → Resizable-D-TBCg0Y.js} +1 -1
  104. package/dist/ScrollableArea/index.d.ts +1 -1
  105. package/dist/SelectableCard/index.d.ts +1 -1
  106. package/dist/Selector/index.d.ts +2 -2
  107. package/dist/Selector/index.js +1 -1
  108. package/dist/Selector-DE2IEFML.js +468 -0
  109. package/dist/SideNav/index.d.ts +1 -1
  110. package/dist/SideNav/index.js +1 -1
  111. package/dist/{SideNav-B-Om6Bz3.js → SideNav-DonEfiAx.js} +17 -17
  112. package/dist/Stepper/index.js +1 -1
  113. package/dist/{Stepper-BZ_8SEZt.js → Stepper-D2ZIcUNx.js} +1 -1
  114. package/dist/Switch/index.d.ts +1 -1
  115. package/dist/TabList/index.d.ts +1 -1
  116. package/dist/TabList/index.js +1 -1
  117. package/dist/{TabList-Cnc2Hs1H.js → TabList-D3F-stq-.js} +10 -3
  118. package/dist/Table/index.d.ts +3 -3
  119. package/dist/Table/index.js +2 -2
  120. package/dist/Table-CrP2Uffq.js +1982 -0
  121. package/dist/TextArea/index.d.ts +1 -1
  122. package/dist/TextArea/index.js +1 -1
  123. package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
  124. package/dist/TextInput/index.d.ts +1 -1
  125. package/dist/Thumbnail/index.js +1 -1
  126. package/dist/{Thumbnail-Dc1UpykG.js → Thumbnail-BC5JGPGZ.js} +11 -11
  127. package/dist/{TimeField-C7t9Knq9.js → TimeField-DpHFrNv0.js} +2 -2
  128. package/dist/TimeInput/index.d.ts +1 -1
  129. package/dist/TimeInput/index.js +1 -1
  130. package/dist/{TimeInput-BXxCOY98.js → TimeInput-DJLV0_4z.js} +1 -1
  131. package/dist/Timestamp/index.d.ts +1 -1
  132. package/dist/Timestamp/index.js +2 -1
  133. package/dist/{Timestamp-DlZSmgCJ.js → Timestamp-GKNjjt5g.js} +4 -121
  134. package/dist/Toast/index.d.ts +2 -2
  135. package/dist/Toast/index.js +1 -1
  136. package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
  137. package/dist/ToggleButton/index.d.ts +1 -1
  138. package/dist/Token/index.js +1 -1
  139. package/dist/{Token-wt4e80IM.js → Token-Chu_eCVs.js} +1 -1
  140. package/dist/Tokenizer/index.js +1 -1
  141. package/dist/{Tokenizer-nmTqdS9n.js → Tokenizer-DRDpvQ_l.js} +3 -3
  142. package/dist/Toolbar/index.d.ts +1 -1
  143. package/dist/TopNav/index.d.ts +1 -1
  144. package/dist/TopNav/index.js +1 -1
  145. package/dist/{TopNav-notp-mJx.js → TopNav-CEyWddtA.js} +3 -3
  146. package/dist/TreeList/index.js +1 -1
  147. package/dist/{TreeList-s1xBQ0qq.js → TreeList-COS8US8e.js} +3 -3
  148. package/dist/Typeahead/index.js +1 -1
  149. package/dist/{Typeahead-VAuiCurV.js → Typeahead-P7cCqtaQ.js} +3 -3
  150. package/dist/{useTypeaheadMenu-Ba7XpcZl.js → TypeaheadMenu-CGvo0Tud.js} +107 -107
  151. package/dist/composables/index.d.ts +3 -3
  152. package/dist/{context-Dbo22sck.js → context-CiKncNSH.js} +184 -6
  153. package/dist/formatInstant-BDWUIxS7.js +119 -0
  154. package/dist/{index-SMh42NI8.d.ts → index-B1TG2GPS.d.ts} +2 -2
  155. package/dist/{index-DRmb-oUa.d.ts → index-B9WzWqzk.d.ts} +3 -29
  156. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  157. package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
  158. package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
  159. package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
  160. package/dist/index-CJlBAXwj.d.ts +100 -0
  161. package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
  162. package/dist/{index-DXSs3rwa.d.ts → index-CngORuiq.d.ts} +137 -2
  163. package/dist/index-Cs5pcwY3.d.ts +416 -0
  164. package/dist/{index-NzLDrOkk.d.ts → index-D4I_obqR.d.ts} +14 -1
  165. package/dist/{index-BtPZKO20.d.ts → index-DGXviOlp.d.ts} +49 -7
  166. package/dist/{index-CTolyeii.d.ts → index-DN7MXPHM.d.ts} +15 -1
  167. package/dist/{index-C6iJwTL0.d.ts → index-DNRBbwp_.d.ts} +165 -55
  168. package/dist/{index-C59PdX9L.d.ts → index-DWH_HzXi.d.ts} +1 -1
  169. package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
  170. package/dist/{index-Bn_odHQ9.d.ts → index-Dg3ZmwEg.d.ts} +12 -1
  171. package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
  172. package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
  173. package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
  174. package/dist/index-kVhSuA9t.d.ts +902 -0
  175. package/dist/{index-1uRMrk63.d.ts → index-nCEmW6wa.d.ts} +1 -1
  176. package/dist/{index-DoFCm2Q2.d.ts → index-qiZtHnGK.d.ts} +26 -0
  177. package/dist/{index-Bainr_3n.d.ts → index-u5ozu0G7.d.ts} +2 -2
  178. package/dist/index.d.ts +79 -76
  179. package/dist/index.js +111 -100
  180. package/dist/locale/index.d.ts +1 -1
  181. package/dist/locale/index.js +1 -1
  182. package/dist/power-search-DrDfcoL1.d.ts +68 -0
  183. package/dist/registry-B1ObuP--.d.ts +45 -0
  184. package/dist/registry-C7OZb0PJ.js +135 -0
  185. package/dist/{types-JktRxujg.d.ts → types-Cp4liug-.d.ts} +66 -3
  186. package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
  187. package/dist/types-DIYwbkpe.d.ts +33 -0
  188. package/dist/{types-DZoEm_DG.d.ts → types-pnljWjEE.d.ts} +23 -6
  189. package/dist/{useResizable-CeESZS1v.d.ts → useResizable-CUoNPmUw.d.ts} +1 -1
  190. package/package.json +10 -1
  191. package/styles/avatar.css +14 -0
  192. package/styles/badge.css +8 -0
  193. package/styles/breadcrumbs.css +6 -1
  194. package/styles/button.css +13 -0
  195. package/styles/calendar.css +16 -0
  196. package/styles/card.css +2 -0
  197. package/styles/chat.css +474 -3
  198. package/styles/dropdown-menu.css +11 -0
  199. package/styles/icon.css +58 -8
  200. package/styles/link.css +5 -0
  201. package/styles/number-input.css +22 -0
  202. package/styles/pagination.css +45 -1
  203. package/styles/power-search.css +303 -0
  204. package/styles/progress-bar.css +4 -0
  205. package/styles/selector.css +58 -0
  206. package/styles/tab-list.css +15 -0
  207. package/styles/table.css +304 -1
  208. package/styles/text-area.css +17 -0
  209. package/styles/text-input.css +5 -0
  210. package/styles/toast.css +7 -0
  211. package/styles/toolbar.css +11 -0
  212. package/styles.css +1 -0
  213. package/dist/Avatar-5s3HSrtN.js +0 -136
  214. package/dist/Badge-Ba0EwsTj.js +0 -19
  215. package/dist/Calendar-BG7wEsro.js +0 -277
  216. package/dist/Chat-DjNxw5gv.js +0 -1051
  217. package/dist/DateInput-DE2TN1Rq.js +0 -250
  218. package/dist/Icon-Dfr4k6-S.js +0 -86
  219. package/dist/Link-CprjOuTI.js +0 -92
  220. package/dist/NumberInput-CTYiQxHq.js +0 -147
  221. package/dist/Selector-Da-2BO3q.js +0 -325
  222. package/dist/Table-D-LhAy_J.js +0 -967
  223. package/dist/index-DJo-BmXZ.d.ts +0 -431
  224. package/dist/index-DtjAdYEc.d.ts +0 -68
  225. package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
@@ -1,431 +0,0 @@
1
- import { n as SpacingStep } from "./types-D7QNSqoN.js";
2
- import { ComputedRef, InjectionKey, Ref, VNode } from "vue";
3
- //#region src/Chat/types.d.ts
4
- /** Who sent a message row. `system` is centered and ignores avatar, name, and metadata. */
5
- type ChatMessageSender = 'user' | 'assistant' | 'system';
6
- /** Spacing and width preset shared by the layout, the list, and each message. */
7
- type ChatDensity = 'compact' | 'balanced' | 'spacious';
8
- type ChatMessageBubbleVariant = 'filled' | 'ghost';
9
- type ChatMessageBubbleGroup = 'first' | 'middle' | 'last';
10
- type ChatMessageStatus = 'sending' | 'sent' | 'delivered' | 'read' | 'error';
11
- type ChatSystemMessageVariant = 'default' | 'divider';
12
- type ChatToolCallStatus = 'pending' | 'running' | 'complete' | 'error';
13
- /** One tool invocation. The shape matches what an LLM response already returns. */
14
- interface ChatToolCallItem {
15
- /** Tool or function name. */
16
- name: string;
17
- /** Current execution status. @default 'complete' */
18
- status?: ChatToolCallStatus;
19
- /** What the tool acted on, such as a file name or a query. */
20
- target?: string;
21
- /** How long the call took, shown once it completes. For example `1.2s`. */
22
- duration?: string;
23
- /** Sandbox or worker name, shown as a neutral badge. */
24
- node?: string;
25
- /** Lines or characters added. Rendered as `+12`. */
26
- additions?: number;
27
- /** Lines or characters removed. Rendered as `-3`. */
28
- deletions?: number;
29
- /** Extra plain text after the label. */
30
- stats?: string;
31
- /**
32
- * Error detail when `status` is `error`. Spoken to assistive tech and shown
33
- * as the status icon's tooltip.
34
- */
35
- errorMessage?: string;
36
- /** Stable identity. Derived from the other fields when omitted. */
37
- key?: string;
38
- /** Plain-text detail revealed when the row is expanded. */
39
- detail?: string;
40
- }
41
- interface ChatLayoutProps {
42
- /**
43
- * Spacing, bubble width, and the frosted dock.
44
- * @default 'balanced'
45
- */
46
- density?: ChatDensity;
47
- /**
48
- * Element that should scroll instead of the layout root.
49
- * Leave it unset and the layout itself scrolls.
50
- */
51
- scrollRef?: HTMLElement | null;
52
- /**
53
- * Renders the built-in scroll-to-bottom button.
54
- * Set this to `false` when the `scrollButton` slot should be the only control,
55
- * or when the button should be absent.
56
- * @default true
57
- */
58
- showScrollButton?: boolean;
59
- }
60
- interface ChatLayoutSlots {
61
- /** Transcript. Usually one `ChatMessageList`. */
62
- default?: () => VNode[];
63
- /** Pinned to the bottom of the layout, above the frosted scrim. */
64
- composer?: () => VNode[];
65
- /** Shown when the default slot is omitted. */
66
- empty?: () => VNode[];
67
- /**
68
- * Replaces the built-in scroll button.
69
- * Receives the current visibility, the new-message label, and a function
70
- * that dismisses that label and scrolls to the bottom.
71
- */
72
- scrollButton?: (props: ChatLayoutScrollSlotProps) => VNode[];
73
- }
74
- interface ChatLayoutScrollSlotProps {
75
- isVisible: boolean;
76
- label?: string;
77
- scrollToBottom: () => void;
78
- }
79
- interface ChatLayoutScrollButtonProps {
80
- /** Whether the button is shown. A hidden button stays mounted so it can fade. */
81
- isVisible: boolean;
82
- /** Expands the pill. Omit it for the icon-only down arrow. */
83
- label?: string;
84
- }
85
- interface ChatLayoutScrollButtonEmits {
86
- click: [];
87
- }
88
- interface ChatMessageListProps {
89
- /**
90
- * Visual density passed down to messages that do not set their own.
91
- * @default 'balanced'
92
- */
93
- density?: ChatDensity;
94
- /**
95
- * Gap between top-level rows, on the spacing scale.
96
- * Overrides the density gap without changing padding.
97
- */
98
- gap?: SpacingStep;
99
- /**
100
- * Loads older messages when the top of the list scrolls into view.
101
- * A spinner is shown at the top while the promise is pending.
102
- */
103
- scrollToTopAction?: () => Promise<void>;
104
- /**
105
- * Marks the log busy while an assistant message is still streaming, so a
106
- * screen reader waits and announces the finished message once.
107
- * @default false
108
- */
109
- isStreaming?: boolean;
110
- /** Accessible name of the log. Defaults to the localized "Messages". */
111
- label?: string;
112
- }
113
- interface ChatMessageListSlots {
114
- /** Message rows, system lines, and unread dividers. */
115
- default?: () => VNode[];
116
- /** Shown when the default slot is omitted. */
117
- empty?: () => VNode[];
118
- }
119
- interface ChatMessageProps {
120
- sender: ChatMessageSender;
121
- /**
122
- * Plain sender name above the body.
123
- * Prefer the `name` slot, or `ChatMessageBubble`'s `name`, when the first
124
- * child is a bubble — a bubble name lines up with the bubble padding.
125
- */
126
- name?: string;
127
- /**
128
- * Density for this row. Falls back to the surrounding list, then `balanced`.
129
- */
130
- density?: ChatDensity;
131
- }
132
- interface ChatMessageSlots {
133
- /** Body. Bubbles, reasoning, tool calls, or plain text. */
134
- default?: () => VNode[];
135
- /** Avatar. Ignored when `sender` is `system`. */
136
- avatar?: () => VNode[];
137
- /** Sender name. Replaces the `name` prop. */
138
- name?: () => VNode[];
139
- /** Metadata under the body when the last child is not a bubble. */
140
- metadata?: () => VNode[];
141
- }
142
- interface ChatMessageBubbleProps {
143
- /**
144
- * `filled` paints the sender surface. `ghost` keeps the padding and drops
145
- * the background, so mixed content still lines up. A bubble whose only
146
- * child is a code block, or an element with class `astryx-chat-card`,
147
- * drops that padding and background so the card lines up with the bubble.
148
- * @default 'filled'
149
- */
150
- variant?: ChatMessageBubbleVariant;
151
- /** Sender name aligned to the bubble's inline padding. */
152
- name?: string;
153
- /**
154
- * Which corner tightens when several bubbles are stacked.
155
- * Leave it unset for a standalone bubble.
156
- */
157
- group?: ChatMessageBubbleGroup;
158
- /**
159
- * Overrides the default cap (`max(80%, 280px)`).
160
- * Pass `100%` when in-bubble content should span the message column.
161
- */
162
- width?: string;
163
- }
164
- interface ChatMessageBubbleSlots {
165
- /** Bubble body. Plain text in this suite; markdown belongs to the caller. */
166
- default?: () => VNode[];
167
- /** Replaces the `name` prop. */
168
- name?: () => VNode[];
169
- /** Metadata aligned to the bubble padding. Usually `ChatMessageMetadata`. */
170
- metadata?: () => VNode[];
171
- }
172
- interface ChatMessageMetadataProps {
173
- /** Time or other short text. */
174
- timestamp?: string;
175
- /** Secondary text, such as a model name. */
176
- footer?: string;
177
- /** Delivery state. Renders nothing when timestamp, footer, and status are all absent. */
178
- status?: ChatMessageStatus;
179
- }
180
- interface ChatMessageMetadataSlots {
181
- /** Replaces the `timestamp` prop. */
182
- timestamp?: () => VNode[];
183
- /** Replaces the `footer` prop. */
184
- footer?: () => VNode[];
185
- }
186
- interface ChatSystemMessageProps {
187
- /**
188
- * `default` is a centered line. `divider` draws a rule on each side.
189
- * @default 'default'
190
- */
191
- variant?: ChatSystemMessageVariant;
192
- }
193
- interface ChatSystemMessageSlots {
194
- default?: () => VNode[];
195
- /** Icon before the text. Ignored for the divider variant. */
196
- icon?: () => VNode[];
197
- }
198
- interface ChatToolCallsProps {
199
- /** Tool calls from one assistant turn. An empty array renders nothing. */
200
- calls: ChatToolCallItem[];
201
- /** Summary shown while a group is expanded. Defaults to a localized count. */
202
- label?: string;
203
- /** Controlled expanded state, bound with `v-model:is-expanded`. */
204
- isExpanded?: boolean;
205
- /**
206
- * Expanded state used while `isExpanded` is unbound.
207
- * @default false
208
- */
209
- defaultIsExpanded?: boolean;
210
- }
211
- interface ChatToolCallsEmits {
212
- /** The expanded state the header is asking for. */
213
- expandedChange: [isExpanded: boolean];
214
- }
215
- interface ChatToolCallsSlots {
216
- /** Rich detail for one call. Falls back to `call.detail` when omitted. */
217
- detail?: (props: {
218
- call: ChatToolCallItem;
219
- }) => VNode[];
220
- }
221
- interface ChatReasoningProps {
222
- /** Header label. Defaults to the localized "Thinking". */
223
- label?: string;
224
- /** Duration shown after the label once streaming has finished, such as `12s`. */
225
- duration?: string;
226
- /** Paints a shimmer on the label and hides the one-line preview. @default false */
227
- isStreaming?: boolean;
228
- /** Controlled expanded state, bound with `v-model:is-expanded`. */
229
- isExpanded?: boolean;
230
- /** Expanded state used while `isExpanded` is unbound. @default false */
231
- defaultIsExpanded?: boolean;
232
- }
233
- interface ChatReasoningEmits {
234
- expandedChange: [isExpanded: boolean];
235
- }
236
- interface ChatReasoningSlots {
237
- /** Full reasoning. A plain string is also reused as the collapsed preview. */
238
- default?: () => VNode[];
239
- }
240
- interface ChatTypingIndicatorProps {
241
- /**
242
- * People currently typing.
243
- * One name, two names, and three or more each get their own sentence.
244
- * An empty list renders the dots only.
245
- */
246
- names?: string[];
247
- }
248
- interface ChatUnreadDividerProps {
249
- /** Short label at the end of the rule. Defaults to the localized "New". */
250
- label?: string;
251
- }
252
- //#endregion
253
- //#region src/Chat/ChatLayout.vue.d.ts
254
- type __VLS_Slots$7 = ChatLayoutSlots;
255
- declare function scrollToBottom(): void;
256
- declare const __VLS_base$7: import("vue").DefineComponent<ChatLayoutProps, {
257
- element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
258
- scrollToBottom: typeof scrollToBottom;
259
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatLayoutProps> & Readonly<{}>, {
260
- density: ChatDensity;
261
- showScrollButton: boolean;
262
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
263
- declare const __VLS_export$10: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
264
- declare const _default$10: typeof __VLS_export$10;
265
- type __VLS_WithSlots$7<T, S> = T & {
266
- new (): {
267
- $slots: S;
268
- };
269
- };
270
- //#endregion
271
- //#region src/Chat/ChatLayoutScrollButton.vue.d.ts
272
- declare const __VLS_export$9: import("vue").DefineComponent<ChatLayoutScrollButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
273
- click: () => any;
274
- }, string, import("vue").PublicProps, Readonly<ChatLayoutScrollButtonProps> & Readonly<{
275
- onClick?: (() => any) | undefined;
276
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
277
- declare const _default$9: typeof __VLS_export$9;
278
- //#endregion
279
- //#region src/Chat/ChatMessage.vue.d.ts
280
- type __VLS_Slots$6 = ChatMessageSlots;
281
- declare const __VLS_base$6: import("vue").DefineComponent<ChatMessageProps, {
282
- element: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
283
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatMessageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
284
- declare const __VLS_export$8: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
285
- declare const _default$8: typeof __VLS_export$8;
286
- type __VLS_WithSlots$6<T, S> = T & {
287
- new (): {
288
- $slots: S;
289
- };
290
- };
291
- //#endregion
292
- //#region src/Chat/ChatMessageBubble.vue.d.ts
293
- type __VLS_Slots$5 = ChatMessageBubbleSlots;
294
- declare const __VLS_base$5: import("vue").DefineComponent<ChatMessageBubbleProps, {
295
- element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
296
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatMessageBubbleProps> & Readonly<{}>, {
297
- variant: ChatMessageBubbleVariant;
298
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
299
- declare const __VLS_export$7: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
300
- declare const _default$7: typeof __VLS_export$7;
301
- type __VLS_WithSlots$5<T, S> = T & {
302
- new (): {
303
- $slots: S;
304
- };
305
- };
306
- //#endregion
307
- //#region src/Chat/ChatMessageList.vue.d.ts
308
- type __VLS_Slots$4 = ChatMessageListSlots;
309
- declare const __VLS_base$4: import("vue").DefineComponent<ChatMessageListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatMessageListProps> & Readonly<{}>, {
310
- density: ChatDensity;
311
- isStreaming: boolean;
312
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
313
- declare const __VLS_export$6: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
314
- declare const _default$6: typeof __VLS_export$6;
315
- type __VLS_WithSlots$4<T, S> = T & {
316
- new (): {
317
- $slots: S;
318
- };
319
- };
320
- //#endregion
321
- //#region src/Chat/ChatMessageMetadata.vue.d.ts
322
- type __VLS_Slots$3 = ChatMessageMetadataSlots;
323
- declare const __VLS_base$3: import("vue").DefineComponent<ChatMessageMetadataProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatMessageMetadataProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
324
- declare const __VLS_export$5: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
325
- declare const _default$5: typeof __VLS_export$5;
326
- type __VLS_WithSlots$3<T, S> = T & {
327
- new (): {
328
- $slots: S;
329
- };
330
- };
331
- //#endregion
332
- //#region src/Chat/ChatReasoning.vue.d.ts
333
- type __VLS_Props$1 = Omit<ChatReasoningProps, 'isExpanded'>;
334
- type __VLS_Slots$2 = ChatReasoningSlots;
335
- type __VLS_ModelProps$1 = {
336
- 'isExpanded'?: boolean | undefined;
337
- };
338
- type __VLS_PublicProps$1 = __VLS_Props$1 & __VLS_ModelProps$1;
339
- declare const __VLS_base$2: import("vue").DefineComponent<__VLS_PublicProps$1, {
340
- element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
341
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
342
- "update:isExpanded": (value: boolean | undefined) => any;
343
- expandedChange: (isExpanded: boolean) => any;
344
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps$1> & Readonly<{
345
- "onUpdate:isExpanded"?: ((value: boolean | undefined) => any) | undefined;
346
- onExpandedChange?: ((isExpanded: boolean) => any) | undefined;
347
- }>, {
348
- isStreaming: boolean;
349
- defaultIsExpanded: boolean;
350
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
351
- declare const __VLS_export$4: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
352
- declare const _default$4: typeof __VLS_export$4;
353
- type __VLS_WithSlots$2<T, S> = T & {
354
- new (): {
355
- $slots: S;
356
- };
357
- };
358
- //#endregion
359
- //#region src/Chat/ChatSystemMessage.vue.d.ts
360
- type __VLS_Slots$1 = ChatSystemMessageSlots;
361
- declare const __VLS_base$1: import("vue").DefineComponent<ChatSystemMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatSystemMessageProps> & Readonly<{}>, {
362
- variant: ChatSystemMessageVariant;
363
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
364
- declare const __VLS_export$3: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
365
- declare const _default$3: typeof __VLS_export$3;
366
- type __VLS_WithSlots$1<T, S> = T & {
367
- new (): {
368
- $slots: S;
369
- };
370
- };
371
- //#endregion
372
- //#region src/Chat/ChatToolCalls.vue.d.ts
373
- type __VLS_Props = Omit<ChatToolCallsProps, 'isExpanded'>;
374
- type __VLS_Slots = ChatToolCallsSlots;
375
- type __VLS_ModelProps = {
376
- 'isExpanded'?: boolean | undefined;
377
- };
378
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
379
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
380
- element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
381
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
382
- "update:isExpanded": (value: boolean | undefined) => any;
383
- expandedChange: (isExpanded: boolean) => any;
384
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
385
- "onUpdate:isExpanded"?: ((value: boolean | undefined) => any) | undefined;
386
- onExpandedChange?: ((isExpanded: boolean) => any) | undefined;
387
- }>, {
388
- defaultIsExpanded: boolean;
389
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
390
- declare const __VLS_export$2: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
391
- declare const _default$2: typeof __VLS_export$2;
392
- type __VLS_WithSlots<T, S> = T & {
393
- new (): {
394
- $slots: S;
395
- };
396
- };
397
- //#endregion
398
- //#region src/Chat/ChatTypingIndicator.vue.d.ts
399
- declare const __VLS_export$1: import("vue").DefineComponent<ChatTypingIndicatorProps, {
400
- element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
401
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatTypingIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
402
- declare const _default$1: typeof __VLS_export$1;
403
- //#endregion
404
- //#region src/Chat/ChatUnreadDivider.vue.d.ts
405
- declare const __VLS_export: import("vue").DefineComponent<ChatUnreadDividerProps, {
406
- element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
407
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatUnreadDividerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
408
- declare const _default: typeof __VLS_export;
409
- //#endregion
410
- //#region src/Chat/context.d.ts
411
- /** What a `ChatMessage` tells the bubble and metadata inside it. */
412
- interface ChatMessageContextValue {
413
- sender: ComputedRef<ChatMessageSender>;
414
- density: ComputedRef<ChatDensity>;
415
- }
416
- declare function useChatMessageContext(): ChatMessageContextValue | undefined;
417
- /** What a `ChatMessageList` tells the messages inside it. */
418
- interface ChatListContextValue {
419
- density: ComputedRef<ChatDensity>;
420
- }
421
- declare function useChatListContext(): ChatListContextValue | undefined;
422
- /** What a `ChatLayout` tells the message list so scroll and resize stay in sync. */
423
- interface ChatLayoutContextValue {
424
- /** The element that actually scrolls. */
425
- scrollContainer: Ref<HTMLElement | null>;
426
- /** Attach to the element whose height should be observed. */
427
- contentRef: (el: HTMLElement | null) => void;
428
- }
429
- declare function useChatLayoutContext(): ChatLayoutContextValue | undefined;
430
- //#endregion
431
- export { ChatMessageSender as A, ChatToolCallStatus as B, ChatMessageBubbleSlots as C, ChatMessageMetadataProps as D, ChatMessageListSlots as E, ChatReasoningSlots as F, ChatUnreadDividerProps as G, ChatToolCallsProps as H, ChatSystemMessageProps as I, ChatSystemMessageSlots as L, ChatMessageStatus as M, ChatReasoningEmits as N, ChatMessageMetadataSlots as O, ChatReasoningProps as P, ChatSystemMessageVariant as R, ChatMessageBubbleProps as S, ChatMessageListProps as T, ChatToolCallsSlots as U, ChatToolCallsEmits as V, ChatTypingIndicatorProps as W, ChatLayoutScrollButtonEmits as _, _default$1 as a, ChatLayoutSlots as b, _default$4 as c, _default$7 as d, _default$8 as f, ChatLayoutProps as g, ChatDensity as h, _default as i, ChatMessageSlots as j, ChatMessageProps as k, _default$5 as l, _default$10 as m, useChatListContext as n, _default$2 as o, _default$9 as p, useChatMessageContext as r, _default$3 as s, useChatLayoutContext as t, _default$6 as u, ChatLayoutScrollButtonProps as v, ChatMessageBubbleVariant as w, ChatMessageBubbleGroup as x, ChatLayoutScrollSlotProps as y, ChatToolCallItem as z };
@@ -1,68 +0,0 @@
1
- //#region src/DateInput/types.d.ts
2
- interface DateInputProps {
3
- /** 输入框 id。不传时组件自己生成。 */
4
- id?: string;
5
- /** 额外的无障碍描述,接在字段说明后面。 */
6
- describedBy?: string;
7
- /** 当前选中的日期 */
8
- modelValue?: Date | null;
9
- /** 占位符文本 */
10
- placeholder?: string;
11
- /** 最小可选日期 */
12
- min?: Date;
13
- /** 最大可选日期 */
14
- max?: Date;
15
- /** 禁用的日期判断函数 */
16
- isDateDisabled?: (date: Date) => boolean;
17
- /** 表单字段名 */
18
- name?: string;
19
- /** 输入框标签 */
20
- label?: string;
21
- /** 是否禁用 */
22
- disabled?: boolean;
23
- /** 禁用原因 */
24
- disabledReason?: string;
25
- /** 是否可清除 */
26
- clearable?: boolean;
27
- /** 清除按钮标签 */
28
- clearLabel?: string;
29
- /** 尺寸 */
30
- size?: 'sm' | 'md' | 'lg';
31
- /** 状态 */
32
- status?: 'default' | 'error' | 'warning' | 'success';
33
- }
34
- interface DateInputEmits {
35
- (event: 'update:modelValue', value: Date | null): void;
36
- (event: 'change', value: Date | null): void;
37
- }
38
- interface DateInputSlots {
39
- /** 自定义前缀图标 */
40
- prefix?: () => any;
41
- /** 自定义后缀内容 */
42
- suffix?: () => any;
43
- }
44
- //#endregion
45
- //#region src/DateInput/DateInput.vue.d.ts
46
- type __VLS_Slots = DateInputSlots;
47
- declare const __VLS_base: import("vue").DefineComponent<DateInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
48
- change: (value: Date | null) => any;
49
- "update:modelValue": (value: Date | null) => any;
50
- }, string, import("vue").PublicProps, Readonly<DateInputProps> & Readonly<{
51
- onChange?: ((value: Date | null) => any) | undefined;
52
- "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
53
- }>, {
54
- size: "sm" | "md" | "lg";
55
- status: "default" | "success" | "warning" | "error";
56
- modelValue: Date | null;
57
- disabled: boolean;
58
- clearable: boolean;
59
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
61
- declare const _default: typeof __VLS_export;
62
- type __VLS_WithSlots<T, S> = T & {
63
- new (): {
64
- $slots: S;
65
- };
66
- };
67
- //#endregion
68
- export { DateInputSlots as i, DateInputEmits as n, DateInputProps as r, _default as t };
@@ -1,6 +1,6 @@
1
+ import { r as useItemDescriptionId } from "./Item-C1z6gXn8.js";
1
2
  import { t as _sfc_main$2 } from "./CheckboxInput-CMsEE1_4.js";
2
3
  import { t as _sfc_main$3 } from "./Field-8zRxzDHE.js";
3
- import { r as useItemDescriptionId } from "./Item-C1z6gXn8.js";
4
4
  import { n as _sfc_main$4, t as _sfc_main$5 } from "./ListItem-pGxvn6QJ.js";
5
5
  import { computed, createBlock, createElementVNode, createSlots, createVNode, defineComponent, inject, mergeModels, openBlock, provide, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef, withCtx } from "vue";
6
6
  import "../styles/checkbox-list.css";