@expcat/tigercat-vue 2.1.0 → 2.1.1

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 (250) hide show
  1. package/dist/{chunk-7W3NALIL.mjs → chunk-3FPS7XVB.mjs} +26 -27
  2. package/dist/{chunk-2OI6GWOT.mjs → chunk-3KAHJF7D.mjs} +12 -11
  3. package/dist/{chunk-IEAEB4TX.mjs → chunk-3OCHBGPF.mjs} +242 -51
  4. package/dist/{chunk-4HUYX5WW.mjs → chunk-4PQZMDBK.mjs} +29 -8
  5. package/dist/{chunk-DI6RRAGQ.mjs → chunk-562Z32GR.mjs} +3 -3
  6. package/dist/{chunk-OQVGB7X6.mjs → chunk-626VUZ2Q.mjs} +1 -1
  7. package/dist/{chunk-66OS5A4D.mjs → chunk-67VS6QHJ.mjs} +26 -12
  8. package/dist/{chunk-EHGFW5GX.mjs → chunk-6JAAXPBW.mjs} +4 -3
  9. package/dist/{chunk-JHMT5Q6P.mjs → chunk-6NYC7EY2.mjs} +29 -15
  10. package/dist/{chunk-6BDDX2R4.mjs → chunk-73Z7N7VG.mjs} +1 -4
  11. package/dist/{chunk-F3ZVVVYD.mjs → chunk-7C7SG3SS.mjs} +15 -3
  12. package/dist/{chunk-CHEXI7MO.mjs → chunk-7TJE7OYH.mjs} +4 -3
  13. package/dist/{chunk-AU6IC6K7.mjs → chunk-ABNS4B5V.mjs} +35 -15
  14. package/dist/{chunk-EGIMTTZA.mjs → chunk-BOHE5URZ.mjs} +18 -3
  15. package/dist/{chunk-5RIHHZF6.mjs → chunk-BQK7LH2L.mjs} +4 -1
  16. package/dist/{chunk-E6EZHSGY.mjs → chunk-BSOLH6R5.mjs} +0 -1
  17. package/dist/{chunk-RSM6FOWX.mjs → chunk-CCC3S6LK.mjs} +6 -3
  18. package/dist/{chunk-U75YXWSA.mjs → chunk-CLTRADS7.mjs} +17 -5
  19. package/dist/{chunk-BEIPGX74.mjs → chunk-DRLQCY7R.mjs} +162 -7
  20. package/dist/{chunk-KBJANUZZ.mjs → chunk-E523VGZP.mjs} +1 -1
  21. package/dist/{chunk-D3U2NJ32.mjs → chunk-FEQ7PZXI.mjs} +8 -2
  22. package/dist/{chunk-PE5OA4YG.mjs → chunk-FHUGOSEY.mjs} +8 -2
  23. package/dist/{chunk-OAPIT53X.mjs → chunk-FIEECAJV.mjs} +7 -10
  24. package/dist/{chunk-7SFB77JR.mjs → chunk-GBPMQJJJ.mjs} +8 -1
  25. package/dist/{chunk-6AMWX5K4.mjs → chunk-GQOPDD44.mjs} +1 -1
  26. package/dist/{chunk-5RXYJWNA.mjs → chunk-H4DEIGEG.mjs} +77 -25
  27. package/dist/{chunk-EZYOCPMM.mjs → chunk-IK2WHKDA.mjs} +29 -15
  28. package/dist/{chunk-HGXD57QM.mjs → chunk-JBS3AESR.mjs} +65 -23
  29. package/dist/{chunk-PYRKFQ6J.mjs → chunk-JIU5UEOU.mjs} +70 -26
  30. package/dist/{chunk-JALHMWKW.mjs → chunk-K5MHUMKR.mjs} +2 -2
  31. package/dist/{chunk-5E4LINDO.mjs → chunk-LH2V2JMZ.mjs} +26 -10
  32. package/dist/{chunk-PQBKN2NH.mjs → chunk-LRFKHJDU.mjs} +14 -5
  33. package/dist/{chunk-W5XFWVNV.mjs → chunk-M4FWWEMX.mjs} +15 -6
  34. package/dist/{chunk-VLW3UBIR.mjs → chunk-N2XV37BL.mjs} +37 -41
  35. package/dist/{chunk-2LIIMWBR.mjs → chunk-OYU47A57.mjs} +1 -2
  36. package/dist/{chunk-KU2Q5V3L.mjs → chunk-P62TYR3M.mjs} +18 -2
  37. package/dist/{chunk-P5FDKBXG.mjs → chunk-P7X46BAW.mjs} +70 -3
  38. package/dist/{chunk-KROVW4AW.mjs → chunk-PJQTRDIG.mjs} +13 -3
  39. package/dist/{chunk-26OI3TEA.mjs → chunk-PMQSXEMT.mjs} +42 -6
  40. package/dist/{chunk-XLNK3Z2P.mjs → chunk-POWDTOMF.mjs} +88 -79
  41. package/dist/{chunk-AXDBME5A.mjs → chunk-PSGVG4TN.mjs} +38 -21
  42. package/dist/{chunk-7DWWNFRP.mjs → chunk-PWWWACHC.mjs} +1 -1
  43. package/dist/{chunk-UUWTKCMY.mjs → chunk-QWLD5FMJ.mjs} +1 -1
  44. package/dist/{chunk-ALIUAGJO.mjs → chunk-QZLOF36M.mjs} +7 -13
  45. package/dist/{chunk-WLYQHKLZ.mjs → chunk-QZRSFGZZ.mjs} +50 -11
  46. package/dist/{chunk-37W7XTA6.mjs → chunk-RHQWQJ4I.mjs} +4 -3
  47. package/dist/{chunk-32X54QKW.mjs → chunk-RRLE7QRH.mjs} +43 -22
  48. package/dist/{chunk-RID7A5V7.mjs → chunk-RRNQL6MJ.mjs} +23 -6
  49. package/dist/{chunk-VJ6YM2EW.mjs → chunk-S4BKVFQ7.mjs} +1 -1
  50. package/dist/{chunk-LPZBXTJ6.mjs → chunk-SAC4PAG3.mjs} +4 -4
  51. package/dist/{chunk-W5RZPTFD.mjs → chunk-SNNT64HK.mjs} +13 -2
  52. package/dist/{chunk-N3C6YI7I.mjs → chunk-SWMYIORV.mjs} +22 -7
  53. package/dist/{chunk-U4B5QT72.mjs → chunk-SX3NAN4M.mjs} +1 -1
  54. package/dist/{chunk-JL3CN4UK.mjs → chunk-TDBMAKTJ.mjs} +10 -3
  55. package/dist/chunk-UEGNXN5B.mjs +28 -0
  56. package/dist/{chunk-NEEGXKJW.mjs → chunk-UGHLEKEZ.mjs} +22 -3
  57. package/dist/{chunk-HKYRRQS7.mjs → chunk-UNQO7EVG.mjs} +1 -1
  58. package/dist/{chunk-VN2TWPRC.mjs → chunk-UR5F74ZB.mjs} +112 -18
  59. package/dist/{chunk-VCCK4CDT.mjs → chunk-URPXBKK4.mjs} +23 -5
  60. package/dist/{chunk-7KCOF5US.mjs → chunk-VY6FVIOZ.mjs} +10 -8
  61. package/dist/{chunk-KICZSLOX.mjs → chunk-W2ICYZVU.mjs} +1 -1
  62. package/dist/{chunk-FIVVKBBF.mjs → chunk-W3QOMJKQ.mjs} +8 -6
  63. package/dist/{chunk-DCMRB3HR.mjs → chunk-WV25G4M3.mjs} +4 -3
  64. package/dist/{chunk-ZOYHZF4N.mjs → chunk-X5LJT76O.mjs} +49 -32
  65. package/dist/{chunk-BNYA5IUB.mjs → chunk-YNXP34KO.mjs} +39 -38
  66. package/dist/{chunk-2T2NEZRZ.mjs → chunk-YVDTXHQ6.mjs} +1 -1
  67. package/dist/{chunk-AUMTHL6N.mjs → chunk-ZOP7PEKY.mjs} +2 -1
  68. package/dist/components/ActivityFeed.d.mts +29 -11
  69. package/dist/components/ActivityFeed.mjs +2 -2
  70. package/dist/components/Affix.mjs +1 -1
  71. package/dist/components/Alert.d.mts +2 -2
  72. package/dist/components/Anchor.d.mts +1 -1
  73. package/dist/components/Anchor.mjs +1 -1
  74. package/dist/components/AreaChart.d.mts +3 -3
  75. package/dist/components/AreaChart.mjs +4 -3
  76. package/dist/components/AutoComplete.d.mts +5 -5
  77. package/dist/components/AutoComplete.mjs +1 -1
  78. package/dist/components/Avatar.d.mts +1 -1
  79. package/dist/components/AvatarGroup.d.mts +1 -1
  80. package/dist/components/BackTop.d.mts +2 -2
  81. package/dist/components/Badge.d.mts +4 -4
  82. package/dist/components/BarChart.d.mts +2 -2
  83. package/dist/components/BarChart.mjs +4 -3
  84. package/dist/components/Breadcrumb.d.mts +3 -3
  85. package/dist/components/Button.d.mts +3 -3
  86. package/dist/components/ButtonGroup.d.mts +1 -1
  87. package/dist/components/Calendar.d.mts +1 -1
  88. package/dist/components/Calendar.mjs +1 -1
  89. package/dist/components/Card.d.mts +2 -2
  90. package/dist/components/Cascader.d.mts +3 -3
  91. package/dist/components/Cascader.mjs +1 -1
  92. package/dist/components/ChartCanvas.d.mts +8 -4
  93. package/dist/components/ChartCanvas.mjs +1 -1
  94. package/dist/components/ChartGrid.d.mts +1 -1
  95. package/dist/components/ChartLegend.d.mts +1 -1
  96. package/dist/components/ChatWindow.d.mts +30 -12
  97. package/dist/components/ChatWindow.mjs +3 -3
  98. package/dist/components/Checkbox.d.mts +1 -1
  99. package/dist/components/Code.d.mts +33 -6
  100. package/dist/components/Code.mjs +3 -1
  101. package/dist/components/CodeEditor.d.mts +3 -3
  102. package/dist/components/Collapse.d.mts +1 -1
  103. package/dist/components/CollapsePanel.d.mts +1 -1
  104. package/dist/components/CollapsePanel.mjs +1 -1
  105. package/dist/components/ColorPicker.mjs +1 -1
  106. package/dist/components/ColorSwatch.d.mts +8 -2
  107. package/dist/components/ColorSwatch.mjs +1 -1
  108. package/dist/components/CommentThread.d.mts +62 -26
  109. package/dist/components/CommentThread.mjs +2 -2
  110. package/dist/components/Container.d.mts +1 -1
  111. package/dist/components/ContextMenu.d.mts +1 -1
  112. package/dist/components/Countdown.d.mts +2 -2
  113. package/dist/components/CronEditor.d.mts +3 -3
  114. package/dist/components/DataExport.mjs +2 -2
  115. package/dist/components/DataTableWithToolbar.d.mts +9 -9
  116. package/dist/components/DataTableWithToolbar.mjs +7 -7
  117. package/dist/components/DatePicker.d.mts +4 -4
  118. package/dist/components/Descriptions.d.mts +2 -2
  119. package/dist/components/DonutChart.d.mts +3 -3
  120. package/dist/components/DonutChart.mjs +4 -4
  121. package/dist/components/Drawer.d.mts +3 -3
  122. package/dist/components/Dropdown.d.mts +20 -1
  123. package/dist/components/Dropdown.mjs +1 -1
  124. package/dist/components/FileManager.d.mts +9 -3
  125. package/dist/components/FileManager.mjs +1 -1
  126. package/dist/components/FloatButton.d.mts +34 -4
  127. package/dist/components/FloatButton.mjs +1 -1
  128. package/dist/components/Form.d.mts +2 -2
  129. package/dist/components/FormWizard.d.mts +5 -5
  130. package/dist/components/FormWizard.mjs +1 -1
  131. package/dist/components/FunnelChart.d.mts +3 -3
  132. package/dist/components/FunnelChart.mjs +3 -3
  133. package/dist/components/Gantt.d.mts +5 -3
  134. package/dist/components/Gantt.mjs +2 -2
  135. package/dist/components/GaugeChart.d.mts +2 -2
  136. package/dist/components/GaugeChart.mjs +2 -2
  137. package/dist/components/HeatmapChart.d.mts +3 -3
  138. package/dist/components/HeatmapChart.mjs +3 -3
  139. package/dist/components/Icon.d.mts +2 -2
  140. package/dist/components/Image.d.mts +2 -2
  141. package/dist/components/Image.mjs +3 -3
  142. package/dist/components/ImageAnnotation.d.mts +5 -5
  143. package/dist/components/ImageCompare.d.mts +2 -2
  144. package/dist/components/ImageGroup.mjs +2 -2
  145. package/dist/components/ImagePreview.mjs +1 -1
  146. package/dist/components/InfiniteScroll.d.mts +3 -3
  147. package/dist/components/Input.d.mts +3 -3
  148. package/dist/components/Input.mjs +1 -1
  149. package/dist/components/InputGroup.d.mts +1 -1
  150. package/dist/components/InputNumber.d.mts +1 -1
  151. package/dist/components/InputNumber.mjs +1 -1
  152. package/dist/components/InputOTP.d.mts +5 -5
  153. package/dist/components/Kanban.mjs +2 -2
  154. package/dist/components/Kbd.d.mts +1 -1
  155. package/dist/components/LineChart.d.mts +2 -2
  156. package/dist/components/LineChart.mjs +4 -3
  157. package/dist/components/Link.d.mts +1 -1
  158. package/dist/components/List.d.mts +6 -6
  159. package/dist/components/List.mjs +2 -2
  160. package/dist/components/Loading.d.mts +6 -6
  161. package/dist/components/Loading.mjs +1 -1
  162. package/dist/components/LoadingBarContainer.d.mts +3 -3
  163. package/dist/components/MarkdownEditor.d.mts +3 -3
  164. package/dist/components/Marquee.d.mts +2 -2
  165. package/dist/components/MaskInput.d.mts +11 -5
  166. package/dist/components/MaskInput.mjs +1 -1
  167. package/dist/components/Mentions.d.mts +3 -3
  168. package/dist/components/Menu.d.mts +4 -4
  169. package/dist/components/Modal.d.mts +6 -6
  170. package/dist/components/NavigationMenu.d.mts +5 -5
  171. package/dist/components/NotificationCenter.d.mts +46 -28
  172. package/dist/components/NotificationCenter.mjs +4 -4
  173. package/dist/components/NumberKeyboard.d.mts +6 -6
  174. package/dist/components/OrgChart.d.mts +3 -3
  175. package/dist/components/OrgChart.mjs +2 -2
  176. package/dist/components/Pagination.d.mts +4 -4
  177. package/dist/components/Pagination.mjs +1 -1
  178. package/dist/components/PieChart.d.mts +3 -3
  179. package/dist/components/PieChart.mjs +3 -3
  180. package/dist/components/Popconfirm.d.mts +2 -2
  181. package/dist/components/Popconfirm.mjs +2 -2
  182. package/dist/components/Popover.d.mts +1 -1
  183. package/dist/components/Popover.mjs +2 -2
  184. package/dist/components/Progress.d.mts +3 -3
  185. package/dist/components/QRCode.d.mts +4 -13
  186. package/dist/components/QRCode.mjs +1 -1
  187. package/dist/components/RadarChart.d.mts +3 -3
  188. package/dist/components/RadarChart.mjs +3 -3
  189. package/dist/components/Radio.d.mts +1 -1
  190. package/dist/components/Radio.mjs +1 -1
  191. package/dist/components/Rate.d.mts +1 -1
  192. package/dist/components/Rate.mjs +1 -1
  193. package/dist/components/Result.d.mts +1 -1
  194. package/dist/components/RichTextEditor.d.mts +2 -2
  195. package/dist/components/Row.d.mts +1 -1
  196. package/dist/components/ScatterChart.d.mts +2 -2
  197. package/dist/components/ScatterChart.mjs +4 -3
  198. package/dist/components/ScrollArea.d.mts +2 -2
  199. package/dist/components/ScrollSpy.d.mts +3 -3
  200. package/dist/components/ScrollSpy.mjs +1 -1
  201. package/dist/components/Select.d.mts +3 -3
  202. package/dist/components/Signature.d.mts +4 -4
  203. package/dist/components/Signature.mjs +1 -1
  204. package/dist/components/Skeleton.d.mts +1 -1
  205. package/dist/components/Slider.d.mts +18 -0
  206. package/dist/components/Slider.mjs +1 -1
  207. package/dist/components/Space.d.mts +2 -2
  208. package/dist/components/SplitButton.d.mts +5 -5
  209. package/dist/components/SplitButton.mjs +2 -2
  210. package/dist/components/Splitter.d.mts +5 -5
  211. package/dist/components/Splitter.mjs +1 -1
  212. package/dist/components/Spotlight.d.mts +4 -4
  213. package/dist/components/Stepper.d.mts +7 -1
  214. package/dist/components/Stepper.mjs +1 -1
  215. package/dist/components/Steps.d.mts +3 -3
  216. package/dist/components/SunburstChart.d.mts +2 -2
  217. package/dist/components/SunburstChart.mjs +3 -3
  218. package/dist/components/Switch.d.mts +22 -6
  219. package/dist/components/Switch.mjs +1 -1
  220. package/dist/components/Table.d.mts +9 -9
  221. package/dist/components/Table.mjs +3 -3
  222. package/dist/components/Tabs.d.mts +3 -3
  223. package/dist/components/Tag.d.mts +2 -2
  224. package/dist/components/TagsInput.d.mts +5 -5
  225. package/dist/components/TaskBoard.mjs +1 -1
  226. package/dist/components/Text.d.mts +3 -3
  227. package/dist/components/Textarea.d.mts +3 -3
  228. package/dist/components/Textarea.mjs +1 -1
  229. package/dist/components/TimePicker.d.mts +4 -4
  230. package/dist/components/Timeline.d.mts +3 -3
  231. package/dist/components/Tooltip.d.mts +1 -1
  232. package/dist/components/Tooltip.mjs +2 -2
  233. package/dist/components/Tour.d.mts +2 -2
  234. package/dist/components/Tour.mjs +1 -1
  235. package/dist/components/Transfer.d.mts +5 -4
  236. package/dist/components/Transfer.mjs +1 -1
  237. package/dist/components/Tree.d.mts +4 -4
  238. package/dist/components/TreeMapChart.d.mts +2 -2
  239. package/dist/components/TreeMapChart.mjs +3 -3
  240. package/dist/components/TreeSelect.d.mts +3 -3
  241. package/dist/components/TreeSelect.mjs +1 -1
  242. package/dist/components/Upload.d.mts +2 -2
  243. package/dist/components/Upload.mjs +1 -1
  244. package/dist/components/VirtualTable.d.mts +3 -3
  245. package/dist/components/Watermark.d.mts +1 -1
  246. package/dist/composables/useChartInteraction.d.mts +5 -0
  247. package/dist/composables/useChartInteraction.mjs +1 -1
  248. package/dist/index.d.mts +1 -1
  249. package/dist/index.mjs +51 -0
  250. package/package.json +2 -2
