vue-data-ui 2.4.57 → 2.4.59

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 (202) hide show
  1. package/README.md +82 -51
  2. package/dist/{Arrow-BhwhLRcU.cjs → Arrow-Dudbi6k5.cjs} +1 -1
  3. package/dist/{Arrow-DelnKkT1.js → Arrow-DzS4HIXj.js} +1 -1
  4. package/dist/{BaseIcon-9gdEHMWK.js → BaseIcon-BbU81zOd.js} +1 -1
  5. package/dist/{BaseIcon-DujPvdJ_.cjs → BaseIcon-DD3GLrhS.cjs} +1 -1
  6. package/dist/{DataTable-BUflha5V.cjs → DataTable-BHCbVv8x.cjs} +1 -1
  7. package/dist/{DataTable-DgbrnD__.js → DataTable-CFUKU8PU.js} +2 -2
  8. package/dist/{Legend-V3K-4ipN.cjs → Legend-BYngLoV6.cjs} +1 -1
  9. package/dist/{Legend-HooNAKB_.js → Legend-f52bnttJ.js} +1 -1
  10. package/dist/{PackageVersion-S3SzpuwC.js → PackageVersion-C_FFs0BP.js} +1 -1
  11. package/dist/{PackageVersion-dQYEsTLp.cjs → PackageVersion-nr7f_VNw.cjs} +1 -1
  12. package/dist/{PenAndPaper-1h87IVla.cjs → PenAndPaper-C9v0NXEg.cjs} +1 -1
  13. package/dist/{PenAndPaper-v846FwcH.js → PenAndPaper-Dx24BtRW.js} +3 -3
  14. package/dist/{Shape-D7aacHaz.js → Shape-Ct2x6qZx.js} +1 -1
  15. package/dist/{Shape-DV5sH0dX.cjs → Shape-Dkt-vkTl.cjs} +1 -1
  16. package/dist/{Slicer-BRxR5OYL.cjs → Slicer-C0cvEMOy.cjs} +1 -1
  17. package/dist/{Slicer-BXCORSCz.js → Slicer-Duke9qno.js} +2 -2
  18. package/dist/{Title-B-EsW0Q2.cjs → Title-CpfNWbUc.cjs} +1 -1
  19. package/dist/{Title-DLjHHdyq.js → Title-zZtEcB9F.js} +1 -1
  20. package/dist/{Tooltip-BDaa-67h.js → Tooltip-DDJ2Wvjy.js} +1 -1
  21. package/dist/{Tooltip-B7gYRLGN.cjs → Tooltip-DZuVxmLc.cjs} +1 -1
  22. package/dist/documentation/installation.md +48 -48
  23. package/dist/{index-CI-N9klv.js → index-B9RAElpI.js} +2 -2
  24. package/dist/index-DaDv7p0W.cjs +9 -0
  25. package/dist/style.css +1 -1
  26. package/dist/{useNestedProp-D-zaZbSR.cjs → useNestedProp-DkpuL8Iv.cjs} +1 -1
  27. package/dist/{useNestedProp-D1eJ0dvv.js → useNestedProp-DuruL3Nt.js} +1 -1
  28. package/dist/{usePrinter-H2UFIe6n.cjs → usePrinter-BIHu0O5X.cjs} +1 -1
  29. package/dist/{usePrinter-CXc8xCKk.js → usePrinter-CwTAwqtF.js} +1 -1
  30. package/dist/{vue-data-ui-CvfX2D1d.cjs → vue-data-ui-BXCJgMfu.cjs} +1 -1
  31. package/dist/{vue-data-ui-DuXblXhF.js → vue-data-ui-yknmkfFy.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-fvTVGk8O.js → vue-ui-3d-bar-BkbLoUhP.js} +170 -158
  35. package/dist/vue-ui-3d-bar-CHnh8ZH_.cjs +19 -0
  36. package/dist/{vue-ui-accordion-paZXh-GD.cjs → vue-ui-accordion-6Clt339w.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-CYLks1fW.js → vue-ui-accordion-rNA598L6.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-Ch3nY1Dx.js → vue-ui-age-pyramid-C3o5HfRK.js} +176 -164
  39. package/dist/vue-ui-age-pyramid-CKDDaRj_.cjs +1 -0
  40. package/dist/{vue-ui-annotator-BXbLcJ1L.cjs → vue-ui-annotator-BLilhXfT.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-DGupSF-o.js → vue-ui-annotator-huMOA-QF.js} +1 -1
  42. package/dist/{vue-ui-bullet-BSRXabBe.js → vue-ui-bullet-DxYdog9c.js} +155 -143
  43. package/dist/vue-ui-bullet-yTpejKsw.cjs +34 -0
  44. package/dist/{vue-ui-candlestick-Dww4XHwQ.js → vue-ui-candlestick-3lCgRxr0.js} +96 -84
  45. package/dist/vue-ui-candlestick-CmD40PpS.cjs +2 -0
  46. package/dist/vue-ui-carousel-table-BU8oAq6b.cjs +1 -0
  47. package/dist/{vue-ui-carousel-table-BZs-sxxu.js → vue-ui-carousel-table-D3JIrHMF.js} +97 -95
  48. package/dist/vue-ui-chestnut-BWRUxwWm.cjs +6 -0
  49. package/dist/{vue-ui-chestnut-CnupXXAM.js → vue-ui-chestnut-cWFqbqSU.js} +160 -148
  50. package/dist/{vue-ui-cursor-oqfOA98Q.js → vue-ui-cursor-DjWkFQEI.js} +2 -2
  51. package/dist/{vue-ui-cursor-smlBNiGG.cjs → vue-ui-cursor-DzJmB5h9.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-BNu7yNYm.js → vue-ui-dashboard-1dycrMNM.js} +2 -2
  53. package/dist/{vue-ui-dashboard-Dw_90R29.cjs → vue-ui-dashboard-BOjdgUEm.cjs} +1 -1
  54. package/dist/{vue-ui-digits-_8FbgFrI.cjs → vue-ui-digits-B8TVsqsB.cjs} +1 -1
  55. package/dist/{vue-ui-digits-qztPrOEN.js → vue-ui-digits-C4NWhIjg.js} +2 -2
  56. package/dist/vue-ui-donut-BPz8gXi5.cjs +1 -0
  57. package/dist/{vue-ui-donut-CK9dINFS.js → vue-ui-donut-CXBxDUoh.js} +291 -279
  58. package/dist/{vue-ui-donut-evolution-DpDpYw3f.js → vue-ui-donut-evolution-BgD7rCFk.js} +285 -273
  59. package/dist/vue-ui-donut-evolution-h3ZgYI48.cjs +1 -0
  60. package/dist/vue-ui-dumbbell-BCyFd1Lf.cjs +9 -0
  61. package/dist/{vue-ui-dumbbell-Dx1I89N9.js → vue-ui-dumbbell-DMp-Waih.js} +159 -147
  62. package/dist/{vue-ui-flow-DJNqydD1.js → vue-ui-flow-D-XBMcpC.js} +162 -150
  63. package/dist/vue-ui-flow-DB3_5wEr.cjs +1 -0
  64. package/dist/vue-ui-funnel-DJVmn_pN.cjs +1 -0
  65. package/dist/{vue-ui-funnel-mP8ftcS5.js → vue-ui-funnel-Dxb6o97C.js} +229 -215
  66. package/dist/{vue-ui-galaxy-3cOLS6lh.js → vue-ui-galaxy-C2eHqbLw.js} +148 -136
  67. package/dist/vue-ui-galaxy-CIBBO623.cjs +1 -0
  68. package/dist/{vue-ui-gauge-CN_zo833.js → vue-ui-gauge-B9M8ICMX.js} +199 -185
  69. package/dist/vue-ui-gauge-C_JArbcd.cjs +1 -0
  70. package/dist/vue-ui-gizmo-ETKRu3P5.cjs +1 -0
  71. package/dist/{vue-ui-gizmo-akkNcCWf.js → vue-ui-gizmo-OGIvFCA4.js} +45 -43
  72. package/dist/{vue-ui-heatmap-B3ClLioV.js → vue-ui-heatmap-C2BobYAF.js} +138 -126
  73. package/dist/vue-ui-heatmap-mPZepJ4V.cjs +1 -0
  74. package/dist/{vue-ui-history-plot-C-EqVFW-.js → vue-ui-history-plot-BtBDW5ha.js} +127 -115
  75. package/dist/vue-ui-history-plot-DgEFbRv3.cjs +1 -0
  76. package/dist/{vue-ui-kpi-C-axCKZx.js → vue-ui-kpi-BCwmp6i5.js} +36 -33
  77. package/dist/vue-ui-kpi-DZGoUp6y.cjs +1 -0
  78. package/dist/{vue-ui-mini-loader-Cal5W_q6.cjs → vue-ui-mini-loader-B_I1k10C.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-CsZ1zxJz.js → vue-ui-mini-loader-DWQfo-Ey.js} +2 -2
  80. package/dist/{vue-ui-molecule-BvNh7REY.js → vue-ui-molecule-CpWWvLlc.js} +212 -200
  81. package/dist/vue-ui-molecule-CqHsa4N7.cjs +1 -0
  82. package/dist/{vue-ui-mood-radar-C7v4dBNw.js → vue-ui-mood-radar-B4-AQAyE.js} +123 -111
  83. package/dist/vue-ui-mood-radar-Dx6ICJkv.cjs +1 -0
  84. package/dist/{vue-ui-nested-donuts-C08kpvMd.js → vue-ui-nested-donuts-C-afzEvx.js} +156 -144
  85. package/dist/vue-ui-nested-donuts-C8LG5ony.cjs +17 -0
  86. package/dist/vue-ui-onion-KC_zqQyz.cjs +5 -0
  87. package/dist/{vue-ui-onion-CTLBemDj.js → vue-ui-onion-wBz5dln6.js} +125 -113
  88. package/dist/vue-ui-parallel-coordinate-plot-BK1sUOyd.cjs +8 -0
  89. package/dist/{vue-ui-parallel-coordinate-plot-H1FdP6AE.js → vue-ui-parallel-coordinate-plot-BoiKoaod.js} +159 -147
  90. package/dist/vue-ui-quadrant-BJ3gSVgF.cjs +1 -0
  91. package/dist/{vue-ui-quadrant-Dd-LDy4T.js → vue-ui-quadrant-DY6yUyOl.js} +211 -199
  92. package/dist/{vue-ui-quick-chart-BeNivWrg.js → vue-ui-quick-chart-DBH9CgBI.js} +576 -540
  93. package/dist/vue-ui-quick-chart-OHwPApk1.cjs +15 -0
  94. package/dist/{vue-ui-radar-D9U_vOad.js → vue-ui-radar-DYnmlHtt.js} +183 -171
  95. package/dist/vue-ui-radar-nhy4Pqtc.cjs +1 -0
  96. package/dist/{vue-ui-rating-B7AlAqCY.js → vue-ui-rating-3LUgui--.js} +102 -98
  97. package/dist/vue-ui-rating-wl5jkxb5.cjs +1 -0
  98. package/dist/vue-ui-relation-circle-CGkAsJl8.cjs +1 -0
  99. package/dist/{vue-ui-relation-circle-CT23BNcW.js → vue-ui-relation-circle-Da09K_Ce.js} +129 -117
  100. package/dist/{vue-ui-rings-BZ7FYYxr.js → vue-ui-rings-BuVPBXNc.js} +150 -138
  101. package/dist/vue-ui-rings-DZfhibc4.cjs +2 -0
  102. package/dist/{vue-ui-scatter-DMr8OrC3.js → vue-ui-scatter-Bee79rib.js} +320 -308
  103. package/dist/vue-ui-scatter-ChYAlXb_.cjs +1 -0
  104. package/dist/{vue-ui-screenshot-BFV1qEsF.cjs → vue-ui-screenshot-Blz4fiO2.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-DHiX35pR.js → vue-ui-screenshot-CCnAaGB3.js} +1 -1
  106. package/dist/{vue-ui-skeleton-BIWgLDDf.cjs → vue-ui-skeleton-B24XJJ2p.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-owIhXtQF.js → vue-ui-skeleton-DVYD_VSe.js} +3 -3
  108. package/dist/vue-ui-smiley-CXOuAdIj.cjs +2 -0
  109. package/dist/{vue-ui-smiley-CCOQ6zjo.js → vue-ui-smiley-CdrTI5Rh.js} +208 -206
  110. package/dist/vue-ui-spark-trend-B08HYMm5.cjs +1 -0
  111. package/dist/{vue-ui-spark-trend-B56DI3Mc.js → vue-ui-spark-trend-Pd3JNy4G.js} +124 -112
  112. package/dist/{vue-ui-sparkbar-CMkozDkx.js → vue-ui-sparkbar-CTDWiUid.js} +100 -96
  113. package/dist/vue-ui-sparkbar-Dq1hwL7i.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-De06LRPj.js → vue-ui-sparkgauge-g0C7wuIH.js} +60 -48
  115. package/dist/vue-ui-sparkgauge-il4rmDdv.cjs +1 -0
  116. package/dist/vue-ui-sparkhistogram-CoRPiLpB.cjs +1 -0
  117. package/dist/{vue-ui-sparkhistogram-CBDd7jIn.js → vue-ui-sparkhistogram-Dk8IYZGB.js} +116 -104
  118. package/dist/vue-ui-sparkline-B_1J2ft2.cjs +1 -0
  119. package/dist/{vue-ui-sparkline-BJejWvTN.js → vue-ui-sparkline-Ca1ai-Mq.js} +124 -112
  120. package/dist/{vue-ui-sparkstackbar-DlnmPom2.js → vue-ui-sparkstackbar-CRGrf5y2.js} +85 -81
  121. package/dist/vue-ui-sparkstackbar-tkiKbZHo.cjs +1 -0
  122. package/dist/{vue-ui-stackbar-19XdLQXB.js → vue-ui-stackbar-QaavE5-F.js} +219 -207
  123. package/dist/vue-ui-stackbar-zk1K5gP3.cjs +6 -0
  124. package/dist/vue-ui-strip-plot-8Ksp5AzD.cjs +1 -0
  125. package/dist/{vue-ui-strip-plot-Bly8GoNP.js → vue-ui-strip-plot-gm_lr5A9.js} +113 -101
  126. package/dist/{vue-ui-table-BisPh85-.cjs → vue-ui-table-CPLd7hXM.cjs} +1 -1
  127. package/dist/{vue-ui-table-BUF6Pyfp.js → vue-ui-table-ceYZ6Wzd.js} +1 -1
  128. package/dist/vue-ui-table-heatmap-CSsYOFf7.cjs +1 -0
  129. package/dist/{vue-ui-table-heatmap-By-MmFiq.js → vue-ui-table-heatmap-CWQIOR58.js} +82 -78
  130. package/dist/{vue-ui-table-sparkline-DG70UNkU.js → vue-ui-table-sparkline-BHkqm0Sf.js} +78 -74
  131. package/dist/vue-ui-table-sparkline-hyL_92AC.cjs +1 -0
  132. package/dist/vue-ui-thermometer-CKiohIHn.cjs +1 -0
  133. package/dist/{vue-ui-thermometer-Vr2IP_p0.js → vue-ui-thermometer-Dvk3S7jR.js} +132 -120
  134. package/dist/vue-ui-timer-BUuk2p4C.cjs +64 -0
  135. package/dist/{vue-ui-timer-CD7gFOjN.js → vue-ui-timer-D0tGj6hK.js} +94 -82
  136. package/dist/{vue-ui-tiremarks-44pO3jx1.js → vue-ui-tiremarks-C2G0Sem6.js} +104 -94
  137. package/dist/vue-ui-tiremarks-Csng3xWI.cjs +1 -0
  138. package/dist/{vue-ui-treemap-CyOUM3-P.js → vue-ui-treemap-3iutCx61.js} +336 -332
  139. package/dist/vue-ui-treemap-CJjATl47.cjs +1 -0
  140. package/dist/{vue-ui-vertical-bar-wngOp0Zc.js → vue-ui-vertical-bar-DZz_tUTV.js} +188 -176
  141. package/dist/vue-ui-vertical-bar-DtuEIajX.cjs +4 -0
  142. package/dist/vue-ui-waffle-B-Uf38ml.cjs +1 -0
  143. package/dist/{vue-ui-waffle-CuN7i0ci.js → vue-ui-waffle-Cr4FGNwb.js} +140 -136
  144. package/dist/vue-ui-wheel-Bijmdum9.cjs +1 -0
  145. package/dist/{vue-ui-wheel-B_gLugLx.js → vue-ui-wheel-Da4DH062.js} +100 -88
  146. package/dist/{vue-ui-word-cloud-DKHGS0my.js → vue-ui-word-cloud-C3o4JBD2.js} +132 -120
  147. package/dist/vue-ui-word-cloud-Cjyh1I0J.cjs +1 -0
  148. package/dist/{vue-ui-xy-BK9R8MrJ.js → vue-ui-xy-BX_3ddck.js} +139 -127
  149. package/dist/{vue-ui-xy-canvas-DaT4HoWD.js → vue-ui-xy-canvas-DqzVCtbZ.js} +231 -227
  150. package/dist/{vue-ui-xy-canvas-gDaRsnBI.cjs → vue-ui-xy-canvas-ObtOgMlV.cjs} +2 -2
  151. package/dist/vue-ui-xy-gClSSwyU.cjs +3 -0
  152. package/package.json +1 -1
  153. package/dist/index-o6tXRhOr.cjs +0 -9
  154. package/dist/vue-ui-3d-bar-zKUnnMOY.cjs +0 -19
  155. package/dist/vue-ui-age-pyramid-Bg8Bexac.cjs +0 -1
  156. package/dist/vue-ui-bullet-DqM9h81O.cjs +0 -34
  157. package/dist/vue-ui-candlestick-C0PkovyK.cjs +0 -2
  158. package/dist/vue-ui-carousel-table-DbXCpYUm.cjs +0 -1
  159. package/dist/vue-ui-chestnut-Be4Lagdr.cjs +0 -6
  160. package/dist/vue-ui-donut-B7orj3vV.cjs +0 -1
  161. package/dist/vue-ui-donut-evolution-BmTzjKlH.cjs +0 -1
  162. package/dist/vue-ui-dumbbell-5yfcA-Of.cjs +0 -9
  163. package/dist/vue-ui-flow-Bar7LG9t.cjs +0 -1
  164. package/dist/vue-ui-funnel-lxHehCUr.cjs +0 -1
  165. package/dist/vue-ui-galaxy-B8zbGikp.cjs +0 -1
  166. package/dist/vue-ui-gauge-Bz1nzveF.cjs +0 -1
  167. package/dist/vue-ui-gizmo-C9XQ-7Sj.cjs +0 -1
  168. package/dist/vue-ui-heatmap-BW6dmp8j.cjs +0 -1
  169. package/dist/vue-ui-history-plot-Mp0zDeR-.cjs +0 -1
  170. package/dist/vue-ui-kpi-D8hh3p8f.cjs +0 -1
  171. package/dist/vue-ui-molecule-RkdIX-iW.cjs +0 -1
  172. package/dist/vue-ui-mood-radar-DLpDoq0G.cjs +0 -1
  173. package/dist/vue-ui-nested-donuts-BO249_PV.cjs +0 -17
  174. package/dist/vue-ui-onion-BjNQgHPX.cjs +0 -5
  175. package/dist/vue-ui-parallel-coordinate-plot-CoeVi-98.cjs +0 -8
  176. package/dist/vue-ui-quadrant-D701bdNz.cjs +0 -1
  177. package/dist/vue-ui-quick-chart-CRNEkxoM.cjs +0 -15
  178. package/dist/vue-ui-radar-3W9NRklj.cjs +0 -1
  179. package/dist/vue-ui-rating-DeuaL_cU.cjs +0 -1
  180. package/dist/vue-ui-relation-circle-B8JtK-JM.cjs +0 -1
  181. package/dist/vue-ui-rings-CZCTLghE.cjs +0 -2
  182. package/dist/vue-ui-scatter-DlA0xU5U.cjs +0 -1
  183. package/dist/vue-ui-smiley-BISneB7t.cjs +0 -2
  184. package/dist/vue-ui-spark-trend-lMzod-5S.cjs +0 -1
  185. package/dist/vue-ui-sparkbar-DcdDLl8l.cjs +0 -1
  186. package/dist/vue-ui-sparkgauge-BhwNRzrD.cjs +0 -1
  187. package/dist/vue-ui-sparkhistogram-D00ahrgs.cjs +0 -1
  188. package/dist/vue-ui-sparkline-CY92qVz0.cjs +0 -1
  189. package/dist/vue-ui-sparkstackbar-BjKL_6dq.cjs +0 -1
  190. package/dist/vue-ui-stackbar-T4VBFpDo.cjs +0 -6
  191. package/dist/vue-ui-strip-plot-CtjbMamo.cjs +0 -1
  192. package/dist/vue-ui-table-heatmap-CPn-jC0n.cjs +0 -1
  193. package/dist/vue-ui-table-sparkline-CIDuWZZs.cjs +0 -1
  194. package/dist/vue-ui-thermometer-CMvk1D7J.cjs +0 -1
  195. package/dist/vue-ui-timer-CUHgN89f.cjs +0 -64
  196. package/dist/vue-ui-tiremarks-w_gxHFeB.cjs +0 -1
  197. package/dist/vue-ui-treemap-CFhTEaxa.cjs +0 -1
  198. package/dist/vue-ui-vertical-bar-C51RKLB8.cjs +0 -4
  199. package/dist/vue-ui-waffle-CXZc4t27.cjs +0 -1
  200. package/dist/vue-ui-wheel-u9Vc7ZTZ.cjs +0 -1
  201. package/dist/vue-ui-word-cloud-tSXyXvd6.cjs +0 -1
  202. package/dist/vue-ui-xy-bX3g4COC.cjs +0 -3
