vue-data-ui 2.3.89 → 2.3.91

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 (182) hide show
  1. package/dist/{Arrow-6DWnAEHt.js → Arrow-CHTslrAF.js} +1 -1
  2. package/dist/{Arrow-CW5gDSmt.cjs → Arrow-DpuaFuue.cjs} +1 -1
  3. package/dist/{BaseIcon-Dj8EbAXm.js → BaseIcon-DfaCNBgc.js} +1 -1
  4. package/dist/{BaseIcon-B_MrASni.cjs → BaseIcon-JWGtHqTA.cjs} +1 -1
  5. package/dist/{DataTable-BmYcdJ1w.js → DataTable-BKc3r3k3.js} +2 -2
  6. package/dist/{DataTable-DAwK5x3h.cjs → DataTable-CnkdsvIo.cjs} +1 -1
  7. package/dist/{Legend-DhQ-a1RH.cjs → Legend-BQJV6Xk4.cjs} +1 -1
  8. package/dist/{Legend-BRG8ddDy.js → Legend-WNL92WSx.js} +1 -1
  9. package/dist/PackageVersion-D9PU8glB.js +10 -0
  10. package/dist/PackageVersion-LdLhc8hQ.cjs +1 -0
  11. package/dist/{Shape-D7jva0XA.cjs → Shape-CgW0V2Og.cjs} +1 -1
  12. package/dist/{Shape-BcL3EDZ5.js → Shape-DPvoEBm9.js} +1 -1
  13. package/dist/{Slicer-DI1kgq9D.js → Slicer-DE9nFM_c.js} +2 -2
  14. package/dist/{Slicer-DV29nclP.cjs → Slicer-Dma3nlzi.cjs} +1 -1
  15. package/dist/{Title-DYwo_Q5b.cjs → Title-Bg_BK11V.cjs} +1 -1
  16. package/dist/{Title-fAvrqioZ.js → Title-CECK1w9L.js} +1 -1
  17. package/dist/{Tooltip-TZYYFvPe.js → Tooltip-Ci3AprCm.js} +1 -1
  18. package/dist/{Tooltip-03RvVGln.cjs → Tooltip-lM1Jzkza.cjs} +1 -1
  19. package/dist/{index-BKTciLz4.cjs → index-BhH89oF0.cjs} +1 -1
  20. package/dist/{index-Ca4RHJ4t.js → index-mBy4elhB.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{useNestedProp-vP7uimPz.js → useNestedProp-BrIRtQj1.js} +1 -1
  23. package/dist/{useNestedProp-BFnXnY0k.cjs → useNestedProp-m8IH8hWW.cjs} +1 -1
  24. package/dist/{usePrinter-CxYg-Dw-.cjs → usePrinter-B8jr_V3b.cjs} +1 -1
  25. package/dist/{usePrinter-5fwXghqP.js → usePrinter-Ck-yukK2.js} +1 -1
  26. package/dist/{vue-data-ui-BaLkNH7M.cjs → vue-data-ui-BgaY7Noy.cjs} +1 -1
  27. package/dist/{vue-data-ui-4VG00HFR.js → vue-data-ui-BuL-2aYA.js} +57 -57
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-C9a-AsIX.cjs +19 -0
  31. package/dist/{vue-ui-3d-bar-DPJWcxqV.js → vue-ui-3d-bar-Cv-56A3m.js} +148 -146
  32. package/dist/{vue-ui-accordion-SXHdW20_.cjs → vue-ui-accordion-Bzq1iTL2.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-vYoYjedX.js → vue-ui-accordion-dyF20BlD.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-BEC4SHLl.js → vue-ui-age-pyramid-BqsDR6uw.js} +83 -81
  35. package/dist/vue-ui-age-pyramid-DDPU8QV8.cjs +1 -0
  36. package/dist/{vue-ui-annotator-B1NZRuJJ.cjs → vue-ui-annotator-B9HxrEVE.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-DFpv61wn.js → vue-ui-annotator-CkJsRR0r.js} +1 -1
  38. package/dist/{vue-ui-candlestick-AEKT8X3p.js → vue-ui-candlestick-B8eYA2g0.js} +113 -111
  39. package/dist/vue-ui-candlestick-DbbbJa-d.cjs +2 -0
  40. package/dist/{vue-ui-carousel-table-DhzVxOvp.js → vue-ui-carousel-table-BCiTg3Ok.js} +4 -4
  41. package/dist/{vue-ui-carousel-table-DCk2p-1k.cjs → vue-ui-carousel-table-CCWGcKb7.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-qqcIpMGB.js → vue-ui-chestnut-DI-N69Ad.js} +161 -159
  43. package/dist/vue-ui-chestnut-rsWP_sXY.cjs +6 -0
  44. package/dist/{vue-ui-cursor-CgSghVjL.js → vue-ui-cursor-BUzJk1oC.js} +2 -2
  45. package/dist/{vue-ui-cursor-CvJgJk1M.cjs → vue-ui-cursor-wY14Z-Vd.cjs} +1 -1
  46. package/dist/{vue-ui-dashboard-CtJdVmtu.cjs → vue-ui-dashboard-Cf8TYbAr.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-CYzkic0X.js → vue-ui-dashboard-CiG3kXLl.js} +2 -2
  48. package/dist/{vue-ui-digits-C0dMG-hR.cjs → vue-ui-digits-BBho1-xO.cjs} +1 -1
  49. package/dist/{vue-ui-digits-BO1hSjoq.js → vue-ui-digits-DZJI0YuX.js} +2 -2
  50. package/dist/{vue-ui-donut-DP-yxiw3.js → vue-ui-donut-CBG9ECp8.js} +118 -116
  51. package/dist/vue-ui-donut-D4WpeX9W.cjs +1 -0
  52. package/dist/vue-ui-donut-evolution-BVnSrr-b.cjs +1 -0
  53. package/dist/{vue-ui-donut-evolution-C-yDyglF.js → vue-ui-donut-evolution-BtTiBfLb.js} +102 -100
  54. package/dist/vue-ui-dumbbell-BQKiB9yH.cjs +9 -0
  55. package/dist/{vue-ui-dumbbell-D2SQ4cKV.js → vue-ui-dumbbell-DlEN2c_X.js} +88 -86
  56. package/dist/{vue-ui-flow-D_E9V2A1.js → vue-ui-flow-CXqGztWj.js} +65 -63
  57. package/dist/vue-ui-flow-DfMNmttZ.cjs +1 -0
  58. package/dist/vue-ui-galaxy-CGn5nkD5.cjs +1 -0
  59. package/dist/{vue-ui-galaxy-DqE2UiA3.js → vue-ui-galaxy-xI38Kf-S.js} +82 -80
  60. package/dist/{vue-ui-gauge-CFYXDw2p.js → vue-ui-gauge-BEludqYn.js} +56 -54
  61. package/dist/vue-ui-gauge-Bz-OSNOJ.cjs +1 -0
  62. package/dist/{vue-ui-gizmo-BWztIJ3j.js → vue-ui-gizmo-BB28OTr1.js} +32 -30
  63. package/dist/vue-ui-gizmo-CZZB7YgY.cjs +1 -0
  64. package/dist/vue-ui-heatmap-BtUvE7rK.cjs +1 -0
  65. package/dist/{vue-ui-heatmap-E1MlhSCs.js → vue-ui-heatmap-mywZXUV8.js} +99 -97
  66. package/dist/{vue-ui-kpi-BWDPF-9X.cjs → vue-ui-kpi-CEAGjnkj.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-DeP0XmP7.js → vue-ui-kpi-zr721ux9.js} +3 -3
  68. package/dist/{vue-ui-mini-loader-Bal12IrX.js → vue-ui-mini-loader-9zyuKIpT.js} +2 -2
  69. package/dist/{vue-ui-mini-loader-D5e8uW_d.cjs → vue-ui-mini-loader-DBFAzGb2.cjs} +1 -1
  70. package/dist/{vue-ui-molecule-DHrHeQgF.js → vue-ui-molecule-Bv_ppQig.js} +77 -75
  71. package/dist/vue-ui-molecule-DltNL0kV.cjs +1 -0
  72. package/dist/{vue-ui-mood-radar-dJaJotNf.js → vue-ui-mood-radar-CIK2Xohn.js} +76 -74
  73. package/dist/vue-ui-mood-radar-CQkF2Rp1.cjs +1 -0
  74. package/dist/{vue-ui-nested-donuts--K9ygdH3.js → vue-ui-nested-donuts-f-cMx3iQ.js} +112 -110
  75. package/dist/vue-ui-nested-donuts-vHr23QlH.cjs +17 -0
  76. package/dist/vue-ui-onion-B6ZrryDW.cjs +5 -0
  77. package/dist/{vue-ui-onion-Bm1inM56.js → vue-ui-onion-CmUXelhy.js} +82 -80
  78. package/dist/vue-ui-parallel-coordinate-plot-BU0yoxD9.cjs +8 -0
  79. package/dist/{vue-ui-parallel-coordinate-plot-9PSGD-LR.js → vue-ui-parallel-coordinate-plot-h9dS2u_k.js} +91 -89
  80. package/dist/{vue-ui-quadrant-iGQbx93I.js → vue-ui-quadrant-DNT_0fTL.js} +141 -139
  81. package/dist/vue-ui-quadrant-DPPXilUd.cjs +1 -0
  82. package/dist/vue-ui-quick-chart-1gG267X0.cjs +15 -0
  83. package/dist/{vue-ui-quick-chart-DeEQcx6A.js → vue-ui-quick-chart-T6C0BTyw.js} +166 -164
  84. package/dist/{vue-ui-radar-DfnhsNQV.js → vue-ui-radar-CfCHXIYJ.js} +89 -87
  85. package/dist/vue-ui-radar-DpzjMFZD.cjs +1 -0
  86. package/dist/{vue-ui-rating-D0rgVdkT.cjs → vue-ui-rating-DYcT_LS-.cjs} +1 -1
  87. package/dist/{vue-ui-rating-CCesFD6e.js → vue-ui-rating-DuRLpMwk.js} +2 -2
  88. package/dist/vue-ui-relation-circle-BMrPtD2n.cjs +1 -0
  89. package/dist/{vue-ui-relation-circle-D2GXm_Fk.js → vue-ui-relation-circle-WmZMKqHL.js} +54 -52
  90. package/dist/{vue-ui-rings-B7_-G3JM.js → vue-ui-rings-Ce0Z_osd.js} +97 -93
  91. package/dist/{vue-ui-rings-CScmcQ1n.cjs → vue-ui-rings-CkYl3uce.cjs} +2 -2
  92. package/dist/vue-ui-scatter-Cjie2D-t.cjs +1 -0
  93. package/dist/{vue-ui-scatter-DdhiNjLc.js → vue-ui-scatter-DY9EpoGP.js} +132 -130
  94. package/dist/{vue-ui-screenshot-BrhjnTwn.cjs → vue-ui-screenshot-BCFym6go.cjs} +1 -1
  95. package/dist/{vue-ui-screenshot-Cpy2qbf1.js → vue-ui-screenshot-lQLJHBQ2.js} +1 -1
  96. package/dist/vue-ui-skeleton-Cf89QIhl.cjs +41 -0
  97. package/dist/{vue-ui-skeleton-D7aLznpP.js → vue-ui-skeleton-DDhwPZd_.js} +423 -388
  98. package/dist/{vue-ui-smiley-Cj0yi7_H.cjs → vue-ui-smiley-DMA6fgGr.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-vcpYARLj.js → vue-ui-smiley-xxMwBT9c.js} +2 -2
  100. package/dist/vue-ui-spark-trend-Btj_H6fa.cjs +1 -0
  101. package/dist/{vue-ui-spark-trend-CFJSCQnf.js → vue-ui-spark-trend-CLHTqp94.js} +42 -40
  102. package/dist/{vue-ui-sparkbar-CgRdDfk6.js → vue-ui-sparkbar-Btk6snt4.js} +53 -51
  103. package/dist/vue-ui-sparkbar-CKrbBVKQ.cjs +1 -0
  104. package/dist/{vue-ui-sparkgauge-CCPMNge0.js → vue-ui-sparkgauge-DKJtFTSv.js} +31 -29
  105. package/dist/vue-ui-sparkgauge-DfWLtFYS.cjs +1 -0
  106. package/dist/{vue-ui-sparkhistogram-D5z2Wtpk.js → vue-ui-sparkhistogram-JRLlw9EX.js} +69 -67
  107. package/dist/vue-ui-sparkhistogram-wHJ-8zVV.cjs +1 -0
  108. package/dist/vue-ui-sparkline-DElVaalm.cjs +1 -0
  109. package/dist/{vue-ui-sparkline-KYN0oKt1.js → vue-ui-sparkline-tBF9iaNm.js} +65 -63
  110. package/dist/{vue-ui-sparkstackbar-7lurD9-4.js → vue-ui-sparkstackbar-BS9I8en7.js} +102 -87
  111. package/dist/vue-ui-sparkstackbar-tZa2IYHP.cjs +1 -0
  112. package/dist/{vue-ui-stackbar-CsVmAvl3.js → vue-ui-stackbar-UiX8q4yL.js} +128 -126
  113. package/dist/vue-ui-stackbar-rOa0atA9.cjs +6 -0
  114. package/dist/{vue-ui-strip-plot-B63AgKts.js → vue-ui-strip-plot-BOkfg5vB.js} +78 -76
  115. package/dist/vue-ui-strip-plot-hRy6QRHK.cjs +1 -0
  116. package/dist/{vue-ui-table-hPqdMR-m.cjs → vue-ui-table-B9dc0l0k.cjs} +1 -1
  117. package/dist/{vue-ui-table-G5O8K-F_.js → vue-ui-table-Dtfv71zG.js} +1 -1
  118. package/dist/{vue-ui-table-heatmap-t9Ngijvp.js → vue-ui-table-heatmap-BMl-sP5Q.js} +4 -4
  119. package/dist/{vue-ui-table-heatmap-BhVuTdSS.cjs → vue-ui-table-heatmap-DUQEHohs.cjs} +1 -1
  120. package/dist/{vue-ui-table-sparkline-DtjJrGve.cjs → vue-ui-table-sparkline-BVnGb-lu.cjs} +1 -1
  121. package/dist/{vue-ui-table-sparkline-BX4en1c-.js → vue-ui-table-sparkline-BeunspIj.js} +5 -5
  122. package/dist/vue-ui-thermometer-A3Xxn5Ly.cjs +1 -0
  123. package/dist/{vue-ui-thermometer-BWGyDQ7_.js → vue-ui-thermometer-Cb9ALBj_.js} +80 -78
  124. package/dist/{vue-ui-timer-8AlVLAJi.js → vue-ui-timer-2PRDq1w6.js} +62 -60
  125. package/dist/vue-ui-timer-DltmIdrq.cjs +64 -0
  126. package/dist/vue-ui-tiremarks-BTlJcW4v.cjs +1 -0
  127. package/dist/{vue-ui-tiremarks-DYIHGkBU.js → vue-ui-tiremarks-Bse3PMGV.js} +51 -49
  128. package/dist/vue-ui-treemap-Cv_mHK8H.cjs +1 -0
  129. package/dist/{vue-ui-treemap-mmvdTHiX.js → vue-ui-treemap-D8fjVYq0.js} +93 -91
  130. package/dist/{vue-ui-vertical-bar-DAKHNRoR.js → vue-ui-vertical-bar-BVldPT8k.js} +110 -108
  131. package/dist/vue-ui-vertical-bar-ZgJq3_CI.cjs +4 -0
  132. package/dist/vue-ui-waffle-BpeGEjCl.cjs +1 -0
  133. package/dist/{vue-ui-waffle-B-A4NYNd.js → vue-ui-waffle-wikAjwZY.js} +72 -70
  134. package/dist/vue-ui-wheel-BlgfdULS.cjs +1 -0
  135. package/dist/{vue-ui-wheel-DN9WvA6Z.js → vue-ui-wheel-D5qyBs0Y.js} +43 -41
  136. package/dist/{vue-ui-word-cloud-BWTyaGAT.js → vue-ui-word-cloud-Bcdl2iE-.js} +60 -58
  137. package/dist/vue-ui-word-cloud-sNzfl_Tq.cjs +1 -0
  138. package/dist/{vue-ui-xy-Dzp4qCjk.js → vue-ui-xy-CUjllUSv.js} +507 -504
  139. package/dist/vue-ui-xy-FHLTc7xG.cjs +3 -0
  140. package/dist/{vue-ui-xy-canvas-CAcTkk_r.cjs → vue-ui-xy-canvas-BJUnRVuf.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-9NPbm7dE.js → vue-ui-xy-canvas-BkOlPU8e.js} +10 -10
  142. package/package.json +1 -1
  143. package/dist/vue-ui-3d-bar-rOT9iPsm.cjs +0 -19
  144. package/dist/vue-ui-age-pyramid-HElID9Ax.cjs +0 -1
  145. package/dist/vue-ui-candlestick-p1s0Av21.cjs +0 -2
  146. package/dist/vue-ui-chestnut-oFfB3fBF.cjs +0 -6
  147. package/dist/vue-ui-donut-Dnnoj71c.cjs +0 -1
  148. package/dist/vue-ui-donut-evolution-vBUH5VVx.cjs +0 -1
  149. package/dist/vue-ui-dumbbell-BUA_uSse.cjs +0 -9
  150. package/dist/vue-ui-flow-B-AFlw-n.cjs +0 -1
  151. package/dist/vue-ui-galaxy-CbL5nONj.cjs +0 -1
  152. package/dist/vue-ui-gauge-BUV_hQND.cjs +0 -1
  153. package/dist/vue-ui-gizmo-B-LxuvDh.cjs +0 -1
  154. package/dist/vue-ui-heatmap-DW5StHKM.cjs +0 -1
  155. package/dist/vue-ui-molecule-DHBId4h4.cjs +0 -1
  156. package/dist/vue-ui-mood-radar-DSXB9l99.cjs +0 -1
  157. package/dist/vue-ui-nested-donuts-CEX2cvop.cjs +0 -17
  158. package/dist/vue-ui-onion-Iekdjs8b.cjs +0 -5
  159. package/dist/vue-ui-parallel-coordinate-plot-OlFoYL_3.cjs +0 -8
  160. package/dist/vue-ui-quadrant-CgJeo2zZ.cjs +0 -1
  161. package/dist/vue-ui-quick-chart-Du8lDPmh.cjs +0 -15
  162. package/dist/vue-ui-radar-BYk9DWnM.cjs +0 -1
  163. package/dist/vue-ui-relation-circle-8eoBav4O.cjs +0 -1
  164. package/dist/vue-ui-scatter-BnBI8qdt.cjs +0 -1
  165. package/dist/vue-ui-skeleton-pDeQ3NcD.cjs +0 -41
  166. package/dist/vue-ui-spark-trend-BW8k0jDd.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-BbJHfAQj.cjs +0 -1
  168. package/dist/vue-ui-sparkgauge-BESRB8_4.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-BYnSfLdb.cjs +0 -1
  170. package/dist/vue-ui-sparkline-D5WUy4p5.cjs +0 -1
  171. package/dist/vue-ui-sparkstackbar-Dy-IfQ3q.cjs +0 -1
  172. package/dist/vue-ui-stackbar-Ch-fmE9l.cjs +0 -6
  173. package/dist/vue-ui-strip-plot-BLRl-tF6.cjs +0 -1
  174. package/dist/vue-ui-thermometer-B07RI9fZ.cjs +0 -1
  175. package/dist/vue-ui-timer-CXrENAVg.cjs +0 -64
  176. package/dist/vue-ui-tiremarks-C43c4_IR.cjs +0 -1
  177. package/dist/vue-ui-treemap-BN90ISQv.cjs +0 -1
  178. package/dist/vue-ui-vertical-bar-BRDO_Rsu.cjs +0 -4
  179. package/dist/vue-ui-waffle-BN_yZEtJ.cjs +0 -1
  180. package/dist/vue-ui-wheel-50_zeiIW.cjs +0 -1
  181. package/dist/vue-ui-word-cloud-BVoFIb_q.cjs +0 -1
  182. package/dist/vue-ui-xy-CJHHesUD.cjs +0 -3
@@ -1,15 +1,16 @@
1
- import { computed as g, ref as h, watch as J, onMounted as ke, onBeforeUnmount as be, openBlock as o, createElementBlock as i, normalizeClass as Q, normalizeStyle as ee, createBlock as G, withCtx as I, toDisplayString as S, createCommentVNode as p, unref as c, createSlots as _e, renderSlot as x, normalizeProps as te, guardReactiveProps as ae, createElementVNode as f, Fragment as R, renderList as E } from "vue";
2
- import { u as xe, c as we, t as Fe, a as Se, p as le, b as ze, o as se, d as Ce, e as O, g as re, m as oe, X as Me, s as A, K as X, i as $e, f as Pe, E as ue } from "./index-Ca4RHJ4t.js";
3
- import { t as Ie, u as Oe } from "./useResponsive-NZB-WLRF.js";
4
- import { u as Xe, U as Ne } from "./usePrinter-5fwXghqP.js";
5
- import Ye from "./vue-ui-skeleton-D7aLznpP.js";
6
- import { _ as Ge } from "./Title-fAvrqioZ.js";
7
- import { u as ne } from "./useNestedProp-vP7uimPz.js";
8
- import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue = ["stop-color"], Be = ["stop-color"], Le = ["stop-color"], We = ["id"], Te = ["stdDeviation"], Ve = ["d", "fill", "stroke"], qe = ["d", "filter"], He = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Ke = ["x", "y", "font-size", "font-weight", "fill"], Ze = { key: 1 }, Je = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Qe = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], et = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], tt = { key: 2 }, at = ["d", "fill", "stroke", "stroke-width"], lt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], st = ["x", "y", "font-size", "fill"], rt = {
1
+ import { computed as g, ref as h, watch as J, onMounted as ke, onBeforeUnmount as be, openBlock as o, createElementBlock as i, normalizeClass as Q, normalizeStyle as ee, createBlock as G, withCtx as I, toDisplayString as S, createCommentVNode as p, unref as c, createSlots as _e, renderSlot as x, normalizeProps as te, guardReactiveProps as ae, createVNode as xe, createElementVNode as f, Fragment as R, renderList as E } from "vue";
2
+ import { u as we, c as Fe, t as Se, a as ze, p as le, b as Ce, o as se, d as $e, e as O, g as re, m as oe, X as Me, s as A, K as X, i as Pe, f as Ie, E as ue } from "./index-mBy4elhB.js";
3
+ import { t as Oe, u as Xe } from "./useResponsive-NZB-WLRF.js";
4
+ import { u as Ne, U as Ye } from "./usePrinter-Ck-yukK2.js";
5
+ import Ge from "./vue-ui-skeleton-DDhwPZd_.js";
6
+ import { _ as Re } from "./Title-CECK1w9L.js";
7
+ import { u as ne } from "./useNestedProp-BrIRtQj1.js";
8
+ import { _ as Ee } from "./PackageVersion-D9PU8glB.js";
9
+ import { _ as Ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const je = ["id"], De = { key: 0 }, Ue = ["xmlns", "viewBox"], Be = ["id"], Le = ["stop-color"], We = ["stop-color"], Te = ["stop-color"], Ve = ["id"], qe = ["stdDeviation"], He = ["d", "fill", "stroke"], Ke = ["d", "filter"], Ze = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Je = ["x", "y", "font-size", "font-weight", "fill"], Qe = { key: 1 }, et = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], tt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], at = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], lt = { key: 2 }, st = ["d", "fill", "stroke", "stroke-width"], rt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], ot = ["x", "y", "font-size", "fill"], ut = {
10
11
  key: 3,
11
12
  class: "vue-data-ui-watermark"
12
- }, ot = {
13
+ }, nt = {
13
14
  __name: "vue-ui-gauge",
14
15
  props: {
15
16
  config: {
@@ -26,7 +27,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
26
27
  }
27
28
  },
28
29
  setup(N, { expose: ie }) {
29
- const r = N, { vue_ui_gauge: ce } = xe(), z = g(() => !!r.dataset && Object.keys(r.dataset).length > 0 && r.dataset.series && r.dataset.series.length), m = h(we()), ve = h(null), j = h(0), C = h(null), D = h(null), U = h(null), B = h(0), e = g({
30
+ const r = N, { vue_ui_gauge: ce } = we(), z = g(() => !!r.dataset && Object.keys(r.dataset).length > 0 && r.dataset.series && r.dataset.series.length), m = h(Fe()), ve = h(null), j = h(0), C = h(null), D = h(null), U = h(null), B = h(0), e = g({
30
31
  get: () => L(),
31
32
  set: (a) => a
32
33
  });
@@ -40,16 +41,16 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
40
41
  });
41
42
  return a.theme ? {
42
43
  ...ne({
43
- userConfig: Fe.vue_ui_gauge[a.theme] || r.config,
44
+ userConfig: Se.vue_ui_gauge[a.theme] || r.config,
44
45
  defaultConfig: a
45
46
  }),
46
- customPalette: Se[a.theme] || le
47
+ customPalette: ze[a.theme] || le
47
48
  } : a;
48
49
  }
49
- const { isPrinting: W, isImaging: T, generatePdf: V, generateImage: q } = Xe({
50
+ const { isPrinting: W, isImaging: T, generatePdf: V, generateImage: q } = Ne({
50
51
  elementId: `vue-ui-gauge_${m.value}`,
51
52
  fileName: e.value.style.chart.title.text || "vue-ui-gauge"
52
- }), de = g(() => ze(e.value.customPalette)), b = g(() => {
53
+ }), de = g(() => Ce(e.value.customPalette)), b = g(() => {
53
54
  if (!z.value || se(r.dataset.series || {}))
54
55
  return {
55
56
  value: 0,
@@ -69,7 +70,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
69
70
  ...r.dataset,
70
71
  series: (r.dataset.series || []).map((l, n) => ({
71
72
  ...l,
72
- color: Ce(l.color) || de.value[n] || le[n],
73
+ color: $e(l.color) || de.value[n] || le[n],
73
74
  value: ((l.to || 0) - (l.from || 0)) / s * 100
74
75
  }))
75
76
  };
@@ -87,12 +88,12 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
87
88
  pointerSize: e.value.style.chart.layout.pointer.size,
88
89
  pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
89
90
  markerOffset: e.value.style.chart.layout.markers.offsetY + 3
90
- }), M = h(0), w = h(0), v = h(e.value.style.chart.animation.use ? 0 : r.dataset.value);
91
+ }), $ = h(0), w = h(0), v = h(e.value.style.chart.animation.use ? 0 : r.dataset.value);
91
92
  J(() => r.dataset.value, () => {
92
93
  Z(r.dataset.value);
93
94
  });
94
95
  const d = g(() => {
95
- const a = t.value.width / 2, s = u.value.base, l = Math.PI * ((v.value + 0 - w.value) / (M.value - w.value)) + Math.PI;
96
+ const a = t.value.width / 2, s = u.value.base, l = Math.PI * ((v.value + 0 - w.value) / ($.value - w.value)) + Math.PI;
96
97
  return {
97
98
  x1: a,
98
99
  y1: s,
@@ -100,7 +101,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
100
101
  y2: s + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(l)
101
102
  };
102
103
  }), H = g(() => {
103
- const a = t.value.width / 2, s = u.value.base, l = Math.PI * ((v.value + 0 - w.value) / (M.value - w.value)) + Math.PI, n = a + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(l), P = s + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(l), k = t.value.pointerRadius, ye = a + k * Math.cos(l + Math.PI / 2), pe = s + k * Math.sin(l + Math.PI / 2), ge = a + k * Math.cos(l - Math.PI / 2), me = s + k * Math.sin(l - Math.PI / 2);
104
+ const a = t.value.width / 2, s = u.value.base, l = Math.PI * ((v.value + 0 - w.value) / ($.value - w.value)) + Math.PI, n = a + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(l), P = s + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(l), k = t.value.pointerRadius, ye = a + k * Math.cos(l + Math.PI / 2), pe = s + k * Math.sin(l + Math.PI / 2), ge = a + k * Math.cos(l - Math.PI / 2), me = s + k * Math.sin(l - Math.PI / 2);
104
105
  return isNaN(n) ? null : `M ${n},${P} ${ye},${pe} ${ge},${me} Z`;
105
106
  }), Y = g(() => {
106
107
  for (let a = 0; a < b.value.series.length; a += 1) {
@@ -109,7 +110,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
109
110
  return s;
110
111
  }
111
112
  return "#2D353C";
112
- }), $ = h(null);
113
+ }), M = h(null);
113
114
  function K() {
114
115
  if (se(r.dataset) ? O({
115
116
  componentName: "VueUiGauge",
@@ -140,8 +141,8 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
140
141
  type: "datasetAttributeEmpty",
141
142
  property: "series"
142
143
  }))), Z(r.dataset.value || 0), e.value.responsive) {
143
- const a = Ie(() => {
144
- const { width: s, height: l } = Oe({
144
+ const a = Oe(() => {
145
+ const { width: s, height: l } = Xe({
145
146
  chart: C.value,
146
147
  title: e.value.style.chart.title.text ? D.value : null,
147
148
  legend: U.value
@@ -160,19 +161,19 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
160
161
  fallback: 2
161
162
  });
162
163
  });
163
- $.value = new ResizeObserver(a), $.value.observe(C.value.parentNode);
164
+ M.value = new ResizeObserver(a), M.value.observe(C.value.parentNode);
164
165
  }
165
166
  }
166
167
  ke(() => {
167
168
  K();
168
169
  }), be(() => {
169
- $.value && $.value.disconnect();
170
+ M.value && M.value.disconnect();
170
171
  });
171
172
  function Z(a) {
172
173
  const s = [];
173
174
  (b.value.series || []).forEach((k) => {
174
175
  s.push(k.from || 0), s.push(k.to || 0);
175
- }), M.value = Math.max(...s), w.value = Math.min(...s);
176
+ }), $.value = Math.max(...s), w.value = Math.min(...s);
176
177
  let l = e.value.style.chart.animation.speed;
177
178
  const n = Math.abs(a - v.value) / (l * 60);
178
179
  function P() {
@@ -233,7 +234,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
233
234
  ref: D,
234
235
  style: "width:100%;background:transparent;padding-bottom:12px"
235
236
  }, [
236
- (o(), G(Ge, {
237
+ (o(), G(Re, {
237
238
  key: `title_${B.value}`,
238
239
  config: {
239
240
  title: {
@@ -247,12 +248,12 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
247
248
  }
248
249
  }, {
249
250
  default: I(() => [
250
- e.value.translations.base && N.dataset.base ? (o(), i("span", Ae, S(e.value.translations.base) + ": " + S(N.dataset.base), 1)) : p("", !0)
251
+ e.value.translations.base && N.dataset.base ? (o(), i("span", De, S(e.value.translations.base) + ": " + S(N.dataset.base), 1)) : p("", !0)
251
252
  ]),
252
253
  _: 1
253
254
  }, 8, ["config"]))
254
255
  ], 512)) : p("", !0),
255
- e.value.userOptions.show && z.value ? (o(), G(Ne, {
256
+ e.value.userOptions.show && z.value ? (o(), G(Ye, {
256
257
  ref_key: "details",
257
258
  ref: ve,
258
259
  key: `user_options_${j.value}`,
@@ -302,6 +303,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
302
303
  viewBox: `0 0 ${t.value.width <= 0 ? 10 : t.value.width} ${t.value.height <= 0 ? 10 : t.value.height}`,
303
304
  style: ee(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
304
305
  }, [
306
+ xe(Ee),
305
307
  f("defs", null, [
306
308
  f("radialGradient", {
307
309
  id: `gradient_${m.value}`,
@@ -314,16 +316,16 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
314
316
  f("stop", {
315
317
  offset: "0%",
316
318
  "stop-color": c(A)("#FFFFFF", 1)
317
- }, null, 8, Ue),
319
+ }, null, 8, Le),
318
320
  f("stop", {
319
321
  offset: "80%",
320
322
  "stop-color": c(A)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
321
- }, null, 8, Be),
323
+ }, null, 8, We),
322
324
  f("stop", {
323
325
  offset: "100%",
324
326
  "stop-color": c(A)("#FFFFFF", 1)
325
- }, null, 8, Le)
326
- ], 8, De)
327
+ }, null, 8, Te)
328
+ ], 8, Be)
327
329
  ]),
328
330
  f("defs", null, [
329
331
  f("filter", {
@@ -336,8 +338,8 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
336
338
  f("feGaussianBlur", {
337
339
  in: "SourceGraphic",
338
340
  stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
339
- }, null, 8, Te)
340
- ], 8, We)
341
+ }, null, 8, qe)
342
+ ], 8, Ve)
341
343
  ]),
