vue-data-ui 3.4.9 → 3.5.0

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 (114) hide show
  1. package/README.md +88 -37
  2. package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-Cyx_s25h.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-dashboard.js +1 -1
  12. package/dist/components/vue-ui-donut-evolution.js +1 -1
  13. package/dist/components/vue-ui-donut.js +1 -1
  14. package/dist/components/vue-ui-dumbbell.js +1 -1
  15. package/dist/components/vue-ui-flow.js +1 -1
  16. package/dist/components/vue-ui-funnel.js +1 -1
  17. package/dist/components/vue-ui-galaxy.js +1 -1
  18. package/dist/components/vue-ui-gauge.js +1 -1
  19. package/dist/components/vue-ui-gizmo.js +1 -1
  20. package/dist/components/vue-ui-heatmap.js +1 -1
  21. package/dist/components/vue-ui-history-plot.js +1 -1
  22. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  23. package/dist/components/vue-ui-molecule.js +1 -1
  24. package/dist/components/vue-ui-mood-radar.js +1 -1
  25. package/dist/components/vue-ui-nested-donuts.js +1 -1
  26. package/dist/components/vue-ui-onion.js +1 -1
  27. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  28. package/dist/components/vue-ui-quadrant.js +1 -1
  29. package/dist/components/vue-ui-quick-chart.js +1 -1
  30. package/dist/components/vue-ui-radar.js +1 -1
  31. package/dist/components/vue-ui-relation-circle.js +1 -1
  32. package/dist/components/vue-ui-ridgeline.js +1 -1
  33. package/dist/components/vue-ui-rings.js +1 -1
  34. package/dist/components/vue-ui-scatter.js +1 -1
  35. package/dist/components/vue-ui-skeleton.js +1 -1
  36. package/dist/components/vue-ui-spark-trend.js +1 -1
  37. package/dist/components/vue-ui-sparkbar.js +1 -1
  38. package/dist/components/vue-ui-sparkgauge.js +1 -1
  39. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  40. package/dist/components/vue-ui-sparkline.js +1 -1
  41. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  42. package/dist/components/vue-ui-stackbar.js +1 -1
  43. package/dist/components/vue-ui-strip-plot.js +1 -1
  44. package/dist/components/vue-ui-table-sparkline.js +1 -1
  45. package/dist/components/vue-ui-table.js +1 -1
  46. package/dist/components/vue-ui-thermometer.js +1 -1
  47. package/dist/components/vue-ui-timer.js +1 -1
  48. package/dist/components/vue-ui-tiremarks.js +1 -1
  49. package/dist/components/vue-ui-treemap.js +1 -1
  50. package/dist/components/vue-ui-vertical-bar.js +1 -1
  51. package/dist/components/vue-ui-waffle.js +1 -1
  52. package/dist/components/vue-ui-wheel.js +1 -1
  53. package/dist/components/vue-ui-word-cloud.js +1 -1
  54. package/dist/components/vue-ui-world.js +1 -1
  55. package/dist/components/vue-ui-xy-canvas.js +1 -1
  56. package/dist/components/vue-ui-xy.js +1 -1
  57. package/dist/style.css +1 -1
  58. package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-DxgRqCAo.js} +104 -98
  59. package/dist/vue-data-ui.js +54 -54
  60. package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
  61. package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
  62. package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
  63. package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-DewevWV_.js} +1 -1
  64. package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
  65. package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
  66. package/dist/{vue-ui-chord-CDgzolI-.js → vue-ui-chord-BG4dxKNA.js} +1 -1
  67. package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
  68. package/dist/{vue-ui-dashboard-CeJwbiON.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
  69. package/dist/{vue-ui-donut-DjQXHBJE.js → vue-ui-donut-BRGFcgxS.js} +542 -526
  70. package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
  71. package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
  72. package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-CTYFoib3.js} +1 -1
  73. package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
  74. package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
  75. package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
  76. package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
  77. package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
  78. package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
  79. package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-BALqwB8c.js} +1 -1
  80. package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
  81. package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
  82. package/dist/{vue-ui-onion-DTY2p87s.js → vue-ui-onion-DAOCf3f8.js} +331 -309
  83. package/dist/{vue-ui-parallel-coordinate-plot-C8aWTcNn.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
  84. package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
  85. package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
  86. package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-C5V4hhbW.js} +393 -374
  87. package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
  88. package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
  89. package/dist/{vue-ui-rings-CnTMFK6R.js → vue-ui-rings-BpUcyqo7.js} +285 -263
  90. package/dist/{vue-ui-scatter-fzR2c0St.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
  91. package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
  92. package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
  93. package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
  94. package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
  95. package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
  96. package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
  97. package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
  98. package/dist/{vue-ui-stackbar-DubS6Pg8.js → vue-ui-stackbar-CkBOjryQ.js} +437 -421
  99. package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
  100. package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-7r02N9R9.js} +2 -2
  101. package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
  102. package/dist/{vue-ui-thermometer-DTnfnf9z.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
  103. package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
  104. package/dist/{vue-ui-tiremarks-CrC_tlIx.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
  105. package/dist/{vue-ui-treemap-kyuyi2ES.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
  106. package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
  107. package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
  108. package/dist/{vue-ui-wheel-BasM7FWt.js → vue-ui-wheel-BpirIgAG.js} +1 -1
  109. package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
  110. package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-CdP4g_3_.js} +1 -1
  111. package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
  112. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
  113. package/package.json +1 -1
  114. package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
@@ -1,28 +1,28 @@
1
- import { defineAsyncComponent as $, computed as v, ref as c, toRefs as Lt, watch as ve, shallowRef as Ye, onMounted as Nt, onBeforeUnmount as Rt, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as K, normalizeClass as H, createBlock as P, createCommentVNode as p, createElementVNode as k, createVNode as Z, createSlots as He, withCtx as h, renderSlot as f, normalizeProps as E, guardReactiveProps as M, Fragment as L, renderList as N, toDisplayString as R, Teleport as Dt, resolveDynamicComponent as zt, mergeProps as Vt, createTextVNode as de, nextTick as je } from "vue";
2
- import { c as Bt, t as Ut, b as Et, p as D, o as Mt, f as z, e as Gt, h as qe, k as Qe, x as Wt, d as G, a as pe, X as Xt, s as he, i as Yt, a8 as Je, g as Ke, P as Ht, Q as jt, G as qt, H as Qt } from "./lib-C_mNZmhD.js";
3
- import { t as Jt, u as Kt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Zt, a as Ze } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as ea, B as ta } from "./BaseScanner-BgWxam9d.js";
6
- import { u as aa } from "./usePrinter-DTzqpYKF.js";
7
- import { u as oa } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as la } from "./useChartAccessibility-9icAAmYg.js";
9
- import { u as sa } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
10
- import na from "./img-BecE5qXd.js";
11
- import ra from "./Title-l36lOBMx.js";
12
- import ua from "./Legend-G6GMcdAc.js";
13
- import { t as ia } from "./themes-AUNCOb2G.js";
14
- import { u as ca } from "./useSvgExport-DrjCWun4.js";
15
- import { _ as va } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "height"], fa = ["id"], ya = ["stop-color"], ma = ["stop-color"], ba = { key: 1 }, ka = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ca = { key: 0 }, wa = ["d", "stroke", "stroke-width"], _a = ["d", "stroke", "stroke-width"], $a = { key: 2 }, Ta = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], Aa = ["points", "stroke", "stroke-width"], Pa = ["points", "stroke", "stroke-width", "fill"], Sa = { key: 3 }, Oa = ["cx", "cy", "fill", "r", "stroke"], xa = {
1
+ import { defineAsyncComponent as _, computed as v, ref as c, toRefs as Vt, watch as de, shallowRef as He, onMounted as Dt, onBeforeUnmount as zt, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as Z, normalizeClass as H, createBlock as P, createCommentVNode as p, createElementVNode as C, createVNode as ee, createSlots as je, withCtx as g, renderSlot as f, normalizeProps as E, guardReactiveProps as M, Fragment as L, renderList as N, toDisplayString as R, Teleport as Ut, resolveDynamicComponent as Bt, mergeProps as Et, createTextVNode as pe, nextTick as qe } from "vue";
2
+ import { c as Mt, t as Gt, b as Wt, p as V, o as Xt, f as D, e as Yt, h as Qe, k as Je, x as Ht, d as G, a as he, X as jt, s as ge, i as qt, a8 as Ke, g as Ze, P as Qt, Q as Jt, G as Kt, H as Zt } from "./lib-C_mNZmhD.js";
3
+ import { t as ea, u as ta } from "./useResponsive-DfdjqQps.js";
4
+ import { u as aa, a as et } from "./useNestedProp-BjZe1Y85.js";
5
+ import { u as oa, B as la } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as sa } from "./usePrinter-DTzqpYKF.js";
7
+ import { u as na } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as ra } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as ua } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
10
+ import ia from "./img-BecE5qXd.js";
11
+ import ca from "./Title-l36lOBMx.js";
12
+ import va from "./Legend-G6GMcdAc.js";
13
+ import { t as da } from "./themes-AUNCOb2G.js";
14
+ import { u as pa } from "./useSvgExport-DrjCWun4.js";
15
+ import { _ as ha } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const ga = ["id"], fa = ["id"], ya = ["xmlns", "viewBox"], ma = ["width", "height"], ba = ["id"], ka = ["stop-color"], Ca = ["stop-color"], wa = { key: 1 }, $a = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], _a = { key: 0 }, Ta = ["d", "stroke", "stroke-width"], Sa = ["d", "stroke", "stroke-width"], Aa = { key: 2 }, Pa = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], xa = ["points", "stroke", "stroke-width"], Oa = ["points", "stroke", "stroke-width", "fill"], Fa = { key: 3 }, Ia = ["cx", "cy", "fill", "r", "stroke"], La = {
17
17
  key: 4,
18
18
  class: "vue-data-ui-watermark"
19
- }, Fa = ["id"], Ia = ["onClick"], La = {
19
+ }, Na = ["id"], Ra = ["onClick"], Va = {
20
20
  key: 0,
21
21
  style: { "max-width": "200px", margin: "0 auto" }
22
- }, Na = {
22
+ }, Da = {
23
23
  class: "vue-ui-radar-tooltip-datalabel",
24
24
  style: { width: "100%" }
25
- }, Ra = { class: "vue-ui-radar-tooltip-datalabel-name" }, Da = { key: 0 }, za = {
25
+ }, za = { class: "vue-ui-radar-tooltip-datalabel-name" }, Ua = { key: 0 }, Ba = {
26
26
  __name: "vue-ui-radar",
27
27
  props: {
28
28
  config: {
@@ -39,14 +39,14 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
39
39
  }
40
40
  },
41
41
  emits: ["selectLegend"],
42
- setup(et, { expose: tt, emit: at }) {
43
- const ot = $(() => import("./Tooltip-oWCO1HKy.js")), lt = $(() => import("./BaseIcon-BmMbm4d0.js")), st = $(() => import("./vue-ui-sparkbar-B44oER5n.js")), nt = $(() => import("./vue-ui-accordion-CZ0thhxa.js")), rt = $(() => import("./DataTable-BT7VF2ua.js")), ut = $(() => import("./PenAndPaper-DSvu9dwa.js")), it = $(() => import("./UserOptions-CGnQt6Fd.js")), ct = $(() => import("./PackageVersion-CTUqGqWV.js")), vt = $(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_radar: dt } = Zt(), S = et, ge = v(() => !!S.dataset && Object.keys(S.dataset).length), b = c(Bt()), ee = c(!1), te = c(""), fe = c(0), _ = c(null), ye = c(null), me = c(null), be = c(null), ke = c(null), Ce = c(0), we = c(0), _e = c(0), $e = c(!1), W = c(null), ae = c(null), e = c(le()), { loading: Te, FINAL_DATASET: O } = ea({
44
- ...Lt(S),
42
+ setup(tt, { expose: at, emit: ot }) {
43
+ const lt = _(() => import("./Tooltip-oWCO1HKy.js")), st = _(() => import("./BaseIcon-BmMbm4d0.js")), nt = _(() => import("./vue-ui-sparkbar-DnKP55Vu.js")), rt = _(() => import("./vue-ui-accordion-CZ0thhxa.js")), ut = _(() => import("./DataTable-BT7VF2ua.js")), it = _(() => import("./PenAndPaper-DSvu9dwa.js")), ct = _(() => import("./UserOptions-CGnQt6Fd.js")), vt = _(() => import("./PackageVersion-Cyx_s25h.js")), dt = _(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_radar: pt } = aa(), x = tt, fe = v(() => !!x.dataset && Object.keys(x.dataset).length), b = c(Mt()), te = c(!1), ae = c(""), ye = c(0), $ = c(null), me = c(null), be = c(null), ke = c(null), Ce = c(null), we = c(0), $e = c(0), _e = c(0), Te = c(!1), W = c(null), oe = c(null), e = c(se()), { loading: Se, FINAL_DATASET: O } = oa({
44
+ ...Vt(x),
45
45
  FINAL_CONFIG: e,
46
- prepareConfig: le,
46
+ prepareConfig: se,
47
47
  callback: () => {
48
48
  Promise.resolve().then(async () => {
49
- await je(), y.value.showTable = e.value.table.show;
49
+ await qe(), y.value.showTable = e.value.table.show;
50
50
  });
51
51
  },
52
52
  skeletonDataset: {
@@ -60,7 +60,7 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
60
60
  { name: "_", values: [0.6], target: 1 }
61
61
  ]
62
62
  },
63
- skeletonConfig: Ut({
63
+ skeletonConfig: Gt({
64
64
  defaultConfig: e.value,
65
65
  userConfig: {
66
66
  userOptions: { show: !1 },
@@ -87,62 +87,62 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
87
87
  }
88
88
  }
89
89
  })
90
- }), { userOptionsVisible: oe, setUserOptionsVisibility: Ae, keepUserOptionState: Pe } = oa({ config: e.value }), { svgRef: j } = la({ config: e.value.style.chart.title });
91
- function le() {
92
- const t = Ze({
93
- userConfig: S.config,
94
- defaultConfig: dt
90
+ }), { userOptionsVisible: le, setUserOptionsVisibility: Ae, keepUserOptionState: Pe } = na({ config: e.value }), { svgRef: j } = ra({ config: e.value.style.chart.title });
91
+ function se() {
92
+ const t = et({
93
+ userConfig: x.config,
94
+ defaultConfig: pt
95
95
  });
96
96
  return t.theme ? {
97
- ...Ze({
98
- userConfig: ia.vue_ui_radar[t.theme] || S.config,
97
+ ...et({
98
+ userConfig: da.vue_ui_radar[t.theme] || x.config,
99
99
  defaultConfig: t
100
100
  }),
101
- customPalette: Et[t.theme] || D
101
+ customPalette: Wt[t.theme] || V
102
102
  } : t;
103
103
  }
104
- ve(() => S.config, (t) => {
105
- e.value = le(), oe.value = !e.value.userOptions.showOnChartHover, Se(), Ce.value += 1, we.value += 1, _e.value += 1, y.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
104
+ de(() => x.config, (t) => {
105
+ e.value = se(), le.value = !e.value.userOptions.showOnChartHover, xe(), we.value += 1, $e.value += 1, _e.value += 1, y.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
106
106
  }, { deep: !0 });
107
- const T = Ye(null), V = Ye(null), x = v(() => e.value.debug);
108
- function Se() {
109
- if (Mt(S.dataset) && z({
107
+ const T = He(null), z = He(null), F = v(() => e.value.debug);
108
+ function xe() {
109
+ if (Xt(x.dataset) && D({
110
110
  componentName: "VueUiRadar",
111
111
  type: "dataset",
112
- debug: x.value
112
+ debug: F.value
113
113
  }), e.value.responsive) {
114
- const t = Jt(() => {
115
- const { width: o, height: a } = Kt({
116
- chart: _.value,
117
- title: e.value.style.chart.title.text ? ye.value : null,
118
- legend: e.value.style.chart.legend.show ? me.value : null,
119
- source: be.value,
120
- noTitle: ke.value
114
+ const t = ea(() => {
115
+ const { width: a, height: o } = ta({
116
+ chart: $.value,
117
+ title: e.value.style.chart.title.text ? me.value : null,
118
+ legend: e.value.style.chart.legend.show ? be.value : null,
119
+ source: ke.value,
120
+ noTitle: Ce.value
121
121
  });
122
122
  requestAnimationFrame(() => {
123
- i.value.width = o, i.value.height = a, Ve();
123
+ i.value.width = a, i.value.height = o, Ue();
124
124
  });
125
125
  });
126
- T.value && (V.value && T.value.unobserve(V.value), T.value.disconnect()), T.value = new ResizeObserver(t), V.value = _.value.parentNode, T.value.observe(V.value);
126
+ T.value && (z.value && T.value.unobserve(z.value), T.value.disconnect()), T.value = new ResizeObserver(t), z.value = $.value.parentNode, T.value.observe(z.value);
127
127
  }
128
- Ve();
128
+ Ue();
129
129
  }
130
- Nt(() => {
131
- $e.value = !0, Se();
132
- }), Rt(() => {
133
- T.value && (V.value && T.value.unobserve(V.value), T.value.disconnect());
130
+ Dt(() => {
131
+ Te.value = !0, xe();
132
+ }), zt(() => {
133
+ T.value && (z.value && T.value.unobserve(z.value), T.value.disconnect());
134
134
  });
135
- const { isPrinting: Oe, isImaging: xe, generatePdf: Fe, generateImage: Ie } = aa({
135
+ const { isPrinting: Oe, isImaging: Fe, generatePdf: Ie, generateImage: Le } = sa({
136
136
  elementId: `vue-ui-radar_${b.value}`,
137
137
  fileName: e.value.style.chart.title.text || "vue-ui-radar",
138
138
  options: e.value.userOptions.print
139
- }), pt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Le = v(() => Gt(e.value.customPalette)), y = c({
139
+ }), ht = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ne = v(() => Yt(e.value.customPalette)), y = c({
140
140
  dataLabels: {
141
141
  show: e.value.style.chart.layout.labels.dataLabels.show
142
142
  },
143
143
  showTable: e.value.table.show,
144
144
  showTooltip: e.value.style.chart.tooltip.show
145
- }), ht = v(() => ({
145
+ }), gt = v(() => ({
146
146
  style: {
147
147
  backgroundColor: "#FFFFFF00",
148
148
  animation: {
@@ -163,180 +163,197 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
163
163
  })), i = c({
164
164
  height: 312,
165
165
  width: 512
166
- }), gt = at, g = c([]), X = c(null), B = c(!1);
167
- function Ne(t) {
168
- B.value = !0, g.value.includes(t) ? (X.value = t, g.value = g.value.filter((o) => o !== t), setTimeout(() => {
169
- B.value = !1, X.value = null;
170
- }, 500)) : (g.value.push(t), setTimeout(() => {
171
- B.value = !1;
172
- }, 500)), gt("selectLegend", F.value.filter((o, a) => !g.value.includes(a)).map((o) => ({
173
- name: o.name,
174
- color: o.color,
175
- proportion: o.totalProportion
166
+ }), ft = ot, h = c([]), X = c(null), U = c(!1);
167
+ function q(t) {
168
+ U.value = !0, h.value.includes(t) ? (X.value = t, h.value = h.value.filter((a) => a !== t), setTimeout(() => {
169
+ U.value = !1, X.value = null;
170
+ }, 500)) : (h.value.push(t), setTimeout(() => {
171
+ U.value = !1;
172
+ }, 500)), ft("selectLegend", A.value.filter((a, o) => !h.value.includes(o)).map((a) => ({
173
+ name: a.name,
174
+ color: a.color,
175
+ proportion: a.totalProportion
176
176
  })));
177
177
  }
178
- function ft() {
179
- return F.value.map((t) => ({
178
+ function yt() {
179
+ return A.value.map((t) => ({
180
180
  name: t.name,
181
181
  color: t.color,
182
182
  proportion: t.totalProportion
183
183
  }));
184
184
  }
185
- function yt() {
185
+ function mt() {
186
186
  const t = O.value;
187
187
  if ([null, void 0].includes(t?.categories)) {
188
- z({
188
+ D({
189
189
  componentName: "VueUiRadar",
190
190
  type: "dataset",
191
- debug: x.value
192
- }), z({
191
+ debug: F.value
192
+ }), D({
193
193
  componentName: "VueUiRadar",
194
194
  type: "datasetAttribute",
195
195
  property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
196
- debug: x.value
196
+ debug: F.value
197
197
  });
198
198
  return;
199
199
  }
200
- t.categories.length === 0 ? z({
200
+ t.categories.length === 0 ? D({
201
201
  componentName: "VueUiRadar",
202
202
  type: "datasetAttributeEmpty",
203
203
  property: "categories",
204
- debug: x.value
205
- }) : t.categories.forEach((o, a) => {
206
- Ke({
207
- datasetObject: o,
204
+ debug: F.value
205
+ }) : t.categories.forEach((a, o) => {
206
+ Ze({
207
+ datasetObject: a,
208
208
  requiredAttributes: ["name"]
209
209
  }).forEach((l) => {
210
- z({
210
+ D({
211
211
  componentName: "VueUiRadar",
212
212
  type: "datasetAttribute",
213
- property: `category.${l} at index ${a}`,
214
- index: a,
215
- debug: x.value
213
+ property: `category.${l} at index ${o}`,
214
+ index: o,
215
+ debug: F.value
216
216
  });
217
217
  });
218
- }), [null, void 0].includes(t?.series) ? z({
218
+ }), [null, void 0].includes(t?.series) ? D({
219
219
  componentName: "VueUiRadar",
220
220
  type: "datasetAttribute",
221
221
  property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
222
- debug: x.value
223
- }) : t.series.forEach((o, a) => {
224
- Ke({
225
- datasetObject: o,
222
+ debug: F.value
223
+ }) : t.series.forEach((a, o) => {
224
+ Ze({
225
+ datasetObject: a,
226
226
  requiredAttributes: ["name", "values", "target"]
227
227
  }).forEach((l) => {
228
- z({
228
+ D({
229
229
  componentName: "VueUiRadar",
230
230
  type: "datasetSerieAttribute",
231
231
  key: "series",
232
232
  property: l,
233
- index: a,
234
- debug: x.value
233
+ index: o,
234
+ debug: F.value
235
235
  });
236
236
  });
237
237
  });
238
238
  }
239
- ve(
239
+ de(
240
240
  () => O.value,
241
- () => yt(),
241
+ () => mt(),
242
242
  { deep: !0, immediate: !0 }
243
243
  );
244
- const C = v(() => {
245
- const t = Array.isArray(O.value?.categories) ? O.value.categories : [], o = Le.value ?? D;
246
- return t.map((a, l) => ({
247
- name: a?.name ?? "",
244
+ const w = v(() => {
245
+ const t = Array.isArray(O.value?.categories) ? O.value.categories : [], a = Ne.value ?? V;
246
+ return t.map((o, l) => ({
247
+ name: o?.name ?? "",
248
248
  categoryId: `radar_category_${b.value}_${l}`,
249
- color: qe(a?.color) || o[l] || D[l % D.length],
250
- prefix: a?.prefix ?? "",
251
- suffix: a?.suffix ?? ""
249
+ color: Qe(o?.color) || a[l] || V[l % V.length],
250
+ prefix: o?.prefix ?? "",
251
+ suffix: o?.suffix ?? ""
252
252
  }));
253
- }), w = v(() => O.value.series.map((t, o) => ({
253
+ }), k = v(() => O.value.series.map((t, a) => ({
254
254
  ...t,
255
- color: qe(t.color) || Le.value[o] || D[o] || D[o % D.length],
256
- serieId: `radar_serie_${b.value}_${o}`,
257
- formatter: t.formatter || null
258
- }))), Re = v(() => Math.max(...w.value.flatMap((t) => t.values))), De = v(() => w.value.length), se = v(() => Math.min(i.value.width, i.value.height) / 3), ze = v(() => Qe({
255
+ color: Qe(t.color) || Ne.value[a] || V[a] || V[a % V.length],
256
+ serieId: `radar_serie_${b.value}_${a}`,
257
+ formatter: t.formatter || null,
258
+ absoluteIndex: a
259
+ })));
260
+ function Re(t) {
261
+ if (!k.value.length)
262
+ return e.value.debug && console.warn("VueUiRadar - There are no series to show."), null;
263
+ const a = A.value.find((o) => o.name === t);
264
+ return a || (e.value.debug && console.warn(`VueUiRadar - Series name not found "${t}"`), null);
265
+ }
266
+ function bt(t) {
267
+ const a = Re(t);
268
+ a !== null && h.value.includes(a.absoluteIndex) && q(a.absoluteIndex);
269
+ }
270
+ function kt(t) {
271
+ const a = Re(t);
272
+ a !== null && (h.value.includes(a.absoluteIndex) || q(a.absoluteIndex));
273
+ }
274
+ const Ve = v(() => Math.max(...k.value.flatMap((t) => t.values))), De = v(() => k.value.length), ne = v(() => Math.min(i.value.width, i.value.height) / 3), ze = v(() => Je({
259
275
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
260
- radius: se.value,
276
+ radius: ne.value,
261
277
  sides: De.value,
262
278
  rotation: 0
263
- })), mt = v(() => {
279
+ })), Ct = v(() => {
264
280
  const t = [];
265
- for (let o = 0; o < se.value; o += se.value / e.value.style.chart.layout.grid.graduations)
266
- t.push(o);
281
+ for (let a = 0; a < ne.value; a += ne.value / e.value.style.chart.layout.grid.graduations)
282
+ t.push(a);
267
283
  return t;
268
- }), A = v(() => ze.value.coordinates.map((t, o) => {
269
- const a = w.value[o].values.map((l) => kt({
284
+ }), S = v(() => ze.value.coordinates.map((t, a) => {
285
+ const o = k.value[a].values.map((l) => $t({
270
286
  centerX: i.value.width / 2,
271
287
  centerY: i.value.height / 2,
272
288
  apexX: t.x,
273
289
  apexY: t.y,
274
- proportion: l / (w.value[o].target || Re.value)
290
+ proportion: l / (k.value[a].target || Ve.value)
275
291
  }));
276
292
  return {
277
293
  ...t,
278
- ...w.value[o],
279
- plots: a
294
+ ...k.value[a],
295
+ plots: o
280
296
  };
281
297
  }).map((t) => ({
282
298
  ...t,
283
- labelX: ne(t).x,
284
- labelY: ne(t).y,
285
- labelAnchor: ne(t).anchor
299
+ labelX: re(t).x,
300
+ labelY: re(t).y,
301
+ labelAnchor: re(t).anchor
286
302
  })));
287
- function ne({ x: t, y: o }) {
288
- let a = "middle";
289
- return t = Math.round(t), o = Math.round(o), t > i.value.width / 2 && (t += 12, a = "start"), t < i.value.width / 2 && (t -= 12, a = "end"), o > i.value.height / 2 + 1 && (o += 20), o < i.value.height / 2 - 1 && (o -= 12), o === i.value.height / 2 && (o += 4), { x: t, y: o, anchor: a };
303
+ function re({ x: t, y: a }) {
304
+ let o = "middle";
305
+ 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 };
290
306
  }
291
- const bt = v({
307
+ const wt = v({
292
308
  get: () => e.value.style.chart.layout.labels.dataLabels.fontSize,
293
309
  set: (t) => t
294
- }), { autoSizeLabels: Ve } = sa({
310
+ }), { autoSizeLabels: Ue } = ua({
295
311
  svgRef: j,
296
312
  fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
297
313
  minFontSize: 6,
298
- sizeRef: bt,
314
+ sizeRef: wt,
299
315
  labelClass: ".vue-ui-radar-apex-label"
300
316
  });
301
- function kt({ centerX: t, centerY: o, apexX: a, apexY: l, proportion: s }) {
317
+ function $t({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
302
318
  return {
303
- x: t + (a - t) * s,
304
- y: o + (l - o) * s
319
+ x: t + (o - t) * s,
320
+ y: a + (l - a) * s
305
321
  };
306
322
  }
307
- const F = v(() => {
308
- const t = w.value.map((o, a) => o.values.map((l) => l / (o.target || Re.value)));
309
- return C.value.map((o, a) => {
310
- const l = Wt(t.map((s) => s[a]).reduce((s, d) => s + d, 0) / w.value.length);
323
+ const A = v(() => {
324
+ const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || Ve.value)));
325
+ return w.value.map((a, o) => {
326
+ const l = Ht(t.map((s) => s[o]).reduce((s, d) => s + d, 0) / k.value.length);
311
327
  return {
312
- ...o,
328
+ ...a,
329
+ absoluteIndex: o,
313
330
  totalProportion: l,
314
331
  shape: "circle",
315
- opacity: g.value.includes(a) ? 0.5 : 1,
316
- segregate: () => Ne(a),
317
- isSegregated: g.value.includes(a),
318
- display: `${o.name}: ${G({
332
+ opacity: h.value.includes(o) ? 0.5 : 1,
333
+ segregate: () => q(o),
334
+ isSegregated: h.value.includes(o),
335
+ display: `${a.name}: ${G({
319
336
  v: (l ?? 0) * 100,
320
337
  s: "%",
321
338
  r: e.value.style.chart.legend.roundingPercentage
322
339
  })}`
323
340
  };
324
341
  });
325
- }), Ct = v(() => ({
342
+ }), _t = v(() => ({
326
343
  cy: "radar-div-legend",
327
344
  backgroundColor: e.value.style.chart.legend.backgroundColor,
328
345
  color: e.value.style.chart.legend.color,
329
346
  fontSize: e.value.style.chart.legend.fontSize,
330
347
  paddingBottom: 12,
331
348
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
332
- })), q = v(() => {
349
+ })), Q = v(() => {
333
350
  const t = [
334
351
  { name: e.value.translations.datapoint, color: "" },
335
352
  { name: e.value.translations.target, color: "" },
336
- ...F.value
337
- ], o = O.value.series.map((l) => [
353
+ ...A.value
354
+ ], a = O.value.series.map((l) => [
338
355
  l.name,
339
- pe(
356
+ he(
340
357
  l.formatter,
341
358
  l.target,
342
359
  G({
@@ -346,16 +363,16 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
346
363
  r: e.value.table.td.roundingValue
347
364
  })
348
365
  ),
349
- ...l.values.map((s, d) => `${pe(
366
+ ...l.values.map((s, d) => `${he(
350
367
  l.formatter,
351
368
  s,
352
- G({ p: C.value[d]?.prefix ?? "", v: s, s: C.value[d]?.suffix ?? "", r: e.value.table.td.roundingValue })
369
+ G({ p: w.value[d]?.prefix ?? "", v: s, s: w.value[d]?.suffix ?? "", r: e.value.table.td.roundingValue })
353
370
  )} (${isNaN(s / l.target) ? "" : G({
354
371
  v: s / l.target * 100,
355
372
  s: "%",
356
373
  r: e.value.table.td.roundingPercentage
357
374
  })})`)
358
- ]), a = {
375
+ ]), o = {
359
376
  th: {
360
377
  backgroundColor: e.value.table.th.backgroundColor,
361
378
  color: e.value.table.th.color,
@@ -368,110 +385,110 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
368
385
  },
369
386
  breakpoint: e.value.table.responsiveBreakpoint
370
387
  };
371
- return { head: t, body: o, config: a, colNames: t };
372
- }), Q = c(null), re = c([]), ue = c(null);
373
- function wt(t, o) {
374
- ee.value = !1, Q.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
388
+ return { head: t, body: a, config: o, colNames: t };
389
+ }), J = c(null), ue = c([]), ie = c(null);
390
+ function Tt(t, a) {
391
+ te.value = !1, J.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
375
392
  }
376
- function _t(t, o) {
377
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
393
+ function St(t, a) {
394
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
378
395
  }
379
- function $t(t, o) {
380
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o });
381
- const a = C.value.slice();
382
- re.value = [], Q.value = o, ee.value = !0, ue.value = {
396
+ function At(t, a) {
397
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a });
398
+ const o = w.value.slice();
399
+ ue.value = [], J.value = a, te.value = !0, ie.value = {
383
400
  datapoint: t,
384
- seriesIndex: o,
401
+ seriesIndex: a,
385
402
  series: {
386
- categories: a,
387
- datapoints: w.value,
388
- radar: A.value
403
+ categories: o,
404
+ datapoints: k.value,
405
+ radar: S.value
389
406
  },
390
407
  config: e.value
391
408
  };
392
409
  const l = e.value.style.chart.tooltip.customFormat;
393
- if (qt(l) && Qt(() => l({
394
- seriesIndex: o,
410
+ if (Kt(l) && Zt(() => l({
411
+ seriesIndex: a,
395
412
  datapoint: t,
396
- series: { categories: a, datapoints: w.value, radar: A.value },
413
+ series: { categories: o, datapoints: k.value, radar: S.value },
397
414
  config: e.value
398
415
  }))) {
399
- te.value = l({
400
- seriesIndex: o,
416
+ ae.value = l({
417
+ seriesIndex: a,
401
418
  datapoint: t,
402
- series: { categories: a, datapoints: w.value, radar: A.value },
419
+ series: { categories: o, datapoints: k.value, radar: S.value },
403
420
  config: e.value
404
421
  });
405
422
  return;
406
423
  }
407
- te.value = `<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>`;
424
+ ae.value = `<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>`;
408
425
  for (let s = 0; s < t.values.length; s += 1)
409
- if (!g.value.includes(s)) {
410
- const d = a[s], m = t.values[s], We = isNaN(m / t.target) ? 0 : m / t.target * 100, U = pe(
426
+ if (!h.value.includes(s)) {
427
+ const d = o[s], m = t.values[s], Xe = isNaN(m / t.target) ? 0 : m / t.target * 100, B = he(
411
428
  t.formatter,
412
429
  m,
413
430
  G({
414
- p: C.value[s].prefix,
431
+ p: w.value[s].prefix,
415
432
  v: m,
416
- s: C.value[s].suffix,
433
+ s: w.value[s].suffix,
417
434
  r: e.value.style.chart.tooltip.roundingValue
418
435
  }),
419
436
  { datapoint: t }
420
- ), Xe = G({
421
- v: We,
437
+ ), Ye = G({
438
+ v: Xe,
422
439
  s: "%",
423
440
  r: e.value.style.chart.tooltip.roundingPercentage
424
- }), It = e.value.style.chart.tooltip.showValue && e.value.style.chart.tooltip.showPercentage ? `${U} (${Xe})` : e.value.style.chart.tooltip.showValue && !e.value.style.chart.tooltip.showPercentage ? U : !e.value.style.chart.tooltip.showValue && e.value.style.chart.tooltip.showPercentage ? `${Xe}` : "";
425
- re.value.push({
441
+ }), Rt = e.value.style.chart.tooltip.showValue && e.value.style.chart.tooltip.showPercentage ? `${B} (${Ye})` : e.value.style.chart.tooltip.showValue && !e.value.style.chart.tooltip.showPercentage ? B : !e.value.style.chart.tooltip.showValue && e.value.style.chart.tooltip.showPercentage ? `${Ye}` : "";
442
+ ue.value.push({
426
443
  name: d?.name ?? `#${s + 1}`,
427
444
  value: t.values[s] / t.target * 100,
428
445
  color: d?.color,
429
- suffix: It,
446
+ suffix: Rt,
430
447
  prefix: "",
431
448
  rounding: e.value.style.chart.tooltip.roundingPercentage,
432
449
  formatter: t.formatter
433
450
  });
434
451
  }
435
452
  }
436
- function ie(t = null) {
437
- je(() => {
438
- const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...F.value.flatMap((m) => [[m.name], ["%"]])], l = O.value.series.map((m, We) => [m.name, m.target, ...m.values.flatMap((U) => [
439
- U,
440
- isNaN(U / m.target) ? "" : U / m.target * 100
441
- ])]), s = o.concat([a]).concat(l), d = Ht(s);
442
- t ? t(d) : jt({ csvContent: d, title: e.value.style.chart.title.text || "vue-ui-radar" });
453
+ function ce(t = null) {
454
+ qe(() => {
455
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...A.value.flatMap((m) => [[m.name], ["%"]])], l = O.value.series.map((m, Xe) => [m.name, m.target, ...m.values.flatMap((B) => [
456
+ B,
457
+ isNaN(B / m.target) ? "" : B / m.target * 100
458
+ ])]), s = a.concat([o]).concat(l), d = Qt(s);
459
+ t ? t(d) : Jt({ csvContent: d, title: e.value.style.chart.title.text || "vue-ui-radar" });
443
460
  });
444
461
  }
445
462
  const I = c(!1);
446
463
  function Be(t) {
447
- I.value = t, fe.value += 1;
464
+ I.value = t, ye.value += 1;
448
465
  }
449
- function Ue() {
466
+ function Ee() {
450
467
  y.value.showTable = !y.value.showTable;
451
468
  }
452
- function Ee() {
469
+ function Me() {
453
470
  y.value.showTooltip = !y.value.showTooltip;
454
471
  }
455
- const J = c(!1);
456
- function ce() {
457
- J.value = !J.value;
472
+ const K = c(!1);
473
+ function ve() {
474
+ K.value = !K.value;
458
475
  }
459
- async function Tt({ scale: t = 2 } = {}) {
460
- if (!_.value) return;
461
- const { width: o, height: a } = _.value.getBoundingClientRect(), l = o / a, { imageUri: s, base64: d } = await na({ domElement: _.value, base64: !0, img: !0, scale: t });
476
+ async function Pt({ scale: t = 2 } = {}) {
477
+ if (!$.value) return;
478
+ const { width: a, height: o } = $.value.getBoundingClientRect(), l = a / o, { imageUri: s, base64: d } = await ia({ domElement: $.value, base64: !0, img: !0, scale: t });
462
479
  return {
463
480
  imageUri: s,
464
481
  base64: d,
465
482
  title: e.value.style.chart.title.text,
466
- width: o,
467
- height: a,
483
+ width: a,
484
+ height: o,
468
485
  aspectRatio: l
469
486
  };
470
487
  }
471
488
  const Y = v(() => {
472
- const t = e.value.table.useDialog && !e.value.table.show, o = y.value.showTable;
489
+ const t = e.value.table.useDialog && !e.value.table.show, a = y.value.showTable;
473
490
  return {
474
- component: t ? vt : nt,
491
+ component: t ? dt : rt,
475
492
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
476
493
  props: t ? {
477
494
  backgroundColor: e.value.table.th.backgroundColor,
@@ -479,12 +496,12 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
479
496
  headerColor: e.value.table.th.color,
480
497
  headerBg: e.value.table.th.backgroundColor,
481
498
  isFullscreen: I.value,
482
- fullscreenParent: _.value,
499
+ fullscreenParent: $.value,
483
500
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
484
501
  } : {
485
502
  hideDetails: !0,
486
503
  config: {
487
- open: o,
504
+ open: a,
488
505
  maxHeight: 1e4,
489
506
  body: {
490
507
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -498,72 +515,74 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
498
515
  }
499
516
  };
500
517
  });
501
- ve(() => y.value.showTable, (t) => {
518
+ de(() => y.value.showTable, (t) => {
502
519
  e.value.table.show || (t && e.value.table.useDialog && W.value ? W.value.open() : "close" in W.value && W.value.close());
503
520
  });
504
- function Me() {
505
- y.value.showTable = !1, ae.value && ae.value.setTableIconState(!1);
521
+ function Ge() {
522
+ y.value.showTable = !1, oe.value && oe.value.setTableIconState(!1);
506
523
  }
507
- const At = v(() => F.value.map((t) => ({
524
+ const xt = v(() => A.value.map((t) => ({
508
525
  ...t,
509
526
  name: t.display
510
- }))), Pt = v(() => e.value.style.chart.backgroundColor), St = v(() => e.value.style.chart.legend), Ot = v(() => e.value.style.chart.title), { exportSvg: xt, getSvg: Ft } = ca({
527
+ }))), Ot = v(() => e.value.style.chart.backgroundColor), Ft = v(() => e.value.style.chart.legend), It = v(() => e.value.style.chart.title), { exportSvg: Lt, getSvg: Nt } = pa({
511
528
  svg: j,
512
- title: Ot,
513
- legend: St,
514
- legendItems: At,
515
- backgroundColor: Pt
529
+ title: It,
530
+ legend: Ft,
531
+ legendItems: xt,
532
+ backgroundColor: Ot
516
533
  });
517
- async function Ge({ isCb: t }) {
534
+ async function We({ isCb: t }) {
518
535
  if (t) {
519
- const { blob: o, url: a, text: l, dataUrl: s } = await Ft();
520
- e.value.userOptions.callbacks.svg({ blob: o, url: a, text: l, dataUrl: s });
536
+ const { blob: a, url: o, text: l, dataUrl: s } = await Nt();
537
+ e.value.userOptions.callbacks.svg({ blob: a, url: o, text: l, dataUrl: s });
521
538
  } else
522
- xt();
539
+ Lt();
523
540
  }
524
- return tt({
525
- getData: ft,
526
- getImage: Tt,
527
- generatePdf: Fe,
528
- generateCsv: ie,
529
- generateImage: Ie,
530
- generateSvg: Ge,
531
- toggleTable: Ue,
532
- toggleTooltip: Ee,
533
- toggleAnnotator: ce,
541
+ return at({
542
+ getData: yt,
543
+ getImage: Pt,
544
+ generatePdf: Ie,
545
+ generateCsv: ce,
546
+ generateImage: Le,
547
+ generateSvg: We,
548
+ hideSeries: kt,
549
+ showSeries: bt,
550
+ toggleTable: Ee,
551
+ toggleTooltip: Me,
552
+ toggleAnnotator: ve,
534
553
  toggleFullscreen: Be
535
- }), (t, o) => (n(), r("div", {
554
+ }), (t, a) => (n(), r("div", {
536
555
  class: H(`vue-data-ui-component vue-ui-radar ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
537
556
  ref_key: "radarChart",
538
- ref: _,
557
+ ref: $,
539
558
  id: `vue-ui-radar_${b.value}`,
540
- style: K(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
541
- onMouseenter: o[2] || (o[2] = () => u(Ae)(!0)),
542
- onMouseleave: o[3] || (o[3] = () => u(Ae)(!1))
559
+ style: Z(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
560
+ onMouseenter: a[2] || (a[2] = () => u(Ae)(!0)),
561
+ onMouseleave: a[3] || (a[3] = () => u(Ae)(!1))
543
562
  }, [
544
- e.value.userOptions.buttons.annotator ? (n(), P(u(ut), {
563
+ e.value.userOptions.buttons.annotator ? (n(), P(u(it), {
545
564
  key: 0,
546
565
  svgRef: u(j),
547
566
  backgroundColor: e.value.style.chart.backgroundColor,
548
567
  color: e.value.style.chart.color,
549
- active: J.value,
550
- onClose: ce
568
+ active: K.value,
569
+ onClose: ve
551
570
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
552
- pt.value ? (n(), r("div", {
571
+ ht.value ? (n(), r("div", {
553
572
  key: 1,
554
573
  ref_key: "noTitle",
555
- ref: ke,
574
+ ref: Ce,
556
575
  class: "vue-data-ui-no-title-space",
557
576
  style: "height:36px; width: 100%;background:transparent"
558
577
  }, null, 512)) : p("", !0),
559
578
  e.value.style.chart.title.text ? (n(), r("div", {
560
579
  key: 2,
561
580
  ref_key: "chartTitle",
562
- ref: ye,
581
+ ref: me,
563
582
  style: "width:100%;background:transparent;padding-bottom:12px"
564
583
  }, [
565
- (n(), P(ra, {
566
- key: `title_${Ce.value}`,
584
+ (n(), P(ca, {
585
+ key: `title_${we.value}`,
567
586
  config: {
568
587
  title: {
569
588
  cy: "radar-div-title",
@@ -576,16 +595,16 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
576
595
  }
577
596
  }, null, 8, ["config"]))
578
597
  ], 512)) : p("", !0),
579
- k("div", {
598
+ C("div", {
580
599
  id: `legend-top-${b.value}`
581
- }, null, 8, pa),
582
- e.value.userOptions.show && ge.value && (u(Pe) || u(oe)) ? (n(), P(u(it), {
600
+ }, null, 8, fa),
601
+ e.value.userOptions.show && fe.value && (u(Pe) || u(le)) ? (n(), P(u(ct), {
583
602
  ref_key: "userOptionsRef",
584
- ref: ae,
585
- key: `user_options_${fe.value}`,
603
+ ref: oe,
604
+ key: `user_options_${ye.value}`,
586
605
  backgroundColor: e.value.style.chart.backgroundColor,
587
606
  color: e.value.style.chart.color,
588
- isImaging: u(xe),
607
+ isImaging: u(Fe),
589
608
  isPrinting: u(Oe),
590
609
  uid: b.value,
591
610
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
@@ -598,85 +617,85 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
598
617
  isFullscreen: I.value,
599
618
  isTooltip: y.value.showTooltip,
600
619
  titles: { ...e.value.userOptions.buttonTitles },
601
- chartElement: _.value,
620
+ chartElement: $.value,
602
621
  position: e.value.userOptions.position,
603
622
  hasAnnotator: e.value.userOptions.buttons.annotator,
604
- isAnnotation: J.value,
623
+ isAnnotation: K.value,
605
624
  callbacks: e.value.userOptions.callbacks,
606
625
  printScale: e.value.userOptions.print.scale,
607
626
  tableDialog: e.value.table.useDialog,
608
627
  onToggleFullscreen: Be,
609
- onGeneratePdf: u(Fe),
610
- onGenerateCsv: ie,
611
- onGenerateImage: u(Ie),
612
- onGenerateSvg: Ge,
613
- onToggleTable: Ue,
614
- onToggleTooltip: Ee,
615
- onToggleAnnotator: ce,
616
- style: K({
617
- visibility: u(Pe) ? u(oe) ? "visible" : "hidden" : "visible"
628
+ onGeneratePdf: u(Ie),
629
+ onGenerateCsv: ce,
630
+ onGenerateImage: u(Le),
631
+ onGenerateSvg: We,
632
+ onToggleTable: Ee,
633
+ onToggleTooltip: Me,
634
+ onToggleAnnotator: ve,
635
+ style: Z({
636
+ visibility: u(Pe) ? u(le) ? "visible" : "hidden" : "visible"
618
637
  })
619
- }, He({ _: 2 }, [
638
+ }, je({ _: 2 }, [
620
639
  t.$slots.menuIcon ? {
621
640
  name: "menuIcon",
622
- fn: h(({ isOpen: a, color: l }) => [
623
- f(t.$slots, "menuIcon", E(M({ isOpen: a, color: l })), void 0, !0)
641
+ fn: g(({ isOpen: o, color: l }) => [
642
+ f(t.$slots, "menuIcon", E(M({ isOpen: o, color: l })), void 0, !0)
624
643
  ]),
625
644
  key: "0"
626
645
  } : void 0,
627
646
  t.$slots.optionTooltip ? {
628
647
  name: "optionTooltip",
629
- fn: h(() => [
648
+ fn: g(() => [
630
649
  f(t.$slots, "optionTooltip", {}, void 0, !0)
631
650
  ]),
632
651
  key: "1"
633
652
  } : void 0,
634
653
  t.$slots.optionPdf ? {
635
654
  name: "optionPdf",
636
- fn: h(() => [
655
+ fn: g(() => [
637
656
  f(t.$slots, "optionPdf", {}, void 0, !0)
638
657
  ]),
639
658
  key: "2"
640
659
  } : void 0,
641
660
  t.$slots.optionCsv ? {
642
661
  name: "optionCsv",
643
- fn: h(() => [
662
+ fn: g(() => [
644
663
  f(t.$slots, "optionCsv", {}, void 0, !0)
645
664
  ]),
646
665
  key: "3"
647
666
  } : void 0,
648
667
  t.$slots.optionImg ? {
649
668
  name: "optionImg",
650
- fn: h(() => [
669
+ fn: g(() => [
651
670
  f(t.$slots, "optionImg", {}, void 0, !0)
652
671
  ]),
653
672
  key: "4"
654
673
  } : void 0,
655
674
  t.$slots.optionSvg ? {
656
675
  name: "optionSvg",
657
- fn: h(() => [
676
+ fn: g(() => [
658
677
  f(t.$slots, "optionSvg", {}, void 0, !0)
659
678
  ]),
660
679
  key: "5"
661
680
  } : void 0,
662
681
  t.$slots.optionTable ? {
663
682
  name: "optionTable",
664
- fn: h(() => [
683
+ fn: g(() => [
665
684
  f(t.$slots, "optionTable", {}, void 0, !0)
666
685
  ]),
667
686
  key: "6"
668
687
  } : void 0,
669
688
  t.$slots.optionFullscreen ? {
670
689
  name: "optionFullscreen",
671
- fn: h(({ toggleFullscreen: a, isFullscreen: l }) => [
672
- f(t.$slots, "optionFullscreen", E(M({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
690
+ fn: g(({ toggleFullscreen: o, isFullscreen: l }) => [
691
+ f(t.$slots, "optionFullscreen", E(M({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
673
692
  ]),
674
693
  key: "7"
675
694
  } : void 0,
676
695
  t.$slots.optionAnnotator ? {
677
696
  name: "optionAnnotator",
678
- fn: h(({ toggleAnnotator: a, isAnnotator: l }) => [
679
- f(t.$slots, "optionAnnotator", E(M({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
697
+ fn: g(({ toggleAnnotator: o, isAnnotator: l }) => [
698
+ f(t.$slots, "optionAnnotator", E(M({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
680
699
  ]),
681
700
  key: "8"
682
701
  } : void 0
@@ -684,12 +703,12 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
684
703
  (n(), r("svg", {
685
704
  ref_key: "svgRef",
686
705
  ref: j,
687
- xmlns: u(Xt),
706
+ xmlns: u(jt),
688
707
  class: H({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
689
708
  viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
690
- style: K(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
709
+ style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
691
710
  }, [
692
- Z(u(ct)),
711
+ ee(u(vt)),
693
712
  t.$slots["chart-background"] ? (n(), r("foreignObject", {
694
713
  key: 0,
695
714
  x: 0,
@@ -701,9 +720,9 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
701
720
  }
702
721
  }, [
703
722
  f(t.$slots, "chart-background", {}, void 0, !0)
704
- ], 8, ga)) : p("", !0),
705
- k("defs", null, [
706
- (n(!0), r(L, null, N(C.value, (a, l) => (n(), r("radialGradient", {
723
+ ], 8, ma)) : p("", !0),
724
+ C("defs", null, [
725
+ (n(!0), r(L, null, N(w.value, (o, l) => (n(), r("radialGradient", {
707
726
  cx: "50%",
708
727
  cy: "50%",
709
728
  r: "50%",
@@ -711,139 +730,139 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
711
730
  fy: "50%",
712
731
  id: `radar_gradient_${b.value}_${l}`
713
732
  }, [
714
- k("stop", {
733
+ C("stop", {
715
734
  offset: "0%",
716
- "stop-color": u(he)(u(Yt)(a.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
717
- }, null, 8, ya),
718
- k("stop", {
735
+ "stop-color": u(ge)(u(qt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
736
+ }, null, 8, ka),
737
+ C("stop", {
719
738
  offset: "100%",
720
- "stop-color": u(he)(a.color, e.value.style.chart.layout.dataPolygon.opacity)
721
- }, null, 8, ma)
722
- ], 8, fa))), 256))
739
+ "stop-color": u(ge)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
740
+ }, null, 8, Ca)
741
+ ], 8, ba))), 256))
723
742
  ]),
724
- e.value.style.chart.layout.grid.show ? (n(), r("g", ba, [
725
- (n(!0), r(L, null, N(A.value, (a) => (n(), r("line", {
743
+ e.value.style.chart.layout.grid.show ? (n(), r("g", wa, [
744
+ (n(!0), r(L, null, N(S.value, (o) => (n(), r("line", {
726
745
  x1: i.value.width / 2,
727
746
  y1: i.value.height / 2,
728
- x2: a.x,
729
- y2: a.y,
747
+ x2: o.x,
748
+ y2: o.y,
730
749
  stroke: e.value.style.chart.layout.grid.stroke,
731
750
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
732
- }, null, 8, ka))), 256)),
733
- e.value.style.chart.layout.grid.graduations > 0 ? (n(), r("g", Ca, [
734
- (n(!0), r(L, null, N(mt.value, (a) => (n(), r("path", {
735
- d: u(Qe)({
751
+ }, null, 8, $a))), 256)),
752
+ e.value.style.chart.layout.grid.graduations > 0 ? (n(), r("g", _a, [
753
+ (n(!0), r(L, null, N(Ct.value, (o) => (n(), r("path", {
754
+ d: u(Je)({
736
755
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
737
- radius: a,
756
+ radius: o,
738
757
  sides: De.value,
739
758
  rotation: 0
740
759
  }).path,
741
760
  fill: "none",
742
761
  stroke: e.value.style.chart.layout.grid.stroke,
743
762
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
744
- }, null, 8, wa))), 256))
763
+ }, null, 8, Ta))), 256))
745
764
  ])) : p("", !0)
746
765
  ])) : p("", !0),
747
- k("path", {
766
+ C("path", {
748
767
  d: ze.value.path,
749
768
  fill: "none",
750
769
  stroke: e.value.style.chart.layout.outerPolygon.stroke,
751
770
  "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
752
771
  "stroke-linejoin": "round",
753
772
  "stroke-linecap": "round"
754
- }, null, 8, _a),
755
- e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", $a, [
756
- (n(!0), r(L, null, N(A.value, (a, l) => (n(), r("text", {
773
+ }, null, 8, Sa),
774
+ e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", Aa, [
775
+ (n(!0), r(L, null, N(S.value, (o, l) => (n(), r("text", {
757
776
  class: "vue-ui-radar-apex-label",
758
- x: a.labelX,
759
- y: a.labelY,
760
- "text-anchor": a.labelAnchor,
777
+ x: o.labelX,
778
+ y: o.labelY,
779
+ "text-anchor": o.labelAnchor,
761
780
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
762
781
  fill: e.value.style.chart.layout.labels.dataLabels.color,
763
- onMouseenter: (s) => $t(a, l),
764
- onMouseleave: (s) => wt(a, l),
765
- onClick: (s) => _t(a, l)
766
- }, R(a.name), 41, Ta))), 256))
782
+ onMouseenter: (s) => At(o, l),
783
+ onMouseleave: (s) => Tt(o, l),
784
+ onClick: (s) => St(o, l)
785
+ }, R(o.name), 41, Pa))), 256))
767
786
  ])) : p("", !0),
768
- (n(!0), r(L, null, N(C.value, (a, l) => (n(), r("g", null, [
769
- k("g", null, [
770
- e.value.useCssAnimation || !e.value.useCssAnimation && !g.value.includes(l) ? (n(), r("polygon", {
787
+ (n(!0), r(L, null, N(w.value, (o, l) => (n(), r("g", null, [
788
+ C("g", null, [
789
+ e.value.useCssAnimation || !e.value.useCssAnimation && !h.value.includes(l) ? (n(), r("polygon", {
771
790
  key: 0,
772
- points: u(Je)(A.value.map((s) => s.plots[l]), !1, !0),
791
+ points: u(Ke)(S.value.map((s) => s.plots[l]), !1, !0),
773
792
  stroke: e.value.style.chart.backgroundColor,
774
793
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
775
794
  fill: "none",
776
- class: H({ "animated-out": g.value.includes(l) && e.value.useCssAnimation, "animated-in": B.value && X.value === l && e.value.useCssAnimation })
777
- }, null, 10, Aa)) : p("", !0),
778
- e.value.useCssAnimation || !e.value.useCssAnimation && !g.value.includes(l) ? (n(), r("polygon", {
795
+ class: H({ "animated-out": h.value.includes(l) && e.value.useCssAnimation, "animated-in": U.value && X.value === l && e.value.useCssAnimation })
796
+ }, null, 10, xa)) : p("", !0),
797
+ e.value.useCssAnimation || !e.value.useCssAnimation && !h.value.includes(l) ? (n(), r("polygon", {
779
798
  key: 1,
780
- points: u(Je)(A.value.map((s) => s.plots[l]), !1, !0),
781
- stroke: a.color,
799
+ points: u(Ke)(S.value.map((s) => s.plots[l]), !1, !0),
800
+ stroke: o.color,
782
801
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
783
- fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${b.value}_${l})` : u(he)(a.color, e.value.style.chart.layout.dataPolygon.opacity),
784
- class: H({ "animated-out": g.value.includes(l) && e.value.useCssAnimation, "animated-in": B.value && X.value === l && e.value.useCssAnimation })
785
- }, null, 10, Pa)) : p("", !0)
802
+ fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${b.value}_${l})` : u(ge)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
803
+ class: H({ "animated-out": h.value.includes(l) && e.value.useCssAnimation, "animated-in": U.value && X.value === l && e.value.useCssAnimation })
804
+ }, null, 10, Oa)) : p("", !0)
786
805
  ])
787
806
  ]))), 256)),
788
- e.value.style.chart.layout.plots.show ? (n(), r("g", Sa, [
789
- (n(!0), r(L, null, N(A.value, (a, l) => (n(), r("g", null, [
790
- (n(!0), r(L, null, N(a.plots, (s, d) => (n(), r("circle", {
807
+ e.value.style.chart.layout.plots.show ? (n(), r("g", Fa, [
808
+ (n(!0), r(L, null, N(S.value, (o, l) => (n(), r("g", null, [
809
+ (n(!0), r(L, null, N(o.plots, (s, d) => (n(), r("circle", {
791
810
  cx: s.x,
792
811
  cy: s.y,
793
- fill: g.value.includes(d) ? "transparent" : C.value[d] ? C.value[d].color : "transparent",
794
- r: Q.value !== null && Q.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
795
- stroke: g.value.includes(d) ? "transparent" : e.value.style.chart.backgroundColor,
812
+ fill: h.value.includes(d) ? "transparent" : w.value[d] ? w.value[d].color : "transparent",
813
+ r: J.value !== null && J.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
814
+ stroke: h.value.includes(d) ? "transparent" : e.value.style.chart.backgroundColor,
796
815
  "stroke-width": 0.5,
797
- class: H({ "animated-out": g.value.includes(d) && e.value.useCssAnimation, "animated-in": B.value && X.value === d && e.value.useCssAnimation })
798
- }, null, 10, Oa))), 256))
816
+ class: H({ "animated-out": h.value.includes(d) && e.value.useCssAnimation, "animated-in": U.value && X.value === d && e.value.useCssAnimation })
817
+ }, null, 10, Ia))), 256))
799
818
  ]))), 256))
800
819
  ])) : p("", !0),
801
820
  f(t.$slots, "svg", { svg: i.value }, void 0, !0)
802
- ], 14, ha)),
803
- t.$slots.watermark ? (n(), r("div", xa, [
804
- f(t.$slots, "watermark", E(M({ isPrinting: u(Oe) || u(xe) })), void 0, !0)
821
+ ], 14, ya)),
822
+ t.$slots.watermark ? (n(), r("div", La, [
823
+ f(t.$slots, "watermark", E(M({ isPrinting: u(Oe) || u(Fe) })), void 0, !0)
805
824
  ])) : p("", !0),
806
- k("div", {
825
+ C("div", {
807
826
  id: `legend-bottom-${b.value}`
808
- }, null, 8, Fa),
809
- $e.value ? (n(), P(Dt, {
827
+ }, null, 8, Na),
828
+ Te.value ? (n(), P(Ut, {
810
829
  key: 5,
811
830
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
812
831
  }, [
813
- k("div", {
832
+ C("div", {
814
833
  ref_key: "chartLegend",
815
- ref: me
834
+ ref: be
816
835
  }, [
817
- e.value.style.chart.legend.show ? (n(), P(ua, {
836
+ e.value.style.chart.legend.show ? (n(), P(va, {
818
837
  key: `legend_${_e.value}`,
819
- legendSet: F.value,
820
- config: Ct.value,
821
- onClickMarker: o[0] || (o[0] = ({ i: a }) => Ne(a))
838
+ legendSet: A.value,
839
+ config: _t.value,
840
+ onClickMarker: a[0] || (a[0] = ({ i: o }) => q(o))
822
841
  }, {
823
- item: h(({ legend: a, index: l }) => [
824
- u(Te) ? p("", !0) : (n(), r("div", {
842
+ item: g(({ legend: o, index: l }) => [
843
+ u(Se) ? p("", !0) : (n(), r("div", {
825
844
  key: 0,
826
- onClick: (s) => a.segregate(),
827
- style: K(`opacity:${g.value.includes(l) ? 0.5 : 1}`)
828
- }, R(a.display), 13, Ia))
845
+ onClick: (s) => o.segregate(),
846
+ style: Z(`opacity:${h.value.includes(l) ? 0.5 : 1}`)
847
+ }, R(o.display), 13, Ra))
829
848
  ]),
830
849
  _: 1
831
850
  }, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
832
851
  key: 1,
833
- legend: F.value
852
+ legend: A.value
834
853
  }, void 0, !0)
835
854
  ], 512)
836
855
  ], 8, ["to"])) : p("", !0),
837
856
  t.$slots.source ? (n(), r("div", {
838
857
  key: 6,
839
858
  ref_key: "source",
840
- ref: be,
859
+ ref: ke,
841
860
  dir: "auto"
842
861
  }, [
843
862
  f(t.$slots, "source", {}, void 0, !0)
844
863
  ], 512)) : p("", !0),
845
- Z(u(ot), {
846
- show: y.value.showTooltip && ee.value,
864
+ ee(u(lt), {
865
+ show: y.value.showTooltip && te.value,
847
866
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
848
867
  color: e.value.style.chart.tooltip.color,
849
868
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -853,8 +872,8 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
853
872
  fontSize: e.value.style.chart.tooltip.fontSize,
854
873
  position: e.value.style.chart.tooltip.position,
855
874
  offsetY: e.value.style.chart.tooltip.offsetY,
856
- parent: _.value,
857
- content: te.value,
875
+ parent: $.value,
876
+ content: ae.value,
858
877
  isFullscreen: I.value,
859
878
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
860
879
  smooth: e.value.style.chart.tooltip.smooth,
@@ -862,50 +881,50 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
862
881
  smoothForce: e.value.style.chart.tooltip.smoothForce,
863
882
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
864
883
  }, {
865
- "tooltip-before": h(() => [
866
- f(t.$slots, "tooltip-before", E(M({ ...ue.value })), void 0, !0)
884
+ "tooltip-before": g(() => [
885
+ f(t.$slots, "tooltip-before", E(M({ ...ie.value })), void 0, !0)
867
886
  ]),
868
- "tooltip-after": h(() => [
869
- ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? p("", !0) : (n(), r("div", La, [
870
- Z(u(st), {
871
- dataset: re.value,
872
- config: ht.value,
887
+ "tooltip-after": g(() => [
888
+ ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? p("", !0) : (n(), r("div", Va, [
889
+ ee(u(nt), {
890
+ dataset: ue.value,
891
+ config: gt.value,
873
892
  backgroundOpacity: 0
874
893
  }, {
875
- "data-label": h(({ bar: a }) => [
876
- k("div", Na, [
877
- k("span", Ra, R(a.name + (e.value.style.chart.tooltip.showValue || e.value.style.chart.tooltip.showPercentage ? ":" : "")), 1),
878
- e.value.style.chart.tooltip.showValue || e.value.style.chart.tooltip.showPercentage ? (n(), r("span", Da, R(a.suffix), 1)) : p("", !0)
894
+ "data-label": g(({ bar: o }) => [
895
+ C("div", Da, [
896
+ C("span", za, R(o.name + (e.value.style.chart.tooltip.showValue || e.value.style.chart.tooltip.showPercentage ? ":" : "")), 1),
897
+ e.value.style.chart.tooltip.showValue || e.value.style.chart.tooltip.showPercentage ? (n(), r("span", Ua, R(o.suffix), 1)) : p("", !0)
879
898
  ])
880
899
  ]),
881
900
  _: 1
882
901
  }, 8, ["dataset", "config"])
883
902
  ])),
884
- f(t.$slots, "tooltip-after", E(M({ ...ue.value })), void 0, !0)
903
+ f(t.$slots, "tooltip-after", E(M({ ...ie.value })), void 0, !0)
885
904
  ]),
886
905
  _: 3
887
906
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
888
- ge.value && e.value.userOptions.buttons.table ? (n(), P(zt(Y.value.component), Vt({ key: 7 }, Y.value.props, {
907
+ fe.value && e.value.userOptions.buttons.table ? (n(), P(Bt(Y.value.component), Et({ key: 7 }, Y.value.props, {
889
908
  ref_key: "tableUnit",
890
909
  ref: W,
891
- onClose: Me
892
- }), He({
893
- content: h(() => [
894
- (n(), P(u(rt), {
895
- key: `table_${we.value}`,
896
- colNames: q.value.colNames,
897
- head: q.value.head,
898
- body: q.value.body,
899
- config: q.value.config,
910
+ onClose: Ge
911
+ }), je({
912
+ content: g(() => [
913
+ (n(), P(u(ut), {
914
+ key: `table_${$e.value}`,
915
+ colNames: Q.value.colNames,
916
+ head: Q.value.head,
917
+ body: Q.value.body,
918
+ config: Q.value.config,
900
919
  title: e.value.table.useDialog ? "" : Y.value.title,
901
920
  withCloseButton: !e.value.table.useDialog,
902
- onClose: Me
921
+ onClose: Ge
903
922
  }, {
904
- th: h(({ th: a }) => [
905
- de(R(a.name), 1)
923
+ th: g(({ th: o }) => [
924
+ pe(R(o.name), 1)
906
925
  ]),
907
- td: h(({ td: a }) => [
908
- de(R(a), 1)
926
+ td: g(({ td: o }) => [
927
+ pe(R(o), 1)
909
928
  ]),
910
929
  _: 1
911
930
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -914,20 +933,20 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
914
933
  }, [
915
934
  e.value.table.useDialog ? {
916
935
  name: "title",
917
- fn: h(() => [
918
- de(R(Y.value.title), 1)
936
+ fn: g(() => [
937
+ pe(R(Y.value.title), 1)
919
938
  ]),
920
939
  key: "0"
921
940
  } : void 0,
922
941
  e.value.table.useDialog ? {
923
942
  name: "actions",
924
- fn: h(() => [
925
- k("button", {
943
+ fn: g(() => [
944
+ C("button", {
926
945
  tabindex: "0",
927
946
  class: "vue-ui-user-options-button",
928
- onClick: o[1] || (o[1] = (a) => ie(e.value.userOptions.callbacks.csv))
947
+ onClick: a[1] || (a[1] = (o) => ce(e.value.userOptions.callbacks.csv))
929
948
  }, [
930
- Z(u(lt), {
949
+ ee(u(st), {
931
950
  name: "excel",
932
951
  stroke: Y.value.props.color
933
952
  }, null, 8, ["stroke"])
@@ -936,10 +955,10 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
936
955
  key: "1"
937
956
  } : void 0
938
957
  ]), 1040)) : p("", !0),
939
- u(Te) ? (n(), P(ta, { key: 8 })) : p("", !0)
940
- ], 46, da));
958
+ u(Se) ? (n(), P(la, { key: 8 })) : p("", !0)
959
+ ], 46, ga));
941
960
  }
942
- }, Za = /* @__PURE__ */ va(za, [["__scopeId", "data-v-5ffe4c34"]]);
961
+ }, ao = /* @__PURE__ */ ha(Ba, [["__scopeId", "data-v-e4b61e07"]]);
943
962
  export {
944
- Za as default
963
+ ao as default
945
964
  };