vue-data-ui 2.2.90 → 2.2.91

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/data-table-d-VcuH-r.js +1488 -0
  2. package/dist/{index.es-Cgqo-FBk.js → index.es-Dc9Fd4o6.js} +1 -1
  3. package/dist/legend-DJCYLsl_.js +61 -0
  4. package/dist/style.css +1 -1
  5. package/dist/themes-lgjsYHsH.js +4967 -0
  6. package/dist/title-BF-9Qcni.js +56 -0
  7. package/dist/tooltip-D85WEOKi.js +94 -0
  8. package/dist/user-options-DZgCz8UA.js +415 -0
  9. package/dist/vue-data-ui.js +455 -61
  10. package/dist/vue-ui-3d-bar-DW7kGJSz.js +20360 -0
  11. package/dist/vue-ui-age-pyramid-4hcuKpFY.js +781 -0
  12. package/dist/vue-ui-annotator-C83FVvl8.js +2175 -0
  13. package/dist/vue-ui-candlestick-diclGj95.js +807 -0
  14. package/dist/vue-ui-chestnut-ACetHLdG.js +1049 -0
  15. package/dist/vue-ui-cursor-Rx7UNaYT.js +229 -0
  16. package/dist/vue-ui-dashboard-B3PlN0ks.js +231 -0
  17. package/dist/vue-ui-digits-CxMXID42.js +154 -0
  18. package/dist/vue-ui-donut-DMiwVXNd.js +1534 -0
  19. package/dist/vue-ui-dumbbell-B_X1T8TR.js +621 -0
  20. package/dist/vue-ui-flow-B72wzQ6V.js +451 -0
  21. package/dist/vue-ui-galaxy-DXX5yivT.js +482 -0
  22. package/dist/vue-ui-gauge-Cs9PDurH.js +466 -0
  23. package/dist/vue-ui-heatmap-PcoNSLdN.js +581 -0
  24. package/dist/vue-ui-kpi-DchEmPtB.js +55 -0
  25. package/dist/vue-ui-mini-loader-DltJLkqy.js +131 -0
  26. package/dist/vue-ui-molecule-CWvukBzs.js +746 -0
  27. package/dist/vue-ui-mood-radar-DEfdtIi8.js +544 -0
  28. package/dist/vue-ui-nested-donuts-9URpqgXE.js +768 -0
  29. package/dist/vue-ui-onion-C0eowUT6.js +551 -0
  30. package/dist/vue-ui-parallel-coordinate-plot-Bc_pAaPJ.js +647 -0
  31. package/dist/vue-ui-quadrant-_ddVAm9V.js +1174 -0
  32. package/dist/vue-ui-quick-chart-Cio0hDYO.js +1310 -0
  33. package/dist/vue-ui-radar-Dyg38i33.js +853 -0
  34. package/dist/vue-ui-rating-CE1Lmwd2.js +271 -0
  35. package/dist/vue-ui-relation-circle-BMlB3k3d.js +303 -0
  36. package/dist/vue-ui-rings-BuXeijvb.js +507 -0
  37. package/dist/vue-ui-scatter-B1hZfOua.js +870 -0
  38. package/dist/vue-ui-screenshot-0QXgxzGs.js +160 -0
  39. package/dist/vue-ui-smiley-B7kR7exr.js +763 -0
  40. package/dist/vue-ui-spark-trend-BmL2KiYL.js +245 -0
  41. package/dist/vue-ui-sparkgauge-BMzFv14L.js +158 -0
  42. package/dist/vue-ui-sparkhistogram-DWpOXqHm.js +243 -0
  43. package/dist/vue-ui-sparkstackbar-DB9VQXlc.js +244 -0
  44. package/dist/vue-ui-strip-plot-DyN6P0JO.js +614 -0
  45. package/dist/vue-ui-table-DM3zL89q.js +2180 -0
  46. package/dist/vue-ui-table-heatmap-gWx0Nslu.js +237 -0
  47. package/dist/vue-ui-thermometer-Bcqv5kd_.js +384 -0
  48. package/dist/vue-ui-timer-BIFxjujK.js +451 -0
  49. package/dist/vue-ui-tiremarks-zBwHpED_.js +248 -0
  50. package/dist/vue-ui-treemap-BaplVc_z.js +719 -0
  51. package/dist/vue-ui-vertical-bar-CdK6ZJPM.js +734 -0
  52. package/dist/vue-ui-waffle-COOzH7M3.js +635 -0
  53. package/dist/vue-ui-wheel-BEpuVTBk.js +226 -0
  54. package/dist/vue-ui-word-cloud-DNqxAAiX.js +344 -0
  55. package/dist/vue-ui-xy-_mHq-czW.js +2058 -0
  56. package/dist/vue-ui-xy-canvas-DqX8Gee5.js +1003 -0
  57. package/package.json +1 -1
  58. package/dist/index-DZlxUin4.js +0 -57288
