vue-data-ui 2.16.6 → 2.17.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 (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
@@ -1,19 +1,20 @@
1
- import { useCssVars as _t, defineAsyncComponent as H, useSlots as $t, computed as m, ref as d, watch as Xe, shallowRef as He, onMounted as We, onBeforeUnmount as wt, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as c, normalizeClass as B, createBlock as R, createCommentVNode as y, renderSlot as b, createVNode as Q, createSlots as pe, withCtx as k, normalizeProps as W, guardReactiveProps as G, createElementVNode as n, toDisplayString as h, Fragment as j, renderList as q, mergeProps as xt, withKeys as Ct, createTextVNode as Tt } from "vue";
2
- import { u as Lt, c as Nt, t as St, p as D, a as Pt, b as Vt, o as Ge, e as Z, v as N, d as ye, i as ne, f as E, X as It, s as ge, w as Ot, q as Ft, r as Mt, x as zt, y as At } from "./index-DvIXJm6t.js";
3
- import { t as Bt, u as Rt } from "./useResponsive-DfdjqQps.js";
4
- import { u as je } from "./useNestedProp-DrYHm61t.js";
5
- import { u as Dt } from "./usePrinter-CWnXbGMb.js";
6
- import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
8
- import Xt from "./vue-ui-accordion-D55kCO5G.js";
9
- import qe from "./Legend-nBXoxXJH.js";
10
- import Ht from "./Title-Gi81VwUM.js";
11
- import { _ as Ye } from "./Shape-Bnf512BA.js";
12
- import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["id"], Jt = ["stop-color"], Qt = ["stop-color"], Zt = { key: 1 }, el = ["x", "y", "width", "height", "fill", "rx"], tl = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ll = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], al = ["x2", "y1", "y2", "stroke", "stroke-width"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], ul = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "font-size", "fill", "font-weight"], rl = ["x", "y", "font-size", "fill", "font-weight"], il = ["y", "width", "height", "fill", "onMouseenter"], dl = {
1
+ import { useCssVars as $t, defineAsyncComponent as W, useSlots as wt, computed as k, ref as d, watch as He, shallowRef as We, onMounted as Ge, onBeforeUnmount as xt, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as c, normalizeClass as R, createBlock as D, createCommentVNode as y, renderSlot as m, createVNode as Q, createSlots as pe, withCtx as _, normalizeProps as G, guardReactiveProps as j, createElementVNode as n, toDisplayString as h, Fragment as q, renderList as Y, mergeProps as Ct, withKeys as Tt, createTextVNode as Lt } from "vue";
2
+ import { u as Nt, c as St, t as Pt, p as E, a as Vt, b as It, o as je, e as Z, v as N, d as ye, i as ne, f as U, X as Ot, s as ge, w as Ft, q as Mt, r as zt, x as At, y as Bt } from "./index-CobsZUkv.js";
3
+ import { t as Rt, u as Dt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as qe } from "./useNestedProp-BwL5wmVa.js";
5
+ import { u as Et } from "./usePrinter-DPh6U_Qk.js";
6
+ import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Ht from "./vue-ui-accordion-UewqY6OI.js";
9
+ import Ye from "./Legend-3LNqqLDg.js";
10
+ import Wt from "./Title-DpERl1yr.js";
11
+ import { _ as Ke } from "./Shape-C75836Jl.js";
12
+ import Gt from "./img-utitT2Gd.js";
13
+ import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "height"], Qt = ["id"], Zt = ["stop-color"], el = ["stop-color"], tl = { key: 1 }, ll = ["x", "y", "width", "height", "fill", "rx"], al = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ol = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], nl = ["x2", "y1", "y2", "stroke", "stroke-width"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], rl = ["x", "y", "font-size", "fill", "font-weight"], il = ["x", "y", "font-size", "fill", "font-weight"], dl = ["x", "y", "font-size", "fill", "font-weight"], vl = ["y", "width", "height", "fill", "onMouseenter"], cl = {
14
15
  key: 6,
15
16
  class: "vue-data-ui-watermark"
16
- }, vl = ["onClick"], cl = { style: "width:100%;padding-top: 36px;position:relative" }, hl = { class: "vue-ui-data-table" }, pl = { key: 0 }, yl = { style: { width: "100%" } }, gl = ["data-cell"], fl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, bl = ["data-cell"], ml = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, kl = ["data-cell"], _l = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $l = ["data-cell"], wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xl = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Tl = ["data-cell"], Ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Nl = ["data-cell"], Sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Pl = {
17
+ }, hl = ["onClick"], pl = { style: "width:100%;padding-top: 36px;position:relative" }, yl = { class: "vue-ui-data-table" }, gl = { key: 0 }, fl = { style: { width: "100%" } }, bl = ["data-cell"], ml = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, kl = ["data-cell"], _l = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $l = ["data-cell"], wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xl = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Tl = ["data-cell"], Ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Nl = ["data-cell"], Sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Pl = ["data-cell"], Vl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Il = {
17
18
  __name: "vue-ui-vertical-bar",
18
19
  props: {
19
20
  config: {
@@ -30,46 +31,46 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
30
31
  }
31
32
  },
32
33
  emits: ["selectLegend"],
33
- setup(Ke, { expose: Je, emit: Qe }) {
34
- _t((l) => ({
35
- "7fbb7b73": l.tdo
34
+ setup(Je, { expose: Qe, emit: Ze }) {
35
+ $t((l) => ({
36
+ "16cc6e66": l.tdo
36
37
  }));
37
- const Ze = H(() => import("./BaseIcon-Bn996RXm.js")), et = H(() => import("./PackageVersion-Bg_9KCU-.js")), tt = H(() => import("./PenAndPaper-BPTpbnay.js")), lt = H(() => import("./vue-ui-skeleton-BAOt2neL.js")), at = H(() => import("./Tooltip-CJxVw7-T.js")), ot = H(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_vertical_bar: nt } = Lt(), ut = $t(), T = Ke, ee = m(() => !!T.dataset && T.dataset.length), C = d(Nt()), st = d(null), ue = d(!1), se = d(""), te = d(0), rt = d(null), fe = d(0), Y = d(null), be = d(null), re = d(null), me = d(null), ke = d(null), _e = d(0), ie = d(0), it = Qe, e = m({
38
+ const et = W(() => import("./BaseIcon-D9Tz8ARD.js")), tt = W(() => import("./PackageVersion-C-4Ee8BQ.js")), lt = W(() => import("./PenAndPaper-Cde-wJ3N.js")), at = W(() => import("./vue-ui-skeleton-8s4xts8z.js")), ot = W(() => import("./Tooltip-DA0bYKFG.js")), nt = W(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_vertical_bar: ut } = Nt(), st = wt(), T = Je, ee = k(() => !!T.dataset && T.dataset.length), C = d(St()), rt = d(null), ue = d(!1), se = d(""), te = d(0), it = d(null), fe = d(0), I = d(null), be = d(null), re = d(null), me = d(null), ke = d(null), _e = d(0), ie = d(0), dt = Ze, e = k({
38
39
  get: () => Ce(),
39
40
  set: (l) => l
40
- }), { userOptionsVisible: de, setUserOptionsVisibility: $e, keepUserOptionState: we } = Et({ config: e.value }), { svgRef: xe } = Ut({ config: e.value.style.chart.title });
41
+ }), { userOptionsVisible: de, setUserOptionsVisibility: $e, keepUserOptionState: we } = Ut({ config: e.value }), { svgRef: xe } = Xt({ config: e.value.style.chart.title });
41
42
  function Ce() {
42
- const l = je({
43
+ const l = qe({
43
44
  userConfig: T.config,
44
- defaultConfig: nt
45
+ defaultConfig: ut
45
46
  });
46
47
  return l.theme ? {
47
- ...je({
48
- userConfig: Pt.vue_ui_vertical_bar[l.theme] || T.config,
48
+ ...qe({
49
+ userConfig: Vt.vue_ui_vertical_bar[l.theme] || T.config,
49
50
  defaultConfig: l
50
51
  }),
51
- customPalette: St[l.theme] || D
52
+ customPalette: Pt[l.theme] || E
52
53
  } : l;
53
54
  }
54
- Xe(() => T.config, (l) => {
55
+ He(() => T.config, (l) => {
55
56
  e.value = Ce(), de.value = !e.value.userOptions.showOnChartHover, Oe(), _e.value += 1, ie.value += 1, v.value = e.value.style.chart.layout.bars.height, f.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
56
- }, { deep: !0 }), Xe(() => T.dataset, le, { deep: !0 });
57
- const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Se } = Dt({
57
+ }, { deep: !0 }), He(() => T.dataset, le, { deep: !0 });
58
+ const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Se } = Et({
58
59
  elementId: `vue-ui-vertical-bar_${C.value}`,
59
60
  fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
60
61
  options: e.value.userOptions.print
61
- }), dt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = m(() => Vt(e.value.customPalette)), Ve = d(null), Ie = d(!1), vt = m(() => e.value.table.responsiveBreakpoint), I = He(null), U = He(null);
62
- We(() => {
62
+ }), vt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = k(() => It(e.value.customPalette)), Ve = d(null), Ie = d(!1), ct = k(() => e.value.table.responsiveBreakpoint), O = We(null), X = We(null);
63
+ Ge(() => {
63
64
  Oe();
64
65
  });
65
66
  function Oe() {
66
- if (Ge(T.dataset) && Z({
67
+ if (je(T.dataset) && Z({
67
68
  componentName: "VueUiVerticalBar",
68
69
  type: "dataset"
69
- }), te.value = T.dataset.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0), ct(), e.value.responsive) {
70
- const l = Bt(() => {
71
- const { width: a, height: t } = Rt({
72
- chart: Y.value,
70
+ }), te.value = T.dataset.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0), ht(), e.value.responsive) {
71
+ const l = Rt(() => {
72
+ const { width: a, height: t } = Dt({
73
+ chart: I.value,
73
74
  title: e.value.style.chart.title.text ? be.value : null,
74
75
  legend: e.value.style.chart.legend.show ? re.value : null,
75
76
  source: me.value,
@@ -79,16 +80,16 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
79
80
  ze.value = a, v.value = t / te.value - f.value * 2;
80
81
  });
81
82
  });
82
- I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect()), I.value = new ResizeObserver(l), U.value = Y.value.parentNode, I.value.observe(U.value);
83
+ O.value && (X.value && O.value.unobserve(X.value), O.value.disconnect()), O.value = new ResizeObserver(l), X.value = I.value.parentNode, O.value.observe(X.value);
83
84
  }
84
85
  }
85
- wt(() => {
86
- I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect());
86
+ xt(() => {
87
+ O.value && (X.value && O.value.unobserve(X.value), O.value.disconnect());
87
88
  });
88
- function ct() {
89
+ function ht() {
89
90
  new ResizeObserver((a) => {
90
91
  a.forEach((t) => {
91
- Ie.value = t.contentRect.width < vt.value;
92
+ Ie.value = t.contentRect.width < ct.value;
92
93
  });
93
94
  }).observe(Ve.value);
94
95
  }
@@ -96,12 +97,12 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
96
97
  showTable: e.value.table.show,
97
98
  sortDesc: e.value.style.chart.layout.bars.sort === "desc",
98
99
  showTooltip: e.value.style.chart.tooltip.show
99
- }), Fe = m(() => $.value.sortDesc), F = m(() => (T.dataset.forEach((l, a) => {
100
+ }), Fe = k(() => $.value.sortDesc), M = k(() => (T.dataset.forEach((l, a) => {
100
101
  !l.value && !l.children && Z({
101
102
  componentName: "VueUiVerticalBar",
102
103
  type: "datasetAttributeEmpty",
103
104
  property: `value (index ${a})`
104
- }), l.children && (Ge(l.children) ? Z({
105
+ }), l.children && (je(l.children) ? Z({
105
106
  componentName: "VueUiVerticalBar",
106
107
  type: "datasetAttributeEmpty",
107
108
  property: `children (index ${a})`
@@ -115,20 +116,20 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
115
116
  });
116
117
  }));
117
118
  }), T.dataset.map((l, a) => {
118
- const t = `vertical_parent_${a}_${C.value}`, o = l.children && l.children.length > 0, _ = N(l.value ? l.value : o ? l.children.map((p) => p.value || 0).reduce((p, V) => p + V, 0) : 0), x = _ >= 0 ? 1 : -1;
119
+ const t = `vertical_parent_${a}_${C.value}`, o = l.children && l.children.length > 0, b = N(l.value ? l.value : o ? l.children.map((p) => p.value || 0).reduce((p, V) => p + V, 0) : 0), w = b >= 0 ? 1 : -1;
119
120
  return {
120
121
  ...l,
121
122
  id: t,
122
123
  absoluteIndex: a,
123
124
  shape: "square",
124
125
  opacity: S.value.includes(t) ? 0.5 : 1,
125
- value: Math.abs(_),
126
- sign: x,
126
+ value: Math.abs(b),
127
+ sign: w,
127
128
  hasChildren: o,
128
129
  isChild: !1,
129
130
  segregate: () => K(t),
130
131
  isSegregated: S.value.includes(t),
131
- color: ye(l.color) || Pe.value[a] || D[a] || D[a % D.length],
132
+ color: ye(l.color) || Pe.value[a] || E[a] || E[a % E.length],
132
133
  children: !l.children || !l.children.length ? [] : l.children.toSorted(ae.value ? () => 0 : (p, V) => Fe.value ? V.value - p.value : p.value - V.value).map((p, V) => ({
133
134
  ...p,
134
135
  value: N(Math.abs(p.value)),
@@ -137,34 +138,34 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
137
138
  isChild: !0,
138
139
  parentId: t,
139
140
  parentName: l.name,
140
- parentValue: _,
141
- parentSign: x,
141
+ parentValue: b,
142
+ parentSign: w,
142
143
  id: `vertical_child_${a}_${V}_${C.value}`,
143
144
  childIndex: V,
144
- color: ye(p.color) || ye(l.color) || Pe.value[a] || D[a] || D[a % D.length]
145
+ color: ye(p.color) || ye(l.color) || Pe.value[a] || E[a] || E[a % E.length]
145
146
  })).map((p, V) => ({
146
147
  ...p,
147
148
  isFirstChild: V === 0,
148
149
  isLastChild: V === l.children.length - 1
149
150
  }))
150
151
  };
151
- }).toSorted(ae.value ? () => 0 : (l, a) => Fe.value ? a.value - l.value : l.value - a.value))), Me = m(() => ({
152
+ }).toSorted(ae.value ? () => 0 : (l, a) => Fe.value ? a.value - l.value : l.value - a.value))), Me = k(() => ({
152
153
  cy: "vertical-bar-div-legend",
153
154
  backgroundColor: e.value.style.chart.legend.backgroundColor,
154
155
  color: e.value.style.chart.legend.color,
155
156
  fontSize: e.value.style.chart.legend.fontSize,
156
157
  paddingBottom: 12,
157
158
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
158
- })), v = d(e.value.style.chart.layout.bars.height), f = d(e.value.style.chart.layout.bars.gap), ht = m(() => (v.value + f.value) * te.value), ze = d(512), g = m(() => ({
159
+ })), v = d(e.value.style.chart.layout.bars.height), f = d(e.value.style.chart.layout.bars.gap), pt = k(() => (v.value + f.value) * te.value), ze = d(512), g = k(() => ({
159
160
  width: ze.value,
160
- height: ht.value,
161
+ height: pt.value,
161
162
  padding: {
162
163
  top: 12,
163
164
  left: 128 + e.value.style.chart.layout.bars.offsetX,
164
165
  right: 64 + e.value.style.chart.layout.bars.paddingRight,
165
166
  bottom: 12
166
167
  }
167
- })), s = m(() => ({
168
+ })), s = k(() => ({
168
169
  fullHeight: g.value.padding.top + g.value.padding.bottom + g.value.height,
169
170
  top: g.value.padding.top,
170
171
  left: g.value.padding.left,
@@ -173,79 +174,79 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
173
174
  width: g.value.width - (g.value.padding.left + g.value.padding.right)
174
175
  }));
175
176
  function le() {
176
- te.value = M.value.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0);
177
+ te.value = z.value.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0);
177
178
  }
178
179
  const S = d([]);
179
180
  function K(l) {
180
- S.value.includes(l) ? S.value = S.value.filter((a) => a !== l) : S.value.push(l), le(), it("selectLegend", M.value);
181
+ S.value.includes(l) ? S.value = S.value.filter((a) => a !== l) : S.value.push(l), le(), dt("selectLegend", z.value);
181
182
  }
182
- const M = m(() => F.value.filter((l) => !S.value.includes(l.id))), P = m(() => M.value.map((l) => Math.abs(l.value)).reduce((l, a) => l + a, 0));
183
+ const z = k(() => M.value.filter((l) => !S.value.includes(l.id))), P = k(() => z.value.map((l) => Math.abs(l.value)).reduce((l, a) => l + a, 0));
183
184
  function Ae(l, a = !1, t = 0) {
184
- return a ? E({
185
+ return a ? U({
185
186
  v: N(Math.abs(l) / P.value * 100),
186
187
  s: "%",
187
188
  r: t
188
189
  }) : Math.abs(l) / P.value;
189
190
  }
190
- const z = m(() => M.value.flatMap((l) => l.hasChildren ? l.children : l)), A = m(() => z.value.map((l) => l.sign).includes(-1)), pt = m(() => Math.max(...M.value.flatMap((l) => l.children && l.children.length ? Math.max(...l.children.map((a) => a.value)) : l.value)));
191
- function w(l) {
192
- const a = l / pt.value;
193
- return s.value.width / (A.value ? 2 : 1) * a;
191
+ const A = k(() => z.value.flatMap((l) => l.hasChildren ? l.children : l)), B = k(() => A.value.map((l) => l.sign).includes(-1)), yt = k(() => Math.max(...z.value.flatMap((l) => l.children && l.children.length ? Math.max(...l.children.map((a) => a.value)) : l.value)));
192
+ function x(l) {
193
+ const a = l / yt.value;
194
+ return s.value.width / (B.value ? 2 : 1) * a;
194
195
  }
195
- function yt(l) {
196
- return w(l) + s.value.left;
196
+ function gt(l) {
197
+ return x(l) + s.value.left;
197
198
  }
198
199
  function J(l, a) {
199
- const t = M.value.find((x) => x.id === l.parentId), o = s.value.top + (f.value + v.value) * a, _ = t.children.length * (f.value + v.value);
200
+ const t = z.value.find((w) => w.id === l.parentId), o = s.value.top + (f.value + v.value) * a, b = t.children.length * (f.value + v.value);
200
201
  return {
201
- y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
202
+ y: o + b / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
202
203
  name: t.name,
203
204
  value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
204
205
  percentageToTotal: isNaN(t.value / P.value) ? "" : Ae(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
205
206
  sign: t.sign
206
207
  };
207
208
  }
208
- function gt() {
209
- return M.value;
209
+ function ft() {
210
+ return z.value;
210
211
  }
211
212
  const ve = d(null), ce = d(null);
212
- function ft(l, a) {
213
+ function bt(l, a) {
213
214
  ce.value = {
214
215
  datapoint: l,
215
216
  seriesIndex: a,
216
- series: F.value,
217
+ series: M.value,
217
218
  config: e.value
218
219
  }, ue.value = !0, ve.value = l.id;
219
220
  let t = "";
220
- const o = l.isChild ? l.parentName : l.name, _ = l.isChild ? l.name : "", x = e.value.style.chart.tooltip.customFormat;
221
- zt(x) && At(() => x({
221
+ const o = l.isChild ? l.parentName : l.name, b = l.isChild ? l.name : "", w = e.value.style.chart.tooltip.customFormat;
222
+ At(w) && Bt(() => w({
222
223
  datapoint: l,
223
- series: F.value,
224
+ series: M.value,
224
225
  config: e.value,
225
226
  seriesIndex: a
226
- })) ? se.value = x({
227
+ })) ? se.value = w({
227
228
  datapoint: l,
228
- series: F.value,
229
+ series: M.value,
229
230
  config: e.value,
230
231
  seriesIndex: a
231
232
  }) : (t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
232
- <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${l.color}"/>${ut.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${C.value}_${l.absoluteIndex})"/>` : ""}</svg> ${o}</div>
233
- ${_ ? `<div>${_}</div>` : ""}
233
+ <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${l.color}"/>${st.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${C.value}_${l.absoluteIndex})"/>` : ""}</svg> ${o}</div>
234
+ ${b ? `<div>${b}</div>` : ""}
234
235
  </div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${ne(
235
236
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
236
237
  l.sign === 1 ? l.value : -l.value,
237
- E({
238
+ U({
238
239
  p: e.value.style.chart.tooltip.prefix,
239
240
  v: l.sign === 1 ? l.value : -l.value,
240
241
  s: e.value.style.chart.tooltip.suffix,
241
242
  r: e.value.style.chart.tooltip.roundingValue
242
243
  }),
243
244
  { datapoint: l, seriesIndex: a }
244
- )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${E({
245
+ )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${U({
245
246
  v: Math.abs(l.value) / P.value * 100,
246
247
  s: "%",
247
248
  r: e.value.style.chart.tooltip.roundingPercentage
248
- })}</b></div>`, l.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${E({
249
+ })}</b></div>`, l.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${U({
249
250
  v: Math.abs(l.value) / Math.abs(l.parentValue) * 100,
250
251
  s: "%",
251
252
  r: e.value.style.chart.tooltip.roundingPercentage
@@ -254,20 +255,20 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
254
255
  function Be(l, a, t, o) {
255
256
  if (!e.value.style.chart.layout.bars.dataLabels.value.show)
256
257
  return "";
257
- const _ = ne(
258
+ const b = ne(
258
259
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
259
260
  N(o === -1 && l >= 0 ? -l : l),
260
- E({
261
+ U({
261
262
  p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
262
263
  v: N(o === -1 && l >= 0 ? -l : l),
263
264
  s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
264
265
  r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
265
266
  }),
266
267
  { datapoint: a, seriesIndex: t }
267
- ), x = `(${Ae(l, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
268
- return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${x}` : ""}`;
268
+ ), w = `(${Ae(l, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
269
+ return `${b}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${w}` : ""}`;
269
270
  }
270
- const L = m(() => {
271
+ const L = k(() => {
271
272
  const l = [
272
273
  e.value.translations.parentName,
273
274
  e.value.translations.value,
@@ -276,7 +277,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
276
277
  e.value.translations.value,
277
278
  e.value.translations.percentageToSerie,
278
279
  e.value.translations.percentageToTotal
279
- ], a = z.value.map((t) => t.isChild ? t.isFirstChild ? {
280
+ ], a = A.value.map((t) => t.isChild ? t.isFirstChild ? {
280
281
  color: t.color,
281
282
  parentName: t.parentName,
282
283
  parentValue: t.parentValue,
@@ -315,62 +316,76 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
315
316
  p.childValue,
316
317
  p.childPercentageToParent,
317
318
  p.childPercentageToTotal
318
- ]), _ = a.concat([t]).concat(o), x = Ft(_);
319
- l ? l(x) : Mt({ csvContent: x, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
319
+ ]), b = a.concat([t]).concat(o), w = Mt(b);
320
+ l ? l(w) : zt({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
320
321
  }
321
- const X = d(!1);
322
- function bt(l) {
323
- X.value = l, fe.value += 1;
322
+ const H = d(!1);
323
+ function De(l) {
324
+ H.value = l, fe.value += 1;
324
325
  }
325
- function De() {
326
+ function Ee() {
326
327
  $.value.showTable = !$.value.showTable;
327
328
  }
328
329
  const mt = d({
329
330
  none: 0,
330
331
  asc: 1,
331
332
  desc: 2
332
- }), O = d(0), ae = d(!1);
333
- We(() => {
333
+ }), F = d(0), ae = d(!1);
334
+ Ge(() => {
334
335
  ["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || Z({
335
336
  componentName: "VueUiVerticalBar",
336
337
  type: "attributeWrongValue",
337
338
  property: "style.chart.layout.bars.sort",
338
339
  key: e.value.style.chart.layout.bars.sort
339
- }), O.value = mt.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = O.value === 2, ae.value = O.value === 0;
340
+ }), F.value = mt.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = F.value === 2, ae.value = F.value === 0;
340
341
  });
341
342
  function kt() {
342
- O.value += 1, O.value > 2 && (O.value = 0);
343
- }
344
- function Ee() {
345
- kt(), $.value.sortDesc = O.value === 2, ae.value = O.value === 0, le();
343
+ F.value += 1, F.value > 2 && (F.value = 0);
346
344
  }
347
345
  function Ue() {
346
+ kt(), $.value.sortDesc = F.value === 2, ae.value = F.value === 0, le();
347
+ }
348
+ function Xe() {
348
349
  $.value.showTooltip = !$.value.showTooltip;
349
350
  }
350
351
  const oe = d(!1);
351
352
  function he() {
352
353
  oe.value = !oe.value;
353
354
  }
354
- return Je({
355
- getData: gt,
355
+ async function _t({ scale: l = 2 } = {}) {
356
+ if (!I.value) return;
357
+ const { width: a, height: t } = I.value.getBoundingClientRect(), o = a / t, { imageUri: b, base64: w } = await Gt({ domElement: I.value, base64: !0, img: !0, scale: l });
358
+ return {
359
+ imageUri: b,
360
+ base64: w,
361
+ title: e.value.style.chart.title.text,
362
+ width: a,
363
+ height: t,
364
+ aspectRatio: o
365
+ };
366
+ }
367
+ return Qe({
368
+ getData: ft,
369
+ getImage: _t,
356
370
  recalculateHeight: le,
357
371
  generatePdf: Ne,
358
372
  generateCsv: Re,
359
373
  generateImage: Se,
360
- toggleTable: De,
361
- toggleSort: Ee,
362
- toggleTooltip: Ue,
363
- toggleAnnotator: he
374
+ toggleTable: Ee,
375
+ toggleSort: Ue,
376
+ toggleTooltip: Xe,
377
+ toggleAnnotator: he,
378
+ toggleFullscreen: De
364
379
  }), (l, a) => (u(), i("div", {
365
- class: B(`vue-ui-vertical-bar ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
380
+ class: R(`vue-ui-vertical-bar ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
366
381
  ref_key: "verticalBarChart",
367
- ref: Y,
382
+ ref: I,
368
383
  id: `vue-ui-vertical-bar_${C.value}`,
369
384
  style: c(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
370
385
  onMouseenter: a[5] || (a[5] = () => r($e)(!0)),
371
386
  onMouseleave: a[6] || (a[6] = () => r($e)(!1))
372
387
  }, [
373
- e.value.userOptions.buttons.annotator ? (u(), R(r(tt), {
388
+ e.value.userOptions.buttons.annotator ? (u(), D(r(lt), {
374
389
  key: 0,
375
390
  svgRef: r(xe),
376
391
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -378,7 +393,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
378
393
  active: oe.value,
379
394
  onClose: he
380
395
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
381
- dt.value ? (u(), i("div", {
396
+ vt.value ? (u(), i("div", {
382
397
  key: 1,
383
398
  ref_key: "noTitle",
384
399
  ref: ke,
@@ -391,7 +406,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
391
406
  ref: be,
392
407
  style: "width:100%;background:transparent;padding-bottom:12px"
393
408
  }, [
394
- (u(), R(Ht, {
409
+ (u(), D(Wt, {
395
410
  key: `title_${_e.value}`,
396
411
  config: {
397
412
  title: {
@@ -405,9 +420,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
405
420
  }
406
421
  }, null, 8, ["config"]))
407
422
  ], 512)) : y("", !0),
408
- e.value.userOptions.show && ee.value && (r(we) || r(de)) ? (u(), R(r(ot), {
423
+ e.value.userOptions.show && ee.value && (r(we) || r(de)) ? (u(), D(r(nt), {
409
424
  ref_key: "details",
410
- ref: st,
425
+ ref: rt,
411
426
  key: `user_options_${fe.value}`,
412
427
  backgroundColor: e.value.style.chart.backgroundColor,
413
428
  color: e.value.style.chart.color,
@@ -421,22 +436,22 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
421
436
  hasTable: e.value.userOptions.buttons.table,
422
437
  hasSort: e.value.userOptions.buttons.sort,
423
438
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
424
- isFullscreen: X.value,
439
+ isFullscreen: H.value,
425
440
  isTooltip: $.value.showTooltip,
426
441
  titles: { ...e.value.userOptions.buttonTitles },
427
- chartElement: Y.value,
442
+ chartElement: I.value,
428
443
  position: e.value.userOptions.position,
429
444
  hasAnnotator: e.value.userOptions.buttons.annotator,
430
445
  isAnnotation: oe.value,
431
446
  callbacks: e.value.userOptions.callbacks,
432
447
  printScale: e.value.userOptions.print.scale,
433
- onToggleFullscreen: bt,
448
+ onToggleFullscreen: De,
434
449
  onGeneratePdf: r(Ne),
435
450
  onGenerateCsv: Re,
436
451
  onGenerateImage: r(Se),
437
- onToggleTable: De,
438
- onToggleSort: Ee,
439
- onToggleTooltip: Ue,
452
+ onToggleTable: Ee,
453
+ onToggleSort: Ue,
454
+ onToggleTooltip: Xe,
440
455
  onToggleAnnotator: he,
441
456
  style: c({
442
457
  visibility: r(we) ? r(de) ? "visible" : "hidden" : "visible"
@@ -444,71 +459,71 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
444
459
  }, pe({ _: 2 }, [
445
460
  l.$slots.menuIcon ? {
446
461
  name: "menuIcon",
447
- fn: k(({ isOpen: t, color: o }) => [
448
- b(l.$slots, "menuIcon", W(G({ isOpen: t, color: o })), void 0, !0)
462
+ fn: _(({ isOpen: t, color: o }) => [
463
+ m(l.$slots, "menuIcon", G(j({ isOpen: t, color: o })), void 0, !0)
449
464
  ]),
450
465
  key: "0"
451
466
  } : void 0,
452
467
  l.$slots.optionTooltip ? {
453
468
  name: "optionTooltip",
454
- fn: k(() => [
455
- b(l.$slots, "optionTooltip", {}, void 0, !0)
469
+ fn: _(() => [
470
+ m(l.$slots, "optionTooltip", {}, void 0, !0)
456
471
  ]),
457
472
  key: "1"
458
473
  } : void 0,
459
474
  l.$slots.optionPdf ? {
460
475
  name: "optionPdf",
461
- fn: k(() => [
462
- b(l.$slots, "optionPdf", {}, void 0, !0)
476
+ fn: _(() => [
477
+ m(l.$slots, "optionPdf", {}, void 0, !0)
463
478
  ]),
464
479
  key: "2"
465
480
  } : void 0,
466
481
  l.$slots.optionCsv ? {
467
482
  name: "optionCsv",
468
- fn: k(() => [
469
- b(l.$slots, "optionCsv", {}, void 0, !0)
483
+ fn: _(() => [
484
+ m(l.$slots, "optionCsv", {}, void 0, !0)
470
485
  ]),
471
486
  key: "3"
472
487
  } : void 0,
473
488
  l.$slots.optionImg ? {
474
489
  name: "optionImg",
475
- fn: k(() => [
476
- b(l.$slots, "optionImg", {}, void 0, !0)
490
+ fn: _(() => [
491
+ m(l.$slots, "optionImg", {}, void 0, !0)
477
492
  ]),
478
493
  key: "4"
479
494
  } : void 0,
480
495
  l.$slots.optionTable ? {
481
496
  name: "optionTable",
482
- fn: k(() => [
483
- b(l.$slots, "optionTable", {}, void 0, !0)
497
+ fn: _(() => [
498
+ m(l.$slots, "optionTable", {}, void 0, !0)
484
499
  ]),
485
500
  key: "5"
486
501
  } : void 0,
487
502
  l.$slots.optionLabels ? {
488
503
  name: "optionLabels",
489
- fn: k(() => [
490
- b(l.$slots, "optionLabels", {}, void 0, !0)
504
+ fn: _(() => [
505
+ m(l.$slots, "optionLabels", {}, void 0, !0)
491
506
  ]),
492
507
  key: "6"
493
508
  } : void 0,
494
509
  l.$slots.optionSort ? {
495
510
  name: "optionSort",
496
- fn: k(() => [
497
- b(l.$slots, "optionSort", {}, void 0, !0)
511
+ fn: _(() => [
512
+ m(l.$slots, "optionSort", {}, void 0, !0)
498
513
  ]),
499
514
  key: "7"
500
515
  } : void 0,
501
516
  l.$slots.optionFullscreen ? {
502
517
  name: "optionFullscreen",
503
- fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
504
- b(l.$slots, "optionFullscreen", W(G({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
518
+ fn: _(({ toggleFullscreen: t, isFullscreen: o }) => [
519
+ m(l.$slots, "optionFullscreen", G(j({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
505
520
  ]),
506
521
  key: "8"
507
522
  } : void 0,
508
523
  l.$slots.optionAnnotator ? {
509
524
  name: "optionAnnotator",
510
- fn: k(({ toggleAnnotator: t, isAnnotator: o }) => [
511
- b(l.$slots, "optionAnnotator", W(G({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
525
+ fn: _(({ toggleAnnotator: t, isAnnotator: o }) => [
526
+ m(l.$slots, "optionAnnotator", G(j({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
512
527
  ]),
513
528
  key: "9"
514
529
  } : void 0
@@ -518,34 +533,34 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
518
533
  ref_key: "chartLegend",
519
534
  ref: re
520
535
  }, [
521
- (u(), R(qe, {
536
+ (u(), D(Ye, {
522
537
  key: `legend_top_${ie.value}`,
523
- legendSet: F.value,
538
+ legendSet: M.value,
524
539
  config: Me.value,
525
540
  onClickMarker: a[0] || (a[0] = ({ legend: t }) => K(t.id))
526
541
  }, pe({
527
- item: k(({ legend: t, index: o }) => [
542
+ item: _(({ legend: t, index: o }) => [
528
543
  n("div", {
529
- onClick: (_) => K(t.id),
544
+ onClick: (b) => K(t.id),
530
545
  style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
531
546
  }, h(t.name) + ": " + h(r(ne)(
532
547
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
533
548
  t.value,
534
- r(E)({
549
+ r(U)({
535
550
  p: e.value.style.chart.legend.prefix,
536
551
  v: t.value,
537
552
  s: e.value.style.chart.legend.suffix,
538
553
  r: e.value.style.chart.legend.roundingValue
539
554
  }),
540
555
  { datapoint: t, seriesIndex: o }
541
- )), 13, jt)
556
+ )), 13, Yt)
542
557
  ]),
543
558
  _: 2
544
559
  }, [
545
560
  l.$slots.pattern ? {
546
561
  name: "legend-pattern",
547
- fn: k(({ legend: t, index: o }) => [
548
- Q(Ye, {
562
+ fn: _(({ legend: t, index: o }) => [
563
+ Q(Ke, {
549
564
  shape: t.shape,
550
565
  radius: 30,
551
566
  stroke: "none",
@@ -561,12 +576,12 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
561
576
  key: 5,
562
577
  ref_key: "svgRef",
563
578
  ref: xe,
564
- xmlns: r(It),
565
- class: B({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
579
+ xmlns: r(Ot),
580
+ class: R({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
566
581
  viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
567
582
  style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
568
583
  }, [
569
- Q(r(et)),
584
+ Q(r(tt)),
570
585
  l.$slots["chart-background"] ? (u(), i("foreignObject", {
571
586
  key: 0,
572
587
  x: 0,
@@ -577,9 +592,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
577
592
  pointerEvents: "none"
578
593
  }
579
594
  }, [
580
- b(l.$slots, "chart-background", {}, void 0, !0)
581
- ], 8, Yt)) : y("", !0),
582
- (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("linearGradient", {
595
+ m(l.$slots, "chart-background", {}, void 0, !0)
596
+ ], 8, Jt)) : y("", !0),
597
+ (u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("linearGradient", {
583
598
  x1: "0%",
584
599
  y1: "0%",
585
600
  x2: "100%",
@@ -589,53 +604,53 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
589
604
  n("stop", {
590
605
  offset: "0%",
591
606
  "stop-color": t.color
592
- }, null, 8, Jt),
607
+ }, null, 8, Zt),
593
608
  n("stop", {
594
609
  offset: "100%",
595
- "stop-color": r(ge)(r(Ot)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
596
- }, null, 8, Qt)
597
- ], 8, Kt))), 256)),
598
- l.$slots.pattern ? (u(), i("g", Zt, [
599
- (u(!0), i(j, null, q(z.value, (t) => (u(), i("defs", null, [
600
- b(l.$slots, "pattern", xt({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
610
+ "stop-color": r(ge)(r(Ft)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
611
+ }, null, 8, el)
612
+ ], 8, Qt))), 256)),
613
+ l.$slots.pattern ? (u(), i("g", tl, [
614
+ (u(!0), i(q, null, Y(A.value, (t) => (u(), i("defs", null, [
615
+ m(l.$slots, "pattern", Ct({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
601
616
  ]))), 256))
602
617
  ])) : y("", !0),
603
- (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
618
+ (u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("g", null, [
604
619
  n("rect", {
605
- x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
620
+ x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : x(t.value) <= 0 ? 1e-4 : x(t.value)) : s.value.left),
606
621
  y: s.value.top + (f.value + v.value) * o,
607
- width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
622
+ width: r(N)(x(t.value) <= 0 ? 1e-4 : x(t.value)),
608
623
  height: v.value <= 0 ? 1e-4 : v.value,
609
624
  fill: e.value.style.chart.layout.bars.underlayerColor,
610
625
  rx: e.value.style.chart.layout.bars.borderRadius,
611
- class: B({ animated: e.value.useCssAnimation })
612
- }, null, 10, el)
626
+ class: R({ animated: e.value.useCssAnimation })
627
+ }, null, 10, ll)
613
628
  ]))), 256)),
614
- (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
629
+ (u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("g", null, [
615
630
  n("rect", {
616
- x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
631
+ x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : x(t.value) <= 0 ? 1e-4 : x(t.value)) : s.value.left),
617
632
  y: s.value.top + (f.value + v.value) * o,
618
- width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
633
+ width: r(N)(x(t.value) <= 0 ? 1e-4 : x(t.value)),
619
634
  height: v.value <= 0 ? 1e-4 : v.value,
620
635
  fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${C.value}_${o})` : r(ge)(t.color, e.value.style.chart.layout.bars.fillOpacity),
621
636
  rx: e.value.style.chart.layout.bars.borderRadius,
622
637
  stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
623
638
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
624
- class: B({ animated: e.value.useCssAnimation })
625
- }, null, 10, tl),
639
+ class: R({ animated: e.value.useCssAnimation })
640
+ }, null, 10, al),
626
641
  l.$slots.pattern ? (u(), i("rect", {
627
642
  key: 0,
628
- x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
643
+ x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : x(t.value) <= 0 ? 1e-4 : x(t.value)) : s.value.left),
629
644
  y: s.value.top + (f.value + v.value) * o,
630
- width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
645
+ width: r(N)(x(t.value) <= 0 ? 1e-4 : x(t.value)),
631
646
  height: v.value <= 0 ? 1e-4 : v.value,
632
647
  fill: `url(#pattern_${C.value}_${t.absoluteIndex})`,
633
648
  rx: e.value.style.chart.layout.bars.borderRadius,
634
649
  stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
635
650
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
636
- class: B({ animated: e.value.useCssAnimation })
637
- }, null, 10, ll)) : y("", !0),
638
- (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== z.value.length - 1 ? (u(), i("line", {
651
+ class: R({ animated: e.value.useCssAnimation })
652
+ }, null, 10, ol)) : y("", !0),
653
+ (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== A.value.length - 1 ? (u(), i("line", {
639
654
  key: 1,
640
655
  x1: 0,
641
656
  x2: s.value.left,
@@ -644,8 +659,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
644
659
  stroke: e.value.style.chart.layout.separators.color,
645
660
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
646
661
  "stroke-linecap": "round"
647
- }, null, 8, al)) : y("", !0),
648
- A.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
662
+ }, null, 8, nl)) : y("", !0),
663
+ B.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
649
664
  key: 2,
650
665
  x1: s.value.left + s.value.width / 2,
651
666
  x2: s.value.left + s.value.width / 2,
@@ -654,15 +669,15 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
654
669
  stroke: e.value.style.chart.layout.separators.color,
655
670
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
656
671
  "stroke-linecap": "round"
657
- }, null, 8, ol)) : y("", !0),
672
+ }, null, 8, ul)) : y("", !0),
658
673
  n("text", {
659
- x: A.value ? s.value.left + s.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : yt(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
674
+ x: B.value ? s.value.left + s.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : gt(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
660
675
  y: s.value.top + (f.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
661
- "text-anchor": !A.value || t.sign === -1 ? "start" : "end",
676
+ "text-anchor": !B.value || t.sign === -1 ? "start" : "end",
662
677
  "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
663
678
  fill: e.value.style.chart.layout.bars.dataLabels.color,
664
679
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
665
- }, h(Be(t.value, t, o, t.sign)), 9, nl),
680
+ }, h(Be(t.value, t, o, t.sign)), 9, sl),
666
681
  (t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), i("text", {
667
682
  key: 3,
668
683
  "text-anchor": "end",
@@ -671,7 +686,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
671
686
  "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
672
687
  fill: e.value.style.chart.layout.bars.nameLabels.color,
673
688
  "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
674
- }, h(t.name), 9, ul)) : y("", !0),
689
+ }, h(t.name), 9, rl)) : y("", !0),
675
690
  t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
676
691
  key: 4,
677
692
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
@@ -680,7 +695,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
680
695
  fill: e.value.style.chart.layout.bars.parentLabels.color,
681
696
  "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
682
697
  "text-anchor": "start"
683
- }, h(J(t, o).name), 9, sl)) : y("", !0),
698
+ }, h(J(t, o).name), 9, il)) : y("", !0),
684
699
  t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
685
700
  key: 5,
686
701
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
@@ -689,25 +704,25 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
689
704
  fill: e.value.style.chart.layout.bars.parentLabels.color,
690
705
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
691
706
  "text-anchor": "start"
692
- }, h(Be(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, rl)) : y("", !0),
707
+ }, h(Be(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, dl)) : y("", !0),
693
708
  n("rect", {
694
709
  x: 0,
695
710
  y: s.value.top + (f.value + v.value) * o - f.value / 2,
696
711
  width: g.value.width <= 0 ? 1e-4 : g.value.width,
697
712
  height: v.value + f.value <= 0 ? 1e-4 : v.value + f.value,
698
713
  fill: ve.value === t.id ? r(ge)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
699
- onMouseenter: (_) => ft(t, o),
700
- onMouseleave: a[1] || (a[1] = (_) => {
701
- rt.value = null, ue.value = !1, ve.value = null;
714
+ onMouseenter: (b) => bt(t, o),
715
+ onMouseleave: a[1] || (a[1] = (b) => {
716
+ it.value = null, ue.value = !1, ve.value = null;
702
717
  })
703
- }, null, 40, il)
718
+ }, null, 40, vl)
704
719
  ]))), 256)),
705
- b(l.$slots, "svg", { svg: g.value }, void 0, !0)
706
- ], 14, qt)) : y("", !0),
707
- l.$slots.watermark ? (u(), i("div", dl, [
708
- b(l.$slots, "watermark", W(G({ isPrinting: r(Te) || r(Le) })), void 0, !0)
720
+ m(l.$slots, "svg", { svg: g.value }, void 0, !0)
721
+ ], 14, Kt)) : y("", !0),
722
+ l.$slots.watermark ? (u(), i("div", cl, [
723
+ m(l.$slots, "watermark", G(j({ isPrinting: r(Te) || r(Le) })), void 0, !0)
709
724
  ])) : y("", !0),
710
- ee.value ? y("", !0) : (u(), R(r(lt), {
725
+ ee.value ? y("", !0) : (u(), D(r(at), {
711
726
  key: 7,
712
727
  config: {
713
728
  type: "verticalBar",
@@ -727,34 +742,34 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
727
742
  ref_key: "chartLegend",
728
743
  ref: re
729
744
  }, [
730
- (u(), R(qe, {
745
+ (u(), D(Ye, {
731
746
  key: `legend_bottom_${ie.value}`,
732
- legendSet: F.value,
747
+ legendSet: M.value,
733
748
  config: Me.value,
734
749
  onClickMarker: a[2] || (a[2] = ({ legend: t }) => K(t.id))
735
750
  }, pe({
736
- item: k(({ legend: t, index: o }) => [
751
+ item: _(({ legend: t, index: o }) => [
737
752
  n("div", {
738
- onClick: (_) => K(t.id),
753
+ onClick: (b) => K(t.id),
739
754
  style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
740
755
  }, h(t.name) + ": " + h(r(ne)(
741
756
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
742
757
  t.value,
743
- r(E)({
758
+ r(U)({
744
759
  p: e.value.style.chart.legend.prefix,
745
760
  v: t.value,
746
761
  s: e.value.style.chart.legend.suffix,
747
762
  r: e.value.style.chart.legend.roundingValue
748
763
  }),
749
764
  { datapoint: t, seriesIndex: o }
750
- )), 13, vl)
765
+ )), 13, hl)
751
766
  ]),
752
767
  _: 2
753
768
  }, [
754
769
  l.$slots.pattern ? {
755
770
  name: "legend-pattern",
756
- fn: k(({ legend: t, index: o }) => [
757
- Q(Ye, {
771
+ fn: _(({ legend: t, index: o }) => [
772
+ Q(Ke, {
758
773
  shape: t.shape,
759
774
  radius: 30,
760
775
  stroke: "none",
@@ -766,16 +781,16 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
766
781
  } : void 0
767
782
  ]), 1032, ["legendSet", "config"]))
768
783
  ], 512)) : y("", !0),
769
- b(l.$slots, "legend", { legend: F.value }, void 0, !0),
784
+ m(l.$slots, "legend", { legend: M.value }, void 0, !0),
770
785
  l.$slots.source ? (u(), i("div", {
771
786
  key: 9,
772
787
  ref_key: "source",
773
788
  ref: me,
774
789
  dir: "auto"
775
790
  }, [
776
- b(l.$slots, "source", {}, void 0, !0)
791
+ m(l.$slots, "source", {}, void 0, !0)
777
792
  ], 512)) : y("", !0),
778
- Q(r(at), {
793
+ Q(r(ot), {
779
794
  show: $.value.showTooltip && ue.value && S.value.length < T.dataset.length,
780
795
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
781
796
  color: e.value.style.chart.tooltip.color,
@@ -786,20 +801,20 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
786
801
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
787
802
  position: e.value.style.chart.tooltip.position,
788
803
  offsetY: e.value.style.chart.tooltip.offsetY,
789
- parent: Y.value,
804
+ parent: I.value,
790
805
  content: se.value,
791
- isFullscreen: X.value,
806
+ isFullscreen: H.value,
792
807
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
793
808
  }, {
794
- "tooltip-before": k(() => [
795
- b(l.$slots, "tooltip-before", W(G({ ...ce.value })), void 0, !0)
809
+ "tooltip-before": _(() => [
810
+ m(l.$slots, "tooltip-before", G(j({ ...ce.value })), void 0, !0)
796
811
  ]),
797
- "tooltip-after": k(() => [
798
- b(l.$slots, "tooltip-after", W(G({ ...ce.value })), void 0, !0)
812
+ "tooltip-after": _(() => [
813
+ m(l.$slots, "tooltip-after", G(j({ ...ce.value })), void 0, !0)
799
814
  ]),
800
815
  _: 3
801
816
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
802
- ee.value ? (u(), R(Xt, {
817
+ ee.value ? (u(), D(Ht, {
803
818
  key: 10,
804
819
  hideDetails: "",
805
820
  config: {
@@ -815,21 +830,21 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
815
830
  }
816
831
  }
817
832
  }, {
818
- content: k(() => [
833
+ content: _(() => [
819
834
  n("div", {
820
835
  ref_key: "tableContainer",
821
836
  ref: Ve,
822
837
  class: "vue-ui-vertical-bar-table atom-data-table"
823
838
  }, [
824
- n("div", cl, [
839
+ n("div", pl, [
825
840
  n("div", {
826
841
  role: "button",
827
842
  tabindex: "0",
828
843
  style: c(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
829
844
  onClick: a[3] || (a[3] = (t) => $.value.showTable = !1),
830
- onKeypress: a[4] || (a[4] = Ct((t) => $.value.showTable = !1, ["enter"]))
845
+ onKeypress: a[4] || (a[4] = Tt((t) => $.value.showTable = !1, ["enter"]))
831
846
  }, [
832
- Q(r(Ze), {
847
+ Q(r(et), {
833
848
  name: "close",
834
849
  stroke: e.value.table.th.color,
835
850
  "stroke-width": 2
@@ -837,25 +852,25 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
837
852
  ], 36),
838
853
  n("div", {
839
854
  style: { width: "100%", "container-type": "inline-size" },
840
- class: B({ "vue-ui-responsive": Ie.value })
855
+ class: R({ "vue-ui-responsive": Ie.value })
841
856
  }, [
842
- n("table", hl, [
857
+ n("table", yl, [
843
858
  n("caption", {
844
859
  style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
845
860
  class: "vue-ui-data-table__caption"
846
861
  }, [
847
- Tt(h(e.value.style.chart.title.text) + " ", 1),
848
- e.value.style.chart.title.subtitle.text ? (u(), i("span", pl, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
862
+ Lt(h(e.value.style.chart.title.text) + " ", 1),
863
+ e.value.style.chart.title.subtitle.text ? (u(), i("span", gl, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
849
864
  ], 4),
850
865
  n("thead", null, [
851
866
  n("tr", {
852
867
  role: "row",
853
868
  style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
854
869
  }, [
855
- (u(!0), i(j, null, q(L.value.head, (t) => (u(), i("th", {
870
+ (u(!0), i(q, null, Y(L.value.head, (t) => (u(), i("th", {
856
871
  style: c(`outline:${e.value.table.th.outline}`)
857
872
  }, [
858
- n("div", yl, h(t), 1)
873
+ n("div", fl, h(t), 1)
859
874
  ], 4))), 256))
860
875
  ], 4),
861
876
  n("tr", null, [
@@ -883,8 +898,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
883
898
  ])
884
899
  ]),
885
900
  n("tbody", null, [
886
- (u(!0), i(j, null, q(L.value.body, (t, o) => (u(), i("tr", {
887
- class: B({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
901
+ (u(!0), i(q, null, Y(L.value.body, (t, o) => (u(), i("tr", {
902
+ class: R({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
888
903
  style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
889
904
  }, [
890
905
  n("td", {
@@ -892,56 +907,56 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
892
907
  style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
893
908
  "data-cell": L.value.head[0] ?? ""
894
909
  }, [
895
- n("div", fl, [
910
+ n("div", ml, [
896
911
  t.color ? (u(), i("span", {
897
912
  key: 0,
898
913
  style: c(`color:${t.color};margin-right:3px`)
899
914
  }, "⬤", 4)) : y("", !0),
900
915
  n("span", null, h(t.parentName), 1)
901
916
  ])
902
- ], 12, gl),
917
+ ], 12, bl),
903
918
  n("td", {
904
919
  class: "vue-ui-data-table__tbody__td",
905
920
  style: c(`outline:${e.value.table.td.outline}`),
906
921
  "data-cell": L.value.head[1] ?? ""
907
922
  }, [
908
- n("div", ml, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
909
- ], 12, bl),
923
+ n("div", _l, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
924
+ ], 12, kl),
910
925
  n("td", {
911
926
  class: "vue-ui-data-table__tbody__td",
912
927
  style: c(`outline:${e.value.table.td.outline}`),
913
928
  "data-cell": L.value.head[2] ?? ""
914
929
  }, [
915
- n("div", _l, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
916
- ], 12, kl),
930
+ n("div", wl, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
931
+ ], 12, $l),
917
932
  n("td", {
918
933
  class: "vue-ui-data-table__tbody__td",
919
934
  style: c(`outline:${e.value.table.td.outline}`),
920
935
  "data-cell": L.value.head[3] ?? ""
921
936
  }, [
922
- n("div", wl, h(t.childName), 1)
923
- ], 12, $l),
937
+ n("div", Cl, h(t.childName), 1)
938
+ ], 12, xl),
924
939
  n("td", {
925
940
  class: "vue-ui-data-table__tbody__td",
926
941
  style: c(`outline:${e.value.table.td.outline}`),
927
942
  "data-cell": L.value.head[4] ?? ""
928
943
  }, [
929
- n("div", Cl, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
930
- ], 12, xl),
944
+ n("div", Ll, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
945
+ ], 12, Tl),
931
946
  n("td", {
932
947
  class: "vue-ui-data-table__tbody__td",
933
948
  style: c(`outline:${e.value.table.td.outline}`),
934
949
  "data-cell": L.value.head[5] ?? ""
935
950
  }, [
936
- n("div", Ll, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
937
- ], 12, Tl),
951
+ n("div", Sl, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
952
+ ], 12, Nl),
938
953
  n("td", {
939
954
  class: "vue-ui-data-table__tbody__td",
940
955
  style: c(`outline:${e.value.table.td.outline}`),
941
956
  "data-cell": L.value.head[6] ?? ""
942
957
  }, [
943
- n("div", Sl, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
944
- ], 12, Nl)
958
+ n("div", Vl, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
959
+ ], 12, Pl)
945
960
  ], 6))), 256))
946
961
  ])
947
962
  ])
@@ -951,9 +966,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
951
966
  ]),
952
967
  _: 1
953
968
  }, 8, ["config"])) : y("", !0)
954
- ], 46, Gt));
969
+ ], 46, qt));
955
970
  }
956
- }, Xl = /* @__PURE__ */ Wt(Pl, [["__scopeId", "data-v-fd58c8ff"]]);
971
+ }, Gl = /* @__PURE__ */ jt(Il, [["__scopeId", "data-v-cd700405"]]);
957
972
  export {
958
- Xl as default
973
+ Gl as default
959
974
  };