vue-data-ui 3.23.0 → 3.23.2

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 (206) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -0,0 +1,932 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Bt as t, G as n, Jt as r, Kt as i, Mt as a, O as ee, Pt as o, S as te, X as s, b as ne, f as re, i as ie, jt as ae, kt as c, pt as oe, q as se, qt as ce, t as le, tt as l, w as ue } from "./lib-Bttd6u5E.js";
3
+ import { n as de } from "./useHints-Dq_w2E8B.js";
4
+ import { t as fe } from "./useConfig-DlNpz6P8.js";
5
+ import { t as pe } from "./usePrinter-DN5bYhTG.js";
6
+ import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as ge } from "./useNestedProp-vPNvh7rV.js";
8
+ import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ve } from "./useChartExport-DNiwdPmb.js";
10
+ import { t as ye } from "./img-Bnokohej.js";
11
+ import { n as be } from "./Title-BE3qg9xl.js";
12
+ import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { l as Se, t as Ce } from "./useResponsive-ZtArZtUf.js";
14
+ import { t as we } from "./DefGrad-DVBqDjhO.js";
15
+ import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
16
+ import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
17
+ import { t as De } from "./usePrefersMotion-BC-CsqR1.js";
18
+ import { t as Oe } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
19
+ import { t as ke } from "./vue_ui_gauge-Cf1RZc9q.js";
20
+ import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ae, createVNode as je, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as v, nextTick as Me, normalizeClass as Ne, normalizeProps as y, normalizeStyle as Pe, onBeforeUnmount as Fe, onMounted as Ie, openBlock as b, ref as x, renderList as S, renderSlot as C, shallowRef as Le, toDisplayString as w, toRefs as Re, unref as T, watch as E, withCtx as D } from "vue";
21
+ //#region src/components/vue-ui-gauge.vue
22
+ var ze = /* @__PURE__ */ e({ default: () => _t }), Be = ["id"], Ve = { key: 0 }, He = ["xmlns", "viewBox"], Ue = ["width", "height"], We = ["id"], Ge = ["stdDeviation"], Ke = { key: 1 }, qe = [
23
+ "d",
24
+ "fill",
25
+ "stroke"
26
+ ], Je = [
27
+ "d",
28
+ "fill",
29
+ "stroke"
30
+ ], Ye = ["d", "fill"], Xe = ["id", "d"], Ze = [
31
+ "fill",
32
+ "font-size",
33
+ "font-weight"
34
+ ], Qe = ["href", "startOffset"], $e = [
35
+ "text-anchor",
36
+ "fill",
37
+ "font-size",
38
+ "font-weight",
39
+ "innerHTML"
40
+ ], et = ["d", "filter"], tt = ["stroke", "stroke-width"], nt = ["stroke", "stroke-width"], rt = ["stroke", "stroke-width"], it = ["stroke", "stroke-width"], at = { key: 8 }, ot = [
41
+ "x",
42
+ "y",
43
+ "text-anchor",
44
+ "font-size",
45
+ "font-weight",
46
+ "fill"
47
+ ], st = [
48
+ "x",
49
+ "y",
50
+ "font-size",
51
+ "font-weight",
52
+ "fill"
53
+ ], ct = { key: 0 }, lt = [
54
+ "x1",
55
+ "y1",
56
+ "x2",
57
+ "y2",
58
+ "stroke",
59
+ "stroke-width"
60
+ ], ut = [
61
+ "x1",
62
+ "y1",
63
+ "x2",
64
+ "y2",
65
+ "stroke",
66
+ "stroke-width"
67
+ ], dt = [
68
+ "x1",
69
+ "y1",
70
+ "x2",
71
+ "y2",
72
+ "stroke-width",
73
+ "filter"
74
+ ], ft = { key: 1 }, pt = [
75
+ "d",
76
+ "fill",
77
+ "stroke",
78
+ "stroke-width"
79
+ ], mt = [
80
+ "cx",
81
+ "cy",
82
+ "fill",
83
+ "r",
84
+ "stroke-width",
85
+ "stroke"
86
+ ], ht = [
87
+ "x",
88
+ "y",
89
+ "font-size",
90
+ "fill"
91
+ ], gt = {
92
+ key: 4,
93
+ class: "vue-data-ui-watermark"
94
+ }, _t = /*#__PURE__*/ xe({
95
+ __name: "vue-ui-gauge",
96
+ props: {
97
+ config: {
98
+ type: Object,
99
+ default() {
100
+ return {};
101
+ }
102
+ },
103
+ dataset: {
104
+ type: Object,
105
+ default() {
106
+ return {};
107
+ }
108
+ }
109
+ },
110
+ emits: ["copyAlt"],
111
+ setup(e, { expose: xe, emit: ze }) {
112
+ let _t = g(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), vt = g(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), yt = g(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), { vue_ui_gauge: bt } = fe(), { isThemeValid: xt, warnInvalidTheme: St } = _e(), Ct = De(), O = e, wt = ze, Tt = d(() => !!O.dataset && Object.keys(O.dataset).length > 0 && O.dataset.series && O.dataset.series.length), k = x(se()), Et = x(null), Dt = x(0), A = x(null), Ot = x(null), kt = x(null), At = x(null), jt = x(null), Mt = x(0), j = x(Rt());
113
+ de({
114
+ config: () => j.value,
115
+ dataset: () => O.dataset,
116
+ component: "VueUiGauge",
117
+ rules: [{
118
+ test: (e) => e?.series && e.series?.length > 6,
119
+ message: [
120
+ "👀 The number of steps is > 6, which can make the chart hard to read and labels overlap. Consider:",
121
+ "",
122
+ "▶️ Using broader steps."
123
+ ]
124
+ }]
125
+ });
126
+ let Nt = d(() => j.value.userOptions.useCursorPointer), Pt = d(() => r({
127
+ defaultConfig: {
128
+ userOptions: { show: !1 },
129
+ style: { chart: {
130
+ backgroundColor: "#99999930",
131
+ animation: { use: !1 },
132
+ layout: {
133
+ markers: { show: !1 },
134
+ segmentSeparators: { stroke: "#6A6A6A" },
135
+ segmentNames: { show: !1 },
136
+ indicatorArc: { fill: "#6A6A6A50" },
137
+ pointer: {
138
+ stroke: "#6A6A6A",
139
+ useRatingColor: !0,
140
+ circle: {
141
+ stroke: "#6A6A6A",
142
+ color: "#6A6A6A"
143
+ }
144
+ }
145
+ },
146
+ legend: { show: !1 }
147
+ } }
148
+ },
149
+ userConfig: j.value.skeletonConfig ?? {}
150
+ })), { loading: Ft, FINAL_DATASET: M, manualLoading: N } = me({
151
+ ...Re(O),
152
+ FINAL_CONFIG: j,
153
+ prepareConfig: Rt,
154
+ callback: () => {
155
+ Promise.resolve().then(async () => {
156
+ await Me();
157
+ });
158
+ },
159
+ skeletonDataset: O.config?.skeletonDataset ?? {
160
+ value: 0,
161
+ series: [{
162
+ from: -1,
163
+ to: 0,
164
+ name: "_",
165
+ color: "#A1A1A1"
166
+ }, {
167
+ from: 0,
168
+ to: 1,
169
+ name: "__",
170
+ color: "#CACACA"
171
+ }]
172
+ },
173
+ skeletonConfig: r({
174
+ defaultConfig: j.value,
175
+ userConfig: Pt.value
176
+ })
177
+ }), { userOptionsVisible: P, setUserOptionsVisibility: It, keepUserOptionState: Lt } = Te({ config: j.value }), { svgRef: F } = Ee({ config: j.value.style.chart.title });
178
+ E(() => O.config, (e) => {
179
+ Ft.value || (j.value = Rt()), P.value = !j.value.userOptions.showOnChartHover, Yt(), Mt.value += 1;
180
+ }, { deep: !0 }), E(() => O.dataset, (e) => {
181
+ Yt(), e && Object.keys(e).length > 0 && (N.value = j.value?.loading ?? !1);
182
+ }, {
183
+ deep: !0,
184
+ immediate: !1
185
+ });
186
+ function Rt() {
187
+ let e = ge({
188
+ userConfig: O.config,
189
+ defaultConfig: bt
190
+ }), t = e.theme;
191
+ if (!t) return e;
192
+ if (!xt.value(e)) return St(e), e;
193
+ let n = ge({
194
+ userConfig: ke[t] || O.config,
195
+ defaultConfig: e
196
+ }), r = ge({
197
+ userConfig: O.config,
198
+ defaultConfig: n
199
+ });
200
+ return {
201
+ ...r,
202
+ customPalette: r.customPalette.length ? r.customPalette : i[t] || o
203
+ };
204
+ }
205
+ let { isPrinting: zt, isImaging: Bt, generatePdf: Vt, generateImage: Ht } = pe({
206
+ elementId: `vue-ui-gauge_${k.value}`,
207
+ fileName: j.value.style.chart.title.text || "vue-ui-gauge",
208
+ options: j.value.userOptions.print
209
+ }), Ut = d(() => j.value.userOptions.show && !j.value.style.chart.title.text), Wt = d(() => ue(j.value.customPalette)), I = d(() => {
210
+ if (ae(M.value.series || {})) return {
211
+ value: 0,
212
+ series: [{
213
+ from: 0,
214
+ to: 0
215
+ }]
216
+ };
217
+ let e = [];
218
+ (M.value.series || []).forEach((t) => {
219
+ e.push(t.from || 1e-7), e.push(t.to || 1e-7);
220
+ });
221
+ let t = Math.max(...e);
222
+ return {
223
+ ...M.value,
224
+ series: (M.value.series || []).map((e, n) => ({
225
+ ...e,
226
+ color: te(e.color) || Wt.value[n] || o[n],
227
+ value: ((e.to || 0) - (e.from || 0)) / t * 100
228
+ }))
229
+ };
230
+ }), L = x(512), R = x({
231
+ height: 358.4,
232
+ width: L.value,
233
+ top: 0,
234
+ bottom: 358.4,
235
+ centerX: 179.2,
236
+ centerY: L.value / 2,
237
+ labelFontSize: 18,
238
+ legendFontSize: j.value.style.chart.legend.fontSize,
239
+ pointerRadius: j.value.style.chart.layout.pointer.circle.radius,
240
+ trackSize: j.value.style.chart.layout.track.size,
241
+ pointerSize: j.value.style.chart.layout.pointer.size,
242
+ pointerStrokeWidth: j.value.style.chart.layout.pointer.strokeWidth,
243
+ markerOffset: j.value.style.chart.layout.markers.offsetY + 3,
244
+ segmentFontSize: j.value.style.chart.layout.segmentNames.fontSize
245
+ }), z = x(0), B = x(0), V = d(() => j.value.style.chart.animation.use && !Ct.value), H = x(V.value ? Math.min(...M.value.series.map((e) => e.from)) : M.value.value), U = null;
246
+ function Gt() {
247
+ U !== null && (cancelAnimationFrame(U), U = null);
248
+ }
249
+ E(V, (e) => {
250
+ e || (Gt(), H.value = M.value.value);
251
+ }), E(() => M.value.value, () => {
252
+ Xt(M.value.value);
253
+ });
254
+ let W = d(() => {
255
+ let e = R.value.width / 2, t = Y.value.base, n = Math.PI * ((H.value + 0 - B.value) / (z.value - B.value)) + Math.PI;
256
+ return {
257
+ x1: e,
258
+ y1: t,
259
+ x2: e + Y.value.pointerSize * R.value.pointerSize * .9 * Math.cos(n),
260
+ y2: t + Y.value.pointerSize * R.value.pointerSize * .9 * Math.sin(n)
261
+ };
262
+ }), Kt = d(() => {
263
+ let e = R.value.width / 2, t = Y.value.base, n = Math.PI * ((H.value + 0 - B.value) / (z.value - B.value)) + Math.PI, r = e + Y.value.pointerSize * R.value.pointerSize * .9 * Math.cos(n), i = t + Y.value.pointerSize * R.value.pointerSize * .9 * Math.sin(n), a = R.value.pointerRadius, ee = e + a * Math.cos(n + Math.PI / 2), o = t + a * Math.sin(n + Math.PI / 2), te = e + a * Math.cos(n - Math.PI / 2), s = t + a * Math.sin(n - Math.PI / 2);
264
+ return isNaN(r) ? null : `M ${r},${i} ${ee},${o} ${te},${s} Z`;
265
+ }), qt = d(() => {
266
+ for (let e = 0; e < I.value.series.length; e += 1) {
267
+ let { color: t, from: n, to: r } = I.value.series[e];
268
+ if (H.value >= n && H.value <= r) return t;
269
+ }
270
+ return "#2D353C";
271
+ }), G = Le(null), K = Le(null), q = d({
272
+ get: () => R.value.segmentFontSize,
273
+ set: (e) => e
274
+ }), { autoSizeLabels: Jt } = Oe({
275
+ svgRef: F,
276
+ fontSize: R.value.segmentFontSize,
277
+ minFontSize: j.value.style.chart.layout.segmentNames.minFontSize,
278
+ sizeRef: q,
279
+ labelClass: ".vue-ui-gauge-label-flat"
280
+ }), J = d(() => j.value.debug);
281
+ function Yt() {
282
+ let e = !1;
283
+ if (ae(O.dataset) ? (l({
284
+ componentName: "VueUiGauge",
285
+ type: "dataset",
286
+ debug: J.value
287
+ }), N.value = !0, e = !0) : (oe({
288
+ datasetObject: O.dataset,
289
+ requiredAttributes: ["value", "series"]
290
+ }).forEach((t) => {
291
+ l({
292
+ componentName: "VueUiGauge",
293
+ type: "datasetAttribute",
294
+ property: t,
295
+ debug: J.value
296
+ }), N.value = !0, e = !0;
297
+ }), Object.hasOwn(O.dataset, "series") && (O.dataset.series.length ? O.dataset.series.forEach((t, n) => {
298
+ oe({
299
+ datasetObject: t,
300
+ requiredAttributes: ["from", "to"]
301
+ }).forEach((t) => {
302
+ l({
303
+ componentName: "VueUiGauge",
304
+ type: "datasetSerieAttribute",
305
+ property: t,
306
+ index: n,
307
+ debug: J.value
308
+ }), N.value = !0, e = !0;
309
+ });
310
+ }) : (l({
311
+ componentName: "VueUiGauge",
312
+ type: "datasetAttributeEmpty",
313
+ property: "series",
314
+ debug: J.value
315
+ }), N.value = !0, e = !0))), N.value = e, Xt(M.value.value || 0), j.value.responsive) {
316
+ let e = Se(() => {
317
+ let { width: e, height: t } = Ce({
318
+ chart: A.value,
319
+ title: j.value.style.chart.title.text ? Ot.value : null,
320
+ legend: kt.value,
321
+ source: At.value,
322
+ noTitle: jt.value
323
+ });
324
+ t -= 12, requestAnimationFrame(() => {
325
+ R.value.width = e, R.value.height = t, R.value.centerX = e / 2, R.value.centerY = L.value / 2 / 358.4 * t, R.value.bottom = t, R.value.labelFontSize = 18 / L.value * Math.min(t, e) < 10 ? 10 : 18 / L.value * Math.min(t, e), R.value.legendFontSize = j.value.style.chart.legend.fontSize / L.value * Math.min(t, e) < 14 ? 14 : j.value.style.chart.legend.fontSize / L.value * Math.min(t, e), R.value.pointerRadius = j.value.style.chart.layout.pointer.circle.radius / L.value * Math.min(t, e), R.value.trackSize = j.value.style.chart.layout.track.size / L.value * Math.min(t, e), R.value.pointerStrokeWidth = ce({
326
+ relator: Math.min(e, t),
327
+ adjuster: L.value,
328
+ source: j.value.style.chart.layout.pointer.strokeWidth,
329
+ threshold: 2,
330
+ fallback: 2
331
+ }), R.value.markerOffset = ce({
332
+ relator: Math.max(e, t),
333
+ adjuster: L.value,
334
+ source: j.value.style.chart.layout.markers.offsetY + 3,
335
+ threshold: 2,
336
+ fallback: 2
337
+ }), R.value.segmentFontSize = ce({
338
+ relator: Math.min(e, t),
339
+ adjuster: L.value,
340
+ source: j.value.style.chart.layout.segmentNames.fontSize,
341
+ threshold: 8,
342
+ fallback: 8
343
+ });
344
+ }), Jt();
345
+ });
346
+ 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);
347
+ }
348
+ Jt();
349
+ }
350
+ Ie(() => {
351
+ Yt();
352
+ }), Fe(() => {
353
+ Gt(), G.value && (K.value && G.value.unobserve(K.value), G.value.disconnect());
354
+ });
355
+ function Xt(e) {
356
+ let t = [];
357
+ if ((I.value.series || []).forEach((e) => {
358
+ t.push(e.from || 0), t.push(e.to || 0);
359
+ }), z.value = Math.max(...t), B.value = Math.min(...t), Gt(), !V.value) {
360
+ H.value = e;
361
+ return;
362
+ }
363
+ let n = j.value.style.chart.animation.speed, r = Math.abs(e - H.value) / (n * 60);
364
+ function i() {
365
+ if (!V.value) {
366
+ H.value = e, U = null;
367
+ return;
368
+ }
369
+ H.value < e ? H.value = Math.min(H.value + r, e) : H.value > e && (H.value = Math.max(H.value - r, e)), U = H.value === e ? null : requestAnimationFrame(i);
370
+ }
371
+ i();
372
+ }
373
+ let Y = d(() => {
374
+ let e = j.value.responsive ? Math.min(R.value.width, R.value.height) : R.value.width, t = 2.5 / j.value.style.chart.layout.radiusRatio;
375
+ return {
376
+ arcs: e / t,
377
+ gradients: e / (t * 1.1),
378
+ base: j.value.responsive ? R.value.height / 1.618 : R.value.height * .7,
379
+ ratingBase: j.value.responsive ? R.value.height / 2 + R.value.height / 4 : R.value.height * .9,
380
+ pointerSize: j.value.responsive ? Math.min(R.value.width, R.value.height) / 3 : R.value.width / 3.2
381
+ };
382
+ }), X = d(() => c({ series: I.value.series }, R.value.width / 2, Y.value.base, Y.value.arcs, Y.value.arcs, 1, 1, 1, 180, 109.9495, 40 * R.value.trackSize)), Zt = d(() => c({ series: I.value.series }, R.value.width / 2, Y.value.base, Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio, Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * R.value.trackSize)), Z = d(() => X.value.map((e) => Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Qt = d(() => {
383
+ let { x: e, y: t } = a({
384
+ initX: X.value[0].firstSeparator.x,
385
+ initY: X.value[0].firstSeparator.y,
386
+ centerX: W.value.x1,
387
+ centerY: W.value.y1,
388
+ offset: -j.value.style.chart.layout.segmentSeparators.offsetIn
389
+ }), { x: n, y: r } = a({
390
+ initX: X.value[0].startX,
391
+ initY: X.value[0].startY,
392
+ centerX: W.value.x1,
393
+ centerY: W.value.y1,
394
+ offset: j.value.style.chart.layout.segmentSeparators.offsetOut
395
+ });
396
+ return {
397
+ x1: e,
398
+ y1: t,
399
+ x2: n,
400
+ y2: r
401
+ };
402
+ }), $t = d(() => X.value.map((e) => {
403
+ let { x: t, y: n } = a({
404
+ initX: e.separator.x,
405
+ initY: e.separator.y,
406
+ centerX: W.value.x1,
407
+ centerY: W.value.y1,
408
+ offset: -j.value.style.chart.layout.segmentSeparators.offsetIn
409
+ }), { x: r, y: i } = a({
410
+ initX: e.endX,
411
+ initY: e.endY,
412
+ centerX: W.value.x1,
413
+ centerY: W.value.y1,
414
+ offset: j.value.style.chart.layout.segmentSeparators.offsetOut
415
+ });
416
+ return {
417
+ x1: t,
418
+ y1: n,
419
+ x2: r,
420
+ y2: i
421
+ };
422
+ }));
423
+ function en(e) {
424
+ if (e.reduce((e, t) => e + t, 0) > 100) throw Error("Total % must not exceed 100");
425
+ let t = 0;
426
+ return e.map((e) => (t += e, `${t / 100 * 50 - e / 4}%`));
427
+ }
428
+ let tn = d(() => en(X.value.map((e) => e.proportion * 100))), nn = d(() => c({ series: I.value.series }, R.value.width / 2, Y.value.base, Y.value.gradients, Y.value.gradients, .95, 1, 1, 180, 110.02, 2 * R.value.trackSize)), rn = d(() => {
429
+ let e = B.value >= 0 ? -B.value : Math.abs(B.value);
430
+ return ee({
431
+ radius: j.value.style.chart.layout.indicatorArc.radius * R.value.trackSize,
432
+ centerX: R.value.width / 2,
433
+ centerY: Y.value.base,
434
+ percentage: ne((H.value + e) / (z.value + e))
435
+ });
436
+ }), Q = x(!1);
437
+ function an(e) {
438
+ Q.value = e, Dt.value += 1;
439
+ }
440
+ let $ = x(!1);
441
+ function on() {
442
+ $.value = !$.value;
443
+ }
444
+ async function sn({ scale: e = 2 } = {}) {
445
+ if (!A.value) return;
446
+ let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
447
+ domElement: A.value,
448
+ base64: !0,
449
+ img: !0,
450
+ scale: e
451
+ });
452
+ return {
453
+ imageUri: i,
454
+ base64: a,
455
+ title: j.value.style.chart.title.text,
456
+ width: t,
457
+ height: n,
458
+ aspectRatio: r
459
+ };
460
+ }
461
+ let cn = d(() => j.value.style.chart.backgroundColor), ln = d(() => j.value.style.chart.title), { isCallbackImaging: un, isCallbackSvg: dn, generateSvg: fn, onGenerateImage: pn } = ve({
462
+ svg: F,
463
+ title: ln,
464
+ legend: null,
465
+ legendItems: null,
466
+ backgroundColor: cn,
467
+ getSvgCallback: () => j.value.userOptions.callbacks.svg,
468
+ generateImage: Ht
469
+ });
470
+ async function mn() {
471
+ if (wt("copyAlt", {
472
+ config: j.value,
473
+ dataset: I.value
474
+ }), !j.value.userOptions.callbacks.altCopy) {
475
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
476
+ return;
477
+ }
478
+ await Promise.resolve(j.value.userOptions.callbacks.altCopy({
479
+ config: j.value,
480
+ dataset: I.value
481
+ }));
482
+ }
483
+ return xe({
484
+ getImage: sn,
485
+ generatePdf: Vt,
486
+ generateImage: Ht,
487
+ generateSvg: fn,
488
+ toggleAnnotator: on,
489
+ toggleFullscreen: an,
490
+ copyAlt: mn
491
+ }), (e, r) => (b(), m("div", {
492
+ class: Ne(`vue-data-ui-component vue-ui-gauge ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
493
+ ref_key: "gaugeChart",
494
+ ref: A,
495
+ id: `vue-ui-gauge_${k.value}`,
496
+ style: Pe(`font-family:${j.value.style.fontFamily};width:100%; text-align:center;background:${j.value.style.chart.backgroundColor};${j.value.responsive ? "height: 100%" : ""}`),
497
+ onMouseenter: r[0] ||= () => T(It)(!0),
498
+ onMouseleave: r[1] ||= () => T(It)(!1)
499
+ }, [
500
+ j.value.userOptions.buttons.annotator ? (b(), f(T(_t), {
501
+ key: 0,
502
+ svgRef: T(F),
503
+ backgroundColor: j.value.style.chart.backgroundColor,
504
+ color: j.value.style.chart.color,
505
+ active: $.value,
506
+ isCursorPointer: Nt.value,
507
+ onClose: on
508
+ }, {
509
+ "annotator-action-close": D(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
510
+ "annotator-action-color": D(({ color: t }) => [C(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
511
+ "annotator-action-draw": D(({ mode: t }) => [C(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
512
+ "annotator-action-undo": D(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
513
+ "annotator-action-redo": D(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
514
+ "annotator-action-delete": D(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
515
+ _: 3
516
+ }, 8, [
517
+ "svgRef",
518
+ "backgroundColor",
519
+ "color",
520
+ "active",
521
+ "isCursorPointer"
522
+ ])) : p("", !0),
523
+ Ut.value ? (b(), m("div", {
524
+ key: 1,
525
+ ref_key: "noTitle",
526
+ ref: jt,
527
+ class: "vue-data-ui-no-title-space",
528
+ style: "height:36px; width: 100%;background:transparent"
529
+ }, null, 512)) : p("", !0),
530
+ j.value.style.chart.title.text ? (b(), m("div", {
531
+ key: 2,
532
+ ref_key: "chartTitle",
533
+ ref: Ot,
534
+ style: "width:100%;background:transparent;padding-bottom:12px"
535
+ }, [(b(), f(be, {
536
+ key: `title_${Mt.value}`,
537
+ config: {
538
+ title: {
539
+ cy: "gauge-div-title",
540
+ ...j.value.style.chart.title
541
+ },
542
+ subtitle: {
543
+ cy: "gauge-div-subtitle",
544
+ ...j.value.style.chart.title.subtitle
545
+ }
546
+ }
547
+ }, {
548
+ default: D(() => [j.value.translations.base && T(M).base ? (b(), m("span", Ve, w(j.value.translations.base) + ": " + w(T(M).base), 1)) : p("", !0)]),
549
+ _: 1
550
+ }, 8, ["config"]))], 512)) : p("", !0),
551
+ j.value.userOptions.show && Tt.value && (T(Lt) || T(P)) ? (b(), f(T(vt), {
552
+ ref_key: "details",
553
+ ref: Et,
554
+ key: `user_options_${Dt.value}`,
555
+ backgroundColor: j.value.style.chart.backgroundColor,
556
+ color: j.value.style.chart.color,
557
+ isImaging: T(Bt),
558
+ isPrinting: T(zt),
559
+ uid: k.value,
560
+ hasXls: !1,
561
+ hasPdf: j.value.userOptions.buttons.pdf,
562
+ hasImg: j.value.userOptions.buttons.img,
563
+ hasSvg: j.value.userOptions.buttons.svg,
564
+ hasFullscreen: j.value.userOptions.buttons.fullscreen,
565
+ hasAltCopy: j.value.userOptions.buttons.altCopy,
566
+ isFullscreen: Q.value,
567
+ titles: { ...j.value.userOptions.buttonTitles },
568
+ chartElement: A.value,
569
+ callbacks: j.value.userOptions.callbacks,
570
+ printScale: j.value.userOptions.print.scale,
571
+ position: j.value.userOptions.position,
572
+ hasAnnotator: j.value.userOptions.buttons.annotator,
573
+ isAnnotation: $.value,
574
+ isCursorPointer: Nt.value,
575
+ onToggleFullscreen: an,
576
+ onGeneratePdf: T(Vt),
577
+ onGenerateImage: T(pn),
578
+ onGenerateSvg: T(fn),
579
+ onToggleAnnotator: on,
580
+ onCopyAlt: mn,
581
+ style: Pe({ visibility: T(Lt) ? T(P) ? "visible" : "hidden" : "visible" })
582
+ }, Ae({ _: 2 }, [
583
+ e.$slots.menuIcon ? {
584
+ name: "menuIcon",
585
+ fn: D(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(_({
586
+ isOpen: t,
587
+ color: n
588
+ })), void 0, !0)]),
589
+ key: "0"
590
+ } : void 0,
591
+ e.$slots.optionPdf ? {
592
+ name: "optionPdf",
593
+ fn: D(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
594
+ key: "1"
595
+ } : void 0,
596
+ e.$slots.optionImg ? {
597
+ name: "optionImg",
598
+ fn: D(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
599
+ key: "2"
600
+ } : void 0,
601
+ e.$slots.optionSvg ? {
602
+ name: "optionSvg",
603
+ fn: D(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
604
+ key: "3"
605
+ } : void 0,
606
+ e.$slots.optionFullscreen ? {
607
+ name: "optionFullscreen",
608
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", y(_({
609
+ toggleFullscreen: t,
610
+ isFullscreen: n
611
+ })), void 0, !0)]),
612
+ key: "4"
613
+ } : void 0,
614
+ e.$slots.optionAnnotator ? {
615
+ name: "optionAnnotator",
616
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", y(_({
617
+ toggleAnnotator: t,
618
+ isAnnotator: n
619
+ })), void 0, !0)]),
620
+ key: "5"
621
+ } : void 0,
622
+ e.$slots.optionAltCopy ? {
623
+ name: "optionAltCopy",
624
+ fn: D(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
625
+ key: "6"
626
+ } : void 0,
627
+ e.$slots["custom-menu-before"] ? {
628
+ name: "custom-menu-before",
629
+ fn: D(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
630
+ key: "7"
631
+ } : void 0,
632
+ e.$slots["custom-menu-after"] ? {
633
+ name: "custom-menu-after",
634
+ fn: D(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
635
+ key: "8"
636
+ } : void 0
637
+ ]), 1032, [
638
+ "backgroundColor",
639
+ "color",
640
+ "isImaging",
641
+ "isPrinting",
642
+ "uid",
643
+ "hasPdf",
644
+ "hasImg",
645
+ "hasSvg",
646
+ "hasFullscreen",
647
+ "hasAltCopy",
648
+ "isFullscreen",
649
+ "titles",
650
+ "chartElement",
651
+ "callbacks",
652
+ "printScale",
653
+ "position",
654
+ "hasAnnotator",
655
+ "isAnnotation",
656
+ "isCursorPointer",
657
+ "onGeneratePdf",
658
+ "onGenerateImage",
659
+ "onGenerateSvg",
660
+ "style"
661
+ ])) : p("", !0),
662
+ (b(), m("svg", {
663
+ ref_key: "svgRef",
664
+ ref: F,
665
+ xmlns: T(le),
666
+ class: Ne({
667
+ "vue-data-ui-fullscreen--on": Q.value,
668
+ "vue-data-ui-fulscreen--off": !Q.value
669
+ }),
670
+ viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
671
+ style: Pe(`max-width:100%;overflow:hidden !important;background:transparent;color:${j.value.style.chart.color}`)
672
+ }, [
673
+ je(T(yt)),
674
+ e.$slots["chart-background"] ? (b(), m("foreignObject", {
675
+ key: 0,
676
+ x: 0,
677
+ y: 0,
678
+ width: R.value.width <= 0 ? 10 : R.value.width,
679
+ height: R.value.height <= 0 ? 10 : R.value.height,
680
+ style: { pointerEvents: "none" }
681
+ }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ue)) : p("", !0),
682
+ h("defs", null, [je(we, {
683
+ t: "radial",
684
+ id: `gradient_${k.value}`,
685
+ cx: "50%",
686
+ cy: "50%",
687
+ r: "50%",
688
+ fx: "50%",
689
+ fy: "50%",
690
+ stops: [
691
+ [
692
+ "0%",
693
+ T(t)("#FFFFFF", 1),
694
+ 1
695
+ ],
696
+ [
697
+ "80%",
698
+ T(t)("#FFFFFF", j.value.style.chart.layout.track.gradientIntensity),
699
+ 1
700
+ ],
701
+ [
702
+ "100%",
703
+ T(t)("#FFFFFF", 1),
704
+ 1
705
+ ]
706
+ ]
707
+ }, null, 8, ["id", "stops"])]),
708
+ h("defs", null, [h("filter", {
709
+ id: `blur_${k.value}`,
710
+ x: "-50%",
711
+ y: "-50%",
712
+ width: "200%",
713
+ height: "200%"
714
+ }, [h("feGaussianBlur", {
715
+ in: "SourceGraphic",
716
+ stdDeviation: 100 / j.value.style.chart.layout.track.gradientIntensity
717
+ }, null, 8, Ge)], 8, We)]),
718
+ e.$slots.pattern ? (b(), m("g", Ke, [(b(!0), m(u, null, S(X.value, (t, n) => (b(), m("defs", null, [C(e.$slots, "pattern", v({ ref_for: !0 }, {
719
+ seriesIndex: n,
720
+ patternId: `pattern_${k.value}_${n}`
721
+ }), void 0, !0)]))), 256))])) : p("", !0),
722
+ (b(!0), m(u, null, S(X.value, (e, t) => (b(), m("path", {
723
+ key: `arc_${t}`,
724
+ d: e.arcSlice,
725
+ fill: e.color,
726
+ stroke: j.value.style.chart.backgroundColor,
727
+ "stroke-linecap": "round"
728
+ }, null, 8, qe))), 128)),
729
+ e.$slots.pattern ? (b(!0), m(u, { key: 2 }, S(X.value, (e, t) => (b(), m("path", {
730
+ key: `arc_${t}`,
731
+ d: e.arcSlice,
732
+ fill: `url(#pattern_${k.value}_${t})`,
733
+ stroke: j.value.style.chart.backgroundColor,
734
+ "stroke-linecap": "round"
735
+ }, null, 8, Je))), 128)) : p("", !0),
736
+ j.value.style.chart.layout.indicatorArc.show ? (b(), m("path", {
737
+ key: 3,
738
+ d: rn.value,
739
+ fill: j.value.style.chart.layout.indicatorArc.fill
740
+ }, null, 8, Ye)) : p("", !0),
741
+ j.value.style.chart.layout.segmentNames.show && j.value.style.chart.layout.segmentNames.curved ? (b(), m(u, { key: 4 }, [(b(!0), m(u, null, S(X.value, (e, t) => (b(), m("path", {
742
+ id: `curve_${k.value}_${t}`,
743
+ 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`,
744
+ fill: "transparent"
745
+ }, null, 8, Xe))), 256)), (b(!0), m(u, null, S(X.value, (e, t) => (b(), m("text", {
746
+ fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
747
+ "font-size": q.value,
748
+ "font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
749
+ "text-anchor": "middle"
750
+ }, [h("textPath", {
751
+ href: `#curve_${k.value}_${t}`,
752
+ startOffset: tn.value[t]
753
+ }, w(e.name || ""), 9, Qe)], 8, Ze))), 256))], 64)) : p("", !0),
754
+ j.value.style.chart.layout.segmentNames.show && !j.value.style.chart.layout.segmentNames.curved ? (b(!0), m(u, { key: 5 }, S(Zt.value, (e, t) => (b(), m("text", {
755
+ class: "vue-ui-gauge-label-flat",
756
+ "text-anchor": T(re)(e, !1, 12).anchor,
757
+ fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
758
+ "font-size": q.value,
759
+ "font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
760
+ innerHTML: T(n)({
761
+ content: String(e.name ?? ""),
762
+ fontSize: q.value,
763
+ fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
764
+ x: e.center.endX,
765
+ y: e.center.endY
766
+ })
767
+ }, null, 8, $e))), 256)) : p("", !0),
768
+ j.value.style.chart.layout.track.useGradient ? (b(!0), m(u, { key: 6 }, S(nn.value, (e, t) => (b(), m("path", {
769
+ key: `arc_${t}`,
770
+ d: e.arcSlice,
771
+ fill: "#FFFFFF",
772
+ stroke: "none",
773
+ "stroke-linecap": "round",
774
+ filter: `url(#blur_${k.value})`
775
+ }, null, 8, et))), 128)) : p("", !0),
776
+ j.value.style.chart.layout.segmentSeparators.show ? (b(), m(u, { key: 7 }, [
777
+ h("line", v(Qt.value, {
778
+ stroke: j.value.style.chart.backgroundColor,
779
+ "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
780
+ "stroke-linecap": "round"
781
+ }), null, 16, tt),
782
+ h("line", v(Qt.value, {
783
+ stroke: j.value.style.chart.layout.segmentSeparators.stroke,
784
+ "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
785
+ "stroke-linecap": "round"
786
+ }), null, 16, nt),
787
+ (b(!0), m(u, null, S($t.value, (e) => (b(), m("line", v({ ref_for: !0 }, e, {
788
+ stroke: j.value.style.chart.backgroundColor,
789
+ "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
790
+ "stroke-linecap": "round"
791
+ }), null, 16, rt))), 256)),
792
+ (b(!0), m(u, null, S($t.value, (e) => (b(), m("line", v({ ref_for: !0 }, e, {
793
+ stroke: j.value.style.chart.layout.segmentSeparators.stroke,
794
+ "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
795
+ "stroke-linecap": "round"
796
+ }), null, 16, it))), 256))
797
+ ], 64)) : p("", !0),
798
+ j.value.style.chart.layout.markers.show ? (b(), m("g", at, [(b(!0), m(u, null, S(X.value, (e, t) => (b(), m("text", {
799
+ x: T(a)({
800
+ centerX: W.value.x1,
801
+ centerY: Y.value.base,
802
+ initX: e.center.startX,
803
+ initY: e.center.startY,
804
+ offset: R.value.markerOffset
805
+ }).x,
806
+ y: T(a)({
807
+ centerX: W.value.x1,
808
+ centerY: Y.value.base,
809
+ initX: e.center.startX,
810
+ initY: e.center.startY,
811
+ offset: R.value.markerOffset
812
+ }).y,
813
+ "text-anchor": e.center.startX < W.value.x1 - 5 ? "end" : e.center.startX > W.value.x1 + 5 ? "start" : "middle",
814
+ "font-size": R.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
815
+ "font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
816
+ fill: j.value.style.chart.layout.markers.color
817
+ }, w(T(ie)(j.value.style.chart.layout.markers.formatter, e.from, T(s)({
818
+ p: j.value.style.chart.layout.markers.prefix,
819
+ v: e.from,
820
+ s: j.value.style.chart.layout.markers.suffix,
821
+ r: j.value.style.chart.layout.markers.roundingValue
822
+ }))), 9, ot))), 256))])) : p("", !0),
823
+ j.value.style.chart.layout.markers.show ? (b(), m("text", {
824
+ key: 9,
825
+ x: T(a)({
826
+ centerX: R.value.width / 2,
827
+ centerY: Y.value.base,
828
+ initX: X.value.at(-1).endX,
829
+ initY: X.value.at(-1).endY,
830
+ offset: R.value.markerOffset
831
+ }).x,
832
+ y: T(a)({
833
+ centerX: R.value.width / 2,
834
+ centerY: Y.value.base,
835
+ initX: X.value.at(-1).endX,
836
+ initY: X.value.at(-1).endY,
837
+ offset: R.value.markerOffset
838
+ }).y,
839
+ "text-anchor": "start",
840
+ "font-size": R.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
841
+ "font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
842
+ fill: j.value.style.chart.layout.markers.color
843
+ }, w(T(ie)(j.value.style.chart.layout.markers.formatter, z.value, T(s)({
844
+ p: j.value.style.chart.layout.markers.prefix,
845
+ v: z.value,
846
+ s: j.value.style.chart.layout.markers.suffix,
847
+ r: j.value.style.chart.layout.markers.roundingValue
848
+ }))), 9, st)) : p("", !0),
849
+ j.value.style.chart.layout.pointer.show ? (b(), m(u, { key: 10 }, [j.value.style.chart.layout.pointer.type === "rounded" ? (b(), m("g", ct, [
850
+ isNaN(W.value.x2) ? p("", !0) : (b(), m("line", {
851
+ key: 0,
852
+ x1: W.value.x1,
853
+ y1: W.value.y1,
854
+ x2: W.value.x2,
855
+ y2: W.value.y2,
856
+ stroke: j.value.style.chart.layout.pointer.stroke,
857
+ "stroke-width": R.value.pointerStrokeWidth,
858
+ "stroke-linecap": "round"
859
+ }, null, 8, lt)),
860
+ isNaN(W.value.x2) ? p("", !0) : (b(), m("line", {
861
+ key: 1,
862
+ x1: W.value.x1,
863
+ y1: W.value.y1,
864
+ x2: W.value.x2,
865
+ y2: W.value.y2,
866
+ stroke: j.value.style.chart.layout.pointer.useRatingColor ? qt.value : j.value.style.chart.layout.pointer.color,
867
+ "stroke-linecap": "round",
868
+ "stroke-width": R.value.pointerStrokeWidth * .7
869
+ }, null, 8, ut)),
870
+ !isNaN(W.value.x2) && j.value.style.chart.layout.track.useGradient ? (b(), m("line", {
871
+ key: 2,
872
+ x1: W.value.x1,
873
+ y1: W.value.y1,
874
+ x2: W.value.x2,
875
+ y2: W.value.y2,
876
+ stroke: "white",
877
+ "stroke-linecap": "round",
878
+ "stroke-width": R.value.pointerStrokeWidth * .3,
879
+ filter: `url(#blur_${k.value})`
880
+ }, null, 8, dt)) : p("", !0)
881
+ ])) : (b(), m("g", ft, [Kt.value ? (b(), m("path", {
882
+ key: 0,
883
+ d: Kt.value,
884
+ fill: j.value.style.chart.layout.pointer.useRatingColor ? qt.value : j.value.style.chart.layout.pointer.color,
885
+ stroke: j.value.style.chart.layout.pointer.stroke,
886
+ "stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
887
+ "stroke-linejoin": "round"
888
+ }, null, 8, pt)) : p("", !0)])), h("circle", {
889
+ cx: R.value.width / 2,
890
+ cy: Y.value.base,
891
+ fill: j.value.style.chart.layout.pointer.circle.color,
892
+ r: R.value.pointerRadius <= 0 ? 1e-4 : R.value.pointerRadius,
893
+ "stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
894
+ stroke: j.value.style.chart.layout.pointer.circle.stroke
895
+ }, null, 8, mt)], 64)) : p("", !0),
896
+ j.value.style.chart.legend.show ? (b(), m("text", {
897
+ key: 11,
898
+ x: R.value.width / 2,
899
+ y: Y.value.ratingBase,
900
+ "text-anchor": "middle",
901
+ "font-size": R.value.legendFontSize,
902
+ "font-weight": "bold",
903
+ fill: j.value.style.chart.legend.useRatingColor ? qt.value : j.value.style.chart.legend.color
904
+ }, w(T(ie)(j.value.style.chart.legend.formatter, H.value, T(s)({
905
+ p: j.value.style.chart.legend.prefix + (j.value.style.chart.legend.showPlusSymbol && H.value > 0 ? "+" : ""),
906
+ v: H.value,
907
+ s: j.value.style.chart.legend.suffix,
908
+ r: j.value.style.chart.legend.roundingValue
909
+ }))), 9, ht)) : p("", !0),
910
+ C(e.$slots, "svg", { svg: {
911
+ ...R.value,
912
+ isPrintingImg: T(zt) || T(Bt) || T(un),
913
+ isPrintingSvg: T(dn)
914
+ } }, void 0, !0)
915
+ ], 14, He)),
916
+ e.$slots.watermark ? (b(), m("div", gt, [C(e.$slots, "watermark", y(_({ isPrinting: T(zt) || T(Bt) || T(un) || T(dn) })), void 0, !0)])) : p("", !0),
917
+ h("div", {
918
+ ref_key: "chartLegend",
919
+ ref: kt
920
+ }, [C(e.$slots, "legend", { legend: I.value }, void 0, !0)], 512),
921
+ e.$slots.source ? (b(), m("div", {
922
+ key: 5,
923
+ ref_key: "source",
924
+ ref: At,
925
+ dir: "auto"
926
+ }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
927
+ C(e.$slots, "skeleton", {}, () => [T(Ft) ? (b(), f(he, { key: 0 })) : p("", !0)], !0)
928
+ ], 46, Be));
929
+ }
930
+ }, [["__scopeId", "data-v-27f19797"]]);
931
+ //#endregion
932
+ export { ze as n, _t as t };