342
344
  (o(!0), i(R, null, E(_.value, (l, n) => (o(), i("path", {
343
345
  key: `arc_${n}`,
@@ -345,7 +347,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
345
347
  fill: l.color,
346
348
  stroke: e.value.style.chart.backgroundColor,
347
349
  "stroke-linecap": "round"
348
- }, null, 8, Ve))), 128)),
350
+ }, null, 8, He))), 128)),
349
351
  e.value.style.chart.layout.track.useGradient ? (o(!0), i(R, { key: 0 }, E(he.value, (l, n) => (o(), i("path", {
350
352
  key: `arc_${n}`,
351
353
  d: l.arcSlice,
@@ -353,7 +355,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
353
355
  stroke: "none",
354
356
  "stroke-linecap": "round",
355
357
  filter: `url(#blur_${m.value})`
356
- }, null, 8, qe))), 128)) : p("", !0),
358
+ }, null, 8, Ke))), 128)) : p("", !0),
357
359
  (o(!0), i(R, null, E(_.value, (l, n) => (o(), i("text", {
358
360
  x: c(X)({
359
361
  centerX: t.value.width / 2,
@@ -373,7 +375,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
373
375
  "font-size": t.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
374
376
  "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
375
377
  fill: e.value.style.chart.layout.markers.color
376
- }, S(l.from.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, He))), 256)),
378
+ }, S(l.from.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, Ze))), 256)),
377
379
  f("text", {
378
380
  x: c(X)({
379
381
  centerX: t.value.width / 2,
@@ -393,8 +395,8 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
393
395
  "font-size": t.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
394
396
  "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
395
397
  fill: e.value.style.chart.layout.markers.color
396
- }, S(M.value.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, Ke),
397
- e.value.style.chart.layout.pointer.type === "rounded" ? (o(), i("g", Ze, [
398
+ }, S($.value.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, Je),
399
+ e.value.style.chart.layout.pointer.type === "rounded" ? (o(), i("g", Qe, [
398
400
  isNaN(d.value.x2) ? p("", !0) : (o(), i("line", {
399
401
  key: 0,
400
402
  x1: d.value.x1,
@@ -404,7 +406,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
404
406
  stroke: e.value.style.chart.layout.pointer.stroke,
405
407
  "stroke-width": t.value.pointerStrokeWidth,
406
408
  "stroke-linecap": "round"
407
- }, null, 8, Je)),
409
+ }, null, 8, et)),
408
410
  isNaN(d.value.x2) ? p("", !0) : (o(), i("line", {
409
411
  key: 1,
410
412
  x1: d.value.x1,
@@ -414,7 +416,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
414
416
  stroke: e.value.style.chart.layout.pointer.useRatingColor ? Y.value : e.value.style.chart.layout.pointer.color,
415
417
  "stroke-linecap": "round",
416
418
  "stroke-width": t.value.pointerStrokeWidth * 0.7
417
- }, null, 8, Qe)),
419
+ }, null, 8, tt)),
418
420
  !isNaN(d.value.x2) && e.value.style.chart.layout.track.useGradient ? (o(), i("line", {
419
421
  key: 2,
420
422
  x1: d.value.x1,
@@ -425,8 +427,8 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
425
427
  "stroke-linecap": "round",
426
428
  "stroke-width": t.value.pointerStrokeWidth * 0.3,
427
429
  filter: `url(#blur_${m.value})`
428
- }, null, 8, et)) : p("", !0)
429
- ])) : (o(), i("g", tt, [
430
+ }, null, 8, at)) : p("", !0)
431
+ ])) : (o(), i("g", lt, [
430
432
  H.value ? (o(), i("path", {
431
433
  key: 0,
432
434
  d: H.value,
@@ -434,7 +436,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
434
436
  stroke: e.value.style.chart.layout.pointer.stroke,
435
437
  "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
436
438
  "stroke-linejoin": "round"
437
- }, null, 8, at)) : p("", !0)
439
+ }, null, 8, st)) : p("", !0)
438
440
  ])),
