vue-data-ui 2.3.89 → 2.3.91

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 (182) hide show
  1. package/dist/{Arrow-6DWnAEHt.js → Arrow-CHTslrAF.js} +1 -1
  2. package/dist/{Arrow-CW5gDSmt.cjs → Arrow-DpuaFuue.cjs} +1 -1
  3. package/dist/{BaseIcon-Dj8EbAXm.js → BaseIcon-DfaCNBgc.js} +1 -1
  4. package/dist/{BaseIcon-B_MrASni.cjs → BaseIcon-JWGtHqTA.cjs} +1 -1
  5. package/dist/{DataTable-BmYcdJ1w.js → DataTable-BKc3r3k3.js} +2 -2
  6. package/dist/{DataTable-DAwK5x3h.cjs → DataTable-CnkdsvIo.cjs} +1 -1
  7. package/dist/{Legend-DhQ-a1RH.cjs → Legend-BQJV6Xk4.cjs} +1 -1
  8. package/dist/{Legend-BRG8ddDy.js → Legend-WNL92WSx.js} +1 -1
  9. package/dist/PackageVersion-D9PU8glB.js +10 -0
  10. package/dist/PackageVersion-LdLhc8hQ.cjs +1 -0
  11. package/dist/{Shape-D7jva0XA.cjs → Shape-CgW0V2Og.cjs} +1 -1
  12. package/dist/{Shape-BcL3EDZ5.js → Shape-DPvoEBm9.js} +1 -1
  13. package/dist/{Slicer-DI1kgq9D.js → Slicer-DE9nFM_c.js} +2 -2
  14. package/dist/{Slicer-DV29nclP.cjs → Slicer-Dma3nlzi.cjs} +1 -1
  15. package/dist/{Title-DYwo_Q5b.cjs → Title-Bg_BK11V.cjs} +1 -1
  16. package/dist/{Title-fAvrqioZ.js → Title-CECK1w9L.js} +1 -1
  17. package/dist/{Tooltip-TZYYFvPe.js → Tooltip-Ci3AprCm.js} +1 -1
  18. package/dist/{Tooltip-03RvVGln.cjs → Tooltip-lM1Jzkza.cjs} +1 -1
  19. package/dist/{index-BKTciLz4.cjs → index-BhH89oF0.cjs} +1 -1
  20. package/dist/{index-Ca4RHJ4t.js → index-mBy4elhB.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{useNestedProp-vP7uimPz.js → useNestedProp-BrIRtQj1.js} +1 -1
  23. package/dist/{useNestedProp-BFnXnY0k.cjs → useNestedProp-m8IH8hWW.cjs} +1 -1
  24. package/dist/{usePrinter-CxYg-Dw-.cjs → usePrinter-B8jr_V3b.cjs} +1 -1
  25. package/dist/{usePrinter-5fwXghqP.js → usePrinter-Ck-yukK2.js} +1 -1
  26. package/dist/{vue-data-ui-BaLkNH7M.cjs → vue-data-ui-BgaY7Noy.cjs} +1 -1
  27. package/dist/{vue-data-ui-4VG00HFR.js → vue-data-ui-BuL-2aYA.js} +57 -57
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-C9a-AsIX.cjs +19 -0
  31. package/dist/{vue-ui-3d-bar-DPJWcxqV.js → vue-ui-3d-bar-Cv-56A3m.js} +148 -146
  32. package/dist/{vue-ui-accordion-SXHdW20_.cjs → vue-ui-accordion-Bzq1iTL2.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-vYoYjedX.js → vue-ui-accordion-dyF20BlD.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-BEC4SHLl.js → vue-ui-age-pyramid-BqsDR6uw.js} +83 -81
  35. package/dist/vue-ui-age-pyramid-DDPU8QV8.cjs +1 -0
  36. package/dist/{vue-ui-annotator-B1NZRuJJ.cjs → vue-ui-annotator-B9HxrEVE.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-DFpv61wn.js → vue-ui-annotator-CkJsRR0r.js} +1 -1
  38. package/dist/{vue-ui-candlestick-AEKT8X3p.js → vue-ui-candlestick-B8eYA2g0.js} +113 -111
  39. package/dist/vue-ui-candlestick-DbbbJa-d.cjs +2 -0
  40. package/dist/{vue-ui-carousel-table-DhzVxOvp.js → vue-ui-carousel-table-BCiTg3Ok.js} +4 -4
  41. package/dist/{vue-ui-carousel-table-DCk2p-1k.cjs → vue-ui-carousel-table-CCWGcKb7.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-qqcIpMGB.js → vue-ui-chestnut-DI-N69Ad.js} +161 -159
  43. package/dist/vue-ui-chestnut-rsWP_sXY.cjs +6 -0
  44. package/dist/{vue-ui-cursor-CgSghVjL.js → vue-ui-cursor-BUzJk1oC.js} +2 -2
  45. package/dist/{vue-ui-cursor-CvJgJk1M.cjs → vue-ui-cursor-wY14Z-Vd.cjs} +1 -1
  46. package/dist/{vue-ui-dashboard-CtJdVmtu.cjs → vue-ui-dashboard-Cf8TYbAr.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-CYzkic0X.js → vue-ui-dashboard-CiG3kXLl.js} +2 -2
  48. package/dist/{vue-ui-digits-C0dMG-hR.cjs → vue-ui-digits-BBho1-xO.cjs} +1 -1
  49. package/dist/{vue-ui-digits-BO1hSjoq.js → vue-ui-digits-DZJI0YuX.js} +2 -2
  50. package/dist/{vue-ui-donut-DP-yxiw3.js → vue-ui-donut-CBG9ECp8.js} +118 -116
  51. package/dist/vue-ui-donut-D4WpeX9W.cjs +1 -0
  52. package/dist/vue-ui-donut-evolution-BVnSrr-b.cjs +1 -0
  53. package/dist/{vue-ui-donut-evolution-C-yDyglF.js → vue-ui-donut-evolution-BtTiBfLb.js} +102 -100
  54. package/dist/vue-ui-dumbbell-BQKiB9yH.cjs +9 -0
  55. package/dist/{vue-ui-dumbbell-D2SQ4cKV.js → vue-ui-dumbbell-DlEN2c_X.js} +88 -86
  56. package/dist/{vue-ui-flow-D_E9V2A1.js → vue-ui-flow-CXqGztWj.js} +65 -63
  57. package/dist/vue-ui-flow-DfMNmttZ.cjs +1 -0
  58. package/dist/vue-ui-galaxy-CGn5nkD5.cjs +1 -0
  59. package/dist/{vue-ui-galaxy-DqE2UiA3.js → vue-ui-galaxy-xI38Kf-S.js} +82 -80
  60. package/dist/{vue-ui-gauge-CFYXDw2p.js → vue-ui-gauge-BEludqYn.js} +56 -54
  61. package/dist/vue-ui-gauge-Bz-OSNOJ.cjs +1 -0
  62. package/dist/{vue-ui-gizmo-BWztIJ3j.js → vue-ui-gizmo-BB28OTr1.js} +32 -30
  63. package/dist/vue-ui-gizmo-CZZB7YgY.cjs +1 -0
  64. package/dist/vue-ui-heatmap-BtUvE7rK.cjs +1 -0
  65. package/dist/{vue-ui-heatmap-E1MlhSCs.js → vue-ui-heatmap-mywZXUV8.js} +99 -97
  66. package/dist/{vue-ui-kpi-BWDPF-9X.cjs → vue-ui-kpi-CEAGjnkj.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-DeP0XmP7.js → vue-ui-kpi-zr721ux9.js} +3 -3
  68. package/dist/{vue-ui-mini-loader-Bal12IrX.js → vue-ui-mini-loader-9zyuKIpT.js} +2 -2
  69. package/dist/{vue-ui-mini-loader-D5e8uW_d.cjs → vue-ui-mini-loader-DBFAzGb2.cjs} +1 -1
  70. package/dist/{vue-ui-molecule-DHrHeQgF.js → vue-ui-molecule-Bv_ppQig.js} +77 -75
  71. package/dist/vue-ui-molecule-DltNL0kV.cjs +1 -0
  72. package/dist/{vue-ui-mood-radar-dJaJotNf.js → vue-ui-mood-radar-CIK2Xohn.js} +76 -74
  73. package/dist/vue-ui-mood-radar-CQkF2Rp1.cjs +1 -0
  74. package/dist/{vue-ui-nested-donuts--K9ygdH3.js → vue-ui-nested-donuts-f-cMx3iQ.js} +112 -110
  75. package/dist/vue-ui-nested-donuts-vHr23QlH.cjs +17 -0
  76. package/dist/vue-ui-onion-B6ZrryDW.cjs +5 -0
  77. package/dist/{vue-ui-onion-Bm1inM56.js → vue-ui-onion-CmUXelhy.js} +82 -80
  78. package/dist/vue-ui-parallel-coordinate-plot-BU0yoxD9.cjs +8 -0
  79. package/dist/{vue-ui-parallel-coordinate-plot-9PSGD-LR.js → vue-ui-parallel-coordinate-plot-h9dS2u_k.js} +91 -89
  80. package/dist/{vue-ui-quadrant-iGQbx93I.js → vue-ui-quadrant-DNT_0fTL.js} +141 -139
  81. package/dist/vue-ui-quadrant-DPPXilUd.cjs +1 -0
  82. package/dist/vue-ui-quick-chart-1gG267X0.cjs +15 -0
  83. package/dist/{vue-ui-quick-chart-DeEQcx6A.js → vue-ui-quick-chart-T6C0BTyw.js} +166 -164
  84. package/dist/{vue-ui-radar-DfnhsNQV.js → vue-ui-radar-CfCHXIYJ.js} +89 -87
  85. package/dist/vue-ui-radar-DpzjMFZD.cjs +1 -0
  86. package/dist/{vue-ui-rating-D0rgVdkT.cjs → vue-ui-rating-DYcT_LS-.cjs} +1 -1
  87. package/dist/{vue-ui-rating-CCesFD6e.js → vue-ui-rating-DuRLpMwk.js} +2 -2
  88. package/dist/vue-ui-relation-circle-BMrPtD2n.cjs +1 -0
  89. package/dist/{vue-ui-relation-circle-D2GXm_Fk.js → vue-ui-relation-circle-WmZMKqHL.js} +54 -52
  90. package/dist/{vue-ui-rings-B7_-G3JM.js → vue-ui-rings-Ce0Z_osd.js} +97 -93
  91. package/dist/{vue-ui-rings-CScmcQ1n.cjs → vue-ui-rings-CkYl3uce.cjs} +2 -2
  92. package/dist/vue-ui-scatter-Cjie2D-t.cjs +1 -0
  93. package/dist/{vue-ui-scatter-DdhiNjLc.js → vue-ui-scatter-DY9EpoGP.js} +132 -130
  94. package/dist/{vue-ui-screenshot-BrhjnTwn.cjs → vue-ui-screenshot-BCFym6go.cjs} +1 -1
  95. package/dist/{vue-ui-screenshot-Cpy2qbf1.js → vue-ui-screenshot-lQLJHBQ2.js} +1 -1
  96. package/dist/vue-ui-skeleton-Cf89QIhl.cjs +41 -0
  97. package/dist/{vue-ui-skeleton-D7aLznpP.js → vue-ui-skeleton-DDhwPZd_.js} +423 -388
  98. package/dist/{vue-ui-smiley-Cj0yi7_H.cjs → vue-ui-smiley-DMA6fgGr.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-vcpYARLj.js → vue-ui-smiley-xxMwBT9c.js} +2 -2
  100. package/dist/vue-ui-spark-trend-Btj_H6fa.cjs +1 -0
  101. package/dist/{vue-ui-spark-trend-CFJSCQnf.js → vue-ui-spark-trend-CLHTqp94.js} +42 -40
  102. package/dist/{vue-ui-sparkbar-CgRdDfk6.js → vue-ui-sparkbar-Btk6snt4.js} +53 -51
  103. package/dist/vue-ui-sparkbar-CKrbBVKQ.cjs +1 -0
  104. package/dist/{vue-ui-sparkgauge-CCPMNge0.js → vue-ui-sparkgauge-DKJtFTSv.js} +31 -29
  105. package/dist/vue-ui-sparkgauge-DfWLtFYS.cjs +1 -0
  106. package/dist/{vue-ui-sparkhistogram-D5z2Wtpk.js → vue-ui-sparkhistogram-JRLlw9EX.js} +69 -67
  107. package/dist/vue-ui-sparkhistogram-wHJ-8zVV.cjs +1 -0
  108. package/dist/vue-ui-sparkline-DElVaalm.cjs +1 -0
  109. package/dist/{vue-ui-sparkline-KYN0oKt1.js → vue-ui-sparkline-tBF9iaNm.js} +65 -63
  110. package/dist/{vue-ui-sparkstackbar-7lurD9-4.js → vue-ui-sparkstackbar-BS9I8en7.js} +102 -87
  111. package/dist/vue-ui-sparkstackbar-tZa2IYHP.cjs +1 -0
  112. package/dist/{vue-ui-stackbar-CsVmAvl3.js → vue-ui-stackbar-UiX8q4yL.js} +128 -126
  113. package/dist/vue-ui-stackbar-rOa0atA9.cjs +6 -0
  114. package/dist/{vue-ui-strip-plot-B63AgKts.js → vue-ui-strip-plot-BOkfg5vB.js} +78 -76
  115. package/dist/vue-ui-strip-plot-hRy6QRHK.cjs +1 -0
  116. package/dist/{vue-ui-table-hPqdMR-m.cjs → vue-ui-table-B9dc0l0k.cjs} +1 -1
  117. package/dist/{vue-ui-table-G5O8K-F_.js → vue-ui-table-Dtfv71zG.js} +1 -1
  118. package/dist/{vue-ui-table-heatmap-t9Ngijvp.js → vue-ui-table-heatmap-BMl-sP5Q.js} +4 -4
  119. package/dist/{vue-ui-table-heatmap-BhVuTdSS.cjs → vue-ui-table-heatmap-DUQEHohs.cjs} +1 -1
  120. package/dist/{vue-ui-table-sparkline-DtjJrGve.cjs → vue-ui-table-sparkline-BVnGb-lu.cjs} +1 -1
  121. package/dist/{vue-ui-table-sparkline-BX4en1c-.js → vue-ui-table-sparkline-BeunspIj.js} +5 -5
  122. package/dist/vue-ui-thermometer-A3Xxn5Ly.cjs +1 -0
  123. package/dist/{vue-ui-thermometer-BWGyDQ7_.js → vue-ui-thermometer-Cb9ALBj_.js} +80 -78
  124. package/dist/{vue-ui-timer-8AlVLAJi.js → vue-ui-timer-2PRDq1w6.js} +62 -60
  125. package/dist/vue-ui-timer-DltmIdrq.cjs +64 -0
  126. package/dist/vue-ui-tiremarks-BTlJcW4v.cjs +1 -0
  127. package/dist/{vue-ui-tiremarks-DYIHGkBU.js → vue-ui-tiremarks-Bse3PMGV.js} +51 -49
  128. package/dist/vue-ui-treemap-Cv_mHK8H.cjs +1 -0
  129. package/dist/{vue-ui-treemap-mmvdTHiX.js → vue-ui-treemap-D8fjVYq0.js} +93 -91
  130. package/dist/{vue-ui-vertical-bar-DAKHNRoR.js → vue-ui-vertical-bar-BVldPT8k.js} +110 -108
  131. package/dist/vue-ui-vertical-bar-ZgJq3_CI.cjs +4 -0
  132. package/dist/vue-ui-waffle-BpeGEjCl.cjs +1 -0
  133. package/dist/{vue-ui-waffle-B-A4NYNd.js → vue-ui-waffle-wikAjwZY.js} +72 -70
  134. package/dist/vue-ui-wheel-BlgfdULS.cjs +1 -0
  135. package/dist/{vue-ui-wheel-DN9WvA6Z.js → vue-ui-wheel-D5qyBs0Y.js} +43 -41
  136. package/dist/{vue-ui-word-cloud-BWTyaGAT.js → vue-ui-word-cloud-Bcdl2iE-.js} +60 -58
  137. package/dist/vue-ui-word-cloud-sNzfl_Tq.cjs +1 -0
  138. package/dist/{vue-ui-xy-Dzp4qCjk.js → vue-ui-xy-CUjllUSv.js} +507 -504
  139. package/dist/vue-ui-xy-FHLTc7xG.cjs +3 -0
  140. package/dist/{vue-ui-xy-canvas-CAcTkk_r.cjs → vue-ui-xy-canvas-BJUnRVuf.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-9NPbm7dE.js → vue-ui-xy-canvas-BkOlPU8e.js} +10 -10
  142. package/package.json +1 -1
  143. package/dist/vue-ui-3d-bar-rOT9iPsm.cjs +0 -19
  144. package/dist/vue-ui-age-pyramid-HElID9Ax.cjs +0 -1
  145. package/dist/vue-ui-candlestick-p1s0Av21.cjs +0 -2
  146. package/dist/vue-ui-chestnut-oFfB3fBF.cjs +0 -6
  147. package/dist/vue-ui-donut-Dnnoj71c.cjs +0 -1
  148. package/dist/vue-ui-donut-evolution-vBUH5VVx.cjs +0 -1
  149. package/dist/vue-ui-dumbbell-BUA_uSse.cjs +0 -9
  150. package/dist/vue-ui-flow-B-AFlw-n.cjs +0 -1
  151. package/dist/vue-ui-galaxy-CbL5nONj.cjs +0 -1
  152. package/dist/vue-ui-gauge-BUV_hQND.cjs +0 -1
  153. package/dist/vue-ui-gizmo-B-LxuvDh.cjs +0 -1
  154. package/dist/vue-ui-heatmap-DW5StHKM.cjs +0 -1
  155. package/dist/vue-ui-molecule-DHBId4h4.cjs +0 -1
  156. package/dist/vue-ui-mood-radar-DSXB9l99.cjs +0 -1
  157. package/dist/vue-ui-nested-donuts-CEX2cvop.cjs +0 -17
  158. package/dist/vue-ui-onion-Iekdjs8b.cjs +0 -5
  159. package/dist/vue-ui-parallel-coordinate-plot-OlFoYL_3.cjs +0 -8
  160. package/dist/vue-ui-quadrant-CgJeo2zZ.cjs +0 -1
  161. package/dist/vue-ui-quick-chart-Du8lDPmh.cjs +0 -15
  162. package/dist/vue-ui-radar-BYk9DWnM.cjs +0 -1
  163. package/dist/vue-ui-relation-circle-8eoBav4O.cjs +0 -1
  164. package/dist/vue-ui-scatter-BnBI8qdt.cjs +0 -1
  165. package/dist/vue-ui-skeleton-pDeQ3NcD.cjs +0 -41
  166. package/dist/vue-ui-spark-trend-BW8k0jDd.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-BbJHfAQj.cjs +0 -1
  168. package/dist/vue-ui-sparkgauge-BESRB8_4.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-BYnSfLdb.cjs +0 -1
  170. package/dist/vue-ui-sparkline-D5WUy4p5.cjs +0 -1
  171. package/dist/vue-ui-sparkstackbar-Dy-IfQ3q.cjs +0 -1
  172. package/dist/vue-ui-stackbar-Ch-fmE9l.cjs +0 -6
  173. package/dist/vue-ui-strip-plot-BLRl-tF6.cjs +0 -1
  174. package/dist/vue-ui-thermometer-B07RI9fZ.cjs +0 -1
  175. package/dist/vue-ui-timer-CXrENAVg.cjs +0 -64
  176. package/dist/vue-ui-tiremarks-C43c4_IR.cjs +0 -1
  177. package/dist/vue-ui-treemap-BN90ISQv.cjs +0 -1
  178. package/dist/vue-ui-vertical-bar-BRDO_Rsu.cjs +0 -4
  179. package/dist/vue-ui-waffle-BN_yZEtJ.cjs +0 -1
  180. package/dist/vue-ui-wheel-50_zeiIW.cjs +0 -1
  181. package/dist/vue-ui-word-cloud-BVoFIb_q.cjs +0 -1
  182. package/dist/vue-ui-xy-CJHHesUD.cjs +0 -3
@@ -1,10 +1,11 @@
1
- import { useCssVars as J, computed as _, onMounted as K, ref as D, watch as Q, openBlock as a, createElementBlock as s, normalizeStyle as $, createElementVNode as y, createTextVNode as Z, toDisplayString as p, unref as r, createCommentVNode as g, Fragment as h, renderList as f, normalizeClass as N, createBlock as I } from "vue";
2
- import { u as ee, o as te, e as H, g as le, c as ae, t as se, s as b, i as V, f as E, X as oe, w as z } from "./index-Ca4RHJ4t.js";
3
- import { u as F } from "./useNestedProp-vP7uimPz.js";
4
- import { _ as ue } from "./Shape-BcL3EDZ5.js";
5
- import ie from "./vue-ui-skeleton-D7aLznpP.js";
6
- import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"], ye = ["stop-color"], he = ["stop-color"], fe = ["id"], pe = ["stop-color"], ge = ["stop-color"], be = ["id"], me = ["stop-color"], _e = ["stop-color"], xe = { key: 0 }, ke = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], we = { key: 1 }, $e = ["x", "y", "font-size", "font-weight", "fill"], Ce = ["x", "y", "font-size", "fill"], Le = ["x", "y", "font-size", "fill"], ze = ["height", "width", "x", "onMouseover", "stroke", "stroke-width", "rx", "stroke-dasharray", "onClick"], Se = {
1
+ import { useCssVars as J, computed as _, onMounted as K, ref as N, watch as Q, openBlock as a, createElementBlock as s, normalizeStyle as $, createElementVNode as y, createTextVNode as Z, toDisplayString as p, unref as n, createCommentVNode as g, createVNode as ee, Fragment as f, renderList as h, normalizeClass as D, createBlock as I } from "vue";
2
+ import { u as te, o as le, e as V, g as ae, c as se, t as oe, s as m, i as H, f as E, X as ue, w as z } from "./index-mBy4elhB.js";
3
+ import { u as F } from "./useNestedProp-BrIRtQj1.js";
4
+ import { _ as ie } from "./Shape-DPvoEBm9.js";
5
+ import re from "./vue-ui-skeleton-DDhwPZd_.js";
6
+ import { _ as ne } from "./PackageVersion-D9PU8glB.js";
7
+ import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"], he = ["stop-color"], pe = ["stop-color"], ge = ["id"], me = ["stop-color"], be = ["stop-color"], _e = ["id"], xe = ["stop-color"], ke = ["stop-color"], we = { key: 0 }, $e = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Ce = { key: 1 }, Le = ["x", "y", "font-size", "font-weight", "fill"], ze = ["x", "y", "font-size", "fill"], Se = ["x", "y", "font-size", "fill"], Me = ["height", "width", "x", "onMouseover", "stroke", "stroke-width", "rx", "stroke-dasharray", "onClick"], Ae = {
8
9
  __name: "vue-ui-sparkhistogram",
9
10
  props: {
10
11
  config: {
@@ -24,22 +25,22 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
24
25
  setup(W, { emit: B }) {
25
26
  const v = W;
26
27
  J((l) => ({
27
- dca3ca72: G.value
28
+ b8c0e060: G.value
28
29
  }));
29
- const { vue_ui_sparkhistogram: O } = ee(), S = _(() => !!v.dataset && v.dataset.length);
30
+ const { vue_ui_sparkhistogram: O } = te(), S = _(() => !!v.dataset && v.dataset.length);
30
31
  K(() => {
31
32
  M();
32
33
  });
33
34
  function M() {
34
- te(v.dataset) ? H({
35
+ le(v.dataset) ? V({
35
36
  componentName: "VueUiSparkHistogram",
36
37
  type: "dataset"
37
38
  }) : v.dataset.forEach((l, i) => {
38
- le({
39
+ ae({
39
40
  datasetObject: l,
40
41
  requiredAttributes: ["value"]
41
42
  }).forEach((t) => {
42
- H({
43
+ V({
43
44
  componentName: "VueUiSparkHistogram",
44
45
  type: "datasetSerieAttribute",
45
46
  property: t,
@@ -48,7 +49,7 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
48
49
  });
49
50
  });
50
51
  }
51
- const m = D(ae()), e = _({
52
+ const b = N(se()), e = _({
52
53
  get: () => A(),
53
54
  set: (l) => l
54
55
  });
@@ -59,7 +60,7 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
59
60
  });
60
61
  return l.theme ? {
61
62
  ...F({
62
- userConfig: se.vue_ui_sparkhistogram[l.theme] || v.config,
63
+ userConfig: oe.vue_ui_sparkhistogram[l.theme] || v.config,
63
64
  defaultConfig: l
64
65
  })
65
66
  } : l;
@@ -84,8 +85,8 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
84
85
  function X(l) {
85
86
  return Math.abs(l) / U.value;
86
87
  }
87
- const n = _(() => v.dataset.map((l, i) => {
88
- const t = X(l.value || 0), o = d.value.drawingHeight * t, c = d.value.drawingWidth / v.dataset.length, x = c * (e.value.style.bars.gap / 100), k = c - x, C = d.value.centerY - o / 2, w = d.value.left + (x / 2 + i * c), Y = d.value.left + i * c, L = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), q = l.color ? l.color : l.value >= 0 ? b(e.value.style.bars.colors.positive, L) : b(e.value.style.bars.colors.negative, L), R = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, T = l.color ? `url(#gradient_datapoint_${i}_${m.value})` : l.value >= 0 ? `url(#gradient_positive_${i}_${m.value})` : `url(#gradient_negative_${i}_${m.value})`, P = w + k / 2;
88
+ const r = _(() => v.dataset.map((l, i) => {
89
+ const t = X(l.value || 0), o = d.value.drawingHeight * t, c = d.value.drawingWidth / v.dataset.length, x = c * (e.value.style.bars.gap / 100), k = c - x, C = d.value.centerY - o / 2, w = d.value.left + (x / 2 + i * c), Y = d.value.left + i * c, L = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), q = l.color ? l.color : l.value >= 0 ? m(e.value.style.bars.colors.positive, L) : m(e.value.style.bars.colors.negative, L), R = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, T = l.color ? `url(#gradient_datapoint_${i}_${b.value})` : l.value >= 0 ? `url(#gradient_positive_${i}_${b.value})` : `url(#gradient_negative_${i}_${b.value})`, P = w + k / 2;
89
90
  return {
90
91
  ...l,
91
92
  color: q,
@@ -101,7 +102,7 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
101
102
  x: w,
102
103
  y: C
103
104
  };
104
- })), u = D(null);
105
+ })), u = N(null);
105
106
  function j(l, i) {
106
107
  B("selectDatapoint", { datapoint: l, index: i });
107
108
  }
@@ -118,18 +119,18 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
118
119
  style: $(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
119
120
  }, [
120
121
  Z(p(e.value.style.title.text) + " ", 1),
121
- u.value !== null ? (a(), s("span", re, "- " + p(n.value[u.value].timeLabel || "") + " " + p(r(V)(
122
+ u.value !== null ? (a(), s("span", de, "- " + p(r.value[u.value].timeLabel || "") + " " + p(n(H)(
122
123
  e.value.style.labels.value.formatter,
123
- n.value[u.value].value,
124
- r(E)({
124
+ r.value[u.value].value,
125
+ n(E)({
125
126
  p: e.value.style.labels.value.prefix,
126
- v: n.value[u.value].value,
127
+ v: r.value[u.value].value,
127
128
  s: e.value.style.labels.value.suffix,
128
129
  r: e.value.style.labels.value.rounding
129
130
  }),
130
- { datapoint: n.value[u.value], seriesIndex: u.value }
131
+ { datapoint: r.value[u.value], seriesIndex: u.value }
131
132
  )), 1)) : g("", !0),
132
- ![void 0, null].includes(u.value) && ![null, void 0].includes(n.value[u.value].valueLabel) ? (a(), s("span", ve, "(" + p(n.value[u.value].valueLabel || 0) + ")", 1)) : g("", !0)
133
+ ![void 0, null].includes(u.value) && ![null, void 0].includes(r.value[u.value].valueLabel) ? (a(), s("span", ce, "(" + p(r.value[u.value].valueLabel || 0) + ")", 1)) : g("", !0)
133
134
  ], 4),
134
135
  e.value.style.title.subtitle.text ? (a(), s("div", {
135
136
  key: 0,
@@ -138,13 +139,14 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
138
139
  ], 4)) : g("", !0),
139
140
  S.value ? (a(), s("svg", {
140
141
  key: 1,
141
- xmlns: r(oe),
142
+ xmlns: n(ue),
142
143
  viewBox: `0 0 ${d.value.width} ${d.value.height}`,
143
144
  style: { overflow: "visible" }
144
145
  }, [
146
+ ee(ne),
145
147
  y("defs", null, [
146
- (a(!0), s(h, null, f(n.value, (t, o) => (a(), s("radialGradient", {
147
- id: `gradient_positive_${o}_${m.value}`,
148
+ (a(!0), s(f, null, h(r.value, (t, o) => (a(), s("radialGradient", {
149
+ id: `gradient_positive_${o}_${b.value}`,
148
150
  cy: "50%",
149
151
  cx: "50%",
150
152
  r: "50%",
@@ -153,15 +155,15 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
153
155
  }, [
154
156
  y("stop", {
155
157
  offset: "0%",
156
- "stop-color": r(b)(r(z)(e.value.style.bars.colors.positive, 0.05), t.intensity)
157
- }, null, 8, ye),
158
+ "stop-color": n(m)(n(z)(e.value.style.bars.colors.positive, 0.05), t.intensity)
159
+ }, null, 8, he),
158
160
  y("stop", {
159
161
  offset: "100%",
160
- "stop-color": r(b)(e.value.style.bars.colors.positive, t.intensity)
161
- }, null, 8, he)
162
- ], 8, ce))), 256)),
163
- (a(!0), s(h, null, f(n.value, (t, o) => (a(), s("radialGradient", {
164
- id: `gradient_negative_${o}_${m.value}`,
162
+ "stop-color": n(m)(e.value.style.bars.colors.positive, t.intensity)
163
+ }, null, 8, pe)
164
+ ], 8, fe))), 256)),
165
+ (a(!0), s(f, null, h(r.value, (t, o) => (a(), s("radialGradient", {
166
+ id: `gradient_negative_${o}_${b.value}`,
165
167
  cy: "50%",
166
168
  cx: "50%",
167
169
  r: "50%",
@@ -170,15 +172,15 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
170
172
  }, [
171
173
  y("stop", {
172
174
  offset: "0%",
173
- "stop-color": r(b)(r(z)(e.value.style.bars.colors.negative, 0.05), t.intensity)
174
- }, null, 8, pe),
175
+ "stop-color": n(m)(n(z)(e.value.style.bars.colors.negative, 0.05), t.intensity)
176
+ }, null, 8, me),
175
177
  y("stop", {
176
178
  offset: "100%",
177
- "stop-color": r(b)(e.value.style.bars.colors.negative, t.intensity)
178
- }, null, 8, ge)
179
- ], 8, fe))), 256)),
180
- (a(!0), s(h, null, f(n.value, (t, o) => (a(), s("radialGradient", {
181
- id: `gradient_datapoint_${o}_${m.value}`,
179
+ "stop-color": n(m)(e.value.style.bars.colors.negative, t.intensity)
180
+ }, null, 8, be)
181
+ ], 8, ge))), 256)),
182
+ (a(!0), s(f, null, h(r.value, (t, o) => (a(), s("radialGradient", {
183
+ id: `gradient_datapoint_${o}_${b.value}`,
182
184
  cy: "50%",
183
185
  cx: "50%",
184
186
  r: "50%",
@@ -187,16 +189,16 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
187
189
  }, [
188
190
  y("stop", {
189
191
  offset: "0%",
190
- "stop-color": r(b)(r(z)(t.color, 0.05), t.intensity)
191
- }, null, 8, me),
192
+ "stop-color": n(m)(n(z)(t.color, 0.05), t.intensity)
193
+ }, null, 8, xe),
192
194
  y("stop", {
193
195
  offset: "100%",
194
- "stop-color": r(b)(t.color, t.intensity)
195
- }, null, 8, _e)
196
- ], 8, be))), 256))
196
+ "stop-color": n(m)(t.color, t.intensity)
197
+ }, null, 8, ke)
198
+ ], 8, _e))), 256))
197
199
  ]),
198
- !e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", xe, [
199
- (a(!0), s(h, null, f(n.value, (t, o) => (a(), s("rect", {
200
+ !e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", we, [
201
+ (a(!0), s(f, null, h(r.value, (t, o) => (a(), s("rect", {
200
202
  x: t.x,
201
203
  y: t.y,
202
204
  height: t.height,
@@ -205,36 +207,36 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
205
207
  stroke: t.stroke,
206
208
  "stroke-width": e.value.style.bars.strokeWidth,
207
209
  rx: `${e.value.style.bars.borderRadius * t.proportion / 12}%`,
208
- class: N({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
209
- }, null, 10, ke))), 256))
210
- ])) : (a(), s("g", we, [
211
- (a(!0), s(h, null, f(n.value, (t, o) => (a(), I(ue, {
210
+ class: D({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
211
+ }, null, 10, $e))), 256))
212
+ ])) : (a(), s("g", Ce, [
213
+ (a(!0), s(f, null, h(r.value, (t, o) => (a(), I(ie, {
212
214
  plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
213
215
  color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
214
216
  shape: e.value.style.bars.shape,
215
217
  radius: t.height * 0.4,
216
- class: N({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
218
+ class: D({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
217
219
  }, null, 8, ["plot", "color", "shape", "radius", "class"]))), 256))
218
220
  ])),
219
- (a(!0), s(h, null, f(n.value, (t, o) => (a(), s("text", {
221
+ (a(!0), s(f, null, h(r.value, (t, o) => (a(), s("text", {
220
222
  "text-anchor": "middle",
221
223
  x: t.textAnchor,
222
224
  y: t.y - e.value.style.labels.value.fontSize / 3 + e.value.style.labels.value.offsetY,
223
225
  "font-size": e.value.style.labels.value.fontSize,
224
226
  "font-weight": e.value.style.labels.value.bold ? "bold" : "normal",
225
227
  fill: e.value.style.labels.value.color
226
- }, p(r(V)(
228
+ }, p(n(H)(
227
229
  e.value.style.labels.value.formatter,
228
230
  t.value,
229
- r(E)({
231
+ n(E)({
230
232
  p: e.value.style.labels.value.prefix,
231
233
  v: t.value,
232
234
  s: e.value.style.labels.value.suffix,
233
235
  r: e.value.style.labels.value.rounding
234
236
  }),
235
- { datapoint: n.value[u.value], seriesIndex: u.value }
236
- )), 9, $e))), 256)),
237
- (a(!0), s(h, null, f(n.value, (t, o) => (a(), s("g", null, [
237
+ { datapoint: r.value[u.value], seriesIndex: u.value }
238
+ )), 9, Le))), 256)),
239
+ (a(!0), s(f, null, h(r.value, (t, o) => (a(), s("g", null, [
238
240
  t.valueLabel ? (a(), s("text", {
239
241
  key: 0,
240
242
  x: t.textAnchor,
@@ -242,9 +244,9 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
242
244
  "font-size": e.value.style.labels.valueLabel.fontSize,
243
245
  "text-anchor": "middle",
244
246
  fill: e.value.style.labels.valueLabel.color
245
- }, p(t.valueLabel), 9, Ce)) : g("", !0)
247
+ }, p(t.valueLabel), 9, ze)) : g("", !0)
246
248
  ]))), 256)),
247
- (a(!0), s(h, null, f(n.value, (t, o) => (a(), s("g", null, [
249
+ (a(!0), s(f, null, h(r.value, (t, o) => (a(), s("g", null, [
248
250
  t.timeLabel ? (a(), s("text", {
249
251
  key: 0,
250
252
  x: t.textAnchor,
@@ -252,9 +254,9 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
252
254
  "font-size": e.value.style.labels.timeLabel.fontSize,
253
255
  fill: e.value.style.labels.timeLabel.color,
254
256
  "text-anchor": "middle"
255
- }, p(t.timeLabel), 9, Le)) : g("", !0)
257
+ }, p(t.timeLabel), 9, Se)) : g("", !0)
256
258
  ]))), 256)),
257
- (a(!0), s(h, null, f(n.value, (t, o) => (a(), s("g", null, [
259
+ (a(!0), s(f, null, h(r.value, (t, o) => (a(), s("g", null, [
258
260
  y("rect", {
259
261
  height: d.value.height,
260
262
  width: t.unitWidth,
@@ -268,10 +270,10 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
268
270
  rx: e.value.style.selector.borderRadius,
269
271
  "stroke-dasharray": e.value.style.selector.strokeDasharray,
270
272
  onClick: () => j(t, o)
271
- }, null, 40, ze)
273
+ }, null, 40, Me)
272
274
  ]))), 256))
273
- ], 8, de)) : g("", !0),
274
- S.value ? g("", !0) : (a(), I(ie, {
275
+ ], 8, ye)) : g("", !0),
276
+ S.value ? g("", !0) : (a(), I(re, {
275
277
  key: 2,
276
278
  config: {
277
279
  type: "sparkHistogram",
@@ -285,7 +287,7 @@ const re = { key: 0 }, ve = { key: 1 }, de = ["xmlns", "viewBox"], ce = ["id"],
285
287
  }, null, 8, ["config"]))
286
288
  ], 36));
287
289
  }
288
- }, Ve = /* @__PURE__ */ ne(Se, [["__scopeId", "data-v-da8fd5e0"]]);
290
+ }, We = /* @__PURE__ */ ve(Ae, [["__scopeId", "data-v-eff7ec8f"]]);
289
291
  export {
290
- Ve as default
292
+ We as default
291
293
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-BhH89oF0.cjs"),_=require("./useNestedProp-m8IH8hWW.cjs"),F=require("./Shape-CgW0V2Og.cjs"),M=require("./vue-ui-skeleton-Cf89QIhl.cjs"),O=require("./PackageVersion-LdLhc8hQ.cjs"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H={key:0},q={key:1},I=["xmlns","viewBox"],U=["id"],W=["stop-color"],P=["stop-color"],j=["id"],G=["stop-color"],T=["stop-color"],X=["id"],Y=["stop-color"],R=["stop-color"],J={key:0},K=["x","y","height","width","fill","stroke","stroke-width","rx"],Q={key:1},Z=["x","y","font-size","font-weight","fill"],ee=["x","y","font-size","fill"],te=["x","y","font-size","fill"],le=["height","width","x","onMouseover","stroke","stroke-width","rx","stroke-dasharray","onClick"],oe={__name:"vue-ui-sparkhistogram",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(x,{emit:B}){const u=x;e.useCssVars(o=>({b8c0e060:S.value}));const{vue_ui_sparkhistogram:E}=a.useConfig(),h=e.computed(()=>!!u.dataset&&u.dataset.length);e.onMounted(()=>{k()});function k(){a.objectIsEmpty(u.dataset)?a.error({componentName:"VueUiSparkHistogram",type:"dataset"}):u.dataset.forEach((o,r)=>{a.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["value"]}).forEach(l=>{a.error({componentName:"VueUiSparkHistogram",type:"datasetSerieAttribute",property:l,index:r})})})}const v=e.ref(a.createUid()),t=e.computed({get:()=>b(),set:o=>o});function b(){const o=_.useNestedProp({userConfig:u.config,defaultConfig:E});return o.theme?{..._.useNestedProp({userConfig:a.themes.vue_ui_sparkhistogram[o.theme]||u.config,defaultConfig:o})}:o}e.watch(()=>u.config,o=>{t.value=b(),k()},{deep:!0});const c=e.computed(()=>{const o=t.value.style.layout.height,r=t.value.style.layout.width,l=t.value.style.layout.padding.top,s=o-t.value.style.layout.padding.bottom,d=t.value.style.layout.padding.left,y=r-t.value.style.layout.padding.right,p=l+(o-l-t.value.style.layout.padding.bottom)/2,f=o-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,m=r-t.value.style.layout.padding.left-t.value.style.layout.padding.right;return{bottom:s,centerY:p,drawingHeight:f,drawingWidth:m,height:o,left:d,right:y,top:l,width:r}}),w=e.computed(()=>Math.max(...u.dataset.map(o=>Math.abs(o.value||0))));function C(o){return Math.abs(o)/w.value}const i=e.computed(()=>u.dataset.map((o,r)=>{const l=C(o.value||0),s=c.value.drawingHeight*l,d=c.value.drawingWidth/u.dataset.length,y=d*(t.value.style.bars.gap/100),p=d-y,f=c.value.centerY-s/2,m=c.value.left+(y/2+r*d),$=c.value.left+r*d,g=typeof o.intensity>"u"?100:Math.round(o.intensity*100),N=o.color?o.color:o.value>=0?a.setOpacity(t.value.style.bars.colors.positive,g):a.setOpacity(t.value.style.bars.colors.negative,g),V=o.color?o.color:o.value>=0?t.value.style.bars.colors.positive:t.value.style.bars.colors.negative,z=o.color?`url(#gradient_datapoint_${r}_${v.value})`:o.value>=0?`url(#gradient_positive_${r}_${v.value})`:`url(#gradient_negative_${r}_${v.value})`,D=m+p/2;return{...o,color:N,gradient:z,height:s,intensity:g,proportion:l,stroke:V,textAnchor:D,trapX:$,unitWidth:d,width:p,x:m,y:f}})),n=e.ref(null);function L(o,r){B("selectDatapoint",{datapoint:o,index:r})}const S=e.computed(()=>`${t.value.style.animation.speedMs}ms`);return(o,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%;background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily}`),onMouseleave:r[1]||(r[1]=l=>n.value=null)},[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.createTextVNode(e.toDisplayString(t.value.style.title.text)+" ",1),n.value!==null?(e.openBlock(),e.createElementBlock("span",H,"- "+e.toDisplayString(i.value[n.value].timeLabel||"")+" "+e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.labels.value.formatter,i.value[n.value].value,e.unref(a.dataLabel)({p:t.value.style.labels.value.prefix,v:i.value[n.value].value,s:t.value.style.labels.value.suffix,r:t.value.style.labels.value.rounding}),{datapoint:i.value[n.value],seriesIndex:n.value})),1)):e.createCommentVNode("",!0),![void 0,null].includes(n.value)&&![null,void 0].includes(i.value[n.value].valueLabel)?(e.openBlock(),e.createElementBlock("span",q,"("+e.toDisplayString(i.value[n.value].valueLabel||0)+")",1)):e.createCommentVNode("",!0)],4),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),h.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${c.value.width} ${c.value.height}`,style:{overflow:"visible"}},[e.createVNode(O._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_positive_${s}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(t.value.style.bars.colors.positive,.05),l.intensity)},null,8,W),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(t.value.style.bars.colors.positive,l.intensity)},null,8,P)],8,U))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_negative_${s}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(t.value.style.bars.colors.negative,.05),l.intensity)},null,8,G),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(t.value.style.bars.colors.negative,l.intensity)},null,8,T)],8,j))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_datapoint_${s}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(l.color,.05),l.intensity)},null,8,Y),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(l.color,l.intensity)},null,8,R)],8,X))),256))]),!t.value.style.bars.shape||t.value.style.bars.shape==="square"?(e.openBlock(),e.createElementBlock("g",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{x:l.x,y:l.y,height:l.height,width:l.width,fill:t.value.style.bars.colors.gradient.show?l.gradient:l.color,stroke:l.stroke,"stroke-width":t.value.style.bars.strokeWidth,rx:`${t.value.style.bars.borderRadius*l.proportion/12}%`,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":t.value.style.animation.show})},null,10,K))),256))])):(e.openBlock(),e.createElementBlock("g",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createBlock(F._sfc_main,{plot:{x:l.x+l.width/2,y:l.y+l.height/2},color:t.value.style.bars.colors.gradient.show?l.gradient:l.color,shape:t.value.style.bars.shape,radius:l.height*.4,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":t.value.style.animation.show})},null,8,["plot","color","shape","radius","class"]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle",x:l.textAnchor,y:l.y-t.value.style.labels.value.fontSize/3+t.value.style.labels.value.offsetY,"font-size":t.value.style.labels.value.fontSize,"font-weight":t.value.style.labels.value.bold?"bold":"normal",fill:t.value.style.labels.value.color},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.labels.value.formatter,l.value,e.unref(a.dataLabel)({p:t.value.style.labels.value.prefix,v:l.value,s:t.value.style.labels.value.suffix,r:t.value.style.labels.value.rounding}),{datapoint:i.value[n.value],seriesIndex:n.value})),9,Z))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.valueLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:l.y+l.height+t.value.style.labels.valueLabel.fontSize,"font-size":t.value.style.labels.valueLabel.fontSize,"text-anchor":"middle",fill:t.value.style.labels.valueLabel.color},e.toDisplayString(l.valueLabel),9,ee)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.timeLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:c.value.height-t.value.style.labels.timeLabel.fontSize/2,"font-size":t.value.style.labels.timeLabel.fontSize,fill:t.value.style.labels.timeLabel.color,"text-anchor":"middle"},e.toDisplayString(l.timeLabel),9,te)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{height:c.value.height,width:l.unitWidth,fill:"transparent",x:l.trapX,y:0,onMouseover:d=>n.value=s,onMouseleave:r[0]||(r[0]=d=>n.value=null),stroke:n.value!==null&&n.value===s?t.value.style.selector.stroke:"","stroke-width":n.value!==null&&n.value===s?t.value.style.selector.strokeWidth:0,rx:t.value.style.selector.borderRadius,"stroke-dasharray":t.value.style.selector.strokeDasharray,onClick:()=>L(l,s)},null,40,le)]))),256))],8,I)):e.createCommentVNode("",!0),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:2,config:{type:"sparkHistogram",style:{backgroundColor:t.value.style.backgroundColor,sparkHistogram:{color:"#CCCCCC"}}}},null,8,["config"]))],36))}},ae=A._export_sfc(oe,[["__scopeId","data-v-eff7ec8f"]]);exports.default=ae;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-BhH89oF0.cjs"),I=require("./useNestedProp-m8IH8hWW.cjs"),T=require("./vue-ui-skeleton-Cf89QIhl.cjs"),S=require("./useResponsive-B3TrDDIG.cjs"),G=require("./PackageVersion-LdLhc8hQ.cjs"),j=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),R=["id"],H=["xmlns","viewBox"],U=["id"],X=["stop-color"],Z=["stop-color"],Y=["id"],J=["stop-color"],K=["stop-color"],Q=["id"],ee=["stop-color"],te=["stop-color"],le={key:0},ae=["d","fill"],oe=["d","fill"],ne=["d","stroke","stroke-width"],ue=["x1","x2","y1","y2","stroke","stroke-width"],re=["x","y","width","height","fill","rx"],se=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ie=["x1","x2","y1","y2","stroke","stroke-dasharray","stroke-width"],de=["cx","cy","r","fill","stroke","stroke-width"],ce=["x","y","font-size","font-weight","fill"],ve=["x","y","height","width","onMouseenter","onClick"],he={__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:_}){const i=f,{vue_ui_sparkline:M}=u.useConfig(),g=e.computed(()=>!!i.dataset&&i.dataset.length),v=e.ref(u.createUid()),x=e.ref(null),B=e.ref(null),t=e.computed({get:()=>L(),set:l=>l});function L(){const l=I.useNestedProp({userConfig:i.config,defaultConfig:M});return l.theme?{...I.useNestedProp({userConfig:u.themes.vue_ui_sparkline[l.theme]||i.config,defaultConfig:l})}:l}e.watch(()=>i.config,l=>{t.value=L(),V(),o.value.chartWidth=t.value.style.chartWidth},{deep:!0}),e.watch(()=>i.dataset,l=>{p.value=i.dataset.map(n=>({...n,value:[void 0].includes(n.value)?null:n.value}))},{deep:!0});const p=e.ref(z());function z(){return i.dataset.map(l=>t.value.style.animation.show?{...l,value:null}:{...l,value:[void 0].includes(l.value)?null:l.value})}const C=e.ref(null);e.onMounted(()=>{if(V(),t.value.style.animation.show&&i.dataset.length>1){let a=function(){n<i.dataset.length?(p.value.push(i.dataset[n]),setTimeout(()=>{requestAnimationFrame(a)},l)):p.value=i.dataset,n+=1};p.value=[];const l=t.value.style.animation.animationFrames/i.dataset.length;let n=0;a()}});function V(){if(u.objectIsEmpty(i.dataset)?u.error({componentName:"VueUiSparkline",type:"dataset"}):i.dataset.forEach((l,n)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["period","value"]}).forEach(a=>{u.error({componentName:"VueUiSparkline",type:"datasetSerieAttribute",property:a,index:n})})}),t.value.responsive){const l=S.throttle(()=>{const{width:n,height:a}=S.useResponsive({chart:x.value,title:t.value.style.title.show&&i.showInfo?B.value:null});o.value.width=n,o.value.height=a,o.value.chartWidth=t.value.style.chartWidth/500*n,o.value.padding=.06*n});C.value=new ResizeObserver(l),C.value.observe(x.value.parentNode)}}const o=e.ref({height:80,width:500,chartWidth:t.value.style.chartWidth,padding:30}),P=e.ref(6),r=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})),w=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=w.value>=0?0:w.value;return Math.abs(l)}),W=e.computed(()=>D.value+m.value+P.value),b=e.computed(()=>r.value.bottom-r.value.height*N(m.value));function N(l){return l/W.value}const h=e.computed(()=>i.dataset.length-1),s=e.computed(()=>p.value.map((l,n)=>{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:N(a+m.value),x:r.value.start+n*(r.value.width/(h.value+1)>o.padding?o.padding:r.value.width/(h.value+1)),y:r.value.bottom-r.value.height*N(a+m.value),id:`plot_${v.value}_${n}`,color:k.value?t.value.style.bar.color:t.value.style.area.useGradient?u.shiftHue(t.value.style.line.color,.05*(1-n/h.value)):t.value.style.line.color,width:r.value.width/(h.value+1)>o.padding?o.padding:r.value.width/(h.value+1)}})),A=e.computed(()=>{const l={x:s.value[0].x,y:o.value.height-6},n={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,n.x,n.y].toString()}),c=e.ref(void 0);function O(l,n){c.value=l,_("hoverIndex",{index:n})}function F(){c.value=void 0,_("hoverIndex",{index:void 0})}const y=e.computed(()=>{if(g.value){const l=s.value.map(a=>a.absoluteValue),n=l.reduce((a,d)=>a+d,0);return{latest:s.value[s.value.length-1].absoluteValue,sum:n,average:n/s.value.length,median:u.calcMedian(l),trend:u.calcLinearProgression(s.value.map(({x:a,y:d,absoluteValue:$})=>({x:a,y:d,value:$}))).trend}}else return{latest:null,sum:null,average:null,median:null,trend:null}}),E=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,n){_("selectDatapoint",{datapoint:l,index:n})}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"sparklineChart",ref:x,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:B,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(G._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,X),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,Z)],8,U),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,J),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.shiftHue)(t.value.style.bar.color,.05)},null,8,K)],8,Y),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,ee),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.bar.color},null,8,te)],8,Q)]),t.value.style.area.show&&!k.value&&s.value[0]?(e.openBlock(),e.createElementBlock("g",le,[t.value.style.line.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${s.value[0].x},${r.value.bottom} ${e.unref(u.createSmoothPath)(s.value)} L ${s.value.at(-1).x},${r.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,ae)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${A.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,oe))])):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,ue)):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("rect",{key:1,x:a.x-a.width/2,y:a.absoluteValue>0?a.y:b.value,width:a.width,height:Math.abs(a.y-b.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,re)):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:r.value.top-6,y2:r.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,se)):e.createCommentVNode("",!0)]))),256)),w.value<0?(e.openBlock(),e.createElementBlock("line",{key:2,x1:r.value.start,x2:r.value.start+r.value.width-16,y1:b.value,y2:b.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,ie)):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,de)):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:r.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,E.value,e.unref(u.dataLabel)({p:t.value.style.dataLabel.prefix,v:E.value,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.roundingValue}))),9,ce)):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-(r.value.width/(h.value+1)>o.value.padding?o.value.padding:r.value.width/(h.value+1))/2,y:r.value.top-6,height:r.value.height+6,width:r.value.width/(h.value+1)>o.value.padding?o.value.padding:r.value.width/(h.value+1),fill:"transparent",onMouseenter:$=>O(a,d),onMouseleave:F,onClick:()=>q(a,d)},null,40,ve))),256)),e.renderSlot(l.$slots,"svg",{svg:o.value},void 0,!0)],12,H)):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T.default,{key:2,config:{type:"sparkline",style:{backgroundColor:t.value.style.backgroundColor,sparkline:{color:"#CCCCCC"}}}},null,8,["config"]))],12,R))}},ye=j._export_sfc(he,[["__scopeId","data-v-9481e22a"]]);exports.default=ye;