vue-data-ui 3.25.4 → 3.25.6

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 (213) hide show
  1. package/README.md +13 -13
  2. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  3. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  4. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  5. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  6. package/dist/{ColorPicker-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
  7. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  8. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  9. package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  10. package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
  11. package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
  12. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  13. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-hill.js +1 -1
  40. package/dist/components/vue-ui-history-plot.js +1 -1
  41. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  42. package/dist/components/vue-ui-icon.js +1 -1
  43. package/dist/components/vue-ui-kpi.js +1 -1
  44. package/dist/components/vue-ui-label.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +1 -1
  47. package/dist/components/vue-ui-mood-radar.js +1 -1
  48. package/dist/components/vue-ui-nested-donuts.js +1 -1
  49. package/dist/components/vue-ui-onion.js +1 -1
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +1 -1
  52. package/dist/components/vue-ui-quick-chart.js +1 -1
  53. package/dist/components/vue-ui-radar.js +1 -1
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +1 -1
  56. package/dist/components/vue-ui-ridgeline.js +1 -1
  57. package/dist/components/vue-ui-rings.js +1 -1
  58. package/dist/components/vue-ui-scatter.js +1 -1
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +1 -1
  63. package/dist/components/vue-ui-sparkgauge.js +1 -1
  64. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  65. package/dist/components/vue-ui-sparkline.js +1 -1
  66. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  67. package/dist/components/vue-ui-stackbar.js +1 -1
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +1 -1
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +1 -1
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +1 -1
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +1 -1
  76. package/dist/components/vue-ui-treemap.js +1 -1
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +1 -1
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +1 -1
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +1 -1
  83. package/dist/components/vue-ui-xy.js +1 -1
  84. package/dist/{package-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
  85. package/dist/{render-common-zoPh9a78.js → render-common-DETHvNhl.js} +1 -1
  86. package/dist/ssr/vue-ui-donut.js +1 -1
  87. package/dist/ssr/vue-ui-xy.js +1 -1
  88. package/dist/ssr.js +2 -2
  89. package/dist/style.css +1 -1
  90. package/dist/types/vue-data-ui.d.ts +80 -1
  91. package/dist/types/vue-ui-annotator.d.ts +58 -2
  92. package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
  93. package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
  94. package/dist/utils.js +1 -1
  95. package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  96. package/dist/vue-data-ui.js +71 -71
  97. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  98. package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  99. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  100. package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
  101. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  102. package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
  103. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  104. package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  105. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  106. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  107. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  108. package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  109. package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
  110. package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
  111. package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  112. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  113. package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  114. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  115. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  116. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  117. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  118. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  119. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  120. package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
  121. package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  122. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  123. package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
  124. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  125. package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
  126. package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  127. package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  128. package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  129. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  130. package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -376
  131. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  132. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  133. package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
  134. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  135. package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
  136. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  137. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  138. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  139. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  140. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  141. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  142. package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  143. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  144. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  145. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  146. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  147. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  148. package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  149. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  150. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  151. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  152. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  153. package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  154. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  155. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  156. package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
  157. package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-1Z2zginj.js} +153 -153
  158. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  159. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  160. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  161. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  162. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  163. package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
  164. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  165. package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  166. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  167. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  168. package/package.json +1 -1
  169. package/dist/vue-ui-3d-bar-CH8SpxS2.js +0 -1829
  170. package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
  171. package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
  172. package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
  173. package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
  174. package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
  175. package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
  176. package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
  177. package/dist/vue-ui-donut-DfiocufT.js +0 -2413
  178. package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
  179. package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
  180. package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
  181. package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
  182. package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
  183. package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
  184. package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
  185. package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
  186. package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
  187. package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
  188. package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
  189. package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
  190. package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
  191. package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
  192. package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
  193. package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
  194. package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
  195. package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
  196. package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
  197. package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
  198. package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
  199. package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
  200. package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
  201. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
  202. package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
  203. package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
  204. package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
  205. package/dist/vue-ui-table-BQna1wL6.js +0 -1352
  206. package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
  207. package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
  208. package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
  209. package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
  210. package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
  211. package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
  212. package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
  213. package/dist/vue-ui-xy-canvas-B_8Mu19r.js +0 -1824
@@ -0,0 +1,934 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Ft as t, G as n, Lt as r, Mt as i, O as a, Pt as ee, S as te, Ut as o, X as s, Xt as ne, Yt as re, Zt as ie, b as ae, f as oe, ht as se, i as ce, nt as c, q as le, t as ue, w as de } from "./lib-Dql7cqyA.js";
3
+ import { n as fe } from "./useHints-Dq_w2E8B.js";
4
+ import { t as pe } from "./useConfig-CIQZ6_r7.js";
5
+ import { t as me } from "./usePrinter-DISD7q5m.js";
6
+ import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as _e } from "./useNestedProp-Chvyfpl-.js";
8
+ import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ye } from "./useChartExport-iwOqiIWX.js";
10
+ import { t as be } from "./img-DhGApYG0.js";
11
+ import { n as xe } from "./Title-CPHi-evi.js";
12
+ import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { l as Ce, t as we } from "./useResponsive-ZtArZtUf.js";
14
+ import { t as Te } from "./DefGrad-DVBqDjhO.js";
15
+ import { t as Ee } from "./useUserOptionState-DK-_1ddE.js";
16
+ import { t as De } from "./useChartAccessibility-DYqac8yF.js";
17
+ import { t as Oe } from "./usePrefersMotion-BC-CsqR1.js";
18
+ import { t as ke } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
19
+ import { t as Ae } from "./vue_ui_gauge-Cf1RZc9q.js";
20
+ import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as je, createVNode as Me, defineAsyncComponent as Ne, guardReactiveProps as h, mergeProps as g, nextTick as Pe, normalizeClass as Fe, normalizeProps as _, normalizeStyle as Ie, onBeforeUnmount as Le, onMounted as Re, openBlock as v, ref as y, renderList as b, renderSlot as x, shallowRef as ze, toDisplayString as S, toRefs as Be, unref as C, watch as Ve, withCtx as w } from "vue";
21
+ //#region src/components/vue-ui-gauge.vue
22
+ var He = /* @__PURE__ */ e({ default: () => bt }), Ue = ["id"], We = { key: 0 }, Ge = ["xmlns", "viewBox"], Ke = ["width", "height"], qe = ["id"], Je = ["stdDeviation"], Ye = { key: 1 }, Xe = [
23
+ "d",
24
+ "fill",
25
+ "stroke"
26
+ ], Ze = [
27
+ "d",
28
+ "fill",
29
+ "stroke"
30
+ ], Qe = ["d", "fill"], $e = ["id", "d"], et = [
31
+ "fill",
32
+ "font-size",
33
+ "font-weight"
34
+ ], tt = ["href", "startOffset"], nt = [
35
+ "text-anchor",
36
+ "fill",
37
+ "font-size",
38
+ "font-weight",
39
+ "innerHTML"
40
+ ], rt = ["d", "filter"], it = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ot = ["stroke", "stroke-width"], st = ["stroke", "stroke-width"], ct = { key: 8 }, lt = [
41
+ "x",
42
+ "y",
43
+ "text-anchor",
44
+ "font-size",
45
+ "font-weight",
46
+ "fill"
47
+ ], ut = [
48
+ "x",
49
+ "y",
50
+ "font-size",
51
+ "font-weight",
52
+ "fill"
53
+ ], dt = { key: 0 }, ft = [
54
+ "x1",
55
+ "y1",
56
+ "x2",
57
+ "y2",
58
+ "stroke",
59
+ "stroke-width"
60
+ ], pt = [
61
+ "x1",
62
+ "y1",
63
+ "x2",
64
+ "y2",
65
+ "stroke",
66
+ "stroke-width"
67
+ ], mt = [
68
+ "x1",
69
+ "y1",
70
+ "x2",
71
+ "y2",
72
+ "stroke-width",
73
+ "filter"
74
+ ], ht = { key: 1 }, gt = [
75
+ "d",
76
+ "fill",
77
+ "stroke",
78
+ "stroke-width"
79
+ ], _t = [
80
+ "cx",
81
+ "cy",
82
+ "fill",
83
+ "r",
84
+ "stroke-width",
85
+ "stroke"
86
+ ], vt = [
87
+ "x",
88
+ "y",
89
+ "font-size",
90
+ "fill"
91
+ ], yt = {
92
+ key: 4,
93
+ class: "vue-data-ui-watermark"
94
+ }, bt = /*#__PURE__*/ Se({
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: Se, emit: He }) {
112
+ let bt = Ne(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), xt = Ne(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), St = Ne(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), { vue_ui_gauge: Ct } = pe(), { isThemeValid: wt, warnInvalidTheme: Tt } = ve(), Et = Oe(), T = e, Dt = He, Ot = u(() => !!T.dataset && Object.keys(T.dataset).length > 0 && T.dataset.series && T.dataset.series.length), E = y(le()), kt = y(null), At = y(0), D = y(null), jt = y(null), Mt = y(null), Nt = y(null), Pt = y(null), Ft = y(0), O = y(Ht()), k = u(() => O.value.style.chart.layout.segmentSeparators), A = u(() => O.value.style.chart.layout.segmentNames), j = u(() => O.value.style.chart.layout.markers), M = u(() => O.value.style.chart.layout.pointer), N = u(() => O.value.style.chart.layout), P = u(() => O.value.style.chart);
113
+ fe({
114
+ config: () => O.value,
115
+ dataset: () => T.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 It = u(() => O.value.userOptions.useCursorPointer), Lt = u(() => ie({
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: O.value.skeletonConfig ?? {}
150
+ })), { loading: Rt, FINAL_DATASET: F, manualLoading: I } = he({
151
+ ...Be(T),
152
+ FINAL_CONFIG: O,
153
+ prepareConfig: Ht,
154
+ callback: () => {
155
+ Promise.resolve().then(async () => {
156
+ await Pe();
157
+ });
158
+ },
159
+ skeletonDataset: T.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: ie({
174
+ defaultConfig: O.value,
175
+ userConfig: Lt.value
176
+ })
177
+ }), { userOptionsVisible: zt, setUserOptionsVisibility: Bt, keepUserOptionState: Vt } = Ee({ config: O.value }), { svgRef: L } = De({ config: P.value.title });
178
+ Ve(() => T.config, (e) => {
179
+ Rt.value || (O.value = Ht()), zt.value = !O.value.userOptions.showOnChartHover, en(), Ft.value += 1;
180
+ }, { deep: !0 }), Ve(() => T.dataset, (e) => {
181
+ en(), e && Object.keys(e).length > 0 && (I.value = O.value?.loading ?? !1);
182
+ }, {
183
+ deep: !0,
184
+ immediate: !1
185
+ });
186
+ function Ht() {
187
+ let e = _e({
188
+ userConfig: T.config,
189
+ defaultConfig: Ct
190
+ }), t = e.theme;
191
+ if (!t) return e;
192
+ if (!wt.value(e)) return Tt(e), e;
193
+ let n = _e({
194
+ userConfig: Ae[t] || T.config,
195
+ defaultConfig: e
196
+ }), i = _e({
197
+ userConfig: T.config,
198
+ defaultConfig: n
199
+ });
200
+ return {
201
+ ...i,
202
+ customPalette: i.customPalette.length ? i.customPalette : re[t] || r
203
+ };
204
+ }
205
+ let { isPrinting: Ut, isImaging: Wt, generatePdf: Gt, generateImage: Kt } = me({
206
+ elementId: `vue-ui-gauge_${E.value}`,
207
+ fileName: P.value.title.text || "vue-ui-gauge",
208
+ options: O.value.userOptions.print
209
+ }), qt = u(() => O.value.userOptions.show && !P.value.title.text), Jt = u(() => de(O.value.customPalette)), R = u(() => {
210
+ if (ee(F.value.series || {})) return {
211
+ value: 0,
212
+ series: [{
213
+ from: 0,
214
+ to: 0
215
+ }]
216
+ };
217
+ let e = [];
218
+ (F.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
+ ...F.value,
224
+ series: (F.value.series || []).map((e, n) => ({
225
+ ...e,
226
+ color: te(e.color) || Jt.value[n] || r[n],
227
+ value: ((e.to || 0) - (e.from || 0)) / t * 100
228
+ }))
229
+ };
230
+ }), z = y(512), B = y({
231
+ height: 358.4,
232
+ width: z.value,
233
+ top: 0,
234
+ bottom: 358.4,
235
+ centerX: 179.2,
236
+ centerY: z.value / 2,
237
+ labelFontSize: 18,
238
+ legendFontSize: P.value.legend.fontSize,
239
+ pointerRadius: M.value.circle.radius,
240
+ trackSize: N.value.track.size,
241
+ pointerSize: M.value.size,
242
+ pointerStrokeWidth: M.value.strokeWidth,
243
+ markerOffset: j.value.offsetY + 3,
244
+ segmentFontSize: A.value.fontSize
245
+ }), V = y(0), H = y(0), U = u(() => P.value.animation.use && !Et.value), W = y(U.value ? Math.min(...F.value.series.map((e) => e.from)) : F.value.value), G = null;
246
+ function Yt() {
247
+ G !== null && (cancelAnimationFrame(G), G = null);
248
+ }
249
+ Ve(U, (e) => {
250
+ e || (Yt(), W.value = F.value.value);
251
+ }), Ve(() => F.value.value, () => {
252
+ tn(F.value.value);
253
+ });
254
+ let K = u(() => {
255
+ let e = B.value.width / 2, t = X.value.base, n = Math.PI * ((W.value + 0 - H.value) / (V.value - H.value)) + Math.PI;
256
+ return {
257
+ x1: e,
258
+ y1: t,
259
+ x2: e + X.value.pointerSize * B.value.pointerSize * .9 * Math.cos(n),
260
+ y2: t + X.value.pointerSize * B.value.pointerSize * .9 * Math.sin(n)
261
+ };
262
+ }), Xt = u(() => {
263
+ let e = B.value.width / 2, t = X.value.base, n = Math.PI * ((W.value + 0 - H.value) / (V.value - H.value)) + Math.PI, r = e + X.value.pointerSize * B.value.pointerSize * .9 * Math.cos(n), i = t + X.value.pointerSize * B.value.pointerSize * .9 * Math.sin(n), a = B.value.pointerRadius, ee = e + a * Math.cos(n + Math.PI / 2), te = t + a * Math.sin(n + Math.PI / 2), o = 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},${te} ${o},${s} Z`;
265
+ }), Zt = u(() => {
266
+ for (let e = 0; e < R.value.series.length; e += 1) {
267
+ let { color: t, from: n, to: r } = R.value.series[e];
268
+ if (W.value >= n && W.value <= r) return t;
269
+ }
270
+ return "#2D353C";
271
+ }), q = ze(null), J = ze(null), Y = u({
272
+ get: () => B.value.segmentFontSize,
273
+ set: (e) => e
274
+ }), { autoSizeLabels: Qt } = ke({
275
+ svgRef: L,
276
+ fontSize: B.value.segmentFontSize,
277
+ minFontSize: A.value.minFontSize,
278
+ sizeRef: Y,
279
+ labelClass: ".vue-ui-gauge-label-flat"
280
+ }), $t = u(() => O.value.debug);
281
+ function en() {
282
+ let e = !1;
283
+ if (ee(T.dataset) ? (c({
284
+ componentName: "VueUiGauge",
285
+ type: "dataset",
286
+ debug: $t.value
287
+ }), I.value = !0, e = !0) : (se({
288
+ datasetObject: T.dataset,
289
+ requiredAttributes: ["value", "series"]
290
+ }).forEach((t) => {
291
+ c({
292
+ componentName: "VueUiGauge",
293
+ type: "datasetAttribute",
294
+ property: t,
295
+ debug: $t.value
296
+ }), I.value = !0, e = !0;
297
+ }), Object.hasOwn(T.dataset, "series") && (T.dataset.series.length ? T.dataset.series.forEach((t, n) => {
298
+ se({
299
+ datasetObject: t,
300
+ requiredAttributes: ["from", "to"]
301
+ }).forEach((t) => {
302
+ c({
303
+ componentName: "VueUiGauge",
304
+ type: "datasetSerieAttribute",
305
+ property: t,
306
+ index: n,
307
+ debug: $t.value
308
+ }), I.value = !0, e = !0;
309
+ });
310
+ }) : (c({
311
+ componentName: "VueUiGauge",
312
+ type: "datasetAttributeEmpty",
313
+ property: "series",
314
+ debug: $t.value
315
+ }), I.value = !0, e = !0))), I.value = e, tn(F.value.value || 0), O.value.responsive) {
316
+ let e = Ce(() => {
317
+ let { width: e, height: t } = we({
318
+ chart: D.value,
319
+ title: P.value.title.text ? jt.value : null,
320
+ legend: Mt.value,
321
+ source: Nt.value,
322
+ noTitle: Pt.value
323
+ });
324
+ t -= 12, requestAnimationFrame(() => {
325
+ 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 = P.value.legend.fontSize / z.value * Math.min(t, e) < 14 ? 14 : P.value.legend.fontSize / z.value * Math.min(t, e), B.value.pointerRadius = M.value.circle.radius / z.value * Math.min(t, e), B.value.trackSize = N.value.track.size / z.value * Math.min(t, e), B.value.pointerStrokeWidth = ne({
326
+ relator: Math.min(e, t),
327
+ adjuster: z.value,
328
+ source: M.value.strokeWidth,
329
+ threshold: 2,
330
+ fallback: 2
331
+ }), B.value.markerOffset = ne({
332
+ relator: Math.max(e, t),
333
+ adjuster: z.value,
334
+ source: j.value.offsetY + 3,
335
+ threshold: 2,
336
+ fallback: 2
337
+ }), B.value.segmentFontSize = ne({
338
+ relator: Math.min(e, t),
339
+ adjuster: z.value,
340
+ source: A.value.fontSize,
341
+ threshold: 8,
342
+ fallback: 8
343
+ });
344
+ }), Qt();
345
+ });
346
+ q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect()), q.value = new ResizeObserver(e), J.value = D.value.parentNode, q.value.observe(J.value);
347
+ }
348
+ Qt();
349
+ }
350
+ Re(() => {
351
+ en();
352
+ }), Le(() => {
353
+ Yt(), q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect());
354
+ });
355
+ function tn(e) {
356
+ let t = [];
357
+ if ((R.value.series || []).forEach((e) => {
358
+ t.push(e.from || 0), t.push(e.to || 0);
359
+ }), V.value = Math.max(...t), H.value = Math.min(...t), Yt(), !U.value) {
360
+ W.value = e;
361
+ return;
362
+ }
363
+ let n = P.value.animation.speed, r = Math.abs(e - W.value) / (n * 60);
364
+ function i() {
365
+ if (!U.value) {
366
+ W.value = e, G = null;
367
+ return;
368
+ }
369
+ W.value < e ? W.value = Math.min(W.value + r, e) : W.value > e && (W.value = Math.max(W.value - r, e)), G = W.value === e ? null : requestAnimationFrame(i);
370
+ }
371
+ i();
372
+ }
373
+ let X = u(() => {
374
+ let e = O.value.responsive ? Math.min(B.value.width, B.value.height) : B.value.width, t = 2.5 / N.value.radiusRatio;
375
+ return {
376
+ arcs: e / t,
377
+ gradients: e / (t * 1.1),
378
+ base: O.value.responsive ? B.value.height / 1.618 : B.value.height * .7,
379
+ ratingBase: O.value.responsive ? B.value.height / 2 + B.value.height / 4 : B.value.height * .9,
380
+ pointerSize: O.value.responsive ? Math.min(B.value.width, B.value.height) / 3 : B.value.width / 3.2
381
+ };
382
+ }), Z = u(() => i({ series: R.value.series }, B.value.width / 2, X.value.base, X.value.arcs, X.value.arcs, 1, 1, 1, 180, 109.9495, 40 * B.value.trackSize)), nn = u(() => i({ series: R.value.series }, B.value.width / 2, X.value.base, X.value.arcs * A.value.offsetRatio, X.value.arcs * A.value.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * B.value.trackSize)), Q = u(() => Z.value.map((e) => X.value.arcs * A.value.offsetRatio * (e.nameOffsetRatio || 1))), rn = u(() => {
383
+ let { x: e, y: n } = t({
384
+ initX: Z.value[0].firstSeparator.x,
385
+ initY: Z.value[0].firstSeparator.y,
386
+ centerX: K.value.x1,
387
+ centerY: K.value.y1,
388
+ offset: -k.value.offsetIn
389
+ }), { x: r, y: i } = t({
390
+ initX: Z.value[0].startX,
391
+ initY: Z.value[0].startY,
392
+ centerX: K.value.x1,
393
+ centerY: K.value.y1,
394
+ offset: k.value.offsetOut
395
+ });
396
+ return {
397
+ x1: e,
398
+ y1: n,
399
+ x2: r,
400
+ y2: i
401
+ };
402
+ }), an = u(() => Z.value.map((e) => {
403
+ let { x: n, y: r } = t({
404
+ initX: e.separator.x,
405
+ initY: e.separator.y,
406
+ centerX: K.value.x1,
407
+ centerY: K.value.y1,
408
+ offset: -k.value.offsetIn
409
+ }), { x: i, y: a } = t({
410
+ initX: e.endX,
411
+ initY: e.endY,
412
+ centerX: K.value.x1,
413
+ centerY: K.value.y1,
414
+ offset: k.value.offsetOut
415
+ });
416
+ return {
417
+ x1: n,
418
+ y1: r,
419
+ x2: i,
420
+ y2: a
421
+ };
422
+ }));
423
+ function on(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 sn = u(() => on(Z.value.map((e) => e.proportion * 100))), cn = u(() => i({ series: R.value.series }, B.value.width / 2, X.value.base, X.value.gradients, X.value.gradients, .95, 1, 1, 180, 110.02, 2 * B.value.trackSize)), ln = u(() => {
429
+ let e = H.value >= 0 ? -H.value : Math.abs(H.value);
430
+ return a({
431
+ radius: N.value.indicatorArc.radius * B.value.trackSize,
432
+ centerX: B.value.width / 2,
433
+ centerY: X.value.base,
434
+ percentage: ae((W.value + e) / (V.value + e))
435
+ });
436
+ }), $ = y(!1);
437
+ function un(e) {
438
+ $.value = e, At.value += 1;
439
+ }
440
+ let dn = y(!1);
441
+ function fn() {
442
+ dn.value = !dn.value;
443
+ }
444
+ async function pn({ scale: e = 2 } = {}) {
445
+ if (!D.value) return;
446
+ let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
447
+ domElement: D.value,
448
+ base64: !0,
449
+ img: !0,
450
+ scale: e
451
+ });
452
+ return {
453
+ imageUri: i,
454
+ base64: a,
455
+ title: P.value.title.text,
456
+ width: t,
457
+ height: n,
458
+ aspectRatio: r
459
+ };
460
+ }
461
+ let mn = u(() => P.value.backgroundColor), hn = u(() => P.value.title), { isCallbackImaging: gn, isCallbackSvg: _n, generateSvg: vn, onGenerateImage: yn } = ye({
462
+ svg: L,
463
+ title: hn,
464
+ legend: null,
465
+ legendItems: null,
466
+ backgroundColor: mn,
467
+ getSvgCallback: () => O.value.userOptions.callbacks.svg,
468
+ generateImage: Kt
469
+ });
470
+ async function bn() {
471
+ if (Dt("copyAlt", {
472
+ config: O.value,
473
+ dataset: R.value
474
+ }), !O.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(O.value.userOptions.callbacks.altCopy({
479
+ config: O.value,
480
+ dataset: R.value
481
+ }));
482
+ }
483
+ return Se({
484
+ getImage: pn,
485
+ generatePdf: Gt,
486
+ generateImage: Kt,
487
+ generateSvg: vn,
488
+ toggleAnnotator: fn,
489
+ toggleFullscreen: un,
490
+ copyAlt: bn
491
+ }), (e, r) => (v(), p("div", {
492
+ class: Fe(`vue-data-ui-component vue-ui-gauge ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
493
+ ref_key: "gaugeChart",
494
+ ref: D,
495
+ id: `vue-ui-gauge_${E.value}`,
496
+ style: Ie(`font-family:${O.value.style.fontFamily};width:100%; text-align:center;background:${P.value.backgroundColor};${O.value.responsive ? "height: 100%" : ""}`),
497
+ onMouseenter: r[0] ||= () => C(Bt)(!0),
498
+ onMouseleave: r[1] ||= () => C(Bt)(!1)
499
+ }, [
500
+ O.value.userOptions.buttons.annotator ? (v(), d(C(bt), {
501
+ key: 0,
502
+ svgRef: C(L),
503
+ backgroundColor: P.value.backgroundColor,
504
+ color: P.value.color,
505
+ active: dn.value,
506
+ isCursorPointer: It.value,
507
+ palette: O.value.userOptions.annotatorPalette,
508
+ onClose: fn
509
+ }, {
510
+ "annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
511
+ "annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
512
+ "annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
513
+ "annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
514
+ "annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
515
+ "annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
516
+ _: 3
517
+ }, 8, [
518
+ "svgRef",
519
+ "backgroundColor",
520
+ "color",
521
+ "active",
522
+ "isCursorPointer",
523
+ "palette"
524
+ ])) : f("", !0),
525
+ qt.value ? (v(), p("div", {
526
+ key: 1,
527
+ ref_key: "noTitle",
528
+ ref: Pt,
529
+ class: "vue-data-ui-no-title-space",
530
+ style: "height:36px; width: 100%;background:transparent"
531
+ }, null, 512)) : f("", !0),
532
+ P.value.title.text ? (v(), p("div", {
533
+ key: 2,
534
+ ref_key: "chartTitle",
535
+ ref: jt,
536
+ style: "width:100%;background:transparent;padding-bottom:12px"
537
+ }, [(v(), d(xe, {
538
+ key: `title_${Ft.value}`,
539
+ config: {
540
+ title: {
541
+ cy: "gauge-div-title",
542
+ ...P.value.title
543
+ },
544
+ subtitle: {
545
+ cy: "gauge-div-subtitle",
546
+ ...P.value.title.subtitle
547
+ }
548
+ }
549
+ }, {
550
+ default: w(() => [O.value.translations.base && C(F).base ? (v(), p("span", We, S(O.value.translations.base) + ": " + S(C(F).base), 1)) : f("", !0)]),
551
+ _: 1
552
+ }, 8, ["config"]))], 512)) : f("", !0),
553
+ O.value.userOptions.show && Ot.value && (C(Vt) || C(zt)) ? (v(), d(C(xt), {
554
+ ref_key: "details",
555
+ ref: kt,
556
+ key: `user_options_${At.value}`,
557
+ backgroundColor: P.value.backgroundColor,
558
+ color: P.value.color,
559
+ isImaging: C(Wt),
560
+ isPrinting: C(Ut),
561
+ uid: E.value,
562
+ hasXls: !1,
563
+ hasPdf: O.value.userOptions.buttons.pdf,
564
+ hasImg: O.value.userOptions.buttons.img,
565
+ hasSvg: O.value.userOptions.buttons.svg,
566
+ hasFullscreen: O.value.userOptions.buttons.fullscreen,
567
+ hasAltCopy: O.value.userOptions.buttons.altCopy,
568
+ isFullscreen: $.value,
569
+ titles: { ...O.value.userOptions.buttonTitles },
570
+ chartElement: D.value,
571
+ callbacks: O.value.userOptions.callbacks,
572
+ printScale: O.value.userOptions.print.scale,
573
+ position: O.value.userOptions.position,
574
+ hasAnnotator: O.value.userOptions.buttons.annotator,
575
+ isAnnotation: dn.value,
576
+ isCursorPointer: It.value,
577
+ onToggleFullscreen: un,
578
+ onGeneratePdf: C(Gt),
579
+ onGenerateImage: C(yn),
580
+ onGenerateSvg: C(vn),
581
+ onToggleAnnotator: fn,
582
+ onCopyAlt: bn,
583
+ style: Ie({ visibility: C(Vt) ? C(zt) ? "visible" : "hidden" : "visible" })
584
+ }, je({ _: 2 }, [
585
+ e.$slots.menuIcon ? {
586
+ name: "menuIcon",
587
+ fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(h({
588
+ isOpen: t,
589
+ color: n
590
+ })), void 0, !0)]),
591
+ key: "0"
592
+ } : void 0,
593
+ e.$slots.optionPdf ? {
594
+ name: "optionPdf",
595
+ fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
596
+ key: "1"
597
+ } : void 0,
598
+ e.$slots.optionImg ? {
599
+ name: "optionImg",
600
+ fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
601
+ key: "2"
602
+ } : void 0,
603
+ e.$slots.optionSvg ? {
604
+ name: "optionSvg",
605
+ fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
606
+ key: "3"
607
+ } : void 0,
608
+ e.$slots.optionFullscreen ? {
609
+ name: "optionFullscreen",
610
+ fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(h({
611
+ toggleFullscreen: t,
612
+ isFullscreen: n
613
+ })), void 0, !0)]),
614
+ key: "4"
615
+ } : void 0,
616
+ e.$slots.optionAnnotator ? {
617
+ name: "optionAnnotator",
618
+ fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(h({
619
+ toggleAnnotator: t,
620
+ isAnnotator: n
621
+ })), void 0, !0)]),
622
+ key: "5"
623
+ } : void 0,
624
+ e.$slots.optionAltCopy ? {
625
+ name: "optionAltCopy",
626
+ fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
627
+ key: "6"
628
+ } : void 0,
629
+ e.$slots["custom-menu-before"] ? {
630
+ name: "custom-menu-before",
631
+ fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
632
+ key: "7"
633
+ } : void 0,
634
+ e.$slots["custom-menu-after"] ? {
635
+ name: "custom-menu-after",
636
+ fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
637
+ key: "8"
638
+ } : void 0
639
+ ]), 1032, [
640
+ "backgroundColor",
641
+ "color",
642
+ "isImaging",
643
+ "isPrinting",
644
+ "uid",
645
+ "hasPdf",
646
+ "hasImg",
647
+ "hasSvg",
648
+ "hasFullscreen",
649
+ "hasAltCopy",
650
+ "isFullscreen",
651
+ "titles",
652
+ "chartElement",
653
+ "callbacks",
654
+ "printScale",
655
+ "position",
656
+ "hasAnnotator",
657
+ "isAnnotation",
658
+ "isCursorPointer",
659
+ "onGeneratePdf",
660
+ "onGenerateImage",
661
+ "onGenerateSvg",
662
+ "style"
663
+ ])) : f("", !0),
664
+ (v(), p("svg", {
665
+ ref_key: "svgRef",
666
+ ref: L,
667
+ xmlns: C(ue),
668
+ class: Fe({
669
+ "vue-data-ui-fullscreen--on": $.value,
670
+ "vue-data-ui-fulscreen--off": !$.value
671
+ }),
672
+ viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
673
+ style: Ie(`max-width:100%;overflow:hidden !important;background:transparent;color:${P.value.color}`)
674
+ }, [
675
+ Me(C(St)),
676
+ e.$slots["chart-background"] ? (v(), p("foreignObject", {
677
+ key: 0,
678
+ x: 0,
679
+ y: 0,
680
+ width: B.value.width <= 0 ? 10 : B.value.width,
681
+ height: B.value.height <= 0 ? 10 : B.value.height,
682
+ style: { pointerEvents: "none" }
683
+ }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : f("", !0),
684
+ m("defs", null, [Me(Te, {
685
+ t: "radial",
686
+ id: `gradient_${E.value}`,
687
+ cx: "50%",
688
+ cy: "50%",
689
+ r: "50%",
690
+ fx: "50%",
691
+ fy: "50%",
692
+ stops: [
693
+ [
694
+ "0%",
695
+ C(o)("#FFFFFF", 1),
696
+ 1
697
+ ],
698
+ [
699
+ "80%",
700
+ C(o)("#FFFFFF", N.value.track.gradientIntensity),
701
+ 1
702
+ ],
703
+ [
704
+ "100%",
705
+ C(o)("#FFFFFF", 1),
706
+ 1
707
+ ]
708
+ ]
709
+ }, null, 8, ["id", "stops"])]),
710
+ m("defs", null, [m("filter", {
711
+ id: `blur_${E.value}`,
712
+ x: "-50%",
713
+ y: "-50%",
714
+ width: "200%",
715
+ height: "200%"
716
+ }, [m("feGaussianBlur", {
717
+ in: "SourceGraphic",
718
+ stdDeviation: 100 / N.value.track.gradientIntensity
719
+ }, null, 8, Je)], 8, qe)]),
720
+ e.$slots.pattern ? (v(), p("g", Ye, [(v(!0), p(l, null, b(Z.value, (t, n) => (v(), p("defs", null, [x(e.$slots, "pattern", g({ ref_for: !0 }, {
721
+ seriesIndex: n,
722
+ patternId: `pattern_${E.value}_${n}`
723
+ }), void 0, !0)]))), 256))])) : f("", !0),
724
+ (v(!0), p(l, null, b(Z.value, (e, t) => (v(), p("path", {
725
+ key: `arc_${t}`,
726
+ d: e.arcSlice,
727
+ fill: e.color,
728
+ stroke: P.value.backgroundColor,
729
+ "stroke-linecap": "round"
730
+ }, null, 8, Xe))), 128)),
731
+ e.$slots.pattern ? (v(!0), p(l, { key: 2 }, b(Z.value, (e, t) => (v(), p("path", {
732
+ key: `arc_${t}`,
733
+ d: e.arcSlice,
734
+ fill: `url(#pattern_${E.value}_${t})`,
735
+ stroke: P.value.backgroundColor,
736
+ "stroke-linecap": "round"
737
+ }, null, 8, Ze))), 128)) : f("", !0),
738
+ N.value.indicatorArc.show ? (v(), p("path", {
739
+ key: 3,
740
+ d: ln.value,
741
+ fill: N.value.indicatorArc.fill
742
+ }, null, 8, Qe)) : f("", !0),
743
+ A.value.show && A.value.curved ? (v(), p(l, { key: 4 }, [(v(!0), p(l, null, b(Z.value, (e, t) => (v(), p("path", {
744
+ id: `curve_${E.value}_${t}`,
745
+ d: `M ${K.value.x1},${K.value.y1} m -${Q.value[t]},0 a ${Q.value[t]},${Q.value[t]} 0 1,1 ${2 * Q.value[t]},0 a ${Q.value[t]},${Q.value[t]} 0 1,1 -${2 * Q.value[t]},0`,
746
+ fill: "transparent"
747
+ }, null, 8, $e))), 256)), (v(!0), p(l, null, b(Z.value, (e, t) => (v(), p("text", {
748
+ fill: A.value.useSerieColor ? e.color : A.value.color,
749
+ "font-size": Y.value,
750
+ "font-weight": A.value.bold ? "bold" : "normal",
751
+ "text-anchor": "middle"
752
+ }, [m("textPath", {
753
+ href: `#curve_${E.value}_${t}`,
754
+ startOffset: sn.value[t]
755
+ }, S(e.name || ""), 9, tt)], 8, et))), 256))], 64)) : f("", !0),
756
+ A.value.show && !A.value.curved ? (v(!0), p(l, { key: 5 }, b(nn.value, (e, t) => (v(), p("text", {
757
+ class: "vue-ui-gauge-label-flat",
758
+ "text-anchor": C(oe)(e, !1, 12).anchor,
759
+ fill: A.value.useSerieColor ? e.color : A.value.color,
760
+ "font-size": Y.value,
761
+ "font-weight": A.value.bold ? "bold" : "normal",
762
+ innerHTML: C(n)({
763
+ content: String(e.name ?? ""),
764
+ fontSize: Y.value,
765
+ fill: A.value.useSerieColor ? e.color : A.value.color,
766
+ x: e.center.endX,
767
+ y: e.center.endY
768
+ })
769
+ }, null, 8, nt))), 256)) : f("", !0),
770
+ N.value.track.useGradient ? (v(!0), p(l, { key: 6 }, b(cn.value, (e, t) => (v(), p("path", {
771
+ key: `arc_${t}`,
772
+ d: e.arcSlice,
773
+ fill: "#FFFFFF",
774
+ stroke: "none",
775
+ "stroke-linecap": "round",
776
+ filter: `url(#blur_${E.value})`
777
+ }, null, 8, rt))), 128)) : f("", !0),
778
+ k.value.show ? (v(), p(l, { key: 7 }, [
779
+ m("line", g(rn.value, {
780
+ stroke: P.value.backgroundColor,
781
+ "stroke-width": k.value.strokeWidth + 2,
782
+ "stroke-linecap": "round"
783
+ }), null, 16, it),
784
+ m("line", g(rn.value, {
785
+ stroke: k.value.stroke,
786
+ "stroke-width": k.value.strokeWidth,
787
+ "stroke-linecap": "round"
788
+ }), null, 16, at),
789
+ (v(!0), p(l, null, b(an.value, (e) => (v(), p("line", g({ ref_for: !0 }, e, {
790
+ stroke: P.value.backgroundColor,
791
+ "stroke-width": k.value.strokeWidth + 2,
792
+ "stroke-linecap": "round"
793
+ }), null, 16, ot))), 256)),
794
+ (v(!0), p(l, null, b(an.value, (e) => (v(), p("line", g({ ref_for: !0 }, e, {
795
+ stroke: k.value.stroke,
796
+ "stroke-width": k.value.strokeWidth,
797
+ "stroke-linecap": "round"
798
+ }), null, 16, st))), 256))
799
+ ], 64)) : f("", !0),
800
+ j.value.show ? (v(), p("g", ct, [(v(!0), p(l, null, b(Z.value, (e, n) => (v(), p("text", {
801
+ x: C(t)({
802
+ centerX: K.value.x1,
803
+ centerY: X.value.base,
804
+ initX: e.center.startX,
805
+ initY: e.center.startY,
806
+ offset: B.value.markerOffset
807
+ }).x,
808
+ y: C(t)({
809
+ centerX: K.value.x1,
810
+ centerY: X.value.base,
811
+ initX: e.center.startX,
812
+ initY: e.center.startY,
813
+ offset: B.value.markerOffset
814
+ }).y,
815
+ "text-anchor": e.center.startX < K.value.x1 - 5 ? "end" : e.center.startX > K.value.x1 + 5 ? "start" : "middle",
816
+ "font-size": B.value.labelFontSize * j.value.fontSizeRatio,
817
+ "font-weight": `${j.value.bold ? "bold" : "normal"}`,
818
+ fill: j.value.color
819
+ }, S(C(ce)(j.value.formatter, e.from, C(s)({
820
+ p: j.value.prefix,
821
+ v: e.from,
822
+ s: j.value.suffix,
823
+ r: j.value.roundingValue
824
+ }))), 9, lt))), 256))])) : f("", !0),
825
+ j.value.show ? (v(), p("text", {
826
+ key: 9,
827
+ x: C(t)({
828
+ centerX: B.value.width / 2,
829
+ centerY: X.value.base,
830
+ initX: Z.value.at(-1).endX,
831
+ initY: Z.value.at(-1).endY,
832
+ offset: B.value.markerOffset
833
+ }).x,
834
+ y: C(t)({
835
+ centerX: B.value.width / 2,
836
+ centerY: X.value.base,
837
+ initX: Z.value.at(-1).endX,
838
+ initY: Z.value.at(-1).endY,
839
+ offset: B.value.markerOffset
840
+ }).y,
841
+ "text-anchor": "start",
842
+ "font-size": B.value.labelFontSize * j.value.fontSizeRatio,
843
+ "font-weight": `${j.value.bold ? "bold" : "normal"}`,
844
+ fill: j.value.color
845
+ }, S(C(ce)(j.value.formatter, V.value, C(s)({
846
+ p: j.value.prefix,
847
+ v: V.value,
848
+ s: j.value.suffix,
849
+ r: j.value.roundingValue
850
+ }))), 9, ut)) : f("", !0),
851
+ M.value.show ? (v(), p(l, { key: 10 }, [M.value.type === "rounded" ? (v(), p("g", dt, [
852
+ isNaN(K.value.x2) ? f("", !0) : (v(), p("line", {
853
+ key: 0,
854
+ x1: K.value.x1,
855
+ y1: K.value.y1,
856
+ x2: K.value.x2,
857
+ y2: K.value.y2,
858
+ stroke: M.value.stroke,
859
+ "stroke-width": B.value.pointerStrokeWidth,
860
+ "stroke-linecap": "round"
861
+ }, null, 8, ft)),
862
+ isNaN(K.value.x2) ? f("", !0) : (v(), p("line", {
863
+ key: 1,
864
+ x1: K.value.x1,
865
+ y1: K.value.y1,
866
+ x2: K.value.x2,
867
+ y2: K.value.y2,
868
+ stroke: M.value.useRatingColor ? Zt.value : M.value.color,
869
+ "stroke-linecap": "round",
870
+ "stroke-width": B.value.pointerStrokeWidth * .7
871
+ }, null, 8, pt)),
872
+ !isNaN(K.value.x2) && N.value.track.useGradient ? (v(), p("line", {
873
+ key: 2,
874
+ x1: K.value.x1,
875
+ y1: K.value.y1,
876
+ x2: K.value.x2,
877
+ y2: K.value.y2,
878
+ stroke: "white",
879
+ "stroke-linecap": "round",
880
+ "stroke-width": B.value.pointerStrokeWidth * .3,
881
+ filter: `url(#blur_${E.value})`
882
+ }, null, 8, mt)) : f("", !0)
883
+ ])) : (v(), p("g", ht, [Xt.value ? (v(), p("path", {
884
+ key: 0,
885
+ d: Xt.value,
886
+ fill: M.value.useRatingColor ? Zt.value : M.value.color,
887
+ stroke: M.value.stroke,
888
+ "stroke-width": M.value.circle.strokeWidth,
889
+ "stroke-linejoin": "round"
890
+ }, null, 8, gt)) : f("", !0)])), m("circle", {
891
+ cx: B.value.width / 2,
892
+ cy: X.value.base,
893
+ fill: M.value.circle.color,
894
+ r: B.value.pointerRadius <= 0 ? 1e-4 : B.value.pointerRadius,
895
+ "stroke-width": M.value.circle.strokeWidth,
896
+ stroke: M.value.circle.stroke
897
+ }, null, 8, _t)], 64)) : f("", !0),
898
+ P.value.legend.show ? (v(), p("text", {
899
+ key: 11,
900
+ x: B.value.width / 2,
901
+ y: X.value.ratingBase,
902
+ "text-anchor": "middle",
903
+ "font-size": B.value.legendFontSize,
904
+ "font-weight": "bold",
905
+ fill: P.value.legend.useRatingColor ? Zt.value : P.value.legend.color
906
+ }, S(C(ce)(P.value.legend.formatter, W.value, C(s)({
907
+ p: P.value.legend.prefix + (P.value.legend.showPlusSymbol && W.value > 0 ? "+" : ""),
908
+ v: W.value,
909
+ s: P.value.legend.suffix,
910
+ r: P.value.legend.roundingValue
911
+ }))), 9, vt)) : f("", !0),
912
+ x(e.$slots, "svg", { svg: {
913
+ ...B.value,
914
+ isPrintingImg: C(Ut) || C(Wt) || C(gn),
915
+ isPrintingSvg: C(_n)
916
+ } }, void 0, !0)
917
+ ], 14, Ge)),
918
+ e.$slots.watermark ? (v(), p("div", yt, [x(e.$slots, "watermark", _(h({ isPrinting: C(Ut) || C(Wt) || C(gn) || C(_n) })), void 0, !0)])) : f("", !0),
919
+ m("div", {
920
+ ref_key: "chartLegend",
921
+ ref: Mt
922
+ }, [x(e.$slots, "legend", { legend: R.value }, void 0, !0)], 512),
923
+ e.$slots.source ? (v(), p("div", {
924
+ key: 5,
925
+ ref_key: "source",
926
+ ref: Nt,
927
+ dir: "auto"
928
+ }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
929
+ x(e.$slots, "skeleton", {}, () => [C(Rt) ? (v(), d(ge, { key: 0 })) : f("", !0)], !0)
930
+ ], 46, Ue));
931
+ }
932
+ }, [["__scopeId", "data-v-6cef38b5"]]);
933
+ //#endregion
934
+ export { He as n, bt as t };