vue-data-ui 2.2.92 → 2.2.94

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 (58) hide show
  1. package/dist/index-DZlxUin4.js +57288 -0
  2. package/dist/{index.es-Dc9Fd4o6.js → index.es-Cgqo-FBk.js} +1 -1
  3. package/dist/style.css +1 -1
  4. package/dist/vue-data-ui.js +61 -455
  5. package/package.json +1 -1
  6. package/dist/data-table-d-VcuH-r.js +0 -1488
  7. package/dist/legend-DJCYLsl_.js +0 -61
  8. package/dist/themes-lgjsYHsH.js +0 -4967
  9. package/dist/title-BF-9Qcni.js +0 -56
  10. package/dist/tooltip-D85WEOKi.js +0 -94
  11. package/dist/user-options-DZgCz8UA.js +0 -415
  12. package/dist/vue-ui-3d-bar-DW7kGJSz.js +0 -20360
  13. package/dist/vue-ui-age-pyramid-4hcuKpFY.js +0 -781
  14. package/dist/vue-ui-annotator-C83FVvl8.js +0 -2175
  15. package/dist/vue-ui-candlestick-diclGj95.js +0 -807
  16. package/dist/vue-ui-chestnut-ACetHLdG.js +0 -1049
  17. package/dist/vue-ui-cursor-Rx7UNaYT.js +0 -229
  18. package/dist/vue-ui-dashboard-B3PlN0ks.js +0 -231
  19. package/dist/vue-ui-digits-CxMXID42.js +0 -154
  20. package/dist/vue-ui-donut-DMiwVXNd.js +0 -1534
  21. package/dist/vue-ui-dumbbell-B_X1T8TR.js +0 -621
  22. package/dist/vue-ui-flow-B72wzQ6V.js +0 -451
  23. package/dist/vue-ui-galaxy-DXX5yivT.js +0 -482
  24. package/dist/vue-ui-gauge-Cs9PDurH.js +0 -466
  25. package/dist/vue-ui-heatmap-PcoNSLdN.js +0 -581
  26. package/dist/vue-ui-kpi-DchEmPtB.js +0 -55
  27. package/dist/vue-ui-mini-loader-DltJLkqy.js +0 -131
  28. package/dist/vue-ui-molecule-CWvukBzs.js +0 -746
  29. package/dist/vue-ui-mood-radar-DEfdtIi8.js +0 -544
  30. package/dist/vue-ui-nested-donuts-9URpqgXE.js +0 -768
  31. package/dist/vue-ui-onion-C0eowUT6.js +0 -551
  32. package/dist/vue-ui-parallel-coordinate-plot-Bc_pAaPJ.js +0 -647
  33. package/dist/vue-ui-quadrant-_ddVAm9V.js +0 -1174
  34. package/dist/vue-ui-quick-chart-Cio0hDYO.js +0 -1310
  35. package/dist/vue-ui-radar-Dyg38i33.js +0 -853
  36. package/dist/vue-ui-rating-CE1Lmwd2.js +0 -271
  37. package/dist/vue-ui-relation-circle-BMlB3k3d.js +0 -303
  38. package/dist/vue-ui-rings-BuXeijvb.js +0 -507
  39. package/dist/vue-ui-scatter-B1hZfOua.js +0 -870
  40. package/dist/vue-ui-screenshot-0QXgxzGs.js +0 -160
  41. package/dist/vue-ui-smiley-B7kR7exr.js +0 -763
  42. package/dist/vue-ui-spark-trend-BmL2KiYL.js +0 -245
  43. package/dist/vue-ui-sparkgauge-BMzFv14L.js +0 -158
  44. package/dist/vue-ui-sparkhistogram-DWpOXqHm.js +0 -243
  45. package/dist/vue-ui-sparkstackbar-DB9VQXlc.js +0 -244
  46. package/dist/vue-ui-strip-plot-DyN6P0JO.js +0 -614
  47. package/dist/vue-ui-table-DM3zL89q.js +0 -2180
  48. package/dist/vue-ui-table-heatmap-gWx0Nslu.js +0 -237
  49. package/dist/vue-ui-thermometer-Bcqv5kd_.js +0 -384
  50. package/dist/vue-ui-timer-BIFxjujK.js +0 -451
  51. package/dist/vue-ui-tiremarks-zBwHpED_.js +0 -248
  52. package/dist/vue-ui-treemap-BaplVc_z.js +0 -719
  53. package/dist/vue-ui-vertical-bar-CdK6ZJPM.js +0 -734
  54. package/dist/vue-ui-waffle-COOzH7M3.js +0 -635
  55. package/dist/vue-ui-wheel-BEpuVTBk.js +0 -226
  56. package/dist/vue-ui-word-cloud-DNqxAAiX.js +0 -344
  57. package/dist/vue-ui-xy-_mHq-czW.js +0 -2058
  58. package/dist/vue-ui-xy-canvas-DqX8Gee5.js +0 -1003