@@ -0,0 +1,1174 @@
1
+ import { computed as g, ref as h, onMounted as Re, onBeforeUnmount as Ve, watch as He, openBlock as o, createElementBlock as n, normalizeClass as z, normalizeStyle as k, createVNode as Z, createCommentVNode as c, createBlock as D, unref as _, createSlots as Oe, withCtx as $, renderSlot as S, normalizeProps as ue, guardReactiveProps as oe, createElementVNode as v, Fragment as w, renderList as W, toDisplayString as m, createTextVNode as Ie, nextTick as De } from "vue";
2
+ import { _ as Ee, e as qe, f as Ue, p as se, i as Ge, j as F, g as Qe, o as K, h as Je, X as je, x as Ze, P as Ke, a as _e, F as et, D as tt, y as lt, z as at, v as ut, w as ot } from "./data-table-d-VcuH-r.js";
3
+ import { t as st, u as rt } from "./vue-ui-age-pyramid-4hcuKpFY.js";
4
+ import { t as nt } from "./themes-lgjsYHsH.js";
5
+ import { u as Se, _ as it } from "./title-BF-9Qcni.js";
6
+ import { U as vt } from "./user-options-DZgCz8UA.js";
7
+ import { _ as dt } from "./tooltip-D85WEOKi.js";
8
+ import { L as ct } from "./legend-DJCYLsl_.js";
9
+ import { u as ht, a as yt, S as bt, A as ft } from "./vue-ui-3d-bar-DW7kGJSz.js";
10
+ const pt = ["id"], gt = ["xmlns", "viewBox", "id"], mt = ["id"], xt = ["stop-color"], $t = ["stop-color"], kt = { key: 0 }, Lt = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], wt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], qt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], _t = { key: 1 }, St = ["points", "fill"], Ct = ["points", "fill"], zt = ["points", "fill"], Tt = ["points", "fill"], Wt = { key: 2 }, Xt = ["y", "fill", "font-size"], Yt = ["x", "y", "fill", "font-size"], Mt = ["x", "y", "fill", "font-size"], Nt = ["y", "fill", "font-size"], At = { key: 3 }, Bt = ["x", "y", "font-size", "fill"], Ft = ["x", "y", "font-size", "fill"], Pt = ["x", "y", "font-size", "fill"], Rt = ["id", "font-size", "transform", "fill"], Vt = ["id", "font-size", "transform", "fill"], Ht = ["id", "font-size", "transform", "fill"], Ot = { key: 4 }, It = ["fill", "points"], Dt = ["x", "y", "width", "height"], Et = ["x", "y", "width", "height"], Ut = ["x", "y", "width", "height"], Gt = ["x", "y", "width", "height"], Qt = { key: 0 }, Jt = ["x", "y", "font-size", "fill"], jt = { key: 0 }, Zt = ["x", "y", "onMouseover", "onClick"], Kt = {
11
+ key: 7,
12
+ class: "vue-ui-dna"
13
+ }, el = ["points", "fill"], tl = ["points", "fill"], ll = ["points", "fill"], al = ["points", "fill"], ul = { key: 8 }, ol = ["x", "y", "font-size", "fill", "font-weight"], sl = { key: 9 }, rl = ["x", "y", "fill"], nl = ["x", "y", "fill"], il = ["x", "y", "fill"], vl = ["x", "y", "fill"], dl = ["stroke", "d"], cl = ["stroke", "d"], hl = ["onClick"], yl = {
14
+ key: 0,
15
+ height: "14",
16
+ width: "14",
17
+ viewBox: "0 0 20 20"
18
+ }, bl = ["innerHTML"], fl = {
19
+ __name: "vue-ui-quadrant",
20
+ props: {
21
+ config: {
22
+ type: Object,
23
+ default() {
24
+ return {};
25
+ }
26
+ },
27
+ dataset: {
28
+ type: Array,
29
+ default() {
30
+ return [];
31
+ }
32
+ }
33
+ },
34
+ emits: ["selectPlot", "selectSide", "selectLegend"],
35
+ setup(Ce, { expose: ze, emit: ee }) {
36
+ const X = Ce, { vue_ui_quadrant: Te } = ht(), E = g(() => !!X.dataset && X.dataset.length), C = h(qe()), We = h(null), U = h(!1), te = h(""), re = h(0), f = h(!1), P = h(null), ne = h(null), ie = h(null), t = g(() => {
37
+ const l = Se({
38
+ userConfig: X.config,
39
+ defaultConfig: Te
40
+ });
41
+ return l.theme ? {
42
+ ...Se({
43
+ userConfig: nt.vue_ui_quadrant[l.theme] || X.config,
44
+ defaultConfig: l
45
+ }),
46
+ customPalette: Ue[l.theme] || se
47
+ } : l;
48
+ }), G = h(null);
49
+ Re(() => {
50
+ if (Ge(X.dataset) ? F({
51
+ componentName: "VueUiQuadrant",
52
+ type: "dataset"
53
+ }) : X.dataset.forEach((l, u) => {
54
+ [null, void 0].includes(l.name) && F({
55
+ componentName: "VueUiQuadrant",
56
+ type: "datasetSerieAttribute",
57
+ property: "name",
58
+ index: u
59
+ }), [null, void 0].includes(l.series) ? F({
60
+ componentName: "VueUiQuadrant",
61
+ type: "datasetSerieAttribute",
62
+ property: "series",
63
+ index: u
64
+ }) : l.series.forEach((a, s) => {
65
+ [null, void 0].includes(a.name) && F({
66
+ componentName: "VueUiQuadrant",
67
+ type: "datasetSerieAttribute",
68
+ property: "name",
69
+ key: "series",
70
+ index: s
71
+ });
72
+ });
73
+ }), t.value.responsive) {
74
+ const l = st(() => {
75
+ const { width: u, height: a } = rt({
76
+ chart: P.value,
77
+ title: t.value.style.chart.title.text ? ne.value : null,
78
+ legend: t.value.style.chart.legend.show ? ie.value : null
79
+ });
80
+ p.value = 48, e.value.height = a, e.value.usableHeight = a - p.value * 2, e.value.width = u, e.value.usableWidth = u - p.value * 2, e.value.top = p.value, e.value.left = p.value, e.value.right = u - p.value, e.value.bottom = a - p.value, e.value.centerX = u / 2, e.value.centerY = a - a / 2, e.value.padding = p.value;
81
+ });
82
+ G.value = new ResizeObserver(l), G.value.observe(P.value.parentNode);
83
+ }
84
+ }), Ve(() => {
85
+ G.value && G.value.disconnect();
86
+ });
87
+ const { isPrinting: Xe, isImaging: Ye, generatePdf: ve, generateImage: de } = yt({
88
+ elementId: `vue-ui-quadrant_${C.value}`,
89
+ fileName: t.value.style.chart.title.text || "vue-ui-quadrant"
90
+ }), ce = g(() => Qe(t.value.customPalette)), L = h({
91
+ plotLabels: {
92
+ show: t.value.style.chart.layout.labels.plotLabels.show
93
+ },
94
+ showTable: t.value.table.show,
95
+ showTooltip: t.value.style.chart.tooltip.show
96
+ }), p = h(48), e = h({
97
+ height: t.value.style.chart.height,
98
+ usableHeight: t.value.style.chart.height - p.value * 2,
99
+ width: t.value.style.chart.width,
100
+ usableWidth: t.value.style.chart.width - p.value * 2,
101
+ top: p.value,
102
+ left: p.value,
103
+ right: t.value.style.chart.width - p.value,
104
+ bottom: t.value.style.chart.height - p.value,
105
+ centerX: t.value.style.chart.width / 2,
106
+ centerY: t.value.style.chart.height - t.value.style.chart.height / 2,
107
+ padding: p.value
108
+ }), d = h({
109
+ ...JSON.parse(JSON.stringify(e.value)),
110
+ startX: 0,
111
+ startY: 0
112
+ });
113
+ He(() => e.value, (l) => {
114
+ l && (d.value = {
115
+ ...JSON.parse(JSON.stringify(e.value)),
116
+ startX: 0,
117
+ startY: 0
118
+ });
119
+ }, { deep: !0 });
120
+ const i = h(null), A = g(() => {
121
+ switch (i.value) {
122
+ case "TL":
123
+ return {
124
+ x: d.value.startX + d.value.width / 2,
125
+ y: d.value.height,
126
+ text: t.value.style.chart.layout.labels.quadrantLabels.tl.text || "Top Left",
127
+ fontSize: t.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
128
+ fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color,
129
+ bold: t.value.style.chart.layout.labels.quadrantLabels.tl.bold
130
+ };
131
+ case "TR":
132
+ return {
133
+ x: d.value.startX + d.value.width / 2,
134
+ y: d.value.height,
135
+ text: t.value.style.chart.layout.labels.quadrantLabels.tr.text || "Top Right",
136
+ fontSize: t.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
137
+ fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color,
138
+ bold: t.value.style.chart.layout.labels.quadrantLabels.tr.bold
139
+ };
140
+ case "BR":
141
+ return {
142
+ x: d.value.startX + d.value.width / 2,
143
+ y: d.value.height * 1.678,
144
+ text: t.value.style.chart.layout.labels.quadrantLabels.br.text || "Bottom Right",
145
+ fontSize: t.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
146
+ fill: t.value.style.chart.layout.labels.quadrantLabels.br.color,
147
+ bold: t.value.style.chart.layout.labels.quadrantLabels.br.bold
148
+ };
149
+ case "BL":
150
+ return {
151
+ x: d.value.startX + d.value.width / 2,
152
+ y: d.value.height * 1.678,
153
+ text: t.value.style.chart.layout.labels.quadrantLabels.bl.text || "Bottom Left",
154
+ fontSize: t.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
155
+ fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color,
156
+ bold: t.value.style.chart.layout.labels.quadrantLabels.bl.bold
157
+ };
158
+ default:
159
+ return { x: 0, y: 0, text: "", fontSize: 0, fill: "none", bold: !1 };
160
+ }
161
+ }), Me = h(null), Q = h(!1);
162
+ function R({ targetX: l, targetY: u, targetW: a, targetH: s, side: r }) {
163
+ i.value && O(r);
164
+ const y = {
165
+ x: l - d.value.startX,
166
+ y: u - d.value.startY,
167
+ w: a - d.value.width,
168
+ h: s - d.value.height
169
+ }, b = t.value.zoomAnimationFrames;
170
+ let T = 0;
171
+ function we() {
172
+ Q.value = !0, d.value.startX += y.x / b, d.value.startY += y.y / b, d.value.width += y.w / b, d.value.height += y.h / b, T += 1, T < b ? Me.value = requestAnimationFrame(we) : Q.value = !1;
173
+ }
174
+ we();
175
+ }
176
+ function Y(l) {
177
+ if (!Q.value)
178
+ if (f.value && i.value === l)
179
+ R({
180
+ targetX: 0,
181
+ targetY: 0,
182
+ targetW: e.value.width,
183
+ targetH: e.value.height
184
+ }), i.value = null, f.value = !1;
185
+ else {
186
+ switch (i.value = l, l) {
187
+ case "TL":
188
+ R({
189
+ targetX: 0,
190
+ targetY: 0,
191
+ targetW: e.value.width / 2 + e.value.left,
192
+ targetH: e.value.height / 2 + e.value.top,
193
+ side: "tl"
194
+ });
195
+ break;
196
+ case "TR":
197
+ R({
198
+ targetX: e.value.width / 2 - e.value.left,
199
+ targetY: 0,
200
+ targetW: e.value.width / 2 + e.value.left,
201
+ targetH: e.value.height / 2 + e.value.top,
202
+ side: "tr"
203
+ });
204
+ break;
205
+ case "BR":
206
+ R({
207
+ targetX: e.value.width / 2 - e.value.left,
208
+ targetY: e.value.height / 2 - e.value.top,
209
+ targetW: e.value.width / 2 + e.value.left,
210
+ targetH: e.value.height / 2 + e.value.top,
211
+ side: "br"
212
+ });
213
+ break;
214
+ case "BL":
215
+ R({
216
+ targetX: 0,
217
+ targetY: e.value.height / 2 - e.value.top,
218
+ targetW: e.value.width / 2 + e.value.left,
219
+ targetH: e.value.height / 2 + e.value.top,
220
+ side: "bl"
221
+ });
222
+ break;
223
+ default:
224
+ d.value.startX = 0, d.value.startY = 0, d.value.width = e.value.width, d.value.height = e.value.height;
225
+ break;
226
+ }
227
+ f.value = !0;
228
+ }
229
+ }
230
+ const Ne = g(() => {
231
+ const l = t.value.style.chart.layout.grid.graduations.steps, u = e.value.usableWidth / (l * 2), a = e.value.top, s = [];
232
+ for (let r = 0; r < l; r += 1)
233
+ s.push({
234
+ x: e.value.padding + u * r,
235
+ y: a + e.value.usableHeight * (r / l / 2),
236
+ height: e.value.usableHeight * (1 - r / l),
237
+ width: e.value.usableWidth * (1 - r / l),
238
+ opacity: K[Math.round((r + 1) / l * 20)]
239
+ });
240
+ return s;
241
+ }), M = g(() => {
242
+ let l = t.value.style.chart.layout.grid.xAxis.max, u = t.value.style.chart.layout.grid.xAxis.min, a = t.value.style.chart.layout.grid.yAxis.max, s = t.value.style.chart.layout.grid.yAxis.min;
243
+ return t.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...B.value.flatMap((r) => r.series.map((y) => y.x))), u = Math.min(...B.value.flatMap((r) => r.series.map((y) => y.x)))), t.value.style.chart.layout.grid.yAxis.auto && (a = Math.max(...B.value.flatMap((r) => r.series.map((y) => y.y))), s = Math.min(...B.value.flatMap((r) => r.series.map((y) => y.y)))), {
244
+ x: {
245
+ max: l,
246
+ min: u
247
+ },
248
+ y: {
249
+ max: a,
250
+ min: s
251
+ }
252
+ };
253
+ }), N = h([]), B = g(() => X.dataset.map((l, u) => ({
254
+ ...l,
255
+ id: `cat_${u}_${C.value}`,
256
+ color: Je(l.color) || ce.value[u] || se[u]
257
+ }))), Ae = g(() => B.value.filter((l) => !N.value.includes(l.id))), Be = g(() => B.value.map((l, u) => ({
258
+ ...l,
259
+ shape: l.shape || "circle",
260
+ series: l.series.map((a) => ({
261
+ ...a,
262
+ x: he(a.x),
263
+ y: ye(a.y),
264
+ xValue: a.x,
265
+ yValue: a.y,
266
+ quadrantSide: fe({ x: a.x, y: a.y }),
267
+ categoryName: l.name,
268
+ shape: l.shape,
269
+ color: l.color
270
+ }))
271
+ }))), q = g(() => (X.dataset.forEach((l, u) => {
272
+ l.series.forEach((a, s) => {
273
+ [null, void 0].includes(a.x) && F({
274
+ componentName: "VueUiQuadrant",
275
+ type: "datasetSerieAttribute",
276
+ property: "x",
277
+ key: "series",
278
+ index: s
279
+ }), [null, void 0].includes(a.y) && F({
280
+ componentName: "VueUiQuadrant",
281
+ type: "datasetSerieAttribute",
282
+ property: "y",
283
+ key: "series",
284
+ index: s
285
+ });
286
+ });
287
+ }), Ae.value.map((l, u) => ({
288
+ ...l,
289
+ shape: l.shape || "circle",
290
+ color: l.color || ce.value[u] || se[u],
291
+ series: l.series.map((a) => ({
292
+ ...a,
293
+ x: he(a.x),
294
+ y: ye(a.y),
295
+ xValue: a.x,
296
+ yValue: a.y,
297
+ quadrantSide: fe({ x: a.x, y: a.y }),
298
+ categoryName: l.name,
299
+ shape: l.shape,
300
+ color: l.color,
301
+ uid: qe()
302
+ }))
303
+ }))));
304
+ function he(l) {
305
+ if (l >= 0) {
306
+ const u = l / M.value.x.max;
307
+ return e.value.centerX + e.value.usableWidth / 2 * u;
308
+ } else {
309
+ const u = Math.abs(l) / Math.abs(M.value.x.min);
310
+ return e.value.centerX - e.value.usableWidth / 2 * u;
311
+ }
312
+ }
313
+ function ye(l) {
314
+ if (l >= 0) {
315
+ const u = l / M.value.y.max;
316
+ return e.value.centerY + (1 - e.value.usableHeight / 2 * u);
317
+ } else {
318
+ const u = Math.abs(l) / Math.abs(M.value.y.min);
319
+ return e.value.centerY - (1 - e.value.usableHeight / 2 * u);
320
+ }
321
+ }
322
+ const J = g(() => {
323
+ const l = q.value.flatMap((b) => b.series.map((T) => ({
324
+ x: T.xValue,
325
+ y: T.yValue,
326
+ name: T.name,
327
+ category: T.categoryName,
328
+ quadrantSide: T.quadrantSide,
329
+ sideName: t.value.style.chart.layout.labels.quadrantLabels[T.quadrantSide].text,
330
+ color: b.color,
331
+ shape: b.shape
332
+ }))), u = t.value.style.chart.layout.grid.xAxis.name || "x", a = t.value.style.chart.layout.grid.yAxis.name || "y", s = [t.value.translations.category, t.value.translations.item, u, a, t.value.translations.side], r = l.map((b) => [b.category, b.name, b.x, b.y, b.sideName || b.quadrantSide]), y = l.map((b) => ({
333
+ shape: b.shape,
334
+ color: b.color
335
+ }));
336
+ return { head: s, body: r, itsShapes: y, tableData: l };
337
+ }), j = g(() => {
338
+ const l = J.value.head, u = J.value.tableData.map((s) => [
339
+ {
340
+ shape: s.shape,
341
+ color: s.color,
342
+ name: s.category
343
+ },
344
+ s.name,
345
+ s.x,
346
+ s.y,
347
+ s.sideName || s.quadrantSide
348
+ ]), a = {
349
+ th: {
350
+ backgroundColor: t.value.table.th.backgroundColor,
351
+ color: t.value.table.th.color,
352
+ outline: t.value.table.th.outline
353
+ },
354
+ td: {
355
+ backgroundColor: t.value.table.td.backgroundColor,
356
+ color: t.value.table.td.color,
357
+ outline: t.value.table.td.outline
358
+ },
359
+ breakpoint: t.value.table.responsiveBreakpoint
360
+ };
361
+ return { head: l, body: u, config: a, colNames: l };
362
+ });
363
+ function le(l) {
364
+ N.value.includes(l) ? N.value = N.value.filter((a) => a !== l) : N.value.push(l);
365
+ const u = me();
366
+ ee("selectLegend", u);
367
+ }
368
+ const be = g(() => Be.value.map((l) => ({
369
+ name: l.name,
370
+ shape: l.shape,
371
+ color: l.color,
372
+ id: l.id,
373
+ opacity: N.value.includes(l.id) ? 0.5 : 1,
374
+ segregate: () => le(l.id),
375
+ isSegregated: N.value.includes(l.id)
376
+ }))), Fe = g(() => ({
377
+ cy: "quadrant-div-legend",
378
+ backgroundColor: t.value.style.chart.legend.backgroundColor,
379
+ color: t.value.style.chart.legend.color,
380
+ fontSize: t.value.style.chart.legend.fontSize,
381
+ paddingBottom: 12,
382
+ fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
383
+ }));
384
+ function fe(l) {
385
+ switch (!0) {
386
+ case (l.x >= 0 && l.y >= 0):
387
+ return "tr";
388
+ case (l.x >= 0 && l.y < 0):
389
+ return "br";
390
+ case (l.x < 0 && l.y < 0):
391
+ return "bl";
392
+ case (l.x < 0 && l.y >= 0):
393
+ return "tl";
394
+ default:
395
+ return "";
396
+ }
397
+ }
398
+ const V = h(null), H = h(null), ae = h(null);
399
+ function pe(l, u, a) {
400
+ V.value = u.uid, H.value = {
401
+ color: l.color,
402
+ shape: l.shape
403
+ }, ae.value = {
404
+ datapoint: u,
405
+ seriesIndex: a,
406
+ series: q.value,
407
+ config: t.value
408
+ }, U.value = !0;
409
+ const s = t.value.style.chart.tooltip.customFormat;
410
+ if (lt(s) && at(() => s({
411
+ seriesIndex: a,
412
+ datapoint: u,
413
+ series: q.value,
414
+ config: t.value
415
+ })))
416
+ te.value = s({
417
+ seriesIndex: a,
418
+ datapoint: u,
419
+ series: q.value,
420
+ config: t.value
421
+ });
422
+ else {
423
+ let r = "";
424
+ u.quadrantSide && (r += `<div style="color:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].color};font-weight:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].bold ? "bold" : "400"}">${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text}</div>`), r += `<div>${l.name}</div>`, r += `<div style="padding-bottom:6px;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};margin-bottom:3px">${u.name}</div>`, r += `<div>${t.value.style.chart.layout.grid.xAxis.name ? t.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${u.xValue.toFixed(t.value.style.chart.tooltip.roundingValue)}</b></div>`, r += `<div>${t.value.style.chart.layout.grid.yAxis.name ? t.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${u.yValue.toFixed(t.value.style.chart.tooltip.roundingValue)}</b></div>`, te.value = `<div style="text-align:left;font-size:${t.value.style.chart.tooltip.fontSize}px">${r}</div>`;
425
+ }
426
+ }
427
+ function ge(l, u) {
428
+ const a = {
429
+ category: l.name,
430
+ shape: l.shape,
431
+ itemName: u.name,
432
+ x: u.xValue,
433
+ y: u.yValue,
434
+ quadrantSide: u.quadrantSide,
435
+ sideName: t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text
436
+ };
437
+ ee("selectPlot", a);
438
+ }
439
+ function O(l) {
440
+ if (!l) return;
441
+ const u = q.value.flatMap((s) => s.series.filter((r) => r.quadrantSide === l).map((r) => ({
442
+ category: r.categoryName,
443
+ itemName: r.name,
444
+ x: r.xValue,
445
+ y: r.yValue
446
+ }))), a = {
447
+ quadrantSide: l,
448
+ sideName: t.value.style.chart.layout.labels.quadrantLabels[l].text,
449
+ items: [...u]
450
+ };
451
+ ee("selectSide", a);
452
+ }
453
+ const x = g(() => ({
454
+ TL: {
455
+ tl: {
456
+ x: e.value.left + e.value.usableWidth / 4 - 20,
457
+ y: 0,
458
+ fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color
459
+ },
460
+ tr: {
461
+ x: e.value.left + e.value.usableWidth / 4,
462
+ y: 0,
463
+ fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color
464
+ },
465
+ br: {
466
+ x: e.value.left + e.value.usableWidth / 4,
467
+ y: 20,
468
+ fill: t.value.style.chart.layout.labels.quadrantLabels.br.color
469
+ },
470
+ bl: {
471
+ x: e.value.left + e.value.usableWidth / 4 - 20,
472
+ y: 20,
473
+ fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color
474
+ },
475
+ crosshairs: {
476
+ horizontal: `M ${e.value.left + e.value.usableWidth / 4 - 20},20 ${e.value.left + e.value.usableWidth / 4 + 20},20`,
477
+ vertical: `M ${e.value.left + e.value.usableWidth / 4},0 ${e.value.left + e.value.usableWidth / 4},40`
478
+ }
479
+ },
480
+ TR: {
481
+ tl: {
482
+ x: e.value.centerX + e.value.usableWidth / 4 - 20,
483
+ y: 0,
484
+ fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color
485
+ },
486
+ tr: {
487
+ x: e.value.centerX + e.value.usableWidth / 4,
488
+ y: 0,
489
+ fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color
490
+ },
491
+ br: {
492
+ x: e.value.centerX + e.value.usableWidth / 4,
493
+ y: 20,
494
+ fill: t.value.style.chart.layout.labels.quadrantLabels.br.color
495
+ },
496
+ bl: {
497
+ x: e.value.centerX + e.value.usableWidth / 4 - 20,
498
+ y: 20,
499
+ fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color
500
+ },
501
+ crosshairs: {
502
+ horizontal: `M ${e.value.centerX + e.value.usableWidth / 4 - 20},20 ${e.value.centerX + e.value.usableWidth / 4 + 20},20`,
503
+ vertical: `M ${e.value.centerX + e.value.usableWidth / 4},0 ${e.value.centerX + e.value.usableWidth / 4},40`
504
+ }
505
+ },
506
+ BR: {
507
+ tl: {
508
+ x: e.value.centerX + e.value.usableWidth / 4 - 20,
509
+ y: e.value.centerY - 48,
510
+ fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color
511
+ },
512
+ tr: {
513
+ x: e.value.centerX + e.value.usableWidth / 4,
514
+ y: e.value.centerY - 48,
515
+ fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color
516
+ },
517
+ br: {
518
+ x: e.value.centerX + e.value.usableWidth / 4,
519
+ y: e.value.centerY - 28,
520
+ fill: t.value.style.chart.layout.labels.quadrantLabels.br.color
521
+ },
522
+ bl: {
523
+ x: e.value.centerX + e.value.usableWidth / 4 - 20,
524
+ y: e.value.centerY - 28,
525
+ fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color
526
+ },
527
+ crosshairs: {
528
+ horizontal: `M ${e.value.centerX + e.value.usableWidth / 4 - 20},${e.value.centerY - 28} ${e.value.centerX + e.value.usableWidth / 4 + 20},${e.value.centerY - 28}`,
529
+ vertical: `M ${e.value.centerX + e.value.usableWidth / 4},${e.value.centerY - 48} ${e.value.centerX + e.value.usableWidth / 4},${e.value.centerY - 8}`
530
+ }
531
+ },
532
+ BL: {
533
+ tl: {
534
+ x: e.value.left + e.value.usableWidth / 4 - 20,
535
+ y: e.value.centerY - 48,
536
+ fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color
537
+ },
538
+ tr: {
539
+ x: e.value.left + e.value.usableWidth / 4,
540
+ y: e.value.centerY - 48,
541
+ fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color
542
+ },
543
+ br: {
544
+ x: e.value.left + e.value.usableWidth / 4,
545
+ y: e.value.centerY - 28,
546
+ fill: t.value.style.chart.layout.labels.quadrantLabels.br.color
547
+ },
548
+ bl: {
549
+ x: e.value.left + e.value.usableWidth / 4 - 20,
550
+ y: e.value.centerY - 28,
551
+ fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color
552
+ },
553
+ crosshairs: {
554
+ horizontal: `M ${e.value.left + e.value.usableWidth / 4 - 20},${e.value.centerY - 28} ${e.value.left + e.value.usableWidth / 4 + 20},${e.value.centerY - 28}`,
555
+ vertical: `M ${e.value.left + e.value.usableWidth / 4},${e.value.centerY - 48} ${e.value.left + e.value.usableWidth / 4},${e.value.centerY - 8}`
556
+ }
557
+ }
558
+ }));
559
+ function me() {
560
+ return q.value.map((l) => ({
561
+ color: l.color,
562
+ name: l.name,
563
+ shape: l.shape,
564
+ series: l.series.map((u) => ({
565
+ name: u.name,
566
+ x: u.xValue,
567
+ y: u.yValue,
568
+ quadrantSide: u.quadrantSide,
569
+ sideName: t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text
570
+ }))
571
+ }));
572
+ }
573
+ function xe() {
574
+ De(() => {
575
+ const l = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], u = J.value.head, a = J.value.body, s = l.concat([u]).concat(a), r = ut(s);
576
+ ot({ csvContent: r, title: t.value.style.chart.title.text || "vue-ui-quadrant" });
577
+ });
578
+ }
579
+ const I = h(!1);
580
+ function Pe(l) {
581
+ I.value = l, re.value += 1;
582
+ }
583
+ function $e() {
584
+ L.value.showTable = !L.value.showTable;
585
+ }
586
+ function ke() {
587
+ L.value.plotLabels.show = !L.value.plotLabels.show;
588
+ }
589
+ function Le() {
590
+ L.value.showTooltip = !L.value.showTooltip;
591
+ }
592
+ return ze({
593
+ getData: me,
594
+ generatePdf: ve,
595
+ generateCsv: xe,
596
+ generateImage: de,
597
+ toggleTable: $e,
598
+ toggleLabels: ke,
599
+ toggleTooltip: Le
600
+ }), (l, u) => (o(), n("div", {
601
+ class: z(`vue-ui-quadrant ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
602
+ ref_key: "quadrantChart",
603
+ ref: P,
604
+ id: `vue-ui-quadrant_${C.value}`,
605
+ style: k(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text ? "" : "padding-top: 36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive ? "height: 100%" : ""}`)
606
+ }, [
607
+ t.value.style.chart.title.text ? (o(), n("div", {
608
+ key: 0,
609
+ ref_key: "chartTitle",
610
+ ref: ne,
611
+ style: k(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)
612
+ }, [
613
+ Z(it, {
614
+ config: {
615
+ title: {
616
+ cy: "quadrant-title",
617
+ ...t.value.style.chart.title
618
+ },
619
+ subtitle: {
620
+ cy: "quadrant-subtitle",
621
+ ...t.value.style.chart.title.subtitle
622
+ }
623
+ }
624
+ }, null, 8, ["config"])
625
+ ], 4)) : c("", !0),
626
+ t.value.userOptions.show && E.value ? (o(), D(vt, {
627
+ ref_key: "details",
628
+ ref: We,
629
+ key: `user_options_${re.value}`,
630
+ backgroundColor: t.value.style.chart.backgroundColor,
631
+ color: t.value.style.chart.color,
632
+ isImaging: _(Ye),
633
+ isPrinting: _(Xe),
634
+ uid: C.value,
635
+ hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
636
+ hasPdf: t.value.userOptions.buttons.pdf,
637
+ hasImg: t.value.userOptions.buttons.img,
638
+ hasXls: t.value.userOptions.buttons.csv,
639
+ hasTable: t.value.userOptions.buttons.table,
640
+ hasLabel: t.value.userOptions.buttons.labels,
641
+ hasFullscreen: t.value.userOptions.buttons.fullscreen,
642
+ isFullscreen: I.value,
643
+ isTooltip: L.value.showTooltip,
644
+ titles: { ...t.value.userOptions.buttonTitles },
645
+ chartElement: P.value,
646
+ onToggleFullscreen: Pe,
647
+ onGeneratePdf: _(ve),
648
+ onGenerateCsv: xe,
649
+ onGenerateImage: _(de),
650
+ onToggleTable: $e,
651
+ onToggleLabels: ke,
652
+ onToggleTooltip: Le
653
+ }, Oe({ _: 2 }, [
654
+ l.$slots.optionTooltip ? {
655
+ name: "optionTooltip",
656
+ fn: $(() => [
657
+ S(l.$slots, "optionTooltip", {}, void 0, !0)
658
+ ]),
659
+ key: "0"
660
+ } : void 0,
661
+ l.$slots.optionPdf ? {
662
+ name: "optionPdf",
663
+ fn: $(() => [
664
+ S(l.$slots, "optionPdf", {}, void 0, !0)
665
+ ]),
666
+ key: "1"
667
+ } : void 0,
668
+ l.$slots.optionCsv ? {
669
+ name: "optionCsv",
670
+ fn: $(() => [
671
+ S(l.$slots, "optionCsv", {}, void 0, !0)
672
+ ]),
673
+ key: "2"
674
+ } : void 0,
675
+ l.$slots.optionImg ? {
676
+ name: "optionImg",
677
+ fn: $(() => [
678
+ S(l.$slots, "optionImg", {}, void 0, !0)
679
+ ]),
680
+ key: "3"
681
+ } : void 0,
682
+ l.$slots.optionTable ? {
683
+ name: "optionTable",
684
+ fn: $(() => [
685
+ S(l.$slots, "optionTable", {}, void 0, !0)
686
+ ]),
687
+ key: "4"
688
+ } : void 0,
689
+ l.$slots.optionLabels ? {
690
+ name: "optionLabels",
691
+ fn: $(() => [
692
+ S(l.$slots, "optionLabels", {}, void 0, !0)
693
+ ]),
694
+ key: "5"
695
+ } : void 0,
696
+ l.$slots.optionFullscreen ? {
697
+ name: "optionFullscreen",
698
+ fn: $(({ toggleFullscreen: a, isFullscreen: s }) => [
699
+ S(l.$slots, "optionFullscreen", ue(oe({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
700
+ ]),
701
+ key: "6"
702
+ } : void 0
703
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
704
+ E.value ? (o(), n("svg", {
705
+ key: 2,
706
+ xmlns: _(je),
707
+ class: z({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
708
+ viewBox: `${d.value.startX} ${d.value.startY} ${d.value.width} ${d.value.height}`,
709
+ style: k(`max-width:100%;overflow:${f.value ? "hidden" : "visible"};background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`),
710
+ id: `svg_${C.value}`
711
+ }, [
712
+ v("defs", null, [
713
+ (o(!0), n(w, null, W(q.value, (a, s) => (o(), n("radialGradient", {
714
+ cx: "50%",
715
+ cy: "50%",
716
+ r: "50%",
717
+ fx: "50%",
718
+ fy: "50%",
719
+ id: `quadrant_gradient_${C.value}_${s}`
720
+ }, [
721
+ v("stop", {
722
+ offset: "0%",
723
+ "stop-color": `${_(Ze)(a.color, 0.05)}${_(K)[t.value.style.chart.layout.areas.opacity]}`
724
+ }, null, 8, xt),
725
+ v("stop", {
726
+ offset: "100%",
727
+ "stop-color": a.color + _(K)[t.value.style.chart.layout.areas.opacity]
728
+ }, null, 8, $t)
729
+ ], 8, mt))), 256))
730
+ ]),
731
+ t.value.style.chart.layout.grid.graduations.show ? (o(), n("g", kt, [
732
+ (o(!0), n(w, null, W(Ne.value, (a) => (o(), n("rect", {
733
+ fill: t.value.style.chart.layout.grid.graduations.fill ? `${t.value.style.chart.layout.grid.graduations.color}${a.opacity}` : "none",
734
+ x: a.x,
735
+ y: a.y,
736
+ height: a.height <= 0 ? 1e-3 : a.height,
737
+ width: a.width <= 0 ? 1e-3 : a.width,
738
+ "stroke-width": t.value.style.chart.layout.grid.graduations.strokeWidth,
739
+ stroke: t.value.style.chart.layout.grid.graduations.stroke,
740
+ rx: t.value.style.chart.layout.grid.graduations.roundingForce
741
+ }, null, 8, Lt))), 256))
742
+ ])) : c("", !0),
743
+ v("line", {
744
+ x1: e.value.left,
745
+ y1: e.value.centerY,
746
+ x2: e.value.right,
747
+ y2: e.value.centerY,
748
+ stroke: t.value.style.chart.layout.grid.stroke,
749
+ "stroke-width": t.value.style.chart.layout.grid.strokeWidth
750
+ }, null, 8, wt),
751
+ v("line", {
752
+ x1: e.value.centerX,
753
+ y1: e.value.top,
754
+ x2: e.value.centerX,
755
+ y2: e.value.bottom,
756
+ stroke: t.value.style.chart.layout.grid.stroke,
757
+ "stroke-width": t.value.style.chart.layout.grid.strokeWidth
758
+ }, null, 8, qt),
759
+ t.value.style.chart.layout.grid.showArrows ? (o(), n("g", _t, [
760
+ v("polygon", {
761
+ points: `${e.value.right - 8},${e.value.centerY - 6} ${e.value.right},${e.value.centerY} ${e.value.right - 8},${e.value.centerY + 6}`,
762
+ fill: t.value.style.chart.layout.grid.stroke,
763
+ stroke: "none"
764
+ }, null, 8, St),
765
+ v("polygon", {
766
+ points: `${e.value.left + 8},${e.value.centerY - 6} ${e.value.left},${e.value.centerY} ${e.value.left + 8},${e.value.centerY + 6}`,
767
+ fill: t.value.style.chart.layout.grid.stroke,
768
+ stroke: "none"
769
+ }, null, 8, Ct),
770
+ v("polygon", {
771
+ points: `${e.value.centerX - 6},${e.value.top + 8} ${e.value.centerX},${e.value.top} ${e.value.centerX + 6},${e.value.top + 8}`,
772
+ fill: t.value.style.chart.layout.grid.stroke,
773
+ stroke: "none"
774
+ }, null, 8, zt),
775
+ v("polygon", {
776
+ points: `${e.value.centerX - 6},${e.value.bottom - 8} ${e.value.centerX},${e.value.bottom} ${e.value.centerX + 6},${e.value.bottom - 8}`,
777
+ fill: t.value.style.chart.layout.grid.stroke,
778
+ stroke: "none"
779
+ }, null, 8, Tt)
780
+ ])) : c("", !0),
781
+ t.value.style.chart.layout.labels.quadrantLabels.show && !f.value ? (o(), n("g", Wt, [
782
+ t.value.style.chart.layout.labels.quadrantLabels.tl.text ? (o(), n("text", {
783
+ key: 0,
784
+ x: 0,
785
+ y: e.value.top - e.value.padding / 2,
786
+ "text-anchor": "start",
787
+ fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color,
788
+ "font-size": t.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
789
+ style: k(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
790
+ onClick: u[0] || (u[0] = (a) => O("tl"))
791
+ }, m(t.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, Xt)) : c("", !0),
792
+ t.value.style.chart.layout.labels.quadrantLabels.tr.text ? (o(), n("text", {
793
+ key: 1,
794
+ x: e.value.width,
795
+ y: e.value.top - e.value.padding / 2,
796
+ "text-anchor": "end",
797
+ fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color,
798
+ "font-size": t.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
799
+ style: k(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
800
+ onClick: u[1] || (u[1] = (a) => O("tr"))
801
+ }, m(t.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, Yt)) : c("", !0),
802
+ t.value.style.chart.layout.labels.quadrantLabels.br.text ? (o(), n("text", {
803
+ key: 2,
804
+ x: e.value.width,
805
+ y: e.value.bottom + e.value.padding * 0.7,
806
+ "text-anchor": "end",
807
+ fill: t.value.style.chart.layout.labels.quadrantLabels.br.color,
808
+ "font-size": t.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
809
+ style: k(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
810
+ onClick: u[2] || (u[2] = (a) => O("br"))
811
+ }, m(t.value.style.chart.layout.labels.quadrantLabels.br.text), 13, Mt)) : c("", !0),
812
+ t.value.style.chart.layout.labels.quadrantLabels.bl.text ? (o(), n("text", {
813
+ key: 3,
814
+ x: 0,
815
+ y: e.value.bottom + e.value.padding * 0.7,
816
+ "text-anchor": "start",
817
+ fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color,
818
+ "font-size": t.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
819
+ style: k(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
820
+ onClick: u[3] || (u[3] = (a) => O("bl"))
821
+ }, m(t.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, Nt)) : c("", !0)
822
+ ])) : c("", !0),
823
+ t.value.style.chart.layout.labels.axisLabels.show ? (o(), n("g", At, [
824
+ v("text", {
825
+ x: e.value.centerX,
826
+ y: e.value.top - e.value.padding / 6,
827
+ "text-anchor": "middle",
828
+ "font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
829
+ fill: t.value.style.chart.layout.labels.axisLabels.color.positive
830
+ }, m(M.value.y.max), 9, Bt),
831
+ v("text", {
832
+ x: e.value.centerX,
833
+ y: e.value.top - e.value.padding / 2,
834
+ "text-anchor": "middle",
835
+ "font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
836
+ fill: t.value.style.chart.layout.labels.axisLabels.color.positive
837
+ }, m(t.value.style.chart.layout.grid.yAxis.name), 9, Ft),
838
+ v("text", {
839
+ x: e.value.centerX,
840
+ y: e.value.bottom + e.value.padding * 0.35,
841
+ "text-anchor": "middle",
842
+ "font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
843
+ fill: t.value.style.chart.layout.labels.axisLabels.color.negative
844
+ }, m(M.value.y.min), 9, Pt),
845
+ v("text", {
846
+ id: `xLabelMin_${C.value}`,
847
+ "text-anchor": "middle",
848
+ "font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
849
+ transform: `translate(${e.value.padding - t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(-90)`,
850
+ fill: t.value.style.chart.layout.labels.axisLabels.color.negative
851
+ }, m(M.value.x.min), 9, Rt),
852
+ v("text", {
853
+ id: `xLabelMax_${C.value}`,
854
+ "text-anchor": "middle",
855
+ "font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
856
+ transform: `translate(${e.value.width - e.value.padding + t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(90)`,
857
+ fill: t.value.style.chart.layout.labels.axisLabels.color.positive
858
+ }, m(M.value.x.max), 9, Vt),
859
+ v("text", {
860
+ id: `xLabelMaxName_${C.value}`,
861
+ "text-anchor": "middle",
862
+ "font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
863
+ transform: `translate(${e.value.width - t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(90)`,
864
+ fill: t.value.style.chart.layout.labels.axisLabels.color.positive
865
+ }, m(t.value.style.chart.layout.grid.xAxis.name), 9, Ht)
866
+ ])) : c("", !0),
867
+ t.value.style.chart.layout.areas.show ? (o(), n("g", Ot, [
868
+ (o(!0), n(w, null, W(q.value, (a, s) => (o(), n("g", null, [
869
+ a.series.length > 2 ? (o(), n("polygon", {
870
+ key: 0,
871
+ "data-cy-quadrant-area": "",
872
+ fill: t.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${C.value}_${s})` : `${a.color}${_(K)[t.value.style.chart.layout.areas.opacity]}`,
873
+ points: _(Ke)(a)
874
+ }, null, 8, It)) : c("", !0)
875
+ ]))), 256))
876
+ ])) : c("", !0),
877
+ v("g", null, [
878
+ v("rect", {
879
+ onClick: u[4] || (u[4] = (a) => Y("TL")),
880
+ x: e.value.left,
881
+ y: e.value.top,
882
+ width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
883
+ height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
884
+ fill: "transparent",
885
+ class: z({ "vue-data-ui-zoom-plus": !f.value, "vue-data-ui-zoom-minus": f.value })
886
+ }, null, 10, Dt),
887
+ v("rect", {
888
+ onClick: u[5] || (u[5] = (a) => Y("TR")),
889
+ x: e.value.centerX,
890
+ y: e.value.top,
891
+ width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
892
+ height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
893
+ fill: "transparent",
894
+ class: z({ "vue-data-ui-zoom-plus": !f.value, "vue-data-ui-zoom-minus": f.value })
895
+ }, null, 10, Et),
896
+ v("rect", {
897
+ onClick: u[6] || (u[6] = (a) => Y("BR")),
898
+ x: e.value.centerX,
899
+ y: e.value.centerY,
900
+ width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
901
+ height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
902
+ fill: "transparent",
903
+ class: z({ "vue-data-ui-zoom-plus": !f.value, "vue-data-ui-zoom-minus": f.value })
904
+ }, null, 10, Ut),
905
+ v("rect", {
906
+ onClick: u[7] || (u[7] = (a) => Y("BL")),
907
+ x: e.value.left,
908
+ y: e.value.centerY,
909
+ width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
910
+ height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
911
+ fill: "transparent",
912
+ class: z({ "vue-data-ui-zoom-plus": !f.value, "vue-data-ui-zoom-minus": f.value })
913
+ }, null, 10, Gt)
914
+ ]),
915
+ t.value.style.chart.layout.labels.plotLabels.showAsTag ? (o(), n(w, { key: 6 }, [
916
+ L.value.plotLabels.show ? (o(), n("g", jt, [
917
+ (o(!0), n(w, null, W(q.value, (a, s) => (o(), n(w, null, [
918
+ (o(!0), n(w, null, W(a.series, (r) => (o(), n("foreignObject", {
919
+ style: { overflow: "visible" },
920
+ height: "10",
921
+ width: "100",
922
+ x: r.x - 50,
923
+ y: r.y - t.value.style.chart.layout.labels.plotLabels.fontSize,
924
+ onMouseover: (y) => pe(a, r, s),
925
+ onMouseleave: u[9] || (u[9] = (y) => {
926
+ U.value = !1, V.value = null, H.value = null;
927
+ }),
928
+ onClick: (y) => ge(a, r)
929
+ }, [
930
+ v("div", {
931
+ style: k(`color:${_(et)(a.color)};margin: 0 auto; font-size:${t.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${a.color}; padding: 2px 4px; border-radius: 12px; height: ${t.value.style.chart.layout.labels.plotLabels.fontSize * 1.5}px`)
932
+ }, m(r.name), 5)
933
+ ], 40, Zt))), 256))
934
+ ], 64))), 256))
935
+ ])) : c("", !0)
936
+ ], 64)) : (o(), n(w, { key: 5 }, [
937
+ (o(!0), n(w, null, W(q.value, (a, s) => (o(), n("g", null, [
938
+ (o(!0), n(w, null, W(a.series, (r) => (o(), D(_e, {
939
+ color: a.color,
940
+ isSelected: V.value && r.uid === V.value,
941
+ plot: r,
942
+ radius: t.value.style.chart.layout.plots.radius / (f.value ? 1.5 : 1),
943
+ shape: a.shape,
944
+ stroke: t.value.style.chart.layout.plots.outline ? t.value.style.chart.layout.plots.outlineColor : "none",
945
+ strokeWidth: t.value.style.chart.layout.plots.outlineWidth,
946
+ onMouseover: (y) => pe(a, r, s),
947
+ onMouseleave: u[8] || (u[8] = (y) => {
948
+ U.value = !1, V.value = null, H.value = null;
949
+ }),
950
+ onClick: (y) => ge(a, r)
951
+ }, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseover", "onClick"]))), 256))
952
+ ]))), 256)),
953
+ L.value.plotLabels.show ? (o(), n("g", Qt, [
954
+ (o(!0), n(w, null, W(q.value, (a) => (o(), n("g", null, [
955
+ (o(!0), n(w, null, W(a.series, (s) => (o(), n("text", {
956
+ x: s.x,
957
+ y: s.y + t.value.style.chart.layout.labels.plotLabels.offsetY + t.value.style.chart.layout.plots.radius,
958
+ "text-anchor": "middle",
959
+ "font-size": t.value.style.chart.layout.labels.plotLabels.fontSize / (f.value ? 1.5 : 1),
960
+ fill: t.value.style.chart.layout.labels.plotLabels.color
961
+ }, m(s.name), 9, Jt))), 256))
962
+ ]))), 256))
963
+ ])) : c("", !0)
964
+ ], 64)),
965
+ f.value ? (o(), n("g", Kt, [
966
+ i.value === "TL" ? (o(), n("polygon", {
967
+ key: 0,
968
+ points: `${e.value.left - 1},${e.value.centerY} ${e.value.centerX},${e.value.centerY} ${e.value.centerX},${e.value.top - 1} ${e.value.right},${e.value.top - 1} ${e.value.right},${e.value.bottom} ${e.value.left - 1},${e.value.bottom} ${e.value.left - 1},${e.value.centerY}`,
969
+ fill: t.value.style.chart.backgroundColor,
970
+ style: { opacity: "1" }
971
+ }, null, 8, el)) : c("", !0),
972
+ i.value === "TR" ? (o(), n("polygon", {
973
+ key: 1,
974
+ points: `${e.value.left},${e.value.top - 1} ${e.value.centerX},${e.value.top - 1} ${e.value.centerX},${e.value.centerY} ${e.value.right + 1},${e.value.centerY} ${e.value.right + 1},${e.value.bottom} ${e.value.left},${e.value.bottom} ${e.value.left},${e.value.top - 1}`,
975
+ fill: t.value.style.chart.backgroundColor,
976
+ style: { opacity: "1" }
977
+ }, null, 8, tl)) : c("", !0),
978
+ i.value === "BR" ? (o(), n("polygon", {
979
+ key: 2,
980
+ points: `${e.value.left},${e.value.top} ${e.value.right + 1},${e.value.top} ${e.value.right + 1},${e.value.centerY} ${e.value.centerX},${e.value.centerY} ${e.value.centerX},${e.value.bottom + 1} ${e.value.left},${e.value.bottom + 1} ${e.value.left},${e.value.top}`,
981
+ fill: t.value.style.chart.backgroundColor,
982
+ style: { opacity: "1" }
983
+ }, null, 8, ll)) : c("", !0),
984
+ i.value === "BL" ? (o(), n("polygon", {
985
+ key: 3,
986
+ points: `${e.value.left - 1},${e.value.top} ${e.value.right},${e.value.top} ${e.value.right},${e.value.bottom + 1} ${e.value.centerX},${e.value.bottom + 1} ${e.value.centerX},${e.value.centerY} ${e.value.left - 1},${e.value.centerY} ${e.value.left - 1},${e.value.top}`,
987
+ fill: t.value.style.chart.backgroundColor,
988
+ style: { opacity: "1" }
989
+ }, null, 8, al)) : c("", !0)
990
+ ])) : c("", !0),
991
+ i.value && !Q.value ? (o(), n("g", ul, [
992
+ v("text", {
993
+ x: A.value.x,
994
+ y: A.value.y - A.value.fontSize / 1.5,
995
+ "font-size": A.value.fontSize / 1.5,
996
+ fill: A.value.fill,
997
+ "text-anchor": "middle",
998
+ "font-weight": A.value.bold ? "bold" : "normal"
999
+ }, m(A.value.text), 9, ol)
1000
+ ])) : c("", !0),
1001
+ f.value && i.value ? (o(), n("g", sl, [
1002
+ v("rect", {
1003
+ x: x.value[i.value].tl.x,
1004
+ y: x.value[i.value].tl.y,
1005
+ height: "20",
1006
+ width: "20",
1007
+ fill: x.value[i.value].tl.fill,
1008
+ style: k(`cursor: pointer; opacity: ${i.value === "TL" ? 1 : 0.2}`),
1009
+ onClick: u[10] || (u[10] = (a) => Y("TL")),
1010
+ class: z({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": i.value !== "TL" })
1011
+ }, null, 14, rl),
1012
+ v("rect", {
1013
+ x: x.value[i.value].tr.x,
1014
+ y: x.value[i.value].tr.y,
1015
+ height: "20",
1016
+ width: "20",
1017
+ fill: x.value[i.value].tr.fill,
1018
+ style: k(`cursor: pointer; opacity: ${i.value === "TR" ? 1 : 0.2}`),
1019
+ onClick: u[11] || (u[11] = (a) => Y("TR")),
1020
+ class: z({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": i.value !== "TR" })
1021
+ }, null, 14, nl),
1022
+ v("rect", {
1023
+ x: x.value[i.value].br.x,
1024
+ y: x.value[i.value].br.y,
1025
+ height: "20",
1026
+ width: "20",
1027
+ fill: x.value[i.value].br.fill,
1028
+ style: k(`cursor: pointer; opacity: ${i.value === "BR" ? 1 : 0.2}`),
1029
+ onClick: u[12] || (u[12] = (a) => Y("BR")),
1030
+ class: z({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": i.value !== "BR" })
1031
+ }, null, 14, il),
1032
+ v("rect", {
1033
+ x: x.value[i.value].bl.x,
1034
+ y: x.value[i.value].bl.y,
1035
+ height: "20",
1036
+ width: "20",
1037
+ fill: x.value[i.value].bl.fill,
1038
+ style: k(`cursor: pointer; opacity: ${i.value === "BL" ? 1 : 0.2}`),
1039
+ onClick: u[13] || (u[13] = (a) => Y("BL")),
1040
+ class: z({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": i.value !== "BL" })
1041
+ }, null, 14, vl),
1042
+ v("path", {
1043
+ class: "vue-ui-quadrant-minimap-crosshairs",
1044
+ stroke: t.value.style.chart.backgroundColor,
1045
+ "stroke-width": 1,
1046
+ d: x.value[i.value].crosshairs.horizontal
1047
+ }, null, 8, dl),
1048
+ v("path", {
1049
+ class: "vue-ui-quadrant-minimap-crosshairs",
1050
+ stroke: t.value.style.chart.backgroundColor,
1051
+ "stroke-width": 1,
1052
+ d: x.value[i.value].crosshairs.vertical
1053
+ }, null, 8, cl)
1054
+ ])) : c("", !0),
1055
+ S(l.$slots, "svg", { svg: e.value }, void 0, !0)
1056
+ ], 14, gt)) : c("", !0),
1057
+ E.value ? c("", !0) : (o(), D(bt, {
1058
+ key: 3,
1059
+ config: {
1060
+ type: "quadrant",
1061
+ style: {
1062
+ backgroundColor: t.value.style.chart.backgroundColor,
1063
+ quadrant: {
1064
+ grid: {
1065
+ color: t.value.style.chart.layout.grid.stroke
1066
+ },
1067
+ plots: {
1068
+ color: t.value.style.chart.layout.grid.stroke,
1069
+ radius: 1
1070
+ }
1071
+ }
1072
+ }
1073
+ }
1074
+ }, null, 8, ["config"])),
1075
+ v("div", {
1076
+ ref_key: "chartLegend",
1077
+ ref: ie
1078
+ }, [
1079
+ t.value.style.chart.legend.show ? (o(), D(ct, {
1080
+ key: 0,
1081
+ legendSet: be.value,
1082
+ config: Fe.value,
1083
+ onClickMarker: u[14] || (u[14] = ({ legend: a }) => le(a.id))
1084
+ }, {
1085
+ item: $(({ legend: a }) => [
1086
+ v("div", {
1087
+ "data-cy-legend-item": "",
1088
+ onClick: (s) => le(a.id),
1089
+ style: k(`opacity:${N.value.includes(a.id) ? 0.5 : 1}`)
1090
+ }, m(a.name), 13, hl)
1091
+ ]),
1092
+ _: 1
1093
+ }, 8, ["legendSet", "config"])) : S(l.$slots, "legend", {
1094
+ key: 1,
1095
+ legend: be.value
1096
+ }, void 0, !0)
1097
+ ], 512),
1098
+ Z(dt, {
1099
+ show: L.value.showTooltip && U.value,
1100
+ backgroundColor: t.value.style.chart.tooltip.backgroundColor,
1101
+ color: t.value.style.chart.tooltip.color,
1102
+ borderRadius: t.value.style.chart.tooltip.borderRadius,
1103
+ borderColor: t.value.style.chart.tooltip.borderColor,
1104
+ borderWidth: t.value.style.chart.tooltip.borderWidth,
1105
+ fontSize: t.value.style.chart.tooltip.fontSize,
1106
+ backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
1107
+ parent: P.value,
1108
+ content: te.value,
1109
+ isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function"
1110
+ }, {
1111
+ "tooltip-before": $(() => [
1112
+ S(l.$slots, "tooltip-before", ue(oe({ ...ae.value })), void 0, !0)
1113
+ ]),
1114
+ "tooltip-after": $(() => [
1115
+ S(l.$slots, "tooltip-after", ue(oe({ ...ae.value })), void 0, !0)
1116
+ ]),
1117
+ default: $(() => [
1118
+ t.value.style.chart.tooltip.showShape ? (o(), n("svg", yl, [
1119
+ Z(_e, {
1120
+ plot: { x: 10, y: 10 },
1121
+ shape: H.value.shape,
1122
+ color: H.value.color,
1123
+ radius: 8,
1124
+ stroke: t.value.style.chart.layout.plots.outline ? t.value.style.chart.layout.plots.outlineColor : "none",
1125
+ "stroke-width": t.value.style.chart.layout.plots.outlineWidth
1126
+ }, null, 8, ["shape", "color", "stroke", "stroke-width"])
1127
+ ])) : c("", !0)
1128
+ ]),
1129
+ _: 3
1130
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "parent", "content", "isCustom"]),
1131
+ E.value ? (o(), D(ft, {
1132
+ key: 4,
1133
+ hideDetails: "",
1134
+ config: {
1135
+ open: L.value.showTable,
1136
+ maxHeight: 1e4,
1137
+ body: {
1138
+ backgroundColor: t.value.style.chart.backgroundColor,
1139
+ color: t.value.style.chart.color
1140
+ },
1141
+ head: {
1142
+ backgroundColor: t.value.style.chart.backgroundColor,
1143
+ color: t.value.style.chart.color
1144
+ }
1145
+ }
1146
+ }, {
1147
+ content: $(() => [
1148
+ Z(tt, {
1149
+ colNames: j.value.colNames,
1150
+ head: j.value.head,
1151
+ body: j.value.body,
1152
+ config: j.value.config,
1153
+ title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
1154
+ onClose: u[15] || (u[15] = (a) => L.value.showTable = !1)
1155
+ }, {
1156
+ th: $(({ th: a }) => [
1157
+ Ie(m(a), 1)
1158
+ ]),
1159
+ td: $(({ td: a }) => [
1160
+ v("div", {
1161
+ innerHTML: a.name || a
1162
+ }, null, 8, bl)
1163
+ ]),
1164
+ _: 1
1165
+ }, 8, ["colNames", "head", "body", "config", "title"])
1166
+ ]),
1167
+ _: 1
1168
+ }, 8, ["config"])) : c("", !0)
1169
+ ], 14, pt));
1170
+ }
1171
+ }, _l = /* @__PURE__ */ Ee(fl, [["__scopeId", "data-v-a556d197"]]);
1172
+ export {
1173
+ _l as default
1174
+ };