vue-data-ui 3.0.1 → 3.0.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 (91) hide show
  1. package/dist/{Arrow-DQoWnUfD.js → Arrow-CUUMjZed.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DEw6oieL.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
  3. package/dist/{BaseIcon-DEl03NUZ.js → BaseIcon-DLm6QTwr.js} +1 -1
  4. package/dist/{ColorPicker-CrivFZqC.js → ColorPicker-Crz_B792.js} +2 -2
  5. package/dist/{DataTable-ClgCsiJA.js → DataTable-CWzb1j8d.js} +2 -2
  6. package/dist/{Legend-CMvJ6X5j.js → Legend-CevCqVZ5.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-B2Wvbl3p.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
  8. package/dist/{PackageVersion-CD5VH_Al.js → PackageVersion-n4qokxnx.js} +1 -1
  9. package/dist/{PenAndPaper-D3WRn-G2.js → PenAndPaper-C_R9vJkU.js} +3 -3
  10. package/dist/{Shape-Adi9i_-f.js → Shape-BHVN6hj0.js} +1 -1
  11. package/dist/{Slicer-t6e1t2iM.js → Slicer-BBjJsLlJ.js} +2 -2
  12. package/dist/{SparkTooltip-B8OnBSvk.js → SparkTooltip-BHlSggBm.js} +1 -1
  13. package/dist/{Title-xTWR-Vil.js → Title-CINHji0n.js} +1 -1
  14. package/dist/{Tooltip-BH3CiANh.js → Tooltip-hfdFRoLp.js} +1 -1
  15. package/dist/{UserOptions-CKKPgDLV.js → UserOptions-r0epwyXR.js} +2 -2
  16. package/dist/{dom-to-png-C4hj491O.js → dom-to-png-m7MwDfMh.js} +1 -1
  17. package/dist/{img-Vb4QHAHI.js → img-CBdOMFyn.js} +1 -1
  18. package/dist/{index-Dzc2Gi60.js → index-DrRiscPm.js} +908 -871
  19. package/dist/{pdf-ddpqw-dt.js → pdf-CITAFtf8.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
  24. package/dist/{useNestedProp-CjnS13nF.js → useNestedProp-BXhArS-K.js} +1 -1
  25. package/dist/{usePrinter-DBRh8ZvS.js → usePrinter-CZk2ISUm.js} +2 -2
  26. package/dist/{vue-data-ui-B7ztqj9-.js → vue-data-ui-omyV52aJ.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DUmYPtHl.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
  29. package/dist/{vue-ui-accordion-CPk8wAuj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bv5HmeXj.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
  31. package/dist/{vue-ui-annotator-KXWlIhtd.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
  32. package/dist/{vue-ui-bullet-B4N4mBk9.js → vue-ui-bullet-D82pT7tL.js} +199 -186
  33. package/dist/{vue-ui-candlestick-DENvPnUO.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-vC2bHBaY.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
  35. package/dist/{vue-ui-chestnut-2nS0StrY.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
  36. package/dist/{vue-ui-chord-CyfS6vNM.js → vue-ui-chord-CfVEqNV6.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C4JR-0fx.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
  38. package/dist/{vue-ui-cursor-BgeSDtQh.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
  39. package/dist/{vue-ui-dashboard-9DWUBJ-I.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
  40. package/dist/{vue-ui-digits-BQO7IBFA.js → vue-ui-digits-BU-8e-1s.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-B870IrQA.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
  42. package/dist/{vue-ui-donut-C-ZJXJ74.js → vue-ui-donut-g5x3IpMV.js} +345 -334
  43. package/dist/{vue-ui-dumbbell-Cfs2Uotx.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
  44. package/dist/{vue-ui-flow-DnaUVVAD.js → vue-ui-flow-CRwGogHq.js} +299 -288
  45. package/dist/{vue-ui-funnel-B9s-H5ZG.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
  46. package/dist/{vue-ui-galaxy-BoJOczdh.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
  47. package/dist/{vue-ui-gauge-qjm4BqZR.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
  48. package/dist/{vue-ui-gizmo-fn7ZaMTI.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CIBDKhh8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
  50. package/dist/{vue-ui-history-plot-bbNxldYG.js → vue-ui-history-plot-OdhJu988.js} +283 -270
  51. package/dist/{vue-ui-kpi-BX-2jhLx.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Bn1Bb8-J.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
  53. package/dist/{vue-ui-molecule-DQ3qFtBq.js → vue-ui-molecule-DklqwI8c.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Cf-ehIo1.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-CWg5BEi-.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
  56. package/dist/{vue-ui-onion-sHgQTYfa.js → vue-ui-onion-n74T6frI.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-Ki3ITp_s.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
  58. package/dist/{vue-ui-quadrant-BIVqW7U7.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-C_hvHc1b.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
  60. package/dist/{vue-ui-radar-RZUPyPwB.js → vue-ui-radar-BAazL3Qv.js} +254 -243
  61. package/dist/{vue-ui-rating-BI8Vk7dO.js → vue-ui-rating-CPa7MotU.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-TVMUEtxK.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-DQeXHQG4.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
  64. package/dist/{vue-ui-rings-BH81WmMS.js → vue-ui-rings-grCm0xEc.js} +250 -239
  65. package/dist/{vue-ui-scatter-Cy7Tz_An.js → vue-ui-scatter-CEr615c-.js} +383 -372
  66. package/dist/{vue-ui-skeleton-CF50qQxr.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
  67. package/dist/{vue-ui-smiley-CrFXEbJs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DtHArnot.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-CIOwFFgA.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-E0DdGotz.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Dm7WoyjY.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DoW6DDKT.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BJnPUWY4.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Du42smPs.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-DnenGI-d.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
  76. package/dist/{vue-ui-table-BQOQVlHr.js → vue-ui-table-BSNxwgTV.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-BzK4_gsP.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-B-IwcT8I.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
  79. package/dist/{vue-ui-thermometer-06ao_Pj5.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
  80. package/dist/{vue-ui-timer-CxQq4roK.js → vue-ui-timer-OH8HQjpu.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CuTxkByj.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
  82. package/dist/{vue-ui-treemap-BgHhRpiV.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-CAcsUUCo.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
  84. package/dist/{vue-ui-waffle-Ct3Upw3m.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
  85. package/dist/{vue-ui-wheel-oz06Kt-p.js → vue-ui-wheel-KDWfx0os.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BRy7fg4S.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
  87. package/dist/{vue-ui-world-CTV-YfFN.js → vue-ui-world-SYtMz1jo.js} +343 -329
  88. package/dist/{vue-ui-xy-canvas-BZdhKUIp.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
  89. package/dist/vue-ui-xy-qzB1oN1A.js +3819 -0
  90. package/package.json +1 -1
  91. package/dist/vue-ui-xy-DqCy9dpa.js +0 -3808
@@ -1,23 +1,23 @@
1
- import { defineAsyncComponent as P, computed as v, ref as c, toRefs as pt, watch as ht, shallowRef as Re, onMounted as gt, onBeforeUnmount as ft, createElementBlock as u, openBlock as s, unref as r, normalizeStyle as j, normalizeClass as D, createBlock as x, createCommentVNode as d, createElementVNode as E, createVNode as ne, createSlots as yt, withCtx as y, renderSlot as h, normalizeProps as M, guardReactiveProps as V, Fragment as S, renderList as F, toDisplayString as G, createTextVNode as ze, nextTick as mt } from "vue";
2
- import { u as bt, c as kt, t as Ct, a as wt, p as O, b as _t, o as $t, f as U, d as Tt, g as Ee, e as Me, R as Ve, h as At, k as Ue, i as W, X as Pt, s as re, x as xt, S as Be, v as St, w as Ft, y as Ot, z as It } from "./index-Dzc2Gi60.js";
3
- import { t as Nt, u as Lt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Rt, B as zt } from "./useLoading-D7YHNtLX.js";
5
- import { u as Et } from "./usePrinter-DBRh8ZvS.js";
6
- import { u as De } from "./useNestedProp-CjnS13nF.js";
7
- import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
9
- import { u as Ut } from "./useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js";
10
- import Bt from "./img-Vb4QHAHI.js";
11
- import Dt from "./Title-xTWR-Vil.js";
12
- import Gt from "./Legend-CMvJ6X5j.js";
13
- import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["id"], qt = ["stop-color"], Jt = ["stop-color"], Kt = { key: 1 }, Qt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Zt = { key: 0 }, ea = ["d", "stroke", "stroke-width"], ta = ["d", "stroke", "stroke-width"], aa = { key: 2 }, oa = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], la = ["points", "stroke", "stroke-width"], sa = ["points", "stroke", "stroke-width", "fill"], na = { key: 3 }, ra = ["cx", "cy", "fill", "r", "stroke"], ua = {
1
+ import { defineAsyncComponent as S, computed as v, ref as c, toRefs as ht, watch as gt, shallowRef as ze, onMounted as ft, onBeforeUnmount as yt, createElementBlock as u, openBlock as s, unref as r, normalizeStyle as j, normalizeClass as D, createBlock as T, createCommentVNode as d, createElementVNode as A, createVNode as ne, createSlots as mt, withCtx as y, renderSlot as h, normalizeProps as M, guardReactiveProps as V, Fragment as F, renderList as O, toDisplayString as G, Teleport as bt, createTextVNode as Ee, nextTick as kt } from "vue";
2
+ import { u as Ct, c as wt, t as _t, a as $t, p as I, b as Tt, o as At, f as U, d as Pt, g as Me, e as Ve, R as Ue, h as xt, k as Be, i as W, X as St, s as re, x as Ft, S as De, v as Ot, w as It, y as Nt, z as Lt } from "./index-DrRiscPm.js";
3
+ import { t as Rt, u as zt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Et, B as Mt } from "./useLoading-D7YHNtLX.js";
5
+ import { u as Vt } from "./usePrinter-CZk2ISUm.js";
6
+ import { u as Ge } from "./useNestedProp-BXhArS-K.js";
7
+ import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Bt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as Dt } from "./useAutoSizeLabelsInsideViewbox-C0d8h29h.js";
10
+ import Gt from "./img-CBdOMFyn.js";
11
+ import Wt from "./Title-CINHji0n.js";
12
+ import Xt from "./Legend-CevCqVZ5.js";
13
+ import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Ht = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "height"], Kt = ["id"], Qt = ["stop-color"], Zt = ["stop-color"], ea = { key: 1 }, ta = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], aa = { key: 0 }, oa = ["d", "stroke", "stroke-width"], la = ["d", "stroke", "stroke-width"], sa = { key: 2 }, na = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], ra = ["points", "stroke", "stroke-width"], ua = ["points", "stroke", "stroke-width", "fill"], ia = { key: 3 }, ca = ["cx", "cy", "fill", "r", "stroke"], da = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, ia = ["onClick"], ca = {
17
+ }, va = ["id"], pa = ["onClick"], ha = {
18
18
  key: 0,
19
19
  style: { "max-width": "200px", margin: "0 auto" }
20
- }, va = {
20
+ }, ga = {
21
21
  __name: "vue-ui-radar",
22
22
  props: {
23
23
  config: {
@@ -34,9 +34,9 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
34
34
  }
35
35
  },
36
36
  emits: ["selectLegend"],
37
- setup(Ge, { expose: We, emit: Xe }) {
38
- const Ye = P(() => import("./DataTable-ClgCsiJA.js")), He = P(() => import("./PenAndPaper-D3WRn-G2.js")), je = P(() => import("./vue-ui-accordion-CPk8wAuj.js")), qe = P(() => import("./Tooltip-BH3CiANh.js")), Je = P(() => import("./UserOptions-CKKPgDLV.js")), Ke = P(() => import("./PackageVersion-CD5VH_Al.js")), Qe = P(() => import("./vue-ui-sparkbar-CIOwFFgA.js")), { vue_ui_radar: Ze } = bt(), $ = Ge, ue = v(() => !!$.dataset && Object.keys($.dataset).length), T = c(kt()), et = c(null), q = c(!1), J = c(""), ie = c(0), C = c(null), ce = c(null), ve = c(null), de = c(null), pe = c(null), he = c(0), ge = c(0), fe = c(0), e = c(Z()), { loading: ye, FINAL_DATASET: k } = Rt({
39
- ...pt($),
37
+ setup(We, { expose: Xe, emit: Ye }) {
38
+ const He = S(() => import("./DataTable-CWzb1j8d.js")), je = S(() => import("./PenAndPaper-C_R9vJkU.js")), qe = S(() => import("./vue-ui-accordion-s_m_NJzJ.js")), Je = S(() => import("./Tooltip-hfdFRoLp.js")), Ke = S(() => import("./UserOptions-r0epwyXR.js")), Qe = S(() => import("./PackageVersion-n4qokxnx.js")), Ze = S(() => import("./vue-ui-sparkbar-DwSd_DZu.js")), { vue_ui_radar: et } = Ct(), P = We, ue = v(() => !!P.dataset && Object.keys(P.dataset).length), m = c(wt()), tt = c(null), q = c(!1), J = c(""), ie = c(0), w = c(null), ce = c(null), de = c(null), ve = c(null), pe = c(null), he = c(0), ge = c(0), fe = c(0), ye = c(!1), e = c(Z()), { loading: me, FINAL_DATASET: C } = Et({
39
+ ...ht(P),
40
40
  FINAL_CONFIG: e,
41
41
  prepareConfig: Z,
42
42
  skeletonDataset: {
@@ -50,7 +50,7 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
50
50
  { name: "_", values: [0.6], target: 1 }
51
51
  ]
52
52
  },
53
- skeletonConfig: Ct({
53
+ skeletonConfig: _t({
54
54
  defaultConfig: e.value,
55
55
  userConfig: {
56
56
  userOptions: { show: !1 },
@@ -77,62 +77,62 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
77
77
  }
78
78
  }
79
79
  })
80
- }), { userOptionsVisible: K, setUserOptionsVisibility: me, keepUserOptionState: be } = Mt({ config: e.value }), { svgRef: Q } = Vt({ config: e.value.style.chart.title });
80
+ }), { userOptionsVisible: K, setUserOptionsVisibility: be, keepUserOptionState: ke } = Ut({ config: e.value }), { svgRef: Q } = Bt({ config: e.value.style.chart.title });
81
81
  function Z() {
82
- const t = De({
83
- userConfig: $.config,
84
- defaultConfig: Ze
82
+ const t = Ge({
83
+ userConfig: P.config,
84
+ defaultConfig: et
85
85
  });
86
86
  return t.theme ? {
87
- ...De({
88
- userConfig: _t.vue_ui_radar[t.theme] || $.config,
87
+ ...Ge({
88
+ userConfig: Tt.vue_ui_radar[t.theme] || P.config,
89
89
  defaultConfig: t
90
90
  }),
91
- customPalette: wt[t.theme] || O
91
+ customPalette: $t[t.theme] || I
92
92
  } : t;
93
93
  }
94
- ht(() => $.config, (t) => {
95
- e.value = Z(), K.value = !e.value.userOptions.showOnChartHover, ke(), he.value += 1, ge.value += 1, fe.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;
94
+ gt(() => P.config, (t) => {
95
+ e.value = Z(), K.value = !e.value.userOptions.showOnChartHover, Ce(), he.value += 1, ge.value += 1, fe.value += 1, b.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
96
96
  }, { deep: !0 });
97
- const w = Re(null), I = Re(null), N = v(() => e.value.debug);
98
- function ke() {
99
- if ($t($.dataset) && U({
97
+ const _ = ze(null), N = ze(null), L = v(() => e.value.debug);
98
+ function Ce() {
99
+ if (At(P.dataset) && U({
100
100
  componentName: "VueUiRadar",
101
101
  type: "dataset",
102
- debug: N.value
102
+ debug: L.value
103
103
  }), e.value.responsive) {
104
- const t = Nt(() => {
105
- const { width: a, height: o } = Lt({
106
- chart: C.value,
104
+ const t = Rt(() => {
105
+ const { width: a, height: o } = zt({
106
+ chart: w.value,
107
107
  title: e.value.style.chart.title.text ? ce.value : null,
108
- legend: e.value.style.chart.legend.show ? ve.value : null,
109
- source: de.value,
108
+ legend: e.value.style.chart.legend.show ? de.value : null,
109
+ source: ve.value,
110
110
  noTitle: pe.value
111
111
  });
112
112
  requestAnimationFrame(() => {
113
- i.value.width = a, i.value.height = o, Fe();
113
+ i.value.width = a, i.value.height = o, Oe();
114
114
  });
115
115
  });
116
- w.value && (I.value && w.value.unobserve(I.value), w.value.disconnect()), w.value = new ResizeObserver(t), I.value = C.value.parentNode, w.value.observe(I.value);
116
+ _.value && (N.value && _.value.unobserve(N.value), _.value.disconnect()), _.value = new ResizeObserver(t), N.value = w.value.parentNode, _.value.observe(N.value);
117
117
  }
118
- Fe();
118
+ Oe();
119
119
  }
120
- gt(() => {
121
- ke();
122
- }), ft(() => {
123
- w.value && (I.value && w.value.unobserve(I.value), w.value.disconnect());
120
+ ft(() => {
121
+ ye.value = !0, Ce();
122
+ }), yt(() => {
123
+ _.value && (N.value && _.value.unobserve(N.value), _.value.disconnect());
124
124
  });
125
- const { isPrinting: Ce, isImaging: we, generatePdf: _e, generateImage: $e } = Et({
126
- elementId: `vue-ui-radar_${T.value}`,
125
+ const { isPrinting: we, isImaging: _e, generatePdf: $e, generateImage: Te } = Vt({
126
+ elementId: `vue-ui-radar_${m.value}`,
127
127
  fileName: e.value.style.chart.title.text || "vue-ui-radar",
128
128
  options: e.value.userOptions.print
129
- }), tt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Te = v(() => Tt(e.value.customPalette)), m = c({
129
+ }), at = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ae = v(() => Pt(e.value.customPalette)), b = c({
130
130
  dataLabels: {
131
131
  show: e.value.style.chart.layout.labels.dataLabels.show
132
132
  },
133
133
  showTable: e.value.table.show,
134
134
  showTooltip: e.value.style.chart.tooltip.show
135
- }), at = v(() => ({
135
+ }), ot = v(() => ({
136
136
  style: {
137
137
  backgroundColor: "#FFFFFF00",
138
138
  animation: {
@@ -153,37 +153,37 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
153
153
  })), i = c({
154
154
  height: 312,
155
155
  width: 512
156
- }), ot = Xe, p = c([]), B = c(null), L = c(!1);
157
- function Ae(t) {
158
- L.value = !0, p.value.includes(t) ? (B.value = t, p.value = p.value.filter((a) => a !== t), setTimeout(() => {
159
- L.value = !1, B.value = null;
156
+ }), lt = Ye, p = c([]), B = c(null), R = c(!1);
157
+ function Pe(t) {
158
+ R.value = !0, p.value.includes(t) ? (B.value = t, p.value = p.value.filter((a) => a !== t), setTimeout(() => {
159
+ R.value = !1, B.value = null;
160
160
  }, 500)) : (p.value.push(t), setTimeout(() => {
161
- L.value = !1;
162
- }, 500)), ot("selectLegend", R.value.filter((a, o) => !p.value.includes(o)).map((a) => ({
161
+ R.value = !1;
162
+ }, 500)), lt("selectLegend", z.value.filter((a, o) => !p.value.includes(o)).map((a) => ({
163
163
  name: a.name,
164
164
  color: a.color,
165
165
  proportion: a.totalProportion
166
166
  })));
167
167
  }
168
- function lt() {
169
- return R.value.map((t) => ({
168
+ function st() {
169
+ return z.value.map((t) => ({
170
170
  name: t.name,
171
171
  color: t.color,
172
172
  proportion: t.totalProportion
173
173
  }));
174
174
  }
175
- const g = v(() => [null, void 0].includes(k.value.categories) ? (U({
175
+ const g = v(() => [null, void 0].includes(C.value.categories) ? (U({
176
176
  componentName: "VueUiRadar",
177
177
  type: "datasetAttribute",
178
178
  property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
179
- debug: N.value
180
- }), []) : (k.value.categories.length === 0 ? U({
179
+ debug: L.value
180
+ }), []) : (C.value.categories.length === 0 ? U({
181
181
  componentName: "VueUiRadar",
182
182
  type: "datasetAttributeEmpty",
183
183
  property: "categories",
184
- debug: N.value
185
- }) : k.value.categories.forEach((t, a) => {
186
- Ee({
184
+ debug: L.value
185
+ }) : C.value.categories.forEach((t, a) => {
186
+ Me({
187
187
  datasetObject: t,
188
188
  requiredAttributes: ["name"]
189
189
  }).forEach((o) => {
@@ -192,16 +192,16 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
192
192
  type: "datasetAttribute",
193
193
  property: `category.${o} at index ${a}`,
194
194
  index: a,
195
- debug: N.value
195
+ debug: L.value
196
196
  });
197
197
  });
198
- }), [null, void 0].includes(k.value.series) ? U({
198
+ }), [null, void 0].includes(C.value.series) ? U({
199
199
  componentName: "VueUiRadar",
200
200
  type: "datasetAttribute",
201
201
  property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
202
- debug: N.value
203
- }) : k.value.series.forEach((t, a) => {
204
- Ee({
202
+ debug: L.value
203
+ }) : C.value.series.forEach((t, a) => {
204
+ Me({
205
205
  datasetObject: t,
206
206
  requiredAttributes: ["name", "values", "target"]
207
207
  }).forEach((o) => {
@@ -211,41 +211,41 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
211
211
  key: "series",
212
212
  property: o,
213
213
  index: a,
214
- debug: N.value
214
+ debug: L.value
215
215
  });
216
216
  });
217
- }), k.value.categories.map((t, a) => ({
217
+ }), C.value.categories.map((t, a) => ({
218
218
  name: t.name,
219
- categoryId: `radar_category_${T.value}_${a}`,
220
- color: Me(t.color) || Te.value[a] || O[a] || O[a % O.length],
219
+ categoryId: `radar_category_${m.value}_${a}`,
220
+ color: Ve(t.color) || Ae.value[a] || I[a] || I[a % I.length],
221
221
  prefix: t.prefix ?? "",
222
222
  suffix: t.suffix ?? ""
223
- })))), b = v(() => k.value.series.map((t, a) => ({
223
+ })))), k = v(() => C.value.series.map((t, a) => ({
224
224
  ...t,
225
- color: Me(t.color) || Te.value[a] || O[a] || O[a % O.length],
226
- serieId: `radar_serie_${T.value}_${a}`,
225
+ color: Ve(t.color) || Ae.value[a] || I[a] || I[a % I.length],
226
+ serieId: `radar_serie_${m.value}_${a}`,
227
227
  formatter: t.formatter || null
228
- }))), Pe = v(() => Math.max(...b.value.flatMap((t) => t.values))), xe = v(() => b.value.length), ee = v(() => Math.min(i.value.width, i.value.height) / 3), Se = v(() => Ve({
228
+ }))), xe = v(() => Math.max(...k.value.flatMap((t) => t.values))), Se = v(() => k.value.length), ee = v(() => Math.min(i.value.width, i.value.height) / 3), Fe = v(() => Ue({
229
229
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
230
230
  radius: ee.value,
231
- sides: xe.value,
231
+ sides: Se.value,
232
232
  rotation: 0
233
- })), st = v(() => {
233
+ })), nt = v(() => {
234
234
  const t = [];
235
235
  for (let a = 0; a < ee.value; a += ee.value / e.value.style.chart.layout.grid.graduations)
236
236
  t.push(a);
237
237
  return t;
238
- }), _ = v(() => Se.value.coordinates.map((t, a) => {
239
- const o = b.value[a].values.map((l) => rt({
238
+ }), $ = v(() => Fe.value.coordinates.map((t, a) => {
239
+ const o = k.value[a].values.map((l) => ut({
240
240
  centerX: i.value.width / 2,
241
241
  centerY: i.value.height / 2,
242
242
  apexX: t.x,
243
243
  apexY: t.y,
244
- proportion: l / (b.value[a].target || Pe.value)
244
+ proportion: l / (k.value[a].target || xe.value)
245
245
  }));
246
246
  return {
247
247
  ...t,
248
- ...b.value[a],
248
+ ...k.value[a],
249
249
  plots: o
250
250
  };
251
251
  }).map((t) => ({
@@ -258,33 +258,33 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
258
258
  let o = "middle";
259
259
  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 };
260
260
  }
261
- const nt = v({
261
+ const rt = v({
262
262
  get: () => e.value.style.chart.layout.labels.dataLabels.fontSize,
263
263
  set: (t) => t
264
- }), { autoSizeLabels: Fe } = Ut({
264
+ }), { autoSizeLabels: Oe } = Dt({
265
265
  svgRef: Q,
266
266
  fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
267
267
  minFontSize: 6,
268
- sizeRef: nt,
268
+ sizeRef: rt,
269
269
  labelClass: ".vue-ui-radar-apex-label"
270
270
  });
271
- function rt({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: n }) {
271
+ function ut({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: n }) {
272
272
  return {
273
273
  x: t + (o - t) * n,
274
274
  y: a + (l - a) * n
275
275
  };
276
276
  }
277
- const R = v(() => {
278
- const t = b.value.map((a, o) => a.values.map((l) => l / (a.target || Pe.value)));
277
+ const z = v(() => {
278
+ const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || xe.value)));
279
279
  return g.value.map((a, o) => ({
280
280
  ...a,
281
- totalProportion: At(t.map((l) => l[o]).reduce((l, n) => l + n, 0) / b.value.length),
281
+ totalProportion: xt(t.map((l) => l[o]).reduce((l, n) => l + n, 0) / k.value.length),
282
282
  shape: "circle",
283
283
  opacity: p.value.includes(o) ? 0.5 : 1,
284
- segregate: () => Ae(o),
284
+ segregate: () => Pe(o),
285
285
  isSegregated: p.value.includes(o)
286
286
  }));
287
- }), ut = v(() => ({
287
+ }), it = v(() => ({
288
288
  cy: "radar-div-legend",
289
289
  backgroundColor: e.value.style.chart.legend.backgroundColor,
290
290
  color: e.value.style.chart.legend.color,
@@ -295,10 +295,10 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
295
295
  const t = [
296
296
  { name: e.value.translations.datapoint, color: "" },
297
297
  { name: e.value.translations.target, color: "" },
298
- ...R.value
299
- ], a = k.value.series.map((l) => [
298
+ ...z.value
299
+ ], a = C.value.series.map((l) => [
300
300
  l.name,
301
- Ue(
301
+ Be(
302
302
  l.formatter,
303
303
  l.target,
304
304
  W({
@@ -308,7 +308,7 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
308
308
  r: e.value.table.td.roundingValue
309
309
  })
310
310
  ),
311
- ...l.values.map((n, f) => `${Ue(
311
+ ...l.values.map((n, f) => `${Be(
312
312
  l.formatter,
313
313
  n,
314
314
  W({ p: g.value[f].prefix, v: n, s: g.value[f].suffix, r: e.value.table.td.roundingValue })
@@ -332,10 +332,10 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
332
332
  };
333
333
  return { head: t, body: a, config: o, colNames: t };
334
334
  }), Y = c(null), ae = c([]), oe = c(null);
335
- function it(t, a) {
335
+ function ct(t, a) {
336
336
  q.value = !1, Y.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
337
337
  }
338
- function ct(t, a) {
338
+ function dt(t, a) {
339
339
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
340
340
  }
341
341
  function vt(t, a) {
@@ -346,22 +346,22 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
346
346
  seriesIndex: a,
347
347
  series: {
348
348
  categories: g.value,
349
- datapoints: b.value,
350
- radar: _.value
349
+ datapoints: k.value,
350
+ radar: $.value
351
351
  },
352
352
  config: e.value
353
353
  };
354
354
  const l = e.value.style.chart.tooltip.customFormat;
355
- if (Ot(l) && It(() => l({
355
+ if (Nt(l) && Lt(() => l({
356
356
  seriesIndex: a,
357
357
  datapoint: t,
358
- series: { categories: g.value, datapoints: b.value, radar: _.value },
358
+ series: { categories: g.value, datapoints: k.value, radar: $.value },
359
359
  config: e.value
360
360
  })))
361
361
  J.value = l({
362
362
  seriesIndex: a,
363
363
  datapoint: t,
364
- series: { categories: g.value, datapoints: b.value, radar: _.value },
364
+ series: { categories: g.value, datapoints: k.value, radar: $.value },
365
365
  config: e.value
366
366
  });
367
367
  else {
@@ -379,32 +379,32 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
379
379
  J.value = o;
380
380
  }
381
381
  }
382
- function Oe(t = null) {
383
- mt(() => {
384
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...R.value.flatMap((A) => [[A.name], ["%"]])], l = k.value.series.map((A, da) => [A.name, A.target, ...A.values.flatMap((se) => [
382
+ function Ie(t = null) {
383
+ kt(() => {
384
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...z.value.flatMap((x) => [[x.name], ["%"]])], l = C.value.series.map((x, fa) => [x.name, x.target, ...x.values.flatMap((se) => [
385
385
  se,
386
- isNaN(se / A.target) ? "" : se / A.target * 100
387
- ])]), n = a.concat([o]).concat(l), f = St(n);
388
- t ? t(f) : Ft({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-radar" });
386
+ isNaN(se / x.target) ? "" : se / x.target * 100
387
+ ])]), n = a.concat([o]).concat(l), f = Ot(n);
388
+ t ? t(f) : It({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-radar" });
389
389
  });
390
390
  }
391
- const z = c(!1);
392
- function Ie(t) {
393
- z.value = t, ie.value += 1;
394
- }
395
- function Ne() {
396
- m.value.showTable = !m.value.showTable;
391
+ const E = c(!1);
392
+ function Ne(t) {
393
+ E.value = t, ie.value += 1;
397
394
  }
398
395
  function Le() {
399
- m.value.showTooltip = !m.value.showTooltip;
396
+ b.value.showTable = !b.value.showTable;
397
+ }
398
+ function Re() {
399
+ b.value.showTooltip = !b.value.showTooltip;
400
400
  }
401
401
  const H = c(!1);
402
402
  function le() {
403
403
  H.value = !H.value;
404
404
  }
405
- async function dt({ scale: t = 2 } = {}) {
406
- if (!C.value) return;
407
- const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri: n, base64: f } = await Bt({ domElement: C.value, base64: !0, img: !0, scale: t });
405
+ async function pt({ scale: t = 2 } = {}) {
406
+ if (!w.value) return;
407
+ const { width: a, height: o } = w.value.getBoundingClientRect(), l = a / o, { imageUri: n, base64: f } = await Gt({ domElement: w.value, base64: !0, img: !0, scale: t });
408
408
  return {
409
409
  imageUri: n,
410
410
  base64: f,
@@ -414,26 +414,26 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
414
414
  aspectRatio: l
415
415
  };
416
416
  }
417
- return We({
418
- getData: lt,
419
- getImage: dt,
420
- generatePdf: _e,
421
- generateCsv: Oe,
422
- generateImage: $e,
423
- toggleTable: Ne,
424
- toggleTooltip: Le,
417
+ return Xe({
418
+ getData: st,
419
+ getImage: pt,
420
+ generatePdf: $e,
421
+ generateCsv: Ie,
422
+ generateImage: Te,
423
+ toggleTable: Le,
424
+ toggleTooltip: Re,
425
425
  toggleAnnotator: le,
426
- toggleFullscreen: Ie
426
+ toggleFullscreen: Ne
427
427
  }), (t, a) => (s(), u("div", {
428
- class: D(`vue-ui-radar ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
428
+ class: D(`vue-ui-radar ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
429
429
  ref_key: "radarChart",
430
- ref: C,
431
- id: `vue-ui-radar_${T.value}`,
430
+ ref: w,
431
+ id: `vue-ui-radar_${m.value}`,
432
432
  style: j(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
433
- onMouseenter: a[2] || (a[2] = () => r(me)(!0)),
434
- onMouseleave: a[3] || (a[3] = () => r(me)(!1))
433
+ onMouseenter: a[2] || (a[2] = () => r(be)(!0)),
434
+ onMouseleave: a[3] || (a[3] = () => r(be)(!1))
435
435
  }, [
436
- e.value.userOptions.buttons.annotator ? (s(), x(r(He), {
436
+ e.value.userOptions.buttons.annotator ? (s(), T(r(je), {
437
437
  key: 0,
438
438
  svgRef: r(Q),
439
439
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -441,7 +441,7 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
441
441
  active: H.value,
442
442
  onClose: le
443
443
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
444
- tt.value ? (s(), u("div", {
444
+ at.value ? (s(), u("div", {
445
445
  key: 1,
446
446
  ref_key: "noTitle",
447
447
  ref: pe,
@@ -454,7 +454,7 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
454
454
  ref: ce,
455
455
  style: "width:100%;background:transparent;padding-bottom:12px"
456
456
  }, [
457
- (s(), x(Dt, {
457
+ (s(), T(Wt, {
458
458
  key: `title_${he.value}`,
459
459
  config: {
460
460
  title: {
@@ -468,41 +468,44 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
468
468
  }
469
469
  }, null, 8, ["config"]))
470
470
  ], 512)) : d("", !0),
471
- e.value.userOptions.show && ue.value && (r(be) || r(K)) ? (s(), x(r(Je), {
471
+ A("div", {
472
+ id: `legend-top-${m.value}`
473
+ }, null, 8, jt),
474
+ e.value.userOptions.show && ue.value && (r(ke) || r(K)) ? (s(), T(r(Ke), {
472
475
  ref_key: "details",
473
- ref: et,
476
+ ref: tt,
474
477
  key: `user_options_${ie.value}`,
475
478
  backgroundColor: e.value.style.chart.backgroundColor,
476
479
  color: e.value.style.chart.color,
477
- isImaging: r(we),
478
- isPrinting: r(Ce),
479
- uid: T.value,
480
+ isImaging: r(_e),
481
+ isPrinting: r(we),
482
+ uid: m.value,
480
483
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
481
484
  hasPdf: e.value.userOptions.buttons.pdf,
482
485
  hasImg: e.value.userOptions.buttons.img,
483
486
  hasXls: e.value.userOptions.buttons.csv,
484
487
  hasTable: e.value.userOptions.buttons.table,
485
488
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
486
- isFullscreen: z.value,
487
- isTooltip: m.value.showTooltip,
489
+ isFullscreen: E.value,
490
+ isTooltip: b.value.showTooltip,
488
491
  titles: { ...e.value.userOptions.buttonTitles },
489
- chartElement: C.value,
492
+ chartElement: w.value,
490
493
  position: e.value.userOptions.position,
491
494
  hasAnnotator: e.value.userOptions.buttons.annotator,
492
495
  isAnnotation: H.value,
493
496
  callbacks: e.value.userOptions.callbacks,
494
497
  printScale: e.value.userOptions.print.scale,
495
- onToggleFullscreen: Ie,
496
- onGeneratePdf: r(_e),
497
- onGenerateCsv: Oe,
498
- onGenerateImage: r($e),
499
- onToggleTable: Ne,
500
- onToggleTooltip: Le,
498
+ onToggleFullscreen: Ne,
499
+ onGeneratePdf: r($e),
500
+ onGenerateCsv: Ie,
501
+ onGenerateImage: r(Te),
502
+ onToggleTable: Le,
503
+ onToggleTooltip: Re,
501
504
  onToggleAnnotator: le,
502
505
  style: j({
503
- visibility: r(be) ? r(K) ? "visible" : "hidden" : "visible"
506
+ visibility: r(ke) ? r(K) ? "visible" : "hidden" : "visible"
504
507
  })
505
- }, yt({ _: 2 }, [
508
+ }, mt({ _: 2 }, [
506
509
  t.$slots.menuIcon ? {
507
510
  name: "menuIcon",
508
511
  fn: y(({ isOpen: o, color: l }) => [
@@ -563,12 +566,12 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
563
566
  (s(), u("svg", {
564
567
  ref_key: "svgRef",
565
568
  ref: Q,
566
- xmlns: r(Pt),
567
- class: D({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
569
+ xmlns: r(St),
570
+ class: D({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
568
571
  viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
569
572
  style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
570
573
  }, [
571
- ne(r(Ke)),
574
+ ne(r(Qe)),
572
575
  t.$slots["chart-background"] ? (s(), u("foreignObject", {
573
576
  key: 0,
574
577
  x: 0,
@@ -580,59 +583,59 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
580
583
  }
581
584
  }, [
582
585
  h(t.$slots, "chart-background", {}, void 0, !0)
583
- ], 8, Ht)) : d("", !0),
584
- E("defs", null, [
585
- (s(!0), u(S, null, F(g.value, (o, l) => (s(), u("radialGradient", {
586
+ ], 8, Jt)) : d("", !0),
587
+ A("defs", null, [
588
+ (s(!0), u(F, null, O(g.value, (o, l) => (s(), u("radialGradient", {
586
589
  cx: "50%",
587
590
  cy: "50%",
588
591
  r: "50%",
589
592
  fx: "50%",
590
593
  fy: "50%",
591
- id: `radar_gradient_${T.value}_${l}`
594
+ id: `radar_gradient_${m.value}_${l}`
592
595
  }, [
593
- E("stop", {
596
+ A("stop", {
594
597
  offset: "0%",
595
- "stop-color": r(re)(r(xt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
596
- }, null, 8, qt),
597
- E("stop", {
598
+ "stop-color": r(re)(r(Ft)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
599
+ }, null, 8, Qt),
600
+ A("stop", {
598
601
  offset: "100%",
599
602
  "stop-color": r(re)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
600
- }, null, 8, Jt)
601
- ], 8, jt))), 256))
603
+ }, null, 8, Zt)
604
+ ], 8, Kt))), 256))
602
605
  ]),
603
- e.value.style.chart.layout.grid.show ? (s(), u("g", Kt, [
604
- (s(!0), u(S, null, F(_.value, (o) => (s(), u("line", {
606
+ e.value.style.chart.layout.grid.show ? (s(), u("g", ea, [
607
+ (s(!0), u(F, null, O($.value, (o) => (s(), u("line", {
605
608
  x1: i.value.width / 2,
606
609
  y1: i.value.height / 2,
607
610
  x2: o.x,
608
611
  y2: o.y,
609
612
  stroke: e.value.style.chart.layout.grid.stroke,
610
613
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
611
- }, null, 8, Qt))), 256)),
612
- e.value.style.chart.layout.grid.graduations > 0 ? (s(), u("g", Zt, [
613
- (s(!0), u(S, null, F(st.value, (o) => (s(), u("path", {
614
- d: r(Ve)({
614
+ }, null, 8, ta))), 256)),
615
+ e.value.style.chart.layout.grid.graduations > 0 ? (s(), u("g", aa, [
616
+ (s(!0), u(F, null, O(nt.value, (o) => (s(), u("path", {
617
+ d: r(Ue)({
615
618
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
616
619
  radius: o,
617
- sides: xe.value,
620
+ sides: Se.value,
618
621
  rotation: 0
619
622
  }).path,
620
623
  fill: "none",
621
624
  stroke: e.value.style.chart.layout.grid.stroke,
622
625
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
623
- }, null, 8, ea))), 256))
626
+ }, null, 8, oa))), 256))
624
627
  ])) : d("", !0)
625
628
  ])) : d("", !0),
626
- E("path", {
627
- d: Se.value.path,
629
+ A("path", {
630
+ d: Fe.value.path,
628
631
  fill: "none",
629
632
  stroke: e.value.style.chart.layout.outerPolygon.stroke,
630
633
  "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
631
634
  "stroke-linejoin": "round",
632
635
  "stroke-linecap": "round"
633
- }, null, 8, ta),
634
- e.value.style.chart.layout.labels.dataLabels.show ? (s(), u("g", aa, [
635
- (s(!0), u(S, null, F(_.value, (o, l) => (s(), u("text", {
636
+ }, null, 8, la),
637
+ e.value.style.chart.layout.labels.dataLabels.show ? (s(), u("g", sa, [
638
+ (s(!0), u(F, null, O($.value, (o, l) => (s(), u("text", {
636
639
  class: "vue-ui-radar-apex-label",
637
640
  x: o.labelX,
638
641
  y: o.labelY,
@@ -640,85 +643,93 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
640
643
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
641
644
  fill: e.value.style.chart.layout.labels.dataLabels.color,
642
645
  onMouseenter: (n) => vt(o, l),
643
- onMouseleave: (n) => it(o, l),
644
- onClick: (n) => ct(o, l)
645
- }, G(o.name), 41, oa))), 256))
646
+ onMouseleave: (n) => ct(o, l),
647
+ onClick: (n) => dt(o, l)
648
+ }, G(o.name), 41, na))), 256))
646
649
  ])) : d("", !0),
647
- (s(!0), u(S, null, F(g.value, (o, l) => (s(), u("g", null, [
648
- E("g", null, [
650
+ (s(!0), u(F, null, O(g.value, (o, l) => (s(), u("g", null, [
651
+ A("g", null, [
649
652
  e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (s(), u("polygon", {
650
653
  key: 0,
651
- points: r(Be)(_.value.map((n) => n.plots[l]), !1, !0),
654
+ points: r(De)($.value.map((n) => n.plots[l]), !1, !0),
652
655
  stroke: e.value.style.chart.backgroundColor,
653
656
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
654
657
  fill: "none",
655
- class: D({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": L.value && B.value === l && e.value.useCssAnimation })
656
- }, null, 10, la)) : d("", !0),
658
+ class: D({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": R.value && B.value === l && e.value.useCssAnimation })
659
+ }, null, 10, ra)) : d("", !0),
657
660
  e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (s(), u("polygon", {
658
661
  key: 1,
659
- points: r(Be)(_.value.map((n) => n.plots[l]), !1, !0),
662
+ points: r(De)($.value.map((n) => n.plots[l]), !1, !0),
660
663
  stroke: o.color,
661
664
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
662
- fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${T.value}_${l})` : r(re)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
663
- class: D({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": L.value && B.value === l && e.value.useCssAnimation })
664
- }, null, 10, sa)) : d("", !0)
665
+ fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${m.value}_${l})` : r(re)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
666
+ class: D({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": R.value && B.value === l && e.value.useCssAnimation })
667
+ }, null, 10, ua)) : d("", !0)
665
668
  ])
666
669
  ]))), 256)),
667
- e.value.style.chart.layout.plots.show ? (s(), u("g", na, [
668
- (s(!0), u(S, null, F(_.value, (o, l) => (s(), u("g", null, [
669
- (s(!0), u(S, null, F(o.plots, (n, f) => (s(), u("circle", {
670
+ e.value.style.chart.layout.plots.show ? (s(), u("g", ia, [
671
+ (s(!0), u(F, null, O($.value, (o, l) => (s(), u("g", null, [
672
+ (s(!0), u(F, null, O(o.plots, (n, f) => (s(), u("circle", {
670
673
  cx: n.x,
671
674
  cy: n.y,
672
675
  fill: p.value.includes(f) ? "transparent" : g.value[f] ? g.value[f].color : "transparent",
673
676
  r: Y.value !== null && Y.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
674
677
  stroke: p.value.includes(f) ? "transparent" : e.value.style.chart.backgroundColor,
675
678
  "stroke-width": 0.5,
676
- class: D({ "animated-out": p.value.includes(f) && e.value.useCssAnimation, "animated-in": L.value && B.value === f && e.value.useCssAnimation })
677
- }, null, 10, ra))), 256))
679
+ class: D({ "animated-out": p.value.includes(f) && e.value.useCssAnimation, "animated-in": R.value && B.value === f && e.value.useCssAnimation })
680
+ }, null, 10, ca))), 256))
678
681
  ]))), 256))
679
682
  ])) : d("", !0),
680
683
  h(t.$slots, "svg", { svg: i.value }, void 0, !0)
681
- ], 14, Yt)),
682
- t.$slots.watermark ? (s(), u("div", ua, [
683
- h(t.$slots, "watermark", M(V({ isPrinting: r(Ce) || r(we) })), void 0, !0)
684
+ ], 14, qt)),
685
+ t.$slots.watermark ? (s(), u("div", da, [
686
+ h(t.$slots, "watermark", M(V({ isPrinting: r(we) || r(_e) })), void 0, !0)
684
687
  ])) : d("", !0),
685
- E("div", {
686
- ref_key: "chartLegend",
687
- ref: ve
688
+ A("div", {
689
+ id: `legend-bottom-${m.value}`
690
+ }, null, 8, va),
691
+ ye.value ? (s(), T(bt, {
692
+ key: 5,
693
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${m.value}` : `#legend-bottom-${m.value}`
688
694
  }, [
689
- e.value.style.chart.legend.show ? (s(), x(Gt, {
690
- key: `legend_${fe.value}`,
691
- legendSet: R.value,
692
- config: ut.value,
693
- onClickMarker: a[0] || (a[0] = ({ i: o }) => Ae(o))
694
- }, {
695
- item: y(({ legend: o, index: l }) => [
696
- r(ye) ? d("", !0) : (s(), u("div", {
697
- key: 0,
698
- onClick: (n) => o.segregate(),
699
- style: j(`opacity:${p.value.includes(l) ? 0.5 : 1}`)
700
- }, G(o.name) + ": " + G(r(W)({
701
- v: o.totalProportion * 100,
702
- s: "%",
703
- r: e.value.style.chart.legend.roundingPercentage
704
- })), 13, ia))
705
- ]),
706
- _: 1
707
- }, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
708
- key: 1,
709
- legend: R.value
710
- }, void 0, !0)
711
- ], 512),
695
+ A("div", {
696
+ ref_key: "chartLegend",
697
+ ref: de
698
+ }, [
699
+ e.value.style.chart.legend.show ? (s(), T(Xt, {
700
+ key: `legend_${fe.value}`,
701
+ legendSet: z.value,
702
+ config: it.value,
703
+ onClickMarker: a[0] || (a[0] = ({ i: o }) => Pe(o))
704
+ }, {
705
+ item: y(({ legend: o, index: l }) => [
706
+ r(me) ? d("", !0) : (s(), u("div", {
707
+ key: 0,
708
+ onClick: (n) => o.segregate(),
709
+ style: j(`opacity:${p.value.includes(l) ? 0.5 : 1}`)
710
+ }, G(o.name) + ": " + G(r(W)({
711
+ v: o.totalProportion * 100,
712
+ s: "%",
713
+ r: e.value.style.chart.legend.roundingPercentage
714
+ })), 13, pa))
715
+ ]),
716
+ _: 1
717
+ }, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
718
+ key: 1,
719
+ legend: z.value
720
+ }, void 0, !0)
721
+ ], 512)
722
+ ], 8, ["to"])) : d("", !0),
712
723
  t.$slots.source ? (s(), u("div", {
713
- key: 5,
724
+ key: 6,
714
725
  ref_key: "source",
715
- ref: de,
726
+ ref: ve,
716
727
  dir: "auto"
717
728
  }, [
718
729
  h(t.$slots, "source", {}, void 0, !0)
719
730
  ], 512)) : d("", !0),
720
- ne(r(qe), {
721
- show: m.value.showTooltip && q.value,
731
+ ne(r(Je), {
732
+ show: b.value.showTooltip && q.value,
722
733
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
723
734
  color: e.value.style.chart.tooltip.color,
724
735
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -728,9 +739,9 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
728
739
  fontSize: e.value.style.chart.tooltip.fontSize,
729
740
  position: e.value.style.chart.tooltip.position,
730
741
  offsetY: e.value.style.chart.tooltip.offsetY,
731
- parent: C.value,
742
+ parent: w.value,
732
743
  content: J.value,
733
- isFullscreen: z.value,
744
+ isFullscreen: E.value,
734
745
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
735
746
  smooth: e.value.style.chart.tooltip.smooth,
736
747
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
@@ -739,10 +750,10 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
739
750
  h(t.$slots, "tooltip-before", M(V({ ...oe.value })), void 0, !0)
740
751
  ]),
741
752
  "tooltip-after": y(() => [
742
- ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (s(), u("div", ca, [
743
- ne(r(Qe), {
753
+ ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (s(), u("div", ha, [
754
+ ne(r(Ze), {
744
755
  dataset: ae.value,
745
- config: at.value,
756
+ config: ot.value,
746
757
  backgroundOpacity: 0
747
758
  }, null, 8, ["dataset", "config"])
748
759
  ])),
@@ -750,11 +761,11 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
750
761
  ]),
751
762
  _: 3
752
763
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
753
- ue.value ? (s(), x(r(je), {
754
- key: 6,
764
+ ue.value ? (s(), T(r(qe), {
765
+ key: 7,
755
766
  hideDetails: "",
756
767
  config: {
757
- open: m.value.showTable,
768
+ open: b.value.showTable,
758
769
  maxHeight: 1e4,
759
770
  body: {
760
771
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -767,30 +778,30 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
767
778
  }
768
779
  }, {
769
780
  content: y(() => [
770
- (s(), x(r(Ye), {
781
+ (s(), T(r(He), {
771
782
  key: `table_${ge.value}`,
772
783
  colNames: X.value.colNames,
773
784
  head: X.value.head,
774
785
  body: X.value.body,
775
786
  config: X.value.config,
776
787
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
777
- onClose: a[1] || (a[1] = (o) => m.value.showTable = !1)
788
+ onClose: a[1] || (a[1] = (o) => b.value.showTable = !1)
778
789
  }, {
779
790
  th: y(({ th: o }) => [
780
- ze(G(o.name), 1)
791
+ Ee(G(o.name), 1)
781
792
  ]),
782
793
  td: y(({ td: o }) => [
783
- ze(G(o), 1)
794
+ Ee(G(o), 1)
784
795
  ]),
785
796
  _: 1
786
797
  }, 8, ["colNames", "head", "body", "config", "title"]))
787
798
  ]),
788
799
  _: 1
789
800
  }, 8, ["config"])) : d("", !0),
790
- r(ye) ? (s(), x(zt, { key: 7 })) : d("", !0)
791
- ], 46, Xt));
801
+ r(me) ? (s(), T(Mt, { key: 8 })) : d("", !0)
802
+ ], 46, Ht));
792
803
  }
793
- }, Aa = /* @__PURE__ */ Wt(va, [["__scopeId", "data-v-7b2da971"]]);
804
+ }, Fa = /* @__PURE__ */ Yt(ga, [["__scopeId", "data-v-ae5f591e"]]);
794
805
  export {
795
- Aa as default
806
+ Fa as default
796
807
  };