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