vue-data-ui 2.17.0 → 2.17.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 (91) hide show
  1. package/README.md +2 -1
  2. package/dist/{Arrow-BAEkZGzL.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-D0VYDhfx.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-Bxlv67uY.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-Cde-wJ3N.js} +3 -3
  11. package/dist/{Shape-DtFT5EJa.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-CL6-MRI6.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-B-2bV0SW.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CoQnTnr-.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-Dd34lEKb.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-Y_hYz-ZC.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-pPGk-uhD.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-yfk3d1is.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +63 -160
  23. package/dist/types/vue-data-ui.d.ts +63 -160
  24. package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-DDHcrl0A.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-D7ZgRDQ_.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-ORUAjkg7.js} +41 -34
  29. package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-Yl4aRpNc.js} +134 -127
  31. package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-C307lCPt.js} +90 -83
  33. package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-BE6PcEdh.js} +101 -94
  34. package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CUw74AgC.js} +270 -263
  36. package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-CCPGeAiY.js} +60 -53
  37. package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-dfyPiQmy.js} +121 -114
  38. package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-CKa7nFjt.js → vue-ui-donut-D41WeqQU.js} +244 -243
  42. package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-Deg0dsYg.js} +215 -211
  43. package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-DDwNoTPG.js} +117 -110
  44. package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-6oR7IMyi.js} +105 -98
  45. package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BnXtOJmh.js} +138 -131
  46. package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-75XC8SpV.js} +150 -146
  47. package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-w31j915C.js} +125 -118
  48. package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-BfU62tMW.js} +155 -148
  50. package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-CFfco-Yj.js} +141 -134
  51. package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-Tdk3Gd8M.js} +141 -134
  54. package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-Dg5wS7W5.js} +126 -119
  55. package/dist/{vue-ui-nested-donuts-D0RgFifU.js → vue-ui-nested-donuts-CpRe0sQB.js} +244 -244
  56. package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-B8o4ft2v.js} +88 -81
  57. package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +123 -116
  58. package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-DiRtZ16w.js} +151 -144
  59. package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-BRlYC_yT.js} +39 -32
  60. package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-DKgX1Ibx.js} +58 -51
  61. package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-MHiAp8dC.js} +127 -120
  63. package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-DA8verAe.js} +98 -91
  64. package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-Dh6lFqun.js} +208 -204
  65. package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-CLC5sTOi.js} +172 -165
  66. package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-C6rjCYDD.js} +61 -54
  75. package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-B6cYojHQ.js} +116 -109
  76. package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-D-oiVT3n.js} +88 -81
  80. package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-B1bM9Aoo.js} +127 -120
  82. package/dist/vue-ui-treemap-DX48YlU5.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-6SjKPQWR.js} +233 -226
  84. package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-CYao9MMw.js} +183 -179
  85. package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-USuDhMwW.js} +121 -114
  86. package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-TOBTs7yF.js} +152 -145
  87. package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-C2qikqBa.js} +77 -70
  88. package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-DxwgKoO-.js} +229 -222
  89. package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-N69OpVn8.js} +154 -147
  90. package/package.json +1 -1
  91. package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
@@ -1,12 +1,12 @@
1
1
  import { defineAsyncComponent as he, ref as z, computed as U, watch as Ve, shallowRef as ft, onMounted as Tt, onBeforeUnmount as Pt, nextTick as Me, createElementBlock as l, openBlock as a, normalizeStyle as R, normalizeClass as fe, createBlock as Fe, createCommentVNode as g, createVNode as ge, unref as f, createSlots as Rt, withCtx as G, renderSlot as M, normalizeProps as ie, guardReactiveProps as ue, toDisplayString as O, createElementVNode as _, Fragment as m, renderList as $, mergeProps as qe } from "vue";
2
- import { u as Mt, c as Ft, t as Nt, p as q, a as Ut, C as gt, b as Bt, G as Dt, e as Vt, d as He, m as qt, D as mt, X as Ht, j as Wt, k as We, n as Le, i as X, f as D, I as jt, V as pt, v as Z, x as Ne, y as je } from "./index-pPGk-uhD.js";
2
+ import { u as Mt, c as Ft, t as Nt, p as q, a as Ut, C as gt, b as Bt, G as Dt, e as Vt, d as He, m as qt, D as mt, X as Ht, j as Wt, k as We, n as Le, i as X, f as D, I as jt, V as pt, v as Z, x as Ne, y as je } from "./index-CobsZUkv.js";
3
3
  import { t as Gt, u as Xt } from "./useResponsive-DfdjqQps.js";
