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

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