vue-data-ui 3.0.23 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
  3. package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
  6. package/dist/DataTable-BAf4Obr9.js +140 -0
  7. package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
  9. package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
  10. package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
  11. package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
  12. package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
  13. package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
  14. package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
  15. package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
  16. package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
  17. package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
  18. package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
  19. package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
  20. package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
  25. package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
  26. package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
  27. package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
  28. package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
  31. package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
  33. package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
  34. package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
  35. package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
  36. package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
  37. package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
  38. package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
  39. package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
  40. package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
  41. package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
  42. package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
  43. package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
  44. package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
  45. package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
  46. package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
  47. package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
  48. package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
  49. package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
  50. package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
  51. package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
  52. package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
  53. package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
  54. package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
  55. package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
  56. package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
  57. package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
  58. package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
  59. package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
  60. package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
  61. package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
  62. package/dist/vue-ui-radar-Br4K80I9.js +858 -0
  63. package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
  64. package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
  65. package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
  66. package/dist/vue-ui-rings-DEru-cWN.js +785 -0
  67. package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
  68. package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
  69. package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
  70. package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
  71. package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
  72. package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
  73. package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
  74. package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
  75. package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
  76. package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
  77. package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
  78. package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
  79. package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
  80. package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
  81. package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
  82. package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
  83. package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
  84. package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
  85. package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
  86. package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
  87. package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
  88. package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
  89. package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
  90. package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
  91. package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
  92. package/package.json +1 -1
  93. package/dist/DataTable-nO6ydJO2.js +0 -133
  94. package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
  95. package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
  96. package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
  97. package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
  98. package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
  99. package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
  100. package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
  101. package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
  102. package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
  103. package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
  104. package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
  105. package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
  106. package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
  107. package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
  108. package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as G, useSlots as $t, computed as p, ref as i, toRefs as It, watch as ee, shallowRef as je, onMounted as _t, onBeforeUnmount as Tt, createElementBlock as v, openBlock as s, unref as c, normalizeStyle as te, normalizeClass as qe, createBlock as F, createCommentVNode as b, createElementVNode as x, createVNode as pe, createSlots as He, withCtx as m, renderSlot as y, normalizeProps as W, guardReactiveProps as j, Fragment as $, renderList as B, mergeProps as Xe, toDisplayString as q, Teleport as At, createTextVNode as St, nextTick as Pt } from "vue";
