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,23 +1,23 @@
1
- import { defineAsyncComponent as $, computed as v, ref as c, toRefs as Ct, watch as Me, shallowRef as Ee, onMounted as wt, onBeforeUnmount as $t, createElementBlock as u, openBlock as n, unref as r, normalizeStyle as J, normalizeClass as X, createBlock as P, createCommentVNode as d, createElementVNode as _, createVNode as K, createSlots as Ue, withCtx as h, renderSlot as g, normalizeProps as B, guardReactiveProps as M, Fragment as S, renderList as I, toDisplayString as E, Teleport as _t, resolveDynamicComponent as Tt, mergeProps as At, createTextVNode as ce, nextTick as Ve } from "vue";
2
- import { u as Pt, c as xt, t as Ft, a as Ot, p as N, b as St, o as It, f as U, d as Nt, g as We, e as Ge, R as Xe, h as Lt, k as Ye, i as Y, X as Rt, s as ve, x as zt, S as He, v as Dt, w as Bt, y as Mt, z as Et } from "./index-BKQqb9lF.js";
3
- import { t as Ut, u as Vt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Wt, B as Gt } from "./BaseScanner-BgWxam9d.js";
5
- import { u as Xt } from "./usePrinter-BzuXiubT.js";
6
- import { u as je } from "./useNestedProp-aBOhgs4U.js";
7
- import { u as Yt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Ht } from "./useChartAccessibility-9icAAmYg.js";
9
- import { u as jt } from "./useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js";
10
- import qt from "./img-gBDz7xQQ.js";
11
- import Jt from "./Title-Dz-j6ERs.js";
12
- import Kt from "./Legend-8_V5egWW.js";
13
- import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = ["id"], la = ["stop-color"], na = ["stop-color"], sa = { key: 1 }, ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ua = { key: 0 }, ia = ["d", "stroke", "stroke-width"], ca = ["d", "stroke", "stroke-width"], va = { key: 2 }, da = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], pa = ["points", "stroke", "stroke-width"], ha = ["points", "stroke", "stroke-width", "fill"], ga = { key: 3 }, fa = ["cx", "cy", "fill", "r", "stroke"], ya = {
1
+ import { defineAsyncComponent as _, computed as v, ref as c, toRefs as wt, watch as Ue, shallowRef as Ve, onMounted as _t, onBeforeUnmount as $t, createElementBlock as u, openBlock as n, unref as r, normalizeStyle as J, normalizeClass as X, createBlock as P, createCommentVNode as d, createElementVNode as $, createVNode as K, createSlots as We, withCtx as h, renderSlot as g, normalizeProps as B, guardReactiveProps as M, Fragment as F, renderList as I, toDisplayString as E, Teleport as Tt, resolveDynamicComponent as At, mergeProps as Pt, createTextVNode as ve, nextTick as Ge } from "vue";
2
+ import { u as xt, c as Ot, t as St, a as Ft, p as N, b as It, o as Nt, f as U, d as Lt, g as Xe, e as Ye, R as He, h as Rt, k as je, i as Y, X as zt, s as de, x as Dt, S as qe, v as Bt, w as Mt, y as Et, z as Ut } from "./index-CaxArMHL.js";
3
+ import { t as Vt, u as Wt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Gt, B as Xt } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as Yt } from "./usePrinter-BYtPmEo8.js";
6
+ import { u as Je } from "./useNestedProp-tWT02_6S.js";
7
+ import { u as Ht } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as jt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as qt } from "./useAutoSizeLabelsInsideViewbox-DmtFf4bt.js";
10
+ import Jt from "./img-DSrvx9J6.js";
11
+ import Kt from "./Title-CqYBs02Y.js";
12
+ import Qt from "./Legend-5qvgVkrY.js";
13
+ import { _ as Zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "height"], la = ["id"], na = ["stop-color"], sa = ["stop-color"], ra = { key: 1 }, ua = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ia = { key: 0 }, ca = ["d", "stroke", "stroke-width"], va = ["d", "stroke", "stroke-width"], da = { key: 2 }, pa = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], ha = ["points", "stroke", "stroke-width"], ga = ["points", "stroke", "stroke-width", "fill"], fa = { key: 3 }, ya = ["cx", "cy", "fill", "r", "stroke"], ma = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, ma = ["id"], ba = ["onClick"], ka = {
17
+ }, ba = ["id"], ka = ["onClick"], Ca = {
18
18
  key: 0,
19
19
  style: { "max-width": "200px", margin: "0 auto" }
20
- }, Ca = {
20
+ }, wa = {
21
21
  __name: "vue-ui-radar",
22
22
  props: {
23
23
  config: {
@@ -34,14 +34,14 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
34
34
  }
35
35
  },
36
36
  emits: ["selectLegend"],
37
- setup(qe, { expose: Je, emit: Ke }) {
38
- const Qe = $(() => import("./Tooltip-BTGOEC7w.js")), Ze = $(() => import("./BaseIcon-DLesaZpW.js")), et = $(() => import("./vue-ui-sparkbar-RYAThoA4.js")), tt = $(() => import("./vue-ui-accordion-B5QeV3BK.js")), at = $(() => import("./DataTable-BAf4Obr9.js")), ot = $(() => import("./PenAndPaper-B6OvfyHH.js")), lt = $(() => import("./UserOptions-CsDlFB0L.js")), nt = $(() => import("./PackageVersion-Cv_ypT0N.js")), st = $(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_radar: rt } = Pt(), x = qe, de = v(() => !!x.dataset && Object.keys(x.dataset).length), b = c(xt()), ut = c(null), Q = c(!1), Z = c(""), pe = c(0), C = c(null), he = c(null), ge = c(null), fe = c(null), ye = c(null), me = c(0), be = c(0), ke = c(0), Ce = c(!1), V = c(null), e = c(ae()), { loading: we, FINAL_DATASET: w } = Wt({
39
- ...Ct(x),
37
+ setup(Ke, { expose: Qe, emit: Ze }) {
38
+ const et = _(() => import("./Tooltip-CP0tVHAf.js")), tt = _(() => import("./BaseIcon-BcOSijbz.js")), at = _(() => import("./vue-ui-sparkbar-CaGPav-J.js")), ot = _(() => import("./vue-ui-accordion-DUlNpLir.js")), lt = _(() => import("./DataTable-Cm8Tt9PQ.js")), nt = _(() => import("./PenAndPaper-CyH7Ip2i.js")), st = _(() => import("./UserOptions-ZmwlARCV.js")), rt = _(() => import("./PackageVersion-0XlRFsI_.js")), ut = _(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_radar: it } = xt(), x = Ke, pe = v(() => !!x.dataset && Object.keys(x.dataset).length), b = c(Ot()), Q = c(!1), Z = c(""), he = c(0), C = c(null), ge = c(null), fe = c(null), ye = c(null), me = c(null), be = c(0), ke = c(0), Ce = c(0), we = c(!1), V = c(null), ee = c(null), e = c(oe()), { loading: _e, FINAL_DATASET: w } = Gt({
39
+ ...wt(x),
40
40
  FINAL_CONFIG: e,
41
- prepareConfig: ae,
41
+ prepareConfig: oe,
42
42
  callback: () => {
43
43
  Promise.resolve().then(async () => {
44
- await Ve(), f.value.showTable = e.value.table.show;
44
+ await Ge(), m.value.showTable = e.value.table.show;
45
45
  });
46
46
  },
47
47
  skeletonDataset: {
@@ -55,7 +55,7 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
55
55
  { name: "_", values: [0.6], target: 1 }
56
56
  ]
57
57
  },
58
- skeletonConfig: Ft({
58
+ skeletonConfig: St({
59
59
  defaultConfig: e.value,
60
60
  userConfig: {
61
61
  userOptions: { show: !1 },
@@ -82,62 +82,62 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
82
82
  }
83
83
  }
84
84
  })
85
- }), { userOptionsVisible: ee, setUserOptionsVisibility: $e, keepUserOptionState: _e } = Yt({ config: e.value }), { svgRef: te } = Ht({ config: e.value.style.chart.title });
86
- function ae() {
87
- const t = je({
85
+ }), { userOptionsVisible: te, setUserOptionsVisibility: $e, keepUserOptionState: Te } = Ht({ config: e.value }), { svgRef: ae } = jt({ config: e.value.style.chart.title });
86
+ function oe() {
87
+ const t = Je({
88
88
  userConfig: x.config,
89
- defaultConfig: rt
89
+ defaultConfig: it
90
90
  });
91
91
  return t.theme ? {
92
- ...je({
93
- userConfig: St.vue_ui_radar[t.theme] || x.config,
92
+ ...Je({
93
+ userConfig: It.vue_ui_radar[t.theme] || x.config,
94
94
  defaultConfig: t
95
95
  }),
96
- customPalette: Ot[t.theme] || N
96
+ customPalette: Ft[t.theme] || N
97
97
  } : t;
98
98
  }
99
- Me(() => x.config, (t) => {
100
- e.value = ae(), ee.value = !e.value.userOptions.showOnChartHover, Te(), me.value += 1, be.value += 1, ke.value += 1, f.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
99
+ Ue(() => x.config, (t) => {
100
+ e.value = oe(), te.value = !e.value.userOptions.showOnChartHover, Ae(), be.value += 1, ke.value += 1, Ce.value += 1, m.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
101
101
  }, { deep: !0 });
102
- const T = Ee(null), L = Ee(null), R = v(() => e.value.debug);
103
- function Te() {
104
- if (It(x.dataset) && U({
102
+ const T = Ve(null), L = Ve(null), R = v(() => e.value.debug);
103
+ function Ae() {
104
+ if (Nt(x.dataset) && U({
105
105
  componentName: "VueUiRadar",
106
106
  type: "dataset",
107
107
  debug: R.value
108
108
  }), e.value.responsive) {
109
- const t = Ut(() => {
110
- const { width: a, height: o } = Vt({
109
+ const t = Vt(() => {
110
+ const { width: a, height: o } = Wt({
111
111
  chart: C.value,
112
- title: e.value.style.chart.title.text ? he.value : null,
113
- legend: e.value.style.chart.legend.show ? ge.value : null,
114
- source: fe.value,
115
- noTitle: ye.value
112
+ title: e.value.style.chart.title.text ? ge.value : null,
113
+ legend: e.value.style.chart.legend.show ? fe.value : null,
114
+ source: ye.value,
115
+ noTitle: me.value
116
116
  });
117
117
  requestAnimationFrame(() => {
118
- i.value.width = a, i.value.height = o, Re();
118
+ i.value.width = a, i.value.height = o, ze();
119
119
  });
120
120
  });
121
121
  T.value && (L.value && T.value.unobserve(L.value), T.value.disconnect()), T.value = new ResizeObserver(t), L.value = C.value.parentNode, T.value.observe(L.value);
122
122
  }
123
- Re();
123
+ ze();
124
124
  }
125
- wt(() => {
126
- Ce.value = !0, Te();
125
+ _t(() => {
126
+ we.value = !0, Ae();
127
127
  }), $t(() => {
128
128
  T.value && (L.value && T.value.unobserve(L.value), T.value.disconnect());
129
129
  });
130
- const { isPrinting: Ae, isImaging: Pe, generatePdf: xe, generateImage: Fe } = Xt({
130
+ const { isPrinting: Pe, isImaging: xe, generatePdf: Oe, generateImage: Se } = Yt({
131
131
  elementId: `vue-ui-radar_${b.value}`,
132
132
  fileName: e.value.style.chart.title.text || "vue-ui-radar",
133
133
  options: e.value.userOptions.print
134
- }), it = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Oe = v(() => Nt(e.value.customPalette)), f = c({
134
+ }), ct = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Fe = v(() => Lt(e.value.customPalette)), m = c({
135
135
  dataLabels: {
136
136
  show: e.value.style.chart.layout.labels.dataLabels.show
137
137
  },
138
138
  showTable: e.value.table.show,
139
139
  showTooltip: e.value.style.chart.tooltip.show
140
- }), ct = v(() => ({
140
+ }), vt = v(() => ({
141
141
  style: {
142
142
  backgroundColor: "#FFFFFF00",
143
143
  animation: {
@@ -158,26 +158,26 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
158
158
  })), i = c({
159
159
  height: 312,
160
160
  width: 512
161
- }), vt = Ke, p = c([]), W = c(null), z = c(!1);
162
- function Se(t) {
161
+ }), dt = Ze, p = c([]), W = c(null), z = c(!1);
162
+ function Ie(t) {
163
163
  z.value = !0, p.value.includes(t) ? (W.value = t, p.value = p.value.filter((a) => a !== t), setTimeout(() => {
164
164
  z.value = !1, W.value = null;
165
165
  }, 500)) : (p.value.push(t), setTimeout(() => {
166
166
  z.value = !1;
167
- }, 500)), vt("selectLegend", D.value.filter((a, o) => !p.value.includes(o)).map((a) => ({
167
+ }, 500)), dt("selectLegend", D.value.filter((a, o) => !p.value.includes(o)).map((a) => ({
168
168
  name: a.name,
169
169
  color: a.color,
170
170
  proportion: a.totalProportion
171
171
  })));
172
172
  }
173
- function dt() {
173
+ function pt() {
174
174
  return D.value.map((t) => ({
175
175
  name: t.name,
176
176
  color: t.color,
177
177
  proportion: t.totalProportion
178
178
  }));
179
179
  }
180
- const y = v(() => [null, void 0].includes(w.value.categories) ? (U({
180
+ const f = v(() => [null, void 0].includes(w.value.categories) ? (U({
181
181
  componentName: "VueUiRadar",
182
182
  type: "datasetAttribute",
183
183
  property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
@@ -188,7 +188,7 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
188
188
  property: "categories",
189
189
  debug: R.value
190
190
  }) : w.value.categories.forEach((t, a) => {
191
- We({
191
+ Xe({
192
192
  datasetObject: t,
193
193
  requiredAttributes: ["name"]
194
194
  }).forEach((o) => {
@@ -206,7 +206,7 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
206
206
  property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
207
207
  debug: R.value
208
208
  }) : w.value.series.forEach((t, a) => {
209
- We({
209
+ Xe({
210
210
  datasetObject: t,
211
211
  requiredAttributes: ["name", "values", "target"]
212
212
  }).forEach((o) => {
@@ -222,31 +222,31 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
222
222
  }), w.value.categories.map((t, a) => ({
223
223
  name: t.name,
224
224
  categoryId: `radar_category_${b.value}_${a}`,
225
- color: Ge(t.color) || Oe.value[a] || N[a] || N[a % N.length],
225
+ color: Ye(t.color) || Fe.value[a] || N[a] || N[a % N.length],
226
226
  prefix: t.prefix ?? "",
227
227
  suffix: t.suffix ?? ""
228
228
  })))), k = v(() => w.value.series.map((t, a) => ({
229
229
  ...t,
230
- color: Ge(t.color) || Oe.value[a] || N[a] || N[a % N.length],
230
+ color: Ye(t.color) || Fe.value[a] || N[a] || N[a % N.length],
231
231
  serieId: `radar_serie_${b.value}_${a}`,
232
232
  formatter: t.formatter || null
233
- }))), Ie = v(() => Math.max(...k.value.flatMap((t) => t.values))), Ne = v(() => k.value.length), oe = v(() => Math.min(i.value.width, i.value.height) / 3), Le = v(() => Xe({
233
+ }))), Ne = v(() => Math.max(...k.value.flatMap((t) => t.values))), Le = v(() => k.value.length), le = v(() => Math.min(i.value.width, i.value.height) / 3), Re = v(() => He({
234
234
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
235
- radius: oe.value,
236
- sides: Ne.value,
235
+ radius: le.value,
236
+ sides: Le.value,
237
237
  rotation: 0
238
- })), pt = v(() => {
238
+ })), ht = v(() => {
239
239
  const t = [];
240
- for (let a = 0; a < oe.value; a += oe.value / e.value.style.chart.layout.grid.graduations)
240
+ for (let a = 0; a < le.value; a += le.value / e.value.style.chart.layout.grid.graduations)
241
241
  t.push(a);
242
242
  return t;
243
- }), A = v(() => Le.value.coordinates.map((t, a) => {
244
- const o = k.value[a].values.map((l) => gt({
243
+ }), A = v(() => Re.value.coordinates.map((t, a) => {
244
+ const o = k.value[a].values.map((l) => ft({
245
245
  centerX: i.value.width / 2,
246
246
  centerY: i.value.height / 2,
247
247
  apexX: t.x,
248
248
  apexY: t.y,
249
- proportion: l / (k.value[a].target || Ie.value)
249
+ proportion: l / (k.value[a].target || Ne.value)
250
250
  }));
251
251
  return {
252
252
  ...t,
@@ -255,41 +255,41 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
255
255
  };
256
256
  }).map((t) => ({
257
257
  ...t,
258
- labelX: le(t).x,
259
- labelY: le(t).y,
260
- labelAnchor: le(t).anchor
258
+ labelX: ne(t).x,
259
+ labelY: ne(t).y,
260
+ labelAnchor: ne(t).anchor
261
261
  })));
262
- function le({ x: t, y: a }) {
262
+ function ne({ x: t, y: a }) {
263
263
  let o = "middle";
264
264
  return t = Math.round(t), a = Math.round(a), t > i.value.width / 2 && (t += 12, o = "start"), t < i.value.width / 2 && (t -= 12, o = "end"), a > i.value.height / 2 + 1 && (a += 20), a < i.value.height / 2 - 1 && (a -= 12), a === i.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
265
265
  }
266
- const ht = v({
266
+ const gt = v({
267
267
  get: () => e.value.style.chart.layout.labels.dataLabels.fontSize,
268
268
  set: (t) => t
269
- }), { autoSizeLabels: Re } = jt({
270
- svgRef: te,
269
+ }), { autoSizeLabels: ze } = qt({
270
+ svgRef: ae,
271
271
  fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
272
272
  minFontSize: 6,
273
- sizeRef: ht,
273
+ sizeRef: gt,
274
274
  labelClass: ".vue-ui-radar-apex-label"
275
275
  });
276
- function gt({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
276
+ function ft({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
277
277
  return {
278
278
  x: t + (o - t) * s,
279
279
  y: a + (l - a) * s
280
280
  };
281
281
  }
282
282
  const D = v(() => {
283
- const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || Ie.value)));
284
- return y.value.map((a, o) => ({
283
+ const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || Ne.value)));
284
+ return f.value.map((a, o) => ({
285
285
  ...a,
286
- totalProportion: Lt(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
286
+ totalProportion: Rt(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
287
287
  shape: "circle",
288
288
  opacity: p.value.includes(o) ? 0.5 : 1,
289
- segregate: () => Se(o),
289
+ segregate: () => Ie(o),
290
290
  isSegregated: p.value.includes(o)
291
291
  }));
292
- }), ft = v(() => ({
292
+ }), yt = v(() => ({
293
293
  cy: "radar-div-legend",
294
294
  backgroundColor: e.value.style.chart.legend.backgroundColor,
295
295
  color: e.value.style.chart.legend.color,
@@ -303,7 +303,7 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
303
303
  ...D.value
304
304
  ], a = w.value.series.map((l) => [
305
305
  l.name,
306
- Ye(
306
+ je(
307
307
  l.formatter,
308
308
  l.target,
309
309
  Y({
@@ -313,10 +313,10 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
313
313
  r: e.value.table.td.roundingValue
314
314
  })
315
315
  ),
316
- ...l.values.map((s, m) => `${Ye(
316
+ ...l.values.map((s, y) => `${je(
317
317
  l.formatter,
318
318
  s,
319
- Y({ p: y.value[m].prefix, v: s, s: y.value[m].suffix, r: e.value.table.td.roundingValue })
319
+ Y({ p: f.value[y].prefix, v: s, s: f.value[y].suffix, r: e.value.table.td.roundingValue })
320
320
  )} (${isNaN(s / l.target) ? "" : Y({
321
321
  v: s / l.target * 100,
322
322
  s: "%",
@@ -336,83 +336,83 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
336
336
  breakpoint: e.value.table.responsiveBreakpoint
337
337
  };
338
338
  return { head: t, body: a, config: o, colNames: t };
339
- }), j = c(null), ne = c([]), se = c(null);
340
- function yt(t, a) {
339
+ }), j = c(null), se = c([]), re = c(null);
340
+ function mt(t, a) {
341
341
  Q.value = !1, j.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
342
342
  }
343
- function mt(t, a) {
343
+ function bt(t, a) {
344
344
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
345
345
  }
346
- function bt(t, a) {
347
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ne.value = [], j.value = a, Q.value = !0;
346
+ function kt(t, a) {
347
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), se.value = [], j.value = a, Q.value = !0;
348
348
  let o = "";
349
- se.value = {
349
+ re.value = {
350
350
  datapoint: t,
351
351
  seriesIndex: a,
352
352
  series: {
353
- categories: y.value,
353
+ categories: f.value,
354
354
  datapoints: k.value,
355
355
  radar: A.value
356
356
  },
357
357
  config: e.value
358
358
  };
359
359
  const l = e.value.style.chart.tooltip.customFormat;
360
- if (Mt(l) && Et(() => l({
360
+ if (Et(l) && Ut(() => l({
361
361
  seriesIndex: a,
362
362
  datapoint: t,
363
- series: { categories: y.value, datapoints: k.value, radar: A.value },
363
+ series: { categories: f.value, datapoints: k.value, radar: A.value },
364
364
  config: e.value
365
365
  })))
366
366
  Z.value = l({
367
367
  seriesIndex: a,
368
368
  datapoint: t,
369
- series: { categories: y.value, datapoints: k.value, radar: A.value },
369
+ series: { categories: f.value, datapoints: k.value, radar: A.value },
370
370
  config: e.value
371
371
  });
372
372
  else {
373
373
  o += `<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>`;
374
374
  for (let s = 0; s < t.values.length; s += 1)
375
- p.value.includes(s) || ne.value.push({
376
- name: y.value[s].name,
375
+ p.value.includes(s) || se.value.push({
376
+ name: f.value[s].name,
377
377
  value: t.values[s] / t.target * 100,
378
- color: y.value[s].color,
378
+ color: f.value[s].color,
379
379
  suffix: "%)",
380
- prefix: `${Y({ p: y.value[s].prefix ?? "", v: t.values[s], s: y.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
380
+ prefix: `${Y({ p: f.value[s].prefix ?? "", v: t.values[s], s: f.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
381
381
  rounding: e.value.style.chart.tooltip.roundingPercentage,
382
382
  formatter: t.formatter
383
383
  });
384
384
  Z.value = o;
385
385
  }
386
386
  }
387
- function re(t = null) {
388
- Ve(() => {
389
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...D.value.flatMap((O) => [[O.name], ["%"]])], l = w.value.series.map((O, wa) => [O.name, O.target, ...O.values.flatMap((ie) => [
390
- ie,
391
- isNaN(ie / O.target) ? "" : ie / O.target * 100
392
- ])]), s = a.concat([o]).concat(l), m = Dt(s);
393
- t ? t(m) : Bt({ csvContent: m, title: e.value.style.chart.title.text || "vue-ui-radar" });
387
+ function ue(t = null) {
388
+ Ge(() => {
389
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...D.value.flatMap((S) => [[S.name], ["%"]])], l = w.value.series.map((S, _a) => [S.name, S.target, ...S.values.flatMap((ce) => [
390
+ ce,
391
+ isNaN(ce / S.target) ? "" : ce / S.target * 100
392
+ ])]), s = a.concat([o]).concat(l), y = Bt(s);
393
+ t ? t(y) : Mt({ csvContent: y, title: e.value.style.chart.title.text || "vue-ui-radar" });
394
394
  });
395
395
  }
396
- const F = c(!1);
397
- function ze(t) {
398
- F.value = t, pe.value += 1;
399
- }
400
- function De() {
401
- f.value.showTable = !f.value.showTable;
396
+ const O = c(!1);
397
+ function De(t) {
398
+ O.value = t, he.value += 1;
402
399
  }
403
400
  function Be() {
404
- f.value.showTooltip = !f.value.showTooltip;
401
+ m.value.showTable = !m.value.showTable;
402
+ }
403
+ function Me() {
404
+ m.value.showTooltip = !m.value.showTooltip;
405
405
  }
406
406
  const q = c(!1);
407
- function ue() {
407
+ function ie() {
408
408
  q.value = !q.value;
409
409
  }
410
- async function kt({ scale: t = 2 } = {}) {
410
+ async function Ct({ scale: t = 2 } = {}) {
411
411
  if (!C.value) return;
412
- const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri: s, base64: m } = await qt({ domElement: C.value, base64: !0, img: !0, scale: t });
412
+ const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri: s, base64: y } = await Jt({ domElement: C.value, base64: !0, img: !0, scale: t });
413
413
  return {
414
414
  imageUri: s,
415
- base64: m,
415
+ base64: y,
416
416
  title: e.value.style.chart.title.text,
417
417
  width: a,
418
418
  height: o,
@@ -420,16 +420,16 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
420
420
  };
421
421
  }
422
422
  const G = v(() => {
423
- const t = e.value.table.useDialog && !e.value.table.show, a = f.value.showTable;
423
+ const t = e.value.table.useDialog && !e.value.table.show, a = m.value.showTable;
424
424
  return {
425
- component: t ? st : tt,
425
+ component: t ? ut : ot,
426
426
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
427
427
  props: t ? {
428
428
  backgroundColor: e.value.table.th.backgroundColor,
429
429
  color: e.value.table.th.color,
430
430
  headerColor: e.value.table.th.color,
431
431
  headerBg: e.value.table.th.backgroundColor,
432
- isFullscreen: F.value,
432
+ isFullscreen: O.value,
433
433
  fullscreenParent: C.value,
434
434
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
435
435
  } : {
@@ -449,50 +449,54 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
449
449
  }
450
450
  };
451
451
  });
452
- return Me(() => f.value.showTable, (t) => {
452
+ Ue(() => m.value.showTable, (t) => {
453
453
  e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
454
- }), Je({
455
- getData: dt,
456
- getImage: kt,
457
- generatePdf: xe,
458
- generateCsv: re,
459
- generateImage: Fe,
460
- toggleTable: De,
461
- toggleTooltip: Be,
462
- toggleAnnotator: ue,
463
- toggleFullscreen: ze
454
+ });
455
+ function Ee() {
456
+ m.value.showTable = !1, ee.value && ee.value.setTableIconState(!1);
457
+ }
458
+ return Qe({
459
+ getData: pt,
460
+ getImage: Ct,
461
+ generatePdf: Oe,
462
+ generateCsv: ue,
463
+ generateImage: Se,
464
+ toggleTable: Be,
465
+ toggleTooltip: Me,
466
+ toggleAnnotator: ie,
467
+ toggleFullscreen: De
464
468
  }), (t, a) => (n(), u("div", {
465
- class: X(`vue-ui-radar ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
469
+ class: X(`vue-ui-radar ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
466
470
  ref_key: "radarChart",
467
471
  ref: C,
468
472
  id: `vue-ui-radar_${b.value}`,
469
473
  style: J(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
470
- onMouseenter: a[4] || (a[4] = () => r($e)(!0)),
471
- onMouseleave: a[5] || (a[5] = () => r($e)(!1))
474
+ onMouseenter: a[2] || (a[2] = () => r($e)(!0)),
475
+ onMouseleave: a[3] || (a[3] = () => r($e)(!1))
472
476
  }, [
473
- e.value.userOptions.buttons.annotator ? (n(), P(r(ot), {
477
+ e.value.userOptions.buttons.annotator ? (n(), P(r(nt), {
474
478
  key: 0,
475
- svgRef: r(te),
479
+ svgRef: r(ae),
476
480
  backgroundColor: e.value.style.chart.backgroundColor,
477
481
  color: e.value.style.chart.color,
478
482
  active: q.value,
479
- onClose: ue
483
+ onClose: ie
480
484
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
481
- it.value ? (n(), u("div", {
485
+ ct.value ? (n(), u("div", {
482
486
  key: 1,
483
487
  ref_key: "noTitle",
484
- ref: ye,
488
+ ref: me,
485
489
  class: "vue-data-ui-no-title-space",
486
490
  style: "height:36px; width: 100%;background:transparent"
487
491
  }, null, 512)) : d("", !0),
488
492
  e.value.style.chart.title.text ? (n(), u("div", {
489
493
  key: 2,
490
494
  ref_key: "chartTitle",
491
- ref: he,
495
+ ref: ge,
492
496
  style: "width:100%;background:transparent;padding-bottom:12px"
493
497
  }, [
494
- (n(), P(Jt, {
495
- key: `title_${me.value}`,
498
+ (n(), P(Kt, {
499
+ key: `title_${be.value}`,
496
500
  config: {
497
501
  title: {
498
502
  cy: "radar-div-title",
@@ -505,17 +509,17 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
505
509
  }
506
510
  }, null, 8, ["config"]))
507
511
  ], 512)) : d("", !0),
508
- _("div", {
512
+ $("div", {
509
513
  id: `legend-top-${b.value}`
510
- }, null, 8, ea),
511
- e.value.userOptions.show && de.value && (r(_e) || r(ee)) ? (n(), P(r(lt), {
512
- ref_key: "details",
513
- ref: ut,
514
- key: `user_options_${pe.value}`,
514
+ }, null, 8, ta),
515
+ e.value.userOptions.show && pe.value && (r(Te) || r(te)) ? (n(), P(r(st), {
516
+ ref_key: "userOptionsRef",
517
+ ref: ee,
518
+ key: `user_options_${he.value}`,
515
519
  backgroundColor: e.value.style.chart.backgroundColor,
516
520
  color: e.value.style.chart.color,
517
- isImaging: r(Pe),
518
- isPrinting: r(Ae),
521
+ isImaging: r(xe),
522
+ isPrinting: r(Pe),
519
523
  uid: b.value,
520
524
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
521
525
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -523,8 +527,8 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
523
527
  hasXls: e.value.userOptions.buttons.csv,
524
528
  hasTable: e.value.userOptions.buttons.table,
525
529
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
526
- isFullscreen: F.value,
527
- isTooltip: f.value.showTooltip,
530
+ isFullscreen: O.value,
531
+ isTooltip: m.value.showTooltip,
528
532
  titles: { ...e.value.userOptions.buttonTitles },
529
533
  chartElement: C.value,
530
534
  position: e.value.userOptions.position,
@@ -532,17 +536,18 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
532
536
  isAnnotation: q.value,
533
537
  callbacks: e.value.userOptions.callbacks,
534
538
  printScale: e.value.userOptions.print.scale,
535
- onToggleFullscreen: ze,
536
- onGeneratePdf: r(xe),
537
- onGenerateCsv: re,
538
- onGenerateImage: r(Fe),
539
- onToggleTable: De,
540
- onToggleTooltip: Be,
541
- onToggleAnnotator: ue,
539
+ tableDialog: e.value.table.useDialog,
540
+ onToggleFullscreen: De,
541
+ onGeneratePdf: r(Oe),
542
+ onGenerateCsv: ue,
543
+ onGenerateImage: r(Se),
544
+ onToggleTable: Be,
545
+ onToggleTooltip: Me,
546
+ onToggleAnnotator: ie,
542
547
  style: J({
543
- visibility: r(_e) ? r(ee) ? "visible" : "hidden" : "visible"
548
+ visibility: r(Te) ? r(te) ? "visible" : "hidden" : "visible"
544
549
  })
545
- }, Ue({ _: 2 }, [
550
+ }, We({ _: 2 }, [
546
551
  t.$slots.menuIcon ? {
547
552
  name: "menuIcon",
548
553
  fn: h(({ isOpen: o, color: l }) => [
@@ -599,16 +604,16 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
599
604
  ]),
600
605
  key: "7"
601
606
  } : void 0
602
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
607
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
603
608
  (n(), u("svg", {
604
609
  ref_key: "svgRef",
605
- ref: te,
606
- xmlns: r(Rt),
607
- class: X({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
610
+ ref: ae,
611
+ xmlns: r(zt),
612
+ class: X({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
608
613
  viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
609
614
  style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
610
615
  }, [
611
- K(r(nt)),
616
+ K(r(rt)),
612
617
  t.$slots["chart-background"] ? (n(), u("foreignObject", {
613
618
  key: 0,
614
619
  x: 0,
@@ -620,9 +625,9 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
620
625
  }
621
626
  }, [
622
627
  g(t.$slots, "chart-background", {}, void 0, !0)
623
- ], 8, aa)) : d("", !0),
624
- _("defs", null, [
625
- (n(!0), u(S, null, I(y.value, (o, l) => (n(), u("radialGradient", {
628
+ ], 8, oa)) : d("", !0),
629
+ $("defs", null, [
630
+ (n(!0), u(F, null, I(f.value, (o, l) => (n(), u("radialGradient", {
626
631
  cx: "50%",
627
632
  cy: "50%",
628
633
  r: "50%",
@@ -630,117 +635,117 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
630
635
  fy: "50%",
631
636
  id: `radar_gradient_${b.value}_${l}`
632
637
  }, [
633
- _("stop", {
638
+ $("stop", {
634
639
  offset: "0%",
635
- "stop-color": r(ve)(r(zt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
636
- }, null, 8, la),
637
- _("stop", {
640
+ "stop-color": r(de)(r(Dt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
641
+ }, null, 8, na),
642
+ $("stop", {
638
643
  offset: "100%",
639
- "stop-color": r(ve)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
640
- }, null, 8, na)
641
- ], 8, oa))), 256))
644
+ "stop-color": r(de)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
645
+ }, null, 8, sa)
646
+ ], 8, la))), 256))
642
647
  ]),
643
- e.value.style.chart.layout.grid.show ? (n(), u("g", sa, [
644
- (n(!0), u(S, null, I(A.value, (o) => (n(), u("line", {
648
+ e.value.style.chart.layout.grid.show ? (n(), u("g", ra, [
649
+ (n(!0), u(F, null, I(A.value, (o) => (n(), u("line", {
645
650
  x1: i.value.width / 2,
646
651
  y1: i.value.height / 2,
647
652
  x2: o.x,
648
653
  y2: o.y,
649
654
  stroke: e.value.style.chart.layout.grid.stroke,
650
655
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
651
- }, null, 8, ra))), 256)),
652
- e.value.style.chart.layout.grid.graduations > 0 ? (n(), u("g", ua, [
653
- (n(!0), u(S, null, I(pt.value, (o) => (n(), u("path", {
654
- d: r(Xe)({
656
+ }, null, 8, ua))), 256)),
657
+ e.value.style.chart.layout.grid.graduations > 0 ? (n(), u("g", ia, [
658
+ (n(!0), u(F, null, I(ht.value, (o) => (n(), u("path", {
659
+ d: r(He)({
655
660
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
656
661
  radius: o,
657
- sides: Ne.value,
662
+ sides: Le.value,
658
663
  rotation: 0
659
664
  }).path,
660
665
  fill: "none",
661
666
  stroke: e.value.style.chart.layout.grid.stroke,
662
667
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
663
- }, null, 8, ia))), 256))
668
+ }, null, 8, ca))), 256))
664
669
  ])) : d("", !0)
665
670
  ])) : d("", !0),
666
- _("path", {
667
- d: Le.value.path,
671
+ $("path", {
672
+ d: Re.value.path,
668
673
  fill: "none",
669
674
  stroke: e.value.style.chart.layout.outerPolygon.stroke,
670
675
  "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
671
676
  "stroke-linejoin": "round",
672
677
  "stroke-linecap": "round"
673
- }, null, 8, ca),
674
- e.value.style.chart.layout.labels.dataLabels.show ? (n(), u("g", va, [
675
- (n(!0), u(S, null, I(A.value, (o, l) => (n(), u("text", {
678
+ }, null, 8, va),
679
+ e.value.style.chart.layout.labels.dataLabels.show ? (n(), u("g", da, [
680
+ (n(!0), u(F, null, I(A.value, (o, l) => (n(), u("text", {
676
681
  class: "vue-ui-radar-apex-label",
677
682
  x: o.labelX,
678
683
  y: o.labelY,
679
684
  "text-anchor": o.labelAnchor,
680
685
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
681
686
  fill: e.value.style.chart.layout.labels.dataLabels.color,
682
- onMouseenter: (s) => bt(o, l),
683
- onMouseleave: (s) => yt(o, l),
684
- onClick: (s) => mt(o, l)
685
- }, E(o.name), 41, da))), 256))
687
+ onMouseenter: (s) => kt(o, l),
688
+ onMouseleave: (s) => mt(o, l),
689
+ onClick: (s) => bt(o, l)
690
+ }, E(o.name), 41, pa))), 256))
686
691
  ])) : d("", !0),
687
- (n(!0), u(S, null, I(y.value, (o, l) => (n(), u("g", null, [
688
- _("g", null, [
692
+ (n(!0), u(F, null, I(f.value, (o, l) => (n(), u("g", null, [
693
+ $("g", null, [
689
694
  e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (n(), u("polygon", {
690
695
  key: 0,
691
- points: r(He)(A.value.map((s) => s.plots[l]), !1, !0),
696
+ points: r(qe)(A.value.map((s) => s.plots[l]), !1, !0),
692
697
  stroke: e.value.style.chart.backgroundColor,
693
698
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
694
699
  fill: "none",
695
700
  class: X({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": z.value && W.value === l && e.value.useCssAnimation })
696
- }, null, 10, pa)) : d("", !0),
701
+ }, null, 10, ha)) : d("", !0),
697
702
  e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (n(), u("polygon", {
698
703
  key: 1,
699
- points: r(He)(A.value.map((s) => s.plots[l]), !1, !0),
704
+ points: r(qe)(A.value.map((s) => s.plots[l]), !1, !0),
700
705
  stroke: o.color,
701
706
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
702
- fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${b.value}_${l})` : r(ve)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
707
+ fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${b.value}_${l})` : r(de)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
703
708
  class: X({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": z.value && W.value === l && e.value.useCssAnimation })
704
- }, null, 10, ha)) : d("", !0)
709
+ }, null, 10, ga)) : d("", !0)
705
710
  ])
706
711
  ]))), 256)),
707
- e.value.style.chart.layout.plots.show ? (n(), u("g", ga, [
708
- (n(!0), u(S, null, I(A.value, (o, l) => (n(), u("g", null, [
709
- (n(!0), u(S, null, I(o.plots, (s, m) => (n(), u("circle", {
712
+ e.value.style.chart.layout.plots.show ? (n(), u("g", fa, [
713
+ (n(!0), u(F, null, I(A.value, (o, l) => (n(), u("g", null, [
714
+ (n(!0), u(F, null, I(o.plots, (s, y) => (n(), u("circle", {
710
715
  cx: s.x,
711
716
  cy: s.y,
712
- fill: p.value.includes(m) ? "transparent" : y.value[m] ? y.value[m].color : "transparent",
717
+ fill: p.value.includes(y) ? "transparent" : f.value[y] ? f.value[y].color : "transparent",
713
718
  r: j.value !== null && j.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
714
- stroke: p.value.includes(m) ? "transparent" : e.value.style.chart.backgroundColor,
719
+ stroke: p.value.includes(y) ? "transparent" : e.value.style.chart.backgroundColor,
715
720
  "stroke-width": 0.5,
716
- class: X({ "animated-out": p.value.includes(m) && e.value.useCssAnimation, "animated-in": z.value && W.value === m && e.value.useCssAnimation })
717
- }, null, 10, fa))), 256))
721
+ class: X({ "animated-out": p.value.includes(y) && e.value.useCssAnimation, "animated-in": z.value && W.value === y && e.value.useCssAnimation })
722
+ }, null, 10, ya))), 256))
718
723
  ]))), 256))
719
724
  ])) : d("", !0),
720
725
  g(t.$slots, "svg", { svg: i.value }, void 0, !0)
721
- ], 14, ta)),
722
- t.$slots.watermark ? (n(), u("div", ya, [
723
- g(t.$slots, "watermark", B(M({ isPrinting: r(Ae) || r(Pe) })), void 0, !0)
726
+ ], 14, aa)),
727
+ t.$slots.watermark ? (n(), u("div", ma, [
728
+ g(t.$slots, "watermark", B(M({ isPrinting: r(Pe) || r(xe) })), void 0, !0)
724
729
  ])) : d("", !0),
725
- _("div", {
730
+ $("div", {
726
731
  id: `legend-bottom-${b.value}`
727
- }, null, 8, ma),
728
- Ce.value ? (n(), P(_t, {
732
+ }, null, 8, ba),
733
+ we.value ? (n(), P(Tt, {
729
734
  key: 5,
730
735
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
731
736
  }, [
732
- _("div", {
737
+ $("div", {
733
738
  ref_key: "chartLegend",
734
- ref: ge
739
+ ref: fe
735
740
  }, [
736
- e.value.style.chart.legend.show ? (n(), P(Kt, {
737
- key: `legend_${ke.value}`,
741
+ e.value.style.chart.legend.show ? (n(), P(Qt, {
742
+ key: `legend_${Ce.value}`,
738
743
  legendSet: D.value,
739
- config: ft.value,
740
- onClickMarker: a[0] || (a[0] = ({ i: o }) => Se(o))
744
+ config: yt.value,
745
+ onClickMarker: a[0] || (a[0] = ({ i: o }) => Ie(o))
741
746
  }, {
742
747
  item: h(({ legend: o, index: l }) => [
743
- r(we) ? d("", !0) : (n(), u("div", {
748
+ r(_e) ? d("", !0) : (n(), u("div", {
744
749
  key: 0,
745
750
  onClick: (s) => o.segregate(),
746
751
  style: J(`opacity:${p.value.includes(l) ? 0.5 : 1}`)
@@ -748,7 +753,7 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
748
753
  v: o.totalProportion * 100,
749
754
  s: "%",
750
755
  r: e.value.style.chart.legend.roundingPercentage
751
- })), 13, ba))
756
+ })), 13, ka))
752
757
  ]),
753
758
  _: 1
754
759
  }, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
@@ -760,13 +765,13 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
760
765
  t.$slots.source ? (n(), u("div", {
761
766
  key: 6,
762
767
  ref_key: "source",
763
- ref: fe,
768
+ ref: ye,
764
769
  dir: "auto"
765
770
  }, [
766
771
  g(t.$slots, "source", {}, void 0, !0)
767
772
  ], 512)) : d("", !0),
768
- K(r(Qe), {
769
- show: f.value.showTooltip && Q.value,
773
+ K(r(et), {
774
+ show: m.value.showTooltip && Q.value,
770
775
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
771
776
  color: e.value.style.chart.tooltip.color,
772
777
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -778,47 +783,47 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
778
783
  offsetY: e.value.style.chart.tooltip.offsetY,
779
784
  parent: C.value,
780
785
  content: Z.value,
781
- isFullscreen: F.value,
786
+ isFullscreen: O.value,
782
787
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
783
788
  smooth: e.value.style.chart.tooltip.smooth,
784
789
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
785
790
  }, {
786
791
  "tooltip-before": h(() => [
787
- g(t.$slots, "tooltip-before", B(M({ ...se.value })), void 0, !0)
792
+ g(t.$slots, "tooltip-before", B(M({ ...re.value })), void 0, !0)
788
793
  ]),
789
794
  "tooltip-after": h(() => [
790
- ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (n(), u("div", ka, [
791
- K(r(et), {
792
- dataset: ne.value,
793
- config: ct.value,
795
+ ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (n(), u("div", Ca, [
796
+ K(r(at), {
797
+ dataset: se.value,
798
+ config: vt.value,
794
799
  backgroundOpacity: 0
795
800
  }, null, 8, ["dataset", "config"])
796
801
  ])),
797
- g(t.$slots, "tooltip-after", B(M({ ...se.value })), void 0, !0)
802
+ g(t.$slots, "tooltip-after", B(M({ ...re.value })), void 0, !0)
798
803
  ]),
799
804
  _: 3
800
805
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
801
- de.value ? (n(), P(Tt(G.value.component), At({ key: 7 }, G.value.props, {
806
+ pe.value ? (n(), P(At(G.value.component), Pt({ key: 7 }, G.value.props, {
802
807
  ref_key: "tableUnit",
803
808
  ref: V,
804
- onClose: a[3] || (a[3] = (o) => f.value.showTable = !1)
805
- }), Ue({
809
+ onClose: Ee
810
+ }), We({
806
811
  content: h(() => [
807
- (n(), P(r(at), {
808
- key: `table_${be.value}`,
812
+ (n(), P(r(lt), {
813
+ key: `table_${ke.value}`,
809
814
  colNames: H.value.colNames,
810
815
  head: H.value.head,
811
816
  body: H.value.body,
812
817
  config: H.value.config,
813
818
  title: e.value.table.useDialog ? "" : G.value.title,
814
819
  withCloseButton: !e.value.table.useDialog,
815
- onClose: a[2] || (a[2] = (o) => f.value.showTable = !1)
820
+ onClose: Ee
816
821
  }, {
817
822
  th: h(({ th: o }) => [
818
- ce(E(o.name), 1)
823
+ ve(E(o.name), 1)
819
824
  ]),
820
825
  td: h(({ td: o }) => [
821
- ce(E(o), 1)
826
+ ve(E(o), 1)
822
827
  ]),
823
828
  _: 1
824
829
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -828,19 +833,19 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
828
833
  e.value.table.useDialog ? {
829
834
  name: "title",
830
835
  fn: h(() => [
831
- ce(E(G.value.title), 1)
836
+ ve(E(G.value.title), 1)
832
837
  ]),
833
838
  key: "0"
834
839
  } : void 0,
835
840
  e.value.table.useDialog ? {
836
841
  name: "actions",
837
842
  fn: h(() => [
838
- _("button", {
843
+ $("button", {
839
844
  tabindex: "0",
840
845
  class: "vue-ui-user-options-button",
841
- onClick: a[1] || (a[1] = (o) => re(e.value.userOptions.callbacks.csv))
846
+ onClick: a[1] || (a[1] = (o) => ue(e.value.userOptions.callbacks.csv))
842
847
  }, [
843
- K(r(Ze), {
848
+ K(r(tt), {
844
849
  name: "excel",
845
850
  stroke: G.value.props.color
846
851
  }, null, 8, ["stroke"])
@@ -849,10 +854,10 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
849
854
  key: "1"
850
855
  } : void 0
851
856
  ]), 1040)) : d("", !0),
852
- r(we) ? (n(), P(Gt, { key: 8 })) : d("", !0)
853
- ], 46, Zt));
857
+ r(_e) ? (n(), P(Xt, { key: 8 })) : d("", !0)
858
+ ], 46, ea));
854
859
  }
855
- }, za = /* @__PURE__ */ Qt(Ca, [["__scopeId", "data-v-97b97b94"]]);
860
+ }, Da = /* @__PURE__ */ Zt(wa, [["__scopeId", "data-v-4ce66d0d"]]);
856
861
  export {
857
- za as default
862
+ Da as default
858
863
  };