vue-data-ui 3.0.22 → 3.1.0

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 (109) hide show
  1. package/dist/{Arrow-C3_2GkYQ.js → Arrow-DvG07exK.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BhxUDwEm.js → BaseDraggableDialog-O7900pGp.js} +72 -59
  3. package/dist/{BaseIcon-B717hnWR.js → BaseIcon-DHtro8us.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-CH5_RNaK.js → ColorPicker-CpWzNn4r.js} +2 -2
  6. package/dist/DataTable-DJjA2_wf.js +140 -0
  7. package/dist/Legend-2-dC7DVb.js +72 -0
  8. package/dist/{NonSvgPenAndPaper-DCJGSteM.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
  9. package/dist/{PackageVersion-CE7HSich.js → PackageVersion-DU12WH3O.js} +1 -1
  10. package/dist/{PenAndPaper-BMHsOtT8.js → PenAndPaper-B7QEDgx4.js} +3 -3
  11. package/dist/{Shape-C3J8aKNH.js → Shape-Dj2Hl33H.js} +1 -1
  12. package/dist/{Slicer-BEBDljWA.js → Slicer-D99HytqX.js} +2 -2
  13. package/dist/{SparkTooltip-CVSZQtoP.js → SparkTooltip-B-wL07rI.js} +1 -1
  14. package/dist/{Title-BL-IjQmj.js → Title-Dq2_Z9kR.js} +1 -1
  15. package/dist/{Tooltip-CCnDaboi.js → Tooltip-Y219DXZO.js} +1 -1
  16. package/dist/{UserOptions-BWMV0_Ze.js → UserOptions-BuGfCdAY.js} +2 -2
  17. package/dist/{dom-to-png-DwUGURhV.js → dom-to-png-BhciAKaM.js} +1 -1
  18. package/dist/{img-DsVqerdt.js → img-JOqdlnUs.js} +1 -1
  19. package/dist/{index-BHb_mcWF.js → index-CDQbCd41.js} +37 -2
  20. package/dist/{pdf-Ckt8JtYf.js → pdf-Dd-LIJqz.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-Cy946l1e.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
  25. package/dist/{useNestedProp-aC9S6EFJ.js → useNestedProp-BPEHGiYX.js} +1 -1
  26. package/dist/{usePrinter-B7rhbRrT.js → usePrinter-Bnl1YeUU.js} +2 -2
  27. package/dist/{vue-data-ui-Bu7qDtf0.js → vue-data-ui-DcNYz3cZ.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
  30. package/dist/{vue-ui-accordion-DsnF0JuK.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-s8xyb3Gf.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
  32. package/dist/{vue-ui-annotator-DRacM62z.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
  33. package/dist/{vue-ui-bullet-DdDrdyOJ.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
  34. package/dist/{vue-ui-candlestick-BsNnInNt.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
  35. package/dist/{vue-ui-carousel-table-Ci9mrUBd.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
  36. package/dist/{vue-ui-chestnut-fHfJNK0V.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
  37. package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
  38. package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
  39. package/dist/{vue-ui-cursor-Bk5LHg5V.js → vue-ui-cursor-DIXb2S93.js} +2 -2
  40. package/dist/{vue-ui-dashboard-CjZMEYs6.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
  41. package/dist/{vue-ui-digits-nDIvHyRB.js → vue-ui-digits-CLAIo9gW.js} +2 -2
  42. package/dist/{vue-ui-donut-CF9FdxfC.js → vue-ui-donut-C8h_tCSO.js} +477 -431
  43. package/dist/{vue-ui-donut-evolution-f5k-Yu3N.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
  44. package/dist/{vue-ui-dumbbell-Dm3gsrzi.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
  45. package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
  46. package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
  47. package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
  48. package/dist/{vue-ui-gauge-DkDpUAN7.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
  49. package/dist/{vue-ui-gizmo-BD5fLs8r.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
  50. package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
  51. package/dist/{vue-ui-history-plot-ICoBBO-y.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
  52. package/dist/{vue-ui-kpi-Dp2M2EFo.js → vue-ui-kpi-CKg2i71M.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-C5672jjA.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
  54. package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
  55. package/dist/{vue-ui-mood-radar-B-qhYUcB.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
  56. package/dist/{vue-ui-nested-donuts-V6BvP3pF.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
  57. package/dist/{vue-ui-onion-BKqqbWbg.js → vue-ui-onion-ZgsErXis.js} +363 -317
  58. package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
  59. package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
  60. package/dist/{vue-ui-quick-chart-BVZSdQeT.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
  61. package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
  62. package/dist/{vue-ui-rating-CncrxDCY.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-VYM1dclx.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
  64. package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
  65. package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
  66. package/dist/{vue-ui-scatter-D2b-u5dv.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
  67. package/dist/{vue-ui-skeleton-BTuBaaE_.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
  68. package/dist/{vue-ui-smiley-D1UxJNbV.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-BCP0BWMI.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
  70. package/dist/{vue-ui-sparkbar-eBo-RSvE.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
  71. package/dist/{vue-ui-sparkgauge-DberOXWX.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
  72. package/dist/{vue-ui-sparkhistogram-CoKQGG5X.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
  73. package/dist/{vue-ui-sparkline-B_L4UNES.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
  74. package/dist/{vue-ui-sparkstackbar-iAaRIyqb.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
  75. package/dist/{vue-ui-stackbar-B_0PJ7R2.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
  76. package/dist/{vue-ui-strip-plot-CWkA4l9P.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
  77. package/dist/{vue-ui-table-CILVy7YP.js → vue-ui-table-Dn6H98rP.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-DL2n2Z7p.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-DOt2EKpe.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
  80. package/dist/{vue-ui-thermometer-BTP1ic_T.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
  81. package/dist/{vue-ui-timer-Bc-zJH9j.js → vue-ui-timer-CXng51v5.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-B9n528e1.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
  83. package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
  84. package/dist/{vue-ui-vertical-bar-CK2j09gJ.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
  85. package/dist/{vue-ui-waffle-DJkqgqlR.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
  86. package/dist/{vue-ui-wheel-CcbgpIUr.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
  87. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
  88. package/dist/{vue-ui-world-DLmB_Z96.js → vue-ui-world-DYz6zw3x.js} +512 -466
  89. package/dist/{vue-ui-xy-KmrNT6qh.js → vue-ui-xy-B1nqNbzw.js} +1559 -1508
  90. package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
  91. package/package.json +1 -1
  92. package/dist/DataTable-Y5T9UxMO.js +0 -133
  93. package/dist/Legend-DkU3at-b.js +0 -72
  94. package/dist/vue-ui-3d-bar-CBfQ3Pcb.js +0 -1323
  95. package/dist/vue-ui-chord-0wf798ls.js +0 -1049
  96. package/dist/vue-ui-circle-pack-CuRHG8gr.js +0 -709
  97. package/dist/vue-ui-flow-K7UBguES.js +0 -852
  98. package/dist/vue-ui-funnel-DoDZbsTp.js +0 -620
  99. package/dist/vue-ui-galaxy-BsDlHxzE.js +0 -691
  100. package/dist/vue-ui-heatmap-DOT2tBy_.js +0 -1078
  101. package/dist/vue-ui-molecule-DgqVh2k0.js +0 -656
  102. package/dist/vue-ui-parallel-coordinate-plot-BZf24Zur.js +0 -927
  103. package/dist/vue-ui-quadrant-S58B2LrQ.js +0 -1432
  104. package/dist/vue-ui-radar-Dh67mQ9E.js +0 -807
  105. package/dist/vue-ui-ridgeline-CsByERvm.js +0 -1157
  106. package/dist/vue-ui-rings-CR2UfgnV.js +0 -739
  107. package/dist/vue-ui-treemap-Cl9qo9O-.js +0 -1046
  108. package/dist/vue-ui-word-cloud-CZ_TRf4o.js +0 -765
  109. package/dist/vue-ui-xy-canvas-6VYNyX6a.js +0 -1243
@@ -0,0 +1,744 @@
1
+ import { defineAsyncComponent as x, ref as o, computed as i, toRefs as ht, onMounted as pt, watch as Oe, createElementBlock as v, openBlock as n, unref as u, normalizeStyle as R, normalizeClass as G, createBlock as T, createCommentVNode as c, createElementVNode as k, createVNode as te, createSlots as Ie, withCtx as d, renderSlot as p, normalizeProps as I, guardReactiveProps as L, Fragment as Le, renderList as De, Teleport as gt, toDisplayString as D, resolveDynamicComponent as yt, mergeProps as ft, createTextVNode as Ae, nextTick as Ne } from "vue";
2
+ import { u as bt, c as Fe, t as mt, o as kt, f as Be, g as wt, a as Ct, p as H, b as $t, d as xt, G as Ve, e as Tt, M as Pt, i as P, X as _t, k as Me, y as Ee, v as St, w as Ot, z as It } from "./index-CDQbCd41.js";
3
+ import { t as Lt, u as Dt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as At, B as Nt } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as Ft } from "./usePrinter-Bnl1YeUU.js";
6
+ import { u as We } from "./useNestedProp-BPEHGiYX.js";
7
+ import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Mt from "./img-JOqdlnUs.js";
10
+ import Et from "./Title-Dq2_Z9kR.js";
11
+ import Wt from "./Legend-2-dC7DVb.js";
12
+ import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "height"], Xt = ["id"], Yt = ["stdDeviation"], jt = ["d", "stroke", "stroke-width"], qt = ["d", "stroke", "stroke-width"], Jt = ["filter"], Kt = ["d", "stroke", "stroke-width"], Qt = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Zt = {
14
+ key: 4,
15
+ class: "vue-data-ui-watermark"
16
+ }, el = ["id"], tl = ["onClick"], ll = ["innerHTML"], al = {
17
+ __name: "vue-ui-galaxy",
18
+ props: {
19
+ config: {
20
+ type: Object,
21
+ default() {
22
+ return {};
23
+ }
24
+ },
25
+ dataset: {
26
+ type: Array,
27
+ default() {
28
+ return [];
29
+ }
30
+ }
31
+ },
32
+ emits: ["selectLegend", "selectDatapoint"],
33
+ setup(ze, { expose: Re, emit: Ge }) {
34
+ const He = x(() => import("./Tooltip-Y219DXZO.js")), Ue = x(() => import("./BaseIcon-DHtro8us.js")), Xe = x(() => import("./vue-ui-accordion-Bf_LHFFX.js")), Ye = x(() => import("./DataTable-DJjA2_wf.js")), je = x(() => import("./PenAndPaper-B7QEDgx4.js")), qe = x(() => import("./UserOptions-BuGfCdAY.js")), Je = x(() => import("./PackageVersion-DU12WH3O.js")), Ke = x(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_galaxy: Qe } = bt(), w = ze, f = o(Fe()), b = o(null), Ze = o(null), U = o(!1), X = o(""), _ = o(null), le = o(0), ae = o(0), oe = o(0), se = o(0), ue = o(null), ne = o(null), re = o(null), ie = o(null), A = o(null), V = o(null), ve = o(!1), N = o(null), ce = i(() => !!w.dataset && w.dataset.length), e = o(q()), { loading: Y, FINAL_DATASET: de } = At({
35
+ ...ht(w),
36
+ FINAL_CONFIG: e,
37
+ prepareConfig: q,
38
+ callback: () => {
39
+ Promise.resolve().then(async () => {
40
+ await Ne(), g.value.showTable = e.value.table.show;
41
+ });
42
+ },
43
+ skeletonDataset: [
44
+ { name: "_", values: [21], color: "#DBDBDB" },
45
+ { name: "_", values: [13], color: "#C4C4C4" },
46
+ { name: "_", values: [8], color: "#ADADAD" }
47
+ ],
48
+ skeletonConfig: mt({
49
+ defaultConfig: e.value,
50
+ userConfig: {
51
+ userOptions: { show: !1 },
52
+ table: { show: !1 },
53
+ useCssAnimation: !1,
54
+ style: {
55
+ chart: {
56
+ backgroundColor: "#99999930",
57
+ legend: {
58
+ backgroundColor: "transparent"
59
+ }
60
+ }
61
+ }
62
+ }
63
+ })
64
+ });
65
+ pt(() => {
66
+ ve.value = !0, pe();
67
+ });
68
+ const he = i(() => !!e.value.debug);
69
+ function pe() {
70
+ if (kt(w.dataset) ? Be({
71
+ componentName: "VueUiGalaxy",
72
+ type: "dataset",
73
+ debug: he.value
74
+ }) : w.dataset.forEach((t, a) => {
75
+ wt({
76
+ datasetObject: t,
77
+ requiredAttributes: ["name", "values"]
78
+ }).forEach((l) => {
79
+ Be({
80
+ componentName: "VueUiGalaxy",
81
+ type: "datasetSerieAttribute",
82
+ property: l,
83
+ index: a,
84
+ debug: he.value
85
+ });
86
+ });
87
+ }), e.value.responsive) {
88
+ const t = Lt(() => {
89
+ const { width: a, height: l } = Dt({
90
+ chart: b.value,
91
+ title: e.value.style.chart.title.text ? ue.value : null,
92
+ legend: e.value.style.chart.legend.show ? ne.value : null,
93
+ noTitle: ie.value,
94
+ source: re.value
95
+ });
96
+ requestAnimationFrame(() => {
97
+ M.value = Math.max(0.1, a), E.value = Math.max(0.1, l - 12);
98
+ });
99
+ });
100
+ A.value && (V.value && A.value.unobserve(V.value), A.value.disconnect()), A.value = new ResizeObserver(t), V.value = b.value.parentNode, A.value.observe(V.value);
101
+ }
102
+ }
103
+ const { userOptionsVisible: j, setUserOptionsVisibility: ge, keepUserOptionState: ye } = Bt({ config: e.value }), { svgRef: fe } = Vt({ config: e.value.style.chart.title });
104
+ function q() {
105
+ const t = We({
106
+ userConfig: w.config,
107
+ defaultConfig: Qe
108
+ });
109
+ return t.theme ? {
110
+ ...We({
111
+ userConfig: $t.vue_ui_galaxy[t.theme] || w.config,
112
+ defaultConfig: t
113
+ }),
114
+ customPalette: Ct[t.theme] || H
115
+ } : t;
116
+ }
117
+ Oe(() => w.config, (t) => {
118
+ e.value = q(), j.value = !e.value.userOptions.showOnChartHover, pe(), ae.value += 1, oe.value += 1, se.value += 1, g.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, g.value.showTable = e.value.table.show, g.value.showTooltip = e.value.style.chart.tooltip.show;
119
+ }, { deep: !0 });
120
+ const { isPrinting: be, isImaging: me, generatePdf: ke, generateImage: we } = Ft({
121
+ elementId: `galaxy_${f.value}`,
122
+ fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
123
+ options: e.value.userOptions.print
124
+ }), et = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), tt = i(() => xt(e.value.customPalette)), g = o({
125
+ dataLabels: {
126
+ show: e.value.style.chart.layout.labels.dataLabels.show
127
+ },
128
+ showTable: e.value.table.show,
129
+ showTooltip: e.value.style.chart.tooltip.show
130
+ }), M = o(250), E = o(180), lt = o(0), at = o(0), C = i(() => ({
131
+ width: M.value,
132
+ height: E.value,
133
+ viewBox: `${lt.value} ${at.value} ${M.value} ${E.value}`
134
+ })), Ce = Ge, y = o([]);
135
+ function J(t) {
136
+ y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), Ce("selectLegend", F.value.map((a) => ({
137
+ name: a.name,
138
+ color: a.color,
139
+ value: a.value
140
+ })));
141
+ }
142
+ const S = i(() => de.value.map((t, a) => ({
143
+ name: t.name,
144
+ color: Tt(t.color) || tt.value[a] || H[a] || H[a % H.length],
145
+ value: t.values ? Ve(t.values).reduce((l, s) => l + s, 0) : 0,
146
+ absoluteValues: Ve(t.values),
147
+ id: Fe()
148
+ })).sort((t, a) => a.value - t.value).map((t, a) => ({
149
+ ...t,
150
+ absoluteIndex: a
151
+ })));
152
+ function ot() {
153
+ return S.value.map((t) => ({
154
+ name: t.name,
155
+ color: t.color,
156
+ value: t.value
157
+ }));
158
+ }
159
+ const m = i(() => S.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), $e = o(190), xe = i(() => S.value.filter((t) => !y.value.includes(t.id))), st = i(
160
+ () => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
161
+ ), ut = i(() => Pt({
162
+ maxPoints: $e.value,
163
+ a: e.value.style.chart.layout.arcs.a ?? 6,
164
+ b: e.value.style.chart.layout.arcs.b ?? 6,
165
+ angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
166
+ startX: C.value.width / 2 + e.value.style.chart.layout.arcs.offsetX,
167
+ startY: C.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
168
+ boxWidth: C.value.width,
169
+ boxHeight: C.value.height,
170
+ padding: st.value
171
+ })), F = i(() => {
172
+ const t = [];
173
+ for (let a = 0; a < xe.value.length; a += 1) {
174
+ const l = xe.value[a], s = l.value / m.value * $e.value + (a > 0 && t.length ? t[a - 1].points : 0);
175
+ t.push({
176
+ points: s,
177
+ ...l,
178
+ seriesIndex: a,
179
+ proportion: l.value / m.value,
180
+ path: ut.value(s)
181
+ });
182
+ }
183
+ return t.filter((a) => !y.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
184
+ });
185
+ function K(t) {
186
+ const a = Math.min(M.value, E.value), l = _.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, s = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, h = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
187
+ return {
188
+ border: s / 180 * a,
189
+ path: r / 180 * a,
190
+ blur: h / 180 * a
191
+ };
192
+ }
193
+ const O = o(!1);
194
+ function Te(t) {
195
+ O.value = t, le.value += 1;
196
+ }
197
+ const Q = o(null);
198
+ function nt(t) {
199
+ U.value = !1, _.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
200
+ }
201
+ function rt(t) {
202
+ Ce("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
203
+ }
204
+ function it({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
205
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), Q.value = {
206
+ datapoint: t,
207
+ seriesIndex: l,
208
+ series: S.value,
209
+ config: e.value
210
+ }, U.value = s, _.value = t.id;
211
+ let r = "";
212
+ const h = e.value.style.chart.tooltip.customFormat;
213
+ Ee(h) && It(() => h({
214
+ seriesIndex: l,
215
+ datapoint: t,
216
+ series: S.value,
217
+ config: e.value
218
+ })) ? X.value = h({
219
+ seriesIndex: l,
220
+ datapoint: t,
221
+ series: S.value,
222
+ config: e.value
223
+ }) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Me(
224
+ e.value.style.chart.layout.labels.dataLabels.formatter,
225
+ t.value,
226
+ P({
227
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
228
+ v: t.value,
229
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
230
+ r: e.value.style.chart.tooltip.roundingValue
231
+ }),
232
+ { datapoint: t, seriesIndex: l }
233
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${P({
234
+ v: t.proportion * 100,
235
+ s: "%",
236
+ r: e.value.style.chart.tooltip.roundingPercentage
237
+ })})</span></div>` : r += `<b>${P({
238
+ v: t.proportion * 100,
239
+ s: "%",
240
+ r: e.value.style.chart.tooltip.roundingPercentage
241
+ })}</b></div>`), X.value = `<div>${r}</div>`);
242
+ }
243
+ const Pe = i(() => S.value.map((t, a) => ({
244
+ ...t,
245
+ proportion: (t.value || 0) / de.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
246
+ opacity: y.value.includes(t.id) ? 0.5 : 1,
247
+ shape: t.shape || "circle",
248
+ segregate: () => J(t),
249
+ isSegregated: y.value.includes(t.id)
250
+ }))), vt = i(() => ({
251
+ cy: "galaxy-div-legend",
252
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
253
+ color: e.value.style.chart.legend.color,
254
+ fontSize: e.value.style.chart.legend.fontSize,
255
+ paddingBottom: 12,
256
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
257
+ })), $ = i(() => {
258
+ const t = F.value.map((l) => ({
259
+ name: l.name,
260
+ color: l.color
261
+ })), a = F.value.map((l) => l.value);
262
+ return { head: t, body: a };
263
+ });
264
+ function Z(t = null) {
265
+ Ne(() => {
266
+ const a = $.value.head.map((r, h) => [[
267
+ r.name
268
+ ], [$.value.body[h]], [isNaN($.value.body[h] / m.value) ? "-" : $.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = St(l);
269
+ t ? t(s) : Ot({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
270
+ });
271
+ }
272
+ const W = i(() => {
273
+ const t = [
274
+ ' <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>',
275
+ P({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
276
+ "100%"
277
+ ], a = $.value.head.map((r, h) => {
278
+ const dt = P({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value.body[h], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
279
+ return [
280
+ {
281
+ color: r.color,
282
+ name: r.name
283
+ },
284
+ dt,
285
+ isNaN($.value.body[h] / m.value) ? "-" : P({
286
+ v: $.value.body[h] / m.value * 100,
287
+ s: "%",
288
+ r: e.value.table.td.roundingPercentage
289
+ })
290
+ ];
291
+ }), l = {
292
+ th: {
293
+ backgroundColor: e.value.table.th.backgroundColor,
294
+ color: e.value.table.th.color,
295
+ outline: e.value.table.th.outline
296
+ },
297
+ td: {
298
+ backgroundColor: e.value.table.td.backgroundColor,
299
+ color: e.value.table.td.color,
300
+ outline: e.value.table.td.outline
301
+ },
302
+ breakpoint: e.value.table.responsiveBreakpoint
303
+ };
304
+ return {
305
+ colNames: [
306
+ e.value.table.columnNames.series,
307
+ e.value.table.columnNames.value,
308
+ e.value.table.columnNames.percentage
309
+ ],
310
+ head: t,
311
+ body: a,
312
+ config: l
313
+ };
314
+ });
315
+ function _e() {
316
+ g.value.showTable = !g.value.showTable;
317
+ }
318
+ function Se() {
319
+ g.value.showTooltip = !g.value.showTooltip;
320
+ }
321
+ const z = o(!1);
322
+ function ee() {
323
+ z.value = !z.value;
324
+ }
325
+ async function ct({ scale: t = 2 } = {}) {
326
+ if (!b.value) return;
327
+ const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: h } = await Mt({ domElement: b.value, base64: !0, img: !0, scale: t });
328
+ return {
329
+ imageUri: r,
330
+ base64: h,
331
+ title: e.value.style.chart.title.text,
332
+ width: a,
333
+ height: l,
334
+ aspectRatio: s
335
+ };
336
+ }
337
+ const B = i(() => {
338
+ const t = e.value.table.useDialog && !e.value.table.show, a = g.value.showTable;
339
+ return {
340
+ component: t ? Ke : Xe,
341
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
342
+ props: t ? {
343
+ backgroundColor: e.value.table.th.backgroundColor,
344
+ color: e.value.table.th.color,
345
+ headerColor: e.value.table.th.color,
346
+ headerBg: e.value.table.th.backgroundColor,
347
+ isFullscreen: O.value,
348
+ fullscreenParent: b.value,
349
+ forcedWidth: Math.min(500, window.innerWidth * 0.8)
350
+ } : {
351
+ hideDetails: !0,
352
+ config: {
353
+ open: a,
354
+ maxHeight: 1e4,
355
+ body: {
356
+ backgroundColor: e.value.style.chart.backgroundColor,
357
+ color: e.value.style.chart.color
358
+ },
359
+ head: {
360
+ backgroundColor: e.value.style.chart.backgroundColor,
361
+ color: e.value.style.chart.color
362
+ }
363
+ }
364
+ }
365
+ };
366
+ });
367
+ return Oe(() => g.value.showTable, (t) => {
368
+ e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
369
+ }), Re({
370
+ getData: ot,
371
+ getImage: ct,
372
+ generatePdf: ke,
373
+ generateCsv: Z,
374
+ generateImage: we,
375
+ toggleTable: _e,
376
+ toggleTooltip: Se,
377
+ toggleAnnotator: ee,
378
+ toggleFullscreen: Te
379
+ }), (t, a) => (n(), v("div", {
380
+ ref_key: "galaxyChart",
381
+ ref: b,
382
+ class: G(`vue-ui-galaxy ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(Y) ? "loading" : ""}`),
383
+ style: R(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
384
+ id: `galaxy_${f.value}`,
385
+ onMouseenter: a[4] || (a[4] = () => u(ge)(!0)),
386
+ onMouseleave: a[5] || (a[5] = () => u(ge)(!1))
387
+ }, [
388
+ e.value.userOptions.buttons.annotator ? (n(), T(u(je), {
389
+ key: 0,
390
+ svgRef: u(fe),
391
+ backgroundColor: e.value.style.chart.backgroundColor,
392
+ color: e.value.style.chart.color,
393
+ active: z.value,
394
+ onClose: ee
395
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
396
+ et.value ? (n(), v("div", {
397
+ key: 1,
398
+ ref_key: "noTitle",
399
+ ref: ie,
400
+ class: "vue-data-ui-no-title-space",
401
+ style: "height:36px; width: 100%;background:transparent"
402
+ }, null, 512)) : c("", !0),
403
+ e.value.style.chart.title.text ? (n(), v("div", {
404
+ key: 2,
405
+ ref_key: "chartTitle",
406
+ ref: ue,
407
+ style: "width:100%;background:transparent;padding-bottom:24px"
408
+ }, [
409
+ (n(), T(Et, {
410
+ key: `title_${ae.value}`,
411
+ config: {
412
+ title: {
413
+ cy: "galaxy-div-title",
414
+ ...e.value.style.chart.title
415
+ },
416
+ subtitle: {
417
+ cy: "galaxy-div-subtitle",
418
+ ...e.value.style.chart.title.subtitle
419
+ }
420
+ }
421
+ }, null, 8, ["config"]))
422
+ ], 512)) : c("", !0),
423
+ k("div", {
424
+ id: `legend-top-${f.value}`
425
+ }, null, 8, Gt),
426
+ e.value.userOptions.show && ce.value && (u(ye) || u(j)) ? (n(), T(u(qe), {
427
+ ref_key: "details",
428
+ ref: Ze,
429
+ key: `user_option_${le.value}`,
430
+ backgroundColor: e.value.style.chart.backgroundColor,
431
+ color: e.value.style.chart.color,
432
+ isPrinting: u(be),
433
+ isImaging: u(me),
434
+ uid: f.value,
435
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
436
+ hasPdf: e.value.userOptions.buttons.pdf,
437
+ hasXls: e.value.userOptions.buttons.csv,
438
+ hasImg: e.value.userOptions.buttons.img,
439
+ hasTable: e.value.userOptions.buttons.table,
440
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
441
+ isTooltip: g.value.showTooltip,
442
+ isFullscreen: O.value,
443
+ titles: { ...e.value.userOptions.buttonTitles },
444
+ chartElement: b.value,
445
+ position: e.value.userOptions.position,
446
+ hasAnnotator: e.value.userOptions.buttons.annotator,
447
+ isAnnotation: z.value,
448
+ callbacks: e.value.userOptions.callbacks,
449
+ printScale: e.value.userOptions.print.scale,
450
+ onToggleFullscreen: Te,
451
+ onGeneratePdf: u(ke),
452
+ onGenerateCsv: Z,
453
+ onGenerateImage: u(we),
454
+ onToggleTable: _e,
455
+ onToggleTooltip: Se,
456
+ onToggleAnnotator: ee,
457
+ style: R({
458
+ visibility: u(ye) ? u(j) ? "visible" : "hidden" : "visible"
459
+ })
460
+ }, Ie({ _: 2 }, [
461
+ t.$slots.menuIcon ? {
462
+ name: "menuIcon",
463
+ fn: d(({ isOpen: l, color: s }) => [
464
+ p(t.$slots, "menuIcon", I(L({ isOpen: l, color: s })), void 0, !0)
465
+ ]),
466
+ key: "0"
467
+ } : void 0,
468
+ t.$slots.optionTooltip ? {
469
+ name: "optionTooltip",
470
+ fn: d(() => [
471
+ p(t.$slots, "optionTooltip", {}, void 0, !0)
472
+ ]),
473
+ key: "1"
474
+ } : void 0,
475
+ t.$slots.optionPdf ? {
476
+ name: "optionPdf",
477
+ fn: d(() => [
478
+ p(t.$slots, "optionPdf", {}, void 0, !0)
479
+ ]),
480
+ key: "2"
481
+ } : void 0,
482
+ t.$slots.optionCsv ? {
483
+ name: "optionCsv",
484
+ fn: d(() => [
485
+ p(t.$slots, "optionCsv", {}, void 0, !0)
486
+ ]),
487
+ key: "3"
488
+ } : void 0,
489
+ t.$slots.optionImg ? {
490
+ name: "optionImg",
491
+ fn: d(() => [
492
+ p(t.$slots, "optionImg", {}, void 0, !0)
493
+ ]),
494
+ key: "4"
495
+ } : void 0,
496
+ t.$slots.optionTable ? {
497
+ name: "optionTable",
498
+ fn: d(() => [
499
+ p(t.$slots, "optionTable", {}, void 0, !0)
500
+ ]),
501
+ key: "5"
502
+ } : void 0,
503
+ t.$slots.optionFullscreen ? {
504
+ name: "optionFullscreen",
505
+ fn: d(({ toggleFullscreen: l, isFullscreen: s }) => [
506
+ p(t.$slots, "optionFullscreen", I(L({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
507
+ ]),
508
+ key: "6"
509
+ } : void 0,
510
+ t.$slots.optionAnnotator ? {
511
+ name: "optionAnnotator",
512
+ fn: d(({ toggleAnnotator: l, isAnnotator: s }) => [
513
+ p(t.$slots, "optionAnnotator", I(L({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
514
+ ]),
515
+ key: "7"
516
+ } : void 0
517
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
518
+ (n(), v("svg", {
519
+ ref_key: "svgRef",
520
+ ref: fe,
521
+ xmlns: u(_t),
522
+ class: G({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
523
+ viewBox: C.value.viewBox,
524
+ style: R(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
525
+ }, [
526
+ te(u(Je)),
527
+ t.$slots["chart-background"] ? (n(), v("foreignObject", {
528
+ key: 0,
529
+ x: 0,
530
+ y: 0,
531
+ width: C.value.width,
532
+ height: C.value.height,
533
+ style: {
534
+ pointerEvents: "none"
535
+ }
536
+ }, [
537
+ p(t.$slots, "chart-background", {}, void 0, !0)
538
+ ], 8, Ut)) : c("", !0),
539
+ k("defs", null, [
540
+ k("filter", {
541
+ id: `blur_${f.value}`,
542
+ x: "-50%",
543
+ y: "-50%",
544
+ width: "200%",
545
+ height: "200%"
546
+ }, [
547
+ k("feGaussianBlur", {
548
+ in: "SourceGraphic",
549
+ stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
550
+ }, null, 8, Yt)
551
+ ], 8, Xt)
552
+ ]),
553
+ (n(!0), v(Le, null, De(F.value, (l) => (n(), v("g", null, [
554
+ l.value ? (n(), v("path", {
555
+ key: 0,
556
+ d: l.path,
557
+ fill: "none",
558
+ stroke: e.value.style.chart.backgroundColor,
559
+ "stroke-width": K(l).border,
560
+ "stroke-linecap": "round"
561
+ }, null, 8, jt)) : c("", !0),
562
+ l.value ? (n(), v("path", {
563
+ key: 1,
564
+ d: l.path,
565
+ fill: "none",
566
+ stroke: l.color,
567
+ "stroke-width": K(l).path,
568
+ "stroke-linecap": "round",
569
+ class: G(`${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
570
+ }, null, 10, qt)) : c("", !0),
571
+ l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), v("g", {
572
+ key: 2,
573
+ filter: `url(#blur_${f.value})`
574
+ }, [
575
+ k("path", {
576
+ d: l.path,
577
+ fill: "none",
578
+ stroke: e.value.style.chart.layout.arcs.gradient.color,
579
+ "stroke-width": K(l).blur,
580
+ "stroke-linecap": "round",
581
+ class: G(`vue-ui-galaxy-gradient ${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
582
+ }, null, 10, Kt)
583
+ ], 8, Jt)) : c("", !0)
584
+ ]))), 256)),
585
+ (n(!0), v(Le, null, De(F.value, (l, s) => (n(), v("g", null, [
586
+ l.value ? (n(), v("path", {
587
+ key: 0,
588
+ d: l.path,
589
+ fill: "none",
590
+ stroke: "transparent",
591
+ "stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
592
+ "stroke-linecap": "round",
593
+ onMouseenter: (r) => it({
594
+ datapoint: l,
595
+ seriesIndex: l.seriesIndex,
596
+ show: !0
597
+ }),
598
+ onMouseleave: (r) => nt(l),
599
+ onClick: (r) => rt(l)
600
+ }, null, 40, Qt)) : c("", !0)
601
+ ]))), 256)),
602
+ p(t.$slots, "svg", { svg: C.value }, void 0, !0)
603
+ ], 14, Ht)),
604
+ t.$slots.watermark ? (n(), v("div", Zt, [
605
+ p(t.$slots, "watermark", I(L({ isPrinting: u(be) || u(me) })), void 0, !0)
606
+ ])) : c("", !0),
607
+ k("div", {
608
+ id: `legend-bottom-${f.value}`
609
+ }, null, 8, el),
610
+ ve.value ? (n(), T(gt, {
611
+ key: 5,
612
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
613
+ }, [
614
+ k("div", {
615
+ ref_key: "chartLegend",
616
+ ref: ne
617
+ }, [
618
+ e.value.style.chart.legend.show ? (n(), T(Wt, {
619
+ key: `legend_${se.value}`,
620
+ legendSet: Pe.value,
621
+ config: vt.value,
622
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => J(l))
623
+ }, {
624
+ item: d(({ legend: l, index: s }) => [
625
+ u(Y) ? c("", !0) : (n(), v("div", {
626
+ key: 0,
627
+ onClick: (r) => J(l),
628
+ style: R(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
629
+ }, D(l.name) + D(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + D(e.value.style.chart.legend.showValue ? u(Me)(
630
+ e.value.style.chart.layout.labels.dataLabels.formatter,
631
+ l.value,
632
+ u(P)({
633
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
634
+ v: l.value,
635
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
636
+ r: e.value.style.chart.legend.roundingValue
637
+ }),
638
+ { datapoint: l, seriesIndex: s }
639
+ ) : "") + " " + D(e.value.style.chart.legend.showPercentage ? y.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / m.value) ? "-" : u(P)({
640
+ v: l.value / m.value * 100,
641
+ s: "%",
642
+ r: e.value.style.chart.legend.roundingPercentage
643
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, tl))
644
+ ]),
645
+ _: 1
646
+ }, 8, ["legendSet", "config"])) : c("", !0),
647
+ p(t.$slots, "legend", { legend: Pe.value }, void 0, !0)
648
+ ], 512)
649
+ ], 8, ["to"])) : c("", !0),
650
+ t.$slots.source ? (n(), v("div", {
651
+ key: 6,
652
+ ref_key: "source",
653
+ ref: re,
654
+ dir: "auto"
655
+ }, [
656
+ p(t.$slots, "source", {}, void 0, !0)
657
+ ], 512)) : c("", !0),
658
+ te(u(He), {
659
+ show: g.value.showTooltip && U.value,
660
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
661
+ color: e.value.style.chart.tooltip.color,
662
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
663
+ borderColor: e.value.style.chart.tooltip.borderColor,
664
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
665
+ fontSize: e.value.style.chart.tooltip.fontSize,
666
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
667
+ position: e.value.style.chart.tooltip.position,
668
+ offsetY: e.value.style.chart.tooltip.offsetY,
669
+ parent: b.value,
670
+ content: X.value,
671
+ isFullscreen: O.value,
672
+ isCustom: u(Ee)(e.value.style.chart.tooltip.customFormat),
673
+ smooth: e.value.style.chart.tooltip.smooth,
674
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
675
+ }, {
676
+ "tooltip-before": d(() => [
677
+ p(t.$slots, "tooltip-before", I(L({ ...Q.value })), void 0, !0)
678
+ ]),
679
+ "tooltip-after": d(() => [
680
+ p(t.$slots, "tooltip-after", I(L({ ...Q.value })), void 0, !0)
681
+ ]),
682
+ _: 3
683
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
684
+ ce.value ? (n(), T(yt(B.value.component), ft({ key: 7 }, B.value.props, {
685
+ ref_key: "tableUnit",
686
+ ref: N,
687
+ onClose: a[3] || (a[3] = (l) => g.value.showTable = !1)
688
+ }), Ie({
689
+ content: d(() => [
690
+ (n(), T(u(Ye), {
691
+ key: `table_${oe.value}`,
692
+ colNames: W.value.colNames,
693
+ head: W.value.head,
694
+ body: W.value.body,
695
+ config: W.value.config,
696
+ title: e.value.table.useDialog ? "" : B.value.title,
697
+ withCloseButton: !e.value.table.useDialog,
698
+ onClose: a[2] || (a[2] = (l) => g.value.showTable = !1)
699
+ }, {
700
+ th: d(({ th: l }) => [
701
+ k("div", {
702
+ innerHTML: l,
703
+ style: { display: "flex", "align-items": "center" }
704
+ }, null, 8, ll)
705
+ ]),
706
+ td: d(({ td: l }) => [
707
+ Ae(D(l.name || l), 1)
708
+ ]),
709
+ _: 1
710
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
711
+ ]),
712
+ _: 2
713
+ }, [
714
+ e.value.table.useDialog ? {
715
+ name: "title",
716
+ fn: d(() => [
717
+ Ae(D(B.value.title), 1)
718
+ ]),
719
+ key: "0"
720
+ } : void 0,
721
+ e.value.table.useDialog ? {
722
+ name: "actions",
723
+ fn: d(() => [
724
+ k("button", {
725
+ tabindex: "0",
726
+ class: "vue-ui-user-options-button",
727
+ onClick: a[1] || (a[1] = (l) => Z(e.value.userOptions.callbacks.csv))
728
+ }, [
729
+ te(u(Ue), {
730
+ name: "excel",
731
+ stroke: B.value.props.color
732
+ }, null, 8, ["stroke"])
733
+ ])
734
+ ]),
735
+ key: "1"
736
+ } : void 0
737
+ ]), 1040)) : c("", !0),
738
+ u(Y) ? (n(), T(Nt, { key: 8 })) : c("", !0)
739
+ ], 46, Rt));
740
+ }
741
+ }, yl = /* @__PURE__ */ zt(al, [["__scopeId", "data-v-7ec3c806"]]);
742
+ export {
743
+ yl as default
744
+ };