vue-data-ui 3.0.2 → 3.0.3

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 (90) hide show
  1. package/dist/{Arrow-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
  3. package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
  4. package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
  5. package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
  6. package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
  8. package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
  9. package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
  10. package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
  11. package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
  12. package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
  13. package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
  14. package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
  15. package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
  16. package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
  17. package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
  18. package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
  19. package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
  24. package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
  25. package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
  26. package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
  29. package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
  31. package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
  32. package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
  33. package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
  36. package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
  38. package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
  40. package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
  42. package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
  43. package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
  44. package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
  45. package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
  47. package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
  50. package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
  51. package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
  53. package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
  56. package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
  58. package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
  60. package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
  61. package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
  64. package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
  65. package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
  66. package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
  67. package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
  76. package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
  80. package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
  82. package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
  84. package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
  85. package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
  87. package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
  88. package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
  89. package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
  90. package/package.json +1 -1
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as G, useSlots as Ct, computed as f, ref as i, toRefs as $t, watch as ee, shallowRef as We, onMounted as It, onBeforeUnmount as _t, createElementBlock as v, openBlock as n, unref as c, normalizeStyle as te, normalizeClass as je, createBlock as N, createCommentVNode as b, createElementVNode as C, createVNode as fe, createSlots as qe, withCtx as g, renderSlot as y, normalizeProps as W, guardReactiveProps as j, Fragment as $, renderList as F, mergeProps as He, toDisplayString as q, createTextVNode as Tt, nextTick as At } from "vue";
2
- import { u as St, c as Pt, t as Lt, a as Ot, p as V, b as Ft, o as Xe, f as pe, g as Bt, d as zt, k as Y, i as P, X as Nt, s as Vt, x as Mt, F as Dt, e as Rt, v as Et, w as Ut, L as Gt, y as Wt, z as jt } from "./index-B9Ct1B_p.js";
3
- import { t as qt, u as Ht } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ye } from "./useNestedProp-C0gKxLur.js";
5
- import { u as Xt } from "./usePrinter-DcZXg1hH.js";
6
- import { u as Yt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Jt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Kt from "./Title-CntvKJss.js";
9
- import Qt from "./Legend-CQsASoei.js";
10
- import { _ as Zt } from "./Shape-0sW2StrO.js";
11
- import el from "./img-Cv4nScI0.js";
12
- import { u as tl, B as ll } from "./useLoading-D7YHNtLX.js";
13
- import { _ as al } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"], rl = ["stop-color"], il = ["id"], vl = ["x", "y", "height", "width"], cl = ["height", "width"], dl = { key: 0 }, hl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], fl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], pl = { key: 1 }, yl = ["rx", "x", "y", "height", "width", "fill", "filter"], gl = ["textContent", "x", "y", "font-size", "fill", "filter"], ml = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], bl = {
1
+ import { defineAsyncComponent as G, useSlots as $t, computed as p, ref as i, toRefs as It, watch as ee, shallowRef as je, onMounted as _t, onBeforeUnmount as Tt, createElementBlock as v, openBlock as s, unref as c, normalizeStyle as te, normalizeClass as qe, createBlock as F, createCommentVNode as b, createElementVNode as x, createVNode as pe, createSlots as He, withCtx as m, renderSlot as y, normalizeProps as W, guardReactiveProps as j, Fragment as $, renderList as B, mergeProps as Xe, toDisplayString as q, Teleport as At, createTextVNode as St, nextTick as Pt } from "vue";
2
+ import { u as Lt, c as Ot, t as Ft, a as Bt, p as V, b as zt, o as Ye, f as fe, g as Nt, d as Vt, k as Y, i as P, X as Mt, s as Dt, x as Rt, F as Et, e as Ut, v as Gt, w as Wt, L as jt, y as qt, z as Ht } from "./index-DrRiscPm.js";
3
+ import { t as Xt, u as Yt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Je } from "./useNestedProp-BXhArS-K.js";
5
+ import { u as Jt } from "./usePrinter-CZk2ISUm.js";
6
+ import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Qt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Zt from "./Title-CINHji0n.js";
9
+ import el from "./Legend-CevCqVZ5.js";
10
+ import { _ as tl } from "./Shape-BHVN6hj0.js";
11
+ import ll from "./img-CBdOMFyn.js";
12
+ import { u as al, B as ol } from "./useLoading-D7YHNtLX.js";
13
+ import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["stop-color"], cl = ["stop-color"], dl = ["id"], hl = ["x", "y", "height", "width"], pl = ["height", "width"], fl = { key: 0 }, yl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], gl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], ml = { key: 1 }, bl = ["rx", "x", "y", "height", "width", "fill", "filter"], wl = ["textContent", "x", "y", "font-size", "fill", "filter"], kl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], xl = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, wl = ["onClick"], kl = ["innerHTML"], xl = {
17
+ }, Cl = ["id"], $l = ["onClick"], Il = ["innerHTML"], _l = {
18
18
  __name: "vue-ui-waffle",
19
19
  props: {
20
20
  config: {
@@ -31,9 +31,9 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend"],
34
- setup(Je, { expose: Ke, emit: Qe }) {
35
- const Ze = G(() => import("./DataTable-osx68WLA.js")), et = G(() => import("./PenAndPaper-CdXspg5R.js")), tt = G(() => import("./vue-ui-accordion-B31QK9Hj.js")), lt = G(() => import("./Tooltip-DF8e4iB9.js")), at = G(() => import("./UserOptions-DQyIO0ts.js")), ot = G(() => import("./PackageVersion-DZGrOKw5.js")), { vue_ui_waffle: ut } = St(), m = Je, st = Ct(), le = f(() => !!m.dataset && m.dataset.length), k = i(Pt()), nt = i(null), ae = i(!1), oe = i(""), M = i(null), ye = i(0), L = i(null), ge = i(null), me = i(null), be = i(null), we = i(null), ke = i(0), xe = i(0), Ce = i(0), e = i(ne()), { loading: $e, FINAL_DATASET: J, manualLoading: ue } = tl({
36
- ...$t(m),
34
+ setup(Ke, { expose: Qe, emit: Ze }) {
35
+ const et = G(() => import("./DataTable-CWzb1j8d.js")), tt = G(() => import("./PenAndPaper-C_R9vJkU.js")), lt = G(() => import("./vue-ui-accordion-s_m_NJzJ.js")), at = G(() => import("./Tooltip-hfdFRoLp.js")), ot = G(() => import("./UserOptions-r0epwyXR.js")), ut = G(() => import("./PackageVersion-n4qokxnx.js")), { vue_ui_waffle: st } = Lt(), w = Ke, nt = $t(), le = p(() => !!w.dataset && w.dataset.length), g = i(Ot()), rt = i(null), ae = i(!1), oe = i(""), M = i(null), ye = i(0), L = i(null), ge = i(null), me = i(null), be = i(null), we = i(null), ke = i(0), xe = i(0), Ce = i(0), $e = i(!1), e = i(ne()), { loading: Ie, FINAL_DATASET: J, manualLoading: ue } = al({
36
+ ...It(w),
37
37
  FINAL_CONFIG: e,
38
38
  prepareConfig: ne,
39
39
  callback: () => {
@@ -58,7 +58,7 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
58
58
  color: "#CACACA"
59
59
  }
60
60
  ],
61
- skeletonConfig: Lt({
61
+ skeletonConfig: Ft({
62
62
  defaultConfig: e.value,
63
63
  userConfig: {
64
64
  useCustomCells: !1,
@@ -84,45 +84,45 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
84
84
  }
85
85
  }
86
86
  })
87
- }), { userOptionsVisible: se, setUserOptionsVisibility: Ie, keepUserOptionState: _e } = Yt({ config: e.value }), { svgRef: Te } = Jt({ config: e.value.style.chart.title });
87
+ }), { userOptionsVisible: se, setUserOptionsVisibility: _e, keepUserOptionState: Te } = Kt({ config: e.value }), { svgRef: Ae } = Qt({ config: e.value.style.chart.title });
88
88
  function ne() {
89
- const t = Ye({
90
- userConfig: m.config,
91
- defaultConfig: ut
89
+ const t = Je({
90
+ userConfig: w.config,
91
+ defaultConfig: st
92
92
  });
93
93
  return t.theme ? {
94
- ...Ye({
95
- userConfig: Ft.vue_ui_waffle[t.theme] || m.config,
94
+ ...Je({
95
+ userConfig: zt.vue_ui_waffle[t.theme] || w.config,
96
96
  defaultConfig: t
97
97
  }),
98
- customPalette: Ot[t.theme] || V
98
+ customPalette: Bt[t.theme] || V
99
99
  } : t;
100
100
  }
101
- ee(() => m.config, (t) => {
102
- $e.value || (e.value = ne()), se.value = !e.value.userOptions.showOnChartHover, Se(), ke.value += 1, xe.value += 1, Ce.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.chart.tooltip.show;
101
+ ee(() => w.config, (t) => {
102
+ Ie.value || (e.value = ne()), se.value = !e.value.userOptions.showOnChartHover, Pe(), ke.value += 1, xe.value += 1, Ce.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
103
103
  }, { deep: !0 });
104
- const O = We(null), D = We(null), Ae = f(() => !!e.value.debug);
105
- function Se() {
106
- if (Xe(m.dataset) ? (pe({
104
+ const O = je(null), D = je(null), Se = p(() => !!e.value.debug);
105
+ function Pe() {
106
+ if (Ye(w.dataset) ? (fe({
107
107
  componentName: "VueUiWaffle",
108
108
  type: "dataset",
109
- debug: Ae.value
110
- }), le.value = !1, ue.value = !0) : m.dataset.forEach((t, a) => {
111
- Bt({
109
+ debug: Se.value
110
+ }), le.value = !1, ue.value = !0) : w.dataset.forEach((t, a) => {
111
+ Nt({
112
112
  datasetObject: t,
113
113
  requiredAttributes: ["name", "values"]
114
114
  }).forEach((l) => {
115
- pe({
115
+ fe({
116
116
  componentName: "VueUiWaffle",
117
117
  type: "datasetSerieAttribute",
118
118
  property: l,
119
119
  index: a,
120
- debug: Ae.value
120
+ debug: Se.value
121
121
  });
122
122
  });
123
- }), Xe(m.dataset) || (ue.value = e.value.loading), e.value.responsive) {
124
- const t = qt(() => {
125
- const { width: a, height: l } = Ht({
123
+ }), Ye(w.dataset) || (ue.value = e.value.loading), e.value.responsive) {
124
+ const t = Xt(() => {
125
+ const { width: a, height: l } = Yt({
126
126
  chart: L.value,
127
127
  title: e.value.style.chart.title.text ? ge.value : null,
128
128
  legend: e.value.style.chart.legend.show ? me.value : null,
@@ -130,32 +130,32 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
130
130
  noTitle: we.value
131
131
  });
132
132
  requestAnimationFrame(() => {
133
- B.value.width = a, B.value.height = l, I.value.width = a, I.value.height = l;
133
+ z.value.width = a, z.value.height = l, I.value.width = a, I.value.height = l;
134
134
  });
135
135
  });
136
136
  O.value && (D.value && O.value.unobserve(D.value), O.value.disconnect()), O.value = new ResizeObserver(t), D.value = L.value.parentNode, O.value.observe(D.value);
137
137
  }
138
138
  }
139
- It(() => {
140
- Se();
141
- }), _t(() => {
139
+ _t(() => {
140
+ $e.value = !0, Pe();
141
+ }), Tt(() => {
142
142
  O.value && (D.value && O.value.unobserve(D.value), O.value.disconnect());
143
143
  });
144
- const { isPrinting: Pe, isImaging: Le, generatePdf: Oe, generateImage: Fe } = Xt({
145
- elementId: `vue-ui-waffle_${k.value}`,
144
+ const { isPrinting: Le, isImaging: Oe, generatePdf: Fe, generateImage: Be } = Jt({
145
+ elementId: `vue-ui-waffle_${g.value}`,
146
146
  fileName: e.value.style.chart.title.text || "vue-ui-waffle",
147
147
  options: e.value.userOptions.print
148
- }), rt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Be = f(() => zt(e.value.customPalette)), x = i({
148
+ }), it = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), ze = p(() => Vt(e.value.customPalette)), C = i({
149
149
  showTable: e.value.table.show,
150
150
  showTooltip: e.value.style.chart.tooltip.show
151
151
  });
152
152
  ee(e, () => {
153
- x.value = {
153
+ C.value = {
154
154
  showTable: e.value.table.show,
155
155
  showTooltip: e.value.style.chart.tooltip.show
156
156
  };
157
157
  }, { immediate: !0 });
158
- const B = i({
158
+ const z = i({
159
159
  height: 512,
160
160
  width: 512
161
161
  }), I = i({
@@ -163,13 +163,13 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
163
163
  left: 0,
164
164
  height: 512,
165
165
  width: 512
166
- }), _ = f(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), T = f(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), it = f(() => Math.max(1e-4, I.value.width / e.value.style.chart.layout.grid.size)), ze = f(() => Math.max(1e-4, I.value.height / e.value.style.chart.layout.grid.size));
167
- function Ne(t) {
168
- const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, he) => w + he, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), s = o.map((w) => w % 1);
169
- let d = a - u.reduce((w, he) => w + he, 0);
166
+ }), _ = p(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), T = p(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), vt = p(() => Math.max(1e-4, I.value.width / e.value.style.chart.layout.grid.size)), Ne = p(() => Math.max(1e-4, I.value.height / e.value.style.chart.layout.grid.size));
167
+ function Ve(t) {
168
+ const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((k, he) => k + he, 0), o = t.map((k) => k / l * a), u = o.map(Math.floor), n = o.map((k) => k % 1);
169
+ let d = a - u.reduce((k, he) => k + he, 0);
170
170
  for (; d > 0; ) {
171
- let w = s.indexOf(Math.max(...s));
172
- u[w] += 1, s[w] = 0, d -= 1;
171
+ let k = n.indexOf(Math.max(...n));
172
+ u[k] += 1, n[k] = 0, d -= 1;
173
173
  }
174
174
  return u;
175
175
  }
@@ -177,68 +177,68 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
177
177
  function re() {
178
178
  return H.value = J.value.flatMap((t) => t.values.reduce((a, l) => a + l, 0)).reduce((t, a) => t + a, 0) === 0, J.value.map((t, a) => ({
179
179
  ...t,
180
- color: Rt(t.color) || Be.value[a] || V[a] || V[a % V.length],
180
+ color: Ut(t.color) || ze.value[a] || V[a] || V[a % V.length],
181
181
  uid: `serie_${a}`,
182
182
  absoluteIndex: a
183
183
  }));
184
184
  }
185
- const ie = f(() => re()), h = i(ie.value);
186
- ee(() => m.dataset, (t) => {
185
+ const ie = p(() => re()), h = i(ie.value);
186
+ ee(() => w.dataset, (t) => {
187
187
  Array.isArray(t) && t.length > 0 && (ue.value = !1);
188
- }, { immediate: !0 }), ee(() => m.dataset, (t) => {
188
+ }, { immediate: !0 }), ee(() => w.dataset, (t) => {
189
189
  h.value = re();
190
190
  }, { deep: !0 });
191
- const vt = f(() => {
192
- const t = h.value.filter((a, l) => !p.value.includes(a.uid)).map((a, l) => H.value ? 1 : (a.values || []).reduce((o, u) => o + u, 0));
193
- return Ne(t);
194
- }), ct = f(() => {
191
+ const ct = p(() => {
192
+ const t = h.value.filter((a, l) => !f.value.includes(a.uid)).map((a, l) => H.value ? 1 : (a.values || []).reduce((o, u) => o + u, 0));
193
+ return Ve(t);
194
+ }), dt = p(() => {
195
195
  const t = h.value.map((a, l) => H.value ? 1 : (a.values || []).reduce((o, u) => o + u));
196
- return Ne(t);
197
- }), X = f(() => (J.value.forEach((t, a) => {
198
- [null, void 0].includes(t.values) && pe({
196
+ return Ve(t);
197
+ }), X = p(() => (J.value.forEach((t, a) => {
198
+ [null, void 0].includes(t.values) && fe({
199
199
  componentName: "VueUiWaffle",
200
200
  type: "datasetSerieAttribute",
201
201
  property: "values (number[])",
202
202
  index: a
203
203
  });
204
- }), h.value.filter((t, a) => !p.value.includes(t.uid)).map((t, a) => ({
204
+ }), h.value.filter((t, a) => !f.value.includes(t.uid)).map((t, a) => ({
205
205
  absoluteIndex: t.absoluteIndex,
206
206
  uid: t.uid,
207
207
  name: t.name,
208
208
  color: t.color,
209
209
  value: (t.values || []).reduce((l, o) => l + o, 0),
210
210
  absoluteValues: t.values || [],
211
- proportion: vt.value[a]
212
- })))), dt = f(() => h.value.map((t, a) => ({
211
+ proportion: ct.value[a]
212
+ })))), ht = p(() => h.value.map((t, a) => ({
213
213
  absoluteIndex: t.absoluteIndex,
214
214
  uid: t.uid,
215
215
  name: t.name,
216
216
  color: t.color,
217
217
  value: (t.values || []).reduce((l, o) => l + o, 0),
218
218
  absoluteValues: t.values || [],
219
- proportion: ct.value[a]
219
+ proportion: dt.value[a]
220
220
  })));
221
- function ht() {
222
- return dt.value.map((t) => ({
221
+ function pt() {
222
+ return ht.value.map((t) => ({
223
223
  name: t.name,
224
224
  color: t.color,
225
225
  value: t.value,
226
226
  proportion: t.proportion
227
227
  }));
228
228
  }
229
- const ft = f(() => {
229
+ const ft = p(() => {
230
230
  let t = 0;
231
231
  return X.value.map((a, l) => {
232
- const o = t, u = o + a.proportion, s = [];
232
+ const o = t, u = o + a.proportion, n = [];
233
233
  for (let d = Math.floor(o); d < Math.floor(u); d += 1)
234
- s.push(d);
234
+ n.push(d);
235
235
  return t = u, {
236
236
  ...a,
237
237
  start: o,
238
- rects: s
238
+ rects: n
239
239
  };
240
240
  });
241
- }), r = f(() => ft.value.flatMap((t, a) => t.rects.map((l, o) => ({
241
+ }), r = p(() => ft.value.flatMap((t, a) => t.rects.map((l, o) => ({
242
242
  isFirst: o === 0,
243
243
  isLongEnough: l.length > 2,
244
244
  name: t.name,
@@ -251,7 +251,7 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
251
251
  }))).map((t, a) => ({
252
252
  ...t,
253
253
  isAbsoluteFirst: a % e.value.style.chart.layout.grid.size === 0
254
- }))), R = f(() => {
254
+ }))), R = p(() => {
255
255
  const t = [];
256
256
  for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
257
257
  for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
@@ -262,42 +262,42 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
262
262
  y: (e.value.style.chart.layout.grid.vertical ? l : a) * (T.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
263
263
  });
264
264
  return t;
265
- }), p = i([]), z = i(!1), Ve = i(null), Me = i(null);
266
- function De(t) {
265
+ }), f = i([]), N = i(!1), Me = i(null), De = i(null);
266
+ function Re(t) {
267
267
  if (H.value) return;
268
268
  if (!e.value.useAnimation) {
269
- p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < E.value.length - 1 && E.value.length > 1 && p.value.push(t);
269
+ f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < E.value.length - 1 && E.value.length > 1 && f.value.push(t);
270
270
  return;
271
271
  }
272
- const a = ie.value.find((u) => u.uid === t).values.reduce((u, s) => u + s, 0), l = h.value.find((u) => u.uid === t).values.reduce((u, s) => u + s, 0);
272
+ const a = ie.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0), l = h.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
273
273
  let o = l;
274
274
  if (!(l === 0 && a === 0)) {
275
- if (p.value.includes(t)) {
276
- let s = function() {
277
- o > u ? (cancelAnimationFrame(Ve.value), h.value = h.value.map((d, w) => d.uid === t ? {
275
+ if (f.value.includes(t)) {
276
+ let n = function() {
277
+ o > u ? (cancelAnimationFrame(Me.value), h.value = h.value.map((d, k) => d.uid === t ? {
278
278
  ...d,
279
279
  values: [u]
280
- } : d), z.value = !1) : (z.value = !0, o += u * 0.025, h.value = h.value.map((d, w) => d.uid === t ? {
280
+ } : d), N.value = !1) : (N.value = !0, o += u * 0.025, h.value = h.value.map((d, k) => d.uid === t ? {
281
281
  ...d,
282
282
  values: [o]
283
- } : d), Ve.value = requestAnimationFrame(s));
283
+ } : d), Me.value = requestAnimationFrame(n));
284
284
  };
285
- p.value = p.value.filter((d) => d !== t);
285
+ f.value = f.value.filter((d) => d !== t);
286
286
  const u = a;
287
- s();
288
- } else if (p.value.length < E.value.length - 1 && E.value.length > 1) {
287
+ n();
288
+ } else if (f.value.length < E.value.length - 1 && E.value.length > 1) {
289
289
  let u = function() {
290
- o < l / 100 ? (cancelAnimationFrame(Me.value), p.value.push(t), h.value = h.value.map((s, d) => s.uid === t ? {
291
- ...s,
290
+ o < l / 100 ? (cancelAnimationFrame(De.value), f.value.push(t), h.value = h.value.map((n, d) => n.uid === t ? {
291
+ ...n,
292
292
  values: [0]
293
- } : s), z.value = !1) : (z.value = !0, o /= 1.15, h.value = h.value.map((s) => s.uid === t ? {
294
- ...s,
293
+ } : n), N.value = !1) : (N.value = !0, o /= 1.15, h.value = h.value.map((n) => n.uid === t ? {
294
+ ...n,
295
295
  values: [o]
296
- } : s), Me.value = requestAnimationFrame(u));
296
+ } : n), De.value = requestAnimationFrame(u));
297
297
  };
298
298
  u();
299
299
  }
300
- bt("selectLegend", X.value.map((u) => ({
300
+ wt("selectLegend", X.value.map((u) => ({
301
301
  name: u.name,
302
302
  color: u.color,
303
303
  value: u.value,
@@ -305,36 +305,36 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
305
305
  })));
306
306
  }
307
307
  }
308
- const E = f(() => h.value.map((t, a) => ({
308
+ const E = p(() => h.value.map((t, a) => ({
309
309
  name: t.name,
310
- color: t.color || Be[a] || V[a] || V[a % V.length],
310
+ color: t.color || ze[a] || V[a] || V[a % V.length],
311
311
  value: (t.values || []).reduce((l, o) => l + o, 0),
312
312
  uid: t.uid,
313
313
  shape: "square"
314
314
  })).map((t) => ({
315
315
  ...t,
316
316
  proportion: t.value / h.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
317
- opacity: p.value.includes(t.uid) ? 0.5 : 1,
318
- segregate: () => De(t.uid),
319
- isSegregated: p.value.includes(t.uid)
320
- }))), pt = f(() => ({
317
+ opacity: f.value.includes(t.uid) ? 0.5 : 1,
318
+ segregate: () => Re(t.uid),
319
+ isSegregated: f.value.includes(t.uid)
320
+ }))), yt = p(() => ({
321
321
  cy: "waffle-div-legend",
322
322
  backgroundColor: e.value.style.chart.legend.backgroundColor,
323
323
  color: e.value.style.chart.legend.color,
324
324
  fontSize: e.value.style.chart.legend.fontSize,
325
325
  paddingBottom: 12,
326
326
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
327
- })), A = f(() => X.value.map((t) => t.value).reduce((t, a) => t + a, 0)), ve = i(null), ce = i(null);
328
- function yt(t) {
327
+ })), A = p(() => X.value.map((t) => t.value).reduce((t, a) => t + a, 0)), ve = i(null), ce = i(null);
328
+ function gt(t) {
329
329
  const a = r.value[t];
330
330
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: a.serieIndex });
331
331
  }
332
- function gt(t) {
332
+ function mt(t) {
333
333
  const a = r.value[t];
334
334
  e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.serieIndex }), ce.value = null, ae.value = !1, M.value = null;
335
335
  }
336
- function mt(t) {
337
- if (p.value.length === m.dataset.length) return;
336
+ function bt(t) {
337
+ if (f.value.length === w.dataset.length) return;
338
338
  const a = r.value[t];
339
339
  ve.value = {
340
340
  datapoint: a,
@@ -343,7 +343,7 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
343
343
  config: e.value
344
344
  }, e.value.events.datapointEnter && ce.value !== a.serieIndex && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.serieIndex }), ce.value = a.serieIndex, ae.value = !0, M.value = r.value[t].serieIndex;
345
345
  const l = e.value.style.chart.tooltip.customFormat;
346
- if (Wt(l) && jt(() => l({
346
+ if (qt(l) && Ht(() => l({
347
347
  seriesIndex: r.value[t].absoluteIndex,
348
348
  datapoint: a,
349
349
  series: h.value,
@@ -357,7 +357,7 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
357
357
  });
358
358
  else {
359
359
  let o = "";
360
- 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}" />${st.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>${Y(
360
+ 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}" />${nt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${g.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Y(
361
361
  e.value.style.chart.layout.labels.dataLabels.formatter,
362
362
  a.value,
363
363
  P({
@@ -382,7 +382,7 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
382
382
  oe.value = o;
383
383
  }
384
384
  }
385
- const bt = Qe, S = f(() => {
385
+ const wt = Ze, S = p(() => {
386
386
  const t = X.value.map((l) => ({
387
387
  name: l.name,
388
388
  color: l.color
@@ -390,12 +390,12 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
390
390
  return { head: t, body: a };
391
391
  });
392
392
  function K(t) {
393
- return e.value.useBlurOnHover && ![null, void 0].includes(M.value) && M.value !== t ? `url(#blur_${k.value})` : "";
393
+ return e.value.useBlurOnHover && ![null, void 0].includes(M.value) && M.value !== t ? `url(#blur_${g.value})` : "";
394
394
  }
395
- function wt(t, a) {
396
- return e.value.style.chart.layout.labels.captions.show ? r.value.length && !z.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && a.position < e.value.style.chart.layout.grid.size - 2 || r.value[t].isAbsoluteFirst && t % e.value.style.chart.layout.grid.size === 0 && r.value[t].absoluteStartIndex) : !1;
395
+ function kt(t, a) {
396
+ return e.value.style.chart.layout.labels.captions.show ? r.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && a.position < e.value.style.chart.layout.grid.size - 2 || r.value[t].isAbsoluteFirst && t % e.value.style.chart.layout.grid.size === 0 && r.value[t].absoluteStartIndex) : !1;
397
397
  }
398
- function kt(t, a = null) {
398
+ function xt(t, a = null) {
399
399
  const l = Y(
400
400
  e.value.style.chart.layout.labels.dataLabels.formatter,
401
401
  r.value[t].value,
@@ -406,19 +406,19 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
406
406
  r: e.value.style.chart.layout.labels.captions.roundingValue
407
407
  }),
408
408
  { datapoint: r.value[t], position: a }
409
- ), o = P({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? Gt({ source: r.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), s = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
409
+ ), o = P({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? jt({ source: r.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), n = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
410
410
  let d = "";
411
- return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${l})` : e.value.style.chart.layout.labels.captions.showPercentage && !e.value.style.chart.layout.labels.captions.showValue ? d = o : !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue && (d = l), `${s}${d}`;
411
+ return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${l})` : e.value.style.chart.layout.labels.captions.showPercentage && !e.value.style.chart.layout.labels.captions.showValue ? d = o : !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue && (d = l), `${n}${d}`;
412
412
  }
413
- function Re(t = null) {
414
- At(() => {
415
- const a = S.value.head.map((u, s) => [[
413
+ function Ee(t = null) {
414
+ Pt(() => {
415
+ const a = S.value.head.map((u, n) => [[
416
416
  u.name
417
- ], [S.value.body[s]], [isNaN(S.value.body[s] / A.value) ? "-" : S.value.body[s] / A.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Et(l);
418
- t ? t(o) : Ut({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
417
+ ], [S.value.body[n]], [isNaN(S.value.body[n] / A.value) ? "-" : S.value.body[n] / A.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Gt(l);
418
+ t ? t(o) : Wt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
419
419
  });
420
420
  }
421
- const Q = f(() => {
421
+ const Q = p(() => {
422
422
  const t = [
423
423
  ' <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>',
424
424
  Y(
@@ -432,23 +432,23 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
432
432
  })
433
433
  ),
434
434
  "100%"
435
- ], a = S.value.head.map((u, s) => [
435
+ ], a = S.value.head.map((u, n) => [
436
436
  {
437
437
  color: u.color,
438
438
  name: u.name
439
439
  },
440
440
  Y(
441
441
  e.value.style.chart.layout.labels.dataLabels.formatter,
442
- S.value.body[s],
442
+ S.value.body[n],
443
443
  P({
444
444
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
445
- v: S.value.body[s],
445
+ v: S.value.body[n],
446
446
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
447
447
  r: e.value.table.td.roundingValue
448
448
  })
449
449
  ),
450
- isNaN(S.value.body[s] / A.value) ? "-" : P({
451
- v: S.value.body[s] / A.value * 100,
450
+ isNaN(S.value.body[n] / A.value) ? "-" : P({
451
+ v: S.value.body[n] / A.value * 100,
452
452
  s: "%",
453
453
  r: e.value.table.td.roundingPercentage
454
454
  })
@@ -477,72 +477,72 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
477
477
  colNames: o
478
478
  };
479
479
  }), U = i(!1);
480
- function Ee(t) {
480
+ function Ue(t) {
481
481
  U.value = t, ye.value += 1;
482
482
  }
483
- function Ue() {
484
- x.value.showTable = !x.value.showTable;
485
- }
486
483
  function Ge() {
487
- x.value.showTooltip = !x.value.showTooltip;
484
+ C.value.showTable = !C.value.showTable;
485
+ }
486
+ function We() {
487
+ C.value.showTooltip = !C.value.showTooltip;
488
488
  }
489
489
  const Z = i(!1);
490
490
  function de() {
491
491
  Z.value = !Z.value;
492
492
  }
493
- async function xt({ scale: t = 2 } = {}) {
493
+ async function Ct({ scale: t = 2 } = {}) {
494
494
  if (!L.value) return;
495
- const { width: a, height: l } = L.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: s } = await el({ domElement: L.value, base64: !0, img: !0, scale: t });
495
+ const { width: a, height: l } = L.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: n } = await ll({ domElement: L.value, base64: !0, img: !0, scale: t });
496
496
  return {
497
497
  imageUri: u,
498
- base64: s,
498
+ base64: n,
499
499
  title: e.value.style.chart.title.text,
500
500
  width: a,
501
501
  height: l,
502
502
  aspectRatio: o
503
503
  };
504
504
  }
505
- return Ke({
506
- getData: ht,
507
- getImage: xt,
508
- generatePdf: Oe,
509
- generateCsv: Re,
510
- generateImage: Fe,
511
- toggleTable: Ue,
512
- toggleTooltip: Ge,
505
+ return Qe({
506
+ getData: pt,
507
+ getImage: Ct,
508
+ generatePdf: Fe,
509
+ generateCsv: Ee,
510
+ generateImage: Be,
511
+ toggleTable: Ge,
512
+ toggleTooltip: We,
513
513
  toggleAnnotator: de,
514
- toggleFullscreen: Ee
515
- }), (t, a) => (n(), v("div", {
516
- class: je(`vue-ui-waffle ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
514
+ toggleFullscreen: Ue
515
+ }), (t, a) => (s(), v("div", {
516
+ class: qe(`vue-ui-waffle ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
517
517
  ref_key: "waffleChart",
518
518
  ref: L,
519
- id: `vue-ui-waffle_${k.value}`,
519
+ id: `vue-ui-waffle_${g.value}`,
520
520
  style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
521
- onMouseenter: a[2] || (a[2] = () => c(Ie)(!0)),
522
- onMouseleave: a[3] || (a[3] = () => c(Ie)(!1))
521
+ onMouseenter: a[2] || (a[2] = () => c(_e)(!0)),
522
+ onMouseleave: a[3] || (a[3] = () => c(_e)(!1))
523
523
  }, [
524
- e.value.userOptions.buttons.annotator ? (n(), N(c(et), {
524
+ e.value.userOptions.buttons.annotator ? (s(), F(c(tt), {
525
525
  key: 0,
526
- svgRef: c(Te),
526
+ svgRef: c(Ae),
527
527
  backgroundColor: e.value.style.chart.backgroundColor,
528
528
  color: e.value.style.chart.color,
529
529
  active: Z.value,
530
530
  onClose: de
531
531
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
532
- rt.value ? (n(), v("div", {
532
+ it.value ? (s(), v("div", {
533
533
  key: 1,
534
534
  ref_key: "noTitle",
535
535
  ref: we,
536
536
  class: "vue-data-ui-no-title-space",
537
537
  style: "height:36px; width: 100%;background:transparent"
538
538
  }, null, 512)) : b("", !0),
539
- e.value.style.chart.title.text ? (n(), v("div", {
539
+ e.value.style.chart.title.text ? (s(), v("div", {
540
540
  key: 2,
541
541
  ref_key: "chartTitle",
542
542
  ref: ge,
543
543
  style: "width:100%;background:transparent;padding-bottom:12px"
544
544
  }, [
545
- (n(), N(Kt, {
545
+ (s(), F(Zt, {
546
546
  key: `title_${ke.value}`,
547
547
  config: {
548
548
  title: {
@@ -556,15 +556,18 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
556
556
  }
557
557
  }, null, 8, ["config"]))
558
558
  ], 512)) : b("", !0),
559
- e.value.userOptions.show && le.value && (c(_e) || c(se)) ? (n(), N(c(at), {
559
+ x("div", {
560
+ id: `legend-top-${g.value}`
561
+ }, null, 8, nl),
562
+ e.value.userOptions.show && le.value && (c(Te) || c(se)) ? (s(), F(c(ot), {
560
563
  ref_key: "details",
561
- ref: nt,
564
+ ref: rt,
562
565
  key: `user_options_${ye.value}`,
563
566
  backgroundColor: e.value.style.chart.backgroundColor,
564
567
  color: e.value.style.chart.color,
565
- isPrinting: c(Pe),
566
- isImaging: c(Le),
567
- uid: k.value,
568
+ isPrinting: c(Le),
569
+ isImaging: c(Oe),
570
+ uid: g.value,
568
571
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
569
572
  hasPdf: e.value.userOptions.buttons.pdf,
570
573
  hasImg: e.value.userOptions.buttons.img,
@@ -572,7 +575,7 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
572
575
  hasTable: e.value.userOptions.buttons.table,
573
576
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
574
577
  isFullscreen: U.value,
575
- isTooltip: x.value.showTooltip,
578
+ isTooltip: C.value.showTooltip,
576
579
  titles: { ...e.value.userOptions.buttonTitles },
577
580
  chartElement: L.value,
578
581
  position: e.value.userOptions.position,
@@ -580,130 +583,130 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
580
583
  isAnnotation: Z.value,
581
584
  callbacks: e.value.userOptions.callbacks,
582
585
  printScale: e.value.userOptions.print.scale,
583
- onToggleFullscreen: Ee,
584
- onGeneratePdf: c(Oe),
585
- onGenerateCsv: Re,
586
- onGenerateImage: c(Fe),
587
- onToggleTable: Ue,
588
- onToggleTooltip: Ge,
586
+ onToggleFullscreen: Ue,
587
+ onGeneratePdf: c(Fe),
588
+ onGenerateCsv: Ee,
589
+ onGenerateImage: c(Be),
590
+ onToggleTable: Ge,
591
+ onToggleTooltip: We,
589
592
  onToggleAnnotator: de,
590
593
  style: te({
591
- visibility: c(_e) ? c(se) ? "visible" : "hidden" : "visible"
594
+ visibility: c(Te) ? c(se) ? "visible" : "hidden" : "visible"
592
595
  })
593
- }, qe({ _: 2 }, [
596
+ }, He({ _: 2 }, [
594
597
  t.$slots.menuIcon ? {
595
598
  name: "menuIcon",
596
- fn: g(({ isOpen: l, color: o }) => [
599
+ fn: m(({ isOpen: l, color: o }) => [
597
600
  y(t.$slots, "menuIcon", W(j({ isOpen: l, color: o })), void 0, !0)
598
601
  ]),
599
602
  key: "0"
600
603
  } : void 0,
601
604
  t.$slots.optionTooltip ? {
602
605
  name: "optionTooltip",
603
- fn: g(() => [
606
+ fn: m(() => [
604
607
  y(t.$slots, "optionTooltip", {}, void 0, !0)
605
608
  ]),
606
609
  key: "1"
607
610
  } : void 0,
608
611
  t.$slots.optionPdf ? {
609
612
  name: "optionPdf",
610
- fn: g(() => [
613
+ fn: m(() => [
611
614
  y(t.$slots, "optionPdf", {}, void 0, !0)
612
615
  ]),
613
616
  key: "2"
614
617
  } : void 0,
615
618
  t.$slots.optionCsv ? {
616
619
  name: "optionCsv",
617
- fn: g(() => [
620
+ fn: m(() => [
618
621
  y(t.$slots, "optionCsv", {}, void 0, !0)
619
622
  ]),
620
623
  key: "3"
621
624
  } : void 0,
622
625
  t.$slots.optionImg ? {
623
626
  name: "optionImg",
624
- fn: g(() => [
627
+ fn: m(() => [
625
628
  y(t.$slots, "optionImg", {}, void 0, !0)
626
629
  ]),
627
630
  key: "4"
628
631
  } : void 0,
629
632
  t.$slots.optionTable ? {
630
633
  name: "optionTable",
631
- fn: g(() => [
634
+ fn: m(() => [
632
635
  y(t.$slots, "optionTable", {}, void 0, !0)
633
636
  ]),
634
637
  key: "5"
635
638
  } : void 0,
636
639
  t.$slots.optionFullscreen ? {
637
640
  name: "optionFullscreen",
638
- fn: g(({ toggleFullscreen: l, isFullscreen: o }) => [
641
+ fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
639
642
  y(t.$slots, "optionFullscreen", W(j({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
640
643
  ]),
641
644
  key: "6"
642
645
  } : void 0,
643
646
  t.$slots.optionAnnotator ? {
644
647
  name: "optionAnnotator",
645
- fn: g(({ toggleAnnotator: l, isAnnotator: o }) => [
648
+ fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
646
649
  y(t.$slots, "optionAnnotator", W(j({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
647
650
  ]),
648
651
  key: "7"
649
652
  } : void 0
650
653
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
651
- (n(), v("svg", {
654
+ (s(), v("svg", {
652
655
  ref_key: "svgRef",
653
- ref: Te,
654
- xmlns: c(Nt),
655
- class: je({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
656
- viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
656
+ ref: Ae,
657
+ xmlns: c(Mt),
658
+ class: qe({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
659
+ viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
657
660
  style: te(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
658
661
  }, [
659
- fe(c(ot)),
660
- C("defs", null, [
661
- (n(!0), v($, null, F(r.value, (l, o) => (n(), v("radialGradient", {
662
+ pe(c(ut)),
663
+ x("defs", null, [
664
+ (s(!0), v($, null, B(r.value, (l, o) => (s(), v("radialGradient", {
662
665
  cx: "50%",
663
666
  cy: "50%",
664
667
  r: "50%",
665
668
  fx: "50%",
666
669
  fy: "50%",
667
- id: `gradient_${k.value}_${o}`
670
+ id: `gradient_${g.value}_${o}`
668
671
  }, [
669
- C("stop", {
672
+ x("stop", {
670
673
  offset: "0%",
671
- "stop-color": c(Vt)(c(Mt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
672
- }, null, 8, nl),
673
- C("stop", {
674
+ "stop-color": c(Dt)(c(Rt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
675
+ }, null, 8, vl),
676
+ x("stop", {
674
677
  offset: "100%",
675
678
  "stop-color": l.color
676
- }, null, 8, rl)
677
- ], 8, sl))), 256))
679
+ }, null, 8, cl)
680
+ ], 8, il))), 256))
678
681
  ]),
679
- C("defs", null, [
680
- C("filter", {
681
- id: `blur_${k.value}`,
682
+ x("defs", null, [
683
+ x("filter", {
684
+ id: `blur_${g.value}`,
682
685
  x: "-50%",
683
686
  y: "-50%",
684
687
  width: "200%",
685
688
  height: "200%"
686
689
  }, [...a[4] || (a[4] = [
687
- C("feGaussianBlur", {
690
+ x("feGaussianBlur", {
688
691
  in: "SourceGraphic",
689
692
  stdDeviation: 2
690
693
  }, null, -1),
691
- C("feColorMatrix", {
694
+ x("feColorMatrix", {
692
695
  type: "saturate",
693
696
  values: "0"
694
697
  }, null, -1)
695
- ])], 8, il)
698
+ ])], 8, dl)
696
699
  ]),
697
- e.value.useCustomCells && r.value.length ? (n(!0), v($, { key: 0 }, F(R.value, (l, o) => (n(), v("foreignObject", {
700
+ e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 }, B(R.value, (l, o) => (s(), v("foreignObject", {
698
701
  x: l.x,
699
702
  y: l.y,
700
703
  height: T.value <= 0 ? 1e-4 : T.value,
701
704
  width: _.value <= 0 ? 1e-4 : _.value,
702
705
  class: "vue-ui-waffle-custom-cell-foreignObject"
703
706
  }, [
704
- y(t.$slots, "cell", He({ ref_for: !0 }, { cell: { ...l, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(M.value) ? !0 : r.value[o].serieIndex === M.value }), void 0, !0)
705
- ], 8, vl))), 256)) : b("", !0),
706
- !r.value.length && !e.value.useCustomCells ? (n(), v("rect", {
707
+ y(t.$slots, "cell", Xe({ ref_for: !0 }, { cell: { ...l, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(M.value) ? !0 : r.value[o].serieIndex === M.value }), void 0, !0)
708
+ ], 8, hl))), 256)) : b("", !0),
709
+ !r.value.length && !e.value.useCustomCells ? (s(), v("rect", {
707
710
  key: 1,
708
711
  x: 12,
709
712
  y: 12,
@@ -712,13 +715,13 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
712
715
  rx: 3,
713
716
  fill: "none",
714
717
  stroke: "black"
715
- }, null, 8, cl)) : r.value.length && !e.value.useCustomCells ? (n(), v($, { key: 2 }, [
716
- t.$slots.pattern ? (n(), v("g", dl, [
717
- (n(!0), v($, null, F(ie.value, (l) => (n(), v("defs", null, [
718
- y(t.$slots, "pattern", He({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` }), void 0, !0)
718
+ }, null, 8, pl)) : r.value.length && !e.value.useCustomCells ? (s(), v($, { key: 2 }, [
719
+ t.$slots.pattern ? (s(), v("g", fl, [
720
+ (s(!0), v($, null, B(ie.value, (l) => (s(), v("defs", null, [
721
+ y(t.$slots, "pattern", Xe({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${g.value}_${l.absoluteIndex}` }), void 0, !0)
719
722
  ]))), 256))
720
723
  ])) : b("", !0),
721
- (n(!0), v($, null, F(R.value, (l, o) => (n(), v("rect", {
724
+ (s(!0), v($, null, B(R.value, (l, o) => (s(), v("rect", {
722
725
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
723
726
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
724
727
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -728,115 +731,123 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
728
731
  stroke: e.value.style.chart.layout.rect.stroke,
729
732
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
730
733
  filter: K(r.value[o].serieIndex)
731
- }, null, 8, hl))), 256)),
732
- (n(!0), v($, null, F(R.value, (l, o) => (n(), v("rect", {
734
+ }, null, 8, yl))), 256)),
735
+ (s(!0), v($, null, B(R.value, (l, o) => (s(), v("rect", {
733
736
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
734
737
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
735
738
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
736
739
  height: T.value <= 0 ? 1e-4 : T.value,
737
740
  width: _.value <= 0 ? 1e-4 : _.value,
738
- fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${o})` : r.value[o].color,
741
+ fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${g.value}_${o})` : r.value[o].color,
739
742
  stroke: e.value.style.chart.layout.rect.stroke,
740
743
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
741
744
  filter: K(r.value[o].serieIndex)
742
- }, null, 8, fl))), 256)),
743
- t.$slots.pattern ? (n(), v("g", pl, [
744
- (n(!0), v($, null, F(R.value, (l, o) => (n(), v("rect", {
745
+ }, null, 8, gl))), 256)),
746
+ t.$slots.pattern ? (s(), v("g", ml, [
747
+ (s(!0), v($, null, B(R.value, (l, o) => (s(), v("rect", {
745
748
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
746
749
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
747
750
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
748
751
  height: T.value <= 0 ? 1e-4 : T.value,
749
752
  width: _.value <= 0 ? 1e-4 : _.value,
750
- fill: `url(#pattern_${k.value}_${r.value[o].absoluteIndex})`,
753
+ fill: `url(#pattern_${g.value}_${r.value[o].absoluteIndex})`,
751
754
  stroke: "none",
752
755
  filter: K(r.value[o].serieIndex)
753
- }, null, 8, yl))), 256))
756
+ }, null, 8, bl))), 256))
754
757
  ])) : b("", !0)
755
758
  ], 64)) : b("", !0),
756
- (n(!0), v($, null, F(R.value, (l, o) => (n(), v($, null, [
757
- wt(o, l) ? (n(), v("text", {
759
+ (s(!0), v($, null, B(R.value, (l, o) => (s(), v($, null, [
760
+ kt(o, l) ? (s(), v("text", {
758
761
  key: `datalabel_${o}`,
759
- textContent: q(kt(o, l)),
762
+ textContent: q(xt(o, l)),
760
763
  x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
761
- y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + ze.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
764
+ y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ne.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
762
765
  "font-size": e.value.style.chart.layout.labels.captions.fontSize,
763
- fill: c(Dt)(r.value[o].color),
766
+ fill: c(Et)(r.value[o].color),
764
767
  filter: K(r.value[o].serieIndex)
765
- }, null, 8, gl)) : b("", !0)
768
+ }, null, 8, wl)) : b("", !0)
766
769
  ], 64))), 256)),
767
- (n(!0), v($, null, F(R.value, (l, o) => (n(), v("rect", {
770
+ (s(!0), v($, null, B(R.value, (l, o) => (s(), v("rect", {
768
771
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
769
772
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
770
- height: ze.value,
771
- width: it.value,
773
+ height: Ne.value,
774
+ width: vt.value,
772
775
  fill: "transparent",
773
776
  stroke: "none",
774
- onMouseover: (u) => mt(o),
775
- onMouseleave: (u) => gt(o),
776
- onClick: (u) => yt(o)
777
- }, null, 40, ml))), 256)),
778
- y(t.$slots, "svg", { svg: B.value }, void 0, !0)
779
- ], 14, ul)),
780
- t.$slots.watermark ? (n(), v("div", bl, [
781
- y(t.$slots, "watermark", W(j({ isPrinting: c(Pe) || c(Le) })), void 0, !0)
777
+ onMouseover: (u) => bt(o),
778
+ onMouseleave: (u) => mt(o),
779
+ onClick: (u) => gt(o)
780
+ }, null, 40, kl))), 256)),
781
+ y(t.$slots, "svg", { svg: z.value }, void 0, !0)
782
+ ], 14, rl)),
783
+ t.$slots.watermark ? (s(), v("div", xl, [
784
+ y(t.$slots, "watermark", W(j({ isPrinting: c(Le) || c(Oe) })), void 0, !0)
782
785
  ])) : b("", !0),
783
- C("div", {
784
- ref_key: "chartLegend",
785
- ref: me
786
+ x("div", {
787
+ id: `legend-bottom-${g.value}`
788
+ }, null, 8, Cl),
789
+ $e.value ? (s(), F(At, {
790
+ key: 5,
791
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${g.value}` : `#legend-bottom-${g.value}`
786
792
  }, [
787
- e.value.style.chart.legend.show ? (n(), N(Qt, {
788
- key: `legend_${Ce.value}`,
789
- legendSet: E.value,
790
- config: pt.value,
791
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => De(l.uid))
792
- }, qe({
793
- item: g(({ legend: l }) => [
794
- C("div", {
795
- onClick: (o) => l.segregate(),
796
- style: te(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
797
- }, q(l.name) + q(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + q(e.value.style.chart.legend.showValue ? c(Y)(
798
- e.value.style.chart.layout.labels.dataLabels.formatter,
799
- l.value,
800
- c(P)({
801
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
802
- v: l.value,
803
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
804
- r: e.value.style.chart.legend.roundingValue,
805
- isAnimating: z.value
806
- }),
807
- { datapoint: l }
808
- ) : "") + " " + q(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 / A.value) ? "-" : c(P)({ v: l.value / A.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: z.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, wl)
809
- ]),
810
- _: 2
793
+ x("div", {
794
+ ref_key: "chartLegend",
795
+ ref: me
811
796
  }, [
812
- t.$slots.pattern ? {
813
- name: "legend-pattern",
814
- fn: g(({ legend: l, index: o }) => [
815
- fe(Zt, {
816
- shape: l.shape,
817
- radius: 30,
818
- stroke: "none",
819
- plot: { x: 30, y: 30 },
820
- fill: `url(#pattern_${k.value}_${o})`
821
- }, null, 8, ["shape", "fill"])
797
+ e.value.style.chart.legend.show ? (s(), F(el, {
798
+ key: `legend_${Ce.value}`,
799
+ legendSet: E.value,
800
+ config: yt.value,
801
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => Re(l.uid))
802
+ }, He({
803
+ item: m(({ legend: l }) => [
804
+ x("div", {
805
+ onClick: (o) => l.segregate(),
806
+ style: te(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
807
+ }, q(l.name) + q(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + q(e.value.style.chart.legend.showValue ? c(Y)(
808
+ e.value.style.chart.layout.labels.dataLabels.formatter,
809
+ l.value,
810
+ c(P)({
811
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
812
+ v: l.value,
813
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
814
+ r: e.value.style.chart.legend.roundingValue,
815
+ isAnimating: N.value
816
+ }),
817
+ { datapoint: l }
818
+ ) : "") + " " + q(e.value.style.chart.legend.showPercentage ? f.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 / A.value) ? "-" : c(P)({ v: l.value / A.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, $l)
822
819
  ]),
823
- key: "0"
824
- } : void 0
825
- ]), 1032, ["legendSet", "config"])) : y(t.$slots, "legend", {
826
- key: 1,
827
- legend: E.value
828
- }, void 0, !0)
829
- ], 512),
830
- t.$slots.source ? (n(), v("div", {
831
- key: 5,
820
+ _: 2
821
+ }, [
822
+ t.$slots.pattern ? {
823
+ name: "legend-pattern",
824
+ fn: m(({ legend: l, index: o }) => [
825
+ pe(tl, {
826
+ shape: l.shape,
827
+ radius: 30,
828
+ stroke: "none",
829
+ plot: { x: 30, y: 30 },
830
+ fill: `url(#pattern_${g.value}_${o})`
831
+ }, null, 8, ["shape", "fill"])
832
+ ]),
833
+ key: "0"
834
+ } : void 0
835
+ ]), 1032, ["legendSet", "config"])) : y(t.$slots, "legend", {
836
+ key: 1,
837
+ legend: E.value
838
+ }, void 0, !0)
839
+ ], 512)
840
+ ], 8, ["to"])) : b("", !0),
841
+ t.$slots.source ? (s(), v("div", {
842
+ key: 6,
832
843
  ref_key: "source",
833
844
  ref: be,
834
845
  dir: "auto"
835
846
  }, [
836
847
  y(t.$slots, "source", {}, void 0, !0)
837
848
  ], 512)) : b("", !0),
838
- fe(c(lt), {
839
- show: x.value.showTooltip && ae.value && p.value.length < m.dataset.length,
849
+ pe(c(at), {
850
+ show: C.value.showTooltip && ae.value && f.value.length < w.dataset.length,
840
851
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
841
852
  color: e.value.style.chart.tooltip.color,
842
853
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -853,19 +864,19 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
853
864
  smooth: e.value.style.chart.tooltip.smooth,
854
865
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
855
866
  }, {
856
- "tooltip-before": g(() => [
867
+ "tooltip-before": m(() => [
857
868
  y(t.$slots, "tooltip-before", W(j({ ...ve.value })), void 0, !0)
858
869
  ]),
859
- "tooltip-after": g(() => [
870
+ "tooltip-after": m(() => [
860
871
  y(t.$slots, "tooltip-after", W(j({ ...ve.value })), void 0, !0)
861
872
  ]),
862
873
  _: 3
863
874
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter"]),
864
- le.value ? (n(), N(c(tt), {
865
- key: 6,
875
+ le.value ? (s(), F(c(lt), {
876
+ key: 7,
866
877
  hideDetails: "",
867
878
  config: {
868
- open: x.value.showTable,
879
+ open: C.value.showTable,
869
880
  maxHeight: 1e4,
870
881
  body: {
871
882
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -877,34 +888,34 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
877
888
  }
878
889
  }
879
890
  }, {
880
- content: g(() => [
881
- (n(), N(c(Ze), {
891
+ content: m(() => [
892
+ (s(), F(c(et), {
882
893
  key: `table_${xe.value}`,
883
894
  colNames: Q.value.colNames,
884
895
  head: Q.value.head,
885
896
  body: Q.value.body,
886
897
  config: Q.value.config,
887
898
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
888
- onClose: a[1] || (a[1] = (l) => x.value.showTable = !1)
899
+ onClose: a[1] || (a[1] = (l) => C.value.showTable = !1)
889
900
  }, {
890
- th: g(({ th: l }) => [
891
- C("div", {
901
+ th: m(({ th: l }) => [
902
+ x("div", {
892
903
  innerHTML: l,
893
904
  style: { display: "flex", "align-items": "center" }
894
- }, null, 8, kl)
905
+ }, null, 8, Il)
895
906
  ]),
896
- td: g(({ td: l }) => [
897
- Tt(q(l.name || l), 1)
907
+ td: m(({ td: l }) => [
908
+ St(q(l.name || l), 1)
898
909
  ]),
899
910
  _: 1
900
911
  }, 8, ["colNames", "head", "body", "config", "title"]))
901
912
  ]),
902
913
  _: 1
903
914
  }, 8, ["config"])) : b("", !0),
904
- c($e) ? (n(), N(ll, { key: 7 })) : b("", !0)
905
- ], 46, ol));
915
+ c(Ie) ? (s(), F(ol, { key: 8 })) : b("", !0)
916
+ ], 46, sl));
906
917
  }
907
- }, Nl = /* @__PURE__ */ al(xl, [["__scopeId", "data-v-b038175e"]]);
918
+ }, Rl = /* @__PURE__ */ ul(_l, [["__scopeId", "data-v-3c406d34"]]);
908
919
  export {
909
- Nl as default
920
+ Rl as default
910
921
  };