vue-data-ui 3.0.0-next.0 → 3.0.0-next.2

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 (102) hide show
  1. package/README.md +108 -67
  2. package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
  3. package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
  4. package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
  5. package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
  6. package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
  7. package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
  8. package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
  9. package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
  10. package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
  11. package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
  12. package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
  13. package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
  14. package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
  15. package/dist/Tooltip-NwATo4ZJ.js +157 -0
  16. package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
  17. package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
  18. package/dist/img-ku4zevVD.js +33 -0
  19. package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
  20. package/dist/pdf-CguiIsUc.js +58 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1051 -217
  23. package/dist/types/vue-data-ui.d.ts +1051 -217
  24. package/dist/useLoading-Bt5Doa8m.js +28 -0
  25. package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
  26. package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
  27. package/dist/vue-data-ui-DQef_oFO.js +314 -0
  28. package/dist/vue-data-ui.js +13 -13
  29. package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
  30. package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
  32. package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
  33. package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
  34. package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
  35. package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
  36. package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
  37. package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
  38. package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
  39. package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
  40. package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
  41. package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
  42. package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
  43. package/dist/vue-ui-donut-tECBFvud.js +1532 -0
  44. package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
  45. package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
  46. package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
  47. package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
  48. package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
  49. package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
  50. package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
  51. package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
  52. package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
  54. package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
  55. package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
  56. package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
  57. package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
  58. package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
  59. package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
  60. package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
  61. package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
  62. package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
  64. package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
  65. package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
  66. package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
  67. package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
  68. package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
  70. package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
  71. package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
  72. package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
  73. package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
  74. package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
  75. package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
  76. package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
  77. package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
  79. package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
  80. package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
  81. package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
  82. package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
  83. package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
  84. package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
  85. package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
  86. package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
  87. package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
  88. package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
  89. package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
  90. package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
  91. package/package.json +2 -2
  92. package/dist/Tooltip-hVZUY_s5.js +0 -149
  93. package/dist/img-BeMVTwmF.js +0 -20
  94. package/dist/pdf-DPxOdzfi.js +0 -51
  95. package/dist/useMouse-AicQS8Vf.js +0 -13
  96. package/dist/vue-data-ui-nceqWRts.js +0 -301
  97. package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
  98. package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
  99. package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
  100. package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
  101. package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
  102. package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
