vue-data-ui 2.17.0 → 2.17.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 (91) hide show
  1. package/README.md +2 -1
  2. package/dist/{Arrow-BAEkZGzL.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-D0VYDhfx.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-Bxlv67uY.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-Cde-wJ3N.js} +3 -3
  11. package/dist/{Shape-DtFT5EJa.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-CL6-MRI6.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-B-2bV0SW.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CoQnTnr-.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-Dd34lEKb.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-Y_hYz-ZC.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-pPGk-uhD.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-yfk3d1is.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +63 -160
  23. package/dist/types/vue-data-ui.d.ts +63 -160
  24. package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-DDHcrl0A.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-D7ZgRDQ_.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-ORUAjkg7.js} +41 -34
  29. package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-Yl4aRpNc.js} +134 -127
  31. package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-C307lCPt.js} +90 -83
  33. package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-BE6PcEdh.js} +101 -94
  34. package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CUw74AgC.js} +270 -263
  36. package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-CCPGeAiY.js} +60 -53
  37. package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-dfyPiQmy.js} +121 -114
  38. package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-CKa7nFjt.js → vue-ui-donut-D41WeqQU.js} +244 -243
  42. package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-Deg0dsYg.js} +215 -211
  43. package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-DDwNoTPG.js} +117 -110
  44. package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-6oR7IMyi.js} +105 -98
  45. package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BnXtOJmh.js} +138 -131
  46. package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-75XC8SpV.js} +150 -146
  47. package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-w31j915C.js} +125 -118
  48. package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-BfU62tMW.js} +155 -148
  50. package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-CFfco-Yj.js} +141 -134
  51. package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-Tdk3Gd8M.js} +141 -134
  54. package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-Dg5wS7W5.js} +126 -119
  55. package/dist/{vue-ui-nested-donuts-D0RgFifU.js → vue-ui-nested-donuts-CpRe0sQB.js} +244 -244
  56. package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-B8o4ft2v.js} +88 -81
  57. package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +123 -116
  58. package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-DiRtZ16w.js} +151 -144
  59. package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-BRlYC_yT.js} +39 -32
  60. package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-DKgX1Ibx.js} +58 -51
  61. package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-MHiAp8dC.js} +127 -120
  63. package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-DA8verAe.js} +98 -91
  64. package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-Dh6lFqun.js} +208 -204
  65. package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-CLC5sTOi.js} +172 -165
  66. package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-C6rjCYDD.js} +61 -54
  75. package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-B6cYojHQ.js} +116 -109
  76. package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-D-oiVT3n.js} +88 -81
  80. package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-B1bM9Aoo.js} +127 -120
  82. package/dist/vue-ui-treemap-DX48YlU5.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-6SjKPQWR.js} +233 -226
  84. package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-CYao9MMw.js} +183 -179
  85. package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-USuDhMwW.js} +121 -114
  86. package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-TOBTs7yF.js} +152 -145
  87. package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-C2qikqBa.js} +77 -70
  88. package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-DxwgKoO-.js} +229 -222
  89. package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-N69OpVn8.js} +154 -147
  90. package/package.json +1 -1
  91. package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