439
441
  f("circle", {
440
442
  cx: t.value.width / 2,
@@ -443,7 +445,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
443
445
  r: t.value.pointerRadius <= 0 ? 1e-4 : t.value.pointerRadius,
444
446
  "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
445
447
  stroke: e.value.style.chart.layout.pointer.circle.stroke
446
- }, null, 8, lt),
448
+ }, null, 8, rt),
447
449
  f("text", {
448
450
  x: t.value.width / 2,
449
451
  y: u.value.ratingBase,
@@ -451,22 +453,22 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
451
453
  "font-size": t.value.legendFontSize,
452
454
  "font-weight": "bold",
453
455
  fill: e.value.style.chart.legend.useRatingColor ? Y.value : e.value.style.chart.legend.color
454
- }, S(c($e)(
456
+ }, S(c(Pe)(
455
457
  e.value.style.chart.legend.formatter,
456
458
  v.value,
457
- c(Pe)({
459
+ c(Ie)({
458
460
  p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && v.value > 0 ? "+" : ""),
459
461
  v: v.value,
460
462
  s: e.value.style.chart.legend.suffix,
461
463
  r: e.value.style.chart.legend.roundingValue
462
464
  })
463
- )), 9, st),
465
+ )), 9, ot),
464
466
  x(a.$slots, "svg", { svg: t.value }, void 0, !0)
