vue-data-ui 2.16.5 → 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 +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.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-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -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-CZNLCg7T.js";
3
- import { t as Nt, u as Bt } from "./useResponsive-DfdjqQps.js";
4
- import { u as je } from "./useNestedProp-BcPDA6Xr.js";
5
- import { u as Vt } from "./usePrinter-ButWuZVm.js";
6
- import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Rt from "./Title-BQLtfM0P.js";
9
- import Ut from "./Legend-DoxQwq_u.js";
10
- import { _ as Et } from "./Shape-CrstrfQ9.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-B6MXw9cG.js")), Ye = B(() => import("./PenAndPaper-BS60tkQN.js")), Je = B(() => import("./vue-ui-accordion-CO4hmfuX.js")), Ke = B(() => import("./vue-ui-skeleton-D9B8DY_k.js")), Qe = B(() => import("./Tooltip-5JmGL7sR.js")), Ze = B(() => import("./UserOptions-DMGkAAIO.js")), et = B(() => import("./PackageVersion-DCreTQN4.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,92 +477,93 @@ 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
- onToggleFullscreen: ht,
488
+ printScale: e.value.userOptions.print.scale,
489
+ onToggleFullscreen: Be,
481
490
  onGeneratePdf: n(Te),
482
491
  onGenerateCsv: Ne,
483
492
  onGenerateImage: n(Se),
484
- onToggleTable: Be,
485
- onToggleTooltip: Ve,
493
+ onToggleTable: Ve,
494
+ onToggleTooltip: Me,
486
495
  onToggleAnnotator: ne,
487
496
  style: K({
488
497
  visibility: n(ke) ? n(ue) ? "visible" : "hidden" : "visible"
489
498
  })
490
- }, Ue({ _: 2 }, [
499
+ }, Ee({ _: 2 }, [
491
500
  t.$slots.menuIcon ? {
492
501
  name: "menuIcon",
493
- fn: b(({ isOpen: l, color: o }) => [
494
- 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)
495
504
  ]),
496
505
  key: "0"
497
506
  } : void 0,
498
507
  t.$slots.optionTooltip ? {
499
508
  name: "optionTooltip",
500
- fn: b(() => [
509
+ fn: m(() => [
501
510
  g(t.$slots, "optionTooltip", {}, void 0, !0)
502
511
  ]),
503
512
  key: "1"
504
513
  } : void 0,
505
514
  t.$slots.optionPdf ? {
506
515
  name: "optionPdf",
507
- fn: b(() => [
516
+ fn: m(() => [
508
517
  g(t.$slots, "optionPdf", {}, void 0, !0)
509
518
  ]),
510
519
  key: "2"
511
520
  } : void 0,
512
521
  t.$slots.optionCsv ? {
513
522
  name: "optionCsv",
514
- fn: b(() => [
523
+ fn: m(() => [
515
524
  g(t.$slots, "optionCsv", {}, void 0, !0)
516
525
  ]),
517
526
  key: "3"
518
527
  } : void 0,
519
528
  t.$slots.optionImg ? {
520
529
  name: "optionImg",
521
- fn: b(() => [
530
+ fn: m(() => [
522
531
  g(t.$slots, "optionImg", {}, void 0, !0)
523
532
  ]),
524
533
  key: "4"
525
534
  } : void 0,
526
535
  t.$slots.optionTable ? {
527
536
  name: "optionTable",
528
- fn: b(() => [
537
+ fn: m(() => [
529
538
  g(t.$slots, "optionTable", {}, void 0, !0)
530
539
  ]),
531
540
  key: "5"
532
541
  } : void 0,
533
542
  t.$slots.optionFullscreen ? {
534
543
  name: "optionFullscreen",
535
- fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
536
- 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)
537
546
  ]),
538
547
  key: "6"
539
548
  } : void 0,
540
549
  t.$slots.optionAnnotator ? {
541
550
  name: "optionAnnotator",
542
- fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
543
- 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)
544
553
  ]),
545
554
  key: "7"
546
555
  } : void 0
547
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
556
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
548
557
  Q.value ? (s(), r("svg", {
549
558
  key: 4,
550
559
  ref_key: "svgRef",
551
560
  ref: xe,
552
- xmlns: n(_t),
553
- class: Re({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
554
- 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}`,
555
564
  style: K(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
556
565
  }, [
557
- ve(n(et)),
566
+ ve(n(tt)),
558
567
  x("defs", null, [
559
568
  (s(!0), r($, null, F(i.value, (l, o) => (s(), r("radialGradient", {
560
569
  cx: "50%",
@@ -566,13 +575,13 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
566
575
  }, [
567
576
  x("stop", {
568
577
  offset: "0%",
569
- "stop-color": n(It)(n(Tt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
570
- }, 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),
571
580
  x("stop", {
572
581
  offset: "100%",
573
582
  "stop-color": l.color
574
- }, null, 8, Xt)
575
- ], 8, qt))), 256))
583
+ }, null, 8, Jt)
584
+ ], 8, Xt))), 256))
576
585
  ]),
577
586
  x("defs", null, [
578
587
  x("filter", {
@@ -590,17 +599,17 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
590
599
  type: "saturate",
591
600
  values: "0"
592
601
  }, null, -1)
593
- ]), 8, Yt)
602
+ ]), 8, Kt)
594
603
  ]),
595
- 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", {
596
605
  x: l.x,
597
606
  y: l.y,
598
607
  height: S.value <= 0 ? 1e-4 : S.value,
599
608
  width: T.value <= 0 ? 1e-4 : T.value,
600
609
  class: "vue-ui-waffle-custom-cell-foreignObject"
601
610
  }, [
602
- 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)
603
- ], 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),
604
613
  !i.value.length && !e.value.useCustomCells ? (s(), r("rect", {
605
614
  key: 1,
606
615
  x: 12,
@@ -610,13 +619,13 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
610
619
  rx: 3,
611
620
  fill: "none",
612
621
  stroke: "black"
613
- }, null, 8, Kt)) : i.value.length && !e.value.useCustomCells ? (s(), r($, { key: 2 }, [
614
- 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, [
615
624
  (s(!0), r($, null, F(se.value, (l) => (s(), r("defs", null, [
616
- 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)
617
626
  ]))), 256))
618
627
  ])) : f("", !0),
619
- (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", {
620
629
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
621
630
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
622
631
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -626,8 +635,8 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
626
635
  stroke: e.value.style.chart.layout.rect.stroke,
627
636
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
628
637
  filter: ee(i.value[o].serieIndex)
629
- }, null, 8, Zt))), 256)),
630
- (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", {
631
640
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
632
641
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
633
642
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -637,9 +646,9 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
637
646
  stroke: e.value.style.chart.layout.rect.stroke,
638
647
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
639
648
  filter: ee(i.value[o].serieIndex)
640
- }, null, 8, el))), 256)),
641
- t.$slots.pattern ? (s(), r("g", tl, [
642
- (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", {
643
652
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
644
653
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
645
654
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -648,11 +657,11 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
648
657
  fill: `url(#pattern_${k.value}_${i.value[o].absoluteIndex})`,
649
658
  stroke: "none",
650
659
  filter: ee(i.value[o].serieIndex)
651
- }, null, 8, ll))), 256))
660
+ }, null, 8, ol))), 256))
652
661
  ])) : f("", !0)
