vue-data-ui 2.3.27 → 2.3.29

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 (183) hide show
  1. package/README.md +17 -1
  2. package/dist/{Arrow-HROOtfWV.cjs → Arrow-B8z06v67.cjs} +1 -1
  3. package/dist/{Arrow-O38M_J_k.js → Arrow-Bh7WeO_g.js} +1 -1
  4. package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-BG_bJS3R.js} +1 -1
  5. package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
  6. package/dist/{DataTable-EqeVt-K-.js → DataTable-CsPidn0_.js} +23 -20
  7. package/dist/DataTable-Doh_4M84.cjs +1 -0
  8. package/dist/{Legend-C_lBCmBu.cjs → Legend-B20rRwGi.cjs} +1 -1
  9. package/dist/{Legend-8eVERYMn.js → Legend-CkQ_zypV.js} +1 -1
  10. package/dist/{Shape-DvcgW6uK.js → Shape-B4gGeBLI.js} +1 -1
  11. package/dist/{Shape-D8RdmYWq.cjs → Shape-B8O8_E6l.cjs} +1 -1
  12. package/dist/{Slicer-BvYL7yVK.cjs → Slicer-BXveU40S.cjs} +1 -1
  13. package/dist/{Slicer-CH_5wnFM.js → Slicer-DaEfxscP.js} +1 -1
  14. package/dist/{Title-B9iq63n1.cjs → Title-BU6E8Xld.cjs} +1 -1
  15. package/dist/{Title-C3Ez1ceq.js → Title-eBTH8iGJ.js} +1 -1
  16. package/dist/{Tooltip-7SRMoiu-.js → Tooltip-B11OahTD.js} +1 -1
  17. package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
  18. package/dist/documentation/installation.md +1 -1
  19. package/dist/{index-DiWO-_ca.js → index-BlXzlBwZ.js} +447 -364
  20. package/dist/index-hKWfT7Wa.cjs +4 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +66 -0
  23. package/dist/types/vue-data-ui.d.ts +66 -0
  24. package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-BoNl5H_z.js} +1 -1
  25. package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
  26. package/dist/{usePrinter-BD40aUzH.js → usePrinter-CZ8F5Cth.js} +1 -1
  27. package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DoYKBzst.cjs} +1 -1
  28. package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-BOqzG_nZ.js} +57 -57
  29. package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +6 -6
  32. package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
  33. package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
  34. package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
  35. package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
  36. package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
  37. package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
  38. package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
  39. package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
  41. package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
  42. package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
  43. package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
  44. package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
  45. package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
  46. package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
  47. package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
  48. package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
  49. package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
  50. package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-CmSFSs5S.js} +2 -2
  51. package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
  52. package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
  53. package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
  54. package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
  55. package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
  56. package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
  57. package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
  58. package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
  59. package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-wq0aqc5r.js} +98 -93
  60. package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
  61. package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
  62. package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
  63. package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-CIN265dN.js} +158 -149
  64. package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
  65. package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
  66. package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
  67. package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
  68. package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
  69. package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
  70. package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
  71. package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
  72. package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
  73. package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
  74. package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
  75. package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
  76. package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
  77. package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
  78. package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-B_khL0Kv.js} +230 -196
  79. package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
  80. package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
  81. package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
  82. package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
  83. package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
  84. package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
  85. package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
  86. package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-B2vAPYa7.js} +237 -214
  87. package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
  88. package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
  89. package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-xGz4av68.js} +9 -9
  90. package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
  91. package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
  92. package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
  93. package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
  94. package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CHONk8k0.js} +437 -381
  95. package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
  96. package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
  97. package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
  98. package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
  99. package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
  101. package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-DXVcosKR.js} +2 -2
  102. package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
  103. package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
  104. package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
  105. package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
  106. package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
  107. package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
  108. package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
  109. package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
  110. package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
  111. package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
  112. package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
  113. package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
  114. package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
  115. package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
  116. package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
  117. package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
  118. package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
  119. package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-DtwEoIzI.js} +9 -9
  120. package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
  121. package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
  122. package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
  123. package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
  124. package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
  125. package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
  126. package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
  127. package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-RA9yfgBk.js} +8 -8
  128. package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
  129. package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
  130. package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
  131. package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
  132. package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
  133. package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
  134. package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
  135. package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
  136. package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
  137. package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
  138. package/dist/vue-ui-word-cloud-DBxVNlJ3.js +495 -0
  139. package/dist/vue-ui-word-cloud-Dmcelg3z.cjs +1 -0
  140. package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BIbvJSh2.js} +367 -288
  141. package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
  142. package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
  143. package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
  144. package/package.json +1 -1
  145. package/dist/DataTable-C6HTLT7L.cjs +0 -1
  146. package/dist/index-BQOxn6SH.cjs +0 -4
  147. package/dist/vue-ui-3d-bar-DkJ4c3HQ.cjs +0 -19
  148. package/dist/vue-ui-age-pyramid-CkKVbbl8.cjs +0 -1
  149. package/dist/vue-ui-chestnut-C7gFvKLJ.cjs +0 -6
  150. package/dist/vue-ui-donut-C33U3e8H.js +0 -751
  151. package/dist/vue-ui-donut-CeHnjIGu.cjs +0 -1
  152. package/dist/vue-ui-donut-evolution-IzfAVo5I.js +0 -805
  153. package/dist/vue-ui-donut-evolution-hHfvz1Yd.cjs +0 -1
  154. package/dist/vue-ui-galaxy-B8EoId23.cjs +0 -1
  155. package/dist/vue-ui-gizmo-8lKc8m8b.cjs +0 -1
  156. package/dist/vue-ui-heatmap-BEsvmj5R.js +0 -606
  157. package/dist/vue-ui-heatmap-DvpvKq3Q.cjs +0 -1
  158. package/dist/vue-ui-mood-radar-C6devC4e.cjs +0 -1
  159. package/dist/vue-ui-nested-donuts-BtT3VsSf.cjs +0 -16
  160. package/dist/vue-ui-onion-9ATTDUpw.cjs +0 -1
  161. package/dist/vue-ui-quadrant-DD4H_Dhk.cjs +0 -1
  162. package/dist/vue-ui-quick-chart-CpFHKtpm.js +0 -1318
  163. package/dist/vue-ui-quick-chart-D1udOl47.cjs +0 -13
  164. package/dist/vue-ui-radar-CZmJDj3q.cjs +0 -1
  165. package/dist/vue-ui-rings-DN7XmhKZ.cjs +0 -1
  166. package/dist/vue-ui-scatter-DJlC5mz4.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-0CNZluKs.js +0 -257
  168. package/dist/vue-ui-sparkbar-Di-BPkJ0.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-BhkYmR4U.cjs +0 -1
  170. package/dist/vue-ui-stackbar-jNWFgXiA.cjs +0 -15
  171. package/dist/vue-ui-strip-plot-CzHFNhr3.cjs +0 -1
  172. package/dist/vue-ui-table-sparkline-DZY_23mg.js +0 -420
  173. package/dist/vue-ui-table-sparkline-Q8y6tloS.cjs +0 -1
  174. package/dist/vue-ui-thermometer-Cbu9jVvC.cjs +0 -1
  175. package/dist/vue-ui-treemap-orjA7Y0U.cjs +0 -1
  176. package/dist/vue-ui-vertical-bar-BHIt5cjc.cjs +0 -4
  177. package/dist/vue-ui-vertical-bar-BquCm_UG.js +0 -745
  178. package/dist/vue-ui-waffle-CNlp7RTS.js +0 -650
  179. package/dist/vue-ui-waffle-Dv8pXiYm.cjs +0 -1
  180. package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
  181. package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
  182. package/dist/vue-ui-xy-BOoG4xg8.cjs +0 -3
  183. package/dist/vue-ui-xy-canvas-BHa3-phi.cjs +0 -9
