vue-data-ui 2.4.44 → 2.4.45

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 (155) hide show
  1. package/dist/{Arrow-DabU4Tq7.js → Arrow-DExBMFtJ.js} +1 -1
  2. package/dist/{Arrow-D7FfpPjv.cjs → Arrow-dxEccWUa.cjs} +1 -1
  3. package/dist/{BaseIcon-vmPfwVXS.cjs → BaseIcon-DUokibJ1.cjs} +1 -1
  4. package/dist/{BaseIcon-DgOZGFA6.js → BaseIcon-DpLJi6ci.js} +1 -1
  5. package/dist/{DataTable-ByILXTgq.js → DataTable-NGi-FgLM.js} +2 -2
  6. package/dist/{DataTable-WzoXT7XP.cjs → DataTable-aoauqoko.cjs} +1 -1
  7. package/dist/{Legend-eRHr8IFu.cjs → Legend-DHE2CFkm.cjs} +1 -1
  8. package/dist/{Legend-CJAbBncx.js → Legend-DRozxv9L.js} +1 -1
  9. package/dist/{PackageVersion-DylCZJMA.cjs → PackageVersion-1JWV5loe.cjs} +1 -1
  10. package/dist/{PackageVersion-2fR7Awu1.js → PackageVersion-CTMY4zeY.js} +1 -1
  11. package/dist/{PenAndPaper-2aIJsXNH.cjs → PenAndPaper-C6mnwE-L.cjs} +1 -1
  12. package/dist/{PenAndPaper-wVL9QD9U.js → PenAndPaper-DJ_d10S-.js} +3 -3
  13. package/dist/{Shape-JMJZs7By.js → Shape-C-sY_hlc.js} +1 -1
  14. package/dist/{Shape-nGoGILeB.cjs → Shape-rA2az7tR.cjs} +1 -1
  15. package/dist/{Slicer-BLuFaL8r.cjs → Slicer-CJsmloDN.cjs} +1 -1
  16. package/dist/{Slicer-Ce0VzdTY.js → Slicer-D4SO7odF.js} +2 -2
  17. package/dist/{Title-Dj5wajqV.js → Title-Coit3NcT.js} +1 -1
  18. package/dist/{Title-CtfsoH8U.cjs → Title-DkbnpMvf.cjs} +1 -1
  19. package/dist/{Tooltip-6D9aABEX.cjs → Tooltip-B8L4NDsX.cjs} +1 -1
  20. package/dist/{Tooltip-Zrcwpy3T.js → Tooltip-BBgfUr4a.js} +1 -1
  21. package/dist/{index-D3_dyp9t.js → index-Cm2_6s9o.js} +119 -109
  22. package/dist/index-DuDeHJyK.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +10 -0
  25. package/dist/types/vue-data-ui.d.ts +10 -0
  26. package/dist/{useNestedProp-qwG6HgrL.js → useNestedProp-BYPZJNhi.js} +1 -1
  27. package/dist/{useNestedProp-C8Y0yWDq.cjs → useNestedProp-zkJOoemW.cjs} +1 -1
  28. package/dist/{usePrinter-41NUZdgl.js → usePrinter-Cx8U1e30.js} +1 -1
  29. package/dist/{usePrinter-Cw4E_LYe.cjs → usePrinter-ardO_DNo.cjs} +1 -1
  30. package/dist/{vue-data-ui-DPujYnT2.cjs → vue-data-ui-B8Lvjc4V.cjs} +1 -1
  31. package/dist/{vue-data-ui-CKlgRX2w.js → vue-data-ui-Blpxr4_M.js} +60 -60
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-CURLeBAg.cjs → vue-ui-3d-bar-CqmOoIA2.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-DFqYSjKF.js → vue-ui-3d-bar-DvitE1K_.js} +9 -9
  36. package/dist/{vue-ui-accordion-DbKFz7vP.js → vue-ui-accordion-CxrNF8BI.js} +3 -3
  37. package/dist/{vue-ui-accordion-zOz2K8wY.cjs → vue-ui-accordion-JS5d0ZPi.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-BzwQxubx.cjs → vue-ui-age-pyramid-CRP36JDm.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-DVjZHG-c.js → vue-ui-age-pyramid-Ti2L5N92.js} +10 -10
  40. package/dist/{vue-ui-annotator-CU8bDkP0.cjs → vue-ui-annotator-DtL3BbOJ.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-ZDqHg-kV.js → vue-ui-annotator-HNK_5tWo.js} +1 -1
  42. package/dist/{vue-ui-bullet-BaQJ3acV.js → vue-ui-bullet-D3WmBrm4.js} +8 -8
  43. package/dist/{vue-ui-bullet-Dt0Ki37L.cjs → vue-ui-bullet-DEUwbTdx.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-C5Pzu7U1.js → vue-ui-candlestick-B5okP_Jf.js} +11 -11
  45. package/dist/{vue-ui-candlestick-CMubhqre.cjs → vue-ui-candlestick-C5bTH9oE.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-CPE1nggj.js → vue-ui-carousel-table-BgKL0rnF.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-CL6njZH4.cjs → vue-ui-carousel-table-Bt2xx2b5.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-DHF2jlte.cjs → vue-ui-chestnut-D5XfSvCG.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-B7zSDFfA.js → vue-ui-chestnut-DDsFxoUr.js} +8 -8
  50. package/dist/{vue-ui-cursor-GKguDqwJ.js → vue-ui-cursor-B2NOd5i-.js} +2 -2
  51. package/dist/{vue-ui-cursor-PG2njvGA.cjs → vue-ui-cursor-CSBJgZLu.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-D2w_aK31.cjs → vue-ui-dashboard-C6MJN9kG.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-u_haUFHY.js → vue-ui-dashboard-u-Gt08KE.js} +2 -2
  54. package/dist/{vue-ui-digits-DQetGFnZ.cjs → vue-ui-digits-B4fzfTox.cjs} +1 -1
  55. package/dist/{vue-ui-digits-DjMZxTuZ.js → vue-ui-digits-DCXyjW_e.js} +2 -2
  56. package/dist/{vue-ui-donut-CmRH-JB2.js → vue-ui-donut-BvASz63R.js} +11 -11
  57. package/dist/{vue-ui-donut-DQcISN6U.cjs → vue-ui-donut-CaJSY2gj.cjs} +1 -1
  58. package/dist/{vue-ui-donut-evolution-YntzBUIL.js → vue-ui-donut-evolution-DcPk33e8.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-XrPuyr-U.cjs → vue-ui-donut-evolution-DrnLlHPS.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-CCwYiUwP.cjs → vue-ui-dumbbell-8v-xIlsx.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-DmgUkc9m.js → vue-ui-dumbbell-D918XYc8.js} +10 -10
  62. package/dist/{vue-ui-flow-Ca2cA45D.cjs → vue-ui-flow-BBmnTxVE.cjs} +1 -1
  63. package/dist/{vue-ui-flow-CZkXzt4D.js → vue-ui-flow-DQ5q2b1Y.js} +9 -9
  64. package/dist/{vue-ui-funnel-CJAT8_1R.cjs → vue-ui-funnel-CmERxe4h.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-z2OgL3Q1.js → vue-ui-funnel-v5WCHaw6.js} +8 -8
  66. package/dist/{vue-ui-galaxy-bgA3s7VZ.cjs → vue-ui-galaxy-8xWYo-xy.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-CGhDJ3tA.js → vue-ui-galaxy-COSx0c89.js} +11 -11
  68. package/dist/vue-ui-gauge-CWnGYcFD.js +610 -0
  69. package/dist/vue-ui-gauge-CYth7Lci.cjs +1 -0
  70. package/dist/{vue-ui-gizmo-Bq56LDKo.js → vue-ui-gizmo-ByuFn-0N.js} +3 -3
  71. package/dist/{vue-ui-gizmo-DBIefin8.cjs → vue-ui-gizmo-DUO_TpvK.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-C0NUwPN7.cjs → vue-ui-heatmap-DiON-CAI.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-Dbrlismo.js → vue-ui-heatmap-UoKourVZ.js} +10 -10
  74. package/dist/{vue-ui-history-plot-Cd0Qgkox.cjs → vue-ui-history-plot-CjVySabp.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-CMAu0w0K.js → vue-ui-history-plot-CkxvdQeV.js} +11 -11
  76. package/dist/{vue-ui-kpi-CkRUVNcg.js → vue-ui-kpi-BRwkUBxs.js} +3 -3
  77. package/dist/{vue-ui-kpi-C1a3ONse.cjs → vue-ui-kpi-DYHGPjrp.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-BVvBbruK.js → vue-ui-mini-loader-Cbl4ydLu.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-DZ1q-GO6.cjs → vue-ui-mini-loader-oviO8Ueo.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-C-tmrnHA.cjs → vue-ui-molecule-CX1M509E.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-DlXNe42L.js → vue-ui-molecule-DM_mX72q.js} +11 -11
  82. package/dist/{vue-ui-mood-radar-DzHvFqno.js → vue-ui-mood-radar-Bzsba8qo.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-DYXE1dDD.cjs → vue-ui-mood-radar-fuqAjpvg.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-DDpYr89I.js → vue-ui-nested-donuts-BG84mskb.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-BpcKwKFO.cjs → vue-ui-nested-donuts-DfHtC4XP.cjs} +1 -1
  86. package/dist/{vue-ui-onion-B9CAGc1E.js → vue-ui-onion-DpFx1Oy9.js} +11 -11
  87. package/dist/{vue-ui-onion-_WXwSygI.cjs → vue-ui-onion-gt77JCbM.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-CdvYxx2S.js → vue-ui-parallel-coordinate-plot-CQG_anr7.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-DL5vZwuT.cjs → vue-ui-parallel-coordinate-plot-xJTddxji.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-CILC-e-o.js → vue-ui-quadrant-Cddob9c3.js} +12 -12
  91. package/dist/{vue-ui-quadrant-ivKVYVXn.cjs → vue-ui-quadrant-D0YgwhwW.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-DW3XlvkG.cjs → vue-ui-quick-chart-CLzNpIFU.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-NIE0zUjt.js → vue-ui-quick-chart-DTEubspa.js} +9 -9
  94. package/dist/{vue-ui-radar-BonXp2ML.js → vue-ui-radar--uexaa6p.js} +12 -12
  95. package/dist/{vue-ui-radar-D9WtkmKW.cjs → vue-ui-radar-BTh9qZ2p.cjs} +1 -1
  96. package/dist/{vue-ui-rating-DblWs0Ay.js → vue-ui-rating-BQuZA9UU.js} +2 -2
  97. package/dist/{vue-ui-rating-3akEkZ0G.cjs → vue-ui-rating-Dyjk2dub.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-BaPqJcbF.js → vue-ui-relation-circle-C8NYrTHA.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-Bv5QA1FA.cjs → vue-ui-relation-circle-FtGlV4Ne.cjs} +1 -1
  100. package/dist/{vue-ui-rings-KRi0yCa1.cjs → vue-ui-rings-ClJRYeFC.cjs} +1 -1
  101. package/dist/{vue-ui-rings-DHa-dc3s.js → vue-ui-rings-FEIPR_dS.js} +11 -11
  102. package/dist/{vue-ui-scatter-CKnKyeDJ.js → vue-ui-scatter-CzbgC6ep.js} +12 -12
  103. package/dist/{vue-ui-scatter-C-0G6tO_.cjs → vue-ui-scatter-vYxSs8Gf.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-BIvS3Dva.cjs → vue-ui-screenshot-CVQCw0B1.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-BnQlv1n0.js → vue-ui-screenshot-IaxgY5qE.js} +1 -1
  106. package/dist/{vue-ui-skeleton-CaV7JuCg.js → vue-ui-skeleton-BUS6A44x.js} +3 -3
  107. package/dist/{vue-ui-skeleton-urNi7er0.cjs → vue-ui-skeleton-DleyAXe1.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-BkKHZRcE.js → vue-ui-smiley-5CVa-rQU.js} +2 -2
  109. package/dist/{vue-ui-smiley-BDJWFNUb.cjs → vue-ui-smiley-BTTXNPGY.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-Jrg-tgH_.cjs → vue-ui-spark-trend-CZAgof3m.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-C6B6URVX.js → vue-ui-spark-trend-D9ww-Cv5.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-CcPXRX01.cjs → vue-ui-sparkbar-BFsdfuNO.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-D7A9EKVi.js → vue-ui-sparkbar-DKeLvkHa.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-ZQOdaaF1.cjs → vue-ui-sparkgauge-B_bIpe_O.cjs} +1 -1
  115. package/dist/{vue-ui-sparkgauge-C1kcwrm9.js → vue-ui-sparkgauge-DLpPuJdG.js} +4 -4
  116. package/dist/{vue-ui-sparkhistogram-DkMaK9FC.js → vue-ui-sparkhistogram-BA8QV7Cu.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-CZQzNQHQ.cjs → vue-ui-sparkhistogram-RoW45LV8.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-DuJlR_56.cjs → vue-ui-sparkline-BggHSfaz.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-JNv27Q7M.js → vue-ui-sparkline-BwOtPPij.js} +4 -4
  120. package/dist/{vue-ui-sparkstackbar-4YKk6S2y.js → vue-ui-sparkstackbar-DCS6RRgN.js} +5 -5
  121. package/dist/{vue-ui-sparkstackbar-BStYMSiJ.cjs → vue-ui-sparkstackbar-Uv_p8v9c.cjs} +1 -1
  122. package/dist/{vue-ui-stackbar-BKhScZJ4.cjs → vue-ui-stackbar-BqKNaGrf.cjs} +1 -1
  123. package/dist/{vue-ui-stackbar-BrBToOgd.js → vue-ui-stackbar-zcfxba5s.js} +12 -12
  124. package/dist/{vue-ui-strip-plot-BSbIVJLB.cjs → vue-ui-strip-plot-J5SSJPyl.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-BB9AjuXc.js → vue-ui-strip-plot-NykStkP9.js} +11 -11
  126. package/dist/{vue-ui-table-CTwEo09l.cjs → vue-ui-table-DWPKVbYC.cjs} +1 -1
  127. package/dist/{vue-ui-table-BkfBNufP.js → vue-ui-table-DhRjI7oG.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-t6NXIulS.js → vue-ui-table-heatmap-CT5nGoW-.js} +4 -4
  129. package/dist/{vue-ui-table-heatmap-BRa-idSR.cjs → vue-ui-table-heatmap-GvLTOGcB.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-CtVdHOeS.js → vue-ui-table-sparkline-Ba_Ucvgb.js} +5 -5
  131. package/dist/{vue-ui-table-sparkline-LRvAe8DG.cjs → vue-ui-table-sparkline-CBFEknMF.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-Dqy_A9Ka.js → vue-ui-thermometer-C11VSZfb.js} +7 -7
  133. package/dist/{vue-ui-thermometer-Bkj9olK0.cjs → vue-ui-thermometer-sqA0TGTi.cjs} +1 -1
  134. package/dist/{vue-ui-timer-C2WYUfS1.cjs → vue-ui-timer-CcBNysNG.cjs} +1 -1
  135. package/dist/{vue-ui-timer-BkWR-FS3.js → vue-ui-timer-lwjayVn0.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-BXumbUyZ.cjs → vue-ui-tiremarks-FBnh0R_Z.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-Dl881FpL.js → vue-ui-tiremarks-Jz80HKpg.js} +7 -7
  138. package/dist/{vue-ui-treemap-CvNWsOoE.cjs → vue-ui-treemap-7YFJ-Pb9.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-Vl47y-4n.js → vue-ui-treemap-B_qVGTnP.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-BzkqxE45.js → vue-ui-vertical-bar-5MwcqOTN.js} +11 -11
  141. package/dist/{vue-ui-vertical-bar-D1EoKlII.cjs → vue-ui-vertical-bar-DGuvFK2h.cjs} +1 -1
  142. package/dist/{vue-ui-waffle-Bd4Wn4LE.js → vue-ui-waffle-B0JbRRUv.js} +11 -11
  143. package/dist/{vue-ui-waffle-C6cN0uw8.cjs → vue-ui-waffle-C0F8eexl.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-OGoTipOg.cjs → vue-ui-wheel-DP9XwVGM.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-D1SsLAru.js → vue-ui-wheel-pQBqSI5z.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-Da4dHp_U.cjs → vue-ui-word-cloud-CmKH64gk.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-C6vq-XKZ.js → vue-ui-word-cloud-D39_9P7v.js} +10 -10
  148. package/dist/{vue-ui-xy-DXLSyett.cjs → vue-ui-xy-2m8k1EUB.cjs} +1 -1
  149. package/dist/{vue-ui-xy-Bbih4XkZ.js → vue-ui-xy-DRYbR_nu.js} +14 -14
  150. package/dist/{vue-ui-xy-canvas-GffgFKCU.cjs → vue-ui-xy-canvas-CywB2tWN.cjs} +1 -1
  151. package/dist/{vue-ui-xy-canvas-Dtv9a_jF.js → vue-ui-xy-canvas-DZib_307.js} +11 -11
  152. package/package.json +1 -1
  153. package/dist/index-ZAR4YEAn.cjs +0 -9
  154. package/dist/vue-ui-gauge-F-bvIFfG.cjs +0 -1
  155. package/dist/vue-ui-gauge-NtnSEvX5.js +0 -557
