vue-data-ui 2.3.28 → 2.3.30

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 (180) hide show
  1. package/README.md +15 -0
  2. package/dist/{Arrow-C6lQ94rK.cjs → Arrow-B8z06v67.cjs} +1 -1
  3. package/dist/{Arrow-BPoxM_Tq.js → Arrow-Bh7WeO_g.js} +1 -1
  4. package/dist/{BaseIcon-Op8_v5x7.js → BaseIcon-BG_bJS3R.js} +1 -1
  5. package/dist/{BaseIcon-BK5xYOzV.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
  6. package/dist/{DataTable-bEXuvNn5.js → DataTable-CsPidn0_.js} +23 -20
  7. package/dist/DataTable-Doh_4M84.cjs +1 -0
  8. package/dist/{Legend-BNfS77GS.cjs → Legend-B20rRwGi.cjs} +1 -1
  9. package/dist/{Legend-DwludSgp.js → Legend-CkQ_zypV.js} +1 -1
  10. package/dist/{Shape-COYAxpcP.js → Shape-B4gGeBLI.js} +1 -1
  11. package/dist/{Shape-CcWWIf-s.cjs → Shape-B8O8_E6l.cjs} +1 -1
  12. package/dist/{Slicer-DGkm-5p-.cjs → Slicer-BXveU40S.cjs} +1 -1
  13. package/dist/{Slicer-Cv-2s_-r.js → Slicer-DaEfxscP.js} +1 -1
  14. package/dist/{Title-DQz9dO4d.cjs → Title-BU6E8Xld.cjs} +1 -1
  15. package/dist/{Title-CtWGLaoz.js → Title-eBTH8iGJ.js} +1 -1
  16. package/dist/{Tooltip-D6BUVHr1.js → Tooltip-B11OahTD.js} +1 -1
  17. package/dist/{Tooltip-DQgBkgFk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
  18. package/dist/{index-BhCM2QF1.js → index-BlXzlBwZ.js} +443 -364
  19. package/dist/index-hKWfT7Wa.cjs +4 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +66 -0
  22. package/dist/types/vue-data-ui.d.ts +66 -0
  23. package/dist/{useNestedProp-CH3PVhvc.js → useNestedProp-BoNl5H_z.js} +1 -1
  24. package/dist/{useNestedProp-C2H2jmU6.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
  25. package/dist/{usePrinter-B75HLwzw.js → usePrinter-CZ8F5Cth.js} +1 -1
  26. package/dist/{usePrinter-DTF28E03.cjs → usePrinter-DoYKBzst.cjs} +1 -1
  27. package/dist/{vue-data-ui-DdhV5Pth.js → vue-data-ui-BOqzG_nZ.js} +57 -57
  28. package/dist/{vue-data-ui-cqeqQWwY.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
  29. package/dist/vue-data-ui.cjs +1 -1
  30. package/dist/vue-data-ui.js +6 -6
  31. package/dist/{vue-ui-3d-bar-gi0fEJUl.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
  32. package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
  33. package/dist/{vue-ui-accordion-CVrj6roI.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-CSZdj7wA.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
  36. package/dist/{vue-ui-age-pyramid-CFSWDX3d.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
  37. package/dist/{vue-ui-annotator-DqZU11ky.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
  38. package/dist/{vue-ui-annotator-u5YbenPl.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
  39. package/dist/{vue-ui-candlestick-C3xswSm3.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-Dph2PhZC.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
  41. package/dist/{vue-ui-carousel-table-0S6lSZnt.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
  42. package/dist/{vue-ui-carousel-table-eY08SE2G.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
  43. package/dist/{vue-ui-chestnut-BikYCrjQ.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
  44. package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
  45. package/dist/{vue-ui-cursor-OFgeAFSo.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
  46. package/dist/{vue-ui-cursor-DUA57VkZ.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-BTG0m9YL.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
  48. package/dist/{vue-ui-dashboard-DA4M1Z0-.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
  49. package/dist/{vue-ui-digits-55Zmunkv.js → vue-ui-digits-CmSFSs5S.js} +2 -2
  50. package/dist/{vue-ui-digits-COxRiMVI.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
  51. package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
  52. package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
  53. package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
  54. package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
  55. package/dist/{vue-ui-dumbbell-BSFT-Bce.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
  56. package/dist/{vue-ui-dumbbell-BtEXt5Ox.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
  57. package/dist/{vue-ui-flow-BPEGOFRZ.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
  58. package/dist/{vue-ui-flow-BBoXBTkC.js → vue-ui-flow-wq0aqc5r.js} +98 -93
  59. package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
  60. package/dist/{vue-ui-galaxy-ZFEufIyy.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
  61. package/dist/{vue-ui-gauge-CfZ9XJW_.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
  62. package/dist/{vue-ui-gauge-BqZp_V5m.js → vue-ui-gauge-CIN265dN.js} +158 -149
  63. package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
  64. package/dist/{vue-ui-gizmo-DitbWAJp.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
  65. package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
  66. package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
  67. package/dist/{vue-ui-kpi-BWuzEkyY.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
  68. package/dist/{vue-ui-kpi-B2Bo26hh.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
  69. package/dist/{vue-ui-mini-loader-BwAWiK3k.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
  70. package/dist/{vue-ui-mini-loader-C_Nb-qVd.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
  71. package/dist/{vue-ui-molecule-CSbXNrvu.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
  72. package/dist/{vue-ui-molecule-BD2UW2lJ.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
  73. package/dist/{vue-ui-mood-radar-CbMab8pJ.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
  74. package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
  75. package/dist/{vue-ui-nested-donuts-SDaiotgC.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
  76. package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
  77. package/dist/{vue-ui-onion-BamHJBdP.js → vue-ui-onion-B_khL0Kv.js} +230 -196
  78. package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
  79. package/dist/{vue-ui-parallel-coordinate-plot-BaAa3t1h.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
  80. package/dist/{vue-ui-parallel-coordinate-plot-1R4CyBdQ.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
  81. package/dist/{vue-ui-quadrant-CKCLhAS7.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
  82. package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
  83. package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
  84. package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
  85. package/dist/{vue-ui-radar-BY-y8Mal.js → vue-ui-radar-B2vAPYa7.js} +237 -214
  86. package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
  87. package/dist/{vue-ui-rating-DGEgzOaB.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
  88. package/dist/{vue-ui-rating-Bq1SsByA.js → vue-ui-rating-xGz4av68.js} +9 -9
  89. package/dist/{vue-ui-relation-circle-BPzLP6U6.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
  90. package/dist/{vue-ui-relation-circle-pdZ79G9r.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
  91. package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
  92. package/dist/{vue-ui-rings-C5ce6pEf.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
  93. package/dist/{vue-ui-scatter-CMetujXJ.js → vue-ui-scatter-CHONk8k0.js} +437 -381
  94. package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
  95. package/dist/{vue-ui-screenshot-BqzljUT3.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
  96. package/dist/{vue-ui-screenshot--2aeIH_x.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
  97. package/dist/{vue-ui-skeleton-_VMQ594N.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
  98. package/dist/{vue-ui-skeleton-B5Z4craS.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-CL-bubXk.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-Cty3e_yE.js → vue-ui-smiley-DXVcosKR.js} +2 -2
  101. package/dist/{vue-ui-spark-trend-DT1fMqf_.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
  102. package/dist/{vue-ui-spark-trend-pgdWTEqG.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
  103. package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
  104. package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
  105. package/dist/{vue-ui-sparkgauge-DdzlyDsm.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
  106. package/dist/{vue-ui-sparkgauge-Dx2gFX6H.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
  107. package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
  108. package/dist/{vue-ui-sparkhistogram-Bg_fJsT5.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
  109. package/dist/{vue-ui-sparkline-WMI-RgkW.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
  110. package/dist/{vue-ui-sparkline-BWl_B6LX.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
  111. package/dist/{vue-ui-sparkstackbar-Skcshn6g.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
  112. package/dist/{vue-ui-sparkstackbar-MMGRG9eS.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
  113. package/dist/{vue-ui-stackbar-NZFO3R77.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
  114. package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
  115. package/dist/{vue-ui-strip-plot-CJmCgC_a.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
  116. package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
  117. package/dist/{vue-ui-table-jJ3daLHe.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
  118. package/dist/{vue-ui-table-B-vHHlRw.js → vue-ui-table-DtwEoIzI.js} +9 -9
  119. package/dist/{vue-ui-table-heatmap-YCyFyq8J.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
  120. package/dist/{vue-ui-table-heatmap-BfzDb2H7.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
  121. package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
  122. package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
  123. package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
  124. package/dist/{vue-ui-thermometer-CdtG1AoI.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
  125. package/dist/{vue-ui-timer-Cb95XSdn.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
  126. package/dist/{vue-ui-timer-DBqMb9iX.js → vue-ui-timer-RA9yfgBk.js} +8 -8
  127. package/dist/{vue-ui-tiremarks-CHKETcHr.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
  128. package/dist/{vue-ui-tiremarks-BqXfvQ4t.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
  129. package/dist/{vue-ui-treemap-DxKunHfW.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
  130. package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
  131. package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
  132. package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
  133. package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
  134. package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
  135. package/dist/{vue-ui-wheel-kMVi976p.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
  136. package/dist/{vue-ui-wheel-4HKXl04I.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
  137. package/dist/{vue-ui-word-cloud-CrC3iKGd.js → vue-ui-word-cloud-DBxVNlJ3.js} +7 -7
  138. package/dist/{vue-ui-word-cloud-WgbYJhMF.cjs → vue-ui-word-cloud-Dmcelg3z.cjs} +1 -1
  139. package/dist/{vue-ui-xy-BN_H7q0X.js → vue-ui-xy-BIbvJSh2.js} +367 -288
  140. package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
  141. package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
  142. package/dist/{vue-ui-xy-canvas-DAY9Ylzs.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
  143. package/package.json +1 -1
  144. package/dist/DataTable-B4_9ynlY.cjs +0 -1
  145. package/dist/index-Y23HeR26.cjs +0 -4
  146. package/dist/vue-ui-3d-bar-BB6yidY7.cjs +0 -19
  147. package/dist/vue-ui-age-pyramid-CrTadT86.cjs +0 -1
  148. package/dist/vue-ui-chestnut-C3XOHDgw.cjs +0 -6
  149. package/dist/vue-ui-donut-CG3VWjnG.js +0 -751
  150. package/dist/vue-ui-donut-JA9hlLlV.cjs +0 -1
  151. package/dist/vue-ui-donut-evolution-CA8sDbwX.js +0 -805
  152. package/dist/vue-ui-donut-evolution-_E0xUI9Y.cjs +0 -1
  153. package/dist/vue-ui-galaxy-DPrJum3L.cjs +0 -1
  154. package/dist/vue-ui-gizmo-CrSaW32p.cjs +0 -1
  155. package/dist/vue-ui-heatmap-CTRjjhmd.cjs +0 -1
  156. package/dist/vue-ui-heatmap-zV0pg2Q5.js +0 -606
  157. package/dist/vue-ui-mood-radar-zpxdsZ4u.cjs +0 -1
  158. package/dist/vue-ui-nested-donuts-07UI_VlW.cjs +0 -16
  159. package/dist/vue-ui-onion-DiychUul.cjs +0 -1
  160. package/dist/vue-ui-quadrant-DxLYb8Mk.cjs +0 -1
  161. package/dist/vue-ui-quick-chart-CAXuRSdm.js +0 -1318
  162. package/dist/vue-ui-quick-chart-DgCRM6WA.cjs +0 -13
  163. package/dist/vue-ui-radar-iETP_3US.cjs +0 -1
  164. package/dist/vue-ui-rings-DdpKT3DJ.cjs +0 -1
  165. package/dist/vue-ui-scatter-Dsc6RABP.cjs +0 -1
  166. package/dist/vue-ui-sparkbar-BVQPOz2O.js +0 -257
  167. package/dist/vue-ui-sparkbar-kfA-BPVJ.cjs +0 -1
  168. package/dist/vue-ui-sparkhistogram-B5xstgQG.cjs +0 -1
  169. package/dist/vue-ui-stackbar-DZ0CArmk.cjs +0 -15
  170. package/dist/vue-ui-strip-plot-Db_dqjd9.cjs +0 -1
  171. package/dist/vue-ui-table-sparkline-4Qbmxxsy.cjs +0 -1
  172. package/dist/vue-ui-table-sparkline-DZt-bo2D.js +0 -420
  173. package/dist/vue-ui-thermometer-HXWDU2wD.cjs +0 -1
  174. package/dist/vue-ui-treemap-CW9JmJ2d.cjs +0 -1
  175. package/dist/vue-ui-vertical-bar-83AMwsHD.cjs +0 -4
  176. package/dist/vue-ui-vertical-bar-DRLwZjIz.js +0 -745
  177. package/dist/vue-ui-waffle-BRuDxyDU.js +0 -650
  178. package/dist/vue-ui-waffle-BwUbvdOE.cjs +0 -1
  179. package/dist/vue-ui-xy-BXfP5pz5.cjs +0 -3
  180. package/dist/vue-ui-xy-canvas-NrhVgFsv.cjs +0 -9
@@ -1,14 +1,14 @@
1
- import { computed as h, ref as p, watch as Z, onMounted as ee, openBlock as s, createElementBlock as c, normalizeClass as O, normalizeStyle as S, createVNode as te, createCommentVNode as _, createBlock as V, unref as f, createSlots as ae, withCtx as A, renderSlot as w, normalizeProps as X, guardReactiveProps as M, Fragment as D, renderList as H, toDisplayString as le } from "vue";
2
- import { u as R } from "./useNestedProp-CH3PVhvc.js";
3
- import { u as oe, c as re, t as se, o as ne, e as ue, s as Y, X as ie } from "./index-BhCM2QF1.js";
4
- import { _ as ce } from "./Title-CtWGLaoz.js";
5
- import { u as ve, U as he } from "./usePrinter-B75HLwzw.js";
6
- import de from "./vue-ui-skeleton-_VMQ594N.js";
7
- import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const me = ["id"], ye = ["xmlns", "viewBox"], fe = { key: 0 }, pe = ["d", "stroke-width", "stroke"], ke = { key: 1 }, _e = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], be = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Ce = {
1
+ import { computed as h, ref as p, watch as Z, onMounted as ee, openBlock as s, createElementBlock as v, normalizeClass as O, normalizeStyle as S, createVNode as te, createCommentVNode as _, createBlock as V, unref as d, createSlots as ae, withCtx as A, renderSlot as w, normalizeProps as X, guardReactiveProps as D, Fragment as M, renderList as H, toDisplayString as le } from "vue";
2
+ import { u as R } from "./useNestedProp-BoNl5H_z.js";
3
+ import { u as re, c as oe, t as se, o as ne, e as ue, s as Y, X as ie, i as ce, f as ve } from "./index-BlXzlBwZ.js";
4
+ import { _ as he } from "./Title-eBTH8iGJ.js";
5
+ import { u as de, U as ge } from "./usePrinter-CZ8F5Cth.js";
6
+ import ye from "./vue-ui-skeleton-CJ2R5R6u.js";
7
+ import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const fe = ["id"], pe = ["xmlns", "viewBox"], ke = { key: 0 }, _e = ["d", "stroke-width", "stroke"], be = { key: 1 }, Ce = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], $e = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], xe = {
9
9
  key: 3,
10
10
  class: "vue-data-ui-watermark"
11
- }, $e = {
11
+ }, we = {
12
12
  __name: "vue-ui-tiremarks",
13
13
  props: {
14
14
  config: {
@@ -25,7 +25,7 @@ const me = ["id"], ye = ["xmlns", "viewBox"], fe = { key: 0 }, pe = ["d", "strok
25
25
  }
26
26
  },
27
27
  setup(q, { expose: J }) {
28
- const u = q, { vue_ui_tiremarks: K } = oe(), F = h(() => !!u.dataset && Object.keys(u.dataset).length), z = p(re()), N = p(null), G = p(0), e = h(() => {
28
+ const u = q, { vue_ui_tiremarks: K } = re(), F = h(() => !!u.dataset && Object.keys(u.dataset).length), z = p(oe()), N = p(null), G = p(0), e = h(() => {
29
29
  const t = R({
30
30
  userConfig: u.config,
31
31
  defaultConfig: K
@@ -36,26 +36,26 @@ const me = ["id"], ye = ["xmlns", "viewBox"], fe = { key: 0 }, pe = ["d", "strok
36
36
  defaultConfig: t
37
37
  })
38
38
  } : t;
39
- }), { isPrinting: U, isImaging: j, generatePdf: B, generateImage: E } = ve({
39
+ }), { isPrinting: L, isImaging: U, generatePdf: j, generateImage: B } = de({
40
40
  elementId: z.value,
41
41
  fileName: e.value.style.chart.title.text || "vue-ui-tiremarks"
42
- }), v = p(e.value.style.chart.animation.use ? 0 : u.dataset.percentage);
42
+ }), i = p(e.value.style.chart.animation.use ? 0 : u.dataset.percentage);
43
43
  Z(() => u.dataset.percentage, () => {
44
- v.value = p(e.value.style.chart.animation.use ? 0 : u.dataset.percentage), L();
44
+ i.value = p(e.value.style.chart.animation.use ? 0 : u.dataset.percentage), E();
45
45
  }), ee(() => {
46
46
  ne(u.dataset) && ue({
47
47
  componentName: "VueUiTiremarks",
48
48
  type: "dataset"
49
- }), L();
49
+ }), E();
50
50
  });
51
- function L() {
51
+ function E() {
52
52
  let t = 0, n = e.value.style.chart.animation.speed, a = 5e-3 * e.value.style.chart.animation.acceleration;
53
- function o() {
54
- v.value += n + t, t += a, v.value < u.dataset.percentage ? requestAnimationFrame(o) : v.value = u.dataset.percentage;
53
+ function r() {
54
+ i.value += n + t, t += a, i.value < u.dataset.percentage ? requestAnimationFrame(r) : i.value = u.dataset.percentage;
55
55
  }
56
- e.value.style.chart.animation.use && (v.value = 0, o());
56
+ e.value.style.chart.animation.use && (i.value = 0, r());
57
57
  }
58
- const k = h(() => e.value.style.chart.layout.display === "vertical"), r = h(() => {
58
+ const k = h(() => e.value.style.chart.layout.display === "vertical"), o = h(() => {
59
59
  const t = {
60
60
  top: 48,
61
61
  left: 64,
@@ -73,12 +73,12 @@ const me = ["id"], ye = ["xmlns", "viewBox"], fe = { key: 0 }, pe = ["d", "strok
73
73
  left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
74
74
  right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
75
75
  };
76
- }), P = h(() => Object.values(r.value).reduce((t, n) => t + n, 0)), l = h(() => ({
76
+ }), P = h(() => Object.values(o.value).reduce((t, n) => t + n, 0)), l = h(() => ({
77
77
  height: k.value ? 312 : 56,
78
78
  width: k.value ? 56 : 312
79
79
  })), Q = p(100);
80
80
  h(() => u.dataset.percentage / Q.value);
81
- const i = h(() => k.value ? {
81
+ const c = h(() => k.value ? {
82
82
  mark: (l.value.height - P.value) / 100 * 0.5,
83
83
  space: (l.value.height - P.value) / 100 * 0.5
84
84
  } : {
@@ -87,34 +87,34 @@ const me = ["id"], ye = ["xmlns", "viewBox"], fe = { key: 0 }, pe = ["d", "strok
87
87
  }), T = h(() => {
88
88
  const t = [];
89
89
  for (let a = 0; a < 100; a += 1) {
90
- const o = e.value.style.chart.layout.ticks.gradient.show ? Y(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
90
+ const r = e.value.style.chart.layout.ticks.gradient.show ? Y(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
91
91
  if (k.value) {
92
- const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - r.value.left - r.value.right) / 100 / 3 : 0, d = r.value.left + 4 + C, g = l.value.width - r.value.right - 4 - C, m = l.value.height - r.value.bottom - a * i.value.mark - a * i.value.space - i.value.mark, y = l.value.height - r.value.bottom - a * i.value.mark - a * i.value.space - i.value.mark, $ = (g - d) / e.value.style.chart.layout.curveAngleX, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
92
+ const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - o.value.left - o.value.right) / 100 / 3 : 0, g = o.value.left + 4 + C, y = l.value.width - o.value.right - 4 - C, m = l.value.height - o.value.bottom - a * c.value.mark - a * c.value.space - c.value.mark, f = l.value.height - o.value.bottom - a * c.value.mark - a * c.value.space - c.value.mark, $ = (y - g) / e.value.style.chart.layout.curveAngleX, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
93
93
  t.push({
94
- x1: d,
95
- x2: g,
94
+ x1: g,
95
+ x2: y,
96
96
  y1: m,
97
- y2: y,
98
- curve: `M ${d} ${m} C ${d + $} ${m - x}, ${g - $} ${y - x}, ${g} ${y}`,
99
- color: o
97
+ y2: f,
98
+ curve: `M ${g} ${m} C ${g + $} ${m - x}, ${y - $} ${f - x}, ${y} ${f}`,
99
+ color: r
100
100
  });
101
101
  } else {
102
- const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - r.value.top - r.value.bottom) / 100 / 3 : 0, d = r.value.left + a * i.value.mark + a * i.value.space - i.value.mark, g = d, m = r.value.top + 4 + C, y = l.value.height - r.value.bottom - 4 - C, $ = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), x = (y - m) / e.value.style.chart.layout.curveAngleX;
102
+ const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - o.value.top - o.value.bottom) / 100 / 3 : 0, g = o.value.left + a * c.value.mark + a * c.value.space - c.value.mark, y = g, m = o.value.top + 4 + C, f = l.value.height - o.value.bottom - 4 - C, $ = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), x = (f - m) / e.value.style.chart.layout.curveAngleX;
103
103
  t.push({
104
- x1: d,
105
- x2: g,
104
+ x1: g,
105
+ x2: y,
106
106
  y1: m,
107
- y2: y,
108
- curve: `M ${d} ${m} C ${d + $} ${m + x}, ${g + $} ${y - x}, ${g} ${y}`,
109
- color: o
107
+ y2: f,
108
+ curve: `M ${g} ${m} C ${g + $} ${m + x}, ${y + $} ${f - x}, ${y} ${f}`,
109
+ color: r
110
110
  });
111
111
  }
112
112
  }
113
113
  return t;
114
114
  }), b = h(() => {
115
115
  let t, n, a;
116
- const o = e.value.style.chart.percentage.fontSize / 3;
117
- return k.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = l.value.width / 2, n = r.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = l.value.width / 2, n = l.value.height - r.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, n = l.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = l.value.width - r.value.right + 8, n = l.value.height / 2 + o, a = "start"), {
116
+ const r = e.value.style.chart.percentage.fontSize / 3;
117
+ return k.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = l.value.width / 2, n = o.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = l.value.width / 2, n = l.value.height - o.value.bottom / 2 + r, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, n = l.value.height / 2 + r, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = l.value.width - o.value.right + 8, n = l.value.height / 2 + r, a = "start"), {
118
118
  x: t,
119
119
  y: n,
120
120
  textAnchor: a,
@@ -127,20 +127,20 @@ const me = ["id"], ye = ["xmlns", "viewBox"], fe = { key: 0 }, pe = ["d", "strok
127
127
  I.value = t, G.value += 1;
128
128
  }
129
129
  return J({
130
- generatePdf: B,
131
- generateImage: E
132
- }), (t, n) => (s(), c("div", {
130
+ generatePdf: j,
131
+ generateImage: B
132
+ }), (t, n) => (s(), v("div", {
133
133
  ref_key: "tiremarksChart",
134
134
  ref: N,
135
135
  class: O(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
136
136
  style: S(`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}`),
137
137
  id: z.value
138
138
  }, [
139
- e.value.style.chart.title.text ? (s(), c("div", {
139
+ e.value.style.chart.title.text ? (s(), v("div", {
140
140
  key: 0,
141
141
  style: S(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
142
142
  }, [
143
- te(ce, {
143
+ te(he, {
144
144
  config: {
145
145
  title: {
146
146
  cy: "wheel-title",
@@ -153,13 +153,13 @@ const me = ["id"], ye = ["xmlns", "viewBox"], fe = { key: 0 }, pe = ["d", "strok
153
153
  }
154
154
  }, null, 8, ["config"])
155
155
  ], 4)) : _("", !0),
156
- e.value.userOptions.show && F.value ? (s(), V(he, {
156
+ e.value.userOptions.show && F.value ? (s(), V(ge, {
157
157
  ref: "details",
158
158
  key: `user_options_${G.value}`,
159
159
  backgroundColor: e.value.style.chart.backgroundColor,
160
160
  color: e.value.style.chart.color,
161
- isPrinting: f(U),
162
- isImaging: f(j),
161
+ isPrinting: d(L),
162
+ isImaging: d(U),
163
163
  uid: z.value,
164
164
  hasPdf: e.value.userOptions.buttons.pdf,
165
165
  hasImg: e.value.userOptions.buttons.img,
@@ -169,8 +169,8 @@ const me = ["id"], ye = ["xmlns", "viewBox"], fe = { key: 0 }, pe = ["d", "strok
169
169
  titles: { ...e.value.userOptions.buttonTitles },
170
170
  chartElement: N.value,
171
171
  onToggleFullscreen: W,
172
- onGeneratePdf: f(B),
173
- onGenerateImage: f(E)
172
+ onGeneratePdf: d(j),
173
+ onGenerateImage: d(B)
174
174
  }, ae({ _: 2 }, [
175
175
  t.$slots.optionPdf ? {
176
176
  name: "optionPdf",
@@ -188,54 +188,62 @@ const me = ["id"], ye = ["xmlns", "viewBox"], fe = { key: 0 }, pe = ["d", "strok
188
188
  } : void 0,
189
189
  t.$slots.optionFullscreen ? {
190
190
  name: "optionFullscreen",
191
- fn: A(({ toggleFullscreen: a, isFullscreen: o }) => [
192
- w(t.$slots, "optionFullscreen", X(M({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
191
+ fn: A(({ toggleFullscreen: a, isFullscreen: r }) => [
192
+ w(t.$slots, "optionFullscreen", X(D({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
193
193
  ]),
194
194
  key: "2"
195
195
  } : void 0
196
196
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : _("", !0),
197
- F.value ? (s(), c("svg", {
197
+ F.value ? (s(), v("svg", {
198
198
  key: 2,
199
- xmlns: f(ie),
199
+ xmlns: d(ie),
200
200
  class: O({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
201
201
  viewBox: `0 0 ${l.value.width} ${l.value.height}`,
202
202
  style: S(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
203
203
  }, [
204
- e.value.style.chart.layout.curved ? (s(), c("g", fe, [
205
- (s(!0), c(D, null, H(T.value, (a, o) => (s(), c("path", {
204
+ e.value.style.chart.layout.curved ? (s(), v("g", ke, [
205
+ (s(!0), v(M, null, H(T.value, (a, r) => (s(), v("path", {
206
206
  d: a.curve,
207
- "stroke-width": i.value.mark,
208
- stroke: v.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
207
+ "stroke-width": c.value.mark,
208
+ stroke: i.value >= r ? a.color : e.value.style.chart.layout.inactiveColor,
209
209
  "stroke-linecap": "round",
210
210
  fill: "none",
211
- class: O({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= v.value })
212
- }, null, 10, pe))), 256))
213
- ])) : (s(), c("g", ke, [
214
- (s(!0), c(D, null, H(T.value, (a, o) => (s(), c("line", {
211
+ class: O({ "vue-ui-tick-animated": e.value.style.chart.animation.use && r <= i.value })
212
+ }, null, 10, _e))), 256))
213
+ ])) : (s(), v("g", be, [
214
+ (s(!0), v(M, null, H(T.value, (a, r) => (s(), v("line", {
215
215
  x1: a.x1,
216
216
  y1: a.y1,
217
217
  x2: a.x2,
218
218
  y2: a.y2,
219
- "stroke-width": i.value.mark,
220
- stroke: v.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
219
+ "stroke-width": c.value.mark,
220
+ stroke: i.value >= r ? a.color : e.value.style.chart.layout.inactiveColor,
221
221
  "stroke-linecap": "round"
222
- }, null, 8, _e))), 256))
222
+ }, null, 8, Ce))), 256))
223
223
  ])),
224
- e.value.style.chart.percentage.show ? (s(), c("text", {
224
+ e.value.style.chart.percentage.show ? (s(), v("text", {
225
225
  key: 2,
226
226
  x: b.value.x,
227
227
  y: b.value.y,
228
228
  "font-size": b.value.fontSize,
229
- fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? f(Y)(e.value.style.chart.layout.activeColor, v.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
229
+ fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? d(Y)(e.value.style.chart.layout.activeColor, i.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
230
230
  "font-weight": b.value.bold ? "bold" : "normal",
231
231
  "text-anchor": b.value.textAnchor
232
- }, le(v.value.toFixed(e.value.style.chart.percentage.rounding) + "%"), 9, be)) : _("", !0),
232
+ }, le(d(ce)(
233
+ e.value.style.chart.percentage.formatter,
234
+ i.value,
235
+ d(ve)({
236
+ v: i.value,
237
+ s: "%",
238
+ r: e.value.style.chart.percentage.rounding
239
+ })
240
+ )), 9, $e)) : _("", !0),
233
241
  w(t.$slots, "svg", { svg: l.value }, void 0, !0)
234
- ], 14, ye)) : _("", !0),
235
- t.$slots.watermark ? (s(), c("div", Ce, [
236
- w(t.$slots, "watermark", X(M({ isPrinting: f(U) || f(j) })), void 0, !0)
242
+ ], 14, pe)) : _("", !0),
243
+ t.$slots.watermark ? (s(), v("div", xe, [
244
+ w(t.$slots, "watermark", X(D({ isPrinting: d(L) || d(U) })), void 0, !0)
237
245
  ])) : _("", !0),
238
- F.value ? _("", !0) : (s(), V(de, {
246
+ F.value ? _("", !0) : (s(), V(ye, {
239
247
  key: 4,
240
248
  config: {
241
249
  type: "tiremarks",
@@ -247,9 +255,9 @@ const me = ["id"], ye = ["xmlns", "viewBox"], fe = { key: 0 }, pe = ["d", "strok
247
255
  }
248
256
  }
249
257
  }, null, 8, ["config"]))
250
- ], 14, me));
258
+ ], 14, fe));
251
259
  }
252
- }, Se = /* @__PURE__ */ ge($e, [["__scopeId", "data-v-92e00604"]]);
260
+ }, Ne = /* @__PURE__ */ me(we, [["__scopeId", "data-v-0cc3937c"]]);
253
261
  export {
254
- Se as default
262
+ Ne as default
255
263
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./useNestedProp-C2H2jmU6.cjs"),g=require("./index-Y23HeR26.cjs"),j=require("./Title-DQz9dO4d.cjs"),O=require("./usePrinter-DTF28E03.cjs"),L=require("./vue-ui-skeleton-B5Z4craS.cjs"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=["id"],M=["xmlns","viewBox"],X={key:0},D=["d","stroke-width","stroke"],R={key:1},Y=["x1","y1","x2","y2","stroke-width","stroke"],J=["x","y","font-size","fill","font-weight","text-anchor"],K={key:3,class:"vue-data-ui-watermark"},Q={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(A,{expose:V}){const u=A,{vue_ui_tiremarks:q}=g.useConfig(),x=e.computed(()=>!!u.dataset&&Object.keys(u.dataset).length),$=e.ref(g.createUid()),w=e.ref(null),P=e.ref(0),t=e.computed(()=>{const a=E.useNestedProp({userConfig:u.config,defaultConfig:q});return a.theme?{...E.useNestedProp({userConfig:g.themes.vue_ui_tiremarks[a.theme]||u.config,defaultConfig:a})}:a}),{isPrinting:B,isImaging:z,generatePdf:S,generateImage:F}=O.usePrinter({elementId:$.value,fileName:t.value.style.chart.title.text||"vue-ui-tiremarks"}),c=e.ref(t.value.style.chart.animation.use?0:u.dataset.percentage);e.watch(()=>u.dataset.percentage,()=>{c.value=e.ref(t.value.style.chart.animation.use?0:u.dataset.percentage),I()}),e.onMounted(()=>{g.objectIsEmpty(u.dataset)&&g.error({componentName:"VueUiTiremarks",type:"dataset"}),I()});function I(){let a=0,s=t.value.style.chart.animation.speed,l=.005*t.value.style.chart.animation.acceleration;function r(){c.value+=s+a,a+=l,c.value<u.dataset.percentage?requestAnimationFrame(r):c.value=u.dataset.percentage}t.value.style.chart.animation.use&&(c.value=0,r())}const y=e.computed(()=>t.value.style.chart.layout.display==="vertical"),n=e.computed(()=>{const a={top:48,left:64,right:64,bottom:48};return y.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}}),_=e.computed(()=>Object.values(n.value).reduce((a,s)=>a+s,0)),o=e.computed(()=>({height:y.value?312:56,width:y.value?56:312})),G=e.ref(100);e.computed(()=>u.dataset.percentage/G.value);const i=e.computed(()=>y.value?{mark:(o.value.height-_.value)/100*.5,space:(o.value.height-_.value)/100*.5}:{mark:(o.value.width-_.value)/100*.5,space:(o.value.width-_.value)/100*.5}),N=e.computed(()=>{const a=[];for(let l=0;l<100;l+=1){const r=t.value.style.chart.layout.ticks.gradient.show?g.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(y.value){const f=t.value.style.chart.layout.crescendo?(100-l)*(o.value.width-n.value.left-n.value.right)/100/3:0,v=n.value.left+4+f,d=o.value.width-n.value.right-4-f,h=o.value.height-n.value.bottom-l*i.value.mark-l*i.value.space-i.value.mark,m=o.value.height-n.value.bottom-l*i.value.mark-l*i.value.space-i.value.mark,k=(d-v)/t.value.style.chart.layout.curveAngleX,C=t.value.style.chart.layout.curveAngleY*((1+l)/100);a.push({x1:v,x2:d,y1:h,y2:m,curve:`M ${v} ${h} C ${v+k} ${h-C}, ${d-k} ${m-C}, ${d} ${m}`,color:r})}else{const f=t.value.style.chart.layout.crescendo?(100-l)*(o.value.height-n.value.top-n.value.bottom)/100/3:0,v=n.value.left+l*i.value.mark+l*i.value.space-i.value.mark,d=v,h=n.value.top+4+f,m=o.value.height-n.value.bottom-4-f,k=t.value.style.chart.layout.curveAngleY*((1+l)/100),C=(m-h)/t.value.style.chart.layout.curveAngleX;a.push({x1:v,x2:d,y1:h,y2:m,curve:`M ${v} ${h} C ${v+k} ${h+C}, ${d+k} ${m-C}, ${d} ${m}`,color:r})}}return a}),p=e.computed(()=>{let a,s,l;const r=t.value.style.chart.percentage.fontSize/3;return y.value?t.value.style.chart.percentage.verticalPosition==="top"?(a=o.value.width/2,s=n.value.top/2,l="middle"):t.value.style.chart.percentage.verticalPosition==="bottom"&&(a=o.value.width/2,s=o.value.height-n.value.bottom/2+r,l="middle"):t.value.style.chart.percentage.horizontalPosition==="left"?(a=4,s=o.value.height/2+r,l="start"):t.value.style.chart.percentage.horizontalPosition==="right"&&(a=o.value.width-n.value.right+8,s=o.value.height/2+r,l="start"),{x:a,y:s,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 T(a){b.value=a,P.value+=1}return V({generatePdf:S,generateImage:F}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:w,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:$.value},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(j._sfc_main,{config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&x.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,isPrinting:e.unref(B),isImaging:e.unref(z),uid:$.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:w.value,onToggleFullscreen:T,onGeneratePdf:e.unref(S),onGenerateImage:e.unref(F)},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","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(g.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:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[t.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",X,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{d:l.curve,"stroke-width":i.value.mark,stroke:c.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<=c.value})},null,10,D))),256))])):(e.openBlock(),e.createElementBlock("g",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.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:c.value>=r?l.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,Y))),256))])),t.value.style.chart.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:p.value.x,y:p.value.y,"font-size":p.value.fontSize,fill:t.value.style.chart.layout.ticks.gradient.show&&t.value.style.chart.percentage.useGradientColor?e.unref(g.shiftHue)(t.value.style.chart.layout.activeColor,c.value/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.percentage.color,"font-weight":p.value.bold?"bold":"normal","text-anchor":p.value.textAnchor},e.toDisplayString(c.value.toFixed(t.value.style.chart.percentage.rounding)+"%"),9,J)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:o.value},void 0,!0)],14,M)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",K,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(B)||e.unref(z)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(L.default,{key:4,config:{type:"tiremarks",style:{backgroundColor:t.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],14,H))}},W=U._export_sfc(Q,[["__scopeId","data-v-92e00604"]]);exports.default=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./useNestedProp-Cggpoz7e.cjs"),v=require("./index-hKWfT7Wa.cjs"),T=require("./Title-BU6E8Xld.cjs"),O=require("./usePrinter-DoYKBzst.cjs"),j=require("./vue-ui-skeleton-j-IOiy5w.cjs"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=["id"],M=["xmlns","viewBox"],D={key:0},X=["d","stroke-width","stroke"],R={key:1},Y=["x1","y1","x2","y2","stroke-width","stroke"],J=["x","y","font-size","fill","font-weight","text-anchor"],K={key:3,class:"vue-data-ui-watermark"},Q={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(A,{expose:V}){const u=A,{vue_ui_tiremarks:q}=v.useConfig(),x=e.computed(()=>!!u.dataset&&Object.keys(u.dataset).length),$=e.ref(v.createUid()),w=e.ref(null),P=e.ref(0),t=e.computed(()=>{const a=E.useNestedProp({userConfig:u.config,defaultConfig:q});return a.theme?{...E.useNestedProp({userConfig:v.themes.vue_ui_tiremarks[a.theme]||u.config,defaultConfig:a})}:a}),{isPrinting:B,isImaging:z,generatePdf:S,generateImage:I}=O.usePrinter({elementId:$.value,fileName:t.value.style.chart.title.text||"vue-ui-tiremarks"}),i=e.ref(t.value.style.chart.animation.use?0:u.dataset.percentage);e.watch(()=>u.dataset.percentage,()=>{i.value=e.ref(t.value.style.chart.animation.use?0:u.dataset.percentage),F()}),e.onMounted(()=>{v.objectIsEmpty(u.dataset)&&v.error({componentName:"VueUiTiremarks",type:"dataset"}),F()});function F(){let a=0,s=t.value.style.chart.animation.speed,l=.005*t.value.style.chart.animation.acceleration;function r(){i.value+=s+a,a+=l,i.value<u.dataset.percentage?requestAnimationFrame(r):i.value=u.dataset.percentage}t.value.style.chart.animation.use&&(i.value=0,r())}const y=e.computed(()=>t.value.style.chart.layout.display==="vertical"),n=e.computed(()=>{const a={top:48,left:64,right:64,bottom:48};return y.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(n.value).reduce((a,s)=>a+s,0)),o=e.computed(()=>({height:y.value?312:56,width:y.value?56:312})),L=e.ref(100);e.computed(()=>u.dataset.percentage/L.value);const c=e.computed(()=>y.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}),N=e.computed(()=>{const a=[];for(let l=0;l<100;l+=1){const r=t.value.style.chart.layout.ticks.gradient.show?v.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(y.value){const f=t.value.style.chart.layout.crescendo?(100-l)*(o.value.width-n.value.left-n.value.right)/100/3:0,d=n.value.left+4+f,h=o.value.width-n.value.right-4-f,m=o.value.height-n.value.bottom-l*c.value.mark-l*c.value.space-c.value.mark,g=o.value.height-n.value.bottom-l*c.value.mark-l*c.value.space-c.value.mark,k=(h-d)/t.value.style.chart.layout.curveAngleX,b=t.value.style.chart.layout.curveAngleY*((1+l)/100);a.push({x1:d,x2:h,y1:m,y2:g,curve:`M ${d} ${m} C ${d+k} ${m-b}, ${h-k} ${g-b}, ${h} ${g}`,color:r})}else{const f=t.value.style.chart.layout.crescendo?(100-l)*(o.value.height-n.value.top-n.value.bottom)/100/3:0,d=n.value.left+l*c.value.mark+l*c.value.space-c.value.mark,h=d,m=n.value.top+4+f,g=o.value.height-n.value.bottom-4-f,k=t.value.style.chart.layout.curveAngleY*((1+l)/100),b=(g-m)/t.value.style.chart.layout.curveAngleX;a.push({x1:d,x2:h,y1:m,y2:g,curve:`M ${d} ${m} C ${d+k} ${m+b}, ${h+k} ${g-b}, ${h} ${g}`,color:r})}}return a}),p=e.computed(()=>{let a,s,l;const r=t.value.style.chart.percentage.fontSize/3;return y.value?t.value.style.chart.percentage.verticalPosition==="top"?(a=o.value.width/2,s=n.value.top/2,l="middle"):t.value.style.chart.percentage.verticalPosition==="bottom"&&(a=o.value.width/2,s=o.value.height-n.value.bottom/2+r,l="middle"):t.value.style.chart.percentage.horizontalPosition==="left"?(a=4,s=o.value.height/2+r,l="start"):t.value.style.chart.percentage.horizontalPosition==="right"&&(a=o.value.width-n.value.right+8,s=o.value.height/2+r,l="start"),{x:a,y:s,textAnchor:l,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 G(a){_.value=a,P.value+=1}return V({generatePdf:S,generateImage:I}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:w,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:$.value},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(T._sfc_main,{config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&x.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,isPrinting:e.unref(B),isImaging:e.unref(z),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:w.value,onToggleFullscreen:G,onGeneratePdf:e.unref(S),onGenerateImage:e.unref(I)},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","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(v.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),viewBox:`0 0 ${o.value.width} ${o.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[t.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{d:l.curve,"stroke-width":c.value.mark,stroke:i.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<=i.value})},null,10,X))),256))])):(e.openBlock(),e.createElementBlock("g",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:l.x1,y1:l.y1,x2:l.x2,y2:l.y2,"stroke-width":c.value.mark,stroke:i.value>=r?l.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,Y))),256))])),t.value.style.chart.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:p.value.x,y:p.value.y,"font-size":p.value.fontSize,fill:t.value.style.chart.layout.ticks.gradient.show&&t.value.style.chart.percentage.useGradientColor?e.unref(v.shiftHue)(t.value.style.chart.layout.activeColor,i.value/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.percentage.color,"font-weight":p.value.bold?"bold":"normal","text-anchor":p.value.textAnchor},e.toDisplayString(e.unref(v.applyDataLabel)(t.value.style.chart.percentage.formatter,i.value,e.unref(v.dataLabel)({v:i.value,s:"%",r:t.value.style.chart.percentage.rounding}))),9,J)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:o.value},void 0,!0)],14,M)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",K,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(B)||e.unref(z)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(j.default,{key:4,config:{type:"tiremarks",style:{backgroundColor:t.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],14,H))}},W=U._export_sfc(Q,[["__scopeId","data-v-0cc3937c"]]);exports.default=W;