465
- ], 14, je)) : p("", !0),
466
- a.$slots.watermark ? (o(), i("div", rt, [
467
+ ], 14, Ue)) : p("", !0),
468
+ a.$slots.watermark ? (o(), i("div", ut, [
467
469
  x(a.$slots, "watermark", te(ae({ isPrinting: c(W) || c(T) })), void 0, !0)
468
470
  ])) : p("", !0),
469
- z.value ? p("", !0) : (o(), G(Ye, {
471
+ z.value ? p("", !0) : (o(), G(Ge, {
470
472
  key: 4,
471
473
  config: {
472
474
  type: "gauge",
@@ -484,9 +486,9 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
484
486
  }, [
485
487
  x(a.$slots, "legend", { legend: b.value }, void 0, !0)
486
488
  ], 512)
487
- ], 14, Ee));
489
+ ], 14, je));
488
490
  }
489
- }, yt = /* @__PURE__ */ Re(ot, [["__scopeId", "data-v-f3c9ca1e"]]);
491
+ }, mt = /* @__PURE__ */ Ae(nt, [["__scopeId", "data-v-2575317d"]]);
490
492
  export {
491
- yt as default
493
+ mt as default
492
494
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-BhH89oF0.cjs"),Y=require("./useResponsive-B3TrDDIG.cjs"),R=require("./usePrinter-B8jr_V3b.cjs"),J=require("./vue-ui-skeleton-Cf89QIhl.cjs"),K=require("./Title-Bg_BK11V.cjs"),D=require("./useNestedProp-m8IH8hWW.cjs"),Q=require("./PackageVersion-LdLhc8hQ.cjs"),ee=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=["id"],ae={key:0},le=["xmlns","viewBox"],re=["id"],oe=["stop-color"],ne=["stop-color"],se=["stop-color"],ue=["id"],ie=["stdDeviation"],ce=["d","fill","stroke"],de=["d","filter"],ve=["x","y","text-anchor","font-size","font-weight","fill"],he=["x","y","font-size","font-weight","fill"],fe={key:1},pe=["x1","y1","x2","y2","stroke","stroke-width"],me=["x1","y1","x2","y2","stroke","stroke-width"],ye=["x1","y1","x2","y2","stroke-width","filter"],ge={key:2},ke=["d","fill","stroke","stroke-width"],be=["cx","cy","fill","r","stroke-width","stroke"],_e=["x","y","font-size","fill"],xe={key:3,class:"vue-data-ui-watermark"},Se={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(w,{expose:G}){const s=w,{vue_ui_gauge:j}=o.useConfig(),k=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length>0&&s.dataset.series&&s.dataset.series.length),h=e.ref(o.createUid()),q=e.ref(null),C=e.ref(0),b=e.ref(null),z=e.ref(null),B=e.ref(null),N=e.ref(0),t=e.computed({get:()=>P(),set:l=>l});e.watch(()=>s.config,l=>{t.value=P(),V(),N.value+=1},{deep:!0});function P(){const l=D.useNestedProp({userConfig:s.config,defaultConfig:j});return l.theme?{...D.useNestedProp({userConfig:o.themes.vue_ui_gauge[l.theme]||s.config,defaultConfig:l}),customPalette:o.themePalettes[l.theme]||o.palette}:l}const{isPrinting:E,isImaging:M,generatePdf:$,generateImage:I}=R.usePrinter({elementId:`vue-ui-gauge_${h.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),A=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),p=e.computed(()=>{if(!k.value||o.objectIsEmpty(s.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const l=[];(s.dataset.series||[]).forEach(r=>{l.push(r.from||0),l.push(r.to||0)});const n=Math.max(...l);return{...s.dataset,series:(s.dataset.series||[]).map((r,i)=>({...r,color:o.convertColorToHex(r.color)||A.value[i]||o.palette[i],value:((r.to||0)-(r.from||0))/n*100}))}}),v=e.ref(512),a=e.ref({height:358.4,width:v.value,top:0,bottom:358.4,centerX:179.2,centerY:v.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}),_=e.ref(0),y=e.ref(0),c=e.ref(t.value.style.chart.animation.use?0:s.dataset.value);e.watch(()=>s.dataset.value,()=>{X(s.dataset.value)});const d=e.computed(()=>{const l=a.value.width/2,n=u.value.base,r=Math.PI*((c.value+0-y.value)/(_.value-y.value))+Math.PI;return{x1:l,y1:n,x2:l+u.value.pointerSize*a.value.pointerSize*.9*Math.cos(r),y2:n+u.value.pointerSize*a.value.pointerSize*.9*Math.sin(r)}}),O=e.computed(()=>{const l=a.value.width/2,n=u.value.base,r=Math.PI*((c.value+0-y.value)/(_.value-y.value))+Math.PI,i=l+u.value.pointerSize*a.value.pointerSize*.9*Math.cos(r),S=n+u.value.pointerSize*a.value.pointerSize*.9*Math.sin(r),f=a.value.pointerRadius,W=l+f*Math.cos(r+Math.PI/2),T=n+f*Math.sin(r+Math.PI/2),H=l+f*Math.cos(r-Math.PI/2),Z=n+f*Math.sin(r-Math.PI/2);return isNaN(i)?null:`M ${i},${S} ${W},${T} ${H},${Z} Z`}),F=e.computed(()=>{for(let l=0;l<p.value.series.length;l+=1){const{color:n,from:r,to:i}=p.value.series[l];if(c.value>=r&&c.value<=i)return n}return"#2D353C"}),x=e.ref(null);function V(){if(o.objectIsEmpty(s.dataset)?o.error({componentName:"VueUiGauge",type:"dataset"}):(o.getMissingDatasetAttributes({datasetObject:s.dataset,requiredAttributes:["value","series"]}).forEach(l=>{o.error({componentName:"VueUiGauge",type:"datasetAttribute",property:l})}),Object.hasOwn(s.dataset,"series")&&(s.dataset.series.length?s.dataset.series.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["from","to"]}).forEach(r=>{o.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:r,index:n})})}):o.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),X(s.dataset.value||0),t.value.responsive){const l=Y.throttle(()=>{const{width:n,height:r}=Y.useResponsive({chart:b.value,title:t.value.style.chart.title.text?z.value:null,legend:B.value});a.value.width=n,a.value.height=r,a.value.centerX=n/2,a.value.centerY=v.value/2/358.4*r,a.value.bottom=r,a.value.labelFontSize=18/v.value*Math.min(r,n)<10?10:18/v.value*Math.min(r,n),a.value.legendFontSize=t.value.style.chart.legend.fontSize/v.value*Math.min(r,n)<14?14:t.value.style.chart.legend.fontSize/v.value*Math.min(r,n),a.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/v.value*Math.min(r,n),a.value.trackSize=t.value.style.chart.layout.track.size/v.value*Math.min(r,n),a.value.pointerStrokeWidth=o.translateSize({relator:Math.min(n,r),adjuster:v.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),a.value.markerOffset=o.translateSize({relator:Math.max(n,r),adjuster:v.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2})});x.value=new ResizeObserver(l),x.value.observe(b.value.parentNode)}}e.onMounted(()=>{V()}),e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});function X(l){const n=[];(p.value.series||[]).forEach(f=>{n.push(f.from||0),n.push(f.to||0)}),_.value=Math.max(...n),y.value=Math.min(...n);let r=t.value.style.chart.animation.speed;const i=Math.abs(l-c.value)/(r*60);function S(){c.value<l?c.value=Math.min(c.value+i,l):c.value>l&&(c.value=Math.max(c.value-i,l)),c.value!==l&&requestAnimationFrame(S)}S()}const u=e.computed(()=>{const l=t.value.responsive?Math.min(a.value.width,a.value.height):a.value.width;return{arcs:l/2.5,gradients:l/2.75,base:t.value.responsive?a.value.height/2:a.value.height*.7,ratingBase:t.value.responsive?a.value.height/2+a.value.height/4:a.value.height*.9,pointerSize:t.value.responsive?Math.min(a.value.width,a.value.height)/3:a.value.width/3.2}}),m=e.computed(()=>o.makeDonut({series:p.value.series},a.value.width/2,u.value.base,u.value.arcs,u.value.arcs,1,1,1,180,109.9495,40*a.value.trackSize)),L=e.computed(()=>o.makeDonut({series:p.value.series},a.value.width/2,u.value.base,u.value.gradients,u.value.gradients,.95,1,1,180,110.02,2*a.value.trackSize)),g=e.ref(!1);function U(l){g.value=l,C.value+=1}return G({generatePdf:$,generateImage:I}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${g.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:b,id:`vue-ui-gauge_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:z,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(K._sfc_main,{key:`title_${N.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&&w.dataset.base?(e.openBlock(),e.createElementBlock("span",ae,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(w.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&k.value?(e.openBlock(),e.createBlock(R.UserOptions,{ref_key:"details",ref:q,key:`user_options_${C.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(M),isPrinting:e.unref(E),uid:h.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:g.value,titles:{...t.value.userOptions.buttonTitles},chartElement:b.value,position:t.value.userOptions.position,onToggleFullscreen:U,onGeneratePdf:e.unref($),onGenerateImage:e.unref(I)},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:r,isFullscreen:i})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:r,isFullscreen:i})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value}),viewBox:`0 0 ${a.value.width<=0?10:a.value.width} ${a.value.height<=0?10:a.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Q._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${h.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",1)},null,8,oe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,ne),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",1)},null,8,se)],8,re)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${h.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,ie)],8,ue)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(r,i)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${i}`,d:r.arcSlice,fill:r.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,ce))),128)),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(L.value,(r,i)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${i}`,d:r.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${h.value})`},null,8,de))),128)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(r,i)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(o.offsetFromCenterPoint)({centerX:a.value.width/2,centerY:u.value.base,initX:r.center.startX,initY:r.center.startY,offset:a.value.markerOffset}).x,y:e.unref(o.offsetFromCenterPoint)({centerX:a.value.width/2,centerY:u.value.base,initX:r.center.startX,initY:r.center.startY,offset:a.value.markerOffset}).y,"text-anchor":r.center.startX<a.value.width/2-5?"end":r.center.startX>a.value.width/2+5?"start":"middle","font-size":a.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(r.from.toFixed(t.value.style.chart.layout.markers.roundingValue)),9,ve))),256)),e.createElementVNode("text",{x:e.unref(o.offsetFromCenterPoint)({centerX:a.value.width/2,centerY:u.value.base,initX:m.value.at(-1).endX,initY:m.value.at(-1).endY,offset:a.value.markerOffset}).x,y:e.unref(o.offsetFromCenterPoint)({centerX:a.value.width/2,centerY:u.value.base,initX:m.value.at(-1).endX,initY:m.value.at(-1).endY,offset:a.value.markerOffset}).y,"text-anchor":"start","font-size":a.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(_.value.toFixed(t.value.style.chart.layout.markers.roundingValue)),9,he),t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",fe,[isNaN(d.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:d.value.x1,y1:d.value.y1,x2:d.value.x2,y2:d.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":a.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,pe)),isNaN(d.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:d.value.x1,y1:d.value.y1,x2:d.value.x2,y2:d.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":a.value.pointerStrokeWidth*.7},null,8,me)),!isNaN(d.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:d.value.x1,y1:d.value.y1,x2:d.value.x2,y2:d.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":a.value.pointerStrokeWidth*.3,filter:`url(#blur_${h.value})`},null,8,ye)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",ge,[O.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:O.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,ke)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:a.value.width/2,cy:u.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:a.value.pointerRadius<=0?1e-4:a.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,be),e.createElementVNode("text",{x:a.value.width/2,y:u.value.ratingBase,"text-anchor":"middle","font-size":a.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?F.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.legend.formatter,c.value,e.unref(o.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&c.value>0?"+":""),v:c.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,_e),e.renderSlot(l.$slots,"svg",{svg:a.value},void 0,!0)],14,le)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",xe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(E)||e.unref(M)})),void 0,!0)])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:4,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:B},[e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0)],512)],14,te))}},we=ee._export_sfc(Se,[["__scopeId","data-v-2575317d"]]);exports.default=we;
@@ -1,12 +1,13 @@
1
- import { ref as x, onMounted as C, computed as c, watch as z, openBlock as a, createElementBlock as s, normalizeStyle as G, createElementVNode as t, createCommentVNode as r, Fragment as g, toDisplayString as y, unref as d } from "vue";
2
- import { u as L, c as b, e as N, i as p, f as k } from "./index-Ca4RHJ4t.js";
3
- import { u as $ } from "./useNestedProp-vP7uimPz.js";
4
- const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"], I = ["stop-color"], M = ["stroke"], U = ["stroke"], V = ["width", "fill"], E = ["fill"], O = { key: 0 }, S = ["id"], A = /* @__PURE__ */ t("feGaussianBlur", {
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-mBy4elhB.js";
3
+ import { u as F } from "./useNestedProp-BrIRtQj1.js";
4
+ import { _ as B } from "./PackageVersion-D9PU8glB.js";
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", {
5
6
  in: "SourceGraphic",
6
7
  stdDeviation: 1
7
- }, null, -1), j = [
8
- A
9
- ], T = ["stroke"], q = ["stroke", "stroke-dasharray", "stroke-dashoffset"], H = ["filter"], J = ["stroke", "stroke-dasharray", "stroke-dashoffset"], K = ["fill"], X = {
8
+ }, null, -1), q = [
9
+ T
10
+ ], H = ["stroke"], J = ["stroke", "stroke-dasharray", "stroke-dashoffset"], K = ["filter"], Q = ["stroke", "stroke-dasharray", "stroke-dashoffset"], R = ["fill"], ee = {
10
11
  __name: "vue-ui-gizmo",
11
12
  props: {
12
13
  config: {
@@ -21,12 +22,12 @@ const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"],
21
22
  }
22
23
  },
23
24
  setup(f) {
24
- const o = f, { vue_ui_gizmo: m } = L(), l = x(b());
25
+ const o = f, { vue_ui_gizmo: k } = b(), l = x(N());
25
26
  C(() => {
26
27
  h();
27
28
  });
28
29
  function h() {
29
- !o.dataset && o.dataset !== 0 && N({
30
+ !o.dataset && o.dataset !== 0 && $({
30
31
  componentName: "VueUiGizmo",
31
32
  type: "dataset"
32
33
  }), o.dataset < 0 && console.warn("VueUiGizmo: dataset cannot be negative.");
@@ -36,9 +37,9 @@ const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"],
36
37
  set: (i) => i
37
38
  });
38
39
  function _() {
39
- return $({
40
+ return F({
40
41
  userConfig: o.config,
41
- defaultConfig: m
42
+ defaultConfig: k
42
43
  });
43
44
  }
44
45
  z(() => o.config, (i) => {
@@ -63,7 +64,8 @@ const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"],
63
64
  fontFamily: e.value.fontFamily
64
65
  })
65
66
  }, [
66
- e.value.useGradient ? (a(), s("defs", B, [
67
+ L(B),
68
+ e.value.useGradient ? (a(), s("defs", V, [
67
69
  t("linearGradient", {
68
70
  id: `gizmo_gradient_${l.value}`,
69
71
  x1: "0%",
@@ -74,12 +76,12 @@ const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"],
74
76
  t("stop", {
75
77
  offset: "0%",
76
78
  "stop-color": e.value.gradientColor
77
- }, null, 8, D),
79
+ }, null, 8, I),
78
80
  t("stop", {
79
81
  offset: "100%",
80
82
  "stop-color": e.value.color
81
- }, null, 8, I)
82
- ], 8, P)
83
+ }, null, 8, M)
84
+ ], 8, D)
83
85
  ])) : r("", !0),
84
86
  e.value.type === "battery" ? (a(), s(g, { key: 1 }, [
85
87
  t("path", {
@@ -87,14 +89,14 @@ const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"],
87
89
  stroke: e.value.stroke,
88
90
  "stroke-width": 2,
89
91
  fill: "none"
90
- }, null, 8, M),
92
+ }, null, 8, U),
91
93
  t("path", {
92
94
  d: "M 70 16 L 70 34",
93
95
  stroke: e.value.stroke,
94
96
  "stroke-width": 2,
95
97
  fill: "none",
96
98
  style: { opacity: "0.5" }
97
- }, null, 8, U),
99
+ }, null, 8, E),
98
100
  t("rect", {
99
101
  x: 10,
100
102
  y: 10,
@@ -102,7 +104,7 @@ const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"],
102
104
  width: 55 * (f.dataset / 100),
103
105
  fill: e.value.useGradient ? `url(#gizmo_gradient_${l.value})` : e.value.color,
104
106
  rx: 2
105
- }, null, 8, V),
107
+ }, null, 8, O),
106
108
  e.value.showPercentage ? (a(), s("text", {
107
109
  key: 0,
108
110
  x: 85,
@@ -113,21 +115,21 @@ const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"],
113
115
  }, y(d(p)(
114
116
  e.value.formatter,
115
117
  o.dataset,
116
- d(k)({
118
+ d(m)({
117
119
  v: o.dataset,
118
120
  s: "%"
119
121
  })
120
- )), 9, E)) : r("", !0)
122
+ )), 9, S)) : r("", !0)
121
123
  ], 64)) : r("", !0),
