vue-data-ui 2.4.10 → 2.4.12

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 (157) hide show
  1. package/README.md +25 -0
  2. package/dist/{Arrow-CM_kK1lh.js → Arrow-CGKCROwz.js} +1 -1
  3. package/dist/{Arrow-DUr4i9t2.cjs → Arrow-CtkFVr5U.cjs} +1 -1
  4. package/dist/{BaseIcon-CAU2cQG0.js → BaseIcon-C4ndCspW.js} +1 -1
  5. package/dist/{BaseIcon-DGcywBgz.cjs → BaseIcon-CLoM8DDe.cjs} +1 -1
  6. package/dist/{DataTable-BGBoMvME.cjs → DataTable-C1e5i-AQ.cjs} +1 -1
  7. package/dist/{DataTable-DlskIWF5.js → DataTable-CveCk6xW.js} +2 -2
  8. package/dist/{Legend-CSYqCPTm.js → Legend-DDWzCGWe.js} +1 -1
  9. package/dist/{Legend-B40iHzw3.cjs → Legend-XfQwPnB6.cjs} +1 -1
  10. package/dist/{PackageVersion-DH0d8pMI.js → PackageVersion-Bi8RUX5W.js} +1 -1
  11. package/dist/{PackageVersion-BQj9e8Pe.cjs → PackageVersion-BzA9shEH.cjs} +1 -1
  12. package/dist/{PenAndPaper-BY24yHU3.js → PenAndPaper-DnMUcq2C.js} +2 -2
  13. package/dist/{PenAndPaper-CT1cbWxJ.cjs → PenAndPaper-DolOORON.cjs} +1 -1
  14. package/dist/{Shape-D_HmNdly.js → Shape-BvB4qzcw.js} +1 -1
  15. package/dist/{Shape-DCM4mNbd.cjs → Shape-CmAme9xi.cjs} +1 -1
  16. package/dist/{Slicer-CCdYT_l-.cjs → Slicer-BVuY0EjX.cjs} +1 -1
  17. package/dist/{Slicer-CWt_RFCu.js → Slicer-Be_ldy79.js} +2 -2
  18. package/dist/{Title-Mdlm-Z1o.js → Title-CAfojmIe.js} +1 -1
  19. package/dist/{Title-BUfOW_RU.cjs → Title-CYDoc6j3.cjs} +1 -1
  20. package/dist/{Tooltip-jO6bDIPj.cjs → Tooltip-BABZKovD.cjs} +1 -1
  21. package/dist/{Tooltip-Jc-upaDj.js → Tooltip-v1xcr7vF.js} +1 -1
  22. package/dist/{index-DK5d18KK.js → index-CFa1LJja.js} +1265 -1195
  23. package/dist/index-KDxAXZXP.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +18 -0
  26. package/dist/types/vue-data-ui.d.ts +18 -0
  27. package/dist/{useNestedProp-B0n5mAli.cjs → useNestedProp-CXjSKjKD.cjs} +1 -1
  28. package/dist/{useNestedProp-ClXcrtps.js → useNestedProp-DtAqKb0W.js} +1 -1
  29. package/dist/{usePrinter-DGDIrVlD.js → usePrinter-DEvTXkt_.js} +1 -1
  30. package/dist/{usePrinter-NqofNL0V.cjs → usePrinter-l7v2Rcgc.cjs} +1 -1
  31. package/dist/{vue-data-ui-BfhnPKln.cjs → vue-data-ui-C1RPDTzl.cjs} +1 -1
  32. package/dist/{vue-data-ui-lH7ymNyt.js → vue-data-ui-CXYOFCkg.js} +58 -58
  33. package/dist/vue-data-ui.cjs +1 -1
  34. package/dist/vue-data-ui.js +11 -11
  35. package/dist/{vue-ui-3d-bar-DqwELWxm.cjs → vue-ui-3d-bar-BCaGJcxZ.cjs} +1 -1
  36. package/dist/{vue-ui-3d-bar-CoVF3XOc.js → vue-ui-3d-bar-BSiHb8c-.js} +9 -9
  37. package/dist/{vue-ui-accordion-BPPv4_ip.js → vue-ui-accordion-BjK5Zqcp.js} +3 -3
  38. package/dist/{vue-ui-accordion-Cs1ai6jc.cjs → vue-ui-accordion-D5b-rLq8.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-C53sStsM.js → vue-ui-age-pyramid-DaAUzEm9.js} +10 -10
  40. package/dist/{vue-ui-age-pyramid-3C4d-_GM.cjs → vue-ui-age-pyramid-DfYUkpdC.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-k76x9J6j.js → vue-ui-annotator-BdKHB-q4.js} +1 -1
  42. package/dist/{vue-ui-annotator-_Q0ZIzn8.cjs → vue-ui-annotator-Cb0lPmzD.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-jgSYPjBF.js → vue-ui-bullet-C-nXv9dy.js} +8 -8
  44. package/dist/{vue-ui-bullet-vlz1aeyd.cjs → vue-ui-bullet-wx_gocM4.cjs} +1 -1
  45. package/dist/{vue-ui-candlestick-4E2zfgXm.cjs → vue-ui-candlestick-DB00WcCz.cjs} +1 -1
  46. package/dist/{vue-ui-candlestick-C5WvA_0-.js → vue-ui-candlestick-DWO7x9nX.js} +11 -11
  47. package/dist/{vue-ui-carousel-table-BGhnNK69.js → vue-ui-carousel-table-BLBPwKS8.js} +4 -4
  48. package/dist/{vue-ui-carousel-table-Dvv07d2C.cjs → vue-ui-carousel-table-F-DEBome.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-CS3-u4Ni.js → vue-ui-chestnut-CXlm92u0.js} +8 -8
  50. package/dist/{vue-ui-chestnut-BN0WYuYI.cjs → vue-ui-chestnut-CzFwENN8.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-CBzNiBah.cjs → vue-ui-cursor-DJLKYGcb.cjs} +1 -1
  52. package/dist/{vue-ui-cursor-CvO35XOa.js → vue-ui-cursor-D_pO4Spk.js} +2 -2
  53. package/dist/{vue-ui-dashboard-B_wLH-4X.cjs → vue-ui-dashboard-4NILx623.cjs} +1 -1
  54. package/dist/{vue-ui-dashboard-CxcVLbE6.js → vue-ui-dashboard-COKACbCL.js} +2 -2
  55. package/dist/{vue-ui-digits-BGSghuCv.js → vue-ui-digits-BPL49_3d.js} +2 -2
  56. package/dist/{vue-ui-digits-B7Fl83L7.cjs → vue-ui-digits-BTTzz0k1.cjs} +1 -1
  57. package/dist/{vue-ui-donut-DOpR22Ej.cjs → vue-ui-donut-DcEFUd-o.cjs} +1 -1
  58. package/dist/{vue-ui-donut-dwvOwA-U.js → vue-ui-donut-DqJKys7z.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-5uLcYRnw.cjs → vue-ui-donut-evolution-BJhAsLVn.cjs} +1 -1
  60. package/dist/{vue-ui-donut-evolution-VOiW2ObU.js → vue-ui-donut-evolution-CYsUMYt3.js} +11 -11
  61. package/dist/{vue-ui-dumbbell-C0MpVaFs.js → vue-ui-dumbbell-Be6aaQry.js} +10 -10
  62. package/dist/{vue-ui-dumbbell-9q9h1dDn.cjs → vue-ui-dumbbell-By2gkcbi.cjs} +1 -1
  63. package/dist/{vue-ui-flow-Cq4LCfPc.js → vue-ui-flow-Bu2IHLu9.js} +9 -9
  64. package/dist/{vue-ui-flow-CHwAarVU.cjs → vue-ui-flow-CJNjrSDE.cjs} +1 -1
  65. package/dist/{vue-ui-galaxy-B4CfayH0.js → vue-ui-galaxy--W8nCy3k.js} +11 -11
  66. package/dist/{vue-ui-galaxy-Cnvl-yLA.cjs → vue-ui-galaxy-Bl6v7ahB.cjs} +1 -1
  67. package/dist/{vue-ui-gauge-CaobjymM.js → vue-ui-gauge-CAKo27_R.js} +7 -7
  68. package/dist/{vue-ui-gauge-BjJLKF-b.cjs → vue-ui-gauge-D9dkzTLj.cjs} +1 -1
  69. package/dist/{vue-ui-gizmo-_y5hJB9C.cjs → vue-ui-gizmo-BnrcwQ_f.cjs} +1 -1
  70. package/dist/{vue-ui-gizmo-Cj8gfmZ2.js → vue-ui-gizmo-CGSp6322.js} +3 -3
  71. package/dist/{vue-ui-heatmap-BpC1gF0u.cjs → vue-ui-heatmap-5NsMNQC1.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-D21A-6Uy.js → vue-ui-heatmap-CGiaD-XX.js} +10 -10
  73. package/dist/{vue-ui-kpi-BcXppcHM.cjs → vue-ui-kpi-DcvKKcCZ.cjs} +1 -1
  74. package/dist/{vue-ui-kpi-BsRb8jt8.js → vue-ui-kpi-_o8oGkDo.js} +3 -3
  75. package/dist/{vue-ui-mini-loader-azeChSwS.cjs → vue-ui-mini-loader-BnWpe-Jx.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-DtrX9TLF.js → vue-ui-mini-loader-BwahnZ5M.js} +2 -2
  77. package/dist/{vue-ui-molecule-vi8RLRaQ.js → vue-ui-molecule-DW45rSTG.js} +11 -11
  78. package/dist/{vue-ui-molecule-nZnahWmt.cjs → vue-ui-molecule-EI0QZuPn.cjs} +1 -1
  79. package/dist/{vue-ui-mood-radar-CEaUUawh.cjs → vue-ui-mood-radar-Bgunn4sw.cjs} +1 -1
  80. package/dist/{vue-ui-mood-radar-DL1kGEqS.js → vue-ui-mood-radar-Sia4EwXF.js} +11 -11
  81. package/dist/{vue-ui-nested-donuts-Dbw6EGVj.js → vue-ui-nested-donuts-Cf7hGnwG.js} +11 -11
  82. package/dist/{vue-ui-nested-donuts-BKORKmdq.cjs → vue-ui-nested-donuts-tWesxUCT.cjs} +1 -1
  83. package/dist/{vue-ui-onion-DWDZ6qgP.js → vue-ui-onion-BaZ_wTbo.js} +11 -11
  84. package/dist/{vue-ui-onion-BUbTjewt.cjs → vue-ui-onion-C6MaVU1K.cjs} +1 -1
  85. package/dist/{vue-ui-parallel-coordinate-plot-BCIse3jy.js → vue-ui-parallel-coordinate-plot-BtIKgxvv.js} +12 -12
  86. package/dist/{vue-ui-parallel-coordinate-plot-BQbTgBLZ.cjs → vue-ui-parallel-coordinate-plot-DrV9F60N.cjs} +1 -1
  87. package/dist/vue-ui-quadrant-Cle11mCD.cjs +1 -0
  88. package/dist/{vue-ui-quadrant-DG7cPvvY.js → vue-ui-quadrant-L6SfZjpt.js} +130 -123
  89. package/dist/{vue-ui-quick-chart-Dir7Bzan.cjs → vue-ui-quick-chart-CqS3PeU-.cjs} +1 -1
  90. package/dist/{vue-ui-quick-chart-BpI2l7KR.js → vue-ui-quick-chart-DYu27_hL.js} +9 -9
  91. package/dist/{vue-ui-radar-kJVA04dK.js → vue-ui-radar-BHirHWDO.js} +12 -12
  92. package/dist/{vue-ui-radar-CJJsi6T1.cjs → vue-ui-radar-DSrgQE0m.cjs} +1 -1
  93. package/dist/{vue-ui-rating-DePJC_kO.js → vue-ui-rating-BBRC3Fex.js} +11 -11
  94. package/dist/{vue-ui-rating-D1AwQnIf.cjs → vue-ui-rating-BJHo9SsT.cjs} +1 -1
  95. package/dist/{vue-ui-relation-circle-CBEVCM1z.js → vue-ui-relation-circle-CpGiH1jp.js} +7 -7
  96. package/dist/{vue-ui-relation-circle-C2I_udoT.cjs → vue-ui-relation-circle-DzRQKnES.cjs} +1 -1
  97. package/dist/{vue-ui-rings-8z2SwA9Z.js → vue-ui-rings-B7tPoi26.js} +11 -11
  98. package/dist/{vue-ui-rings-Bya_txxb.cjs → vue-ui-rings-DT_F10Cs.cjs} +1 -1
  99. package/dist/vue-ui-scatter-B5G15tC4.cjs +1 -0
  100. package/dist/{vue-ui-scatter-CpSoThxp.js → vue-ui-scatter-CTk2BZ_d.js} +131 -127
  101. package/dist/{vue-ui-screenshot-m4dgEnYd.js → vue-ui-screenshot-CZr_osbk.js} +1 -1
  102. package/dist/{vue-ui-screenshot-B5ZTnb9m.cjs → vue-ui-screenshot-DRe3Coog.cjs} +1 -1
  103. package/dist/{vue-ui-skeleton-BRE3meIp.js → vue-ui-skeleton-CHLsECtI.js} +20 -20
  104. package/dist/{vue-ui-skeleton-DtwM9cxs.cjs → vue-ui-skeleton-CdeslaC3.cjs} +1 -1
  105. package/dist/{vue-ui-smiley-Dr-w5W-S.cjs → vue-ui-smiley-BcgpnSoO.cjs} +1 -1
  106. package/dist/{vue-ui-smiley-DKfb2gzh.js → vue-ui-smiley-esJYBMWC.js} +2 -2
  107. package/dist/vue-ui-spark-trend-B744D8Vm.cjs +1 -0
  108. package/dist/vue-ui-spark-trend-CLLnG7sn.js +282 -0
  109. package/dist/{vue-ui-sparkbar-CBJzI2Y6.js → vue-ui-sparkbar-DP4IIvXP.js} +4 -4
  110. package/dist/{vue-ui-sparkbar-CSIYw26l.cjs → vue-ui-sparkbar-sM0UolJY.cjs} +1 -1
  111. package/dist/{vue-ui-sparkgauge-ChJrYz-j.cjs → vue-ui-sparkgauge-CdCvjUt1.cjs} +1 -1
  112. package/dist/{vue-ui-sparkgauge-WVawdMgw.js → vue-ui-sparkgauge-DxXLjj0m.js} +4 -4
  113. package/dist/{vue-ui-sparkhistogram-B_rv8cdu.cjs → vue-ui-sparkhistogram-BKH_x2YZ.cjs} +1 -1
  114. package/dist/{vue-ui-sparkhistogram-DjOfNle3.js → vue-ui-sparkhistogram-eiNFDU7_.js} +5 -5
  115. package/dist/{vue-ui-sparkline-CDqZbqFZ.js → vue-ui-sparkline-5JHLo5sp.js} +134 -124
  116. package/dist/vue-ui-sparkline-B2O2Ltg7.cjs +1 -0
  117. package/dist/{vue-ui-sparkstackbar-uxG--V1I.cjs → vue-ui-sparkstackbar-5yePKW_I.cjs} +1 -1
  118. package/dist/{vue-ui-sparkstackbar-CRXbTlb3.js → vue-ui-sparkstackbar-R08GxmHX.js} +5 -5
  119. package/dist/{vue-ui-stackbar-hVWTvq2q.cjs → vue-ui-stackbar-7KA0-619.cjs} +1 -1
  120. package/dist/{vue-ui-stackbar-C2_GdpuG.js → vue-ui-stackbar-DLdmXSKP.js} +12 -12
  121. package/dist/{vue-ui-strip-plot--PGjbjCQ.js → vue-ui-strip-plot-5JzjqmSe.js} +11 -11
  122. package/dist/{vue-ui-strip-plot-Df3v8CjI.cjs → vue-ui-strip-plot-iJg6nab9.cjs} +1 -1
  123. package/dist/{vue-ui-table-CnOw_aIw.cjs → vue-ui-table-BwjCx5AH.cjs} +1 -1
  124. package/dist/{vue-ui-table-CaEHdo-i.js → vue-ui-table-DBuVWV5Y.js} +10 -10
  125. package/dist/{vue-ui-table-heatmap-DGY-jDJp.js → vue-ui-table-heatmap-DYCUCDMQ.js} +21 -21
  126. package/dist/{vue-ui-table-heatmap-DBP8PC6T.cjs → vue-ui-table-heatmap-_bASSmfs.cjs} +1 -1
  127. package/dist/{vue-ui-table-sparkline-DXg8PsM9.cjs → vue-ui-table-sparkline-BEJ__c2i.cjs} +1 -1
  128. package/dist/{vue-ui-table-sparkline-DgX8QjmZ.js → vue-ui-table-sparkline-BvozgKWZ.js} +16 -16
  129. package/dist/{vue-ui-thermometer-B8sDrFQi.js → vue-ui-thermometer-1HmsfwA6.js} +7 -7
  130. package/dist/{vue-ui-thermometer-dTugfFAc.cjs → vue-ui-thermometer-Dc49W_uX.cjs} +1 -1
  131. package/dist/{vue-ui-timer-Bk7NwPQj.cjs → vue-ui-timer-CzsWb_ok.cjs} +1 -1
  132. package/dist/{vue-ui-timer-BCdkpEqq.js → vue-ui-timer-ccFYaDXI.js} +5 -5
  133. package/dist/{vue-ui-tiremarks-C1jy9rfy.js → vue-ui-tiremarks-CMQ6uKOm.js} +7 -7
  134. package/dist/{vue-ui-tiremarks-D-feFYrh.cjs → vue-ui-tiremarks-CqjOSr6y.cjs} +1 -1
  135. package/dist/{vue-ui-treemap-B9waqwni.cjs → vue-ui-treemap-CLTdGsvf.cjs} +1 -1
  136. package/dist/{vue-ui-treemap-yOP6_AwZ.js → vue-ui-treemap-Dbkr_rdH.js} +11 -11
  137. package/dist/{vue-ui-vertical-bar-D0TIrS3E.js → vue-ui-vertical-bar-BzIh5UUg.js} +11 -11
  138. package/dist/{vue-ui-vertical-bar-BIIeyp43.cjs → vue-ui-vertical-bar-DzWoUrXd.cjs} +1 -1
  139. package/dist/{vue-ui-waffle-CxpK1bY4.js → vue-ui-waffle-CQw6Qf9H.js} +11 -11
  140. package/dist/{vue-ui-waffle-LfnZeSYq.cjs → vue-ui-waffle-GvNWX9QC.cjs} +1 -1
  141. package/dist/{vue-ui-wheel-xX3KGkhv.js → vue-ui-wheel-CXmf0H03.js} +7 -7
  142. package/dist/{vue-ui-wheel-B6VvLnYu.cjs → vue-ui-wheel-Cafjyq_O.cjs} +1 -1
  143. package/dist/{vue-ui-word-cloud-BQ3rUXo5.cjs → vue-ui-word-cloud-B-5D28w8.cjs} +1 -1
  144. package/dist/{vue-ui-word-cloud-DBOUW839.js → vue-ui-word-cloud-CAJ-pqpM.js} +10 -10
  145. package/dist/{vue-ui-xy-zsQa4PDM.js → vue-ui-xy-BNCxzo7p.js} +314 -300
  146. package/dist/vue-ui-xy-DejNMLt_.cjs +3 -0
  147. package/dist/vue-ui-xy-canvas-BCMw2wOS.cjs +9 -0
  148. package/dist/{vue-ui-xy-canvas-DMjbTHI4.js → vue-ui-xy-canvas-cnjS60Rg.js} +63 -60
  149. package/package.json +1 -1
  150. package/dist/index-MkqCn_ca.cjs +0 -9
  151. package/dist/vue-ui-quadrant-CXWcP-cN.cjs +0 -1
  152. package/dist/vue-ui-scatter-DdBFmaXw.cjs +0 -1
  153. package/dist/vue-ui-spark-trend-C2OEDDlH.js +0 -272
  154. package/dist/vue-ui-spark-trend-DLy5nzXJ.cjs +0 -1
  155. package/dist/vue-ui-sparkline-CCfZsEZd.cjs +0 -1
  156. package/dist/vue-ui-xy-CSejjEnw.cjs +0 -3
  157. package/dist/vue-ui-xy-canvas-MERAnzru.cjs +0 -9
