vue-data-ui 2.2.91 → 2.2.93

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,647 +0,0 @@
1
- import { computed as y, ref as f, onMounted as Ie, onBeforeUnmount as Ne, openBlock as u, createElementBlock as r, normalizeClass as j, normalizeStyle as _, createVNode as q, createCommentVNode as g, createBlock as D, unref as N, createSlots as Pe, withCtx as b, renderSlot as x, normalizeProps as J, guardReactiveProps as K, Fragment as C, renderList as T, createElementVNode as M, toDisplayString as P, createTextVNode as Se } from "vue";
2
- import { _ as Le, e as Q, f as Oe, p as B, i as De, j as pe, k as We, g as Ee, h as je, A as Be, M as Re, N as Ue, O as Ve, X as Ge, a as He, y as me, D as Xe, n as ye, z as Ye, v as qe, w as Je, E as R } from "./data-table-d-VcuH-r.js";
3
- import { t as Ke, u as Qe } from "./vue-ui-age-pyramid-4hcuKpFY.js";
4
- import { t as Ze } from "./themes-lgjsYHsH.js";
5
- import { u as fe, _ as et } from "./title-BF-9Qcni.js";
6
- import { L as tt } from "./legend-DJCYLsl_.js";
7
- import { _ as at } from "./tooltip-D85WEOKi.js";
8
- import { U as lt } from "./user-options-DZgCz8UA.js";
9
- import { u as ot, a as st, S as nt, A as ut } from "./vue-ui-3d-bar-DW7kGJSz.js";
10
- const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events": "none" } }, vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dt = ["x", "y", "fill", "font-size", "font-weight"], ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pt = ["x", "y", "fill", "font-size", "font-weight"], mt = { key: 0 }, yt = ["x", "y", "font-size", "fill"], ft = ["width", "x", "y"], gt = { style: { width: "100%" } }, bt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], xt = ["d", "stroke", "stroke-width", "onMouseenter"], kt = ["onClick"], Ct = ["innerHTML"], wt = {
11
- __name: "vue-ui-parallel-coordinate-plot",
12
- props: {
13
- config: {
14
- type: Object,
15
- default() {
16
- return {};
17
- }
18
- },
19
- dataset: {
20
- type: Array,
21
- default() {
22
- return [];
23
- }
24
- }
25
- },
26
- emits: ["selectLegend", "selectDatapoint"],
27
- setup(ge, { expose: be, emit: Z }) {
28
- const A = ge, { vue_ui_parallel_coordinate_plot: xe } = ot(), F = y({
29
- get() {
30
- return !!A.dataset && A.dataset.length;
31
- },
32
- set(a) {
33
- return a;
34
- }
35
- }), ee = f(0), S = f(null), te = f(null), ae = f(null), U = f(Q()), L = f(!1);
36
- function ke(a) {
37
- L.value = a, ee.value += 1;
38
- }
39
- const e = y(() => {
40
- const a = fe({
41
- userConfig: A.config,
42
- defaultConfig: xe
43
- });
44
- return a.theme ? {
45
- ...fe({
46
- userConfig: Ze.vue_ui_parallel_coordinate_plot[a.theme] || A.config,
47
- defaultConfig: a
48
- }),
49
- customPalette: Oe[a.theme] || B
50
- } : a;
51
- }), W = f(null);
52
- Ie(() => {
53
- if (De(A.dataset) ? pe({
54
- componentName: "VueUiParallelCoordinatePlot",
55
- type: "dataset"
56
- }) : A.dataset.forEach((a, l) => {
57
- We({
58
- datasetObject: a,
59
- requiredAttributes: ["name", "series"]
60
- }).forEach((t) => {
61
- F.value = !1, pe({
62
- componentName: "VueUiParallelCoordinatePlot",
63
- type: "datasetSerieAttribute",
64
- property: t,
65
- index: l
66
- });
67
- });
68
- }), e.value.responsive) {
69
- const a = Ke(() => {
70
- const { width: l, height: t } = Qe({
71
- chart: S.value,
72
- title: e.value.style.chart.title.text ? te.value : null,
73
- legend: e.value.style.chart.legend.show ? ae.value : null
74
- });
75
- c.value.width = l, c.value.height = t, c.value.plotSize = R({
76
- relator: Math.min(l, t),
77
- adjuster: 600,
78
- source: e.value.style.chart.plots.radius,
79
- threshold: 2,
80
- fallback: 2
81
- }), c.value.ticksFontSize = R({
82
- relator: Math.min(l, t),
83
- adjuster: 600,
84
- source: e.value.style.chart.yAxis.labels.ticks.fontSize,
85
- threshold: 10,
86
- fallback: 10
87
- }), c.value.datapointFontSize = R({
88
- relator: Math.min(l, t),
89
- adjuster: 600,
90
- source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
91
- threshold: 10,
92
- fallback: 10
93
- }), c.value.axisNameFontSize = R({
94
- relator: Math.min(l, t),
95
- adjuster: 600,
96
- source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
97
- threshold: 12,
98
- fallback: 12
99
- });
100
- });
101
- W.value = new ResizeObserver(a), W.value.observe(S.value.parentNode);
102
- }
103
- }), Ne(() => {
104
- W.value && W.value.disconnect();
105
- });
106
- const { isPrinting: Ce, isImaging: we, generatePdf: le, generateImage: oe } = st({
107
- elementId: `pcp_${U.value}`,
108
- fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot"
109
- }), c = f({
110
- height: e.value.style.chart.height,
111
- width: e.value.style.chart.width,
112
- plotSize: e.value.style.chart.plots.radius,
113
- // ratio 100
114
- ticksFontSize: e.value.style.chart.yAxis.labels.ticks.fontSize,
115
- // ratio 42.85
116
- datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
117
- axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
118
- }), v = y(() => {
119
- const { top: a, right: l, bottom: t, left: o } = e.value.style.chart.padding, n = c.value.height, s = c.value.width;
120
- return {
121
- chartHeight: n,
122
- chartWidth: s,
123
- height: n - a - t,
124
- width: s - o - l,
125
- top: a,
126
- left: o,
127
- right: s - l,
128
- bottom: n - t
129
- };
130
- }), $e = y(() => Ee(e.value.customPalette)), p = f({
131
- dataLabels: {
132
- show: e.value.style.chart.yAxis.labels.datapoints.show
133
- },
134
- showTable: e.value.table.show,
135
- showTooltip: e.value.style.chart.tooltip.show
136
- }), w = f([]);
137
- function se(a) {
138
- w.value.includes(a) ? w.value = w.value.filter((l) => l !== a) : w.value.push(a);
139
- }
140
- const z = y(() => A.dataset.map((a, l) => {
141
- const t = je(a.color) || $e.value[l] || B[l] || B[l % B.length];
142
- return {
143
- ...a,
144
- series: a.series.map((o) => ({
145
- ...o,
146
- id: Q(),
147
- color: t
148
- })),
149
- seriesIndex: l,
150
- color: t,
151
- id: Q(),
152
- shape: a.shape || "circle"
153
- };
154
- })), _e = y(() => z.value.map((a) => ({
155
- ...a,
156
- opacity: w.value.includes(a.id) ? 0.5 : 1,
157
- segregate: () => se(a.id),
158
- isSegregated: w.value.includes(a.id)
159
- }))), ze = y(() => ({
160
- cy: "pcp-div-legend",
161
- backgroundColor: e.value.style.chart.legend.backgroundColor,
162
- color: e.value.style.chart.legend.color,
163
- fontSize: e.value.style.chart.legend.fontSize,
164
- paddingBottom: 12,
165
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
166
- })), ne = y(() => Math.max(
167
- ...z.value.filter((a) => !w.value.includes(a.id)).map((a) => Math.max(...a.series.flatMap((l) => l.values.length)))
168
- )), k = y(() => v.value.width / ne.value), V = y(() => z.value.filter((a) => !w.value.includes(a.id))), h = y(() => {
169
- let a = [];
170
- for (let l = 0; l < ne.value; l += 1) {
171
- const t = Math.min(...V.value.flatMap((m) => m.series.map((E) => E.values[l]) || 0)), o = Math.max(...V.value.flatMap((m) => m.series.map((E) => E.values[l]) || 0)), n = o === t ? t / 4 : t, s = o === t ? o * 2 : o, i = Be(n, s, e.value.style.chart.yAxis.scaleTicks), $ = i.ticks.map((m, E) => {
172
- const Me = i.min < 0 ? m + Math.abs(i.min) : m - Math.abs(i.min), Fe = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
173
- return {
174
- y: v.value.bottom - v.value.height * (Me / Fe),
175
- x: v.value.left + k.value * l + k.value / 2,
176
- value: m
177
- };
178
- });
179
- a.push({
180
- scale: i,
181
- ticks: $,
182
- name: e.value.style.chart.yAxis.labels.axisNames[l] || `Y-${l + 1}`
183
- });
184
- }
185
- return a;
186
- }), G = y(() => V.value.map((a, l) => ({
187
- ...a,
188
- series: a.series.map((t, o) => ({
189
- ...t,
190
- datapoints: t.values.map((n, s) => {
191
- const i = h.value[s].scale.min < 0 ? (n || 0) + Math.abs(h.value[s].scale.min) : (n || 0) - Math.abs(h.value[s].scale.min), $ = h.value[s].scale.min < 0 ? h.value[s].scale.max + Math.abs(h.value[s].scale.min) : h.value[s].scale.max - Math.abs(h.value[s].scale.min);
192
- return {
193
- name: t.name,
194
- seriesName: a.name,
195
- axisIndex: s,
196
- datapointIndex: o,
197
- seriesIndex: l,
198
- value: n,
199
- x: v.value.left + k.value * s + k.value / 2,
200
- y: v.value.bottom - v.value.height * (i / $),
201
- comment: t.comments && t.comments[s] || ""
202
- };
203
- })
204
- }))
205
- })).map((a) => ({
206
- ...a,
207
- series: a.series.map((l) => {
208
- const t = Re(l.datapoints), o = Ue(l.datapoints, 0.12), n = Ve(e.value.style.chart.lines.smooth ? `M ${o}` : `M ${t}`);
209
- return {
210
- ...l,
211
- smoothPath: o,
212
- straightPath: t,
213
- pathLength: n
214
- };
215
- })
216
- })));
217
- function ue({ value: a, index: l }) {
218
- return ye({
219
- p: e.value.style.chart.yAxis.labels.prefixes[l] || "",
220
- v: a,
221
- s: e.value.style.chart.yAxis.labels.suffixes[l] || "",
222
- r: e.value.style.chart.yAxis.labels.roundings[l] || 0
223
- });
224
- }
225
- const d = f(null), H = f(null), O = f(!1), X = f("");
226
- function Y({ shape: a, serieName: l, serie: t, relativeIndex: o, seriesIndex: n }) {
227
- H.value = { serie: t, relativeIndex: o, seriesIndex: n, series: z.value, scales: h.value }, O.value = !0, d.value = t.id;
228
- let s = "";
229
- const i = e.value.style.chart.tooltip.customFormat;
230
- me(i) && Ye(() => i({
231
- serie: t,
232
- seriesIndex: t.seriesIndex,
233
- series: z.value,
234
- config: e.value,
235
- scales: h.value
236
- })) ? X.value = i({
237
- serie: t,
238
- seriesIndex: t.seriesIndex,
239
- series: z.value,
240
- config: e.value,
241
- scales: h.value
242
- }) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l ? l + " - " : ""}${t.name}</div>`, h.value.map(($) => $.name).forEach(($, m) => {
243
- s += `
244
- <div class="vue-ui-tooltip-item" style="text-align:left">
245
- <span>${$}: </span>
246
- <span>
247
- ${ye({
248
- p: e.value.style.chart.yAxis.labels.prefixes[m] || "",
249
- v: t.datapoints[m].value,
250
- s: e.value.style.chart.yAxis.labels.suffixes[m] || "",
251
- r: e.value.style.chart.yAxis.labels.roundings[m] || ""
252
- })}
253
- </span>
254
- </div>
255
- `, e.value.style.chart.comments.showInTooltip && t.datapoints[m].comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.datapoints[m].comment}</div>`);
256
- }), X.value = `<div>${s}</div>`);
257
- }
258
- function Te() {
259
- return z.value;
260
- }
261
- const I = y(() => {
262
- const a = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(h.value.map((n) => n.name)), l = G.value.flatMap((n, s) => n.series.map((i) => [n.name].concat([i.name]).concat(i.values))), t = {
263
- th: {
264
- backgroundColor: e.value.table.th.backgroundColor,
265
- color: e.value.table.th.color,
266
- outline: e.value.table.th.outline
267
- },
268
- td: {
269
- backgroundColor: e.value.table.td.backgroundColor,
270
- color: e.value.table.td.color,
271
- outline: e.value.table.td.outline
272
- },
273
- breakpoint: e.value.table.responsiveBreakpoint
274
- }, o = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(h.value.map((n) => n.name));
275
- return {
276
- body: l,
277
- head: a,
278
- config: t,
279
- colNames: o
280
- };
281
- }), ie = y(() => G.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
282
- head: I.value.head,
283
- body: I.value.body
284
- });
285
- function re() {
286
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ie.value.head, t = ie.value.body, o = a.concat([l]).concat(t), n = qe(o);
287
- Je({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
288
- }
289
- function Ae(a) {
290
- Z("selectDatapoint", a);
291
- }
292
- function ce(a) {
293
- Z("selectLegend", {
294
- ...a,
295
- isSegregated: !a.isSegregated,
296
- opacity: a.isSegregated ? 1 : 0.5
297
- });
298
- }
299
- function ve() {
300
- p.value.showTable = !p.value.showTable;
301
- }
302
- function de() {
303
- p.value.dataLabels.show = !p.value.dataLabels.show;
304
- }
305
- function he() {
306
- p.value.showTooltip = !p.value.showTooltip;
307
- }
308
- return be({
309
- getData: Te,
310
- generateCsv: re,
311
- generatePdf: le,
312
- generateImage: oe,
313
- toggleTable: ve,
314
- toggleLabels: de,
315
- toggleTooltip: he
316
- }), (a, l) => (u(), r("div", {
317
- ref_key: "pcpChart",
318
- ref: S,
319
- class: j(`vue-ui-pcp ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
320
- style: _(`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};${e.value.responsive ? "height:100%" : ""}`),
321
- id: `pcp_${U.value}`
322
- }, [
323
- e.value.style.chart.title.text ? (u(), r("div", {
324
- key: 0,
325
- ref_key: "chartTitle",
326
- ref: te,
327
- style: _(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
328
- }, [
329
- q(et, {
330
- config: {
331
- title: {
332
- cy: "pcp-div-title",
333
- ...e.value.style.chart.title
334
- },
335
- subtitle: {
336
- cy: "pcp-div-subtitle",
337
- ...e.value.style.chart.title.subtitle
338
- }
339
- }
340
- }, null, 8, ["config"])
341
- ], 4)) : g("", !0),
342
- e.value.userOptions.show && F.value ? (u(), D(lt, {
343
- ref: "details",
344
- key: `user_options_${ee.value}`,
345
- backgroundColor: e.value.style.chart.backgroundColor,
346
- color: e.value.style.chart.color,
347
- isPrinting: N(Ce),
348
- isImaging: N(we),
349
- uid: U.value,
350
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
351
- hasPdf: e.value.userOptions.buttons.pdf,
352
- hasXls: e.value.userOptions.buttons.csv,
353
- hasImg: e.value.userOptions.buttons.img,
354
- hasTable: e.value.userOptions.buttons.table,
355
- hasLabel: e.value.userOptions.buttons.labels,
356
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
357
- isFullscreen: L.value,
358
- isTooltip: p.value.showTooltip,
359
- titles: { ...e.value.userOptions.buttonTitles },
360
- chartElement: S.value,
361
- onToggleFullscreen: ke,
362
- onGeneratePdf: N(le),
363
- onGenerateCsv: re,
364
- onGenerateImage: N(oe),
365
- onToggleTable: ve,
366
- onToggleLabels: de,
367
- onToggleTooltip: he
368
- }, Pe({ _: 2 }, [
369
- a.$slots.optionPdf ? {
370
- name: "optionPdf",
371
- fn: b(() => [
372
- x(a.$slots, "optionPdf", {}, void 0, !0)
373
- ]),
374
- key: "0"
375
- } : void 0,
376
- a.$slots.optionCsv ? {
377
- name: "optionCsv",
378
- fn: b(() => [
379
- x(a.$slots, "optionCsv", {}, void 0, !0)
380
- ]),
381
- key: "1"
382
- } : void 0,
383
- a.$slots.optionImg ? {
384
- name: "optionImg",
385
- fn: b(() => [
386
- x(a.$slots, "optionImg", {}, void 0, !0)
387
- ]),
388
- key: "2"
389
- } : void 0,
390
- a.$slots.optionTable ? {
391
- name: "optionTable",
392
- fn: b(() => [
393
- x(a.$slots, "optionTable", {}, void 0, !0)
394
- ]),
395
- key: "3"
396
- } : void 0,
397
- a.$slots.optionLabels ? {
398
- name: "optionLabels",
399
- fn: b(() => [
400
- x(a.$slots, "optionLabels", {}, void 0, !0)
401
- ]),
402
- key: "4"
403
- } : void 0,
404
- a.$slots.optionFullscreen ? {
405
- name: "optionFullscreen",
406
- fn: b(({ toggleFullscreen: t, isFullscreen: o }) => [
407
- x(a.$slots, "optionFullscreen", J(K({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
408
- ]),
409
- key: "5"
410
- } : void 0
411
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
412
- F.value ? (u(), r("svg", {
413
- key: 2,
414
- xmlns: N(Ge),
415
- class: j({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
416
- viewBox: `0 0 ${v.value.chartWidth <= 0 ? 10 : v.value.chartWidth} ${v.value.chartHeight <= 0 ? 10 : v.value.chartHeight}`,
417
- style: _(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
418
- }, [
419
- (u(!0), r(C, null, T(h.value, (t, o) => (u(), r("g", ct, [
420
- M("line", {
421
- x1: v.value.left + k.value * o + k.value / 2,
422
- x2: v.value.left + k.value * o + k.value / 2,
423
- y1: v.value.top,
424
- y2: v.value.bottom,
425
- stroke: e.value.style.chart.yAxis.stroke,
426
- "stroke-width": e.value.style.chart.yAxis.strokeWidth
427
- }, null, 8, vt),
428
- M("text", {
429
- x: v.value.left + k.value * o + k.value / 2,
430
- y: v.value.top - 24,
431
- fill: e.value.style.chart.yAxis.labels.axisNamesColor,
432
- "font-size": c.value.axisNameFontSize,
433
- "font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
434
- "text-anchor": "middle"
435
- }, P(t.name), 9, dt),
436
- e.value.style.chart.yAxis.labels.ticks.show ? (u(), r(C, { key: 0 }, [
437
- (u(!0), r(C, null, T(t.ticks, (n) => (u(), r("line", {
438
- x1: n.x,
439
- x2: n.x - 10,
440
- y1: n.y,
441
- y2: n.y,
442
- stroke: e.value.style.chart.yAxis.stroke,
443
- "stroke-width": e.value.style.chart.yAxis.strokeWidth,
444
- style: _(`opacity:${d.value && !p.value.showTooltip ? 0.2 : 1}`)
445
- }, null, 12, ht))), 256)),
446
- (u(!0), r(C, null, T(t.ticks, (n) => (u(), r("text", {
447
- x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
448
- y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
449
- fill: e.value.style.chart.yAxis.labels.ticks.color,
450
- "text-anchor": "end",
451
- "font-size": c.value.ticksFontSize,
452
- "font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
453
- style: _(`opacity:${d.value && !p.value.showTooltip ? 0.2 : 1}`)
454
- }, P(ue({ value: n.value, index: o })), 13, pt))), 256))
455
- ], 64)) : g("", !0)
456
- ]))), 256)),
457
- (u(!0), r(C, null, T(G.value, (t) => (u(), r("g", null, [
458
- (u(!0), r(C, null, T(t.series, (o, n) => (u(), r("g", null, [
459
- e.value.style.chart.plots.show ? (u(), r("g", mt, [
460
- (u(!0), r(C, null, T(o.datapoints, (s) => (u(), D(He, {
461
- plot: { x: s.x, y: s.y },
462
- color: t.color,
463
- shape: t.shape,
464
- radius: t.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
465
- stroke: e.value.style.chart.backgroundColor,
466
- strokeWidth: 0.5,
467
- onMouseenter: (i) => Y({
468
- shape: t.shape,
469
- serieName: t.name,
470
- serie: o,
471
- relativeIndex: n,
472
- seriesIndex: o.seriesIndex
473
- }),
474
- onMouseleave: l[0] || (l[0] = (i) => {
475
- d.value = null, O.value = !1;
476
- }),
477
- style: _(`opacity:${d.value ? d.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
478
- onClick: () => Ae(s)
479
- }, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "style", "onClick"]))), 256)),
480
- p.value.showTooltip ? g("", !0) : (u(), r(C, { key: 0 }, [
481
- d.value && d.value === o.id && o.datapoints.length ? (u(), r("text", {
482
- key: 0,
483
- x: o.datapoints[0].x - c.value.ticksFontSize,
484
- y: o.datapoints[0].y + c.value.ticksFontSize / 3,
485
- "text-anchor": "end",
486
- "font-size": c.value.ticksFontSize,
487
- fill: t.color,
488
- "font-weight": "bold"
489
- }, P(o.name), 9, yt)) : g("", !0)
490
- ], 64)),
491
- e.value.style.chart.comments.show ? (u(!0), r(C, { key: 1 }, T(o.datapoints, (s) => (u(), r("g", null, [
492
- s.comment ? (u(), r("foreignObject", {
493
- key: 0,
494
- style: { overflow: "visible" },
495
- height: "12",
496
- width: e.value.style.chart.comments.width,
497
- x: s.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
498
- y: s.y + e.value.style.chart.comments.offsetY + 6
499
- }, [
500
- M("div", gt, [
501
- x(a.$slots, "plot-comment", {
502
- plot: { ...s, color: t.color }
503
- }, void 0, !0)
504
- ])
505
- ], 8, ft)) : g("", !0)
506
- ]))), 256)) : g("", !0)
507
- ])) : g("", !0),
508
- p.value.dataLabels.show || d.value && d.value === o.id ? (u(!0), r(C, { key: 1 }, T(o.datapoints, (s, i) => (u(), r("text", {
509
- x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
510
- y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
511
- fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? t.color : e.value.style.chart.yAxis.labels.datapoints.color,
512
- "text-anchor": "start",
513
- "font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
514
- class: j({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !0 }),
515
- "font-size": c.value.datapointFontSize,
516
- onMouseenter: ($) => Y({
517
- shape: t.shape,
518
- serieName: t.name,
519
- serie: o,
520
- relativeIndex: n,
521
- seriesIndex: o.seriesIndex
522
- }),
523
- onMouseleave: l[1] || (l[1] = ($) => {
524
- d.value = null, O.value = !1;
525
- }),
526
- style: _(`opacity:${d.value ? d.value === o.id ? 1 : 0.2 : 1}`)
527
- }, P(ue({ value: s.value, index: i })), 45, bt))), 256)) : g("", !0),
528
- M("path", {
529
- d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
530
- stroke: t.color,
531
- "stroke-width": e.value.style.chart.lines.strokeWidth,
532
- fill: "none",
533
- class: j({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
534
- onMouseenter: (s) => Y({
535
- shape: t.shape,
536
- serieName: t.name,
537
- serie: o,
538
- relativeIndex: n,
539
- seriesIndex: o.seriesIndex
540
- }),
541
- onMouseleave: l[2] || (l[2] = (s) => {
542
- d.value = null, O.value = !1;
543
- }),
544
- style: _(`opacity:${d.value ? d.value === o.id ? e.value.style.chart.lines.opacity : 0.2 : e.value.style.chart.lines.opacity}; stroke-dasharray:${o.pathLength}; stroke-dashoffset: ${e.value.useCssAnimation ? o.pathLength : 0}`)
545
- }, null, 46, xt)
546
- ]))), 256))
547
- ]))), 256)),
548
- x(a.$slots, "svg", { svg: v.value }, void 0, !0)
549
- ], 14, rt)) : g("", !0),
550
- F.value ? g("", !0) : (u(), D(nt, {
551
- key: 3,
552
- config: {
553
- type: "parallelCoordinatePlot",
554
- style: {
555
- backgroundColor: e.value.style.chart.backgroundColor
556
- }
557
- }
558
- }, null, 8, ["config"])),
559
- M("div", {
560
- ref_key: "chartLegend",
561
- ref: ae
562
- }, [
563
- e.value.style.chart.legend.show && F.value ? (u(), D(tt, {
564
- key: 0,
565
- legendSet: _e.value,
566
- config: ze.value,
567
- onClickMarker: l[3] || (l[3] = ({ legend: t }) => {
568
- se(t.id), ce(t);
569
- })
570
- }, {
571
- item: b(({ legend: t, index: o }) => [
572
- M("div", {
573
- onClick: (n) => {
574
- t.segregate(), ce(t);
575
- },
576
- style: _(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
577
- }, P(t.name), 13, kt)
578
- ]),
579
- _: 1
580
- }, 8, ["legendSet", "config"])) : x(a.$slots, "legend", {
581
- key: 1,
582
- legend: z.value
583
- }, void 0, !0)
584
- ], 512),
585
- q(at, {
586
- show: p.value.showTooltip && O.value,
587
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
588
- color: e.value.style.chart.tooltip.color,
589
- fontSize: e.value.style.chart.tooltip.fontSize,
590
- borderRadius: e.value.style.chart.tooltip.borderRadius,
591
- borderColor: e.value.style.chart.tooltip.borderColor,
592
- borderWidth: e.value.style.chart.tooltip.borderWidth,
593
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
594
- parent: S.value,
595
- content: X.value,
596
- isCustom: N(me)(e.value.style.chart.tooltip.customFormat)
597
- }, {
598
- "tooltip-before": b(() => [
599
- x(a.$slots, "tooltip-before", J(K({ ...H.value })), void 0, !0)
600
- ]),
601
- "tooltip-after": b(() => [
602
- x(a.$slots, "tooltip-after", J(K({ ...H.value })), void 0, !0)
603
- ]),
604
- _: 3
605
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "parent", "content", "isCustom"]),
606
- F.value ? (u(), D(ut, {
607
- key: 4,
608
- hideDetails: "",
609
- config: {
610
- open: p.value.showTable,
611
- maxHeight: 1e4,
612
- body: {
613
- backgroundColor: e.value.style.chart.backgroundColor,
614
- color: e.value.style.chart.color
615
- },
616
- head: {
617
- backgroundColor: e.value.style.chart.backgroundColor,
618
- color: e.value.style.chart.color
619
- }
620
- }
621
- }, {
622
- content: b(() => [
623
- q(Xe, {
624
- colNames: I.value.colNames,
625
- head: I.value.head,
626
- body: I.value.body,
627
- config: I.value.config,
628
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
629
- onClose: l[4] || (l[4] = (t) => p.value.showTable = !1)
630
- }, {
631
- th: b(({ th: t }) => [
632
- M("div", { innerHTML: t }, null, 8, Ct)
633
- ]),
634
- td: b(({ td: t }) => [
635
- Se(P(t), 1)
636
- ]),
637
- _: 1
638
- }, 8, ["colNames", "head", "body", "config", "title"])
639
- ]),
640
- _: 1
641
- }, 8, ["config"])) : g("", !0)
642
- ], 14, it));
643
- }
644
- }, Pt = /* @__PURE__ */ Le(wt, [["__scopeId", "data-v-5f17c41e"]]);
645
- export {
646
- Pt as default
647
- };