@expcat/tigercat-vue 2.0.0-preview.1 → 2.0.0-preview.3

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 (185) 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-W7X5ZHJ3.mjs → chunk-3WQIYF4T.mjs} +4 -4
  8. package/dist/{chunk-YSKG5FSX.mjs → chunk-42P6ZQ3J.mjs} +1 -1
  9. package/dist/{chunk-V5ZEPAWV.mjs → chunk-4BO6JNA6.mjs} +1 -1
  10. package/dist/{chunk-GL63FRI4.mjs → chunk-4SLYX5GK.mjs} +1 -1
  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-6G5FEZLT.mjs → chunk-7XENCCN5.mjs} +3 -3
  19. package/dist/{chunk-KR3D2JOA.mjs → chunk-AWCXUDIL.mjs} +3 -3
  20. package/dist/{chunk-GTFAC625.mjs → chunk-BGGHSTMP.mjs} +1 -1
  21. package/dist/{chunk-DOVBKVTB.mjs → chunk-CFH5T3V2.mjs} +3 -3
  22. package/dist/{chunk-IQNZ4UEA.mjs → chunk-D4APFWWS.mjs} +1 -1
  23. package/dist/{chunk-7LCUVR63.mjs → chunk-DCMRB3HR.mjs} +15 -4
  24. package/dist/{chunk-WYJ5WOT2.mjs → chunk-DWK5GUMB.mjs} +9 -3
  25. package/dist/{chunk-EVIZXEB2.mjs → chunk-E6EZHSGY.mjs} +1 -1
  26. package/dist/{chunk-2YPPXZ4I.mjs → chunk-EGIMTTZA.mjs} +1 -1
  27. package/dist/{chunk-4ZKSTL5P.mjs → chunk-EGIQPUEL.mjs} +1 -1
  28. package/dist/{chunk-UQK22ZMC.mjs → chunk-EWUHEW6W.mjs} +75 -22
  29. package/dist/{chunk-VFUBOKGT.mjs → chunk-F2IWAV3T.mjs} +1 -1
  30. package/dist/{chunk-HIXWZVE5.mjs → chunk-FSJRNEZK.mjs} +23 -8
  31. package/dist/{chunk-MJRFB6ZA.mjs → chunk-GDK5LNP3.mjs} +7 -7
  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-JMVALNIO.mjs → chunk-LOC5B4YM.mjs} +17 -14
  45. package/dist/{chunk-36WSYHJU.mjs → chunk-LPZBXTJ6.mjs} +1 -1
  46. package/dist/{chunk-O4F75KHL.mjs → chunk-MAKOSWR6.mjs} +1 -1
  47. package/dist/{chunk-FDKJOVXG.mjs → chunk-MNSVJBNH.mjs} +1 -1
  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-EYR27UIE.mjs → chunk-U6OGGZBY.mjs} +25 -2
  67. package/dist/{chunk-DMQLA35L.mjs → chunk-U75YXWSA.mjs} +1 -1
  68. package/dist/{chunk-R6WFL6NI.mjs → chunk-UOJOJBEU.mjs} +18 -0
  69. package/dist/{chunk-IGT4QB7O.mjs → chunk-UUWTKCMY.mjs} +1 -1
  70. package/dist/{chunk-HLPSHCXO.mjs → chunk-V443QIJM.mjs} +5 -1
  71. package/dist/{chunk-TM73IWEY.mjs → chunk-XH63C62K.mjs} +1 -1
  72. package/dist/{chunk-DZFM7H3M.mjs → chunk-XLNK3Z2P.mjs} +26 -5
  73. package/dist/{chunk-4QCJUILG.mjs → chunk-ZFJNCAZX.mjs} +5 -2
  74. package/dist/{chunk-XZYFVOOS.mjs → chunk-ZFTRR3KW.mjs} +1 -1
  75. package/dist/components/ActivityFeed.mjs +8 -7
  76. package/dist/components/AreaChart.d.mts +21 -2
  77. package/dist/components/AreaChart.mjs +2 -2
  78. package/dist/components/AutoComplete.d.mts +1 -1
  79. package/dist/components/AutoComplete.mjs +3 -2
  80. package/dist/components/Avatar.mjs +4 -2
  81. package/dist/components/AvatarGroup.d.mts +25 -1
  82. package/dist/components/AvatarGroup.mjs +3 -1
  83. package/dist/components/Badge.mjs +3 -2
  84. package/dist/components/BarChart.d.mts +21 -2
  85. package/dist/components/BarChart.mjs +2 -2
  86. package/dist/components/Calendar.mjs +3 -2
  87. package/dist/components/Carousel.d.mts +21 -1
  88. package/dist/components/Carousel.mjs +3 -1
  89. package/dist/components/Cascader.d.mts +1 -1
  90. package/dist/components/Cascader.mjs +3 -2
  91. package/dist/components/ChartLegend.d.mts +10 -0
  92. package/dist/components/ChartLegend.mjs +1 -1
  93. package/dist/components/ChatWindow.d.mts +1 -1
  94. package/dist/components/ChatWindow.mjs +8 -6
  95. package/dist/components/CodeEditor.d.mts +1 -1
  96. package/dist/components/ColorPicker.mjs +1 -1
  97. package/dist/components/CommentThread.mjs +6 -5
  98. package/dist/components/ConfigProvider.mjs +2 -1
  99. package/dist/components/CronEditor.d.mts +23 -5
  100. package/dist/components/CronEditor.mjs +3 -1
  101. package/dist/components/CropUpload.mjs +5 -4
  102. package/dist/components/DataTableWithToolbar.mjs +8 -6
  103. package/dist/components/DatePicker.d.mts +1 -1
  104. package/dist/components/DatePicker.mjs +3 -2
  105. package/dist/components/DonutChart.mjs +3 -3
  106. package/dist/components/Drawer.mjs +3 -2
  107. package/dist/components/Empty.mjs +3 -2
  108. package/dist/components/FileManager.mjs +3 -2
  109. package/dist/components/Form.mjs +3 -2
  110. package/dist/components/FormItem.mjs +5 -3
  111. package/dist/components/FormItemContext.d.mts +11 -0
  112. package/dist/components/FormItemContext.mjs +6 -0
  113. package/dist/components/FormWizard.mjs +3 -2
  114. package/dist/components/FunnelChart.mjs +2 -2
  115. package/dist/components/Image.mjs +4 -3
  116. package/dist/components/ImageAnnotation.mjs +3 -2
  117. package/dist/components/ImageCropper.mjs +3 -2
  118. package/dist/components/ImageGroup.mjs +4 -3
  119. package/dist/components/ImagePreview.mjs +3 -2
  120. package/dist/components/ImageViewer.mjs +3 -2
  121. package/dist/components/InfiniteScroll.mjs +3 -2
  122. package/dist/components/Input.d.mts +1 -1
  123. package/dist/components/Input.mjs +2 -1
  124. package/dist/components/InputNumber.d.mts +20 -0
  125. package/dist/components/InputNumber.mjs +1 -1
  126. package/dist/components/Kanban.mjs +4 -3
  127. package/dist/components/LineChart.d.mts +21 -2
  128. package/dist/components/LineChart.mjs +2 -2
  129. package/dist/components/List.mjs +3 -2
  130. package/dist/components/Loading.mjs +3 -2
  131. package/dist/components/MarkdownEditor.d.mts +22 -2
  132. package/dist/components/MarkdownEditor.mjs +3 -1
  133. package/dist/components/Mentions.d.mts +1 -1
  134. package/dist/components/Menu.d.mts +1 -1
  135. package/dist/components/Message.mjs +14 -1
  136. package/dist/components/MessageContainer.mjs +1 -1
  137. package/dist/components/MessageRoot.mjs +1 -1
  138. package/dist/components/Modal.mjs +3 -2
  139. package/dist/components/Notification.mjs +14 -1
  140. package/dist/components/NotificationCenter.mjs +6 -5
  141. package/dist/components/NotificationContainer.mjs +1 -1
  142. package/dist/components/NotificationRoot.mjs +1 -1
  143. package/dist/components/NumberKeyboard.mjs +3 -2
  144. package/dist/components/Pagination.mjs +3 -2
  145. package/dist/components/PieChart.mjs +2 -2
  146. package/dist/components/PrintLayout.mjs +1 -1
  147. package/dist/components/QRCode.mjs +3 -2
  148. package/dist/components/RadarChart.mjs +2 -2
  149. package/dist/components/Rate.d.mts +19 -1
  150. package/dist/components/Rate.mjs +3 -1
  151. package/dist/components/RichTextEditor.d.mts +22 -2
  152. package/dist/components/RichTextEditor.mjs +3 -1
  153. package/dist/components/ScatterChart.d.mts +30 -1
  154. package/dist/components/ScatterChart.mjs +4 -2
  155. package/dist/components/Select.d.mts +18 -2
  156. package/dist/components/Select.mjs +3 -2
  157. package/dist/components/Signature.mjs +3 -2
  158. package/dist/components/Spotlight.d.mts +1 -1
  159. package/dist/components/Spotlight.mjs +3 -2
  160. package/dist/components/Stepper.d.mts +18 -0
  161. package/dist/components/Stepper.mjs +1 -1
  162. package/dist/components/SunburstChart.mjs +2 -2
  163. package/dist/components/Table.mjs +5 -4
  164. package/dist/components/Tabs.d.mts +20 -1
  165. package/dist/components/Tabs.mjs +3 -1
  166. package/dist/components/Tag.mjs +3 -2
  167. package/dist/components/TaskBoard.mjs +3 -2
  168. package/dist/components/Textarea.d.mts +1 -1
  169. package/dist/components/TimePicker.d.mts +1 -1
  170. package/dist/components/TimePicker.mjs +3 -2
  171. package/dist/components/Timeline.mjs +3 -2
  172. package/dist/components/Tour.mjs +3 -2
  173. package/dist/components/Transfer.d.mts +16 -7
  174. package/dist/components/Transfer.mjs +3 -2
  175. package/dist/components/Tree.mjs +3 -2
  176. package/dist/components/TreeMapChart.mjs +2 -2
  177. package/dist/components/TreeSelect.d.mts +1 -1
  178. package/dist/components/TreeSelect.mjs +3 -2
  179. package/dist/components/Upload.mjs +3 -2
  180. package/dist/components/VirtualTable.mjs +3 -2
  181. package/dist/index.d.mts +1 -1
  182. package/dist/index.mjs +32 -0
  183. package/package.json +2 -2
  184. /package/dist/{chunk-4RKBXGHQ.mjs → chunk-GSB4MNEX.mjs} +0 -0
  185. /package/dist/{chunk-ESBUNMIG.mjs → chunk-Q3PELK37.mjs} +0 -0
