vue-data-ui 2.4.34 → 2.4.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/{Arrow-BuezaXvL.js → Arrow-Bpy87-5A.js} +1 -1
  2. package/dist/{Arrow-BWaR2mlv.cjs → Arrow-DvVfffCn.cjs} +1 -1
  3. package/dist/{BaseIcon-D_2AVea5.cjs → BaseIcon-Ba0OA9UK.cjs} +1 -1
  4. package/dist/{BaseIcon-Dr_DIMeA.js → BaseIcon-CK7TNglK.js} +1 -1
  5. package/dist/{DataTable-VgAML4lp.js → DataTable-Chl6EuoM.js} +2 -2
  6. package/dist/{DataTable--bM06mln.cjs → DataTable-Dgokkc7A.cjs} +1 -1
  7. package/dist/{Legend-CySxfdFz.js → Legend-BJNfeJUD.js} +1 -1
  8. package/dist/{Legend-BCOCP8PE.cjs → Legend-D1D1r0MW.cjs} +1 -1
  9. package/dist/{PackageVersion-XAKkfWzS.cjs → PackageVersion-D7UEx2nV.cjs} +1 -1
  10. package/dist/{PackageVersion-Br64Mym2.js → PackageVersion-tBXJRRcv.js} +1 -1
  11. package/dist/{PenAndPaper-D8M7psAi.cjs → PenAndPaper-C1dGfWPA.cjs} +1 -1
  12. package/dist/{PenAndPaper-Xjz8xzgj.js → PenAndPaper-VhfbqYdY.js} +3 -3
  13. package/dist/{Shape-CJG8X4xW.js → Shape-Bx_JPN24.js} +1 -1
  14. package/dist/{Shape-DcSrHAF4.cjs → Shape-COkmGii0.cjs} +1 -1
  15. package/dist/{Slicer-DFN5QvM5.js → Slicer-C-vVh0yP.js} +2 -2
  16. package/dist/{Slicer-iRT1IRDv.cjs → Slicer-LsepvzYE.cjs} +1 -1
  17. package/dist/{Title-DzXs2Yc7.cjs → Title-0iC4gElN.cjs} +1 -1
  18. package/dist/{Title-C-TBUf-X.js → Title-B5wIQ3bR.js} +1 -1
  19. package/dist/{Tooltip-B9htW4Zh.cjs → Tooltip-BphIe1nr.cjs} +1 -1
  20. package/dist/{Tooltip-jhv5Trzb.js → Tooltip-DxlT2AdY.js} +1 -1
  21. package/dist/{index-CBrvip7f.js → index-DT2Q6wHA.js} +2 -1
  22. package/dist/index-kERGTkcX.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +1 -0
  25. package/dist/types/vue-data-ui.d.ts +1 -0
  26. package/dist/{useNestedProp--dgI0yN_.cjs → useNestedProp-C01Nxqp-.cjs} +1 -1
  27. package/dist/{useNestedProp-BTqkOQhK.js → useNestedProp-mBik37PJ.js} +1 -1
  28. package/dist/{usePrinter-vaejWdsw.js → usePrinter-Bu3_FFNh.js} +1 -1
  29. package/dist/{usePrinter-5cM3APqp.cjs → usePrinter-IEjSf9Zq.cjs} +1 -1
  30. package/dist/{vue-data-ui-CWYO59iF.cjs → vue-data-ui-B1vvdA7U.cjs} +1 -1
  31. package/dist/{vue-data-ui-Dg60kfd2.js → vue-data-ui-BD904qyk.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-Cpk-_EL5.cjs → vue-ui-3d-bar-C39JngPT.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-4-ytHuzj.js → vue-ui-3d-bar-DNJURkin.js} +9 -9
  36. package/dist/{vue-ui-accordion-Cl2Nv8Hj.cjs → vue-ui-accordion-De-_FuTd.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-BBxEpX99.js → vue-ui-accordion-Y-KIir2-.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-qRlB6uAw.js → vue-ui-age-pyramid-Blocfen4.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-BkbxFw8C.cjs → vue-ui-age-pyramid-CBSJ767r.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-CJhZqzyV.cjs → vue-ui-annotator-CWhQkyiF.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-CDTjWMB0.js → vue-ui-annotator-ls11X0Ep.js} +1 -1
  42. package/dist/{vue-ui-bullet-Dbp-Vqe-.cjs → vue-ui-bullet-6faS2xkX.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-DtG-Vt_C.js → vue-ui-bullet-ClNhNLlo.js} +8 -8
  44. package/dist/{vue-ui-candlestick-zNokRMVi.js → vue-ui-candlestick-BDVfGF2v.js} +11 -11
  45. package/dist/{vue-ui-candlestick-BQ0okrc_.cjs → vue-ui-candlestick-D91rCN1k.cjs} +1 -1
  46. package/dist/vue-ui-carousel-table-B3ORmOjO.cjs +1 -0
  47. package/dist/{vue-ui-carousel-table-_PPXkjqq.js → vue-ui-carousel-table-XMxSoSdl.js} +20 -19
  48. package/dist/{vue-ui-chestnut-DA_Lwom0.cjs → vue-ui-chestnut-DhBTx9ih.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-B3PRjay7.js → vue-ui-chestnut-mqKL0lHf.js} +8 -8
  50. package/dist/{vue-ui-cursor-DR9l3CwC.cjs → vue-ui-cursor-DBSD1ccp.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-DHJm-rme.js → vue-ui-cursor-U60m7Ha6.js} +2 -2
  52. package/dist/{vue-ui-dashboard-C1hunabL.js → vue-ui-dashboard-D5vUSSBx.js} +2 -2
  53. package/dist/{vue-ui-dashboard-DhljTlst.cjs → vue-ui-dashboard-u7bkCHjF.cjs} +1 -1
  54. package/dist/{vue-ui-digits-SvVEmvwL.cjs → vue-ui-digits-BQdRQ0xO.cjs} +1 -1
  55. package/dist/{vue-ui-digits-BLRTNzTZ.js → vue-ui-digits-BwZJZe3M.js} +2 -2
  56. package/dist/{vue-ui-donut-evolution-BVmekse3.js → vue-ui-donut-evolution-BSt9xbcl.js} +11 -11
  57. package/dist/{vue-ui-donut-evolution-CIun7Doj.cjs → vue-ui-donut-evolution-BbsK84kI.cjs} +1 -1
  58. package/dist/{vue-ui-donut-e0MnNQI7.js → vue-ui-donut-rDPyaNUq.js} +11 -11
  59. package/dist/{vue-ui-donut-D8Hb1sxc.cjs → vue-ui-donut-sZhaN0en.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-n9cxnWpb.js → vue-ui-dumbbell-BWJieeJq.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-RpEh1FNm.cjs → vue-ui-dumbbell-DOQpwxOf.cjs} +1 -1
  62. package/dist/{vue-ui-flow-D00C5TPY.cjs → vue-ui-flow-C4xrv2sT.cjs} +1 -1
  63. package/dist/{vue-ui-flow-Ceg0rWiM.js → vue-ui-flow-DGpXI3bk.js} +9 -9
  64. package/dist/{vue-ui-funnel-Cu-s9g9M.cjs → vue-ui-funnel-BU-dX1be.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-D2m0kGRH.js → vue-ui-funnel-BX727iqg.js} +8 -8
  66. package/dist/{vue-ui-galaxy-BqP6r5ZU.cjs → vue-ui-galaxy-BEPUwSGn.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-Ddx3Nn1X.js → vue-ui-galaxy-YOnLDzLn.js} +11 -11
  68. package/dist/{vue-ui-gauge-gUbMlIT_.js → vue-ui-gauge-B4R-7QaH.js} +7 -7
  69. package/dist/{vue-ui-gauge-1QS633xJ.cjs → vue-ui-gauge-SmYMqHtg.cjs} +1 -1
  70. package/dist/{vue-ui-gizmo-CrvIGfpZ.cjs → vue-ui-gizmo-C6WHIvls.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-Ccy4RhPb.js → vue-ui-gizmo-d0iCnrE5.js} +3 -3
  72. package/dist/{vue-ui-heatmap-C4Iwav3i.cjs → vue-ui-heatmap-BcoK1MFo.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-CWBmESQe.js → vue-ui-heatmap-Do3SwP1y.js} +10 -10
  74. package/dist/{vue-ui-history-plot-kGJRgK9m.cjs → vue-ui-history-plot-C7Tl3J6I.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-TAWfu5kj.js → vue-ui-history-plot-CeyQvxiu.js} +11 -11
  76. package/dist/{vue-ui-kpi-P6g2ZVF8.cjs → vue-ui-kpi-C6fzXZvG.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-BAcqK-Ms.js → vue-ui-kpi-zCeUtmhG.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-CGEQXp1h.js → vue-ui-mini-loader-C6e8w8Pj.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-CJ25Fm3D.cjs → vue-ui-mini-loader-DA2rFFM-.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-BZpxkcTu.js → vue-ui-molecule-B7pqKZ6Q.js} +11 -11
  81. package/dist/{vue-ui-molecule-DAx9be53.cjs → vue-ui-molecule-By3e76zL.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-CcJvyzwi.cjs → vue-ui-mood-radar-Ch3yfUsb.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-DUEfbeCB.js → vue-ui-mood-radar-DEjAMbvz.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-B0d0Fsba.cjs → vue-ui-nested-donuts-BXul72Pg.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-BMo1hfcS.js → vue-ui-nested-donuts-BYUHWwAG.js} +11 -11
  86. package/dist/{vue-ui-onion-Cg3YeU97.js → vue-ui-onion-BTQj76EU.js} +11 -11
  87. package/dist/{vue-ui-onion-D6nGZNLZ.cjs → vue-ui-onion-Di-_exOm.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-KPYYnVuw.cjs → vue-ui-parallel-coordinate-plot-B6OQiz_w.cjs} +1 -1
  89. package/dist/{vue-ui-parallel-coordinate-plot-DQjmpJb9.js → vue-ui-parallel-coordinate-plot-BaYu4ces.js} +12 -12
  90. package/dist/{vue-ui-quadrant-bHKg2t93.js → vue-ui-quadrant-LdkWJ4bO.js} +12 -12
  91. package/dist/{vue-ui-quadrant-RLnuuwag.cjs → vue-ui-quadrant-Tv2JUmD2.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-Ced1YqrH.js → vue-ui-quick-chart-B8tYrd7n.js} +9 -9
  93. package/dist/{vue-ui-quick-chart-BxDxUw3M.cjs → vue-ui-quick-chart-enp44IMM.cjs} +1 -1
  94. package/dist/{vue-ui-radar-BAkv6JbI.js → vue-ui-radar-CdQ3ZZnc.js} +12 -12
  95. package/dist/{vue-ui-radar-xgwBIuVW.cjs → vue-ui-radar-Dw0mtHHQ.cjs} +1 -1
  96. package/dist/{vue-ui-rating-BHAce6-0.cjs → vue-ui-rating-CgbhHqLS.cjs} +1 -1
  97. package/dist/{vue-ui-rating-CFtTpqZI.js → vue-ui-rating-iL7BC7v-.js} +2 -2
  98. package/dist/{vue-ui-relation-circle-CheNKkkq.js → vue-ui-relation-circle-CoNB6PQ2.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-BcI0yRKV.cjs → vue-ui-relation-circle-xL3OCDO2.cjs} +1 -1
  100. package/dist/{vue-ui-rings-Co3tJ729.cjs → vue-ui-rings-BNmLppA8.cjs} +1 -1
  101. package/dist/{vue-ui-rings-Os9UnWcS.js → vue-ui-rings-Cs4jVChn.js} +11 -11
  102. package/dist/{vue-ui-scatter-B2c7CY0M.js → vue-ui-scatter-BvUVkiSM.js} +12 -12
  103. package/dist/{vue-ui-scatter-LJUz3T1w.cjs → vue-ui-scatter-DVKpfEr4.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-ChWMxEAe.cjs → vue-ui-screenshot-Bw3Vkosw.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-BCulOhVr.js → vue-ui-screenshot-Tkspb4Gy.js} +1 -1
  106. package/dist/{vue-ui-skeleton-BeHnq9mY.cjs → vue-ui-skeleton-D2ANHIIV.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-f6rHKS81.js → vue-ui-skeleton-D9lIs0pC.js} +3 -3
  108. package/dist/{vue-ui-smiley-ua_0fiQ9.cjs → vue-ui-smiley-C18DtSwE.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-Dj0RHsT0.js → vue-ui-smiley-CZmxJR1p.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-jR98EW8D.js → vue-ui-spark-trend-CP2rAw9u.js} +5 -5
  111. package/dist/{vue-ui-spark-trend-BuvXw2ir.cjs → vue-ui-spark-trend-DAD9EW5F.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-l9PlnU8-.cjs → vue-ui-sparkbar-CK_sJkSI.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-BpzItjCF.js → vue-ui-sparkbar-Ebg2bwSr.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-D-_mvaIn.js → vue-ui-sparkgauge-CkhqBiO0.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-FUzsytfC.cjs → vue-ui-sparkgauge-DRc4NqXv.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-C3noaoQj.js → vue-ui-sparkhistogram-By027HfM.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-pbHDgg7j.cjs → vue-ui-sparkhistogram-CFwcK9dP.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-dXI8E5Ri.cjs → vue-ui-sparkline-CEmqDTG_.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-Dk-hrbv9.js → vue-ui-sparkline-j2oC5gBh.js} +4 -4
  120. package/dist/{vue-ui-sparkstackbar-jPEUYlp-.js → vue-ui-sparkstackbar-Bil9rW48.js} +5 -5
  121. package/dist/{vue-ui-sparkstackbar-4LGerraX.cjs → vue-ui-sparkstackbar-CIImFRNj.cjs} +1 -1
  122. package/dist/{vue-ui-stackbar-CeAoEjId.cjs → vue-ui-stackbar-BN22b1v_.cjs} +1 -1
  123. package/dist/{vue-ui-stackbar-CuaEoRxi.js → vue-ui-stackbar-BtN-dlcj.js} +12 -12
  124. package/dist/{vue-ui-strip-plot-BOHgyVJn.cjs → vue-ui-strip-plot-D9L8r-Qd.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-Cqy3-3nu.js → vue-ui-strip-plot-DZWB-w56.js} +11 -11
  126. package/dist/{vue-ui-table-BZytxZb2.cjs → vue-ui-table-D8e6SX0d.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CWkJOfck.cjs → vue-ui-table-heatmap-8uW1Gc3l.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-D165ROz2.js → vue-ui-table-heatmap-m3Fkpx9y.js} +4 -4
  129. package/dist/{vue-ui-table-CbC1hwJL.js → vue-ui-table-miQfZhdG.js} +1 -1
  130. package/dist/vue-ui-table-sparkline-DDGpViuj.cjs +1 -0
  131. package/dist/{vue-ui-table-sparkline-Bnz8P4JY.js → vue-ui-table-sparkline-DltQKhPy.js} +122 -110
  132. package/dist/{vue-ui-thermometer-MeP1cDnD.cjs → vue-ui-thermometer-Bdy_jYI1.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-B661qJ8Y.js → vue-ui-thermometer-ceqnJJgt.js} +7 -7
  134. package/dist/{vue-ui-timer-nRc9UBxy.js → vue-ui-timer-B9uwiDwB.js} +5 -5
  135. package/dist/{vue-ui-timer-NcWJbMoB.cjs → vue-ui-timer-CM2i7679.cjs} +1 -1
  136. package/dist/{vue-ui-tiremarks-CW12JLiP.cjs → vue-ui-tiremarks-6S2fApFV.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-DvpCQsEM.js → vue-ui-tiremarks-CbjA0LAa.js} +7 -7
  138. package/dist/{vue-ui-treemap-BnqW2Ylb.js → vue-ui-treemap-CozGHw4b.js} +11 -11
  139. package/dist/{vue-ui-treemap-wk1EjoJU.cjs → vue-ui-treemap-Dorwv25m.cjs} +1 -1
  140. package/dist/{vue-ui-vertical-bar-DtXSpngC.js → vue-ui-vertical-bar--ilwk-0L.js} +11 -11
  141. package/dist/{vue-ui-vertical-bar-BtgP6dAC.cjs → vue-ui-vertical-bar-B3mUU17x.cjs} +1 -1
  142. package/dist/{vue-ui-waffle-C7l2XSVp.cjs → vue-ui-waffle-BEa1YJLV.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-D-mI4tne.js → vue-ui-waffle-DXaAloSi.js} +11 -11
  144. package/dist/{vue-ui-wheel-C8pv5llp.js → vue-ui-wheel-BU2OITMK.js} +7 -7
  145. package/dist/{vue-ui-wheel-CNVqc2Ef.cjs → vue-ui-wheel-C2wDyBoN.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-CPrnRtuR.cjs → vue-ui-word-cloud-DaokdBId.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-B6e7sxGq.js → vue-ui-word-cloud-E7BNcpiF.js} +10 -10
  148. package/dist/{vue-ui-xy-DQdxFY5B.cjs → vue-ui-xy-BSOYHk-G.cjs} +1 -1
  149. package/dist/{vue-ui-xy-DwBbSO-T.js → vue-ui-xy-DHJUsPhx.js} +14 -14
  150. package/dist/{vue-ui-xy-canvas-BS8D_TrE.cjs → vue-ui-xy-canvas-CvOJifne.cjs} +1 -1
  151. package/dist/{vue-ui-xy-canvas-BkUF0V5N.js → vue-ui-xy-canvas-DmBKepV0.js} +11 -11
  152. package/package.json +1 -1
  153. package/dist/index-zUb8kR1J.cjs +0 -9
  154. package/dist/vue-ui-carousel-table-CgSe3nCS.cjs +0 -1
  155. package/dist/vue-ui-table-sparkline-DHsVnkV_.cjs +0 -1
