vue-data-ui 3.1.1 → 3.1.3

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 (95) hide show
  1. package/dist/{Arrow-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
  3. package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
  4. package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
  5. package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
  6. package/dist/Legend-5qvgVkrY.js +85 -0
  7. package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
  8. package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
  9. package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
  10. package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
  11. package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
  12. package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
  13. package/dist/Title-CqYBs02Y.js +88 -0
  14. package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
  15. package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
  16. package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
  17. package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
  18. package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
  19. package/dist/pdf-BG8PiGFH.js +79 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +28 -3
  22. package/dist/types/vue-data-ui.d.ts +28 -3
  23. package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
  24. package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
  25. package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
  26. package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
  29. package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
  31. package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
  32. package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
  33. package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
  34. package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
  36. package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
  37. package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
  38. package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
  39. package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
  40. package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
  42. package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
  43. package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
  44. package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
  45. package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
  46. package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
  47. package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
  48. package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
  50. package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
  51. package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
  53. package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
  54. package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
  55. package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
  56. package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
  58. package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
  59. package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
  60. package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
  61. package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
  64. package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
  65. package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
  66. package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
  67. package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
  75. package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
  76. package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
  79. package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
  80. package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
  82. package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
  83. package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
  84. package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
  85. package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
  86. package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
  87. package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
  88. package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
  89. package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
  90. package/package.json +1 -1
  91. package/dist/Legend-8_V5egWW.js +0 -72
  92. package/dist/Title-Dz-j6ERs.js +0 -61
  93. package/dist/pdf-Cjsn5GEE.js +0 -61
  94. package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
  95. package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
@@ -1,19 +1,19 @@
1
- import { defineAsyncComponent as x, ref as o, computed as i, toRefs as ht, onMounted as pt, watch as Oe, createElementBlock as v, openBlock as n, unref as u, normalizeStyle as R, normalizeClass as G, createBlock as T, createCommentVNode as c, createElementVNode as k, createVNode as te, createSlots as Ie, withCtx as d, renderSlot as p, normalizeProps as I, guardReactiveProps as L, Fragment as Le, renderList as De, Teleport as gt, toDisplayString as D, resolveDynamicComponent as yt, mergeProps as ft, createTextVNode as Ae, nextTick as Ne } from "vue";
2
- import { u as bt, c as Fe, t as mt, o as kt, f as Be, g as wt, a as Ct, p as H, b as $t, d as xt, G as Ve, e as Tt, M as Pt, i as P, X as _t, k as Me, y as Ee, v as St, w as Ot, z as It } from "./index-BKQqb9lF.js";
3
- import { t as Lt, u as Dt } from "./useResponsive-DfdjqQps.js";
4
- import { u as At, B as Nt } from "./BaseScanner-BgWxam9d.js";
5
- import { u as Ft } from "./usePrinter-BzuXiubT.js";
6
- import { u as We } from "./useNestedProp-aBOhgs4U.js";
7
- import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
9
- import Mt from "./img-gBDz7xQQ.js";
10
- import Et from "./Title-Dz-j6ERs.js";
11
- import Wt from "./Legend-8_V5egWW.js";
1
+ import { defineAsyncComponent as x, ref as o, computed as i, toRefs as pt, onMounted as gt, watch as De, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as z, normalizeClass as G, createBlock as T, createCommentVNode as v, createElementVNode as k, createVNode as le, createSlots as Le, withCtx as d, renderSlot as p, normalizeProps as I, guardReactiveProps as D, Fragment as Ae, renderList as Ne, Teleport as ft, toDisplayString as L, resolveDynamicComponent as yt, mergeProps as bt, createTextVNode as Fe, nextTick as Be } from "vue";
2
+ import { u as mt, c as Ve, t as kt, o as wt, f as Me, g as Ct, a as $t, p as H, b as xt, d as Tt, G as Ee, e as _t, M as Pt, i as _, X as Ot, k as Re, y as We, v as St, w as It, z as Dt } from "./index-CaxArMHL.js";
3
+ import { t as Lt, u as At } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Nt, B as Ft } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as Bt } from "./usePrinter-BYtPmEo8.js";
6
+ import { u as ze } from "./useNestedProp-tWT02_6S.js";
7
+ import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Et from "./img-DSrvx9J6.js";
10
+ import Rt from "./Title-CqYBs02Y.js";
11
+ import Wt from "./Legend-5qvgVkrY.js";
12
12
  import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "height"], Xt = ["id"], Yt = ["stdDeviation"], jt = ["d", "stroke", "stroke-width"], qt = ["d", "stroke", "stroke-width"], Jt = ["filter"], Kt = ["d", "stroke", "stroke-width"], Qt = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Zt = {
13
+ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "height"], Yt = ["id"], jt = ["stdDeviation"], qt = ["d", "stroke", "stroke-width"], Jt = ["d", "stroke", "stroke-width"], Kt = ["filter"], Qt = ["d", "stroke", "stroke-width"], Zt = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], el = {
14
14
  key: 4,
15
15
  class: "vue-data-ui-watermark"
16
- }, el = ["id"], tl = ["onClick"], ll = ["innerHTML"], al = {
16
+ }, tl = ["id"], ll = ["onClick"], al = ["innerHTML"], ol = {
17
17
  __name: "vue-ui-galaxy",
18
18
  props: {
19
19
  config: {
@@ -30,14 +30,14 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
30
30
  }
31
31
  },
32
32
  emits: ["selectLegend", "selectDatapoint"],
33
- setup(ze, { expose: Re, emit: Ge }) {
34
- const He = x(() => import("./Tooltip-BTGOEC7w.js")), Ue = x(() => import("./BaseIcon-DLesaZpW.js")), Xe = x(() => import("./vue-ui-accordion-B5QeV3BK.js")), Ye = x(() => import("./DataTable-BAf4Obr9.js")), je = x(() => import("./PenAndPaper-B6OvfyHH.js")), qe = x(() => import("./UserOptions-CsDlFB0L.js")), Je = x(() => import("./PackageVersion-Cv_ypT0N.js")), Ke = x(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_galaxy: Qe } = bt(), w = ze, f = o(Fe()), b = o(null), Ze = o(null), U = o(!1), X = o(""), _ = o(null), le = o(0), ae = o(0), oe = o(0), se = o(0), ue = o(null), ne = o(null), re = o(null), ie = o(null), A = o(null), V = o(null), ve = o(!1), N = o(null), ce = i(() => !!w.dataset && w.dataset.length), e = o(q()), { loading: Y, FINAL_DATASET: de } = At({
35
- ...ht(w),
33
+ setup(Ge, { expose: He, emit: Ue }) {
34
+ const Xe = x(() => import("./Tooltip-CP0tVHAf.js")), Ye = x(() => import("./BaseIcon-BcOSijbz.js")), je = x(() => import("./vue-ui-accordion-DUlNpLir.js")), qe = x(() => import("./DataTable-Cm8Tt9PQ.js")), Je = x(() => import("./PenAndPaper-CyH7Ip2i.js")), Ke = x(() => import("./UserOptions-ZmwlARCV.js")), Qe = x(() => import("./PackageVersion-0XlRFsI_.js")), Ze = x(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_galaxy: et } = mt(), w = Ge, y = o(Ve()), b = o(null), U = o(!1), X = o(""), P = o(null), ae = o(0), oe = o(0), se = o(0), ue = o(0), ne = o(null), re = o(null), ie = o(null), ce = o(null), A = o(null), V = o(null), ve = o(!1), N = o(null), Y = o(null), de = i(() => !!w.dataset && w.dataset.length), e = o(J()), { loading: j, FINAL_DATASET: he } = Nt({
35
+ ...pt(w),
36
36
  FINAL_CONFIG: e,
37
- prepareConfig: q,
37
+ prepareConfig: J,
38
38
  callback: () => {
39
39
  Promise.resolve().then(async () => {
40
- await Ne(), g.value.showTable = e.value.table.show;
40
+ await Be(), g.value.showTable = e.value.table.show;
41
41
  });
42
42
  },
43
43
  skeletonDataset: [
@@ -45,7 +45,7 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
45
45
  { name: "_", values: [13], color: "#C4C4C4" },
46
46
  { name: "_", values: [8], color: "#ADADAD" }
47
47
  ],
48
- skeletonConfig: mt({
48
+ skeletonConfig: kt({
49
49
  defaultConfig: e.value,
50
50
  userConfig: {
51
51
  userOptions: { show: !1 },
@@ -62,36 +62,36 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
62
62
  }
63
63
  })
64
64
  });
65
- pt(() => {
66
- ve.value = !0, pe();
65
+ gt(() => {
66
+ ve.value = !0, ge();
67
67
  });
68
- const he = i(() => !!e.value.debug);
69
- function pe() {
70
- if (kt(w.dataset) ? Be({
68
+ const pe = i(() => !!e.value.debug);
69
+ function ge() {
70
+ if (wt(w.dataset) ? Me({
71
71
  componentName: "VueUiGalaxy",
72
72
  type: "dataset",
73
- debug: he.value
73
+ debug: pe.value
74
74
  }) : w.dataset.forEach((t, a) => {
75
- wt({
75
+ Ct({
76
76
  datasetObject: t,
77
77
  requiredAttributes: ["name", "values"]
78
78
  }).forEach((l) => {
79
- Be({
79
+ Me({
80
80
  componentName: "VueUiGalaxy",
81
81
  type: "datasetSerieAttribute",
82
82
  property: l,
83
83
  index: a,
84
- debug: he.value
84
+ debug: pe.value
85
85
  });
86
86
  });
87
87
  }), e.value.responsive) {
88
88
  const t = Lt(() => {
89
- const { width: a, height: l } = Dt({
89
+ const { width: a, height: l } = At({
90
90
  chart: b.value,
91
- title: e.value.style.chart.title.text ? ue.value : null,
92
- legend: e.value.style.chart.legend.show ? ne.value : null,
93
- noTitle: ie.value,
94
- source: re.value
91
+ title: e.value.style.chart.title.text ? ne.value : null,
92
+ legend: e.value.style.chart.legend.show ? re.value : null,
93
+ noTitle: ce.value,
94
+ source: ie.value
95
95
  });
96
96
  requestAnimationFrame(() => {
97
97
  M.value = Math.max(0.1, a), E.value = Math.max(0.1, l - 12);
@@ -100,66 +100,66 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
100
100
  A.value && (V.value && A.value.unobserve(V.value), A.value.disconnect()), A.value = new ResizeObserver(t), V.value = b.value.parentNode, A.value.observe(V.value);
101
101
  }
102
102
  }
103
- const { userOptionsVisible: j, setUserOptionsVisibility: ge, keepUserOptionState: ye } = Bt({ config: e.value }), { svgRef: fe } = Vt({ config: e.value.style.chart.title });
104
- function q() {
105
- const t = We({
103
+ const { userOptionsVisible: q, setUserOptionsVisibility: fe, keepUserOptionState: ye } = Vt({ config: e.value }), { svgRef: be } = Mt({ config: e.value.style.chart.title });
104
+ function J() {
105
+ const t = ze({
106
106
  userConfig: w.config,
107
- defaultConfig: Qe
107
+ defaultConfig: et
108
108
  });
109
109
  return t.theme ? {
110
- ...We({
111
- userConfig: $t.vue_ui_galaxy[t.theme] || w.config,
110
+ ...ze({
111
+ userConfig: xt.vue_ui_galaxy[t.theme] || w.config,
112
112
  defaultConfig: t
113
113
  }),
114
- customPalette: Ct[t.theme] || H
114
+ customPalette: $t[t.theme] || H
115
115
  } : t;
116
116
  }
117
- Oe(() => w.config, (t) => {
118
- e.value = q(), j.value = !e.value.userOptions.showOnChartHover, pe(), ae.value += 1, oe.value += 1, se.value += 1, g.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, g.value.showTable = e.value.table.show, g.value.showTooltip = e.value.style.chart.tooltip.show;
117
+ De(() => w.config, (t) => {
118
+ e.value = J(), q.value = !e.value.userOptions.showOnChartHover, ge(), oe.value += 1, se.value += 1, ue.value += 1, g.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, g.value.showTable = e.value.table.show, g.value.showTooltip = e.value.style.chart.tooltip.show;
119
119
  }, { deep: !0 });
120
- const { isPrinting: be, isImaging: me, generatePdf: ke, generateImage: we } = Ft({
121
- elementId: `galaxy_${f.value}`,
120
+ const { isPrinting: me, isImaging: ke, generatePdf: we, generateImage: Ce } = Bt({
121
+ elementId: `galaxy_${y.value}`,
122
122
  fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
123
123
  options: e.value.userOptions.print
124
- }), et = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), tt = i(() => xt(e.value.customPalette)), g = o({
124
+ }), tt = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), lt = i(() => Tt(e.value.customPalette)), g = o({
125
125
  dataLabels: {
126
126
  show: e.value.style.chart.layout.labels.dataLabels.show
127
127
  },
128
128
  showTable: e.value.table.show,
129
129
  showTooltip: e.value.style.chart.tooltip.show
130
- }), M = o(250), E = o(180), lt = o(0), at = o(0), C = i(() => ({
130
+ }), M = o(250), E = o(180), at = o(0), ot = o(0), C = i(() => ({
131
131
  width: M.value,
132
132
  height: E.value,
133
- viewBox: `${lt.value} ${at.value} ${M.value} ${E.value}`
134
- })), Ce = Ge, y = o([]);
135
- function J(t) {
136
- y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), Ce("selectLegend", F.value.map((a) => ({
133
+ viewBox: `${at.value} ${ot.value} ${M.value} ${E.value}`
134
+ })), $e = Ue, f = o([]);
135
+ function K(t) {
136
+ f.value.includes(t.id) ? f.value = f.value.filter((a) => a !== t.id) : f.value.push(t.id), $e("selectLegend", F.value.map((a) => ({
137
137
  name: a.name,
138
138
  color: a.color,
139
139
  value: a.value
140
140
  })));
141
141
  }
142
- const S = i(() => de.value.map((t, a) => ({
142
+ const O = i(() => he.value.map((t, a) => ({
143
143
  name: t.name,
144
- color: Tt(t.color) || tt.value[a] || H[a] || H[a % H.length],
145
- value: t.values ? Ve(t.values).reduce((l, s) => l + s, 0) : 0,
146
- absoluteValues: Ve(t.values),
147
- id: Fe()
144
+ color: _t(t.color) || lt.value[a] || H[a] || H[a % H.length],
145
+ value: t.values ? Ee(t.values).reduce((l, s) => l + s, 0) : 0,
146
+ absoluteValues: Ee(t.values),
147
+ id: Ve()
148
148
  })).sort((t, a) => a.value - t.value).map((t, a) => ({
149
149
  ...t,
150
150
  absoluteIndex: a
151
151
  })));
152
- function ot() {
153
- return S.value.map((t) => ({
152
+ function st() {
153
+ return O.value.map((t) => ({
154
154
  name: t.name,
155
155
  color: t.color,
156
156
  value: t.value
157
157
  }));
158
158
  }
159
- const m = i(() => S.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), $e = o(190), xe = i(() => S.value.filter((t) => !y.value.includes(t.id))), st = i(
159
+ const m = i(() => O.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), xe = o(190), Te = i(() => O.value.filter((t) => !f.value.includes(t.id))), ut = i(
160
160
  () => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
161
- ), ut = i(() => Pt({
162
- maxPoints: $e.value,
161
+ ), nt = i(() => Pt({
162
+ maxPoints: xe.value,
163
163
  a: e.value.style.chart.layout.arcs.a ?? 6,
164
164
  b: e.value.style.chart.layout.arcs.b ?? 6,
165
165
  angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
@@ -167,86 +167,86 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
167
167
  startY: C.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
168
168
  boxWidth: C.value.width,
169
169
  boxHeight: C.value.height,
170
- padding: st.value
170
+ padding: ut.value
171
171
  })), F = i(() => {
172
172
  const t = [];
173
- for (let a = 0; a < xe.value.length; a += 1) {
174
- const l = xe.value[a], s = l.value / m.value * $e.value + (a > 0 && t.length ? t[a - 1].points : 0);
173
+ for (let a = 0; a < Te.value.length; a += 1) {
174
+ const l = Te.value[a], s = l.value / m.value * xe.value + (a > 0 && t.length ? t[a - 1].points : 0);
175
175
  t.push({
176
176
  points: s,
177
177
  ...l,
178
178
  seriesIndex: a,
179
179
  proportion: l.value / m.value,
180
- path: ut.value(s)
180
+ path: nt.value(s)
181
181
  });
182
182
  }
183
- return t.filter((a) => !y.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
183
+ return t.filter((a) => !f.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
184
184
  });
185
- function K(t) {
186
- const a = Math.min(M.value, E.value), l = _.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, s = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, h = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
185
+ function Q(t) {
186
+ const a = Math.min(M.value, E.value), l = P.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, s = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, h = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
187
187
  return {
188
188
  border: s / 180 * a,
189
189
  path: r / 180 * a,
190
190
  blur: h / 180 * a
191
191
  };
192
192
  }
193
- const O = o(!1);
194
- function Te(t) {
195
- O.value = t, le.value += 1;
196
- }
197
- const Q = o(null);
198
- function nt(t) {
199
- U.value = !1, _.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
193
+ const S = o(!1);
194
+ function _e(t) {
195
+ S.value = t, ae.value += 1;
200
196
  }
197
+ const Z = o(null);
201
198
  function rt(t) {
202
- Ce("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
199
+ U.value = !1, P.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
200
+ }
201
+ function it(t) {
202
+ $e("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
203
203
  }
204
- function it({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
205
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), Q.value = {
204
+ function ct({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
205
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), Z.value = {
206
206
  datapoint: t,
207
207
  seriesIndex: l,
208
- series: S.value,
208
+ series: O.value,
209
209
  config: e.value
210
- }, U.value = s, _.value = t.id;
210
+ }, U.value = s, P.value = t.id;
211
211
  let r = "";
212
212
  const h = e.value.style.chart.tooltip.customFormat;
213
- Ee(h) && It(() => h({
213
+ We(h) && Dt(() => h({
214
214
  seriesIndex: l,
215
215
  datapoint: t,
216
- series: S.value,
216
+ series: O.value,
217
217
  config: e.value
218
218
  })) ? X.value = h({
219
219
  seriesIndex: l,
220
220
  datapoint: t,
221
- series: S.value,
221
+ series: O.value,
222
222
  config: e.value
223
- }) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Me(
223
+ }) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Re(
224
224
  e.value.style.chart.layout.labels.dataLabels.formatter,
225
225
  t.value,
226
- P({
226
+ _({
227
227
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
228
228
  v: t.value,
229
229
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
230
230
  r: e.value.style.chart.tooltip.roundingValue
231
231
  }),
232
232
  { datapoint: t, seriesIndex: l }
233
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${P({
233
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${_({
234
234
  v: t.proportion * 100,
235
235
  s: "%",
236
236
  r: e.value.style.chart.tooltip.roundingPercentage
237
- })})</span></div>` : r += `<b>${P({
237
+ })})</span></div>` : r += `<b>${_({
238
238
  v: t.proportion * 100,
239
239
  s: "%",
240
240
  r: e.value.style.chart.tooltip.roundingPercentage
241
241
  })}</b></div>`), X.value = `<div>${r}</div>`);
242
242
  }
243
- const Pe = i(() => S.value.map((t, a) => ({
243
+ const Pe = i(() => O.value.map((t, a) => ({
244
244
  ...t,
245
- proportion: (t.value || 0) / de.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
246
- opacity: y.value.includes(t.id) ? 0.5 : 1,
245
+ proportion: (t.value || 0) / he.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
246
+ opacity: f.value.includes(t.id) ? 0.5 : 1,
247
247
  shape: t.shape || "circle",
248
- segregate: () => J(t),
249
- isSegregated: y.value.includes(t.id)
248
+ segregate: () => K(t),
249
+ isSegregated: f.value.includes(t.id)
250
250
  }))), vt = i(() => ({
251
251
  cy: "galaxy-div-legend",
252
252
  backgroundColor: e.value.style.chart.legend.backgroundColor,
@@ -261,28 +261,28 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
261
261
  })), a = F.value.map((l) => l.value);
262
262
  return { head: t, body: a };
263
263
  });
264
- function Z(t = null) {
265
- Ne(() => {
264
+ function ee(t = null) {
265
+ Be(() => {
266
266
  const a = $.value.head.map((r, h) => [[
267
267
  r.name
268
268
  ], [$.value.body[h]], [isNaN($.value.body[h] / m.value) ? "-" : $.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = St(l);
269
- t ? t(s) : Ot({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
269
+ t ? t(s) : It({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
270
270
  });
271
271
  }
272
- const W = i(() => {
272
+ const R = i(() => {
273
273
  const t = [
274
274
  ' <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>',
275
- P({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
275
+ _({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
276
276
  "100%"
277
277
  ], a = $.value.head.map((r, h) => {
278
- const dt = P({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value.body[h], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
278
+ const ht = _({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value.body[h], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
279
279
  return [
280
280
  {
281
281
  color: r.color,
282
282
  name: r.name
283
283
  },
284
- dt,
285
- isNaN($.value.body[h] / m.value) ? "-" : P({
284
+ ht,
285
+ isNaN($.value.body[h] / m.value) ? "-" : _({
286
286
  v: $.value.body[h] / m.value * 100,
287
287
  s: "%",
288
288
  r: e.value.table.td.roundingPercentage
@@ -312,19 +312,19 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
312
312
  config: l
313
313
  };
314
314
  });
315
- function _e() {
315
+ function Oe() {
316
316
  g.value.showTable = !g.value.showTable;
317
317
  }
318
318
  function Se() {
319
319
  g.value.showTooltip = !g.value.showTooltip;
320
320
  }
321
- const z = o(!1);
322
- function ee() {
323
- z.value = !z.value;
321
+ const W = o(!1);
322
+ function te() {
323
+ W.value = !W.value;
324
324
  }
325
- async function ct({ scale: t = 2 } = {}) {
325
+ async function dt({ scale: t = 2 } = {}) {
326
326
  if (!b.value) return;
327
- const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: h } = await Mt({ domElement: b.value, base64: !0, img: !0, scale: t });
327
+ const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: h } = await Et({ domElement: b.value, base64: !0, img: !0, scale: t });
328
328
  return {
329
329
  imageUri: r,
330
330
  base64: h,
@@ -337,14 +337,14 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
337
337
  const B = i(() => {
338
338
  const t = e.value.table.useDialog && !e.value.table.show, a = g.value.showTable;
339
339
  return {
340
- component: t ? Ke : Xe,
340
+ component: t ? Ze : je,
341
341
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
342
342
  props: t ? {
343
343
  backgroundColor: e.value.table.th.backgroundColor,
344
344
  color: e.value.table.th.color,
345
345
  headerColor: e.value.table.th.color,
346
346
  headerBg: e.value.table.th.backgroundColor,
347
- isFullscreen: O.value,
347
+ isFullscreen: S.value,
348
348
  fullscreenParent: b.value,
349
349
  forcedWidth: Math.min(500, window.innerWidth * 0.8)
350
350
  } : {
@@ -364,50 +364,54 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
364
364
  }
365
365
  };
366
366
  });
367
- return Oe(() => g.value.showTable, (t) => {
367
+ De(() => g.value.showTable, (t) => {
368
368
  e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
369
- }), Re({
370
- getData: ot,
371
- getImage: ct,
372
- generatePdf: ke,
373
- generateCsv: Z,
374
- generateImage: we,
375
- toggleTable: _e,
369
+ });
370
+ function Ie() {
371
+ g.value.showTable = !1, Y.value && Y.value.setTableIconState(!1);
372
+ }
373
+ return He({
374
+ getData: st,
375
+ getImage: dt,
376
+ generatePdf: we,
377
+ generateCsv: ee,
378
+ generateImage: Ce,
379
+ toggleTable: Oe,
376
380
  toggleTooltip: Se,
377
- toggleAnnotator: ee,
378
- toggleFullscreen: Te
379
- }), (t, a) => (n(), v("div", {
381
+ toggleAnnotator: te,
382
+ toggleFullscreen: _e
383
+ }), (t, a) => (n(), c("div", {
380
384
  ref_key: "galaxyChart",
381
385
  ref: b,
382
- class: G(`vue-ui-galaxy ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(Y) ? "loading" : ""}`),
383
- style: R(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
384
- id: `galaxy_${f.value}`,
385
- onMouseenter: a[4] || (a[4] = () => u(ge)(!0)),
386
- onMouseleave: a[5] || (a[5] = () => u(ge)(!1))
386
+ class: G(`vue-ui-galaxy ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(j) ? "loading" : ""}`),
387
+ style: z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
388
+ id: `galaxy_${y.value}`,
389
+ onMouseenter: a[2] || (a[2] = () => u(fe)(!0)),
390
+ onMouseleave: a[3] || (a[3] = () => u(fe)(!1))
387
391
  }, [
388
- e.value.userOptions.buttons.annotator ? (n(), T(u(je), {
392
+ e.value.userOptions.buttons.annotator ? (n(), T(u(Je), {
389
393
  key: 0,
390
- svgRef: u(fe),
394
+ svgRef: u(be),
391
395
  backgroundColor: e.value.style.chart.backgroundColor,
392
396
  color: e.value.style.chart.color,
393
- active: z.value,
394
- onClose: ee
395
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
396
- et.value ? (n(), v("div", {
397
+ active: W.value,
398
+ onClose: te
399
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
400
+ tt.value ? (n(), c("div", {
397
401
  key: 1,
398
402
  ref_key: "noTitle",
399
- ref: ie,
403
+ ref: ce,
400
404
  class: "vue-data-ui-no-title-space",
401
405
  style: "height:36px; width: 100%;background:transparent"
402
- }, null, 512)) : c("", !0),
403
- e.value.style.chart.title.text ? (n(), v("div", {
406
+ }, null, 512)) : v("", !0),
407
+ e.value.style.chart.title.text ? (n(), c("div", {
404
408
  key: 2,
405
409
  ref_key: "chartTitle",
406
- ref: ue,
410
+ ref: ne,
407
411
  style: "width:100%;background:transparent;padding-bottom:24px"
408
412
  }, [
409
- (n(), T(Et, {
410
- key: `title_${ae.value}`,
413
+ (n(), T(Rt, {
414
+ key: `title_${oe.value}`,
411
415
  config: {
412
416
  title: {
413
417
  cy: "galaxy-div-title",
@@ -419,19 +423,19 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
419
423
  }
420
424
  }
421
425
  }, null, 8, ["config"]))
422
- ], 512)) : c("", !0),
426
+ ], 512)) : v("", !0),
423
427
  k("div", {
424
- id: `legend-top-${f.value}`
425
- }, null, 8, Gt),
426
- e.value.userOptions.show && ce.value && (u(ye) || u(j)) ? (n(), T(u(qe), {
427
- ref_key: "details",
428
- ref: Ze,
429
- key: `user_option_${le.value}`,
428
+ id: `legend-top-${y.value}`
429
+ }, null, 8, Ht),
430
+ e.value.userOptions.show && de.value && (u(ye) || u(q)) ? (n(), T(u(Ke), {
431
+ ref_key: "userOptionsRef",
432
+ ref: Y,
433
+ key: `user_option_${ae.value}`,
430
434
  backgroundColor: e.value.style.chart.backgroundColor,
431
435
  color: e.value.style.chart.color,
432
- isPrinting: u(be),
433
- isImaging: u(me),
434
- uid: f.value,
436
+ isPrinting: u(me),
437
+ isImaging: u(ke),
438
+ uid: y.value,
435
439
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
436
440
  hasPdf: e.value.userOptions.buttons.pdf,
437
441
  hasXls: e.value.userOptions.buttons.csv,
@@ -439,29 +443,30 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
439
443
  hasTable: e.value.userOptions.buttons.table,
440
444
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
441
445
  isTooltip: g.value.showTooltip,
442
- isFullscreen: O.value,
446
+ isFullscreen: S.value,
443
447
  titles: { ...e.value.userOptions.buttonTitles },
444
448
  chartElement: b.value,
445
449
  position: e.value.userOptions.position,
446
450
  hasAnnotator: e.value.userOptions.buttons.annotator,
447
- isAnnotation: z.value,
451
+ isAnnotation: W.value,
448
452
  callbacks: e.value.userOptions.callbacks,
449
453
  printScale: e.value.userOptions.print.scale,
450
- onToggleFullscreen: Te,
451
- onGeneratePdf: u(ke),
452
- onGenerateCsv: Z,
453
- onGenerateImage: u(we),
454
- onToggleTable: _e,
454
+ tableDialog: e.value.table.useDialog,
455
+ onToggleFullscreen: _e,
456
+ onGeneratePdf: u(we),
457
+ onGenerateCsv: ee,
458
+ onGenerateImage: u(Ce),
459
+ onToggleTable: Oe,
455
460
  onToggleTooltip: Se,
456
- onToggleAnnotator: ee,
457
- style: R({
458
- visibility: u(ye) ? u(j) ? "visible" : "hidden" : "visible"
461
+ onToggleAnnotator: te,
462
+ style: z({
463
+ visibility: u(ye) ? u(q) ? "visible" : "hidden" : "visible"
459
464
  })
460
- }, Ie({ _: 2 }, [
465
+ }, Le({ _: 2 }, [
461
466
  t.$slots.menuIcon ? {
462
467
  name: "menuIcon",
463
468
  fn: d(({ isOpen: l, color: s }) => [
464
- p(t.$slots, "menuIcon", I(L({ isOpen: l, color: s })), void 0, !0)
469
+ p(t.$slots, "menuIcon", I(D({ isOpen: l, color: s })), void 0, !0)
465
470
  ]),
466
471
  key: "0"
467
472
  } : void 0,
@@ -503,28 +508,28 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
503
508
  t.$slots.optionFullscreen ? {
504
509
  name: "optionFullscreen",
505
510
  fn: d(({ toggleFullscreen: l, isFullscreen: s }) => [
506
- p(t.$slots, "optionFullscreen", I(L({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
511
+ p(t.$slots, "optionFullscreen", I(D({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
507
512
  ]),
508
513
  key: "6"
509
514
  } : void 0,
510
515
  t.$slots.optionAnnotator ? {
511
516
  name: "optionAnnotator",
512
517
  fn: d(({ toggleAnnotator: l, isAnnotator: s }) => [
513
- p(t.$slots, "optionAnnotator", I(L({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
518
+ p(t.$slots, "optionAnnotator", I(D({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
514
519
  ]),
515
520
  key: "7"
516
521
  } : void 0
517
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
518
- (n(), v("svg", {
522
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
523
+ (n(), c("svg", {
519
524
  ref_key: "svgRef",
520
- ref: fe,
521
- xmlns: u(_t),
522
- class: G({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
525
+ ref: be,
526
+ xmlns: u(Ot),
527
+ class: G({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
523
528
  viewBox: C.value.viewBox,
524
- style: R(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
529
+ style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
525
530
  }, [
526
- te(u(Je)),
527
- t.$slots["chart-background"] ? (n(), v("foreignObject", {
531
+ le(u(Qe)),
532
+ t.$slots["chart-background"] ? (n(), c("foreignObject", {
528
533
  key: 0,
529
534
  x: 0,
530
535
  y: 0,
@@ -535,10 +540,10 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
535
540
  }
536
541
  }, [
537
542
  p(t.$slots, "chart-background", {}, void 0, !0)
538
- ], 8, Ut)) : c("", !0),
543
+ ], 8, Xt)) : v("", !0),
539
544
  k("defs", null, [
540
545
  k("filter", {
541
- id: `blur_${f.value}`,
546
+ id: `blur_${y.value}`,
542
547
  x: "-50%",
543
548
  y: "-50%",
544
549
  width: "200%",
@@ -547,115 +552,115 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
547
552
  k("feGaussianBlur", {
548
553
  in: "SourceGraphic",
549
554
  stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
550
- }, null, 8, Yt)
551
- ], 8, Xt)
555
+ }, null, 8, jt)
556
+ ], 8, Yt)
552
557
  ]),
553
- (n(!0), v(Le, null, De(F.value, (l) => (n(), v("g", null, [
554
- l.value ? (n(), v("path", {
558
+ (n(!0), c(Ae, null, Ne(F.value, (l) => (n(), c("g", null, [
559
+ l.value ? (n(), c("path", {
555
560
  key: 0,
556
561
  d: l.path,
557
562
  fill: "none",
558
563
  stroke: e.value.style.chart.backgroundColor,
559
- "stroke-width": K(l).border,
564
+ "stroke-width": Q(l).border,
560
565
  "stroke-linecap": "round"
561
- }, null, 8, jt)) : c("", !0),
562
- l.value ? (n(), v("path", {
566
+ }, null, 8, qt)) : v("", !0),
567
+ l.value ? (n(), c("path", {
563
568
  key: 1,
564
569
  d: l.path,
565
570
  fill: "none",
566
571
  stroke: l.color,
567
- "stroke-width": K(l).path,
572
+ "stroke-width": Q(l).path,
568
573
  "stroke-linecap": "round",
569
- class: G(`${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
570
- }, null, 10, qt)) : c("", !0),
571
- l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), v("g", {
574
+ class: G(`${P.value && P.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
575
+ }, null, 10, Jt)) : v("", !0),
576
+ l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), c("g", {
572
577
  key: 2,
573
- filter: `url(#blur_${f.value})`
578
+ filter: `url(#blur_${y.value})`
574
579
  }, [
575
580
  k("path", {
576
581
  d: l.path,
577
582
  fill: "none",
578
583
  stroke: e.value.style.chart.layout.arcs.gradient.color,
579
- "stroke-width": K(l).blur,
584
+ "stroke-width": Q(l).blur,
580
585
  "stroke-linecap": "round",
581
- class: G(`vue-ui-galaxy-gradient ${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
582
- }, null, 10, Kt)
583
- ], 8, Jt)) : c("", !0)
586
+ class: G(`vue-ui-galaxy-gradient ${P.value && P.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
587
+ }, null, 10, Qt)
588
+ ], 8, Kt)) : v("", !0)
584
589
  ]))), 256)),
585
- (n(!0), v(Le, null, De(F.value, (l, s) => (n(), v("g", null, [
586
- l.value ? (n(), v("path", {
590
+ (n(!0), c(Ae, null, Ne(F.value, (l, s) => (n(), c("g", null, [
591
+ l.value ? (n(), c("path", {
587
592
  key: 0,
588
593
  d: l.path,
589
594
  fill: "none",
590
595
  stroke: "transparent",
591
596
  "stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
592
597
  "stroke-linecap": "round",
593
- onMouseenter: (r) => it({
598
+ onMouseenter: (r) => ct({
594
599
  datapoint: l,
595
600
  seriesIndex: l.seriesIndex,
596
601
  show: !0
597
602
  }),
598
- onMouseleave: (r) => nt(l),
599
- onClick: (r) => rt(l)
600
- }, null, 40, Qt)) : c("", !0)
603
+ onMouseleave: (r) => rt(l),
604
+ onClick: (r) => it(l)
605
+ }, null, 40, Zt)) : v("", !0)
601
606
  ]))), 256)),
602
607
  p(t.$slots, "svg", { svg: C.value }, void 0, !0)
603
- ], 14, Ht)),
604
- t.$slots.watermark ? (n(), v("div", Zt, [
605
- p(t.$slots, "watermark", I(L({ isPrinting: u(be) || u(me) })), void 0, !0)
606
- ])) : c("", !0),
608
+ ], 14, Ut)),
609
+ t.$slots.watermark ? (n(), c("div", el, [
610
+ p(t.$slots, "watermark", I(D({ isPrinting: u(me) || u(ke) })), void 0, !0)
611
+ ])) : v("", !0),
607
612
  k("div", {
608
- id: `legend-bottom-${f.value}`
609
- }, null, 8, el),
610
- ve.value ? (n(), T(gt, {
613
+ id: `legend-bottom-${y.value}`
614
+ }, null, 8, tl),
615
+ ve.value ? (n(), T(ft, {
611
616
  key: 5,
612
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
617
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
613
618
  }, [
614
619
  k("div", {
615
620
  ref_key: "chartLegend",
616
- ref: ne
621
+ ref: re
617
622
  }, [
618
623
  e.value.style.chart.legend.show ? (n(), T(Wt, {
619
- key: `legend_${se.value}`,
624
+ key: `legend_${ue.value}`,
620
625
  legendSet: Pe.value,
621
626
  config: vt.value,
622
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => J(l))
627
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => K(l))
623
628
  }, {
624
629
  item: d(({ legend: l, index: s }) => [
625
- u(Y) ? c("", !0) : (n(), v("div", {
630
+ u(j) ? v("", !0) : (n(), c("div", {
626
631
  key: 0,
627
- onClick: (r) => J(l),
628
- style: R(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
629
- }, D(l.name) + D(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + D(e.value.style.chart.legend.showValue ? u(Me)(
632
+ onClick: (r) => K(l),
633
+ style: z(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
634
+ }, L(l.name) + L(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + L(e.value.style.chart.legend.showValue ? u(Re)(
630
635
  e.value.style.chart.layout.labels.dataLabels.formatter,
631
636
  l.value,
632
- u(P)({
637
+ u(_)({
633
638
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
634
639
  v: l.value,
635
640
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
636
641
  r: e.value.style.chart.legend.roundingValue
637
642
  }),
638
643
  { datapoint: l, seriesIndex: s }
639
- ) : "") + " " + D(e.value.style.chart.legend.showPercentage ? y.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / m.value) ? "-" : u(P)({
644
+ ) : "") + " " + L(e.value.style.chart.legend.showPercentage ? f.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / m.value) ? "-" : u(_)({
640
645
  v: l.value / m.value * 100,
641
646
  s: "%",
642
647
  r: e.value.style.chart.legend.roundingPercentage
643
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, tl))
648
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ll))
644
649
  ]),
645
650
  _: 1
646
- }, 8, ["legendSet", "config"])) : c("", !0),
651
+ }, 8, ["legendSet", "config"])) : v("", !0),
647
652
  p(t.$slots, "legend", { legend: Pe.value }, void 0, !0)
648
653
  ], 512)
649
- ], 8, ["to"])) : c("", !0),
650
- t.$slots.source ? (n(), v("div", {
654
+ ], 8, ["to"])) : v("", !0),
655
+ t.$slots.source ? (n(), c("div", {
651
656
  key: 6,
652
657
  ref_key: "source",
653
- ref: re,
658
+ ref: ie,
654
659
  dir: "auto"
655
660
  }, [
656
661
  p(t.$slots, "source", {}, void 0, !0)
657
- ], 512)) : c("", !0),
658
- te(u(He), {
662
+ ], 512)) : v("", !0),
663
+ le(u(Xe), {
659
664
  show: g.value.showTooltip && U.value,
660
665
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
661
666
  color: e.value.style.chart.tooltip.color,
@@ -668,43 +673,43 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
668
673
  offsetY: e.value.style.chart.tooltip.offsetY,
669
674
  parent: b.value,
670
675
  content: X.value,
671
- isFullscreen: O.value,
672
- isCustom: u(Ee)(e.value.style.chart.tooltip.customFormat),
676
+ isFullscreen: S.value,
677
+ isCustom: u(We)(e.value.style.chart.tooltip.customFormat),
673
678
  smooth: e.value.style.chart.tooltip.smooth,
674
679
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
675
680
  }, {
676
681
  "tooltip-before": d(() => [
677
- p(t.$slots, "tooltip-before", I(L({ ...Q.value })), void 0, !0)
682
+ p(t.$slots, "tooltip-before", I(D({ ...Z.value })), void 0, !0)
678
683
  ]),
679
684
  "tooltip-after": d(() => [
680
- p(t.$slots, "tooltip-after", I(L({ ...Q.value })), void 0, !0)
685
+ p(t.$slots, "tooltip-after", I(D({ ...Z.value })), void 0, !0)
681
686
  ]),
682
687
  _: 3
683
688
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
684
- ce.value ? (n(), T(yt(B.value.component), ft({ key: 7 }, B.value.props, {
689
+ de.value ? (n(), T(yt(B.value.component), bt({ key: 7 }, B.value.props, {
685
690
  ref_key: "tableUnit",
686
691
  ref: N,
687
- onClose: a[3] || (a[3] = (l) => g.value.showTable = !1)
688
- }), Ie({
692
+ onClose: Ie
693
+ }), Le({
689
694
  content: d(() => [
690
- (n(), T(u(Ye), {
691
- key: `table_${oe.value}`,
692
- colNames: W.value.colNames,
693
- head: W.value.head,
694
- body: W.value.body,
695
- config: W.value.config,
695
+ (n(), T(u(qe), {
696
+ key: `table_${se.value}`,
697
+ colNames: R.value.colNames,
698
+ head: R.value.head,
699
+ body: R.value.body,
700
+ config: R.value.config,
696
701
  title: e.value.table.useDialog ? "" : B.value.title,
697
702
  withCloseButton: !e.value.table.useDialog,
698
- onClose: a[2] || (a[2] = (l) => g.value.showTable = !1)
703
+ onClose: Ie
699
704
  }, {
700
705
  th: d(({ th: l }) => [
701
706
  k("div", {
702
707
  innerHTML: l,
703
708
  style: { display: "flex", "align-items": "center" }
704
- }, null, 8, ll)
709
+ }, null, 8, al)
705
710
  ]),
706
711
  td: d(({ td: l }) => [
707
- Ae(D(l.name || l), 1)
712
+ Fe(L(l.name || l), 1)
708
713
  ]),
709
714
  _: 1
710
715
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -714,7 +719,7 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
714
719
  e.value.table.useDialog ? {
715
720
  name: "title",
716
721
  fn: d(() => [
717
- Ae(D(B.value.title), 1)
722
+ Fe(L(B.value.title), 1)
718
723
  ]),
719
724
  key: "0"
720
725
  } : void 0,
@@ -724,9 +729,9 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
724
729
  k("button", {
725
730
  tabindex: "0",
726
731
  class: "vue-ui-user-options-button",
727
- onClick: a[1] || (a[1] = (l) => Z(e.value.userOptions.callbacks.csv))
732
+ onClick: a[1] || (a[1] = (l) => ee(e.value.userOptions.callbacks.csv))
728
733
  }, [
729
- te(u(Ue), {
734
+ le(u(Ye), {
730
735
  name: "excel",
731
736
  stroke: B.value.props.color
732
737
  }, null, 8, ["stroke"])
@@ -734,11 +739,11 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
734
739
  ]),
735
740
  key: "1"
736
741
  } : void 0
737
- ]), 1040)) : c("", !0),
738
- u(Y) ? (n(), T(Nt, { key: 8 })) : c("", !0)
739
- ], 46, Rt));
742
+ ]), 1040)) : v("", !0),
743
+ u(j) ? (n(), T(Ft, { key: 8 })) : v("", !0)
744
+ ], 46, Gt));
740
745
  }
741
- }, yl = /* @__PURE__ */ zt(al, [["__scopeId", "data-v-7ec3c806"]]);
746
+ }, yl = /* @__PURE__ */ zt(ol, [["__scopeId", "data-v-77ff178d"]]);
742
747
  export {
743
748
  yl as default
744
749
  };