4
- import { u as yt } from "./useNestedProp-DjACxgdZ.js";
5
- import { u as Zt } from "./usePrinter-DDHcrl0A.js";
4
+ import { u as yt } from "./useNestedProp-BwL5wmVa.js";
5
+ import { u as Zt } from "./usePrinter-DPh6U_Qk.js";
6
6
  import { u as Yt } from "./useChartAccessibility-9icAAmYg.js";
7
- import { S as Jt } from "./Slicer-CL6-MRI6.js";
7
+ import { S as Jt } from "./Slicer-CpSu7plp.js";
8
8
  import { u as Qt } from "./useTimeLabels-Mrr0jrpL.js";
9
- import Kt from "./img-Y_hYz-ZC.js";
9
+ import Kt from "./img-utitT2Gd.js";
10
10
  import { _ as ea } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const A = {
12
12
  LINE: "LINE",
@@ -153,7 +153,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
153
153
  },
154
154
  emits: ["selectDatapoint", "selectLegend"],
155
155
  setup(c, { expose: C, emit: y }) {
156
- const T = he(() => import("./BaseIcon-naqtCxVi.js")), H = he(() => import("./PackageVersion-5TR4ocqp.js")), me = he(() => import("./PenAndPaper-D6AqipIO.js")), pe = he(() => import("./vue-ui-skeleton-DJPjyNYn.js")), ye = he(() => import("./Tooltip-CoQnTnr-.js")), $e = he(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_quick_chart: F } = Mt(), B = c, ee = z(null), Ge = z(null), Xe = z(null), Ze = z(null), J = z(Ft()), te = z(!1), xe = z(null), ae = z(""), W = z(null), Ye = z(null), Je = z(null), w = z([]), Qe = z(0), Ce = z(0), e = U({
156
+ const T = he(() => import("./BaseIcon-D9Tz8ARD.js")), H = he(() => import("./PackageVersion-C-4Ee8BQ.js")), me = he(() => import("./PenAndPaper-Cde-wJ3N.js")), pe = he(() => import("./vue-ui-skeleton-8s4xts8z.js")), ye = he(() => import("./Tooltip-DA0bYKFG.js")), $e = he(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_quick_chart: F } = Mt(), B = c, J = z(null), Ge = z(null), Xe = z(null), Ze = z(null), Q = z(Ft()), te = z(!1), xe = z(null), ae = z(""), W = z(null), Ye = z(null), Je = z(null), w = z([]), Qe = z(0), Ce = z(0), e = U({
157
157
  get: () => at(),
158
158
  set: (o) => o
159
159
  }), { svgRef: Ke } = Yt({ config: { text: e.value.title } }), wt = U(() => e.value.showUserOptionsOnChartHover), et = U(() => e.value.keepUserOptionsStateOnChartLeave), Ie = z(!e.value.showUserOptionsOnChartHover);
@@ -197,7 +197,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
197
197
  });
198
198
  }, { immediate: !0 });
199
199
  const { isPrinting: Ee, isImaging: Oe, generatePdf: lt, generateImage: ot } = Zt({
200
- elementId: `${L.value}_${J.value}`,
200
+ elementId: `${L.value}_${Q.value}`,
201
201
  fileName: e.value.title || L.value,
202
202
  options: e.value.userOptionsPrint
203
203
  }), _t = U(() => e.value.showUserOptions && !e.value.title), b = z({
@@ -205,7 +205,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
205
205
  height: e.value.height
206
206
  }), Se = z({
207
207
  showTooltip: e.value.showTooltip
208
- }), Q = ft(null), se = ft(null);
208
+ }), K = ft(null), se = ft(null);
209
209
  Tt(() => {
210
210
  nt();
211
211
  });
@@ -213,7 +213,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
213
213
  if (e.value.responsive) {
214
214
  const o = Gt(() => {
215
215
  const { width: s, height: t } = Xt({
216
- chart: ee.value,
216
+ chart: J.value,
217
217
  title: e.value.title ? Ge.value : null,
218
218
  legend: e.value.showLegend ? Xe.value : null,
219
219
  slicer: [A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? Ze.value : null,
@@ -224,12 +224,12 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
224
224
  b.value.width = s, b.value.height = t;
225
225
  });
226
226
  });
227
- Q.value && (se.value && Q.value.unobserve(se.value), Q.value.disconnect()), Q.value = new ResizeObserver(o), se.value = ee.value.parentNode, Q.value.observe(se.value);
227
+ K.value && (se.value && K.value.unobserve(se.value), K.value.disconnect()), K.value = new ResizeObserver(o), se.value = J.value.parentNode, K.value.observe(se.value);
228
228
  }
229
229
  dt();
230
230
  }