2
- import { u as Lt, c as Ot, t as Ft, a as Bt, p as V, b as zt, o as Ye, f as fe, g as Nt, d as Vt, k as Y, i as P, X as Mt, s as Dt, x as Rt, F as Et, e as Ut, v as Gt, w as Wt, L as jt, y as qt, z as Ht } from "./index-BEuUtONc.js";
3
- import { t as Xt, u as Yt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Je } from "./useNestedProp-DhLFhguL.js";
5
- import { u as Jt } from "./usePrinter-DiB0_UNt.js";
6
- import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Qt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Zt from "./Title-D_e0SFWS.js";
9
- import el from "./Legend-CyYXMSsW.js";
10
- import { _ as tl } from "./Shape-CYVs2kYz.js";
11
- import ll from "./img-z5p1gGfY.js";
12
- import { u as al, B as ol } from "./useLoading-D7YHNtLX.js";
13
- import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["stop-color"], cl = ["stop-color"], dl = ["id"], hl = ["x", "y", "height", "width"], pl = ["height", "width"], fl = { key: 0 }, yl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], gl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], ml = { key: 1 }, bl = ["rx", "x", "y", "height", "width", "fill", "filter"], wl = ["textContent", "x", "y", "font-size", "fill", "filter"], kl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], xl = {
1
+ import { defineAsyncComponent as B, useSlots as St, computed as h, ref as i, toRefs as Pt, watch as K, shallowRef as Ye, onMounted as Lt, onBeforeUnmount as Ot, createElementBlock as v, openBlock as s, unref as c, normalizeStyle as ae, normalizeClass as Je, createBlock as F, createCommentVNode as m, createElementVNode as x, createVNode as oe, createSlots as be, withCtx as y, renderSlot as g, normalizeProps as j, guardReactiveProps as q, Fragment as $, renderList as z, mergeProps as me, toDisplayString as M, Teleport as Bt, resolveDynamicComponent as Ft, createTextVNode as Ke, nextTick as zt } from "vue";
2
+ import { u as Nt, c as Dt, t as Vt, a as Mt, p as R, b as Rt, o as Qe, f as we, g as Et, d as Ut, k as Q, i as L, X as Wt, s as Gt, x as jt, F as qt, e as Ht, v as Xt, w as Yt, L as Jt, y as Kt, z as Qt } from "./index-BKQqb9lF.js";
3
+ import { t as Zt, u as el } from "./useResponsive-DfdjqQps.js";
4
+ import { u as tl, B as ll } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as al } from "./usePrinter-BzuXiubT.js";
6
+ import { u as Ze } from "./useNestedProp-aBOhgs4U.js";
7
+ import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as ul } from "./useChartAccessibility-9icAAmYg.js";
9
+ import sl from "./img-gBDz7xQQ.js";
10
+ import { _ as nl } from "./Shape-Cjca5zta.js";
11
+ import rl from "./Title-Dz-j6ERs.js";
12
+ import il from "./Legend-8_V5egWW.js";
13
+ import { _ as vl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["stop-color"], yl = ["stop-color"], gl = ["id"], bl = ["x", "y", "height", "width"], ml = ["height", "width"], wl = { key: 0 }, kl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], xl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Cl = { key: 1 }, $l = ["rx", "x", "y", "height", "width", "fill", "filter"], Il = ["textContent", "x", "y", "font-size", "fill", "filter"], Tl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], _l = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, Cl = ["id"], $l = ["onClick"], Il = ["innerHTML"], _l = {
17
+ }, Al = ["id"], Sl = ["onClick"], Pl = ["innerHTML"], Ll = {
18
18
  __name: "vue-ui-waffle",
19
19
  props: {
20
20
  config: {
@@ -31,14 +31,14 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend"],
34
- setup(Ke, { expose: Qe, emit: Ze }) {
35
- const et = G(() => import("./DataTable-nO6ydJO2.js")), tt = G(() => import("./PenAndPaper-zym5uEeN.js")), lt = G(() => import("./vue-ui-accordion-B4YfUjZ5.js")), at = G(() => import("./Tooltip-DjVoFYj1.js")), ot = G(() => import("./UserOptions-z0NWZ7aQ.js")), ut = G(() => import("./PackageVersion-B6M-3jRt.js")), { vue_ui_waffle: st } = Lt(), w = Ke, nt = $t(), le = p(() => !!w.dataset && w.dataset.length), g = i(Ot()), rt = i(null), ae = i(!1), oe = i(""), M = i(null), ye = i(0), L = i(null), ge = i(null), me = i(null), be = i(null), we = i(null), ke = i(0), xe = i(0), Ce = i(0), $e = i(!1), e = i(ne()), { loading: Ie, FINAL_DATASET: J, manualLoading: ue } = al({
36
- ...It(w),
34
+ setup(et, { expose: tt, emit: lt }) {
35
+ const at = B(() => import("./Tooltip-BTGOEC7w.js")), ot = B(() => import("./BaseIcon-DLesaZpW.js")), ut = B(() => import("./DataTable-BAf4Obr9.js")), st = B(() => import("./vue-ui-accordion-B5QeV3BK.js")), nt = B(() => import("./UserOptions-CsDlFB0L.js")), rt = B(() => import("./PenAndPaper-B6OvfyHH.js")), it = B(() => import("./PackageVersion-Cv_ypT0N.js")), vt = B(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_waffle: ct } = Nt(), w = et, dt = St(), ue = h(() => !!w.dataset && w.dataset.length), b = i(Dt()), ht = i(null), se = i(!1), ne = i(""), E = i(null), ke = i(0), I = i(null), xe = i(null), Ce = i(null), $e = i(null), Ie = i(null), Te = i(0), _e = i(0), Ae = i(0), Se = i(!1), H = i(null), e = i(ve()), { loading: Pe, FINAL_DATASET: Z, manualLoading: re } = tl({
36
+ ...Pt(w),
37
37
  FINAL_CONFIG: e,
38
- prepareConfig: ne,
38
+ prepareConfig: ve,
39
39
  callback: () => {
40
40
  Promise.resolve().then(async () => {
41
- h.value = re();
41
+ p.value = ce();
42
42
  });
43
43
  },
44
44
  skeletonDataset: [
@@ -58,7 +58,7 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
58
58
  color: "#CACACA"
59
59
  }
60
60
  ],
61
- skeletonConfig: Ft({
61
+ skeletonConfig: Vt({
62
62
  defaultConfig: e.value,
63
63
  userConfig: {
64
64
  useCustomCells: !1,
@@ -84,151 +84,151 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
84
84
  }
85
85
  }
86
86
  })
87
- }), { userOptionsVisible: se, setUserOptionsVisibility: _e, keepUserOptionState: Te } = Kt({ config: e.value }), { svgRef: Ae } = Qt({ config: e.value.style.chart.title });
88
- function ne() {
89
- const t = Je({
87
+ }), { userOptionsVisible: ie, setUserOptionsVisibility: Le, keepUserOptionState: Oe } = ol({ config: e.value }), { svgRef: Be } = ul({ config: e.value.style.chart.title });
88
+ function ve() {
89
+ const t = Ze({
90
90
  userConfig: w.config,
91
- defaultConfig: st
91
+ defaultConfig: ct
92
92
  });
93
93
  return t.theme ? {
94
- ...Je({
95
- userConfig: zt.vue_ui_waffle[t.theme] || w.config,
94
+ ...Ze({
95
+ userConfig: Rt.vue_ui_waffle[t.theme] || w.config,
96
96
  defaultConfig: t
97
97
  }),
98
- customPalette: Bt[t.theme] || V
98
+ customPalette: Mt[t.theme] || R
99
99
  } : t;
100
100
  }
101
- ee(() => w.config, (t) => {
102
- Ie.value || (e.value = ne()), se.value = !e.value.userOptions.showOnChartHover, Pe(), ke.value += 1, xe.value += 1, Ce.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
101
+ K(() => w.config, (t) => {
102
+ Pe.value || (e.value = ve()), ie.value = !e.value.userOptions.showOnChartHover, ze(), Te.value += 1, _e.value += 1, Ae.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
103
103
  }, { deep: !0 });
104
- const O = je(null), D = je(null), Se = p(() => !!e.value.debug);
105
- function Pe() {
106
- if (Ye(w.dataset) ? (fe({
104
+ const O = Ye(null), U = Ye(null), Fe = h(() => !!e.value.debug);
105
+ function ze() {
106
+ if (Qe(w.dataset) ? (we({
107
107
  componentName: "VueUiWaffle",
108
108
  type: "dataset",
109
- debug: Se.value
110
- }), le.value = !1, ue.value = !0) : w.dataset.forEach((t, a) => {
111
- Nt({
109
+ debug: Fe.value
110
+ }), ue.value = !1, re.value = !0) : w.dataset.forEach((t, a) => {
111
+ Et({
112
112
  datasetObject: t,
113
113
  requiredAttributes: ["name", "values"]
114
114
  }).forEach((l) => {
115
- fe({
115
+ we({
116
116
  componentName: "VueUiWaffle",
117
117
  type: "datasetSerieAttribute",
118
118
  property: l,
119
119
  index: a,
120
- debug: Se.value
120
+ debug: Fe.value
121
121
  });
122
122
  });
123
- }), Ye(w.dataset) || (ue.value = e.value.loading), e.value.responsive) {
124
- const t = Xt(() => {
125
- const { width: a, height: l } = Yt({
126
- chart: L.value,
127
- title: e.value.style.chart.title.text ? ge.value : null,
128
- legend: e.value.style.chart.legend.show ? me.value : null,
129
- source: be.value,
130
- noTitle: we.value
123
+ }), Qe(w.dataset) || (re.value = e.value.loading), e.value.responsive) {
124
+ const t = Zt(() => {
125
+ const { width: a, height: l } = el({
126
+ chart: I.value,
127
+ title: e.value.style.chart.title.text ? xe.value : null,
128
+ legend: e.value.style.chart.legend.show ? Ce.value : null,
129
+ source: $e.value,
130
+ noTitle: Ie.value
131
131
  });
132
132
  requestAnimationFrame(() => {
133
- z.value.width = a, z.value.height = l, I.value.width = a, I.value.height = l;
133
+ N.value.width = a, N.value.height = l, T.value.width = a, T.value.height = l;
134
134
  });
135
135
  });
136
- O.value && (D.value && O.value.unobserve(D.value), O.value.disconnect()), O.value = new ResizeObserver(t), D.value = L.value.parentNode, O.value.observe(D.value);
136
+ O.value && (U.value && O.value.unobserve(U.value), O.value.disconnect()), O.value = new ResizeObserver(t), U.value = I.value.parentNode, O.value.observe(U.value);
137
137
  }
138
138
  }
139
- _t(() => {
140
- $e.value = !0, Pe();
141
- }), Tt(() => {
142
- O.value && (D.value && O.value.unobserve(D.value), O.value.disconnect());
139
+ Lt(() => {
140
+ Se.value = !0, ze();
141
+ }), Ot(() => {
142
+ O.value && (U.value && O.value.unobserve(U.value), O.value.disconnect());
143
143
  });
144
- const { isPrinting: Le, isImaging: Oe, generatePdf: Fe, generateImage: Be } = Jt({
145
- elementId: `vue-ui-waffle_${g.value}`,
144
+ const { isPrinting: Ne, isImaging: De, generatePdf: Ve, generateImage: Me } = al({
145
+ elementId: `vue-ui-waffle_${b.value}`,
146
146
  fileName: e.value.style.chart.title.text || "vue-ui-waffle",
147
147
  options: e.value.userOptions.print
148
- }), it = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), ze = p(() => Vt(e.value.customPalette)), C = i({
148
+ }), pt = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Re = h(() => Ut(e.value.customPalette)), k = i({
149
149
  showTable: e.value.table.show,
150
150
  showTooltip: e.value.style.chart.tooltip.show
151
151
  });
152
- ee(e, () => {
153
- C.value = {
152
+ K(e, () => {
153
+ k.value = {
154
154
  showTable: e.value.table.show,
155
155
  showTooltip: e.value.style.chart.tooltip.show
156
156
  };
157
157
  }, { immediate: !0 });
158
- const z = i({
158
+ const N = i({
159
159
  height: 512,
160
160
  width: 512
161
- }), I = i({
161
+ }), T = i({
162
162
  top: 0,
163
163
  left: 0,
164
164
  height: 512,
165
165
  width: 512
166
- }), _ = p(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), T = p(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), vt = p(() => Math.max(1e-4, I.value.width / e.value.style.chart.layout.grid.size)), Ne = p(() => Math.max(1e-4, I.value.height / e.value.style.chart.layout.grid.size));
167
- function Ve(t) {
168
- const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((k, he) => k + he, 0), o = t.map((k) => k / l * a), u = o.map(Math.floor), n = o.map((k) => k % 1);
169
- let d = a - u.reduce((k, he) => k + he, 0);
166
+ }), _ = h(() => (T.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), A = h(() => (T.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), ft = h(() => Math.max(1e-4, T.value.width / e.value.style.chart.layout.grid.size)), Ee = h(() => Math.max(1e-4, T.value.height / e.value.style.chart.layout.grid.size));
167
+ function Ue(t) {
168
+ const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((C, ge) => C + ge, 0), o = t.map((C) => C / l * a), u = o.map(Math.floor), n = o.map((C) => C % 1);
169
+ let d = a - u.reduce((C, ge) => C + ge, 0);
170
170
  for (; d > 0; ) {
171
- let k = n.indexOf(Math.max(...n));
172
- u[k] += 1, n[k] = 0, d -= 1;
171
+ let C = n.indexOf(Math.max(...n));
172
+ u[C] += 1, n[C] = 0, d -= 1;
173
173
  }
174
174
  return u;
175
175
  }
176
- const H = i(!1);
177
- function re() {
178
- return H.value = J.value.flatMap((t) => t.values.reduce((a, l) => a + l, 0)).reduce((t, a) => t + a, 0) === 0, J.value.map((t, a) => ({
176
+ const X = i(!1);
177
+ function ce() {
178
+ return X.value = Z.value.flatMap((t) => t.values.reduce((a, l) => a + l, 0)).reduce((t, a) => t + a, 0) === 0, Z.value.map((t, a) => ({
179
179
  ...t,
180
- color: Ut(t.color) || ze.value[a] || V[a] || V[a % V.length],
180
+ color: Ht(t.color) || Re.value[a] || R[a] || R[a % R.length],
181
181
  uid: `serie_${a}`,
182
182
  absoluteIndex: a
183
183
  }));
184
184
  }
185
- const ie = p(() => re()), h = i(ie.value);
186
- ee(() => w.dataset, (t) => {
187
- Array.isArray(t) && t.length > 0 && (ue.value = !1);
188
- }, { immediate: !0 }), ee(() => w.dataset, (t) => {
189
- h.value = re();
185
+ const de = h(() => ce()), p = i(de.value);
186
+ K(() => w.dataset, (t) => {
187
+ Array.isArray(t) && t.length > 0 && (re.value = !1);
188
+ }, { immediate: !0 }), K(() => w.dataset, (t) => {
189
+ p.value = ce();
190
190
  }, { deep: !0 });
191
- const ct = p(() => {
192
- const t = h.value.filter((a, l) => !f.value.includes(a.uid)).map((a, l) => H.value ? 1 : (a.values || []).reduce((o, u) => o + u, 0));
193
- return Ve(t);
194
- }), dt = p(() => {
195
- const t = h.value.map((a, l) => H.value ? 1 : (a.values || []).reduce((o, u) => o + u));
196
- return Ve(t);
197
- }), X = p(() => (J.value.forEach((t, a) => {
198
- [null, void 0].includes(t.values) && fe({
191
+ const yt = h(() => {
192
+ const t = p.value.filter((a, l) => !f.value.includes(a.uid)).map((a, l) => X.value ? 1 : (a.values || []).reduce((o, u) => o + u, 0));
193
+ return Ue(t);
194
+ }), gt = h(() => {
195
+ const t = p.value.map((a, l) => X.value ? 1 : (a.values || []).reduce((o, u) => o + u));
196
+ return Ue(t);
197
+ }), Y = h(() => (Z.value.forEach((t, a) => {
198
+ [null, void 0].includes(t.values) && we({
199
199
  componentName: "VueUiWaffle",
200
200
  type: "datasetSerieAttribute",
201
201
  property: "values (number[])",
202
202
  index: a
203
203
  });
204
- }), h.value.filter((t, a) => !f.value.includes(t.uid)).map((t, a) => ({
204
+ }), p.value.filter((t, a) => !f.value.includes(t.uid)).map((t, a) => ({
205
205
  absoluteIndex: t.absoluteIndex,
206
206
  uid: t.uid,
207
207
  name: t.name,
208
208
  color: t.color,
209
209
  value: (t.values || []).reduce((l, o) => l + o, 0),
210
210
  absoluteValues: t.values || [],
211
- proportion: ct.value[a]
212
- })))), ht = p(() => h.value.map((t, a) => ({
211
+ proportion: yt.value[a]
212
+ })))), bt = h(() => p.value.map((t, a) => ({
213
213
  absoluteIndex: t.absoluteIndex,
214
214
  uid: t.uid,
215
215
  name: t.name,
216
216
  color: t.color,
217
217
  value: (t.values || []).reduce((l, o) => l + o, 0),
218
218
  absoluteValues: t.values || [],
219
- proportion: dt.value[a]
219
+ proportion: gt.value[a]
220
220
  })));
221
- function pt() {
222
- return ht.value.map((t) => ({
221
+ function mt() {
222
+ return bt.value.map((t) => ({
223
223
  name: t.name,
224
224
  color: t.color,
225
225
  value: t.value,
226
226
  proportion: t.proportion
227
227
  }));
228
228
  }
229
- const ft = p(() => {
229
+ const wt = h(() => {
230
230
  let t = 0;
231
- return X.value.map((a, l) => {
231
+ return Y.value.map((a, l) => {
232
232
  const o = t, u = o + a.proportion, n = [];
233
233
  for (let d = Math.floor(o); d < Math.floor(u); d += 1)
234
234
  n.push(d);
@@ -238,7 +238,7 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
238
238
  rects: n
239
239
  };
240
240
  });
241
- }), r = p(() => ft.value.flatMap((t, a) => t.rects.map((l, o) => ({
241
+ }), r = h(() => wt.value.flatMap((t, a) => t.rects.map((l, o) => ({
242
242
  isFirst: o === 0,
243
243
  isLongEnough: l.length > 2,
244
244
  name: t.name,
@@ -251,7 +251,7 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
251
251
  }))).map((t, a) => ({
252
252
  ...t,
253
253
  isAbsoluteFirst: a % e.value.style.chart.layout.grid.size === 0
254
- }))), R = p(() => {
254
+ }))), W = h(() => {
255
255
  const t = [];
256
256
  for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
257
257
  for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
@@ -259,45 +259,45 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
259
259
  isStartOfLine: l === 0,
260
260
  position: e.value.style.chart.layout.grid.vertical ? a : l,
261
261
  x: (e.value.style.chart.layout.grid.vertical ? a : l) * (_.value + e.value.style.chart.layout.grid.spaceBetween),
262
- y: (e.value.style.chart.layout.grid.vertical ? l : a) * (T.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
262
+ y: (e.value.style.chart.layout.grid.vertical ? l : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween) + T.value.top
263
263
  });
264
264
  return t;
265
- }), f = i([]), N = i(!1), Me = i(null), De = i(null);
266
- function Re(t) {
267
- if (H.value) return;
265
+ }), f = i([]), D = i(!1), We = i(null), Ge = i(null);
266
+ function je(t) {
267
+ if (X.value) return;
268
268
  if (!e.value.useAnimation) {
269
- f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < E.value.length - 1 && E.value.length > 1 && f.value.push(t);
269
+ f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < G.value.length - 1 && G.value.length > 1 && f.value.push(t);
270
270
  return;
271
271
  }
272
- const a = ie.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0), l = h.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
272
+ const a = de.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0), l = p.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
273
273
  let o = l;
274
274
  if (!(l === 0 && a === 0)) {
275
275
  if (f.value.includes(t)) {
276
276
  let n = function() {
277
- o > u ? (cancelAnimationFrame(Me.value), h.value = h.value.map((d, k) => d.uid === t ? {
277
+ o > u ? (cancelAnimationFrame(We.value), p.value = p.value.map((d, C) => d.uid === t ? {
278
278
  ...d,
279
279
  values: [u]
280
- } : d), N.value = !1) : (N.value = !0, o += u * 0.025, h.value = h.value.map((d, k) => d.uid === t ? {
280
+ } : d), D.value = !1) : (D.value = !0, o += u * 0.025, p.value = p.value.map((d, C) => d.uid === t ? {
281
281
  ...d,
282
282
  values: [o]
283
- } : d), Me.value = requestAnimationFrame(n));
283
+ } : d), We.value = requestAnimationFrame(n));
284
284
  };
285
285
  f.value = f.value.filter((d) => d !== t);
286
286
  const u = a;
287
287
  n();
288
- } else if (f.value.length < E.value.length - 1 && E.value.length > 1) {
288
+ } else if (f.value.length < G.value.length - 1 && G.value.length > 1) {
289
289
  let u = function() {
290
- o < l / 100 ? (cancelAnimationFrame(De.value), f.value.push(t), h.value = h.value.map((n, d) => n.uid === t ? {
290
+ o < l / 100 ? (cancelAnimationFrame(Ge.value), f.value.push(t), p.value = p.value.map((n, d) => n.uid === t ? {
291
291
  ...n,
292
292
  values: [0]
293
- } : n), N.value = !1) : (N.value = !0, o /= 1.15, h.value = h.value.map((n) => n.uid === t ? {
293
+ } : n), D.value = !1) : (D.value = !0, o /= 1.15, p.value = p.value.map((n) => n.uid === t ? {
294
294
  ...n,
295
295
  values: [o]
296
- } : n), De.value = requestAnimationFrame(u));
296
+ } : n), Ge.value = requestAnimationFrame(u));
297
297
  };
298
298
  u();
299
299
  }
300
- wt("selectLegend", X.value.map((u) => ({
300
+ It("selectLegend", Y.value.map((u) => ({
301
301
  name: u.name,
302
302
  color: u.color,
303
303
  value: u.value,
@@ -305,62 +305,62 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
305
305
  })));
306
306
  }
307
307
  }
308
- const E = p(() => h.value.map((t, a) => ({
308
+ const G = h(() => p.value.map((t, a) => ({
309
309
  name: t.name,
310
- color: t.color || ze[a] || V[a] || V[a % V.length],
310
+ color: t.color || Re[a] || R[a] || R[a % R.length],
311
311
  value: (t.values || []).reduce((l, o) => l + o, 0),
312
312
  uid: t.uid,
313
313
  shape: "square"
314
314
  })).map((t) => ({
315
315
  ...t,
316
- proportion: t.value / h.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
316
+ proportion: t.value / p.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
317
317
  opacity: f.value.includes(t.uid) ? 0.5 : 1,
318
- segregate: () => Re(t.uid),
318
+ segregate: () => je(t.uid),
319
319
  isSegregated: f.value.includes(t.uid)
320
- }))), yt = p(() => ({
320
+ }))), kt = h(() => ({
321
321
  cy: "waffle-div-legend",
322
322
  backgroundColor: e.value.style.chart.legend.backgroundColor,
323
323
  color: e.value.style.chart.legend.color,
324
324
  fontSize: e.value.style.chart.legend.fontSize,
325
325
  paddingBottom: 12,
326
326
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
327
- })), A = p(() => X.value.map((t) => t.value).reduce((t, a) => t + a, 0)), ve = i(null), ce = i(null);
328
- function gt(t) {
327
+ })), S = h(() => Y.value.map((t) => t.value).reduce((t, a) => t + a, 0)), he = i(null), pe = i(null);
328
+ function xt(t) {
329
329
  const a = r.value[t];
330
330
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: a.serieIndex });
331
331
  }
332
- function mt(t) {
332
+ function Ct(t) {
333
333
  const a = r.value[t];
334
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.serieIndex }), ce.value = null, ae.value = !1, M.value = null;
334
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.serieIndex }), pe.value = null, se.value = !1, E.value = null;
335
335
  }
336
- function bt(t) {
336
+ function $t(t) {
337
337
  if (f.value.length === w.dataset.length) return;
338
338
  const a = r.value[t];
339
- ve.value = {
339
+ he.value = {
340
340
  datapoint: a,
341
341
  seriesIndex: a.absoluteIndex,
342
- series: h.value,
342
+ series: p.value,
343
343
  config: e.value
344
- }, e.value.events.datapointEnter && ce.value !== a.serieIndex && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.serieIndex }), ce.value = a.serieIndex, ae.value = !0, M.value = r.value[t].serieIndex;
344
+ }, e.value.events.datapointEnter && pe.value !== a.serieIndex && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.serieIndex }), pe.value = a.serieIndex, se.value = !0, E.value = r.value[t].serieIndex;
345
345
  const l = e.value.style.chart.tooltip.customFormat;
346
- if (qt(l) && Ht(() => l({
346
+ if (Kt(l) && Qt(() => l({
347
347
  seriesIndex: r.value[t].absoluteIndex,
348
348
  datapoint: a,
349
- series: h.value,
349
+ series: p.value,
350
350
  config: e.value
351
351
  })))
352
- oe.value = l({
352
+ ne.value = l({
353
353
  seriesIndex: r.value[t].absoluteIndex,
354
354
  datapoint: a,
355
- series: h.value,
355
+ series: p.value,
356
356
  config: e.value
357
357
  });
358
358
  else {
359
359
  let o = "";
360
- 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}" />${nt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${g.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Y(
360
+ 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}" />${dt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Q(
361
361
  e.value.style.chart.layout.labels.dataLabels.formatter,
362
362
  a.value,
363
- P({
363
+ L({
364
364
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
365
365
  v: a.value,
366
366
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -369,86 +369,86 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
369
369
  {
370
370
  datapoint: a,
371
371
  seriesIndex: r.value[t].absoluteIndex,
372
- series: h.value
372
+ series: p.value
373
373
  }
374
374
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
375
- const u = P({
376
- v: H.value ? 1 / J.value.length * 100 : a.value / A.value * 100,
375
+ const u = L({
376
+ v: X.value ? 1 / Z.value.length * 100 : a.value / S.value * 100,
377
377
  s: "%",
378
378
  r: e.value.style.chart.tooltip.roundingPercentage
379
379
  });
380
380
  e.value.style.chart.tooltip.showValue ? o += `<span>(${u})</span></div>` : o += `<b>${u}%</b></div>`;
381
381
  }
382
- oe.value = o;
382
+ ne.value = o;
383
383
  }
384
384
  }
385
- const wt = Ze, S = p(() => {
386
- const t = X.value.map((l) => ({
385
+ const It = lt, P = h(() => {
386
+ const t = Y.value.map((l) => ({
387
387
  name: l.name,
388
388
  color: l.color
389
- })), a = X.value.map((l) => l.value);
389
+ })), a = Y.value.map((l) => l.value);
390
390
  return { head: t, body: a };
391
391
  });
392
- function K(t) {
393
- return e.value.useBlurOnHover && ![null, void 0].includes(M.value) && M.value !== t ? `url(#blur_${g.value})` : "";
392
+ function ee(t) {
393
+ return e.value.useBlurOnHover && ![null, void 0].includes(E.value) && E.value !== t ? `url(#blur_${b.value})` : "";
394
394
  }
395
- function kt(t, a) {
396
- return e.value.style.chart.layout.labels.captions.show ? r.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && a.position < e.value.style.chart.layout.grid.size - 2 || r.value[t].isAbsoluteFirst && t % e.value.style.chart.layout.grid.size === 0 && r.value[t].absoluteStartIndex) : !1;
395
+ function Tt(t, a) {
396
+ return e.value.style.chart.layout.labels.captions.show ? r.value.length && !D.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && a.position < e.value.style.chart.layout.grid.size - 2 || r.value[t].isAbsoluteFirst && t % e.value.style.chart.layout.grid.size === 0 && r.value[t].absoluteStartIndex) : !1;
397
397
  }
398
- function xt(t, a = null) {
399
- const l = Y(
398
+ function _t(t, a = null) {
399
+ const l = Q(
400
400
  e.value.style.chart.layout.labels.dataLabels.formatter,
401
401
  r.value[t].value,
402
- P({
402
+ L({
403
403
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
404
404
  v: r.value[t].value,
405
405
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
406
406
  r: e.value.style.chart.layout.labels.captions.roundingValue
407
407
  }),
408
408
  { datapoint: r.value[t], position: a }
409
- ), o = P({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? jt({ source: r.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), n = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
409
+ ), o = L({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? Jt({ source: r.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), n = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
410
410
  let d = "";
411
411
  return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${l})` : e.value.style.chart.layout.labels.captions.showPercentage && !e.value.style.chart.layout.labels.captions.showValue ? d = o : !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue && (d = l), `${n}${d}`;
412
412
  }
413
- function Ee(t = null) {
414
- Pt(() => {
415
- const a = S.value.head.map((u, n) => [[
413
+ function fe(t = null) {
414
+ zt(() => {
415
+ const a = P.value.head.map((u, n) => [[
416
416
  u.name
417
- ], [S.value.body[n]], [isNaN(S.value.body[n] / A.value) ? "-" : S.value.body[n] / A.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Gt(l);
418
- t ? t(o) : Wt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
417
+ ], [P.value.body[n]], [isNaN(P.value.body[n] / S.value) ? "-" : P.value.body[n] / S.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Xt(l);
418
+ t ? t(o) : Yt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
419
419
  });
420
420
  }
421
- const Q = p(() => {
421
+ const te = h(() => {
422
422
  const t = [
423
423
  ' <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>',
424
- Y(
424
+ Q(
425
425
  e.value.style.chart.layout.labels.dataLabels.formatter,
426
- A.value,
427
- P({
426
+ S.value,
427
+ L({
428
428
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
429
- v: A.value,
429
+ v: S.value,
430
430
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
431
431
  r: e.value.table.td.roundingValue
432
432
  })
433
433
  ),
434
434
  "100%"
435
- ], a = S.value.head.map((u, n) => [
435
+ ], a = P.value.head.map((u, n) => [
436
436
  {
437
437
  color: u.color,
438
438
  name: u.name
439
439
  },
440
- Y(
440
+ Q(
441
441
  e.value.style.chart.layout.labels.dataLabels.formatter,
442
- S.value.body[n],
443
- P({
442
+ P.value.body[n],
443
+ L({
444
444
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
445
- v: S.value.body[n],
445
+ v: P.value.body[n],
446
446
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
447
447
  r: e.value.table.td.roundingValue
448
448
  })
449
449
  ),
450
- isNaN(S.value.body[n] / A.value) ? "-" : P({
451
- v: S.value.body[n] / A.value * 100,
450
+ isNaN(P.value.body[n] / S.value) ? "-" : L({
451
+ v: P.value.body[n] / S.value * 100,
452
452
  s: "%",
453
453
  r: e.value.table.td.roundingPercentage
454
454
  })
@@ -476,23 +476,23 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
476
476
  config: l,
477
477
  colNames: o
478
478
  };
479
- }), U = i(!1);
480
- function Ue(t) {
481
- U.value = t, ye.value += 1;
479
+ }), V = i(!1);
480
+ function qe(t) {
481
+ V.value = t, ke.value += 1;
482
482
  }
483
- function Ge() {
484
- C.value.showTable = !C.value.showTable;
483
+ function He() {
484
+ k.value.showTable = !k.value.showTable;
485
485
  }
486
- function We() {
487
- C.value.showTooltip = !C.value.showTooltip;
486
+ function Xe() {
487
+ k.value.showTooltip = !k.value.showTooltip;
488
488
  }
489
- const Z = i(!1);
490
- function de() {
491
- Z.value = !Z.value;
489
+ const le = i(!1);
490
+ function ye() {
491
+ le.value = !le.value;
492
492
  }
493
- async function Ct({ scale: t = 2 } = {}) {
494
- if (!L.value) return;
495
- const { width: a, height: l } = L.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: n } = await ll({ domElement: L.value, base64: !0, img: !0, scale: t });
493
+ async function At({ scale: t = 2 } = {}) {
494
+ if (!I.value) return;
495
+ const { width: a, height: l } = I.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: n } = await sl({ domElement: I.value, base64: !0, img: !0, scale: t });
496
496
  return {
497
497
  imageUri: u,
498
498
  base64: n,
@@ -502,48 +502,80 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
502
502
  aspectRatio: o
503
503
  };
504
504
  }
505
- return Qe({
506
- getData: pt,
507
- getImage: Ct,
508
- generatePdf: Fe,
509
- generateCsv: Ee,
510
- generateImage: Be,
511
- toggleTable: Ge,
512
- toggleTooltip: We,
513
- toggleAnnotator: de,
514
- toggleFullscreen: Ue
505
+ const J = h(() => {
506
+ const t = e.value.table.useDialog && !e.value.table.show, a = k.value.showTable;
507
+ return {
508
+ component: t ? vt : st,
509
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
510
+ props: t ? {
511
+ backgroundColor: e.value.table.th.backgroundColor,
512
+ color: e.value.table.th.color,
513
+ headerColor: e.value.table.th.color,
514
+ headerBg: e.value.table.th.backgroundColor,
515
+ isFullscreen: V.value,
516
+ fullscreenParent: I.value,
517
+ forcedWidth: Math.min(500, window.innerWidth * 0.8)
518
+ } : {
519
+ hideDetails: !0,
520
+ config: {
521
+ open: a,
522
+ maxHeight: 1e4,
523
+ body: {
524
+ backgroundColor: e.value.style.chart.backgroundColor,
525
+ color: e.value.style.chart.color
526
+ },
527
+ head: {
528
+ backgroundColor: e.value.style.chart.backgroundColor,
529
+ color: e.value.style.chart.color
530
+ }
531
+ }
532
+ }
533
+ };
534
+ });
535
+ return K(() => k.value.showTable, (t) => {
536
+ e.value.table.show || (t && e.value.table.useDialog && H.value ? H.value.open() : "close" in H.value && H.value.close());
537
+ }), tt({
538
+ getData: mt,
539
+ getImage: At,
540
+ generatePdf: Ve,
541
+ generateCsv: fe,
542
+ generateImage: Me,
543
+ toggleTable: He,
544
+ toggleTooltip: Xe,
545
+ toggleAnnotator: ye,
546
+ toggleFullscreen: qe
515
547
  }), (t, a) => (s(), v("div", {
516
- class: qe(`vue-ui-waffle ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
548
+ class: Je(`vue-ui-waffle ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
517
549
  ref_key: "waffleChart",
518
- ref: L,
519
- id: `vue-ui-waffle_${g.value}`,
520
- style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
521
- onMouseenter: a[2] || (a[2] = () => c(_e)(!0)),
522
- onMouseleave: a[3] || (a[3] = () => c(_e)(!1))
550
+ ref: I,
551
+ id: `vue-ui-waffle_${b.value}`,
552
+ style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
553
+ onMouseenter: a[4] || (a[4] = () => c(Le)(!0)),
554
+ onMouseleave: a[5] || (a[5] = () => c(Le)(!1))
523
555
  }, [
524
- e.value.userOptions.buttons.annotator ? (s(), F(c(tt), {
556
+ e.value.userOptions.buttons.annotator ? (s(), F(c(rt), {
525
557
  key: 0,
526
- svgRef: c(Ae),
558
+ svgRef: c(Be),
527
559
  backgroundColor: e.value.style.chart.backgroundColor,
528
560
  color: e.value.style.chart.color,
529
- active: Z.value,
530
- onClose: de
531
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
532
- it.value ? (s(), v("div", {
561
+ active: le.value,
562
+ onClose: ye
563
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
564
+ pt.value ? (s(), v("div", {
533
565
  key: 1,
534
566
  ref_key: "noTitle",
535
- ref: we,
567
+ ref: Ie,
536
568
  class: "vue-data-ui-no-title-space",
537
569
  style: "height:36px; width: 100%;background:transparent"
538
- }, null, 512)) : b("", !0),
570
+ }, null, 512)) : m("", !0),
539
571
  e.value.style.chart.title.text ? (s(), v("div", {
540
572
  key: 2,
541
573
  ref_key: "chartTitle",
542
- ref: ge,
574
+ ref: xe,
543
575
  style: "width:100%;background:transparent;padding-bottom:12px"
544
576
  }, [
545
- (s(), F(Zt, {
546
- key: `title_${ke.value}`,
577
+ (s(), F(rl, {
578
+ key: `title_${Te.value}`,
547
579
  config: {
548
580
  title: {
549
581
  cy: "waffle-title",
@@ -555,138 +587,138 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
555
587
  }
556
588
  }
557
589
  }, null, 8, ["config"]))
558
- ], 512)) : b("", !0),
590
+ ], 512)) : m("", !0),
559
591
  x("div", {
560
- id: `legend-top-${g.value}`
561
- }, null, 8, nl),
562
- e.value.userOptions.show && le.value && (c(Te) || c(se)) ? (s(), F(c(ot), {
592
+ id: `legend-top-${b.value}`
593
+ }, null, 8, dl),
594
+ e.value.userOptions.show && ue.value && (c(Oe) || c(ie)) ? (s(), F(c(nt), {
563
595
  ref_key: "details",
564
- ref: rt,
565
- key: `user_options_${ye.value}`,
596
+ ref: ht,
597
+ key: `user_options_${ke.value}`,
566
598
  backgroundColor: e.value.style.chart.backgroundColor,
567
599
  color: e.value.style.chart.color,
568
- isPrinting: c(Le),
569
- isImaging: c(Oe),
570
- uid: g.value,
600
+ isPrinting: c(Ne),
601
+ isImaging: c(De),
602
+ uid: b.value,
571
603
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
572
604
  hasPdf: e.value.userOptions.buttons.pdf,
573
605
  hasImg: e.value.userOptions.buttons.img,
574
606
  hasXls: e.value.userOptions.buttons.csv,
575
607
  hasTable: e.value.userOptions.buttons.table,
576
608
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
577
- isFullscreen: U.value,
578
- isTooltip: C.value.showTooltip,
609
+ isFullscreen: V.value,
610
+ isTooltip: k.value.showTooltip,
579
611
  titles: { ...e.value.userOptions.buttonTitles },
580
- chartElement: L.value,
612
+ chartElement: I.value,
581
613
  position: e.value.userOptions.position,
582
614
  hasAnnotator: e.value.userOptions.buttons.annotator,
583
- isAnnotation: Z.value,
615
+ isAnnotation: le.value,
584
616
  callbacks: e.value.userOptions.callbacks,
585
617
  printScale: e.value.userOptions.print.scale,
586
- onToggleFullscreen: Ue,
587
- onGeneratePdf: c(Fe),
588
- onGenerateCsv: Ee,
589
- onGenerateImage: c(Be),
590
- onToggleTable: Ge,
591
- onToggleTooltip: We,
592
- onToggleAnnotator: de,
593
- style: te({
594
- visibility: c(Te) ? c(se) ? "visible" : "hidden" : "visible"
618
+ onToggleFullscreen: qe,
619
+ onGeneratePdf: c(Ve),
620
+ onGenerateCsv: fe,
621
+ onGenerateImage: c(Me),
622
+ onToggleTable: He,
623
+ onToggleTooltip: Xe,
624
+ onToggleAnnotator: ye,
625
+ style: ae({
626
+ visibility: c(Oe) ? c(ie) ? "visible" : "hidden" : "visible"
595
627
  })
596
- }, He({ _: 2 }, [
628
+ }, be({ _: 2 }, [
597
629
  t.$slots.menuIcon ? {
598
630
  name: "menuIcon",
599
- fn: m(({ isOpen: l, color: o }) => [
600
- y(t.$slots, "menuIcon", W(j({ isOpen: l, color: o })), void 0, !0)
631
+ fn: y(({ isOpen: l, color: o }) => [
632
+ g(t.$slots, "menuIcon", j(q({ isOpen: l, color: o })), void 0, !0)
601
633
  ]),
602
634
  key: "0"
603
635
  } : void 0,
604
636
  t.$slots.optionTooltip ? {
605
637
  name: "optionTooltip",
606
- fn: m(() => [
607
- y(t.$slots, "optionTooltip", {}, void 0, !0)
638
+ fn: y(() => [
639
+ g(t.$slots, "optionTooltip", {}, void 0, !0)
608
640
  ]),
609
641
  key: "1"
610
642
  } : void 0,
611
643
  t.$slots.optionPdf ? {
612
644
  name: "optionPdf",
613
- fn: m(() => [
614
- y(t.$slots, "optionPdf", {}, void 0, !0)
645
+ fn: y(() => [
646
+ g(t.$slots, "optionPdf", {}, void 0, !0)
615
647
  ]),
616
648
  key: "2"
617
649
  } : void 0,
618
650
  t.$slots.optionCsv ? {
619
651
  name: "optionCsv",
620
- fn: m(() => [
621
- y(t.$slots, "optionCsv", {}, void 0, !0)
652
+ fn: y(() => [
653
+ g(t.$slots, "optionCsv", {}, void 0, !0)
622
654
  ]),
623
655
  key: "3"
624
656
  } : void 0,
625
657
  t.$slots.optionImg ? {
626
658
  name: "optionImg",
627
- fn: m(() => [
628
- y(t.$slots, "optionImg", {}, void 0, !0)
659
+ fn: y(() => [
660
+ g(t.$slots, "optionImg", {}, void 0, !0)
629
661
  ]),
630
662
  key: "4"
631
663
  } : void 0,
632
664
  t.$slots.optionTable ? {
633
665
  name: "optionTable",
634
- fn: m(() => [
635
- y(t.$slots, "optionTable", {}, void 0, !0)
666
+ fn: y(() => [
667
+ g(t.$slots, "optionTable", {}, void 0, !0)
636
668
  ]),
637
669
  key: "5"
638
670
  } : void 0,
639
671
  t.$slots.optionFullscreen ? {
640
672
  name: "optionFullscreen",
641
- fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
642
- y(t.$slots, "optionFullscreen", W(j({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
673
+ fn: y(({ toggleFullscreen: l, isFullscreen: o }) => [
674
+ g(t.$slots, "optionFullscreen", j(q({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
643
675
  ]),
644
676
  key: "6"
645
677
  } : void 0,
646
678
  t.$slots.optionAnnotator ? {
647
679
  name: "optionAnnotator",
648
- fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
649
- y(t.$slots, "optionAnnotator", W(j({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
680
+ fn: y(({ toggleAnnotator: l, isAnnotator: o }) => [
681
+ g(t.$slots, "optionAnnotator", j(q({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
650
682
  ]),
651
683
  key: "7"
652
684
  } : void 0
653
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
685
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
654
686
  (s(), v("svg", {
655
687
  ref_key: "svgRef",
656
- ref: Ae,
657
- xmlns: c(Mt),
658
- class: qe({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
659
- viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
660
- style: te(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
688
+ ref: Be,
689
+ xmlns: c(Wt),
690
+ class: Je({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
691
+ viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
692
+ style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
661
693
  }, [
662
- pe(c(ut)),
694
+ oe(c(it)),
663
695
  x("defs", null, [
664
- (s(!0), v($, null, B(r.value, (l, o) => (s(), v("radialGradient", {
696
+ (s(!0), v($, null, z(r.value, (l, o) => (s(), v("radialGradient", {
665
697
  cx: "50%",
666
698
  cy: "50%",
667
699
  r: "50%",
668
700
  fx: "50%",
669
701
  fy: "50%",
670
- id: `gradient_${g.value}_${o}`
702
+ id: `gradient_${b.value}_${o}`
671
703
  }, [
672
704
  x("stop", {
673
705
  offset: "0%",
674
- "stop-color": c(Dt)(c(Rt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
675
- }, null, 8, vl),
706
+ "stop-color": c(Gt)(c(jt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
707
+ }, null, 8, fl),
676
708
  x("stop", {
677
709
  offset: "100%",
678
710
  "stop-color": l.color
679
- }, null, 8, cl)
680
- ], 8, il))), 256))
711
+ }, null, 8, yl)
712
+ ], 8, pl))), 256))
681
713
  ]),
682
714
  x("defs", null, [
683
715
  x("filter", {
684
- id: `blur_${g.value}`,
716
+ id: `blur_${b.value}`,
685
717
  x: "-50%",
686
718
  y: "-50%",
687
719
  width: "200%",
688
720
  height: "200%"
689
- }, [...a[4] || (a[4] = [
721
+ }, [...a[6] || (a[6] = [
690
722
  x("feGaussianBlur", {
691
723
  in: "SourceGraphic",
692
724
  stdDeviation: 2
@@ -695,159 +727,159 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
695
727
  type: "saturate",
696
728
  values: "0"
697
729
  }, null, -1)
698
- ])], 8, dl)
730
+ ])], 8, gl)
699
731
  ]),
700
- e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 }, B(R.value, (l, o) => (s(), v("foreignObject", {
732
+ e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 }, z(W.value, (l, o) => (s(), v("foreignObject", {
701
733
  x: l.x,
702
734
  y: l.y,
703
- height: T.value <= 0 ? 1e-4 : T.value,
735
+ height: A.value <= 0 ? 1e-4 : A.value,
704
736
  width: _.value <= 0 ? 1e-4 : _.value,
705
737
  class: "vue-ui-waffle-custom-cell-foreignObject"
706
738
  }, [
707
- y(t.$slots, "cell", Xe({ ref_for: !0 }, { cell: { ...l, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(M.value) ? !0 : r.value[o].serieIndex === M.value }), void 0, !0)
708
- ], 8, hl))), 256)) : b("", !0),
739
+ g(t.$slots, "cell", me({ ref_for: !0 }, { cell: { ...l, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(E.value) ? !0 : r.value[o].serieIndex === E.value }), void 0, !0)
740
+ ], 8, bl))), 256)) : m("", !0),
709
741
  !r.value.length && !e.value.useCustomCells ? (s(), v("rect", {
710
742
  key: 1,
711
743
  x: 12,
712
744
  y: 12,
713
- height: I.value.height - 24,
714
- width: I.value.width - 24,
745
+ height: T.value.height - 24,
746
+ width: T.value.width - 24,
715
747
  rx: 3,
716
748
  fill: "none",
717
749
  stroke: "black"
718
- }, null, 8, pl)) : r.value.length && !e.value.useCustomCells ? (s(), v($, { key: 2 }, [
719
- t.$slots.pattern ? (s(), v("g", fl, [
720
- (s(!0), v($, null, B(ie.value, (l) => (s(), v("defs", null, [
721
- y(t.$slots, "pattern", Xe({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${g.value}_${l.absoluteIndex}` }), void 0, !0)
750
+ }, null, 8, ml)) : r.value.length && !e.value.useCustomCells ? (s(), v($, { key: 2 }, [
751
+ t.$slots.pattern ? (s(), v("g", wl, [
752
+ (s(!0), v($, null, z(de.value, (l) => (s(), v("defs", null, [
753
+ g(t.$slots, "pattern", me({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${b.value}_${l.absoluteIndex}` }), void 0, !0)
722
754
  ]))), 256))
723
- ])) : b("", !0),
724
- (s(!0), v($, null, B(R.value, (l, o) => (s(), v("rect", {
755
+ ])) : m("", !0),
756
+ (s(!0), v($, null, z(W.value, (l, o) => (s(), v("rect", {
725
757
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
726
758
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
727
759
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
728
- height: T.value <= 0 ? 1e-4 : T.value,
760
+ height: A.value <= 0 ? 1e-4 : A.value,
729
761
  width: _.value <= 0 ? 1e-4 : _.value,
730
762
  fill: "white",
731
763
  stroke: e.value.style.chart.layout.rect.stroke,
732
764
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
733
- filter: K(r.value[o].serieIndex)
734
- }, null, 8, yl))), 256)),
735
- (s(!0), v($, null, B(R.value, (l, o) => (s(), v("rect", {
765
+ filter: ee(r.value[o].serieIndex)
766
+ }, null, 8, kl))), 256)),
767
+ (s(!0), v($, null, z(W.value, (l, o) => (s(), v("rect", {
736
768
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
737
769
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
738
770
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
739
- height: T.value <= 0 ? 1e-4 : T.value,
771
+ height: A.value <= 0 ? 1e-4 : A.value,
740
772
  width: _.value <= 0 ? 1e-4 : _.value,
741
- fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${g.value}_${o})` : r.value[o].color,
773
+ fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${b.value}_${o})` : r.value[o].color,
742
774
  stroke: e.value.style.chart.layout.rect.stroke,
743
775
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
744
- filter: K(r.value[o].serieIndex)
745
- }, null, 8, gl))), 256)),
746
- t.$slots.pattern ? (s(), v("g", ml, [
747
- (s(!0), v($, null, B(R.value, (l, o) => (s(), v("rect", {
776
+ filter: ee(r.value[o].serieIndex)
777
+ }, null, 8, xl))), 256)),
778
+ t.$slots.pattern ? (s(), v("g", Cl, [
779
+ (s(!0), v($, null, z(W.value, (l, o) => (s(), v("rect", {
748
780
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
749
781
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
750
782
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
751
- height: T.value <= 0 ? 1e-4 : T.value,
783
+ height: A.value <= 0 ? 1e-4 : A.value,
752
784
  width: _.value <= 0 ? 1e-4 : _.value,
753
- fill: `url(#pattern_${g.value}_${r.value[o].absoluteIndex})`,
785
+ fill: `url(#pattern_${b.value}_${r.value[o].absoluteIndex})`,
754
786
  stroke: "none",
755
- filter: K(r.value[o].serieIndex)
756
- }, null, 8, bl))), 256))
757
- ])) : b("", !0)
758
- ], 64)) : b("", !0),
759
- (s(!0), v($, null, B(R.value, (l, o) => (s(), v($, null, [
760
- kt(o, l) ? (s(), v("text", {
787
+ filter: ee(r.value[o].serieIndex)
788
+ }, null, 8, $l))), 256))
789
+ ])) : m("", !0)
790
+ ], 64)) : m("", !0),
791
+ (s(!0), v($, null, z(W.value, (l, o) => (s(), v($, null, [
792
+ Tt(o, l) ? (s(), v("text", {
761
793
  key: `datalabel_${o}`,
762
- textContent: q(xt(o, l)),
794
+ textContent: M(_t(o, l)),
763
795
  x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
764
- y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ne.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
796
+ y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ee.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
765
797
  "font-size": e.value.style.chart.layout.labels.captions.fontSize,
766
- fill: c(Et)(r.value[o].color),
767
- filter: K(r.value[o].serieIndex)
768
- }, null, 8, wl)) : b("", !0)
798
+ fill: c(qt)(r.value[o].color),
799
+ filter: ee(r.value[o].serieIndex)
800
+ }, null, 8, Il)) : m("", !0)
769
801
  ], 64))), 256)),
770
- (s(!0), v($, null, B(R.value, (l, o) => (s(), v("rect", {
802
+ (s(!0), v($, null, z(W.value, (l, o) => (s(), v("rect", {
771
803
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
772
804
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
773
- height: Ne.value,
774
- width: vt.value,
805
+ height: Ee.value,
806
+ width: ft.value,
775
807
  fill: "transparent",
776
808
  stroke: "none",
777
- onMouseover: (u) => bt(o),
778
- onMouseleave: (u) => mt(o),
779
- onClick: (u) => gt(o)
780
- }, null, 40, kl))), 256)),
781
- y(t.$slots, "svg", { svg: z.value }, void 0, !0)
782
- ], 14, rl)),
783
- t.$slots.watermark ? (s(), v("div", xl, [
784
- y(t.$slots, "watermark", W(j({ isPrinting: c(Le) || c(Oe) })), void 0, !0)
785
- ])) : b("", !0),
809
+ onMouseover: (u) => $t(o),
810
+ onMouseleave: (u) => Ct(o),
811
+ onClick: (u) => xt(o)
812
+ }, null, 40, Tl))), 256)),
813
+ g(t.$slots, "svg", { svg: N.value }, void 0, !0)
814
+ ], 14, hl)),
815
+ t.$slots.watermark ? (s(), v("div", _l, [
816
+ g(t.$slots, "watermark", j(q({ isPrinting: c(Ne) || c(De) })), void 0, !0)
817
+ ])) : m("", !0),
786
818
  x("div", {
787
- id: `legend-bottom-${g.value}`
788
- }, null, 8, Cl),
789
- $e.value ? (s(), F(At, {
819
+ id: `legend-bottom-${b.value}`
820
+ }, null, 8, Al),
821
+ Se.value ? (s(), F(Bt, {
790
822
  key: 5,
791
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${g.value}` : `#legend-bottom-${g.value}`
823
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
792
824
  }, [
793
825
  x("div", {
794
826
  ref_key: "chartLegend",
795
- ref: me
827
+ ref: Ce
796
828
  }, [
797
- e.value.style.chart.legend.show ? (s(), F(el, {
798
- key: `legend_${Ce.value}`,
799
- legendSet: E.value,
800
- config: yt.value,
801
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => Re(l.uid))
802
- }, He({
803
- item: m(({ legend: l }) => [
829
+ e.value.style.chart.legend.show ? (s(), F(il, {
830
+ key: `legend_${Ae.value}`,
831
+ legendSet: G.value,
832
+ config: kt.value,
833
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => je(l.uid))
834
+ }, be({
835
+ item: y(({ legend: l }) => [
804
836
  x("div", {
805
837
  onClick: (o) => l.segregate(),
806
- style: te(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
807
- }, q(l.name) + q(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + q(e.value.style.chart.legend.showValue ? c(Y)(
838
+ style: ae(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
839
+ }, M(l.name) + M(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + M(e.value.style.chart.legend.showValue ? c(Q)(
808
840
  e.value.style.chart.layout.labels.dataLabels.formatter,
809
841
  l.value,
810
- c(P)({
842
+ c(L)({
811
843
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
812
844
  v: l.value,
813
845
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
814
846
  r: e.value.style.chart.legend.roundingValue,
815
- isAnimating: N.value
847
+ isAnimating: D.value
816
848
  }),
817
849
  { datapoint: l }
818
- ) : "") + " " + q(e.value.style.chart.legend.showPercentage ? f.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / A.value) ? "-" : c(P)({ v: l.value / A.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, $l)
850
+ ) : "") + " " + M(e.value.style.chart.legend.showPercentage ? f.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / S.value) ? "-" : c(L)({ v: l.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: D.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Sl)
819
851
  ]),
820
852
  _: 2
821
853
  }, [
822
854
  t.$slots.pattern ? {
823
855
  name: "legend-pattern",
824
- fn: m(({ legend: l, index: o }) => [
825
- pe(tl, {
856
+ fn: y(({ legend: l, index: o }) => [
857
+ oe(nl, {
826
858
  shape: l.shape,
827
859
  radius: 30,
828
860
  stroke: "none",
829
861
  plot: { x: 30, y: 30 },
830
- fill: `url(#pattern_${g.value}_${o})`
862
+ fill: `url(#pattern_${b.value}_${o})`
831
863
  }, null, 8, ["shape", "fill"])
832
864
  ]),
833
865
  key: "0"
834
866
  } : void 0
835
- ]), 1032, ["legendSet", "config"])) : y(t.$slots, "legend", {
867
+ ]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
836
868
  key: 1,
837
- legend: E.value
869
+ legend: G.value
838
870
  }, void 0, !0)
839
871
  ], 512)
840
- ], 8, ["to"])) : b("", !0),
872
+ ], 8, ["to"])) : m("", !0),
841
873
  t.$slots.source ? (s(), v("div", {
842
874
  key: 6,
843
875
  ref_key: "source",
844
- ref: be,
876
+ ref: $e,
845
877
  dir: "auto"
846
878
  }, [
847
- y(t.$slots, "source", {}, void 0, !0)
848
- ], 512)) : b("", !0),
849
- pe(c(at), {
850
- show: C.value.showTooltip && ae.value && f.value.length < w.dataset.length,
879
+ g(t.$slots, "source", {}, void 0, !0)
880
+ ], 512)) : m("", !0),
881
+ oe(c(at), {
882
+ show: k.value.showTooltip && se.value && f.value.length < w.dataset.length,
851
883
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
852
884
  color: e.value.style.chart.tooltip.color,
853
885
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -856,66 +888,80 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
856
888
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
857
889
  position: e.value.style.chart.tooltip.position,
858
890
  offsetY: e.value.style.chart.tooltip.offsetY,
859
- parent: L.value,
860
- content: oe.value,
891
+ parent: I.value,
892
+ content: ne.value,
861
893
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
862
894
  fontSize: e.value.style.chart.tooltip.fontSize,
863
- isFullscreen: U.value,
895
+ isFullscreen: V.value,
864
896
  smooth: e.value.style.chart.tooltip.smooth,
865
897
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
866
898
  }, {
867
- "tooltip-before": m(() => [
868
- y(t.$slots, "tooltip-before", W(j({ ...ve.value })), void 0, !0)
899
+ "tooltip-before": y(() => [
900
+ g(t.$slots, "tooltip-before", j(q({ ...he.value })), void 0, !0)
869
901
  ]),
870
- "tooltip-after": m(() => [
871
- y(t.$slots, "tooltip-after", W(j({ ...ve.value })), void 0, !0)
902
+ "tooltip-after": y(() => [
903
+ g(t.$slots, "tooltip-after", j(q({ ...he.value })), void 0, !0)
872
904
  ]),
873
905
  _: 3
874
906
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter"]),
875
- le.value ? (s(), F(c(lt), {
876
- key: 7,
877
- hideDetails: "",
878
- config: {
879
- open: C.value.showTable,
880
- maxHeight: 1e4,
881
- body: {
882
- backgroundColor: e.value.style.chart.backgroundColor,
883
- color: e.value.style.chart.color
884
- },
885
- head: {
886
- backgroundColor: e.value.style.chart.backgroundColor,
887
- color: e.value.style.chart.color
888
- }
889
- }
890
- }, {
891
- content: m(() => [
892
- (s(), F(c(et), {
893
- key: `table_${xe.value}`,
894
- colNames: Q.value.colNames,
895
- head: Q.value.head,
896
- body: Q.value.body,
897
- config: Q.value.config,
898
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
899
- onClose: a[1] || (a[1] = (l) => C.value.showTable = !1)
907
+ ue.value ? (s(), F(Ft(J.value.component), me({ key: 7 }, J.value.props, {
908
+ ref_key: "tableUnit",
909
+ ref: H,
910
+ onClose: a[3] || (a[3] = (l) => k.value.showTable = !1)
911
+ }), be({
912
+ content: y(() => [
913
+ (s(), F(c(ut), {
914
+ key: `table_${_e.value}`,
915
+ colNames: te.value.colNames,
916
+ head: te.value.head,
917
+ body: te.value.body,
918
+ config: te.value.config,
919
+ title: e.value.table.useDialog ? "" : J.value.title,
920
+ withCloseButton: !e.value.table.useDialog,
921
+ onClose: a[2] || (a[2] = (l) => k.value.showTable = !1)
900
922
  }, {
901
- th: m(({ th: l }) => [
923
+ th: y(({ th: l }) => [
902
924
  x("div", {
903
925
  innerHTML: l,
904
926
  style: { display: "flex", "align-items": "center" }
905
- }, null, 8, Il)
927
+ }, null, 8, Pl)
906
928
  ]),
907
- td: m(({ td: l }) => [
908
- St(q(l.name || l), 1)
929
+ td: y(({ td: l }) => [
930
+ Ke(M(l.name || l), 1)
909
931
  ]),
910
932
  _: 1
911
- }, 8, ["colNames", "head", "body", "config", "title"]))
933
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
912
934
  ]),
913
- _: 1
914
- }, 8, ["config"])) : b("", !0),
915
- c(Ie) ? (s(), F(ol, { key: 8 })) : b("", !0)
916
- ], 46, sl));
935
+ _: 2
936
+ }, [
937
+ e.value.table.useDialog ? {
938
+ name: "title",
939
+ fn: y(() => [
940
+ Ke(M(J.value.title), 1)
941
+ ]),
942
+ key: "0"
943
+ } : void 0,
944
+ e.value.table.useDialog ? {
945
+ name: "actions",
946
+ fn: y(() => [
947
+ x("button", {
948
+ tabindex: "0",
949
+ class: "vue-ui-user-options-button",
950
+ onClick: a[1] || (a[1] = (l) => fe(e.value.userOptions.callbacks.csv))
951
+ }, [
952
+ oe(c(ot), {
953
+ name: "excel",
954
+ stroke: J.value.props.color
955
+ }, null, 8, ["stroke"])
956
+ ])
957
+ ]),
958
+ key: "1"
959
+ } : void 0
960
+ ]), 1040)) : m("", !0),
961
+ c(Pe) ? (s(), F(ll, { key: 8 })) : m("", !0)
962
+ ], 46, cl));
917
963
  }
918
- }, Rl = /* @__PURE__ */ ul(_l, [["__scopeId", "data-v-3c406d34"]]);
964
+ }, jl = /* @__PURE__ */ vl(Ll, [["__scopeId", "data-v-4f453350"]]);
919
965
  export {
920
- Rl as default
966
+ jl as default
921
967
  };