vue-data-ui 3.0.0-next.45 → 3.0.0-next.46

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 (90) hide show
  1. package/dist/{Arrow-DgEzQzMT.js → Arrow-V1c_7Iuc.js} +1 -1
  2. package/dist/{BaseDraggableDialog-xCzNGVIr.js → BaseDraggableDialog-DcM8rbEA.js} +2 -2
  3. package/dist/{BaseIcon-CHz9WY7G.js → BaseIcon-CZuQH6nS.js} +1 -1
  4. package/dist/{ColorPicker--Tbj2qVg.js → ColorPicker-D9KkQSZJ.js} +2 -2
  5. package/dist/{DataTable-H7_j42qO.js → DataTable-B4zQoLvw.js} +2 -2
  6. package/dist/{Legend-Dfxs1-GD.js → Legend-BECWLhu3.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-C9gTKP8G.js → NonSvgPenAndPaper-bHMTpqgE.js} +3 -3
  8. package/dist/{PackageVersion-D0sIZGN2.js → PackageVersion-CfP-kRpV.js} +1 -1
  9. package/dist/{PenAndPaper-BNUfeOLb.js → PenAndPaper-D9kGHbcS.js} +3 -3
  10. package/dist/{Shape-Cre3W1M8.js → Shape-Bn0zkM0Z.js} +1 -1
  11. package/dist/{Slicer-7n_Mlm0i.js → Slicer-DZWj1AFl.js} +2 -2
  12. package/dist/{SparkTooltip-BbxlUnOg.js → SparkTooltip-ChekaEit.js} +1 -1
  13. package/dist/{Title-ovZyH-bw.js → Title-DDz8cvnd.js} +1 -1
  14. package/dist/{Tooltip-ECEmqPxW.js → Tooltip-PH1oamMs.js} +1 -1
  15. package/dist/{UserOptions-CA02tiU5.js → UserOptions-zFlvEx4s.js} +2 -2
  16. package/dist/{dom-to-png-BMnJicCF.js → dom-to-png-BWNK3ntP.js} +1 -1
  17. package/dist/{img-0LqWW2Ex.js → img-CBBL2nM6.js} +1 -1
  18. package/dist/{index-DUNyLppr.js → index-DZwm5g6W.js} +15 -2
  19. package/dist/{pdf-DqTTCU-h.js → pdf-D5CM2mLk.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +9 -0
  22. package/dist/types/vue-data-ui.d.ts +9 -0
  23. package/dist/{useNestedProp-DhAyQ4OD.js → useNestedProp-Ccr6UR4f.js} +1 -1
  24. package/dist/{usePrinter-BgLgX4pp.js → usePrinter-BpeW57d7.js} +2 -2
  25. package/dist/{vue-data-ui-DM9ESiFH.js → vue-data-ui-CaALX1cE.js} +64 -64
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-Shd_FKOm.js → vue-ui-3d-bar-CbXAXCrP.js} +6 -6
  28. package/dist/{vue-ui-accordion-BaRXVy_w.js → vue-ui-accordion-QGd9qcX5.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-BA5AoA6T.js → vue-ui-age-pyramid-DfOzyUtY.js} +6 -6
  30. package/dist/{vue-ui-annotator-GGdGlvgw.js → vue-ui-annotator-D2Y_kSr9.js} +2 -2
  31. package/dist/{vue-ui-bullet-DCvfW39D.js → vue-ui-bullet-BO054Yc2.js} +7 -7
  32. package/dist/{vue-ui-candlestick-CU7cLFmN.js → vue-ui-candlestick-321O2wNC.js} +7 -7
  33. package/dist/{vue-ui-carousel-table-BHi3YhW1.js → vue-ui-carousel-table-EFpGLPVu.js} +4 -4
  34. package/dist/{vue-ui-chestnut-C4lh2sS7.js → vue-ui-chestnut-u9OTEs3b.js} +5 -5
  35. package/dist/{vue-ui-chord-Dek6mj60.js → vue-ui-chord-BdJsmbkH.js} +8 -8
  36. package/dist/{vue-ui-circle-pack-D3CR4Awy.js → vue-ui-circle-pack-CcHd6tgT.js} +6 -6
  37. package/dist/{vue-ui-cursor-DAeccmuy.js → vue-ui-cursor-fe5rhpR7.js} +2 -2
  38. package/dist/{vue-ui-dashboard-CqQyrQaK.js → vue-ui-dashboard-pyEtswEm.js} +62 -62
  39. package/dist/{vue-ui-digits-B8beH3IH.js → vue-ui-digits-DECvoqJY.js} +2 -2
  40. package/dist/{vue-ui-donut-BYA4b3rG.js → vue-ui-donut-Cl3HImIJ.js} +8 -8
  41. package/dist/{vue-ui-donut-evolution-CqRnKnod.js → vue-ui-donut-evolution-BIkEVmIX.js} +8 -8
  42. package/dist/{vue-ui-dumbbell-DWO524KW.js → vue-ui-dumbbell-Bzzz9egM.js} +7 -7
  43. package/dist/{vue-ui-flow-CMTGI20f.js → vue-ui-flow-DKBOm8Ly.js} +7 -7
  44. package/dist/{vue-ui-funnel-DL89UvEA.js → vue-ui-funnel-DJBUaWKY.js} +6 -6
  45. package/dist/{vue-ui-galaxy-FVeYk3Ru.js → vue-ui-galaxy-hvUrHTog.js} +5 -5
  46. package/dist/{vue-ui-gauge-D88yEkE-.js → vue-ui-gauge-Bg34WxCo.js} +6 -6
  47. package/dist/{vue-ui-gizmo-Cij7bBzH.js → vue-ui-gizmo-z962Lw4y.js} +3 -3
  48. package/dist/{vue-ui-heatmap-CzB7iKi6.js → vue-ui-heatmap-CfCTb5rc.js} +7 -7
  49. package/dist/{vue-ui-history-plot-pSkrE5NB.js → vue-ui-history-plot-DXSWYC7X.js} +7 -7
  50. package/dist/{vue-ui-kpi-CKQLAW0k.js → vue-ui-kpi-DNfzah-A.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-CHsEDrqu.js → vue-ui-mini-loader-COg2jo4z.js} +2 -2
  52. package/dist/{vue-ui-molecule-C1uJN7Tq.js → vue-ui-molecule-DzOl447I.js} +5 -5
  53. package/dist/{vue-ui-mood-radar-DzJ79aVN.js → vue-ui-mood-radar-BwZIMppC.js} +7 -7
  54. package/dist/{vue-ui-nested-donuts-RQRhd3S9.js → vue-ui-nested-donuts-DpGhq449.js} +9 -9
  55. package/dist/{vue-ui-onion-DIyr7lAX.js → vue-ui-onion-DJSRYPHH.js} +7 -7
  56. package/dist/{vue-ui-parallel-coordinate-plot-0pV8xmkI.js → vue-ui-parallel-coordinate-plot-D-YWnkYC.js} +8 -8
  57. package/dist/{vue-ui-quadrant-BSZs47n-.js → vue-ui-quadrant-atZKuW-R.js} +8 -8
  58. package/dist/{vue-ui-quick-chart-BORR5gB-.js → vue-ui-quick-chart-CyqgjhMA.js} +6 -6
  59. package/dist/{vue-ui-radar-CZdotZii.js → vue-ui-radar-D7bfBtuC.js} +7 -7
  60. package/dist/{vue-ui-rating-BnyBBAi2.js → vue-ui-rating-emZD5fey.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-BxEz7R4c.js → vue-ui-relation-circle-BshAMPTk.js} +6 -6
  62. package/dist/{vue-ui-ridgeline-BpXENB67.js → vue-ui-ridgeline-wv6bxiwj.js} +8 -8
  63. package/dist/vue-ui-rings-CgMxqvcZ.js +728 -0
  64. package/dist/{vue-ui-scatter-BW2r6fZY.js → vue-ui-scatter-ogXsQ4pc.js} +8 -8
  65. package/dist/{vue-ui-skeleton-_0yYISMA.js → vue-ui-skeleton-CblyYOEP.js} +3 -3
  66. package/dist/{vue-ui-smiley-6EoELJwf.js → vue-ui-smiley-DdZEficV.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-Dr4-9tPB.js → vue-ui-spark-trend-DQE2Uj-6.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-DBoFnnmf.js → vue-ui-sparkbar-DT1SKJJH.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-ByNxRCxn.js → vue-ui-sparkgauge-C6J8kV1u.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-DTTlaprU.js → vue-ui-sparkhistogram--TuX5Kqt.js} +4 -4
  71. package/dist/{vue-ui-sparkline-CHJ0zSWA.js → vue-ui-sparkline--WZw1wv7.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-Dx3v_B_V.js → vue-ui-sparkstackbar-mYek0uGr.js} +3 -3
  73. package/dist/{vue-ui-stackbar-Cu4V8Rkq.js → vue-ui-stackbar-BguicNbU.js} +9 -9
  74. package/dist/{vue-ui-strip-plot-DO6UPV5d.js → vue-ui-strip-plot-BIi9ymxg.js} +7 -7
  75. package/dist/{vue-ui-table-CCCZjmAo.js → vue-ui-table-AZTSOqWN.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-Cd2mymaB.js → vue-ui-table-heatmap-XP01kcIl.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-GdtNr8d3.js → vue-ui-table-sparkline-BGmTm0wX.js} +4 -4
  78. package/dist/{vue-ui-thermometer-B5N3wZgz.js → vue-ui-thermometer-DZ2j88MJ.js} +6 -6
  79. package/dist/{vue-ui-timer-BP5ZlzSE.js → vue-ui-timer-Drh2_FuY.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-4haJ0VT4.js → vue-ui-tiremarks-BCWrtCkn.js} +6 -6
  81. package/dist/{vue-ui-treemap-Dkk846Tq.js → vue-ui-treemap-CwAjGMug.js} +8 -8
  82. package/dist/{vue-ui-vertical-bar-CwFc2JaR.js → vue-ui-vertical-bar-Bh4FTGGh.js} +9 -9
  83. package/dist/{vue-ui-waffle-CjgCVEN5.js → vue-ui-waffle-B2s-YgBH.js} +8 -8
  84. package/dist/{vue-ui-wheel-Bb1sXcqP.js → vue-ui-wheel-BUrxZvmU.js} +6 -6
  85. package/dist/{vue-ui-word-cloud-BMZ3INRy.js → vue-ui-word-cloud-CX7FNV0u.js} +6 -6
  86. package/dist/{vue-ui-world-DZty9slh.js → vue-ui-world-prPApFsl.js} +6 -6
  87. package/dist/{vue-ui-xy-Cze2MXJb.js → vue-ui-xy-KViks--h.js} +9 -9
  88. package/dist/{vue-ui-xy-canvas-DiXFRGFz.js → vue-ui-xy-canvas-BuBtTw3Y.js} +8 -8
  89. package/package.json +1 -1
  90. package/dist/vue-ui-rings-CgzrMaMS.js +0 -687
