vue-data-ui 2.4.45 → 2.4.47

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-DExBMFtJ.js → Arrow-C-PQX3ZC.js} +1 -1
  2. package/dist/{Arrow-dxEccWUa.cjs → Arrow-C3u-U00V.cjs} +1 -1
  3. package/dist/{BaseIcon-DUokibJ1.cjs → BaseIcon-8y_okNW6.cjs} +1 -1
  4. package/dist/{BaseIcon-DpLJi6ci.js → BaseIcon-BeAMtwQX.js} +1 -1
  5. package/dist/{DataTable-aoauqoko.cjs → DataTable-CfxOc-In.cjs} +1 -1
  6. package/dist/{DataTable-NGi-FgLM.js → DataTable-D7JlgAbC.js} +2 -2
  7. package/dist/{Legend-DRozxv9L.js → Legend-CEhIHRJc.js} +1 -1
  8. package/dist/{Legend-DHE2CFkm.cjs → Legend-DDuxh17p.cjs} +1 -1
  9. package/dist/{PackageVersion-CTMY4zeY.js → PackageVersion-8Ql1gdmo.js} +1 -1
  10. package/dist/{PackageVersion-1JWV5loe.cjs → PackageVersion-Df1iPzMk.cjs} +1 -1
  11. package/dist/{PenAndPaper-C6mnwE-L.cjs → PenAndPaper-CvGft3ku.cjs} +1 -1
  12. package/dist/{PenAndPaper-DJ_d10S-.js → PenAndPaper-b1ZmLra1.js} +3 -3
  13. package/dist/{Shape-C-sY_hlc.js → Shape-CvBLjLSE.js} +1 -1
  14. package/dist/{Shape-rA2az7tR.cjs → Shape-D3F3Ki5y.cjs} +1 -1
  15. package/dist/{Slicer-CJsmloDN.cjs → Slicer-CHKuuOOo.cjs} +1 -1
  16. package/dist/{Slicer-D4SO7odF.js → Slicer-CRXNOGCh.js} +2 -2
  17. package/dist/{Title-DkbnpMvf.cjs → Title-URF9hufV.cjs} +1 -1
  18. package/dist/{Title-Coit3NcT.js → Title-_dfoh5WC.js} +1 -1
  19. package/dist/{Tooltip-B8L4NDsX.cjs → Tooltip-87gbw8Ir.cjs} +1 -1
  20. package/dist/{Tooltip-BBgfUr4a.js → Tooltip-CAkj2Rmy.js} +1 -1
  21. package/dist/{index-Cm2_6s9o.js → index-BUHajhqq.js} +42 -26
  22. package/dist/index-KYU_8xrX.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +9 -0
  25. package/dist/types/vue-data-ui.d.ts +9 -0
  26. package/dist/{useNestedProp-zkJOoemW.cjs → useNestedProp-C-g0SLHN.cjs} +1 -1
  27. package/dist/{useNestedProp-BYPZJNhi.js → useNestedProp-a0uhe7rJ.js} +1 -1
  28. package/dist/{usePrinter-ardO_DNo.cjs → usePrinter-4Zj_RZ5v.cjs} +1 -1
  29. package/dist/{usePrinter-Cx8U1e30.js → usePrinter-DLHRtlhI.js} +1 -1
  30. package/dist/{vue-data-ui-B8Lvjc4V.cjs → vue-data-ui-CPc7dZQe.cjs} +1 -1
  31. package/dist/{vue-data-ui-Blpxr4_M.js → vue-data-ui-zjfs-rk-.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-DvitE1K_.js → vue-ui-3d-bar-B60j7yco.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-CqmOoIA2.cjs → vue-ui-3d-bar-zI1BF0gA.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-CxrNF8BI.js → vue-ui-accordion-2QOotHrr.js} +3 -3
  37. package/dist/{vue-ui-accordion-JS5d0ZPi.cjs → vue-ui-accordion-C0oMKEv0.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-Ti2L5N92.js → vue-ui-age-pyramid-BT7HUZpj.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-CRP36JDm.cjs → vue-ui-age-pyramid-hZLKWqN9.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-DtL3BbOJ.cjs → vue-ui-annotator-Da8-IgfK.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-HNK_5tWo.js → vue-ui-annotator-ZpGqgGMp.js} +1 -1
  42. package/dist/{vue-ui-bullet-DEUwbTdx.cjs → vue-ui-bullet-BfkujrD0.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-D3WmBrm4.js → vue-ui-bullet-Da56_P30.js} +8 -8
  44. package/dist/{vue-ui-candlestick-B5okP_Jf.js → vue-ui-candlestick-CblCXKhS.js} +11 -11
  45. package/dist/{vue-ui-candlestick-C5bTH9oE.cjs → vue-ui-candlestick-fM3nUsgr.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-BgKL0rnF.js → vue-ui-carousel-table-B1U41lku.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-Bt2xx2b5.cjs → vue-ui-carousel-table-D3rcSdcC.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-DDsFxoUr.js → vue-ui-chestnut-Cnvf2Aav.js} +8 -8
  49. package/dist/{vue-ui-chestnut-D5XfSvCG.cjs → vue-ui-chestnut-CtMm9Hev.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-CSBJgZLu.cjs → vue-ui-cursor-C-7zi0ol.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-B2NOd5i-.js → vue-ui-cursor-TzS0sCy1.js} +2 -2
  52. package/dist/{vue-ui-dashboard-u-Gt08KE.js → vue-ui-dashboard-Ajvddjlt.js} +2 -2
  53. package/dist/{vue-ui-dashboard-C6MJN9kG.cjs → vue-ui-dashboard-DdMkGnE7.cjs} +1 -1
  54. package/dist/{vue-ui-digits-DCXyjW_e.js → vue-ui-digits-CBPttkF2.js} +2 -2
  55. package/dist/{vue-ui-digits-B4fzfTox.cjs → vue-ui-digits-DwB-tHKl.cjs} +1 -1
  56. package/dist/{vue-ui-donut-CaJSY2gj.cjs → vue-ui-donut-Cz6xpVSC.cjs} +1 -1
  57. package/dist/{vue-ui-donut-BvASz63R.js → vue-ui-donut-DidXxdXO.js} +11 -11
  58. package/dist/{vue-ui-donut-evolution-DcPk33e8.js → vue-ui-donut-evolution-B0xdulgT.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-DrnLlHPS.cjs → vue-ui-donut-evolution-Dj73srrD.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-8v-xIlsx.cjs → vue-ui-dumbbell-BdwXaRk2.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-D918XYc8.js → vue-ui-dumbbell-Cimude8K.js} +10 -10
  62. package/dist/{vue-ui-flow-DQ5q2b1Y.js → vue-ui-flow-D2ekJwov.js} +9 -9
  63. package/dist/{vue-ui-flow-BBmnTxVE.cjs → vue-ui-flow-DMNNOEJy.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-v5WCHaw6.js → vue-ui-funnel-BsKFz_A9.js} +8 -8
  65. package/dist/{vue-ui-funnel-CmERxe4h.cjs → vue-ui-funnel-DLmzVrrA.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-8xWYo-xy.cjs → vue-ui-galaxy-CnZYKQA2.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-COSx0c89.js → vue-ui-galaxy-WAy90dGq.js} +11 -11
  68. package/dist/vue-ui-gauge-DhqOgkfq.cjs +1 -0
  69. package/dist/vue-ui-gauge-Xvk_SGCc.js +662 -0
  70. package/dist/{vue-ui-gizmo-DUO_TpvK.cjs → vue-ui-gizmo-B6qoNeBK.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-ByuFn-0N.js → vue-ui-gizmo-D-djUfJw.js} +3 -3
  72. package/dist/{vue-ui-heatmap-DiON-CAI.cjs → vue-ui-heatmap-CitZU9av.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-UoKourVZ.js → vue-ui-heatmap-jmKDOYnr.js} +10 -10
  74. package/dist/{vue-ui-history-plot-CkxvdQeV.js → vue-ui-history-plot-BoR791Gc.js} +11 -11
  75. package/dist/{vue-ui-history-plot-CjVySabp.cjs → vue-ui-history-plot-EzFdtBwU.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-BRwkUBxs.js → vue-ui-kpi-CB47PO72.js} +3 -3
  77. package/dist/{vue-ui-kpi-DYHGPjrp.cjs → vue-ui-kpi-CMXhw4Ll.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-Cbl4ydLu.js → vue-ui-mini-loader-D4dKItUb.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-oviO8Ueo.cjs → vue-ui-mini-loader-DJx2b1Hs.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-DM_mX72q.js → vue-ui-molecule-C_VM1ZP2.js} +11 -11
  81. package/dist/{vue-ui-molecule-CX1M509E.cjs → vue-ui-molecule-CnERhdxF.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-fuqAjpvg.cjs → vue-ui-mood-radar-BBlokNSE.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-Bzsba8qo.js → vue-ui-mood-radar-BESMMSxA.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-DfHtC4XP.cjs → vue-ui-nested-donuts-C0IAo5oO.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-BG84mskb.js → vue-ui-nested-donuts-r1v-A7E3.js} +11 -11
  86. package/dist/{vue-ui-onion-DpFx1Oy9.js → vue-ui-onion-CZuFxIOX.js} +11 -11
  87. package/dist/{vue-ui-onion-gt77JCbM.cjs → vue-ui-onion-PaHP7qHI.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-CQG_anr7.js → vue-ui-parallel-coordinate-plot-BeAArg3p.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-xJTddxji.cjs → vue-ui-parallel-coordinate-plot-Bwu4Q1dB.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-D0YgwhwW.cjs → vue-ui-quadrant-BLpgNZs9.cjs} +1 -1
  91. package/dist/{vue-ui-quadrant-Cddob9c3.js → vue-ui-quadrant-D5m9y_Vd.js} +12 -12
  92. package/dist/{vue-ui-quick-chart-CLzNpIFU.cjs → vue-ui-quick-chart-CZ6gBVVk.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-DTEubspa.js → vue-ui-quick-chart-Ci4RKL62.js} +9 -9
  94. package/dist/{vue-ui-radar--uexaa6p.js → vue-ui-radar-03mjX9gn.js} +12 -12
  95. package/dist/{vue-ui-radar-BTh9qZ2p.cjs → vue-ui-radar-Ca1AvJAF.cjs} +1 -1
  96. package/dist/{vue-ui-rating-BQuZA9UU.js → vue-ui-rating-CSSdVGTk.js} +2 -2
  97. package/dist/{vue-ui-rating-Dyjk2dub.cjs → vue-ui-rating-Dilq1rrJ.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-C8NYrTHA.js → vue-ui-relation-circle-B3J9KW9u.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-FtGlV4Ne.cjs → vue-ui-relation-circle-DsckG4af.cjs} +1 -1
  100. package/dist/{vue-ui-rings-ClJRYeFC.cjs → vue-ui-rings-6g022zEh.cjs} +1 -1
  101. package/dist/{vue-ui-rings-FEIPR_dS.js → vue-ui-rings-COAgson6.js} +11 -11
  102. package/dist/{vue-ui-scatter-vYxSs8Gf.cjs → vue-ui-scatter-B3t_Q_4g.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-CzbgC6ep.js → vue-ui-scatter-BrdWaLV6.js} +12 -12
  104. package/dist/{vue-ui-screenshot-IaxgY5qE.js → vue-ui-screenshot-CWMAfSH3.js} +1 -1
  105. package/dist/{vue-ui-screenshot-CVQCw0B1.cjs → vue-ui-screenshot-NpTxyR66.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-BUS6A44x.js → vue-ui-skeleton-BXPvqUO_.js} +3 -3
  107. package/dist/{vue-ui-skeleton-DleyAXe1.cjs → vue-ui-skeleton-D6mdHYxB.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-BTTXNPGY.cjs → vue-ui-smiley-BIAA0JuB.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-5CVa-rQU.js → vue-ui-smiley-TNgEIMFs.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-CZAgof3m.cjs → vue-ui-spark-trend-BWb59zfs.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-D9ww-Cv5.js → vue-ui-spark-trend-Xtb0H-Ra.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-DKeLvkHa.js → vue-ui-sparkbar-CO0RYq4S.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-BFsdfuNO.cjs → vue-ui-sparkbar-mgvNuWjK.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-B_bIpe_O.cjs → vue-ui-sparkgauge-CfgH_pIo.cjs} +1 -1
  115. package/dist/{vue-ui-sparkgauge-DLpPuJdG.js → vue-ui-sparkgauge-Cn17RyPJ.js} +4 -4
  116. package/dist/{vue-ui-sparkhistogram-RoW45LV8.cjs → vue-ui-sparkhistogram-BU1jgcm9.cjs} +1 -1
  117. package/dist/{vue-ui-sparkhistogram-BA8QV7Cu.js → vue-ui-sparkhistogram-yTF-QJCM.js} +5 -5
  118. package/dist/{vue-ui-sparkline-BggHSfaz.cjs → vue-ui-sparkline-3ym-6DFE.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-BwOtPPij.js → vue-ui-sparkline-D80w9cUt.js} +4 -4
  120. package/dist/{vue-ui-sparkstackbar-Uv_p8v9c.cjs → vue-ui-sparkstackbar-C1zVZqZh.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-DCS6RRgN.js → vue-ui-sparkstackbar-DhQNOgjS.js} +5 -5
  122. package/dist/{vue-ui-stackbar-zcfxba5s.js → vue-ui-stackbar-C_b754Op.js} +12 -12
  123. package/dist/{vue-ui-stackbar-BqKNaGrf.cjs → vue-ui-stackbar-yiVhLavI.cjs} +1 -1
  124. package/dist/{vue-ui-strip-plot-J5SSJPyl.cjs → vue-ui-strip-plot-CK-U0tNX.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-NykStkP9.js → vue-ui-strip-plot-CqP7E3Fr.js} +11 -11
  126. package/dist/{vue-ui-table-DhRjI7oG.js → vue-ui-table-BLPLqFFd.js} +1 -1
  127. package/dist/{vue-ui-table-heatmap-GvLTOGcB.cjs → vue-ui-table-heatmap-2Qm41w8P.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-CT5nGoW-.js → vue-ui-table-heatmap-jWG59f0S.js} +4 -4
  129. package/dist/{vue-ui-table-sparkline-Ba_Ucvgb.js → vue-ui-table-sparkline-BEeO-aWa.js} +5 -5
  130. package/dist/{vue-ui-table-sparkline-CBFEknMF.cjs → vue-ui-table-sparkline-C0vzS1F3.cjs} +1 -1
  131. package/dist/{vue-ui-table-DWPKVbYC.cjs → vue-ui-table-x2Ylaftx.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-C11VSZfb.js → vue-ui-thermometer-CS4v4vKk.js} +7 -7
  133. package/dist/{vue-ui-thermometer-sqA0TGTi.cjs → vue-ui-thermometer-DVPaZfi5.cjs} +1 -1
  134. package/dist/{vue-ui-timer-CcBNysNG.cjs → vue-ui-timer-Bu17pe7S.cjs} +1 -1
  135. package/dist/{vue-ui-timer-lwjayVn0.js → vue-ui-timer-op_p9xjL.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-FBnh0R_Z.cjs → vue-ui-tiremarks-CoKFLMWh.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-Jz80HKpg.js → vue-ui-tiremarks-CzNBUmn2.js} +7 -7
  138. package/dist/{vue-ui-treemap-B_qVGTnP.js → vue-ui-treemap-DLDn1gQ2.js} +11 -11
  139. package/dist/{vue-ui-treemap-7YFJ-Pb9.cjs → vue-ui-treemap-DXU0BagE.cjs} +1 -1
  140. package/dist/{vue-ui-vertical-bar-DGuvFK2h.cjs → vue-ui-vertical-bar-BlG3HwaX.cjs} +1 -1
  141. package/dist/{vue-ui-vertical-bar-5MwcqOTN.js → vue-ui-vertical-bar-BqTIL5Np.js} +11 -11
  142. package/dist/{vue-ui-waffle-C0F8eexl.cjs → vue-ui-waffle-CaTFfTmj.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-B0JbRRUv.js → vue-ui-waffle-DFjArEi_.js} +11 -11
  144. package/dist/{vue-ui-wheel-DP9XwVGM.cjs → vue-ui-wheel-B22xmLY4.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-pQBqSI5z.js → vue-ui-wheel-C95mjUTI.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-CmKH64gk.cjs → vue-ui-word-cloud-05iWIjGT.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-D39_9P7v.js → vue-ui-word-cloud-Byx-M5Jn.js} +10 -10
  148. package/dist/{vue-ui-xy-DRYbR_nu.js → vue-ui-xy-C8YrIKK6.js} +14 -14
  149. package/dist/{vue-ui-xy-canvas-DZib_307.js → vue-ui-xy-canvas-Cg0PIT5i.js} +11 -11
  150. package/dist/{vue-ui-xy-canvas-CywB2tWN.cjs → vue-ui-xy-canvas-os8jbTXb.cjs} +1 -1
  151. package/dist/{vue-ui-xy-2m8k1EUB.cjs → vue-ui-xy-lPnzrWt8.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/index-DuDeHJyK.cjs +0 -9
  154. package/dist/vue-ui-gauge-CWnGYcFD.js +0 -610
  155. package/dist/vue-ui-gauge-CYth7Lci.cjs +0 -1
@@ -0,0 +1,662 @@
1
+ import { computed as y, ref as d, watch as he, onMounted as Xe, onBeforeUnmount as Ye, openBlock as o, createElementBlock as u, normalizeClass as de, normalizeStyle as ye, createBlock as R, createCommentVNode as h, withCtx as X, toDisplayString as C, unref as c, createSlots as Ie, renderSlot as w, normalizeProps as L, guardReactiveProps as D, createVNode as Ae, createElementVNode as g, Fragment as _, renderList as S, mergeProps as G } from "vue";
2
+ import { u as Re, c as Ge, t as Ee, a as We, p as fe, b as Te, o as me, d as je, e as E, g as ge, m as U, I as z, X as Le, s as B, k as De, i as V, f as q, F as H } from "./index-BUHajhqq.js";
3
+ import { t as Ue, u as Be } from "./useResponsive-CoxXLe23.js";
4
+ import { u as Ve, U as qe } from "./usePrinter-DLHRtlhI.js";
5
+ import He from "./vue-ui-skeleton-BXPvqUO_.js";
6
+ import { _ as Ze } from "./Title-_dfoh5WC.js";
7
+ import { u as pe } from "./useNestedProp-a0uhe7rJ.js";
8
+ import { _ as Je } from "./PackageVersion-8Ql1gdmo.js";
9
+ import { P as Ke } from "./PenAndPaper-b1ZmLra1.js";
10
+ import { _ as Qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt = ["stop-color"], st = ["stop-color"], ot = ["stop-color"], ut = ["id"], nt = ["stdDeviation"], it = ["d", "fill", "stroke"], ct = ["id", "d"], vt = ["fill", "font-size", "font-weight"], ht = ["href", "startOffset"], dt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], yt = ["d", "filter"], ft = ["stroke", "stroke-width"], mt = ["stroke", "stroke-width"], gt = ["stroke", "stroke-width"], pt = ["stroke", "stroke-width"], kt = { key: 4 }, bt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], _t = ["x", "y", "font-size", "font-weight", "fill"], xt = { key: 6 }, wt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], St = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], zt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], $t = { key: 7 }, Ft = ["d", "fill", "stroke", "stroke-width"], Ct = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Pt = ["x", "y", "font-size", "fill"], Mt = {
12
+ key: 5,
13
+ class: "vue-data-ui-watermark"
14
+ }, Nt = {
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(W, { expose: ke }) {
31
+ const v = W, { vue_ui_gauge: be } = Re(), Y = y(() => !!v.dataset && Object.keys(v.dataset).length > 0 && v.dataset.series && v.dataset.series.length), x = d(Ge()), _e = d(null), Z = d(0), P = d(null), J = d(null), K = d(null), Q = d(null), ee = d(null), te = d(0), e = y({
32
+ get: () => ae(),
33
+ set: (a) => a
34
+ });
35
+ he(() => v.config, (a) => {
36
+ e.value = ae(), ne(), te.value += 1;
37
+ }, { deep: !0 });
38
+ function ae() {
39
+ const a = pe({
40
+ userConfig: v.config,
41
+ defaultConfig: be
42
+ });
43
+ return a.theme ? {
44
+ ...pe({
45
+ userConfig: Ee.vue_ui_gauge[a.theme] || v.config,
46
+ defaultConfig: a
47
+ }),
48
+ customPalette: We[a.theme] || fe
49
+ } : a;
50
+ }
51
+ const { isPrinting: le, isImaging: re, generatePdf: se, generateImage: oe } = Ve({
52
+ elementId: `vue-ui-gauge_${x.value}`,
53
+ fileName: e.value.style.chart.title.text || "vue-ui-gauge"
54
+ }), xe = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), we = y(() => Te(e.value.customPalette)), $ = y(() => {
55
+ if (!Y.value || me(v.dataset.series || {}))
56
+ return {
57
+ value: 0,
58
+ series: [
59
+ {
60
+ from: 0,
61
+ to: 0
62
+ }
63
+ ]
64
+ };
65
+ const a = [];
66
+ (v.dataset.series || []).forEach((t) => {
67
+ a.push(t.from || 1e-7), a.push(t.to || 1e-7);
68
+ });
69
+ const s = Math.max(...a);
70
+ return {
71
+ ...v.dataset,
72
+ series: (v.dataset.series || []).map((t, r) => ({
73
+ ...t,
74
+ color: je(t.color) || we.value[r] || fe[r],
75
+ value: ((t.to || 0) - (t.from || 0)) / s * 100
76
+ }))
77
+ };
78
+ }), p = d(512), l = d({
79
+ height: 358.4,
80
+ width: p.value,
81
+ top: 0,
82
+ bottom: 358.4,
83
+ centerX: 179.2,
84
+ centerY: p.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
+ }), M = d(0), N = d(0), f = d(e.value.style.chart.animation.use ? 0 : v.dataset.value);
94
+ he(() => v.dataset.value, () => {
95
+ ie(v.dataset.value);
96
+ });
97
+ const n = y(() => {
98
+ const a = l.value.width / 2, s = i.value.base, t = Math.PI * ((f.value + 0 - N.value) / (M.value - N.value)) + Math.PI;
99
+ return {
100
+ x1: a,
101
+ y1: s,
102
+ x2: a + i.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(t),
103
+ y2: s + i.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(t)
104
+ };
105
+ }), ue = y(() => {
106
+ const a = l.value.width / 2, s = i.value.base, t = Math.PI * ((f.value + 0 - N.value) / (M.value - N.value)) + Math.PI, r = a + i.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(t), k = s + i.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(t), b = l.value.pointerRadius, Pe = a + b * Math.cos(t + Math.PI / 2), Me = s + b * Math.sin(t + Math.PI / 2), Ne = a + b * Math.cos(t - Math.PI / 2), Oe = s + b * Math.sin(t - Math.PI / 2);
107
+ return isNaN(r) ? null : `M ${r},${k} ${Pe},${Me} ${Ne},${Oe} Z`;
108
+ }), T = y(() => {
109
+ for (let a = 0; a < $.value.series.length; a += 1) {
110
+ const { color: s, from: t, to: r } = $.value.series[a];
111
+ if (f.value >= t && f.value <= r)
112
+ return s;
113
+ }
114
+ return "#2D353C";
115
+ }), I = d(null);
116
+ function ne() {
117
+ if (me(v.dataset) ? E({
118
+ componentName: "VueUiGauge",
119
+ type: "dataset"
120
+ }) : (ge({
121
+ datasetObject: v.dataset,
122
+ requiredAttributes: ["value", "series"]
123
+ }).forEach((a) => {
124
+ E({
125
+ componentName: "VueUiGauge",
126
+ type: "datasetAttribute",
127
+ property: a
128
+ });
129
+ }), Object.hasOwn(v.dataset, "series") && (v.dataset.series.length ? v.dataset.series.forEach((a, s) => {
130
+ ge({
131
+ datasetObject: a,
132
+ requiredAttributes: ["from", "to"]
133
+ }).forEach((t) => {
134
+ E({
135
+ componentName: "VueUiGauge",
136
+ type: "datasetSerieAttribute",
137
+ property: t,
138
+ index: s
139
+ });
140
+ });
141
+ }) : E({
142
+ componentName: "VueUiGauge",
143
+ type: "datasetAttributeEmpty",
144
+ property: "series"
145
+ }))), ie(v.dataset.value || 0), e.value.responsive) {
146
+ const a = Ue(() => {
147
+ const { width: s, height: t } = Be({
148
+ chart: P.value,
149
+ title: e.value.style.chart.title.text ? J.value : null,
150
+ legend: K.value,
151
+ source: Q.value,
152
+ noTitle: ee.value
153
+ });
154
+ l.value.width = s, l.value.height = t, l.value.centerX = s / 2, l.value.centerY = p.value / 2 / 358.4 * t, l.value.bottom = t, l.value.labelFontSize = 18 / p.value * Math.min(t, s) < 10 ? 10 : 18 / p.value * Math.min(t, s), l.value.legendFontSize = e.value.style.chart.legend.fontSize / p.value * Math.min(t, s) < 14 ? 14 : e.value.style.chart.legend.fontSize / p.value * Math.min(t, s), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / p.value * Math.min(t, s), l.value.trackSize = e.value.style.chart.layout.track.size / p.value * Math.min(t, s), l.value.pointerStrokeWidth = H({
155
+ relator: Math.min(s, t),
156
+ adjuster: p.value,
157
+ source: e.value.style.chart.layout.pointer.strokeWidth,
158
+ threshold: 2,
159
+ fallback: 2
160
+ }), l.value.markerOffset = H({
161
+ relator: Math.max(s, t),
162
+ adjuster: p.value,
163
+ source: e.value.style.chart.layout.markers.offsetY + 3,
164
+ threshold: 2,
165
+ fallback: 2
166
+ }), l.value.segmentFontSize = H({
167
+ relator: Math.min(s, t),
168
+ adjuster: p.value,
169
+ source: e.value.style.chart.layout.segmentNames.fontSize,
170
+ threshold: 8,
171
+ fallback: 8
172
+ });
173
+ });
174
+ I.value = new ResizeObserver(a), I.value.observe(P.value.parentNode);
175
+ }
176
+ }
177
+ Xe(() => {
178
+ ne();
179
+ }), Ye(() => {
180
+ I.value && I.value.disconnect();
181
+ });
182
+ function ie(a) {
183
+ const s = [];
184
+ ($.value.series || []).forEach((b) => {
185
+ s.push(b.from || 0), s.push(b.to || 0);
186
+ }), M.value = Math.max(...s), N.value = Math.min(...s);
187
+ let t = e.value.style.chart.animation.speed;
188
+ const r = Math.abs(a - f.value) / (t * 60);
189
+ function k() {
190
+ f.value < a ? f.value = Math.min(f.value + r, a) : f.value > a && (f.value = Math.max(f.value - r, a)), f.value !== a && requestAnimationFrame(k);
191
+ }
192
+ k();
193
+ }
194
+ const i = y(() => {
195
+ const a = e.value.responsive ? Math.min(l.value.width, l.value.height) : l.value.width, s = 2.5 / e.value.style.chart.layout.radiusRatio;
196
+ return {
197
+ arcs: a / s,
198
+ gradients: a / (s * 1.1),
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
+ }), m = y(() => U(
204
+ { series: $.value.series },
205
+ l.value.width / 2,
206
+ i.value.base,
207
+ i.value.arcs,
208
+ i.value.arcs,
209
+ 1,
210
+ 1,
211
+ 1,
212
+ 180,
213
+ 109.9495,
214
+ 40 * l.value.trackSize
215
+ )), Se = y(() => U(
216
+ { series: $.value.series },
217
+ l.value.width / 2,
218
+ i.value.base,
219
+ i.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
220
+ i.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
+ )), F = y(() => m.value.map((a) => i.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (a.nameOffsetRatio || 1))), ce = y(() => {
228
+ const { x: a, y: s } = z({
229
+ initX: m.value[0].firstSeparator.x,
230
+ initY: m.value[0].firstSeparator.y,
231
+ centerX: n.value.x1,
232
+ centerY: n.value.y1,
233
+ offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
234
+ }), { x: t, y: r } = z({
235
+ initX: m.value[0].startX,
236
+ initY: m.value[0].startY,
237
+ centerX: n.value.x1,
238
+ centerY: n.value.y1,
239
+ offset: e.value.style.chart.layout.segmentSeparators.offsetOut
240
+ });
241
+ return { x1: a, y1: s, x2: t, y2: r };
242
+ }), ve = y(() => m.value.map((a) => {
243
+ const { x: s, y: t } = z({
244
+ initX: a.separator.x,
245
+ initY: a.separator.y,
246
+ centerX: n.value.x1,
247
+ centerY: n.value.y1,
248
+ offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
249
+ }), { x: r, y: k } = z({
250
+ initX: a.endX,
251
+ initY: a.endY,
252
+ centerX: n.value.x1,
253
+ centerY: n.value.y1,
254
+ offset: e.value.style.chart.layout.segmentSeparators.offsetOut
255
+ });
256
+ return { x1: s, y1: t, x2: r, y2: k };
257
+ }));
258
+ function ze(a) {
259
+ if (a.reduce((k, b) => k + b, 0) > 100)
260
+ throw new Error("Total % must not exceed 100");
261
+ const t = 50;
262
+ let r = 0;
263
+ return a.map((k) => (r += k, `${r / 100 * t - k / 4}%`));
264
+ }
265
+ const $e = y(() => ze(m.value.map((a) => a.proportion * 100))), Fe = y(() => U(
266
+ { series: $.value.series },
267
+ l.value.width / 2,
268
+ i.value.base,
269
+ i.value.gradients,
270
+ i.value.gradients,
271
+ 0.95,
272
+ 1,
273
+ 1,
274
+ 180,
275
+ 110.02,
276
+ 2 * l.value.trackSize
277
+ )), O = d(!1);
278
+ function Ce(a) {
279
+ O.value = a, Z.value += 1;
280
+ }
281
+ const A = d(!1);
282
+ function j() {
283
+ A.value = !A.value;
284
+ }
285
+ return ke({
286
+ generatePdf: se,
287
+ generateImage: oe,
288
+ toggleAnnotator: j
289
+ }), (a, s) => (o(), u("div", {
290
+ class: de(`vue-ui-gauge ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
291
+ ref_key: "gaugeChart",
292
+ ref: P,
293
+ id: `vue-ui-gauge_${x.value}`,
294
+ style: ye(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
295
+ }, [
296
+ e.value.userOptions.buttons.annotator ? (o(), R(Ke, {
297
+ key: 0,
298
+ parent: P.value,
299
+ backgroundColor: e.value.style.chart.backgroundColor,
300
+ color: e.value.style.chart.color,
301
+ active: A.value,
302
+ onClose: j
303
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : h("", !0),
304
+ xe.value ? (o(), u("div", {
305
+ key: 1,
306
+ ref_key: "noTitle",
307
+ ref: ee,
308
+ class: "vue-data-ui-no-title-space",
309
+ style: "height:36px; width: 100%;background:transparent"
310
+ }, null, 512)) : h("", !0),
311
+ e.value.style.chart.title.text ? (o(), u("div", {
312
+ key: 2,
313
+ ref_key: "chartTitle",
314
+ ref: J,
315
+ style: "width:100%;background:transparent;padding-bottom:12px"
316
+ }, [
317
+ (o(), R(Ze, {
318
+ key: `title_${te.value}`,
319
+ config: {
320
+ title: {
321
+ cy: "gauge-div-title",
322
+ ...e.value.style.chart.title
323
+ },
324
+ subtitle: {
325
+ cy: "gauge-div-subtitle",
326
+ ...e.value.style.chart.title.subtitle
327
+ }
328
+ }
329
+ }, {
330
+ default: X(() => [
331
+ e.value.translations.base && W.dataset.base ? (o(), u("span", tt, C(e.value.translations.base) + ": " + C(W.dataset.base), 1)) : h("", !0)
332
+ ]),
333
+ _: 1
334
+ }, 8, ["config"]))
335
+ ], 512)) : h("", !0),
336
+ e.value.userOptions.show && Y.value ? (o(), R(qe, {
337
+ ref_key: "details",
338
+ ref: _e,
339
+ key: `user_options_${Z.value}`,
340
+ backgroundColor: e.value.style.chart.backgroundColor,
341
+ color: e.value.style.chart.color,
342
+ isImaging: c(re),
343
+ isPrinting: c(le),
344
+ uid: x.value,
345
+ hasXls: !1,
346
+ hasPdf: e.value.userOptions.buttons.pdf,
347
+ hasImg: e.value.userOptions.buttons.img,
348
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
349
+ isFullscreen: O.value,
350
+ titles: { ...e.value.userOptions.buttonTitles },
351
+ chartElement: P.value,
352
+ position: e.value.userOptions.position,
353
+ hasAnnotator: e.value.userOptions.buttons.annotator,
354
+ isAnnotation: A.value,
355
+ onToggleFullscreen: Ce,
356
+ onGeneratePdf: c(se),
357
+ onGenerateImage: c(oe),
358
+ onToggleAnnotator: j
359
+ }, Ie({ _: 2 }, [
360
+ a.$slots.optionPdf ? {
361
+ name: "optionPdf",
362
+ fn: X(() => [
363
+ w(a.$slots, "optionPdf", {}, void 0, !0)
364
+ ]),
365
+ key: "0"
366
+ } : void 0,
367
+ a.$slots.optionImg ? {
368
+ name: "optionImg",
369
+ fn: X(() => [
370
+ w(a.$slots, "optionImg", {}, void 0, !0)
371
+ ]),
372
+ key: "1"
373
+ } : void 0,
374
+ a.$slots.optionFullscreen ? {
375
+ name: "optionFullscreen",
376
+ fn: X(({ toggleFullscreen: t, isFullscreen: r }) => [
377
+ w(a.$slots, "optionFullscreen", L(D({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
378
+ ]),
379
+ key: "2"
380
+ } : void 0,
381
+ a.$slots.optionAnnotator ? {
382
+ name: "optionAnnotator",
383
+ fn: X(({ toggleAnnotator: t, isAnnotator: r }) => [
384
+ w(a.$slots, "optionAnnotator", L(D({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
385
+ ]),
386
+ key: "3"
387
+ } : void 0
388
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : h("", !0),
389
+ Y.value ? (o(), u("svg", {
390
+ key: 4,
391
+ xmlns: c(Le),
392
+ class: de({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
393
+ viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
394
+ style: ye(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
395
+ }, [
396
+ Ae(Je),
397
+ g("defs", null, [
398
+ g("radialGradient", {
399
+ id: `gradient_${x.value}`,
400
+ cx: "50%",
401
+ cy: "50%",
402
+ r: "50%",
403
+ fx: "50%",
404
+ fy: "50%"
405
+ }, [
406
+ g("stop", {
407
+ offset: "0%",
408
+ "stop-color": c(B)("#FFFFFF", 1)
409
+ }, null, 8, rt),
410
+ g("stop", {
411
+ offset: "80%",
412
+ "stop-color": c(B)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
413
+ }, null, 8, st),
414
+ g("stop", {
415
+ offset: "100%",
416
+ "stop-color": c(B)("#FFFFFF", 1)
417
+ }, null, 8, ot)
418
+ ], 8, lt)
419
+ ]),
420
+ g("defs", null, [
421
+ g("filter", {
422
+ id: `blur_${x.value}`,
423
+ x: "-50%",
424
+ y: "-50%",
425
+ width: "200%",
426
+ height: "200%"
427
+ }, [
428
+ g("feGaussianBlur", {
429
+ in: "SourceGraphic",
430
+ stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
431
+ }, null, 8, nt)
432
+ ], 8, ut)
433
+ ]),
434
+ (o(!0), u(_, null, S(m.value, (t, r) => (o(), u("path", {
435
+ key: `arc_${r}`,
436
+ d: t.arcSlice,
437
+ fill: t.color,
438
+ stroke: e.value.style.chart.backgroundColor,
439
+ "stroke-linecap": "round"
440
+ }, null, 8, it))), 128)),
441
+ e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (o(), u(_, { key: 0 }, [
442
+ (o(!0), u(_, null, S(m.value, (t, r) => (o(), u("path", {
443
+ id: `curve_${x.value}_${r}`,
444
+ d: `M ${n.value.x1},${n.value.y1} m -${F.value[r]},0 a ${F.value[r]},${F.value[r]} 0 1,1 ${2 * F.value[r]},0 a ${F.value[r]},${F.value[r]} 0 1,1 -${2 * F.value[r]},0`,
445
+ fill: "transparent"
446
+ }, null, 8, ct))), 256)),
447
+ (o(!0), u(_, null, S(m.value, (t, r) => (o(), u("text", {
448
+ fill: e.value.style.chart.layout.segmentNames.useSerieColor ? t.color : e.value.style.chart.layout.segmentNames.color,
449
+ "font-size": l.value.segmentFontSize,
450
+ "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
451
+ "text-anchor": "middle"
452
+ }, [
453
+ g("textPath", {
454
+ href: `#curve_${x.value}_${r}`,
455
+ startOffset: $e.value[r]
456
+ }, C(t.name || ""), 9, ht)
457
+ ], 8, vt))), 256))
458
+ ], 64)) : h("", !0),
459
+ e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (o(!0), u(_, { key: 1 }, S(Se.value, (t, r) => (o(), u("text", {
460
+ x: t.center.endX,
461
+ y: t.center.endY,
462
+ "text-anchor": c(De)(t, !1, 12).anchor,
463
+ fill: e.value.style.chart.layout.segmentNames.useSerieColor ? t.color : e.value.style.chart.layout.segmentNames.color,
464
+ "font-size": l.value.segmentFontSize,
465
+ "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
466
+ }, C(t.name || ""), 9, dt))), 256)) : h("", !0),
467
+ e.value.style.chart.layout.track.useGradient ? (o(!0), u(_, { key: 2 }, S(Fe.value, (t, r) => (o(), u("path", {
468
+ key: `arc_${r}`,
469
+ d: t.arcSlice,
470
+ fill: "#FFFFFF",
471
+ stroke: "none",
472
+ "stroke-linecap": "round",
473
+ filter: `url(#blur_${x.value})`
474
+ }, null, 8, yt))), 128)) : h("", !0),
475
+ e.value.style.chart.layout.segmentSeparators.show ? (o(), u(_, { key: 3 }, [
476
+ g("line", G(ce.value, {
477
+ stroke: e.value.style.chart.backgroundColor,
478
+ "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
479
+ "stroke-linecap": "round"
480
+ }), null, 16, ft),
481
+ g("line", G(ce.value, {
482
+ stroke: e.value.style.chart.layout.segmentSeparators.stroke,
483
+ "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
484
+ "stroke-linecap": "round"
485
+ }), null, 16, mt),
486
+ (o(!0), u(_, null, S(ve.value, (t) => (o(), u("line", G(t, {
487
+ stroke: e.value.style.chart.backgroundColor,
488
+ "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
489
+ "stroke-linecap": "round"
490
+ }), null, 16, gt))), 256)),
491
+ (o(!0), u(_, null, S(ve.value, (t) => (o(), u("line", G(t, {
492
+ stroke: e.value.style.chart.layout.segmentSeparators.stroke,
493
+ "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
494
+ "stroke-linecap": "round"
495
+ }), null, 16, pt))), 256))
496
+ ], 64)) : h("", !0),
497
+ e.value.style.chart.layout.markers.show ? (o(), u("g", kt, [
498
+ (o(!0), u(_, null, S(m.value, (t, r) => (o(), u("text", {
499
+ x: c(z)({
500
+ centerX: n.value.x1,
501
+ centerY: i.value.base,
502
+ initX: t.center.startX,
503
+ initY: t.center.startY,
504
+ offset: l.value.markerOffset
505
+ }).x,
506
+ y: c(z)({
507
+ centerX: n.value.x1,
508
+ centerY: i.value.base,
509
+ initX: t.center.startX,
510
+ initY: t.center.startY,
511
+ offset: l.value.markerOffset
512
+ }).y,
513
+ "text-anchor": t.center.startX < n.value.x1 - 5 ? "end" : t.center.startX > n.value.x1 + 5 ? "start" : "middle",
514
+ "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
515
+ "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
516
+ fill: e.value.style.chart.layout.markers.color
517
+ }, C(c(V)(
518
+ e.value.style.chart.layout.markers.formatter,
519
+ t.from,
520
+ c(q)({
521
+ p: e.value.style.chart.layout.markers.prefix,
522
+ v: t.from,
523
+ s: e.value.style.chart.layout.markers.suffix,
524
+ r: e.value.style.chart.layout.markers.roundingValue
525
+ })
526
+ )), 9, bt))), 256))
527
+ ])) : h("", !0),
528
+ e.value.style.chart.layout.markers.show ? (o(), u("text", {
529
+ key: 5,
530
+ x: c(z)({
531
+ centerX: l.value.width / 2,
532
+ centerY: i.value.base,
533
+ initX: m.value.at(-1).endX,
534
+ initY: m.value.at(-1).endY,
535
+ offset: l.value.markerOffset
536
+ }).x,
537
+ y: c(z)({
538
+ centerX: l.value.width / 2,
539
+ centerY: i.value.base,
540
+ initX: m.value.at(-1).endX,
541
+ initY: m.value.at(-1).endY,
542
+ offset: l.value.markerOffset
543
+ }).y,
544
+ "text-anchor": "start",
545
+ "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
546
+ "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
547
+ fill: e.value.style.chart.layout.markers.color
548
+ }, C(c(V)(
549
+ e.value.style.chart.layout.markers.formatter,
550
+ M.value,
551
+ c(q)({
552
+ p: e.value.style.chart.layout.markers.prefix,
553
+ v: M.value,
554
+ s: e.value.style.chart.layout.markers.suffix,
555
+ r: e.value.style.chart.layout.markers.roundingValue
556
+ })
557
+ )), 9, _t)) : h("", !0),
558
+ e.value.style.chart.layout.pointer.type === "rounded" ? (o(), u("g", xt, [
559
+ isNaN(n.value.x2) ? h("", !0) : (o(), u("line", {
560
+ key: 0,
561
+ x1: n.value.x1,
562
+ y1: n.value.y1,
563
+ x2: n.value.x2,
564
+ y2: n.value.y2,
565
+ stroke: e.value.style.chart.layout.pointer.stroke,
566
+ "stroke-width": l.value.pointerStrokeWidth,
567
+ "stroke-linecap": "round"
568
+ }, null, 8, wt)),
569
+ isNaN(n.value.x2) ? h("", !0) : (o(), u("line", {
570
+ key: 1,
571
+ x1: n.value.x1,
572
+ y1: n.value.y1,
573
+ x2: n.value.x2,
574
+ y2: n.value.y2,
575
+ stroke: e.value.style.chart.layout.pointer.useRatingColor ? T.value : e.value.style.chart.layout.pointer.color,
576
+ "stroke-linecap": "round",
577
+ "stroke-width": l.value.pointerStrokeWidth * 0.7
578
+ }, null, 8, St)),
579
+ !isNaN(n.value.x2) && e.value.style.chart.layout.track.useGradient ? (o(), u("line", {
580
+ key: 2,
581
+ x1: n.value.x1,
582
+ y1: n.value.y1,
583
+ x2: n.value.x2,
584
+ y2: n.value.y2,
585
+ stroke: "white",
586
+ "stroke-linecap": "round",
587
+ "stroke-width": l.value.pointerStrokeWidth * 0.3,
588
+ filter: `url(#blur_${x.value})`
589
+ }, null, 8, zt)) : h("", !0)
590
+ ])) : (o(), u("g", $t, [
591
+ ue.value ? (o(), u("path", {
592
+ key: 0,
593
+ d: ue.value,
594
+ fill: e.value.style.chart.layout.pointer.useRatingColor ? T.value : e.value.style.chart.layout.pointer.color,
595
+ stroke: e.value.style.chart.layout.pointer.stroke,
596
+ "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
597
+ "stroke-linejoin": "round"
598
+ }, null, 8, Ft)) : h("", !0)
599
+ ])),
600
+ g("circle", {
601
+ cx: l.value.width / 2,
602
+ cy: i.value.base,
603
+ fill: e.value.style.chart.layout.pointer.circle.color,
604
+ r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
605
+ "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
606
+ stroke: e.value.style.chart.layout.pointer.circle.stroke
607
+ }, null, 8, Ct),
608
+ e.value.style.chart.legend.show ? (o(), u("text", {
609
+ key: 8,
610
+ x: l.value.width / 2,
611
+ y: i.value.ratingBase,
612
+ "text-anchor": "middle",
613
+ "font-size": l.value.legendFontSize,
614
+ "font-weight": "bold",
615
+ fill: e.value.style.chart.legend.useRatingColor ? T.value : e.value.style.chart.legend.color
616
+ }, C(c(V)(
617
+ e.value.style.chart.legend.formatter,
618
+ f.value,
619
+ c(q)({
620
+ p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && f.value > 0 ? "+" : ""),
621
+ v: f.value,
622
+ s: e.value.style.chart.legend.suffix,
623
+ r: e.value.style.chart.legend.roundingValue
624
+ })
625
+ )), 9, Pt)) : h("", !0),
626
+ w(a.$slots, "svg", { svg: l.value }, void 0, !0)
627
+ ], 14, at)) : h("", !0),
628
+ a.$slots.watermark ? (o(), u("div", Mt, [
629
+ w(a.$slots, "watermark", L(D({ isPrinting: c(le) || c(re) })), void 0, !0)
630
+ ])) : h("", !0),
631
+ Y.value ? h("", !0) : (o(), R(He, {
632
+ key: 6,
633
+ config: {
634
+ type: "gauge",
635
+ style: {
636
+ backgroundColor: e.value.style.chart.backgroundColor,
637
+ gauge: {
638
+ color: "#CCCCCC"
639
+ }
640
+ }
641
+ }
642
+ }, null, 8, ["config"])),
643
+ g("div", {
644
+ ref_key: "chartLegend",
645
+ ref: K
646
+ }, [
647
+ w(a.$slots, "legend", { legend: $.value }, void 0, !0)
648
+ ], 512),
649
+ a.$slots.source ? (o(), u("div", {
650
+ key: 7,
651
+ ref_key: "source",
652
+ ref: Q,
653
+ dir: "auto"
654
+ }, [
655
+ w(a.$slots, "source", {}, void 0, !0)
656
+ ], 512)) : h("", !0)
657
+ ], 14, et));
658
+ }
659
+ }, jt = /* @__PURE__ */ Qe(Nt, [["__scopeId", "data-v-cb288169"]]);
660
+ export {
661
+ jt as default
662
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-DuDeHJyK.cjs"),m=require("./useNestedProp-zkJOoemW.cjs"),_=require("./PackageVersion-1JWV5loe.cjs"),k=["viewBox","width"],p={key:0},g=["id"],v=["stop-color"],y=["stop-color"],N=["stroke"],C=["stroke"],V=["width","fill"],w=["fill"],x={key:0},B=["id"],E=e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1),b=[E],L=["stroke"],z=["stroke","stroke-dasharray","stroke-dashoffset"],G=["filter"],F=["stroke","stroke-dasharray","stroke-dashoffset"],P=["fill"],$={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(i){const o=i,{vue_ui_gizmo:f}=a.useConfig(),n=e.ref(a.createUid());e.onMounted(()=>{c()});function c(){!o.dataset&&o.dataset!==0&&a.error({componentName:"VueUiGizmo",type:"dataset"}),o.dataset<0&&console.warn("VueUiGizmo: dataset cannot be negative.")}const t=e.computed({get:()=>d(),set:r=>r});function d(){return m.useNestedProp({userConfig:o.config,defaultConfig:f})}e.watch(()=>o.config,r=>{t.value=d(),c()},{deep:!0});const u=e.computed(()=>({battery:{width:t.value.showPercentage?140:80,height:50},gauge:{width:80,height:80}})[t.value.type]),l=e.computed(()=>{const s=2*Math.PI*35,h=s-o.dataset/100*s;return{dasharray:`${s} ${s}`,dashoffset:h}});return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-gizmo",viewBox:`0 0 ${u.value.width} ${u.value.height}`,width:t.value.size,style:e.normalizeStyle({background:"transparent",fontFamily:t.value.fontFamily})},[e.createVNode(_._sfc_main),t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",p,[e.createElementVNode("linearGradient",{id:`gizmo_gradient_${n.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.gradientColor},null,8,v),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,y)],8,g)])):e.createCommentVNode("",!0),t.value.type==="battery"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("path",{d:"M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",stroke:t.value.stroke,"stroke-width":2,fill:"none"},null,8,N),e.createElementVNode("path",{d:"M 70 16 L 70 34",stroke:t.value.stroke,"stroke-width":2,fill:"none",style:{opacity:"0.5"}},null,8,C),e.createElementVNode("rect",{x:10,y:10,height:30,width:55*(i.dataset/100),fill:t.value.useGradient?`url(#gizmo_gradient_${n.value})`:t.value.color,rx:2},null,8,V),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,x:85,y:32,"text-anchor":"start","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,w)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="gauge"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",x,[e.createElementVNode("filter",{id:`blur_${n.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},b,8,B)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.stroke,"stroke-width":2*4,fill:"none"},null,8,L),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.color,"stroke-width":2*4,"stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,"stroke-linecap":"round",fill:"none",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,z),t.value.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${n.value})`},[e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.gradientColor,"stroke-width":1,fill:"none","stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,F)],8,G)):e.createCommentVNode("",!0),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:2,x:40,y:47,"text-anchor":"middle","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,P)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,k))}};exports.default=$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-KYU_8xrX.cjs"),m=require("./useNestedProp-C-g0SLHN.cjs"),_=require("./PackageVersion-Df1iPzMk.cjs"),k=["viewBox","width"],p={key:0},g=["id"],v=["stop-color"],y=["stop-color"],N=["stroke"],C=["stroke"],V=["width","fill"],w=["fill"],x={key:0},B=["id"],E=e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1),b=[E],L=["stroke"],z=["stroke","stroke-dasharray","stroke-dashoffset"],G=["filter"],F=["stroke","stroke-dasharray","stroke-dashoffset"],P=["fill"],$={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(i){const o=i,{vue_ui_gizmo:f}=a.useConfig(),n=e.ref(a.createUid());e.onMounted(()=>{c()});function c(){!o.dataset&&o.dataset!==0&&a.error({componentName:"VueUiGizmo",type:"dataset"}),o.dataset<0&&console.warn("VueUiGizmo: dataset cannot be negative.")}const t=e.computed({get:()=>d(),set:r=>r});function d(){return m.useNestedProp({userConfig:o.config,defaultConfig:f})}e.watch(()=>o.config,r=>{t.value=d(),c()},{deep:!0});const u=e.computed(()=>({battery:{width:t.value.showPercentage?140:80,height:50},gauge:{width:80,height:80}})[t.value.type]),l=e.computed(()=>{const s=2*Math.PI*35,h=s-o.dataset/100*s;return{dasharray:`${s} ${s}`,dashoffset:h}});return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-gizmo",viewBox:`0 0 ${u.value.width} ${u.value.height}`,width:t.value.size,style:e.normalizeStyle({background:"transparent",fontFamily:t.value.fontFamily})},[e.createVNode(_._sfc_main),t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",p,[e.createElementVNode("linearGradient",{id:`gizmo_gradient_${n.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.gradientColor},null,8,v),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,y)],8,g)])):e.createCommentVNode("",!0),t.value.type==="battery"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("path",{d:"M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",stroke:t.value.stroke,"stroke-width":2,fill:"none"},null,8,N),e.createElementVNode("path",{d:"M 70 16 L 70 34",stroke:t.value.stroke,"stroke-width":2,fill:"none",style:{opacity:"0.5"}},null,8,C),e.createElementVNode("rect",{x:10,y:10,height:30,width:55*(i.dataset/100),fill:t.value.useGradient?`url(#gizmo_gradient_${n.value})`:t.value.color,rx:2},null,8,V),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,x:85,y:32,"text-anchor":"start","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,w)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="gauge"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",x,[e.createElementVNode("filter",{id:`blur_${n.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},b,8,B)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.stroke,"stroke-width":2*4,fill:"none"},null,8,L),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.color,"stroke-width":2*4,"stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,"stroke-linecap":"round",fill:"none",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,z),t.value.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${n.value})`},[e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.gradientColor,"stroke-width":1,fill:"none","stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,F)],8,G)):e.createCommentVNode("",!0),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:2,x:40,y:47,"text-anchor":"middle","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,P)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,k))}};exports.default=$;