vue-data-ui 2.4.36 → 2.4.38

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 (156) hide show
  1. package/dist/{Arrow-DvVfffCn.cjs → Arrow-CAyK8SiJ.cjs} +1 -1
  2. package/dist/{Arrow-Bpy87-5A.js → Arrow-DAz7aOQX.js} +1 -1
  3. package/dist/{BaseIcon-CK7TNglK.js → BaseIcon-C5xMMLKe.js} +5 -4
  4. package/dist/{BaseIcon-Ba0OA9UK.cjs → BaseIcon-LzZNzC-k.cjs} +1 -1
  5. package/dist/{DataTable-Dgokkc7A.cjs → DataTable-CYjIaj19.cjs} +1 -1
  6. package/dist/{DataTable-Chl6EuoM.js → DataTable-DJteUrAL.js} +2 -2
  7. package/dist/{Legend-D1D1r0MW.cjs → Legend-C4RfI148.cjs} +1 -1
  8. package/dist/{Legend-BJNfeJUD.js → Legend-D6Q_hS-N.js} +1 -1
  9. package/dist/{PackageVersion-D7UEx2nV.cjs → PackageVersion-BVorXRgA.cjs} +1 -1
  10. package/dist/{PackageVersion-tBXJRRcv.js → PackageVersion-QvLMBL8G.js} +1 -1
  11. package/dist/{PenAndPaper-C1dGfWPA.cjs → PenAndPaper-2ioTztzj.cjs} +1 -1
  12. package/dist/{PenAndPaper-VhfbqYdY.js → PenAndPaper-CT4Le8nh.js} +3 -3
  13. package/dist/{Shape-COkmGii0.cjs → Shape-DcAFJuUv.cjs} +1 -1
  14. package/dist/{Shape-Bx_JPN24.js → Shape-KRuu0uZ5.js} +1 -1
  15. package/dist/{Slicer-C-vVh0yP.js → Slicer-DxJ1zmBg.js} +2 -2
  16. package/dist/{Slicer-LsepvzYE.cjs → Slicer-L8wJ3VZd.cjs} +1 -1
  17. package/dist/{Title-0iC4gElN.cjs → Title-CZ0mh7PE.cjs} +1 -1
  18. package/dist/{Title-B5wIQ3bR.js → Title-x3NyvtQe.js} +1 -1
  19. package/dist/{Tooltip-BphIe1nr.cjs → Tooltip-BOmCgAU7.cjs} +1 -1
  20. package/dist/{Tooltip-DxlT2AdY.js → Tooltip-Df7E90wo.js} +1 -1
  21. package/dist/index-B4dbEeod.cjs +9 -0
  22. package/dist/{index-DT2Q6wHA.js → index-BfvWIfiY.js} +11 -2
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +10 -1
  25. package/dist/types/vue-data-ui.d.ts +10 -1
  26. package/dist/{useNestedProp-mBik37PJ.js → useNestedProp-C5ctHjEY.js} +1 -1
  27. package/dist/{useNestedProp-C01Nxqp-.cjs → useNestedProp-uYy3UrlZ.cjs} +1 -1
  28. package/dist/{usePrinter-Bu3_FFNh.js → usePrinter-C_JcwuWm.js} +1 -1
  29. package/dist/{usePrinter-IEjSf9Zq.cjs → usePrinter-ucBlOzo2.cjs} +1 -1
  30. package/dist/{vue-data-ui-B1vvdA7U.cjs → vue-data-ui-CTozzcVh.cjs} +1 -1
  31. package/dist/{vue-data-ui-BD904qyk.js → vue-data-ui-Ccl3MBHr.js} +60 -60
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-DNJURkin.js → vue-ui-3d-bar-C1KiqCD8.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-C39JngPT.cjs → vue-ui-3d-bar-DDlb-MuY.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-De-_FuTd.cjs → vue-ui-accordion-8uz6O0zN.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-Y-KIir2-.js → vue-ui-accordion-b3Vu6RVK.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-CBSJ767r.cjs → vue-ui-age-pyramid-CHGSEaYL.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-Blocfen4.js → vue-ui-age-pyramid-hY8RqvWh.js} +10 -10
  40. package/dist/{vue-ui-annotator-ls11X0Ep.js → vue-ui-annotator-C809iBPN.js} +1 -1
  41. package/dist/{vue-ui-annotator-CWhQkyiF.cjs → vue-ui-annotator-DscKLpfR.cjs} +1 -1
  42. package/dist/{vue-ui-bullet-ClNhNLlo.js → vue-ui-bullet-B9ujuFUU.js} +8 -8
  43. package/dist/{vue-ui-bullet-6faS2xkX.cjs → vue-ui-bullet-DYMpXNE_.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-D91rCN1k.cjs → vue-ui-candlestick-B-MDd1LY.cjs} +1 -1
  45. package/dist/{vue-ui-candlestick-BDVfGF2v.js → vue-ui-candlestick-DljnPmaC.js} +11 -11
  46. package/dist/{vue-ui-carousel-table-XMxSoSdl.js → vue-ui-carousel-table-E3ufuxIw.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-B3ORmOjO.cjs → vue-ui-carousel-table-paujUY-0.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-mqKL0lHf.js → vue-ui-chestnut-DipUHM0x.js} +8 -8
  49. package/dist/{vue-ui-chestnut-DhBTx9ih.cjs → vue-ui-chestnut-po3Q45RU.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-DBSD1ccp.cjs → vue-ui-cursor-CplxbFXK.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-U60m7Ha6.js → vue-ui-cursor-D06J66E7.js} +2 -2
  52. package/dist/{vue-ui-dashboard-u7bkCHjF.cjs → vue-ui-dashboard-8GtOSkNG.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-D5vUSSBx.js → vue-ui-dashboard-CGgaH4-n.js} +2 -2
  54. package/dist/{vue-ui-digits-BQdRQ0xO.cjs → vue-ui-digits--crzD75Q.cjs} +1 -1
  55. package/dist/{vue-ui-digits-BwZJZe3M.js → vue-ui-digits-CYmIyFKE.js} +2 -2
  56. package/dist/{vue-ui-donut-rDPyaNUq.js → vue-ui-donut-Ddo5zFZ0.js} +11 -11
  57. package/dist/{vue-ui-donut-sZhaN0en.cjs → vue-ui-donut-Dwj6Z2uH.cjs} +1 -1
  58. package/dist/{vue-ui-donut-evolution-BbsK84kI.cjs → vue-ui-donut-evolution-BTjRUruR.cjs} +1 -1
  59. package/dist/{vue-ui-donut-evolution-BSt9xbcl.js → vue-ui-donut-evolution-Z0IjHDjm.js} +11 -11
  60. package/dist/{vue-ui-dumbbell-DOQpwxOf.cjs → vue-ui-dumbbell--pSKj1Dz.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-BWJieeJq.js → vue-ui-dumbbell-DOcLI8AX.js} +10 -10
  62. package/dist/{vue-ui-flow-DGpXI3bk.js → vue-ui-flow-Cw6Olh3c.js} +9 -9
  63. package/dist/{vue-ui-flow-C4xrv2sT.cjs → vue-ui-flow-CwrDsVw9.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-BX727iqg.js → vue-ui-funnel-D8SzaI11.js} +8 -8
  65. package/dist/{vue-ui-funnel-BU-dX1be.cjs → vue-ui-funnel-M6CIcOHV.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-BEPUwSGn.cjs → vue-ui-galaxy-BuUXwn_I.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-YOnLDzLn.js → vue-ui-galaxy-DRcH6lOJ.js} +11 -11
  68. package/dist/vue-ui-gauge-BOc5CHnJ.cjs +1 -0
  69. package/dist/{vue-ui-gauge-B4R-7QaH.js → vue-ui-gauge-D6VDfsha.js} +230 -208
  70. package/dist/{vue-ui-gizmo-d0iCnrE5.js → vue-ui-gizmo-CyUr8pm2.js} +3 -3
  71. package/dist/{vue-ui-gizmo-C6WHIvls.cjs → vue-ui-gizmo-as4zcurL.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-Do3SwP1y.js → vue-ui-heatmap-DHA16YVI.js} +10 -10
  73. package/dist/{vue-ui-heatmap-BcoK1MFo.cjs → vue-ui-heatmap-Dpkvl_Ed.cjs} +1 -1
  74. package/dist/{vue-ui-history-plot-C7Tl3J6I.cjs → vue-ui-history-plot-BDKbSvlu.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-CeyQvxiu.js → vue-ui-history-plot-D0tHEYXR.js} +11 -11
  76. package/dist/{vue-ui-kpi-zCeUtmhG.js → vue-ui-kpi-DTIXAiP8.js} +3 -3
  77. package/dist/{vue-ui-kpi-C6fzXZvG.cjs → vue-ui-kpi-Zd-IgqlU.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-C6e8w8Pj.js → vue-ui-mini-loader-BhjFd2BP.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-DA2rFFM-.cjs → vue-ui-mini-loader-VwxHEY37.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-B7pqKZ6Q.js → vue-ui-molecule-Cr9EVj4Q.js} +11 -11
  81. package/dist/{vue-ui-molecule-By3e76zL.cjs → vue-ui-molecule-hCAfUH98.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-Ch3yfUsb.cjs → vue-ui-mood-radar-CydQr5GI.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-DEjAMbvz.js → vue-ui-mood-radar-umRtNtxs.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-BYUHWwAG.js → vue-ui-nested-donuts-BIoQEWGY.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-BXul72Pg.cjs → vue-ui-nested-donuts-BKxE58Uf.cjs} +1 -1
  86. package/dist/{vue-ui-onion-Di-_exOm.cjs → vue-ui-onion-2oV8205I.cjs} +1 -1
  87. package/dist/{vue-ui-onion-BTQj76EU.js → vue-ui-onion-CeJCh11D.js} +11 -11
  88. package/dist/{vue-ui-parallel-coordinate-plot-BaYu4ces.js → vue-ui-parallel-coordinate-plot-3I5v7gSF.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-B6OQiz_w.cjs → vue-ui-parallel-coordinate-plot-DYvaWzwb.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-LdkWJ4bO.js → vue-ui-quadrant-B01cPXS5.js} +12 -12
  91. package/dist/{vue-ui-quadrant-Tv2JUmD2.cjs → vue-ui-quadrant-B0GKCJxi.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-enp44IMM.cjs → vue-ui-quick-chart-B42AMm4R.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-B8tYrd7n.js → vue-ui-quick-chart-GU62u7yC.js} +9 -9
  94. package/dist/{vue-ui-radar-CdQ3ZZnc.js → vue-ui-radar-DsjxjLjY.js} +12 -12
  95. package/dist/{vue-ui-radar-Dw0mtHHQ.cjs → vue-ui-radar-Dwf_8p6N.cjs} +1 -1
  96. package/dist/{vue-ui-rating-CgbhHqLS.cjs → vue-ui-rating-BDOEfGwV.cjs} +1 -1
  97. package/dist/{vue-ui-rating-iL7BC7v-.js → vue-ui-rating-weQfwApU.js} +2 -2
  98. package/dist/{vue-ui-relation-circle-CoNB6PQ2.js → vue-ui-relation-circle-C7vapzk4.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-xL3OCDO2.cjs → vue-ui-relation-circle-DRLam0rk.cjs} +1 -1
  100. package/dist/{vue-ui-rings-BNmLppA8.cjs → vue-ui-rings-BDxpRKWC.cjs} +1 -1
  101. package/dist/{vue-ui-rings-Cs4jVChn.js → vue-ui-rings-BsunIWna.js} +11 -11
  102. package/dist/{vue-ui-scatter-BvUVkiSM.js → vue-ui-scatter-B4eRVmk2.js} +12 -12
  103. package/dist/{vue-ui-scatter-DVKpfEr4.cjs → vue-ui-scatter-CE4pfpCN.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-Bw3Vkosw.cjs → vue-ui-screenshot-CqC7uqTW.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-Tkspb4Gy.js → vue-ui-screenshot-DnF-twyf.js} +1 -1
  106. package/dist/{vue-ui-skeleton-D2ANHIIV.cjs → vue-ui-skeleton-4l6lQhDp.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-D9lIs0pC.js → vue-ui-skeleton-CK-lcAFv.js} +3 -3
  108. package/dist/{vue-ui-smiley-CZmxJR1p.js → vue-ui-smiley-DXFyinQx.js} +2 -2
  109. package/dist/{vue-ui-smiley-C18DtSwE.cjs → vue-ui-smiley-jR415Iqn.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-DAD9EW5F.cjs → vue-ui-spark-trend-D9vaq6qF.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-CP2rAw9u.js → vue-ui-spark-trend-s6WxtG4d.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-CK_sJkSI.cjs → vue-ui-sparkbar-BzisE3ts.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-Ebg2bwSr.js → vue-ui-sparkbar-Cm6S1Qb4.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-CkhqBiO0.js → vue-ui-sparkgauge-Bh_CjEyL.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-DRc4NqXv.cjs → vue-ui-sparkgauge-COCtEmhT.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-CFwcK9dP.cjs → vue-ui-sparkhistogram-C7PY45w0.cjs} +1 -1
  117. package/dist/{vue-ui-sparkhistogram-By027HfM.js → vue-ui-sparkhistogram-J_unkqPG.js} +5 -5
  118. package/dist/vue-ui-sparkline-Be1dXlA9.cjs +1 -0
  119. package/dist/{vue-ui-sparkline-j2oC5gBh.js → vue-ui-sparkline-E6y3983Y.js} +58 -50
  120. package/dist/{vue-ui-sparkstackbar-CIImFRNj.cjs → vue-ui-sparkstackbar-CCzIqHBf.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-Bil9rW48.js → vue-ui-sparkstackbar-CH0Pch6B.js} +5 -5
  122. package/dist/{vue-ui-stackbar-BtN-dlcj.js → vue-ui-stackbar-BQmJiCNo.js} +12 -12
  123. package/dist/{vue-ui-stackbar-BN22b1v_.cjs → vue-ui-stackbar-ByDUWOyZ.cjs} +1 -1
  124. package/dist/{vue-ui-strip-plot-D9L8r-Qd.cjs → vue-ui-strip-plot-BfXCXnmQ.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-DZWB-w56.js → vue-ui-strip-plot-Dp_SpOZK.js} +11 -11
  126. package/dist/{vue-ui-table-D8e6SX0d.cjs → vue-ui-table-BEuRL3NS.cjs} +1 -1
  127. package/dist/{vue-ui-table-miQfZhdG.js → vue-ui-table-Bz29cntB.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-m3Fkpx9y.js → vue-ui-table-heatmap-CqLnEyoP.js} +4 -4
  129. package/dist/{vue-ui-table-heatmap-8uW1Gc3l.cjs → vue-ui-table-heatmap-DYcIN8JK.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-DltQKhPy.js → vue-ui-table-sparkline-BfChx5eE.js} +64 -62
  131. package/dist/vue-ui-table-sparkline-vlSwSjCF.cjs +1 -0
  132. package/dist/{vue-ui-thermometer-Bdy_jYI1.cjs → vue-ui-thermometer-B-8wcBPG.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-ceqnJJgt.js → vue-ui-thermometer-Dxa2olTt.js} +7 -7
  134. package/dist/{vue-ui-timer-B9uwiDwB.js → vue-ui-timer-DCw1gtRV.js} +5 -5
  135. package/dist/{vue-ui-timer-CM2i7679.cjs → vue-ui-timer-DsJk28Ny.cjs} +1 -1
  136. package/dist/{vue-ui-tiremarks-CbjA0LAa.js → vue-ui-tiremarks-BHybVVRg.js} +7 -7
  137. package/dist/{vue-ui-tiremarks-6S2fApFV.cjs → vue-ui-tiremarks-CEK5-Ion.cjs} +1 -1
  138. package/dist/{vue-ui-treemap-Dorwv25m.cjs → vue-ui-treemap-5eXs9Afh.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-CozGHw4b.js → vue-ui-treemap-kIBQTHu8.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-B3mUU17x.cjs → vue-ui-vertical-bar-CkJXkGAm.cjs} +1 -1
  141. package/dist/{vue-ui-vertical-bar--ilwk-0L.js → vue-ui-vertical-bar-D27LA1Dc.js} +11 -11
  142. package/dist/{vue-ui-waffle-BEa1YJLV.cjs → vue-ui-waffle-C1O7clHR.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-DXaAloSi.js → vue-ui-waffle-CGsWS6jQ.js} +11 -11
  144. package/dist/{vue-ui-wheel-C2wDyBoN.cjs → vue-ui-wheel-BwDaKdAT.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-BU2OITMK.js → vue-ui-wheel-qwt5Ais3.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-E7BNcpiF.js → vue-ui-word-cloud-B7MrSoRx.js} +10 -10
  147. package/dist/{vue-ui-word-cloud-DaokdBId.cjs → vue-ui-word-cloud-DK01KwNg.cjs} +1 -1
  148. package/dist/{vue-ui-xy-BSOYHk-G.cjs → vue-ui-xy-BzclkAin.cjs} +1 -1
  149. package/dist/{vue-ui-xy-DHJUsPhx.js → vue-ui-xy-DlSYajOn.js} +14 -14
  150. package/dist/{vue-ui-xy-canvas-DmBKepV0.js → vue-ui-xy-canvas-BIdABPv7.js} +11 -11
  151. package/dist/{vue-ui-xy-canvas-CvOJifne.cjs → vue-ui-xy-canvas-CKTkd0NL.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/index-kERGTkcX.cjs +0 -9
  154. package/dist/vue-ui-gauge-SmYMqHtg.cjs +0 -1
  155. package/dist/vue-ui-sparkline-CEmqDTG_.cjs +0 -1
  156. package/dist/vue-ui-table-sparkline-DDGpViuj.cjs +0 -1
@@ -1,16 +1,16 @@
1
1
  import { computed as h, ref as i, watch as Ie, onMounted as Me, onBeforeUnmount as De, openBlock as o, createElementBlock as u, normalizeClass as F, normalizeStyle as Q, createBlock as T, createCommentVNode as v, unref as d, createSlots as Ge, withCtx as f, renderSlot as y, normalizeProps as W, guardReactiveProps as I, createVNode as xe, Fragment as g, renderList as C, createElementVNode as k, toDisplayString as L, mergeProps as Ee, createTextVNode as Ve, nextTick as He } from "vue";
2
- import { u as Re, c as Z, t as Ue, a as Be, p as A, o as Xe, e as ee, g as Ce, b as je, d as we, v as Ye, C as Je, f as B, X as qe, i as te, l as Ke, h as Qe, x as _e, y as Ze, q as et, r as tt, E as lt } from "./index-DT2Q6wHA.js";
2
+ import { u as Re, c as Z, t as Ue, a as Be, p as A, o as Xe, e as ee, g as Ce, b as je, d as we, v as Ye, C as Je, f as B, X as qe, i as te, l as Ke, h as Qe, x as _e, y as Ze, q as et, r as tt, E as lt } from "./index-BfvWIfiY.js";
3
3
  import { t as at, u as ot } from "./useResponsive-CoxXLe23.js";
4
- import { _ as st } from "./Title-B5wIQ3bR.js";
5
- import { u as rt, U as ut } from "./usePrinter-Bu3_FFNh.js";
6
- import { _ as nt } from "./Tooltip-DxlT2AdY.js";
7
- import { D as it } from "./DataTable-Chl6EuoM.js";
8
- import vt from "./vue-ui-skeleton-D9lIs0pC.js";
9
- import { _ as ct } from "./Shape-Bx_JPN24.js";
10
- import ht from "./vue-ui-accordion-Y-KIir2-.js";
11
- import { u as $e } from "./useNestedProp-mBik37PJ.js";
12
- import { _ as dt } from "./PackageVersion-tBXJRRcv.js";
13
- import { P as pt } from "./PenAndPaper-VhfbqYdY.js";
4
+ import { _ as st } from "./Title-x3NyvtQe.js";
5
+ import { u as rt, U as ut } from "./usePrinter-C_JcwuWm.js";
6
+ import { _ as nt } from "./Tooltip-Df7E90wo.js";
7
+ import { D as it } from "./DataTable-DJteUrAL.js";
8
+ import vt from "./vue-ui-skeleton-CK-lcAFv.js";
9
+ import { _ as ct } from "./Shape-KRuu0uZ5.js";
10
+ import ht from "./vue-ui-accordion-b3Vu6RVK.js";
11
+ import { u as $e } from "./useNestedProp-C5ctHjEY.js";
12
+ import { _ as dt } from "./PackageVersion-QvLMBL8G.js";
13
+ import { P as pt } from "./PenAndPaper-CT4Le8nh.js";
14
14
  import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const yt = ["id"], bt = ["xmlns", "viewBox"], mt = { key: 0 }, gt = { key: 0 }, kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], xt = { key: 1 }, Ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $t = ["x", "y", "fill", "font-size"], Tt = ["x", "y", "font-size", "fill"], Lt = ["fill", "font-size", "transform"], At = ["fill", "font-size", "x", "y"], Pt = ["x1", "x2", "y1", "y2", "stroke"], St = ["cx", "cy", "fill"], zt = ["cx", "cy", "fill"], Nt = ["id"], Ot = ["stop-color"], Ft = ["stop-color"], Wt = ["stop-color"], It = { key: 0 }, Mt = ["x", "y", "font-size", "fill"], Dt = {
16
16
  key: 5,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-kERGTkcX.cjs"),e=require("vue"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((l,o)=>l-o),palette:g.palette,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(l=>({average:Object.hasOwn(l,"average")?l.average:!1,decimals:Object.hasOwn(l,"decimals")?l.decimals:0,isMultiselect:Object.hasOwn(l,"isMultiselect")?l.isMultiselect:!1,isPercentage:Object.hasOwn(l,"isPercentage")?l.isPercentage:!1,isSearch:Object.hasOwn(l,"isSearch")?l.isSearch:!1,isSort:Object.hasOwn(l,"isSort")?l.isSort:!1,name:l.name,percentageTo:Object.hasOwn(l,"percentageTo")?l.percentageTo:void 0,prefix:Object.hasOwn(l,"prefix")?l.prefix:"",rangeFilter:Object.hasOwn(l,"rangeFilter")?l.rangeFilter:!1,suffix:Object.hasOwn(l,"suffix")?l.suffix:"",sum:Object.hasOwn(l,"sum")?l.sum:!1,type:l.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-B4dbEeod.cjs"),e=require("vue"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((l,o)=>l-o),palette:g.palette,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(l=>({average:Object.hasOwn(l,"average")?l.average:!1,decimals:Object.hasOwn(l,"decimals")?l.decimals:0,isMultiselect:Object.hasOwn(l,"isMultiselect")?l.isMultiselect:!1,isPercentage:Object.hasOwn(l,"isPercentage")?l.isPercentage:!1,isSearch:Object.hasOwn(l,"isSearch")?l.isSearch:!1,isSort:Object.hasOwn(l,"isSort")?l.isSort:!1,name:l.name,percentageTo:Object.hasOwn(l,"percentageTo")?l.percentageTo:void 0,prefix:Object.hasOwn(l,"prefix")?l.prefix:"",rangeFilter:Object.hasOwn(l,"rangeFilter")?l.rangeFilter:!1,suffix:Object.hasOwn(l,"suffix")?l.suffix:"",sum:Object.hasOwn(l,"sum")?l.sum:!1,type:l.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
2
2
  Provide an array of objects of type:
3
3
  {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { p as D, u as x, A as G, m as M, d as T, B as E, q as z, r as B, a0 as H } from "./index-DT2Q6wHA.js";
1
+ import { p as D, u as x, A as G, m as M, d as T, B as E, q as z, r as B, a0 as H } from "./index-BfvWIfiY.js";
2
2
  import { openBlock as i, createElementBlock as c, normalizeStyle as g, createElementVNode as a, toDisplayString as u, Fragment as b, renderList as _, normalizeClass as f, createTextVNode as I, createCommentVNode as N, withDirectives as k, vModelText as w, withKeys as S, withModifiers as O, vModelSelect as P, createStaticVNode as R, pushScopeId as U, popScopeId as V } from "vue";
3
3
  import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const X = {
@@ -1,8 +1,8 @@
1
1
  import { useCssVars as Q, ref as h, computed as c, watch as Y, onMounted as Z, openBlock as n, createElementBlock as l, normalizeStyle as I, normalizeClass as E, createBlock as j, unref as g, createSlots as ee, withCtx as C, renderSlot as r, normalizeProps as p, guardReactiveProps as f, createCommentVNode as v, createElementVNode as y, Fragment as _, renderList as w, createVNode as te, mergeProps as M, nextTick as ae } from "vue";
2
- import { u as oe, c as G, t as se, o as ne, e as le, $ as re, F as ue, N as ie, q as de, r as ce } from "./index-DT2Q6wHA.js";
3
- import { u as S } from "./useNestedProp-mBik37PJ.js";
4
- import { u as pe, U as ve } from "./usePrinter-Bu3_FFNh.js";
5
- import { _ as me } from "./Shape-Bx_JPN24.js";
2
+ import { u as oe, c as G, t as se, o as ne, e as le, $ as re, F as ue, N as ie, q as de, r as ce } from "./index-BfvWIfiY.js";
3
+ import { u as S } from "./useNestedProp-C5ctHjEY.js";
4
+ import { u as pe, U as ve } from "./usePrinter-C_JcwuWm.js";
5
+ import { _ as me } from "./Shape-KRuu0uZ5.js";
6
6
  import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const he = ["id"], ge = { role: "cell" }, ye = { role: "row" }, be = ["data-cell"], Ce = {
8
8
  key: 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-kERGTkcX.cjs"),B=require("./useNestedProp-C01Nxqp-.cjs"),P=require("./usePrinter-IEjSf9Zq.cjs"),O=require("./Shape-COkmGii0.cjs"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M=["id"],G={role:"cell"},q={role:"row"},U=["data-cell"],L={key:0,style:{display:"flex","flex-direction":"row",gap:"2px","align-items":"center"}},A=["height","width"],D={key:0,role:"cell","data-cell":"sum"},H={key:1,role:"cell","data-cell":"average"},X={key:2,role:"cell","data-cell":"median"},W={key:1,ref:"source",dir:"auto"},J={__name:"vue-ui-table-heatmap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(I,{expose:$}){const d=I;e.useCssVars(t=>({"4e1c0e72":z.value,"6ed4bc22":F.value}));const{vue_ui_table_heatmap:N}=r.useConfig(),p=e.ref(r.createUid()),s=e.ref(!1),c=e.ref(null),m=e.ref(!1),v=e.ref(0),o=e.computed({get:()=>f(),set:t=>t});function f(){const t=B.useNestedProp({userConfig:d.config,defaultConfig:N});return t.theme?{...B.useNestedProp({userConfig:r.themes.vue_ui_table_heatmap[t.theme]||d.config,defaultConfig:t})}:t}e.watch(()=>d.config,t=>{o.value=f(),k()},{deep:!0});const{isPrinting:w,isImaging:E,generatePdf:g,generateImage:h}=P.usePrinter({elementId:`table_heatmap_${p.value}`,fileName:"vue-ui-table-heatmap"}),S=e.computed(()=>o.value.table.responsiveBreakpoint),x=e.computed(()=>!!d.dataset&&d.dataset.length);e.onMounted(()=>{k()});function k(){r.objectIsEmpty(d.dataset)&&r.error({componentName:"VueUiTableHeatmap",type:"dataset"});const t=new ResizeObserver(l=>{l.forEach(n=>{s.value=n.contentRect.width<S.value})});c.value&&t.observe(c.value)}const y=e.computed(()=>d.dataset.map(t=>{const l=t.values.map(a=>isNaN(a)?0:a),n=l.reduce((a,i)=>a+i,0);return{...t,values:l,serieExtremes:{max:Math.max(...l),min:Math.min(...l)},sum:n,average:n/l.length,median:r.calcMedian(l),displayValues:[t.name,...t.values],id:r.createUid()}})),b=e.computed(()=>{const t=y.value.flatMap(l=>l.values);return{min:Math.min(...t),max:Math.max(...t)}});function V(t,l){const n=o.value.style.heatmapColors.useIndividualScale;return r.interpolateColorHex(o.value.style.heatmapColors.min,o.value.style.heatmapColors.max,n?l.min:b.value.min,n?l.max:b.value.max,t)}const C=e.computed(()=>y.value.map(t=>({...t,colors:t.displayValues.map(l=>isNaN(l)?o.value.style.backgroundColor:V(l,t.serieExtremes))}))),F=e.computed(()=>o.value.style.backgroundColor),z=e.computed(()=>`${o.value.table.borderWidth}px`);function _(){e.nextTick(()=>{const t=C.value.map(a=>[[a.name],a.displayValues,[a.sum],[a.average],[a.median]]),l=[[[""],o.value.table.head.values,["sum"],["average"],["median"]]].concat(t),n=r.createCsvContent(l);r.downloadCsv({csvContent:n,title:"vue-ui-table-heatmap"})})}function R(t){m.value=t,v.value+=1}return $({generatePdf:g,generateCsv:_,generateImage:h}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:c,style:e.normalizeStyle(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${o.value.userOptions.show?"36px":""}; ${m.value?"vue-data-ui-wrapper-fullscreen":""}; position:relative;`),class:e.normalizeClass({"vue-ui-responsive":s.value}),id:`table_heatmap_${p.value}`},[o.value.userOptions.show&&x.value?(e.openBlock(),e.createBlock(P.UserOptions,{ref:"details",key:`user_option_${v.value}`,backgroundColor:o.value.style.backgroundColor,color:o.value.style.color,isPrinting:e.unref(w),isImaging:e.unref(E),uid:p.value,hasPdf:o.value.userOptions.buttons.pdf,hasXls:o.value.userOptions.buttons.csv,hasImg:o.value.userOptions.buttons.img,hasFullscreen:o.value.userOptions.buttons.fullscreen,isFullscreen:m.value,titles:{...o.value.userOptions.buttonTitles},chartElement:c.value,position:o.value.userOptions.position,onToggleFullscreen:R,onGeneratePdf:e.unref(g),onGenerateCsv:_,onGenerateImage:e.unref(h)},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:a})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:a})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),e.createElementVNode("table",{class:e.normalizeClass({"vue-ui-table-heatmap":!0}),style:e.normalizeStyle(`width:100%;font-family:${o.value.style.fontFamily};background:${o.value.style.backgroundColor};`)},[e.createElementVNode("caption",null,[e.renderSlot(t.$slots,"caption",{},void 0,!0)]),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${o.value.table.head.backgroundColor};color:${o.value.table.head.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.table.head.values,(n,a)=>(e.openBlock(),e.createElementBlock("th",G,[e.renderSlot(t.$slots,"head",e.normalizeProps(e.guardReactiveProps({value:n,rowIndex:a,type:typeof n,isResponsive:s.value})),void 0,!0)]))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(n,a)=>(e.openBlock(),e.createElementBlock("tr",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.displayValues,(i,u)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":o.value.table.head.values[u]},[n.color&&u===0?(e.openBlock(),e.createElementBlock("div",L,[n.color?(e.openBlock(),e.createElementBlock("svg",{key:0,height:o.value.style.shapeSize,width:o.value.style.shapeSize,viewBox:"0 0 20 20",style:{background:"none",overflow:"visible"}},[e.createVNode(O._sfc_main,{plot:{x:10,y:10},color:n.color,radius:9,shape:n.shape||"circle"},null,8,["color","shape"])],8,A)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.guardReactiveProps({value:i,rowIndex:a,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[u===0?e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.mergeProps({key:0},{value:i,rowIndex:a,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0):e.createCommentVNode("",!0),u>0?e.renderSlot(t.$slots,"cell",e.normalizeProps(e.mergeProps({key:1},{value:i,rowIndex:a,colIndex:u,type:typeof i,isResponsive:s.value,color:n.colors[u],textColor:e.unref(r.adaptColorToBackground)(n.colors[u])})),void 0,!0):e.createCommentVNode("",!0)],64))],8,U))),256)),o.value.table.showSum?(e.openBlock(),e.createElementBlock("td",D,[e.renderSlot(t.$slots,"sum",e.normalizeProps(e.guardReactiveProps({value:n.sum,rowIndex:a,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showAverage?(e.openBlock(),e.createElementBlock("td",H,[e.renderSlot(t.$slots,"average",e.normalizeProps(e.guardReactiveProps({value:n.average,rowIndex:a,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showMedian?(e.openBlock(),e.createElementBlock("td",X,[e.renderSlot(t.$slots,"median",e.normalizeProps(e.guardReactiveProps({value:n.median,rowIndex:a,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0)]))),256))])],4),t.$slots.source?(e.openBlock(),e.createElementBlock("div",W,[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],14,M))}},K=T._export_sfc(J,[["__scopeId","data-v-393e4e2f"]]);exports.default=K;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-B4dbEeod.cjs"),B=require("./useNestedProp-uYy3UrlZ.cjs"),P=require("./usePrinter-ucBlOzo2.cjs"),O=require("./Shape-DcAFJuUv.cjs"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M=["id"],G={role:"cell"},q={role:"row"},U=["data-cell"],L={key:0,style:{display:"flex","flex-direction":"row",gap:"2px","align-items":"center"}},A=["height","width"],D={key:0,role:"cell","data-cell":"sum"},H={key:1,role:"cell","data-cell":"average"},X={key:2,role:"cell","data-cell":"median"},W={key:1,ref:"source",dir:"auto"},J={__name:"vue-ui-table-heatmap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(I,{expose:$}){const d=I;e.useCssVars(t=>({"4e1c0e72":z.value,"6ed4bc22":F.value}));const{vue_ui_table_heatmap:N}=r.useConfig(),p=e.ref(r.createUid()),s=e.ref(!1),c=e.ref(null),m=e.ref(!1),v=e.ref(0),o=e.computed({get:()=>f(),set:t=>t});function f(){const t=B.useNestedProp({userConfig:d.config,defaultConfig:N});return t.theme?{...B.useNestedProp({userConfig:r.themes.vue_ui_table_heatmap[t.theme]||d.config,defaultConfig:t})}:t}e.watch(()=>d.config,t=>{o.value=f(),k()},{deep:!0});const{isPrinting:w,isImaging:E,generatePdf:g,generateImage:h}=P.usePrinter({elementId:`table_heatmap_${p.value}`,fileName:"vue-ui-table-heatmap"}),S=e.computed(()=>o.value.table.responsiveBreakpoint),x=e.computed(()=>!!d.dataset&&d.dataset.length);e.onMounted(()=>{k()});function k(){r.objectIsEmpty(d.dataset)&&r.error({componentName:"VueUiTableHeatmap",type:"dataset"});const t=new ResizeObserver(l=>{l.forEach(n=>{s.value=n.contentRect.width<S.value})});c.value&&t.observe(c.value)}const y=e.computed(()=>d.dataset.map(t=>{const l=t.values.map(a=>isNaN(a)?0:a),n=l.reduce((a,i)=>a+i,0);return{...t,values:l,serieExtremes:{max:Math.max(...l),min:Math.min(...l)},sum:n,average:n/l.length,median:r.calcMedian(l),displayValues:[t.name,...t.values],id:r.createUid()}})),b=e.computed(()=>{const t=y.value.flatMap(l=>l.values);return{min:Math.min(...t),max:Math.max(...t)}});function V(t,l){const n=o.value.style.heatmapColors.useIndividualScale;return r.interpolateColorHex(o.value.style.heatmapColors.min,o.value.style.heatmapColors.max,n?l.min:b.value.min,n?l.max:b.value.max,t)}const C=e.computed(()=>y.value.map(t=>({...t,colors:t.displayValues.map(l=>isNaN(l)?o.value.style.backgroundColor:V(l,t.serieExtremes))}))),F=e.computed(()=>o.value.style.backgroundColor),z=e.computed(()=>`${o.value.table.borderWidth}px`);function _(){e.nextTick(()=>{const t=C.value.map(a=>[[a.name],a.displayValues,[a.sum],[a.average],[a.median]]),l=[[[""],o.value.table.head.values,["sum"],["average"],["median"]]].concat(t),n=r.createCsvContent(l);r.downloadCsv({csvContent:n,title:"vue-ui-table-heatmap"})})}function R(t){m.value=t,v.value+=1}return $({generatePdf:g,generateCsv:_,generateImage:h}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:c,style:e.normalizeStyle(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${o.value.userOptions.show?"36px":""}; ${m.value?"vue-data-ui-wrapper-fullscreen":""}; position:relative;`),class:e.normalizeClass({"vue-ui-responsive":s.value}),id:`table_heatmap_${p.value}`},[o.value.userOptions.show&&x.value?(e.openBlock(),e.createBlock(P.UserOptions,{ref:"details",key:`user_option_${v.value}`,backgroundColor:o.value.style.backgroundColor,color:o.value.style.color,isPrinting:e.unref(w),isImaging:e.unref(E),uid:p.value,hasPdf:o.value.userOptions.buttons.pdf,hasXls:o.value.userOptions.buttons.csv,hasImg:o.value.userOptions.buttons.img,hasFullscreen:o.value.userOptions.buttons.fullscreen,isFullscreen:m.value,titles:{...o.value.userOptions.buttonTitles},chartElement:c.value,position:o.value.userOptions.position,onToggleFullscreen:R,onGeneratePdf:e.unref(g),onGenerateCsv:_,onGenerateImage:e.unref(h)},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:a})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:a})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),e.createElementVNode("table",{class:e.normalizeClass({"vue-ui-table-heatmap":!0}),style:e.normalizeStyle(`width:100%;font-family:${o.value.style.fontFamily};background:${o.value.style.backgroundColor};`)},[e.createElementVNode("caption",null,[e.renderSlot(t.$slots,"caption",{},void 0,!0)]),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${o.value.table.head.backgroundColor};color:${o.value.table.head.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.table.head.values,(n,a)=>(e.openBlock(),e.createElementBlock("th",G,[e.renderSlot(t.$slots,"head",e.normalizeProps(e.guardReactiveProps({value:n,rowIndex:a,type:typeof n,isResponsive:s.value})),void 0,!0)]))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(n,a)=>(e.openBlock(),e.createElementBlock("tr",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.displayValues,(i,u)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":o.value.table.head.values[u]},[n.color&&u===0?(e.openBlock(),e.createElementBlock("div",L,[n.color?(e.openBlock(),e.createElementBlock("svg",{key:0,height:o.value.style.shapeSize,width:o.value.style.shapeSize,viewBox:"0 0 20 20",style:{background:"none",overflow:"visible"}},[e.createVNode(O._sfc_main,{plot:{x:10,y:10},color:n.color,radius:9,shape:n.shape||"circle"},null,8,["color","shape"])],8,A)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.guardReactiveProps({value:i,rowIndex:a,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[u===0?e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.mergeProps({key:0},{value:i,rowIndex:a,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0):e.createCommentVNode("",!0),u>0?e.renderSlot(t.$slots,"cell",e.normalizeProps(e.mergeProps({key:1},{value:i,rowIndex:a,colIndex:u,type:typeof i,isResponsive:s.value,color:n.colors[u],textColor:e.unref(r.adaptColorToBackground)(n.colors[u])})),void 0,!0):e.createCommentVNode("",!0)],64))],8,U))),256)),o.value.table.showSum?(e.openBlock(),e.createElementBlock("td",D,[e.renderSlot(t.$slots,"sum",e.normalizeProps(e.guardReactiveProps({value:n.sum,rowIndex:a,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showAverage?(e.openBlock(),e.createElementBlock("td",H,[e.renderSlot(t.$slots,"average",e.normalizeProps(e.guardReactiveProps({value:n.average,rowIndex:a,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showMedian?(e.openBlock(),e.createElementBlock("td",X,[e.renderSlot(t.$slots,"median",e.normalizeProps(e.guardReactiveProps({value:n.median,rowIndex:a,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0)]))),256))])],4),t.$slots.source?(e.openBlock(),e.createElementBlock("div",W,[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],14,M))}},K=T._export_sfc(J,[["__scopeId","data-v-393e4e2f"]]);exports.default=K;
@@ -1,11 +1,11 @@
1
- import { useCssVars as fe, ref as d, computed as h, watch as ee, onMounted as pe, openBlock as s, createElementBlock as i, normalizeClass as V, createElementVNode as c, normalizeStyle as r, toDisplayString as b, createCommentVNode as p, withDirectives as be, Fragment as E, renderList as G, createBlock as L, unref as v, createSlots as ge, withCtx as A, renderSlot as C, normalizeProps as me, guardReactiveProps as he, nextTick as ye } from "vue";
2
- import { u as ke, c as _e, t as xe, a as Ce, p as $, b as Ie, o as we, e as te, g as Se, d as Ae, $ as $e, i as P, f as z, q as Pe, r as ze } from "./index-DT2Q6wHA.js";
3
- import { u as ae } from "./useNestedProp-mBik37PJ.js";
4
- import Oe from "./vue-ui-sparkline-j2oC5gBh.js";
5
- import Fe from "./BaseIcon-CK7TNglK.js";
6
- import { u as Ne, U as De, v as We } from "./usePrinter-Bu3_FFNh.js";
1
+ import { useCssVars as fe, ref as d, computed as h, watch as ee, onMounted as pe, openBlock as u, createElementBlock as i, normalizeClass as V, createElementVNode as c, normalizeStyle as r, toDisplayString as b, createCommentVNode as p, withDirectives as be, Fragment as E, renderList as G, createBlock as R, unref as v, createSlots as ge, withCtx as A, renderSlot as C, normalizeProps as me, guardReactiveProps as he, nextTick as ye } from "vue";
2
+ import { u as ke, c as _e, t as xe, a as Ce, p as $, b as we, o as Ie, e as te, g as Se, d as Ae, $ as $e, i as P, f as z, q as Pe, r as ze } from "./index-BfvWIfiY.js";
3
+ import { u as ae } from "./useNestedProp-C5ctHjEY.js";
4
+ import Oe from "./vue-ui-sparkline-E6y3983Y.js";
5
+ import Fe from "./BaseIcon-C5xMMLKe.js";
6
+ import { u as Ne, U as De, v as We } from "./usePrinter-C_JcwuWm.js";
7
7
  import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } }, Ee = ["onClick"], Ge = ["data-cell"], Le = ["data-cell", "onPointerenter"], Re = ["data-cell"], Be = ["data-cell"], Ue = ["data-cell"], He = ["data-cell"], qe = {
8
+ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } }, Ee = ["onClick"], Ge = ["data-cell"], Re = ["data-cell", "onPointerenter"], Le = ["data-cell"], Be = ["data-cell"], Ue = ["data-cell"], He = ["data-cell"], qe = {
9
9
  key: 0,
10
10
  ref: "source",
11
11
  dir: "auto"
@@ -28,9 +28,9 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
28
28
  setup(le, { expose: oe }) {
29
29
  const g = le;
30
30
  fe((t) => ({
31
- "72de9ec2": t.tdo
31
+ "1f14fe1a": t.tdo
32
32
  }));
33
- const { vue_ui_table_sparkline: ne } = ke(), O = d(_e()), R = d(0), I = d(0), F = d(null), e = h({
33
+ const { vue_ui_table_sparkline: ne } = ke(), O = d(_e()), L = d(0), w = d(0), F = d(null), e = h({
34
34
  get: () => B(),
35
35
  set: (t) => t
36
36
  });
@@ -48,29 +48,29 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
48
48
  } : t;
49
49
  }
50
50
  ee(() => g.config, (t) => {
51
- e.value = B(), J(), I.value += 1;
51
+ e.value = B(), J(), w.value += 1;
52
52
  }, { deep: !0 }), ee(() => g.dataset, (t) => {
53
- _.value = y.value, I.value += 1;
53
+ _.value = y.value, w.value += 1;
54
54
  }, { deep: !0 });
55
55
  const { isPrinting: U, isImaging: H, generatePdf: q, generateImage: X } = Ne({
56
56
  elementId: `table_${O.value}`,
57
57
  fileName: e.value.title.text || "vue-ui-table-sparkline"
58
- }), ue = h(() => Ie(e.value.customPalette)), w = d(null), N = d(!1), se = h(() => e.value.responsiveBreakpoint);
58
+ }), se = h(() => we(e.value.customPalette)), I = d(null), N = d(!1), ue = h(() => e.value.responsiveBreakpoint);
59
59
  pe(() => {
60
60
  J();
61
61
  });
62
62
  const D = d(e.value.colNames);
63
63
  function J() {
64
- we(g.dataset) && te({
64
+ Ie(g.dataset) && te({
65
65
  componentName: "VueUiTableSparkline",
66
66
  type: "dataset"
67
67
  });
68
68
  const t = new ResizeObserver((o) => {
69
69
  o.forEach((a) => {
70
- N.value = a.contentRect.width < se.value;
70
+ N.value = a.contentRect.width < ue.value;
71
71
  });
72
72
  });
73
- w.value && t.observe(w.value), D.value = [];
73
+ I.value && t.observe(I.value), D.value = [];
74
74
  for (let o = 0; o < Y.value; o += 1)
75
75
  D.value.push(e.value.colNames[o] || `col ${o}`);
76
76
  }
@@ -87,29 +87,29 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
87
87
  });
88
88
  });
89
89
  }), g.dataset.map((t, o) => {
90
- const a = (t.values || []).map((u) => isNaN(u) ? 0 : u ?? 0), n = a.reduce((u, l) => u + l, 0);
90
+ const a = (t.values || []).map((s) => isNaN(s) ? 0 : s ?? 0), n = a.reduce((s, l) => s + l, 0);
91
91
  return {
92
92
  ...t,
93
93
  values: t.values || [],
94
- color: Ae(t.color) || ue.value[o] || $[o] || $[o % $.length],
94
+ color: Ae(t.color) || se.value[o] || $[o] || $[o % $.length],
95
95
  sum: n,
96
96
  average: n / a.length,
97
97
  median: $e(a),
98
- sparklineDataset: a.map((u, l) => ({
98
+ sparklineDataset: a.map((s, l) => ({
99
99
  period: e.value.colNames[l] || `col ${l}`,
100
- value: u || 0
100
+ value: s || 0
101
101
  }))
102
102
  };
103
103
  })));
104
104
  function re(t) {
105
105
  const a = (t[0].values || []).map(
106
- (u, l) => t.map((f) => f.values[l] || [])
106
+ (s, l) => t.map((f) => f.values[l] || [])
107
107
  ).map(
108
- (u) => u.map((l, f) => [l, f]).sort((l, f) => f[0] - l[0]).map((l) => l[1])
108
+ (s) => s.map((l, f) => [l, f]).sort((l, f) => f[0] - l[0]).map((l) => l[1])
109
109
  );
110
- return t.map((u, l) => ({
111
- ...u,
112
- values: u.values || [],
110
+ return t.map((s, l) => ({
111
+ ...s,
112
+ values: s.values || [],
113
113
  orders: a[l]
114
114
  }));
115
115
  }
@@ -121,8 +121,8 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
121
121
  W.value = !0, T.value = t;
122
122
  const o = y.value.map((l) => l.values[t] || []), a = S.value === t ? 1 : -1;
123
123
  M.value = a, t === S.value ? S.value = void 0 : S.value = t;
124
- const u = o.map((l, f) => [f, l]).sort((l, f) => a * (f[1] - l[1])).map((l) => l[0]).map((l) => y.value[l]);
125
- _.value = u, I.value += 1;
124
+ const s = o.map((l, f) => [f, l]).sort((l, f) => a * (f[1] - l[1])).map((l) => l[0]).map((l) => y.value[l]);
125
+ _.value = s, w.value += 1;
126
126
  }
127
127
  const Y = h(() => Math.max(...g.dataset.map((t) => (t.values || []).length))), k = h(() => {
128
128
  let t = D.value;
@@ -142,16 +142,16 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
142
142
  }
143
143
  const Z = d(!1);
144
144
  function ce(t) {
145
- Z.value = t, R.value += 1;
145
+ Z.value = t, L.value += 1;
146
146
  }
147
147
  function j() {
148
148
  ye(() => {
149
- const t = [e.value.translations.serie].concat(k.value), o = K.value.map((u, l) => [
150
- [u.name],
151
- u.values,
152
- [u.sum],
153
- [u.average],
154
- [u.median]
149
+ const t = [e.value.translations.serie].concat(k.value), o = K.value.map((s, l) => [
150
+ [s.name],
151
+ s.values,
152
+ [s.sum],
153
+ [s.average],
154
+ [s.median]
155
155
  ]), a = [t].concat(o), n = Pe(a);
156
156
  ze({
157
157
  csvContent: n,
@@ -164,9 +164,9 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
164
164
  generateImage: X,
165
165
  generateCsv: j,
166
166
  restoreOrder: Q
167
- }), (t, o) => (s(), i("div", {
167
+ }), (t, o) => (u(), i("div", {
168
168
  ref_key: "tableContainer",
169
- ref: w,
169
+ ref: I,
170
170
  class: V({ "vue-ui-responsive": N.value }),
171
171
  style: { overflow: "hidden" },
172
172
  id: `table_${O.value}`
@@ -181,7 +181,7 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
181
181
  class: "vue-ui-data-table",
182
182
  style: r({ fontFamily: e.value.fontFamily, position: "relative" })
183
183
  }, [
184
- e.value.title.text ? (s(), i("caption", {
184
+ e.value.title.text ? (u(), i("caption", {
185
185
  key: 0,
186
186
  style: r({ backgroundColor: e.value.title.backgroundColor })
187
187
  }, [
@@ -193,7 +193,7 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
193
193
  textAlign: e.value.title.textAlign
194
194
  })
195
195
  }, b(e.value.title.text), 5),
196
- e.value.title.subtitle.text ? (s(), i("div", {
196
+ e.value.title.subtitle.text ? (u(), i("div", {
197
197
  key: 0,
198
198
  style: r({
199
199
  fontSize: `${e.value.title.subtitle.fontSize}px`,
@@ -204,7 +204,7 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
204
204
  }, b(e.value.title.subtitle.text), 5)) : p("", !0)
205
205
  ], 4)) : p("", !0),
206
206
  c("thead", Ve, [
207
- be((s(), i("tr", {
207
+ be((u(), i("tr", {
208
208
  role: "row",
209
209
  class: "vue-ui-data-table__thead-row",
210
210
  style: r({
@@ -222,14 +222,14 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
222
222
  }),
223
223
  class: "sticky-col-first"
224
224
  }, b(e.value.translations.serie), 5),
225
- (s(!0), i(E, null, G(k.value, (a, n) => (s(), i("th", {
225
+ (u(!0), i(E, null, G(k.value, (a, n) => (u(), i("th", {
226
226
  role: "cell",
227
227
  style: r({
228
228
  background: e.value.thead.backgroundColor,
229
229
  border: e.value.thead.outline,
230
230
  textAlign: e.value.thead.textAlign,
231
231
  fontWeight: e.value.thead.bold ? "bold" : "normal",
232
- minWidth: n === k.value.length - 1 ? "150px" : "48px",
232
+ minWidth: n === k.value.length - 1 ? `${e.value.sparkline.dimensions.width}px` : "48px",
233
233
  cursor: y.value[0].values[n] !== void 0 ? "pointer" : "default",
234
234
  paddingRight: n === k.value.length - 1 && e.value.userOptions.show ? "36px" : ""
235
235
  }),
@@ -246,17 +246,17 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
246
246
  })
247
247
  }, [
248
248
  c("span", null, b(a), 1),
249
- W.value && n === T.value && y.value[0].values[n] !== void 0 ? (s(), L(Fe, {
249
+ W.value && n === T.value && y.value[0].values[n] !== void 0 ? (u(), R(Fe, {
250
250
  key: 0,
251
251
  size: 18,
252
252
  name: M.value === 1 ? "sort" : "sortReverse",
253
253
  stroke: e.value.thead.color
254
254
  }, null, 8, ["name", "stroke"])) : p("", !0)
255
255
  ], 4),
256
- e.value.userOptions.show && n === k.value.length - 1 ? (s(), L(De, {
256
+ e.value.userOptions.show && n === k.value.length - 1 ? (u(), R(De, {
257
257
  ref_for: !0,
258
258
  ref: "details",
259
- key: `user_option_${R.value}`,
259
+ key: `user_option_${L.value}`,
260
260
  backgroundColor: e.value.thead.backgroundColor,
261
261
  color: e.value.thead.color,
262
262
  isPrinting: v(U),
@@ -268,7 +268,7 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
268
268
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
269
269
  isFullscreen: Z.value,
270
270
  titles: { ...e.value.userOptions.buttonTitles },
271
- chartElement: w.value,
271
+ chartElement: I.value,
272
272
  position: e.value.userOptions.position,
273
273
  onToggleFullscreen: ce,
274
274
  onGeneratePdf: v(q),
@@ -298,8 +298,8 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
298
298
  } : void 0,
299
299
  t.$slots.optionFullscreen ? {
300
300
  name: "optionFullscreen",
301
- fn: A(({ toggleFullscreen: u, isFullscreen: l }) => [
302
- C(t.$slots, "optionFullscreen", me(he({ toggleFullscreen: u, isFullscreen: l })), void 0, !0)
301
+ fn: A(({ toggleFullscreen: s, isFullscreen: l }) => [
302
+ C(t.$slots, "optionFullscreen", me(he({ toggleFullscreen: s, isFullscreen: l })), void 0, !0)
303
303
  ]),
304
304
  key: "3"
305
305
  } : void 0
@@ -310,7 +310,7 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
310
310
  ])
311
311
  ]),
312
312
  c("tbody", null, [
313
- (s(!0), i(E, null, G(_.value, (a, n) => (s(), i("tr", {
313
+ (u(!0), i(E, null, G(_.value, (a, n) => (u(), i("tr", {
314
314
  role: "row",
315
315
  style: r({
316
316
  backgroundColor: e.value.tbody.backgroundColor,
@@ -340,14 +340,14 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
340
340
  justifyContent: e.value.tbody.textAlign
341
341
  })
342
342
  }, [
343
- e.value.tbody.showColorMarker ? (s(), i("span", {
343
+ e.value.tbody.showColorMarker ? (u(), i("span", {
344
344
  key: 0,
345
345
  style: r({ color: a.color })
346
346
  }, "⬤", 4)) : p("", !0),
347
347
  c("span", null, b(a.name ?? "-"), 1)
348
348
  ], 4)
349
349
  ], 12, Ge),
350
- (s(!0), i(E, null, G(ie.value, (u, l) => (s(), i("td", {
350
+ (u(!0), i(E, null, G(ie.value, (s, l) => (u(), i("td", {
351
351
  dir: "auto",
352
352
  role: "cell",
353
353
  ref_for: !0,
@@ -376,8 +376,8 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
376
376
  r: e.value.roundingValues
377
377
  }),
378
378
  { datapoint: a, seriesIndex: n, datapointIndex: l }
379
- )), 45, Le))), 256)),
380
- e.value.showTotal ? (s(), i("td", {
379
+ )), 45, Re))), 256)),
380
+ e.value.showTotal ? (u(), i("td", {
381
381
  key: 0,
382
382
  dir: "auto",
383
383
  role: "cell",
@@ -399,8 +399,8 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
399
399
  r: e.value.roundingTotal
400
400
  }),
401
401
  { datapoint: a.sum, seriesIndex: n }
402
- )), 13, Re)) : p("", !0),
403
- e.value.showAverage ? (s(), i("td", {
402
+ )), 13, Le)) : p("", !0),
403
+ e.value.showAverage ? (u(), i("td", {
404
404
  key: 1,
405
405
  dir: "auto",
406
406
  role: "cell",
@@ -423,7 +423,7 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
423
423
  }),
424
424
  { datapoint: a.average, seriesIndex: n }
425
425
  )), 13, Be)) : p("", !0),
426
- e.value.showMedian ? (s(), i("td", {
426
+ e.value.showMedian ? (u(), i("td", {
427
427
  key: 2,
428
428
  dir: "auto",
429
429
  role: "cell",
@@ -446,7 +446,7 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
446
446
  }),
447
447
  { datapoint: a.median, seriesIndex: n }
448
448
  )), 13, Ue)) : p("", !0),
449
- e.value.showSparklines ? (s(), i("td", {
449
+ e.value.showSparklines ? (u(), i("td", {
450
450
  key: 3,
451
451
  role: "cell",
452
452
  "data-cell": e.value.translations.chart,
@@ -460,16 +460,18 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
460
460
  }),
461
461
  class: "vue-ui-data-table__tbody__td sticky-col"
462
462
  }, [
463
- (s(), L(Oe, {
464
- key: `sparkline_${n}_${I.value}`,
465
- onHoverIndex: ({ index: u }) => ve({ dataIndex: u, serieIndex: n }),
463
+ (u(), R(Oe, {
464
+ key: `sparkline_${n}_${w.value}`,
465
+ onHoverIndex: ({ index: s }) => ve({ dataIndex: s, serieIndex: n }),
466
+ "height-ratio": e.value.sparkline.dimensions.heightRatio,
467
+ "forced-padding": 30,
466
468
  dataset: a.sparklineDataset,
467
469
  showInfo: !1,
468
470
  selectedIndex: m.value,
469
471
  config: {
470
472
  type: e.value.sparkline.type,
471
473
  style: {
472
- backgroundColor: e.value.tbody.backgroundColor,
474
+ backgroundColor: "transparent",
473
475
  animation: {
474
476
  show: e.value.sparkline.animation.show && !v(U) && !v(H),
475
477
  animationFrames: e.value.sparkline.animation.animationFrames
@@ -497,18 +499,18 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
497
499
  }
498
500
  }
499
501
  }
500
- }, null, 8, ["onHoverIndex", "dataset", "selectedIndex", "config"]))
502
+ }, null, 8, ["onHoverIndex", "height-ratio", "dataset", "selectedIndex", "config"]))
501
503
  ], 12, He)) : p("", !0)
502
504
  ], 6))), 256))
503
505
  ])
504
506
  ], 4)
505
507
  ], 32),
506
- t.$slots.source ? (s(), i("div", qe, [
508
+ t.$slots.source ? (u(), i("div", qe, [
507
509
  C(t.$slots, "source", {}, void 0, !0)
508
510
  ], 512)) : p("", !0)
509
511
  ], 10, Me));
510
512
  }
511
- }, tt = /* @__PURE__ */ Te(Xe, [["__scopeId", "data-v-7bd49c24"]]);
513
+ }, tt = /* @__PURE__ */ Te(Xe, [["__scopeId", "data-v-df1c4c1d"]]);
512
514
  export {
513
515
  tt as default
514
516
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-B4dbEeod.cjs"),L=require("./useNestedProp-uYy3UrlZ.cjs"),Q=require("./vue-ui-sparkline-Be1dXlA9.cjs"),Y=require("./BaseIcon-LzZNzC-k.cjs"),B=require("./usePrinter-ucBlOzo2.cjs"),Z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),j=["id"],ee={style:{"z-index":"1","padding-right":"24px"}},te=["onClick"],le=["data-cell"],ae=["data-cell","onPointerenter"],oe=["data-cell"],ne=["data-cell"],re=["data-cell"],ue=["data-cell"],se={key:0,ref:"source",dir:"auto"},ie={__name:"vue-ui-table-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:M}){const d=T;e.useCssVars(l=>({"1f14fe1a":l.tdo}));const{vue_ui_table_sparkline:G}=s.useConfig(),h=e.ref(s.createUid()),z=e.ref(0),b=e.ref(0),k=e.ref(null),t=e.computed({get:()=>I(),set:l=>l});function I(){const l=L.useNestedProp({userConfig:d.config,defaultConfig:G});return l.theme?{...L.useNestedProp({userConfig:s.themes.vue_ui_table_sparkline[l.theme]||d.config,defaultConfig:l}),customPalette:s.themePalettes[l.theme]||s.palette}:l}e.watch(()=>d.config,l=>{t.value=I(),$(),b.value+=1},{deep:!0}),e.watch(()=>d.dataset,l=>{m.value=v.value,b.value+=1},{deep:!0});const{isPrinting:N,isImaging:A,generatePdf:E,generateImage:V}=B.usePrinter({elementId:`table_${h.value}`,fileName:t.value.title.text||"vue-ui-table-sparkline"}),q=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),g=e.ref(null),_=e.ref(!1),R=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{$()});const x=e.ref(t.value.colNames);function $(){s.objectIsEmpty(d.dataset)&&s.error({componentName:"VueUiTableSparkline",type:"dataset"});const l=new ResizeObserver(n=>{n.forEach(a=>{_.value=a.contentRect.width<R.value})});g.value&&l.observe(g.value),x.value=[];for(let n=0;n<F.value;n+=1)x.value.push(t.value.colNames[n]||`col ${n}`)}const D=e.computed(()=>(d.dataset.forEach((l,n)=>{s.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{s.error({componentName:"VueUiTableSparkline",type:"datasetSerieAttribute",property:a,index:n})})}),d.dataset.map((l,n)=>{const a=(l.values||[]).map(u=>isNaN(u)?0:u??0),r=a.reduce((u,o)=>u+o,0);return{...l,values:l.values||[],color:s.convertColorToHex(l.color)||q.value[n]||s.palette[n]||s.palette[n%s.palette.length],sum:r,average:r/a.length,median:s.calcMedian(a),sparklineDataset:a.map((u,o)=>({period:t.value.colNames[o]||`col ${o}`,value:u||0}))}})));function U(l){const a=(l[0].values||[]).map((u,o)=>l.map(i=>i.values[o]||[])).map(u=>u.map((o,i)=>[o,i]).sort((o,i)=>i[0]-o[0]).map(o=>o[1]));return l.map((u,o)=>({...u,values:u.values||[],orders:a[o]}))}const v=e.computed(()=>U(D.value)),m=e.ref(v.value),H=e.computed(()=>Math.max(...m.value.map(l=>(l.values||[]).length))),y=e.ref(void 0),C=e.ref(!1),S=e.ref(void 0),w=e.ref(-1);function P(){C.value=!1,S.value=void 0,w.value=-1,m.value=v.value}function X(l){C.value=!0,S.value=l;const n=v.value.map(o=>o.values[l]||[]),a=y.value===l?1:-1;w.value=a,l===y.value?y.value=void 0:y.value=l;const u=n.map((o,i)=>[i,o]).sort((o,i)=>a*(i[1]-o[1])).map(o=>o[0]).map(o=>v.value[o]);m.value=u,b.value+=1}const F=e.computed(()=>Math.max(...d.dataset.map(l=>(l.values||[]).length))),p=e.computed(()=>{let l=x.value;if(!l.length)for(let a=0;a<F.value;a+=1)l.push(`col ${a+1}`);t.value.showTotal&&(l=[...l,t.value.translations.total]);let n;return t.value.showAverage&&t.value.showMedian?n=[...l,t.value.translations.average,t.value.translations.median]:t.value.showAverage&&!t.value.showMedian?n=[...l,t.value.translations.average]:!t.value.showAverage&&t.value.showMedian?n=[...l,t.value.translations.median]:n=l,t.value.showSparklines?[...n,t.value.translations.chart]:n}),c=e.ref(void 0),f=e.ref(void 0);function J({dataIndex:l,serieIndex:n}){c.value=l,f.value=n,k.value[l]&&!_.value&&k.value[l].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}const O=e.ref(!1);function K(l){O.value=l,z.value+=1}function W(){e.nextTick(()=>{const l=[t.value.translations.serie].concat(p.value),n=D.value.map((u,o)=>[[u.name],u.values,[u.sum],[u.average],[u.median]]),a=[l].concat(n),r=s.createCsvContent(a);s.downloadCsv({csvContent:r,title:t.value.title.text||"vue-ui-table-sparkline"})})}return M({generatePdf:E,generateImage:V,generateCsv:W,restoreOrder:P}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:g,class:e.normalizeClass({"vue-ui-responsive":_.value}),style:{overflow:"hidden"},id:`table_${h.value}`},[e.createElementVNode("div",{style:{overflow:"auto"},onPointerleave:n[0]||(n[0]=a=>{f.value=void 0,c.value=void 0})},[e.createElementVNode("table",{class:"vue-ui-data-table",style:e.normalizeStyle({fontFamily:t.value.fontFamily,position:"relative"})},[t.value.title.text?(e.openBlock(),e.createElementBlock("caption",{key:0,style:e.normalizeStyle({backgroundColor:t.value.title.backgroundColor})},[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:`${t.value.title.fontSize}px`,fontWeight:t.value.title.bold?"bold":"normal",color:t.value.title.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.text),5),t.value.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({fontSize:`${t.value.title.subtitle.fontSize}px`,fontWeight:t.value.title.subtitle.bold?"bold":"normal",color:t.value.title.subtitle.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("thead",ee,[e.withDirectives((e.openBlock(),e.createElementBlock("tr",{role:"row",class:"vue-ui-data-table__thead-row",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color})},[e.createElementVNode("th",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,border:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal"}),class:"sticky-col-first"},e.toDisplayString(t.value.translations.serie),5),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(a,r)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",style:e.normalizeStyle({background:t.value.thead.backgroundColor,border:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal",minWidth:r===p.value.length-1?`${t.value.sparkline.dimensions.width}px`:"48px",cursor:v.value[0].values[r]!==void 0?"pointer":"default",paddingRight:r===p.value.length-1&&t.value.userOptions.show?"36px":""}),onClick:()=>X(r),class:e.normalizeClass({"sticky-col":r===p.value.length-1&&t.value.showSparklines})},[e.createElementVNode("div",{style:e.normalizeStyle({display:"flex",flexDirection:"row",alignItems:"center",gap:"6px",justifyContent:t.value.thead.textAlign})},[e.createElementVNode("span",null,e.toDisplayString(a),1),C.value&&r===S.value&&v.value[0].values[r]!==void 0?(e.openBlock(),e.createBlock(Y.default,{key:0,size:18,name:w.value===1?"sort":"sortReverse",stroke:t.value.thead.color},null,8,["name","stroke"])):e.createCommentVNode("",!0)],4),t.value.userOptions.show&&r===p.value.length-1?(e.openBlock(),e.createBlock(B.UserOptions,{ref_for:!0,ref:"details",key:`user_option_${z.value}`,backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color,isPrinting:e.unref(N),isImaging:e.unref(A),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:O.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,onToggleFullscreen:K,onGeneratePdf:e.unref(E),onGenerateImage:e.unref(V),onGenerateCsv:W},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.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:u,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:u,isFullscreen:o})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0)],14,te))),256))],4)),[[e.unref(B.vClickOutside),P]])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(a,r)=>(e.openBlock(),e.createElementBlock("tr",{role:"row",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,color:t.value.tbody.color}),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})},[e.createElementVNode("td",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.serie,class:"vue-ui-data-table__tbody__td sticky-col-first"},[e.createElementVNode("div",{dir:"auto",style:e.normalizeStyle({display:"flex",flexDirection:"row",alignItems:"center",gap:"6px",justifyContent:t.value.tbody.textAlign})},[t.value.tbody.showColorMarker?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle({color:a.color})},"⬤",4)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(a.name??"-"),1)],4)],12,le),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(u,o)=>(e.openBlock(),e.createElementBlock("td",{dir:"auto",role:"cell",ref_for:!0,ref_key:"TD",ref:k,style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign,background:c.value!==void 0&&o===c.value?t.value.tbody.selectedColor.useSerieColor?`${a.color.length>7?a.color.slice(0,-2):a.color}33`:t.value.tbody.selectedColor.fallback:"",borderRadius:c.value!==void 0&&f.value!==void 0&&o===c.value&&f.value===r?"3px":""}),"data-cell":p.value[o],class:"vue-ui-data-table__tbody__td",onPointerenter:i=>{f.value=r,c.value=o}},e.toDisplayString([null,void 0].includes(a.values[o])?"-":e.unref(s.applyDataLabel)(t.value.formatter,Number(a.values[o]),e.unref(s.dataLabel)({p:t.value.prefix,v:Number(a.values[o]),s:t.value.suffix,r:t.value.roundingValues}),{datapoint:a,seriesIndex:r,datapointIndex:o})),45,ae))),256)),t.value.showTotal?(e.openBlock(),e.createElementBlock("td",{key:0,dir:"auto",role:"cell",style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.total,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.formatter,a.sum,e.unref(s.dataLabel)({p:t.value.prefix,v:a.sum,s:t.value.suffix,r:t.value.roundingTotal}),{datapoint:a.sum,seriesIndex:r})),13,oe)):e.createCommentVNode("",!0),t.value.showAverage?(e.openBlock(),e.createElementBlock("td",{key:1,dir:"auto",role:"cell",style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.average,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.formatter,a.average,e.unref(s.dataLabel)({p:t.value.prefix,v:a.average,s:t.value.suffix,r:t.value.roundingAverage}),{datapoint:a.average,seriesIndex:r})),13,ne)):e.createCommentVNode("",!0),t.value.showMedian?(e.openBlock(),e.createElementBlock("td",{key:2,dir:"auto",role:"cell",style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.median,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.formatter,a.median,e.unref(s.dataLabel)({p:t.value.prefix,v:a.median,s:t.value.suffix,r:t.value.roundingMedian}),{datapoint:a.median,seriesIndex:r})),13,re)):e.createCommentVNode("",!0),t.value.showSparklines?(e.openBlock(),e.createElementBlock("td",{key:3,role:"cell","data-cell":t.value.translations.chart,style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign,backgroundColor:t.value.tbody.backgroundColor,padding:"0"}),class:"vue-ui-data-table__tbody__td sticky-col"},[(e.openBlock(),e.createBlock(Q.default,{key:`sparkline_${r}_${b.value}`,onHoverIndex:({index:u})=>J({dataIndex:u,serieIndex:r}),"height-ratio":t.value.sparkline.dimensions.heightRatio,"forced-padding":30,dataset:a.sparklineDataset,showInfo:!1,selectedIndex:c.value,config:{type:t.value.sparkline.type,style:{backgroundColor:"transparent",animation:{show:t.value.sparkline.animation.show&&!e.unref(N)&&!e.unref(A),animationFrames:t.value.sparkline.animation.animationFrames},line:{color:a.color,smooth:t.value.sparkline.smooth,strokeWidth:t.value.sparkline.strokeWidth},bar:{color:a.color},area:{color:a.color,opacity:t.value.sparkline.showArea?16:0,useGradient:t.value.sparkline.useGradient},verticalIndicator:{color:a.color},plot:{radius:9,stroke:t.value.tbody.backgroundColor,strokeWidth:3}}}},null,8,["onHoverIndex","height-ratio","dataset","selectedIndex","config"]))],12,ue)):e.createCommentVNode("",!0)],6))),256))])],4)],32),l.$slots.source?(e.openBlock(),e.createElementBlock("div",se,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],10,j))}},de=Z._export_sfc(ie,[["__scopeId","data-v-df1c4c1d"]]);exports.default=de;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-kERGTkcX.cjs"),Q=require("./Title-0iC4gElN.cjs"),A=require("./usePrinter-IEjSf9Zq.cjs"),Z=require("./vue-ui-skeleton-D2ANHIIV.cjs"),T=require("./useNestedProp-C01Nxqp-.cjs"),ee=require("./PackageVersion-D7UEx2nV.cjs"),te=require("./PenAndPaper-C1dGfWPA.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),le=["id"],re={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ae={key:2,style:"width:100%"},se=["xmlns","viewBox"],ne={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},ue=["fill"],ce=["id"],ie=["stop-color"],de=["stop-color"],he=["stop-color"],ve={"clip-path":"url(#vueUiPill)"},me=["x","y","height","width"],pe=["x","y","height","width","fill"],ye=["x1","x2","y1","y2","stroke-width","stroke"],fe=["x1","x2","y1","y2","stroke-width","stroke"],ke=["x1","x2","y1","y2","stroke-width","stroke"],ge=["x1","x2","y1","y2","stroke-width","stroke"],xe=["x1","x2","y1","y2","stroke-width","stroke"],be=["x1","x2","y1","y2","stroke-width","stroke"],_e=["x1","x2","y1","y2","stroke-width","stroke"],Ce=["x1","x2","y1","y2","stroke-width","stroke"],we=["x","y","height","width"],Ne=["y","x","fill","font-size","font-weight"],Be={key:5,class:"vue-data-ui-watermark"},Pe={key:6,ref:"source",dir:"auto"},Ve={__name:"vue-ui-thermometer",props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},setup(m,{expose:Y}){const s=m;e.useCssVars(l=>({"000db494":H.value,"2865ccd0":W.value,10843485:G.value}));const{vue_ui_thermometer:M}=r.useConfig(),k=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{B()});function B(){r.objectIsEmpty(s.dataset)?r.error({componentName:"VueUiThermometer",type:"dataset"}):r.getMissingDatasetAttributes({datasetObject:s.dataset,requiredAttributes:["value","from","to"]}).forEach(l=>{r.error({componentName:"VueUiThermometer",type:"datasetAttribute",property:l})})}const d=e.ref(r.createUid()),g=e.ref(null),P=e.ref(0),V=e.ref(0),t=e.computed({get:()=>E(),set:l=>l});function E(){const l=T.useNestedProp({userConfig:s.config,defaultConfig:M});return l.theme?{...T.useNestedProp({userConfig:r.themes.vue_ui_thermometer[l.theme]||s.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>s.config,l=>{t.value=E(),B(),V.value+=1},{deep:!0});const{isPrinting:$,isImaging:F,generatePdf:I,generateImage:q}=A.usePrinter({elementId:`thermometer__${d.value}`,fileName:t.value.style.title.text||"vue-ui-thermometer"}),z=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),p=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),L=e.computed(()=>t.value.style.chart.thermometer.width),i=e.computed(()=>s.dataset.steps||10),c=e.ref({top:t.value.style.chart.padding.top,left:t.value.style.chart.padding.left,right:t.value.style.chart.padding.right,bottom:t.value.style.chart.padding.bottom});function y(l,u,o){const n=[],w=S(l),N=S(u);for(let v=0;v<o;v++){const R=x(w.red,N.red,v,o),X=x(w.green,N.green,v,o),J=x(w.blue,N.blue,v,o),K=`#${b(R)}${b(X)}${b(J)}`;n.push(K)}return n}function S(l){const u=l.slice(1);return{red:parseInt(u.slice(0,2),16),green:parseInt(u.slice(2,4),16),blue:parseInt(u.slice(4,6),16)}}function x(l,u,o,n){return Math.round(l+(u-l)*o/n)}function b(l){return l.toString(16).padStart(2,"0")}const a=e.computed(()=>{const l=L.value+c.value.left+c.value.right,u=t.value.style.chart.height;return{width:l,left:c.value.left,right:l-c.value.right,top:c.value.top,bottom:u-c.value.bottom,height:u}}),U=e.computed(()=>a.value),_=e.computed(()=>{const l=r.checkNaN(s.dataset.from)<0?Math.abs(r.checkNaN(s.dataset.from)):r.checkNaN(s.dataset.from),u=r.checkNaN(s.dataset.to)<0?Math.abs(r.checkNaN(s.dataset.to)):r.checkNaN(s.dataset.to);let o=0;return r.checkNaN(s.dataset.to)>0?o=l+u:l>u?o=l-u:o=u-l,(1-(Math.abs(r.checkNaN(s.dataset.from))+r.checkNaN(s.dataset.value))/o)*(a.value.height-c.value.top-c.value.bottom)}),G=e.computed(()=>`${_.value}px`),W=e.computed(()=>`${a.value.height-t.value.style.chart.padding.bottom-c.value.top}px`),H=e.computed(()=>`${t.value.style.chart.animation.speedMs}ms`),j=e.computed(()=>{if(s.dataset.colors){if(!s.dataset.colors.from)return y(p.value[0]||r.palette[0],r.convertColorToHex(s.dataset.colors.to),i.value||10);if(!s.dataset.colors.to)return y(r.convertColorToHex(s.dataset.colors.from),p.value[1]||r.palette[1],i.value||10)}else return y(p.value[1]||r.palette[1],p.value[0]||r.palette[0],i.value||10);return y(r.convertColorToHex(s.dataset.colors.from),r.convertColorToHex(s.dataset.colors.to),i.value||10)}),O=e.computed(()=>{const l=[];let u=0;const o=a.value.height-c.value.top-c.value.bottom;for(let n=0;n<o-1;n+=o/i.value)l.push({x:a.value.left,y:a.value.top+n,qYLess:a.value.top+n+o/i.value/4,halfY:a.value.top+n+o/i.value/2,qYMore:a.value.top+n+o/i.value/4*3,color:j.value[u],height:o/i.value}),u+=1;return l}),h=e.ref(!1);function D(l){h.value=l,P.value+=1}const f=e.ref(!1);function C(){f.value=!f.value}return Y({generatePdf:I,generateImage:q,toggleAnnotator:C}),(l,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:g,class:e.normalizeClass(`vue-ui-thermometer ${h.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}`),id:`thermometer__${d.value}`},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(te.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:C},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createElementBlock("div",re,null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",ae,[(e.openBlock(),e.createBlock(Q._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"thermometer-div-title",...t.value.style.title},subtitle:{cy:"thermometer-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&k.value?(e.openBlock(),e.createBlock(A.UserOptions,{ref:"details",key:`user_options_${P.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(F),isPrinting:e.unref($),uid:d.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,onToggleFullscreen:D,onGeneratePdf:e.unref(I),onGenerateImage:e.unref(q),onToggleAnnotator:C},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:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"2"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),width:"100%",viewBox:`0 0 ${a.value.width} ${a.value.height}`,style:"background:transparent"},[e.createVNode(ee._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",ne,[e.createElementVNode("rect",{x:"0",y:"0",width:"1",height:"1",rx:"0.5",ry:"0.07",fill:t.value.style.chart.backgroundColor},null,8,ue)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,(o,n)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`vueUiThermometerGradient_${n}_${d.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,ie),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(r.setOpacity)(o.color,100-t.value.style.chart.graduations.gradient.intensity)},null,8,de),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,he)],8,ce))),256))]),e.createElementVNode("g",ve,[e.createElementVNode("rect",{x:a.value.left,y:a.value.top,height:a.value.height-c.value.top-c.value.bottom,width:a.value.width-c.value.left-c.value.right,fill:"#FFFFFF"},null,8,me),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",{key:`graduation_${n}`},[e.createElementVNode("rect",{x:o.x,y:o.y,height:o.height,width:a.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:t.value.style.chart.graduations.gradient.show?`url(#vueUiThermometerGradient_${n}_${d.value})`:o.color,"shape-rendering":"crispEdges"},null,8,pe),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ye)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,fe)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:o.x,x2:o.x+2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ke)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:o.x,x2:o.x+2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ge)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.value.right,x2:a.value.right-10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,xe)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.value.right,x2:a.value.right-5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,be)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:a.value.right,x2:a.value.right-2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,_e)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.value.right,x2:a.value.right-2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Ce)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("rect",{class:e.normalizeClass({"vue-ui-thermometer-temperature":t.value.style.chart.animation.use}),x:a.value.left,y:a.value.top,height:_.value,width:a.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:"#FFFFFF66"},null,10,we)]),e.createElementVNode("text",{class:e.normalizeClass({"vue-ui-thermometer-temperature-value":t.value.style.chart.animation.use}),y:_.value+a.value.top+t.value.style.chart.label.fontSize/3,x:a.value.left-10,"text-anchor":"end",fill:t.value.style.chart.label.color,"font-size":t.value.style.chart.label.fontSize,"font-weight":t.value.style.chart.label.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.label.formatter,m.dataset.value,e.unref(r.dataLabel)({p:t.value.style.chart.label.prefix,v:m.dataset.value,s:t.value.style.chart.label.suffix,r:t.value.style.chart.label.rounding}),{datapoint:m.dataset})),11,Ne),e.renderSlot(l.$slots,"svg",{svg:U.value},void 0,!0)],10,se)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Be,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref($)||e.unref(F)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",Pe,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Z.default,{key:7,config:{type:"thermometer",style:{backgroundColor:t.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],14,le))}},Ee=oe._export_sfc(Ve,[["__scopeId","data-v-8a73571f"]]);exports.default=Ee;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-B4dbEeod.cjs"),Q=require("./Title-CZ0mh7PE.cjs"),A=require("./usePrinter-ucBlOzo2.cjs"),Z=require("./vue-ui-skeleton-4l6lQhDp.cjs"),T=require("./useNestedProp-uYy3UrlZ.cjs"),ee=require("./PackageVersion-BVorXRgA.cjs"),te=require("./PenAndPaper-2ioTztzj.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),le=["id"],re={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ae={key:2,style:"width:100%"},se=["xmlns","viewBox"],ne={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},ue=["fill"],ce=["id"],ie=["stop-color"],de=["stop-color"],he=["stop-color"],ve={"clip-path":"url(#vueUiPill)"},me=["x","y","height","width"],pe=["x","y","height","width","fill"],ye=["x1","x2","y1","y2","stroke-width","stroke"],fe=["x1","x2","y1","y2","stroke-width","stroke"],ke=["x1","x2","y1","y2","stroke-width","stroke"],ge=["x1","x2","y1","y2","stroke-width","stroke"],xe=["x1","x2","y1","y2","stroke-width","stroke"],be=["x1","x2","y1","y2","stroke-width","stroke"],_e=["x1","x2","y1","y2","stroke-width","stroke"],Ce=["x1","x2","y1","y2","stroke-width","stroke"],we=["x","y","height","width"],Ne=["y","x","fill","font-size","font-weight"],Be={key:5,class:"vue-data-ui-watermark"},Pe={key:6,ref:"source",dir:"auto"},Ve={__name:"vue-ui-thermometer",props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},setup(m,{expose:Y}){const s=m;e.useCssVars(l=>({"000db494":H.value,"2865ccd0":W.value,10843485:G.value}));const{vue_ui_thermometer:M}=r.useConfig(),k=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{B()});function B(){r.objectIsEmpty(s.dataset)?r.error({componentName:"VueUiThermometer",type:"dataset"}):r.getMissingDatasetAttributes({datasetObject:s.dataset,requiredAttributes:["value","from","to"]}).forEach(l=>{r.error({componentName:"VueUiThermometer",type:"datasetAttribute",property:l})})}const d=e.ref(r.createUid()),g=e.ref(null),P=e.ref(0),V=e.ref(0),t=e.computed({get:()=>E(),set:l=>l});function E(){const l=T.useNestedProp({userConfig:s.config,defaultConfig:M});return l.theme?{...T.useNestedProp({userConfig:r.themes.vue_ui_thermometer[l.theme]||s.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>s.config,l=>{t.value=E(),B(),V.value+=1},{deep:!0});const{isPrinting:$,isImaging:F,generatePdf:I,generateImage:q}=A.usePrinter({elementId:`thermometer__${d.value}`,fileName:t.value.style.title.text||"vue-ui-thermometer"}),z=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),p=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),L=e.computed(()=>t.value.style.chart.thermometer.width),i=e.computed(()=>s.dataset.steps||10),c=e.ref({top:t.value.style.chart.padding.top,left:t.value.style.chart.padding.left,right:t.value.style.chart.padding.right,bottom:t.value.style.chart.padding.bottom});function y(l,u,o){const n=[],w=S(l),N=S(u);for(let v=0;v<o;v++){const R=x(w.red,N.red,v,o),X=x(w.green,N.green,v,o),J=x(w.blue,N.blue,v,o),K=`#${b(R)}${b(X)}${b(J)}`;n.push(K)}return n}function S(l){const u=l.slice(1);return{red:parseInt(u.slice(0,2),16),green:parseInt(u.slice(2,4),16),blue:parseInt(u.slice(4,6),16)}}function x(l,u,o,n){return Math.round(l+(u-l)*o/n)}function b(l){return l.toString(16).padStart(2,"0")}const a=e.computed(()=>{const l=L.value+c.value.left+c.value.right,u=t.value.style.chart.height;return{width:l,left:c.value.left,right:l-c.value.right,top:c.value.top,bottom:u-c.value.bottom,height:u}}),U=e.computed(()=>a.value),_=e.computed(()=>{const l=r.checkNaN(s.dataset.from)<0?Math.abs(r.checkNaN(s.dataset.from)):r.checkNaN(s.dataset.from),u=r.checkNaN(s.dataset.to)<0?Math.abs(r.checkNaN(s.dataset.to)):r.checkNaN(s.dataset.to);let o=0;return r.checkNaN(s.dataset.to)>0?o=l+u:l>u?o=l-u:o=u-l,(1-(Math.abs(r.checkNaN(s.dataset.from))+r.checkNaN(s.dataset.value))/o)*(a.value.height-c.value.top-c.value.bottom)}),G=e.computed(()=>`${_.value}px`),W=e.computed(()=>`${a.value.height-t.value.style.chart.padding.bottom-c.value.top}px`),H=e.computed(()=>`${t.value.style.chart.animation.speedMs}ms`),j=e.computed(()=>{if(s.dataset.colors){if(!s.dataset.colors.from)return y(p.value[0]||r.palette[0],r.convertColorToHex(s.dataset.colors.to),i.value||10);if(!s.dataset.colors.to)return y(r.convertColorToHex(s.dataset.colors.from),p.value[1]||r.palette[1],i.value||10)}else return y(p.value[1]||r.palette[1],p.value[0]||r.palette[0],i.value||10);return y(r.convertColorToHex(s.dataset.colors.from),r.convertColorToHex(s.dataset.colors.to),i.value||10)}),O=e.computed(()=>{const l=[];let u=0;const o=a.value.height-c.value.top-c.value.bottom;for(let n=0;n<o-1;n+=o/i.value)l.push({x:a.value.left,y:a.value.top+n,qYLess:a.value.top+n+o/i.value/4,halfY:a.value.top+n+o/i.value/2,qYMore:a.value.top+n+o/i.value/4*3,color:j.value[u],height:o/i.value}),u+=1;return l}),h=e.ref(!1);function D(l){h.value=l,P.value+=1}const f=e.ref(!1);function C(){f.value=!f.value}return Y({generatePdf:I,generateImage:q,toggleAnnotator:C}),(l,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:g,class:e.normalizeClass(`vue-ui-thermometer ${h.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}`),id:`thermometer__${d.value}`},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(te.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:C},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createElementBlock("div",re,null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",ae,[(e.openBlock(),e.createBlock(Q._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"thermometer-div-title",...t.value.style.title},subtitle:{cy:"thermometer-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&k.value?(e.openBlock(),e.createBlock(A.UserOptions,{ref:"details",key:`user_options_${P.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(F),isPrinting:e.unref($),uid:d.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,onToggleFullscreen:D,onGeneratePdf:e.unref(I),onGenerateImage:e.unref(q),onToggleAnnotator:C},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:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"2"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),width:"100%",viewBox:`0 0 ${a.value.width} ${a.value.height}`,style:"background:transparent"},[e.createVNode(ee._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",ne,[e.createElementVNode("rect",{x:"0",y:"0",width:"1",height:"1",rx:"0.5",ry:"0.07",fill:t.value.style.chart.backgroundColor},null,8,ue)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,(o,n)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`vueUiThermometerGradient_${n}_${d.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,ie),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(r.setOpacity)(o.color,100-t.value.style.chart.graduations.gradient.intensity)},null,8,de),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,he)],8,ce))),256))]),e.createElementVNode("g",ve,[e.createElementVNode("rect",{x:a.value.left,y:a.value.top,height:a.value.height-c.value.top-c.value.bottom,width:a.value.width-c.value.left-c.value.right,fill:"#FFFFFF"},null,8,me),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",{key:`graduation_${n}`},[e.createElementVNode("rect",{x:o.x,y:o.y,height:o.height,width:a.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:t.value.style.chart.graduations.gradient.show?`url(#vueUiThermometerGradient_${n}_${d.value})`:o.color,"shape-rendering":"crispEdges"},null,8,pe),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ye)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,fe)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:o.x,x2:o.x+2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ke)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:o.x,x2:o.x+2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ge)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.value.right,x2:a.value.right-10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,xe)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.value.right,x2:a.value.right-5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,be)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:a.value.right,x2:a.value.right-2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,_e)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.value.right,x2:a.value.right-2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Ce)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("rect",{class:e.normalizeClass({"vue-ui-thermometer-temperature":t.value.style.chart.animation.use}),x:a.value.left,y:a.value.top,height:_.value,width:a.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:"#FFFFFF66"},null,10,we)]),e.createElementVNode("text",{class:e.normalizeClass({"vue-ui-thermometer-temperature-value":t.value.style.chart.animation.use}),y:_.value+a.value.top+t.value.style.chart.label.fontSize/3,x:a.value.left-10,"text-anchor":"end",fill:t.value.style.chart.label.color,"font-size":t.value.style.chart.label.fontSize,"font-weight":t.value.style.chart.label.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.label.formatter,m.dataset.value,e.unref(r.dataLabel)({p:t.value.style.chart.label.prefix,v:m.dataset.value,s:t.value.style.chart.label.suffix,r:t.value.style.chart.label.rounding}),{datapoint:m.dataset})),11,Ne),e.renderSlot(l.$slots,"svg",{svg:U.value},void 0,!0)],10,se)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Be,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref($)||e.unref(F)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",Pe,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Z.default,{key:7,config:{type:"thermometer",style:{backgroundColor:t.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],14,le))}},Ee=oe._export_sfc(Ve,[["__scopeId","data-v-8a73571f"]]);exports.default=Ee;
@@ -1,11 +1,11 @@
1
1
  import { useCssVars as ye, computed as h, onMounted as fe, ref as g, watch as ge, openBlock as l, createElementBlock as u, normalizeClass as P, normalizeStyle as me, createBlock as F, createCommentVNode as i, unref as v, createSlots as pe, withCtx as I, renderSlot as m, normalizeProps as G, guardReactiveProps as V, createVNode as ke, createElementVNode as d, Fragment as O, renderList as K, toDisplayString as be } from "vue";
2
- import { u as _e, o as xe, e as Q, g as we, c as Ce, t as $e, a as Pe, p as _, b as Fe, v as f, d as A, X as Ie, s as Oe, i as Ae, f as Ye } from "./index-DT2Q6wHA.js";
3
- import { _ as Ne } from "./Title-B5wIQ3bR.js";
4
- import { u as Me, U as Te } from "./usePrinter-Bu3_FFNh.js";
5
- import Se from "./vue-ui-skeleton-D9lIs0pC.js";
6
- import { u as Z } from "./useNestedProp-mBik37PJ.js";
7
- import { _ as Ue } from "./PackageVersion-tBXJRRcv.js";
8
- import { P as qe } from "./PenAndPaper-VhfbqYdY.js";
2
+ import { u as _e, o as xe, e as Q, g as we, c as Ce, t as $e, a as Pe, p as _, b as Fe, v as f, d as A, X as Ie, s as Oe, i as Ae, f as Ye } from "./index-BfvWIfiY.js";
3
+ import { _ as Ne } from "./Title-x3NyvtQe.js";
4
+ import { u as Me, U as Te } from "./usePrinter-C_JcwuWm.js";
5
+ import Se from "./vue-ui-skeleton-CK-lcAFv.js";
6
+ import { u as Z } from "./useNestedProp-C5ctHjEY.js";
7
+ import { _ as Ue } from "./PackageVersion-QvLMBL8G.js";
8
+ import { P as qe } from "./PenAndPaper-CT4Le8nh.js";
9
9
  import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const Ge = ["id"], Ve = {
11
11
  key: 1,