@expcat/tigercat-vue 2.0.0-preview.2 → 2.0.0-preview.4

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 (264) hide show
  1. package/dist/{chunk-Z7QUWBFR.mjs → chunk-22NIOTDQ.mjs} +1 -1
  2. package/dist/{chunk-QD5ZCKPR.mjs → chunk-2XCXK3NQ.mjs} +1 -1
  3. package/dist/{chunk-KRWKO2JQ.mjs → chunk-342DH5CF.mjs} +1 -1
  4. package/dist/{chunk-JCGWN7WV.mjs → chunk-36TZA5BH.mjs} +1 -1
  5. package/dist/{chunk-NYWIBDO6.mjs → chunk-3KITFMBJ.mjs} +1 -1
  6. package/dist/{chunk-B47QLHVW.mjs → chunk-3NQUEQJT.mjs} +4 -4
  7. package/dist/{chunk-YSKG5FSX.mjs → chunk-42P6ZQ3J.mjs} +1 -1
  8. package/dist/{chunk-V5ZEPAWV.mjs → chunk-4BO6JNA6.mjs} +1 -1
  9. package/dist/{chunk-GL63FRI4.mjs → chunk-4SLYX5GK.mjs} +1 -1
  10. package/dist/{chunk-MJRFB6ZA.mjs → chunk-4ZZYQITT.mjs} +12 -8
  11. package/dist/{chunk-Z4SG7REU.mjs → chunk-5E4LINDO.mjs} +5 -3
  12. package/dist/{chunk-FHJ3R57L.mjs → chunk-5KPO3EDM.mjs} +5 -2
  13. package/dist/{chunk-CF4GX6BD.mjs → chunk-5RIHHZF6.mjs} +12 -4
  14. package/dist/{chunk-6FV2OMB7.mjs → chunk-6LORRRRB.mjs} +1 -1
  15. package/dist/{chunk-CW5TEG7N.mjs → chunk-7CPMXNLK.mjs} +1 -1
  16. package/dist/{chunk-EQDCFOWR.mjs → chunk-7FWNN6PO.mjs} +75 -22
  17. package/dist/{chunk-4IZUJJUO.mjs → chunk-7JT5ZIHC.mjs} +1 -1
  18. package/dist/{chunk-DBCSR4WY.mjs → chunk-7XDNHGDA.mjs} +9 -1
  19. package/dist/{chunk-6G5FEZLT.mjs → chunk-7XENCCN5.mjs} +3 -3
  20. package/dist/{chunk-2R3SOQSW.mjs → chunk-ANNYNTXR.mjs} +3 -3
  21. package/dist/{chunk-VFUBOKGT.mjs → chunk-AQMPCLX7.mjs} +6 -2
  22. package/dist/{chunk-GTFAC625.mjs → chunk-BGGHSTMP.mjs} +1 -1
  23. package/dist/{chunk-DOVBKVTB.mjs → chunk-CFH5T3V2.mjs} +3 -3
  24. package/dist/{chunk-IQNZ4UEA.mjs → chunk-D4APFWWS.mjs} +1 -1
  25. package/dist/{chunk-7LCUVR63.mjs → chunk-DCMRB3HR.mjs} +15 -4
  26. package/dist/{chunk-WYJ5WOT2.mjs → chunk-DWK5GUMB.mjs} +9 -3
  27. package/dist/{chunk-EVIZXEB2.mjs → chunk-E6EZHSGY.mjs} +1 -1
  28. package/dist/{chunk-2YPPXZ4I.mjs → chunk-EGIMTTZA.mjs} +1 -1
  29. package/dist/{chunk-4ZKSTL5P.mjs → chunk-EGIQPUEL.mjs} +1 -1
  30. package/dist/{chunk-UQK22ZMC.mjs → chunk-EWUHEW6W.mjs} +75 -22
  31. package/dist/{chunk-HIXWZVE5.mjs → chunk-FSJRNEZK.mjs} +23 -8
  32. package/dist/{chunk-Z4NJJ7NI.mjs → chunk-GWFVBG22.mjs} +5 -2
  33. package/dist/{chunk-GMIKUE67.mjs → chunk-H2SX7D23.mjs} +1 -1
  34. package/dist/{chunk-FAQL7HFW.mjs → chunk-HAUG3OP5.mjs} +1 -1
  35. package/dist/{chunk-ODDPVS27.mjs → chunk-IDUEWMWN.mjs} +1 -1
  36. package/dist/{chunk-GAEO66NY.mjs → chunk-IMFHJEUX.mjs} +1 -1
  37. package/dist/{chunk-GZWZP5AL.mjs → chunk-JHFM6IFO.mjs} +28 -6
  38. package/dist/{chunk-V5ANPH5R.mjs → chunk-JL3CN4UK.mjs} +1 -1
  39. package/dist/{chunk-RTZUIWCN.mjs → chunk-JQSIWPNM.mjs} +1 -1
  40. package/dist/{chunk-RAO7ZJWR.mjs → chunk-JVQPU4M2.mjs} +5 -2
  41. package/dist/{chunk-BGO2ILHM.mjs → chunk-JZCETBUV.mjs} +16 -3
  42. package/dist/{chunk-G7MOTNJO.mjs → chunk-KFJIZED5.mjs} +1 -1
  43. package/dist/{chunk-YJSWHGAR.mjs → chunk-LFENEILY.mjs} +9 -3
  44. package/dist/{chunk-36WSYHJU.mjs → chunk-LPZBXTJ6.mjs} +1 -1
  45. package/dist/{chunk-O4F75KHL.mjs → chunk-MAKOSWR6.mjs} +1 -1
  46. package/dist/{chunk-FDKJOVXG.mjs → chunk-MNSVJBNH.mjs} +1 -1
  47. package/dist/{chunk-GVLLO45Y.mjs → chunk-N7LWKAYS.mjs} +2 -2
  48. package/dist/{chunk-E7NE5HEC.mjs → chunk-NEEGXKJW.mjs} +1 -1
  49. package/dist/{chunk-JPCMI3A4.mjs → chunk-NGAA73CV.mjs} +1 -1
  50. package/dist/{chunk-AZXS4QWC.mjs → chunk-NNC75I7F.mjs} +1 -1
  51. package/dist/{chunk-6WF3336O.mjs → chunk-O6BN5R6J.mjs} +1 -1
  52. package/dist/{chunk-YZATP4VF.mjs → chunk-OHPXOLNB.mjs} +12 -3
  53. package/dist/{chunk-WBT3WSRE.mjs → chunk-OHR7IUBQ.mjs} +14 -2
  54. package/dist/chunk-P2LZ2MR5.mjs +6 -0
  55. package/dist/{chunk-7BU4TW5A.mjs → chunk-P5FDKBXG.mjs} +1 -1
  56. package/dist/{chunk-2QWGVJW6.mjs → chunk-PQBKN2NH.mjs} +24 -10
  57. package/dist/{chunk-LOX2KCML.mjs → chunk-PYRKFQ6J.mjs} +3 -3
  58. package/dist/{chunk-BJV62I73.mjs → chunk-QFG452MD.mjs} +2 -2
  59. package/dist/{chunk-E2GQSWHK.mjs → chunk-QMECRLHW.mjs} +21 -2
  60. package/dist/{chunk-UD4FNMJN.mjs → chunk-RANRYFUI.mjs} +23 -6
  61. package/dist/{chunk-FT2HWF7P.mjs → chunk-RSM6FOWX.mjs} +1 -1
  62. package/dist/{chunk-GHG2MCLM.mjs → chunk-SJ7W5I5H.mjs} +1 -1
  63. package/dist/{chunk-WLHOWOAY.mjs → chunk-SJINC5NF.mjs} +1 -1
  64. package/dist/{chunk-PLUABMUD.mjs → chunk-SWCK7TM7.mjs} +1 -1
  65. package/dist/chunk-TGXBCKOU.mjs +35 -0
  66. package/dist/{chunk-2JW3TOXM.mjs → chunk-TXZ7GY26.mjs} +4 -4
  67. package/dist/{chunk-EYR27UIE.mjs → chunk-U6OGGZBY.mjs} +25 -2
  68. package/dist/{chunk-DMQLA35L.mjs → chunk-U75YXWSA.mjs} +1 -1
  69. package/dist/{chunk-R6WFL6NI.mjs → chunk-UOJOJBEU.mjs} +18 -0
  70. package/dist/{chunk-IGT4QB7O.mjs → chunk-UUWTKCMY.mjs} +1 -1
  71. package/dist/{chunk-HLPSHCXO.mjs → chunk-V443QIJM.mjs} +5 -1
  72. package/dist/{chunk-TM73IWEY.mjs → chunk-XH63C62K.mjs} +1 -1
  73. package/dist/{chunk-DZFM7H3M.mjs → chunk-XLNK3Z2P.mjs} +26 -5
  74. package/dist/{chunk-4QCJUILG.mjs → chunk-ZFJNCAZX.mjs} +5 -2
  75. package/dist/{chunk-XZYFVOOS.mjs → chunk-ZFTRR3KW.mjs} +1 -1
  76. package/dist/components/ActivityFeed.d.mts +6 -6
  77. package/dist/components/ActivityFeed.mjs +8 -7
  78. package/dist/components/Alert.d.mts +3 -3
  79. package/dist/components/Anchor.d.mts +1 -1
  80. package/dist/components/AreaChart.d.mts +24 -5
  81. package/dist/components/AreaChart.mjs +2 -2
  82. package/dist/components/AutoComplete.d.mts +5 -5
  83. package/dist/components/AutoComplete.mjs +3 -2
  84. package/dist/components/Avatar.d.mts +1 -1
  85. package/dist/components/Avatar.mjs +4 -2
  86. package/dist/components/AvatarGroup.d.mts +25 -1
  87. package/dist/components/AvatarGroup.mjs +3 -1
  88. package/dist/components/BackTop.d.mts +1 -1
  89. package/dist/components/Badge.d.mts +4 -4
  90. package/dist/components/Badge.mjs +3 -2
  91. package/dist/components/BarChart.d.mts +23 -4
  92. package/dist/components/BarChart.mjs +2 -2
  93. package/dist/components/Breadcrumb.d.mts +3 -3
  94. package/dist/components/Button.d.mts +3 -3
  95. package/dist/components/ButtonGroup.d.mts +1 -1
  96. package/dist/components/Calendar.d.mts +2 -2
  97. package/dist/components/Calendar.mjs +3 -2
  98. package/dist/components/Card.d.mts +2 -2
  99. package/dist/components/Carousel.d.mts +21 -1
  100. package/dist/components/Carousel.mjs +3 -1
  101. package/dist/components/Cascader.d.mts +3 -3
  102. package/dist/components/Cascader.mjs +3 -2
  103. package/dist/components/ChartCanvas.d.mts +1 -1
  104. package/dist/components/ChartGrid.d.mts +1 -1
  105. package/dist/components/ChartLegend.d.mts +10 -0
  106. package/dist/components/ChartLegend.mjs +1 -1
  107. package/dist/components/ChatWindow.d.mts +4 -4
  108. package/dist/components/ChatWindow.mjs +8 -6
  109. package/dist/components/CodeEditor.d.mts +3 -3
  110. package/dist/components/Collapse.d.mts +1 -1
  111. package/dist/components/CollapsePanel.d.mts +1 -1
  112. package/dist/components/ColorPicker.mjs +1 -1
  113. package/dist/components/ColorSwatch.d.mts +2 -2
  114. package/dist/components/CommentThread.d.mts +2 -2
  115. package/dist/components/CommentThread.mjs +6 -5
  116. package/dist/components/ConfigProvider.d.mts +1 -1
  117. package/dist/components/ConfigProvider.mjs +2 -1
  118. package/dist/components/Container.d.mts +1 -1
  119. package/dist/components/Countdown.d.mts +2 -2
  120. package/dist/components/CronEditor.d.mts +24 -6
  121. package/dist/components/CronEditor.mjs +3 -1
  122. package/dist/components/CropUpload.d.mts +1 -1
  123. package/dist/components/CropUpload.mjs +5 -4
  124. package/dist/components/DataTableWithToolbar.d.mts +11 -11
  125. package/dist/components/DataTableWithToolbar.mjs +8 -6
  126. package/dist/components/DatePicker.d.mts +3 -3
  127. package/dist/components/DatePicker.mjs +3 -2
  128. package/dist/components/Descriptions.d.mts +2 -2
  129. package/dist/components/DonutChart.d.mts +3 -3
  130. package/dist/components/DonutChart.mjs +3 -3
  131. package/dist/components/Drawer.d.mts +4 -4
  132. package/dist/components/Drawer.mjs +3 -2
  133. package/dist/components/Empty.d.mts +1 -1
  134. package/dist/components/Empty.mjs +3 -2
  135. package/dist/components/FileManager.d.mts +2 -2
  136. package/dist/components/FileManager.mjs +3 -2
  137. package/dist/components/FloatButton.d.mts +4 -4
  138. package/dist/components/Form.d.mts +2 -2
  139. package/dist/components/Form.mjs +3 -2
  140. package/dist/components/FormItem.mjs +5 -3
  141. package/dist/components/FormItemContext.d.mts +11 -0
  142. package/dist/components/FormItemContext.mjs +6 -0
  143. package/dist/components/FormWizard.d.mts +5 -5
  144. package/dist/components/FormWizard.mjs +3 -2
  145. package/dist/components/FunnelChart.d.mts +3 -3
  146. package/dist/components/FunnelChart.mjs +2 -2
  147. package/dist/components/Gantt.d.mts +2 -2
  148. package/dist/components/GaugeChart.d.mts +2 -2
  149. package/dist/components/HeatmapChart.d.mts +3 -3
  150. package/dist/components/Icon.d.mts +20 -2
  151. package/dist/components/Icon.mjs +1 -1
  152. package/dist/components/Image.d.mts +2 -2
  153. package/dist/components/Image.mjs +4 -3
  154. package/dist/components/ImageAnnotation.d.mts +5 -5
  155. package/dist/components/ImageAnnotation.mjs +3 -2
  156. package/dist/components/ImageCropper.d.mts +1 -1
  157. package/dist/components/ImageCropper.mjs +3 -2
  158. package/dist/components/ImageGroup.mjs +4 -3
  159. package/dist/components/ImagePreview.mjs +3 -2
  160. package/dist/components/ImageViewer.d.mts +1 -1
  161. package/dist/components/ImageViewer.mjs +3 -2
  162. package/dist/components/InfiniteScroll.d.mts +3 -3
  163. package/dist/components/InfiniteScroll.mjs +3 -2
  164. package/dist/components/Input.d.mts +5 -5
  165. package/dist/components/Input.mjs +2 -1
  166. package/dist/components/InputGroup.d.mts +1 -1
  167. package/dist/components/InputNumber.d.mts +21 -1
  168. package/dist/components/InputNumber.mjs +1 -1
  169. package/dist/components/Kanban.d.mts +1 -1
  170. package/dist/components/Kanban.mjs +4 -3
  171. package/dist/components/LineChart.d.mts +23 -4
  172. package/dist/components/LineChart.mjs +2 -2
  173. package/dist/components/Link.d.mts +1 -1
  174. package/dist/components/List.d.mts +7 -7
  175. package/dist/components/List.mjs +3 -2
  176. package/dist/components/Loading.d.mts +6 -6
  177. package/dist/components/Loading.mjs +3 -2
  178. package/dist/components/MarkdownEditor.d.mts +24 -4
  179. package/dist/components/MarkdownEditor.mjs +3 -1
  180. package/dist/components/Mentions.d.mts +3 -3
  181. package/dist/components/Menu.d.mts +4 -4
  182. package/dist/components/Message.mjs +14 -1
  183. package/dist/components/MessageContainer.mjs +1 -1
  184. package/dist/components/MessageRoot.mjs +1 -1
  185. package/dist/components/Modal.d.mts +7 -7
  186. package/dist/components/Modal.mjs +3 -2
  187. package/dist/components/Notification.mjs +14 -1
  188. package/dist/components/NotificationCenter.d.mts +5 -5
  189. package/dist/components/NotificationCenter.mjs +6 -5
  190. package/dist/components/NotificationContainer.mjs +1 -1
  191. package/dist/components/NotificationRoot.mjs +1 -1
  192. package/dist/components/NumberKeyboard.d.mts +5 -5
  193. package/dist/components/NumberKeyboard.mjs +3 -2
  194. package/dist/components/OrgChart.d.mts +3 -3
  195. package/dist/components/Pagination.d.mts +4 -4
  196. package/dist/components/Pagination.mjs +3 -2
  197. package/dist/components/PieChart.d.mts +3 -3
  198. package/dist/components/PieChart.mjs +2 -2
  199. package/dist/components/Popconfirm.d.mts +2 -2
  200. package/dist/components/Popover.d.mts +1 -1
  201. package/dist/components/PrintLayout.mjs +1 -1
  202. package/dist/components/Progress.d.mts +3 -3
  203. package/dist/components/QRCode.d.mts +3 -3
  204. package/dist/components/QRCode.mjs +3 -2
  205. package/dist/components/RadarChart.d.mts +3 -3
  206. package/dist/components/RadarChart.mjs +2 -2
  207. package/dist/components/Rate.d.mts +19 -1
  208. package/dist/components/Rate.mjs +3 -1
  209. package/dist/components/Result.d.mts +1 -1
  210. package/dist/components/RichTextEditor.d.mts +23 -3
  211. package/dist/components/RichTextEditor.mjs +3 -1
  212. package/dist/components/Row.d.mts +1 -1
  213. package/dist/components/ScatterChart.d.mts +32 -3
  214. package/dist/components/ScatterChart.mjs +4 -2
  215. package/dist/components/ScrollSpy.d.mts +3 -3
  216. package/dist/components/Select.d.mts +4 -4
  217. package/dist/components/Select.mjs +3 -2
  218. package/dist/components/Signature.d.mts +5 -5
  219. package/dist/components/Signature.mjs +3 -2
  220. package/dist/components/Skeleton.d.mts +1 -1
  221. package/dist/components/Space.d.mts +2 -2
  222. package/dist/components/Splitter.d.mts +1 -1
  223. package/dist/components/Spotlight.d.mts +4 -4
  224. package/dist/components/Spotlight.mjs +3 -2
  225. package/dist/components/Stepper.d.mts +18 -0
  226. package/dist/components/Stepper.mjs +1 -1
  227. package/dist/components/Steps.d.mts +3 -3
  228. package/dist/components/SunburstChart.d.mts +2 -2
  229. package/dist/components/SunburstChart.mjs +2 -2
  230. package/dist/components/Table.d.mts +5 -5
  231. package/dist/components/Table.mjs +5 -4
  232. package/dist/components/Tabs.d.mts +22 -3
  233. package/dist/components/Tabs.mjs +3 -1
  234. package/dist/components/Tag.d.mts +2 -2
  235. package/dist/components/Tag.mjs +3 -2
  236. package/dist/components/TaskBoard.d.mts +2 -2
  237. package/dist/components/TaskBoard.mjs +3 -2
  238. package/dist/components/Text.d.mts +3 -3
  239. package/dist/components/Textarea.d.mts +3 -3
  240. package/dist/components/TimePicker.d.mts +4 -4
  241. package/dist/components/TimePicker.mjs +3 -2
  242. package/dist/components/Timeline.d.mts +4 -4
  243. package/dist/components/Timeline.mjs +3 -2
  244. package/dist/components/Tooltip.d.mts +1 -1
  245. package/dist/components/Tour.d.mts +2 -2
  246. package/dist/components/Tour.mjs +3 -2
  247. package/dist/components/Transfer.d.mts +18 -9
  248. package/dist/components/Transfer.mjs +3 -2
  249. package/dist/components/Tree.d.mts +4 -4
  250. package/dist/components/Tree.mjs +3 -2
  251. package/dist/components/TreeMapChart.d.mts +2 -2
  252. package/dist/components/TreeMapChart.mjs +2 -2
  253. package/dist/components/TreeSelect.d.mts +3 -3
  254. package/dist/components/TreeSelect.mjs +3 -2
  255. package/dist/components/Upload.d.mts +4 -4
  256. package/dist/components/Upload.mjs +3 -2
  257. package/dist/components/VirtualTable.d.mts +3 -3
  258. package/dist/components/VirtualTable.mjs +3 -2
  259. package/dist/components/Watermark.d.mts +1 -1
  260. package/dist/index.d.mts +1 -1
  261. package/dist/index.mjs +92 -0
  262. package/package.json +2 -2
  263. /package/dist/{chunk-4RKBXGHQ.mjs → chunk-GSB4MNEX.mjs} +0 -0
  264. /package/dist/{chunk-ESBUNMIG.mjs → chunk-Q3PELK37.mjs} +0 -0
