vue-data-ui 3.6.0 → 3.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +2 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
  105. package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
  106. package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
  113. package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
  114. package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
  115. package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
  116. package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
  119. package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
  123. package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
  124. package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
  125. package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
  129. package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
  132. package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
  133. package/dist/vue-ui-rings-BowsO9I8.js +884 -0
  134. package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
  138. package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
  139. package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
  141. package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
  143. package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
  144. package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
  149. package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
  151. package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
  152. package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
  155. package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
  156. package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
  158. package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -0,0 +1,470 @@
1
+ import { defineAsyncComponent as Q, useSlots as Ie, onMounted as Z, ref as v, toRefs as Te, watch as ee, computed as F, createElementBlock as s, openBlock as r, normalizeStyle as g, createCommentVNode as h, createVNode as te, createBlock as Pe, createElementVNode as d, toDisplayString as S, unref as c, Fragment as k, renderList as D, normalizeClass as z, withCtx as oe, renderSlot as U, normalizeProps as le, guardReactiveProps as ae } from "vue";
2
+ import { c as re, t as ze, i as Oe, p as i, l as B, j as Le, o as Ne, g as se, k as je, d as R, X as Ve, s as ne, h as ue, a as ie, x as Me } from "./lib-C5BH09_g.js";
3
+ import { u as Ue, a as G } from "./useNestedProp-CWo6bftQ.js";
4
+ import { u as Re, B as Ge } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as We } from "./useThemeCheck-DGJ31Vi5.js";
6
+ import { u as Ye } from "./useChartAccessibility-9icAAmYg.js";
7
+ import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerColor: "#FFFFFF" } }, legend: { name: { color: "#CCCCCC" }, value: { color: "#CCCCCC" }, percentage: { color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, de = { style: { backgroundColor: "#FFF8E1", bar: { gradient: { underlayerColor: "#FFF8E1" } }, legend: { name: { color: "#424242" }, value: { color: "#424242" }, percentage: { color: "#424242" } }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, ve = { style: { backgroundColor: "#1E1E1E", bar: { gradient: { underlayerColor: "#FFF8E1" } }, legend: { name: { color: "#BDBDBD" }, value: { color: "#BDBDBD" }, percentage: { color: "#BDBDBD" } }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, pe = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerColor: "#1A1A1A" } }, legend: { name: { color: "#99AA99" }, value: { color: "#AACCAA" }, percentage: { color: "#99CC99" } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } }, ge = { style: { backgroundColor: "#fbfafa", bar: { gradient: { underlayerColor: "#fbfafa" } }, legend: { name: { color: "#8A9892" }, value: { color: "#A0AC94" }, percentage: { color: "#8A9892" } }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } }, fe = { style: { backgroundColor: "#f6f6fb", bar: { gradient: { underlayerColor: "#f6f6fb" } }, legend: { name: { color: "#50606C" }, value: { color: "#8A9892" }, percentage: { color: "#61747E" } }, title: { color: "#50606C", subtitle: { color: "#718890" } } } }, he = {
9
+ default: {},
10
+ dark: ce,
11
+ celebration: de,
12
+ celebrationNight: ve,
13
+ hack: pe,
14
+ zen: ge,
15
+ concrete: fe
16
+ }, xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17
+ __proto__: null,
18
+ celebration: de,
19
+ celebrationNight: ve,
20
+ concrete: fe,
21
+ dark: ce,
22
+ default: he,
23
+ hack: pe,
24
+ zen: ge
25
+ }, Symbol.toStringTag, { value: "Module" })), He = ["xmlns", "viewBox"], Xe = ["id"], Je = ["stop-color"], Ke = ["stop-color"], Qe = ["stop-color"], Ze = {
26
+ id: "stackPill",
27
+ clipPathUnits: "objectBoundingBox"
28
+ }, et = ["fill"], tt = {
29
+ key: 0,
30
+ "clip-path": "url(#stackPill)"
31
+ }, ot = ["x", "width", "height", "fill"], lt = ["x", "width", "height", "fill", "stroke"], at = ["x", "width", "height", "onClick", "onMouseenter", "onMouseleave"], rt = ["width", "height", "rx"], st = ["onClick"], nt = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, ut = ["height", "width"], it = ["id"], ct = ["stop-color"], dt = ["stop-color"], vt = ["fill"], pt = {
32
+ key: 2,
33
+ ref: "source",
34
+ dir: "auto"
35
+ }, gt = {
36
+ __name: "vue-ui-sparkstackbar",
37
+ props: {
38
+ config: {
39
+ type: Object,
40
+ default() {
41
+ return {};
42
+ }
43
+ },
44
+ dataset: {
45
+ type: Array,
46
+ default() {
47
+ return [];
48
+ }
49
+ }
50
+ },
51
+ emits: ["selectDatapoint"],
52
+ setup(ye, { expose: me, emit: be }) {
53
+ const Ce = Q(() => import("./PackageVersion-C82JCJOX.js")), ke = Q(() => import("./Tooltip-WD0Ros6G.js")), { vue_ui_sparkstackbar: _e } = Ue(), { isThemeValid: xe, warnInvalidTheme: we } = We(), m = ye, Ae = Ie();
54
+ Z(() => {
55
+ Ae["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
56
+ });
57
+ const W = v(null), E = v(re()), O = v(!1), L = v(""), e = v(N()), { loading: _, FINAL_DATASET: b } = Re({
58
+ ...Te(m),
59
+ FINAL_CONFIG: e,
60
+ prepareConfig: N,
61
+ skeletonDataset: [
62
+ { name: "_", value: 8, color: "#808080" },
63
+ { name: "_", value: 5, color: "#ADADAD" },
64
+ { name: "_", value: 3, color: "#DBDBDB" }
65
+ ],
66
+ skeletonConfig: ze({
67
+ defaultConfig: e.value,
68
+ userConfig: {
69
+ style: {
70
+ backgroundColor: "#99999930",
71
+ animation: { show: !1 },
72
+ bar: { gradient: { inderlayerColor: "#6A6A6A" } },
73
+ title: {
74
+ backgroundColor: "transparent"
75
+ }
76
+ }
77
+ }
78
+ })
79
+ }), { svgRef: Fe } = Ye({ config: e.value.style.title });
80
+ function N() {
81
+ const t = G({
82
+ userConfig: m.config,
83
+ defaultConfig: _e
84
+ }), l = t.theme;
85
+ if (!l) return t;
86
+ if (!xe.value(t))
87
+ return we(t), t;
88
+ const o = G({
89
+ userConfig: he[l] || m.config,
90
+ defaultConfig: t
91
+ }), a = G({
92
+ userConfig: m.config,
93
+ defaultConfig: o
94
+ });
95
+ return {
96
+ ...a,
97
+ customPalette: a.customPalette.length ? a.customPalette : Oe[l] || i
98
+ };
99
+ }
100
+ ee(() => m.config, (t) => {
101
+ e.value = N(), H();
102
+ }, { deep: !0 }), ee(() => b.value, (t) => {
103
+ C.value = b.value.map((l, o) => ({
104
+ ...l,
105
+ color: l.color ? B(l.color) : $.value[o] || i[o] || i[o % i.length]
106
+ })), Y();
107
+ }, { deep: !0 });
108
+ const $ = F(() => Le(e.value.customPalette)), C = v(b.value.map((t, l) => ({
109
+ ...t,
110
+ value: e.value.style.animation.show ? 0 : t.value || 0,
111
+ color: t.color ? B(t.color) : $.value[l] || i[l] || i[l % i.length]
112
+ }))), x = v(!0);
113
+ function Y() {
114
+ if (!e.value.style.animation.show) return;
115
+ const t = e.value.style.animation.animationFrames, l = b.value.map((n) => n.value || 0), o = l.map((n) => n / t), a = l.reduce((n, u) => n + u, 0);
116
+ let y = 0;
117
+ x.value = !0, C.value = b.value.map((n, u) => ({
118
+ ...n,
119
+ value: 0,
120
+ color: n.color ? B(n.color) : $.value[u] || i[u] || i[u % i.length]
121
+ }));
122
+ function P() {
123
+ y += a / t, y < a ? (C.value = C.value.map((n, u) => ({
124
+ ...n,
125
+ value: Math.min(n.value + o[u], l[u]),
126
+ color: n.color ? B(n.color) : $.value[u] || i[u] || i[u % i.length]
127
+ })), requestAnimationFrame(P)) : (x.value = !1, C.value = b.value.map((n, u) => ({
128
+ ...n,
129
+ value: l[u],
130
+ color: n.color ? B(n.color) : $.value[u] || i[u] || i[u % i.length],
131
+ id: re()
132
+ })));
133
+ }
134
+ P();
135
+ }
136
+ Z(() => {
137
+ H();
138
+ });
139
+ const q = F(() => e.value.debug);
140
+ function H() {
141
+ Ne(m.dataset) ? se({
142
+ componentName: "VueUiSparkStackbar",
143
+ type: "dataset",
144
+ debug: q.value
145
+ }) : m.dataset.forEach((t, l) => {
146
+ je({
147
+ datasetObject: t,
148
+ requiredAttributes: ["name", "value"]
149
+ }).forEach((o) => {
150
+ se({
151
+ componentName: "VueUiSparkStackbar",
152
+ type: "datasetSerieAttribute",
153
+ property: o,
154
+ index: l,
155
+ debug: q.value
156
+ });
157
+ });
158
+ }), Y();
159
+ }
160
+ const f = v({
161
+ width: 500,
162
+ height: 16
163
+ }), p = v([]), X = F(() => b.value.map((t) => t.value || 0).filter((t, l) => !p.value.includes(l)).reduce((t, l) => t + l, 0)), w = F(() => C.value.map((t, l) => {
164
+ const o = t.value || 0, a = o / X.value, y = isNaN(a) ? 0 : a, P = y * f.value.width;
165
+ return {
166
+ ...t,
167
+ value: o,
168
+ proportion: y,
169
+ width: P,
170
+ seriesIndex: l,
171
+ proportionLabel: R({
172
+ v: y * 100,
173
+ s: "%",
174
+ r: e.value.style.legend.percentage.rounding
175
+ })
176
+ };
177
+ })), j = F(() => w.value.filter((t, l) => !p.value.includes(l)));
178
+ function V(t) {
179
+ p.value.includes(t) ? p.value = p.value.filter((l) => l !== t) : p.value.length < C.value.length - 1 && p.value.push(t);
180
+ }
181
+ function J(t) {
182
+ if (!w.value.length)
183
+ return e.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null;
184
+ const l = w.value.find((o) => o.name === t);
185
+ return l || (e.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${t}"`), null);
186
+ }
187
+ function $e(t) {
188
+ const l = J(t);
189
+ l !== null && p.value.includes(l.id) && V(l.seriesIndex);
190
+ }
191
+ function Se(t) {
192
+ const l = J(t);
193
+ l !== null && (p.value.includes(l.id) || V(l.seriesIndex));
194
+ }
195
+ const I = F(() => {
196
+ let t = 0;
197
+ const l = [];
198
+ for (let o = 0; o < j.value.length; o += 1)
199
+ l.push({
200
+ ...j.value[o],
201
+ start: t
202
+ }), t += j.value[o].width;
203
+ return l;
204
+ }), De = be;
205
+ function K(t, l, o = !1) {
206
+ De("selectDatapoint", { datapoint: t, index: l }), e.value.events.datapointClick && !o && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex });
207
+ }
208
+ const M = v(null), T = v(!1), A = v(null);
209
+ function Be({ datapoint: t, seriesIndex: l }) {
210
+ O.value = !1, A.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex });
211
+ }
212
+ function Ee({ datapoint: t, seriesIndex: l }) {
213
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.seriesIndex }), !e.value.style.tooltip.show)
214
+ return;
215
+ M.value = { datapoint: t, seriesIndex: l, config: e.value, series: w.value }, O.value = !0, A.value = l;
216
+ const o = e.value.style.tooltip.customFormat;
217
+ if (Me(o))
218
+ try {
219
+ const a = o({
220
+ seriesIndex: t.seriesIndex,
221
+ datapoint: t,
222
+ series: w.value,
223
+ config: e.value
224
+ });
225
+ typeof a == "string" && (L.value = a, T.value = !0);
226
+ } catch {
227
+ console.warn("Custom format cannot be applied."), T.value = !1;
228
+ }
229
+ if (!T.value) {
230
+ let a = "";
231
+ a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, a += `<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="${t.color}"/></svg>`, a += `<b>${t.proportionLabel}</b>`, a += `<span>(${ie(
232
+ e.value.style.legend.value.formatter,
233
+ t.value,
234
+ R({
235
+ p: e.value.style.legend.value.prefix,
236
+ v: t.value,
237
+ s: e.value.style.legend.value.suffix,
238
+ r: e.value.style.legend.value.rounding
239
+ }),
240
+ {
241
+ datapoint: t,
242
+ seriesIndex: l
243
+ }
244
+ )})</span>`, L.value = `<div>${a}</div>`;
245
+ }
246
+ }
247
+ return me({
248
+ hideSeries: Se,
249
+ showSeries: $e
250
+ }), (t, l) => (r(), s("div", {
251
+ class: "vue-data-ui-component vue-ui-spark-stackbar",
252
+ ref_key: "sparkstackbarChart",
253
+ ref: W,
254
+ style: g(`width:100%; background:${e.value.style.backgroundColor}`)
255
+ }, [
256
+ e.value.style.title.text ? (r(), s("div", {
257
+ key: 0,
258
+ style: g(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${e.value.style.title.margin};padding: 0 6px;text-align:${e.value.style.title.textAlign}`)
259
+ }, [
260
+ d("div", {
261
+ class: "atom-title",
262
+ style: g(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
263
+ }, S(e.value.style.title.text), 5),
264
+ e.value.style.title.subtitle.text ? (r(), s("div", {
265
+ key: 0,
266
+ class: "atom-subtitle",
267
+ style: g(`font-size:${e.value.style.title.subtitle.fontSize}px;color:${e.value.style.title.subtitle.color};font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
268
+ }, S(e.value.style.title.subtitle.text), 5)) : h("", !0)
269
+ ], 4)) : h("", !0),
270
+ (r(), s("svg", {
271
+ ref_key: "svgRef",
272
+ ref: Fe,
273
+ xmlns: c(Ve),
274
+ width: "100%",
275
+ viewBox: `0 0 ${f.value.width} ${f.value.height}`
276
+ }, [
277
+ te(c(Ce)),
278
+ d("defs", null, [
279
+ (r(!0), s(k, null, D(I.value, (o, a) => (r(), s("linearGradient", {
280
+ key: `stack_gradient_${a}`,
281
+ gradientTransform: "rotate(90)",
282
+ id: `stack_gradient_${a}_${E.value}`
283
+ }, [
284
+ d("stop", {
285
+ offset: "0%",
286
+ "stop-color": o.color
287
+ }, null, 8, Je),
288
+ d("stop", {
289
+ offset: "50%",
290
+ "stop-color": c(ne)(c(ue)(o.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
291
+ }, null, 8, Ke),
292
+ d("stop", {
293
+ offset: "100%",
294
+ "stop-color": o.color
295
+ }, null, 8, Qe)
296
+ ], 8, Xe))), 128)),
297
+ d("clipPath", Ze, [
298
+ d("rect", {
299
+ x: "0.005",
300
+ y: "-2",
301
+ width: "0.99",
302
+ height: "5",
303
+ rx: "3",
304
+ ry: "3",
305
+ fill: e.value.style.backgroundColor
306
+ }, null, 8, et)
307
+ ])
308
+ ]),
309
+ X.value > 0 ? (r(), s("g", tt, [
310
+ (r(!0), s(k, null, D(I.value, (o, a) => (r(), s("rect", {
311
+ key: `stack_underlayer_${a}`,
312
+ x: o.start,
313
+ y: 0,
314
+ width: o.width,
315
+ height: f.value.height,
316
+ fill: e.value.style.bar.gradient.underlayerColor,
317
+ class: z({ animated: !x.value && !c(_) }),
318
+ style: g({
319
+ opacity: A.value !== null && e.value.style.tooltip.show ? A.value === a ? 1 : 0.5 : 1
320
+ })
321
+ }, null, 14, ot))), 128)),
322
+ (r(!0), s(k, null, D(I.value, (o, a) => (r(), s("rect", {
323
+ key: `stack_${a}`,
324
+ x: o.start,
325
+ y: 0,
326
+ width: o.width,
327
+ height: f.value.height,
328
+ fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${a}_${E.value})` : o.color,
329
+ stroke: e.value.style.backgroundColor,
330
+ "stroke-linecap": "round",
331
+ class: z({ animated: !x.value && !c(_) }),
332
+ style: g({
333
+ opacity: A.value !== null && e.value.style.tooltip.show ? A.value === a ? 1 : 0.5 : 1
334
+ })
335
+ }, null, 14, lt))), 128)),
336
+ (r(!0), s(k, null, D(I.value, (o, a) => (r(), s("rect", {
337
+ key: `stack_trap_${a}`,
338
+ x: o.start,
339
+ y: 0,
340
+ width: o.width,
341
+ height: f.value.height,
342
+ fill: "transparent",
343
+ stroke: "none",
344
+ class: z({ animated: !x.value && !c(_) }),
345
+ onClick: () => K(o, a),
346
+ onMouseenter: () => Ee({ datapoint: o, seriesIndex: a }),
347
+ onMouseleave: (y) => Be({ datapoint: o, seriesIndex: a })
348
+ }, null, 42, at))), 128))
349
+ ])) : (r(), s("rect", {
350
+ key: 1,
351
+ x: 2,
352
+ y: 1,
353
+ width: f.value.width - 4,
354
+ height: f.value.height - 2,
355
+ stroke: "#CCCCCC",
356
+ "stroke-width": "2",
357
+ fill: "transparent",
358
+ rx: (f.value.height - 4) / 2
359
+ }, null, 8, rt))
360
+ ], 8, He)),
361
+ e.value.style.legend.show ? (r(), s("div", {
362
+ key: 1,
363
+ style: g(`background:transparent;margin:0 auto;margin:${e.value.style.legend.margin};justify-content:${e.value.style.legend.textAlign === "left" ? "flex-start" : e.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
364
+ class: "vue-ui-sparkstackbar-legend"
365
+ }, [
366
+ (r(!0), s(k, null, D(w.value, (o, a) => (r(), s("div", {
367
+ style: g(`font-size:${e.value.style.legend.fontSize}px;`),
368
+ class: z({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": p.value.includes(a) }),
369
+ onClick: (y) => {
370
+ V(a), K(o, a, !0);
371
+ }
372
+ }, [
373
+ d("div", nt, [
374
+ (r(), s("svg", {
375
+ height: `${e.value.style.legend.fontSize}px`,
376
+ width: `${e.value.style.legend.fontSize}px`,
377
+ viewBox: "0 0 10 10"
378
+ }, [
379
+ d("defs", null, [
380
+ d("radialGradient", {
381
+ id: `legend_grad_${a}-${E.value}`
382
+ }, [
383
+ d("stop", {
384
+ offset: "0%",
385
+ "stop-color": c(_) ? "#FFFFFF" : c(ne)(c(ue)(o.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
386
+ }, null, 8, ct),
387
+ d("stop", {
388
+ offset: "100%",
389
+ "stop-color": o.color
390
+ }, null, 8, dt)
391
+ ], 8, it)
392
+ ]),
393
+ d("circle", {
394
+ cx: 5,
395
+ cy: 5,
396
+ r: 5,
397
+ fill: e.value.style.bar.gradient.show ? `url(#legend_grad_${a}-${E.value})` : o.color
398
+ }, null, 8, vt)
399
+ ], 8, ut)),
400
+ c(_) ? h("", !0) : (r(), s(k, { key: 0 }, [
401
+ d("span", {
402
+ style: g(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
403
+ }, S(o.name), 5),
404
+ x.value ? h("", !0) : (r(), s(k, { key: 0 }, [
405
+ e.value.style.legend.percentage.show ? (r(), s("span", {
406
+ key: 0,
407
+ style: g(`font-weight:${e.value.style.legend.percentage.bold ? "bold" : "normal"};color:${e.value.style.legend.percentage.color}`)
408
+ }, S(p.value.includes(a) ? " - " : o.proportionLabel), 5)) : h("", !0),
409
+ e.value.style.legend.value.show ? (r(), s("span", {
410
+ key: 1,
411
+ style: g(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
412
+ }, " (" + S(c(ie)(
413
+ e.value.style.legend.value.formatter,
414
+ o.value,
415
+ c(R)({
416
+ p: e.value.style.legend.value.prefix,
417
+ v: o.value,
418
+ s: e.value.style.legend.value.suffix,
419
+ r: e.value.style.legend.value.rounding
420
+ }),
421
+ { datapoint: o, seriesIndex: a }
422
+ )) + ") ", 5)) : h("", !0)
423
+ ], 64))
424
+ ], 64))
425
+ ])
426
+ ], 14, st))), 256))
427
+ ], 4)) : h("", !0),
428
+ te(c(ke), {
429
+ show: O.value && e.value.style.tooltip.show,
430
+ parent: W.value,
431
+ backgroundColor: e.value.style.tooltip.backgroundColor,
432
+ color: e.value.style.tooltip.color,
433
+ fontSize: e.value.style.tooltip.fontSize,
434
+ borderRadius: e.value.style.tooltip.borderRadius,
435
+ borderColor: e.value.style.tooltip.borderColor,
436
+ borderWidth: e.value.style.tooltip.borderWidth,
437
+ backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
438
+ position: e.value.style.tooltip.position,
439
+ content: L.value,
440
+ isCustom: T.value,
441
+ offsetY: -124 + e.value.style.tooltip.offsetY,
442
+ blockShiftY: !0,
443
+ smooth: e.value.style.tooltip.smooth,
444
+ backdropFilter: e.value.style.tooltip.backdropFilter,
445
+ smoothForce: e.value.style.tooltip.smoothForce,
446
+ smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
447
+ }, {
448
+ "tooltip-before": oe(() => [
449
+ U(t.$slots, "tooltip-before", le(ae({ ...M.value })), void 0, !0)
450
+ ]),
451
+ "tooltip-after": oe(() => [
452
+ U(t.$slots, "tooltip-after", le(ae({ ...M.value })), void 0, !0)
453
+ ]),
454
+ _: 3
455
+ }, 8, ["show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
456
+ t.$slots.source ? (r(), s("div", pt, [
457
+ U(t.$slots, "source", {}, void 0, !0)
458
+ ], 512)) : h("", !0),
459
+ c(_) ? (r(), Pe(Ge, { key: 3 })) : h("", !0)
460
+ ], 4));
461
+ }
462
+ }, ft = /* @__PURE__ */ qe(gt, [["__scopeId", "data-v-60ee2b1d"]]), wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
463
+ __proto__: null,
464
+ default: ft
465
+ }, Symbol.toStringTag, { value: "Module" }));
466
+ export {
467
+ xt as a,
468
+ wt as b,
469
+ ft as v
470
+ };