vue-data-ui 2.10.5 → 2.10.6

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 (167) hide show
  1. package/dist/{Arrow-Badwqciu.cjs → Arrow-Cl3tB80E.cjs} +1 -1
  2. package/dist/{Arrow-Bb5xelJS.js → Arrow-rRiIHng2.js} +1 -1
  3. package/dist/{BaseIcon-HDOMbyJq.js → BaseIcon-COlnFbOq.js} +1 -1
  4. package/dist/{BaseIcon-CvuQ41yl.cjs → BaseIcon-CiINppo2.cjs} +1 -1
  5. package/dist/{ColorPicker-NOWXYDyd.cjs → ColorPicker-9QCAgrqp.cjs} +1 -1
  6. package/dist/{ColorPicker-BODnRb0v.js → ColorPicker-UNzkvlGG.js} +3 -3
  7. package/dist/{DataTable-CGMCHKzY.js → DataTable-CXbN2mJi.js} +2 -2
  8. package/dist/{DataTable-Bu_0tRZE.cjs → DataTable-DOiZOQ3J.cjs} +1 -1
  9. package/dist/{Legend-CLZW3_-V.js → Legend-BU9C5fBQ.js} +2 -2
  10. package/dist/{Legend-BDIC5aus.cjs → Legend-CFqKBI0j.cjs} +1 -1
  11. package/dist/{PackageVersion-DrU5ubC-.js → PackageVersion-0Lu6RIig.js} +1 -1
  12. package/dist/{PackageVersion-CKutD59c.cjs → PackageVersion-BMNt7NsQ.cjs} +1 -1
  13. package/dist/{PenAndPaper-Bnvy0XRn.cjs → PenAndPaper-BUwLP3Wx.cjs} +1 -1
  14. package/dist/{PenAndPaper-BF6RVx_0.js → PenAndPaper-D4Uu-GqW.js} +3 -3
  15. package/dist/{Shape-NYJ-EMUq.cjs → Shape-2NRWULE_.cjs} +1 -1
  16. package/dist/{Shape-D5Dtzm3x.js → Shape-BavMx2aa.js} +1 -1
  17. package/dist/{Slicer-BrajQoJL.js → Slicer-B_qJHvNR.js} +2 -2
  18. package/dist/{Slicer-Cdgf9oDx.cjs → Slicer-Ct8BAk8F.cjs} +1 -1
  19. package/dist/{Title-Cj4tUZSu.cjs → Title-BkfQdTEX.cjs} +1 -1
  20. package/dist/{Title-BNsKKvQy.js → Title-DrVDm1wy.js} +1 -1
  21. package/dist/{Tooltip-Dm2APAls.js → Tooltip-BFT6mZ5a.js} +1 -1
  22. package/dist/{Tooltip-CLjMKc28.cjs → Tooltip-BK88meti.cjs} +1 -1
  23. package/dist/{dom-to-png-Z6Fps788.js → dom-to-png-0WSGIcUV.js} +1 -1
  24. package/dist/{dom-to-png-BlAkXMo8.cjs → dom-to-png-CyVwBzNm.cjs} +1 -1
  25. package/dist/{img-DhPFunow.js → img-BT-UmGcu.js} +1 -1
  26. package/dist/{img-0HoPau8z.cjs → img-DqK-SXIP.cjs} +1 -1
  27. package/dist/index-Cai0fWP7.cjs +9 -0
  28. package/dist/{index-D2h9qRb4.js → index-hMo72hAq.js} +18 -9
  29. package/dist/{pdf-Dm8bjLUW.cjs → pdf-DY3kwqSx.cjs} +1 -1
  30. package/dist/{pdf-BpYF_lP6.js → pdf-G7o-GM_m.js} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/types/vue-data-ui.d.cts +9 -0
  33. package/dist/types/vue-data-ui.d.ts +9 -0
  34. package/dist/{useNestedProp-CAbtwUJj.cjs → useNestedProp-DcWhlk8h.cjs} +1 -1
  35. package/dist/{useNestedProp-DlWfv-mw.js → useNestedProp-DhEaBTgF.js} +1 -1
  36. package/dist/{usePrinter-B9NkBzf5.cjs → usePrinter-B4ojFS2B.cjs} +1 -1
  37. package/dist/{usePrinter-BGkHpXM9.js → usePrinter-D2z-bUtX.js} +3 -3
  38. package/dist/{vue-data-ui-DPoOpdO-.cjs → vue-data-ui-BR4hs3ky.cjs} +1 -1
  39. package/dist/{vue-data-ui-kWX-2oPX.js → vue-data-ui-BTkU5knB.js} +62 -62
  40. package/dist/vue-data-ui.cjs +1 -1
  41. package/dist/vue-data-ui.js +7 -7
  42. package/dist/{vue-ui-3d-bar-CwsCsbwY.cjs → vue-ui-3d-bar-Cx2zND3j.cjs} +1 -1
  43. package/dist/{vue-ui-3d-bar-CAJh6lT_.js → vue-ui-3d-bar-DD3_LLbq.js} +9 -9
  44. package/dist/{vue-ui-accordion-C-v1kmEc.js → vue-ui-accordion-CHMdpjnX.js} +3 -3
  45. package/dist/{vue-ui-accordion-ChE9WO8Q.cjs → vue-ui-accordion-DUGBjyB1.cjs} +1 -1
  46. package/dist/{vue-ui-age-pyramid-DdwMF6_I.js → vue-ui-age-pyramid-CUS2cIAl.js} +10 -10
  47. package/dist/{vue-ui-age-pyramid-CAtI3F1S.cjs → vue-ui-age-pyramid-WpMKbqUM.cjs} +1 -1
  48. package/dist/{vue-ui-annotator-DQ0W7Q5C.cjs → vue-ui-annotator-B5VYzARK.cjs} +1 -1
  49. package/dist/{vue-ui-annotator-bkpTEqep.js → vue-ui-annotator-Ckyjvy1h.js} +2 -2
  50. package/dist/{vue-ui-bullet-CQtNg-wR.cjs → vue-ui-bullet-Clccjys0.cjs} +1 -1
  51. package/dist/{vue-ui-bullet-BEAyOY56.js → vue-ui-bullet-i97qMAx7.js} +8 -8
  52. package/dist/{vue-ui-candlestick-DJtpSDju.cjs → vue-ui-candlestick-B35fn-Jo.cjs} +1 -1
  53. package/dist/{vue-ui-candlestick-DKYirN9r.js → vue-ui-candlestick-Dmu21ktX.js} +11 -11
  54. package/dist/{vue-ui-carousel-table-VFiMfJos.cjs → vue-ui-carousel-table-23ggTo5D.cjs} +1 -1
  55. package/dist/{vue-ui-carousel-table-q1hGM_Iw.js → vue-ui-carousel-table-cvW3wpY7.js} +4 -4
  56. package/dist/{vue-ui-chestnut-B1VUR7mU.js → vue-ui-chestnut-CZpShJyS.js} +8 -8
  57. package/dist/{vue-ui-chestnut-DRGps83_.cjs → vue-ui-chestnut-CkuDV8dp.cjs} +1 -1
  58. package/dist/{vue-ui-circle-pack-Bw_j7w4u.js → vue-ui-circle-pack-B6d9PjE2.js} +9 -9
  59. package/dist/{vue-ui-circle-pack-CkpLDinw.cjs → vue-ui-circle-pack-C2IQV5_6.cjs} +1 -1
  60. package/dist/{vue-ui-cursor-ZkCZRUcy.js → vue-ui-cursor-CG4bTWjj.js} +2 -2
  61. package/dist/{vue-ui-cursor-D_ZN42gT.cjs → vue-ui-cursor-CZBmEqOC.cjs} +1 -1
  62. package/dist/{vue-ui-dashboard-Bcj-LfoN.cjs → vue-ui-dashboard-D-95GOHa.cjs} +1 -1
  63. package/dist/{vue-ui-dashboard-DnEpTStU.js → vue-ui-dashboard-DqM_deY-.js} +62 -62
  64. package/dist/{vue-ui-digits-Bsseebr6.js → vue-ui-digits-CKpey7p1.js} +2 -2
  65. package/dist/{vue-ui-digits-p0PWcPJX.cjs → vue-ui-digits-Cdauuy8X.cjs} +1 -1
  66. package/dist/{vue-ui-donut-CwvMWv_q.js → vue-ui-donut-Dp2Yy4fh.js} +36 -36
  67. package/dist/{vue-ui-donut-evolution-C9eui30b.cjs → vue-ui-donut-evolution-Cg1VnagT.cjs} +1 -1
  68. package/dist/{vue-ui-donut-evolution-BzNh2QwP.js → vue-ui-donut-evolution-ClL_5jhm.js} +11 -11
  69. package/dist/{vue-ui-donut-C3mhQ-03.cjs → vue-ui-donut-j519aqqU.cjs} +1 -1
  70. package/dist/{vue-ui-dumbbell-BvNEHy9Z.js → vue-ui-dumbbell-C8tOQUbs.js} +10 -10
  71. package/dist/{vue-ui-dumbbell-BheHAxmy.cjs → vue-ui-dumbbell-CNJ9en-A.cjs} +1 -1
  72. package/dist/{vue-ui-flow-vz29fymj.cjs → vue-ui-flow-BYypzs-j.cjs} +1 -1
  73. package/dist/{vue-ui-flow-DBuLJlEV.js → vue-ui-flow-Ouw_lvpb.js} +9 -9
  74. package/dist/{vue-ui-funnel-DhoOe49e.js → vue-ui-funnel-CfxmaNEA.js} +9 -9
  75. package/dist/{vue-ui-funnel-D8brKLer.cjs → vue-ui-funnel-DbVCaDxm.cjs} +1 -1
  76. package/dist/{vue-ui-galaxy-DUQ5z3km.js → vue-ui-galaxy-dm_p5xAR.js} +11 -11
  77. package/dist/{vue-ui-galaxy-YP3Gl3vG.cjs → vue-ui-galaxy-zBDItFVz.cjs} +1 -1
  78. package/dist/{vue-ui-gauge-WH6OGXAD.cjs → vue-ui-gauge-Dr-7ojj9.cjs} +1 -1
  79. package/dist/{vue-ui-gauge-C_8QgadB.js → vue-ui-gauge-DwwvbGca.js} +7 -7
  80. package/dist/{vue-ui-gizmo-D2AJKoeB.cjs → vue-ui-gizmo-CB5NfNit.cjs} +1 -1
  81. package/dist/{vue-ui-gizmo-DFy9X5IT.js → vue-ui-gizmo-Cq0SpTfm.js} +3 -3
  82. package/dist/{vue-ui-heatmap-DH93m9RC.js → vue-ui-heatmap-DNSOppoO.js} +10 -10
  83. package/dist/{vue-ui-heatmap-Dx8XPeob.cjs → vue-ui-heatmap-DtRSx7DO.cjs} +1 -1
  84. package/dist/{vue-ui-history-plot-Cmc7KMnB.cjs → vue-ui-history-plot-BvC3L9g3.cjs} +1 -1
  85. package/dist/{vue-ui-history-plot-C-9fJrMv.js → vue-ui-history-plot-r9eLYJCe.js} +11 -11
  86. package/dist/{vue-ui-kpi-C6cv6sCW.js → vue-ui-kpi-BBpxo07S.js} +3 -3
  87. package/dist/{vue-ui-kpi-DqpTRLkQ.cjs → vue-ui-kpi-raHWFHjI.cjs} +1 -1
  88. package/dist/{vue-ui-mini-loader-BH-Hztc3.js → vue-ui-mini-loader-CGtQXPzk.js} +2 -2
  89. package/dist/{vue-ui-mini-loader-CpxzfBja.cjs → vue-ui-mini-loader-STx0NSvX.cjs} +1 -1
  90. package/dist/{vue-ui-molecule-avfEzaAy.cjs → vue-ui-molecule-B4WJo2V5.cjs} +1 -1
  91. package/dist/{vue-ui-molecule-1475qvln.js → vue-ui-molecule-EYSvyl-h.js} +11 -11
  92. package/dist/{vue-ui-mood-radar-CnAmD4WX.cjs → vue-ui-mood-radar-CfHUyyMY.cjs} +1 -1
  93. package/dist/{vue-ui-mood-radar-SJjT1sCF.js → vue-ui-mood-radar-Crk-XB3O.js} +11 -11
  94. package/dist/vue-ui-nested-donuts-DRJZT5Bv.cjs +17 -0
  95. package/dist/vue-ui-nested-donuts-Rm4P3uEP.js +1137 -0
  96. package/dist/{vue-ui-onion-CA2N8k0p.cjs → vue-ui-onion-Bgvs96ms.cjs} +1 -1
  97. package/dist/{vue-ui-onion-DzreNeV2.js → vue-ui-onion-Dzl_kjlE.js} +11 -11
  98. package/dist/{vue-ui-parallel-coordinate-plot-CyoOsjFp.js → vue-ui-parallel-coordinate-plot-98c0XRsu.js} +12 -12
  99. package/dist/{vue-ui-parallel-coordinate-plot-V6vt-U3H.cjs → vue-ui-parallel-coordinate-plot-YuLiWTox.cjs} +1 -1
  100. package/dist/{vue-ui-quadrant-C7Fb-DVA.cjs → vue-ui-quadrant-CiqJKJu1.cjs} +1 -1
  101. package/dist/{vue-ui-quadrant-DkMAnQHE.js → vue-ui-quadrant-Dd1ryxBx.js} +40 -40
  102. package/dist/{vue-ui-quick-chart-BNf57IFn.js → vue-ui-quick-chart-CTsvK-CY.js} +9 -9
  103. package/dist/{vue-ui-quick-chart-CQp5GSbr.cjs → vue-ui-quick-chart-DMceIo39.cjs} +1 -1
  104. package/dist/{vue-ui-radar-DHxUS4r0.js → vue-ui-radar-CHYpedpk.js} +12 -12
  105. package/dist/{vue-ui-radar-DVv2P3B3.cjs → vue-ui-radar-Dp8-SmYd.cjs} +1 -1
  106. package/dist/{vue-ui-rating-2dp8n1gK.js → vue-ui-rating-DSsm92zG.js} +10 -10
  107. package/dist/{vue-ui-rating-CA5buZm1.cjs → vue-ui-rating-uVphq_sK.cjs} +1 -1
  108. package/dist/{vue-ui-relation-circle-BGY0EsvO.cjs → vue-ui-relation-circle-46wKUZTv.cjs} +1 -1
  109. package/dist/{vue-ui-relation-circle-hU35G-pb.js → vue-ui-relation-circle-BPVBRieo.js} +7 -7
  110. package/dist/{vue-ui-ridgeline-CTE25ofY.js → vue-ui-ridgeline-B6GA2tXb.js} +49 -49
  111. package/dist/{vue-ui-ridgeline-dhS0sX29.cjs → vue-ui-ridgeline-OULIMr6I.cjs} +1 -1
  112. package/dist/{vue-ui-rings-BgJT1xPm.js → vue-ui-rings-Cl-607b8.js} +12 -12
  113. package/dist/{vue-ui-rings-2XntvE5b.cjs → vue-ui-rings-HVHIYYrh.cjs} +1 -1
  114. package/dist/{vue-ui-scatter-Brh98c-o.cjs → vue-ui-scatter-BZ4DPyoL.cjs} +1 -1
  115. package/dist/{vue-ui-scatter-YKeV-y-p.js → vue-ui-scatter-ClYbim5F.js} +44 -44
  116. package/dist/{vue-ui-skeleton-CNP_4H8z.js → vue-ui-skeleton-C3t9bL6f.js} +19 -19
  117. package/dist/{vue-ui-skeleton-CK5DdXVo.cjs → vue-ui-skeleton-C954hFY-.cjs} +1 -1
  118. package/dist/{vue-ui-smiley-3uIAUF4w.cjs → vue-ui-smiley-BBGCa2S0.cjs} +1 -1
  119. package/dist/{vue-ui-smiley-BUlzuzq6.js → vue-ui-smiley-DsKnKBFv.js} +2 -2
  120. package/dist/{vue-ui-spark-trend-CfhhjekZ.cjs → vue-ui-spark-trend-CBa0FhIy.cjs} +1 -1
  121. package/dist/{vue-ui-spark-trend-DmwQZLUP.js → vue-ui-spark-trend-Da-HE7x2.js} +5 -5
  122. package/dist/{vue-ui-sparkbar-BxKGdAq3.cjs → vue-ui-sparkbar-CUul3e3U.cjs} +1 -1
  123. package/dist/{vue-ui-sparkbar-TLxa0K9v.js → vue-ui-sparkbar-DgQxbUeJ.js} +4 -4
  124. package/dist/{vue-ui-sparkgauge-CIwnnQYW.js → vue-ui-sparkgauge-BKA5GnGO.js} +4 -4
  125. package/dist/{vue-ui-sparkgauge-CWXLMSHa.cjs → vue-ui-sparkgauge-DYPVqz6I.cjs} +1 -1
  126. package/dist/{vue-ui-sparkhistogram-Df0Edni4.cjs → vue-ui-sparkhistogram-CNN9tXh1.cjs} +1 -1
  127. package/dist/{vue-ui-sparkhistogram-w1rEgV9S.js → vue-ui-sparkhistogram-CdZy4SfH.js} +5 -5
  128. package/dist/{vue-ui-sparkline-BQCbVZw5.cjs → vue-ui-sparkline-BCP4gyTp.cjs} +1 -1
  129. package/dist/{vue-ui-sparkline-C2Sf6sF4.js → vue-ui-sparkline-DCNNoruu.js} +15 -15
  130. package/dist/{vue-ui-sparkstackbar-BaVuTNxy.js → vue-ui-sparkstackbar-BAXGFcPk.js} +5 -5
  131. package/dist/{vue-ui-sparkstackbar-BlyzQCK8.cjs → vue-ui-sparkstackbar-sgehFSit.cjs} +1 -1
  132. package/dist/{vue-ui-stackbar-ypv8uR9d.cjs → vue-ui-stackbar-87l909wS.cjs} +1 -1
  133. package/dist/{vue-ui-stackbar-D4H8uFQ5.js → vue-ui-stackbar-Cto9A9WG.js} +13 -13
  134. package/dist/{vue-ui-strip-plot-Dxh7xzZf.js → vue-ui-strip-plot-C0F8_S_g.js} +11 -11
  135. package/dist/{vue-ui-strip-plot-CmrAJ6uF.cjs → vue-ui-strip-plot-Deegqmms.cjs} +1 -1
  136. package/dist/{vue-ui-table-BD8QgS2P.js → vue-ui-table-1vUkkwSp.js} +3 -3
  137. package/dist/{vue-ui-table-BmyVGToW.cjs → vue-ui-table-BUxFdYM7.cjs} +1 -1
  138. package/dist/{vue-ui-table-heatmap-DZIrV6Bq.js → vue-ui-table-heatmap-PPGfjMxh.js} +4 -4
  139. package/dist/{vue-ui-table-heatmap-CXTW4REL.cjs → vue-ui-table-heatmap-uDH3owRO.cjs} +1 -1
  140. package/dist/{vue-ui-table-sparkline--R1CzNtx.cjs → vue-ui-table-sparkline-CPSlJVB1.cjs} +1 -1
  141. package/dist/{vue-ui-table-sparkline-B0aYy2JL.js → vue-ui-table-sparkline-D9LEgrxj.js} +5 -5
  142. package/dist/{vue-ui-thermometer-Dh0nVf-h.js → vue-ui-thermometer-BxngpuEZ.js} +7 -7
  143. package/dist/{vue-ui-thermometer-DtOy35Jd.cjs → vue-ui-thermometer-D8P88pea.cjs} +1 -1
  144. package/dist/{vue-ui-timer-Bo3p5wjo.cjs → vue-ui-timer-B_dh6otW.cjs} +1 -1
  145. package/dist/{vue-ui-timer-C4JkVftX.js → vue-ui-timer-C3dxY--Q.js} +5 -5
  146. package/dist/{vue-ui-tiremarks-GLU60Yzo.js → vue-ui-tiremarks-_oZ6wL6K.js} +7 -7
  147. package/dist/{vue-ui-tiremarks-B-3AEiND.cjs → vue-ui-tiremarks-mISKtpmD.cjs} +1 -1
  148. package/dist/{vue-ui-treemap-ZiuUtYjs.cjs → vue-ui-treemap-CZZXcX0f.cjs} +1 -1
  149. package/dist/{vue-ui-treemap-QyQqnbJc.js → vue-ui-treemap-D5Dcd84h.js} +12 -12
  150. package/dist/{vue-ui-vertical-bar-DHZvOGpR.cjs → vue-ui-vertical-bar-C-KAVKXj.cjs} +1 -1
  151. package/dist/{vue-ui-vertical-bar-CbwZCrcW.js → vue-ui-vertical-bar-CtWXk6co.js} +12 -12
  152. package/dist/{vue-ui-waffle-D_zRZStV.js → vue-ui-waffle-BD2GnRkO.js} +12 -12
  153. package/dist/{vue-ui-waffle-Yi5W6qYr.cjs → vue-ui-waffle-C9qyTIzz.cjs} +1 -1
  154. package/dist/{vue-ui-wheel-D85CwfOC.cjs → vue-ui-wheel-CKfr_7kH.cjs} +1 -1
  155. package/dist/{vue-ui-wheel-D_wbd08e.js → vue-ui-wheel-HydW49fo.js} +7 -7
  156. package/dist/{vue-ui-word-cloud-CkActnvX.cjs → vue-ui-word-cloud-C4ISeFpy.cjs} +1 -1
  157. package/dist/{vue-ui-word-cloud-jMOFgeRb.js → vue-ui-word-cloud-C9Pbi6ey.js} +10 -10
  158. package/dist/{vue-ui-world-aTdY2yXo.cjs → vue-ui-world-BlAD3UPb.cjs} +1 -1
  159. package/dist/{vue-ui-world-XMoqQwg7.js → vue-ui-world-D-AsGwlW.js} +11 -11
  160. package/dist/{vue-ui-xy-DL6V_DZs.js → vue-ui-xy-CMw6P4C0.js} +16 -16
  161. package/dist/{vue-ui-xy-DYEFXjnb.cjs → vue-ui-xy-CS-xjZVI.cjs} +2 -2
  162. package/dist/{vue-ui-xy-canvas-K0Qm3FPR.cjs → vue-ui-xy-canvas-Dd7IFwSK.cjs} +1 -1
  163. package/dist/{vue-ui-xy-canvas-DpX9D7Ny.js → vue-ui-xy-canvas-DtKI-IQA.js} +12 -12
  164. package/package.json +1 -1
  165. package/dist/index-D6F-xMcR.cjs +0 -9
  166. package/dist/vue-ui-nested-donuts-6MGMcByL.js +0 -937
  167. package/dist/vue-ui-nested-donuts-BkQJr_zV.cjs +0 -17
