vue-data-ui 2.4.1 → 2.4.3

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 (218) hide show
  1. package/README.md +44 -44
  2. package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
  3. package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
  4. package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
  5. package/dist/BaseIcon-uALK38Ov.cjs +1 -0
  6. package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
  7. package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
  8. package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
  9. package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
  10. package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
  11. package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
  12. package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
  13. package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
  14. package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
  15. package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
  16. package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
  17. package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
  18. package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
  19. package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
  20. package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
  21. package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
  22. package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
  23. package/dist/index-eFox7weK.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +22 -17
  26. package/dist/types/vue-data-ui.d.ts +22 -17
  27. package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
  28. package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
  29. package/dist/usePrinter-CSRFnDBU.cjs +1 -0
  30. package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
  31. package/dist/useResponsive-BY8tgM1n.js +188 -0
  32. package/dist/useResponsive-CodiGUOE.cjs +1 -0
  33. package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
  34. package/dist/vue-data-ui-Bduq4f2p.js +261 -0
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
  38. package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
  39. package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
  40. package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
  42. package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
  43. package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
  44. package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
  45. package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
  46. package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
  47. package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
  48. package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
  49. package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
  50. package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
  51. package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
  52. package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
  53. package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
  55. package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
  56. package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
  57. package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
  58. package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
  59. package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
  60. package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
  61. package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
  62. package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
  63. package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
  65. package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
  66. package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
  68. package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
  69. package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
  70. package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
  71. package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
  72. package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
  73. package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
  74. package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
  75. package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
  76. package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
  78. package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
  79. package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
  80. package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
  82. package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
  83. package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
  84. package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
  85. package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
  86. package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
  87. package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
  88. package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
  89. package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
  90. package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
  91. package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
  92. package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
  93. package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
  94. package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
  95. package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
  96. package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
  97. package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
  98. package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
  99. package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
  100. package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
  101. package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
  102. package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
  103. package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
  105. package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
  106. package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
  107. package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
  109. package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
  110. package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
  111. package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
  112. package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
  113. package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
  115. package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
  116. package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
  117. package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
  118. package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
  119. package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
  120. package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
  121. package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
  122. package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
  123. package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
  124. package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
  125. package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
  126. package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
  128. package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
  130. package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
  131. package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
  132. package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
  133. package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
  134. package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
  135. package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
  136. package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
  137. package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
  138. package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
  139. package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
  140. package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
  141. package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
  142. package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
  143. package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
  144. package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
  145. package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
  146. package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
  147. package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
  148. package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
  149. package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
  150. package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
  151. package/package.json +1 -1
  152. package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
  153. package/dist/index-C7_6YjWN.cjs +0 -9
  154. package/dist/usePrinter-8EP4iaGm.cjs +0 -1
  155. package/dist/useResponsive-B3TrDDIG.cjs +0 -1
  156. package/dist/useResponsive-NZB-WLRF.js +0 -187
  157. package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
  158. package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
  159. package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
  160. package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
  161. package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
  162. package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
  163. package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
  164. package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
  165. package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
  166. package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
  169. package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
  170. package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
  171. package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
  172. package/dist/vue-ui-gauge-BXiy515T.js +0 -494
  173. package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
  174. package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
  175. package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
  176. package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
  177. package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
  178. package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
  179. package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
  180. package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
  181. package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
  182. package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
  183. package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
  184. package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
  185. package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
  186. package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
  187. package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
  188. package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
  189. package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
  190. package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
  191. package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
  192. package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
  193. package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
  194. package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
  195. package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
  196. package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
  197. package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
  198. package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
  199. package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
  200. package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
  201. package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
  202. package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
  203. package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
  204. package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
  205. package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
  206. package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
  207. package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
  208. package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
  209. package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
  210. package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
  211. package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
  212. package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
  213. package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
  214. package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
  215. package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
  216. package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
  217. package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
  218. package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