@@ -1,482 +0,0 @@
1
- import { computed as v, onMounted as be, ref as u, openBlock as r, createElementBlock as n, normalizeClass as N, normalizeStyle as S, createVNode as z, createCommentVNode as d, createBlock as F, unref as C, createSlots as me, withCtx as i, renderSlot as h, normalizeProps as W, guardReactiveProps as A, createElementVNode as x, Fragment as Q, renderList as Z, createTextVNode as ee, toDisplayString as I, nextTick as ke } from "vue";
2
- import { _ as Ce, i as xe, j as te, k as we, e as le, f as $e, p as L, g as Te, h as _e, I as Pe, n as O, X as Ne, y as ae, D as Se, z as Fe, v as Ie, w as Le } from "./data-table-d-VcuH-r.js";
3
- import { t as Oe } from "./themes-lgjsYHsH.js";
4
- import { L as Ee } from "./legend-DJCYLsl_.js";
5
- import { u as oe, _ as Ve } from "./title-BF-9Qcni.js";
6
- import { _ as Be } from "./tooltip-D85WEOKi.js";
7
- import { U as De } from "./user-options-DZgCz8UA.js";
8
- import { u as Ge, a as Me, S as ze, A as We } from "./vue-ui-3d-bar-DW7kGJSz.js";
9
- const Ae = ["id"], He = ["xmlns", "viewBox"], Ue = ["id"], Xe = ["stdDeviation"], je = ["d", "stroke", "stroke-width"], Re = ["d", "stroke", "stroke-width"], Ye = ["filter"], qe = ["d", "stroke", "stroke-width"], Je = ["d", "stroke-width", "onMouseenter", "onClick"], Ke = ["onClick"], Qe = { key: 0 }, Ze = { key: 1 }, et = ["innerHTML"], tt = {
10
- __name: "vue-ui-galaxy",
11
- props: {
12
- config: {
13
- type: Object,
14
- default() {
15
- return {};
16
- }
17
- },
18
- dataset: {
19
- type: Array,
20
- default() {
21
- return [];
22
- }
23
- }
24
- },
25
- emits: ["selectLegend", "selectDatapoint"],
26
- setup(se, { expose: re, emit: H }) {
27
- const f = se, { vue_ui_galaxy: ue } = Ge(), _ = v(() => !!f.dataset && f.dataset.length);
28
- be(() => {
29
- xe(f.dataset) ? te({
30
- componentName: "VueUiGalaxy",
31
- type: "dataset"
32
- }) : f.dataset.forEach((t, a) => {
33
- we({
34
- datasetObject: t,
35
- requiredAttributes: ["name", "values"]
36
- }).forEach((l) => {
37
- te({
38
- componentName: "VueUiGalaxy",
39
- type: "datasetSerieAttribute",
40
- property: l,
41
- index: a
42
- });
43
- });
44
- });
45
- });
46
- const w = u(le()), E = u(null), ne = u(null), V = u(!1), B = u(""), y = u(null), U = u(0), e = v(() => {
47
- const t = oe({
48
- userConfig: f.config,
49
- defaultConfig: ue
50
- });
51
- return t.theme ? {
52
- ...oe({
53
- userConfig: Oe.vue_ui_galaxy[t.theme] || f.config,
54
- defaultConfig: t
55
- }),
56
- customPalette: $e[t.theme] || L
57
- } : t;
58
- }), { isPrinting: ie, isImaging: ce, generatePdf: X, generateImage: j } = Me({
59
- elementId: `galaxy_${w.value}`,
60
- fileName: e.value.style.chart.title.text || "vue-ui-galaxy"
61
- }), ve = v(() => Te(e.value.customPalette)), p = u({
62
- dataLabels: {
63
- show: e.value.style.chart.layout.labels.dataLabels.show
64
- },
65
- showTable: e.value.table.show,
66
- showTooltip: e.value.style.chart.tooltip.show
67
- }), D = u({
68
- height: 180,
69
- // or 250 if non fibo
70
- width: 250
71
- }), c = u([]);
72
- function G(t) {
73
- c.value.includes(t.id) ? c.value = c.value.filter((a) => a !== t.id) : c.value.push(t.id), H("selectLegend", $.value.map((a) => ({
74
- name: a.name,
75
- color: a.color,
76
- value: a.value
77
- })));
78
- }
79
- const m = v(() => f.dataset.map((t, a) => ({
80
- name: t.name,
81
- color: _e(t.color) || ve.value[a] || L[a] || L[a % L.length],
82
- value: t.values ? t.values.reduce((l, o) => l + o, 0) : 0,
83
- absoluteValues: t.values || [0],
84
- id: le(),
85
- seriesIndex: a
86
- })).sort((t, a) => a.value - t.value));
87
- function de() {
88
- return m.value.map((t) => ({
89
- name: t.name,
90
- color: t.color,
91
- value: t.value
92
- }));
93
- }
94
- const g = v(() => m.value.filter((t) => !c.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), he = u(190), R = v(() => m.value.filter((t) => !c.value.includes(t.id))), $ = v(() => {
95
- const t = [];
96
- for (let a = 0; a < R.value.length; a += 1) {
97
- const l = R.value[a];
98
- let o = l.value / g.value * he.value;
99
- a > 0 && t.length && (o += t[a - 1].points), t.push({
100
- points: o,
101
- ...l,
102
- seriesIndex: a,
103
- proportion: l.value / g.value,
104
- path: Pe({
105
- points: o,
106
- startX: 115 + e.value.style.chart.layout.arcs.offsetX,
107
- startY: 90 + e.value.style.chart.layout.arcs.offsetY
108
- })
109
- });
110
- }
111
- return t.filter((a, l) => !c.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
112
- }), T = u(!1);
113
- function ye(t) {
114
- T.value = t, U.value += 1;
115
- }
116
- const M = u(null);
117
- function ge({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: o = !1 }) {
118
- M.value = {
119
- datapoint: t,
120
- seriesIndex: l,
121
- series: m.value,
122
- config: e.value
123
- }, V.value = o, y.value = t.id;
124
- let s = "";
125
- const k = e.value.style.chart.tooltip.customFormat;
126
- ae(k) && Fe(() => k({
127
- seriesIndex: l,
128
- datapoint: t,
129
- series: m.value,
130
- config: e.value
131
- })) ? B.value = k({
132
- seriesIndex: l,
133
- datapoint: t,
134
- series: m.value,
135
- config: e.value
136
- }) : (s += `<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>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (s += `<b>${O({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: t.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.style.chart.tooltip.roundingValue })}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${(t.proportion * 100).toFixed(e.value.style.chart.tooltip.roundingPercentage)}%)</span></div>` : s += `<b>${(t.proportion * 100).toFixed(e.value.style.chart.tooltip.roundingPercentage)}%</b></div>`), B.value = `<div>${s}</div>`);
137
- }
138
- const Y = v(() => m.value.map((t, a) => ({
139
- ...t,
140
- proportion: (t.value || 0) / f.dataset.map((l) => (l.values || []).reduce((o, s) => o + s, 0)).reduce((l, o) => l + o, 0),
141
- opacity: c.value.includes(t.id) ? 0.5 : 1,
142
- shape: t.shape || "circle",
143
- segregate: () => G(t),
144
- isSegregated: c.value.includes(t.id)
145
- }))), fe = v(() => ({
146
- cy: "galaxy-div-legend",
147
- backgroundColor: e.value.style.chart.legend.backgroundColor,
148
- color: e.value.style.chart.legend.color,
149
- fontSize: e.value.style.chart.legend.fontSize,
150
- paddingBottom: 12,
151
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
152
- })), b = v(() => {
153
- const t = $.value.map((l) => ({
154
- name: l.name,
155
- color: l.color
156
- })), a = $.value.map((l) => l.value);
157
- return { head: t, body: a };
158
- });
159
- function q() {
160
- ke(() => {
161
- const t = b.value.head.map((o, s) => [[
162
- o.name
163
- ], [b.value.body[s]], [isNaN(b.value.body[s] / g.value) ? "-" : b.value.body[s] / g.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Ie(a);
164
- Le({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
165
- });
166
- }
167
- const P = v(() => {
168
- const t = [
169
- ' <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>',
170
- O({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: g.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
171
- "100%"
172
- ], a = b.value.head.map((s, k) => {
173
- const pe = O({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: b.value.body[k], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
174
- return [
175
- {
176
- color: s.color,
177
- name: s.name
178
- },
179
- pe,
180
- isNaN(b.value.body[k] / g.value) ? "-" : (b.value.body[k] / g.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
181
- ];
182
- }), l = {
183
- th: {
184
- backgroundColor: e.value.table.th.backgroundColor,
185
- color: e.value.table.th.color,
186
- outline: e.value.table.th.outline
187
- },
188
- td: {
189
- backgroundColor: e.value.table.td.backgroundColor,
190
- color: e.value.table.td.color,
191
- outline: e.value.table.td.outline
192
- },
193
- breakpoint: e.value.table.responsiveBreakpoint
194
- };
195
- return {
196
- colNames: [
197
- e.value.table.columnNames.series,
198
- e.value.table.columnNames.value,
199
- e.value.table.columnNames.percentage
200
- ],
201
- head: t,
202
- body: a,
203
- config: l
204
- };
205
- });
206
- function J() {
207
- p.value.showTable = !p.value.showTable;
208
- }
209
- function K() {
210
- p.value.showTooltip = !p.value.showTooltip;
211
- }
212
- return re({
213
- getData: de,
214
- generatePdf: X,
215
- generateCsv: q,
216
- generateImage: j,
217
- toggleTable: J,
218
- toggleTooltip: K
219
- }), (t, a) => (r(), n("div", {
220
- ref_key: "galaxyChart",
221
- ref: E,
222
- class: N(`vue-ui-galaxy ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
223
- style: S(`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}`),
224
- id: `galaxy_${w.value}`
225
- }, [
226
- e.value.style.chart.title.text ? (r(), n("div", {
227
- key: 0,
228
- style: S(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
229
- }, [
230
- z(Ve, {
231
- config: {
232
- title: {
233
- cy: "galaxy-div-title",
234
- ...e.value.style.chart.title
235
- },
236
- subtitle: {
237
- cy: "galaxy-div-subtitle",
238
- ...e.value.style.chart.title.subtitle
239
- }
240
- }
241
- }, null, 8, ["config"])
242
- ], 4)) : d("", !0),
243
- e.value.userOptions.show && _.value ? (r(), F(De, {
244
- ref_key: "details",
245
- ref: ne,
246
- key: `user_option_${U.value}`,
247
- backgroundColor: e.value.style.chart.backgroundColor,
248
- color: e.value.style.chart.color,
249
- isPrinting: C(ie),
250
- isImaging: C(ce),
251
- uid: w.value,
252
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
253
- hasPdf: e.value.userOptions.buttons.pdf,
254
- hasXls: e.value.userOptions.buttons.csv,
255
- hasImg: e.value.userOptions.buttons.img,
256
- hasTable: e.value.userOptions.buttons.table,
257
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
258
- isTooltip: p.value.showTooltip,
259
- isFullscreen: T.value,
260
- titles: { ...e.value.userOptions.buttonTitles },
261
- chartElement: E.value,
262
- onToggleFullscreen: ye,
263
- onGeneratePdf: C(X),
264
- onGenerateCsv: q,
265
- onGenerateImage: C(j),
266
- onToggleTable: J,
267
- onToggleTooltip: K
268
- }, me({ _: 2 }, [
269
- t.$slots.optionTooltip ? {
270
- name: "optionTooltip",
271
- fn: i(() => [
272
- h(t.$slots, "optionTooltip", {}, void 0, !0)
273
- ]),
274
- key: "0"
275
- } : void 0,
276
- t.$slots.optionPdf ? {
277
- name: "optionPdf",
278
- fn: i(() => [
279
- h(t.$slots, "optionPdf", {}, void 0, !0)
280
- ]),
281
- key: "1"
282
- } : void 0,
283
- t.$slots.optionCsv ? {
284
- name: "optionCsv",
285
- fn: i(() => [
286
- h(t.$slots, "optionCsv", {}, void 0, !0)
287
- ]),
288
- key: "2"
289
- } : void 0,
290
- t.$slots.optionImg ? {
291
- name: "optionImg",
292
- fn: i(() => [
293
- h(t.$slots, "optionImg", {}, void 0, !0)
294
- ]),
295
- key: "3"
296
- } : void 0,
297
- t.$slots.optionTable ? {
298
- name: "optionTable",
299
- fn: i(() => [
300
- h(t.$slots, "optionTable", {}, void 0, !0)
301
- ]),
302
- key: "4"
303
- } : void 0,
304
- t.$slots.optionFullscreen ? {
305
- name: "optionFullscreen",
306
- fn: i(({ toggleFullscreen: l, isFullscreen: o }) => [
307
- h(t.$slots, "optionFullscreen", W(A({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
308
- ]),
309
- key: "5"
310
- } : void 0
311
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
312
- _.value ? (r(), n("svg", {
313
- key: 2,
314
- xmlns: C(Ne),
315
- class: N({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
316
- viewBox: `0 0 ${D.value.width} ${D.value.height}`,
317
- style: S(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
318
- }, [
319
- x("defs", null, [
320
- x("filter", {
321
- id: `blur_${w.value}`,
322
- x: "-50%",
323
- y: "-50%",
324
- width: "200%",
325
- height: "200%"
326
- }, [
327
- x("feGaussianBlur", {
328
- in: "SourceGraphic",
329
- stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
330
- }, null, 8, Xe)
331
- ], 8, Ue)
332
- ]),
333
- (r(!0), n(Q, null, Z($.value, (l) => (r(), n("g", null, [
334
- l.value ? (r(), n("path", {
335
- key: 0,
336
- d: l.path,
337
- fill: "none",
338
- stroke: e.value.style.chart.backgroundColor,
339
- "stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (y.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
340
- "stroke-linecap": "round"
341
- }, null, 8, je)) : d("", !0),
342
- l.value ? (r(), n("path", {
343
- key: 1,
344
- d: l.path,
345
- fill: "none",
346
- stroke: l.color,
347
- "stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (y.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
348
- "stroke-linecap": "round",
349
- class: N(`${y.value && y.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
350
- }, null, 10, Re)) : d("", !0),
351
- l.value && e.value.style.chart.layout.arcs.gradient.show ? (r(), n("g", {
352
- key: 2,
353
- filter: `url(#blur_${w.value})`
354
- }, [
355
- x("path", {
356
- d: l.path,
357
- fill: "none",
358
- stroke: e.value.style.chart.layout.arcs.gradient.color,
359
- "stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (y.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
360
- "stroke-linecap": "round",
361
- class: N(`vue-ui-galaxy-gradient ${y.value && y.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
362
- }, null, 10, qe)
363
- ], 8, Ye)) : d("", !0)
364
- ]))), 256)),
365
- (r(!0), n(Q, null, Z($.value, (l, o) => (r(), n("g", null, [
366
- l.value ? (r(), n("path", {
367
- key: 0,
368
- d: l.path,
369
- fill: "none",
370
- stroke: "transparent",
371
- "stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
372
- "stroke-linecap": "round",
373
- onMouseenter: (s) => ge({
374
- datapoint: l,
375
- relativeIndex: o,
376
- seriesIndex: l.seriesIndex,
377
- show: !0
378
- }),
379
- onMouseleave: a[0] || (a[0] = (s) => {
380
- V.value = !1, y.value = null;
381
- }),
382
- onClick: (s) => H("selectDatapoint", l)
383
- }, null, 40, Je)) : d("", !0)
384
- ]))), 256)),
385
- h(t.$slots, "svg", { svg: D.value }, void 0, !0)
386
- ], 14, He)) : d("", !0),
387
- _.value ? d("", !0) : (r(), F(ze, {
388
- key: 3,
389
- config: {
390
- type: "galaxy",
391
- style: {
392
- backgroundColor: e.value.style.chart.backgroundColor,
393
- galaxy: {
394
- color: "#CCCCCC"
395
- }
396
- }
397
- }
398
- }, null, 8, ["config"])),
399
- e.value.style.chart.legend.show ? (r(), F(Ee, {
400
- key: 4,
401
- legendSet: Y.value,
402
- config: fe.value,
403
- onClickMarker: a[1] || (a[1] = ({ legend: l }) => G(l))
404
- }, {
405
- item: i(({ legend: l, index: o }) => [
406
- x("div", {
407
- onClick: (s) => G(l),
408
- style: S(`opacity:${c.value.includes(l.id) ? 0.5 : 1}`)
409
- }, [
410
- ee(I(l.name) + ": " + I(C(O)({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: l.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.style.chart.legend.roundingValue })) + " ", 1),
411
- c.value.includes(l.id) ? (r(), n("span", Ze, " ( - % ) ")) : (r(), n("span", Qe, " (" + I(isNaN(l.value / g.value) ? "-" : (l.value / g.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
412
- ], 12, Ke)
413
- ]),
414
- _: 1
415
- }, 8, ["legendSet", "config"])) : d("", !0),
416
- h(t.$slots, "legend", { legend: Y.value }, void 0, !0),
417
- z(Be, {
418
- show: p.value.showTooltip && V.value,
419
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
420
- color: e.value.style.chart.tooltip.color,
421
- borderRadius: e.value.style.chart.tooltip.borderRadius,
422
- borderColor: e.value.style.chart.tooltip.borderColor,
423
- borderWidth: e.value.style.chart.tooltip.borderWidth,
424
- fontSize: e.value.style.chart.tooltip.fontSize,
425
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
426
- parent: E.value,
427
- content: B.value,
428
- isCustom: C(ae)(e.value.style.chart.tooltip.customFormat)
429
- }, {
430
- "tooltip-before": i(() => [
431
- h(t.$slots, "tooltip-before", W(A({ ...M.value })), void 0, !0)
432
- ]),
433
- "tooltip-after": i(() => [
434
- h(t.$slots, "tooltip-after", W(A({ ...M.value })), void 0, !0)
435
- ]),
436
- _: 3
437
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "parent", "content", "isCustom"]),
438
- _.value ? (r(), F(We, {
439
- key: 5,
440
- hideDetails: "",
441
- config: {
442
- open: p.value.showTable,
443
- maxHeight: 1e4,
444
- body: {
445
- backgroundColor: e.value.style.chart.backgroundColor,
446
- color: e.value.style.chart.color
447
- },
448
- head: {
449
- backgroundColor: e.value.style.chart.backgroundColor,
450
- color: e.value.style.chart.color
451
- }
452
- }
453
- }, {
454
- content: i(() => [
455
- z(Se, {
456
- colNames: P.value.colNames,
457
- head: P.value.head,
458
- body: P.value.body,
459
- config: P.value.config,
460
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
461
- onClose: a[2] || (a[2] = (l) => p.value.showTable = !1)
462
- }, {
463
- th: i(({ th: l }) => [
464
- x("div", {
465
- innerHTML: l,
466
- style: { display: "flex", "align-items": "center" }
467
- }, null, 8, et)
468
- ]),
469
- td: i(({ td: l }) => [
470
- ee(I(l.name || l), 1)
471
- ]),
472
- _: 1
473
- }, 8, ["colNames", "head", "body", "config", "title"])
474
- ]),
475
- _: 1
476
- }, 8, ["config"])) : d("", !0)
477
- ], 14, Ae));
478
- }
479
- }, ct = /* @__PURE__ */ Ce(tt, [["__scopeId", "data-v-53c416de"]]);
480
- export {
481
- ct as default
482
- };