122
124
  e.value.type === "gauge" ? (a(), s(g, { key: 2 }, [
123
- e.value.useGradient ? (a(), s("defs", O, [
125
+ e.value.useGradient ? (a(), s("defs", A, [
124
126
  t("filter", {
125
127
  id: `blur_${l.value}`,
126
128
  x: "-50%",
127
129
  y: "-50%",
128
130
  width: "200%",
129
131
  height: "200%"
130
- }, j, 8, S)
132
+ }, q, 8, j)
131
133
  ])) : r("", !0),
132
134
  t("circle", {
133
135
  cx: 40,
@@ -136,7 +138,7 @@ const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"],
136
138
  stroke: e.value.stroke,
137
139
  "stroke-width": 2 * 4,
138
140
  fill: "none"
139
- }, null, 8, T),
141
+ }, null, 8, H),
140
142
  t("circle", {
141
143
  cx: 40,
142
144
  cy: 40,
@@ -148,7 +150,7 @@ const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"],
148
150
  "stroke-linecap": "round",
149
151
  fill: "none",
150
152
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
151
- }, null, 8, q),
153
+ }, null, 8, J),
152
154
  e.value.useGradient ? (a(), s("g", {
153
155
  key: 1,
154
156
  filter: `url(#blur_${l.value})`
@@ -163,8 +165,8 @@ const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"],
163
165
  "stroke-dasharray": u.value.dasharray,
164
166
  "stroke-dashoffset": u.value.dashoffset,
165
167
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
166
- }, null, 8, J)
167
- ], 8, H)) : r("", !0),
168
+ }, null, 8, Q)
169
+ ], 8, K)) : r("", !0),
168
170
  e.value.showPercentage ? (a(), s("text", {
169
171
  key: 2,
170
172
  x: 40,
@@ -175,15 +177,15 @@ const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"],
175
177
  }, y(d(p)(
176
178
  e.value.formatter,
177
179
  o.dataset,
178
- d(k)({
180
+ d(m)({
179
181
  v: o.dataset,
180
182
  s: "%"
181
183
  })
182
- )), 9, K)) : r("", !0)
184
+ )), 9, R)) : r("", !0)
183
185
  ], 64)) : r("", !0)
