vue-data-ui 3.5.0 → 3.5.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 (144) hide show
  1. package/README.md +26 -0
  2. package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
  3. package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
  4. package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-Y7t79Jtq.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-BzH_LEA3.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-accordion.js +1 -1
  9. package/dist/components/vue-ui-age-pyramid.js +1 -1
  10. package/dist/components/vue-ui-annotator.js +1 -1
  11. package/dist/components/vue-ui-bullet.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +17 -8
  72. package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-CReNavA0.js} +23 -9
  73. package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-BRaq4hRp.js} +63 -63
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-BB4ii8Nt.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-BmFTVF1a.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-8bUepd28.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-CcpaXBNK.js} +3 -3
  79. package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BvT4scFv.js} +190 -170
  80. package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-CMP7UL6z.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-CzOcKsDj.js} +2 -2
  82. package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-S787oASt.js} +375 -355
  83. package/dist/vue-ui-chord-Dl9Y4mcz.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-CU09BzOV.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-C3yD_TUr.js} +1 -1
  86. package/dist/vue-ui-dashboard-BfEcVRxQ.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-pRh179Gg.js} +1 -1
  88. package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-B_tEm4dT.js} +462 -442
  89. package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-DiGhMwMO.js} +293 -273
  90. package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-BlF3CLbN.js} +210 -190
  91. package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-BQi5L8mJ.js} +339 -319
  92. package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-CM_6Sare.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-BnZA62Li.js} +201 -181
  94. package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-DAk72bez.js} +311 -291
  95. package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BQzQlUJ8.js} +2 -2
  96. package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-C9MhHWpp.js} +303 -283
  97. package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-BYQh3E8U.js} +229 -209
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-jcrPjW4C.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-DTM98mRN.js} +1 -1
  100. package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-Bd1OXvl3.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-DuoiTsYn.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-BTswQFjz.js} +506 -486
  103. package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-D-1U2Qgl.js} +220 -200
  104. package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-D-7VFHas.js} +235 -215
  105. package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-CeM23s0z.js} +463 -443
  106. package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-C0RMQzjC.js} +288 -268
  107. package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-BSfxyur3.js} +331 -311
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-tj97undO.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-C7uV2mIj.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CYMfTlwI.js} +242 -222
  111. package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-C96aj57d.js} +189 -169
  112. package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CtvOXUnx.js} +275 -255
  113. package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-87TORm6s.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-B74geHT3.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-6_Ibziyv.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-BDCocMLI.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-CQ4Zk9-f.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-BlTV9wfn.js} +143 -140
  119. package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-DWESyiqL.js} +2 -2
  120. package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-DK_7X8mL.js} +2 -2
  121. package/dist/vue-ui-stackbar-BWuw8ff4.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-C1N2n39d.js} +245 -225
  123. package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-CcuoPHgI.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-C9EMEM3Z.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-BAxmZRff.js} +2 -2
  126. package/dist/vue-ui-thermometer-CDrM-WFq.js +584 -0
  127. package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BVsUQJz_.js} +3 -3
  128. package/dist/vue-ui-tiremarks-BQH2pNkG.js +450 -0
  129. package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-6WLoCHsH.js} +453 -433
  130. package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-B3gfBqD_.js} +323 -303
  131. package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-Bhlqo4xM.js} +219 -199
  132. package/dist/vue-ui-wheel-CqHw1WuW.js +663 -0
  133. package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-CKuWZGLv.js} +248 -228
  134. package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-C8KVyDim.js} +287 -267
  135. package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-Cz2qIEfi.js} +389 -369
  136. package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-y4h7gEFp.js} +4 -4
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
  140. package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
  141. package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
  142. package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
  143. package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
  144. package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
@@ -1,19 +1,19 @@
1
- import { defineAsyncComponent as F, useSlots as Rt, computed as c, ref as i, toRefs as Ut, watch as J, shallowRef as et, onMounted as Et, onBeforeUnmount as Wt, createElementBlock as v, openBlock as n, unref as h, normalizeStyle as ae, normalizeClass as tt, createBlock as B, createCommentVNode as m, createElementVNode as k, createVNode as oe, createSlots as Ce, withCtx as g, renderSlot as y, normalizeProps as W, guardReactiveProps as G, Fragment as $, renderList as D, mergeProps as xe, toDisplayString as ue, Teleport as Gt, resolveDynamicComponent as Ht, createTextVNode as lt, nextTick as jt } from "vue";
2
- import { c as qt, t as Xt, b as Yt, p as M, o as at, f as $e, g as Jt, e as Qt, a as Q, d as P, X as Kt, s as Zt, i as el, J as tl, h as ll, P as al, Q as ol, I as ul, G as sl, H as nl } from "./lib-C_mNZmhD.js";
1
+ import { defineAsyncComponent as D, useSlots as Rt, computed as c, ref as i, toRefs as Ut, watch as J, shallowRef as et, onMounted as Et, onBeforeUnmount as Wt, createElementBlock as v, openBlock as s, unref as h, normalizeStyle as ae, normalizeClass as tt, createBlock as V, createCommentVNode as m, createElementVNode as k, createVNode as oe, withCtx as f, renderSlot as p, normalizeProps as x, guardReactiveProps as T, createSlots as Ce, Fragment as I, renderList as N, mergeProps as $e, toDisplayString as ue, Teleport as Gt, resolveDynamicComponent as Ht, createTextVNode as lt, nextTick as jt } from "vue";
2
+ import { c as qt, t as Xt, b as Yt, p as U, o as at, f as xe, g as Jt, e as Qt, a as Q, d as F, X as Kt, s as Zt, i as el, J as tl, h as ll, P as al, Q as ol, I as ul, G as nl, H as sl } from "./lib-C_mNZmhD.js";
3
3
  import { t as rl, u as il } from "./useResponsive-DfdjqQps.js";
4
- import { u as vl, a as ot } from "./useNestedProp-BjZe1Y85.js";
4
+ import { u as vl, a as ot } from "./useNestedProp-CReNavA0.js";
5
5
  import { u as cl, B as dl } from "./BaseScanner-BgWxam9d.js";
6
6
  import { u as hl } from "./usePrinter-DTzqpYKF.js";
7
- import { u as pl } from "./useSvgExport-DrjCWun4.js";
8
- import { u as fl } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as fl } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
9
9
  import { u as gl } from "./useChartAccessibility-9icAAmYg.js";
10
10
  import yl from "./img-BecE5qXd.js";
11
11
  import { _ as bl } from "./Shape-CNXKB8O0.js";
12
- import ml from "./Title-l36lOBMx.js";
12
+ import ml from "./Title-BzH_LEA3.js";
13
13
  import { t as wl } from "./themes-AUNCOb2G.js";
14
14
  import kl from "./Legend-G6GMcdAc.js";
