vue-data-ui 2.4.56 → 2.4.58

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-CjIZFibK.cjs → Arrow-DyvFEpcu.cjs} +1 -1
  2. package/dist/{Arrow-jPjUEWgL.js → Arrow-gAjHZoeI.js} +1 -1
  3. package/dist/{BaseIcon-0DNmIdCs.js → BaseIcon-B0g_Fksl.js} +1 -1
  4. package/dist/{BaseIcon-DF2Lg0Ky.cjs → BaseIcon-DKQOeA_7.cjs} +1 -1
  5. package/dist/{DataTable-osuWgmyP.cjs → DataTable-Bju6hUOX.cjs} +1 -1
  6. package/dist/{DataTable-CZSz7b1u.js → DataTable-BloVsNyj.js} +2 -2
  7. package/dist/{Legend-DecSHp0h.cjs → Legend-BsPIe_nG.cjs} +1 -1
  8. package/dist/{Legend-CvXmxVoD.js → Legend-CdpH9pz7.js} +1 -1
  9. package/dist/{PackageVersion-eTcMI7M3.cjs → PackageVersion-Bmujq1-q.cjs} +1 -1
  10. package/dist/{PackageVersion-CEkiDR72.js → PackageVersion-W3d_oNMs.js} +1 -1
  11. package/dist/{PenAndPaper-BqcQLMi2.cjs → PenAndPaper-Be8tn5wI.cjs} +1 -1
  12. package/dist/{PenAndPaper-GjypzQvI.js → PenAndPaper-xuFs3BqZ.js} +3 -3
  13. package/dist/{Shape-BejfTDlL.js → Shape-CXTDY_Vo.js} +1 -1
  14. package/dist/{Shape-Diaok0Bu.cjs → Shape-Cx89w9Ul.cjs} +1 -1
  15. package/dist/{Slicer-9_ewSBRs.js → Slicer-ENfxtrty.js} +2 -2
  16. package/dist/{Slicer-DFT7ePZ_.cjs → Slicer-HGyFRIya.cjs} +1 -1
  17. package/dist/{Title-BI9lg56g.js → Title-1u-GspsX.js} +1 -1
  18. package/dist/{Title-Bw-FXFej.cjs → Title-CNO85jNx.cjs} +1 -1
  19. package/dist/{Tooltip-sBMzQa_B.js → Tooltip-B-1Q-Tts.js} +1 -1
  20. package/dist/{Tooltip-98ospYeV.cjs → Tooltip-DQOeAhx3.cjs} +1 -1
  21. package/dist/{index-ByVaKddw.js → index-BSzkwF5n.js} +3 -1
  22. package/dist/index-DHwfzZfj.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +2 -0
  25. package/dist/types/vue-data-ui.d.ts +2 -0
  26. package/dist/{useNestedProp-GRBJXe5O.js → useNestedProp-BWC_DPZ5.js} +1 -1
  27. package/dist/{useNestedProp-CSIVZXvp.cjs → useNestedProp-CSKuqs0C.cjs} +1 -1
  28. package/dist/{usePrinter-BwruEydS.cjs → usePrinter-D-iwyLyE.cjs} +1 -1
  29. package/dist/{usePrinter-BsXVX7vh.js → usePrinter-DtwWejoO.js} +1 -1
  30. package/dist/{vue-data-ui-BqSfqfi4.cjs → vue-data-ui-Com866XF.cjs} +1 -1
  31. package/dist/{vue-data-ui-B7Y18Xdv.js → vue-data-ui-jb1K_VTO.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-SA6SyIoT.js → vue-ui-3d-bar-Cqc5gqnb.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-CXv6h_8o.cjs → vue-ui-3d-bar-Dif8_wHk.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-Dcf8tHzr.js → vue-ui-accordion-CJdfn7N-.js} +3 -3
  37. package/dist/{vue-ui-accordion-DfqTc4ro.cjs → vue-ui-accordion-lCjQo2kd.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-BetdioWW.js → vue-ui-age-pyramid-D89kDZnF.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-CG7IY2gE.cjs → vue-ui-age-pyramid-DHxsu2a1.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-Qf_gPjWZ.js → vue-ui-annotator-Cf-zFFmT.js} +1 -1
  41. package/dist/{vue-ui-annotator-Bcg6d-GE.cjs → vue-ui-annotator-muK3_F6c.cjs} +1 -1
  42. package/dist/{vue-ui-bullet-CPHavcOd.cjs → vue-ui-bullet-CKbrouCq.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-CLRHVfB8.js → vue-ui-bullet-CT5Gkoot.js} +8 -8
  44. package/dist/{vue-ui-candlestick-exLvYnf4.cjs → vue-ui-candlestick-C3YNgFyO.cjs} +1 -1
  45. package/dist/{vue-ui-candlestick-DBnrOltA.js → vue-ui-candlestick-DmsHITZF.js} +11 -11
  46. package/dist/{vue-ui-carousel-table-CHlCmI-_.cjs → vue-ui-carousel-table-BU1bmZWZ.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-Bz2XZAC4.js → vue-ui-carousel-table-N7QL7jRR.js} +4 -4
  48. package/dist/{vue-ui-chestnut-BBhIDuhr.cjs → vue-ui-chestnut-BEALHSS3.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-BE6RQkXd.js → vue-ui-chestnut-C7b1puxs.js} +8 -8
  50. package/dist/{vue-ui-cursor-CpIr7R3C.cjs → vue-ui-cursor-BOS7Yvio.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-DLQVTUyz.js → vue-ui-cursor-CAnOat4M.js} +2 -2
  52. package/dist/{vue-ui-dashboard-YWLsOufT.cjs → vue-ui-dashboard-DI22fn9M.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-rKdg3soO.js → vue-ui-dashboard-OzgTaY3n.js} +2 -2
  54. package/dist/{vue-ui-digits-XkrLdWX_.js → vue-ui-digits-DCm2stj-.js} +2 -2
  55. package/dist/{vue-ui-digits-DFNXL2VX.cjs → vue-ui-digits-DGP4EmpQ.cjs} +1 -1
  56. package/dist/{vue-ui-donut-CDVHpIvX.js → vue-ui-donut-BilWHtZy.js} +11 -11
  57. package/dist/{vue-ui-donut-8rW9LlEF.cjs → vue-ui-donut-Jjz58SJJ.cjs} +1 -1
  58. package/dist/{vue-ui-donut-evolution-B1ahKhHv.cjs → vue-ui-donut-evolution-BtfRmlIq.cjs} +1 -1
  59. package/dist/{vue-ui-donut-evolution-By2AYSZT.js → vue-ui-donut-evolution-DKmnEHH_.js} +11 -11
  60. package/dist/{vue-ui-dumbbell-DIHb9Grh.cjs → vue-ui-dumbbell-C2LYuBRx.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-D1Htb6-R.js → vue-ui-dumbbell-KwkTK5_q.js} +10 -10
  62. package/dist/{vue-ui-flow-41QVXQeK.cjs → vue-ui-flow-3vjkptJR.cjs} +1 -1
  63. package/dist/{vue-ui-flow-CCYyDy6C.js → vue-ui-flow-BShJPhpa.js} +9 -9
  64. package/dist/{vue-ui-funnel-BJ43m1vH.js → vue-ui-funnel-D4xk_DsA.js} +8 -8
  65. package/dist/{vue-ui-funnel-qPzrqllN.cjs → vue-ui-funnel-DyJdIi_i.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-D6dtMQ2A.cjs → vue-ui-galaxy-BmGIzIeD.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-DMUq4sez.js → vue-ui-galaxy-Ch3QRiP6.js} +11 -11
  68. package/dist/{vue-ui-gauge-KGflfPYM.js → vue-ui-gauge-DZUv5beK.js} +127 -125
  69. package/dist/vue-ui-gauge-LeMSJBEk.cjs +1 -0
  70. package/dist/{vue-ui-gizmo-CFRsYHo7.js → vue-ui-gizmo-B39J58Zm.js} +3 -3
  71. package/dist/{vue-ui-gizmo-lKGGpbCe.cjs → vue-ui-gizmo-B7Kum6eT.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-DKxnmh08.cjs → vue-ui-heatmap-CqPuEjJ1.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-Dj0A6LjZ.js → vue-ui-heatmap-z8KMf1yo.js} +10 -10
  74. package/dist/{vue-ui-history-plot-ClNqlBER.js → vue-ui-history-plot--Lw1-910.js} +11 -11
  75. package/dist/{vue-ui-history-plot-IWjqZb4c.cjs → vue-ui-history-plot-bjMvk_4h.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-BXRYqm31.js → vue-ui-kpi-BgNONvkD.js} +3 -3
  77. package/dist/{vue-ui-kpi-BRVPBhAp.cjs → vue-ui-kpi-DIuPP4R7.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-Bm_4G8gx.js → vue-ui-mini-loader-BrCuKpE6.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-NicMq9t0.cjs → vue-ui-mini-loader-DjEyKAQe.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-Bi9RT7M4.cjs → vue-ui-molecule-C3wtpoCr.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-BDFarbim.js → vue-ui-molecule-C_eF6tga.js} +11 -11
  82. package/dist/{vue-ui-mood-radar-DlXCkePO.cjs → vue-ui-mood-radar-BomqP0zI.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-DJnPeXpr.js → vue-ui-mood-radar-Ch_Qkx9d.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-CYNh2xAI.cjs → vue-ui-nested-donuts-KRq3Fcqy.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-DLcFEPDy.js → vue-ui-nested-donuts-uqfXLRGX.js} +11 -11
  86. package/dist/{vue-ui-onion-jzYk1NeW.js → vue-ui-onion-CbYOkmrF.js} +11 -11
  87. package/dist/{vue-ui-onion-UDlJJjud.cjs → vue-ui-onion-G4p7rA61.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-BboIA_-E.cjs → vue-ui-parallel-coordinate-plot-B2OIBraO.cjs} +1 -1
  89. package/dist/{vue-ui-parallel-coordinate-plot-BLLYkQEr.js → vue-ui-parallel-coordinate-plot-aLNOckoo.js} +12 -12
  90. package/dist/{vue-ui-quadrant-C94HXwr8.js → vue-ui-quadrant-CuPCDHgS.js} +12 -12
  91. package/dist/{vue-ui-quadrant-BSNtsyJ5.cjs → vue-ui-quadrant-DoWeGQSC.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-6fxJ8oH3.js → vue-ui-quick-chart-DBCH5qM1.js} +9 -9
  93. package/dist/{vue-ui-quick-chart-B9Xbkibp.cjs → vue-ui-quick-chart-DR1qF9kr.cjs} +1 -1
  94. package/dist/{vue-ui-radar-Q6izz-u2.cjs → vue-ui-radar-B6M2ZChR.cjs} +1 -1
  95. package/dist/{vue-ui-radar-CQrWi1aN.js → vue-ui-radar-BamYIcPL.js} +12 -12
  96. package/dist/{vue-ui-rating-Ciyd3dSC.js → vue-ui-rating-DxaSXiPx.js} +2 -2
  97. package/dist/{vue-ui-rating-DgsUBjAC.cjs → vue-ui-rating-HSL7IrbQ.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-BVgfKoJY.js → vue-ui-relation-circle-C9_8YW0u.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-CAC4jUA7.cjs → vue-ui-relation-circle-CM_QkigI.cjs} +1 -1
  100. package/dist/{vue-ui-rings-VNKEeLJq.cjs → vue-ui-rings-CmD8g04s.cjs} +1 -1
  101. package/dist/{vue-ui-rings-DuQmTRbW.js → vue-ui-rings-DFzPi4m9.js} +11 -11
  102. package/dist/{vue-ui-scatter-CWTRMe0w.cjs → vue-ui-scatter-D_WxNGoY.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-BlLPdbYP.js → vue-ui-scatter-n_jHEngt.js} +12 -12
  104. package/dist/{vue-ui-screenshot-Cf9IZKQy.js → vue-ui-screenshot-1_OHWjZv.js} +1 -1
  105. package/dist/{vue-ui-screenshot-C3nAs5FY.cjs → vue-ui-screenshot-BzY_uB1R.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-CcWKK9pd.cjs → vue-ui-skeleton-DKtNfORj.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton--uwo2sCb.js → vue-ui-skeleton-Ojz7f2oH.js} +3 -3
  108. package/dist/{vue-ui-smiley-Bc53TV0r.js → vue-ui-smiley-CXvJ3sXA.js} +2 -2
  109. package/dist/{vue-ui-smiley-BI7CkEhi.cjs → vue-ui-smiley-sKWpgakD.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-CKgcM09-.cjs → vue-ui-spark-trend-ByxJmVE5.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-Byey6P0P.js → vue-ui-spark-trend-uyDT9RJC.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-C2Y0Foie.js → vue-ui-sparkbar-CxW1vMP2.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-FBEE4RyI.cjs → vue-ui-sparkbar-DYHuBv3f.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-DIQjrKUR.cjs → vue-ui-sparkgauge-CCvUn2R2.cjs} +1 -1
  115. package/dist/{vue-ui-sparkgauge-Czf3xG6u.js → vue-ui-sparkgauge-NmLBla47.js} +4 -4
  116. package/dist/{vue-ui-sparkhistogram-MEdLzmyE.js → vue-ui-sparkhistogram-B8SukBWt.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-CNQrhEr4.cjs → vue-ui-sparkhistogram-FU-uE07T.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-DNeX0Cst.cjs → vue-ui-sparkline-9LU8yp1t.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-Cr2okEps.js → vue-ui-sparkline-CokyAm9w.js} +4 -4
  120. package/dist/{vue-ui-sparkstackbar-CyvjXdi9.cjs → vue-ui-sparkstackbar-9k6C-g_r.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-Db83U8wn.js → vue-ui-sparkstackbar-QgZq1O55.js} +5 -5
  122. package/dist/{vue-ui-stackbar-CQT1OJCn.js → vue-ui-stackbar-CTvPYXjb.js} +306 -291
  123. package/dist/vue-ui-stackbar-Drqz1of9.cjs +6 -0
  124. package/dist/{vue-ui-strip-plot-DOzB5USx.js → vue-ui-strip-plot-DXPoWvNA.js} +11 -11
  125. package/dist/{vue-ui-strip-plot-T8_5JEzy.cjs → vue-ui-strip-plot-UYP2fk1H.cjs} +1 -1
  126. package/dist/{vue-ui-table-C3O3go3K.cjs → vue-ui-table-8M1ctuqL.cjs} +1 -1
  127. package/dist/{vue-ui-table-ro63oB6Q.js → vue-ui-table-Bb3BBVjm.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-iho4COZg.cjs → vue-ui-table-heatmap-BqQpJ_Ou.cjs} +1 -1
  129. package/dist/{vue-ui-table-heatmap-lftME_w3.js → vue-ui-table-heatmap-Bv0EfTut.js} +4 -4
  130. package/dist/{vue-ui-table-sparkline-P9DzADZw.js → vue-ui-table-sparkline-Bs72Df0-.js} +5 -5
  131. package/dist/{vue-ui-table-sparkline-Ce0sOUWt.cjs → vue-ui-table-sparkline-D5xemE-q.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-DI4pKvnk.js → vue-ui-thermometer-DRGjTOIy.js} +7 -7
  133. package/dist/{vue-ui-thermometer-BRYN1bHx.cjs → vue-ui-thermometer-DzynFkq0.cjs} +1 -1
  134. package/dist/{vue-ui-timer-DTsTsm_i.js → vue-ui-timer-DCA2Dkfi.js} +5 -5
  135. package/dist/{vue-ui-timer-CsV8Cuty.cjs → vue-ui-timer-W5dIiOew.cjs} +1 -1
  136. package/dist/{vue-ui-tiremarks-od0aPD4a.cjs → vue-ui-tiremarks-BbAzwE5q.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-CjY3b9ph.js → vue-ui-tiremarks-CTqweMbJ.js} +7 -7
  138. package/dist/{vue-ui-treemap-B69tqCDo.cjs → vue-ui-treemap-CEVP7-S2.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-B36BRS00.js → vue-ui-treemap-tz9AdMu0.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-CK1dtsFn.js → vue-ui-vertical-bar-BEkWSr_A.js} +11 -11
  141. package/dist/{vue-ui-vertical-bar-8QN9YXK-.cjs → vue-ui-vertical-bar-D_2WzLxJ.cjs} +1 -1
  142. package/dist/{vue-ui-waffle-CpcyWKuc.cjs → vue-ui-waffle-BAvqVwhK.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-CaJbFYrA.js → vue-ui-waffle-DQPO5aOU.js} +11 -11
  144. package/dist/{vue-ui-wheel-WoHPA2Fp.js → vue-ui-wheel-B0u6LKiw.js} +7 -7
  145. package/dist/{vue-ui-wheel-DJQeNqbc.cjs → vue-ui-wheel-Cjnheeql.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-D3h-mtSd.js → vue-ui-word-cloud-CEns9_NI.js} +10 -10
  147. package/dist/{vue-ui-word-cloud-BfqeiAU8.cjs → vue-ui-word-cloud-bxF8a7TI.cjs} +1 -1
  148. package/dist/{vue-ui-xy-iL-McDRN.cjs → vue-ui-xy-BBvVOSPm.cjs} +1 -1
  149. package/dist/{vue-ui-xy-BTW5rwfL.js → vue-ui-xy-DxpIt6dh.js} +14 -14
  150. package/dist/{vue-ui-xy-canvas-DtnXa5hf.cjs → vue-ui-xy-canvas--zS_4x6O.cjs} +1 -1
  151. package/dist/{vue-ui-xy-canvas-DTySv5nX.js → vue-ui-xy-canvas-D_Qiy2N1.js} +11 -11
  152. package/package.json +1 -1
  153. package/dist/index-Cvx5SntE.cjs +0 -9
  154. package/dist/vue-ui-gauge-BdycQV3W.cjs +0 -1
  155. package/dist/vue-ui-stackbar-CfmbbZzJ.cjs +0 -6