@@ -0,0 +1,610 @@
1
+ import { computed as y, ref as d, watch as ie, onMounted as Pe, onBeforeUnmount as Ne, openBlock as s, createElementBlock as r, normalizeClass as ce, normalizeStyle as ve, createBlock as Y, createCommentVNode as v, withCtx as N, toDisplayString as z, unref as i, createSlots as Oe, renderSlot as x, normalizeProps as L, guardReactiveProps as D, createVNode as Ie, createElementVNode as g, Fragment as F, renderList as O } from "vue";
2
+ import { u as Xe, c as Ae, t as Ye, a as Re, p as he, b as Ge, o as de, d as Ee, e as R, g as fe, m as U, X as Te, s as B, k as je, I as G, i as W, f as V, F as q } from "./index-Cm2_6s9o.js";
3
+ import { t as Le, u as De } from "./useResponsive-CoxXLe23.js";
4
+ import { u as Ue, U as Be } from "./usePrinter-Cx8U1e30.js";
5
+ import We from "./vue-ui-skeleton-BUS6A44x.js";
6
+ import { _ as Ve } from "./Title-Coit3NcT.js";
7
+ import { u as ye } from "./useNestedProp-BYPZJNhi.js";
8
+ import { _ as qe } from "./PackageVersion-CTMY4zeY.js";
9
+ import { P as He } from "./PenAndPaper-DJ_d10S-.js";
10
+ import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const Je = ["id"], Ke = { key: 0 }, Qe = ["xmlns", "viewBox"], et = ["id"], tt = ["stop-color"], at = ["stop-color"], lt = ["stop-color"], ot = ["id"], st = ["stdDeviation"], rt = ["d", "fill", "stroke"], ut = ["id", "d"], nt = ["fill", "font-size", "font-weight"], it = ["href", "startOffset"], ct = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], vt = ["d", "filter"], ht = { key: 3 }, dt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], ft = ["x", "y", "font-size", "font-weight", "fill"], yt = { key: 5 }, mt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], gt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], pt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], kt = { key: 6 }, bt = ["d", "fill", "stroke", "stroke-width"], _t = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], xt = ["x", "y", "font-size", "fill"], wt = {
12
+ key: 5,
13
+ class: "vue-data-ui-watermark"
14
+ }, St = {
15
+ __name: "vue-ui-gauge",
16
+ props: {
17
+ config: {
18
+ type: Object,
19
+ default() {
20
+ return {};
21
+ }
22
+ },
23
+ dataset: {
24
+ type: Object,
25
+ default() {
26
+ return {};
27
+ }
28
+ }
29
+ },
30
+ setup(E, { expose: me }) {
31
+ const c = E, { vue_ui_gauge: ge } = Xe(), I = y(() => !!c.dataset && Object.keys(c.dataset).length > 0 && c.dataset.series && c.dataset.series.length), k = d(Ae()), pe = d(null), H = d(0), $ = d(null), Z = d(null), J = d(null), K = d(null), Q = d(null), ee = d(0), e = y({
32
+ get: () => te(),
33
+ set: (a) => a
34
+ });
35
+ ie(() => c.config, (a) => {
36
+ e.value = te(), ue(), ee.value += 1;
37
+ }, { deep: !0 });
38
+ function te() {
39
+ const a = ye({
40
+ userConfig: c.config,
41
+ defaultConfig: ge
42
+ });
43
+ return a.theme ? {
44
+ ...ye({
45
+ userConfig: Ye.vue_ui_gauge[a.theme] || c.config,
46
+ defaultConfig: a
47
+ }),
48
+ customPalette: Re[a.theme] || he
49
+ } : a;
50
+ }
51
+ const { isPrinting: ae, isImaging: le, generatePdf: oe, generateImage: se } = Ue({
52
+ elementId: `vue-ui-gauge_${k.value}`,
53
+ fileName: e.value.style.chart.title.text || "vue-ui-gauge"
54
+ }), ke = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = y(() => Ge(e.value.customPalette)), w = y(() => {
55
+ if (!I.value || de(c.dataset.series || {}))
56
+ return {
57
+ value: 0,
58
+ series: [
59
+ {
60
+ from: 0,
61
+ to: 0
62
+ }
63
+ ]
64
+ };
65
+ const a = [];
66
+ (c.dataset.series || []).forEach((t) => {
67
+ a.push(t.from || 1e-7), a.push(t.to || 1e-7);
68
+ });
69
+ const o = Math.max(...a);
70
+ return {
71
+ ...c.dataset,
72
+ series: (c.dataset.series || []).map((t, u) => ({
73
+ ...t,
74
+ color: Ee(t.color) || be.value[u] || he[u],
75
+ value: ((t.to || 0) - (t.from || 0)) / o * 100
76
+ }))
77
+ };
78
+ }), m = d(512), l = d({
79
+ height: 358.4,
80
+ width: m.value,
81
+ top: 0,
82
+ bottom: 358.4,
83
+ centerX: 179.2,
84
+ centerY: m.value / 2,
85
+ labelFontSize: 18,
86
+ legendFontSize: e.value.style.chart.legend.fontSize,
87
+ pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
88
+ trackSize: e.value.style.chart.layout.track.size,
89
+ pointerSize: e.value.style.chart.layout.pointer.size,
90
+ pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
91
+ markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
92
+ segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
93
+ }), C = d(0), M = d(0), f = d(e.value.style.chart.animation.use ? 0 : c.dataset.value);
94
+ ie(() => c.dataset.value, () => {
95
+ ne(c.dataset.value);
96
+ });
97
+ const h = y(() => {
98
+ const a = l.value.width / 2, o = n.value.base, t = Math.PI * ((f.value + 0 - M.value) / (C.value - M.value)) + Math.PI;
99
+ return {
100
+ x1: a,
101
+ y1: o,
102
+ x2: a + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(t),
103
+ y2: o + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(t)
104
+ };
105
+ }), re = y(() => {
106
+ const a = l.value.width / 2, o = n.value.base, t = Math.PI * ((f.value + 0 - M.value) / (C.value - M.value)) + Math.PI, u = a + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(t), b = o + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(t), p = l.value.pointerRadius, Fe = a + p * Math.cos(t + Math.PI / 2), $e = o + p * Math.sin(t + Math.PI / 2), Ce = a + p * Math.cos(t - Math.PI / 2), Me = o + p * Math.sin(t - Math.PI / 2);
107
+ return isNaN(u) ? null : `M ${u},${b} ${Fe},${$e} ${Ce},${Me} Z`;
108
+ }), T = y(() => {
109
+ for (let a = 0; a < w.value.series.length; a += 1) {
110
+ const { color: o, from: t, to: u } = w.value.series[a];
111
+ if (f.value >= t && f.value <= u)
112
+ return o;
113
+ }
114
+ return "#2D353C";
115
+ }), X = d(null);
116
+ function ue() {
117
+ if (de(c.dataset) ? R({
118
+ componentName: "VueUiGauge",
119
+ type: "dataset"
120
+ }) : (fe({
121
+ datasetObject: c.dataset,
122
+ requiredAttributes: ["value", "series"]
123
+ }).forEach((a) => {
124
+ R({
125
+ componentName: "VueUiGauge",
126
+ type: "datasetAttribute",
127
+ property: a
128
+ });
129
+ }), Object.hasOwn(c.dataset, "series") && (c.dataset.series.length ? c.dataset.series.forEach((a, o) => {
130
+ fe({
131
+ datasetObject: a,
132
+ requiredAttributes: ["from", "to"]
133
+ }).forEach((t) => {
134
+ R({
135
+ componentName: "VueUiGauge",
136
+ type: "datasetSerieAttribute",
137
+ property: t,
138
+ index: o
139
+ });
140
+ });
141
+ }) : R({
142
+ componentName: "VueUiGauge",
143
+ type: "datasetAttributeEmpty",
144
+ property: "series"
145
+ }))), ne(c.dataset.value || 0), e.value.responsive) {
146
+ const a = Le(() => {
147
+ const { width: o, height: t } = De({
148
+ chart: $.value,
149
+ title: e.value.style.chart.title.text ? Z.value : null,
150
+ legend: J.value,
151
+ source: K.value,
152
+ noTitle: Q.value
153
+ });
154
+ l.value.width = o, l.value.height = t, l.value.centerX = o / 2, l.value.centerY = m.value / 2 / 358.4 * t, l.value.bottom = t, l.value.labelFontSize = 18 / m.value * Math.min(t, o) < 10 ? 10 : 18 / m.value * Math.min(t, o), l.value.legendFontSize = e.value.style.chart.legend.fontSize / m.value * Math.min(t, o) < 14 ? 14 : e.value.style.chart.legend.fontSize / m.value * Math.min(t, o), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / m.value * Math.min(t, o), l.value.trackSize = e.value.style.chart.layout.track.size / m.value * Math.min(t, o), l.value.pointerStrokeWidth = q({
155
+ relator: Math.min(o, t),
156
+ adjuster: m.value,
157
+ source: e.value.style.chart.layout.pointer.strokeWidth,
158
+ threshold: 2,
159
+ fallback: 2
160
+ }), l.value.markerOffset = q({
161
+ relator: Math.max(o, t),
162
+ adjuster: m.value,
163
+ source: e.value.style.chart.layout.markers.offsetY + 3,
164
+ threshold: 2,
165
+ fallback: 2
166
+ }), l.value.segmentFontSize = q({
167
+ relator: Math.min(o, t),
168
+ adjuster: m.value,
169
+ source: e.value.style.chart.layout.segmentNames.fontSize,
170
+ threshold: 8,
171
+ fallback: 8
172
+ });
173
+ });
174
+ X.value = new ResizeObserver(a), X.value.observe($.value.parentNode);
175
+ }
176
+ }
177
+ Pe(() => {
178
+ ue();
179
+ }), Ne(() => {
180
+ X.value && X.value.disconnect();
181
+ });
182
+ function ne(a) {
183
+ const o = [];
184
+ (w.value.series || []).forEach((p) => {
185
+ o.push(p.from || 0), o.push(p.to || 0);
186
+ }), C.value = Math.max(...o), M.value = Math.min(...o);
187
+ let t = e.value.style.chart.animation.speed;
188
+ const u = Math.abs(a - f.value) / (t * 60);
189
+ function b() {
190
+ f.value < a ? f.value = Math.min(f.value + u, a) : f.value > a && (f.value = Math.max(f.value - u, a)), f.value !== a && requestAnimationFrame(b);
191
+ }
192
+ b();
193
+ }
194
+ const n = y(() => {
195
+ const a = e.value.responsive ? Math.min(l.value.width, l.value.height) : l.value.width;
196
+ return {
197
+ arcs: a / 2.5,
198
+ gradients: a / 2.75,
199
+ base: e.value.responsive ? l.value.height / 2 : l.value.height * 0.7,
200
+ ratingBase: e.value.responsive ? l.value.height / 2 + l.value.height / 4 : l.value.height * 0.9,
201
+ pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
202
+ };
203
+ }), _ = y(() => U(
204
+ { series: w.value.series },
205
+ l.value.width / 2,
206
+ n.value.base,
207
+ n.value.arcs,
208
+ n.value.arcs,
209
+ 1,
210
+ 1,
211
+ 1,
212
+ 180,
213
+ 109.9495,
214
+ 40 * l.value.trackSize
215
+ )), _e = y(() => U(
216
+ { series: w.value.series },
217
+ l.value.width / 2,
218
+ n.value.base,
219
+ n.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
220
+ n.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
221
+ 1,
222
+ 1,
223
+ 1,
224
+ 180,
225
+ 109.9495,
226
+ 40 * l.value.trackSize
227
+ )), S = y(() => n.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio);
228
+ function xe(a) {
229
+ if (a.reduce((b, p) => b + p, 0) > 100)
230
+ throw new Error("Total % must not exceed 100");
231
+ const t = 50;
232
+ let u = 0;
233
+ return a.map((b) => (u += b, `${u / 100 * t - b / 4}%`));
234
+ }
235
+ const we = y(() => xe(_.value.map((a) => a.proportion * 100))), Se = y(() => U(
236
+ { series: w.value.series },
237
+ l.value.width / 2,
238
+ n.value.base,
239
+ n.value.gradients,
240
+ n.value.gradients,
241
+ 0.95,
242
+ 1,
243
+ 1,
244
+ 180,
245
+ 110.02,
246
+ 2 * l.value.trackSize
247
+ )), P = d(!1);
248
+ function ze(a) {
249
+ P.value = a, H.value += 1;
250
+ }
251
+ const A = d(!1);
252
+ function j() {
253
+ A.value = !A.value;
254
+ }
255
+ return me({
256
+ generatePdf: oe,
257
+ generateImage: se,
258
+ toggleAnnotator: j
259
+ }), (a, o) => (s(), r("div", {
260
+ class: ce(`vue-ui-gauge ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
261
+ ref_key: "gaugeChart",
262
+ ref: $,
263
+ id: `vue-ui-gauge_${k.value}`,
264
+ style: ve(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
265
+ }, [
266
+ e.value.userOptions.buttons.annotator ? (s(), Y(He, {
267
+ key: 0,
268
+ parent: $.value,
269
+ backgroundColor: e.value.style.chart.backgroundColor,
270
+ color: e.value.style.chart.color,
271
+ active: A.value,
272
+ onClose: j
273
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
274
+ ke.value ? (s(), r("div", {
275
+ key: 1,
276
+ ref_key: "noTitle",
277
+ ref: Q,
278
+ class: "vue-data-ui-no-title-space",
279
+ style: "height:36px; width: 100%;background:transparent"
280
+ }, null, 512)) : v("", !0),
281
+ e.value.style.chart.title.text ? (s(), r("div", {
282
+ key: 2,
283
+ ref_key: "chartTitle",
284
+ ref: Z,
285
+ style: "width:100%;background:transparent;padding-bottom:12px"
286
+ }, [
287
+ (s(), Y(Ve, {
288
+ key: `title_${ee.value}`,
289
+ config: {
290
+ title: {
291
+ cy: "gauge-div-title",
292
+ ...e.value.style.chart.title
293
+ },
294
+ subtitle: {
295
+ cy: "gauge-div-subtitle",
296
+ ...e.value.style.chart.title.subtitle
297
+ }
298
+ }
299
+ }, {
300
+ default: N(() => [
301
+ e.value.translations.base && E.dataset.base ? (s(), r("span", Ke, z(e.value.translations.base) + ": " + z(E.dataset.base), 1)) : v("", !0)
302
+ ]),
303
+ _: 1
304
+ }, 8, ["config"]))
305
+ ], 512)) : v("", !0),
306
+ e.value.userOptions.show && I.value ? (s(), Y(Be, {
307
+ ref_key: "details",
308
+ ref: pe,
309
+ key: `user_options_${H.value}`,
310
+ backgroundColor: e.value.style.chart.backgroundColor,
311
+ color: e.value.style.chart.color,
312
+ isImaging: i(le),
313
+ isPrinting: i(ae),
314
+ uid: k.value,
315
+ hasXls: !1,
316
+ hasPdf: e.value.userOptions.buttons.pdf,
317
+ hasImg: e.value.userOptions.buttons.img,
318
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
319
+ isFullscreen: P.value,
320
+ titles: { ...e.value.userOptions.buttonTitles },
321
+ chartElement: $.value,
322
+ position: e.value.userOptions.position,
323
+ hasAnnotator: e.value.userOptions.buttons.annotator,
324
+ isAnnotation: A.value,
325
+ onToggleFullscreen: ze,
326
+ onGeneratePdf: i(oe),
327
+ onGenerateImage: i(se),
328
+ onToggleAnnotator: j
329
+ }, Oe({ _: 2 }, [
330
+ a.$slots.optionPdf ? {
331
+ name: "optionPdf",
332
+ fn: N(() => [
333
+ x(a.$slots, "optionPdf", {}, void 0, !0)
334
+ ]),
335
+ key: "0"
336
+ } : void 0,
337
+ a.$slots.optionImg ? {
338
+ name: "optionImg",
339
+ fn: N(() => [
340
+ x(a.$slots, "optionImg", {}, void 0, !0)
341
+ ]),
342
+ key: "1"
343
+ } : void 0,
344
+ a.$slots.optionFullscreen ? {
345
+ name: "optionFullscreen",
346
+ fn: N(({ toggleFullscreen: t, isFullscreen: u }) => [
347
+ x(a.$slots, "optionFullscreen", L(D({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
348
+ ]),
349
+ key: "2"
350
+ } : void 0,
351
+ a.$slots.optionAnnotator ? {
352
+ name: "optionAnnotator",
353
+ fn: N(({ toggleAnnotator: t, isAnnotator: u }) => [
354
+ x(a.$slots, "optionAnnotator", L(D({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
355
+ ]),
356
+ key: "3"
357
+ } : void 0
358
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
359
+ I.value ? (s(), r("svg", {
360
+ key: 4,
361
+ xmlns: i(Te),
362
+ class: ce({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
363
+ viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
364
+ style: ve(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
365
+ }, [
366
+ Ie(qe),
367
+ g("defs", null, [
368
+ g("radialGradient", {
369
+ id: `gradient_${k.value}`,
370
+ cx: "50%",
371
+ cy: "50%",
372
+ r: "50%",
373
+ fx: "50%",
374
+ fy: "50%"
375
+ }, [
376
+ g("stop", {
377
+ offset: "0%",
378
+ "stop-color": i(B)("#FFFFFF", 1)
379
+ }, null, 8, tt),
380
+ g("stop", {
381
+ offset: "80%",
382
+ "stop-color": i(B)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
383
+ }, null, 8, at),
384
+ g("stop", {
385
+ offset: "100%",
386
+ "stop-color": i(B)("#FFFFFF", 1)
387
+ }, null, 8, lt)
388
+ ], 8, et)
389
+ ]),
390
+ g("defs", null, [
391
+ g("filter", {
392
+ id: `blur_${k.value}`,
393
+ x: "-50%",
394
+ y: "-50%",
395
+ width: "200%",
396
+ height: "200%"
397
+ }, [
398
+ g("feGaussianBlur", {
399
+ in: "SourceGraphic",
400
+ stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
401
+ }, null, 8, st)
402
+ ], 8, ot)
403
+ ]),
404
+ (s(!0), r(F, null, O(_.value, (t, u) => (s(), r("path", {
405
+ key: `arc_${u}`,
406
+ d: t.arcSlice,
407
+ fill: t.color,
408
+ stroke: e.value.style.chart.backgroundColor,
409
+ "stroke-linecap": "round"
410
+ }, null, 8, rt))), 128)),
411
+ e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), r(F, { key: 0 }, [
412
+ g("path", {
413
+ id: `curve_${k.value}`,
414
+ d: `M ${h.value.x1},${h.value.y1} m -${S.value},0 a ${S.value},${S.value} 0 1,1 ${2 * S.value},0 a ${S.value},${S.value} 0 1,1 -${2 * S.value},0`,
415
+ fill: "transparent"
416
+ }, null, 8, ut),
417
+ (s(!0), r(F, null, O(_.value, (t, u) => (s(), r("text", {
418
+ fill: e.value.style.chart.layout.segmentNames.useSerieColor ? t.color : e.value.style.chart.layout.segmentNames.color,
419
+ "font-size": l.value.segmentFontSize,
420
+ "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
421
+ "text-anchor": "middle"
422
+ }, [
423
+ g("textPath", {
424
+ href: `#curve_${k.value}`,
425
+ startOffset: we.value[u]
426
+ }, z(t.name || ""), 9, it)
427
+ ], 8, nt))), 256))
428
+ ], 64)) : v("", !0),
429
+ e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), r(F, { key: 1 }, O(_e.value, (t, u) => (s(), r("text", {
430
+ x: t.center.endX,
431
+ y: t.center.endY,
432
+ "text-anchor": i(je)(t, !1, 12).anchor,
433
+ fill: e.value.style.chart.layout.segmentNames.useSerieColor ? t.color : e.value.style.chart.layout.segmentNames.color,
434
+ "font-size": l.value.segmentFontSize,
435
+ "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
436
+ }, z(t.name || ""), 9, ct))), 256)) : v("", !0),
437
+ e.value.style.chart.layout.track.useGradient ? (s(!0), r(F, { key: 2 }, O(Se.value, (t, u) => (s(), r("path", {
438
+ key: `arc_${u}`,
439
+ d: t.arcSlice,
440
+ fill: "#FFFFFF",
441
+ stroke: "none",
442
+ "stroke-linecap": "round",
443
+ filter: `url(#blur_${k.value})`
444
+ }, null, 8, vt))), 128)) : v("", !0),
445
+ e.value.style.chart.layout.markers.show ? (s(), r("g", ht, [
446
+ (s(!0), r(F, null, O(_.value, (t, u) => (s(), r("text", {
447
+ x: i(G)({
448
+ centerX: l.value.width / 2,
449
+ centerY: n.value.base,
450
+ initX: t.center.startX,
451
+ initY: t.center.startY,
452
+ offset: l.value.markerOffset
453
+ }).x,
454
+ y: i(G)({
455
+ centerX: l.value.width / 2,
456
+ centerY: n.value.base,
457
+ initX: t.center.startX,
458
+ initY: t.center.startY,
459
+ offset: l.value.markerOffset
460
+ }).y,
461
+ "text-anchor": t.center.startX < l.value.width / 2 - 5 ? "end" : t.center.startX > l.value.width / 2 + 5 ? "start" : "middle",
462
+ "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
463
+ "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
464
+ fill: e.value.style.chart.layout.markers.color
465
+ }, z(i(W)(
466
+ e.value.style.chart.layout.markers.formatter,
467
+ t.from,
468
+ i(V)({
469
+ p: e.value.style.chart.layout.markers.prefix,
470
+ v: t.from,
471
+ s: e.value.style.chart.layout.markers.suffix,
472
+ r: e.value.style.chart.layout.markers.roundingValue
473
+ })
474
+ )), 9, dt))), 256))
475
+ ])) : v("", !0),
476
+ e.value.style.chart.layout.markers.show ? (s(), r("text", {
477
+ key: 4,
478
+ x: i(G)({
479
+ centerX: l.value.width / 2,
480
+ centerY: n.value.base,
481
+ initX: _.value.at(-1).endX,
482
+ initY: _.value.at(-1).endY,
483
+ offset: l.value.markerOffset
484
+ }).x,
485
+ y: i(G)({
486
+ centerX: l.value.width / 2,
487
+ centerY: n.value.base,
488
+ initX: _.value.at(-1).endX,
489
+ initY: _.value.at(-1).endY,
490
+ offset: l.value.markerOffset
491
+ }).y,
492
+ "text-anchor": "start",
493
+ "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
494
+ "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
495
+ fill: e.value.style.chart.layout.markers.color
496
+ }, z(i(W)(
497
+ e.value.style.chart.layout.markers.formatter,
498
+ C.value,
499
+ i(V)({
500
+ p: e.value.style.chart.layout.markers.prefix,
501
+ v: C.value,
502
+ s: e.value.style.chart.layout.markers.suffix,
503
+ r: e.value.style.chart.layout.markers.roundingValue
504
+ })
505
+ )), 9, ft)) : v("", !0),
506
+ e.value.style.chart.layout.pointer.type === "rounded" ? (s(), r("g", yt, [
507
+ isNaN(h.value.x2) ? v("", !0) : (s(), r("line", {
508
+ key: 0,
509
+ x1: h.value.x1,
510
+ y1: h.value.y1,
511
+ x2: h.value.x2,
512
+ y2: h.value.y2,
513
+ stroke: e.value.style.chart.layout.pointer.stroke,
514
+ "stroke-width": l.value.pointerStrokeWidth,
515
+ "stroke-linecap": "round"
516
+ }, null, 8, mt)),
517
+ isNaN(h.value.x2) ? v("", !0) : (s(), r("line", {
518
+ key: 1,
519
+ x1: h.value.x1,
520
+ y1: h.value.y1,
521
+ x2: h.value.x2,
522
+ y2: h.value.y2,
523
+ stroke: e.value.style.chart.layout.pointer.useRatingColor ? T.value : e.value.style.chart.layout.pointer.color,
524
+ "stroke-linecap": "round",
525
+ "stroke-width": l.value.pointerStrokeWidth * 0.7
526
+ }, null, 8, gt)),
527
+ !isNaN(h.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), r("line", {
528
+ key: 2,
529
+ x1: h.value.x1,
530
+ y1: h.value.y1,
531
+ x2: h.value.x2,
532
+ y2: h.value.y2,
533
+ stroke: "white",
534
+ "stroke-linecap": "round",
535
+ "stroke-width": l.value.pointerStrokeWidth * 0.3,
536
+ filter: `url(#blur_${k.value})`
537
+ }, null, 8, pt)) : v("", !0)
538
+ ])) : (s(), r("g", kt, [
539
+ re.value ? (s(), r("path", {
540
+ key: 0,
541
+ d: re.value,
542
+ fill: e.value.style.chart.layout.pointer.useRatingColor ? T.value : e.value.style.chart.layout.pointer.color,
543
+ stroke: e.value.style.chart.layout.pointer.stroke,
544
+ "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
545
+ "stroke-linejoin": "round"
546
+ }, null, 8, bt)) : v("", !0)
547
+ ])),
548
+ g("circle", {
549
+ cx: l.value.width / 2,
550
+ cy: n.value.base,
551
+ fill: e.value.style.chart.layout.pointer.circle.color,
552
+ r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
553
+ "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
554
+ stroke: e.value.style.chart.layout.pointer.circle.stroke
555
+ }, null, 8, _t),
556
+ e.value.style.chart.legend.show ? (s(), r("text", {
557
+ key: 7,
558
+ x: l.value.width / 2,
559
+ y: n.value.ratingBase,
560
+ "text-anchor": "middle",
561
+ "font-size": l.value.legendFontSize,
562
+ "font-weight": "bold",
563
+ fill: e.value.style.chart.legend.useRatingColor ? T.value : e.value.style.chart.legend.color
564
+ }, z(i(W)(
565
+ e.value.style.chart.legend.formatter,
566
+ f.value,
567
+ i(V)({
568
+ p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && f.value > 0 ? "+" : ""),
569
+ v: f.value,
570
+ s: e.value.style.chart.legend.suffix,
571
+ r: e.value.style.chart.legend.roundingValue
572
+ })
573
+ )), 9, xt)) : v("", !0),
574
+ x(a.$slots, "svg", { svg: l.value }, void 0, !0)
575
+ ], 14, Qe)) : v("", !0),
576
+ a.$slots.watermark ? (s(), r("div", wt, [
577
+ x(a.$slots, "watermark", L(D({ isPrinting: i(ae) || i(le) })), void 0, !0)
578
+ ])) : v("", !0),
579
+ I.value ? v("", !0) : (s(), Y(We, {
580
+ key: 6,
581
+ config: {
582
+ type: "gauge",
583
+ style: {
584
+ backgroundColor: e.value.style.chart.backgroundColor,
585
+ gauge: {
586
+ color: "#CCCCCC"
587
+ }
588
+ }
589
+ }
590
+ }, null, 8, ["config"])),
591
+ g("div", {
592
+ ref_key: "chartLegend",
593
+ ref: J
594
+ }, [
595
+ x(a.$slots, "legend", { legend: w.value }, void 0, !0)
596
+ ], 512),
597
+ a.$slots.source ? (s(), r("div", {
598
+ key: 7,
599
+ ref_key: "source",
600
+ ref: K,
601
+ dir: "auto"
602
+ }, [
603
+ x(a.$slots, "source", {}, void 0, !0)
604
+ ], 512)) : v("", !0)
605
+ ], 14, Je));
606
+ }
607
+ }, At = /* @__PURE__ */ Ze(St, [["__scopeId", "data-v-e228171b"]]);
608
+ export {
609
+ At as default
610
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DuDeHJyK.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),T=require("./usePrinter-ardO_DNo.cjs"),ne=require("./vue-ui-skeleton-DleyAXe1.cjs"),se=require("./Title-DkbnpMvf.cjs"),j=require("./useNestedProp-zkJOoemW.cjs"),ue=require("./PackageVersion-1JWV5loe.cjs"),ie=require("./PenAndPaper-C6mnwE-L.cjs"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ve=["id"],de={key:0},he=["xmlns","viewBox"],fe=["id"],me=["stop-color"],ye=["stop-color"],pe=["stop-color"],ge=["id"],ke=["stdDeviation"],be=["d","fill","stroke"],_e=["id","d"],xe=["fill","font-size","font-weight"],we=["href","startOffset"],Se=["x","y","text-anchor","fill","font-size","font-weight"],Ce=["d","filter"],Ne={key:3},Be=["x","y","text-anchor","font-size","font-weight","fill"],ze=["x","y","font-size","font-weight","fill"],Fe={key:5},Pe=["x1","y1","x2","y2","stroke","stroke-width"],Ee=["x1","y1","x2","y2","stroke","stroke-width"],$e=["x1","y1","x2","y2","stroke-width","filter"],Me={key:6},Oe=["d","fill","stroke","stroke-width"],Ve=["cx","cy","fill","r","stroke-width","stroke"],Ie=["x","y","font-size","fill"],Ae={key:5,class:"vue-data-ui-watermark"},Xe={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(N,{expose:q}){const i=N,{vue_ui_gauge:U}=r.useConfig(),w=e.computed(()=>!!i.dataset&&Object.keys(i.dataset).length>0&&i.dataset.series&&i.dataset.series.length),f=e.ref(r.createUid()),W=e.ref(null),F=e.ref(0),k=e.ref(null),P=e.ref(null),E=e.ref(null),$=e.ref(null),M=e.ref(null),O=e.ref(0),t=e.computed({get:()=>V(),set:l=>l});e.watch(()=>i.config,l=>{t.value=V(),Y(),O.value+=1},{deep:!0});function V(){const l=j.useNestedProp({userConfig:i.config,defaultConfig:U});return l.theme?{...j.useNestedProp({userConfig:r.themes.vue_ui_gauge[l.theme]||i.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}const{isPrinting:I,isImaging:A,generatePdf:X,generateImage:R}=T.usePrinter({elementId:`vue-ui-gauge_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),H=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Z=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),p=e.computed(()=>{if(!w.value||r.objectIsEmpty(i.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const l=[];(i.dataset.series||[]).forEach(a=>{l.push(a.from||1e-7),l.push(a.to||1e-7)});const n=Math.max(...l);return{...i.dataset,series:(i.dataset.series||[]).map((a,s)=>({...a,color:r.convertColorToHex(a.color)||Z.value[s]||r.palette[s],value:((a.to||0)-(a.from||0))/n*100}))}}),d=e.ref(512),o=e.ref({height:358.4,width:d.value,top:0,bottom:358.4,centerX:179.2,centerY:d.value/2,labelFontSize:18,legendFontSize:t.value.style.chart.legend.fontSize,pointerRadius:t.value.style.chart.layout.pointer.circle.radius,trackSize:t.value.style.chart.layout.track.size,pointerSize:t.value.style.chart.layout.pointer.size,pointerStrokeWidth:t.value.style.chart.layout.pointer.strokeWidth,markerOffset:t.value.style.chart.layout.markers.offsetY+3,segmentFontSize:t.value.style.chart.layout.segmentNames.fontSize}),b=e.ref(0),_=e.ref(0),v=e.ref(t.value.style.chart.animation.use?0:i.dataset.value);e.watch(()=>i.dataset.value,()=>{L(i.dataset.value)});const c=e.computed(()=>{const l=o.value.width/2,n=u.value.base,a=Math.PI*((v.value+0-_.value)/(b.value-_.value))+Math.PI;return{x1:l,y1:n,x2:l+u.value.pointerSize*o.value.pointerSize*.9*Math.cos(a),y2:n+u.value.pointerSize*o.value.pointerSize*.9*Math.sin(a)}}),D=e.computed(()=>{const l=o.value.width/2,n=u.value.base,a=Math.PI*((v.value+0-_.value)/(b.value-_.value))+Math.PI,s=l+u.value.pointerSize*o.value.pointerSize*.9*Math.cos(a),m=n+u.value.pointerSize*o.value.pointerSize*.9*Math.sin(a),h=o.value.pointerRadius,ae=l+h*Math.cos(a+Math.PI/2),le=n+h*Math.sin(a+Math.PI/2),oe=l+h*Math.cos(a-Math.PI/2),re=n+h*Math.sin(a-Math.PI/2);return isNaN(s)?null:`M ${s},${m} ${ae},${le} ${oe},${re} Z`}),B=e.computed(()=>{for(let l=0;l<p.value.series.length;l+=1){const{color:n,from:a,to:s}=p.value.series[l];if(v.value>=a&&v.value<=s)return n}return"#2D353C"}),S=e.ref(null);function Y(){if(r.objectIsEmpty(i.dataset)?r.error({componentName:"VueUiGauge",type:"dataset"}):(r.getMissingDatasetAttributes({datasetObject:i.dataset,requiredAttributes:["value","series"]}).forEach(l=>{r.error({componentName:"VueUiGauge",type:"datasetAttribute",property:l})}),Object.hasOwn(i.dataset,"series")&&(i.dataset.series.length?i.dataset.series.forEach((l,n)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["from","to"]}).forEach(a=>{r.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:a,index:n})})}):r.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),L(i.dataset.value||0),t.value.responsive){const l=G.throttle(()=>{const{width:n,height:a}=G.useResponsive({chart:k.value,title:t.value.style.chart.title.text?P.value:null,legend:E.value,source:$.value,noTitle:M.value});o.value.width=n,o.value.height=a,o.value.centerX=n/2,o.value.centerY=d.value/2/358.4*a,o.value.bottom=a,o.value.labelFontSize=18/d.value*Math.min(a,n)<10?10:18/d.value*Math.min(a,n),o.value.legendFontSize=t.value.style.chart.legend.fontSize/d.value*Math.min(a,n)<14?14:t.value.style.chart.legend.fontSize/d.value*Math.min(a,n),o.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/d.value*Math.min(a,n),o.value.trackSize=t.value.style.chart.layout.track.size/d.value*Math.min(a,n),o.value.pointerStrokeWidth=r.translateSize({relator:Math.min(n,a),adjuster:d.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),o.value.markerOffset=r.translateSize({relator:Math.max(n,a),adjuster:d.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2}),o.value.segmentFontSize=r.translateSize({relator:Math.min(n,a),adjuster:d.value,source:t.value.style.chart.layout.segmentNames.fontSize,threshold:8,fallback:8})});S.value=new ResizeObserver(l),S.value.observe(k.value.parentNode)}}e.onMounted(()=>{Y()}),e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});function L(l){const n=[];(p.value.series||[]).forEach(h=>{n.push(h.from||0),n.push(h.to||0)}),b.value=Math.max(...n),_.value=Math.min(...n);let a=t.value.style.chart.animation.speed;const s=Math.abs(l-v.value)/(a*60);function m(){v.value<l?v.value=Math.min(v.value+s,l):v.value>l&&(v.value=Math.max(v.value-s,l)),v.value!==l&&requestAnimationFrame(m)}m()}const u=e.computed(()=>{const l=t.value.responsive?Math.min(o.value.width,o.value.height):o.value.width;return{arcs:l/2.5,gradients:l/2.75,base:t.value.responsive?o.value.height/2:o.value.height*.7,ratingBase:t.value.responsive?o.value.height/2+o.value.height/4:o.value.height*.9,pointerSize:t.value.responsive?Math.min(o.value.width,o.value.height)/3:o.value.width/3.2}}),y=e.computed(()=>r.makeDonut({series:p.value.series},o.value.width/2,u.value.base,u.value.arcs,u.value.arcs,1,1,1,180,109.9495,40*o.value.trackSize)),J=e.computed(()=>r.makeDonut({series:p.value.series},o.value.width/2,u.value.base,u.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,u.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,1,1,1,180,109.9495,40*o.value.trackSize)),g=e.computed(()=>u.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio);function K(l){if(l.reduce((m,h)=>m+h,0)>100)throw new Error("Total % must not exceed 100");const a=50;let s=0;return l.map(m=>(s+=m,`${s/100*a-m/4}%`))}const Q=e.computed(()=>K(y.value.map(l=>l.proportion*100))),ee=e.computed(()=>r.makeDonut({series:p.value.series},o.value.width/2,u.value.base,u.value.gradients,u.value.gradients,.95,1,1,180,110.02,2*o.value.trackSize)),x=e.ref(!1);function te(l){x.value=l,F.value+=1}const C=e.ref(!1);function z(){C.value=!C.value}return q({generatePdf:X,generateImage:R,toggleAnnotator:z}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${x.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:k,id:`vue-ui-gauge_${f.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ie.PenAndPaper,{key:0,parent:k.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:C.value,onClose:z},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),H.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:P,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(se._sfc_main,{key:`title_${O.value}`,config:{title:{cy:"gauge-div-title",...t.value.style.chart.title},subtitle:{cy:"gauge-div-subtitle",...t.value.style.chart.title.subtitle}}},{default:e.withCtx(()=>[t.value.translations.base&&N.dataset.base?(e.openBlock(),e.createElementBlock("span",de,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(N.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&w.value?(e.openBlock(),e.createBlock(T.UserOptions,{ref_key:"details",ref:W,key:`user_options_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(A),isPrinting:e.unref(I),uid:f.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:x.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:C.value,onToggleFullscreen:te,onGeneratePdf:e.unref(X),onGenerateImage:e.unref(R),onToggleAnnotator:z},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:s})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:s})),void 0,!0)]),key:"2"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:s})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:s})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":x.value,"vue-data-ui-fulscreen--off":!x.value}),viewBox:`0 0 ${o.value.width<=0?10:o.value.width} ${o.value.height<=0?10:o.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ue._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${f.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)("#FFFFFF",1)},null,8,me),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(r.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,ye),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)("#FFFFFF",1)},null,8,pe)],8,fe)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${f.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.track.gradientIntensity},null,8,ke)],8,ge)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(a,s)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${s}`,d:a.arcSlice,fill:a.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,be))),128)),t.value.style.chart.layout.segmentNames.show&&t.value.style.chart.layout.segmentNames.curved?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("path",{id:`curve_${f.value}`,d:`M ${c.value.x1},${c.value.y1} m -${g.value},0 a ${g.value},${g.value} 0 1,1 ${2*g.value},0 a ${g.value},${g.value} 0 1,1 -${2*g.value},0`,fill:"transparent"},null,8,_e),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(a,s)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?a.color:t.value.style.chart.layout.segmentNames.color,"font-size":o.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal","text-anchor":"middle"},[e.createElementVNode("textPath",{href:`#curve_${f.value}`,startOffset:Q.value[s]},e.toDisplayString(a.name||""),9,we)],8,xe))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&!t.value.style.chart.layout.segmentNames.curved?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(J.value,(a,s)=>(e.openBlock(),e.createElementBlock("text",{x:a.center.endX,y:a.center.endY,"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!1,12).anchor,fill:t.value.style.chart.layout.segmentNames.useSerieColor?a.color:t.value.style.chart.layout.segmentNames.color,"font-size":o.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal"},e.toDisplayString(a.name||""),9,Se))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(ee.value,(a,s)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${s}`,d:a.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${f.value})`},null,8,Ce))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(a,s)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(r.offsetFromCenterPoint)({centerX:o.value.width/2,centerY:u.value.base,initX:a.center.startX,initY:a.center.startY,offset:o.value.markerOffset}).x,y:e.unref(r.offsetFromCenterPoint)({centerX:o.value.width/2,centerY:u.value.base,initX:a.center.startX,initY:a.center.startY,offset:o.value.markerOffset}).y,"text-anchor":a.center.startX<o.value.width/2-5?"end":a.center.startX>o.value.width/2+5?"start":"middle","font-size":o.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.markers.formatter,a.from,e.unref(r.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:a.from,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Be))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:e.unref(r.offsetFromCenterPoint)({centerX:o.value.width/2,centerY:u.value.base,initX:y.value.at(-1).endX,initY:y.value.at(-1).endY,offset:o.value.markerOffset}).x,y:e.unref(r.offsetFromCenterPoint)({centerX:o.value.width/2,centerY:u.value.base,initX:y.value.at(-1).endX,initY:y.value.at(-1).endY,offset:o.value.markerOffset}).y,"text-anchor":"start","font-size":o.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.markers.formatter,b.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:b.value,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,ze)):e.createCommentVNode("",!0),t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",Fe,[isNaN(c.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:c.value.x1,y1:c.value.y1,x2:c.value.x2,y2:c.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":o.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,Pe)),isNaN(c.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:c.value.x1,y1:c.value.y1,x2:c.value.x2,y2:c.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?B.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":o.value.pointerStrokeWidth*.7},null,8,Ee)),!isNaN(c.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:c.value.x1,y1:c.value.y1,x2:c.value.x2,y2:c.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":o.value.pointerStrokeWidth*.3,filter:`url(#blur_${f.value})`},null,8,$e)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",Me,[D.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:D.value,fill:t.value.style.chart.layout.pointer.useRatingColor?B.value:t.value.style.chart.layout.pointer.color,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,"stroke-linejoin":"round"},null,8,Oe)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:o.value.width/2,cy:u.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:o.value.pointerRadius<=0?1e-4:o.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,Ve),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:7,x:o.value.width/2,y:u.value.ratingBase,"text-anchor":"middle","font-size":o.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?B.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.legend.formatter,v.value,e.unref(r.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&v.value>0?"+":""),v:v.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,Ie)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:o.value},void 0,!0)],14,he)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(I)||e.unref(A)})),void 0,!0)])):e.createCommentVNode("",!0),w.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ne.default,{key:6,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:E},[e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:$,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],14,ve))}},Re=ce._export_sfc(Xe,[["__scopeId","data-v-e228171b"]]);exports.default=Re;
@@ -1,7 +1,7 @@
1
1
  import { ref as x, onMounted as C, computed as c, watch as z, openBlock as a, createElementBlock as s, normalizeStyle as G, createVNode as L, createElementVNode as t, createCommentVNode as r, Fragment as g, toDisplayString as y, unref as d } from "vue";
2
- import { u as b, c as N, e as $, i as p, f as m } from "./index-D3_dyp9t.js";
3
- import { u as F } from "./useNestedProp-qwG6HgrL.js";
4
- import { _ as B } from "./PackageVersion-2fR7Awu1.js";
2
+ import { u as b, c as N, e as $, i as p, f as m } from "./index-Cm2_6s9o.js";
3
+ import { u as F } from "./useNestedProp-BYPZJNhi.js";
4
+ import { _ as B } from "./PackageVersion-CTMY4zeY.js";
5
5
  const P = ["viewBox", "width"], V = { key: 0 }, D = ["id"], I = ["stop-color"], M = ["stop-color"], U = ["stroke"], E = ["stroke"], O = ["width", "fill"], S = ["fill"], A = { key: 0 }, j = ["id"], T = /* @__PURE__ */ t("feGaussianBlur", {
6
6
  in: "SourceGraphic",
7
7
  stdDeviation: 1