vue-data-ui 3.4.9 → 3.5.1

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