15
15
  import { _ as Cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["stop-color"], _l = ["stop-color"], Al = ["id"], Ol = ["x", "y", "height", "width"], Pl = ["height", "width"], Ll = { key: 0 }, Fl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Bl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Dl = { key: 1 }, Vl = ["rx", "x", "y", "height", "width", "fill", "filter"], Nl = ["textContent", "x", "y", "font-size", "fill", "filter"], zl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Ml = {
16
+ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["stop-color"], _l = ["stop-color"], Al = ["id"], Ol = ["x", "y", "height", "width"], Pl = ["height", "width"], Ll = { key: 0 }, Fl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Bl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Dl = { key: 1 }, Vl = ["rx", "x", "y", "height", "width", "fill", "filter"], Nl = ["textContent", "x", "y", "font-size", "fill", "filter"], zl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Ml = {
17
17
  key: 4,
18
18
  class: "vue-data-ui-watermark"
19
19
  }, Rl = ["id"], Ul = ["onClick"], El = ["innerHTML"], Wl = {
@@ -33,14 +33,14 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
33
33
  }
34
34
  },
35
35
  emits: ["selectLegend"],
36
- setup(ut, { expose: st, emit: nt }) {
37
- const rt = F(() => import("./Tooltip-oWCO1HKy.js")), it = F(() => import("./BaseIcon-BmMbm4d0.js")), vt = F(() => import("./DataTable-BT7VF2ua.js")), ct = F(() => import("./vue-ui-accordion-CZ0thhxa.js")), dt = F(() => import("./UserOptions-CGnQt6Fd.js")), ht = F(() => import("./PenAndPaper-DSvu9dwa.js")), pt = F(() => import("./PackageVersion-Cyx_s25h.js")), ft = F(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_waffle: gt } = vl(), w = ut, yt = Rt(), se = c(() => !!w.dataset && w.dataset.length), b = i(qt()), ne = i(!1), re = i(""), R = i(null), Te = i(0), T = i(null), Ie = i(null), Se = i(null), _e = i(null), Ae = i(null), Oe = i(0), Pe = i(0), Le = i(0), Fe = i(!1), H = i(null), ie = i(null), e = i(he()), { loading: Be, FINAL_DATASET: K, manualLoading: ve } = cl({
36
+ setup(ut, { expose: nt, emit: st }) {
37
+ const rt = D(() => import("./Tooltip-oWCO1HKy.js")), it = D(() => import("./BaseIcon-BmMbm4d0.js")), vt = D(() => import("./DataTable-BT7VF2ua.js")), ct = D(() => import("./vue-ui-accordion-BmFTVF1a.js")), dt = D(() => import("./UserOptions-CGnQt6Fd.js")), ht = D(() => import("./PenAndPaper-SZQIAgkg.js")), ft = D(() => import("./PackageVersion-Y7t79Jtq.js")), pt = D(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_waffle: gt } = vl(), w = ut, yt = Rt(), ne = c(() => !!w.dataset && w.dataset.length), b = i(qt()), se = i(!1), re = i(""), E = i(null), Te = i(0), S = i(null), Ie = i(null), Se = i(null), _e = i(null), Ae = i(null), Oe = i(0), Pe = i(0), Le = i(0), Fe = i(!1), H = i(null), ie = i(null), e = i(he()), { loading: Be, FINAL_DATASET: K, manualLoading: ve } = cl({
38
38
  ...Ut(w),
39
39
  FINAL_CONFIG: e,
40
40
  prepareConfig: he,
41
41
  callback: () => {
42
42
  Promise.resolve().then(async () => {
43
- p.value = pe();
43
+ g.value = fe();
44
44
  });
45
45
  },
46
46
  skeletonDataset: [
@@ -86,7 +86,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
86
86
  }
87
87
  }
88
88
  })
89
- }), { userOptionsVisible: ce, setUserOptionsVisibility: De, keepUserOptionState: Ve } = fl({ config: e.value }), { svgRef: de } = gl({ config: e.value.style.chart.title });
89
+ }), { userOptionsVisible: ce, setUserOptionsVisibility: De, keepUserOptionState: Ve } = pl({ config: e.value }), { svgRef: de } = gl({ config: e.value.style.chart.title });
90
90
  function he() {
91
91
  const t = ot({
92
92
  userConfig: w.config,
@@ -97,24 +97,24 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
97
97
  userConfig: wl.vue_ui_waffle[t.theme] || w.config,
98
98
  defaultConfig: t
99
99
  }),
100
- customPalette: Yt[t.theme] || M
100
+ customPalette: Yt[t.theme] || U
101
101
  } : t;
102
102
  }
103
103
  J(() => w.config, (t) => {
104
104
  Be.value || (e.value = he()), ce.value = !e.value.userOptions.showOnChartHover, ze(), Oe.value += 1, Pe.value += 1, Le.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
105
105
  }, { deep: !0 });