@@ -1,18 +1,15 @@
1
- import { useCssVars as fe, ref as d, computed as h, watch as ee, onMounted as pe, openBlock as u, createElementBlock as r, normalizeClass as V, createElementVNode as c, normalizeStyle as i, toDisplayString as b, createCommentVNode as p, withDirectives as be, Fragment as E, renderList as G, createBlock as L, unref as v, createSlots as me, withCtx as A, renderSlot as C, normalizeProps as ge, 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-CBrvip7f.js";
3
- import { u as ae } from "./useNestedProp-BTqkOQhK.js";
4
- import Oe from "./vue-ui-sparkline-Dk-hrbv9.js";
5
- import Fe from "./BaseIcon-Dr_DIMeA.js";
6
- import { u as Ne, U as We, v as De } from "./usePrinter-vaejWdsw.js";
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";
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 = {
9
- dir: "auto",
10
- style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "6px" }
11
- }, Re = ["data-cell", "onPointerenter"], Be = ["data-cell"], Ue = ["data-cell"], He = ["data-cell"], qe = ["data-cell"], Xe = {
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 = {
12
9
  key: 0,
13
10
  ref: "source",
14
11
  dir: "auto"
15
- }, Je = {
12
+ }, Xe = {
16
13
  __name: "vue-ui-table-sparkline",
17
14
  props: {
18
15
  config: {
@@ -29,55 +26,55 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
29
26
  }
30
27
  },
31
28
  setup(le, { expose: oe }) {
32
- const m = le;
29
+ const g = le;
33
30
  fe((t) => ({
34
- "7dcc964a": t.tdo
31
+ "72de9ec2": t.tdo
35
32
  }));
36
- const { vue_ui_table_sparkline: ne } = ke(), O = d(_e()), R = d(0), w = d(0), F = d(null), e = h({
33
+ const { vue_ui_table_sparkline: ne } = ke(), O = d(_e()), R = d(0), I = d(0), F = d(null), e = h({
37
34
  get: () => B(),
38
35
  set: (t) => t
39
36
  });
40
37
  function B() {
41
38
  const t = ae({
42
- userConfig: m.config,
39
+ userConfig: g.config,
43
40
  defaultConfig: ne
44
41
  });
45
42
  return t.theme ? {
46
43
  ...ae({
47
- userConfig: xe.vue_ui_table_sparkline[t.theme] || m.config,
44
+ userConfig: xe.vue_ui_table_sparkline[t.theme] || g.config,
48
45
  defaultConfig: t
49
46
  }),
50
47
  customPalette: Ce[t.theme] || $
51
48
  } : t;
52
49
  }
53
- ee(() => m.config, (t) => {
54
- e.value = B(), J(), w.value += 1;
55
- }, { deep: !0 }), ee(() => m.dataset, (t) => {
56
- _.value = y.value, w.value += 1;
50
+ ee(() => g.config, (t) => {
51
+ e.value = B(), J(), I.value += 1;
52
+ }, { deep: !0 }), ee(() => g.dataset, (t) => {
53
+ _.value = y.value, I.value += 1;
57
54
  }, { deep: !0 });
58
55
  const { isPrinting: U, isImaging: H, generatePdf: q, generateImage: X } = Ne({
59
56
  elementId: `table_${O.value}`,
60
57
  fileName: e.value.title.text || "vue-ui-table-sparkline"
61
- }), se = h(() => we(e.value.customPalette)), I = d(null), N = d(!1), ue = h(() => e.value.responsiveBreakpoint);
58
+ }), ue = h(() => Ie(e.value.customPalette)), w = d(null), N = d(!1), se = h(() => e.value.responsiveBreakpoint);
62
59
  pe(() => {
63
60
  J();
64
61
  });
65
- const W = d(e.value.colNames);
62
+ const D = d(e.value.colNames);
66
63
  function J() {
67
- Ie(m.dataset) && te({
64
+ we(g.dataset) && te({
68
65
  componentName: "VueUiTableSparkline",
69
66
  type: "dataset"
70
67
  });
71
68
  const t = new ResizeObserver((o) => {
72
69
  o.forEach((a) => {
73
- N.value = a.contentRect.width < ue.value;
70
+ N.value = a.contentRect.width < se.value;
74
71
  });
75
72
  });
76
- I.value && t.observe(I.value), W.value = [];
73
+ w.value && t.observe(w.value), D.value = [];
77
74
  for (let o = 0; o < Y.value; o += 1)
78
- W.value.push(e.value.colNames[o] || `col ${o}`);
75
+ D.value.push(e.value.colNames[o] || `col ${o}`);
79
76
  }
80
- const K = h(() => (m.dataset.forEach((t, o) => {
77
+ const K = h(() => (g.dataset.forEach((t, o) => {
81
78
  Se({
82
79
  datasetObject: t,
83
80
  requiredAttributes: ["name", "values"]
@@ -89,46 +86,46 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
89
86
  index: o
90
87
  });
91
88
  });
92
- }), m.dataset.map((t, o) => {
93
- const a = (t.values || []).map((s) => isNaN(s) ? 0 : s ?? 0), n = a.reduce((s, l) => s + l, 0);
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);
94
91
  return {
95
92
  ...t,
96
93
  values: t.values || [],
97
- color: Ae(t.color) || se.value[o] || $[o] || $[o % $.length],
94
+ color: Ae(t.color) || ue.value[o] || $[o] || $[o % $.length],
98
95
  sum: n,
99
96
  average: n / a.length,
100
97
  median: $e(a),
101
- sparklineDataset: a.map((s, l) => ({
98
+ sparklineDataset: a.map((u, l) => ({
102
99
  period: e.value.colNames[l] || `col ${l}`,
103
- value: s || 0
100
+ value: u || 0
104
101
  }))
105
102
  };
106
103
  })));
107
104
  function re(t) {
108
105
  const a = (t[0].values || []).map(
109
- (s, l) => t.map((f) => f.values[l] || [])
106
+ (u, l) => t.map((f) => f.values[l] || [])
110
107
  ).map(
111
- (s) => s.map((l, f) => [l, f]).sort((l, f) => f[0] - l[0]).map((l) => l[1])
108
+ (u) => u.map((l, f) => [l, f]).sort((l, f) => f[0] - l[0]).map((l) => l[1])
112
109
  );
113
- return t.map((s, l) => ({
114
- ...s,
115
- values: s.values || [],
110
+ return t.map((u, l) => ({
111
+ ...u,
112
+ values: u.values || [],
116
113
  orders: a[l]
117
114
  }));
118
115
  }
119
- const y = h(() => re(K.value)), _ = d(y.value), ie = h(() => Math.max(..._.value.map((t) => (t.values || []).length))), S = d(void 0), D = d(!1), T = d(void 0), M = d(-1);
116
+ const y = h(() => re(K.value)), _ = d(y.value), ie = h(() => Math.max(..._.value.map((t) => (t.values || []).length))), S = d(void 0), W = d(!1), T = d(void 0), M = d(-1);
120
117
  function Q() {
121
- D.value = !1, T.value = void 0, M.value = -1, _.value = y.value;
118
+ W.value = !1, T.value = void 0, M.value = -1, _.value = y.value;
122
119
  }
123
120
  function de(t) {
124
- D.value = !0, T.value = t;
121
+ W.value = !0, T.value = t;
125
122
  const o = y.value.map((l) => l.values[t] || []), a = S.value === t ? 1 : -1;
126
123
  M.value = a, t === S.value ? S.value = void 0 : S.value = t;
127
- 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]);
128
- _.value = s, w.value += 1;
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;
129
126
  }
130
- const Y = h(() => Math.max(...m.dataset.map((t) => (t.values || []).length))), k = h(() => {
131
- let t = W.value;
127
+ const Y = h(() => Math.max(...g.dataset.map((t) => (t.values || []).length))), k = h(() => {
128
+ let t = D.value;
132
129
  if (!t.length)
133
130
  for (let a = 0; a < Y.value; a += 1)
134
131
  t.push(`col ${a + 1}`);
@@ -139,9 +136,9 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
139
136
  e.value.translations.average,
140
137
  e.value.translations.median
141
138
  ] : e.value.showAverage && !e.value.showMedian ? o = [...t, e.value.translations.average] : !e.value.showAverage && e.value.showMedian ? o = [...t, e.value.translations.median] : o = t, e.value.showSparklines ? [...o, e.value.translations.chart] : o;
142
- }), g = d(void 0), x = d(void 0);
139
+ }), m = d(void 0), x = d(void 0);
143
140
  function ve({ dataIndex: t, serieIndex: o }) {
144
- g.value = t, x.value = o, F.value[t] && !N.value && F.value[t].scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
141
+ m.value = t, x.value = o, F.value[t] && !N.value && F.value[t].scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
145
142
  }
146
143
  const Z = d(!1);
147
144
  function ce(t) {
@@ -149,12 +146,12 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
149
146
  }
150
147
  function j() {
151
148
  ye(() => {
152
- const t = [e.value.translations.serie].concat(k.value), o = K.value.map((s, l) => [
153
- [s.name],
154
- s.values,
155
- [s.sum],
156
- [s.average],
157
- [s.median]
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]
158
155
  ]), a = [t].concat(o), n = Pe(a);
159
156
  ze({
160
157
  csvContent: n,
@@ -167,9 +164,9 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
167
164
  generateImage: X,
168
165
  generateCsv: j,
169
166
  restoreOrder: Q
170
- }), (t, o) => (u(), r("div", {
167
+ }), (t, o) => (s(), i("div", {
171
168
  ref_key: "tableContainer",
172
- ref: I,
169
+ ref: w,
173
170
  class: V({ "vue-ui-responsive": N.value }),
174
171
  style: { overflow: "hidden" },
175
172
  id: `table_${O.value}`
@@ -177,28 +174,28 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
177
174
  c("div", {
178
175
  style: { overflow: "auto" },
179
176
  onPointerleave: o[0] || (o[0] = (a) => {
180
- x.value = void 0, g.value = void 0;
177
+ x.value = void 0, m.value = void 0;
181
178
  })
182
179
  }, [
183
180
  c("table", {
184
181
  class: "vue-ui-data-table",
185
- style: i({ fontFamily: e.value.fontFamily, position: "relative" })
182
+ style: r({ fontFamily: e.value.fontFamily, position: "relative" })
186
183
  }, [
187
- e.value.title.text ? (u(), r("caption", {
184
+ e.value.title.text ? (s(), i("caption", {
188
185
  key: 0,
189
- style: i({ backgroundColor: e.value.title.backgroundColor })
186
+ style: r({ backgroundColor: e.value.title.backgroundColor })
190
187
  }, [
191
188
  c("div", {
192
- style: i({
189
+ style: r({
193
190
  fontSize: `${e.value.title.fontSize}px`,
194
191
  fontWeight: e.value.title.bold ? "bold" : "normal",
195
192
  color: e.value.title.color,
196
193
  textAlign: e.value.title.textAlign
197
194
  })
198
195
  }, b(e.value.title.text), 5),
199
- e.value.title.subtitle.text ? (u(), r("div", {
196
+ e.value.title.subtitle.text ? (s(), i("div", {
200
197
  key: 0,
201
- style: i({
198
+ style: r({
202
199
  fontSize: `${e.value.title.subtitle.fontSize}px`,
203
200
  fontWeight: e.value.title.subtitle.bold ? "bold" : "normal",
204
201
  color: e.value.title.subtitle.color,
@@ -207,17 +204,17 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
207
204
  }, b(e.value.title.subtitle.text), 5)) : p("", !0)
208
205
  ], 4)) : p("", !0),
209
206
  c("thead", Ve, [
210
- be((u(), r("tr", {
207
+ be((s(), i("tr", {
211
208
  role: "row",
212
209
  class: "vue-ui-data-table__thead-row",
213
- style: i({
210
+ style: r({
214
211
  backgroundColor: e.value.thead.backgroundColor,
215
212
  color: e.value.thead.color
216
213
  })
217
214
  }, [
218
215
  c("th", {
219
216
  role: "cell",
220
- style: i({
217
+ style: r({
221
218
  backgroundColor: e.value.thead.backgroundColor,
222
219
  border: e.value.thead.outline,
223
220
  textAlign: e.value.thead.textAlign,
@@ -225,9 +222,9 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
225
222
  }),
226
223
  class: "sticky-col-first"
227
224
  }, b(e.value.translations.serie), 5),
228
- (u(!0), r(E, null, G(k.value, (a, n) => (u(), r("th", {
225
+ (s(!0), i(E, null, G(k.value, (a, n) => (s(), i("th", {
229
226
  role: "cell",
230
- style: i({
227
+ style: r({
231
228
  background: e.value.thead.backgroundColor,
232
229
  border: e.value.thead.outline,
233
230
  textAlign: e.value.thead.textAlign,
@@ -239,18 +236,24 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
239
236
  onClick: () => de(n),
240
237
  class: V({ "sticky-col": n === k.value.length - 1 && e.value.showSparklines })
241
238
  }, [
242
- c("div", null, [
243
- c("span", {
244
- style: i({ textAlign: e.value.thead.textAlign })
245
- }, b(a), 5),
246
- D.value && n === T.value && y.value[0].values[n] !== void 0 ? (u(), L(Fe, {
239
+ c("div", {
240
+ style: r({
241
+ display: "flex",
242
+ flexDirection: "row",
243
+ alignItems: "center",
244
+ gap: "6px",
245
+ justifyContent: e.value.thead.textAlign
246
+ })
247
+ }, [
248
+ c("span", null, b(a), 1),
249
+ W.value && n === T.value && y.value[0].values[n] !== void 0 ? (s(), L(Fe, {
247
250
  key: 0,
248
251
  size: 18,
249
252
  name: M.value === 1 ? "sort" : "sortReverse",
250
253
  stroke: e.value.thead.color
251
254
  }, null, 8, ["name", "stroke"])) : p("", !0)
252
- ]),
253
- e.value.userOptions.show && n === k.value.length - 1 ? (u(), L(We, {
255
+ ], 4),
256
+ e.value.userOptions.show && n === k.value.length - 1 ? (s(), L(De, {
254
257
  ref_for: !0,
255
258
  ref: "details",
256
259
  key: `user_option_${R.value}`,
@@ -265,13 +268,13 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
265
268
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
266
269
  isFullscreen: Z.value,
267
270
  titles: { ...e.value.userOptions.buttonTitles },
268
- chartElement: I.value,
271
+ chartElement: w.value,
269
272
  position: e.value.userOptions.position,
270
273
  onToggleFullscreen: ce,
271
274
  onGeneratePdf: v(q),
272
275
  onGenerateImage: v(X),
273
276
  onGenerateCsv: j
274
- }, me({ _: 2 }, [
277
+ }, ge({ _: 2 }, [
275
278
  t.$slots.optionPdf ? {
276
279
  name: "optionPdf",
277
280
  fn: A(() => [
@@ -295,21 +298,21 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
295
298
  } : void 0,
296
299
  t.$slots.optionFullscreen ? {
297
300
  name: "optionFullscreen",
298
- fn: A(({ toggleFullscreen: s, isFullscreen: l }) => [
299
- C(t.$slots, "optionFullscreen", ge(he({ toggleFullscreen: s, isFullscreen: l })), void 0, !0)
301
+ fn: A(({ toggleFullscreen: u, isFullscreen: l }) => [
302
+ C(t.$slots, "optionFullscreen", me(he({ toggleFullscreen: u, isFullscreen: l })), void 0, !0)
300
303
  ]),
301
304
  key: "3"
302
305
  } : void 0
303
306
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : p("", !0)
304
307
  ], 14, Ee))), 256))
305
308
  ], 4)), [
306
- [v(De), Q]
309
+ [v(We), Q]
307
310
  ])
308
311
  ]),
309
312
  c("tbody", null, [
310
- (u(!0), r(E, null, G(_.value, (a, n) => (u(), r("tr", {
313
+ (s(!0), i(E, null, G(_.value, (a, n) => (s(), i("tr", {
311
314
  role: "row",
312
- style: i({
315
+ style: r({
313
316
  backgroundColor: e.value.tbody.backgroundColor,
314
317
  color: e.value.tbody.color
315
318
  }),
@@ -317,7 +320,7 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
317
320
  }, [
318
321
  c("td", {
319
322
  role: "cell",
320
- style: i({
323
+ style: r({
321
324
  backgroundColor: e.value.tbody.backgroundColor,
322
325
  border: e.value.tbody.outline,
323
326
  fontSize: `${e.value.tbody.fontSize}px`,
@@ -327,32 +330,41 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
327
330
  "data-cell": e.value.translations.serie,
328
331
  class: "vue-ui-data-table__tbody__td sticky-col-first"
329
332
  }, [
330
- c("div", Le, [
331
- e.value.tbody.showColorMarker ? (u(), r("span", {
333
+ c("div", {
334
+ dir: "auto",
335
+ style: r({
336
+ display: "flex",
337
+ flexDirection: "row",
338
+ alignItems: "center",
339
+ gap: "6px",
340
+ justifyContent: e.value.tbody.textAlign
341
+ })
342
+ }, [
343
+ e.value.tbody.showColorMarker ? (s(), i("span", {
332
344
  key: 0,
333
- style: i({ color: a.color })
345
+ style: r({ color: a.color })
334
346
  }, "⬤", 4)) : p("", !0),
335
347
  c("span", null, b(a.name ?? "-"), 1)
336
- ])
348
+ ], 4)
337
349
  ], 12, Ge),
338
- (u(!0), r(E, null, G(ie.value, (s, l) => (u(), r("td", {
350
+ (s(!0), i(E, null, G(ie.value, (u, l) => (s(), i("td", {
339
351
  dir: "auto",
340
352
  role: "cell",
341
353
  ref_for: !0,
342
354
  ref_key: "TD",
343
355
  ref: F,
344
- style: i({
356
+ style: r({
345
357
  border: e.value.tbody.outline,
346
358
  fontSize: `${e.value.tbody.fontSize}px`,
347
359
  fontWeight: e.value.tbody.bold ? "bold" : "normal",
348
360
  textAlign: e.value.tbody.textAlign,
349
- background: g.value !== void 0 && l === g.value ? e.value.tbody.selectedColor.useSerieColor ? `${a.color.length > 7 ? a.color.slice(0, -2) : a.color}33` : e.value.tbody.selectedColor.fallback : "",
350
- borderRadius: g.value !== void 0 && x.value !== void 0 && l === g.value && x.value === n ? "3px" : ""
361
+ background: m.value !== void 0 && l === m.value ? e.value.tbody.selectedColor.useSerieColor ? `${a.color.length > 7 ? a.color.slice(0, -2) : a.color}33` : e.value.tbody.selectedColor.fallback : "",
362
+ borderRadius: m.value !== void 0 && x.value !== void 0 && l === m.value && x.value === n ? "3px" : ""
351
363
  }),
352
364
  "data-cell": k.value[l],
353
365
  class: "vue-ui-data-table__tbody__td",
354
366
  onPointerenter: (f) => {
355
- x.value = n, g.value = l;
367
+ x.value = n, m.value = l;
356
368
  }
357
369
  }, b([null, void 0].includes(a.values[l]) ? "-" : v(P)(
358
370
  e.value.formatter,
@@ -364,12 +376,12 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
364
376
  r: e.value.roundingValues
365
377
  }),
366
378
  { datapoint: a, seriesIndex: n, datapointIndex: l }
367
- )), 45, Re))), 256)),
368
- e.value.showTotal ? (u(), r("td", {
379
+ )), 45, Le))), 256)),
380
+ e.value.showTotal ? (s(), i("td", {
369
381
  key: 0,
370
382
  dir: "auto",
371
383
  role: "cell",
372
- style: i({
384
+ style: r({
373
385
  border: e.value.tbody.outline,
374
386
  fontSize: `${e.value.tbody.fontSize}px`,
375
387
  fontWeight: e.value.tbody.bold ? "bold" : "normal",
@@ -387,12 +399,12 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
387
399
  r: e.value.roundingTotal
388
400
  }),
389
401
  { datapoint: a.sum, seriesIndex: n }
390
- )), 13, Be)) : p("", !0),
391
- e.value.showAverage ? (u(), r("td", {
402
+ )), 13, Re)) : p("", !0),
403
+ e.value.showAverage ? (s(), i("td", {
392
404
  key: 1,
393
405
  dir: "auto",
394
406
  role: "cell",
395
- style: i({
407
+ style: r({
396
408
  border: e.value.tbody.outline,
397
409
  fontSize: `${e.value.tbody.fontSize}px`,
398
410
  fontWeight: e.value.tbody.bold ? "bold" : "normal",
@@ -410,12 +422,12 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
410
422
  r: e.value.roundingAverage
411
423
  }),
412
424
  { datapoint: a.average, seriesIndex: n }
413
- )), 13, Ue)) : p("", !0),
414
- e.value.showMedian ? (u(), r("td", {
425
+ )), 13, Be)) : p("", !0),
426
+ e.value.showMedian ? (s(), i("td", {
415
427
  key: 2,
416
428
  dir: "auto",
417
429
  role: "cell",
418
- style: i({
430
+ style: r({
419
431
  border: e.value.tbody.outline,
420
432
  fontSize: `${e.value.tbody.fontSize}px`,
421
433
  fontWeight: e.value.tbody.bold ? "bold" : "normal",
@@ -433,12 +445,12 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
433
445
  r: e.value.roundingMedian
434
446
  }),
435
447
  { datapoint: a.median, seriesIndex: n }
436
- )), 13, He)) : p("", !0),
437
- e.value.showSparklines ? (u(), r("td", {
448
+ )), 13, Ue)) : p("", !0),
449
+ e.value.showSparklines ? (s(), i("td", {
438
450
  key: 3,
439
451
  role: "cell",
440
452
  "data-cell": e.value.translations.chart,
441
- style: i({
453
+ style: r({
442
454
  border: e.value.tbody.outline,
443
455
  fontSize: `${e.value.tbody.fontSize}px`,
444
456
  fontWeight: e.value.tbody.bold ? "bold" : "normal",
@@ -448,12 +460,12 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
448
460
  }),
449
461
  class: "vue-ui-data-table__tbody__td sticky-col"
450
462
  }, [
451
- (u(), L(Oe, {
452
- key: `sparkline_${n}_${w.value}`,
453
- onHoverIndex: ({ index: s }) => ve({ dataIndex: s, serieIndex: n }),
463
+ (s(), L(Oe, {
464
+ key: `sparkline_${n}_${I.value}`,
465
+ onHoverIndex: ({ index: u }) => ve({ dataIndex: u, serieIndex: n }),
454
466
  dataset: a.sparklineDataset,
455
467
  showInfo: !1,
456
- selectedIndex: g.value,
468
+ selectedIndex: m.value,
457
469
  config: {
458
470
  type: e.value.sparkline.type,
459
471
  style: {
@@ -486,17 +498,17 @@ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } },
486
498
  }
487
499
  }
488
500
  }, null, 8, ["onHoverIndex", "dataset", "selectedIndex", "config"]))
489
- ], 12, qe)) : p("", !0)
501
+ ], 12, He)) : p("", !0)
490
502
  ], 6))), 256))
491
503
  ])
492
504
  ], 4)
493
505
  ], 32),
494
- t.$slots.source ? (u(), r("div", Xe, [
506
+ t.$slots.source ? (s(), i("div", qe, [
495
507
  C(t.$slots, "source", {}, void 0, !0)
496
508
  ], 512)) : p("", !0)
497
509
  ], 10, Me));
498
510
  }
499
- }, at = /* @__PURE__ */ Te(Je, [["__scopeId", "data-v-cb98a9a9"]]);
511
+ }, tt = /* @__PURE__ */ Te(Xe, [["__scopeId", "data-v-7bd49c24"]]);
500
512
  export {
501
- at as default
513
+ tt as default
502
514
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-zUb8kR1J.cjs"),Q=require("./Title-DzXs2Yc7.cjs"),A=require("./usePrinter-5cM3APqp.cjs"),Z=require("./vue-ui-skeleton-BeHnq9mY.cjs"),T=require("./useNestedProp--dgI0yN_.cjs"),ee=require("./PackageVersion-XAKkfWzS.cjs"),te=require("./PenAndPaper-D8M7psAi.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-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,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-CBrvip7f.js";
3
- import { _ as Ne } from "./Title-C-TBUf-X.js";
4
- import { u as Me, U as Te } from "./usePrinter-vaejWdsw.js";
5
- import Se from "./vue-ui-skeleton-f6rHKS81.js";
6
- import { u as Z } from "./useNestedProp-BTqkOQhK.js";
7
- import { _ as Ue } from "./PackageVersion-Br64Mym2.js";
8
- import { P as qe } from "./PenAndPaper-Xjz8xzgj.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-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";
9
9
  import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const Ge = ["id"], Ve = {
11
11
  key: 1,
@@ -1,10 +1,10 @@
1
1
  import { ref as n, onMounted as Q, onBeforeUnmount as Y, computed as z, watch as Z, openBlock as l, createElementBlock as r, normalizeStyle as f, createBlock as ee, createCommentVNode as v, unref as te, createVNode as M, createElementVNode as C, mergeProps as V, renderSlot as E, normalizeProps as O, guardReactiveProps as U, toDisplayString as ae } from "vue";
2
- import { u as se } from "./useNestedProp-BTqkOQhK.js";
3
- import { u as le, c as oe, X as re, E as W } from "./index-CBrvip7f.js";
2
+ import { u as se } from "./useNestedProp-mBik37PJ.js";
3
+ import { u as le, c as oe, X as re, E as W } from "./index-DT2Q6wHA.js";
4
4
  import { t as ue, u as ie } from "./useResponsive-CoxXLe23.js";
5
- import P from "./BaseIcon-Dr_DIMeA.js";
6
- import { _ as ne } from "./Title-C-TBUf-X.js";
7
- import { _ as ce } from "./PackageVersion-Br64Mym2.js";
5
+ import P from "./BaseIcon-CK7TNglK.js";
6
+ import { _ as ne } from "./Title-B5wIQ3bR.js";
7
+ import { _ as ce } from "./PackageVersion-tBXJRRcv.js";
8
8
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  class he {
10
10
  constructor(A, k, T, H = !0, x = !0) {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./useNestedProp--dgI0yN_.cjs"),g=require("./index-zUb8kR1J.cjs"),$=require("./useResponsive-BJ7DTGpm.cjs"),B=require("./BaseIcon-D_2AVea5.cjs"),j=require("./Title-DzXs2Yc7.cjs"),q=require("./PackageVersion-XAKkfWzS.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");class U{constructor(T,v,y,E=!0,b=!0){this.interval=v,this.elapsed=0,this.isPaused=!1;const S=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./useNestedProp-C01Nxqp-.cjs"),g=require("./index-kERGTkcX.cjs"),$=require("./useResponsive-BJ7DTGpm.cjs"),B=require("./BaseIcon-Ba0OA9UK.cjs"),j=require("./Title-0iC4gElN.cjs"),q=require("./PackageVersion-D7UEx2nV.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");class U{constructor(T,v,y,E=!0,b=!0){this.interval=v,this.elapsed=0,this.isPaused=!1;const S=`
2
2
  let interval;
3
3
  let elapsed = 0;
4
4
  let paused = false;