@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,8 +1,20 @@
1
1
  import { CalendarDate } from "@internationalized/date";
2
2
  //#region src/Calendar/types.d.ts
3
+ interface CalendarRangeValue {
4
+ start: Date | null;
5
+ end: Date | null;
6
+ }
3
7
  interface CalendarProps {
4
- /** 当前选中的日期 */
8
+ /** 当前选中的日期。`mode="range"` 时改用 `range`。 */
5
9
  modelValue?: Date | null;
10
+ /** 选一天,或选一段起止日期。 */
11
+ mode?: 'single' | 'range';
12
+ /** 范围模式下的起止日期,用 `v-model:range` 绑定。 */
13
+ range?: CalendarRangeValue | null;
14
+ /** 并排显示的月份数。 */
15
+ numberOfMonths?: 1 | 2;
16
+ /** 打开时先显示这一天所在的月份。 */
17
+ focusDate?: Date;
6
18
  /** 最小可选日期 */
7
19
  min?: Date;
8
20
  /** 最大可选日期 */
@@ -16,6 +28,7 @@ interface CalendarProps {
16
28
  }
17
29
  interface CalendarEmits {
18
30
  (event: 'update:modelValue', value: Date | null): void;
31
+ (event: 'update:range', value: CalendarRangeValue): void;
19
32
  (event: 'change', value: Date | null): void;
20
33
  }
21
34
  interface CalendarSlots {
@@ -36,12 +49,17 @@ type __VLS_Slots = CalendarSlots;
36
49
  declare const __VLS_base: import("vue").DefineComponent<CalendarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
37
50
  change: (value: Date | null) => any;
38
51
  "update:modelValue": (value: Date | null) => any;
52
+ "update:range": (value: CalendarRangeValue) => any;
39
53
  }, string, import("vue").PublicProps, Readonly<CalendarProps> & Readonly<{
40
54
  onChange?: ((value: Date | null) => any) | undefined;
41
55
  "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
56
+ "onUpdate:range"?: ((value: CalendarRangeValue) => any) | undefined;
42
57
  }>, {
43
58
  modelValue: Date | null;
59
+ mode: "single" | "range";
44
60
  disabled: boolean;
61
+ range: CalendarRangeValue | null;
62
+ numberOfMonths: 1 | 2;
45
63
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
46
64
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
65
  declare const _default: typeof __VLS_export;
@@ -51,4 +69,4 @@ type __VLS_WithSlots<T, S> = T & {
51
69
  };
52
70
  };
53
71
  //#endregion
54
- export { CalendarSlots as i, CalendarEmits as n, CalendarProps as r, _default as t };
72
+ export { CalendarSlots as a, CalendarRangeValue as i, CalendarEmits as n, CalendarProps as r, _default as t };
@@ -1,5 +1,12 @@
1
+ import { Component } from "vue";
1
2
  //#region src/Toast/types.d.ts
2
3
  type ToastType = 'info' | 'success' | 'warning' | 'error';
4
+ /**
5
+ * What happens when a new toast reuses a `uniqueID` that is already on screen.
6
+ *
7
+ * `overwrite` replaces that toast in place. `ignore` drops the new toast.
8
+ */
9
+ type ToastCollisionBehavior = 'ignore' | 'overwrite';
3
10
  interface ToastOptions {
4
11
  /**
5
12
  * Visual type of the toast.
@@ -20,9 +27,31 @@ interface ToastOptions {
20
27
  * @default 5000
21
28
  */
22
29
  duration?: number;
30
+ /**
31
+ * Identity shared by toasts that should collapse into one. A later toast with
32
+ * the same id overwrites the visible one, unless `collisionBehavior` is
33
+ * `ignore`.
34
+ */
35
+ uniqueID?: string;
36
+ /**
37
+ * How a `uniqueID` clash is resolved.
38
+ * @default 'overwrite'
39
+ */
40
+ collisionBehavior?: ToastCollisionBehavior;
41
+ /**
42
+ * Trailing action rendered after the message, such as an undo button.
43
+ * Pass a component; for a one-off render, pass a function component.
44
+ */
45
+ endContent?: Component;
23
46
  }
24
- interface ToastItem extends Required<ToastOptions> {
47
+ interface ToastItem {
25
48
  id: string;
49
+ type: ToastType;
50
+ body: string;
51
+ autoClose: boolean;
52
+ duration: number;
53
+ uniqueID?: string;
54
+ endContent?: Component;
26
55
  /**
27
56
  * True once the toast has been asked to close. The toast stays mounted so it
28
57
  * can play its exit transition, then leaves the store.
@@ -41,6 +70,7 @@ type __VLS_Props$1 = ToastOptions & {
41
70
  };
42
71
  type __VLS_Slots = {
43
72
  default: () => unknown;
73
+ end: () => unknown;
44
74
  };
45
75
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props$1, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
46
76
  close: () => any;
@@ -86,4 +116,4 @@ interface UseToastReturn {
86
116
  }
87
117
  declare function useToast(): UseToastReturn;
88
118
  //#endregion
89
- export { ToastOptions as a, ToastItem as i, _default as n, ToastPlacement as o, _default$1 as r, ToastType as s, useToast as t };
119
+ export { ToastItem as a, ToastType as c, ToastCollisionBehavior as i, _default as n, ToastOptions as o, _default$1 as r, ToastPlacement as s, useToast as t };
@@ -32,6 +32,25 @@ interface AvatarProps {
32
32
  * The primary image source for the avatar.
33
33
  */
34
34
  src?: string;
35
+ /**
36
+ * When set, the avatar renders as a link.
37
+ */
38
+ href?: string;
39
+ /**
40
+ * HTML target for the link. Only applies when `href` is set.
41
+ */
42
+ target?: string;
43
+ /**
44
+ * HTML rel for the link. `noopener noreferrer` is added when `target` is `_blank`.
45
+ */
46
+ rel?: string;
47
+ /**
48
+ * Hover and focus tooltip.
49
+ *
50
+ * `true` (default) shows `name`. A string shows that text instead. `false` turns the tooltip off.
51
+ * @default true
52
+ */
53
+ tooltip?: boolean | string;
35
54
  }
36
55
  type AvatarStatusDotVariant = 'neutral' | 'info' | 'success' | 'warning' | 'error';
37
56
  interface AvatarStatusDotProps {
@@ -40,6 +59,10 @@ interface AvatarStatusDotProps {
40
59
  * @default 'neutral'
41
60
  */
42
61
  variant?: AvatarStatusDotVariant;
62
+ /**
63
+ * Accessible name for the status. When omitted the dot is hidden from assistive technology.
64
+ */
65
+ label?: string;
43
66
  }
44
67
  //#endregion
45
68
  //#region src/Avatar/Avatar.vue.d.ts
@@ -53,6 +76,7 @@ declare const __VLS_base: import("vue").DefineComponent<AvatarProps, {}, {}, {},
53
76
  onError?: ((event: Event) => any) | undefined;
54
77
  }>, {
55
78
  size: AvatarSize;
79
+ tooltip: string | boolean;
56
80
  shape: AvatarShape;
57
81
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
58
82
  declare const __VLS_export$1: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -0,0 +1,100 @@
1
+ import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
2
+ import { _ as DropdownMenuSubMenuProps, a as DropdownMenuGroupSlots, c as DropdownMenuItemProps, f as DropdownMenuPresentation, g as DropdownMenuSlots, h as DropdownMenuSize, i as DropdownMenuGroupProps, l as DropdownMenuItemSlots, p as DropdownMenuProps, t as DropdownMenuButtonProps, u as DropdownMenuItemVariant, v as DropdownMenuSubMenuSlots } from "./types-DDAAT1Xd.js";
3
+ import { ComputedRef, InjectionKey } from "vue";
4
+ //#region src/DropdownMenu/context.d.ts
5
+ /**
6
+ * What a `DropdownMenu` tells the rows inside it.
7
+ *
8
+ * `menuSize` is a computed ref rather than a plain value: a row reads it after
9
+ * mount, so a snapshot would leave every row stuck at the size the trigger had
10
+ * when the menu was created.
11
+ */
12
+ interface DropdownMenuContextValue {
13
+ /** Closes the menu and returns focus to the trigger. */
14
+ closeMenu: () => void;
15
+ /** Whether the root menu is open. Nested flyouts close with it. */
16
+ isOpen: ComputedRef<boolean>;
17
+ /** Size of the menu, derived from the trigger button's size. */
18
+ menuSize: ComputedRef<DropdownMenuSize>;
19
+ }
20
+ /** The surrounding menu, or `undefined` when a row stands alone. */
21
+ declare function useDropdownMenuContext(): DropdownMenuContextValue | undefined;
22
+ //#endregion
23
+ //#region src/DropdownMenu/DropdownMenu.vue.d.ts
24
+ type __VLS_Props = DropdownMenuProps;
25
+ type __VLS_Slots$3 = DropdownMenuSlots;
26
+ type __VLS_ModelProps = {
27
+ 'isMenuOpen'?: boolean | undefined;
28
+ };
29
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
30
+ declare const __VLS_base$3: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
+ click: () => any;
32
+ openChange: (isOpen: boolean) => any;
33
+ "update:isMenuOpen": (...args: unknown[]) => any;
34
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
35
+ onClick?: (() => any) | undefined;
36
+ onOpenChange?: ((isOpen: boolean) => any) | undefined;
37
+ "onUpdate:isMenuOpen"?: ((...args: unknown[]) => any) | undefined;
38
+ }>, {
39
+ button: DropdownMenuButtonProps;
40
+ placement: LayerPlacement;
41
+ alignment: LayerAlignment;
42
+ presentation: DropdownMenuPresentation;
43
+ hasChevron: boolean;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
+ declare const __VLS_export$4: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
46
+ declare const _default$4: typeof __VLS_export$4;
47
+ type __VLS_WithSlots$3<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
52
+ //#endregion
53
+ //#region src/DropdownMenu/DropdownMenuDivider.vue.d.ts
54
+ declare const __VLS_export$3: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
55
+ declare const _default$3: typeof __VLS_export$3;
56
+ //#endregion
57
+ //#region src/DropdownMenu/DropdownMenuGroup.vue.d.ts
58
+ type __VLS_Slots$2 = DropdownMenuGroupSlots;
59
+ declare const __VLS_base$2: import("vue").DefineComponent<DropdownMenuGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DropdownMenuGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
+ declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
61
+ declare const _default$2: typeof __VLS_export$2;
62
+ type __VLS_WithSlots$2<T, S> = T & {
63
+ new (): {
64
+ $slots: S;
65
+ };
66
+ };
67
+ //#endregion
68
+ //#region src/DropdownMenu/DropdownMenuItem.vue.d.ts
69
+ type __VLS_Slots$1 = DropdownMenuItemSlots;
70
+ declare const __VLS_base$1: import("vue").DefineComponent<DropdownMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
71
+ click: (event: MouseEvent) => any;
72
+ }, string, import("vue").PublicProps, Readonly<DropdownMenuItemProps> & Readonly<{
73
+ onClick?: ((event: MouseEvent) => any) | undefined;
74
+ }>, {
75
+ isDisabled: boolean;
76
+ variant: DropdownMenuItemVariant;
77
+ hasCloseOnSelect: boolean;
78
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
79
+ declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
80
+ declare const _default$1: typeof __VLS_export$1;
81
+ type __VLS_WithSlots$1<T, S> = T & {
82
+ new (): {
83
+ $slots: S;
84
+ };
85
+ };
86
+ //#endregion
87
+ //#region src/DropdownMenu/DropdownMenuSubMenu.vue.d.ts
88
+ type __VLS_Slots = DropdownMenuSubMenuSlots;
89
+ declare const __VLS_base: import("vue").DefineComponent<DropdownMenuSubMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DropdownMenuSubMenuProps> & Readonly<{}>, {
90
+ isDisabled: boolean;
91
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
92
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
93
+ declare const _default: typeof __VLS_export;
94
+ type __VLS_WithSlots<T, S> = T & {
95
+ new (): {
96
+ $slots: S;
97
+ };
98
+ };
99
+ //#endregion
100
+ export { _default$4 as a, _default$3 as i, _default$1 as n, DropdownMenuContextValue as o, _default$2 as r, useDropdownMenuContext as s, _default as t };
@@ -2,6 +2,7 @@ import { ComputedRef, Ref } from "vue";
2
2
  //#region src/TabList/types.d.ts
3
3
  type TabListSize = 'sm' | 'md' | 'lg';
4
4
  type TabListLayout = 'hug' | 'fill';
5
+ type TabListEdgeCompensation = 'inline';
5
6
  interface TabListProps {
6
7
  /**
7
8
  * Currently selected tab value.
@@ -22,6 +23,19 @@ interface TabListProps {
22
23
  * @default false
23
24
  */
24
25
  hasDivider?: boolean;
26
+ /**
27
+ * Stretch the strip to the container's inline content edges, cancelling
28
+ * `--container-padding-inline-*`, while the first and last labels stay on
29
+ * the content inset. `edgeCompensation="inline"` is the same mode and wins
30
+ * when both are set.
31
+ * @default false
32
+ */
33
+ isFullBleed?: boolean;
34
+ /**
35
+ * Canonical name for the inline bleed. `isFullBleed` selects the same mode
36
+ * when this is omitted.
37
+ */
38
+ edgeCompensation?: TabListEdgeCompensation;
25
39
  }
26
40
  interface TabMenuOption {
27
41
  value: string;
@@ -93,6 +107,7 @@ declare const __VLS_base: import("vue").DefineComponent<TabListProps, {}, {}, {}
93
107
  onChange?: ((value: string) => any) | undefined;
94
108
  }>, {
95
109
  size: TabListSize;
110
+ isFullBleed: boolean;
96
111
  hasDivider: boolean;
97
112
  layout: TabListLayout;
98
113
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,4 @@
1
- import { a as TableColumn, d as TableFilterValue, f as TablePlugin, h as TableSlots, i as TableCellProps, l as TableFilterField, m as TableRowProps, n as PixelWidth, p as TableProps, r as ProportionalWidth, u as TableFilterState, v as TableSortState } from "./types-JktRxujg.js";
1
+ import { _ as TableProps, a as TableCellProps, b as TableRowProps, d as TableFilterState, f as TableFilterValue, g as TablePlugin, n as PixelWidth, o as TableColumn, r as ProportionalWidth, u as TableFilterField, w as TableSortState, x as TableSlots } from "./types-Cp4liug-.js";
2
2
  import { CSSProperties, ComputedRef, MaybeRefOrGetter, Ref, VNodeChild } from "vue";
3
3
  //#region src/Table/columnUtils.d.ts
4
4
  declare function proportional(value?: number, options?: {
@@ -12,6 +12,10 @@ interface ResolvedColumnWidths {
12
12
  columns: Map<string, ResolvedColumnWidth>;
13
13
  tableMinWidth: number;
14
14
  }
15
+ /**
16
+ * 表格被挤到最小宽度时每一列的像素。固定列的偏移按这个宽度累加。
17
+ */
18
+ declare function resolveColumnFloorWidths<T extends Record<string, unknown>>(columns: readonly TableColumn<T>[]): Map<string, number>;
15
19
  declare function resolveColumnWidths<T extends Record<string, unknown>>(columns: readonly TableColumn<T>[]): ResolvedColumnWidths;
16
20
  declare function capitalize(value: string): string;
17
21
  declare function cellText(value: unknown): string;
@@ -66,6 +70,33 @@ declare function useTableFilterState(initial?: TableFilterState): {
66
70
  declare function applyTableFilters<T extends Record<string, unknown>>(rows: readonly T[], filters: TableFilterState, fields?: readonly TableFilterField[]): T[];
67
71
  declare function useTableFiltering<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableFilteringConfig>): TablePlugin<T>;
68
72
  //#endregion
73
+ //#region src/Table/plugins/groupedRows.d.ts
74
+ interface UseTableGroupedRowsConfig<T extends Record<string, unknown>> {
75
+ data: readonly T[];
76
+ groupBy: (item: T) => string;
77
+ collapsedGroups: ReadonlySet<string>;
78
+ onToggleGroup: (groupKey: string) => void;
79
+ renderGroupHeader?: (groupKey: string, count: number, collapsed: boolean) => VNodeChild;
80
+ getRowKey?: (item: T) => string;
81
+ groupOrder?: readonly string[];
82
+ }
83
+ declare function isTableGroupHeader(item: unknown): item is Record<string, unknown> & {
84
+ groupKey: string;
85
+ count: number;
86
+ };
87
+ declare function buildGroupedRows<T extends Record<string, unknown>>(data: readonly T[], groupBy: (item: T) => string, collapsedGroups: ReadonlySet<string>, groupOrder?: readonly string[]): T[];
88
+ declare function useTableGroupedRows<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableGroupedRowsConfig<T>>): {
89
+ data: ComputedRef<T[]>;
90
+ plugin: TablePlugin<T>;
91
+ idKey: (item: T) => string;
92
+ };
93
+ //#endregion
94
+ //#region src/Table/plugins/interaction.d.ts
95
+ /**
96
+ * 这一下点在按钮、链接、表单或一段被选中的文字上,就不该再触发行展开。
97
+ */
98
+ declare function isInteractiveRowClick(event: MouseEvent): boolean;
99
+ //#endregion
69
100
  //#region src/Table/plugins/pagination.d.ts
70
101
  interface UseTablePaginationConfig {
71
102
  page: number;
@@ -80,6 +111,48 @@ interface UseTablePaginationConfig {
80
111
  }
81
112
  declare function useTablePagination<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTablePaginationConfig>): TablePlugin<T>;
82
113
  //#endregion
114
+ //#region src/Table/plugins/rowExpansion.d.ts
115
+ interface UseTableRowExpansionConfig<T extends Record<string, unknown>> {
116
+ expandedKeys: ReadonlySet<string>;
117
+ onToggle: (key: string) => void;
118
+ getRowKey: (item: T) => string;
119
+ renderExpanded: (item: T) => VNodeChild;
120
+ getIsItemExpandable?: (item: T) => boolean;
121
+ panelVariant?: 'muted' | 'transparent';
122
+ hasRowClickExpansion?: boolean;
123
+ }
124
+ declare function useTableRowExpansion<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableRowExpansionConfig<T>>): TablePlugin<T>;
125
+ //#endregion
126
+ //#region src/Table/plugins/rowIndex.d.ts
127
+ interface UseTableRowIndexConfig<T extends Record<string, unknown>> {
128
+ data: readonly T[];
129
+ getRowKey?: (item: T) => string;
130
+ label?: string;
131
+ startFrom?: number;
132
+ }
133
+ declare function useTableRowIndex<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableRowIndexConfig<T>>): TablePlugin<T>;
134
+ //#endregion
135
+ //#region src/Table/plugins/rowStatus.d.ts
136
+ type TableRowStatusName = 'success' | 'warning' | 'error';
137
+ type TableRowStatusColor = 'accent' | 'success' | 'error' | 'warning' | 'red' | 'orange' | 'green' | 'yellow' | 'blue' | 'gray';
138
+ interface TableSemanticRowStatus {
139
+ status: TableRowStatusName;
140
+ label: string;
141
+ color?: never;
142
+ icon?: never;
143
+ }
144
+ interface TableCustomRowStatus {
145
+ status?: never;
146
+ color: TableRowStatusColor | (string & {});
147
+ icon?: string;
148
+ label: string;
149
+ }
150
+ type TableRowStatus = TableSemanticRowStatus | TableCustomRowStatus;
151
+ interface UseTableRowStatusConfig<T extends Record<string, unknown>> {
152
+ getStatus: (item: T) => TableRowStatus | null;
153
+ }
154
+ declare function useTableRowStatus<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableRowStatusConfig<T>>): TablePlugin<T>;
155
+ //#endregion
83
156
  //#region src/Table/plugins/selection.d.ts
84
157
  interface UseTableSelectionStateConfig<T extends Record<string, unknown>> {
85
158
  data: MaybeRefOrGetter<readonly T[]>;
@@ -129,6 +202,68 @@ declare function useTableSortableState<T extends Record<string, unknown>>(option
129
202
  };
130
203
  declare function useTableSortable<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableSortableConfig>): TablePlugin<T>;
131
204
  //#endregion
205
+ //#region src/Table/plugins/stickyColumns.d.ts
206
+ interface UseTableStickyColumnsConfig {
207
+ startKeys?: readonly string[];
208
+ endKeys?: readonly string[];
209
+ }
210
+ interface StickySide {
211
+ edge: 'start' | 'end';
212
+ offset: number;
213
+ }
214
+ declare function stickyOffsets<T extends Record<string, unknown>>(columns: readonly TableColumn<T>[], keys: readonly string[], edge: 'start' | 'end'): Map<string, number> | null;
215
+ declare function resolveStickySide<T extends Record<string, unknown>>(columns: readonly TableColumn<T>[], columnKey: string, startKeys: readonly string[], endKeys: readonly string[]): StickySide | null;
216
+ declare function useTableStickyColumns<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableStickyColumnsConfig>): TablePlugin<T>;
217
+ //#endregion
218
+ //#region src/Table/plugins/tree.d.ts
219
+ interface TableTreeRowMeta {
220
+ id: string;
221
+ level: number;
222
+ hasChildren: boolean;
223
+ isExpanded: boolean;
224
+ }
225
+ interface UseTableTreeDataConfig<T extends Record<string, unknown>> {
226
+ getRowMeta: (item: T) => TableTreeRowMeta | undefined;
227
+ onToggleItem: (item: T) => void;
228
+ hasExpandableRows: boolean;
229
+ isAllExpanded?: boolean | 'indeterminate';
230
+ onExpandAll?: () => void;
231
+ onCollapseAll?: () => void;
232
+ hasExpandAllControl?: boolean;
233
+ indent?: 'sm' | 'md' | 'lg';
234
+ treeColumnKey?: string;
235
+ hasRowClickExpansion?: boolean;
236
+ }
237
+ interface UseTableTreeStateConfig<T extends Record<string, unknown>> {
238
+ data: readonly T[];
239
+ idKey: (keyof T & string) | ((item: T) => string | number);
240
+ childrenKey?: string;
241
+ defaultExpandedIds?: Iterable<string>;
242
+ expandedIds?: ReadonlySet<string>;
243
+ onExpandedIdsChange?: (ids: ReadonlySet<string>) => void;
244
+ isItemExpandable?: (item: T) => boolean;
245
+ sortSiblings?: (siblings: T[]) => T[];
246
+ indent?: 'sm' | 'md' | 'lg';
247
+ treeColumnKey?: string;
248
+ hasExpandAllControl?: boolean;
249
+ hasRowClickExpansion?: boolean;
250
+ }
251
+ interface FlatTree<T> {
252
+ rows: T[];
253
+ meta: Map<string, TableTreeRowMeta>;
254
+ expandableIds: string[];
255
+ }
256
+ declare function flattenTree<T extends Record<string, unknown>>(config: UseTableTreeStateConfig<T>, expandedIds: ReadonlySet<string>): FlatTree<T>;
257
+ declare function useTableTreeData<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableTreeDataConfig<T>>): TablePlugin<T>;
258
+ declare function useTableTreeState<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableTreeStateConfig<T>>): {
259
+ visibleData: ComputedRef<T[]>;
260
+ plugin: TablePlugin<T>;
261
+ expandedIds: ComputedRef<ReadonlySet<string>>;
262
+ isAllExpanded: ComputedRef<boolean | 'indeterminate'>;
263
+ expandAll: () => void;
264
+ collapseAll: () => void;
265
+ };
266
+ //#endregion
132
267
  //#region src/Table/Table.vue.d.ts
