vue-data-ui 3.20.11 → 3.21.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 (188) hide show
  1. package/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
  2. package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
  3. package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
  4. package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
  5. package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
  6. package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
  7. package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
  8. package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
  10. package/dist/{PackageVersion-eS823iMF.js → PackageVersion-DYLo3MRd.js} +1 -1
  11. package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
  12. package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
  13. package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
  14. package/dist/{SlicerPreview-By4kBVCY.js → SlicerPreview-CXLgqXX8.js} +6 -6
  15. package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
  16. package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
  17. package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
  18. package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
  89. package/dist/exposedLib-BJbE_A8E.js +19 -0
  90. package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
  91. package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
  92. package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
  93. package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
  94. package/dist/ssr.js +1366 -0
  95. package/dist/types/ssr.d.ts +128 -0
  96. package/dist/types/vue-data-ui.d.ts +135 -1
  97. package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
  98. package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
  99. package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
  100. package/dist/utils.js +8 -8
  101. package/dist/{vue-data-ui-0t8DsSSW.js → vue-data-ui-D2dM3IQZ.js} +68 -68
  102. package/dist/vue-data-ui.js +72 -72
  103. package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
  104. package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
  105. package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
  106. package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
  107. package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
  108. package/dist/{vue-ui-bump-CE8VRCs2.js → vue-ui-bump-BVCYywuS.js} +253 -253
  109. package/dist/{vue-ui-candlestick-B4tkLoQe.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
  110. package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
  111. package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
  112. package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
  113. package/dist/{vue-ui-circle-pack-SCxS2mrl.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
  114. package/dist/{vue-ui-cursor-DT8uNrQa.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
  115. package/dist/{vue-ui-dag-CK30vhll.js → vue-ui-dag-lL0juBzN.js} +20 -20
  116. package/dist/{vue-ui-dashboard-Cf21Q0H0.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
  117. package/dist/{vue-ui-digits-DiapBzIK.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
  118. package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
  119. package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
  120. package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
  121. package/dist/{vue-ui-flow-uPuvDSxv.js → vue-ui-flow-BXfzMTXx.js} +57 -57
  122. package/dist/{vue-ui-funnel-CCy9NFKa.js → vue-ui-funnel-BpnC82m0.js} +32 -32
  123. package/dist/{vue-ui-galaxy-BjoOO1lq.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
  124. package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
  125. package/dist/{vue-ui-geo-C8FXD9it.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
  126. package/dist/{vue-ui-gizmo-BiLdRUEw.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
  127. package/dist/{vue-ui-heatmap-D3ewCJX6.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
  128. package/dist/{vue-ui-history-plot-BpyvvMPA.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
  129. package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
  130. package/dist/{vue-ui-kpi-YCPfpGty.js → vue-ui-kpi-B9bdicir.js} +3 -3
  131. package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
  132. package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
  133. package/dist/{vue-ui-mood-radar-81X63j-D.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
  134. package/dist/{vue-ui-nested-donuts-C1j-h8RW.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
  135. package/dist/{vue-ui-onion-CZLJxedN.js → vue-ui-onion-3fJB4mfC.js} +45 -45
  136. package/dist/{vue-ui-parallel-coordinate-plot-Czndz3oA.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
  137. package/dist/{vue-ui-quadrant-LwMr7DKL.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
  138. package/dist/{vue-ui-quick-chart-C20W7LNY.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
  139. package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
  140. package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
  141. package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
  142. package/dist/{vue-ui-ridgeline-B5BRKUoc.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
  143. package/dist/{vue-ui-rings-DVA3hiUL.js → vue-ui-rings-BgFO7NYF.js} +81 -81
  144. package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
  145. package/dist/{vue-ui-skeleton-DxXA3XSP.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
  146. package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
  147. package/dist/{vue-ui-spark-trend-B3mkyeZ3.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
  148. package/dist/{vue-ui-sparkbar-BlmV-ndv.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
  149. package/dist/{vue-ui-sparkgauge-DKRJDqAS.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
  150. package/dist/{vue-ui-sparkhistogram-BNiXxI65.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
  151. package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
  152. package/dist/{vue-ui-sparkstackbar-C6qMimoL.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
  153. package/dist/{vue-ui-stackbar-C7jTnGyT.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
  154. package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
  155. package/dist/{vue-ui-strip-plot-CvjdxEOT.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
  156. package/dist/{vue-ui-table-B0zkvlw5.js → vue-ui-table-R-aXpHvF.js} +78 -78
  157. package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
  158. package/dist/{vue-ui-table-sparkline-BQjo2sbB.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
  159. package/dist/{vue-ui-thermometer-CVhxnkN-.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
  160. package/dist/{vue-ui-timer-Cimuw9rF.js → vue-ui-timer-AlYvthQ6.js} +23 -23
  161. package/dist/{vue-ui-tiremarks-CSPL1oli.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
  162. package/dist/{vue-ui-treemap-BWivpffU.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
  163. package/dist/{vue-ui-waffle-FmLPDL2g.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
  164. package/dist/{vue-ui-wheel-BjdVO5f4.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
  165. package/dist/{vue-ui-word-cloud-hhjEM6ee.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
  166. package/dist/{vue-ui-world-H9HX6smc.js → vue-ui-world-B93iq1ZM.js} +445 -445
  167. package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
  168. package/dist/{vue-ui-xy-canvas-kbP-mjEo.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
  169. package/package.json +5 -1
  170. package/dist/exposedLib-CI8ji8G-.js +0 -19
  171. package/dist/vue-ui-3d-bar-D1dX4mDU.js +0 -1757
  172. package/dist/vue-ui-age-pyramid-BYIxO-rR.js +0 -1238
  173. package/dist/vue-ui-bullet-B65T4IyK.js +0 -710
  174. package/dist/vue-ui-carousel-table-DB1kG5AJ.js +0 -455
  175. package/dist/vue-ui-chestnut-CXzK4gsf.js +0 -2010
  176. package/dist/vue-ui-chord-BhuABwXT.js +0 -1391
  177. package/dist/vue-ui-donut-DrM628Ge.js +0 -2410
  178. package/dist/vue-ui-donut-evolution-CIXY4tKY.js +0 -1510
  179. package/dist/vue-ui-dumbbell-B8V84XkY.js +0 -1530
  180. package/dist/vue-ui-gauge-DbV0oQs3.js +0 -920
  181. package/dist/vue-ui-horizontal-bar-DoCvNzdC.js +0 -1681
  182. package/dist/vue-ui-molecule-IFNTvQdE.js +0 -925
  183. package/dist/vue-ui-radar-Dxopl3RI.js +0 -1229
  184. package/dist/vue-ui-relation-circle-CMRXow6X.js +0 -924
  185. package/dist/vue-ui-scatter-DcveiIfl.js +0 -2413
  186. package/dist/vue-ui-sparkline-C5EDZIAt.js +0 -1507
  187. package/dist/vue-ui-stackline-fdOF6lLn.js +0 -2398
  188. package/dist/vue-ui-xy-omDIF90L.js +0 -4744
@@ -0,0 +1,920 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { B as t, Bt as n, C as r, Ct as i, Et as a, G as o, H as ee, Ht as s, Ot as te, Pt as c, Tt as ne, Vt as l, X as u, ct as re, i as ie, t as ae, u as oe, v as se, x as ce, y as le } from "./lib-AJRHFE5U.js";
3
+ import { t as ue } from "./useConfig-DnH7Pf_2.js";
4
+ import { t as de } from "./usePrinter-6n2MzVyV.js";
5
+ import { n as fe, t as pe } from "./BaseScanner-Dr2a1Msy.js";
6
+ import { t as me } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as he } from "./useNestedProp-DtcXIg7n.js";
8
+ import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as _e } from "./img-C_RNNswI.js";
10
+ import { n as ve } from "./Title-DH6G8_cZ.js";
11
+ import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import { c as be } from "./canvas-lib-BOP_HS11.js";
13
+ import { t as xe } from "./useResponsive-BfnK0KxU.js";
14
+ import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
15
+ import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
16
+ import { t as we } from "./useAutoSizeLabelsInsideViewbox-kjVKQz36.js";
17
+ import { t as Te } from "./vue_ui_gauge-Cf1RZc9q.js";
18
+ import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ee, createVNode as De, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as y, nextTick as Oe, normalizeClass as ke, normalizeProps as b, normalizeStyle as Ae, onBeforeUnmount as je, onMounted as Me, openBlock as x, ref as S, renderList as C, renderSlot as w, shallowRef as Ne, toDisplayString as T, toRefs as Pe, unref as E, watch as Fe, withCtx as D } from "vue";
19
+ //#region src/components/vue-ui-gauge.vue
20
+ var Ie = /* @__PURE__ */ e({ default: () => vt }), Le = ["id"], Re = { key: 0 }, ze = ["xmlns", "viewBox"], Be = ["width", "height"], Ve = ["id"], He = ["stop-color"], Ue = ["stop-color"], We = ["stop-color"], Ge = ["id"], Ke = ["stdDeviation"], qe = { key: 1 }, Je = [
21
+ "d",
22
+ "fill",
23
+ "stroke"
24
+ ], Ye = [
25
+ "d",
26
+ "fill",
27
+ "stroke"
28
+ ], Xe = ["d", "fill"], Ze = ["id", "d"], Qe = [
29
+ "fill",
30
+ "font-size",
31
+ "font-weight"
32
+ ], $e = ["href", "startOffset"], et = [
33
+ "text-anchor",
34
+ "fill",
35
+ "font-size",
36
+ "font-weight",
37
+ "innerHTML"
38
+ ], tt = ["d", "filter"], nt = ["stroke", "stroke-width"], rt = ["stroke", "stroke-width"], it = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ot = { key: 8 }, st = [
39
+ "x",
40
+ "y",
41
+ "text-anchor",
42
+ "font-size",
43
+ "font-weight",
44
+ "fill"
45
+ ], ct = [
46
+ "x",
47
+ "y",
48
+ "font-size",
49
+ "font-weight",
50
+ "fill"
51
+ ], lt = { key: 0 }, ut = [
52
+ "x1",
53
+ "y1",
54
+ "x2",
55
+ "y2",
56
+ "stroke",
57
+ "stroke-width"
58
+ ], dt = [
59
+ "x1",
60
+ "y1",
61
+ "x2",
62
+ "y2",
63
+ "stroke",
64
+ "stroke-width"
65
+ ], ft = [
66
+ "x1",
67
+ "y1",
68
+ "x2",
69
+ "y2",
70
+ "stroke-width",
71
+ "filter"
72
+ ], pt = { key: 1 }, mt = [
73
+ "d",
74
+ "fill",
75
+ "stroke",
76
+ "stroke-width"
77
+ ], ht = [
78
+ "cx",
79
+ "cy",
80
+ "fill",
81
+ "r",
82
+ "stroke-width",
83
+ "stroke"
84
+ ], gt = [
85
+ "x",
86
+ "y",
87
+ "font-size",
88
+ "fill"
89
+ ], _t = {
90
+ key: 4,
91
+ class: "vue-data-ui-watermark"
92
+ }, vt = /* @__PURE__ */ ye({
93
+ __name: "vue-ui-gauge",
94
+ props: {
95
+ config: {
96
+ type: Object,
97
+ default() {
98
+ return {};
99
+ }
100
+ },
101
+ dataset: {
102
+ type: Object,
103
+ default() {
104
+ return {};
105
+ }
106
+ }
107
+ },
108
+ emits: ["copyAlt"],
109
+ setup(e, { expose: ye, emit: Ie }) {
110
+ let vt = _(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), yt = _(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), bt = _(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), { vue_ui_gauge: xt } = ue(), { isThemeValid: St, warnInvalidTheme: Ct } = ge(), O = e, wt = Ie, Tt = f(() => !!O.dataset && Object.keys(O.dataset).length > 0 && O.dataset.series && O.dataset.series.length), k = S(ee()), Et = S(null), Dt = S(0), A = S(null), Ot = S(null), kt = S(null), At = S(null), jt = S(null), Mt = S(0), j = S(!1), M = S(!1), N = S(Rt()), Nt = f(() => N.value.userOptions.useCursorPointer), Pt = f(() => s({
111
+ defaultConfig: {
112
+ userOptions: { show: !1 },
113
+ style: { chart: {
114
+ backgroundColor: "#99999930",
115
+ animation: { use: !1 },
116
+ layout: {
117
+ markers: { show: !1 },
118
+ segmentSeparators: { stroke: "#6A6A6A" },
119
+ segmentNames: { show: !1 },
120
+ indicatorArc: { fill: "#6A6A6A50" },
121
+ pointer: {
122
+ stroke: "#6A6A6A",
123
+ useRatingColor: !0,
124
+ circle: {
125
+ stroke: "#6A6A6A",
126
+ color: "#6A6A6A"
127
+ }
128
+ }
129
+ },
130
+ legend: { show: !1 }
131
+ } }
132
+ },
133
+ userConfig: N.value.skeletonConfig ?? {}
134
+ })), { loading: Ft, FINAL_DATASET: P, manualLoading: F } = fe({
135
+ ...Pe(O),
136
+ FINAL_CONFIG: N,
137
+ prepareConfig: Rt,
138
+ callback: () => {
139
+ Promise.resolve().then(async () => {
140
+ await Oe();
141
+ });
142
+ },
143
+ skeletonDataset: O.config?.skeletonDataset ?? {
144
+ value: 0,
145
+ series: [{
146
+ from: -1,
147
+ to: 0,
148
+ name: "_",
149
+ color: "#A1A1A1"
150
+ }, {
151
+ from: 0,
152
+ to: 1,
153
+ name: "__",
154
+ color: "#CACACA"
155
+ }]
156
+ },
157
+ skeletonConfig: s({
158
+ defaultConfig: N.value,
159
+ userConfig: Pt.value
160
+ })
161
+ }), { userOptionsVisible: I, setUserOptionsVisibility: It, keepUserOptionState: Lt } = Se({ config: N.value }), { svgRef: L } = Ce({ config: N.value.style.chart.title });
162
+ Fe(() => O.config, (e) => {
163
+ Ft.value || (N.value = Rt()), I.value = !N.value.userOptions.showOnChartHover, Jt(), Mt.value += 1;
164
+ }, { deep: !0 }), Fe(() => O.dataset, (e) => {
165
+ Jt(), e && Object.keys(e).length > 0 && (F.value = N.value?.loading ?? !1);
166
+ }, {
167
+ deep: !0,
168
+ immediate: !1
169
+ });
170
+ function Rt() {
171
+ let e = he({
172
+ userConfig: O.config,
173
+ defaultConfig: xt
174
+ }), t = e.theme;
175
+ if (!t) return e;
176
+ if (!St.value(e)) return Ct(e), e;
177
+ let r = he({
178
+ userConfig: Te[t] || O.config,
179
+ defaultConfig: e
180
+ }), i = he({
181
+ userConfig: O.config,
182
+ defaultConfig: r
183
+ });
184
+ return {
185
+ ...i,
186
+ customPalette: i.customPalette.length ? i.customPalette : n[t] || te
187
+ };
188
+ }
189
+ let { isPrinting: zt, isImaging: Bt, generatePdf: Vt, generateImage: Ht } = de({
190
+ elementId: `vue-ui-gauge_${k.value}`,
191
+ fileName: N.value.style.chart.title.text || "vue-ui-gauge",
192
+ options: N.value.userOptions.print
193
+ }), Ut = f(() => N.value.userOptions.show && !N.value.style.chart.title.text), Wt = f(() => ce(N.value.customPalette)), R = f(() => {
194
+ if (ne(P.value.series || {})) return {
195
+ value: 0,
196
+ series: [{
197
+ from: 0,
198
+ to: 0
199
+ }]
200
+ };
201
+ let e = [];
202
+ (P.value.series || []).forEach((t) => {
203
+ e.push(t.from || 1e-7), e.push(t.to || 1e-7);
204
+ });
205
+ let t = Math.max(...e);
206
+ return {
207
+ ...P.value,
208
+ series: (P.value.series || []).map((e, n) => ({
209
+ ...e,
210
+ color: le(e.color) || Wt.value[n] || te[n],
211
+ value: ((e.to || 0) - (e.from || 0)) / t * 100
212
+ }))
213
+ };
214
+ }), z = S(512), B = S({
215
+ height: 358.4,
216
+ width: z.value,
217
+ top: 0,
218
+ bottom: 358.4,
219
+ centerX: 179.2,
220
+ centerY: z.value / 2,
221
+ labelFontSize: 18,
222
+ legendFontSize: N.value.style.chart.legend.fontSize,
223
+ pointerRadius: N.value.style.chart.layout.pointer.circle.radius,
224
+ trackSize: N.value.style.chart.layout.track.size,
225
+ pointerSize: N.value.style.chart.layout.pointer.size,
226
+ pointerStrokeWidth: N.value.style.chart.layout.pointer.strokeWidth,
227
+ markerOffset: N.value.style.chart.layout.markers.offsetY + 3,
228
+ segmentFontSize: N.value.style.chart.layout.segmentNames.fontSize
229
+ }), V = S(0), H = S(0), U = S(N.value.style.chart.animation.use ? Math.min(...P.value.series.map((e) => e.from)) : P.value.value);
230
+ Fe(() => P.value.value, () => {
231
+ Yt(P.value.value);
232
+ });
233
+ let W = f(() => {
234
+ let e = B.value.width / 2, t = Y.value.base, n = Math.PI * ((U.value + 0 - H.value) / (V.value - H.value)) + Math.PI;
235
+ return {
236
+ x1: e,
237
+ y1: t,
238
+ x2: e + Y.value.pointerSize * B.value.pointerSize * .9 * Math.cos(n),
239
+ y2: t + Y.value.pointerSize * B.value.pointerSize * .9 * Math.sin(n)
240
+ };
241
+ }), Gt = f(() => {
242
+ let e = B.value.width / 2, t = Y.value.base, n = Math.PI * ((U.value + 0 - H.value) / (V.value - H.value)) + Math.PI, r = e + Y.value.pointerSize * B.value.pointerSize * .9 * Math.cos(n), i = t + Y.value.pointerSize * B.value.pointerSize * .9 * Math.sin(n), a = B.value.pointerRadius, o = e + a * Math.cos(n + Math.PI / 2), ee = t + a * Math.sin(n + Math.PI / 2), s = e + a * Math.cos(n - Math.PI / 2), te = t + a * Math.sin(n - Math.PI / 2);
243
+ return isNaN(r) ? null : `M ${r},${i} ${o},${ee} ${s},${te} Z`;
244
+ }), Kt = f(() => {
245
+ for (let e = 0; e < R.value.series.length; e += 1) {
246
+ let { color: t, from: n, to: r } = R.value.series[e];
247
+ if (U.value >= n && U.value <= r) return t;
248
+ }
249
+ return "#2D353C";
250
+ }), G = Ne(null), K = Ne(null), q = f({
251
+ get: () => B.value.segmentFontSize,
252
+ set: (e) => e
253
+ }), { autoSizeLabels: qt } = we({
254
+ svgRef: L,
255
+ fontSize: B.value.segmentFontSize,
256
+ minFontSize: N.value.style.chart.layout.segmentNames.minFontSize,
257
+ sizeRef: q,
258
+ labelClass: ".vue-ui-gauge-label-flat"
259
+ }), J = f(() => !!N.value.debug);
260
+ function Jt() {
261
+ let e = !1;
262
+ if (ne(O.dataset) ? (u({
263
+ componentName: "VueUiGauge",
264
+ type: "dataset",
265
+ debug: J.value
266
+ }), F.value = !0, e = !0) : (re({
267
+ datasetObject: O.dataset,
268
+ requiredAttributes: ["value", "series"]
269
+ }).forEach((t) => {
270
+ u({
271
+ componentName: "VueUiGauge",
272
+ type: "datasetAttribute",
273
+ property: t,
274
+ debug: J.value
275
+ }), F.value = !0, e = !0;
276
+ }), Object.hasOwn(O.dataset, "series") && (O.dataset.series.length ? O.dataset.series.forEach((t, n) => {
277
+ re({
278
+ datasetObject: t,
279
+ requiredAttributes: ["from", "to"]
280
+ }).forEach((t) => {
281
+ u({
282
+ componentName: "VueUiGauge",
283
+ type: "datasetSerieAttribute",
284
+ property: t,
285
+ index: n,
286
+ debug: J.value
287
+ }), F.value = !0, e = !0;
288
+ });
289
+ }) : (u({
290
+ componentName: "VueUiGauge",
291
+ type: "datasetAttributeEmpty",
292
+ property: "series",
293
+ debug: J.value
294
+ }), F.value = !0, e = !0))), F.value = e, Yt(P.value.value || 0), N.value.responsive) {
295
+ let e = be(() => {
296
+ let { width: e, height: t } = xe({
297
+ chart: A.value,
298
+ title: N.value.style.chart.title.text ? Ot.value : null,
299
+ legend: kt.value,
300
+ source: At.value,
301
+ noTitle: jt.value
302
+ });
303
+ t -= 12, requestAnimationFrame(() => {
304
+ B.value.width = e, B.value.height = t, B.value.centerX = e / 2, B.value.centerY = z.value / 2 / 358.4 * t, B.value.bottom = t, B.value.labelFontSize = 18 / z.value * Math.min(t, e) < 10 ? 10 : 18 / z.value * Math.min(t, e), B.value.legendFontSize = N.value.style.chart.legend.fontSize / z.value * Math.min(t, e) < 14 ? 14 : N.value.style.chart.legend.fontSize / z.value * Math.min(t, e), B.value.pointerRadius = N.value.style.chart.layout.pointer.circle.radius / z.value * Math.min(t, e), B.value.trackSize = N.value.style.chart.layout.track.size / z.value * Math.min(t, e), B.value.pointerStrokeWidth = l({
305
+ relator: Math.min(e, t),
306
+ adjuster: z.value,
307
+ source: N.value.style.chart.layout.pointer.strokeWidth,
308
+ threshold: 2,
309
+ fallback: 2
310
+ }), B.value.markerOffset = l({
311
+ relator: Math.max(e, t),
312
+ adjuster: z.value,
313
+ source: N.value.style.chart.layout.markers.offsetY + 3,
314
+ threshold: 2,
315
+ fallback: 2
316
+ }), B.value.segmentFontSize = l({
317
+ relator: Math.min(e, t),
318
+ adjuster: z.value,
319
+ source: N.value.style.chart.layout.segmentNames.fontSize,
320
+ threshold: 8,
321
+ fallback: 8
322
+ });
323
+ }), qt();
324
+ });
325
+ G.value && (K.value && G.value.unobserve(K.value), G.value.disconnect()), G.value = new ResizeObserver(e), K.value = A.value.parentNode, G.value.observe(K.value);
326
+ }
327
+ qt();
328
+ }
329
+ Me(() => {
330
+ Jt();
331
+ }), je(() => {
332
+ G.value && (K.value && G.value.unobserve(K.value), G.value.disconnect());
333
+ });
334
+ function Yt(e) {
335
+ let t = [];
336
+ (R.value.series || []).forEach((e) => {
337
+ t.push(e.from || 0), t.push(e.to || 0);
338
+ }), V.value = Math.max(...t), H.value = Math.min(...t);
339
+ let n = N.value.style.chart.animation.speed, r = Math.abs(e - U.value) / (n * 60);
340
+ function i() {
341
+ U.value < e ? U.value = Math.min(U.value + r, e) : U.value > e && (U.value = Math.max(U.value - r, e)), U.value !== e && requestAnimationFrame(i);
342
+ }
343
+ i();
344
+ }
345
+ let Y = f(() => {
346
+ let e = N.value.responsive ? Math.min(B.value.width, B.value.height) : B.value.width, t = 2.5 / N.value.style.chart.layout.radiusRatio;
347
+ return {
348
+ arcs: e / t,
349
+ gradients: e / (t * 1.1),
350
+ base: N.value.responsive ? B.value.height / 1.618 : B.value.height * .7,
351
+ ratingBase: N.value.responsive ? B.value.height / 2 + B.value.height / 4 : B.value.height * .9,
352
+ pointerSize: N.value.responsive ? Math.min(B.value.width, B.value.height) / 3 : B.value.width / 3.2
353
+ };
354
+ }), X = f(() => i({ series: R.value.series }, B.value.width / 2, Y.value.base, Y.value.arcs, Y.value.arcs, 1, 1, 1, 180, 109.9495, 40 * B.value.trackSize)), Xt = f(() => i({ series: R.value.series }, B.value.width / 2, Y.value.base, Y.value.arcs * N.value.style.chart.layout.segmentNames.offsetRatio, Y.value.arcs * N.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * B.value.trackSize)), Z = f(() => X.value.map((e) => Y.value.arcs * N.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Zt = f(() => {
355
+ let { x: e, y: t } = a({
356
+ initX: X.value[0].firstSeparator.x,
357
+ initY: X.value[0].firstSeparator.y,
358
+ centerX: W.value.x1,
359
+ centerY: W.value.y1,
360
+ offset: -N.value.style.chart.layout.segmentSeparators.offsetIn
361
+ }), { x: n, y: r } = a({
362
+ initX: X.value[0].startX,
363
+ initY: X.value[0].startY,
364
+ centerX: W.value.x1,
365
+ centerY: W.value.y1,
366
+ offset: N.value.style.chart.layout.segmentSeparators.offsetOut
367
+ });
368
+ return {
369
+ x1: e,
370
+ y1: t,
371
+ x2: n,
372
+ y2: r
373
+ };
374
+ }), Qt = f(() => X.value.map((e) => {
375
+ let { x: t, y: n } = a({
376
+ initX: e.separator.x,
377
+ initY: e.separator.y,
378
+ centerX: W.value.x1,
379
+ centerY: W.value.y1,
380
+ offset: -N.value.style.chart.layout.segmentSeparators.offsetIn
381
+ }), { x: r, y: i } = a({
382
+ initX: e.endX,
383
+ initY: e.endY,
384
+ centerX: W.value.x1,
385
+ centerY: W.value.y1,
386
+ offset: N.value.style.chart.layout.segmentSeparators.offsetOut
387
+ });
388
+ return {
389
+ x1: t,
390
+ y1: n,
391
+ x2: r,
392
+ y2: i
393
+ };
394
+ }));
395
+ function $t(e) {
396
+ if (e.reduce((e, t) => e + t, 0) > 100) throw Error("Total % must not exceed 100");
397
+ let t = 0;
398
+ return e.map((e) => (t += e, `${t / 100 * 50 - e / 4}%`));
399
+ }
400
+ let en = f(() => $t(X.value.map((e) => e.proportion * 100))), tn = f(() => i({ series: R.value.series }, B.value.width / 2, Y.value.base, Y.value.gradients, Y.value.gradients, .95, 1, 1, 180, 110.02, 2 * B.value.trackSize)), nn = f(() => {
401
+ let e = H.value >= 0 ? -H.value : Math.abs(H.value);
402
+ return r({
403
+ radius: N.value.style.chart.layout.indicatorArc.radius * B.value.trackSize,
404
+ centerX: B.value.width / 2,
405
+ centerY: Y.value.base,
406
+ percentage: se((U.value + e) / (V.value + e))
407
+ });
408
+ }), Q = S(!1);
409
+ function rn(e) {
410
+ Q.value = e, Dt.value += 1;
411
+ }
412
+ let $ = S(!1);
413
+ function an() {
414
+ $.value = !$.value;
415
+ }
416
+ async function on({ scale: e = 2 } = {}) {
417
+ if (!A.value) return;
418
+ let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await _e({
419
+ domElement: A.value,
420
+ base64: !0,
421
+ img: !0,
422
+ scale: e
423
+ });
424
+ return {
425
+ imageUri: i,
426
+ base64: a,
427
+ title: N.value.style.chart.title.text,
428
+ width: t,
429
+ height: n,
430
+ aspectRatio: r
431
+ };
432
+ }
433
+ let sn = f(() => N.value.style.chart.backgroundColor), { exportSvg: cn, getSvg: ln } = me({
434
+ svg: L,
435
+ title: f(() => N.value.style.chart.title),
436
+ backgroundColor: sn
437
+ });
438
+ async function un({ isCb: e }) {
439
+ M.value = !0, await Oe();
440
+ try {
441
+ if (e) {
442
+ let { blob: e, url: t, text: n, dataUrl: r } = await ln();
443
+ await Promise.resolve(N.value.userOptions.callbacks.svg({
444
+ blob: e,
445
+ url: t,
446
+ text: n,
447
+ dataUrl: r
448
+ }));
449
+ } else await Promise.resolve(cn());
450
+ } finally {
451
+ M.value = !1;
452
+ }
453
+ }
454
+ function dn(e) {
455
+ if (e?.stage === "start") {
456
+ j.value = !0;
457
+ return;
458
+ }
459
+ if (e?.stage === "end") {
460
+ j.value = !1;
461
+ return;
462
+ }
463
+ Ht();
464
+ }
465
+ async function fn() {
466
+ if (wt("copyAlt", {
467
+ config: N.value,
468
+ dataset: R.value
469
+ }), !N.value.userOptions.callbacks.altCopy) {
470
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
471
+ return;
472
+ }
473
+ await Promise.resolve(N.value.userOptions.callbacks.altCopy({
474
+ config: N.value,
475
+ dataset: R.value
476
+ }));
477
+ }
478
+ return ye({
479
+ getImage: on,
480
+ generatePdf: Vt,
481
+ generateImage: Ht,
482
+ generateSvg: un,
483
+ toggleAnnotator: an,
484
+ toggleFullscreen: rn,
485
+ copyAlt: fn
486
+ }), (e, n) => (x(), h("div", {
487
+ class: ke(`vue-data-ui-component vue-ui-gauge ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
488
+ ref_key: "gaugeChart",
489
+ ref: A,
490
+ id: `vue-ui-gauge_${k.value}`,
491
+ style: Ae(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height: 100%" : ""}`),
492
+ onMouseenter: n[0] ||= () => E(It)(!0),
493
+ onMouseleave: n[1] ||= () => E(It)(!1)
494
+ }, [
495
+ N.value.userOptions.buttons.annotator ? (x(), p(E(vt), {
496
+ key: 0,
497
+ svgRef: E(L),
498
+ backgroundColor: N.value.style.chart.backgroundColor,
499
+ color: N.value.style.chart.color,
500
+ active: $.value,
501
+ isCursorPointer: Nt.value,
502
+ onClose: an
503
+ }, {
504
+ "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
505
+ "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
506
+ "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
507
+ "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
508
+ "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
509
+ "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
510
+ _: 3
511
+ }, 8, [
512
+ "svgRef",
513
+ "backgroundColor",
514
+ "color",
515
+ "active",
516
+ "isCursorPointer"
517
+ ])) : m("", !0),
518
+ Ut.value ? (x(), h("div", {
519
+ key: 1,
520
+ ref_key: "noTitle",
521
+ ref: jt,
522
+ class: "vue-data-ui-no-title-space",
523
+ style: "height:36px; width: 100%;background:transparent"
524
+ }, null, 512)) : m("", !0),
525
+ N.value.style.chart.title.text ? (x(), h("div", {
526
+ key: 2,
527
+ ref_key: "chartTitle",
528
+ ref: Ot,
529
+ style: "width:100%;background:transparent;padding-bottom:12px"
530
+ }, [(x(), p(ve, {
531
+ key: `title_${Mt.value}`,
532
+ config: {
533
+ title: {
534
+ cy: "gauge-div-title",
535
+ ...N.value.style.chart.title
536
+ },
537
+ subtitle: {
538
+ cy: "gauge-div-subtitle",
539
+ ...N.value.style.chart.title.subtitle
540
+ }
541
+ }
542
+ }, {
543
+ default: D(() => [N.value.translations.base && E(P).base ? (x(), h("span", Re, T(N.value.translations.base) + ": " + T(E(P).base), 1)) : m("", !0)]),
544
+ _: 1
545
+ }, 8, ["config"]))], 512)) : m("", !0),
546
+ N.value.userOptions.show && Tt.value && (E(Lt) || E(I)) ? (x(), p(E(yt), {
547
+ ref_key: "details",
548
+ ref: Et,
549
+ key: `user_options_${Dt.value}`,
550
+ backgroundColor: N.value.style.chart.backgroundColor,
551
+ color: N.value.style.chart.color,
552
+ isImaging: E(Bt),
553
+ isPrinting: E(zt),
554
+ uid: k.value,
555
+ hasXls: !1,
556
+ hasPdf: N.value.userOptions.buttons.pdf,
557
+ hasImg: N.value.userOptions.buttons.img,
558
+ hasSvg: N.value.userOptions.buttons.svg,
559
+ hasFullscreen: N.value.userOptions.buttons.fullscreen,
560
+ hasAltCopy: N.value.userOptions.buttons.altCopy,
561
+ isFullscreen: Q.value,
562
+ titles: { ...N.value.userOptions.buttonTitles },
563
+ chartElement: A.value,
564
+ callbacks: N.value.userOptions.callbacks,
565
+ printScale: N.value.userOptions.print.scale,
566
+ position: N.value.userOptions.position,
567
+ hasAnnotator: N.value.userOptions.buttons.annotator,
568
+ isAnnotation: $.value,
569
+ isCursorPointer: Nt.value,
570
+ onToggleFullscreen: rn,
571
+ onGeneratePdf: E(Vt),
572
+ onGenerateImage: dn,
573
+ onGenerateSvg: un,
574
+ onToggleAnnotator: an,
575
+ onCopyAlt: fn,
576
+ style: Ae({ visibility: E(Lt) ? E(I) ? "visible" : "hidden" : "visible" })
577
+ }, Ee({ _: 2 }, [
578
+ e.$slots.menuIcon ? {
579
+ name: "menuIcon",
580
+ fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
581
+ isOpen: t,
582
+ color: n
583
+ })), void 0, !0)]),
584
+ key: "0"
585
+ } : void 0,
586
+ e.$slots.optionPdf ? {
587
+ name: "optionPdf",
588
+ fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
589
+ key: "1"
590
+ } : void 0,
591
+ e.$slots.optionImg ? {
592
+ name: "optionImg",
593
+ fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
594
+ key: "2"
595
+ } : void 0,
596
+ e.$slots.optionSvg ? {
597
+ name: "optionSvg",
598
+ fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
599
+ key: "3"
600
+ } : void 0,
601
+ e.$slots.optionFullscreen ? {
602
+ name: "optionFullscreen",
603
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(v({
604
+ toggleFullscreen: t,
605
+ isFullscreen: n
606
+ })), void 0, !0)]),
607
+ key: "4"
608
+ } : void 0,
609
+ e.$slots.optionAnnotator ? {
610
+ name: "optionAnnotator",
611
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(v({
612
+ toggleAnnotator: t,
613
+ isAnnotator: n
614
+ })), void 0, !0)]),
615
+ key: "5"
616
+ } : void 0,
617
+ e.$slots.optionAltCopy ? {
618
+ name: "optionAltCopy",
619
+ fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
620
+ key: "6"
621
+ } : void 0,
622
+ e.$slots["custom-menu-before"] ? {
623
+ name: "custom-menu-before",
624
+ fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
625
+ key: "7"
626
+ } : void 0,
627
+ e.$slots["custom-menu-after"] ? {
628
+ name: "custom-menu-after",
629
+ fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
630
+ key: "8"
631
+ } : void 0
632
+ ]), 1032, [
633
+ "backgroundColor",
634
+ "color",
635
+ "isImaging",
636
+ "isPrinting",
637
+ "uid",
638
+ "hasPdf",
639
+ "hasImg",
640
+ "hasSvg",
641
+ "hasFullscreen",
642
+ "hasAltCopy",
643
+ "isFullscreen",
644
+ "titles",
645
+ "chartElement",
646
+ "callbacks",
647
+ "printScale",
648
+ "position",
649
+ "hasAnnotator",
650
+ "isAnnotation",
651
+ "isCursorPointer",
652
+ "onGeneratePdf",
653
+ "style"
654
+ ])) : m("", !0),
655
+ (x(), h("svg", {
656
+ ref_key: "svgRef",
657
+ ref: L,
658
+ xmlns: E(ae),
659
+ class: ke({
660
+ "vue-data-ui-fullscreen--on": Q.value,
661
+ "vue-data-ui-fulscreen--off": !Q.value
662
+ }),
663
+ viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
664
+ style: Ae(`max-width:100%;overflow:hidden !important;background:transparent;color:${N.value.style.chart.color}`)
665
+ }, [
666
+ De(E(bt)),
667
+ e.$slots["chart-background"] ? (x(), h("foreignObject", {
668
+ key: 0,
669
+ x: 0,
670
+ y: 0,
671
+ width: B.value.width <= 0 ? 10 : B.value.width,
672
+ height: B.value.height <= 0 ? 10 : B.value.height,
673
+ style: { pointerEvents: "none" }
674
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Be)) : m("", !0),
675
+ g("defs", null, [g("radialGradient", {
676
+ id: `gradient_${k.value}`,
677
+ cx: "50%",
678
+ cy: "50%",
679
+ r: "50%",
680
+ fx: "50%",
681
+ fy: "50%"
682
+ }, [
683
+ g("stop", {
684
+ offset: "0%",
685
+ "stop-color": E(c)("#FFFFFF", 1)
686
+ }, null, 8, He),
687
+ g("stop", {
688
+ offset: "80%",
689
+ "stop-color": E(c)("#FFFFFF", N.value.style.chart.layout.track.gradientIntensity)
690
+ }, null, 8, Ue),
691
+ g("stop", {
692
+ offset: "100%",
693
+ "stop-color": E(c)("#FFFFFF", 1)
694
+ }, null, 8, We)
695
+ ], 8, Ve)]),
696
+ g("defs", null, [g("filter", {
697
+ id: `blur_${k.value}`,
698
+ x: "-50%",
699
+ y: "-50%",
700
+ width: "200%",
701
+ height: "200%"
702
+ }, [g("feGaussianBlur", {
703
+ in: "SourceGraphic",
704
+ stdDeviation: 100 / N.value.style.chart.layout.track.gradientIntensity
705
+ }, null, 8, Ke)], 8, Ge)]),
706
+ e.$slots.pattern ? (x(), h("g", qe, [(x(!0), h(d, null, C(X.value, (t, n) => (x(), h("defs", null, [w(e.$slots, "pattern", y({ ref_for: !0 }, {
707
+ seriesIndex: n,
708
+ patternId: `pattern_${k.value}_${n}`
709
+ }), void 0, !0)]))), 256))])) : m("", !0),
710
+ (x(!0), h(d, null, C(X.value, (e, t) => (x(), h("path", {
711
+ key: `arc_${t}`,
712
+ d: e.arcSlice,
713
+ fill: e.color,
714
+ stroke: N.value.style.chart.backgroundColor,
715
+ "stroke-linecap": "round"
716
+ }, null, 8, Je))), 128)),
717
+ e.$slots.pattern ? (x(!0), h(d, { key: 2 }, C(X.value, (e, t) => (x(), h("path", {
718
+ key: `arc_${t}`,
719
+ d: e.arcSlice,
720
+ fill: `url(#pattern_${k.value}_${t})`,
721
+ stroke: N.value.style.chart.backgroundColor,
722
+ "stroke-linecap": "round"
723
+ }, null, 8, Ye))), 128)) : m("", !0),
724
+ N.value.style.chart.layout.indicatorArc.show ? (x(), h("path", {
725
+ key: 3,
726
+ d: nn.value,
727
+ fill: N.value.style.chart.layout.indicatorArc.fill
728
+ }, null, 8, Xe)) : m("", !0),
729
+ N.value.style.chart.layout.segmentNames.show && N.value.style.chart.layout.segmentNames.curved ? (x(), h(d, { key: 4 }, [(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("path", {
730
+ id: `curve_${k.value}_${t}`,
731
+ d: `M ${W.value.x1},${W.value.y1} m -${Z.value[t]},0 a ${Z.value[t]},${Z.value[t]} 0 1,1 ${2 * Z.value[t]},0 a ${Z.value[t]},${Z.value[t]} 0 1,1 -${2 * Z.value[t]},0`,
732
+ fill: "transparent"
733
+ }, null, 8, Ze))), 256)), (x(!0), h(d, null, C(X.value, (e, t) => (x(), h("text", {
734
+ fill: N.value.style.chart.layout.segmentNames.useSerieColor ? e.color : N.value.style.chart.layout.segmentNames.color,
735
+ "font-size": q.value,
736
+ "font-weight": N.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
737
+ "text-anchor": "middle"
738
+ }, [g("textPath", {
739
+ href: `#curve_${k.value}_${t}`,
740
+ startOffset: en.value[t]
741
+ }, T(e.name || ""), 9, $e)], 8, Qe))), 256))], 64)) : m("", !0),
742
+ N.value.style.chart.layout.segmentNames.show && !N.value.style.chart.layout.segmentNames.curved ? (x(!0), h(d, { key: 5 }, C(Xt.value, (e, n) => (x(), h("text", {
743
+ class: "vue-ui-gauge-label-flat",
744
+ "text-anchor": E(oe)(e, !1, 12).anchor,
745
+ fill: N.value.style.chart.layout.segmentNames.useSerieColor ? e.color : N.value.style.chart.layout.segmentNames.color,
746
+ "font-size": q.value,
747
+ "font-weight": N.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
748
+ innerHTML: E(t)({
749
+ content: String(e.name ?? ""),
750
+ fontSize: q.value,
751
+ fill: N.value.style.chart.layout.segmentNames.useSerieColor ? e.color : N.value.style.chart.layout.segmentNames.color,
752
+ x: e.center.endX,
753
+ y: e.center.endY
754
+ })
755
+ }, null, 8, et))), 256)) : m("", !0),
756
+ N.value.style.chart.layout.track.useGradient ? (x(!0), h(d, { key: 6 }, C(tn.value, (e, t) => (x(), h("path", {
757
+ key: `arc_${t}`,
758
+ d: e.arcSlice,
759
+ fill: "#FFFFFF",
760
+ stroke: "none",
761
+ "stroke-linecap": "round",
762
+ filter: `url(#blur_${k.value})`
763
+ }, null, 8, tt))), 128)) : m("", !0),
764
+ N.value.style.chart.layout.segmentSeparators.show ? (x(), h(d, { key: 7 }, [
765
+ g("line", y(Zt.value, {
766
+ stroke: N.value.style.chart.backgroundColor,
767
+ "stroke-width": N.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
768
+ "stroke-linecap": "round"
769
+ }), null, 16, nt),
770
+ g("line", y(Zt.value, {
771
+ stroke: N.value.style.chart.layout.segmentSeparators.stroke,
772
+ "stroke-width": N.value.style.chart.layout.segmentSeparators.strokeWidth,
773
+ "stroke-linecap": "round"
774
+ }), null, 16, rt),
775
+ (x(!0), h(d, null, C(Qt.value, (e) => (x(), h("line", y({ ref_for: !0 }, e, {
776
+ stroke: N.value.style.chart.backgroundColor,
777
+ "stroke-width": N.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
778
+ "stroke-linecap": "round"
779
+ }), null, 16, it))), 256)),
780
+ (x(!0), h(d, null, C(Qt.value, (e) => (x(), h("line", y({ ref_for: !0 }, e, {
781
+ stroke: N.value.style.chart.layout.segmentSeparators.stroke,
782
+ "stroke-width": N.value.style.chart.layout.segmentSeparators.strokeWidth,
783
+ "stroke-linecap": "round"
784
+ }), null, 16, at))), 256))
785
+ ], 64)) : m("", !0),
786
+ N.value.style.chart.layout.markers.show ? (x(), h("g", ot, [(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("text", {
787
+ x: E(a)({
788
+ centerX: W.value.x1,
789
+ centerY: Y.value.base,
790
+ initX: e.center.startX,
791
+ initY: e.center.startY,
792
+ offset: B.value.markerOffset
793
+ }).x,
794
+ y: E(a)({
795
+ centerX: W.value.x1,
796
+ centerY: Y.value.base,
797
+ initX: e.center.startX,
798
+ initY: e.center.startY,
799
+ offset: B.value.markerOffset
800
+ }).y,
801
+ "text-anchor": e.center.startX < W.value.x1 - 5 ? "end" : e.center.startX > W.value.x1 + 5 ? "start" : "middle",
802
+ "font-size": B.value.labelFontSize * N.value.style.chart.layout.markers.fontSizeRatio,
803
+ "font-weight": `${N.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
804
+ fill: N.value.style.chart.layout.markers.color
805
+ }, T(E(ie)(N.value.style.chart.layout.markers.formatter, e.from, E(o)({
806
+ p: N.value.style.chart.layout.markers.prefix,
807
+ v: e.from,
808
+ s: N.value.style.chart.layout.markers.suffix,
809
+ r: N.value.style.chart.layout.markers.roundingValue
810
+ }))), 9, st))), 256))])) : m("", !0),
811
+ N.value.style.chart.layout.markers.show ? (x(), h("text", {
812
+ key: 9,
813
+ x: E(a)({
814
+ centerX: B.value.width / 2,
815
+ centerY: Y.value.base,
816
+ initX: X.value.at(-1).endX,
817
+ initY: X.value.at(-1).endY,
818
+ offset: B.value.markerOffset
819
+ }).x,
820
+ y: E(a)({
821
+ centerX: B.value.width / 2,
822
+ centerY: Y.value.base,
823
+ initX: X.value.at(-1).endX,
824
+ initY: X.value.at(-1).endY,
825
+ offset: B.value.markerOffset
826
+ }).y,
827
+ "text-anchor": "start",
828
+ "font-size": B.value.labelFontSize * N.value.style.chart.layout.markers.fontSizeRatio,
829
+ "font-weight": `${N.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
830
+ fill: N.value.style.chart.layout.markers.color
831
+ }, T(E(ie)(N.value.style.chart.layout.markers.formatter, V.value, E(o)({
832
+ p: N.value.style.chart.layout.markers.prefix,
833
+ v: V.value,
834
+ s: N.value.style.chart.layout.markers.suffix,
835
+ r: N.value.style.chart.layout.markers.roundingValue
836
+ }))), 9, ct)) : m("", !0),
837
+ N.value.style.chart.layout.pointer.show ? (x(), h(d, { key: 10 }, [N.value.style.chart.layout.pointer.type === "rounded" ? (x(), h("g", lt, [
838
+ isNaN(W.value.x2) ? m("", !0) : (x(), h("line", {
839
+ key: 0,
840
+ x1: W.value.x1,
841
+ y1: W.value.y1,
842
+ x2: W.value.x2,
843
+ y2: W.value.y2,
844
+ stroke: N.value.style.chart.layout.pointer.stroke,
845
+ "stroke-width": B.value.pointerStrokeWidth,
846
+ "stroke-linecap": "round"
847
+ }, null, 8, ut)),
848
+ isNaN(W.value.x2) ? m("", !0) : (x(), h("line", {
849
+ key: 1,
850
+ x1: W.value.x1,
851
+ y1: W.value.y1,
852
+ x2: W.value.x2,
853
+ y2: W.value.y2,
854
+ stroke: N.value.style.chart.layout.pointer.useRatingColor ? Kt.value : N.value.style.chart.layout.pointer.color,
855
+ "stroke-linecap": "round",
856
+ "stroke-width": B.value.pointerStrokeWidth * .7
857
+ }, null, 8, dt)),
858
+ !isNaN(W.value.x2) && N.value.style.chart.layout.track.useGradient ? (x(), h("line", {
859
+ key: 2,
860
+ x1: W.value.x1,
861
+ y1: W.value.y1,
862
+ x2: W.value.x2,
863
+ y2: W.value.y2,
864
+ stroke: "white",
865
+ "stroke-linecap": "round",
866
+ "stroke-width": B.value.pointerStrokeWidth * .3,
867
+ filter: `url(#blur_${k.value})`
868
+ }, null, 8, ft)) : m("", !0)
869
+ ])) : (x(), h("g", pt, [Gt.value ? (x(), h("path", {
870
+ key: 0,
871
+ d: Gt.value,
872
+ fill: N.value.style.chart.layout.pointer.useRatingColor ? Kt.value : N.value.style.chart.layout.pointer.color,
873
+ stroke: N.value.style.chart.layout.pointer.stroke,
874
+ "stroke-width": N.value.style.chart.layout.pointer.circle.strokeWidth,
875
+ "stroke-linejoin": "round"
876
+ }, null, 8, mt)) : m("", !0)])), g("circle", {
877
+ cx: B.value.width / 2,
878
+ cy: Y.value.base,
879
+ fill: N.value.style.chart.layout.pointer.circle.color,
880
+ r: B.value.pointerRadius <= 0 ? 1e-4 : B.value.pointerRadius,
881
+ "stroke-width": N.value.style.chart.layout.pointer.circle.strokeWidth,
882
+ stroke: N.value.style.chart.layout.pointer.circle.stroke
883
+ }, null, 8, ht)], 64)) : m("", !0),
884
+ N.value.style.chart.legend.show ? (x(), h("text", {
885
+ key: 11,
886
+ x: B.value.width / 2,
887
+ y: Y.value.ratingBase,
888
+ "text-anchor": "middle",
889
+ "font-size": B.value.legendFontSize,
890
+ "font-weight": "bold",
891
+ fill: N.value.style.chart.legend.useRatingColor ? Kt.value : N.value.style.chart.legend.color
892
+ }, T(E(ie)(N.value.style.chart.legend.formatter, U.value, E(o)({
893
+ p: N.value.style.chart.legend.prefix + (N.value.style.chart.legend.showPlusSymbol && U.value > 0 ? "+" : ""),
894
+ v: U.value,
895
+ s: N.value.style.chart.legend.suffix,
896
+ r: N.value.style.chart.legend.roundingValue
897
+ }))), 9, gt)) : m("", !0),
898
+ w(e.$slots, "svg", { svg: {
899
+ ...B.value,
900
+ isPrintingImg: E(zt) || E(Bt) || j.value,
901
+ isPrintingSvg: M.value
902
+ } }, void 0, !0)
903
+ ], 14, ze)),
904
+ e.$slots.watermark ? (x(), h("div", _t, [w(e.$slots, "watermark", b(v({ isPrinting: E(zt) || E(Bt) || j.value || M.value })), void 0, !0)])) : m("", !0),
905
+ g("div", {
906
+ ref_key: "chartLegend",
907
+ ref: kt
908
+ }, [w(e.$slots, "legend", { legend: R.value }, void 0, !0)], 512),
909
+ e.$slots.source ? (x(), h("div", {
910
+ key: 5,
911
+ ref_key: "source",
912
+ ref: At,
913
+ dir: "auto"
914
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
915
+ w(e.$slots, "skeleton", {}, () => [E(Ft) ? (x(), p(pe, { key: 0 })) : m("", !0)], !0)
916
+ ], 46, Le));
917
+ }
918
+ }, [["__scopeId", "data-v-a2cc058b"]]);
919
+ //#endregion
920
+ export { Ie as n, vt as t };