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
@@ -1,279 +0,0 @@
1
- import { computed as h, ref as p, watch as H, onMounted as le, openBlock as n, createElementBlock as c, normalizeClass as O, normalizeStyle as R, createBlock as S, createCommentVNode as _, unref as d, createSlots as oe, withCtx as A, renderSlot as x, normalizeProps as Y, guardReactiveProps as q, createVNode as re, Fragment as J, renderList as K, toDisplayString as se } from "vue";
2
- import { u as Q } from "./useNestedProp-DGWP4D-K.js";
3
- import { u as ne, c as ue, t as ie, v as ce, o as ve, e as he, w as V, X as de, i as me, f as fe } from "./index-B0CpCD8z.js";
4
- import { _ as ge } from "./Title-DlVZnHjs.js";
5
- import { u as ye, U as pe } from "./usePrinter-Dr30K4cu.js";
6
- import ke from "./vue-ui-skeleton-DEv_1TFa.js";
7
- import { _ as _e } from "./PackageVersion-wB6dCDZw.js";
8
- import { _ as be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const Ce = ["id"], $e = {
10
- key: 0,
11
- style: "width:100%;background:transparent;padding-bottom:12px"
12
- }, we = ["xmlns", "viewBox"], xe = { key: 0 }, Pe = ["d", "stroke-width", "stroke"], Ie = { key: 1 }, Fe = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], ze = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Oe = {
13
- key: 3,
14
- class: "vue-data-ui-watermark"
15
- }, Se = {
16
- __name: "vue-ui-tiremarks",
17
- props: {
18
- config: {
19
- type: Object,
20
- default() {
21
- return {};
22
- }
23
- },
24
- dataset: {
25
- type: Object,
26
- default() {
27
- return {};
28
- }
29
- }
30
- },
31
- setup(W, { expose: Z }) {
32
- const v = W, { vue_ui_tiremarks: ee } = ne(), F = h(() => !!v.dataset && Object.keys(v.dataset).length), z = p(ue()), N = p(null), G = p(0), L = p(0), e = h({
33
- get: () => M(),
34
- set: (t) => t
35
- });
36
- function M() {
37
- const t = Q({
38
- userConfig: v.config,
39
- defaultConfig: ee
40
- });
41
- return t.theme ? {
42
- ...Q({
43
- userConfig: ie.vue_ui_tiremarks[t.theme] || v.config,
44
- defaultConfig: t
45
- })
46
- } : t;
47
- }
48
- H(() => v.config, (t) => {
49
- e.value = M(), X(), L.value += 1;
50
- }, { deep: !0 });
51
- const { isPrinting: U, isImaging: j, generatePdf: B, generateImage: E } = ye({
52
- elementId: z.value,
53
- fileName: e.value.style.chart.title.text || "vue-ui-tiremarks"
54
- }), r = p(e.value.style.chart.animation.use ? 0 : ce(v.dataset.percentage));
55
- H(() => v.dataset, (t) => {
56
- e.value.style.chart.animation.use ? T(t.percentage) : r.value = t.percentage || 0;
57
- }, { deep: !0 }), le(() => {
58
- X();
59
- });
60
- function T(t) {
61
- let u = e.value.style.chart.animation.speed;
62
- const a = Math.abs(t - r.value) / (u * 120);
63
- function o() {
64
- r.value < t ? r.value = Math.min(r.value + a, t) : r.value > t && (r.value = Math.max(r.value - a, t)), r.value !== t && requestAnimationFrame(o);
65
- }
66
- o();
67
- }
68
- function X() {
69
- ve(v.dataset) && he({
70
- componentName: "VueUiTiremarks",
71
- type: "dataset"
72
- }), T(v.dataset.percentage || 0);
73
- }
74
- const k = h(() => e.value.style.chart.layout.display === "vertical"), s = h(() => {
75
- const t = {
76
- top: 48,
77
- left: 64,
78
- right: 64,
79
- bottom: 48
80
- };
81
- return k.value ? {
82
- top: e.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
83
- left: 3,
84
- right: 3,
85
- bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? t.bottom : 3
86
- } : {
87
- top: 0,
88
- bottom: 0,
89
- left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
90
- right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
91
- };
92
- }), P = h(() => Object.values(s.value).reduce((t, u) => t + u, 0)), l = h(() => ({
93
- height: k.value ? 312 : 56,
94
- width: k.value ? 56 : 312
95
- })), te = p(100);
96
- h(() => v.dataset.percentage / te.value);
97
- const i = h(() => k.value ? {
98
- mark: (l.value.height - P.value) / 100 * 0.5,
99
- space: (l.value.height - P.value) / 100 * 0.5
100
- } : {
101
- mark: (l.value.width - P.value) / 100 * 0.5,
102
- space: (l.value.width - P.value) / 100 * 0.5
103
- }), D = h(() => {
104
- const t = [];
105
- for (let a = 0; a < 100; a += 1) {
106
- const o = e.value.style.chart.layout.ticks.gradient.show ? V(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
107
- if (k.value) {
108
- const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - s.value.left - s.value.right) / 100 / 3 : 0, m = s.value.left + 4 + C, f = l.value.width - s.value.right - 4 - C, g = l.value.height - s.value.bottom - a * i.value.mark - a * i.value.space - i.value.mark, y = l.value.height - s.value.bottom - a * i.value.mark - a * i.value.space - i.value.mark, $ = (f - m) / e.value.style.chart.layout.curveAngleX, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
109
- t.push({
110
- x1: m,
111
- x2: f,
112
- y1: g,
113
- y2: y,
114
- curve: `M ${m} ${g} C ${m + $} ${g - w}, ${f - $} ${y - w}, ${f} ${y}`,
115
- color: o
116
- });
117
- } else {
118
- const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - s.value.top - s.value.bottom) / 100 / 3 : 0, m = s.value.left + a * i.value.mark + a * i.value.space - i.value.mark, f = m, g = s.value.top + 4 + C, y = l.value.height - s.value.bottom - 4 - C, $ = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), w = (y - g) / e.value.style.chart.layout.curveAngleX;
119
- t.push({
120
- x1: m,
121
- x2: f,
122
- y1: g,
123
- y2: y,
124
- curve: `M ${m} ${g} C ${m + $} ${g + w}, ${f + $} ${y - w}, ${f} ${y}`,
125
- color: o
126
- });
127
- }
128
- }
129
- return t;
130
- }), b = h(() => {
131
- let t, u, a;
132
- const o = e.value.style.chart.percentage.fontSize / 3;
133
- return k.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = l.value.width / 2, u = s.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = l.value.width / 2, u = l.value.height - s.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, u = l.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = l.value.width - s.value.right + 8, u = l.value.height / 2 + o, a = "start"), {
134
- x: t,
135
- y: u,
136
- textAnchor: a,
137
- bold: e.value.style.chart.percentage.bold,
138
- fontSize: e.value.style.chart.percentage.fontSize,
139
- fill: e.value.style.chart.percentage.color
140
- };
141
- }), I = p(!1);
142
- function ae(t) {
143
- I.value = t, G.value += 1;
144
- }
145
- return Z({
146
- generatePdf: B,
147
- generateImage: E
148
- }), (t, u) => (n(), c("div", {
149
- ref_key: "tiremarksChart",
150
- ref: N,
151
- class: O(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
152
- style: R(`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}`),
153
- id: z.value
154
- }, [
155
- e.value.style.chart.title.text ? (n(), c("div", $e, [
156
- (n(), S(ge, {
157
- key: `title_${L.value}`,
158
- config: {
159
- title: {
160
- cy: "wheel-title",
161
- ...e.value.style.chart.title
162
- },
163
- subtitle: {
164
- cy: "wheel-subtitle",
165
- ...e.value.style.chart.title.subtitle
166
- }
167
- }
168
- }, null, 8, ["config"]))
169
- ])) : _("", !0),
170
- e.value.userOptions.show && F.value ? (n(), S(pe, {
171
- ref: "details",
172
- key: `user_options_${G.value}`,
173
- backgroundColor: e.value.style.chart.backgroundColor,
174
- color: e.value.style.chart.color,
175
- isPrinting: d(U),
176
- isImaging: d(j),
177
- uid: z.value,
178
- hasPdf: e.value.userOptions.buttons.pdf,
179
- hasImg: e.value.userOptions.buttons.img,
180
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
181
- hasXls: !1,
182
- isFullscreen: I.value,
183
- titles: { ...e.value.userOptions.buttonTitles },
184
- chartElement: N.value,
185
- position: e.value.userOptions.position,
186
- onToggleFullscreen: ae,
187
- onGeneratePdf: d(B),
188
- onGenerateImage: d(E)
189
- }, oe({ _: 2 }, [
190
- t.$slots.optionPdf ? {
191
- name: "optionPdf",
192
- fn: A(() => [
193
- x(t.$slots, "optionPdf", {}, void 0, !0)
194
- ]),
195
- key: "0"
196
- } : void 0,
197
- t.$slots.optionImg ? {
198
- name: "optionImg",
199
- fn: A(() => [
200
- x(t.$slots, "optionImg", {}, void 0, !0)
201
- ]),
202
- key: "1"
203
- } : void 0,
204
- t.$slots.optionFullscreen ? {
205
- name: "optionFullscreen",
206
- fn: A(({ toggleFullscreen: a, isFullscreen: o }) => [
207
- x(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
208
- ]),
209
- key: "2"
210
- } : void 0
211
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : _("", !0),
212
- F.value ? (n(), c("svg", {
213
- key: 2,
214
- xmlns: d(de),
215
- class: O({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
216
- viewBox: `0 0 ${l.value.width} ${l.value.height}`,
217
- style: R(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
218
- }, [
219
- re(_e),
220
- e.value.style.chart.layout.curved ? (n(), c("g", xe, [
221
- (n(!0), c(J, null, K(D.value, (a, o) => (n(), c("path", {
222
- d: a.curve,
223
- "stroke-width": i.value.mark,
224
- stroke: r.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
225
- "stroke-linecap": "round",
226
- fill: "none",
227
- class: O({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= r.value })
228
- }, null, 10, Pe))), 256))
229
- ])) : (n(), c("g", Ie, [
230
- (n(!0), c(J, null, K(D.value, (a, o) => (n(), c("line", {
231
- x1: a.x1,
232
- y1: a.y1,
233
- x2: a.x2,
234
- y2: a.y2,
235
- "stroke-width": i.value.mark,
236
- stroke: r.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
237
- "stroke-linecap": "round"
238
- }, null, 8, Fe))), 256))
239
- ])),
240
- e.value.style.chart.percentage.show ? (n(), c("text", {
241
- key: 2,
242
- x: b.value.x,
243
- y: b.value.y,
244
- "font-size": b.value.fontSize,
245
- fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? d(V)(e.value.style.chart.layout.activeColor, r.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
246
- "font-weight": b.value.bold ? "bold" : "normal",
247
- "text-anchor": b.value.textAnchor
248
- }, se(d(me)(
249
- e.value.style.chart.percentage.formatter,
250
- r.value,
251
- d(fe)({
252
- v: r.value,
253
- s: "%",
254
- r: e.value.style.chart.percentage.rounding
255
- })
256
- )), 9, ze)) : _("", !0),
257
- x(t.$slots, "svg", { svg: l.value }, void 0, !0)
258
- ], 14, we)) : _("", !0),
259
- t.$slots.watermark ? (n(), c("div", Oe, [
260
- x(t.$slots, "watermark", Y(q({ isPrinting: d(U) || d(j) })), void 0, !0)
261
- ])) : _("", !0),
262
- F.value ? _("", !0) : (n(), S(ke, {
263
- key: 4,
264
- config: {
265
- type: "tiremarks",
266
- style: {
267
- backgroundColor: e.value.style.chart.backgroundColor,
268
- tiremarks: {
269
- color: "#CCCCCC"
270
- }
271
- }
272
- }
273
- }, null, 8, ["config"]))
274
- ], 14, Ce));
275
- }
276
- }, Ee = /* @__PURE__ */ be(Se, [["__scopeId", "data-v-9130298e"]]);
277
- export {
278
- Ee as default
279
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),q=require("./useNestedProp-iuDCMc2p.cjs"),c=require("./index-Dfhvf8hT.cjs"),U=require("./Title-BHmTg9iK.cjs"),L=require("./usePrinter-BQQasUin.cjs"),H=require("./vue-ui-skeleton-fqwO2mHD.cjs"),D=require("./PackageVersion-Djty0wb2.cjs"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),R=["id"],Y={key:0,style:"width:100%;background:transparent;padding-bottom:12px"},J=["xmlns","viewBox"],K={key:0},Q=["d","stroke-width","stroke"],W={key:1},Z=["x1","y1","x2","y2","stroke-width","stroke"],ee=["x","y","font-size","fill","font-weight","text-anchor"],te={key:3,class:"vue-data-ui-watermark"},ae={__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:T}=c.useConfig(),x=e.computed(()=>!!v.dataset&&Object.keys(v.dataset).length),w=e.ref(c.createUid()),$=e.ref(null),P=e.ref(0),B=e.ref(0),t=e.computed({get:()=>z(),set:a=>a});function z(){const a=q.useNestedProp({userConfig:v.config,defaultConfig:T});return a.theme?{...q.useNestedProp({userConfig:c.themes.vue_ui_tiremarks[a.theme]||v.config,defaultConfig:a})}:a}e.watch(()=>v.config,a=>{t.value=z(),O(),B.value+=1},{deep:!0});const{isPrinting:S,isImaging:I,generatePdf:F,generateImage:N}=L.usePrinter({elementId:w.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(()=>{O()});function E(a){let u=t.value.style.chart.animation.speed;const l=Math.abs(a-n.value)/(u*120);function r(){n.value<a?n.value=Math.min(n.value+l,a):n.value>a&&(n.value=Math.max(n.value-l,a)),n.value!==a&&requestAnimationFrame(r)}r()}function O(){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}}),C=e.computed(()=>Object.values(s.value).reduce((a,u)=>a+u,0)),o=e.computed(()=>({height:f.value?312:56,width:f.value?56:312})),V=e.ref(100);e.computed(()=>v.dataset.percentage/V.value);const i=e.computed(()=>f.value?{mark:(o.value.height-C.value)/100*.5,space:(o.value.height-C.value)/100*.5}:{mark:(o.value.width-C.value)/100*.5,space:(o.value.width-C.value)/100*.5}),A=e.computed(()=>{const a=[];for(let l=0;l<100;l+=1){const r=t.value.style.chart.layout.ticks.gradient.show?c.shiftHue(t.value.style.chart.layout.activeColor,l/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-l)*(o.value.width-s.value.left-s.value.right)/100/3:0,d=s.value.left+4+y,h=o.value.width-s.value.right-4-y,m=o.value.height-s.value.bottom-l*i.value.mark-l*i.value.space-i.value.mark,p=o.value.height-s.value.bottom-l*i.value.mark-l*i.value.space-i.value.mark,k=(h-d)/t.value.style.chart.layout.curveAngleX,_=t.value.style.chart.layout.curveAngleY*((1+l)/100);a.push({x1:d,x2:h,y1:m,y2:p,curve:`M ${d} ${m} C ${d+k} ${m-_}, ${h-k} ${p-_}, ${h} ${p}`,color:r})}else{const y=t.value.style.chart.layout.crescendo?(100-l)*(o.value.height-s.value.top-s.value.bottom)/100/3:0,d=s.value.left+l*i.value.mark+l*i.value.space-i.value.mark,h=d,m=s.value.top+4+y,p=o.value.height-s.value.bottom-4-y,k=t.value.style.chart.layout.curveAngleY*((1+l)/100),_=(p-m)/t.value.style.chart.layout.curveAngleX;a.push({x1:d,x2:h,y1:m,y2:p,curve:`M ${d} ${m} C ${d+k} ${m+_}, ${h+k} ${p-_}, ${h} ${p}`,color:r})}}return a}),g=e.computed(()=>{let a,u,l;const r=t.value.style.chart.percentage.fontSize/3;return f.value?t.value.style.chart.percentage.verticalPosition==="top"?(a=o.value.width/2,u=s.value.top/2,l="middle"):t.value.style.chart.percentage.verticalPosition==="bottom"&&(a=o.value.width/2,u=o.value.height-s.value.bottom/2+r,l="middle"):t.value.style.chart.percentage.horizontalPosition==="left"?(a=4,u=o.value.height/2+r,l="start"):t.value.style.chart.percentage.horizontalPosition==="right"&&(a=o.value.width-s.value.right+8,u=o.value.height/2+r,l="start"),{x:a,y:u,textAnchor:l,bold:t.value.style.chart.percentage.bold,fontSize:t.value.style.chart.percentage.fontSize,fill:t.value.style.chart.percentage.color}}),b=e.ref(!1);function j(a){b.value=a,P.value+=1}return G({generatePdf:F,generateImage:N}),(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:w.value},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",Y,[(e.openBlock(),e.createBlock(U._sfc_main,{key:`title_${B.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&&x.value?(e.openBlock(),e.createBlock(L.UserOptions,{ref:"details",key:`user_options_${P.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(S),isImaging:e.unref(I),uid:w.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:b.value,titles:{...t.value.userOptions.buttonTitles},chartElement:$.value,position:t.value.userOptions.position,onToggleFullscreen:j,onGeneratePdf:e.unref(F),onGenerateImage:e.unref(N)},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:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(c.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${o.value.width} ${o.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(D._sfc_main),t.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{d:l.curve,"stroke-width":i.value.mark,stroke:n.value>=r?l.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,Q))),256))])):(e.openBlock(),e.createElementBlock("g",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:l.x1,y1:l.y1,x2:l.x2,y2:l.y2,"stroke-width":i.value.mark,stroke:n.value>=r?l.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,Z))),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,ee)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:o.value},void 0,!0)],14,J)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",te,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(S)||e.unref(I)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(H.default,{key:4,config:{type:"tiremarks",style:{backgroundColor:t.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],14,R))}},le=X._export_sfc(ae,[["__scopeId","data-v-9130298e"]]);exports.default=le;