@@ -1,15 +1,15 @@
1
1
  import { computed as y, ref as d, watch as me, onMounted as Ae, onBeforeUnmount as Re, openBlock as o, createElementBlock as u, normalizeClass as pe, normalizeStyle as L, unref as i, createBlock as R, createCommentVNode as h, withCtx as X, toDisplayString as C, createSlots as Ge, renderSlot as w, normalizeProps as D, guardReactiveProps as B, createVNode as Ee, createElementVNode as p, Fragment as x, renderList as S, mergeProps as G } from "vue";
2
- import { u as Ue, c as We, t as Te, a as je, p as ge, b as Le, o as ke, d as De, e as E, g as be, m as V, I as z, X as Be, s as q, k as Ve, i as H, f as Z, F as J } from "./index-ByVaKddw.js";
2
+ import { u as Ue, c as We, t as Te, a as je, p as ge, b as Le, o as ke, d as De, e as E, g as be, m as V, I as z, X as Be, s as q, k as Ve, i as H, f as Z, F as J } from "./index-BSzkwF5n.js";
3
3
  import { t as qe, u as He } from "./useResponsive-CoxXLe23.js";
4
- import { u as Ze, U as Je } from "./usePrinter-BsXVX7vh.js";
5
- import Ke from "./vue-ui-skeleton--uwo2sCb.js";
6
- import { _ as Qe } from "./Title-BI9lg56g.js";
7
- import { u as xe } from "./useNestedProp-GRBJXe5O.js";
8
- import { _ as et } from "./PackageVersion-CEkiDR72.js";
9
- import { P as tt } from "./PenAndPaper-GjypzQvI.js";
4
+ import { u as Ze, U as Je } from "./usePrinter-DtwWejoO.js";
5
+ import Ke from "./vue-ui-skeleton-Ojz7f2oH.js";
6
+ import { _ as Qe } from "./Title-1u-GspsX.js";
7
+ import { u as xe } from "./useNestedProp-BWC_DPZ5.js";
8
+ import { _ as et } from "./PackageVersion-W3d_oNMs.js";
9
+ import { P as tt } from "./PenAndPaper-xuFs3BqZ.js";
10
10
  import { u as at } from "./useUserOptionState-BIvW1Kz7.js";
