vue-data-ui 2.4.54 → 2.4.56

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 (156) hide show
  1. package/dist/{Arrow-B10uy-UU.cjs → Arrow-CjIZFibK.cjs} +1 -1
  2. package/dist/{Arrow-DeKmbj7B.js → Arrow-jPjUEWgL.js} +1 -1
  3. package/dist/{BaseIcon-Ca67-Cyv.js → BaseIcon-0DNmIdCs.js} +1 -1
  4. package/dist/{BaseIcon-DtUsvREa.cjs → BaseIcon-DF2Lg0Ky.cjs} +1 -1
  5. package/dist/{DataTable-BgiV2CfC.js → DataTable-CZSz7b1u.js} +2 -2
  6. package/dist/{DataTable-CwiudM8v.cjs → DataTable-osuWgmyP.cjs} +1 -1
  7. package/dist/{Legend-C1rLFGjN.js → Legend-CvXmxVoD.js} +1 -1
  8. package/dist/{Legend-TTzHdVeD.cjs → Legend-DecSHp0h.cjs} +1 -1
  9. package/dist/{PackageVersion-Bp3Bq9Jn.js → PackageVersion-CEkiDR72.js} +1 -1
  10. package/dist/{PackageVersion-B_ULr99C.cjs → PackageVersion-eTcMI7M3.cjs} +1 -1
  11. package/dist/{PenAndPaper-DFNDy1y9.cjs → PenAndPaper-BqcQLMi2.cjs} +1 -1
  12. package/dist/{PenAndPaper-Cu0Ae0MN.js → PenAndPaper-GjypzQvI.js} +3 -3
  13. package/dist/{Shape-B_GK3n6y.js → Shape-BejfTDlL.js} +1 -1
  14. package/dist/{Shape-GWT6Hhcc.cjs → Shape-Diaok0Bu.cjs} +1 -1
  15. package/dist/{Slicer-Bi4zZd-A.js → Slicer-9_ewSBRs.js} +2 -2
  16. package/dist/{Slicer-DyNqrpR4.cjs → Slicer-DFT7ePZ_.cjs} +1 -1
  17. package/dist/{Title-DPlURQtx.js → Title-BI9lg56g.js} +1 -1
  18. package/dist/{Title-Z93_y2gr.cjs → Title-Bw-FXFej.cjs} +1 -1
  19. package/dist/{Tooltip-DVfgJ6mM.cjs → Tooltip-98ospYeV.cjs} +1 -1
  20. package/dist/{Tooltip-C7wb_p0L.js → Tooltip-sBMzQa_B.js} +1 -1
  21. package/dist/{index-DH1CMY7m.js → index-ByVaKddw.js} +3 -1
  22. package/dist/index-Cvx5SntE.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +1 -0
  25. package/dist/types/vue-data-ui.d.ts +1 -0
  26. package/dist/{useNestedProp-DDvMHRIf.cjs → useNestedProp-CSIVZXvp.cjs} +1 -1
  27. package/dist/{useNestedProp-DBnFzAfW.js → useNestedProp-GRBJXe5O.js} +1 -1
  28. package/dist/{usePrinter-C0N1CiBZ.js → usePrinter-BsXVX7vh.js} +1 -1
  29. package/dist/{usePrinter-DtSijS1B.cjs → usePrinter-BwruEydS.cjs} +1 -1
  30. package/dist/{vue-data-ui-CXxSOk_7.js → vue-data-ui-B7Y18Xdv.js} +60 -60
  31. package/dist/{vue-data-ui-ByVHf_kl.cjs → vue-data-ui-BqSfqfi4.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-B7WLQ4Xw.cjs → vue-ui-3d-bar-CXv6h_8o.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-CVe5jYPi.js → vue-ui-3d-bar-SA6SyIoT.js} +9 -9
  36. package/dist/{vue-ui-accordion-azKgDbn4.js → vue-ui-accordion-Dcf8tHzr.js} +3 -3
  37. package/dist/{vue-ui-accordion-Dm8myRhk.cjs → vue-ui-accordion-DfqTc4ro.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-BW4_XPjw.js → vue-ui-age-pyramid-BetdioWW.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-BLq5EYnh.cjs → vue-ui-age-pyramid-CG7IY2gE.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-BIiP8tfh.cjs → vue-ui-annotator-Bcg6d-GE.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-BXNCscLc.js → vue-ui-annotator-Qf_gPjWZ.js} +1 -1
  42. package/dist/{vue-ui-bullet-zqDSLDqP.js → vue-ui-bullet-CLRHVfB8.js} +8 -8
  43. package/dist/{vue-ui-bullet-oszrU2rQ.cjs → vue-ui-bullet-CPHavcOd.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-DlhrXggi.js → vue-ui-candlestick-DBnrOltA.js} +11 -11
  45. package/dist/{vue-ui-candlestick-EY9e1UXf.cjs → vue-ui-candlestick-exLvYnf4.cjs} +1 -1
  46. package/dist/vue-ui-carousel-table-Bz2XZAC4.js +396 -0
  47. package/dist/vue-ui-carousel-table-CHlCmI-_.cjs +1 -0
  48. package/dist/{vue-ui-chestnut-DUceRFNk.cjs → vue-ui-chestnut-BBhIDuhr.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-jHgtDbmU.js → vue-ui-chestnut-BE6RQkXd.js} +8 -8
  50. package/dist/{vue-ui-cursor-Cq1HIpIa.cjs → vue-ui-cursor-CpIr7R3C.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-Dkndm06c.js → vue-ui-cursor-DLQVTUyz.js} +2 -2
  52. package/dist/{vue-ui-dashboard-NZKZnvIp.cjs → vue-ui-dashboard-YWLsOufT.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-B6_Xkd1u.js → vue-ui-dashboard-rKdg3soO.js} +2 -2
  54. package/dist/{vue-ui-digits-DHGYQ4mk.cjs → vue-ui-digits-DFNXL2VX.cjs} +1 -1
  55. package/dist/{vue-ui-digits-ZFMtrfsc.js → vue-ui-digits-XkrLdWX_.js} +2 -2
  56. package/dist/vue-ui-donut-8rW9LlEF.cjs +1 -0
  57. package/dist/{vue-ui-donut-D3Yw-xVC.js → vue-ui-donut-CDVHpIvX.js} +16 -16
  58. package/dist/{vue-ui-donut-evolution-CzQo7feu.cjs → vue-ui-donut-evolution-B1ahKhHv.cjs} +1 -1
  59. package/dist/{vue-ui-donut-evolution-kzFgoErC.js → vue-ui-donut-evolution-By2AYSZT.js} +11 -11
  60. package/dist/{vue-ui-dumbbell-LcWHXAvv.js → vue-ui-dumbbell-D1Htb6-R.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-qBYKyZL0.cjs → vue-ui-dumbbell-DIHb9Grh.cjs} +1 -1
  62. package/dist/{vue-ui-flow-RQrUlBZx.cjs → vue-ui-flow-41QVXQeK.cjs} +1 -1
  63. package/dist/{vue-ui-flow-CM2CzG9l.js → vue-ui-flow-CCYyDy6C.js} +9 -9
  64. package/dist/{vue-ui-funnel-oJgYKMnU.js → vue-ui-funnel-BJ43m1vH.js} +8 -8
  65. package/dist/{vue-ui-funnel-CBZO8HbM.cjs → vue-ui-funnel-qPzrqllN.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-BCVy8Fif.cjs → vue-ui-galaxy-D6dtMQ2A.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-C2Y_DDJB.js → vue-ui-galaxy-DMUq4sez.js} +11 -11
  68. package/dist/{vue-ui-gauge-DdCG-E2p.cjs → vue-ui-gauge-BdycQV3W.cjs} +1 -1
  69. package/dist/{vue-ui-gauge--Y59kiK4.js → vue-ui-gauge-KGflfPYM.js} +7 -7
  70. package/dist/{vue-ui-gizmo-g2JoyNcP.js → vue-ui-gizmo-CFRsYHo7.js} +3 -3
  71. package/dist/{vue-ui-gizmo-Rb4ZXTmW.cjs → vue-ui-gizmo-lKGGpbCe.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-CuhK1-fD.cjs → vue-ui-heatmap-DKxnmh08.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-CSW7Sckl.js → vue-ui-heatmap-Dj0A6LjZ.js} +10 -10
  74. package/dist/{vue-ui-history-plot-BUh8mFcS.js → vue-ui-history-plot-ClNqlBER.js} +11 -11
  75. package/dist/{vue-ui-history-plot-3I1ZczPE.cjs → vue-ui-history-plot-IWjqZb4c.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-BokZ78tj.cjs → vue-ui-kpi-BRVPBhAp.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-DqkHOwnT.js → vue-ui-kpi-BXRYqm31.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-OgezY5bJ.js → vue-ui-mini-loader-Bm_4G8gx.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-DgRUssIh.cjs → vue-ui-mini-loader-NicMq9t0.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-DPme2DL7.js → vue-ui-molecule-BDFarbim.js} +11 -11
  81. package/dist/{vue-ui-molecule-BjZEWe-M.cjs → vue-ui-molecule-Bi9RT7M4.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-C3dVMbCW.js → vue-ui-mood-radar-DJnPeXpr.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-qn-DhbDt.cjs → vue-ui-mood-radar-DlXCkePO.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-Cz04Q0zc.cjs → vue-ui-nested-donuts-CYNh2xAI.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-B96zg3ew.js → vue-ui-nested-donuts-DLcFEPDy.js} +11 -11
  86. package/dist/{vue-ui-onion-CVXrJUcF.cjs → vue-ui-onion-UDlJJjud.cjs} +1 -1
  87. package/dist/{vue-ui-onion-DqtSzdyq.js → vue-ui-onion-jzYk1NeW.js} +11 -11
  88. package/dist/{vue-ui-parallel-coordinate-plot-uPB5LMUG.js → vue-ui-parallel-coordinate-plot-BLLYkQEr.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-BSrrIy_u.cjs → vue-ui-parallel-coordinate-plot-BboIA_-E.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-DZu-EjEj.cjs → vue-ui-quadrant-BSNtsyJ5.cjs} +1 -1
  91. package/dist/{vue-ui-quadrant-B4Xp90go.js → vue-ui-quadrant-C94HXwr8.js} +12 -12
  92. package/dist/{vue-ui-quick-chart-CmdJuhrV.js → vue-ui-quick-chart-6fxJ8oH3.js} +53 -54
  93. package/dist/{vue-ui-quick-chart-BbmneGkd.cjs → vue-ui-quick-chart-B9Xbkibp.cjs} +5 -5
  94. package/dist/{vue-ui-radar-C0fJVGMX.js → vue-ui-radar-CQrWi1aN.js} +12 -12
  95. package/dist/{vue-ui-radar-Uw9jHF-A.cjs → vue-ui-radar-Q6izz-u2.cjs} +1 -1
  96. package/dist/{vue-ui-rating-m1AvXMFo.js → vue-ui-rating-Ciyd3dSC.js} +2 -2
  97. package/dist/{vue-ui-rating--WDHkylh.cjs → vue-ui-rating-DgsUBjAC.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-BnGSpsh3.js → vue-ui-relation-circle-BVgfKoJY.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-46aZfLDY.cjs → vue-ui-relation-circle-CAC4jUA7.cjs} +1 -1
  100. package/dist/{vue-ui-rings-BvwB9Pgy.js → vue-ui-rings-DuQmTRbW.js} +11 -11
  101. package/dist/{vue-ui-rings-C5uc13Mz.cjs → vue-ui-rings-VNKEeLJq.cjs} +1 -1
  102. package/dist/{vue-ui-scatter-CoW5nT_m.js → vue-ui-scatter-BlLPdbYP.js} +12 -12
  103. package/dist/{vue-ui-scatter-BAxQgdPf.cjs → vue-ui-scatter-CWTRMe0w.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-CoBL8VvU.cjs → vue-ui-screenshot-C3nAs5FY.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-C_s7_D5X.js → vue-ui-screenshot-Cf9IZKQy.js} +1 -1
  106. package/dist/{vue-ui-skeleton-DBo32QSA.js → vue-ui-skeleton--uwo2sCb.js} +3 -3
  107. package/dist/{vue-ui-skeleton-Czl8iTZQ.cjs → vue-ui-skeleton-CcWKK9pd.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-D-FU6RGS.cjs → vue-ui-smiley-BI7CkEhi.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-BQisdetv.js → vue-ui-smiley-Bc53TV0r.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-DMwCqGul.js → vue-ui-spark-trend-Byey6P0P.js} +5 -5
  111. package/dist/{vue-ui-spark-trend-C6d6P8_s.cjs → vue-ui-spark-trend-CKgcM09-.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-DHpoNSzN.js → vue-ui-sparkbar-C2Y0Foie.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-CR3IzauM.cjs → vue-ui-sparkbar-FBEE4RyI.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-CC1Eglzs.js → vue-ui-sparkgauge-Czf3xG6u.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-CeXq_PnB.cjs → vue-ui-sparkgauge-DIQjrKUR.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-X9_zqOZb.cjs → vue-ui-sparkhistogram-CNQrhEr4.cjs} +1 -1
  117. package/dist/{vue-ui-sparkhistogram-xIK7lFrl.js → vue-ui-sparkhistogram-MEdLzmyE.js} +5 -5
  118. package/dist/{vue-ui-sparkline-DgEXD0bt.js → vue-ui-sparkline-Cr2okEps.js} +4 -4
  119. package/dist/{vue-ui-sparkline-z8F4XzTG.cjs → vue-ui-sparkline-DNeX0Cst.cjs} +1 -1
  120. package/dist/{vue-ui-sparkstackbar-wjQ7KHJm.cjs → vue-ui-sparkstackbar-CyvjXdi9.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-Co449w2-.js → vue-ui-sparkstackbar-Db83U8wn.js} +5 -5
  122. package/dist/{vue-ui-stackbar-BCjjWZUq.js → vue-ui-stackbar-CQT1OJCn.js} +12 -12
  123. package/dist/{vue-ui-stackbar-C9Q0eM4s.cjs → vue-ui-stackbar-CfmbbZzJ.cjs} +1 -1
  124. package/dist/{vue-ui-strip-plot-D9nUWA5a.js → vue-ui-strip-plot-DOzB5USx.js} +11 -11
  125. package/dist/{vue-ui-strip-plot-SbdQQDJD.cjs → vue-ui-strip-plot-T8_5JEzy.cjs} +1 -1
  126. package/dist/{vue-ui-table-4Zx9e6xR.cjs → vue-ui-table-C3O3go3K.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CQAwn6-B.cjs → vue-ui-table-heatmap-iho4COZg.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-Dojf1B9-.js → vue-ui-table-heatmap-lftME_w3.js} +4 -4
  129. package/dist/{vue-ui-table-Df6cgK1g.js → vue-ui-table-ro63oB6Q.js} +1 -1
  130. package/dist/{vue-ui-table-sparkline-DLd74n0T.cjs → vue-ui-table-sparkline-Ce0sOUWt.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-WSmyQwR2.js → vue-ui-table-sparkline-P9DzADZw.js} +5 -5
  132. package/dist/{vue-ui-thermometer-9gklDJUj.cjs → vue-ui-thermometer-BRYN1bHx.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-El0SBOq3.js → vue-ui-thermometer-DI4pKvnk.js} +7 -7
  134. package/dist/{vue-ui-timer-BBg7_SOY.cjs → vue-ui-timer-CsV8Cuty.cjs} +1 -1
  135. package/dist/{vue-ui-timer-DDuXYQZM.js → vue-ui-timer-DTsTsm_i.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-BfIV-QDF.js → vue-ui-tiremarks-CjY3b9ph.js} +7 -7
  137. package/dist/{vue-ui-tiremarks-BIyXvipR.cjs → vue-ui-tiremarks-od0aPD4a.cjs} +1 -1
  138. package/dist/{vue-ui-treemap-BXGSdZ7D.js → vue-ui-treemap-B36BRS00.js} +11 -11
  139. package/dist/{vue-ui-treemap-DpshmJwJ.cjs → vue-ui-treemap-B69tqCDo.cjs} +1 -1
  140. package/dist/{vue-ui-vertical-bar-CKwjHdCp.cjs → vue-ui-vertical-bar-8QN9YXK-.cjs} +1 -1
  141. package/dist/{vue-ui-vertical-bar-CWCfyMLl.js → vue-ui-vertical-bar-CK1dtsFn.js} +11 -11
  142. package/dist/{vue-ui-waffle-qrwD0df7.js → vue-ui-waffle-CaJbFYrA.js} +19 -19
  143. package/dist/{vue-ui-waffle-IvkVZcab.cjs → vue-ui-waffle-CpcyWKuc.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-DhwjPquK.cjs → vue-ui-wheel-DJQeNqbc.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-BVzCac3i.js → vue-ui-wheel-WoHPA2Fp.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-DNXgz7Aj.cjs → vue-ui-word-cloud-BfqeiAU8.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-CMibfjKu.js → vue-ui-word-cloud-D3h-mtSd.js} +10 -10
  148. package/dist/{vue-ui-xy-DRPrnIDh.js → vue-ui-xy-BTW5rwfL.js} +14 -14
  149. package/dist/{vue-ui-xy-canvas-DmhWHa44.js → vue-ui-xy-canvas-DTySv5nX.js} +11 -11
  150. package/dist/{vue-ui-xy-canvas-prkO7IV3.cjs → vue-ui-xy-canvas-DtnXa5hf.cjs} +1 -1
  151. package/dist/{vue-ui-xy-DPybwkIx.cjs → vue-ui-xy-iL-McDRN.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/index-BdlNqn9B.cjs +0 -9
  154. package/dist/vue-ui-carousel-table-7w6OlJGJ.js +0 -379
  155. package/dist/vue-ui-carousel-table-DpN88ZNk.cjs +0 -1
  156. package/dist/vue-ui-donut-DFS8YDvi.cjs +0 -1
@@ -1,379 +0,0 @@
1
- import { ref as n, onMounted as I, computed as F, watch as M, onBeforeUnmount as pe, nextTick as ce, openBlock as s, createElementBlock as d, unref as u, createElementVNode as S, normalizeStyle as v, normalizeClass as xe, createTextVNode as G, toDisplayString as q, renderSlot as p, Fragment as D, renderList as X, normalizeProps as j, guardReactiveProps as J, createCommentVNode as B, createBlock as he, createSlots as Oe, withCtx as P } from "vue";
2
- import { u as Ie, c as Fe, o as K, e as Q, s as Be, q as Pe, r as Re } from "./index-DH1CMY7m.js";
3
- import { u as ze } from "./useNestedProp-DBnFzAfW.js";
4
- import { u as Ee, U as Se } from "./usePrinter-C0N1CiBZ.js";
5
- import Ne from "./vue-ui-skeleton-DBo32QSA.js";
6
- import { u as Ue } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const Le = ["id"], Ve = ["height"], Me = ["data-cell", "height"], Ge = {
9
- key: 2,
10
- ref: "source",
11
- dir: "auto"
12
- }, qe = {
13
- __name: "vue-ui-carousel-table",
14
- props: {
15
- config: {
16
- type: Object,
17
- default() {
18
- return {};
19
- }
20
- },
21
- dataset: {
22
- type: Object,
23
- default() {
24
- return {};
25
- }
26
- }
27
- },
28
- setup(m, { expose: fe }) {
29
- const l = m, { vue_ui_carousel_table: ge } = Ie(), N = n(Fe()), W = n(!1), $ = n(!!l.dataset);
30
- I(() => {
31
- Y();
32
- });
33
- function Y() {
34
- K(l.dataset) ? Q({
35
- componentName: "VueUiCarouselTable",
36
- type: "dataset"
37
- }) : ((!l.dataset.head || K(l.dataset.head)) && (Q({
38
- componentName: "VueUiCarouselTable",
39
- type: "datasetAttribute",
40
- property: "head"
41
- }), $.value = !1), (!l.dataset.body || K(l.dataset.body)) && (Q({
42
- componentName: "VueUiCarouselTable",
43
- type: "datasetAttribute",
44
- property: "body"
45
- }), $.value = !1));
46
- }
47
- const e = F({
48
- get: () => ee(),
49
- set: (t) => t
50
- }), { userOptionsVisible: U, setUserOptionsVisibility: Z, keepUserOptionState: _ } = Ue({ config: e.value });
51
- function ee() {
52
- return ze({
53
- userConfig: l.config,
54
- defaultConfig: ge
55
- });
56
- }
57
- M(() => l.config, (t) => {
58
- e.value = ee(), U.value = !e.value.showOnChartHover, Y();
59
- }, { deep: !0 }), M(() => l.dataset, (t) => {
60
- H();
61
- }, { deep: !0 });
62
- const { isPrinting: te, isImaging: ae, generatePdf: me, generateImage: oe } = Ee({
63
- elementId: `carousel-table_${N.value}`,
64
- fileName: e.value.caption.text || "vue-ui-carousel-table"
65
- }), c = n({
66
- showAnimation: e.value.animation.use
67
- }), r = n(null), ne = n(null), T = n(null), k = n(null), A = n(0), R = n(0), z = n(!1), w = n(null), f = n(null), x = n(0);
68
- function H() {
69
- w.value && (f.value = {
70
- elements: w.value.getElementsByTagName("tr"),
71
- heights: Array.from(w.value.getElementsByTagName("tr")).map((t) => t.getBoundingClientRect().height)
72
- });
73
- }
74
- I(H);
75
- const be = F(() => !f.value || !f.value.heights.length ? 0 : Math.max(...f.value.heights) + A.value + R.value), ye = F(() => l.dataset.body ? e.value.tbody.tr.visible <= l.dataset.body.length ? e.value.tbody.tr.visible : l.dataset.body.length : 0), Ce = F(() => (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2) * ye.value + A.value + R.value), E = n(0), O = n(null), b = n(0), y = n(!1), le = n(0);
76
- I(() => {
77
- T.value && (A.value = T.value.getBoundingClientRect().height), k.value && (R.value = k.value.getBoundingClientRect().height), c.value.showAnimation && f.value && ie();
78
- }), I(() => {
79
- if (r.value) {
80
- let o = function() {
81
- const i = t.getBoundingClientRect().bottom;
82
- a.forEach((h) => {
83
- h.getBoundingClientRect().top < i ? h.style.visibility = "hidden" : h.style.visibility = "visible";
84
- });
85
- };
86
- const t = r.value.querySelector("thead"), a = Array.from(w.value.querySelectorAll("tr"));
87
- r.value.addEventListener("scroll", o), o(), pe(() => {
88
- r.value.removeEventListener("scroll", o);
89
- });
90
- }
91
- });
92
- function $e(t) {
93
- W.value = t, le.value += 1;
94
- }
95
- function ie() {
96
- !O.value && !y.value && (O.value = requestAnimationFrame(se));
97
- }
98
- function Te() {
99
- if (!r.value) return !1;
100
- const { scrollTop: t, scrollHeight: a, clientHeight: o } = r.value;
101
- return t + o >= a;
102
- }
103
- function se(t) {
104
- if (y.value) return;
105
- b.value || (b.value = t), t - b.value >= e.value.animation.speedMs && (E.value += f.value.heights[x.value], (Te() || x.value >= f.value.heights.length) && (E.value = 0, x.value = -1), x.value += 1, r.value && r.value.scrollTo({
106
- top: E.value,
107
- behavior: "smooth"
108
- }), b.value = t), O.value = requestAnimationFrame(se);
109
- }
110
- function g() {
111
- y.value = !0, cancelAnimationFrame(O.value), O.value = null;
112
- }
113
- pe(g);
114
- function C() {
115
- !y.value || !c.value.showAnimation || (y.value = !1, b.value = 0, ie());
116
- }
117
- function ke() {
118
- e.value.animation.pauseOnHover && g();
119
- }
120
- const L = n(null);
121
- function Ae() {
122
- g(), clearTimeout(L.value);
123
- }
124
- function ue() {
125
- clearTimeout(L.value), L.value = setTimeout(C, 1e3);
126
- }
127
- M(
128
- () => e.value.animation.use,
129
- (t) => {
130
- t ? (c.value.showAnimation = !0, C()) : (c.value.showAnimation = !1, g());
131
- }
132
- );
133
- const we = F(() => e.value.responsiveBreakpoint);
134
- I(() => {
135
- const t = new ResizeObserver((a) => {
136
- a.forEach((o) => {
137
- z.value = o.contentRect.width < we.value;
138
- }), A.value = T.value ? T.value.getBoundingClientRect().height : 0, R.value = k.value ? k.value.getBoundingClientRect().height : 0, x.value = 0, ce(() => {
139
- g(), b.value = 0, E.value = 0, H(), C();
140
- });
141
- });
142
- r.value && t.observe(r.value);
143
- });
144
- function re() {
145
- me();
146
- }
147
- function de() {
148
- c.value.showAnimation = !c.value.showAnimation, c.value.showAnimation ? C() : g();
149
- }
150
- function ve() {
151
- ce(() => {
152
- const t = l.dataset.head.map((i, h) => [
153
- [l.dataset.body[h]]
154
- ]), a = [
155
- [e.value.caption.text],
156
- [l.dataset.head.map((i) => [i])]
157
- ].concat(t), o = Pe(a);
158
- Re({
159
- csvContent: o,
160
- title: e.value.caption.text || "vue-ui-carousel-table"
161
- });
162
- });
163
- }
164
- return fe({
165
- pauseAnimation: g,
166
- resumeAnimation: C,
167
- toggleAnimation: de,
168
- generateCsv: ve,
169
- generatePdf: re,
170
- generateImage: oe
171
- }), (t, a) => (s(), d("div", {
172
- style: { position: "relative", overflow: "visible" },
173
- ref_key: "chartContainer",
174
- ref: ne,
175
- onMouseenter: a[5] || (a[5] = () => u(Z)(!0)),
176
- onMouseleave: a[6] || (a[6] = () => u(Z)(!1))
177
- }, [
178
- S("div", {
179
- ref_key: "tableContainer",
180
- ref: r,
181
- id: `carousel-table_${N.value}`,
182
- style: v({
183
- height: u(te) || u(ae) ? "auto" : `${Math.max(Ce.value, be.value)}px`,
184
- containerType: "inline-size",
185
- position: "relative",
186
- overflow: "auto",
187
- fontFamily: e.value.fontFamily
188
- }),
189
- class: xe({ "vue-ui-responsive": z.value, "is-playing": e.value.scrollbar.hide || !y.value && e.value.scrollbar.showOnlyOnHover }),
190
- onMouseover: a[0] || (a[0] = (o) => ke()),
191
- onMouseleave: a[1] || (a[1] = (o) => C()),
192
- onTouchstart: a[2] || (a[2] = (o) => Ae()),
193
- onTouchend: a[3] || (a[3] = (o) => ue()),
194
- onTouchcancel: a[4] || (a[4] = (o) => ue())
195
- }, [
196
- $.value ? (s(), d("table", {
197
- key: 0,
198
- class: "vue-data-ui-carousel-table",
199
- style: v({
200
- ...e.value.style,
201
- border: `${e.value.border.size}px solid ${e.value.border.color}`,
202
- width: "100%",
203
- borderCollapse: "collapse",
204
- backgroundColor: e.value.tbody.backgroundColor
205
- })
206
- }, [
207
- S("caption", {
208
- ref_key: "caption",
209
- ref: T,
210
- class: "vue-data-ui-carousel-table-caption",
211
- style: v({
212
- ...e.value.caption.style,
213
- fontFamily: "inherit",
214
- position: "sticky",
215
- top: 0,
216
- zIndex: 2,
217
- paddingTop: e.value.caption.padding.top + "px",
218
- paddingRight: e.value.caption.padding.right + "px",
219
- paddingBottom: e.value.caption.padding.bottom + "px",
220
- paddingLeft: e.value.caption.padding.left + "px",
221
- boxShadow: z.value ? e.value.thead.tr.style.boxShadow : "none",
222
- minHeight: "36px",
223
- display: t.$slots.caption || e.value.caption.text || e.value.userOptions.show ? "" : "none"
224
- })
225
- }, [
226
- G(q(e.value.caption.text && !t.$slots.caption ? e.value.caption.text : "") + " ", 1),
227
- p(t.$slots, "caption", {}, void 0, !0)
228
- ], 4),
229
- S("thead", {
230
- style: v({ ...e.value.thead.style, position: "sticky", top: `${t.$slots.caption || e.value.caption.text || e.value.userOptions.show ? A.value : 0}px`, zIndex: 1 })
231
- }, [
232
- S("tr", {
233
- ref_key: "tableRow",
234
- ref: k,
235
- role: "row",
236
- style: v({
237
- ...e.value.thead.tr.style,
238
- border: e.value.thead.tr.border.size ? `${e.value.thead.tr.border.size}px solid ${e.value.thead.tr.border.color}` : "none",
239
- boxShadow: z.value ? "none" : e.value.thead.tr.style.boxShadow
240
- }),
241
- height: `${e.value.thead.tr.height}px`
242
- }, [
243
- (s(!0), d(D, null, X(m.dataset.head, (o, i) => (s(), d("th", {
244
- role: "cell",
245
- key: `th_${i}`,
246
- style: v({
247
- ...e.value.thead.tr.th.style,
248
- border: e.value.thead.tr.th.border.size ? `${e.value.thead.tr.th.border.size}px solid ${e.value.thead.tr.th.border.color}` : "none",
249
- paddingTop: e.value.thead.tr.th.padding.top + "px",
250
- paddingRight: e.value.thead.tr.th.padding.right + "px",
251
- paddingBottom: e.value.thead.tr.th.padding.bottom + "px",
252
- paddingLeft: e.value.thead.tr.th.padding.left + "px"
253
- })
254
- }, [
255
- G(q(t.$slots.th ? "" : o) + " ", 1),
256
- p(t.$slots, "th", j(J({ th: o, colIndex: i })), void 0, !0)
257
- ], 4))), 128))
258
- ], 12, Ve)
259
- ], 4),
260
- m.dataset.body && m.dataset.head ? (s(), d("tbody", {
261
- key: 0,
262
- ref_key: "tbody",
263
- ref: w,
264
- style: v({
265
- clipPath: "inset(0,0,0,0)"
266
- })
267
- }, [
268
- (s(!0), d(D, null, X(m.dataset.body, (o, i) => (s(), d("tr", {
269
- style: v({
270
- ...e.value.tbody.tr.style,
271
- border: `${e.value.tbody.tr.border.size}px solid ${e.value.tbody.tr.border.color}`,
272
- verticalAlign: "middle"
273
- })
274
- }, [
275
- (s(!0), d(D, null, X(o, (h, V) => (s(), d("td", {
276
- role: "cell",
277
- "data-cell": m.dataset.head[V] || "",
278
- style: v({
279
- ...e.value.tbody.tr.td.style,
280
- border: `${e.value.tbody.tr.td.border.size}px solid ${e.value.tbody.tr.td.border.color}`,
281
- backgroundColor: u(Be)(e.value.tbody.tr.td.style.backgroundColor, i % 2 === 0 && e.value.tbody.tr.td.alternateColor ? e.value.tbody.tr.td.alternateOpacity * 100 : 100),
282
- paddingTop: e.value.tbody.tr.td.padding.top + "px",
283
- paddingRight: e.value.tbody.tr.td.padding.right + "px",
284
- paddingBottom: e.value.tbody.tr.td.padding.bottom + "px",
285
- paddingLeft: e.value.tbody.tr.td.padding.left + "px",
286
- verticalAlign: "middle"
287
- }),
288
- height: `${e.value.tbody.tr.height}px`
289
- }, [
290
- G(q(t.$slots.td ? "" : h) + " ", 1),
291
- p(t.$slots, "td", j(J({ td: h, rowIndex: i, colIndex: V })), void 0, !0)
292
- ], 12, Me))), 256))
293
- ], 4))), 256))
294
- ], 4)) : B("", !0)
295
- ], 4)) : B("", !0)
296
- ], 46, Le),
297
- $.value ? B("", !0) : (s(), he(Ne, {
298
- key: 0,
299
- config: {
300
- type: "table"
301
- }
302
- })),
303
- e.value.userOptions.show && $.value && (u(_) || u(U)) ? (s(), he(Se, {
304
- ref: "details",
305
- key: `user_option_${le.value}`,
306
- backgroundColor: e.value.style.backgroundColor,
307
- color: e.value.style.color,
308
- isPrinting: u(te),
309
- isImaging: u(ae),
310
- uid: N.value,
311
- hasTooltip: !1,
312
- hasPdf: e.value.userOptions.buttons.pdf,
313
- hasImg: e.value.userOptions.buttons.img,
314
- hasXls: e.value.userOptions.buttons.csv,
315
- hasTable: !1,
316
- hasLabel: !1,
317
- hasAnimation: e.value.userOptions.buttons.animation,
318
- isAnimation: !c.value.showAnimation,
319
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
320
- isFullscreen: W.value,
321
- chartElement: ne.value,
322
- position: e.value.userOptions.position,
323
- titles: { ...e.value.userOptions.buttonTitles },
324
- zIndex: 3,
325
- offsetX: 12,
326
- onGeneratePdf: re,
327
- onGenerateCsv: ve,
328
- onGenerateImage: u(oe),
329
- onToggleAnimation: de,
330
- onToggleFullscreen: $e,
331
- style: v({
332
- visibility: u(_) ? u(U) ? "visible" : "hidden" : "visible"
333
- })
334
- }, Oe({ _: 2 }, [
335
- t.$slots.optionPdf ? {
336
- name: "optionPdf",
337
- fn: P(() => [
338
- p(t.$slots, "optionPdf", {}, void 0, !0)
339
- ]),
340
- key: "0"
341
- } : void 0,
342
- t.$slots.optionCsv ? {
343
- name: "optionCsv",
344
- fn: P(() => [
345
- p(t.$slots, "optionCsv", {}, void 0, !0)
346
- ]),
347
- key: "1"
348
- } : void 0,
349
- t.$slots.optionImg ? {
350
- name: "optionImg",
351
- fn: P(() => [
352
- p(t.$slots, "optionImg", {}, void 0, !0)
353
- ]),
354
- key: "2"
355
- } : void 0,
356
- t.$slots.optionAnimation ? {
357
- name: "optionAnimation",
358
- fn: P(() => [
359
- p(t.$slots, "optionAnimation", {}, void 0, !0)
360
- ]),
361
- key: "3"
362
- } : void 0,
363
- t.$slots.optionFullscreen ? {
364
- name: "optionFullscreen",
365
- fn: P(({ toggleFullscreen: o, isFullscreen: i }) => [
366
- p(t.$slots, "optionFullscreen", j(J({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
367
- ]),
368
- key: "4"
369
- } : void 0
370
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasAnimation", "isAnimation", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "onGenerateImage", "style"])) : B("", !0),
371
- t.$slots.source ? (s(), d("div", Ge, [
372
- p(t.$slots, "source", {}, void 0, !0)
373
- ], 512)) : B("", !0)
374
- ], 544));
375
- }
376
- }, Ye = /* @__PURE__ */ He(qe, [["__scopeId", "data-v-9d3c0699"]]);
377
- export {
378
- Ye as default
379
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-BdlNqn9B.cjs"),re=require("./useNestedProp-DDvMHRIf.cjs"),K=require("./usePrinter-DtSijS1B.cjs"),ie=require("./vue-ui-skeleton-Czl8iTZQ.cjs"),ue=require("./useUserOptionState-BgepsfED.cjs"),se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),de=["id"],ve=["height"],ce=["data-cell","height"],pe={key:2,ref:"source",dir:"auto"},fe={__name:"vue-ui-carousel-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(p,{expose:Q}){const l=p,{vue_ui_carousel_table:W}=u.useConfig(),S=e.ref(u.createUid()),I=e.ref(!1),g=e.ref(!!l.dataset);e.onMounted(()=>{P()});function P(){u.objectIsEmpty(l.dataset)?u.error({componentName:"VueUiCarouselTable",type:"dataset"}):((!l.dataset.head||u.objectIsEmpty(l.dataset.head))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"head"}),g.value=!1),(!l.dataset.body||u.objectIsEmpty(l.dataset.body))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"body"}),g.value=!1))}const t=e.computed({get:()=>R(),set:o=>o}),{userOptionsVisible:A,setUserOptionsVisibility:F,keepUserOptionState:N}=ue.useUserOptionState({config:t.value});function R(){return re.useNestedProp({userConfig:l.config,defaultConfig:W})}e.watch(()=>l.config,o=>{t.value=R(),A.value=!t.value.showOnChartHover,P()},{deep:!0}),e.watch(()=>l.dataset,o=>{O()},{deep:!0});const{isPrinting:V,isImaging:U,generatePdf:Y,generateImage:M}=K.usePrinter({elementId:`carousel-table_${S.value}`,fileName:t.value.caption.text||"vue-ui-carousel-table"}),s=e.ref({showAnimation:t.value.animation.use}),i=e.ref(null),H=e.ref(null),b=e.ref(null),y=e.ref(null),k=e.ref(0),T=e.ref(0),w=e.ref(!1),C=e.ref(null),v=e.ref(null),$=e.ref(0);function O(){C.value&&(v.value={elements:C.value.getElementsByTagName("tr"),heights:Array.from(C.value.getElementsByTagName("tr")).map(o=>o.getBoundingClientRect().height)})}e.onMounted(O);const Z=e.computed(()=>!v.value||!v.value.heights.length?0:Math.max(...v.value.heights)+k.value+T.value),_=e.computed(()=>l.dataset.body?t.value.tbody.tr.visible<=l.dataset.body.length?t.value.tbody.tr.visible:l.dataset.body.length:0),ee=e.computed(()=>(t.value.tbody.tr.height+t.value.tbody.tr.td.padding.top+t.value.tbody.tr.td.padding.bottom+t.value.tbody.tr.border.size*2)*_.value+k.value+T.value),x=e.ref(0),B=e.ref(null),f=e.ref(0),m=e.ref(!1),q=e.ref(0);e.onMounted(()=>{b.value&&(k.value=b.value.getBoundingClientRect().height),y.value&&(T.value=y.value.getBoundingClientRect().height),s.value.showAnimation&&v.value&&L()}),e.onMounted(()=>{if(i.value){let a=function(){const r=o.getBoundingClientRect().bottom;n.forEach(d=>{d.getBoundingClientRect().top<r?d.style.visibility="hidden":d.style.visibility="visible"})};const o=i.value.querySelector("thead"),n=Array.from(C.value.querySelectorAll("tr"));i.value.addEventListener("scroll",a),a(),e.onBeforeUnmount(()=>{i.value.removeEventListener("scroll",a)})}});function te(o){I.value=o,q.value+=1}function L(){!B.value&&!m.value&&(B.value=requestAnimationFrame(D))}function oe(){if(!i.value)return!1;const{scrollTop:o,scrollHeight:n,clientHeight:a}=i.value;return o+a>=n}function D(o){if(m.value)return;f.value||(f.value=o),o-f.value>=t.value.animation.speedMs&&(x.value+=v.value.heights[$.value],(oe()||$.value>=v.value.heights.length)&&(x.value=0,$.value=-1),$.value+=1,i.value&&i.value.scrollTo({top:x.value,behavior:"smooth"}),f.value=o),B.value=requestAnimationFrame(D)}function c(){m.value=!0,cancelAnimationFrame(B.value),B.value=null}e.onBeforeUnmount(c);function h(){!m.value||!s.value.showAnimation||(m.value=!1,f.value=0,L())}function ne(){t.value.animation.pauseOnHover&&c()}const E=e.ref(null);function ae(){c(),clearTimeout(E.value)}function G(){clearTimeout(E.value),E.value=setTimeout(h,1e3)}e.watch(()=>t.value.animation.use,o=>{o?(s.value.showAnimation=!0,h()):(s.value.showAnimation=!1,c())});const le=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{const o=new ResizeObserver(n=>{n.forEach(a=>{w.value=a.contentRect.width<le.value}),k.value=b.value?b.value.getBoundingClientRect().height:0,T.value=y.value?y.value.getBoundingClientRect().height:0,$.value=0,e.nextTick(()=>{c(),f.value=0,x.value=0,O(),h()})});i.value&&o.observe(i.value)});function j(){Y()}function X(){s.value.showAnimation=!s.value.showAnimation,s.value.showAnimation?h():c()}function J(){e.nextTick(()=>{const o=l.dataset.head.map((r,d)=>[[l.dataset.body[d]]]),n=[[t.value.caption.text],[l.dataset.head.map(r=>[r])]].concat(o),a=u.createCsvContent(n);u.downloadCsv({csvContent:a,title:t.value.caption.text||"vue-ui-carousel-table"})})}return Q({pauseAnimation:c,resumeAnimation:h,toggleAnimation:X,generateCsv:J,generatePdf:j,generateImage:M}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{style:{position:"relative",overflow:"visible"},ref_key:"chartContainer",ref:H,onMouseenter:n[5]||(n[5]=()=>e.unref(F)(!0)),onMouseleave:n[6]||(n[6]=()=>e.unref(F)(!1))},[e.createElementVNode("div",{ref_key:"tableContainer",ref:i,id:`carousel-table_${S.value}`,style:e.normalizeStyle({height:e.unref(V)||e.unref(U)?"auto":`${Math.max(ee.value,Z.value)}px`,containerType:"inline-size",position:"relative",overflow:"auto",fontFamily:t.value.fontFamily}),class:e.normalizeClass({"vue-ui-responsive":w.value,"is-playing":t.value.scrollbar.hide||!m.value&&t.value.scrollbar.showOnlyOnHover}),onMouseover:n[0]||(n[0]=a=>ne()),onMouseleave:n[1]||(n[1]=a=>h()),onTouchstart:n[2]||(n[2]=a=>ae()),onTouchend:n[3]||(n[3]=a=>G()),onTouchcancel:n[4]||(n[4]=a=>G())},[g.value?(e.openBlock(),e.createElementBlock("table",{key:0,class:"vue-data-ui-carousel-table",style:e.normalizeStyle({...t.value.style,border:`${t.value.border.size}px solid ${t.value.border.color}`,width:"100%",borderCollapse:"collapse",backgroundColor:t.value.tbody.backgroundColor})},[e.createElementVNode("caption",{ref_key:"caption",ref:b,class:"vue-data-ui-carousel-table-caption",style:e.normalizeStyle({...t.value.caption.style,fontFamily:"inherit",position:"sticky",top:0,zIndex:2,paddingTop:t.value.caption.padding.top+"px",paddingRight:t.value.caption.padding.right+"px",paddingBottom:t.value.caption.padding.bottom+"px",paddingLeft:t.value.caption.padding.left+"px",boxShadow:w.value?t.value.thead.tr.style.boxShadow:"none",minHeight:"36px",display:o.$slots.caption||t.value.caption.text||t.value.userOptions.show?"":"none"})},[e.createTextVNode(e.toDisplayString(t.value.caption.text&&!o.$slots.caption?t.value.caption.text:"")+" ",1),e.renderSlot(o.$slots,"caption",{},void 0,!0)],4),e.createElementVNode("thead",{style:e.normalizeStyle({...t.value.thead.style,position:"sticky",top:`${o.$slots.caption||t.value.caption.text||t.value.userOptions.show?k.value:0}px`,zIndex:1})},[e.createElementVNode("tr",{ref_key:"tableRow",ref:y,role:"row",style:e.normalizeStyle({...t.value.thead.tr.style,border:t.value.thead.tr.border.size?`${t.value.thead.tr.border.size}px solid ${t.value.thead.tr.border.color}`:"none",boxShadow:w.value?"none":t.value.thead.tr.style.boxShadow}),height:`${t.value.thead.tr.height}px`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.dataset.head,(a,r)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",key:`th_${r}`,style:e.normalizeStyle({...t.value.thead.tr.th.style,border:t.value.thead.tr.th.border.size?`${t.value.thead.tr.th.border.size}px solid ${t.value.thead.tr.th.border.color}`:"none",paddingTop:t.value.thead.tr.th.padding.top+"px",paddingRight:t.value.thead.tr.th.padding.right+"px",paddingBottom:t.value.thead.tr.th.padding.bottom+"px",paddingLeft:t.value.thead.tr.th.padding.left+"px"})},[e.createTextVNode(e.toDisplayString(o.$slots.th?"":a)+" ",1),e.renderSlot(o.$slots,"th",e.normalizeProps(e.guardReactiveProps({th:a,colIndex:r})),void 0,!0)],4))),128))],12,ve)],4),p.dataset.body&&p.dataset.head?(e.openBlock(),e.createElementBlock("tbody",{key:0,ref_key:"tbody",ref:C,style:e.normalizeStyle({clipPath:"inset(0,0,0,0)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.dataset.body,(a,r)=>(e.openBlock(),e.createElementBlock("tr",{style:e.normalizeStyle({...t.value.tbody.tr.style,border:`${t.value.tbody.tr.border.size}px solid ${t.value.tbody.tr.border.color}`,verticalAlign:"middle"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(d,z)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":p.dataset.head[z]||"",style:e.normalizeStyle({...t.value.tbody.tr.td.style,border:`${t.value.tbody.tr.td.border.size}px solid ${t.value.tbody.tr.td.border.color}`,backgroundColor:e.unref(u.setOpacity)(t.value.tbody.tr.td.style.backgroundColor,r%2===0&&t.value.tbody.tr.td.alternateColor?t.value.tbody.tr.td.alternateOpacity*100:100),paddingTop:t.value.tbody.tr.td.padding.top+"px",paddingRight:t.value.tbody.tr.td.padding.right+"px",paddingBottom:t.value.tbody.tr.td.padding.bottom+"px",paddingLeft:t.value.tbody.tr.td.padding.left+"px",verticalAlign:"middle"}),height:`${t.value.tbody.tr.height}px`},[e.createTextVNode(e.toDisplayString(o.$slots.td?"":d)+" ",1),e.renderSlot(o.$slots,"td",e.normalizeProps(e.guardReactiveProps({td:d,rowIndex:r,colIndex:z})),void 0,!0)],12,ce))),256))],4))),256))],4)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],46,de),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ie.default,{key:0,config:{type:"table"}})),t.value.userOptions.show&&g.value&&(e.unref(N)||e.unref(A))?(e.openBlock(),e.createBlock(K.UserOptions,{ref:"details",key:`user_option_${q.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isPrinting:e.unref(V),isImaging:e.unref(U),uid:S.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:!1,hasLabel:!1,hasAnimation:t.value.userOptions.buttons.animation,isAnimation:!s.value.showAnimation,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:I.value,chartElement:H.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},zIndex:3,offsetX:12,onGeneratePdf:j,onGenerateCsv:J,onGenerateImage:e.unref(M),onToggleAnimation:X,onToggleFullscreen:te,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(A)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionAnimation?{name:"optionAnimation",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionAnimation",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasAnimation","isAnimation","hasFullscreen","isFullscreen","chartElement","position","titles","onGenerateImage","style"])):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],544))}},me=se._export_sfc(fe,[["__scopeId","data-v-9d3c0699"]]);exports.default=me;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BdlNqn9B.cjs"),we=require("./useResponsive-BJ7DTGpm.cjs"),Oe=require("./Title-Z93_y2gr.cjs"),Ce=require("./usePrinter-DtSijS1B.cjs"),ze=require("./DataTable-CwiudM8v.cjs"),Te=require("./Tooltip-DVfgJ6mM.cjs"),Xe=require("./Legend-TTzHdVeD.cjs"),De=require("./vue-ui-skeleton-Czl8iTZQ.cjs"),Me=require("./vue-ui-accordion-Dm8myRhk.cjs"),Be=require("./useNestedProp-DDvMHRIf.cjs"),Ye=require("./PackageVersion-B_ULr99C.cjs"),Ae=require("./PenAndPaper-DFNDy1y9.cjs"),Ie=require("./useUserOptionState-BgepsfED.cjs"),qe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ge=E=>(e.pushScopeId("data-v-58aa1f52"),E=E(),e.popScopeId(),E),Re=["id"],Ue=["xmlns","viewBox"],He={key:0},je=["id"],We=["stop-color"],Je=["offset","stop-color"],Ke=["offset","stop-color"],Qe=["stop-color"],Ze={key:1},et=["id","cx","cy"],tt=["stop-color","stop-opacity"],lt=["stop-color"],ot=["id"],at=["id"],nt=Ge(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),rt=["id"],ut=["flood-color"],st=["id"],it=["flood-color"],ct=["d","stroke","filter"],dt=["x1","y1","x2","y2","stroke","filter"],vt=["cx","cy","r","fill","filter"],ht=["stroke","d"],ft=["d","fill","stroke","stroke-width","filter"],yt={key:0},pt=["stroke","d"],mt={key:0},gt=["d","stroke","stroke-width","filter"],kt=["d","fill","stroke","stroke-width","filter"],bt={key:1},wt=["cx","cy","r","fill","stroke","stroke-width"],Ct=["cx","cy","r","stroke"],Bt=["cx","cy","r","fill"],xt={key:0},_t=["d","fill","onMouseenter","onClick"],St={key:1},Pt=["cx","cy","r","fill"],Nt=["x","y","fill","font-size"],$t=["x","y","fill","font-size"],Et=["x","y","fill","font-size"],Lt=["x","y","fill","font-size"],Ft=["filter"],Vt={key:0},Ot=["x","y"],zt={key:1},Tt=["cx","cy","fill","stroke","filter","onClick"],Xt=["cx","cy","fill","stroke","filter","onClick"],Dt=["text-anchor","x","y","fill","font-size","onClick"],Mt=["text-anchor","x","y","fill","font-size","onClick"],Yt=["text-anchor","x","y","fill","font-size","onClick"],At=["text-anchor","x","y","fill","font-size","onClick"],It={key:2},qt=["x","y","width"],Gt=["x","y","width"],Rt={key:5,class:"vue-data-ui-watermark"},Ut=["onClick"],Ht={key:0,style:{"font-variant-numeric":"tabular-nums"}},jt={key:1},Wt=["innerHTML"],Jt={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(E,{expose:xe,emit:R}){const b=E,{vue_ui_donut:_e}=n.useConfig(),L=e.computed({get(){return!!b.dataset&&b.dataset.length},set(o){return o}}),P=e.ref(null),U=e.ref(null),H=e.ref(null),z=e.ref(null),j=e.ref(null),W=e.ref(null),J=e.ref(0),K=e.ref(0),Q=e.ref(0);e.onMounted(()=>{Z()}),e.onBeforeUnmount(()=>{z.value&&z.value.disconnect()});function Z(){if(n.objectIsEmpty(b.dataset)?n.error({componentName:"VueUiDonut",type:"dataset"}):b.dataset.forEach((o,u)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{L.value=!1,n.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:u})})}),t.value.responsive){const o=we.throttle(()=>{const{width:u,height:l}=we.useResponsive({chart:P.value,title:t.value.style.chart.title.text?U.value:null,legend:t.value.style.chart.legend.show?H.value:null,source:j.value,noTitle:W.value});r.value.width=u,r.value.height=l});z.value=new ResizeObserver(o),z.value.observe(P.value.parentNode)}}const f=e.ref(n.createUid()),Se=e.ref(null),T=e.ref(!1),M=e.ref(""),p=e.ref(null),ee=e.ref(0);function te(){const o=Be.useNestedProp({userConfig:b.config,defaultConfig:_e});return o.theme?{...Be.useNestedProp({userConfig:n.themes.vue_ui_donut[o.theme]||b.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}const t=e.computed({get:()=>te(),set:o=>o}),{userOptionsVisible:Y,setUserOptionsVisibility:le,keepUserOptionState:oe}=Ie.useUserOptionState({config:t.value});e.watch(()=>b.config,o=>{t.value=te(),Y.value=!t.value.showOnChartHover,Z(),J.value+=1,K.value+=1,Q.value+=1},{deep:!0});const{isPrinting:ae,isImaging:ne,generatePdf:re,generateImage:ue}=Ce.usePrinter({elementId:`donut__${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut"}),Pe=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),se=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),c=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),r=e.ref({height:360,width:512}),F=e.computed(()=>{const o=t.value.style.chart.layout.donut.strokeWidth/512,u=r.value.width*o,l=u>y.value?y.value:u;return l<24?24:l}),_=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:n.convertColorToHex(o.color)||se.value[u]||n.palette[u]||n.palette[u%n.palette.length],value:o.values.reduce((l,a)=>l+a,0),absoluteValues:o.values,comment:o.comment||""}))),g=e.ref(_.value);e.watch(()=>_.value,o=>g.value=o);function Ne(){return _.value.map(o=>({name:o.name,color:o.color,value:o.value}))}const w=e.ref([]),ie=e.ref(null),ce=e.ref(null),S=e.ref(!1);function de(o){const u=_.value.find((s,h)=>h===o);let a=g.value.find((s,h)=>h===o).value;if(w.value.includes(o)){let h=function(){a>s?(cancelAnimationFrame(ie.value),g.value=g.value.map((v,G)=>o===G?{...v,value:s}:v),S.value=!1):(S.value=!0,a+=s*.025,g.value=g.value.map((v,G)=>o===G?{...v,value:a}:v),ie.value=requestAnimationFrame(h))};w.value=w.value.filter(v=>v!==o);const s=u.value;h()}else if(w.value.length<_.value.length-1){let s=function(){a<.1?(cancelAnimationFrame(ce.value),w.value.push(o),g.value=g.value.map((h,v)=>o===v?{...h,value:0}:h),S.value=!1):(S.value=!0,a/=1.1,g.value=g.value.map((h,v)=>o===v?{...h,value:a}:h),ce.value=requestAnimationFrame(s))};s()}R("selectLegend",C.value.map(s=>({name:s.name,color:s.color,value:s.value})))}const C=e.computed(()=>(g.value.forEach((o,u)=>{if([null,void 0].includes(o.values))return{...o,values:[]}}),g.value.map((o,u)=>({...o,seriesIndex:u})).filter((o,u)=>!w.value.includes(u)))),ve=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:n.convertColorToHex(o.color)||se.value[u]||n.palette[u]||n.palette[u%n.palette.length],value:(o.values||[]).reduce((l,a)=>l+a,0),shape:"circle"})).map((o,u)=>({...o,proportion:o.value/b.dataset.map(l=>(l.values||[]).reduce((a,s)=>a+s,0)).reduce((l,a)=>l+a,0),opacity:w.value.includes(u)?.5:1,segregate:()=>!S.value&&de(u),isSegregated:w.value.includes(u)}))),$e=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),y=e.computed(()=>{const o=Math.min(r.value.width/3,r.value.height/3);return o<55?55:o}),d=e.computed(()=>n.makeDonut({series:C.value},r.value.width/2,r.value.height/2,y.value,y.value,1.99999,2,1,360,105.25,F.value)),i=e.computed(()=>{const o=Math.max(...C.value.map(l=>l.value)),u=C.value.map(l=>l.value/o);return n.createPolarAreas({series:u,center:{x:r.value.width/2,y:r.value.height/2},maxRadius:Math.min(r.value.width,r.value.height)/3})});function N(o){return o.x>r.value.width/2+6?"start":o.x<r.value.width/2-6?"end":"middle"}function Ee(o){return o.middlePoint.y>r.value.height/2?n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:100,centerX:r.value.width/2,centerY:r.value.height/2}).y:n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:0,centerX:r.value.width/2,centerY:r.value.height/2}).y-100}function k(o){return o.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function A(o,u){const l=o.value/Le(u);return isNaN(l)?0:n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,n.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:o})}function Le(o){return[...o].map(u=>u.value).reduce((u,l)=>u+l,0)}const m=e.computed(()=>C.value.map(o=>o.value).reduce((o,u)=>o+u,0)),he=e.computed(()=>m.value/C.value.length),fe=e.computed(()=>o=>S.value?o.proportion*100:o.value/m.value*100),I=e.ref(null),V=e.ref(!1);function ye({datapoint:o,relativeIndex:u,seriesIndex:l,show:a=!1}){I.value={datapoint:o,seriesIndex:l,config:t.value,series:_.value},T.value=a,p.value=u;let s="";const h=t.value.style.chart.tooltip.customFormat;if(V.value=!1,n.isFunction(h))try{const v=h({seriesIndex:l,datapoint:o,series:_.value,config:t.value});typeof v=="string"&&(M.value=v,V.value=!0)}catch{console.warn("Custom format cannot be applied."),V.value=!1}if(!V.value){if(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,s+=`<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="${o.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,o.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,relativeIndex:u,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const v=n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,o.proportion*100,n.dataLabel({v:o.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:o,relativeIndex:u,seriesIndex:l});t.value.style.chart.tooltip.showValue?s+=`<span>(${v})</span></div>`:s+=`<b>${v}</b></div>`}t.value.style.chart.comments.showInTooltip&&o.comment&&(s+=`<div class="vue-data-ui-tooltip-comment" style="background:${o.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${o.color}">${o.comment}</div>`),M.value=`<div>${s}</div>`}}function O(o){return t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==o?`url(#blur_${f.value})`:""}const B=e.computed(()=>{const o=C.value.map(l=>({name:l.name,color:l.color})),u=C.value.map(l=>l.value);return{head:o,body:u}});function pe(){e.nextTick(()=>{const o=B.value.head.map((a,s)=>[[a.name],[B.value.body[s]],[isNaN(B.value.body[s]/m.value)?"-":B.value.body[s]/m.value*100]]),u=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=n.createCsvContent(u);n.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const X=e.computed(()=>{const o=[' <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>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:m.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],u=B.value.head.map((s,h)=>{const v=n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:B.value.body[h],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:s.color,name:s.name},v,isNaN(B.value.body[h]/m.value)?"-":(B.value.body[h]/m.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:o,body:u,config:l}}),$=e.ref(!1);function Fe(o){$.value=o,ee.value+=1}const me=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Ve(o){return o.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(u=>"-").join("")}function x(o,u){R("selectDatapoint",{datapoint:o,index:u})}function ge(){c.value.showTable=!c.value.showTable}function ke(){c.value.dataLabels.show=!c.value.dataLabels.show}function be(){c.value.showTooltip=!c.value.showTooltip}const D=e.ref(!1);function q(){D.value=!D.value}return xe({getData:Ne,generatePdf:re,generateCsv:pe,generateImage:ue,toggleTable:ge,toggleLabels:ke,toggleTooltip:be,toggleAnnotator:q}),(o,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:P,class:e.normalizeClass(`vue-ui-donut ${$.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`donut__${f.value}`,onMouseenter:u[6]||(u[6]=()=>e.unref(le)(!0)),onMouseleave:u[7]||(u[7]=()=>e.unref(le)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ae.PenAndPaper,{key:0,parent:P.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:D.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),Pe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:W,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:U,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Oe._sfc_main,{key:`title_${J.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&L.value&&(e.unref(oe)||e.unref(Y))?(e.openBlock(),e.createBlock(Ce.UserOptions,{ref_key:"details",ref:Se,key:`user_option_${ee.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(ne),uid:f.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:$.value,chartElement:P.value,position:t.value.userOptions.position,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:D.value,onToggleFullscreen:Fe,onGeneratePdf:e.unref(re),onGenerateCsv:pe,onGenerateImage:e.unref(ue),onToggleTable:ge,onToggleLabels:ke,onToggleTooltip:be,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(oe)?e.unref(Y)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:a})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:a})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:a})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":$.value,"vue-data-ui-fulscreen--off":!$.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ye._sfc_main),t.value.type==="classic"?(e.openBlock(),e.createElementBlock("defs",He,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${f.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,We),e.createElementVNode("stop",{offset:`${(1-F.value/y.value)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,Je),e.createElementVNode("stop",{offset:`${(1-F.value/y.value/2)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,Ke),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,Qe)],8,je)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,a)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`polar_gradient_${a}_${f.value}`,cx:l.middlePoint.x/r.value.width*100+"%",cy:l.middlePoint.y/r.value.height*100+"%",r:"62%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.shiftHue)(d.value[a].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,tt),e.createElementVNode("stop",{offset:"100%","stop-color":d.value[a].color},null,8,lt)],8,et))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${f.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${f.value}`},null,8,at),nt],8,ot),e.createElementVNode("filter",{id:`shadow_${f.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,ut)],8,rt),e.createElementVNode("filter",{id:`drop_shadow_${f.value}`,"color-interpolation-filters":"sRGB",x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"3","flood-opacity":"1","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,it)],8,st)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(n.calcNutArrowPath)(l,{x:r.value.width/2,y:r.value.height/2},16,16,!1,!1,F.value),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:O(a)},null,8,ct)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).x,y1:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).y,x2:i.value[a].middlePoint.x,y2:i.value[a].middlePoint.y,stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:O(a)},null,8,dt)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:4,cx:r.value.width/2,cy:r.value.height/2,r:y.value<=0?10:y.value,fill:t.value.style.chart.backgroundColor,filter:t.value.style.chart.layout.donut.useShadow?`url(#shadow_${f.value})`:""},null,8,vt)):e.createCommentVNode("",!0),m.value&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,ht))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(n.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:O(a)},null,8,ft))),256))],64)):e.createCommentVNode("",!0),m.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[d.value.length>1?(e.openBlock(),e.createElementBlock("g",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:i.value[a].path,fill:"#FFFFFF"},null,8,pt))),256)),t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("g",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:"transparent",stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:`url(#drop_shadow_${f.value})`},null,8,gt))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:t.value.style.chart.useGradient?`url(#polar_gradient_${a}_${f.value})`:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:O(a)},null,8,kt))),256))])):(e.openBlock(),e.createElementBlock("g",bt,[e.createElementVNode("circle",{cx:r.value.width/2,cy:r.value.height/2,r:y.value,fill:t.value.style.chart.useGradient?`url(#polar_gradient_0_${f.value})`:d.value[0].color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,wt)]))],64)):(e.openBlock(),e.createElementBlock("circle",{key:7,cx:r.value.width/2,cy:r.value.height/2,r:y.value<=0?10:y.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,Ct)),t.value.style.chart.useGradient&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:8,cx:r.value.width/2,cy:r.value.height/2,r:y.value<=0?10:y.value,fill:`url(#gradient_${f.value})`},null,8,Bt)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:9},[d.value.length>1||t.value.type==="classic"?(e.openBlock(),e.createElementBlock("g",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{"data-cy-donut-trap":"",d:t.value.type==="classic"?l.arcSlice:i.value[a].path,fill:p.value===a?"rgba(0,0,0,0.1)":"transparent",onMouseenter:s=>ye({datapoint:l,relativeIndex:a,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:u[0]||(u[0]=s=>{T.value=!1,p.value=null}),onClick:s=>x(l,a)},null,40,_t))),256))])):(e.openBlock(),e.createElementBlock("g",St,[e.createElementVNode("circle",{cx:r.value.width/2,cy:r.value.height/2,r:y.value,fill:p.value===o.i?"rgba(0,0,0,0.1)":"transparent","data-cy-donut-trap":"",onMouseenter:u[1]||(u[1]=l=>ye({datapoint:d.value[0],relativeIndex:0,seriesIndex:d.value[0].seriesIndex,show:!0})),onMouseleave:u[2]||(u[2]=l=>{T.value=!1,p.value=null}),onClick:u[3]||(u[3]=l=>x(d.value[0],o.i))},null,40,Pt)]))],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:10},[t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.color,"font-size":t.value.style.chart.layout.labels.hollow.total.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.total.text),13,Nt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2+t.value.style.chart.layout.labels.hollow.total.fontSize-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.value.color,"font-size":t.value.style.chart.layout.labels.hollow.total.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,m.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:m.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,$t)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.color,"font-size":t.value.style.chart.layout.labels.hollow.average.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.average.text),13,Et)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.fontSize+t.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.value.color,"font-size":t.value.style.chart.layout.labels.hollow.average.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},e.toDisplayString(S.value?"--":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,he.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:he.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Lt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",{filter:O(a),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",Vt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-120:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-60:e.unref(n.calcMarkerOffsetX)(l).x,y:e.unref(n.calcMarkerOffsetY)(l)-(me.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"dataLabel",e.normalizeProps(e.guardReactiveProps({datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a,isSafari:me.value,isVisible:k(l)&&c.value.dataLabels.show,textAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor,percentage:A(l,d.value)})),void 0,!0)])],8,Ot))])):(e.openBlock(),e.createElementBlock("g",zt,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.calcMarkerOffsetX)(l).x,cy:e.unref(n.calcMarkerOffsetY)(l)-3.5,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a?"":`url(#blur_${f.value})`,onClick:s=>x(l,a)},null,8,Tt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).x,cy:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).y,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a?"":`url(#blur_${f.value})`,onClick:s=>x(l,a)},null,8,Xt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(n.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>x(l,a)},e.toDisplayString(A(l,d.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,Dt)):e.createCommentVNode("",!0),k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(n.calcMarkerOffsetX)(l).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.calcMarkerOffsetY)(l)+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>x(l,a)},e.toDisplayString(l.name),13,Mt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":N(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).y,fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>x(l,a)},e.toDisplayString(A(l,d.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,Yt)):e.createCommentVNode("",!0),k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":N(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).y+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>x(l,a)},e.toDisplayString(l.name),13,At)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),c.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",It,[k(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(n.calcMarkerOffsetX)(l).x),y:e.unref(n.calcMarkerOffsetY)(l)+24+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,qt)):e.createCommentVNode("",!0),k(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(N(i.value[a].middlePoint)==="end"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x-t.value.style.chart.comments.width:N(i.value[a].middlePoint)==="middle"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x),y:Ee(i.value[a])+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:N(i.value[a].middlePoint),flexAlign:N(i.value[a].middlePoint)}},void 0,!0)])],8,Gt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,Ft))),256)),e.renderSlot(o.$slots,"svg",{svg:r.value},void 0,!0)],14,Ue)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Rt,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(ne)})),void 0,!0)])):e.createCommentVNode("",!0),L.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(De.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:F.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:H},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Xe.Legend,{key:`legend_${Q.value}`,legendSet:ve.value,config:$e.value,onClickMarker:u[4]||(u[4]=({i:l})=>de(l))},{item:e.withCtx(({legend:l,index:a})=>[e.createElementVNode("div",{style:e.normalizeStyle(`opacity:${w.value.includes(a)?.5:1}`),onClick:s=>l.segregate()},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,index:a}))+" ",1),w.value.includes(a)?(e.openBlock(),e.createElementBlock("span",jt," ( "+e.toDisplayString(Ve(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",Ht," ("+e.toDisplayString(isNaN(l.value/m.value)?"-":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,fe.value(l),e.unref(n.dataLabel)({v:fe.value(l),s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,Ut)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:ve.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:j,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Te._sfc_main,{show:c.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:P.value,content:M.value,isCustom:V.value,isFullscreen:$.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),L.value?(e.openBlock(),e.createBlock(Me.default,{key:8,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ze.DataTable,{key:`table_${K.value}`,colNames:X.value.colNames,head:X.value.head,body:X.value.body,config:X.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:u[5]||(u[5]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Wt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(n.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}))),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Re))}},Kt=qe._export_sfc(Jt,[["__scopeId","data-v-58aa1f52"]]);exports.default=Kt;