vue-data-ui 2.3.99 → 2.4.1

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 (157) hide show
  1. package/README.md +12 -10
  2. package/dist/{Arrow-Dyp57i2e.js → Arrow-BIs_9yK8.js} +1 -1
  3. package/dist/{Arrow-DwqF2Xky.cjs → Arrow-DpMf3yPs.cjs} +1 -1
  4. package/dist/{BaseIcon-DHB44s-g.js → BaseIcon-CXDdkPfN.js} +4 -3
  5. package/dist/{BaseIcon-BDeByyf-.cjs → BaseIcon-E7FmzMcY.cjs} +1 -1
  6. package/dist/{DataTable-CiVu-yQZ.cjs → DataTable-BTgMVOwp.cjs} +1 -1
  7. package/dist/{DataTable-Dv3mZD4M.js → DataTable-DL2agEJ3.js} +2 -2
  8. package/dist/{Legend-iUlykl4S.js → Legend-DXLiSLHd.js} +23 -17
  9. package/dist/Legend-Dj9KiaLv.cjs +1 -0
  10. package/dist/PackageVersion-D4D0WicU.cjs +1 -0
  11. package/dist/{PackageVersion-DWAqn7t0.js → PackageVersion-DtnhR89q.js} +1 -1
  12. package/dist/{Shape-D-cMBFx-.cjs → Shape-7EC2UKDK.cjs} +1 -1
  13. package/dist/{Shape-CDqrt_yL.js → Shape-CO_Ak9Zm.js} +1 -1
  14. package/dist/{Slicer-CQbVH6fI.js → Slicer-BZfUZr1J.js} +2 -2
  15. package/dist/{Slicer-iAp8x_Wq.cjs → Slicer-CLAVjSQP.cjs} +1 -1
  16. package/dist/Title-C-lm3Mkl.cjs +1 -0
  17. package/dist/{Title-CDfZWgra.js → Title-DYNLqCCT.js} +21 -17
  18. package/dist/{Tooltip-0-aPeOmA.js → Tooltip-CICAYyQj.js} +1 -1
  19. package/dist/{Tooltip-D-JR_3NK.cjs → Tooltip-t-3mVhcz.cjs} +1 -1
  20. package/dist/documentation/installation.md +10 -9
  21. package/dist/index-C7_6YjWN.cjs +9 -0
  22. package/dist/{index-COTjlcVF.js → index-DDXisDKy.js} +578 -378
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +90 -5
  25. package/dist/types/vue-data-ui.d.ts +90 -5
  26. package/dist/{useNestedProp-np0rM3ep.cjs → useNestedProp-CC9zGr7C.cjs} +1 -1
  27. package/dist/{useNestedProp-CcjyiBlC.js → useNestedProp-S1UXxUgm.js} +1 -1
  28. package/dist/{usePrinter-DuYSC89K.cjs → usePrinter-8EP4iaGm.cjs} +1 -1
  29. package/dist/{usePrinter-5XpNgqjh.js → usePrinter-8ofTb2MJ.js} +1 -1
  30. package/dist/vue-data-ui-4Yd255Ia.cjs +9 -0
  31. package/dist/{vue-data-ui-Bu3V-W6l.js → vue-data-ui-Cp7bO_tj.js} +68 -66
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +52 -51
  34. package/dist/{vue-ui-3d-bar-C3EecSgn.cjs → vue-ui-3d-bar-BeR2aBgQ.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-DmM70v1H.js → vue-ui-3d-bar-DcF1nyGW.js} +8 -8
  36. package/dist/{vue-ui-accordion-ZppPKpGK.cjs → vue-ui-accordion-Cc9958th.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-CzKJYxd2.js → vue-ui-accordion-D_1fE5EF.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-Bkyd3O37.js → vue-ui-age-pyramid-Oe_yHDL0.js} +9 -9
  39. package/dist/{vue-ui-age-pyramid-BhmOvXIW.cjs → vue-ui-age-pyramid-R-C4P4mI.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-rwo7Hm5A.cjs → vue-ui-annotator-Dbp6cWMr.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-Bmk4N4Co.js → vue-ui-annotator-Dix6_Gm6.js} +1 -1
  42. package/dist/vue-ui-bullet-CQKaC4wG.js +409 -0
  43. package/dist/vue-ui-bullet-DSZox236.cjs +23 -0
  44. package/dist/{vue-ui-candlestick-o8m1DAm8.js → vue-ui-candlestick-CRwzWF6j.js} +10 -10
  45. package/dist/{vue-ui-candlestick-CnYobq1k.cjs → vue-ui-candlestick-Dilozp3V.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-DAck3_R_.js → vue-ui-carousel-table-BHeEbRKY.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-DLQcAZx4.cjs → vue-ui-carousel-table-C0GDDSW9.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-BAQVvxrX.js → vue-ui-chestnut-CRk0RCB9.js} +7 -7
  49. package/dist/{vue-ui-chestnut-r6lsB6H0.cjs → vue-ui-chestnut-DdEcEI04.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-ucua7LYB.cjs → vue-ui-cursor-lU1rts1B.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-CYNxiijm.js → vue-ui-cursor-y0kdr0uA.js} +2 -2
  52. package/dist/{vue-ui-dashboard-DhLCwsFn.cjs → vue-ui-dashboard-BfC0jS-X.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-nnHIe25Y.js → vue-ui-dashboard-OyihaKdu.js} +2 -2
  54. package/dist/{vue-ui-digits-CEI69I0y.cjs → vue-ui-digits-BJfcAiq_.cjs} +1 -1
  55. package/dist/{vue-ui-digits-BB3ZlyZ6.js → vue-ui-digits-IKt4qT2-.js} +2 -2
  56. package/dist/{vue-ui-donut-Ba9Qhfte.js → vue-ui-donut-DFaGk4fI.js} +362 -336
  57. package/dist/vue-ui-donut-DTSVlGMg.cjs +1 -0
  58. package/dist/{vue-ui-donut-evolution-BZaYmvPf.cjs → vue-ui-donut-evolution-BuUafabD.cjs} +1 -1
  59. package/dist/{vue-ui-donut-evolution-CJHa5S50.js → vue-ui-donut-evolution-Dd4o37RP.js} +10 -10
  60. package/dist/{vue-ui-dumbbell-D_reERJf.js → vue-ui-dumbbell-B7j1_JoQ.js} +9 -9
  61. package/dist/{vue-ui-dumbbell-D6Yu9qxX.cjs → vue-ui-dumbbell-CVfgnyKi.cjs} +1 -1
  62. package/dist/{vue-ui-flow-1HFdth8-.cjs → vue-ui-flow-C45dODaB.cjs} +1 -1
  63. package/dist/{vue-ui-flow-sBFdpbtF.js → vue-ui-flow-DkPTzNv9.js} +8 -8
  64. package/dist/{vue-ui-galaxy-ccP0yuQ3.js → vue-ui-galaxy-CH1BDtWl.js} +10 -10
  65. package/dist/{vue-ui-galaxy-DO1moKk6.cjs → vue-ui-galaxy-DlPavMK0.cjs} +1 -1
  66. package/dist/{vue-ui-gauge-CYjZx4Zz.js → vue-ui-gauge-BXiy515T.js} +6 -6
  67. package/dist/{vue-ui-gauge-CuFpl36r.cjs → vue-ui-gauge-vMFUYHYH.cjs} +1 -1
  68. package/dist/{vue-ui-gizmo-DNZwsdp9.js → vue-ui-gizmo-CKQcbe_7.js} +3 -3
  69. package/dist/{vue-ui-gizmo-C3dyTngy.cjs → vue-ui-gizmo-DVwQaEH1.cjs} +1 -1
  70. package/dist/{vue-ui-heatmap-0qNGXzdN.js → vue-ui-heatmap-B-zWMk0Y.js} +9 -9
  71. package/dist/{vue-ui-heatmap-CLjngS-G.cjs → vue-ui-heatmap-CMQqQnxc.cjs} +1 -1
  72. package/dist/{vue-ui-kpi-BiOt8Z9k.js → vue-ui-kpi-CghbfSdM.js} +3 -3
  73. package/dist/{vue-ui-kpi-iclD49Wb.cjs → vue-ui-kpi-CuY3xlVq.cjs} +1 -1
  74. package/dist/{vue-ui-mini-loader-CBPZAUuP.js → vue-ui-mini-loader-C7roqZ4p.js} +2 -2
  75. package/dist/{vue-ui-mini-loader-ASe27a1V.cjs → vue-ui-mini-loader-CH_PfeDc.cjs} +1 -1
  76. package/dist/{vue-ui-molecule-VqY8WZHi.js → vue-ui-molecule-BwmkMEVN.js} +10 -10
  77. package/dist/{vue-ui-molecule-uCEX5lMP.cjs → vue-ui-molecule-nOuD0hR5.cjs} +1 -1
  78. package/dist/{vue-ui-mood-radar-RYbB7jdY.cjs → vue-ui-mood-radar-Bof_C9Ae.cjs} +1 -1
  79. package/dist/{vue-ui-mood-radar-B0cjzFkt.js → vue-ui-mood-radar-DSznHxLS.js} +10 -10
  80. package/dist/{vue-ui-nested-donuts-DbBSbOjx.js → vue-ui-nested-donuts-CiE4DdEQ.js} +10 -10
  81. package/dist/{vue-ui-nested-donuts-Bfu90lZl.cjs → vue-ui-nested-donuts-DIb6YyWv.cjs} +1 -1
  82. package/dist/{vue-ui-onion-DJLGXvfr.js → vue-ui-onion-D9o6Rcgu.js} +10 -10
  83. package/dist/{vue-ui-onion-DK7lJvIH.cjs → vue-ui-onion-N3tRNc4u.cjs} +1 -1
  84. package/dist/{vue-ui-parallel-coordinate-plot-B0_1Uh7a.js → vue-ui-parallel-coordinate-plot-BcYrYXhG.js} +11 -11
  85. package/dist/{vue-ui-parallel-coordinate-plot-BaZ5niQk.cjs → vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs} +1 -1
  86. package/dist/{vue-ui-quadrant-CnAk8Np9.js → vue-ui-quadrant-Cs3A77us.js} +11 -11
  87. package/dist/{vue-ui-quadrant-BCadkOrx.cjs → vue-ui-quadrant-Do48rGrX.cjs} +1 -1
  88. package/dist/{vue-ui-quick-chart--4pkEtK0.cjs → vue-ui-quick-chart-BxU4d-sJ.cjs} +1 -1
  89. package/dist/{vue-ui-quick-chart-BrgtffFL.js → vue-ui-quick-chart-CiiSUexi.js} +8 -8
  90. package/dist/{vue-ui-radar-CDlE8jus.js → vue-ui-radar-CNSpiNrM.js} +11 -11
  91. package/dist/{vue-ui-radar-C68BFXPH.cjs → vue-ui-radar-CooAvwPA.cjs} +1 -1
  92. package/dist/vue-ui-rating-GoUNDOdZ.cjs +1 -0
  93. package/dist/vue-ui-rating-b_iYZWF8.js +323 -0
  94. package/dist/{vue-ui-relation-circle-_5UsoCBf.js → vue-ui-relation-circle-nRf1pvD0.js} +6 -6
  95. package/dist/{vue-ui-relation-circle-0OvmIoRR.cjs → vue-ui-relation-circle-uNgJni4x.cjs} +1 -1
  96. package/dist/{vue-ui-rings-BHVrR1L1.js → vue-ui-rings-BgRc1o4_.js} +10 -10
  97. package/dist/{vue-ui-rings-Duu-Dbns.cjs → vue-ui-rings-iIgQI9Ws.cjs} +1 -1
  98. package/dist/{vue-ui-scatter-CSfeAiML.js → vue-ui-scatter-CVuoW-cD.js} +11 -11
  99. package/dist/{vue-ui-scatter-azoiHq_a.cjs → vue-ui-scatter-CkrpmLxP.cjs} +1 -1
  100. package/dist/{vue-ui-screenshot-D2-GzcYt.cjs → vue-ui-screenshot-Co2o48d6.cjs} +1 -1
  101. package/dist/{vue-ui-screenshot-DhMpdJsm.js → vue-ui-screenshot-Csc0dQL9.js} +1 -1
  102. package/dist/{vue-ui-skeleton-CYgbDsKG.js → vue-ui-skeleton-B2sRnIXX.js} +3 -3
  103. package/dist/{vue-ui-skeleton-yOWIPVsZ.cjs → vue-ui-skeleton-CGV1dEUD.cjs} +1 -1
  104. package/dist/vue-ui-smiley-Ci3uMgVh.cjs +2 -0
  105. package/dist/{vue-ui-smiley-DDn0IZKJ.js → vue-ui-smiley-D4s-AdIE.js} +405 -320
  106. package/dist/{vue-ui-spark-trend-BMdLIhg7.cjs → vue-ui-spark-trend-BfoEoJEy.cjs} +1 -1
  107. package/dist/{vue-ui-spark-trend-DxwmzstI.js → vue-ui-spark-trend-CHKQGMLs.js} +5 -5
  108. package/dist/{vue-ui-sparkbar-Dk8VLc5p.js → vue-ui-sparkbar-Bb1fq2GR.js} +4 -4
  109. package/dist/{vue-ui-sparkbar-yocSweJn.cjs → vue-ui-sparkbar-DB2DeXti.cjs} +1 -1
  110. package/dist/{vue-ui-sparkgauge-CdW6FTRw.cjs → vue-ui-sparkgauge-CJepIY2u.cjs} +1 -1
  111. package/dist/{vue-ui-sparkgauge-G7BowYq4.js → vue-ui-sparkgauge-DWuaAQbo.js} +4 -4
  112. package/dist/{vue-ui-sparkhistogram-BWulWwCi.cjs → vue-ui-sparkhistogram-B7B36LLT.cjs} +1 -1
  113. package/dist/{vue-ui-sparkhistogram-CkkEGb0a.js → vue-ui-sparkhistogram-CjeJ3ch1.js} +5 -5
  114. package/dist/{vue-ui-sparkline-CaetICAe.cjs → vue-ui-sparkline-BcqmwDAb.cjs} +1 -1
  115. package/dist/{vue-ui-sparkline-LBi6ypp4.js → vue-ui-sparkline-DGJDBArr.js} +4 -4
  116. package/dist/{vue-ui-sparkstackbar-DxUkSfRG.js → vue-ui-sparkstackbar-B3ul3qUZ.js} +4 -4
  117. package/dist/{vue-ui-sparkstackbar-CAJaJ3ZQ.cjs → vue-ui-sparkstackbar-DT3aKNeV.cjs} +1 -1
  118. package/dist/{vue-ui-stackbar-BPyxp0m8.cjs → vue-ui-stackbar-CRcUugkl.cjs} +1 -1
  119. package/dist/{vue-ui-stackbar-BP1YHhjl.js → vue-ui-stackbar-DNROvZII.js} +11 -11
  120. package/dist/{vue-ui-strip-plot-BYJWkk2_.js → vue-ui-strip-plot-CIb2LSV8.js} +10 -10
  121. package/dist/{vue-ui-strip-plot-BJSzqxzi.cjs → vue-ui-strip-plot-Ck9Fmt_b.cjs} +1 -1
  122. package/dist/{vue-ui-table-C0-NQWi3.cjs → vue-ui-table-B_sFrAO9.cjs} +1 -1
  123. package/dist/{vue-ui-table-CWHUBpqz.js → vue-ui-table-CmVi0nv2.js} +1 -1
  124. package/dist/{vue-ui-table-heatmap-uYQph968.js → vue-ui-table-heatmap-CgFr38QT.js} +4 -4
  125. package/dist/{vue-ui-table-heatmap-9oVqDvLC.cjs → vue-ui-table-heatmap-Chvdf2Gi.cjs} +1 -1
  126. package/dist/{vue-ui-table-sparkline-BHJAP-Uh.cjs → vue-ui-table-sparkline-DUUYQ5dH.cjs} +1 -1
  127. package/dist/{vue-ui-table-sparkline-Bv39O2DT.js → vue-ui-table-sparkline-eg2Qd8ws.js} +5 -5
  128. package/dist/{vue-ui-thermometer-CqcNegd7.cjs → vue-ui-thermometer-BFfN4aat.cjs} +1 -1
  129. package/dist/{vue-ui-thermometer-JLaF8-hy.js → vue-ui-thermometer-BePmFiwy.js} +6 -6
  130. package/dist/{vue-ui-timer-B2ZQBIVg.js → vue-ui-timer-COSI3Q5T.js} +5 -5
  131. package/dist/{vue-ui-timer-fu2zcs6f.cjs → vue-ui-timer-DM1IStj1.cjs} +1 -1
  132. package/dist/{vue-ui-tiremarks-DzrCVTcA.cjs → vue-ui-tiremarks-BkYXzU3R.cjs} +1 -1
  133. package/dist/{vue-ui-tiremarks-CXuGp82M.js → vue-ui-tiremarks-d6TmSHY7.js} +6 -6
  134. package/dist/{vue-ui-treemap-DmEpWWkN.cjs → vue-ui-treemap-BgeZnbl3.cjs} +1 -1
  135. package/dist/{vue-ui-treemap-CubutXgp.js → vue-ui-treemap-Qg0858o6.js} +10 -10
  136. package/dist/{vue-ui-vertical-bar-Dqd4bZVC.js → vue-ui-vertical-bar-CieqHVD5.js} +10 -10
  137. package/dist/{vue-ui-vertical-bar-BpyY1mcc.cjs → vue-ui-vertical-bar-D3atbdvl.cjs} +1 -1
  138. package/dist/{vue-ui-waffle-DzbRkTbY.cjs → vue-ui-waffle-CD7C9Lu4.cjs} +1 -1
  139. package/dist/{vue-ui-waffle-D1n_ln-O.js → vue-ui-waffle-CjNhM-mV.js} +10 -10
  140. package/dist/{vue-ui-wheel-C-BFxhCO.js → vue-ui-wheel-B8mbO6ht.js} +6 -6
  141. package/dist/{vue-ui-wheel-BTJ9Ds5T.cjs → vue-ui-wheel-CYmM7J61.cjs} +1 -1
  142. package/dist/{vue-ui-word-cloud-DdbqYmZz.js → vue-ui-word-cloud-DMXrUmX5.js} +9 -9
  143. package/dist/{vue-ui-word-cloud-BZLUTH8A.cjs → vue-ui-word-cloud-Dm9yZ1zQ.cjs} +1 -1
  144. package/dist/{vue-ui-xy-BEB7zD0E.cjs → vue-ui-xy-DoWnidom.cjs} +1 -1
  145. package/dist/{vue-ui-xy-canvas-DE1jTXbE.js → vue-ui-xy-canvas-BYdTxzi6.js} +10 -10
  146. package/dist/{vue-ui-xy-canvas-CJHNw8ek.cjs → vue-ui-xy-canvas-DHs5sb3t.cjs} +1 -1
  147. package/dist/{vue-ui-xy-CLJaG6lQ.js → vue-ui-xy-x8KEsGV-.js} +13 -13
  148. package/package.json +1 -1
  149. package/dist/Legend-ComtyeZF.cjs +0 -1
  150. package/dist/PackageVersion-BqVp7cHC.cjs +0 -1
  151. package/dist/Title-Bpx2Ub4Z.cjs +0 -1
  152. package/dist/index-DQRLTu78.cjs +0 -9
  153. package/dist/vue-data-ui-D3zaRZjl.cjs +0 -9
  154. package/dist/vue-ui-donut-Cruh6AlQ.cjs +0 -1
  155. package/dist/vue-ui-rating-DV3d_vAO.cjs +0 -1
  156. package/dist/vue-ui-rating-DwTC908t.js +0 -271
  157. package/dist/vue-ui-smiley-BXV9UMjs.cjs +0 -2
