vue-data-ui 2.4.0 → 2.4.2

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 +56 -54
  2. package/dist/{Arrow-CbntjQjr.cjs → Arrow-DLTRnzcG.cjs} +1 -1
  3. package/dist/{Arrow-NcE21Ngm.js → Arrow-JuK2z9IB.js} +1 -1
  4. package/dist/BaseIcon-BGExhz6v.cjs +1 -0
  5. package/dist/{BaseIcon-BUTpMnXi.js → BaseIcon-rRli6Sfv.js} +8 -4
  6. package/dist/{DataTable-BwH-MU-S.cjs → DataTable-DJzhv96s.cjs} +1 -1
  7. package/dist/{DataTable-DAgyf9zN.js → DataTable-DTk7C4Pr.js} +2 -2
  8. package/dist/{Legend-DBhpIX2x.js → Legend-CYF2gpXG.js} +23 -17
  9. package/dist/Legend-YZ7Hz3o1.cjs +1 -0
  10. package/dist/{PackageVersion-wB6dCDZw.js → PackageVersion-CvCRsT5_.js} +1 -1
  11. package/dist/{PackageVersion-Djty0wb2.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
  12. package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
  13. package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
  14. package/dist/{Shape-CQVJz33T.js → Shape-BpPn4eWR.js} +1 -1
  15. package/dist/{Shape-DQ0Hh2Gg.cjs → Shape-X2F-QV_B.cjs} +1 -1
  16. package/dist/{Slicer-CiSmaE0_.cjs → Slicer-CL0tP5a5.cjs} +1 -1
  17. package/dist/{Slicer-DXw23eOC.js → Slicer-CU7dRZR0.js} +2 -2
  18. package/dist/{Title-DlVZnHjs.js → Title-5VmBwT4i.js} +21 -17
  19. package/dist/Title-Co5jI5ed.cjs +1 -0
  20. package/dist/{Tooltip-DBzXz806.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
  21. package/dist/{Tooltip-CveCRFgK.js → Tooltip-Cj4EF7v1.js} +1 -1
  22. package/dist/documentation/installation.md +10 -9
  23. package/dist/{index-B0CpCD8z.js → index-DnVHQ2xI.js} +1138 -907
  24. package/dist/index-FfZRtJ6A.cjs +9 -0
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +101 -20
  27. package/dist/types/vue-data-ui.d.ts +101 -20
  28. package/dist/{useNestedProp-DGWP4D-K.js → useNestedProp-Cox0K0Y5.js} +1 -1
  29. package/dist/{useNestedProp-iuDCMc2p.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
  30. package/dist/usePrinter-BCAFeO_J.cjs +1 -0
  31. package/dist/{usePrinter-Dr30K4cu.js → usePrinter-BEeNAqS5.js} +230 -185
  32. package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
  33. package/dist/vue-data-ui-W7nnqn0v.js +261 -0
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +52 -51
  36. package/dist/{vue-ui-3d-bar-C3hYrYTV.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
  37. package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
  38. package/dist/{vue-ui-accordion-CmENcGVW.js → vue-ui-accordion-DspS4q3f.js} +3 -3
  39. package/dist/{vue-ui-accordion-Deyo7jw7.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
  40. package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
  41. package/dist/{vue-ui-age-pyramid-C075Lvfe.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
  42. package/dist/{vue-ui-annotator-Bb6fUz4x.js → vue-ui-annotator-BOofWpzv.js} +1 -1
  43. package/dist/{vue-ui-annotator-DslXalSQ.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
  44. package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
  45. package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
  46. package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
  47. package/dist/{vue-ui-candlestick-C4VEOmY_.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
  48. package/dist/{vue-ui-carousel-table-Coq4gg_P.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-DZfMMpZ7.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
  50. package/dist/{vue-ui-chestnut-CUnbj-Zb.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
  51. package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
  52. package/dist/{vue-ui-cursor-CtuPho-s.js → vue-ui-cursor-BM74l93B.js} +2 -2
  53. package/dist/{vue-ui-cursor-B9UvQwLp.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
  54. package/dist/{vue-ui-dashboard-8gQ1bGCn.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
  55. package/dist/{vue-ui-dashboard-KMTRqXzR.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
  56. package/dist/{vue-ui-digits-DSMNN4z_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
  57. package/dist/{vue-ui-digits-DuEyX8op.js → vue-ui-digits-DioaBnkB.js} +2 -2
  58. package/dist/vue-ui-donut-CplNylps.cjs +1 -0
  59. package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
  60. package/dist/{vue-ui-donut-evolution-DbojarYN.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
  61. package/dist/{vue-ui-donut-0xdYBc41.js → vue-ui-donut-ldqSm_JV.js} +345 -321
  62. package/dist/{vue-ui-dumbbell-BxhWjCvR.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
  63. package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
  64. package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
  65. package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
  66. package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-BddgLpP-.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
  68. package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
  69. package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
  70. package/dist/{vue-ui-gizmo-hXBWaB0c.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
  71. package/dist/{vue-ui-gizmo-DRASsqlp.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
  72. package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
  73. package/dist/{vue-ui-heatmap-B43q8UHu.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
  74. package/dist/{vue-ui-kpi-_GVnhxEd.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
  75. package/dist/{vue-ui-kpi-BiJnqtGR.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-DVZtFcHw.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-qvtu5jtI.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
  78. package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
  79. package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
  80. package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-iZJ0B1Wf.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
  82. package/dist/{vue-ui-nested-donuts-CovQfZ81.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
  83. package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
  84. package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
  85. package/dist/{vue-ui-onion-CJb2Pg0t.js → vue-ui-onion-LsEhBe4x.js} +226 -202
  86. package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
  87. package/dist/{vue-ui-parallel-coordinate-plot-CUA_fFC3.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
  88. package/dist/{vue-ui-quadrant-IAIp5IZq.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
  89. package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
  90. package/dist/{vue-ui-quick-chart-Bb2RQ6qI.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
  91. package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
  92. package/dist/{vue-ui-radar-mIQMBRHx.js → vue-ui-radar-20QhOUer.js} +255 -231
  93. package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
  94. package/dist/{vue-ui-rating-BGRWSTGr.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
  95. package/dist/{vue-ui-rating-DcJb7_bV.js → vue-ui-rating-DRWJsve1.js} +2 -2
  96. package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
  97. package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
  98. package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
  99. package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
  100. package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
  101. package/dist/{vue-ui-scatter-DiQJtMz1.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
  102. package/dist/{vue-ui-screenshot-BdnW3WFN.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
  103. package/dist/{vue-ui-screenshot-QRt5bT48.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
  104. package/dist/{vue-ui-skeleton-fqwO2mHD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-DEv_1TFa.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
  106. package/dist/{vue-ui-smiley-D-zRYR9g.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
  107. package/dist/{vue-ui-smiley-BAr3XuJG.js → vue-ui-smiley-ChNvxygm.js} +2 -2
  108. package/dist/{vue-ui-spark-trend-Br0GTMx_.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
  109. package/dist/{vue-ui-spark-trend-CS6jl2aN.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
  110. package/dist/{vue-ui-sparkbar-tgfbnVYO.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
  111. package/dist/{vue-ui-sparkbar-N8aFbuJv.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
  112. package/dist/{vue-ui-sparkgauge--hgbxLQS.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
  113. package/dist/{vue-ui-sparkgauge-CqH25hj7.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
  114. package/dist/{vue-ui-sparkhistogram-vVRA6Z_l.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
  115. package/dist/{vue-ui-sparkhistogram-Cry2PFGH.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
  116. package/dist/{vue-ui-sparkline-DXwqMlzQ.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
  117. package/dist/{vue-ui-sparkline-BZir7JxD.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
  118. package/dist/{vue-ui-sparkstackbar-Dc6tZvej.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
  119. package/dist/{vue-ui-sparkstackbar-CQjpberv.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
  120. package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
  121. package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
  122. package/dist/{vue-ui-strip-plot-C8dme7tS.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
  123. package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
  124. package/dist/{vue-ui-table-DGmUNjR_.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
  125. package/dist/{vue-ui-table-BvbXppa1.js → vue-ui-table-DQORPCDJ.js} +1 -1
  126. package/dist/{vue-ui-table-heatmap-ccoLJyce.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
  127. package/dist/{vue-ui-table-heatmap-Ch2UwsIw.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
  128. package/dist/{vue-ui-table-sparkline-DT5a8gHs.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
  129. package/dist/{vue-ui-table-sparkline-BZ8faxdR.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
  130. package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
  131. package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
  132. package/dist/{vue-ui-timer-CNpKGbIg.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
  133. package/dist/{vue-ui-timer-DE_m5wxu.js → vue-ui-timer-pi1SazTU.js} +5 -5
  134. package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
  135. package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
  136. package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
  137. package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
  138. package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
  139. package/dist/{vue-ui-vertical-bar-CVZI3v1Y.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
  140. package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
  141. package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
  142. package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
  143. package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
  144. package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
  145. package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
  146. package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
  147. package/dist/{vue-ui-xy-D3TaTkPR.js → vue-ui-xy-CqlRuFMc.js} +775 -751
  148. package/dist/{vue-ui-xy-canvas-ClETpddw.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
  149. package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
  150. package/package.json +1 -1
  151. package/dist/BaseIcon-7IlvRUX2.cjs +0 -1
  152. package/dist/Legend-CHQgjBuK.cjs +0 -1
  153. package/dist/Title-BHmTg9iK.cjs +0 -1
  154. package/dist/index-Dfhvf8hT.cjs +0 -9
  155. package/dist/usePrinter-BQQasUin.cjs +0 -1
  156. package/dist/vue-data-ui-BdSFeW_X.js +0 -256
  157. package/dist/vue-data-ui-BgVPGbxq.cjs +0 -9
  158. package/dist/vue-ui-3d-bar-DhHuwXZ1.cjs +0 -19
  159. package/dist/vue-ui-age-pyramid-DaenyRp2.cjs +0 -1
  160. package/dist/vue-ui-candlestick-CnVzd826.cjs +0 -2
  161. package/dist/vue-ui-chestnut-CLnJ0jmo.cjs +0 -6
  162. package/dist/vue-ui-donut-C4ek9m3R.cjs +0 -1
  163. package/dist/vue-ui-donut-evolution-B4TkwvNq.cjs +0 -1
  164. package/dist/vue-ui-dumbbell-Cn3spRSv.cjs +0 -9
  165. package/dist/vue-ui-flow-D00VdtGU.cjs +0 -1
  166. package/dist/vue-ui-flow-DreN8go4.js +0 -484
  167. package/dist/vue-ui-galaxy-DVN-S67V.cjs +0 -1
  168. package/dist/vue-ui-gauge-DYZYFzHP.cjs +0 -1
  169. package/dist/vue-ui-gauge-DoTctAHq.js +0 -494
  170. package/dist/vue-ui-heatmap-ldCySJFf.cjs +0 -1
  171. package/dist/vue-ui-molecule-DP9jhODZ.cjs +0 -1
  172. package/dist/vue-ui-molecule-Dpu7Xmu5.js +0 -774
  173. package/dist/vue-ui-mood-radar-BR0INhYL.cjs +0 -1
  174. package/dist/vue-ui-nested-donuts-CwIsGnyH.cjs +0 -17
  175. package/dist/vue-ui-onion-DjEChSmi.cjs +0 -5
  176. package/dist/vue-ui-parallel-coordinate-plot-B8Kl6AMk.cjs +0 -8
  177. package/dist/vue-ui-quadrant-CmdbW8yZ.cjs +0 -1
  178. package/dist/vue-ui-quick-chart-DcEk6Ho7.cjs +0 -15
  179. package/dist/vue-ui-radar-TjgO9_LA.cjs +0 -1
  180. package/dist/vue-ui-relation-circle-f0fKvSSw.js +0 -325
  181. package/dist/vue-ui-relation-circle-x4sKnxbi.cjs +0 -1
  182. package/dist/vue-ui-rings-B3mUyyQ9.cjs +0 -2
  183. package/dist/vue-ui-rings-M1PUv5Wu.js +0 -569
  184. package/dist/vue-ui-scatter-DF_nobsG.cjs +0 -1
  185. package/dist/vue-ui-stackbar-BF0M1KJf.js +0 -915
  186. package/dist/vue-ui-stackbar-BGmTwxvv.cjs +0 -6
  187. package/dist/vue-ui-strip-plot-DT9Od_To.cjs +0 -1
  188. package/dist/vue-ui-thermometer-BOs1_H4X.js +0 -416
  189. package/dist/vue-ui-thermometer-Biv2CIsy.cjs +0 -1
  190. package/dist/vue-ui-tiremarks-CTMS_E0z.js +0 -279
  191. package/dist/vue-ui-tiremarks-YU4wuZl3.cjs +0 -1
  192. package/dist/vue-ui-treemap-5Dm82baA.js +0 -792
  193. package/dist/vue-ui-treemap-C0E1_DGA.cjs +0 -1
  194. package/dist/vue-ui-vertical-bar-CVZHDENz.cjs +0 -4
  195. package/dist/vue-ui-waffle-Bf4epEaH.js +0 -758
  196. package/dist/vue-ui-waffle-DD09_Fdb.cjs +0 -1
  197. package/dist/vue-ui-wheel-BybAQ0bR.cjs +0 -1
  198. package/dist/vue-ui-wheel-DMvZZCzi.js +0 -258
  199. package/dist/vue-ui-word-cloud-B8hdGDYI.js +0 -574
  200. package/dist/vue-ui-word-cloud-MQ0kgdPw.cjs +0 -1
  201. package/dist/vue-ui-xy-B4C0WR56.cjs +0 -3
  202. package/dist/vue-ui-xy-canvas-qbn0PHMN.cjs +0 -9
@@ -0,0 +1,440 @@
1
+ import { useCssVars as ve, computed as h, onMounted as ye, ref as g, watch as fe, openBlock as l, createElementBlock as u, normalizeClass as P, normalizeStyle as ge, createBlock as F, createCommentVNode as i, unref as v, createSlots as me, withCtx as I, renderSlot as m, normalizeProps as G, guardReactiveProps as V, createVNode as pe, createElementVNode as d, Fragment as A, renderList as K, toDisplayString as ke } from "vue";
2
+ import { u as be, o as xe, e as Q, g as _e, c as we, t as Ce, a as $e, p as x, b as Pe, v as f, d as O, X as Fe, s as Ie, i as Ae, f as Oe } from "./index-DnVHQ2xI.js";
3
+ import { _ as Ye } from "./Title-5VmBwT4i.js";
4
+ import { u as Me, U as Ne } from "./usePrinter-BEeNAqS5.js";
5
+ import Se from "./vue-ui-skeleton-aZmkNzAe.js";
6
+ import { u as Z } from "./useNestedProp-Cox0K0Y5.js";
7
+ import { _ as Ue } from "./PackageVersion-CvCRsT5_.js";
8
+ import { P as qe } from "./PenAndPaper-Jb0pLt3G.js";
9
+ import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const Te = ["id"], Ge = {
11
+ key: 1,
12
+ style: "width:100%"
13
+ }, Ve = ["xmlns", "viewBox"], We = {
14
+ id: "vueUiPill",
15
+ clipPathUnits: "objectBoundingBox"
16
+ }, Ee = ["fill"], ze = ["id"], Be = ["stop-color"], je = ["stop-color"], De = ["stop-color"], He = { "clip-path": "url(#vueUiPill)" }, Xe = ["x", "y", "height", "width"], Re = ["x", "y", "height", "width", "fill"], Je = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Ke = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Qe = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Ze = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], et = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], tt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], st = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], at = ["x", "y", "height", "width"], lt = ["y", "x", "fill", "font-size", "font-weight"], rt = {
17
+ key: 4,
18
+ class: "vue-data-ui-watermark"
19
+ }, nt = {
20
+ __name: "vue-ui-thermometer",
21
+ props: {
22
+ dataset: {
23
+ type: Object,
24
+ default() {
25
+ return {};
26
+ }
27
+ },
28
+ config: {
29
+ type: Object,
30
+ default() {
31
+ return {};
32
+ }
33
+ }
34
+ },
35
+ setup(_, { expose: ee }) {
36
+ const a = _;
37
+ ve((o) => ({
38
+ "42399c50": re.value,
39
+ "2bb6dc94": le.value,
40
+ "1ff71c23": ae.value
41
+ }));
42
+ const { vue_ui_thermometer: te } = be(), Y = h(() => !!a.dataset && Object.keys(a.dataset).length);
43
+ ye(() => {
44
+ W();
45
+ });
46
+ function W() {
47
+ xe(a.dataset) ? Q({
48
+ componentName: "VueUiThermometer",
49
+ type: "dataset"
50
+ }) : _e({
51
+ datasetObject: a.dataset,
52
+ requiredAttributes: ["value", "from", "to"]
53
+ }).forEach((o) => {
54
+ Q({
55
+ componentName: "VueUiThermometer",
56
+ type: "datasetAttribute",
57
+ property: o
58
+ });
59
+ });
60
+ }
61
+ const p = g(we()), M = g(null), E = g(0), z = g(0), e = h({
62
+ get: () => B(),
63
+ set: (o) => o
64
+ });
65
+ function B() {
66
+ const o = Z({
67
+ userConfig: a.config,
68
+ defaultConfig: te
69
+ });
70
+ return o.theme ? {
71
+ ...Z({
72
+ userConfig: Ce.vue_ui_thermometer[o.theme] || a.config,
73
+ defaultConfig: o
74
+ }),
75
+ customPalette: $e[o.theme] || x
76
+ } : o;
77
+ }
78
+ fe(() => a.config, (o) => {
79
+ e.value = B(), W(), z.value += 1;
80
+ }, { deep: !0 });
81
+ const { isPrinting: j, isImaging: D, generatePdf: H, generateImage: X } = Me({
82
+ elementId: `thermometer__${p.value}`,
83
+ fileName: e.value.style.title.text || "vue-ui-thermometer"
84
+ }), w = h(() => Pe(e.value.customPalette)), oe = h(() => e.value.style.chart.thermometer.width), y = h(() => a.dataset.steps || 10), c = g({
85
+ top: e.value.style.chart.padding.top,
86
+ left: e.value.style.chart.padding.left,
87
+ right: e.value.style.chart.padding.right,
88
+ bottom: e.value.style.chart.padding.bottom
89
+ });
90
+ function C(o, n, t) {
91
+ const r = [], L = R(o), T = R(n);
92
+ for (let b = 0; b < t; b++) {
93
+ const ie = N(L.red, T.red, b, t), ce = N(L.green, T.green, b, t), he = N(L.blue, T.blue, b, t), de = `#${S(ie)}${S(ce)}${S(he)}`;
94
+ r.push(de);
95
+ }
96
+ return r;
97
+ }
98
+ function R(o) {
99
+ const n = o.slice(1);
100
+ return {
101
+ red: parseInt(n.slice(0, 2), 16),
102
+ green: parseInt(n.slice(2, 4), 16),
103
+ blue: parseInt(n.slice(4, 6), 16)
104
+ };
105
+ }
106
+ function N(o, n, t, r) {
107
+ return Math.round(o + (n - o) * t / r);
108
+ }
109
+ function S(o) {
110
+ return o.toString(16).padStart(2, "0");
111
+ }
112
+ const s = h(() => {
113
+ const o = oe.value + c.value.left + c.value.right, n = e.value.style.chart.height;
114
+ return {
115
+ width: o,
116
+ left: c.value.left,
117
+ right: o - c.value.right,
118
+ top: c.value.top,
119
+ bottom: n - c.value.bottom,
120
+ height: n
121
+ };
122
+ }), se = h(() => s.value), U = h(() => {
123
+ const o = f(a.dataset.from) < 0 ? Math.abs(f(a.dataset.from)) : f(a.dataset.from), n = f(a.dataset.to) < 0 ? Math.abs(f(a.dataset.to)) : f(a.dataset.to);
124
+ let t = 0;
125
+ return f(a.dataset.to) > 0 ? t = o + n : o > n ? t = o - n : t = n - o, (1 - (Math.abs(f(a.dataset.from)) + f(a.dataset.value)) / t) * (s.value.height - c.value.top - c.value.bottom);
126
+ }), ae = h(() => `${U.value}px`), le = h(() => `${s.value.height - e.value.style.chart.padding.bottom - c.value.top}px`), re = h(() => `${e.value.style.chart.animation.speedMs}ms`), ne = h(() => {
127
+ if (a.dataset.colors) {
128
+ if (!a.dataset.colors.from)
129
+ return C(w.value[0] || x[0], O(a.dataset.colors.to), y.value || 10);
130
+ if (!a.dataset.colors.to)
131
+ return C(O(a.dataset.colors.from), w.value[1] || x[1], y.value || 10);
132
+ } else
133
+ return C(w.value[1] || x[1], w.value[0] || x[0], y.value || 10);
134
+ return C(O(a.dataset.colors.from), O(a.dataset.colors.to), y.value || 10);
135
+ }), J = h(() => {
136
+ const o = [];
137
+ let n = 0;
138
+ const t = s.value.height - c.value.top - c.value.bottom;
139
+ for (let r = 0; r < t - 1; r += t / y.value)
140
+ o.push({
141
+ x: s.value.left,
142
+ y: s.value.top + r,
143
+ qYLess: s.value.top + r + t / y.value / 4,
144
+ halfY: s.value.top + r + t / y.value / 2,
145
+ qYMore: s.value.top + r + t / y.value / 4 * 3,
146
+ color: ne.value[n],
147
+ height: t / y.value
148
+ }), n += 1;
149
+ return o;
150
+ }), k = g(!1);
151
+ function ue(o) {
152
+ k.value = o, E.value += 1;
153
+ }
154
+ const $ = g(!1);
155
+ function q() {
156
+ $.value = !$.value;
157
+ }
158
+ return ee({
159
+ generatePdf: H,
160
+ generateImage: X,
161
+ toggleAnnotator: q
162
+ }), (o, n) => (l(), u("div", {
163
+ ref_key: "thermoChart",
164
+ ref: M,
165
+ class: P(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
166
+ style: ge(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
167
+ id: `thermometer__${p.value}`
168
+ }, [
169
+ e.value.userOptions.buttons.annotator ? (l(), F(qe, {
170
+ key: 0,
171
+ parent: M.value,
172
+ backgroundColor: e.value.style.chart.backgroundColor,
173
+ color: e.value.style.chart.color,
174
+ active: $.value,
175
+ onClose: q
176
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : i("", !0),
177
+ e.value.style.title.text ? (l(), u("div", Ge, [
178
+ (l(), F(Ye, {
179
+ key: `title_${z.value}`,
180
+ config: {
181
+ title: {
182
+ cy: "thermometer-div-title",
183
+ ...e.value.style.title
184
+ },
185
+ subtitle: {
186
+ cy: "thermometer-div-subtitle",
187
+ ...e.value.style.title.subtitle
188
+ }
189
+ }
190
+ }, null, 8, ["config"]))
191
+ ])) : i("", !0),
192
+ e.value.userOptions.show && Y.value ? (l(), F(Ne, {
193
+ ref: "details",
194
+ key: `user_options_${E.value}`,
195
+ backgroundColor: e.value.style.chart.backgroundColor,
196
+ color: e.value.style.chart.color,
197
+ isImaging: v(D),
198
+ isPrinting: v(j),
199
+ uid: p.value,
200
+ hasPdf: e.value.userOptions.buttons.pdf,
201
+ hasImg: e.value.userOptions.buttons.img,
202
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
203
+ hasXls: !1,
204
+ isFullscreen: k.value,
205
+ titles: { ...e.value.userOptions.buttonTitles },
206
+ chartElement: M.value,
207
+ position: e.value.userOptions.position,
208
+ hasAnnotator: e.value.userOptions.buttons.annotator,
209
+ isAnnotation: $.value,
210
+ onToggleFullscreen: ue,
211
+ onGeneratePdf: v(H),
212
+ onGenerateImage: v(X),
213
+ onToggleAnnotator: q
214
+ }, me({ _: 2 }, [
215
+ o.$slots.optionPdf ? {
216
+ name: "optionPdf",
217
+ fn: I(() => [
218
+ m(o.$slots, "optionPdf", {}, void 0, !0)
219
+ ]),
220
+ key: "0"
221
+ } : void 0,
222
+ o.$slots.optionImg ? {
223
+ name: "optionImg",
224
+ fn: I(() => [
225
+ m(o.$slots, "optionImg", {}, void 0, !0)
226
+ ]),
227
+ key: "1"
228
+ } : void 0,
229
+ o.$slots.optionFullscreen ? {
230
+ name: "optionFullscreen",
231
+ fn: I(({ toggleFullscreen: t, isFullscreen: r }) => [
232
+ m(o.$slots, "optionFullscreen", G(V({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
233
+ ]),
234
+ key: "2"
235
+ } : void 0,
236
+ o.$slots.optionAnnotator ? {
237
+ name: "optionAnnotator",
238
+ fn: I(({ toggleAnnotator: t, isAnnotator: r }) => [
239
+ m(o.$slots, "optionAnnotator", G(V({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
240
+ ]),
241
+ key: "3"
242
+ } : void 0
243
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : i("", !0),
244
+ Y.value ? (l(), u("svg", {
245
+ key: 3,
246
+ xmlns: v(Fe),
247
+ class: P({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value }),
248
+ width: "100%",
249
+ viewBox: `0 0 ${s.value.width} ${s.value.height}`,
250
+ style: "background:transparent"
251
+ }, [
252
+ pe(Ue),
253
+ d("defs", null, [
254
+ d("clipPath", We, [
255
+ d("rect", {
256
+ x: "0",
257
+ y: "0",
258
+ width: "1",
259
+ height: "1",
260
+ rx: "0.5",
261
+ ry: "0.07",
262
+ fill: e.value.style.chart.backgroundColor
263
+ }, null, 8, Ee)
264
+ ]),
265
+ (l(!0), u(A, null, K(J.value, (t, r) => (l(), u("linearGradient", {
266
+ id: `vueUiThermometerGradient_${r}_${p.value}`,
267
+ x1: "0%",
268
+ y1: "0%",
269
+ x2: "100%",
270
+ y2: "0%"
271
+ }, [
272
+ d("stop", {
273
+ offset: "0%",
274
+ "stop-color": t.color
275
+ }, null, 8, Be),
276
+ d("stop", {
277
+ offset: "50%",
278
+ "stop-color": v(Ie)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
279
+ }, null, 8, je),
280
+ d("stop", {
281
+ offset: "100%",
282
+ "stop-color": t.color
283
+ }, null, 8, De)
284
+ ], 8, ze))), 256))
285
+ ]),
286
+ d("g", He, [
287
+ d("rect", {
288
+ x: s.value.left,
289
+ y: s.value.top,
290
+ height: s.value.height - c.value.top - c.value.bottom,
291
+ width: s.value.width - c.value.left - c.value.right,
292
+ fill: "#FFFFFF"
293
+ }, null, 8, Xe),
294
+ (l(!0), u(A, null, K(J.value, (t, r) => (l(), u("g", {
295
+ key: `graduation_${r}`
296
+ }, [
297
+ d("rect", {
298
+ x: t.x,
299
+ y: t.y,
300
+ height: t.height,
301
+ width: s.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
302
+ fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${r}_${p.value})` : t.color,
303
+ "shape-rendering": "crispEdges"
304
+ }, null, 8, Re),
305
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
306
+ key: 0,
307
+ x1: t.x,
308
+ x2: t.x + 10,
309
+ y1: t.y,
310
+ y2: t.y,
311
+ "stroke-width": e.value.style.chart.graduations.strokeWidth,
312
+ stroke: e.value.style.chart.graduations.stroke,
313
+ "stroke-linecap": "round"
314
+ }, null, 8, Je)) : i("", !0),
315
+ e.value.style.chart.graduations.showIntermediate ? (l(), u(A, { key: 1 }, [
316
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
317
+ key: 0,
318
+ x1: t.x,
319
+ x2: t.x + 5,
320
+ y1: t.halfY,
321
+ y2: t.halfY,
322
+ "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
323
+ stroke: e.value.style.chart.graduations.stroke,
324
+ "stroke-linecap": "round"
325
+ }, null, 8, Ke)) : i("", !0),
326
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
327
+ key: 1,
328
+ x1: t.x,
329
+ x2: t.x + 2.5,
330
+ y1: t.qYLess,
331
+ y2: t.qYLess,
332
+ "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
333
+ stroke: e.value.style.chart.graduations.stroke,
334
+ "stroke-linecap": "round"
335
+ }, null, 8, Qe)) : i("", !0),
336
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
337
+ key: 2,
338
+ x1: t.x,
339
+ x2: t.x + 2.5,
340
+ y1: t.qYMore,
341
+ y2: t.qYMore,
342
+ "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
343
+ stroke: e.value.style.chart.graduations.stroke,
344
+ "stroke-linecap": "round"
345
+ }, null, 8, Ze)) : i("", !0)
346
+ ], 64)) : i("", !0),
347
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
348
+ key: 2,
349
+ x1: s.value.right,
350
+ x2: s.value.right - 10,
351
+ y1: t.y,
352
+ y2: t.y,
353
+ "stroke-width": e.value.style.chart.graduations.strokeWidth,
354
+ stroke: e.value.style.chart.graduations.stroke,
355
+ "stroke-linecap": "round"
356
+ }, null, 8, et)) : i("", !0),
357
+ e.value.style.chart.graduations.showIntermediate ? (l(), u(A, { key: 3 }, [
358
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
359
+ key: 0,
360
+ x1: s.value.right,
361
+ x2: s.value.right - 5,
362
+ y1: t.halfY,
363
+ y2: t.halfY,
364
+ "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
365
+ stroke: e.value.style.chart.graduations.stroke,
366
+ "stroke-linecap": "round"
367
+ }, null, 8, tt)) : i("", !0),
368
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
369
+ key: 1,
370
+ x1: s.value.right,
371
+ x2: s.value.right - 2.5,
372
+ y1: t.qYLess,
373
+ y2: t.qYLess,
374
+ "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
375
+ stroke: e.value.style.chart.graduations.stroke,
376
+ "stroke-linecap": "round"
377
+ }, null, 8, ot)) : i("", !0),
378
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
379
+ key: 2,
380
+ x1: s.value.right,
381
+ x2: s.value.right - 2.5,
382
+ y1: t.qYMore,
383
+ y2: t.qYMore,
384
+ "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
385
+ stroke: e.value.style.chart.graduations.stroke,
386
+ "stroke-linecap": "round"
387
+ }, null, 8, st)) : i("", !0)
388
+ ], 64)) : i("", !0)
389
+ ]))), 128)),
390
+ d("rect", {
391
+ class: P({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
392
+ x: s.value.left,
393
+ y: s.value.top,
394
+ height: U.value,
395
+ width: s.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
396
+ fill: "#FFFFFF66"
397
+ }, null, 10, at)
398
+ ]),
399
+ d("text", {
400
+ class: P({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
401
+ y: U.value + s.value.top + e.value.style.chart.label.fontSize / 3,
402
+ x: s.value.left - 10,
403
+ "text-anchor": "end",
404
+ fill: e.value.style.chart.label.color,
405
+ "font-size": e.value.style.chart.label.fontSize,
406
+ "font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
407
+ }, ke(v(Ae)(
408
+ e.value.style.chart.label.formatter,
409
+ _.dataset.value,
410
+ v(Oe)({
411
+ p: e.value.style.chart.label.prefix,
412
+ v: _.dataset.value,
413
+ s: e.value.style.chart.label.suffix,
414
+ r: e.value.style.chart.label.rounding
415
+ }),
416
+ { datapoint: _.dataset }
417
+ )), 11, lt),
418
+ m(o.$slots, "svg", { svg: se.value }, void 0, !0)
419
+ ], 10, Ve)) : i("", !0),
420
+ o.$slots.watermark ? (l(), u("div", rt, [
421
+ m(o.$slots, "watermark", G(V({ isPrinting: v(j) || v(D) })), void 0, !0)
422
+ ])) : i("", !0),
423
+ Y.value ? i("", !0) : (l(), F(Se, {
424
+ key: 5,
425
+ config: {
426
+ type: "thermometer",
427
+ style: {
428
+ backgroundColor: e.value.style.chart.backgroundColor,
429
+ thermometer: {
430
+ color: "#CCCCCC"
431
+ }
432
+ }
433
+ }
434
+ }, null, 8, ["config"]))
435
+ ], 14, Te));
436
+ }
437
+ }, mt = /* @__PURE__ */ Le(nt, [["__scopeId", "data-v-1974aec8"]]);
438
+ export {
439
+ mt as default
440
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-FfZRtJ6A.cjs"),K=require("./Title-Co5jI5ed.cjs"),O=require("./usePrinter-BCAFeO_J.cjs"),Q=require("./vue-ui-skeleton-Djv08J67.cjs"),T=require("./useNestedProp-q7byAAIJ.cjs"),Z=require("./PackageVersion-DVZtsuy4.cjs"),ee=require("./PenAndPaper-CyXm-yVL.cjs"),te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),oe=["id"],le={key:1,style:"width:100%"},re=["xmlns","viewBox"],ae={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},se=["fill"],ne=["id"],ue=["stop-color"],ce=["stop-color"],ie=["stop-color"],de={"clip-path":"url(#vueUiPill)"},he=["x","y","height","width"],ve=["x","y","height","width","fill"],me=["x1","x2","y1","y2","stroke-width","stroke"],pe=["x1","x2","y1","y2","stroke-width","stroke"],ye=["x1","x2","y1","y2","stroke-width","stroke"],fe=["x1","x2","y1","y2","stroke-width","stroke"],ge=["x1","x2","y1","y2","stroke-width","stroke"],ke=["x1","x2","y1","y2","stroke-width","stroke"],xe=["x1","x2","y1","y2","stroke-width","stroke"],be=["x1","x2","y1","y2","stroke-width","stroke"],_e=["x","y","height","width"],Ce=["y","x","fill","font-size","font-weight"],we={key:4,class:"vue-data-ui-watermark"},Ne={__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=>({"42399c50":W.value,"2bb6dc94":G.value,"1ff71c23":U.value}));const{vue_ui_thermometer:M}=r.useConfig(),g=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()),k=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}=O.usePrinter({elementId:`thermometer__${d.value}`,fileName:t.value.style.title.text||"vue-ui-thermometer"}),p=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),z=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 D=x(w.red,N.red,v,o),R=x(w.green,N.green,v,o),X=x(w.blue,N.blue,v,o),J=`#${b(D)}${b(R)}${b(X)}`;n.push(J)}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=z.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}}),L=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)}),U=e.computed(()=>`${_.value}px`),G=e.computed(()=>`${a.value.height-t.value.style.chart.padding.bottom-c.value.top}px`),W=e.computed(()=>`${t.value.style.chart.animation.speedMs}ms`),H=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)}),A=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:H.value[u],height:o/i.value}),u+=1;return l}),h=e.ref(!1);function j(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:k,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(ee.PenAndPaper,{key:0,parent:k.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),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",le,[(e.openBlock(),e.createBlock(K._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&&g.value?(e.openBlock(),e.createBlock(O.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:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,onToggleFullscreen:j,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),g.value?(e.openBlock(),e.createElementBlock("svg",{key:3,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(Z._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",ae,[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,se)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.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,ue),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(r.setOpacity)(o.color,100-t.value.style.chart.graduations.gradient.intensity)},null,8,ce),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,ie)],8,ne))),256))]),e.createElementVNode("g",de,[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,he),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.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,ve),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,me)):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,pe)):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,ye)):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,fe)):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,ge)):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,ke)):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,xe)):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,be)):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,_e)]),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,Ce),e.renderSlot(l.$slots,"svg",{svg:L.value},void 0,!0)],10,re)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",we,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref($)||e.unref(F)})),void 0,!0)])):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Q.default,{key:5,config:{type:"thermometer",style:{backgroundColor:t.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],14,oe))}},Be=te._export_sfc(Ne,[["__scopeId","data-v-1974aec8"]]);exports.default=Be;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./useNestedProp-iuDCMc2p.cjs"),g=require("./index-Dfhvf8hT.cjs"),$=require("./useResponsive-B3TrDDIG.cjs"),B=require("./BaseIcon-7IlvRUX2.cjs"),j=require("./Title-BHmTg9iK.cjs"),q=require("./PackageVersion-Djty0wb2.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-q7byAAIJ.cjs"),g=require("./index-FfZRtJ6A.cjs"),$=require("./useResponsive-B3TrDDIG.cjs"),B=require("./BaseIcon-BGExhz6v.cjs"),j=require("./Title-Co5jI5ed.cjs"),q=require("./PackageVersion-DVZtsuy4.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;
@@ -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-DGWP4D-K.js";
3
- import { u as le, c as oe, X as re, E as W } from "./index-B0CpCD8z.js";
2
+ import { u as se } from "./useNestedProp-Cox0K0Y5.js";
3
+ import { u as le, c as oe, X as re, E as W } from "./index-DnVHQ2xI.js";
4
4
  import { t as ue, u as ie } from "./useResponsive-NZB-WLRF.js";
5
- import P from "./BaseIcon-BUTpMnXi.js";
6
- import { _ as ne } from "./Title-DlVZnHjs.js";
7
- import { _ as ce } from "./PackageVersion-wB6dCDZw.js";
5
+ import P from "./BaseIcon-rRli6Sfv.js";
6
+ import { _ as ne } from "./Title-5VmBwT4i.js";
7
+ import { _ as ce } from "./PackageVersion-CvCRsT5_.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) {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),M=require("./useNestedProp-q7byAAIJ.cjs"),c=require("./index-FfZRtJ6A.cjs"),D=require("./Title-Co5jI5ed.cjs"),T=require("./usePrinter-BCAFeO_J.cjs"),R=require("./vue-ui-skeleton-Djv08J67.cjs"),X=require("./PackageVersion-DVZtsuy4.cjs"),Y=require("./PenAndPaper-CyXm-yVL.cjs"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=["id"],Q={key:1,style:"width:100%;background:transparent;padding-bottom:12px"},W=["xmlns","viewBox"],Z={key:0},ee=["d","stroke-width","stroke"],te={key:1},ae=["x1","y1","x2","y2","stroke-width","stroke"],oe=["x","y","font-size","fill","font-weight","text-anchor"],le={key:4,class:"vue-data-ui-watermark"},re={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(V,{expose:G}){const v=V,{vue_ui_tiremarks:j}=c.useConfig(),w=e.computed(()=>!!v.dataset&&Object.keys(v.dataset).length),x=e.ref(c.createUid()),$=e.ref(null),A=e.ref(0),z=e.ref(0),t=e.computed({get:()=>S(),set:a=>a});function S(){const a=M.useNestedProp({userConfig:v.config,defaultConfig:j});return a.theme?{...M.useNestedProp({userConfig:c.themes.vue_ui_tiremarks[a.theme]||v.config,defaultConfig:a})}:a}e.watch(()=>v.config,a=>{t.value=S(),q(),z.value+=1},{deep:!0});const{isPrinting:I,isImaging:N,generatePdf:F,generateImage:O}=T.usePrinter({elementId:x.value,fileName:t.value.style.chart.title.text||"vue-ui-tiremarks"}),n=e.ref(t.value.style.chart.animation.use?0:c.checkNaN(v.dataset.percentage));e.watch(()=>v.dataset,a=>{t.value.style.chart.animation.use?E(a.percentage):n.value=a.percentage||0},{deep:!0}),e.onMounted(()=>{q()});function E(a){let u=t.value.style.chart.animation.speed;const o=Math.abs(a-n.value)/(u*120);function r(){n.value<a?n.value=Math.min(n.value+o,a):n.value>a&&(n.value=Math.max(n.value-o,a)),n.value!==a&&requestAnimationFrame(r)}r()}function q(){c.objectIsEmpty(v.dataset)&&c.error({componentName:"VueUiTiremarks",type:"dataset"}),E(v.dataset.percentage||0)}const f=e.computed(()=>t.value.style.chart.layout.display==="vertical"),s=e.computed(()=>{const a={top:48,left:64,right:64,bottom:48};return f.value?{top:t.value.style.chart.percentage.verticalPosition==="top"?a.top:3,left:3,right:3,bottom:t.value.style.chart.percentage.verticalPosition==="bottom"?a.bottom:3}:{top:0,bottom:0,left:t.value.style.chart.percentage.horizontalPosition==="left"?a.left:3,right:t.value.style.chart.percentage.horizontalPosition==="right"?a.right:10}}),b=e.computed(()=>Object.values(s.value).reduce((a,u)=>a+u,0)),l=e.computed(()=>({height:f.value?312:56,width:f.value?56:312})),U=e.ref(100);e.computed(()=>v.dataset.percentage/U.value);const i=e.computed(()=>f.value?{mark:(l.value.height-b.value)/100*.5,space:(l.value.height-b.value)/100*.5}:{mark:(l.value.width-b.value)/100*.5,space:(l.value.width-b.value)/100*.5}),L=e.computed(()=>{const a=[];for(let o=0;o<100;o+=1){const r=t.value.style.chart.layout.ticks.gradient.show?c.shiftHue(t.value.style.chart.layout.activeColor,o/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.activeColor;if(f.value){const y=t.value.style.chart.layout.crescendo?(100-o)*(l.value.width-s.value.left-s.value.right)/100/3:0,d=s.value.left+4+y,h=l.value.width-s.value.right-4-y,p=l.value.height-s.value.bottom-o*i.value.mark-o*i.value.space-i.value.mark,m=l.value.height-s.value.bottom-o*i.value.mark-o*i.value.space-i.value.mark,k=(h-d)/t.value.style.chart.layout.curveAngleX,C=t.value.style.chart.layout.curveAngleY*((1+o)/100);a.push({x1:d,x2:h,y1:p,y2:m,curve:`M ${d} ${p} C ${d+k} ${p-C}, ${h-k} ${m-C}, ${h} ${m}`,color:r})}else{const y=t.value.style.chart.layout.crescendo?(100-o)*(l.value.height-s.value.top-s.value.bottom)/100/3:0,d=s.value.left+o*i.value.mark+o*i.value.space-i.value.mark,h=d,p=s.value.top+4+y,m=l.value.height-s.value.bottom-4-y,k=t.value.style.chart.layout.curveAngleY*((1+o)/100),C=(m-p)/t.value.style.chart.layout.curveAngleX;a.push({x1:d,x2:h,y1:p,y2:m,curve:`M ${d} ${p} C ${d+k} ${p+C}, ${h+k} ${m-C}, ${h} ${m}`,color:r})}}return a}),g=e.computed(()=>{let a,u,o;const r=t.value.style.chart.percentage.fontSize/3;return f.value?t.value.style.chart.percentage.verticalPosition==="top"?(a=l.value.width/2,u=s.value.top/2,o="middle"):t.value.style.chart.percentage.verticalPosition==="bottom"&&(a=l.value.width/2,u=l.value.height-s.value.bottom/2+r,o="middle"):t.value.style.chart.percentage.horizontalPosition==="left"?(a=4,u=l.value.height/2+r,o="start"):t.value.style.chart.percentage.horizontalPosition==="right"&&(a=l.value.width-s.value.right+8,u=l.value.height/2+r,o="start"),{x:a,y:u,textAnchor:o,bold:t.value.style.chart.percentage.bold,fontSize:t.value.style.chart.percentage.fontSize,fill:t.value.style.chart.percentage.color}}),_=e.ref(!1);function H(a){_.value=a,A.value+=1}const P=e.ref(!1);function B(){P.value=!P.value}return G({generatePdf:F,generateImage:O,toggleAnnotator:B}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:$,class:e.normalizeClass(`vue-ui-tiremarks ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:x.value},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Y.PenAndPaper,{key:0,parent:$.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:P.value,onClose:B},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",Q,[(e.openBlock(),e.createBlock(D._sfc_main,{key:`title_${z.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&w.value?(e.openBlock(),e.createBlock(T.UserOptions,{ref:"details",key:`user_options_${A.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(I),isImaging:e.unref(N),uid:x.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:$.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:P.value,onToggleFullscreen:H,onGeneratePdf:e.unref(F),onGenerateImage:e.unref(O),onToggleAnnotator:B},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:r})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:r})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(c.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),viewBox:`0 0 ${l.value.width} ${l.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(X._sfc_main),t.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",Z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(o,r)=>(e.openBlock(),e.createElementBlock("path",{d:o.curve,"stroke-width":i.value.mark,stroke:n.value>=r?o.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&r<=n.value})},null,10,ee))),256))])):(e.openBlock(),e.createElementBlock("g",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(o,r)=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,y1:o.y1,x2:o.x2,y2:o.y2,"stroke-width":i.value.mark,stroke:n.value>=r?o.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,ae))),256))])),t.value.style.chart.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:g.value.x,y:g.value.y,"font-size":g.value.fontSize,fill:t.value.style.chart.layout.ticks.gradient.show&&t.value.style.chart.percentage.useGradientColor?e.unref(c.shiftHue)(t.value.style.chart.layout.activeColor,n.value/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.percentage.color,"font-weight":g.value.bold?"bold":"normal","text-anchor":g.value.textAnchor},e.toDisplayString(e.unref(c.applyDataLabel)(t.value.style.chart.percentage.formatter,n.value,e.unref(c.dataLabel)({v:n.value,s:"%",r:t.value.style.chart.percentage.rounding}))),9,oe)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:l.value},void 0,!0)],14,W)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",le,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(I)||e.unref(N)})),void 0,!0)])):e.createCommentVNode("",!0),w.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(R.default,{key:5,config:{type:"tiremarks",style:{backgroundColor:t.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],14,K))}},ne=J._export_sfc(re,[["__scopeId","data-v-4a9028ce"]]);exports.default=ne;