@@ -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/NumberKeyboard.ts
6
6
  import { computed, defineComponent, h, ref } from "vue";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PieChart
3
- } from "./chunk-AZXS4QWC.mjs";
3
+ } from "./chunk-NNC75I7F.mjs";
4
4
 
5
5
  // src/components/DonutChart.ts
6
6
  import { defineComponent, computed, h, onMounted, ref } from "vue";
@@ -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/Tag.ts
6
6
  import { defineComponent, computed, h, ref } from "vue";
@@ -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/InfiniteScroll.ts
6
6
  import { defineComponent, h, ref, computed, watch, onMounted, onBeforeUnmount } from "vue";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-W5RZPTFD.mjs";
10
10
  import {
11
11
  ChartLegend
12
- } from "./chunk-HLPSHCXO.mjs";
12
+ } from "./chunk-V443QIJM.mjs";
13
13
  import {
14
14
  ChartSeries
15
15
  } from "./chunk-2ZUEXCVJ.mjs";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  Timeline
3
- } from "./chunk-RTZUIWCN.mjs";
3
+ } from "./chunk-JQSIWPNM.mjs";
4
4
  import {
5
5
  Link
6
6
  } from "./chunk-3MO7A4GU.mjs";
7
7
  import {
8
8
  Loading
9
- } from "./chunk-6WF3336O.mjs";
9
+ } from "./chunk-O6BN5R6J.mjs";
10
10
  import {
11
11
  Tag
12
- } from "./chunk-KRWKO2JQ.mjs";
12
+ } from "./chunk-342DH5CF.mjs";
13
13
  import {
14
14
  Text
15
15
  } from "./chunk-NN6AINLG.mjs";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-TC6ZPQFT.mjs";