@@ -1,3 +1,7 @@
1
+ import {
2
+ useTigerConfig
3
+ } from "./chunk-UOJOJBEU.mjs";
4
+
1
5
  // src/components/Tabs.ts
2
6
  import {
3
7
  defineComponent,
@@ -26,6 +30,8 @@ import {
26
30
  resolveSwipeGesture,
27
31
  isKeyActive,
28
32
  getNextActiveKey,
33
+ mergeTigerLocale,
34
+ getTabsLabels,
29
35
  tabAddButtonClasses,
30
36
  tabCloseButtonClasses,
31
37
  tabContentBaseClasses
@@ -216,7 +222,10 @@ var TabPane = defineComponent({
216
222
  {
217
223
  type: "button",
218
224
  class: tabCloseButtonClasses,
219
- "aria-label": `Close ${String(props.label)}`,
225
+ "aria-label": tabsContext.labels.closeTabAriaLabel.replace(
226
+ "{label}",
227
+ String(props.label)
228
+ ),
220
229
  tabindex: -1,
221
230
  onClick: handleClose
222
231
  },
@@ -353,12 +362,23 @@ var Tabs = defineComponent({
353
362
  style: {
354
363
  type: Object,
355
364
  default: void 0
365
+ },
366
+ locale: {
367
+ type: Object,
368
+ default: void 0
369
+ },
370
+ labels: {
371
+ type: Object,
372
+ default: void 0
356
373
  }
357
374
  },
358
375
  emits: ["update:activeKey", "change", "edit", "tab-click"],
359
376
  setup(props, { slots, emit }) {
377
+ const config = useTigerConfig();
360
378
  const instance = getCurrentInstance();
361
379
  const idBase = `tiger-tabs-${instance?.uid ?? "0"}`;
380
+ const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
381
+ const labels = computed(() => getTabsLabels(mergedLocale.value, props.labels));
362
382
  const internalActiveKey = ref(props.defaultActiveKey);
363
383
  const swipeStart = ref(null);
364
384
  let lastTabKeys = [];
@@ -439,6 +459,9 @@ var Tabs = defineComponent({
439
459
  return props.swipeable;
440
460
  },
441
461
  idBase,
462
+ get labels() {
463
+ return labels.value;
464
+ },
442
465
  handleTabClick,
443
466
  handleTabClose
444
467
  });
@@ -533,7 +556,7 @@ var Tabs = defineComponent({
533
556
  type: "button",
534
557
  class: tabAddButtonClasses,
535
558
  onClick: () => emit("edit", { targetKey: void 0, action: "add" }),
536
- "aria-label": "Add tab"
559
+ "aria-label": labels.value.addTabAriaLabel
537
560
  },
538
561
  "+"
539
562
  ) : null
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TaskBoard
3
- } from "./chunk-2YPPXZ4I.mjs";
3
+ } from "./chunk-EGIMTTZA.mjs";
4
4
 
5
5
  // src/components/Kanban.ts
6
6
  import { defineComponent, h } from "vue";
@@ -1,3 +1,7 @@
1
+ import {
2
+ createGlobalTigerLocaleHandle
3
+ } from "./chunk-TGXBCKOU.mjs";
4
+
1
5
  // src/components/ConfigProvider.ts
2
6
  import {
3
7
  defineComponent,
@@ -47,6 +51,7 @@ var ConfigProvider = defineComponent({
47
51
  props: configProviderProps,
48
52
  setup(props, { slots }) {
49
53
  const parent = useTigerConfig();
54
+ let globalLocaleHandle = null;
50
55
  const resolvedLocale = ref(
51
56
  isLazyTigerLocale(props.locale) ? void 0 : getImmediateTigerLocale(props.locale)
52
57
  );
@@ -101,6 +106,17 @@ var ConfigProvider = defineComponent({
101
106
  },
102
107
  { immediate: true }
103
108
  );
109
+ watch(
110
+ () => merged.value.locale,
111
+ (locale) => {
112
+ if (!globalLocaleHandle) {
113
+ globalLocaleHandle = createGlobalTigerLocaleHandle(locale);
114
+ } else {
115
+ globalLocaleHandle.update(locale);
116
+ }
117
+ },
118
+ { immediate: true }
119
+ );
104
120
  let previousDir = null;
105
121
  let previousDataDir = null;
106
122
  watch(
@@ -118,6 +134,8 @@ var ConfigProvider = defineComponent({
118
134
  { immediate: true }
119
135
  );
120
136
  onBeforeUnmount(() => {
137
+ globalLocaleHandle?.dispose();
138
+ globalLocaleHandle = null;
121
139
  if (!isBrowser()) return;
122
140
  const root = document.documentElement;
123
141
  if (previousDir === null) root.removeAttribute("dir");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ImagePreview
3
- } from "./chunk-36WSYHJU.mjs";
3
+ } from "./chunk-LPZBXTJ6.mjs";
4
4
 
5
5
  // src/components/ImageGroup.ts
6
6
  import { defineComponent, h, ref, provide, onBeforeUnmount } from "vue";
@@ -24,6 +24,10 @@ var ChartLegend = defineComponent({
24
24
  type: Boolean,
25
25
  default: false
26
26
  },
27
+ ariaLabel: {
28
+ type: String,
29
+ default: "Chart legend"
30
+ },
27
31
  className: {
28
32
  type: String
29
33
  }
@@ -60,7 +64,7 @@ var ChartLegend = defineComponent({
60
64
  // A group of toggle buttons is not a "list"; only use list semantics
61
65
  // for the static (non-interactive) legend.
62
66
  role: props.interactive ? "group" : "list",
63
- "aria-label": "Chart legend",
67
+ "aria-label": props.ariaLabel,
64
68
  "data-chart-legend": "true"
65
69
  },
66
70
  props.items.map(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useTigerConfig
3
- } from "./chunk-R6WFL6NI.mjs";
3
+ } from "./chunk-UOJOJBEU.mjs";
4
4
 
5
5
  // src/components/ImageAnnotation.ts
6
6
  import { computed, defineComponent, h, onMounted, ref, watch } from "vue";
@@ -1,3 +1,6 @@
1
+ import {
2
+ FORM_ITEM_CONTROL_INJECTION_KEY
3
+ } from "./chunk-P2LZ2MR5.mjs";
1
4
  import {
2
5
  INPUT_GROUP_INJECTION_KEY
3
6
  } from "./chunk-VIIGYWUY.mjs";
@@ -139,10 +142,26 @@ var Input = defineComponent({
139
142
  injectShakeStyle();
140
143
  const instance = getCurrentInstance();
141
144
  const inputGroup = inject(INPUT_GROUP_INJECTION_KEY, null);
145
+ const formItemControl = inject(
146
+ FORM_ITEM_CONTROL_INJECTION_KEY,
147
+ null
148
+ );
142
149
  const effectiveSize = computed(() => {
143
150
  const hasOwnSize = Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, "size");
144
151
  return hasOwnSize ? props.size : inputGroup?.size ?? props.size;
145
152
  });
153
+ const hasOwnStatus = computed(
154
+ () => Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, "status")
155
+ );
156
+ const effectiveStatus = computed(
157
+ () => hasOwnStatus.value ? props.status : formItemControl?.status.value ?? props.status
158
+ );
159
+ const effectiveErrorMessage = computed(
160
+ () => props.errorMessage ?? formItemControl?.errorMessage.value
161
+ );
162
+ const effectiveShakeTrigger = computed(
163
+ () => props._shakeTrigger ?? formItemControl?.shakeTrigger.value
164
+ );
146
165
  const inputRef = ref(null);
147
166
  const wrapperRef = ref(null);
148
167
  const localValue = ref(props.modelValue ?? "");
@@ -158,7 +177,7 @@ var Input = defineComponent({
158
177
  }
159
178
  }
160
179
  );
161
- watch([() => props.status, () => props._shakeTrigger], ([newStatus]) => {
180
+ watch([effectiveStatus, effectiveShakeTrigger], ([newStatus]) => {
162
181
  if (newStatus === "error" && wrapperRef.value) {
163
182
  const el = wrapperRef.value;
164
183
  el.classList.remove(SHAKE_CLASS);
@@ -173,11 +192,13 @@ var Input = defineComponent({
173
192
  const hasSuffix = computed(
174
193
  () => !!slots.suffix || !!props.suffix || props.clearable || props.showPassword
175
194
  );
176
- const activeError = computed(() => props.status === "error" && !!props.errorMessage);
195
+ const activeError = computed(
196
+ () => effectiveStatus.value === "error" && !!effectiveErrorMessage.value
197
+ );
177
198
  const inputClasses = computed(
178
199
  () => getInputClasses({
179
200
  size: effectiveSize.value,
180
- status: props.status,
201
+ status: effectiveStatus.value,
181
202
  hasPrefix: hasPrefix.value,
182
203
  hasSuffix: hasSuffix.value
183
204
  })
@@ -218,7 +239,7 @@ var Input = defineComponent({
218
239
  h(
219
240
  "div",
220
241
  { id: errorMsgId, class: getInputErrorClasses(effectiveSize.value) },
221
- props.errorMessage
242
+ effectiveErrorMessage.value
222
243
  )
223
244
  );
224
245
  } else {
@@ -284,7 +305,7 @@ var Input = defineComponent({
284
305
  id: props.id,
285
306
  autocomplete: props.autoComplete,
286
307
  autofocus: props.autoFocus,
287
- ...props.status === "error" ? { "aria-invalid": true } : {},
308
+ ...effectiveStatus.value === "error" ? { "aria-invalid": true } : {},
288
309
  ...activeError.value ? { "aria-describedby": errorMsgId } : {},
289
310
  onInput: handleInput,
290
311
  onChange: handleChange,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-HS4YQGZQ.mjs";
4
4
  import {
5
5
  useTigerConfig
6
- } from "./chunk-R6WFL6NI.mjs";
6
+ } from "./chunk-UOJOJBEU.mjs";
7
7
 
8
8
  // src/components/Tree.ts
9
9
  import { defineComponent, computed, ref, h, watch, nextTick } from "vue";
@@ -553,7 +553,10 @@ var Tree = defineComponent({
553
553
  checked: isChecked,
554
554
  indeterminate: isHalfChecked,
555
555
  disabled: node.disabled,
556
- "aria-label": `Select ${node.label}`,
556
+ "aria-label": resolveLocaleText(
557
+ `Select ${node.label}`,
558
+ mergedLocale.value?.locale?.toLowerCase().startsWith("zh") ? `\u9009\u62E9${node.label}` : void 0
559
+ ),
557
560
  onClick: (e) => e.stopPropagation(),
558
561
  onChange: (e) => {
559
562
  const target = e.target;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AVATAR_GROUP_INJECTION_KEY
3
- } from "./chunk-GZWZP5AL.mjs";
3
+ } from "./chunk-JHFM6IFO.mjs";
4
4
 
5
5
  // src/components/Avatar.ts
6
6
  import { defineComponent, computed, h, ref, inject } from "vue";
@@ -107,18 +107,18 @@ declare const ActivityFeed: vue.DefineComponent<vue.ExtractPropTypes<{
107
107
  default: undefined;
108
108
  };
109
109
  }>> & Readonly<{}>, {
110
+ loadingText: string;
111
+ emptyText: string;
112
+ className: string;
113
+ style: Record<string, string | number>;
114
+ loading: boolean;
115
+ groupBy: (item: ActivityItem) => string;
110
116
  items: ActivityItem[];
111
117
  groups: ActivityGroup[];
112
- groupBy: (item: ActivityItem) => string;
113
118
  groupOrder: string[];
114
- loading: boolean;
115
- loadingText: string;
116
- emptyText: string;
117
119
  showAvatar: boolean;
118
120
  showTime: boolean;
119
121
  showGroupTitle: boolean;
120
- className: string;
121
- style: Record<string, string | number>;
122
122
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
123
123
 
124
124
  export { ActivityFeed, type VueActivityFeedProps, ActivityFeed as default };
@@ -1,17 +1,18 @@
1
1
  import {
2
2
  ActivityFeed,
3
3
  ActivityFeed_default
4
- } from "../chunk-B47QLHVW.mjs";
5
- import "../chunk-RTZUIWCN.mjs";
4
+ } from "../chunk-3NQUEQJT.mjs";
5
+ import "../chunk-JQSIWPNM.mjs";
6
6
  import "../chunk-3MO7A4GU.mjs";
7
- import "../chunk-6WF3336O.mjs";
7
+ import "../chunk-O6BN5R6J.mjs";
8
8
  import "../chunk-BDTPFPSB.mjs";
9
- import "../chunk-KRWKO2JQ.mjs";
9
+ import "../chunk-342DH5CF.mjs";
10
10
  import "../chunk-NN6AINLG.mjs";
11
11
  import "../chunk-TC6ZPQFT.mjs";
12
- import "../chunk-R6WFL6NI.mjs";
13
- import "../chunk-XZYFVOOS.mjs";
14
- import "../chunk-GZWZP5AL.mjs";
12
+ import "../chunk-ZFTRR3KW.mjs";
13
+ import "../chunk-JHFM6IFO.mjs";
14
+ import "../chunk-UOJOJBEU.mjs";
15
+ import "../chunk-TGXBCKOU.mjs";
15
16
  export {
16
17
  ActivityFeed,
17
18
  ActivityFeed_default as default
@@ -204,14 +204,14 @@ declare const Alert: vue.DefineComponent<vue.ExtractPropTypes<{
204
204
  }>> & Readonly<{
205
205
  onClose?: ((...args: any[]) => any) | undefined;
206
206
  }>, {
207
+ type: AlertType;
208
+ closeAriaLabel: string;
207
209
  size: AlertSize;
208
210
  className: string;
209
211
  style: Record<string, string | number>;
210
- type: AlertType;
211
212
  title: string;
212
- closable: boolean;
213
- closeAriaLabel: string;
214
213
  description: string;
214
+ closable: boolean;
215
215
  showIcon: boolean;
216
216
  duration: number;
217
217
  banner: boolean;
@@ -236,9 +236,9 @@ declare const Anchor: vue.DefineComponent<vue.ExtractPropTypes<{
236
236
  onChange?: ((...args: any[]) => any) | undefined;
237
237
  onClick?: ((...args: any[]) => any) | undefined;
238
238
  }>, {
239
+ direction: AnchorDirection;
239
240
  className: string;
240
241
  style: Record<string, unknown>;
241
- direction: AnchorDirection;
242
242
  offsetTop: number;
243
243
  targetOffset: number;
244
244
  bounds: number;
@@ -20,7 +20,16 @@ declare const AreaChart: vue.DefineComponent<vue.ExtractPropTypes<{
20
20
  };
21
21
  padding: {
22
22
  type: PropType<ChartPadding>;
23
- default: number;
23
+ default: () => {
24
+ top: number;
25
+ right: number;
26
+ bottom: number;
27
+ left: number;
28
+ };
29
+ };
30
+ responsive: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
24
33
  };
25
34
  data: {
26
35
  type: PropType<LineChartDatum[]>;
@@ -214,7 +223,16 @@ declare const AreaChart: vue.DefineComponent<vue.ExtractPropTypes<{
214
223
  };
215
224
  padding: {
216
225
  type: PropType<ChartPadding>;
217
- default: number;
226
+ default: () => {
227
+ top: number;
228
+ right: number;
229
+ bottom: number;
230
+ left: number;
231
+ };
232
+ };
233
+ responsive: {
234
+ type: BooleanConstructor;
235
+ default: boolean;
218
236
  };
219
237
  data: {
220
238
  type: PropType<LineChartDatum[]>;
@@ -403,14 +421,15 @@ declare const AreaChart: vue.DefineComponent<vue.ExtractPropTypes<{
403
421
  "onSeries-click"?: ((...args: any[]) => any) | undefined;
404
422
  "onSeries-hover"?: ((...args: any[]) => any) | undefined;
405
423
  }>, {
406
- padding: ChartPadding;
407
- hoverable: boolean;
408
- strokeWidth: number;
409
424
  width: number;
410
425
  height: number;
426
+ padding: ChartPadding;
411
427
  gradient: boolean;
428
+ hoverable: boolean;
429
+ strokeWidth: number;
412
430
  fillOpacity: number;
413
431
  selectable: boolean;
432
+ responsive: boolean;
414
433
  xTicks: number;
415
434
  yTicks: number;
416
435
  showGrid: boolean;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  AreaChart,
3
3
  AreaChart_default
4
- } from "../chunk-RAO7ZJWR.mjs";
4
+ } from "../chunk-JVQPU4M2.mjs";
5
5
  import "../chunk-PE5OA4YG.mjs";
6
6
  import "../chunk-SPFL55TF.mjs";
7
7
  import "../chunk-ZWVA7HT3.mjs";
8
8
  import "../chunk-W5RZPTFD.mjs";
9
9
  import "../chunk-MI6TL3CQ.mjs";
10
- import "../chunk-HLPSHCXO.mjs";
10
+ import "../chunk-V443QIJM.mjs";
11
11
  import "../chunk-2ZUEXCVJ.mjs";
12
12
  export {
13
13
  AreaChart,
@@ -58,7 +58,7 @@ declare const AutoComplete: vue.DefineComponent<vue.ExtractPropTypes<{
58
58
  };
59
59
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
60
60
  [key: string]: any;
61
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("change" | "select" | "update:modelValue" | "update:searchValue" | "search-change")[], "change" | "select" | "update:modelValue" | "update:searchValue" | "search-change", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
61
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("select" | "change" | "update:modelValue" | "update:searchValue" | "search-change")[], "select" | "change" | "update:modelValue" | "update:searchValue" | "search-change", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
62
62
  modelValue: {
63
63
  type: PropType<string | number>;
64
64
  default: string;
@@ -112,19 +112,19 @@ declare const AutoComplete: vue.DefineComponent<vue.ExtractPropTypes<{
112
112
  default: undefined;
113
113
  };
114
114
  }>> & Readonly<{
115
- onChange?: ((...args: any[]) => any) | undefined;
116
115
  onSelect?: ((...args: any[]) => any) | undefined;
116
+ onChange?: ((...args: any[]) => any) | undefined;
117
117
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
118
118
  "onUpdate:searchValue"?: ((...args: any[]) => any) | undefined;
119
119
  "onSearch-change"?: ((...args: any[]) => any) | undefined;
120
120
  }>, {
121
- size: ComponentSize;
122
- emptyText: string;
123
121
  locale: Partial<TigerLocale>;
122
+ emptyText: string;
123
+ placeholder: string;
124
+ size: ComponentSize;
124
125
  disabled: boolean;
125
126
  modelValue: string | number;
126
127
  options: AutoCompleteOption[];
127
- placeholder: string;
128
128
  searchValue: string;
129
129
  defaultSearchValue: string;
130
130
  clearable: boolean;
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  AutoComplete,
3
3
  AutoComplete_default
4
- } from "../chunk-ODDPVS27.mjs";
5
- import "../chunk-R6WFL6NI.mjs";
4
+ } from "../chunk-IDUEWMWN.mjs";
5
+ import "../chunk-UOJOJBEU.mjs";
6
+ import "../chunk-TGXBCKOU.mjs";
6
7
  export {
7
8
  AutoComplete,
8
9
  AutoComplete_default as default
@@ -151,9 +151,9 @@ declare const Avatar: vue.DefineComponent<vue.ExtractPropTypes<{
151
151
  size: AvatarSize;
152
152
  className: string;
153
153
  style: Record<string, string | number>;
154
+ text: string;
154
155
  src: string;
155
156
  alt: string;
156
- text: string;
157
157
  shape: AvatarShape;
158
158
  bgColor: string;
159
159
  textColor: string;
@@ -1,8 +1,10 @@
1
1
  import {
2
2
  Avatar,
3
3
  Avatar_default
4
- } from "../chunk-XZYFVOOS.mjs";
5
- import "../chunk-GZWZP5AL.mjs";
4
+ } from "../chunk-ZFTRR3KW.mjs";
5
+ import "../chunk-JHFM6IFO.mjs";
6
+ import "../chunk-UOJOJBEU.mjs";
7
+ import "../chunk-TGXBCKOU.mjs";
6
8
  export {
7
9
  Avatar,
8
10
  Avatar_default as default
@@ -1,6 +1,6 @@
1
1
  import * as vue from 'vue';
2
2
  import { PropType } from 'vue';
3
- import { AvatarSize } from '@expcat/tigercat-core';
3
+ import { AvatarSize, TigerLocale, TigerLocaleAvatarGroup } from '@expcat/tigercat-core';
4
4
 
5
5
  declare const AVATAR_GROUP_INJECTION_KEY: unique symbol;
6
6
  interface AvatarGroupContext {
@@ -11,6 +11,8 @@ interface VueAvatarGroupProps {
11
11
  max?: number;
12
12
  size?: AvatarSize;
13
13
  className?: string;
14
+ locale?: Partial<TigerLocale>;
15
+ labels?: Partial<TigerLocaleAvatarGroup>;
14
16
  }
15
17
  declare const AvatarGroup: vue.DefineComponent<vue.ExtractPropTypes<{
16
18
  max: {
@@ -25,6 +27,16 @@ declare const AvatarGroup: vue.DefineComponent<vue.ExtractPropTypes<{
25
27
  type: StringConstructor;
26
28
  default: undefined;
27
29
  };
30
+ /** Locale overrides merged on top of ConfigProvider locale */
31
+ locale: {
32
+ type: PropType<Partial<TigerLocale>>;
33
+ default: undefined;
34
+ };
35
+ /** Text/aria label overrides */
36
+ labels: {
37
+ type: PropType<Partial<TigerLocaleAvatarGroup>>;
38
+ default: undefined;
39
+ };
28
40
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
29
41
  [key: string]: any;
30
42
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -40,7 +52,19 @@ declare const AvatarGroup: vue.DefineComponent<vue.ExtractPropTypes<{
40
52
  type: StringConstructor;
41
53
  default: undefined;
42
54
  };
55
+ /** Locale overrides merged on top of ConfigProvider locale */
56
+ locale: {
57
+ type: PropType<Partial<TigerLocale>>;
58
+ default: undefined;
59
+ };
60
+ /** Text/aria label overrides */
61
+ labels: {
62
+ type: PropType<Partial<TigerLocaleAvatarGroup>>;
63
+ default: undefined;
64
+ };
43
65
  }>> & Readonly<{}>, {
66
+ locale: Partial<TigerLocale>;
67
+ labels: Partial<TigerLocaleAvatarGroup>;
44
68
  size: AvatarSize;
45
69
  className: string;
46
70
  max: number;
@@ -2,7 +2,9 @@ import {
2
2
  AVATAR_GROUP_INJECTION_KEY,
3
3
  AvatarGroup,
4
4
  AvatarGroup_default
5
- } from "../chunk-GZWZP5AL.mjs";
5
+ } from "../chunk-JHFM6IFO.mjs";
6
+ import "../chunk-UOJOJBEU.mjs";
7
+ import "../chunk-TGXBCKOU.mjs";
6
8
  export {
7
9
  AVATAR_GROUP_INJECTION_KEY,
8
10
  AvatarGroup,
@@ -104,8 +104,8 @@ declare const BackTop: vue.DefineComponent<vue.ExtractPropTypes<{
104
104
  }>, {
105
105
  className: string;
106
106
  style: Record<string, unknown>;
107
- position: BackTopPosition;
108
107
  target: () => HTMLElement | Window | null;
108
+ position: BackTopPosition;
109
109
  offset: ViewportOffset;
110
110
  placement: ViewportPlacement;
111
111
  duration: number;
@@ -100,15 +100,15 @@ declare const Badge: vue.DefineComponent<vue.ExtractPropTypes<{
100
100
  default: undefined;
101
101
  };
102
102
  }>> & Readonly<{}>, {
103
+ locale: Partial<TigerLocale>;
104
+ type: BadgeType;
103
105
  size: BadgeSize;
104
106
  className: string;
105
107
  style: Record<string, string | number>;
106
- type: BadgeType;
107
108
  variant: BadgeVariant;
108
- locale: Partial<TigerLocale>;
109
- position: BadgePosition;
110
- content: string | number;
111
109
  max: number;
110
+ content: string | number;
111
+ position: BadgePosition;
112
112
  showZero: boolean;
113
113
  standalone: boolean;
114
114
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  Badge,
3
3
  Badge_default
4
- } from "../chunk-PLUABMUD.mjs";
5
- import "../chunk-R6WFL6NI.mjs";
4
+ } from "../chunk-SWCK7TM7.mjs";
5
+ import "../chunk-UOJOJBEU.mjs";
6
+ import "../chunk-TGXBCKOU.mjs";
6
7
  export {
7
8
  Badge,
8
9
  Badge_default as default
@@ -19,7 +19,16 @@ declare const BarChart: vue.DefineComponent<vue.ExtractPropTypes<{
19
19
  };
20
20
  padding: {
21
21
  type: PropType<ChartPadding>;
22
- default: number;
22
+ default: () => {
23
+ top: number;
24
+ right: number;
25
+ bottom: number;
26
+ left: number;
27
+ };
28
+ };
29
+ responsive: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
23
32
  };
24
33
  data: {
25
34
  type: PropType<BarChartDatum[]>;
@@ -195,7 +204,16 @@ declare const BarChart: vue.DefineComponent<vue.ExtractPropTypes<{
195
204
  };
196
205
  padding: {
197
206
  type: PropType<ChartPadding>;
198
- default: number;
207
+ default: () => {
208
+ top: number;
209
+ right: number;
210
+ bottom: number;
211
+ left: number;
212
+ };
213
+ };
214
+ responsive: {
215
+ type: BooleanConstructor;
216
+ default: boolean;
199
217
  };
200
218
  data: {
201
219
  type: PropType<BarChartDatum[]>;
@@ -364,12 +382,13 @@ declare const BarChart: vue.DefineComponent<vue.ExtractPropTypes<{
364
382
  "onBar-click"?: ((...args: any[]) => any) | undefined;
365
383
  "onBar-hover"?: ((...args: any[]) => any) | undefined;
366
384
  }>, {
367
- padding: ChartPadding;
368
- hoverable: boolean;
369
385
  width: number;
370
386
  height: number;
387
+ padding: ChartPadding;
371
388
  gradient: boolean;
389
+ hoverable: boolean;
372
390
  selectable: boolean;
391
+ responsive: boolean;
373
392
  xTicks: number;
374
393
  yTicks: number;
375
394
  barColor: string;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BarChart,
3
3
  BarChart_default
4
- } from "../chunk-FHJ3R57L.mjs";
4
+ } from "../chunk-5KPO3EDM.mjs";
5
5
  import "../chunk-PE5OA4YG.mjs";
6
6
  import "../chunk-SPFL55TF.mjs";
7
7
  import "../chunk-ZWVA7HT3.mjs";
8
8
  import "../chunk-W5RZPTFD.mjs";
9
9
  import "../chunk-MI6TL3CQ.mjs";
10
- import "../chunk-HLPSHCXO.mjs";
10
+ import "../chunk-V443QIJM.mjs";
11
11
  import "../chunk-2ZUEXCVJ.mjs";
12
12
  export {
13
13
  BarChart,