vue-data-ui 2.14.2 → 2.14.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +17 -0
  2. package/dist/{Arrow-DNJvKMao.js → Arrow-DrUXalK1.js} +1 -1
  3. package/dist/{BaseDraggableDialog-XPll8ONG.js → BaseDraggableDialog-BBiAE4t8.js} +2 -2
  4. package/dist/{BaseIcon-D0Q4E4nY.js → BaseIcon-avTvifnO.js} +1 -1
  5. package/dist/{ColorPicker-CQl1kba_.js → ColorPicker-BAOfnFRQ.js} +2 -2
  6. package/dist/{DataTable-DzCoab4C.js → DataTable-D8n1mvaG.js} +2 -2
  7. package/dist/{Legend-DLJ9I-cg.js → Legend-Cpx0xSce.js} +4 -4
  8. package/dist/{NonSvgPenAndPaper-B0-XpttN.js → NonSvgPenAndPaper-ClnGCm8G.js} +3 -3
  9. package/dist/{PackageVersion-DrhYhyQR.js → PackageVersion-Bwu7jdjH.js} +2 -2
  10. package/dist/{PenAndPaper-BdnVqpO9.js → PenAndPaper-BzQcbTCN.js} +3 -3
  11. package/dist/{Shape-DdpwkHh8.js → Shape-D65xhJAN.js} +1 -1
  12. package/dist/{Slicer-B6mk6VRe.js → Slicer-DjwiDPEk.js} +14 -14
  13. package/dist/{SparkTooltip-DvS7F_gk.js → SparkTooltip-B8nH7aKM.js} +1 -1
  14. package/dist/{Title-xtSGHclp.js → Title-B71Dk29x.js} +1 -1
  15. package/dist/{Tooltip-D8swCIay.js → Tooltip-BuP-Tir7.js} +1 -1
  16. package/dist/{UserOptions-BbJkNcCM.js → UserOptions-fd2DeGS7.js} +2 -2
  17. package/dist/{dom-to-png-DrB0WHa5.js → dom-to-png-D7idYX2d.js} +1 -1
  18. package/dist/{img-CtqhCOnQ.js → img-CSeVuPYh.js} +1 -1
  19. package/dist/{index-DBYSSUsg.js → index-BzH6XFI9.js} +409 -394
  20. package/dist/{pdf-Cq3bf6D0.js → pdf-ksl9rS7r.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{useNestedProp-Cu77c3W4.js → useNestedProp-CKM2gCr5.js} +1 -1
  23. package/dist/{usePrinter-xF9W73YL.js → usePrinter-C653sJjz.js} +2 -2
  24. package/dist/{vue-data-ui-BhsGEgCE.js → vue-data-ui-DdffTqYM.js} +63 -63
  25. package/dist/vue-data-ui.js +21 -21
  26. package/dist/{vue-ui-3d-bar-BiehKQpG.js → vue-ui-3d-bar-vdc7daf_.js} +5 -5
  27. package/dist/{vue-ui-accordion-CEZHj_of.js → vue-ui-accordion-Cjq4hqGi.js} +3 -3
  28. package/dist/{vue-ui-age-pyramid-CV3X9UIL.js → vue-ui-age-pyramid-CMFgIKLE.js} +5 -5
  29. package/dist/{vue-ui-annotator-C0tRqId7.js → vue-ui-annotator-BvODcd7y.js} +2 -2
  30. package/dist/{vue-ui-bullet-Dnzzp7eQ.js → vue-ui-bullet-BX73-v3g.js} +6 -6
  31. package/dist/{vue-ui-candlestick-HP8z-e20.js → vue-ui-candlestick-Ogvne-GG.js} +6 -6
  32. package/dist/{vue-ui-carousel-table-CIytKGfB.js → vue-ui-carousel-table-DXeRsoL_.js} +4 -4
  33. package/dist/{vue-ui-chestnut-jJ5DocEt.js → vue-ui-chestnut-DXDQOgbn.js} +4 -4
  34. package/dist/{vue-ui-chord-C2p48bdc.js → vue-ui-chord-CWStby-a.js} +7 -7
  35. package/dist/{vue-ui-circle-pack-Cm42Kre2.js → vue-ui-circle-pack-C4kdJPNJ.js} +5 -5
  36. package/dist/{vue-ui-cursor-DYOAowBf.js → vue-ui-cursor-Du4IVYWM.js} +2 -2
  37. package/dist/{vue-ui-dashboard-CqQ_erdb.js → vue-ui-dashboard-XpoAcLb4.js} +62 -62
  38. package/dist/{vue-ui-digits-Ckblhu11.js → vue-ui-digits-Ce_eR3L5.js} +2 -2
  39. package/dist/{vue-ui-donut-6ioyEN3H.js → vue-ui-donut-D6VPixUt.js} +111 -111
  40. package/dist/{vue-ui-donut-evolution-DcpDJ9Nx.js → vue-ui-donut-evolution-C3MA75pG.js} +309 -293
  41. package/dist/{vue-ui-dumbbell-Bs6C9JZw.js → vue-ui-dumbbell-CeQOb65i.js} +6 -6
  42. package/dist/{vue-ui-flow-2PtX-g_5.js → vue-ui-flow-D-_7gBhg.js} +26 -26
  43. package/dist/{vue-ui-funnel-DnjXDXiD.js → vue-ui-funnel-BsXNYzPK.js} +5 -5
  44. package/dist/{vue-ui-galaxy-C15I7QgX.js → vue-ui-galaxy--N2CYrWl.js} +4 -4
  45. package/dist/{vue-ui-gauge-C4ukJ9LH.js → vue-ui-gauge-DhKGlAJd.js} +5 -5
  46. package/dist/{vue-ui-gizmo-CV03sWPz.js → vue-ui-gizmo-Bcwgwj-f.js} +3 -3
  47. package/dist/{vue-ui-heatmap-C-9U8urH.js → vue-ui-heatmap-BlY7-ZUF.js} +6 -6
  48. package/dist/{vue-ui-history-plot-CctIOnX8.js → vue-ui-history-plot-typzqDiw.js} +234 -210
  49. package/dist/{vue-ui-kpi-D8DQ02cm.js → vue-ui-kpi-Cj_96Iru.js} +3 -3
  50. package/dist/{vue-ui-mini-loader-DpwNHrxl.js → vue-ui-mini-loader-Dr42qu-K.js} +2 -2
  51. package/dist/{vue-ui-molecule-je8BUEgl.js → vue-ui-molecule-DfQCNRcr.js} +16 -16
  52. package/dist/{vue-ui-mood-radar-DUwpDrKf.js → vue-ui-mood-radar-ChryER9p.js} +19 -19
  53. package/dist/{vue-ui-nested-donuts-CcIiH5y3.js → vue-ui-nested-donuts-CWm-A-co.js} +46 -46
  54. package/dist/{vue-ui-onion-B3ciM-zx.js → vue-ui-onion-Bb8s5St0.js} +6 -6
  55. package/dist/{vue-ui-parallel-coordinate-plot-C4jC8sCn.js → vue-ui-parallel-coordinate-plot-DcD53HSq.js} +188 -171
  56. package/dist/{vue-ui-quadrant--xMPLV7W.js → vue-ui-quadrant-CpuFmTG9.js} +243 -225
  57. package/dist/{vue-ui-quick-chart-Bce5gdOB.js → vue-ui-quick-chart-BHO_J8Tc.js} +369 -353
  58. package/dist/{vue-ui-radar-Bs4DRm4L.js → vue-ui-radar-LsSH7YAg.js} +45 -45
  59. package/dist/{vue-ui-rating-BjP1BHbM.js → vue-ui-rating-rcN8C68M.js} +8 -8
  60. package/dist/{vue-ui-relation-circle-D9P-zdmr.js → vue-ui-relation-circle-CmZ8rXwC.js} +5 -5
  61. package/dist/{vue-ui-ridgeline-DmNbKyms.js → vue-ui-ridgeline-CpXWT3tk.js} +185 -165
  62. package/dist/{vue-ui-rings-BebupVaJ.js → vue-ui-rings-x_HCzzIw.js} +7 -7
  63. package/dist/{vue-ui-scatter-cQ-Eu6ff.js → vue-ui-scatter-DNgUU2mO.js} +49 -49
  64. package/dist/{vue-ui-skeleton-BJy7bURO.js → vue-ui-skeleton-qa5B2MES.js} +3 -3
  65. package/dist/{vue-ui-smiley-D5QHdm68.js → vue-ui-smiley-C0DEaxQK.js} +2 -2
  66. package/dist/{vue-ui-spark-trend-CP5l6hCt.js → vue-ui-spark-trend-DjctYLri.js} +3 -3
  67. package/dist/{vue-ui-sparkbar-CW95uw6O.js → vue-ui-sparkbar-Un3CJINy.js} +3 -3
  68. package/dist/{vue-ui-sparkgauge-a4VbU8l_.js → vue-ui-sparkgauge-BascS5LC.js} +8 -8
  69. package/dist/{vue-ui-sparkhistogram-Bu2URfSJ.js → vue-ui-sparkhistogram-CZYnWAUW.js} +4 -4
  70. package/dist/{vue-ui-sparkline-TItbUk-X.js → vue-ui-sparkline-DyIDPpiz.js} +11 -11
  71. package/dist/{vue-ui-sparkstackbar-B7hTZ5lP.js → vue-ui-sparkstackbar-Ctz_OFbi.js} +3 -3
  72. package/dist/{vue-ui-stackbar-Dsdwa6lC.js → vue-ui-stackbar-DqIv6O-t.js} +417 -373
  73. package/dist/{vue-ui-strip-plot-8t8ozRzt.js → vue-ui-strip-plot-BAfdL6Ih.js} +202 -184
  74. package/dist/{vue-ui-table-CFn0ptr3.js → vue-ui-table-CCMkrVp7.js} +3 -3
  75. package/dist/{vue-ui-table-heatmap-By7Epu_x.js → vue-ui-table-heatmap--gO5Zuyp.js} +18 -18
  76. package/dist/{vue-ui-table-sparkline-CXqoNu29.js → vue-ui-table-sparkline-5HTiQPhC.js} +4 -4
  77. package/dist/{vue-ui-thermometer-XTsctSeT.js → vue-ui-thermometer-BbxNtsdP.js} +5 -5
  78. package/dist/{vue-ui-timer-LsMK3baq.js → vue-ui-timer-DwUmt-Jo.js} +5 -5
  79. package/dist/{vue-ui-tiremarks-Dmqxy_za.js → vue-ui-tiremarks-YyiGuluO.js} +5 -5
  80. package/dist/{vue-ui-treemap-CBK79HgE.js → vue-ui-treemap-hHSyoGry.js} +7 -7
  81. package/dist/{vue-ui-vertical-bar-s0W_ZvXa.js → vue-ui-vertical-bar-Bjyjarmi.js} +8 -8
  82. package/dist/{vue-ui-waffle-DYSvsk-v.js → vue-ui-waffle-B3lfeeZs.js} +246 -242
  83. package/dist/{vue-ui-wheel-ffWrYzpO.js → vue-ui-wheel-DrVnxe3n.js} +5 -5
  84. package/dist/{vue-ui-word-cloud-DMtRVU6x.js → vue-ui-word-cloud-CRFfYl4B.js} +15 -15
  85. package/dist/{vue-ui-world-DPT1WnyR.js → vue-ui-world-BeVT9bsc.js} +5 -5
  86. package/dist/{vue-ui-xy-BhuRQnpn.js → vue-ui-xy-B6LjQd7h.js} +591 -570
  87. package/dist/{vue-ui-xy-canvas-BaqwCoBL.js → vue-ui-xy-canvas-DviTudRz.js} +7 -7
  88. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
- import { defineAsyncComponent as B, useSlots as ht, computed as d, ref as c, watch as Ve, shallowRef as Me, onMounted as pt, onBeforeUnmount as ft, createElementBlock as r, openBlock as s, unref as n, normalizeStyle as K, normalizeClass as De, createBlock as V, createCommentVNode as f, createElementVNode as x, createVNode as ie, createSlots as Re, withCtx as b, renderSlot as g, normalizeProps as j, guardReactiveProps as W, Fragment as $, renderList as F, mergeProps as Ue, toDisplayString as L, createTextVNode as Ge, nextTick as yt } from "vue";
2
- import { u as gt, c as bt, t as mt, p as M, a as wt, o as kt, e as ve, g as xt, b as Ct, i as q, f as _, X as $t, s as _t, w as It, G as Tt, K as St, d as Ot, q as Pt, r as At, x as Ft, y as Lt } from "./index-DBYSSUsg.js";
3
- import { t as zt, u as Nt } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as Ee } from "./useNestedProp-Cu77c3W4.js";
5
- import { u as Bt } from "./usePrinter-xF9W73YL.js";
6
- import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Dt from "./Title-xtSGHclp.js";
9
- import Rt from "./Legend-DLJ9I-cg.js";
10
- import { _ as Ut } from "./Shape-DdpwkHh8.js";
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 L, mergeProps as Ee, toDisplayString as F, 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, G as St, L as Ot, d as Pt, q as At, r as Lt, x as Ft, y as zt } from "./index-BzH6XFI9.js";
3
+ import { t as Nt, u as Bt } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as je } from "./useNestedProp-CKM2gCr5.js";
5
+ import { u as Vt } from "./usePrinter-C653sJjz.js";
6
+ import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Rt from "./Title-B71Dk29x.js";
9
+ import Ut from "./Legend-Cpx0xSce.js";
10
+ import { _ as Et } from "./Shape-D65xhJAN.js";
11
11
  import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"], Ht = ["stop-color"], Xt = ["id"], Yt = ["x", "y", "height", "width"], Kt = ["height", "width"], Jt = { key: 0 }, Qt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Zt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], el = { key: 1 }, tl = ["rx", "x", "y", "height", "width", "fill", "filter"], ll = ["x", "y", "height", "width", "filter"], al = { key: 0 }, ol = { key: 1 }, ul = { key: 2 }, sl = { key: 3 }, rl = ["onMouseover", "x", "y", "height", "width"], nl = {
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 = {
13
13
  key: 5,
14
14
  class: "vue-data-ui-watermark"
15
- }, il = ["onClick"], vl = { key: 0 }, cl = { key: 1 }, dl = ["innerHTML"], hl = {
15
+ }, vl = ["onClick"], cl = { key: 0 }, dl = { key: 1 }, hl = ["innerHTML"], pl = {
16
16
  __name: "vue-ui-waffle",
17
17
  props: {
18
18
  config: {
@@ -29,38 +29,38 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
29
29
  }
30
30
  },
31
31
  emits: ["selectLegend"],
32
- setup(je, { expose: We, emit: qe }) {
33
- const He = B(() => import("./DataTable-DzCoab4C.js")), Xe = B(() => import("./PenAndPaper-BdnVqpO9.js")), Ye = B(() => import("./vue-ui-accordion-CEZHj_of.js")), Ke = B(() => import("./vue-ui-skeleton-BJy7bURO.js")), Je = B(() => import("./Tooltip-D8swCIay.js")), Qe = B(() => import("./UserOptions-BbJkNcCM.js")), Ze = B(() => import("./PackageVersion-DrhYhyQR.js")), { vue_ui_waffle: et } = gt(), m = je, tt = ht(), J = d(() => !!m.dataset && m.dataset.length), k = c(bt()), lt = c(null), le = c(!1), ae = c(""), D = c(null), ce = c(0), H = c(null), de = c(null), he = c(null), pe = c(null), fe = c(null), ye = c(0), ge = c(0), be = c(0), e = d({
34
- get: () => xe(),
32
+ setup(We, { expose: qe, emit: He }) {
33
+ const Xe = B(() => import("./DataTable-D8n1mvaG.js")), Ye = B(() => import("./PenAndPaper-BzQcbTCN.js")), Je = B(() => import("./vue-ui-accordion-Cjq4hqGi.js")), Ke = B(() => import("./vue-ui-skeleton-qa5B2MES.js")), Qe = B(() => import("./Tooltip-BuP-Tir7.js")), Ze = B(() => import("./UserOptions-fd2DeGS7.js")), et = B(() => import("./PackageVersion-Bwu7jdjH.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({
34
+ get: () => Ce(),
35
35
  set: (t) => t
36
- }), { userOptionsVisible: oe, setUserOptionsVisibility: me, keepUserOptionState: we } = Vt({ config: e.value }), { svgRef: ke } = Mt({ config: e.value.style.chart.title });
37
- function xe() {
38
- const t = Ee({
36
+ }), { userOptionsVisible: ue, setUserOptionsVisibility: we, keepUserOptionState: ke } = Mt({ config: e.value }), { svgRef: xe } = Dt({ config: e.value.style.chart.title });
37
+ function Ce() {
38
+ const t = je({
39
39
  userConfig: m.config,
40
- defaultConfig: et
40
+ defaultConfig: tt
41
41
  });
42
42
  return t.theme ? {
43
- ...Ee({
44
- userConfig: wt.vue_ui_waffle[t.theme] || m.config,
43
+ ...je({
44
+ userConfig: kt.vue_ui_waffle[t.theme] || m.config,
45
45
  defaultConfig: t
46
46
  }),
47
- customPalette: mt[t.theme] || M
47
+ customPalette: wt[t.theme] || M
48
48
  } : t;
49
49
  }
50
- Ve(() => m.config, (t) => {
51
- e.value = xe(), oe.value = !e.value.userOptions.showOnChartHover, Ce(), ye.value += 1, ge.value += 1, be.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
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;
52
52
  }, { deep: !0 });
53
- const A = Me(null), R = Me(null);
54
- function Ce() {
55
- if (kt(m.dataset) ? ve({
53
+ const A = De(null), R = De(null);
54
+ function $e() {
55
+ if (xt(m.dataset) ? ce({
56
56
  componentName: "VueUiWaffle",
57
57
  type: "dataset"
58
58
  }) : m.dataset.forEach((t, a) => {
59
- xt({
59
+ Ct({
60
60
  datasetObject: t,
61
61
  requiredAttributes: ["name", "values"]
62
62
  }).forEach((l) => {
63
- ve({
63
+ ce({
64
64
  componentName: "VueUiWaffle",
65
65
  type: "datasetSerieAttribute",
66
66
  property: l,
@@ -68,13 +68,13 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
68
68
  });
69
69
  });
70
70
  }), e.value.responsive) {
71
- const t = zt(() => {
72
- const { width: a, height: l } = Nt({
71
+ const t = Nt(() => {
72
+ const { width: a, height: l } = Bt({
73
73
  chart: H.value,
74
- title: e.value.style.chart.title.text ? de.value : null,
75
- legend: e.value.style.chart.legend.show ? he.value : null,
76
- source: pe.value,
77
- noTitle: fe.value
74
+ title: e.value.style.chart.title.text ? he.value : null,
75
+ legend: e.value.style.chart.legend.show ? pe.value : null,
76
+ source: fe.value,
77
+ noTitle: ye.value
78
78
  });
79
79
  requestAnimationFrame(() => {
80
80
  z.value.width = a, z.value.height = l, I.value.width = a, I.value.height = l;
@@ -83,16 +83,16 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
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
84
  }
85
85
  }
86
- pt(() => {
87
- Ce();
88
- }), ft(() => {
86
+ ft(() => {
87
+ $e();
88
+ }), yt(() => {
89
89
  A.value && (R.value && A.value.unobserve(R.value), A.value.disconnect());
90
90
  });
91
- const { isPrinting: $e, isImaging: _e, generatePdf: Ie, generateImage: Te } = Bt({
91
+ const { isPrinting: _e, isImaging: Ie, generatePdf: Te, generateImage: Se } = Vt({
92
92
  elementId: `vue-ui-waffle_${k.value}`,
93
93
  fileName: e.value.style.chart.title.text || "vue-ui-waffle",
94
94
  options: e.value.userOptions.print
95
- }), at = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = d(() => Ct(e.value.customPalette)), C = c({
95
+ }), ot = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Oe = d(() => $t(e.value.customPalette)), C = c({
96
96
  showTable: e.value.table.show,
97
97
  showTooltip: e.value.style.chart.tooltip.show
98
98
  }), z = c({
@@ -103,36 +103,37 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
103
103
  left: 0,
104
104
  height: 512,
105
105
  width: 512
106
- }), T = d(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = d(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), X = d(() => I.value.width / e.value.style.chart.layout.grid.size), Q = d(() => I.value.height / e.value.style.chart.layout.grid.size);
107
- function Oe(t) {
108
- const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, ne) => w + ne, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), v = o.map((w) => w % 1);
109
- let y = a - u.reduce((w, ne) => w + ne, 0);
106
+ }), T = d(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = d(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), X = d(() => I.value.width / e.value.style.chart.layout.grid.size), Z = d(() => I.value.height / e.value.style.chart.layout.grid.size);
107
+ function Pe(t) {
108
+ const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, ie) => w + ie, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), v = o.map((w) => w % 1);
109
+ let y = a - u.reduce((w, ie) => w + ie, 0);
110
110
  for (; y > 0; ) {
111
111
  let w = v.indexOf(Math.max(...v));
112
112
  u[w] += 1, v[w] = 0, y -= 1;
113
113
  }
114
114
  return u;
115
115
  }
116
- function Pe() {
117
- return m.dataset.map((t, a) => ({
116
+ const Y = c(!1);
117
+ 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) => ({
118
119
  ...t,
119
- color: Ot(t.color) || Se.value[a] || M[a] || M[a % M.length],
120
+ color: Pt(t.color) || Oe.value[a] || M[a] || M[a % M.length],
120
121
  uid: `serie_${a}`,
121
122
  absoluteIndex: a
122
123
  }));
123
124
  }
124
- const ue = d(() => Pe()), h = c(ue.value);
125
- Ve(() => m.dataset, (t) => {
126
- h.value = Pe();
125
+ const se = d(() => Ae()), h = c(se.value);
126
+ Me(() => m.dataset, (t) => {
127
+ h.value = Ae();
127
128
  }, { deep: !0 });
128
- const ot = d(() => {
129
- const t = h.value.filter((a, l) => !p.value.includes(a.uid)).map((a, l) => (a.values || []).reduce((o, u) => o + u, 0));
130
- return Oe(t);
131
- }), ut = d(() => {
132
- const t = h.value.map((a, l) => (a.values || []).reduce((o, u) => o + u));
133
- return Oe(t);
134
- }), Y = d(() => (m.dataset.forEach((t, a) => {
135
- [null, void 0].includes(t.values) && ve({
129
+ const ut = d(() => {
130
+ 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
+ return Pe(t);
132
+ }), st = d(() => {
133
+ const t = h.value.map((a, l) => Y.value ? 1 : (a.values || []).reduce((o, u) => o + u));
134
+ return Pe(t);
135
+ }), J = d(() => (m.dataset.forEach((t, a) => {
136
+ [null, void 0].includes(t.values) && ce({
136
137
  componentName: "VueUiWaffle",
137
138
  type: "datasetSerieAttribute",
138
139
  property: "values (number[])",
@@ -145,27 +146,27 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
145
146
  color: t.color,
146
147
  value: (t.values || []).reduce((l, o) => l + o, 0),
147
148
  absoluteValues: t.values || [],
148
- proportion: ot.value[a]
149
- })))), st = d(() => h.value.map((t, a) => ({
149
+ proportion: ut.value[a]
150
+ })))), rt = d(() => h.value.map((t, a) => ({
150
151
  absoluteIndex: t.absoluteIndex,
151
152
  uid: t.uid,
152
153
  name: t.name,
153
154
  color: t.color,
154
155
  value: (t.values || []).reduce((l, o) => l + o, 0),
155
156
  absoluteValues: t.values || [],
156
- proportion: ut.value[a]
157
+ proportion: st.value[a]
157
158
  })));
158
- function rt() {
159
- return st.value.map((t) => ({
159
+ function nt() {
160
+ return rt.value.map((t) => ({
160
161
  name: t.name,
161
162
  color: t.color,
162
163
  value: t.value,
163
164
  proportion: t.proportion
164
165
  }));
165
166
  }
166
- const nt = d(() => {
167
+ const it = d(() => {
167
168
  let t = 0;
168
- return Y.value.map((a, l) => {
169
+ return J.value.map((a, l) => {
169
170
  const o = t, u = o + a.proportion, v = [];
170
171
  for (let y = Math.floor(o); y < Math.floor(u); y += 1)
171
172
  v.push(y);
@@ -175,7 +176,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
175
176
  rects: v
176
177
  };
177
178
  });
178
- }), i = d(() => nt.value.flatMap((t, a) => t.rects.map((l, o) => ({
179
+ }), i = d(() => it.value.flatMap((t, a) => t.rects.map((l, o) => ({
179
180
  isFirst: o === 0,
180
181
  isLongEnough: l.length > 2,
181
182
  name: t.name,
@@ -199,49 +200,52 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
199
200
  y: (e.value.style.chart.layout.grid.vertical ? l : a) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
200
201
  });
201
202
  return t;
202
- }), p = c([]), N = c(!1), Ae = c(null), Fe = c(null);
203
- function Le(t) {
203
+ }), p = c([]), N = c(!1), Le = c(null), Fe = c(null);
204
+ function ze(t) {
205
+ if (Y.value) return;
204
206
  if (!e.value.useAnimation) {
205
- p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < G.value.length - 1 && G.value.length > 1 && p.value.push(t);
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);
206
208
  return;
207
209
  }
208
- const a = ue.value.find((u) => u.uid === t).values.reduce((u, v) => u + v, 0), l = h.value.find((u) => u.uid === t).values.reduce((u, v) => u + v, 0);
210
+ 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);
209
211
  let o = l;
210
- if (p.value.includes(t)) {
211
- let v = function() {
212
- o > u ? (cancelAnimationFrame(Ae.value), h.value = h.value.map((y, w) => y.uid === t ? {
213
- ...y,
214
- values: [u]
215
- } : y), N.value = !1) : (N.value = !0, o += u * 0.025, h.value = h.value.map((y, w) => y.uid === t ? {
216
- ...y,
217
- values: [o]
218
- } : y), Ae.value = requestAnimationFrame(v));
219
- };
220
- p.value = p.value.filter((y) => y !== t);
221
- const u = a;
222
- v();
223
- } else if (p.value.length < G.value.length - 1 && G.value.length > 1) {
224
- let u = function() {
225
- o < l / 100 ? (cancelAnimationFrame(Fe.value), p.value.push(t), h.value = h.value.map((v, y) => v.uid === t ? {
226
- ...v,
227
- values: [0]
228
- } : v), N.value = !1) : (N.value = !0, o /= 1.15, h.value = h.value.map((v) => v.uid === t ? {
229
- ...v,
230
- values: [o]
231
- } : v), Fe.value = requestAnimationFrame(u));
232
- };
233
- u();
212
+ if (!(l === 0 && a === 0)) {
213
+ if (p.value.includes(t)) {
214
+ let v = function() {
215
+ o > u ? (cancelAnimationFrame(Le.value), h.value = h.value.map((y, w) => y.uid === t ? {
216
+ ...y,
217
+ 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,
220
+ values: [o]
221
+ } : y), Le.value = requestAnimationFrame(v));
222
+ };
223
+ p.value = p.value.filter((y) => y !== t);
224
+ const u = a;
225
+ v();
226
+ } else if (p.value.length < E.value.length - 1 && E.value.length > 1) {
227
+ let u = function() {
228
+ o < l / 100 ? (cancelAnimationFrame(Fe.value), p.value.push(t), h.value = h.value.map((v, y) => v.uid === t ? {
229
+ ...v,
230
+ values: [0]
231
+ } : v), N.value = !1) : (N.value = !0, o /= 1.15, h.value = h.value.map((v) => v.uid === t ? {
232
+ ...v,
233
+ values: [o]
234
+ } : v), Fe.value = requestAnimationFrame(u));
235
+ };
236
+ u();
237
+ }
238
+ dt("selectLegend", J.value.map((u) => ({
239
+ name: u.name,
240
+ color: u.color,
241
+ value: u.value,
242
+ proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
243
+ })));
234
244
  }
235
- ct("selectLegend", Y.value.map((u) => ({
236
- name: u.name,
237
- color: u.color,
238
- value: u.value,
239
- proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
240
- })));
241
245
  }
242
- const G = d(() => h.value.map((t, a) => ({
246
+ const E = d(() => h.value.map((t, a) => ({
243
247
  name: t.name,
244
- color: t.color || Se[a] || M[a] || M[a % M.length],
248
+ color: t.color || Oe[a] || M[a] || M[a % M.length],
245
249
  value: (t.values || []).reduce((l, o) => l + o, 0),
246
250
  uid: t.uid,
247
251
  shape: "square"
@@ -249,33 +253,33 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
249
253
  ...t,
250
254
  proportion: t.value / h.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
251
255
  opacity: p.value.includes(t.uid) ? 0.5 : 1,
252
- segregate: () => Le(t.uid),
256
+ segregate: () => ze(t.uid),
253
257
  isSegregated: p.value.includes(t.uid)
254
- }))), it = d(() => ({
258
+ }))), vt = d(() => ({
255
259
  cy: "waffle-div-legend",
256
260
  backgroundColor: e.value.style.chart.legend.backgroundColor,
257
261
  color: e.value.style.chart.legend.color,
258
262
  fontSize: e.value.style.chart.legend.fontSize,
259
263
  paddingBottom: 12,
260
264
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
261
- })), O = d(() => Y.value.map((t) => t.value).reduce((t, a) => t + a, 0)), se = c(null);
262
- function vt(t) {
265
+ })), O = d(() => J.value.map((t) => t.value).reduce((t, a) => t + a, 0)), re = c(null);
266
+ function ct(t) {
263
267
  if (p.value.length === m.dataset.length) return;
264
268
  const a = i.value[t];
265
- se.value = {
269
+ re.value = {
266
270
  datapoint: a,
267
271
  seriesIndex: a.absoluteIndex,
268
272
  series: h.value,
269
273
  config: e.value
270
- }, le.value = !0, D.value = i.value[t].serieIndex;
274
+ }, ae.value = !0, D.value = i.value[t].serieIndex;
271
275
  const l = e.value.style.chart.tooltip.customFormat;
272
- if (Ft(l) && Lt(() => l({
276
+ if (Ft(l) && zt(() => l({
273
277
  seriesIndex: i.value[t].absoluteIndex,
274
278
  datapoint: a,
275
279
  series: h.value,
276
280
  config: e.value
277
281
  })))
278
- ae.value = l({
282
+ oe.value = l({
279
283
  seriesIndex: i.value[t].absoluteIndex,
280
284
  datapoint: a,
281
285
  series: h.value,
@@ -283,7 +287,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
283
287
  });
284
288
  else {
285
289
  let o = "";
286
- if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${a.color}" />${tt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${k.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${q(
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(
287
291
  e.value.style.chart.layout.labels.dataLabels.formatter,
288
292
  a.value,
289
293
  _({
@@ -299,34 +303,34 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
299
303
  }
300
304
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
301
305
  const u = _({
302
- v: a.value / O.value * 100,
306
+ v: Y.value ? 1 / m.dataset.length * 100 : a.value / O.value * 100,
303
307
  s: "%",
304
308
  r: e.value.style.chart.tooltip.roundingPercentage
305
309
  });
306
310
  e.value.style.chart.tooltip.showValue ? o += `<span>(${u})</span></div>` : o += `<b>${u}%</b></div>`;
307
311
  }
308
- ae.value = o;
312
+ oe.value = o;
309
313
  }
310
314
  }
311
- const ct = qe, P = d(() => {
312
- const t = Y.value.map((l) => ({
315
+ const dt = He, P = d(() => {
316
+ const t = J.value.map((l) => ({
313
317
  name: l.name,
314
318
  color: l.color
315
- })), a = Y.value.map((l) => l.value);
319
+ })), a = J.value.map((l) => l.value);
316
320
  return { head: t, body: a };
317
321
  });
318
- function Z(t) {
322
+ function ee(t) {
319
323
  return e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== t ? `url(#blur_${k.value})` : "";
320
324
  }
321
- function ze(t = null) {
322
- yt(() => {
325
+ function Ne(t = null) {
326
+ gt(() => {
323
327
  const a = P.value.head.map((u, v) => [[
324
328
  u.name
325
- ], [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 = Pt(l);
326
- t ? t(o) : At({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
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) : Lt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
327
331
  });
328
332
  }
329
- const ee = d(() => {
333
+ const te = d(() => {
330
334
  const t = [
331
335
  ' <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>',
332
336
  q(
@@ -384,60 +388,60 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
384
388
  config: l,
385
389
  colNames: o
386
390
  };
387
- }), E = c(!1);
388
- function dt(t) {
389
- E.value = t, ce.value += 1;
391
+ }), G = c(!1);
392
+ function ht(t) {
393
+ G.value = t, de.value += 1;
390
394
  }
391
- function Ne() {
395
+ function Be() {
392
396
  C.value.showTable = !C.value.showTable;
393
397
  }
394
- function Be() {
398
+ function Ve() {
395
399
  C.value.showTooltip = !C.value.showTooltip;
396
400
  }
397
- const te = c(!1);
398
- function re() {
399
- te.value = !te.value;
401
+ const le = c(!1);
402
+ function ne() {
403
+ le.value = !le.value;
400
404
  }
401
- return We({
402
- getData: rt,
403
- generatePdf: Ie,
404
- generateCsv: ze,
405
- generateImage: Te,
406
- toggleTable: Ne,
407
- toggleTooltip: Be,
408
- toggleAnnotator: re
405
+ return qe({
406
+ getData: nt,
407
+ generatePdf: Te,
408
+ generateCsv: Ne,
409
+ generateImage: Se,
410
+ toggleTable: Be,
411
+ toggleTooltip: Ve,
412
+ toggleAnnotator: ne
409
413
  }), (t, a) => (s(), r("div", {
410
- class: De(`vue-ui-waffle ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
414
+ class: Re(`vue-ui-waffle ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
411
415
  ref_key: "waffleChart",
412
416
  ref: H,
413
417
  id: `vue-ui-waffle_${k.value}`,
414
418
  style: K(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
415
- onMouseenter: a[3] || (a[3] = () => n(me)(!0)),
416
- onMouseleave: a[4] || (a[4] = () => n(me)(!1))
419
+ onMouseenter: a[3] || (a[3] = () => n(we)(!0)),
420
+ onMouseleave: a[4] || (a[4] = () => n(we)(!1))
417
421
  }, [
418
- e.value.userOptions.buttons.annotator ? (s(), V(n(Xe), {
422
+ e.value.userOptions.buttons.annotator ? (s(), V(n(Ye), {
419
423
  key: 0,
420
- svgRef: n(ke),
424
+ svgRef: n(xe),
421
425
  backgroundColor: e.value.style.chart.backgroundColor,
422
426
  color: e.value.style.chart.color,
423
- active: te.value,
424
- onClose: re
427
+ active: le.value,
428
+ onClose: ne
425
429
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
426
- at.value ? (s(), r("div", {
430
+ ot.value ? (s(), r("div", {
427
431
  key: 1,
428
432
  ref_key: "noTitle",
429
- ref: fe,
433
+ ref: ye,
430
434
  class: "vue-data-ui-no-title-space",
431
435
  style: "height:36px; width: 100%;background:transparent"
432
436
  }, null, 512)) : f("", !0),
433
437
  e.value.style.chart.title.text ? (s(), r("div", {
434
438
  key: 2,
435
439
  ref_key: "chartTitle",
436
- ref: de,
440
+ ref: he,
437
441
  style: "width:100%;background:transparent;padding-bottom:12px"
438
442
  }, [
439
- (s(), V(Dt, {
440
- key: `title_${ye.value}`,
443
+ (s(), V(Rt, {
444
+ key: `title_${ge.value}`,
441
445
  config: {
442
446
  title: {
443
447
  cy: "waffle-title",
@@ -450,14 +454,14 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
450
454
  }
451
455
  }, null, 8, ["config"]))
452
456
  ], 512)) : f("", !0),
453
- e.value.userOptions.show && J.value && (n(we) || n(oe)) ? (s(), V(n(Qe), {
457
+ e.value.userOptions.show && Q.value && (n(ke) || n(ue)) ? (s(), V(n(Ze), {
454
458
  ref_key: "details",
455
- ref: lt,
456
- key: `user_options_${ce.value}`,
459
+ ref: at,
460
+ key: `user_options_${de.value}`,
457
461
  backgroundColor: e.value.style.chart.backgroundColor,
458
462
  color: e.value.style.chart.color,
459
- isPrinting: n($e),
460
- isImaging: n(_e),
463
+ isPrinting: n(_e),
464
+ isImaging: n(Ie),
461
465
  uid: k.value,
462
466
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
463
467
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -465,25 +469,25 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
465
469
  hasXls: e.value.userOptions.buttons.csv,
466
470
  hasTable: e.value.userOptions.buttons.table,
467
471
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
468
- isFullscreen: E.value,
472
+ isFullscreen: G.value,
469
473
  isTooltip: C.value.showTooltip,
470
474
  titles: { ...e.value.userOptions.buttonTitles },
471
475
  chartElement: H.value,
472
476
  position: e.value.userOptions.position,
473
477
  hasAnnotator: e.value.userOptions.buttons.annotator,
474
- isAnnotation: te.value,
478
+ isAnnotation: le.value,
475
479
  callbacks: e.value.userOptions.callbacks,
476
- onToggleFullscreen: dt,
477
- onGeneratePdf: n(Ie),
478
- onGenerateCsv: ze,
479
- onGenerateImage: n(Te),
480
- onToggleTable: Ne,
481
- onToggleTooltip: Be,
482
- onToggleAnnotator: re,
480
+ onToggleFullscreen: ht,
481
+ onGeneratePdf: n(Te),
482
+ onGenerateCsv: Ne,
483
+ onGenerateImage: n(Se),
484
+ onToggleTable: Be,
485
+ onToggleTooltip: Ve,
486
+ onToggleAnnotator: ne,
483
487
  style: K({
484
- visibility: n(we) ? n(oe) ? "visible" : "hidden" : "visible"
488
+ visibility: n(ke) ? n(ue) ? "visible" : "hidden" : "visible"
485
489
  })
486
- }, Re({ _: 2 }, [
490
+ }, Ue({ _: 2 }, [
487
491
  t.$slots.menuIcon ? {
488
492
  name: "menuIcon",
489
493
  fn: b(({ isOpen: l, color: o }) => [
@@ -541,18 +545,18 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
541
545
  key: "7"
542
546
  } : void 0
543
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),
544
- J.value ? (s(), r("svg", {
548
+ Q.value ? (s(), r("svg", {
545
549
  key: 4,
546
550
  ref_key: "svgRef",
547
- ref: ke,
548
- xmlns: n($t),
549
- class: De({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
551
+ ref: xe,
552
+ xmlns: n(_t),
553
+ class: Re({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
550
554
  viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
551
555
  style: K(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
552
556
  }, [
553
- ie(n(Ze)),
557
+ ve(n(et)),
554
558
  x("defs", null, [
555
- (s(!0), r($, null, F(i.value, (l, o) => (s(), r("radialGradient", {
559
+ (s(!0), r($, null, L(i.value, (l, o) => (s(), r("radialGradient", {
556
560
  cx: "50%",
557
561
  cy: "50%",
558
562
  r: "50%",
@@ -562,13 +566,13 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
562
566
  }, [
563
567
  x("stop", {
564
568
  offset: "0%",
565
- "stop-color": n(_t)(n(It)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
566
- }, null, 8, qt),
569
+ "stop-color": n(It)(n(Tt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
570
+ }, null, 8, Ht),
567
571
  x("stop", {
568
572
  offset: "100%",
569
573
  "stop-color": l.color
570
- }, null, 8, Ht)
571
- ], 8, Wt))), 256))
574
+ }, null, 8, Xt)
575
+ ], 8, qt))), 256))
572
576
  ]),
573
577
  x("defs", null, [
574
578
  x("filter", {
@@ -586,17 +590,17 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
586
590
  type: "saturate",
587
591
  values: "0"
588
592
  }, null, -1)
589
- ]), 8, Xt)
593
+ ]), 8, Yt)
590
594
  ]),
591
- e.value.useCustomCells && i.value.length ? (s(!0), r($, { key: 0 }, F(U.value, (l, o) => (s(), r("foreignObject", {
595
+ e.value.useCustomCells && i.value.length ? (s(!0), r($, { key: 0 }, L(U.value, (l, o) => (s(), r("foreignObject", {
592
596
  x: l.x,
593
597
  y: l.y,
594
598
  height: S.value <= 0 ? 1e-4 : S.value,
595
599
  width: T.value <= 0 ? 1e-4 : T.value,
596
600
  class: "vue-ui-waffle-custom-cell-foreignObject"
597
601
  }, [
598
- g(t.$slots, "cell", Ue({ ref_for: !0 }, { cell: { ...l, color: i.value[o].color, ...i.value[o] }, isSelected: [null, void 0].includes(D.value) ? !0 : i.value[o].serieIndex === D.value }), void 0, !0)
599
- ], 8, Yt))), 256)) : f("", !0),
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),
600
604
  !i.value.length && !e.value.useCustomCells ? (s(), r("rect", {
601
605
  key: 1,
602
606
  x: 12,
@@ -607,12 +611,12 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
607
611
  fill: "none",
608
612
  stroke: "black"
609
613
  }, null, 8, Kt)) : i.value.length && !e.value.useCustomCells ? (s(), r($, { key: 2 }, [
610
- t.$slots.pattern ? (s(), r("g", Jt, [
611
- (s(!0), r($, null, F(ue.value, (l) => (s(), r("defs", null, [
612
- g(t.$slots, "pattern", Ue({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` }), void 0, !0)
614
+ t.$slots.pattern ? (s(), r("g", Qt, [
615
+ (s(!0), r($, null, L(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)
613
617
  ]))), 256))
614
618
  ])) : f("", !0),
615
- (s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
619
+ (s(!0), r($, null, L(U.value, (l, o) => (s(), r("rect", {
616
620
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
617
621
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
618
622
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -621,9 +625,9 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
621
625
  fill: "white",
622
626
  stroke: e.value.style.chart.layout.rect.stroke,
623
627
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
624
- filter: Z(i.value[o].serieIndex)
625
- }, null, 8, Qt))), 256)),
626
- (s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
628
+ filter: ee(i.value[o].serieIndex)
629
+ }, null, 8, Zt))), 256)),
630
+ (s(!0), r($, null, L(U.value, (l, o) => (s(), r("rect", {
627
631
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
628
632
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
629
633
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -632,10 +636,10 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
632
636
  fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${o})` : i.value[o].color,
633
637
  stroke: e.value.style.chart.layout.rect.stroke,
634
638
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
635
- filter: Z(i.value[o].serieIndex)
636
- }, null, 8, Zt))), 256)),
637
- t.$slots.pattern ? (s(), r("g", el, [
638
- (s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
639
+ filter: ee(i.value[o].serieIndex)
640
+ }, null, 8, el))), 256)),
641
+ t.$slots.pattern ? (s(), r("g", tl, [
642
+ (s(!0), r($, null, L(U.value, (l, o) => (s(), r("rect", {
639
643
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
640
644
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
641
645
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -643,26 +647,26 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
643
647
  width: T.value <= 0 ? 1e-4 : T.value,
644
648
  fill: `url(#pattern_${k.value}_${i.value[o].absoluteIndex})`,
645
649
  stroke: "none",
646
- filter: Z(i.value[o].serieIndex)
647
- }, null, 8, tl))), 256))
650
+ filter: ee(i.value[o].serieIndex)
651
+ }, null, 8, ll))), 256))
648
652
  ])) : f("", !0)
649
653
  ], 64)) : f("", !0),
650
- (s(!0), r($, null, F(U.value, (l, o) => (s(), r($, null, [
654
+ (s(!0), r($, null, L(U.value, (l, o) => (s(), r($, null, [
651
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", {
652
656
  key: 0,
653
657
  x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
654
658
  y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
655
- height: Q.value <= 0 ? 1e-4 : Q.value,
659
+ height: Z.value <= 0 ? 1e-4 : Z.value,
656
660
  width: X.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : X.value * e.value.style.chart.layout.grid.size,
657
- filter: Z(i.value[o].serieIndex)
661
+ filter: ee(i.value[o].serieIndex)
658
662
  }, [
659
663
  x("div", {
660
664
  class: "vue-ui-waffle-caption",
661
- style: K(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${X.value / 12}px;color:${n(Tt)(i.value[o].color)};gap:2px`)
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`)
662
666
  }, [
663
- e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", al, L(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? n(St)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) : f("", !0),
664
- e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", ol, L(n(_)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
665
- e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", ul, " (" + L(n(q)(
667
+ e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", ol, F(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, F(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, " (" + F(n(q)(
666
670
  e.value.style.chart.layout.labels.dataLabels.formatter,
667
671
  i.value[o].value,
668
672
  n(_)({
@@ -673,7 +677,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
673
677
  }),
674
678
  { datapoint: i.value[o], position: l }
675
679
  )) + ") ", 1)) : f("", !0),
676
- !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", sl, L(n(q)(
680
+ !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", rl, F(n(q)(
677
681
  e.value.style.chart.layout.labels.dataLabels.formatter,
678
682
  i.value[o].value,
679
683
  n(_)({
@@ -685,26 +689,26 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
685
689
  { datapoint: i.value[o], position: l }
686
690
  )), 1)) : f("", !0)
687
691
  ], 4)
688
- ], 8, ll)) : f("", !0)
692
+ ], 8, al)) : f("", !0)
689
693
  ], 64))), 256)),
690
- (s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
691
- onMouseover: (u) => vt(o),
694
+ (s(!0), r($, null, L(U.value, (l, o) => (s(), r("rect", {
695
+ onMouseover: (u) => ct(o),
692
696
  onMouseleave: a[0] || (a[0] = (u) => {
693
- le.value = !1, D.value = null;
697
+ ae.value = !1, D.value = null;
694
698
  }),
695
699
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
696
700
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
697
- height: Q.value <= 0 ? 1e-4 : Q.value,
701
+ height: Z.value <= 0 ? 1e-4 : Z.value,
698
702
  width: X.value <= 0 ? 1e-4 : X.value,
699
703
  fill: "transparent",
700
704
  stroke: "none"
701
- }, null, 40, rl))), 256)),
705
+ }, null, 40, nl))), 256)),
702
706
  g(t.$slots, "svg", { svg: z.value }, void 0, !0)
703
- ], 14, jt)) : f("", !0),
704
- t.$slots.watermark ? (s(), r("div", nl, [
705
- g(t.$slots, "watermark", j(W({ isPrinting: n($e) || n(_e) })), 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)
706
710
  ])) : f("", !0),
707
- J.value ? f("", !0) : (s(), V(n(Ke), {
711
+ Q.value ? f("", !0) : (s(), V(n(Ke), {
708
712
  key: 6,
709
713
  config: {
710
714
  type: "waffle",
@@ -718,20 +722,20 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
718
722
  }, null, 8, ["config"])),
719
723
  x("div", {
720
724
  ref_key: "chartLegend",
721
- ref: he
725
+ ref: pe
722
726
  }, [
723
- e.value.style.chart.legend.show ? (s(), V(Rt, {
724
- key: `legend_${be.value}`,
725
- legendSet: G.value,
726
- config: it.value,
727
- onClickMarker: a[1] || (a[1] = ({ legend: l }) => Le(l.uid))
728
- }, Re({
727
+ e.value.style.chart.legend.show ? (s(), V(Ut, {
728
+ key: `legend_${me.value}`,
729
+ legendSet: E.value,
730
+ config: vt.value,
731
+ onClickMarker: a[1] || (a[1] = ({ legend: l }) => ze(l.uid))
732
+ }, Ue({
729
733
  item: b(({ legend: l }) => [
730
734
  x("div", {
731
735
  onClick: (o) => l.segregate(),
732
736
  style: K(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
733
737
  }, [
734
- Ge(L(l.name) + ": " + L(n(q)(
738
+ Ge(F(l.name) + ": " + F(n(q)(
735
739
  e.value.style.chart.layout.labels.dataLabels.formatter,
736
740
  l.value,
737
741
  n(_)({
@@ -743,15 +747,15 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
743
747
  }),
744
748
  { datapoint: l }
745
749
  )) + " ", 1),
746
- p.value.includes(l.uid) ? (s(), r("span", cl, " ( - % ) ")) : (s(), r("span", vl, " (" + 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))
747
- ], 12, il)
750
+ p.value.includes(l.uid) ? (s(), r("span", dl, " ( - % ) ")) : (s(), r("span", cl, " (" + F(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)
748
752
  ]),
749
753
  _: 2
750
754
  }, [
751
755
  t.$slots.pattern ? {
752
756
  name: "legend-pattern",
753
757
  fn: b(({ legend: l, index: o }) => [
754
- ie(Ut, {
758
+ ve(Et, {
755
759
  shape: l.shape,
756
760
  radius: 30,
757
761
  stroke: "none",
@@ -763,19 +767,19 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
763
767
  } : void 0
764
768
  ]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
765
769
  key: 1,
766
- legend: G.value
770
+ legend: E.value
767
771
  }, void 0, !0)
768
772
  ], 512),
769
773
  t.$slots.source ? (s(), r("div", {
770
774
  key: 7,
771
775
  ref_key: "source",
772
- ref: pe,
776
+ ref: fe,
773
777
  dir: "auto"
774
778
  }, [
775
779
  g(t.$slots, "source", {}, void 0, !0)
776
780
  ], 512)) : f("", !0),
777
- ie(n(Je), {
778
- show: C.value.showTooltip && le.value && p.value.length < m.dataset.length,
781
+ ve(n(Qe), {
782
+ show: C.value.showTooltip && ae.value && p.value.length < m.dataset.length,
779
783
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
780
784
  color: e.value.style.chart.tooltip.color,
781
785
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -785,20 +789,20 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
785
789
  position: e.value.style.chart.tooltip.position,
786
790
  offsetY: e.value.style.chart.tooltip.offsetY,
787
791
  parent: H.value,
788
- content: ae.value,
792
+ content: oe.value,
789
793
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
790
794
  fontSize: e.value.style.chart.tooltip.fontSize,
791
- isFullscreen: E.value
795
+ isFullscreen: G.value
792
796
  }, {
793
797
  "tooltip-before": b(() => [
794
- g(t.$slots, "tooltip-before", j(W({ ...se.value })), void 0, !0)
798
+ g(t.$slots, "tooltip-before", j(W({ ...re.value })), void 0, !0)
795
799
  ]),
796
800
  "tooltip-after": b(() => [
797
- g(t.$slots, "tooltip-after", j(W({ ...se.value })), void 0, !0)
801
+ g(t.$slots, "tooltip-after", j(W({ ...re.value })), void 0, !0)
798
802
  ]),
799
803
  _: 3
800
804
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen"]),
801
- J.value ? (s(), V(n(Ye), {
805
+ Q.value ? (s(), V(n(Je), {
802
806
  key: 8,
803
807
  hideDetails: "",
804
808
  config: {
@@ -815,12 +819,12 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
815
819
  }
816
820
  }, {
817
821
  content: b(() => [
818
- (s(), V(n(He), {
819
- key: `table_${ge.value}`,
820
- colNames: ee.value.colNames,
821
- head: ee.value.head,
822
- body: ee.value.body,
823
- config: ee.value.config,
822
+ (s(), V(n(Xe), {
823
+ key: `table_${be.value}`,
824
+ colNames: te.value.colNames,
825
+ head: te.value.head,
826
+ body: te.value.body,
827
+ config: te.value.config,
824
828
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
825
829
  onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
826
830
  }, {
@@ -828,19 +832,19 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
828
832
  x("div", {
829
833
  innerHTML: l,
830
834
  style: { display: "flex", "align-items": "center" }
831
- }, null, 8, dl)
835
+ }, null, 8, hl)
832
836
  ]),
833
837
  td: b(({ td: l }) => [
834
- Ge(L(l.name || l), 1)
838
+ Ge(F(l.name || l), 1)
835
839
  ]),
836
840
  _: 1
837
841
  }, 8, ["colNames", "head", "body", "config", "title"]))
838
842
  ]),
839
843
  _: 1
840
844
  }, 8, ["config"])) : f("", !0)
841
- ], 46, Et));
845
+ ], 46, jt));
842
846
  }
843
- }, _l = /* @__PURE__ */ Gt(hl, [["__scopeId", "data-v-9c143042"]]);
847
+ }, Il = /* @__PURE__ */ Gt(pl, [["__scopeId", "data-v-da21b411"]]);
844
848
  export {
845
- _l as default
849
+ Il as default
846
850
  };