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
@@ -1,557 +0,0 @@
1
- import { computed as p, ref as v, watch as se, onMounted as ze, onBeforeUnmount as Ce, openBlock as r, createElementBlock as s, normalizeClass as ue, normalizeStyle as ne, createBlock as N, createCommentVNode as d, withCtx as C, toDisplayString as $, unref as n, createSlots as $e, renderSlot as m, normalizeProps as E, guardReactiveProps as T, createVNode as Me, createElementVNode as g, Fragment as j, renderList as D } from "vue";
2
- import { u as Pe, c as Oe, t as Ie, a as Ne, p as ie, b as Xe, o as ce, d as Ae, e as X, g as ve, m as de, X as Ye, s as U, I as A, i as B, f as L, F as he } from "./index-D3_dyp9t.js";
3
- import { t as Ge, u as Re } from "./useResponsive-CoxXLe23.js";
4
- import { u as Ee, U as Te } from "./usePrinter-41NUZdgl.js";
5
- import je from "./vue-ui-skeleton-CaV7JuCg.js";
6
- import { _ as De } from "./Title-Dj5wajqV.js";
7
- import { u as fe } from "./useNestedProp-qwG6HgrL.js";
8
- import { _ as Ue } from "./PackageVersion-2fR7Awu1.js";
9
- import { P as Be } from "./PenAndPaper-wVL9QD9U.js";
10
- import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const We = ["id"], Ve = { key: 0 }, qe = ["xmlns", "viewBox"], He = ["id"], Ze = ["stop-color"], Je = ["stop-color"], Ke = ["stop-color"], Qe = ["id"], et = ["stdDeviation"], tt = ["d", "fill", "stroke"], at = ["d", "filter"], lt = { key: 1 }, ot = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], rt = ["x", "y", "font-size", "font-weight", "fill"], st = { key: 3 }, ut = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], nt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], it = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], ct = { key: 4 }, vt = ["d", "fill", "stroke", "stroke-width"], dt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], ht = ["x", "y", "font-size", "fill"], ft = {
12
- key: 5,
13
- class: "vue-data-ui-watermark"
14
- }, yt = {
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(Y, { expose: ye }) {
31
- const u = Y, { vue_ui_gauge: pe } = Pe(), M = p(() => !!u.dataset && Object.keys(u.dataset).length > 0 && u.dataset.series && u.dataset.series.length), k = v(Oe()), ge = v(null), W = v(0), w = v(null), V = v(null), q = v(null), H = v(null), Z = v(null), J = v(0), e = p({
32
- get: () => K(),
33
- set: (a) => a
34
- });
35
- se(() => u.config, (a) => {
36
- e.value = K(), oe(), J.value += 1;
37
- }, { deep: !0 });
38
- function K() {
39
- const a = fe({
40
- userConfig: u.config,
41
- defaultConfig: pe
42
- });
43
- return a.theme ? {
44
- ...fe({
45
- userConfig: Ie.vue_ui_gauge[a.theme] || u.config,
46
- defaultConfig: a
47
- }),
48
- customPalette: Ne[a.theme] || ie
49
- } : a;
50
- }
51
- const { isPrinting: Q, isImaging: ee, generatePdf: te, generateImage: ae } = Ee({
52
- elementId: `vue-ui-gauge_${k.value}`,
53
- fileName: e.value.style.chart.title.text || "vue-ui-gauge"
54
- }), me = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), ke = p(() => Xe(e.value.customPalette)), _ = p(() => {
55
- if (!M.value || ce(u.dataset.series || {}))
56
- return {
57
- value: 0,
58
- series: [
59
- {
60
- from: 0,
61
- to: 0
62
- }
63
- ]
64
- };
65
- const a = [];
66
- (u.dataset.series || []).forEach((l) => {
67
- a.push(l.from || 0), a.push(l.to || 0);
68
- });
69
- const o = Math.max(...a);
70
- return {
71
- ...u.dataset,
72
- series: (u.dataset.series || []).map((l, i) => ({
73
- ...l,
74
- color: Ae(l.color) || ke.value[i] || ie[i],
75
- value: ((l.to || 0) - (l.from || 0)) / o * 100
76
- }))
77
- };
78
- }), y = v(512), t = v({
79
- height: 358.4,
80
- width: y.value,
81
- top: 0,
82
- bottom: 358.4,
83
- centerX: 179.2,
84
- centerY: y.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
- }), F = v(0), S = v(0), h = v(e.value.style.chart.animation.use ? 0 : u.dataset.value);
93
- se(() => u.dataset.value, () => {
94
- re(u.dataset.value);
95
- });
96
- const f = p(() => {
97
- const a = t.value.width / 2, o = c.value.base, l = Math.PI * ((h.value + 0 - S.value) / (F.value - S.value)) + Math.PI;
98
- return {
99
- x1: a,
100
- y1: o,
101
- x2: a + c.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(l),
102
- y2: o + c.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(l)
103
- };
104
- }), le = p(() => {
105
- const a = t.value.width / 2, o = c.value.base, l = Math.PI * ((h.value + 0 - S.value) / (F.value - S.value)) + Math.PI, i = a + c.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(l), I = o + c.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(l), b = t.value.pointerRadius, xe = a + b * Math.cos(l + Math.PI / 2), we = o + b * Math.sin(l + Math.PI / 2), Fe = a + b * Math.cos(l - Math.PI / 2), Se = o + b * Math.sin(l - Math.PI / 2);
106
- return isNaN(i) ? null : `M ${i},${I} ${xe},${we} ${Fe},${Se} Z`;
107
- }), G = p(() => {
108
- for (let a = 0; a < _.value.series.length; a += 1) {
109
- const { color: o, from: l, to: i } = _.value.series[a];
110
- if (h.value >= l && h.value <= i)
111
- return o;
112
- }
113
- return "#2D353C";
114
- }), P = v(null);
115
- function oe() {
116
- if (ce(u.dataset) ? X({
117
- componentName: "VueUiGauge",
118
- type: "dataset"
119
- }) : (ve({
120
- datasetObject: u.dataset,
121
- requiredAttributes: ["value", "series"]
122
- }).forEach((a) => {
123
- X({
124
- componentName: "VueUiGauge",
125
- type: "datasetAttribute",
126
- property: a
127
- });
128
- }), Object.hasOwn(u.dataset, "series") && (u.dataset.series.length ? u.dataset.series.forEach((a, o) => {
129
- ve({
130
- datasetObject: a,
131
- requiredAttributes: ["from", "to"]
132
- }).forEach((l) => {
133
- X({
134
- componentName: "VueUiGauge",
135
- type: "datasetSerieAttribute",
136
- property: l,
137
- index: o
138
- });
139
- });
140
- }) : X({
141
- componentName: "VueUiGauge",
142
- type: "datasetAttributeEmpty",
143
- property: "series"
144
- }))), re(u.dataset.value || 0), e.value.responsive) {
145
- const a = Ge(() => {
146
- const { width: o, height: l } = Re({
147
- chart: w.value,
148
- title: e.value.style.chart.title.text ? V.value : null,
149
- legend: q.value,
150
- source: H.value,
151
- noTitle: Z.value
152
- });
153
- t.value.width = o, t.value.height = l, t.value.centerX = o / 2, t.value.centerY = y.value / 2 / 358.4 * l, t.value.bottom = l, t.value.labelFontSize = 18 / y.value * Math.min(l, o) < 10 ? 10 : 18 / y.value * Math.min(l, o), t.value.legendFontSize = e.value.style.chart.legend.fontSize / y.value * Math.min(l, o) < 14 ? 14 : e.value.style.chart.legend.fontSize / y.value * Math.min(l, o), t.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / y.value * Math.min(l, o), t.value.trackSize = e.value.style.chart.layout.track.size / y.value * Math.min(l, o), t.value.pointerStrokeWidth = he({
154
- relator: Math.min(o, l),
155
- adjuster: y.value,
156
- source: e.value.style.chart.layout.pointer.strokeWidth,
157
- threshold: 2,
158
- fallback: 2
159
- }), t.value.markerOffset = he({
160
- relator: Math.max(o, l),
161
- adjuster: y.value,
162
- source: e.value.style.chart.layout.markers.offsetY + 3,
163
- threshold: 2,
164
- fallback: 2
165
- });
166
- });
167
- P.value = new ResizeObserver(a), P.value.observe(w.value.parentNode);
168
- }
169
- }
170
- ze(() => {
171
- oe();
172
- }), Ce(() => {
173
- P.value && P.value.disconnect();
174
- });
175
- function re(a) {
176
- const o = [];
177
- (_.value.series || []).forEach((b) => {
178
- o.push(b.from || 0), o.push(b.to || 0);
179
- }), F.value = Math.max(...o), S.value = Math.min(...o);
180
- let l = e.value.style.chart.animation.speed;
181
- const i = Math.abs(a - h.value) / (l * 60);
182
- function I() {
183
- h.value < a ? h.value = Math.min(h.value + i, a) : h.value > a && (h.value = Math.max(h.value - i, a)), h.value !== a && requestAnimationFrame(I);
184
- }
185
- I();
186
- }
187
- const c = p(() => {
188
- const a = e.value.responsive ? Math.min(t.value.width, t.value.height) : t.value.width;
189
- return {
190
- arcs: a / 2.5,
191
- gradients: a / 2.75,
192
- base: e.value.responsive ? t.value.height / 2 : t.value.height * 0.7,
193
- ratingBase: e.value.responsive ? t.value.height / 2 + t.value.height / 4 : t.value.height * 0.9,
194
- pointerSize: e.value.responsive ? Math.min(t.value.width, t.value.height) / 3 : t.value.width / 3.2
195
- };
196
- }), x = p(() => de(
197
- { series: _.value.series },
198
- t.value.width / 2,
199
- c.value.base,
200
- c.value.arcs,
201
- c.value.arcs,
202
- 1,
203
- 1,
204
- 1,
205
- 180,
206
- 109.9495,
207
- 40 * t.value.trackSize
208
- )), be = p(() => de(
209
- { series: _.value.series },
210
- t.value.width / 2,
211
- c.value.base,
212
- c.value.gradients,
213
- c.value.gradients,
214
- 0.95,
215
- 1,
216
- 1,
217
- 180,
218
- 110.02,
219
- 2 * t.value.trackSize
220
- )), z = v(!1);
221
- function _e(a) {
222
- z.value = a, W.value += 1;
223
- }
224
- const O = v(!1);
225
- function R() {
226
- O.value = !O.value;
227
- }
228
- return ye({
229
- generatePdf: te,
230
- generateImage: ae,
231
- toggleAnnotator: R
232
- }), (a, o) => (r(), s("div", {
233
- class: ue(`vue-ui-gauge ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
234
- ref_key: "gaugeChart",
235
- ref: w,
236
- id: `vue-ui-gauge_${k.value}`,
237
- style: ne(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
238
- }, [
239
- e.value.userOptions.buttons.annotator ? (r(), N(Be, {
240
- key: 0,
241
- parent: w.value,
242
- backgroundColor: e.value.style.chart.backgroundColor,
243
- color: e.value.style.chart.color,
244
- active: O.value,
245
- onClose: R
246
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : d("", !0),
247
- me.value ? (r(), s("div", {
248
- key: 1,
249
- ref_key: "noTitle",
250
- ref: Z,
251
- class: "vue-data-ui-no-title-space",
252
- style: "height:36px; width: 100%;background:transparent"
253
- }, null, 512)) : d("", !0),
254
- e.value.style.chart.title.text ? (r(), s("div", {
255
- key: 2,
256
- ref_key: "chartTitle",
257
- ref: V,
258
- style: "width:100%;background:transparent;padding-bottom:12px"
259
- }, [
260
- (r(), N(De, {
261
- key: `title_${J.value}`,
262
- config: {
263
- title: {
264
- cy: "gauge-div-title",
265
- ...e.value.style.chart.title
266
- },
267
- subtitle: {
268
- cy: "gauge-div-subtitle",
269
- ...e.value.style.chart.title.subtitle
270
- }
271
- }
272
- }, {
273
- default: C(() => [
274
- e.value.translations.base && Y.dataset.base ? (r(), s("span", Ve, $(e.value.translations.base) + ": " + $(Y.dataset.base), 1)) : d("", !0)
275
- ]),
276
- _: 1
277
- }, 8, ["config"]))
278
- ], 512)) : d("", !0),
279
- e.value.userOptions.show && M.value ? (r(), N(Te, {
280
- ref_key: "details",
281
- ref: ge,
282
- key: `user_options_${W.value}`,
283
- backgroundColor: e.value.style.chart.backgroundColor,
284
- color: e.value.style.chart.color,
285
- isImaging: n(ee),
286
- isPrinting: n(Q),
287
- uid: k.value,
288
- hasXls: !1,
289
- hasPdf: e.value.userOptions.buttons.pdf,
290
- hasImg: e.value.userOptions.buttons.img,
291
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
292
- isFullscreen: z.value,
293
- titles: { ...e.value.userOptions.buttonTitles },
294
- chartElement: w.value,
295
- position: e.value.userOptions.position,
296
- hasAnnotator: e.value.userOptions.buttons.annotator,
297
- isAnnotation: O.value,
298
- onToggleFullscreen: _e,
299
- onGeneratePdf: n(te),
300
- onGenerateImage: n(ae),
301
- onToggleAnnotator: R
302
- }, $e({ _: 2 }, [
303
- a.$slots.optionPdf ? {
304
- name: "optionPdf",
305
- fn: C(() => [
306
- m(a.$slots, "optionPdf", {}, void 0, !0)
307
- ]),
308
- key: "0"
309
- } : void 0,
310
- a.$slots.optionImg ? {
311
- name: "optionImg",
312
- fn: C(() => [
313
- m(a.$slots, "optionImg", {}, void 0, !0)
314
- ]),
315
- key: "1"
316
- } : void 0,
317
- a.$slots.optionFullscreen ? {
318
- name: "optionFullscreen",
319
- fn: C(({ toggleFullscreen: l, isFullscreen: i }) => [
320
- m(a.$slots, "optionFullscreen", E(T({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
321
- ]),
322
- key: "2"
323
- } : void 0,
324
- a.$slots.optionAnnotator ? {
325
- name: "optionAnnotator",
326
- fn: C(({ toggleAnnotator: l, isAnnotator: i }) => [
327
- m(a.$slots, "optionAnnotator", E(T({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
328
- ]),
329
- key: "3"
330
- } : void 0
331
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
332
- M.value ? (r(), s("svg", {
333
- key: 4,
334
- xmlns: n(Ye),
335
- class: ue({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
336
- viewBox: `0 0 ${t.value.width <= 0 ? 10 : t.value.width} ${t.value.height <= 0 ? 10 : t.value.height}`,
337
- style: ne(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
338
- }, [
339
- Me(Ue),
340
- g("defs", null, [
341
- g("radialGradient", {
342
- id: `gradient_${k.value}`,
343
- cx: "50%",
344
- cy: "50%",
345
- r: "50%",
346
- fx: "50%",
347
- fy: "50%"
348
- }, [
349
- g("stop", {
350
- offset: "0%",
351
- "stop-color": n(U)("#FFFFFF", 1)
352
- }, null, 8, Ze),
353
- g("stop", {
354
- offset: "80%",
355
- "stop-color": n(U)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
356
- }, null, 8, Je),
357
- g("stop", {
358
- offset: "100%",
359
- "stop-color": n(U)("#FFFFFF", 1)
360
- }, null, 8, Ke)
361
- ], 8, He)
362
- ]),
363
- g("defs", null, [
364
- g("filter", {
365
- id: `blur_${k.value}`,
366
- x: "-50%",
367
- y: "-50%",
368
- width: "200%",
369
- height: "200%"
370
- }, [
371
- g("feGaussianBlur", {
372
- in: "SourceGraphic",
373
- stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
374
- }, null, 8, et)
375
- ], 8, Qe)
376
- ]),
377
- (r(!0), s(j, null, D(x.value, (l, i) => (r(), s("path", {
378
- key: `arc_${i}`,
379
- d: l.arcSlice,
380
- fill: l.color,
381
- stroke: e.value.style.chart.backgroundColor,
382
- "stroke-linecap": "round"
383
- }, null, 8, tt))), 128)),
384
- e.value.style.chart.layout.track.useGradient ? (r(!0), s(j, { key: 0 }, D(be.value, (l, i) => (r(), s("path", {
385
- key: `arc_${i}`,
386
- d: l.arcSlice,
387
- fill: "#FFFFFF",
388
- stroke: "none",
389
- "stroke-linecap": "round",
390
- filter: `url(#blur_${k.value})`
391
- }, null, 8, at))), 128)) : d("", !0),
392
- e.value.style.chart.layout.markers.show ? (r(), s("g", lt, [
393
- (r(!0), s(j, null, D(x.value, (l, i) => (r(), s("text", {
394
- x: n(A)({
395
- centerX: t.value.width / 2,
396
- centerY: c.value.base,
397
- initX: l.center.startX,
398
- initY: l.center.startY,
399
- offset: t.value.markerOffset
400
- }).x,
401
- y: n(A)({
402
- centerX: t.value.width / 2,
403
- centerY: c.value.base,
404
- initX: l.center.startX,
405
- initY: l.center.startY,
406
- offset: t.value.markerOffset
407
- }).y,
408
- "text-anchor": l.center.startX < t.value.width / 2 - 5 ? "end" : l.center.startX > t.value.width / 2 + 5 ? "start" : "middle",
409
- "font-size": t.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
410
- "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
411
- fill: e.value.style.chart.layout.markers.color
412
- }, $(n(B)(
413
- e.value.style.chart.layout.markers.formatter,
414
- l.from,
415
- n(L)({
416
- p: e.value.style.chart.layout.markers.prefix,
417
- v: l.from,
418
- s: e.value.style.chart.layout.markers.suffix,
419
- r: e.value.style.chart.layout.markers.roundingValue
420
- })
421
- )), 9, ot))), 256))
422
- ])) : d("", !0),
423
- e.value.style.chart.layout.markers.show ? (r(), s("text", {
424
- key: 2,
425
- x: n(A)({
426
- centerX: t.value.width / 2,
427
- centerY: c.value.base,
428
- initX: x.value.at(-1).endX,
429
- initY: x.value.at(-1).endY,
430
- offset: t.value.markerOffset
431
- }).x,
432
- y: n(A)({
433
- centerX: t.value.width / 2,
434
- centerY: c.value.base,
435
- initX: x.value.at(-1).endX,
436
- initY: x.value.at(-1).endY,
437
- offset: t.value.markerOffset
438
- }).y,
439
- "text-anchor": "start",
440
- "font-size": t.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
441
- "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
442
- fill: e.value.style.chart.layout.markers.color
443
- }, $(n(B)(
444
- e.value.style.chart.layout.markers.formatter,
445
- F.value,
446
- n(L)({
447
- p: e.value.style.chart.layout.markers.prefix,
448
- v: F.value,
449
- s: e.value.style.chart.layout.markers.suffix,
450
- r: e.value.style.chart.layout.markers.roundingValue
451
- })
452
- )), 9, rt)) : d("", !0),
453
- e.value.style.chart.layout.pointer.type === "rounded" ? (r(), s("g", st, [
454
- isNaN(f.value.x2) ? d("", !0) : (r(), s("line", {
455
- key: 0,
456
- x1: f.value.x1,
457
- y1: f.value.y1,
458
- x2: f.value.x2,
459
- y2: f.value.y2,
460
- stroke: e.value.style.chart.layout.pointer.stroke,
461
- "stroke-width": t.value.pointerStrokeWidth,
462
- "stroke-linecap": "round"
463
- }, null, 8, ut)),
464
- isNaN(f.value.x2) ? d("", !0) : (r(), s("line", {
465
- key: 1,
466
- x1: f.value.x1,
467
- y1: f.value.y1,
468
- x2: f.value.x2,
469
- y2: f.value.y2,
470
- stroke: e.value.style.chart.layout.pointer.useRatingColor ? G.value : e.value.style.chart.layout.pointer.color,
471
- "stroke-linecap": "round",
472
- "stroke-width": t.value.pointerStrokeWidth * 0.7
473
- }, null, 8, nt)),
474
- !isNaN(f.value.x2) && e.value.style.chart.layout.track.useGradient ? (r(), s("line", {
475
- key: 2,
476
- x1: f.value.x1,
477
- y1: f.value.y1,
478
- x2: f.value.x2,
479
- y2: f.value.y2,
480
- stroke: "white",
481
- "stroke-linecap": "round",
482
- "stroke-width": t.value.pointerStrokeWidth * 0.3,
483
- filter: `url(#blur_${k.value})`
484
- }, null, 8, it)) : d("", !0)
485
- ])) : (r(), s("g", ct, [
486
- le.value ? (r(), s("path", {
487
- key: 0,
488
- d: le.value,
489
- fill: e.value.style.chart.layout.pointer.useRatingColor ? G.value : e.value.style.chart.layout.pointer.color,
490
- stroke: e.value.style.chart.layout.pointer.stroke,
491
- "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
492
- "stroke-linejoin": "round"
493
- }, null, 8, vt)) : d("", !0)
494
- ])),
495
- g("circle", {
496
- cx: t.value.width / 2,
497
- cy: c.value.base,
498
- fill: e.value.style.chart.layout.pointer.circle.color,
499
- r: t.value.pointerRadius <= 0 ? 1e-4 : t.value.pointerRadius,
500
- "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
501
- stroke: e.value.style.chart.layout.pointer.circle.stroke
502
- }, null, 8, dt),
503
- e.value.style.chart.legend.show ? (r(), s("text", {
504
- key: 5,
505
- x: t.value.width / 2,
506
- y: c.value.ratingBase,
507
- "text-anchor": "middle",
508
- "font-size": t.value.legendFontSize,
509
- "font-weight": "bold",
510
- fill: e.value.style.chart.legend.useRatingColor ? G.value : e.value.style.chart.legend.color
511
- }, $(n(B)(
512
- e.value.style.chart.legend.formatter,
513
- h.value,
514
- n(L)({
515
- p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && h.value > 0 ? "+" : ""),
516
- v: h.value,
517
- s: e.value.style.chart.legend.suffix,
518
- r: e.value.style.chart.legend.roundingValue
519
- })
520
- )), 9, ht)) : d("", !0),
521
- m(a.$slots, "svg", { svg: t.value }, void 0, !0)
522
- ], 14, qe)) : d("", !0),
523
- a.$slots.watermark ? (r(), s("div", ft, [
524
- m(a.$slots, "watermark", E(T({ isPrinting: n(Q) || n(ee) })), void 0, !0)
525
- ])) : d("", !0),
526
- M.value ? d("", !0) : (r(), N(je, {
527
- key: 6,
528
- config: {
529
- type: "gauge",
530
- style: {
531
- backgroundColor: e.value.style.chart.backgroundColor,
532
- gauge: {
533
- color: "#CCCCCC"
534
- }
535
- }
536
- }
537
- }, null, 8, ["config"])),
538
- g("div", {
539
- ref_key: "chartLegend",
540
- ref: q
541
- }, [
542
- m(a.$slots, "legend", { legend: _.value }, void 0, !0)
543
- ], 512),
544
- a.$slots.source ? (r(), s("div", {
545
- key: 7,
546
- ref_key: "source",
547
- ref: H,
548
- dir: "auto"
549
- }, [
550
- m(a.$slots, "source", {}, void 0, !0)
551
- ], 512)) : d("", !0)
552
- ], 14, We));
553
- }
554
- }, zt = /* @__PURE__ */ Le(yt, [["__scopeId", "data-v-31427f30"]]);
555
- export {
556
- zt as default
557
- };