231
231
  Pt(() => {
232
- Q.value && (se.value && Q.value.unobserve(se.value), Q.value.disconnect());
232
+ K.value && (se.value && K.value.unobserve(se.value), K.value.disconnect());
233
233
  });
234
234
  const Lt = U(() => {
235
235
  switch (L.value) {
@@ -247,7 +247,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
247
247
  return [...o].map((s) => s.value).reduce((s, t) => s + t, 0);
248
248
  }
249
249
  function we(o) {
250
- return e.value.blurOnHover && ![null, void 0].includes(W.value) && W.value !== o ? `url(#blur_${J.value})` : "";
250
+ return e.value.blurOnHover && ![null, void 0].includes(W.value) && W.value !== o ? `url(#blur_${Q.value})` : "";
251
251
  }
252
252
  function ut(o, s) {
253
253
  w.value.includes(o) ? w.value = w.value.filter((t) => t !== o) : w.value.length < s && w.value.push(o);
@@ -511,7 +511,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
511
511
  });
512
512
  else {
513
513
  let k = "";
514
- K.value[i[0].absoluteIndex] && (k += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${K.value[i[0].absoluteIndex].text}</div>`), i.forEach((E, N) => {
514
+ ee.value[i[0].absoluteIndex] && (k += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${ee.value[i[0].absoluteIndex].text}</div>`), i.forEach((E, N) => {
515
515
  k += `
516
516
  <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
517
517
  <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${E.color}"/></svg>
@@ -637,7 +637,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
637
637
  });
638
638
  else {
639
639
  let E = "";
640
- K.value[S[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${K.value[S[0].absoluteIndex].text}</div>`), S.forEach((N, Ae) => {
640
+ ee.value[S[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${ee.value[S[0].absoluteIndex].text}</div>`), S.forEach((N, Ae) => {
641
641
  E += `
642
642
  <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
643
643
  <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${N.color}"/></svg>
@@ -674,7 +674,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
674
674
  useTooltip: oe,
675
675
  killTooltip: n
676
676
  };
677
- }), K = U(() => Qt({
677
+ }), ee = U(() => Qt({
678
678
  values: e.value.xyPeriods,
679
679
  maxDatapoints: p.value.maxSeriesLength,
680
680
  formatter: e.value.datetimeFormatter,
@@ -692,9 +692,16 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
692
692
  Re.value = !Re.value;
693
693
  }
694
694
  async function Ot({ scale: o = 2 } = {}) {
695
- if (!ee.value) return;
696
- const { imageUri: s, base64: t } = await Kt({ domElement: ee.value, base64: !0, img: !0, scale: o });
697
- return { imageUri: s, base64: t };
695
+ if (!J.value) return;
696
+ const { width: s, height: t } = J.value.getBoundingClientRect(), u = s / t, { imageUri: r, base64: h } = await Kt({ domElement: J.value, base64: !0, img: !0, scale: o });
697
+ return {
698
+ imageUri: r,
699
+ base64: h,
700
+ title: e.value.title,
701
+ width: s,
702
+ height: t,
703
+ aspectRatio: u
704
+ };
698
705
  }
699
706
  return C({
700
707
  getImage: Ot,
@@ -705,9 +712,9 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
705
712
  toggleFullscreen: ct
706
713
  }), (o, s) => At.value ? (a(), l("div", {
707
714
  key: 0,
708
- id: `${L.value}_${J.value}`,
715
+ id: `${L.value}_${Q.value}`,
709
716
  ref_key: "quickChart",
710
- ref: ee,
717
+ ref: J,
711
718
  class: fe({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Pe.value }),
712
719
  style: R(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
713
720
  onMouseenter: s[5] || (s[5] = () => tt(!0)),
@@ -735,7 +742,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
735
742
  color: e.value.color,
736
743
  isPrinting: f(Ee),
737
744
  isImaging: f(Oe),
738
- uid: J.value,
745
+ uid: Q.value,
739
746
  hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
740
747
  hasPdf: e.value.userOptionsButtons.pdf,
741
748
  hasImg: e.value.userOptionsButtons.img,
@@ -744,7 +751,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
744
751
  isTooltip: Se.value.showTooltip,
745
752
  isFullscreen: Pe.value,
746
753
  titles: { ...e.value.userOptionsButtonTitles },
747
- chartElement: ee.value,
754
+ chartElement: J.value,
748
755
  position: e.value.userOptionsPosition,
749
756
  hasAnnotator: e.value.userOptionsButtons.annotator,
750
757
  isAnnotation: Re.value,
@@ -856,7 +863,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
856
863
  ], 8, da)) : g("", !0),
857
864
  _("defs", null, [
858
865
  _("filter", {
859
- id: `blur_${J.value}`,
866
+ id: `blur_${Q.value}`,
860
867
  x: "-50%",
861
868
  y: "-50%",
862
869
  width: "200%",
@@ -865,7 +872,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
865
872
  _("feGaussianBlur", {
866
873
  in: "SourceGraphic",
867
874
  stdDeviation: 2,
868
- id: `blur_std_${J.value}`
875
+ id: `blur_std_${Q.value}`
869
876
  }, null, 8, ha),
870
877
  s[7] || (s[7] = _("feColorMatrix", {
871
878
  type: "saturate",
@@ -873,7 +880,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
873
880
  }, null, -1))
874
881
  ], 8, ca),
875
882
  _("filter", {
876
- id: `shadow_${J.value}`,
883
+ id: `shadow_${Q.value}`,
877
884
  "color-interpolation-filters": "sRGB"
878
885
  }, [
879
886
  _("feDropShadow", {
@@ -905,7 +912,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
905
912
  cy: I.value.cy,
906
913
  r: I.value.radius,
907
914
  fill: e.value.backgroundColor,
908
- filter: e.value.donutUseShadow ? `url(#shadow_${J.value})` : ""
915
+ filter: e.value.donutUseShadow ? `url(#shadow_${Q.value})` : ""
909
916
  }, null, 8, ya),
910
917
  _("g", xa, [
911
918
  (a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
@@ -1064,7 +1071,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
1064
1071
  ], 64))), 256))
1065
1072
  ])) : g("", !0),
1066
1073
  e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Na, [
1067
- (a(!0), l(m, null, $(K.value.map((t) => t.text), (t, u) => (a(), l(m, null, [
1074
+ (a(!0), l(m, null, $(ee.value.map((t) => t.text), (t, u) => (a(), l(m, null, [
1068
1075
  !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((x.value.end - x.value.start) / e.value.xyPeriodsModulo) === 0 || x.value.end - x.value.start <= e.value.xyPeriodsModulo ? (a(), l("line", {
1069
1076
  key: 0,
1070
1077
  x1: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
@@ -1279,7 +1286,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
1279
1286
  "stroke-width": e.value.xyAxisStrokeWidth,
1280
1287
  "stroke-linecap": "round"
1281
1288
  }, null, 8, vl))), 256)),
1282
- (a(!0), l(m, null, $(K.value.map((t) => t.text), (t, u) => (a(), l("text", {
1289
+ (a(!0), l(m, null, $(ee.value.map((t) => t.text), (t, u) => (a(), l("text", {
1283
1290
  "font-size": e.value.xyLabelsXFontSize,
1284
1291
  "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1285
1292
  transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
@@ -1426,8 +1433,8 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
1426
1433
  borderColor: e.value.backgroundColor,
1427
1434
  fontSize: e.value.zoomFontSize,
1428
1435
  useResetSlot: e.value.zoomUseResetSlot,
1429
- labelLeft: e.value.xyPeriods[x.value.start] ? K.value[0].text : "",
1430
- labelRight: e.value.xyPeriods[x.value.end - 1] ? K.value.at(-1).text : "",
1436
+ labelLeft: e.value.xyPeriods[x.value.start] ? ee.value[0].text : "",
1437
+ labelRight: e.value.xyPeriods[x.value.end - 1] ? ee.value.at(-1).text : "",
1431
1438
  textColor: e.value.color,
1432
1439
  inputColor: e.value.zoomColor,
1433
1440
  selectColor: e.value.zoomHighlightColor,
@@ -1578,7 +1585,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
1578
1585
  backgroundOpacity: e.value.tooltipBackgroundOpacity,
1579
1586
  position: e.value.tooltipPosition,
1580
1587
  offsetY: e.value.tooltipOffsetY,
1581
- parent: ee.value,
1588
+ parent: J.value,
1582
1589
  content: ae.value,
1583
1590
  isFullscreen: Pe.value,
1584
1591
  isCustom: f(Ne)(e.value.tooltipCustomFormat)
@@ -1599,7 +1606,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
1599
1606
  s[8] || (s[8] = _("span", null, "Dataset is not processable", -1))
1600
1607
  ]));
1601
1608
  }
1602
- }, Wl = /* @__PURE__ */ ea(Pl, [["__scopeId", "data-v-c0908d48"]]);
1609
+ }, Wl = /* @__PURE__ */ ea(Pl, [["__scopeId", "data-v-38c96f9a"]]);
1603
1610
  export {
1604
1611
  Wl as default
1605
1612
  };
@@ -1,13 +1,13 @@
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-pPGk-uhD.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-CobsZUkv.js";
3
3
  import { t as Tt, u as Pt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ve } from "./useNestedProp-DjACxgdZ.js";
5
- import { u as xt } from "./usePrinter-DDHcrl0A.js";
4
+ import { u as Ve } from "./useNestedProp-BwL5wmVa.js";
5
+ import { u as xt } from "./usePrinter-DPh6U_Qk.js";
6
6
  import { u as Ot } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as At } from "./useChartAccessibility-9icAAmYg.js";
8
- import Ft from "./Legend-Bxlv67uY.js";
9
- import St from "./Title-B-2bV0SW.js";
10
- import Nt from "./img-Y_hYz-ZC.js";
8
+ import Ft from "./Legend-3LNqqLDg.js";
9
+ import St from "./Title-DpERl1yr.js";
10
+ import Nt from "./img-utitT2Gd.js";
11
11
  import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
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 = {
13
13
  key: 5,
@@ -33,7 +33,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
33
33
  },
34
34
  emits: ["selectLegend"],
35
35
  setup(Ue, { expose: Ee, emit: Be }) {
36
- const De = $(() => import("./DataTable-D0VYDhfx.js")), Ge = $(() => import("./PenAndPaper-D6AqipIO.js")), We = $(() => import("./vue-ui-accordion-CVnA550V.js")), Xe = $(() => import("./vue-ui-skeleton-DJPjyNYn.js")), je = $(() => import("./Tooltip-CoQnTnr-.js")), qe = $(() => import("./UserOptions-Dd34lEKb.js")), He = $(() => import("./PackageVersion-5TR4ocqp.js")), Ye = $(() => import("./vue-ui-sparkbar-Ds2ITgwn.js")), { vue_ui_radar: Je } = vt(), h = Ue, U = p(() => !!h.dataset && Object.keys(h.dataset).length), _ = c(pt()), Ke = c(null), H = c(!1), Y = c(""), re = c(0), T = 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
+ const De = _(() => import("./DataTable-Dt-TIOyY.js")), Ge = _(() => import("./PenAndPaper-Cde-wJ3N.js")), We = _(() => import("./vue-ui-accordion-UewqY6OI.js")), Xe = _(() => import("./vue-ui-skeleton-8s4xts8z.js")), je = _(() => import("./Tooltip-DA0bYKFG.js")), qe = _(() => import("./UserOptions-DTEJ3UM_.js")), He = _(() => import("./PackageVersion-C-4Ee8BQ.js")), Ye = _(() => import("./vue-ui-sparkbar-B8MB-kn9.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({
37
37
  get: () => fe(),
38
38
  set: (t) => t
39
39
  }), { userOptionsVisible: J, setUserOptionsVisibility: pe, keepUserOptionState: he } = Ot({ config: e.value }), { svgRef: ge } = At({ config: e.value.style.chart.title });
@@ -51,9 +51,9 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
51
51
  } : t;
52
52
  }
53
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, m.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tootlip ? e.value.style.chart.tootlip.show : !1;
54
+ 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;
55
55
  }, { deep: !0 });
56
- const C = Se(null), N = Se(null);
56
+ const w = Se(null), N = Se(null);
57
57
  function ye() {
58
58
  if (ft(h.dataset) && V({
59
59
  componentName: "VueUiRadar",
@@ -61,7 +61,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
61
61
  }), e.value.responsive) {
62
62
  const t = Tt(() => {
63
63
  const { width: a, height: o } = Pt({
64
- chart: T.value,
64
+ chart: C.value,
65
65
  title: e.value.style.chart.title.text ? se.value : null,
66
66
  legend: e.value.style.chart.legend.show ? ne.value : null,
67
67
  source: ue.value,
@@ -71,19 +71,19 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
71
71
  i.value.width = a, i.value.height = o;
72
72
  });
73
73
  });
74
- C.value && (N.value && C.value.unobserve(N.value), C.value.disconnect()), C.value = new ResizeObserver(t), N.value = T.value.parentNode, C.value.observe(N.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);
75
75
  }
76
76
  }
77
77
  ut(() => {
78
78
  ye();
79
79
  }), it(() => {
80
- C.value && (N.value && C.value.unobserve(N.value), C.value.disconnect());
80
+ w.value && (N.value && w.value.unobserve(N.value), w.value.disconnect());
81
81
  });
82
82
  const { isPrinting: me, isImaging: be, generatePdf: ke, generateImage: Ce } = xt({
83
- elementId: `vue-ui-radar_${_.value}`,
83
+ elementId: `vue-ui-radar_${T.value}`,
84
84
  fileName: e.value.style.chart.title.text || "vue-ui-radar",
85
85
  options: e.value.userOptions.print
86
- }), Qe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), we = p(() => yt(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({
87
87
  dataLabels: {
88
88
  show: e.value.style.chart.layout.labels.dataLabels.show
89
89
  },
@@ -168,14 +168,14 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
168
168
  });
169
169
  }), h.dataset.categories.map((t, a) => ({
170
170
  name: t.name,
171
- categoryId: `radar_category_${_.value}_${a}`,
171
+ categoryId: `radar_category_${T.value}_${a}`,
172
172
  color: Re(t.color) || we.value[a] || S[a] || S[a % S.length],
173
173
  prefix: t.prefix ?? "",
174
174
  suffix: t.suffix ?? ""
175
175
  })))), k = p(() => U.value ? h.dataset.series.map((t, a) => ({
176
176
  ...t,
177
177
  color: Re(t.color) || we.value[a] || S[a] || S[a % S.length],
178
- serieId: `radar_serie_${_.value}_${a}`,
178
+ serieId: `radar_serie_${T.value}_${a}`,
179
179
  formatter: t.formatter || null
180
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({
181
181
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
@@ -187,7 +187,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
187
187
  for (let a = 0; a < K.value; a += K.value / e.value.style.chart.layout.grid.graduations)
188
188
  t.push(a);
189
189
  return t;
190
- }), w = p(() => Pe.value.coordinates.map((t, a) => {
190
+ }), $ = p(() => Pe.value.coordinates.map((t, a) => {
191
191
  const o = k.value[a].values.map((l) => ot({
192
192
  centerX: i.value.width / 2,
193
193
  centerY: i.value.height / 2,
@@ -245,10 +245,10 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
245
245
  r: e.value.table.td.roundingValue
246
246
  })
247
247
  ),
248
- ...l.values.map((s, b) => `${ze(
248
+ ...l.values.map((s, m) => `${ze(
249
249
  l.formatter,
250
250
  s,
251
- 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 })
252
252
  )} (${isNaN(s / l.target) ? "" : G({
253
253
  v: s / l.target * 100,
254
254
  s: "%",
@@ -278,7 +278,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
278
278
  series: {
279
279
  categories: y.value,
280
280
  datapoints: k.value,
281
- radar: w.value
281
+ radar: $.value
282
282
  },
283
283
  config: e.value
284
284
  };
@@ -286,13 +286,13 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
286
286
  if ($t(l) && _t(() => l({
287
287
  seriesIndex: a,
288
288
  datapoint: t,
289
- series: { categories: y.value, datapoints: k.value, radar: w.value },
289
+ series: { categories: y.value, datapoints: k.value, radar: $.value },
290
290
  config: e.value
291
291
  })))
292
292
  Y.value = l({
293
293
  seriesIndex: a,
294
294
  datapoint: t,
295
- series: { categories: y.value, datapoints: k.value, radar: w.value },
295
+ series: { categories: y.value, datapoints: k.value, radar: $.value },
296
296
  config: e.value
297
297
  });
298
298
  else {
@@ -315,8 +315,8 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
315
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) => [
316
316
  ae,
317
317
  isNaN(ae / P.target) ? "" : ae / P.target * 100
318
- ])]), s = a.concat([o]).concat(l), b = Ct(s);
319
- t ? t(b) : wt({ csvContent: b, title: e.value.style.chart.title.text || "vue-ui-radar" });
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" });
320
320
  });
321
321
  }
322
322
  const L = c(!1);
@@ -324,19 +324,26 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
324
324
  L.value = t, re.value += 1;
325
325
  }
326
326
  function Ae() {
327
- m.value.showTable = !m.value.showTable;
327
+ b.value.showTable = !b.value.showTable;
328
328
  }
329
329
  function Fe() {
330
- m.value.showTooltip = !m.value.showTooltip;
330
+ b.value.showTooltip = !b.value.showTooltip;
331
331
  }
332
332
  const j = c(!1);
333
333
  function te() {
334
334
  j.value = !j.value;
335
335
  }
336
336
  async function st({ scale: t = 2 } = {}) {
337
- if (!T.value) return;
338
- const { imageUri: a, base64: o } = await Nt({ domElement: T.value, base64: !0, img: !0, scale: t });
339
- return { imageUri: a, base64: o };
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
+ };
340
347
  }
341
348
  return Ee({
342
349
  getData: tt,
@@ -351,8 +358,8 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
351
358
  }), (t, a) => (r(), u("div", {
352
359
  class: B(`vue-ui-radar ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
353
360
  ref_key: "radarChart",
354
- ref: T,
355
- id: `vue-ui-radar_${_.value}`,
361
+ ref: C,
362
+ id: `vue-ui-radar_${T.value}`,
356
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}`),
357
364
  onMouseenter: a[3] || (a[3] = () => n(pe)(!0)),
358
365
  onMouseleave: a[4] || (a[4] = () => n(pe)(!1))
@@ -400,7 +407,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
400
407
  color: e.value.style.chart.color,
401
408
  isImaging: n(be),
402
409
  isPrinting: n(me),
403
- uid: _.value,
410
+ uid: T.value,
404
411
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
405
412
  hasPdf: e.value.userOptions.buttons.pdf,
406
413
  hasImg: e.value.userOptions.buttons.img,
@@ -408,9 +415,9 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
408
415
  hasTable: e.value.userOptions.buttons.table,
409
416
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
410
417
  isFullscreen: L.value,
411
- isTooltip: m.value.showTooltip,
418
+ isTooltip: b.value.showTooltip,
412
419
  titles: { ...e.value.userOptions.buttonTitles },
413
- chartElement: T.value,
420
+ chartElement: C.value,
414
421
  position: e.value.userOptions.position,
415
422
  hasAnnotator: e.value.userOptions.buttons.annotator,
416
423
  isAnnotation: j.value,
@@ -513,7 +520,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
513
520
  r: "50%",
514
521
  fx: "50%",
515
522
  fy: "50%",
516
- id: `radar_gradient_${_.value}_${l}`
523
+ id: `radar_gradient_${T.value}_${l}`
517
524
  }, [
518
525
  O("stop", {
519
526
  offset: "0%",
@@ -526,7 +533,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
526
533
  ], 8, Mt))), 256))
527
534
  ]),
528
535
  e.value.style.chart.layout.grid.show ? (r(), u("g", Et, [
529
- (r(!0), u(A, null, F(w.value, (o) => (r(), u("line", {
536
+ (r(!0), u(A, null, F($.value, (o) => (r(), u("line", {
530
537
  x1: i.value.width / 2,
531
538
  y1: i.value.height / 2,
532
539
  x2: o.x,
@@ -557,7 +564,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
557
564
  "stroke-linecap": "round"
558
565
  }, null, 8, Wt),
559
566
  e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g", Xt, [
560
- (r(!0), u(A, null, F(w.value, (o, l) => (r(), u("text", {
567
+ (r(!0), u(A, null, F($.value, (o, l) => (r(), u("text", {
561
568
  x: Q(o).x,
562
569
  y: Q(o).y,
563
570
  "text-anchor": Q(o).anchor,
@@ -573,7 +580,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
573
580
  O("g", null, [
574
581
  e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
575
582
  key: 0,
576
- points: n(Me)(w.value.map((s) => s.plots[l]), !1, !0),
583
+ points: n(Me)($.value.map((s) => s.plots[l]), !1, !0),
577
584
  stroke: e.value.style.chart.backgroundColor,
578
585
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
579
586
  fill: "none",
@@ -581,24 +588,24 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
581
588
  }, null, 10, qt)) : d("", !0),
582
589
  e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
583
590
  key: 1,
584
- points: n(Me)(w.value.map((s) => s.plots[l]), !1, !0),
591
+ points: n(Me)($.value.map((s) => s.plots[l]), !1, !0),
585
592
  stroke: o.color,
586
593
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
587
- 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),
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),
588
595
  class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": I.value && E.value === l && e.value.useCssAnimation })
589
596
  }, null, 10, Ht)) : d("", !0)
590
597
  ])
591
598
  ]))), 256)),
592
599
  e.value.style.chart.layout.plots.show ? (r(), u("g", Yt, [
593
- (r(!0), u(A, null, F(w.value, (o, l) => (r(), u("g", null, [
594
- (r(!0), u(A, null, F(o.plots, (s, b) => (r(), u("circle", {
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", {
595
602
  cx: s.x,
596
603
  cy: s.y,
597
- fill: v.value.includes(b) ? "transparent" : y.value[b].color,
604
+ fill: v.value.includes(m) ? "transparent" : y.value[m].color,
598
605
  r: X.value !== null && X.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
599
- stroke: v.value.includes(b) ? "transparent" : e.value.style.chart.backgroundColor,
606
+ stroke: v.value.includes(m) ? "transparent" : e.value.style.chart.backgroundColor,
600
607
  "stroke-width": 0.5,
601
- class: B({ "animated-out": v.value.includes(b) && e.value.useCssAnimation, "animated-in": I.value && E.value === b && e.value.useCssAnimation })
608
+ class: B({ "animated-out": v.value.includes(m) && e.value.useCssAnimation, "animated-in": I.value && E.value === m && e.value.useCssAnimation })
602
609
  }, null, 10, Jt))), 256))
603
610
  ]))), 256))
604
611
  ])) : d("", !0),
@@ -659,7 +666,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
659
666
  g(t.$slots, "source", {}, void 0, !0)
660
667
  ], 512)) : d("", !0),
661
668
  oe(n(je), {
662
- show: m.value.showTooltip && H.value,
669
+ show: b.value.showTooltip && H.value,
663
670
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
664
671
  color: e.value.style.chart.tooltip.color,
665
672
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -669,7 +676,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
669
676
  fontSize: e.value.style.chart.tooltip.fontSize,
670
677
  position: e.value.style.chart.tooltip.position,
671
678
  offsetY: e.value.style.chart.tooltip.offsetY,
672
- parent: T.value,
679
+ parent: C.value,
673
680
  content: Y.value,
674
681
  isFullscreen: L.value,
675
682
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
@@ -693,7 +700,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
693
700
  key: 8,
694
701
  hideDetails: "",
695
702
  config: {
696
- open: m.value.showTable,
703
+ open: b.value.showTable,
697
704
  maxHeight: 1e4,
698
705
  body: {
699
706
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -713,7 +720,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
713
720
  body: W.value.body,
714
721
  config: W.value.config,
715
722
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
716
- onClose: a[2] || (a[2] = (o) => m.value.showTable = !1)
723
+ onClose: a[2] || (a[2] = (o) => b.value.showTable = !1)
717
724
  }, {
718
725
  th: f(({ th: o }) => [
719
726
  Ne(D(o.name), 1)
@@ -728,7 +735,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
728
735
  }, 8, ["config"])) : d("", !0)
729
736
  ], 46, Rt));
730
737
  }
731
- }, pa = /* @__PURE__ */ It(ea, [["__scopeId", "data-v-e7633d87"]]);
738
+ }, pa = /* @__PURE__ */ It(ea, [["__scopeId", "data-v-3515f6e2"]]);
732
739
  export {
733
740
  pa as default
734
741
  };
@@ -1,6 +1,6 @@
1
1
  import { ref as $, useSlots as J, onMounted as R, computed as x, watch as Q, createElementBlock as o, openBlock as a, normalizeStyle as s, createCommentVNode as p, createElementVNode as r, toDisplayString as f, unref as n, Fragment as B, renderList as Z, renderSlot as j, mergeProps as O, withKeys as ee } from "vue";
2
- import { u as te, c as le, o as oe, e as ae, i as b, f as _, X as z, w as X, _ as I } from "./index-pPGk-uhD.js";
3
- import { u as ie } from "./useNestedProp-DjACxgdZ.js";
2
+ import { u as te, c as le, o as oe, e as ae, i as b, f as _, X as z, w as X, _ as I } from "./index-CobsZUkv.js";
3
+ import { u as ie } from "./useNestedProp-BwL5wmVa.js";
4
4
  import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const ne = {
6
6
  key: 0,