19
19
  import {
20
20
  Avatar
21
- } from "./chunk-XZYFVOOS.mjs";
21
+ } from "./chunk-ZFTRR3KW.mjs";
22
22
 
23
23
  // src/components/ActivityFeed.ts
24
24
  import { defineComponent, computed, h } from "vue";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  Table
3
- } from "./chunk-KR3D2JOA.mjs";
3
+ } from "./chunk-AWCXUDIL.mjs";
4
4
  import {
5
5
  Select
6
- } from "./chunk-JMVALNIO.mjs";
6
+ } from "./chunk-LOC5B4YM.mjs";
7
7
  import {
8
8
  Popover
9
9
  } from "./chunk-SYRRMZT2.mjs";
10
10
  import {
11
11
  Input
12
- } from "./chunk-DZFM7H3M.mjs";
12
+ } from "./chunk-XLNK3Z2P.mjs";
13
13
  import {
14
14
  Checkbox
15
15
  } from "./chunk-MYKKKVGK.mjs";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-YZBQ6IR7.mjs";
19
19
  import {
20
20
  useTigerConfig
21
- } from "./chunk-R6WFL6NI.mjs";
21
+ } from "./chunk-UOJOJBEU.mjs";
22
22
 
23
23
  // src/components/DataTableWithToolbar.ts