@@ -1,15 +1,15 @@
1
- import { computed as p, ref as d, watch as ye, onMounted as ge, onBeforeUnmount as pe, openBlock as o, createElementBlock as n, normalizeClass as Z, normalizeStyle as E, createVNode as me, withCtx as I, toDisplayString as m, createCommentVNode as g, createBlock as J, unref as v, createSlots as ke, renderSlot as F, normalizeProps as K, guardReactiveProps as Q, createElementVNode as h, Fragment as O, renderList as A } from "vue";
2
- import { u as be, c as _e, t as xe, a as we, p as ee, b as Fe, o as te, d as Se, e as X, g as ae, m as le, X as ze, r as j, G as N, B as re } from "./index-DiWO-_ca.js";
3
- import { t as $e, u as Ce } from "./useResponsive-NZB-WLRF.js";
4
- import { u as Me, U as Pe } from "./usePrinter-BD40aUzH.js";
5
- import Ie from "./vue-ui-skeleton-CeNL0kH-.js";
6
- import { _ as Oe } from "./Title-C3Ez1ceq.js";
7
- import { u as oe } from "./useNestedProp-DNX5EefQ.js";
8
- import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee = ["stop-color"], Ae = ["stop-color"], je = ["stop-color"], Be = ["id"], Ue = ["stdDeviation"], Ve = ["d", "fill", "stroke"], De = ["d", "filter"], We = ["y", "width", "height", "fill"], Le = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Te = ["x", "y", "font-size", "font-weight", "fill"], qe = { key: 1 }, He = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ze = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Je = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], Ke = { key: 2 }, Qe = ["d", "fill", "stroke", "stroke-width"], et = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], tt = ["x", "y", "font-size", "fill"], at = {
1
+ import { computed as p, ref as d, watch as ye, onMounted as ge, onBeforeUnmount as pe, openBlock as s, createElementBlock as n, normalizeClass as Z, normalizeStyle as E, createVNode as me, withCtx as I, toDisplayString as z, createCommentVNode as g, createBlock as J, unref as c, createSlots as ke, renderSlot as w, normalizeProps as K, guardReactiveProps as Q, createElementVNode as h, Fragment as O, renderList as A } from "vue";
2
+ import { u as be, c as _e, t as xe, a as we, p as ee, b as Fe, o as te, d as Se, e as X, g as ae, m as le, X as ze, v as j, H as N, i as $e, f as Ce, C as re } from "./index-BlXzlBwZ.js";
3
+ import { t as Me, u as Pe } from "./useResponsive-NZB-WLRF.js";
4
+ import { u as Ie, U as Oe } from "./usePrinter-CZ8F5Cth.js";
5
+ import Xe from "./vue-ui-skeleton-CJ2R5R6u.js";
6
+ import { _ as Ne } from "./Title-eBTH8iGJ.js";
7
+ import { u as se } from "./useNestedProp-BoNl5H_z.js";
8
+ import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const Ge = ["id"], Re = { key: 0 }, Ee = ["xmlns", "viewBox"], Ae = ["id"], je = ["stop-color"], De = ["stop-color"], Le = ["stop-color"], Ue = ["id"], Ve = ["stdDeviation"], Be = ["d", "fill", "stroke"], We = ["d", "filter"], Te = ["y", "width", "height", "fill"], qe = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], He = ["x", "y", "font-size", "font-weight", "fill"], Ze = { key: 1 }, Je = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ke = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Qe = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], et = { key: 2 }, tt = ["d", "fill", "stroke", "stroke-width"], at = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], lt = ["x", "y", "font-size", "fill"], rt = {
10
10
  key: 3,
11
11
  class: "vue-data-ui-watermark"
12
- }, lt = {
12
+ }, st = {
13
13
  __name: "vue-ui-gauge",
14
14
  props: {
15
15
  config: {
@@ -25,23 +25,23 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
25
25
  }
26
26
  }
27
27
  },
