vue-data-ui 2.4.64 → 2.4.65

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 (164) hide show
  1. package/README.md +66 -34
  2. package/dist/{Arrow-DSkIkWAr.cjs → Arrow-BKPURRQ6.cjs} +1 -1
  3. package/dist/{Arrow-CRM8J83L.js → Arrow-C7ihyW4O.js} +1 -1
  4. package/dist/{BaseIcon-D13bKBUN.cjs → BaseIcon-CyTdOpDr.cjs} +1 -1
  5. package/dist/{BaseIcon-Axko0XAg.js → BaseIcon-DpaRUsHC.js} +1 -1
  6. package/dist/{DataTable-DnrSae6c.cjs → DataTable-CwzQ-L0W.cjs} +1 -1
  7. package/dist/{DataTable-B2hVpPSW.js → DataTable-DX_jYNWG.js} +2 -2
  8. package/dist/Legend-BMTBtkoQ.cjs +1 -0
  9. package/dist/Legend-DGUxLqhs.js +70 -0
  10. package/dist/{PackageVersion-B684aQUP.js → PackageVersion-B9_Ed72C.js} +1 -1
  11. package/dist/{PackageVersion-FzHnQSp-.cjs → PackageVersion-D_9QTWVm.cjs} +1 -1
  12. package/dist/{PenAndPaper-C6I0ckZw.cjs → PenAndPaper-CfGYucSm.cjs} +1 -1
  13. package/dist/{PenAndPaper-mC0kh-S8.js → PenAndPaper-CzjoEhsO.js} +3 -3
  14. package/dist/{Shape-eJUVLesM.cjs → Shape-CZB2KQ0L.cjs} +1 -1
  15. package/dist/{Shape-DbnYh6z4.js → Shape-aXd72O71.js} +1 -1
  16. package/dist/{Slicer-C9bF7-B-.cjs → Slicer-ChxjRhai.cjs} +1 -1
  17. package/dist/{Slicer-BBolqweG.js → Slicer-CopZgIzh.js} +2 -2
  18. package/dist/{Title-DuMgnso9.cjs → Title-BnRtxxP4.cjs} +1 -1
  19. package/dist/{Title-DqZErnpZ.js → Title-DyUTj8GI.js} +1 -1
  20. package/dist/{Tooltip-DddRc8qD.js → Tooltip-B-0uEV3l.js} +1 -1
  21. package/dist/{Tooltip-Cz3eQmMV.cjs → Tooltip-CUoQNXZK.cjs} +1 -1
  22. package/dist/documentation/installation.md +34 -34
  23. package/dist/{index-DjTPIx3R.js → index-BVNcFEqn.js} +398 -393
  24. package/dist/{index-D-xYtUSL.cjs → index-CKgv8c-A.cjs} +5 -5
  25. package/dist/style.css +1 -1
  26. package/dist/{useNestedProp-BN-VfUfj.cjs → useNestedProp-0Mn5Z6Ae.cjs} +1 -1
  27. package/dist/{useNestedProp-BNmCbG1v.js → useNestedProp-D79dWdel.js} +1 -1
  28. package/dist/{usePrinter-BFF1xn1s.js → usePrinter-Bcfs_I6G.js} +1 -1
  29. package/dist/{usePrinter-pT-a_sFr.cjs → usePrinter-Gkda9yEJ.cjs} +1 -1
  30. package/dist/{vue-data-ui-CPMtS74M.js → vue-data-ui-CXxR_hXg.js} +60 -60
  31. package/dist/{vue-data-ui-rWaUsffe.cjs → vue-data-ui-DAwVdbN1.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +9 -9
  34. package/dist/{vue-ui-3d-bar-CxcO1rW_.cjs → vue-ui-3d-bar-baVCskbW.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-Cpx0rTUr.js → vue-ui-3d-bar-mxTzin_H.js} +9 -9
  36. package/dist/{vue-ui-accordion-CDTXGeL0.js → vue-ui-accordion-GNblUy42.js} +3 -3
  37. package/dist/{vue-ui-accordion-B1MkyNta.cjs → vue-ui-accordion-xV0it5je.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-CSwlc2bd.js → vue-ui-age-pyramid-DFBuvQgd.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-CEvYSZnY.cjs → vue-ui-age-pyramid-ULh6qSJs.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-BUoz1Y87.cjs → vue-ui-annotator-C89rtAuX.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-D5dS0BTP.js → vue-ui-annotator-XbCqxBQ0.js} +1 -1
  42. package/dist/{vue-ui-bullet-RDyK79l0.js → vue-ui-bullet-D_CS85II.js} +8 -8
  43. package/dist/{vue-ui-bullet-Bcx-V2GQ.cjs → vue-ui-bullet-DxRqDaiw.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-s-Z42Lns.js → vue-ui-candlestick-C8mUQTPF.js} +11 -11
  45. package/dist/{vue-ui-candlestick-CkjNRVDz.cjs → vue-ui-candlestick-CZxpFMKR.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-DJNIAgAU.js → vue-ui-carousel-table-D5iLQe38.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-CoLBbF34.cjs → vue-ui-carousel-table-DKcc-jNW.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-P1hAffNt.cjs → vue-ui-chestnut-BFV6pTfc.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-_90914ye.js → vue-ui-chestnut-BqGCLMiu.js} +8 -8
  50. package/dist/{vue-ui-cursor-BoGnTfem.cjs → vue-ui-cursor-BJjzKpLm.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-Doo6HM0B.js → vue-ui-cursor-BysQ-bDH.js} +2 -2
  52. package/dist/{vue-ui-dashboard-mC_BLuIN.cjs → vue-ui-dashboard-C0L_0gyc.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-BZKKb8cZ.js → vue-ui-dashboard-zrJGrAmc.js} +2 -2
  54. package/dist/{vue-ui-digits-Z8AprQhX.js → vue-ui-digits-B5P9UheE.js} +2 -2
  55. package/dist/{vue-ui-digits-DFwg7Et3.cjs → vue-ui-digits-BG_xts2G.cjs} +1 -1
  56. package/dist/vue-ui-donut-7tNjrx1E.js +1173 -0
  57. package/dist/vue-ui-donut-B9M9CW9D.cjs +1 -0
  58. package/dist/{vue-ui-donut-evolution-CK_0JI6T.js → vue-ui-donut-evolution-C7FpJ59u.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-D-6gM9JV.cjs → vue-ui-donut-evolution-CEvGFdxK.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-C4y9e7Gz.js → vue-ui-dumbbell-CdxHbLz6.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-DS_3Z5cT.cjs → vue-ui-dumbbell-DP27C8NG.cjs} +1 -1
  62. package/dist/{vue-ui-flow-XrJvcKqr.js → vue-ui-flow-cKQSDKfP.js} +9 -9
  63. package/dist/{vue-ui-flow-C2sVVaok.cjs → vue-ui-flow-yW5Pa_MJ.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-DxhsOEbU.cjs → vue-ui-funnel-73aPtRj5.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-CHhVPjnM.js → vue-ui-funnel-qPYVhQpD.js} +9 -9
  66. package/dist/{vue-ui-galaxy-Bd8p21nC.js → vue-ui-galaxy-2SRA_RYP.js} +11 -11
  67. package/dist/{vue-ui-galaxy-CRsan4r5.cjs → vue-ui-galaxy-9E5GUtBD.cjs} +1 -1
  68. package/dist/vue-ui-gauge-CBbvp9DU.cjs +1 -0
  69. package/dist/{vue-ui-gauge-B-nOtSwD.js → vue-ui-gauge-Cpvg4BBS.js} +236 -224
  70. package/dist/{vue-ui-gizmo-tQNlhr2p.js → vue-ui-gizmo-B5v0g_Ly.js} +3 -3
  71. package/dist/{vue-ui-gizmo-C3GRBcSW.cjs → vue-ui-gizmo-BkNuHnnf.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-DwalrFVm.cjs → vue-ui-heatmap-CcUuOqGT.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-6MpvCBmt.js → vue-ui-heatmap-dNeKqLC0.js} +10 -10
  74. package/dist/{vue-ui-history-plot-Hk-UrZtS.js → vue-ui-history-plot-COtfhHw8.js} +11 -11
  75. package/dist/{vue-ui-history-plot-FgapeA0e.cjs → vue-ui-history-plot-p18wqHFY.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-CKZQsJnV.cjs → vue-ui-kpi-DCn50wZ8.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-DrCH9EuP.js → vue-ui-kpi-HyZOfh63.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-BSKXq7CA.cjs → vue-ui-mini-loader-DaPxFP7e.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-BLvcc-fM.js → vue-ui-mini-loader-Dp7zc34Q.js} +2 -2
  80. package/dist/{vue-ui-molecule-Ch4_SJxL.js → vue-ui-molecule-Oim4-hUn.js} +11 -11
  81. package/dist/{vue-ui-molecule-D0IHSilQ.cjs → vue-ui-molecule-zkdP7FYM.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-DNPseOpJ.cjs → vue-ui-mood-radar-CKdM8iDY.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-Gv0k1T46.js → vue-ui-mood-radar-DsSO6gfa.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-DY8Hig_-.js → vue-ui-nested-donuts-B5NPJfg6.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-QOvJJc30.cjs → vue-ui-nested-donuts-DbTXLan2.cjs} +1 -1
  86. package/dist/{vue-ui-onion-Ca0Tcbu3.cjs → vue-ui-onion-0Od2Vodu.cjs} +1 -1
  87. package/dist/{vue-ui-onion-Ct_1j1fA.js → vue-ui-onion-CID0DNSa.js} +11 -11
  88. package/dist/{vue-ui-parallel-coordinate-plot-DkYcNRQk.js → vue-ui-parallel-coordinate-plot-DAfBgYbI.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-C_opo0qJ.cjs → vue-ui-parallel-coordinate-plot-WtcXCTd-.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-DwAKm2Yj.js → vue-ui-quadrant-063Cq0di.js} +12 -12
  91. package/dist/{vue-ui-quadrant-BJuoZ_lv.cjs → vue-ui-quadrant-B6WNmecC.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-5ga8waQS.cjs → vue-ui-quick-chart-CwNFF0R4.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-D5V73GXO.js → vue-ui-quick-chart-DCPwhpbx.js} +9 -9
  94. package/dist/{vue-ui-radar-CmE4wCWD.js → vue-ui-radar-BmY47r3J.js} +12 -12
  95. package/dist/{vue-ui-radar-C3kzmi1G.cjs → vue-ui-radar-DcnVyGrM.cjs} +1 -1
  96. package/dist/{vue-ui-rating-CE7LGiFS.cjs → vue-ui-rating-D_9Fqvd_.cjs} +1 -1
  97. package/dist/{vue-ui-rating-SAph_BKh.js → vue-ui-rating-b2SThMJw.js} +2 -2
  98. package/dist/{vue-ui-relation-circle-D1JdWshk.js → vue-ui-relation-circle-B0Q2FdDW.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-dQQw_mgd.cjs → vue-ui-relation-circle-Cg3QL_aP.cjs} +1 -1
  100. package/dist/vue-ui-rings-BQdgj7bV.cjs +2 -0
  101. package/dist/vue-ui-rings-DlsKpDkQ.js +666 -0
  102. package/dist/{vue-ui-scatter-BrOg2xiN.cjs → vue-ui-scatter-D6Yb6VpP.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-DE4X0DQI.js → vue-ui-scatter-E_WveJ4p.js} +36 -36
  104. package/dist/{vue-ui-screenshot-CyWEEkg_.js → vue-ui-screenshot-CbLsOjZv.js} +1 -1
  105. package/dist/{vue-ui-screenshot-BXq82cfA.cjs → vue-ui-screenshot-DhvqiF7S.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-D3zg7qd2.cjs → vue-ui-skeleton-73YO0ovP.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-Dt9cA-wa.js → vue-ui-skeleton-Bgf16k10.js} +3 -3
  108. package/dist/{vue-ui-smiley-FUNmIUpN.cjs → vue-ui-smiley-D-QDQ3Re.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-uRlPgN-A.js → vue-ui-smiley-ne5pBMum.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-5KFnHsjs.js → vue-ui-spark-trend-BkiRBoVD.js} +13 -13
  111. package/dist/{vue-ui-spark-trend-DYXJMJLz.cjs → vue-ui-spark-trend-Dq1hox65.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-D-Yk9z4E.js → vue-ui-sparkbar--Q2alJoW.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-BUg0DhGI.cjs → vue-ui-sparkbar-DV5CtFQY.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-DVLZofTg.js → vue-ui-sparkgauge-BOcEbdij.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-DvDPPyau.cjs → vue-ui-sparkgauge-BVNkRW_m.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-Dqgl_5RN.js → vue-ui-sparkhistogram-CIJmWjb4.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-GMZxK2oC.cjs → vue-ui-sparkhistogram-CUiNT8vT.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-C96IUWwW.cjs → vue-ui-sparkline-BFlRfhM6.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-CPEHgvq0.js → vue-ui-sparkline-lY0wS6kU.js} +92 -92
  120. package/dist/{vue-ui-sparkstackbar-BroOR6B-.cjs → vue-ui-sparkstackbar-CGeg_k0k.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-DCceVnjJ.js → vue-ui-sparkstackbar-GHM4EY7-.js} +5 -5
  122. package/dist/vue-ui-stackbar-CQur8zP0.cjs +6 -0
  123. package/dist/vue-ui-stackbar-uR3T6rG4.js +1114 -0
  124. package/dist/{vue-ui-strip-plot-BYO72loZ.cjs → vue-ui-strip-plot-CBYrZEIt.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-CJxPAY9n.js → vue-ui-strip-plot-CNFrYVZ6.js} +11 -11
  126. package/dist/{vue-ui-table-BTuCiJb7.cjs → vue-ui-table-BbTwHDCo.cjs} +1 -1
  127. package/dist/{vue-ui-table-DKoRX7gX.js → vue-ui-table-DZV-uDG2.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-4RZ4Bo12.js → vue-ui-table-heatmap-DQBm_9Z3.js} +14 -14
  129. package/dist/{vue-ui-table-heatmap-L3Pg7wC0.cjs → vue-ui-table-heatmap-DSgQpgxG.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-GaHw2cTh.cjs → vue-ui-table-sparkline-AFK2LNsw.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-CVWPCRfz.js → vue-ui-table-sparkline-wWAVQ0es.js} +5 -5
  132. package/dist/{vue-ui-thermometer-VC967j2q.cjs → vue-ui-thermometer-CGFQfRUy.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-BFqURwxY.js → vue-ui-thermometer-DRZWIAFj.js} +7 -7
  134. package/dist/{vue-ui-timer-Bou1Zg22.cjs → vue-ui-timer-C-RRrh5f.cjs} +1 -1
  135. package/dist/{vue-ui-timer-mPQTAvi1.js → vue-ui-timer-D2_1bbpl.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-ClzgPlHg.cjs → vue-ui-tiremarks-CIeid_A2.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-DyEXFKpK.js → vue-ui-tiremarks-CdX2b-Fq.js} +7 -7
  138. package/dist/{vue-ui-treemap-pCrT4KlF.js → vue-ui-treemap-CgzgE20q.js} +11 -11
  139. package/dist/{vue-ui-treemap-DEUSAGw0.cjs → vue-ui-treemap-r8xOrE8F.cjs} +1 -1
  140. package/dist/vue-ui-vertical-bar-BcxAjcoh.cjs +4 -0
  141. package/dist/vue-ui-vertical-bar-v9LvL35a.js +936 -0
  142. package/dist/{vue-ui-waffle-DkHP1plA.js → vue-ui-waffle-0mHE8fud.js} +11 -11
  143. package/dist/{vue-ui-waffle-DjcwBxNh.cjs → vue-ui-waffle-5h_9tS3C.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-L8vxpKcv.js → vue-ui-wheel-BWL-td7-.js} +7 -7
  145. package/dist/{vue-ui-wheel-Y2Sny-6a.cjs → vue-ui-wheel-rL5Shua2.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-B9UJmesc.cjs → vue-ui-word-cloud-2E23n-B8.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-DIBB7HIj.js → vue-ui-word-cloud-OkAF9hSC.js} +10 -10
  148. package/dist/{vue-ui-xy-QmsiPNcv.js → vue-ui-xy-C8E2WzGt.js} +866 -819
  149. package/dist/vue-ui-xy-DbJNxL5O.cjs +3 -0
  150. package/dist/{vue-ui-xy-canvas-CeKH8VIR.js → vue-ui-xy-canvas-C_0c8FlA.js} +31 -31
  151. package/dist/{vue-ui-xy-canvas-2aqG9yv5.cjs → vue-ui-xy-canvas-I7rw1uDf.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/Legend-CzY3Yhr8.js +0 -68
  154. package/dist/Legend-DIfEhYtz.cjs +0 -1
  155. package/dist/vue-ui-donut-C6i_KVvc.js +0 -1122
  156. package/dist/vue-ui-donut-uH8SS5Ms.cjs +0 -1
  157. package/dist/vue-ui-gauge-D0Mk9_aI.cjs +0 -1
  158. package/dist/vue-ui-rings-C-7vrgjN.js +0 -628
  159. package/dist/vue-ui-rings-kFhuaBvY.cjs +0 -2
  160. package/dist/vue-ui-stackbar-Bv7RiRae.cjs +0 -6
  161. package/dist/vue-ui-stackbar-KznnSCkj.js +0 -1061
  162. package/dist/vue-ui-vertical-bar-DxkQK0tN.cjs +0 -4
  163. package/dist/vue-ui-vertical-bar-QF9epdei.js +0 -888
  164. package/dist/vue-ui-xy-DwidR-Vl.cjs +0 -3
@@ -1,1122 +0,0 @@
1
- import { computed as w, ref as d, onMounted as ut, onBeforeUnmount as st, watch as Ue, openBlock as o, createElementBlock as n, normalizeClass as de, normalizeStyle as z, unref as s, createBlock as G, createCommentVNode as i, renderSlot as b, createSlots as nt, withCtx as $, normalizeProps as R, guardReactiveProps as W, createVNode as je, createElementVNode as h, Fragment as k, renderList as X, toDisplayString as x, createTextVNode as He, nextTick as rt, pushScopeId as it, popScopeId as vt } from "vue";
2
- import { u as ct, o as dt, e as Ee, g as ht, c as yt, b as ft, d as Re, p as U, m as pt, H as gt, f as F, X as bt, s as ee, w as mt, j as wt, I as L, i as Y, k as m, n as te, t as kt, a as _t, x as xt, q as Ct, r as $t } from "./index-DjTPIx3R.js";
3
- import { t as Pt, u as St } from "./useResponsive-CoxXLe23.js";
4
- import { _ as Ft } from "./Title-DqZErnpZ.js";
5
- import { u as Lt, U as Tt } from "./usePrinter-BFF1xn1s.js";
6
- import { D as zt } from "./DataTable-B2hVpPSW.js";
7
- import { _ as Ot } from "./Tooltip-DddRc8qD.js";
8
- import { L as Yt } from "./Legend-CzY3Yhr8.js";
9
- import At from "./vue-ui-skeleton-Dt9cA-wa.js";
10
- import Nt from "./vue-ui-accordion-CDTXGeL0.js";
11
- import { u as We } from "./useNestedProp-BNmCbG1v.js";
12
- import { _ as Xt } from "./PackageVersion-B684aQUP.js";
13
- import { P as It } from "./PenAndPaper-mC0kh-S8.js";
14
- import { u as Dt } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Bt = (q) => (it("data-v-7c3807c4"), q = q(), vt(), q), Vt = ["id"], Gt = ["xmlns", "viewBox"], Ut = ["width", "height"], jt = { key: 1 }, Ht = ["id"], Et = ["stop-color"], Rt = ["offset", "stop-color"], Wt = ["offset", "stop-color"], qt = ["stop-color"], Jt = { key: 2 }, Kt = ["id", "cx", "cy"], Qt = ["stop-color", "stop-opacity"], Zt = ["stop-color"], el = ["id"], tl = ["id"], ll = /* @__PURE__ */ Bt(() => /* @__PURE__ */ h("feColorMatrix", {
17
- type: "saturate",
18
- values: "0"
19
- }, null, -1)), al = ["id"], ol = ["flood-color"], ul = ["id"], sl = ["flood-color"], nl = ["d", "stroke", "filter"], rl = ["x1", "y1", "x2", "y2", "stroke", "filter"], il = ["cx", "cy", "r", "fill", "filter"], vl = ["stroke", "d"], cl = ["d", "fill", "stroke", "stroke-width", "filter"], dl = { key: 0 }, hl = ["stroke", "d"], yl = { key: 0 }, fl = ["d", "stroke", "stroke-width", "filter"], pl = ["d", "fill", "stroke", "stroke-width", "filter"], gl = { key: 1 }, bl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ml = ["cx", "cy", "r", "stroke"], wl = ["cx", "cy", "r", "fill"], kl = { key: 0 }, _l = ["d", "fill", "onMouseenter", "onClick"], xl = { key: 1 }, Cl = ["cx", "cy", "r", "fill"], $l = ["x", "y", "fill", "font-size"], Pl = ["x", "y", "fill", "font-size"], Sl = ["x", "y", "fill", "font-size"], Fl = ["x", "y", "fill", "font-size"], Ll = ["filter"], Tl = { key: 0 }, zl = ["x", "y"], Ol = { key: 1 }, Yl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Al = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Nl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Xl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Il = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Dl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Ml = { key: 2 }, Bl = ["x", "y", "width"], Vl = ["x", "y", "width"], Gl = {
20
- key: 5,
21
- class: "vue-data-ui-watermark"
22
- }, Ul = ["onClick"], jl = {
23
- key: 0,
24
- style: { "font-variant-numeric": "tabular-nums" }
25
- }, Hl = { key: 1 }, El = ["innerHTML"], Rl = {
26
- __name: "vue-ui-donut",
27
- props: {
28
- config: {
29
- type: Object,
30
- default() {
31
- return {};
32
- }
33
- },
34
- dataset: {
35
- type: Array,
36
- default() {
37
- return [];
38
- }
39
- }
40
- },
41
- emits: ["selectLegend", "selectDatapoint"],
42
- setup(q, { expose: qe, emit: he }) {
43
- const A = q, { vue_ui_donut: Je } = ct(), J = w({
44
- get() {
45
- return !!A.dataset && A.dataset.length;
46
- },
47
- set(l) {
48
- return l;
49
- }
50
- }), j = d(null), ye = d(null), fe = d(null), le = d(null), pe = d(null), ge = d(null), be = d(0), me = d(0), we = d(0);
51
- ut(() => {
52
- ke();
53
- }), st(() => {
54
- le.value && le.value.disconnect();
55
- });
56
- function ke() {
57
- if (dt(A.dataset) ? Ee({
58
- componentName: "VueUiDonut",
59
- type: "dataset"
60
- }) : A.dataset.forEach((l, r) => {
61
- ht({
62
- datasetObject: l,
63
- requiredAttributes: ["name", "values"]
64
- }).forEach((t) => {
65
- J.value = !1, Ee({
66
- componentName: "VueUiDonut",
67
- type: "datasetSerieAttribute",
68
- property: t,
69
- index: r
70
- });
71
- });
72
- }), e.value.responsive) {
73
- const l = Pt(() => {
74
- const { width: r, height: t } = St({
75
- chart: j.value,
76
- title: e.value.style.chart.title.text ? ye.value : null,
77
- legend: e.value.style.chart.legend.show ? fe.value : null,
78
- source: pe.value,
79
- noTitle: ge.value
80
- });
81
- u.value.width = r, u.value.height = t;
82
- });
83
- le.value = new ResizeObserver(l), le.value.observe(j.value.parentNode);
84
- }
85
- }
86
- const _ = d(yt()), Ke = d(null), ae = d(!1), se = d(""), P = d(null), _e = d(0);
87
- function xe() {
88
- const l = We({
89
- userConfig: A.config,
90
- defaultConfig: Je
91
- });
92
- return l.theme ? {
93
- ...We({
94
- userConfig: kt.vue_ui_donut[l.theme] || A.config,
95
- defaultConfig: l
96
- }),
97
- customPalette: _t[l.theme] || U
98
- } : l;
99
- }
100
- const e = w({
101
- get: () => xe(),
102
- set: (l) => l
103
- }), { userOptionsVisible: ne, setUserOptionsVisibility: Ce, keepUserOptionState: $e } = Dt({ config: e.value });
104
- Ue(() => A.config, (l) => {
105
- e.value = xe(), ne.value = !e.value.showOnChartHover, ke(), be.value += 1, me.value += 1, we.value += 1;
106
- }, { deep: !0 });
107
- const { isPrinting: Pe, isImaging: Se, generatePdf: Fe, generateImage: Le } = Lt({
108
- elementId: `donut__${_.value}`,
109
- fileName: e.value.style.chart.title.text || "vue-ui-donut"
110
- }), Qe = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), Te = w(() => ft(e.value.customPalette)), y = d({
111
- dataLabels: {
112
- show: e.value.style.chart.layout.labels.dataLabels.show
113
- },
114
- showTable: e.value.table.show,
115
- showTooltip: e.value.style.chart.tooltip.show
116
- }), u = d({
117
- height: 360,
118
- width: 512
119
- }), K = w(() => {
120
- const l = e.value.style.chart.layout.donut.strokeWidth / 512, r = u.value.width * l, t = r > C.value ? C.value : r;
121
- return t < 24 ? 24 : t;
122
- }), B = w(() => A.dataset.map((l, r) => ({
123
- name: l.name,
124
- color: Re(l.color) || Te.value[r] || U[r] || U[r % U.length],
125
- value: l.values.reduce((t, a) => t + a, 0),
126
- absoluteValues: l.values,
127
- comment: l.comment || ""
128
- }))), T = d(B.value);
129
- Ue(() => B.value, (l) => T.value = l);
130
- function Ze() {
131
- return B.value.map((l) => ({
132
- name: l.name,
133
- color: l.color,
134
- value: l.value
135
- }));
136
- }
137
- const N = d([]), ze = d(null), Oe = d(null), V = d(!1);
138
- function Ye(l) {
139
- const r = B.value.find((v, g) => g === l), t = T.value.find((v, g) => g === l);
140
- let a = t.value;
141
- if (N.value.includes(l)) {
142
- let g = function() {
143
- a > v ? (cancelAnimationFrame(ze.value), T.value = T.value.map((p, ce) => l === ce ? {
144
- ...p,
145
- value: v
146
- } : p), V.value = !1) : (V.value = !0, a += v * 0.025, T.value = T.value.map((p, ce) => l === ce ? {
147
- ...p,
148
- value: a
149
- } : p), ze.value = requestAnimationFrame(g));
150
- };
151
- N.value = N.value.filter((p) => p !== l);
152
- const v = r.value;
153
- g();
154
- } else if (N.value.length < B.value.length - 1) {
155
- let v = function() {
156
- a < t.value / 100 ? (cancelAnimationFrame(Oe.value), N.value.push(l), T.value = T.value.map((g, p) => l === p ? {
157
- ...g,
158
- value: 0
159
- } : g), V.value = !1) : (V.value = !0, a /= 1.1, T.value = T.value.map((g, p) => l === p ? {
160
- ...g,
161
- value: a
162
- } : g), Oe.value = requestAnimationFrame(v));
163
- };
164
- v();
165
- }
166
- he("selectLegend", I.value.map((v) => ({
167
- name: v.name,
168
- color: v.color,
169
- value: v.value
170
- })));
171
- }
172
- const I = w(() => (T.value.forEach((l, r) => {
173
- if ([null, void 0].includes(l.values))
174
- return {
175
- ...l,
176
- values: []
177
- };
178
- }), T.value.map((l, r) => ({
179
- ...l,
180
- seriesIndex: r
181
- })).filter((l, r) => !N.value.includes(r)))), Ae = w(() => A.dataset.map((l, r) => ({
182
- name: l.name,
183
- color: Re(l.color) || Te.value[r] || U[r] || U[r % U.length],
184
- value: (l.values || []).reduce((t, a) => t + a, 0),
185
- shape: "circle"
186
- })).map((l, r) => ({
187
- ...l,
188
- proportion: l.value / A.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
189
- opacity: N.value.includes(r) ? 0.5 : 1,
190
- segregate: () => !V.value && Ye(r),
191
- isSegregated: N.value.includes(r)
192
- }))), et = w(() => ({
193
- cy: "donut-div-legend",
194
- backgroundColor: e.value.style.chart.legend.backgroundColor,
195
- color: e.value.style.chart.legend.color,
196
- fontSize: e.value.style.chart.legend.fontSize,
197
- paddingBottom: 12,
198
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
199
- })), C = w(() => {
200
- const l = Math.min(u.value.width / 3, u.value.height / 3);
201
- return l < 55 ? 55 : l;
202
- }), f = w(() => pt({ series: I.value }, u.value.width / 2, u.value.height / 2, C.value, C.value, 1.99999, 2, 1, 360, 105.25, K.value)), c = w(() => {
203
- const l = Math.max(...I.value.map((t) => t.value)), r = I.value.map((t) => t.value / l);
204
- return gt({
205
- series: r,
206
- center: {
207
- x: u.value.width / 2,
208
- y: u.value.height / 2
209
- },
210
- maxRadius: Math.min(u.value.width, u.value.height) / 3
211
- });
212
- });
213
- function H(l) {
214
- return l.x > u.value.width / 2 + 6 ? "start" : l.x < u.value.width / 2 - 6 ? "end" : "middle";
215
- }
216
- function tt(l) {
217
- return l.middlePoint.y > u.value.height / 2 ? L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y : L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y - 100;
218
- }
219
- function O(l) {
220
- return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
221
- }
222
- function re(l, r) {
223
- const t = l.value / lt(r);
224
- return isNaN(t) ? 0 : Y(
225
- e.value.style.chart.layout.labels.percentage.formatter,
226
- t * 100,
227
- F({
228
- v: t * 100,
229
- s: "%",
230
- r: e.value.style.chart.layout.labels.percentage.rounding
231
- }),
232
- { datapoint: l }
233
- );
234
- }
235
- function lt(l) {
236
- return [...l].map((r) => r.value).reduce((r, t) => r + t, 0);
237
- }
238
- const S = w(() => I.value.map((l) => l.value).reduce((l, r) => l + r, 0)), Ne = w(() => S.value / I.value.length), Xe = w(() => (l) => V.value ? l.proportion * 100 : l.value / S.value * 100), ie = d(null), Q = d(!1);
239
- function Ie({ datapoint: l, relativeIndex: r, seriesIndex: t, show: a = !1 }) {
240
- ie.value = { datapoint: l, seriesIndex: t, config: e.value, series: B.value }, ae.value = a, P.value = r;
241
- let v = "";
242
- const g = e.value.style.chart.tooltip.customFormat;
243
- if (Q.value = !1, xt(g))
244
- try {
245
- const p = g({
246
- seriesIndex: t,
247
- datapoint: l,
248
- series: B.value,
249
- config: e.value
250
- });
251
- typeof p == "string" && (se.value = p, Q.value = !0);
252
- } catch {
253
- console.warn("Custom format cannot be applied."), Q.value = !1;
254
- }
255
- if (!Q.value) {
256
- if (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, v += `<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="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${Y(
257
- e.value.style.chart.layout.labels.value.formatter,
258
- l.value,
259
- F({
260
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
261
- v: l.value,
262
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
263
- r: e.value.style.chart.tooltip.roundingValue
264
- }),
265
- {
266
- datapoint: l,
267
- relativeIndex: r,
268
- seriesIndex: t
269
- }
270
- )}</b>`), e.value.style.chart.tooltip.showPercentage) {
271
- const p = Y(
272
- e.value.style.chart.layout.labels.percentage.formatter,
273
- l.proportion * 100,
274
- F({
275
- v: l.proportion * 100,
276
- s: "%",
277
- r: e.value.style.chart.tooltip.roundingPercentage
278
- }),
279
- {
280
- datapoint: l,
281
- relativeIndex: r,
282
- seriesIndex: t
283
- }
284
- );
285
- e.value.style.chart.tooltip.showValue ? v += `<span>(${p})</span></div>` : v += `<b>${p}</b></div>`;
286
- }
287
- e.value.style.chart.comments.showInTooltip && l.comment && (v += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), se.value = `<div>${v}</div>`;
288
- }
289
- }
290
- function Z(l) {
291
- return e.value.useBlurOnHover && ![null, void 0].includes(P.value) && P.value !== l ? `url(#blur_${_.value})` : "";
292
- }
293
- const D = w(() => {
294
- const l = I.value.map((t) => ({
295
- name: t.name,
296
- color: t.color
297
- })), r = I.value.map((t) => t.value);
298
- return { head: l, body: r };
299
- });
300
- function De() {
301
- rt(() => {
302
- const l = D.value.head.map((a, v) => [[
303
- a.name
304
- ], [D.value.body[v]], [isNaN(D.value.body[v] / S.value) ? "-" : D.value.body[v] / S.value * 100]]), r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = Ct(r);
305
- $t({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
306
- });
307
- }
308
- const oe = w(() => {
309
- const l = [
310
- ' <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>',
311
- F({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
312
- "100%"
313
- ], r = D.value.head.map((v, g) => {
314
- const p = F({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: D.value.body[g], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
315
- return [
316
- {
317
- color: v.color,
318
- name: v.name
319
- },
320
- p,
321
- isNaN(D.value.body[g] / S.value) ? "-" : (D.value.body[g] / S.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
322
- ];
323
- }), t = {
324
- th: {
325
- backgroundColor: e.value.table.th.backgroundColor,
326
- color: e.value.table.th.color,
327
- outline: e.value.table.th.outline
328
- },
329
- td: {
330
- backgroundColor: e.value.table.td.backgroundColor,
331
- color: e.value.table.td.color,
332
- outline: e.value.table.td.outline
333
- },
334
- breakpoint: e.value.table.responsiveBreakpoint
335
- };
336
- return {
337
- colNames: [
338
- e.value.table.columnNames.series,
339
- e.value.table.columnNames.value,
340
- e.value.table.columnNames.percentage
341
- ],
342
- head: l,
343
- body: r,
344
- config: t
345
- };
346
- }), E = d(!1);
347
- function at(l) {
348
- E.value = l, _e.value += 1;
349
- }
350
- const Me = w(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
351
- function ot(l) {
352
- return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((r) => "-").join("");
353
- }
354
- function M(l, r) {
355
- he("selectDatapoint", { datapoint: l, index: r });
356
- }
357
- function Be() {
358
- y.value.showTable = !y.value.showTable;
359
- }
360
- function Ve() {
361
- y.value.dataLabels.show = !y.value.dataLabels.show;
362
- }
363
- function Ge() {
364
- y.value.showTooltip = !y.value.showTooltip;
365
- }
366
- const ue = d(!1);
367
- function ve() {
368
- ue.value = !ue.value;
369
- }
370
- return qe({
371
- getData: Ze,
372
- generatePdf: Fe,
373
- generateCsv: De,
374
- generateImage: Le,
375
- toggleTable: Be,
376
- toggleLabels: Ve,
377
- toggleTooltip: Ge,
378
- toggleAnnotator: ve
379
- }), (l, r) => (o(), n("div", {
380
- ref_key: "donutChart",
381
- ref: j,
382
- class: de(`vue-ui-donut ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
383
- style: z(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
384
- id: `donut__${_.value}`,
385
- onMouseenter: r[6] || (r[6] = () => s(Ce)(!0)),
386
- onMouseleave: r[7] || (r[7] = () => s(Ce)(!1))
387
- }, [
388
- e.value.userOptions.buttons.annotator ? (o(), G(It, {
389
- key: 0,
390
- parent: j.value,
391
- backgroundColor: e.value.style.chart.backgroundColor,
392
- color: e.value.style.chart.color,
393
- active: ue.value,
394
- onClose: ve
395
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : i("", !0),
396
- b(l.$slots, "userConfig", {}, void 0, !0),
397
- Qe.value ? (o(), n("div", {
398
- key: 1,
399
- ref_key: "noTitle",
400
- ref: ge,
401
- class: "vue-data-ui-no-title-space",
402
- style: "height:36px; width: 100%;background:transparent"
403
- }, null, 512)) : i("", !0),
404
- e.value.style.chart.title.text ? (o(), n("div", {
405
- key: 2,
406
- ref_key: "chartTitle",
407
- ref: ye,
408
- style: "width:100%;background:transparent;padding-bottom:24px"
409
- }, [
410
- (o(), G(Ft, {
411
- key: `title_${be.value}`,
412
- config: {
413
- title: {
414
- cy: "donut-div-title",
415
- ...e.value.style.chart.title
416
- },
417
- subtitle: {
418
- cy: "donut-div-subtitle",
419
- ...e.value.style.chart.title.subtitle
420
- }
421
- }
422
- }, null, 8, ["config"]))
423
- ], 512)) : i("", !0),
424
- e.value.userOptions.show && J.value && (s($e) || s(ne)) ? (o(), G(Tt, {
425
- ref_key: "details",
426
- ref: Ke,
427
- key: `user_option_${_e.value}`,
428
- backgroundColor: e.value.style.chart.backgroundColor,
429
- color: e.value.style.chart.color,
430
- isPrinting: s(Pe),
431
- isImaging: s(Se),
432
- uid: _.value,
433
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
434
- hasPdf: e.value.userOptions.buttons.pdf,
435
- hasImg: e.value.userOptions.buttons.img,
436
- hasXls: e.value.userOptions.buttons.csv,
437
- hasTable: e.value.userOptions.buttons.table,
438
- hasLabel: e.value.userOptions.buttons.labels,
439
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
440
- isFullscreen: E.value,
441
- chartElement: j.value,
442
- position: e.value.userOptions.position,
443
- isTooltip: y.value.showTooltip,
444
- titles: { ...e.value.userOptions.buttonTitles },
445
- hasAnnotator: e.value.userOptions.buttons.annotator,
446
- isAnnotation: ue.value,
447
- onToggleFullscreen: at,
448
- onGeneratePdf: s(Fe),
449
- onGenerateCsv: De,
450
- onGenerateImage: s(Le),
451
- onToggleTable: Be,
452
- onToggleLabels: Ve,
453
- onToggleTooltip: Ge,
454
- onToggleAnnotator: ve,
455
- style: z({
456
- visibility: s($e) ? s(ne) ? "visible" : "hidden" : "visible"
457
- })
458
- }, nt({ _: 2 }, [
459
- l.$slots.optionTooltip ? {
460
- name: "optionTooltip",
461
- fn: $(() => [
462
- b(l.$slots, "optionTooltip", {}, void 0, !0)
463
- ]),
464
- key: "0"
465
- } : void 0,
466
- l.$slots.optionPdf ? {
467
- name: "optionPdf",
468
- fn: $(() => [
469
- b(l.$slots, "optionPdf", {}, void 0, !0)
470
- ]),
471
- key: "1"
472
- } : void 0,
473
- l.$slots.optionCsv ? {
474
- name: "optionCsv",
475
- fn: $(() => [
476
- b(l.$slots, "optionCsv", {}, void 0, !0)
477
- ]),
478
- key: "2"
479
- } : void 0,
480
- l.$slots.optionImg ? {
481
- name: "optionImg",
482
- fn: $(() => [
483
- b(l.$slots, "optionImg", {}, void 0, !0)
484
- ]),
485
- key: "3"
486
- } : void 0,
487
- l.$slots.optionTable ? {
488
- name: "optionTable",
489
- fn: $(() => [
490
- b(l.$slots, "optionTable", {}, void 0, !0)
491
- ]),
492
- key: "4"
493
- } : void 0,
494
- l.$slots.optionLabels ? {
495
- name: "optionLabels",
496
- fn: $(() => [
497
- b(l.$slots, "optionLabels", {}, void 0, !0)
498
- ]),
499
- key: "5"
500
- } : void 0,
501
- l.$slots.optionFullscreen ? {
502
- name: "optionFullscreen",
503
- fn: $(({ toggleFullscreen: t, isFullscreen: a }) => [
504
- b(l.$slots, "optionFullscreen", R(W({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
505
- ]),
506
- key: "6"
507
- } : void 0,
508
- l.$slots.optionAnnotator ? {
509
- name: "optionAnnotator",
510
- fn: $(({ toggleAnnotator: t, isAnnotator: a }) => [
511
- b(l.$slots, "optionAnnotator", R(W({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
512
- ]),
513
- key: "7"
514
- } : void 0
515
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
516
- J.value ? (o(), n("svg", {
517
- key: 4,
518
- xmlns: s(bt),
519
- class: de({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
520
- viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
521
- style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
522
- }, [
523
- je(Xt),
524
- l.$slots["chart-background"] ? (o(), n("foreignObject", {
525
- key: 0,
526
- x: 0,
527
- y: 0,
528
- width: u.value.width <= 0 ? 10 : u.value.width,
529
- height: u.value.height <= 0 ? 10 : u.value.height,
530
- style: {
531
- pointerEvents: "none"
532
- }
533
- }, [
534
- b(l.$slots, "chart-background", {}, void 0, !0)
535
- ], 8, Ut)) : i("", !0),
536
- e.value.type === "classic" ? (o(), n("defs", jt, [
537
- e.value.style.chart.useGradient ? (o(), n("radialGradient", {
538
- key: 0,
539
- id: `gradient_${_.value}`
540
- }, [
541
- h("stop", {
542
- offset: "0%",
543
- "stop-color": s(ee)(e.value.style.chart.backgroundColor, 0),
544
- "stop-opacity": "0"
545
- }, null, 8, Et),
546
- h("stop", {
547
- offset: `${(1 - K.value / C.value) * 100}%`,
548
- "stop-color": s(ee)("#FFFFFF", 0),
549
- "stop-opacity": "0"
550
- }, null, 8, Rt),
551
- h("stop", {
552
- offset: `${(1 - K.value / C.value / 2) * 100}%`,
553
- "stop-color": s(ee)("#FFFFFF", e.value.style.chart.gradientIntensity)
554
- }, null, 8, Wt),
555
- h("stop", {
556
- offset: "100%",
557
- "stop-color": s(ee)(e.value.style.chart.backgroundColor, 0),
558
- "stop-opacity": "0"
559
- }, null, 8, qt)
560
- ], 8, Ht)) : i("", !0)
561
- ])) : i("", !0),
562
- e.value.type === "polar" ? (o(), n("defs", Jt, [
563
- (o(!0), n(k, null, X(c.value, (t, a) => (o(), n("radialGradient", {
564
- id: `polar_gradient_${a}_${_.value}`,
565
- cx: t.middlePoint.x / u.value.width * 100 + "%",
566
- cy: t.middlePoint.y / u.value.height * 100 + "%",
567
- r: "62%"
568
- }, [
569
- h("stop", {
570
- offset: "0%",
571
- "stop-color": s(mt)(f.value[a].color, 0.05),
572
- "stop-opacity": e.value.style.chart.gradientIntensity / 100
573
- }, null, 8, Qt),
574
- h("stop", {
575
- offset: "100%",
576
- "stop-color": f.value[a].color
577
- }, null, 8, Zt)
578
- ], 8, Kt))), 256))
579
- ])) : i("", !0),
580
- h("defs", null, [
581
- h("filter", {
582
- id: `blur_${_.value}`,
583
- x: "-50%",
584
- y: "-50%",
585
- width: "200%",
586
- height: "200%"
587
- }, [
588
- h("feGaussianBlur", {
589
- in: "SourceGraphic",
590
- stdDeviation: 2,
591
- id: `blur_std_${_.value}`
592
- }, null, 8, tl),
593
- ll
594
- ], 8, el),
595
- h("filter", {
596
- id: `shadow_${_.value}`,
597
- "color-interpolation-filters": "sRGB"
598
- }, [
599
- h("feDropShadow", {
600
- dx: "0",
601
- dy: "0",
602
- stdDeviation: "10",
603
- "flood-opacity": "0.5",
604
- "flood-color": e.value.style.chart.layout.donut.shadowColor
605
- }, null, 8, ol)
606
- ], 8, al),
607
- h("filter", {
608
- id: `drop_shadow_${_.value}`,
609
- "color-interpolation-filters": "sRGB",
610
- x: "-50%",
611
- y: "-50%",
612
- width: "200%",
613
- height: "200%"
614
- }, [
615
- h("feDropShadow", {
616
- dx: "0",
617
- dy: "0",
618
- stdDeviation: "3",
619
- "flood-opacity": "1",
620
- "flood-color": e.value.style.chart.layout.donut.shadowColor
621
- }, null, 8, sl)
622
- ], 8, ul)
623
- ]),
624
- e.value.type === "classic" ? (o(!0), n(k, { key: 3 }, X(f.value, (t, a) => (o(), n("g", null, [
625
- O(t) && y.value.dataLabels.show ? (o(), n("path", {
626
- key: 0,
627
- d: s(wt)(t, { x: u.value.width / 2, y: u.value.height / 2 }, 16, 16, !1, !1, K.value),
628
- stroke: t.color,
629
- "stroke-width": "1",
630
- "stroke-linecap": "round",
631
- "stroke-linejoin": "round",
632
- fill: "none",
633
- filter: Z(a)
634
- }, null, 8, nl)) : i("", !0)
635
- ]))), 256)) : i("", !0),
636
- e.value.type === "polar" ? (o(!0), n(k, { key: 4 }, X(f.value, (t, a) => (o(), n("g", null, [
637
- O(t) && y.value.dataLabels.show ? (o(), n("line", {
638
- key: 0,
639
- x1: s(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
640
- y1: s(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
641
- x2: c.value[a].middlePoint.x,
642
- y2: c.value[a].middlePoint.y,
643
- stroke: t.color,
644
- "stroke-width": "1",
645
- "stroke-linecap": "round",
646
- "stroke-linejoin": "round",
647
- fill: "none",
648
- filter: Z(a)
649
- }, null, 8, rl)) : i("", !0)
650
- ]))), 256)) : i("", !0),
651
- e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (o(), n("circle", {
652
- key: 5,
653
- cx: u.value.width / 2,
654
- cy: u.value.height / 2,
655
- r: C.value <= 0 ? 10 : C.value,
656
- fill: e.value.style.chart.backgroundColor,
657
- filter: `url(#shadow_${_.value})`
658
- }, null, 8, il)) : i("", !0),
659
- S.value && e.value.type === "classic" ? (o(), n(k, { key: 6 }, [
660
- (o(!0), n(k, null, X(f.value, (t, a) => (o(), n("path", {
661
- stroke: e.value.style.chart.backgroundColor,
662
- d: t.arcSlice,
663
- fill: "#FFFFFF"
664
- }, null, 8, vl))), 256)),
665
- (o(!0), n(k, null, X(f.value, (t, a) => (o(), n("path", {
666
- class: "vue-ui-donut-arc-path",
667
- d: t.arcSlice,
668
- fill: s(ee)(t.color, 80),
669
- stroke: e.value.style.chart.backgroundColor,
670
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
671
- filter: Z(a)
672
- }, null, 8, cl))), 256))
673
- ], 64)) : i("", !0),
674
- S.value && e.value.type === "polar" ? (o(), n(k, { key: 7 }, [
675
- f.value.length > 1 ? (o(), n("g", dl, [
676
- (o(!0), n(k, null, X(f.value, (t, a) => (o(), n("path", {
677
- stroke: e.value.style.chart.backgroundColor,
678
- d: c.value[a].path,
679
- fill: "#FFFFFF"
680
- }, null, 8, hl))), 256)),
681
- e.value.style.chart.layout.donut.useShadow ? (o(), n("g", yl, [
682
- (o(!0), n(k, null, X(f.value, (t, a) => (o(), n("path", {
683
- class: "vue-ui-donut-arc-path",
684
- d: c.value[a].path,
685
- fill: "transparent",
686
- stroke: e.value.style.chart.backgroundColor,
687
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
688
- filter: `url(#drop_shadow_${_.value})`
689
- }, null, 8, fl))), 256))
690
- ])) : i("", !0),
691
- (o(!0), n(k, null, X(f.value, (t, a) => (o(), n("path", {
692
- class: "vue-ui-donut-arc-path",
693
- d: c.value[a].path,
694
- fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${_.value})` : t.color,
695
- stroke: e.value.style.chart.backgroundColor,
696
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
697
- filter: Z(a)
698
- }, null, 8, pl))), 256))
699
- ])) : (o(), n("g", gl, [
700
- h("circle", {
701
- cx: u.value.width / 2,
702
- cy: u.value.height / 2,
703
- r: C.value,
704
- fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${_.value})` : f.value[0].color,
705
- stroke: e.value.style.chart.backgroundColor,
706
- "stroke-width": e.value.style.chart.layout.donut.borderWidth
707
- }, null, 8, bl)
708
- ]))
709
- ], 64)) : (o(), n("circle", {
710
- key: 8,
711
- cx: u.value.width / 2,
712
- cy: u.value.height / 2,
713
- r: C.value <= 0 ? 10 : C.value,
714
- fill: "transparent",
715
- stroke: e.value.style.chart.backgroundColor
716
- }, null, 8, ml)),
717
- e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), n("circle", {
718
- key: 9,
719
- cx: u.value.width / 2,
720
- cy: u.value.height / 2,
721
- r: (
722
- /* This might require adjustments */
723
- C.value <= 0 ? 10 : C.value
724
- ),
725
- fill: `url(#gradient_${_.value})`
726
- }, null, 8, wl)) : i("", !0),
727
- S.value ? (o(), n(k, { key: 10 }, [
728
- f.value.length > 1 || e.value.type === "classic" ? (o(), n("g", kl, [
729
- (o(!0), n(k, null, X(f.value, (t, a) => (o(), n("path", {
730
- "data-cy-donut-trap": "",
731
- d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
732
- fill: P.value === a ? "rgba(0,0,0,0.1)" : "transparent",
733
- onMouseenter: (v) => Ie({
734
- datapoint: t,
735
- relativeIndex: a,
736
- seriesIndex: t.seriesIndex,
737
- show: !0
738
- }),
739
- onMouseleave: r[0] || (r[0] = (v) => {
740
- ae.value = !1, P.value = null;
741
- }),
742
- onClick: (v) => M(t, a)
743
- }, null, 40, _l))), 256))
744
- ])) : (o(), n("g", xl, [
745
- h("circle", {
746
- cx: u.value.width / 2,
747
- cy: u.value.height / 2,
748
- r: C.value,
749
- fill: P.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
750
- "data-cy-donut-trap": "",
751
- onMouseenter: r[1] || (r[1] = (t) => Ie({
752
- datapoint: f.value[0],
753
- relativeIndex: 0,
754
- seriesIndex: f.value[0].seriesIndex,
755
- show: !0
756
- })),
757
- onMouseleave: r[2] || (r[2] = (t) => {
758
- ae.value = !1, P.value = null;
759
- }),
760
- onClick: r[3] || (r[3] = (t) => M(f.value[0], l.i))
761
- }, null, 40, Cl)
762
- ]))
763
- ], 64)) : i("", !0),
764
- e.value.type === "classic" ? (o(), n(k, { key: 11 }, [
765
- e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
766
- key: 0,
767
- "text-anchor": "middle",
768
- x: u.value.width / 2,
769
- y: u.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
770
- fill: e.value.style.chart.layout.labels.hollow.total.color,
771
- "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
772
- style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
773
- }, x(e.value.style.chart.layout.labels.hollow.total.text), 13, $l)) : i("", !0),
774
- e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
775
- key: 1,
776
- "text-anchor": "middle",
777
- x: u.value.width / 2,
778
- y: u.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
779
- fill: e.value.style.chart.layout.labels.hollow.total.value.color,
780
- "font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
781
- style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
782
- }, x(s(Y)(
783
- e.value.style.chart.layout.labels.hollow.total.value.formatter,
784
- S.value,
785
- s(F)({
786
- p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
787
- v: S.value,
788
- s: e.value.style.chart.layout.labels.hollow.total.value.suffix
789
- })
790
- )), 13, Pl)) : i("", !0),
791
- e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
792
- key: 2,
793
- "text-anchor": "middle",
794
- x: u.value.width / 2,
795
- y: u.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
796
- fill: e.value.style.chart.layout.labels.hollow.average.color,
797
- "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
798
- style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
799
- }, x(e.value.style.chart.layout.labels.hollow.average.text), 13, Sl)) : i("", !0),
800
- e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
801
- key: 3,
802
- "text-anchor": "middle",
803
- x: u.value.width / 2,
804
- y: u.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
805
- fill: e.value.style.chart.layout.labels.hollow.average.value.color,
806
- "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
807
- style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
808
- }, x(V.value ? "--" : s(Y)(
809
- e.value.style.chart.layout.labels.hollow.average.value.formatter,
810
- Ne.value,
811
- s(F)({
812
- p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
813
- v: Ne.value,
814
- s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
815
- r: e.value.style.chart.layout.labels.hollow.average.value.rounding
816
- })
817
- )), 13, Fl)) : i("", !0)
818
- ], 64)) : i("", !0),
819
- (o(!0), n(k, null, X(f.value, (t, a) => (o(), n("g", {
820
- filter: Z(a),
821
- class: de({ animated: e.value.useCssAnimation })
822
- }, [
823
- e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), n("g", Tl, [
824
- (o(), n("foreignObject", {
825
- x: s(m)(t, !0).anchor === "end" ? s(m)(t).x - 120 : s(m)(t, !0).anchor === "middle" ? s(m)(t).x - 60 : s(m)(t).x,
826
- y: s(te)(t) - (Me.value ? 20 : 0),
827
- width: "120",
828
- height: "60",
829
- style: { overflow: "visible" }
830
- }, [
831
- h("div", null, [
832
- b(l.$slots, "dataLabel", R(W({
833
- datapoint: t,
834
- isBlur: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a,
835
- isSafari: Me.value,
836
- isVisible: O(t) && y.value.dataLabels.show,
837
- textAlign: s(m)(t, !0, 16, !0).anchor,
838
- flexAlign: s(m)(t, !0, 16).anchor,
839
- percentage: re(t, f.value)
840
- })), void 0, !0)
841
- ])
842
- ], 8, zl))
843
- ])) : (o(), n("g", Ol, [
844
- e.value.type === "classic" ? (o(), n(k, { key: 0 }, [
845
- O(t) && y.value.dataLabels.show ? (o(), n("circle", {
846
- key: 0,
847
- cx: s(m)(t).x,
848
- cy: s(te)(t) - 3.5,
849
- fill: t.color,
850
- stroke: e.value.style.chart.backgroundColor,
851
- "stroke-width": 1,
852
- r: 3,
853
- filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${_.value})`,
854
- onClick: (v) => M(t, a)
855
- }, null, 8, Yl)) : i("", !0)
856
- ], 64)) : i("", !0),
857
- e.value.type === "polar" ? (o(), n(k, { key: 1 }, [
858
- O(t) && y.value.dataLabels.show ? (o(), n("circle", {
859
- key: 0,
860
- cx: s(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
861
- cy: s(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
862
- fill: t.color,
863
- stroke: e.value.style.chart.backgroundColor,
864
- "stroke-width": 1,
865
- r: 3,
866
- filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${_.value})`,
867
- onClick: (v) => M(t, a)
868
- }, null, 8, Al)) : i("", !0)
869
- ], 64)) : i("", !0),
870
- e.value.type === "classic" ? (o(), n(k, { key: 2 }, [
871
- O(t) && y.value.dataLabels.show ? (o(), n("text", {
872
- key: 0,
873
- "text-anchor": s(m)(t, !0, 12).anchor,
874
- x: s(m)(t, !0, 12).x,
875
- y: s(te)(t),
876
- fill: e.value.style.chart.layout.labels.percentage.color,
877
- "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
878
- style: z(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
879
- onClick: (v) => M(t, a)
880
- }, x(re(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${s(Y)(
881
- e.value.style.chart.layout.labels.value.formatter,
882
- t.value,
883
- s(F)({
884
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
885
- v: t.value,
886
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
887
- r: e.value.style.chart.layout.labels.value.rounding
888
- }),
889
- { datapoint: t }
890
- )})` : ""), 13, Nl)) : i("", !0),
891
- O(t) && y.value.dataLabels.show ? (o(), n("text", {
892
- key: 1,
893
- "text-anchor": s(m)(t).anchor,
894
- x: s(m)(t, !0, 12).x,
895
- y: s(te)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
896
- fill: e.value.style.chart.layout.labels.name.color,
897
- "font-size": e.value.style.chart.layout.labels.name.fontSize,
898
- style: z(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
899
- onClick: (v) => M(t, a)
900
- }, x(t.name), 13, Xl)) : i("", !0)
901
- ], 64)) : i("", !0),
902
- e.value.type === "polar" ? (o(), n(k, { key: 3 }, [
903
- O(t) && y.value.dataLabels.show ? (o(), n("text", {
904
- key: 0,
905
- "text-anchor": H(c.value[a].middlePoint),
906
- x: s(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
907
- y: s(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
908
- fill: e.value.style.chart.layout.labels.percentage.color,
909
- "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
910
- style: z(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
911
- onClick: (v) => M(t, a)
912
- }, x(re(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${s(Y)(
913
- e.value.style.chart.layout.labels.value.formatter,
914
- t.value,
915
- s(F)({
916
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
917
- v: t.value,
918
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
919
- r: e.value.style.chart.layout.labels.value.rounding
920
- }),
921
- { datapoint: t }
922
- )})` : ""), 13, Il)) : i("", !0),
923
- O(t) && y.value.dataLabels.show ? (o(), n("text", {
924
- key: 1,
925
- "text-anchor": H(c.value[a].middlePoint),
926
- x: s(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
927
- y: s(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
928
- fill: e.value.style.chart.layout.labels.name.color,
929
- "font-size": e.value.style.chart.layout.labels.name.fontSize,
930
- style: z(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
931
- onClick: (v) => M(t, a)
932
- }, x(t.name), 13, Dl)) : i("", !0)
933
- ], 64)) : i("", !0)
934
- ])),
935
- y.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), n("g", Ml, [
936
- O(t) && e.value.type === "classic" ? (o(), n("foreignObject", {
937
- key: 0,
938
- x: e.value.style.chart.comments.offsetX + (s(m)(t, !0).anchor === "end" ? s(m)(t).x - e.value.style.chart.comments.width : s(m)(t, !0).anchor === "middle" ? s(m)(t).x - e.value.style.chart.comments.width / 2 : s(m)(t).x),
939
- y: s(te)(t) + 24 + e.value.style.chart.comments.offsetY,
940
- width: e.value.style.chart.comments.width,
941
- height: "200",
942
- style: { overflow: "visible", "pointer-events": "none" }
943
- }, [
944
- h("div", null, [
945
- b(l.$slots, "plot-comment", {
946
- plot: { ...t, textAlign: s(m)(t, !0, 16, !0).anchor, flexAlign: s(m)(t, !0, 16).anchor }
947
- }, void 0, !0)
948
- ])
949
- ], 8, Bl)) : i("", !0),
950
- O(t) && e.value.type === "polar" ? (o(), n("foreignObject", {
951
- key: 1,
952
- x: e.value.style.chart.comments.offsetX + (H(c.value[a].middlePoint) === "end" ? s(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width : H(c.value[a].middlePoint) === "middle" ? s(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : s(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x),
953
- y: tt(c.value[a]) + e.value.style.chart.comments.offsetY,
954
- width: e.value.style.chart.comments.width,
955
- height: "200",
956
- style: { overflow: "visible", "pointer-events": "none" }
957
- }, [
958
- h("div", null, [
959
- b(l.$slots, "plot-comment", {
960
- plot: { ...t, textAlign: H(c.value[a].middlePoint), flexAlign: H(c.value[a].middlePoint) }
961
- }, void 0, !0)
962
- ])
963
- ], 8, Vl)) : i("", !0)
964
- ])) : i("", !0)
965
- ], 10, Ll))), 256)),
966
- b(l.$slots, "svg", { svg: u.value }, void 0, !0)
967
- ], 14, Gt)) : i("", !0),
968
- l.$slots.watermark ? (o(), n("div", Gl, [
969
- b(l.$slots, "watermark", R(W({ isPrinting: s(Pe) || s(Se) })), void 0, !0)
970
- ])) : i("", !0),
971
- J.value ? i("", !0) : (o(), G(At, {
972
- key: 6,
973
- config: {
974
- type: "donut",
975
- style: {
976
- backgroundColor: e.value.style.chart.backgroundColor,
977
- donut: {
978
- color: "#CCCCCC",
979
- strokeWidth: K.value * 0.8
980
- }
981
- }
982
- }
983
- }, null, 8, ["config"])),
984
- h("div", {
985
- ref_key: "chartLegend",
986
- ref: fe
987
- }, [
988
- e.value.style.chart.legend.show ? (o(), G(Yt, {
989
- key: `legend_${we.value}`,
990
- legendSet: Ae.value,
991
- config: et.value,
992
- onClickMarker: r[4] || (r[4] = ({ i: t }) => Ye(t))
993
- }, {
994
- item: $(({ legend: t, index: a }) => [
995
- h("div", {
996
- style: z(`opacity:${N.value.includes(a) ? 0.5 : 1}`),
997
- onClick: (v) => t.segregate()
998
- }, [
999
- He(x(t.name) + ": " + x(s(Y)(
1000
- e.value.style.chart.layout.labels.value.formatter,
1001
- t.value,
1002
- s(F)({
1003
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1004
- v: t.value,
1005
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1006
- r: e.value.style.chart.legend.roundingValue
1007
- }),
1008
- {
1009
- datapoint: t,
1010
- index: a
1011
- }
1012
- )) + " ", 1),
1013
- N.value.includes(a) ? (o(), n("span", Hl, " ( " + x(ot(t.proportion * 100)) + " % ) ", 1)) : (o(), n("span", jl, " (" + x(isNaN(t.value / S.value) ? "-" : s(Y)(
1014
- e.value.style.chart.layout.labels.percentage.formatter,
1015
- Xe.value(t),
1016
- s(F)({
1017
- v: Xe.value(t),
1018
- s: "%",
1019
- r: e.value.style.chart.legend.roundingPercentage
1020
- })
1021
- )) + ") ", 1))
1022
- ], 12, Ul)
1023
- ]),
1024
- _: 1
1025
- }, 8, ["legendSet", "config"])) : i("", !0),
1026
- b(l.$slots, "legend", { legend: Ae.value }, void 0, !0)
1027
- ], 512),
1028
- l.$slots.source ? (o(), n("div", {
1029
- key: 7,
1030
- ref_key: "source",
1031
- ref: pe,
1032
- dir: "auto"
1033
- }, [
1034
- b(l.$slots, "source", {}, void 0, !0)
1035
- ], 512)) : i("", !0),
1036
- je(Ot, {
1037
- show: y.value.showTooltip && ae.value,
1038
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1039
- color: e.value.style.chart.tooltip.color,
1040
- fontSize: e.value.style.chart.tooltip.fontSize,
1041
- borderRadius: e.value.style.chart.tooltip.borderRadius,
1042
- borderColor: e.value.style.chart.tooltip.borderColor,
1043
- borderWidth: e.value.style.chart.tooltip.borderWidth,
1044
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1045
- position: e.value.style.chart.tooltip.position,
1046
- offsetY: e.value.style.chart.tooltip.offsetY,
1047
- parent: j.value,
1048
- content: se.value,
1049
- isCustom: Q.value,
1050
- isFullscreen: E.value
1051
- }, {
1052
- "tooltip-before": $(() => [
1053
- b(l.$slots, "tooltip-before", R(W({ ...ie.value })), void 0, !0)
1054
- ]),
1055
- "tooltip-after": $(() => [
1056
- b(l.$slots, "tooltip-after", R(W({ ...ie.value })), void 0, !0)
1057
- ]),
1058
- _: 3
1059
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
1060
- J.value ? (o(), G(Nt, {
1061
- key: 8,
1062
- hideDetails: "",
1063
- config: {
1064
- open: y.value.showTable,
1065
- maxHeight: 1e4,
1066
- body: {
1067
- backgroundColor: e.value.style.chart.backgroundColor,
1068
- color: e.value.style.chart.color
1069
- },
1070
- head: {
1071
- backgroundColor: e.value.style.chart.backgroundColor,
1072
- color: e.value.style.chart.color
1073
- }
1074
- }
1075
- }, {
1076
- content: $(() => [
1077
- (o(), G(zt, {
1078
- key: `table_${me.value}`,
1079
- colNames: oe.value.colNames,
1080
- head: oe.value.head,
1081
- body: oe.value.body,
1082
- config: oe.value.config,
1083
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1084
- onClose: r[5] || (r[5] = (t) => y.value.showTable = !1)
1085
- }, {
1086
- th: $(({ th: t }) => [
1087
- h("div", {
1088
- innerHTML: t,
1089
- style: { display: "flex", "align-items": "center" }
1090
- }, null, 8, El)
1091
- ]),
1092
- td: $(({ td: t }) => [
1093
- He(x(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : s(Y)(
1094
- e.value.style.chart.layout.labels.percentage.formatter,
1095
- t,
1096
- s(F)({
1097
- v: t,
1098
- s: "%",
1099
- r: e.value.style.chart.layout.labels.percentage.rounding
1100
- })
1101
- ) : s(Y)(
1102
- e.value.style.chart.layout.labels.value.formatter,
1103
- t,
1104
- s(F)({
1105
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1106
- v: t,
1107
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1108
- r: e.value.style.chart.layout.labels.value.rounding
1109
- })
1110
- )), 1)
1111
- ]),
1112
- _: 1
1113
- }, 8, ["colNames", "head", "body", "config", "title"]))
1114
- ]),
1115
- _: 1
1116
- }, 8, ["config"])) : i("", !0)
1117
- ], 46, Vt));
1118
- }
1119
- }, ia = /* @__PURE__ */ Mt(Rl, [["__scopeId", "data-v-7c3807c4"]]);
1120
- export {
1121
- ia as default
1122
- };