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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
  2. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  8. package/dist/PackageVersion-CLY-udAA.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
  15. package/dist/SparkTooltip-CwThutH2.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
  17. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-CRCbl1WG.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
  41. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  45. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  46. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  57. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
  66. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  76. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  85. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  86. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  89. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  90. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,24 +1,17 @@
1
- import { useSlots as at, computed as d, ref as v, watch as Ne, onMounted as ot, onBeforeUnmount as ut, createElementBlock as r, openBlock as s, unref as c, normalizeStyle as H, normalizeClass as Be, createBlock as N, createCommentVNode as p, createElementVNode as x, createVNode as re, createSlots as Ve, withCtx as m, renderSlot as g, normalizeProps as U, guardReactiveProps as G, Fragment as $, renderList as L, mergeProps as Me, toDisplayString as A, createTextVNode as De, nextTick as st } from "vue";
2
- import { u as rt, c as nt, t as it, p as B, a as vt, o as ct, e as ne, g as dt, b as ht, i as j, f as _, X as ft, s as pt, w as yt, G as gt, K as mt, d as bt, q as wt, r as kt, x as xt, y as Ct } from "./index-BFzQMJda.js";
3
- import { t as $t, u as _t } from "./useResponsive-JZ9xq-JV.js";
4
- import { _ as It } from "./Title-CzaCeCOm.js";
5
- import { u as Tt, U as St } from "./usePrinter-C5bLp34h.js";
6
- import { _ as Ot } from "./Tooltip-CWmRmhJr.js";
7
- import { D as Pt } from "./DataTable-Rajdtaf6.js";
8
- import { L as Lt } from "./Legend-BxtDQCIv.js";
9
- import At from "./vue-ui-skeleton-B_YI7Yuc.js";
10
- import Ft from "./vue-ui-accordion-BUz4JIIX.js";
11
- import { u as Re } from "./useNestedProp-v7KPpwuP.js";
12
- import { _ as zt } from "./PackageVersion-BjrblLPQ.js";
13
- import { _ as Nt } from "./PenAndPaper-BkP3J-Ft.js";
14
- import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as Vt } from "./Shape-C69a0f29.js";
16
- import { u as Mt } from "./useChartAccessibility-BWojgys7.js";
17
- import { _ as Dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"], Et = ["stop-color"], Wt = ["id"], qt = ["x", "y", "height", "width"], Ht = ["height", "width"], Xt = { key: 0 }, Yt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Kt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Jt = { key: 1 }, Qt = ["rx", "x", "y", "height", "width", "fill", "filter"], Zt = ["x", "y", "height", "width", "filter"], el = { key: 0 }, tl = { key: 1 }, ll = { key: 2 }, al = { key: 3 }, ol = ["onMouseover", "x", "y", "height", "width"], ul = {
1
+ import { defineAsyncComponent as F, useSlots as pt, computed as d, ref as c, watch as Ve, shallowRef as Me, onMounted as yt, onBeforeUnmount as ft, createElementBlock as n, openBlock as s, unref as r, normalizeStyle as K, normalizeClass as De, createBlock as V, createCommentVNode as y, createElementVNode as x, createVNode as ie, createSlots as Re, withCtx as b, renderSlot as g, normalizeProps as j, guardReactiveProps as W, Fragment as $, renderList as L, mergeProps as Ue, toDisplayString as z, createTextVNode as Ge, nextTick as gt } from "vue";
2
+ import { u as bt, c as mt, t as wt, p as M, a as kt, o as xt, e as ve, g as Ct, b as $t, i as q, f as _, X as _t, s as It, w as Tt, G as St, K as Pt, d as Ot, q as At, r as Ft, x as Lt, y as zt } from "./index-BiHmNd1-.js";
3
+ import { t as Nt, u as Bt } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as Ee } from "./useNestedProp-tRqS0ZAM.js";
5
+ import { u as Vt } from "./usePrinter-CRCbl1WG.js";
6
+ import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Rt from "./Title-B5qqUI3M.js";
9
+ import Ut from "./Legend-DFunFf8i.js";
10
+ import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"], Ht = ["stop-color"], Xt = ["id"], Yt = ["x", "y", "height", "width"], Kt = ["height", "width"], Jt = { key: 0 }, Qt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Zt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], el = { key: 1 }, tl = ["rx", "x", "y", "height", "width", "fill", "filter"], ll = ["x", "y", "height", "width", "filter"], al = { key: 0 }, ol = { key: 1 }, ul = { key: 2 }, sl = { key: 3 }, rl = ["onMouseover", "x", "y", "height", "width"], nl = {
19
12
  key: 5,
20
13
  class: "vue-data-ui-watermark"