28
- setup(Y, { expose: se }) {
29
- const u = Y, { vue_ui_gauge: ue } = be(), $ = p(() => !!u.dataset && Object.keys(u.dataset).length), k = d(_e()), ne = d(null), B = d(0), C = d(null), U = d(null), V = d(null), e = p(() => {
30
- const l = oe({
28
+ setup(Y, { expose: oe }) {
29
+ const u = Y, { vue_ui_gauge: ue } = be(), $ = p(() => !!u.dataset && Object.keys(u.dataset).length), m = d(_e()), ne = d(null), D = d(0), C = d(null), L = d(null), U = d(null), e = p(() => {
30
+ const l = se({
31
31
  userConfig: u.config,
32
32
  defaultConfig: ue
33
33
  });
34
34
  return l.theme ? {
35
- ...oe({
35
+ ...se({
36
36
  userConfig: xe.vue_ui_gauge[l.theme] || u.config,
37
37
  defaultConfig: l
38
38
  }),
39
39
  customPalette: we[l.theme] || ee
40
40
  } : l;
41
- }), { isPrinting: D, isImaging: W, generatePdf: L, generateImage: T } = Me({
42
- elementId: `vue-ui-gauge_${k.value}`,
41
+ }), { isPrinting: V, isImaging: B, generatePdf: W, generateImage: T } = Ie({
42
+ elementId: `vue-ui-gauge_${m.value}`,
43
43
  fileName: e.value.style.chart.title.text || "vue-ui-gauge"
44
- }), ie = p(() => Fe(e.value.customPalette)), _ = p(() => {
44
+ }), ie = p(() => Fe(e.value.customPalette)), b = p(() => {
45
45
  if (!$.value || te(u.dataset.series || {}))
46
46
  return {
47
47
  value: 0,
@@ -65,13 +65,13 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
65
65
  value: ((a.to || 0) - (a.from || 0)) / r * 100
66
66
  }))
67
67
  };
68
- }), f = d(512), t = d({
68
+ }), y = d(512), t = d({
69
69
  height: 358.4,
70
- width: f.value,
70
+ width: y.value,
71
71
  top: 0,
72
72
  bottom: 358.4,
73
73
  centerX: 179.2,
74
- centerY: f.value / 2,
74
+ centerY: y.value / 2,
75
75
  labelFontSize: 18,
76
76
  legendFontSize: e.value.style.chart.legend.fontSize,
77
77
  pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
@@ -79,25 +79,25 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
79
79
  pointerSize: e.value.style.chart.layout.pointer.size,
80
80
  pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
81
81
  markerOffset: e.value.style.chart.layout.markers.offsetY + 3
82
- }), S = d(0), x = d(0), y = d(e.value.style.chart.animation.use ? 0 : u.dataset.value);
82
+ }), F = d(0), _ = d(0), f = d(e.value.style.chart.animation.use ? 0 : u.dataset.value);
83
83
  ye(() => u.dataset.value, () => {
84
- y.value = e.value.style.chart.animation.use ? 0 : u.dataset.value, H();
84
+ f.value = e.value.style.chart.animation.use ? 0 : u.dataset.value, H();
85
85
  });
86
- const c = p(() => {
87
- const l = t.value.width / 2, r = s.value.base, a = Math.PI * ((y.value + 0 - x.value) / (S.value - x.value)) + Math.PI;
86
+ const v = p(() => {
87
+ const l = t.value.width / 2, r = o.value.base, a = Math.PI * ((f.value + 0 - _.value) / (F.value - _.value)) + Math.PI;
88
88
  return {
89
89
  x1: l,
90
90
  y1: r,
91
- x2: l + s.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(a),
92
- y2: r + s.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(a)
91
+ x2: l + o.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(a),
92
+ y2: r + o.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(a)
93
93
  };
94
94
  }), q = p(() => {
95
- const l = t.value.width / 2, r = s.value.base, a = Math.PI * ((y.value + 0 - x.value) / (S.value - x.value)) + Math.PI, i = l + s.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(a), R = r + s.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(a), b = t.value.pointerRadius, P = l + b * Math.cos(a + Math.PI / 2), de = r + b * Math.sin(a + Math.PI / 2), he = l + b * Math.cos(a - Math.PI / 2), fe = r + b * Math.sin(a - Math.PI / 2);
95
+ const l = t.value.width / 2, r = o.value.base, a = Math.PI * ((f.value + 0 - _.value) / (F.value - _.value)) + Math.PI, i = l + o.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(a), R = r + o.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(a), k = t.value.pointerRadius, P = l + k * Math.cos(a + Math.PI / 2), de = r + k * Math.sin(a + Math.PI / 2), he = l + k * Math.cos(a - Math.PI / 2), fe = r + k * Math.sin(a - Math.PI / 2);
96
96
  return isNaN(i) ? null : `M ${i},${R} ${P},${de} ${he},${fe} Z`;
97
97
  }), G = p(() => {
98
- for (let l = 0; l < _.value.series.length; l += 1) {
99
- const { color: r, from: a, to: i } = _.value.series[l];
100
- if (y.value >= a && y.value <= i)
98
+ for (let l = 0; l < b.value.series.length; l += 1) {
99
+ const { color: r, from: a, to: i } = b.value.series[l];
100
+ if (f.value >= a && f.value <= i)
101
101
  return r;
102
102
  }
103
103
  return "#2D353C";
@@ -132,21 +132,21 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
132
132
  type: "datasetAttributeEmpty",
133
133
  property: "series"
134
134
  }))), H(), e.value.responsive) {
135
- const l = $e(() => {
136
- const { width: r, height: a } = Ce({
135
+ const l = Me(() => {
136
+ const { width: r, height: a } = Pe({
137
137
  chart: C.value,
138
- title: e.value.style.chart.title.text ? U.value : null,
139
- legend: V.value
138
+ title: e.value.style.chart.title.text ? L.value : null,
139
+ legend: U.value
140
140
  });
141
- t.value.width = r, t.value.height = a, t.value.centerX = r / 2, t.value.centerY = f.value / 2 / 358.4 * a, t.value.bottom = a, t.value.labelFontSize = 18 / f.value * Math.min(a, r) < 10 ? 10 : 18 / f.value * Math.min(a, r), t.value.legendFontSize = e.value.style.chart.legend.fontSize / f.value * Math.min(a, r) < 14 ? 14 : e.value.style.chart.legend.fontSize / f.value * Math.min(a, r), t.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / f.value * Math.min(a, r), t.value.trackSize = e.value.style.chart.layout.track.size / f.value * Math.min(a, r), t.value.pointerStrokeWidth = re({
141
+ t.value.width = r, t.value.height = a, t.value.centerX = r / 2, t.value.centerY = y.value / 2 / 358.4 * a, t.value.bottom = a, t.value.labelFontSize = 18 / y.value * Math.min(a, r) < 10 ? 10 : 18 / y.value * Math.min(a, r), t.value.legendFontSize = e.value.style.chart.legend.fontSize / y.value * Math.min(a, r) < 14 ? 14 : e.value.style.chart.legend.fontSize / y.value * Math.min(a, r), t.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / y.value * Math.min(a, r), t.value.trackSize = e.value.style.chart.layout.track.size / y.value * Math.min(a, r), t.value.pointerStrokeWidth = re({
142
142
  relator: Math.min(r, a),
143
- adjuster: f.value,
143
+ adjuster: y.value,
144
144
  source: e.value.style.chart.layout.pointer.strokeWidth,
145
145
  threshold: 2,
146
146
  fallback: 2
147
147
  }), t.value.markerOffset = re({
148
148
  relator: Math.max(r, a),
149
- adjuster: f.value,
149
+ adjuster: y.value,
150
150
  source: e.value.style.chart.layout.markers.offsetY + 3,
151
151
  threshold: 2,
152
152
  fallback: 2
@@ -159,17 +159,17 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
159
159
  });
160
160
  function H() {
161
161
  const l = [];
162
- (_.value.series || []).forEach((P) => {
162
+ (b.value.series || []).forEach((P) => {
163
163
  l.push(P.from || 0), l.push(P.to || 0);
164
- }), S.value = Math.max(...l), x.value = Math.min(...l);
165
- const r = String(S.value).length;
164
+ }), F.value = Math.max(...l), _.value = Math.min(...l);
165
+ const r = String(F.value).length;
166
166
  let a = 0, i = (r > 2 ? 0.01 : 1e-3) * e.value.style.chart.animation.speed, R = (r > 2 ? 0.05 : 5e-3) * e.value.style.chart.animation.acceleration;
167
- function b() {
168
- y.value += i + a, a += R, y.value < u.dataset.value ? requestAnimationFrame(b) : y.value = u.dataset.value;
167
+ function k() {
168
+ f.value += i + a, a += R, f.value < u.dataset.value ? requestAnimationFrame(k) : f.value = u.dataset.value;
169
169
  }
170
- e.value.style.chart.animation.use && (y.value = x.value, b());
170
+ e.value.style.chart.animation.use && (f.value = _.value, k());
171
171
  }
172
- const s = p(() => {
172
+ const o = p(() => {
173
173
  const l = e.value.responsive ? Math.min(t.value.width, t.value.height) : t.value.width;
174
174
  return {
175
175
  arcs: l / 2.5,
@@ -178,12 +178,12 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
178
178
  ratingBase: e.value.responsive ? t.value.height / 2 + t.value.height / 4 : t.value.height * 0.9,
179
179
  pointerSize: e.value.responsive ? Math.min(t.value.width, t.value.height) / 3 : t.value.width / 3.2
180
180
  };
181
- }), w = p(() => le(
182
- { series: _.value.series },
181
+ }), x = p(() => le(
182
+ { series: b.value.series },
183
183
  t.value.width / 2,
184
- s.value.base,
185
- s.value.arcs,
186
- s.value.arcs,
184
+ o.value.base,
185
+ o.value.arcs,
186
+ o.value.arcs,
187
187
  1,
188
188
  1,
189
189
  1,
@@ -191,38 +191,38 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
191
191
  109.9495,
192
192
  40 * t.value.trackSize
193
193
  )), ce = p(() => le(
194
- { series: _.value.series },
194
+ { series: b.value.series },
195
195
  t.value.width / 2,
196
- s.value.base,
197
- s.value.gradients,
198
- s.value.gradients,
196
+ o.value.base,
197
+ o.value.gradients,
198
+ o.value.gradients,
199
199
  1,
200
200
  1,
201
201
  1,
202
202
  180,
203
203
  109.9495,
204
204
  2 * t.value.trackSize
205
- )), z = d(!1);
205
+ )), S = d(!1);
206
206
  function ve(l) {
207
- z.value = l, B.value += 1;
207
+ S.value = l, D.value += 1;
208
208
  }
209
- return se({
210
- generatePdf: L,
209
+ return oe({
210
+ generatePdf: W,
211
211
  generateImage: T
212
- }), (l, r) => (o(), n("div", {
213
- class: Z(`vue-ui-gauge ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
212
+ }), (l, r) => (s(), n("div", {
213
+ class: Z(`vue-ui-gauge ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
214
214
  ref_key: "gaugeChart",
215
215
  ref: C,
216
- id: `vue-ui-gauge_${k.value}`,
216
+ id: `vue-ui-gauge_${m.value}`,
217
217
  style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
218
218
  }, [
219
- e.value.style.chart.title.text ? (o(), n("div", {
219
+ e.value.style.chart.title.text ? (s(), n("div", {
220
220
  key: 0,
221
221
  ref_key: "chartTitle",
222
- ref: U,
222
+ ref: L,
223
223
  style: E(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
224
224
  }, [
225
- me(Oe, {
225
+ me(Ne, {
226
226
  config: {
227
227
  title: {
228
228
  cy: "gauge-div-title",
@@ -235,63 +235,63 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
235
235
  }
236
236
  }, {
237
237
  default: I(() => [
238
- e.value.translations.base && Y.dataset.base ? (o(), n("span", Ye, m(e.value.translations.base) + ": " + m(Y.dataset.base), 1)) : g("", !0)
238
+ e.value.translations.base && Y.dataset.base ? (s(), n("span", Re, z(e.value.translations.base) + ": " + z(Y.dataset.base), 1)) : g("", !0)
239
239
  ]),
240
240
  _: 1
241
241
  }, 8, ["config"])
242
242
  ], 4)) : g("", !0),
243
- e.value.userOptions.show && $.value ? (o(), J(Pe, {
243
+ e.value.userOptions.show && $.value ? (s(), J(Oe, {
244
244
  ref_key: "details",
245
245
  ref: ne,
246
- key: `user_options_${B.value}`,
246
+ key: `user_options_${D.value}`,
247
247
  backgroundColor: e.value.style.chart.backgroundColor,
248
248
  color: e.value.style.chart.color,
249
- isImaging: v(W),
250
- isPrinting: v(D),
251
- uid: k.value,
249
+ isImaging: c(B),
250
+ isPrinting: c(V),
251
+ uid: m.value,
252
252
  hasXls: !1,
253
253
  hasPdf: e.value.userOptions.buttons.pdf,
254
254
  hasImg: e.value.userOptions.buttons.img,
255
255
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
256
- isFullscreen: z.value,
256
+ isFullscreen: S.value,
257
257
  titles: { ...e.value.userOptions.buttonTitles },
258
258
  chartElement: C.value,
259
259
  onToggleFullscreen: ve,
260
- onGeneratePdf: v(L),
261
- onGenerateImage: v(T)
260
+ onGeneratePdf: c(W),
261
+ onGenerateImage: c(T)
262
262
  }, ke({ _: 2 }, [
263
263
  l.$slots.optionPdf ? {
264
264
  name: "optionPdf",
265
265
  fn: I(() => [
266
- F(l.$slots, "optionPdf", {}, void 0, !0)
266
+ w(l.$slots, "optionPdf", {}, void 0, !0)
267
267
  ]),
268
268
  key: "0"
269
269
  } : void 0,
270
270
  l.$slots.optionImg ? {
271
271
  name: "optionImg",
272
272
  fn: I(() => [
273
- F(l.$slots, "optionImg", {}, void 0, !0)
273
+ w(l.$slots, "optionImg", {}, void 0, !0)
274
274
  ]),
275
275
  key: "1"
276
276
  } : void 0,
277
277
  l.$slots.optionFullscreen ? {
278
278
  name: "optionFullscreen",
279
279
  fn: I(({ toggleFullscreen: a, isFullscreen: i }) => [
280
- F(l.$slots, "optionFullscreen", K(Q({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
280
+ w(l.$slots, "optionFullscreen", K(Q({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
281
281
  ]),
282
282
  key: "2"
283
283
  } : void 0
284
284
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
285
- $.value ? (o(), n("svg", {
285
+ $.value ? (s(), n("svg", {
286
286
  key: 2,
287
- xmlns: v(ze),
288
- class: Z({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
287
+ xmlns: c(ze),
288
+ class: Z({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
289
289
  viewBox: `0 0 ${t.value.width <= 0 ? 10 : t.value.width} ${t.value.height <= 0 ? 10 : t.value.height}`,
290
290
  style: E(`max-width:100%;overflow:hidden !important;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
291
291
  }, [
292
292
  h("defs", null, [
293
293
  h("radialGradient", {
294
- id: `gradient_${k.value}`,
294
+ id: `gradient_${m.value}`,
295
295
  cx: "50%",
296
296
  cy: "50%",
297
297
  r: "50%",
@@ -300,21 +300,21 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
300
300
  }, [
301
301
  h("stop", {
302
302
  offset: "0%",
303
- "stop-color": `#FFFFFF${v(j)[1]}`
304
- }, null, 8, Ee),
303
+ "stop-color": `#FFFFFF${c(j)[1]}`
304
+ }, null, 8, je),
305
305
  h("stop", {
306
306
  offset: "80%",
307
- "stop-color": `#FFFFFF${v(j)[e.value.style.chart.layout.track.gradientIntensity]}`
308
- }, null, 8, Ae),
307
+ "stop-color": `#FFFFFF${c(j)[e.value.style.chart.layout.track.gradientIntensity]}`
308
+ }, null, 8, De),
309
309
  h("stop", {
310
310
  offset: "100%",
311
- "stop-color": `#FFFFFF${v(j)[1]}`
312
- }, null, 8, je)
313
- ], 8, Re)
311
+ "stop-color": `#FFFFFF${c(j)[1]}`
312
+ }, null, 8, Le)
313
+ ], 8, Ae)
314
314
  ]),
315
315
  h("defs", null, [
316
316
  h("filter", {
317
- id: `blur_${k.value}`,
317
+ id: `blur_${m.value}`,
318
318
  x: "-50%",
319
319
  y: "-50%",
320
320
  width: "200%",
@@ -323,44 +323,44 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
323
323
  h("feGaussianBlur", {
324
324
  in: "SourceGraphic",
325
325
  stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
326
- }, null, 8, Ue)
327
- ], 8, Be)
326
+ }, null, 8, Ve)
327
+ ], 8, Ue)
328
328
  ]),
329
- (o(!0), n(O, null, A(w.value, (a, i) => (o(), n("path", {
329
+ (s(!0), n(O, null, A(x.value, (a, i) => (s(), n("path", {
330
330
  key: `arc_${i}`,
331
331
  d: a.arcSlice,
332
332
  fill: a.color,
333
333
  stroke: e.value.style.chart.backgroundColor,
334
334
  "stroke-linecap": "round"
335
- }, null, 8, Ve))), 128)),
336
- e.value.style.chart.layout.track.useGradient ? (o(), n(O, { key: 0 }, [
337
- (o(!0), n(O, null, A(ce.value, (a, i) => (o(), n("path", {
335
+ }, null, 8, Be))), 128)),
336
+ e.value.style.chart.layout.track.useGradient ? (s(), n(O, { key: 0 }, [
337
+ (s(!0), n(O, null, A(ce.value, (a, i) => (s(), n("path", {
338
338
  key: `arc_${i}`,
339
339
  d: a.arcSlice,
340
340
  fill: "#FFFFFF",
341
341
  stroke: "none",
342
342
  "stroke-linecap": "round",
343
- filter: `url(#blur_${k.value})`
344
- }, null, 8, De))), 128)),
343
+ filter: `url(#blur_${m.value})`
344
+ }, null, 8, We))), 128)),
345
345
  h("rect", {
346
346
  x: 0,
347
- y: s.value.base,
347
+ y: o.value.base,
348
348
  width: t.value.width <= 0 ? 1e-4 : t.value.width,
349
349
  height: t.value.height * 0.3 <= 0 ? 1e-4 : t.value.height * 0.3,
350
350
  fill: e.value.style.chart.backgroundColor
351
- }, null, 8, We)
351
+ }, null, 8, Te)
352
352
  ], 64)) : g("", !0),
353
- (o(!0), n(O, null, A(w.value, (a, i) => (o(), n("text", {
354
- x: v(N)({
353
+ (s(!0), n(O, null, A(x.value, (a, i) => (s(), n("text", {
354
+ x: c(N)({
355
355
  centerX: t.value.width / 2,
356
- centerY: s.value.base,
356
+ centerY: o.value.base,
357
357
  initX: a.center.startX,
358
358
  initY: a.center.startY,
359
359
  offset: t.value.markerOffset
360
360
  }).x,
361
- y: v(N)({
361
+ y: c(N)({
362
362
  centerX: t.value.width / 2,
363
- centerY: s.value.base,
363
+ centerY: o.value.base,
364
364
  initX: a.center.startX,
365
365
  initY: a.center.startY,
366
366
  offset: t.value.markerOffset
@@ -369,91 +369,100 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
369
369
  "font-size": t.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
370
370
  "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
371
371
  fill: e.value.style.chart.layout.markers.color
372
- }, m(a.from.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, Le))), 256)),
372
+ }, z(a.from.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, qe))), 256)),
373
373
  h("text", {
374
- x: v(N)({
374
+ x: c(N)({
375
375
  centerX: t.value.width / 2,
376
- centerY: s.value.base,
377
- initX: w.value.at(-1).endX,
378
- initY: w.value.at(-1).endY,
376
+ centerY: o.value.base,
377
+ initX: x.value.at(-1).endX,
378
+ initY: x.value.at(-1).endY,
379
379
  offset: t.value.markerOffset
380
380
  }).x,
381
- y: v(N)({
381
+ y: c(N)({
382
382
  centerX: t.value.width / 2,
383
- centerY: s.value.base,
384
- initX: w.value.at(-1).endX,
385
- initY: w.value.at(-1).endY,
383
+ centerY: o.value.base,
384
+ initX: x.value.at(-1).endX,
385
+ initY: x.value.at(-1).endY,
386
386
  offset: t.value.markerOffset
387
387
  }).y,
388
388
  "text-anchor": "start",
389
389
  "font-size": t.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
390
390
  "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
391
391
  fill: e.value.style.chart.layout.markers.color
392
- }, m(S.value.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, Te),
393
- e.value.style.chart.layout.pointer.type === "rounded" ? (o(), n("g", qe, [
394
- isNaN(c.value.x2) ? g("", !0) : (o(), n("line", {
392
+ }, z(F.value.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, He),
393
+ e.value.style.chart.layout.pointer.type === "rounded" ? (s(), n("g", Ze, [
394
+ isNaN(v.value.x2) ? g("", !0) : (s(), n("line", {
395
395
  key: 0,
396
- x1: c.value.x1,
397
- y1: c.value.y1,
398
- x2: c.value.x2,
399
- y2: c.value.y2,
396
+ x1: v.value.x1,
397
+ y1: v.value.y1,
398
+ x2: v.value.x2,
399
+ y2: v.value.y2,
400
400
  stroke: e.value.style.chart.layout.pointer.stroke,
401
401
  "stroke-width": t.value.pointerStrokeWidth,
402
402
  "stroke-linecap": "round"
403
- }, null, 8, He)),
404
- isNaN(c.value.x2) ? g("", !0) : (o(), n("line", {
403
+ }, null, 8, Je)),
404
+ isNaN(v.value.x2) ? g("", !0) : (s(), n("line", {
405
405
  key: 1,
406
- x1: c.value.x1,
407
- y1: c.value.y1,
408
- x2: c.value.x2,
409
- y2: c.value.y2,
406
+ x1: v.value.x1,
407
+ y1: v.value.y1,
408
+ x2: v.value.x2,
409
+ y2: v.value.y2,
410
410
  stroke: e.value.style.chart.layout.pointer.useRatingColor ? G.value : e.value.style.chart.layout.pointer.color,
411
411
  "stroke-linecap": "round",
412
412
  "stroke-width": t.value.pointerStrokeWidth * 0.7
413
- }, null, 8, Ze)),
414
- !isNaN(c.value.x2) && e.value.style.chart.layout.track.useGradient ? (o(), n("line", {
413
+ }, null, 8, Ke)),
414
+ !isNaN(v.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), n("line", {
415
415
  key: 2,
416
- x1: c.value.x1,
417
- y1: c.value.y1,
418
- x2: c.value.x2,
419
- y2: c.value.y2,
416
+ x1: v.value.x1,
417
+ y1: v.value.y1,
418
+ x2: v.value.x2,
419
+ y2: v.value.y2,
420
420
  stroke: "white",
421
421
  "stroke-linecap": "round",
422
422
  "stroke-width": t.value.pointerStrokeWidth * 0.3,
423
- filter: `url(#blur_${k.value})`
424
- }, null, 8, Je)) : g("", !0)
425
- ])) : (o(), n("g", Ke, [
426
- q.value ? (o(), n("path", {
423
+ filter: `url(#blur_${m.value})`
424
+ }, null, 8, Qe)) : g("", !0)
425
+ ])) : (s(), n("g", et, [
426
+ q.value ? (s(), n("path", {
427
427
  key: 0,
428
428
  d: q.value,
429
429
  fill: e.value.style.chart.layout.pointer.useRatingColor ? G.value : e.value.style.chart.layout.pointer.color,
430
430
  stroke: e.value.style.chart.layout.pointer.stroke,
431
431
  "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
432
432
  "stroke-linejoin": "round"
433
- }, null, 8, Qe)) : g("", !0)
433
+ }, null, 8, tt)) : g("", !0)
434
434
  ])),
435
435
  h("circle", {
436
436
  cx: t.value.width / 2,
437
- cy: s.value.base,
437
+ cy: o.value.base,
438
438
  fill: e.value.style.chart.layout.pointer.circle.color,
439
439
  r: t.value.pointerRadius <= 0 ? 1e-4 : t.value.pointerRadius,
440
440
  "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
441
441
  stroke: e.value.style.chart.layout.pointer.circle.stroke
442
- }, null, 8, et),
442
+ }, null, 8, at),
443
443
  h("text", {
444
444
  x: t.value.width / 2,
445
- y: s.value.ratingBase,
445
+ y: o.value.ratingBase,
446
446
  "text-anchor": "middle",
447
447
  "font-size": t.value.legendFontSize,
448
448
  "font-weight": "bold",
449
449
  fill: e.value.style.chart.legend.useRatingColor ? G.value : e.value.style.chart.legend.color
450
- }, m(e.value.style.chart.legend.prefix) + " " + m(e.value.style.chart.legend.showPlusSymbol && y.value > 0 ? "+" : "") + m(y.value.toFixed(e.value.style.chart.legend.roundingValue)) + " " + m(e.value.style.chart.legend.suffix), 9, tt),
451
- F(l.$slots, "svg", { svg: t.value }, void 0, !0)
452
- ], 14, Ge)) : g("", !0),
453
- l.$slots.watermark ? (o(), n("div", at, [
454
- F(l.$slots, "watermark", K(Q({ isPrinting: v(D) || v(W) })), void 0, !0)
450
+ }, z(c($e)(
451
+ e.value.style.chart.legend.formatter,
452
+ f.value,
453
+ c(Ce)({
454
+ p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && f.value > 0 ? "+" : ""),
455
+ v: f.value,
456
+ s: e.value.style.chart.legend.suffix,
457
+ r: e.value.style.chart.legend.roundingValue
458
+ })
459
+ )), 9, lt),
460
+ w(l.$slots, "svg", { svg: t.value }, void 0, !0)
461
+ ], 14, Ee)) : g("", !0),
462
+ l.$slots.watermark ? (s(), n("div", rt, [
463
+ w(l.$slots, "watermark", K(Q({ isPrinting: c(V) || c(B) })), void 0, !0)
455
464
  ])) : g("", !0),
456
- $.value ? g("", !0) : (o(), J(Ie, {
465
+ $.value ? g("", !0) : (s(), J(Xe, {
457
466
  key: 4,
458
467
  config: {
459
468
  type: "gauge",
@@ -467,13 +476,13 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
467
476
  }, null, 8, ["config"])),
468
477
  h("div", {
469
478
  ref_key: "chartLegend",
470
- ref: V
479
+ ref: U
471
480
  }, [
472
- F(l.$slots, "legend", { legend: _.value }, void 0, !0)
481
+ w(l.$slots, "legend", { legend: b.value }, void 0, !0)
473
482
  ], 512)
474
- ], 14, Ne));
483
+ ], 14, Ge));
475
484
  }
476
- }, dt = /* @__PURE__ */ Xe(lt, [["__scopeId", "data-v-ce24b5db"]]);
485
+ }, ft = /* @__PURE__ */ Ye(st, [["__scopeId", "data-v-938ebae3"]]);
477
486
  export {
478
- dt as default
487
+ ft as default
479
488
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-hKWfT7Wa.cjs"),f=require("./useNestedProp-Cggpoz7e.cjs"),h=["viewBox","width"],m={key:0},k=["id"],_=["stop-color"],v=["stop-color"],y=["stroke"],p=["stroke"],g=["width","fill"],N=["fill"],C={key:0},x=["id"],B=e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1),E=[B],V=["stroke"],w=["stroke","stroke-dasharray","stroke-dashoffset"],b=["filter"],L=["stroke","stroke-dasharray","stroke-dashoffset"],z=["fill"],G={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(n){const o=n,{vue_ui_gizmo:d}=a.useConfig(),s=e.ref(a.createUid());e.onMounted(()=>{!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(()=>f.useNestedProp({userConfig:o.config,defaultConfig:d})),i=e.computed(()=>({battery:{width:t.value.showPercentage?140:80,height:50},gauge:{width:80,height:80}})[t.value.type]),l=e.computed(()=>{const r=2*Math.PI*35,u=r-o.dataset/100*r;return{dasharray:`${r} ${r}`,dashoffset:u}});return(c,r)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-gizmo",viewBox:`0 0 ${i.value.width} ${i.value.height}`,width:t.value.size,style:e.normalizeStyle({background:"transparent",fontFamily:t.value.fontFamily})},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",m,[e.createElementVNode("linearGradient",{id:`gizmo_gradient_${s.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.gradientColor},null,8,_),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,v)],8,k)])):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,y),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,p),e.createElementVNode("rect",{x:10,y:10,height:30,width:55*(n.dataset/100),fill:t.value.useGradient?`url(#gizmo_gradient_${s.value})`:t.value.color,rx:2},null,8,g),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,N)):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",C,[e.createElementVNode("filter",{id:`blur_${s.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},E,8,x)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.stroke,"stroke-width":2*4,fill:"none"},null,8,V),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,w),t.value.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${s.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,L)],8,b)):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,z)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,h))}};exports.default=G;