133
268
  declare const __VLS_export$7: <T extends Record<string, unknown>>(__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<{
134
269
  props: import("vue").PublicProps & __VLS_PrettifyLocal<TableProps<T>> & (typeof globalThis extends {
@@ -249,4 +384,4 @@ type __VLS_WithSlots<T, S> = T & {
249
384
  };
250
385
  };
251
386
  //#endregion
252
- export { generateColumns as A, UseTableColumnSettingsConfig as C, useTableColumnResize as D, UseTableColumnResizeConfig as E, sortRows as F, pixel as M, proportional as N, capitalize as O, resolveColumnWidths as P, ColumnSettingsOption as S, useTableColumnSettingsState as T, useTablePagination as _, _default$4 as a, useTableFilterState as b, _default$7 as c, useTableSortableState as d, UseTableSelectionConfig as f, UseTablePaginationConfig as g, useTableSelectionState as h, _default$3 as i, paginateData as j, cellText as k, UseTableSortableConfig as l, useTableSelection as m, _default$1 as n, _default$5 as o, UseTableSelectionStateConfig as p, _default$2 as r, _default$6 as s, _default as t, useTableSortable as u, UseTableFilteringConfig as v, useTableColumnSettings as w, useTableFiltering as x, applyTableFilters as y };
387
+ export { UseTableColumnResizeConfig as $, TableRowStatusName as A, isInteractiveRowClick as B, UseTableSelectionConfig as C, TableCustomRowStatus as D, useTableSelectionState as E, useTableRowIndex as F, UseTableFilteringConfig as G, buildGroupedRows as H, UseTableRowExpansionConfig as I, useTableFiltering as J, applyTableFilters as K, useTableRowExpansion as L, UseTableRowStatusConfig as M, useTableRowStatus as N, TableRowStatus as O, UseTableRowIndexConfig as P, useTableColumnSettingsState as Q, UseTablePaginationConfig as R, useTableSortableState as S, useTableSelection as T, isTableGroupHeader as U, UseTableGroupedRowsConfig as V, useTableGroupedRows as W, UseTableColumnSettingsConfig as X, ColumnSettingsOption as Y, useTableColumnSettings as Z, resolveStickySide as _, _default$4 as a, pixel as at, UseTableSortableConfig as b, _default$7 as c, resolveColumnWidths as ct, UseTableTreeStateConfig as d, useTableColumnResize as et, flattenTree as f, UseTableStickyColumnsConfig as g, StickySide as h, _default$3 as i, paginateData as it, TableSemanticRowStatus as j, TableRowStatusColor as k, TableTreeRowMeta as l, sortRows as lt, useTableTreeState as m, _default$1 as n, cellText as nt, _default$5 as o, proportional as ot, useTableTreeData as p, useTableFilterState as q, _default$2 as r, generateColumns as rt, _default$6 as s, resolveColumnFloorWidths as st, _default as t, capitalize as tt, UseTableTreeDataConfig as u, stickyOffsets as v, UseTableSelectionStateConfig as w, useTableSortable as x, useTableStickyColumns as y, useTablePagination as z };