vue-data-ui 2.12.6 → 2.12.7-beta.0

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