vue-data-ui 3.25.3 → 3.25.5

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 (200) hide show
  1. package/README.md +13 -13
  2. package/dist/{Arrow-Bvx4_tSN.js → Arrow-DLn-pcrh.js} +1 -1
  3. package/dist/{BaseDraggableDialog-BCQY4Tir.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
  4. package/dist/{BaseIcon-CVrQHhw1.js → BaseIcon-t83PDe9k.js} +1 -1
  5. package/dist/{BaseLegendToggle-BF-thEu0.js → BaseLegendToggle-__JnV08B.js} +1 -1
  6. package/dist/{BaseZoomControls-BAHeLgV8.js → BaseZoomControls-Xo16vFa4.js} +2 -2
  7. package/dist/{ColorPicker-B0CMtFkc.js → ColorPicker-Bn3MY7eL.js} +103 -101
  8. package/dist/{DataTable-BBpTEQY5.js → DataTable-COIO9gi4.js} +2 -2
  9. package/dist/{HillActions-ChMsbYib.js → HillActions-Cl-dNBZR.js} +1 -1
  10. package/dist/{Legend-DmitJZi5.js → Legend-X4kF4PvW.js} +2 -2
  11. package/dist/{NonSvgPenAndPaper-DNIpZGOP.js → NonSvgPenAndPaper-KXRhcsxM.js} +12 -12
  12. package/dist/{PackageVersion-hRJtldYi.js → PackageVersion-M2Ws-VwJ.js} +1 -1
  13. package/dist/{PenAndPaper-DzM1vUXR.js → PenAndPaper-BgH3m_LP.js} +30 -14
  14. package/dist/{Shape-BBKymE00.js → Shape-CIqU-p2F.js} +1 -1
  15. package/dist/{SlicerPreview-W4PWXK69.js → SlicerPreview-GvsdvE-h.js} +27 -27
  16. package/dist/{SparkTooltip-9hXY74AD.js → SparkTooltip-C-Y-mDrc.js} +1 -1
  17. package/dist/{Title-DIf1lG-_.js → Title-CPHi-evi.js} +1 -1
  18. package/dist/{Tooltip-C3jBTIhR.js → Tooltip-hhrkQ3Lk.js} +1 -1
  19. package/dist/{UserOptions-m0uxKoiy.js → UserOptions-f3Q0nqrj.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-hill.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-label.js +1 -1
  52. package/dist/components/vue-ui-mini-loader.js +1 -1
  53. package/dist/components/vue-ui-molecule.js +1 -1
  54. package/dist/components/vue-ui-mood-radar.js +1 -1
  55. package/dist/components/vue-ui-nested-donuts.js +1 -1
  56. package/dist/components/vue-ui-onion.js +1 -1
  57. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  58. package/dist/components/vue-ui-quadrant.js +1 -1
  59. package/dist/components/vue-ui-quick-chart.js +1 -1
  60. package/dist/components/vue-ui-radar.js +1 -1
  61. package/dist/components/vue-ui-rating.js +1 -1
  62. package/dist/components/vue-ui-relation-circle.js +1 -1
  63. package/dist/components/vue-ui-ridgeline.js +1 -1
  64. package/dist/components/vue-ui-rings.js +1 -1
  65. package/dist/components/vue-ui-scatter.js +1 -1
  66. package/dist/components/vue-ui-skeleton.js +1 -1
  67. package/dist/components/vue-ui-smiley.js +1 -1
  68. package/dist/components/vue-ui-spark-trend.js +1 -1
  69. package/dist/components/vue-ui-sparkbar.js +1 -1
  70. package/dist/components/vue-ui-sparkgauge.js +1 -1
  71. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  72. package/dist/components/vue-ui-sparkline.js +1 -1
  73. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  74. package/dist/components/vue-ui-stackbar.js +1 -1
  75. package/dist/components/vue-ui-stackline.js +1 -1
  76. package/dist/components/vue-ui-strip-plot.js +1 -1
  77. package/dist/components/vue-ui-table-heatmap.js +1 -1
  78. package/dist/components/vue-ui-table-sparkline.js +1 -1
  79. package/dist/components/vue-ui-table.js +1 -1
  80. package/dist/components/vue-ui-thermometer.js +1 -1
  81. package/dist/components/vue-ui-timer.js +1 -1
  82. package/dist/components/vue-ui-tiremarks.js +1 -1
  83. package/dist/components/vue-ui-treemap.js +1 -1
  84. package/dist/components/vue-ui-vertical-bar.js +1 -1
  85. package/dist/components/vue-ui-waffle.js +1 -1
  86. package/dist/components/vue-ui-wheel.js +1 -1
  87. package/dist/components/vue-ui-word-cloud.js +1 -1
  88. package/dist/components/vue-ui-world.js +1 -1
  89. package/dist/components/vue-ui-xy-canvas.js +1 -1
  90. package/dist/components/vue-ui-xy.js +1 -1
  91. package/dist/{dom-to-png-DPcw-QzB.js → dom-to-png-C6cQJ5Hq.js} +1 -1
  92. package/dist/{exposedLib-BGrCpxDo.js → exposedLib-CG3aXJ-v.js} +9 -9
  93. package/dist/{img-IjqD_xWl.js → img-DhGApYG0.js} +1 -1
  94. package/dist/{labelUtils-Bgt85NUY.js → labelUtils-BXX2NzRe.js} +1 -1
  95. package/dist/{lib-C7t_vY8w.js → lib-Dql7cqyA.js} +200 -177
  96. package/dist/{package-NccReU84.js → package-ta2JoIjx.js} +1 -1
  97. package/dist/{pdf-HBji623H.js → pdf-Di5yPEw9.js} +1 -1
  98. package/dist/{render-common-CHj9aLwI.js → render-common-bvOuxfN3.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +70 -1
  104. package/dist/types/vue-ui-annotator.d.ts +58 -2
  105. package/dist/{useConfig-CyCVHo81.js → useConfig-C_mX5pOZ.js} +1329 -1313
  106. package/dist/{useNestedProp-BfTgFMXF.js → useNestedProp-Chvyfpl-.js} +1 -1
  107. package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings-uXpBcVyo.js} +1 -1
  108. package/dist/{usePrinter-VVTuFI6H.js → usePrinter-DISD7q5m.js} +2 -2
  109. package/dist/utils.js +3 -3
  110. package/dist/{vue-data-ui-xQI9KcZd.js → vue-data-ui-BjdCpsRV.js} +70 -70
  111. package/dist/vue-data-ui.js +74 -74
  112. package/dist/vue-ui-3d-bar-C0aLR6lw.js +1831 -0
  113. package/dist/{vue-ui-accordion-DuARUUdY.js → vue-ui-accordion-DRf3NQyH.js} +4 -4
  114. package/dist/{vue-ui-age-pyramid-D-ggLbES.js → vue-ui-age-pyramid-DUcB3lYs.js} +219 -217
  115. package/dist/vue-ui-annotator-DZ0O8Xa5.js +3325 -0
  116. package/dist/vue-ui-bullet-DIOCMF2H.js +702 -0
  117. package/dist/{vue-ui-bump-DiH9-DLV.js → vue-ui-bump-DoHnD1Xy.js} +59 -57
  118. package/dist/{vue-ui-candlestick-B486ChH8.js → vue-ui-candlestick-Cf8TYPl5.js} +453 -447
  119. package/dist/vue-ui-carousel-table-k1cBJ1i1.js +467 -0
  120. package/dist/{vue-ui-chestnut-DGESmviK.js → vue-ui-chestnut-BMAuaeif.js} +278 -276
  121. package/dist/{vue-ui-chord-DQJ7RuvS.js → vue-ui-chord-DCe2iPjk.js} +37 -35
  122. package/dist/{vue-ui-circle-pack-YXuSpTIB.js → vue-ui-circle-pack-Eb5hS_z3.js} +34 -32
  123. package/dist/{vue-ui-cursor-Dju_nWZh.js → vue-ui-cursor-CQWLyEx0.js} +4 -4
  124. package/dist/{vue-ui-dag-C2f1v-IC.js → vue-ui-dag-BqlsutMj.js} +80 -78
  125. package/dist/{vue-ui-dashboard-pNI0se0n.js → vue-ui-dashboard-Be3MmkgS.js} +77 -75
  126. package/dist/{vue-ui-digits-C5Z_lpSZ.js → vue-ui-digits-BqdfbcKX.js} +4 -4
  127. package/dist/vue-ui-donut-CuQVKuZa.js +2415 -0
  128. package/dist/{vue-ui-donut-evolution-DQn-87Ak.js → vue-ui-donut-evolution-DckruxZ9.js} +378 -376
  129. package/dist/{vue-ui-donut-DZXYGFJc.js → vue-ui-donut-gzGZ42uH.js} +102 -102
  130. package/dist/{vue-ui-dumbbell-CDtBLV2m.js → vue-ui-dumbbell-BYU-hh2E.js} +142 -140
  131. package/dist/{vue-ui-flow-B0L2gQ3k.js → vue-ui-flow-DLRcNDLc.js} +46 -44
  132. package/dist/vue-ui-funnel-DjoqNN1U.js +749 -0
  133. package/dist/{vue-ui-galaxy-yF4pKrlD.js → vue-ui-galaxy-BhR4IOra.js} +249 -247
  134. package/dist/vue-ui-gauge-Cq161Kwp.js +934 -0
  135. package/dist/{vue-ui-geo-CFz30xe0.js → vue-ui-geo-Ca8kPYr-.js} +41 -39
  136. package/dist/{vue-ui-gizmo-ys9jjs02.js → vue-ui-gizmo-wUqHJICb.js} +4 -4
  137. package/dist/{vue-ui-heatmap-qigx4Z5I.js → vue-ui-heatmap-Bl5ymvi9.js} +186 -184
  138. package/dist/{vue-ui-hill-K3JKKF1b.js → vue-ui-hill-D6Y9Xy2K.js} +14 -12
  139. package/dist/vue-ui-history-plot-CvVjsdCL.js +1698 -0
  140. package/dist/vue-ui-horizontal-bar-3on3-H3B.js +1711 -0
  141. package/dist/{vue-ui-kpi-0W2GpUBQ.js → vue-ui-kpi-CUpRRIUf.js} +4 -4
  142. package/dist/{vue-ui-label-CBM2b0Aq.js → vue-ui-label-DR2qUZOG.js} +65 -65
  143. package/dist/{vue-ui-mini-loader-C-2BQ3hi.js → vue-ui-mini-loader-D8W-fERs.js} +3 -3
  144. package/dist/vue-ui-molecule-BExVLLgE.js +929 -0
  145. package/dist/{vue-ui-mood-radar-VCVoA-i7.js → vue-ui-mood-radar-TW251icr.js} +205 -203
  146. package/dist/{vue-ui-nested-donuts-CFPhvIy3.js → vue-ui-nested-donuts-CWzJKr3S.js} +129 -127
  147. package/dist/{vue-ui-onion-BMucjktR.js → vue-ui-onion-VaYZQK5i.js} +124 -122
  148. package/dist/{vue-ui-parallel-coordinate-plot-BhahYf50.js → vue-ui-parallel-coordinate-plot-RM25bxtf.js} +380 -378
  149. package/dist/{vue-ui-quadrant-77idomwS.js → vue-ui-quadrant-Dmtwow7n.js} +51 -49
  150. package/dist/{vue-ui-quick-chart-CNKuNur5.js → vue-ui-quick-chart-Cswm3_eI.js} +190 -188
  151. package/dist/{vue-ui-radar-CuT1AXHF.js → vue-ui-radar-C3GYthqu.js} +315 -313
  152. package/dist/{vue-ui-rating-CTuSylET.js → vue-ui-rating-CBdDXL80.js} +3 -3
  153. package/dist/vue-ui-relation-circle-BA0qy0kp.js +905 -0
  154. package/dist/{vue-ui-ridgeline-CijnGJ6-.js → vue-ui-ridgeline-C5skjBTe.js} +353 -344
  155. package/dist/{vue-ui-rings-DDGKIiGT.js → vue-ui-rings-BJ8yEQMw.js} +332 -330
  156. package/dist/vue-ui-scatter-DXg8ESgr.js +2405 -0
  157. package/dist/{vue-ui-skeleton-Clzzx8hc.js → vue-ui-skeleton-D_u8EWeW.js} +60 -60
  158. package/dist/{vue-ui-smiley-DILPVI14.js → vue-ui-smiley-DQOp87rr.js} +3 -3
  159. package/dist/{vue-ui-spark-trend-CYIyrTQj.js → vue-ui-spark-trend-CjCufXof.js} +9 -9
  160. package/dist/{vue-ui-sparkbar-C2HcYmPm.js → vue-ui-sparkbar-BniEM15a.js} +142 -142
  161. package/dist/{vue-ui-sparkgauge-BLJ0mImj.js → vue-ui-sparkgauge-BtyCrqTQ.js} +33 -33
  162. package/dist/{vue-ui-sparkhistogram-1FYy_qM3.js → vue-ui-sparkhistogram-DQdn3PW1.js} +27 -27
  163. package/dist/{vue-ui-sparkline-C11KKbIn.js → vue-ui-sparkline-9qkNNZG6.js} +254 -254
  164. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +738 -0
  165. package/dist/vue-ui-stackbar-CkjicNDv.js +2355 -0
  166. package/dist/vue-ui-stackline-BB1IZta8.js +2469 -0
  167. package/dist/vue-ui-strip-plot-DGLGuH6e.js +1740 -0
  168. package/dist/vue-ui-table-BXz_HY2g.js +1352 -0
  169. package/dist/{vue-ui-table-heatmap-Dj06PSQK.js → vue-ui-table-heatmap-XmDK1aHJ.js} +10 -10
  170. package/dist/{vue-ui-table-sparkline-1h7A5F1N.js → vue-ui-table-sparkline-MTEw3imE.js} +14 -14
  171. package/dist/{vue-ui-thermometer-CVKlj7fU.js → vue-ui-thermometer-CLx3SPRv.js} +36 -34
  172. package/dist/{vue-ui-timer-BWz6K56E.js → vue-ui-timer-BDWUNb6t.js} +6 -6
  173. package/dist/{vue-ui-tiremarks-D26MLo5F.js → vue-ui-tiremarks-DoaypTC-.js} +11 -9
  174. package/dist/{vue-ui-treemap-33VL-HnF.js → vue-ui-treemap-Bv7PgpiC.js} +45 -43
  175. package/dist/vue-ui-waffle-z2DhvSAx.js +1621 -0
  176. package/dist/{vue-ui-wheel-BPbR_-t8.js → vue-ui-wheel-DYLBJuFb.js} +31 -29
  177. package/dist/{vue-ui-word-cloud-RFcpvswb.js → vue-ui-word-cloud-CbpEhSdL.js} +32 -30
  178. package/dist/{vue-ui-world-CseHQjz7.js → vue-ui-world-C2atz4Xm.js} +120 -118
  179. package/dist/{vue-ui-xy-D_biv7Wg.js → vue-ui-xy-B3DQ6t46.js} +1496 -1490
  180. package/dist/{vue-ui-xy-C3UI9YIM.js → vue-ui-xy-CpA0W6zM.js} +424 -423
  181. package/dist/{vue-ui-xy-canvas-R1I0sffy.js → vue-ui-xy-canvas-CJefORWc.js} +78 -78
  182. package/package.json +1 -1
  183. package/dist/vue-ui-3d-bar-Cf5mJEzr.js +0 -1829
  184. package/dist/vue-ui-annotator-MvDwnq7k.js +0 -2886
  185. package/dist/vue-ui-bullet-DWe51l3b.js +0 -700
  186. package/dist/vue-ui-carousel-table-BPNQQVsu.js +0 -467
  187. package/dist/vue-ui-donut-CaMaNvIF.js +0 -2413
  188. package/dist/vue-ui-funnel-G5nO77o5.js +0 -747
  189. package/dist/vue-ui-gauge-DA92q6HZ.js +0 -932
  190. package/dist/vue-ui-history-plot-DUoXwHLn.js +0 -1696
  191. package/dist/vue-ui-horizontal-bar-C51hv9PU.js +0 -1709
  192. package/dist/vue-ui-molecule-B1ChvZql.js +0 -929
  193. package/dist/vue-ui-relation-circle-DxONGvTM.js +0 -903
  194. package/dist/vue-ui-scatter-Cwlhv9y6.js +0 -2403
  195. package/dist/vue-ui-sparkstackbar-B4H_cgzW.js +0 -738
  196. package/dist/vue-ui-stackbar-CBOAAVtS.js +0 -2349
  197. package/dist/vue-ui-stackline-24PeB3yN.js +0 -2463
  198. package/dist/vue-ui-strip-plot-C3Q1lECl.js +0 -1738
  199. package/dist/vue-ui-table-DMJWplCT.js +0 -1352
  200. package/dist/vue-ui-waffle-DIFpyE2V.js +0 -1619
@@ -1,932 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { G as t, Ht as n, It as r, Jt as i, Nt as a, O as ee, Pt as o, S as te, X as s, Xt as ne, Yt as c, b as re, f as ie, i as l, jt as ae, mt as oe, nt as u, q as se, t as ce, w as le } from "./lib-C7t_vY8w.js";
3
- import { n as ue } from "./useHints-Dq_w2E8B.js";
4
- import { t as de } from "./useConfig-CyCVHo81.js";
5
- import { t as fe } from "./usePrinter-VVTuFI6H.js";
6
- import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as he } from "./useNestedProp-BfTgFMXF.js";
8
- import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as _e } from "./useChartExport-iwOqiIWX.js";
10
- import { t as ve } from "./img-IjqD_xWl.js";
11
- import { n as ye } from "./Title-DIf1lG-_.js";
12
- import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { l as xe, t as Se } from "./useResponsive-ZtArZtUf.js";
14
- import { t as Ce } from "./DefGrad-DVBqDjhO.js";
15
- import { t as we } from "./useUserOptionState-DK-_1ddE.js";
16
- import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
17
- import { t as Ee } from "./usePrefersMotion-BC-CsqR1.js";
18
- import { t as De } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
19
- import { t as Oe } from "./vue_ui_gauge-Cf1RZc9q.js";
20
- import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as ke, createVNode as Ae, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as y, nextTick as je, normalizeClass as Me, normalizeProps as b, normalizeStyle as Ne, onBeforeUnmount as Pe, onMounted as Fe, openBlock as x, ref as S, renderList as C, renderSlot as w, shallowRef as Ie, toDisplayString as T, toRefs as Le, unref as E, watch as D, withCtx as O } from "vue";
21
- //#region src/components/vue-ui-gauge.vue
22
- var Re = /* @__PURE__ */ e({ default: () => gt }), ze = ["id"], Be = { key: 0 }, Ve = ["xmlns", "viewBox"], He = ["width", "height"], Ue = ["id"], We = ["stdDeviation"], Ge = { key: 1 }, Ke = [
23
- "d",
24
- "fill",
25
- "stroke"
26
- ], qe = [
27
- "d",
28
- "fill",
29
- "stroke"
30
- ], Je = ["d", "fill"], Ye = ["id", "d"], Xe = [
31
- "fill",
32
- "font-size",
33
- "font-weight"
34
- ], Ze = ["href", "startOffset"], Qe = [
35
- "text-anchor",
36
- "fill",
37
- "font-size",
38
- "font-weight",
39
- "innerHTML"
40
- ], $e = ["d", "filter"], et = ["stroke", "stroke-width"], tt = ["stroke", "stroke-width"], nt = ["stroke", "stroke-width"], rt = ["stroke", "stroke-width"], it = { key: 8 }, at = [
41
- "x",
42
- "y",
43
- "text-anchor",
44
- "font-size",
45
- "font-weight",
46
- "fill"
47
- ], ot = [
48
- "x",
49
- "y",
50
- "font-size",
51
- "font-weight",
52
- "fill"
53
- ], st = { key: 0 }, ct = [
54
- "x1",
55
- "y1",
56
- "x2",
57
- "y2",
58
- "stroke",
59
- "stroke-width"
60
- ], lt = [
61
- "x1",
62
- "y1",
63
- "x2",
64
- "y2",
65
- "stroke",
66
- "stroke-width"
67
- ], ut = [
68
- "x1",
69
- "y1",
70
- "x2",
71
- "y2",
72
- "stroke-width",
73
- "filter"
74
- ], dt = { key: 1 }, ft = [
75
- "d",
76
- "fill",
77
- "stroke",
78
- "stroke-width"
79
- ], pt = [
80
- "cx",
81
- "cy",
82
- "fill",
83
- "r",
84
- "stroke-width",
85
- "stroke"
86
- ], mt = [
87
- "x",
88
- "y",
89
- "font-size",
90
- "fill"
91
- ], ht = {
92
- key: 4,
93
- class: "vue-data-ui-watermark"
94
- }, gt = /*#__PURE__*/ be({
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: be, emit: Re }) {
112
- let gt = _(() => import("./PenAndPaper-DzM1vUXR.js").then((e) => e.t)), _t = _(() => import("./UserOptions-m0uxKoiy.js").then((e) => e.n)), vt = _(() => import("./PackageVersion-hRJtldYi.js").then((e) => e.t)), { vue_ui_gauge: yt } = de(), { isThemeValid: bt, warnInvalidTheme: xt } = ge(), St = Ee(), k = e, Ct = Re, wt = f(() => !!k.dataset && Object.keys(k.dataset).length > 0 && k.dataset.series && k.dataset.series.length), A = S(se()), Tt = S(null), Et = S(0), j = S(null), Dt = S(null), Ot = S(null), kt = S(null), At = S(null), jt = S(0), M = S(Rt());
113
- ue({
114
- config: () => M.value,
115
- dataset: () => k.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 Mt = f(() => M.value.userOptions.useCursorPointer), Nt = f(() => ne({
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: M.value.skeletonConfig ?? {}
150
- })), { loading: Pt, FINAL_DATASET: N, manualLoading: P } = pe({
151
- ...Le(k),
152
- FINAL_CONFIG: M,
153
- prepareConfig: Rt,
154
- callback: () => {
155
- Promise.resolve().then(async () => {
156
- await je();
157
- });
158
- },
159
- skeletonDataset: k.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: ne({
174
- defaultConfig: M.value,
175
- userConfig: Nt.value
176
- })
177
- }), { userOptionsVisible: Ft, setUserOptionsVisibility: It, keepUserOptionState: Lt } = we({ config: M.value }), { svgRef: F } = Te({ config: M.value.style.chart.title });
178
- D(() => k.config, (e) => {
179
- Pt.value || (M.value = Rt()), Ft.value = !M.value.userOptions.showOnChartHover, Yt(), jt.value += 1;
180
- }, { deep: !0 }), D(() => k.dataset, (e) => {
181
- Yt(), e && Object.keys(e).length > 0 && (P.value = M.value?.loading ?? !1);
182
- }, {
183
- deep: !0,
184
- immediate: !1
185
- });
186
- function Rt() {
187
- let e = he({
188
- userConfig: k.config,
189
- defaultConfig: yt
190
- }), t = e.theme;
191
- if (!t) return e;
192
- if (!bt.value(e)) return xt(e), e;
193
- let n = he({
194
- userConfig: Oe[t] || k.config,
195
- defaultConfig: e
196
- }), a = he({
197
- userConfig: k.config,
198
- defaultConfig: n
199
- });
200
- return {
201
- ...a,
202
- customPalette: a.customPalette.length ? a.customPalette : i[t] || r
203
- };
204
- }
205
- let { isPrinting: zt, isImaging: Bt, generatePdf: Vt, generateImage: Ht } = fe({
206
- elementId: `vue-ui-gauge_${A.value}`,
207
- fileName: M.value.style.chart.title.text || "vue-ui-gauge",
208
- options: M.value.userOptions.print
209
- }), Ut = f(() => M.value.userOptions.show && !M.value.style.chart.title.text), Wt = f(() => le(M.value.customPalette)), I = f(() => {
210
- if (a(N.value.series || {})) return {
211
- value: 0,
212
- series: [{
213
- from: 0,
214
- to: 0
215
- }]
216
- };
217
- let e = [];
218
- (N.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
- ...N.value,
224
- series: (N.value.series || []).map((e, n) => ({
225
- ...e,
226
- color: te(e.color) || Wt.value[n] || r[n],
227
- value: ((e.to || 0) - (e.from || 0)) / t * 100
228
- }))
229
- };
230
- }), L = S(512), R = S({
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: M.value.style.chart.legend.fontSize,
239
- pointerRadius: M.value.style.chart.layout.pointer.circle.radius,
240
- trackSize: M.value.style.chart.layout.track.size,
241
- pointerSize: M.value.style.chart.layout.pointer.size,
242
- pointerStrokeWidth: M.value.style.chart.layout.pointer.strokeWidth,
243
- markerOffset: M.value.style.chart.layout.markers.offsetY + 3,
244
- segmentFontSize: M.value.style.chart.layout.segmentNames.fontSize
245
- }), z = S(0), B = S(0), V = f(() => M.value.style.chart.animation.use && !St.value), H = S(V.value ? Math.min(...N.value.series.map((e) => e.from)) : N.value.value), U = null;
246
- function Gt() {
247
- U !== null && (cancelAnimationFrame(U), U = null);
248
- }
249
- D(V, (e) => {
250
- e || (Gt(), H.value = N.value.value);
251
- }), D(() => N.value.value, () => {
252
- Xt(N.value.value);
253
- });
254
- let W = f(() => {
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 = f(() => {
263
- let e = R.value.width / 2, t = Y.value.base, n = Math.PI * ((H.value + 0 - B.value) / (z.value - B.value)) + Math.PI, r = e + Y.value.pointerSize * R.value.pointerSize * .9 * Math.cos(n), i = t + Y.value.pointerSize * R.value.pointerSize * .9 * Math.sin(n), a = R.value.pointerRadius, ee = e + a * Math.cos(n + Math.PI / 2), o = t + a * Math.sin(n + Math.PI / 2), te = e + a * Math.cos(n - Math.PI / 2), s = t + a * Math.sin(n - Math.PI / 2);
264
- return isNaN(r) ? null : `M ${r},${i} ${ee},${o} ${te},${s} Z`;
265
- }), qt = f(() => {
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 = Ie(null), K = Ie(null), q = f({
272
- get: () => R.value.segmentFontSize,
273
- set: (e) => e
274
- }), { autoSizeLabels: Jt } = De({
275
- svgRef: F,
276
- fontSize: R.value.segmentFontSize,
277
- minFontSize: M.value.style.chart.layout.segmentNames.minFontSize,
278
- sizeRef: q,
279
- labelClass: ".vue-ui-gauge-label-flat"
280
- }), J = f(() => M.value.debug);
281
- function Yt() {
282
- let e = !1;
283
- if (a(k.dataset) ? (u({
284
- componentName: "VueUiGauge",
285
- type: "dataset",
286
- debug: J.value
287
- }), P.value = !0, e = !0) : (oe({
288
- datasetObject: k.dataset,
289
- requiredAttributes: ["value", "series"]
290
- }).forEach((t) => {
291
- u({
292
- componentName: "VueUiGauge",
293
- type: "datasetAttribute",
294
- property: t,
295
- debug: J.value
296
- }), P.value = !0, e = !0;
297
- }), Object.hasOwn(k.dataset, "series") && (k.dataset.series.length ? k.dataset.series.forEach((t, n) => {
298
- oe({
299
- datasetObject: t,
300
- requiredAttributes: ["from", "to"]
301
- }).forEach((t) => {
302
- u({
303
- componentName: "VueUiGauge",
304
- type: "datasetSerieAttribute",
305
- property: t,
306
- index: n,
307
- debug: J.value
308
- }), P.value = !0, e = !0;
309
- });
310
- }) : (u({
311
- componentName: "VueUiGauge",
312
- type: "datasetAttributeEmpty",
313
- property: "series",
314
- debug: J.value
315
- }), P.value = !0, e = !0))), P.value = e, Xt(N.value.value || 0), M.value.responsive) {
316
- let e = xe(() => {
317
- let { width: e, height: t } = Se({
318
- chart: j.value,
319
- title: M.value.style.chart.title.text ? Dt.value : null,
320
- legend: Ot.value,
321
- source: kt.value,
322
- noTitle: At.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 = M.value.style.chart.legend.fontSize / L.value * Math.min(t, e) < 14 ? 14 : M.value.style.chart.legend.fontSize / L.value * Math.min(t, e), R.value.pointerRadius = M.value.style.chart.layout.pointer.circle.radius / L.value * Math.min(t, e), R.value.trackSize = M.value.style.chart.layout.track.size / L.value * Math.min(t, e), R.value.pointerStrokeWidth = c({
326
- relator: Math.min(e, t),
327
- adjuster: L.value,
328
- source: M.value.style.chart.layout.pointer.strokeWidth,
329
- threshold: 2,
330
- fallback: 2
331
- }), R.value.markerOffset = c({
332
- relator: Math.max(e, t),
333
- adjuster: L.value,
334
- source: M.value.style.chart.layout.markers.offsetY + 3,
335
- threshold: 2,
336
- fallback: 2
337
- }), R.value.segmentFontSize = c({
338
- relator: Math.min(e, t),
339
- adjuster: L.value,
340
- source: M.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 = j.value.parentNode, G.value.observe(K.value);
347
- }
348
- Jt();
349
- }
350
- Fe(() => {
351
- Yt();
352
- }), Pe(() => {
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 = M.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 = f(() => {
374
- let e = M.value.responsive ? Math.min(R.value.width, R.value.height) : R.value.width, t = 2.5 / M.value.style.chart.layout.radiusRatio;
375
- return {
376
- arcs: e / t,
377
- gradients: e / (t * 1.1),
378
- base: M.value.responsive ? R.value.height / 1.618 : R.value.height * .7,
379
- ratingBase: M.value.responsive ? R.value.height / 2 + R.value.height / 4 : R.value.height * .9,
380
- pointerSize: M.value.responsive ? Math.min(R.value.width, R.value.height) / 3 : R.value.width / 3.2
381
- };
382
- }), X = f(() => ae({ 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 = f(() => ae({ series: I.value.series }, R.value.width / 2, Y.value.base, Y.value.arcs * M.value.style.chart.layout.segmentNames.offsetRatio, Y.value.arcs * M.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * R.value.trackSize)), Z = f(() => X.value.map((e) => Y.value.arcs * M.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Qt = f(() => {
383
- let { x: e, y: t } = o({
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: -M.value.style.chart.layout.segmentSeparators.offsetIn
389
- }), { x: n, y: r } = o({
390
- initX: X.value[0].startX,
391
- initY: X.value[0].startY,
392
- centerX: W.value.x1,
393
- centerY: W.value.y1,
394
- offset: M.value.style.chart.layout.segmentSeparators.offsetOut
395
- });
396
- return {
397
- x1: e,
398
- y1: t,
399
- x2: n,
400
- y2: r
401
- };
402
- }), $t = f(() => X.value.map((e) => {
403
- let { x: t, y: n } = o({
404
- initX: e.separator.x,
405
- initY: e.separator.y,
406
- centerX: W.value.x1,
407
- centerY: W.value.y1,
408
- offset: -M.value.style.chart.layout.segmentSeparators.offsetIn
409
- }), { x: r, y: i } = o({
410
- initX: e.endX,
411
- initY: e.endY,
412
- centerX: W.value.x1,
413
- centerY: W.value.y1,
414
- offset: M.value.style.chart.layout.segmentSeparators.offsetOut
415
- });
416
- return {
417
- x1: t,
418
- y1: n,
419
- x2: r,
420
- y2: i
421
- };
422
- }));
423
- function en(e) {
424
- if (e.reduce((e, t) => e + t, 0) > 100) throw Error("Total % must not exceed 100");
425
- let t = 0;
426
- return e.map((e) => (t += e, `${t / 100 * 50 - e / 4}%`));
427
- }
428
- let tn = f(() => en(X.value.map((e) => e.proportion * 100))), nn = f(() => ae({ 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 = f(() => {
429
- let e = B.value >= 0 ? -B.value : Math.abs(B.value);
430
- return ee({
431
- radius: M.value.style.chart.layout.indicatorArc.radius * R.value.trackSize,
432
- centerX: R.value.width / 2,
433
- centerY: Y.value.base,
434
- percentage: re((H.value + e) / (z.value + e))
435
- });
436
- }), Q = S(!1);
437
- function an(e) {
438
- Q.value = e, Et.value += 1;
439
- }
440
- let $ = S(!1);
441
- function on() {
442
- $.value = !$.value;
443
- }
444
- async function sn({ scale: e = 2 } = {}) {
445
- if (!j.value) return;
446
- let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
447
- domElement: j.value,
448
- base64: !0,
449
- img: !0,
450
- scale: e
451
- });
452
- return {
453
- imageUri: i,
454
- base64: a,
455
- title: M.value.style.chart.title.text,
456
- width: t,
457
- height: n,
458
- aspectRatio: r
459
- };
460
- }
461
- let cn = f(() => M.value.style.chart.backgroundColor), ln = f(() => M.value.style.chart.title), { isCallbackImaging: un, isCallbackSvg: dn, generateSvg: fn, onGenerateImage: pn } = _e({
462
- svg: F,
463
- title: ln,
464
- legend: null,
465
- legendItems: null,
466
- backgroundColor: cn,
467
- getSvgCallback: () => M.value.userOptions.callbacks.svg,
468
- generateImage: Ht
469
- });
470
- async function mn() {
471
- if (Ct("copyAlt", {
472
- config: M.value,
473
- dataset: I.value
474
- }), !M.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(M.value.userOptions.callbacks.altCopy({
479
- config: M.value,
480
- dataset: I.value
481
- }));
482
- }
483
- return be({
484
- getImage: sn,
485
- generatePdf: Vt,
486
- generateImage: Ht,
487
- generateSvg: fn,
488
- toggleAnnotator: on,
489
- toggleFullscreen: an,
490
- copyAlt: mn
491
- }), (e, r) => (x(), h("div", {
492
- class: Me(`vue-data-ui-component vue-ui-gauge ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
493
- ref_key: "gaugeChart",
494
- ref: j,
495
- id: `vue-ui-gauge_${A.value}`,
496
- style: Ne(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height: 100%" : ""}`),
497
- onMouseenter: r[0] ||= () => E(It)(!0),
498
- onMouseleave: r[1] ||= () => E(It)(!1)
499
- }, [
500
- M.value.userOptions.buttons.annotator ? (x(), p(E(gt), {
501
- key: 0,
502
- svgRef: E(F),
503
- backgroundColor: M.value.style.chart.backgroundColor,
504
- color: M.value.style.chart.color,
505
- active: $.value,
506
- isCursorPointer: Mt.value,
507
- onClose: on
508
- }, {
509
- "annotator-action-close": O(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
510
- "annotator-action-color": O(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
511
- "annotator-action-draw": O(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
512
- "annotator-action-undo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
513
- "annotator-action-redo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
514
- "annotator-action-delete": O(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
515
- _: 3
516
- }, 8, [
517
- "svgRef",
518
- "backgroundColor",
519
- "color",
520
- "active",
521
- "isCursorPointer"
522
- ])) : m("", !0),
523
- Ut.value ? (x(), h("div", {
524
- key: 1,
525
- ref_key: "noTitle",
526
- ref: At,
527
- class: "vue-data-ui-no-title-space",
528
- style: "height:36px; width: 100%;background:transparent"
529
- }, null, 512)) : m("", !0),
530
- M.value.style.chart.title.text ? (x(), h("div", {
531
- key: 2,
532
- ref_key: "chartTitle",
533
- ref: Dt,
534
- style: "width:100%;background:transparent;padding-bottom:12px"
535
- }, [(x(), p(ye, {
536
- key: `title_${jt.value}`,
537
- config: {
538
- title: {
539
- cy: "gauge-div-title",
540
- ...M.value.style.chart.title
541
- },
542
- subtitle: {
543
- cy: "gauge-div-subtitle",
544
- ...M.value.style.chart.title.subtitle
545
- }
546
- }
547
- }, {
548
- default: O(() => [M.value.translations.base && E(N).base ? (x(), h("span", Be, T(M.value.translations.base) + ": " + T(E(N).base), 1)) : m("", !0)]),
549
- _: 1
550
- }, 8, ["config"]))], 512)) : m("", !0),
551
- M.value.userOptions.show && wt.value && (E(Lt) || E(Ft)) ? (x(), p(E(_t), {
552
- ref_key: "details",
553
- ref: Tt,
554
- key: `user_options_${Et.value}`,
555
- backgroundColor: M.value.style.chart.backgroundColor,
556
- color: M.value.style.chart.color,
557
- isImaging: E(Bt),
558
- isPrinting: E(zt),
559
- uid: A.value,
560
- hasXls: !1,
561
- hasPdf: M.value.userOptions.buttons.pdf,
562
- hasImg: M.value.userOptions.buttons.img,
563
- hasSvg: M.value.userOptions.buttons.svg,
564
- hasFullscreen: M.value.userOptions.buttons.fullscreen,
565
- hasAltCopy: M.value.userOptions.buttons.altCopy,
566
- isFullscreen: Q.value,
567
- titles: { ...M.value.userOptions.buttonTitles },
568
- chartElement: j.value,
569
- callbacks: M.value.userOptions.callbacks,
570
- printScale: M.value.userOptions.print.scale,
571
- position: M.value.userOptions.position,
572
- hasAnnotator: M.value.userOptions.buttons.annotator,
573
- isAnnotation: $.value,
574
- isCursorPointer: Mt.value,
575
- onToggleFullscreen: an,
576
- onGeneratePdf: E(Vt),
577
- onGenerateImage: E(pn),
578
- onGenerateSvg: E(fn),
579
- onToggleAnnotator: on,
580
- onCopyAlt: mn,
581
- style: Ne({ visibility: E(Lt) ? E(Ft) ? "visible" : "hidden" : "visible" })
582
- }, ke({ _: 2 }, [
583
- e.$slots.menuIcon ? {
584
- name: "menuIcon",
585
- fn: O(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
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: O(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
594
- key: "1"
595
- } : void 0,
596
- e.$slots.optionImg ? {
597
- name: "optionImg",
598
- fn: O(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
599
- key: "2"
600
- } : void 0,
601
- e.$slots.optionSvg ? {
602
- name: "optionSvg",
603
- fn: O(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
604
- key: "3"
605
- } : void 0,
606
- e.$slots.optionFullscreen ? {
607
- name: "optionFullscreen",
608
- fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(v({
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: O(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(v({
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: O(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
625
- key: "6"
626
- } : void 0,
627
- e.$slots["custom-menu-before"] ? {
628
- name: "custom-menu-before",
629
- fn: O(() => [w(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: O(() => [w(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
- ])) : m("", !0),
662
- (x(), h("svg", {
663
- ref_key: "svgRef",
664
- ref: F,
665
- xmlns: E(ce),
666
- class: Me({
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: Ne(`max-width:100%;overflow:hidden !important;background:transparent;color:${M.value.style.chart.color}`)
672
- }, [
673
- Ae(E(vt)),
674
- e.$slots["chart-background"] ? (x(), h("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
- }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, He)) : m("", !0),
682
- g("defs", null, [Ae(Ce, {
683
- t: "radial",
684
- id: `gradient_${A.value}`,
685
- cx: "50%",
686
- cy: "50%",
687
- r: "50%",
688
- fx: "50%",
689
- fy: "50%",
690
- stops: [
691
- [
692
- "0%",
693
- E(n)("#FFFFFF", 1),
694
- 1
695
- ],
696
- [
697
- "80%",
698
- E(n)("#FFFFFF", M.value.style.chart.layout.track.gradientIntensity),
699
- 1
700
- ],
701
- [
702
- "100%",
703
- E(n)("#FFFFFF", 1),
704
- 1
705
- ]
706
- ]
707
- }, null, 8, ["id", "stops"])]),
708
- g("defs", null, [g("filter", {
709
- id: `blur_${A.value}`,
710
- x: "-50%",
711
- y: "-50%",
712
- width: "200%",
713
- height: "200%"
714
- }, [g("feGaussianBlur", {
715
- in: "SourceGraphic",
716
- stdDeviation: 100 / M.value.style.chart.layout.track.gradientIntensity
717
- }, null, 8, We)], 8, Ue)]),
718
- e.$slots.pattern ? (x(), h("g", Ge, [(x(!0), h(d, null, C(X.value, (t, n) => (x(), h("defs", null, [w(e.$slots, "pattern", y({ ref_for: !0 }, {
719
- seriesIndex: n,
720
- patternId: `pattern_${A.value}_${n}`
721
- }), void 0, !0)]))), 256))])) : m("", !0),
722
- (x(!0), h(d, null, C(X.value, (e, t) => (x(), h("path", {
723
- key: `arc_${t}`,
724
- d: e.arcSlice,
725
- fill: e.color,
726
- stroke: M.value.style.chart.backgroundColor,
727
- "stroke-linecap": "round"
728
- }, null, 8, Ke))), 128)),
729
- e.$slots.pattern ? (x(!0), h(d, { key: 2 }, C(X.value, (e, t) => (x(), h("path", {
730
- key: `arc_${t}`,
731
- d: e.arcSlice,
732
- fill: `url(#pattern_${A.value}_${t})`,
733
- stroke: M.value.style.chart.backgroundColor,
734
- "stroke-linecap": "round"
735
- }, null, 8, qe))), 128)) : m("", !0),
736
- M.value.style.chart.layout.indicatorArc.show ? (x(), h("path", {
737
- key: 3,
738
- d: rn.value,
739
- fill: M.value.style.chart.layout.indicatorArc.fill
740
- }, null, 8, Je)) : m("", !0),
741
- M.value.style.chart.layout.segmentNames.show && M.value.style.chart.layout.segmentNames.curved ? (x(), h(d, { key: 4 }, [(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("path", {
742
- id: `curve_${A.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, Ye))), 256)), (x(!0), h(d, null, C(X.value, (e, t) => (x(), h("text", {
746
- fill: M.value.style.chart.layout.segmentNames.useSerieColor ? e.color : M.value.style.chart.layout.segmentNames.color,
747
- "font-size": q.value,
748
- "font-weight": M.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
749
- "text-anchor": "middle"
750
- }, [g("textPath", {
751
- href: `#curve_${A.value}_${t}`,
752
- startOffset: tn.value[t]
753
- }, T(e.name || ""), 9, Ze)], 8, Xe))), 256))], 64)) : m("", !0),
754
- M.value.style.chart.layout.segmentNames.show && !M.value.style.chart.layout.segmentNames.curved ? (x(!0), h(d, { key: 5 }, C(Zt.value, (e, n) => (x(), h("text", {
755
- class: "vue-ui-gauge-label-flat",
756
- "text-anchor": E(ie)(e, !1, 12).anchor,
757
- fill: M.value.style.chart.layout.segmentNames.useSerieColor ? e.color : M.value.style.chart.layout.segmentNames.color,
758
- "font-size": q.value,
759
- "font-weight": M.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
760
- innerHTML: E(t)({
761
- content: String(e.name ?? ""),
762
- fontSize: q.value,
763
- fill: M.value.style.chart.layout.segmentNames.useSerieColor ? e.color : M.value.style.chart.layout.segmentNames.color,
764
- x: e.center.endX,
765
- y: e.center.endY
766
- })
767
- }, null, 8, Qe))), 256)) : m("", !0),
768
- M.value.style.chart.layout.track.useGradient ? (x(!0), h(d, { key: 6 }, C(nn.value, (e, t) => (x(), h("path", {
769
- key: `arc_${t}`,
770
- d: e.arcSlice,
771
- fill: "#FFFFFF",
772
- stroke: "none",
773
- "stroke-linecap": "round",
774
- filter: `url(#blur_${A.value})`
775
- }, null, 8, $e))), 128)) : m("", !0),
776
- M.value.style.chart.layout.segmentSeparators.show ? (x(), h(d, { key: 7 }, [
777
- g("line", y(Qt.value, {
778
- stroke: M.value.style.chart.backgroundColor,
779
- "stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
780
- "stroke-linecap": "round"
781
- }), null, 16, et),
782
- g("line", y(Qt.value, {
783
- stroke: M.value.style.chart.layout.segmentSeparators.stroke,
784
- "stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth,
785
- "stroke-linecap": "round"
786
- }), null, 16, tt),
787
- (x(!0), h(d, null, C($t.value, (e) => (x(), h("line", y({ ref_for: !0 }, e, {
788
- stroke: M.value.style.chart.backgroundColor,
789
- "stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
790
- "stroke-linecap": "round"
791
- }), null, 16, nt))), 256)),
792
- (x(!0), h(d, null, C($t.value, (e) => (x(), h("line", y({ ref_for: !0 }, e, {
793
- stroke: M.value.style.chart.layout.segmentSeparators.stroke,
794
- "stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth,
795
- "stroke-linecap": "round"
796
- }), null, 16, rt))), 256))
797
- ], 64)) : m("", !0),
798
- M.value.style.chart.layout.markers.show ? (x(), h("g", it, [(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("text", {
799
- x: E(o)({
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: E(o)({
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 * M.value.style.chart.layout.markers.fontSizeRatio,
815
- "font-weight": `${M.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
816
- fill: M.value.style.chart.layout.markers.color
817
- }, T(E(l)(M.value.style.chart.layout.markers.formatter, e.from, E(s)({
818
- p: M.value.style.chart.layout.markers.prefix,
819
- v: e.from,
820
- s: M.value.style.chart.layout.markers.suffix,
821
- r: M.value.style.chart.layout.markers.roundingValue
822
- }))), 9, at))), 256))])) : m("", !0),
823
- M.value.style.chart.layout.markers.show ? (x(), h("text", {
824
- key: 9,
825
- x: E(o)({
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: E(o)({
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 * M.value.style.chart.layout.markers.fontSizeRatio,
841
- "font-weight": `${M.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
842
- fill: M.value.style.chart.layout.markers.color
843
- }, T(E(l)(M.value.style.chart.layout.markers.formatter, z.value, E(s)({
844
- p: M.value.style.chart.layout.markers.prefix,
845
- v: z.value,
846
- s: M.value.style.chart.layout.markers.suffix,
847
- r: M.value.style.chart.layout.markers.roundingValue
848
- }))), 9, ot)) : m("", !0),
849
- M.value.style.chart.layout.pointer.show ? (x(), h(d, { key: 10 }, [M.value.style.chart.layout.pointer.type === "rounded" ? (x(), h("g", st, [
850
- isNaN(W.value.x2) ? m("", !0) : (x(), h("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: M.value.style.chart.layout.pointer.stroke,
857
- "stroke-width": R.value.pointerStrokeWidth,
858
- "stroke-linecap": "round"
859
- }, null, 8, ct)),
860
- isNaN(W.value.x2) ? m("", !0) : (x(), h("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: M.value.style.chart.layout.pointer.useRatingColor ? qt.value : M.value.style.chart.layout.pointer.color,
867
- "stroke-linecap": "round",
868
- "stroke-width": R.value.pointerStrokeWidth * .7
869
- }, null, 8, lt)),
870
- !isNaN(W.value.x2) && M.value.style.chart.layout.track.useGradient ? (x(), h("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_${A.value})`
880
- }, null, 8, ut)) : m("", !0)
881
- ])) : (x(), h("g", dt, [Kt.value ? (x(), h("path", {
882
- key: 0,
883
- d: Kt.value,
884
- fill: M.value.style.chart.layout.pointer.useRatingColor ? qt.value : M.value.style.chart.layout.pointer.color,
885
- stroke: M.value.style.chart.layout.pointer.stroke,
886
- "stroke-width": M.value.style.chart.layout.pointer.circle.strokeWidth,
887
- "stroke-linejoin": "round"
888
- }, null, 8, ft)) : m("", !0)])), g("circle", {
889
- cx: R.value.width / 2,
890
- cy: Y.value.base,
891
- fill: M.value.style.chart.layout.pointer.circle.color,
892
- r: R.value.pointerRadius <= 0 ? 1e-4 : R.value.pointerRadius,
893
- "stroke-width": M.value.style.chart.layout.pointer.circle.strokeWidth,
894
- stroke: M.value.style.chart.layout.pointer.circle.stroke
895
- }, null, 8, pt)], 64)) : m("", !0),
896
- M.value.style.chart.legend.show ? (x(), h("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: M.value.style.chart.legend.useRatingColor ? qt.value : M.value.style.chart.legend.color
904
- }, T(E(l)(M.value.style.chart.legend.formatter, H.value, E(s)({
905
- p: M.value.style.chart.legend.prefix + (M.value.style.chart.legend.showPlusSymbol && H.value > 0 ? "+" : ""),
906
- v: H.value,
907
- s: M.value.style.chart.legend.suffix,
908
- r: M.value.style.chart.legend.roundingValue
909
- }))), 9, mt)) : m("", !0),
910
- w(e.$slots, "svg", { svg: {
911
- ...R.value,
912
- isPrintingImg: E(zt) || E(Bt) || E(un),
913
- isPrintingSvg: E(dn)
914
- } }, void 0, !0)
915
- ], 14, Ve)),
916
- e.$slots.watermark ? (x(), h("div", ht, [w(e.$slots, "watermark", b(v({ isPrinting: E(zt) || E(Bt) || E(un) || E(dn) })), void 0, !0)])) : m("", !0),
917
- g("div", {
918
- ref_key: "chartLegend",
919
- ref: Ot
920
- }, [w(e.$slots, "legend", { legend: I.value }, void 0, !0)], 512),
921
- e.$slots.source ? (x(), h("div", {
922
- key: 5,
923
- ref_key: "source",
924
- ref: kt,
925
- dir: "auto"
926
- }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
927
- w(e.$slots, "skeleton", {}, () => [E(Pt) ? (x(), p(me, { key: 0 })) : m("", !0)], !0)
928
- ], 46, ze));
929
- }
930
- }, [["__scopeId", "data-v-27f19797"]]);
931
- //#endregion
932
- export { Re as n, gt as t };