vue-data-ui 3.25.2 → 3.25.4

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 (194) hide show
  1. package/dist/{Arrow-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
  3. package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
  4. package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
  5. package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
  6. package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
  7. package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
  8. package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
  9. package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
  11. package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
  12. package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
  13. package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
  14. package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
  15. package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
  16. package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
  17. package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
  18. package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.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-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
  91. package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
  92. package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
  93. package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
  94. package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
  95. package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
  96. package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
  97. package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.js} +2 -2
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
  103. package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
  104. package/dist/utils.js +2 -2
  105. package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
  106. package/dist/vue-data-ui.js +73 -73
  107. package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
  108. package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
  109. package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
  110. package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
  111. package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
  112. package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
  113. package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
  114. package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
  115. package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
  116. package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
  117. package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
  118. package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
  119. package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
  120. package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
  121. package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
  122. package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
  123. package/dist/vue-ui-donut-DfiocufT.js +2413 -0
  124. package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
  125. package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
  126. package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
  127. package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
  128. package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
  129. package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
  130. package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
  131. package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
  132. package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
  133. package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
  134. package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
  135. package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
  136. package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
  137. package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
  138. package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
  139. package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
  140. package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
  141. package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
  142. package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
  143. package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
  144. package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
  145. package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
  146. package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
  147. package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
  148. package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
  149. package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
  150. package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
  151. package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
  152. package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
  153. package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
  154. package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
  155. package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
  156. package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
  157. package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
  158. package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
  159. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
  160. package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
  161. package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
  162. package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
  163. package/dist/vue-ui-table-BQna1wL6.js +1352 -0
  164. package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
  165. package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
  166. package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
  167. package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
  168. package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
  169. package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
  170. package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
  171. package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
  172. package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
  173. package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
  174. package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
  175. package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
  176. package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
  177. package/package.json +1 -1
  178. package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
  179. package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
  180. package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
  181. package/dist/vue-ui-donut-BfehCl28.js +0 -2413
  182. package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
  183. package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
  184. package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
  185. package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
  186. package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
  187. package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
  188. package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
  189. package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
  190. package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
  191. package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
  192. package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
  193. package/dist/vue-ui-table-CftOhYTO.js +0 -1352
  194. package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
