vue-data-ui 2.12.8-beta.3 → 2.13.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 (92) hide show
  1. package/README.md +10 -4
  2. package/dist/{Arrow-kQyQXUUg.js → Arrow-B2y3GYgv.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-B3CZVeze.js} +2 -2
  4. package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-P7wV92Er.js} +1 -1
  5. package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-C7b6TR_9.js} +2 -2
  6. package/dist/{DataTable-BBqbcutV.js → DataTable-DBkfb6pd.js} +2 -2
  7. package/dist/{Legend-DRqzYrP9.js → Legend-DcDRW3Xd.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-DYA_rF1x.js} +3 -3
  9. package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-C5fpg4GN.js} +2 -2
  10. package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BRkuVFb4.js} +3 -3
  11. package/dist/{Shape-DEWxbZ-l.js → Shape-CnD-h_98.js} +1 -1
  12. package/dist/{Slicer-o6jJH5bw.js → Slicer-CxdgZOQ7.js} +2 -2
  13. package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BIAMOmfJ.js} +1 -1
  14. package/dist/{Title-apr_T9tg.js → Title-DoWqzga-.js} +1 -1
  15. package/dist/{Tooltip-BuHsMAfp.js → Tooltip-DYCBNM-_.js} +1 -1
  16. package/dist/{UserOptions-OVNxxnq5.js → UserOptions-B3q-xfQV.js} +16 -11
  17. package/dist/dom-to-png-4VVH9Qna.js +247 -0
  18. package/dist/img-Dy6IrSzX.js +20 -0
  19. package/dist/{index-CH_mJIWj.js → index-BXbyT0Qn.js} +6 -2
  20. package/dist/{pdf-Jun3ogRn.js → pdf-ZrUvUcH9.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +20 -3
  23. package/dist/types/vue-data-ui.d.ts +20 -3
  24. package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DVZpeH84.js} +1 -1
  25. package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-aKh5-HcK.js} +2 -2
  26. package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-DUHiuRmY.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-C3cqHCNp.js} +173 -173
  29. package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-CXsjHe1y.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-B2EpIzV9.js} +179 -179
  31. package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-Czvbjx_j.js} +2 -2
  32. package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-ClY1tgTT.js} +6 -6
  33. package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BQ1RVdoH.js} +113 -113
  34. package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-UQjCOJJV.js} +94 -94
  35. package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-DmEa8kef.js} +452 -452
  36. package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CEDZ-UcP.js} +17 -17
  37. package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Bx_mLhCR.js} +116 -116
  38. package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-D27qwk90.js} +2 -2
  39. package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-DKsYxh6J.js} +62 -62
  40. package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-CdDTbIAN.js} +2 -2
  41. package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DS-DfHIm.js} +149 -149
  42. package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-XMEmv1DK.js} +109 -109
  43. package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-DAm5A4u3.js} +65 -65
  44. package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-CTbmqqmV.js} +12 -12
  45. package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-CihunDsZ.js} +65 -65
  46. package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-CJHycmpt.js} +82 -82
  47. package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-Bsc9wIKK.js} +5 -5
  48. package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-D6AciZZe.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-in5WwNRr.js} +221 -221
  50. package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-C9IEmAmm.js} +232 -232
  51. package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-fDPWRpRZ.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-BeJRaP7N.js} +2 -2
  53. package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-BJbwA0F6.js} +30 -30
  54. package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar--YEOJ6q6.js} +75 -75
  55. package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-BswKH0D6.js} +16 -16
  56. package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-BAw8X4iu.js} +70 -70
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-CYkzOe_Q.js} +11 -11
  58. package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-BupqUnMn.js} +11 -11
  59. package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-BzpDL6CR.js} +5 -5
  60. package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-zPrbIZv5.js} +283 -282
  61. package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-DqCOz2LB.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-DQp_zboM.js} +5 -5
  63. package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-DoJfX7Ii.js} +100 -100
  64. package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-Bk4QJYsW.js} +96 -96
  65. package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-RxF0N8Zj.js} +164 -164
  66. package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-Fxr752Oi.js} +3 -3
  67. package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-CNScIHKI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-CyMzdoJ9.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DMTRPWwC.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-itAGdTj_.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-CZx5cF_r.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-POYMl6cO.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-C0EE8xrA.js} +3 -3
  74. package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-B6ytrTFL.js} +37 -37
  75. package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-u39z36tT.js} +80 -80
  76. package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Cvmrm0sZ.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-BOFRFilm.js} +57 -57
  78. package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-CMhk8rpj.js} +72 -72
  79. package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-Cxznchnu.js} +5 -5
  80. package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-Du0Cskiy.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-BzC40iBw.js} +5 -5
  82. package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-D5Nk7usb.js} +297 -297
  83. package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-BivMp4WH.js} +81 -81
  84. package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-DI0Ul1Tb.js} +50 -50
  85. package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BfHsxhQq.js} +5 -5
  86. package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-ytYbdQKa.js} +67 -67
  87. package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CiYvMEKb.js} +55 -55
  88. package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-DxgCkZEV.js} +201 -182
  89. package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-R0tICTKy.js} +80 -80
  90. package/package.json +1 -1
  91. package/dist/dom-to-png-C0Ct8ClX.js +0 -243
  92. package/dist/img-P0SFFw37.js +0 -19
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as $, computed as h, ref as c, watch as rt, shallowRef as Oe, onMounted as st, onBeforeUnmount as nt, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as j, normalizeClass as E, createBlock as T, createCommentVNode as d, createElementVNode as P, createVNode as ae, createSlots as ut, withCtx as y, renderSlot as f, normalizeProps as R, guardReactiveProps as L, Fragment as x, renderList as A, toDisplayString as B, createTextVNode as Fe, nextTick as it } from "vue";
2
- import { u as ct, c as dt, t as vt, p as O, a as pt, o as ht, e as z, b as gt, g as Ne, d as Se, Q as Ie, v as ft, i as Re, f as D, X as yt, s as oe, w as mt, R as Le, q as bt, r as kt, x as Ct, y as wt } from "./index-CH_mJIWj.js";
3
- import { t as $t, u as _t } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as ze } from "./useNestedProp-rMR-JeOJ.js";
5
- import { u as Tt } from "./usePrinter-DJ7WfWUs.js";
6
- import { u as Pt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as xt } from "./useChartAccessibility-9icAAmYg.js";
8
- import At from "./Legend-DRqzYrP9.js";
9
- import Ot from "./Title-apr_T9tg.js";
10
- import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["id"], Lt = ["stop-color"], zt = ["stop-color"], Mt = { key: 1 }, Vt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ut = { key: 0 }, Et = ["d", "stroke", "stroke-width"], Bt = ["d", "stroke", "stroke-width"], Dt = { key: 2 }, Gt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Wt = ["points", "stroke", "stroke-width"], Xt = ["points", "stroke", "stroke-width", "fill"], jt = { key: 3 }, qt = ["cx", "cy", "fill", "r", "stroke"], Ht = {
1
+ import { defineAsyncComponent as $, computed as p, ref as c, watch as st, shallowRef as Fe, onMounted as nt, onBeforeUnmount as ut, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as q, normalizeClass as B, createBlock as P, createCommentVNode as d, createElementVNode as x, createVNode as oe, createSlots as it, withCtx as f, renderSlot as g, normalizeProps as L, guardReactiveProps as z, Fragment as A, renderList as O, toDisplayString as D, createTextVNode as Ne, nextTick as ct } from "vue";
2
+ import { u as dt, c as vt, t as pt, p as F, a as ht, o as gt, e as M, b as ft, g as Se, d as Ie, Q as Re, v as yt, i as Le, f as G, X as mt, s as le, w as bt, R as ze, q as kt, r as Ct, x as wt, y as $t } from "./index-BXbyT0Qn.js";
3
+ import { t as _t, u as Tt } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as Me } from "./useNestedProp-DVZpeH84.js";
5
+ import { u as Pt } from "./usePrinter-aKh5-HcK.js";
6
+ import { u as xt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as At } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Ot from "./Legend-DcDRW3Xd.js";
9
+ import Ft from "./Title-DoWqzga-.js";
10
+ import { _ as Nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["id"], zt = ["stop-color"], Mt = ["stop-color"], Vt = { key: 1 }, Ut = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Et = { key: 0 }, Bt = ["d", "stroke", "stroke-width"], Dt = ["d", "stroke", "stroke-width"], Gt = { key: 2 }, Wt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Xt = ["points", "stroke", "stroke-width"], jt = ["points", "stroke", "stroke-width", "fill"], qt = { key: 3 }, Ht = ["cx", "cy", "fill", "r", "stroke"], Yt = {
12
12
  key: 5,
13
13
  class: "vue-data-ui-watermark"
14
- }, Yt = ["onClick"], Qt = {
14
+ }, Qt = ["onClick"], Jt = {
15
15
  key: 0,
16
16
  style: { "max-width": "200px", margin: "0 auto" }
17
- }, Jt = {
17
+ }, Kt = {
18
18
  __name: "vue-ui-radar",
19
19
  props: {
20
20
  config: {
@@ -31,64 +31,64 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend"],
34
- setup(Me, { expose: Ve, emit: Ue }) {
35
- const Ee = $(() => import("./DataTable-BBqbcutV.js")), Be = $(() => import("./PenAndPaper-B-T7XvxF.js")), De = $(() => import("./vue-ui-accordion-Ds4zkPIx.js")), Ge = $(() => import("./vue-ui-skeleton-C6PWt_m5.js")), We = $(() => import("./Tooltip-BuHsMAfp.js")), Xe = $(() => import("./UserOptions-OVNxxnq5.js")), je = $(() => import("./PackageVersion-ClpqQxYT.js")), qe = $(() => import("./vue-ui-sparkbar-CYBZeaor.js")), { vue_ui_radar: He } = ct(), g = Me, M = h(() => !!g.dataset && Object.keys(g.dataset).length), _ = c(dt()), Ye = c(null), q = c(!1), H = c(""), le = c(0), V = c(null), re = c(null), se = c(null), ne = c(null), ue = c(null), ie = c(0), ce = c(0), de = c(0), e = h({
36
- get: () => ge(),
34
+ setup(Ve, { expose: Ue, emit: Ee }) {
35
+ const Be = $(() => import("./DataTable-DBkfb6pd.js")), De = $(() => import("./PenAndPaper-BRkuVFb4.js")), Ge = $(() => import("./vue-ui-accordion-CXsjHe1y.js")), We = $(() => import("./vue-ui-skeleton-Fxr752Oi.js")), Xe = $(() => import("./Tooltip-DYCBNM-_.js")), je = $(() => import("./UserOptions-B3q-xfQV.js")), qe = $(() => import("./PackageVersion-C5fpg4GN.js")), He = $(() => import("./vue-ui-sparkbar-DMTRPWwC.js")), { vue_ui_radar: Ye } = dt(), h = Ve, V = p(() => !!h.dataset && Object.keys(h.dataset).length), _ = c(vt()), Qe = c(null), H = c(!1), Y = c(""), re = c(0), U = c(null), se = c(null), ne = c(null), ue = c(null), ie = c(null), ce = c(0), de = c(0), ve = c(0), e = p({
36
+ get: () => fe(),
37
37
  set: (t) => t
38
- }), { userOptionsVisible: Y, setUserOptionsVisibility: ve, keepUserOptionState: pe } = Pt({ config: e.value }), { svgRef: he } = xt({ config: e.value.style.chart.title });
39
- function ge() {
40
- const t = ze({
41
- userConfig: g.config,
42
- defaultConfig: He
38
+ }), { userOptionsVisible: Q, setUserOptionsVisibility: pe, keepUserOptionState: he } = xt({ config: e.value }), { svgRef: ge } = At({ config: e.value.style.chart.title });
39
+ function fe() {
40
+ const t = Me({
41
+ userConfig: h.config,
42
+ defaultConfig: Ye
43
43
  });
44
44
  return t.theme ? {
45
- ...ze({
46
- userConfig: pt.vue_ui_radar[t.theme] || g.config,
45
+ ...Me({
46
+ userConfig: ht.vue_ui_radar[t.theme] || h.config,
47
47
  defaultConfig: t
48
48
  }),
49
- customPalette: vt[t.theme] || O
49
+ customPalette: pt[t.theme] || F
50
50
  } : t;
51
51
  }
52
- rt(() => g.config, (t) => {
53
- e.value = ge(), Y.value = !e.value.userOptions.showOnChartHover, fe(), ie.value += 1, ce.value += 1, de.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.tootlip ? e.value.style.chart.tootlip.show : !1;
52
+ st(() => h.config, (t) => {
53
+ e.value = fe(), Q.value = !e.value.userOptions.showOnChartHover, ye(), ce.value += 1, de.value += 1, ve.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.tootlip ? e.value.style.chart.tootlip.show : !1;
54
54
  }, { deep: !0 });
55
- const C = Oe(null), F = Oe(null);
56
- function fe() {
57
- if (ht(g.dataset) && z({
55
+ const C = Fe(null), N = Fe(null);
56
+ function ye() {
57
+ if (gt(h.dataset) && M({
58
58
  componentName: "VueUiRadar",
59
59
  type: "dataset"
60
60
  }), e.value.responsive) {
61
- const t = $t(() => {
62
- const { width: a, height: o } = _t({
63
- chart: V.value,
64
- title: e.value.style.chart.title.text ? re.value : null,
65
- legend: e.value.style.chart.legend.show ? se.value : null,
66
- source: ne.value,
67
- noTitle: ue.value
61
+ const t = _t(() => {
62
+ const { width: a, height: o } = Tt({
63
+ chart: U.value,
64
+ title: e.value.style.chart.title.text ? se.value : null,
65
+ legend: e.value.style.chart.legend.show ? ne.value : null,
66
+ source: ue.value,
67
+ noTitle: ie.value
68
68
  });
69
69
  requestAnimationFrame(() => {
70
70
  i.value.width = a, i.value.height = o;
71
71
  });
72
72
  });
73
- C.value && (F.value && C.value.unobserve(F.value), C.value.disconnect()), C.value = new ResizeObserver(t), F.value = V.value.parentNode, C.value.observe(F.value);
73
+ C.value && (N.value && C.value.unobserve(N.value), C.value.disconnect()), C.value = new ResizeObserver(t), N.value = U.value.parentNode, C.value.observe(N.value);
74
74
  }
75
75
  }
76
- st(() => {
77
- fe();
78
- }), nt(() => {
79
- C.value && (F.value && C.value.unobserve(F.value), C.value.disconnect());
76
+ nt(() => {
77
+ ye();
78
+ }), ut(() => {
79
+ C.value && (N.value && C.value.unobserve(N.value), C.value.disconnect());
80
80
  });
81
- const { isPrinting: ye, isImaging: me, generatePdf: be, generateImage: ke } = Tt({
81
+ const { isPrinting: me, isImaging: be, generatePdf: ke, generateImage: Ce } = Pt({
82
82
  elementId: `vue-ui-radar_${_.value}`,
83
83
  fileName: e.value.style.chart.title.text || "vue-ui-radar",
84
84
  options: e.value.userOptions.print
85
- }), Qe = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ce = h(() => gt(e.value.customPalette)), b = c({
85
+ }), Je = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), we = p(() => ft(e.value.customPalette)), m = c({
86
86
  dataLabels: {
87
87
  show: e.value.style.chart.layout.labels.dataLabels.show
88
88
  },
89
89
  showTable: e.value.table.show,
90
90
  showTooltip: e.value.style.chart.tooltip.show
91
- }), Je = h(() => ({
91
+ }), Ke = p(() => ({
92
92
  style: {
93
93
  backgroundColor: "#FFFFFF00",
94
94
  animation: {
@@ -109,55 +109,55 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
109
109
  })), i = c({
110
110
  height: 312,
111
111
  width: 512
112
- }), Ke = Ue, v = c([]), U = c(null), N = c(!1);
113
- function we(t) {
114
- N.value = !0, v.value.includes(t) ? (U.value = t, v.value = v.value.filter((a) => a !== t), setTimeout(() => {
115
- N.value = !1, U.value = null;
112
+ }), Ze = Ee, v = c([]), E = c(null), S = c(!1);
113
+ function $e(t) {
114
+ S.value = !0, v.value.includes(t) ? (E.value = t, v.value = v.value.filter((a) => a !== t), setTimeout(() => {
115
+ S.value = !1, E.value = null;
116
116
  }, 500)) : (v.value.push(t), setTimeout(() => {
117
- N.value = !1;
118
- }, 500)), Ke("selectLegend", S.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
117
+ S.value = !1;
118
+ }, 500)), Ze("selectLegend", I.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
119
119
  name: a.name,
120
120
  color: a.color,
121
121
  proportion: a.totalProportion
122
122
  })));
123
123
  }
124
- function Ze() {
125
- return S.value.map((t) => ({
124
+ function et() {
125
+ return I.value.map((t) => ({
126
126
  name: t.name,
127
127
  color: t.color,
128
128
  proportion: t.totalProportion
129
129
  }));
130
130
  }
131
- const m = h(() => [null, void 0].includes(g.dataset.categories) ? (z({
131
+ const y = p(() => [null, void 0].includes(h.dataset.categories) ? (M({
132
132
  componentName: "VueUiRadar",
133
133
  type: "datasetAttribute",
134
134
  property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
135
- }), []) : (g.dataset.categories.length === 0 ? z({
135
+ }), []) : (h.dataset.categories.length === 0 ? M({
136
136
  componentName: "VueUiRadar",
137
137
  type: "datasetAttributeEmpty",
138
138
  property: "categories"
139
- }) : g.dataset.categories.forEach((t, a) => {
140
- Ne({
139
+ }) : h.dataset.categories.forEach((t, a) => {
140
+ Se({
141
141
  datasetObject: t,
142
142
  requiredAttributes: ["name"]
143
143
  }).forEach((o) => {
144
- z({
144
+ M({
145
145
  componentName: "VueUiRadar",
146
146
  type: "datasetAttribute",
147
147
  property: `category.${o} at index ${a}`,
148
148
  index: a
149
149
  });
150
150
  });
151
- }), [null, void 0].includes(g.dataset.series) ? z({
151
+ }), [null, void 0].includes(h.dataset.series) ? M({
152
152
  componentName: "VueUiRadar",
153
153
  type: "datasetAttribute",
154
154
  property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
155
- }) : g.dataset.series.forEach((t, a) => {
156
- Ne({
155
+ }) : h.dataset.series.forEach((t, a) => {
156
+ Se({
157
157
  datasetObject: t,
158
158
  requiredAttributes: ["name", "values", "target"]
159
159
  }).forEach((o) => {
160
- z({
160
+ M({
161
161
  componentName: "VueUiRadar",
162
162
  type: "datasetSerieAttribute",
163
163
  key: "series",
@@ -165,34 +165,34 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
165
165
  index: a
166
166
  });
167
167
  });
168
- }), g.dataset.categories.map((t, a) => ({
168
+ }), h.dataset.categories.map((t, a) => ({
169
169
  name: t.name,
170
170
  categoryId: `radar_category_${_.value}_${a}`,
171
- color: Se(t.color) || Ce.value[a] || O[a] || O[a % O.length],
171
+ color: Ie(t.color) || we.value[a] || F[a] || F[a % F.length],
172
172
  prefix: t.prefix ?? "",
173
173
  suffix: t.suffix ?? ""
174
- })))), k = h(() => M.value ? g.dataset.series.map((t, a) => ({
174
+ })))), k = p(() => V.value ? h.dataset.series.map((t, a) => ({
175
175
  ...t,
176
- color: Se(t.color) || Ce.value[a] || O[a] || O[a % O.length],
176
+ color: Ie(t.color) || we.value[a] || F[a] || F[a % F.length],
177
177
  serieId: `radar_serie_${_.value}_${a}`,
178
178
  formatter: t.formatter || null
179
- })) : []), $e = h(() => Math.max(...k.value.flatMap((t) => t.values))), _e = h(() => k.value.length), Q = h(() => Math.min(i.value.width, i.value.height) / 3), Te = h(() => Ie({
179
+ })) : []), _e = p(() => Math.max(...k.value.flatMap((t) => t.values))), Te = p(() => k.value.length), J = p(() => Math.min(i.value.width, i.value.height) / 3), Pe = p(() => Re({
180
180
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
181
- radius: Q.value,
182
- sides: _e.value,
181
+ radius: J.value,
182
+ sides: Te.value,
183
183
  rotation: 0
184
- })), et = h(() => {
184
+ })), tt = p(() => {
185
185
  const t = [];
186
- for (let a = 0; a < Q.value; a += Q.value / e.value.style.chart.layout.grid.graduations)
186
+ for (let a = 0; a < J.value; a += J.value / e.value.style.chart.layout.grid.graduations)
187
187
  t.push(a);
188
188
  return t;
189
- }), w = h(() => Te.value.coordinates.map((t, a) => {
190
- const o = k.value[a].values.map((l) => tt({
189
+ }), w = p(() => Pe.value.coordinates.map((t, a) => {
190
+ const o = k.value[a].values.map((l) => at({
191
191
  centerX: i.value.width / 2,
192
192
  centerY: i.value.height / 2,
193
193
  apexX: t.x,
194
194
  apexY: t.y,
195
- proportion: l / (k.value[a].target || $e.value)
195
+ proportion: l / (k.value[a].target || _e.value)
196
196
  }));
197
197
  return {
198
198
  ...t,
@@ -200,55 +200,55 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
200
200
  plots: o
201
201
  };
202
202
  }));
203
- function J({ x: t, y: a }) {
203
+ function K({ x: t, y: a }) {
204
204
  let o = "middle";
205
205
  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 && (a += 20), a < i.value.height / 2 && (a -= 12), a === i.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
206
206
  }
207
- function tt({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
207
+ function at({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
208
208
  return {
209
209
  x: t + (o - t) * s,
210
210
  y: a + (l - a) * s
211
211
  };
212
212
  }
213
- const S = h(() => {
214
- const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || $e.value)));
215
- return m.value.map((a, o) => ({
213
+ const I = p(() => {
214
+ const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || _e.value)));
215
+ return y.value.map((a, o) => ({
216
216
  ...a,
217
- totalProportion: ft(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
217
+ totalProportion: yt(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
218
218
  shape: "circle",
219
219
  opacity: v.value.includes(o) ? 0.5 : 1,
220
- segregate: () => we(o),
220
+ segregate: () => $e(o),
221
221
  isSegregated: v.value.includes(o)
222
222
  }));
223
- }), at = h(() => ({
223
+ }), ot = p(() => ({
224
224
  cy: "radar-div-legend",
225
225
  backgroundColor: e.value.style.chart.legend.backgroundColor,
226
226
  color: e.value.style.chart.legend.color,
227
227
  fontSize: e.value.style.chart.legend.fontSize,
228
228
  paddingBottom: 12,
229
229
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
230
- })), G = h(() => {
230
+ })), W = p(() => {
231
231
  const t = [
232
232
  { name: e.value.translations.datapoint, color: "" },
233
233
  { name: e.value.translations.target, color: "" },
234
- ...S.value
235
- ], a = g.dataset.series.map((l) => [
234
+ ...I.value
235
+ ], a = h.dataset.series.map((l) => [
236
236
  l.name,
237
- Re(
237
+ Le(
238
238
  l.formatter,
239
239
  l.target,
240
- D({
240
+ G({
241
241
  p: l.prefix,
242
242
  v: l.target,
243
243
  s: l.suffix,
244
244
  r: e.value.table.td.roundingValue
245
245
  })
246
246
  ),
247
- ...l.values.map((s, p) => `${Re(
247
+ ...l.values.map((s, b) => `${Le(
248
248
  l.formatter,
249
249
  s,
250
- D({ p: m.value[p].prefix, v: s, s: m.value[p].suffix, r: e.value.table.td.roundingValue })
251
- )} (${isNaN(s / l.target) ? "" : D({
250
+ G({ p: y.value[b].prefix, v: s, s: y.value[b].suffix, r: e.value.table.td.roundingValue })
251
+ )} (${isNaN(s / l.target) ? "" : G({
252
252
  v: s / l.target * 100,
253
253
  s: "%",
254
254
  r: e.value.table.td.roundingPercentage
@@ -267,111 +267,111 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
267
267
  breakpoint: e.value.table.responsiveBreakpoint
268
268
  };
269
269
  return { head: t, body: a, config: o, colNames: t };
270
- }), W = c(null), K = c([]), Z = c(null);
271
- function ot(t, a) {
272
- K.value = [], W.value = a, q.value = !0;
270
+ }), X = c(null), Z = c([]), ee = c(null);
271
+ function lt(t, a) {
272
+ Z.value = [], X.value = a, H.value = !0;
273
273
  let o = "";
274
- Z.value = {
274
+ ee.value = {
275
275
  datapoint: t,
276
276
  seriesIndex: a,
277
277
  series: {
278
- categories: m.value,
278
+ categories: y.value,
279
279
  datapoints: k.value,
280
280
  radar: w.value
281
281
  },
282
282
  config: e.value
283
283
  };
284
284
  const l = e.value.style.chart.tooltip.customFormat;
285
- if (Ct(l) && wt(() => l({
285
+ if (wt(l) && $t(() => l({
286
286
  seriesIndex: a,
287
287
  datapoint: t,
288
- series: { categories: m.value, datapoints: k.value, radar: w.value },
288
+ series: { categories: y.value, datapoints: k.value, radar: w.value },
289
289
  config: e.value
290
290
  })))
291
- H.value = l({
291
+ Y.value = l({
292
292
  seriesIndex: a,
293
293
  datapoint: t,
294
- series: { categories: m.value, datapoints: k.value, radar: w.value },
294
+ series: { categories: y.value, datapoints: k.value, radar: w.value },
295
295
  config: e.value
296
296
  });
297
297
  else {
298
298
  o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`;
299
299
  for (let s = 0; s < t.values.length; s += 1)
300
- v.value.includes(s) || K.value.push({
301
- name: m.value[s].name,
300
+ v.value.includes(s) || Z.value.push({
301
+ name: y.value[s].name,
302
302
  value: t.values[s] / t.target * 100,
303
- color: m.value[s].color,
303
+ color: y.value[s].color,
304
304
  suffix: "%)",
305
- prefix: `${D({ p: m.value[s].prefix ?? "", v: t.values[s], s: m.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
305
+ prefix: `${G({ p: y.value[s].prefix ?? "", v: t.values[s], s: y.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
306
306
  rounding: e.value.style.chart.tooltip.roundingPercentage,
307
307
  formatter: t.formatter
308
308
  });
309
- H.value = o;
309
+ Y.value = o;
310
310
  }
311
311
  }
312
- function Pe() {
313
- it(() => {
314
- const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...S.value.flatMap((p) => [[p.name], ["%"]])], o = g.dataset.series.map((p, Kt) => [p.name, p.target, ...p.values.flatMap((te) => [
315
- te,
316
- isNaN(te / p.target) ? "" : te / p.target * 100
317
- ])]), l = t.concat([a]).concat(o), s = bt(l);
318
- kt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-radar" });
312
+ function xe(t = null) {
313
+ ct(() => {
314
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...I.value.flatMap((T) => [[T.name], ["%"]])], l = h.dataset.series.map((T, Zt) => [T.name, T.target, ...T.values.flatMap((ae) => [
315
+ ae,
316
+ isNaN(ae / T.target) ? "" : ae / T.target * 100
317
+ ])]), s = a.concat([o]).concat(l), b = kt(s);
318
+ t ? t(b) : Ct({ csvContent: b, title: e.value.style.chart.title.text || "vue-ui-radar" });
319
319
  });
320
320
  }
321
- const I = c(!1);
322
- function lt(t) {
323
- I.value = t, le.value += 1;
324
- }
325
- function xe() {
326
- b.value.showTable = !b.value.showTable;
321
+ const R = c(!1);
322
+ function rt(t) {
323
+ R.value = t, re.value += 1;
327
324
  }
328
325
  function Ae() {
329
- b.value.showTooltip = !b.value.showTooltip;
326
+ m.value.showTable = !m.value.showTable;
330
327
  }
331
- const X = c(!1);
332
- function ee() {
333
- X.value = !X.value;
328
+ function Oe() {
329
+ m.value.showTooltip = !m.value.showTooltip;
334
330
  }
335
- return Ve({
336
- getData: Ze,
337
- generatePdf: be,
338
- generateCsv: Pe,
339
- generateImage: ke,
340
- toggleTable: xe,
341
- toggleTooltip: Ae,
342
- toggleAnnotator: ee
331
+ const j = c(!1);
332
+ function te() {
333
+ j.value = !j.value;
334
+ }
335
+ return Ue({
336
+ getData: et,
337
+ generatePdf: ke,
338
+ generateCsv: xe,
339
+ generateImage: Ce,
340
+ toggleTable: Ae,
341
+ toggleTooltip: Oe,
342
+ toggleAnnotator: te
343
343
  }), (t, a) => (r(), u("div", {
344
- class: E(`vue-ui-radar ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
344
+ class: B(`vue-ui-radar ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
345
345
  ref_key: "radarChart",
346
- ref: V,
346
+ ref: U,
347
347
  id: `vue-ui-radar_${_.value}`,
348
- style: j(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
349
- onMouseenter: a[3] || (a[3] = () => n(ve)(!0)),
350
- onMouseleave: a[4] || (a[4] = () => n(ve)(!1))
348
+ style: q(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
349
+ onMouseenter: a[3] || (a[3] = () => n(pe)(!0)),
350
+ onMouseleave: a[4] || (a[4] = () => n(pe)(!1))
351
351
  }, [
352
- e.value.userOptions.buttons.annotator ? (r(), T(n(Be), {
352
+ e.value.userOptions.buttons.annotator ? (r(), P(n(De), {
353
353
  key: 0,
354
- svgRef: n(he),
354
+ svgRef: n(ge),
355
355
  backgroundColor: e.value.style.chart.backgroundColor,
356
356
  color: e.value.style.chart.color,
357
- active: X.value,
358
- onClose: ee
357
+ active: j.value,
358
+ onClose: te
359
359
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
360
- Qe.value ? (r(), u("div", {
360
+ Je.value ? (r(), u("div", {
361
361
  key: 1,
362
362
  ref_key: "noTitle",
363
- ref: ue,
363
+ ref: ie,
364
364
  class: "vue-data-ui-no-title-space",
365
365
  style: "height:36px; width: 100%;background:transparent"
366
366
  }, null, 512)) : d("", !0),
367
367
  e.value.style.chart.title.text ? (r(), u("div", {
368
368
  key: 2,
369
369
  ref_key: "chartTitle",
370
- ref: re,
370
+ ref: se,
371
371
  style: "width:100%;background:transparent;padding-bottom:12px"
372
372
  }, [
373
- (r(), T(Ot, {
374
- key: `title_${ie.value}`,
373
+ (r(), P(Ft, {
374
+ key: `title_${ce.value}`,
375
375
  config: {
376
376
  title: {
377
377
  cy: "radar-div-title",
@@ -384,14 +384,14 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
384
384
  }
385
385
  }, null, 8, ["config"]))
386
386
  ], 512)) : d("", !0),
387
- e.value.userOptions.show && M.value && (n(pe) || n(Y)) ? (r(), T(n(Xe), {
387
+ e.value.userOptions.show && V.value && (n(he) || n(Q)) ? (r(), P(n(je), {
388
388
  ref_key: "details",
389
- ref: Ye,
390
- key: `user_options_${le.value}`,
389
+ ref: Qe,
390
+ key: `user_options_${re.value}`,
391
391
  backgroundColor: e.value.style.chart.backgroundColor,
392
392
  color: e.value.style.chart.color,
393
- isImaging: n(me),
394
- isPrinting: n(ye),
393
+ isImaging: n(be),
394
+ isPrinting: n(me),
395
395
  uid: _.value,
396
396
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
397
397
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -399,91 +399,92 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
399
399
  hasXls: e.value.userOptions.buttons.csv,
400
400
  hasTable: e.value.userOptions.buttons.table,
401
401
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
402
- isFullscreen: I.value,
403
- isTooltip: b.value.showTooltip,
402
+ isFullscreen: R.value,
403
+ isTooltip: m.value.showTooltip,
404
404
  titles: { ...e.value.userOptions.buttonTitles },
405
- chartElement: V.value,
405
+ chartElement: U.value,
406
406
  position: e.value.userOptions.position,
407
407
  hasAnnotator: e.value.userOptions.buttons.annotator,
408
- isAnnotation: X.value,
409
- onToggleFullscreen: lt,
410
- onGeneratePdf: n(be),
411
- onGenerateCsv: Pe,
412
- onGenerateImage: n(ke),
413
- onToggleTable: xe,
414
- onToggleTooltip: Ae,
415
- onToggleAnnotator: ee,
416
- style: j({
417
- visibility: n(pe) ? n(Y) ? "visible" : "hidden" : "visible"
408
+ isAnnotation: j.value,
409
+ callbacks: e.value.userOptions.callbacks,
410
+ onToggleFullscreen: rt,
411
+ onGeneratePdf: n(ke),
412
+ onGenerateCsv: xe,
413
+ onGenerateImage: n(Ce),
414
+ onToggleTable: Ae,
415
+ onToggleTooltip: Oe,
416
+ onToggleAnnotator: te,
417
+ style: q({
418
+ visibility: n(he) ? n(Q) ? "visible" : "hidden" : "visible"
418
419
  })
419
- }, ut({ _: 2 }, [
420
+ }, it({ _: 2 }, [
420
421
  t.$slots.menuIcon ? {
421
422
  name: "menuIcon",
422
- fn: y(({ isOpen: o, color: l }) => [
423
- f(t.$slots, "menuIcon", R(L({ isOpen: o, color: l })), void 0, !0)
423
+ fn: f(({ isOpen: o, color: l }) => [
424
+ g(t.$slots, "menuIcon", L(z({ isOpen: o, color: l })), void 0, !0)
424
425
  ]),
425
426
  key: "0"
426
427
  } : void 0,
427
428
  t.$slots.optionTooltip ? {
428
429
  name: "optionTooltip",
429
- fn: y(() => [
430
- f(t.$slots, "optionTooltip", {}, void 0, !0)
430
+ fn: f(() => [
431
+ g(t.$slots, "optionTooltip", {}, void 0, !0)
431
432
  ]),
432
433
  key: "1"
433
434
  } : void 0,
434
435
  t.$slots.optionPdf ? {
435
436
  name: "optionPdf",
436
- fn: y(() => [
437
- f(t.$slots, "optionPdf", {}, void 0, !0)
437
+ fn: f(() => [
438
+ g(t.$slots, "optionPdf", {}, void 0, !0)
438
439
  ]),
439
440
  key: "2"
440
441
  } : void 0,
441
442
  t.$slots.optionCsv ? {
442
443
  name: "optionCsv",
443
- fn: y(() => [
444
- f(t.$slots, "optionCsv", {}, void 0, !0)
444
+ fn: f(() => [
445
+ g(t.$slots, "optionCsv", {}, void 0, !0)
445
446
  ]),
446
447
  key: "3"
447
448
  } : void 0,
448
449
  t.$slots.optionImg ? {
449
450
  name: "optionImg",
450
- fn: y(() => [
451
- f(t.$slots, "optionImg", {}, void 0, !0)
451
+ fn: f(() => [
452
+ g(t.$slots, "optionImg", {}, void 0, !0)
452
453
  ]),
453
454
  key: "4"
454
455
  } : void 0,
455
456
  t.$slots.optionTable ? {
456
457
  name: "optionTable",
457
- fn: y(() => [
458
- f(t.$slots, "optionTable", {}, void 0, !0)
458
+ fn: f(() => [
459
+ g(t.$slots, "optionTable", {}, void 0, !0)
459
460
  ]),
460
461
  key: "5"
461
462
  } : void 0,
462
463
  t.$slots.optionFullscreen ? {
463
464
  name: "optionFullscreen",
464
- fn: y(({ toggleFullscreen: o, isFullscreen: l }) => [
465
- f(t.$slots, "optionFullscreen", R(L({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
465
+ fn: f(({ toggleFullscreen: o, isFullscreen: l }) => [
466
+ g(t.$slots, "optionFullscreen", L(z({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
466
467
  ]),
467
468
  key: "6"
468
469
  } : void 0,
469
470
  t.$slots.optionAnnotator ? {
470
471
  name: "optionAnnotator",
471
- fn: y(({ toggleAnnotator: o, isAnnotator: l }) => [
472
- f(t.$slots, "optionAnnotator", R(L({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
472
+ fn: f(({ toggleAnnotator: o, isAnnotator: l }) => [
473
+ g(t.$slots, "optionAnnotator", L(z({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
473
474
  ]),
474
475
  key: "7"
475
476
  } : void 0
476
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
477
- M.value ? (r(), u("svg", {
477
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
478
+ V.value ? (r(), u("svg", {
478
479
  key: 4,
479
480
  ref_key: "svgRef",
480
- ref: he,
481
- xmlns: n(yt),
482
- class: E({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
481
+ ref: ge,
482
+ xmlns: n(mt),
483
+ class: B({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
483
484
  viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
484
- style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
485
+ style: q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
485
486
  }, [
486
- ae(n(je)),
487
+ oe(n(qe)),
487
488
  t.$slots["chart-background"] ? (r(), u("foreignObject", {
488
489
  key: 0,
489
490
  x: 0,
@@ -494,10 +495,10 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
494
495
  pointerEvents: "none"
495
496
  }
496
497
  }, [
497
- f(t.$slots, "chart-background", {}, void 0, !0)
498
- ], 8, It)) : d("", !0),
499
- P("defs", null, [
500
- (r(!0), u(x, null, A(m.value, (o, l) => (r(), u("radialGradient", {
498
+ g(t.$slots, "chart-background", {}, void 0, !0)
499
+ ], 8, Rt)) : d("", !0),
500
+ x("defs", null, [
501
+ (r(!0), u(A, null, O(y.value, (o, l) => (r(), u("radialGradient", {
501
502
  cx: "50%",
502
503
  cy: "50%",
503
504
  r: "50%",
@@ -505,99 +506,99 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
505
506
  fy: "50%",
506
507
  id: `radar_gradient_${_.value}_${l}`
507
508
  }, [
508
- P("stop", {
509
+ x("stop", {
509
510
  offset: "0%",
510
- "stop-color": n(oe)(n(mt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
511
- }, null, 8, Lt),
512
- P("stop", {
511
+ "stop-color": n(le)(n(bt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
512
+ }, null, 8, zt),
513
+ x("stop", {
513
514
  offset: "100%",
514
- "stop-color": n(oe)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
515
- }, null, 8, zt)
516
- ], 8, Rt))), 256))
515
+ "stop-color": n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
516
+ }, null, 8, Mt)
517
+ ], 8, Lt))), 256))
517
518
  ]),
518
- e.value.style.chart.layout.grid.show ? (r(), u("g", Mt, [
519
- (r(!0), u(x, null, A(w.value, (o) => (r(), u("line", {
519
+ e.value.style.chart.layout.grid.show ? (r(), u("g", Vt, [
520
+ (r(!0), u(A, null, O(w.value, (o) => (r(), u("line", {
520
521
  x1: i.value.width / 2,
521
522
  y1: i.value.height / 2,
522
523
  x2: o.x,
523
524
  y2: o.y,
524
525
  stroke: e.value.style.chart.layout.grid.stroke,
525
526
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
526
- }, null, 8, Vt))), 256)),
527
- e.value.style.chart.layout.grid.graduations > 0 ? (r(), u("g", Ut, [
528
- (r(!0), u(x, null, A(et.value, (o) => (r(), u("path", {
529
- d: n(Ie)({
527
+ }, null, 8, Ut))), 256)),
528
+ e.value.style.chart.layout.grid.graduations > 0 ? (r(), u("g", Et, [
529
+ (r(!0), u(A, null, O(tt.value, (o) => (r(), u("path", {
530
+ d: n(Re)({
530
531
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
531
532
  radius: o,
532
- sides: _e.value,
533
+ sides: Te.value,
533
534
  rotation: 0
534
535
  }).path,
535
536
  fill: "none",
536
537
  stroke: e.value.style.chart.layout.grid.stroke,
537
538
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
538
- }, null, 8, Et))), 256))
539
+ }, null, 8, Bt))), 256))
539
540
  ])) : d("", !0)
540
541
  ])) : d("", !0),
541
- P("path", {
542
- d: Te.value.path,
542
+ x("path", {
543
+ d: Pe.value.path,
543
544
  fill: "none",
544
545
  stroke: e.value.style.chart.layout.outerPolygon.stroke,
545
546
  "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
546
547
  "stroke-linejoin": "round",
547
548
  "stroke-linecap": "round"
548
- }, null, 8, Bt),
549
- e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g", Dt, [
550
- (r(!0), u(x, null, A(w.value, (o, l) => (r(), u("text", {
551
- x: J(o).x,
552
- y: J(o).y,
553
- "text-anchor": J(o).anchor,
549
+ }, null, 8, Dt),
550
+ e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g", Gt, [
551
+ (r(!0), u(A, null, O(w.value, (o, l) => (r(), u("text", {
552
+ x: K(o).x,
553
+ y: K(o).y,
554
+ "text-anchor": K(o).anchor,
554
555
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
555
556
  fill: e.value.style.chart.layout.labels.dataLabels.color,
556
- onMouseenter: (s) => ot(o, l),
557
+ onMouseenter: (s) => lt(o, l),
557
558
  onMouseleave: a[0] || (a[0] = (s) => {
558
- q.value = !1, W.value = null;
559
+ H.value = !1, X.value = null;
559
560
  })
560
- }, B(o.name), 41, Gt))), 256))
561
+ }, D(o.name), 41, Wt))), 256))
561
562
  ])) : d("", !0),
562
- (r(!0), u(x, null, A(m.value, (o, l) => (r(), u("g", null, [
563
- P("g", null, [
563
+ (r(!0), u(A, null, O(y.value, (o, l) => (r(), u("g", null, [
564
+ x("g", null, [
564
565
  e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
565
566
  key: 0,
566
- points: n(Le)(w.value.map((s) => s.plots[l]), !1, !0),
567
+ points: n(ze)(w.value.map((s) => s.plots[l]), !1, !0),
567
568
  stroke: e.value.style.chart.backgroundColor,
568
569
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
569
570
  fill: "none",
570
- class: E({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": N.value && U.value === l && e.value.useCssAnimation })
571
- }, null, 10, Wt)) : d("", !0),
571
+ class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": S.value && E.value === l && e.value.useCssAnimation })
572
+ }, null, 10, Xt)) : d("", !0),
572
573
  e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
573
574
  key: 1,
574
- points: n(Le)(w.value.map((s) => s.plots[l]), !1, !0),
575
+ points: n(ze)(w.value.map((s) => s.plots[l]), !1, !0),
575
576
  stroke: o.color,
576
577
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
577
- fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : n(oe)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
578
- class: E({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": N.value && U.value === l && e.value.useCssAnimation })
579
- }, null, 10, Xt)) : d("", !0)
578
+ fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
579
+ class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": S.value && E.value === l && e.value.useCssAnimation })
580
+ }, null, 10, jt)) : d("", !0)
580
581
  ])
581
582
  ]))), 256)),
582
- e.value.style.chart.layout.plots.show ? (r(), u("g", jt, [
583
- (r(!0), u(x, null, A(w.value, (o, l) => (r(), u("g", null, [
584
- (r(!0), u(x, null, A(o.plots, (s, p) => (r(), u("circle", {
583
+ e.value.style.chart.layout.plots.show ? (r(), u("g", qt, [
584
+ (r(!0), u(A, null, O(w.value, (o, l) => (r(), u("g", null, [
585
+ (r(!0), u(A, null, O(o.plots, (s, b) => (r(), u("circle", {
585
586
  cx: s.x,
586
587
  cy: s.y,
587
- fill: v.value.includes(p) ? "transparent" : m.value[p].color,
588
- r: W.value !== null && W.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
589
- stroke: v.value.includes(p) ? "transparent" : e.value.style.chart.backgroundColor,
588
+ fill: v.value.includes(b) ? "transparent" : y.value[b].color,
589
+ r: X.value !== null && X.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
590
+ stroke: v.value.includes(b) ? "transparent" : e.value.style.chart.backgroundColor,
590
591
  "stroke-width": 0.5,
591
- class: E({ "animated-out": v.value.includes(p) && e.value.useCssAnimation, "animated-in": N.value && U.value === p && e.value.useCssAnimation })
592
- }, null, 10, qt))), 256))
592
+ class: B({ "animated-out": v.value.includes(b) && e.value.useCssAnimation, "animated-in": S.value && E.value === b && e.value.useCssAnimation })
593
+ }, null, 10, Ht))), 256))
593
594
  ]))), 256))
594
595
  ])) : d("", !0),
595
- f(t.$slots, "svg", { svg: i.value }, void 0, !0)
596
- ], 14, St)) : d("", !0),
597
- t.$slots.watermark ? (r(), u("div", Ht, [
598
- f(t.$slots, "watermark", R(L({ isPrinting: n(ye) || n(me) })), void 0, !0)
596
+ g(t.$slots, "svg", { svg: i.value }, void 0, !0)
597
+ ], 14, It)) : d("", !0),
598
+ t.$slots.watermark ? (r(), u("div", Yt, [
599
+ g(t.$slots, "watermark", L(z({ isPrinting: n(me) || n(be) })), void 0, !0)
599
600
  ])) : d("", !0),
600
- M.value ? d("", !0) : (r(), T(n(Ge), {
601
+ V.value ? d("", !0) : (r(), P(n(We), {
601
602
  key: 6,
602
603
  config: {
603
604
  type: "radar",
@@ -614,42 +615,42 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
614
615
  }
615
616
  }
616
617
  }, null, 8, ["config"])),
617
- P("div", {
618
+ x("div", {
618
619
  ref_key: "chartLegend",
619
- ref: se
620
+ ref: ne
620
621
  }, [
621
- e.value.style.chart.legend.show ? (r(), T(At, {
622
- key: `legend_${de.value}`,
623
- legendSet: S.value,
624
- config: at.value,
625
- onClickMarker: a[1] || (a[1] = ({ i: o }) => we(o))
622
+ e.value.style.chart.legend.show ? (r(), P(Ot, {
623
+ key: `legend_${ve.value}`,
624
+ legendSet: I.value,
625
+ config: ot.value,
626
+ onClickMarker: a[1] || (a[1] = ({ i: o }) => $e(o))
626
627
  }, {
627
- item: y(({ legend: o, index: l }) => [
628
- P("div", {
628
+ item: f(({ legend: o, index: l }) => [
629
+ x("div", {
629
630
  onClick: (s) => o.segregate(),
630
- style: j(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
631
- }, B(o.name) + ": " + B(n(D)({
631
+ style: q(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
632
+ }, D(o.name) + ": " + D(n(G)({
632
633
  v: o.totalProportion * 100,
633
634
  s: "%",
634
635
  r: e.value.style.chart.legend.roundingPercentage
635
- })), 13, Yt)
636
+ })), 13, Qt)
636
637
  ]),
637
638
  _: 1
638
- }, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
639
+ }, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
639
640
  key: 1,
640
- legend: S.value
641
+ legend: I.value
641
642
  }, void 0, !0)
642
643
  ], 512),
643
644
  t.$slots.source ? (r(), u("div", {
644
645
  key: 7,
645
646
  ref_key: "source",
646
- ref: ne,
647
+ ref: ue,
647
648
  dir: "auto"
648
649
  }, [
649
- f(t.$slots, "source", {}, void 0, !0)
650
+ g(t.$slots, "source", {}, void 0, !0)
650
651
  ], 512)) : d("", !0),
651
- ae(n(We), {
652
- show: b.value.showTooltip && q.value,
652
+ oe(n(Xe), {
653
+ show: m.value.showTooltip && H.value,
653
654
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
654
655
  color: e.value.style.chart.tooltip.color,
655
656
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -659,31 +660,31 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
659
660
  fontSize: e.value.style.chart.tooltip.fontSize,
660
661
  position: e.value.style.chart.tooltip.position,
661
662
  offsetY: e.value.style.chart.tooltip.offsetY,
662
- parent: V.value,
663
- content: H.value,
664
- isFullscreen: I.value,
663
+ parent: U.value,
664
+ content: Y.value,
665
+ isFullscreen: R.value,
665
666
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
666
667
  }, {
667
- "tooltip-before": y(() => [
668
- f(t.$slots, "tooltip-before", R(L({ ...Z.value })), void 0, !0)
668
+ "tooltip-before": f(() => [
669
+ g(t.$slots, "tooltip-before", L(z({ ...ee.value })), void 0, !0)
669
670
  ]),
670
- "tooltip-after": y(() => [
671
- ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div", Qt, [
672
- ae(n(qe), {
673
- dataset: K.value,
674
- config: Je.value,
671
+ "tooltip-after": f(() => [
672
+ ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div", Jt, [
673
+ oe(n(He), {
674
+ dataset: Z.value,
675
+ config: Ke.value,
675
676
  backgroundOpacity: 0
676
677
  }, null, 8, ["dataset", "config"])
677
678
  ])),
678
- f(t.$slots, "tooltip-after", R(L({ ...Z.value })), void 0, !0)
679
+ g(t.$slots, "tooltip-after", L(z({ ...ee.value })), void 0, !0)
679
680
  ]),
680
681
  _: 3
681
682
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
682
- M.value ? (r(), T(n(De), {
683
+ V.value ? (r(), P(n(Ge), {
683
684
  key: 8,
684
685
  hideDetails: "",
685
686
  config: {
686
- open: b.value.showTable,
687
+ open: m.value.showTable,
687
688
  maxHeight: 1e4,
688
689
  body: {
689
690
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -695,30 +696,30 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
695
696
  }
696
697
  }
697
698
  }, {
698
- content: y(() => [
699
- (r(), T(n(Ee), {
700
- key: `table_${ce.value}`,
701
- colNames: G.value.colNames,
702
- head: G.value.head,
703
- body: G.value.body,
704
- config: G.value.config,
699
+ content: f(() => [
700
+ (r(), P(n(Be), {
701
+ key: `table_${de.value}`,
702
+ colNames: W.value.colNames,
703
+ head: W.value.head,
704
+ body: W.value.body,
705
+ config: W.value.config,
705
706
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
706
- onClose: a[2] || (a[2] = (o) => b.value.showTable = !1)
707
+ onClose: a[2] || (a[2] = (o) => m.value.showTable = !1)
707
708
  }, {
708
- th: y(({ th: o }) => [
709
- Fe(B(o.name), 1)
709
+ th: f(({ th: o }) => [
710
+ Ne(D(o.name), 1)
710
711
  ]),
711
- td: y(({ td: o }) => [
712
- Fe(B(o), 1)
712
+ td: f(({ td: o }) => [
713
+ Ne(D(o), 1)
713
714
  ]),
714
715
  _: 1
715
716
  }, 8, ["colNames", "head", "body", "config", "title"]))
716
717
  ]),
717
718
  _: 1
718
719
  }, 8, ["config"])) : d("", !0)
719
- ], 46, Nt));
720
+ ], 46, St));
720
721
  }
721
- }, ia = /* @__PURE__ */ Ft(Jt, [["__scopeId", "data-v-990e4bf4"]]);
722
+ }, ca = /* @__PURE__ */ Nt(Kt, [["__scopeId", "data-v-0723e970"]]);
722
723
  export {
723
- ia as default
724
+ ca as default
724
725
  };