184
- ], 12, F));
186
+ ], 12, P));
185
187
  }
186
188
  };
187
189
  export {
188
- X as default
190
+ ee as default
189
191
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-BhH89oF0.cjs"),m=require("./useNestedProp-m8IH8hWW.cjs"),_=require("./PackageVersion-LdLhc8hQ.cjs"),k=["viewBox","width"],p={key:0},g=["id"],v=["stop-color"],y=["stop-color"],N=["stroke"],C=["stroke"],V=["width","fill"],w=["fill"],x={key:0},B=["id"],E=e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1),b=[E],L=["stroke"],z=["stroke","stroke-dasharray","stroke-dashoffset"],G=["filter"],F=["stroke","stroke-dasharray","stroke-dashoffset"],P=["fill"],$={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(i){const o=i,{vue_ui_gizmo:f}=a.useConfig(),n=e.ref(a.createUid());e.onMounted(()=>{c()});function c(){!o.dataset&&o.dataset!==0&&a.error({componentName:"VueUiGizmo",type:"dataset"}),o.dataset<0&&console.warn("VueUiGizmo: dataset cannot be negative.")}const t=e.computed({get:()=>d(),set:r=>r});function d(){return m.useNestedProp({userConfig:o.config,defaultConfig:f})}e.watch(()=>o.config,r=>{t.value=d(),c()},{deep:!0});const u=e.computed(()=>({battery:{width:t.value.showPercentage?140:80,height:50},gauge:{width:80,height:80}})[t.value.type]),l=e.computed(()=>{const s=2*Math.PI*35,h=s-o.dataset/100*s;return{dasharray:`${s} ${s}`,dashoffset:h}});return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-gizmo",viewBox:`0 0 ${u.value.width} ${u.value.height}`,width:t.value.size,style:e.normalizeStyle({background:"transparent",fontFamily:t.value.fontFamily})},[e.createVNode(_._sfc_main),t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",p,[e.createElementVNode("linearGradient",{id:`gizmo_gradient_${n.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.gradientColor},null,8,v),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,y)],8,g)])):e.createCommentVNode("",!0),t.value.type==="battery"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("path",{d:"M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",stroke:t.value.stroke,"stroke-width":2,fill:"none"},null,8,N),e.createElementVNode("path",{d:"M 70 16 L 70 34",stroke:t.value.stroke,"stroke-width":2,fill:"none",style:{opacity:"0.5"}},null,8,C),e.createElementVNode("rect",{x:10,y:10,height:30,width:55*(i.dataset/100),fill:t.value.useGradient?`url(#gizmo_gradient_${n.value})`:t.value.color,rx:2},null,8,V),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,x:85,y:32,"text-anchor":"start","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,w)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="gauge"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",x,[e.createElementVNode("filter",{id:`blur_${n.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},b,8,B)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.stroke,"stroke-width":2*4,fill:"none"},null,8,L),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.color,"stroke-width":2*4,"stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,"stroke-linecap":"round",fill:"none",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,z),t.value.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${n.value})`},[e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.gradientColor,"stroke-width":1,fill:"none","stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,F)],8,G)):e.createCommentVNode("",!0),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:2,x:40,y:47,"text-anchor":"middle","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,P)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,k))}};exports.default=$;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-BhH89oF0.cjs"),ne=require("./Title-Bg_BK11V.cjs"),J=require("./usePrinter-B8jr_V3b.cjs"),re=require("./Tooltip-lM1Jzkza.cjs"),ie=require("./vue-ui-skeleton-Cf89QIhl.cjs"),de=require("./BaseIcon-JWGtHqTA.cjs"),ce=require("./vue-ui-accordion-Bzq1iTL2.cjs"),Q=require("./useNestedProp-m8IH8hWW.cjs"),ve=require("./PackageVersion-LdLhc8hQ.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),pe=["id"],he={key:0,style:"width:100%;background:transparent"},ge=["xmlns","viewBox"],fe=["x","y","width","height","fill","stroke","stroke-width"],me=["x","y","width","height","fill","stroke","stroke-width"],be=["font-size","font-weight","fill","x","y"],xe=["x","y","width","height","onMouseover"],ke={key:0},we=["font-size","fill","x","y","font-weight"],_e={key:0},Ce=["text-anchor","font-size","fill","font-weight","transform"],Ne={key:1},Le=["x","y","width","height","stroke","stroke-width"],Be={key:2},Ve=["id"],$e=["stop-color"],Ee=["stop-color"],Se=["x","y","font-size","fill"],ze=["x","y","height","rx","fill"],Ae=["x","y","font-size","fill"],Te=["stroke","x1","x2","y1","y2"],Me=["fill","d"],Pe={key:3},Fe={id:"colorScaleHorizontal",x1:"0%",x2:"100%",y1:"0%",y2:"0%"},Oe=["stop-color"],De=["stop-color"],Ie=["x","y","width","height","rx"],Re=["x","y","font-size","fill"],qe=["x","y","font-size","fill"],He=["stroke","x1","x2","y1","y2"],Ue=["fill","d"],Ge={key:3,class:"vue-data-ui-watermark"},Xe={class:"vue-ui-data-table"},je={key:0},Ye=["data-cell"],We={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Ke=["data-cell"],Je={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Qe={__name:"vue-ui-heatmap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(B,{expose:Z}){const n=B;e.useCssVars(l=>({"1678b056":l.tdo}));const{vue_ui_heatmap:ee}=o.useConfig(),V=e.computed(()=>!!n.dataset&&n.dataset.length);o.objectIsEmpty(n.dataset)&&o.error({componentName:"VueUiHeatmap",type:"dataset"});const k=e.ref(o.createUid()),S=e.ref(null),te=e.ref(null),z=e.ref(!1),A=e.ref(""),O=e.ref(void 0),w=e.ref(null),D=e.ref(0),I=e.ref(null),R=e.ref(!1),q=e.ref(0),t=e.computed({get:()=>H(),set:l=>l});function H(){const l=Q.useNestedProp({userConfig:n.config,defaultConfig:ee});let s={};return l.theme?s={...Q.useNestedProp({userConfig:o.themes.vue_ui_heatmap[l.theme]||n.config,defaultConfig:l})}:s=l,n.config&&o.hasDeepProperty(n.config,"style.layout.dataLabels.xAxis.showOnlyAtModulo")?s.style.layout.dataLabels.xAxis.showOnlyAtModulo=n.config.style.layout.dataLabels.xAxis.showOnlyAtModulo:s.style.layout.dataLabels.xAxis.showOnlyAtModulo=null,s}e.watch(()=>n.config,l=>{t.value=H(),T(),q.value+=1},{deep:!0}),e.watch(()=>n.dataset,()=>{T()},{deep:!0});const{isPrinting:U,isImaging:G,generatePdf:X,generateImage:j}=J.usePrinter({elementId:`heatmap__${k.value}`,fileName:t.value.style.title.text||"vue-ui-heatmap"}),y=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),le=e.computed(()=>t.value.table.responsiveBreakpoint);function ae(){new ResizeObserver(s=>{s.forEach(u=>{R.value=u.contentRect.width<le.value})}).observe(I.value)}e.onMounted(T);function T(){ae()}const x=e.computed(()=>Math.max(...n.dataset.flatMap(l=>(l.values||[]).length))),p=e.computed(()=>{const l=t.value.style.layout.padding.top+t.value.style.layout.padding.bottom+n.dataset.length*t.value.style.layout.cells.height,s=t.value.style.layout.padding.left+t.value.style.layout.padding.right+(x.value<n.dataset.length?n.dataset.length:x.value)*t.value.style.layout.cells.height,u=l+(t.value.style.legend.show?t.value.style.legend.position==="right"?0:t.value.style.layout.cells.height*2:0);return{height:l,heightWithLegend:u,width:s}}),$=e.computed(()=>t.value.style.legend.position),a=e.computed(()=>({top:t.value.style.layout.padding.top,left:t.value.style.layout.padding.left,right:p.value.width-t.value.style.layout.padding.right-($.value==="right"&&t.value.style.legend.show?92:0),bottom:p.value.height-t.value.style.layout.padding.bottom,height:p.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,width:p.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left-($.value==="right"&&t.value.style.legend.show?92:0)})),M=e.computed(()=>i.value.height*n.dataset.length),v=e.computed(()=>Math.max(...n.dataset.flatMap(l=>l.values))),m=e.computed(()=>Math.min(...n.dataset.flatMap(l=>l.values))),b=e.computed(()=>{const l=n.dataset.flatMap(u=>u.values);return l.reduce((u,r)=>u+r,0)/l.length}),i=e.computed(()=>({width:a.value.width/x.value,height:a.value.width/(x.value<n.dataset.length?n.dataset.length:x.value)})),h=e.computed(()=>{const l=t.value.style.layout.dataLabels.yAxis.values.length?t.value.style.layout.dataLabels.yAxis.values:n.dataset.map(u=>u.name),s=t.value.style.layout.dataLabels.xAxis.values;return{yLabels:l,xLabels:s.slice(0,x.value)}}),E=e.computed(()=>(n.dataset.forEach((l,s)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["values"]}).forEach(u=>{o.error({componentName:"VueUiHeatmap",type:"datasetSerieAttribute",property:"values",index:s})})}),n.dataset.map(l=>({...l,temperatures:(l.values||[]).map((s,u)=>s>=b.value?{side:"up",color:o.interpolateColorHex(t.value.style.layout.cells.colors.cold,t.value.style.layout.cells.colors.hot,m.value,v.value,s),ratio:Math.abs(Math.abs(s-b.value)/Math.abs(v.value-b.value))>1?1:Math.abs(Math.abs(s-b.value)/Math.abs(v.value-b.value)),value:s,yAxisName:l.name,xAxisName:h.value.xLabels[u],id:`vue-data-ui-heatmap-cell-${o.createUid()}`}:{side:"down",ratio:Math.abs(1-Math.abs(s)/Math.abs(b.value))>1?1:Math.abs(1-Math.abs(s)/Math.abs(b.value)),color:o.interpolateColorHex(t.value.style.layout.cells.colors.cold,t.value.style.layout.cells.colors.hot,m.value,v.value,s),value:s,yAxisName:l.name,xAxisName:h.value.xLabels[u],id:`vue-data-ui-heatmap-cell-${o.createUid()}`})})))),g=e.ref(null),_=e.ref(null);function oe(l,s,u,r){w.value={x:u,y:r};const{value:d,yAxisName:c,xAxisName:f,id:ue}=l;O.value=ue,g.value=d,_.value={datapoint:l,seriesIndex:s,series:E.value,config:t.value},z.value=!0;let P="";const F=t.value.style.tooltip.customFormat;o.isFunction(F)&&o.functionReturnsString(()=>F({datapoint:l,seriesIndex:s,series:E.value,config:t.value}))?A.value=F({datapoint:l,seriesIndex:s,series:E.value,config:t.value}):(P+=`<div>${c} ${f?`${f}`:""}</div>`,P+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${o.interpolateColorHex(t.value.style.layout.cells.colors.cold,t.value.style.layout.cells.colors.hot,m.value,v.value,d)}">⬤</span><span>${isNaN(d)?"-":o.applyDataLabel(t.value.style.layout.cells.value.formatter,d,o.dataLabel({p:t.value.style.layout.dataLabels.prefix,v:d,s:t.value.style.layout.dataLabels.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:s})}</span></div>`,A.value=`<div style="font-size:${t.value.style.tooltip.fontSize}px">${P}</div>`)}const C=e.computed(()=>a.value.top+M.value*(1-g.value/v.value)),N=e.computed(()=>a.value.left+(p.value.width-a.value.left-t.value.style.layout.padding.right)*(g.value/v.value));e.computed(()=>{const l=n.dataset.map(u=>({name:u.name})),s=n.dataset.map(u=>u.values);return{head:l,body:s}});function Y(){e.nextTick(()=>{const l=["",...n.dataset.map((d,c)=>d.name)],s=[];for(let d=0;d<h.value.xLabels.length;d+=1){const c=[h.value.xLabels[d]];for(let f=0;f<n.dataset.length;f+=1)c.push([n.dataset[f].values[d]]);s.push(c)}const u=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(s),r=o.createCsvContent(u);o.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const L=e.ref(!1);function se(l){L.value=l,D.value+=1}function W(){y.value.showTable=!y.value.showTable}function K(){y.value.showTooltip=!y.value.showTooltip}return Z({generatePdf:X,generateCsv:Y,generateImage:j,toggleTable:W,toggleTooltip:K}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"heatmapChart",ref:S,class:e.normalizeClass(`vue-ui-heatmap ${L.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.title.text?"":"padding-top:36px"};background:${t.value.style.backgroundColor}`),id:`heatmap__${k.value}`},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",he,[(e.openBlock(),e.createBlock(ne._sfc_main,{key:`title_${q.value}`,config:{title:{cy:"heatmap-div-title",...t.value.style.title},subtitle:{cy:"heatmap-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&V.value?(e.openBlock(),e.createBlock(J.UserOptions,{ref_key:"details",ref:te,key:`user_options_${D.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(G),isPrinting:e.unref(U),uid:k.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:L.value,isTooltip:y.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:S.value,position:t.value.userOptions.position,onToggleFullscreen:se,onGeneratePdf:e.unref(X),onGenerateCsv:Y,onGenerateImage:e.unref(j),onToggleTable:W,onToggleTooltip:K},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:u,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:u,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":L.value,"vue-data-ui-fulscreen--off":!L.value}),viewBox:`0 0 ${p.value.width} ${p.value.heightWithLegend}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(ve._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(u,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.temperatures,(d,c)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:a.value.left+i.value.width*c+t.value.style.layout.cells.spacing/2,y:a.value.top+i.value.height*r+t.value.style.layout.cells.spacing/2,width:i.value.width-t.value.style.layout.cells.spacing,height:i.value.height-t.value.style.layout.cells.spacing,fill:t.value.style.layout.cells.colors.underlayer,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.cells.spacing},null,8,fe),e.createElementVNode("rect",{x:a.value.left+i.value.width*c+t.value.style.layout.cells.spacing/2,y:a.value.top+i.value.height*r+t.value.style.layout.cells.spacing/2,width:i.value.width-t.value.style.layout.cells.spacing,height:i.value.height-t.value.style.layout.cells.spacing,fill:d.color,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.cells.spacing},null,8,me),t.value.style.layout.cells.value.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle","font-size":t.value.style.layout.cells.value.fontSize,"font-weight":t.value.style.layout.cells.value.bold?"bold":"normal",fill:e.unref(o.adaptColorToBackground)(d.color),x:a.value.left+i.value.width*c+i.value.width/2,y:a.value.top+i.value.height*r+i.value.height/2+t.value.style.layout.cells.value.fontSize/3},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.layout.cells.value.formatter,d.value,e.unref(o.dataLabel)({p:t.value.style.layout.dataLabels.prefix,v:d.value,s:t.value.style.layout.dataLabels.suffix,r:t.value.style.layout.cells.value.roundingValue}),{datapoint:d})),9,be)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.temperatures,(d,c)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:a.value.left+i.value.width*c,y:a.value.top+i.value.height*r,width:i.value.width,height:i.value.height,fill:"transparent",stroke:"none",onMouseover:f=>oe(d,r,a.value.left+i.value.width*c,a.value.top+i.value.height*r),onMouseout:s[0]||(s[0]=f=>{z.value=!1,O.value=void 0,g.value=null,w.value=null})},null,40,xe)]))),256)),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",ke,[e.createElementVNode("text",{"font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,x:a.value.left+t.value.style.layout.dataLabels.yAxis.offsetX-6,y:a.value.top+i.value.height*r+i.value.height/2+t.value.style.layout.dataLabels.yAxis.fontSize/3+t.value.style.layout.dataLabels.yAxis.offsetY,"text-anchor":"end","font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(h.value.yLabels[r]),9,we)])):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",_e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.xLabels,(u,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!t.value.style.layout.dataLabels.xAxis.showOnlyAtModulo||t.value.style.layout.dataLabels.xAxis.showOnlyAtModulo&&r%t.value.style.layout.dataLabels.xAxis.showOnlyAtModulo===0?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.value.style.layout.dataLabels.xAxis.rotation===0?"middle":t.value.style.layout.dataLabels.xAxis.rotation<0?"start":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",transform:`translate(${a.value.left+i.value.width/2+a.value.width/h.value.xLabels.length*r+t.value.style.layout.dataLabels.xAxis.offsetX}, ${a.value.top+t.value.style.layout.dataLabels.xAxis.offsetY-6}), rotate(${t.value.style.layout.dataLabels.xAxis.rotation})`},e.toDisplayString(u),9,Ce)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createElementBlock("g",Ne,[e.createElementVNode("rect",{style:{"pointer-events":"none"},x:w.value.x-t.value.style.layout.cells.selected.border/2+t.value.style.layout.cells.spacing,y:w.value.y-t.value.style.layout.cells.selected.border/2+t.value.style.layout.cells.spacing,width:i.value.width-t.value.style.layout.cells.spacing+t.value.style.layout.cells.selected.border-t.value.style.layout.cells.spacing,height:i.value.height-t.value.style.layout.cells.spacing+t.value.style.layout.cells.selected.border-t.value.style.layout.cells.spacing,fill:"transparent",stroke:t.value.style.layout.cells.selected.color,"stroke-width":t.value.style.layout.cells.selected.border,rx:1},null,8,Le)])):e.createCommentVNode("",!0),t.value.style.legend.show&&$.value==="right"?(e.openBlock(),e.createElementBlock("g",Be,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`colorScaleVertical_${k.value}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.cells.colors.hot},null,8,$e),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.cells.colors.cold},null,8,Ee)],8,Ve)]),e.createElementVNode("text",{x:a.value.right+36+18,y:a.value.top-t.value.style.legend.fontSize*1.5,"text-anchor":"middle","font-size":t.value.style.legend.fontSize*2,fill:t.value.style.legend.color},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.layout.cells.value.formatter,e.unref(o.checkNaN)(v.value),e.unref(o.dataLabel)({p:t.value.style.layout.dataLabels.prefix,v:e.unref(o.checkNaN)(v.value),s:t.value.style.layout.dataLabels.suffix,r:t.value.style.legend.roundingValue}))),9,Se),e.createElementVNode("rect",{x:a.value.right+36,y:a.value.top,width:36,height:M.value,rx:t.value.style.legend.scaleBorderRadius,fill:`url(#colorScaleVertical_${k.value})`},null,8,ze),e.createElementVNode("text",{x:a.value.right+36+18,y:a.value.top+M.value+t.value.style.legend.fontSize*2.5,"text-anchor":"middle","font-size":t.value.style.legend.fontSize*2,fill:t.value.style.legend.color},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.layout.cells.value.formatter,e.unref(o.checkNaN)(m.value),e.unref(o.dataLabel)({p:t.value.style.layout.dataLabels.prefix,v:e.unref(o.checkNaN)(m.value),s:t.value.style.layout.dataLabels.suffix,r:t.value.style.legend.roundingValue}))),9,Ae),g.value!==null?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:e.unref(o.adaptColorToBackground)(_.value.datapoint.color),"stroke-width":"2",x1:a.value.right+36,x2:a.value.right+72,y1:C.value,y2:C.value},null,8,Te)):e.createCommentVNode("",!0),g.value!==null?(e.openBlock(),e.createElementBlock("path",{key:1,fill:t.value.style.color,stroke:"none",d:`M ${a.value.right+36},${C.value} ${a.value.right+26},${C.value-8} ${a.value.right+26},${C.value+8}z`},null,8,Me)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.legend.show&&$.value==="bottom"?(e.openBlock(),e.createElementBlock("g",Pe,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",Fe,[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.cells.colors.cold},null,8,Oe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.cells.colors.hot},null,8,De)])]),e.createElementVNode("rect",{x:a.value.left,y:a.value.bottom+t.value.style.layout.cells.height,width:p.value.width-a.value.left-t.value.style.layout.padding.right,height:t.value.style.layout.cells.height,rx:t.value.style.legend.scaleBorderRadius>t.value.style.layout.cells.height/2?t.value.style.layout.cells.height/2:t.value.style.legend.scaleBorderRadius,fill:"url(#colorScaleHorizontal)"},null,8,Ie),e.createElementVNode("text",{x:a.value.left,y:a.value.bottom+t.value.style.layout.cells.height*2+t.value.style.legend.fontSize*2,"text-anchor":"start","font-size":t.value.style.legend.fontSize*2,fill:t.value.style.legend.color},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.layout.cells.value.formatter,e.unref(o.checkNaN)(m.value),e.unref(o.dataLabel)({p:t.value.style.layout.dataLabels.prefix,v:e.unref(o.checkNaN)(m.value),s:t.value.style.layout.dataLabels.suffix,r:t.value.style.legend.roundingValue}))),9,Re),e.createElementVNode("text",{x:a.value.right,y:a.value.bottom+t.value.style.layout.cells.height*2+t.value.style.legend.fontSize*2,"text-anchor":"end","font-size":t.value.style.legend.fontSize*2,fill:t.value.style.legend.color},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.layout.cells.value.formatter,e.unref(o.checkNaN)(v.value),e.unref(o.dataLabel)({p:t.value.style.layout.dataLabels.prefix,v:e.unref(o.checkNaN)(v.value),s:t.value.style.layout.dataLabels.suffix,r:t.value.style.legend.roundingValue}))),9,qe),g.value!==null?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:e.unref(o.adaptColorToBackground)(_.value.datapoint.color),"stroke-width":"2",x1:N.value,x2:N.value,y1:a.value.bottom+t.value.style.layout.cells.height,y2:a.value.bottom+t.value.style.layout.cells.height*2},null,8,He)):e.createCommentVNode("",!0),g.value!==null?(e.openBlock(),e.createElementBlock("path",{key:1,fill:t.value.style.color,stroke:"none",d:`M ${N.value},${a.value.bottom+t.value.style.layout.cells.height} ${N.value-12},${a.value.bottom+t.value.style.layout.cells.height-20} ${N.value+12},${a.value.bottom+t.value.style.layout.cells.height-20}z`},null,8,Ue)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:p.value},void 0,!0)],14,ge)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(U)||e.unref(G)})),void 0,!0)])):e.createCommentVNode("",!0),V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ie.default,{key:4,config:{type:"heatmap",style:{backgroundColor:t.value.style.backgroundColor,heatmap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createVNode(re._sfc_main,{show:y.value.showTooltip&&z.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:S.value,content:A.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),V.value?(e.openBlock(),e.createBlock(ce.default,{key:5,hideDetails:"",config:{open:y.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"tableContainer",ref:I,class:"vue-ui-heatmap-table"},[e.createElementVNode("div",{style:"width:100%;overflow-x:auto;padding-top:36px;position:relative",class:e.normalizeClass({"vue-ui-responsive":R.value})},[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${t.value.table.th.backgroundColor};`),onClick:s[1]||(s[1]=u=>y.value.showTable=!1),onKeypress:s[2]||(s[2]=e.withKeys(u=>y.value.showTable=!1,["enter"]))},[e.createVNode(de.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("table",Xe,[e.createElementVNode("caption",{style:e.normalizeStyle(`backgroundColor:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},[e.createTextVNode(e.toDisplayString(t.value.style.title.text)+" ",1),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",je,e.toDisplayString(t.value.style.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[e.createElementVNode("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline};padding-right:6px`)},null,4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.dataset,(u,r)=>(e.openBlock(),e.createElementBlock("th",{align:"right",style:e.normalizeStyle(`outline:${t.value.table.th.outline};padding-right:6px`)},e.toDisplayString(u.name),5))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.xLabels,(u,r)=>(e.openBlock(),e.createElementBlock("tr",{role:"row",class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":r%2===0,"vue-ui-data-table__tbody__row-odd":r%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{"data-cell":t.value.table.colNames.xAxis,class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`)},[e.createElementVNode("div",We,e.toDisplayString(u),1)],12,Ye),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.dataset,(d,c)=>(e.openBlock(),e.createElementBlock("td",{class:"vue-ui-data-table__tbody__td","data-cell":B.dataset[c].name,style:e.normalizeStyle(`outline:${t.value.table.td.outline}`)},[e.createElementVNode("div",Je,e.toDisplayString(isNaN(d.values[r])?"-":e.unref(o.dataLabel)({p:t.value.style.layout.dataLabels.prefix,v:d.values[r],s:t.value.style.layout.dataLabels.suffix,r:t.value.table.td.roundingValue})),1)],12,Ke))),256))],6))),256))])])],2)],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,pe))}},Ze=ye._export_sfc(Qe,[["__scopeId","data-v-c67467bd"]]);exports.default=Ze;