@@ -0,0 +1,932 @@
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 o, S as ee, Ut as s, X as c, Xt as te, Yt as ne, Zt as re, b as ie, f as ae, ht as oe, i as se, nt as l, q as ce, t as le, w as ue } from "./lib-Dql7cqyA.js";
3
+ import { n as de } from "./useHints-Dq_w2E8B.js";
4
+ import { t as fe } from "./useConfig-CyCVHo81.js";
5
+ import { t as pe } from "./usePrinter-DISD7q5m.js";
6
+ import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as ge } from "./useNestedProp-Chvyfpl-.js";
8
+ import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ve } from "./useChartExport-iwOqiIWX.js";
10
+ import { t as ye } from "./img-DhGApYG0.js";
11
+ import { n as be } from "./Title-CPHi-evi.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 Me, guardReactiveProps as g, mergeProps as _, nextTick as Ne, normalizeClass as Pe, normalizeProps as v, normalizeStyle as Fe, onBeforeUnmount as Ie, onMounted as Le, openBlock as y, ref as b, renderList as x, renderSlot as S, shallowRef as Re, toDisplayString as C, toRefs as ze, unref as w, watch as T, withCtx as E } from "vue";
21
+ //#region src/components/vue-ui-gauge.vue
22
+ var Be = /* @__PURE__ */ e({ default: () => D }), Ve = ["id"], He = { key: 0 }, Ue = ["xmlns", "viewBox"], We = ["width", "height"], Ge = ["id"], Ke = ["stdDeviation"], qe = { key: 1 }, Je = [
23
+ "d",
24
+ "fill",
25
+ "stroke"
26
+ ], Ye = [
27
+ "d",
28
+ "fill",
29
+ "stroke"
30
+ ], Xe = ["d", "fill"], Ze = ["id", "d"], Qe = [
31
+ "fill",
32
+ "font-size",
33
+ "font-weight"
34
+ ], $e = ["href", "startOffset"], et = [
35
+ "text-anchor",
36
+ "fill",
37
+ "font-size",
38
+ "font-weight",
39
+ "innerHTML"
40
+ ], tt = ["d", "filter"], nt = ["stroke", "stroke-width"], rt = ["stroke", "stroke-width"], it = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ot = { key: 8 }, st = [
41
+ "x",
42
+ "y",
43
+ "text-anchor",
44
+ "font-size",
45
+ "font-weight",
46
+ "fill"
47
+ ], ct = [
48
+ "x",
49
+ "y",
50
+ "font-size",
51
+ "font-weight",
52
+ "fill"
53
+ ], lt = { key: 0 }, ut = [
54
+ "x1",
55
+ "y1",
56
+ "x2",
57
+ "y2",
58
+ "stroke",
59
+ "stroke-width"
60
+ ], dt = [
61
+ "x1",
62
+ "y1",
63
+ "x2",
64
+ "y2",
65
+ "stroke",
66
+ "stroke-width"
67
+ ], ft = [
68
+ "x1",
69
+ "y1",
70
+ "x2",
71
+ "y2",
72
+ "stroke-width",
73
+ "filter"
74
+ ], pt = { key: 1 }, mt = [
75
+ "d",
76
+ "fill",
77
+ "stroke",
78
+ "stroke-width"
79
+ ], ht = [
80
+ "cx",
81
+ "cy",
82
+ "fill",
83
+ "r",
84
+ "stroke-width",
85
+ "stroke"
86
+ ], gt = [
87
+ "x",
88
+ "y",
89
+ "font-size",
90
+ "fill"
91
+ ], _t = {
92
+ key: 4,
93
+ class: "vue-data-ui-watermark"
94
+ }, D = /*#__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: Be }) {
112
+ let D = Me(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), vt = Me(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), yt = Me(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), { vue_ui_gauge: bt } = fe(), { isThemeValid: xt, warnInvalidTheme: St } = _e(), Ct = De(), O = e, wt = Be, Tt = d(() => !!O.dataset && Object.keys(O.dataset).length > 0 && O.dataset.series && O.dataset.series.length), k = b(ce()), Et = b(null), Dt = b(0), A = b(null), Ot = b(null), kt = b(null), At = b(null), jt = b(null), Mt = b(0), j = b(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(() => re({
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
+ ...ze(O),
152
+ FINAL_CONFIG: j,
153
+ prepareConfig: Rt,
154
+ callback: () => {
155
+ Promise.resolve().then(async () => {
156
+ await Ne();
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: re({
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
+ T(() => O.config, (e) => {
179
+ Ft.value || (j.value = Rt()), P.value = !j.value.userOptions.showOnChartHover, Yt(), Mt.value += 1;
180
+ }, { deep: !0 }), T(() => 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
+ }), i = ge({
197
+ userConfig: O.config,
198
+ defaultConfig: n
199
+ });
200
+ return {
201
+ ...i,
202
+ customPalette: i.customPalette.length ? i.customPalette : ne[t] || r
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 (o(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: ee(e.color) || Wt.value[n] || r[n],
227
+ value: ((e.to || 0) - (e.from || 0)) / t * 100
228
+ }))
229
+ };
230
+ }), L = b(512), R = b({
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 = b(0), B = b(0), V = d(() => j.value.style.chart.animation.use && !Ct.value), H = b(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
+ T(V, (e) => {
250
+ e || (Gt(), H.value = M.value.value);
251
+ }), T(() => 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, o = e + a * Math.cos(n + Math.PI / 2), ee = t + a * Math.sin(n + Math.PI / 2), s = e + a * Math.cos(n - Math.PI / 2), c = t + a * Math.sin(n - Math.PI / 2);
264
+ return isNaN(r) ? null : `M ${r},${i} ${o},${ee} ${s},${c} 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 = Re(null), K = Re(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 (o(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 = te({
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 = te({
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 = te({
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
+ Le(() => {
351
+ Yt();
352
+ }), Ie(() => {
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(() => i({ 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(() => i({ 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: n } = t({
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: r, y: i } = t({
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: n,
399
+ x2: r,
400
+ y2: i
401
+ };
402
+ }), $t = d(() => X.value.map((e) => {
403
+ let { x: n, y: r } = t({
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: i, y: a } = t({
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: n,
418
+ y1: r,
419
+ x2: i,
420
+ y2: a
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(() => i({ 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 a({
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: ie((H.value + e) / (z.value + e))
435
+ });
436
+ }), Q = b(!1);
437
+ function an(e) {
438
+ Q.value = e, Dt.value += 1;
439
+ }
440
+ let $ = b(!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) => (y(), m("div", {
492
+ class: Pe(`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: Fe(`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] ||= () => w(It)(!0),
498
+ onMouseleave: r[1] ||= () => w(It)(!1)
499
+ }, [
500
+ j.value.userOptions.buttons.annotator ? (y(), f(w(D), {
501
+ key: 0,
502
+ svgRef: w(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": E(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
510
+ "annotator-action-color": E(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
511
+ "annotator-action-draw": E(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
512
+ "annotator-action-undo": E(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
513
+ "annotator-action-redo": E(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
514
+ "annotator-action-delete": E(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", v(g({ 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 ? (y(), 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 ? (y(), m("div", {
531
+ key: 2,
532
+ ref_key: "chartTitle",
533
+ ref: Ot,
534
+ style: "width:100%;background:transparent;padding-bottom:12px"
535
+ }, [(y(), 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: E(() => [j.value.translations.base && w(M).base ? (y(), m("span", He, C(j.value.translations.base) + ": " + C(w(M).base), 1)) : p("", !0)]),
549
+ _: 1
550
+ }, 8, ["config"]))], 512)) : p("", !0),
551
+ j.value.userOptions.show && Tt.value && (w(Lt) || w(P)) ? (y(), f(w(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: w(Bt),
558
+ isPrinting: w(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: w(Vt),
577
+ onGenerateImage: w(pn),
578
+ onGenerateSvg: w(fn),
579
+ onToggleAnnotator: on,
580
+ onCopyAlt: mn,
581
+ style: Fe({ visibility: w(Lt) ? w(P) ? "visible" : "hidden" : "visible" })
582
+ }, Ae({ _: 2 }, [
583
+ e.$slots.menuIcon ? {
584
+ name: "menuIcon",
585
+ fn: E(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", v(g({
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: E(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
594
+ key: "1"
595
+ } : void 0,
596
+ e.$slots.optionImg ? {
597
+ name: "optionImg",
598
+ fn: E(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
599
+ key: "2"
600
+ } : void 0,
601
+ e.$slots.optionSvg ? {
602
+ name: "optionSvg",
603
+ fn: E(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
604
+ key: "3"
605
+ } : void 0,
606
+ e.$slots.optionFullscreen ? {
607
+ name: "optionFullscreen",
608
+ fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", v(g({
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: E(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", v(g({
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: E(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
625
+ key: "6"
626
+ } : void 0,
627
+ e.$slots["custom-menu-before"] ? {
628
+ name: "custom-menu-before",
629
+ fn: E(() => [S(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: E(() => [S(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
+ (y(), m("svg", {
663
+ ref_key: "svgRef",
664
+ ref: F,
665
+ xmlns: w(le),
666
+ class: Pe({
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: Fe(`max-width:100%;overflow:hidden !important;background:transparent;color:${j.value.style.chart.color}`)
672
+ }, [
673
+ je(w(yt)),
674
+ e.$slots["chart-background"] ? (y(), 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
+ }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, We)) : 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
+ w(s)("#FFFFFF", 1),
694
+ 1
695
+ ],
696
+ [
697
+ "80%",
698
+ w(s)("#FFFFFF", j.value.style.chart.layout.track.gradientIntensity),
699
+ 1
700
+ ],
701
+ [
702
+ "100%",
703
+ w(s)("#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, Ke)], 8, Ge)]),
718
+ e.$slots.pattern ? (y(), m("g", qe, [(y(!0), m(u, null, x(X.value, (t, n) => (y(), m("defs", null, [S(e.$slots, "pattern", _({ ref_for: !0 }, {
719
+ seriesIndex: n,
720
+ patternId: `pattern_${k.value}_${n}`
721
+ }), void 0, !0)]))), 256))])) : p("", !0),
722
+ (y(!0), m(u, null, x(X.value, (e, t) => (y(), 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, Je))), 128)),
729
+ e.$slots.pattern ? (y(!0), m(u, { key: 2 }, x(X.value, (e, t) => (y(), 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, Ye))), 128)) : p("", !0),
736
+ j.value.style.chart.layout.indicatorArc.show ? (y(), m("path", {
737
+ key: 3,
738
+ d: rn.value,
739
+ fill: j.value.style.chart.layout.indicatorArc.fill
740
+ }, null, 8, Xe)) : p("", !0),
741
+ j.value.style.chart.layout.segmentNames.show && j.value.style.chart.layout.segmentNames.curved ? (y(), m(u, { key: 4 }, [(y(!0), m(u, null, x(X.value, (e, t) => (y(), 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, Ze))), 256)), (y(!0), m(u, null, x(X.value, (e, t) => (y(), 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
+ }, C(e.name || ""), 9, $e)], 8, Qe))), 256))], 64)) : p("", !0),
754
+ j.value.style.chart.layout.segmentNames.show && !j.value.style.chart.layout.segmentNames.curved ? (y(!0), m(u, { key: 5 }, x(Zt.value, (e, t) => (y(), m("text", {
755
+ class: "vue-ui-gauge-label-flat",
756
+ "text-anchor": w(ae)(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: w(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, et))), 256)) : p("", !0),
768
+ j.value.style.chart.layout.track.useGradient ? (y(!0), m(u, { key: 6 }, x(nn.value, (e, t) => (y(), 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, tt))), 128)) : p("", !0),
776
+ j.value.style.chart.layout.segmentSeparators.show ? (y(), m(u, { key: 7 }, [
777
+ h("line", _(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, nt),
782
+ h("line", _(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, rt),
787
+ (y(!0), m(u, null, x($t.value, (e) => (y(), m("line", _({ 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, it))), 256)),
792
+ (y(!0), m(u, null, x($t.value, (e) => (y(), m("line", _({ 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, at))), 256))
797
+ ], 64)) : p("", !0),
798
+ j.value.style.chart.layout.markers.show ? (y(), m("g", ot, [(y(!0), m(u, null, x(X.value, (e, n) => (y(), m("text", {
799
+ x: w(t)({
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: w(t)({
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
+ }, C(w(se)(j.value.style.chart.layout.markers.formatter, e.from, w(c)({
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, st))), 256))])) : p("", !0),
823
+ j.value.style.chart.layout.markers.show ? (y(), m("text", {
824
+ key: 9,
825
+ x: w(t)({
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: w(t)({
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
+ }, C(w(se)(j.value.style.chart.layout.markers.formatter, z.value, w(c)({
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, ct)) : p("", !0),
849
+ j.value.style.chart.layout.pointer.show ? (y(), m(u, { key: 10 }, [j.value.style.chart.layout.pointer.type === "rounded" ? (y(), m("g", lt, [
850
+ isNaN(W.value.x2) ? p("", !0) : (y(), 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, ut)),
860
+ isNaN(W.value.x2) ? p("", !0) : (y(), 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, dt)),
870
+ !isNaN(W.value.x2) && j.value.style.chart.layout.track.useGradient ? (y(), 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, ft)) : p("", !0)
881
+ ])) : (y(), m("g", pt, [Kt.value ? (y(), 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, mt)) : 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, ht)], 64)) : p("", !0),
896
+ j.value.style.chart.legend.show ? (y(), 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
+ }, C(w(se)(j.value.style.chart.legend.formatter, H.value, w(c)({
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, gt)) : p("", !0),
910
+ S(e.$slots, "svg", { svg: {
911
+ ...R.value,
912
+ isPrintingImg: w(zt) || w(Bt) || w(un),
913
+ isPrintingSvg: w(dn)
914
+ } }, void 0, !0)
915
+ ], 14, Ue)),
916
+ e.$slots.watermark ? (y(), m("div", _t, [S(e.$slots, "watermark", v(g({ isPrinting: w(zt) || w(Bt) || w(un) || w(dn) })), void 0, !0)])) : p("", !0),
917
+ h("div", {
918
+ ref_key: "chartLegend",
919
+ ref: kt
920
+ }, [S(e.$slots, "legend", { legend: I.value }, void 0, !0)], 512),
921
+ e.$slots.source ? (y(), m("div", {
922
+ key: 5,
923
+ ref_key: "source",
924
+ ref: At,
925
+ dir: "auto"
926
+ }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
927
+ S(e.$slots, "skeleton", {}, () => [w(Ft) ? (y(), f(he, { key: 0 })) : p("", !0)], !0)
928
+ ], 46, Ve));
929
+ }
930
+ }, [["__scopeId", "data-v-27f19797"]]);
931
+ //#endregion
932
+ export { Be as n, D as t };