@@ -0,0 +1,728 @@
1
+ import { defineAsyncComponent as R, useSlots as rt, ref as r, computed as f, toRefs as it, watch as le, shallowRef as Pe, onMounted as vt, onBeforeUnmount as ct, createElementBlock as d, openBlock as i, unref as s, normalizeStyle as O, normalizeClass as B, createBlock as S, createCommentVNode as b, createElementVNode as A, createVNode as ae, createSlots as Ne, withCtx as g, renderSlot as h, normalizeProps as D, guardReactiveProps as M, Fragment as oe, renderList as se, mergeProps as dt, toDisplayString as E, createTextVNode as ht, nextTick as pt } from "vue";
2
+ import { u as gt, c as Le, v as ft, t as yt, p as P, a as mt, o as Ve, e as ne, g as bt, b as kt, G as wt, d as Re, f as N, X as Ct, s as $t, x as Tt, w as X, i as De, q as _t, r as xt, y as At, z as Ft } from "./index-DZwm5g6W.js";
3
+ import { t as It, u as Ot } from "./useResponsive-DfdjqQps.js";
4
+ import { u as St } from "./usePrinter-BpeW57d7.js";
5
+ import { u as Pt, B as Nt } from "./BaseScanner-DIK2NTdp.js";
6
+ import { u as Me } from "./useNestedProp-Ccr6UR4f.js";
7
+ import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Rt from "./Legend-BECWLhu3.js";
10
+ import Dt from "./Title-DDz8cvnd.js";
11
+ import { _ as Mt } from "./Shape-Bn0zkM0Z.js";
12
+ import zt from "./img-CBBL2nM6.js";
13
+ import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["id"], Ht = ["stop-color"], jt = ["stop-color"], Xt = { key: 1 }, qt = ["stroke", "cx", "cy", "r", "fill"], Yt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Jt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Kt = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Qt = {
15
+ key: 4,
16
+ class: "vue-data-ui-watermark"
17
+ }, Zt = ["onClick"], el = ["innerHTML"], tl = {
18
+ __name: "vue-ui-rings",
19
+ props: {
20
+ config: {
21
+ type: Object,
22
+ default() {
23
+ return {};
24
+ }
25
+ },
26
+ dataset: {
27
+ type: Array,
28
+ default() {
29
+ return [];
30
+ }
31
+ }
32
+ },
33
+ emits: ["selectLegend"],
34
+ setup(ze, { expose: Be, emit: Ee }) {
35
+ const Ue = R(() => import("./vue-ui-accordion-QGd9qcX5.js")), We = R(() => import("./DataTable-B4zQoLvw.js")), Ge = R(() => import("./PackageVersion-CfP-kRpV.js")), He = R(() => import("./PenAndPaper-D9kGHbcS.js")), je = R(() => import("./Tooltip-PH1oamMs.js")), Xe = R(() => import("./UserOptions-zFlvEx4s.js")), { vue_ui_rings: qe } = gt(), Ye = rt(), m = ze, F = r(!1), ue = f(() => !!m.dataset && m.dataset.length), C = r(Le()), Je = r(null), U = r(!1), q = r(""), $ = r(null), re = r(0), T = r(null), ie = r(null), ve = r(null), ce = r(null), de = r(null), he = r(0), pe = r(0), ge = r(0), Y = r(!1), e = r(K()), { loading: I, FINAL_DATASET: fe, manualLoading: W } = Pt({
36
+ ...it(m),
37
+ FINAL_CONFIG: e,
38
+ prepareConfig: K,
39
+ skeletonDataset: [
40
+ { name: "_", values: [13], color: "#808080" },
41
+ { name: "_", values: [8], color: "#969696" },
42
+ { name: "_", values: [5], color: "#ADADAD" },
43
+ { name: "_", values: [3], color: "#C4C4C4" },
44
+ { name: "_", values: [2], color: "#DBDBDB" }
45
+ ],
46
+ skeletonConfig: ft({
47
+ defaultConfig: e.value,
48
+ userConfig: {
49
+ userOptions: { show: !1 },
50
+ table: { show: !1 },
51
+ style: {
52
+ chart: {
53
+ backgroundColor: "#99999930",
54
+ layout: {
55
+ rings: {
56
+ stroke: "#6A6A6A",
57
+ gradient: {
58
+ underlayerColor: "#FFFFFF"
59
+ }
60
+ }
61
+ },
62
+ legend: {
63
+ backgroundColor: "transparent"
64
+ }
65
+ }
66
+ }
67
+ }
68
+ })
69
+ }), { userOptionsVisible: J, setUserOptionsVisibility: ye, keepUserOptionState: me } = Lt({ config: e.value }), { svgRef: be } = Vt({ config: e.value.style.chart.title });
70
+ function K() {
71
+ const t = Me({
72
+ userConfig: m.config,
73
+ defaultConfig: qe
74
+ });
75
+ return t.theme ? {
76
+ ...Me({
77
+ userConfig: mt.vue_ui_rings[t.theme] || m.config,
78
+ defaultConfig: t
79
+ }),
80
+ customPalette: yt[t.theme] || P
81
+ } : t;
82
+ }
83
+ le(() => m.config, (t) => {
84
+ I.value || (e.value = K()), J.value = !e.value.userOptions.showOnChartHover, ke(), he.value += 1, pe.value += 1, ge.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
85
+ }, { deep: !0 }), le(() => m.dataset, (t) => {
86
+ Array.isArray(t) && t.length > 0 && (W.value = !1);
87
+ }, { deep: !0 });
88
+ const _ = Pe(null), L = Pe(null);
89
+ vt(() => {
90
+ ke();
91
+ });
92
+ const Q = f(() => !!e.value.debug);
93
+ function ke() {
94
+ if (Ve(m.dataset) ? (ne({
95
+ componentName: "VueUiRings",
96
+ type: "dataset",
97
+ debug: Q.value
98
+ }), W.value = !0) : m.dataset.forEach((t, a) => {
99
+ t.values.length || (ne({
100
+ componentName: "VueUiRings",
101
+ type: "dataset",
102
+ debug: Q.value
103
+ }), W.value = !0), bt({
104
+ datasetObject: t,
105
+ requiredAttributes: ["name", "values"]
106
+ }).forEach((l) => {
107
+ ne({
108
+ componentName: "VueUiRings",
109
+ type: "datasetSerieAttribute",
110
+ property: l,
111
+ index: a,
112
+ debug: Q.value
113
+ });
114
+ });
115
+ }), Ve(m.dataset) || (W.value = e.value.loading), e.value.responsive) {
116
+ const t = It(() => {
117
+ Y.value = !0;
118
+ const { width: a, height: l } = Ot({
119
+ chart: T.value,
120
+ title: e.value.style.chart.title.text ? ie.value : null,
121
+ legend: e.value.style.chart.legend.show ? ve.value : null,
122
+ source: ce.value,
123
+ noTitle: de.value
124
+ });
125
+ requestAnimationFrame(() => {
126
+ n.value.width = a, n.value.height = l - 12, Y.value = !1;
127
+ });
128
+ });
129
+ _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect()), _.value = new ResizeObserver(t), L.value = T.value.parentNode, _.value.observe(L.value);
130
+ }
131
+ setTimeout(() => {
132
+ F.value = !0;
133
+ }, 600);
134
+ }
135
+ ct(() => {
136
+ _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect());
137
+ });
138
+ const { isPrinting: we, isImaging: Ce, generatePdf: $e, generateImage: Te } = St({
139
+ elementId: `rings_${C.value}`,
140
+ fileName: e.value.style.chart.title.text || "vue-ui-rings",
141
+ options: e.value.userOptions.print
142
+ }), Ke = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), _e = f(() => kt(e.value.customPalette)), k = r({
143
+ showTable: e.value.table.show,
144
+ showTooltip: e.value.style.chart.tooltip.show
145
+ });
146
+ le(e, () => {
147
+ k.value = {
148
+ showTable: e.value.table.show,
149
+ showTooltip: e.value.style.chart.tooltip.show
150
+ };
151
+ }, { immediate: !0 });
152
+ const n = r({
153
+ height: 360,
154
+ width: 360
155
+ }), Qe = f(() => Math.min(n.value.height, n.value.width)), Ze = Ee, y = r([]);
156
+ function Z(t) {
157
+ y.value.includes(t) ? y.value = y.value.filter((a) => a !== t) : y.value.push(t), Ze("selectLegend", p.value.map((a) => ({
158
+ name: a.name,
159
+ color: a.color,
160
+ value: a.value
161
+ })));
162
+ }
163
+ const et = f(() => Math.max(
164
+ ...G.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t)
165
+ ));
166
+ function xe(t) {
167
+ return t / et.value;
168
+ }
169
+ const G = f(() => fe.value.map(({ values: t, name: a, color: l = null }, o) => {
170
+ const u = wt(t).reduce((v, z) => v + z, 0);
171
+ return {
172
+ name: a,
173
+ color: l || Re(l) || _e.value[o] || P[o] || P[o % P.length],
174
+ value: u,
175
+ proportion: u / fe.value.map((v) => (v.values || []).reduce((z, ut) => z + ut, 0)).reduce((v, z) => v + z, 0),
176
+ uid: Le(),
177
+ absoluteIndex: o
178
+ };
179
+ })), Ae = f(() => G.value.map((t) => ({
180
+ ...t,
181
+ shape: "circle",
182
+ opacity: y.value.includes(t.uid) ? 0.5 : 1,
183
+ segregate: () => Z(t.uid),
184
+ isSegregated: y.value.includes(t.uid)
185
+ })).toSorted((t, a) => a.value - t.value)), tt = f(() => ({
186
+ cy: "rings-div-legend",
187
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
188
+ color: e.value.style.chart.legend.color,
189
+ fontSize: e.value.style.chart.legend.fontSize,
190
+ paddingBottom: 12,
191
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
192
+ })), w = f(() => G.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), p = f(() => G.value.filter((t) => !y.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o, absoluteIndex: u }, v) => ({
193
+ absoluteIndex: u,
194
+ uid: o,
195
+ name: t,
196
+ color: l || Re(l) || _e.value[v] || P[v] || P[v % P.length],
197
+ value: a,
198
+ proportion: xe(a),
199
+ percentage: a / w.value * 100,
200
+ strokeWidth: e.value.style.chart.layout.rings.strokeWidth * xe(a)
201
+ })).toSorted((t, a) => a.value - t.value));
202
+ function lt() {
203
+ return p.value.map(
204
+ ({ name: t, color: a, value: l, absoluteValues: o, percentage: u }) => ({
205
+ name: t,
206
+ color: a,
207
+ value: l,
208
+ absoluteValues: o,
209
+ percentage: u
210
+ })
211
+ );
212
+ }
213
+ const c = f(() => Qe.value - e.value.style.chart.layout.rings.strokeWidth * 2);
214
+ function at(t, a) {
215
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
216
+ }
217
+ function ot(t, a) {
218
+ $.value = null, U.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
219
+ }
220
+ const ee = r(null);
221
+ function st(t, a) {
222
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), y.value.length === m.dataset.length) return;
223
+ ee.value = {
224
+ datapoint: t,
225
+ seriesIndex: a,
226
+ series: p.value,
227
+ config: e.value
228
+ }, $.value = a;
229
+ const l = p.value[a], o = e.value.style.chart.tooltip.customFormat;
230
+ if (At(o) && Ft(() => o({
231
+ seriesIndex: a,
232
+ datapoint: t,
233
+ series: p.value,
234
+ config: e.value
235
+ })))
236
+ q.value = o({
237
+ seriesIndex: a,
238
+ datapoint: t,
239
+ series: p.value,
240
+ config: e.value
241
+ });
242
+ else {
243
+ let u = "";
244
+ u += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, u += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${Ye.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${C.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (u += `<b>${De(
245
+ e.value.style.chart.layout.labels.dataLabels.formatter,
246
+ l.value,
247
+ N({
248
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
249
+ v: l.value,
250
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
251
+ r: e.value.style.chart.tooltip.roundingValue
252
+ }),
253
+ { datapoint: t, seriesIndex: a }
254
+ )}
255
+ </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${N({
256
+ v: l.value / w.value * 100,
257
+ s: "%",
258
+ r: e.value.style.chart.tooltip.roundingPercentage
259
+ })})</span></div>` : u += `<b>${N({
260
+ v: l.value / w.value * 100,
261
+ s: "%",
262
+ r: e.value.style.chart.tooltip.roundingPercentage
263
+ })}</b></div>`), q.value = u;
264
+ }
265
+ U.value = !0;
266
+ }
267
+ const x = f(() => {
268
+ const t = p.value.map((l) => ({
269
+ name: l.name,
270
+ color: l.color
271
+ })), a = p.value.map((l) => l.value);
272
+ return { head: t, body: a };
273
+ }), H = f(() => {
274
+ const t = [
275
+ ' <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>',
276
+ N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: w.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
277
+ "100%"
278
+ ], a = x.value.head.map((u, v) => [
279
+ {
280
+ color: u.color,
281
+ name: u.name
282
+ },
283
+ N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
284
+ isNaN(x.value.body[v] / w.value) ? "-" : (x.value.body[v] / w.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
285
+ ]), l = {
286
+ th: {
287
+ backgroundColor: e.value.table.th.backgroundColor,
288
+ color: e.value.table.th.color,
289
+ outline: e.value.table.th.outline
290
+ },
291
+ td: {
292
+ backgroundColor: e.value.table.td.backgroundColor,
293
+ color: e.value.table.td.color,
294
+ outline: e.value.table.td.outline
295
+ },
296
+ breakpoint: e.value.table.responsiveBreakpoint
297
+ }, o = [
298
+ e.value.table.columnNames.series,
299
+ e.value.table.columnNames.value,
300
+ e.value.table.columnNames.percentage
301
+ ];
302
+ return {
303
+ head: t,
304
+ body: a,
305
+ config: l,
306
+ colNames: o
307
+ };
308
+ });
309
+ function Fe(t = null) {
310
+ pt(() => {
311
+ const a = x.value.head.map((u, v) => [[
312
+ u.name
313
+ ], [x.value.body[v]], [isNaN(x.value.body[v] / w.value) ? "-" : x.value.body[v] / w.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = _t(l);
314
+ t ? t(o) : xt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-rings" });
315
+ });
316
+ }
317
+ const V = r(!1);
318
+ function Ie(t) {
319
+ V.value = t, re.value += 1;
320
+ }
321
+ function Oe() {
322
+ k.value.showTable = !k.value.showTable;
323
+ }
324
+ function Se() {
325
+ k.value.showTooltip = !k.value.showTooltip;
326
+ }
327
+ const j = r(!1);
328
+ function te() {
329
+ j.value = !j.value;
330
+ }
331
+ async function nt({ scale: t = 2 } = {}) {
332
+ if (!T.value) return;
333
+ const { width: a, height: l } = T.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: v } = await zt({ domElement: T.value, base64: !0, img: !0, scale: t });
334
+ return {
335
+ imageUri: u,
336
+ base64: v,
337
+ title: e.value.style.chart.title.text,
338
+ width: a,
339
+ height: l,
340
+ aspectRatio: o
341
+ };
342
+ }
343
+ return Be({
344
+ getData: lt,
345
+ getImage: nt,
346
+ generatePdf: $e,
347
+ generateCsv: Fe,
348
+ generateImage: Te,
349
+ toggleTable: Oe,
350
+ toggleTooltip: Se,
351
+ toggleAnnotator: te,
352
+ toggleFullscreen: Ie
353
+ }), (t, a) => (i(), d("div", {
354
+ ref_key: "ringsChart",
355
+ ref: T,
356
+ class: B(`vue-ui-rings ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
357
+ style: O(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
358
+ id: `rings_${C.value}`,
359
+ onMouseleave: a[2] || (a[2] = (l) => {
360
+ $.value = null, U.value = !1, s(ye)(!1);
361
+ }),
362
+ onMouseenter: a[3] || (a[3] = () => s(ye)(!0))
363
+ }, [
364
+ e.value.userOptions.buttons.annotator ? (i(), S(s(He), {
365
+ key: 0,
366
+ svgRef: s(be),
367
+ backgroundColor: e.value.style.chart.backgroundColor,
368
+ color: e.value.style.chart.color,
369
+ active: j.value,
370
+ onClose: te
371
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
372
+ Ke.value ? (i(), d("div", {
373
+ key: 1,
374
+ ref_key: "noTitle",
375
+ ref: de,
376
+ class: "vue-data-ui-no-title-space",
377
+ style: "height:36px; width: 100%;background:transparent"
378
+ }, null, 512)) : b("", !0),
379
+ e.value.style.chart.title.text ? (i(), d("div", {
380
+ key: 2,
381
+ ref_key: "chartTitle",
382
+ ref: ie,
383
+ style: "width:100%;background:transparent"
384
+ }, [
385
+ (i(), S(Dt, {
386
+ key: `title_${he.value}`,
387
+ config: {
388
+ title: {
389
+ cy: "rings-div-title",
390
+ ...e.value.style.chart.title
391
+ },
392
+ subtitle: {
393
+ cy: "rings-div-subtitle",
394
+ ...e.value.style.chart.title.subtitle
395
+ }
396
+ }
397
+ }, null, 8, ["config"]))
398
+ ], 512)) : b("", !0),
399
+ e.value.userOptions.show && ue.value && (s(me) || s(J)) ? (i(), S(s(Xe), {
400
+ ref_key: "details",
401
+ ref: Je,
402
+ key: `user_options_${re.value}`,
403
+ backgroundColor: e.value.style.chart.backgroundColor,
404
+ color: e.value.style.chart.color,
405
+ isPrinting: s(we),
406
+ isImaging: s(Ce),
407
+ uid: C.value,
408
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
409
+ hasPdf: e.value.userOptions.buttons.pdf,
410
+ hasXls: e.value.userOptions.buttons.csv,
411
+ hasImg: e.value.userOptions.buttons.img,
412
+ hasTable: e.value.userOptions.buttons.table,
413
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
414
+ isTooltip: k.value.showTooltip,
415
+ isFullscreen: V.value,
416
+ titles: { ...e.value.userOptions.buttonTitles },
417
+ chartElement: T.value,
418
+ position: e.value.userOptions.position,
419
+ hasAnnotator: e.value.userOptions.buttons.annotator,
420
+ isAnnotation: j.value,
421
+ callbacks: e.value.userOptions.callbacks,
422
+ printScale: e.value.userOptions.print.scale,
423
+ onToggleFullscreen: Ie,
424
+ onGeneratePdf: s($e),
425
+ onGenerateCsv: Fe,
426
+ onGenerateImage: s(Te),
427
+ onToggleTable: Oe,
428
+ onToggleTooltip: Se,
429
+ onToggleAnnotator: te,
430
+ style: O({
431
+ visibility: s(me) ? s(J) ? "visible" : "hidden" : "visible"
432
+ })
433
+ }, Ne({ _: 2 }, [
434
+ t.$slots.menuIcon ? {
435
+ name: "menuIcon",
436
+ fn: g(({ isOpen: l, color: o }) => [
437
+ h(t.$slots, "menuIcon", D(M({ isOpen: l, color: o })), void 0, !0)
438
+ ]),
439
+ key: "0"
440
+ } : void 0,
441
+ t.$slots.optionTooltip ? {
442
+ name: "optionTooltip",
443
+ fn: g(() => [
444
+ h(t.$slots, "optionTooltip", {}, void 0, !0)
445
+ ]),
446
+ key: "1"
447
+ } : void 0,
448
+ t.$slots.optionPdf ? {
449
+ name: "optionPdf",
450
+ fn: g(() => [
451
+ h(t.$slots, "optionPdf", {}, void 0, !0)
452
+ ]),
453
+ key: "2"
454
+ } : void 0,
455
+ t.$slots.optionCsv ? {
456
+ name: "optionCsv",
457
+ fn: g(() => [
458
+ h(t.$slots, "optionCsv", {}, void 0, !0)
459
+ ]),
460
+ key: "3"
461
+ } : void 0,
462
+ t.$slots.optionImg ? {
463
+ name: "optionImg",
464
+ fn: g(() => [
465
+ h(t.$slots, "optionImg", {}, void 0, !0)
466
+ ]),
467
+ key: "4"
468
+ } : void 0,
469
+ t.$slots.optionTable ? {
470
+ name: "optionTable",
471
+ fn: g(() => [
472
+ h(t.$slots, "optionTable", {}, void 0, !0)
473
+ ]),
474
+ key: "5"
475
+ } : void 0,
476
+ t.$slots.optionFullscreen ? {
477
+ name: "optionFullscreen",
478
+ fn: g(({ toggleFullscreen: l, isFullscreen: o }) => [
479
+ h(t.$slots, "optionFullscreen", D(M({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
480
+ ]),
481
+ key: "6"
482
+ } : void 0,
483
+ t.$slots.optionAnnotator ? {
484
+ name: "optionAnnotator",
485
+ fn: g(({ toggleAnnotator: l, isAnnotator: o }) => [
486
+ h(t.$slots, "optionAnnotator", D(M({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
487
+ ]),
488
+ key: "7"
489
+ } : void 0
490
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
491
+ (i(), d("svg", {
492
+ ref_key: "svgRef",
493
+ ref: be,
494
+ xmlns: s(Ct),
495
+ class: B({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value, resizing: Y.value || s(I) }),
496
+ viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
497
+ style: O(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
498
+ }, [
499
+ ae(s(Ge)),
500
+ t.$slots["chart-background"] ? (i(), d("foreignObject", {
501
+ key: 0,
502
+ x: 0,
503
+ y: 0,
504
+ width: n.value.width <= 0 ? 10 : n.value.width,
505
+ height: n.value.height <= 0 ? 10 : n.value.height,
506
+ style: {
507
+ pointerEvents: "none"
508
+ }
509
+ }, [
510
+ h(t.$slots, "chart-background", {}, void 0, !0)
511
+ ], 8, Wt)) : b("", !0),
512
+ A("defs", null, [
513
+ (i(!0), d(oe, null, se(p.value, (l, o) => (i(), d("radialGradient", {
514
+ cx: "50%",
515
+ cy: "30%",
516
+ r: "50%",
517
+ fx: "50%",
518
+ fy: "50%",
519
+ id: `gradient_${C.value}_${o}`
520
+ }, [
521
+ A("stop", {
522
+ offset: "0%",
523
+ "stop-color": s($t)(s(Tt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
524
+ }, null, 8, Ht),
525
+ A("stop", {
526
+ offset: "100%",
527
+ "stop-color": l.color
528
+ }, null, 8, jt)
529
+ ], 8, Gt))), 256))
530
+ ]),
531
+ t.$slots.pattern ? (i(), d("g", Xt, [
532
+ (i(!0), d(oe, null, se(p.value, (l) => (i(), d("defs", null, [
533
+ h(t.$slots, "pattern", dt({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${C.value}_${l.absoluteIndex}` }), void 0, !0)
534
+ ]))), 256))
535
+ ])) : b("", !0),
536
+ (i(!0), d(oe, null, se(p.value, (l, o) => (i(), d("g", null, [
537
+ A("circle", {
538
+ class: B({
539
+ "vue-ui-rings-item": F.value && e.value.useCssAnimation,
540
+ "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
541
+ "vue-ui-rings-opacity": $.value !== null && $.value !== o
542
+ }),
543
+ style: O(`animation-delay:${o * 100}ms`),
544
+ stroke: e.value.style.chart.layout.rings.stroke,
545
+ cx: n.value.width / 2,
546
+ cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
547
+ r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
548
+ fill: e.value.style.chart.layout.rings.gradient.underlayerColor
549
+ }, null, 14, qt),
550
+ A("circle", {
551
+ class: B({
552
+ "vue-ui-rings-item": F.value && e.value.useCssAnimation,
553
+ "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
554
+ "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
555
+ "vue-ui-rings-blur": $.value !== null && $.value !== o
556
+ }),
557
+ style: O(`animation-delay:${o * 100}ms`),
558
+ stroke: e.value.style.chart.layout.rings.stroke,
559
+ "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
560
+ cx: n.value.width / 2,
561
+ cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
562
+ r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
563
+ fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${C.value}_${o})` : l.color
564
+ }, null, 14, Yt),
565
+ t.$slots.pattern ? (i(), d("circle", {
566
+ key: 0,
567
+ class: B({
568
+ "vue-ui-rings-item": F.value && e.value.useCssAnimation,
569
+ "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
570
+ "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
571
+ "vue-ui-rings-blur": $.value !== null && $.value !== o
572
+ }),
573
+ style: O(`animation-delay:${o * 100}ms`),
574
+ stroke: e.value.style.chart.layout.rings.stroke,
575
+ "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
576
+ cx: n.value.width / 2,
577
+ cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
578
+ r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
579
+ fill: `url(#pattern_${C.value}_${l.absoluteIndex})`
580
+ }, null, 14, Jt)) : b("", !0),
581
+ A("circle", {
582
+ stroke: "none",
583
+ cx: n.value.width / 2,
584
+ cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
585
+ r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
586
+ fill: "transparent",
587
+ onMouseenter: (u) => st(l, o),
588
+ onMouseleave: (u) => ot(l, o),
589
+ onClick: (u) => at(l, o)
590
+ }, null, 40, Kt)
591
+ ]))), 256)),
592
+ h(t.$slots, "svg", { svg: n.value }, void 0, !0)
593
+ ], 14, Ut)),
594
+ t.$slots.watermark ? (i(), d("div", Qt, [
595
+ h(t.$slots, "watermark", D(M({ isPrinting: s(we) || s(Ce) })), void 0, !0)
596
+ ])) : b("", !0),
597
+ A("div", {
598
+ ref_key: "chartLegend",
599
+ ref: ve
600
+ }, [
601
+ e.value.style.chart.legend.show ? (i(), S(Rt, {
602
+ key: `legend_${ge.value}`,
603
+ legendSet: Ae.value,
604
+ config: tt.value,
605
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => Z(l.uid))
606
+ }, Ne({
607
+ item: g(({ legend: l, index: o }) => [
608
+ s(I) ? b("", !0) : (i(), d("div", {
609
+ key: 0,
610
+ onClick: (u) => Z(l.uid),
611
+ style: O(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
612
+ }, E(l.name) + E(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + E(e.value.style.chart.legend.showValue ? s(De)(
613
+ e.value.style.chart.layout.labels.dataLabels.formatter,
614
+ l.value,
615
+ s(N)({
616
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
617
+ v: l.value,
618
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
619
+ r: e.value.style.chart.legend.roundingValue
620
+ }),
621
+ { datapoint: l, seriesIndex: o }
622
+ ) : "") + " " + E(e.value.style.chart.legend.showPercentage ? y.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / w.value) ? "-" : s(N)({
623
+ v: l.value / w.value * 100,
624
+ s: "%",
625
+ r: e.value.style.chart.legend.roundingPercentage
626
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Zt))
627
+ ]),
628
+ _: 2
629
+ }, [
630
+ t.$slots.pattern ? {
631
+ name: "legend-pattern",
632
+ fn: g(({ legend: l, index: o }) => [
633
+ ae(Mt, {
634
+ shape: l.shape,
635
+ radius: 30,
636
+ stroke: "none",
637
+ plot: { x: 30, y: 30 },
638
+ fill: `url(#pattern_${C.value}_${o})`
639
+ }, null, 8, ["shape", "fill"])
640
+ ]),
641
+ key: "0"
642
+ } : void 0
643
+ ]), 1032, ["legendSet", "config"])) : h(t.$slots, "legend", {
644
+ key: 1,
645
+ legend: Ae.value
646
+ }, void 0, !0)
647
+ ], 512),
648
+ t.$slots.source ? (i(), d("div", {
649
+ key: 5,
650
+ ref_key: "source",
651
+ ref: ce,
652
+ dir: "auto"
653
+ }, [
654
+ h(t.$slots, "source", {}, void 0, !0)
655
+ ], 512)) : b("", !0),
656
+ ae(s(je), {
657
+ show: k.value.showTooltip && U.value && y.value.length < m.dataset.length,
658
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
659
+ color: e.value.style.chart.tooltip.color,
660
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
661
+ borderColor: e.value.style.chart.tooltip.borderColor,
662
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
663
+ fontSize: e.value.style.chart.tooltip.fontSize,
664
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
665
+ position: e.value.style.chart.tooltip.position,
666
+ offsetY: e.value.style.chart.tooltip.offsetY,
667
+ parent: T.value,
668
+ content: q.value,
669
+ isFullscreen: V.value,
670
+ isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
671
+ smooth: e.value.style.chart.tooltip.smooth,
672
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
673
+ }, {
674
+ "tooltip-before": g(() => [
675
+ h(t.$slots, "tooltip-before", D(M({ ...ee.value })), void 0, !0)
676
+ ]),
677
+ "tooltip-after": g(() => [
678
+ h(t.$slots, "tooltip-after", D(M({ ...ee.value })), void 0, !0)
679
+ ]),
680
+ _: 3
681
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
682
+ ue.value ? (i(), S(s(Ue), {
683
+ key: 6,
684
+ hideDetails: "",
685
+ config: {
686
+ open: k.value.showTable,
687
+ maxHeight: 1e4,
688
+ body: {
689
+ backgroundColor: e.value.style.chart.backgroundColor,
690
+ color: e.value.style.chart.color
691
+ },
692
+ head: {
693
+ backgroundColor: e.value.style.chart.backgroundColor,
694
+ color: e.value.style.chart.color
695
+ }
696
+ }
697
+ }, {
698
+ content: g(() => [
699
+ (i(), S(s(We), {
700
+ key: `table_${pe.value}`,
701
+ colNames: H.value.colNames,
702
+ head: H.value.head,
703
+ body: H.value.body,
704
+ config: H.value.config,
705
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
706
+ onClose: a[1] || (a[1] = (l) => k.value.showTable = !1)
707
+ }, {
708
+ th: g(({ th: l }) => [
709
+ A("div", {
710
+ innerHTML: l,
711
+ style: { display: "flex", "align-items": "center" }
712
+ }, null, 8, el)
713
+ ]),
714
+ td: g(({ td: l }) => [
715
+ ht(E(l.name || l), 1)
716
+ ]),
717
+ _: 1
718
+ }, 8, ["colNames", "head", "body", "config", "title"]))
719
+ ]),
720
+ _: 1
721
+ }, 8, ["config"])) : b("", !0),
722
+ s(I) ? (i(), S(Nt, { key: 7 })) : b("", !0)
723
+ ], 46, Et));
724
+ }
725
+ }, gl = /* @__PURE__ */ Bt(tl, [["__scopeId", "data-v-96435534"]]);
726
+ export {
727
+ gl as default
728
+ };