11
11
  import { _ as lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt = ["stop-color"], it = ["stop-color"], ct = ["stop-color"], vt = ["id"], ht = ["stdDeviation"], dt = ["d", "fill", "stroke"], yt = ["id", "d"], ft = ["fill", "font-size", "font-weight"], mt = ["href", "startOffset"], pt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], gt = ["d", "filter"], kt = ["stroke", "stroke-width"], bt = ["stroke", "stroke-width"], xt = ["stroke", "stroke-width"], _t = ["stroke", "stroke-width"], wt = { key: 4 }, St = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], zt = ["x", "y", "font-size", "font-weight", "fill"], $t = { key: 6 }, Ft = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ct = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ot = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], Mt = { key: 7 }, Pt = ["d", "fill", "stroke", "stroke-width"], Nt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Xt = ["x", "y", "font-size", "fill"], Yt = {
12
+ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt = ["stop-color"], it = ["stop-color"], ct = ["stop-color"], vt = ["id"], ht = ["stdDeviation"], dt = ["d", "fill", "stroke"], yt = ["id", "d"], ft = ["fill", "font-size", "font-weight"], mt = ["href", "startOffset"], pt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], gt = ["d", "filter"], kt = ["stroke", "stroke-width"], bt = ["stroke", "stroke-width"], xt = ["stroke", "stroke-width"], _t = ["stroke", "stroke-width"], wt = { key: 4 }, St = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], zt = ["x", "y", "font-size", "font-weight", "fill"], $t = { key: 6 }, Ft = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ct = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Mt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], Ot = { key: 7 }, Pt = ["d", "fill", "stroke", "stroke-width"], Nt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Xt = ["x", "y", "font-size", "fill"], Yt = {
13
13
  key: 5,
14
14
  class: "vue-data-ui-watermark"
15
15
  }, It = {
@@ -29,25 +29,25 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
29
29
  }
30
30
  },