@@ -1,187 +0,0 @@
1
- function b(e, i, o, t = {}) {
2
- if (o <= 0) return;
3
- e.save();
4
- const {
5
- color: s = "black",
6
- lineWidth: u = 1,
7
- lineCap: d = "round",
8
- lineJoin: f = "round",
9
- lineDash: w = null,
10
- lineDashoffset: r = 0,
11
- shadowColor: l = null,
12
- shadowBlur: a = 0,
13
- shadowOffsetX: y = 0,
14
- shadowOffsetY: g = 0,
15
- fillStyle: N = "#FFFFFF"
16
- } = t;
17
- e.beginPath(), e.arc(i.x, i.y, o, 0, 2 * Math.PI), e.strokeStyle = s, e.lineWidth = u, e.lineCap = d, e.lineJoin = f, w && (e.setLineDash(w), e.lineDashoffset = r), l && (e.shadowColor = l, e.shadowOffsetX = y, e.shadowOffsetY = g), a && (e.shadowBlur = a), N && (e.fillStyle = N), e.fillStyle && e.fill(), e.stroke(), e.restore();
18
- }
19
- function C(e, i, o = {}) {
20
- if (!i.length) return;
21
- e.save();
22
- const {
23
- color: t = "black",
24
- lineWidth: s = 1,
25
- lineCap: u = "round",
26
- lineJoin: d = "round",
27
- lineDash: f = null,
28
- lineDashoffset: w = 0,
29
- shadowColor: r = null,
30
- shadowBlur: l = 0,
31
- shadowOffsetX: a = 0,
32
- shadowOffsetY: y = 0
33
- } = o;
34
- e.beginPath(), e.moveTo(i[0].x, i[0].y);
35
- for (let g = 1; g < i.length; g += 1)
36
- e.lineTo(i[g].x, i[g].y);
37
- e.strokeStyle = t, e.lineWidth = s, e.lineCap = u, e.lineJoin = d, f && (e.setLineDash(f), e.lineDashoffset = w), r && (e.shadowColor = r, e.shadowOffsetX = a, e.shadowOffsetY = y), l && (e.shadowBlur = l), e.stroke(), e.restore();
38
- }
39
- function m(e, i, o = {}) {
40
- if (!i.length) return;
41
- e.save();
42
- const {
43
- strokeColor: t = "black",
44
- lineWidth: s = 1,
45
- lineCap: u = "round",
46
- lineJoin: d = "round",
47
- lineDash: f = null,
48
- lineDashoffset: w = 0,
49
- fillColor: r = null,
50
- gradient: l = null,
51
- shadowColor: a = null,
52
- shadowBlur: y = 0,
53
- shadowOffsetX: g = 0,
54
- shadowOffsetY: N = 0
55
- } = o;
56
- e.beginPath(), e.moveTo(i[0].x, i[0].y);
57
- for (let n = 1; n < i.length; n += 1)
58
- e.lineTo(i[n].x, i[n].y);
59
- if (e.closePath(), e.strokeStyle = t, e.lineWidth = s, e.lineCap = u, e.lineJoin = d, f && (e.setLineDash(f), e.lineDashoffset = w), a && (e.shadowColor = a, e.shadowBlur = y, e.shadowOffsetX = g, e.shadowOffsetY = N), l) {
60
- let n;
61
- l.type === "linear" ? n = e.createLinearGradient(
62
- h(l.start.x, Number.MIN_VALUE),
63
- h(l.start.y, Number.MIN_VALUE),
64
- h(l.end.x, Number.MIN_VALUE * 2),
65
- h(l.end.y, Number.MIN_VALUE * 2)
66
- ) : l.type === "radial" && (n = e.createRadialGradient(
67
- h(l.start.x, Number.MIN_VALUE),
68
- h(l.start.y, Number.MIN_VALUE),
69
- l.start.r || 0,
70
- h(l.end.x, Number.MIN_VALUE * 2),
71
- h(l.end.y, Number.MIN_VALUE * 2),
72
- l.end.r || 0
73
- )), n && l.stops && (l.stops.forEach((p) => {
74
- n.addColorStop(p.offset, p.color);
75
- }), e.fillStyle = n);
76
- } else r && (e.fillStyle = r);
77
- e.fillStyle && e.fill(), t && e.stroke(), e.restore();
78
- }
79
- function L(e, i, o = {}) {
80
- if (!i.length) return;
81
- e.save();
82
- const {
83
- strokeColor: t = "black",
84
- lineWidth: s = 1,
85
- lineCap: u = "round",
86
- lineJoin: d = "round",
87
- lineDash: f = null,
88
- lineDashoffset: w = 0,
89
- fillColor: r = null,
90
- gradient: l = null,
91
- shadowColor: a = null,
92
- shadowBlur: y = 0,
93
- shadowOffsetX: g = 0,
94
- shadowOffsetY: N = 0
95
- } = o;
96
- e.beginPath(), e.moveTo(i[0].x, i[0].y);
97
- for (let n = 1; n < i.length; n += 1)
98
- e.lineTo(i[n].x, i[n].y);
99
- if (e.closePath(), e.strokeStyle = t, e.lineWidth = s, e.lineCap = u, e.lineJoin = d, f && (e.setLineDash(f), e.lineDashoffset = w), a && (e.shadowColor = a, e.shadowBlur = y, e.shadowOffsetX = g, e.shadowOffsetY = N), l) {
100
- let n;
101
- l.type === "linear" ? n = e.createLinearGradient(
102
- h(l.start.x, Number.MIN_VALUE),
103
- h(l.start.y, Number.MIN_VALUE),
104
- h(l.end.x, Number.MIN_VALUE * 2),
105
- h(l.end.y, Number.MIN_VALUE * 2)
106
- ) : l.type === "radial" && (n = e.createRadialGradient(
107
- h(l.start.x, Number.MIN_VALUE),
108
- h(l.start.y, Number.MIN_VALUE),
109
- l.start.r || 0,
110
- h(l.end.x, Number.MIN_VALUE * 2),
111
- h(l.end.y, Number.MIN_VALUE * 2),
112
- l.end.r || 0
113
- )), n && l.stops && (l.stops.forEach((p) => {
114
- n.addColorStop(p.offset, p.color);
115
- }), e.fillStyle = n);
116
- } else r && (e.fillStyle = r);
117
- e.fillStyle && e.fill(), t && e.stroke(), e.restore();
118
- }
119
- function I(e, i, o, t, s = {}) {
120
- e.save();
121
- const {
122
- font: u = "16px sans-serif",
123
- color: d = "black",
124
- align: f = "start",
125
- baseline: w = "alphabetic",
126
- maxWidth: r = void 0,
127
- rotation: l = 0,
128
- shadowColor: a = null,
129
- shadowBlur: y = 0,
130
- shadowOffsetX: g = 0,
131
- shadowOffsetY: N = 0,
132
- strokeColor: n = null,
133
- lineWidth: p = 1
134
- } = s;
135
- e.font = u, e.fillStyle = d, e.textAlign = f, e.textBaseline = w, a && (e.shadowColor = a, e.shadowBlur = y, e.shadowOffsetX = g, e.shadowOffsetY = N), n && (e.strokeStyle = n, e.lineWidth = p), l !== 0 && (e.translate(o, t), e.rotate(Math.PI / 180 * l), e.translate(-o, -t)), e.fillText(i, o, t, r), n && e.strokeText(i, o, t, r), e.restore();
136
- }
137
- function O(e, i = 20) {
138
- let o;
139
- return function(...t) {
140
- const s = this;
141
- o || (e.apply(s, t), o = !0, setTimeout(() => o = !1, i));
142
- };
143
- }
144
- function E(e, i, o = !1) {
145
- let t;
146
- return function(...s) {
147
- const u = this, d = function() {
148
- t = null, o || e.apply(u, s);
149
- }, f = o && !t;
150
- clearTimeout(t), t = setTimeout(d, i), f && e.apply(u, s);
151
- };
152
- }
153
- function k(e) {
154
- const i = document.createElement("canvas");
155
- return i.width = e.width || 1, i.height = e.height || 1, e.width || (e.width = 1), e.height || (e.height = 1), i.getContext("2d").drawImage(e, 0, 0), i;
156
- }
157
- function h(e, i) {
158
- return [null, void 0, NaN, 1 / 0, -1 / 0].includes(e) ? i : e;
159
- }
160
- function M({
161
- chart: e,
162
- title: i = null,
163
- slicer: o = null,
164
- legend: t = null
165
- }) {
166
- let s = 0, u = 0;
167
- if (e) {
168
- const d = e.parentNode, { height: f, width: w } = d.getBoundingClientRect();
169
- let r = 0, l = 0, a = 0;
170
- i && (r = i.getBoundingClientRect().height), o && (l = o.getBoundingClientRect().height), t && (a = t.getBoundingClientRect().height), s = f - r - l - a, u = w;
171
- }
172
- return {
173
- width: u,
174
- height: s
175
- };
176
- }
177
- export {
178
- b as a,
179
- I as b,
180
- k as c,
181
- E as d,
182
- C as l,
183
- m as p,
184
- L as r,
185
- O as t,
186
- M as u
187
- };
@@ -1,9 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("./BaseIcon-E7FmzMcY.cjs"),Q={key:0,style:{width:"100%",display:"flex",gap:"6px","align-items":"center",color:"#FF0000"}},$={style:{width:"36px"}},z={__name:"vue-data-ui",props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},emits:["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","play","pause","reset","restart","lap"],setup(x,{expose:I,emit:E}){const i=x,{component:H,dataset:O,config:N}=e.toRefs(i),a={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-BeR2aBgQ.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-R-C4P4mI.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-Dbp6cWMr.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-Dilozp3V.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-DdEcEI04.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-BfC0jS-X.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-BJfcAiq_.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-DTSVlGMg.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-BuUafabD.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-DlPavMK0.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-vMFUYHYH.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-CMQqQnxc.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-CuY3xlVq.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-CH_PfeDc.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-nOuD0hR5.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-Bof_C9Ae.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-DIb6YyWv.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-N3tRNc4u.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-Do48rGrX.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-CooAvwPA.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-GoUNDOdZ.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-uNgJni4x.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-iIgQI9Ws.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-CkrpmLxP.cjs"))),VueUiScreenshot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-screenshot-Co2o48d6.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-CGV1dEUD.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-Ci3uMgVh.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-DB2DeXti.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-CJepIY2u.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-B7B36LLT.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-BcqmwDAb.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-DT3aKNeV.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-B_sFrAO9.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-DUUYQ5dH.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-BFfN4aat.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-BkYXzU3R.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-BgeZnbl3.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-D3atbdvl.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-CD7C9Lu4.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-CYmM7J61.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-DoWnidom.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-Chvdf2Gi.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-Cc9958th.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-BxU4d-sJ.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-lU1rts1B.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-BfoEoJEy.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-Ck9Fmt_b.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-CVfgnyKi.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-Dm9yZ1zQ.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-DHs5sb3t.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-C45dODaB.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-DM1IStj1.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-C0GDDSW9.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-DVwQaEH1.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-CRcUugkl.cjs"))),VueUiBullet:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-DSZox236.cjs")))},M={VueUi3dBar:["config","dataset"],VueUiAgePyramid:["config","dataset"],VueUiAnnotator:["config","dataset"],VueUiCandlestick:["config","dataset"],VueUiChestnut:["config","dataset"],VueUiDashboard:["config","dataset"],VueUiDigits:["config","dataset"],VueUiDonut:["config","dataset"],VueUiDonutEvolution:["config","dataset"],VueUiGalaxy:["config","dataset"],VueUiGauge:["config","dataset"],VueUiHeatmap:["config","dataset"],VueUiKpi:["config","dataset"],VueUiMiniLoader:["config"],VueUiMolecule:["config","dataset"],VueUiMoodRadar:["config","dataset"],VueUiNestedDonuts:["config","dataset"],VueUiOnion:["config","dataset"],VueUiQuadrant:["config","dataset"],VueUiRadar:["config","dataset"],VueUiRating:["config","dataset"],VueUiRelationCircle:["config","dataset"],VueUiRings:["config","dataset"],VueUiScatter:["config","dataset"],VueUiScreenshot:["config"],VueUiSkeleton:["config"],VueUiSmiley:["config","dataset"],VueUiSparkbar:["config","dataset"],VueUiSparkgauge:["config","dataset"],VueUiSparkHistogram:["config","dataset"],VueUiSparkline:["config","dataset"],VueUiSparkStackbar:["config","dataset"],VueUiTable:["config","dataset"],VueUiTableSparkline:["config","dataset"],VueUiThermometer:["config","dataset"],VueUiTiremarks:["config","dataset"],VueUiTreemap:["config","dataset"],VueUiVerticalBar:["config","dataset"],VueUiWaffle:["config","dataset"],VueUiWheel:["config","dataset"],VueUiXy:["config","dataset"],VueUiTableHeatmap:["config","dataset"],VueUiAccordion:["config"],VueUiQuickChart:["config","dataset"],VueUiCursor:["config"],VueUiSparkTrend:["config","dataset"],VueUiStripPlot:["config","dataset"],VueUiDumbbell:["config","dataset"],VueUiWordCloud:["config","dataset"],VueUiXyCanvas:["config","dataset"],VueUiFlow:["config","dataset"],VueUiParallelCoordinatePlot:["config","dataset"],VueUiTimer:["config"],VueUiCarouselTable:["config","dataset"],VueUiGizmo:["config","dataset"],VueUiStackbar:["config","dataset"],VueUiBullet:["config","dataset"]},u=e.computed(()=>!a[i.component]),F=e.computed(()=>a[i.component]||null),o=e.ref(null),G=e.computed(()=>{const t=M[i.component]||[],n={};return t.includes("config")&&(n.config=N.value),t.includes("dataset")&&(n.dataset=O.value),n}),c=e.ref(()=>null),m=e.ref(()=>null),d=e.ref(()=>null),g=e.ref(()=>null),p=e.ref(()=>null),f=e.ref(()=>null),V=e.ref(()=>null),v=e.ref(()=>null),U=e.ref(()=>null),h=e.ref(()=>null),y=e.ref(()=>null),C=e.ref(()=>null),A=e.ref(()=>null),P=e.ref(()=>null),q=e.ref(()=>null),S=e.ref(()=>null),k=e.ref(()=>null),b=e.ref(()=>null),T=e.ref(()=>null),D=e.ref(()=>null),B=e.ref(()=>null),L=e.ref(()=>null),_=e.ref(()=>null);e.onMounted(()=>{if(u.value)throw new Error(`
2
-
3
- Vue Data UI exception:
4
- The provided component "${i.component}" does not exist. Check the spelling.
5
-
6
- Available components:
7
-
8
- ${Object.keys(a).map(t=>`. ${t}
9
- `).join("")}`)}),e.watch(o,async t=>{t&&(t.generatePdf&&(c.value=t.generatePdf),t.generateImage&&(d.value=t.generateImage),t.generateCsv&&(m.value=t.generateCsv),t.getItemsPositions&&(g.value=t.getItemsPositions),t.toggleReadonly&&(p.value=t.toggleReadonly),t.shoot&&(f.value=t.shoot),t.close&&(V.value=t.close),t.restoreOrder&&(v.value=t.restoreOrder),t.recalculateHeight&&(U.value=t.recalculateHeight),t.toggleLock&&(h.value=t.toggleLock),t.toggleTable&&(y.value=t.toggleTable),t.toggleLabels&&(C.value=t.toggleLabels),t.toggleSort&&(A.value=t.toggleSort),t.toggleStack&&(P.value=t.toggleStack),t.toggleTooltip&&(q.value=t.toggleTooltip),t.start&&(S.value=t.start),t.pause&&(k.value=t.pause),t.reset&&(b.value=t.reset),t.restart&&(T.value=t.restart),t.lap&&(D.value=t.lap),t.toggleAnimation&&(B.value=t.toggleAnimation),t.pauseAnimation&&(L.value=t.pauseAnimation),t.resumeAnimation&&(_.value=t.resumeAnimation))});const W=()=>{const t=["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","pause","reset","restart","lap","toggleAnimation","pauseAnimation","resumeAnimation"],n={};return t.forEach(l=>{n[l]=(...s)=>E(l,...s)}),n},r=e.shallowReactive([]);return e.watch([r,o],()=>{if(o.value)for(;r.length;){const[t,...n]=r.shift();typeof o.value[t]=="function"&&o.value[t](...n)}}),I({getData:(...t)=>o.value&&typeof o.value.getData=="function"?o.value.getData():r.push(["getData",...t]),generatePdf:c,generateCsv:m,generateImage:d,getItemsPositions:g,toggleReadonly:p,shoot:f,close:V,restoreOrder:v,recalculateHeight:U,toggleLock:h,toggleTable:y,toggleLabels:C,toggleSort:A,toggleStack:P,toggleTooltip:q,start:S,pause:k,reset:b,restart:T,lap:D,pauseAnimation:L,resumeAnimation:_,toggleAnimation:B}),(t,n)=>u.value?(e.openBlock(),e.createElementBlock("div",Q,[e.createElementVNode("div",$,[e.createVNode(j.default,{name:"moodFlat",stroke:"#FF0000"})]),e.createTextVNode(' The provided component "'+e.toDisplayString(e.unref(H))+'" does not exist ',1)])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(F.value),e.mergeProps({key:1,ref_key:"currentComponentRef",ref:o},G.value,e.toHandlers(W())),e.createSlots({_:2},[e.renderList(t.$slots,(l,s)=>({name:s,fn:e.withCtx(X=>[e.renderSlot(t.$slots,s,e.normalizeProps(e.guardReactiveProps(X)))])}))]),1040))}};exports.default=z;
@@ -1,258 +0,0 @@
1
- import { toRefs as q, defineAsyncComponent as t, computed as c, ref as o, onMounted as J, watch as H, shallowReactive as Y, openBlock as O, createElementBlock as Z, createElementVNode as R, createVNode as w, createTextVNode as ee, toDisplayString as te, unref as oe, createBlock as ie, resolveDynamicComponent as ae, mergeProps as ne, toHandlers as re, createSlots as le, renderList as se, withCtx as ue, renderSlot as ce, normalizeProps as ge, guardReactiveProps as pe } from "vue";
2
- import me from "./BaseIcon-CXDdkPfN.js";
3
- const de = {
4
- key: 0,
5
- style: { width: "100%", display: "flex", gap: "6px", "align-items": "center", color: "#FF0000" }
6
- }, Ve = { style: { width: "36px" } }, ve = {
7
- __name: "vue-data-ui",
8
- props: {
9
- component: { type: String },
10
- dataset: { type: [Object, Array, Number, String] },
11
- config: { type: Object }
12
- },
13
- emits: [
14
- "selectLegend",
15
- "selectDatapoint",
16
- "toggleOpenState",
17
- "saveAnnotations",
18
- "selectRoot",
19
- "selectBranch",
20
- "selectNut",
21
- "change",
22
- "selectPlot",
23
- "selectSide",
24
- "rate",
25
- "postImage",
26
- "hoverIndex",
27
- "selectX",
28
- "toggleLock",
29
- "toggleTooltip",
30
- "start",
31
- "play",
32
- "pause",
33
- "reset",
34
- "restart",
35
- "lap"
36
- ],
37
- setup(N, { expose: F, emit: G }) {
38
- const n = N, { component: M, dataset: W, config: X } = q(n), s = {
39
- VueUi3dBar: t(() => import("./vue-ui-3d-bar-DcF1nyGW.js")),
40
- VueUiAgePyramid: t(() => import("./vue-ui-age-pyramid-Oe_yHDL0.js")),
41
- VueUiAnnotator: t(() => import("./vue-ui-annotator-Dix6_Gm6.js")),
42
- VueUiCandlestick: t(() => import("./vue-ui-candlestick-CRwzWF6j.js")),
43
- VueUiChestnut: t(() => import("./vue-ui-chestnut-CRk0RCB9.js")),
44
- VueUiDashboard: t(() => import("./vue-ui-dashboard-OyihaKdu.js")),
45
- VueUiDigits: t(() => import("./vue-ui-digits-IKt4qT2-.js")),
46
- VueUiDonut: t(() => import("./vue-ui-donut-DFaGk4fI.js")),
47
- VueUiDonutEvolution: t(() => import("./vue-ui-donut-evolution-Dd4o37RP.js")),
48
- VueUiGalaxy: t(() => import("./vue-ui-galaxy-CH1BDtWl.js")),
49
- VueUiGauge: t(() => import("./vue-ui-gauge-BXiy515T.js")),
50
- VueUiHeatmap: t(() => import("./vue-ui-heatmap-B-zWMk0Y.js")),
51
- VueUiKpi: t(() => import("./vue-ui-kpi-CghbfSdM.js")),
52
- VueUiMiniLoader: t(() => import("./vue-ui-mini-loader-C7roqZ4p.js")),
53
- VueUiMolecule: t(() => import("./vue-ui-molecule-BwmkMEVN.js")),
54
- VueUiMoodRadar: t(() => import("./vue-ui-mood-radar-DSznHxLS.js")),
55
- VueUiNestedDonuts: t(() => import("./vue-ui-nested-donuts-CiE4DdEQ.js")),
56
- VueUiOnion: t(() => import("./vue-ui-onion-D9o6Rcgu.js")),
57
- VueUiQuadrant: t(() => import("./vue-ui-quadrant-Cs3A77us.js")),
58
- VueUiRadar: t(() => import("./vue-ui-radar-CNSpiNrM.js")),
59
- VueUiRating: t(() => import("./vue-ui-rating-b_iYZWF8.js")),
60
- VueUiRelationCircle: t(() => import("./vue-ui-relation-circle-nRf1pvD0.js")),
61
- VueUiRings: t(() => import("./vue-ui-rings-BgRc1o4_.js")),
62
- VueUiScatter: t(() => import("./vue-ui-scatter-CVuoW-cD.js")),
63
- VueUiScreenshot: t(() => import("./vue-ui-screenshot-Csc0dQL9.js")),
64
- VueUiSkeleton: t(() => import("./vue-ui-skeleton-B2sRnIXX.js")),
65
- VueUiSmiley: t(() => import("./vue-ui-smiley-D4s-AdIE.js")),
66
- VueUiSparkbar: t(() => import("./vue-ui-sparkbar-Bb1fq2GR.js")),
67
- VueUiSparkgauge: t(() => import("./vue-ui-sparkgauge-DWuaAQbo.js")),
68
- VueUiSparkHistogram: t(() => import("./vue-ui-sparkhistogram-CjeJ3ch1.js")),
69
- VueUiSparkline: t(() => import("./vue-ui-sparkline-DGJDBArr.js")),
70
- VueUiSparkStackbar: t(() => import("./vue-ui-sparkstackbar-B3ul3qUZ.js")),
71
- VueUiTable: t(() => import("./vue-ui-table-CmVi0nv2.js")),
72
- VueUiTableSparkline: t(() => import("./vue-ui-table-sparkline-eg2Qd8ws.js")),
73
- VueUiThermometer: t(() => import("./vue-ui-thermometer-BePmFiwy.js")),
74
- VueUiTiremarks: t(() => import("./vue-ui-tiremarks-d6TmSHY7.js")),
75
- VueUiTreemap: t(() => import("./vue-ui-treemap-Qg0858o6.js")),
76
- VueUiVerticalBar: t(() => import("./vue-ui-vertical-bar-CieqHVD5.js")),
77
- VueUiWaffle: t(() => import("./vue-ui-waffle-CjNhM-mV.js")),
78
- VueUiWheel: t(() => import("./vue-ui-wheel-B8mbO6ht.js")),
79
- VueUiXy: t(() => import("./vue-ui-xy-x8KEsGV-.js")),
80
- VueUiTableHeatmap: t(() => import("./vue-ui-table-heatmap-CgFr38QT.js")),
81
- VueUiAccordion: t(() => import("./vue-ui-accordion-D_1fE5EF.js")),
82
- VueUiQuickChart: t(() => import("./vue-ui-quick-chart-CiiSUexi.js")),
83
- VueUiCursor: t(() => import("./vue-ui-cursor-y0kdr0uA.js")),
84
- VueUiSparkTrend: t(() => import("./vue-ui-spark-trend-CHKQGMLs.js")),
85
- VueUiStripPlot: t(() => import("./vue-ui-strip-plot-CIb2LSV8.js")),
86
- VueUiDumbbell: t(() => import("./vue-ui-dumbbell-B7j1_JoQ.js")),
87
- VueUiWordCloud: t(() => import("./vue-ui-word-cloud-DMXrUmX5.js")),
88
- VueUiXyCanvas: t(() => import("./vue-ui-xy-canvas-BYdTxzi6.js")),
89
- VueUiFlow: t(() => import("./vue-ui-flow-DkPTzNv9.js")),
90
- VueUiParallelCoordinatePlot: t(() => import("./vue-ui-parallel-coordinate-plot-BcYrYXhG.js")),
91
- VueUiTimer: t(() => import("./vue-ui-timer-COSI3Q5T.js")),
92
- VueUiCarouselTable: t(() => import("./vue-ui-carousel-table-BHeEbRKY.js")),
93
- VueUiGizmo: t(() => import("./vue-ui-gizmo-CKQcbe_7.js")),
94
- VueUiStackbar: t(() => import("./vue-ui-stackbar-DNROvZII.js")),
95
- VueUiBullet: t(() => import("./vue-ui-bullet-CQKaC4wG.js"))
96
- }, Q = {
97
- VueUi3dBar: ["config", "dataset"],
98
- VueUiAgePyramid: ["config", "dataset"],
99
- VueUiAnnotator: ["config", "dataset"],
100
- VueUiCandlestick: ["config", "dataset"],
101
- VueUiChestnut: ["config", "dataset"],
102
- VueUiDashboard: ["config", "dataset"],
103
- VueUiDigits: ["config", "dataset"],
104
- VueUiDonut: ["config", "dataset"],
105
- VueUiDonutEvolution: ["config", "dataset"],
106
- VueUiGalaxy: ["config", "dataset"],
107
- VueUiGauge: ["config", "dataset"],
108
- VueUiHeatmap: ["config", "dataset"],
109
- VueUiKpi: ["config", "dataset"],
110
- VueUiMiniLoader: ["config"],
111
- VueUiMolecule: ["config", "dataset"],
112
- VueUiMoodRadar: ["config", "dataset"],
113
- VueUiNestedDonuts: ["config", "dataset"],
114
- VueUiOnion: ["config", "dataset"],
115
- VueUiQuadrant: ["config", "dataset"],
116
- VueUiRadar: ["config", "dataset"],
117
- VueUiRating: ["config", "dataset"],
118
- VueUiRelationCircle: ["config", "dataset"],
119
- VueUiRings: ["config", "dataset"],
120
- VueUiScatter: ["config", "dataset"],
121
- VueUiScreenshot: ["config"],
122
- VueUiSkeleton: ["config"],
123
- VueUiSmiley: ["config", "dataset"],
124
- VueUiSparkbar: ["config", "dataset"],
125
- VueUiSparkgauge: ["config", "dataset"],
126
- VueUiSparkHistogram: ["config", "dataset"],
127
- VueUiSparkline: ["config", "dataset"],
128
- VueUiSparkStackbar: ["config", "dataset"],
129
- VueUiTable: ["config", "dataset"],
130
- VueUiTableSparkline: ["config", "dataset"],
131
- VueUiThermometer: ["config", "dataset"],
132
- VueUiTiremarks: ["config", "dataset"],
133
- VueUiTreemap: ["config", "dataset"],
134
- VueUiVerticalBar: ["config", "dataset"],
135
- VueUiWaffle: ["config", "dataset"],
136
- VueUiWheel: ["config", "dataset"],
137
- VueUiXy: ["config", "dataset"],
138
- VueUiTableHeatmap: ["config", "dataset"],
139
- VueUiAccordion: ["config"],
140
- VueUiQuickChart: ["config", "dataset"],
141
- VueUiCursor: ["config"],
142
- VueUiSparkTrend: ["config", "dataset"],
143
- VueUiStripPlot: ["config", "dataset"],
144
- VueUiDumbbell: ["config", "dataset"],
145
- VueUiWordCloud: ["config", "dataset"],
146
- VueUiXyCanvas: ["config", "dataset"],
147
- VueUiFlow: ["config", "dataset"],
148
- VueUiParallelCoordinatePlot: ["config", "dataset"],
149
- VueUiTimer: ["config"],
150
- VueUiCarouselTable: ["config", "dataset"],
151
- VueUiGizmo: ["config", "dataset"],
152
- VueUiStackbar: ["config", "dataset"],
153
- VueUiBullet: ["config", "dataset"]
154
- }, g = c(() => !s[n.component]), $ = c(() => s[n.component] || null), i = o(null), j = c(() => {
155
- const e = Q[n.component] || [], a = {};
156
- return e.includes("config") && (a.config = X.value), e.includes("dataset") && (a.dataset = W.value), a;
157
- }), p = o(() => null), m = o(() => null), d = o(() => null), V = o(() => null), U = o(() => null), f = o(() => null), v = o(() => null), h = o(() => null), k = o(() => null), S = o(() => null), b = o(() => null), y = o(() => null), T = o(() => null), C = o(() => null), A = o(() => null), P = o(() => null), D = o(() => null), x = o(() => null), L = o(() => null), _ = o(() => null), B = o(() => null), I = o(() => null), E = o(() => null);
158
- J(() => {
159
- if (g.value)
160
- throw new Error(`
161
-
162
- Vue Data UI exception:
163
- The provided component "${n.component}" does not exist. Check the spelling.
164
-
165
- Available components:
166
-
167
- ${Object.keys(s).map((e) => `. ${e}
168
- `).join("")}`);
169
- }), H(i, async (e) => {
170
- e && (e.generatePdf && (p.value = e.generatePdf), e.generateImage && (d.value = e.generateImage), e.generateCsv && (m.value = e.generateCsv), e.getItemsPositions && (V.value = e.getItemsPositions), e.toggleReadonly && (U.value = e.toggleReadonly), e.shoot && (f.value = e.shoot), e.close && (v.value = e.close), e.restoreOrder && (h.value = e.restoreOrder), e.recalculateHeight && (k.value = e.recalculateHeight), e.toggleLock && (S.value = e.toggleLock), e.toggleTable && (b.value = e.toggleTable), e.toggleLabels && (y.value = e.toggleLabels), e.toggleSort && (T.value = e.toggleSort), e.toggleStack && (C.value = e.toggleStack), e.toggleTooltip && (A.value = e.toggleTooltip), e.start && (P.value = e.start), e.pause && (D.value = e.pause), e.reset && (x.value = e.reset), e.restart && (L.value = e.restart), e.lap && (_.value = e.lap), e.toggleAnimation && (B.value = e.toggleAnimation), e.pauseAnimation && (I.value = e.pauseAnimation), e.resumeAnimation && (E.value = e.resumeAnimation));
171
- });
172
- const z = () => {
173
- const e = [
174
- "selectLegend",
175
- "selectDatapoint",
176
- "toggleOpenState",
177
- "saveAnnotations",
178
- "selectRoot",
179
- "selectBranch",
180
- "selectNut",
181
- "change",
182
- "selectPlot",
183
- "selectSide",
184
- "rate",
185
- "postImage",
186
- "hoverIndex",
187
- "selectX",
188
- "toggleLock",
189
- "toggleTooltip",
190
- "start",
191
- "pause",
192
- "reset",
193
- "restart",
194
- "lap",
195
- "toggleAnimation",
196
- "pauseAnimation",
197
- "resumeAnimation"
198
- ], a = {};
199
- return e.forEach((u) => {
200
- a[u] = (...l) => G(u, ...l);
201
- }), a;
202
- }, r = Y([]);
203
- return H([r, i], () => {
204
- if (i.value)
205
- for (; r.length; ) {
206
- const [e, ...a] = r.shift();
207
- typeof i.value[e] == "function" && i.value[e](...a);
208
- }
209
- }), F({
210
- getData: (...e) => i.value && typeof i.value.getData == "function" ? i.value.getData() : r.push(["getData", ...e]),
211
- generatePdf: p,
212
- generateCsv: m,
213
- generateImage: d,
214
- getItemsPositions: V,
215
- toggleReadonly: U,
216
- shoot: f,
217
- close: v,
218
- restoreOrder: h,
219
- recalculateHeight: k,
220
- toggleLock: S,
221
- toggleTable: b,
222
- toggleLabels: y,
223
- toggleSort: T,
224
- toggleStack: C,
225
- toggleTooltip: A,
226
- start: P,
227
- pause: D,
228
- reset: x,
229
- restart: L,
230
- lap: _,
231
- pauseAnimation: I,
232
- resumeAnimation: E,
233
- toggleAnimation: B
234
- }), (e, a) => g.value ? (O(), Z("div", de, [
235
- R("div", Ve, [
236
- w(me, {
237
- name: "moodFlat",
238
- stroke: "#FF0000"
239
- })
240
- ]),
241
- ee(' The provided component "' + te(oe(M)) + '" does not exist ', 1)
242
- ])) : (O(), ie(ae($.value), ne({
243
- key: 1,
244
- ref_key: "currentComponentRef",
245
- ref: i
246
- }, j.value, re(z())), le({ _: 2 }, [
247
- se(e.$slots, (u, l) => ({
248
- name: l,
249
- fn: ue((K) => [
250
- ce(e.$slots, l, ge(pe(K)))
251
- ])
252
- }))
253
- ]), 1040));
254
- }
255
- };
256
- export {
257
- ve as default
258
- };
@@ -1,19 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-C7_6YjWN.cjs"),de=require("./Title-C-lm3Mkl.cjs"),Q=require("./usePrinter-8EP4iaGm.cjs"),he=require("./vue-ui-skeleton-CGV1dEUD.cjs"),ve=require("./DataTable-BTgMVOwp.cjs"),pe=require("./vue-ui-accordion-Cc9958th.cjs"),ee=require("./useNestedProp-CC9zGr7C.cjs"),fe=require("./PackageVersion-D4D0WicU.cjs"),ke=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),L=N=>(e.pushScopeId("data-v-8a60c7c5"),N=N(),e.popScopeId(),N),me=["id"],ye={key:0,style:"width:100%;background:transparent"},ge=["xmlns","viewBox"],$e=["id"],_e=["stop-color"],Be=["stop-color"],xe=["id"],be=["stop-color"],Ee=["stop-color"],Ce=["id"],we=["stop-color"],Ne=["stop-color"],Ve=["id"],Fe=["stop-color"],Se=["stop-color"],Me=["stop-color"],Pe={key:0},Le=["id"],Oe=["stop-color"],De=["stop-color"],ze=["id"],Te=["stop-color"],je=["stop-color"],Ie=["id"],We=["stop-color"],Ge=["stop-color"],He=["id"],Ae=L(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1)),qe=L(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)),Ue=[Ae,qe],Xe=["x","y","font-size","font-weight","fill"],Re=["x","y"],Ze=["d","stroke"],Ye=["d","stroke"],Je={key:3},Ke={key:0},Qe=["stroke-dasharray","d","stroke","stroke-width"],et=["stroke-dasharray","d","stroke","stroke-width"],tt=["stroke-dasharray","d","stroke","stroke-width"],lt=["stroke-dasharray","d","stroke","stroke-width"],ot={key:1},at=["d","stroke","stroke-width","fill"],nt=["d","stroke","stroke-width","fill"],rt=["d","stroke","stroke-width","fill"],st={key:2},ut=["d","fill","onMouseenter","onClick"],it=["d","fill","onMouseenter","onClick"],ct=["d","fill","onMouseenter","onClick"],dt=["d","onMouseenter","onClick"],ht=["d"],vt=["d","stroke"],pt=["onClick"],ft=["stroke","d"],kt=["cx","cy","fill","stroke"],mt=["x","y","width","height"],yt={key:1},gt=["d","stroke"],$t=["d","fill","stroke"],_t=["id"],Bt=["stop-color"],xt=L(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),bt=["stop-color"],Et=["cx","cy","fill"],Ct=["cx","cy","fill"],wt={key:0},Nt=["text-anchor","x","y","fill","font-size"],Vt=["text-anchor","x","y","fill","font-size"],Ft={key:2},St=["d","fill","stroke"],Mt={key:4},Pt={key:0},Lt=["stroke-dasharray","d","stroke","stroke-width"],Ot=["stroke-dasharray","d","stroke","stroke-width"],Dt=["stroke-dasharray","d","stroke","stroke-width"],zt=["stroke-dasharray","d","stroke","stroke-width"],Tt=["d","stroke","stroke-width","fill"],jt=["d","stroke","stroke-width","fill"],It={key:1},Wt=["onClick"],Gt=["id"],Ht=["stop-color"],At=["stop-color"],qt=["id"],Ut=["stop-color"],Xt=["stop-color"],Rt=["stop-color"],Zt=["stop-color"],Yt=["stop-color"],Jt=["onMouseenter","onClick","d","fill"],Kt=["onMouseenter","onClick","d"],Qt=["onMouseenter","onClick","d","fill"],el=["onClick"],tl=["stroke","d"],ll=["cx","cy","fill","stroke"],ol=["x","y","width","height"],al={key:1},nl=["d","stroke"],rl=["d","fill","stroke"],sl=["id"],ul=["stop-color"],il=L(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),cl=["stop-color"],dl=["cx","cy","fill"],hl=["cx","cy","fill"],vl={key:0},pl=["text-anchor","x","y","fill","font-size"],fl=["text-anchor","x","y","fill","font-size"],kl={key:2},ml=["d","fill","stroke"],yl={key:3,class:"vue-data-ui-watermark"},gl=["innerHTML"],$l={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(N,{expose:te,emit:F}){const f=N,{vue_ui_3d_bar:le}=r.useConfig(),S=e.computed(()=>!!f.dataset&&Object.keys(f.dataset).length),k=e.ref(r.createUid()),oe=e.ref(null),z=e.ref(null),b=e.ref(!1),T=e.ref(0),j=e.ref(0),l=e.computed({get:()=>I(),set:s=>s});function I(){const s=ee.useNestedProp({userConfig:f.config,defaultConfig:le});return s.theme?{...ee.useNestedProp({userConfig:r.themes.vue_ui_3d_bar[s.theme]||f.config,defaultConfig:s}),customPalette:r.themePalettes[s.theme]||r.palette}:s}e.watch(()=>f.config,s=>{l.value=I(),q(),T.value+=1,j.value+=1},{deep:!0});const{isPrinting:W,isImaging:G,generatePdf:H,generateImage:A}=Q.usePrinter({elementId:`3d_bar_${k.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar"}),ae=e.computed(()=>r.convertCustomPalette(l.value.customPalette)),M=e.ref({showTable:l.value.table.show}),$=e.computed(()=>f.dataset.series&&f.dataset.series.length),a=e.computed(()=>({height:l.value.style.chart.box.dimensions.height,width:l.value.style.chart.box.dimensions.width,absoluteWidth:l.value.style.chart.box.dimensions.width*($.value?2:1),top:l.value.style.chart.box.dimensions.top,bottom:l.value.style.chart.box.dimensions.bottom,left:l.value.style.chart.box.dimensions.left,right:l.value.style.chart.box.dimensions.right,perspective:l.value.style.chart.box.dimensions.perspective})),g=e.computed(()=>{if($.value){const s=f.dataset.series.map(o=>o.value||0).reduce((o,u)=>o+u,0),n=f.dataset.series.map((o,u)=>({...o,id:r.createUid(),proportion:(o.value||0)/s,color:r.convertColorToHex(o.color)||ae.value[u]||r.palette[u]||r.palette[u%r.palette.length],breakdown:o.breakdown?o.breakdown.sort((i,p)=>p.value-i.value):null})).sort((o,u)=>u.value-o.value),t=[];let c=0;for(let o=0;o<n.length;o+=1)t.push({...n[o],fill:ne(c,n[o].proportion,n[o].breakdown,n[o].color)}),c+=n[o].proportion;return t}return null}),B=e.computed(()=>({right:`M${a.value.width/2},${a.value.top} ${a.value.width-a.value.right}, ${a.value.top+a.value.perspective} ${a.value.width-a.value.right},${a.value.height-a.value.bottom-a.value.perspective} ${a.value.width/2},${a.value.height-a.value.bottom}`,left:`M${a.value.width/2},${a.value.top} ${a.value.left},${a.value.top+a.value.perspective} ${a.value.left},${a.value.height-a.value.bottom-a.value.perspective} ${a.value.width/2},${a.value.height-a.value.bottom}`,side:`M${a.value.width/2},${a.value.height-a.value.bottom} ${a.value.width/2},${a.value.top+a.value.perspective*2}`,topSides:`M${a.value.left},${a.value.top+a.value.perspective} ${a.value.width/2},${a.value.top+a.value.perspective*2} ${a.value.width-a.value.right},${a.value.top+a.value.perspective}`,tubeTop:`M${a.value.left},${a.value.top+a.value.perspective} C ${a.value.left},${a.value.top-a.value.perspective/3} ${a.value.width-a.value.right},${a.value.top-a.value.perspective/3} ${a.value.width-a.value.right},${a.value.top+a.value.perspective} C ${a.value.width-a.value.right},${a.value.top+a.value.perspective*2.3} ${a.value.left},${a.value.top+a.value.perspective*2.3} ${a.value.left},${a.value.top+a.value.perspective}`,tubeLeft:`M${a.value.left},${a.value.top+a.value.perspective} ${a.value.left},${a.value.height-a.value.bottom-a.value.perspective}`,tubeRight:`M${a.value.width-a.value.right},${a.value.top+a.value.perspective} ${a.value.width-a.value.right},${a.value.height-a.value.bottom-a.value.perspective}`,tubeBottom:`M${a.value.width-a.value.right},${a.value.height-a.value.bottom-a.value.perspective} C ${a.value.width-a.value.right},${a.value.height} ${a.value.left},${a.value.height} ${a.value.left},${a.value.height-a.value.bottom-a.value.perspective}`})),C=e.ref(l.value.style.chart.animation.use?0:f.dataset.percentage);e.onMounted(()=>{q();let s=0,n=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){C.value+=n+s,s+=t,C.value<f.dataset.percentage?requestAnimationFrame(c):C.value=f.dataset.percentage}l.value.style.chart.animation.use&&(C.value=0,c())});function q(){r.objectIsEmpty(f.dataset)?r.error({componentName:"VueUi3dBar",type:"dataset"}):f.dataset.series?f.dataset.series.forEach((s,n)=>{r.getMissingDatasetAttributes({datasetObject:s,requiredAttributes:["name","value"]}).forEach(t=>{r.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:t,index:n})}),s.breakdown&&s.breakdown.forEach((t,c)=>{r.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["name","value"]}).forEach(o=>{r.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:o,index:`${n} - ${c}`})})})}):r.getMissingDatasetAttributes({datasetObject:f.dataset,requiredAttributes:["percentage"]}).forEach(s=>{r.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:s})})}function ne(s,n,t,c){const o=a.value.height-a.value.bottom-a.value.top-a.value.perspective*2,{width:u,height:i,bottom:p,right:y,left:h,perspective:v}=a.value,d=p+o*s,D=i-d-v-o*n/2,ue=D>a.value.height/2?"top":"bottom",Z=64,ie=!!t;let Y=null,J=null;return ie&&(t=t.map((K,ce)=>({...K,value:K.value||0,color:r.lightenHexColor(c,ce/t.length)})),Y=r.makeDonut({series:t},u+a.value.absoluteWidth/4-14,ue==="top"?D-Z:D+Z,28,28,1.99999,2,1,360,105.25,14),J=r.makeDonut({series:t},u-y+20,i-d-v-o*n/2,6,6,1.99999,2,1,360,105.25,6)),{donut:Y,miniDonut:J,sidePointer:{x:u-y,y:i-d-v-o*n/2,topY:i-d-v-o*n,height:o*n},apexBottom:{y:i-d,x:u/2},apexTop:{y:i-d-o*n,x:u/2},right:`M${u/2},${i-d} ${u/2},${i-d-o*n} ${u-y},${i-d-v-o*n} ${u-y},${i-d-v}Z`,left:`M${u/2},${i-d} ${u/2},${i-d-o*n} ${h}, ${i-d-v-o*n} ${h},${i-d-v}Z`,liningTop:`M${h},${i-d-v-o*n} ${u/2},${i-d-o*n} ${u-y},${i-d-v-o*n}`,liningTopShade:`M${h},${i-d-v-o*n-.5} ${u/2},${i-d-o*n-.5} ${u-y},${i-d-v-o*n-.5}`,top:`M${u/2},${i-d-o*n} ${h},${i-d-v-o*n} ${u/2},${i-d-v*2-o*n} ${u-y},${i-d-v-o*n} Z`,tubeTop:`M${h},${i-d-o*n-v} C ${h},${i-d-o*n-v*2.5} ${u-y},${i-d-o*n-v*2.5} ${u-y},${i-d-o*n-v} C ${u-y},${i-d-o*n+v/2} ${h},${i-d-o*n+v/2} ${h},${i-d-o*n-v}`,bottomTubeTop:`M ${u-y-.5},${i-d-v} C ${u-y-.5},${i-d+v/2} ${h},${i-d+v/2} ${h+.5},${i-d-v}`,tubeBody:`M
2
- ${h},${i-d-o*n-v}
3
- C ${h},${i-d-o*n+v/2}
4
- ${u-y},${i-d-o*n+v/2}
5
- ${u-y},${i-d-o*n-v}
6
- L${u-y},${i-d-v}
7
- C
8
- ${u-y},${i-d+v/2}
9
- ${h},${i-d+v/2}
10
- ${h},${i-d-v}Z`}}const V=e.computed(()=>{const s=C.value/100,n=a.value.height-a.value.bottom-a.value.top-a.value.perspective*2,{width:t,height:c,bottom:o,right:u,left:i,perspective:p}=a.value,h=o+n*0;return{right:`M${t/2},${c-h} ${t/2},${c-h-n*s} ${t-u},${c-h-p-n*s} ${t-u},${c-h-p}Z`,left:`M${t/2},${c-h} ${t/2},${c-h-n*s} ${i}, ${c-h-p-n*s} ${i},${c-h-p}Z`,top:`M${t/2},${c-h-n*s} ${i},${c-h-p-n*s} ${t/2},${c-h-p*2-n*s} ${t-u},${c-h-p-n*s} Z`,tubeTop:`M${i},${c-h-n*s-p} C ${i},${c-h-n*s-p*2.5} ${t-u},${c-h-n*s-p*2.5} ${t-u},${c-h-n*s-p} C ${t-u},${c-h-n*s+p/2} ${i},${c-h-n*s+p/2} ${i},${c-h-n*s-p}`,tubeBody:`M
11
- ${i},${c-h-n*s-p}
12
- C ${i},${c-h-n*s+p/2}
13
- ${t-u},${c-h-n*s+p/2}
14
- ${t-u},${c-h-n*s-p}
15
- L${t-u},${c-p*1.5}
16
- C
17
- ${t-u},${c}
18
- ${i},${c}
19
- ${i},${c-h-p}Z`}}),m=e.ref(null);function _(s,n=!1){F("selectDatapoint",s),n||(m.value=s.id),n&&b.value&&(b.value=!1),n&&!b.value&&(b.value=!0)}function E(){b.value||(m.value=null)}function w(s,n,t=!1){const c=f.dataset.series.map(i=>i.value||0).reduce((i,p)=>i+p,0),o=isNaN(s.value/c)?0:s.value/c*100,u=isNaN(s.value/U(n))?0:s.value/U(n)*100;return t?u:o.toFixed(0)+"%"}function U(s){return[...s].map(n=>n.value).reduce((n,t)=>n+t,0)}const O=e.ref(!1);function re(s){O.value=s}function se(){return $.value?g.value:f.dataset.percentage}const x=e.computed(()=>{if($.value){const s=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[{name:t.name,color:t.color},...t.breakdown.map((c,o)=>({name:c.name,color:r.lightenHexColor(t.color,o/t.breakdown.length)}))]:{name:t.name,color:t.color}),n=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[t.value,...t.breakdown.map(c=>c.value)]:t.value);return{head:s,body:n}}else return null});function X(){if(!$.value){console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");return}e.nextTick(()=>{const s=g.value.map(o=>o.value).reduce((o,u)=>o+u,0),n=x.value.head.map((o,u)=>[[o.name],[x.value.body[u]],[isNaN(x.value.body[u]/s)?"-":x.value.body[u]/s*100]]),t=[[l.value.style.chart.title.text],[l.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(n),c=r.createCsvContent(t);r.downloadCsv({csvContent:c,title:l.value.style.chart.title.text||"vue-ui-3d-bar"})})}const P=e.computed(()=>{const s=g.value.map(u=>u.value).reduce((u,i)=>u+i,0),n=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',r.dataLabel({p:l.value.style.chart.legend.prefix,v:s,s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue}),"100%"],t=x.value.head.map((u,i)=>{const p=r.dataLabel({p:l.value.style.chart.legend.prefix,v:x.value.body[i],s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue});return[{color:u.color,name:u.name},p,isNaN(x.value.body[i]/s)?"-":r.dataLabel({v:x.value.body[i]/s*100,s:"%",r:l.value.table.td.roundingPercentage})]}),c={th:{backgroundColor:l.value.table.th.backgroundColor,color:l.value.table.th.color,outline:l.value.table.th.outline},td:{backgroundColor:l.value.table.td.backgroundColor,color:l.value.table.td.color,outline:l.value.table.td.outline},breakpoint:l.value.table.responsiveBreakpoint,shape:l.value.style.shape==="tube"?"circle":"square"};return{colNames:[l.value.table.columnNames.series,l.value.table.columnNames.value,l.value.table.columnNames.percentage],head:n,body:t,config:c}});function R(){M.value.showTable=!M.value.showTable}return te({generateCsv:X,generatePdf:H,generateImage:A,getData:se,toggleTable:R}),(s,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"bar3dChart",ref:z,class:e.normalizeClass("vue-ui-3d-bar"),style:e.normalizeStyle(`font-family:${l.value.style.fontFamily};width:100%; text-align:center;background:${l.value.style.chart.backgroundColor}`),id:`3d_bar_${k.value}`},[l.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",ye,[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${T.value}`,config:{title:{cy:"3dBar-div-title",...l.value.style.chart.title},subtitle:{cy:"3dBar-div-subtitle",...l.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),l.value.userOptions.show&&S.value?(e.openBlock(),e.createBlock(Q.UserOptions,{key:1,ref_key:"details",ref:oe,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,isPrinting:e.unref(W),isImaging:e.unref(G),uid:k.value,hasPdf:l.value.userOptions.buttons.pdf,hasTable:!!$.value&&l.value.userOptions.buttons.table,hasXls:!!$.value&&l.value.userOptions.buttons.csv,hasImg:l.value.userOptions.buttons.img,hasFullscreen:l.value.userOptions.buttons.fullscreen,titles:{...l.value.userOptions.buttonTitles},chartElement:z.value,position:l.value.userOptions.position,onToggleFullscreen:re,onGeneratePdf:e.unref(H),onGenerateCsv:X,onGenerateImage:e.unref(A),onToggleTable:R},e.createSlots({_:2},[s.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,s.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,s.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,s.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,s.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:t,isFullscreen:c})=>[e.renderSlot(s.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:t,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasTable","hasXls","hasImg","hasFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),viewBox:`0 0 ${a.value.absoluteWidth} ${a.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${l.value.style.chart.color}`)},[e.createVNode(fe._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_top${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,_e),e.createElementVNode("stop",{offset:"100%","stop-color":l.value.style.chart.bar.color},null,8,Be)],8,$e),e.createElementVNode("radialGradient",{id:`gradient_left${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,be),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.bar.color,20)},null,8,Ee)],8,xe),e.createElementVNode("radialGradient",{id:`gradient_right${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,we),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.bar.color,20)},null,8,Ne)],8,Ce),e.createElementVNode("linearGradient",{id:`gradient_tube_body${k.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${l.value.style.chart.bar.color}`},null,8,Fe),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Se),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.bar.color,40)},null,8,Me)],8,Ve)]),$.value?(e.openBlock(),e.createElementBlock("defs",Pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`grad_top_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.lightenHexColor)(t.color,.5),80)},null,8,Oe),e.createElementVNode("stop",{offset:"100%","stop-color":t.color},null,8,De)],8,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_left_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.color,80)},null,8,Te),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.darkenHexColor)(t.color,.5),100)},null,8,je)],8,ze))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_right_${t.id}`},[e.createElementVNode("stop",{offset:"2%","stop-color":e.unref(r.setOpacity)(e.unref(r.lightenHexColor)(t.color,.5),100)},null,8,We),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(t.color,80)},null,8,Ge)],8,Ie))),256)),e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"0%",y2:"100%",id:`vertical_line_${k.value}`},Ue,8,He)])):e.createCommentVNode("",!0),l.value.style.chart.dataLabel.show&&![null,void 0].includes(f.dataset.percentage)&&[null,void 0].includes(f.dataset.series)?(e.openBlock(),e.createElementBlock("text",{key:1,x:a.value.width/2,y:a.value.top-l.value.style.chart.dataLabel.fontSize/2,"font-size":l.value.style.chart.dataLabel.fontSize,"font-weight":l.value.style.chart.dataLabel.bold?"bold":"normal",fill:l.value.style.chart.dataLabel.color,"text-anchor":"middle"},e.toDisplayString(e.unref(r.dataLabel)({v:C.value,s:"%",r:l.value.style.chart.dataLabel.rounding})),9,Xe)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("g",{key:2,onClick:n[0]||(n[0]=t=>{b.value=!1,m.value=null}),"data-html2canvas-ignore":"",style:{cursor:"pointer"}},[e.createElementVNode("rect",{x:a.value.width/2-6,y:a.value.top-20,height:12,width:12,fill:"transparent"},null,8,Re),e.createElementVNode("path",{d:`M${a.value.width/2-6},${a.value.top-20} ${a.value.width/2+6},${a.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,Ze),e.createElementVNode("path",{d:`M${a.value.width/2+6},${a.value.top-20} ${a.value.width/2-6},${a.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,Ye)])):e.createCommentVNode("",!0),!l.value.style.shape||l.value.style.shape==="bar"?(e.openBlock(),e.createElementBlock("g",Je,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",Ke,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.right,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Qe),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.left,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,et),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.side,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,tt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.topSides,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,lt)])),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",ot,[e.createElementVNode("path",{d:V.value.right,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_right${k.value})`},null,8,at),e.createElementVNode("path",{d:V.value.left,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_left${k.value})`},null,8,nt),e.createElementVNode("path",{d:V.value.top,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,rt)])),$.value?(e.openBlock(),e.createElementBlock("g",st,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack"},[e.createElementVNode("path",{d:t.fill.right,fill:`url(#grad_right_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E},null,40,ut),e.createElementVNode("path",{d:t.fill.left,fill:`url(#grad_left_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E},null,40,it),e.createElementVNode("path",{d:t.fill.top,fill:`url(#grad_top_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E},null,40,ct),e.createElementVNode("path",{d:t.fill.liningTop,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round",fill:"none",onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E},null,40,dt),e.createElementVNode("path",{d:`M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round"},null,8,ht)],4))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",null,[c!==g.value.length-1?(e.openBlock(),e.createElementBlock("path",{key:0,d:t.fill.liningTopShade,stroke:l.value.style.chart.bar.shadeColor,"stroke-width":"0.5","stroke-linecap":"round",fill:"none",style:{"pointer-events":"none"}},null,8,vt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,ft),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,kt)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:a.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(t.name)+": "+e.toDisplayString(e.unref(r.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage}))+" ("+e.toDisplayString(e.unref(r.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,e.unref(r.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:t,seriesIndex:c}))+") ",5)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"legend",e.normalizeProps(e.guardReactiveProps({datapoint:t,config:l.value,dataset:g.value})),void 0,!0)],8,mt)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(r.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,gt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,$t))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Bt),xt,e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,bt)],8,_t)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,Et))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,Ct))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",wt,[e.createElementVNode("text",{"text-anchor":e.unref(r.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(r.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(r.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(w(o,t.fill.donut))+" ("+e.toDisplayString(e.unref(r.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,e.unref(r.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:u}))+") ",9,Nt),e.createElementVNode("text",{"text-anchor":e.unref(r.calcMarkerOffsetX)(o).anchor,x:e.unref(r.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(r.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,Vt)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,St))),256))])):e.createCommentVNode("",!0)],12,pt))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value.style.shape==="tube"?(e.openBlock(),e.createElementBlock("g",Mt,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",Pt,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeTop,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Lt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeLeft,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Ot),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeRight,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Dt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeBottom,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,zt),e.createElementVNode("path",{d:V.value.tubeTop,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,Tt),e.createElementVNode("path",{d:V.value.tubeBody,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body${k.value})`},null,8,jt)])),$.value?(e.openBlock(),e.createElementBlock("g",It,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack",onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_tube_top_${t.id}`,fx:"10%",cy:"55%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.lightenHexColor)(t.color,.5),80)},null,8,Ht),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.darkenHexColor)(t.color,.1),80)},null,8,At)],8,Gt),e.createElementVNode("linearGradient",{id:`gradient_tube_body_${t.id}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.color}`},null,8,Ut),e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(r.setOpacity)(e.unref(r.darkenHexColor)(t.color,.7),100)},null,8,Xt),e.createElementVNode("stop",{offset:"25%","stop-color":e.unref(r.setOpacity)(e.unref(r.darkenHexColor)(t.color,.5),100)},null,8,Rt),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(r.setOpacity)(t.color,80)},null,8,Zt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.lightenHexColor)(t.color,.7),100)},null,8,Yt)],8,qt)]),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E,d:t.fill.tubeBody,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body_${t.id})`},null,40,Jt),c>0?(e.openBlock(),e.createElementBlock("path",{key:0,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E,d:t.fill.bottomTubeTop,stroke:"#000000","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,40,Kt)):e.createCommentVNode("",!0),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E,d:t.fill.tubeTop,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_top_${t.id})`},null,40,Qt)],12,Wt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,tl),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,ll)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:a.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(t.name)+": "+e.toDisplayString(e.unref(r.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage}))+" ("+e.toDisplayString(e.unref(r.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,e.unref(r.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:t,seriesIndex:c}))+") ",5)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"legend",e.normalizeProps(e.guardReactiveProps({datapoint:t,config:l.value,dataset:g.value})),void 0,!0)],8,ol)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",al,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(r.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,nl)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,rl))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,ul),il,e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,cl)],8,sl)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,dl))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,hl))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",vl,[e.createElementVNode("text",{"text-anchor":e.unref(r.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(r.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(r.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(w(o,t.fill.donut))+" ("+e.toDisplayString(e.unref(r.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,e.unref(r.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:u}))+") ",9,pl),e.createElementVNode("text",{"text-anchor":e.unref(r.calcMarkerOffsetX)(o).anchor,x:e.unref(r.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(r.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,fl)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",kl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,ml))),256))])):e.createCommentVNode("",!0)],12,el))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"svg",{svg:a.value},void 0,!0)],14,ge)):e.createCommentVNode("",!0),s.$slots.watermark?(e.openBlock(),e.createElementBlock("div",yl,[e.renderSlot(s.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(W)||e.unref(G)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(he.default,{key:4,config:{type:"bar3d",style:{backgroundColor:l.value.style.chart.backgroundColor,bar3d:{color:"#CCCCCC"}}}},null,8,["config"])),S.value&&$.value?(e.openBlock(),e.createBlock(pe.default,{key:5,hideDetails:"",config:{open:M.value.showTable,maxHeight:1e4,body:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color},head:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ve.DataTable,{key:`table_${j.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text?` : ${l.value.style.chart.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=t=>M.value.showTable=!1)},{th:e.withCtx(({th:t})=>[e.createElementVNode("div",{innerHTML:t,style:{display:"flex","align-items":"center"}},null,8,gl)]),td:e.withCtx(({td:t})=>[e.createTextVNode(e.toDisplayString(t.name||t),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,me))}},_l=ke._export_sfc($l,[["__scopeId","data-v-8a60c7c5"]]);exports.default=_l;