@@ -1,32 +1,32 @@
1
- import { useCssVars as me, computed as d, onMounted as ke, ref as g, watch as be, openBlock as l, createElementBlock as n, normalizeClass as P, normalizeStyle as ee, unref as c, createBlock as F, createCommentVNode as i, createSlots as xe, withCtx as I, renderSlot as p, normalizeProps as G, guardReactiveProps as W, createVNode as _e, createElementVNode as v, Fragment as O, renderList as te, toDisplayString as we } from "vue";
2
- import { u as Ce, o as $e, e as se, g as Pe, c as Fe, t as Ie, a as Oe, p as x, b as Ae, v as f, d as A, X as Me, s as Ue, i as Ye, f as Ne } from "./index-CI-N9klv.js";
3
- import { _ as Se } from "./Title-DLjHHdyq.js";
4
- import { u as Te, U as qe } from "./usePrinter-CXc8xCKk.js";
5
- import Le from "./vue-ui-skeleton-owIhXtQF.js";
6
- import { u as oe } from "./useNestedProp-D1eJ0dvv.js";
7
- import { _ as Ve } from "./PackageVersion-S3SzpuwC.js";
8
- import { P as Ge } from "./PenAndPaper-v846FwcH.js";
9
- import { u as We } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const ze = ["id"], Be = {
1
+ import { useCssVars as me, computed as d, onMounted as ke, ref as p, watch as be, openBlock as a, createElementBlock as n, normalizeClass as P, normalizeStyle as ee, unref as h, createBlock as F, createCommentVNode as i, createSlots as xe, withCtx as O, renderSlot as g, normalizeProps as E, guardReactiveProps as G, createVNode as _e, createElementVNode as v, Fragment as I, renderList as te, toDisplayString as we } from "vue";
2
+ import { u as Ce, o as $e, e as se, g as Pe, c as Fe, t as Oe, a as Ie, p as x, b as Ae, v as f, d as A, X as Me, s as Ue, i as Ye, f as Ne } from "./index-B9RAElpI.js";
3
+ import { _ as Se } from "./Title-zZtEcB9F.js";
4
+ import { u as Te, U as qe } from "./usePrinter-CwTAwqtF.js";
5
+ import Le from "./vue-ui-skeleton-DVYD_VSe.js";
6
+ import { u as oe } from "./useNestedProp-DuruL3Nt.js";
7
+ import { _ as Ve } from "./PackageVersion-C_FFs0BP.js";
8
+ import { P as Ee } from "./PenAndPaper-Dx24BtRW.js";
9
+ import { u as Ge } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { _ as We } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const je = ["id"], ze = {
12
12
  key: 1,
13
13
  ref: "noTitle",
14
14
  class: "vue-data-ui-no-title-space",
15
15
  style: "height:36px; width: 100%;background:transparent"
16
- }, je = {
16
+ }, Be = {
17
17
  key: 2,
18
18
  style: "width:100%"
19
- }, De = ["xmlns", "viewBox"], He = {
19
+ }, De = ["xmlns", "viewBox"], He = ["width", "height"], Xe = {
20
20
  id: "vueUiPill",
21
21
  clipPathUnits: "objectBoundingBox"
22
- }, Xe = ["fill"], Re = ["id"], Je = ["stop-color"], Ke = ["stop-color"], Qe = ["stop-color"], Ze = { "clip-path": "url(#vueUiPill)" }, et = ["x", "y", "height", "width"], tt = ["x", "y", "height", "width", "fill"], st = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], at = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], lt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], rt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ut = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], nt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ct = ["x", "y", "height", "width"], ht = ["y", "x", "fill", "font-size", "font-weight"], dt = {
22
+ }, Re = ["fill"], Je = ["id"], Ke = ["stop-color"], Qe = ["stop-color"], Ze = ["stop-color"], et = { "clip-path": "url(#vueUiPill)" }, tt = ["x", "y", "height", "width"], st = ["x", "y", "height", "width", "fill"], ot = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], at = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], lt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], rt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], nt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ut = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ht = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ct = ["x", "y", "height", "width"], dt = ["y", "x", "fill", "font-size", "font-weight"], vt = {
23
23
  key: 5,
24
24
  class: "vue-data-ui-watermark"
25
- }, vt = {
25
+ }, yt = {
26
26
  key: 6,
27
27
  ref: "source",
28
28
  dir: "auto"
29
- }, yt = {
29
+ }, ft = {
30
30
  __name: "vue-ui-thermometer",
31
31
  props: {
32
32
  dataset: {
@@ -43,22 +43,22 @@ const ze = ["id"], Be = {
43
43
  }
44
44
  },
45
45
  setup(_, { expose: ae }) {
46
- const a = _;
46
+ const l = _;
47
47
  me((s) => ({
48
- "47ac6abe": he.value,
49
- cafb14e0: ce.value,
50
- "02502e7d": ie.value
48
+ "7f5072bd": ce.value,
49
+ "575f6d71": he.value,
50
+ "041baa9e": ie.value
51
51
  }));
52
- const { vue_ui_thermometer: le } = Ce(), M = d(() => !!a.dataset && Object.keys(a.dataset).length);
52
+ const { vue_ui_thermometer: le } = Ce(), M = d(() => !!l.dataset && Object.keys(l.dataset).length);
53
53
  ke(() => {
54
- E();
54
+ W();
55
55
  });
56
- function E() {
57
- $e(a.dataset) ? se({
56
+ function W() {
57
+ $e(l.dataset) ? se({
58
58
  componentName: "VueUiThermometer",
59
59
  type: "dataset"
60
60
  }) : Pe({
61
- datasetObject: a.dataset,
61
+ datasetObject: l.dataset,
62
62
  requiredAttributes: ["value", "from", "to"]
63
63
  }).forEach((s) => {
64
64
  se({
@@ -68,30 +68,30 @@ const ze = ["id"], Be = {
68
68
  });
69
69
  });
70
70
  }
71
- const m = g(Fe()), U = g(null), z = g(0), B = g(0), e = d({
71
+ const m = p(Fe()), U = p(null), j = p(0), z = p(0), e = d({
72
72
  get: () => H(),
73
73
  set: (s) => s
74
- }), { userOptionsVisible: Y, setUserOptionsVisibility: j, keepUserOptionState: D } = We({ config: e.value });
74
+ }), { userOptionsVisible: Y, setUserOptionsVisibility: B, keepUserOptionState: D } = Ge({ config: e.value });
75
75
  function H() {
76
76
  const s = oe({
77
- userConfig: a.config,
77
+ userConfig: l.config,
78
78
  defaultConfig: le
79
79
  });
80
80
  return s.theme ? {
81
81
  ...oe({
82
- userConfig: Ie.vue_ui_thermometer[s.theme] || a.config,
82
+ userConfig: Oe.vue_ui_thermometer[s.theme] || l.config,
83
83
  defaultConfig: s
84
84
  }),
85
- customPalette: Oe[s.theme] || x
85
+ customPalette: Ie[s.theme] || x
86
86
  } : s;
87
87
  }
88
- be(() => a.config, (s) => {
89
- e.value = H(), Y.value = !e.value.showOnChartHover, E(), B.value += 1;
88
+ be(() => l.config, (s) => {
89
+ e.value = H(), Y.value = !e.value.showOnChartHover, W(), z.value += 1;
90
90
  }, { deep: !0 });
91
91
  const { isPrinting: X, isImaging: R, generatePdf: J, generateImage: K } = Te({
92
92
  elementId: `thermometer__${m.value}`,
93
93
  fileName: e.value.style.title.text || "vue-ui-thermometer"
94
- }), re = d(() => e.value.userOptions.show && !e.value.style.title.text), w = d(() => Ae(e.value.customPalette)), ue = d(() => e.value.style.chart.thermometer.width), y = d(() => a.dataset.steps || 10), h = g({
94
+ }), re = d(() => e.value.userOptions.show && !e.value.style.title.text), w = d(() => Ae(e.value.customPalette)), ne = d(() => e.value.style.chart.thermometer.width), y = d(() => l.dataset.steps || 10), c = p({
95
95
  top: e.value.style.chart.padding.top,
96
96
  left: e.value.style.chart.padding.left,
97
97
  right: e.value.style.chart.padding.right,
@@ -120,32 +120,32 @@ const ze = ["id"], Be = {
120
120
  return s.toString(16).padStart(2, "0");
121
121
  }
122
122
  const o = d(() => {
123
- const s = ue.value + h.value.left + h.value.right, r = e.value.style.chart.height;
123
+ const s = ne.value + c.value.left + c.value.right, r = e.value.style.chart.height;
124
124
  return {
125
125
  width: s,
126
- left: h.value.left,
127
- right: s - h.value.right,
128
- top: h.value.top,
129
- bottom: r - h.value.bottom,
126
+ left: c.value.left,
127
+ right: s - c.value.right,
128
+ top: c.value.top,
129
+ bottom: r - c.value.bottom,
130
130
  height: r
131
131
  };
132
- }), ne = d(() => o.value), T = d(() => {
133
- const s = f(a.dataset.from) < 0 ? Math.abs(f(a.dataset.from)) : f(a.dataset.from), r = f(a.dataset.to) < 0 ? Math.abs(f(a.dataset.to)) : f(a.dataset.to);
132
+ }), ue = d(() => o.value), T = d(() => {
133
+ const s = f(l.dataset.from) < 0 ? Math.abs(f(l.dataset.from)) : f(l.dataset.from), r = f(l.dataset.to) < 0 ? Math.abs(f(l.dataset.to)) : f(l.dataset.to);
134
134
  let t = 0;
135
- return f(a.dataset.to) > 0 ? t = s + r : s > r ? t = s - r : t = r - s, (1 - (Math.abs(f(a.dataset.from)) + f(a.dataset.value)) / t) * (o.value.height - h.value.top - h.value.bottom);
136
- }), ie = d(() => `${T.value}px`), ce = d(() => `${o.value.height - e.value.style.chart.padding.bottom - h.value.top}px`), he = d(() => `${e.value.style.chart.animation.speedMs}ms`), de = d(() => {
137
- if (a.dataset.colors) {
138
- if (!a.dataset.colors.from)
139
- return C(w.value[0] || x[0], A(a.dataset.colors.to), y.value || 10);
140
- if (!a.dataset.colors.to)
141
- return C(A(a.dataset.colors.from), w.value[1] || x[1], y.value || 10);
135
+ return f(l.dataset.to) > 0 ? t = s + r : s > r ? t = s - r : t = r - s, (1 - (Math.abs(f(l.dataset.from)) + f(l.dataset.value)) / t) * (o.value.height - c.value.top - c.value.bottom);
136
+ }), ie = d(() => `${T.value}px`), he = d(() => `${o.value.height - e.value.style.chart.padding.bottom - c.value.top}px`), ce = d(() => `${e.value.style.chart.animation.speedMs}ms`), de = d(() => {
137
+ if (l.dataset.colors) {
138
+ if (!l.dataset.colors.from)
139
+ return C(w.value[0] || x[0], A(l.dataset.colors.to), y.value || 10);
140
+ if (!l.dataset.colors.to)
141
+ return C(A(l.dataset.colors.from), w.value[1] || x[1], y.value || 10);
142
142
  } else
143
143
  return C(w.value[1] || x[1], w.value[0] || x[0], y.value || 10);
144
- return C(A(a.dataset.colors.from), A(a.dataset.colors.to), y.value || 10);
144
+ return C(A(l.dataset.colors.from), A(l.dataset.colors.to), y.value || 10);
145
145
  }), Z = d(() => {
146
146
  const s = [];
147
147
  let r = 0;
148
- const t = o.value.height - h.value.top - h.value.bottom;
148
+ const t = o.value.height - c.value.top - c.value.bottom;
149
149
  for (let u = 0; u < t - 1; u += t / y.value)
150
150
  s.push({
151
151
  x: o.value.left,
@@ -157,11 +157,11 @@ const ze = ["id"], Be = {
157
157
  height: t / y.value
158
158
  }), r += 1;
159
159
  return s;
160
- }), k = g(!1);
160
+ }), k = p(!1);
161
161
  function ve(s) {
162
- k.value = s, z.value += 1;
162
+ k.value = s, j.value += 1;
163
163
  }
164
- const $ = g(!1);
164
+ const $ = p(!1);
165
165
  function q() {
166
166
  $.value = !$.value;
167
167
  }
@@ -169,16 +169,16 @@ const ze = ["id"], Be = {
169
169
  generatePdf: J,
170
170
  generateImage: K,
171
171
  toggleAnnotator: q
172
- }), (s, r) => (l(), n("div", {
172
+ }), (s, r) => (a(), n("div", {
173
173
  ref_key: "thermoChart",
174
174
  ref: U,
175
175
  class: P(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
176
176
  style: ee(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
177
177
  id: `thermometer__${m.value}`,
178
- onMouseenter: r[0] || (r[0] = () => c(j)(!0)),
179
- onMouseleave: r[1] || (r[1] = () => c(j)(!1))
178
+ onMouseenter: r[0] || (r[0] = () => h(B)(!0)),
179
+ onMouseleave: r[1] || (r[1] = () => h(B)(!1))
180
180
  }, [
181
- e.value.userOptions.buttons.annotator ? (l(), F(Ge, {
181
+ e.value.userOptions.buttons.annotator ? (a(), F(Ee, {
182
182
  key: 0,
183
183
  parent: U.value,
184
184
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -186,10 +186,10 @@ const ze = ["id"], Be = {
186
186
  active: $.value,
187
187
  onClose: q
188
188
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : i("", !0),
189
- re.value ? (l(), n("div", Be, null, 512)) : i("", !0),
190
- e.value.style.title.text ? (l(), n("div", je, [
191
- (l(), F(Se, {
192
- key: `title_${B.value}`,
189
+ re.value ? (a(), n("div", ze, null, 512)) : i("", !0),
190
+ e.value.style.title.text ? (a(), n("div", Be, [
191
+ (a(), F(Se, {
192
+ key: `title_${z.value}`,
193
193
  config: {
194
194
  title: {
195
195
  cy: "thermometer-div-title",
@@ -202,13 +202,13 @@ const ze = ["id"], Be = {
202
202
  }
203
203
  }, null, 8, ["config"]))
204
204
  ])) : i("", !0),
205
- e.value.userOptions.show && M.value && (c(D) || c(Y)) ? (l(), F(qe, {
205
+ e.value.userOptions.show && M.value && (h(D) || h(Y)) ? (a(), F(qe, {
206
206
  ref: "details",
207
- key: `user_options_${z.value}`,
207
+ key: `user_options_${j.value}`,
208
208
  backgroundColor: e.value.style.chart.backgroundColor,
209
209
  color: e.value.style.chart.color,
210
- isImaging: c(R),
211
- isPrinting: c(X),
210
+ isImaging: h(R),
211
+ isPrinting: h(X),
212
212
  uid: m.value,
213
213
  hasPdf: e.value.userOptions.buttons.pdf,
214
214
  hasImg: e.value.userOptions.buttons.img,
@@ -221,53 +221,65 @@ const ze = ["id"], Be = {
221
221
  hasAnnotator: e.value.userOptions.buttons.annotator,
222
222
  isAnnotation: $.value,
223
223
  onToggleFullscreen: ve,
224
- onGeneratePdf: c(J),
225
- onGenerateImage: c(K),
224
+ onGeneratePdf: h(J),
225
+ onGenerateImage: h(K),
226
226
  onToggleAnnotator: q,
227
227
  style: ee({
228
- visibility: c(D) ? c(Y) ? "visible" : "hidden" : "visible"
228
+ visibility: h(D) ? h(Y) ? "visible" : "hidden" : "visible"
229
229
  })
230
230
  }, xe({ _: 2 }, [
231
231
  s.$slots.optionPdf ? {
232
232
  name: "optionPdf",
233
- fn: I(() => [
234
- p(s.$slots, "optionPdf", {}, void 0, !0)
233
+ fn: O(() => [
234
+ g(s.$slots, "optionPdf", {}, void 0, !0)
235
235
  ]),
236
236
  key: "0"
237
237
  } : void 0,
238
238
  s.$slots.optionImg ? {
239
239
  name: "optionImg",
240
- fn: I(() => [
241
- p(s.$slots, "optionImg", {}, void 0, !0)
240
+ fn: O(() => [
241
+ g(s.$slots, "optionImg", {}, void 0, !0)
242
242
  ]),
243
243
  key: "1"
244
244
  } : void 0,
245
245
  s.$slots.optionFullscreen ? {
246
246
  name: "optionFullscreen",
247
- fn: I(({ toggleFullscreen: t, isFullscreen: u }) => [
248
- p(s.$slots, "optionFullscreen", G(W({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
247
+ fn: O(({ toggleFullscreen: t, isFullscreen: u }) => [
248
+ g(s.$slots, "optionFullscreen", E(G({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
249
249
  ]),
250
250
  key: "2"
251
251
  } : void 0,
252
252
  s.$slots.optionAnnotator ? {
253
253
  name: "optionAnnotator",
254
- fn: I(({ toggleAnnotator: t, isAnnotator: u }) => [
255
- p(s.$slots, "optionAnnotator", G(W({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
254
+ fn: O(({ toggleAnnotator: t, isAnnotator: u }) => [
255
+ g(s.$slots, "optionAnnotator", E(G({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
256
256
  ]),
257
257
  key: "3"
258
258
  } : void 0
259
259
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
260
- M.value ? (l(), n("svg", {
260
+ M.value ? (a(), n("svg", {
261
261
  key: 4,
262
- xmlns: c(Me),
262
+ xmlns: h(Me),
263
263
  class: P({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value }),
264
264
  width: "100%",
265
265
  viewBox: `0 0 ${o.value.width} ${o.value.height}`,
266
266
  style: "background:transparent"
267
267
  }, [
268
268
  _e(Ve),
269
+ s.$slots["chart-background"] ? (a(), n("foreignObject", {
270
+ key: 0,
271
+ x: 0,
272
+ y: 0,
273
+ width: o.value.width,
274
+ height: o.value.height,
275
+ style: {
276
+ pointerEvents: "none"
277
+ }
278
+ }, [
279
+ g(s.$slots, "chart-background", {}, void 0, !0)
280
+ ], 8, He)) : i("", !0),
269
281
  v("defs", null, [
270
- v("clipPath", He, [
282
+ v("clipPath", Xe, [
271
283
  v("rect", {
272
284
  x: "0",
273
285
  y: "0",
@@ -276,9 +288,9 @@ const ze = ["id"], Be = {
276
288
  rx: "0.5",
277
289
  ry: "0.07",
278
290
  fill: e.value.style.chart.backgroundColor
279
- }, null, 8, Xe)
291
+ }, null, 8, Re)
280
292
  ]),
281
- (l(!0), n(O, null, te(Z.value, (t, u) => (l(), n("linearGradient", {
293
+ (a(!0), n(I, null, te(Z.value, (t, u) => (a(), n("linearGradient", {
282
294
  id: `vueUiThermometerGradient_${u}_${m.value}`,
283
295
  x1: "0%",
284
296
  y1: "0%",
@@ -288,26 +300,26 @@ const ze = ["id"], Be = {
288
300
  v("stop", {
289
301
  offset: "0%",
290
302
  "stop-color": t.color
291
- }, null, 8, Je),
303
+ }, null, 8, Ke),
292
304
  v("stop", {
293
305
  offset: "50%",
294
- "stop-color": c(Ue)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
295
- }, null, 8, Ke),
306
+ "stop-color": h(Ue)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
307
+ }, null, 8, Qe),
296
308
  v("stop", {
297
309
  offset: "100%",
298
310
  "stop-color": t.color
299
- }, null, 8, Qe)
300
- ], 8, Re))), 256))
311
+ }, null, 8, Ze)
312
+ ], 8, Je))), 256))
301
313
  ]),
302
- v("g", Ze, [
314
+ v("g", et, [
303
315
  v("rect", {
304
316
  x: o.value.left,
305
317
  y: o.value.top,
306
- height: o.value.height - h.value.top - h.value.bottom,
307
- width: o.value.width - h.value.left - h.value.right,
318
+ height: o.value.height - c.value.top - c.value.bottom,
319
+ width: o.value.width - c.value.left - c.value.right,
308
320
  fill: "#FFFFFF"
309
- }, null, 8, et),
310
- (l(!0), n(O, null, te(Z.value, (t, u) => (l(), n("g", {
321
+ }, null, 8, tt),
322
+ (a(!0), n(I, null, te(Z.value, (t, u) => (a(), n("g", {
311
323
  key: `graduation_${u}`
312
324
  }, [
313
325
  v("rect", {
@@ -317,8 +329,8 @@ const ze = ["id"], Be = {
317
329
  width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
318
330
  fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${u}_${m.value})` : t.color,
319
331
  "shape-rendering": "crispEdges"
320
- }, null, 8, tt),
321
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
332
+ }, null, 8, st),
333
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (a(), n("line", {
322
334
  key: 0,
323
335
  x1: t.x,
324
336
  x2: t.x + 10,
@@ -327,9 +339,9 @@ const ze = ["id"], Be = {
327
339
  "stroke-width": e.value.style.chart.graduations.strokeWidth,
328
340
  stroke: e.value.style.chart.graduations.stroke,
329
341
  "stroke-linecap": "round"
330
- }, null, 8, st)) : i("", !0),
331
- e.value.style.chart.graduations.showIntermediate ? (l(), n(O, { key: 1 }, [
332
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
342
+ }, null, 8, ot)) : i("", !0),
343
+ e.value.style.chart.graduations.showIntermediate ? (a(), n(I, { key: 1 }, [
344
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (a(), n("line", {
333
345
  key: 0,
334
346
  x1: t.x,
335
347
  x2: t.x + 5,
@@ -338,8 +350,8 @@ const ze = ["id"], Be = {
338
350
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
339
351
  stroke: e.value.style.chart.graduations.stroke,
340
352
  "stroke-linecap": "round"
341
- }, null, 8, ot)) : i("", !0),
342
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
353
+ }, null, 8, at)) : i("", !0),
354
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (a(), n("line", {
343
355
  key: 1,
344
356
  x1: t.x,
345
357
  x2: t.x + 2.5,
@@ -348,8 +360,8 @@ const ze = ["id"], Be = {
348
360
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
349
361
  stroke: e.value.style.chart.graduations.stroke,
350
362
  "stroke-linecap": "round"
351
- }, null, 8, at)) : i("", !0),
352
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
363
+ }, null, 8, lt)) : i("", !0),
364
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (a(), n("line", {
353
365
  key: 2,
354
366
  x1: t.x,
355
367
  x2: t.x + 2.5,
@@ -358,9 +370,9 @@ const ze = ["id"], Be = {
358
370
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
359
371
  stroke: e.value.style.chart.graduations.stroke,
360
372
  "stroke-linecap": "round"
361
- }, null, 8, lt)) : i("", !0)
373
+ }, null, 8, rt)) : i("", !0)
362
374
  ], 64)) : i("", !0),
363
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
375
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (a(), n("line", {
364
376
  key: 2,
365
377
  x1: o.value.right,
366
378
  x2: o.value.right - 10,
@@ -369,9 +381,9 @@ const ze = ["id"], Be = {
369
381
  "stroke-width": e.value.style.chart.graduations.strokeWidth,
370
382
  stroke: e.value.style.chart.graduations.stroke,
371
383
  "stroke-linecap": "round"
372
- }, null, 8, rt)) : i("", !0),
373
- e.value.style.chart.graduations.showIntermediate ? (l(), n(O, { key: 3 }, [
374
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
384
+ }, null, 8, nt)) : i("", !0),
385
+ e.value.style.chart.graduations.showIntermediate ? (a(), n(I, { key: 3 }, [
386
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (a(), n("line", {
375
387
  key: 0,
376
388
  x1: o.value.right,
377
389
  x2: o.value.right - 5,
@@ -381,7 +393,7 @@ const ze = ["id"], Be = {
381
393
  stroke: e.value.style.chart.graduations.stroke,
382
394
  "stroke-linecap": "round"
383
395
  }, null, 8, ut)) : i("", !0),
384
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
396
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (a(), n("line", {
385
397
  key: 1,
386
398
  x1: o.value.right,
387
399
  x2: o.value.right - 2.5,
@@ -390,8 +402,8 @@ const ze = ["id"], Be = {
390
402
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
391
403
  stroke: e.value.style.chart.graduations.stroke,
392
404
  "stroke-linecap": "round"
393
- }, null, 8, nt)) : i("", !0),
394
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
405
+ }, null, 8, it)) : i("", !0),
406
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (a(), n("line", {
395
407
  key: 2,
396
408
  x1: o.value.right,
397
409
  x2: o.value.right - 2.5,
@@ -400,7 +412,7 @@ const ze = ["id"], Be = {
400
412
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
401
413
  stroke: e.value.style.chart.graduations.stroke,
402
414
  "stroke-linecap": "round"
403
- }, null, 8, it)) : i("", !0)
415
+ }, null, 8, ht)) : i("", !0)
404
416
  ], 64)) : i("", !0)
405
417
  ]))), 128)),
406
418
  v("rect", {
@@ -420,26 +432,26 @@ const ze = ["id"], Be = {
420
432
  fill: e.value.style.chart.label.color,
421
433
  "font-size": e.value.style.chart.label.fontSize,
422
434
  "font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
423
- }, we(c(Ye)(
435
+ }, we(h(Ye)(
424
436
  e.value.style.chart.label.formatter,
425
437
  _.dataset.value,
426
- c(Ne)({
438
+ h(Ne)({
427
439
  p: e.value.style.chart.label.prefix,
428
440
  v: _.dataset.value,
429
441
  s: e.value.style.chart.label.suffix,
430
442
  r: e.value.style.chart.label.rounding
431
443
  }),
432
444
  { datapoint: _.dataset }
433
- )), 11, ht),
434
- p(s.$slots, "svg", { svg: ne.value }, void 0, !0)
445
+ )), 11, dt),
446
+ g(s.$slots, "svg", { svg: ue.value }, void 0, !0)
435
447
  ], 10, De)) : i("", !0),
436
- s.$slots.watermark ? (l(), n("div", dt, [
437
- p(s.$slots, "watermark", G(W({ isPrinting: c(X) || c(R) })), void 0, !0)
448
+ s.$slots.watermark ? (a(), n("div", vt, [
449
+ g(s.$slots, "watermark", E(G({ isPrinting: h(X) || h(R) })), void 0, !0)
438
450
  ])) : i("", !0),
439
- s.$slots.source ? (l(), n("div", vt, [
440
- p(s.$slots, "source", {}, void 0, !0)
451
+ s.$slots.source ? (a(), n("div", yt, [
452
+ g(s.$slots, "source", {}, void 0, !0)
441
453
  ], 512)) : i("", !0),
442
- M.value ? i("", !0) : (l(), F(Le, {
454
+ M.value ? i("", !0) : (a(), F(Le, {
443
455
  key: 7,
444
456
  config: {
445
457
  type: "thermometer",
@@ -451,9 +463,9 @@ const ze = ["id"], Be = {
451
463
  }
452
464
  }
453
465
  }, null, 8, ["config"]))
454
- ], 46, ze));
466
+ ], 46, je));
455
467
  }
456
- }, $t = /* @__PURE__ */ Ee(yt, [["__scopeId", "data-v-90584bea"]]);
468
+ }, Pt = /* @__PURE__ */ We(ft, [["__scopeId", "data-v-f7910f15"]]);
457
469
  export {
458
- $t as default
470
+ Pt as default
459
471
  };
@@ -0,0 +1,64 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./useNestedProp-DkpuL8Iv.cjs"),g=require("./index-DaDv7p0W.cjs"),R=require("./useResponsive-BJ7DTGpm.cjs"),B=require("./BaseIcon-DD3GLrhS.cjs"),j=require("./Title-CpfNWbUc.cjs"),O=require("./PackageVersion-nr7f_VNw.cjs"),q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");class U{constructor(P,p,y,T=!0,b=!0){this.interval=p,this.elapsed=0,this.isPaused=!1;const S=`
2
+ let interval;
3
+ let elapsed = 0;
4
+ let paused = false;
5
+ let startTime;
6
+ let tickInterval;
7
+
8
+ onmessage = function(e) {
9
+ const { action, data } = e.data;
10
+
11
+ switch(action) {
12
+ case 'start':
13
+ startTime = Date.now();
14
+ tickInterval = data.interval;
15
+ elapsed = 0;
16
+ paused = false;
17
+ interval = setInterval(() => {
18
+ elapsed += tickInterval;
19
+ postMessage({ elapsed, timestamp: Date.now() });
20
+ }, tickInterval);
21
+ break;
22
+
23
+ case 'pause':
24
+ paused = true;
25
+ clearInterval(interval);
26
+ elapsed = Date.now() - startTime;
27
+ break;
28
+
29
+ case 'resume':
30
+ if (paused) {
31
+ startTime = Date.now() - elapsed;
32
+ interval = setInterval(() => {
33
+ elapsed += tickInterval;
34
+ postMessage({ elapsed, timestamp: Date.now() });
35
+ }, tickInterval);
36
+ }
37
+ paused = false;
38
+ break;
39
+
40
+ case 'stop':
41
+ clearInterval(interval);
42
+ elapsed = 0;
43
+ postMessage({ elapsed });
44
+ break;
45
+
46
+ case 'reset':
47
+ elapsed = 0;
48
+ clearInterval(interval);
49
+ postMessage({ elapsed });
50
+ break;
51
+
52
+ case 'lap':
53
+ postMessage({
54
+ elapsed,
55
+ timestamp: Date.now(),
56
+ action: 'lap'
57
+ });
58
+ break;
59
+
60
+ default:
61
+ break;
62
+ }
63
+ };
64
+ `,M=new Blob([S],{type:"application/javascript"}),k=URL.createObjectURL(M),n=new Worker(k);function _(u){let t=Math.floor(u/1e3),h=Math.floor(u%1e3/10),f=Math.floor(t/3600),a=Math.floor(t%3600/60),i=t%60,r="";return b&&(r+=String(f).padStart(2,"0")+":"),r+=String(a).padStart(2,"0")+":",r+=String(i).padStart(2,"0"),T&&(r+="."+String(h).padStart(2,"0")),r}this.start=()=>{this.isPaused=!1,n.postMessage({action:"start",data:{interval:this.interval}})},this.pause=()=>{this.isPaused?this.resume():(this.isPaused=!0,n.postMessage({action:"pause"}))},this.resume=()=>{this.isPaused&&(n.postMessage({action:"resume"}),this.isPaused=!1)},this.stop=()=>{n.postMessage({action:"stop"}),this.isPaused=!1},this.reset=()=>{n.postMessage({action:"reset"}),this.elapsed=0,this.isPaused=!1},this.restart=()=>{this.stop(),this.start()},this.lap=()=>new Promise(u=>{n.postMessage({action:"lap"});const t=h=>{const{elapsed:f,timestamp:a,action:i}=h.data;if(i==="lap"){const r=_(f);u({timestamp:a||0,elapsed:f,formatted:r})}};n.addEventListener("message",t,{once:!0})}),n.onmessage=u=>{const{elapsed:t,timestamp:h}=u.data;this.elapsed=t,P({timestamp:h||0,elapsed:this.elapsed,formatted:_(this.elapsed)})},n.onerror=u=>{y&&y(u)}}}const W=["xmlns","viewBox"],G=["width","height"],X={key:1},J=["id"],K=["stop-color"],Q=["stop-color"],Y=["cx","cy","r","fill","stroke","stroke-width"],Z=["d","stroke","stroke-width"],ee=["r","fill","stroke","stroke-width"],te=["r","fill","stroke","stroke-width"],ae=["x","y"],le=["x","y","font-size","fill","font-weight"],se={key:0,class:"vue-ui-timer-controls"},oe=["title"],re=["title"],ne=["title"],ue=["title"],ie=["title"],ce={__name:"vue-ui-timer",props:{config:{type:Object,default(){return{}}}},emits:["start","pause","reset","restart","lap"],setup($,{expose:P,emit:p}){const y=$,{vue_ui_timer:T}=g.useConfig(),b=e.ref(null),S=e.ref(null),M=e.ref(null),k=e.ref(null),n=e.ref(g.createUid()),_=e.ref(0);e.onMounted(()=>{u()});function u(){if(t.value.responsive){const l=R.throttle(()=>{const{width:o,height:c}=R.useResponsive({chart:b.value,title:t.value.style.title.text?S.value:null,legend:M.value});a.value.width=o,a.value.height=c,a.value.tracker.core=g.translateSize({relator:Math.min(o,c),adjuster:t.value.style.width,source:6*t.value.stopwatch.tracker.radiusRatio,threshold:1,fallback:1}),a.value.tracker.aura=g.translateSize({relator:Math.min(o,c),adjuster:t.value.style.width,source:12*t.value.stopwatch.tracker.aura.radiusRatio,threshold:1,fallback:1}),a.value.label=g.translateSize({relator:Math.min(o,c),adjuster:t.value.style.width,source:t.value.stopwatch.label.fontSize,threshold:10,fallback:10})});k.value=new ResizeObserver(l),k.value.observe(b.value.parentNode)}}e.onBeforeUnmount(()=>{k.value&&k.value.disconnect()});const t=e.computed({get:()=>h(),set:l=>l});function h(){return L.useNestedProp({userConfig:y.config,defaultConfig:T})}e.watch(()=>y.config,l=>{t.value=h(),u(),_.value+=1},{deep:!0});const f=e.computed(()=>{if(t.value.stopwatch.showHours&&t.value.stopwatch.showHundredth)return"00:00:00.00";if(t.value.stopwatch.showHours&&!t.value.stopwatch.showHundredth)return"00:00:00";if(!t.value.stopwatch.showHours&&t.value.stopwatch.showHundredth)return"00:00.00";if(!t.value.stopwatch.showHours&&!t.value.stopwatch.showHundredth)return"00:00"}),a=e.ref({height:t.value.style.height,width:t.value.style.width,tracker:{core:6*t.value.stopwatch.tracker.radiusRatio,aura:12*t.value.stopwatch.tracker.aura.radiusRatio},label:t.value.stopwatch.label.fontSize}),i=e.ref(0),r=new U(l=>D(l),10,"",t.value.stopwatch.showHundredth,t.value.stopwatch.showHours),N=e.ref(!0),s=e.ref(!1),d=e.ref(!1);function V(){p("start"),N.value&&r.start(),N.value=!1,s.value=!0}function x(){s.value&&(p("reset"),r.stop(),m.value=[],N.value=!0,s.value=!1)}function z(){d.value=!d.value,p("pause",i.value),r.pause()}function I(){s.value&&(d.value=!1,p("restart"),m.value=[],r.restart())}const m=e.ref([]);async function E(){if(!s.value||d.value)return;const l=await r.lap();l&&(m.value.push(l),p("lap",m.value))}function D({timestamp:l,elapsed:o,formatted:c}){i.value={timestamp:l,elapsed:o,formatted:c}}const v=e.computed(()=>Math.min(a.value.width,a.value.height)/2.5*t.value.stopwatch.track.radiusRatio);function F(l,o){const C=360/(o*1e3);return l*C%360}function H(l){let o=l*(Math.PI/180),c=a.value.width/2+v.value*Math.cos(o),C=a.value.height/2+v.value*Math.sin(o);return{cx:c,cy:C}}const w=e.computed(()=>{const l=F(i.value.elapsed,t.value.stopwatch.cycleSeconds),{cx:o,cy:c}=H(l-90),C=l>180?1:0;return{cx:o||a.value.width/2,cy:c||a.value.height/2-v.value,largeArcFlag:C,sweepFlag:1}});return P({start:V,pause:z,reset:x,restart:I,lap:E}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"timerChart",ref:b,class:"vue-ui-timer",style:e.normalizeStyle({fontFamily:t.value.style.fontFamily,width:"100%",height:t.value.responsive?"100%":"auto",textAlign:"center"})},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:S,style:e.normalizeStyle({width:"100%",background:t.value.style.backgroundColor})},[(e.openBlock(),e.createBlock(j._sfc_main,{key:`title_${_.value}`,config:{title:{cy:"title",...t.value.style.title},subtitle:{cy:"subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(g.XMLNS),viewBox:`0 0 ${a.value.width<=0?10:a.value.width} ${a.value.height<=0?10:a.value.height}`,style:e.normalizeStyle({maxWidth:"100%",overflow:"visible",background:t.value.style.backgroundColor})},[e.createVNode(O._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:a.value.width<=0?10:a.value.width,height:a.value.height<=0?10:a.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,G)):e.createCommentVNode("",!0),t.value.stopwatch.tracker.gradient.show?(e.openBlock(),e.createElementBlock("defs",X,[e.createElementVNode("radialGradient",{id:`tracker_gradient_${n.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.stopwatch.tracker.gradient.color},null,8,K),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.stopwatch.tracker.fill},null,8,Q)],8,J)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:a.value.width/2,cy:a.value.height/2,r:v.value,fill:t.value.stopwatch.track.fill,stroke:t.value.stopwatch.track.stroke,"stroke-width":t.value.stopwatch.track.strokeWidth},null,8,Y),t.value.stopwatch.cycleTrack.show?(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${a.value.width/2},${a.value.height/2-v.value} A ${v.value},${v.value} 0 ${w.value.largeArcFlag},${w.value.sweepFlag} ${w.value.cx},${w.value.cy}`,stroke:t.value.stopwatch.cycleTrack.stroke,"stroke-width":t.value.stopwatch.cycleTrack.strokeWidth,"stroke-linecap":"round",fill:"none"},null,8,Z)):e.createCommentVNode("",!0),e.createElementVNode("circle",e.mergeProps(w.value,{r:a.value.tracker.core,fill:t.value.stopwatch.tracker.gradient.show?`url(#tracker_gradient_${n.value})`:t.value.stopwatch.tracker.fill,stroke:t.value.stopwatch.tracker.stroke,"stroke-width":t.value.stopwatch.tracker.strokeWidth}),null,16,ee),t.value.stopwatch.tracker.aura.show?(e.openBlock(),e.createElementBlock("circle",e.mergeProps({key:3},w.value,{r:a.value.tracker.aura,fill:`${t.value.stopwatch.tracker.aura.fill}20`,stroke:t.value.stopwatch.tracker.aura.stroke,"stroke-width":t.value.stopwatch.tracker.aura.strokeWidth}),null,16,te)):e.createCommentVNode("",!0),l.$slots.time?(e.openBlock(),e.createElementBlock("foreignObject",{key:4,x:a.value.width/2,y:a.value.height/2,height:"0.1",width:"0.1",style:{overflow:"visible"}},[e.renderSlot(l.$slots,"time",e.normalizeProps(e.guardReactiveProps({...i.value})),void 0,!0)],8,ae)):(e.openBlock(),e.createElementBlock("text",{key:5,x:a.value.width/2,y:a.value.height/2+a.value.label/4,"font-size":a.value.label,"text-anchor":"middle",fill:t.value.stopwatch.label.color,"font-weight":t.value.stopwatch.label.bold?"bold":"normal",style:{"font-variant-numeric":"tabular-nums !important"}},e.toDisplayString(i.value.formatted||f.value),9,le))],12,W)),e.createElementVNode("div",{ref_key:"chartLegend",ref:M,style:e.normalizeStyle({width:"100%",backgroundColor:t.value.stopwatch.legend.backgroundColor})},[l.$slots.controls?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",se,[t.value.stopwatch.legend.buttons.start?(e.openBlock(),e.createElementBlock("button",{key:0,title:t.value.stopwatch.legend.buttonTitles.start,onClick:V,class:"vue-ui-timer-button",style:e.normalizeStyle({opacity:s.value?.2:1,cursor:s.value?"default":"pointer"})},[e.createVNode(B.default,{name:"play",stroke:t.value.stopwatch.legend.buttons.iconColor},null,8,["stroke"])],12,oe)):e.createCommentVNode("",!0),t.value.stopwatch.legend.buttons.pause?(e.openBlock(),e.createElementBlock("button",{key:1,title:d.value?t.value.stopwatch.legend.buttonTitles.resume:t.value.stopwatch.legend.buttonTitles.pause,onClick:z,class:"vue-ui-timer-button",style:e.normalizeStyle({opacity:s.value?1:.2,cursor:s.value?"pointer":"default"})},[e.createVNode(B.default,{name:"pause",stroke:t.value.stopwatch.legend.buttons.iconColor},null,8,["stroke"])],12,re)):e.createCommentVNode("",!0),t.value.stopwatch.legend.buttons.reset?(e.openBlock(),e.createElementBlock("button",{key:2,title:t.value.stopwatch.legend.buttonTitles.reset,onClick:x,class:"vue-ui-timer-button",style:e.normalizeStyle({opacity:s.value?1:.2,cursor:s.value?"pointer":"default"})},[e.createVNode(B.default,{name:"stop",stroke:t.value.stopwatch.legend.buttons.iconColor},null,8,["stroke"])],12,ne)):e.createCommentVNode("",!0),t.value.stopwatch.legend.buttons.restart?(e.openBlock(),e.createElementBlock("button",{key:3,title:t.value.stopwatch.legend.buttonTitles.restart,onClick:I,class:"vue-ui-timer-button",style:e.normalizeStyle({opacity:s.value?1:.2,cursor:s.value?"pointer":"default"})},[e.createVNode(B.default,{name:"restart",stroke:t.value.stopwatch.legend.buttons.iconColor},null,8,["stroke"])],12,ue)):e.createCommentVNode("",!0),t.value.stopwatch.legend.buttons.lap?(e.openBlock(),e.createElementBlock("button",{key:4,title:t.value.stopwatch.legend.buttonTitles.lap,onClick:E,class:"vue-ui-timer-button",style:e.normalizeStyle({opacity:s.value&&!d.value?1:.2,cursor:s.value&&!d.value?"pointer":"default"})},[e.createVNode(B.default,{name:"lap",stroke:t.value.stopwatch.legend.buttons.iconColor},null,8,["stroke"])],12,ie)):e.createCommentVNode("",!0)])),e.renderSlot(l.$slots,"controls",e.normalizeProps(e.guardReactiveProps({start:V,pause:z,reset:x,restart:I,lap:E,laps:m.value,isRunning:s.value,isPaused:d.value,...i.value})),void 0,!0),e.renderSlot(l.$slots,"laps",e.normalizeProps(e.guardReactiveProps({laps:m.value,lap:E,isRunning:s.value,isPaused:d.value,...i.value})),void 0,!0)],4)],4))}},de=q._export_sfc(ce,[["__scopeId","data-v-b9d21393"]]);exports.default=de;