@@ -1,6 +1,9 @@
1
+ import {
2
+ useResponsiveChartSize
3
+ } from "./chunk-UEGNXN5B.mjs";
1
4
  import {
2
5
  useChartInteraction
3
- } from "./chunk-PE5OA4YG.mjs";
6
+ } from "./chunk-FHUGOSEY.mjs";
4
7
  import {
5
8
  ChartSeries
6
9
  } from "./chunk-2ZUEXCVJ.mjs";
@@ -12,7 +15,7 @@ import {
12
15
  } from "./chunk-ZWVA7HT3.mjs";
13
16
  import {
14
17
  ChartCanvas
15
- } from "./chunk-W5RZPTFD.mjs";
18
+ } from "./chunk-SNNT64HK.mjs";
16
19
  import {
17
20
  ChartGrid
18
21
  } from "./chunk-MI6TL3CQ.mjs";
@@ -29,7 +32,6 @@ import {
29
32
  classNames,
30
33
  createLinearScale,
31
34
  getChartElementOpacity,
32
- getChartInnerRect,
33
35
  getNumberExtent,
34
36
  getStableChartGradientPrefix,
35
37
  getScatterHoverShadow,
@@ -158,6 +160,7 @@ var ScatterChart = defineComponent({
158
160
  wrapperClasses
159
161
  } = useChartInteraction({
160
162
  hoverable: computed(() => props.hoverable),
163
+ showTooltip: computed(() => props.showTooltip),
161
164
  hoveredIndexProp: () => props.hoveredIndex,
162
165
  selectable: computed(() => props.selectable),
163
166
  selectedIndexProp: () => props.selectedIndex,
@@ -168,7 +171,12 @@ var ScatterChart = defineComponent({
168
171
  getData: (index) => props.data[index],
169
172
  eventNames: { hover: "point-hover", click: "point-click" }
170
173
  });
171
- const innerRect = computed(() => getChartInnerRect(props.width, props.height, props.padding));
174
+ const { innerRect, onResolvedSizeChange } = useResponsiveChartSize(
175
+ () => props.width,
176
+ () => props.height,
177
+ () => props.padding,
178
+ () => props.responsive
179
+ );
172
180
  const xValues = computed(() => props.data.map((item) => item.x));
173
181
  const yValues = computed(() => props.data.map((item) => item.y));
174
182
  const resolvedXScale = computed(() => {
@@ -252,7 +260,8 @@ var ScatterChart = defineComponent({
252
260
  responsive: props.responsive,
253
261
  title: props.title,
254
262
  desc: props.desc,
255
- className: classNames(props.className)
263
+ className: classNames(props.className),
264
+ onResolvedSizeChange
256
265
  },
257
266
  {
258
267
  default: () => [
@@ -330,19 +339,24 @@ var ScatterChart = defineComponent({
330
339
  ...shared
331
340
  });
332
341
  }
333
- return h("path", {
334
- key: `point-${index}`,
335
- d: getScatterPointPath(props.pointStyle, point.r),
336
- transform: `translate(${point.cx},${point.cy})`,
337
- ...shared
338
- });
342
+ return h(
343
+ "g",
344
+ {
345
+ key: `point-${index}`,
346
+ transform: `translate(${point.cx},${point.cy})`
347
+ },
348
+ h("path", {
349
+ d: getScatterPointPath(props.pointStyle, point.r),
350
+ ...shared
351
+ })
352
+ );
339
353
  })
340
354
  }
341
355
  )
342
356
  ].filter(Boolean)
343
357
  }
344
358
  );
345
- const tooltip = props.showTooltip && props.hoverable ? h(ChartTooltip, {
359
+ const tooltip = props.showTooltip ? h(ChartTooltip, {
346
360
  content: tooltipContent.value,
347
361
  open: resolvedHoveredIndex.value !== null && tooltipContent.value !== "",
348
362
  x: tooltipPosition.value.x,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useChartInteraction
3
- } from "./chunk-PE5OA4YG.mjs";
3
+ } from "./chunk-FHUGOSEY.mjs";
4
4
  import {
5
5
  ChartSeries
6
6
  } from "./chunk-2ZUEXCVJ.mjs";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-SPFL55TF.mjs";
10
10
  import {
11
11
  ChartCanvas
12
- } from "./chunk-W5RZPTFD.mjs";
12
+ } from "./chunk-SNNT64HK.mjs";
13
13
  import {
14
14
  ChartLegend
15
15
  } from "./chunk-V443QIJM.mjs";
@@ -76,6 +76,7 @@ var TreeMapChart = defineComponent({
76
76
  wrapperClasses
77
77
  } = useChartInteraction({
78
78
  hoverable: computed(() => props.hoverable),
79
+ showTooltip: computed(() => props.showTooltip),
79
80
  hoveredIndexProp: () => props.hoveredIndex,
80
81
  selectable: computed(() => props.selectable),
81
82
  selectedIndexProp: () => props.selectedIndex,
@@ -219,7 +220,7 @@ var TreeMapChart = defineComponent({
219
220
  }
220
221
  }
221
222
  );
222
- const tooltip = props.showTooltip && props.hoverable ? h(ChartTooltip, {
223
+ const tooltip = props.showTooltip ? h(ChartTooltip, {
223
224
  content: tooltipContent.value,
224
225
  open: resolvedHoveredIndex.value !== null && tooltipContent.value !== "",
225
226
  x: tooltipPosition.value.x,
@@ -1,6 +1,9 @@
1
+ import {
2
+ useResponsiveChartSize
3
+ } from "./chunk-UEGNXN5B.mjs";
1
4
  import {
2
5
  useChartInteraction
3
- } from "./chunk-PE5OA4YG.mjs";
6
+ } from "./chunk-FHUGOSEY.mjs";
4
7
  import {
5
8
  ChartSeries
6
9
  } from "./chunk-2ZUEXCVJ.mjs";
@@ -12,7 +15,7 @@ import {
12
15
  } from "./chunk-ZWVA7HT3.mjs";
13
16
  import {
14
17
  ChartCanvas
15
- } from "./chunk-W5RZPTFD.mjs";
18
+ } from "./chunk-SNNT64HK.mjs";
16
19
  import {
17
20
  ChartGrid
18
21
  } from "./chunk-MI6TL3CQ.mjs";
@@ -29,7 +32,6 @@ import {
29
32
  createLinePath,
30
33
  createPointScale,
31
34
  getChartElementOpacity,
32
- getChartInnerRect,
33
35
  getStableChartGradientPrefix,
34
36
  getNumberExtent,
35
37
  linePointTransitionClasses,
@@ -255,7 +257,12 @@ var LineChart = defineComponent({
255
257
  const hoveredPointInfo = ref(null);
256
258
  const tooltipPosition = ref({ x: 0, y: 0 });
257
259
  const gradientPrefix = getStableChartGradientPrefix("line", useId());
258
- const innerRect = computed(() => getChartInnerRect(props.width, props.height, props.padding));
260
+ const { innerRect, onResolvedSizeChange } = useResponsiveChartSize(
261
+ () => props.width,
262
+ () => props.height,
263
+ () => props.padding,
264
+ () => props.responsive
265
+ );
259
266
  const resolvedSeries = computed(
260
267
  () => resolveSeriesData(props.series, props.data, {
261
268
  color: props.lineColor,
@@ -273,6 +280,7 @@ var LineChart = defineComponent({
273
280
  wrapperClasses
274
281
  } = useChartInteraction({
275
282
  hoverable: computed(() => props.hoverable),
283
+ showTooltip: computed(() => props.showTooltip),
276
284
  hoveredIndexProp: () => props.hoveredIndex,
277
285
  selectable: computed(() => props.selectable),
278
286
  selectedIndexProp: () => props.selectedIndex,
@@ -368,19 +376,23 @@ var LineChart = defineComponent({
368
376
  const handlePointMouseEnter = (seriesIndex, pointIndex, event) => {
369
377
  hoveredPointInfo.value = { seriesIndex, pointIndex };
370
378
  tooltipPosition.value = { x: event.clientX, y: event.clientY };
371
- emit(
372
- "point-hover",
373
- seriesIndex,
374
- pointIndex,
375
- resolvedSeries.value[seriesIndex]?.data[pointIndex]
376
- );
379
+ if (props.hoverable) {
380
+ emit(
381
+ "point-hover",
382
+ seriesIndex,
383
+ pointIndex,
384
+ resolvedSeries.value[seriesIndex]?.data[pointIndex]
385
+ );
386
+ }
377
387
  };
378
388
  const handlePointMouseMove = (event) => {
379
389
  tooltipPosition.value = { x: event.clientX, y: event.clientY };
380
390
  };
381
391
  const handlePointMouseLeave = () => {
382
392
  hoveredPointInfo.value = null;
383
- emit("point-hover", null, null, null);
393
+ if (props.hoverable) {
394
+ emit("point-hover", null, null, null);
395
+ }
384
396
  };
385
397
  const showPointTooltipFromElement = (el, seriesIndex, pointIndex) => {
386
398
  if (!props.hoverable) return;
@@ -411,6 +423,7 @@ var LineChart = defineComponent({
411
423
  };
412
424
  return () => {
413
425
  const pointClickable = props.selectable || typeof instance?.vnode.props?.onPointClick === "function";
426
+ const trackPointHover = props.showTooltip || props.hoverable;
414
427
  const chart = h(
415
428
  ChartCanvas,
416
429
  {
@@ -420,7 +433,8 @@ var LineChart = defineComponent({
420
433
  responsive: props.responsive,
421
434
  title: props.title,
422
435
  desc: props.desc,
423
- className: classNames(props.className)
436
+ className: classNames(props.className),
437
+ onResolvedSizeChange
424
438
  },
425
439
  {
426
440
  default: () => [
@@ -627,9 +641,9 @@ var LineChart = defineComponent({
627
641
  tabindex: pointInteractive ? 0 : void 0,
628
642
  "data-point-index": point.pointIndex,
629
643
  "data-series-key": sd.seriesKey,
630
- onMouseenter: props.hoverable ? (e) => handlePointMouseEnter(sd.seriesIndex, point.pointIndex, e) : void 0,
631
- onMousemove: props.hoverable ? handlePointMouseMove : void 0,
632
- onMouseleave: props.hoverable ? handlePointMouseLeave : void 0,
644
+ onMouseenter: trackPointHover ? (e) => handlePointMouseEnter(sd.seriesIndex, point.pointIndex, e) : void 0,
645
+ onMousemove: trackPointHover ? handlePointMouseMove : void 0,
646
+ onMouseleave: trackPointHover ? handlePointMouseLeave : void 0,
633
647
  onClick: pointClickable ? (e) => {
634
648
  e.stopPropagation();
635
649
  handlePointClick(sd.seriesIndex, point.pointIndex);
@@ -99,10 +99,7 @@ var Radio = defineComponent({
99
99
  });
100
100
  const isInGroup = computed(() => !!groupContext.value);
101
101
  const actualSize = computed(() => props.size || groupContext.value?.size || "md");
102
- const actualDisabled = computed(() => {
103
- if (props.disabled !== void 0) return props.disabled;
104
- return groupContext.value?.disabled || false;
105
- });
102
+ const actualDisabled = computed(() => props.disabled || groupContext.value?.disabled || false);
106
103
  const actualName = computed(() => props.name || groupContext.value?.name);
107
104
  const isChecked = computed(() => {
108
105
  if (isCheckedControlled.value) return props.modelValue;
@@ -63,7 +63,10 @@ var MaskInput = defineComponent({
63
63
  readonly: Boolean,
64
64
  /** Whether to show a clear button when the input has value */
65
65
  clearable: Boolean,
66
- /** Input name attribute */
66
+ /**
67
+ * Input name attribute. When set, a hidden input with this name submits the
68
+ * raw (unmasked) value; the visible field displays the mask and has no name.
69
+ */
67
70
  name: String,
68
71
  /** Input id attribute */
69
72
  id: String,
@@ -200,7 +203,6 @@ var MaskInput = defineComponent({
200
203
  placeholder: props.placeholder,
201
204
  disabled: props.disabled,
202
205
  readonly: props.readonly,
203
- name: props.name,
204
206
  id: props.id,
205
207
  autocomplete: props.autoComplete,
206
208
  autofocus: props.autoFocus,
@@ -214,11 +216,21 @@ var MaskInput = defineComponent({
214
216
  onBlur: handleBlur
215
217
  })
216
218
  ];
219
+ if (props.name) {
220
+ children.push(
221
+ h("input", {
222
+ key: "hidden",
223
+ type: "hidden",
224
+ name: props.name,
225
+ value: rawValue.value
226
+ })
227
+ );
228
+ }
217
229
  if (activeError) {
218
230
  children.push(
219
231
  h(
220
232
  "div",
221
- { id: errorMsgId, class: getInputErrorClasses(props.size) },
233
+ { id: errorMsgId, class: getInputErrorClasses(props.size), "aria-live": "polite" },
222
234
  effectiveErrorMessage.value
223
235
  )
224
236
  );
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useChartInteraction
3
- } from "./chunk-PE5OA4YG.mjs";
3
+ } from "./chunk-FHUGOSEY.mjs";
4
4
  import {
5
5
  ChartSeries
6
6
  } from "./chunk-2ZUEXCVJ.mjs";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-SPFL55TF.mjs";
10
10
  import {
11
11
  ChartCanvas
12
- } from "./chunk-W5RZPTFD.mjs";
12
+ } from "./chunk-SNNT64HK.mjs";
13
13
  import {
14
14
  ChartLegend
15
15
  } from "./chunk-V443QIJM.mjs";
@@ -188,6 +188,7 @@ var PieChart = defineComponent({
188
188
  wrapperClasses
189
189
  } = useChartInteraction({
190
190
  hoverable: computed(() => props.hoverable),
191
+ showTooltip: computed(() => props.showTooltip),
191
192
  hoveredIndexProp: () => props.hoveredIndex,
192
193
  selectable: computed(() => props.selectable),
193
194
  selectedIndexProp: () => props.selectedIndex,
@@ -392,7 +393,7 @@ var PieChart = defineComponent({
392
393
  }
393
394
  }
394
395
  );
395
- const tooltip = props.showTooltip && props.hoverable ? h(ChartTooltip, {
396
+ const tooltip = props.showTooltip ? h(ChartTooltip, {
396
397
  content: tooltipContent.value,
397
398
  open: resolvedHoveredIndex.value !== null && tooltipContent.value !== "",
398
399
  x: tooltipPosition.value.x,
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-BZ6MVFV7.mjs";
4
4
  import {
5
5
  Radio
6
- } from "./chunk-6BDDX2R4.mjs";
6
+ } from "./chunk-73Z7N7VG.mjs";
7
7
  import {
8
8
  Pagination
9
- } from "./chunk-2LIIMWBR.mjs";
9
+ } from "./chunk-OYU47A57.mjs";
10
10
  import {
11
11
  Empty
12
12
  } from "./chunk-SJINC5NF.mjs";
@@ -128,8 +128,8 @@ var tableProps = {
128
128
  pagination: {
129
129
  type: [Object, Boolean],
130
130
  default: () => ({
131
- current: 1,
132
- pageSize: 10,
131
+ defaultCurrent: 1,
132
+ defaultPageSize: 10,
133
133
  total: 0,
134
134
  pageSizeOptions: [10, 20, 50, 100],
135
135
  showSizeChanger: true,
@@ -398,7 +398,13 @@ function useTableState(props, emit, measuredColumnWidths) {
398
398
  }
399
399
  if (sortState.value.key && sortState.value.direction) {
400
400
  const column = columnByKey.value[sortState.value.key];
401
- data = sortData(data, sortState.value.key, sortState.value.direction, column?.sortFn);
401
+ data = sortData(
402
+ data,
403
+ sortState.value.key,
404
+ sortState.value.direction,
405
+ column?.sortFn,
406
+ props.columns
407
+ );
402
408
  }
403
409
  return data;
404
410
  });
@@ -764,7 +770,8 @@ import {
764
770
  getFixedColumnStyle,
765
771
  getCheckboxCellClasses,
766
772
  getExpandIconCellClasses,
767
- formatTableSortByText
773
+ formatTableSortByText,
774
+ tableSortButtonClasses
768
775
  } from "@expcat/tigercat-core";
769
776
  function renderTableHeader(ctx, props, slots, labels) {
770
777
  const headerCells = [];
@@ -805,14 +812,31 @@ function renderTableHeader(ctx, props, slots, labels) {
805
812
  width: typeof column.width === "number" ? `${column.width}px` : column.width
806
813
  } : void 0;
807
814
  const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
808
- const headerContent = [];
815
+ const titleContent = [];
809
816
  const slotContent = slots[`header-${column.key}`]?.();
810
817
  if (slotContent && slotContent.length > 0) {
811
- headerContent.push(...slotContent);
818
+ titleContent.push(...slotContent);
812
819
  } else if (column.renderHeader) {
813
- headerContent.push(column.renderHeader());
820
+ titleContent.push(column.renderHeader());
821
+ } else {
822
+ titleContent.push(column.title);
823
+ }
824
+ const headerContent = [];
825
+ if (column.sortable) {
826
+ headerContent.push(
827
+ h2(
828
+ "button",
829
+ {
830
+ type: "button",
831
+ "data-tiger-table-sort": "",
832
+ class: tableSortButtonClasses,
833
+ onClick: () => ctx.handleSort(column.key)
834
+ },
835
+ [...titleContent, SortIcon(sortDirection)]
836
+ )
837
+ );
814
838
  } else {
815
- headerContent.push(column.title);
839
+ headerContent.push(...titleContent);
816
840
  }
817
841
  if (props.columnLockable) {
818
842
  headerContent.push(
@@ -837,9 +861,6 @@ function renderTableHeader(ctx, props, slots, labels) {
837
861
  )
838
862
  );
839
863
  }
840
- if (column.sortable) {
841
- headerContent.push(SortIcon(sortDirection));
842
- }
843
864
  headerCells.push(
844
865
  h2(
845
866
  "th",
@@ -865,8 +886,7 @@ function renderTableHeader(ctx, props, slots, labels) {
865
886
  draggable: props.columnDraggable ? "true" : void 0,
866
887
  onDragstart: props.columnDraggable ? () => ctx.handleDragStart(column.key) : void 0,
867
888
  onDragover: props.columnDraggable ? (e) => e.preventDefault() : void 0,
868
- onDrop: props.columnDraggable ? () => ctx.handleDrop(column.key) : void 0,
869
- onClick: column.sortable ? () => ctx.handleSort(column.key) : void 0
889
+ onDrop: props.columnDraggable ? () => ctx.handleDrop(column.key) : void 0
870
890
  },
871
891
  [
872
892
  h2("div", { class: "flex items-center gap-2" }, headerContent),
@@ -30,11 +30,14 @@ import {
30
30
  kanbanSwimlaneCollapsedClasses,
31
31
  kanbanAddColumnClasses,
32
32
  filterColumns,
33
+ filterCards,
33
34
  groupBySwimlane,
34
35
  getColumnCardCount,
35
36
  moveCard,
37
+ mapVisibleCardIndexToSource,
36
38
  reorderColumns,
37
39
  isWipExceeded,
40
+ appendDefaultTaskBoardCard,
38
41
  createTaskBoardDragController,
39
42
  createDefaultDragSnapshot
40
43
  } from "@expcat/tigercat-core";
@@ -139,10 +142,22 @@ var TaskBoard = defineComponent({
139
142
  innerColumns.value = next;
140
143
  emit("update:columns", next);
141
144
  };
145
+ const addCardToColumn = (columnId) => {
146
+ emit("card-add", columnId);
147
+ if (props.onCardAdd == null) {
148
+ updateColumns(appendDefaultTaskBoardCard(currentColumns.value, columnId));
149
+ }
150
+ };
142
151
  const dragSnap = ref(createDefaultDragSnapshot());
143
152
  const boardRef = ref(null);
144
153
  const applyCardMove = async (cardId, fromColumnId, toColumnId, toIdx) => {
145
- const result = moveCard(currentColumns.value, cardId, fromColumnId, toColumnId, toIdx, {
154
+ const sourceCol = currentColumns.value.find((c) => c.id === toColumnId);
155
+ const mappedIdx = sourceCol == null ? toIdx : mapVisibleCardIndexToSource(
156
+ sourceCol.cards,
157
+ filterCards(sourceCol.cards, props.filterText || ""),
158
+ toIdx
159
+ );
160
+ const result = moveCard(currentColumns.value, cardId, fromColumnId, toColumnId, mappedIdx, {
146
161
  enforceWipLimit: props.enforceWipLimit
147
162
  });
148
163
  if (!result) return;
@@ -395,12 +410,12 @@ var TaskBoard = defineComponent({
395
410
  role: "button",
396
411
  tabindex: 0,
397
412
  onClick: () => {
398
- emit("card-add", column.id);
413
+ addCardToColumn(column.id);
399
414
  },
400
415
  onKeydown: (e) => {
401
416
  if (e.key === "Enter" || e.key === " ") {
402
417
  e.preventDefault();
403
- emit("card-add", column.id);
418
+ addCardToColumn(column.id);
404
419
  }
405
420
  }
406
421
  },
@@ -271,6 +271,7 @@ var InputNumber = defineComponent({
271
271
  });
272
272
  onBeforeUnmount(() => repeatController.stop());
273
273
  return () => {
274
+ const { class: _attrClass, style: attrStyle, ...restAttrs } = attrs;
274
275
  const children = [];
275
276
  if (props.controls && props.controlsPosition === "both") {
276
277
  children.push(
@@ -307,6 +308,7 @@ var InputNumber = defineComponent({
307
308
  }
308
309
  children.push(
309
310
  h("input", {
311
+ ...restAttrs,
310
312
  ref: inputRef,
311
313
  type: "text",
312
314
  inputmode: "decimal",
@@ -423,7 +425,8 @@ var InputNumber = defineComponent({
423
425
  return h(
424
426
  "div",
425
427
  {
426
- class: wrapperClasses.value
428
+ class: wrapperClasses.value,
429
+ style: attrStyle
427
430
  },
428
431
  children
429
432
  );
@@ -26,7 +26,6 @@ var QRCode = defineComponent({
26
26
  size: { type: Number, default: 128 },
27
27
  color: { type: String, default: "#000000" },
28
28
  bgColor: { type: String, default: "#ffffff" },
29
- level: { type: String, default: "M" },
30
29
  status: { type: String, default: "active" },
31
30
  className: { type: String, default: void 0 },
32
31
  locale: { type: Object, default: void 0 }
@@ -227,12 +227,15 @@ var FormWizard = defineComponent({
227
227
  setCurrent(target);
228
228
  };
229
229
  const handleStepChange = async (nextIndex) => {
230
- if (nextIndex === currentIndex.value || props.steps[nextIndex]?.disabled) return;
231
- if (nextIndex > currentIndex.value) {
230
+ if (nextIndex === currentIndex.value) return;
231
+ const direction = nextIndex > currentIndex.value ? 1 : -1;
232
+ if (direction === 1) {
232
233
  const ok = await runBeforeNext();
233
234
  if (!ok) return;
234
235
  }
235
- setCurrent(nextIndex);
236
+ const target = findNextUnskipped(nextIndex, direction);
237
+ if (target === currentIndex.value) return;
238
+ setCurrent(target);
236
239
  };
237
240
  const renderContent = () => {
238
241
  if (!currentStep.value) {
@@ -1,9 +1,12 @@
1
1
  import {
2
2
  TaskBoard
3
- } from "./chunk-EGIMTTZA.mjs";
3
+ } from "./chunk-BOHE5URZ.mjs";
4
4
 
5
5
  // src/components/Kanban.ts
6
- import { defineComponent, h } from "vue";
6
+ import { defineComponent, h, ref } from "vue";
7
+ import {
8
+ appendDefaultTaskBoardCard
9
+ } from "@expcat/tigercat-core";
7
10
  var Kanban = defineComponent({
8
11
  name: "TigerKanban",
9
12
  inheritAttrs: false,
@@ -59,7 +62,14 @@ var Kanban = defineComponent({
59
62
  },
60
63
  emits: ["card-move", "column-move", "update:columns", "card-add", "column-add"],
61
64
  setup(props, { emit, attrs, slots }) {
65
+ const pendingColumns = ref(void 0);
62
66
  const handleCardAdd = (colId) => {
67
+ if (props.onCardAdd == null) {
68
+ const source = props.columns ?? pendingColumns.value ?? props.defaultColumns;
69
+ const next = appendDefaultTaskBoardCard(source, colId);
70
+ pendingColumns.value = next;
71
+ emit("update:columns", next);
72
+ }
63
73
  props.onCardAdd?.(colId);
64
74
  emit("card-add", colId);
65
75
  };
@@ -67,14 +77,13 @@ var Kanban = defineComponent({
67
77
  TaskBoard,
68
78
  {
69
79
  ...attrs,
70
- columns: props.columns,
80
+ columns: props.columns !== void 0 ? props.columns : pendingColumns.value,
71
81
  defaultColumns: props.defaultColumns,
72
82
  draggable: props.draggable,
73
83
  columnDraggable: props.columnDraggable,
74
84
  enforceWipLimit: props.enforceWipLimit,
75
85
  beforeCardMove: props.beforeCardMove,
76
86
  beforeColumnMove: props.beforeColumnMove,
77
- // Only set onCardAdd when needed — its presence affects button visibility
78
87
  onCardAdd: props.allowAddCard || props.onCardAdd ? handleCardAdd : void 0,
79
88
  filterText: props.filterText,
80
89
  hiddenColumns: props.hiddenColumns,
@@ -88,7 +97,10 @@ var Kanban = defineComponent({
88
97
  style: props.style,
89
98
  "onCard-move": (e) => emit("card-move", e),
90
99
  "onColumn-move": (e) => emit("column-move", e),
91
- "onUpdate:columns": (cols) => emit("update:columns", cols),
100
+ "onUpdate:columns": (cols) => {
101
+ pendingColumns.value = cols;
102
+ emit("update:columns", cols);
103
+ },
92
104
  "onColumn-add": () => emit("column-add")
93
105
  },
94
106
  slots