24
24
  import {
@@ -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/ImageViewer.ts
6
6
  import { defineComponent, h, ref, computed, watch, onMounted, onBeforeUnmount } from "vue";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-2TNZ4JNT.mjs";
10
10
  import {
11
11
  useTigerConfig
12
- } from "./chunk-R6WFL6NI.mjs";
12
+ } from "./chunk-UOJOJBEU.mjs";
13
13
 
14
14
  // src/components/Tour.ts
15
15
  import {
@@ -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/Pagination.ts
6
6
  import {
@@ -21,7 +21,9 @@ var Stepper = defineComponent({
21
21
  step: { type: Number, default: 1 },
22
22
  disabled: { type: Boolean, default: false },
23
23
  size: { type: String, default: "md" },
24
- precision: { type: Number, default: void 0 }
24
+ precision: { type: Number, default: void 0 },
25
+ incrementAriaLabel: { type: String, default: "Increase" },
26
+ decrementAriaLabel: { type: String, default: "Decrease" }
25
27
  },
26
28
  emits: ["update:modelValue", "change"],
27
29
  setup(props, { emit, attrs }) {
@@ -105,7 +107,7 @@ var Stepper = defineComponent({
105
107
  type: "button",
106
108
  class: getStepperButtonClasses(props.size, props.disabled || atMin, "left"),
107
109
  disabled: props.disabled || atMin,
108
- "aria-label": "Decrease",
110
+ "aria-label": props.decrementAriaLabel,
109
111
  onPointerdown: startStepRepeat("down"),
110
112
  onPointerup: stopStepRepeat,
111
113
  onPointerleave: stopStepRepeat,
@@ -128,7 +130,7 @@ var Stepper = defineComponent({
128
130
  type: "button",
129
131
  class: getStepperButtonClasses(props.size, props.disabled || atMax, "right"),
130
132
  disabled: props.disabled || atMax,
131
- "aria-label": "Increase",
133
+ "aria-label": props.incrementAriaLabel,
132
134
  onPointerdown: startStepRepeat("up"),
133
135
  onPointerup: stopStepRepeat,
134
136
  onPointerleave: stopStepRepeat,
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-MI6TL3CQ.mjs";
16
16
  import {
17
17
  ChartLegend
18
- } from "./chunk-HLPSHCXO.mjs";
18
+ } from "./chunk-V443QIJM.mjs";
19
19
  import {
20
20
  ChartSeries
21
21
  } from "./chunk-2ZUEXCVJ.mjs";
@@ -40,6 +40,7 @@ import {
40
40
  barValueLabelInsideClasses,
41
41
  barAnimatedTransition
42
42
  } from "@expcat/tigercat-core";
43
+ var DEFAULT_CARTESIAN_PADDING = { top: 24, right: 24, bottom: 52, left: 52 };
43
44
  var BarChart = defineComponent({
44
45
  name: "TigerBarChart",
45
46
  props: {
@@ -53,8 +54,9 @@ var BarChart = defineComponent({
53
54
  },
54
55
  padding: {
55
56
  type: [Number, Object],
56
- default: 24
57
+ default: () => DEFAULT_CARTESIAN_PADDING
57
58
  },
59
+ responsive: { type: Boolean, default: false },
58
60
  data: {
59
61
  type: Array,
60
62
  required: true
@@ -374,6 +376,7 @@ var BarChart = defineComponent({
374
376
  width: props.width,
375
377
  height: props.height,
376
378
  padding: props.padding,
379
+ responsive: props.responsive,
377
380
  title: props.title,
378
381
  desc: props.desc,
379
382
  className: classNames(props.className)
@@ -106,6 +106,14 @@ var InputNumber = defineComponent({
106
106
  type: Boolean,
107
107
  default: false
108
108
  },
109
+ incrementAriaLabel: {
110
+ type: String,
111
+ default: "Increase"
112
+ },
113
+ decrementAriaLabel: {
114
+ type: String,
115
+ default: "Decrease"
116
+ },
109
117
  className: {
110
118
  type: String,
111
119
  default: void 0
@@ -271,7 +279,7 @@ var InputNumber = defineComponent({
271
279
  {
272
280
  type: "button",
273
281
  tabindex: -1,
274
- "aria-label": "Decrease",
282
+ "aria-label": props.decrementAriaLabel,
275
283
  class: getInputNumberSideButtonClasses("left", props.disabled || atMin.value),
276
284
  disabled: props.disabled || atMin.value,
277
285
  onPointerdown: startStepRepeat("down"),
@@ -326,7 +334,7 @@ var InputNumber = defineComponent({
326
334
  {
327
335
  type: "button",
328
336
  tabindex: -1,
329
- "aria-label": "Increase",
337
+ "aria-label": props.incrementAriaLabel,
330
338
  class: getInputNumberSideButtonClasses("right", props.disabled || atMax.value),
331
339
  disabled: props.disabled || atMax.value,
332
340
  onPointerdown: startStepRepeat("up"),
@@ -360,7 +368,7 @@ var InputNumber = defineComponent({
360
368
  {
361
369
  type: "button",
362
370
  tabindex: -1,
363
- "aria-label": "Increase",
371
+ "aria-label": props.incrementAriaLabel,
364
372
  class: getInputNumberStepButtonClasses("up", props.disabled || atMax.value),
365
373
  disabled: props.disabled || atMax.value,
366
374
  onPointerdown: startStepRepeat("up"),
@@ -387,7 +395,7 @@ var InputNumber = defineComponent({
387
395
  {
388
396
  type: "button",
389
397
  tabindex: -1,
390
- "aria-label": "Decrease",
398
+ "aria-label": props.decrementAriaLabel,
391
399
  class: getInputNumberStepButtonClasses("down", props.disabled || atMin.value),
392
400
  disabled: props.disabled || atMin.value,
393
401
  onPointerdown: startStepRepeat("down"),
@@ -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/List.ts
9
9
  import {
@@ -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/Upload.ts
6
6
  import { defineComponent, ref, computed, watch, h } from "vue";
@@ -1,3 +1,7 @@
1
+ import {
2
+ useTigerConfig
3
+ } from "./chunk-UOJOJBEU.mjs";
4
+
1
5
  // src/components/CronEditor.ts
2
6
  import { computed, defineComponent, h, ref } from "vue";
3
7
  import {
@@ -11,14 +15,15 @@ import {
11
15
  cronEditorLabelClasses,
12
16
  cronFieldMetas,
13
17
  defaultCronExpression,
14
- defaultCronPresets,
15
18
  getCronEditorControlClasses,
19
+ getCronEditorLabels,
16
20
  getCronFieldIssue,
17
21
  getCronFieldValue,
22
+ mergeTigerLocale,
18
23
  normalizeCronExpression,
19
24
  parseCronFieldControl,
20
25
  updateCronExpressionField,
21
- validateCronExpression
26
+ validateCronExpressionWithLabels
22
27
  } from "@expcat/tigercat-core";
23
28
  var modeOptions = [
24
29
  { label: "Any", value: "any" },
@@ -27,6 +32,9 @@ var modeOptions = [
27
32
  { label: "Range", value: "range" },
28
33
  { label: "Custom", value: "custom" }
29
34
  ];
35
+ function formatCronControlLabel(template, field) {
36
+ return template.replace("{field}", field);
37
+ }
30
38
  var CronEditor = defineComponent({
31
39
  name: "TigerCronEditor",
32
40
  props: {
@@ -35,25 +43,66 @@ var CronEditor = defineComponent({
35
43
  disabled: { type: Boolean, default: false },
36
44
  readonly: { type: Boolean, default: false },
37
45
  size: { type: String, default: "md" },
38
- presets: { type: Array, default: () => defaultCronPresets },
39
- ariaLabel: { type: String, default: "Cron editor" }
46
+ presets: { type: Array, default: void 0 },
47
+ ariaLabel: { type: String, default: void 0 },
48
+ locale: { type: Object, default: void 0 },
49
+ labels: { type: Object, default: void 0 }
40
50
  },
41
51
  emits: ["update:modelValue", "change", "validate"],
42
52
  setup(props, { attrs, emit }) {
53
+ const config = useTigerConfig();
43
54
  const innerValue = ref(props.defaultValue);
44
55
  const expression = computed(() => props.modelValue ?? innerValue.value);
45
- const validation = computed(() => validateCronExpression(expression.value));
56
+ const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
57
+ const labels = computed(() => getCronEditorLabels(mergedLocale.value, props.labels));
58
+ const fieldLabels = computed(() => ({
59
+ minute: labels.value.minuteLabel,
60
+ hour: labels.value.hourLabel,
61
+ dayOfMonth: labels.value.dayOfMonthLabel,
62
+ month: labels.value.monthLabel,
63
+ dayOfWeek: labels.value.dayOfWeekLabel
64
+ }));
65
+ const validation = computed(
66
+ () => validateCronExpressionWithLabels(expression.value, labels.value, fieldLabels.value)
67
+ );
46
68
  const inactive = computed(() => props.disabled || props.readonly);
69
+ const localizedMetas = computed(
70
+ () => cronFieldMetas.map((meta) => ({ ...meta, label: fieldLabels.value[meta.key] }))
71
+ );
72
+ const resolvedPresets = computed(
73
+ () => props.presets ?? [
74
+ { label: labels.value.everyMinutePreset, value: "* * * * *" },
75
+ { label: labels.value.hourlyPreset, value: "0 * * * *" },
76
+ { label: labels.value.dailyPreset, value: "0 0 * * *" },
77
+ { label: labels.value.weeklyPreset, value: "0 0 * * 1" },
78
+ { label: labels.value.monthlyPreset, value: "0 0 1 * *" }
79
+ ]
80
+ );
81
+ const modeLabels = computed(() => ({
82
+ any: labels.value.modeAnyLabel,
83
+ every: labels.value.modeEveryLabel,
84
+ specific: labels.value.modeSpecificLabel,
85
+ range: labels.value.modeRangeLabel,
86
+ custom: labels.value.modeCustomLabel
87
+ }));
47
88
  function commit(nextValue) {
48
89
  const normalized = normalizeCronExpression(nextValue);
49
- const nextValidation = validateCronExpression(normalized);
90
+ const nextValidation = validateCronExpressionWithLabels(
91
+ normalized,
92
+ labels.value,
93
+ fieldLabels.value
94
+ );
50
95
  if (props.modelValue === void 0) innerValue.value = normalized;
51
96
  emit("update:modelValue", normalized);
52
97
  emit("change", normalized, nextValidation);
53
98
  emit("validate", nextValidation);
54
99
  }
55
100
  function handleRawExpressionChange(nextValue) {
56
- const nextValidation = validateCronExpression(nextValue);
101
+ const nextValidation = validateCronExpressionWithLabels(
102
+ nextValue,
103
+ labels.value,
104
+ fieldLabels.value
105
+ );
57
106
  if (props.modelValue === void 0) innerValue.value = nextValue;
58
107
  emit("update:modelValue", nextValue);
59
108
  emit("change", nextValue, nextValidation);
@@ -83,7 +132,7 @@ var CronEditor = defineComponent({
83
132
  class: getCronEditorControlClasses(props.size),
84
133
  value: control.step ?? 1,
85
134
  disabled: inactive.value,
86
- "aria-label": `${meta.label} step`,
135
+ "aria-label": formatCronControlLabel(labels.value.stepAriaLabel, meta.label),
87
136
  onInput: (event) => handleFieldRawChange(
88
137
  meta,
89
138
  buildCronFieldValue(
@@ -101,7 +150,7 @@ var CronEditor = defineComponent({
101
150
  class: getCronEditorControlClasses(props.size),
102
151
  value: control.value ?? meta.min,
103
152
  disabled: inactive.value,
104
- "aria-label": `${meta.label} value`,
153
+ "aria-label": formatCronControlLabel(labels.value.valueAriaLabel, meta.label),
105
154
  onInput: (event) => handleFieldRawChange(
106
155
  meta,
107
156
  buildCronFieldValue(
@@ -120,7 +169,7 @@ var CronEditor = defineComponent({
120
169
  class: getCronEditorControlClasses(props.size),
121
170
  value: control.start ?? meta.min,
122
171
  disabled: inactive.value,
123
- "aria-label": `${meta.label} range start`,
172
+ "aria-label": formatCronControlLabel(labels.value.rangeStartAriaLabel, meta.label),
124
173
  onInput: (event) => handleFieldRawChange(
125
174
  meta,
126
175
  buildCronFieldValue(
@@ -136,7 +185,7 @@ var CronEditor = defineComponent({
136
185
  class: getCronEditorControlClasses(props.size),
137
186
  value: control.end ?? meta.max,
138
187
  disabled: inactive.value,
139
- "aria-label": `${meta.label} range end`,
188
+ "aria-label": formatCronControlLabel(labels.value.rangeEndAriaLabel, meta.label),
140
189
  onInput: (event) => handleFieldRawChange(
141
190
  meta,
142
191
  buildCronFieldValue(
@@ -152,7 +201,7 @@ var CronEditor = defineComponent({
152
201
  class: getCronEditorControlClasses(props.size),
153
202
  value: control.raw,
154
203
  disabled: inactive.value,
155
- "aria-label": `${meta.label} custom value`,
204
+ "aria-label": formatCronControlLabel(labels.value.customValueAriaLabel, meta.label),
156
205
  onInput: (event) => handleFieldRawChange(meta, event.target.value)
157
206
  });
158
207
  }
@@ -161,7 +210,7 @@ var CronEditor = defineComponent({
161
210
  {
162
211
  class: classNames(cronEditorBaseClasses, coerceClassValue(attrs.class)),
163
212
  role: "group",
164
- "aria-label": props.ariaLabel
213
+ "aria-label": props.ariaLabel ?? labels.value.ariaLabel
165
214
  },
166
215
  [
167
216
  h("div", { class: "flex flex-col gap-2 sm:flex-row" }, [
@@ -174,24 +223,24 @@ var CronEditor = defineComponent({
174
223
  value: expression.value,
175
224
  disabled: props.disabled,
176
225
  readonly: props.readonly,
177
- "aria-label": "Cron expression",
226
+ "aria-label": labels.value.expressionAriaLabel,
178
227
  onInput: (event) => handleRawExpressionChange(event.target.value)
179
228
  }),
180
- props.presets.length > 0 ? h(
229
+ resolvedPresets.value.length > 0 ? h(
181
230
  "select",
182
231
  {
183
232
  class: getCronEditorControlClasses(props.size),
184
- value: props.presets.some((preset) => preset.value === expression.value) ? expression.value : "",
233
+ value: resolvedPresets.value.some((preset) => preset.value === expression.value) ? expression.value : "",
185
234
  disabled: inactive.value,
186
- "aria-label": "Cron preset",
235
+ "aria-label": labels.value.presetAriaLabel,
187
236
  onChange: (event) => {
188
237
  const nextValue = event.target.value;
189
238
  if (nextValue) commit(nextValue);
190
239
  }
191
240
  },
192
241
  [
193
- h("option", { value: "" }, "Preset"),
194
- ...props.presets.map(
242
+ h("option", { value: "" }, labels.value.presetPlaceholder),
243
+ ...resolvedPresets.value.map(
195
244
  (preset) => h("option", { key: preset.value, value: preset.value }, preset.label)
196
245
  )
197
246
  ]
@@ -203,7 +252,7 @@ var CronEditor = defineComponent({
203
252
  h(
204
253
  "div",
205
254
  { class: cronEditorFieldsClasses },
206
- cronFieldMetas.map((meta) => {
255
+ localizedMetas.value.map((meta) => {
207
256
  const raw = getCronFieldValue(expression.value, meta.key);
208
257
  const control = parseCronFieldControl(raw);
209
258
  const issue = getCronFieldIssue(validation.value, meta.key);
@@ -215,7 +264,7 @@ var CronEditor = defineComponent({
215
264
  class: getCronEditorControlClasses(props.size, !!issue),
216
265
  value: control.mode,
217
266
  disabled: inactive.value,
218
- "aria-label": `${meta.label} mode`,
267
+ "aria-label": formatCronControlLabel(labels.value.modeAriaLabel, meta.label),
219
268
  onChange: (event) => handleModeChange(
220
269
  meta,
221
270
  control,
@@ -223,7 +272,11 @@ var CronEditor = defineComponent({
223
272
  )
224
273
  },
225
274
  modeOptions.map(
226
- (mode) => h("option", { key: mode.value, value: mode.value }, mode.label)
275
+ (mode) => h(
276
+ "option",
277
+ { key: mode.value, value: mode.value },
278
+ modeLabels.value[mode.value]
279
+ )
227
280
  )
228
281
  ),
229
282
  renderFieldControl(meta, control),
@@ -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/ImageCropper.ts
6
6
  import {
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  TabPane,
3
3
  Tabs
4
- } from "./chunk-EYR27UIE.mjs";
4
+ } from "./chunk-U6OGGZBY.mjs";
5
5
  import {
6
6
  List
7
- } from "./chunk-6FV2OMB7.mjs";
7
+ } from "./chunk-6LORRRRB.mjs";
8
8
  import {
9
9
  Button
10
10
  } from "./chunk-YZBQ6IR7.mjs";
11
11
  import {
12
12
  Loading
13
- } from "./chunk-6WF3336O.mjs";
13
+ } from "./chunk-O6BN5R6J.mjs";
14
14
  import {
15
15
  Text
16
16
  } from "./chunk-NN6AINLG.mjs";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Select
3
- } from "./chunk-JMVALNIO.mjs";
3
+ } from "./chunk-LOC5B4YM.mjs";
4
4
  import {
5
5
  Radio
6
6
  } from "./chunk-6BDDX2R4.mjs";
7
7
  import {
8
8
  Empty
9
- } from "./chunk-WLHOWOAY.mjs";
9
+ } from "./chunk-SJINC5NF.mjs";
10
10
  import {
11
11
  Checkbox
12
12
  } from "./chunk-MYKKKVGK.mjs";
13
13
  import {
14
14
  useTigerConfig
15
- } from "./chunk-R6WFL6NI.mjs";
15
+ } from "./chunk-UOJOJBEU.mjs";
16
16
 
17
17
  // src/components/Table.ts
18
18
  import {
@@ -71,7 +71,7 @@ var MessageContainer = /* @__PURE__ */ defineComponent({
71
71
  {
72
72
  class: messageCloseButtonClasses,
73
73
  onClick: () => props.onClose?.(message.id),
74
- "aria-label": MESSAGE_CLOSE_ARIA_LABEL,
74
+ "aria-label": message.closeAriaLabel ?? MESSAGE_CLOSE_ARIA_LABEL,
75
75
  type: "button"
76
76
  },
77
77
  createStatusIcon(messageCloseIconPath, "w-4 h-4")
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  Modal
3
- } from "./chunk-IQNZ4UEA.mjs";
3
+ } from "./chunk-D4APFWWS.mjs";
4
4
  import {
5
5
  ImageCropper
6
- } from "./chunk-4IZUJJUO.mjs";
6
+ } from "./chunk-7JT5ZIHC.mjs";
7
7
  import {
8
8
  Button
9
9
  } from "./chunk-YZBQ6IR7.mjs";
10
10
  import {
11
11
  useTigerConfig
12
- } from "./chunk-R6WFL6NI.mjs";
12
+ } from "./chunk-UOJOJBEU.mjs";
13
13
 
14
14
  // src/components/CropUpload.ts
15
15
  import { defineComponent, h, ref, computed } from "vue";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-BDTPFPSB.mjs";
10
10
  import {
11
11
  useTigerConfig
12
- } from "./chunk-R6WFL6NI.mjs";
12
+ } from "./chunk-UOJOJBEU.mjs";
13
13
 
14
14
  // src/components/Modal.ts
15
15
  import {
@@ -1,3 +1,7 @@
1
+ import {
2
+ useTigerConfig
3
+ } from "./chunk-UOJOJBEU.mjs";
4
+
1
5
  // src/components/Rate.ts
2
6
  import { defineComponent, h, ref, computed } from "vue";
3
7
  import {
@@ -9,7 +13,9 @@ import {
9
13
  starPathD,
10
14
  starViewBox,
11
15
  classNames,
12
- coerceClassValue
16
+ coerceClassValue,
17
+ mergeTigerLocale,
18
+ getRateLabels
13
19
  } from "@expcat/tigercat-core";
14
20
  var Rate = defineComponent({
15
21
  name: "TigerRate",
@@ -20,11 +26,16 @@ var Rate = defineComponent({
20
26
  disabled: { type: Boolean, default: false },
21
27
  size: { type: String, default: "md" },
22
28
  allowClear: { type: Boolean, default: true },
23
- character: { type: String, default: void 0 }
29
+ character: { type: String, default: void 0 },
30
+ locale: { type: Object, default: void 0 },
31
+ labels: { type: Object, default: void 0 }
24
32
  },
25
33
  emits: ["update:modelValue", "change", "hover-change"],
26
34
  setup(props, { emit, attrs }) {
35
+ const config = useTigerConfig();
27
36
  const hoverValue = ref(0);
37
+ const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
38
+ const labels = computed(() => getRateLabels(mergedLocale.value, props.labels));
28
39
  const displayValue = computed(
29
40
  () => hoverValue.value > 0 ? hoverValue.value : props.modelValue
30
41
  );
@@ -153,13 +164,13 @@ var Rate = defineComponent({
153
164
  )
154
165
  );
155
166
  }
156
- const valueText = `${props.modelValue} star${props.modelValue === 1 ? "" : "s"}`;
167
+ const valueText = labels.value.valueText.replace("{value}", String(props.modelValue)).replace("{plural}", props.modelValue === 1 ? "" : "s");
157
168
  return h(
158
169
  "div",
159
170
  {
160
171
  class: classNames(rateBaseClasses, coerceClassValue(attrs.class)),
161
172
  role: "slider",
162
- "aria-label": "Rating",
173
+ "aria-label": labels.value.ariaLabel,
163
174
  "aria-valuemin": 0,
164
175
  "aria-valuemax": props.count,
165
176
  "aria-valuenow": props.modelValue,
@@ -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/Cascader.ts
6
6
  import { defineComponent, computed, ref, h, watch, onBeforeUnmount } from "vue";
@@ -257,7 +257,10 @@ var Cascader = defineComponent({
257
257
  {
258
258
  class: "flex items-center",
259
259
  role: "button",
260
- "aria-label": "Clear selection",
260
+ "aria-label": resolveLocaleText(
261
+ "Clear selection",
262
+ mergedLocale.value?.common?.clearText
263
+ ),
261
264
  onClick: handleClear
262
265
  },
263
266
  [
@@ -319,7 +322,10 @@ var Cascader = defineComponent({
319
322
  ),
320
323
  value: searchQuery.value,
321
324
  onInput: handleSearchInput,
322
- "aria-label": "Search options"
325
+ "aria-label": resolveLocaleText(
326
+ "Search options",
327
+ mergedLocale.value?.common?.searchPlaceholder
328
+ )
323
329
  })
324
330
  );
325
331
  }