vue-data-ui 2.16.6 → 2.17.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 (92) hide show
  1. package/README.md +83 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1096 -160
  23. package/dist/types/vue-data-ui.d.ts +1096 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
  82. package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
  85. package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
  86. package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
@@ -1,18 +1,19 @@
1
- import { defineAsyncComponent as B, useSlots as pt, computed as d, ref as c, watch as Me, shallowRef as De, onMounted as ft, onBeforeUnmount as yt, createElementBlock as r, openBlock as s, unref as n, normalizeStyle as K, normalizeClass as Re, createBlock as V, createCommentVNode as f, createElementVNode as x, createVNode as ve, createSlots as Ue, withCtx as b, renderSlot as g, normalizeProps as j, guardReactiveProps as W, Fragment as $, renderList as F, mergeProps as Ee, toDisplayString as L, 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 ce, g as Ct, b as $t, i as q, f as _, X as _t, s as It, w as Tt, F as St, L as Ot, d as Pt, q as At, r as Ft, x as Lt, y as zt } from "./index-DvIXJm6t.js";
3
- import { t as Nt, u as Bt } from "./useResponsive-DfdjqQps.js";
4
- import { u as je } from "./useNestedProp-DrYHm61t.js";
5
- import { u as Vt } from "./usePrinter-CWnXbGMb.js";
6
- import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Rt from "./Title-Gi81VwUM.js";
9
- import Ut from "./Legend-nBXoxXJH.js";
10
- import { _ as Et } from "./Shape-Bnf512BA.js";
11
- import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"], Xt = ["stop-color"], Yt = ["id"], Jt = ["x", "y", "height", "width"], Kt = ["height", "width"], Qt = { key: 0 }, Zt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], el = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], tl = { key: 1 }, ll = ["rx", "x", "y", "height", "width", "fill", "filter"], al = ["x", "y", "height", "width", "filter"], ol = { key: 0 }, ul = { key: 1 }, sl = { key: 2 }, rl = { key: 3 }, nl = ["onMouseover", "x", "y", "height", "width"], il = {
1
+ import { defineAsyncComponent as V, useSlots as ft, computed as d, ref as c, watch as De, shallowRef as Re, onMounted as yt, onBeforeUnmount as gt, createElementBlock as r, openBlock as s, unref as n, normalizeStyle as K, normalizeClass as Ue, createBlock as M, createCommentVNode as f, createElementVNode as x, createVNode as ve, createSlots as Ee, withCtx as m, renderSlot as g, normalizeProps as W, guardReactiveProps as q, Fragment as $, renderList as F, mergeProps as Ge, toDisplayString as L, createTextVNode as je, nextTick as mt } from "vue";
2
+ import { u as bt, c as wt, t as kt, p as D, a as xt, o as Ct, e as ce, g as $t, b as _t, i as H, f as _, X as It, s as Tt, w as St, F as Ot, L as Pt, d as At, q as Ft, r as Lt, x as zt, y as Nt } from "./index-pPGk-uhD.js";
3
+ import { t as Bt, u as Vt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as We } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as Mt } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as Dt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Ut from "./Title-B-2bV0SW.js";
9
+ import Et from "./Legend-Bxlv67uY.js";
10
+ import { _ as Gt } from "./Shape-DtFT5EJa.js";
11
+ import jt from "./img-Y_hYz-ZC.js";
12
+ import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const qt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["id"], Yt = ["stop-color"], Jt = ["stop-color"], Kt = ["id"], Qt = ["x", "y", "height", "width"], Zt = ["height", "width"], el = { key: 0 }, tl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], ll = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], al = { key: 1 }, ol = ["rx", "x", "y", "height", "width", "fill", "filter"], ul = ["x", "y", "height", "width", "filter"], sl = { key: 0 }, rl = { key: 1 }, nl = { key: 2 }, il = { key: 3 }, vl = ["onMouseover", "x", "y", "height", "width"], cl = {
13
14
  key: 5,
14
15
  class: "vue-data-ui-watermark"
15
- }, vl = ["onClick"], cl = { key: 0 }, dl = { key: 1 }, hl = ["innerHTML"], pl = {
16
+ }, dl = ["onClick"], hl = { key: 0 }, pl = { key: 1 }, fl = ["innerHTML"], yl = {
16
17
  __name: "vue-ui-waffle",
17
18
  props: {
18
19
  config: {
@@ -29,34 +30,34 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
29
30
  }
30
31
  },
31
32
  emits: ["selectLegend"],
32
- setup(We, { expose: qe, emit: He }) {
33
- const Xe = B(() => import("./DataTable-CHBLjKtZ.js")), Ye = B(() => import("./PenAndPaper-BPTpbnay.js")), Je = B(() => import("./vue-ui-accordion-D55kCO5G.js")), Ke = B(() => import("./vue-ui-skeleton-BAOt2neL.js")), Qe = B(() => import("./Tooltip-CJxVw7-T.js")), Ze = B(() => import("./UserOptions-CBEK6_jo.js")), et = B(() => import("./PackageVersion-Bg_9KCU-.js")), { vue_ui_waffle: tt } = bt(), m = We, lt = pt(), Q = d(() => !!m.dataset && m.dataset.length), k = c(mt()), at = c(null), ae = c(!1), oe = c(""), D = c(null), de = c(0), H = c(null), he = c(null), pe = c(null), fe = c(null), ye = c(null), ge = c(0), be = c(0), me = c(0), e = d({
33
+ setup(qe, { expose: He, emit: Xe }) {
34
+ const Ye = V(() => import("./DataTable-D0VYDhfx.js")), Je = V(() => import("./PenAndPaper-D6AqipIO.js")), Ke = V(() => import("./vue-ui-accordion-CVnA550V.js")), Qe = V(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Ze = V(() => import("./Tooltip-CoQnTnr-.js")), et = V(() => import("./UserOptions-Dd34lEKb.js")), tt = V(() => import("./PackageVersion-5TR4ocqp.js")), { vue_ui_waffle: lt } = bt(), b = qe, at = ft(), Q = d(() => !!b.dataset && b.dataset.length), k = c(wt()), ot = c(null), ae = c(!1), oe = c(""), R = c(null), de = c(0), z = c(null), he = c(null), pe = c(null), fe = c(null), ye = c(null), ge = c(0), me = c(0), be = c(0), e = d({
34
35
  get: () => Ce(),
35
36
  set: (t) => t
36
- }), { userOptionsVisible: ue, setUserOptionsVisibility: we, keepUserOptionState: ke } = Mt({ config: e.value }), { svgRef: xe } = Dt({ config: e.value.style.chart.title });
37
+ }), { userOptionsVisible: ue, setUserOptionsVisibility: we, keepUserOptionState: ke } = Dt({ config: e.value }), { svgRef: xe } = Rt({ config: e.value.style.chart.title });
37
38
  function Ce() {
38
- const t = je({
39
- userConfig: m.config,
40
- defaultConfig: tt
39
+ const t = We({
40
+ userConfig: b.config,
41
+ defaultConfig: lt
41
42
  });
42
43
  return t.theme ? {
43
- ...je({
44
- userConfig: kt.vue_ui_waffle[t.theme] || m.config,
44
+ ...We({
45
+ userConfig: xt.vue_ui_waffle[t.theme] || b.config,
45
46
  defaultConfig: t
46
47
  }),
47
- customPalette: wt[t.theme] || M
48
+ customPalette: kt[t.theme] || D
48
49
  } : t;
49
50
  }
50
- Me(() => m.config, (t) => {
51
- e.value = Ce(), ue.value = !e.value.userOptions.showOnChartHover, $e(), ge.value += 1, be.value += 1, me.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
51
+ De(() => b.config, (t) => {
52
+ e.value = Ce(), ue.value = !e.value.userOptions.showOnChartHover, $e(), ge.value += 1, me.value += 1, be.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
52
53
  }, { deep: !0 });
53
- const A = De(null), R = De(null);
54
+ const A = Re(null), U = Re(null);
54
55
  function $e() {
55
- if (xt(m.dataset) ? ce({
56
+ if (Ct(b.dataset) ? ce({
56
57
  componentName: "VueUiWaffle",
57
58
  type: "dataset"
58
- }) : m.dataset.forEach((t, a) => {
59
- Ct({
59
+ }) : b.dataset.forEach((t, a) => {
60
+ $t({
60
61
  datasetObject: t,
61
62
  requiredAttributes: ["name", "values"]
62
63
  }).forEach((l) => {
@@ -68,34 +69,34 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
68
69
  });
69
70
  });
70
71
  }), e.value.responsive) {
71
- const t = Nt(() => {
72
- const { width: a, height: l } = Bt({
73
- chart: H.value,
72
+ const t = Bt(() => {
73
+ const { width: a, height: l } = Vt({
74
+ chart: z.value,
74
75
  title: e.value.style.chart.title.text ? he.value : null,
75
76
  legend: e.value.style.chart.legend.show ? pe.value : null,
76
77
  source: fe.value,
77
78
  noTitle: ye.value
78
79
  });
79
80
  requestAnimationFrame(() => {
80
- z.value.width = a, z.value.height = l, I.value.width = a, I.value.height = l;
81
+ N.value.width = a, N.value.height = l, I.value.width = a, I.value.height = l;
81
82
  });
82
83
  });
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);
84
+ A.value && (U.value && A.value.unobserve(U.value), A.value.disconnect()), A.value = new ResizeObserver(t), U.value = z.value.parentNode, A.value.observe(U.value);
84
85
  }
85
86
  }
86
- ft(() => {
87
+ yt(() => {
87
88
  $e();
88
- }), yt(() => {
89
- A.value && (R.value && A.value.unobserve(R.value), A.value.disconnect());
89
+ }), gt(() => {
90
+ A.value && (U.value && A.value.unobserve(U.value), A.value.disconnect());
90
91
  });
91
- const { isPrinting: _e, isImaging: Ie, generatePdf: Te, generateImage: Se } = Vt({
92
+ const { isPrinting: _e, isImaging: Ie, generatePdf: Te, generateImage: Se } = Mt({
92
93
  elementId: `vue-ui-waffle_${k.value}`,
93
94
  fileName: e.value.style.chart.title.text || "vue-ui-waffle",
94
95
  options: e.value.userOptions.print
95
- }), ot = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Oe = d(() => $t(e.value.customPalette)), C = c({
96
+ }), ut = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Oe = d(() => _t(e.value.customPalette)), C = c({
96
97
  showTable: e.value.table.show,
97
98
  showTooltip: e.value.style.chart.tooltip.show
98
- }), z = c({
99
+ }), N = c({
99
100
  height: 512,
100
101
  width: 512
101
102
  }), I = c({
@@ -115,24 +116,24 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
115
116
  }
116
117
  const Y = c(!1);
117
118
  function Ae() {
118
- return Y.value = m.dataset.flatMap((t) => t.values.reduce((a, l) => a + l, 0)).reduce((t, a) => t + a, 0) === 0, m.dataset.map((t, a) => ({
119
+ return Y.value = b.dataset.flatMap((t) => t.values.reduce((a, l) => a + l, 0)).reduce((t, a) => t + a, 0) === 0, b.dataset.map((t, a) => ({
119
120
  ...t,
120
- color: Pt(t.color) || Oe.value[a] || M[a] || M[a % M.length],
121
+ color: At(t.color) || Oe.value[a] || D[a] || D[a % D.length],
121
122
  uid: `serie_${a}`,
122
123
  absoluteIndex: a
123
124
  }));
124
125
  }
125
126
  const se = d(() => Ae()), h = c(se.value);
126
- Me(() => m.dataset, (t) => {
127
+ De(() => b.dataset, (t) => {
127
128
  h.value = Ae();
128
129
  }, { deep: !0 });
129
- const ut = d(() => {
130
+ const st = d(() => {
130
131
  const t = h.value.filter((a, l) => !p.value.includes(a.uid)).map((a, l) => Y.value ? 1 : (a.values || []).reduce((o, u) => o + u, 0));
131
132
  return Pe(t);
132
- }), st = d(() => {
133
+ }), rt = d(() => {
133
134
  const t = h.value.map((a, l) => Y.value ? 1 : (a.values || []).reduce((o, u) => o + u));
134
135
  return Pe(t);
135
- }), J = d(() => (m.dataset.forEach((t, a) => {
136
+ }), J = d(() => (b.dataset.forEach((t, a) => {
136
137
  [null, void 0].includes(t.values) && ce({
137
138
  componentName: "VueUiWaffle",
138
139
  type: "datasetSerieAttribute",
@@ -146,25 +147,25 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
146
147
  color: t.color,
147
148
  value: (t.values || []).reduce((l, o) => l + o, 0),
148
149
  absoluteValues: t.values || [],
149
- proportion: ut.value[a]
150
- })))), rt = d(() => h.value.map((t, a) => ({
150
+ proportion: st.value[a]
151
+ })))), nt = d(() => h.value.map((t, a) => ({
151
152
  absoluteIndex: t.absoluteIndex,
152
153
  uid: t.uid,
153
154
  name: t.name,
154
155
  color: t.color,
155
156
  value: (t.values || []).reduce((l, o) => l + o, 0),
156
157
  absoluteValues: t.values || [],
157
- proportion: st.value[a]
158
+ proportion: rt.value[a]
158
159
  })));
159
- function nt() {
160
- return rt.value.map((t) => ({
160
+ function it() {
161
+ return nt.value.map((t) => ({
161
162
  name: t.name,
162
163
  color: t.color,
163
164
  value: t.value,
164
165
  proportion: t.proportion
165
166
  }));
166
167
  }
167
- const it = d(() => {
168
+ const vt = d(() => {
168
169
  let t = 0;
169
170
  return J.value.map((a, l) => {
170
171
  const o = t, u = o + a.proportion, v = [];
@@ -176,7 +177,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
176
177
  rects: v
177
178
  };
178
179
  });
179
- }), i = d(() => it.value.flatMap((t, a) => t.rects.map((l, o) => ({
180
+ }), i = d(() => vt.value.flatMap((t, a) => t.rects.map((l, o) => ({
180
181
  isFirst: o === 0,
181
182
  isLongEnough: l.length > 2,
182
183
  name: t.name,
@@ -189,7 +190,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
189
190
  }))).map((t, a) => ({
190
191
  ...t,
191
192
  isAbsoluteFirst: a % e.value.style.chart.layout.grid.size === 0
192
- }))), U = d(() => {
193
+ }))), E = d(() => {
193
194
  const t = [];
194
195
  for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
195
196
  for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
@@ -200,11 +201,11 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
200
201
  y: (e.value.style.chart.layout.grid.vertical ? l : a) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
201
202
  });
202
203
  return t;
203
- }), p = c([]), N = c(!1), Fe = c(null), Le = c(null);
204
+ }), p = c([]), B = c(!1), Fe = c(null), Le = c(null);
204
205
  function ze(t) {
205
206
  if (Y.value) return;
206
207
  if (!e.value.useAnimation) {
207
- p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < E.value.length - 1 && E.value.length > 1 && p.value.push(t);
208
+ 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);
208
209
  return;
209
210
  }
210
211
  const a = se.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,7 +216,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
215
216
  o > u ? (cancelAnimationFrame(Fe.value), h.value = h.value.map((y, w) => y.uid === t ? {
216
217
  ...y,
217
218
  values: [u]
218
- } : y), N.value = !1) : (N.value = !0, o += u * 0.025, h.value = h.value.map((y, w) => y.uid === t ? {
219
+ } : y), B.value = !1) : (B.value = !0, o += u * 0.025, h.value = h.value.map((y, w) => y.uid === t ? {
219
220
  ...y,
220
221
  values: [o]
221
222
  } : y), Fe.value = requestAnimationFrame(v));
@@ -223,19 +224,19 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
223
224
  p.value = p.value.filter((y) => y !== t);
224
225
  const u = a;
225
226
  v();
226
- } else if (p.value.length < E.value.length - 1 && E.value.length > 1) {
227
+ } else if (p.value.length < G.value.length - 1 && G.value.length > 1) {
227
228
  let u = function() {
228
229
  o < l / 100 ? (cancelAnimationFrame(Le.value), p.value.push(t), h.value = h.value.map((v, y) => v.uid === t ? {
229
230
  ...v,
230
231
  values: [0]
231
- } : v), N.value = !1) : (N.value = !0, o /= 1.15, h.value = h.value.map((v) => v.uid === t ? {
232
+ } : v), B.value = !1) : (B.value = !0, o /= 1.15, h.value = h.value.map((v) => v.uid === t ? {
232
233
  ...v,
233
234
  values: [o]
234
235
  } : v), Le.value = requestAnimationFrame(u));
235
236
  };
236
237
  u();
237
238
  }
238
- dt("selectLegend", J.value.map((u) => ({
239
+ ht("selectLegend", J.value.map((u) => ({
239
240
  name: u.name,
240
241
  color: u.color,
241
242
  value: u.value,
@@ -243,9 +244,9 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
243
244
  })));
244
245
  }
245
246
  }
246
- const E = d(() => h.value.map((t, a) => ({
247
+ const G = d(() => h.value.map((t, a) => ({
247
248
  name: t.name,
248
- color: t.color || Oe[a] || M[a] || M[a % M.length],
249
+ color: t.color || Oe[a] || D[a] || D[a % D.length],
249
250
  value: (t.values || []).reduce((l, o) => l + o, 0),
250
251
  uid: t.uid,
251
252
  shape: "square"
@@ -255,7 +256,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
255
256
  opacity: p.value.includes(t.uid) ? 0.5 : 1,
256
257
  segregate: () => ze(t.uid),
257
258
  isSegregated: p.value.includes(t.uid)
258
- }))), vt = d(() => ({
259
+ }))), ct = d(() => ({
259
260
  cy: "waffle-div-legend",
260
261
  backgroundColor: e.value.style.chart.legend.backgroundColor,
261
262
  color: e.value.style.chart.legend.color,
@@ -263,17 +264,17 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
263
264
  paddingBottom: 12,
264
265
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
265
266
  })), O = d(() => J.value.map((t) => t.value).reduce((t, a) => t + a, 0)), re = c(null);
266
- function ct(t) {
267
- if (p.value.length === m.dataset.length) return;
267
+ function dt(t) {
268
+ if (p.value.length === b.dataset.length) return;
268
269
  const a = i.value[t];
269
270
  re.value = {
270
271
  datapoint: a,
271
272
  seriesIndex: a.absoluteIndex,
272
273
  series: h.value,
273
274
  config: e.value
274
- }, ae.value = !0, D.value = i.value[t].serieIndex;
275
+ }, ae.value = !0, R.value = i.value[t].serieIndex;
275
276
  const l = e.value.style.chart.tooltip.customFormat;
276
- if (Lt(l) && zt(() => l({
277
+ if (zt(l) && Nt(() => l({
277
278
  seriesIndex: i.value[t].absoluteIndex,
278
279
  datapoint: a,
279
280
  series: h.value,
@@ -287,7 +288,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
287
288
  });
288
289
  else {
289
290
  let o = "";
290
- 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(
291
+ 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}" />${at.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>${H(
291
292
  e.value.style.chart.layout.labels.dataLabels.formatter,
292
293
  a.value,
293
294
  _({
@@ -303,7 +304,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
303
304
  }
304
305
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
305
306
  const u = _({
306
- v: Y.value ? 1 / m.dataset.length * 100 : a.value / O.value * 100,
307
+ v: Y.value ? 1 / b.dataset.length * 100 : a.value / O.value * 100,
307
308
  s: "%",
308
309
  r: e.value.style.chart.tooltip.roundingPercentage
309
310
  });
@@ -312,7 +313,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
312
313
  oe.value = o;
313
314
  }
314
315
  }
315
- const dt = He, P = d(() => {
316
+ const ht = Xe, P = d(() => {
316
317
  const t = J.value.map((l) => ({
317
318
  name: l.name,
318
319
  color: l.color
@@ -320,20 +321,20 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
320
321
  return { head: t, body: a };
321
322
  });
322
323
  function ee(t) {
323
- return e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== t ? `url(#blur_${k.value})` : "";
324
+ return e.value.useBlurOnHover && ![null, void 0].includes(R.value) && R.value !== t ? `url(#blur_${k.value})` : "";
324
325
  }
325
326
  function Ne(t = null) {
326
- gt(() => {
327
+ mt(() => {
327
328
  const a = P.value.head.map((u, v) => [[
328
329
  u.name
329
- ], [P.value.body[v]], [isNaN(P.value.body[v] / O.value) ? "-" : P.value.body[v] / O.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = At(l);
330
- t ? t(o) : Ft({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
330
+ ], [P.value.body[v]], [isNaN(P.value.body[v] / O.value) ? "-" : P.value.body[v] / O.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Ft(l);
331
+ t ? t(o) : Lt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
331
332
  });
332
333
  }
333
334
  const te = d(() => {
334
335
  const t = [
335
336
  ' <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>',
336
- q(
337
+ H(
337
338
  e.value.style.chart.layout.labels.dataLabels.formatter,
338
339
  O.value,
339
340
  _({
@@ -349,7 +350,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
349
350
  color: u.color,
350
351
  name: u.name
351
352
  },
352
- q(
353
+ H(
353
354
  e.value.style.chart.layout.labels.dataLabels.formatter,
354
355
  P.value.body[v],
355
356
  _({
@@ -388,38 +389,45 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
388
389
  config: l,
389
390
  colNames: o
390
391
  };
391
- }), G = c(!1);
392
- function ht(t) {
393
- G.value = t, de.value += 1;
392
+ }), j = c(!1);
393
+ function Be(t) {
394
+ j.value = t, de.value += 1;
394
395
  }
395
- function Be() {
396
+ function Ve() {
396
397
  C.value.showTable = !C.value.showTable;
397
398
  }
398
- function Ve() {
399
+ function Me() {
399
400
  C.value.showTooltip = !C.value.showTooltip;
400
401
  }
401
402
  const le = c(!1);
402
403
  function ne() {
403
404
  le.value = !le.value;
404
405
  }
405
- return qe({
406
- getData: nt,
406
+ async function pt({ scale: t = 2 } = {}) {
407
+ if (!z.value) return;
408
+ const { imageUri: a, base64: l } = await jt({ domElement: z.value, base64: !0, img: !0, scale: t });
409
+ return { imageUri: a, base64: l };
410
+ }
411
+ return He({
412
+ getData: it,
413
+ getImage: pt,
407
414
  generatePdf: Te,
408
415
  generateCsv: Ne,
409
416
  generateImage: Se,
410
- toggleTable: Be,
411
- toggleTooltip: Ve,
412
- toggleAnnotator: ne
417
+ toggleTable: Ve,
418
+ toggleTooltip: Me,
419
+ toggleAnnotator: ne,
420
+ toggleFullscreen: Be
413
421
  }), (t, a) => (s(), r("div", {
414
- class: Re(`vue-ui-waffle ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
422
+ class: Ue(`vue-ui-waffle ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
415
423
  ref_key: "waffleChart",
416
- ref: H,
424
+ ref: z,
417
425
  id: `vue-ui-waffle_${k.value}`,
418
426
  style: K(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
419
427
  onMouseenter: a[3] || (a[3] = () => n(we)(!0)),
420
428
  onMouseleave: a[4] || (a[4] = () => n(we)(!1))
421
429
  }, [
422
- e.value.userOptions.buttons.annotator ? (s(), V(n(Ye), {
430
+ e.value.userOptions.buttons.annotator ? (s(), M(n(Je), {
423
431
  key: 0,
424
432
  svgRef: n(xe),
425
433
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -427,7 +435,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
427
435
  active: le.value,
428
436
  onClose: ne
429
437
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
430
- ot.value ? (s(), r("div", {
438
+ ut.value ? (s(), r("div", {
431
439
  key: 1,
432
440
  ref_key: "noTitle",
433
441
  ref: ye,
@@ -440,7 +448,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
440
448
  ref: he,
441
449
  style: "width:100%;background:transparent;padding-bottom:12px"
442
450
  }, [
443
- (s(), V(Rt, {
451
+ (s(), M(Ut, {
444
452
  key: `title_${ge.value}`,
445
453
  config: {
446
454
  title: {
@@ -454,9 +462,9 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
454
462
  }
455
463
  }, null, 8, ["config"]))
456
464
  ], 512)) : f("", !0),
457
- e.value.userOptions.show && Q.value && (n(ke) || n(ue)) ? (s(), V(n(Ze), {
465
+ e.value.userOptions.show && Q.value && (n(ke) || n(ue)) ? (s(), M(n(et), {
458
466
  ref_key: "details",
459
- ref: at,
467
+ ref: ot,
460
468
  key: `user_options_${de.value}`,
461
469
  backgroundColor: e.value.style.chart.backgroundColor,
462
470
  color: e.value.style.chart.color,
@@ -469,79 +477,79 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
469
477
  hasXls: e.value.userOptions.buttons.csv,
470
478
  hasTable: e.value.userOptions.buttons.table,
471
479
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
472
- isFullscreen: G.value,
480
+ isFullscreen: j.value,
473
481
  isTooltip: C.value.showTooltip,
474
482
  titles: { ...e.value.userOptions.buttonTitles },
475
- chartElement: H.value,
483
+ chartElement: z.value,
476
484
  position: e.value.userOptions.position,
477
485
  hasAnnotator: e.value.userOptions.buttons.annotator,
478
486
  isAnnotation: le.value,
479
487
  callbacks: e.value.userOptions.callbacks,
480
488
  printScale: e.value.userOptions.print.scale,
481
- onToggleFullscreen: ht,
489
+ onToggleFullscreen: Be,
482
490
  onGeneratePdf: n(Te),
483
491
  onGenerateCsv: Ne,
484
492
  onGenerateImage: n(Se),
485
- onToggleTable: Be,
486
- onToggleTooltip: Ve,
493
+ onToggleTable: Ve,
494
+ onToggleTooltip: Me,
487
495
  onToggleAnnotator: ne,
488
496
  style: K({
489
497
  visibility: n(ke) ? n(ue) ? "visible" : "hidden" : "visible"
490
498
  })
491
- }, Ue({ _: 2 }, [
499
+ }, Ee({ _: 2 }, [
492
500
  t.$slots.menuIcon ? {
493
501
  name: "menuIcon",
494
- fn: b(({ isOpen: l, color: o }) => [
495
- g(t.$slots, "menuIcon", j(W({ isOpen: l, color: o })), void 0, !0)
502
+ fn: m(({ isOpen: l, color: o }) => [
503
+ g(t.$slots, "menuIcon", W(q({ isOpen: l, color: o })), void 0, !0)
496
504
  ]),
497
505
  key: "0"
498
506
  } : void 0,
499
507
  t.$slots.optionTooltip ? {
500
508
  name: "optionTooltip",
501
- fn: b(() => [
509
+ fn: m(() => [
502
510
  g(t.$slots, "optionTooltip", {}, void 0, !0)
503
511
  ]),
504
512
  key: "1"
505
513
  } : void 0,
506
514
  t.$slots.optionPdf ? {
507
515
  name: "optionPdf",
508
- fn: b(() => [
516
+ fn: m(() => [
509
517
  g(t.$slots, "optionPdf", {}, void 0, !0)
510
518
  ]),
511
519
  key: "2"
512
520
  } : void 0,
513
521
  t.$slots.optionCsv ? {
514
522
  name: "optionCsv",
515
- fn: b(() => [
523
+ fn: m(() => [
516
524
  g(t.$slots, "optionCsv", {}, void 0, !0)
517
525
  ]),
518
526
  key: "3"
519
527
  } : void 0,
520
528
  t.$slots.optionImg ? {
521
529
  name: "optionImg",
522
- fn: b(() => [
530
+ fn: m(() => [
523
531
  g(t.$slots, "optionImg", {}, void 0, !0)
524
532
  ]),
525
533
  key: "4"
526
534
  } : void 0,
527
535
  t.$slots.optionTable ? {
528
536
  name: "optionTable",
529
- fn: b(() => [
537
+ fn: m(() => [
530
538
  g(t.$slots, "optionTable", {}, void 0, !0)
531
539
  ]),
532
540
  key: "5"
533
541
  } : void 0,
534
542
  t.$slots.optionFullscreen ? {
535
543
  name: "optionFullscreen",
536
- fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
537
- g(t.$slots, "optionFullscreen", j(W({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
544
+ fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
545
+ g(t.$slots, "optionFullscreen", W(q({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
538
546
  ]),
539
547
  key: "6"
540
548
  } : void 0,
541
549
  t.$slots.optionAnnotator ? {
542
550
  name: "optionAnnotator",
543
- fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
544
- g(t.$slots, "optionAnnotator", j(W({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
551
+ fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
552
+ g(t.$slots, "optionAnnotator", W(q({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
545
553
  ]),
546
554
  key: "7"
547
555
  } : void 0
@@ -550,12 +558,12 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
550
558
  key: 4,
551
559
  ref_key: "svgRef",
552
560
  ref: xe,
553
- xmlns: n(_t),
554
- class: Re({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
555
- viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
561
+ xmlns: n(It),
562
+ class: Ue({ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.value }),
563
+ viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
556
564
  style: K(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
557
565
  }, [
558
- ve(n(et)),
566
+ ve(n(tt)),
559
567
  x("defs", null, [
560
568
  (s(!0), r($, null, F(i.value, (l, o) => (s(), r("radialGradient", {
561
569
  cx: "50%",
@@ -567,13 +575,13 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
567
575
  }, [
568
576
  x("stop", {
569
577
  offset: "0%",
570
- "stop-color": n(It)(n(Tt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
571
- }, null, 8, Ht),
578
+ "stop-color": n(Tt)(n(St)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
579
+ }, null, 8, Yt),
572
580
  x("stop", {
573
581
  offset: "100%",
574
582
  "stop-color": l.color
575
- }, null, 8, Xt)
576
- ], 8, qt))), 256))
583
+ }, null, 8, Jt)
584
+ ], 8, Xt))), 256))
577
585
  ]),
578
586
  x("defs", null, [
579
587
  x("filter", {
@@ -591,17 +599,17 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
591
599
  type: "saturate",
592
600
  values: "0"
593
601
  }, null, -1)
594
- ]), 8, Yt)
602
+ ]), 8, Kt)
595
603
  ]),
596
- e.value.useCustomCells && i.value.length ? (s(!0), r($, { key: 0 }, F(U.value, (l, o) => (s(), r("foreignObject", {
604
+ e.value.useCustomCells && i.value.length ? (s(!0), r($, { key: 0 }, F(E.value, (l, o) => (s(), r("foreignObject", {
597
605
  x: l.x,
598
606
  y: l.y,
599
607
  height: S.value <= 0 ? 1e-4 : S.value,
600
608
  width: T.value <= 0 ? 1e-4 : T.value,
601
609
  class: "vue-ui-waffle-custom-cell-foreignObject"
602
610
  }, [
603
- g(t.$slots, "cell", Ee({ 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)
604
- ], 8, Jt))), 256)) : f("", !0),
611
+ g(t.$slots, "cell", Ge({ ref_for: !0 }, { cell: { ...l, color: i.value[o].color, ...i.value[o] }, isSelected: [null, void 0].includes(R.value) ? !0 : i.value[o].serieIndex === R.value }), void 0, !0)
612
+ ], 8, Qt))), 256)) : f("", !0),
605
613
  !i.value.length && !e.value.useCustomCells ? (s(), r("rect", {
606
614
  key: 1,
607
615
  x: 12,
@@ -611,13 +619,13 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
611
619
  rx: 3,
612
620
  fill: "none",
613
621
  stroke: "black"
614
- }, null, 8, Kt)) : i.value.length && !e.value.useCustomCells ? (s(), r($, { key: 2 }, [
615
- t.$slots.pattern ? (s(), r("g", Qt, [
622
+ }, null, 8, Zt)) : i.value.length && !e.value.useCustomCells ? (s(), r($, { key: 2 }, [
623
+ t.$slots.pattern ? (s(), r("g", el, [
616
624
  (s(!0), r($, null, F(se.value, (l) => (s(), r("defs", null, [
617
- g(t.$slots, "pattern", Ee({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` }), void 0, !0)
625
+ g(t.$slots, "pattern", Ge({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` }), void 0, !0)
618
626
  ]))), 256))
619
627
  ])) : f("", !0),
620
- (s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
628
+ (s(!0), r($, null, F(E.value, (l, o) => (s(), r("rect", {
621
629
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
622
630
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
623
631
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -627,8 +635,8 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
627
635
  stroke: e.value.style.chart.layout.rect.stroke,
628
636
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
629
637
  filter: ee(i.value[o].serieIndex)
630
- }, null, 8, Zt))), 256)),
631
- (s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
638
+ }, null, 8, tl))), 256)),
639
+ (s(!0), r($, null, F(E.value, (l, o) => (s(), r("rect", {
632
640
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
633
641
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
634
642
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -638,9 +646,9 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
638
646
  stroke: e.value.style.chart.layout.rect.stroke,
639
647
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
640
648
  filter: ee(i.value[o].serieIndex)
641
- }, null, 8, el))), 256)),
642
- t.$slots.pattern ? (s(), r("g", tl, [
643
- (s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
649
+ }, null, 8, ll))), 256)),
650
+ t.$slots.pattern ? (s(), r("g", al, [
651
+ (s(!0), r($, null, F(E.value, (l, o) => (s(), r("rect", {
644
652
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
645
653
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
646
654
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -649,11 +657,11 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
649
657
  fill: `url(#pattern_${k.value}_${i.value[o].absoluteIndex})`,
650
658
  stroke: "none",
651
659
  filter: ee(i.value[o].serieIndex)
652
- }, null, 8, ll))), 256))
660
+ }, null, 8, ol))), 256))
653
661
  ])) : f("", !0)
654
662
  ], 64)) : f("", !0),
655
- (s(!0), r($, null, F(U.value, (l, o) => (s(), r($, null, [
656
- 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", {
663
+ (s(!0), r($, null, F(E.value, (l, o) => (s(), r($, null, [
664
+ 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(), r("foreignObject", {
657
665
  key: 0,
658
666
  x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
659
667
  y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -663,11 +671,11 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
663
671
  }, [
664
672
  x("div", {
665
673
  class: "vue-ui-waffle-caption",
666
- 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(St)(i.value[o].color)};gap:2px`)
674
+ 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(Ot)(i.value[o].color)};gap:2px`)
667
675
  }, [
668
- e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", ol, L(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? n(Ot)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) : f("", !0),
669
- e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", ul, L(n(_)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
670
- e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", sl, " (" + L(n(q)(
676
+ e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", sl, L(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? n(Pt)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) : f("", !0),
677
+ e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", rl, L(n(_)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
678
+ e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", nl, " (" + L(n(H)(
671
679
  e.value.style.chart.layout.labels.dataLabels.formatter,
672
680
  i.value[o].value,
673
681
  n(_)({
@@ -678,7 +686,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
678
686
  }),
679
687
  { datapoint: i.value[o], position: l }
680
688
  )) + ") ", 1)) : f("", !0),
681
- !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", rl, L(n(q)(
689
+ !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", il, L(n(H)(
682
690
  e.value.style.chart.layout.labels.dataLabels.formatter,
683
691
  i.value[o].value,
684
692
  n(_)({
@@ -690,12 +698,12 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
690
698
  { datapoint: i.value[o], position: l }
691
699
  )), 1)) : f("", !0)
692
700
  ], 4)
693
- ], 8, al)) : f("", !0)
701
+ ], 8, ul)) : f("", !0)
694
702
  ], 64))), 256)),
695
- (s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
696
- onMouseover: (u) => ct(o),
703
+ (s(!0), r($, null, F(E.value, (l, o) => (s(), r("rect", {
704
+ onMouseover: (u) => dt(o),
697
705
  onMouseleave: a[0] || (a[0] = (u) => {
698
- ae.value = !1, D.value = null;
706
+ ae.value = !1, R.value = null;
699
707
  }),
700
708
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
701
709
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -703,13 +711,13 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
703
711
  width: X.value <= 0 ? 1e-4 : X.value,
704
712
  fill: "transparent",
705
713
  stroke: "none"
706
- }, null, 40, nl))), 256)),
707
- g(t.$slots, "svg", { svg: z.value }, void 0, !0)
708
- ], 14, Wt)) : f("", !0),
709
- t.$slots.watermark ? (s(), r("div", il, [
710
- g(t.$slots, "watermark", j(W({ isPrinting: n(_e) || n(Ie) })), void 0, !0)
714
+ }, null, 40, vl))), 256)),
715
+ g(t.$slots, "svg", { svg: N.value }, void 0, !0)
716
+ ], 14, Ht)) : f("", !0),
717
+ t.$slots.watermark ? (s(), r("div", cl, [
718
+ g(t.$slots, "watermark", W(q({ isPrinting: n(_e) || n(Ie) })), void 0, !0)
711
719
  ])) : f("", !0),
712
- Q.value ? f("", !0) : (s(), V(n(Ke), {
720
+ Q.value ? f("", !0) : (s(), M(n(Qe), {
713
721
  key: 6,
714
722
  config: {
715
723
  type: "waffle",
@@ -725,18 +733,18 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
725
733
  ref_key: "chartLegend",
726
734
  ref: pe
727
735
  }, [
728
- e.value.style.chart.legend.show ? (s(), V(Ut, {
729
- key: `legend_${me.value}`,
730
- legendSet: E.value,
731
- config: vt.value,
736
+ e.value.style.chart.legend.show ? (s(), M(Et, {
737
+ key: `legend_${be.value}`,
738
+ legendSet: G.value,
739
+ config: ct.value,
732
740
  onClickMarker: a[1] || (a[1] = ({ legend: l }) => ze(l.uid))
733
- }, Ue({
734
- item: b(({ legend: l }) => [
741
+ }, Ee({
742
+ item: m(({ legend: l }) => [
735
743
  x("div", {
736
744
  onClick: (o) => l.segregate(),
737
745
  style: K(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
738
746
  }, [
739
- Ge(L(l.name) + ": " + L(n(q)(
747
+ je(L(l.name) + ": " + L(n(H)(
740
748
  e.value.style.chart.layout.labels.dataLabels.formatter,
741
749
  l.value,
742
750
  n(_)({
@@ -744,19 +752,19 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
744
752
  v: l.value,
745
753
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
746
754
  r: e.value.style.chart.legend.roundingValue,
747
- isAnimating: N.value
755
+ isAnimating: B.value
748
756
  }),
749
757
  { datapoint: l }
750
758
  )) + " ", 1),
751
- p.value.includes(l.uid) ? (s(), r("span", dl, " ( - % ) ")) : (s(), r("span", cl, " (" + L(isNaN(l.value / O.value) ? "-" : n(_)({ v: l.value / O.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })) + ") ", 1))
752
- ], 12, vl)
759
+ p.value.includes(l.uid) ? (s(), r("span", pl, " ( - % ) ")) : (s(), r("span", hl, " (" + L(isNaN(l.value / O.value) ? "-" : n(_)({ v: l.value / O.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: B.value })) + ") ", 1))
760
+ ], 12, dl)
753
761
  ]),
754
762
  _: 2
755
763
  }, [
756
764
  t.$slots.pattern ? {
757
765
  name: "legend-pattern",
758
- fn: b(({ legend: l, index: o }) => [
759
- ve(Et, {
766
+ fn: m(({ legend: l, index: o }) => [
767
+ ve(Gt, {
760
768
  shape: l.shape,
761
769
  radius: 30,
762
770
  stroke: "none",
@@ -768,7 +776,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
768
776
  } : void 0
769
777
  ]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
770
778
  key: 1,
771
- legend: E.value
779
+ legend: G.value
772
780
  }, void 0, !0)
773
781
  ], 512),
774
782
  t.$slots.source ? (s(), r("div", {
@@ -779,8 +787,8 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
779
787
  }, [
780
788
  g(t.$slots, "source", {}, void 0, !0)
781
789
  ], 512)) : f("", !0),
782
- ve(n(Qe), {
783
- show: C.value.showTooltip && ae.value && p.value.length < m.dataset.length,
790
+ ve(n(Ze), {
791
+ show: C.value.showTooltip && ae.value && p.value.length < b.dataset.length,
784
792
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
785
793
  color: e.value.style.chart.tooltip.color,
786
794
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -789,21 +797,21 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
789
797
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
790
798
  position: e.value.style.chart.tooltip.position,
791
799
  offsetY: e.value.style.chart.tooltip.offsetY,
792
- parent: H.value,
800
+ parent: z.value,
793
801
  content: oe.value,
794
802
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
795
803
  fontSize: e.value.style.chart.tooltip.fontSize,
796
- isFullscreen: G.value
804
+ isFullscreen: j.value
797
805
  }, {
798
- "tooltip-before": b(() => [
799
- g(t.$slots, "tooltip-before", j(W({ ...re.value })), void 0, !0)
806
+ "tooltip-before": m(() => [
807
+ g(t.$slots, "tooltip-before", W(q({ ...re.value })), void 0, !0)
800
808
  ]),
801
- "tooltip-after": b(() => [
802
- g(t.$slots, "tooltip-after", j(W({ ...re.value })), void 0, !0)
809
+ "tooltip-after": m(() => [
810
+ g(t.$slots, "tooltip-after", W(q({ ...re.value })), void 0, !0)
803
811
  ]),
804
812
  _: 3
805
813
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen"]),
806
- Q.value ? (s(), V(n(Je), {
814
+ Q.value ? (s(), M(n(Ke), {
807
815
  key: 8,
808
816
  hideDetails: "",
809
817
  config: {
@@ -819,9 +827,9 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
819
827
  }
820
828
  }
821
829
  }, {
822
- content: b(() => [
823
- (s(), V(n(Xe), {
824
- key: `table_${be.value}`,
830
+ content: m(() => [
831
+ (s(), M(n(Ye), {
832
+ key: `table_${me.value}`,
825
833
  colNames: te.value.colNames,
826
834
  head: te.value.head,
827
835
  body: te.value.body,
@@ -829,23 +837,23 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
829
837
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
830
838
  onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
831
839
  }, {
832
- th: b(({ th: l }) => [
840
+ th: m(({ th: l }) => [
833
841
  x("div", {
834
842
  innerHTML: l,
835
843
  style: { display: "flex", "align-items": "center" }
836
- }, null, 8, hl)
844
+ }, null, 8, fl)
837
845
  ]),
838
- td: b(({ td: l }) => [
839
- Ge(L(l.name || l), 1)
846
+ td: m(({ td: l }) => [
847
+ je(L(l.name || l), 1)
840
848
  ]),
841
849
  _: 1
842
850
  }, 8, ["colNames", "head", "body", "config", "title"]))
843
851
  ]),
844
852
  _: 1
845
853
  }, 8, ["config"])) : f("", !0)
846
- ], 46, jt));
854
+ ], 46, qt));
847
855
  }
848
- }, Il = /* @__PURE__ */ Gt(pl, [["__scopeId", "data-v-79c12b4f"]]);
856
+ }, Ol = /* @__PURE__ */ Wt(yl, [["__scopeId", "data-v-fd7116e4"]]);
849
857
  export {
850
- Il as default
858
+ Ol as default
851
859
  };