@@ -1,11 +1,11 @@
1
- import { computed as v, ref as m, watch as R, onMounted as se, openBlock as o, createElementBlock as n, normalizeStyle as N, renderSlot as W, normalizeProps as oe, guardReactiveProps as re, createElementVNode as f, toDisplayString as j, createCommentVNode as y, unref as c, createVNode as ne, Fragment as P, renderList as A, createBlock as ie } from "vue";
2
- import { u as de, c as ve, t as ce, o as he, e as U, g as ye, w as C, Y as fe, Z as pe, X as ge, s as I, R as X, i as Z, f as q } from "./index-DK5d18KK.js";
3
- import { u as Y } from "./useNestedProp-ClXcrtps.js";
4
- import me from "./vue-ui-skeleton-BRE3meIp.js";
5
- import { t as ke, u as be } from "./useResponsive-CoxXLe23.js";
6
- import { _ as _e } from "./PackageVersion-DH0d8pMI.js";
7
- import { _ as xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"], Ce = ["stop-color"], Ie = ["id"], Me = ["stop-color"], Ve = ["stop-color"], ze = ["id"], Se = ["stop-color"], We = ["stop-color"], Pe = { key: 0 }, Ae = ["d", "fill"], De = ["d", "fill"], Fe = ["d", "stroke", "stroke-width"], Ge = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Te = ["x", "y", "width", "height", "fill", "rx"], Be = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ee = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Oe = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Re = ["x", "y", "font-size", "font-weight", "fill"], je = ["x", "y", "height", "width", "onMouseenter", "onClick"], Ue = {
1
+ import { computed as v, ref as m, watch as U, onMounted as re, openBlock as o, createElementBlock as n, normalizeStyle as C, renderSlot as A, normalizeProps as ne, guardReactiveProps as ie, createElementVNode as f, toDisplayString as X, createCommentVNode as y, unref as c, createVNode as de, Fragment as P, renderList as D, createBlock as ve } from "vue";
2
+ import { u as ce, c as he, t as ye, _ as T, o as fe, e as Z, g as pe, w as I, $ as ge, a0 as me, X as ke, s as M, R as q, i as H, f as Y } from "./index-CFa1LJja.js";
3
+ import { u as J } from "./useNestedProp-DtAqKb0W.js";
4
+ import be from "./vue-ui-skeleton-CHLsECtI.js";
5
+ import { t as _e, u as xe } from "./useResponsive-CoxXLe23.js";
6
+ import { _ as we } from "./PackageVersion-Bi8RUX5W.js";
7
+ import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const $e = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["id"], Ie = ["stop-color"], Me = ["stop-color"], Ve = ["id"], ze = ["stop-color"], Se = ["stop-color"], We = ["id"], Ae = ["stop-color"], Pe = ["stop-color"], De = { key: 0 }, Te = ["d", "fill"], Be = ["d", "fill"], Fe = ["d", "stroke", "stroke-width"], Ge = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Oe = ["x", "y", "width", "height", "fill", "rx"], Ee = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], je = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Re = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ue = ["x", "y", "font-size", "font-weight", "fill"], Xe = ["x", "y", "height", "width", "onMouseenter", "onClick"], Ze = {
9
9
  __name: "vue-ui-sparkline",
10
10
  props: {
11
11
  config: {
@@ -30,48 +30,58 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
30
30
  }
31
31
  },
32
32
  emits: ["hoverIndex", "selectDatapoint"],
33
- setup(_, { emit: M }) {
34
- const i = _, { vue_ui_sparkline: H } = de(), L = v(() => !!i.dataset && i.dataset.length), p = m(ve()), V = m(null), D = m(null), F = m(null), e = v({
33
+ setup(_, { emit: V }) {
34
+ const i = _, { vue_ui_sparkline: K } = ce(), L = v(() => !!i.dataset && i.dataset.length), p = m(he()), z = m(null), B = m(null), F = m(null), e = v({
35
35
  get: () => G(),
36
36
  set: (t) => t
37
37
  });
38
38
  function G() {
39
- const t = Y({
39
+ const t = J({
40
40
  userConfig: i.config,
41
- defaultConfig: H
41
+ defaultConfig: K
42
42
  });
43
43
  return t.theme ? {
44
- ...Y({
45
- userConfig: ce.vue_ui_sparkline[t.theme] || i.config,
44
+ ...J({
45
+ userConfig: ye.vue_ui_sparkline[t.theme] || i.config,
46
46
  defaultConfig: t
47
47
  })
48
48
  } : t;
49
49
  }
50
- R(() => i.config, (t) => {
51
- e.value = G(), B(), l.value.chartWidth = e.value.style.chartWidth;
52
- }, { deep: !0 }), R(() => i.dataset, (t) => {
53
- b.value = i.dataset.map((u) => ({
54
- ...u,
55
- value: [void 0].includes(u.value) ? null : u.value
56
- }));
50
+ const $ = v(() => T({
51
+ data: i.dataset,
52
+ threshold: e.value.downsample.threshold
53
+ }));
54
+ U(() => i.config, (t) => {
55
+ e.value = G(), E(), l.value.chartWidth = e.value.style.chartWidth;
56
+ }, { deep: !0 }), U(() => i.dataset, (t) => {
57
+ b.value = T({
58
+ data: i.dataset.map((u) => ({
59
+ ...u,
60
+ value: [void 0].includes(u.value) ? null : u.value
61
+ })),
62
+ threshold: e.value.downsample.threshold
63
+ });
57
64
  }, { deep: !0 });
58
- const b = m(J());
59
- function J() {
60
- return i.dataset.map((t) => e.value.style.animation.show ? {
61
- ...t,
62
- value: null
63
- } : {
64
- ...t,
65
- value: [void 0].includes(t.value) ? null : t.value
65
+ const b = m(Q());
66
+ function Q() {
67
+ return T({
68
+ data: i.dataset.map((t) => e.value.style.animation.show ? {
69
+ ...t,
70
+ value: null
71
+ } : {
72
+ ...t,
73
+ value: [void 0].includes(t.value) ? null : t.value
74
+ }),
75
+ threshold: e.value.downsample.threshold
66
76
  });
67
77
  }
68
- const T = m(null);
69
- se(() => {
70
- if (B(), e.value.style.animation.show && i.dataset.length > 1) {
78
+ const O = m(null);
79
+ re(() => {
80
+ if (E(), e.value.style.animation.show && i.dataset.length > 1) {
71
81
  let a = function() {
72
- u < i.dataset.length ? (b.value.push(i.dataset[u]), setTimeout(() => {
82
+ u < $.value.length ? (b.value.push($.value[u]), setTimeout(() => {
73
83
  requestAnimationFrame(a);
74
- }, t)) : b.value = i.dataset, u += 1;
84
+ }, t)) : b.value = $.value, u += 1;
75
85
  };
76
86
  b.value = [];
77
87
  const t = e.value.style.animation.animationFrames / i.dataset.length;
@@ -79,16 +89,16 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
79
89
  a();
80
90
  }
81
91
  });
82
- function B() {
83
- if (he(i.dataset) ? U({
92
+ function E() {
93
+ if (fe(i.dataset) ? Z({
84
94
  componentName: "VueUiSparkline",
85
95
  type: "dataset"
86
96
  }) : i.dataset.forEach((t, u) => {
87
- ye({
97
+ pe({
88
98
  datasetObject: t,
89
99
  requiredAttributes: ["period", "value"]
90
100
  }).forEach((a) => {
91
- U({
101
+ Z({
92
102
  componentName: "VueUiSparkline",
93
103
  type: "datasetSerieAttribute",
94
104
  property: a,
@@ -96,15 +106,15 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
96
106
  });
97
107
  });
98
108
  }), e.value.responsive) {
99
- const t = ke(() => {
100
- const { width: u, height: a } = be({
101
- chart: V.value,
102
- title: e.value.style.title.show && i.showInfo ? D.value : null,
109
+ const t = _e(() => {
110
+ const { width: u, height: a } = xe({
111
+ chart: z.value,
112
+ title: e.value.style.title.show && i.showInfo ? B.value : null,
103
113
  source: F.value
104
114
  });
105
115
  l.value.width = u, l.value.height = a, l.value.chartWidth = e.value.style.chartWidth / 500 * u, l.value.padding = 0.06 * u;
106
116
  });
107
- T.value = new ResizeObserver(t), T.value.observe(V.value.parentNode);
117
+ O.value = new ResizeObserver(t), O.value.observe(z.value.parentNode);
108
118
  }
109
119
  }
110
120
  const l = m({
@@ -112,7 +122,7 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
112
122
  width: 500,
113
123
  chartWidth: e.value.style.chartWidth,
114
124
  padding: 30
115
- }), K = m(6), s = v(() => ({
125
+ }), ee = m(6), s = v(() => ({
116
126
  top: 12,
117
127
  left: 0,
118
128
  right: l.value.width,
@@ -120,37 +130,37 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
120
130
  start: i.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? l.value.width - l.value.chartWidth : l.value.padding,
121
131
  width: i.showInfo && e.value.style.dataLabel.show ? l.value.chartWidth : l.value.width - l.value.padding,
122
132
  height: l.value.height - 12
123
- })), z = v(() => Math.min(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0))), Q = v(() => Math.max(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0))), x = v(() => {
124
- const t = z.value >= 0 ? 0 : z.value;
133
+ })), S = v(() => Math.min(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0))), te = v(() => Math.max(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0))), x = v(() => {
134
+ const t = S.value >= 0 ? 0 : S.value;
125
135
  return Math.abs(t);
126
- }), ee = v(() => Q.value + x.value + K.value), $ = v(() => s.value.bottom - s.value.height * S(x.value));
127
- function S(t) {
128
- return t / ee.value;
136
+ }), ae = v(() => te.value + x.value + ee.value), N = v(() => s.value.bottom - s.value.height * W(x.value));
137
+ function W(t) {
138
+ return t / ae.value;
129
139
  }
130
- const g = v(() => i.dataset.length - 1), r = v(() => b.value.map((t, u) => {
140
+ const g = v(() => $.value.length - 1), r = v(() => b.value.map((t, u) => {
131
141
  const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0;
132
142
  return {
133
143
  absoluteValue: a,
134
144
  period: t.period,
135
145
  plotValue: a + x.value,
136
- toMax: S(a + x.value),
146
+ toMax: W(a + x.value),
137
147
  x: s.value.start + u * (s.value.width / (g.value + 1) > l.padding ? l.padding : s.value.width / (g.value + 1)),
138
- y: s.value.bottom - s.value.height * S(a + x.value),
148
+ y: s.value.bottom - s.value.height * W(a + x.value),
139
149
  id: `plot_${p.value}_${u}`,
140
- color: w.value ? e.value.style.bar.color : e.value.style.area.useGradient ? C(e.value.style.line.color, 0.05 * (1 - u / g.value)) : e.value.style.line.color,
150
+ color: w.value ? e.value.style.bar.color : e.value.style.area.useGradient ? I(e.value.style.line.color, 0.05 * (1 - u / g.value)) : e.value.style.line.color,
141
151
  width: s.value.width / (g.value + 1) > l.padding ? l.padding : s.value.width / (g.value + 1)
142
152
  };
143
- })), te = v(() => {
153
+ })), le = v(() => {
144
154
  const t = { x: r.value[0].x, y: l.value.height - 6 }, u = { x: r.value[r.value.length - 1].x, y: l.value.height - 6 }, a = [];
145
155
  return r.value.forEach((d) => {
146
156
  a.push(`${d.x},${d.y} `);
147
157
  }), [t.x, t.y, ...a, u.x, u.y].toString();
148
158
  }), h = m(void 0);
149
- function ae(t, u) {
150
- h.value = t, M("hoverIndex", { index: u });
159
+ function ue(t, u) {
160
+ h.value = t, V("hoverIndex", { index: u });
151
161
  }
152
- function le() {
153
- h.value = void 0, M("hoverIndex", { index: void 0 });
162
+ function se() {
163
+ h.value = void 0, V("hoverIndex", { index: void 0 });
154
164
  }
155
165
  const k = v(() => {
156
166
  if (L.value) {
@@ -159,11 +169,11 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
159
169
  latest: r.value[r.value.length - 1].absoluteValue,
160
170
  sum: u,
161
171
  average: u / r.value.length,
162
- median: fe(t),
163
- trend: pe(r.value.map(({ x: a, y: d, absoluteValue: O }) => ({
172
+ median: ge(t),
173
+ trend: me(r.value.map(({ x: a, y: d, absoluteValue: R }) => ({
164
174
  x: a,
165
175
  y: d,
166
- value: O
176
+ value: R
167
177
  }))).trend
168
178
  };
169
179
  } else
@@ -174,18 +184,18 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
174
184
  median: null,
175
185
  trend: null
176
186
  };
177
- }), E = v(() => L.value ? e.value.style.dataLabel.valueType === "latest" ? k.value.latest : e.value.style.dataLabel.valueType === "sum" ? k.value.sum : e.value.style.dataLabel.valueType === "average" ? k.value.average : 0 : 0), w = v(() => e.value.type && e.value.type === "bar");
178
- function ue(t, u) {
179
- M("selectDatapoint", { datapoint: t, index: u });
187
+ }), j = v(() => L.value ? e.value.style.dataLabel.valueType === "latest" ? k.value.latest : e.value.style.dataLabel.valueType === "sum" ? k.value.sum : e.value.style.dataLabel.valueType === "average" ? k.value.average : 0 : 0), w = v(() => e.value.type && e.value.type === "bar");
188
+ function oe(t, u) {
189
+ V("selectDatapoint", { datapoint: t, index: u });
180
190
  }
181
191
  return (t, u) => (o(), n("div", {
182
192
  ref_key: "sparklineChart",
183
- ref: V,
193
+ ref: z,
184
194
  class: "vue-ui-sparkline",
185
195
  id: p.value,
186
- style: N(`width:100%;font-family:${e.value.style.fontFamily}`)
196
+ style: C(`width:100%;font-family:${e.value.style.fontFamily}`)
187
197
  }, [
188
- W(t.$slots, "before", oe(re({
198
+ A(t.$slots, "before", ne(ie({
189
199
  selected: h.value,
190
200
  latest: k.value.latest,
191
201
  sum: k.value.sum,
@@ -196,21 +206,21 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
196
206
  e.value.style.title.show && _.showInfo ? (o(), n("div", {
197
207
  key: 0,
198
208
  ref_key: "chartTitle",
199
- ref: D,
209
+ ref: B,
200
210
  class: "vue-ui-sparkline-title",
201
- style: N(`display:flex;align-items:center;width:100%;color:${e.value.style.title.color};background:${e.value.style.backgroundColor};justify-content:${e.value.style.title.textAlign === "left" ? "flex-start" : e.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${e.value.style.title.fontSize * 2}px;font-size:${e.value.style.title.fontSize}px;font-weight:${e.value.style.title.bold ? "bold" : "normal"};`)
211
+ style: C(`display:flex;align-items:center;width:100%;color:${e.value.style.title.color};background:${e.value.style.backgroundColor};justify-content:${e.value.style.title.textAlign === "left" ? "flex-start" : e.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${e.value.style.title.fontSize * 2}px;font-size:${e.value.style.title.fontSize}px;font-weight:${e.value.style.title.bold ? "bold" : "normal"};`)
202
212
  }, [
203
213
  f("span", {
204
- style: N(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
205
- }, j(h.value ? h.value.period : e.value.style.title.text), 5)
214
+ style: C(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
215
+ }, X(h.value ? h.value.period : e.value.style.title.text), 5)
206
216
  ], 4)) : y("", !0),
207
217
  L.value ? (o(), n("svg", {
208
218
  key: 1,
209
- xmlns: c(ge),
219
+ xmlns: c(ke),
210
220
  viewBox: `0 0 ${l.value.width} ${l.value.height}`,
211
- style: N(`background:${e.value.style.backgroundColor};overflow:visible`)
221
+ style: C(`background:${e.value.style.backgroundColor};overflow:visible`)
212
222
  }, [
213
- ne(_e),
223
+ de(we),
214
224
  f("defs", null, [
215
225
  f("linearGradient", {
216
226
  x1: "0%",
@@ -221,13 +231,13 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
221
231
  }, [
222
232
  f("stop", {
223
233
  offset: "0%",
224
- "stop-color": c(I)(c(C)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
225
- }, null, 8, Ne),
234
+ "stop-color": c(M)(c(I)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
235
+ }, null, 8, Ie),
226
236
  f("stop", {
227
237
  offset: "100%",
228
- "stop-color": c(I)(e.value.style.area.color, e.value.style.area.opacity)
229
- }, null, 8, Ce)
230
- ], 8, $e),
238
+ "stop-color": c(M)(e.value.style.area.color, e.value.style.area.opacity)
239
+ }, null, 8, Me)
240
+ ], 8, Ce),
231
241
  f("linearGradient", {
232
242
  x2: "0%",
233
243
  y2: "100%",
@@ -236,12 +246,12 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
236
246
  f("stop", {
237
247
  offset: "0%",
238
248
  "stop-color": e.value.style.bar.color
239
- }, null, 8, Me),
249
+ }, null, 8, ze),
240
250
  f("stop", {
241
251
  offset: "100%",
242
- "stop-color": c(C)(e.value.style.bar.color, 0.05)
243
- }, null, 8, Ve)
244
- ], 8, Ie),
252
+ "stop-color": c(I)(e.value.style.bar.color, 0.05)
253
+ }, null, 8, Se)
254
+ ], 8, Ve),
245
255
  f("linearGradient", {
246
256
  x2: "0%",
247
257
  y2: "100%",
@@ -249,34 +259,34 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
249
259
  }, [
250
260
  f("stop", {
251
261
  offset: "0%",
252
- "stop-color": c(C)(e.value.style.bar.color, 0.05)
253
- }, null, 8, Se),
262
+ "stop-color": c(I)(e.value.style.bar.color, 0.05)
263
+ }, null, 8, Ae),
254
264
  f("stop", {
255
265
  offset: "100%",
256
266
  "stop-color": e.value.style.bar.color
257
- }, null, 8, We)
258
- ], 8, ze)
267
+ }, null, 8, Pe)
268
+ ], 8, We)
259
269
  ]),
260
- e.value.style.area.show && !w.value && r.value[0] ? (o(), n("g", Pe, [
270
+ e.value.style.area.show && !w.value && r.value[0] ? (o(), n("g", De, [
261
271
  e.value.style.line.smooth ? (o(), n("path", {
262
272
  key: 0,
263
- d: `M ${r.value[0].x},${s.value.bottom} ${c(X)(r.value)} L ${r.value.at(-1).x},${s.value.bottom} Z`,
264
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : c(I)(e.value.style.area.color, e.value.style.area.opacity)
265
- }, null, 8, Ae)) : (o(), n("path", {
273
+ d: `M ${r.value[0].x},${s.value.bottom} ${c(q)(r.value)} L ${r.value.at(-1).x},${s.value.bottom} Z`,
274
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : c(M)(e.value.style.area.color, e.value.style.area.opacity)
275
+ }, null, 8, Te)) : (o(), n("path", {
266
276
  key: 1,
267
- d: `M${te.value}Z`,
268
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : c(I)(e.value.style.area.color, e.value.style.area.opacity)
269
- }, null, 8, De))
277
+ d: `M${le.value}Z`,
278
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : c(M)(e.value.style.area.color, e.value.style.area.opacity)
279
+ }, null, 8, Be))
270
280
  ])) : y("", !0),
271
281
  e.value.style.line.smooth && !w.value ? (o(), n("path", {
272
282
  key: 1,
273
- d: `M ${c(X)(r.value)}`,
283
+ d: `M ${c(q)(r.value)}`,
274
284
  stroke: e.value.style.line.color,
275
285
  fill: "none",
276
286
  "stroke-width": e.value.style.line.strokeWidth,
277
287
  "stroke-linecap": "round"
278
288
  }, null, 8, Fe)) : y("", !0),
279
- (o(!0), n(P, null, A(r.value, (a, d) => (o(), n("g", null, [
289
+ (o(!0), n(P, null, D(r.value, (a, d) => (o(), n("g", null, [
280
290
  d < r.value.length - 1 && !e.value.style.line.smooth && !w.value ? (o(), n("line", {
281
291
  key: 0,
282
292
  x1: a.x,
@@ -292,12 +302,12 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
292
302
  w.value ? (o(), n("rect", {
293
303
  key: 1,
294
304
  x: a.x - a.width / 2,
295
- y: a.absoluteValue > 0 ? a.y : $.value,
305
+ y: a.absoluteValue > 0 ? a.y : N.value,
296
306
  width: a.width,
297
- height: Math.abs(a.y - $.value),
307
+ height: Math.abs(a.y - N.value),
298
308
  fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${p.value})` : `url(#sparkline_bar_gradient_neg_${p.value})`,
299
309
  rx: e.value.style.bar.borderRadius
300
- }, null, 8, Te)) : y("", !0),
310
+ }, null, 8, Oe)) : y("", !0),
301
311
  e.value.style.verticalIndicator.show && (h.value && a.id === h.value.id || _.selectedIndex === d) ? (o(), n("line", {
302
312
  key: 2,
303
313
  x1: a.x,
@@ -308,20 +318,20 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
308
318
  "stroke-width": e.value.style.verticalIndicator.strokeWidth,
309
319
  "stroke-linecap": "round",
310
320
  "stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
311
- }, null, 8, Be)) : y("", !0)
321
+ }, null, 8, Ee)) : y("", !0)
312
322
  ]))), 256)),
313
- z.value < 0 ? (o(), n("line", {
323
+ S.value < 0 ? (o(), n("line", {
314
324
  key: 2,
315
325
  x1: s.value.start,
316
326
  x2: s.value.start + s.value.width - 16,
317
- y1: $.value,
318
- y2: $.value,
327
+ y1: N.value,
328
+ y2: N.value,
319
329
  stroke: e.value.style.zeroLine.color,
320
330
  "stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
321
331
  "stroke-width": e.value.style.zeroLine.strokeWidth,
322
332
  "stroke-linecap": "round"
323
- }, null, 8, Ee)) : y("", !0),
324
- e.value.style.plot.show ? (o(!0), n(P, { key: 3 }, A(r.value, (a, d) => (o(), n("g", null, [
333
+ }, null, 8, je)) : y("", !0),
334
+ e.value.style.plot.show ? (o(!0), n(P, { key: 3 }, D(r.value, (a, d) => (o(), n("g", null, [
325
335
  h.value && a.id === h.value.id || _.selectedIndex === d ? (o(), n("circle", {
326
336
  key: 0,
327
337
  cx: a.x,
@@ -330,7 +340,7 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
330
340
  fill: a.color,
331
341
  stroke: e.value.style.plot.stroke,
332
342
  "stroke-width": e.value.style.plot.strokeWidth
333
- }, null, 8, Oe)) : y("", !0)
343
+ }, null, 8, Re)) : y("", !0)
334
344
  ]))), 256)) : y("", !0),
335
345
  _.showInfo && e.value.style.dataLabel.show ? (o(), n("text", {
336
346
  key: 4,
@@ -339,37 +349,37 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
339
349
  "font-size": e.value.style.dataLabel.fontSize,
340
350
  "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
341
351
  fill: e.value.style.dataLabel.color
342
- }, j(h.value ? c(Z)(
352
+ }, X(h.value ? c(H)(
343
353
  e.value.style.dataLabel.formatter,
344
354
  h.value.absoluteValue,
345
- c(q)({ p: e.value.style.dataLabel.prefix, v: h.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
355
+ c(Y)({ p: e.value.style.dataLabel.prefix, v: h.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
346
356
  { datapoint: h.value }
347
- ) : c(Z)(
357
+ ) : c(H)(
348
358
  e.value.style.dataLabel.formatter,
349
- E.value,
350
- c(q)({ p: e.value.style.dataLabel.prefix, v: E.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
351
- )), 9, Re)) : y("", !0),
352
- (o(!0), n(P, null, A(r.value, (a, d) => (o(), n("rect", {
359
+ j.value,
360
+ c(Y)({ p: e.value.style.dataLabel.prefix, v: j.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
361
+ )), 9, Ue)) : y("", !0),
362
+ (o(!0), n(P, null, D(r.value, (a, d) => (o(), n("rect", {
353
363
  x: a.x - (s.value.width / (g.value + 1) > l.value.padding ? l.value.padding : s.value.width / (g.value + 1)) / 2,
354
364
  y: s.value.top - 6,
355
365
  height: s.value.height + 6,
356
366
  width: s.value.width / (g.value + 1) > l.value.padding ? l.value.padding : s.value.width / (g.value + 1),
357
367
  fill: "transparent",
358
- onMouseenter: (O) => ae(a, d),
359
- onMouseleave: le,
360
- onClick: () => ue(a, d)
361
- }, null, 40, je))), 256)),
362
- W(t.$slots, "svg", { svg: l.value }, void 0, !0)
363
- ], 12, Le)) : y("", !0),
368
+ onMouseenter: (R) => ue(a, d),
369
+ onMouseleave: se,
370
+ onClick: () => oe(a, d)
371
+ }, null, 40, Xe))), 256)),
372
+ A(t.$slots, "svg", { svg: l.value }, void 0, !0)
373
+ ], 12, Ne)) : y("", !0),
364
374
  t.$slots.source ? (o(), n("div", {
365
375
  key: 2,
366
376
  ref_key: "source",
367
377
  ref: F,
368
378
  dir: "auto"
369
379
  }, [
370
- W(t.$slots, "source", {}, void 0, !0)
380
+ A(t.$slots, "source", {}, void 0, !0)
371
381
  ], 512)) : y("", !0),
372
- L.value ? y("", !0) : (o(), ie(me, {
382
+ L.value ? y("", !0) : (o(), ve(be, {
373
383
  key: 3,
374
384
  config: {
375
385
  type: "sparkline",
@@ -381,9 +391,9 @@ const we = ["id"], Le = ["xmlns", "viewBox"], $e = ["id"], Ne = ["stop-color"],
381
391
  }
382
392
  }
383
393
  }, null, 8, ["config"]))
384
- ], 12, we));
394
+ ], 12, $e));
385
395
  }
386
- }, Qe = /* @__PURE__ */ xe(Ue, [["__scopeId", "data-v-afa97ea1"]]);
396
+ }, tt = /* @__PURE__ */ Le(Ze, [["__scopeId", "data-v-9467697c"]]);
387
397
  export {
388
- Qe as default
398
+ tt as default
389
399
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-KDxAXZXP.cjs"),M=require("./useNestedProp-CXjSKjKD.cjs"),G=require("./vue-ui-skeleton-CdeslaC3.cjs"),z=require("./useResponsive-BJ7DTGpm.cjs"),R=require("./PackageVersion-BzA9shEH.cjs"),H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=["id"],X=["xmlns","viewBox"],Z=["id"],Y=["stop-color"],J=["stop-color"],K=["id"],Q=["stop-color"],ee=["stop-color"],te=["id"],le=["stop-color"],ae=["stop-color"],oe={key:0},re=["d","fill"],ue=["d","fill"],ne=["d","stroke","stroke-width"],se=["x1","x2","y1","y2","stroke","stroke-width"],ie=["x","y","width","height","fill","rx"],de=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ce=["x1","x2","y1","y2","stroke","stroke-dasharray","stroke-width"],ve=["cx","cy","r","fill","stroke","stroke-width"],he=["x","y","font-size","font-weight","fill"],ye=["x","y","height","width","onMouseenter","onClick"],pe={__name:"vue-ui-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},showInfo:{type:Boolean,default:!0},selectedIndex:{type:Number,default:void 0}},emits:["hoverIndex","selectDatapoint"],setup(f,{emit:x}){const i=f,{vue_ui_sparkline:P}=u.useConfig(),g=e.computed(()=>!!i.dataset&&i.dataset.length),v=e.ref(u.createUid()),w=e.ref(null),L=e.ref(null),C=e.ref(null),t=e.computed({get:()=>V(),set:l=>l});function V(){const l=M.useNestedProp({userConfig:i.config,defaultConfig:P});return l.theme?{...M.useNestedProp({userConfig:u.themes.vue_ui_sparkline[l.theme]||i.config,defaultConfig:l})}:l}const b=e.computed(()=>u.largestTriangleThreeBucketsArrayObjects({data:i.dataset,threshold:t.value.downsample.threshold}));e.watch(()=>i.config,l=>{t.value=V(),$(),o.value.chartWidth=t.value.style.chartWidth},{deep:!0}),e.watch(()=>i.dataset,l=>{p.value=u.largestTriangleThreeBucketsArrayObjects({data:i.dataset.map(r=>({...r,value:[void 0].includes(r.value)?null:r.value})),threshold:t.value.downsample.threshold})},{deep:!0});const p=e.ref(A());function A(){return u.largestTriangleThreeBucketsArrayObjects({data:i.dataset.map(l=>t.value.style.animation.show?{...l,value:null}:{...l,value:[void 0].includes(l.value)?null:l.value}),threshold:t.value.downsample.threshold})}const E=e.ref(null);e.onMounted(()=>{if($(),t.value.style.animation.show&&i.dataset.length>1){let a=function(){r<b.value.length?(p.value.push(b.value[r]),setTimeout(()=>{requestAnimationFrame(a)},l)):p.value=b.value,r+=1};p.value=[];const l=t.value.style.animation.animationFrames/i.dataset.length;let r=0;a()}});function $(){if(u.objectIsEmpty(i.dataset)?u.error({componentName:"VueUiSparkline",type:"dataset"}):i.dataset.forEach((l,r)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["period","value"]}).forEach(a=>{u.error({componentName:"VueUiSparkline",type:"datasetSerieAttribute",property:a,index:r})})}),t.value.responsive){const l=z.throttle(()=>{const{width:r,height:a}=z.useResponsive({chart:w.value,title:t.value.style.title.show&&i.showInfo?L.value:null,source:C.value});o.value.width=r,o.value.height=a,o.value.chartWidth=t.value.style.chartWidth/500*r,o.value.padding=.06*r});E.value=new ResizeObserver(l),E.value.observe(w.value.parentNode)}}const o=e.ref({height:80,width:500,chartWidth:t.value.style.chartWidth,padding:30}),T=e.ref(6),n=e.computed(()=>({top:12,left:0,right:o.value.width,bottom:o.value.height-3,start:i.showInfo&&t.value.style.dataLabel.show&&t.value.style.dataLabel.position==="left"?o.value.width-o.value.chartWidth:o.value.padding,width:i.showInfo&&t.value.style.dataLabel.show?o.value.chartWidth:o.value.width-o.value.padding,height:o.value.height-12})),N=e.computed(()=>Math.min(...p.value.map(l=>isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0))),D=e.computed(()=>Math.max(...p.value.map(l=>isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0))),m=e.computed(()=>{const l=N.value>=0?0:N.value;return Math.abs(l)}),O=e.computed(()=>D.value+m.value+T.value),_=e.computed(()=>n.value.bottom-n.value.height*B(m.value));function B(l){return l/O.value}const h=e.computed(()=>b.value.length-1),s=e.computed(()=>p.value.map((l,r)=>{const a=isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0;return{absoluteValue:a,period:l.period,plotValue:a+m.value,toMax:B(a+m.value),x:n.value.start+r*(n.value.width/(h.value+1)>o.padding?o.padding:n.value.width/(h.value+1)),y:n.value.bottom-n.value.height*B(a+m.value),id:`plot_${v.value}_${r}`,color:k.value?t.value.style.bar.color:t.value.style.area.useGradient?u.shiftHue(t.value.style.line.color,.05*(1-r/h.value)):t.value.style.line.color,width:n.value.width/(h.value+1)>o.padding?o.padding:n.value.width/(h.value+1)}})),W=e.computed(()=>{const l={x:s.value[0].x,y:o.value.height-6},r={x:s.value[s.value.length-1].x,y:o.value.height-6},a=[];return s.value.forEach(d=>{a.push(`${d.x},${d.y} `)}),[l.x,l.y,...a,r.x,r.y].toString()}),c=e.ref(void 0);function F(l,r){c.value=l,x("hoverIndex",{index:r})}function j(){c.value=void 0,x("hoverIndex",{index:void 0})}const y=e.computed(()=>{if(g.value){const l=s.value.map(a=>a.absoluteValue),r=l.reduce((a,d)=>a+d,0);return{latest:s.value[s.value.length-1].absoluteValue,sum:r,average:r/s.value.length,median:u.calcMedian(l),trend:u.calcLinearProgression(s.value.map(({x:a,y:d,absoluteValue:S})=>({x:a,y:d,value:S}))).trend}}else return{latest:null,sum:null,average:null,median:null,trend:null}}),I=e.computed(()=>g.value?t.value.style.dataLabel.valueType==="latest"?y.value.latest:t.value.style.dataLabel.valueType==="sum"?y.value.sum:t.value.style.dataLabel.valueType==="average"?y.value.average:0:0),k=e.computed(()=>t.value.type&&t.value.type==="bar");function q(l,r){x("selectDatapoint",{datapoint:l,index:r})}return(l,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"sparklineChart",ref:w,class:"vue-ui-sparkline",id:v.value,style:e.normalizeStyle(`width:100%;font-family:${t.value.style.fontFamily}`)},[e.renderSlot(l.$slots,"before",e.normalizeProps(e.guardReactiveProps({selected:c.value,latest:y.value.latest,sum:y.value.sum,average:y.value.average,median:y.value.median,trend:y.value.trend})),void 0,!0),t.value.style.title.show&&f.showInfo?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:L,class:"vue-ui-sparkline-title",style:e.normalizeStyle(`display:flex;align-items:center;width:100%;color:${t.value.style.title.color};background:${t.value.style.backgroundColor};justify-content:${t.value.style.title.textAlign==="left"?"flex-start":t.value.style.title.textAlign==="right"?"flex-end":"center"};height:${t.value.style.title.fontSize*2}px;font-size:${t.value.style.title.fontSize}px;font-weight:${t.value.style.title.bold?"bold":"normal"};`)},[e.createElementVNode("span",{style:e.normalizeStyle(`padding:${t.value.style.title.textAlign==="left"?"0 0 0 12px":t.value.style.title.textAlign==="right"?"0 12px 0 0":"0"}`)},e.toDisplayString(c.value?c.value.period:t.value.style.title.text),5)],4)):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${o.value.width} ${o.value.height}`,style:e.normalizeStyle(`background:${t.value.style.backgroundColor};overflow:visible`)},[e.createVNode(R._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkline_gradient_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(u.setOpacity)(e.unref(u.shiftHue)(t.value.style.area.color,.05),t.value.style.area.opacity)},null,8,Y),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,J)],8,Z),e.createElementVNode("linearGradient",{x2:"0%",y2:"100%",id:`sparkline_bar_gradient_pos_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.bar.color},null,8,Q),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.shiftHue)(t.value.style.bar.color,.05)},null,8,ee)],8,K),e.createElementVNode("linearGradient",{x2:"0%",y2:"100%",id:`sparkline_bar_gradient_neg_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(u.shiftHue)(t.value.style.bar.color,.05)},null,8,le),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.bar.color},null,8,ae)],8,te)]),t.value.style.area.show&&!k.value&&s.value[0]?(e.openBlock(),e.createElementBlock("g",oe,[t.value.style.line.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${s.value[0].x},${n.value.bottom} ${e.unref(u.createSmoothPath)(s.value)} L ${s.value.at(-1).x},${n.value.bottom} Z`,fill:t.value.style.area.useGradient?`url(#sparkline_gradient_${v.value})`:e.unref(u.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,re)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${W.value}Z`,fill:t.value.style.area.useGradient?`url(#sparkline_gradient_${v.value})`:e.unref(u.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,ue))])):e.createCommentVNode("",!0),t.value.style.line.smooth&&!k.value?(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${e.unref(u.createSmoothPath)(s.value)}`,stroke:t.value.style.line.color,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":"round"},null,8,ne)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(a,d)=>(e.openBlock(),e.createElementBlock("g",null,[d<s.value.length-1&&!t.value.style.line.smooth&&!k.value?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:s.value[d+1].x,y1:a.y,y2:s.value[d+1].y,stroke:a.color,"stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round","shape-rendering":"geometricPrecision"},null,8,se)):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("rect",{key:1,x:a.x-a.width/2,y:a.absoluteValue>0?a.y:_.value,width:a.width,height:Math.abs(a.y-_.value),fill:a.absoluteValue>0?`url(#sparkline_bar_gradient_pos_${v.value})`:`url(#sparkline_bar_gradient_neg_${v.value})`,rx:t.value.style.bar.borderRadius},null,8,ie)):e.createCommentVNode("",!0),t.value.style.verticalIndicator.show&&(c.value&&a.id===c.value.id||f.selectedIndex===d)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.x,x2:a.x,y1:n.value.top-6,y2:n.value.bottom,stroke:t.value.style.verticalIndicator.color||a.color,"stroke-width":t.value.style.verticalIndicator.strokeWidth,"stroke-linecap":"round","stroke-dasharray":t.value.style.verticalIndicator.strokeDasharray||0},null,8,de)):e.createCommentVNode("",!0)]))),256)),N.value<0?(e.openBlock(),e.createElementBlock("line",{key:2,x1:n.value.start,x2:n.value.start+n.value.width-16,y1:_.value,y2:_.value,stroke:t.value.style.zeroLine.color,"stroke-dasharray":t.value.style.zeroLine.strokeWidth*2,"stroke-width":t.value.style.zeroLine.strokeWidth,"stroke-linecap":"round"},null,8,ce)):e.createCommentVNode("",!0),t.value.style.plot.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(s.value,(a,d)=>(e.openBlock(),e.createElementBlock("g",null,[c.value&&a.id===c.value.id||f.selectedIndex===d?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:a.x,cy:a.y,r:t.value.style.plot.radius,fill:a.color,stroke:t.value.style.plot.stroke,"stroke-width":t.value.style.plot.strokeWidth},null,8,ve)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),f.showInfo&&t.value.style.dataLabel.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:t.value.style.dataLabel.position==="left"?12+t.value.style.dataLabel.offsetX:n.value.width+12+t.value.style.dataLabel.offsetX,y:o.value.height/2+t.value.style.dataLabel.fontSize/2.5+t.value.style.dataLabel.offsetY,"font-size":t.value.style.dataLabel.fontSize,"font-weight":t.value.style.dataLabel.bold?"bold":"normal",fill:t.value.style.dataLabel.color},e.toDisplayString(c.value?e.unref(u.applyDataLabel)(t.value.style.dataLabel.formatter,c.value.absoluteValue,e.unref(u.dataLabel)({p:t.value.style.dataLabel.prefix,v:c.value.absoluteValue,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.roundingValue}),{datapoint:c.value}):e.unref(u.applyDataLabel)(t.value.style.dataLabel.formatter,I.value,e.unref(u.dataLabel)({p:t.value.style.dataLabel.prefix,v:I.value,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.roundingValue}))),9,he)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(a,d)=>(e.openBlock(),e.createElementBlock("rect",{x:a.x-(n.value.width/(h.value+1)>o.value.padding?o.value.padding:n.value.width/(h.value+1))/2,y:n.value.top-6,height:n.value.height+6,width:n.value.width/(h.value+1)>o.value.padding?o.value.padding:n.value.width/(h.value+1),fill:"transparent",onMouseenter:S=>F(a,d),onMouseleave:j,onClick:()=>q(a,d)},null,40,ye))),256)),e.renderSlot(l.$slots,"svg",{svg:o.value},void 0,!0)],12,X)):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"source",ref:C,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(G.default,{key:3,config:{type:"sparkline",style:{backgroundColor:t.value.style.backgroundColor,sparkline:{color:"#CCCCCC"}}}},null,8,["config"]))],12,U))}},fe=H._export_sfc(pe,[["__scopeId","data-v-9467697c"]]);exports.default=fe;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-MkqCn_ca.cjs"),V=require("./useNestedProp-B0n5mAli.cjs"),A=require("./vue-ui-skeleton-DtwM9cxs.cjs"),q=require("./PackageVersion-BQj9e8Pe.cjs"),O=require("./Tooltip-jO6bDIPj.cjs"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),j=["xmlns","viewBox"],M=["id"],H=["stop-color"],I=["stop-color"],R=["stop-color"],W={id:"stackPill",clipPathUnits:"objectBoundingBox"},Y=["fill"],G={key:0,"clip-path":"url(#stackPill)"},X=["x","width","height","fill"],J=["x","width","height","fill","stroke"],K=["onClick","x","width","height","onMouseenter"],Q=["width","height","rx"],Z=["onClick"],ee={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"4px","justify-content":"center"}},te=["height","width"],le=["fill"],oe={key:4,ref:"source",dir:"auto"},ae={__name:"vue-ui-sparkstackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(P,{emit:D}){const u=P,{vue_ui_sparkstackbar:L}=a.useConfig(),x=e.computed(()=>!!u.dataset&&u.dataset.length),B=e.ref(null),S=e.ref(a.createUid()),b=e.ref(!1),_=e.ref(""),t=e.computed({get:()=>$(),set:l=>l});function $(){const l=V.useNestedProp({userConfig:u.config,defaultConfig:L});return l.theme?{...V.useNestedProp({userConfig:a.themes.vue_ui_sparkstackbar[l.theme]||u.config,defaultConfig:l}),customPalette:a.themePalettes[l.theme]||a.palette}:l}e.watch(()=>u.config,l=>{t.value=$(),E()},{deep:!0}),e.watch(()=>u.dataset,l=>{p.value=u.dataset.map((n,o)=>({...n,color:n.color?a.convertColorToHex(n.color):f.value[o]||a.palette[o]||a.palette[o%a.palette.length]}))},{deep:!0});const f=e.computed(()=>a.convertCustomPalette(t.value.customPalette)),p=e.ref(u.dataset.map((l,n)=>({...l,value:t.value.style.animation.show?0:l.value||0,color:l.color?a.convertColorToHex(l.color):f.value[n]||a.palette[n]||a.palette[n%a.palette.length]}))),g=e.ref(!0);e.onMounted(()=>{if(E(),t.value.style.animation.show){let v=function(){r+=o/l,r<o?(p.value=p.value.map((s,i)=>({...s,value:s.value+=n[i],color:s.color?a.convertColorToHex(s.color):f.value[i]||a.palette[i]||a.palette[i%a.palette.length]})),requestAnimationFrame(v)):(g.value=!1,p.value=u.dataset.map((s,i)=>({...s,value:s.value||0,color:s.color?a.convertColorToHex(s.color):f.value[i]||a.palette[i]||a.palette[i%a.palette.length],id:a.createUid()})))};const l=t.value.style.animation.animationFrames,n=u.dataset.map((s,i)=>s.value/l),o=u.dataset.map(s=>s.value||0).reduce((s,i)=>s+i,0);let r=0;g.value=!0,v()}});function E(){a.objectIsEmpty(u.dataset)?a.error({componentName:"VueUiSparkStackbar",type:"dataset"}):u.dataset.forEach((l,n)=>{a.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(o=>{a.error({componentName:"VueUiSparkStackbar",type:"datasetSerieAttribute",property:o,index:n})})})}const c=e.ref({width:500,height:16}),d=e.ref([]),N=e.computed(()=>u.dataset.map(l=>l.value||0).filter((l,n)=>!d.value.includes(n)).reduce((l,n)=>l+n,0)),y=e.computed(()=>p.value.map((l,n)=>{const o=l.value||0,r=o/N.value,v=isNaN(r)?0:r,s=v*c.value.width;return{...l,value:o,proportion:v,width:s,proportionLabel:a.dataLabel({v:v*100,s:"%",r:t.value.style.legend.percentage.rounding})}})),C=e.computed(()=>y.value.filter((l,n)=>!d.value.includes(n)));function F(l){d.value.includes(l)?d.value=d.value.filter(n=>n!==l):d.value.length<p.value.length-1&&d.value.push(l)}const h=e.computed(()=>{let l=0;const n=[];for(let o=0;o<C.value.length;o+=1)n.push({...C.value[o],start:l}),l+=C.value[o].width;return n});function z(l,n){D("selectDatapoint",{datapoint:l,index:n})}const w=e.ref(null),k=e.ref(!1),m=e.ref(null);function T({datapoint:l,seriesIndex:n}){if(!t.value.style.tooltip.show)return;w.value={datapoint:l,seriesIndex:n,config:t.value,series:y.value},b.value=!0,m.value=n;const o=t.value.style.tooltip.customFormat;if(a.isFunction(o))try{const r=o({seriesIndex:n,datapoint:l,series:y.value,config:t.value});typeof r=="string"&&(_.value=r,k.value=!0)}catch{console.warn("Custom format cannot be applied."),k.value=!1}if(!k.value){let r="";r+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,r+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`,r+=`<b>${l.proportionLabel}</b>`,r+=`<span>(${a.applyDataLabel(t.value.style.legend.value.formatter,l.value,a.dataLabel({p:t.value.style.legend.value.prefix,v:l.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:l,seriesIndex:n})})</span>`,_.value=`<div>${r}</div>`}}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"sparkstackbarChart",ref:B,style:e.normalizeStyle(`width:100%; background:${t.value.style.backgroundColor}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${t.value.style.title.margin};padding: 0 6px;text-align:${t.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${t.value.style.title.subtitle.fontSize}px;color:${t.value.style.title.subtitle.color};font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),width:"100%",viewBox:`0 0 ${c.value.width} ${c.value.height}`},[e.createVNode(q._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`stack_gradient_${r}`,gradientTransform:"rotate(90)",id:`stack_gradient_${r}_${S.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,H),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(o.color,.05),100-t.value.style.bar.gradient.intensity)},null,8,I),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,R)],8,M))),128)),e.createElementVNode("clipPath",W,[e.createElementVNode("rect",{x:"0.005",y:"-2",width:"0.99",height:"5",rx:"3",ry:"3",fill:t.value.style.backgroundColor},null,8,Y)])]),N.value>0?(e.openBlock(),e.createElementBlock("g",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_underlayer_${r}`,x:o.start,y:0,width:o.width,height:c.value.height,fill:t.value.style.bar.gradient.underlayerColor,class:e.normalizeClass({animated:!g.value}),style:e.normalizeStyle({opacity:m.value!==null&&t.value.style.tooltip.show?m.value===r?1:.5:1})},null,14,X))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_${r}`,x:o.start,y:0,width:o.width,height:c.value.height,fill:t.value.style.bar.gradient.show?`url(#stack_gradient_${r}_${S.value})`:o.color,stroke:t.value.style.backgroundColor,"stroke-linecap":"round",class:e.normalizeClass({animated:!g.value}),style:e.normalizeStyle({opacity:m.value!==null&&t.value.style.tooltip.show?m.value===r?1:.5:1})},null,14,J))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_trap_${r}`,onClick:()=>z(o,r),x:o.start,y:0,width:o.width,height:c.value.height,fill:"transparent",stroke:"none",class:e.normalizeClass({animated:!g.value}),onMouseenter:()=>T({datapoint:o,seriesIndex:r}),onMouseleave:n[0]||(n[0]=v=>{b.value=!1,m.value=null})},null,42,K))),128))])):(e.openBlock(),e.createElementBlock("rect",{key:1,x:2,y:1,width:c.value.width-4,height:c.value.height-2,stroke:"#CCCCCC","stroke-width":"2",fill:"transparent",rx:(c.value.height-4)/2},null,8,Q))],8,j)):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(A.default,{key:2,config:{type:"sparkStackbar",style:{backgroundColor:t.value.style.backgroundColor,sparkStackbar:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.legend.show?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(`background:transparent;margin:0 auto;margin:${t.value.style.legend.margin};justify-content:${t.value.style.legend.textAlign==="left"?"flex-start":t.value.style.legend.textAlign==="right"?"flex-end":"center"}`),class:"vue-ui-sparkstackbar-legend"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(o,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-size:${t.value.style.legend.fontSize}px;`),class:e.normalizeClass({"vue-ui-sparkstackbar-legend-item":!0,"vue-ui-sparkstackbar-legend-item-unselected":d.value.includes(r)}),onClick:v=>{F(r),z(o,r)}},[e.createElementVNode("div",ee,[(e.openBlock(),e.createElementBlock("svg",{height:`${t.value.style.legend.fontSize}px`,width:`${t.value.style.legend.fontSize}px`,viewBox:"0 0 10 10"},[e.createElementVNode("circle",{cx:5,cy:5,r:5,fill:o.color},null,8,le)],8,te)),e.createElementVNode("span",{style:e.normalizeStyle(`color:${t.value.style.legend.name.color}; font-weight:${t.value.style.legend.name.bold?"bold":"normal"}`)},e.toDisplayString(o.name),5),t.value.style.legend.percentage.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${t.value.style.legend.percentage.bold?"bold":"normal"};color:${t.value.style.legend.percentage.color}`)},e.toDisplayString(d.value.includes(r)?" - ":o.proportionLabel),5)):e.createCommentVNode("",!0),t.value.style.legend.value.show?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`font-weight:${t.value.style.legend.value.bold?"bold":"normal"};color:${t.value.style.legend.value.color}`)}," ("+e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.legend.value.formatter,o.value,e.unref(a.dataLabel)({p:t.value.style.legend.value.prefix,v:o.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:o,seriesIndex:r}))+") ",5)):e.createCommentVNode("",!0)])],14,Z))),256))],4)):e.createCommentVNode("",!0),e.createVNode(O._sfc_main,{show:b.value&&t.value.style.tooltip.show,parent:B.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,fontSize:t.value.style.tooltip.fontSize,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,content:_.value,isCustom:k.value,offsetY:-124+t.value.style.tooltip.offsetY,blockShiftY:!0},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...w.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...w.value})),void 0,!0)]),_:3},8,["show","parent","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","content","isCustom","offsetY"]),l.$slots.source?(e.openBlock(),e.createElementBlock("div",oe,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],4))}},re=U._export_sfc(ae,[["__scopeId","data-v-233900f7"]]);exports.default=re;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-KDxAXZXP.cjs"),V=require("./useNestedProp-CXjSKjKD.cjs"),A=require("./vue-ui-skeleton-CdeslaC3.cjs"),q=require("./PackageVersion-BzA9shEH.cjs"),O=require("./Tooltip-BABZKovD.cjs"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),j=["xmlns","viewBox"],M=["id"],H=["stop-color"],I=["stop-color"],R=["stop-color"],W={id:"stackPill",clipPathUnits:"objectBoundingBox"},Y=["fill"],G={key:0,"clip-path":"url(#stackPill)"},X=["x","width","height","fill"],J=["x","width","height","fill","stroke"],K=["onClick","x","width","height","onMouseenter"],Q=["width","height","rx"],Z=["onClick"],ee={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"4px","justify-content":"center"}},te=["height","width"],le=["fill"],oe={key:4,ref:"source",dir:"auto"},ae={__name:"vue-ui-sparkstackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(P,{emit:D}){const u=P,{vue_ui_sparkstackbar:L}=a.useConfig(),x=e.computed(()=>!!u.dataset&&u.dataset.length),B=e.ref(null),S=e.ref(a.createUid()),b=e.ref(!1),_=e.ref(""),t=e.computed({get:()=>$(),set:l=>l});function $(){const l=V.useNestedProp({userConfig:u.config,defaultConfig:L});return l.theme?{...V.useNestedProp({userConfig:a.themes.vue_ui_sparkstackbar[l.theme]||u.config,defaultConfig:l}),customPalette:a.themePalettes[l.theme]||a.palette}:l}e.watch(()=>u.config,l=>{t.value=$(),E()},{deep:!0}),e.watch(()=>u.dataset,l=>{p.value=u.dataset.map((n,o)=>({...n,color:n.color?a.convertColorToHex(n.color):f.value[o]||a.palette[o]||a.palette[o%a.palette.length]}))},{deep:!0});const f=e.computed(()=>a.convertCustomPalette(t.value.customPalette)),p=e.ref(u.dataset.map((l,n)=>({...l,value:t.value.style.animation.show?0:l.value||0,color:l.color?a.convertColorToHex(l.color):f.value[n]||a.palette[n]||a.palette[n%a.palette.length]}))),g=e.ref(!0);e.onMounted(()=>{if(E(),t.value.style.animation.show){let v=function(){r+=o/l,r<o?(p.value=p.value.map((s,i)=>({...s,value:s.value+=n[i],color:s.color?a.convertColorToHex(s.color):f.value[i]||a.palette[i]||a.palette[i%a.palette.length]})),requestAnimationFrame(v)):(g.value=!1,p.value=u.dataset.map((s,i)=>({...s,value:s.value||0,color:s.color?a.convertColorToHex(s.color):f.value[i]||a.palette[i]||a.palette[i%a.palette.length],id:a.createUid()})))};const l=t.value.style.animation.animationFrames,n=u.dataset.map((s,i)=>s.value/l),o=u.dataset.map(s=>s.value||0).reduce((s,i)=>s+i,0);let r=0;g.value=!0,v()}});function E(){a.objectIsEmpty(u.dataset)?a.error({componentName:"VueUiSparkStackbar",type:"dataset"}):u.dataset.forEach((l,n)=>{a.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(o=>{a.error({componentName:"VueUiSparkStackbar",type:"datasetSerieAttribute",property:o,index:n})})})}const c=e.ref({width:500,height:16}),d=e.ref([]),N=e.computed(()=>u.dataset.map(l=>l.value||0).filter((l,n)=>!d.value.includes(n)).reduce((l,n)=>l+n,0)),y=e.computed(()=>p.value.map((l,n)=>{const o=l.value||0,r=o/N.value,v=isNaN(r)?0:r,s=v*c.value.width;return{...l,value:o,proportion:v,width:s,proportionLabel:a.dataLabel({v:v*100,s:"%",r:t.value.style.legend.percentage.rounding})}})),C=e.computed(()=>y.value.filter((l,n)=>!d.value.includes(n)));function F(l){d.value.includes(l)?d.value=d.value.filter(n=>n!==l):d.value.length<p.value.length-1&&d.value.push(l)}const h=e.computed(()=>{let l=0;const n=[];for(let o=0;o<C.value.length;o+=1)n.push({...C.value[o],start:l}),l+=C.value[o].width;return n});function z(l,n){D("selectDatapoint",{datapoint:l,index:n})}const w=e.ref(null),k=e.ref(!1),m=e.ref(null);function T({datapoint:l,seriesIndex:n}){if(!t.value.style.tooltip.show)return;w.value={datapoint:l,seriesIndex:n,config:t.value,series:y.value},b.value=!0,m.value=n;const o=t.value.style.tooltip.customFormat;if(a.isFunction(o))try{const r=o({seriesIndex:n,datapoint:l,series:y.value,config:t.value});typeof r=="string"&&(_.value=r,k.value=!0)}catch{console.warn("Custom format cannot be applied."),k.value=!1}if(!k.value){let r="";r+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,r+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`,r+=`<b>${l.proportionLabel}</b>`,r+=`<span>(${a.applyDataLabel(t.value.style.legend.value.formatter,l.value,a.dataLabel({p:t.value.style.legend.value.prefix,v:l.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:l,seriesIndex:n})})</span>`,_.value=`<div>${r}</div>`}}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"sparkstackbarChart",ref:B,style:e.normalizeStyle(`width:100%; background:${t.value.style.backgroundColor}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${t.value.style.title.margin};padding: 0 6px;text-align:${t.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${t.value.style.title.subtitle.fontSize}px;color:${t.value.style.title.subtitle.color};font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),width:"100%",viewBox:`0 0 ${c.value.width} ${c.value.height}`},[e.createVNode(q._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`stack_gradient_${r}`,gradientTransform:"rotate(90)",id:`stack_gradient_${r}_${S.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,H),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(o.color,.05),100-t.value.style.bar.gradient.intensity)},null,8,I),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,R)],8,M))),128)),e.createElementVNode("clipPath",W,[e.createElementVNode("rect",{x:"0.005",y:"-2",width:"0.99",height:"5",rx:"3",ry:"3",fill:t.value.style.backgroundColor},null,8,Y)])]),N.value>0?(e.openBlock(),e.createElementBlock("g",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_underlayer_${r}`,x:o.start,y:0,width:o.width,height:c.value.height,fill:t.value.style.bar.gradient.underlayerColor,class:e.normalizeClass({animated:!g.value}),style:e.normalizeStyle({opacity:m.value!==null&&t.value.style.tooltip.show?m.value===r?1:.5:1})},null,14,X))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_${r}`,x:o.start,y:0,width:o.width,height:c.value.height,fill:t.value.style.bar.gradient.show?`url(#stack_gradient_${r}_${S.value})`:o.color,stroke:t.value.style.backgroundColor,"stroke-linecap":"round",class:e.normalizeClass({animated:!g.value}),style:e.normalizeStyle({opacity:m.value!==null&&t.value.style.tooltip.show?m.value===r?1:.5:1})},null,14,J))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_trap_${r}`,onClick:()=>z(o,r),x:o.start,y:0,width:o.width,height:c.value.height,fill:"transparent",stroke:"none",class:e.normalizeClass({animated:!g.value}),onMouseenter:()=>T({datapoint:o,seriesIndex:r}),onMouseleave:n[0]||(n[0]=v=>{b.value=!1,m.value=null})},null,42,K))),128))])):(e.openBlock(),e.createElementBlock("rect",{key:1,x:2,y:1,width:c.value.width-4,height:c.value.height-2,stroke:"#CCCCCC","stroke-width":"2",fill:"transparent",rx:(c.value.height-4)/2},null,8,Q))],8,j)):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(A.default,{key:2,config:{type:"sparkStackbar",style:{backgroundColor:t.value.style.backgroundColor,sparkStackbar:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.legend.show?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(`background:transparent;margin:0 auto;margin:${t.value.style.legend.margin};justify-content:${t.value.style.legend.textAlign==="left"?"flex-start":t.value.style.legend.textAlign==="right"?"flex-end":"center"}`),class:"vue-ui-sparkstackbar-legend"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(o,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-size:${t.value.style.legend.fontSize}px;`),class:e.normalizeClass({"vue-ui-sparkstackbar-legend-item":!0,"vue-ui-sparkstackbar-legend-item-unselected":d.value.includes(r)}),onClick:v=>{F(r),z(o,r)}},[e.createElementVNode("div",ee,[(e.openBlock(),e.createElementBlock("svg",{height:`${t.value.style.legend.fontSize}px`,width:`${t.value.style.legend.fontSize}px`,viewBox:"0 0 10 10"},[e.createElementVNode("circle",{cx:5,cy:5,r:5,fill:o.color},null,8,le)],8,te)),e.createElementVNode("span",{style:e.normalizeStyle(`color:${t.value.style.legend.name.color}; font-weight:${t.value.style.legend.name.bold?"bold":"normal"}`)},e.toDisplayString(o.name),5),t.value.style.legend.percentage.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${t.value.style.legend.percentage.bold?"bold":"normal"};color:${t.value.style.legend.percentage.color}`)},e.toDisplayString(d.value.includes(r)?" - ":o.proportionLabel),5)):e.createCommentVNode("",!0),t.value.style.legend.value.show?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`font-weight:${t.value.style.legend.value.bold?"bold":"normal"};color:${t.value.style.legend.value.color}`)}," ("+e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.legend.value.formatter,o.value,e.unref(a.dataLabel)({p:t.value.style.legend.value.prefix,v:o.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:o,seriesIndex:r}))+") ",5)):e.createCommentVNode("",!0)])],14,Z))),256))],4)):e.createCommentVNode("",!0),e.createVNode(O._sfc_main,{show:b.value&&t.value.style.tooltip.show,parent:B.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,fontSize:t.value.style.tooltip.fontSize,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,content:_.value,isCustom:k.value,offsetY:-124+t.value.style.tooltip.offsetY,blockShiftY:!0},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...w.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...w.value})),void 0,!0)]),_:3},8,["show","parent","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","content","isCustom","offsetY"]),l.$slots.source?(e.openBlock(),e.createElementBlock("div",oe,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],4))}},re=U._export_sfc(ae,[["__scopeId","data-v-233900f7"]]);exports.default=re;
@@ -1,9 +1,9 @@
1
1
  import { computed as m, ref as d, watch as Y, onMounted as se, openBlock as s, createElementBlock as r, normalizeStyle as v, createElementVNode as p, toDisplayString as w, createCommentVNode as y, unref as C, createVNode as G, Fragment as x, renderList as $, normalizeClass as F, createBlock as re, withCtx as q, renderSlot as j, normalizeProps as H, guardReactiveProps as X } from "vue";
2
- import { u as ne, c as J, t as ue, a as ie, p as i, d as N, b as ce, o as de, e as K, g as ve, f as E, X as pe, s as ge, w as fe, i as Q, x as he } from "./index-DK5d18KK.js";
3
- import { u as Z } from "./useNestedProp-ClXcrtps.js";
4
- import ye from "./vue-ui-skeleton-BRE3meIp.js";
5
- import { _ as me } from "./PackageVersion-DH0d8pMI.js";
6
- import { _ as be } from "./Tooltip-Jc-upaDj.js";
2
+ import { u as ne, c as J, t as ue, a as ie, p as i, d as N, b as ce, o as de, e as K, g as ve, f as E, X as pe, s as ge, w as fe, i as Q, x as he } from "./index-CFa1LJja.js";
3
+ import { u as Z } from "./useNestedProp-DtAqKb0W.js";
4
+ import ye from "./vue-ui-skeleton-CHLsECtI.js";
5
+ import { _ as me } from "./PackageVersion-Bi8RUX5W.js";
6
+ import { _ as be } from "./Tooltip-v1xcr7vF.js";
7
7
  import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const _e = ["xmlns", "viewBox"], we = ["id"], Ce = ["stop-color"], xe = ["stop-color"], $e = ["stop-color"], Se = {
9
9
  id: "stackPill",