vue-data-ui 2.12.6 → 2.12.7-beta.0

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 (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
  2. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  8. package/dist/PackageVersion-CLY-udAA.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
  15. package/dist/SparkTooltip-CwThutH2.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
  17. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-CRCbl1WG.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
  41. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  45. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  46. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  57. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
  66. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  76. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  85. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  86. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  89. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  90. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,22 +1,19 @@
1
- import { useSlots as ie, onMounted as Y, computed as m, ref as d, watch as G, createElementBlock as r, openBlock as s, normalizeStyle as v, createCommentVNode as y, createBlock as ce, createVNode as q, createElementVNode as p, toDisplayString as w, unref as C, Fragment as x, renderList as $, normalizeClass as F, withCtx as H, renderSlot as U, normalizeProps as X, guardReactiveProps as J } from "vue";
2
- import { u as de, c as K, t as ve, p as i, a as pe, d as N, b as ge, o as fe, e as Q, g as he, f as V, X as ye, s as me, w as ke, i as Z, x as be } from "./index-BFzQMJda.js";
3
- import { u as ee } from "./useNestedProp-v7KPpwuP.js";
4
- import _e from "./vue-ui-skeleton-B_YI7Yuc.js";
5
- import { _ as we } from "./PackageVersion-BjrblLPQ.js";
6
- import { _ as Ce } from "./Tooltip-CWmRmhJr.js";
7
- import { u as xe } from "./useChartAccessibility-BWojgys7.js";
8
- import { _ as $e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-color"], Fe = ["stop-color"], Ne = {
1
+ import { defineAsyncComponent as V, useSlots as pe, onMounted as G, computed as b, ref as d, watch as q, createElementBlock as r, openBlock as s, normalizeStyle as v, createCommentVNode as y, createBlock as ge, createVNode as H, createElementVNode as p, toDisplayString as C, unref as m, Fragment as x, renderList as $, normalizeClass as D, withCtx as X, renderSlot as T, normalizeProps as J, guardReactiveProps as K } from "vue";
2
+ import { u as fe, c as Q, t as he, p as i, a as ye, d as F, b as me, o as be, e as Z, g as ke, f as U, X as _e, s as we, w as Ce, i as ee, x as xe } from "./index-BiHmNd1-.js";
3
+ import { u as te } from "./useNestedProp-tRqS0ZAM.js";
4
+ import { u as $e } from "./useChartAccessibility-9icAAmYg.js";
5
+ import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-color"], Fe = ["stop-color"], Ne = {
10
7
  id: "stackPill",
11
8
  clipPathUnits: "objectBoundingBox"
12
- }, Ae = ["fill"], Le = {
9
+ }, Le = ["fill"], Be = {
13
10
  key: 0,
14
11
  "clip-path": "url(#stackPill)"
15
- }, Be = ["x", "width", "height", "fill"], Oe = ["x", "width", "height", "fill", "stroke"], Ue = ["onClick", "x", "width", "height", "onMouseenter"], Ve = ["width", "height", "rx"], je = ["onClick"], Ee = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, Me = ["height", "width"], Re = ["fill"], Te = {
12
+ }, Oe = ["x", "width", "height", "fill"], Ve = ["x", "width", "height", "fill", "stroke"], Te = ["onClick", "x", "width", "height", "onMouseenter"], Ue = ["width", "height", "rx"], je = ["onClick"], Ee = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, Me = ["height", "width"], Re = ["fill"], Ie = {
16
13
  key: 4,
17
14
  ref: "source",
18
15
  dir: "auto"
19
- }, Ie = {
16
+ }, We = {
20
17
  __name: "vue-ui-sparkstackbar",
21
18
  props: {
22
19
  config: {
@@ -33,70 +30,70 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
33
30
  }
34
31
  },
35
32
  emits: ["selectDatapoint"],
36
- setup(te, { emit: le }) {
37
- const { vue_ui_sparkstackbar: oe } = de(), u = te, ae = ie();
38
- Y(() => {
39
- ae["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
33
+ setup(le, { emit: oe }) {
34
+ const ae = V(() => import("./PackageVersion-CLY-udAA.js")), se = V(() => import("./vue-ui-skeleton-CbYQYRvD.js")), re = V(() => import("./Tooltip-C9rxJ-Ru.js")), { vue_ui_sparkstackbar: ne } = fe(), u = le, ue = pe();
35
+ G(() => {
36
+ ue["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
40
37
  });
41
- const j = m(() => !!u.dataset && u.dataset.length), E = d(null), M = d(K()), A = d(!1), L = d(""), e = m({
38
+ const j = b(() => !!u.dataset && u.dataset.length), E = d(null), M = d(Q()), N = d(!1), L = d(""), e = b({
42
39
  get: () => R(),
43
40
  set: (t) => t
44
- }), { svgRef: se } = xe({ config: e.value.style.title });
41
+ }), { svgRef: ie } = $e({ config: e.value.style.title });
45
42
  function R() {
46
- const t = ee({
43
+ const t = te({
47
44
  userConfig: u.config,
48
- defaultConfig: oe
45
+ defaultConfig: ne
49
46
  });
50
47
  return t.theme ? {
51
- ...ee({
52
- userConfig: pe.vue_ui_sparkstackbar[t.theme] || u.config,
48
+ ...te({
49
+ userConfig: ye.vue_ui_sparkstackbar[t.theme] || u.config,
53
50
  defaultConfig: t
54
51
  }),
55
- customPalette: ve[t.theme] || i
52
+ customPalette: he[t.theme] || i
56
53
  } : t;
57
54
  }
58
- G(() => u.config, (t) => {
59
- e.value = R(), T();
60
- }, { deep: !0 }), G(() => u.dataset, (t) => {
55
+ q(() => u.config, (t) => {
56
+ e.value = R(), I();
57
+ }, { deep: !0 }), q(() => u.dataset, (t) => {
61
58
  k.value = u.dataset.map((a, l) => ({
62
59
  ...a,
63
- color: a.color ? N(a.color) : S.value[l] || i[l] || i[l % i.length]
60
+ color: a.color ? F(a.color) : S.value[l] || i[l] || i[l % i.length]
64
61
  }));
65
62
  }, { deep: !0 });
66
- const S = m(() => ge(e.value.customPalette)), k = d(u.dataset.map((t, a) => ({
63
+ const S = b(() => me(e.value.customPalette)), k = d(u.dataset.map((t, a) => ({
67
64
  ...t,
68
65
  value: e.value.style.animation.show ? 0 : t.value || 0,
69
- color: t.color ? N(t.color) : S.value[a] || i[a] || i[a % i.length]
70
- }))), _ = d(!0);
71
- Y(() => {
72
- if (T(), e.value.style.animation.show) {
66
+ color: t.color ? F(t.color) : S.value[a] || i[a] || i[a % i.length]
67
+ }))), w = d(!0);
68
+ G(() => {
69
+ if (I(), e.value.style.animation.show) {
73
70
  let h = function() {
74
71
  o += l / t, o < l ? (k.value = k.value.map((n, c) => ({
75
72
  ...n,
76
73
  value: n.value += a[c],
77
- color: n.color ? N(n.color) : S.value[c] || i[c] || i[c % i.length]
78
- })), requestAnimationFrame(h)) : (_.value = !1, k.value = u.dataset.map((n, c) => ({
74
+ color: n.color ? F(n.color) : S.value[c] || i[c] || i[c % i.length]
75
+ })), requestAnimationFrame(h)) : (w.value = !1, k.value = u.dataset.map((n, c) => ({
79
76
  ...n,
80
77
  value: n.value || 0,
81
- color: n.color ? N(n.color) : S.value[c] || i[c] || i[c % i.length],
82
- id: K()
78
+ color: n.color ? F(n.color) : S.value[c] || i[c] || i[c % i.length],
79
+ id: Q()
83
80
  })));
84
81
  };
85
82
  const t = e.value.style.animation.animationFrames, a = u.dataset.map((n, c) => n.value / t), l = u.dataset.map((n) => n.value || 0).reduce((n, c) => n + c, 0);
86
83
  let o = 0;
87
- _.value = !0, h();
84
+ w.value = !0, h();
88
85
  }
89
86
  });
90
- function T() {
91
- fe(u.dataset) ? Q({
87
+ function I() {
88
+ be(u.dataset) ? Z({
92
89
  componentName: "VueUiSparkStackbar",
93
90
  type: "dataset"
94
91
  }) : u.dataset.forEach((t, a) => {
95
- he({
92
+ ke({
96
93
  datasetObject: t,
97
94
  requiredAttributes: ["name", "value"]
98
95
  }).forEach((l) => {
99
- Q({
96
+ Z({
100
97
  componentName: "VueUiSparkStackbar",
101
98
  type: "datasetSerieAttribute",
102
99
  property: l,
@@ -108,24 +105,24 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
108
105
  const g = d({
109
106
  width: 500,
110
107
  height: 16
111
- }), f = d([]), I = m(() => u.dataset.map((t) => t.value || 0).filter((t, a) => !f.value.includes(a)).reduce((t, a) => t + a, 0)), z = m(() => k.value.map((t, a) => {
112
- const l = t.value || 0, o = l / I.value, h = isNaN(o) ? 0 : o, n = h * g.value.width;
108
+ }), f = d([]), W = b(() => u.dataset.map((t) => t.value || 0).filter((t, a) => !f.value.includes(a)).reduce((t, a) => t + a, 0)), P = b(() => k.value.map((t, a) => {
109
+ const l = t.value || 0, o = l / W.value, h = isNaN(o) ? 0 : o, n = h * g.value.width;
113
110
  return {
114
111
  ...t,
115
112
  value: l,
116
113
  proportion: h,
117
114
  width: n,
118
- proportionLabel: V({
115
+ proportionLabel: U({
119
116
  v: h * 100,
120
117
  s: "%",
121
118
  r: e.value.style.legend.percentage.rounding
122
119
  })
123
120
  };
124
- })), B = m(() => z.value.filter((t, a) => !f.value.includes(a)));
125
- function re(t) {
121
+ })), B = b(() => P.value.filter((t, a) => !f.value.includes(a)));
122
+ function ce(t) {
126
123
  f.value.includes(t) ? f.value = f.value.filter((a) => a !== t) : f.value.length < k.value.length - 1 && f.value.push(t);
127
124
  }
128
- const P = m(() => {
125
+ const z = b(() => {
129
126
  let t = 0;
130
127
  const a = [];
131
128
  for (let l = 0; l < B.value.length; l += 1)
@@ -134,34 +131,34 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
134
131
  start: t
135
132
  }), t += B.value[l].width;
136
133
  return a;
137
- }), ne = le;
138
- function W(t, a) {
139
- ne("selectDatapoint", { datapoint: t, index: a });
134
+ }), de = oe;
135
+ function Y(t, a) {
136
+ de("selectDatapoint", { datapoint: t, index: a });
140
137
  }
141
- const O = d(null), D = d(!1), b = d(null);
142
- function ue({ datapoint: t, seriesIndex: a }) {
138
+ const O = d(null), A = d(!1), _ = d(null);
139
+ function ve({ datapoint: t, seriesIndex: a }) {
143
140
  if (!e.value.style.tooltip.show)
144
141
  return;
145
- O.value = { datapoint: t, seriesIndex: a, config: e.value, series: z.value }, A.value = !0, b.value = a;
142
+ O.value = { datapoint: t, seriesIndex: a, config: e.value, series: P.value }, N.value = !0, _.value = a;
146
143
  const l = e.value.style.tooltip.customFormat;
147
- if (be(l))
144
+ if (xe(l))
148
145
  try {
149
146
  const o = l({
150
147
  seriesIndex: a,
151
148
  datapoint: t,
152
- series: z.value,
149
+ series: P.value,
153
150
  config: e.value
154
151
  });
155
- typeof o == "string" && (L.value = o, D.value = !0);
152
+ typeof o == "string" && (L.value = o, A.value = !0);
156
153
  } catch {
157
- console.warn("Custom format cannot be applied."), D.value = !1;
154
+ console.warn("Custom format cannot be applied."), A.value = !1;
158
155
  }
159
- if (!D.value) {
156
+ if (!A.value) {
160
157
  let o = "";
161
- o += `<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>`, o += `<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>`, o += `<b>${t.proportionLabel}</b>`, o += `<span>(${Z(
158
+ o += `<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>`, o += `<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>`, o += `<b>${t.proportionLabel}</b>`, o += `<span>(${ee(
162
159
  e.value.style.legend.value.formatter,
163
160
  t.value,
164
- V({
161
+ U({
165
162
  p: e.value.style.legend.value.prefix,
166
163
  v: t.value,
167
164
  s: e.value.style.legend.value.suffix,
@@ -187,24 +184,24 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
187
184
  p("div", {
188
185
  class: "atom-title",
189
186
  style: v(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
190
- }, w(e.value.style.title.text), 5),
187
+ }, C(e.value.style.title.text), 5),
191
188
  e.value.style.title.subtitle.text ? (s(), r("div", {
192
189
  key: 0,
193
190
  class: "atom-subtitle",
194
191
  style: v(`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"}`)
195
- }, w(e.value.style.title.subtitle.text), 5)) : y("", !0)
192
+ }, C(e.value.style.title.subtitle.text), 5)) : y("", !0)
196
193
  ], 4)) : y("", !0),
197
194
  j.value ? (s(), r("svg", {
198
195
  key: 1,
199
196
  ref_key: "svgRef",
200
- ref: se,
201
- xmlns: C(ye),
197
+ ref: ie,
198
+ xmlns: m(_e),
202
199
  width: "100%",
203
200
  viewBox: `0 0 ${g.value.width} ${g.value.height}`
204
201
  }, [
205
- q(we),
202
+ H(m(ae)),
206
203
  p("defs", null, [
207
- (s(!0), r(x, null, $(P.value, (l, o) => (s(), r("linearGradient", {
204
+ (s(!0), r(x, null, $(z.value, (l, o) => (s(), r("linearGradient", {
208
205
  key: `stack_gradient_${o}`,
209
206
  gradientTransform: "rotate(90)",
210
207
  id: `stack_gradient_${o}_${M.value}`
@@ -212,10 +209,10 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
212
209
  p("stop", {
213
210
  offset: "0%",
214
211
  "stop-color": l.color
215
- }, null, 8, Pe),
212
+ }, null, 8, Ae),
216
213
  p("stop", {
217
214
  offset: "50%",
218
- "stop-color": C(me)(C(ke)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
215
+ "stop-color": m(we)(m(Ce)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
219
216
  }, null, 8, De),
220
217
  p("stop", {
221
218
  offset: "100%",
@@ -231,23 +228,23 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
231
228
  rx: "3",
232
229
  ry: "3",
233
230
  fill: e.value.style.backgroundColor
234
- }, null, 8, Ae)
231
+ }, null, 8, Le)
235
232
  ])
236
233
  ]),
237
- I.value > 0 ? (s(), r("g", Le, [
238
- (s(!0), r(x, null, $(P.value, (l, o) => (s(), r("rect", {
234
+ W.value > 0 ? (s(), r("g", Be, [
235
+ (s(!0), r(x, null, $(z.value, (l, o) => (s(), r("rect", {
239
236
  key: `stack_underlayer_${o}`,
240
237
  x: l.start,
241
238
  y: 0,
242
239
  width: l.width,
243
240
  height: g.value.height,
244
241
  fill: e.value.style.bar.gradient.underlayerColor,
245
- class: F({ animated: !_.value }),
242
+ class: D({ animated: !w.value }),
246
243
  style: v({
247
- opacity: b.value !== null && e.value.style.tooltip.show ? b.value === o ? 1 : 0.5 : 1
244
+ opacity: _.value !== null && e.value.style.tooltip.show ? _.value === o ? 1 : 0.5 : 1
248
245
  })
249
- }, null, 14, Be))), 128)),
250
- (s(!0), r(x, null, $(P.value, (l, o) => (s(), r("rect", {
246
+ }, null, 14, Oe))), 128)),
247
+ (s(!0), r(x, null, $(z.value, (l, o) => (s(), r("rect", {
251
248
  key: `stack_${o}`,
252
249
  x: l.start,
253
250
  y: 0,
@@ -256,26 +253,26 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
256
253
  fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${o}_${M.value})` : l.color,
257
254
  stroke: e.value.style.backgroundColor,
258
255
  "stroke-linecap": "round",
259
- class: F({ animated: !_.value }),
256
+ class: D({ animated: !w.value }),
260
257
  style: v({
261
- opacity: b.value !== null && e.value.style.tooltip.show ? b.value === o ? 1 : 0.5 : 1
258
+ opacity: _.value !== null && e.value.style.tooltip.show ? _.value === o ? 1 : 0.5 : 1
262
259
  })
263
- }, null, 14, Oe))), 128)),
264
- (s(!0), r(x, null, $(P.value, (l, o) => (s(), r("rect", {
260
+ }, null, 14, Ve))), 128)),
261
+ (s(!0), r(x, null, $(z.value, (l, o) => (s(), r("rect", {
265
262
  key: `stack_trap_${o}`,
266
- onClick: () => W(l, o),
263
+ onClick: () => Y(l, o),
267
264
  x: l.start,
268
265
  y: 0,
269
266
  width: l.width,
270
267
  height: g.value.height,
271
268
  fill: "transparent",
272
269
  stroke: "none",
273
- class: F({ animated: !_.value }),
274
- onMouseenter: () => ue({ datapoint: l, seriesIndex: o }),
270
+ class: D({ animated: !w.value }),
271
+ onMouseenter: () => ve({ datapoint: l, seriesIndex: o }),
275
272
  onMouseleave: a[0] || (a[0] = (h) => {
276
- A.value = !1, b.value = null;
273
+ N.value = !1, _.value = null;
277
274
  })
278
- }, null, 42, Ue))), 128))
275
+ }, null, 42, Te))), 128))
279
276
  ])) : (s(), r("rect", {
280
277
  key: 1,
281
278
  x: 2,
@@ -286,9 +283,9 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
286
283
  "stroke-width": "2",
287
284
  fill: "transparent",
288
285
  rx: (g.value.height - 4) / 2
289
- }, null, 8, Ve))
290
- ], 8, Se)) : y("", !0),
291
- j.value ? y("", !0) : (s(), ce(_e, {
286
+ }, null, 8, Ue))
287
+ ], 8, Pe)) : y("", !0),
288
+ j.value ? y("", !0) : (s(), ge(m(se), {
292
289
  key: 2,
293
290
  config: {
294
291
  type: "sparkStackbar",
@@ -305,11 +302,11 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
305
302
  style: v(`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"}`),
306
303
  class: "vue-ui-sparkstackbar-legend"
307
304
  }, [
308
- (s(!0), r(x, null, $(z.value, (l, o) => (s(), r("div", {
305
+ (s(!0), r(x, null, $(P.value, (l, o) => (s(), r("div", {
309
306
  style: v(`font-size:${e.value.style.legend.fontSize}px;`),
310
- class: F({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": f.value.includes(o) }),
307
+ class: D({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": f.value.includes(o) }),
311
308
  onClick: (h) => {
312
- re(o), W(l, o);
309
+ ce(o), Y(l, o);
313
310
  }
314
311
  }, [
315
312
  p("div", Ee, [
@@ -327,18 +324,18 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
327
324
  ], 8, Me)),
328
325
  p("span", {
329
326
  style: v(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
330
- }, w(l.name), 5),
327
+ }, C(l.name), 5),
331
328
  e.value.style.legend.percentage.show ? (s(), r("span", {
332
329
  key: 0,
333
330
  style: v(`font-weight:${e.value.style.legend.percentage.bold ? "bold" : "normal"};color:${e.value.style.legend.percentage.color}`)
334
- }, w(f.value.includes(o) ? " - " : l.proportionLabel), 5)) : y("", !0),
331
+ }, C(f.value.includes(o) ? " - " : l.proportionLabel), 5)) : y("", !0),
335
332
  e.value.style.legend.value.show ? (s(), r("span", {
336
333
  key: 1,
337
334
  style: v(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
338
- }, " (" + w(C(Z)(
335
+ }, " (" + C(m(ee)(
339
336
  e.value.style.legend.value.formatter,
340
337
  l.value,
341
- C(V)({
338
+ m(U)({
342
339
  p: e.value.style.legend.value.prefix,
343
340
  v: l.value,
344
341
  s: e.value.style.legend.value.suffix,
@@ -349,8 +346,8 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
349
346
  ])
350
347
  ], 14, je))), 256))
351
348
  ], 4)) : y("", !0),
352
- q(Ce, {
353
- show: A.value && e.value.style.tooltip.show,
349
+ H(m(re), {
350
+ show: N.value && e.value.style.tooltip.show,
354
351
  parent: E.value,
355
352
  backgroundColor: e.value.style.tooltip.backgroundColor,
356
353
  color: e.value.style.tooltip.color,
@@ -361,24 +358,24 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
361
358
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
362
359
  position: e.value.style.tooltip.position,
363
360
  content: L.value,
364
- isCustom: D.value,
361
+ isCustom: A.value,
365
362
  offsetY: -124 + e.value.style.tooltip.offsetY,
366
363
  blockShiftY: !0
367
364
  }, {
368
- "tooltip-before": H(() => [
369
- U(t.$slots, "tooltip-before", X(J({ ...O.value })), void 0, !0)
365
+ "tooltip-before": X(() => [
366
+ T(t.$slots, "tooltip-before", J(K({ ...O.value })), void 0, !0)
370
367
  ]),
371
- "tooltip-after": H(() => [
372
- U(t.$slots, "tooltip-after", X(J({ ...O.value })), void 0, !0)
368
+ "tooltip-after": X(() => [
369
+ T(t.$slots, "tooltip-after", J(K({ ...O.value })), void 0, !0)
373
370
  ]),
374
371
  _: 3
375
372
  }, 8, ["show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY"]),
376
- t.$slots.source ? (s(), r("div", Te, [
377
- U(t.$slots, "source", {}, void 0, !0)
373
+ t.$slots.source ? (s(), r("div", Ie, [
374
+ T(t.$slots, "source", {}, void 0, !0)
378
375
  ], 512)) : y("", !0)
379
376
  ], 4));
380
377
  }
381
- }, Qe = /* @__PURE__ */ $e(Ie, [["__scopeId", "data-v-7955299f"]]);
378
+ }, Je = /* @__PURE__ */ Se(We, [["__scopeId", "data-v-bd91b3ec"]]);
382
379
  export {
383
- Qe as default
380
+ Je as default
384
381
  };