106
- const L = et(null), U = et(null), Ne = c(() => !!e.value.debug);
106
+ const B = et(null), W = et(null), Ne = c(() => !!e.value.debug);
107
107
  function ze() {
108
- if (at(w.dataset) ? ($e({
108
+ if (at(w.dataset) ? (xe({
109
109
  componentName: "VueUiWaffle",
110
110
  type: "dataset",
111
111
  debug: Ne.value
112
- }), se.value = !1, ve.value = !0) : w.dataset.forEach((t, l) => {
112
+ }), ne.value = !1, ve.value = !0) : w.dataset.forEach((t, l) => {
113
113
  Jt({
114
114
  datasetObject: t,
115
115
  requiredAttributes: ["name", "values"]
116
116
  }).forEach((a) => {
117
- $e({
117
+ xe({
118
118
  componentName: "VueUiWaffle",
119
119
  type: "datasetSerieAttribute",
120
120
  property: a,
@@ -125,23 +125,23 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
125
125
  }), at(w.dataset) || (ve.value = e.value.loading), e.value.responsive) {
126
126
  const t = rl(() => {
127
127
  const { width: l, height: a } = il({
128
- chart: T.value,
128
+ chart: S.value,
129
129
  title: e.value.style.chart.title.text ? Ie.value : null,
130
130
  legend: e.value.style.chart.legend.show ? Se.value : null,
131
131
  source: _e.value,
132
132
  noTitle: Ae.value
133
133
  });
134
134
  requestAnimationFrame(() => {
135
- V.value.width = l, V.value.height = a, I.value.width = l, I.value.height = a;
135
+ z.value.width = l, z.value.height = a, _.value.width = l, _.value.height = a;
136
136
  });
137
137
  });
138
- L.value && (U.value && L.value.unobserve(U.value), L.value.disconnect()), L.value = new ResizeObserver(t), U.value = T.value.parentNode, L.value.observe(U.value);
138
+ B.value && (W.value && B.value.unobserve(W.value), B.value.disconnect()), B.value = new ResizeObserver(t), W.value = S.value.parentNode, B.value.observe(W.value);
139
139
  }
140
140
  }
141
141
  Et(() => {
142
142
  Fe.value = !0, ze();
143
143
  }), Wt(() => {
144
- L.value && (U.value && L.value.unobserve(U.value), L.value.disconnect());
144
+ B.value && (W.value && B.value.unobserve(W.value), B.value.disconnect());
145
145
  });
146
146
  const { isPrinting: Me, isImaging: Re, generatePdf: Ue, generateImage: Ee } = hl({
147
147
  elementId: `vue-ui-waffle_${b.value}`,
@@ -157,53 +157,53 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
157
157
  showTooltip: e.value.style.chart.tooltip.show
158
158
  };
159
159
  }, { immediate: !0 });
160
- const V = i({
160
+ const z = i({
161
161
  height: 512,
162
162
  width: 512
163
- }), I = i({
163
+ }), _ = i({
164
164
  top: 0,
165
165
  left: 0,
166
166
  height: 512,
167
167
  width: 512
168
- }), S = c(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), _ = c(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), mt = c(() => Math.max(1e-4, I.value.width / e.value.style.chart.layout.grid.size)), Ge = c(() => Math.max(1e-4, I.value.height / e.value.style.chart.layout.grid.size));
168
+ }), A = c(() => (_.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), O = c(() => (_.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), mt = c(() => Math.max(1e-4, _.value.width / e.value.style.chart.layout.grid.size)), Ge = c(() => Math.max(1e-4, _.value.height / e.value.style.chart.layout.grid.size));
169
169
  function He(t) {
170
- const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce((x, ke) => x + ke, 0), o = t.map((x) => x / a * l), u = o.map(Math.floor), s = o.map((x) => x % 1);
171
- let d = l - u.reduce((x, ke) => x + ke, 0);
170
+ const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce(($, ke) => $ + ke, 0), o = t.map(($) => $ / a * l), u = o.map(Math.floor), n = o.map(($) => $ % 1);
171
+ let d = l - u.reduce(($, ke) => $ + ke, 0);
172
172
  for (; d > 0; ) {
173
- let x = s.indexOf(Math.max(...s));
174
- u[x] += 1, s[x] = 0, d -= 1;
173
+ let $ = n.indexOf(Math.max(...n));
174
+ u[$] += 1, n[$] = 0, d -= 1;
175
175
  }
176
176
  return u;
177
177
  }
178
178
  const j = i(!1);
179
- function pe() {
179
+ function fe() {
180
180
  return j.value = K.value.flatMap((t) => t.values.reduce((l, a) => l + a, 0)).reduce((t, l) => t + l, 0) === 0, K.value.map((t, l) => ({
181
181
  ...t,
182
- color: ll(t.color) || We.value[l] || M[l] || M[l % M.length],
182
+ color: ll(t.color) || We.value[l] || U[l] || U[l % U.length],
183
183
  uid: `serie_${l}`,
184
184
  absoluteIndex: l
185
185
  }));
186
186
  }
187
- const fe = c(() => pe()), p = i(fe.value);
187
+ const pe = c(() => fe()), g = i(pe.value);
188
188
  J(() => w.dataset, (t) => {
189
189
  Array.isArray(t) && t.length > 0 && (ve.value = !1);
190
190
  }, { immediate: !0 }), J(() => w.dataset, (t) => {
191
- p.value = pe();
191
+ g.value = fe();
192
192
  }, { deep: !0 });
193
193
  const wt = c(() => {
194
- const t = p.value.filter((l, a) => !f.value.includes(l.uid)).map((l, a) => j.value ? 1 : (l.values || []).reduce((o, u) => o + u, 0));
194
+ const t = g.value.filter((l, a) => !y.value.includes(l.uid)).map((l, a) => j.value ? 1 : (l.values || []).reduce((o, u) => o + u, 0));
195
195
  return He(t);
196
196
  }), kt = c(() => {
197
- const t = p.value.map((l, a) => j.value ? 1 : (l.values || []).reduce((o, u) => o + u));
197
+ const t = g.value.map((l, a) => j.value ? 1 : (l.values || []).reduce((o, u) => o + u));
198
198
  return He(t);
199
199
  }), q = c(() => (K.value.forEach((t, l) => {
200
- [null, void 0].includes(t.values) && $e({
200
+ [null, void 0].includes(t.values) && xe({
201
201
  componentName: "VueUiWaffle",
202
202
  type: "datasetSerieAttribute",
203
203
  property: "values (number[])",
204
204
  index: l
205
205
  });
206
- }), p.value.filter((t, l) => !f.value.includes(t.uid)).map((t, l) => ({
206
+ }), g.value.filter((t, l) => !y.value.includes(t.uid)).map((t, l) => ({
207
207
  absoluteIndex: t.absoluteIndex,
208
208
  uid: t.uid,
209
209
  name: t.name,
@@ -211,7 +211,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
211
211
  value: (t.values || []).reduce((a, o) => a + o, 0),
212
212
  absoluteValues: t.values || [],
213
213
  proportion: wt.value[l]
214
- })))), ge = c(() => p.value.map((t, l) => ({
214
+ })))), ge = c(() => g.value.map((t, l) => ({
215
215
  absoluteIndex: t.absoluteIndex,
216
216
  uid: t.uid,
217
217
  name: t.name,
@@ -228,19 +228,19 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
228
228
  proportion: t.proportion
229
229
  }));
230
230
  }
231
- const xt = c(() => {
231
+ const $t = c(() => {
232
232
  let t = 0;
233
233
  return q.value.map((l, a) => {
234
- const o = t, u = o + l.proportion, s = [];
234
+ const o = t, u = o + l.proportion, n = [];
235
235
  for (let d = Math.floor(o); d < Math.floor(u); d += 1)
236
- s.push(d);
236
+ n.push(d);
237
237
  return t = u, {
238
238
  ...l,
239
239
  start: o,
240
- rects: s
240
+ rects: n
241
241
  };
242
242
  });
243
- }), r = c(() => xt.value.flatMap((t, l) => t.rects.map((a, o) => ({
243
+ }), r = c(() => $t.value.flatMap((t, l) => t.rects.map((a, o) => ({
244
244
  isFirst: o === 0,
245
245
  isLongEnough: a.length > 2,
246
246
  name: t.name,
@@ -253,49 +253,49 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
253
253
  }))).map((t, l) => ({
254
254
  ...t,
255
255
  isAbsoluteFirst: l % e.value.style.chart.layout.grid.size === 0
256
- }))), E = c(() => {
256
+ }))), G = c(() => {
257
257
  const t = [];
258
258
  for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
259
259
  for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
260
260
  t.push({
261
261
  isStartOfLine: a === 0,
262
262
  position: e.value.style.chart.layout.grid.vertical ? l : a,
263
- x: (e.value.style.chart.layout.grid.vertical ? l : a) * (S.value + e.value.style.chart.layout.grid.spaceBetween),
264
- y: (e.value.style.chart.layout.grid.vertical ? a : l) * (_.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
263
+ x: (e.value.style.chart.layout.grid.vertical ? l : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween),
264
+ y: (e.value.style.chart.layout.grid.vertical ? a : l) * (O.value + e.value.style.chart.layout.grid.spaceBetween) + _.value.top
265
265
  });
266
266
  return t;
267
- }), f = i([]), X = i(!1), je = i(null), qe = i(null);
267
+ }), y = i([]), X = i(!1), je = i(null), qe = i(null);
268
268
  function Z(t) {
269
269
  if (j.value) return;
270
270
  if (!e.value.useAnimation) {
271
- f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < N.value.length - 1 && N.value.length > 1 && f.value.push(t);
271
+ y.value.includes(t) ? y.value = y.value.filter((u) => u !== t) : y.value.length < M.value.length - 1 && M.value.length > 1 && y.value.push(t);
272
272
  return;
273
273
  }
274
- const l = fe.value.find((u) => u.uid === t).values.reduce((u, s) => u + s, 0), a = p.value.find((u) => u.uid === t).values.reduce((u, s) => u + s, 0);
274
+ const l = pe.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0), a = g.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
275
275
  let o = a;
276
276
  if (!(a === 0 && l === 0)) {
277
- if (f.value.includes(t)) {
278
- let s = function() {
279
- o > u ? (cancelAnimationFrame(je.value), p.value = p.value.map((d, x) => d.uid === t ? {
277
+ if (y.value.includes(t)) {
278
+ let n = function() {
279
+ o > u ? (cancelAnimationFrame(je.value), g.value = g.value.map((d, $) => d.uid === t ? {
280
280
  ...d,
281
281
  values: [u]
282
- } : d), X.value = !1) : (X.value = !0, o += u * 0.025, p.value = p.value.map((d, x) => d.uid === t ? {
282
+ } : d), X.value = !1) : (X.value = !0, o += u * 0.025, g.value = g.value.map((d, $) => d.uid === t ? {
283
283
  ...d,
284
284
  values: [o]
285
- } : d), je.value = requestAnimationFrame(s));
285
+ } : d), je.value = requestAnimationFrame(n));
286
286
  };
287
- f.value = f.value.filter((d) => d !== t);
287
+ y.value = y.value.filter((d) => d !== t);
288
288
  const u = l;
289
- s();
290
- } else if (f.value.length < N.value.length - 1 && N.value.length > 1) {
289
+ n();
290
+ } else if (y.value.length < M.value.length - 1 && M.value.length > 1) {
291
291
  let u = function() {
292
- o < a / 100 ? (cancelAnimationFrame(qe.value), f.value.push(t), p.value = p.value.map((s, d) => s.uid === t ? {
293
- ...s,
292
+ o < a / 100 ? (cancelAnimationFrame(qe.value), y.value.push(t), g.value = g.value.map((n, d) => n.uid === t ? {
293
+ ...n,
294
294
  values: [0]
295
- } : s), X.value = !1) : (X.value = !0, o /= 1.15, p.value = p.value.map((s) => s.uid === t ? {
296
- ...s,
295
+ } : n), X.value = !1) : (X.value = !0, o /= 1.15, g.value = g.value.map((n) => n.uid === t ? {
296
+ ...n,
297
297
  values: [o]
298
- } : s), qe.value = requestAnimationFrame(u));
298
+ } : n), qe.value = requestAnimationFrame(u));
299
299
  };
300
300
  u();
301
301
  }
@@ -313,19 +313,19 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
313
313
  const l = ge.value.find((a) => a.name === t);
314
314
  return l || (e.value.debug && console.warn(`VueUiWaffle - Series name not found "${t}"`), null);
315
315
  }
316
- function $t(t) {
316
+ function xt(t) {
317
317
  const l = Xe(t);
318
- l !== null && f.value.includes(l.uid) && Z(l.uid);
318
+ l !== null && y.value.includes(l.uid) && Z(l.uid);
319
319
  }
320
320
  function Tt(t) {
321
321
  const l = Xe(t);
322
- l !== null && (f.value.includes(l.uid) || Z(l.uid));
322
+ l !== null && (y.value.includes(l.uid) || Z(l.uid));
323
323
  }
324
- const N = c(() => p.value.map((t, l) => {
325
- const a = (t.values || []).reduce((u, s) => u + s, 0), o = a / p.value.map((u) => (u.values || []).reduce((s, d) => s + d, 0)).reduce((u, s) => u + s, 0);
324
+ const M = c(() => g.value.map((t, l) => {
325
+ const a = (t.values || []).reduce((u, n) => u + n, 0), o = a / g.value.map((u) => (u.values || []).reduce((n, d) => n + d, 0)).reduce((u, n) => u + n, 0);
326
326
  return {
327
327
  name: t.name,
328
- color: t.color || We[l] || M[l] || M[l % M.length],
328
+ color: t.color || We[l] || U[l] || U[l % U.length],
329
329
  value: a,
330
330
  proportion: o,
331
331
  uid: t.uid,
@@ -333,15 +333,15 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
333
333
  };
334
334
  }).map((t, l) => ({
335
335
  ...t,
336
- opacity: f.value.includes(t.uid) ? 0.5 : 1,
336
+ opacity: y.value.includes(t.uid) ? 0.5 : 1,
337
337
  segregate: () => Z(t.uid),
338
- isSegregated: f.value.includes(t.uid),
339
- display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Q(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, P({
338
+ isSegregated: y.value.includes(t.uid),
339
+ display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Q(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, F({
340
340
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
341
341
  v: t.value,
342
342
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
343
343
  r: e.value.style.chart.legend.roundingValue
344
- }), { datapoint: t, index: l }) : ""}${e.value.style.chart.legend.showPercentage ? f.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / A.value) ? "-" : P({ v: t.value / A.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
344
+ }), { datapoint: t, index: l }) : ""}${e.value.style.chart.legend.showPercentage ? y.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / P.value) ? "-" : F({ v: t.value / P.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
345
345
  }))), It = c(() => ({
346
346
  cy: "waffle-div-legend",
347
347
  backgroundColor: e.value.style.chart.legend.backgroundColor,
@@ -349,35 +349,35 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
349
349
  fontSize: e.value.style.chart.legend.fontSize,
350
350
  paddingBottom: 12,
351
351
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
352
- })), A = c(() => q.value.map((t) => t.value).reduce((t, l) => t + l, 0)), ye = i(null), be = i(null);
352
+ })), P = c(() => q.value.map((t) => t.value).reduce((t, l) => t + l, 0)), ye = i(null), be = i(null);
353
353
  function St(t) {
354
354
  const l = r.value[t];
355
355
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.serieIndex });
356
356
  }
357
357
  function _t(t) {
358
358
  const l = r.value[t];
359
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), be.value = null, ne.value = !1, R.value = null;
359
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), be.value = null, se.value = !1, E.value = null;
360
360
  }
361
361
  function At(t) {
362
- if (f.value.length === w.dataset.length) return;
362
+ if (y.value.length === w.dataset.length) return;
363
363
  const l = r.value[t];
364
364
  ye.value = {
365
365
  datapoint: l,
366
366
  seriesIndex: l.absoluteIndex,
367
- series: p.value,
367
+ series: g.value,
368
368
  config: e.value
369
- }, e.value.events.datapointEnter && be.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), be.value = l.serieIndex, ne.value = !0, R.value = r.value[t].serieIndex;
369
+ }, e.value.events.datapointEnter && be.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), be.value = l.serieIndex, se.value = !0, E.value = r.value[t].serieIndex;
370
370
  const a = e.value.style.chart.tooltip.customFormat;
371
- if (sl(a) && nl(() => a({
371
+ if (nl(a) && sl(() => a({
372
372
  seriesIndex: r.value[t].absoluteIndex,
373
373
  datapoint: l,
374
- series: p.value,
374
+ series: g.value,
375
375
  config: e.value
376
376
  })))
377
377
  re.value = a({
378
378
  seriesIndex: r.value[t].absoluteIndex,
379
379
  datapoint: l,
380
- series: p.value,
380
+ series: g.value,
381
381
  config: e.value
382
382
  });
383
383
  else {
@@ -385,7 +385,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
385
385
  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;">${l.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="${l.color}" />${yt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${l.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Q(
386
386
  e.value.style.chart.layout.labels.dataLabels.formatter,
387
387
  l.value,
388
- P({
388
+ F({
389
389
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
390
390
  v: l.value,
391
391
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -394,11 +394,11 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
394
394
  {
395
395
  datapoint: l,
396
396
  seriesIndex: r.value[t].absoluteIndex,
397
- series: p.value
397
+ series: g.value
398
398
  }
399
399
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
400
- const u = P({
401
- v: j.value ? 1 / K.value.length * 100 : l.value / A.value * 100,
400
+ const u = F({
401
+ v: j.value ? 1 / K.value.length * 100 : l.value / P.value * 100,
402
402
  s: "%",
403
403
  r: e.value.style.chart.tooltip.roundingPercentage
404
404
  });
@@ -407,7 +407,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
407
407
  re.value = o;
408
408
  }
409
409
  }
410
- const Ot = nt, O = c(() => {
410
+ const Ot = st, L = c(() => {
411
411
  const t = q.value.map((a) => ({
412
412
  name: a.name,
413
413
  color: a.color
@@ -415,7 +415,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
415
415
  return { head: t, body: l };
416
416
  });
417
417
  function ee(t) {
418
- return e.value.useBlurOnHover && ![null, void 0].includes(R.value) && R.value !== t ? `url(#blur_${b.value})` : "";
418
+ return e.value.useBlurOnHover && ![null, void 0].includes(E.value) && E.value !== t ? `url(#blur_${b.value})` : "";
419
419
  }
420
420
  function Pt(t, l) {
421
421
  return e.value.style.chart.layout.labels.captions.show ? r.value.length && !X.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && l.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;
@@ -424,22 +424,22 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
424
424
  const a = Q(
425
425
  e.value.style.chart.layout.labels.dataLabels.formatter,
426
426
  r.value[t].value,
427
- P({
427
+ F({
428
428
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
429
429
  v: r.value[t].value,
430
430
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
431
431
  r: e.value.style.chart.layout.labels.captions.roundingValue
432
432
  }),
433
433
  { datapoint: r.value[t], position: l }
434
- ), 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 ? ul({ 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 : "";
434
+ ), o = F({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? ul({ 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 : "";
435
435
  let d = "";
436
- return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${a})` : 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 = a), `${s}${d}`;
436
+ return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${a})` : 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 = a), `${n}${d}`;
437
437
  }
438
438
  function me(t = null) {
439
439
  jt(() => {
440
- const l = O.value.head.map((u, s) => [[
440
+ const l = L.value.head.map((u, n) => [[
441
441
  u.name
442
- ], [O.value.body[s]], [isNaN(O.value.body[s] / A.value) ? "-" : O.value.body[s] / A.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), o = al(a);
442
+ ], [L.value.body[n]], [isNaN(L.value.body[n] / P.value) ? "-" : L.value.body[n] / P.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), o = al(a);
443
443
  t ? t(o) : ol({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
444
444
  });
445
445
  }
@@ -448,32 +448,32 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
448
448
  ' <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>',
449
449
  Q(
450
450
  e.value.style.chart.layout.labels.dataLabels.formatter,
451
- A.value,
452
- P({
451
+ P.value,
452
+ F({
453
453
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
454
- v: A.value,
454
+ v: P.value,
455
455
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
456
456
  r: e.value.table.td.roundingValue
457
457
  })
458
458
  ),
459
459
  "100%"
460
- ], l = O.value.head.map((u, s) => [
460
+ ], l = L.value.head.map((u, n) => [
461
461
  {
462
462
  color: u.color,
463
463
  name: u.name
464
464
  },
465
465
  Q(
466
466
  e.value.style.chart.layout.labels.dataLabels.formatter,
467
- O.value.body[s],
468
- P({
467
+ L.value.body[n],
468
+ F({
469
469
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
470
- v: O.value.body[s],
470
+ v: L.value.body[n],
471
471
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
472
472
  r: e.value.table.td.roundingValue
473
473
  })
474
474
  ),
475
- isNaN(O.value.body[s] / A.value) ? "-" : P({
476
- v: O.value.body[s] / A.value * 100,
475
+ isNaN(L.value.body[n] / P.value) ? "-" : F({
476
+ v: L.value.body[n] / P.value * 100,
477
477
  s: "%",
478
478
  r: e.value.table.td.roundingPercentage
479
479
  })
@@ -501,9 +501,9 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
501
501
  config: a,
502
502
  colNames: o
503
503
  };
504
- }), z = i(!1);
504
+ }), R = i(!1);
505
505
  function Ye(t) {
506
- z.value = t, Te.value += 1;
506
+ R.value = t, Te.value += 1;
507
507
  }
508
508
  function Je() {
509
509
  C.value.showTable = !C.value.showTable;
@@ -516,11 +516,11 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
516
516
  le.value = !le.value;
517
517
  }
518
518
  async function Ft({ scale: t = 2 } = {}) {
519
- if (!T.value) return;
520
- const { width: l, height: a } = T.value.getBoundingClientRect(), o = l / a, { imageUri: u, base64: s } = await yl({ domElement: T.value, base64: !0, img: !0, scale: t });
519
+ if (!S.value) return;
520
+ const { width: l, height: a } = S.value.getBoundingClientRect(), o = l / a, { imageUri: u, base64: n } = await yl({ domElement: S.value, base64: !0, img: !0, scale: t });
521
521
  return {
522
522
  imageUri: u,
523
- base64: s,
523
+ base64: n,
524
524
  title: e.value.style.chart.title.text,
525
525
  width: l,
526
526
  height: a,
@@ -530,15 +530,15 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
530
530
  const Y = c(() => {
531
531
  const t = e.value.table.useDialog && !e.value.table.show, l = C.value.showTable;
532
532
  return {
533
- component: t ? ft : ct,
533
+ component: t ? pt : ct,
534
534
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
535
535
  props: t ? {
536
536
  backgroundColor: e.value.table.th.backgroundColor,
537
537
  color: e.value.table.th.color,
538
538
  headerColor: e.value.table.th.color,
539
539
  headerBg: e.value.table.th.backgroundColor,
540
- isFullscreen: z.value,
541
- fullscreenParent: T.value,
540
+ isFullscreen: R.value,
541
+ fullscreenParent: S.value,
542
542
  forcedWidth: Math.min(500, window.innerWidth * 0.8)
543
543
  } : {
544
544
  hideDetails: !0,
@@ -563,10 +563,10 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
563
563
  function Ke() {
564
564
  C.value.showTable = !1, ie.value && ie.value.setTableIconState(!1);
565
565
  }
566
- const Bt = c(() => N.value.map((t) => ({
566
+ const Bt = c(() => M.value.map((t) => ({
567
567
  ...t,
568
568
  name: t.display
569
- }))), Dt = c(() => e.value.style.chart.backgroundColor), Vt = c(() => e.value.style.chart.legend), Nt = c(() => e.value.style.chart.title), { exportSvg: zt, getSvg: Mt } = pl({
569
+ }))), Dt = c(() => e.value.style.chart.backgroundColor), Vt = c(() => e.value.style.chart.legend), Nt = c(() => e.value.style.chart.title), { exportSvg: zt, getSvg: Mt } = fl({
570
570
  svg: de,
571
571
  title: Nt,
572
572
  legend: Vt,
@@ -580,7 +580,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
580
580
  } else
581
581
  zt();
582
582
  }
583
- return st({
583
+ return nt({
584
584
  getData: Ct,
585
585
  getImage: Ft,
586
586
  generatePdf: Ue,
@@ -588,42 +588,62 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
588
588
  generateImage: Ee,
589
589
  generateSvg: Ze,
590
590
  hideSeries: Tt,
591
- showSeries: $t,
591
+ showSeries: xt,
592
592
  toggleTable: Je,
593
593
  toggleTooltip: Qe,
594
594
  toggleAnnotator: we,
595
595
  toggleFullscreen: Ye
596
- }), (t, l) => (n(), v("div", {
597
- class: tt(`vue-data-ui-component vue-ui-waffle ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
596
+ }), (t, l) => (s(), v("div", {
597
+ class: tt(`vue-data-ui-component vue-ui-waffle ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
598
598
  ref_key: "waffleChart",
599
- ref: T,
599
+ ref: S,
600
600
  id: `vue-ui-waffle_${b.value}`,
601
601
  style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
602
602
  onMouseenter: l[2] || (l[2] = () => h(De)(!0)),
603
603
  onMouseleave: l[3] || (l[3] = () => h(De)(!1))
604
604
  }, [
605
- e.value.userOptions.buttons.annotator ? (n(), B(h(ht), {
605
+ e.value.userOptions.buttons.annotator ? (s(), V(h(ht), {
606
606
  key: 0,
607
607
  svgRef: h(de),
608
608
  backgroundColor: e.value.style.chart.backgroundColor,
609
609
  color: e.value.style.chart.color,
610
610
  active: le.value,
611
611
  onClose: we
612
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
613
- bt.value ? (n(), v("div", {
612
+ }, {
613
+ "annotator-action-close": f(() => [
614
+ p(t.$slots, "annotator-action-close", {}, void 0, !0)
615
+ ]),
616
+ "annotator-action-color": f(({ color: a }) => [
617
+ p(t.$slots, "annotator-action-color", x(T({ color: a })), void 0, !0)
618
+ ]),
619
+ "annotator-action-draw": f(({ mode: a }) => [
620
+ p(t.$slots, "annotator-action-draw", x(T({ mode: a })), void 0, !0)
621
+ ]),
622
+ "annotator-action-undo": f(({ disabled: a }) => [
623
+ p(t.$slots, "annotator-action-undo", x(T({ disabled: a })), void 0, !0)
624
+ ]),
625
+ "annotator-action-redo": f(({ disabled: a }) => [
626
+ p(t.$slots, "annotator-action-redo", x(T({ disabled: a })), void 0, !0)
627
+ ]),
628
+ "annotator-action-delete": f(({ disabled: a }) => [
629
+ p(t.$slots, "annotator-action-delete", x(T({ disabled: a })), void 0, !0)
630
+ ]),
631
+ _: 3
632
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
633
+ bt.value ? (s(), v("div", {
614
634
  key: 1,
615
635
  ref_key: "noTitle",
616
636
  ref: Ae,
617
637
  class: "vue-data-ui-no-title-space",
618
638
  style: "height:36px; width: 100%;background:transparent"
619
639
  }, null, 512)) : m("", !0),
620
- e.value.style.chart.title.text ? (n(), v("div", {
640
+ e.value.style.chart.title.text ? (s(), v("div", {
621
641
  key: 2,
622
642
  ref_key: "chartTitle",
623
643
  ref: Ie,
624
644
  style: "width:100%;background:transparent;padding-bottom:12px"
625
645
  }, [
626
- (n(), B(ml, {
646
+ (s(), V(ml, {
627
647
  key: `title_${Oe.value}`,
628
648
  config: {
629
649
  title: {
@@ -639,8 +659,8 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
639
659
  ], 512)) : m("", !0),
640
660
  k("div", {
641
661
  id: `legend-top-${b.value}`
642
- }, null, 8, $l),
643
- e.value.userOptions.show && se.value && (h(Ve) || h(ce)) ? (n(), B(h(dt), {
662
+ }, null, 8, xl),
663
+ e.value.userOptions.show && ne.value && (h(Ve) || h(ce)) ? (s(), V(h(dt), {
644
664
  ref_key: "userOptionsRef",
645
665
  ref: ie,
646
666
  key: `user_options_${Te.value}`,
@@ -656,10 +676,10 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
656
676
  hasXls: e.value.userOptions.buttons.csv,
657
677
  hasTable: e.value.userOptions.buttons.table,
658
678
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
659
- isFullscreen: z.value,
679
+ isFullscreen: R.value,
660
680
  isTooltip: C.value.showTooltip,
661
681
  titles: { ...e.value.userOptions.buttonTitles },
662
- chartElement: T.value,
682
+ chartElement: S.value,
663
683
  position: e.value.userOptions.position,
664
684
  hasAnnotator: e.value.userOptions.buttons.annotator,
665
685
  isAnnotation: le.value,
@@ -680,79 +700,79 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
680
700
  }, Ce({ _: 2 }, [
681
701
  t.$slots.menuIcon ? {
682
702
  name: "menuIcon",
683
- fn: g(({ isOpen: a, color: o }) => [
684
- y(t.$slots, "menuIcon", W(G({ isOpen: a, color: o })), void 0, !0)
703
+ fn: f(({ isOpen: a, color: o }) => [
704
+ p(t.$slots, "menuIcon", x(T({ isOpen: a, color: o })), void 0, !0)
685
705
  ]),
686
706
  key: "0"
687
707
  } : void 0,
688
708
  t.$slots.optionTooltip ? {
689
709
  name: "optionTooltip",
690
- fn: g(() => [
691
- y(t.$slots, "optionTooltip", {}, void 0, !0)
710
+ fn: f(() => [
711
+ p(t.$slots, "optionTooltip", {}, void 0, !0)
692
712
  ]),
693
713
  key: "1"
694
714
  } : void 0,
695
715
  t.$slots.optionPdf ? {
696
716
  name: "optionPdf",
697
- fn: g(() => [
698
- y(t.$slots, "optionPdf", {}, void 0, !0)
717
+ fn: f(() => [
718
+ p(t.$slots, "optionPdf", {}, void 0, !0)
699
719
  ]),
700
720
  key: "2"
701
721
  } : void 0,
702
722
  t.$slots.optionCsv ? {
703
723
  name: "optionCsv",
704
- fn: g(() => [
705
- y(t.$slots, "optionCsv", {}, void 0, !0)
724
+ fn: f(() => [
725
+ p(t.$slots, "optionCsv", {}, void 0, !0)
706
726
  ]),
707
727
  key: "3"
708
728
  } : void 0,
709
729
  t.$slots.optionImg ? {
710
730
  name: "optionImg",
711
- fn: g(() => [
712
- y(t.$slots, "optionImg", {}, void 0, !0)
731
+ fn: f(() => [
732
+ p(t.$slots, "optionImg", {}, void 0, !0)
713
733
  ]),
714
734
  key: "4"
715
735
  } : void 0,
716
736
  t.$slots.optionSvg ? {
717
737
  name: "optionSvg",
718
- fn: g(() => [
719
- y(t.$slots, "optionSvg", {}, void 0, !0)
738
+ fn: f(() => [
739
+ p(t.$slots, "optionSvg", {}, void 0, !0)
720
740
  ]),
721
741
  key: "5"
722
742
  } : void 0,
723
743
  t.$slots.optionTable ? {
724
744
  name: "optionTable",
725
- fn: g(() => [
726
- y(t.$slots, "optionTable", {}, void 0, !0)
745
+ fn: f(() => [
746
+ p(t.$slots, "optionTable", {}, void 0, !0)
727
747
  ]),
728
748
  key: "6"
729
749
  } : void 0,
730
750
  t.$slots.optionFullscreen ? {
731
751
  name: "optionFullscreen",
732
- fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
733
- y(t.$slots, "optionFullscreen", W(G({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
752
+ fn: f(({ toggleFullscreen: a, isFullscreen: o }) => [
753
+ p(t.$slots, "optionFullscreen", x(T({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
734
754
  ]),
735
755
  key: "7"
736
756
  } : void 0,
737
757
  t.$slots.optionAnnotator ? {
738
758
  name: "optionAnnotator",
739
- fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
740
- y(t.$slots, "optionAnnotator", W(G({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
759
+ fn: f(({ toggleAnnotator: a, isAnnotator: o }) => [
760
+ p(t.$slots, "optionAnnotator", x(T({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
741
761
  ]),
742
762
  key: "8"
743
763
  } : void 0
744
764
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
745
- (n(), v("svg", {
765
+ (s(), v("svg", {
746
766
  ref_key: "svgRef",
747
767
  ref: de,
748
768
  xmlns: h(Kt),
749
- class: tt({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
750
- viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
769
+ class: tt({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
770
+ viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
751
771
  style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
752
772
  }, [
753
- oe(h(pt)),
773
+ oe(h(ft)),
754
774
  k("defs", null, [
755
- (n(!0), v($, null, D(r.value, (a, o) => (n(), v("radialGradient", {
775
+ (s(!0), v(I, null, N(r.value, (a, o) => (s(), v("radialGradient", {
756
776
  cx: "50%",
757
777
  cy: "50%",
758
778
  r: "50%",
@@ -788,67 +808,67 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
788
808
  }, null, -1)
789
809
  ])], 8, Al)
790
810
  ]),
791
- e.value.useCustomCells && r.value.length ? (n(!0), v($, { key: 0 }, D(E.value, (a, o) => (n(), v("foreignObject", {
811
+ e.value.useCustomCells && r.value.length ? (s(!0), v(I, { key: 0 }, N(G.value, (a, o) => (s(), v("foreignObject", {
792
812
  x: a.x,
793
813
  y: a.y,
794
- height: _.value <= 0 ? 1e-4 : _.value,
795
- width: S.value <= 0 ? 1e-4 : S.value,
814
+ height: O.value <= 0 ? 1e-4 : O.value,
815
+ width: A.value <= 0 ? 1e-4 : A.value,
796
816
  class: "vue-ui-waffle-custom-cell-foreignObject"
797
817
  }, [
798
- y(t.$slots, "cell", xe({ ref_for: !0 }, { cell: { ...a, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(R.value) ? !0 : r.value[o].serieIndex === R.value }), void 0, !0)
818
+ p(t.$slots, "cell", $e({ ref_for: !0 }, { cell: { ...a, 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)
799
819
  ], 8, Ol))), 256)) : m("", !0),
800
- !r.value.length && !e.value.useCustomCells ? (n(), v("rect", {
820
+ !r.value.length && !e.value.useCustomCells ? (s(), v("rect", {
801
821
  key: 1,
802
822
  x: 12,
803
823
  y: 12,
804
- height: I.value.height - 24,
805
- width: I.value.width - 24,
824
+ height: _.value.height - 24,
825
+ width: _.value.width - 24,
806
826
  rx: 3,
807
827
  fill: "none",
808
828
  stroke: "black"
809
- }, null, 8, Pl)) : r.value.length && !e.value.useCustomCells ? (n(), v($, { key: 2 }, [
810
- t.$slots.pattern ? (n(), v("g", Ll, [
811
- (n(!0), v($, null, D(fe.value, (a) => (n(), v("defs", null, [
812
- y(t.$slots, "pattern", xe({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${b.value}_${a.absoluteIndex}` }), void 0, !0)
829
+ }, null, 8, Pl)) : r.value.length && !e.value.useCustomCells ? (s(), v(I, { key: 2 }, [
830
+ t.$slots.pattern ? (s(), v("g", Ll, [
831
+ (s(!0), v(I, null, N(pe.value, (a) => (s(), v("defs", null, [
832
+ p(t.$slots, "pattern", $e({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${b.value}_${a.absoluteIndex}` }), void 0, !0)
813
833
  ]))), 256))
814
834
  ])) : m("", !0),
815
- (n(!0), v($, null, D(E.value, (a, o) => (n(), v("rect", {
835
+ (s(!0), v(I, null, N(G.value, (a, o) => (s(), v("rect", {
816
836
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
817
837
  x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
818
838
  y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
819
- height: _.value <= 0 ? 1e-4 : _.value,
820
- width: S.value <= 0 ? 1e-4 : S.value,
839
+ height: O.value <= 0 ? 1e-4 : O.value,
840
+ width: A.value <= 0 ? 1e-4 : A.value,
821
841
  fill: "white",
822
842
  stroke: e.value.style.chart.layout.rect.stroke,
823
843
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
824
844
  filter: ee(r.value[o].serieIndex)
825
845
  }, null, 8, Fl))), 256)),
826
- (n(!0), v($, null, D(E.value, (a, o) => (n(), v("rect", {
846
+ (s(!0), v(I, null, N(G.value, (a, o) => (s(), v("rect", {
827
847
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
828
848
  x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
829
849
  y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
830
- height: _.value <= 0 ? 1e-4 : _.value,
831
- width: S.value <= 0 ? 1e-4 : S.value,
850
+ height: O.value <= 0 ? 1e-4 : O.value,
851
+ width: A.value <= 0 ? 1e-4 : A.value,
832
852
  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,
833
853
  stroke: e.value.style.chart.layout.rect.stroke,
834
854
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
835
855
  filter: ee(r.value[o].serieIndex)
836
856
  }, null, 8, Bl))), 256)),
837
- t.$slots.pattern ? (n(), v("g", Dl, [
838
- (n(!0), v($, null, D(E.value, (a, o) => (n(), v("rect", {
857
+ t.$slots.pattern ? (s(), v("g", Dl, [
858
+ (s(!0), v(I, null, N(G.value, (a, o) => (s(), v("rect", {
839
859
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
840
860
  x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
841
861
  y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
842
- height: _.value <= 0 ? 1e-4 : _.value,
843
- width: S.value <= 0 ? 1e-4 : S.value,
862
+ height: O.value <= 0 ? 1e-4 : O.value,
863
+ width: A.value <= 0 ? 1e-4 : A.value,
844
864
  fill: `url(#pattern_${b.value}_${r.value[o].absoluteIndex})`,
845
865
  stroke: "none",
846
866
  filter: ee(r.value[o].serieIndex)
847
867
  }, null, 8, Vl))), 256))
848
868
  ])) : m("", !0)
849
869
  ], 64)) : m("", !0),
850
- (n(!0), v($, null, D(E.value, (a, o) => (n(), v($, null, [
851
- Pt(o, a) ? (n(), v("text", {
870
+ (s(!0), v(I, null, N(G.value, (a, o) => (s(), v(I, null, [
871
+ Pt(o, a) ? (s(), v("text", {
852
872
  key: `datalabel_${o}`,
853
873
  textContent: ue(Lt(o, a)),
854
874
  x: a.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
@@ -858,7 +878,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
858
878
  filter: ee(r.value[o].serieIndex)
859
879
  }, null, 8, Nl)) : m("", !0)
860
880
  ], 64))), 256)),
861
- (n(!0), v($, null, D(E.value, (a, o) => (n(), v("rect", {
881
+ (s(!0), v(I, null, N(G.value, (a, o) => (s(), v("rect", {
862
882
  x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
863
883
  y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
864
884
  height: Ge.value,
@@ -869,15 +889,15 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
869
889
  onMouseleave: (u) => _t(o),
870
890
  onClick: (u) => St(o)
871
891
  }, null, 40, zl))), 256)),
872
- y(t.$slots, "svg", { svg: V.value }, void 0, !0)
892
+ p(t.$slots, "svg", { svg: z.value }, void 0, !0)
873
893
  ], 14, Tl)),
874
- t.$slots.watermark ? (n(), v("div", Ml, [
875
- y(t.$slots, "watermark", W(G({ isPrinting: h(Me) || h(Re) })), void 0, !0)
894
+ t.$slots.watermark ? (s(), v("div", Ml, [
895
+ p(t.$slots, "watermark", x(T({ isPrinting: h(Me) || h(Re) })), void 0, !0)
876
896
  ])) : m("", !0),
877
897
  k("div", {
878
898
  id: `legend-bottom-${b.value}`
879
899
  }, null, 8, Rl),
880
- Fe.value ? (n(), B(Gt, {
900
+ Fe.value ? (s(), V(Gt, {
881
901
  key: 5,
882
902
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
883
903
  }, [
@@ -885,23 +905,23 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
885
905
  ref_key: "chartLegend",
886
906
  ref: Se
887
907
  }, [
888
- e.value.style.chart.legend.show ? (n(), B(kl, {
908
+ e.value.style.chart.legend.show ? (s(), V(kl, {
889
909
  key: `legend_${Le.value}`,
890
- legendSet: N.value,
910
+ legendSet: M.value,
891
911
  config: It.value,
892
912
  onClickMarker: l[0] || (l[0] = ({ legend: a }) => Z(a.uid))
893
913
  }, Ce({
894
- item: g(({ legend: a }) => [
914
+ item: f(({ legend: a }) => [
895
915
  k("div", {
896
916
  onClick: (o) => a.segregate(),
897
- style: ae(`opacity:${f.value.includes(a.uid) ? 0.5 : 1}`)
917
+ style: ae(`opacity:${y.value.includes(a.uid) ? 0.5 : 1}`)
898
918
  }, ue(a.display), 13, Ul)
899
919
  ]),
900
920
  _: 2
901
921
  }, [
902
922
  t.$slots.pattern ? {
903
923
  name: "legend-pattern",
904
- fn: g(({ legend: a, index: o }) => [
924
+ fn: f(({ legend: a, index: o }) => [
905
925
  oe(bl, {
906
926
  shape: a.shape,
907
927
  radius: 30,
@@ -912,22 +932,22 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
912
932
  ]),
913
933
  key: "0"
914
934
  } : void 0
915
- ]), 1032, ["legendSet", "config"])) : y(t.$slots, "legend", {
935
+ ]), 1032, ["legendSet", "config"])) : p(t.$slots, "legend", {
916
936
  key: 1,
917
- legend: N.value
937
+ legend: M.value
918
938
  }, void 0, !0)
919
939
  ], 512)
920
940
  ], 8, ["to"])) : m("", !0),
921
- t.$slots.source ? (n(), v("div", {
941
+ t.$slots.source ? (s(), v("div", {
922
942
  key: 6,
923
943
  ref_key: "source",
924
944
  ref: _e,
925
945
  dir: "auto"
926
946
  }, [
927
- y(t.$slots, "source", {}, void 0, !0)
947
+ p(t.$slots, "source", {}, void 0, !0)
928
948
  ], 512)) : m("", !0),
929
949
  oe(h(rt), {
930
- show: C.value.showTooltip && ne.value && f.value.length < w.dataset.length,
950
+ show: C.value.showTooltip && se.value && y.value.length < w.dataset.length,
931
951
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
932
952
  color: e.value.style.chart.tooltip.color,
933
953
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -936,31 +956,31 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
936
956
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
937
957
  position: e.value.style.chart.tooltip.position,
938
958
  offsetY: e.value.style.chart.tooltip.offsetY,
939
- parent: T.value,
959
+ parent: S.value,
940
960
  content: re.value,
941
961
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
942
962
  fontSize: e.value.style.chart.tooltip.fontSize,
943
- isFullscreen: z.value,
963
+ isFullscreen: R.value,
944
964
  smooth: e.value.style.chart.tooltip.smooth,
945
965
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
946
966
  smoothForce: e.value.style.chart.tooltip.smoothForce,
947
967
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
948
968
  }, {
949
- "tooltip-before": g(() => [
950
- y(t.$slots, "tooltip-before", W(G({ ...ye.value })), void 0, !0)
969
+ "tooltip-before": f(() => [
970
+ p(t.$slots, "tooltip-before", x(T({ ...ye.value })), void 0, !0)
951
971
  ]),
952
- "tooltip-after": g(() => [
953
- y(t.$slots, "tooltip-after", W(G({ ...ye.value })), void 0, !0)
972
+ "tooltip-after": f(() => [
973
+ p(t.$slots, "tooltip-after", x(T({ ...ye.value })), void 0, !0)
954
974
  ]),
955
975
  _: 3
956
976
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
957
- se.value && e.value.userOptions.buttons.table ? (n(), B(Ht(Y.value.component), xe({ key: 7 }, Y.value.props, {
977
+ ne.value && e.value.userOptions.buttons.table ? (s(), V(Ht(Y.value.component), $e({ key: 7 }, Y.value.props, {
958
978
  ref_key: "tableUnit",
959
979
  ref: H,
960
980
  onClose: Ke
961
981
  }), Ce({
962
- content: g(() => [
963
- (n(), B(h(vt), {
982
+ content: f(() => [
983
+ (s(), V(h(vt), {
964
984
  key: `table_${Pe.value}`,
965
985
  colNames: te.value.colNames,
966
986
  head: te.value.head,
@@ -970,13 +990,13 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
970
990
  withCloseButton: !e.value.table.useDialog,
971
991
  onClose: Ke
972
992
  }, {
973
- th: g(({ th: a }) => [
993
+ th: f(({ th: a }) => [
974
994
  k("div", {
975
995
  innerHTML: a,
976
996
  style: { display: "flex", "align-items": "center" }
977
997
  }, null, 8, El)
978
998
  ]),
979
- td: g(({ td: a }) => [
999
+ td: f(({ td: a }) => [
980
1000
  lt(ue(a.name || a), 1)
981
1001
  ]),
982
1002
  _: 1
@@ -986,14 +1006,14 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
986
1006
  }, [
987
1007
  e.value.table.useDialog ? {
988
1008
  name: "title",
989
- fn: g(() => [
1009
+ fn: f(() => [
990
1010
  lt(ue(Y.value.title), 1)
991
1011
  ]),
992
1012
  key: "0"
993
1013
  } : void 0,
994
1014
  e.value.table.useDialog ? {
995
1015
  name: "actions",
996
- fn: g(() => [
1016
+ fn: f(() => [
997
1017
  k("button", {
998
1018
  tabindex: "0",
999
1019
  class: "vue-ui-user-options-button",
@@ -1008,10 +1028,10 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
1008
1028
  key: "1"
1009
1029
  } : void 0
1010
1030
  ]), 1040)) : m("", !0),
1011
- h(Be) ? (n(), B(dl, { key: 8 })) : m("", !0)
1012
- ], 46, xl));
1031
+ h(Be) ? (s(), V(dl, { key: 8 })) : m("", !0)
1032
+ ], 46, $l));
1013
1033
  }
1014
- }, ua = /* @__PURE__ */ Cl(Wl, [["__scopeId", "data-v-02b3eb8e"]]);
1034
+ }, ua = /* @__PURE__ */ Cl(Wl, [["__scopeId", "data-v-24beaccb"]]);
1015
1035
  export {
1016
1036
  ua as default
1017
1037
  };