@@ -1,19 +1,19 @@
1
- import { defineAsyncComponent as V, useSlots as ft, computed as d, ref as c, watch as De, shallowRef as Re, onMounted as yt, onBeforeUnmount as gt, createElementBlock as r, openBlock as s, unref as n, normalizeStyle as K, normalizeClass as Ue, createBlock as M, createCommentVNode as f, createElementVNode as x, createVNode as ve, createSlots as Ee, withCtx as m, renderSlot as g, normalizeProps as W, guardReactiveProps as q, Fragment as $, renderList as F, mergeProps as Ge, toDisplayString as L, createTextVNode as je, nextTick as mt } from "vue";
2
- import { u as bt, c as wt, t as kt, p as D, a as xt, o as Ct, e as ce, g as $t, b as _t, i as H, f as _, X as It, s as Tt, w as St, F as Ot, L as Pt, d as At, q as Ft, r as Lt, x as zt, y as Nt } from "./index-pPGk-uhD.js";
3
- import { t as Bt, u as Vt } from "./useResponsive-DfdjqQps.js";
4
- import { u as We } from "./useNestedProp-DjACxgdZ.js";
5
- import { u as Mt } from "./usePrinter-DDHcrl0A.js";
6
- import { u as Dt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Ut from "./Title-B-2bV0SW.js";
9
- import Et from "./Legend-Bxlv67uY.js";
10
- import { _ as Gt } from "./Shape-DtFT5EJa.js";
11
- import jt from "./img-Y_hYz-ZC.js";
1
+ import { defineAsyncComponent as B, useSlots as pt, computed as d, ref as c, watch as Re, shallowRef as De, onMounted as ft, onBeforeUnmount as yt, createElementBlock as v, openBlock as s, unref as r, normalizeStyle as K, normalizeClass as Ue, createBlock as M, createCommentVNode as f, createElementVNode as x, createVNode as ve, createSlots as Ee, withCtx as m, renderSlot as g, normalizeProps as W, guardReactiveProps as q, Fragment as $, renderList as z, mergeProps as Ge, toDisplayString as A, createTextVNode as gt, nextTick as mt } from "vue";
2
+ import { u as bt, c as wt, t as kt, p as R, a as xt, o as Ct, e as ce, g as $t, b as _t, i as H, f as _, X as It, s as Tt, w as St, F as Pt, L as Ot, d as At, q as Ft, r as Lt, x as zt, y as Nt } from "./index-CobsZUkv.js";
3
+ import { t as Vt, u as Bt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as je } from "./useNestedProp-BwL5wmVa.js";
5
+ import { u as Mt } from "./usePrinter-DPh6U_Qk.js";
6
+ import { u as Rt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Ut from "./Title-DpERl1yr.js";
9
+ import Et from "./Legend-3LNqqLDg.js";
10
+ import { _ as Gt } from "./Shape-C75836Jl.js";
11
+ import jt from "./img-utitT2Gd.js";
12
12
  import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"], Jt = ["stop-color"], Kt = ["id"], Qt = ["x", "y", "height", "width"], Zt = ["height", "width"], el = { key: 0 }, tl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], ll = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], al = { key: 1 }, ol = ["rx", "x", "y", "height", "width", "fill", "filter"], ul = ["x", "y", "height", "width", "filter"], sl = { key: 0 }, rl = { key: 1 }, nl = { key: 2 }, il = { key: 3 }, vl = ["onMouseover", "x", "y", "height", "width"], cl = {
14
14
  key: 5,
15
15
  class: "vue-data-ui-watermark"
16
- }, dl = ["onClick"], hl = { key: 0 }, pl = { key: 1 }, fl = ["innerHTML"], yl = {
16
+ }, dl = ["onClick"], hl = ["innerHTML"], pl = {
17
17
  __name: "vue-ui-waffle",
18
18
  props: {
19
19
  config: {
@@ -30,28 +30,28 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
30
30
  }
31
31
  },
32
32
  emits: ["selectLegend"],
33
- setup(qe, { expose: He, emit: Xe }) {
34
- const Ye = V(() => import("./DataTable-D0VYDhfx.js")), Je = V(() => import("./PenAndPaper-D6AqipIO.js")), Ke = V(() => import("./vue-ui-accordion-CVnA550V.js")), Qe = V(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Ze = V(() => import("./Tooltip-CoQnTnr-.js")), et = V(() => import("./UserOptions-Dd34lEKb.js")), tt = V(() => import("./PackageVersion-5TR4ocqp.js")), { vue_ui_waffle: lt } = bt(), b = qe, at = ft(), Q = d(() => !!b.dataset && b.dataset.length), k = c(wt()), ot = c(null), ae = c(!1), oe = c(""), R = c(null), de = c(0), z = c(null), he = c(null), pe = c(null), fe = c(null), ye = c(null), ge = c(0), me = c(0), be = c(0), e = d({
33
+ setup(We, { expose: qe, emit: He }) {
34
+ const Xe = B(() => import("./DataTable-Dt-TIOyY.js")), Ye = B(() => import("./PenAndPaper-Cde-wJ3N.js")), Je = B(() => import("./vue-ui-accordion-UewqY6OI.js")), Ke = B(() => import("./vue-ui-skeleton-8s4xts8z.js")), Qe = B(() => import("./Tooltip-DA0bYKFG.js")), Ze = B(() => import("./UserOptions-DTEJ3UM_.js")), et = B(() => import("./PackageVersion-C-4Ee8BQ.js")), { vue_ui_waffle: tt } = bt(), b = We, lt = pt(), Q = d(() => !!b.dataset && b.dataset.length), k = c(wt()), at = c(null), ae = c(!1), oe = c(""), D = c(null), de = c(0), F = c(null), he = c(null), pe = c(null), fe = c(null), ye = c(null), ge = c(0), me = c(0), be = c(0), e = d({
35
35
  get: () => Ce(),
36
36
  set: (t) => t
37
- }), { userOptionsVisible: ue, setUserOptionsVisibility: we, keepUserOptionState: ke } = Dt({ config: e.value }), { svgRef: xe } = Rt({ config: e.value.style.chart.title });
37
+ }), { userOptionsVisible: ue, setUserOptionsVisibility: we, keepUserOptionState: ke } = Rt({ config: e.value }), { svgRef: xe } = Dt({ config: e.value.style.chart.title });
38
38
  function Ce() {
39
- const t = We({
39
+ const t = je({
40
40
  userConfig: b.config,
41
- defaultConfig: lt
41
+ defaultConfig: tt
42
42
  });
43
43
  return t.theme ? {
44
- ...We({
44
+ ...je({
45
45
  userConfig: xt.vue_ui_waffle[t.theme] || b.config,
46
46
  defaultConfig: t
47
47
  }),
48
- customPalette: kt[t.theme] || D
48
+ customPalette: kt[t.theme] || R
49
49
  } : t;
50
50
  }
51
- De(() => b.config, (t) => {
51
+ Re(() => b.config, (t) => {
52
52
  e.value = Ce(), ue.value = !e.value.userOptions.showOnChartHover, $e(), ge.value += 1, me.value += 1, be.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
53
53
  }, { deep: !0 });
54
- const A = Re(null), U = Re(null);
54
+ const L = De(null), U = De(null);
55
55
  function $e() {
56
56
  if (Ct(b.dataset) ? ce({
57
57
  componentName: "VueUiWaffle",
@@ -69,9 +69,9 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
69
69
  });
70
70
  });
71
71
  }), e.value.responsive) {
72
- const t = Bt(() => {
73
- const { width: a, height: l } = Vt({
74
- chart: z.value,
72
+ const t = Vt(() => {
73
+ const { width: a, height: l } = Bt({
74
+ chart: F.value,
75
75
  title: e.value.style.chart.title.text ? he.value : null,
76
76
  legend: e.value.style.chart.legend.show ? pe.value : null,
77
77
  source: fe.value,
@@ -81,19 +81,19 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
81
81
  N.value.width = a, N.value.height = l, I.value.width = a, I.value.height = l;
82
82
  });
83
83
  });
84
- A.value && (U.value && A.value.unobserve(U.value), A.value.disconnect()), A.value = new ResizeObserver(t), U.value = z.value.parentNode, A.value.observe(U.value);
84
+ L.value && (U.value && L.value.unobserve(U.value), L.value.disconnect()), L.value = new ResizeObserver(t), U.value = F.value.parentNode, L.value.observe(U.value);
85
85
  }
86
86
  }
87
- yt(() => {
87
+ ft(() => {
88
88
  $e();
89
- }), gt(() => {
90
- A.value && (U.value && A.value.unobserve(U.value), A.value.disconnect());
89
+ }), yt(() => {
90
+ L.value && (U.value && L.value.unobserve(U.value), L.value.disconnect());
91
91
  });
92
92
  const { isPrinting: _e, isImaging: Ie, generatePdf: Te, generateImage: Se } = Mt({
93
93
  elementId: `vue-ui-waffle_${k.value}`,
94
94
  fileName: e.value.style.chart.title.text || "vue-ui-waffle",
95
95
  options: e.value.userOptions.print
96
- }), ut = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Oe = d(() => _t(e.value.customPalette)), C = c({
96
+ }), ot = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = d(() => _t(e.value.customPalette)), C = c({
97
97
  showTable: e.value.table.show,
98
98
  showTooltip: e.value.style.chart.tooltip.show
99
99
  }), N = c({
@@ -105,12 +105,12 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
105
105
  height: 512,
106
106
  width: 512
107
107
  }), T = d(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = d(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), X = d(() => I.value.width / e.value.style.chart.layout.grid.size), Z = d(() => I.value.height / e.value.style.chart.layout.grid.size);
108
- function Pe(t) {
109
- const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, ie) => w + ie, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), v = o.map((w) => w % 1);
108
+ function Oe(t) {
109
+ const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, ie) => w + ie, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), i = o.map((w) => w % 1);
110
110
  let y = a - u.reduce((w, ie) => w + ie, 0);
111
111
  for (; y > 0; ) {
112
- let w = v.indexOf(Math.max(...v));
113
- u[w] += 1, v[w] = 0, y -= 1;
112
+ let w = i.indexOf(Math.max(...i));
113
+ u[w] += 1, i[w] = 0, y -= 1;
114
114
  }
115
115
  return u;
116
116
  }
@@ -118,21 +118,21 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
118
118
  function Ae() {
119
119
  return Y.value = b.dataset.flatMap((t) => t.values.reduce((a, l) => a + l, 0)).reduce((t, a) => t + a, 0) === 0, b.dataset.map((t, a) => ({
120
120
  ...t,
121
- color: At(t.color) || Oe.value[a] || D[a] || D[a % D.length],
121
+ color: At(t.color) || Pe.value[a] || R[a] || R[a % R.length],
122
122
  uid: `serie_${a}`,
123
123
  absoluteIndex: a
124
124
  }));
125
125
  }
126
126
  const se = d(() => Ae()), h = c(se.value);
127
- De(() => b.dataset, (t) => {
127
+ Re(() => b.dataset, (t) => {
128
128
  h.value = Ae();
129
129
  }, { deep: !0 });
130
- const st = d(() => {
130
+ const ut = d(() => {
131
131
  const t = h.value.filter((a, l) => !p.value.includes(a.uid)).map((a, l) => Y.value ? 1 : (a.values || []).reduce((o, u) => o + u, 0));
132
- return Pe(t);
133
- }), rt = d(() => {
132
+ return Oe(t);
133
+ }), st = d(() => {
134
134
  const t = h.value.map((a, l) => Y.value ? 1 : (a.values || []).reduce((o, u) => o + u));
135
- return Pe(t);
135
+ return Oe(t);
136
136
  }), J = d(() => (b.dataset.forEach((t, a) => {
137
137
  [null, void 0].includes(t.values) && ce({
138
138
  componentName: "VueUiWaffle",
@@ -147,37 +147,37 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
147
147
  color: t.color,
148
148
  value: (t.values || []).reduce((l, o) => l + o, 0),
149
149
  absoluteValues: t.values || [],
150
- proportion: st.value[a]
151
- })))), nt = d(() => h.value.map((t, a) => ({
150
+ proportion: ut.value[a]
151
+ })))), rt = d(() => h.value.map((t, a) => ({
152
152
  absoluteIndex: t.absoluteIndex,
153
153
  uid: t.uid,
154
154
  name: t.name,
155
155
  color: t.color,
156
156
  value: (t.values || []).reduce((l, o) => l + o, 0),
157
157
  absoluteValues: t.values || [],
158
- proportion: rt.value[a]
158
+ proportion: st.value[a]
159
159
  })));
160
- function it() {
161
- return nt.value.map((t) => ({
160
+ function nt() {
161
+ return rt.value.map((t) => ({
162
162
  name: t.name,
163
163
  color: t.color,
164
164
  value: t.value,
165
165
  proportion: t.proportion
166
166
  }));
167
167
  }
168
- const vt = d(() => {
168
+ const it = d(() => {
169
169
  let t = 0;
170
170
  return J.value.map((a, l) => {
171
- const o = t, u = o + a.proportion, v = [];
171
+ const o = t, u = o + a.proportion, i = [];
172
172
  for (let y = Math.floor(o); y < Math.floor(u); y += 1)
173
- v.push(y);
173
+ i.push(y);
174
174
  return t = u, {
175
175
  ...a,
176
176
  start: o,
177
- rects: v
177
+ rects: i
178
178
  };
179
179
  });
180
- }), i = d(() => vt.value.flatMap((t, a) => t.rects.map((l, o) => ({
180
+ }), n = d(() => it.value.flatMap((t, a) => t.rects.map((l, o) => ({
181
181
  isFirst: o === 0,
182
182
  isLongEnough: l.length > 2,
183
183
  name: t.name,
@@ -201,42 +201,42 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
201
201
  y: (e.value.style.chart.layout.grid.vertical ? l : a) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
202
202
  });
203
203
  return t;
204
- }), p = c([]), B = c(!1), Fe = c(null), Le = c(null);
204
+ }), p = c([]), V = c(!1), Fe = c(null), Le = c(null);
205
205
  function ze(t) {
206
206
  if (Y.value) return;
207
207
  if (!e.value.useAnimation) {
208
208
  p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < G.value.length - 1 && G.value.length > 1 && p.value.push(t);
209
209
  return;
210
210
  }
211
- const a = se.value.find((u) => u.uid === t).values.reduce((u, v) => u + v, 0), l = h.value.find((u) => u.uid === t).values.reduce((u, v) => u + v, 0);
211
+ const a = se.value.find((u) => u.uid === t).values.reduce((u, i) => u + i, 0), l = h.value.find((u) => u.uid === t).values.reduce((u, i) => u + i, 0);
212
212
  let o = l;
213
213
  if (!(l === 0 && a === 0)) {
214
214
  if (p.value.includes(t)) {
215
- let v = function() {
215
+ let i = function() {
216
216
  o > u ? (cancelAnimationFrame(Fe.value), h.value = h.value.map((y, w) => y.uid === t ? {
217
217
  ...y,
218
218
  values: [u]
219
- } : y), B.value = !1) : (B.value = !0, o += u * 0.025, h.value = h.value.map((y, w) => y.uid === t ? {
219
+ } : y), V.value = !1) : (V.value = !0, o += u * 0.025, h.value = h.value.map((y, w) => y.uid === t ? {
220
220
  ...y,
221
221
  values: [o]
222
- } : y), Fe.value = requestAnimationFrame(v));
222
+ } : y), Fe.value = requestAnimationFrame(i));
223
223
  };
224
224
  p.value = p.value.filter((y) => y !== t);
225
225
  const u = a;
226
- v();
226
+ i();
227
227
  } else if (p.value.length < G.value.length - 1 && G.value.length > 1) {
228
228
  let u = function() {
229
- o < l / 100 ? (cancelAnimationFrame(Le.value), p.value.push(t), h.value = h.value.map((v, y) => v.uid === t ? {
230
- ...v,
229
+ o < l / 100 ? (cancelAnimationFrame(Le.value), p.value.push(t), h.value = h.value.map((i, y) => i.uid === t ? {
230
+ ...i,
231
231
  values: [0]
232
- } : v), B.value = !1) : (B.value = !0, o /= 1.15, h.value = h.value.map((v) => v.uid === t ? {
233
- ...v,
232
+ } : i), V.value = !1) : (V.value = !0, o /= 1.15, h.value = h.value.map((i) => i.uid === t ? {
233
+ ...i,
234
234
  values: [o]
235
- } : v), Le.value = requestAnimationFrame(u));
235
+ } : i), Le.value = requestAnimationFrame(u));
236
236
  };
237
237
  u();
238
238
  }
239
- ht("selectLegend", J.value.map((u) => ({
239
+ dt("selectLegend", J.value.map((u) => ({
240
240
  name: u.name,
241
241
  color: u.color,
242
242
  value: u.value,
@@ -246,7 +246,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
246
246
  }
247
247
  const G = d(() => h.value.map((t, a) => ({
248
248
  name: t.name,
249
- color: t.color || Oe[a] || D[a] || D[a % D.length],
249
+ color: t.color || Pe[a] || R[a] || R[a % R.length],
250
250
  value: (t.values || []).reduce((l, o) => l + o, 0),
251
251
  uid: t.uid,
252
252
  shape: "square"
@@ -256,39 +256,39 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
256
256
  opacity: p.value.includes(t.uid) ? 0.5 : 1,
257
257
  segregate: () => ze(t.uid),
258
258
  isSegregated: p.value.includes(t.uid)
259
- }))), ct = d(() => ({
259
+ }))), vt = d(() => ({
260
260
  cy: "waffle-div-legend",
261
261
  backgroundColor: e.value.style.chart.legend.backgroundColor,
262
262
  color: e.value.style.chart.legend.color,
263
263
  fontSize: e.value.style.chart.legend.fontSize,
264
264
  paddingBottom: 12,
265
265
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
266
- })), O = d(() => J.value.map((t) => t.value).reduce((t, a) => t + a, 0)), re = c(null);
267
- function dt(t) {
266
+ })), P = d(() => J.value.map((t) => t.value).reduce((t, a) => t + a, 0)), re = c(null);
267
+ function ct(t) {
268
268
  if (p.value.length === b.dataset.length) return;
269
- const a = i.value[t];
269
+ const a = n.value[t];
270
270
  re.value = {
271
271
  datapoint: a,
272
272
  seriesIndex: a.absoluteIndex,
273
273
  series: h.value,
274
274
  config: e.value
275
- }, ae.value = !0, R.value = i.value[t].serieIndex;
275
+ }, ae.value = !0, D.value = n.value[t].serieIndex;
276
276
  const l = e.value.style.chart.tooltip.customFormat;
277
277
  if (zt(l) && Nt(() => l({
278
- seriesIndex: i.value[t].absoluteIndex,
278
+ seriesIndex: n.value[t].absoluteIndex,
279
279
  datapoint: a,
280
280
  series: h.value,
281
281
  config: e.value
282
282
  })))
283
283
  oe.value = l({
284
- seriesIndex: i.value[t].absoluteIndex,
284
+ seriesIndex: n.value[t].absoluteIndex,
285
285
  datapoint: a,
286
286
  series: h.value,
287
287
  config: e.value
288
288
  });
289
289
  else {
290
290
  let o = "";
291
- if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${a.color}" />${at.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${k.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${H(
291
+ if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${a.color}" />${lt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${k.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${H(
292
292
  e.value.style.chart.layout.labels.dataLabels.formatter,
293
293
  a.value,
294
294
  _({
@@ -299,12 +299,12 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
299
299
  }),
300
300
  {
301
301
  datapoint: a,
302
- seriesIndex: i.value[t].absoluteIndex,
302
+ seriesIndex: n.value[t].absoluteIndex,
303
303
  series: h.value
304
304
  }
305
305
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
306
306
  const u = _({
307
- v: Y.value ? 1 / b.dataset.length * 100 : a.value / O.value * 100,
307
+ v: Y.value ? 1 / b.dataset.length * 100 : a.value / P.value * 100,
308
308
  s: "%",
309
309
  r: e.value.style.chart.tooltip.roundingPercentage
310
310
  });
@@ -313,7 +313,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
313
313
  oe.value = o;
314
314
  }
315
315
  }
316
- const ht = Xe, P = d(() => {
316
+ const dt = He, O = d(() => {
317
317
  const t = J.value.map((l) => ({
318
318
  name: l.name,
319
319
  color: l.color
@@ -321,13 +321,13 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
321
321
  return { head: t, body: a };
322
322
  });
323
323
  function ee(t) {
324
- return e.value.useBlurOnHover && ![null, void 0].includes(R.value) && R.value !== t ? `url(#blur_${k.value})` : "";
324
+ return e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== t ? `url(#blur_${k.value})` : "";
325
325
  }
326
326
  function Ne(t = null) {
327
327
  mt(() => {
328
- const a = P.value.head.map((u, v) => [[
328
+ const a = O.value.head.map((u, i) => [[
329
329
  u.name
330
- ], [P.value.body[v]], [isNaN(P.value.body[v] / O.value) ? "-" : P.value.body[v] / O.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Ft(l);
330
+ ], [O.value.body[i]], [isNaN(O.value.body[i] / P.value) ? "-" : O.value.body[i] / P.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Ft(l);
331
331
  t ? t(o) : Lt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
332
332
  });
333
333
  }
@@ -336,32 +336,32 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
336
336
  ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
337
337
  H(
338
338
  e.value.style.chart.layout.labels.dataLabels.formatter,
339
- O.value,
339
+ P.value,
340
340
  _({
341
341
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
342
- v: O.value,
342
+ v: P.value,
343
343
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
344
344
  r: e.value.table.td.roundingValue
345
345
  })
346
346
  ),
347
347
  "100%"
348
- ], a = P.value.head.map((u, v) => [
348
+ ], a = O.value.head.map((u, i) => [
349
349
  {
350
350
  color: u.color,
351
351
  name: u.name
352
352
  },
353
353
  H(
354
354
  e.value.style.chart.layout.labels.dataLabels.formatter,
355
- P.value.body[v],
355
+ O.value.body[i],
356
356
  _({
357
357
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
358
- v: P.value.body[v],
358
+ v: O.value.body[i],
359
359
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
360
360
  r: e.value.table.td.roundingValue
361
361
  })
362
362
  ),
363
- isNaN(P.value.body[v] / O.value) ? "-" : _({
364
- v: P.value.body[v] / O.value * 100,
363
+ isNaN(O.value.body[i] / P.value) ? "-" : _({
364
+ v: O.value.body[i] / P.value * 100,
365
365
  s: "%",
366
366
  r: e.value.table.td.roundingPercentage
367
367
  })
@@ -390,10 +390,10 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
390
390
  colNames: o
391
391
  };
392
392
  }), j = c(!1);
393
- function Be(t) {
393
+ function Ve(t) {
394
394
  j.value = t, de.value += 1;
395
395
  }
396
- function Ve() {
396
+ function Be() {
397
397
  C.value.showTable = !C.value.showTable;
398
398
  }
399
399
  function Me() {
@@ -403,46 +403,53 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
403
403
  function ne() {
404
404
  le.value = !le.value;
405
405
  }
406
- async function pt({ scale: t = 2 } = {}) {
407
- if (!z.value) return;
408
- const { imageUri: a, base64: l } = await jt({ domElement: z.value, base64: !0, img: !0, scale: t });
409
- return { imageUri: a, base64: l };
406
+ async function ht({ scale: t = 2 } = {}) {
407
+ if (!F.value) return;
408
+ const { width: a, height: l } = F.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: i } = await jt({ domElement: F.value, base64: !0, img: !0, scale: t });
409
+ return {
410
+ imageUri: u,
411
+ base64: i,
412
+ title: e.value.style.chart.title.text,
413
+ width: a,
414
+ height: l,
415
+ aspectRatio: o
416
+ };
410
417
  }
411
- return He({
412
- getData: it,
413
- getImage: pt,
418
+ return qe({
419
+ getData: nt,
420
+ getImage: ht,
414
421
  generatePdf: Te,
415
422
  generateCsv: Ne,
416
423
  generateImage: Se,
417
- toggleTable: Ve,
424
+ toggleTable: Be,
418
425
  toggleTooltip: Me,
419
426
  toggleAnnotator: ne,
420
- toggleFullscreen: Be
421
- }), (t, a) => (s(), r("div", {
427
+ toggleFullscreen: Ve
428
+ }), (t, a) => (s(), v("div", {
422
429
  class: Ue(`vue-ui-waffle ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
423
430
  ref_key: "waffleChart",
424
- ref: z,
431
+ ref: F,
425
432
  id: `vue-ui-waffle_${k.value}`,
426
433
  style: K(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
427
- onMouseenter: a[3] || (a[3] = () => n(we)(!0)),
428
- onMouseleave: a[4] || (a[4] = () => n(we)(!1))
434
+ onMouseenter: a[3] || (a[3] = () => r(we)(!0)),
435
+ onMouseleave: a[4] || (a[4] = () => r(we)(!1))
429
436
  }, [
430
- e.value.userOptions.buttons.annotator ? (s(), M(n(Je), {
437
+ e.value.userOptions.buttons.annotator ? (s(), M(r(Ye), {
431
438
  key: 0,
432
- svgRef: n(xe),
439
+ svgRef: r(xe),
433
440
  backgroundColor: e.value.style.chart.backgroundColor,
434
441
  color: e.value.style.chart.color,
435
442
  active: le.value,
436
443
  onClose: ne
437
444
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
438
- ut.value ? (s(), r("div", {
445
+ ot.value ? (s(), v("div", {
439
446
  key: 1,
440
447
  ref_key: "noTitle",
441
448
  ref: ye,
442
449
  class: "vue-data-ui-no-title-space",
443
450
  style: "height:36px; width: 100%;background:transparent"
444
451
  }, null, 512)) : f("", !0),
445
- e.value.style.chart.title.text ? (s(), r("div", {
452
+ e.value.style.chart.title.text ? (s(), v("div", {
446
453
  key: 2,
447
454
  ref_key: "chartTitle",
448
455
  ref: he,
@@ -462,14 +469,14 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
462
469
  }
463
470
  }, null, 8, ["config"]))
464
471
  ], 512)) : f("", !0),
465
- e.value.userOptions.show && Q.value && (n(ke) || n(ue)) ? (s(), M(n(et), {
472
+ e.value.userOptions.show && Q.value && (r(ke) || r(ue)) ? (s(), M(r(Ze), {
466
473
  ref_key: "details",
467
- ref: ot,
474
+ ref: at,
468
475
  key: `user_options_${de.value}`,
469
476
  backgroundColor: e.value.style.chart.backgroundColor,
470
477
  color: e.value.style.chart.color,
471
- isPrinting: n(_e),
472
- isImaging: n(Ie),
478
+ isPrinting: r(_e),
479
+ isImaging: r(Ie),
473
480
  uid: k.value,
474
481
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
475
482
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -480,21 +487,21 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
480
487
  isFullscreen: j.value,
481
488
  isTooltip: C.value.showTooltip,
482
489
  titles: { ...e.value.userOptions.buttonTitles },
483
- chartElement: z.value,
490
+ chartElement: F.value,
484
491
  position: e.value.userOptions.position,
485
492
  hasAnnotator: e.value.userOptions.buttons.annotator,
486
493
  isAnnotation: le.value,
487
494
  callbacks: e.value.userOptions.callbacks,
488
495
  printScale: e.value.userOptions.print.scale,
489
- onToggleFullscreen: Be,
490
- onGeneratePdf: n(Te),
496
+ onToggleFullscreen: Ve,
497
+ onGeneratePdf: r(Te),
491
498
  onGenerateCsv: Ne,
492
- onGenerateImage: n(Se),
493
- onToggleTable: Ve,
499
+ onGenerateImage: r(Se),
500
+ onToggleTable: Be,
494
501
  onToggleTooltip: Me,
495
502
  onToggleAnnotator: ne,
496
503
  style: K({
497
- visibility: n(ke) ? n(ue) ? "visible" : "hidden" : "visible"
504
+ visibility: r(ke) ? r(ue) ? "visible" : "hidden" : "visible"
498
505
  })
499
506
  }, Ee({ _: 2 }, [
500
507
  t.$slots.menuIcon ? {
@@ -554,18 +561,18 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
554
561
  key: "7"
555
562
  } : void 0
556
563
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
557
- Q.value ? (s(), r("svg", {
564
+ Q.value ? (s(), v("svg", {
558
565
  key: 4,
559
566
  ref_key: "svgRef",
560
567
  ref: xe,
561
- xmlns: n(It),
568
+ xmlns: r(It),
562
569
  class: Ue({ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.value }),
563
570
  viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
564
571
  style: K(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
565
572
  }, [
566
- ve(n(tt)),
573
+ ve(r(et)),
567
574
  x("defs", null, [
568
- (s(!0), r($, null, F(i.value, (l, o) => (s(), r("radialGradient", {
575
+ (s(!0), v($, null, z(n.value, (l, o) => (s(), v("radialGradient", {
569
576
  cx: "50%",
570
577
  cy: "50%",
571
578
  r: "50%",
@@ -575,7 +582,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
575
582
  }, [
576
583
  x("stop", {
577
584
  offset: "0%",
578
- "stop-color": n(Tt)(n(St)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
585
+ "stop-color": r(Tt)(r(St)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
579
586
  }, null, 8, Yt),
580
587
  x("stop", {
581
588
  offset: "100%",
@@ -601,16 +608,16 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
601
608
  }, null, -1)
602
609
  ]), 8, Kt)
603
610
  ]),
604
- e.value.useCustomCells && i.value.length ? (s(!0), r($, { key: 0 }, F(E.value, (l, o) => (s(), r("foreignObject", {
611
+ e.value.useCustomCells && n.value.length ? (s(!0), v($, { key: 0 }, z(E.value, (l, o) => (s(), v("foreignObject", {
605
612
  x: l.x,
606
613
  y: l.y,
607
614
  height: S.value <= 0 ? 1e-4 : S.value,
608
615
  width: T.value <= 0 ? 1e-4 : T.value,
609
616
  class: "vue-ui-waffle-custom-cell-foreignObject"
610
617
  }, [
611
- g(t.$slots, "cell", Ge({ ref_for: !0 }, { cell: { ...l, color: i.value[o].color, ...i.value[o] }, isSelected: [null, void 0].includes(R.value) ? !0 : i.value[o].serieIndex === R.value }), void 0, !0)
618
+ g(t.$slots, "cell", Ge({ ref_for: !0 }, { cell: { ...l, color: n.value[o].color, ...n.value[o] }, isSelected: [null, void 0].includes(D.value) ? !0 : n.value[o].serieIndex === D.value }), void 0, !0)
612
619
  ], 8, Qt))), 256)) : f("", !0),
613
- !i.value.length && !e.value.useCustomCells ? (s(), r("rect", {
620
+ !n.value.length && !e.value.useCustomCells ? (s(), v("rect", {
614
621
  key: 1,
615
622
  x: 12,
616
623
  y: 12,
@@ -619,13 +626,13 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
619
626
  rx: 3,
620
627
  fill: "none",
621
628
  stroke: "black"
622
- }, null, 8, Zt)) : i.value.length && !e.value.useCustomCells ? (s(), r($, { key: 2 }, [
623
- t.$slots.pattern ? (s(), r("g", el, [
624
- (s(!0), r($, null, F(se.value, (l) => (s(), r("defs", null, [
629
+ }, null, 8, Zt)) : n.value.length && !e.value.useCustomCells ? (s(), v($, { key: 2 }, [
630
+ t.$slots.pattern ? (s(), v("g", el, [
631
+ (s(!0), v($, null, z(se.value, (l) => (s(), v("defs", null, [
625
632
  g(t.$slots, "pattern", Ge({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` }), void 0, !0)
626
633
  ]))), 256))
627
634
  ])) : f("", !0),
628
- (s(!0), r($, null, F(E.value, (l, o) => (s(), r("rect", {
635
+ (s(!0), v($, null, z(E.value, (l, o) => (s(), v("rect", {
629
636
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
630
637
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
631
638
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -634,76 +641,76 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
634
641
  fill: "white",
635
642
  stroke: e.value.style.chart.layout.rect.stroke,
636
643
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
637
- filter: ee(i.value[o].serieIndex)
644
+ filter: ee(n.value[o].serieIndex)
638
645
  }, null, 8, tl))), 256)),
639
- (s(!0), r($, null, F(E.value, (l, o) => (s(), r("rect", {
646
+ (s(!0), v($, null, z(E.value, (l, o) => (s(), v("rect", {
640
647
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
641
648
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
642
649
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
643
650
  height: S.value <= 0 ? 1e-4 : S.value,
644
651
  width: T.value <= 0 ? 1e-4 : T.value,
645
- fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${o})` : i.value[o].color,
652
+ fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${o})` : n.value[o].color,
646
653
  stroke: e.value.style.chart.layout.rect.stroke,
647
654
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
648
- filter: ee(i.value[o].serieIndex)
655
+ filter: ee(n.value[o].serieIndex)
649
656
  }, null, 8, ll))), 256)),
650
- t.$slots.pattern ? (s(), r("g", al, [
651
- (s(!0), r($, null, F(E.value, (l, o) => (s(), r("rect", {
657
+ t.$slots.pattern ? (s(), v("g", al, [
658
+ (s(!0), v($, null, z(E.value, (l, o) => (s(), v("rect", {
652
659
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
653
660
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
654
661
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
655
662
  height: S.value <= 0 ? 1e-4 : S.value,
656
663
  width: T.value <= 0 ? 1e-4 : T.value,
657
- fill: `url(#pattern_${k.value}_${i.value[o].absoluteIndex})`,
664
+ fill: `url(#pattern_${k.value}_${n.value[o].absoluteIndex})`,
658
665
  stroke: "none",
659
- filter: ee(i.value[o].serieIndex)
666
+ filter: ee(n.value[o].serieIndex)
660
667
  }, null, 8, ol))), 256))
661
668
  ])) : f("", !0)
662
669
  ], 64)) : f("", !0),
663
- (s(!0), r($, null, F(E.value, (l, o) => (s(), r($, null, [
664
- i.value.length && !B.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (i.value[o].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || i.value[o].isAbsoluteFirst && o % e.value.style.chart.layout.grid.size === 0 && i.value[o].absoluteStartIndex) ? (s(), r("foreignObject", {
670
+ (s(!0), v($, null, z(E.value, (l, o) => (s(), v($, null, [
671
+ n.value.length && !V.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (n.value[o].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || n.value[o].isAbsoluteFirst && o % e.value.style.chart.layout.grid.size === 0 && n.value[o].absoluteStartIndex) ? (s(), v("foreignObject", {
665
672
  key: 0,
666
673
  x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
667
674
  y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
668
675
  height: Z.value <= 0 ? 1e-4 : Z.value,
669
676
  width: X.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : X.value * e.value.style.chart.layout.grid.size,
670
- filter: ee(i.value[o].serieIndex)
677
+ filter: ee(n.value[o].serieIndex)
671
678
  }, [
672
679
  x("div", {
673
680
  class: "vue-ui-waffle-caption",
674
- style: K(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${X.value / 12}px;color:${n(Ot)(i.value[o].color)};gap:2px`)
681
+ style: K(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${X.value / 12}px;color:${r(Pt)(n.value[o].color)};gap:2px`)
675
682
  }, [
676
- e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", sl, L(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? n(Pt)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) : f("", !0),
677
- e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", rl, L(n(_)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
678
- e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", nl, " (" + L(n(H)(
683
+ e.value.style.chart.layout.labels.captions.showSerieName ? (s(), v("span", sl, A(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? r(Ot)({ source: n.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : n.value[o].name) + ": ", 1)) : f("", !0),
684
+ e.value.style.chart.layout.labels.captions.showPercentage ? (s(), v("span", rl, A(r(_)({ v: n.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
685
+ e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), v("span", nl, " (" + A(r(H)(
679
686
  e.value.style.chart.layout.labels.dataLabels.formatter,
680
- i.value[o].value,
681
- n(_)({
687
+ n.value[o].value,
688
+ r(_)({
682
689
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
683
- v: i.value[o].value,
690
+ v: n.value[o].value,
684
691
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
685
692
  r: e.value.style.chart.layout.labels.captions.roundingValue
686
693
  }),
687
- { datapoint: i.value[o], position: l }
694
+ { datapoint: n.value[o], position: l }
688
695
  )) + ") ", 1)) : f("", !0),
689
- !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", il, L(n(H)(
696
+ !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), v("span", il, A(r(H)(
690
697
  e.value.style.chart.layout.labels.dataLabels.formatter,
691
- i.value[o].value,
692
- n(_)({
698
+ n.value[o].value,
699
+ r(_)({
693
700
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
694
- v: i.value[o].value,
701
+ v: n.value[o].value,
695
702
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
696
703
  r: e.value.style.chart.layout.labels.captions.roundingValue
697
704
  }),
698
- { datapoint: i.value[o], position: l }
705
+ { datapoint: n.value[o], position: l }
699
706
  )), 1)) : f("", !0)
700
707
  ], 4)
701
708
  ], 8, ul)) : f("", !0)
702
709
  ], 64))), 256)),
703
- (s(!0), r($, null, F(E.value, (l, o) => (s(), r("rect", {
704
- onMouseover: (u) => dt(o),
710
+ (s(!0), v($, null, z(E.value, (l, o) => (s(), v("rect", {
711
+ onMouseover: (u) => ct(o),
705
712
  onMouseleave: a[0] || (a[0] = (u) => {
706
- ae.value = !1, R.value = null;
713
+ ae.value = !1, D.value = null;
707
714
  }),
708
715
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
709
716
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -714,10 +721,10 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
714
721
  }, null, 40, vl))), 256)),
715
722
  g(t.$slots, "svg", { svg: N.value }, void 0, !0)
716
723
  ], 14, Ht)) : f("", !0),
717
- t.$slots.watermark ? (s(), r("div", cl, [
718
- g(t.$slots, "watermark", W(q({ isPrinting: n(_e) || n(Ie) })), void 0, !0)
724
+ t.$slots.watermark ? (s(), v("div", cl, [
725
+ g(t.$slots, "watermark", W(q({ isPrinting: r(_e) || r(Ie) })), void 0, !0)
719
726
  ])) : f("", !0),
720
- Q.value ? f("", !0) : (s(), M(n(Qe), {
727
+ Q.value ? f("", !0) : (s(), M(r(Ke), {
721
728
  key: 6,
722
729
  config: {
723
730
  type: "waffle",
@@ -736,28 +743,25 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
736
743
  e.value.style.chart.legend.show ? (s(), M(Et, {
737
744
  key: `legend_${be.value}`,
738
745
  legendSet: G.value,
739
- config: ct.value,
746
+ config: vt.value,
740
747
  onClickMarker: a[1] || (a[1] = ({ legend: l }) => ze(l.uid))
741
748
  }, Ee({
742
749
  item: m(({ legend: l }) => [
743
750
  x("div", {
744
751
  onClick: (o) => l.segregate(),
745
752
  style: K(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
746
- }, [
747
- je(L(l.name) + ": " + L(n(H)(
748
- e.value.style.chart.layout.labels.dataLabels.formatter,
749
- l.value,
750
- n(_)({
751
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
752
- v: l.value,
753
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
754
- r: e.value.style.chart.legend.roundingValue,
755
- isAnimating: B.value
756
- }),
757
- { datapoint: l }
758
- )) + " ", 1),
759
- p.value.includes(l.uid) ? (s(), r("span", pl, " ( - % ) ")) : (s(), r("span", hl, " (" + L(isNaN(l.value / O.value) ? "-" : n(_)({ v: l.value / O.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: B.value })) + ") ", 1))
760
- ], 12, dl)
753
+ }, A(l.name) + A(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + A(e.value.style.chart.legend.showValue ? r(H)(
754
+ e.value.style.chart.layout.labels.dataLabels.formatter,
755
+ l.value,
756
+ r(_)({
757
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
758
+ v: l.value,
759
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
760
+ r: e.value.style.chart.legend.roundingValue,
761
+ isAnimating: V.value
762
+ }),
763
+ { datapoint: l }
764
+ ) : "") + " " + A(e.value.style.chart.legend.showPercentage ? p.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / P.value) ? "-" : r(_)({ v: l.value / P.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: V.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, dl)
761
765
  ]),
762
766
  _: 2
763
767
  }, [
@@ -779,7 +783,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
779
783
  legend: G.value
780
784
  }, void 0, !0)
781
785
  ], 512),
782
- t.$slots.source ? (s(), r("div", {
786
+ t.$slots.source ? (s(), v("div", {
783
787
  key: 7,
784
788
  ref_key: "source",
785
789
  ref: fe,
@@ -787,7 +791,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
787
791
  }, [
788
792
  g(t.$slots, "source", {}, void 0, !0)
789
793
  ], 512)) : f("", !0),
790
- ve(n(Ze), {
794
+ ve(r(Qe), {
791
795
  show: C.value.showTooltip && ae.value && p.value.length < b.dataset.length,
792
796
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
793
797
  color: e.value.style.chart.tooltip.color,
@@ -797,7 +801,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
797
801
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
798
802
  position: e.value.style.chart.tooltip.position,
799
803
  offsetY: e.value.style.chart.tooltip.offsetY,
800
- parent: z.value,
804
+ parent: F.value,
801
805
  content: oe.value,
802
806
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
803
807
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -811,7 +815,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
811
815
  ]),
812
816
  _: 3
813
817
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen"]),
814
- Q.value ? (s(), M(n(Ke), {
818
+ Q.value ? (s(), M(r(Je), {
815
819
  key: 8,
816
820
  hideDetails: "",
817
821
  config: {
@@ -828,7 +832,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
828
832
  }
829
833
  }, {
830
834
  content: m(() => [
831
- (s(), M(n(Ye), {
835
+ (s(), M(r(Xe), {
832
836
  key: `table_${me.value}`,
833
837
  colNames: te.value.colNames,
834
838
  head: te.value.head,
@@ -841,10 +845,10 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
841
845
  x("div", {
842
846
  innerHTML: l,
843
847
  style: { display: "flex", "align-items": "center" }
844
- }, null, 8, fl)
848
+ }, null, 8, hl)
845
849
  ]),
846
850
  td: m(({ td: l }) => [
847
- je(L(l.name || l), 1)
851
+ gt(A(l.name || l), 1)
848
852
  ]),
849
853
  _: 1
850
854
  }, 8, ["colNames", "head", "body", "config", "title"]))
@@ -853,7 +857,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"],
853
857
  }, 8, ["config"])) : f("", !0)
854
858
  ], 46, qt));
855
859
  }
856
- }, Ol = /* @__PURE__ */ Wt(yl, [["__scopeId", "data-v-fd7116e4"]]);
860
+ }, Tl = /* @__PURE__ */ Wt(pl, [["__scopeId", "data-v-7a585273"]]);
857
861
  export {
858
- Ol as default
862
+ Tl as default
859
863
  };