vue-data-ui 3.5.0 → 3.5.2
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/README.md +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-Y7t79Jtq.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-BzH_LEA3.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-CReNavA0.js} +23 -9
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-BRaq4hRp.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-BB4ii8Nt.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-BmFTVF1a.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-8bUepd28.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-CcpaXBNK.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BvT4scFv.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-CMP7UL6z.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-CzOcKsDj.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-S787oASt.js} +375 -355
- package/dist/vue-ui-chord-Dl9Y4mcz.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-CU09BzOV.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-C3yD_TUr.js} +1 -1
- package/dist/vue-ui-dashboard-BfEcVRxQ.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-pRh179Gg.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-B_tEm4dT.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-DiGhMwMO.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-BlF3CLbN.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-BQi5L8mJ.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-CM_6Sare.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-BnZA62Li.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-DAk72bez.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BQzQlUJ8.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-C9MhHWpp.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-BYQh3E8U.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-jcrPjW4C.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-DTM98mRN.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-Bd1OXvl3.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-DuoiTsYn.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-BTswQFjz.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-D-1U2Qgl.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-D-7VFHas.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-CeM23s0z.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-C0RMQzjC.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-BSfxyur3.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-tj97undO.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-C7uV2mIj.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CYMfTlwI.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-C96aj57d.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CtvOXUnx.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-87TORm6s.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-B74geHT3.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-6_Ibziyv.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-BDCocMLI.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-CQ4Zk9-f.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-BlTV9wfn.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-DWESyiqL.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-DK_7X8mL.js} +2 -2
- package/dist/vue-ui-stackbar-BWuw8ff4.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-C1N2n39d.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-CcuoPHgI.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-C9EMEM3Z.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-BAxmZRff.js} +2 -2
- package/dist/vue-ui-thermometer-CDrM-WFq.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BVsUQJz_.js} +3 -3
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-6WLoCHsH.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-B3gfBqD_.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-Bhlqo4xM.js} +219 -199
- package/dist/vue-ui-wheel-CqHw1WuW.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-CKuWZGLv.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-C8KVyDim.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-Cz2qIEfi.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-y4h7gEFp.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as Ee, ref as w, computed as M, toRefs as ya, watch as Te, shallowRef as Rt, onMounted as xa, onBeforeUnmount as Nt, nextTick as ot, watchEffect as ka, createElementBlock as n, openBlock as o, normalizeStyle as
|
|
2
|
-
import { c as wa, t as Aa, b as La, p as
|
|
1
|
+
import { defineAsyncComponent as Ee, ref as w, computed as M, toRefs as ya, watch as Te, shallowRef as Rt, onMounted as xa, onBeforeUnmount as Nt, nextTick as ot, watchEffect as ka, createElementBlock as n, openBlock as o, normalizeStyle as D, normalizeClass as fe, createBlock as Ie, createCommentVNode as m, createElementVNode as $, createVNode as be, unref as s, withCtx as G, renderSlot as R, normalizeProps as Q, guardReactiveProps as K, createSlots as ba, toDisplayString as V, Fragment as x, renderList as T, Teleport as Sa, mergeProps as nt } from "vue";
|
|
2
|
+
import { c as wa, t as Aa, b as La, p as ee, O as We, e as _a, a1 as za, f as $a, o as Ca, h as it, T as Ea, m as Xe, X as Ta, V as Ia, W as ut, Y as Pe, a as re, d as Y, M as Bt, z as Dt, x as se, G as Ge, H as rt } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as Ut, u as Pa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Oa, a as Vt } from "./useNestedProp-
|
|
4
|
+
import { u as Oa, a as Vt } from "./useNestedProp-CReNavA0.js";
|
|
5
5
|
import { u as Fa, B as Ma } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as Ra } from "./usePrinter-DTzqpYKF.js";
|
|
7
7
|
import { u as Na } from "./useSvgExport-DrjCWun4.js";
|
|
@@ -18,23 +18,23 @@ const A = {
|
|
|
18
18
|
DONUT: "DONUT"
|
|
19
19
|
}, Xa = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
20
20
|
function Ga({ dataset: h, barLineSwitch: O = 6, debug: L = !0 }) {
|
|
21
|
-
let
|
|
22
|
-
if ((typeof h == "number" || typeof h == "string") && L && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Ye(h) && (
|
|
21
|
+
let H = null, j = null, de = 0;
|
|
22
|
+
if ((typeof h == "number" || typeof h == "string") && L && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Ye(h) && (ve(h) && (h.length < O ? H = A.BAR : H = A.LINE, j = h, de = h.length), je(h))) {
|
|
23
23
|
if (!Ya(h))
|
|
24
24
|
return L && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
25
|
-
const Ze = Object.keys(h[0]),
|
|
26
|
-
if (!Ze.some((
|
|
25
|
+
const Ze = Object.keys(h[0]), U = Object.values(h[0]);
|
|
26
|
+
if (!Ze.some((N) => Za(N)))
|
|
27
27
|
return L && console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."), !1;
|
|
28
|
-
qt(
|
|
29
|
-
...
|
|
30
|
-
data: Ja(
|
|
31
|
-
}))), h = h.map((
|
|
28
|
+
qt(U, (N) => typeof N == "number") && (H = A.DONUT, j = h), qt(U, (N) => Array.isArray(N) && ve(N)) && (Ht(h) > O ? H = A.LINE : H = A.BAR, de = Ht(h), j = h.map((N) => ({
|
|
29
|
+
...N,
|
|
30
|
+
data: Ja(N, (Oe) => ve(Oe))
|
|
31
|
+
}))), h = h.map((N) => Wt(N)), j = j.map((N) => Wt(N));
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
dataset: h,
|
|
35
|
-
type:
|
|
36
|
-
usableDataset:
|
|
37
|
-
maxSeriesLength:
|
|
35
|
+
type: H,
|
|
36
|
+
usableDataset: j,
|
|
37
|
+
maxSeriesLength: de
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
function Xt(h) {
|
|
@@ -43,7 +43,7 @@ function Xt(h) {
|
|
|
43
43
|
function Ye(h) {
|
|
44
44
|
return Array.isArray(h);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function ve(h) {
|
|
47
47
|
if (!Ye(h) || Xt(h)) return !1;
|
|
48
48
|
const O = h.map((L) => Number(L));
|
|
49
49
|
return ![...new Set(O.flatMap((L) => typeof L == "number" && !isNaN(L)))].includes(!1);
|
|
@@ -52,12 +52,12 @@ function je(h) {
|
|
|
52
52
|
return !Ye(h) || Xt(h) || !![...new Set(h.flatMap((L) => typeof L == "object" && !Array.isArray(L)))].includes(!1) ? !1 : !h.map((L) => Object.keys(L).length > 0).includes(!1);
|
|
53
53
|
}
|
|
54
54
|
function ja(h, O) {
|
|
55
|
-
const L = Object.keys(h).sort(),
|
|
56
|
-
if (L.length !==
|
|
55
|
+
const L = Object.keys(h).sort(), H = Object.keys(O).sort();
|
|
56
|
+
if (L.length !== H.length)
|
|
57
57
|
return !1;
|
|
58
|
-
for (let
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
58
|
+
for (let j = 0; j < L.length; j += 1) {
|
|
59
|
+
const de = L[j], Se = H[j];
|
|
60
|
+
if (de !== Se || typeof h[de] != typeof O[Se])
|
|
61
61
|
return !1;
|
|
62
62
|
}
|
|
63
63
|
return !0;
|
|
@@ -75,12 +75,12 @@ function Za(h) {
|
|
|
75
75
|
}
|
|
76
76
|
function qt(h, O) {
|
|
77
77
|
let L = [];
|
|
78
|
-
for (let
|
|
79
|
-
L.push(O(h[
|
|
78
|
+
for (let H = 0; H < h.length; H += 1)
|
|
79
|
+
L.push(O(h[H]));
|
|
80
80
|
return L.includes(!0);
|
|
81
81
|
}
|
|
82
82
|
function Ht(h) {
|
|
83
|
-
return Math.max(...[...h].flatMap((O) => Object.values(O).filter((L) =>
|
|
83
|
+
return Math.max(...[...h].flatMap((O) => Object.values(O).filter((L) => ve(L)).map((L) => L.length)));
|
|
84
84
|
}
|
|
85
85
|
function Ja(h, O) {
|
|
86
86
|
return Object.values(h).filter((L) => O(L))[0];
|
|
@@ -157,13 +157,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
157
157
|
},
|
|
158
158
|
emits: ["selectDatapoint", "selectLegend"],
|
|
159
159
|
setup(h, { expose: O, emit: L }) {
|
|
160
|
-
const
|
|
161
|
-
...ya(
|
|
160
|
+
const H = Ee(() => import("./BaseIcon-BmMbm4d0.js")), j = Ee(() => import("./PackageVersion-Y7t79Jtq.js")), de = Ee(() => import("./PenAndPaper-SZQIAgkg.js")), Se = Ee(() => import("./Tooltip-oWCO1HKy.js")), st = Ee(() => import("./UserOptions-CGnQt6Fd.js")), { vue_ui_quick_chart: Ze } = Oa(), U = h, N = w(null), Oe = w(null), vt = w(null), dt = w(null), Z = w(wa()), he = w(!1), we = w(null), me = w(""), oe = w(null), ct = w(null), ft = w(null), _ = w([]), ht = w(0), Fe = w(0), mt = w(!1), Ae = w(null), Le = w(null), ne = w(null), Me = w(null), gt = w(null), pt = w(null), Re = w("#FFFFFF"), e = w(et()), Je = M(() => !!e.value.debug), { loading: q, FINAL_DATASET: Gt, manualLoading: yt } = Fa({
|
|
161
|
+
...ya(U),
|
|
162
162
|
FINAL_CONFIG: e,
|
|
163
163
|
prepareConfig: et,
|
|
164
164
|
callback: () => {
|
|
165
165
|
Promise.resolve().then(async () => {
|
|
166
|
-
await ot(), C.value === A.LINE && e.value.lineAnimated && !
|
|
166
|
+
await ot(), C.value === A.LINE && e.value.lineAnimated && !q.value && ua({
|
|
167
167
|
pathDuration: 1e3,
|
|
168
168
|
pointDuration: 1200,
|
|
169
169
|
labelDuration: 1200
|
|
@@ -199,23 +199,23 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
199
199
|
}
|
|
200
200
|
function et() {
|
|
201
201
|
const a = Vt({
|
|
202
|
-
userConfig:
|
|
202
|
+
userConfig: U.config,
|
|
203
203
|
defaultConfig: Ze
|
|
204
204
|
});
|
|
205
205
|
let r = {};
|
|
206
206
|
return a.theme ? r = {
|
|
207
207
|
...Vt({
|
|
208
|
-
userConfig: Ha.vue_ui_quick_chart[a.theme] ||
|
|
208
|
+
userConfig: Ha.vue_ui_quick_chart[a.theme] || U.config,
|
|
209
209
|
defaultConfig: a
|
|
210
210
|
}),
|
|
211
|
-
customPalette: La[a.theme] ||
|
|
212
|
-
} : r = a,
|
|
211
|
+
customPalette: La[a.theme] || ee
|
|
212
|
+
} : r = a, U.config && We(U.config, "zoomStartIndex") ? r.zoomStartIndex = U.config.zoomStartIndex : r.zoomStartIndex = null, U.config && We(U.config, "zoomEndIndex") ? r.zoomEndIndex = U.config.zoomEndIndex : r.zoomEndIndex = null, U.config && !We(U.config, "donutStroke") ? We(U.config, "backgroundColor") ? Re.value = U.config.backgroundColor : Re.value = "#FFFFFF" : Re.value = U.config.donutStroke, r;
|
|
213
213
|
}
|
|
214
|
-
Te(() =>
|
|
215
|
-
|
|
216
|
-
}, { deep: !0 }), Te(() =>
|
|
214
|
+
Te(() => U.config, (a) => {
|
|
215
|
+
q.value || (e.value = et()), S.value.width = e.value.width, S.value.height = e.value.height, Ne.value = !e.value.showUserOptionsOnChartHover, wt(), ye.value.showTooltip = e.value.showTooltip;
|
|
216
|
+
}, { deep: !0 }), Te(() => U.dataset, (a) => {
|
|
217
217
|
k.value = ze.value, y.value.start = 0, y.value.end = k.value.maxSeriesLength, Fe.value += 1;
|
|
218
|
-
}, { deep: !0 }), Te(() =>
|
|
218
|
+
}, { deep: !0 }), Te(() => U.dataset, (a) => {
|
|
219
219
|
Array.isArray(a) && a.length > 0 && (yt.value = !1);
|
|
220
220
|
}, { immediate: !0 });
|
|
221
221
|
const _e = M(() => _a(e.value.customPalette)), pe = L, ze = M(() => {
|
|
@@ -237,7 +237,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
237
237
|
});
|
|
238
238
|
}, { immediate: !0 });
|
|
239
239
|
const { isPrinting: Be, isImaging: De, generatePdf: bt, generateImage: St } = Ra({
|
|
240
|
-
elementId: `${C.value}_${
|
|
240
|
+
elementId: `${C.value}_${Z.value}`,
|
|
241
241
|
fileName: e.value.title || C.value,
|
|
242
242
|
options: e.value.userOptionsPrint
|
|
243
243
|
}), Zt = M(() => e.value.showUserOptions && !e.value.title), S = w({
|
|
@@ -251,15 +251,15 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
251
251
|
showTooltip: e.value.showTooltip
|
|
252
252
|
};
|
|
253
253
|
}, { immediate: !0 });
|
|
254
|
-
const
|
|
254
|
+
const ce = Rt(null), xe = Rt(null);
|
|
255
255
|
xa(async () => {
|
|
256
256
|
mt.value = !0, wt();
|
|
257
257
|
});
|
|
258
258
|
function wt() {
|
|
259
|
-
if (Ca(
|
|
259
|
+
if (Ca(U.dataset) || (yt.value = e.value.loading), e.value.responsive) {
|
|
260
260
|
const a = Ut(() => {
|
|
261
261
|
const { width: r, height: t } = Pa({
|
|
262
|
-
chart:
|
|
262
|
+
chart: N.value,
|
|
263
263
|
title: e.value.title ? Oe.value : null,
|
|
264
264
|
legend: e.value.showLegend ? vt.value : null,
|
|
265
265
|
slicer: [A.BAR, A.LINE].includes(C.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? dt.value : null,
|
|
@@ -270,12 +270,12 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
270
270
|
S.value.width = r, S.value.height = t;
|
|
271
271
|
});
|
|
272
272
|
});
|
|
273
|
-
|
|
273
|
+
ce.value && (xe.value && ce.value.unobserve(xe.value), ce.value.disconnect()), ce.value = new ResizeObserver(a), xe.value = N.value.parentNode, ce.value.observe(xe.value);
|
|
274
274
|
}
|
|
275
275
|
Et();
|
|
276
276
|
}
|
|
277
277
|
Nt(() => {
|
|
278
|
-
|
|
278
|
+
ce.value && (xe.value && ce.value.unobserve(xe.value), ce.value.disconnect());
|
|
279
279
|
});
|
|
280
280
|
const Jt = M(() => {
|
|
281
281
|
switch (C.value) {
|
|
@@ -293,7 +293,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
293
293
|
return [...a].map((r) => r.value).reduce((r, t) => r + t, 0);
|
|
294
294
|
}
|
|
295
295
|
function $e(a) {
|
|
296
|
-
return e.value.blurOnHover && ![null, void 0].includes(
|
|
296
|
+
return e.value.blurOnHover && ![null, void 0].includes(oe.value) && oe.value !== a ? `url(#blur_${Z.value})` : "";
|
|
297
297
|
}
|
|
298
298
|
function Lt(a, r) {
|
|
299
299
|
_.value.includes(a) ? _.value = _.value.filter((t) => t !== a) : _.value.length < r && _.value.push(a);
|
|
@@ -343,9 +343,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
343
343
|
u();
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
const
|
|
346
|
+
const ie = w(null);
|
|
347
347
|
function Kt(a) {
|
|
348
|
-
|
|
348
|
+
ie.value = a;
|
|
349
349
|
}
|
|
350
350
|
const $t = M(() => e.value.donutThicknessRatio < 0.01 ? 0.01 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = M(() => {
|
|
351
351
|
if (C.value !== A.DONUT) return null;
|
|
@@ -356,11 +356,11 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
356
356
|
id: `donut_${z}`
|
|
357
357
|
})).map((f, z) => ({
|
|
358
358
|
...f,
|
|
359
|
-
color: f.COLOR ? it(f.COLOR) : _e.value[z + e.value.paletteStartIndex] ||
|
|
359
|
+
color: f.COLOR ? it(f.COLOR) : _e.value[z + e.value.paletteStartIndex] || ee[z + e.value.paletteStartIndex] || ee[(z + e.value.paletteStartIndex) % ee.length],
|
|
360
360
|
immutableValue: f.value
|
|
361
361
|
}));
|
|
362
362
|
function r(f, z) {
|
|
363
|
-
return
|
|
363
|
+
return Y({
|
|
364
364
|
v: isNaN(f.value / At(z)) ? 0 : f.value / At(z) * 100,
|
|
365
365
|
s: "%",
|
|
366
366
|
r: e.value.dataLabelRoundingPercentage
|
|
@@ -374,7 +374,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
374
374
|
return Math.abs(String(Number(d.toFixed(0))).length - String(Number(z.toFixed(0))).length);
|
|
375
375
|
}
|
|
376
376
|
function u({ datapoint: f, seriesIndex: z }) {
|
|
377
|
-
we.value = { datapoint: f, seriesIndex: z, config: e.value, dataset: a },
|
|
377
|
+
we.value = { datapoint: f, seriesIndex: z, config: e.value, dataset: a }, oe.value = f.id;
|
|
378
378
|
const d = e.value.tooltipCustomFormat;
|
|
379
379
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: z }), Ge(d) && rt(() => d({
|
|
380
380
|
datapoint: f,
|
|
@@ -382,7 +382,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
382
382
|
series: a,
|
|
383
383
|
config: e.value
|
|
384
384
|
})))
|
|
385
|
-
|
|
385
|
+
me.value = d({
|
|
386
386
|
datapoint: f,
|
|
387
387
|
seriesIndex: z,
|
|
388
388
|
series: a,
|
|
@@ -390,22 +390,22 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
390
390
|
});
|
|
391
391
|
else {
|
|
392
392
|
let i = "";
|
|
393
|
-
i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${f.name}</div>`, i += `<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="${f.color}"/></svg>`, i += `<b>${
|
|
393
|
+
i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${f.name}</div>`, i += `<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="${f.color}"/></svg>`, i += `<b>${re(
|
|
394
394
|
e.value.formatter,
|
|
395
395
|
f.value,
|
|
396
|
-
|
|
396
|
+
Y({
|
|
397
397
|
p: e.value.valuePrefix,
|
|
398
398
|
v: f.value,
|
|
399
399
|
s: e.value.valueSuffix,
|
|
400
400
|
r: e.value.dataLabelRoundingValue
|
|
401
401
|
}),
|
|
402
402
|
{ datapoint: f, seriesIndex: z }
|
|
403
|
-
)}</b>`, i += `<span>(${
|
|
403
|
+
)}</b>`, i += `<span>(${Y({ v: f.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, me.value = `<div>${i}</div>`;
|
|
404
404
|
}
|
|
405
|
-
|
|
405
|
+
he.value = !0;
|
|
406
406
|
}
|
|
407
407
|
function p({ datapoint: f, seriesIndex: z }) {
|
|
408
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex: z }),
|
|
408
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex: z }), he.value = !1, oe.value = null, ie.value = null;
|
|
409
409
|
}
|
|
410
410
|
function b({ datapoint: f, seriesIndex: z }) {
|
|
411
411
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: f, seriesIndex: z }), pe("selectDatapoint", f);
|
|
@@ -413,16 +413,16 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
413
413
|
const P = {
|
|
414
414
|
centerX: S.value.width / 2,
|
|
415
415
|
centerY: S.value.height / 2
|
|
416
|
-
}, F = a.filter((f) => !_.value.includes(f.id)).map((f) => f.value || 0).reduce((f, z) => f + z, 0),
|
|
416
|
+
}, F = a.filter((f) => !_.value.includes(f.id)).map((f) => f.value || 0).reduce((f, z) => f + z, 0), ae = a.map((f, z) => ({
|
|
417
417
|
...f,
|
|
418
418
|
proportion: (f.value || 0) / F,
|
|
419
419
|
value: f.value || 0,
|
|
420
420
|
absoluteValue: ze.value.dataset.find((d, i) => `donut_${i}` === f.id).VALUE,
|
|
421
421
|
shape: "circle"
|
|
422
|
-
})),
|
|
422
|
+
})), ue = S.value.width / 2, J = S.value.height / 2, X = S.value.height * e.value.donutRadiusRatio;
|
|
423
423
|
return {
|
|
424
|
-
dataset:
|
|
425
|
-
legend:
|
|
424
|
+
dataset: ae.filter((f) => !_.value.includes(f.id)),
|
|
425
|
+
legend: ae,
|
|
426
426
|
drawingArea: P,
|
|
427
427
|
displayArcPercentage: r,
|
|
428
428
|
isArcBigEnough: t,
|
|
@@ -431,13 +431,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
431
431
|
selectDatapoint: b,
|
|
432
432
|
getSpaces: l,
|
|
433
433
|
total: F,
|
|
434
|
-
cx:
|
|
435
|
-
cy:
|
|
434
|
+
cx: ue,
|
|
435
|
+
cy: J,
|
|
436
436
|
radius: X,
|
|
437
437
|
chart: Ea(
|
|
438
438
|
{ series: a.filter((f) => !_.value.includes(f.id)) },
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
ue,
|
|
440
|
+
J,
|
|
441
441
|
X,
|
|
442
442
|
X,
|
|
443
443
|
1.99999,
|
|
@@ -471,13 +471,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
471
471
|
const aa = M(() => {
|
|
472
472
|
if (!e.value.zoomMinimap.show || C.value === A.DONUT) return [];
|
|
473
473
|
let a = [];
|
|
474
|
-
|
|
474
|
+
ve(k.value.dataset) && (a = k.value.dataset), je(k.value.dataset) && (a = k.value.dataset.map((u, p) => ({
|
|
475
475
|
values: u.VALUE || u.DATA || u.SERIE || u.SERIES || u.VALUES || u.NUM || 0,
|
|
476
476
|
id: C.value === A.LINE ? `line_${p}` : `bar_${p}`
|
|
477
477
|
})).filter((u) => !_.value.includes(u.id)));
|
|
478
|
-
const r =
|
|
478
|
+
const r = ve(a) ? a.length : Math.max(...a.map((u) => u.values.length));
|
|
479
479
|
let t = [];
|
|
480
|
-
if (
|
|
480
|
+
if (ve(a))
|
|
481
481
|
t = a;
|
|
482
482
|
else
|
|
483
483
|
for (let u = 0; u < r; u += 1)
|
|
@@ -496,7 +496,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
496
496
|
tt.value = a;
|
|
497
497
|
}, 100);
|
|
498
498
|
ka((a) => {
|
|
499
|
-
const r =
|
|
499
|
+
const r = ne.value;
|
|
500
500
|
if (!r) return;
|
|
501
501
|
const t = new ResizeObserver((l) => {
|
|
502
502
|
la(l[0].contentRect.height);
|
|
@@ -507,7 +507,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
507
507
|
});
|
|
508
508
|
const Ve = M(() => {
|
|
509
509
|
let a = 0, r = 0;
|
|
510
|
-
return
|
|
510
|
+
return ne.value && (r = tt.value), a + r;
|
|
511
511
|
}), c = M(() => {
|
|
512
512
|
if (C.value !== A.LINE) return null;
|
|
513
513
|
const a = {
|
|
@@ -515,8 +515,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
515
515
|
width: S.value.width
|
|
516
516
|
};
|
|
517
517
|
let r = Tt();
|
|
518
|
-
if (
|
|
519
|
-
const d =
|
|
518
|
+
if (ne.value) {
|
|
519
|
+
const d = ne.value.getBBox().x;
|
|
520
520
|
d < 0 && (r += Math.abs(d));
|
|
521
521
|
}
|
|
522
522
|
const t = {
|
|
@@ -528,13 +528,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
528
528
|
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ve.value)
|
|
529
529
|
};
|
|
530
530
|
let l = [];
|
|
531
|
-
|
|
531
|
+
ve(k.value.dataset) && (l = [
|
|
532
532
|
{
|
|
533
533
|
values: k.value.dataset.slice(y.value.start, y.value.end),
|
|
534
534
|
absoluteValues: k.value.dataset,
|
|
535
535
|
absoluteIndices: k.value.dataset.map((d, i) => i).slice(y.value.start, y.value.end),
|
|
536
536
|
name: e.value.title,
|
|
537
|
-
color: _e.value[e.value.paletteStartIndex] ||
|
|
537
|
+
color: _e.value[e.value.paletteStartIndex] || ee[e.value.paletteStartIndex],
|
|
538
538
|
id: "line_0"
|
|
539
539
|
}
|
|
540
540
|
]), je(k.value.dataset) && (l = k.value.dataset.map((d, i) => ({
|
|
@@ -544,7 +544,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
544
544
|
id: `line_${i}`
|
|
545
545
|
})).map((d, i) => ({
|
|
546
546
|
...d,
|
|
547
|
-
color: d.COLOR ? it(d.COLOR) : _e.value[i + e.value.paletteStartIndex] ||
|
|
547
|
+
color: d.COLOR ? it(d.COLOR) : _e.value[i + e.value.paletteStartIndex] || ee[i + e.value.paletteStartIndex] || ee[(i + e.value.paletteStartIndex) % ee.length],
|
|
548
548
|
values: d.values.slice(y.value.start, y.value.end),
|
|
549
549
|
absoluteValues: d.values,
|
|
550
550
|
absoluteIndices: d.values.map((g, E) => E).slice(y.value.start, y.value.end)
|
|
@@ -553,11 +553,11 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
553
553
|
max: Math.max(...l.filter((d) => !_.value.includes(d.id)).flatMap((d) => d.values)),
|
|
554
554
|
min: Math.min(...l.filter((d) => !_.value.includes(d.id)).flatMap((d) => d.values)),
|
|
555
555
|
maxSeries: Math.max(...l.map((d) => d.values.length))
|
|
556
|
-
}, p = u.max === u.min ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), b = u.min < 0 ? Math.abs(u.min) : 0, P = u.max < 0 ? t.top : t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries,
|
|
556
|
+
}, p = u.max === u.min ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), b = u.min < 0 ? Math.abs(u.min) : 0, P = u.max < 0 ? t.top : t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries, ae = p.ticks.map((d) => ({
|
|
557
557
|
y: t.bottom - t.height * ((d + b) / (p.max + b)),
|
|
558
558
|
x: t.left - 8,
|
|
559
559
|
value: d
|
|
560
|
-
})),
|
|
560
|
+
})), ue = l.map((d, i) => ({
|
|
561
561
|
...d,
|
|
562
562
|
shape: "circle",
|
|
563
563
|
coordinates: d.values.map((g, E) => ({
|
|
@@ -574,7 +574,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
574
574
|
linePath: i.join(" ")
|
|
575
575
|
};
|
|
576
576
|
});
|
|
577
|
-
function
|
|
577
|
+
function J(d) {
|
|
578
578
|
return l.map((i) => ({
|
|
579
579
|
...i,
|
|
580
580
|
value: i.values[d],
|
|
@@ -582,8 +582,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
582
582
|
})).filter((i) => !_.value.includes(i.id));
|
|
583
583
|
}
|
|
584
584
|
function X(d) {
|
|
585
|
-
|
|
586
|
-
const i =
|
|
585
|
+
oe.value = d, ie.value = d;
|
|
586
|
+
const i = J(d);
|
|
587
587
|
we.value = { datapoint: i, seriesIndex: d, config: e.value, dataset: l };
|
|
588
588
|
const g = e.value.tooltipCustomFormat;
|
|
589
589
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: i, seriesIndex: d + y.value.start }), Ge(g) && rt(() => g({
|
|
@@ -592,7 +592,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
592
592
|
series: l,
|
|
593
593
|
config: e.value
|
|
594
594
|
})))
|
|
595
|
-
|
|
595
|
+
me.value = g({
|
|
596
596
|
datapoint: i,
|
|
597
597
|
seriesIndex: d,
|
|
598
598
|
series: l,
|
|
@@ -600,45 +600,45 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
600
600
|
});
|
|
601
601
|
else {
|
|
602
602
|
let E = "";
|
|
603
|
-
|
|
603
|
+
te.value[i[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${te.value[i[0].absoluteIndex].text}</div>`), i.forEach((B, W) => {
|
|
604
604
|
E += `
|
|
605
605
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
606
|
-
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${
|
|
607
|
-
<span>${
|
|
608
|
-
<b>${
|
|
606
|
+
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${B.color}"/></svg>
|
|
607
|
+
<span>${B.name}:</span>
|
|
608
|
+
<b>${re(
|
|
609
609
|
e.value.formatter,
|
|
610
|
-
|
|
611
|
-
|
|
610
|
+
B.value,
|
|
611
|
+
Y({
|
|
612
612
|
p: e.value.valuePrefix,
|
|
613
|
-
v:
|
|
613
|
+
v: B.value,
|
|
614
614
|
s: e.value.valueSuffix,
|
|
615
615
|
r: e.value.dataLabelRoundingValue
|
|
616
616
|
}),
|
|
617
|
-
{ datapoint:
|
|
617
|
+
{ datapoint: B, seriesIndex: W }
|
|
618
618
|
)}
|
|
619
619
|
</b>
|
|
620
620
|
</div>
|
|
621
621
|
`;
|
|
622
|
-
}),
|
|
622
|
+
}), me.value = E;
|
|
623
623
|
}
|
|
624
|
-
|
|
624
|
+
he.value = !0;
|
|
625
625
|
}
|
|
626
626
|
function f(d) {
|
|
627
|
-
const i =
|
|
628
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: i, seriesIndex: d + y.value.start }),
|
|
627
|
+
const i = J(d);
|
|
628
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: i, seriesIndex: d + y.value.start }), oe.value = null, ie.value = null, he.value = !1;
|
|
629
629
|
}
|
|
630
630
|
function z(d) {
|
|
631
|
-
const i =
|
|
631
|
+
const i = J(d);
|
|
632
632
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: i, seriesIndex: d + y.value.start }), pe("selectDatapoint", i);
|
|
633
633
|
}
|
|
634
634
|
return {
|
|
635
635
|
absoluteZero: P,
|
|
636
|
-
dataset:
|
|
637
|
-
legend:
|
|
636
|
+
dataset: ue.filter((d) => !_.value.includes(d.id)),
|
|
637
|
+
legend: ue,
|
|
638
638
|
drawingArea: t,
|
|
639
639
|
extremes: u,
|
|
640
640
|
slotSize: F,
|
|
641
|
-
yLabels:
|
|
641
|
+
yLabels: ae,
|
|
642
642
|
useTooltip: X,
|
|
643
643
|
killTooltip: f,
|
|
644
644
|
selectDatapoint: z
|
|
@@ -650,8 +650,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
650
650
|
width: S.value.width
|
|
651
651
|
};
|
|
652
652
|
let r = Tt();
|
|
653
|
-
if (
|
|
654
|
-
const i =
|
|
653
|
+
if (ne.value) {
|
|
654
|
+
const i = ne.value.getBBox().x;
|
|
655
655
|
i < 0 && (r += Math.abs(i));
|
|
656
656
|
}
|
|
657
657
|
const t = {
|
|
@@ -663,13 +663,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
663
663
|
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ve.value)
|
|
664
664
|
};
|
|
665
665
|
let l = [];
|
|
666
|
-
|
|
666
|
+
ve(k.value.dataset) && (l = [
|
|
667
667
|
{
|
|
668
668
|
values: k.value.dataset.slice(y.value.start, y.value.end),
|
|
669
669
|
absoluteValues: k.value.dataset,
|
|
670
670
|
absoluteIndices: k.value.dataset.map((i, g) => g).slice(y.value.start, y.value.end),
|
|
671
671
|
name: e.value.title,
|
|
672
|
-
color: _e.value[e.value.paletteStartIndex] ||
|
|
672
|
+
color: _e.value[e.value.paletteStartIndex] || ee[e.value.paletteStartIndex],
|
|
673
673
|
id: "bar_0"
|
|
674
674
|
}
|
|
675
675
|
]), je(k.value.dataset) && (l = k.value.dataset.map((i, g) => ({
|
|
@@ -679,40 +679,40 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
679
679
|
id: `bar_${g}`
|
|
680
680
|
})).map((i, g) => ({
|
|
681
681
|
...i,
|
|
682
|
-
color: i.COLOR ? it(i.COLOR) : _e.value[g + e.value.paletteStartIndex] ||
|
|
682
|
+
color: i.COLOR ? it(i.COLOR) : _e.value[g + e.value.paletteStartIndex] || ee[g + e.value.paletteStartIndex] || ee[(g + e.value.paletteStartIndex) % ee.length],
|
|
683
683
|
values: i.values.slice(y.value.start, y.value.end),
|
|
684
684
|
absoluteValues: i.values,
|
|
685
|
-
absoluteIndices: i.values.map((E,
|
|
685
|
+
absoluteIndices: i.values.map((E, B) => B).slice(y.value.start, y.value.end)
|
|
686
686
|
})));
|
|
687
687
|
const u = {
|
|
688
688
|
max: Math.max(...l.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...l.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)),
|
|
689
689
|
min: Math.min(...l.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)),
|
|
690
690
|
maxSeries: Math.max(...l.filter((i) => !_.value.includes(i.id)).map((i) => i.values.length))
|
|
691
|
-
}, p = u.min === u.max ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), b = p.min < 0 ? Math.abs(p.min) : 0, P = t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries,
|
|
691
|
+
}, p = u.min === u.max ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), b = p.min < 0 ? Math.abs(p.min) : 0, P = t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries, ae = p.ticks.map((i) => ({
|
|
692
692
|
y: t.bottom - t.height * ((i + b) / (p.max + b)),
|
|
693
693
|
x: t.left - 8,
|
|
694
694
|
value: i
|
|
695
|
-
})),
|
|
695
|
+
})), ue = l.map((i, g) => ({
|
|
696
696
|
...i,
|
|
697
697
|
shape: "square",
|
|
698
|
-
coordinates: i.values.map((E,
|
|
699
|
-
const W = (E + b) / (u.max + b) * t.height,
|
|
698
|
+
coordinates: i.values.map((E, B) => {
|
|
699
|
+
const W = (E + b) / (u.max + b) * t.height, le = Math.abs(E) / Math.abs(u.min) * (t.height - P), lt = b / (u.max + b) * t.height, Ce = F / l.filter((ge) => !_.value.includes(ge.id)).length - e.value.barGap / l.filter((ge) => !_.value.includes(ge.id)).length;
|
|
700
700
|
return {
|
|
701
|
-
x: t.left + F *
|
|
701
|
+
x: t.left + F * B + Ce * g + e.value.barGap / 2,
|
|
702
702
|
y: E > 0 ? t.bottom - W : P,
|
|
703
|
-
height: E > 0 ? W - lt :
|
|
703
|
+
height: E > 0 ? W - lt : le,
|
|
704
704
|
value: E,
|
|
705
705
|
width: Ce
|
|
706
706
|
};
|
|
707
707
|
})
|
|
708
|
-
})),
|
|
708
|
+
})), J = l.filter((i) => !_.value.includes(i.id)).map((i, g) => ({
|
|
709
709
|
...i,
|
|
710
|
-
coordinates: i.values.map((E,
|
|
711
|
-
const W = (E + b) / (u.max + b) * t.height,
|
|
710
|
+
coordinates: i.values.map((E, B) => {
|
|
711
|
+
const W = (E + b) / (u.max + b) * t.height, le = Math.abs(E) / (u.max + b) * t.height, lt = b / (u.max + b) * t.height, Ce = F / l.filter((ge) => !_.value.includes(ge.id)).length - e.value.barGap / l.filter((ge) => !_.value.includes(ge.id)).length;
|
|
712
712
|
return {
|
|
713
|
-
x: t.left + F *
|
|
713
|
+
x: t.left + F * B + Ce * g + e.value.barGap / 2,
|
|
714
714
|
y: E > 0 ? t.bottom - W : P,
|
|
715
|
-
height: E > 0 ? W - lt :
|
|
715
|
+
height: E > 0 ? W - lt : le,
|
|
716
716
|
value: E,
|
|
717
717
|
width: Ce
|
|
718
718
|
};
|
|
@@ -726,7 +726,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
726
726
|
})).filter((g) => !_.value.includes(g.id));
|
|
727
727
|
}
|
|
728
728
|
function f(i) {
|
|
729
|
-
|
|
729
|
+
oe.value = i, ie.value = i;
|
|
730
730
|
const g = X(i);
|
|
731
731
|
we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset: l };
|
|
732
732
|
const E = e.value.tooltipCustomFormat;
|
|
@@ -736,40 +736,40 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
736
736
|
series: l,
|
|
737
737
|
config: e.value
|
|
738
738
|
})))
|
|
739
|
-
|
|
739
|
+
me.value = E({
|
|
740
740
|
point: g,
|
|
741
741
|
seriesIndex: i,
|
|
742
742
|
series: l,
|
|
743
743
|
config: e.value
|
|
744
744
|
});
|
|
745
745
|
else {
|
|
746
|
-
let
|
|
747
|
-
|
|
748
|
-
|
|
746
|
+
let B = "";
|
|
747
|
+
te.value[g[0].absoluteIndex] && (B += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${te.value[g[0].absoluteIndex].text}</div>`), g.forEach((W, le) => {
|
|
748
|
+
B += `
|
|
749
749
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
750
750
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${W.color}"/></svg>
|
|
751
751
|
<span>${W.name}:</span>
|
|
752
|
-
<b>${
|
|
752
|
+
<b>${re(
|
|
753
753
|
e.value.formatter,
|
|
754
754
|
W.value,
|
|
755
|
-
|
|
755
|
+
Y({
|
|
756
756
|
p: e.value.valuePrefix,
|
|
757
757
|
v: W.value,
|
|
758
758
|
s: e.value.valueSuffix,
|
|
759
759
|
r: e.value.dataLabelRoundingValue
|
|
760
760
|
}),
|
|
761
|
-
{ datapoint: W, seriesIndex:
|
|
761
|
+
{ datapoint: W, seriesIndex: le }
|
|
762
762
|
)}
|
|
763
763
|
</b>
|
|
764
764
|
</div>
|
|
765
765
|
`;
|
|
766
|
-
}),
|
|
766
|
+
}), me.value = B;
|
|
767
767
|
}
|
|
768
|
-
|
|
768
|
+
he.value = !0;
|
|
769
769
|
}
|
|
770
770
|
function z(i) {
|
|
771
771
|
const g = X(i);
|
|
772
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: g, seriesIndex: i + y.value.start }),
|
|
772
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: g, seriesIndex: i + y.value.start }), he.value = !1, oe.value = null, ie.value = null;
|
|
773
773
|
}
|
|
774
774
|
function d(i) {
|
|
775
775
|
const g = X(i);
|
|
@@ -777,13 +777,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
777
777
|
}
|
|
778
778
|
return {
|
|
779
779
|
absoluteZero: P,
|
|
780
|
-
dataset:
|
|
781
|
-
absoluteDataset:
|
|
782
|
-
legend:
|
|
780
|
+
dataset: J.filter((i) => !_.value.includes(i.id)),
|
|
781
|
+
absoluteDataset: J,
|
|
782
|
+
legend: ue,
|
|
783
783
|
drawingArea: t,
|
|
784
784
|
extremes: u,
|
|
785
785
|
slotSize: F,
|
|
786
|
-
yLabels:
|
|
786
|
+
yLabels: ae,
|
|
787
787
|
useTooltip: f,
|
|
788
788
|
killTooltip: z,
|
|
789
789
|
selectDatapoint: d
|
|
@@ -820,8 +820,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
820
820
|
const u = (l === 1 / 0 ? 1 : l) / 2, p = [];
|
|
821
821
|
let b = { x: t[0].x, items: [t[0].el] };
|
|
822
822
|
for (let P = 1; P < t.length; P++) {
|
|
823
|
-
const { x: F, el:
|
|
824
|
-
Math.abs(F - b.x) <= u ? b.items.push(
|
|
823
|
+
const { x: F, el: ae } = t[P];
|
|
824
|
+
Math.abs(F - b.x) <= u ? b.items.push(ae) : (p.push(b), b = { x: F, items: [ae] });
|
|
825
825
|
}
|
|
826
826
|
return p.push(b), p;
|
|
827
827
|
}
|
|
@@ -836,22 +836,22 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
836
836
|
labelStep: P = 0,
|
|
837
837
|
intraSeriesStep: F = 0
|
|
838
838
|
} = {}) {
|
|
839
|
-
const
|
|
840
|
-
|
|
839
|
+
const ae = Array.isArray(Ae?.value) ? Ae.value : [Ae?.value].filter(Boolean), ue = Array.isArray(Le?.value) ? Le.value : [Le?.value].filter(Boolean), J = [...ae, ...ue].filter(Boolean), X = N?.value || null, f = X ? Array.from(X.querySelectorAll(".vue-ui-quick-chart-plot")) : [], z = X ? Array.from(X.querySelectorAll(".vue-ui-quick-chart-label")) : [];
|
|
840
|
+
J.forEach(oa), It(f, { fromOpacity: "0", fromScale: "0.75" }), It(z, { fromOpacity: "0", fromScale: "0.98" }), f.forEach((g) => g.classList.remove("quick-animation")), z.forEach((g) => g.classList.remove("quick-animation")), X && X.offsetWidth;
|
|
841
841
|
const d = f.length ? Pt(f, na) : [], i = z.length ? Pt(z, ia) : [];
|
|
842
842
|
requestAnimationFrame(() => {
|
|
843
843
|
requestAnimationFrame(() => {
|
|
844
|
-
|
|
844
|
+
J.forEach((g) => {
|
|
845
845
|
g.style.transition = `stroke-dashoffset ${a}ms ${r}`, g.style.strokeDashoffset = "0";
|
|
846
846
|
}), d.forEach((g, E) => {
|
|
847
|
-
g.items.forEach((
|
|
848
|
-
const
|
|
849
|
-
|
|
847
|
+
g.items.forEach((B, W) => {
|
|
848
|
+
const le = u + E * b + W * F;
|
|
849
|
+
B.style.transition = `opacity ${t}ms ease-out ${le}ms, transform ${t}ms ease-out ${le}ms`, B.style.opacity = "1", B.style.transform = "scale(1)";
|
|
850
850
|
});
|
|
851
851
|
}), i.forEach((g, E) => {
|
|
852
|
-
g.items.forEach((
|
|
853
|
-
const
|
|
854
|
-
|
|
852
|
+
g.items.forEach((B, W) => {
|
|
853
|
+
const le = p + E * P + W * F;
|
|
854
|
+
B.style.transition = `opacity ${l}ms ease-out ${le}ms, transform ${l}ms ease-out ${le}ms`, B.style.opacity = "1", B.style.transform = "scale(1)";
|
|
855
855
|
});
|
|
856
856
|
});
|
|
857
857
|
});
|
|
@@ -872,7 +872,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
872
872
|
type: "bar",
|
|
873
873
|
series: a.absoluteValues
|
|
874
874
|
}));
|
|
875
|
-
}),
|
|
875
|
+
}), te = M(() => Ba({
|
|
876
876
|
values: e.value.xyPeriods,
|
|
877
877
|
maxDatapoints: k.value.maxSeriesLength,
|
|
878
878
|
formatter: e.value.datetimeFormatter,
|
|
@@ -880,7 +880,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
880
880
|
end: y.value.end
|
|
881
881
|
})), ke = M(() => {
|
|
882
882
|
const a = e.value.xyPeriodsModulo;
|
|
883
|
-
return e.value.xyPeriods.length ? Math.min(a, [...new Set(
|
|
883
|
+
return e.value.xyPeriods.length ? Math.min(a, [...new Set(te.value.map((r) => r.text))].length) : a;
|
|
884
884
|
}), qe = w(!1);
|
|
885
885
|
function Ot(a) {
|
|
886
886
|
qe.value = a, ht.value += 1;
|
|
@@ -893,8 +893,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
893
893
|
He.value = !He.value;
|
|
894
894
|
}
|
|
895
895
|
async function sa({ scale: a = 2 } = {}) {
|
|
896
|
-
if (!
|
|
897
|
-
const { width: r, height: t } =
|
|
896
|
+
if (!N.value) return;
|
|
897
|
+
const { width: r, height: t } = N.value.getBoundingClientRect(), l = r / t, { imageUri: u, base64: p } = await Va({ domElement: N.value, base64: !0, img: !0, scale: a });
|
|
898
898
|
return {
|
|
899
899
|
imageUri: u,
|
|
900
900
|
base64: p,
|
|
@@ -906,8 +906,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
906
906
|
}
|
|
907
907
|
const va = M(() => S.value.width), da = M(() => S.value.height);
|
|
908
908
|
Ua({
|
|
909
|
-
timeLabelsEls:
|
|
910
|
-
timeLabels:
|
|
909
|
+
timeLabelsEls: ne,
|
|
910
|
+
timeLabels: te,
|
|
911
911
|
slicer: y,
|
|
912
912
|
configRef: e,
|
|
913
913
|
rotationPath: ["xyPeriodLabelsRotation"],
|
|
@@ -957,22 +957,42 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
957
957
|
toggleFullscreen: Ot
|
|
958
958
|
}), (a, r) => Yt.value ? (o(), n("div", {
|
|
959
959
|
key: 0,
|
|
960
|
-
id: `${C.value}_${
|
|
960
|
+
id: `${C.value}_${Z.value}`,
|
|
961
961
|
ref_key: "quickChart",
|
|
962
|
-
ref:
|
|
963
|
-
class:
|
|
964
|
-
style:
|
|
962
|
+
ref: N,
|
|
963
|
+
class: fe({ "vue-data-ui-component": !0, "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": qe.value }),
|
|
964
|
+
style: D(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
965
965
|
onMouseenter: r[2] || (r[2] = () => kt(!0)),
|
|
966
966
|
onMouseleave: r[3] || (r[3] = () => kt(!1))
|
|
967
967
|
}, [
|
|
968
|
-
e.value.userOptionsButtons.annotator ? (o(), Ie(s(
|
|
968
|
+
e.value.userOptionsButtons.annotator ? (o(), Ie(s(de), {
|
|
969
969
|
key: 0,
|
|
970
970
|
svgRef: s(Qe),
|
|
971
971
|
backgroundColor: e.value.backgroundColor,
|
|
972
972
|
color: e.value.color,
|
|
973
973
|
active: He.value,
|
|
974
974
|
onClose: at
|
|
975
|
-
},
|
|
975
|
+
}, {
|
|
976
|
+
"annotator-action-close": G(() => [
|
|
977
|
+
R(a.$slots, "annotator-action-close", {}, void 0, !0)
|
|
978
|
+
]),
|
|
979
|
+
"annotator-action-color": G(({ color: t }) => [
|
|
980
|
+
R(a.$slots, "annotator-action-color", Q(K({ color: t })), void 0, !0)
|
|
981
|
+
]),
|
|
982
|
+
"annotator-action-draw": G(({ mode: t }) => [
|
|
983
|
+
R(a.$slots, "annotator-action-draw", Q(K({ mode: t })), void 0, !0)
|
|
984
|
+
]),
|
|
985
|
+
"annotator-action-undo": G(({ disabled: t }) => [
|
|
986
|
+
R(a.$slots, "annotator-action-undo", Q(K({ disabled: t })), void 0, !0)
|
|
987
|
+
]),
|
|
988
|
+
"annotator-action-redo": G(({ disabled: t }) => [
|
|
989
|
+
R(a.$slots, "annotator-action-redo", Q(K({ disabled: t })), void 0, !0)
|
|
990
|
+
]),
|
|
991
|
+
"annotator-action-delete": G(({ disabled: t }) => [
|
|
992
|
+
R(a.$slots, "annotator-action-delete", Q(K({ disabled: t })), void 0, !0)
|
|
993
|
+
]),
|
|
994
|
+
_: 3
|
|
995
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
976
996
|
Zt.value ? (o(), n("div", {
|
|
977
997
|
key: 1,
|
|
978
998
|
ref_key: "noTitle",
|
|
@@ -987,7 +1007,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
987
1007
|
color: e.value.color,
|
|
988
1008
|
isPrinting: s(Be),
|
|
989
1009
|
isImaging: s(De),
|
|
990
|
-
uid:
|
|
1010
|
+
uid: Z.value,
|
|
991
1011
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
992
1012
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
993
1013
|
hasImg: e.value.userOptionsButtons.img,
|
|
@@ -997,7 +1017,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
997
1017
|
isTooltip: ye.value.showTooltip,
|
|
998
1018
|
isFullscreen: qe.value,
|
|
999
1019
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
1000
|
-
chartElement:
|
|
1020
|
+
chartElement: N.value,
|
|
1001
1021
|
position: e.value.userOptionsPosition,
|
|
1002
1022
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
1003
1023
|
isAnnotation: He.value,
|
|
@@ -1009,56 +1029,56 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1009
1029
|
onGenerateSvg: Mt,
|
|
1010
1030
|
onToggleTooltip: Ft,
|
|
1011
1031
|
onToggleAnnotator: at,
|
|
1012
|
-
style:
|
|
1032
|
+
style: D({
|
|
1013
1033
|
visibility: xt.value ? Ne.value ? "visible" : "hidden" : "visible"
|
|
1014
1034
|
})
|
|
1015
1035
|
}, ba({ _: 2 }, [
|
|
1016
1036
|
a.$slots.menuIcon ? {
|
|
1017
1037
|
name: "menuIcon",
|
|
1018
|
-
fn:
|
|
1019
|
-
|
|
1038
|
+
fn: G(({ isOpen: t, color: l }) => [
|
|
1039
|
+
R(a.$slots, "menuIcon", Q(K({ isOpen: t, color: l })), void 0, !0)
|
|
1020
1040
|
]),
|
|
1021
1041
|
key: "0"
|
|
1022
1042
|
} : void 0,
|
|
1023
1043
|
a.$slots.optionTooltip ? {
|
|
1024
1044
|
name: "optionTooltip",
|
|
1025
|
-
fn:
|
|
1026
|
-
|
|
1045
|
+
fn: G(() => [
|
|
1046
|
+
R(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1027
1047
|
]),
|
|
1028
1048
|
key: "1"
|
|
1029
1049
|
} : void 0,
|
|
1030
1050
|
a.$slots.optionPdf ? {
|
|
1031
1051
|
name: "optionPdf",
|
|
1032
|
-
fn:
|
|
1033
|
-
|
|
1052
|
+
fn: G(() => [
|
|
1053
|
+
R(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1034
1054
|
]),
|
|
1035
1055
|
key: "2"
|
|
1036
1056
|
} : void 0,
|
|
1037
1057
|
a.$slots.optionImg ? {
|
|
1038
1058
|
name: "optionImg",
|
|
1039
|
-
fn:
|
|
1040
|
-
|
|
1059
|
+
fn: G(() => [
|
|
1060
|
+
R(a.$slots, "optionImg", {}, void 0, !0)
|
|
1041
1061
|
]),
|
|
1042
1062
|
key: "3"
|
|
1043
1063
|
} : void 0,
|
|
1044
1064
|
a.$slots.optionSvg ? {
|
|
1045
1065
|
name: "optionSvg",
|
|
1046
|
-
fn:
|
|
1047
|
-
|
|
1066
|
+
fn: G(() => [
|
|
1067
|
+
R(a.$slots, "optionSvg", {}, void 0, !0)
|
|
1048
1068
|
]),
|
|
1049
1069
|
key: "4"
|
|
1050
1070
|
} : void 0,
|
|
1051
1071
|
a.$slots.optionFullscreen ? {
|
|
1052
1072
|
name: "optionFullscreen",
|
|
1053
|
-
fn:
|
|
1054
|
-
|
|
1073
|
+
fn: G(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
1074
|
+
R(a.$slots, "optionFullscreen", Q(K({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
1055
1075
|
]),
|
|
1056
1076
|
key: "5"
|
|
1057
1077
|
} : void 0,
|
|
1058
1078
|
a.$slots.optionAnnotator ? {
|
|
1059
1079
|
name: "optionAnnotator",
|
|
1060
|
-
fn:
|
|
1061
|
-
|
|
1080
|
+
fn: G(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
1081
|
+
R(a.$slots, "optionAnnotator", Q(K({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
1062
1082
|
]),
|
|
1063
1083
|
key: "6"
|
|
1064
1084
|
} : void 0
|
|
@@ -1068,10 +1088,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1068
1088
|
ref_key: "quickChartTitle",
|
|
1069
1089
|
ref: Oe,
|
|
1070
1090
|
class: "vue-ui-quick-chart-title",
|
|
1071
|
-
style:
|
|
1072
|
-
},
|
|
1091
|
+
style: D(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
1092
|
+
}, V(e.value.title), 5)) : m("", !0),
|
|
1073
1093
|
$("div", {
|
|
1074
|
-
id: `legend-top-${
|
|
1094
|
+
id: `legend-top-${Z.value}`
|
|
1075
1095
|
}, null, 8, Ka),
|
|
1076
1096
|
C.value ? (o(), n("svg", {
|
|
1077
1097
|
key: 4,
|
|
@@ -1079,9 +1099,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1079
1099
|
ref: Qe,
|
|
1080
1100
|
xmlns: s(Ta),
|
|
1081
1101
|
viewBox: Jt.value,
|
|
1082
|
-
style:
|
|
1102
|
+
style: D(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
1083
1103
|
}, [
|
|
1084
|
-
be(s(
|
|
1104
|
+
be(s(j)),
|
|
1085
1105
|
a.$slots["chart-background"] && C.value === A.BAR ? (o(), n("foreignObject", {
|
|
1086
1106
|
key: 0,
|
|
1087
1107
|
x: v.value.drawingArea.left,
|
|
@@ -1092,7 +1112,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1092
1112
|
pointerEvents: "none"
|
|
1093
1113
|
}
|
|
1094
1114
|
}, [
|
|
1095
|
-
|
|
1115
|
+
R(a.$slots, "chart-background", {}, void 0, !0)
|
|
1096
1116
|
], 8, tl)) : m("", !0),
|
|
1097
1117
|
a.$slots["chart-background"] && C.value === A.LINE ? (o(), n("foreignObject", {
|
|
1098
1118
|
key: 1,
|
|
@@ -1104,7 +1124,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1104
1124
|
pointerEvents: "none"
|
|
1105
1125
|
}
|
|
1106
1126
|
}, [
|
|
1107
|
-
|
|
1127
|
+
R(a.$slots, "chart-background", {}, void 0, !0)
|
|
1108
1128
|
], 8, al)) : m("", !0),
|
|
1109
1129
|
a.$slots["chart-background"] && C.value === A.DONUT ? (o(), n("foreignObject", {
|
|
1110
1130
|
key: 2,
|
|
@@ -1116,11 +1136,11 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1116
1136
|
pointerEvents: "none"
|
|
1117
1137
|
}
|
|
1118
1138
|
}, [
|
|
1119
|
-
|
|
1139
|
+
R(a.$slots, "chart-background", {}, void 0, !0)
|
|
1120
1140
|
], 8, ll)) : m("", !0),
|
|
1121
1141
|
$("defs", null, [
|
|
1122
1142
|
$("filter", {
|
|
1123
|
-
id: `blur_${
|
|
1143
|
+
id: `blur_${Z.value}`,
|
|
1124
1144
|
x: "-50%",
|
|
1125
1145
|
y: "-50%",
|
|
1126
1146
|
width: "200%",
|
|
@@ -1129,7 +1149,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1129
1149
|
$("feGaussianBlur", {
|
|
1130
1150
|
in: "SourceGraphic",
|
|
1131
1151
|
stdDeviation: 2,
|
|
1132
|
-
id: `blur_std_${
|
|
1152
|
+
id: `blur_std_${Z.value}`
|
|
1133
1153
|
}, null, 8, nl),
|
|
1134
1154
|
r[4] || (r[4] = $("feColorMatrix", {
|
|
1135
1155
|
type: "saturate",
|
|
@@ -1137,7 +1157,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1137
1157
|
}, null, -1))
|
|
1138
1158
|
], 8, ol),
|
|
1139
1159
|
$("filter", {
|
|
1140
|
-
id: `shadow_${
|
|
1160
|
+
id: `shadow_${Z.value}`,
|
|
1141
1161
|
"color-interpolation-filters": "sRGB"
|
|
1142
1162
|
}, [
|
|
1143
1163
|
$("feDropShadow", {
|
|
@@ -1169,7 +1189,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1169
1189
|
cy: I.value.cy,
|
|
1170
1190
|
r: I.value.radius,
|
|
1171
1191
|
fill: e.value.backgroundColor,
|
|
1172
|
-
filter: e.value.donutUseShadow ? `url(#shadow_${
|
|
1192
|
+
filter: e.value.donutUseShadow ? `url(#shadow_${Z.value})` : ""
|
|
1173
1193
|
}, null, 8, vl),
|
|
1174
1194
|
$("g", dl, [
|
|
1175
1195
|
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n("path", {
|
|
@@ -1207,10 +1227,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1207
1227
|
fill: e.value.color,
|
|
1208
1228
|
"font-size": e.value.dataLabelFontSize,
|
|
1209
1229
|
filter: $e(t.id)
|
|
1210
|
-
},
|
|
1230
|
+
}, V(I.value.displayArcPercentage(t, I.value.chart)) + " (" + V(s(re)(
|
|
1211
1231
|
e.value.formatter,
|
|
1212
1232
|
t.value,
|
|
1213
|
-
s(
|
|
1233
|
+
s(Y)({
|
|
1214
1234
|
p: e.value.valuePrefix,
|
|
1215
1235
|
v: t.value,
|
|
1216
1236
|
s: e.value.valueSuffix,
|
|
@@ -1226,7 +1246,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1226
1246
|
fill: e.value.color,
|
|
1227
1247
|
"font-size": e.value.dataLabelFontSize,
|
|
1228
1248
|
filter: $e(t.id)
|
|
1229
|
-
},
|
|
1249
|
+
}, V(t.name), 9, pl)) : m("", !0)
|
|
1230
1250
|
], 64))), 256))
|
|
1231
1251
|
])) : m("", !0),
|
|
1232
1252
|
e.value.donutShowTotal ? (o(), n("g", yl, [
|
|
@@ -1236,14 +1256,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1236
1256
|
y: I.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
1237
1257
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
1238
1258
|
fill: e.value.color
|
|
1239
|
-
},
|
|
1259
|
+
}, V(e.value.donutTotalLabelText), 9, xl),
|
|
1240
1260
|
$("text", {
|
|
1241
1261
|
"text-anchor": "middle",
|
|
1242
1262
|
x: I.value.drawingArea.centerX,
|
|
1243
1263
|
y: I.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
1244
1264
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
1245
1265
|
fill: e.value.color
|
|
1246
|
-
},
|
|
1266
|
+
}, V(s(Y)({
|
|
1247
1267
|
p: e.value.valuePrefix,
|
|
1248
1268
|
v: I.value.total,
|
|
1249
1269
|
s: e.value.valueSuffix,
|
|
@@ -1319,10 +1339,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1319
1339
|
"text-anchor": "end",
|
|
1320
1340
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1321
1341
|
fill: e.value.color
|
|
1322
|
-
},
|
|
1342
|
+
}, V(s(re)(
|
|
1323
1343
|
e.value.formatter,
|
|
1324
1344
|
t.value,
|
|
1325
|
-
s(
|
|
1345
|
+
s(Y)({
|
|
1326
1346
|
p: e.value.valuePrefix,
|
|
1327
1347
|
v: t.value,
|
|
1328
1348
|
s: e.value.valueSuffix,
|
|
@@ -1333,7 +1353,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1333
1353
|
], 64))), 256))
|
|
1334
1354
|
], 512)) : m("", !0),
|
|
1335
1355
|
e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g", Cl, [
|
|
1336
|
-
(o(!0), n(x, null, T(
|
|
1356
|
+
(o(!0), n(x, null, T(te.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1337
1357
|
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("line", {
|
|
1338
1358
|
key: 0,
|
|
1339
1359
|
x1: c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2,
|
|
@@ -1347,9 +1367,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1347
1367
|
], 64))), 256)),
|
|
1348
1368
|
$("g", {
|
|
1349
1369
|
ref_key: "timeLabelsEls",
|
|
1350
|
-
ref:
|
|
1370
|
+
ref: ne
|
|
1351
1371
|
}, [
|
|
1352
|
-
(o(!0), n(x, null, T(
|
|
1372
|
+
(o(!0), n(x, null, T(te.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1353
1373
|
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("g", Tl, [
|
|
1354
1374
|
String(t).includes(`
|
|
1355
1375
|
`) ? (o(), n("text", {
|
|
@@ -1373,7 +1393,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1373
1393
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1374
1394
|
fill: e.value.color,
|
|
1375
1395
|
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2}, ${c.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1376
|
-
},
|
|
1396
|
+
}, V(t), 9, Il))
|
|
1377
1397
|
])) : m("", !0)
|
|
1378
1398
|
], 64))), 256))
|
|
1379
1399
|
], 512)
|
|
@@ -1390,8 +1410,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1390
1410
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1391
1411
|
"stroke-linecap": "round",
|
|
1392
1412
|
fill: "none",
|
|
1393
|
-
class:
|
|
1394
|
-
style:
|
|
1413
|
+
class: fe({ "quick-animation": !s(q), "vue-data-ui-line-animated": e.value.lineAnimated && !s(q) }),
|
|
1414
|
+
style: D({ transition: s(q) ? void 0 : "all 0.3s ease-in-out" })
|
|
1395
1415
|
}, null, 14, Ml),
|
|
1396
1416
|
$("path", {
|
|
1397
1417
|
ref_for: !0,
|
|
@@ -1402,8 +1422,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1402
1422
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1403
1423
|
"stroke-linecap": "round",
|
|
1404
1424
|
fill: "none",
|
|
1405
|
-
class:
|
|
1406
|
-
style:
|
|
1425
|
+
class: fe({ "quick-animation": !s(q), "vue-data-ui-line-animated": e.value.lineAnimated && !s(q) }),
|
|
1426
|
+
style: D({ transition: s(q) ? void 0 : "all 0.3s ease-in-out" })
|
|
1407
1427
|
}, null, 14, Rl)
|
|
1408
1428
|
], 64)) : (o(), n(x, { key: 1 }, [
|
|
1409
1429
|
$("path", {
|
|
@@ -1415,8 +1435,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1415
1435
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1416
1436
|
"stroke-linecap": "round",
|
|
1417
1437
|
fill: "none",
|
|
1418
|
-
class:
|
|
1419
|
-
style:
|
|
1438
|
+
class: fe({ "quick-animation": !s(q), "vue-data-ui-line-animated": e.value.lineAnimated && !s(q) }),
|
|
1439
|
+
style: D({ transition: s(q) ? void 0 : "all 0.3s ease-in-out" })
|
|
1420
1440
|
}, null, 14, Nl),
|
|
1421
1441
|
$("path", {
|
|
1422
1442
|
ref_for: !0,
|
|
@@ -1427,19 +1447,19 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1427
1447
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1428
1448
|
"stroke-linecap": "round",
|
|
1429
1449
|
fill: "none",
|
|
1430
|
-
class:
|
|
1431
|
-
style:
|
|
1450
|
+
class: fe({ "quick-animation": !s(q), "vue-data-ui-line-animated": e.value.lineAnimated && !s(q) }),
|
|
1451
|
+
style: D({ transition: s(q) ? void 0 : "all 0.3s ease-in-out" })
|
|
1432
1452
|
}, null, 14, Bl)
|
|
1433
1453
|
], 64)),
|
|
1434
1454
|
(o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("circle", {
|
|
1435
1455
|
cx: u.x,
|
|
1436
|
-
cy: s(
|
|
1456
|
+
cy: s(se)(u.y),
|
|
1437
1457
|
r: 3,
|
|
1438
1458
|
fill: t.color,
|
|
1439
1459
|
stroke: e.value.backgroundColor,
|
|
1440
1460
|
"stroke-width": "0.5",
|
|
1441
|
-
class:
|
|
1442
|
-
style:
|
|
1461
|
+
class: fe({ "vue-ui-quick-chart-plot": !0, "quick-animation": !s(q) }),
|
|
1462
|
+
style: D({ transition: s(q) ? void 0 : "all 0.3s ease-in-out" })
|
|
1443
1463
|
}, null, 14, Dl))), 256))
|
|
1444
1464
|
]))), 256))
|
|
1445
1465
|
]),
|
|
@@ -1450,15 +1470,15 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1450
1470
|
"font-size": e.value.dataLabelFontSize,
|
|
1451
1471
|
fill: t.color,
|
|
1452
1472
|
x: u.x,
|
|
1453
|
-
y: s(
|
|
1454
|
-
class:
|
|
1455
|
-
style:
|
|
1456
|
-
},
|
|
1473
|
+
y: s(se)(u.y) - e.value.dataLabelFontSize / 2,
|
|
1474
|
+
class: fe({ "vue-ui-quick-chart-label": !0, "quick-animation": !s(q) }),
|
|
1475
|
+
style: D({ transition: s(q) ? void 0 : "all 0.3s ease-in-out" })
|
|
1476
|
+
}, V(s(re)(
|
|
1457
1477
|
e.value.formatter,
|
|
1458
|
-
s(
|
|
1459
|
-
s(
|
|
1478
|
+
s(se)(u.value),
|
|
1479
|
+
s(Y)({
|
|
1460
1480
|
p: e.value.valuePrefix,
|
|
1461
|
-
v: s(
|
|
1481
|
+
v: s(se)(u.value),
|
|
1462
1482
|
s: e.value.valueSuffix,
|
|
1463
1483
|
r: e.value.dataLabelRoundingValue
|
|
1464
1484
|
}),
|
|
@@ -1472,8 +1492,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1472
1492
|
y: c.value.drawingArea.top,
|
|
1473
1493
|
height: c.value.drawingArea.height <= 0 ? 1e-5 : c.value.drawingArea.height,
|
|
1474
1494
|
width: c.value.slotSize <= 0 ? 1e-5 : c.value.slotSize,
|
|
1475
|
-
fill: [
|
|
1476
|
-
style:
|
|
1495
|
+
fill: [oe.value, ie.value].includes(l) ? e.value.xyHighlighterColor : "transparent",
|
|
1496
|
+
style: D(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1477
1497
|
onMouseenter: (u) => c.value.useTooltip(l),
|
|
1478
1498
|
onMouseleave: (u) => c.value.killTooltip(l),
|
|
1479
1499
|
onClick: (u) => c.value.selectDatapoint(l)
|
|
@@ -1548,10 +1568,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1548
1568
|
"text-anchor": "end",
|
|
1549
1569
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1550
1570
|
fill: e.value.color
|
|
1551
|
-
},
|
|
1571
|
+
}, V(s(re)(
|
|
1552
1572
|
e.value.formatter,
|
|
1553
1573
|
t.value,
|
|
1554
|
-
s(
|
|
1574
|
+
s(Y)({
|
|
1555
1575
|
p: e.value.valuePrefix,
|
|
1556
1576
|
v: t.value,
|
|
1557
1577
|
s: e.value.valueSuffix,
|
|
@@ -1573,9 +1593,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1573
1593
|
}, null, 8, eo))), 256)),
|
|
1574
1594
|
$("g", {
|
|
1575
1595
|
ref_key: "timeLabelsEls",
|
|
1576
|
-
ref:
|
|
1596
|
+
ref: ne
|
|
1577
1597
|
}, [
|
|
1578
|
-
(o(!0), n(x, null, T(
|
|
1598
|
+
(o(!0), n(x, null, T(te.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1579
1599
|
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("g", to, [
|
|
1580
1600
|
String(t).includes(`
|
|
1581
1601
|
`) ? (o(), n("text", {
|
|
@@ -1599,7 +1619,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1599
1619
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1600
1620
|
fill: e.value.color,
|
|
1601
1621
|
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1602
|
-
},
|
|
1622
|
+
}, V(t), 9, ao))
|
|
1603
1623
|
])) : m("", !0)
|
|
1604
1624
|
], 64))), 256))
|
|
1605
1625
|
], 512)
|
|
@@ -1609,13 +1629,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1609
1629
|
(o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("rect", {
|
|
1610
1630
|
x: u.x,
|
|
1611
1631
|
width: u.width <= 0 ? 1e-5 : u.width,
|
|
1612
|
-
height: s(
|
|
1613
|
-
y: s(
|
|
1632
|
+
height: s(se)(u.height <= 0 ? 1e-5 : u.height),
|
|
1633
|
+
y: s(se)(u.y),
|
|
1614
1634
|
fill: t.color,
|
|
1615
1635
|
stroke: e.value.backgroundColor,
|
|
1616
1636
|
"stroke-width": e.value.barStrokeWidth,
|
|
1617
1637
|
"stroke-linecap": "round",
|
|
1618
|
-
class:
|
|
1638
|
+
class: fe({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !s(q) })
|
|
1619
1639
|
}, [
|
|
1620
1640
|
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (o(), n("animate", {
|
|
1621
1641
|
key: 0,
|
|
@@ -1638,17 +1658,17 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1638
1658
|
(o(!0), n(x, null, T(v.value.dataset, (t, l) => (o(), n(x, null, [
|
|
1639
1659
|
(o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("text", {
|
|
1640
1660
|
x: u.x + u.width / 2,
|
|
1641
|
-
y: s(
|
|
1661
|
+
y: s(se)(u.y) - e.value.dataLabelFontSize / 2,
|
|
1642
1662
|
"text-anchor": "middle",
|
|
1643
1663
|
"font-size": e.value.dataLabelFontSize,
|
|
1644
1664
|
fill: t.color,
|
|
1645
1665
|
class: "quick-animation"
|
|
1646
|
-
},
|
|
1666
|
+
}, V(s(re)(
|
|
1647
1667
|
e.value.formatter,
|
|
1648
|
-
s(
|
|
1649
|
-
s(
|
|
1668
|
+
s(se)(u.value),
|
|
1669
|
+
s(Y)({
|
|
1650
1670
|
p: e.value.valuePrefix,
|
|
1651
|
-
v: s(
|
|
1671
|
+
v: s(se)(u.value),
|
|
1652
1672
|
s: e.value.valueSuffix,
|
|
1653
1673
|
r: e.value.dataLabelRoundingValue
|
|
1654
1674
|
}),
|
|
@@ -1662,8 +1682,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1662
1682
|
y: v.value.drawingArea.top,
|
|
1663
1683
|
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
1664
1684
|
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1665
|
-
fill: [
|
|
1666
|
-
style:
|
|
1685
|
+
fill: [oe.value, ie.value].includes(l) ? e.value.xyHighlighterColor : "transparent",
|
|
1686
|
+
style: D(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1667
1687
|
onMouseenter: (u) => v.value.useTooltip(l),
|
|
1668
1688
|
onMouseleave: (u) => v.value.killTooltip(l),
|
|
1669
1689
|
onClick: (u) => v.value.selectDatapoint(l)
|
|
@@ -1682,7 +1702,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1682
1702
|
"text-anchor": "middle",
|
|
1683
1703
|
x: c.value.drawingArea.left + c.value.drawingArea.width / 2,
|
|
1684
1704
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1685
|
-
},
|
|
1705
|
+
}, V(e.value.xAxisLabel), 9, ho)
|
|
1686
1706
|
], 512)) : m("", !0),
|
|
1687
1707
|
e.value.xAxisLabel && C.value === A.BAR ? (o(), n("g", {
|
|
1688
1708
|
key: 1,
|
|
@@ -1695,7 +1715,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1695
1715
|
"text-anchor": "middle",
|
|
1696
1716
|
x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
|
|
1697
1717
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1698
|
-
},
|
|
1718
|
+
}, V(e.value.xAxisLabel), 9, mo)
|
|
1699
1719
|
], 512)) : m("", !0),
|
|
1700
1720
|
e.value.yAxisLabel && C.value === A.LINE ? (o(), n("g", {
|
|
1701
1721
|
key: 2,
|
|
@@ -1707,7 +1727,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1707
1727
|
fill: e.value.color,
|
|
1708
1728
|
transform: `translate(${e.value.axisLabelsFontSize}, ${c.value.drawingArea.top + c.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1709
1729
|
"text-anchor": "middle"
|
|
1710
|
-
},
|
|
1730
|
+
}, V(e.value.yAxisLabel), 9, go)
|
|
1711
1731
|
], 512)) : m("", !0),
|
|
1712
1732
|
e.value.yAxisLabel && C.value === A.BAR ? (o(), n("g", {
|
|
1713
1733
|
key: 3,
|
|
@@ -1719,12 +1739,12 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1719
1739
|
fill: e.value.color,
|
|
1720
1740
|
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1721
1741
|
"text-anchor": "middle"
|
|
1722
|
-
},
|
|
1742
|
+
}, V(e.value.yAxisLabel), 9, po)
|
|
1723
1743
|
], 512)) : m("", !0)
|
|
1724
1744
|
])) : m("", !0)
|
|
1725
1745
|
], 12, el)) : m("", !0),
|
|
1726
1746
|
a.$slots.watermark ? (o(), n("div", yo, [
|
|
1727
|
-
|
|
1747
|
+
R(a.$slots, "watermark", Q(K({ isPrinting: s(Be) || s(De) })), void 0, !0)
|
|
1728
1748
|
])) : m("", !0),
|
|
1729
1749
|
[A.BAR, A.LINE].includes(C.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (o(), n("div", {
|
|
1730
1750
|
key: `slicer_${Fe.value}`,
|
|
@@ -1739,8 +1759,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1739
1759
|
borderColor: e.value.backgroundColor,
|
|
1740
1760
|
fontSize: e.value.zoomFontSize,
|
|
1741
1761
|
useResetSlot: e.value.zoomUseResetSlot,
|
|
1742
|
-
labelLeft: e.value.xyPeriods[y.value.start] ?
|
|
1743
|
-
labelRight: e.value.xyPeriods[y.value.end - 1] ?
|
|
1762
|
+
labelLeft: e.value.xyPeriods[y.value.start] ? te.value[0].text : "",
|
|
1763
|
+
labelRight: e.value.xyPeriods[y.value.end - 1] ? te.value.at(-1).text : "",
|
|
1744
1764
|
textColor: e.value.color,
|
|
1745
1765
|
inputColor: e.value.zoomColor,
|
|
1746
1766
|
selectColor: e.value.zoomHighlightColor,
|
|
@@ -1756,7 +1776,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1756
1776
|
minimap: aa.value,
|
|
1757
1777
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1758
1778
|
verticalHandles: e.value.zoomMinimap.verticalHandles,
|
|
1759
|
-
minimapSelectedIndex:
|
|
1779
|
+
minimapSelectedIndex: ie.value,
|
|
1760
1780
|
start: y.value.start,
|
|
1761
1781
|
"onUpdate:start": r[0] || (r[0] = (t) => y.value.start = t),
|
|
1762
1782
|
end: y.value.end,
|
|
@@ -1774,51 +1794,51 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1774
1794
|
onReset: ea,
|
|
1775
1795
|
onTrapMouse: Kt
|
|
1776
1796
|
}, {
|
|
1777
|
-
"reset-action":
|
|
1778
|
-
|
|
1797
|
+
"reset-action": G(({ reset: t }) => [
|
|
1798
|
+
R(a.$slots, "reset-action", Q(K({ reset: t })), void 0, !0)
|
|
1779
1799
|
]),
|
|
1780
1800
|
_: 3
|
|
1781
1801
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "verticalHandles", "minimapSelectedIndex", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "minimapCompact", "minimapMerged", "allMinimaps", "minimapFrameColor", "focusOnDrag", "focusRangeRatio"]))
|
|
1782
1802
|
])) : m("", !0),
|
|
1783
1803
|
$("div", {
|
|
1784
|
-
id: `legend-bottom-${
|
|
1804
|
+
id: `legend-bottom-${Z.value}`
|
|
1785
1805
|
}, null, 8, xo),
|
|
1786
1806
|
mt.value ? (o(), Ie(Sa, {
|
|
1787
1807
|
key: 7,
|
|
1788
|
-
to: e.value.legendPosition === "top" ? `#legend-top-${
|
|
1808
|
+
to: e.value.legendPosition === "top" ? `#legend-top-${Z.value}` : `#legend-bottom-${Z.value}`
|
|
1789
1809
|
}, [
|
|
1790
1810
|
e.value.showLegend ? (o(), n("div", {
|
|
1791
1811
|
key: 0,
|
|
1792
1812
|
ref_key: "quickChartLegend",
|
|
1793
1813
|
ref: vt,
|
|
1794
1814
|
class: "vue-ui-quick-chart-legend",
|
|
1795
|
-
style:
|
|
1815
|
+
style: D(`background:transparent;color:${e.value.color}`)
|
|
1796
1816
|
}, [
|
|
1797
1817
|
C.value === A.DONUT ? (o(!0), n(x, { key: 0 }, T(I.value.legend, (t, l) => (o(), n("div", {
|
|
1798
1818
|
class: "vue-ui-quick-chart-legend-item",
|
|
1799
1819
|
onClick: (u) => {
|
|
1800
1820
|
Qt(t, I.value.dataset), pe("selectLegend", t);
|
|
1801
1821
|
},
|
|
1802
|
-
style:
|
|
1822
|
+
style: D(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${_.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1803
1823
|
}, [
|
|
1804
|
-
e.value.useCustomLegend ?
|
|
1824
|
+
e.value.useCustomLegend ? R(a.$slots, "legend", nt({
|
|
1805
1825
|
key: 0,
|
|
1806
1826
|
ref_for: !0
|
|
1807
1827
|
}, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
|
|
1808
|
-
be(s(
|
|
1828
|
+
be(s(H), {
|
|
1809
1829
|
name: e.value.legendIcon,
|
|
1810
1830
|
stroke: t.color,
|
|
1811
1831
|
size: e.value.legendIconSize
|
|
1812
1832
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1813
1833
|
$("span", {
|
|
1814
|
-
style:
|
|
1815
|
-
},
|
|
1834
|
+
style: D(`font-size:${e.value.legendFontSize}px`)
|
|
1835
|
+
}, V(t.name), 5),
|
|
1816
1836
|
$("span", {
|
|
1817
|
-
style:
|
|
1818
|
-
},
|
|
1837
|
+
style: D(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1838
|
+
}, V(_.value.includes(t.id) ? "-" : s(re)(
|
|
1819
1839
|
e.value.formatter,
|
|
1820
1840
|
t.absoluteValue,
|
|
1821
|
-
s(
|
|
1841
|
+
s(Y)({
|
|
1822
1842
|
p: e.value.valuePrefix,
|
|
1823
1843
|
v: t.absoluteValue,
|
|
1824
1844
|
s: e.value.valueSuffix,
|
|
@@ -1828,14 +1848,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1828
1848
|
)), 5),
|
|
1829
1849
|
_.value.includes(t.id) ? (o(), n("span", {
|
|
1830
1850
|
key: 0,
|
|
1831
|
-
style:
|
|
1851
|
+
style: D(`font-size:${e.value.legendFontSize}px`)
|
|
1832
1852
|
}, " ( - % ) ", 4)) : Ue.value ? (o(), n("span", {
|
|
1833
1853
|
key: 1,
|
|
1834
|
-
style:
|
|
1854
|
+
style: D(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1835
1855
|
}, " ( - % ) ", 4)) : (o(), n("span", {
|
|
1836
1856
|
key: 2,
|
|
1837
|
-
style:
|
|
1838
|
-
}, " (" +
|
|
1857
|
+
style: D(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1858
|
+
}, " (" + V(s(Y)({
|
|
1839
1859
|
v: t.value / I.value.total * 100,
|
|
1840
1860
|
s: "%",
|
|
1841
1861
|
r: e.value.dataLabelRoundingPercentage
|
|
@@ -1847,20 +1867,20 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1847
1867
|
onClick: (u) => {
|
|
1848
1868
|
Lt(t.id, c.value.legend.length - 1), pe("selectLegend", t);
|
|
1849
1869
|
},
|
|
1850
|
-
style:
|
|
1870
|
+
style: D(`cursor: ${c.value.legend.length > 1 ? "pointer" : "default"}; opacity:${_.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1851
1871
|
}, [
|
|
1852
|
-
e.value.useCustomLegend ?
|
|
1872
|
+
e.value.useCustomLegend ? R(a.$slots, "legend", nt({
|
|
1853
1873
|
key: 0,
|
|
1854
1874
|
ref_for: !0
|
|
1855
1875
|
}, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
|
|
1856
|
-
be(s(
|
|
1876
|
+
be(s(H), {
|
|
1857
1877
|
name: e.value.legendIcon,
|
|
1858
1878
|
stroke: t.color,
|
|
1859
1879
|
size: e.value.legendIconSize
|
|
1860
1880
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1861
1881
|
$("span", {
|
|
1862
|
-
style:
|
|
1863
|
-
},
|
|
1882
|
+
style: D(`font-size:${e.value.legendFontSize}px`)
|
|
1883
|
+
}, V(t.name), 5)
|
|
1864
1884
|
], 64))
|
|
1865
1885
|
], 12, bo))), 256)) : m("", !0),
|
|
1866
1886
|
C.value === A.BAR ? (o(!0), n(x, { key: 2 }, T(v.value.legend, (t, l) => (o(), n("div", {
|
|
@@ -1868,20 +1888,20 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1868
1888
|
onClick: (u) => {
|
|
1869
1889
|
Lt(t.id, v.value.legend.length - 1), pe("selectLegend", t);
|
|
1870
1890
|
},
|
|
1871
|
-
style:
|
|
1891
|
+
style: D(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${_.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1872
1892
|
}, [
|
|
1873
|
-
e.value.useCustomLegend ?
|
|
1893
|
+
e.value.useCustomLegend ? R(a.$slots, "legend", nt({
|
|
1874
1894
|
key: 0,
|
|
1875
1895
|
ref_for: !0
|
|
1876
1896
|
}, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
|
|
1877
|
-
be(s(
|
|
1897
|
+
be(s(H), {
|
|
1878
1898
|
name: e.value.legendIcon,
|
|
1879
1899
|
stroke: t.color,
|
|
1880
1900
|
size: e.value.legendIconSize
|
|
1881
1901
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1882
1902
|
$("span", {
|
|
1883
|
-
style:
|
|
1884
|
-
},
|
|
1903
|
+
style: D(`font-size:${e.value.legendFontSize}px`)
|
|
1904
|
+
}, V(t.name), 5)
|
|
1885
1905
|
], 64))
|
|
1886
1906
|
], 12, So))), 256)) : m("", !0)
|
|
1887
1907
|
], 4)) : m("", !0)
|
|
@@ -1892,10 +1912,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1892
1912
|
ref: ct,
|
|
1893
1913
|
dir: "auto"
|
|
1894
1914
|
}, [
|
|
1895
|
-
|
|
1915
|
+
R(a.$slots, "source", {}, void 0, !0)
|
|
1896
1916
|
], 512)) : m("", !0),
|
|
1897
1917
|
be(s(Se), {
|
|
1898
|
-
show: ye.value.showTooltip &&
|
|
1918
|
+
show: ye.value.showTooltip && he.value,
|
|
1899
1919
|
backgroundColor: e.value.backgroundColor,
|
|
1900
1920
|
color: e.value.color,
|
|
1901
1921
|
borderRadius: e.value.tooltipBorderRadius,
|
|
@@ -1905,8 +1925,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1905
1925
|
backgroundOpacity: e.value.tooltipBackgroundOpacity,
|
|
1906
1926
|
position: e.value.tooltipPosition,
|
|
1907
1927
|
offsetY: e.value.tooltipOffsetY,
|
|
1908
|
-
parent:
|
|
1909
|
-
content:
|
|
1928
|
+
parent: N.value,
|
|
1929
|
+
content: me.value,
|
|
1910
1930
|
isFullscreen: qe.value,
|
|
1911
1931
|
isCustom: s(Ge)(e.value.tooltipCustomFormat),
|
|
1912
1932
|
smooth: e.value.tooltipSmooth,
|
|
@@ -1914,24 +1934,24 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1914
1934
|
smoothSnapThreshold: e.value.tooltipSmoothSnapThreshold,
|
|
1915
1935
|
backdropFilter: e.value.tooltipBackdropFilter
|
|
1916
1936
|
}, {
|
|
1917
|
-
"tooltip-before":
|
|
1918
|
-
|
|
1937
|
+
"tooltip-before": G(() => [
|
|
1938
|
+
R(a.$slots, "tooltip-before", Q(K({ ...we.value })), void 0, !0)
|
|
1919
1939
|
]),
|
|
1920
|
-
"tooltip-after":
|
|
1921
|
-
|
|
1940
|
+
"tooltip-after": G(() => [
|
|
1941
|
+
R(a.$slots, "tooltip-after", Q(K({ ...we.value })), void 0, !0)
|
|
1922
1942
|
]),
|
|
1923
1943
|
_: 3
|
|
1924
1944
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "smoothForce", "smoothSnapThreshold", "backdropFilter"]),
|
|
1925
|
-
s(
|
|
1945
|
+
s(q) ? (o(), Ie(Ma, { key: 9 })) : m("", !0)
|
|
1926
1946
|
], 46, Qa)) : (o(), n("div", wo, [
|
|
1927
|
-
be(s(
|
|
1947
|
+
be(s(H), {
|
|
1928
1948
|
name: "circleCancel",
|
|
1929
1949
|
stroke: "red"
|
|
1930
1950
|
}),
|
|
1931
1951
|
r[5] || (r[5] = $("span", null, "Dataset is not processable", -1))
|
|
1932
1952
|
]));
|
|
1933
1953
|
}
|
|
1934
|
-
}, Bo = /* @__PURE__ */ Wa(Ao, [["__scopeId", "data-v-
|
|
1954
|
+
}, Bo = /* @__PURE__ */ Wa(Ao, [["__scopeId", "data-v-63e8b40f"]]);
|
|
1935
1955
|
export {
|
|
1936
1956
|
Bo as default
|
|
1937
1957
|
};
|