@@ -1,937 +0,0 @@
1
- import { computed as b, ref as i, watch as Ue, onMounted as st, onBeforeUnmount as ut, createElementBlock as n, openBlock as u, unref as r, normalizeStyle as K, normalizeClass as D, createBlock as z, createCommentVNode as f, createVNode as Re, createSlots as nt, withCtx as g, renderSlot as m, normalizeProps as V, guardReactiveProps as M, createElementVNode as k, Fragment as C, renderList as F, toDisplayString as S, createTextVNode as Q, nextTick as rt } from "vue";
2
- import { u as it, c as dt, t as vt, p as Z, a as ct, o as ft, e as U, b as ht, H as Be, d as yt, m as Ee, f as x, X as pt, s as Ge, J as bt, k as ie, n as R, i as E, x as Ye, q as gt, r as mt, y as kt } from "./index-D2h9qRb4.js";
3
- import { t as wt, u as $t } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as Lt } from "./Title-BNsKKvQy.js";
5
- import { u as Ct, U as xt } from "./usePrinter-BGkHpXM9.js";
6
- import { D as _t } from "./DataTable-CGMCHKzY.js";
7
- import { _ as Tt } from "./Tooltip-Dm2APAls.js";
8
- import { L as Ft } from "./Legend-CLZW3_-V.js";
9
- import Nt from "./vue-ui-skeleton-CNP_4H8z.js";
10
- import St from "./vue-ui-accordion-C-v1kmEc.js";
11
- import { u as Xe } from "./useNestedProp-DlWfv-mw.js";
12
- import { _ as Ot } from "./PackageVersion-DrU5ubC-.js";
13
- import { _ as It } from "./PenAndPaper-BF6RVx_0.js";
14
- import { u as At } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { u as Dt } from "./useChartAccessibility-BWojgys7.js";
16
- import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const Pt = ["id"], Vt = ["xmlns", "viewBox"], Mt = ["width", "height"], Ut = ["id"], Rt = ["offset", "stop-color"], Bt = ["offset", "stop-opacity"], Et = ["id"], Gt = ["id"], Yt = ["id"], Xt = ["flood-color"], Ht = ["d", "fill", "stroke", "stroke-width", "filter"], Wt = { key: 1 }, qt = ["d", "fill"], Jt = { key: 2 }, Kt = ["x", "y", "font-size", "font-weight", "fill"], Qt = { key: 3 }, Zt = ["filter"], jt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], el = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], tl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], ll = ["d", "fill", "onMouseenter", "onClick"], al = {
18
- key: 5,
19
- class: "vue-data-ui-watermark"
20
- }, ol = {
21
- key: 0,
22
- class: "vue-ui-nested-donuts-legend-title"
23
- }, sl = ["onClick"], ul = ["innerHTML"], nl = {
24
- __name: "vue-ui-nested-donuts",
25
- props: {
26
- config: {
27
- type: Object,
28
- default() {
29
- return {};
30
- }
31
- },
32
- dataset: {
33
- type: Array,
34
- default() {
35
- return [];
36
- }
37
- }
38
- },
39
- emits: ["selectLegend", "selectDatapoint"],
40
- setup(He, { expose: We, emit: qe }) {
41
- const { vue_ui_nested_donuts: Je } = it(), O = He, G = b(() => !!O.dataset && O.dataset.length), $ = i(dt()), j = i(!1), ee = i(""), Ke = i(null), de = i(0), B = i(null), ve = i(null), te = i(null), ce = i(null), fe = i(null), he = i(0), ye = i(0), pe = i(0), P = i(!1);
42
- function Qe(t) {
43
- P.value = t, de.value += 1;
44
- }
45
- const e = b({
46
- get: () => ke(),
47
- set: (t) => t
48
- }), { userOptionsVisible: le, setUserOptionsVisibility: be, keepUserOptionState: ge } = At({ config: e.value }), { svgRef: me } = Dt({ config: e.value.style.chart.title });
49
- function ke() {
50
- const t = Xe({
51
- userConfig: O.config,
52
- defaultConfig: Je
53
- });
54
- return t.theme ? {
55
- ...Xe({
56
- userConfig: ct.vue_ui_nested_donuts[t.theme] || O.config,
57
- defaultConfig: t
58
- }),
59
- customPalette: vt[t.theme] || Z
60
- } : t;
61
- }
62
- Ue(() => O.config, (t) => {
63
- e.value = ke(), le.value = !e.value.userOptions.showOnChartHover, $e(), he.value += 1, ye.value += 1, pe.value += 1, y.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show;
64
- }, { deep: !0 });
65
- const we = b(() => {
66
- const { top: t, right: s, bottom: a, left: o } = e.value.style.chart.padding;
67
- return {
68
- css: `padding:${t}px ${s}px ${a}px ${o}px`,
69
- top: t,
70
- right: s,
71
- bottom: a,
72
- left: o
73
- };
74
- }), Y = i(null);
75
- st(() => {
76
- $e();
77
- });
78
- function $e() {
79
- if (ft(O.dataset) && U({
80
- componentName: "VueUiNestedDonuts",
81
- type: "dataset"
82
- }), e.value.responsive) {
83
- const t = wt(() => {
84
- const { width: s, height: a } = $t({
85
- chart: B.value,
86
- title: e.value.style.chart.title.text ? ve.value : null,
87
- legend: e.value.style.chart.legend.show ? te.value : null,
88
- source: ce.value,
89
- noTitle: fe.value,
90
- padding: we.value
91
- });
92
- requestAnimationFrame(() => {
93
- c.value.width = s, c.value.height = a;
94
- });
95
- });
96
- Y.value = new ResizeObserver(t), Y.value.observe(B.value.parentNode);
97
- }
98
- }
99
- ut(() => {
100
- Y.value && Y.value.disconnect();
101
- });
102
- const { isPrinting: Le, isImaging: Ce, generatePdf: xe, generateImage: _e } = Ct({
103
- elementId: `nested_donuts_${$.value}`,
104
- fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
105
- options: e.value.userOptions.print
106
- }), Ze = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), je = b(() => ht(e.value.customPalette)), y = i({
107
- dataLabels: {
108
- show: e.value.style.chart.layout.labels.dataLabels.show
109
- },
110
- showTable: e.value.table.show,
111
- showTooltip: e.value.style.chart.tooltip.show
112
- }), c = i({
113
- height: 512,
114
- width: 512
115
- }), Te = qe;
116
- function et({ datapoint: t, index: s }) {
117
- Te("selectDatapoint", { datapoint: t, index: s });
118
- }
119
- const p = i([]), _ = b(() => (O.dataset.forEach((t, s) => {
120
- [null, void 0].includes(t.name) && U({
121
- componentName: "VueUiNestedDonuts",
122
- type: "datasetSerieAttribute",
123
- property: "name",
124
- index: s
125
- }), [null, void 0].includes(t.series) ? U({
126
- componentName: "VueUiNestedDonuts",
127
- type: "datasetSerieAttribute",
128
- property: "series",
129
- index: s
130
- }) : t.series.length === 0 ? U({
131
- componentName: "VueUiNestedDonuts",
132
- type: "datasetAttributeEmpty",
133
- property: `series at index ${s}`
134
- }) : t.series.forEach((a, o) => {
135
- [null, void 0].includes(a.name) && U({
136
- componentName: "VueUiNestedDonuts",
137
- type: "datasetSerieAttribute",
138
- property: "name",
139
- index: o,
140
- key: "serie"
141
- }), [null, void 0].includes(a.values) && U({
142
- componentName: "VueUiNestedDonuts",
143
- type: "datasetSerieAttribute",
144
- property: "values",
145
- index: o,
146
- key: "serie"
147
- });
148
- });
149
- }), O.dataset.map((t, s) => ({
150
- ...t,
151
- total: t.series.filter((a) => !p.value.includes(a.id)).map((a) => Be(a.values).reduce((o, l) => o + l, 0)).reduce((a, o) => a + o, 0),
152
- datasetIndex: s,
153
- id: `${$.value}_${s}`,
154
- series: t.series.map((a, o) => ({
155
- name: a.name,
156
- arcOf: t.name,
157
- arcOfId: `${$.value}_${s}`,
158
- id: `${$.value}_${s}_${o}`,
159
- seriesIndex: o,
160
- datasetIndex: s,
161
- color: yt(a.color) || je.value[o] || Z[o] || Z[o % Z.length],
162
- value: Be(a.values).reduce((l, d) => l + d, 0),
163
- absoluteValues: a.values || []
164
- }))
165
- })))), T = b(() => Math.min(c.value.height, c.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), Fe = b(() => [..._.value].map((t, s) => {
166
- const a = t.series.filter((o) => !p.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
167
- return {
168
- ...t,
169
- total: a,
170
- series: t.series.filter((o) => !p.value.includes(o.id)).map((o) => ({
171
- ...o,
172
- proportion: o.value / a
173
- }))
174
- };
175
- }));
176
- function tt(t, s, a) {
177
- let o = 0;
178
- for (let l = 0; l < t.length; l += 1)
179
- a.includes(t[l]) && (o += 1);
180
- return o < s;
181
- }
182
- const h = i(Fe.value);
183
- Ue(() => Fe.value, (t) => h.value = t);
184
- const Ne = i(null), Se = i(null);
185
- function ae(t) {
186
- Te("selectLegend", t);
187
- const s = _.value.flatMap((v) => v.series).find((v) => v.id === t.id), a = h.value.flatMap((v) => v.series).find((v) => v.id === t.id);
188
- let l = a ? a.value : 0;
189
- const d = _.value.find((v) => v.id === s.arcOfId).series.map((v) => v.id), w = tt(d, d.length - 1, p.value);
190
- if (p.value.includes(t.id)) {
191
- let v = function() {
192
- l > s.value ? (cancelAnimationFrame(Ne.value), h.value = h.value.map((L) => ({
193
- ...L,
194
- series: L.series.map((N) => N.id == t.id ? {
195
- ...N,
196
- value: s.value
197
- } : N)
198
- }))) : (l += s.value * 0.025, h.value = h.value.map((L) => ({
199
- ...L,
200
- series: L.series.map((N) => N.id === t.id ? {
201
- ...N,
202
- value: l
203
- } : N)
204
- })), Ne.value = requestAnimationFrame(v));
205
- };
206
- p.value = p.value.filter((L) => L !== t.id), v();
207
- } else if (w) {
208
- let v = function() {
209
- l < 0.1 ? (cancelAnimationFrame(Se.value), p.value.push(t.id), h.value = h.value.map((L, N) => ({
210
- ...L,
211
- series: L.series.map((A) => A.id === t.id ? {
212
- ...A,
213
- value: 0
214
- } : A)
215
- }))) : (l /= 1.1, h.value = h.value.map((L, N) => ({
216
- ...L,
217
- series: L.series.map((A) => A.id === t.id ? {
218
- ...A,
219
- value: l
220
- } : A)
221
- })), Se.value = requestAnimationFrame(v));
222
- };
223
- v();
224
- }
225
- }
226
- const oe = b(() => T.value / _.value.length * e.value.style.chart.layout.donut.spacingRatio), Oe = b(() => h.value.map((t, s) => T.value - s * T.value / _.value.length)), X = b(() => h.value.map((t, s) => {
227
- const a = s * T.value / _.value.length;
228
- return {
229
- ...t,
230
- radius: T.value - a,
231
- donut: Ee(
232
- { series: t.series },
233
- c.value.width / 2,
234
- c.value.height / 2,
235
- T.value - a,
236
- T.value - a,
237
- 1.99999,
238
- 2,
239
- 1,
240
- 360,
241
- 105.25,
242
- oe.value
243
- )
244
- };
245
- })), Ie = b(() => [..._.value].map((t, s) => {
246
- const a = s * T.value / _.value.length;
247
- return {
248
- sizeRatio: a,
249
- donut: Ee(
250
- { series: [{ value: 1 }] },
251
- c.value.width / 2,
252
- c.value.height / 2,
253
- T.value - a,
254
- T.value - a,
255
- 1.99999,
256
- 2,
257
- 1,
258
- 360,
259
- 105.25,
260
- T.value / _.value.length * e.value.style.chart.layout.donut.spacingRatio
261
- )[0]
262
- };
263
- })), Ae = i(null), H = i(null), W = i(null), se = i(null);
264
- function lt({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
265
- Ae.value = t.arcOfId, H.value = t.id, W.value = a, se.value = {
266
- datapoint: t,
267
- seriesIndex: a,
268
- series: h.value,
269
- config: e.value
270
- };
271
- const o = e.value.style.chart.tooltip.customFormat;
272
- if (Ye(o) && kt(() => o({
273
- seriesIndex: a,
274
- datapoint: t,
275
- series: h.value,
276
- config: e.value
277
- })))
278
- ee.value = o({
279
- seriesIndex: a,
280
- datapoint: t,
281
- series: h.value,
282
- config: e.value
283
- });
284
- else {
285
- let l = "";
286
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && p.value.length === 0) {
287
- const d = h.value.map((w) => w.series.find((v) => v.seriesIndex === a));
288
- d.forEach((w, v) => {
289
- if (!w) return "";
290
- l += `
291
- <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${v < d.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
292
- <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
293
- <svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
294
- <circle cx="10" cy="10" r="10" fill="${w.color}"/>
295
- </svg>
296
- <span>
297
- ${w.arcOf ?? ""} - ${w.name}
298
- </span>
299
- </div>
300
- <span>
301
- ${e.value.style.chart.tooltip.showValue ? `<b>${E(
302
- e.value.style.chart.layout.labels.dataLabels.formatter,
303
- t.value,
304
- x({
305
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
306
- v: t.value,
307
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
308
- r: e.value.style.chart.tooltip.roundingValue
309
- }),
310
- { datapoint: t, seriesIndex: a }
311
- )}
312
- </b>` : ""}
313
- ${e.value.style.chart.tooltip.showPercentage ? `(${x({
314
- v: w.proportion * 100,
315
- s: "%",
316
- r: e.value.style.chart.tooltip.roundingPercentage
317
- })})` : ""}
318
- </span>
319
- </div>
320
- `;
321
- });
322
- } else
323
- l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${E(
324
- e.value.style.chart.layout.labels.dataLabels.formatter,
325
- t.value,
326
- x({
327
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
328
- v: t.value,
329
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
330
- r: e.value.style.chart.tooltip.roundingValue
331
- }),
332
- { datapoint: t, seriesIndex: a }
333
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${x({
334
- v: t.proportion * 100,
335
- s: "%",
336
- r: e.value.style.chart.tooltip.roundingPercentage
337
- })})</span></div>` : l += `<b>${x({
338
- v: t.proportion * 100,
339
- s: "%",
340
- r: e.value.style.chart.tooltip.roundingPercentage
341
- })}</b></div>`);
342
- ee.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${l}</div>`;
343
- }
344
- j.value = !0;
345
- }
346
- function ue(t) {
347
- return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
348
- }
349
- function De(t, s) {
350
- if (!e.value.useBlurOnHover)
351
- return "";
352
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && p.value.length === 0)
353
- return [null, void 0].includes(W.value) || W.value === s ? "" : `url(#blur_${$.value})`;
354
- if (!e.value.style.chart.tooltip.showAllItemsAtIndex || p.value.length)
355
- return [null, void 0].includes(H.value) || H.value === t.id ? "" : `url(#blur_${$.value})`;
356
- }
357
- const ne = b(() => _.value.map((t, s) => t.series.map((a, o) => ({
358
- name: a.name,
359
- color: a.color,
360
- value: a.value,
361
- shape: "circle",
362
- arcOf: a.arcOf,
363
- id: a.id,
364
- seriesIndex: o,
365
- datasetIndex: s,
366
- total: t.series.filter((l) => !p.value.includes(l.id)).map((l) => l.value).reduce((l, d) => l + d, 0)
367
- })).map((a) => ({
368
- ...a,
369
- opacity: p.value.includes(a.id) ? 0.5 : 1,
370
- segregate: () => ae(a),
371
- isSegregated: p.value.includes(a.id)
372
- })))), at = b(() => ({
373
- cy: "nested-donuts-legend",
374
- backgroundColor: e.value.style.chart.legend.backgroundColor,
375
- color: e.value.style.chart.legend.color,
376
- fontSize: e.value.style.chart.legend.fontSize,
377
- paddingBottom: 12,
378
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
379
- })), I = b(() => {
380
- const t = h.value.flatMap((a) => a.series.map((o) => ({
381
- name: `${a.name} - ${o.name}`,
382
- color: o.color,
383
- total: a.total
384
- }))), s = h.value.flatMap((a) => a.series.map((o) => o.value));
385
- return { head: t, body: s };
386
- });
387
- function ze() {
388
- rt(() => {
389
- const t = I.value.head.map((o, l) => [[
390
- o.name
391
- ], [I.value.body[l]], [isNaN(I.value.body[l] / o.total) ? "-" : I.value.body[l] / o.total * 100]]), s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), a = gt(s);
392
- mt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-nested-donuts" });
393
- });
394
- }
395
- const q = b(() => {
396
- const t = [
397
- e.value.table.columnNames.series,
398
- e.value.table.columnNames.value,
399
- e.value.table.columnNames.percentage
400
- ], s = I.value.head.map((l, d) => {
401
- const w = x({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: I.value.body[d], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
402
- return [
403
- {
404
- color: l.color,
405
- name: l.name
406
- },
407
- w,
408
- isNaN(I.value.body[d] / l.total) ? "-" : x({
409
- v: I.value.body[d] / l.total * 100,
410
- s: "%",
411
- r: e.value.table.td.roundingPercentage
412
- })
413
- ];
414
- }), a = {
415
- th: {
416
- backgroundColor: e.value.table.th.backgroundColor,
417
- color: e.value.table.th.color,
418
- outline: e.value.table.th.outline
419
- },
420
- td: {
421
- backgroundColor: e.value.table.td.backgroundColor,
422
- color: e.value.table.td.color,
423
- outline: e.value.table.td.outline
424
- },
425
- breakpoint: e.value.table.responsiveBreakpoint
426
- };
427
- return {
428
- colNames: [
429
- e.value.table.columnNames.series,
430
- e.value.table.columnNames.value,
431
- e.value.table.columnNames.percentage
432
- ],
433
- head: t,
434
- body: s,
435
- config: a
436
- };
437
- });
438
- function ot() {
439
- return _.value;
440
- }
441
- function Pe() {
442
- y.value.showTable = !y.value.showTable;
443
- }
444
- function Ve() {
445
- y.value.dataLabels.show = !y.value.dataLabels.show;
446
- }
447
- function Me() {
448
- y.value.showTooltip = !y.value.showTooltip;
449
- }
450
- const J = i(!1);
451
- function re() {
452
- J.value = !J.value;
453
- }
454
- return We({
455
- getData: ot,
456
- generatePdf: xe,
457
- generateCsv: ze,
458
- generateImage: _e,
459
- toggleTable: Pe,
460
- toggleLabels: Ve,
461
- toggleTooltip: Me,
462
- toggleAnnotator: re
463
- }), (t, s) => (u(), n("div", {
464
- ref_key: "nestedDonutsChart",
465
- ref: B,
466
- class: D(`vue-ui-nested-donuts ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
467
- style: K(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
468
- id: `nested_donuts_${$.value}`,
469
- onMouseenter: s[3] || (s[3] = () => r(be)(!0)),
470
- onMouseleave: s[4] || (s[4] = () => r(be)(!1))
471
- }, [
472
- e.value.userOptions.buttons.annotator ? (u(), z(It, {
473
- key: 0,
474
- svgRef: r(me),
475
- backgroundColor: e.value.style.chart.backgroundColor,
476
- color: e.value.style.chart.color,
477
- active: J.value,
478
- onClose: re
479
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
480
- Ze.value ? (u(), n("div", {
481
- key: 1,
482
- ref_key: "noTitle",
483
- ref: fe,
484
- class: "vue-data-ui-no-title-space",
485
- style: "height:36px; width: 100%;background:transparent"
486
- }, null, 512)) : f("", !0),
487
- e.value.style.chart.title.text ? (u(), n("div", {
488
- key: 2,
489
- ref_key: "chartTitle",
490
- ref: ve
491
- }, [
492
- (u(), z(Lt, {
493
- key: `title_${he.value}`,
494
- config: {
495
- title: {
496
- cy: "donut-div-title",
497
- ...e.value.style.chart.title
498
- },
499
- subtitle: {
500
- cy: "donut-div-subtitle",
501
- ...e.value.style.chart.title.subtitle
502
- }
503
- }
504
- }, null, 8, ["config"]))
505
- ], 512)) : f("", !0),
506
- e.value.userOptions.show && G.value && (r(ge) || r(le)) ? (u(), z(xt, {
507
- ref: "details",
508
- key: `user_option_${de.value}`,
509
- backgroundColor: e.value.style.chart.backgroundColor,
510
- color: e.value.style.chart.color,
511
- isPrinting: r(Le),
512
- isImaging: r(Ce),
513
- uid: $.value,
514
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
515
- hasPdf: e.value.userOptions.buttons.pdf,
516
- hasXls: e.value.userOptions.buttons.csv,
517
- hasImg: e.value.userOptions.buttons.img,
518
- hasTable: e.value.userOptions.buttons.table,
519
- hasLabel: e.value.userOptions.buttons.labels,
520
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
521
- isFullscreen: P.value,
522
- isTooltip: y.value.showTooltip,
523
- titles: { ...e.value.userOptions.buttonTitles },
524
- chartElement: B.value,
525
- position: e.value.userOptions.position,
526
- hasAnnotator: e.value.userOptions.buttons.annotator,
527
- isAnnotation: J.value,
528
- onToggleFullscreen: Qe,
529
- onGeneratePdf: r(xe),
530
- onGenerateCsv: ze,
531
- onGenerateImage: r(_e),
532
- onToggleTable: Pe,
533
- onToggleLabels: Ve,
534
- onToggleTooltip: Me,
535
- onToggleAnnotator: re,
536
- style: K({
537
- visibility: r(ge) ? r(le) ? "visible" : "hidden" : "visible"
538
- })
539
- }, nt({ _: 2 }, [
540
- t.$slots.menuIcon ? {
541
- name: "menuIcon",
542
- fn: g(({ isOpen: a, color: o }) => [
543
- m(t.$slots, "menuIcon", V(M({ isOpen: a, color: o })), void 0, !0)
544
- ]),
545
- key: "0"
546
- } : void 0,
547
- t.$slots.optionTooltip ? {
548
- name: "optionTooltip",
549
- fn: g(() => [
550
- m(t.$slots, "optionTooltip", {}, void 0, !0)
551
- ]),
552
- key: "1"
553
- } : void 0,
554
- t.$slots.optionPdf ? {
555
- name: "optionPdf",
556
- fn: g(() => [
557
- m(t.$slots, "optionPdf", {}, void 0, !0)
558
- ]),
559
- key: "2"
560
- } : void 0,
561
- t.$slots.optionCsv ? {
562
- name: "optionCsv",
563
- fn: g(() => [
564
- m(t.$slots, "optionCsv", {}, void 0, !0)
565
- ]),
566
- key: "3"
567
- } : void 0,
568
- t.$slots.optionImg ? {
569
- name: "optionImg",
570
- fn: g(() => [
571
- m(t.$slots, "optionImg", {}, void 0, !0)
572
- ]),
573
- key: "4"
574
- } : void 0,
575
- t.$slots.optionTable ? {
576
- name: "optionTable",
577
- fn: g(() => [
578
- m(t.$slots, "optionTable", {}, void 0, !0)
579
- ]),
580
- key: "5"
581
- } : void 0,
582
- t.$slots.optionLabels ? {
583
- name: "optionLabels",
584
- fn: g(() => [
585
- m(t.$slots, "optionLabels", {}, void 0, !0)
586
- ]),
587
- key: "6"
588
- } : void 0,
589
- t.$slots.optionFullscreen ? {
590
- name: "optionFullscreen",
591
- fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
592
- m(t.$slots, "optionFullscreen", V(M({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
593
- ]),
594
- key: "7"
595
- } : void 0,
596
- t.$slots.optionAnnotator ? {
597
- name: "optionAnnotator",
598
- fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
599
- m(t.$slots, "optionAnnotator", V(M({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
600
- ]),
601
- key: "8"
602
- } : void 0
603
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
604
- G.value ? (u(), n("svg", {
605
- key: 4,
606
- ref_key: "svgRef",
607
- ref: me,
608
- xmlns: r(pt),
609
- class: D({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
610
- viewBox: `0 0 ${c.value.width <= 0 ? 1e-3 : c.value.width} ${c.value.height < 0 ? 1e-3 : c.value.height}`,
611
- style: K(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${we.value.css}`)
612
- }, [
613
- Re(Ot),
614
- t.$slots["chart-background"] ? (u(), n("foreignObject", {
615
- key: 0,
616
- x: 0,
617
- y: 0,
618
- width: c.value.width <= 0 ? 1e-3 : c.value.width,
619
- height: c.value.height < 0 ? 1e-3 : c.value.height,
620
- style: {
621
- pointerEvents: "none"
622
- }
623
- }, [
624
- m(t.$slots, "chart-background", {}, void 0, !0)
625
- ], 8, Mt)) : f("", !0),
626
- k("defs", null, [
627
- (u(!0), n(C, null, F(Ie.value, (a, o) => (u(), n("radialGradient", {
628
- id: `radial_${$.value}_${o}`
629
- }, [
630
- s[5] || (s[5] = k("stop", {
631
- offset: "0%",
632
- "stop-color": "#FFFFFF",
633
- "stop-opacity": "0"
634
- }, null, -1)),
635
- k("stop", {
636
- offset: `${(1 - oe.value / Oe.value[o]) * 100}%`,
637
- "stop-color": r(Ge)("#FFFFFF", 0),
638
- "stop-opacity": "0"
639
- }, null, 8, Rt),
640
- k("stop", {
641
- offset: `${(1 - oe.value / Oe.value[o] / 2) * 100}%`,
642
- "stop-color": "#FFFFFF",
643
- "stop-opacity": e.value.style.chart.gradientIntensity / 100
644
- }, null, 8, Bt),
645
- s[6] || (s[6] = k("stop", {
646
- offset: "100%",
647
- "stop-color": "#FFFFFF",
648
- "stop-opacity": "0"
649
- }, null, -1))
650
- ], 8, Ut))), 256))
651
- ]),
652
- k("defs", null, [
653
- k("filter", {
654
- id: `blur_${$.value}`,
655
- x: "-50%",
656
- y: "-50%",
657
- width: "200%",
658
- height: "200%"
659
- }, [
660
- k("feGaussianBlur", {
661
- in: "SourceGraphic",
662
- stdDeviation: 2,
663
- id: `blur_std_${$.value}`
664
- }, null, 8, Gt),
665
- s[7] || (s[7] = k("feColorMatrix", {
666
- type: "saturate",
667
- values: "0"
668
- }, null, -1))
669
- ], 8, Et),
670
- k("filter", {
671
- id: `shadow_${$.value}`,
672
- "color-interpolation-filters": "sRGB"
673
- }, [
674
- k("feDropShadow", {
675
- dx: "0",
676
- dy: "0",
677
- stdDeviation: "10",
678
- "flood-opacity": "0.5",
679
- "flood-color": e.value.style.chart.layout.donut.shadowColor
680
- }, null, 8, Xt)
681
- ], 8, Yt)
682
- ]),
683
- (u(!0), n(C, null, F(X.value, (a, o) => (u(), n("g", null, [
684
- (u(!0), n(C, null, F(a.donut, (l, d) => (u(), n("g", null, [
685
- k("path", {
686
- class: "vue-ui-donut-arc-path",
687
- d: l.arcSlice,
688
- fill: r(Ge)(l.color, 80),
689
- stroke: e.value.style.chart.backgroundColor,
690
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
691
- filter: De(l, d)
692
- }, null, 8, Ht)
693
- ]))), 256))
694
- ]))), 256)),
695
- e.value.style.chart.useGradient ? (u(), n("g", Wt, [
696
- (u(!0), n(C, null, F(Ie.value, (a, o) => (u(), n("g", null, [
697
- k("path", {
698
- d: a.donut.arcSlice,
699
- fill: `url(#radial_${$.value}_${o})`,
700
- stroke: "transparent",
701
- "stroke-width": "0"
702
- }, null, 8, qt)
703
- ]))), 256))
704
- ])) : f("", !0),
705
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), n("g", Jt, [
706
- (u(!0), n(C, null, F(X.value, (a, o) => (u(), n("g", null, [
707
- (u(!0), n(C, null, F(a.donut, (l, d) => (u(), n("g", null, [
708
- d === 0 && c.value.width && c.value.height ? (u(), n("text", {
709
- key: 0,
710
- class: D({ animated: e.value.useCssAnimation }),
711
- x: c.value.width / 2,
712
- y: l.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
713
- "text-anchor": "middle",
714
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
715
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
716
- fill: e.value.style.chart.layout.labels.dataLabels.color
717
- }, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(bt)({ source: a.name, length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize }) : a.name), 11, Kt)) : f("", !0)
718
- ]))), 256))
719
- ]))), 256))
720
- ])) : f("", !0),
721
- e.value.style.chart.layout.labels.dataLabels.show ? (u(), n("g", Qt, [
722
- (u(!0), n(C, null, F(X.value, (a, o) => (u(), n("g", null, [
723
- (u(!0), n(C, null, F(a.donut, (l, d) => (u(), n("g", {
724
- filter: De(l, d)
725
- }, [
726
- ue(l) && y.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage ? (u(), n("text", {
727
- key: 0,
728
- class: D({ animated: e.value.useCssAnimation }),
729
- "text-anchor": r(R)(l, !0).anchor,
730
- x: r(R)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
731
- y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
732
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
733
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
734
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
735
- }, S(r(x)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11, jt)) : f("", !0),
736
- ue(l) && y.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
737
- key: 1,
738
- class: D({ animated: e.value.useCssAnimation }),
739
- "text-anchor": r(R)(l, !0).anchor,
740
- x: r(R)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
741
- y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY) + e.value.style.chart.layout.labels.dataLabels.fontSize,
742
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
743
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
744
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
745
- }, " (" + S(r(E)(
746
- e.value.style.chart.layout.labels.dataLabels.formatter,
747
- l.value,
748
- r(x)({
749
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
750
- v: l.value,
751
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
752
- r: e.value.style.chart.layout.labels.dataLabels.roundingValue
753
- }),
754
- { datapoint: l, seriesIndex: o, datapointIndex: d }
755
- )) + ") ", 11, el)) : f("", !0),
756
- ue(l) && y.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
757
- key: 2,
758
- class: D({ animated: e.value.useCssAnimation }),
759
- "text-anchor": r(R)(l, !0).anchor,
760
- x: r(R)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
761
- y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
762
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
763
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
764
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
765
- }, S(r(E)(
766
- e.value.style.chart.layout.labels.dataLabels.formatter,
767
- l.value,
768
- r(x)({
769
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
770
- v: l.value,
771
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
772
- r: e.value.style.chart.layout.labels.dataLabels.roundingValue
773
- }),
774
- { datapoint: l, seriesIndex: o, datapointIndex: d }
775
- )), 11, tl)) : f("", !0)
776
- ], 8, Zt))), 256))
777
- ]))), 256))
778
- ])) : f("", !0),
779
- (u(!0), n(C, null, F(X.value, (a, o) => (u(), n("g", null, [
780
- (u(!0), n(C, null, F(a.donut, (l, d) => (u(), n("g", null, [
781
- k("path", {
782
- d: l.arcSlice,
783
- fill: Ke.value === o ? "rgba(0,0,0,0.1)" : "transparent",
784
- onMouseenter: (w) => lt({
785
- datapoint: l,
786
- seriesIndex: l.seriesIndex
787
- }),
788
- onClick: (w) => et({ datapoint: l, index: d }),
789
- onMouseleave: s[0] || (s[0] = (w) => {
790
- j.value = !1, Ae.value = null, H.value = null, W.value = null;
791
- })
792
- }, null, 40, ll)
793
- ]))), 256))
794
- ]))), 256)),
795
- m(t.$slots, "svg", { svg: c.value }, void 0, !0)
796
- ], 14, Vt)) : f("", !0),
797
- t.$slots.watermark ? (u(), n("div", al, [
798
- m(t.$slots, "watermark", V(M({ isPrinting: r(Le) || r(Ce) })), void 0, !0)
799
- ])) : f("", !0),
800
- G.value ? f("", !0) : (u(), z(Nt, {
801
- key: 6,
802
- config: {
803
- type: "donut",
804
- style: {
805
- backgroundColor: e.value.style.chart.backgroundColor,
806
- donut: {
807
- color: "#CCCCCC"
808
- }
809
- }
810
- }
811
- }, null, 8, ["config"])),
812
- Re(Tt, {
813
- show: y.value.showTooltip && j.value,
814
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
815
- color: e.value.style.chart.tooltip.color,
816
- borderRadius: e.value.style.chart.tooltip.borderRadius,
817
- borderColor: e.value.style.chart.tooltip.borderColor,
818
- borderWidth: e.value.style.chart.tooltip.borderWidth,
819
- fontSize: e.value.style.chart.tooltip.fontSize,
820
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
821
- position: e.value.style.chart.tooltip.position,
822
- offsetY: e.value.style.chart.tooltip.offsetY,
823
- parent: B.value,
824
- content: ee.value,
825
- isFullscreen: P.value,
826
- isCustom: r(Ye)(e.value.style.chart.tooltip.customFormat)
827
- }, {
828
- "tooltip-before": g(() => [
829
- m(t.$slots, "tooltip-before", V(M({ ...se.value })), void 0, !0)
830
- ]),
831
- "tooltip-after": g(() => [
832
- m(t.$slots, "tooltip-after", V(M({ ...se.value })), void 0, !0)
833
- ]),
834
- _: 3
835
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
836
- e.value.style.chart.legend.show ? (u(), n("div", {
837
- key: 7,
838
- ref_key: "chartLegend",
839
- ref: te,
840
- class: D({ "vue-ui-nested-donuts-legend": ne.value.length > 1 })
841
- }, [
842
- (u(!0), n(C, null, F(ne.value, (a, o) => (u(), z(Ft, {
843
- key: `legend_${o}_${pe.value}`,
844
- legendSet: a,
845
- config: at.value,
846
- onClickMarker: s[1] || (s[1] = ({ legend: l }) => ae(l))
847
- }, {
848
- legendTitle: g(({ titleSet: l }) => [
849
- l[0] && l[0].arcOf ? (u(), n("div", ol, S(l[0].arcOf), 1)) : f("", !0)
850
- ]),
851
- item: g(({ legend: l, index: d }) => [
852
- k("div", {
853
- onClick: (w) => ae(l),
854
- style: K(`opacity:${p.value.includes(l.id) ? 0.5 : 1}`)
855
- }, [
856
- Q(S(l.name) + ": " + S(r(E)(
857
- e.value.style.chart.layout.labels.dataLabels.formatter,
858
- l.value,
859
- r(x)({
860
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
861
- v: l.value,
862
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
863
- r: e.value.style.chart.legend.roundingValue
864
- }),
865
- { datapoint: l, seriesIndex: d }
866
- )) + " ", 1),
867
- p.value.includes(l.id) ? (u(), n(C, { key: 1 }, [
868
- Q(" ( - % ) ")
869
- ], 64)) : (u(), n(C, { key: 0 }, [
870
- Q(" (" + S(isNaN(l.value / l.total) ? "-" : r(x)({ v: l.value / l.total * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })) + ") ", 1)
871
- ], 64))
872
- ], 12, sl)
873
- ]),
874
- _: 2
875
- }, 1032, ["legendSet", "config"]))), 128))
876
- ], 2)) : f("", !0),
877
- e.value.style.chart.legend.show ? f("", !0) : (u(), n("div", {
878
- key: 8,
879
- ref_key: "chartLegend",
880
- ref: te
881
- }, [
882
- m(t.$slots, "legend", { legend: ne.value }, void 0, !0)
883
- ], 512)),
884
- t.$slots.source ? (u(), n("div", {
885
- key: 9,
886
- ref_key: "source",
887
- ref: ce,
888
- dir: "auto"
889
- }, [
890
- m(t.$slots, "source", {}, void 0, !0)
891
- ], 512)) : f("", !0),
892
- G.value ? (u(), z(St, {
893
- key: 10,
894
- hideDetails: "",
895
- config: {
896
- open: y.value.showTable,
897
- maxHeight: 1e4,
898
- body: {
899
- backgroundColor: e.value.style.chart.backgroundColor,
900
- color: e.value.style.chart.color
901
- },
902
- head: {
903
- backgroundColor: e.value.style.chart.backgroundColor,
904
- color: e.value.style.chart.color
905
- }
906
- }
907
- }, {
908
- content: g(() => [
909
- (u(), z(_t, {
910
- key: `table_${ye.value}`,
911
- colNames: q.value.colNames,
912
- head: q.value.head,
913
- body: q.value.body,
914
- config: q.value.config,
915
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
916
- onClose: s[2] || (s[2] = (a) => y.value.showTable = !1)
917
- }, {
918
- th: g(({ th: a }) => [
919
- k("div", {
920
- innerHTML: a,
921
- style: { display: "flex", "align-items": "center" }
922
- }, null, 8, ul)
923
- ]),
924
- td: g(({ td: a }) => [
925
- Q(S(a.name || a), 1)
926
- ]),
927
- _: 1
928
- }, 8, ["colNames", "head", "body", "config", "title"]))
929
- ]),
930
- _: 1
931
- }, 8, ["config"])) : f("", !0)
932
- ], 46, Pt));
933
- }
934
- }, Cl = /* @__PURE__ */ zt(nl, [["__scopeId", "data-v-23284122"]]);
935
- export {
936
- Cl as default
937
- };