vue-data-ui 3.4.9 → 3.5.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 (151) hide show
  1. package/README.md +114 -37
  2. package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
  3. package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
  4. package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-accordion.js +1 -1
  9. package/dist/components/vue-ui-age-pyramid.js +1 -1
  10. package/dist/components/vue-ui-annotator.js +1 -1
  11. package/dist/components/vue-ui-bullet.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +17 -8
  72. package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
  73. package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
  79. package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
  80. package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
  82. package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
  83. package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
  86. package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
  88. package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
  89. package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
  90. package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
  91. package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
  92. package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
  94. package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
  95. package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
  96. package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
  97. package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
  100. package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
  103. package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
  104. package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
  105. package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
  106. package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
  107. package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
  111. package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
  112. package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
  113. package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
  119. package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
  120. package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
  121. package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
  123. package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
  126. package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
  127. package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
  128. package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
  129. package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
  130. package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
  131. package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
  132. package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
  133. package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
  134. package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
  135. package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
  136. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
  140. package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
  141. package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
  142. package/dist/vue-ui-onion-DTY2p87s.js +0 -873
  143. package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
  144. package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
  145. package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
  146. package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
  147. package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
  148. package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
  149. package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
  150. package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
  151. package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
@@ -1,22 +1,22 @@
1
- import { defineAsyncComponent as F, useSlots as zt, computed as c, ref as i, toRefs as Vt, watch as J, shallowRef as Ke, onMounted as Mt, onBeforeUnmount as Rt, createElementBlock as v, openBlock as n, unref as h, normalizeStyle as le, normalizeClass as Ze, createBlock as B, createCommentVNode as m, createElementVNode as k, createVNode as ae, createSlots as we, withCtx as g, renderSlot as y, normalizeProps as G, guardReactiveProps as W, Fragment as $, renderList as D, mergeProps as ke, toDisplayString as oe, Teleport as Et, resolveDynamicComponent as Ut, createTextVNode as et, nextTick as Gt } from "vue";
2
- import { c as Wt, t as Ht, b as jt, p as M, o as tt, f as Ce, g as qt, e as Xt, a as Q, d as P, X as Yt, s as Jt, i as Qt, J as Kt, h as Zt, P as el, Q as tl, I as ll, G as al, H as ol } from "./lib-C_mNZmhD.js";
3
- import { t as ul, u as sl } from "./useResponsive-DfdjqQps.js";
4
- import { u as nl, a as lt } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as rl, B as il } from "./BaseScanner-BgWxam9d.js";
6
- import { u as vl } from "./usePrinter-DTzqpYKF.js";
7
- import { u as cl } from "./useSvgExport-DrjCWun4.js";
8
- import { u as dl } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as hl } from "./useChartAccessibility-9icAAmYg.js";
10
- import pl from "./img-BecE5qXd.js";
11
- import { _ as fl } from "./Shape-CNXKB8O0.js";
12
- import gl from "./Title-l36lOBMx.js";
13
- import { t as yl } from "./themes-AUNCOb2G.js";
14
- import bl from "./Legend-G6GMcdAc.js";
15
- import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["stop-color"], Il = ["stop-color"], Tl = ["id"], _l = ["x", "y", "height", "width"], Sl = ["height", "width"], Al = { key: 0 }, Ol = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Pl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Ll = { key: 1 }, Fl = ["rx", "x", "y", "height", "width", "fill", "filter"], Bl = ["textContent", "x", "y", "font-size", "fill", "filter"], Dl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Nl = {
1
+ import { defineAsyncComponent as D, useSlots as Rt, computed as c, ref as i, toRefs as Ut, watch as J, shallowRef as et, onMounted as Et, onBeforeUnmount as Wt, createElementBlock as v, openBlock as s, unref as h, normalizeStyle as ae, normalizeClass as tt, createBlock as V, createCommentVNode as m, createElementVNode as k, createVNode as oe, withCtx as f, renderSlot as p, normalizeProps as x, guardReactiveProps as T, createSlots as Ce, Fragment as I, renderList as N, mergeProps as $e, toDisplayString as ue, Teleport as Gt, resolveDynamicComponent as Ht, createTextVNode as lt, nextTick as jt } from "vue";
2
+ import { c as qt, t as Xt, b as Yt, p as U, o as at, f as xe, g as Jt, e as Qt, a as Q, d as F, X as Kt, s as Zt, i as el, J as tl, h as ll, P as al, Q as ol, I as ul, G as nl, H as sl } from "./lib-C_mNZmhD.js";
3
+ import { t as rl, u as il } from "./useResponsive-DfdjqQps.js";
4
+ import { u as vl, a as ot } from "./useNestedProp-DjGXw6S9.js";
5
+ import { u as cl, B as dl } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as hl } from "./usePrinter-DTzqpYKF.js";
7
+ import { u as fl } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as gl } from "./useChartAccessibility-9icAAmYg.js";
10
+ import yl from "./img-BecE5qXd.js";
11
+ import { _ as bl } from "./Shape-CNXKB8O0.js";
12
+ import ml from "./Title-isbiM8i8.js";
13
+ import { t as wl } from "./themes-AUNCOb2G.js";
14
+ import kl from "./Legend-G6GMcdAc.js";
15
+ import { _ as Cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["stop-color"], _l = ["stop-color"], Al = ["id"], Ol = ["x", "y", "height", "width"], Pl = ["height", "width"], Ll = { key: 0 }, Fl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Bl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Dl = { key: 1 }, Vl = ["rx", "x", "y", "height", "width", "fill", "filter"], Nl = ["textContent", "x", "y", "font-size", "fill", "filter"], zl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Ml = {
17
17
  key: 4,
18
18
  class: "vue-data-ui-watermark"
19
- }, zl = ["id"], Vl = ["onClick"], Ml = ["innerHTML"], Rl = {
19
+ }, Rl = ["id"], Ul = ["onClick"], El = ["innerHTML"], Wl = {
20
20
  __name: "vue-ui-waffle",
21
21
  props: {
22
22
  config: {
@@ -33,14 +33,14 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
33
33
  }
34
34
  },
35
35
  emits: ["selectLegend"],
36
- setup(at, { expose: ot, emit: ut }) {
37
- const st = F(() => import("./Tooltip-oWCO1HKy.js")), nt = F(() => import("./BaseIcon-BmMbm4d0.js")), rt = F(() => import("./DataTable-BT7VF2ua.js")), it = F(() => import("./vue-ui-accordion-CZ0thhxa.js")), vt = F(() => import("./UserOptions-CGnQt6Fd.js")), ct = F(() => import("./PenAndPaper-DSvu9dwa.js")), dt = F(() => import("./PackageVersion-CTUqGqWV.js")), ht = F(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_waffle: pt } = nl(), w = at, ft = zt(), ue = c(() => !!w.dataset && w.dataset.length), b = i(Wt()), se = i(!1), ne = i(""), R = i(null), xe = i(0), I = i(null), $e = i(null), Ie = i(null), Te = i(null), _e = i(null), Se = i(0), Ae = i(0), Oe = i(0), Pe = i(!1), H = i(null), re = i(null), e = i(de()), { loading: Le, FINAL_DATASET: K, manualLoading: ie } = rl({
38
- ...Vt(w),
36
+ setup(ut, { expose: nt, emit: st }) {
37
+ const rt = D(() => import("./Tooltip-oWCO1HKy.js")), it = D(() => import("./BaseIcon-BmMbm4d0.js")), vt = D(() => import("./DataTable-BT7VF2ua.js")), ct = D(() => import("./vue-ui-accordion-CqhVCfc2.js")), dt = D(() => import("./UserOptions-CGnQt6Fd.js")), ht = D(() => import("./PenAndPaper-SZQIAgkg.js")), ft = D(() => import("./PackageVersion-DQvyATVa.js")), pt = D(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_waffle: gt } = vl(), w = ut, yt = Rt(), ne = c(() => !!w.dataset && w.dataset.length), b = i(qt()), se = i(!1), re = i(""), E = i(null), Te = i(0), S = i(null), Ie = i(null), Se = i(null), _e = i(null), Ae = i(null), Oe = i(0), Pe = i(0), Le = i(0), Fe = i(!1), H = i(null), ie = i(null), e = i(he()), { loading: Be, FINAL_DATASET: K, manualLoading: ve } = cl({
38
+ ...Ut(w),
39
39
  FINAL_CONFIG: e,
40
- prepareConfig: de,
40
+ prepareConfig: he,
41
41
  callback: () => {
42
42
  Promise.resolve().then(async () => {
43
- p.value = he();
43
+ g.value = fe();
44
44
  });
45
45
  },
46
46
  skeletonDataset: [
@@ -60,7 +60,7 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
60
60
  color: "#CACACA"
61
61
  }
62
62
  ],
63
- skeletonConfig: Ht({
63
+ skeletonConfig: Xt({
64
64
  defaultConfig: e.value,
65
65
  userConfig: {
66
66
  useCustomCells: !1,
@@ -86,68 +86,68 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
86
86
  }
87
87
  }
88
88
  })
89
- }), { userOptionsVisible: ve, setUserOptionsVisibility: Fe, keepUserOptionState: Be } = dl({ config: e.value }), { svgRef: ce } = hl({ config: e.value.style.chart.title });
90
- function de() {
91
- const t = lt({
89
+ }), { userOptionsVisible: ce, setUserOptionsVisibility: De, keepUserOptionState: Ve } = pl({ config: e.value }), { svgRef: de } = gl({ config: e.value.style.chart.title });
90
+ function he() {
91
+ const t = ot({
92
92
  userConfig: w.config,
93
- defaultConfig: pt
93
+ defaultConfig: gt
94
94
  });
95
95
  return t.theme ? {
96
- ...lt({
97
- userConfig: yl.vue_ui_waffle[t.theme] || w.config,
96
+ ...ot({
97
+ userConfig: wl.vue_ui_waffle[t.theme] || w.config,
98
98
  defaultConfig: t
99
99
  }),
100
- customPalette: jt[t.theme] || M
100
+ customPalette: Yt[t.theme] || U
101
101
  } : t;
102
102
  }
103
103
  J(() => w.config, (t) => {
104
- Le.value || (e.value = de()), ve.value = !e.value.userOptions.showOnChartHover, Ne(), Se.value += 1, Ae.value += 1, Oe.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
104
+ Be.value || (e.value = he()), ce.value = !e.value.userOptions.showOnChartHover, ze(), Oe.value += 1, Pe.value += 1, Le.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
105
105
  }, { deep: !0 });
106
- const L = Ke(null), E = Ke(null), De = c(() => !!e.value.debug);
107
- function Ne() {
108
- if (tt(w.dataset) ? (Ce({
106
+ const B = et(null), W = et(null), Ne = c(() => !!e.value.debug);
107
+ function ze() {
108
+ if (at(w.dataset) ? (xe({
109
109
  componentName: "VueUiWaffle",
110
110
  type: "dataset",
111
- debug: De.value
112
- }), ue.value = !1, ie.value = !0) : w.dataset.forEach((t, l) => {
113
- qt({
111
+ debug: Ne.value
112
+ }), ne.value = !1, ve.value = !0) : w.dataset.forEach((t, l) => {
113
+ Jt({
114
114
  datasetObject: t,
115
115
  requiredAttributes: ["name", "values"]
116
116
  }).forEach((a) => {
117
- Ce({
117
+ xe({
118
118
  componentName: "VueUiWaffle",
119
119
  type: "datasetSerieAttribute",
120
120
  property: a,
121
121
  index: l,
122
- debug: De.value
122
+ debug: Ne.value
123
123
  });
124
124
  });
125
- }), tt(w.dataset) || (ie.value = e.value.loading), e.value.responsive) {
126
- const t = ul(() => {
127
- const { width: l, height: a } = sl({
128
- chart: I.value,
129
- title: e.value.style.chart.title.text ? $e.value : null,
130
- legend: e.value.style.chart.legend.show ? Ie.value : null,
131
- source: Te.value,
132
- noTitle: _e.value
125
+ }), at(w.dataset) || (ve.value = e.value.loading), e.value.responsive) {
126
+ const t = rl(() => {
127
+ const { width: l, height: a } = il({
128
+ chart: S.value,
129
+ title: e.value.style.chart.title.text ? Ie.value : null,
130
+ legend: e.value.style.chart.legend.show ? Se.value : null,
131
+ source: _e.value,
132
+ noTitle: Ae.value
133
133
  });
134
134
  requestAnimationFrame(() => {
135
- N.value.width = l, N.value.height = a, T.value.width = l, T.value.height = a;
135
+ z.value.width = l, z.value.height = a, _.value.width = l, _.value.height = a;
136
136
  });
137
137
  });
138
- L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect()), L.value = new ResizeObserver(t), E.value = I.value.parentNode, L.value.observe(E.value);
138
+ B.value && (W.value && B.value.unobserve(W.value), B.value.disconnect()), B.value = new ResizeObserver(t), W.value = S.value.parentNode, B.value.observe(W.value);
139
139
  }
140
140
  }
141
- Mt(() => {
142
- Pe.value = !0, Ne();
143
- }), Rt(() => {
144
- L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect());
141
+ Et(() => {
142
+ Fe.value = !0, ze();
143
+ }), Wt(() => {
144
+ B.value && (W.value && B.value.unobserve(W.value), B.value.disconnect());
145
145
  });
146
- const { isPrinting: ze, isImaging: Ve, generatePdf: Me, generateImage: Re } = vl({
146
+ const { isPrinting: Me, isImaging: Re, generatePdf: Ue, generateImage: Ee } = hl({
147
147
  elementId: `vue-ui-waffle_${b.value}`,
148
148
  fileName: e.value.style.chart.title.text || "vue-ui-waffle",
149
149
  options: e.value.userOptions.print
150
- }), gt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = c(() => Xt(e.value.customPalette)), C = i({
150
+ }), bt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), We = c(() => Qt(e.value.customPalette)), C = i({
151
151
  showTable: e.value.table.show,
152
152
  showTooltip: e.value.style.chart.tooltip.show
153
153
  });
@@ -157,90 +157,90 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
157
157
  showTooltip: e.value.style.chart.tooltip.show
158
158
  };
159
159
  }, { immediate: !0 });
160
- const N = i({
160
+ const z = i({
161
161
  height: 512,
162
162
  width: 512
163
- }), T = i({
163
+ }), _ = i({
164
164
  top: 0,
165
165
  left: 0,
166
166
  height: 512,
167
167
  width: 512
168
- }), _ = c(() => (T.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = c(() => (T.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), yt = c(() => Math.max(1e-4, T.value.width / e.value.style.chart.layout.grid.size)), Ue = c(() => Math.max(1e-4, T.value.height / e.value.style.chart.layout.grid.size));
169
- function Ge(t) {
170
- const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce((x, me) => x + me, 0), o = t.map((x) => x / a * l), u = o.map(Math.floor), s = o.map((x) => x % 1);
171
- let d = l - u.reduce((x, me) => x + me, 0);
168
+ }), A = c(() => (_.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), O = c(() => (_.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), mt = c(() => Math.max(1e-4, _.value.width / e.value.style.chart.layout.grid.size)), Ge = c(() => Math.max(1e-4, _.value.height / e.value.style.chart.layout.grid.size));
169
+ function He(t) {
170
+ const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce(($, ke) => $ + ke, 0), o = t.map(($) => $ / a * l), u = o.map(Math.floor), n = o.map(($) => $ % 1);
171
+ let d = l - u.reduce(($, ke) => $ + ke, 0);
172
172
  for (; d > 0; ) {
173
- let x = s.indexOf(Math.max(...s));
174
- u[x] += 1, s[x] = 0, d -= 1;
173
+ let $ = n.indexOf(Math.max(...n));
174
+ u[$] += 1, n[$] = 0, d -= 1;
175
175
  }
176
176
  return u;
177
177
  }
178
178
  const j = i(!1);
179
- function he() {
179
+ function fe() {
180
180
  return j.value = K.value.flatMap((t) => t.values.reduce((l, a) => l + a, 0)).reduce((t, l) => t + l, 0) === 0, K.value.map((t, l) => ({
181
181
  ...t,
182
- color: Zt(t.color) || Ee.value[l] || M[l] || M[l % M.length],
182
+ color: ll(t.color) || We.value[l] || U[l] || U[l % U.length],
183
183
  uid: `serie_${l}`,
184
184
  absoluteIndex: l
185
185
  }));
186
186
  }
187
- const pe = c(() => he()), p = i(pe.value);
187
+ const pe = c(() => fe()), g = i(pe.value);
188
188
  J(() => w.dataset, (t) => {
189
- Array.isArray(t) && t.length > 0 && (ie.value = !1);
189
+ Array.isArray(t) && t.length > 0 && (ve.value = !1);
190
190
  }, { immediate: !0 }), J(() => w.dataset, (t) => {
191
- p.value = he();
191
+ g.value = fe();
192
192
  }, { deep: !0 });
193
- const bt = c(() => {
194
- const t = p.value.filter((l, a) => !f.value.includes(l.uid)).map((l, a) => j.value ? 1 : (l.values || []).reduce((o, u) => o + u, 0));
195
- return Ge(t);
196
- }), mt = c(() => {
197
- const t = p.value.map((l, a) => j.value ? 1 : (l.values || []).reduce((o, u) => o + u));
198
- return Ge(t);
193
+ const wt = c(() => {
194
+ const t = g.value.filter((l, a) => !y.value.includes(l.uid)).map((l, a) => j.value ? 1 : (l.values || []).reduce((o, u) => o + u, 0));
195
+ return He(t);
196
+ }), kt = c(() => {
197
+ const t = g.value.map((l, a) => j.value ? 1 : (l.values || []).reduce((o, u) => o + u));
198
+ return He(t);
199
199
  }), q = c(() => (K.value.forEach((t, l) => {
200
- [null, void 0].includes(t.values) && Ce({
200
+ [null, void 0].includes(t.values) && xe({
201
201
  componentName: "VueUiWaffle",
202
202
  type: "datasetSerieAttribute",
203
203
  property: "values (number[])",
204
204
  index: l
205
205
  });
206
- }), p.value.filter((t, l) => !f.value.includes(t.uid)).map((t, l) => ({
206
+ }), g.value.filter((t, l) => !y.value.includes(t.uid)).map((t, l) => ({
207
207
  absoluteIndex: t.absoluteIndex,
208
208
  uid: t.uid,
209
209
  name: t.name,
210
210
  color: t.color,
211
211
  value: (t.values || []).reduce((a, o) => a + o, 0),
212
212
  absoluteValues: t.values || [],
213
- proportion: bt.value[l]
214
- })))), wt = c(() => p.value.map((t, l) => ({
213
+ proportion: wt.value[l]
214
+ })))), ge = c(() => g.value.map((t, l) => ({
215
215
  absoluteIndex: t.absoluteIndex,
216
216
  uid: t.uid,
217
217
  name: t.name,
218
218
  color: t.color,
219
219
  value: (t.values || []).reduce((a, o) => a + o, 0),
220
220
  absoluteValues: t.values || [],
221
- proportion: mt.value[l]
221
+ proportion: kt.value[l]
222
222
  })));
223
- function kt() {
224
- return wt.value.map((t) => ({
223
+ function Ct() {
224
+ return ge.value.map((t) => ({
225
225
  name: t.name,
226
226
  color: t.color,
227
227
  value: t.value,
228
228
  proportion: t.proportion
229
229
  }));
230
230
  }
231
- const Ct = c(() => {
231
+ const $t = c(() => {
232
232
  let t = 0;
233
233
  return q.value.map((l, a) => {
234
- const o = t, u = o + l.proportion, s = [];
234
+ const o = t, u = o + l.proportion, n = [];
235
235
  for (let d = Math.floor(o); d < Math.floor(u); d += 1)
236
- s.push(d);
236
+ n.push(d);
237
237
  return t = u, {
238
238
  ...l,
239
239
  start: o,
240
- rects: s
240
+ rects: n
241
241
  };
242
242
  });
243
- }), r = c(() => Ct.value.flatMap((t, l) => t.rects.map((a, o) => ({
243
+ }), r = c(() => $t.value.flatMap((t, l) => t.rects.map((a, o) => ({
244
244
  isFirst: o === 0,
245
245
  isLongEnough: a.length > 2,
246
246
  name: t.name,
@@ -253,53 +253,53 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
253
253
  }))).map((t, l) => ({
254
254
  ...t,
255
255
  isAbsoluteFirst: l % e.value.style.chart.layout.grid.size === 0
256
- }))), U = c(() => {
256
+ }))), G = c(() => {
257
257
  const t = [];
258
258
  for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
259
259
  for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
260
260
  t.push({
261
261
  isStartOfLine: a === 0,
262
262
  position: e.value.style.chart.layout.grid.vertical ? l : a,
263
- x: (e.value.style.chart.layout.grid.vertical ? l : a) * (_.value + e.value.style.chart.layout.grid.spaceBetween),
264
- y: (e.value.style.chart.layout.grid.vertical ? a : l) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + T.value.top
263
+ x: (e.value.style.chart.layout.grid.vertical ? l : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween),
264
+ y: (e.value.style.chart.layout.grid.vertical ? a : l) * (O.value + e.value.style.chart.layout.grid.spaceBetween) + _.value.top
265
265
  });
266
266
  return t;
267
- }), f = i([]), X = i(!1), We = i(null), He = i(null);
268
- function je(t) {
267
+ }), y = i([]), X = i(!1), je = i(null), qe = i(null);
268
+ function Z(t) {
269
269
  if (j.value) return;
270
270
  if (!e.value.useAnimation) {
271
- f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < z.value.length - 1 && z.value.length > 1 && f.value.push(t);
271
+ y.value.includes(t) ? y.value = y.value.filter((u) => u !== t) : y.value.length < M.value.length - 1 && M.value.length > 1 && y.value.push(t);
272
272
  return;
273
273
  }
274
- const l = pe.value.find((u) => u.uid === t).values.reduce((u, s) => u + s, 0), a = p.value.find((u) => u.uid === t).values.reduce((u, s) => u + s, 0);
274
+ const l = pe.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0), a = g.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
275
275
  let o = a;
276
276
  if (!(a === 0 && l === 0)) {
277
- if (f.value.includes(t)) {
278
- let s = function() {
279
- o > u ? (cancelAnimationFrame(We.value), p.value = p.value.map((d, x) => d.uid === t ? {
277
+ if (y.value.includes(t)) {
278
+ let n = function() {
279
+ o > u ? (cancelAnimationFrame(je.value), g.value = g.value.map((d, $) => d.uid === t ? {
280
280
  ...d,
281
281
  values: [u]
282
- } : d), X.value = !1) : (X.value = !0, o += u * 0.025, p.value = p.value.map((d, x) => d.uid === t ? {
282
+ } : d), X.value = !1) : (X.value = !0, o += u * 0.025, g.value = g.value.map((d, $) => d.uid === t ? {
283
283
  ...d,
284
284
  values: [o]
285
- } : d), We.value = requestAnimationFrame(s));
285
+ } : d), je.value = requestAnimationFrame(n));
286
286
  };
287
- f.value = f.value.filter((d) => d !== t);
287
+ y.value = y.value.filter((d) => d !== t);
288
288
  const u = l;
289
- s();
290
- } else if (f.value.length < z.value.length - 1 && z.value.length > 1) {
289
+ n();
290
+ } else if (y.value.length < M.value.length - 1 && M.value.length > 1) {
291
291
  let u = function() {
292
- o < a / 100 ? (cancelAnimationFrame(He.value), f.value.push(t), p.value = p.value.map((s, d) => s.uid === t ? {
293
- ...s,
292
+ o < a / 100 ? (cancelAnimationFrame(qe.value), y.value.push(t), g.value = g.value.map((n, d) => n.uid === t ? {
293
+ ...n,
294
294
  values: [0]
295
- } : s), X.value = !1) : (X.value = !0, o /= 1.15, p.value = p.value.map((s) => s.uid === t ? {
296
- ...s,
295
+ } : n), X.value = !1) : (X.value = !0, o /= 1.15, g.value = g.value.map((n) => n.uid === t ? {
296
+ ...n,
297
297
  values: [o]
298
- } : s), He.value = requestAnimationFrame(u));
298
+ } : n), qe.value = requestAnimationFrame(u));
299
299
  };
300
300
  u();
301
301
  }
302
- _t("selectLegend", q.value.map((u) => ({
302
+ Ot("selectLegend", q.value.map((u) => ({
303
303
  name: u.name,
304
304
  color: u.color,
305
305
  value: u.value,
@@ -307,11 +307,25 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
307
307
  })));
308
308
  }
309
309
  }
310
- const z = c(() => p.value.map((t, l) => {
311
- const a = (t.values || []).reduce((u, s) => u + s, 0), o = a / p.value.map((u) => (u.values || []).reduce((s, d) => s + d, 0)).reduce((u, s) => u + s, 0);
310
+ function Xe(t) {
311
+ if (!ge.value.length)
312
+ return e.value.debug && console.warn("VueUiWaffle - There are no series to show."), null;
313
+ const l = ge.value.find((a) => a.name === t);
314
+ return l || (e.value.debug && console.warn(`VueUiWaffle - Series name not found "${t}"`), null);
315
+ }
316
+ function xt(t) {
317
+ const l = Xe(t);
318
+ l !== null && y.value.includes(l.uid) && Z(l.uid);
319
+ }
320
+ function Tt(t) {
321
+ const l = Xe(t);
322
+ l !== null && (y.value.includes(l.uid) || Z(l.uid));
323
+ }
324
+ const M = c(() => g.value.map((t, l) => {
325
+ const a = (t.values || []).reduce((u, n) => u + n, 0), o = a / g.value.map((u) => (u.values || []).reduce((n, d) => n + d, 0)).reduce((u, n) => u + n, 0);
312
326
  return {
313
327
  name: t.name,
314
- color: t.color || Ee[l] || M[l] || M[l % M.length],
328
+ color: t.color || We[l] || U[l] || U[l % U.length],
315
329
  value: a,
316
330
  proportion: o,
317
331
  uid: t.uid,
@@ -319,59 +333,59 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
319
333
  };
320
334
  }).map((t, l) => ({
321
335
  ...t,
322
- opacity: f.value.includes(t.uid) ? 0.5 : 1,
323
- segregate: () => je(t.uid),
324
- isSegregated: f.value.includes(t.uid),
325
- display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Q(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, P({
336
+ opacity: y.value.includes(t.uid) ? 0.5 : 1,
337
+ segregate: () => Z(t.uid),
338
+ isSegregated: y.value.includes(t.uid),
339
+ display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Q(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, F({
326
340
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
327
341
  v: t.value,
328
342
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
329
343
  r: e.value.style.chart.legend.roundingValue
330
- }), { datapoint: t, index: l }) : ""}${e.value.style.chart.legend.showPercentage ? f.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / A.value) ? "-" : P({ v: t.value / A.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
331
- }))), xt = c(() => ({
344
+ }), { datapoint: t, index: l }) : ""}${e.value.style.chart.legend.showPercentage ? y.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / P.value) ? "-" : F({ v: t.value / P.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
345
+ }))), It = c(() => ({
332
346
  cy: "waffle-div-legend",
333
347
  backgroundColor: e.value.style.chart.legend.backgroundColor,
334
348
  color: e.value.style.chart.legend.color,
335
349
  fontSize: e.value.style.chart.legend.fontSize,
336
350
  paddingBottom: 12,
337
351
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
338
- })), A = c(() => q.value.map((t) => t.value).reduce((t, l) => t + l, 0)), fe = i(null), ge = i(null);
339
- function $t(t) {
352
+ })), P = c(() => q.value.map((t) => t.value).reduce((t, l) => t + l, 0)), ye = i(null), be = i(null);
353
+ function St(t) {
340
354
  const l = r.value[t];
341
355
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.serieIndex });
342
356
  }
343
- function It(t) {
357
+ function _t(t) {
344
358
  const l = r.value[t];
345
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), ge.value = null, se.value = !1, R.value = null;
359
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), be.value = null, se.value = !1, E.value = null;
346
360
  }
347
- function Tt(t) {
348
- if (f.value.length === w.dataset.length) return;
361
+ function At(t) {
362
+ if (y.value.length === w.dataset.length) return;
349
363
  const l = r.value[t];
350
- fe.value = {
364
+ ye.value = {
351
365
  datapoint: l,
352
366
  seriesIndex: l.absoluteIndex,
353
- series: p.value,
367
+ series: g.value,
354
368
  config: e.value
355
- }, e.value.events.datapointEnter && ge.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), ge.value = l.serieIndex, se.value = !0, R.value = r.value[t].serieIndex;
369
+ }, e.value.events.datapointEnter && be.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), be.value = l.serieIndex, se.value = !0, E.value = r.value[t].serieIndex;
356
370
  const a = e.value.style.chart.tooltip.customFormat;
357
- if (al(a) && ol(() => a({
371
+ if (nl(a) && sl(() => a({
358
372
  seriesIndex: r.value[t].absoluteIndex,
359
373
  datapoint: l,
360
- series: p.value,
374
+ series: g.value,
361
375
  config: e.value
362
376
  })))
363
- ne.value = a({
377
+ re.value = a({
364
378
  seriesIndex: r.value[t].absoluteIndex,
365
379
  datapoint: l,
366
- series: p.value,
380
+ series: g.value,
367
381
  config: e.value
368
382
  });
369
383
  else {
370
384
  let o = "";
371
- 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;">${l.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="${l.color}" />${ft.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${l.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Q(
385
+ 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;">${l.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="${l.color}" />${yt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${l.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Q(
372
386
  e.value.style.chart.layout.labels.dataLabels.formatter,
373
387
  l.value,
374
- P({
388
+ F({
375
389
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
376
390
  v: l.value,
377
391
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -380,86 +394,86 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
380
394
  {
381
395
  datapoint: l,
382
396
  seriesIndex: r.value[t].absoluteIndex,
383
- series: p.value
397
+ series: g.value
384
398
  }
385
399
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
386
- const u = P({
387
- v: j.value ? 1 / K.value.length * 100 : l.value / A.value * 100,
400
+ const u = F({
401
+ v: j.value ? 1 / K.value.length * 100 : l.value / P.value * 100,
388
402
  s: "%",
389
403
  r: e.value.style.chart.tooltip.roundingPercentage
390
404
  });
391
405
  e.value.style.chart.tooltip.showValue ? o += `<span>(${u})</span></div>` : o += `<b>${u}%</b></div>`;
392
406
  }
393
- ne.value = o;
407
+ re.value = o;
394
408
  }
395
409
  }
396
- const _t = ut, O = c(() => {
410
+ const Ot = st, L = c(() => {
397
411
  const t = q.value.map((a) => ({
398
412
  name: a.name,
399
413
  color: a.color
400
414
  })), l = q.value.map((a) => a.value);
401
415
  return { head: t, body: l };
402
416
  });
403
- function Z(t) {
404
- return e.value.useBlurOnHover && ![null, void 0].includes(R.value) && R.value !== t ? `url(#blur_${b.value})` : "";
417
+ function ee(t) {
418
+ return e.value.useBlurOnHover && ![null, void 0].includes(E.value) && E.value !== t ? `url(#blur_${b.value})` : "";
405
419
  }
406
- function St(t, l) {
420
+ function Pt(t, l) {
407
421
  return e.value.style.chart.layout.labels.captions.show ? r.value.length && !X.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && l.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;
408
422
  }
409
- function At(t, l = null) {
423
+ function Lt(t, l = null) {
410
424
  const a = Q(
411
425
  e.value.style.chart.layout.labels.dataLabels.formatter,
412
426
  r.value[t].value,
413
- P({
427
+ F({
414
428
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
415
429
  v: r.value[t].value,
416
430
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
417
431
  r: e.value.style.chart.layout.labels.captions.roundingValue
418
432
  }),
419
433
  { datapoint: r.value[t], position: l }
420
- ), 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 ? ll({ 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 ? ":" : ""), s = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
434
+ ), o = F({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? ul({ 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 : "";
421
435
  let d = "";
422
- return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${a})` : 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 = a), `${s}${d}`;
436
+ return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${a})` : 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 = a), `${n}${d}`;
423
437
  }
424
- function ye(t = null) {
425
- Gt(() => {
426
- const l = O.value.head.map((u, s) => [[
438
+ function me(t = null) {
439
+ jt(() => {
440
+ const l = L.value.head.map((u, n) => [[
427
441
  u.name
428
- ], [O.value.body[s]], [isNaN(O.value.body[s] / A.value) ? "-" : O.value.body[s] / A.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), o = el(a);
429
- t ? t(o) : tl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
442
+ ], [L.value.body[n]], [isNaN(L.value.body[n] / P.value) ? "-" : L.value.body[n] / P.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), o = al(a);
443
+ t ? t(o) : ol({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
430
444
  });
431
445
  }
432
- const ee = c(() => {
446
+ const te = c(() => {
433
447
  const t = [
434
448
  ' <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>',
435
449
  Q(
436
450
  e.value.style.chart.layout.labels.dataLabels.formatter,
437
- A.value,
438
- P({
451
+ P.value,
452
+ F({
439
453
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
440
- v: A.value,
454
+ v: P.value,
441
455
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
442
456
  r: e.value.table.td.roundingValue
443
457
  })
444
458
  ),
445
459
  "100%"
446
- ], l = O.value.head.map((u, s) => [
460
+ ], l = L.value.head.map((u, n) => [
447
461
  {
448
462
  color: u.color,
449
463
  name: u.name
450
464
  },
451
465
  Q(
452
466
  e.value.style.chart.layout.labels.dataLabels.formatter,
453
- O.value.body[s],
454
- P({
467
+ L.value.body[n],
468
+ F({
455
469
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
456
- v: O.value.body[s],
470
+ v: L.value.body[n],
457
471
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
458
472
  r: e.value.table.td.roundingValue
459
473
  })
460
474
  ),
461
- isNaN(O.value.body[s] / A.value) ? "-" : P({
462
- v: O.value.body[s] / A.value * 100,
475
+ isNaN(L.value.body[n] / P.value) ? "-" : F({
476
+ v: L.value.body[n] / P.value * 100,
463
477
  s: "%",
464
478
  r: e.value.table.td.roundingPercentage
465
479
  })
@@ -487,26 +501,26 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
487
501
  config: a,
488
502
  colNames: o
489
503
  };
490
- }), V = i(!1);
491
- function qe(t) {
492
- V.value = t, xe.value += 1;
504
+ }), R = i(!1);
505
+ function Ye(t) {
506
+ R.value = t, Te.value += 1;
493
507
  }
494
- function Xe() {
508
+ function Je() {
495
509
  C.value.showTable = !C.value.showTable;
496
510
  }
497
- function Ye() {
511
+ function Qe() {
498
512
  C.value.showTooltip = !C.value.showTooltip;
499
513
  }
500
- const te = i(!1);
501
- function be() {
502
- te.value = !te.value;
514
+ const le = i(!1);
515
+ function we() {
516
+ le.value = !le.value;
503
517
  }
504
- async function Ot({ scale: t = 2 } = {}) {
505
- if (!I.value) return;
506
- const { width: l, height: a } = I.value.getBoundingClientRect(), o = l / a, { imageUri: u, base64: s } = await pl({ domElement: I.value, base64: !0, img: !0, scale: t });
518
+ async function Ft({ scale: t = 2 } = {}) {
519
+ if (!S.value) return;
520
+ const { width: l, height: a } = S.value.getBoundingClientRect(), o = l / a, { imageUri: u, base64: n } = await yl({ domElement: S.value, base64: !0, img: !0, scale: t });
507
521
  return {
508
522
  imageUri: u,
509
- base64: s,
523
+ base64: n,
510
524
  title: e.value.style.chart.title.text,
511
525
  width: l,
512
526
  height: a,
@@ -516,15 +530,15 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
516
530
  const Y = c(() => {
517
531
  const t = e.value.table.useDialog && !e.value.table.show, l = C.value.showTable;
518
532
  return {
519
- component: t ? ht : it,
533
+ component: t ? pt : ct,
520
534
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
521
535
  props: t ? {
522
536
  backgroundColor: e.value.table.th.backgroundColor,
523
537
  color: e.value.table.th.color,
524
538
  headerColor: e.value.table.th.color,
525
539
  headerBg: e.value.table.th.backgroundColor,
526
- isFullscreen: V.value,
527
- fullscreenParent: I.value,
540
+ isFullscreen: R.value,
541
+ fullscreenParent: S.value,
528
542
  forcedWidth: Math.min(500, window.innerWidth * 0.8)
529
543
  } : {
530
544
  hideDetails: !0,
@@ -546,69 +560,91 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
546
560
  J(() => C.value.showTable, (t) => {
547
561
  e.value.table.show || (t && e.value.table.useDialog && H.value ? H.value.open() : "close" in H.value && H.value.close());
548
562
  });
549
- function Je() {
550
- C.value.showTable = !1, re.value && re.value.setTableIconState(!1);
563
+ function Ke() {
564
+ C.value.showTable = !1, ie.value && ie.value.setTableIconState(!1);
551
565
  }
552
- const Pt = c(() => z.value.map((t) => ({
566
+ const Bt = c(() => M.value.map((t) => ({
553
567
  ...t,
554
568
  name: t.display
555
- }))), Lt = c(() => e.value.style.chart.backgroundColor), Ft = c(() => e.value.style.chart.legend), Bt = c(() => e.value.style.chart.title), { exportSvg: Dt, getSvg: Nt } = cl({
556
- svg: ce,
557
- title: Bt,
558
- legend: Ft,
559
- legendItems: Pt,
560
- backgroundColor: Lt
569
+ }))), Dt = c(() => e.value.style.chart.backgroundColor), Vt = c(() => e.value.style.chart.legend), Nt = c(() => e.value.style.chart.title), { exportSvg: zt, getSvg: Mt } = fl({
570
+ svg: de,
571
+ title: Nt,
572
+ legend: Vt,
573
+ legendItems: Bt,
574
+ backgroundColor: Dt
561
575
  });
562
- async function Qe({ isCb: t }) {
576
+ async function Ze({ isCb: t }) {
563
577
  if (t) {
564
- const { blob: l, url: a, text: o, dataUrl: u } = await Nt();
578
+ const { blob: l, url: a, text: o, dataUrl: u } = await Mt();
565
579
  e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: u });
566
580
  } else
567
- Dt();
581
+ zt();
568
582
  }
569
- return ot({
570
- getData: kt,
571
- getImage: Ot,
572
- generatePdf: Me,
573
- generateCsv: ye,
574
- generateImage: Re,
575
- generateSvg: Qe,
576
- toggleTable: Xe,
577
- toggleTooltip: Ye,
578
- toggleAnnotator: be,
579
- toggleFullscreen: qe
580
- }), (t, l) => (n(), v("div", {
581
- class: Ze(`vue-data-ui-component vue-ui-waffle ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
583
+ return nt({
584
+ getData: Ct,
585
+ getImage: Ft,
586
+ generatePdf: Ue,
587
+ generateCsv: me,
588
+ generateImage: Ee,
589
+ generateSvg: Ze,
590
+ hideSeries: Tt,
591
+ showSeries: xt,
592
+ toggleTable: Je,
593
+ toggleTooltip: Qe,
594
+ toggleAnnotator: we,
595
+ toggleFullscreen: Ye
596
+ }), (t, l) => (s(), v("div", {
597
+ class: tt(`vue-data-ui-component vue-ui-waffle ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
582
598
  ref_key: "waffleChart",
583
- ref: I,
599
+ ref: S,
584
600
  id: `vue-ui-waffle_${b.value}`,
585
- style: le(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
586
- onMouseenter: l[2] || (l[2] = () => h(Fe)(!0)),
587
- onMouseleave: l[3] || (l[3] = () => h(Fe)(!1))
601
+ style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
602
+ onMouseenter: l[2] || (l[2] = () => h(De)(!0)),
603
+ onMouseleave: l[3] || (l[3] = () => h(De)(!1))
588
604
  }, [
589
- e.value.userOptions.buttons.annotator ? (n(), B(h(ct), {
605
+ e.value.userOptions.buttons.annotator ? (s(), V(h(ht), {
590
606
  key: 0,
591
- svgRef: h(ce),
607
+ svgRef: h(de),
592
608
  backgroundColor: e.value.style.chart.backgroundColor,
593
609
  color: e.value.style.chart.color,
594
- active: te.value,
595
- onClose: be
596
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
597
- gt.value ? (n(), v("div", {
610
+ active: le.value,
611
+ onClose: we
612
+ }, {
613
+ "annotator-action-close": f(() => [
614
+ p(t.$slots, "annotator-action-close", {}, void 0, !0)
615
+ ]),
616
+ "annotator-action-color": f(({ color: a }) => [
617
+ p(t.$slots, "annotator-action-color", x(T({ color: a })), void 0, !0)
618
+ ]),
619
+ "annotator-action-draw": f(({ mode: a }) => [
620
+ p(t.$slots, "annotator-action-draw", x(T({ mode: a })), void 0, !0)
621
+ ]),
622
+ "annotator-action-undo": f(({ disabled: a }) => [
623
+ p(t.$slots, "annotator-action-undo", x(T({ disabled: a })), void 0, !0)
624
+ ]),
625
+ "annotator-action-redo": f(({ disabled: a }) => [
626
+ p(t.$slots, "annotator-action-redo", x(T({ disabled: a })), void 0, !0)
627
+ ]),
628
+ "annotator-action-delete": f(({ disabled: a }) => [
629
+ p(t.$slots, "annotator-action-delete", x(T({ disabled: a })), void 0, !0)
630
+ ]),
631
+ _: 3
632
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
633
+ bt.value ? (s(), v("div", {
598
634
  key: 1,
599
635
  ref_key: "noTitle",
600
- ref: _e,
636
+ ref: Ae,
601
637
  class: "vue-data-ui-no-title-space",
602
638
  style: "height:36px; width: 100%;background:transparent"
603
639
  }, null, 512)) : m("", !0),
604
- e.value.style.chart.title.text ? (n(), v("div", {
640
+ e.value.style.chart.title.text ? (s(), v("div", {
605
641
  key: 2,
606
642
  ref_key: "chartTitle",
607
- ref: $e,
643
+ ref: Ie,
608
644
  style: "width:100%;background:transparent;padding-bottom:12px"
609
645
  }, [
610
- (n(), B(gl, {
611
- key: `title_${Se.value}`,
646
+ (s(), V(ml, {
647
+ key: `title_${Oe.value}`,
612
648
  config: {
613
649
  title: {
614
650
  cy: "waffle-title",
@@ -623,15 +659,15 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
623
659
  ], 512)) : m("", !0),
624
660
  k("div", {
625
661
  id: `legend-top-${b.value}`
626
- }, null, 8, kl),
627
- e.value.userOptions.show && ue.value && (h(Be) || h(ve)) ? (n(), B(h(vt), {
662
+ }, null, 8, xl),
663
+ e.value.userOptions.show && ne.value && (h(Ve) || h(ce)) ? (s(), V(h(dt), {
628
664
  ref_key: "userOptionsRef",
629
- ref: re,
630
- key: `user_options_${xe.value}`,
665
+ ref: ie,
666
+ key: `user_options_${Te.value}`,
631
667
  backgroundColor: e.value.style.chart.backgroundColor,
632
668
  color: e.value.style.chart.color,
633
- isPrinting: h(ze),
634
- isImaging: h(Ve),
669
+ isPrinting: h(Me),
670
+ isImaging: h(Re),
635
671
  uid: b.value,
636
672
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
637
673
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -640,103 +676,103 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
640
676
  hasXls: e.value.userOptions.buttons.csv,
641
677
  hasTable: e.value.userOptions.buttons.table,
642
678
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
643
- isFullscreen: V.value,
679
+ isFullscreen: R.value,
644
680
  isTooltip: C.value.showTooltip,
645
681
  titles: { ...e.value.userOptions.buttonTitles },
646
- chartElement: I.value,
682
+ chartElement: S.value,
647
683
  position: e.value.userOptions.position,
648
684
  hasAnnotator: e.value.userOptions.buttons.annotator,
649
- isAnnotation: te.value,
685
+ isAnnotation: le.value,
650
686
  callbacks: e.value.userOptions.callbacks,
651
687
  printScale: e.value.userOptions.print.scale,
652
688
  tableDialog: e.value.table.useDialog,
653
- onToggleFullscreen: qe,
654
- onGeneratePdf: h(Me),
655
- onGenerateCsv: ye,
656
- onGenerateImage: h(Re),
657
- onGenerateSvg: Qe,
658
- onToggleTable: Xe,
659
- onToggleTooltip: Ye,
660
- onToggleAnnotator: be,
661
- style: le({
662
- visibility: h(Be) ? h(ve) ? "visible" : "hidden" : "visible"
689
+ onToggleFullscreen: Ye,
690
+ onGeneratePdf: h(Ue),
691
+ onGenerateCsv: me,
692
+ onGenerateImage: h(Ee),
693
+ onGenerateSvg: Ze,
694
+ onToggleTable: Je,
695
+ onToggleTooltip: Qe,
696
+ onToggleAnnotator: we,
697
+ style: ae({
698
+ visibility: h(Ve) ? h(ce) ? "visible" : "hidden" : "visible"
663
699
  })
664
- }, we({ _: 2 }, [
700
+ }, Ce({ _: 2 }, [
665
701
  t.$slots.menuIcon ? {
666
702
  name: "menuIcon",
667
- fn: g(({ isOpen: a, color: o }) => [
668
- y(t.$slots, "menuIcon", G(W({ isOpen: a, color: o })), void 0, !0)
703
+ fn: f(({ isOpen: a, color: o }) => [
704
+ p(t.$slots, "menuIcon", x(T({ isOpen: a, color: o })), void 0, !0)
669
705
  ]),
670
706
  key: "0"
671
707
  } : void 0,
672
708
  t.$slots.optionTooltip ? {
673
709
  name: "optionTooltip",
674
- fn: g(() => [
675
- y(t.$slots, "optionTooltip", {}, void 0, !0)
710
+ fn: f(() => [
711
+ p(t.$slots, "optionTooltip", {}, void 0, !0)
676
712
  ]),
677
713
  key: "1"
678
714
  } : void 0,
679
715
  t.$slots.optionPdf ? {
680
716
  name: "optionPdf",
681
- fn: g(() => [
682
- y(t.$slots, "optionPdf", {}, void 0, !0)
717
+ fn: f(() => [
718
+ p(t.$slots, "optionPdf", {}, void 0, !0)
683
719
  ]),
684
720
  key: "2"
685
721
  } : void 0,
686
722
  t.$slots.optionCsv ? {
687
723
  name: "optionCsv",
688
- fn: g(() => [
689
- y(t.$slots, "optionCsv", {}, void 0, !0)
724
+ fn: f(() => [
725
+ p(t.$slots, "optionCsv", {}, void 0, !0)
690
726
  ]),
691
727
  key: "3"
692
728
  } : void 0,
693
729
  t.$slots.optionImg ? {
694
730
  name: "optionImg",
695
- fn: g(() => [
696
- y(t.$slots, "optionImg", {}, void 0, !0)
731
+ fn: f(() => [
732
+ p(t.$slots, "optionImg", {}, void 0, !0)
697
733
  ]),
698
734
  key: "4"
699
735
  } : void 0,
700
736
  t.$slots.optionSvg ? {
701
737
  name: "optionSvg",
702
- fn: g(() => [
703
- y(t.$slots, "optionSvg", {}, void 0, !0)
738
+ fn: f(() => [
739
+ p(t.$slots, "optionSvg", {}, void 0, !0)
704
740
  ]),
705
741
  key: "5"
706
742
  } : void 0,
707
743
  t.$slots.optionTable ? {
708
744
  name: "optionTable",
709
- fn: g(() => [
710
- y(t.$slots, "optionTable", {}, void 0, !0)
745
+ fn: f(() => [
746
+ p(t.$slots, "optionTable", {}, void 0, !0)
711
747
  ]),
712
748
  key: "6"
713
749
  } : void 0,
714
750
  t.$slots.optionFullscreen ? {
715
751
  name: "optionFullscreen",
716
- fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
717
- y(t.$slots, "optionFullscreen", G(W({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
752
+ fn: f(({ toggleFullscreen: a, isFullscreen: o }) => [
753
+ p(t.$slots, "optionFullscreen", x(T({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
718
754
  ]),
719
755
  key: "7"
720
756
  } : void 0,
721
757
  t.$slots.optionAnnotator ? {
722
758
  name: "optionAnnotator",
723
- fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
724
- y(t.$slots, "optionAnnotator", G(W({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
759
+ fn: f(({ toggleAnnotator: a, isAnnotator: o }) => [
760
+ p(t.$slots, "optionAnnotator", x(T({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
725
761
  ]),
726
762
  key: "8"
727
763
  } : void 0
728
764
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
729
- (n(), v("svg", {
765
+ (s(), v("svg", {
730
766
  ref_key: "svgRef",
731
- ref: ce,
732
- xmlns: h(Yt),
733
- class: Ze({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
734
- viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
735
- style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
767
+ ref: de,
768
+ xmlns: h(Kt),
769
+ class: tt({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
770
+ viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
771
+ style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
736
772
  }, [
737
- ae(h(dt)),
773
+ oe(h(ft)),
738
774
  k("defs", null, [
739
- (n(!0), v($, null, D(r.value, (a, o) => (n(), v("radialGradient", {
775
+ (s(!0), v(I, null, N(r.value, (a, o) => (s(), v("radialGradient", {
740
776
  cx: "50%",
741
777
  cy: "50%",
742
778
  r: "50%",
@@ -746,13 +782,13 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
746
782
  }, [
747
783
  k("stop", {
748
784
  offset: "0%",
749
- "stop-color": h(Jt)(h(Qt)(a.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
750
- }, null, 8, $l),
785
+ "stop-color": h(Zt)(h(el)(a.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
786
+ }, null, 8, Sl),
751
787
  k("stop", {
752
788
  offset: "100%",
753
789
  "stop-color": a.color
754
- }, null, 8, Il)
755
- ], 8, xl))), 256))
790
+ }, null, 8, _l)
791
+ ], 8, Il))), 256))
756
792
  ]),
757
793
  k("defs", null, [
758
794
  k("filter", {
@@ -770,123 +806,123 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
770
806
  type: "saturate",
771
807
  values: "0"
772
808
  }, null, -1)
773
- ])], 8, Tl)
809
+ ])], 8, Al)
774
810
  ]),
775
- e.value.useCustomCells && r.value.length ? (n(!0), v($, { key: 0 }, D(U.value, (a, o) => (n(), v("foreignObject", {
811
+ e.value.useCustomCells && r.value.length ? (s(!0), v(I, { key: 0 }, N(G.value, (a, o) => (s(), v("foreignObject", {
776
812
  x: a.x,
777
813
  y: a.y,
778
- height: S.value <= 0 ? 1e-4 : S.value,
779
- width: _.value <= 0 ? 1e-4 : _.value,
814
+ height: O.value <= 0 ? 1e-4 : O.value,
815
+ width: A.value <= 0 ? 1e-4 : A.value,
780
816
  class: "vue-ui-waffle-custom-cell-foreignObject"
781
817
  }, [
782
- y(t.$slots, "cell", ke({ ref_for: !0 }, { cell: { ...a, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(R.value) ? !0 : r.value[o].serieIndex === R.value }), void 0, !0)
783
- ], 8, _l))), 256)) : m("", !0),
784
- !r.value.length && !e.value.useCustomCells ? (n(), v("rect", {
818
+ p(t.$slots, "cell", $e({ ref_for: !0 }, { cell: { ...a, 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)
819
+ ], 8, Ol))), 256)) : m("", !0),
820
+ !r.value.length && !e.value.useCustomCells ? (s(), v("rect", {
785
821
  key: 1,
786
822
  x: 12,
787
823
  y: 12,
788
- height: T.value.height - 24,
789
- width: T.value.width - 24,
824
+ height: _.value.height - 24,
825
+ width: _.value.width - 24,
790
826
  rx: 3,
791
827
  fill: "none",
792
828
  stroke: "black"
793
- }, null, 8, Sl)) : r.value.length && !e.value.useCustomCells ? (n(), v($, { key: 2 }, [
794
- t.$slots.pattern ? (n(), v("g", Al, [
795
- (n(!0), v($, null, D(pe.value, (a) => (n(), v("defs", null, [
796
- y(t.$slots, "pattern", ke({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${b.value}_${a.absoluteIndex}` }), void 0, !0)
829
+ }, null, 8, Pl)) : r.value.length && !e.value.useCustomCells ? (s(), v(I, { key: 2 }, [
830
+ t.$slots.pattern ? (s(), v("g", Ll, [
831
+ (s(!0), v(I, null, N(pe.value, (a) => (s(), v("defs", null, [
832
+ p(t.$slots, "pattern", $e({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${b.value}_${a.absoluteIndex}` }), void 0, !0)
797
833
  ]))), 256))
798
834
  ])) : m("", !0),
799
- (n(!0), v($, null, D(U.value, (a, o) => (n(), v("rect", {
835
+ (s(!0), v(I, null, N(G.value, (a, o) => (s(), v("rect", {
800
836
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
801
837
  x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
802
838
  y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
803
- height: S.value <= 0 ? 1e-4 : S.value,
804
- width: _.value <= 0 ? 1e-4 : _.value,
839
+ height: O.value <= 0 ? 1e-4 : O.value,
840
+ width: A.value <= 0 ? 1e-4 : A.value,
805
841
  fill: "white",
806
842
  stroke: e.value.style.chart.layout.rect.stroke,
807
843
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
808
- filter: Z(r.value[o].serieIndex)
809
- }, null, 8, Ol))), 256)),
810
- (n(!0), v($, null, D(U.value, (a, o) => (n(), v("rect", {
844
+ filter: ee(r.value[o].serieIndex)
845
+ }, null, 8, Fl))), 256)),
846
+ (s(!0), v(I, null, N(G.value, (a, o) => (s(), v("rect", {
811
847
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
812
848
  x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
813
849
  y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
814
- height: S.value <= 0 ? 1e-4 : S.value,
815
- width: _.value <= 0 ? 1e-4 : _.value,
850
+ height: O.value <= 0 ? 1e-4 : O.value,
851
+ width: A.value <= 0 ? 1e-4 : A.value,
816
852
  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,
817
853
  stroke: e.value.style.chart.layout.rect.stroke,
818
854
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
819
- filter: Z(r.value[o].serieIndex)
820
- }, null, 8, Pl))), 256)),
821
- t.$slots.pattern ? (n(), v("g", Ll, [
822
- (n(!0), v($, null, D(U.value, (a, o) => (n(), v("rect", {
855
+ filter: ee(r.value[o].serieIndex)
856
+ }, null, 8, Bl))), 256)),
857
+ t.$slots.pattern ? (s(), v("g", Dl, [
858
+ (s(!0), v(I, null, N(G.value, (a, o) => (s(), v("rect", {
823
859
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
824
860
  x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
825
861
  y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
826
- height: S.value <= 0 ? 1e-4 : S.value,
827
- width: _.value <= 0 ? 1e-4 : _.value,
862
+ height: O.value <= 0 ? 1e-4 : O.value,
863
+ width: A.value <= 0 ? 1e-4 : A.value,
828
864
  fill: `url(#pattern_${b.value}_${r.value[o].absoluteIndex})`,
829
865
  stroke: "none",
830
- filter: Z(r.value[o].serieIndex)
831
- }, null, 8, Fl))), 256))
866
+ filter: ee(r.value[o].serieIndex)
867
+ }, null, 8, Vl))), 256))
832
868
  ])) : m("", !0)
833
869
  ], 64)) : m("", !0),
834
- (n(!0), v($, null, D(U.value, (a, o) => (n(), v($, null, [
835
- St(o, a) ? (n(), v("text", {
870
+ (s(!0), v(I, null, N(G.value, (a, o) => (s(), v(I, null, [
871
+ Pt(o, a) ? (s(), v("text", {
836
872
  key: `datalabel_${o}`,
837
- textContent: oe(At(o, a)),
873
+ textContent: ue(Lt(o, a)),
838
874
  x: a.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
839
- y: a.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ue.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
875
+ y: a.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ge.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
840
876
  "font-size": e.value.style.chart.layout.labels.captions.fontSize,
841
- fill: h(Kt)(r.value[o].color),
842
- filter: Z(r.value[o].serieIndex)
843
- }, null, 8, Bl)) : m("", !0)
877
+ fill: h(tl)(r.value[o].color),
878
+ filter: ee(r.value[o].serieIndex)
879
+ }, null, 8, Nl)) : m("", !0)
844
880
  ], 64))), 256)),
845
- (n(!0), v($, null, D(U.value, (a, o) => (n(), v("rect", {
881
+ (s(!0), v(I, null, N(G.value, (a, o) => (s(), v("rect", {
846
882
  x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
847
883
  y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
848
- height: Ue.value,
849
- width: yt.value,
884
+ height: Ge.value,
885
+ width: mt.value,
850
886
  fill: "transparent",
851
887
  stroke: "none",
852
- onMouseover: (u) => Tt(o),
853
- onMouseleave: (u) => It(o),
854
- onClick: (u) => $t(o)
855
- }, null, 40, Dl))), 256)),
856
- y(t.$slots, "svg", { svg: N.value }, void 0, !0)
857
- ], 14, Cl)),
858
- t.$slots.watermark ? (n(), v("div", Nl, [
859
- y(t.$slots, "watermark", G(W({ isPrinting: h(ze) || h(Ve) })), void 0, !0)
888
+ onMouseover: (u) => At(o),
889
+ onMouseleave: (u) => _t(o),
890
+ onClick: (u) => St(o)
891
+ }, null, 40, zl))), 256)),
892
+ p(t.$slots, "svg", { svg: z.value }, void 0, !0)
893
+ ], 14, Tl)),
894
+ t.$slots.watermark ? (s(), v("div", Ml, [
895
+ p(t.$slots, "watermark", x(T({ isPrinting: h(Me) || h(Re) })), void 0, !0)
860
896
  ])) : m("", !0),
861
897
  k("div", {
862
898
  id: `legend-bottom-${b.value}`
863
- }, null, 8, zl),
864
- Pe.value ? (n(), B(Et, {
899
+ }, null, 8, Rl),
900
+ Fe.value ? (s(), V(Gt, {
865
901
  key: 5,
866
902
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
867
903
  }, [
868
904
  k("div", {
869
905
  ref_key: "chartLegend",
870
- ref: Ie
906
+ ref: Se
871
907
  }, [
872
- e.value.style.chart.legend.show ? (n(), B(bl, {
873
- key: `legend_${Oe.value}`,
874
- legendSet: z.value,
875
- config: xt.value,
876
- onClickMarker: l[0] || (l[0] = ({ legend: a }) => je(a.uid))
877
- }, we({
878
- item: g(({ legend: a }) => [
908
+ e.value.style.chart.legend.show ? (s(), V(kl, {
909
+ key: `legend_${Le.value}`,
910
+ legendSet: M.value,
911
+ config: It.value,
912
+ onClickMarker: l[0] || (l[0] = ({ legend: a }) => Z(a.uid))
913
+ }, Ce({
914
+ item: f(({ legend: a }) => [
879
915
  k("div", {
880
916
  onClick: (o) => a.segregate(),
881
- style: le(`opacity:${f.value.includes(a.uid) ? 0.5 : 1}`)
882
- }, oe(a.display), 13, Vl)
917
+ style: ae(`opacity:${y.value.includes(a.uid) ? 0.5 : 1}`)
918
+ }, ue(a.display), 13, Ul)
883
919
  ]),
884
920
  _: 2
885
921
  }, [
886
922
  t.$slots.pattern ? {
887
923
  name: "legend-pattern",
888
- fn: g(({ legend: a, index: o }) => [
889
- ae(fl, {
924
+ fn: f(({ legend: a, index: o }) => [
925
+ oe(bl, {
890
926
  shape: a.shape,
891
927
  radius: 30,
892
928
  stroke: "none",
@@ -896,22 +932,22 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
896
932
  ]),
897
933
  key: "0"
898
934
  } : void 0
899
- ]), 1032, ["legendSet", "config"])) : y(t.$slots, "legend", {
935
+ ]), 1032, ["legendSet", "config"])) : p(t.$slots, "legend", {
900
936
  key: 1,
901
- legend: z.value
937
+ legend: M.value
902
938
  }, void 0, !0)
903
939
  ], 512)
904
940
  ], 8, ["to"])) : m("", !0),
905
- t.$slots.source ? (n(), v("div", {
941
+ t.$slots.source ? (s(), v("div", {
906
942
  key: 6,
907
943
  ref_key: "source",
908
- ref: Te,
944
+ ref: _e,
909
945
  dir: "auto"
910
946
  }, [
911
- y(t.$slots, "source", {}, void 0, !0)
947
+ p(t.$slots, "source", {}, void 0, !0)
912
948
  ], 512)) : m("", !0),
913
- ae(h(st), {
914
- show: C.value.showTooltip && se.value && f.value.length < w.dataset.length,
949
+ oe(h(rt), {
950
+ show: C.value.showTooltip && se.value && y.value.length < w.dataset.length,
915
951
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
916
952
  color: e.value.style.chart.tooltip.color,
917
953
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -920,48 +956,48 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
920
956
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
921
957
  position: e.value.style.chart.tooltip.position,
922
958
  offsetY: e.value.style.chart.tooltip.offsetY,
923
- parent: I.value,
924
- content: ne.value,
959
+ parent: S.value,
960
+ content: re.value,
925
961
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
926
962
  fontSize: e.value.style.chart.tooltip.fontSize,
927
- isFullscreen: V.value,
963
+ isFullscreen: R.value,
928
964
  smooth: e.value.style.chart.tooltip.smooth,
929
965
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
930
966
  smoothForce: e.value.style.chart.tooltip.smoothForce,
931
967
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
932
968
  }, {
933
- "tooltip-before": g(() => [
934
- y(t.$slots, "tooltip-before", G(W({ ...fe.value })), void 0, !0)
969
+ "tooltip-before": f(() => [
970
+ p(t.$slots, "tooltip-before", x(T({ ...ye.value })), void 0, !0)
935
971
  ]),
936
- "tooltip-after": g(() => [
937
- y(t.$slots, "tooltip-after", G(W({ ...fe.value })), void 0, !0)
972
+ "tooltip-after": f(() => [
973
+ p(t.$slots, "tooltip-after", x(T({ ...ye.value })), void 0, !0)
938
974
  ]),
939
975
  _: 3
940
976
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
941
- ue.value && e.value.userOptions.buttons.table ? (n(), B(Ut(Y.value.component), ke({ key: 7 }, Y.value.props, {
977
+ ne.value && e.value.userOptions.buttons.table ? (s(), V(Ht(Y.value.component), $e({ key: 7 }, Y.value.props, {
942
978
  ref_key: "tableUnit",
943
979
  ref: H,
944
- onClose: Je
945
- }), we({
946
- content: g(() => [
947
- (n(), B(h(rt), {
948
- key: `table_${Ae.value}`,
949
- colNames: ee.value.colNames,
950
- head: ee.value.head,
951
- body: ee.value.body,
952
- config: ee.value.config,
980
+ onClose: Ke
981
+ }), Ce({
982
+ content: f(() => [
983
+ (s(), V(h(vt), {
984
+ key: `table_${Pe.value}`,
985
+ colNames: te.value.colNames,
986
+ head: te.value.head,
987
+ body: te.value.body,
988
+ config: te.value.config,
953
989
  title: e.value.table.useDialog ? "" : Y.value.title,
954
990
  withCloseButton: !e.value.table.useDialog,
955
- onClose: Je
991
+ onClose: Ke
956
992
  }, {
957
- th: g(({ th: a }) => [
993
+ th: f(({ th: a }) => [
958
994
  k("div", {
959
995
  innerHTML: a,
960
996
  style: { display: "flex", "align-items": "center" }
961
- }, null, 8, Ml)
997
+ }, null, 8, El)
962
998
  ]),
963
- td: g(({ td: a }) => [
964
- et(oe(a.name || a), 1)
999
+ td: f(({ td: a }) => [
1000
+ lt(ue(a.name || a), 1)
965
1001
  ]),
966
1002
  _: 1
967
1003
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -970,20 +1006,20 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
970
1006
  }, [
971
1007
  e.value.table.useDialog ? {
972
1008
  name: "title",
973
- fn: g(() => [
974
- et(oe(Y.value.title), 1)
1009
+ fn: f(() => [
1010
+ lt(ue(Y.value.title), 1)
975
1011
  ]),
976
1012
  key: "0"
977
1013
  } : void 0,
978
1014
  e.value.table.useDialog ? {
979
1015
  name: "actions",
980
- fn: g(() => [
1016
+ fn: f(() => [
981
1017
  k("button", {
982
1018
  tabindex: "0",
983
1019
  class: "vue-ui-user-options-button",
984
- onClick: l[1] || (l[1] = (a) => ye(e.value.userOptions.callbacks.csv))
1020
+ onClick: l[1] || (l[1] = (a) => me(e.value.userOptions.callbacks.csv))
985
1021
  }, [
986
- ae(h(nt), {
1022
+ oe(h(it), {
987
1023
  name: "excel",
988
1024
  stroke: Y.value.props.color
989
1025
  }, null, 8, ["stroke"])
@@ -992,10 +1028,10 @@ const wl = ["id"], kl = ["id"], Cl = ["xmlns", "viewBox"], xl = ["id"], $l = ["s
992
1028
  key: "1"
993
1029
  } : void 0
994
1030
  ]), 1040)) : m("", !0),
995
- h(Le) ? (n(), B(il, { key: 8 })) : m("", !0)
996
- ], 46, wl));
1031
+ h(Be) ? (s(), V(dl, { key: 8 })) : m("", !0)
1032
+ ], 46, $l));
997
1033
  }
998
- }, la = /* @__PURE__ */ ml(Rl, [["__scopeId", "data-v-c2d9f6f7"]]);
1034
+ }, ua = /* @__PURE__ */ Cl(Wl, [["__scopeId", "data-v-24beaccb"]]);
999
1035
  export {
1000
- la as default
1036
+ ua as default
1001
1037
  };