21
- }, sl = ["onClick"], rl = { key: 0 }, nl = { key: 1 }, il = ["innerHTML"], vl = {
14
+ }, il = ["onClick"], vl = { key: 0 }, cl = { key: 1 }, dl = ["innerHTML"], hl = {
22
15
  __name: "vue-ui-waffle",
23
16
  props: {
24
17
  config: {
@@ -35,38 +28,38 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
35
28
  }
36
29
  },
37
30
  emits: ["selectLegend"],
38
- setup(Ue, { expose: Ge, emit: je }) {
39
- const { vue_ui_waffle: Ee } = rt(), b = Ue, We = at(), X = d(() => !!b.dataset && b.dataset.length), k = v(nt()), qe = v(null), ee = v(!1), te = v(""), V = v(null), ie = v(0), E = v(null), ve = v(null), ce = v(null), de = v(null), he = v(null), fe = v(0), pe = v(0), ye = v(0), e = d({
40
- get: () => we(),
31
+ setup(je, { expose: We, emit: qe }) {
32
+ const He = F(() => import("./DataTable-Cv9CIz-a.js")), Xe = F(() => import("./Shape-D3w9qas1.js")), Ye = F(() => import("./PenAndPaper-B9na2mbr.js")), Ke = F(() => import("./vue-ui-accordion-CmCs2yR2.js")), Je = F(() => import("./vue-ui-skeleton-CbYQYRvD.js")), Qe = F(() => import("./Tooltip-C9rxJ-Ru.js")), Ze = F(() => import("./UserOptions-Ddy6CuLC.js")), et = F(() => import("./PackageVersion-CLY-udAA.js")), { vue_ui_waffle: tt } = bt(), m = je, lt = pt(), J = d(() => !!m.dataset && m.dataset.length), k = c(mt()), at = c(null), le = c(!1), ae = c(""), D = c(null), ce = c(0), H = c(null), de = c(null), he = c(null), pe = c(null), ye = c(null), fe = c(0), ge = c(0), be = c(0), e = d({
33
+ get: () => xe(),
41
34
  set: (t) => t
42
- }), { userOptionsVisible: le, setUserOptionsVisibility: ge, keepUserOptionState: me } = Bt({ config: e.value }), { svgRef: be } = Mt({ config: e.value.style.chart.title });
43
- function we() {
44
- const t = Re({
45
- userConfig: b.config,
46
- defaultConfig: Ee
35
+ }), { userOptionsVisible: oe, setUserOptionsVisibility: me, keepUserOptionState: we } = Mt({ config: e.value }), { svgRef: ke } = Dt({ config: e.value.style.chart.title });
36
+ function xe() {
37
+ const t = Ee({
38
+ userConfig: m.config,
39
+ defaultConfig: tt
47
40
  });
48
41
  return t.theme ? {
49
- ...Re({
50
- userConfig: vt.vue_ui_waffle[t.theme] || b.config,
42
+ ...Ee({
43
+ userConfig: kt.vue_ui_waffle[t.theme] || m.config,
51
44
  defaultConfig: t
52
45
  }),
53
- customPalette: it[t.theme] || B
46
+ customPalette: wt[t.theme] || M
54
47
  } : t;
55
48
  }
56
- Ne(() => b.config, (t) => {
57
- e.value = we(), le.value = !e.value.userOptions.showOnChartHover, ke(), fe.value += 1, pe.value += 1, ye.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
49
+ Ve(() => m.config, (t) => {
50
+ e.value = xe(), oe.value = !e.value.userOptions.showOnChartHover, Ce(), fe.value += 1, ge.value += 1, be.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
58
51
  }, { deep: !0 });
59
- const Y = v(null);
60
- function ke() {
61
- if (ct(b.dataset) ? ne({
52
+ const A = Me(null), R = Me(null);
53
+ function Ce() {
54
+ if (xt(m.dataset) ? ve({
62
55
  componentName: "VueUiWaffle",
63
56
  type: "dataset"
64
- }) : b.dataset.forEach((t, a) => {
65
- dt({
57
+ }) : m.dataset.forEach((t, a) => {
58
+ Ct({
66
59
  datasetObject: t,
67
60
  requiredAttributes: ["name", "values"]
68
61
  }).forEach((l) => {
69
- ne({
62
+ ve({
70
63
  componentName: "VueUiWaffle",
71
64
  type: "datasetSerieAttribute",
72
65
  property: l,
@@ -74,114 +67,114 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
74
67
  });
75
68
  });
76
69
  }), e.value.responsive) {
77
- const t = $t(() => {
78
- const { width: a, height: l } = _t({
79
- chart: E.value,
80
- title: e.value.style.chart.title.text ? ve.value : null,
81
- legend: e.value.style.chart.legend.show ? ce.value : null,
82
- source: de.value,
83
- noTitle: he.value
70
+ const t = Nt(() => {
71
+ const { width: a, height: l } = Bt({
72
+ chart: H.value,
73
+ title: e.value.style.chart.title.text ? de.value : null,
74
+ legend: e.value.style.chart.legend.show ? he.value : null,
75
+ source: pe.value,
76
+ noTitle: ye.value
84
77
  });
85
78
  requestAnimationFrame(() => {
86
- F.value.width = a, F.value.height = l, I.value.width = a, I.value.height = l;
79
+ N.value.width = a, N.value.height = l, I.value.width = a, I.value.height = l;
87
80
  });
88
81
  });
89
- Y.value = new ResizeObserver(t), Y.value.observe(E.value.parentNode);
82
+ A.value && (R.value && A.value.unobserve(R.value), A.value.disconnect()), A.value = new ResizeObserver(t), R.value = H.value.parentNode, A.value.observe(R.value);
90
83
  }
91
84
  }
92
- ot(() => {
93
- ke();
94
- }), ut(() => {
95
- Y.value && Y.value.disconnect();
85
+ yt(() => {
86
+ Ce();
87
+ }), ft(() => {
88
+ A.value && (R.value && A.value.unobserve(R.value), A.value.disconnect());
96
89
  });
97
- const { isPrinting: xe, isImaging: Ce, generatePdf: $e, generateImage: _e } = Tt({
90
+ const { isPrinting: $e, isImaging: _e, generatePdf: Ie, generateImage: Te } = Vt({
98
91
  elementId: `vue-ui-waffle_${k.value}`,
99
92
  fileName: e.value.style.chart.title.text || "vue-ui-waffle",
100
93
  options: e.value.userOptions.print
101
- }), He = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ie = d(() => ht(e.value.customPalette)), C = v({
94
+ }), ot = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = d(() => $t(e.value.customPalette)), C = c({
102
95
  showTable: e.value.table.show,
103
96
  showTooltip: e.value.style.chart.tooltip.show
104
- }), F = v({
97
+ }), N = c({
105
98
  height: 512,
106
99
  width: 512
107
- }), I = v({
100
+ }), I = c({
108
101
  top: 0,
109
102
  left: 0,
110
103
  height: 512,
111
104
  width: 512
112
- }), T = d(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = d(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), W = d(() => I.value.width / e.value.style.chart.layout.grid.size), K = d(() => I.value.height / e.value.style.chart.layout.grid.size);
113
- function Te(t) {
114
- const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, se) => w + se, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), i = o.map((w) => w % 1);
115
- let y = a - u.reduce((w, se) => w + se, 0);
116
- for (; y > 0; ) {
117
- let w = i.indexOf(Math.max(...i));
118
- u[w] += 1, i[w] = 0, y -= 1;
105
+ }), T = d(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = d(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), X = d(() => I.value.width / e.value.style.chart.layout.grid.size), Q = d(() => I.value.height / e.value.style.chart.layout.grid.size);
106
+ function Pe(t) {
107
+ const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, ne) => w + ne, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), v = o.map((w) => w % 1);
108
+ let f = a - u.reduce((w, ne) => w + ne, 0);
109
+ for (; f > 0; ) {
110
+ let w = v.indexOf(Math.max(...v));
111
+ u[w] += 1, v[w] = 0, f -= 1;
119
112
  }
120
113
  return u;
121
114
  }
122
- function Se() {
123
- return b.dataset.map((t, a) => ({
115
+ function Oe() {
116
+ return m.dataset.map((t, a) => ({
124
117
  ...t,
125
- color: bt(t.color) || Ie.value[a] || B[a] || B[a % B.length],
118
+ color: Ot(t.color) || Se.value[a] || M[a] || M[a % M.length],
126
119
  uid: `serie_${a}`,
127
120
  absoluteIndex: a
128
121
  }));
129
122
  }
130
- const ae = d(() => Se()), h = v(ae.value);
131
- Ne(() => b.dataset, (t) => {
132
- h.value = Se();
123
+ const ue = d(() => Oe()), h = c(ue.value);
124
+ Ve(() => m.dataset, (t) => {
125
+ h.value = Oe();
133
126
  }, { deep: !0 });
134
- const Xe = d(() => {
135
- const t = h.value.filter((a, l) => !f.value.includes(a.uid)).map((a, l) => (a.values || []).reduce((o, u) => o + u, 0));
136
- return Te(t);
137
- }), Ye = d(() => {
127
+ const ut = d(() => {
128
+ const t = h.value.filter((a, l) => !p.value.includes(a.uid)).map((a, l) => (a.values || []).reduce((o, u) => o + u, 0));
129
+ return Pe(t);
130
+ }), st = d(() => {
138
131
  const t = h.value.map((a, l) => (a.values || []).reduce((o, u) => o + u));
139
- return Te(t);
140
- }), q = d(() => (b.dataset.forEach((t, a) => {
141
- [null, void 0].includes(t.values) && ne({
132
+ return Pe(t);
133
+ }), Y = d(() => (m.dataset.forEach((t, a) => {
134
+ [null, void 0].includes(t.values) && ve({
142
135
  componentName: "VueUiWaffle",
143
136
  type: "datasetSerieAttribute",
144
137
  property: "values (number[])",
145
138
  index: a
146
139
  });
147
- }), h.value.filter((t, a) => !f.value.includes(t.uid)).map((t, a) => ({
140
+ }), h.value.filter((t, a) => !p.value.includes(t.uid)).map((t, a) => ({
148
141
  absoluteIndex: t.absoluteIndex,
149
142
  uid: t.uid,
150
143
  name: t.name,
151
144
  color: t.color,
152
145
  value: (t.values || []).reduce((l, o) => l + o, 0),
153
146
  absoluteValues: t.values || [],
154
- proportion: Xe.value[a]
155
- })))), Ke = d(() => h.value.map((t, a) => ({
147
+ proportion: ut.value[a]
148
+ })))), rt = d(() => h.value.map((t, a) => ({
156
149
  absoluteIndex: t.absoluteIndex,
157
150
  uid: t.uid,
158
151
  name: t.name,
159
152
  color: t.color,
160
153
  value: (t.values || []).reduce((l, o) => l + o, 0),
161
154
  absoluteValues: t.values || [],
162
- proportion: Ye.value[a]
155
+ proportion: st.value[a]
163
156
  })));
164
- function Je() {
165
- return Ke.value.map((t) => ({
157
+ function nt() {
158
+ return rt.value.map((t) => ({
166
159
  name: t.name,
167
160
  color: t.color,
168
161
  value: t.value,
169
162
  proportion: t.proportion
170
163
  }));
171
164
  }
172
- const Qe = d(() => {
165
+ const it = d(() => {
173
166
  let t = 0;
174
- return q.value.map((a, l) => {
175
- const o = t, u = o + a.proportion, i = [];
176
- for (let y = Math.floor(o); y < Math.floor(u); y += 1)
177
- i.push(y);
167
+ return Y.value.map((a, l) => {
168
+ const o = t, u = o + a.proportion, v = [];
169
+ for (let f = Math.floor(o); f < Math.floor(u); f += 1)
170
+ v.push(f);
178
171
  return t = u, {
179
172
  ...a,
180
173
  start: o,
181
- rects: i
174
+ rects: v
182
175
  };
183
176
  });
184
- }), n = d(() => Qe.value.flatMap((t, a) => t.rects.map((l, o) => ({
177
+ }), i = d(() => it.value.flatMap((t, a) => t.rects.map((l, o) => ({
185
178
  isFirst: o === 0,
186
179
  isLongEnough: l.length > 2,
187
180
  name: t.name,
@@ -194,7 +187,7 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
194
187
  }))).map((t, a) => ({
195
188
  ...t,
196
189
  isAbsoluteFirst: a % e.value.style.chart.layout.grid.size === 0
197
- }))), M = d(() => {
190
+ }))), U = d(() => {
198
191
  const t = [];
199
192
  for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
200
193
  for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
@@ -205,91 +198,91 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
205
198
  y: (e.value.style.chart.layout.grid.vertical ? l : a) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
206
199
  });
207
200
  return t;
208
- }), f = v([]), z = v(!1), Oe = v(null), Pe = v(null);
201
+ }), p = c([]), B = c(!1), Ae = c(null), Fe = c(null);
209
202
  function Le(t) {
210
203
  if (!e.value.useAnimation) {
211
- f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < D.value.length - 1 && D.value.length > 1 && f.value.push(t);
204
+ p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < G.value.length - 1 && G.value.length > 1 && p.value.push(t);
212
205
  return;
213
206
  }
214
- const a = ae.value.find((u) => u.uid === t).values.reduce((u, i) => u + i, 0), l = h.value.find((u) => u.uid === t).values.reduce((u, i) => u + i, 0);
207
+ const a = ue.value.find((u) => u.uid === t).values.reduce((u, v) => u + v, 0), l = h.value.find((u) => u.uid === t).values.reduce((u, v) => u + v, 0);
215
208
  let o = l;
216
- if (f.value.includes(t)) {
217
- let i = function() {
218
- o > u ? (cancelAnimationFrame(Oe.value), h.value = h.value.map((y, w) => y.uid === t ? {
219
- ...y,
209
+ if (p.value.includes(t)) {
210
+ let v = function() {
211
+ o > u ? (cancelAnimationFrame(Ae.value), h.value = h.value.map((f, w) => f.uid === t ? {
212
+ ...f,
220
213
  values: [u]
221
- } : y), z.value = !1) : (z.value = !0, o += u * 0.025, h.value = h.value.map((y, w) => y.uid === t ? {
222
- ...y,
214
+ } : f), B.value = !1) : (B.value = !0, o += u * 0.025, h.value = h.value.map((f, w) => f.uid === t ? {
215
+ ...f,
223
216
  values: [o]
224
- } : y), Oe.value = requestAnimationFrame(i));
217
+ } : f), Ae.value = requestAnimationFrame(v));
225
218
  };
226
- f.value = f.value.filter((y) => y !== t);
219
+ p.value = p.value.filter((f) => f !== t);
227
220
  const u = a;
228
- i();
229
- } else if (f.value.length < D.value.length - 1 && D.value.length > 1) {
221
+ v();
222
+ } else if (p.value.length < G.value.length - 1 && G.value.length > 1) {
230
223
  let u = function() {
231
- o < l / 100 ? (cancelAnimationFrame(Pe.value), f.value.push(t), h.value = h.value.map((i, y) => i.uid === t ? {
232
- ...i,
224
+ o < l / 100 ? (cancelAnimationFrame(Fe.value), p.value.push(t), h.value = h.value.map((v, f) => v.uid === t ? {
225
+ ...v,
233
226
  values: [0]
234
- } : i), z.value = !1) : (z.value = !0, o /= 1.15, h.value = h.value.map((i) => i.uid === t ? {
235
- ...i,
227
+ } : v), B.value = !1) : (B.value = !0, o /= 1.15, h.value = h.value.map((v) => v.uid === t ? {
228
+ ...v,
236
229
  values: [o]
237
- } : i), Pe.value = requestAnimationFrame(u));
230
+ } : v), Fe.value = requestAnimationFrame(u));
238
231
  };
239
232
  u();
240
233
  }
241
- tt("selectLegend", q.value.map((u) => ({
234
+ dt("selectLegend", Y.value.map((u) => ({
242
235
  name: u.name,
243
236
  color: u.color,
244
237
  value: u.value,
245
238
  proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
246
239
  })));
247
240
  }
248
- const D = d(() => h.value.map((t, a) => ({
241
+ const G = d(() => h.value.map((t, a) => ({
249
242
  name: t.name,
250
- color: t.color || Ie[a] || B[a] || B[a % B.length],
243
+ color: t.color || Se[a] || M[a] || M[a % M.length],
251
244
  value: (t.values || []).reduce((l, o) => l + o, 0),
252
245
  uid: t.uid,
253
246
  shape: "square"
254
247
  })).map((t) => ({
255
248
  ...t,
256
249
  proportion: t.value / h.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
257
- opacity: f.value.includes(t.uid) ? 0.5 : 1,
250
+ opacity: p.value.includes(t.uid) ? 0.5 : 1,
258
251
  segregate: () => Le(t.uid),
259
- isSegregated: f.value.includes(t.uid)
260
- }))), Ze = d(() => ({
252
+ isSegregated: p.value.includes(t.uid)
253
+ }))), vt = d(() => ({
261
254
  cy: "waffle-div-legend",
262
255
  backgroundColor: e.value.style.chart.legend.backgroundColor,
263
256
  color: e.value.style.chart.legend.color,
264
257
  fontSize: e.value.style.chart.legend.fontSize,
265
258
  paddingBottom: 12,
266
259
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
267
- })), O = d(() => q.value.map((t) => t.value).reduce((t, a) => t + a, 0)), oe = v(null);
268
- function et(t) {
269
- if (f.value.length === b.dataset.length) return;
270
- const a = n.value[t];
271
- oe.value = {
260
+ })), P = d(() => Y.value.map((t) => t.value).reduce((t, a) => t + a, 0)), se = c(null);
261
+ function ct(t) {
262
+ if (p.value.length === m.dataset.length) return;
263
+ const a = i.value[t];
264
+ se.value = {
272
265
  datapoint: a,
273
266
  seriesIndex: a.absoluteIndex,
274
267
  series: h.value,
275
268
  config: e.value
276
- }, ee.value = !0, V.value = n.value[t].serieIndex;
269
+ }, le.value = !0, D.value = i.value[t].serieIndex;
277
270
  const l = e.value.style.chart.tooltip.customFormat;
278
- if (xt(l) && Ct(() => l({
279
- seriesIndex: n.value[t].absoluteIndex,
271
+ if (Lt(l) && zt(() => l({
272
+ seriesIndex: i.value[t].absoluteIndex,
280
273
  datapoint: a,
281
274
  series: h.value,
282
275
  config: e.value
283
276
  })))
284
- te.value = l({
285
- seriesIndex: n.value[t].absoluteIndex,
277
+ ae.value = l({
278
+ seriesIndex: i.value[t].absoluteIndex,
286
279
  datapoint: a,
287
280
  series: h.value,
288
281
  config: e.value
289
282
  });
290
283
  else {
291
284
  let o = "";
292
- 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}" />${We.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${k.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${j(
285
+ if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${a.color}" />${lt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${k.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${q(
293
286
  e.value.style.chart.layout.labels.dataLabels.formatter,
294
287
  a.value,
295
288
  _({
@@ -300,69 +293,69 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
300
293
  }),
301
294
  {
302
295
  datapoint: a,
303
- seriesIndex: n.value[t].absoluteIndex,
296
+ seriesIndex: i.value[t].absoluteIndex,
304
297
  series: h.value
305
298
  }
306
299
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
307
300
  const u = _({
308
- v: a.value / O.value * 100,
301
+ v: a.value / P.value * 100,
309
302
  s: "%",
310
303
  r: e.value.style.chart.tooltip.roundingPercentage
311
304
  });
312
305
  e.value.style.chart.tooltip.showValue ? o += `<span>(${u})</span></div>` : o += `<b>${u}%</b></div>`;
313
306
  }
314
- te.value = o;
307
+ ae.value = o;
315
308
  }
316
309
  }
317
- const tt = je, P = d(() => {
318
- const t = q.value.map((l) => ({
310
+ const dt = qe, O = d(() => {
311
+ const t = Y.value.map((l) => ({
319
312
  name: l.name,
320
313
  color: l.color
321
- })), a = q.value.map((l) => l.value);
314
+ })), a = Y.value.map((l) => l.value);
322
315
  return { head: t, body: a };
323
316
  });
324
- function J(t) {
325
- return e.value.useBlurOnHover && ![null, void 0].includes(V.value) && V.value !== t ? `url(#blur_${k.value})` : "";
317
+ function Z(t) {
318
+ return e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== t ? `url(#blur_${k.value})` : "";
326
319
  }
327
- function Ae() {
328
- st(() => {
329
- const t = P.value.head.map((o, u) => [[
320
+ function ze() {
321
+ gt(() => {
322
+ const t = O.value.head.map((o, u) => [[
330
323
  o.name
331
- ], [P.value.body[u]], [isNaN(P.value.body[u] / O.value) ? "-" : P.value.body[u] / O.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = wt(a);
332
- kt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
324
+ ], [O.value.body[u]], [isNaN(O.value.body[u] / P.value) ? "-" : O.value.body[u] / P.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = At(a);
325
+ Ft({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
333
326
  });
334
327
  }
335
- const Q = d(() => {
328
+ const ee = d(() => {
336
329
  const t = [
337
330
  ' <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>',
338
- j(
331
+ q(
339
332
  e.value.style.chart.layout.labels.dataLabels.formatter,
340
- O.value,
333
+ P.value,
341
334
  _({
342
335
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
343
- v: O.value,
336
+ v: P.value,
344
337
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
345
338
  r: e.value.table.td.roundingValue
346
339
  })
347
340
  ),
348
341
  "100%"
349
- ], a = P.value.head.map((u, i) => [
342
+ ], a = O.value.head.map((u, v) => [
350
343
  {
351
344
  color: u.color,
352
345
  name: u.name
353
346
  },
354
- j(
347
+ q(
355
348
  e.value.style.chart.layout.labels.dataLabels.formatter,
356
- P.value.body[i],
349
+ O.value.body[v],
357
350
  _({
358
351
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
359
- v: P.value.body[i],
352
+ v: O.value.body[v],
360
353
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
361
354
  r: e.value.table.td.roundingValue
362
355
  })
363
356
  ),
364
- isNaN(P.value.body[i] / O.value) ? "-" : _({
365
- v: P.value.body[i] / O.value * 100,
357
+ isNaN(O.value.body[v] / P.value) ? "-" : _({
358
+ v: O.value.body[v] / P.value * 100,
366
359
  s: "%",
367
360
  r: e.value.table.td.roundingPercentage
368
361
  })
@@ -390,59 +383,59 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
390
383
  config: l,
391
384
  colNames: o
392
385
  };
393
- }), R = v(!1);
394
- function lt(t) {
395
- R.value = t, ie.value += 1;
386
+ }), E = c(!1);
387
+ function ht(t) {
388
+ E.value = t, ce.value += 1;
396
389
  }
397
- function Fe() {
390
+ function Ne() {
398
391
  C.value.showTable = !C.value.showTable;
399
392
  }
400
- function ze() {
393
+ function Be() {
401
394
  C.value.showTooltip = !C.value.showTooltip;
402
395
  }
403
- const Z = v(!1);
404
- function ue() {
405
- Z.value = !Z.value;
396
+ const te = c(!1);
397
+ function re() {
398
+ te.value = !te.value;
406
399
  }
407
- return Ge({
408
- getData: Je,
409
- generatePdf: $e,
410
- generateCsv: Ae,
411
- generateImage: _e,
412
- toggleTable: Fe,
413
- toggleTooltip: ze,
414
- toggleAnnotator: ue
415
- }), (t, a) => (s(), r("div", {
416
- class: Be(`vue-ui-waffle ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
400
+ return We({
401
+ getData: nt,
402
+ generatePdf: Ie,
403
+ generateCsv: ze,
404
+ generateImage: Te,
405
+ toggleTable: Ne,
406
+ toggleTooltip: Be,
407
+ toggleAnnotator: re
408
+ }), (t, a) => (s(), n("div", {
409
+ class: De(`vue-ui-waffle ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
417
410
  ref_key: "waffleChart",
418
- ref: E,
411
+ ref: H,
419
412
  id: `vue-ui-waffle_${k.value}`,
420
- style: H(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
421
- onMouseenter: a[3] || (a[3] = () => c(ge)(!0)),
422
- onMouseleave: a[4] || (a[4] = () => c(ge)(!1))
413
+ style: K(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
414
+ onMouseenter: a[3] || (a[3] = () => r(me)(!0)),
415
+ onMouseleave: a[4] || (a[4] = () => r(me)(!1))
423
416
  }, [
424
- e.value.userOptions.buttons.annotator ? (s(), N(Nt, {
417
+ e.value.userOptions.buttons.annotator ? (s(), V(r(Ye), {
425
418
  key: 0,
426
- svgRef: c(be),
419
+ svgRef: r(ke),
427
420
  backgroundColor: e.value.style.chart.backgroundColor,
428
421
  color: e.value.style.chart.color,
429
- active: Z.value,
430
- onClose: ue
431
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
432
- He.value ? (s(), r("div", {
422
+ active: te.value,
423
+ onClose: re
424
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
425
+ ot.value ? (s(), n("div", {
433
426
  key: 1,
434
427
  ref_key: "noTitle",
435
- ref: he,
428
+ ref: ye,
436
429
  class: "vue-data-ui-no-title-space",
437
430
  style: "height:36px; width: 100%;background:transparent"
438
- }, null, 512)) : p("", !0),
439
- e.value.style.chart.title.text ? (s(), r("div", {
431
+ }, null, 512)) : y("", !0),
432
+ e.value.style.chart.title.text ? (s(), n("div", {
440
433
  key: 2,
441
434
  ref_key: "chartTitle",
442
- ref: ve,
435
+ ref: de,
443
436
  style: "width:100%;background:transparent;padding-bottom:12px"
444
437
  }, [
445
- (s(), N(It, {
438
+ (s(), V(Rt, {
446
439
  key: `title_${fe.value}`,
447
440
  config: {
448
441
  title: {
@@ -455,15 +448,15 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
455
448
  }
456
449
  }
457
450
  }, null, 8, ["config"]))
458
- ], 512)) : p("", !0),
459
- e.value.userOptions.show && X.value && (c(me) || c(le)) ? (s(), N(St, {
451
+ ], 512)) : y("", !0),
452
+ e.value.userOptions.show && J.value && (r(we) || r(oe)) ? (s(), V(r(Ze), {
460
453
  ref_key: "details",
461
- ref: qe,
462
- key: `user_options_${ie.value}`,
454
+ ref: at,
455
+ key: `user_options_${ce.value}`,
463
456
  backgroundColor: e.value.style.chart.backgroundColor,
464
457
  color: e.value.style.chart.color,
465
- isPrinting: c(xe),
466
- isImaging: c(Ce),
458
+ isPrinting: r($e),
459
+ isImaging: r(_e),
467
460
  uid: k.value,
468
461
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
469
462
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -471,93 +464,93 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
471
464
  hasXls: e.value.userOptions.buttons.csv,
472
465
  hasTable: e.value.userOptions.buttons.table,
473
466
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
474
- isFullscreen: R.value,
467
+ isFullscreen: E.value,
475
468
  isTooltip: C.value.showTooltip,
476
469
  titles: { ...e.value.userOptions.buttonTitles },
477
- chartElement: E.value,
470
+ chartElement: H.value,
478
471
  position: e.value.userOptions.position,
479
472
  hasAnnotator: e.value.userOptions.buttons.annotator,
480
- isAnnotation: Z.value,
481
- onToggleFullscreen: lt,
482
- onGeneratePdf: c($e),
483
- onGenerateCsv: Ae,
484
- onGenerateImage: c(_e),
485
- onToggleTable: Fe,
486
- onToggleTooltip: ze,
487
- onToggleAnnotator: ue,
488
- style: H({
489
- visibility: c(me) ? c(le) ? "visible" : "hidden" : "visible"
473
+ isAnnotation: te.value,
474
+ onToggleFullscreen: ht,
475
+ onGeneratePdf: r(Ie),
476
+ onGenerateCsv: ze,
477
+ onGenerateImage: r(Te),
478
+ onToggleTable: Ne,
479
+ onToggleTooltip: Be,
480
+ onToggleAnnotator: re,
481
+ style: K({
482
+ visibility: r(we) ? r(oe) ? "visible" : "hidden" : "visible"
490
483
  })
491
- }, Ve({ _: 2 }, [
484
+ }, Re({ _: 2 }, [
492
485
  t.$slots.menuIcon ? {
493
486
  name: "menuIcon",
494
- fn: m(({ isOpen: l, color: o }) => [
495
- g(t.$slots, "menuIcon", U(G({ isOpen: l, color: o })), void 0, !0)
487
+ fn: b(({ isOpen: l, color: o }) => [
488
+ g(t.$slots, "menuIcon", j(W({ isOpen: l, color: o })), void 0, !0)
496
489
  ]),
497
490
  key: "0"
498
491
  } : void 0,
499
492
  t.$slots.optionTooltip ? {
500
493
  name: "optionTooltip",
501
- fn: m(() => [
494
+ fn: b(() => [
502
495
  g(t.$slots, "optionTooltip", {}, void 0, !0)
503
496
  ]),
504
497
  key: "1"
505
498
  } : void 0,
506
499
  t.$slots.optionPdf ? {
507
500
  name: "optionPdf",
508
- fn: m(() => [
501
+ fn: b(() => [
509
502
  g(t.$slots, "optionPdf", {}, void 0, !0)
510
503
  ]),
511
504
  key: "2"
512
505
  } : void 0,
513
506
  t.$slots.optionCsv ? {
514
507
  name: "optionCsv",
515
- fn: m(() => [
508
+ fn: b(() => [
516
509
  g(t.$slots, "optionCsv", {}, void 0, !0)
517
510
  ]),
518
511
  key: "3"
519
512
  } : void 0,
520
513
  t.$slots.optionImg ? {
521
514
  name: "optionImg",
522
- fn: m(() => [
515
+ fn: b(() => [
523
516
  g(t.$slots, "optionImg", {}, void 0, !0)
524
517
  ]),
525
518
  key: "4"
526
519
  } : void 0,
527
520
  t.$slots.optionTable ? {
528
521
  name: "optionTable",
529
- fn: m(() => [
522
+ fn: b(() => [
530
523
  g(t.$slots, "optionTable", {}, void 0, !0)
531
524
  ]),
532
525
  key: "5"
533
526
  } : void 0,
534
527
  t.$slots.optionFullscreen ? {
535
528
  name: "optionFullscreen",
536
- fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
537
- g(t.$slots, "optionFullscreen", U(G({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
529
+ fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
530
+ g(t.$slots, "optionFullscreen", j(W({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
538
531
  ]),
539
532
  key: "6"
540
533
  } : void 0,
541
534
  t.$slots.optionAnnotator ? {
542
535
  name: "optionAnnotator",
543
- fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
544
- g(t.$slots, "optionAnnotator", U(G({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
536
+ fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
537
+ g(t.$slots, "optionAnnotator", j(W({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
545
538
  ]),
546
539
  key: "7"
547
540
  } : void 0
548
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
549
- X.value ? (s(), r("svg", {
541
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
542
+ J.value ? (s(), n("svg", {
550
543
  key: 4,
551
544
  ref_key: "svgRef",
552
- ref: be,
553
- xmlns: c(ft),
554
- class: Be({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
555
- viewBox: `0 0 ${F.value.width <= 0 ? 10 : F.value.width} ${F.value.height <= 0 ? 10 : F.value.height}`,
556
- style: H(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
545
+ ref: ke,
546
+ xmlns: r(_t),
547
+ class: De({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
548
+ viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
549
+ style: K(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
557
550
  }, [
558
- re(zt),
551
+ ie(r(et)),
559
552
  x("defs", null, [
560
- (s(!0), r($, null, L(n.value, (l, o) => (s(), r("radialGradient", {
553
+ (s(!0), n($, null, L(i.value, (l, o) => (s(), n("radialGradient", {
561
554
  cx: "50%",
562
555
  cy: "50%",
563
556
  r: "50%",
@@ -567,13 +560,13 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
567
560
  }, [
568
561
  x("stop", {
569
562
  offset: "0%",
570
- "stop-color": c(pt)(c(yt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
571
- }, null, 8, jt),
563
+ "stop-color": r(It)(r(Tt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
564
+ }, null, 8, qt),
572
565
  x("stop", {
573
566
  offset: "100%",
574
567
  "stop-color": l.color
575
- }, null, 8, Et)
576
- ], 8, Gt))), 256))
568
+ }, null, 8, Ht)
569
+ ], 8, Wt))), 256))
577
570
  ]),
578
571
  x("defs", null, [
579
572
  x("filter", {
@@ -591,18 +584,18 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
591
584
  type: "saturate",
592
585
  values: "0"
593
586
  }, null, -1)
594
- ]), 8, Wt)
587
+ ]), 8, Xt)
595
588
  ]),
596
- e.value.useCustomCells && n.value.length ? (s(!0), r($, { key: 0 }, L(M.value, (l, o) => (s(), r("foreignObject", {
589
+ e.value.useCustomCells && i.value.length ? (s(!0), n($, { key: 0 }, L(U.value, (l, o) => (s(), n("foreignObject", {
597
590
  x: l.x,
598
591
  y: l.y,
599
592
  height: S.value <= 0 ? 1e-4 : S.value,
600
593
  width: T.value <= 0 ? 1e-4 : T.value,
601
594
  class: "vue-ui-waffle-custom-cell-foreignObject"
602
595
  }, [
603
- g(t.$slots, "cell", Me({ ref_for: !0 }, { cell: { ...l, color: n.value[o].color, ...n.value[o] }, isSelected: [null, void 0].includes(V.value) ? !0 : n.value[o].serieIndex === V.value }), void 0, !0)
604
- ], 8, qt))), 256)) : p("", !0),
605
- !n.value.length && !e.value.useCustomCells ? (s(), r("rect", {
596
+ g(t.$slots, "cell", Ue({ ref_for: !0 }, { cell: { ...l, color: i.value[o].color, ...i.value[o] }, isSelected: [null, void 0].includes(D.value) ? !0 : i.value[o].serieIndex === D.value }), void 0, !0)
597
+ ], 8, Yt))), 256)) : y("", !0),
598
+ !i.value.length && !e.value.useCustomCells ? (s(), n("rect", {
606
599
  key: 1,
607
600
  x: 12,
608
601
  y: 12,
@@ -611,13 +604,13 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
611
604
  rx: 3,
612
605
  fill: "none",
613
606
  stroke: "black"
614
- }, null, 8, Ht)) : n.value.length && !e.value.useCustomCells ? (s(), r($, { key: 2 }, [
615
- t.$slots.pattern ? (s(), r("g", Xt, [
616
- (s(!0), r($, null, L(ae.value, (l) => (s(), r("defs", null, [
617
- g(t.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` }), void 0, !0)
607
+ }, null, 8, Kt)) : i.value.length && !e.value.useCustomCells ? (s(), n($, { key: 2 }, [
608
+ t.$slots.pattern ? (s(), n("g", Jt, [
609
+ (s(!0), n($, null, L(ue.value, (l) => (s(), n("defs", null, [
610
+ g(t.$slots, "pattern", Ue({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` }), void 0, !0)
618
611
  ]))), 256))
619
- ])) : p("", !0),
620
- (s(!0), r($, null, L(M.value, (l, o) => (s(), r("rect", {
612
+ ])) : y("", !0),
613
+ (s(!0), n($, null, L(U.value, (l, o) => (s(), n("rect", {
621
614
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
622
615
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
623
616
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -626,90 +619,90 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
626
619
  fill: "white",
627
620
  stroke: e.value.style.chart.layout.rect.stroke,
628
621
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
629
- filter: J(n.value[o].serieIndex)
630
- }, null, 8, Yt))), 256)),
631
- (s(!0), r($, null, L(M.value, (l, o) => (s(), r("rect", {
622
+ filter: Z(i.value[o].serieIndex)
623
+ }, null, 8, Qt))), 256)),
624
+ (s(!0), n($, null, L(U.value, (l, o) => (s(), n("rect", {
632
625
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
633
626
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
634
627
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
635
628
  height: S.value <= 0 ? 1e-4 : S.value,
636
629
  width: T.value <= 0 ? 1e-4 : T.value,
637
- fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${o})` : n.value[o].color,
630
+ fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${o})` : i.value[o].color,
638
631
  stroke: e.value.style.chart.layout.rect.stroke,
639
632
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
640
- filter: J(n.value[o].serieIndex)
641
- }, null, 8, Kt))), 256)),
642
- t.$slots.pattern ? (s(), r("g", Jt, [
643
- (s(!0), r($, null, L(M.value, (l, o) => (s(), r("rect", {
633
+ filter: Z(i.value[o].serieIndex)
634
+ }, null, 8, Zt))), 256)),
635
+ t.$slots.pattern ? (s(), n("g", el, [
636
+ (s(!0), n($, null, L(U.value, (l, o) => (s(), n("rect", {
644
637
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
645
638
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
646
639
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
647
640
  height: S.value <= 0 ? 1e-4 : S.value,
648
641
  width: T.value <= 0 ? 1e-4 : T.value,
649
- fill: `url(#pattern_${k.value}_${n.value[o].absoluteIndex})`,
642
+ fill: `url(#pattern_${k.value}_${i.value[o].absoluteIndex})`,
650
643
  stroke: "none",
651
- filter: J(n.value[o].serieIndex)
652
- }, null, 8, Qt))), 256))
653
- ])) : p("", !0)
654
- ], 64)) : p("", !0),
655
- (s(!0), r($, null, L(M.value, (l, o) => (s(), r($, null, [
656
- n.value.length && !z.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (n.value[o].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || n.value[o].isAbsoluteFirst && o % e.value.style.chart.layout.grid.size === 0 && n.value[o].absoluteStartIndex) ? (s(), r("foreignObject", {
644
+ filter: Z(i.value[o].serieIndex)
645
+ }, null, 8, tl))), 256))
646
+ ])) : y("", !0)
647
+ ], 64)) : y("", !0),
648
+ (s(!0), n($, null, L(U.value, (l, o) => (s(), n($, null, [
649
+ i.value.length && !B.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (i.value[o].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || i.value[o].isAbsoluteFirst && o % e.value.style.chart.layout.grid.size === 0 && i.value[o].absoluteStartIndex) ? (s(), n("foreignObject", {
657
650
  key: 0,
658
651
  x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
659
652
  y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
660
- height: K.value <= 0 ? 1e-4 : K.value,
661
- width: W.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : W.value * e.value.style.chart.layout.grid.size,
662
- filter: J(n.value[o].serieIndex)
653
+ height: Q.value <= 0 ? 1e-4 : Q.value,
654
+ width: X.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : X.value * e.value.style.chart.layout.grid.size,
655
+ filter: Z(i.value[o].serieIndex)
663
656
  }, [
664
657
  x("div", {
665
658
  class: "vue-ui-waffle-caption",
666
- style: H(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${W.value / 12}px;color:${c(gt)(n.value[o].color)};gap:2px`)
659
+ style: K(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${X.value / 12}px;color:${r(St)(i.value[o].color)};gap:2px`)
667
660
  }, [
668
- e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", el, A(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? c(mt)({ source: n.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : n.value[o].name) + ": ", 1)) : p("", !0),
669
- e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", tl, A(c(_)({ v: n.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : p("", !0),
670
- e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", ll, " (" + A(c(j)(
661
+ e.value.style.chart.layout.labels.captions.showSerieName ? (s(), n("span", al, z(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? r(Pt)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) : y("", !0),
662
+ e.value.style.chart.layout.labels.captions.showPercentage ? (s(), n("span", ol, z(r(_)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : y("", !0),
663
+ e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), n("span", ul, " (" + z(r(q)(
671
664
  e.value.style.chart.layout.labels.dataLabels.formatter,
672
- n.value[o].value,
673
- c(_)({
665
+ i.value[o].value,
666
+ r(_)({
674
667
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
675
- v: n.value[o].value,
668
+ v: i.value[o].value,
676
669
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
677
670
  r: e.value.style.chart.layout.labels.captions.roundingValue
678
671
  }),
679
- { datapoint: n.value[o], position: l }
680
- )) + ") ", 1)) : p("", !0),
681
- !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", al, A(c(j)(
672
+ { datapoint: i.value[o], position: l }
673
+ )) + ") ", 1)) : y("", !0),
674
+ !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), n("span", sl, z(r(q)(
682
675
  e.value.style.chart.layout.labels.dataLabels.formatter,
683
- n.value[o].value,
684
- c(_)({
676
+ i.value[o].value,
677
+ r(_)({
685
678
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
686
- v: n.value[o].value,
679
+ v: i.value[o].value,
687
680
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
688
681
  r: e.value.style.chart.layout.labels.captions.roundingValue
689
682
  }),
690
- { datapoint: n.value[o], position: l }
691
- )), 1)) : p("", !0)
683
+ { datapoint: i.value[o], position: l }
684
+ )), 1)) : y("", !0)
692
685
  ], 4)
693
- ], 8, Zt)) : p("", !0)
686
+ ], 8, ll)) : y("", !0)
694
687
  ], 64))), 256)),
695
- (s(!0), r($, null, L(M.value, (l, o) => (s(), r("rect", {
696
- onMouseover: (u) => et(o),
688
+ (s(!0), n($, null, L(U.value, (l, o) => (s(), n("rect", {
689
+ onMouseover: (u) => ct(o),
697
690
  onMouseleave: a[0] || (a[0] = (u) => {
698
- ee.value = !1, V.value = null;
691
+ le.value = !1, D.value = null;
699
692
  }),
700
693
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
701
694
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
702
- height: K.value <= 0 ? 1e-4 : K.value,
703
- width: W.value <= 0 ? 1e-4 : W.value,
695
+ height: Q.value <= 0 ? 1e-4 : Q.value,
696
+ width: X.value <= 0 ? 1e-4 : X.value,
704
697
  fill: "transparent",
705
698
  stroke: "none"
706
- }, null, 40, ol))), 256)),
707
- g(t.$slots, "svg", { svg: F.value }, void 0, !0)
708
- ], 14, Ut)) : p("", !0),
709
- t.$slots.watermark ? (s(), r("div", ul, [
710
- g(t.$slots, "watermark", U(G({ isPrinting: c(xe) || c(Ce) })), void 0, !0)
711
- ])) : p("", !0),
712
- X.value ? p("", !0) : (s(), N(At, {
699
+ }, null, 40, rl))), 256)),
700
+ g(t.$slots, "svg", { svg: N.value }, void 0, !0)
701
+ ], 14, jt)) : y("", !0),
702
+ t.$slots.watermark ? (s(), n("div", nl, [
703
+ g(t.$slots, "watermark", j(W({ isPrinting: r($e) || r(_e) })), void 0, !0)
704
+ ])) : y("", !0),
705
+ J.value ? y("", !0) : (s(), V(r(Je), {
713
706
  key: 6,
714
707
  config: {
715
708
  type: "waffle",
@@ -723,40 +716,40 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
723
716
  }, null, 8, ["config"])),
724
717
  x("div", {
725
718
  ref_key: "chartLegend",
726
- ref: ce
719
+ ref: he
727
720
  }, [
728
- e.value.style.chart.legend.show ? (s(), N(Lt, {
729
- key: `legend_${ye.value}`,
730
- legendSet: D.value,
731
- config: Ze.value,
721
+ e.value.style.chart.legend.show ? (s(), V(Ut, {
722
+ key: `legend_${be.value}`,
723
+ legendSet: G.value,
724
+ config: vt.value,
732
725
  onClickMarker: a[1] || (a[1] = ({ legend: l }) => Le(l.uid))
733
- }, Ve({
734
- item: m(({ legend: l }) => [
726
+ }, Re({
727
+ item: b(({ legend: l }) => [
735
728
  x("div", {
736
729
  onClick: (o) => l.segregate(),
737
- style: H(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
730
+ style: K(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
738
731
  }, [
739
- De(A(l.name) + ": " + A(c(j)(
732
+ Ge(z(l.name) + ": " + z(r(q)(
740
733
  e.value.style.chart.layout.labels.dataLabels.formatter,
741
734
  l.value,
742
- c(_)({
735
+ r(_)({
743
736
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
744
737
  v: l.value,
745
738
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
746
739
  r: e.value.style.chart.legend.roundingValue,
747
- isAnimating: z.value
740
+ isAnimating: B.value
748
741
  }),
749
742
  { datapoint: l }
750
743
  )) + " ", 1),
751
- f.value.includes(l.uid) ? (s(), r("span", nl, " ( - % ) ")) : (s(), r("span", rl, " (" + A(isNaN(l.value / O.value) ? "-" : c(_)({ v: l.value / O.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: z.value })) + ") ", 1))
752
- ], 12, sl)
744
+ p.value.includes(l.uid) ? (s(), n("span", cl, " ( - % ) ")) : (s(), n("span", vl, " (" + z(isNaN(l.value / P.value) ? "-" : r(_)({ v: l.value / P.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: B.value })) + ") ", 1))
745
+ ], 12, il)
753
746
  ]),
754
747
  _: 2
755
748
  }, [
756
749
  t.$slots.pattern ? {
757
750
  name: "legend-pattern",
758
- fn: m(({ legend: l, index: o }) => [
759
- re(Vt, {
751
+ fn: b(({ legend: l, index: o }) => [
752
+ ie(r(Xe), {
760
753
  shape: l.shape,
761
754
  radius: 30,
762
755
  stroke: "none",
@@ -768,19 +761,19 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
768
761
  } : void 0
769
762
  ]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
770
763
  key: 1,
771
- legend: D.value
764
+ legend: G.value
772
765
  }, void 0, !0)
773
766
  ], 512),
774
- t.$slots.source ? (s(), r("div", {
767
+ t.$slots.source ? (s(), n("div", {
775
768
  key: 7,
776
769
  ref_key: "source",
777
- ref: de,
770
+ ref: pe,
778
771
  dir: "auto"
779
772
  }, [
780
773
  g(t.$slots, "source", {}, void 0, !0)
781
- ], 512)) : p("", !0),
782
- re(Ot, {
783
- show: C.value.showTooltip && ee.value && f.value.length < b.dataset.length,
774
+ ], 512)) : y("", !0),
775
+ ie(r(Qe), {
776
+ show: C.value.showTooltip && le.value && p.value.length < m.dataset.length,
784
777
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
785
778
  color: e.value.style.chart.tooltip.color,
786
779
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -789,21 +782,21 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
789
782
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
790
783
  position: e.value.style.chart.tooltip.position,
791
784
  offsetY: e.value.style.chart.tooltip.offsetY,
792
- parent: E.value,
793
- content: te.value,
785
+ parent: H.value,
786
+ content: ae.value,
794
787
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
795
788
  fontSize: e.value.style.chart.tooltip.fontSize,
796
- isFullscreen: R.value
789
+ isFullscreen: E.value
797
790
  }, {
798
- "tooltip-before": m(() => [
799
- g(t.$slots, "tooltip-before", U(G({ ...oe.value })), void 0, !0)
791
+ "tooltip-before": b(() => [
792
+ g(t.$slots, "tooltip-before", j(W({ ...se.value })), void 0, !0)
800
793
  ]),
801
- "tooltip-after": m(() => [
802
- g(t.$slots, "tooltip-after", U(G({ ...oe.value })), void 0, !0)
794
+ "tooltip-after": b(() => [
795
+ g(t.$slots, "tooltip-after", j(W({ ...se.value })), void 0, !0)
803
796
  ]),
804
797
  _: 3
805
798
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen"]),
806
- X.value ? (s(), N(Ft, {
799
+ J.value ? (s(), V(r(Ke), {
807
800
  key: 8,
808
801
  hideDetails: "",
809
802
  config: {
@@ -819,33 +812,33 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
819
812
  }
820
813
  }
821
814
  }, {
822
- content: m(() => [
823
- (s(), N(Pt, {
824
- key: `table_${pe.value}`,
825
- colNames: Q.value.colNames,
826
- head: Q.value.head,
827
- body: Q.value.body,
828
- config: Q.value.config,
815
+ content: b(() => [
816
+ (s(), V(r(He), {
817
+ key: `table_${ge.value}`,
818
+ colNames: ee.value.colNames,
819
+ head: ee.value.head,
820
+ body: ee.value.body,
821
+ config: ee.value.config,
829
822
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
830
823
  onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
831
824
  }, {
832
- th: m(({ th: l }) => [
825
+ th: b(({ th: l }) => [
833
826
  x("div", {
834
827
  innerHTML: l,
835
828
  style: { display: "flex", "align-items": "center" }
836
- }, null, 8, il)
829
+ }, null, 8, dl)
837
830
  ]),
838
- td: m(({ td: l }) => [
839
- De(A(l.name || l), 1)
831
+ td: b(({ td: l }) => [
832
+ Ge(z(l.name || l), 1)
840
833
  ]),
841
834
  _: 1
842
835
  }, 8, ["colNames", "head", "body", "config", "title"]))
843
836
  ]),
844
837
  _: 1
845
- }, 8, ["config"])) : p("", !0)
846
- ], 46, Rt));
838
+ }, 8, ["config"])) : y("", !0)
839
+ ], 46, Et));
847
840
  }
848
- }, Sl = /* @__PURE__ */ Dt(vl, [["__scopeId", "data-v-b3044eda"]]);
841
+ }, $l = /* @__PURE__ */ Gt(hl, [["__scopeId", "data-v-d587fd7c"]]);
849
842
  export {
850
- Sl as default
843
+ $l as default
851
844
  };