31
31
  setup(U, { expose: _e }) {
32
- const v = U, { vue_ui_gauge: we } = Ue(), Y = y(() => !!v.dataset && Object.keys(v.dataset).length > 0 && v.dataset.series && v.dataset.series.length), _ = d(We()), Se = d(null), K = d(0), O = d(null), Q = d(null), ee = d(null), te = d(null), ae = d(null), le = d(0), e = y({
32
+ const v = U, { vue_ui_gauge: we } = Ue(), Y = y(() => !!v.dataset && Object.keys(v.dataset).length > 0 && v.dataset.series && v.dataset.series.length), _ = d(We()), Se = d(null), K = d(0), M = d(null), Q = d(null), ee = d(null), te = d(null), ae = d(null), le = d(0), e = y({
33
33
  get: () => oe(),
34
- set: (a) => a
34
+ set: (t) => t
35
35
  }), { userOptionsVisible: W, setUserOptionsVisibility: se, keepUserOptionState: re } = at({ config: e.value });
36
- me(() => v.config, (a) => {
36
+ me(() => v.config, (t) => {
37
37
  e.value = oe(), W.value = !e.value.showOnChartHover, he(), le.value += 1;
38
38
  }, { deep: !0 });
39
39
  function oe() {
40
- const a = xe({
40
+ const t = xe({
41
41
  userConfig: v.config,
42
42
  defaultConfig: we
43
43
  });
44
- return a.theme ? {
44
+ return t.theme ? {
45
45
  ...xe({
46
- userConfig: Te.vue_ui_gauge[a.theme] || v.config,
47
- defaultConfig: a
46
+ userConfig: Te.vue_ui_gauge[t.theme] || v.config,
47
+ defaultConfig: t
48
48
  }),
49
- customPalette: je[a.theme] || ge
50
- } : a;
49
+ customPalette: je[t.theme] || ge
50
+ } : t;
51
51
  }
52
52
  const { isPrinting: ue, isImaging: ne, generatePdf: ie, generateImage: ce } = Ze({
53
53
  elementId: `vue-ui-gauge_${_.value}`,
@@ -63,17 +63,17 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
63
63
  }
64
64
  ]
65
65
  };
66
- const a = [];
67
- (v.dataset.series || []).forEach((t) => {
68
- a.push(t.from || 1e-7), a.push(t.to || 1e-7);
66
+ const t = [];
67
+ (v.dataset.series || []).forEach((a) => {
68
+ t.push(a.from || 1e-7), t.push(a.to || 1e-7);
69
69
  });
70
- const s = Math.max(...a);
70
+ const s = Math.max(...t);
71
71
  return {
72
72
  ...v.dataset,
73
- series: (v.dataset.series || []).map((t, r) => ({
74
- ...t,
75
- color: De(t.color) || $e.value[r] || ge[r],
76
- value: ((t.to || 0) - (t.from || 0)) / s * 100
73
+ series: (v.dataset.series || []).map((a, r) => ({
74
+ ...a,
75
+ color: De(a.color) || $e.value[r] || ge[r],
76
+ value: ((a.to || 0) - (a.from || 0)) / s * 100
77
77
  }))
78
78
  };
79
79
  }), g = d(512), l = d({
@@ -91,25 +91,27 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
91
91
  pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
92
92
  markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
93
93
  segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
94
- }), M = d(0), P = d(0), f = d(e.value.style.chart.animation.use ? 0 : v.dataset.value);
94
+ }), O = d(0), P = d(0), f = d(
95
+ e.value.style.chart.animation.use ? Math.min(...v.dataset.series.map((t) => t.from)) : v.dataset.value
96
+ );
95
97
  me(() => v.dataset.value, () => {
96
98
  de(v.dataset.value);
97
99
  });
98
100
  const n = y(() => {
99
- const a = l.value.width / 2, s = c.value.base, t = Math.PI * ((f.value + 0 - P.value) / (M.value - P.value)) + Math.PI;
101
+ const t = l.value.width / 2, s = c.value.base, a = Math.PI * ((f.value + 0 - P.value) / (O.value - P.value)) + Math.PI;
100
102
  return {
101
- x1: a,
103
+ x1: t,
102
104
  y1: s,
103
- x2: a + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(t),
104
- y2: s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(t)
105
+ x2: t + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a),
106
+ y2: s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
105
107
  };
106
108
  }), ve = y(() => {
107
- const a = l.value.width / 2, s = c.value.base, t = Math.PI * ((f.value + 0 - P.value) / (M.value - P.value)) + Math.PI, r = a + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(t), k = s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(t), b = l.value.pointerRadius, Ne = a + b * Math.cos(t + Math.PI / 2), Xe = s + b * Math.sin(t + Math.PI / 2), Ye = a + b * Math.cos(t - Math.PI / 2), Ie = s + b * Math.sin(t - Math.PI / 2);
109
+ const t = l.value.width / 2, s = c.value.base, a = Math.PI * ((f.value + 0 - P.value) / (O.value - P.value)) + Math.PI, r = t + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), k = s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), b = l.value.pointerRadius, Ne = t + b * Math.cos(a + Math.PI / 2), Xe = s + b * Math.sin(a + Math.PI / 2), Ye = t + b * Math.cos(a - Math.PI / 2), Ie = s + b * Math.sin(a - Math.PI / 2);
108
110
  return isNaN(r) ? null : `M ${r},${k} ${Ne},${Xe} ${Ye},${Ie} Z`;
109
111
  }), T = y(() => {
110
- for (let a = 0; a < $.value.series.length; a += 1) {
111
- const { color: s, from: t, to: r } = $.value.series[a];
112
- if (f.value >= t && f.value <= r)
112
+ for (let t = 0; t < $.value.series.length; t += 1) {
113
+ const { color: s, from: a, to: r } = $.value.series[t];
114
+ if (f.value >= a && f.value <= r)
113
115
  return s;
114
116
  }
115
117
  return "#2D353C";
@@ -121,21 +123,21 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
121
123
  }) : (be({
122
124
  datasetObject: v.dataset,
123
125
  requiredAttributes: ["value", "series"]
124
- }).forEach((a) => {
126
+ }).forEach((t) => {
125
127
  E({
126
128
  componentName: "VueUiGauge",
127
129
  type: "datasetAttribute",
128
- property: a
130
+ property: t
129
131
  });
130
- }), Object.hasOwn(v.dataset, "series") && (v.dataset.series.length ? v.dataset.series.forEach((a, s) => {
132
+ }), Object.hasOwn(v.dataset, "series") && (v.dataset.series.length ? v.dataset.series.forEach((t, s) => {
131
133
  be({
132
- datasetObject: a,
134
+ datasetObject: t,
133
135
  requiredAttributes: ["from", "to"]
134
- }).forEach((t) => {
136
+ }).forEach((a) => {
135
137
  E({
136
138
  componentName: "VueUiGauge",
137
139
  type: "datasetSerieAttribute",
138
- property: t,
140
+ property: a,
139
141
  index: s
140
142
  });
141
143
  });
@@ -144,35 +146,35 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
144
146
  type: "datasetAttributeEmpty",
145
147
  property: "series"
146
148
  }))), de(v.dataset.value || 0), e.value.responsive) {
147
- const a = qe(() => {
148
- const { width: s, height: t } = He({
149
- chart: O.value,
149
+ const t = qe(() => {
150
+ const { width: s, height: a } = He({
151
+ chart: M.value,
150
152
  title: e.value.style.chart.title.text ? Q.value : null,
151
153
  legend: ee.value,
152
154
  source: te.value,
153
155
  noTitle: ae.value
154
156
  });
155
- l.value.width = s, l.value.height = t, l.value.centerX = s / 2, l.value.centerY = g.value / 2 / 358.4 * t, l.value.bottom = t, l.value.labelFontSize = 18 / g.value * Math.min(t, s) < 10 ? 10 : 18 / g.value * Math.min(t, s), l.value.legendFontSize = e.value.style.chart.legend.fontSize / g.value * Math.min(t, s) < 14 ? 14 : e.value.style.chart.legend.fontSize / g.value * Math.min(t, s), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / g.value * Math.min(t, s), l.value.trackSize = e.value.style.chart.layout.track.size / g.value * Math.min(t, s), l.value.pointerStrokeWidth = J({
156
- relator: Math.min(s, t),
157
+ l.value.width = s, l.value.height = a, l.value.centerX = s / 2, l.value.centerY = g.value / 2 / 358.4 * a, l.value.bottom = a, l.value.labelFontSize = 18 / g.value * Math.min(a, s) < 10 ? 10 : 18 / g.value * Math.min(a, s), l.value.legendFontSize = e.value.style.chart.legend.fontSize / g.value * Math.min(a, s) < 14 ? 14 : e.value.style.chart.legend.fontSize / g.value * Math.min(a, s), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / g.value * Math.min(a, s), l.value.trackSize = e.value.style.chart.layout.track.size / g.value * Math.min(a, s), l.value.pointerStrokeWidth = J({
158
+ relator: Math.min(s, a),
157
159
  adjuster: g.value,
158
160
  source: e.value.style.chart.layout.pointer.strokeWidth,
159
161
  threshold: 2,
160
162
  fallback: 2
161
163
  }), l.value.markerOffset = J({
162
- relator: Math.max(s, t),
164
+ relator: Math.max(s, a),
163
165
  adjuster: g.value,
164
166
  source: e.value.style.chart.layout.markers.offsetY + 3,
165
167
  threshold: 2,
166
168
  fallback: 2
167
169
  }), l.value.segmentFontSize = J({
168
- relator: Math.min(s, t),
170
+ relator: Math.min(s, a),
169
171
  adjuster: g.value,
170
172
  source: e.value.style.chart.layout.segmentNames.fontSize,
171
173
  threshold: 8,
172
174
  fallback: 8
173
175
  });
174
176
  });
175
- I.value = new ResizeObserver(a), I.value.observe(O.value.parentNode);
177
+ I.value = new ResizeObserver(t), I.value.observe(M.value.parentNode);
176
178
  }
177
179
  }
178
180
  Ae(() => {
@@ -180,23 +182,23 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
180
182
  }), Re(() => {
181
183
  I.value && I.value.disconnect();
182
184
  });
183
- function de(a) {
185
+ function de(t) {
184
186
  const s = [];
185
187
  ($.value.series || []).forEach((b) => {
186
188
  s.push(b.from || 0), s.push(b.to || 0);
187
- }), M.value = Math.max(...s), P.value = Math.min(...s);
188
- let t = e.value.style.chart.animation.speed;
189
- const r = Math.abs(a - f.value) / (t * 60);
189
+ }), O.value = Math.max(...s), P.value = Math.min(...s);
190
+ let a = e.value.style.chart.animation.speed;
191
+ const r = Math.abs(t - f.value) / (a * 60);
190
192
  function k() {
191
- 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);
193
+ f.value < t ? f.value = Math.min(f.value + r, t) : f.value > t && (f.value = Math.max(f.value - r, t)), f.value !== t && requestAnimationFrame(k);
192
194
  }
193
195
  k();
194
196
  }
195
197
  const c = y(() => {
196
- 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;
198
+ const t = e.value.responsive ? Math.min(l.value.width, l.value.height) : l.value.width, s = 2.5 / e.value.style.chart.layout.radiusRatio;
197
199
  return {
198
- arcs: a / s,
199
- gradients: a / (s * 1.1),
200
+ arcs: t / s,
201
+ gradients: t / (s * 1.1),
200
202
  base: e.value.responsive ? l.value.height / 2 : l.value.height * 0.7,
201
203
  ratingBase: e.value.responsive ? l.value.height / 2 + l.value.height / 4 : l.value.height * 0.9,
202
204
  pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
@@ -225,45 +227,45 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
225
227
  180,
226
228
  109.9495,
227
229
  40 * l.value.trackSize
228
- )), F = y(() => m.value.map((a) => c.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (a.nameOffsetRatio || 1))), ye = y(() => {
229
- const { x: a, y: s } = z({
230
+ )), F = y(() => m.value.map((t) => c.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), ye = y(() => {
231
+ const { x: t, y: s } = z({
230
232
  initX: m.value[0].firstSeparator.x,
231
233
  initY: m.value[0].firstSeparator.y,
232
234
  centerX: n.value.x1,
233
235
  centerY: n.value.y1,
234
236
  offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
235
- }), { x: t, y: r } = z({
237
+ }), { x: a, y: r } = z({
236
238
  initX: m.value[0].startX,
237
239
  initY: m.value[0].startY,
238
240
  centerX: n.value.x1,
239
241
  centerY: n.value.y1,
240
242
  offset: e.value.style.chart.layout.segmentSeparators.offsetOut
241
243
  });
242
- return { x1: a, y1: s, x2: t, y2: r };
243
- }), fe = y(() => m.value.map((a) => {
244
- const { x: s, y: t } = z({
245
- initX: a.separator.x,
246
- initY: a.separator.y,
244
+ return { x1: t, y1: s, x2: a, y2: r };
245
+ }), fe = y(() => m.value.map((t) => {
246
+ const { x: s, y: a } = z({
247
+ initX: t.separator.x,
248
+ initY: t.separator.y,
247
249
  centerX: n.value.x1,
248
250
  centerY: n.value.y1,
249
251
  offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
250
252
  }), { x: r, y: k } = z({
251
- initX: a.endX,
252
- initY: a.endY,
253
+ initX: t.endX,
254
+ initY: t.endY,
253
255
  centerX: n.value.x1,
254
256
  centerY: n.value.y1,
255
257
  offset: e.value.style.chart.layout.segmentSeparators.offsetOut
256
258
  });
257
- return { x1: s, y1: t, x2: r, y2: k };
259
+ return { x1: s, y1: a, x2: r, y2: k };
258
260
  }));
259
- function Ce(a) {
260
- if (a.reduce((k, b) => k + b, 0) > 100)
261
+ function Ce(t) {
262
+ if (t.reduce((k, b) => k + b, 0) > 100)
261
263
  throw new Error("Total % must not exceed 100");
262
- const t = 50;
264
+ const a = 50;
263
265
  let r = 0;
264
- return a.map((k) => (r += k, `${r / 100 * t - k / 4}%`));
266
+ return t.map((k) => (r += k, `${r / 100 * a - k / 4}%`));
265
267
  }
266
- const Oe = y(() => Ce(m.value.map((a) => a.proportion * 100))), Me = y(() => V(
268
+ const Me = y(() => Ce(m.value.map((t) => t.proportion * 100))), Oe = y(() => V(
267
269
  { series: $.value.series },
268
270
  l.value.width / 2,
269
271
  c.value.base,
@@ -276,8 +278,8 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
276
278
  110.02,
277
279
  2 * l.value.trackSize
278
280
  )), N = d(!1);
279
- function Pe(a) {
280
- N.value = a, K.value += 1;
281
+ function Pe(t) {
282
+ N.value = t, K.value += 1;
281
283
  }
282
284
  const A = d(!1);
283
285
  function j() {
@@ -287,10 +289,10 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
287
289
  generatePdf: ie,
288
290
  generateImage: ce,
289
291
  toggleAnnotator: j
290
- }), (a, s) => (o(), u("div", {
292
+ }), (t, s) => (o(), u("div", {
291
293
  class: pe(`vue-ui-gauge ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
292
294
  ref_key: "gaugeChart",
293
- ref: O,
295
+ ref: M,
294
296
  id: `vue-ui-gauge_${_.value}`,
295
297
  style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
296
298
  onMouseenter: s[0] || (s[0] = () => i(se)(!0)),
@@ -298,7 +300,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
298
300
  }, [
299
301
  e.value.userOptions.buttons.annotator ? (o(), R(tt, {
300
302
  key: 0,
301
- parent: O.value,
303
+ parent: M.value,
302
304
  backgroundColor: e.value.style.chart.backgroundColor,
303
305
  color: e.value.style.chart.color,
304
306
  active: A.value,
@@ -351,7 +353,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
351
353
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
352
354
  isFullscreen: N.value,
353
355
  titles: { ...e.value.userOptions.buttonTitles },
354
- chartElement: O.value,
356
+ chartElement: M.value,
355
357
  position: e.value.userOptions.position,
356
358
  hasAnnotator: e.value.userOptions.buttons.annotator,
357
359
  isAnnotation: A.value,
@@ -363,31 +365,31 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
363
365
  visibility: i(re) ? i(W) ? "visible" : "hidden" : "visible"
364
366
  })
365
367
  }, Ge({ _: 2 }, [
366
- a.$slots.optionPdf ? {
368
+ t.$slots.optionPdf ? {
367
369
  name: "optionPdf",
368
370
  fn: X(() => [
369
- w(a.$slots, "optionPdf", {}, void 0, !0)
371
+ w(t.$slots, "optionPdf", {}, void 0, !0)
370
372
  ]),
371
373
  key: "0"
372
374
  } : void 0,
373
- a.$slots.optionImg ? {
375
+ t.$slots.optionImg ? {
374
376
  name: "optionImg",
375
377
  fn: X(() => [
376
- w(a.$slots, "optionImg", {}, void 0, !0)
378
+ w(t.$slots, "optionImg", {}, void 0, !0)
377
379
  ]),
378
380
  key: "1"
379
381
  } : void 0,
380
- a.$slots.optionFullscreen ? {
382
+ t.$slots.optionFullscreen ? {
381
383
  name: "optionFullscreen",
382
- fn: X(({ toggleFullscreen: t, isFullscreen: r }) => [
383
- w(a.$slots, "optionFullscreen", D(B({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
384
+ fn: X(({ toggleFullscreen: a, isFullscreen: r }) => [
385
+ w(t.$slots, "optionFullscreen", D(B({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
384
386
  ]),
385
387
  key: "2"
386
388
  } : void 0,
387
- a.$slots.optionAnnotator ? {
389
+ t.$slots.optionAnnotator ? {
388
390
  name: "optionAnnotator",
389
- fn: X(({ toggleAnnotator: t, isAnnotator: r }) => [
390
- w(a.$slots, "optionAnnotator", D(B({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
391
+ fn: X(({ toggleAnnotator: a, isAnnotator: r }) => [
392
+ w(t.$slots, "optionAnnotator", D(B({ toggleAnnotator: a, isAnnotator: r })), void 0, !0)
391
393
  ]),
392
394
  key: "3"
393
395
  } : void 0
@@ -437,42 +439,42 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
437
439
  }, null, 8, ht)
438
440
  ], 8, vt)
439
441
  ]),
440
- (o(!0), u(x, null, S(m.value, (t, r) => (o(), u("path", {
442
+ (o(!0), u(x, null, S(m.value, (a, r) => (o(), u("path", {
441
443
  key: `arc_${r}`,
442
- d: t.arcSlice,
443
- fill: t.color,
444
+ d: a.arcSlice,
445
+ fill: a.color,
444
446
  stroke: e.value.style.chart.backgroundColor,
445
447
  "stroke-linecap": "round"
446
448
  }, null, 8, dt))), 128)),
447
449
  e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (o(), u(x, { key: 0 }, [
448
- (o(!0), u(x, null, S(m.value, (t, r) => (o(), u("path", {
450
+ (o(!0), u(x, null, S(m.value, (a, r) => (o(), u("path", {
449
451
  id: `curve_${_.value}_${r}`,
450
452
  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`,
451
453
  fill: "transparent"
452
454
  }, null, 8, yt))), 256)),
453
- (o(!0), u(x, null, S(m.value, (t, r) => (o(), u("text", {
454
- fill: e.value.style.chart.layout.segmentNames.useSerieColor ? t.color : e.value.style.chart.layout.segmentNames.color,
455
+ (o(!0), u(x, null, S(m.value, (a, r) => (o(), u("text", {
456
+ fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
455
457
  "font-size": l.value.segmentFontSize,
456
458
  "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
457
459
  "text-anchor": "middle"
458
460
  }, [
459
461
  p("textPath", {
460
462
  href: `#curve_${_.value}_${r}`,
461
- startOffset: Oe.value[r]
462
- }, C(t.name || ""), 9, mt)
463
+ startOffset: Me.value[r]
464
+ }, C(a.name || ""), 9, mt)
463
465
  ], 8, ft))), 256))
464
466
  ], 64)) : h("", !0),
465
- e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (o(!0), u(x, { key: 1 }, S(Fe.value, (t, r) => (o(), u("text", {
466
- x: t.center.endX,
467
- y: t.center.endY,
468
- "text-anchor": i(Ve)(t, !1, 12).anchor,
469
- fill: e.value.style.chart.layout.segmentNames.useSerieColor ? t.color : e.value.style.chart.layout.segmentNames.color,
467
+ e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (o(!0), u(x, { key: 1 }, S(Fe.value, (a, r) => (o(), u("text", {
468
+ x: a.center.endX,
469
+ y: a.center.endY,
470
+ "text-anchor": i(Ve)(a, !1, 12).anchor,
471
+ fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
470
472
  "font-size": l.value.segmentFontSize,
471
473
  "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
472
- }, C(t.name || ""), 9, pt))), 256)) : h("", !0),
473
- e.value.style.chart.layout.track.useGradient ? (o(!0), u(x, { key: 2 }, S(Me.value, (t, r) => (o(), u("path", {
474
+ }, C(a.name || ""), 9, pt))), 256)) : h("", !0),
475
+ e.value.style.chart.layout.track.useGradient ? (o(!0), u(x, { key: 2 }, S(Oe.value, (a, r) => (o(), u("path", {
474
476
  key: `arc_${r}`,
475
- d: t.arcSlice,
477
+ d: a.arcSlice,
476
478
  fill: "#FFFFFF",
477
479
  stroke: "none",
478
480
  "stroke-linecap": "round",
@@ -489,43 +491,43 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
489
491
  "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
490
492
  "stroke-linecap": "round"
491
493
  }), null, 16, bt),
492
- (o(!0), u(x, null, S(fe.value, (t) => (o(), u("line", G(t, {
494
+ (o(!0), u(x, null, S(fe.value, (a) => (o(), u("line", G(a, {
493
495
  stroke: e.value.style.chart.backgroundColor,
494
496
  "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
495
497
  "stroke-linecap": "round"
496
498
  }), null, 16, xt))), 256)),
497
- (o(!0), u(x, null, S(fe.value, (t) => (o(), u("line", G(t, {
499
+ (o(!0), u(x, null, S(fe.value, (a) => (o(), u("line", G(a, {
498
500
  stroke: e.value.style.chart.layout.segmentSeparators.stroke,
499
501
  "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
500
502
  "stroke-linecap": "round"
501
503
  }), null, 16, _t))), 256))
502
504
  ], 64)) : h("", !0),
503
505
  e.value.style.chart.layout.markers.show ? (o(), u("g", wt, [
504
- (o(!0), u(x, null, S(m.value, (t, r) => (o(), u("text", {
506
+ (o(!0), u(x, null, S(m.value, (a, r) => (o(), u("text", {
505
507
  x: i(z)({
506
508
  centerX: n.value.x1,
507
509
  centerY: c.value.base,
508
- initX: t.center.startX,
509
- initY: t.center.startY,
510
+ initX: a.center.startX,
511
+ initY: a.center.startY,
510
512
  offset: l.value.markerOffset
511
513
  }).x,
512
514
  y: i(z)({
513
515
  centerX: n.value.x1,
514
516
  centerY: c.value.base,
515
- initX: t.center.startX,
516
- initY: t.center.startY,
517
+ initX: a.center.startX,
518
+ initY: a.center.startY,
517
519
  offset: l.value.markerOffset
518
520
  }).y,
519
- "text-anchor": t.center.startX < n.value.x1 - 5 ? "end" : t.center.startX > n.value.x1 + 5 ? "start" : "middle",
521
+ "text-anchor": a.center.startX < n.value.x1 - 5 ? "end" : a.center.startX > n.value.x1 + 5 ? "start" : "middle",
520
522
  "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
521
523
  "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
522
524
  fill: e.value.style.chart.layout.markers.color
523
525
  }, C(i(H)(
524
526
  e.value.style.chart.layout.markers.formatter,
525
- t.from,
527
+ a.from,
526
528
  i(Z)({
527
529
  p: e.value.style.chart.layout.markers.prefix,
528
- v: t.from,
530
+ v: a.from,
529
531
  s: e.value.style.chart.layout.markers.suffix,
530
532
  r: e.value.style.chart.layout.markers.roundingValue
531
533
  })
@@ -553,10 +555,10 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
553
555
  fill: e.value.style.chart.layout.markers.color
554
556
  }, C(i(H)(
555
557
  e.value.style.chart.layout.markers.formatter,
556
- M.value,
558
+ O.value,
557
559
  i(Z)({
558
560
  p: e.value.style.chart.layout.markers.prefix,
559
- v: M.value,
561
+ v: O.value,
560
562
  s: e.value.style.chart.layout.markers.suffix,
561
563
  r: e.value.style.chart.layout.markers.roundingValue
562
564
  })
@@ -592,8 +594,8 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
592
594
  "stroke-linecap": "round",
593
595
  "stroke-width": l.value.pointerStrokeWidth * 0.3,
594
596
  filter: `url(#blur_${_.value})`
595
- }, null, 8, Ot)) : h("", !0)
596
- ])) : (o(), u("g", Mt, [
597
+ }, null, 8, Mt)) : h("", !0)
598
+ ])) : (o(), u("g", Ot, [
597
599
  ve.value ? (o(), u("path", {
598
600
  key: 0,
599
601
  d: ve.value,
@@ -629,10 +631,10 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
629
631
  r: e.value.style.chart.legend.roundingValue
630
632
  })
631
633
  )), 9, Xt)) : h("", !0),
632
- w(a.$slots, "svg", { svg: l.value }, void 0, !0)
634
+ w(t.$slots, "svg", { svg: l.value }, void 0, !0)
633
635
  ], 14, ot)) : h("", !0),
634
- a.$slots.watermark ? (o(), u("div", Yt, [
635
- w(a.$slots, "watermark", D(B({ isPrinting: i(ue) || i(ne) })), void 0, !0)
636
+ t.$slots.watermark ? (o(), u("div", Yt, [
637
+ w(t.$slots, "watermark", D(B({ isPrinting: i(ue) || i(ne) })), void 0, !0)
636
638
  ])) : h("", !0),
637
639
  Y.value ? h("", !0) : (o(), R(Ke, {
638
640
  key: 6,
@@ -650,19 +652,19 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
650
652
  ref_key: "chartLegend",
651
653
  ref: ee
652
654
  }, [
653
- w(a.$slots, "legend", { legend: $.value }, void 0, !0)
655
+ w(t.$slots, "legend", { legend: $.value }, void 0, !0)
654
656
  ], 512),
655
- a.$slots.source ? (o(), u("div", {
657
+ t.$slots.source ? (o(), u("div", {
656
658
  key: 7,
657
659
  ref_key: "source",
658
660
  ref: te,
659
661
  dir: "auto"
660
662
  }, [
661
- w(a.$slots, "source", {}, void 0, !0)
663
+ w(t.$slots, "source", {}, void 0, !0)
662
664
  ], 512)) : h("", !0)
663
665
  ], 46, st));
664
666
  }
665
- }, Vt = /* @__PURE__ */ lt(It, [["__scopeId", "data-v-8de26327"]]);
667
+ }, Vt = /* @__PURE__ */ lt(It, [["__scopeId", "data-v-09fb254b"]]);
666
668
  export {
667
669
  Vt as default
668
670
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DHwfzZfj.cjs"),W=require("./useResponsive-BJ7DTGpm.cjs"),H=require("./usePrinter-D-iwyLyE.cjs"),ve=require("./vue-ui-skeleton-DKtNfORj.cjs"),de=require("./Title-CNO85jNx.cjs"),Z=require("./useNestedProp-CSKuqs0C.cjs"),he=require("./PackageVersion-Bmujq1-q.cjs"),me=require("./PenAndPaper-Be8tn5wI.cjs"),fe=require("./useUserOptionState-BgepsfED.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),pe=["id"],ke={key:0},ge=["xmlns","viewBox"],be=["id"],xe=["stop-color"],Se=["stop-color"],_e=["stop-color"],Be=["id"],we=["stdDeviation"],Ce=["d","fill","stroke"],Ne=["id","d"],Fe=["fill","font-size","font-weight"],ze=["href","startOffset"],Pe=["x","y","text-anchor","fill","font-size","font-weight"],Ee=["d","filter"],$e=["stroke","stroke-width"],Oe=["stroke","stroke-width"],Me=["stroke","stroke-width"],Ve=["stroke","stroke-width"],Xe={key:4},Ye=["x","y","text-anchor","font-size","font-weight","fill"],Ie=["x","y","font-size","font-weight","fill"],Ae={key:6},Re=["x1","y1","x2","y2","stroke","stroke-width"],Le=["x1","y1","x2","y2","stroke","stroke-width"],De=["x1","y1","x2","y2","stroke-width","filter"],Ge={key:7},qe=["d","fill","stroke","stroke-width"],Te=["cx","cy","fill","r","stroke-width","stroke"],Ue=["x","y","font-size","fill"],je={key:5,class:"vue-data-ui-watermark"},We={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(C,{expose:J}){const c=C,{vue_ui_gauge:K}=n.useConfig(),_=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length>0&&c.dataset.series&&c.dataset.series.length),y=e.ref(n.createUid()),Q=e.ref(null),P=e.ref(0),g=e.ref(null),E=e.ref(null),$=e.ref(null),O=e.ref(null),M=e.ref(null),V=e.ref(0),t=e.computed({get:()=>I(),set:a=>a}),{userOptionsVisible:N,setUserOptionsVisibility:X,keepUserOptionState:Y}=fe.useUserOptionState({config:t.value});e.watch(()=>c.config,a=>{t.value=I(),N.value=!t.value.showOnChartHover,q(),V.value+=1},{deep:!0});function I(){const a=Z.useNestedProp({userConfig:c.config,defaultConfig:K});return a.theme?{...Z.useNestedProp({userConfig:n.themes.vue_ui_gauge[a.theme]||c.config,defaultConfig:a}),customPalette:n.themePalettes[a.theme]||n.palette}:a}const{isPrinting:A,isImaging:R,generatePdf:L,generateImage:D}=H.usePrinter({elementId:`vue-ui-gauge_${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),p=e.computed(()=>{if(!_.value||n.objectIsEmpty(c.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const a=[];(c.dataset.series||[]).forEach(o=>{a.push(o.from||1e-7),a.push(o.to||1e-7)});const r=Math.max(...a);return{...c.dataset,series:(c.dataset.series||[]).map((o,s)=>({...o,color:n.convertColorToHex(o.color)||te.value[s]||n.palette[s],value:((o.to||0)-(o.from||0))/r*100}))}}),h=e.ref(512),l=e.ref({height:358.4,width:h.value,top:0,bottom:358.4,centerX:179.2,centerY:h.value/2,labelFontSize:18,legendFontSize:t.value.style.chart.legend.fontSize,pointerRadius:t.value.style.chart.layout.pointer.circle.radius,trackSize:t.value.style.chart.layout.track.size,pointerSize:t.value.style.chart.layout.pointer.size,pointerStrokeWidth:t.value.style.chart.layout.pointer.strokeWidth,markerOffset:t.value.style.chart.layout.markers.offsetY+3,segmentFontSize:t.value.style.chart.layout.segmentNames.fontSize}),b=e.ref(0),x=e.ref(0),v=e.ref(t.value.style.chart.animation.use?Math.min(...c.dataset.series.map(a=>a.from)):c.dataset.value);e.watch(()=>c.dataset.value,()=>{T(c.dataset.value)});const u=e.computed(()=>{const a=l.value.width/2,r=i.value.base,o=Math.PI*((v.value+0-x.value)/(b.value-x.value))+Math.PI;return{x1:a,y1:r,x2:a+i.value.pointerSize*l.value.pointerSize*.9*Math.cos(o),y2:r+i.value.pointerSize*l.value.pointerSize*.9*Math.sin(o)}}),G=e.computed(()=>{const a=l.value.width/2,r=i.value.base,o=Math.PI*((v.value+0-x.value)/(b.value-x.value))+Math.PI,s=a+i.value.pointerSize*l.value.pointerSize*.9*Math.cos(o),m=r+i.value.pointerSize*l.value.pointerSize*.9*Math.sin(o),f=l.value.pointerRadius,se=a+f*Math.cos(o+Math.PI/2),ue=r+f*Math.sin(o+Math.PI/2),ie=a+f*Math.cos(o-Math.PI/2),ce=r+f*Math.sin(o-Math.PI/2);return isNaN(s)?null:`M ${s},${m} ${se},${ue} ${ie},${ce} Z`}),F=e.computed(()=>{for(let a=0;a<p.value.series.length;a+=1){const{color:r,from:o,to:s}=p.value.series[a];if(v.value>=o&&v.value<=s)return r}return"#2D353C"}),B=e.ref(null);function q(){if(n.objectIsEmpty(c.dataset)?n.error({componentName:"VueUiGauge",type:"dataset"}):(n.getMissingDatasetAttributes({datasetObject:c.dataset,requiredAttributes:["value","series"]}).forEach(a=>{n.error({componentName:"VueUiGauge",type:"datasetAttribute",property:a})}),Object.hasOwn(c.dataset,"series")&&(c.dataset.series.length?c.dataset.series.forEach((a,r)=>{n.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["from","to"]}).forEach(o=>{n.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:o,index:r})})}):n.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),T(c.dataset.value||0),t.value.responsive){const a=W.throttle(()=>{const{width:r,height:o}=W.useResponsive({chart:g.value,title:t.value.style.chart.title.text?E.value:null,legend:$.value,source:O.value,noTitle:M.value});l.value.width=r,l.value.height=o,l.value.centerX=r/2,l.value.centerY=h.value/2/358.4*o,l.value.bottom=o,l.value.labelFontSize=18/h.value*Math.min(o,r)<10?10:18/h.value*Math.min(o,r),l.value.legendFontSize=t.value.style.chart.legend.fontSize/h.value*Math.min(o,r)<14?14:t.value.style.chart.legend.fontSize/h.value*Math.min(o,r),l.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/h.value*Math.min(o,r),l.value.trackSize=t.value.style.chart.layout.track.size/h.value*Math.min(o,r),l.value.pointerStrokeWidth=n.translateSize({relator:Math.min(r,o),adjuster:h.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),l.value.markerOffset=n.translateSize({relator:Math.max(r,o),adjuster:h.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2}),l.value.segmentFontSize=n.translateSize({relator:Math.min(r,o),adjuster:h.value,source:t.value.style.chart.layout.segmentNames.fontSize,threshold:8,fallback:8})});B.value=new ResizeObserver(a),B.value.observe(g.value.parentNode)}}e.onMounted(()=>{q()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});function T(a){const r=[];(p.value.series||[]).forEach(f=>{r.push(f.from||0),r.push(f.to||0)}),b.value=Math.max(...r),x.value=Math.min(...r);let o=t.value.style.chart.animation.speed;const s=Math.abs(a-v.value)/(o*60);function m(){v.value<a?v.value=Math.min(v.value+s,a):v.value>a&&(v.value=Math.max(v.value-s,a)),v.value!==a&&requestAnimationFrame(m)}m()}const i=e.computed(()=>{const a=t.value.responsive?Math.min(l.value.width,l.value.height):l.value.width,r=2.5/t.value.style.chart.layout.radiusRatio;return{arcs:a/r,gradients:a/(r*1.1),base:t.value.responsive?l.value.height/2:l.value.height*.7,ratingBase:t.value.responsive?l.value.height/2+l.value.height/4:l.value.height*.9,pointerSize:t.value.responsive?Math.min(l.value.width,l.value.height)/3:l.value.width/3.2}}),d=e.computed(()=>n.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.arcs,i.value.arcs,1,1,1,180,109.9495,40*l.value.trackSize)),ae=e.computed(()=>n.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,1,1,1,180,109.9495,40*l.value.trackSize)),k=e.computed(()=>d.value.map(a=>i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio*(a.nameOffsetRatio||1))),U=e.computed(()=>{const{x:a,y:r}=n.offsetFromCenterPoint({initX:d.value[0].firstSeparator.x,initY:d.value[0].firstSeparator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:o,y:s}=n.offsetFromCenterPoint({initX:d.value[0].startX,initY:d.value[0].startY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:a,y1:r,x2:o,y2:s}}),j=e.computed(()=>d.value.map(a=>{const{x:r,y:o}=n.offsetFromCenterPoint({initX:a.separator.x,initY:a.separator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:s,y:m}=n.offsetFromCenterPoint({initX:a.endX,initY:a.endY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:r,y1:o,x2:s,y2:m}}));function oe(a){if(a.reduce((m,f)=>m+f,0)>100)throw new Error("Total % must not exceed 100");const o=50;let s=0;return a.map(m=>(s+=m,`${s/100*o-m/4}%`))}const le=e.computed(()=>oe(d.value.map(a=>a.proportion*100))),re=e.computed(()=>n.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.gradients,i.value.gradients,.95,1,1,180,110.02,2*l.value.trackSize)),S=e.ref(!1);function ne(a){S.value=a,P.value+=1}const w=e.ref(!1);function z(){w.value=!w.value}return J({generatePdf:L,generateImage:D,toggleAnnotator:z}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${S.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:g,id:`vue-ui-gauge_${y.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:r[0]||(r[0]=()=>e.unref(X)(!0)),onMouseleave:r[1]||(r[1]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(me.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:z},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:E,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"gauge-div-title",...t.value.style.chart.title},subtitle:{cy:"gauge-div-subtitle",...t.value.style.chart.title.subtitle}}},{default:e.withCtx(()=>[t.value.translations.base&&C.dataset.base?(e.openBlock(),e.createElementBlock("span",ke,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(C.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&_.value&&(e.unref(Y)||e.unref(N))?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:Q,key:`user_options_${P.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(R),isPrinting:e.unref(A),uid:y.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:S.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:ne,onGeneratePdf:e.unref(L),onGenerateImage:e.unref(D),onToggleAnnotator:z,style:e.normalizeStyle({visibility:e.unref(Y)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:s})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:s})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:s})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":S.value,"vue-data-ui-fulscreen--off":!S.value}),viewBox:`0 0 ${l.value.width<=0?10:l.value.width} ${l.value.height<=0?10:l.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(he._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${y.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)("#FFFFFF",1)},null,8,xe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(n.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,Se),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)("#FFFFFF",1)},null,8,_e)],8,be)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${y.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.track.gradientIntensity},null,8,we)],8,Be)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(o,s)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${s}`,d:o.arcSlice,fill:o.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,Ce))),128)),t.value.style.chart.layout.segmentNames.show&&t.value.style.chart.layout.segmentNames.curved?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(o,s)=>(e.openBlock(),e.createElementBlock("path",{id:`curve_${y.value}_${s}`,d:`M ${u.value.x1},${u.value.y1} m -${k.value[s]},0 a ${k.value[s]},${k.value[s]} 0 1,1 ${2*k.value[s]},0 a ${k.value[s]},${k.value[s]} 0 1,1 -${2*k.value[s]},0`,fill:"transparent"},null,8,Ne))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(o,s)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?o.color:t.value.style.chart.layout.segmentNames.color,"font-size":l.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal","text-anchor":"middle"},[e.createElementVNode("textPath",{href:`#curve_${y.value}_${s}`,startOffset:le.value[s]},e.toDisplayString(o.name||""),9,ze)],8,Fe))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&!t.value.style.chart.layout.segmentNames.curved?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(ae.value,(o,s)=>(e.openBlock(),e.createElementBlock("text",{x:o.center.endX,y:o.center.endY,"text-anchor":e.unref(n.calcMarkerOffsetX)(o,!1,12).anchor,fill:t.value.style.chart.layout.segmentNames.useSerieColor?o.color:t.value.style.chart.layout.segmentNames.color,"font-size":l.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal"},e.toDisplayString(o.name||""),9,Pe))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(re.value,(o,s)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${s}`,d:o.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${y.value})`},null,8,Ee))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentSeparators.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("line",e.mergeProps(U.value,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,$e),e.createElementVNode("line",e.mergeProps(U.value,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Oe),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,o=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(o,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Me))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,o=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(o,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Ve))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(o,s)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(n.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:o.center.startX,initY:o.center.startY,offset:l.value.markerOffset}).x,y:e.unref(n.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:o.center.startX,initY:o.center.startY,offset:l.value.markerOffset}).y,"text-anchor":o.center.startX<u.value.x1-5?"end":o.center.startX>u.value.x1+5?"start":"middle","font-size":l.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.markers.formatter,o.from,e.unref(n.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:o.from,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Ye))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:5,x:e.unref(n.offsetFromCenterPoint)({centerX:l.value.width/2,centerY:i.value.base,initX:d.value.at(-1).endX,initY:d.value.at(-1).endY,offset:l.value.markerOffset}).x,y:e.unref(n.offsetFromCenterPoint)({centerX:l.value.width/2,centerY:i.value.base,initX:d.value.at(-1).endX,initY:d.value.at(-1).endY,offset:l.value.markerOffset}).y,"text-anchor":"start","font-size":l.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.markers.formatter,b.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:b.value,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Ie)):e.createCommentVNode("",!0),t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",Ae,[isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":l.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,Re)),isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":l.value.pointerStrokeWidth*.7},null,8,Le)),!isNaN(u.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":l.value.pointerStrokeWidth*.3,filter:`url(#blur_${y.value})`},null,8,De)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",Ge,[G.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:G.value,fill:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,"stroke-linejoin":"round"},null,8,qe)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:l.value.width/2,cy:i.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:l.value.pointerRadius<=0?1e-4:l.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,Te),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:8,x:l.value.width/2,y:i.value.ratingBase,"text-anchor":"middle","font-size":l.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?F.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.legend.formatter,v.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&v.value>0?"+":""),v:v.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,Ue)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:l.value},void 0,!0)],14,ge)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:$},[e.renderSlot(a.$slots,"legend",{legend:p.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:O,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,pe))}},He=ye._export_sfc(We,[["__scopeId","data-v-09fb254b"]]);exports.default=He;
@@ -1,7 +1,7 @@
1
1
  import { ref as x, onMounted as C, computed as c, watch as z, openBlock as a, createElementBlock as s, normalizeStyle as G, createVNode as L, createElementVNode as t, createCommentVNode as r, Fragment as g, toDisplayString as y, unref as d } from "vue";
2
- import { u as b, c as N, e as $, i as p, f as m } from "./index-ByVaKddw.js";
3
- import { u as F } from "./useNestedProp-GRBJXe5O.js";
4
- import { _ as B } from "./PackageVersion-CEkiDR72.js";
2
+ import { u as b, c as N, e as $, i as p, f as m } from "./index-BSzkwF5n.js";
3
+ import { u as F } from "./useNestedProp-BWC_DPZ5.js";
4
+ import { _ as B } from "./PackageVersion-W3d_oNMs.js";
5
5
  const P = ["viewBox", "width"], V = { key: 0 }, D = ["id"], I = ["stop-color"], M = ["stop-color"], U = ["stroke"], E = ["stroke"], O = ["width", "fill"], S = ["fill"], A = { key: 0 }, j = ["id"], T = /* @__PURE__ */ t("feGaussianBlur", {
6
6
  in: "SourceGraphic",
7
7
  stdDeviation: 1