@@ -0,0 +1,323 @@
1
+ import { ref as h, computed as x, watch as E, onMounted as K, openBlock as a, createElementBlock as i, normalizeStyle as o, createElementVNode as r, toDisplayString as g, createCommentVNode as d, unref as s, Fragment as T, renderList as H, withKeys as P } from "vue";
2
+ import { u as W, c as q, o as J, e as Q, i as $, f as _, X as k, w as R, U as F } from "./index-DDXisDKy.js";
3
+ import { u as Z } from "./useNestedProp-S1UXxUgm.js";
4
+ import { _ as tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const et = {
6
+ key: 0,
7
+ class: "vue-ui-rating-title",
8
+ style: { width: "100%" }
9
+ }, lt = ["src", "height", "width"], at = ["xmlns", "height", "width"], it = ["id"], ot = ["stop-color"], st = ["stop-color"], nt = ["points", "fill", "stroke", "stroke-width"], rt = ["src", "alt", "height", "width", "id"], ut = ["xmlns", "viewBox", "height", "id"], vt = ["id"], yt = ["stop-color"], dt = ["stop-color"], pt = ["points", "fill", "stroke"], gt = ["xmlns", "height"], ct = ["onClick", "onMouseenter", "onKeyup"], ft = ["onMouseenter"], mt = {
10
+ __name: "vue-ui-rating",
11
+ props: {
12
+ config: {
13
+ type: Object,
14
+ default() {
15
+ return {};
16
+ }
17
+ },
18
+ dataset: {
19
+ type: Object,
20
+ default() {
21
+ return {};
22
+ }
23
+ }
24
+ },
25
+ emits: ["rate"],
26
+ setup(X, { expose: j, emit: B }) {
27
+ const u = X, { vue_ui_rating: I } = W(), m = h(q()), z = h(!1), y = h(void 0), b = h([]), t = x({
28
+ get: () => C(),
29
+ set: (l) => l
30
+ });
31
+ function C() {
32
+ return Z({
33
+ userConfig: u.config,
34
+ defaultConfig: I
35
+ });
36
+ }
37
+ E(() => u.config, (l) => {
38
+ t.value = C(), M();
39
+ }, { deep: !0 });
40
+ const Y = x(() => typeof u.dataset.rating == "object" && !Array.isArray(u.dataset.rating) ? L(u.dataset.rating) : u.dataset.rating), G = x(() => typeof u.dataset.rating == "object" && !Array.isArray(u.dataset.rating)), v = h(Y.value), S = x(() => t.value.type === "image"), c = x(() => t.value.readonly);
41
+ function L(l) {
42
+ let n = 0, e = 0;
43
+ for (const p in l) {
44
+ const D = parseInt(p), V = l[p];
45
+ n += D * V, e += V;
46
+ }
47
+ if (e === 0)
48
+ return 0;
49
+ const f = n / e;
50
+ return Math.min(t.value.to, Math.max(t.value.from, f));
51
+ }
52
+ K(() => {
53
+ M();
54
+ });
55
+ function M() {
56
+ J(u.dataset) && Q({
57
+ componentName: "VueUiRating",
58
+ type: "dataset"
59
+ }), b.value = [];
60
+ for (let l = t.value.from; l <= t.value.to; l += 1)
61
+ b.value.push(l);
62
+ }
63
+ function w(l, n = !1) {
64
+ return l > y.value || c.value ? n ? t.value.style.image.inactiveOpacity : t.value.style.star.inactiveColor : n ? 1 : t.value.style.star.useGradient ? `url(#star_gradient_under_${m.value})` : t.value.style.star.activeColor;
65
+ }
66
+ function N(l, n = !1) {
67
+ const e = v.value - l, f = n ? 1 : 100;
68
+ switch (!0) {
69
+ case e <= 0:
70
+ return 1e-3;
71
+ case e > 1:
72
+ return 1 * f;
73
+ default:
74
+ return e * f;
75
+ }
76
+ }
77
+ function A(l) {
78
+ c.value || (v.value = l, B("rate", l));
79
+ }
80
+ function O() {
81
+ return v.value;
82
+ }
83
+ function U(l = !0) {
84
+ c.value = l;
85
+ }
86
+ return j({
87
+ getData: O,
88
+ toggleReadonly: U
89
+ }), (l, n) => (a(), i("div", {
90
+ style: o(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%`),
91
+ class: "vue-ui-rating",
92
+ onMouseover: n[2] || (n[2] = (e) => z.value = !0),
93
+ onMouseleave: n[3] || (n[3] = (e) => {
94
+ z.value = !1, y.value = void 0;
95
+ })
96
+ }, [
97
+ t.value.style.title.text ? (a(), i("div", et, [
98
+ r("div", {
99
+ style: o(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold ? "bold" : "normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)
100
+ }, g(t.value.style.title.text), 5),
101
+ t.value.style.title.subtitle.text ? (a(), i("div", {
102
+ key: 0,
103
+ style: o(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold ? "bold" : "normal"}`)
104
+ }, g(t.value.style.title.subtitle.text), 5)) : d("", !0)
105
+ ])) : d("", !0),
106
+ t.value.style.rating.show && t.value.style.rating.position === "top" ? (a(), i("div", {
107
+ key: 1,
108
+ style: o(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold ? "bold" : "normal"};margin-left:${t.value.style.rating.offsetX}px`)
109
+ }, g(s($)(
110
+ t.value.style.rating.formatter,
111
+ v.value,
112
+ s(_)({
113
+ v: v.value,
114
+ r: t.value.style.rating.roundingValue
115
+ }),
116
+ t.value
117
+ )), 5)) : d("", !0),
118
+ r("div", {
119
+ class: "vue-ui-rating-wrapper",
120
+ style: o(`height:${t.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)
121
+ }, [
122
+ t.value.style.rating.show && t.value.style.rating.position === "left" ? (a(), i("div", {
123
+ key: 0,
124
+ style: o(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold ? "bold" : "normal"};padding-right:${t.value.style.rating.offsetX}px`)
125
+ }, g(s($)(
126
+ t.value.style.rating.formatter,
127
+ v.value,
128
+ s(_)({
129
+ v: v.value,
130
+ r: t.value.style.rating.roundingValue
131
+ }),
132
+ t.value
133
+ )), 5)) : d("", !0),
134
+ (a(!0), i(T, null, H(b.value, (e, f) => (a(), i("div", {
135
+ class: "vue-ui-rating-unit-container",
136
+ style: o(`position:relative;height:${t.value.style.itemSize}px;width:${t.value.style.itemSize}px`)
137
+ }, [
138
+ S.value ? (a(), i("img", {
139
+ key: 0,
140
+ src: t.value.style.image.src,
141
+ height: t.value.style.itemSize,
142
+ width: t.value.style.itemSize,
143
+ class: "vue-ui-rating-unit",
144
+ style: o(`position:absolute;top:0;left:0;opacity:${isNaN(y.value) ? t.value.style.image.inactiveOpacity : w(e, !0)}`)
145
+ }, null, 12, lt)) : (a(), i("svg", {
146
+ key: 1,
147
+ xmlns: s(k),
148
+ viewBox: "0 0 100 100",
149
+ height: t.value.style.itemSize,
150
+ width: t.value.style.itemSize,
151
+ class: "vue-ui-rating-unit"
152
+ }, [
153
+ r("defs", null, [
154
+ r("radialGradient", {
155
+ cx: "50%",
156
+ cy: "50%",
157
+ r: "50%",
158
+ fx: "50%",
159
+ fy: "50%",
160
+ id: `star_gradient_under_${m.value}`
161
+ }, [
162
+ r("stop", {
163
+ offset: "0%",
164
+ "stop-color": `${s(R)(t.value.style.star.activeColor, 0.05)}`
165
+ }, null, 8, ot),
166
+ r("stop", {
167
+ offset: "100%",
168
+ "stop-color": t.value.style.star.activeColor
169
+ }, null, 8, st)
170
+ ], 8, it)
171
+ ]),
172
+ r("polygon", {
173
+ points: s(F)({
174
+ plot: { x: 50, y: 50 },
175
+ radius: 30,
176
+ apexes: t.value.style.star.apexes
177
+ }),
178
+ fill: isNaN(y.value) ? t.value.style.star.inactiveColor : w(e),
179
+ stroke: t.value.style.star.borderColor ? t.value.style.star.borderColor : y.value ? w(e) : t.value.style.star.inactiveColor,
180
+ "stroke-width": t.value.style.star.borderWidth,
181
+ "stroke-linecap": "round",
182
+ "stroke-linejoin": "round"
183
+ }, null, 8, nt)
184
+ ], 8, at)),
185
+ S.value ? (a(), i("img", {
186
+ key: 2,
187
+ src: t.value.style.image.src,
188
+ alt: `${t.value.style.image.alt} ${e}`,
189
+ height: t.value.style.itemSize,
190
+ width: t.value.style.itemSize,
191
+ id: `active_${m.value}_${e}`,
192
+ class: "vue-ui-rating-unit",
193
+ style: o(`position:absolute;top:0;left:0;clip:rect(0px,${N(f, !0) * t.value.style.itemSize}px,${t.value.style.itemSize}px,0px`)
194
+ }, null, 12, rt)) : (a(), i("svg", {
195
+ key: 3,
196
+ xmlns: s(k),
197
+ viewBox: `0 0 ${N(f)} 100`,
198
+ height: t.value.style.itemSize,
199
+ class: "vue-ui-rating-unit",
200
+ id: `active_${m.value}_${e}`,
201
+ style: { position: "absolute", top: "0", left: "0" }
202
+ }, [
203
+ r("defs", null, [
204
+ r("radialGradient", {
205
+ cx: "50%",
206
+ cy: "50%",
207
+ r: "50%",
208
+ fx: "50%",
209
+ fy: "50%",
210
+ id: `star_gradient_over_${m.value}`
211
+ }, [
212
+ r("stop", {
213
+ offset: "0%",
214
+ "stop-color": `${s(R)(t.value.style.star.activeColor, 0.05)}`
215
+ }, null, 8, yt),
216
+ r("stop", {
217
+ offset: "100%",
218
+ "stop-color": t.value.style.star.activeColor
219
+ }, null, 8, dt)
220
+ ], 8, vt)
221
+ ]),
222
+ r("polygon", {
223
+ points: s(F)({
224
+ plot: { x: 50, y: 50 },
225
+ radius: 30,
226
+ apexes: t.value.style.star.apexes
227
+ }),
228
+ fill: t.value.style.star.useGradient ? `url(#star_gradient_over_${m.value})` : t.value.style.star.activeColor,
229
+ stroke: t.value.style.star.activeColor
230
+ }, null, 8, pt)
231
+ ], 8, ut)),
232
+ (a(), i("svg", {
233
+ xmlns: s(k),
234
+ viewBox: "0 0 100 100",
235
+ height: t.value.style.itemSize,
236
+ class: "vue-ui-rating-unit",
237
+ style: o(`position:absolute;top:0;left:0;${c.value ? "" : "cursor:pointer"}`)
238
+ }, [
239
+ c.value ? d("", !0) : (a(), i("rect", {
240
+ key: 0,
241
+ class: "vue-ui-rating-mouse-trap",
242
+ x: 0,
243
+ y: 0,
244
+ width: 100,
245
+ height: 100,
246
+ fill: "transparent",
247
+ onClick: (p) => A(e),
248
+ onMouseenter: (p) => y.value = e,
249
+ onMouseleave: n[0] || (n[0] = (p) => y.value = void 0),
250
+ tabindex: "0",
251
+ onKeyup: P((p) => A(e), ["enter"])
252
+ }, null, 40, ct)),
253
+ c.value ? (a(), i("rect", {
254
+ key: 1,
255
+ class: "vue-ui-rating-mouse-trap",
256
+ x: 0,
257
+ y: 0,
258
+ width: 100,
259
+ height: 100,
260
+ fill: "transparent",
261
+ onMouseenter: (p) => y.value = e,
262
+ onMouseleave: n[1] || (n[1] = (p) => y.value = void 0)
263
+ }, null, 40, ft)) : d("", !0)
264
+ ], 12, gt)),
265
+ t.value.style.tooltip.show && G.value && c.value ? (a(), i("div", {
266
+ key: 4,
267
+ class: "vue-ui-rating-tooltip",
268
+ style: o(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48 + t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${y.value === e ? "block" : "none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)
269
+ }, [
270
+ r("div", {
271
+ style: o(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)
272
+ }, [
273
+ r("span", {
274
+ style: o(`font-size:${t.value.style.tooltip.fontSize}px`)
275
+ }, g(e) + ":", 5),
276
+ r("span", {
277
+ style: o(`font-weight:${t.value.style.tooltip.bold ? "bold" : "normal"};font-size:${t.value.style.tooltip.fontSize}px`)
278
+ }, g(s($)(
279
+ t.value.style.tooltip.formatter,
280
+ u.dataset.rating[e],
281
+ s(_)({
282
+ v: u.dataset.rating[e],
283
+ r: t.value.style.tooltip.roundingValue
284
+ }),
285
+ t.value
286
+ )), 5),
287
+ r("div", {
288
+ style: o(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)
289
+ }, " ▼ ", 4)
290
+ ], 4)
291
+ ], 4)) : d("", !0)
292
+ ], 4))), 256)),
293
+ t.value.style.rating.show && t.value.style.rating.position === "right" ? (a(), i("div", {
294
+ key: 1,
295
+ style: o(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold ? "bold" : "normal"};padding-left:${t.value.style.rating.offsetX}px`)
296
+ }, g(s($)(
297
+ t.value.style.rating.formatter,
298
+ v.value,
299
+ s(_)({
300
+ v: v.value,
301
+ r: t.value.style.rating.roundingValue
302
+ }),
303
+ t.value
304
+ )), 5)) : d("", !0)
305
+ ], 4),
306
+ t.value.style.rating.show && t.value.style.rating.position === "bottom" ? (a(), i("div", {
307
+ key: 2,
308
+ style: o(`width:100%;text-align:center;margin-top:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold ? "bold" : "normal"};margin-left:${t.value.style.rating.offsetX}px`)
309
+ }, g(s($)(
310
+ t.value.style.rating.formatter,
311
+ v.value,
312
+ s(_)({
313
+ v: v.value,
314
+ r: t.value.style.rating.roundingValue
315
+ }),
316
+ t.value
317
+ )), 5)) : d("", !0)
318
+ ], 36));
319
+ }
320
+ }, bt = /* @__PURE__ */ tt(mt, [["__scopeId", "data-v-d90e158f"]]);
321
+ export {
322
+ bt as default
323
+ };
@@ -1,11 +1,11 @@
1
1
  import { useCssVars as _e, computed as c, ref as u, watch as ke, onMounted as $e, onBeforeUnmount as xe, openBlock as s, createElementBlock as o, normalizeStyle as _, createBlock as E, createCommentVNode as k, unref as h, createSlots as Ce, withCtx as z, renderSlot as $, normalizeProps as K, guardReactiveProps as Q, normalizeClass as L, createVNode as we, createElementVNode as be, Fragment as b, renderList as O, toDisplayString as Oe } from "vue";
2
- import { u as Pe, c as Ae, t as Ie, a as Fe, p as Z, b as Ee, o as ze, e as ee, g as Le, X as Ne } from "./index-COTjlcVF.js";
2
+ import { u as Pe, c as Ae, t as Ie, a as Fe, p as Z, b as Ee, o as ze, e as ee, g as Le, X as Ne } from "./index-DDXisDKy.js";
3
3
  import { t as Se, u as Re } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as Te } from "./Title-CDfZWgra.js";
5
- import { u as Me, U as je } from "./usePrinter-5XpNgqjh.js";
6
- import Be from "./vue-ui-skeleton-CYgbDsKG.js";
7
- import { u as te } from "./useNestedProp-CcjyiBlC.js";
8
- import { _ as Ge } from "./PackageVersion-DWAqn7t0.js";
4
+ import { _ as Te } from "./Title-DYNLqCCT.js";
5
+ import { u as Me, U as je } from "./usePrinter-8ofTb2MJ.js";
6
+ import Be from "./vue-ui-skeleton-B2sRnIXX.js";
7
+ import { u as te } from "./useNestedProp-S1UXxUgm.js";
8
+ import { _ as Ge } from "./PackageVersion-DtnhR89q.js";
9
9
  import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const De = ["id"], Ve = ["xmlns", "viewBox"], We = ["cx", "cy", "r", "stroke", "stroke-width"], Xe = { key: 0 }, Ye = ["stroke", "d", "stroke-width"], qe = { key: 1 }, He = ["stroke", "x1", "x2", "y1", "y2"], Je = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], Ke = ["cx", "cy", "fill", "onClick", "r"], Qe = {
11
11
  key: 3,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DQRLTu78.cjs"),q=require("./useResponsive-B3TrDDIG.cjs"),ae=require("./Title-Bpx2Ub4Z.cjs"),M=require("./usePrinter-DuYSC89K.cjs"),se=require("./vue-ui-skeleton-yOWIPVsZ.cjs"),j=require("./useNestedProp-np0rM3ep.cjs"),oe=require("./PackageVersion-BqVp7cHC.cjs"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],de=["xmlns","viewBox"],ve=["cx","cy","r","stroke","stroke-width"],fe={key:0},ge=["stroke","d","stroke-width"],me={key:1},ye=["stroke","x1","x2","y1","y2"],he=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],ke=["cx","cy","fill","onClick","r"],pe={key:3,class:"vue-data-ui-watermark"},_e={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(G,{expose:U}){const u=G;e.useCssVars(t=>({db99e4e4:H.value,"1847af26":Y.value,"36a818e2":J.value}));const{vue_ui_relation_circle:D}=o.useConfig(),p=e.computed(()=>!!u.dataset&&Object.keys(u.dataset).length),g=e.ref(o.createUid()),$=e.ref(0),y=e.ref(null),w=e.ref(null),B=e.ref(0),r=e.computed({get:()=>b(),set:t=>t});function b(){const t=j.useNestedProp({userConfig:u.config,defaultConfig:D});return t.theme?{...j.useNestedProp({userConfig:o.themes.vue_ui_relation_circle[t.theme]||u.config,defaultConfig:t}),customPalette:o.themePalettes[t.theme]||o.palette}:t}e.watch(()=>u.config,t=>{r.value=b(),S(),B.value+=1},{deep:!0});const{isPrinting:P,isImaging:O,generatePdf:E,generateImage:A}=M.usePrinter({elementId:`relation_circle_${g.value}`,fileName:r.value.style.title.text||"vue-ui-relation-circle"}),I=e.computed(()=>o.convertCustomPalette(r.value.customPalette)),d=e.ref([]),f=e.ref([]),i=e.ref({}),c=e.ref([]),W=e.ref(0),_=e.computed(()=>u.dataset.slice(0,r.value.style.limit)),C=e.ref(r.value.style.size),a=e.ref({height:r.value.style.size,width:r.value.style.size}),v=e.computed({get(){return C.value*r.value.style.circle.radiusProportion},set(t){return t}}),X=e.computed(()=>r.value.style.links.curved),Y=e.computed(()=>`${r.value.style.animation.speedMs}ms`),H=e.computed(()=>v.value*2),J=e.computed(()=>v.value*4),h=e.ref(null);e.onMounted(()=>{S(),document.getElementById(`relation_circle_${g.value}`).addEventListener("click",z)});function S(){if(o.objectIsEmpty(u.dataset)?o.error({componentName:"VueUiRelationCircle",type:"dataset"}):u.dataset.forEach((t,n)=>{o.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["id","label","relations","weights"]}).forEach(l=>{o.error({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:l,index:n})})}),r.value.responsive){const t=q.throttle(()=>{const{width:n,height:l}=q.useResponsive({chart:y.value,title:r.value.style.title.text?w.value:null});C.value=Math.min(n,l),a.value.width=n,a.value.height=l,v.value=C.value*r.value.style.circle.radiusProportion,d.value=[],f.value=[],F(),N()});h.value=new ResizeObserver(t),h.value.observe(y.value.parentNode)}else d.value=[],f.value=[],F(),N()}e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${g.value}`).removeEventListener("click",z),h.value&&h.value.disconnect()});function z(t){const n=t.target;n&&Array.from(n.classList).includes("vue-ui-user-options")||n&&Array.from(n.classList).includes("vue-ui-user-options-summary")||n&&Array.from(n.classList).includes("vue-data-ui-button")||n&&Array.from(n.classList).includes("vue-ui-relation-circle-legend")||(i.value={},c.value=[])}function F(){const t=6.28319/_.value.length,n=360/_.value.length;let l=0,s=0;_.value.forEach((m,x)=>{const ne=v.value*Math.cos(l)+a.value.width/2,ie=v.value*Math.sin(l)+a.value.height/2+r.value.style.circle.offsetY;d.value.push({x:ne,y:ie,...m,color:m.color?m.color:I.value[x]?I.value[x]:o.palette[x],regAngle:s}),l+=t,s+=n})}function N(){d.value.forEach(t=>{d.value.filter(l=>l.relations.includes(t.id)).forEach((l,s)=>{f.value.push({weight:t.weights&&t.weights[s]?t.weights[s]:1,relationId:`${t.id}_${l.id}`,x1:t.x,y1:t.y,x2:l.x,y2:l.y,colorSource:t.color,colorTarget:l.color,...t})})})}const K=e.computed(()=>Math.max(...f.value.map(t=>t.weight)));function Q(t){return Object.hasOwn(i.value,"x")?c.value.includes(t.id)?"opacity:1":"opacity:0.1":"opacity:1"}function L(t){return Object.hasOwn(i.value,"x")?t.colorTarget:t.colorSource}function R(t){return Object.hasOwn(i.value,"x")?c.value.includes(t.id)&&t.relationId===`${t.id}_${i.value.id}`||t.relationId===`${i.value.id}_${t.id}`?`opacity:1;stroke-width:${V(t)}`:"opacity: 0":"opacity: 1"}function Z(t){return t.regAngle>90&&t.regAngle<270?"end":"start"}function ee(t){return t.regAngle>90&&t.regAngle<270?t.x-5:t.x+5}function te(t){return Object.hasOwn(i.value,"x")?i.value.id===t.id||c.value.includes(t.id)?"opacity:1":"opacity:0.2":"opacity:1"}function le(t){return t.regAngle>90&&t.regAngle<270?`rotate(${t.regAngle+180},${t.x},${t.y})`:`rotate(${t.regAngle},${t.x},${t.y})`}function T(t){W.value=360-t.regAngle,i.value.id&&t.id===i.value.id?(i.value={},c.value=[]):(i.value=t,c.value=[...t.relations])}function V(t){return t.weight/K.value*r.value.style.links.maxWidth}const k=e.ref(!1);function re(t){k.value=t,$.value+=1}return U({generatePdf:E,generateImage:A}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:y,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${r.value.style.backgroundColor};text-align:center;${r.value.responsive?"height: 100%":""}`),id:`relation_circle_${g.value}`},[r.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:w,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ae._sfc_main,{key:`title_${B.value}`,config:{title:{cy:"relation-div-title",...r.value.style.title},subtitle:{cy:"relation-div-subtitle",...r.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),r.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(M.UserOptions,{ref:"details",key:`user_options_${$.value}`,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,isPrinting:e.unref(P),isImaging:e.unref(O),uid:g.value,hasPdf:r.value.userOptions.buttons.pdf,hasImg:r.value.userOptions.buttons.img,hasFullscreen:r.value.userOptions.buttons.img,hasXls:!1,isFullscreen:k.value,titles:{...r.value.userOptions.buttonTitles},chartElement:y.value,position:r.value.userOptions.position,onToggleFullscreen:re,onGeneratePdf:e.unref(E),onGenerateImage:e.unref(A)},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value},"relation-circle"]),viewBox:`0 0 ${a.value.width<=0?10:a.value.width} ${a.value.height<=0?10:a.value.height}`,width:"100%",style:"user-select:none; background:transparent"},[e.createVNode(oe._sfc_main),e.createElementVNode("circle",{cx:(a.value.width<=0?1e-4:a.value.width)/2,cy:(a.value.height<=0?1e-4:a.value.height)/2+r.value.style.circle.offsetY,r:v.value<=0?1e-4:v.value,stroke:r.value.style.circle.stroke,"stroke-width":r.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,ve),X.value?(e.openBlock(),e.createElementBlock("g",fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${s}`,style:e.normalizeStyle(R(l)),stroke:L(l),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":i.value.hasOwnProperty("id")&&c.value.includes(l.id)}]),d:`M${l.x1},${l.y1} C${l.x1},${l.y1} ${a.value.width/2},${a.value.height/2+r.value.style.circle.offsetY} ${l.x2},${l.y2}`,fill:"none","stroke-width":V(l),"stroke-linecap":"round"},null,14,ge))),128))])):(e.openBlock(),e.createElementBlock("g",me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${s}`,stroke:L(l),style:e.normalizeStyle(R(l)),x1:l.x1,x2:l.x2,y1:l.y1,y2:l.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":i.value.hasOwnProperty("id")&&c.value.includes(l.id)}),"stroke-linecap":"round"},null,14,ye))),128))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${s}`,"text-anchor":Z(l),transform:le(l),x:ee(l),y:l.y+5,onClick:m=>T(l),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":i.value.id===l.id?"900":"400",style:e.normalizeStyle(`font-family:${r.value.style.fontFamily};${te(l)}`),"font-size":r.value.style.labels.fontSize,fill:r.value.style.labels.color},e.toDisplayString(l.label),13,he))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,key:`plot_${s}`,style:e.normalizeStyle(Q(l)),class:"vue-ui-relation-circle-plot",fill:r.value.style.plot.color,onClick:m=>T(l),r:r.value.style.plot.radius},null,12,ke))),128)),e.renderSlot(t.$slots,"svg",{svg:a.value},void 0,!0)],10,de)):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(P)||e.unref(O)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(se.default,{key:4,config:{type:"relationCircle",style:{backgroundColor:r.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],12,ce))}},Ce=ue._export_sfc(_e,[["__scopeId","data-v-0d6438fc"]]);exports.default=Ce;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-C7_6YjWN.cjs"),q=require("./useResponsive-B3TrDDIG.cjs"),ae=require("./Title-C-lm3Mkl.cjs"),M=require("./usePrinter-8EP4iaGm.cjs"),se=require("./vue-ui-skeleton-CGV1dEUD.cjs"),j=require("./useNestedProp-CC9zGr7C.cjs"),oe=require("./PackageVersion-D4D0WicU.cjs"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],de=["xmlns","viewBox"],ve=["cx","cy","r","stroke","stroke-width"],fe={key:0},ge=["stroke","d","stroke-width"],me={key:1},ye=["stroke","x1","x2","y1","y2"],he=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],ke=["cx","cy","fill","onClick","r"],pe={key:3,class:"vue-data-ui-watermark"},_e={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(G,{expose:U}){const u=G;e.useCssVars(t=>({db99e4e4:H.value,"1847af26":Y.value,"36a818e2":J.value}));const{vue_ui_relation_circle:D}=o.useConfig(),p=e.computed(()=>!!u.dataset&&Object.keys(u.dataset).length),g=e.ref(o.createUid()),$=e.ref(0),y=e.ref(null),w=e.ref(null),B=e.ref(0),r=e.computed({get:()=>b(),set:t=>t});function b(){const t=j.useNestedProp({userConfig:u.config,defaultConfig:D});return t.theme?{...j.useNestedProp({userConfig:o.themes.vue_ui_relation_circle[t.theme]||u.config,defaultConfig:t}),customPalette:o.themePalettes[t.theme]||o.palette}:t}e.watch(()=>u.config,t=>{r.value=b(),S(),B.value+=1},{deep:!0});const{isPrinting:P,isImaging:O,generatePdf:E,generateImage:A}=M.usePrinter({elementId:`relation_circle_${g.value}`,fileName:r.value.style.title.text||"vue-ui-relation-circle"}),I=e.computed(()=>o.convertCustomPalette(r.value.customPalette)),d=e.ref([]),f=e.ref([]),i=e.ref({}),c=e.ref([]),W=e.ref(0),_=e.computed(()=>u.dataset.slice(0,r.value.style.limit)),C=e.ref(r.value.style.size),a=e.ref({height:r.value.style.size,width:r.value.style.size}),v=e.computed({get(){return C.value*r.value.style.circle.radiusProportion},set(t){return t}}),X=e.computed(()=>r.value.style.links.curved),Y=e.computed(()=>`${r.value.style.animation.speedMs}ms`),H=e.computed(()=>v.value*2),J=e.computed(()=>v.value*4),h=e.ref(null);e.onMounted(()=>{S(),document.getElementById(`relation_circle_${g.value}`).addEventListener("click",z)});function S(){if(o.objectIsEmpty(u.dataset)?o.error({componentName:"VueUiRelationCircle",type:"dataset"}):u.dataset.forEach((t,n)=>{o.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["id","label","relations","weights"]}).forEach(l=>{o.error({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:l,index:n})})}),r.value.responsive){const t=q.throttle(()=>{const{width:n,height:l}=q.useResponsive({chart:y.value,title:r.value.style.title.text?w.value:null});C.value=Math.min(n,l),a.value.width=n,a.value.height=l,v.value=C.value*r.value.style.circle.radiusProportion,d.value=[],f.value=[],F(),N()});h.value=new ResizeObserver(t),h.value.observe(y.value.parentNode)}else d.value=[],f.value=[],F(),N()}e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${g.value}`).removeEventListener("click",z),h.value&&h.value.disconnect()});function z(t){const n=t.target;n&&Array.from(n.classList).includes("vue-ui-user-options")||n&&Array.from(n.classList).includes("vue-ui-user-options-summary")||n&&Array.from(n.classList).includes("vue-data-ui-button")||n&&Array.from(n.classList).includes("vue-ui-relation-circle-legend")||(i.value={},c.value=[])}function F(){const t=6.28319/_.value.length,n=360/_.value.length;let l=0,s=0;_.value.forEach((m,x)=>{const ne=v.value*Math.cos(l)+a.value.width/2,ie=v.value*Math.sin(l)+a.value.height/2+r.value.style.circle.offsetY;d.value.push({x:ne,y:ie,...m,color:m.color?m.color:I.value[x]?I.value[x]:o.palette[x],regAngle:s}),l+=t,s+=n})}function N(){d.value.forEach(t=>{d.value.filter(l=>l.relations.includes(t.id)).forEach((l,s)=>{f.value.push({weight:t.weights&&t.weights[s]?t.weights[s]:1,relationId:`${t.id}_${l.id}`,x1:t.x,y1:t.y,x2:l.x,y2:l.y,colorSource:t.color,colorTarget:l.color,...t})})})}const K=e.computed(()=>Math.max(...f.value.map(t=>t.weight)));function Q(t){return Object.hasOwn(i.value,"x")?c.value.includes(t.id)?"opacity:1":"opacity:0.1":"opacity:1"}function L(t){return Object.hasOwn(i.value,"x")?t.colorTarget:t.colorSource}function R(t){return Object.hasOwn(i.value,"x")?c.value.includes(t.id)&&t.relationId===`${t.id}_${i.value.id}`||t.relationId===`${i.value.id}_${t.id}`?`opacity:1;stroke-width:${V(t)}`:"opacity: 0":"opacity: 1"}function Z(t){return t.regAngle>90&&t.regAngle<270?"end":"start"}function ee(t){return t.regAngle>90&&t.regAngle<270?t.x-5:t.x+5}function te(t){return Object.hasOwn(i.value,"x")?i.value.id===t.id||c.value.includes(t.id)?"opacity:1":"opacity:0.2":"opacity:1"}function le(t){return t.regAngle>90&&t.regAngle<270?`rotate(${t.regAngle+180},${t.x},${t.y})`:`rotate(${t.regAngle},${t.x},${t.y})`}function T(t){W.value=360-t.regAngle,i.value.id&&t.id===i.value.id?(i.value={},c.value=[]):(i.value=t,c.value=[...t.relations])}function V(t){return t.weight/K.value*r.value.style.links.maxWidth}const k=e.ref(!1);function re(t){k.value=t,$.value+=1}return U({generatePdf:E,generateImage:A}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:y,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${r.value.style.backgroundColor};text-align:center;${r.value.responsive?"height: 100%":""}`),id:`relation_circle_${g.value}`},[r.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:w,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ae._sfc_main,{key:`title_${B.value}`,config:{title:{cy:"relation-div-title",...r.value.style.title},subtitle:{cy:"relation-div-subtitle",...r.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),r.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(M.UserOptions,{ref:"details",key:`user_options_${$.value}`,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,isPrinting:e.unref(P),isImaging:e.unref(O),uid:g.value,hasPdf:r.value.userOptions.buttons.pdf,hasImg:r.value.userOptions.buttons.img,hasFullscreen:r.value.userOptions.buttons.img,hasXls:!1,isFullscreen:k.value,titles:{...r.value.userOptions.buttonTitles},chartElement:y.value,position:r.value.userOptions.position,onToggleFullscreen:re,onGeneratePdf:e.unref(E),onGenerateImage:e.unref(A)},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value},"relation-circle"]),viewBox:`0 0 ${a.value.width<=0?10:a.value.width} ${a.value.height<=0?10:a.value.height}`,width:"100%",style:"user-select:none; background:transparent"},[e.createVNode(oe._sfc_main),e.createElementVNode("circle",{cx:(a.value.width<=0?1e-4:a.value.width)/2,cy:(a.value.height<=0?1e-4:a.value.height)/2+r.value.style.circle.offsetY,r:v.value<=0?1e-4:v.value,stroke:r.value.style.circle.stroke,"stroke-width":r.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,ve),X.value?(e.openBlock(),e.createElementBlock("g",fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${s}`,style:e.normalizeStyle(R(l)),stroke:L(l),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":i.value.hasOwnProperty("id")&&c.value.includes(l.id)}]),d:`M${l.x1},${l.y1} C${l.x1},${l.y1} ${a.value.width/2},${a.value.height/2+r.value.style.circle.offsetY} ${l.x2},${l.y2}`,fill:"none","stroke-width":V(l),"stroke-linecap":"round"},null,14,ge))),128))])):(e.openBlock(),e.createElementBlock("g",me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${s}`,stroke:L(l),style:e.normalizeStyle(R(l)),x1:l.x1,x2:l.x2,y1:l.y1,y2:l.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":i.value.hasOwnProperty("id")&&c.value.includes(l.id)}),"stroke-linecap":"round"},null,14,ye))),128))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${s}`,"text-anchor":Z(l),transform:le(l),x:ee(l),y:l.y+5,onClick:m=>T(l),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":i.value.id===l.id?"900":"400",style:e.normalizeStyle(`font-family:${r.value.style.fontFamily};${te(l)}`),"font-size":r.value.style.labels.fontSize,fill:r.value.style.labels.color},e.toDisplayString(l.label),13,he))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,key:`plot_${s}`,style:e.normalizeStyle(Q(l)),class:"vue-ui-relation-circle-plot",fill:r.value.style.plot.color,onClick:m=>T(l),r:r.value.style.plot.radius},null,12,ke))),128)),e.renderSlot(t.$slots,"svg",{svg:a.value},void 0,!0)],10,de)):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(P)||e.unref(O)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(se.default,{key:4,config:{type:"relationCircle",style:{backgroundColor:r.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],12,ce))}},Ce=ue._export_sfc(_e,[["__scopeId","data-v-0d6438fc"]]);exports.default=Ce;
@@ -1,15 +1,15 @@
1
1
  import { ref as u, computed as d, watch as Fe, onMounted as Oe, onBeforeUnmount as Me, openBlock as n, createElementBlock as m, normalizeClass as B, normalizeStyle as O, createBlock as x, createCommentVNode as N, unref as i, createSlots as ze, withCtx as h, renderSlot as f, normalizeProps as D, guardReactiveProps as U, createVNode as de, createElementVNode as k, Fragment as pe, renderList as he, createTextVNode as ge, toDisplayString as W, nextTick as Ae } from "vue";
2
- import { u as Re, c as fe, t as Ve, a as Be, p as T, o as De, e as X, g as Ue, b as We, I as Ee, d as ye, f as _, X as Ge, s as He, w as Xe, v as j, i as me, x as je, y as Ye, q as qe, r as Je } from "./index-COTjlcVF.js";
2
+ import { u as Re, c as fe, t as Ve, a as Be, p as T, o as De, e as X, g as Ue, b as We, I as Ee, d as ye, f as _, X as Ge, s as He, w as Xe, v as j, i as me, x as je, y as Ye, q as qe, r as Je } from "./index-DDXisDKy.js";
3
3
  import { t as Ke, u as Qe } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as Ze } from "./Title-CDfZWgra.js";
5
- import { u as et, U as tt } from "./usePrinter-5XpNgqjh.js";
6
- import { _ as lt } from "./Tooltip-0-aPeOmA.js";
7
- import { D as at } from "./DataTable-Dv3mZD4M.js";
8
- import { L as ot } from "./Legend-iUlykl4S.js";
9
- import st from "./vue-ui-skeleton-CYgbDsKG.js";
10
- import ut from "./vue-ui-accordion-CzKJYxd2.js";
11
- import { u as be } from "./useNestedProp-CcjyiBlC.js";
12
- import { _ as rt } from "./PackageVersion-DWAqn7t0.js";
4
+ import { _ as Ze } from "./Title-DYNLqCCT.js";
5
+ import { u as et, U as tt } from "./usePrinter-8ofTb2MJ.js";
6
+ import { _ as lt } from "./Tooltip-CICAYyQj.js";
7
+ import { D as at } from "./DataTable-DL2agEJ3.js";
8
+ import { L as ot } from "./Legend-DXLiSLHd.js";
9
+ import st from "./vue-ui-skeleton-B2sRnIXX.js";
10
+ import ut from "./vue-ui-accordion-D_1fE5EF.js";
11
+ import { u as be } from "./useNestedProp-S1UXxUgm.js";
12
+ import { _ as rt } from "./PackageVersion-DtnhR89q.js";
13
13
  import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const it = ["id"], vt = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"], pt = ["stop-color"], ht = ["stroke", "cx", "cy", "r", "fill"], gt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], ft = ["cx", "cy", "r", "onMouseenter"], yt = {
15
15
  key: 3,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DQRLTu78.cjs"),Y=require("./useResponsive-B3TrDDIG.cjs"),ce=require("./Title-Bpx2Ub4Z.cjs"),J=require("./usePrinter-DuYSC89K.cjs"),de=require("./Tooltip-D-JR_3NK.cjs"),ve=require("./DataTable-CiVu-yQZ.cjs"),pe=require("./Legend-ComtyeZF.cjs"),he=require("./vue-ui-skeleton-yOWIPVsZ.cjs"),ge=require("./vue-ui-accordion-ZppPKpGK.cjs"),K=require("./useNestedProp-np0rM3ep.cjs"),fe=require("./PackageVersion-BqVp7cHC.cjs"),me=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ye=["id"],be=["xmlns","viewBox"],ke=["id"],Ce=["stop-color"],we=["stop-color"],xe=["stroke","cx","cy","r","fill"],Te=["stroke","stroke-width","cx","cy","r","fill"],Ne=["cx","cy","r","onMouseenter"],$e={key:3,class:"vue-data-ui-watermark"},_e=["onClick"],Se={key:0},Be={key:1},Pe=["innerHTML"],Le={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(Q,{expose:Z,emit:ee}){const v=Q,{vue_ui_rings:te}=r.useConfig(),y=e.ref(!1),x=e.computed(()=>!!v.dataset&&v.dataset.length),b=e.ref(r.createUid()),le=e.ref(null),T=e.ref(!1),S=e.ref(""),m=e.ref(null),L=e.ref(0),k=e.ref(null),V=e.ref(null),E=e.ref(null),z=e.ref(0),F=e.ref(0),I=e.ref(0),t=e.computed({get:()=>O(),set:l=>l});function O(){const l=K.useNestedProp({userConfig:v.config,defaultConfig:te});return l.theme?{...K.useNestedProp({userConfig:r.themes.vue_ui_rings[l.theme]||v.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>v.config,l=>{t.value=O(),R(),z.value+=1,F.value+=1,I.value+=1},{deep:!0});const N=e.ref(null);e.onMounted(()=>{R()});function R(){if(r.objectIsEmpty(v.dataset)?r.error({componentName:"VueUiRings",type:"dataset"}):v.dataset.forEach((l,a)=>{l.values.length||r.error({componentName:"VueUiRings",type:"dataset"}),r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{r.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:o,index:a})})}),t.value.responsive){const l=Y.throttle(()=>{const{width:a,height:o}=Y.useResponsive({chart:k.value,title:t.value.style.chart.title.text?V.value:null,legend:t.value.style.chart.legend.show?E.value:null});s.value.width=a,s.value.height=o});N.value=new ResizeObserver(l),N.value.observe(k.value.parentNode)}setTimeout(()=>{y.value=!0},600)}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:M,isImaging:q,generatePdf:D,generateImage:A}=J.usePrinter({elementId:`rings_${b.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings"}),U=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),g=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:360}),oe=e.computed(()=>Math.min(s.value.height,s.value.width)),i=e.ref([]);function B(l){i.value.includes(l)?i.value=i.value.filter(a=>a!==l):i.value.push(l),ee("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const ae=e.computed(()=>Math.max(...$.value.filter(l=>!i.value.includes(l.uid)).map(({value:l})=>l)));function H(l){return l/ae.value}const $=e.computed(()=>v.dataset.map(({values:l,name:a,color:o=null},n)=>{const u=r.sanitizeArray(l).reduce((h,w)=>h+w,0);return{name:a,color:o||r.convertColorToHex(o)||U.value[n]||r.palette[n]||r.palette[n%r.palette.length],value:u,proportion:u/v.dataset.map(h=>(h.values||[]).reduce((w,ie)=>w+ie,0)).reduce((h,w)=>h+w,0),uid:r.createUid()}})),W=e.computed(()=>$.value.map(l=>({...l,shape:"circle",opacity:i.value.includes(l.uid)?.5:1,segregate:()=>B(l.uid),isSegregated:i.value.includes(l.uid)})).toSorted((l,a)=>a.value-l.value)),re=e.computed(()=>({cy:"rings-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":""})),p=e.computed(()=>$.value.filter(l=>!i.value.includes(l.uid)).map(({value:l})=>l).reduce((l,a)=>l+a,0)),c=e.computed(()=>$.value.filter(l=>!i.value.includes(l.uid)).map(({name:l,value:a,color:o=null,uid:n},u)=>({uid:n,name:l,color:o||r.convertColorToHex(o)||U.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:a,proportion:H(a),percentage:a/p.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*H(a)})).toSorted((l,a)=>a.value-l.value));function ne(){return c.value.map(({name:l,color:a,value:o,absoluteValues:n,percentage:u})=>({name:l,color:a,value:o,absoluteValues:n,percentage:u}))}const d=e.computed(()=>oe.value-t.value.style.chart.layout.rings.strokeWidth*2),P=e.ref(null);function ue(l,a){if(i.value.length===v.dataset.length)return;P.value={datapoint:a,seriesIndex:l,series:c.value,config:t.value},m.value=l;const o=c.value[l],n=t.value.style.chart.tooltip.customFormat;if(r.isFunction(n)&&r.functionReturnsString(()=>n({seriesIndex:l,datapoint:a,series:c.value,config:t.value})))S.value=n({seriesIndex:l,datapoint:a,series:c.value,config:t.value});else{let u="";u+=`<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>`,u+=`<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&&(u+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,r.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:a,seriesIndex:l})}
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-C7_6YjWN.cjs"),Y=require("./useResponsive-B3TrDDIG.cjs"),ce=require("./Title-C-lm3Mkl.cjs"),J=require("./usePrinter-8EP4iaGm.cjs"),de=require("./Tooltip-t-3mVhcz.cjs"),ve=require("./DataTable-BTgMVOwp.cjs"),pe=require("./Legend-Dj9KiaLv.cjs"),he=require("./vue-ui-skeleton-CGV1dEUD.cjs"),ge=require("./vue-ui-accordion-Cc9958th.cjs"),K=require("./useNestedProp-CC9zGr7C.cjs"),fe=require("./PackageVersion-D4D0WicU.cjs"),me=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ye=["id"],be=["xmlns","viewBox"],ke=["id"],Ce=["stop-color"],we=["stop-color"],xe=["stroke","cx","cy","r","fill"],Te=["stroke","stroke-width","cx","cy","r","fill"],Ne=["cx","cy","r","onMouseenter"],$e={key:3,class:"vue-data-ui-watermark"},_e=["onClick"],Se={key:0},Be={key:1},Pe=["innerHTML"],Le={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(Q,{expose:Z,emit:ee}){const v=Q,{vue_ui_rings:te}=r.useConfig(),y=e.ref(!1),x=e.computed(()=>!!v.dataset&&v.dataset.length),b=e.ref(r.createUid()),le=e.ref(null),T=e.ref(!1),S=e.ref(""),m=e.ref(null),L=e.ref(0),k=e.ref(null),V=e.ref(null),E=e.ref(null),z=e.ref(0),F=e.ref(0),I=e.ref(0),t=e.computed({get:()=>O(),set:l=>l});function O(){const l=K.useNestedProp({userConfig:v.config,defaultConfig:te});return l.theme?{...K.useNestedProp({userConfig:r.themes.vue_ui_rings[l.theme]||v.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>v.config,l=>{t.value=O(),R(),z.value+=1,F.value+=1,I.value+=1},{deep:!0});const N=e.ref(null);e.onMounted(()=>{R()});function R(){if(r.objectIsEmpty(v.dataset)?r.error({componentName:"VueUiRings",type:"dataset"}):v.dataset.forEach((l,a)=>{l.values.length||r.error({componentName:"VueUiRings",type:"dataset"}),r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{r.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:o,index:a})})}),t.value.responsive){const l=Y.throttle(()=>{const{width:a,height:o}=Y.useResponsive({chart:k.value,title:t.value.style.chart.title.text?V.value:null,legend:t.value.style.chart.legend.show?E.value:null});s.value.width=a,s.value.height=o});N.value=new ResizeObserver(l),N.value.observe(k.value.parentNode)}setTimeout(()=>{y.value=!0},600)}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:M,isImaging:q,generatePdf:D,generateImage:A}=J.usePrinter({elementId:`rings_${b.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings"}),U=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),g=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:360}),oe=e.computed(()=>Math.min(s.value.height,s.value.width)),i=e.ref([]);function B(l){i.value.includes(l)?i.value=i.value.filter(a=>a!==l):i.value.push(l),ee("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const ae=e.computed(()=>Math.max(...$.value.filter(l=>!i.value.includes(l.uid)).map(({value:l})=>l)));function H(l){return l/ae.value}const $=e.computed(()=>v.dataset.map(({values:l,name:a,color:o=null},n)=>{const u=r.sanitizeArray(l).reduce((h,w)=>h+w,0);return{name:a,color:o||r.convertColorToHex(o)||U.value[n]||r.palette[n]||r.palette[n%r.palette.length],value:u,proportion:u/v.dataset.map(h=>(h.values||[]).reduce((w,ie)=>w+ie,0)).reduce((h,w)=>h+w,0),uid:r.createUid()}})),W=e.computed(()=>$.value.map(l=>({...l,shape:"circle",opacity:i.value.includes(l.uid)?.5:1,segregate:()=>B(l.uid),isSegregated:i.value.includes(l.uid)})).toSorted((l,a)=>a.value-l.value)),re=e.computed(()=>({cy:"rings-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":""})),p=e.computed(()=>$.value.filter(l=>!i.value.includes(l.uid)).map(({value:l})=>l).reduce((l,a)=>l+a,0)),c=e.computed(()=>$.value.filter(l=>!i.value.includes(l.uid)).map(({name:l,value:a,color:o=null,uid:n},u)=>({uid:n,name:l,color:o||r.convertColorToHex(o)||U.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:a,proportion:H(a),percentage:a/p.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*H(a)})).toSorted((l,a)=>a.value-l.value));function ne(){return c.value.map(({name:l,color:a,value:o,absoluteValues:n,percentage:u})=>({name:l,color:a,value:o,absoluteValues:n,percentage:u}))}const d=e.computed(()=>oe.value-t.value.style.chart.layout.rings.strokeWidth*2),P=e.ref(null);function ue(l,a){if(i.value.length===v.dataset.length)return;P.value={datapoint:a,seriesIndex:l,series:c.value,config:t.value},m.value=l;const o=c.value[l],n=t.value.style.chart.tooltip.customFormat;if(r.isFunction(n)&&r.functionReturnsString(()=>n({seriesIndex:l,datapoint:a,series:c.value,config:t.value})))S.value=n({seriesIndex:l,datapoint:a,series:c.value,config:t.value});else{let u="";u+=`<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>`,u+=`<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&&(u+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,r.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:a,seriesIndex:l})}
2
2
  </b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${r.dataLabel({v:o.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${r.dataLabel({v:o.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),S.value=u}T.value=!0}const f=e.computed(()=>{const l=c.value.map(o=>({name:o.name,color:o.color})),a=c.value.map(o=>o.value);return{head:l,body:a}}),_=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:p.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=f.value.head.map((u,h)=>[{color:u.color,name:u.name},r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value.body[h],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),isNaN(f.value.body[h]/p.value)?"-":(f.value.body[h]/p.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={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},n=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:n}});function G(){e.nextTick(()=>{const l=f.value.head.map((n,u)=>[[n.name],[f.value.body[u]],[isNaN(f.value.body[u]/p.value)?"-":f.value.body[u]/p.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const C=e.ref(!1);function se(l){C.value=l,L.value+=1}function j(){g.value.showTable=!g.value.showTable}function X(){g.value.showTooltip=!g.value.showTooltip}return Z({getData:ne,generatePdf:D,generateCsv:G,generateImage:A,toggleTable:j,toggleTooltip:X}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:k,class:e.normalizeClass(`vue-ui-rings ${C.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};text-align:center;width:100%;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),id:`rings_${b.value}`,onMouseleave:a[3]||(a[3]=o=>{m.value=null,T.value=!1})},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:V,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ce._sfc_main,{key:`title_${z.value}`,config:{title:{cy:"rings-div-title",...t.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&x.value?(e.openBlock(),e.createBlock(J.UserOptions,{ref_key:"details",ref:le,key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(M),isImaging:e.unref(q),uid:b.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:g.value.showTooltip,isFullscreen:C.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,onToggleFullscreen:se,onGeneratePdf:e.unref(D),onGenerateCsv:G,onGenerateImage:e.unref(A),onToggleTable:j,onToggleTooltip:X},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":C.value,"vue-data-ui-fulscreen--off":!C.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(fe._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${b.value}_${n}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(o.color,.05),100-t.value.style.chart.layout.rings.gradient.intensity)},null,8,Ce),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,we)],8,ke))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":y.value&&t.value.useCssAnimation,"vue-rings-item-onload":!y.value&&t.value.useCssAnimation,"vue-ui-rings-opacity":m.value!==null&&m.value!==n}),style:e.normalizeStyle(`animation-delay:${n*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*o.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*o.proportion/2*.9<=0?1e-4:d.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,xe),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":y.value&&t.value.useCssAnimation,"vue-rings-item-onload":!y.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==n}),style:e.normalizeStyle(`animation-delay:${n*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*o.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*o.proportion/2*.9<=0?1e-4:d.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${b.value}_${n})`:o.color},null,14,Te),e.createElementVNode("circle",{"data-cy-trap":"",stroke:"none",cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*o.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*o.proportion/2*.9<=0?1e-4:d.value*o.proportion/2*.9),fill:"transparent",onMouseenter:u=>ue(n,o),onMouseleave:a[0]||(a[0]=u=>{m.value=null,T.value=!1})},null,40,Ne)]))),256)),e.renderSlot(l.$slots,"svg",{svg:s.value},void 0,!0)],14,be)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",$e,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(he.default,{key:4,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:E},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(pe.Legend,{key:`legend_${I.value}`,legendSet:W.value,config:re.value,onClickMarker:a[1]||(a[1]=({legend:o})=>B(o.uid))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>B(o.uid),style:e.normalizeStyle(`opacity:${i.value.includes(o.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(r.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.legend.roundingValue}),{datapoint:o,seriesIndex:n}))+" ",1),i.value.includes(o.uid)?(e.openBlock(),e.createElementBlock("span",Be," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Se," ("+e.toDisplayString(isNaN(o.value/p.value)?"-":e.unref(r.dataLabel)({v:o.value/p.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,_e)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:W.value},void 0,!0)],512),e.createVNode(de._sfc_main,{show:g.value.showTooltip&&T.value&&i.value.length<v.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:k.value,content:S.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...P.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...P.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),x.value?(e.openBlock(),e.createBlock(ge.default,{key:5,hideDetails:"",config:{open:g.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(ve.DataTable,{key:`table_${F.value}`,colNames:_.value.colNames,head:_.value.head,body:_.value.body,config:_.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>g.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Pe)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,ye))}},Ve=me._export_sfc(Le,[["__scopeId","data-v-08656179"]]);exports.default=Ve;
@@ -1,16 +1,16 @@
1
1
  import { computed as k, ref as g, watch as Ue, onMounted as He, onBeforeUnmount as Je, openBlock as o, createElementBlock as r, normalizeClass as Fe, normalizeStyle as R, createBlock as q, createCommentVNode as d, unref as y, createSlots as Ke, withCtx as w, renderSlot as T, normalizeProps as ae, guardReactiveProps as oe, createVNode as ce, createElementVNode as c, Fragment as P, renderList as X, toDisplayString as M, createTextVNode as Qe, nextTick as Ze } from "vue";
2
- import { u as et, c as tt, t as lt, a as at, p as U, o as ot, e as de, b as st, g as Oe, R as ut, V as rt, X as it, T as nt, s as he, i as Y, v as $, f as W, x as yt, y as vt, q as ct, r as dt } from "./index-COTjlcVF.js";
2
+ import { u as et, c as tt, t as lt, a as at, p as U, o as ot, e as de, b as st, g as Oe, R as ut, V as rt, X as it, T as nt, s as he, i as Y, v as $, f as W, x as yt, y as vt, q as ct, r as dt } from "./index-DDXisDKy.js";
3
3
  import { t as ht, u as pt } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as ft } from "./Title-CDfZWgra.js";
5
- import { u as gt, U as xt } from "./usePrinter-5XpNgqjh.js";
6
- import { _ as mt } from "./Tooltip-0-aPeOmA.js";
7
- import { L as bt } from "./Legend-iUlykl4S.js";
8
- import { _ as Xe } from "./Shape-CDqrt_yL.js";
9
- import { D as kt } from "./DataTable-Dv3mZD4M.js";
10
- import _t from "./vue-ui-skeleton-CYgbDsKG.js";
11
- import wt from "./vue-ui-accordion-CzKJYxd2.js";
12
- import { u as Ie } from "./useNestedProp-CcjyiBlC.js";
13
- import { _ as Mt } from "./PackageVersion-DWAqn7t0.js";
4
+ import { _ as ft } from "./Title-DYNLqCCT.js";
5
+ import { u as gt, U as xt } from "./usePrinter-8ofTb2MJ.js";
6
+ import { _ as mt } from "./Tooltip-CICAYyQj.js";
7
+ import { L as bt } from "./Legend-DXLiSLHd.js";
8
+ import { _ as Xe } from "./Shape-CO_Ak9Zm.js";
9
+ import { D as kt } from "./DataTable-DL2agEJ3.js";
10
+ import _t from "./vue-ui-skeleton-B2sRnIXX.js";
11
+ import wt from "./vue-ui-accordion-D_1fE5EF.js";
12
+ import { u as Ie } from "./useNestedProp-S1UXxUgm.js";
13
+ import { _ as Mt } from "./PackageVersion-DtnhR89q.js";
14
14
  import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const Ct = ["id"], zt = ["xmlns", "viewBox"], St = { key: 0 }, At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = { key: 1 }, Bt = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Nt = { key: 0 }, Pt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Wt = { key: 1 }, Ft = { key: 2 }, Ot = ["id"], Xt = ["stop-color"], It = ["stop-color"], Dt = ["id"], Yt = ["stop-color"], jt = ["stop-color"], Vt = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Et = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Gt = { key: 0 }, Rt = ["d", "stroke", "stroke-width"], qt = ["d", "stroke", "stroke-width"], Ut = ["d", "stroke", "stroke-width"], Ht = ["d", "stroke", "stroke-width"], Jt = {
16
16
  key: 3,