vue-data-ui 2.12.6 → 2.12.7-beta.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 (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
  2. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  8. package/dist/PackageVersion-CLY-udAA.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
  15. package/dist/SparkTooltip-CwThutH2.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
  17. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-CRCbl1WG.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
  41. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  45. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  46. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  57. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
  66. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  76. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  85. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  86. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  89. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  90. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,27 +1,20 @@
1
- import { computed as p, ref as i, watch as He, onMounted as Ye, onBeforeUnmount as Qe, createElementBlock as n, openBlock as r, unref as c, normalizeStyle as W, normalizeClass as M, createBlock as _, createCommentVNode as d, createElementVNode as $, createVNode as ee, createSlots as Je, withCtx as y, renderSlot as f, normalizeProps as N, guardReactiveProps as S, Fragment as T, renderList as P, toDisplayString as U, createTextVNode as xe, nextTick as Ke } from "vue";
2
- import { u as Ze, c as et, t as tt, p as x, a as at, o as ot, e as I, b as lt, g as Oe, d as Ae, Q as Fe, v as rt, i as Ne, f as V, X as st, s as te, w as nt, R as Se, q as ut, r as it, x as ct, y as dt } from "./index-BFzQMJda.js";
3
- import { t as vt, u as ht } from "./useResponsive-JZ9xq-JV.js";
4
- import { _ as pt } from "./Title-CzaCeCOm.js";
5
- import { u as gt, U as ft } from "./usePrinter-C5bLp34h.js";
6
- import { _ as yt } from "./Tooltip-CWmRmhJr.js";
7
- import mt from "./vue-ui-sparkbar-9N1FU9-J.js";
8
- import { L as bt } from "./Legend-BxtDQCIv.js";
9
- import { D as kt } from "./DataTable-Rajdtaf6.js";
10
- import Ct from "./vue-ui-skeleton-B_YI7Yuc.js";
11
- import wt from "./vue-ui-accordion-BUz4JIIX.js";
12
- import { u as Ie } from "./useNestedProp-v7KPpwuP.js";
13
- import { _ as _t } from "./PackageVersion-BjrblLPQ.js";
14
- import { _ as $t } from "./PenAndPaper-BkP3J-Ft.js";
15
- import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
16
- import { u as Pt } from "./useChartAccessibility-BWojgys7.js";
17
- import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["id"], St = ["stop-color"], It = ["stop-color"], Rt = { key: 1 }, Lt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], zt = { key: 0 }, Mt = ["d", "stroke", "stroke-width"], Ut = ["d", "stroke", "stroke-width"], Vt = { key: 2 }, Et = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Bt = ["points", "stroke", "stroke-width"], Dt = ["points", "stroke", "stroke-width", "fill"], Gt = { key: 3 }, Wt = ["cx", "cy", "fill", "r", "stroke"], Xt = {
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-BiHmNd1-.js";
3
+ import { t as $t, u as _t } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as ze } from "./useNestedProp-tRqS0ZAM.js";
5
+ import { u as Tt } from "./usePrinter-CRCbl1WG.js";
6
+ import { u as Pt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as xt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import At from "./Legend-DFunFf8i.js";
9
+ import Ot from "./Title-B5qqUI3M.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 = {
19
12
  key: 5,
20
13
  class: "vue-data-ui-watermark"
21
- }, jt = ["onClick"], qt = {
14
+ }, Yt = ["onClick"], Qt = {
22
15
  key: 0,
23
16
  style: { "max-width": "200px", margin: "0 auto" }
24
- }, Ht = {
17
+ }, Jt = {
25
18
  __name: "vue-ui-radar",
26
19
  props: {
27
20
  config: {
@@ -38,64 +31,64 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
38
31
  }
39
32
  },
40
33
  emits: ["selectLegend"],
41
- setup(Re, { expose: Le, emit: ze }) {
42
- const { vue_ui_radar: Me } = Ze(), g = Re, R = p(() => !!g.dataset && Object.keys(g.dataset).length), w = i(et()), Ue = i(null), X = i(!1), j = i(""), ae = i(0), L = i(null), oe = i(null), le = i(null), re = i(null), se = i(null), ne = i(0), ue = i(0), ie = i(0), e = p({
43
- get: () => he(),
34
+ setup(Me, { expose: Ve, emit: Ue }) {
35
+ const Ee = $(() => import("./DataTable-Cv9CIz-a.js")), Be = $(() => import("./PenAndPaper-B9na2mbr.js")), De = $(() => import("./vue-ui-accordion-CmCs2yR2.js")), Ge = $(() => import("./vue-ui-skeleton-CbYQYRvD.js")), We = $(() => import("./Tooltip-C9rxJ-Ru.js")), Xe = $(() => import("./UserOptions-Ddy6CuLC.js")), je = $(() => import("./PackageVersion-CLY-udAA.js")), qe = $(() => import("./vue-ui-sparkbar-ChtFIugH.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(),
44
37
  set: (t) => t
45
- }), { userOptionsVisible: q, setUserOptionsVisibility: ce, keepUserOptionState: de } = Tt({ config: e.value }), { svgRef: ve } = Pt({ config: e.value.style.chart.title });
46
- function he() {
47
- const t = Ie({
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({
48
41
  userConfig: g.config,
49
- defaultConfig: Me
42
+ defaultConfig: He
50
43
  });
51
44
  return t.theme ? {
52
- ...Ie({
53
- userConfig: at.vue_ui_radar[t.theme] || g.config,
45
+ ...ze({
46
+ userConfig: pt.vue_ui_radar[t.theme] || g.config,
54
47
  defaultConfig: t
55
48
  }),
56
- customPalette: tt[t.theme] || x
49
+ customPalette: vt[t.theme] || O
57
50
  } : t;
58
51
  }
59
- He(() => g.config, (t) => {
60
- e.value = he(), q.value = !e.value.userOptions.showOnChartHover, pe(), ne.value += 1, ue.value += 1, ie.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.show;
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;
61
54
  }, { deep: !0 });
62
- const E = i(null);
63
- function pe() {
64
- if (ot(g.dataset) && I({
55
+ const C = Oe(null), F = Oe(null);
56
+ function fe() {
57
+ if (ht(g.dataset) && z({
65
58
  componentName: "VueUiRadar",
66
59
  type: "dataset"
67
60
  }), e.value.responsive) {
68
- const t = vt(() => {
69
- const { width: a, height: o } = ht({
70
- chart: L.value,
71
- title: e.value.style.chart.title.text ? oe.value : null,
72
- legend: e.value.style.chart.legend.show ? le.value : null,
73
- source: re.value,
74
- noTitle: se.value
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
75
68
  });
76
69
  requestAnimationFrame(() => {
77
- u.value.width = a, u.value.height = o;
70
+ i.value.width = a, i.value.height = o;
78
71
  });
79
72
  });
80
- E.value = new ResizeObserver(t), E.value.observe(L.value.parentNode);
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);
81
74
  }
82
75
  }
83
- Ye(() => {
84
- pe();
85
- }), Qe(() => {
86
- E.value && E.value.disconnect();
76
+ st(() => {
77
+ fe();
78
+ }), nt(() => {
79
+ C.value && (F.value && C.value.unobserve(F.value), C.value.disconnect());
87
80
  });
88
- const { isPrinting: ge, isImaging: fe, generatePdf: ye, generateImage: me } = gt({
89
- elementId: `vue-ui-radar_${w.value}`,
81
+ const { isPrinting: ye, isImaging: me, generatePdf: be, generateImage: ke } = Tt({
82
+ elementId: `vue-ui-radar_${_.value}`,
90
83
  fileName: e.value.style.chart.title.text || "vue-ui-radar",
91
84
  options: e.value.userOptions.print
92
- }), Ve = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = p(() => lt(e.value.customPalette)), b = i({
85
+ }), Qe = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ce = h(() => gt(e.value.customPalette)), b = c({
93
86
  dataLabels: {
94
87
  show: e.value.style.chart.layout.labels.dataLabels.show
95
88
  },
96
89
  showTable: e.value.table.show,
97
90
  showTooltip: e.value.style.chart.tooltip.show
98
- }), Ee = p(() => ({
91
+ }), Je = h(() => ({
99
92
  style: {
100
93
  backgroundColor: "#FFFFFF00",
101
94
  animation: {
@@ -113,58 +106,58 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
113
106
  opacity: 30
114
107
  }
115
108
  }
116
- })), u = i({
109
+ })), i = c({
117
110
  height: 312,
118
111
  width: 512
119
- }), Be = ze, v = i([]), z = i(null), O = i(!1);
120
- function ke(t) {
121
- O.value = !0, v.value.includes(t) ? (z.value = t, v.value = v.value.filter((a) => a !== t), setTimeout(() => {
122
- O.value = !1, z.value = null;
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;
123
116
  }, 500)) : (v.value.push(t), setTimeout(() => {
124
- O.value = !1;
125
- }, 500)), Be("selectLegend", A.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
117
+ N.value = !1;
118
+ }, 500)), Ke("selectLegend", S.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
126
119
  name: a.name,
127
120
  color: a.color,
128
121
  proportion: a.totalProportion
129
122
  })));
130
123
  }
131
- function De() {
132
- return A.value.map((t) => ({
124
+ function Ze() {
125
+ return S.value.map((t) => ({
133
126
  name: t.name,
134
127
  color: t.color,
135
128
  proportion: t.totalProportion
136
129
  }));
137
130
  }
138
- const m = p(() => [null, void 0].includes(g.dataset.categories) ? (I({
131
+ const m = h(() => [null, void 0].includes(g.dataset.categories) ? (z({
139
132
  componentName: "VueUiRadar",
140
133
  type: "datasetAttribute",
141
134
  property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
142
- }), []) : (g.dataset.categories.length === 0 ? I({
135
+ }), []) : (g.dataset.categories.length === 0 ? z({
143
136
  componentName: "VueUiRadar",
144
137
  type: "datasetAttributeEmpty",
145
138
  property: "categories"
146
139
  }) : g.dataset.categories.forEach((t, a) => {
147
- Oe({
140
+ Ne({
148
141
  datasetObject: t,
149
142
  requiredAttributes: ["name"]
150
143
  }).forEach((o) => {
151
- I({
144
+ z({
152
145
  componentName: "VueUiRadar",
153
146
  type: "datasetAttribute",
154
147
  property: `category.${o} at index ${a}`,
155
148
  index: a
156
149
  });
157
150
  });
158
- }), [null, void 0].includes(g.dataset.series) ? I({
151
+ }), [null, void 0].includes(g.dataset.series) ? z({
159
152
  componentName: "VueUiRadar",
160
153
  type: "datasetAttribute",
161
154
  property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
162
155
  }) : g.dataset.series.forEach((t, a) => {
163
- Oe({
156
+ Ne({
164
157
  datasetObject: t,
165
158
  requiredAttributes: ["name", "values", "target"]
166
159
  }).forEach((o) => {
167
- I({
160
+ z({
168
161
  componentName: "VueUiRadar",
169
162
  type: "datasetSerieAttribute",
170
163
  key: "series",
@@ -174,32 +167,32 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
174
167
  });
175
168
  }), g.dataset.categories.map((t, a) => ({
176
169
  name: t.name,
177
- categoryId: `radar_category_${w.value}_${a}`,
178
- color: Ae(t.color) || be.value[a] || x[a] || x[a % x.length],
170
+ categoryId: `radar_category_${_.value}_${a}`,
171
+ color: Se(t.color) || Ce.value[a] || O[a] || O[a % O.length],
179
172
  prefix: t.prefix ?? "",
180
173
  suffix: t.suffix ?? ""
181
- })))), k = p(() => R.value ? g.dataset.series.map((t, a) => ({
174
+ })))), k = h(() => M.value ? g.dataset.series.map((t, a) => ({
182
175
  ...t,
183
- color: Ae(t.color) || be.value[a] || x[a] || x[a % x.length],
184
- serieId: `radar_serie_${w.value}_${a}`,
176
+ color: Se(t.color) || Ce.value[a] || O[a] || O[a % O.length],
177
+ serieId: `radar_serie_${_.value}_${a}`,
185
178
  formatter: t.formatter || null
186
- })) : []), Ce = p(() => Math.max(...k.value.flatMap((t) => t.values))), we = p(() => k.value.length), H = p(() => Math.min(u.value.width, u.value.height) / 3), _e = p(() => Fe({
187
- plot: { x: u.value.width / 2, y: u.value.height / 2 },
188
- radius: H.value,
189
- sides: we.value,
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({
180
+ plot: { x: i.value.width / 2, y: i.value.height / 2 },
181
+ radius: Q.value,
182
+ sides: _e.value,
190
183
  rotation: 0
191
- })), Ge = p(() => {
184
+ })), et = h(() => {
192
185
  const t = [];
193
- for (let a = 0; a < H.value; a += H.value / e.value.style.chart.layout.grid.graduations)
186
+ for (let a = 0; a < Q.value; a += Q.value / e.value.style.chart.layout.grid.graduations)
194
187
  t.push(a);
195
188
  return t;
196
- }), C = p(() => _e.value.coordinates.map((t, a) => {
197
- const o = k.value[a].values.map((l) => We({
198
- centerX: u.value.width / 2,
199
- centerY: u.value.height / 2,
189
+ }), w = h(() => Te.value.coordinates.map((t, a) => {
190
+ const o = k.value[a].values.map((l) => tt({
191
+ centerX: i.value.width / 2,
192
+ centerY: i.value.height / 2,
200
193
  apexX: t.x,
201
194
  apexY: t.y,
202
- proportion: l / (k.value[a].target || Ce.value)
195
+ proportion: l / (k.value[a].target || $e.value)
203
196
  }));
204
197
  return {
205
198
  ...t,
@@ -207,55 +200,55 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
207
200
  plots: o
208
201
  };
209
202
  }));
210
- function Y({ x: t, y: a }) {
203
+ function J({ x: t, y: a }) {
211
204
  let o = "middle";
212
- return t = Math.round(t), a = Math.round(a), t > u.value.width / 2 && (t += 12, o = "start"), t < u.value.width / 2 && (t -= 12, o = "end"), a > u.value.height / 2 && (a += 20), a < u.value.height / 2 && (a -= 12), a === u.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
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 };
213
206
  }
214
- function We({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
207
+ function tt({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
215
208
  return {
216
209
  x: t + (o - t) * s,
217
210
  y: a + (l - a) * s
218
211
  };
219
212
  }
220
- const A = p(() => {
221
- const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || Ce.value)));
213
+ const S = h(() => {
214
+ const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || $e.value)));
222
215
  return m.value.map((a, o) => ({
223
216
  ...a,
224
- totalProportion: rt(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
217
+ totalProportion: ft(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
225
218
  shape: "circle",
226
219
  opacity: v.value.includes(o) ? 0.5 : 1,
227
- segregate: () => ke(o),
220
+ segregate: () => we(o),
228
221
  isSegregated: v.value.includes(o)
229
222
  }));
230
- }), Xe = p(() => ({
223
+ }), at = h(() => ({
231
224
  cy: "radar-div-legend",
232
225
  backgroundColor: e.value.style.chart.legend.backgroundColor,
233
226
  color: e.value.style.chart.legend.color,
234
227
  fontSize: e.value.style.chart.legend.fontSize,
235
228
  paddingBottom: 12,
236
229
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
237
- })), B = p(() => {
230
+ })), G = h(() => {
238
231
  const t = [
239
232
  { name: e.value.translations.datapoint, color: "" },
240
233
  { name: e.value.translations.target, color: "" },
241
- ...A.value
234
+ ...S.value
242
235
  ], a = g.dataset.series.map((l) => [
243
236
  l.name,
244
- Ne(
237
+ Re(
245
238
  l.formatter,
246
239
  l.target,
247
- V({
240
+ D({
248
241
  p: l.prefix,
249
242
  v: l.target,
250
243
  s: l.suffix,
251
244
  r: e.value.table.td.roundingValue
252
245
  })
253
246
  ),
254
- ...l.values.map((s, h) => `${Ne(
247
+ ...l.values.map((s, p) => `${Re(
255
248
  l.formatter,
256
249
  s,
257
- V({ p: m.value[h].prefix, v: s, s: m.value[h].suffix, r: e.value.table.td.roundingValue })
258
- )} (${isNaN(s / l.target) ? "" : V({
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({
259
252
  v: s / l.target * 100,
260
253
  s: "%",
261
254
  r: e.value.table.td.roundingPercentage
@@ -274,111 +267,111 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
274
267
  breakpoint: e.value.table.responsiveBreakpoint
275
268
  };
276
269
  return { head: t, body: a, config: o, colNames: t };
277
- }), D = i(null), Q = i([]), J = i(null);
278
- function je(t, a) {
279
- Q.value = [], D.value = a, X.value = !0;
270
+ }), W = c(null), K = c([]), Z = c(null);
271
+ function ot(t, a) {
272
+ K.value = [], W.value = a, q.value = !0;
280
273
  let o = "";
281
- J.value = {
274
+ Z.value = {
282
275
  datapoint: t,
283
276
  seriesIndex: a,
284
277
  series: {
285
278
  categories: m.value,
286
279
  datapoints: k.value,
287
- radar: C.value
280
+ radar: w.value
288
281
  },
289
282
  config: e.value
290
283
  };
291
284
  const l = e.value.style.chart.tooltip.customFormat;
292
- if (ct(l) && dt(() => l({
285
+ if (Ct(l) && wt(() => l({
293
286
  seriesIndex: a,
294
287
  datapoint: t,
295
- series: { categories: m.value, datapoints: k.value, radar: C.value },
288
+ series: { categories: m.value, datapoints: k.value, radar: w.value },
296
289
  config: e.value
297
290
  })))
298
- j.value = l({
291
+ H.value = l({
299
292
  seriesIndex: a,
300
293
  datapoint: t,
301
- series: { categories: m.value, datapoints: k.value, radar: C.value },
294
+ series: { categories: m.value, datapoints: k.value, radar: w.value },
302
295
  config: e.value
303
296
  });
304
297
  else {
305
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>`;
306
299
  for (let s = 0; s < t.values.length; s += 1)
307
- v.value.includes(s) || Q.value.push({
300
+ v.value.includes(s) || K.value.push({
308
301
  name: m.value[s].name,
309
302
  value: t.values[s] / t.target * 100,
310
303
  color: m.value[s].color,
311
304
  suffix: "%)",
312
- prefix: `${V({ p: m.value[s].prefix ?? "", v: t.values[s], s: m.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
305
+ prefix: `${D({ p: m.value[s].prefix ?? "", v: t.values[s], s: m.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
313
306
  rounding: e.value.style.chart.tooltip.roundingPercentage,
314
307
  formatter: t.formatter
315
308
  });
316
- j.value = o;
309
+ H.value = o;
317
310
  }
318
311
  }
319
- function $e() {
320
- Ke(() => {
321
- const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...A.value.flatMap((h) => [[h.name], ["%"]])], o = g.dataset.series.map((h, Yt) => [h.name, h.target, ...h.values.flatMap((Z) => [
322
- Z,
323
- isNaN(Z / h.target) ? "" : Z / h.target * 100
324
- ])]), l = t.concat([a]).concat(o), s = ut(l);
325
- it({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-radar" });
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" });
326
319
  });
327
320
  }
328
- const F = i(!1);
329
- function qe(t) {
330
- F.value = t, ae.value += 1;
321
+ const I = c(!1);
322
+ function lt(t) {
323
+ I.value = t, le.value += 1;
331
324
  }
332
- function Te() {
325
+ function xe() {
333
326
  b.value.showTable = !b.value.showTable;
334
327
  }
335
- function Pe() {
328
+ function Ae() {
336
329
  b.value.showTooltip = !b.value.showTooltip;
337
330
  }
338
- const G = i(!1);
339
- function K() {
340
- G.value = !G.value;
331
+ const X = c(!1);
332
+ function ee() {
333
+ X.value = !X.value;
341
334
  }
342
- return Le({
343
- getData: De,
344
- generatePdf: ye,
345
- generateCsv: $e,
346
- generateImage: me,
347
- toggleTable: Te,
348
- toggleTooltip: Pe,
349
- toggleAnnotator: K
350
- }), (t, a) => (r(), n("div", {
351
- class: M(`vue-ui-radar ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
335
+ return Ve({
336
+ getData: Ze,
337
+ generatePdf: be,
338
+ generateCsv: Pe,
339
+ generateImage: ke,
340
+ toggleTable: xe,
341
+ toggleTooltip: Ae,
342
+ toggleAnnotator: ee
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"}`),
352
345
  ref_key: "radarChart",
353
- ref: L,
354
- id: `vue-ui-radar_${w.value}`,
355
- style: W(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
356
- onMouseenter: a[3] || (a[3] = () => c(ce)(!0)),
357
- onMouseleave: a[4] || (a[4] = () => c(ce)(!1))
346
+ ref: V,
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))
358
351
  }, [
359
- e.value.userOptions.buttons.annotator ? (r(), _($t, {
352
+ e.value.userOptions.buttons.annotator ? (r(), T(n(Be), {
360
353
  key: 0,
361
- svgRef: c(ve),
354
+ svgRef: n(he),
362
355
  backgroundColor: e.value.style.chart.backgroundColor,
363
356
  color: e.value.style.chart.color,
364
- active: G.value,
365
- onClose: K
357
+ active: X.value,
358
+ onClose: ee
366
359
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
367
- Ve.value ? (r(), n("div", {
360
+ Qe.value ? (r(), u("div", {
368
361
  key: 1,
369
362
  ref_key: "noTitle",
370
- ref: se,
363
+ ref: ue,
371
364
  class: "vue-data-ui-no-title-space",
372
365
  style: "height:36px; width: 100%;background:transparent"
373
366
  }, null, 512)) : d("", !0),
374
- e.value.style.chart.title.text ? (r(), n("div", {
367
+ e.value.style.chart.title.text ? (r(), u("div", {
375
368
  key: 2,
376
369
  ref_key: "chartTitle",
377
- ref: oe,
370
+ ref: re,
378
371
  style: "width:100%;background:transparent;padding-bottom:12px"
379
372
  }, [
380
- (r(), _(pt, {
381
- key: `title_${ne.value}`,
373
+ (r(), T(Ot, {
374
+ key: `title_${ie.value}`,
382
375
  config: {
383
376
  title: {
384
377
  cy: "radar-div-title",
@@ -391,43 +384,43 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
391
384
  }
392
385
  }, null, 8, ["config"]))
393
386
  ], 512)) : d("", !0),
394
- e.value.userOptions.show && R.value && (c(de) || c(q)) ? (r(), _(ft, {
387
+ e.value.userOptions.show && M.value && (n(pe) || n(Y)) ? (r(), T(n(Xe), {
395
388
  ref_key: "details",
396
- ref: Ue,
397
- key: `user_options_${ae.value}`,
389
+ ref: Ye,
390
+ key: `user_options_${le.value}`,
398
391
  backgroundColor: e.value.style.chart.backgroundColor,
399
392
  color: e.value.style.chart.color,
400
- isImaging: c(fe),
401
- isPrinting: c(ge),
402
- uid: w.value,
393
+ isImaging: n(me),
394
+ isPrinting: n(ye),
395
+ uid: _.value,
403
396
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
404
397
  hasPdf: e.value.userOptions.buttons.pdf,
405
398
  hasImg: e.value.userOptions.buttons.img,
406
399
  hasXls: e.value.userOptions.buttons.csv,
407
400
  hasTable: e.value.userOptions.buttons.table,
408
401
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
409
- isFullscreen: F.value,
402
+ isFullscreen: I.value,
410
403
  isTooltip: b.value.showTooltip,
411
404
  titles: { ...e.value.userOptions.buttonTitles },
412
- chartElement: L.value,
405
+ chartElement: V.value,
413
406
  position: e.value.userOptions.position,
414
407
  hasAnnotator: e.value.userOptions.buttons.annotator,
415
- isAnnotation: G.value,
416
- onToggleFullscreen: qe,
417
- onGeneratePdf: c(ye),
418
- onGenerateCsv: $e,
419
- onGenerateImage: c(me),
420
- onToggleTable: Te,
421
- onToggleTooltip: Pe,
422
- onToggleAnnotator: K,
423
- style: W({
424
- visibility: c(de) ? c(q) ? "visible" : "hidden" : "visible"
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"
425
418
  })
426
- }, Je({ _: 2 }, [
419
+ }, ut({ _: 2 }, [
427
420
  t.$slots.menuIcon ? {
428
421
  name: "menuIcon",
429
422
  fn: y(({ isOpen: o, color: l }) => [
430
- f(t.$slots, "menuIcon", N(S({ isOpen: o, color: l })), void 0, !0)
423
+ f(t.$slots, "menuIcon", R(L({ isOpen: o, color: l })), void 0, !0)
431
424
  ]),
432
425
  key: "0"
433
426
  } : void 0,
@@ -469,142 +462,142 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
469
462
  t.$slots.optionFullscreen ? {
470
463
  name: "optionFullscreen",
471
464
  fn: y(({ toggleFullscreen: o, isFullscreen: l }) => [
472
- f(t.$slots, "optionFullscreen", N(S({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
465
+ f(t.$slots, "optionFullscreen", R(L({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
473
466
  ]),
474
467
  key: "6"
475
468
  } : void 0,
476
469
  t.$slots.optionAnnotator ? {
477
470
  name: "optionAnnotator",
478
471
  fn: y(({ toggleAnnotator: o, isAnnotator: l }) => [
479
- f(t.$slots, "optionAnnotator", N(S({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
472
+ f(t.$slots, "optionAnnotator", R(L({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
480
473
  ]),
481
474
  key: "7"
482
475
  } : void 0
483
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),
484
- R.value ? (r(), n("svg", {
477
+ M.value ? (r(), u("svg", {
485
478
  key: 4,
486
479
  ref_key: "svgRef",
487
- ref: ve,
488
- xmlns: c(st),
489
- class: M({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
490
- viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
491
- style: W(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
480
+ ref: he,
481
+ xmlns: n(yt),
482
+ class: E({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
483
+ 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}`)
492
485
  }, [
493
- ee(_t),
494
- t.$slots["chart-background"] ? (r(), n("foreignObject", {
486
+ ae(n(je)),
487
+ t.$slots["chart-background"] ? (r(), u("foreignObject", {
495
488
  key: 0,
496
489
  x: 0,
497
490
  y: 0,
498
- width: u.value.width <= 0 ? 10 : u.value.width,
499
- height: u.value.height <= 0 ? 10 : u.value.height,
491
+ width: i.value.width <= 0 ? 10 : i.value.width,
492
+ height: i.value.height <= 0 ? 10 : i.value.height,
500
493
  style: {
501
494
  pointerEvents: "none"
502
495
  }
503
496
  }, [
504
497
  f(t.$slots, "chart-background", {}, void 0, !0)
505
- ], 8, Ft)) : d("", !0),
506
- $("defs", null, [
507
- (r(!0), n(T, null, P(m.value, (o, l) => (r(), n("radialGradient", {
498
+ ], 8, It)) : d("", !0),
499
+ P("defs", null, [
500
+ (r(!0), u(x, null, A(m.value, (o, l) => (r(), u("radialGradient", {
508
501
  cx: "50%",
509
502
  cy: "50%",
510
503
  r: "50%",
511
504
  fx: "50%",
512
505
  fy: "50%",
513
- id: `radar_gradient_${w.value}_${l}`
506
+ id: `radar_gradient_${_.value}_${l}`
514
507
  }, [
515
- $("stop", {
508
+ P("stop", {
516
509
  offset: "0%",
517
- "stop-color": c(te)(c(nt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
518
- }, null, 8, St),
519
- $("stop", {
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", {
520
513
  offset: "100%",
521
- "stop-color": c(te)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
522
- }, null, 8, It)
523
- ], 8, Nt))), 256))
514
+ "stop-color": n(oe)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
515
+ }, null, 8, zt)
516
+ ], 8, Rt))), 256))
524
517
  ]),
525
- e.value.style.chart.layout.grid.show ? (r(), n("g", Rt, [
526
- (r(!0), n(T, null, P(C.value, (o) => (r(), n("line", {
527
- x1: u.value.width / 2,
528
- y1: u.value.height / 2,
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", {
520
+ x1: i.value.width / 2,
521
+ y1: i.value.height / 2,
529
522
  x2: o.x,
530
523
  y2: o.y,
531
524
  stroke: e.value.style.chart.layout.grid.stroke,
532
525
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
533
- }, null, 8, Lt))), 256)),
534
- e.value.style.chart.layout.grid.graduations > 0 ? (r(), n("g", zt, [
535
- (r(!0), n(T, null, P(Ge.value, (o) => (r(), n("path", {
536
- d: c(Fe)({
537
- plot: { x: u.value.width / 2, y: u.value.height / 2 },
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)({
530
+ plot: { x: i.value.width / 2, y: i.value.height / 2 },
538
531
  radius: o,
539
- sides: we.value,
532
+ sides: _e.value,
540
533
  rotation: 0
541
534
  }).path,
542
535
  fill: "none",
543
536
  stroke: e.value.style.chart.layout.grid.stroke,
544
537
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
545
- }, null, 8, Mt))), 256))
538
+ }, null, 8, Et))), 256))
546
539
  ])) : d("", !0)
547
540
  ])) : d("", !0),
548
- $("path", {
549
- d: _e.value.path,
541
+ P("path", {
542
+ d: Te.value.path,
550
543
  fill: "none",
551
544
  stroke: e.value.style.chart.layout.outerPolygon.stroke,
552
545
  "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
553
546
  "stroke-linejoin": "round",
554
547
  "stroke-linecap": "round"
555
- }, null, 8, Ut),
556
- e.value.style.chart.layout.labels.dataLabels.show ? (r(), n("g", Vt, [
557
- (r(!0), n(T, null, P(C.value, (o, l) => (r(), n("text", {
558
- x: Y(o).x,
559
- y: Y(o).y,
560
- "text-anchor": Y(o).anchor,
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,
561
554
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
562
555
  fill: e.value.style.chart.layout.labels.dataLabels.color,
563
- onMouseenter: (s) => je(o, l),
556
+ onMouseenter: (s) => ot(o, l),
564
557
  onMouseleave: a[0] || (a[0] = (s) => {
565
- X.value = !1, D.value = null;
558
+ q.value = !1, W.value = null;
566
559
  })
567
- }, U(o.name), 41, Et))), 256))
560
+ }, B(o.name), 41, Gt))), 256))
568
561
  ])) : d("", !0),
569
- (r(!0), n(T, null, P(m.value, (o, l) => (r(), n("g", null, [
570
- $("g", null, [
571
- e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), n("polygon", {
562
+ (r(!0), u(x, null, A(m.value, (o, l) => (r(), u("g", null, [
563
+ P("g", null, [
564
+ e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
572
565
  key: 0,
573
- points: c(Se)(C.value.map((s) => s.plots[l]), !1, !0),
566
+ points: n(Le)(w.value.map((s) => s.plots[l]), !1, !0),
574
567
  stroke: e.value.style.chart.backgroundColor,
575
568
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
576
569
  fill: "none",
577
- class: M({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": O.value && z.value === l && e.value.useCssAnimation })
578
- }, null, 10, Bt)) : d("", !0),
579
- e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), n("polygon", {
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),
572
+ e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
580
573
  key: 1,
581
- points: c(Se)(C.value.map((s) => s.plots[l]), !1, !0),
574
+ points: n(Le)(w.value.map((s) => s.plots[l]), !1, !0),
582
575
  stroke: o.color,
583
576
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
584
- fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${w.value}_${l})` : c(te)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
585
- class: M({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": O.value && z.value === l && e.value.useCssAnimation })
586
- }, null, 10, Dt)) : d("", !0)
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)
587
580
  ])
588
581
  ]))), 256)),
589
- e.value.style.chart.layout.plots.show ? (r(), n("g", Gt, [
590
- (r(!0), n(T, null, P(C.value, (o, l) => (r(), n("g", null, [
591
- (r(!0), n(T, null, P(o.plots, (s, h) => (r(), n("circle", {
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", {
592
585
  cx: s.x,
593
586
  cy: s.y,
594
- fill: v.value.includes(h) ? "transparent" : m.value[h].color,
595
- r: D.value !== null && D.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
596
- stroke: v.value.includes(h) ? "transparent" : e.value.style.chart.backgroundColor,
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,
597
590
  "stroke-width": 0.5,
598
- class: M({ "animated-out": v.value.includes(h) && e.value.useCssAnimation, "animated-in": O.value && z.value === h && e.value.useCssAnimation })
599
- }, null, 10, Wt))), 256))
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))
600
593
  ]))), 256))
601
594
  ])) : d("", !0),
602
- f(t.$slots, "svg", { svg: u.value }, void 0, !0)
603
- ], 14, At)) : d("", !0),
604
- t.$slots.watermark ? (r(), n("div", Xt, [
605
- f(t.$slots, "watermark", N(S({ isPrinting: c(ge) || c(fe) })), void 0, !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)
606
599
  ])) : d("", !0),
607
- R.value ? d("", !0) : (r(), _(Ct, {
600
+ M.value ? d("", !0) : (r(), T(n(Ge), {
608
601
  key: 6,
609
602
  config: {
610
603
  type: "radar",
@@ -621,42 +614,42 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
621
614
  }
622
615
  }
623
616
  }, null, 8, ["config"])),
624
- $("div", {
617
+ P("div", {
625
618
  ref_key: "chartLegend",
626
- ref: le
619
+ ref: se
627
620
  }, [
628
- e.value.style.chart.legend.show ? (r(), _(bt, {
629
- key: `legend_${ie.value}`,
630
- legendSet: A.value,
631
- config: Xe.value,
632
- onClickMarker: a[1] || (a[1] = ({ i: o }) => ke(o))
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))
633
626
  }, {
634
627
  item: y(({ legend: o, index: l }) => [
635
- $("div", {
628
+ P("div", {
636
629
  onClick: (s) => o.segregate(),
637
- style: W(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
638
- }, U(o.name) + ": " + U(c(V)({
630
+ style: j(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
631
+ }, B(o.name) + ": " + B(n(D)({
639
632
  v: o.totalProportion * 100,
640
633
  s: "%",
641
634
  r: e.value.style.chart.legend.roundingPercentage
642
- })), 13, jt)
635
+ })), 13, Yt)
643
636
  ]),
644
637
  _: 1
645
638
  }, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
646
639
  key: 1,
647
- legend: A.value
640
+ legend: S.value
648
641
  }, void 0, !0)
649
642
  ], 512),
650
- t.$slots.source ? (r(), n("div", {
643
+ t.$slots.source ? (r(), u("div", {
651
644
  key: 7,
652
645
  ref_key: "source",
653
- ref: re,
646
+ ref: ne,
654
647
  dir: "auto"
655
648
  }, [
656
649
  f(t.$slots, "source", {}, void 0, !0)
657
650
  ], 512)) : d("", !0),
658
- ee(yt, {
659
- show: b.value.showTooltip && X.value,
651
+ ae(n(We), {
652
+ show: b.value.showTooltip && q.value,
660
653
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
661
654
  color: e.value.style.chart.tooltip.color,
662
655
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -666,27 +659,27 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
666
659
  fontSize: e.value.style.chart.tooltip.fontSize,
667
660
  position: e.value.style.chart.tooltip.position,
668
661
  offsetY: e.value.style.chart.tooltip.offsetY,
669
- parent: L.value,
670
- content: j.value,
671
- isFullscreen: F.value,
662
+ parent: V.value,
663
+ content: H.value,
664
+ isFullscreen: I.value,
672
665
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
673
666
  }, {
674
667
  "tooltip-before": y(() => [
675
- f(t.$slots, "tooltip-before", N(S({ ...J.value })), void 0, !0)
668
+ f(t.$slots, "tooltip-before", R(L({ ...Z.value })), void 0, !0)
676
669
  ]),
677
670
  "tooltip-after": y(() => [
678
- ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), n("div", qt, [
679
- ee(mt, {
680
- dataset: Q.value,
681
- config: Ee.value,
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,
682
675
  backgroundOpacity: 0
683
676
  }, null, 8, ["dataset", "config"])
684
677
  ])),
685
- f(t.$slots, "tooltip-after", N(S({ ...J.value })), void 0, !0)
678
+ f(t.$slots, "tooltip-after", R(L({ ...Z.value })), void 0, !0)
686
679
  ]),
687
680
  _: 3
688
681
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
689
- R.value ? (r(), _(wt, {
682
+ M.value ? (r(), T(n(De), {
690
683
  key: 8,
691
684
  hideDetails: "",
692
685
  config: {
@@ -703,29 +696,29 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
703
696
  }
704
697
  }, {
705
698
  content: y(() => [
706
- (r(), _(kt, {
707
- key: `table_${ue.value}`,
708
- colNames: B.value.colNames,
709
- head: B.value.head,
710
- body: B.value.body,
711
- config: B.value.config,
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,
712
705
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
713
706
  onClose: a[2] || (a[2] = (o) => b.value.showTable = !1)
714
707
  }, {
715
708
  th: y(({ th: o }) => [
716
- xe(U(o.name), 1)
709
+ Fe(B(o.name), 1)
717
710
  ]),
718
711
  td: y(({ td: o }) => [
719
- xe(U(o), 1)
712
+ Fe(B(o), 1)
720
713
  ]),
721
714
  _: 1
722
715
  }, 8, ["colNames", "head", "body", "config", "title"]))
723
716
  ]),
724
717
  _: 1
725
718
  }, 8, ["config"])) : d("", !0)
726
- ], 46, Ot));
719
+ ], 46, Nt));
727
720
  }
728
- }, ha = /* @__PURE__ */ xt(Ht, [["__scopeId", "data-v-b6116edd"]]);
721
+ }, ia = /* @__PURE__ */ Ft(Jt, [["__scopeId", "data-v-990e4bf4"]]);
729
722
  export {
730
- ha as default
723
+ ia as default
731
724
  };