vue-data-ui 2.4.90 → 2.5.0

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 (187) hide show
  1. package/README.md +8 -1
  2. package/dist/{Arrow-BSIvdfoj.cjs → Arrow-CDKNBZrn.cjs} +1 -1
  3. package/dist/{Arrow-ZO8Y9-1Q.js → Arrow-DO1Kr0tq.js} +1 -1
  4. package/dist/{BaseIcon-UR3q41gQ.cjs → BaseIcon-BKYwMJ4Y.cjs} +1 -1
  5. package/dist/{BaseIcon-BpofIJET.js → BaseIcon-DVY6e_YL.js} +4 -3
  6. package/dist/{DataTable-DSxaFF3x.js → DataTable-D4_TjSBJ.js} +2 -2
  7. package/dist/{DataTable-D-hda58J.cjs → DataTable-ZowHAjXC.cjs} +1 -1
  8. package/dist/{Legend-bHoLREZn.cjs → Legend-CcoLuZn0.cjs} +1 -1
  9. package/dist/{Legend-DMkFFdOO.js → Legend-K7NRkzGf.js} +2 -2
  10. package/dist/PackageVersion-Cun_qdX7.cjs +1 -0
  11. package/dist/{PackageVersion-LxLDMXmr.js → PackageVersion-DKr8jVlI.js} +1 -1
  12. package/dist/{PenAndPaper-C_SiTAbJ.js → PenAndPaper-CurhQVkh.js} +3 -3
  13. package/dist/{PenAndPaper-BO89xQwu.cjs → PenAndPaper-u46MyY7W.cjs} +1 -1
  14. package/dist/{Shape-tIX54tZo.cjs → Shape-B6dlN2je.cjs} +1 -1
  15. package/dist/{Shape-BysfkOzx.js → Shape-C4LyHNQ3.js} +1 -1
  16. package/dist/{Slicer-BxN9wDTW.cjs → Slicer-BIzpsKb9.cjs} +1 -1
  17. package/dist/{Slicer-Cguxp4_C.js → Slicer-CP2dQhd5.js} +2 -2
  18. package/dist/{Title-Dcy3qq8t.js → Title-C4aoNP1T.js} +1 -1
  19. package/dist/{Title-C7FKCxhh.cjs → Title-bDp_4dQV.cjs} +1 -1
  20. package/dist/{Tooltip-CRRn6Gtk.js → Tooltip-CG6ZX21C.js} +1 -1
  21. package/dist/{Tooltip-HFiG7-b2.cjs → Tooltip-fEuHWstj.cjs} +1 -1
  22. package/dist/documentation/installation.md +2 -1
  23. package/dist/index-CHCA909R.cjs +9 -0
  24. package/dist/{index-DD55onbf.js → index-DAAFXQJj.js} +709 -542
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +1140 -384
  27. package/dist/types/vue-data-ui.d.ts +1140 -384
  28. package/dist/{useNestedProp-eByLWGIp.cjs → useNestedProp--1nKK7i0.cjs} +1 -1
  29. package/dist/{useNestedProp-Cf4jge53.js → useNestedProp-DMtJzMiX.js} +1 -1
  30. package/dist/{usePrinter-DWsOiNiW.js → usePrinter-BvlefWMW.js} +1 -1
  31. package/dist/{usePrinter-C1cmAKZi.cjs → usePrinter-xicwiw8r.cjs} +1 -1
  32. package/dist/{vue-data-ui-Ckk3cZP3.js → vue-data-ui-59LZYiyy.js} +68 -66
  33. package/dist/vue-data-ui-DfZfDAuq.cjs +9 -0
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +59 -58
  36. package/dist/{vue-ui-3d-bar-CKUz-73_.js → vue-ui-3d-bar-Bm56SoLy.js} +41 -41
  37. package/dist/{vue-ui-3d-bar-vXOpY3Ff.cjs → vue-ui-3d-bar-CZlGwiDq.cjs} +11 -11
  38. package/dist/{vue-ui-accordion-Bd4pdW-K.cjs → vue-ui-accordion-B4PyxVUm.cjs} +1 -1
  39. package/dist/{vue-ui-accordion-DLLoQbUa.js → vue-ui-accordion-B67N9Oo8.js} +3 -3
  40. package/dist/vue-ui-age-pyramid-D9DN4SYa.cjs +1 -0
  41. package/dist/{vue-ui-age-pyramid-Daa6G08e.js → vue-ui-age-pyramid-DCMUbrYc.js} +12 -12
  42. package/dist/{vue-ui-annotator-p9ayuN1-.cjs → vue-ui-annotator-CNrWYokB.cjs} +1 -1
  43. package/dist/{vue-ui-annotator-CroOFpE1.js → vue-ui-annotator-MuRFw529.js} +1 -1
  44. package/dist/{vue-ui-bullet-D4_F7DfJ.js → vue-ui-bullet-Bojb2p0l.js} +42 -42
  45. package/dist/vue-ui-bullet-DJjM56tB.cjs +34 -0
  46. package/dist/{vue-ui-candlestick-C_CS8yoj.cjs → vue-ui-candlestick-B3J5_Q_K.cjs} +2 -2
  47. package/dist/{vue-ui-candlestick-DH5ZszpO.js → vue-ui-candlestick-DXMPVZ0k.js} +13 -13
  48. package/dist/{vue-ui-carousel-table-KRMGBHRP.js → vue-ui-carousel-table-CQAWsXet.js} +26 -26
  49. package/dist/vue-ui-carousel-table-WNkO6kVE.cjs +1 -0
  50. package/dist/{vue-ui-chestnut-DlzGrBKE.js → vue-ui-chestnut-CChxV7D2.js} +11 -11
  51. package/dist/{vue-ui-chestnut-GIMUpe9V.cjs → vue-ui-chestnut-DUHyQSIc.cjs} +2 -2
  52. package/dist/vue-ui-circle-pack-Bo9NTyE5.cjs +1 -0
  53. package/dist/vue-ui-circle-pack-feW9MRNc.js +639 -0
  54. package/dist/{vue-ui-cursor-Bzpat70I.js → vue-ui-cursor-CTNCoeO1.js} +2 -2
  55. package/dist/{vue-ui-cursor-CP_hLq_F.cjs → vue-ui-cursor-Y79oTXbN.cjs} +1 -1
  56. package/dist/{vue-ui-dashboard-CAxpWqdp.js → vue-ui-dashboard-CTk7cXk3.js} +2 -2
  57. package/dist/{vue-ui-dashboard-Bl45zC_-.cjs → vue-ui-dashboard-ht0wjO32.cjs} +1 -1
  58. package/dist/{vue-ui-digits-DBsciKvZ.js → vue-ui-digits-CRfqQd-4.js} +2 -2
  59. package/dist/{vue-ui-digits-BUj0U6ah.cjs → vue-ui-digits-CSzsY3pv.cjs} +1 -1
  60. package/dist/{vue-ui-donut-BaivqlQ9.js → vue-ui-donut-D6U1P8MA.js} +15 -15
  61. package/dist/vue-ui-donut-DhQt8Zro.cjs +1 -0
  62. package/dist/{vue-ui-donut-evolution-DwMUeGj1.js → vue-ui-donut-evolution-BSk3uqC8.js} +42 -42
  63. package/dist/vue-ui-donut-evolution-ZOfJ13fG.cjs +1 -0
  64. package/dist/vue-ui-dumbbell-Cc2vQuKa.cjs +9 -0
  65. package/dist/{vue-ui-dumbbell-BYHA7gmV.js → vue-ui-dumbbell-DwNJ0t9t.js} +12 -12
  66. package/dist/vue-ui-flow-BbKP10ov.cjs +1 -0
  67. package/dist/{vue-ui-flow-DNunZt6t.js → vue-ui-flow-CQisc_LK.js} +11 -11
  68. package/dist/{vue-ui-funnel-C3HTyg1p.js → vue-ui-funnel-DA82mX-l.js} +12 -12
  69. package/dist/vue-ui-funnel-DybxnhPr.cjs +1 -0
  70. package/dist/vue-ui-galaxy-C-hNndez.cjs +1 -0
  71. package/dist/{vue-ui-galaxy-DqJhMTWB.js → vue-ui-galaxy-Co-39JiJ.js} +29 -29
  72. package/dist/{vue-ui-gauge-TkdVQL99.js → vue-ui-gauge-TvTF5LS6.js} +29 -29
  73. package/dist/vue-ui-gauge-gWdl5oo1.cjs +1 -0
  74. package/dist/{vue-ui-gizmo-DkSmQPnp.cjs → vue-ui-gizmo-BQoNUgtQ.cjs} +1 -1
  75. package/dist/{vue-ui-gizmo-B8hAT82V.js → vue-ui-gizmo-KnX0YMoX.js} +3 -3
  76. package/dist/vue-ui-heatmap-B5xnkUqI.cjs +1 -0
  77. package/dist/{vue-ui-heatmap-CyoWZ7ce.js → vue-ui-heatmap-BYhGn41t.js} +32 -32
  78. package/dist/{vue-ui-history-plot-DCSjZE3t.js → vue-ui-history-plot-8n3FPjHp.js} +33 -33
  79. package/dist/vue-ui-history-plot-BFZOwwn-.cjs +1 -0
  80. package/dist/{vue-ui-kpi-DTIZqf1G.cjs → vue-ui-kpi-BRrkDdp5.cjs} +1 -1
  81. package/dist/{vue-ui-kpi-CEybiAoH.js → vue-ui-kpi-r9o6PDR7.js} +3 -3
  82. package/dist/{vue-ui-mini-loader-vuKZGTDh.cjs → vue-ui-mini-loader-BXBmMZE5.cjs} +1 -1
  83. package/dist/{vue-ui-mini-loader-DtmpAbXk.js → vue-ui-mini-loader-z5Tjy9_F.js} +2 -2
  84. package/dist/vue-ui-molecule-BS-uVTx6.cjs +1 -0
  85. package/dist/{vue-ui-molecule-CP3TR3uW.js → vue-ui-molecule-Hmix0fg_.js} +13 -13
  86. package/dist/vue-ui-mood-radar-D3bJvAUA.cjs +1 -0
  87. package/dist/{vue-ui-mood-radar-Cl0h0D-W.js → vue-ui-mood-radar-cQQYzxOe.js} +13 -13
  88. package/dist/{vue-ui-nested-donuts-Dt5rDxew.js → vue-ui-nested-donuts-BQ-orCsy.js} +14 -14
  89. package/dist/{vue-ui-nested-donuts-C0umA4ML.cjs → vue-ui-nested-donuts-CJoByLIN.cjs} +2 -2
  90. package/dist/{vue-ui-onion-iQwEuELC.cjs → vue-ui-onion-2gpWMiK3.cjs} +2 -2
  91. package/dist/{vue-ui-onion-Dd6TzYXX.js → vue-ui-onion-DMdgBAGm.js} +13 -13
  92. package/dist/{vue-ui-parallel-coordinate-plot-D3tglRgP.cjs → vue-ui-parallel-coordinate-plot-BkksCptE.cjs} +2 -2
  93. package/dist/{vue-ui-parallel-coordinate-plot-CDWIGek4.js → vue-ui-parallel-coordinate-plot-CORjvdpu.js} +35 -35
  94. package/dist/{vue-ui-quadrant-HQMcbIkL.js → vue-ui-quadrant-C7z-xan4.js} +14 -14
  95. package/dist/vue-ui-quadrant-DwLVQDkC.cjs +1 -0
  96. package/dist/{vue-ui-quick-chart-BHN_uJBE.js → vue-ui-quick-chart-BNBYa1qm.js} +9 -9
  97. package/dist/{vue-ui-quick-chart-Debf-SrU.cjs → vue-ui-quick-chart-DQ_0L2k8.cjs} +1 -1
  98. package/dist/{vue-ui-radar-2Ck9VBhT.js → vue-ui-radar-BJalnvQ0.js} +14 -14
  99. package/dist/vue-ui-radar-DMug3I3r.cjs +1 -0
  100. package/dist/{vue-ui-rating-CFUtQBK8.cjs → vue-ui-rating-CAtmkCip.cjs} +1 -1
  101. package/dist/{vue-ui-rating-l_ou-fwb.js → vue-ui-rating-YrpteNHP.js} +2 -2
  102. package/dist/vue-ui-relation-circle-6WgpxOdi.cjs +1 -0
  103. package/dist/{vue-ui-relation-circle-Bz9PNnTk.js → vue-ui-relation-circle-CaX6ryF7.js} +37 -37
  104. package/dist/{vue-ui-rings-BHSDf_bS.js → vue-ui-rings-B94ER7yb.js} +36 -36
  105. package/dist/{vue-ui-rings-B88wRjdq.cjs → vue-ui-rings-DwXSWAh9.cjs} +2 -2
  106. package/dist/{vue-ui-scatter-CFf7Shno.js → vue-ui-scatter-R_o-56au.js} +14 -14
  107. package/dist/vue-ui-scatter-klHezU7g.cjs +1 -0
  108. package/dist/{vue-ui-screenshot-c_vhJ0-B.cjs → vue-ui-screenshot-BJBVXs5F.cjs} +1 -1
  109. package/dist/{vue-ui-screenshot-CDenayoD.js → vue-ui-screenshot-CawOtRGf.js} +1 -1
  110. package/dist/{vue-ui-skeleton-CESQcfWL.js → vue-ui-skeleton-BM3ut-zl.js} +457 -377
  111. package/dist/vue-ui-skeleton-DsMIGHB3.cjs +41 -0
  112. package/dist/{vue-ui-smiley-D-VUvg62.js → vue-ui-smiley-DX5k4pRq.js} +2 -2
  113. package/dist/{vue-ui-smiley-DbELC5Y0.cjs → vue-ui-smiley-bh_FuZmP.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-DhPjPyRU.js → vue-ui-spark-trend-BSLfkSAJ.js} +5 -5
  115. package/dist/{vue-ui-spark-trend-BdRhlsPm.cjs → vue-ui-spark-trend-N88_MES6.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-DNCM5xum.js → vue-ui-sparkbar-CgV-sv7t.js} +4 -4
  117. package/dist/{vue-ui-sparkbar-wgbRG59n.cjs → vue-ui-sparkbar-NRuy_wAW.cjs} +1 -1
  118. package/dist/{vue-ui-sparkgauge-1F6Unq-t.js → vue-ui-sparkgauge-YOs41cOi.js} +4 -4
  119. package/dist/{vue-ui-sparkgauge-B-cPl2OP.cjs → vue-ui-sparkgauge-h9hOQBbL.cjs} +1 -1
  120. package/dist/{vue-ui-sparkhistogram-C69wU065.js → vue-ui-sparkhistogram-BHVoP35U.js} +5 -5
  121. package/dist/{vue-ui-sparkhistogram-Bf3Q8coy.cjs → vue-ui-sparkhistogram-BIoA2rZ8.cjs} +1 -1
  122. package/dist/{vue-ui-sparkline-BvxaN2GO.cjs → vue-ui-sparkline-C3lqwFGV.cjs} +1 -1
  123. package/dist/{vue-ui-sparkline-CrP5yEbF.js → vue-ui-sparkline-nIfo0etd.js} +4 -4
  124. package/dist/{vue-ui-sparkstackbar-BlzBOi83.cjs → vue-ui-sparkstackbar-CBBZJlfz.cjs} +1 -1
  125. package/dist/{vue-ui-sparkstackbar-C-zgACDi.js → vue-ui-sparkstackbar-CMH38Bht.js} +5 -5
  126. package/dist/{vue-ui-stackbar-BYmJkNhD.js → vue-ui-stackbar-CBzYWzrX.js} +15 -15
  127. package/dist/{vue-ui-stackbar-C96Fxg66.cjs → vue-ui-stackbar-CwwOCVW2.cjs} +2 -2
  128. package/dist/{vue-ui-strip-plot-BS7quLHn.js → vue-ui-strip-plot-3UZVAou8.js} +13 -13
  129. package/dist/vue-ui-strip-plot-Dp2kJ7iQ.cjs +1 -0
  130. package/dist/{vue-ui-table-DwwE3i4I.cjs → vue-ui-table-B3s1IcfE.cjs} +1 -1
  131. package/dist/{vue-ui-table-D4-lUGYK.js → vue-ui-table-CDmWHO-z.js} +1 -1
  132. package/dist/vue-ui-table-heatmap-BsZvR-Zs.cjs +1 -0
  133. package/dist/{vue-ui-table-heatmap-BNmWCrcY.js → vue-ui-table-heatmap-CZD0-bMz.js} +8 -8
  134. package/dist/vue-ui-table-sparkline-BqGa1gwS.cjs +1 -0
  135. package/dist/{vue-ui-table-sparkline-CzVT74Bo.js → vue-ui-table-sparkline-nCnQKAqx.js} +8 -8
  136. package/dist/{vue-ui-thermometer-D6B1e-kE.js → vue-ui-thermometer-Be7yQtd0.js} +12 -12
  137. package/dist/vue-ui-thermometer-dk2T8fWc.cjs +1 -0
  138. package/dist/{vue-ui-timer-Djy00gLF.js → vue-ui-timer-B7jYXTxP.js} +5 -5
  139. package/dist/{vue-ui-timer-BVpkq0Eb.cjs → vue-ui-timer-DMPyhmkw.cjs} +1 -1
  140. package/dist/vue-ui-tiremarks-B2YzKOZ9.cjs +1 -0
  141. package/dist/{vue-ui-tiremarks-BnFhNKNK.js → vue-ui-tiremarks-BysMKDiL.js} +9 -9
  142. package/dist/vue-ui-treemap-BgPQTI0-.cjs +1 -0
  143. package/dist/{vue-ui-treemap-qtGBTWTl.js → vue-ui-treemap-CVEo4sPM.js} +40 -40
  144. package/dist/{vue-ui-vertical-bar-Djtyca8s.js → vue-ui-vertical-bar-DqNS7Ash.js} +36 -36
  145. package/dist/{vue-ui-vertical-bar-Bv6fmPmz.cjs → vue-ui-vertical-bar-tR8BBtIQ.cjs} +2 -2
  146. package/dist/vue-ui-waffle-CNIMp_6k.cjs +1 -0
  147. package/dist/{vue-ui-waffle--GwDqms-.js → vue-ui-waffle-pwRzgt1I.js} +40 -40
  148. package/dist/{vue-ui-wheel-DuULgJzV.js → vue-ui-wheel-U-zWCCQP.js} +18 -18
  149. package/dist/vue-ui-wheel-yVszAJvl.cjs +1 -0
  150. package/dist/vue-ui-word-cloud-D2bvq4zl.cjs +1 -0
  151. package/dist/{vue-ui-word-cloud-CSMNDZ9Y.js → vue-ui-word-cloud-RI8RK0o-.js} +38 -38
  152. package/dist/{vue-ui-xy-Cy5OoDkY.js → vue-ui-xy-BqbnfSBo.js} +14 -14
  153. package/dist/{vue-ui-xy-C4WZl8Rn.cjs → vue-ui-xy-Iprttv_w.cjs} +1 -1
  154. package/dist/{vue-ui-xy-canvas-DKyQkG9T.cjs → vue-ui-xy-canvas-7QgtFfPE.cjs} +3 -3
  155. package/dist/{vue-ui-xy-canvas-D2OMF5vm.js → vue-ui-xy-canvas-CauFtYWC.js} +13 -13
  156. package/package.json +3 -2
  157. package/dist/PackageVersion-C2d9irPH.cjs +0 -1
  158. package/dist/index-oJt6G-1X.cjs +0 -9
  159. package/dist/vue-data-ui-ClVi4qwu.cjs +0 -9
  160. package/dist/vue-ui-age-pyramid-DyOUxoA7.cjs +0 -1
  161. package/dist/vue-ui-bullet-B8ZrosoF.cjs +0 -34
  162. package/dist/vue-ui-carousel-table-BD4n--x5.cjs +0 -1
  163. package/dist/vue-ui-donut-evolution-T0q0AQpw.cjs +0 -1
  164. package/dist/vue-ui-donut-hlEvLIAG.cjs +0 -1
  165. package/dist/vue-ui-dumbbell-DeYS8Jqs.cjs +0 -9
  166. package/dist/vue-ui-flow-g2-DDXHU.cjs +0 -1
  167. package/dist/vue-ui-funnel-Dj7HoggX.cjs +0 -1
  168. package/dist/vue-ui-galaxy-DkKp1Fn6.cjs +0 -1
  169. package/dist/vue-ui-gauge-BzWGRR5d.cjs +0 -1
  170. package/dist/vue-ui-heatmap-BisHe3OP.cjs +0 -1
  171. package/dist/vue-ui-history-plot-BzyhAUsf.cjs +0 -1
  172. package/dist/vue-ui-molecule-BVwf_QS7.cjs +0 -1
  173. package/dist/vue-ui-mood-radar-CBtUbd5w.cjs +0 -1
  174. package/dist/vue-ui-quadrant-CuZcEJGS.cjs +0 -1
  175. package/dist/vue-ui-radar-DxZpBJtG.cjs +0 -1
  176. package/dist/vue-ui-relation-circle-Bo8oWyEB.cjs +0 -1
  177. package/dist/vue-ui-scatter-DwrvTcvG.cjs +0 -1
  178. package/dist/vue-ui-skeleton-Bl1lucUY.cjs +0 -41
  179. package/dist/vue-ui-strip-plot-BpLkljEL.cjs +0 -1
  180. package/dist/vue-ui-table-heatmap-CGb9QBzK.cjs +0 -1
  181. package/dist/vue-ui-table-sparkline-BtVDfdx6.cjs +0 -1
  182. package/dist/vue-ui-thermometer-C6psexEi.cjs +0 -1
  183. package/dist/vue-ui-tiremarks-DQkEWxQJ.cjs +0 -1
  184. package/dist/vue-ui-treemap-BX6nGwvZ.cjs +0 -1
  185. package/dist/vue-ui-waffle-BWAIIf1i.cjs +0 -1
  186. package/dist/vue-ui-wheel-CabI8YAt.cjs +0 -1
  187. package/dist/vue-ui-word-cloud-BJqrgirH.cjs +0 -1