@@ -1,20 +1,21 @@
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 Se, 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 Ne, d as Ie, R as Re, v as yt, i as Le, f as G, X as mt, s as le, w as bt, S as ze, q as kt, r as Ct, x as wt, y as $t } from "./index-DMqAxz7R.js";
3
- import { t as _t, u as Tt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Me } from "./useNestedProp-YgN3FV_8.js";
5
- import { u as Pt } from "./usePrinter-COkTjv6C.js";
6
- import { u as xt } from "./useUserOptionState-BIvW1Kz7.js";
1
+ import { defineAsyncComponent as _, computed as p, ref as c, watch as nt, shallowRef as Se, onMounted as ut, onBeforeUnmount as it, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as q, normalizeClass as B, createBlock as x, createCommentVNode as d, createElementVNode as O, createVNode as oe, createSlots as ct, withCtx as f, renderSlot as g, normalizeProps as z, guardReactiveProps as M, Fragment as A, renderList as F, toDisplayString as D, createTextVNode as Ne, nextTick as dt } from "vue";
2
+ import { u as vt, c as pt, t as ht, p as S, a as gt, o as ft, e as V, b as yt, g as Ie, d as Re, R as Le, v as mt, i as ze, f as G, X as bt, s as le, w as kt, S as Me, q as Ct, r as wt, x as $t, y as _t } from "./index-BzfnuLnw.js";
3
+ import { t as Tt, u as Pt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ve } from "./useNestedProp-DorElw91.js";
5
+ import { u as xt } from "./usePrinter-C9qkgv0r.js";
6
+ import { u as Ot } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as At } from "./useChartAccessibility-9icAAmYg.js";
8
- import Ot from "./Legend-Q4bOb-Nf.js";
9
- import Ft from "./Title-D29apS4l.js";
10
- import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Nt = ["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 = {
8
+ import Ft from "./Legend-CYbP3Kfg.js";
9
+ import St from "./Title-pVYRzQXY.js";
10
+ import Nt from "./img-ku4zevVD.js";
11
+ import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["id"], Vt = ["stop-color"], Ut = ["stop-color"], Et = { key: 1 }, Bt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Dt = { key: 0 }, Gt = ["d", "stroke", "stroke-width"], Wt = ["d", "stroke", "stroke-width"], Xt = { key: 2 }, jt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], qt = ["points", "stroke", "stroke-width"], Ht = ["points", "stroke", "stroke-width", "fill"], Yt = { key: 3 }, Jt = ["cx", "cy", "fill", "r", "stroke"], Kt = {
12
13
  key: 5,
13
14
  class: "vue-data-ui-watermark"
14
- }, Jt = ["onClick"], Kt = {
15
+ }, Qt = ["onClick"], Zt = {
15
16
  key: 0,
16
17
  style: { "max-width": "200px", margin: "0 auto" }
17
- }, Qt = {
18
+ }, ea = {
18
19
  __name: "vue-ui-radar",
19
20
  props: {
20
21
  config: {
@@ -31,36 +32,36 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
31
32
  }
32
33
  },
33
34
  emits: ["selectLegend"],
34
- setup(Ve, { expose: Ue, emit: Ee }) {
35
- const Be = $(() => import("./DataTable-BBbOgI-a.js")), De = $(() => import("./PenAndPaper-DhBJsnob.js")), Ge = $(() => import("./vue-ui-accordion-P6eFHGQp.js")), We = $(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), Xe = $(() => import("./Tooltip-hVZUY_s5.js")), je = $(() => import("./UserOptions-Bdit7AWO.js")), qe = $(() => import("./PackageVersion-D0VPY8-5.js")), He = $(() => import("./vue-ui-sparkbar-DWufRGcN.js")), { vue_ui_radar: Ye } = dt(), h = Ve, V = p(() => !!h.dataset && Object.keys(h.dataset).length), _ = c(vt()), Je = 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({
35
+ setup(Ue, { expose: Ee, emit: Be }) {
36
+ const De = _(() => import("./DataTable-CgL0Rz0x.js")), Ge = _(() => import("./PenAndPaper-Cx1-5zdD.js")), We = _(() => import("./vue-ui-accordion-DgZK-qDz.js")), Xe = _(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), je = _(() => import("./Tooltip-NwATo4ZJ.js")), qe = _(() => import("./UserOptions-DAsRxxrf.js")), He = _(() => import("./PackageVersion-CAkNkiIG.js")), Ye = _(() => import("./vue-ui-sparkbar-CgqoyBOm.js")), { vue_ui_radar: Je } = vt(), h = Ue, U = p(() => !!h.dataset && Object.keys(h.dataset).length), T = c(pt()), Ke = c(null), H = c(!1), Y = c(""), re = c(0), C = 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
37
  get: () => fe(),
37
38
  set: (t) => t
38
- }), { userOptionsVisible: J, setUserOptionsVisibility: pe, keepUserOptionState: he } = xt({ config: e.value }), { svgRef: ge } = At({ config: e.value.style.chart.title });
39
+ }), { userOptionsVisible: J, setUserOptionsVisibility: pe, keepUserOptionState: he } = Ot({ config: e.value }), { svgRef: ge } = At({ config: e.value.style.chart.title });
39
40
  function fe() {
40
- const t = Me({
41
+ const t = Ve({
41
42
  userConfig: h.config,
42
- defaultConfig: Ye
43
+ defaultConfig: Je
43
44
  });
44
45
  return t.theme ? {
45
- ...Me({
46
- userConfig: ht.vue_ui_radar[t.theme] || h.config,
46
+ ...Ve({
47
+ userConfig: gt.vue_ui_radar[t.theme] || h.config,
47
48
  defaultConfig: t
48
49
  }),
49
- customPalette: pt[t.theme] || F
50
+ customPalette: ht[t.theme] || S
50
51
  } : t;
51
52
  }
52
- st(() => h.config, (t) => {
53
- e.value = fe(), J.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;
53
+ nt(() => h.config, (t) => {
54
+ e.value = fe(), J.value = !e.value.userOptions.showOnChartHover, ye(), ce.value += 1, de.value += 1, ve.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;
54
55
  }, { deep: !0 });
55
- const C = Fe(null), S = Fe(null);
56
+ const w = Se(null), N = Se(null);
56
57
  function ye() {
57
- if (gt(h.dataset) && M({
58
+ if (ft(h.dataset) && V({
58
59
  componentName: "VueUiRadar",
59
60
  type: "dataset"
60
61
  }), e.value.responsive) {
61
- const t = _t(() => {
62
- const { width: a, height: o } = Tt({
63
- chart: U.value,
62
+ const t = Tt(() => {
63
+ const { width: a, height: o } = Pt({
64
+ chart: C.value,
64
65
  title: e.value.style.chart.title.text ? se.value : null,
65
66
  legend: e.value.style.chart.legend.show ? ne.value : null,
66
67
  source: ue.value,
@@ -70,25 +71,25 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
70
71
  i.value.width = a, i.value.height = o;
71
72
  });
72
73
  });
73
- C.value && (S.value && C.value.unobserve(S.value), C.value.disconnect()), C.value = new ResizeObserver(t), S.value = U.value.parentNode, C.value.observe(S.value);
74
+ w.value && (N.value && w.value.unobserve(N.value), w.value.disconnect()), w.value = new ResizeObserver(t), N.value = C.value.parentNode, w.value.observe(N.value);
74
75
  }
75
76
  }
76
- nt(() => {
77
+ ut(() => {
77
78
  ye();
78
- }), ut(() => {
79
- C.value && (S.value && C.value.unobserve(S.value), C.value.disconnect());
79
+ }), it(() => {
80
+ w.value && (N.value && w.value.unobserve(N.value), w.value.disconnect());
80
81
  });
81
- const { isPrinting: me, isImaging: be, generatePdf: ke, generateImage: Ce } = Pt({
82
- elementId: `vue-ui-radar_${_.value}`,
82
+ const { isPrinting: me, isImaging: be, generatePdf: ke, generateImage: Ce } = xt({
83
+ elementId: `vue-ui-radar_${T.value}`,
83
84
  fileName: e.value.style.chart.title.text || "vue-ui-radar",
84
85
  options: e.value.userOptions.print
85
- }), Ke = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), we = p(() => ft(e.value.customPalette)), m = c({
86
+ }), Qe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), we = p(() => yt(e.value.customPalette)), b = c({
86
87
  dataLabels: {
87
88
  show: e.value.style.chart.layout.labels.dataLabels.show
88
89
  },
89
90
  showTable: e.value.table.show,
90
91
  showTooltip: e.value.style.chart.tooltip.show
91
- }), Qe = p(() => ({
92
+ }), Ze = p(() => ({
92
93
  style: {
93
94
  backgroundColor: "#FFFFFF00",
94
95
  animation: {
@@ -109,55 +110,55 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
109
110
  })), i = c({
110
111
  height: 312,
111
112
  width: 512
112
- }), Ze = Ee, v = c([]), E = c(null), N = c(!1);
113
+ }), et = Be, v = c([]), E = c(null), I = c(!1);
113
114
  function $e(t) {
114
- N.value = !0, v.value.includes(t) ? (E.value = t, v.value = v.value.filter((a) => a !== t), setTimeout(() => {
115
- N.value = !1, E.value = null;
115
+ I.value = !0, v.value.includes(t) ? (E.value = t, v.value = v.value.filter((a) => a !== t), setTimeout(() => {
116
+ I.value = !1, E.value = null;
116
117
  }, 500)) : (v.value.push(t), setTimeout(() => {
117
- N.value = !1;
118
- }, 500)), Ze("selectLegend", I.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
118
+ I.value = !1;
119
+ }, 500)), et("selectLegend", R.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
119
120
  name: a.name,
120
121
  color: a.color,
121
122
  proportion: a.totalProportion
122
123
  })));
123
124
  }
124
- function et() {
125
- return I.value.map((t) => ({
125
+ function tt() {
126
+ return R.value.map((t) => ({
126
127
  name: t.name,
127
128
  color: t.color,
128
129
  proportion: t.totalProportion
129
130
  }));
130
131
  }
131
- const y = p(() => [null, void 0].includes(h.dataset.categories) ? (M({
132
+ const y = p(() => [null, void 0].includes(h.dataset.categories) ? (V({
132
133
  componentName: "VueUiRadar",
133
134
  type: "datasetAttribute",
134
135
  property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
135
- }), []) : (h.dataset.categories.length === 0 ? M({
136
+ }), []) : (h.dataset.categories.length === 0 ? V({
136
137
  componentName: "VueUiRadar",
137
138
  type: "datasetAttributeEmpty",
138
139
  property: "categories"
139
140
  }) : h.dataset.categories.forEach((t, a) => {
140
- Ne({
141
+ Ie({
141
142
  datasetObject: t,
142
143
  requiredAttributes: ["name"]
143
144
  }).forEach((o) => {
144
- M({
145
+ V({
145
146
  componentName: "VueUiRadar",
146
147
  type: "datasetAttribute",
147
148
  property: `category.${o} at index ${a}`,
148
149
  index: a
149
150
  });
150
151
  });
151
- }), [null, void 0].includes(h.dataset.series) ? M({
152
+ }), [null, void 0].includes(h.dataset.series) ? V({
152
153
  componentName: "VueUiRadar",
153
154
  type: "datasetAttribute",
154
155
  property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
155
156
  }) : h.dataset.series.forEach((t, a) => {
156
- Ne({
157
+ Ie({
157
158
  datasetObject: t,
158
159
  requiredAttributes: ["name", "values", "target"]
159
160
  }).forEach((o) => {
160
- M({
161
+ V({
161
162
  componentName: "VueUiRadar",
162
163
  type: "datasetSerieAttribute",
163
164
  key: "series",
@@ -167,27 +168,27 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
167
168
  });
168
169
  }), h.dataset.categories.map((t, a) => ({
169
170
  name: t.name,
170
- categoryId: `radar_category_${_.value}_${a}`,
171
- color: Ie(t.color) || we.value[a] || F[a] || F[a % F.length],
171
+ categoryId: `radar_category_${T.value}_${a}`,
172
+ color: Re(t.color) || we.value[a] || S[a] || S[a % S.length],
172
173
  prefix: t.prefix ?? "",
173
174
  suffix: t.suffix ?? ""
174
- })))), k = p(() => V.value ? h.dataset.series.map((t, a) => ({
175
+ })))), k = p(() => U.value ? h.dataset.series.map((t, a) => ({
175
176
  ...t,
176
- color: Ie(t.color) || we.value[a] || F[a] || F[a % F.length],
177
- serieId: `radar_serie_${_.value}_${a}`,
177
+ color: Re(t.color) || we.value[a] || S[a] || S[a % S.length],
178
+ serieId: `radar_serie_${T.value}_${a}`,
178
179
  formatter: t.formatter || null
179
- })) : []), _e = p(() => Math.max(...k.value.flatMap((t) => t.values))), Te = p(() => k.value.length), K = p(() => Math.min(i.value.width, i.value.height) / 3), Pe = p(() => Re({
180
+ })) : []), _e = p(() => Math.max(...k.value.flatMap((t) => t.values))), Te = p(() => k.value.length), K = p(() => Math.min(i.value.width, i.value.height) / 3), Pe = p(() => Le({
180
181
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
181
182
  radius: K.value,
182
183
  sides: Te.value,
183
184
  rotation: 0
184
- })), tt = p(() => {
185
+ })), at = p(() => {
185
186
  const t = [];
186
187
  for (let a = 0; a < K.value; a += K.value / e.value.style.chart.layout.grid.graduations)
187
188
  t.push(a);
188
189
  return t;
189
- }), w = p(() => Pe.value.coordinates.map((t, a) => {
190
- const o = k.value[a].values.map((l) => at({
190
+ }), $ = p(() => Pe.value.coordinates.map((t, a) => {
191
+ const o = k.value[a].values.map((l) => ot({
191
192
  centerX: i.value.width / 2,
192
193
  centerY: i.value.height / 2,
193
194
  apexX: t.x,
@@ -204,23 +205,23 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
204
205
  let o = "middle";
205
206
  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
207
  }
207
- function at({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
208
+ function ot({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
208
209
  return {
209
210
  x: t + (o - t) * s,
210
211
  y: a + (l - a) * s
211
212
  };
212
213
  }
213
- const I = p(() => {
214
+ const R = p(() => {
214
215
  const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || _e.value)));
215
216
  return y.value.map((a, o) => ({
216
217
  ...a,
217
- totalProportion: yt(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
218
+ totalProportion: mt(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
218
219
  shape: "circle",
219
220
  opacity: v.value.includes(o) ? 0.5 : 1,
220
221
  segregate: () => $e(o),
221
222
  isSegregated: v.value.includes(o)
222
223
  }));
223
- }), ot = p(() => ({
224
+ }), lt = p(() => ({
224
225
  cy: "radar-div-legend",
225
226
  backgroundColor: e.value.style.chart.legend.backgroundColor,
226
227
  color: e.value.style.chart.legend.color,
@@ -231,10 +232,10 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
231
232
  const t = [
232
233
  { name: e.value.translations.datapoint, color: "" },
233
234
  { name: e.value.translations.target, color: "" },
234
- ...I.value
235
+ ...R.value
235
236
  ], a = h.dataset.series.map((l) => [
236
237
  l.name,
237
- Le(
238
+ ze(
238
239
  l.formatter,
239
240
  l.target,
240
241
  G({
@@ -244,10 +245,10 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
244
245
  r: e.value.table.td.roundingValue
245
246
  })
246
247
  ),
247
- ...l.values.map((s, b) => `${Le(
248
+ ...l.values.map((s, m) => `${ze(
248
249
  l.formatter,
249
250
  s,
250
- G({ p: y.value[b].prefix, v: s, s: y.value[b].suffix, r: e.value.table.td.roundingValue })
251
+ G({ p: y.value[m].prefix, v: s, s: y.value[m].suffix, r: e.value.table.td.roundingValue })
251
252
  )} (${isNaN(s / l.target) ? "" : G({
252
253
  v: s / l.target * 100,
253
254
  s: "%",
@@ -268,7 +269,7 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
268
269
  };
269
270
  return { head: t, body: a, config: o, colNames: t };
270
271
  }), X = c(null), Z = c([]), ee = c(null);
271
- function lt(t, a) {
272
+ function rt(t, a) {
272
273
  Z.value = [], X.value = a, H.value = !0;
273
274
  let o = "";
274
275
  ee.value = {
@@ -277,21 +278,21 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
277
278
  series: {
278
279
  categories: y.value,
279
280
  datapoints: k.value,
280
- radar: w.value
281
+ radar: $.value
281
282
  },
282
283
  config: e.value
283
284
  };
284
285
  const l = e.value.style.chart.tooltip.customFormat;
285
- if (wt(l) && $t(() => l({
286
+ if ($t(l) && _t(() => l({
286
287
  seriesIndex: a,
287
288
  datapoint: t,
288
- series: { categories: y.value, datapoints: k.value, radar: w.value },
289
+ series: { categories: y.value, datapoints: k.value, radar: $.value },
289
290
  config: e.value
290
291
  })))
291
292
  Y.value = l({
292
293
  seriesIndex: a,
293
294
  datapoint: t,
294
- series: { categories: y.value, datapoints: k.value, radar: w.value },
295
+ series: { categories: y.value, datapoints: k.value, radar: $.value },
295
296
  config: e.value
296
297
  });
297
298
  else {
@@ -310,46 +311,60 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
310
311
  }
311
312
  }
312
313
  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) => [
314
+ dt(() => {
315
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...R.value.flatMap((P) => [[P.name], ["%"]])], l = h.dataset.series.map((P, ta) => [P.name, P.target, ...P.values.flatMap((ae) => [
315
316
  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" });
317
+ isNaN(ae / P.target) ? "" : ae / P.target * 100
318
+ ])]), s = a.concat([o]).concat(l), m = Ct(s);
319
+ t ? t(m) : wt({ csvContent: m, title: e.value.style.chart.title.text || "vue-ui-radar" });
319
320
  });
320
321
  }
321
- const R = c(!1);
322
- function rt(t) {
323
- R.value = t, re.value += 1;
322
+ const L = c(!1);
323
+ function Oe(t) {
324
+ L.value = t, re.value += 1;
324
325
  }
325
326
  function Ae() {
326
- m.value.showTable = !m.value.showTable;
327
+ b.value.showTable = !b.value.showTable;
327
328
  }
328
- function Oe() {
329
- m.value.showTooltip = !m.value.showTooltip;
329
+ function Fe() {
330
+ b.value.showTooltip = !b.value.showTooltip;
330
331
  }
331
332
  const j = c(!1);
332
333
  function te() {
333
334
  j.value = !j.value;
334
335
  }
335
- return Ue({
336
- getData: et,
336
+ async function st({ scale: t = 2 } = {}) {
337
+ if (!C.value) return;
338
+ const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri: s, base64: m } = await Nt({ domElement: C.value, base64: !0, img: !0, scale: t });
339
+ return {
340
+ imageUri: s,
341
+ base64: m,
342
+ title: e.value.style.chart.title.text,
343
+ width: a,
344
+ height: o,
345
+ aspectRatio: l
346
+ };
347
+ }
348
+ return Ee({
349
+ getData: tt,
350
+ getImage: st,
337
351
  generatePdf: ke,
338
352
  generateCsv: xe,
339
353
  generateImage: Ce,
340
354
  toggleTable: Ae,
341
- toggleTooltip: Oe,
342
- toggleAnnotator: te
355
+ toggleTooltip: Fe,
356
+ toggleAnnotator: te,
357
+ toggleFullscreen: Oe
343
358
  }), (t, a) => (r(), u("div", {
344
- class: B(`vue-ui-radar ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
359
+ class: B(`vue-ui-radar ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
345
360
  ref_key: "radarChart",
346
- ref: U,
347
- id: `vue-ui-radar_${_.value}`,
361
+ ref: C,
362
+ id: `vue-ui-radar_${T.value}`,
348
363
  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
364
  onMouseenter: a[3] || (a[3] = () => n(pe)(!0)),
350
365
  onMouseleave: a[4] || (a[4] = () => n(pe)(!1))
351
366
  }, [
352
- e.value.userOptions.buttons.annotator ? (r(), P(n(De), {
367
+ e.value.userOptions.buttons.annotator ? (r(), x(n(Ge), {
353
368
  key: 0,
354
369
  svgRef: n(ge),
355
370
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -357,7 +372,7 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
357
372
  active: j.value,
358
373
  onClose: te
359
374
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
360
- Ke.value ? (r(), u("div", {
375
+ Qe.value ? (r(), u("div", {
361
376
  key: 1,
362
377
  ref_key: "noTitle",
363
378
  ref: ie,
@@ -370,7 +385,7 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
370
385
  ref: se,
371
386
  style: "width:100%;background:transparent;padding-bottom:12px"
372
387
  }, [
373
- (r(), P(Ft, {
388
+ (r(), x(St, {
374
389
  key: `title_${ce.value}`,
375
390
  config: {
376
391
  title: {
@@ -384,44 +399,45 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
384
399
  }
385
400
  }, null, 8, ["config"]))
386
401
  ], 512)) : d("", !0),
387
- e.value.userOptions.show && V.value && (n(he) || n(J)) ? (r(), P(n(je), {
402
+ e.value.userOptions.show && U.value && (n(he) || n(J)) ? (r(), x(n(qe), {
388
403
  ref_key: "details",
389
- ref: Je,
404
+ ref: Ke,
390
405
  key: `user_options_${re.value}`,
391
406
  backgroundColor: e.value.style.chart.backgroundColor,
392
407
  color: e.value.style.chart.color,
393
408
  isImaging: n(be),
394
409
  isPrinting: n(me),
395
- uid: _.value,
410
+ uid: T.value,
396
411
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
397
412
  hasPdf: e.value.userOptions.buttons.pdf,
398
413
  hasImg: e.value.userOptions.buttons.img,
399
414
  hasXls: e.value.userOptions.buttons.csv,
400
415
  hasTable: e.value.userOptions.buttons.table,
401
416
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
402
- isFullscreen: R.value,
403
- isTooltip: m.value.showTooltip,
417
+ isFullscreen: L.value,
418
+ isTooltip: b.value.showTooltip,
404
419
  titles: { ...e.value.userOptions.buttonTitles },
405
- chartElement: U.value,
420
+ chartElement: C.value,
406
421
  position: e.value.userOptions.position,
407
422
  hasAnnotator: e.value.userOptions.buttons.annotator,
408
423
  isAnnotation: j.value,
409
424
  callbacks: e.value.userOptions.callbacks,
410
- onToggleFullscreen: rt,
425
+ printScale: e.value.userOptions.print.scale,
426
+ onToggleFullscreen: Oe,
411
427
  onGeneratePdf: n(ke),
412
428
  onGenerateCsv: xe,
413
429
  onGenerateImage: n(Ce),
414
430
  onToggleTable: Ae,
415
- onToggleTooltip: Oe,
431
+ onToggleTooltip: Fe,
416
432
  onToggleAnnotator: te,
417
433
  style: q({
418
434
  visibility: n(he) ? n(J) ? "visible" : "hidden" : "visible"
419
435
  })
420
- }, it({ _: 2 }, [
436
+ }, ct({ _: 2 }, [
421
437
  t.$slots.menuIcon ? {
422
438
  name: "menuIcon",
423
439
  fn: f(({ isOpen: o, color: l }) => [
424
- g(t.$slots, "menuIcon", L(z({ isOpen: o, color: l })), void 0, !0)
440
+ g(t.$slots, "menuIcon", z(M({ isOpen: o, color: l })), void 0, !0)
425
441
  ]),
426
442
  key: "0"
427
443
  } : void 0,
@@ -463,28 +479,28 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
463
479
  t.$slots.optionFullscreen ? {
464
480
  name: "optionFullscreen",
465
481
  fn: f(({ toggleFullscreen: o, isFullscreen: l }) => [
466
- g(t.$slots, "optionFullscreen", L(z({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
482
+ g(t.$slots, "optionFullscreen", z(M({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
467
483
  ]),
468
484
  key: "6"
469
485
  } : void 0,
470
486
  t.$slots.optionAnnotator ? {
471
487
  name: "optionAnnotator",
472
488
  fn: f(({ toggleAnnotator: o, isAnnotator: l }) => [
473
- g(t.$slots, "optionAnnotator", L(z({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
489
+ g(t.$slots, "optionAnnotator", z(M({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
474
490
  ]),
475
491
  key: "7"
476
492
  } : void 0
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", {
493
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
494
+ U.value ? (r(), u("svg", {
479
495
  key: 4,
480
496
  ref_key: "svgRef",
481
497
  ref: ge,
482
- xmlns: n(mt),
483
- class: B({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
498
+ xmlns: n(bt),
499
+ class: B({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
484
500
  viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
485
501
  style: q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
486
502
  }, [
487
- oe(n(qe)),
503
+ oe(n(He)),
488
504
  t.$slots["chart-background"] ? (r(), u("foreignObject", {
489
505
  key: 0,
490
506
  x: 0,
@@ -496,38 +512,38 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
496
512
  }
497
513
  }, [
498
514
  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", {
515
+ ], 8, zt)) : d("", !0),
516
+ O("defs", null, [
517
+ (r(!0), u(A, null, F(y.value, (o, l) => (r(), u("radialGradient", {
502
518
  cx: "50%",
503
519
  cy: "50%",
504
520
  r: "50%",
505
521
  fx: "50%",
506
522
  fy: "50%",
507
- id: `radar_gradient_${_.value}_${l}`
523
+ id: `radar_gradient_${T.value}_${l}`
508
524
  }, [
509
- x("stop", {
525
+ O("stop", {
510
526
  offset: "0%",
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", {
527
+ "stop-color": n(le)(n(kt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
528
+ }, null, 8, Vt),
529
+ O("stop", {
514
530
  offset: "100%",
515
531
  "stop-color": n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
516
- }, null, 8, Mt)
517
- ], 8, Lt))), 256))
532
+ }, null, 8, Ut)
533
+ ], 8, Mt))), 256))
518
534
  ]),
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", {
535
+ e.value.style.chart.layout.grid.show ? (r(), u("g", Et, [
536
+ (r(!0), u(A, null, F($.value, (o) => (r(), u("line", {
521
537
  x1: i.value.width / 2,
522
538
  y1: i.value.height / 2,
523
539
  x2: o.x,
524
540
  y2: o.y,
525
541
  stroke: e.value.style.chart.layout.grid.stroke,
526
542
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
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)({
543
+ }, null, 8, Bt))), 256)),
544
+ e.value.style.chart.layout.grid.graduations > 0 ? (r(), u("g", Dt, [
545
+ (r(!0), u(A, null, F(at.value, (o) => (r(), u("path", {
546
+ d: n(Le)({
531
547
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
532
548
  radius: o,
533
549
  sides: Te.value,
@@ -536,69 +552,69 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
536
552
  fill: "none",
537
553
  stroke: e.value.style.chart.layout.grid.stroke,
538
554
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
539
- }, null, 8, Bt))), 256))
555
+ }, null, 8, Gt))), 256))
540
556
  ])) : d("", !0)
541
557
  ])) : d("", !0),
542
- x("path", {
558
+ O("path", {
543
559
  d: Pe.value.path,
544
560
  fill: "none",
545
561
  stroke: e.value.style.chart.layout.outerPolygon.stroke,
546
562
  "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
547
563
  "stroke-linejoin": "round",
548
564
  "stroke-linecap": "round"
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", {
565
+ }, null, 8, Wt),
566
+ e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g", Xt, [
567
+ (r(!0), u(A, null, F($.value, (o, l) => (r(), u("text", {
552
568
  x: Q(o).x,
553
569
  y: Q(o).y,
554
570
  "text-anchor": Q(o).anchor,
555
571
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
556
572
  fill: e.value.style.chart.layout.labels.dataLabels.color,
557
- onMouseenter: (s) => lt(o, l),
573
+ onMouseenter: (s) => rt(o, l),
558
574
  onMouseleave: a[0] || (a[0] = (s) => {
559
575
  H.value = !1, X.value = null;
560
576
  })
561
- }, D(o.name), 41, Wt))), 256))
577
+ }, D(o.name), 41, jt))), 256))
562
578
  ])) : d("", !0),
563
- (r(!0), u(A, null, O(y.value, (o, l) => (r(), u("g", null, [
564
- x("g", null, [
579
+ (r(!0), u(A, null, F(y.value, (o, l) => (r(), u("g", null, [
580
+ O("g", null, [
565
581
  e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
566
582
  key: 0,
567
- points: n(ze)(w.value.map((s) => s.plots[l]), !1, !0),
583
+ points: n(Me)($.value.map((s) => s.plots[l]), !1, !0),
568
584
  stroke: e.value.style.chart.backgroundColor,
569
585
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
570
586
  fill: "none",
571
- class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": N.value && E.value === l && e.value.useCssAnimation })
572
- }, null, 10, Xt)) : d("", !0),
587
+ class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": I.value && E.value === l && e.value.useCssAnimation })
588
+ }, null, 10, qt)) : d("", !0),
573
589
  e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
574
590
  key: 1,
575
- points: n(ze)(w.value.map((s) => s.plots[l]), !1, !0),
591
+ points: n(Me)($.value.map((s) => s.plots[l]), !1, !0),
576
592
  stroke: o.color,
577
593
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
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": N.value && E.value === l && e.value.useCssAnimation })
580
- }, null, 10, jt)) : d("", !0)
594
+ fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${T.value}_${l})` : n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
595
+ class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": I.value && E.value === l && e.value.useCssAnimation })
596
+ }, null, 10, Ht)) : d("", !0)
581
597
  ])
582
598
  ]))), 256)),
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", {
599
+ e.value.style.chart.layout.plots.show ? (r(), u("g", Yt, [
600
+ (r(!0), u(A, null, F($.value, (o, l) => (r(), u("g", null, [
601
+ (r(!0), u(A, null, F(o.plots, (s, m) => (r(), u("circle", {
586
602
  cx: s.x,
587
603
  cy: s.y,
588
- fill: v.value.includes(b) ? "transparent" : y.value[b].color,
604
+ fill: v.value.includes(m) ? "transparent" : y.value[m].color,
589
605
  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,
606
+ stroke: v.value.includes(m) ? "transparent" : e.value.style.chart.backgroundColor,
591
607
  "stroke-width": 0.5,
592
- class: B({ "animated-out": v.value.includes(b) && e.value.useCssAnimation, "animated-in": N.value && E.value === b && e.value.useCssAnimation })
593
- }, null, 10, Ht))), 256))
608
+ class: B({ "animated-out": v.value.includes(m) && e.value.useCssAnimation, "animated-in": I.value && E.value === m && e.value.useCssAnimation })
609
+ }, null, 10, Jt))), 256))
594
610
  ]))), 256))
595
611
  ])) : d("", !0),
596
612
  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)
613
+ ], 14, Lt)) : d("", !0),
614
+ t.$slots.watermark ? (r(), u("div", Kt, [
615
+ g(t.$slots, "watermark", z(M({ isPrinting: n(me) || n(be) })), void 0, !0)
600
616
  ])) : d("", !0),
601
- V.value ? d("", !0) : (r(), P(n(We), {
617
+ U.value ? d("", !0) : (r(), x(n(Xe), {
602
618
  key: 6,
603
619
  config: {
604
620
  type: "radar",
@@ -615,30 +631,30 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
615
631
  }
616
632
  }
617
633
  }, null, 8, ["config"])),
618
- x("div", {
634
+ O("div", {
619
635
  ref_key: "chartLegend",
620
636
  ref: ne
621
637
  }, [
622
- e.value.style.chart.legend.show ? (r(), P(Ot, {
638
+ e.value.style.chart.legend.show ? (r(), x(Ft, {
623
639
  key: `legend_${ve.value}`,
624
- legendSet: I.value,
625
- config: ot.value,
640
+ legendSet: R.value,
641
+ config: lt.value,
626
642
  onClickMarker: a[1] || (a[1] = ({ i: o }) => $e(o))
627
643
  }, {
628
644
  item: f(({ legend: o, index: l }) => [
629
- x("div", {
645
+ O("div", {
630
646
  onClick: (s) => o.segregate(),
631
647
  style: q(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
632
648
  }, D(o.name) + ": " + D(n(G)({
633
649
  v: o.totalProportion * 100,
634
650
  s: "%",
635
651
  r: e.value.style.chart.legend.roundingPercentage
636
- })), 13, Jt)
652
+ })), 13, Qt)
637
653
  ]),
638
654
  _: 1
639
655
  }, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
640
656
  key: 1,
641
- legend: I.value
657
+ legend: R.value
642
658
  }, void 0, !0)
643
659
  ], 512),
644
660
  t.$slots.source ? (r(), u("div", {
@@ -649,8 +665,8 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
649
665
  }, [
650
666
  g(t.$slots, "source", {}, void 0, !0)
651
667
  ], 512)) : d("", !0),
652
- oe(n(Xe), {
653
- show: m.value.showTooltip && H.value,
668
+ oe(n(je), {
669
+ show: b.value.showTooltip && H.value,
654
670
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
655
671
  color: e.value.style.chart.tooltip.color,
656
672
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -660,31 +676,31 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
660
676
  fontSize: e.value.style.chart.tooltip.fontSize,
661
677
  position: e.value.style.chart.tooltip.position,
662
678
  offsetY: e.value.style.chart.tooltip.offsetY,
663
- parent: U.value,
679
+ parent: C.value,
664
680
  content: Y.value,
665
- isFullscreen: R.value,
681
+ isFullscreen: L.value,
666
682
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
667
683
  }, {
668
684
  "tooltip-before": f(() => [
669
- g(t.$slots, "tooltip-before", L(z({ ...ee.value })), void 0, !0)
685
+ g(t.$slots, "tooltip-before", z(M({ ...ee.value })), void 0, !0)
670
686
  ]),
671
687
  "tooltip-after": f(() => [
672
- ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div", Kt, [
673
- oe(n(He), {
688
+ ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div", Zt, [
689
+ oe(n(Ye), {
674
690
  dataset: Z.value,
675
- config: Qe.value,
691
+ config: Ze.value,
676
692
  backgroundOpacity: 0
677
693
  }, null, 8, ["dataset", "config"])
678
694
  ])),
679
- g(t.$slots, "tooltip-after", L(z({ ...ee.value })), void 0, !0)
695
+ g(t.$slots, "tooltip-after", z(M({ ...ee.value })), void 0, !0)
680
696
  ]),
681
697
  _: 3
682
698
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
683
- V.value ? (r(), P(n(Ge), {
699
+ U.value ? (r(), x(n(We), {
684
700
  key: 8,
685
701
  hideDetails: "",
686
702
  config: {
687
- open: m.value.showTable,
703
+ open: b.value.showTable,
688
704
  maxHeight: 1e4,
689
705
  body: {
690
706
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -697,29 +713,29 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
697
713
  }
698
714
  }, {
699
715
  content: f(() => [
700
- (r(), P(n(Be), {
716
+ (r(), x(n(De), {
701
717
  key: `table_${de.value}`,
702
718
  colNames: W.value.colNames,
703
719
  head: W.value.head,
704
720
  body: W.value.body,
705
721
  config: W.value.config,
706
722
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
707
- onClose: a[2] || (a[2] = (o) => m.value.showTable = !1)
723
+ onClose: a[2] || (a[2] = (o) => b.value.showTable = !1)
708
724
  }, {
709
725
  th: f(({ th: o }) => [
710
- Se(D(o.name), 1)
726
+ Ne(D(o.name), 1)
711
727
  ]),
712
728
  td: f(({ td: o }) => [
713
- Se(D(o), 1)
729
+ Ne(D(o), 1)
714
730
  ]),
715
731
  _: 1
716
732
  }, 8, ["colNames", "head", "body", "config", "title"]))
717
733
  ]),
718
734
  _: 1
719
735
  }, 8, ["config"])) : d("", !0)
720
- ], 46, Nt));
736
+ ], 46, Rt));
721
737
  }
722
- }, ca = /* @__PURE__ */ St(Qt, [["__scopeId", "data-v-0723e970"]]);
738
+ }, pa = /* @__PURE__ */ It(ea, [["__scopeId", "data-v-699cbae7"]]);
723
739
  export {
724
- ca as default
740
+ pa as default
725
741
  };