653
662
  ], 64)) : f("", !0),
654
- (s(!0), r($, null, F(U.value, (l, o) => (s(), r($, null, [
655
- 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", {
656
665
  key: 0,
657
666
  x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
658
667
  y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -662,11 +671,11 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
662
671
  }, [
663
672
  x("div", {
664
673
  class: "vue-ui-waffle-caption",
665
- 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`)
666
675
  }, [
667
- 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),
668
- 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),
669
- 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)(
670
679
  e.value.style.chart.layout.labels.dataLabels.formatter,
671
680
  i.value[o].value,
672
681
  n(_)({
@@ -677,7 +686,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
677
686
  }),
678
687
  { datapoint: i.value[o], position: l }
679
688
  )) + ") ", 1)) : f("", !0),
680
- !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)(
681
690
  e.value.style.chart.layout.labels.dataLabels.formatter,
682
691
  i.value[o].value,
683
692
  n(_)({
@@ -689,12 +698,12 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
689
698
  { datapoint: i.value[o], position: l }
690
699
  )), 1)) : f("", !0)
691
700
  ], 4)
692
- ], 8, al)) : f("", !0)
701
+ ], 8, ul)) : f("", !0)
693
702
  ], 64))), 256)),
694
- (s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
695
- onMouseover: (u) => ct(o),
703
+ (s(!0), r($, null, F(E.value, (l, o) => (s(), r("rect", {
704
+ onMouseover: (u) => dt(o),
696
705
  onMouseleave: a[0] || (a[0] = (u) => {
697
- ae.value = !1, D.value = null;
706
+ ae.value = !1, R.value = null;
698
707
  }),
699
708
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
700
709
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -702,13 +711,13 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
702
711
  width: X.value <= 0 ? 1e-4 : X.value,
703
712
  fill: "transparent",
704
713
  stroke: "none"
705
- }, null, 40, nl))), 256)),
706
- g(t.$slots, "svg", { svg: z.value }, void 0, !0)
707
- ], 14, Wt)) : f("", !0),
708
- t.$slots.watermark ? (s(), r("div", il, [
709
- 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)
710
719
  ])) : f("", !0),
711
- Q.value ? f("", !0) : (s(), V(n(Ke), {
720
+ Q.value ? f("", !0) : (s(), M(n(Qe), {
712
721
  key: 6,
713
722
  config: {
714
723
  type: "waffle",
@@ -724,18 +733,18 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
724
733
  ref_key: "chartLegend",
725
734
  ref: pe
726
735
  }, [
727
- e.value.style.chart.legend.show ? (s(), V(Ut, {
728
- key: `legend_${me.value}`,
729
- legendSet: E.value,
730
- 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,
731
740
  onClickMarker: a[1] || (a[1] = ({ legend: l }) => ze(l.uid))
732
- }, Ue({
733
- item: b(({ legend: l }) => [
741
+ }, Ee({
742
+ item: m(({ legend: l }) => [
734
743
  x("div", {
735
744
  onClick: (o) => l.segregate(),
736
745
  style: K(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
737
746
  }, [
738
- Ge(L(l.name) + ": " + L(n(q)(
747
+ je(L(l.name) + ": " + L(n(H)(
739
748
  e.value.style.chart.layout.labels.dataLabels.formatter,
740
749
  l.value,
741
750
  n(_)({
@@ -743,19 +752,19 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
743
752
  v: l.value,
744
753
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
745
754
  r: e.value.style.chart.legend.roundingValue,
746
- isAnimating: N.value
755
+ isAnimating: B.value
747
756
  }),
748
757
  { datapoint: l }
749
758
  )) + " ", 1),
750
- 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))
751
- ], 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)
752
761
  ]),
753
762
  _: 2
754
763
  }, [
755
764
  t.$slots.pattern ? {
756
765
  name: "legend-pattern",
757
- fn: b(({ legend: l, index: o }) => [
758
- ve(Et, {
766
+ fn: m(({ legend: l, index: o }) => [
767
+ ve(Gt, {
759
768
  shape: l.shape,
760
769
  radius: 30,
761
770
  stroke: "none",
@@ -767,7 +776,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
767
776
  } : void 0
768
777
  ]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
769
778
  key: 1,
770
- legend: E.value
779
+ legend: G.value
771
780
  }, void 0, !0)
772
781
  ], 512),
773
782
  t.$slots.source ? (s(), r("div", {
@@ -778,8 +787,8 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
778
787
  }, [
779
788
  g(t.$slots, "source", {}, void 0, !0)
780
789
  ], 512)) : f("", !0),
781
- ve(n(Qe), {
782
- 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,
783
792
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
784
793
  color: e.value.style.chart.tooltip.color,
785
794
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -788,21 +797,21 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
788
797
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
789
798
  position: e.value.style.chart.tooltip.position,
790
799
  offsetY: e.value.style.chart.tooltip.offsetY,
791
- parent: H.value,
800
+ parent: z.value,
792
801
  content: oe.value,
793
802
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
794
803
  fontSize: e.value.style.chart.tooltip.fontSize,
795
- isFullscreen: G.value
804
+ isFullscreen: j.value
796
805
  }, {
797
- "tooltip-before": b(() => [
798
- 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)
799
808
  ]),
800
- "tooltip-after": b(() => [
801
- 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)
802
811
  ]),
803
812
  _: 3
804
813
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen"]),
805
- Q.value ? (s(), V(n(Je), {
814
+ Q.value ? (s(), M(n(Ke), {
806
815
  key: 8,
807
816
  hideDetails: "",
808
817
  config: {
@@ -818,9 +827,9 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
818
827
  }
819
828
  }
820
829
  }, {
821
- content: b(() => [
822
- (s(), V(n(Xe), {
823
- key: `table_${be.value}`,
830
+ content: m(() => [
831
+ (s(), M(n(Ye), {
832
+ key: `table_${me.value}`,
824
833
  colNames: te.value.colNames,
825
834
  head: te.value.head,
826
835
  body: te.value.body,
@@ -828,23 +837,23 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
828
837
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
829
838
  onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
830
839
  }, {
831
- th: b(({ th: l }) => [
840
+ th: m(({ th: l }) => [
832
841
  x("div", {
833
842
  innerHTML: l,
834
843
  style: { display: "flex", "align-items": "center" }
835
- }, null, 8, hl)
844
+ }, null, 8, fl)
836
845
  ]),
837
- td: b(({ td: l }) => [
838
- Ge(L(l.name || l), 1)
846
+ td: m(({ td: l }) => [
847
+ je(L(l.name || l), 1)
839
848
  ]),
840
849
  _: 1
841
850
  }, 8, ["colNames", "head", "body", "config", "title"]))
842
851
  ]),
843
852
  _: 1
844
853
  }, 8, ["config"])) : f("", !0)
845
- ], 46, jt));
854
+ ], 46, qt));
846
855
  }
847
- }, Il = /* @__PURE__ */ Gt(pl, [["__scopeId", "data-v-da21b411"]]);
856
+ }, Ol = /* @__PURE__ */ Wt(yl, [["__scopeId", "data-v-fd7116e4"]]);
848
857
  export {
849
- Il as default
858
+ Ol as default
850
859
  };