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,21 +1,21 @@
1
- import { defineAsyncComponent as K, computed as h, ref as f, toRefs as at, watch as Q, shallowRef as ze, onMounted as lt, onBeforeUnmount as st, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as ee, normalizeClass as Ce, createBlock as U, createCommentVNode as c, createElementVNode as p, withCtx as N, toDisplayString as R, createSlots as ot, renderSlot as S, normalizeProps as j, guardReactiveProps as W, createVNode as rt, Fragment as k, renderList as $, mergeProps as T, nextTick as ut } from "vue";
2
- import { c as nt, t as it, b as ct, p as Fe, e as vt, o as Ae, h as ht, f as D, g as Oe, T as te, _ as F, a6 as dt, x as ft, X as yt, s as ae, M as gt, Y as mt, a as le, d as se, R as oe } from "./lib-C_mNZmhD.js";
1
+ import { defineAsyncComponent as K, computed as d, ref as y, toRefs as at, watch as Q, shallowRef as ze, onMounted as lt, onBeforeUnmount as ot, createElementBlock as r, openBlock as s, unref as u, normalizeStyle as ee, normalizeClass as Ce, createBlock as W, createCommentVNode as c, createElementVNode as k, withCtx as b, renderSlot as h, normalizeProps as C, guardReactiveProps as F, toDisplayString as T, createSlots as st, createVNode as rt, Fragment as S, renderList as z, mergeProps as L, nextTick as nt } from "vue";
2
+ import { c as ut, t as it, b as ct, p as Fe, e as vt, o as Ae, h as dt, f as D, g as Oe, T as te, _ as M, a6 as ht, x as ft, X as yt, s as ae, M as gt, Y as mt, a as le, d as oe, R as se } from "./lib-C_mNZmhD.js";
3
3
  import { t as pt, u as kt } from "./useResponsive-DfdjqQps.js";
4
- import { u as bt, B as _t } from "./BaseScanner-BgWxam9d.js";
5
- import { u as St } from "./usePrinter-DTzqpYKF.js";
6
- import { u as wt, a as Me } from "./useNestedProp-BjZe1Y85.js";
4
+ import { u as bt, B as St } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as _t } from "./usePrinter-DTzqpYKF.js";
6
+ import { u as wt, a as Me } from "./useNestedProp-DjGXw6S9.js";
7
7
  import { u as xt } from "./useSvgExport-DrjCWun4.js";
8
8
  import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
9
9
  import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
10
10
  import { u as Ct } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
11
11
  import Ft from "./img-BecE5qXd.js";
12
12
  import { t as At } from "./themes-AUNCOb2G.js";
