vue-data-ui 3.25.5 → 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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
  101. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  103. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  104. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  105. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  110. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  112. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  113. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  114. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  115. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  116. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  117. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  120. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
  122. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  130. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
  132. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
  134. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  137. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  138. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  139. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  143. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  144. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  148. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  149. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  150. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  151. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  152. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  153. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
  156. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  157. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  158. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  159. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  160. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
  162. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -1,934 +0,0 @@
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-C_mX5pOZ.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-BgH3m_LP.js").then((e) => e.t)), vt = Me(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), yt = Me(() => import("./PackageVersion-M2Ws-VwJ.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
- palette: j.value.userOptions.annotatorPalette,
508
- onClose: on
509
- }, {
510
- "annotator-action-close": E(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
511
- "annotator-action-color": E(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
512
- "annotator-action-draw": E(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
513
- "annotator-action-undo": E(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
514
- "annotator-action-redo": E(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
515
- "annotator-action-delete": E(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
516
- _: 3
517
- }, 8, [
518
- "svgRef",
519
- "backgroundColor",
520
- "color",
521
- "active",
522
- "isCursorPointer",
523
- "palette"
524
- ])) : p("", !0),
525
- Ut.value ? (y(), m("div", {
526
- key: 1,
527
- ref_key: "noTitle",
528
- ref: jt,
529
- class: "vue-data-ui-no-title-space",
530
- style: "height:36px; width: 100%;background:transparent"
531
- }, null, 512)) : p("", !0),
532
- j.value.style.chart.title.text ? (y(), m("div", {
533
- key: 2,
534
- ref_key: "chartTitle",
535
- ref: Ot,
536
- style: "width:100%;background:transparent;padding-bottom:12px"
537
- }, [(y(), f(be, {
538
- key: `title_${Mt.value}`,
539
- config: {
540
- title: {
541
- cy: "gauge-div-title",
542
- ...j.value.style.chart.title
543
- },
544
- subtitle: {
545
- cy: "gauge-div-subtitle",
546
- ...j.value.style.chart.title.subtitle
547
- }
548
- }
549
- }, {
550
- 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)]),
551
- _: 1
552
- }, 8, ["config"]))], 512)) : p("", !0),
553
- j.value.userOptions.show && Tt.value && (w(Lt) || w(P)) ? (y(), f(w(vt), {
554
- ref_key: "details",
555
- ref: Et,
556
- key: `user_options_${Dt.value}`,
557
- backgroundColor: j.value.style.chart.backgroundColor,
558
- color: j.value.style.chart.color,
559
- isImaging: w(Bt),
560
- isPrinting: w(zt),
561
- uid: k.value,
562
- hasXls: !1,
563
- hasPdf: j.value.userOptions.buttons.pdf,
564
- hasImg: j.value.userOptions.buttons.img,
565
- hasSvg: j.value.userOptions.buttons.svg,
566
- hasFullscreen: j.value.userOptions.buttons.fullscreen,
567
- hasAltCopy: j.value.userOptions.buttons.altCopy,
568
- isFullscreen: Q.value,
569
- titles: { ...j.value.userOptions.buttonTitles },
570
- chartElement: A.value,
571
- callbacks: j.value.userOptions.callbacks,
572
- printScale: j.value.userOptions.print.scale,
573
- position: j.value.userOptions.position,
574
- hasAnnotator: j.value.userOptions.buttons.annotator,
575
- isAnnotation: $.value,
576
- isCursorPointer: Nt.value,
577
- onToggleFullscreen: an,
578
- onGeneratePdf: w(Vt),
579
- onGenerateImage: w(pn),
580
- onGenerateSvg: w(fn),
581
- onToggleAnnotator: on,
582
- onCopyAlt: mn,
583
- style: Fe({ visibility: w(Lt) ? w(P) ? "visible" : "hidden" : "visible" })
584
- }, Ae({ _: 2 }, [
585
- e.$slots.menuIcon ? {
586
- name: "menuIcon",
587
- fn: E(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", v(g({
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: E(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
596
- key: "1"
597
- } : void 0,
598
- e.$slots.optionImg ? {
599
- name: "optionImg",
600
- fn: E(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
601
- key: "2"
602
- } : void 0,
603
- e.$slots.optionSvg ? {
604
- name: "optionSvg",
605
- fn: E(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
606
- key: "3"
607
- } : void 0,
608
- e.$slots.optionFullscreen ? {
609
- name: "optionFullscreen",
610
- fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", v(g({
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: E(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", v(g({
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: E(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
627
- key: "6"
628
- } : void 0,
629
- e.$slots["custom-menu-before"] ? {
630
- name: "custom-menu-before",
631
- fn: E(() => [S(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: E(() => [S(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
- ])) : p("", !0),
664
- (y(), m("svg", {
665
- ref_key: "svgRef",
666
- ref: F,
667
- xmlns: w(le),
668
- class: Pe({
669
- "vue-data-ui-fullscreen--on": Q.value,
670
- "vue-data-ui-fulscreen--off": !Q.value
671
- }),
672
- viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
673
- style: Fe(`max-width:100%;overflow:hidden !important;background:transparent;color:${j.value.style.chart.color}`)
674
- }, [
675
- je(w(yt)),
676
- e.$slots["chart-background"] ? (y(), m("foreignObject", {
677
- key: 0,
678
- x: 0,
679
- y: 0,
680
- width: R.value.width <= 0 ? 10 : R.value.width,
681
- height: R.value.height <= 0 ? 10 : R.value.height,
682
- style: { pointerEvents: "none" }
683
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, We)) : p("", !0),
684
- h("defs", null, [je(we, {
685
- t: "radial",
686
- id: `gradient_${k.value}`,
687
- cx: "50%",
688
- cy: "50%",
689
- r: "50%",
690
- fx: "50%",
691
- fy: "50%",
692
- stops: [
693
- [
694
- "0%",
695
- w(s)("#FFFFFF", 1),
696
- 1
697
- ],
698
- [
699
- "80%",
700
- w(s)("#FFFFFF", j.value.style.chart.layout.track.gradientIntensity),
701
- 1
702
- ],
703
- [
704
- "100%",
705
- w(s)("#FFFFFF", 1),
706
- 1
707
- ]
708
- ]
709
- }, null, 8, ["id", "stops"])]),
710
- h("defs", null, [h("filter", {
711
- id: `blur_${k.value}`,
712
- x: "-50%",
713
- y: "-50%",
714
- width: "200%",
715
- height: "200%"
716
- }, [h("feGaussianBlur", {
717
- in: "SourceGraphic",
718
- stdDeviation: 100 / j.value.style.chart.layout.track.gradientIntensity
719
- }, null, 8, Ke)], 8, Ge)]),
720
- 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 }, {
721
- seriesIndex: n,
722
- patternId: `pattern_${k.value}_${n}`
723
- }), void 0, !0)]))), 256))])) : p("", !0),
724
- (y(!0), m(u, null, x(X.value, (e, t) => (y(), m("path", {
725
- key: `arc_${t}`,
726
- d: e.arcSlice,
727
- fill: e.color,
728
- stroke: j.value.style.chart.backgroundColor,
729
- "stroke-linecap": "round"
730
- }, null, 8, Je))), 128)),
731
- e.$slots.pattern ? (y(!0), m(u, { key: 2 }, x(X.value, (e, t) => (y(), m("path", {
732
- key: `arc_${t}`,
733
- d: e.arcSlice,
734
- fill: `url(#pattern_${k.value}_${t})`,
735
- stroke: j.value.style.chart.backgroundColor,
736
- "stroke-linecap": "round"
737
- }, null, 8, Ye))), 128)) : p("", !0),
738
- j.value.style.chart.layout.indicatorArc.show ? (y(), m("path", {
739
- key: 3,
740
- d: rn.value,
741
- fill: j.value.style.chart.layout.indicatorArc.fill
742
- }, null, 8, Xe)) : p("", !0),
743
- 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", {
744
- id: `curve_${k.value}_${t}`,
745
- 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`,
746
- fill: "transparent"
747
- }, null, 8, Ze))), 256)), (y(!0), m(u, null, x(X.value, (e, t) => (y(), m("text", {
748
- fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
749
- "font-size": q.value,
750
- "font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
751
- "text-anchor": "middle"
752
- }, [h("textPath", {
753
- href: `#curve_${k.value}_${t}`,
754
- startOffset: tn.value[t]
755
- }, C(e.name || ""), 9, $e)], 8, Qe))), 256))], 64)) : p("", !0),
756
- 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", {
757
- class: "vue-ui-gauge-label-flat",
758
- "text-anchor": w(ae)(e, !1, 12).anchor,
759
- fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
760
- "font-size": q.value,
761
- "font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
762
- innerHTML: w(n)({
763
- content: String(e.name ?? ""),
764
- fontSize: q.value,
765
- fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
766
- x: e.center.endX,
767
- y: e.center.endY
768
- })
769
- }, null, 8, et))), 256)) : p("", !0),
770
- j.value.style.chart.layout.track.useGradient ? (y(!0), m(u, { key: 6 }, x(nn.value, (e, t) => (y(), m("path", {
771
- key: `arc_${t}`,
772
- d: e.arcSlice,
773
- fill: "#FFFFFF",
774
- stroke: "none",
775
- "stroke-linecap": "round",
776
- filter: `url(#blur_${k.value})`
777
- }, null, 8, tt))), 128)) : p("", !0),
778
- j.value.style.chart.layout.segmentSeparators.show ? (y(), m(u, { key: 7 }, [
779
- h("line", _(Qt.value, {
780
- stroke: j.value.style.chart.backgroundColor,
781
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
782
- "stroke-linecap": "round"
783
- }), null, 16, nt),
784
- h("line", _(Qt.value, {
785
- stroke: j.value.style.chart.layout.segmentSeparators.stroke,
786
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
787
- "stroke-linecap": "round"
788
- }), null, 16, rt),
789
- (y(!0), m(u, null, x($t.value, (e) => (y(), m("line", _({ ref_for: !0 }, e, {
790
- stroke: j.value.style.chart.backgroundColor,
791
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
792
- "stroke-linecap": "round"
793
- }), null, 16, it))), 256)),
794
- (y(!0), m(u, null, x($t.value, (e) => (y(), m("line", _({ ref_for: !0 }, e, {
795
- stroke: j.value.style.chart.layout.segmentSeparators.stroke,
796
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
797
- "stroke-linecap": "round"
798
- }), null, 16, at))), 256))
799
- ], 64)) : p("", !0),
800
- j.value.style.chart.layout.markers.show ? (y(), m("g", ot, [(y(!0), m(u, null, x(X.value, (e, n) => (y(), m("text", {
801
- x: w(t)({
802
- centerX: W.value.x1,
803
- centerY: Y.value.base,
804
- initX: e.center.startX,
805
- initY: e.center.startY,
806
- offset: R.value.markerOffset
807
- }).x,
808
- y: w(t)({
809
- centerX: W.value.x1,
810
- centerY: Y.value.base,
811
- initX: e.center.startX,
812
- initY: e.center.startY,
813
- offset: R.value.markerOffset
814
- }).y,
815
- "text-anchor": e.center.startX < W.value.x1 - 5 ? "end" : e.center.startX > W.value.x1 + 5 ? "start" : "middle",
816
- "font-size": R.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
817
- "font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
818
- fill: j.value.style.chart.layout.markers.color
819
- }, C(w(se)(j.value.style.chart.layout.markers.formatter, e.from, w(c)({
820
- p: j.value.style.chart.layout.markers.prefix,
821
- v: e.from,
822
- s: j.value.style.chart.layout.markers.suffix,
823
- r: j.value.style.chart.layout.markers.roundingValue
824
- }))), 9, st))), 256))])) : p("", !0),
825
- j.value.style.chart.layout.markers.show ? (y(), m("text", {
826
- key: 9,
827
- x: w(t)({
828
- centerX: R.value.width / 2,
829
- centerY: Y.value.base,
830
- initX: X.value.at(-1).endX,
831
- initY: X.value.at(-1).endY,
832
- offset: R.value.markerOffset
833
- }).x,
834
- y: w(t)({
835
- centerX: R.value.width / 2,
836
- centerY: Y.value.base,
837
- initX: X.value.at(-1).endX,
838
- initY: X.value.at(-1).endY,
839
- offset: R.value.markerOffset
840
- }).y,
841
- "text-anchor": "start",
842
- "font-size": R.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
843
- "font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
844
- fill: j.value.style.chart.layout.markers.color
845
- }, C(w(se)(j.value.style.chart.layout.markers.formatter, z.value, w(c)({
846
- p: j.value.style.chart.layout.markers.prefix,
847
- v: z.value,
848
- s: j.value.style.chart.layout.markers.suffix,
849
- r: j.value.style.chart.layout.markers.roundingValue
850
- }))), 9, ct)) : p("", !0),
851
- j.value.style.chart.layout.pointer.show ? (y(), m(u, { key: 10 }, [j.value.style.chart.layout.pointer.type === "rounded" ? (y(), m("g", lt, [
852
- isNaN(W.value.x2) ? p("", !0) : (y(), m("line", {
853
- key: 0,
854
- x1: W.value.x1,
855
- y1: W.value.y1,
856
- x2: W.value.x2,
857
- y2: W.value.y2,
858
- stroke: j.value.style.chart.layout.pointer.stroke,
859
- "stroke-width": R.value.pointerStrokeWidth,
860
- "stroke-linecap": "round"
861
- }, null, 8, ut)),
862
- isNaN(W.value.x2) ? p("", !0) : (y(), m("line", {
863
- key: 1,
864
- x1: W.value.x1,
865
- y1: W.value.y1,
866
- x2: W.value.x2,
867
- y2: W.value.y2,
868
- stroke: j.value.style.chart.layout.pointer.useRatingColor ? qt.value : j.value.style.chart.layout.pointer.color,
869
- "stroke-linecap": "round",
870
- "stroke-width": R.value.pointerStrokeWidth * .7
871
- }, null, 8, dt)),
872
- !isNaN(W.value.x2) && j.value.style.chart.layout.track.useGradient ? (y(), m("line", {
873
- key: 2,
874
- x1: W.value.x1,
875
- y1: W.value.y1,
876
- x2: W.value.x2,
877
- y2: W.value.y2,
878
- stroke: "white",
879
- "stroke-linecap": "round",
880
- "stroke-width": R.value.pointerStrokeWidth * .3,
881
- filter: `url(#blur_${k.value})`
882
- }, null, 8, ft)) : p("", !0)
883
- ])) : (y(), m("g", pt, [Kt.value ? (y(), m("path", {
884
- key: 0,
885
- d: Kt.value,
886
- fill: j.value.style.chart.layout.pointer.useRatingColor ? qt.value : j.value.style.chart.layout.pointer.color,
887
- stroke: j.value.style.chart.layout.pointer.stroke,
888
- "stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
889
- "stroke-linejoin": "round"
890
- }, null, 8, mt)) : p("", !0)])), h("circle", {
891
- cx: R.value.width / 2,
892
- cy: Y.value.base,
893
- fill: j.value.style.chart.layout.pointer.circle.color,
894
- r: R.value.pointerRadius <= 0 ? 1e-4 : R.value.pointerRadius,
895
- "stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
896
- stroke: j.value.style.chart.layout.pointer.circle.stroke
897
- }, null, 8, ht)], 64)) : p("", !0),
898
- j.value.style.chart.legend.show ? (y(), m("text", {
899
- key: 11,
900
- x: R.value.width / 2,
901
- y: Y.value.ratingBase,
902
- "text-anchor": "middle",
903
- "font-size": R.value.legendFontSize,
904
- "font-weight": "bold",
905
- fill: j.value.style.chart.legend.useRatingColor ? qt.value : j.value.style.chart.legend.color
906
- }, C(w(se)(j.value.style.chart.legend.formatter, H.value, w(c)({
907
- p: j.value.style.chart.legend.prefix + (j.value.style.chart.legend.showPlusSymbol && H.value > 0 ? "+" : ""),
908
- v: H.value,
909
- s: j.value.style.chart.legend.suffix,
910
- r: j.value.style.chart.legend.roundingValue
911
- }))), 9, gt)) : p("", !0),
912
- S(e.$slots, "svg", { svg: {
913
- ...R.value,
914
- isPrintingImg: w(zt) || w(Bt) || w(un),
915
- isPrintingSvg: w(dn)
916
- } }, void 0, !0)
917
- ], 14, Ue)),
918
- 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),
919
- h("div", {
920
- ref_key: "chartLegend",
921
- ref: kt
922
- }, [S(e.$slots, "legend", { legend: I.value }, void 0, !0)], 512),
923
- e.$slots.source ? (y(), m("div", {
924
- key: 5,
925
- ref_key: "source",
926
- ref: At,
927
- dir: "auto"
928
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
929
- S(e.$slots, "skeleton", {}, () => [w(Ft) ? (y(), f(he, { key: 0 })) : p("", !0)], !0)
930
- ], 46, Ve));
931
- }
932
- }, [["__scopeId", "data-v-2452ee56"]]);
933
- //#endregion
934
- export { Be as n, D as t };