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.
- package/dist/index-DZlxUin4.js +57288 -0
- package/dist/{index.es-Dc9Fd4o6.js → index.es-Cgqo-FBk.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/vue-data-ui.js +61 -455
- package/package.json +1 -1
- package/dist/data-table-d-VcuH-r.js +0 -1488
- package/dist/legend-DJCYLsl_.js +0 -61
- package/dist/themes-lgjsYHsH.js +0 -4967
- package/dist/title-BF-9Qcni.js +0 -56
- package/dist/tooltip-D85WEOKi.js +0 -94
- package/dist/user-options-DZgCz8UA.js +0 -415
- package/dist/vue-ui-3d-bar-DW7kGJSz.js +0 -20360
- package/dist/vue-ui-age-pyramid-4hcuKpFY.js +0 -781
- package/dist/vue-ui-annotator-C83FVvl8.js +0 -2175
- package/dist/vue-ui-candlestick-diclGj95.js +0 -807
- package/dist/vue-ui-chestnut-ACetHLdG.js +0 -1049
- package/dist/vue-ui-cursor-Rx7UNaYT.js +0 -229
- package/dist/vue-ui-dashboard-B3PlN0ks.js +0 -231
- package/dist/vue-ui-digits-CxMXID42.js +0 -154
- package/dist/vue-ui-donut-DMiwVXNd.js +0 -1534
- package/dist/vue-ui-dumbbell-B_X1T8TR.js +0 -621
- package/dist/vue-ui-flow-B72wzQ6V.js +0 -451
- package/dist/vue-ui-galaxy-DXX5yivT.js +0 -482
- package/dist/vue-ui-gauge-Cs9PDurH.js +0 -466
- package/dist/vue-ui-heatmap-PcoNSLdN.js +0 -581
- package/dist/vue-ui-kpi-DchEmPtB.js +0 -55
- package/dist/vue-ui-mini-loader-DltJLkqy.js +0 -131
- package/dist/vue-ui-molecule-CWvukBzs.js +0 -746
- package/dist/vue-ui-mood-radar-DEfdtIi8.js +0 -544
- package/dist/vue-ui-nested-donuts-9URpqgXE.js +0 -768
- package/dist/vue-ui-onion-C0eowUT6.js +0 -551
- package/dist/vue-ui-parallel-coordinate-plot-Bc_pAaPJ.js +0 -647
- package/dist/vue-ui-quadrant-_ddVAm9V.js +0 -1174
- package/dist/vue-ui-quick-chart-Cio0hDYO.js +0 -1310
- package/dist/vue-ui-radar-Dyg38i33.js +0 -853
- package/dist/vue-ui-rating-CE1Lmwd2.js +0 -271
- package/dist/vue-ui-relation-circle-BMlB3k3d.js +0 -303
- package/dist/vue-ui-rings-BuXeijvb.js +0 -507
- package/dist/vue-ui-scatter-B1hZfOua.js +0 -870
- package/dist/vue-ui-screenshot-0QXgxzGs.js +0 -160
- package/dist/vue-ui-smiley-B7kR7exr.js +0 -763
- package/dist/vue-ui-spark-trend-BmL2KiYL.js +0 -245
- package/dist/vue-ui-sparkgauge-BMzFv14L.js +0 -158
- package/dist/vue-ui-sparkhistogram-DWpOXqHm.js +0 -243
- package/dist/vue-ui-sparkstackbar-DB9VQXlc.js +0 -244
- package/dist/vue-ui-strip-plot-DyN6P0JO.js +0 -614
- package/dist/vue-ui-table-DM3zL89q.js +0 -2180
- package/dist/vue-ui-table-heatmap-gWx0Nslu.js +0 -237
- package/dist/vue-ui-thermometer-Bcqv5kd_.js +0 -384
- package/dist/vue-ui-timer-BIFxjujK.js +0 -451
- package/dist/vue-ui-tiremarks-zBwHpED_.js +0 -248
- package/dist/vue-ui-treemap-BaplVc_z.js +0 -719
- package/dist/vue-ui-vertical-bar-CdK6ZJPM.js +0 -734
- package/dist/vue-ui-waffle-COOzH7M3.js +0 -635
- package/dist/vue-ui-wheel-BEpuVTBk.js +0 -226
- package/dist/vue-ui-word-cloud-DNqxAAiX.js +0 -344
- package/dist/vue-ui-xy-_mHq-czW.js +0 -2058
- package/dist/vue-ui-xy-canvas-DqX8Gee5.js +0 -1003
|
@@ -1,621 +0,0 @@
|
|
|
1
|
-
import { computed as m, ref as f, onMounted as Z, onBeforeUnmount as fe, openBlock as o, createElementBlock as r, normalizeClass as J, normalizeStyle as F, createVNode as K, createCommentVNode as g, createBlock as I, unref as y, createSlots as ge, withCtx as _, renderSlot as $, normalizeProps as me, guardReactiveProps as pe, Fragment as C, renderList as w, createElementVNode as n, toDisplayString as L, createTextVNode as Q, nextTick as _e } from "vue";
|
|
2
|
-
import { _ as xe, e as ee, i as ke, j as te, k as Ce, A as we, n as z, X as le, l as ae, q as se, D as $e, v as Le, w as ze } from "./data-table-d-VcuH-r.js";
|
|
3
|
-
import { t as Xe, u as Ae } from "./vue-ui-age-pyramid-4hcuKpFY.js";
|
|
4
|
-
import { t as Se } from "./themes-lgjsYHsH.js";
|
|
5
|
-
import { u as oe, _ as Ne } from "./title-BF-9Qcni.js";
|
|
6
|
-
import { U as Te } from "./user-options-DZgCz8UA.js";
|
|
7
|
-
import { u as Pe, a as Ge, S as Me, A as De } from "./vue-ui-3d-bar-DW7kGJSz.js";
|
|
8
|
-
import { L as Fe } from "./legend-DJCYLsl_.js";
|
|
9
|
-
const Ie = ["id"], Oe = ["xmlns", "viewBox"], Ve = { key: 0 }, Ee = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], We = { key: 1 }, He = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Re = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Be = { key: 2 }, Ue = ["x", "y", "font-size", "fill", "font-weight"], je = ["x", "y", "font-size", "fill"], qe = { key: 3 }, Ye = ["x", "y", "font-size", "fill", "font-weight"], Ze = ["id"], Je = ["stop-color"], Ke = ["stop-color"], Qe = ["stop-color"], et = ["id"], tt = ["stop-color"], lt = ["stop-color"], at = ["stop-color"], st = ["id"], ot = ["stop-color"], rt = ["stop-color"], nt = ["id"], ut = ["stop-color"], it = ["stop-color"], ct = { key: 0 }, dt = ["d", "fill"], vt = { key: 1 }, ht = ["x", "y", "height", "width", "fill"], yt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], bt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ft = { key: 2 }, gt = ["x", "y", "fill", "font-size"], mt = { key: 3 }, pt = ["x", "y", "fill", "font-size"], _t = ["xmlns", "height", "width"], xt = ["fill"], kt = ["innerHTML"], Ct = {
|
|
10
|
-
__name: "vue-ui-dumbbell",
|
|
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(re, { expose: ne, emit: wt }) {
|
|
27
|
-
const p = re, { vue_ui_dumbbell: ue } = Pe(), X = m({
|
|
28
|
-
get() {
|
|
29
|
-
return !!p.dataset && p.dataset.length;
|
|
30
|
-
},
|
|
31
|
-
set(l) {
|
|
32
|
-
return l;
|
|
33
|
-
}
|
|
34
|
-
}), d = f(ee()), E = f(0), S = f(null), W = f(null), H = f(null), e = m(() => {
|
|
35
|
-
const l = oe({
|
|
36
|
-
userConfig: p.config,
|
|
37
|
-
defaultConfig: ue
|
|
38
|
-
});
|
|
39
|
-
return l.theme ? {
|
|
40
|
-
...oe({
|
|
41
|
-
userConfig: Se.vue_ui_dumbbell[l.theme] || p.config,
|
|
42
|
-
defaultConfig: l
|
|
43
|
-
})
|
|
44
|
-
} : l;
|
|
45
|
-
}), N = f(null);
|
|
46
|
-
Z(() => {
|
|
47
|
-
if (ke(p.dataset) ? te({
|
|
48
|
-
componentName: "VueUiDumbbell",
|
|
49
|
-
type: "dataset"
|
|
50
|
-
}) : p.dataset.forEach((l, u) => {
|
|
51
|
-
Ce({
|
|
52
|
-
datasetObject: l,
|
|
53
|
-
requiredAttributes: ["name", "start", "end"]
|
|
54
|
-
}).forEach((t) => {
|
|
55
|
-
X.value = !1, te({
|
|
56
|
-
componentName: "VueUiDumbbell",
|
|
57
|
-
type: "datasetSerieAttribute",
|
|
58
|
-
property: t,
|
|
59
|
-
index: u
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
}), e.value.responsive) {
|
|
63
|
-
const l = Xe(() => {
|
|
64
|
-
const { width: u, height: t } = Ae({
|
|
65
|
-
chart: S.value,
|
|
66
|
-
title: e.value.style.chart.title.text ? W.value : null,
|
|
67
|
-
legend: e.value.style.chart.legend.show ? H.value : null
|
|
68
|
-
});
|
|
69
|
-
P.value = u, v.value = t / p.dataset.length, h.value = G();
|
|
70
|
-
});
|
|
71
|
-
N.value = new ResizeObserver(l), N.value.observe(S.value.parentNode);
|
|
72
|
-
}
|
|
73
|
-
}), fe(() => {
|
|
74
|
-
N.value && N.value.disconnect();
|
|
75
|
-
});
|
|
76
|
-
const { isPrinting: ie, isImaging: ce, generatePdf: R, generateImage: B } = Ge({
|
|
77
|
-
elementId: `dumbbell_${d.value}`,
|
|
78
|
-
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell"
|
|
79
|
-
}), T = f({
|
|
80
|
-
showTable: e.value.table.show
|
|
81
|
-
}), x = m(() => p.dataset.map((l, u) => ({
|
|
82
|
-
...l,
|
|
83
|
-
id: ee()
|
|
84
|
-
}))), O = m(() => ({
|
|
85
|
-
max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
|
|
86
|
-
min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
|
|
87
|
-
})), i = m(() => we(O.value.min < 0 ? O.value.min : 0, O.value.max, e.value.style.chart.grid.scaleSteps)), v = f(e.value.style.chart.rowHeight), P = f(e.value.style.chart.width), a = m(() => {
|
|
88
|
-
const l = v.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + P.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * p.dataset.length, s = i.value.ticks.length * (P.value / i.value.ticks.length);
|
|
89
|
-
return {
|
|
90
|
-
left: e.value.style.chart.padding.left,
|
|
91
|
-
right: u - e.value.style.chart.padding.right,
|
|
92
|
-
top: e.value.style.chart.padding.top,
|
|
93
|
-
bottom: t - e.value.style.chart.padding.bottom,
|
|
94
|
-
width: P.value,
|
|
95
|
-
height: l * p.dataset.length,
|
|
96
|
-
rowHeight: l,
|
|
97
|
-
absoluteHeight: t,
|
|
98
|
-
absoluteWidth: u,
|
|
99
|
-
widthPlotReference: s
|
|
100
|
-
};
|
|
101
|
-
});
|
|
102
|
-
function G() {
|
|
103
|
-
return x.value.map((l, u) => {
|
|
104
|
-
const t = a.value.left + (l.start + Math.abs(i.value.min)) / (i.value.max + Math.abs(i.value.min)) * a.value.widthPlotReference, s = a.value.left + (l.end + Math.abs(i.value.min)) / (i.value.max + Math.abs(i.value.min)) * a.value.widthPlotReference, c = t + (s - t) / 2;
|
|
105
|
-
return {
|
|
106
|
-
...l,
|
|
107
|
-
startX: t,
|
|
108
|
-
endX: s,
|
|
109
|
-
centerX: c,
|
|
110
|
-
y: a.value.top + u * v.value + v.value / 2,
|
|
111
|
-
endVal: l.start
|
|
112
|
-
};
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
const h = f([]), U = f(null), de = m(() => x.value.map((l) => l.end).reduce((l, u) => l + u, 0));
|
|
116
|
-
Z(() => {
|
|
117
|
-
h.value = G();
|
|
118
|
-
let l = h.value.map((t) => t.start).reduce((t, s) => t + s, 0);
|
|
119
|
-
function u() {
|
|
120
|
-
const t = x.value.map((s) => s.end - s.start);
|
|
121
|
-
l >= de.value ? (cancelAnimationFrame(U.value), h.value = G()) : (h.value = h.value.map((s, c) => {
|
|
122
|
-
s.endVal += t[c] * (e.value.animationSpeed / 100);
|
|
123
|
-
const b = a.value.left + (s.start + Math.abs(i.value.min)) / (i.value.max + Math.abs(i.value.min)) * a.value.widthPlotReference, D = a.value.left + (s.endVal + Math.abs(i.value.min)) / (i.value.max + Math.abs(i.value.min)) * a.value.widthPlotReference, V = b + (D - b) / 2;
|
|
124
|
-
return {
|
|
125
|
-
...s,
|
|
126
|
-
startX: b,
|
|
127
|
-
endX: D,
|
|
128
|
-
centerX: V,
|
|
129
|
-
y: a.value.top + c * v.value + v.value / 2,
|
|
130
|
-
endVal: s.endVal
|
|
131
|
-
};
|
|
132
|
-
}), l = h.value.map((s) => s.endVal).reduce((s, c) => s + c, 0), U.value = requestAnimationFrame(u));
|
|
133
|
-
}
|
|
134
|
-
e.value.useAnimation ? u() : h.value = G();
|
|
135
|
-
});
|
|
136
|
-
const j = m(() => [
|
|
137
|
-
{ name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${d.value})` : e.value.style.chart.plots.startColor },
|
|
138
|
-
{ name: e.value.style.chart.legend.labelEnd, color: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${d.value})` : e.value.style.chart.plots.endColor }
|
|
139
|
-
]), ve = m(() => ({
|
|
140
|
-
cy: "donut-div-legend",
|
|
141
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
142
|
-
color: e.value.style.chart.legend.color,
|
|
143
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
144
|
-
paddingBottom: 12,
|
|
145
|
-
paddingTop: 12,
|
|
146
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
147
|
-
})), k = m(() => {
|
|
148
|
-
const l = h.value.map((t) => ({
|
|
149
|
-
name: t.name
|
|
150
|
-
})), u = h.value.map((t) => ({
|
|
151
|
-
start: t.start,
|
|
152
|
-
end: t.end
|
|
153
|
-
}));
|
|
154
|
-
return { head: l, body: u };
|
|
155
|
-
}), M = m(() => {
|
|
156
|
-
const l = [
|
|
157
|
-
e.value.table.columnNames.series,
|
|
158
|
-
e.value.table.columnNames.start,
|
|
159
|
-
e.value.table.columnNames.end,
|
|
160
|
-
e.value.table.columnNames.progression
|
|
161
|
-
], u = k.value.head.map((c, b) => {
|
|
162
|
-
const D = z({
|
|
163
|
-
p: e.value.style.chart.labels.prefix,
|
|
164
|
-
v: k.value.body[b].start,
|
|
165
|
-
s: e.value.style.chart.labels.suffix,
|
|
166
|
-
r: e.value.table.td.roundingValue
|
|
167
|
-
}), V = z({
|
|
168
|
-
p: e.value.style.chart.labels.prefix,
|
|
169
|
-
v: k.value.body[b].end,
|
|
170
|
-
s: e.value.style.chart.labels.suffix,
|
|
171
|
-
r: e.value.table.td.roundingValue
|
|
172
|
-
}), be = z({
|
|
173
|
-
v: 100 * (k.value.body[b].end / k.value.body[b].start - 1),
|
|
174
|
-
s: "%",
|
|
175
|
-
r: e.value.table.td.roundingPercentage
|
|
176
|
-
});
|
|
177
|
-
return [
|
|
178
|
-
{ name: c.name },
|
|
179
|
-
D,
|
|
180
|
-
V,
|
|
181
|
-
be
|
|
182
|
-
];
|
|
183
|
-
}), t = {
|
|
184
|
-
th: {
|
|
185
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
186
|
-
color: e.value.table.th.color,
|
|
187
|
-
outline: e.value.table.th.outline
|
|
188
|
-
},
|
|
189
|
-
td: {
|
|
190
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
191
|
-
color: e.value.table.td.color,
|
|
192
|
-
outline: e.value.table.td.outline
|
|
193
|
-
},
|
|
194
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
195
|
-
};
|
|
196
|
-
return {
|
|
197
|
-
colNames: [
|
|
198
|
-
e.value.table.columnNames.series,
|
|
199
|
-
e.value.table.columnNames.start,
|
|
200
|
-
e.value.table.columnNames.end,
|
|
201
|
-
e.value.table.columnNames.progression
|
|
202
|
-
],
|
|
203
|
-
head: l,
|
|
204
|
-
body: u,
|
|
205
|
-
config: t
|
|
206
|
-
};
|
|
207
|
-
});
|
|
208
|
-
function q() {
|
|
209
|
-
_e(() => {
|
|
210
|
-
const l = k.value.head.map((s, c) => [[
|
|
211
|
-
s.name
|
|
212
|
-
], [k.value.body[c].start], [k.value.body[c].end]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(l), t = Le(u);
|
|
213
|
-
ze({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
const A = f(!1);
|
|
217
|
-
function he(l) {
|
|
218
|
-
A.value = l, E.value += 1;
|
|
219
|
-
}
|
|
220
|
-
function ye() {
|
|
221
|
-
return h.value;
|
|
222
|
-
}
|
|
223
|
-
function Y() {
|
|
224
|
-
T.value.showTable = !T.value.showTable;
|
|
225
|
-
}
|
|
226
|
-
return ne({
|
|
227
|
-
getData: ye,
|
|
228
|
-
generatePdf: R,
|
|
229
|
-
generateCsv: q,
|
|
230
|
-
generateImage: B,
|
|
231
|
-
toggleTable: Y
|
|
232
|
-
}), (l, u) => (o(), r("div", {
|
|
233
|
-
ref_key: "dumbbellChart",
|
|
234
|
-
ref: S,
|
|
235
|
-
class: J(`vue-ui-dumbbell ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
236
|
-
style: F(`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%" : ""}`),
|
|
237
|
-
id: `dumbbell_${d.value}`
|
|
238
|
-
}, [
|
|
239
|
-
e.value.style.chart.title.text ? (o(), r("div", {
|
|
240
|
-
key: 0,
|
|
241
|
-
ref_key: "chartTitle",
|
|
242
|
-
ref: W,
|
|
243
|
-
style: F(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
244
|
-
}, [
|
|
245
|
-
K(Ne, {
|
|
246
|
-
config: {
|
|
247
|
-
title: {
|
|
248
|
-
cy: "donut-div-title",
|
|
249
|
-
...e.value.style.chart.title
|
|
250
|
-
},
|
|
251
|
-
subtitle: {
|
|
252
|
-
cy: "donut-div-subtitle",
|
|
253
|
-
...e.value.style.chart.title.subtitle
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}, null, 8, ["config"])
|
|
257
|
-
], 4)) : g("", !0),
|
|
258
|
-
e.value.userOptions.show && X.value ? (o(), I(Te, {
|
|
259
|
-
ref: "details",
|
|
260
|
-
key: `user_option_${E.value}`,
|
|
261
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
262
|
-
color: e.value.style.chart.color,
|
|
263
|
-
isPrinting: y(ie),
|
|
264
|
-
isImaging: y(ce),
|
|
265
|
-
uid: d.value,
|
|
266
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
267
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
268
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
269
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
270
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
271
|
-
isFullscreen: A.value,
|
|
272
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
273
|
-
chartElement: S.value,
|
|
274
|
-
onToggleFullscreen: he,
|
|
275
|
-
onGeneratePdf: y(R),
|
|
276
|
-
onGenerateCsv: q,
|
|
277
|
-
onGenerateImage: y(B),
|
|
278
|
-
onToggleTable: Y
|
|
279
|
-
}, ge({ _: 2 }, [
|
|
280
|
-
l.$slots.optionPdf ? {
|
|
281
|
-
name: "optionPdf",
|
|
282
|
-
fn: _(() => [
|
|
283
|
-
$(l.$slots, "optionPdf", {}, void 0, !0)
|
|
284
|
-
]),
|
|
285
|
-
key: "0"
|
|
286
|
-
} : void 0,
|
|
287
|
-
l.$slots.optionCsv ? {
|
|
288
|
-
name: "optionCsv",
|
|
289
|
-
fn: _(() => [
|
|
290
|
-
$(l.$slots, "optionCsv", {}, void 0, !0)
|
|
291
|
-
]),
|
|
292
|
-
key: "1"
|
|
293
|
-
} : void 0,
|
|
294
|
-
l.$slots.optionImg ? {
|
|
295
|
-
name: "optionImg",
|
|
296
|
-
fn: _(() => [
|
|
297
|
-
$(l.$slots, "optionImg", {}, void 0, !0)
|
|
298
|
-
]),
|
|
299
|
-
key: "2"
|
|
300
|
-
} : void 0,
|
|
301
|
-
l.$slots.optionTable ? {
|
|
302
|
-
name: "optionTable",
|
|
303
|
-
fn: _(() => [
|
|
304
|
-
$(l.$slots, "optionTable", {}, void 0, !0)
|
|
305
|
-
]),
|
|
306
|
-
key: "3"
|
|
307
|
-
} : void 0,
|
|
308
|
-
l.$slots.optionFullscreen ? {
|
|
309
|
-
name: "optionFullscreen",
|
|
310
|
-
fn: _(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
311
|
-
$(l.$slots, "optionFullscreen", me(pe({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
312
|
-
]),
|
|
313
|
-
key: "4"
|
|
314
|
-
} : void 0
|
|
315
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
|
|
316
|
-
X.value ? (o(), r("svg", {
|
|
317
|
-
key: 2,
|
|
318
|
-
xmlns: y(le),
|
|
319
|
-
class: J({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
320
|
-
viewBox: `0 0 ${a.value.absoluteWidth <= 0 ? 10 : a.value.absoluteWidth} ${a.value.absoluteHeight <= 0 ? 10 : a.value.absoluteHeight}`,
|
|
321
|
-
style: F(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
322
|
-
}, [
|
|
323
|
-
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", Ve, [
|
|
324
|
-
(o(!0), r(C, null, w(i.value.ticks, (t, s) => (o(), r("line", {
|
|
325
|
-
x1: a.value.left + s * a.value.width / (i.value.ticks.length - 1),
|
|
326
|
-
x2: a.value.left + s * a.value.width / (i.value.ticks.length - 1),
|
|
327
|
-
y1: a.value.top,
|
|
328
|
-
y2: a.value.bottom,
|
|
329
|
-
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
330
|
-
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
331
|
-
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
332
|
-
}, null, 8, Ee))), 256))
|
|
333
|
-
])) : g("", !0),
|
|
334
|
-
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", We, [
|
|
335
|
-
(o(!0), r(C, null, w(x.value, (t, s) => (o(), r("line", {
|
|
336
|
-
x1: a.value.left,
|
|
337
|
-
x2: a.value.right,
|
|
338
|
-
y1: a.value.top + s * v.value,
|
|
339
|
-
y2: a.value.top + s * v.value,
|
|
340
|
-
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
341
|
-
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
342
|
-
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
343
|
-
}, null, 8, He))), 256)),
|
|
344
|
-
n("line", {
|
|
345
|
-
x1: a.value.left,
|
|
346
|
-
x2: a.value.right,
|
|
347
|
-
y1: a.value.bottom,
|
|
348
|
-
y2: a.value.bottom,
|
|
349
|
-
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
350
|
-
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
351
|
-
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
352
|
-
}, null, 8, Re)
|
|
353
|
-
])) : g("", !0),
|
|
354
|
-
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", Be, [
|
|
355
|
-
(o(!0), r(C, null, w(x.value, (t, s) => (o(), r("text", {
|
|
356
|
-
x: a.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
357
|
-
y: a.value.top + s * v.value + (e.value.style.chart.labels.yAxisLabels.showProgression ? v.value / 3 : v.value / 2) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
358
|
-
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
359
|
-
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
360
|
-
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
361
|
-
"text-anchor": "end"
|
|
362
|
-
}, L(t.name), 9, Ue))), 256)),
|
|
363
|
-
e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r(C, { key: 0 }, w(x.value, (t, s) => (o(), r("text", {
|
|
364
|
-
x: a.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
365
|
-
y: a.value.top + s * v.value + v.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
366
|
-
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
367
|
-
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
368
|
-
"text-anchor": "end"
|
|
369
|
-
}, L(y(z)({
|
|
370
|
-
v: 100 * (t.end / t.start - 1),
|
|
371
|
-
s: "%",
|
|
372
|
-
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
373
|
-
})), 9, je))), 256)) : g("", !0)
|
|
374
|
-
])) : g("", !0),
|
|
375
|
-
e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", qe, [
|
|
376
|
-
(o(!0), r(C, null, w(i.value.ticks, (t, s) => (o(), r("text", {
|
|
377
|
-
x: a.value.left + s * (a.value.width / (i.value.ticks.length - 1)),
|
|
378
|
-
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
379
|
-
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
380
|
-
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
381
|
-
"font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
|
|
382
|
-
"text-anchor": "middle"
|
|
383
|
-
}, L(y(z)({
|
|
384
|
-
p: e.value.style.chart.labels.prefix,
|
|
385
|
-
v: t,
|
|
386
|
-
s: e.value.style.chart.labels.suffix,
|
|
387
|
-
r: e.value.style.chart.labels.xAxisLabels.rounding
|
|
388
|
-
})), 9, Ye))), 256))
|
|
389
|
-
])) : g("", !0),
|
|
390
|
-
n("defs", null, [
|
|
391
|
-
n("radialGradient", {
|
|
392
|
-
id: `start_grad_${d.value}`,
|
|
393
|
-
fy: "30%"
|
|
394
|
-
}, [
|
|
395
|
-
n("stop", {
|
|
396
|
-
offset: "10%",
|
|
397
|
-
"stop-color": y(ae)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
398
|
-
}, null, 8, Je),
|
|
399
|
-
n("stop", {
|
|
400
|
-
offset: "90%",
|
|
401
|
-
"stop-color": y(se)(e.value.style.chart.plots.startColor, 0.1)
|
|
402
|
-
}, null, 8, Ke),
|
|
403
|
-
n("stop", {
|
|
404
|
-
offset: "100%",
|
|
405
|
-
"stop-color": e.value.style.chart.plots.startColor
|
|
406
|
-
}, null, 8, Qe)
|
|
407
|
-
], 8, Ze),
|
|
408
|
-
n("radialGradient", {
|
|
409
|
-
id: `end_grad_${d.value}`,
|
|
410
|
-
fy: "30%"
|
|
411
|
-
}, [
|
|
412
|
-
n("stop", {
|
|
413
|
-
offset: "10%",
|
|
414
|
-
"stop-color": y(ae)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
415
|
-
}, null, 8, tt),
|
|
416
|
-
n("stop", {
|
|
417
|
-
offset: "90%",
|
|
418
|
-
"stop-color": y(se)(e.value.style.chart.plots.endColor, 0.1)
|
|
419
|
-
}, null, 8, lt),
|
|
420
|
-
n("stop", {
|
|
421
|
-
offset: "100%",
|
|
422
|
-
"stop-color": e.value.style.chart.plots.endColor
|
|
423
|
-
}, null, 8, at)
|
|
424
|
-
], 8, et)
|
|
425
|
-
]),
|
|
426
|
-
(o(!0), r(C, null, w(h.value, (t, s) => (o(), r("g", null, [
|
|
427
|
-
n("defs", null, [
|
|
428
|
-
n("linearGradient", {
|
|
429
|
-
id: `grad_positive_${d.value}`,
|
|
430
|
-
x1: "0%",
|
|
431
|
-
x2: "100%",
|
|
432
|
-
y1: "0%",
|
|
433
|
-
y2: "0%"
|
|
434
|
-
}, [
|
|
435
|
-
n("stop", {
|
|
436
|
-
offset: "0%",
|
|
437
|
-
"stop-color": e.value.style.chart.plots.startColor
|
|
438
|
-
}, null, 8, ot),
|
|
439
|
-
n("stop", {
|
|
440
|
-
offset: "100%",
|
|
441
|
-
"stop-color": e.value.style.chart.plots.endColor
|
|
442
|
-
}, null, 8, rt)
|
|
443
|
-
], 8, st),
|
|
444
|
-
n("linearGradient", {
|
|
445
|
-
id: `grad_negative_${d.value}`,
|
|
446
|
-
x1: "0%",
|
|
447
|
-
x2: "100%",
|
|
448
|
-
y1: "0%",
|
|
449
|
-
y2: "0%"
|
|
450
|
-
}, [
|
|
451
|
-
n("stop", {
|
|
452
|
-
offset: "0%",
|
|
453
|
-
"stop-color": e.value.style.chart.plots.endColor
|
|
454
|
-
}, null, 8, ut),
|
|
455
|
-
n("stop", {
|
|
456
|
-
offset: "100%",
|
|
457
|
-
"stop-color": e.value.style.chart.plots.startColor
|
|
458
|
-
}, null, 8, it)
|
|
459
|
-
], 8, nt)
|
|
460
|
-
]),
|
|
461
|
-
e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", ct, [
|
|
462
|
-
n("path", {
|
|
463
|
-
d: `M
|
|
464
|
-
${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
|
|
465
|
-
C ${t.centerX},${t.y} ${t.centerX},${t.y}
|
|
466
|
-
${t.endX},${t.y + e.value.style.chart.plots.radius / 2}
|
|
467
|
-
L ${t.endX},${t.y - e.value.style.chart.plots.radius / 2}
|
|
468
|
-
C ${t.centerX},${t.y} ${t.centerX},${t.y}
|
|
469
|
-
${t.startX},${t.y - e.value.style.chart.plots.radius / 2}
|
|
470
|
-
Z
|
|
471
|
-
`,
|
|
472
|
-
fill: t.endX > t.startX ? `url(#grad_positive_${d.value})` : `url(#grad_negative_${d.value})`
|
|
473
|
-
}, null, 8, dt)
|
|
474
|
-
])) : (o(), r("g", vt, [
|
|
475
|
-
n("rect", {
|
|
476
|
-
x: t.endX > t.startX ? t.startX : t.endX,
|
|
477
|
-
y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
|
|
478
|
-
height: e.value.style.chart.plots.link.strokeWidth,
|
|
479
|
-
width: Math.abs(t.endX - t.startX),
|
|
480
|
-
fill: t.endX > t.startX ? `url(#grad_positive_${d.value})` : `url(#grad_negative_${d.value})`
|
|
481
|
-
}, null, 8, ht)
|
|
482
|
-
])),
|
|
483
|
-
n("circle", {
|
|
484
|
-
cx: t.startX,
|
|
485
|
-
cy: t.y,
|
|
486
|
-
r: e.value.style.chart.plots.radius,
|
|
487
|
-
fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${d.value})` : e.value.style.chart.plots.startColor,
|
|
488
|
-
stroke: e.value.style.chart.plots.stroke,
|
|
489
|
-
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
490
|
-
}, null, 8, yt),
|
|
491
|
-
n("circle", {
|
|
492
|
-
cx: t.endX,
|
|
493
|
-
cy: t.y,
|
|
494
|
-
r: e.value.style.chart.plots.radius,
|
|
495
|
-
fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${d.value})` : e.value.style.chart.plots.endColor,
|
|
496
|
-
stroke: e.value.style.chart.plots.stroke,
|
|
497
|
-
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
498
|
-
}, null, 8, bt),
|
|
499
|
-
e.value.style.chart.labels.startLabels.show ? (o(), r("g", ft, [
|
|
500
|
-
(o(!0), r(C, null, w(h.value, (c, b) => (o(), r("text", {
|
|
501
|
-
x: c.startX,
|
|
502
|
-
y: a.value.top + (b + 1) * v.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
|
|
503
|
-
fill: e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
|
|
504
|
-
"font-size": e.value.style.chart.labels.startLabels.fontSize,
|
|
505
|
-
"text-anchor": "middle"
|
|
506
|
-
}, L(y(z)({
|
|
507
|
-
p: e.value.style.chart.labels.prefix,
|
|
508
|
-
v: c.start,
|
|
509
|
-
s: e.value.style.chart.labels.suffix,
|
|
510
|
-
r: e.value.style.chart.labels.startLabels.rounding
|
|
511
|
-
})), 9, gt))), 256))
|
|
512
|
-
])) : g("", !0),
|
|
513
|
-
e.value.style.chart.labels.endLabels.show ? (o(), r("g", mt, [
|
|
514
|
-
(o(!0), r(C, null, w(h.value, (c, b) => (o(), r("text", {
|
|
515
|
-
x: c.endX,
|
|
516
|
-
y: a.value.top + b * v.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
|
|
517
|
-
fill: e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
|
|
518
|
-
"font-size": e.value.style.chart.labels.endLabels.fontSize,
|
|
519
|
-
"text-anchor": "middle"
|
|
520
|
-
}, L(y(z)({
|
|
521
|
-
p: e.value.style.chart.labels.prefix,
|
|
522
|
-
v: c.end,
|
|
523
|
-
s: e.value.style.chart.labels.suffix,
|
|
524
|
-
r: e.value.style.chart.labels.endLabels.rounding
|
|
525
|
-
})), 9, pt))), 256))
|
|
526
|
-
])) : g("", !0)
|
|
527
|
-
]))), 256)),
|
|
528
|
-
$(l.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
529
|
-
], 14, Oe)) : g("", !0),
|
|
530
|
-
X.value ? g("", !0) : (o(), I(Me, {
|
|
531
|
-
key: 3,
|
|
532
|
-
config: {
|
|
533
|
-
type: "dumbbell",
|
|
534
|
-
style: {
|
|
535
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
536
|
-
dumbbell: {
|
|
537
|
-
color: "#CCCCCC"
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}, null, 8, ["config"])),
|
|
542
|
-
n("div", {
|
|
543
|
-
ref_key: "chartLegend",
|
|
544
|
-
ref: H
|
|
545
|
-
}, [
|
|
546
|
-
e.value.style.chart.legend.show && X.value ? (o(), I(Fe, {
|
|
547
|
-
key: 0,
|
|
548
|
-
legendSet: j.value,
|
|
549
|
-
config: ve.value
|
|
550
|
-
}, {
|
|
551
|
-
item: _(({ legend: t }) => [
|
|
552
|
-
n("div", {
|
|
553
|
-
style: F(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
|
|
554
|
-
}, [
|
|
555
|
-
(o(), r("svg", {
|
|
556
|
-
xmlns: y(le),
|
|
557
|
-
viewBox: "0 0 20 20",
|
|
558
|
-
height: e.value.style.chart.legend.fontSize,
|
|
559
|
-
width: e.value.style.chart.legend.fontSize
|
|
560
|
-
}, [
|
|
561
|
-
n("circle", {
|
|
562
|
-
cx: 10,
|
|
563
|
-
cy: 10,
|
|
564
|
-
r: 9,
|
|
565
|
-
fill: t.color
|
|
566
|
-
}, null, 8, xt)
|
|
567
|
-
], 8, _t)),
|
|
568
|
-
Q(" " + L(t.name), 1)
|
|
569
|
-
], 4)
|
|
570
|
-
]),
|
|
571
|
-
_: 1
|
|
572
|
-
}, 8, ["legendSet", "config"])) : $(l.$slots, "legend", {
|
|
573
|
-
key: 1,
|
|
574
|
-
legend: j.value
|
|
575
|
-
}, void 0, !0)
|
|
576
|
-
], 512),
|
|
577
|
-
X.value ? (o(), I(De, {
|
|
578
|
-
key: 4,
|
|
579
|
-
hideDetails: "",
|
|
580
|
-
config: {
|
|
581
|
-
open: T.value.showTable,
|
|
582
|
-
maxHeight: 1e4,
|
|
583
|
-
body: {
|
|
584
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
585
|
-
color: e.value.style.chart.color
|
|
586
|
-
},
|
|
587
|
-
head: {
|
|
588
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
589
|
-
color: e.value.style.chart.color
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
}, {
|
|
593
|
-
content: _(() => [
|
|
594
|
-
K($e, {
|
|
595
|
-
colNames: M.value.colNames,
|
|
596
|
-
head: M.value.head,
|
|
597
|
-
body: M.value.body,
|
|
598
|
-
config: M.value.config,
|
|
599
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
600
|
-
onClose: u[0] || (u[0] = (t) => T.value.showTable = !1)
|
|
601
|
-
}, {
|
|
602
|
-
th: _(({ th: t }) => [
|
|
603
|
-
n("div", {
|
|
604
|
-
innerHTML: t,
|
|
605
|
-
style: { display: "flex", "align-items": "center" }
|
|
606
|
-
}, null, 8, kt)
|
|
607
|
-
]),
|
|
608
|
-
td: _(({ td: t }) => [
|
|
609
|
-
Q(L(t.name || t), 1)
|
|
610
|
-
]),
|
|
611
|
-
_: 1
|
|
612
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
613
|
-
]),
|
|
614
|
-
_: 1
|
|
615
|
-
}, 8, ["config"])) : g("", !0)
|
|
616
|
-
], 14, Ie));
|
|
617
|
-
}
|
|
618
|
-
}, Pt = /* @__PURE__ */ xe(Ct, [["__scopeId", "data-v-576f289b"]]);
|
|
619
|
-
export {
|
|
620
|
-
Pt as default
|
|
621
|
-
};
|