13
- import Ot from "./Title-l36lOBMx.js";
13
+ import Ot from "./Title-isbiM8i8.js";
14
14
  import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "height"], Rt = ["id"], Yt = ["stop-color"], Tt = ["stop-color"], Et = ["stop-color"], Lt = ["id"], Gt = ["stdDeviation"], Bt = { key: 1 }, Ut = ["d", "fill", "stroke"], jt = ["d", "fill", "stroke"], Wt = ["d", "fill"], Dt = ["id", "d"], Vt = ["fill", "font-size", "font-weight"], Ht = ["href", "startOffset"], qt = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], Zt = ["d", "filter"], Jt = ["stroke", "stroke-width"], Kt = ["stroke", "stroke-width"], Qt = ["stroke", "stroke-width"], ea = ["stroke", "stroke-width"], ta = { key: 8 }, aa = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], la = ["x", "y", "font-size", "font-weight", "fill"], sa = { key: 0 }, oa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ua = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], na = { key: 1 }, ia = ["d", "fill", "stroke", "stroke-width"], ca = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], va = ["x", "y", "font-size", "fill"], ha = {
15
+ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "height"], Rt = ["id"], Yt = ["stop-color"], Tt = ["stop-color"], Et = ["stop-color"], Lt = ["id"], Gt = ["stdDeviation"], Bt = { key: 1 }, Ut = ["d", "fill", "stroke"], jt = ["d", "fill", "stroke"], Wt = ["d", "fill"], Dt = ["id", "d"], Vt = ["fill", "font-size", "font-weight"], Ht = ["href", "startOffset"], qt = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], Zt = ["d", "filter"], Jt = ["stroke", "stroke-width"], Kt = ["stroke", "stroke-width"], Qt = ["stroke", "stroke-width"], ea = ["stroke", "stroke-width"], ta = { key: 8 }, aa = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], la = ["x", "y", "font-size", "font-weight", "fill"], oa = { key: 0 }, sa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], na = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], ua = { key: 1 }, ia = ["d", "fill", "stroke", "stroke-width"], ca = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], va = ["x", "y", "font-size", "fill"], da = {
16
16
  key: 4,
17
17
  class: "vue-data-ui-watermark"
18
- }, da = {
18
+ }, ha = {
19
19
  __name: "vue-ui-gauge",
20
20
  props: {
21
21
  config: {
@@ -32,13 +32,13 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
32
32
  }
33
33
  },
34
34
  setup(Ne, { expose: Pe }) {
35
- const Ie = K(() => import("./PenAndPaper-DSvu9dwa.js")), Xe = K(() => import("./UserOptions-CGnQt6Fd.js")), Re = K(() => import("./PackageVersion-CTUqGqWV.js")), { vue_ui_gauge: Ye } = wt(), m = Ne, Te = h(() => !!m.dataset && Object.keys(m.dataset).length > 0 && m.dataset.series && m.dataset.series.length), w = f(nt()), Ee = f(null), re = f(0), A = f(null), ue = f(null), ne = f(null), ie = f(null), ce = f(null), ve = f(0), e = f(H()), { loading: he, FINAL_DATASET: x, manualLoading: P } = bt({
36
- ...at(m),
35
+ const Ie = K(() => import("./PenAndPaper-SZQIAgkg.js")), Xe = K(() => import("./UserOptions-CGnQt6Fd.js")), Re = K(() => import("./PackageVersion-DQvyATVa.js")), { vue_ui_gauge: Ye } = wt(), p = Ne, Te = d(() => !!p.dataset && Object.keys(p.dataset).length > 0 && p.dataset.series && p.dataset.series.length), x = y(ut()), Ee = y(null), re = y(0), N = y(null), ne = y(null), ue = y(null), ie = y(null), ce = y(null), ve = y(0), e = y(H()), { loading: de, FINAL_DATASET: $, manualLoading: X } = bt({
36
+ ...at(p),
37
37
  FINAL_CONFIG: e,
38
38
  prepareConfig: H,
39
39
  callback: () => {
40
40
  Promise.resolve().then(async () => {
41
- await ut();
41
+ await nt();
42
42
  });
43
43
  },
44
44
  skeletonDataset: {
@@ -77,31 +77,31 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
77
77
  }
78
78
  }
79
79
  })
80
- }), { userOptionsVisible: V, setUserOptionsVisibility: de, keepUserOptionState: fe } = $t({ config: e.value }), { svgRef: E } = zt({ config: e.value.style.chart.title });
81
- Q(() => m.config, (t) => {
82
- he.value || (e.value = H()), V.value = !e.value.userOptions.showOnChartHover, Z(), ve.value += 1;
83
- }, { deep: !0 }), Q(() => m.dataset, (t) => {
84
- Z(), t && Object.keys(t).length > 0 && (P.value = e.value?.loading ?? !1);
80
+ }), { userOptionsVisible: V, setUserOptionsVisibility: he, keepUserOptionState: fe } = $t({ config: e.value }), { svgRef: G } = zt({ config: e.value.style.chart.title });
81
+ Q(() => p.config, (t) => {
82
+ de.value || (e.value = H()), V.value = !e.value.userOptions.showOnChartHover, Z(), ve.value += 1;
83
+ }, { deep: !0 }), Q(() => p.dataset, (t) => {
84
+ Z(), t && Object.keys(t).length > 0 && (X.value = e.value?.loading ?? !1);
85
85
  }, { deep: !0, immediate: !1 });
86
86
  function H() {
87
87
  const t = Me({
88
- userConfig: m.config,
88
+ userConfig: p.config,
89
89
  defaultConfig: Ye
90
90
  });
91
91
  return t.theme ? {
92
92
  ...Me({
93
- userConfig: At.vue_ui_gauge[t.theme] || m.config,
93
+ userConfig: At.vue_ui_gauge[t.theme] || p.config,
94
94
  defaultConfig: t
95
95
  }),
96
96
  customPalette: ct[t.theme] || Fe
97
97
  } : t;
98
98
  }
99
- const { isPrinting: ye, isImaging: ge, generatePdf: me, generateImage: pe } = St({
100
- elementId: `vue-ui-gauge_${w.value}`,
99
+ const { isPrinting: ye, isImaging: ge, generatePdf: me, generateImage: pe } = _t({
100
+ elementId: `vue-ui-gauge_${x.value}`,
101
101
  fileName: e.value.style.chart.title.text || "vue-ui-gauge",
102
102
  options: e.value.userOptions.print
103
- }), Le = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = h(() => vt(e.value.customPalette)), O = h(() => {
104
- if (Ae(x.value.series || {}))
103
+ }), Le = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = d(() => vt(e.value.customPalette)), P = d(() => {
104
+ if (Ae($.value.series || {}))
105
105
  return {
106
106
  value: 0,
107
107
  series: [
@@ -112,25 +112,25 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
112
112
  ]
113
113
  };
114
114
  const t = [];
115
- (x.value.series || []).forEach((a) => {
115
+ ($.value.series || []).forEach((a) => {
116
116
  t.push(a.from || 1e-7), t.push(a.to || 1e-7);
117
117
  });
118
- const u = Math.max(...t);
118
+ const n = Math.max(...t);
119
119
  return {
120
- ...x.value,
121
- series: (x.value.series || []).map((a, l) => ({
120
+ ...$.value,
121
+ series: ($.value.series || []).map((a, l) => ({
122
122
  ...a,
123
- color: ht(a.color) || Ge.value[l] || Fe[l],
124
- value: ((a.to || 0) - (a.from || 0)) / u * 100
123
+ color: dt(a.color) || Ge.value[l] || Fe[l],
124
+ value: ((a.to || 0) - (a.from || 0)) / n * 100
125
125
  }))
126
126
  };
127
- }), b = f(512), s = f({
127
+ }), _ = y(512), o = y({
128
128
  height: 358.4,
129
- width: b.value,
129
+ width: _.value,
130
130
  top: 0,
131
131
  bottom: 358.4,
132
132
  centerX: 179.2,
133
- centerY: b.value / 2,
133
+ centerY: _.value / 2,
134
134
  labelFontSize: 18,
135
135
  legendFontSize: e.value.style.chart.legend.fontSize,
136
136
  pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
@@ -139,59 +139,59 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
139
139
  pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
140
140
  markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
141
141
  segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
142
- }), I = f(0), z = f(0), y = f(
143
- e.value.style.chart.animation.use ? Math.min(...x.value.series.map((t) => t.from)) : x.value.value
142
+ }), R = y(0), A = y(0), g = y(
143
+ e.value.style.chart.animation.use ? Math.min(...$.value.series.map((t) => t.from)) : $.value.value
144
144
  );
145
- Q(() => x.value.value, () => {
146
- _e(x.value.value);
145
+ Q(() => $.value.value, () => {
146
+ Se($.value.value);
147
147
  });
148
- const i = h(() => {
149
- const t = s.value.width / 2, u = v.value.base, a = Math.PI * ((y.value + 0 - z.value) / (I.value - z.value)) + Math.PI;
148
+ const i = d(() => {
149
+ const t = o.value.width / 2, n = v.value.base, a = Math.PI * ((g.value + 0 - A.value) / (R.value - A.value)) + Math.PI;
150
150
  return {
151
151
  x1: t,
152
- y1: u,
153
- x2: t + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.cos(a),
154
- y2: u + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.sin(a)
152
+ y1: n,
153
+ x2: t + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.cos(a),
154
+ y2: n + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.sin(a)
155
155
  };
156
- }), ke = h(() => {
157
- const t = s.value.width / 2, u = v.value.base, a = Math.PI * ((y.value + 0 - z.value) / (I.value - z.value)) + Math.PI, l = t + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.cos(a), g = u + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.sin(a), _ = s.value.pointerRadius, Ke = t + _ * Math.cos(a + Math.PI / 2), Qe = u + _ * Math.sin(a + Math.PI / 2), et = t + _ * Math.cos(a - Math.PI / 2), tt = u + _ * Math.sin(a - Math.PI / 2);
158
- return isNaN(l) ? null : `M ${l},${g} ${Ke},${Qe} ${et},${tt} Z`;
159
- }), q = h(() => {
160
- for (let t = 0; t < O.value.series.length; t += 1) {
161
- const { color: u, from: a, to: l } = O.value.series[t];
162
- if (y.value >= a && y.value <= l)
163
- return u;
156
+ }), ke = d(() => {
157
+ const t = o.value.width / 2, n = v.value.base, a = Math.PI * ((g.value + 0 - A.value) / (R.value - A.value)) + Math.PI, l = t + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.cos(a), m = n + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.sin(a), w = o.value.pointerRadius, Ke = t + w * Math.cos(a + Math.PI / 2), Qe = n + w * Math.sin(a + Math.PI / 2), et = t + w * Math.cos(a - Math.PI / 2), tt = n + w * Math.sin(a - Math.PI / 2);
158
+ return isNaN(l) ? null : `M ${l},${m} ${Ke},${Qe} ${et},${tt} Z`;
159
+ }), q = d(() => {
160
+ for (let t = 0; t < P.value.series.length; t += 1) {
161
+ const { color: n, from: a, to: l } = P.value.series[t];
162
+ if (g.value >= a && g.value <= l)
163
+ return n;
164
164
  }
165
165
  return "#2D353C";
166
- }), C = ze(null), X = ze(null), L = h({
167
- get: () => s.value.segmentFontSize,
166
+ }), O = ze(null), Y = ze(null), B = d({
167
+ get: () => o.value.segmentFontSize,
168
168
  set: (t) => t
169
169
  }), { autoSizeLabels: be } = Ct({
170
- svgRef: E,
171
- fontSize: s.value.segmentFontSize,
170
+ svgRef: G,
171
+ fontSize: o.value.segmentFontSize,
172
172
  minFontSize: e.value.style.chart.layout.segmentNames.minFontSize,
173
- sizeRef: L,
173
+ sizeRef: B,
174
174
  labelClass: ".vue-ui-gauge-label-flat"
175
- }), G = h(() => !!e.value.debug);
175
+ }), U = d(() => !!e.value.debug);
176
176
  function Z() {
177
177
  let t = !1;
178
- if (Ae(m.dataset) ? (D({
178
+ if (Ae(p.dataset) ? (D({
179
179
  componentName: "VueUiGauge",
180
180
  type: "dataset",
181
- debug: G.value
182
- }), P.value = !0, t = !0) : (Oe({
183
- datasetObject: m.dataset,
181
+ debug: U.value
182
+ }), X.value = !0, t = !0) : (Oe({
183
+ datasetObject: p.dataset,
184
184
  requiredAttributes: ["value", "series"]
185
- }).forEach((u) => {
185
+ }).forEach((n) => {
186
186
  D({
187
187
  componentName: "VueUiGauge",
188
188
  type: "datasetAttribute",
189
- property: u,
190
- debug: G.value
191
- }), P.value = !0, t = !0;
192
- }), Object.hasOwn(m.dataset, "series") && (m.dataset.series.length ? m.dataset.series.forEach((u, a) => {
189
+ property: n,
190
+ debug: U.value
191
+ }), X.value = !0, t = !0;
192
+ }), Object.hasOwn(p.dataset, "series") && (p.dataset.series.length ? p.dataset.series.forEach((n, a) => {
193
193
  Oe({
194
- datasetObject: u,
194
+ datasetObject: n,
195
195
  requiredAttributes: ["from", "to"]
196
196
  }).forEach((l) => {
197
197
  D({
@@ -199,78 +199,78 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
199
199
  type: "datasetSerieAttribute",
200
200
  property: l,
201
201
  index: a,
202
- debug: G.value
203
- }), P.value = !0, t = !0;
202
+ debug: U.value
203
+ }), X.value = !0, t = !0;
204
204
  });
205
205
  }) : (D({
206
206
  componentName: "VueUiGauge",
207
207
  type: "datasetAttributeEmpty",
208
208
  property: "series",
209
- debug: G.value
210
- }), P.value = !0, t = !0))), P.value = t, _e(x.value.value || 0), e.value.responsive) {
211
- const u = pt(() => {
209
+ debug: U.value
210
+ }), X.value = !0, t = !0))), X.value = t, Se($.value.value || 0), e.value.responsive) {
211
+ const n = pt(() => {
212
212
  let { width: a, height: l } = kt({
213
- chart: A.value,
214
- title: e.value.style.chart.title.text ? ue.value : null,
215
- legend: ne.value,
213
+ chart: N.value,
214
+ title: e.value.style.chart.title.text ? ne.value : null,
215
+ legend: ue.value,
216
216
  source: ie.value,
217
217
  noTitle: ce.value
218
218
  });
219
219
  l -= 12, requestAnimationFrame(() => {
220
- s.value.width = a, s.value.height = l, s.value.centerX = a / 2, s.value.centerY = b.value / 2 / 358.4 * l, s.value.bottom = l, s.value.labelFontSize = 18 / b.value * Math.min(l, a) < 10 ? 10 : 18 / b.value * Math.min(l, a), s.value.legendFontSize = e.value.style.chart.legend.fontSize / b.value * Math.min(l, a) < 14 ? 14 : e.value.style.chart.legend.fontSize / b.value * Math.min(l, a), s.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / b.value * Math.min(l, a), s.value.trackSize = e.value.style.chart.layout.track.size / b.value * Math.min(l, a), s.value.pointerStrokeWidth = oe({
220
+ o.value.width = a, o.value.height = l, o.value.centerX = a / 2, o.value.centerY = _.value / 2 / 358.4 * l, o.value.bottom = l, o.value.labelFontSize = 18 / _.value * Math.min(l, a) < 10 ? 10 : 18 / _.value * Math.min(l, a), o.value.legendFontSize = e.value.style.chart.legend.fontSize / _.value * Math.min(l, a) < 14 ? 14 : e.value.style.chart.legend.fontSize / _.value * Math.min(l, a), o.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / _.value * Math.min(l, a), o.value.trackSize = e.value.style.chart.layout.track.size / _.value * Math.min(l, a), o.value.pointerStrokeWidth = se({
221
221
  relator: Math.min(a, l),
222
- adjuster: b.value,
222
+ adjuster: _.value,
223
223
  source: e.value.style.chart.layout.pointer.strokeWidth,
224
224
  threshold: 2,
225
225
  fallback: 2
226
- }), s.value.markerOffset = oe({
226
+ }), o.value.markerOffset = se({
227
227
  relator: Math.max(a, l),
228
- adjuster: b.value,
228
+ adjuster: _.value,
229
229
  source: e.value.style.chart.layout.markers.offsetY + 3,
230
230
  threshold: 2,
231
231
  fallback: 2
232
- }), s.value.segmentFontSize = oe({
232
+ }), o.value.segmentFontSize = se({
233
233
  relator: Math.min(a, l),
234
- adjuster: b.value,
234
+ adjuster: _.value,
235
235
  source: e.value.style.chart.layout.segmentNames.fontSize,
236
236
  threshold: 8,
237
237
  fallback: 8
238
238
  });
239
239
  }), be();
240
240
  });
241
- C.value && (X.value && C.value.unobserve(X.value), C.value.disconnect()), C.value = new ResizeObserver(u), X.value = A.value.parentNode, C.value.observe(X.value);
241
+ O.value && (Y.value && O.value.unobserve(Y.value), O.value.disconnect()), O.value = new ResizeObserver(n), Y.value = N.value.parentNode, O.value.observe(Y.value);
242
242
  }
243
243
  be();
244
244
  }
245
245
  lt(() => {
246
246
  Z();
247
- }), st(() => {
248
- C.value && (X.value && C.value.unobserve(X.value), C.value.disconnect());
247
+ }), ot(() => {
248
+ O.value && (Y.value && O.value.unobserve(Y.value), O.value.disconnect());
249
249
  });
250
- function _e(t) {
251
- const u = [];
252
- (O.value.series || []).forEach((_) => {
253
- u.push(_.from || 0), u.push(_.to || 0);
254
- }), I.value = Math.max(...u), z.value = Math.min(...u);
250
+ function Se(t) {
251
+ const n = [];
252
+ (P.value.series || []).forEach((w) => {
253
+ n.push(w.from || 0), n.push(w.to || 0);
254
+ }), R.value = Math.max(...n), A.value = Math.min(...n);
255
255
  let a = e.value.style.chart.animation.speed;
256
- const l = Math.abs(t - y.value) / (a * 60);
257
- function g() {
258
- y.value < t ? y.value = Math.min(y.value + l, t) : y.value > t && (y.value = Math.max(y.value - l, t)), y.value !== t && requestAnimationFrame(g);
256
+ const l = Math.abs(t - g.value) / (a * 60);
257
+ function m() {
258
+ g.value < t ? g.value = Math.min(g.value + l, t) : g.value > t && (g.value = Math.max(g.value - l, t)), g.value !== t && requestAnimationFrame(m);
259
259
  }
260
- g();
260
+ m();
261
261
  }
262
- const v = h(() => {
263
- const t = e.value.responsive ? Math.min(s.value.width, s.value.height) : s.value.width, u = 2.5 / e.value.style.chart.layout.radiusRatio;
262
+ const v = d(() => {
263
+ const t = e.value.responsive ? Math.min(o.value.width, o.value.height) : o.value.width, n = 2.5 / e.value.style.chart.layout.radiusRatio;
264
264
  return {
265
- arcs: t / u,
266
- gradients: t / (u * 1.1),
267
- base: e.value.responsive ? s.value.height / 1.618 : s.value.height * 0.7,
268
- ratingBase: e.value.responsive ? s.value.height / 2 + s.value.height / 4 : s.value.height * 0.9,
269
- pointerSize: e.value.responsive ? Math.min(s.value.width, s.value.height) / 3 : s.value.width / 3.2
265
+ arcs: t / n,
266
+ gradients: t / (n * 1.1),
267
+ base: e.value.responsive ? o.value.height / 1.618 : o.value.height * 0.7,
268
+ ratingBase: e.value.responsive ? o.value.height / 2 + o.value.height / 4 : o.value.height * 0.9,
269
+ pointerSize: e.value.responsive ? Math.min(o.value.width, o.value.height) / 3 : o.value.width / 3.2
270
270
  };
271
- }), d = h(() => te(
272
- { series: O.value.series },
273
- s.value.width / 2,
271
+ }), f = d(() => te(
272
+ { series: P.value.series },
273
+ o.value.width / 2,
274
274
  v.value.base,
275
275
  v.value.arcs,
276
276
  v.value.arcs,
@@ -279,10 +279,10 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
279
279
  1,
280
280
  180,
281
281
  109.9495,
282
- 40 * s.value.trackSize
283
- )), Be = h(() => te(
284
- { series: O.value.series },
285
- s.value.width / 2,
282
+ 40 * o.value.trackSize
283
+ )), Be = d(() => te(
284
+ { series: P.value.series },
285
+ o.value.width / 2,
286
286
  v.value.base,
287
287
  v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
288
288
  v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
@@ -291,48 +291,48 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
291
291
  1,
292
292
  180,
293
293
  109.9495,
294
- 40 * s.value.trackSize
295
- )), M = h(() => d.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), Se = h(() => {
296
- const { x: t, y: u } = F({
297
- initX: d.value[0].firstSeparator.x,
298
- initY: d.value[0].firstSeparator.y,
294
+ 40 * o.value.trackSize
295
+ )), I = d(() => f.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), _e = d(() => {
296
+ const { x: t, y: n } = M({
297
+ initX: f.value[0].firstSeparator.x,
298
+ initY: f.value[0].firstSeparator.y,
299
299
  centerX: i.value.x1,
300
300
  centerY: i.value.y1,
301
301
  offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
302
- }), { x: a, y: l } = F({
303
- initX: d.value[0].startX,
304
- initY: d.value[0].startY,
302
+ }), { x: a, y: l } = M({
303
+ initX: f.value[0].startX,
304
+ initY: f.value[0].startY,
305
305
  centerX: i.value.x1,
306
306
  centerY: i.value.y1,
307
307
  offset: e.value.style.chart.layout.segmentSeparators.offsetOut
308
308
  });
309
- return { x1: t, y1: u, x2: a, y2: l };
310
- }), we = h(() => d.value.map((t) => {
311
- const { x: u, y: a } = F({
309
+ return { x1: t, y1: n, x2: a, y2: l };
310
+ }), we = d(() => f.value.map((t) => {
311
+ const { x: n, y: a } = M({
312
312
  initX: t.separator.x,
313
313
  initY: t.separator.y,
314
314
  centerX: i.value.x1,
315
315
  centerY: i.value.y1,
316
316
  offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
317
- }), { x: l, y: g } = F({
317
+ }), { x: l, y: m } = M({
318
318
  initX: t.endX,
319
319
  initY: t.endY,
320
320
  centerX: i.value.x1,
321
321
  centerY: i.value.y1,
322
322
  offset: e.value.style.chart.layout.segmentSeparators.offsetOut
323
323
  });
324
- return { x1: u, y1: a, x2: l, y2: g };
324
+ return { x1: n, y1: a, x2: l, y2: m };
325
325
  }));
326
326
  function Ue(t) {
327
- if (t.reduce((g, _) => g + _, 0) > 100)
327
+ if (t.reduce((m, w) => m + w, 0) > 100)
328
328
  throw new Error("Total % must not exceed 100");
329
329
  const a = 50;
330
330
  let l = 0;
331
- return t.map((g) => (l += g, `${l / 100 * a - g / 4}%`));
331
+ return t.map((m) => (l += m, `${l / 100 * a - m / 4}%`));
332
332
  }
333
- const je = h(() => Ue(d.value.map((t) => t.proportion * 100))), We = h(() => te(
334
- { series: O.value.series },
335
- s.value.width / 2,
333
+ const je = d(() => Ue(f.value.map((t) => t.proportion * 100))), We = d(() => te(
334
+ { series: P.value.series },
335
+ o.value.width / 2,
336
336
  v.value.base,
337
337
  v.value.gradients,
338
338
  v.value.gradients,
@@ -341,44 +341,44 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
341
341
  1,
342
342
  180,
343
343
  110.02,
344
- 2 * s.value.trackSize
345
- )), De = h(() => {
346
- const t = z.value >= 0 ? -z.value : Math.abs(z.value);
347
- return dt({
348
- radius: e.value.style.chart.layout.indicatorArc.radius * s.value.trackSize,
349
- centerX: s.value.width / 2,
344
+ 2 * o.value.trackSize
345
+ )), De = d(() => {
346
+ const t = A.value >= 0 ? -A.value : Math.abs(A.value);
347
+ return ht({
348
+ radius: e.value.style.chart.layout.indicatorArc.radius * o.value.trackSize,
349
+ centerX: o.value.width / 2,
350
350
  centerY: v.value.base,
351
- percentage: ft((y.value + t) / (I.value + t))
351
+ percentage: ft((g.value + t) / (R.value + t))
352
352
  });
353
- }), Y = f(!1);
353
+ }), E = y(!1);
354
354
  function xe(t) {
355
- Y.value = t, re.value += 1;
355
+ E.value = t, re.value += 1;
356
356
  }
357
- const B = f(!1);
357
+ const j = y(!1);
358
358
  function J() {
359
- B.value = !B.value;
359
+ j.value = !j.value;
360
360
  }
361
361
  async function Ve({ scale: t = 2 } = {}) {
362
- if (!A.value) return;
363
- const { width: u, height: a } = A.value.getBoundingClientRect(), l = u / a, { imageUri: g, base64: _ } = await Ft({ domElement: A.value, base64: !0, img: !0, scale: t });
362
+ if (!N.value) return;
363
+ const { width: n, height: a } = N.value.getBoundingClientRect(), l = n / a, { imageUri: m, base64: w } = await Ft({ domElement: N.value, base64: !0, img: !0, scale: t });
364
364
  return {
365
- imageUri: g,
366
- base64: _,
365
+ imageUri: m,
366
+ base64: w,
367
367
  title: e.value.style.chart.title.text,
368
- width: u,
368
+ width: n,
369
369
  height: a,
370
370
  aspectRatio: l
371
371
  };
372
372
  }
373
- const He = h(() => e.value.style.chart.backgroundColor), qe = h(() => e.value.style.chart.title), { exportSvg: Ze, getSvg: Je } = xt({
374
- svg: E,
373
+ const He = d(() => e.value.style.chart.backgroundColor), qe = d(() => e.value.style.chart.title), { exportSvg: Ze, getSvg: Je } = xt({
374
+ svg: G,
375
375
  title: qe,
376
376
  backgroundColor: He
377
377
  });
378
378
  async function $e({ isCb: t }) {
379
379
  if (t) {
380
- const { blob: u, url: a, text: l, dataUrl: g } = await Je();
381
- e.value.userOptions.callbacks.svg({ blob: u, url: a, text: l, dataUrl: g });
380
+ const { blob: n, url: a, text: l, dataUrl: m } = await Je();
381
+ e.value.userOptions.callbacks.svg({ blob: n, url: a, text: l, dataUrl: m });
382
382
  } else
383
383
  Ze();
384
384
  }
@@ -389,37 +389,57 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
389
389
  generateSvg: $e,
390
390
  toggleAnnotator: J,
391
391
  toggleFullscreen: xe
392
- }), (t, u) => (o(), r("div", {
393
- class: Ce(`vue-data-ui-component vue-ui-gauge ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
392
+ }), (t, n) => (s(), r("div", {
393
+ class: Ce(`vue-data-ui-component vue-ui-gauge ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
394
394
  ref_key: "gaugeChart",
395
- ref: A,
396
- id: `vue-ui-gauge_${w.value}`,
395
+ ref: N,
396
+ id: `vue-ui-gauge_${x.value}`,
397
397
  style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
398
- onMouseenter: u[0] || (u[0] = () => n(de)(!0)),
399
- onMouseleave: u[1] || (u[1] = () => n(de)(!1))
398
+ onMouseenter: n[0] || (n[0] = () => u(he)(!0)),
399
+ onMouseleave: n[1] || (n[1] = () => u(he)(!1))
400
400
  }, [
401
- e.value.userOptions.buttons.annotator ? (o(), U(n(Ie), {
401
+ e.value.userOptions.buttons.annotator ? (s(), W(u(Ie), {
402
402
  key: 0,
403
- svgRef: n(E),
403
+ svgRef: u(G),
404
404
  backgroundColor: e.value.style.chart.backgroundColor,
405
405
  color: e.value.style.chart.color,
406
- active: B.value,
406
+ active: j.value,
407
407
  onClose: J
408
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
409
- Le.value ? (o(), r("div", {
408
+ }, {
409
+ "annotator-action-close": b(() => [
410
+ h(t.$slots, "annotator-action-close", {}, void 0, !0)
411
+ ]),
412
+ "annotator-action-color": b(({ color: a }) => [
413
+ h(t.$slots, "annotator-action-color", C(F({ color: a })), void 0, !0)
414
+ ]),
415
+ "annotator-action-draw": b(({ mode: a }) => [
416
+ h(t.$slots, "annotator-action-draw", C(F({ mode: a })), void 0, !0)
417
+ ]),
418
+ "annotator-action-undo": b(({ disabled: a }) => [
419
+ h(t.$slots, "annotator-action-undo", C(F({ disabled: a })), void 0, !0)
420
+ ]),
421
+ "annotator-action-redo": b(({ disabled: a }) => [
422
+ h(t.$slots, "annotator-action-redo", C(F({ disabled: a })), void 0, !0)
423
+ ]),
424
+ "annotator-action-delete": b(({ disabled: a }) => [
425
+ h(t.$slots, "annotator-action-delete", C(F({ disabled: a })), void 0, !0)
426
+ ]),
427
+ _: 3
428
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
429
+ Le.value ? (s(), r("div", {
410
430
  key: 1,
411
431
  ref_key: "noTitle",
412
432
  ref: ce,
413
433
  class: "vue-data-ui-no-title-space",
414
434
  style: "height:36px; width: 100%;background:transparent"
415
435
  }, null, 512)) : c("", !0),
416
- e.value.style.chart.title.text ? (o(), r("div", {
436
+ e.value.style.chart.title.text ? (s(), r("div", {
417
437
  key: 2,
418
438
  ref_key: "chartTitle",
419
- ref: ue,
439
+ ref: ne,
420
440
  style: "width:100%;background:transparent;padding-bottom:12px"
421
441
  }, [
422
- (o(), U(Ot, {
442
+ (s(), W(Ot, {
423
443
  key: `title_${ve.value}`,
424
444
  config: {
425
445
  title: {
@@ -432,254 +452,254 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
432
452
  }
433
453
  }
434
454
  }, {
435
- default: N(() => [
436
- e.value.translations.base && n(x).base ? (o(), r("span", Pt, R(e.value.translations.base) + ": " + R(n(x).base), 1)) : c("", !0)
455
+ default: b(() => [
456
+ e.value.translations.base && u($).base ? (s(), r("span", Pt, T(e.value.translations.base) + ": " + T(u($).base), 1)) : c("", !0)
437
457
  ]),
438
458
  _: 1
439
459
  }, 8, ["config"]))
440
460
  ], 512)) : c("", !0),
441
- e.value.userOptions.show && Te.value && (n(fe) || n(V)) ? (o(), U(n(Xe), {
461
+ e.value.userOptions.show && Te.value && (u(fe) || u(V)) ? (s(), W(u(Xe), {
442
462
  ref_key: "details",
443
463
  ref: Ee,
444
464
  key: `user_options_${re.value}`,
445
465
  backgroundColor: e.value.style.chart.backgroundColor,
446
466
  color: e.value.style.chart.color,
447
- isImaging: n(ge),
448
- isPrinting: n(ye),
449
- uid: w.value,
467
+ isImaging: u(ge),
468
+ isPrinting: u(ye),
469
+ uid: x.value,
450
470
  hasXls: !1,
451
471
  hasPdf: e.value.userOptions.buttons.pdf,
452
472
  hasImg: e.value.userOptions.buttons.img,
453
473
  hasSvg: e.value.userOptions.buttons.svg,
454
474
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
455
- isFullscreen: Y.value,
475
+ isFullscreen: E.value,
456
476
  titles: { ...e.value.userOptions.buttonTitles },
457
- chartElement: A.value,
477
+ chartElement: N.value,
458
478
  callbacks: e.value.userOptions.callbacks,
459
479
  printScale: e.value.userOptions.print.scale,
460
480
  position: e.value.userOptions.position,
461
481
  hasAnnotator: e.value.userOptions.buttons.annotator,
462
- isAnnotation: B.value,
482
+ isAnnotation: j.value,
463
483
  onToggleFullscreen: xe,
464
- onGeneratePdf: n(me),
465
- onGenerateImage: n(pe),
484
+ onGeneratePdf: u(me),
485
+ onGenerateImage: u(pe),
466
486
  onGenerateSvg: $e,
467
487
  onToggleAnnotator: J,
468
488
  style: ee({
469
- visibility: n(fe) ? n(V) ? "visible" : "hidden" : "visible"
489
+ visibility: u(fe) ? u(V) ? "visible" : "hidden" : "visible"
470
490
  })
471
- }, ot({ _: 2 }, [
491
+ }, st({ _: 2 }, [
472
492
  t.$slots.menuIcon ? {
473
493
  name: "menuIcon",
474
- fn: N(({ isOpen: a, color: l }) => [
475
- S(t.$slots, "menuIcon", j(W({ isOpen: a, color: l })), void 0, !0)
494
+ fn: b(({ isOpen: a, color: l }) => [
495
+ h(t.$slots, "menuIcon", C(F({ isOpen: a, color: l })), void 0, !0)
476
496
  ]),
477
497
  key: "0"
478
498
  } : void 0,
479
499
  t.$slots.optionPdf ? {
480
500
  name: "optionPdf",
481
- fn: N(() => [
482
- S(t.$slots, "optionPdf", {}, void 0, !0)
501
+ fn: b(() => [
502
+ h(t.$slots, "optionPdf", {}, void 0, !0)
483
503
  ]),
484
504
  key: "1"
485
505
  } : void 0,
486
506
  t.$slots.optionImg ? {
487
507
  name: "optionImg",
488
- fn: N(() => [
489
- S(t.$slots, "optionImg", {}, void 0, !0)
508
+ fn: b(() => [
509
+ h(t.$slots, "optionImg", {}, void 0, !0)
490
510
  ]),
491
511
  key: "2"
492
512
  } : void 0,
493
513
  t.$slots.optionSvg ? {
494
514
  name: "optionSvg",
495
- fn: N(() => [
496
- S(t.$slots, "optionSvg", {}, void 0, !0)
515
+ fn: b(() => [
516
+ h(t.$slots, "optionSvg", {}, void 0, !0)
497
517
  ]),
498
518
  key: "3"
499
519
  } : void 0,
500
520
  t.$slots.optionFullscreen ? {
501
521
  name: "optionFullscreen",
502
- fn: N(({ toggleFullscreen: a, isFullscreen: l }) => [
503
- S(t.$slots, "optionFullscreen", j(W({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
522
+ fn: b(({ toggleFullscreen: a, isFullscreen: l }) => [
523
+ h(t.$slots, "optionFullscreen", C(F({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
504
524
  ]),
505
525
  key: "4"
506
526
  } : void 0,
507
527
  t.$slots.optionAnnotator ? {
508
528
  name: "optionAnnotator",
509
- fn: N(({ toggleAnnotator: a, isAnnotator: l }) => [
510
- S(t.$slots, "optionAnnotator", j(W({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
529
+ fn: b(({ toggleAnnotator: a, isAnnotator: l }) => [
530
+ h(t.$slots, "optionAnnotator", C(F({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
511
531
  ]),
512
532
  key: "5"
513
533
  } : void 0
514
534
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
515
- (o(), r("svg", {
535
+ (s(), r("svg", {
516
536
  ref_key: "svgRef",
517
- ref: E,
518
- xmlns: n(yt),
519
- class: Ce({ "vue-data-ui-fullscreen--on": Y.value, "vue-data-ui-fulscreen--off": !Y.value }),
520
- viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
537
+ ref: G,
538
+ xmlns: u(yt),
539
+ class: Ce({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
540
+ viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
521
541
  style: ee(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
522
542
  }, [
523
- rt(n(Re)),
524
- t.$slots["chart-background"] ? (o(), r("foreignObject", {
543
+ rt(u(Re)),
544
+ t.$slots["chart-background"] ? (s(), r("foreignObject", {
525
545
  key: 0,
526
546
  x: 0,
527
547
  y: 0,
528
- width: s.value.width <= 0 ? 10 : s.value.width,
529
- height: s.value.height <= 0 ? 10 : s.value.height,
548
+ width: o.value.width <= 0 ? 10 : o.value.width,
549
+ height: o.value.height <= 0 ? 10 : o.value.height,
530
550
  style: {
531
551
  pointerEvents: "none"
532
552
  }
533
553
  }, [
534
- S(t.$slots, "chart-background", {}, void 0, !0)
554
+ h(t.$slots, "chart-background", {}, void 0, !0)
535
555
  ], 8, Xt)) : c("", !0),
536
- p("defs", null, [
537
- p("radialGradient", {
538
- id: `gradient_${w.value}`,
556
+ k("defs", null, [
557
+ k("radialGradient", {
558
+ id: `gradient_${x.value}`,
539
559
  cx: "50%",
540
560
  cy: "50%",
541
561
  r: "50%",
542
562
  fx: "50%",
543
563
  fy: "50%"
544
564
  }, [
545
- p("stop", {
565
+ k("stop", {
546
566
  offset: "0%",
547
- "stop-color": n(ae)("#FFFFFF", 1)
567
+ "stop-color": u(ae)("#FFFFFF", 1)
548
568
  }, null, 8, Yt),
549
- p("stop", {
569
+ k("stop", {
550
570
  offset: "80%",
551
- "stop-color": n(ae)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
571
+ "stop-color": u(ae)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
552
572
  }, null, 8, Tt),
553
- p("stop", {
573
+ k("stop", {
554
574
  offset: "100%",
555
- "stop-color": n(ae)("#FFFFFF", 1)
575
+ "stop-color": u(ae)("#FFFFFF", 1)
556
576
  }, null, 8, Et)
557
577
  ], 8, Rt)
558
578
  ]),
559
- p("defs", null, [
560
- p("filter", {
561
- id: `blur_${w.value}`,
579
+ k("defs", null, [
580
+ k("filter", {
581
+ id: `blur_${x.value}`,
562
582
  x: "-50%",
563
583
  y: "-50%",
564
584
  width: "200%",
565
585
  height: "200%"
566
586
  }, [
567
- p("feGaussianBlur", {
587
+ k("feGaussianBlur", {
568
588
  in: "SourceGraphic",
569
589
  stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
570
590
  }, null, 8, Gt)
571
591
  ], 8, Lt)
572
592
  ]),
573
- t.$slots.pattern ? (o(), r("g", Bt, [
574
- (o(!0), r(k, null, $(d.value, (a, l) => (o(), r("defs", null, [
575
- S(t.$slots, "pattern", T({ ref_for: !0 }, { seriesIndex: l, patternId: `pattern_${w.value}_${l}` }), void 0, !0)
593
+ t.$slots.pattern ? (s(), r("g", Bt, [
594
+ (s(!0), r(S, null, z(f.value, (a, l) => (s(), r("defs", null, [
595
+ h(t.$slots, "pattern", L({ ref_for: !0 }, { seriesIndex: l, patternId: `pattern_${x.value}_${l}` }), void 0, !0)
576
596
  ]))), 256))
577
597
  ])) : c("", !0),
578
- (o(!0), r(k, null, $(d.value, (a, l) => (o(), r("path", {
598
+ (s(!0), r(S, null, z(f.value, (a, l) => (s(), r("path", {
579
599
  key: `arc_${l}`,
580
600
  d: a.arcSlice,
581
601
  fill: a.color,
582
602
  stroke: e.value.style.chart.backgroundColor,
583
603
  "stroke-linecap": "round"
584
604
  }, null, 8, Ut))), 128)),
585
- t.$slots.pattern ? (o(!0), r(k, { key: 2 }, $(d.value, (a, l) => (o(), r("path", {
605
+ t.$slots.pattern ? (s(!0), r(S, { key: 2 }, z(f.value, (a, l) => (s(), r("path", {
586
606
  key: `arc_${l}`,
587
607
  d: a.arcSlice,
588
- fill: `url(#pattern_${w.value}_${l})`,
608
+ fill: `url(#pattern_${x.value}_${l})`,
589
609
  stroke: e.value.style.chart.backgroundColor,
590
610
  "stroke-linecap": "round"
591
611
  }, null, 8, jt))), 128)) : c("", !0),
592
- e.value.style.chart.layout.indicatorArc.show ? (o(), r("path", {
612
+ e.value.style.chart.layout.indicatorArc.show ? (s(), r("path", {
593
613
  key: 3,
594
614
  d: De.value,
595
615
  fill: e.value.style.chart.layout.indicatorArc.fill
596
616
  }, null, 8, Wt)) : c("", !0),
597
- e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (o(), r(k, { key: 4 }, [
598
- (o(!0), r(k, null, $(d.value, (a, l) => (o(), r("path", {
599
- id: `curve_${w.value}_${l}`,
600
- d: `M ${i.value.x1},${i.value.y1} m -${M.value[l]},0 a ${M.value[l]},${M.value[l]} 0 1,1 ${2 * M.value[l]},0 a ${M.value[l]},${M.value[l]} 0 1,1 -${2 * M.value[l]},0`,
617
+ e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), r(S, { key: 4 }, [
618
+ (s(!0), r(S, null, z(f.value, (a, l) => (s(), r("path", {
619
+ id: `curve_${x.value}_${l}`,
620
+ d: `M ${i.value.x1},${i.value.y1} m -${I.value[l]},0 a ${I.value[l]},${I.value[l]} 0 1,1 ${2 * I.value[l]},0 a ${I.value[l]},${I.value[l]} 0 1,1 -${2 * I.value[l]},0`,
601
621
  fill: "transparent"
602
622
  }, null, 8, Dt))), 256)),
603
- (o(!0), r(k, null, $(d.value, (a, l) => (o(), r("text", {
623
+ (s(!0), r(S, null, z(f.value, (a, l) => (s(), r("text", {
604
624
  fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
605
- "font-size": L.value,
625
+ "font-size": B.value,
606
626
  "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
607
627
  "text-anchor": "middle"
608
628
  }, [
609
- p("textPath", {
610
- href: `#curve_${w.value}_${l}`,
629
+ k("textPath", {
630
+ href: `#curve_${x.value}_${l}`,
611
631
  startOffset: je.value[l]
612
- }, R(a.name || ""), 9, Ht)
632
+ }, T(a.name || ""), 9, Ht)
613
633
  ], 8, Vt))), 256))
614
634
  ], 64)) : c("", !0),
615
- e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (o(!0), r(k, { key: 5 }, $(Be.value, (a, l) => (o(), r("text", {
635
+ e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), r(S, { key: 5 }, z(Be.value, (a, l) => (s(), r("text", {
616
636
  class: "vue-ui-gauge-label-flat",
617
- "text-anchor": n(mt)(a, !1, 12).anchor,
637
+ "text-anchor": u(mt)(a, !1, 12).anchor,
618
638
  fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
619
- "font-size": L.value,
639
+ "font-size": B.value,
620
640
  "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
621
- innerHTML: n(gt)({
641
+ innerHTML: u(gt)({
622
642
  content: String(a.name ?? ""),
623
- fontSize: L.value,
643
+ fontSize: B.value,
624
644
  fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
625
645
  x: a.center.endX,
626
646
  y: a.center.endY
627
647
  })
628
648
  }, null, 8, qt))), 256)) : c("", !0),
629
- e.value.style.chart.layout.track.useGradient ? (o(!0), r(k, { key: 6 }, $(We.value, (a, l) => (o(), r("path", {
649
+ e.value.style.chart.layout.track.useGradient ? (s(!0), r(S, { key: 6 }, z(We.value, (a, l) => (s(), r("path", {
630
650
  key: `arc_${l}`,
631
651
  d: a.arcSlice,
632
652
  fill: "#FFFFFF",
633
653
  stroke: "none",
634
654
  "stroke-linecap": "round",
635
- filter: `url(#blur_${w.value})`
655
+ filter: `url(#blur_${x.value})`
636
656
  }, null, 8, Zt))), 128)) : c("", !0),
637
- e.value.style.chart.layout.segmentSeparators.show ? (o(), r(k, { key: 7 }, [
638
- p("line", T(Se.value, {
657
+ e.value.style.chart.layout.segmentSeparators.show ? (s(), r(S, { key: 7 }, [
658
+ k("line", L(_e.value, {
639
659
  stroke: e.value.style.chart.backgroundColor,
640
660
  "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
641
661
  "stroke-linecap": "round"
642
662
  }), null, 16, Jt),
643
- p("line", T(Se.value, {
663
+ k("line", L(_e.value, {
644
664
  stroke: e.value.style.chart.layout.segmentSeparators.stroke,
645
665
  "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
646
666
  "stroke-linecap": "round"
647
667
  }), null, 16, Kt),
648
- (o(!0), r(k, null, $(we.value, (a) => (o(), r("line", T({ ref_for: !0 }, a, {
668
+ (s(!0), r(S, null, z(we.value, (a) => (s(), r("line", L({ ref_for: !0 }, a, {
649
669
  stroke: e.value.style.chart.backgroundColor,
650
670
  "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
651
671
  "stroke-linecap": "round"
652
672
  }), null, 16, Qt))), 256)),
653
- (o(!0), r(k, null, $(we.value, (a) => (o(), r("line", T({ ref_for: !0 }, a, {
673
+ (s(!0), r(S, null, z(we.value, (a) => (s(), r("line", L({ ref_for: !0 }, a, {
654
674
  stroke: e.value.style.chart.layout.segmentSeparators.stroke,
655
675
  "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
656
676
  "stroke-linecap": "round"
657
677
  }), null, 16, ea))), 256))
658
678
  ], 64)) : c("", !0),
659
- e.value.style.chart.layout.markers.show ? (o(), r("g", ta, [
660
- (o(!0), r(k, null, $(d.value, (a, l) => (o(), r("text", {
661
- x: n(F)({
679
+ e.value.style.chart.layout.markers.show ? (s(), r("g", ta, [
680
+ (s(!0), r(S, null, z(f.value, (a, l) => (s(), r("text", {
681
+ x: u(M)({
662
682
  centerX: i.value.x1,
663
683
  centerY: v.value.base,
664
684
  initX: a.center.startX,
665
685
  initY: a.center.startY,
666
- offset: s.value.markerOffset
686
+ offset: o.value.markerOffset
667
687
  }).x,
668
- y: n(F)({
688
+ y: u(M)({
669
689
  centerX: i.value.x1,
670
690
  centerY: v.value.base,
671
691
  initX: a.center.startX,
672
692
  initY: a.center.startY,
673
- offset: s.value.markerOffset
693
+ offset: o.value.markerOffset
674
694
  }).y,
675
695
  "text-anchor": a.center.startX < i.value.x1 - 5 ? "end" : a.center.startX > i.value.x1 + 5 ? "start" : "middle",
676
- "font-size": s.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
696
+ "font-size": o.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
677
697
  "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
678
698
  fill: e.value.style.chart.layout.markers.color
679
- }, R(n(le)(
699
+ }, T(u(le)(
680
700
  e.value.style.chart.layout.markers.formatter,
681
701
  a.from,
682
- n(se)({
702
+ u(oe)({
683
703
  p: e.value.style.chart.layout.markers.prefix,
684
704
  v: a.from,
685
705
  s: e.value.style.chart.layout.markers.suffix,
@@ -687,49 +707,49 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
687
707
  })
688
708
  )), 9, aa))), 256))
689
709
  ])) : c("", !0),
690
- e.value.style.chart.layout.markers.show ? (o(), r("text", {
710
+ e.value.style.chart.layout.markers.show ? (s(), r("text", {
691
711
  key: 9,
692
- x: n(F)({
693
- centerX: s.value.width / 2,
712
+ x: u(M)({
713
+ centerX: o.value.width / 2,
694
714
  centerY: v.value.base,
695
- initX: d.value.at(-1).endX,
696
- initY: d.value.at(-1).endY,
697
- offset: s.value.markerOffset
715
+ initX: f.value.at(-1).endX,
716
+ initY: f.value.at(-1).endY,
717
+ offset: o.value.markerOffset
698
718
  }).x,
699
- y: n(F)({
700
- centerX: s.value.width / 2,
719
+ y: u(M)({
720
+ centerX: o.value.width / 2,
701
721
  centerY: v.value.base,
702
- initX: d.value.at(-1).endX,
703
- initY: d.value.at(-1).endY,
704
- offset: s.value.markerOffset
722
+ initX: f.value.at(-1).endX,
723
+ initY: f.value.at(-1).endY,
724
+ offset: o.value.markerOffset
705
725
  }).y,
706
726
  "text-anchor": "start",
707
- "font-size": s.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
727
+ "font-size": o.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
708
728
  "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
709
729
  fill: e.value.style.chart.layout.markers.color
710
- }, R(n(le)(
730
+ }, T(u(le)(
711
731
  e.value.style.chart.layout.markers.formatter,
712
- I.value,
713
- n(se)({
732
+ R.value,
733
+ u(oe)({
714
734
  p: e.value.style.chart.layout.markers.prefix,
715
- v: I.value,
735
+ v: R.value,
716
736
  s: e.value.style.chart.layout.markers.suffix,
717
737
  r: e.value.style.chart.layout.markers.roundingValue
718
738
  })
719
739
  )), 9, la)) : c("", !0),
720
- e.value.style.chart.layout.pointer.show ? (o(), r(k, { key: 10 }, [
721
- e.value.style.chart.layout.pointer.type === "rounded" ? (o(), r("g", sa, [
722
- isNaN(i.value.x2) ? c("", !0) : (o(), r("line", {
740
+ e.value.style.chart.layout.pointer.show ? (s(), r(S, { key: 10 }, [
741
+ e.value.style.chart.layout.pointer.type === "rounded" ? (s(), r("g", oa, [
742
+ isNaN(i.value.x2) ? c("", !0) : (s(), r("line", {
723
743
  key: 0,
724
744
  x1: i.value.x1,
725
745
  y1: i.value.y1,
726
746
  x2: i.value.x2,
727
747
  y2: i.value.y2,
728
748
  stroke: e.value.style.chart.layout.pointer.stroke,
729
- "stroke-width": s.value.pointerStrokeWidth,
749
+ "stroke-width": o.value.pointerStrokeWidth,
730
750
  "stroke-linecap": "round"
731
- }, null, 8, oa)),
732
- isNaN(i.value.x2) ? c("", !0) : (o(), r("line", {
751
+ }, null, 8, sa)),
752
+ isNaN(i.value.x2) ? c("", !0) : (s(), r("line", {
733
753
  key: 1,
734
754
  x1: i.value.x1,
735
755
  y1: i.value.y1,
@@ -737,9 +757,9 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
737
757
  y2: i.value.y2,
738
758
  stroke: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
739
759
  "stroke-linecap": "round",
740
- "stroke-width": s.value.pointerStrokeWidth * 0.7
760
+ "stroke-width": o.value.pointerStrokeWidth * 0.7
741
761
  }, null, 8, ra)),
742
- !isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (o(), r("line", {
762
+ !isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), r("line", {
743
763
  key: 2,
744
764
  x1: i.value.x1,
745
765
  y1: i.value.y1,
@@ -747,11 +767,11 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
747
767
  y2: i.value.y2,
748
768
  stroke: "white",
749
769
  "stroke-linecap": "round",
750
- "stroke-width": s.value.pointerStrokeWidth * 0.3,
751
- filter: `url(#blur_${w.value})`
752
- }, null, 8, ua)) : c("", !0)
753
- ])) : (o(), r("g", na, [
754
- ke.value ? (o(), r("path", {
770
+ "stroke-width": o.value.pointerStrokeWidth * 0.3,
771
+ filter: `url(#blur_${x.value})`
772
+ }, null, 8, na)) : c("", !0)
773
+ ])) : (s(), r("g", ua, [
774
+ ke.value ? (s(), r("path", {
755
775
  key: 0,
756
776
  d: ke.value,
757
777
  fill: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
@@ -760,56 +780,56 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
760
780
  "stroke-linejoin": "round"
761
781
  }, null, 8, ia)) : c("", !0)
762
782
  ])),
763
- p("circle", {
764
- cx: s.value.width / 2,
783
+ k("circle", {
784
+ cx: o.value.width / 2,
765
785
  cy: v.value.base,
766
786
  fill: e.value.style.chart.layout.pointer.circle.color,
767
- r: s.value.pointerRadius <= 0 ? 1e-4 : s.value.pointerRadius,
787
+ r: o.value.pointerRadius <= 0 ? 1e-4 : o.value.pointerRadius,
768
788
  "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
769
789
  stroke: e.value.style.chart.layout.pointer.circle.stroke
770
790
  }, null, 8, ca)
771
791
  ], 64)) : c("", !0),
772
- e.value.style.chart.legend.show ? (o(), r("text", {
792
+ e.value.style.chart.legend.show ? (s(), r("text", {
773
793
  key: 11,
774
- x: s.value.width / 2,
794
+ x: o.value.width / 2,
775
795
  y: v.value.ratingBase,
776
796
  "text-anchor": "middle",
777
- "font-size": s.value.legendFontSize,
797
+ "font-size": o.value.legendFontSize,
778
798
  "font-weight": "bold",
779
799
  fill: e.value.style.chart.legend.useRatingColor ? q.value : e.value.style.chart.legend.color
780
- }, R(n(le)(
800
+ }, T(u(le)(
781
801
  e.value.style.chart.legend.formatter,
782
- y.value,
783
- n(se)({
784
- p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && y.value > 0 ? "+" : ""),
785
- v: y.value,
802
+ g.value,
803
+ u(oe)({
804
+ p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && g.value > 0 ? "+" : ""),
805
+ v: g.value,
786
806
  s: e.value.style.chart.legend.suffix,
787
807
  r: e.value.style.chart.legend.roundingValue
788
808
  })
789
809
  )), 9, va)) : c("", !0),
790
- S(t.$slots, "svg", { svg: s.value }, void 0, !0)
810
+ h(t.$slots, "svg", { svg: o.value }, void 0, !0)
791
811
  ], 14, It)),
792
- t.$slots.watermark ? (o(), r("div", ha, [
793
- S(t.$slots, "watermark", j(W({ isPrinting: n(ye) || n(ge) })), void 0, !0)
812
+ t.$slots.watermark ? (s(), r("div", da, [
813
+ h(t.$slots, "watermark", C(F({ isPrinting: u(ye) || u(ge) })), void 0, !0)
794
814
  ])) : c("", !0),
795
- p("div", {
815
+ k("div", {
796
816
  ref_key: "chartLegend",
797
- ref: ne
817
+ ref: ue
798
818
  }, [
799
- S(t.$slots, "legend", { legend: O.value }, void 0, !0)
819
+ h(t.$slots, "legend", { legend: P.value }, void 0, !0)
800
820
  ], 512),
801
- t.$slots.source ? (o(), r("div", {
821
+ t.$slots.source ? (s(), r("div", {
802
822
  key: 5,
803
823
  ref_key: "source",
804
824
  ref: ie,
805
825
  dir: "auto"
806
826
  }, [
807
- S(t.$slots, "source", {}, void 0, !0)
827
+ h(t.$slots, "source", {}, void 0, !0)
808
828
  ], 512)) : c("", !0),
809
- n(he) ? (o(), U(_t, { key: 6 })) : c("", !0)
829
+ u(de) ? (s(), W(St, { key: 6 })) : c("", !0)
810
830
  ], 46, Nt));
811
831
  }
812
- }, Fa = /* @__PURE__ */ Mt(da, [["__scopeId", "data-v-21a41476"]]);
832
+ }, Fa = /* @__PURE__ */ Mt(ha, [["__scopeId", "data-v-90ebd1c4"]]);
813
833
  export {
814
834
  Fa as default
815
835
  };