vue-data-ui 2.4.3 → 2.4.5

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 (183) hide show
  1. package/README.md +3 -1
  2. package/dist/{Arrow-Dz6AomGr.cjs → Arrow-BeQLfJqp.cjs} +1 -1
  3. package/dist/{Arrow-C7lNL7sY.js → Arrow-Dvaq-qLp.js} +1 -1
  4. package/dist/{BaseIcon-uALK38Ov.cjs → BaseIcon-BQM6PtJu.cjs} +1 -1
  5. package/dist/{BaseIcon-BbvG1AlW.js → BaseIcon-D9DRVW03.js} +1 -1
  6. package/dist/{DataTable-DTzynbND.cjs → DataTable-DO2GAcBm.cjs} +1 -1
  7. package/dist/{DataTable-DYqC2pqu.js → DataTable-rs_YrvMR.js} +2 -2
  8. package/dist/{Legend-Cgw4lO2O.cjs → Legend-BoBvZGqQ.cjs} +1 -1
  9. package/dist/{Legend-DNgTCgEK.js → Legend-DrmUpnIK.js} +1 -1
  10. package/dist/{PackageVersion-VkaUzgmt.js → PackageVersion-D9rYHrFZ.js} +1 -1
  11. package/dist/{PackageVersion-DwI-KhXH.cjs → PackageVersion-DdLmDkTt.cjs} +1 -1
  12. package/dist/PenAndPaper-C-KjtyNA.js +308 -0
  13. package/dist/PenAndPaper-DyMNuRla.cjs +1 -0
  14. package/dist/{Shape-D2Dpshg1.cjs → Shape-BGqIhzPX.cjs} +1 -1
  15. package/dist/{Shape-Bwon0l0g.js → Shape-CBrmBvYy.js} +1 -1
  16. package/dist/{Slicer-TfpN2Cr4.js → Slicer-4R6np1wa.js} +3 -3
  17. package/dist/{Slicer-uSjfNJjG.cjs → Slicer-BLkkkNUl.cjs} +1 -1
  18. package/dist/{Title-0Tp4hZ4u.cjs → Title-Dn00hErp.cjs} +1 -1
  19. package/dist/{Title-C5pIfQAz.js → Title-W7iJGPjg.js} +1 -1
  20. package/dist/{Tooltip-9Tp2Yrd1.cjs → Tooltip-DJiwKA4y.cjs} +1 -1
  21. package/dist/{Tooltip-Cz24YLfw.js → Tooltip-Pv3Bhir5.js} +1 -1
  22. package/dist/{index-Bya_q1J-.js → index-C1GB0E49.js} +1 -1
  23. package/dist/{index-eFox7weK.cjs → index-C9HllqQA.cjs} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/{useNestedProp-B33hazbH.js → useNestedProp-CNAPgW6E.js} +1 -1
  26. package/dist/{useNestedProp-BkgEhTQY.cjs → useNestedProp-DOr0hj4s.cjs} +1 -1
  27. package/dist/{usePrinter-CSRFnDBU.cjs → usePrinter-FSAw5pod.cjs} +1 -1
  28. package/dist/{usePrinter-CiHd1FwD.js → usePrinter-y5uHyknw.js} +1 -1
  29. package/dist/useResponsive-BJ7DTGpm.cjs +1 -0
  30. package/dist/{useResponsive-BY8tgM1n.js → useResponsive-CoxXLe23.js} +8 -7
  31. package/dist/{vue-data-ui-Bduq4f2p.js → vue-data-ui-Bg5KOKEX.js} +58 -58
  32. package/dist/{vue-data-ui-BTtxyUc3.cjs → vue-data-ui-Bnkz3Xmu.cjs} +1 -1
  33. package/dist/vue-data-ui.cjs +1 -1
  34. package/dist/vue-data-ui.js +1 -1
  35. package/dist/{vue-ui-3d-bar-BUEq_VdY.js → vue-ui-3d-bar-mUrcbG6J.js} +9 -9
  36. package/dist/{vue-ui-3d-bar-B-P7PMHs.cjs → vue-ui-3d-bar-sjkBzHFn.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-TEMpM1hO.cjs → vue-ui-accordion-BkUGNe2H.cjs} +1 -1
  38. package/dist/{vue-ui-accordion-DfUfL2dI.js → vue-ui-accordion-DWyRC3-h.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-CKQ8OHuS.cjs +1 -0
  40. package/dist/{vue-ui-age-pyramid-CH72tAMb.js → vue-ui-age-pyramid-CVktvXpY.js} +145 -137
  41. package/dist/{vue-ui-annotator-DPeJ2its.js → vue-ui-annotator-Cp8KDkuP.js} +1 -1
  42. package/dist/{vue-ui-annotator-DU_DJKCw.cjs → vue-ui-annotator-DSJ25l4s.cjs} +1 -1
  43. package/dist/vue-ui-bullet-Bg3TPFgV.cjs +34 -0
  44. package/dist/{vue-ui-bullet-CtP3MlUT.js → vue-ui-bullet-D4atsFQx.js} +75 -69
  45. package/dist/vue-ui-candlestick-BhdG9CY1.cjs +2 -0
  46. package/dist/{vue-ui-candlestick-DDil13a0.js → vue-ui-candlestick-DUNyCQ6Z.js} +240 -232
  47. package/dist/{vue-ui-carousel-table-BaeIxyc0.js → vue-ui-carousel-table-BRrYpr-2.js} +4 -4
  48. package/dist/{vue-ui-carousel-table-C7SJIOG-.cjs → vue-ui-carousel-table-DF4FhrBd.cjs} +1 -1
  49. package/dist/vue-ui-chestnut-BLBS9QO2.cjs +6 -0
  50. package/dist/{vue-ui-chestnut-BczSJF6S.js → vue-ui-chestnut-CjS4qC_J.js} +262 -256
  51. package/dist/{vue-ui-cursor-Dg_Dmww-.js → vue-ui-cursor-C3SpabMF.js} +2 -2
  52. package/dist/{vue-ui-cursor-C2Pj_CI_.cjs → vue-ui-cursor-DzVt5_py.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-Bul9dqx1.js → vue-ui-dashboard-BCOKtsyJ.js} +2 -2
  54. package/dist/{vue-ui-dashboard-Cg020NiT.cjs → vue-ui-dashboard-CIv7W8Yn.cjs} +1 -1
  55. package/dist/{vue-ui-digits-B8iAa4YZ.js → vue-ui-digits-DaMKAZkt.js} +2 -2
  56. package/dist/{vue-ui-digits-Ctgd84JR.cjs → vue-ui-digits-yNfQgOLZ.cjs} +1 -1
  57. package/dist/{vue-ui-donut-DUcp-fat.js → vue-ui-donut-B_-VAqBw.js} +338 -330
  58. package/dist/vue-ui-donut-Bo4SbdEe.cjs +1 -0
  59. package/dist/{vue-ui-donut-evolution-C_YMbTwq.js → vue-ui-donut-evolution-C9TXFzCm.js} +163 -156
  60. package/dist/vue-ui-donut-evolution-DOPY3I3Q.cjs +1 -0
  61. package/dist/{vue-ui-dumbbell-Buwngz_V.js → vue-ui-dumbbell-BP_Vf_u2.js} +208 -200
  62. package/dist/vue-ui-dumbbell-Cgwng71s.cjs +9 -0
  63. package/dist/vue-ui-flow-BiQj4v8i.cjs +1 -0
  64. package/dist/{vue-ui-flow-Bz3c0K5P.js → vue-ui-flow-DHoxK4t1.js} +130 -124
  65. package/dist/vue-ui-galaxy-C5ZaT8pw.cjs +1 -0
  66. package/dist/{vue-ui-galaxy-Cjh0XGTX.js → vue-ui-galaxy-DuLPsC4Q.js} +125 -119
  67. package/dist/vue-ui-gauge-26eHgOjR.cjs +1 -0
  68. package/dist/{vue-ui-gauge-B1UvGkQa.js → vue-ui-gauge-BhrXiD4S.js} +167 -159
  69. package/dist/{vue-ui-gizmo-DFW6HnHp.cjs → vue-ui-gizmo-Bb_SWCsE.cjs} +1 -1
  70. package/dist/{vue-ui-gizmo-DUQ4t-At.js → vue-ui-gizmo-D3kBYI1G.js} +3 -3
  71. package/dist/vue-ui-heatmap-Bc4HvgMk.cjs +1 -0
  72. package/dist/{vue-ui-heatmap-C-poazUw.js → vue-ui-heatmap-wjsvn1_e.js} +156 -149
  73. package/dist/{vue-ui-kpi-Z4Oi4raz.cjs → vue-ui-kpi-BbvfVZn0.cjs} +1 -1
  74. package/dist/{vue-ui-kpi-DXe-vxAk.js → vue-ui-kpi-DLJuo47I.js} +3 -3
  75. package/dist/{vue-ui-mini-loader-MMvpm9pz.cjs → vue-ui-mini-loader-BaxwhF7o.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-BVtHTqxS.js → vue-ui-mini-loader-D4aLvv-D.js} +2 -2
  77. package/dist/{vue-ui-molecule-BaJpDZND.js → vue-ui-molecule-DXpMMgdW.js} +109 -103
  78. package/dist/vue-ui-molecule-ZqAJHh6x.cjs +1 -0
  79. package/dist/{vue-ui-mood-radar-BUNDwsEI.js → vue-ui-mood-radar-B_uWY92C.js} +173 -166
  80. package/dist/vue-ui-mood-radar-BhteAPWH.cjs +1 -0
  81. package/dist/{vue-ui-nested-donuts-mDy2hXa6.js → vue-ui-nested-donuts-By32x0Y7.js} +311 -303
  82. package/dist/vue-ui-nested-donuts-ClgkX1-p.cjs +17 -0
  83. package/dist/vue-ui-onion-BdIxJpfA.cjs +5 -0
  84. package/dist/{vue-ui-onion-DwFG3HAI.js → vue-ui-onion-dQTXKNju.js} +149 -141
  85. package/dist/{vue-ui-parallel-coordinate-plot-ImET_zeo.js → vue-ui-parallel-coordinate-plot-CTF9Ujab.js} +186 -178
  86. package/dist/vue-ui-parallel-coordinate-plot-D6MUp-5W.cjs +8 -0
  87. package/dist/vue-ui-quadrant-CArA4Vmm.cjs +1 -0
  88. package/dist/{vue-ui-quadrant-BeveRihK.js → vue-ui-quadrant-Coqh0pYO.js} +225 -217
  89. package/dist/vue-ui-quick-chart-6Av74TTC.cjs +15 -0
  90. package/dist/{vue-ui-quick-chart-DAhllTfa.js → vue-ui-quick-chart-Bfdddr_B.js} +386 -378
  91. package/dist/{vue-ui-radar-BllatzRa.js → vue-ui-radar-BpdGMVHw.js} +172 -164
  92. package/dist/vue-ui-radar-CLr-gu1X.cjs +1 -0
  93. package/dist/{vue-ui-rating-D1ykV4xO.js → vue-ui-rating-B-YedcK0.js} +2 -2
  94. package/dist/{vue-ui-rating-BoZo7caL.cjs → vue-ui-rating-KFJoH-JV.cjs} +1 -1
  95. package/dist/vue-ui-relation-circle-BLVThOqT.js +366 -0
  96. package/dist/vue-ui-relation-circle-DuGQKFor.cjs +1 -0
  97. package/dist/{vue-ui-rings-B-ZcX6y1.js → vue-ui-rings-BGeYkj-O.js} +196 -188
  98. package/dist/vue-ui-rings-DzgehQZ5.cjs +2 -0
  99. package/dist/{vue-ui-scatter-DG43ck1g.js → vue-ui-scatter-CsBPCCco.js} +288 -280
  100. package/dist/vue-ui-scatter-jPnr8qI0.cjs +1 -0
  101. package/dist/{vue-ui-screenshot-C1JBP_N0.cjs → vue-ui-screenshot-1nXVH-hp.cjs} +1 -1
  102. package/dist/{vue-ui-screenshot-p3ca8cAl.js → vue-ui-screenshot-B2FTnuxH.js} +1 -1
  103. package/dist/{vue-ui-skeleton-BYssP0K4.js → vue-ui-skeleton-CE6ibl1T.js} +3 -3
  104. package/dist/{vue-ui-skeleton-BqKzuhkB.cjs → vue-ui-skeleton-CPwED1As.cjs} +1 -1
  105. package/dist/{vue-ui-smiley-D7dDCdpq.js → vue-ui-smiley-2H9hMFZ_.js} +2 -2
  106. package/dist/{vue-ui-smiley-BXKVpHl2.cjs → vue-ui-smiley-DqOZwhT4.cjs} +1 -1
  107. package/dist/{vue-ui-spark-trend-9V60hM3Z.cjs → vue-ui-spark-trend-CLW85O32.cjs} +1 -1
  108. package/dist/{vue-ui-spark-trend-GWFrO_0z.js → vue-ui-spark-trend-Dx9xVq9a.js} +5 -5
  109. package/dist/{vue-ui-sparkbar-Bgn6AY0q.cjs → vue-ui-sparkbar-DJDXrRyp.cjs} +1 -1
  110. package/dist/{vue-ui-sparkbar-CwqlyAyv.js → vue-ui-sparkbar-zafUIv1n.js} +4 -4
  111. package/dist/{vue-ui-sparkgauge-F2XbiXyA.js → vue-ui-sparkgauge-CFAdhTLk.js} +4 -4
  112. package/dist/{vue-ui-sparkgauge-Dqntz2Zv.cjs → vue-ui-sparkgauge-CPNAXUyl.cjs} +1 -1
  113. package/dist/{vue-ui-sparkhistogram-DRIKK6Ym.js → vue-ui-sparkhistogram-B3DIjpaE.js} +5 -5
  114. package/dist/{vue-ui-sparkhistogram-DnY4-Sdn.cjs → vue-ui-sparkhistogram-CHc3_xRE.cjs} +1 -1
  115. package/dist/{vue-ui-sparkline-Cxtzdlhi.js → vue-ui-sparkline-C-LE7J9H.js} +5 -5
  116. package/dist/{vue-ui-sparkline-CAEs-gtK.cjs → vue-ui-sparkline-U22Yhwy7.cjs} +1 -1
  117. package/dist/{vue-ui-sparkstackbar-0A1klq9s.js → vue-ui-sparkstackbar-BzLoGC-y.js} +4 -4
  118. package/dist/{vue-ui-sparkstackbar-D37ms1rx.cjs → vue-ui-sparkstackbar-nx-Lt8sX.cjs} +1 -1
  119. package/dist/{vue-ui-stackbar-wun4S3C0.cjs → vue-ui-stackbar-BwgHLhj2.cjs} +1 -1
  120. package/dist/{vue-ui-stackbar-ByOuJSdM.js → vue-ui-stackbar-C5xNRXnW.js} +13 -13
  121. package/dist/{vue-ui-strip-plot-CMD0MSqY.js → vue-ui-strip-plot-6khUDDeA.js} +204 -196
  122. package/dist/vue-ui-strip-plot-BFUtZW4b.cjs +1 -0
  123. package/dist/{vue-ui-table-aj0XZ7T5.cjs → vue-ui-table-B3Eng0fH.cjs} +1 -1
  124. package/dist/{vue-ui-table-B75DJ39t.js → vue-ui-table-DsBM7Osw.js} +1 -1
  125. package/dist/{vue-ui-table-heatmap-Ce93TyBF.cjs → vue-ui-table-heatmap-DwCdS68z.cjs} +1 -1
  126. package/dist/{vue-ui-table-heatmap-BO2ugWqD.js → vue-ui-table-heatmap-ccQKInFD.js} +4 -4
  127. package/dist/{vue-ui-table-sparkline-CbjfAaj2.js → vue-ui-table-sparkline-BU-hOCZ7.js} +5 -5
  128. package/dist/{vue-ui-table-sparkline-D6KJjDnU.cjs → vue-ui-table-sparkline-CDmrQFKv.cjs} +1 -1
  129. package/dist/vue-ui-thermometer-BhHYcxmT.cjs +1 -0
  130. package/dist/{vue-ui-thermometer-Pq4PvSIP.js → vue-ui-thermometer-DuI3uDCZ.js} +171 -165
  131. package/dist/{vue-ui-timer-B6IB6yS6.cjs → vue-ui-timer-D7EKaAqa.cjs} +1 -1
  132. package/dist/{vue-ui-timer-Bk3BvB-B.js → vue-ui-timer-Gk3bl_em.js} +6 -6
  133. package/dist/{vue-ui-tiremarks-CU9HJIqf.js → vue-ui-tiremarks-AcEjMpJH.js} +119 -112
  134. package/dist/vue-ui-tiremarks-UX2FbnyG.cjs +1 -0
  135. package/dist/{vue-ui-treemap-DY-lRAhC.js → vue-ui-treemap-CFTpzgX5.js} +266 -258
  136. package/dist/vue-ui-treemap-D6CTMfsm.cjs +1 -0
  137. package/dist/vue-ui-vertical-bar-BzY2H3UC.cjs +4 -0
  138. package/dist/{vue-ui-vertical-bar-CtnIKsM1.js → vue-ui-vertical-bar-CuBJx5l1.js} +245 -237
  139. package/dist/vue-ui-waffle-CZxR13EG.cjs +1 -0
  140. package/dist/{vue-ui-waffle-reOsx-gJ.js → vue-ui-waffle-rDfZLxvH.js} +224 -216
  141. package/dist/{vue-ui-wheel-kYxny3vn.js → vue-ui-wheel-BFt2o4yO.js} +125 -117
  142. package/dist/vue-ui-wheel-BM-St3xT.cjs +1 -0
  143. package/dist/{vue-ui-word-cloud-DwLY4QdB.cjs → vue-ui-word-cloud-DjKyKUbA.cjs} +1 -1
  144. package/dist/{vue-ui-word-cloud-DbMqrHAf.js → vue-ui-word-cloud-pNPIrJ-g.js} +11 -11
  145. package/dist/vue-ui-xy-CBZUMMlP.cjs +3 -0
  146. package/dist/{vue-ui-xy-rbACig0h.js → vue-ui-xy-DwkEc4Np.js} +302 -291
  147. package/dist/{vue-ui-xy-canvas-B0HTR7OV.js → vue-ui-xy-canvas-CW90CROL.js} +12 -12
  148. package/dist/{vue-ui-xy-canvas-CgJd5FiT.cjs → vue-ui-xy-canvas-DWGGLom_.cjs} +1 -1
  149. package/package.json +1 -1
  150. package/dist/PenAndPaper-CDFVOo7X.cjs +0 -1
  151. package/dist/PenAndPaper-DAZYA8Ew.js +0 -269
  152. package/dist/useResponsive-CodiGUOE.cjs +0 -1
  153. package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +0 -1
  154. package/dist/vue-ui-bullet-D8ks_rKr.cjs +0 -34
  155. package/dist/vue-ui-candlestick-D1jdr0bv.cjs +0 -2
  156. package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +0 -6
  157. package/dist/vue-ui-donut-D7KT9EAp.cjs +0 -1
  158. package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +0 -1
  159. package/dist/vue-ui-dumbbell-B0dikuqO.cjs +0 -9
  160. package/dist/vue-ui-flow-D6rc8J-8.cjs +0 -1
  161. package/dist/vue-ui-galaxy-CmTt0vBf.cjs +0 -1
  162. package/dist/vue-ui-gauge-B_TKuyM7.cjs +0 -1
  163. package/dist/vue-ui-heatmap-C2HlnqzO.cjs +0 -1
  164. package/dist/vue-ui-molecule-BiYIcOKN.cjs +0 -1
  165. package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +0 -1
  166. package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +0 -17
  167. package/dist/vue-ui-onion-GWNoZRhw.cjs +0 -5
  168. package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +0 -8
  169. package/dist/vue-ui-quadrant-yuFAxV-5.cjs +0 -1
  170. package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +0 -15
  171. package/dist/vue-ui-radar-BJH5SE6-.cjs +0 -1
  172. package/dist/vue-ui-relation-circle-CKmjOle7.cjs +0 -1
  173. package/dist/vue-ui-relation-circle-xv2l5Be9.js +0 -358
  174. package/dist/vue-ui-rings-DjH3CK23.cjs +0 -2
  175. package/dist/vue-ui-scatter-SBCXAl7q.cjs +0 -1
  176. package/dist/vue-ui-strip-plot-IQrypGvz.cjs +0 -1
  177. package/dist/vue-ui-thermometer-swmi4FmH.cjs +0 -1
  178. package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +0 -1
  179. package/dist/vue-ui-treemap-BEMuKV7x.cjs +0 -1
  180. package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +0 -4
  181. package/dist/vue-ui-waffle-BqP7Okgu.cjs +0 -1
  182. package/dist/vue-ui-wheel-BuWUGnkC.cjs +0 -1
  183. package/dist/vue-ui-xy-CGWzriYn.cjs +0 -3
@@ -1,23 +1,23 @@
1
- import { computed as h, ref as y, watch as J, onMounted as re, openBlock as r, createElementBlock as i, normalizeClass as L, normalizeStyle as K, createBlock as F, createCommentVNode as k, unref as d, createSlots as se, withCtx as z, renderSlot as _, normalizeProps as M, guardReactiveProps as T, createVNode as ne, Fragment as Q, renderList as V, toDisplayString as ue } from "vue";
2
- import { u as W } from "./useNestedProp-B33hazbH.js";
3
- import { u as ie, c as ce, t as ve, v as he, o as de, e as fe, w as Z, X as me, i as ge, f as pe } from "./index-Bya_q1J-.js";
4
- import { _ as ye } from "./Title-C5pIfQAz.js";
5
- import { u as ke, U as _e } from "./usePrinter-CiHd1FwD.js";
6
- import be from "./vue-ui-skeleton-BYssP0K4.js";
7
- import { _ as Ce } from "./PackageVersion-VkaUzgmt.js";
8
- import { P as $e } from "./PenAndPaper-DAZYA8Ew.js";
9
- import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const xe = ["id"], Pe = {
11
- key: 1,
1
+ import { computed as v, ref as p, watch as J, onMounted as ne, openBlock as r, createElementBlock as u, normalizeClass as G, normalizeStyle as K, createBlock as O, createCommentVNode as g, unref as d, createSlots as ue, withCtx as F, renderSlot as _, normalizeProps as L, guardReactiveProps as M, createVNode as ie, Fragment as Q, renderList as V, toDisplayString as ce } from "vue";
2
+ import { u as W } from "./useNestedProp-CNAPgW6E.js";
3
+ import { u as ve, c as he, t as de, v as fe, o as pe, e as ge, w as Z, X as me, i as ye, f as ke } from "./index-C1GB0E49.js";
4
+ import { _ as _e } from "./Title-W7iJGPjg.js";
5
+ import { u as be, U as Ce } from "./usePrinter-y5uHyknw.js";
6
+ import $e from "./vue-ui-skeleton-CE6ibl1T.js";
7
+ import { _ as we } from "./PackageVersion-D9rYHrFZ.js";
8
+ import { P as xe } from "./PenAndPaper-C-KjtyNA.js";
9
+ import { _ as Pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const Ae = ["id"], Ie = {
11
+ key: 2,
12
12
  style: "width:100%;background:transparent;padding-bottom:12px"
13
- }, Ae = ["xmlns", "viewBox"], Ie = { key: 0 }, Fe = ["d", "stroke-width", "stroke"], ze = { key: 1 }, Oe = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Se = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Ne = {
14
- key: 4,
15
- class: "vue-data-ui-watermark"
16
- }, Ge = {
13
+ }, Oe = ["xmlns", "viewBox"], Fe = { key: 0 }, ze = ["d", "stroke-width", "stroke"], Se = { key: 1 }, Ne = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Te = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Ge = {
17
14
  key: 5,
15
+ class: "vue-data-ui-watermark"
16
+ }, Le = {
17
+ key: 6,
18
18
  ref: "source",
19
19
  dir: "auto"
20
- }, Le = {
20
+ }, Me = {
21
21
  __name: "vue-ui-tiremarks",
22
22
  props: {
23
23
  config: {
@@ -34,49 +34,49 @@ const xe = ["id"], Pe = {
34
34
  }
35
35
  },
36
36
  setup(ee, { expose: te }) {
37
- const v = ee, { vue_ui_tiremarks: ae } = ie(), O = h(() => !!v.dataset && Object.keys(v.dataset).length), S = y(ce()), N = y(null), U = y(0), j = y(0), e = h({
37
+ const h = ee, { vue_ui_tiremarks: ae } = ve(), z = v(() => !!h.dataset && Object.keys(h.dataset).length), S = p(he()), N = p(null), le = p(null), U = p(0), j = p(0), e = v({
38
38
  get: () => B(),
39
39
  set: (t) => t
40
40
  });
41
41
  function B() {
42
42
  const t = W({
43
- userConfig: v.config,
43
+ userConfig: h.config,
44
44
  defaultConfig: ae
45
45
  });
46
46
  return t.theme ? {
47
47
  ...W({
48
- userConfig: ve.vue_ui_tiremarks[t.theme] || v.config,
48
+ userConfig: de.vue_ui_tiremarks[t.theme] || h.config,
49
49
  defaultConfig: t
50
50
  })
51
51
  } : t;
52
52
  }
53
- J(() => v.config, (t) => {
53
+ J(() => h.config, (t) => {
54
54
  e.value = B(), Y(), j.value += 1;
55
55
  }, { deep: !0 });
56
- const { isPrinting: E, isImaging: X, generatePdf: D, generateImage: H } = ke({
56
+ const { isPrinting: E, isImaging: X, generatePdf: D, generateImage: H } = be({
57
57
  elementId: S.value,
58
58
  fileName: e.value.style.chart.title.text || "vue-ui-tiremarks"
59
- }), s = y(e.value.style.chart.animation.use ? 0 : he(v.dataset.percentage));
60
- J(() => v.dataset, (t) => {
59
+ }), oe = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), s = p(e.value.style.chart.animation.use ? 0 : fe(h.dataset.percentage));
60
+ J(() => h.dataset, (t) => {
61
61
  e.value.style.chart.animation.use ? R(t.percentage) : s.value = t.percentage || 0;
62
- }, { deep: !0 }), re(() => {
62
+ }, { deep: !0 }), ne(() => {
63
63
  Y();
64
64
  });
65
65
  function R(t) {
66
- let u = e.value.style.chart.animation.speed;
67
- const a = Math.abs(t - s.value) / (u * 120);
68
- function l() {
69
- s.value < t ? s.value = Math.min(s.value + a, t) : s.value > t && (s.value = Math.max(s.value - a, t)), s.value !== t && requestAnimationFrame(l);
66
+ let i = e.value.style.chart.animation.speed;
67
+ const a = Math.abs(t - s.value) / (i * 120);
68
+ function o() {
69
+ s.value < t ? s.value = Math.min(s.value + a, t) : s.value > t && (s.value = Math.max(s.value - a, t)), s.value !== t && requestAnimationFrame(o);
70
70
  }
71
- l();
71
+ o();
72
72
  }
73
73
  function Y() {
74
- de(v.dataset) && fe({
74
+ pe(h.dataset) && ge({
75
75
  componentName: "VueUiTiremarks",
76
76
  type: "dataset"
77
- }), R(v.dataset.percentage || 0);
77
+ }), R(h.dataset.percentage || 0);
78
78
  }
79
- const b = h(() => e.value.style.chart.layout.display === "vertical"), n = h(() => {
79
+ const b = v(() => e.value.style.chart.layout.display === "vertical"), n = v(() => {
80
80
  const t = {
81
81
  top: 48,
82
82
  left: 64,
@@ -94,84 +94,91 @@ const xe = ["id"], Pe = {
94
94
  left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
95
95
  right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
96
96
  };
97
- }), P = h(() => Object.values(n.value).reduce((t, u) => t + u, 0)), o = h(() => ({
97
+ }), P = v(() => Object.values(n.value).reduce((t, i) => t + i, 0)), l = v(() => ({
98
98
  height: b.value ? 312 : 56,
99
99
  width: b.value ? 56 : 312
100
- })), oe = y(100);
101
- h(() => v.dataset.percentage / oe.value);
102
- const c = h(() => b.value ? {
103
- mark: (o.value.height - P.value) / 100 * 0.5,
104
- space: (o.value.height - P.value) / 100 * 0.5
100
+ })), re = p(100);
101
+ v(() => h.dataset.percentage / re.value);
102
+ const c = v(() => b.value ? {
103
+ mark: (l.value.height - P.value) / 100 * 0.5,
104
+ space: (l.value.height - P.value) / 100 * 0.5
105
105
  } : {
106
- mark: (o.value.width - P.value) / 100 * 0.5,
107
- space: (o.value.width - P.value) / 100 * 0.5
108
- }), q = h(() => {
106
+ mark: (l.value.width - P.value) / 100 * 0.5,
107
+ space: (l.value.width - P.value) / 100 * 0.5
108
+ }), q = v(() => {
109
109
  const t = [];
110
110
  for (let a = 0; a < 100; a += 1) {
111
- const l = e.value.style.chart.layout.ticks.gradient.show ? Z(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
111
+ const o = e.value.style.chart.layout.ticks.gradient.show ? Z(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
112
112
  if (b.value) {
113
- const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - n.value.left - n.value.right) / 100 / 3 : 0, f = n.value.left + 4 + $, m = o.value.width - n.value.right - 4 - $, g = o.value.height - n.value.bottom - a * c.value.mark - a * c.value.space - c.value.mark, p = o.value.height - n.value.bottom - a * c.value.mark - a * c.value.space - c.value.mark, w = (m - f) / e.value.style.chart.layout.curveAngleX, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
113
+ const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - n.value.left - n.value.right) / 100 / 3 : 0, f = n.value.left + 4 + $, m = l.value.width - n.value.right - 4 - $, y = l.value.height - n.value.bottom - a * c.value.mark - a * c.value.space - c.value.mark, k = l.value.height - n.value.bottom - a * c.value.mark - a * c.value.space - c.value.mark, w = (m - f) / e.value.style.chart.layout.curveAngleX, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
114
114
  t.push({
115
115
  x1: f,
116
116
  x2: m,
117
- y1: g,
118
- y2: p,
119
- curve: `M ${f} ${g} C ${f + w} ${g - x}, ${m - w} ${p - x}, ${m} ${p}`,
120
- color: l
117
+ y1: y,
118
+ y2: k,
119
+ curve: `M ${f} ${y} C ${f + w} ${y - x}, ${m - w} ${k - x}, ${m} ${k}`,
120
+ color: o
121
121
  });
122
122
  } else {
123
- const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - n.value.top - n.value.bottom) / 100 / 3 : 0, f = n.value.left + a * c.value.mark + a * c.value.space - c.value.mark, m = f, g = n.value.top + 4 + $, p = o.value.height - n.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), x = (p - g) / e.value.style.chart.layout.curveAngleX;
123
+ const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - n.value.top - n.value.bottom) / 100 / 3 : 0, f = n.value.left + a * c.value.mark + a * c.value.space - c.value.mark, m = f, y = n.value.top + 4 + $, k = l.value.height - n.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), x = (k - y) / e.value.style.chart.layout.curveAngleX;
124
124
  t.push({
125
125
  x1: f,
126
126
  x2: m,
127
- y1: g,
128
- y2: p,
129
- curve: `M ${f} ${g} C ${f + w} ${g + x}, ${m + w} ${p - x}, ${m} ${p}`,
130
- color: l
127
+ y1: y,
128
+ y2: k,
129
+ curve: `M ${f} ${y} C ${f + w} ${y + x}, ${m + w} ${k - x}, ${m} ${k}`,
130
+ color: o
131
131
  });
132
132
  }
133
133
  }
134
134
  return t;
135
- }), C = h(() => {
136
- let t, u, a;
137
- const l = e.value.style.chart.percentage.fontSize / 3;
138
- return b.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = o.value.width / 2, u = n.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = o.value.width / 2, u = o.value.height - n.value.bottom / 2 + l, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, u = o.value.height / 2 + l, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = o.value.width - n.value.right + 8, u = o.value.height / 2 + l, a = "start"), {
135
+ }), C = v(() => {
136
+ let t, i, a;
137
+ const o = e.value.style.chart.percentage.fontSize / 3;
138
+ return b.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = l.value.width / 2, i = n.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = l.value.width / 2, i = l.value.height - n.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, i = l.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = l.value.width - n.value.right + 8, i = l.value.height / 2 + o, a = "start"), {
139
139
  x: t,
140
- y: u,
140
+ y: i,
141
141
  textAnchor: a,
142
142
  bold: e.value.style.chart.percentage.bold,
143
143
  fontSize: e.value.style.chart.percentage.fontSize,
144
144
  fill: e.value.style.chart.percentage.color
145
145
  };
146
- }), A = y(!1);
147
- function le(t) {
146
+ }), A = p(!1);
147
+ function se(t) {
148
148
  A.value = t, U.value += 1;
149
149
  }
150
- const I = y(!1);
151
- function G() {
150
+ const I = p(!1);
151
+ function T() {
152
152
  I.value = !I.value;
153
153
  }
154
154
  return te({
155
155
  generatePdf: D,
156
156
  generateImage: H,
157
- toggleAnnotator: G
158
- }), (t, u) => (r(), i("div", {
157
+ toggleAnnotator: T
158
+ }), (t, i) => (r(), u("div", {
159
159
  ref_key: "tiremarksChart",
160
160
  ref: N,
161
- class: L(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
162
- style: K(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
161
+ class: G(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
162
+ style: K(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
163
163
  id: S.value
164
164
  }, [
165
- e.value.userOptions.buttons.annotator ? (r(), F($e, {
165
+ e.value.userOptions.buttons.annotator ? (r(), O(xe, {
166
166
  key: 0,
167
167
  parent: N.value,
168
168
  backgroundColor: e.value.style.chart.backgroundColor,
169
169
  color: e.value.style.chart.color,
170
170
  active: I.value,
171
- onClose: G
172
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : k("", !0),
173
- e.value.style.chart.title.text ? (r(), i("div", Pe, [
174
- (r(), F(ye, {
171
+ onClose: T
172
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : g("", !0),
173
+ oe.value ? (r(), u("div", {
174
+ key: 1,
175
+ ref_key: "noTitle",
176
+ ref: le,
177
+ class: "vue-data-ui-no-title-space",
178
+ style: "height:36px; width: 100%;background:transparent"
179
+ }, null, 512)) : g("", !0),
180
+ e.value.style.chart.title.text ? (r(), u("div", Ie, [
181
+ (r(), O(_e, {
175
182
  key: `title_${j.value}`,
176
183
  config: {
177
184
  title: {
@@ -184,8 +191,8 @@ const xe = ["id"], Pe = {
184
191
  }
185
192
  }
186
193
  }, null, 8, ["config"]))
187
- ])) : k("", !0),
188
- e.value.userOptions.show && O.value ? (r(), F(_e, {
194
+ ])) : g("", !0),
195
+ e.value.userOptions.show && z.value ? (r(), O(Ce, {
189
196
  ref: "details",
190
197
  key: `user_options_${U.value}`,
191
198
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -203,69 +210,69 @@ const xe = ["id"], Pe = {
203
210
  position: e.value.userOptions.position,
204
211
  hasAnnotator: e.value.userOptions.buttons.annotator,
205
212
  isAnnotation: I.value,
206
- onToggleFullscreen: le,
213
+ onToggleFullscreen: se,
207
214
  onGeneratePdf: d(D),
208
215
  onGenerateImage: d(H),
209
- onToggleAnnotator: G
210
- }, se({ _: 2 }, [
216
+ onToggleAnnotator: T
217
+ }, ue({ _: 2 }, [
211
218
  t.$slots.optionPdf ? {
212
219
  name: "optionPdf",
213
- fn: z(() => [
220
+ fn: F(() => [
214
221
  _(t.$slots, "optionPdf", {}, void 0, !0)
215
222
  ]),
216
223
  key: "0"
217
224
  } : void 0,
218
225
  t.$slots.optionImg ? {
219
226
  name: "optionImg",
220
- fn: z(() => [
227
+ fn: F(() => [
221
228
  _(t.$slots, "optionImg", {}, void 0, !0)
222
229
  ]),
223
230
  key: "1"
224
231
  } : void 0,
225
232
  t.$slots.optionFullscreen ? {
226
233
  name: "optionFullscreen",
227
- fn: z(({ toggleFullscreen: a, isFullscreen: l }) => [
228
- _(t.$slots, "optionFullscreen", M(T({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
234
+ fn: F(({ toggleFullscreen: a, isFullscreen: o }) => [
235
+ _(t.$slots, "optionFullscreen", L(M({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
229
236
  ]),
230
237
  key: "2"
231
238
  } : void 0,
232
239
  t.$slots.optionAnnotator ? {
233
240
  name: "optionAnnotator",
234
- fn: z(({ toggleAnnotator: a, isAnnotator: l }) => [
235
- _(t.$slots, "optionAnnotator", M(T({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
241
+ fn: F(({ toggleAnnotator: a, isAnnotator: o }) => [
242
+ _(t.$slots, "optionAnnotator", L(M({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
236
243
  ]),
237
244
  key: "3"
238
245
  } : void 0
239
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : k("", !0),
240
- O.value ? (r(), i("svg", {
241
- key: 3,
246
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
247
+ z.value ? (r(), u("svg", {
248
+ key: 4,
242
249
  xmlns: d(me),
243
- class: L({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
244
- viewBox: `0 0 ${o.value.width} ${o.value.height}`,
250
+ class: G({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
251
+ viewBox: `0 0 ${l.value.width} ${l.value.height}`,
245
252
  style: K(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
246
253
  }, [
247
- ne(Ce),
248
- e.value.style.chart.layout.curved ? (r(), i("g", Ie, [
249
- (r(!0), i(Q, null, V(q.value, (a, l) => (r(), i("path", {
254
+ ie(we),
255
+ e.value.style.chart.layout.curved ? (r(), u("g", Fe, [
256
+ (r(!0), u(Q, null, V(q.value, (a, o) => (r(), u("path", {
250
257
  d: a.curve,
251
258
  "stroke-width": c.value.mark,
252
- stroke: s.value >= l ? a.color : e.value.style.chart.layout.inactiveColor,
259
+ stroke: s.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
253
260
  "stroke-linecap": "round",
254
261
  fill: "none",
255
- class: L({ "vue-ui-tick-animated": e.value.style.chart.animation.use && l <= s.value })
256
- }, null, 10, Fe))), 256))
257
- ])) : (r(), i("g", ze, [
258
- (r(!0), i(Q, null, V(q.value, (a, l) => (r(), i("line", {
262
+ class: G({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= s.value })
263
+ }, null, 10, ze))), 256))
264
+ ])) : (r(), u("g", Se, [
265
+ (r(!0), u(Q, null, V(q.value, (a, o) => (r(), u("line", {
259
266
  x1: a.x1,
260
267
  y1: a.y1,
261
268
  x2: a.x2,
262
269
  y2: a.y2,
263
270
  "stroke-width": c.value.mark,
264
- stroke: s.value >= l ? a.color : e.value.style.chart.layout.inactiveColor,
271
+ stroke: s.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
265
272
  "stroke-linecap": "round"
266
- }, null, 8, Oe))), 256))
273
+ }, null, 8, Ne))), 256))
267
274
  ])),
268
- e.value.style.chart.percentage.show ? (r(), i("text", {
275
+ e.value.style.chart.percentage.show ? (r(), u("text", {
269
276
  key: 2,
270
277
  x: C.value.x,
271
278
  y: C.value.y,
@@ -273,25 +280,25 @@ const xe = ["id"], Pe = {
273
280
  fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? d(Z)(e.value.style.chart.layout.activeColor, s.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
274
281
  "font-weight": C.value.bold ? "bold" : "normal",
275
282
  "text-anchor": C.value.textAnchor
276
- }, ue(d(ge)(
283
+ }, ce(d(ye)(
277
284
  e.value.style.chart.percentage.formatter,
278
285
  s.value,
279
- d(pe)({
286
+ d(ke)({
280
287
  v: s.value,
281
288
  s: "%",
282
289
  r: e.value.style.chart.percentage.rounding
283
290
  })
284
- )), 9, Se)) : k("", !0),
285
- _(t.$slots, "svg", { svg: o.value }, void 0, !0)
286
- ], 14, Ae)) : k("", !0),
287
- t.$slots.watermark ? (r(), i("div", Ne, [
288
- _(t.$slots, "watermark", M(T({ isPrinting: d(E) || d(X) })), void 0, !0)
289
- ])) : k("", !0),
290
- t.$slots.source ? (r(), i("div", Ge, [
291
+ )), 9, Te)) : g("", !0),
292
+ _(t.$slots, "svg", { svg: l.value }, void 0, !0)
293
+ ], 14, Oe)) : g("", !0),
294
+ t.$slots.watermark ? (r(), u("div", Ge, [
295
+ _(t.$slots, "watermark", L(M({ isPrinting: d(E) || d(X) })), void 0, !0)
296
+ ])) : g("", !0),
297
+ t.$slots.source ? (r(), u("div", Le, [
291
298
  _(t.$slots, "source", {}, void 0, !0)
292
- ], 512)) : k("", !0),
293
- O.value ? k("", !0) : (r(), F(be, {
294
- key: 6,
299
+ ], 512)) : g("", !0),
300
+ z.value ? g("", !0) : (r(), O($e, {
301
+ key: 7,
295
302
  config: {
296
303
  type: "tiremarks",
297
304
  style: {
@@ -302,9 +309,9 @@ const xe = ["id"], Pe = {
302
309
  }
303
310
  }
304
311
  }, null, 8, ["config"]))
305
- ], 14, xe));
312
+ ], 14, Ae));
306
313
  }
307
- }, Re = /* @__PURE__ */ we(Le, [["__scopeId", "data-v-456936c4"]]);
314
+ }, qe = /* @__PURE__ */ Pe(Me, [["__scopeId", "data-v-93332410"]]);
308
315
  export {
309
- Re as default
316
+ qe as default
310
317
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./useNestedProp-DOr0hj4s.cjs"),c=require("./index-C9HllqQA.cjs"),X=require("./Title-Dn00hErp.cjs"),L=require("./usePrinter-FSAw5pod.cjs"),Y=require("./vue-ui-skeleton-CPwED1As.cjs"),J=require("./PackageVersion-DdLmDkTt.cjs"),K=require("./PenAndPaper-DyMNuRla.cjs"),Q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),W=["id"],Z={key:2,style:"width:100%;background:transparent;padding-bottom:12px"},ee=["xmlns","viewBox"],te={key:0},ae=["d","stroke-width","stroke"],oe={key:1},le=["x1","y1","x2","y2","stroke-width","stroke"],re=["x","y","font-size","fill","font-weight","text-anchor"],ne={key:5,class:"vue-data-ui-watermark"},se={key:6,ref:"source",dir:"auto"},ue={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(M,{expose:G}){const v=M,{vue_ui_tiremarks:j}=c.useConfig(),P=e.computed(()=>!!v.dataset&&Object.keys(v.dataset).length),$=e.ref(c.createUid()),B=e.ref(null),U=e.ref(null),A=e.ref(0),N=e.ref(0),t=e.computed({get:()=>S(),set:a=>a});function S(){const a=V.useNestedProp({userConfig:v.config,defaultConfig:j});return a.theme?{...V.useNestedProp({userConfig:c.themes.vue_ui_tiremarks[a.theme]||v.config,defaultConfig:a})}:a}e.watch(()=>v.config,a=>{t.value=S(),T(),N.value+=1},{deep:!0});const{isPrinting:z,isImaging:I,generatePdf:O,generateImage:F}=L.usePrinter({elementId:$.value,fileName:t.value.style.chart.title.text||"vue-ui-tiremarks"}),H=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),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(()=>{T()});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 T(){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})),D=e.ref(100);e.computed(()=>v.dataset.percentage/D.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}),q=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 R(a){_.value=a,A.value+=1}const w=e.ref(!1);function x(){w.value=!w.value}return G({generatePdf:O,generateImage:F,toggleAnnotator:x}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:B,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;background:${t.value.style.chart.backgroundColor}`),id:$.value},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(K.PenAndPaper,{key:0,parent:B.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:x},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),H.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:U,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",Z,[(e.openBlock(),e.createBlock(X._sfc_main,{key:`title_${N.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&&P.value?(e.openBlock(),e.createBlock(L.UserOptions,{ref:"details",key:`user_options_${A.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(z),isImaging:e.unref(I),uid:$.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:B.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:R,onGeneratePdf:e.unref(O),onGenerateImage:e.unref(F),onToggleAnnotator:x},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),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,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(J._sfc_main),t.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.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,ae))),256))])):(e.openBlock(),e.createElementBlock("g",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.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,le))),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,re)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:l.value},void 0,!0)],14,ee)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ne,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(z)||e.unref(I)})),void 0,!0)])):e.createCommentVNode("",!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",se,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Y.default,{key:7,config:{type:"tiremarks",style:{backgroundColor:t.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],14,W))}},ie=Q._export_sfc(ue,[["__scopeId","data-v-93332410"]]);exports.default=ie;