vue-data-ui 3.1.0 → 3.1.2

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 (94) hide show
  1. package/dist/{Arrow-DvG07exK.js → Arrow-BotYLY2I.js} +1 -1
  2. package/dist/{BaseDraggableDialog-O7900pGp.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
  3. package/dist/{BaseIcon-DHtro8us.js → BaseIcon-BLg8FaQ2.js} +5 -3
  4. package/dist/{ColorPicker-CpWzNn4r.js → ColorPicker-C2sMVpbA.js} +2 -2
  5. package/dist/{DataTable-DJjA2_wf.js → DataTable-BRN1-1ob.js} +2 -2
  6. package/dist/{Legend-2-dC7DVb.js → Legend-DLzeDl3-.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DHeE4Yuv.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
  8. package/dist/{PackageVersion-DU12WH3O.js → PackageVersion-Jz9FlNXl.js} +1 -1
  9. package/dist/{PenAndPaper-B7QEDgx4.js → PenAndPaper-TgGWddgD.js} +3 -3
  10. package/dist/{Shape-Dj2Hl33H.js → Shape-Bmpx9GRg.js} +1 -1
  11. package/dist/{Slicer-D99HytqX.js → Slicer-DeWHn8zH.js} +2 -2
  12. package/dist/{SparkTooltip-B-wL07rI.js → SparkTooltip-C6fJOQ0j.js} +1 -1
  13. package/dist/{Title-Dq2_Z9kR.js → Title-AGmmsSi_.js} +1 -1
  14. package/dist/{Tooltip-Y219DXZO.js → Tooltip-le0yZk_t.js} +1 -1
  15. package/dist/{UserOptions-BuGfCdAY.js → UserOptions-DEFwuQIo.js} +125 -108
  16. package/dist/{dom-to-png-BhciAKaM.js → dom-to-png-C7V0EktO.js} +1 -1
  17. package/dist/{img-JOqdlnUs.js → img-DvuphHeJ.js} +1 -1
  18. package/dist/{index-CDQbCd41.js → index-BFqW8WA0.js} +97 -74
  19. package/dist/pdf-Bdf65IBz.js +79 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +25 -2
  22. package/dist/types/vue-data-ui.d.ts +25 -2
  23. package/dist/{useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
  24. package/dist/{useNestedProp-BPEHGiYX.js → useNestedProp-BSZCnuGl.js} +1 -1
  25. package/dist/{usePrinter-Bnl1YeUU.js → usePrinter-DDIKRiOp.js} +13 -12
  26. package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
  27. package/dist/{vue-data-ui-DcNYz3cZ.js → vue-data-ui-vwh3dolO.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/{vue-ui-3d-bar-BNIFAeN-.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
  30. package/dist/{vue-ui-accordion-Bf_LHFFX.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-Bz-l1afR.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
  32. package/dist/{vue-ui-annotator-BcfRH2BF.js → vue-ui-annotator-B_5hOApA.js} +2 -2
  33. package/dist/{vue-ui-bullet-DK1aM9fX.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
  34. package/dist/{vue-ui-candlestick-D6mMjvtu.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
  35. package/dist/{vue-ui-carousel-table-Vp5f238W.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
  36. package/dist/{vue-ui-chestnut-BKc4v-lf.js → vue-ui-chestnut-C4B0wEFn.js} +484 -487
  37. package/dist/{vue-ui-chord-CquhRjf0.js → vue-ui-chord-B9Zml1V7.js} +272 -266
  38. package/dist/{vue-ui-circle-pack-D6zLgxa3.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
  39. package/dist/{vue-ui-cursor-DIXb2S93.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
  40. package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
  41. package/dist/{vue-ui-digits-CLAIo9gW.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
  42. package/dist/{vue-ui-donut-evolution-C3r0YhKz.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
  43. package/dist/{vue-ui-donut-C8h_tCSO.js → vue-ui-donut-xseR2SnT.js} +348 -343
  44. package/dist/{vue-ui-dumbbell-D-t4M00E.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
  45. package/dist/{vue-ui-flow-D7_D_UNm.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
  46. package/dist/{vue-ui-funnel-B0QOfZRz.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
  47. package/dist/{vue-ui-galaxy-Ccw5uNes.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
  48. package/dist/{vue-ui-gauge-DvW7nFmK.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
  49. package/dist/{vue-ui-gizmo-WGQxvGPy.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
  50. package/dist/{vue-ui-heatmap-BQkLujyp.js → vue-ui-heatmap-NfRSd6fU.js} +370 -375
  51. package/dist/{vue-ui-history-plot-eU33r_Ot.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
  52. package/dist/{vue-ui-kpi-CKg2i71M.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-BmkGQsm_.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
  54. package/dist/{vue-ui-molecule-Dlu0hjSg.js → vue-ui-molecule-C973vfYh.js} +188 -183
  55. package/dist/{vue-ui-mood-radar-DQaxfw9R.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
  56. package/dist/{vue-ui-nested-donuts-Djj9Aw_i.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
  57. package/dist/{vue-ui-onion-ZgsErXis.js → vue-ui-onion-BC9czZGG.js} +8 -8
  58. package/dist/{vue-ui-parallel-coordinate-plot-B5fB22Jc.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
  59. package/dist/{vue-ui-quadrant-CMevCtXH.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
  60. package/dist/{vue-ui-quick-chart-DcparKSX.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
  61. package/dist/{vue-ui-radar-DFbxoKCK.js → vue-ui-radar-DVJQYNeL.js} +248 -243
  62. package/dist/{vue-ui-rating-ZUpxCWrk.js → vue-ui-rating-DITnRSiS.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-eNKJY4Sx.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
  64. package/dist/{vue-ui-ridgeline-D4shpQZd.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
  65. package/dist/{vue-ui-rings-TdTHMbsa.js → vue-ui-rings-CUT1N_kK.js} +229 -224
  66. package/dist/{vue-ui-scatter-CVuV9ljU.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
  67. package/dist/{vue-ui-skeleton-CFxBU2-p.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
  68. package/dist/{vue-ui-smiley-Har3B3aQ.js → vue-ui-smiley-B9yNexWr.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-FPk-XEwI.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
  70. package/dist/{vue-ui-sparkbar-V3eJ0w0t.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
  71. package/dist/{vue-ui-sparkgauge-DKTGkWnJ.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
  72. package/dist/{vue-ui-sparkhistogram-DJsgFwHs.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
  73. package/dist/{vue-ui-sparkline-Dmrm5SL5.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
  74. package/dist/{vue-ui-sparkstackbar-B0Pl7VMI.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
  75. package/dist/{vue-ui-stackbar-CNsgBPhj.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
  76. package/dist/{vue-ui-strip-plot-CYAWwYOM.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
  77. package/dist/{vue-ui-table-heatmap-COI9LRqC.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
  78. package/dist/{vue-ui-table-Dn6H98rP.js → vue-ui-table-rmbBw_0d.js} +3 -3
  79. package/dist/{vue-ui-table-sparkline-B7Gg5FfJ.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
  80. package/dist/{vue-ui-thermometer-Bgynq5El.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
  81. package/dist/{vue-ui-timer-CXng51v5.js → vue-ui-timer-qFNHDcU_.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-Cy1U3hO1.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
  83. package/dist/{vue-ui-treemap-BsvIvRmE.js → vue-ui-treemap-DGC9zxon.js} +262 -256
  84. package/dist/{vue-ui-vertical-bar-DHqWeDIf.js → vue-ui-vertical-bar-DOCeCCqz.js} +297 -298
  85. package/dist/{vue-ui-waffle-D1Mscj3N.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
  86. package/dist/{vue-ui-wheel-DpV-N5tF.js → vue-ui-wheel-87VStrfJ.js} +6 -6
  87. package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
  88. package/dist/{vue-ui-world-DYz6zw3x.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
  89. package/dist/{vue-ui-xy-B1nqNbzw.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
  90. package/dist/{vue-ui-xy-canvas-D4wd-Asd.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
  91. package/package.json +1 -1
  92. package/dist/pdf-Dd-LIJqz.js +0 -61
  93. package/dist/vue-ui-dashboard-DmiriAK7.js +0 -325
  94. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +0 -811
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as B, useSlots as St, computed as h, ref as i, toRefs as Pt, watch as K, shallowRef as Ye, onMounted as Lt, onBeforeUnmount as Ot, createElementBlock as v, openBlock as s, unref as c, normalizeStyle as ae, normalizeClass as Je, createBlock as F, createCommentVNode as m, createElementVNode as x, createVNode as oe, createSlots as be, withCtx as y, renderSlot as g, normalizeProps as j, guardReactiveProps as q, Fragment as $, renderList as z, mergeProps as me, toDisplayString as M, Teleport as Bt, resolveDynamicComponent as Ft, createTextVNode as Ke, nextTick as zt } from "vue";
2
- import { u as Nt, c as Dt, t as Vt, a as Mt, p as R, b as Rt, o as Qe, f as we, g as Et, d as Ut, k as Q, i as L, X as Wt, s as Gt, x as jt, F as qt, e as Ht, v as Xt, w as Yt, L as Jt, y as Kt, z as Qt } from "./index-CDQbCd41.js";
3
- import { t as Zt, u as el } from "./useResponsive-DfdjqQps.js";
4
- import { u as tl, B as ll } from "./BaseScanner-BgWxam9d.js";
5
- import { u as al } from "./usePrinter-Bnl1YeUU.js";
6
- import { u as Ze } from "./useNestedProp-BPEHGiYX.js";
7
- import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as ul } from "./useChartAccessibility-9icAAmYg.js";
9
- import sl from "./img-JOqdlnUs.js";
10
- import { _ as nl } from "./Shape-Dj2Hl33H.js";
11
- import rl from "./Title-Dq2_Z9kR.js";
12
- import il from "./Legend-2-dC7DVb.js";
13
- import { _ as vl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["stop-color"], yl = ["stop-color"], gl = ["id"], bl = ["x", "y", "height", "width"], ml = ["height", "width"], wl = { key: 0 }, kl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], xl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Cl = { key: 1 }, $l = ["rx", "x", "y", "height", "width", "fill", "filter"], Il = ["textContent", "x", "y", "font-size", "fill", "filter"], Tl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], _l = {
1
+ import { defineAsyncComponent as B, useSlots as Pt, computed as h, ref as i, toRefs as Ot, watch as K, shallowRef as Ke, onMounted as Lt, onBeforeUnmount as Bt, createElementBlock as v, openBlock as s, unref as c, normalizeStyle as ae, normalizeClass as Qe, createBlock as F, createCommentVNode as m, createElementVNode as k, createVNode as oe, createSlots as me, withCtx as y, renderSlot as g, normalizeProps as j, guardReactiveProps as q, Fragment as $, renderList as D, mergeProps as we, toDisplayString as M, Teleport as Ft, resolveDynamicComponent as Dt, createTextVNode as Ze, nextTick as zt } from "vue";
2
+ import { u as Nt, c as Vt, t as Mt, a as Rt, p as R, b as Et, o as et, f as ke, g as Ut, d as Wt, k as Q, i as O, X as Gt, s as jt, x as qt, F as Ht, e as Xt, v as Yt, w as Jt, L as Kt, y as Qt, z as Zt } from "./index-BFqW8WA0.js";
3
+ import { t as el, u as tl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ll, B as al } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as ol } from "./usePrinter-DDIKRiOp.js";
6
+ import { u as tt } from "./useNestedProp-BSZCnuGl.js";
7
+ import { u as ul } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as sl } from "./useChartAccessibility-9icAAmYg.js";
9
+ import nl from "./img-DvuphHeJ.js";
10
+ import { _ as rl } from "./Shape-Bmpx9GRg.js";
11
+ import il from "./Title-AGmmsSi_.js";
12
+ import vl from "./Legend-DLzeDl3-.js";
13
+ import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["stop-color"], gl = ["stop-color"], bl = ["id"], ml = ["x", "y", "height", "width"], wl = ["height", "width"], kl = { key: 0 }, xl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Cl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], $l = { key: 1 }, Il = ["rx", "x", "y", "height", "width", "fill", "filter"], _l = ["textContent", "x", "y", "font-size", "fill", "filter"], Tl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Al = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, Al = ["id"], Sl = ["onClick"], Pl = ["innerHTML"], Ll = {
17
+ }, Sl = ["id"], Pl = ["onClick"], Ol = ["innerHTML"], Ll = {
18
18
  __name: "vue-ui-waffle",
19
19
  props: {
20
20
  config: {
@@ -31,14 +31,14 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend"],
34
- setup(et, { expose: tt, emit: lt }) {
35
- const at = B(() => import("./Tooltip-Y219DXZO.js")), ot = B(() => import("./BaseIcon-DHtro8us.js")), ut = B(() => import("./DataTable-DJjA2_wf.js")), st = B(() => import("./vue-ui-accordion-Bf_LHFFX.js")), nt = B(() => import("./UserOptions-BuGfCdAY.js")), rt = B(() => import("./PenAndPaper-B7QEDgx4.js")), it = B(() => import("./PackageVersion-DU12WH3O.js")), vt = B(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_waffle: ct } = Nt(), w = et, dt = St(), ue = h(() => !!w.dataset && w.dataset.length), b = i(Dt()), ht = i(null), se = i(!1), ne = i(""), E = i(null), ke = i(0), I = i(null), xe = i(null), Ce = i(null), $e = i(null), Ie = i(null), Te = i(0), _e = i(0), Ae = i(0), Se = i(!1), H = i(null), e = i(ve()), { loading: Pe, FINAL_DATASET: Z, manualLoading: re } = tl({
36
- ...Pt(w),
34
+ setup(lt, { expose: at, emit: ot }) {
35
+ const ut = B(() => import("./Tooltip-le0yZk_t.js")), st = B(() => import("./BaseIcon-BLg8FaQ2.js")), nt = B(() => import("./DataTable-BRN1-1ob.js")), rt = B(() => import("./vue-ui-accordion-Cv747Pg6.js")), it = B(() => import("./UserOptions-DEFwuQIo.js")), vt = B(() => import("./PenAndPaper-TgGWddgD.js")), ct = B(() => import("./PackageVersion-Jz9FlNXl.js")), dt = B(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_waffle: ht } = Nt(), w = lt, pt = Pt(), ue = h(() => !!w.dataset && w.dataset.length), b = i(Vt()), se = i(!1), ne = i(""), E = i(null), xe = i(0), I = i(null), Ce = i(null), $e = i(null), Ie = i(null), _e = i(null), Te = i(0), Ae = i(0), Se = i(0), Pe = i(!1), H = i(null), re = i(null), e = i(ce()), { loading: Oe, FINAL_DATASET: Z, manualLoading: ie } = ll({
36
+ ...Ot(w),
37
37
  FINAL_CONFIG: e,
38
- prepareConfig: ve,
38
+ prepareConfig: ce,
39
39
  callback: () => {
40
40
  Promise.resolve().then(async () => {
41
- p.value = ce();
41
+ p.value = de();
42
42
  });
43
43
  },
44
44
  skeletonDataset: [
@@ -58,7 +58,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
58
58
  color: "#CACACA"
59
59
  }
60
60
  ],
61
- skeletonConfig: Vt({
61
+ skeletonConfig: Mt({
62
62
  defaultConfig: e.value,
63
63
  userConfig: {
64
64
  useCustomCells: !1,
@@ -84,89 +84,89 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
84
84
  }
85
85
  }
86
86
  })
87
- }), { userOptionsVisible: ie, setUserOptionsVisibility: Le, keepUserOptionState: Oe } = ol({ config: e.value }), { svgRef: Be } = ul({ config: e.value.style.chart.title });
88
- function ve() {
89
- const t = Ze({
87
+ }), { userOptionsVisible: ve, setUserOptionsVisibility: Le, keepUserOptionState: Be } = ul({ config: e.value }), { svgRef: Fe } = sl({ config: e.value.style.chart.title });
88
+ function ce() {
89
+ const t = tt({
90
90
  userConfig: w.config,
91
- defaultConfig: ct
91
+ defaultConfig: ht
92
92
  });
93
93
  return t.theme ? {
94
- ...Ze({
95
- userConfig: Rt.vue_ui_waffle[t.theme] || w.config,
94
+ ...tt({
95
+ userConfig: Et.vue_ui_waffle[t.theme] || w.config,
96
96
  defaultConfig: t
97
97
  }),
98
- customPalette: Mt[t.theme] || R
98
+ customPalette: Rt[t.theme] || R
99
99
  } : t;
100
100
  }
101
101
  K(() => w.config, (t) => {
102
- Pe.value || (e.value = ve()), ie.value = !e.value.userOptions.showOnChartHover, ze(), Te.value += 1, _e.value += 1, Ae.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
102
+ Oe.value || (e.value = ce()), ve.value = !e.value.userOptions.showOnChartHover, ze(), Te.value += 1, Ae.value += 1, Se.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.chart.tooltip.show;
103
103
  }, { deep: !0 });
104
- const O = Ye(null), U = Ye(null), Fe = h(() => !!e.value.debug);
104
+ const L = Ke(null), U = Ke(null), De = h(() => !!e.value.debug);
105
105
  function ze() {
106
- if (Qe(w.dataset) ? (we({
106
+ if (et(w.dataset) ? (ke({
107
107
  componentName: "VueUiWaffle",
108
108
  type: "dataset",
109
- debug: Fe.value
110
- }), ue.value = !1, re.value = !0) : w.dataset.forEach((t, a) => {
111
- Et({
109
+ debug: De.value
110
+ }), ue.value = !1, ie.value = !0) : w.dataset.forEach((t, a) => {
111
+ Ut({
112
112
  datasetObject: t,
113
113
  requiredAttributes: ["name", "values"]
114
114
  }).forEach((l) => {
115
- we({
115
+ ke({
116
116
  componentName: "VueUiWaffle",
117
117
  type: "datasetSerieAttribute",
118
118
  property: l,
119
119
  index: a,
120
- debug: Fe.value
120
+ debug: De.value
121
121
  });
122
122
  });
123
- }), Qe(w.dataset) || (re.value = e.value.loading), e.value.responsive) {
124
- const t = Zt(() => {
125
- const { width: a, height: l } = el({
123
+ }), et(w.dataset) || (ie.value = e.value.loading), e.value.responsive) {
124
+ const t = el(() => {
125
+ const { width: a, height: l } = tl({
126
126
  chart: I.value,
127
- title: e.value.style.chart.title.text ? xe.value : null,
128
- legend: e.value.style.chart.legend.show ? Ce.value : null,
129
- source: $e.value,
130
- noTitle: Ie.value
127
+ title: e.value.style.chart.title.text ? Ce.value : null,
128
+ legend: e.value.style.chart.legend.show ? $e.value : null,
129
+ source: Ie.value,
130
+ noTitle: _e.value
131
131
  });
132
132
  requestAnimationFrame(() => {
133
- N.value.width = a, N.value.height = l, T.value.width = a, T.value.height = l;
133
+ z.value.width = a, z.value.height = l, _.value.width = a, _.value.height = l;
134
134
  });
135
135
  });
136
- O.value && (U.value && O.value.unobserve(U.value), O.value.disconnect()), O.value = new ResizeObserver(t), U.value = I.value.parentNode, O.value.observe(U.value);
136
+ L.value && (U.value && L.value.unobserve(U.value), L.value.disconnect()), L.value = new ResizeObserver(t), U.value = I.value.parentNode, L.value.observe(U.value);
137
137
  }
138
138
  }
139
139
  Lt(() => {
140
- Se.value = !0, ze();
141
- }), Ot(() => {
142
- O.value && (U.value && O.value.unobserve(U.value), O.value.disconnect());
140
+ Pe.value = !0, ze();
141
+ }), Bt(() => {
142
+ L.value && (U.value && L.value.unobserve(U.value), L.value.disconnect());
143
143
  });
144
- const { isPrinting: Ne, isImaging: De, generatePdf: Ve, generateImage: Me } = al({
144
+ const { isPrinting: Ne, isImaging: Ve, generatePdf: Me, generateImage: Re } = ol({
145
145
  elementId: `vue-ui-waffle_${b.value}`,
146
146
  fileName: e.value.style.chart.title.text || "vue-ui-waffle",
147
147
  options: e.value.userOptions.print
148
- }), pt = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Re = h(() => Ut(e.value.customPalette)), k = i({
148
+ }), ft = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = h(() => Wt(e.value.customPalette)), x = i({
149
149
  showTable: e.value.table.show,
150
150
  showTooltip: e.value.style.chart.tooltip.show
151
151
  });
152
152
  K(e, () => {
153
- k.value = {
153
+ x.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 N = i({
158
+ const z = i({
159
159
  height: 512,
160
160
  width: 512
161
- }), T = i({
161
+ }), _ = i({
162
162
  top: 0,
163
163
  left: 0,
164
164
  height: 512,
165
165
  width: 512
166
- }), _ = h(() => (T.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), A = h(() => (T.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), ft = h(() => Math.max(1e-4, T.value.width / e.value.style.chart.layout.grid.size)), Ee = h(() => Math.max(1e-4, T.value.height / e.value.style.chart.layout.grid.size));
167
- function Ue(t) {
168
- const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((C, ge) => C + ge, 0), o = t.map((C) => C / l * a), u = o.map(Math.floor), n = o.map((C) => C % 1);
169
- let d = a - u.reduce((C, ge) => C + ge, 0);
166
+ }), T = h(() => (_.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), A = h(() => (_.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), yt = h(() => Math.max(1e-4, _.value.width / e.value.style.chart.layout.grid.size)), Ue = h(() => Math.max(1e-4, _.value.height / e.value.style.chart.layout.grid.size));
167
+ function We(t) {
168
+ const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((C, be) => C + be, 0), o = t.map((C) => C / l * a), u = o.map(Math.floor), n = o.map((C) => C % 1);
169
+ let d = a - u.reduce((C, be) => C + be, 0);
170
170
  for (; d > 0; ) {
171
171
  let C = n.indexOf(Math.max(...n));
172
172
  u[C] += 1, n[C] = 0, d -= 1;
@@ -174,28 +174,28 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
174
174
  return u;
175
175
  }
176
176
  const X = i(!1);
177
- function ce() {
177
+ function de() {
178
178
  return X.value = Z.value.flatMap((t) => t.values.reduce((a, l) => a + l, 0)).reduce((t, a) => t + a, 0) === 0, Z.value.map((t, a) => ({
179
179
  ...t,
180
- color: Ht(t.color) || Re.value[a] || R[a] || R[a % R.length],
180
+ color: Xt(t.color) || Ee.value[a] || R[a] || R[a % R.length],
181
181
  uid: `serie_${a}`,
182
182
  absoluteIndex: a
183
183
  }));
184
184
  }
185
- const de = h(() => ce()), p = i(de.value);
185
+ const he = h(() => de()), p = i(he.value);
186
186
  K(() => w.dataset, (t) => {
187
- Array.isArray(t) && t.length > 0 && (re.value = !1);
187
+ Array.isArray(t) && t.length > 0 && (ie.value = !1);
188
188
  }, { immediate: !0 }), K(() => w.dataset, (t) => {
189
- p.value = ce();
189
+ p.value = de();
190
190
  }, { deep: !0 });
191
- const yt = h(() => {
191
+ const gt = h(() => {
192
192
  const t = p.value.filter((a, l) => !f.value.includes(a.uid)).map((a, l) => X.value ? 1 : (a.values || []).reduce((o, u) => o + u, 0));
193
- return Ue(t);
194
- }), gt = h(() => {
193
+ return We(t);
194
+ }), bt = h(() => {
195
195
  const t = p.value.map((a, l) => X.value ? 1 : (a.values || []).reduce((o, u) => o + u));
196
- return Ue(t);
196
+ return We(t);
197
197
  }), Y = h(() => (Z.value.forEach((t, a) => {
198
- [null, void 0].includes(t.values) && we({
198
+ [null, void 0].includes(t.values) && ke({
199
199
  componentName: "VueUiWaffle",
200
200
  type: "datasetSerieAttribute",
201
201
  property: "values (number[])",
@@ -208,25 +208,25 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
208
208
  color: t.color,
209
209
  value: (t.values || []).reduce((l, o) => l + o, 0),
210
210
  absoluteValues: t.values || [],
211
- proportion: yt.value[a]
212
- })))), bt = h(() => p.value.map((t, a) => ({
211
+ proportion: gt.value[a]
212
+ })))), mt = h(() => p.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: gt.value[a]
219
+ proportion: bt.value[a]
220
220
  })));
221
- function mt() {
222
- return bt.value.map((t) => ({
221
+ function wt() {
222
+ return mt.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 wt = h(() => {
229
+ const kt = h(() => {
230
230
  let t = 0;
231
231
  return Y.value.map((a, l) => {
232
232
  const o = t, u = o + a.proportion, n = [];
@@ -238,7 +238,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
238
238
  rects: n
239
239
  };
240
240
  });
241
- }), r = h(() => wt.value.flatMap((t, a) => t.rects.map((l, o) => ({
241
+ }), r = h(() => kt.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,
@@ -258,46 +258,46 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
258
258
  t.push({
259
259
  isStartOfLine: l === 0,
260
260
  position: e.value.style.chart.layout.grid.vertical ? a : l,
261
- x: (e.value.style.chart.layout.grid.vertical ? a : l) * (_.value + e.value.style.chart.layout.grid.spaceBetween),
262
- y: (e.value.style.chart.layout.grid.vertical ? l : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween) + T.value.top
261
+ x: (e.value.style.chart.layout.grid.vertical ? a : l) * (T.value + e.value.style.chart.layout.grid.spaceBetween),
262
+ y: (e.value.style.chart.layout.grid.vertical ? l : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween) + _.value.top
263
263
  });
264
264
  return t;
265
- }), f = i([]), D = i(!1), We = i(null), Ge = i(null);
266
- function je(t) {
265
+ }), f = i([]), N = i(!1), Ge = i(null), je = i(null);
266
+ function qe(t) {
267
267
  if (X.value) return;
268
268
  if (!e.value.useAnimation) {
269
269
  f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < G.value.length - 1 && G.value.length > 1 && f.value.push(t);
270
270
  return;
271
271
  }
272
- const a = de.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0), l = p.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
272
+ const a = he.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0), l = p.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
275
  if (f.value.includes(t)) {
276
276
  let n = function() {
277
- o > u ? (cancelAnimationFrame(We.value), p.value = p.value.map((d, C) => d.uid === t ? {
277
+ o > u ? (cancelAnimationFrame(Ge.value), p.value = p.value.map((d, C) => d.uid === t ? {
278
278
  ...d,
279
279
  values: [u]
280
- } : d), D.value = !1) : (D.value = !0, o += u * 0.025, p.value = p.value.map((d, C) => d.uid === t ? {
280
+ } : d), N.value = !1) : (N.value = !0, o += u * 0.025, p.value = p.value.map((d, C) => d.uid === t ? {
281
281
  ...d,
282
282
  values: [o]
283
- } : d), We.value = requestAnimationFrame(n));
283
+ } : d), Ge.value = requestAnimationFrame(n));
284
284
  };
285
285
  f.value = f.value.filter((d) => d !== t);
286
286
  const u = a;
287
287
  n();
288
288
  } else if (f.value.length < G.value.length - 1 && G.value.length > 1) {
289
289
  let u = function() {
290
- o < l / 100 ? (cancelAnimationFrame(Ge.value), f.value.push(t), p.value = p.value.map((n, d) => n.uid === t ? {
290
+ o < l / 100 ? (cancelAnimationFrame(je.value), f.value.push(t), p.value = p.value.map((n, d) => n.uid === t ? {
291
291
  ...n,
292
292
  values: [0]
293
- } : n), D.value = !1) : (D.value = !0, o /= 1.15, p.value = p.value.map((n) => n.uid === t ? {
293
+ } : n), N.value = !1) : (N.value = !0, o /= 1.15, p.value = p.value.map((n) => n.uid === t ? {
294
294
  ...n,
295
295
  values: [o]
296
- } : n), Ge.value = requestAnimationFrame(u));
296
+ } : n), je.value = requestAnimationFrame(u));
297
297
  };
298
298
  u();
299
299
  }
300
- It("selectLegend", Y.value.map((u) => ({
300
+ _t("selectLegend", Y.value.map((u) => ({
301
301
  name: u.name,
302
302
  color: u.color,
303
303
  value: u.value,
@@ -307,7 +307,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
307
307
  }
308
308
  const G = h(() => p.value.map((t, a) => ({
309
309
  name: t.name,
310
- color: t.color || Re[a] || R[a] || R[a % R.length],
310
+ color: t.color || Ee[a] || R[a] || R[a % R.length],
311
311
  value: (t.values || []).reduce((l, o) => l + o, 0),
312
312
  uid: t.uid,
313
313
  shape: "square"
@@ -315,35 +315,35 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
315
315
  ...t,
316
316
  proportion: t.value / p.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
317
317
  opacity: f.value.includes(t.uid) ? 0.5 : 1,
318
- segregate: () => je(t.uid),
318
+ segregate: () => qe(t.uid),
319
319
  isSegregated: f.value.includes(t.uid)
320
- }))), kt = h(() => ({
320
+ }))), xt = h(() => ({
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
- })), S = h(() => Y.value.map((t) => t.value).reduce((t, a) => t + a, 0)), he = i(null), pe = i(null);
328
- function xt(t) {
327
+ })), S = h(() => Y.value.map((t) => t.value).reduce((t, a) => t + a, 0)), pe = i(null), fe = i(null);
328
+ function Ct(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 Ct(t) {
332
+ function $t(t) {
333
333
  const a = r.value[t];
334
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.serieIndex }), pe.value = null, se.value = !1, E.value = null;
334
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.serieIndex }), fe.value = null, se.value = !1, E.value = null;
335
335
  }
336
- function $t(t) {
336
+ function It(t) {
337
337
  if (f.value.length === w.dataset.length) return;
338
338
  const a = r.value[t];
339
- he.value = {
339
+ pe.value = {
340
340
  datapoint: a,
341
341
  seriesIndex: a.absoluteIndex,
342
342
  series: p.value,
343
343
  config: e.value
344
- }, e.value.events.datapointEnter && pe.value !== a.serieIndex && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.serieIndex }), pe.value = a.serieIndex, se.value = !0, E.value = r.value[t].serieIndex;
344
+ }, e.value.events.datapointEnter && fe.value !== a.serieIndex && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.serieIndex }), fe.value = a.serieIndex, se.value = !0, E.value = r.value[t].serieIndex;
345
345
  const l = e.value.style.chart.tooltip.customFormat;
346
- if (Kt(l) && Qt(() => l({
346
+ if (Qt(l) && Zt(() => l({
347
347
  seriesIndex: r.value[t].absoluteIndex,
348
348
  datapoint: a,
349
349
  series: p.value,
@@ -357,10 +357,10 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
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}" />${dt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Q(
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}" />${pt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Q(
361
361
  e.value.style.chart.layout.labels.dataLabels.formatter,
362
362
  a.value,
363
- L({
363
+ O({
364
364
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
365
365
  v: a.value,
366
366
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -372,7 +372,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
372
372
  series: p.value
373
373
  }
374
374
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
375
- const u = L({
375
+ const u = O({
376
376
  v: X.value ? 1 / Z.value.length * 100 : a.value / S.value * 100,
377
377
  s: "%",
378
378
  r: e.value.style.chart.tooltip.roundingPercentage
@@ -382,7 +382,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
382
382
  ne.value = o;
383
383
  }
384
384
  }
385
- const It = lt, P = h(() => {
385
+ const _t = ot, P = h(() => {
386
386
  const t = Y.value.map((l) => ({
387
387
  name: l.name,
388
388
  color: l.color
@@ -393,29 +393,29 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
393
393
  return e.value.useBlurOnHover && ![null, void 0].includes(E.value) && E.value !== t ? `url(#blur_${b.value})` : "";
394
394
  }
395
395
  function Tt(t, a) {
396
- return e.value.style.chart.layout.labels.captions.show ? r.value.length && !D.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;
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 _t(t, a = null) {
398
+ function At(t, a = null) {
399
399
  const l = Q(
400
400
  e.value.style.chart.layout.labels.dataLabels.formatter,
401
401
  r.value[t].value,
402
- L({
402
+ O({
403
403
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
404
404
  v: r.value[t].value,
405
405
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
406
406
  r: e.value.style.chart.layout.labels.captions.roundingValue
407
407
  }),
408
408
  { datapoint: r.value[t], position: a }
409
- ), o = L({ 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 : "";
409
+ ), o = O({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? Kt({ 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
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 fe(t = null) {
413
+ function ye(t = null) {
414
414
  zt(() => {
415
415
  const a = P.value.head.map((u, n) => [[
416
416
  u.name
417
- ], [P.value.body[n]], [isNaN(P.value.body[n] / S.value) ? "-" : P.value.body[n] / S.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Xt(l);
418
- t ? t(o) : Yt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
417
+ ], [P.value.body[n]], [isNaN(P.value.body[n] / S.value) ? "-" : P.value.body[n] / S.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Yt(l);
418
+ t ? t(o) : Jt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
419
419
  });
420
420
  }
421
421
  const te = h(() => {
@@ -424,7 +424,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
424
424
  Q(
425
425
  e.value.style.chart.layout.labels.dataLabels.formatter,
426
426
  S.value,
427
- L({
427
+ O({
428
428
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
429
429
  v: S.value,
430
430
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -440,14 +440,14 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
440
440
  Q(
441
441
  e.value.style.chart.layout.labels.dataLabels.formatter,
442
442
  P.value.body[n],
443
- L({
443
+ O({
444
444
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
445
445
  v: P.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(P.value.body[n] / S.value) ? "-" : L({
450
+ isNaN(P.value.body[n] / S.value) ? "-" : O({
451
451
  v: P.value.body[n] / S.value * 100,
452
452
  s: "%",
453
453
  r: e.value.table.td.roundingPercentage
@@ -477,22 +477,22 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
477
477
  colNames: o
478
478
  };
479
479
  }), V = i(!1);
480
- function qe(t) {
481
- V.value = t, ke.value += 1;
482
- }
483
- function He() {
484
- k.value.showTable = !k.value.showTable;
480
+ function He(t) {
481
+ V.value = t, xe.value += 1;
485
482
  }
486
483
  function Xe() {
487
- k.value.showTooltip = !k.value.showTooltip;
484
+ x.value.showTable = !x.value.showTable;
485
+ }
486
+ function Ye() {
487
+ x.value.showTooltip = !x.value.showTooltip;
488
488
  }
489
489
  const le = i(!1);
490
- function ye() {
490
+ function ge() {
491
491
  le.value = !le.value;
492
492
  }
493
- async function At({ scale: t = 2 } = {}) {
493
+ async function St({ scale: t = 2 } = {}) {
494
494
  if (!I.value) return;
495
- const { width: a, height: l } = I.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: n } = await sl({ domElement: I.value, base64: !0, img: !0, scale: t });
495
+ const { width: a, height: l } = I.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: n } = await nl({ domElement: I.value, base64: !0, img: !0, scale: t });
496
496
  return {
497
497
  imageUri: u,
498
498
  base64: n,
@@ -503,9 +503,9 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
503
503
  };
504
504
  }
505
505
  const J = h(() => {
506
- const t = e.value.table.useDialog && !e.value.table.show, a = k.value.showTable;
506
+ const t = e.value.table.useDialog && !e.value.table.show, a = x.value.showTable;
507
507
  return {
508
- component: t ? vt : st,
508
+ component: t ? dt : rt,
509
509
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
510
510
  props: t ? {
511
511
  backgroundColor: e.value.table.th.backgroundColor,
@@ -532,49 +532,53 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
532
532
  }
533
533
  };
534
534
  });
535
- return K(() => k.value.showTable, (t) => {
535
+ K(() => x.value.showTable, (t) => {
536
536
  e.value.table.show || (t && e.value.table.useDialog && H.value ? H.value.open() : "close" in H.value && H.value.close());
537
- }), tt({
538
- getData: mt,
539
- getImage: At,
540
- generatePdf: Ve,
541
- generateCsv: fe,
542
- generateImage: Me,
543
- toggleTable: He,
544
- toggleTooltip: Xe,
545
- toggleAnnotator: ye,
546
- toggleFullscreen: qe
537
+ });
538
+ function Je() {
539
+ x.value.showTable = !1, re.value && re.value.setTableIconState(!1);
540
+ }
541
+ return at({
542
+ getData: wt,
543
+ getImage: St,
544
+ generatePdf: Me,
545
+ generateCsv: ye,
546
+ generateImage: Re,
547
+ toggleTable: Xe,
548
+ toggleTooltip: Ye,
549
+ toggleAnnotator: ge,
550
+ toggleFullscreen: He
547
551
  }), (t, a) => (s(), v("div", {
548
- class: Je(`vue-ui-waffle ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
552
+ class: Qe(`vue-ui-waffle ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
549
553
  ref_key: "waffleChart",
550
554
  ref: I,
551
555
  id: `vue-ui-waffle_${b.value}`,
552
556
  style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
553
- onMouseenter: a[4] || (a[4] = () => c(Le)(!0)),
554
- onMouseleave: a[5] || (a[5] = () => c(Le)(!1))
557
+ onMouseenter: a[2] || (a[2] = () => c(Le)(!0)),
558
+ onMouseleave: a[3] || (a[3] = () => c(Le)(!1))
555
559
  }, [
556
- e.value.userOptions.buttons.annotator ? (s(), F(c(rt), {
560
+ e.value.userOptions.buttons.annotator ? (s(), F(c(vt), {
557
561
  key: 0,
558
- svgRef: c(Be),
562
+ svgRef: c(Fe),
559
563
  backgroundColor: e.value.style.chart.backgroundColor,
560
564
  color: e.value.style.chart.color,
561
565
  active: le.value,
562
- onClose: ye
566
+ onClose: ge
563
567
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
564
- pt.value ? (s(), v("div", {
568
+ ft.value ? (s(), v("div", {
565
569
  key: 1,
566
570
  ref_key: "noTitle",
567
- ref: Ie,
571
+ ref: _e,
568
572
  class: "vue-data-ui-no-title-space",
569
573
  style: "height:36px; width: 100%;background:transparent"
570
574
  }, null, 512)) : m("", !0),
571
575
  e.value.style.chart.title.text ? (s(), v("div", {
572
576
  key: 2,
573
577
  ref_key: "chartTitle",
574
- ref: xe,
578
+ ref: Ce,
575
579
  style: "width:100%;background:transparent;padding-bottom:12px"
576
580
  }, [
577
- (s(), F(rl, {
581
+ (s(), F(il, {
578
582
  key: `title_${Te.value}`,
579
583
  config: {
580
584
  title: {
@@ -588,17 +592,17 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
588
592
  }
589
593
  }, null, 8, ["config"]))
590
594
  ], 512)) : m("", !0),
591
- x("div", {
595
+ k("div", {
592
596
  id: `legend-top-${b.value}`
593
- }, null, 8, dl),
594
- e.value.userOptions.show && ue.value && (c(Oe) || c(ie)) ? (s(), F(c(nt), {
595
- ref_key: "details",
596
- ref: ht,
597
- key: `user_options_${ke.value}`,
597
+ }, null, 8, hl),
598
+ e.value.userOptions.show && ue.value && (c(Be) || c(ve)) ? (s(), F(c(it), {
599
+ ref_key: "userOptionsRef",
600
+ ref: re,
601
+ key: `user_options_${xe.value}`,
598
602
  backgroundColor: e.value.style.chart.backgroundColor,
599
603
  color: e.value.style.chart.color,
600
604
  isPrinting: c(Ne),
601
- isImaging: c(De),
605
+ isImaging: c(Ve),
602
606
  uid: b.value,
603
607
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
604
608
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -607,7 +611,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
607
611
  hasTable: e.value.userOptions.buttons.table,
608
612
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
609
613
  isFullscreen: V.value,
610
- isTooltip: k.value.showTooltip,
614
+ isTooltip: x.value.showTooltip,
611
615
  titles: { ...e.value.userOptions.buttonTitles },
612
616
  chartElement: I.value,
613
617
  position: e.value.userOptions.position,
@@ -615,17 +619,18 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
615
619
  isAnnotation: le.value,
616
620
  callbacks: e.value.userOptions.callbacks,
617
621
  printScale: e.value.userOptions.print.scale,
618
- onToggleFullscreen: qe,
619
- onGeneratePdf: c(Ve),
620
- onGenerateCsv: fe,
621
- onGenerateImage: c(Me),
622
- onToggleTable: He,
623
- onToggleTooltip: Xe,
624
- onToggleAnnotator: ye,
622
+ tableDialog: e.value.table.useDialog,
623
+ onToggleFullscreen: He,
624
+ onGeneratePdf: c(Me),
625
+ onGenerateCsv: ye,
626
+ onGenerateImage: c(Re),
627
+ onToggleTable: Xe,
628
+ onToggleTooltip: Ye,
629
+ onToggleAnnotator: ge,
625
630
  style: ae({
626
- visibility: c(Oe) ? c(ie) ? "visible" : "hidden" : "visible"
631
+ visibility: c(Be) ? c(ve) ? "visible" : "hidden" : "visible"
627
632
  })
628
- }, be({ _: 2 }, [
633
+ }, me({ _: 2 }, [
629
634
  t.$slots.menuIcon ? {
630
635
  name: "menuIcon",
631
636
  fn: y(({ isOpen: l, color: o }) => [
@@ -682,18 +687,18 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
682
687
  ]),
683
688
  key: "7"
684
689
  } : void 0
685
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
690
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
686
691
  (s(), v("svg", {
687
692
  ref_key: "svgRef",
688
- ref: Be,
689
- xmlns: c(Wt),
690
- class: Je({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
691
- viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
693
+ ref: Fe,
694
+ xmlns: c(Gt),
695
+ class: Qe({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
696
+ viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
692
697
  style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
693
698
  }, [
694
- oe(c(it)),
695
- x("defs", null, [
696
- (s(!0), v($, null, z(r.value, (l, o) => (s(), v("radialGradient", {
699
+ oe(c(ct)),
700
+ k("defs", null, [
701
+ (s(!0), v($, null, D(r.value, (l, o) => (s(), v("radialGradient", {
697
702
  cx: "50%",
698
703
  cy: "50%",
699
704
  r: "50%",
@@ -701,160 +706,160 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
701
706
  fy: "50%",
702
707
  id: `gradient_${b.value}_${o}`
703
708
  }, [
704
- x("stop", {
709
+ k("stop", {
705
710
  offset: "0%",
706
- "stop-color": c(Gt)(c(jt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
707
- }, null, 8, fl),
708
- x("stop", {
711
+ "stop-color": c(jt)(c(qt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
712
+ }, null, 8, yl),
713
+ k("stop", {
709
714
  offset: "100%",
710
715
  "stop-color": l.color
711
- }, null, 8, yl)
712
- ], 8, pl))), 256))
716
+ }, null, 8, gl)
717
+ ], 8, fl))), 256))
713
718
  ]),
714
- x("defs", null, [
715
- x("filter", {
719
+ k("defs", null, [
720
+ k("filter", {
716
721
  id: `blur_${b.value}`,
717
722
  x: "-50%",
718
723
  y: "-50%",
719
724
  width: "200%",
720
725
  height: "200%"
721
- }, [...a[6] || (a[6] = [
722
- x("feGaussianBlur", {
726
+ }, [...a[4] || (a[4] = [
727
+ k("feGaussianBlur", {
723
728
  in: "SourceGraphic",
724
729
  stdDeviation: 2
725
730
  }, null, -1),
726
- x("feColorMatrix", {
731
+ k("feColorMatrix", {
727
732
  type: "saturate",
728
733
  values: "0"
729
734
  }, null, -1)
730
- ])], 8, gl)
735
+ ])], 8, bl)
731
736
  ]),
732
- e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 }, z(W.value, (l, o) => (s(), v("foreignObject", {
737
+ e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 }, D(W.value, (l, o) => (s(), v("foreignObject", {
733
738
  x: l.x,
734
739
  y: l.y,
735
740
  height: A.value <= 0 ? 1e-4 : A.value,
736
- width: _.value <= 0 ? 1e-4 : _.value,
741
+ width: T.value <= 0 ? 1e-4 : T.value,
737
742
  class: "vue-ui-waffle-custom-cell-foreignObject"
738
743
  }, [
739
- g(t.$slots, "cell", me({ ref_for: !0 }, { cell: { ...l, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(E.value) ? !0 : r.value[o].serieIndex === E.value }), void 0, !0)
740
- ], 8, bl))), 256)) : m("", !0),
744
+ g(t.$slots, "cell", we({ ref_for: !0 }, { cell: { ...l, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(E.value) ? !0 : r.value[o].serieIndex === E.value }), void 0, !0)
745
+ ], 8, ml))), 256)) : m("", !0),
741
746
  !r.value.length && !e.value.useCustomCells ? (s(), v("rect", {
742
747
  key: 1,
743
748
  x: 12,
744
749
  y: 12,
745
- height: T.value.height - 24,
746
- width: T.value.width - 24,
750
+ height: _.value.height - 24,
751
+ width: _.value.width - 24,
747
752
  rx: 3,
748
753
  fill: "none",
749
754
  stroke: "black"
750
- }, null, 8, ml)) : r.value.length && !e.value.useCustomCells ? (s(), v($, { key: 2 }, [
751
- t.$slots.pattern ? (s(), v("g", wl, [
752
- (s(!0), v($, null, z(de.value, (l) => (s(), v("defs", null, [
753
- g(t.$slots, "pattern", me({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${b.value}_${l.absoluteIndex}` }), void 0, !0)
755
+ }, null, 8, wl)) : r.value.length && !e.value.useCustomCells ? (s(), v($, { key: 2 }, [
756
+ t.$slots.pattern ? (s(), v("g", kl, [
757
+ (s(!0), v($, null, D(he.value, (l) => (s(), v("defs", null, [
758
+ g(t.$slots, "pattern", we({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${b.value}_${l.absoluteIndex}` }), void 0, !0)
754
759
  ]))), 256))
755
760
  ])) : m("", !0),
756
- (s(!0), v($, null, z(W.value, (l, o) => (s(), v("rect", {
761
+ (s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
757
762
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
758
763
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
759
764
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
760
765
  height: A.value <= 0 ? 1e-4 : A.value,
761
- width: _.value <= 0 ? 1e-4 : _.value,
766
+ width: T.value <= 0 ? 1e-4 : T.value,
762
767
  fill: "white",
763
768
  stroke: e.value.style.chart.layout.rect.stroke,
764
769
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
765
770
  filter: ee(r.value[o].serieIndex)
766
- }, null, 8, kl))), 256)),
767
- (s(!0), v($, null, z(W.value, (l, o) => (s(), v("rect", {
771
+ }, null, 8, xl))), 256)),
772
+ (s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
768
773
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
769
774
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
770
775
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
771
776
  height: A.value <= 0 ? 1e-4 : A.value,
772
- width: _.value <= 0 ? 1e-4 : _.value,
777
+ width: T.value <= 0 ? 1e-4 : T.value,
773
778
  fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${b.value}_${o})` : r.value[o].color,
774
779
  stroke: e.value.style.chart.layout.rect.stroke,
775
780
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
776
781
  filter: ee(r.value[o].serieIndex)
777
- }, null, 8, xl))), 256)),
778
- t.$slots.pattern ? (s(), v("g", Cl, [
779
- (s(!0), v($, null, z(W.value, (l, o) => (s(), v("rect", {
782
+ }, null, 8, Cl))), 256)),
783
+ t.$slots.pattern ? (s(), v("g", $l, [
784
+ (s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
780
785
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
781
786
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
782
787
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
783
788
  height: A.value <= 0 ? 1e-4 : A.value,
784
- width: _.value <= 0 ? 1e-4 : _.value,
789
+ width: T.value <= 0 ? 1e-4 : T.value,
785
790
  fill: `url(#pattern_${b.value}_${r.value[o].absoluteIndex})`,
786
791
  stroke: "none",
787
792
  filter: ee(r.value[o].serieIndex)
788
- }, null, 8, $l))), 256))
793
+ }, null, 8, Il))), 256))
789
794
  ])) : m("", !0)
790
795
  ], 64)) : m("", !0),
791
- (s(!0), v($, null, z(W.value, (l, o) => (s(), v($, null, [
796
+ (s(!0), v($, null, D(W.value, (l, o) => (s(), v($, null, [
792
797
  Tt(o, l) ? (s(), v("text", {
793
798
  key: `datalabel_${o}`,
794
- textContent: M(_t(o, l)),
799
+ textContent: M(At(o, l)),
795
800
  x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
796
- y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ee.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
801
+ y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ue.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
797
802
  "font-size": e.value.style.chart.layout.labels.captions.fontSize,
798
- fill: c(qt)(r.value[o].color),
803
+ fill: c(Ht)(r.value[o].color),
799
804
  filter: ee(r.value[o].serieIndex)
800
- }, null, 8, Il)) : m("", !0)
805
+ }, null, 8, _l)) : m("", !0)
801
806
  ], 64))), 256)),
802
- (s(!0), v($, null, z(W.value, (l, o) => (s(), v("rect", {
807
+ (s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
803
808
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
804
809
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
805
- height: Ee.value,
806
- width: ft.value,
810
+ height: Ue.value,
811
+ width: yt.value,
807
812
  fill: "transparent",
808
813
  stroke: "none",
809
- onMouseover: (u) => $t(o),
810
- onMouseleave: (u) => Ct(o),
811
- onClick: (u) => xt(o)
814
+ onMouseover: (u) => It(o),
815
+ onMouseleave: (u) => $t(o),
816
+ onClick: (u) => Ct(o)
812
817
  }, null, 40, Tl))), 256)),
813
- g(t.$slots, "svg", { svg: N.value }, void 0, !0)
814
- ], 14, hl)),
815
- t.$slots.watermark ? (s(), v("div", _l, [
816
- g(t.$slots, "watermark", j(q({ isPrinting: c(Ne) || c(De) })), void 0, !0)
818
+ g(t.$slots, "svg", { svg: z.value }, void 0, !0)
819
+ ], 14, pl)),
820
+ t.$slots.watermark ? (s(), v("div", Al, [
821
+ g(t.$slots, "watermark", j(q({ isPrinting: c(Ne) || c(Ve) })), void 0, !0)
817
822
  ])) : m("", !0),
818
- x("div", {
823
+ k("div", {
819
824
  id: `legend-bottom-${b.value}`
820
- }, null, 8, Al),
821
- Se.value ? (s(), F(Bt, {
825
+ }, null, 8, Sl),
826
+ Pe.value ? (s(), F(Ft, {
822
827
  key: 5,
823
828
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
824
829
  }, [
825
- x("div", {
830
+ k("div", {
826
831
  ref_key: "chartLegend",
827
- ref: Ce
832
+ ref: $e
828
833
  }, [
829
- e.value.style.chart.legend.show ? (s(), F(il, {
830
- key: `legend_${Ae.value}`,
834
+ e.value.style.chart.legend.show ? (s(), F(vl, {
835
+ key: `legend_${Se.value}`,
831
836
  legendSet: G.value,
832
- config: kt.value,
833
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => je(l.uid))
834
- }, be({
837
+ config: xt.value,
838
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => qe(l.uid))
839
+ }, me({
835
840
  item: y(({ legend: l }) => [
836
- x("div", {
841
+ k("div", {
837
842
  onClick: (o) => l.segregate(),
838
843
  style: ae(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
839
844
  }, M(l.name) + M(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + M(e.value.style.chart.legend.showValue ? c(Q)(
840
845
  e.value.style.chart.layout.labels.dataLabels.formatter,
841
846
  l.value,
842
- c(L)({
847
+ c(O)({
843
848
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
844
849
  v: l.value,
845
850
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
846
851
  r: e.value.style.chart.legend.roundingValue,
847
- isAnimating: D.value
852
+ isAnimating: N.value
848
853
  }),
849
854
  { datapoint: l }
850
- ) : "") + " " + M(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 / S.value) ? "-" : c(L)({ v: l.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: D.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Sl)
855
+ ) : "") + " " + M(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 / S.value) ? "-" : c(O)({ v: l.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Pl)
851
856
  ]),
852
857
  _: 2
853
858
  }, [
854
859
  t.$slots.pattern ? {
855
860
  name: "legend-pattern",
856
861
  fn: y(({ legend: l, index: o }) => [
857
- oe(nl, {
862
+ oe(rl, {
858
863
  shape: l.shape,
859
864
  radius: 30,
860
865
  stroke: "none",
@@ -873,13 +878,13 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
873
878
  t.$slots.source ? (s(), v("div", {
874
879
  key: 6,
875
880
  ref_key: "source",
876
- ref: $e,
881
+ ref: Ie,
877
882
  dir: "auto"
878
883
  }, [
879
884
  g(t.$slots, "source", {}, void 0, !0)
880
885
  ], 512)) : m("", !0),
881
- oe(c(at), {
882
- show: k.value.showTooltip && se.value && f.value.length < w.dataset.length,
886
+ oe(c(ut), {
887
+ show: x.value.showTooltip && se.value && f.value.length < w.dataset.length,
883
888
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
884
889
  color: e.value.style.chart.tooltip.color,
885
890
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -897,37 +902,37 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
897
902
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
898
903
  }, {
899
904
  "tooltip-before": y(() => [
900
- g(t.$slots, "tooltip-before", j(q({ ...he.value })), void 0, !0)
905
+ g(t.$slots, "tooltip-before", j(q({ ...pe.value })), void 0, !0)
901
906
  ]),
902
907
  "tooltip-after": y(() => [
903
- g(t.$slots, "tooltip-after", j(q({ ...he.value })), void 0, !0)
908
+ g(t.$slots, "tooltip-after", j(q({ ...pe.value })), void 0, !0)
904
909
  ]),
905
910
  _: 3
906
911
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter"]),
907
- ue.value ? (s(), F(Ft(J.value.component), me({ key: 7 }, J.value.props, {
912
+ ue.value ? (s(), F(Dt(J.value.component), we({ key: 7 }, J.value.props, {
908
913
  ref_key: "tableUnit",
909
914
  ref: H,
910
- onClose: a[3] || (a[3] = (l) => k.value.showTable = !1)
911
- }), be({
915
+ onClose: Je
916
+ }), me({
912
917
  content: y(() => [
913
- (s(), F(c(ut), {
914
- key: `table_${_e.value}`,
918
+ (s(), F(c(nt), {
919
+ key: `table_${Ae.value}`,
915
920
  colNames: te.value.colNames,
916
921
  head: te.value.head,
917
922
  body: te.value.body,
918
923
  config: te.value.config,
919
924
  title: e.value.table.useDialog ? "" : J.value.title,
920
925
  withCloseButton: !e.value.table.useDialog,
921
- onClose: a[2] || (a[2] = (l) => k.value.showTable = !1)
926
+ onClose: Je
922
927
  }, {
923
928
  th: y(({ th: l }) => [
924
- x("div", {
929
+ k("div", {
925
930
  innerHTML: l,
926
931
  style: { display: "flex", "align-items": "center" }
927
- }, null, 8, Pl)
932
+ }, null, 8, Ol)
928
933
  ]),
929
934
  td: y(({ td: l }) => [
930
- Ke(M(l.name || l), 1)
935
+ Ze(M(l.name || l), 1)
931
936
  ]),
932
937
  _: 1
933
938
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -937,19 +942,19 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
937
942
  e.value.table.useDialog ? {
938
943
  name: "title",
939
944
  fn: y(() => [
940
- Ke(M(J.value.title), 1)
945
+ Ze(M(J.value.title), 1)
941
946
  ]),
942
947
  key: "0"
943
948
  } : void 0,
944
949
  e.value.table.useDialog ? {
945
950
  name: "actions",
946
951
  fn: y(() => [
947
- x("button", {
952
+ k("button", {
948
953
  tabindex: "0",
949
954
  class: "vue-ui-user-options-button",
950
- onClick: a[1] || (a[1] = (l) => fe(e.value.userOptions.callbacks.csv))
955
+ onClick: a[1] || (a[1] = (l) => ye(e.value.userOptions.callbacks.csv))
951
956
  }, [
952
- oe(c(ot), {
957
+ oe(c(st), {
953
958
  name: "excel",
954
959
  stroke: J.value.props.color
955
960
  }, null, 8, ["stroke"])
@@ -958,10 +963,10 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
958
963
  key: "1"
959
964
  } : void 0
960
965
  ]), 1040)) : m("", !0),
961
- c(Pe) ? (s(), F(ll, { key: 8 })) : m("", !0)
962
- ], 46, cl));
966
+ c(Oe) ? (s(), F(al, { key: 8 })) : m("", !0)
967
+ ], 46, dl));
963
968
  }
964
- }, jl = /* @__PURE__ */ vl(Ll, [["__scopeId", "data-v-4f453350"]]);
969
+ }, ql = /* @__PURE__ */ cl(Ll, [["__scopeId", "data-v-854ba354"]]);
965
970
  export {
966
- jl as default
971
+ ql as default
967
972
  };