@@ -1,20 +1,20 @@
1
- import { useCssVars as Ie, computed as h, ref as p, watch as $e, onMounted as Be, openBlock as o, createElementBlock as n, normalizeClass as K, normalizeStyle as k, unref as u, createBlock as G, createCommentVNode as c, createSlots as Re, withCtx as _, renderSlot as f, normalizeProps as U, guardReactiveProps as H, createVNode as se, Fragment as A, renderList as O, createElementVNode as i, toDisplayString as b, withKeys as Ee, createTextVNode as Ge, nextTick as Ue } from "vue";
2
- import { u as He, o as Xe, e as Ce, c as ue, t as De, C as je, g as We, O as ne, X as Ye, G as ie, i as V, f as S, v as T, x as qe, y as Ke, q as Je, r as Qe } from "./index-DD55onbf.js";
3
- import { _ as Ze } from "./Title-Dcy3qq8t.js";
4
- import { u as et, U as tt } from "./usePrinter-DWsOiNiW.js";
5
- import { _ as lt } from "./Tooltip-CRRn6Gtk.js";
6
- import at from "./vue-ui-skeleton-CESQcfWL.js";
7
- import ot from "./BaseIcon-BpofIJET.js";
8
- import st from "./vue-ui-accordion-DLLoQbUa.js";
9
- import { u as Le } from "./useNestedProp-Cf4jge53.js";
10
- import { _ as ut } from "./PackageVersion-LxLDMXmr.js";
11
- import { P as nt } from "./PenAndPaper-C_SiTAbJ.js";
1
+ import { useCssVars as Ie, computed as h, ref as p, watch as $e, onMounted as Be, openBlock as o, createElementBlock as n, normalizeClass as K, normalizeStyle as k, unref as u, createBlock as G, createCommentVNode as c, createSlots as Re, withCtx as _, renderSlot as f, normalizeProps as U, guardReactiveProps as H, createVNode as se, Fragment as A, renderList as M, createElementVNode as i, toDisplayString as b, withKeys as Ee, createTextVNode as Ge, nextTick as Ue } from "vue";
2
+ import { u as He, o as Xe, e as Ce, c as ue, t as De, C as je, g as We, O as ne, X as Ye, G as ie, i as V, f as S, v as T, x as qe, y as Ke, q as Je, r as Qe } from "./index-DAAFXQJj.js";
3
+ import { _ as Ze } from "./Title-C4aoNP1T.js";
4
+ import { u as et, U as tt } from "./usePrinter-BvlefWMW.js";
5
+ import { _ as lt } from "./Tooltip-CG6ZX21C.js";
6
+ import at from "./vue-ui-skeleton-BM3ut-zl.js";
7
+ import ot from "./BaseIcon-DVY6e_YL.js";
8
+ import st from "./vue-ui-accordion-B67N9Oo8.js";
9
+ import { u as Le } from "./useNestedProp-DMtJzMiX.js";
10
+ import { _ as ut } from "./PackageVersion-DKr8jVlI.js";
11
+ import { P as nt } from "./PenAndPaper-CurhQVkh.js";
12
12
  import { u as it } from "./useUserOptionState-BIvW1Kz7.js";
13
13
  import { _ as rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const vt = ["id"], dt = {
15
15
  key: 2,
16
16
  style: "width:100%;background:transparent"
17
- }, yt = ["xmlns", "viewBox"], ct = ["width", "height"], ht = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], pt = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], gt = ["font-size", "font-weight", "fill", "x", "y"], ft = ["x", "y", "width", "height", "onMouseover"], bt = { key: 0 }, mt = ["font-size", "fill", "x", "y", "font-weight"], xt = { key: 1 }, wt = ["text-anchor", "font-size", "fill", "font-weight", "transform"], kt = { key: 2 }, _t = ["x", "y", "width", "height", "stroke", "stroke-width"], $t = { key: 3 }, Ct = ["id"], Lt = ["stop-color"], At = ["stop-color"], Tt = ["x", "y", "font-size", "fill"], zt = ["x", "y", "height", "rx", "fill"], Mt = ["x", "y", "font-size", "fill"], Ot = ["stroke", "x1", "x2", "y1", "y2"], St = ["fill", "d"], Nt = { key: 4 }, Ft = {
17
+ }, yt = ["xmlns", "viewBox"], ct = ["width", "height"], ht = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], pt = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], gt = ["font-size", "font-weight", "fill", "x", "y"], ft = ["x", "y", "width", "height", "onMouseover"], bt = { key: 0 }, mt = ["font-size", "fill", "x", "y", "font-weight"], xt = { key: 1 }, wt = ["text-anchor", "font-size", "fill", "font-weight", "transform"], kt = { key: 2 }, _t = ["x", "y", "width", "height", "stroke", "stroke-width"], $t = { key: 3 }, Ct = ["id"], Lt = ["stop-color"], At = ["stop-color"], Tt = ["x", "y", "font-size", "fill"], zt = ["x", "y", "height", "rx", "fill"], Ot = ["x", "y", "font-size", "fill"], Mt = ["stroke", "x1", "x2", "y1", "y2"], St = ["fill", "d"], Nt = { key: 4 }, Ft = {
18
18
  id: "colorScaleHorizontal",
19
19
  x1: "0%",
20
20
  x2: "100%",
@@ -46,14 +46,14 @@ const vt = ["id"], dt = {
46
46
  setup(X, { expose: Ae }) {
47
47
  const r = X;
48
48
  Ie((t) => ({
49
- "2479ec5e": t.tdo
49
+ "519eaa79": t.tdo
50
50
  }));
51
51
  const { vue_ui_heatmap: Te } = He(), D = h(() => !!r.dataset && r.dataset.length);
52
52
  Xe(r.dataset) && Ce({
53
53
  componentName: "VueUiHeatmap",
54
54
  type: "dataset"
55
55
  });
56
- const P = p(ue()), j = p(null), ze = p(null), J = p(!1), Q = p(""), re = p(void 0), I = p(null), ve = p(0), de = p(null), Me = p(null), ye = p(!1), ce = p(0), e = h({
56
+ const P = p(ue()), j = p(null), ze = p(null), J = p(!1), Q = p(""), re = p(void 0), I = p(null), ve = p(0), de = p(null), Oe = p(null), ye = p(!1), ce = p(0), e = h({
57
57
  get: () => ge(),
58
58
  set: (t) => t
59
59
  }), { userOptionsVisible: Z, setUserOptionsVisibility: he, keepUserOptionState: pe } = it({ config: e.value });
@@ -71,14 +71,14 @@ const vt = ["id"], dt = {
71
71
  } : l = t, r.config && je(r.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? l.style.layout.dataLabels.xAxis.showOnlyAtModulo = r.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : l.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, l;
72
72
  }
73
73
  $e(() => r.config, (t) => {
74
- e.value = ge(), Z.value = !e.value.showOnChartHover, ee(), ce.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.tooltip.show;
74
+ e.value = ge(), Z.value = !e.value.userOptions.showOnChartHover, ee(), ce.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.tooltip.show;
75
75
  }, { deep: !0 }), $e(() => r.dataset, () => {
76
76
  ee();
77
77
  }, { deep: !0 });
78
78
  const { isPrinting: fe, isImaging: be, generatePdf: me, generateImage: xe } = et({
79
79
  elementId: `heatmap__${P.value}`,
80
80
  fileName: e.value.style.title.text || "vue-ui-heatmap"
81
- }), Oe = h(() => e.value.userOptions.show && !e.value.style.title.text), m = p({
81
+ }), Me = h(() => e.value.userOptions.show && !e.value.style.title.text), m = p({
82
82
  showTable: e.value.table.show,
83
83
  showTooltip: e.value.style.tooltip.show
84
84
  }), Se = h(() => e.value.table.responsiveBreakpoint);
@@ -107,7 +107,7 @@ const vt = ["id"], dt = {
107
107
  bottom: x.value.height - e.value.style.layout.padding.bottom,
108
108
  height: x.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
109
109
  width: x.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (W.value === "right" && e.value.style.legend.show ? 92 : 0)
110
- })), te = h(() => d.value.height * r.dataset.length), w = h(() => Math.max(...r.dataset.flatMap((t) => t.values))), z = h(() => Math.min(...r.dataset.flatMap((t) => t.values))), M = h(() => {
110
+ })), te = h(() => d.value.height * r.dataset.length), w = h(() => Math.max(...r.dataset.flatMap((t) => t.values))), z = h(() => Math.min(...r.dataset.flatMap((t) => t.values))), O = h(() => {
111
111
  const t = r.dataset.flatMap((s) => s.values);
112
112
  return t.reduce((s, v) => s + v, 0) / t.length;
113
113
  }), d = h(() => ({
@@ -133,17 +133,17 @@ const vt = ["id"], dt = {
133
133
  });
134
134
  }), r.dataset.map((t) => ({
135
135
  ...t,
136
- temperatures: (t.values || []).map((l, s) => l >= M.value ? {
136
+ temperatures: (t.values || []).map((l, s) => l >= O.value ? {
137
137
  side: "up",
138
138
  color: ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, z.value, w.value, l),
139
- ratio: Math.abs(Math.abs(l - M.value) / Math.abs(w.value - M.value)) > 1 ? 1 : Math.abs(Math.abs(l - M.value) / Math.abs(w.value - M.value)),
139
+ ratio: Math.abs(Math.abs(l - O.value) / Math.abs(w.value - O.value)) > 1 ? 1 : Math.abs(Math.abs(l - O.value) / Math.abs(w.value - O.value)),
140
140
  value: l,
141
141
  yAxisName: t.name,
142
142
  xAxisName: $.value.xLabels[s],
143
143
  id: `vue-data-ui-heatmap-cell-${ue()}`
144
144
  } : {
145
145
  side: "down",
146
- ratio: Math.abs(1 - Math.abs(l) / Math.abs(M.value)) > 1 ? 1 : Math.abs(1 - Math.abs(l) / Math.abs(M.value)),
146
+ ratio: Math.abs(1 - Math.abs(l) / Math.abs(O.value)) > 1 ? 1 : Math.abs(1 - Math.abs(l) / Math.abs(O.value)),
147
147
  color: ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, z.value, w.value, l),
148
148
  value: l,
149
149
  yAxisName: t.name,
@@ -242,10 +242,10 @@ const vt = ["id"], dt = {
242
242
  active: q.value,
243
243
  onClose: le
244
244
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : c("", !0),
245
- Oe.value ? (o(), n("div", {
245
+ Me.value ? (o(), n("div", {
246
246
  key: 1,
247
247
  ref_key: "noTitle",
248
- ref: Me,
248
+ ref: Oe,
249
249
  class: "vue-data-ui-no-title-space",
250
250
  style: "height:36px; width: 100%;background:transparent"
251
251
  }, null, 512)) : c("", !0),
@@ -367,8 +367,8 @@ const vt = ["id"], dt = {
367
367
  }, [
368
368
  f(t.$slots, "chart-background", {}, void 0, !0)
369
369
  ], 8, ct)) : c("", !0),
370
- (o(!0), n(A, null, O(Y.value, (s, v) => (o(), n("g", null, [
371
- (o(!0), n(A, null, O(s.temperatures, (y, g) => (o(), n("g", null, [
370
+ (o(!0), n(A, null, M(Y.value, (s, v) => (o(), n("g", null, [
371
+ (o(!0), n(A, null, M(s.temperatures, (y, g) => (o(), n("g", null, [
372
372
  i("rect", {
373
373
  x: a.value.left + d.value.width * g + e.value.style.layout.cells.spacing / 2,
374
374
  y: a.value.top + d.value.height * v + e.value.style.layout.cells.spacing / 2,
@@ -407,7 +407,7 @@ const vt = ["id"], dt = {
407
407
  { datapoint: y }
408
408
  )), 9, gt)) : c("", !0)
409
409
  ]))), 256)),
410
- (o(!0), n(A, null, O(s.temperatures, (y, g) => (o(), n("g", null, [
410
+ (o(!0), n(A, null, M(s.temperatures, (y, g) => (o(), n("g", null, [
411
411
  i("rect", {
412
412
  x: a.value.left + d.value.width * g,
413
413
  y: a.value.top + d.value.height * v,
@@ -433,7 +433,7 @@ const vt = ["id"], dt = {
433
433
  ])) : c("", !0)
434
434
  ]))), 256)),
435
435
  e.value.style.layout.dataLabels.xAxis.show ? (o(), n("g", xt, [
436
- (o(!0), n(A, null, O($.value.xLabels, (s, v) => (o(), n(A, null, [
436
+ (o(!0), n(A, null, M($.value.xLabels, (s, v) => (o(), n(A, null, [
437
437
  !e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && v % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (o(), n("text", {
438
438
  key: 0,
439
439
  "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
@@ -513,7 +513,7 @@ const vt = ["id"], dt = {
513
513
  s: e.value.style.layout.dataLabels.suffix,
514
514
  r: e.value.style.legend.roundingValue
515
515
  })
516
- )), 9, Mt),
516
+ )), 9, Ot),
517
517
  C.value !== null ? (o(), n("line", {
518
518
  key: 0,
519
519
  stroke: u(ie)(B.value.datapoint.color),
@@ -522,7 +522,7 @@ const vt = ["id"], dt = {
522
522
  x2: a.value.right + 72,
523
523
  y1: R.value,
524
524
  y2: R.value
525
- }, null, 8, Ot)) : c("", !0),
525
+ }, null, 8, Mt)) : c("", !0),
526
526
  C.value !== null ? (o(), n("path", {
527
527
  key: 1,
528
528
  fill: e.value.style.color,
@@ -697,14 +697,14 @@ const vt = ["id"], dt = {
697
697
  i("th", {
698
698
  style: k(`outline:${e.value.table.th.outline};padding-right:6px`)
699
699
  }, null, 4),
700
- (o(!0), n(A, null, O(X.dataset, (s, v) => (o(), n("th", {
700
+ (o(!0), n(A, null, M(X.dataset, (s, v) => (o(), n("th", {
701
701
  align: "right",
702
702
  style: k(`outline:${e.value.table.th.outline};padding-right:6px`)
703
703
  }, b(s.name), 5))), 256))
704
704
  ], 4)
705
705
  ]),
706
706
  i("tbody", null, [
707
- (o(!0), n(A, null, O($.value.xLabels, (s, v) => (o(), n("tr", {
707
+ (o(!0), n(A, null, M($.value.xLabels, (s, v) => (o(), n("tr", {
708
708
  role: "row",
709
709
  class: K({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": v % 2 === 0, "vue-ui-data-table__tbody__row-odd": v % 2 !== 0 }),
710
710
  style: k(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
@@ -716,7 +716,7 @@ const vt = ["id"], dt = {
716
716
  }, [
717
717
  i("div", Wt, b(s), 1)
718
718
  ], 12, jt),
719
- (o(!0), n(A, null, O(X.dataset, (y, g) => (o(), n("td", {
719
+ (o(!0), n(A, null, M(X.dataset, (y, g) => (o(), n("td", {
720
720
  class: "vue-ui-data-table__tbody__td",
721
721
  "data-cell": X.dataset[g].name,
722
722
  style: k(`outline:${e.value.table.td.outline}`)
@@ -733,7 +733,7 @@ const vt = ["id"], dt = {
733
733
  }, 8, ["config"])) : c("", !0)
734
734
  ], 46, vt));
735
735
  }
736
- }, vl = /* @__PURE__ */ rt(Kt, [["__scopeId", "data-v-6a9876b1"]]);
736
+ }, vl = /* @__PURE__ */ rt(Kt, [["__scopeId", "data-v-bc6eca02"]]);
737
737
  export {
738
738
  vl as default
739
739
  };
@@ -1,19 +1,19 @@
1
- import { ref as c, computed as f, onMounted as Ue, onBeforeUnmount as We, watch as He, openBlock as s, createElementBlock as r, normalizeClass as O, normalizeStyle as M, unref as y, renderSlot as x, createBlock as z, createCommentVNode as v, createSlots as Ee, withCtx as m, normalizeProps as Y, guardReactiveProps as j, createVNode as ke, Fragment as b, renderList as k, createElementVNode as A, toDisplayString as L, createTextVNode as Ge, nextTick as Ve } from "vue";
2
- import { u as Re, c as we, o as qe, e as Ce, g as Ze, b as Je, d as Ke, p as E, D as _e, i as I, f as F, X as Qe, l as et, h as tt, G as lt, t as at, a as st, C as G, x as ot, q as rt, r as nt, F as N } from "./index-DD55onbf.js";
3
- import { u as $e } from "./useNestedProp-Cf4jge53.js";
4
- import { u as ut, U as it } from "./usePrinter-DWsOiNiW.js";
5
- import { _ as ct } from "./PackageVersion-LxLDMXmr.js";
6
- import { L as vt } from "./Legend-DMkFFdOO.js";
7
- import { _ as ht } from "./Title-Dcy3qq8t.js";
8
- import { _ as yt } from "./Tooltip-CRRn6Gtk.js";
9
- import { D as dt } from "./DataTable-DSxaFF3x.js";
10
- import ft from "./vue-ui-accordion-DLLoQbUa.js";
11
- import { P as xt } from "./PenAndPaper-C_SiTAbJ.js";
12
- import pt from "./vue-ui-skeleton-CESQcfWL.js";
1
+ import { ref as c, computed as f, onMounted as Ue, onBeforeUnmount as We, watch as He, openBlock as s, createElementBlock as r, normalizeClass as P, normalizeStyle as M, unref as y, renderSlot as x, createBlock as z, createCommentVNode as v, createSlots as Ee, withCtx as m, normalizeProps as Y, guardReactiveProps as j, createVNode as ke, Fragment as b, renderList as k, createElementVNode as A, toDisplayString as L, createTextVNode as Ge, nextTick as Ve } from "vue";
2
+ import { u as Re, c as we, o as qe, e as Ce, g as Ze, b as Je, d as Ke, p as E, D as _e, i as I, f as F, X as Qe, l as et, h as tt, G as lt, t as at, a as st, C as G, x as ot, q as rt, r as nt, F as N } from "./index-DAAFXQJj.js";
3
+ import { u as $e } from "./useNestedProp-DMtJzMiX.js";
4
+ import { u as ut, U as it } from "./usePrinter-BvlefWMW.js";
5
+ import { _ as ct } from "./PackageVersion-DKr8jVlI.js";
6
+ import { L as vt } from "./Legend-K7NRkzGf.js";
7
+ import { _ as ht } from "./Title-C4aoNP1T.js";
8
+ import { _ as yt } from "./Tooltip-CG6ZX21C.js";
9
+ import { D as dt } from "./DataTable-D4_TjSBJ.js";
10
+ import ft from "./vue-ui-accordion-B67N9Oo8.js";
11
+ import { P as xt } from "./PenAndPaper-CurhQVkh.js";
12
+ import pt from "./vue-ui-skeleton-BM3ut-zl.js";
13
13
  import { t as mt, u as gt } from "./useResponsive-CoxXLe23.js";
14
14
  import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
15
15
  import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"], $t = { key: 1 }, Mt = ["id"], Tt = ["stop-color"], At = ["stop-color"], Lt = ["stop-color"], St = { key: 2 }, zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Nt = { key: 3 }, Pt = ["x", "y", "fill", "font-size"], Ot = ["transform", "font-size", "fill", "font-weight"], It = { key: 5 }, Ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xt = { key: 6 }, Dt = ["transform", "fill", "font-size", "text-anchor"], Yt = ["x", "y", "font-size", "fill", "font-weight"], jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ut = ["d", "stroke", "stroke-width"], Wt = ["d", "stroke", "stroke-width"], Ht = ["cx", "cy", "fill", "r"], Et = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Gt = { key: 1 }, Vt = ["x", "y", "font-size", "fill", "font-weight"], Rt = { key: 2 }, qt = ["x", "y", "font-size", "font-weight", "fill"], Zt = ["cx", "cy", "r", "onMouseenter", "onClick"], Jt = {
16
+ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"], $t = { key: 1 }, Mt = ["id"], Tt = ["stop-color"], At = ["stop-color"], Lt = ["stop-color"], St = { key: 2 }, zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Nt = { key: 3 }, Ot = ["x", "y", "fill", "font-size"], Pt = ["transform", "font-size", "fill", "font-weight"], It = { key: 5 }, Ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xt = { key: 6 }, Dt = ["transform", "fill", "font-size", "text-anchor"], Yt = ["x", "y", "font-size", "fill", "font-weight"], jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ut = ["d", "stroke", "stroke-width"], Wt = ["d", "stroke", "stroke-width"], Ht = ["cx", "cy", "fill", "r"], Et = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Gt = { key: 1 }, Vt = ["x", "y", "font-size", "fill", "font-weight"], Rt = { key: 2 }, qt = ["x", "y", "font-size", "font-weight", "fill"], Zt = ["cx", "cy", "r", "onMouseenter", "onClick"], Jt = {
17
17
  key: 5,
18
18
  class: "vue-data-ui-watermark"
19
19
  }, Kt = ["onClick"], Qt = ["innerHTML"], el = {
@@ -34,7 +34,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
34
34
  },
35
35
  emits: ["selectLegend", "selectDatapoint"],
36
36
  setup(Me, { expose: Te, emit: K }) {
37
- const h = Me, { vue_ui_history_plot: Ae } = Re(), P = c(null), Q = c(null), ee = c(0), te = c(null), le = c(0), ae = c(0), se = c(0), B = c(null), oe = c(null), X = c(we()), V = c(!1), R = c(""), g = c([]), U = c(!1), $ = c(null), D = c(!1), re = c(null), w = f({
37
+ const h = Me, { vue_ui_history_plot: Ae } = Re(), O = c(null), Q = c(null), ee = c(0), te = c(null), le = c(0), ae = c(0), se = c(0), B = c(null), oe = c(null), X = c(we()), V = c(!1), R = c(""), g = c([]), U = c(!1), $ = c(null), D = c(!1), re = c(null), w = f({
38
38
  get: () => !!h.dataset && h.dataset.length,
39
39
  set: (t) => t
40
40
  });
@@ -60,7 +60,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
60
60
  }), e.value.responsive) {
61
61
  const t = mt(() => {
62
62
  const { width: a, height: l } = gt({
63
- chart: P.value,
63
+ chart: O.value,
64
64
  title: e.value.style.chart.title.text ? Q.value : null,
65
65
  noTitle: oe.value,
66
66
  legend: e.value.style.chart.legend.show ? te.value : null,
@@ -112,7 +112,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
112
112
  });
113
113
  });
114
114
  });
115
- B.value = new ResizeObserver(t), B.value.observe(P.value.parentNode);
115
+ B.value = new ResizeObserver(t), B.value.observe(O.value.parentNode);
116
116
  }
117
117
  }
118
118
  function ue() {
@@ -134,7 +134,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
134
134
  set: (t) => t
135
135
  }), { userOptionsVisible: q, setUserOptionsVisibility: ie, keepUserOptionState: ce } = bt({ config: e.value });
136
136
  He(() => h.config, (t) => {
137
- e.value = ue(), q.value = !e.value.showOnChartHover, ne(), ee.value += 1, ae.value += 1, le.value += 1, d.value.height = e.value.style.chart.height, d.value.width = e.value.style.chart.width, u.value.plots = e.value.style.chart.plots.radius, u.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, u.value.labels = e.value.style.chart.plots.labels.fontSize, u.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, u.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, u.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, u.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
137
+ e.value = ue(), q.value = !e.value.userOptions.showOnChartHover, ne(), ee.value += 1, ae.value += 1, le.value += 1, d.value.height = e.value.style.chart.height, d.value.width = e.value.style.chart.width, u.value.plots = e.value.style.chart.plots.radius, u.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, u.value.labels = e.value.style.chart.plots.labels.fontSize, u.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, u.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, u.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, u.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
138
138
  }, { deep: !0 });
139
139
  const { isPrinting: ve, isImaging: he, generatePdf: ye, generateImage: de } = ut({
140
140
  elementId: `history_plot_${X.value}`,
@@ -171,7 +171,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
171
171
  if (!w.value) return 1;
172
172
  const t = Math.min(...T.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
173
173
  return t < 0 ? t : 0;
174
- }), Pe = f(() => w.value ? Math.max(...T.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1), Oe = f(() => {
174
+ }), Oe = f(() => w.value ? Math.max(...T.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1), Pe = f(() => {
175
175
  if (!w.value) return 1;
176
176
  const t = Math.min(...T.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
177
177
  return t < 0 ? t : 0;
@@ -181,8 +181,8 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
181
181
  e.value.style.chart.axes.x.scaleMax === null ? ze.value : e.value.style.chart.axes.x.scaleMax,
182
182
  e.value.style.chart.axes.x.ticks
183
183
  ), a = _e(
184
- e.value.style.chart.axes.y.scaleMin === null ? Oe.value : e.value.style.chart.axes.y.scaleMin,
185
- e.value.style.chart.axes.y.scaleMax === null ? Pe.value : e.value.style.chart.axes.y.scaleMax,
184
+ e.value.style.chart.axes.y.scaleMin === null ? Pe.value : e.value.style.chart.axes.y.scaleMin,
185
+ e.value.style.chart.axes.y.scaleMax === null ? Oe.value : e.value.style.chart.axes.y.scaleMax,
186
186
  e.value.style.chart.axes.y.ticks
187
187
  );
188
188
  return {
@@ -401,8 +401,8 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
401
401
  }), (t, a) => (s(), r("div", {
402
402
  id: `history_plot_${X.value}`,
403
403
  ref_key: "historyPlotChart",
404
- ref: P,
405
- class: O({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": U.value }),
404
+ ref: O,
405
+ class: P({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": U.value }),
406
406
  style: M(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
407
407
  onMouseenter: a[3] || (a[3] = () => y(ie)(!0)),
408
408
  onMouseleave: a[4] || (a[4] = () => y(ie)(!1))
@@ -410,7 +410,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
410
410
  x(t.$slots, "userConfig", {}, void 0, !0),
411
411
  e.value.userOptions.buttons.annotator ? (s(), z(xt, {
412
412
  key: 0,
413
- parent: P.value,
413
+ parent: O.value,
414
414
  backgroundColor: e.value.style.chart.backgroundColor,
415
415
  color: e.value.style.chart.color,
416
416
  active: H.value,
@@ -460,7 +460,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
460
460
  hasLabel: !1,
461
461
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
462
462
  isFullscreen: U.value,
463
- chartElement: P.value,
463
+ chartElement: O.value,
464
464
  position: e.value.userOptions.position,
465
465
  isTooltip: C.value.showTooltip,
466
466
  titles: { ...e.value.userOptions.buttonTitles },
@@ -592,7 +592,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
592
592
  s: e.value.style.chart.axes.y.labels.suffix,
593
593
  r: e.value.style.chart.axes.y.labels.rounding
594
594
  })
595
- )), 9, Pt))), 256))
595
+ )), 9, Ot))), 256))
596
596
  ])) : v("", !0),
597
597
  e.value.style.chart.axes.y.name.text ? (s(), r("text", {
598
598
  key: 4,
@@ -601,7 +601,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
601
601
  fill: e.value.style.chart.axes.y.name.color,
602
602
  "font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
603
603
  "text-anchor": "middle"
604
- }, L(e.value.style.chart.axes.y.name.text), 9, Ot)) : v("", !0),
604
+ }, L(e.value.style.chart.axes.y.name.text), 9, Pt)) : v("", !0),
605
605
  e.value.style.chart.grid.horizontalLines.show ? (s(), r("g", It, [
606
606
  (s(!0), r(b, null, k(p.value.tickY, (l) => (s(), r("line", {
607
607
  x1: l.x1,
@@ -673,7 +673,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
673
673
  fill: "none",
674
674
  "stroke-linecap": "round",
675
675
  "stroke-linejoin": "round",
676
- class: O({ animated: e.value.useCssAnimation })
676
+ class: P({ animated: e.value.useCssAnimation })
677
677
  }, null, 10, Ut),
678
678
  A("path", {
679
679
  d: l.path,
@@ -682,7 +682,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
682
682
  fill: "none",
683
683
  "stroke-linecap": "round",
684
684
  "stroke-linejoin": "round",
685
- class: O({ animated: e.value.useCssAnimation })
685
+ class: P({ animated: e.value.useCssAnimation })
686
686
  }, null, 10, Wt)
687
687
  ], 4)) : v("", !0),
688
688
  (s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
@@ -699,7 +699,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
699
699
  r: u.value.plots,
700
700
  stroke: e.value.style.chart.plots.stroke,
701
701
  "stroke-width": e.value.style.chart.plots.strokeWidth,
702
- class: O({ animated: e.value.useCssAnimation }),
702
+ class: P({ animated: e.value.useCssAnimation }),
703
703
  style: M({
704
704
  opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
705
705
  transition: "opacity 0.2s ease-in-out"
@@ -713,7 +713,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
713
713
  fill: e.value.style.chart.plots.labels.color,
714
714
  "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
715
715
  "text-anchor": "middle",
716
- class: O({ animated: e.value.useCssAnimation }),
716
+ class: P({ animated: e.value.useCssAnimation }),
717
717
  style: M({
718
718
  opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
719
719
  transition: "opacity 0.2s ease-in-out"
@@ -728,7 +728,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
728
728
  "font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
729
729
  fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? y(lt)(l.color) : e.value.style.chart.plots.indexLabels.color,
730
730
  "text-anchor": "middle",
731
- class: O({ animated: e.value.useCssAnimation }),
731
+ class: P({ animated: e.value.useCssAnimation }),
732
732
  style: M({
733
733
  opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
734
734
  transition: "opacity 0.2s ease-in-out"
@@ -816,7 +816,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
816
816
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
817
817
  position: e.value.style.chart.tooltip.position,
818
818
  offsetY: e.value.style.chart.tooltip.offsetY,
819
- parent: P.value,
819
+ parent: O.value,
820
820
  content: R.value,
821
821
  isCustom: D.value,
822
822
  isFullscreen: U.value
@@ -871,7 +871,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
871
871
  }, 8, ["config"])) : v("", !0)
872
872
  ], 46, wt));
873
873
  }
874
- }, xl = /* @__PURE__ */ kt(el, [["__scopeId", "data-v-ee6e8aa4"]]);
874
+ }, xl = /* @__PURE__ */ kt(el, [["__scopeId", "data-v-398c5a48"]]);
875
875
  export {
876
876
  xl as default
877
877
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-CHCA909R.cjs"),te=require("./useNestedProp--1nKK7i0.cjs"),le=require("./usePrinter-xicwiw8r.cjs"),ke=require("./PackageVersion-Cun_qdX7.cjs"),be=require("./Legend-CcoLuZn0.cjs"),Ce=require("./Title-bDp_4dQV.cjs"),we=require("./Tooltip-fEuHWstj.cjs"),Be=require("./DataTable-ZowHAjXC.cjs"),Se=require("./vue-ui-accordion-B4PyxVUm.cjs"),_e=require("./PenAndPaper-u46MyY7W.cjs"),Ne=require("./vue-ui-skeleton-DsMIGHB3.cjs"),ae=require("./useResponsive-BJ7DTGpm.cjs"),ze=require("./useUserOptionState-BgepsfED.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$e=["id"],Ee=["xmlns","viewBox"],Me=["x","y","width","height"],Te={key:1},Ae=["id"],Pe=["stop-color"],Ve=["stop-color"],Fe=["stop-color"],Oe={key:2},De=["x1","x2","y1","y2","stroke","stroke-width"],Ie={key:3},Xe=["x","y","fill","font-size"],Ye=["transform","font-size","fill","font-weight"],qe={key:5},je=["x1","x2","y1","y2","stroke","stroke-width"],Ue={key:6},Re=["transform","fill","font-size","text-anchor"],He=["x","y","font-size","fill","font-weight"],We=["x1","x2","y1","y2","stroke","stroke-width"],Ge=["x1","x2","y1","y2","stroke","stroke-width"],Ze=["d","stroke","stroke-width"],Je=["d","stroke","stroke-width"],Ke=["cx","cy","fill","r"],Qe=["cx","cy","fill","r","stroke","stroke-width"],et={key:1},tt=["x","y","font-size","fill","font-weight"],lt={key:2},at=["x","y","font-size","font-weight","fill"],ot=["cx","cy","r","onMouseenter","onClick"],st={key:5,class:"vue-data-ui-watermark"},rt=["onClick"],nt=["innerHTML"],it={__name:"vue-ui-history-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(oe,{expose:se,emit:M}){const c=oe,{vue_ui_history_plot:re}=r.useConfig(),k=e.ref(null),T=e.ref(null),A=e.ref(0),P=e.ref(null),V=e.ref(0),F=e.ref(0),O=e.ref(0),w=e.ref(null),D=e.ref(null),b=e.ref(r.createUid()),N=e.ref(!1),z=e.ref(""),h=e.ref([]),B=e.ref(!1),f=e.ref(null),C=e.ref(!1),I=e.ref(null),y=e.computed({get:()=>!!c.dataset&&c.dataset.length,set:l=>l});e.onMounted(X),e.onBeforeUnmount(()=>{w.value&&w.value.disconnect()});function X(){if(r.objectIsEmpty(c.dataset)?r.error({componentName:"VueUiHistoryPlot",type:"dataset"}):c.dataset.forEach((l,o)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{y.value=!1,r.error({componentName:"VueUiHistoryPlot",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=ae.throttle(()=>{const{width:o,height:a}=ae.useResponsive({chart:k.value,title:t.value.style.chart.title.text?T.value:null,noTitle:D.value,legend:t.value.style.chart.legend.show?P.value:null,source:I.value});requestAnimationFrame(()=>{v.value.width=o,v.value.height=a,i.value.plots=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.radius,threshold:3,fallback:3}),i.value.indexLabels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.indexLabels.fontSize,threshold:6,fallback:6}),i.value.labels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.labels.fontSize,threshold:6,fallback:6}),i.value.xAxisLabels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.x.labels.fontSize,threshold:6,fallback:6}),i.value.xAxisName=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.x.name.fontSize,threshold:6,fallback:6}),i.value.yAxisLabels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.y.labels.fontSize,threshold:6,fallback:6}),i.value.yAxisName=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.y.name.fontSize,threshold:6,fallback:6})})});w.value=new ResizeObserver(l),w.value.observe(k.value.parentNode)}}function Y(){const l=te.useNestedProp({userConfig:c.config,defaultConfig:re});let o={};return l.theme?o={...te.useNestedProp({userConfig:r.themes.vue_ui_history_plot[l.theme]||c.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:o=l,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.x.scaleMin")?o.style.chart.axes.x.scaleMin=c.config.style.chart.axes.x.scaleMin:o.style.chart.axes.x.scaleMin=null,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.x.scaleMax")?o.style.chart.axes.x.scaleMax=c.config.style.chart.axes.x.scaleMax:o.style.chart.axes.x.scaleMax=null,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.y.scaleMin")?o.style.chart.axes.y.scaleMin=c.config.style.chart.axes.y.scaleMin:o.style.chart.axes.y.scaleMin=null,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.y.scaleMax")?o.style.chart.axes.y.scaleMax=c.config.style.chart.axes.y.scaleMax:o.style.chart.axes.y.scaleMax=null,o}const t=e.computed({get:()=>Y(),set:l=>l}),{userOptionsVisible:L,setUserOptionsVisibility:q,keepUserOptionState:j}=ze.useUserOptionState({config:t.value});e.watch(()=>c.config,l=>{t.value=Y(),L.value=!t.value.userOptions.showOnChartHover,X(),A.value+=1,F.value+=1,V.value+=1,v.value.height=t.value.style.chart.height,v.value.width=t.value.style.chart.width,i.value.plots=t.value.style.chart.plots.radius,i.value.indexLabels=t.value.style.chart.plots.indexLabels.fontSize,i.value.labels=t.value.style.chart.plots.labels.fontSize,i.value.xAxisLabels=t.value.style.chart.axes.x.labels.fontSize,i.value.xAxisName=t.value.style.chart.axes.x.name.fontSize,i.value.yAxisLabels=t.value.style.chart.axes.y.labels.fontSize,i.value.yAxisName=t.value.style.chart.axes.y.name.fontSize,p.value.showTable=t.value.table.show,p.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:U,isImaging:R,generatePdf:H,generateImage:W}=le.usePrinter({elementId:`history_plot_${b.value}`,fileName:t.value.style.chart.title.text||"vue-ui-history-plot"}),ne=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ie=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),p=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),v=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),n=e.computed(()=>{const l=t.value.style.chart.padding.left,o=t.value.style.chart.padding.top;return{left:l,top:o,right:v.value.width-t.value.style.chart.padding.right,bottom:v.value.height-t.value.style.chart.padding.bottom,width:v.value.width-l-t.value.style.chart.padding.right,height:v.value.height-o-t.value.style.chart.padding.bottom}}),i=e.ref({plots:t.value.style.chart.plots.radius,indexLabels:t.value.style.chart.plots.indexLabels.fontSize,labels:t.value.style.chart.plots.labels.fontSize,xAxisLabels:t.value.style.chart.axes.x.labels.fontSize,xAxisName:t.value.style.chart.axes.x.name.fontSize,yAxisLabels:t.value.style.chart.axes.y.labels.fontSize,yAxisName:t.value.style.chart.axes.y.name.fontSize}),x=e.computed(()=>y.value?c.dataset.map((l,o)=>({...l,color:l.color?r.convertColorToHex(l.color):ie.value[o]||r.palette[o]||r.palette[o%r.palette.length],seriesIndex:o})):[]),ue=e.computed(()=>y.value?Math.max(...x.value.filter(l=>!h.value.includes(l.seriesIndex)).flatMap(l=>l.values.map(o=>o.x))):1),ce=e.computed(()=>{if(!y.value)return 1;const l=Math.min(...x.value.filter(o=>!h.value.includes(o.seriesIndex)).flatMap(o=>o.values.map(a=>a.x)));return l<0?l:0}),ve=e.computed(()=>y.value?Math.max(...x.value.filter(l=>!h.value.includes(l.seriesIndex)).flatMap(l=>l.values.map(o=>o.y))):1),de=e.computed(()=>{if(!y.value)return 1;const l=Math.min(...x.value.filter(o=>!h.value.includes(o.seriesIndex)).flatMap(o=>o.values.map(a=>a.y)));return l<0?l:0}),d=e.computed(()=>{const l=r.calculateNiceScale(t.value.style.chart.axes.x.scaleMin===null?ce.value:t.value.style.chart.axes.x.scaleMin,t.value.style.chart.axes.x.scaleMax===null?ue.value:t.value.style.chart.axes.x.scaleMax,t.value.style.chart.axes.x.ticks),o=r.calculateNiceScale(t.value.style.chart.axes.y.scaleMin===null?de.value:t.value.style.chart.axes.y.scaleMin,t.value.style.chart.axes.y.scaleMax===null?ve.value:t.value.style.chart.axes.y.scaleMax,t.value.style.chart.axes.y.ticks);return{x:l,y:o,tickX:l.ticks.map(a=>({x:n.value.left+(a-l.min)/(l.max-l.min)*n.value.width,y1:n.value.top,y2:n.value.bottom,value:a})),tickY:o.ticks.map(a=>({y:n.value.bottom-(a-o.min)/(o.max-o.min)*n.value.height,x1:n.value.left,x2:n.value.right,value:a}))}});function he(l){const o=d.value.x.min<0?Math.abs(d.value.x.min):d.value.x.min>0?-d.value.x.min:0;return n.value.left+((l||0)+o)/(d.value.x.max+o)*n.value.width}function ye(l){const o=d.value.y.min<0?Math.abs(d.value.y.min):d.value.y.min>0?-d.value.y.min:0;return n.value.bottom-((l||0)+o)/(d.value.y.max+o)*n.value.height}const g=e.computed(()=>x.value.filter(l=>!h.value.includes(l.seriesIndex)).map((l,o)=>{const a=l.values.map((s,m)=>({valueX:s.x,valueY:s.y,label:s.label,x:he(s.x),y:ye(s.y),color:l.color,seriesName:l.name,id:r.createUid()})),u=a.map(s=>`${s.x},${s.y} `).join("").trim();return{...l,plots:a,path:`M${u}`}}));function G(l){h.value.includes(l)?h.value=h.value.filter(o=>o!==l):h.value.push(l)}const Z=e.computed(()=>x.value.map(l=>({...l,opacity:h.value.includes(l.seriesIndex)?.5:1,segregate:()=>G(l.seriesIndex),isSegregated:h.value.includes(l.seriesIndex),shape:"circle"}))),pe=e.computed(()=>({cy:"history-plot-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function me(l){M("selectDatapoint",l)}function J(l){M("selectLegend",{...l,isSegregated:!l.isSegregated,opacity:l.isSegregated?1:.5})}function fe(l){B.value=l,O.value+=1}const $=e.ref(null);function xe({datapoint:l,plotIndex:o,seriesIndex:a}){$.value={datapoint:l,seriesIndex:a,plotIndex:o,config:t.value,series:x.value},f.value=l;const u=t.value.style.chart.tooltip.customFormat;if(C.value=!1,r.isFunction(u))try{const s=u({seriesIndex:a,datapoint:l,plotIndex:o,series:x.value,config:t.value});typeof s=="string"&&(z.value=s,C.value=!0)}catch{console.warn("Custom format cannot be applied."),C.value=!1}if(!C.value){let s="";s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg><span>${l.seriesName}</span></div>`,s+=`<div>${l.label}</div>`,s+=`<div>${t.value.style.chart.axes.x.name.text||"x"}: ${r.applyDataLabel(t.value.style.chart.axes.x.labels.formatter,l.valueX,r.dataLabel({p:t.value.style.chart.axes.x.labels.prefix,v:l.valueX,s:t.value.style.chart.axes.x.labels.suffix,r:t.value.style.chart.axes.x.labels.rounding}))}</div>`,s+=`<div>${t.value.style.chart.axes.y.name.text||"y"}: ${r.applyDataLabel(t.value.style.chart.axes.y.labels.formatter,l.valueY,r.dataLabel({p:t.value.style.chart.axes.y.labels.prefix,v:l.valueY,s:t.value.style.chart.axes.y.labels.suffix,r:t.value.style.chart.axes.y.labels.rounding}))}</div>`,z.value=`<div>${s}</div>`}N.value=!0}e.computed(()=>({head:g.value.map(o=>({name:o.name,color:o.color}))}));const S=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.datapoint,t.value.table.columnNames.x,t.value.table.columnNames.y],o=g.value.flatMap(u=>u.plots.map(s=>[{color:s.color,name:s.seriesName},s.label,r.applyDataLabel(t.value.style.chart.axes.x.labels.formatter,s.valueX,r.dataLabel({p:t.value.style.chart.axes.x.labels.prefix,v:s.valueX,s:t.value.style.chart.axes.x.labels.suffix,r:t.value.style.chart.axes.x.labels.rounding})),r.applyDataLabel(t.value.style.chart.axes.y.labels.formatter,s.valueY,r.dataLabel({p:t.value.style.chart.axes.y.labels.prefix,v:s.valueY,s:t.value.style.chart.axes.y.labels.suffix,r:t.value.style.chart.axes.y.labels.rounding}))])),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:o,config:a,colNames:l}});function K(){e.nextTick(()=>{const l=[[t.value.table.columnNames.series],[t.value.table.columnNames.datapoint],[t.value.table.columnNames.x],[t.value.table.columnNames.y]],o=g.value.flatMap(s=>s.plots.map(m=>[[m.seriesName],[m.label],[m.valueX],[m.valueY]])),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],l].concat(o),u=r.createCsvContent(a);r.downloadCsv({csvContent:u,title:t.value.style.chart.title.text||"vue-ui-history-plot"})})}const _=e.ref(!1);function E(){_.value=!_.value}function Q(){p.value.showTable=!p.value.showTable}function ee(){p.value.showTooltip=!p.value.showTooltip}function ge(){return g.value}return se({getData:ge,generatePdf:H,generateCsv:K,generateImage:W,toggleTable:Q,toggleTooltip:ee,toggleAnnotator:E}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:`history_plot_${b.value}`,ref_key:"historyPlotChart",ref:k,class:e.normalizeClass({"vue-ui-history-plot":!0,"vue-data-ui-wrapper-fullscreen":B.value}),style:e.normalizeStyle(`background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}; position: relative; ${t.value.responsive?"height: 100%":""}`),onMouseenter:o[3]||(o[3]=()=>e.unref(q)(!0)),onMouseleave:o[4]||(o[4]=()=>e.unref(q)(!1))},[e.renderSlot(l.$slots,"userConfig",{},void 0,!0),t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(_e.PenAndPaper,{key:0,parent:k.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:_.value,onClose:E},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:D,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:T,class:"vue-ui-xy-title",style:e.normalizeStyle(`font-family:${t.value.style.fontFamily}`)},[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${A.value}`,config:{title:{cy:"history-plot-div-title",...t.value.style.chart.title},subtitle:{cy:"history-plot-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value&&(e.unref(j)||e.unref(L))?(e.openBlock(),e.createBlock(le.UserOptions,{ref:"details",key:`user_option_${O.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(U),isImaging:e.unref(R),uid:b.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:!1,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:B.value,chartElement:k.value,position:t.value.userOptions.position,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:_.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(H),onGenerateCsv:K,onGenerateImage:e.unref(W),onToggleTable:Q,onToggleTooltip:ee,onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(j)?e.unref(L)?"visible":"hidden":"visible"})},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:a,isFullscreen:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:u})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:u})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:u})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),viewBox:`0 0 ${v.value.width<0?.1:v.value.width} ${v.value.height<0?.1:v.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ke._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:n.value.left,y:n.value.top,width:n.value.width<=0?10:n.value.width,height:n.value.height<=0?10:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Me)):e.createCommentVNode("",!0),t.value.style.chart.plots.gradient.show?(e.openBlock(),e.createElementBlock("defs",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,u)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_${u}_${b.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(r.lightenHexColor)(a.color,t.value.style.chart.plots.gradient.intensity/100)},null,8,Pe),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(r.darkenHexColor)(a.color,.1)},null,8,Ve),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Fe)],8,Ae))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.verticalLines.show?(e.openBlock(),e.createElementBlock("g",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickX,a=>(e.openBlock(),e.createElementBlock("line",{x1:a.x,x2:a.x,y1:a.y1,y2:a.y2,stroke:t.value.style.chart.grid.verticalLines.stroke,"stroke-width":t.value.style.chart.grid.verticalLines.strokeWidth,"stroke-linecap":"round"},null,8,De))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.y.labels.show?(e.openBlock(),e.createElementBlock("g",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickY,a=>(e.openBlock(),e.createElementBlock("text",{x:n.value.left+t.value.style.chart.axes.y.labels.offsetX-4,y:a.y+i.value.yAxisLabels/3,fill:t.value.style.chart.axes.y.labels.color,"font-size":i.value.yAxisLabels,"text-anchor":"end"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.axes.y.labels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.axes.y.labels.prefix,v:a.value,s:t.value.style.chart.axes.y.labels.suffix,r:t.value.style.chart.axes.y.labels.rounding}))),9,Xe))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.y.name.text?(e.openBlock(),e.createElementBlock("text",{key:4,transform:`translate(${t.value.style.chart.axes.y.name.offsetX+i.value.yAxisName}, ${v.value.height/2+t.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,"font-size":i.value.yAxisName,fill:t.value.style.chart.axes.y.name.color,"font-weight":t.value.style.chart.axes.y.name.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.axes.y.name.text),9,Ye)):e.createCommentVNode("",!0),t.value.style.chart.grid.horizontalLines.show?(e.openBlock(),e.createElementBlock("g",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickY,a=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y,y2:a.y,stroke:t.value.style.chart.grid.horizontalLines.stroke,"stroke-width":t.value.style.chart.grid.horizontalLines.strokeWidth,"stroke-linecap":"round"},null,8,je))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.x.labels.show?(e.openBlock(),e.createElementBlock("g",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickX,a=>(e.openBlock(),e.createElementBlock("text",{transform:`translate(${a.x}, ${n.value.bottom+t.value.style.chart.axes.x.labels.offsetY+i.value.xAxisLabels}), rotate(${t.value.style.chart.axes.x.labels.rotation})`,fill:t.value.style.chart.axes.x.labels.color,"font-size":i.value.xAxisLabels,"text-anchor":t.value.style.chart.axes.x.labels.rotation>0?"start":t.value.style.chart.axes.x.labels.rotation<0?"end":"middle"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.axes.x.labels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.axes.x.labels.prefix,v:a.value,s:t.value.style.chart.axes.x.labels.suffix,r:t.value.style.chart.axes.x.labels.rounding}))),9,Re))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.x.name.text?(e.openBlock(),e.createElementBlock("text",{key:7,x:v.value.width/2+t.value.style.chart.axes.x.name.offsetX,y:v.value.height+t.value.style.chart.axes.x.name.offsetY,"font-size":i.value.xAxisName,fill:t.value.style.chart.axes.x.name.color,"font-weight":t.value.style.chart.axes.x.name.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.axes.x.name.text),9,He)):e.createCommentVNode("",!0),t.value.style.chart.grid.xAxis.show?(e.openBlock(),e.createElementBlock("line",{key:8,x1:n.value.left,x2:n.value.left+n.value.width,y1:n.value.bottom,y2:n.value.bottom,stroke:t.value.style.chart.grid.xAxis.stroke,"stroke-width":t.value.style.chart.grid.xAxis.strokeWidth,"stroke-linecap":"round"},null,8,We)):e.createCommentVNode("",!0),t.value.style.chart.grid.yAxis.show?(e.openBlock(),e.createElementBlock("line",{key:9,x1:n.value.left,x2:n.value.left,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.chart.grid.yAxis.stroke,"stroke-width":t.value.style.chart.grid.yAxis.strokeWidth,"stroke-linecap":"round"},null,8,Ge)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.paths.show?(e.openBlock(),e.createElementBlock("g",{key:0,style:e.normalizeStyle({opacity:f.value===null?1:.3})},[e.createElementVNode("path",{d:a.path,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.paths.strokeWidth+4,fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Ze),e.createElementVNode("path",{d:a.path,stroke:t.value.style.chart.paths.useSerieColor?a.color:t.value.style.chart.paths.stroke,"stroke-width":t.value.style.chart.paths.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Je)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,s=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:t.value.style.chart.backgroundColor,r:i.value.plots,stroke:"none"},null,8,Ke))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,s=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:t.value.style.chart.plots.gradient.show?`url(#gradient_${u}_${b.value})`:s.color,r:i.value.plots,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth,class:e.normalizeClass({animated:t.value.useCssAnimation}),style:e.normalizeStyle({opacity:f.value===null||f.value.id===s.id?1:.3,transition:"opacity 0.2s ease-in-out"})},null,14,Qe))),256)),t.value.style.chart.plots.labels.show?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,s=>(e.openBlock(),e.createElementBlock("text",{x:s.x+t.value.style.chart.plots.labels.offsetX,y:s.y+t.value.style.chart.plots.labels.offsetY+i.value.plots+i.value.labels,"font-size":i.value.labels,fill:t.value.style.chart.plots.labels.color,"font-weight":t.value.style.chart.plots.labels.bold?"bold":"normal","text-anchor":"middle",class:e.normalizeClass({animated:t.value.useCssAnimation}),style:e.normalizeStyle({opacity:f.value===null||f.value.id===s.id?1:.3,transition:"opacity 0.2s ease-in-out"})},e.toDisplayString(s.label),15,tt))),256))])):e.createCommentVNode("",!0),t.value.style.chart.plots.indexLabels.show?(e.openBlock(),e.createElementBlock("g",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,m)=>(e.openBlock(),e.createElementBlock("text",{x:s.x+t.value.style.chart.plots.indexLabels.offsetX,y:s.y+t.value.style.chart.plots.indexLabels.offsetY+i.value.indexLabels/3,"font-size":i.value.indexLabels,"font-weight":t.value.style.chart.plots.indexLabels.bold?"bold":"normal",fill:t.value.style.chart.plots.indexLabels.adaptColorToBackground?e.unref(r.adaptColorToBackground)(a.color):t.value.style.chart.plots.indexLabels.color,"text-anchor":"middle",class:e.normalizeClass({animated:t.value.useCssAnimation}),style:e.normalizeStyle({opacity:f.value===null||f.value.id===s.id?1:.3,transition:"opacity 0.2s ease-in-out"})},e.toDisplayString(t.value.style.chart.plots.indexLabels.startAtZero?m:m+1),15,at))),256))])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,a=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(u,s)=>(e.openBlock(),e.createElementBlock("circle",{cx:u.x,cy:u.y,fill:"transparent",r:i.value.plots,stroke:"none",onMouseenter:m=>xe({datapoint:u,plotIndex:s,seriesIndex:a.seriesIndex}),onMouseleave:o[0]||(o[0]=m=>{N.value=!1,f.value=null}),onClick:()=>me(u)},null,40,ot))),256))]))),256)),e.renderSlot(l.$slots,"svg",{svg:v.value},void 0,!0)],12,Ee)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",st,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(U)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ne.default,{key:6,config:{type:"historyPlot",style:{backgroundColor:t.value.style.chart.backgroundColor,historyPlot:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:P},[t.value.style.chart.legend.show&&y.value?(e.openBlock(),e.createBlock(be.Legend,{key:`legend_${V.value}`,legendSet:Z.value,config:pe.value,onClickMarker:o[1]||(o[1]=({legend:a})=>{G(a.seriesIndex),J(a)})},{item:e.withCtx(({legend:a,index:u})=>[e.createElementVNode("div",{onClick:s=>{a.segregate(),J(a)},style:e.normalizeStyle(`opacity:${h.value.includes(a.seriesIndex)?.5:1}`)},e.toDisplayString(a.name),13,rt)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:Z.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:I,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(we._sfc_main,{show:p.value.showTooltip&&N.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:k.value,content:z.value,isCustom:C.value,isFullscreen:B.value},{"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","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),y.value?(e.openBlock(),e.createBlock(Se.default,{key:8,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Be.DataTable,{key:`table_${F.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[2]||(o[2]=a=>p.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,nt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,$e))}},ut=Le._export_sfc(it,[["__scopeId","data-v-398c5a48"]]);exports.default=ut;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./useNestedProp-eByLWGIp.cjs"),u=require("./index-oJt6G-1X.cjs"),y=require("./vue-ui-digits-BUj0U6ah.cjs"),C={__name:"vue-ui-kpi",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(n){const o=n,{vue_ui_kpi:m}=u.useConfig(),a=e.computed({get:()=>i(),set:t=>t}),f=e.useSlots();e.onMounted(()=>{f["chart-background"]&&console.warn("VueUiKpi does not support the #chart-background slot.")});function i(){return p.useNestedProp({userConfig:o.config,defaultConfig:m})}e.watch(()=>o.config,t=>{a.value=i(),r()},{deep:!0});const g=e.ref((typeof o.dataset=="number",o.dataset)),l=e.ref(a.value.useAnimation?a.value.animationValueStart:g.value),s=t=>{const v=a.value.animationFrames,c=Math.abs(t-l.value)/v;function d(){l.value<t?l.value=Math.min(l.value+c,t):l.value>t&&(l.value=Math.max(l.value-c,t)),l.value!==t&&requestAnimationFrame(d)}d()};e.onMounted(()=>{r()});function r(){a.value.useAnimation?(l.value=a.value.animationValueStart,s(o.dataset)):l.value=o.dataset}return e.watch(()=>o.dataset,t=>{a.value.useAnimation?s(t):l.value=t}),(t,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-kpi ${a.value.layoutClass}`),style:e.normalizeStyle(`background:${a.value.backgroundColor}; ${a.value.layoutCss}`)},[e.createElementVNode("div",{class:e.normalizeClass(`vue-ui-kpi-title ${a.value.titleClass}`),style:e.normalizeStyle(`font-family: ${a.value.fontFamily}; font-size:${a.value.titleFontSize}px; color:${a.value.titleColor}; font-weight:${a.value.titleBold?"bold":"normal"}; ${a.value.titleCss}`)},[e.renderSlot(t.$slots,"title",{comment:n.dataset}),e.createTextVNode(" "+e.toDisplayString(a.value.title),1)],6),e.renderSlot(t.$slots,"comment-before",{comment:n.dataset}),e.createElementVNode("div",{class:e.normalizeClass(`vue-ui-kpi-value ${a.value.valueClass}`),style:e.normalizeStyle(`font-family: ${a.value.fontFamily}; font-size:${a.value.valueFontSize}px; color:${a.value.valueColor}; font-weight:${a.value.valueBold?"bold":"normal"}; ${a.value.valueCss}`)},[e.renderSlot(t.$slots,"value",{comment:n.dataset}),a.value.analogDigits.show?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({height:a.value.analogDigits.height+"px"})},[e.createVNode(y.default,{dataset:Number(l.value.toFixed(a.value.valueRounding)),config:{backgroundColor:a.value.backgroundColor,digits:{color:a.value.analogDigits.color,skeletonColor:a.value.analogDigits.skeletonColor}}},null,8,["dataset","config"])],4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(u.applyDataLabel)(a.value.formatter,l.value,e.unref(u.dataLabel)({p:a.value.prefix,v:l.value,s:a.value.suffix,r:a.value.valueRounding}))),1)],64))],6),e.renderSlot(t.$slots,"comment-after",{comment:n.dataset})],6))}};exports.default=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./useNestedProp--1nKK7i0.cjs"),u=require("./index-CHCA909R.cjs"),y=require("./vue-ui-digits-CSzsY3pv.cjs"),C={__name:"vue-ui-kpi",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(n){const o=n,{vue_ui_kpi:m}=u.useConfig(),a=e.computed({get:()=>i(),set:t=>t}),f=e.useSlots();e.onMounted(()=>{f["chart-background"]&&console.warn("VueUiKpi does not support the #chart-background slot.")});function i(){return p.useNestedProp({userConfig:o.config,defaultConfig:m})}e.watch(()=>o.config,t=>{a.value=i(),r()},{deep:!0});const g=e.ref((typeof o.dataset=="number",o.dataset)),l=e.ref(a.value.useAnimation?a.value.animationValueStart:g.value),s=t=>{const v=a.value.animationFrames,c=Math.abs(t-l.value)/v;function d(){l.value<t?l.value=Math.min(l.value+c,t):l.value>t&&(l.value=Math.max(l.value-c,t)),l.value!==t&&requestAnimationFrame(d)}d()};e.onMounted(()=>{r()});function r(){a.value.useAnimation?(l.value=a.value.animationValueStart,s(o.dataset)):l.value=o.dataset}return e.watch(()=>o.dataset,t=>{a.value.useAnimation?s(t):l.value=t}),(t,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-kpi ${a.value.layoutClass}`),style:e.normalizeStyle(`background:${a.value.backgroundColor}; ${a.value.layoutCss}`)},[e.createElementVNode("div",{class:e.normalizeClass(`vue-ui-kpi-title ${a.value.titleClass}`),style:e.normalizeStyle(`font-family: ${a.value.fontFamily}; font-size:${a.value.titleFontSize}px; color:${a.value.titleColor}; font-weight:${a.value.titleBold?"bold":"normal"}; ${a.value.titleCss}`)},[e.renderSlot(t.$slots,"title",{comment:n.dataset}),e.createTextVNode(" "+e.toDisplayString(a.value.title),1)],6),e.renderSlot(t.$slots,"comment-before",{comment:n.dataset}),e.createElementVNode("div",{class:e.normalizeClass(`vue-ui-kpi-value ${a.value.valueClass}`),style:e.normalizeStyle(`font-family: ${a.value.fontFamily}; font-size:${a.value.valueFontSize}px; color:${a.value.valueColor}; font-weight:${a.value.valueBold?"bold":"normal"}; ${a.value.valueCss}`)},[e.renderSlot(t.$slots,"value",{comment:n.dataset}),a.value.analogDigits.show?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({height:a.value.analogDigits.height+"px"})},[e.createVNode(y.default,{dataset:Number(l.value.toFixed(a.value.valueRounding)),config:{backgroundColor:a.value.backgroundColor,digits:{color:a.value.analogDigits.color,skeletonColor:a.value.analogDigits.skeletonColor}}},null,8,["dataset","config"])],4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(u.applyDataLabel)(a.value.formatter,l.value,e.unref(u.dataLabel)({p:a.value.prefix,v:l.value,s:a.value.suffix,r:a.value.valueRounding}))),1)],64))],6),e.renderSlot(t.$slots,"comment-after",{comment:n.dataset})],6))}};exports.default=C;
@@ -1,7 +1,7 @@
1
1
  import { computed as D, useSlots as x, onMounted as g, watch as C, ref as $, openBlock as i, createElementBlock as s, normalizeClass as r, normalizeStyle as u, createElementVNode as k, renderSlot as n, createTextVNode as y, toDisplayString as h, createVNode as z, Fragment as A, unref as b } from "vue";
2
- import { u as w } from "./useNestedProp-Cf4jge53.js";
3
- import { u as B, i as L, f as M } from "./index-DD55onbf.js";
4
- import E from "./vue-ui-digits-DBsciKvZ.js";
2
+ import { u as w } from "./useNestedProp-DMtJzMiX.js";
3
+ import { u as B, i as L, f as M } from "./index-DAAFXQJj.js";
4
+ import E from "./vue-ui-digits-CRfqQd-4.js";
5
5
  const G = {
6
6
  __name: "vue-ui-kpi",
7
7
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./useNestedProp-eByLWGIp.cjs"),n=require("./index-oJt6G-1X.cjs"),m=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=["xmlns","viewBox"],C={key:0},_=["stroke"],h=["stroke"],M=["stroke"],y={key:1},B=["stroke"],f={key:2},L=["stroke"],b={__name:"vue-ui-mini-loader",props:{config:{type:Object,default(){return{}}}},setup(u){const a=u;e.useCssVars(k=>({"221651ee":c.value,d11bae38:d.value,d85c00de:p.value}));const{vue_ui_mini_loader:i}=n.useConfig(),t=e.computed(()=>v.useNestedProp({userConfig:a.config,defaultConfig:i})),s=e.ref({onion:"-10 -10 84 84",line:"-10 -10 112 84",bar:"-10 -10 106 84"}),r=e.computed(()=>({gutter:`stroke:${t.value.line.gutterColor};opacity:${t.value.line.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.line.gutterBlur}px);`})),l=e.computed(()=>({gutter:`stroke:${t.value.bar.gutterColor};opacity:${t.value.bar.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.bar.gutterBlur}px);`})),o=e.computed(()=>({gutter:`stroke:${t.value.onion.gutterColor};opacity:${t.value.onion.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.onion.gutterBlur}px);`})),c=e.computed(()=>`blur(${t.value.onion.trackBlur}px) hue-rotate(${t.value.onion.trackHueRotate}deg)`),d=e.computed(()=>`blur(${t.value.line.trackBlur}px) hue-rotate(${t.value.line.trackHueRotate}deg)`),p=e.computed(()=>`blur(${t.value.bar.trackBlur}px) hue-rotate(${t.value.bar.trackHueRotate}deg)`);return(k,x)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(n.XMLNS),viewBox:s.value[t.value.type],style:{background:"transparent"},width:"100%"},[t.value.type==="onion"?(e.openBlock(),e.createElementBlock("g",C,[e.createElementVNode("path",{d:"M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,_),e.createElementVNode("path",{d:"M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,h),e.createElementVNode("path",{d:"M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,M)])):e.createCommentVNode("",!0),t.value.type==="line"?(e.openBlock(),e.createElementBlock("g",y,[e.createElementVNode("path",{d:"M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(r.value.gutter+r.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5",stroke:t.value.line.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"line-animated"},null,8,B)])):e.createCommentVNode("",!0),t.value.type==="bar"?(e.openBlock(),e.createElementBlock("g",f,[e.createElementVNode("path",{d:"M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(l.value.gutter+l.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5",stroke:t.value.bar.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"bar-animated"},null,8,L)])):e.createCommentVNode("",!0)],8,g))}},N=m._export_sfc(b,[["__scopeId","data-v-20f54e0e"]]);exports.default=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./useNestedProp--1nKK7i0.cjs"),n=require("./index-CHCA909R.cjs"),m=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=["xmlns","viewBox"],C={key:0},_=["stroke"],h=["stroke"],M=["stroke"],y={key:1},B=["stroke"],f={key:2},L=["stroke"],b={__name:"vue-ui-mini-loader",props:{config:{type:Object,default(){return{}}}},setup(u){const a=u;e.useCssVars(k=>({"221651ee":c.value,d11bae38:d.value,d85c00de:p.value}));const{vue_ui_mini_loader:i}=n.useConfig(),t=e.computed(()=>v.useNestedProp({userConfig:a.config,defaultConfig:i})),s=e.ref({onion:"-10 -10 84 84",line:"-10 -10 112 84",bar:"-10 -10 106 84"}),r=e.computed(()=>({gutter:`stroke:${t.value.line.gutterColor};opacity:${t.value.line.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.line.gutterBlur}px);`})),l=e.computed(()=>({gutter:`stroke:${t.value.bar.gutterColor};opacity:${t.value.bar.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.bar.gutterBlur}px);`})),o=e.computed(()=>({gutter:`stroke:${t.value.onion.gutterColor};opacity:${t.value.onion.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.onion.gutterBlur}px);`})),c=e.computed(()=>`blur(${t.value.onion.trackBlur}px) hue-rotate(${t.value.onion.trackHueRotate}deg)`),d=e.computed(()=>`blur(${t.value.line.trackBlur}px) hue-rotate(${t.value.line.trackHueRotate}deg)`),p=e.computed(()=>`blur(${t.value.bar.trackBlur}px) hue-rotate(${t.value.bar.trackHueRotate}deg)`);return(k,x)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(n.XMLNS),viewBox:s.value[t.value.type],style:{background:"transparent"},width:"100%"},[t.value.type==="onion"?(e.openBlock(),e.createElementBlock("g",C,[e.createElementVNode("path",{d:"M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,_),e.createElementVNode("path",{d:"M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,h),e.createElementVNode("path",{d:"M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,M)])):e.createCommentVNode("",!0),t.value.type==="line"?(e.openBlock(),e.createElementBlock("g",y,[e.createElementVNode("path",{d:"M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(r.value.gutter+r.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5",stroke:t.value.line.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"line-animated"},null,8,B)])):e.createCommentVNode("",!0),t.value.type==="bar"?(e.openBlock(),e.createElementBlock("g",f,[e.createElementVNode("path",{d:"M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(l.value.gutter+l.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5",stroke:t.value.bar.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"bar-animated"},null,8,L)])):e.createCommentVNode("",!0)],8,g))}},N=m._export_sfc(b,[["__scopeId","data-v-20f54e0e"]]);exports.default=N;
@@ -1,6 +1,6 @@
1
1
  import { useCssVars as h, computed as r, ref as f, openBlock as n, createElementBlock as u, unref as M, createElementVNode as t, normalizeStyle as l, createCommentVNode as a } from "vue";
2
- import { u as m } from "./useNestedProp-Cf4jge53.js";
3
- import { u as y, X as L } from "./index-DD55onbf.js";
2
+ import { u as m } from "./useNestedProp-DMtJzMiX.js";
3
+ import { u as y, X as L } from "./index-DAAFXQJj.js";
4
4
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const b = ["xmlns", "viewBox"], x = { key: 0 }, $ = ["stroke"], w = ["stroke"], A = ["stroke"], N = { key: 1 }, O = ["stroke"], S = { key: 2 }, F = ["stroke"], I = {
6
6
  __name: "vue-ui-mini-loader",