vue-data-ui 3.1.13 → 3.1.15
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/{Arrow-CVLA4XvK.js → Arrow-BwVAy_Jw.js} +1 -1
- package/dist/{BaseDraggableDialog-R8VpARJu.js → BaseDraggableDialog-TS2ANP8W.js} +2 -2
- package/dist/{BaseIcon-CBGEVS_a.js → BaseIcon-Dj9csjZa.js} +1 -1
- package/dist/{ColorPicker-YzV_LGZx.js → ColorPicker-BKecww2B.js} +2 -2
- package/dist/{DataTable-DQRJv8EE.js → DataTable-DAc2s9Wi.js} +2 -2
- package/dist/{Legend-CC3LegoH.js → Legend-C3Kvktr3.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CmIOGkib.js → NonSvgPenAndPaper-yA6HCA0i.js} +3 -3
- package/dist/{PackageVersion-bFI66Iee.js → PackageVersion-DL0EOwRR.js} +1 -1
- package/dist/{PenAndPaper-CHT5QaP8.js → PenAndPaper-CcoAkH79.js} +3 -3
- package/dist/{Shape-BWIW_Vmn.js → Shape-CziAQ1KL.js} +1 -1
- package/dist/Slicer-BMgEyKMg.js +995 -0
- package/dist/{SparkTooltip-BP53cKq5.js → SparkTooltip-BGqC2VSH.js} +1 -1
- package/dist/{Title-BKsDkvCV.js → Title-DRhv9bCG.js} +1 -1
- package/dist/{Tooltip-BA5KTZ2e.js → Tooltip-B46L8jx5.js} +1 -1
- package/dist/{UserOptions-usqWO4wC.js → UserOptions-CmhyvH7T.js} +2 -2
- package/dist/{dom-to-png-BnO878iN.js → dom-to-png-B2G1VN03.js} +1 -1
- package/dist/{img-CVbbqgGH.js → img-CRdZ0dzP.js} +1 -1
- package/dist/{index-CdN9MkL7.js → index-BS0jZusk.js} +871 -835
- package/dist/{pdf-D8ryJvtA.js → pdf-Gz1SfU0n.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CXgpnPOp.js → useAutoSizeLabelsInsideViewbox-BPbMPvCk.js} +1 -1
- package/dist/{useNestedProp-oNhYagej.js → useNestedProp-BMfS1Wmb.js} +1 -1
- package/dist/{usePrinter-CLVErK_G.js → usePrinter-CsKq2kgt.js} +2 -2
- package/dist/{vue-data-ui-ESVJfqTI.js → vue-data-ui-BfnOSsYj.js} +64 -64
- package/dist/vue-data-ui.js +9 -9
- package/dist/{vue-ui-3d-bar-BEColjG7.js → vue-ui-3d-bar-BR_dgJX1.js} +6 -6
- package/dist/{vue-ui-accordion-BoGANFKn.js → vue-ui-accordion-CEzzDwYU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D4hV5Mm5.js → vue-ui-age-pyramid-CqzjgMzW.js} +6 -6
- package/dist/{vue-ui-annotator-Bd14Ihi4.js → vue-ui-annotator-OWSjXDfI.js} +2 -2
- package/dist/{vue-ui-bullet-B3HG400j.js → vue-ui-bullet-BkiVGK4U.js} +7 -7
- package/dist/{vue-ui-candlestick-B6l4oAdh.js → vue-ui-candlestick-CE9w-lrK.js} +140 -138
- package/dist/{vue-ui-carousel-table-vCbymZEo.js → vue-ui-carousel-table-DzMkFu9a.js} +4 -4
- package/dist/{vue-ui-chestnut-BQ6iufUt.js → vue-ui-chestnut-CwW3t_5M.js} +5 -5
- package/dist/{vue-ui-chord-DW8T8npL.js → vue-ui-chord-C273Dy7g.js} +8 -8
- package/dist/{vue-ui-circle-pack-DjWtxYMQ.js → vue-ui-circle-pack-DVsgg20A.js} +6 -6
- package/dist/{vue-ui-cursor-CtBfAk5K.js → vue-ui-cursor-6wDMRfxj.js} +2 -2
- package/dist/{vue-ui-dashboard-CWuz7g2D.js → vue-ui-dashboard-Dr3da_KZ.js} +67 -67
- package/dist/{vue-ui-digits-D1b_EIv1.js → vue-ui-digits-CJl9xG57.js} +2 -2
- package/dist/{vue-ui-donut-BwdvzYGF.js → vue-ui-donut-CKvoDpr0.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DXbshH8-.js → vue-ui-donut-evolution-B8z5HW6k.js} +62 -60
- package/dist/{vue-ui-dumbbell-Bt2y7QMw.js → vue-ui-dumbbell-C-aWCVEj.js} +7 -7
- package/dist/{vue-ui-flow-CiG_qIh_.js → vue-ui-flow-Cg0W7WX3.js} +7 -7
- package/dist/{vue-ui-funnel-BGCE6fqp.js → vue-ui-funnel-CfzyjhfB.js} +6 -6
- package/dist/{vue-ui-galaxy-BCEyVfRW.js → vue-ui-galaxy-CzswoWLZ.js} +7 -7
- package/dist/{vue-ui-gauge-Cfq8G4nD.js → vue-ui-gauge-BguKCg0e.js} +7 -7
- package/dist/{vue-ui-gizmo-CBOoJgxB.js → vue-ui-gizmo-mhU06gyJ.js} +3 -3
- package/dist/{vue-ui-heatmap-BefuX3hT.js → vue-ui-heatmap-BtAAQWmE.js} +7 -7
- package/dist/{vue-ui-history-plot-BqLyfnJn.js → vue-ui-history-plot-Clrvd4ZQ.js} +7 -7
- package/dist/{vue-ui-kpi-6IbtwB7F.js → vue-ui-kpi-DGpQpP2W.js} +3 -3
- package/dist/{vue-ui-mini-loader-BwbFaE7B.js → vue-ui-mini-loader-2zvIBunp.js} +2 -2
- package/dist/{vue-ui-molecule-BbhQfFdx.js → vue-ui-molecule-DKgiZcBp.js} +5 -5
- package/dist/{vue-ui-mood-radar-B-wVmA-t.js → vue-ui-mood-radar-ka0RoCHN.js} +7 -7
- package/dist/{vue-ui-nested-donuts-qKtWmJsI.js → vue-ui-nested-donuts-CvROIWCn.js} +7 -7
- package/dist/{vue-ui-onion-BpbpizLk.js → vue-ui-onion-x5qCIJUe.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-BFK9LT6V.js → vue-ui-parallel-coordinate-plot-BaNQTR7G.js} +8 -8
- package/dist/{vue-ui-quadrant-D6_0xe-_.js → vue-ui-quadrant-Bde3xKLu.js} +8 -8
- package/dist/{vue-ui-quick-chart-Du7852v9.js → vue-ui-quick-chart-BpHyBn7x.js} +115 -113
- package/dist/{vue-ui-radar-kEKg-NL7.js → vue-ui-radar-DP3ErImt.js} +8 -8
- package/dist/{vue-ui-rating-7yatRVbx.js → vue-ui-rating-DCL2xb9w.js} +2 -2
- package/dist/{vue-ui-relation-circle-_1W7NdYE.js → vue-ui-relation-circle-COt79-GJ.js} +7 -7
- package/dist/{vue-ui-ridgeline-BSAVhIDE.js → vue-ui-ridgeline-Dcrii6_n.js} +8 -8
- package/dist/{vue-ui-rings-jK9EjGrJ.js → vue-ui-rings-CiDYRQIj.js} +8 -8
- package/dist/{vue-ui-scatter-BPthb9-8.js → vue-ui-scatter-D8bk6KJw.js} +8 -8
- package/dist/{vue-ui-skeleton-VW0h-sRm.js → vue-ui-skeleton-DZN6Q2RW.js} +3 -3
- package/dist/{vue-ui-smiley-DLOiHo-v.js → vue-ui-smiley-a9aOACpQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-BIYEAoE_.js → vue-ui-spark-trend-D2ySMA8w.js} +3 -3
- package/dist/{vue-ui-sparkbar-BfTF_hnD.js → vue-ui-sparkbar-CPKbBS4x.js} +3 -3
- package/dist/{vue-ui-sparkgauge-chrEmdPw.js → vue-ui-sparkgauge-YgppX8cI.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Dr0-iYVk.js → vue-ui-sparkhistogram-BT-Pb999.js} +4 -4
- package/dist/{vue-ui-sparkline-B-R7lTuD.js → vue-ui-sparkline-DE_nT4bC.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CGTlNpJY.js → vue-ui-sparkstackbar-3MV7U6sR.js} +3 -3
- package/dist/{vue-ui-stackbar-Dl2ks6xV.js → vue-ui-stackbar-wfRiGYFu.js} +54 -52
- package/dist/{vue-ui-strip-plot-DyCzm2FQ.js → vue-ui-strip-plot-BYDBbI0O.js} +7 -7
- package/dist/{vue-ui-table-heatmap-Cy56aBvN.js → vue-ui-table-heatmap-hOIbFD6k.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BYoEkczS.js → vue-ui-table-sparkline-DNnOTTBh.js} +4 -4
- package/dist/{vue-ui-table-CMxWcytp.js → vue-ui-table-xG0KcrLD.js} +4 -4
- package/dist/{vue-ui-thermometer-B7wec2mE.js → vue-ui-thermometer-C8kZDjnk.js} +7 -7
- package/dist/{vue-ui-timer-CE61Pm8_.js → vue-ui-timer-BZxcYfbP.js} +5 -5
- package/dist/{vue-ui-tiremarks-BKfbwgE0.js → vue-ui-tiremarks-D5mpDWUN.js} +6 -6
- package/dist/{vue-ui-treemap-CDgTxZQG.js → vue-ui-treemap-RPa_dvoO.js} +8 -8
- package/dist/{vue-ui-vertical-bar-BDU24Fw1.js → vue-ui-vertical-bar-OwkTXcnm.js} +9 -9
- package/dist/{vue-ui-waffle-hdT1HxNy.js → vue-ui-waffle-DveHx6kc.js} +8 -8
- package/dist/{vue-ui-wheel-CB5VCBnY.js → vue-ui-wheel-Cyk4SL64.js} +6 -6
- package/dist/{vue-ui-word-cloud-BGmRwhgL.js → vue-ui-word-cloud-BNmS-vjj.js} +6 -6
- package/dist/{vue-ui-world-Dgo59nPi.js → vue-ui-world-BhB1K_eL.js} +6 -6
- package/dist/vue-ui-xy-CfuSMzgb.js +4510 -0
- package/dist/{vue-ui-xy-canvas--NNe3yOn.js → vue-ui-xy-canvas-BFgpcPZ3.js} +132 -130
- package/package.json +1 -1
- package/dist/Slicer-C7BMIgYA.js +0 -972
- package/dist/vue-ui-xy-C9oTa60U.js +0 -4530
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as Ce, ref as A, computed as N, toRefs as la, watch as $e, shallowRef as It, onMounted as oa, onBeforeUnmount as Et, nextTick as Tt, watchEffect as na, createElementBlock as o, openBlock as l, normalizeStyle as
|
|
2
|
-
import { u as ra, c as sa, t as va, a as da, p as G, b as ca, C as He, d as ha, G as fa, f as ma, o as ga, e as tt, m as pa, D as Pt, X as xa, n as ya, q as at, r as Ee, k as ae, i as W, I as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as ba } from "./usePrinter-
|
|
5
|
-
import { u as Ft } from "./useNestedProp-
|
|
1
|
+
import { defineAsyncComponent as Ce, ref as A, computed as N, toRefs as la, watch as $e, shallowRef as It, onMounted as oa, onBeforeUnmount as Et, nextTick as Tt, watchEffect as na, createElementBlock as o, openBlock as l, normalizeStyle as R, normalizeClass as ce, createBlock as Ie, createCommentVNode as m, createElementVNode as _, createVNode as ke, unref as r, createSlots as ia, withCtx as te, renderSlot as U, normalizeProps as he, guardReactiveProps as fe, toDisplayString as F, Fragment as p, renderList as I, Teleport as ua, mergeProps as et } from "vue";
|
|
2
|
+
import { u as ra, c as sa, t as va, a as da, p as G, b as ca, C as He, d as ha, G as fa, f as ma, o as ga, e as tt, m as pa, D as Pt, X as xa, n as ya, q as at, r as Ee, k as ae, i as W, I as Rt, V as Mt, h as le, y as qe, z as lt } from "./index-BS0jZusk.js";
|
|
3
|
+
import { t as Ot, u as ka } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ba } from "./usePrinter-CsKq2kgt.js";
|
|
5
|
+
import { u as Ft } from "./useNestedProp-BMfS1Wmb.js";
|
|
6
6
|
import { u as Sa } from "./useTimeLabels-BGFjWgrv.js";
|
|
7
7
|
import { u as wa } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
8
|
import { u as Aa } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
-
import La from "./img-
|
|
10
|
-
import { S as _a } from "./Slicer-
|
|
9
|
+
import La from "./img-CRdZ0dzP.js";
|
|
10
|
+
import { S as _a } from "./Slicer-BMgEyKMg.js";
|
|
11
11
|
import { u as za, B as Ca } from "./BaseScanner-BgWxam9d.js";
|
|
12
12
|
import { _ as $a } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const L = {
|
|
@@ -16,21 +16,21 @@ const L = {
|
|
|
16
16
|
DONUT: "DONUT"
|
|
17
17
|
}, Ia = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
18
18
|
function Ea({ dataset: h, barLineSwitch: P = 6, debug: S = !0 }) {
|
|
19
|
-
let
|
|
20
|
-
if ((typeof h == "number" || typeof h == "string") && S && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Xe(h) && (oe(h) && (h.length < P ?
|
|
19
|
+
let D = null, H = null, ne = 0;
|
|
20
|
+
if ((typeof h == "number" || typeof h == "string") && S && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Xe(h) && (oe(h) && (h.length < P ? D = L.BAR : D = L.LINE, H = h, ne = h.length), We(h))) {
|
|
21
21
|
if (!Pa(h))
|
|
22
22
|
return S && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
23
|
-
const je = Object.keys(h[0]),
|
|
24
|
-
if (!je.some((
|
|
23
|
+
const je = Object.keys(h[0]), O = Object.values(h[0]);
|
|
24
|
+
if (!je.some((M) => Ra(M)))
|
|
25
25
|
return S && 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;
|
|
26
|
-
Nt(
|
|
27
|
-
...
|
|
28
|
-
data:
|
|
29
|
-
}))), h = h.map((
|
|
26
|
+
Nt(O, (M) => typeof M == "number") && (D = L.DONUT, H = h), Nt(O, (M) => Array.isArray(M) && oe(M)) && (Dt(h) > P ? D = L.LINE : D = L.BAR, ne = Dt(h), H = h.map((M) => ({
|
|
27
|
+
...M,
|
|
28
|
+
data: Ma(M, (Te) => oe(Te))
|
|
29
|
+
}))), h = h.map((M) => Bt(M)), H = H.map((M) => Bt(M));
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
32
|
dataset: h,
|
|
33
|
-
type:
|
|
33
|
+
type: D,
|
|
34
34
|
usableDataset: H,
|
|
35
35
|
maxSeriesLength: ne
|
|
36
36
|
};
|
|
@@ -50,11 +50,11 @@ function We(h) {
|
|
|
50
50
|
return !Xe(h) || Ut(h) || !![...new Set(h.flatMap((S) => typeof S == "object" && !Array.isArray(S)))].includes(!1) ? !1 : !h.map((S) => Object.keys(S).length > 0).includes(!1);
|
|
51
51
|
}
|
|
52
52
|
function Ta(h, P) {
|
|
53
|
-
const S = Object.keys(h).sort(),
|
|
54
|
-
if (S.length !==
|
|
53
|
+
const S = Object.keys(h).sort(), D = Object.keys(P).sort();
|
|
54
|
+
if (S.length !== D.length)
|
|
55
55
|
return !1;
|
|
56
56
|
for (let H = 0; H < S.length; H += 1) {
|
|
57
|
-
const ne = S[H], be =
|
|
57
|
+
const ne = S[H], be = D[H];
|
|
58
58
|
if (ne !== be || typeof h[ne] != typeof P[be])
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
@@ -68,28 +68,28 @@ function Pa(h) {
|
|
|
68
68
|
return !1;
|
|
69
69
|
return !0;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Ra(h) {
|
|
72
72
|
return Ia.includes(h.toUpperCase());
|
|
73
73
|
}
|
|
74
74
|
function Nt(h, P) {
|
|
75
75
|
let S = [];
|
|
76
|
-
for (let
|
|
77
|
-
S.push(P(h[
|
|
76
|
+
for (let D = 0; D < h.length; D += 1)
|
|
77
|
+
S.push(P(h[D]));
|
|
78
78
|
return S.includes(!0);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Dt(h) {
|
|
81
81
|
return Math.max(...[...h].flatMap((P) => Object.values(P).filter((S) => oe(S)).map((S) => S.length)));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Ma(h, P) {
|
|
84
84
|
return Object.values(h).filter((S) => P(S))[0];
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Bt(h) {
|
|
87
87
|
const P = {};
|
|
88
88
|
for (let S in h)
|
|
89
89
|
h.hasOwnProperty(S) && (P[S.toUpperCase()] = h[S]);
|
|
90
90
|
return P;
|
|
91
91
|
}
|
|
92
|
-
const
|
|
92
|
+
const Oa = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Da = ["x", "y", "width", "height"], Ba = ["x", "y", "width", "height"], Ua = ["width", "height"], Va = ["id"], Ha = ["id"], qa = ["id"], Wa = ["flood-color"], Xa = {
|
|
93
93
|
key: 0,
|
|
94
94
|
class: "donut-label-connectors"
|
|
95
95
|
}, ja = ["d", "stroke", "stroke-width", "filter"], Ga = ["cx", "cy", "r", "fill", "filter"], Ya = { class: "donut" }, Za = ["d", "fill", "stroke", "stroke-width", "filter"], Ja = ["d", "onMouseenter", "onMouseout", "onClick"], Qa = {
|
|
@@ -119,10 +119,10 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
119
119
|
}, Il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], El = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = {
|
|
120
120
|
key: 1,
|
|
121
121
|
class: "line-axis"
|
|
122
|
-
}, Pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"],
|
|
122
|
+
}, Pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ol = ["x", "y", "font-size", "fill"], Fl = {
|
|
123
123
|
key: 3,
|
|
124
124
|
class: "periodLabels"
|
|
125
|
-
}, Nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"],
|
|
125
|
+
}, Nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dl = { key: 0 }, Bl = ["font-size", "text-anchor", "fill", "transform"], Ul = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Vl = { class: "plots" }, Hl = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], ql = ["to"], Wl = ["from", "to"], Xl = {
|
|
126
126
|
key: 4,
|
|
127
127
|
class: "dataLabels"
|
|
128
128
|
}, jl = ["x", "y", "font-size", "fill"], Gl = {
|
|
@@ -155,8 +155,8 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
155
155
|
},
|
|
156
156
|
emits: ["selectDatapoint", "selectLegend"],
|
|
157
157
|
setup(h, { expose: P, emit: S }) {
|
|
158
|
-
const
|
|
159
|
-
...la(
|
|
158
|
+
const D = Ce(() => import("./BaseIcon-Dj9csjZa.js")), H = Ce(() => import("./PackageVersion-DL0EOwRR.js")), ne = Ce(() => import("./PenAndPaper-CcoAkH79.js")), be = Ce(() => import("./Tooltip-B46L8jx5.js")), ot = Ce(() => import("./UserOptions-CmhyvH7T.js")), { vue_ui_quick_chart: je } = ra(), O = h, M = A(null), Te = A(null), nt = A(null), it = A(null), X = A(sa()), re = A(!1), Se = A(null), se = A(""), Z = A(null), ut = A(null), rt = A(null), w = A([]), st = A(0), Pe = A(0), vt = A(!1), J = A(null), Re = A(null), dt = A(null), ct = A(null), Me = A("#FFFFFF"), e = A(Ze()), Ge = N(() => !!e.value.debug), { loading: B, FINAL_DATASET: Vt, manualLoading: ht } = za({
|
|
159
|
+
...la(O),
|
|
160
160
|
FINAL_CONFIG: e,
|
|
161
161
|
prepareConfig: Ze,
|
|
162
162
|
skeletonDataset: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89],
|
|
@@ -182,29 +182,29 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
182
182
|
zoomEndIndex: null
|
|
183
183
|
}
|
|
184
184
|
})
|
|
185
|
-
}), { svgRef: ft } = wa({ config: { text: e.value.title } }), Ht = N(() => e.value.showUserOptionsOnChartHover), mt = N(() => e.value.keepUserOptionsStateOnChartLeave),
|
|
185
|
+
}), { svgRef: ft } = wa({ config: { text: e.value.title } }), Ht = N(() => e.value.showUserOptionsOnChartHover), mt = N(() => e.value.keepUserOptionsStateOnChartLeave), Oe = A(!e.value.showUserOptionsOnChartHover), Ye = A(!1);
|
|
186
186
|
function gt(a = !1) {
|
|
187
|
-
Ye.value = a, Ht.value && (
|
|
187
|
+
Ye.value = a, Ht.value && (Oe.value = a);
|
|
188
188
|
}
|
|
189
189
|
function Ze() {
|
|
190
190
|
const a = Ft({
|
|
191
|
-
userConfig:
|
|
191
|
+
userConfig: O.config,
|
|
192
192
|
defaultConfig: je
|
|
193
193
|
});
|
|
194
194
|
let c = {};
|
|
195
195
|
return a.theme ? c = {
|
|
196
196
|
...Ft({
|
|
197
|
-
userConfig: ca.vue_ui_quick_chart[a.theme] ||
|
|
197
|
+
userConfig: ca.vue_ui_quick_chart[a.theme] || O.config,
|
|
198
198
|
defaultConfig: a
|
|
199
199
|
}),
|
|
200
200
|
customPalette: da[a.theme] || G
|
|
201
|
-
} : c = a,
|
|
201
|
+
} : c = a, O.config && He(O.config, "zoomStartIndex") ? c.zoomStartIndex = O.config.zoomStartIndex : c.zoomStartIndex = null, O.config && He(O.config, "zoomEndIndex") ? c.zoomEndIndex = O.config.zoomEndIndex : c.zoomEndIndex = null, O.config && !He(O.config, "donutStroke") ? He(O.config, "backgroundColor") ? Me.value = O.config.backgroundColor : Me.value = "#FFFFFF" : Me.value = O.config.donutStroke, c;
|
|
202
202
|
}
|
|
203
|
-
$e(() =>
|
|
204
|
-
|
|
205
|
-
}, { deep: !0 }), $e(() =>
|
|
203
|
+
$e(() => O.config, (a) => {
|
|
204
|
+
B.value || (e.value = Ze()), b.value.width = e.value.width, b.value.height = e.value.height, Oe.value = !e.value.showUserOptionsOnChartHover, yt(), ge.value.showTooltip = e.value.showTooltip;
|
|
205
|
+
}, { deep: !0 }), $e(() => O.dataset, (a) => {
|
|
206
206
|
k.value = Ae.value, g.value.start = 0, g.value.end = k.value.maxSeriesLength, Pe.value += 1;
|
|
207
|
-
}, { deep: !0 }), $e(() =>
|
|
207
|
+
}, { deep: !0 }), $e(() => O.dataset, (a) => {
|
|
208
208
|
Array.isArray(a) && a.length > 0 && (ht.value = !1);
|
|
209
209
|
}, { immediate: !0 });
|
|
210
210
|
const we = N(() => ha(e.value.customPalette)), me = S, Ae = N(() => {
|
|
@@ -245,10 +245,10 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
245
245
|
vt.value = !0, yt();
|
|
246
246
|
});
|
|
247
247
|
function yt() {
|
|
248
|
-
if (ga(
|
|
249
|
-
const a =
|
|
248
|
+
if (ga(O.dataset) || (ht.value = e.value.loading), e.value.responsive) {
|
|
249
|
+
const a = Ot(() => {
|
|
250
250
|
const { width: c, height: t } = ka({
|
|
251
|
-
chart:
|
|
251
|
+
chart: M.value,
|
|
252
252
|
title: e.value.title ? Te.value : null,
|
|
253
253
|
legend: e.value.showLegend ? nt.value : null,
|
|
254
254
|
slicer: [L.BAR, L.LINE].includes(C.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? it.value : null,
|
|
@@ -259,7 +259,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
259
259
|
b.value.width = c, b.value.height = t;
|
|
260
260
|
});
|
|
261
261
|
});
|
|
262
|
-
ie.value && (pe.value && ie.value.unobserve(pe.value), ie.value.disconnect()), ie.value = new ResizeObserver(a), pe.value =
|
|
262
|
+
ie.value && (pe.value && ie.value.unobserve(pe.value), ie.value.disconnect()), ie.value = new ResizeObserver(a), pe.value = M.value.parentNode, ie.value.observe(pe.value);
|
|
263
263
|
}
|
|
264
264
|
_t();
|
|
265
265
|
}
|
|
@@ -287,14 +287,14 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
287
287
|
function bt(a, c) {
|
|
288
288
|
w.value.includes(a) ? w.value = w.value.filter((t) => t !== a) : w.value.length < c && w.value.push(a);
|
|
289
289
|
}
|
|
290
|
-
const St = A(null), wt = A(null),
|
|
290
|
+
const St = A(null), wt = A(null), De = A(!1);
|
|
291
291
|
function jt(a, c) {
|
|
292
|
-
|
|
292
|
+
De.value = !0;
|
|
293
293
|
let t = a.value;
|
|
294
294
|
const i = Ae.value.dataset.find((u, x) => a.id === `donut_${x}`).VALUE;
|
|
295
295
|
if (w.value.includes(a.id)) {
|
|
296
296
|
let u = function() {
|
|
297
|
-
t > i ? (
|
|
297
|
+
t > i ? (De.value = !1, cancelAnimationFrame(wt.value), k.value = {
|
|
298
298
|
...k.value,
|
|
299
299
|
dataset: k.value.dataset.map((x, z) => a.id === `donut_${z}` ? {
|
|
300
300
|
...x,
|
|
@@ -313,7 +313,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
313
313
|
w.value = w.value.filter((x) => x !== a.id), u();
|
|
314
314
|
} else if (c.length > 1) {
|
|
315
315
|
let u = function() {
|
|
316
|
-
t < i / 100 ? (
|
|
316
|
+
t < i / 100 ? (De.value = !1, cancelAnimationFrame(St.value), w.value.push(a.id), k.value = {
|
|
317
317
|
...k.value,
|
|
318
318
|
dataset: k.value.dataset.map((x, z) => a.id === `donut_${z}` ? {
|
|
319
319
|
...x,
|
|
@@ -475,12 +475,12 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
475
475
|
});
|
|
476
476
|
function zt() {
|
|
477
477
|
let a = 0;
|
|
478
|
-
return
|
|
478
|
+
return Re.value && (a = Array.from(Re.value.querySelectorAll("text")).reduce((i, u) => {
|
|
479
479
|
const x = u.getComputedTextLength();
|
|
480
480
|
return x > i ? x : i;
|
|
481
481
|
}, 0)), a + 4;
|
|
482
482
|
}
|
|
483
|
-
const Je = A(0), Qt =
|
|
483
|
+
const Je = A(0), Qt = Ot((a) => {
|
|
484
484
|
Je.value = a;
|
|
485
485
|
}, 100);
|
|
486
486
|
na((a) => {
|
|
@@ -493,7 +493,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
493
493
|
}), Et(() => {
|
|
494
494
|
Je.value = 0;
|
|
495
495
|
});
|
|
496
|
-
const
|
|
496
|
+
const Be = N(() => {
|
|
497
497
|
let a = 0, c = 0;
|
|
498
498
|
return J.value && (c = Je.value), a + c;
|
|
499
499
|
}), d = N(() => {
|
|
@@ -511,9 +511,9 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
511
511
|
left: c + e.value.xyPaddingLeft,
|
|
512
512
|
top: e.value.xyPaddingTop,
|
|
513
513
|
right: a.width - e.value.xyPaddingRight,
|
|
514
|
-
bottom: a.height - e.value.xyPaddingBottom -
|
|
514
|
+
bottom: a.height - e.value.xyPaddingBottom - Be.value,
|
|
515
515
|
width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - c),
|
|
516
|
-
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom -
|
|
516
|
+
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Be.value)
|
|
517
517
|
};
|
|
518
518
|
let i = [];
|
|
519
519
|
oe(k.value.dataset) && (i = [
|
|
@@ -645,9 +645,9 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
645
645
|
left: c + e.value.xyPaddingLeft,
|
|
646
646
|
top: e.value.xyPaddingTop,
|
|
647
647
|
right: a.width - e.value.xyPaddingRight,
|
|
648
|
-
bottom: a.height - e.value.xyPaddingBottom -
|
|
648
|
+
bottom: a.height - e.value.xyPaddingBottom - Be.value,
|
|
649
649
|
width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - c),
|
|
650
|
-
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom -
|
|
650
|
+
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Be.value)
|
|
651
651
|
};
|
|
652
652
|
let i = [];
|
|
653
653
|
oe(k.value.dataset) && (i = [
|
|
@@ -810,8 +810,8 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
810
810
|
Ve.value = !Ve.value;
|
|
811
811
|
}
|
|
812
812
|
async function ea({ scale: a = 2 } = {}) {
|
|
813
|
-
if (!
|
|
814
|
-
const { width: c, height: t } =
|
|
813
|
+
if (!M.value) return;
|
|
814
|
+
const { width: c, height: t } = M.value.getBoundingClientRect(), i = c / t, { imageUri: u, base64: x } = await La({ domElement: M.value, base64: !0, img: !0, scale: a });
|
|
815
815
|
return {
|
|
816
816
|
imageUri: u,
|
|
817
817
|
base64: x,
|
|
@@ -844,9 +844,9 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
844
844
|
key: 0,
|
|
845
845
|
id: `${C.value}_${X.value}`,
|
|
846
846
|
ref_key: "quickChart",
|
|
847
|
-
ref:
|
|
847
|
+
ref: M,
|
|
848
848
|
class: ce({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Ue.value }),
|
|
849
|
-
style:
|
|
849
|
+
style: R(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
850
850
|
onMouseenter: c[2] || (c[2] = () => gt(!0)),
|
|
851
851
|
onMouseleave: c[3] || (c[3] = () => gt(!1))
|
|
852
852
|
}, [
|
|
@@ -865,7 +865,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
865
865
|
class: "vue-data-ui-no-title-space",
|
|
866
866
|
style: "height:36px; width: 100%;background:transparent"
|
|
867
867
|
}, null, 512)) : m("", !0),
|
|
868
|
-
e.value.showUserOptions && (mt.value ||
|
|
868
|
+
e.value.showUserOptions && (mt.value || Oe.value) ? (l(), Ie(r(ot), {
|
|
869
869
|
ref: "details",
|
|
870
870
|
key: `user_option_${st.value}`,
|
|
871
871
|
backgroundColor: e.value.backgroundColor,
|
|
@@ -881,7 +881,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
881
881
|
isTooltip: ge.value.showTooltip,
|
|
882
882
|
isFullscreen: Ue.value,
|
|
883
883
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
884
|
-
chartElement:
|
|
884
|
+
chartElement: M.value,
|
|
885
885
|
position: e.value.userOptionsPosition,
|
|
886
886
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
887
887
|
isAnnotation: Ve.value,
|
|
@@ -892,8 +892,8 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
892
892
|
onGenerateImage: r(xt),
|
|
893
893
|
onToggleTooltip: $t,
|
|
894
894
|
onToggleAnnotator: Qe,
|
|
895
|
-
style:
|
|
896
|
-
visibility: mt.value ?
|
|
895
|
+
style: R({
|
|
896
|
+
visibility: mt.value ? Oe.value ? "visible" : "hidden" : "visible"
|
|
897
897
|
})
|
|
898
898
|
}, ia({ _: 2 }, [
|
|
899
899
|
a.$slots.menuIcon ? {
|
|
@@ -944,7 +944,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
944
944
|
ref_key: "quickChartTitle",
|
|
945
945
|
ref: Te,
|
|
946
946
|
class: "vue-ui-quick-chart-title",
|
|
947
|
-
style:
|
|
947
|
+
style: R(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
948
948
|
}, F(e.value.title), 5)) : m("", !0),
|
|
949
949
|
_("div", {
|
|
950
950
|
id: `legend-top-${X.value}`
|
|
@@ -955,7 +955,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
955
955
|
ref: ft,
|
|
956
956
|
xmlns: r(xa),
|
|
957
957
|
viewBox: Xt.value,
|
|
958
|
-
style:
|
|
958
|
+
style: R(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
959
959
|
}, [
|
|
960
960
|
ke(r(H)),
|
|
961
961
|
a.$slots["chart-background"] && C.value === L.BAR ? (l(), o("foreignObject", {
|
|
@@ -969,7 +969,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
969
969
|
}
|
|
970
970
|
}, [
|
|
971
971
|
U(a.$slots, "chart-background", {}, void 0, !0)
|
|
972
|
-
], 8,
|
|
972
|
+
], 8, Da)) : m("", !0),
|
|
973
973
|
a.$slots["chart-background"] && C.value === L.LINE ? (l(), o("foreignObject", {
|
|
974
974
|
key: 1,
|
|
975
975
|
x: d.value.drawingArea.left,
|
|
@@ -981,7 +981,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
981
981
|
}
|
|
982
982
|
}, [
|
|
983
983
|
U(a.$slots, "chart-background", {}, void 0, !0)
|
|
984
|
-
], 8,
|
|
984
|
+
], 8, Ba)) : m("", !0),
|
|
985
985
|
a.$slots["chart-background"] && C.value === L.DONUT ? (l(), o("foreignObject", {
|
|
986
986
|
key: 2,
|
|
987
987
|
x: 0,
|
|
@@ -1051,7 +1051,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1051
1051
|
(l(!0), o(p, null, I(T.value.chart, (t, i) => (l(), o("path", {
|
|
1052
1052
|
d: t.arcSlice,
|
|
1053
1053
|
fill: t.color,
|
|
1054
|
-
stroke:
|
|
1054
|
+
stroke: Me.value,
|
|
1055
1055
|
"stroke-width": e.value.donutStrokeWidth,
|
|
1056
1056
|
filter: Le(t.id)
|
|
1057
1057
|
}, null, 8, Za))), 256)),
|
|
@@ -1175,7 +1175,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1175
1175
|
key: 2,
|
|
1176
1176
|
class: "yLabels",
|
|
1177
1177
|
ref_key: "scaleLabels",
|
|
1178
|
-
ref:
|
|
1178
|
+
ref: Re
|
|
1179
1179
|
}, [
|
|
1180
1180
|
(l(!0), o(p, null, I(d.value.yLabels, (t, i) => (l(), o(p, null, [
|
|
1181
1181
|
t.y <= d.value.drawingArea.bottom ? (l(), o("line", {
|
|
@@ -1235,7 +1235,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1235
1235
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1236
1236
|
fill: e.value.color,
|
|
1237
1237
|
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1238
|
-
innerHTML: r(
|
|
1238
|
+
innerHTML: r(Rt)({
|
|
1239
1239
|
content: String(t),
|
|
1240
1240
|
fontSize: e.value.xyLabelsXFontSize,
|
|
1241
1241
|
fill: e.value.color,
|
|
@@ -1258,22 +1258,22 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1258
1258
|
(l(!0), o(p, null, I(d.value.dataset, (t, i) => (l(), o("g", yl, [
|
|
1259
1259
|
e.value.lineSmooth ? (l(), o(p, { key: 0 }, [
|
|
1260
1260
|
_("path", {
|
|
1261
|
-
d: `M ${r(
|
|
1261
|
+
d: `M ${r(Mt)(t.coordinates)}`,
|
|
1262
1262
|
stroke: e.value.backgroundColor,
|
|
1263
1263
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1264
1264
|
"stroke-linecap": "round",
|
|
1265
1265
|
fill: "none",
|
|
1266
|
-
class: ce({ "quick-animation": !r(
|
|
1267
|
-
style:
|
|
1266
|
+
class: ce({ "quick-animation": !r(B), "vue-data-ui-line-animated": e.value.lineAnimated && !r(B) }),
|
|
1267
|
+
style: R({ transition: r(B) ? void 0 : "all 0.3s ease-in-out" })
|
|
1268
1268
|
}, null, 14, kl),
|
|
1269
1269
|
_("path", {
|
|
1270
|
-
d: `M ${r(
|
|
1270
|
+
d: `M ${r(Mt)(t.coordinates)}`,
|
|
1271
1271
|
stroke: t.color,
|
|
1272
1272
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1273
1273
|
"stroke-linecap": "round",
|
|
1274
1274
|
fill: "none",
|
|
1275
|
-
class: ce({ "quick-animation": !r(
|
|
1276
|
-
style:
|
|
1275
|
+
class: ce({ "quick-animation": !r(B), "vue-data-ui-line-animated": e.value.lineAnimated && !r(B) }),
|
|
1276
|
+
style: R({ transition: r(B) ? void 0 : "all 0.3s ease-in-out" })
|
|
1277
1277
|
}, null, 14, bl)
|
|
1278
1278
|
], 64)) : (l(), o(p, { key: 1 }, [
|
|
1279
1279
|
_("path", {
|
|
@@ -1282,8 +1282,8 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1282
1282
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1283
1283
|
"stroke-linecap": "round",
|
|
1284
1284
|
fill: "none",
|
|
1285
|
-
class: ce({ "quick-animation": !r(
|
|
1286
|
-
style:
|
|
1285
|
+
class: ce({ "quick-animation": !r(B), "vue-data-ui-line-animated": e.value.lineAnimated && !r(B) }),
|
|
1286
|
+
style: R({ transition: r(B) ? void 0 : "all 0.3s ease-in-out" })
|
|
1287
1287
|
}, null, 14, Sl),
|
|
1288
1288
|
_("path", {
|
|
1289
1289
|
d: `M ${t.linePath}`,
|
|
@@ -1291,8 +1291,8 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1291
1291
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1292
1292
|
"stroke-linecap": "round",
|
|
1293
1293
|
fill: "none",
|
|
1294
|
-
class: ce({ "quick-animation": !r(
|
|
1295
|
-
style:
|
|
1294
|
+
class: ce({ "quick-animation": !r(B), "vue-data-ui-line-animated": e.value.lineAnimated && !r(B) }),
|
|
1295
|
+
style: R({ transition: r(B) ? void 0 : "all 0.3s ease-in-out" })
|
|
1296
1296
|
}, null, 14, wl)
|
|
1297
1297
|
], 64)),
|
|
1298
1298
|
(l(!0), o(p, null, I(t.coordinates, (u, x) => (l(), o("circle", {
|
|
@@ -1302,8 +1302,8 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1302
1302
|
fill: t.color,
|
|
1303
1303
|
stroke: e.value.backgroundColor,
|
|
1304
1304
|
"stroke-width": "0.5",
|
|
1305
|
-
class: ce({ "quick-animation": !r(
|
|
1306
|
-
style:
|
|
1305
|
+
class: ce({ "quick-animation": !r(B) }),
|
|
1306
|
+
style: R({ transition: r(B) ? void 0 : "all 0.3s ease-in-out" })
|
|
1307
1307
|
}, null, 14, Al))), 256))
|
|
1308
1308
|
]))), 256))
|
|
1309
1309
|
]),
|
|
@@ -1316,7 +1316,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1316
1316
|
x: u.x,
|
|
1317
1317
|
y: r(le)(u.y) - e.value.dataLabelFontSize / 2,
|
|
1318
1318
|
class: "quick-animation",
|
|
1319
|
-
style:
|
|
1319
|
+
style: R({ transition: r(B) ? void 0 : "all 0.3s ease-in-out" })
|
|
1320
1320
|
}, F(r(ae)(
|
|
1321
1321
|
e.value.formatter,
|
|
1322
1322
|
r(le)(u.value),
|
|
@@ -1337,7 +1337,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1337
1337
|
height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
|
|
1338
1338
|
width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
|
|
1339
1339
|
fill: [Z.value, Q.value].includes(i) ? e.value.xyHighlighterColor : "transparent",
|
|
1340
|
-
style:
|
|
1340
|
+
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1341
1341
|
onMouseenter: (u) => d.value.useTooltip(i),
|
|
1342
1342
|
onMouseleave: (u) => d.value.killTooltip(i),
|
|
1343
1343
|
onClick: (u) => d.value.selectDatapoint(i)
|
|
@@ -1386,13 +1386,13 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1386
1386
|
stroke: e.value.xyAxisStroke,
|
|
1387
1387
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1388
1388
|
"stroke-linecap": "round"
|
|
1389
|
-
}, null, 8,
|
|
1389
|
+
}, null, 8, Rl)
|
|
1390
1390
|
])) : m("", !0),
|
|
1391
1391
|
e.value.xyShowScale ? (l(), o("g", {
|
|
1392
1392
|
key: 2,
|
|
1393
1393
|
class: "yLabels",
|
|
1394
1394
|
ref_key: "scaleLabels",
|
|
1395
|
-
ref:
|
|
1395
|
+
ref: Re
|
|
1396
1396
|
}, [
|
|
1397
1397
|
(l(!0), o(p, null, I(s.value.yLabels, (t, i) => (l(), o(p, null, [
|
|
1398
1398
|
t.y <= s.value.drawingArea.bottom ? (l(), o("line", {
|
|
@@ -1404,7 +1404,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1404
1404
|
stroke: e.value.xyAxisStroke,
|
|
1405
1405
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1406
1406
|
"stroke-linecap": "round"
|
|
1407
|
-
}, null, 8,
|
|
1407
|
+
}, null, 8, Ml)) : m("", !0),
|
|
1408
1408
|
t.y <= s.value.drawingArea.bottom ? (l(), o("text", {
|
|
1409
1409
|
key: 1,
|
|
1410
1410
|
x: t.x,
|
|
@@ -1422,7 +1422,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1422
1422
|
r: e.value.dataLabelRoundingValue
|
|
1423
1423
|
}),
|
|
1424
1424
|
{ datapoint: t, seriesIndex: i }
|
|
1425
|
-
)), 9,
|
|
1425
|
+
)), 9, Ol)) : m("", !0)
|
|
1426
1426
|
], 64))), 256))
|
|
1427
1427
|
], 512)) : m("", !0),
|
|
1428
1428
|
e.value.xyShowScale && e.value.xyPeriods.length ? (l(), o("g", Fl, [
|
|
@@ -1440,7 +1440,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1440
1440
|
ref: J
|
|
1441
1441
|
}, [
|
|
1442
1442
|
(l(!0), o(p, null, I(Y.value.map((t) => t.text), (t, i) => (l(), o(p, null, [
|
|
1443
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((g.value.end - g.value.start) / xe.value) === 0 || g.value.end - g.value.start <= xe.value ? (l(), o("g",
|
|
1443
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((g.value.end - g.value.start) / xe.value) === 0 || g.value.end - g.value.start <= xe.value ? (l(), o("g", Dl, [
|
|
1444
1444
|
String(t).includes(`
|
|
1445
1445
|
`) ? (l(), o("text", {
|
|
1446
1446
|
key: 1,
|
|
@@ -1449,7 +1449,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1449
1449
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1450
1450
|
fill: e.value.color,
|
|
1451
1451
|
transform: `translate(${s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2}, ${s.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1452
|
-
innerHTML: r(
|
|
1452
|
+
innerHTML: r(Rt)({
|
|
1453
1453
|
content: String(t),
|
|
1454
1454
|
fontSize: e.value.xyLabelsXFontSize,
|
|
1455
1455
|
fill: e.value.color,
|
|
@@ -1463,7 +1463,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1463
1463
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1464
1464
|
fill: e.value.color,
|
|
1465
1465
|
transform: `translate(${s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2}, ${s.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1466
|
-
}, F(t), 9,
|
|
1466
|
+
}, F(t), 9, Bl))
|
|
1467
1467
|
])) : m("", !0)
|
|
1468
1468
|
], 64))), 256))
|
|
1469
1469
|
], 512)
|
|
@@ -1479,7 +1479,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1479
1479
|
stroke: e.value.backgroundColor,
|
|
1480
1480
|
"stroke-width": e.value.barStrokeWidth,
|
|
1481
1481
|
"stroke-linecap": "round",
|
|
1482
|
-
class: ce({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !r(
|
|
1482
|
+
class: ce({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !r(B) })
|
|
1483
1483
|
}, [
|
|
1484
1484
|
e.value.barAnimated && u.value > 0 && !r(Fe) && !r(Ne) ? (l(), o("animate", {
|
|
1485
1485
|
key: 0,
|
|
@@ -1527,7 +1527,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1527
1527
|
height: s.value.drawingArea.height <= 0 ? 1e-5 : s.value.drawingArea.height,
|
|
1528
1528
|
width: s.value.slotSize <= 0 ? 1e-5 : s.value.slotSize,
|
|
1529
1529
|
fill: [Z.value, Q.value].includes(i) ? e.value.xyHighlighterColor : "transparent",
|
|
1530
|
-
style:
|
|
1530
|
+
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1531
1531
|
onMouseenter: (u) => s.value.useTooltip(i),
|
|
1532
1532
|
onMouseleave: (u) => s.value.killTooltip(i),
|
|
1533
1533
|
onClick: (u) => s.value.selectDatapoint(i)
|
|
@@ -1633,6 +1633,8 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1633
1633
|
minimapMerged: e.value.zoomMinimap.merged,
|
|
1634
1634
|
allMinimaps: Kt.value,
|
|
1635
1635
|
minimapFrameColor: e.value.zoomMinimap.frameColor,
|
|
1636
|
+
focusOnDrag: e.value.zoomFocusOnDrag,
|
|
1637
|
+
focusRangeRatio: e.value.zoomFocusRangeRatio,
|
|
1636
1638
|
onReset: Yt,
|
|
1637
1639
|
onTrapMouse: Gt
|
|
1638
1640
|
}, {
|
|
@@ -1640,7 +1642,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1640
1642
|
U(a.$slots, "reset-action", he(fe({ reset: t })), void 0, !0)
|
|
1641
1643
|
]),
|
|
1642
1644
|
_: 3
|
|
1643
|
-
}, 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"]))
|
|
1645
|
+
}, 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"]))
|
|
1644
1646
|
])) : m("", !0),
|
|
1645
1647
|
_("div", {
|
|
1646
1648
|
id: `legend-bottom-${X.value}`
|
|
@@ -1654,29 +1656,29 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1654
1656
|
ref_key: "quickChartLegend",
|
|
1655
1657
|
ref: nt,
|
|
1656
1658
|
class: "vue-ui-quick-chart-legend",
|
|
1657
|
-
style:
|
|
1659
|
+
style: R(`background:transparent;color:${e.value.color}`)
|
|
1658
1660
|
}, [
|
|
1659
1661
|
C.value === L.DONUT ? (l(!0), o(p, { key: 0 }, I(T.value.legend, (t, i) => (l(), o("div", {
|
|
1660
1662
|
class: "vue-ui-quick-chart-legend-item",
|
|
1661
1663
|
onClick: (u) => {
|
|
1662
1664
|
jt(t, T.value.dataset), me("selectLegend", t);
|
|
1663
1665
|
},
|
|
1664
|
-
style:
|
|
1666
|
+
style: R(`cursor: ${T.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1665
1667
|
}, [
|
|
1666
1668
|
e.value.useCustomLegend ? U(a.$slots, "legend", et({
|
|
1667
1669
|
key: 0,
|
|
1668
1670
|
ref_for: !0
|
|
1669
1671
|
}, { legend: t }), void 0, !0) : (l(), o(p, { key: 1 }, [
|
|
1670
|
-
ke(r(
|
|
1672
|
+
ke(r(D), {
|
|
1671
1673
|
name: e.value.legendIcon,
|
|
1672
1674
|
stroke: t.color,
|
|
1673
1675
|
size: e.value.legendIconSize
|
|
1674
1676
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1675
1677
|
_("span", {
|
|
1676
|
-
style:
|
|
1678
|
+
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1677
1679
|
}, F(t.name), 5),
|
|
1678
1680
|
_("span", {
|
|
1679
|
-
style:
|
|
1681
|
+
style: R(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1680
1682
|
}, F(w.value.includes(t.id) ? "-" : r(ae)(
|
|
1681
1683
|
e.value.formatter,
|
|
1682
1684
|
t.absoluteValue,
|
|
@@ -1690,13 +1692,13 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1690
1692
|
)), 5),
|
|
1691
1693
|
w.value.includes(t.id) ? (l(), o("span", {
|
|
1692
1694
|
key: 0,
|
|
1693
|
-
style:
|
|
1694
|
-
}, " ( - % ) ", 4)) :
|
|
1695
|
+
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1696
|
+
}, " ( - % ) ", 4)) : De.value ? (l(), o("span", {
|
|
1695
1697
|
key: 1,
|
|
1696
|
-
style:
|
|
1698
|
+
style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1697
1699
|
}, " ( - % ) ", 4)) : (l(), o("span", {
|
|
1698
1700
|
key: 2,
|
|
1699
|
-
style:
|
|
1701
|
+
style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1700
1702
|
}, " (" + F(r(W)({
|
|
1701
1703
|
v: t.value / T.value.total * 100,
|
|
1702
1704
|
s: "%",
|
|
@@ -1709,19 +1711,19 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1709
1711
|
onClick: (u) => {
|
|
1710
1712
|
bt(t.id, d.value.legend.length - 1), me("selectLegend", t);
|
|
1711
1713
|
},
|
|
1712
|
-
style:
|
|
1714
|
+
style: R(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1713
1715
|
}, [
|
|
1714
1716
|
e.value.useCustomLegend ? U(a.$slots, "legend", et({
|
|
1715
1717
|
key: 0,
|
|
1716
1718
|
ref_for: !0
|
|
1717
1719
|
}, { legend: t }), void 0, !0) : (l(), o(p, { key: 1 }, [
|
|
1718
|
-
ke(r(
|
|
1720
|
+
ke(r(D), {
|
|
1719
1721
|
name: e.value.legendIcon,
|
|
1720
1722
|
stroke: t.color,
|
|
1721
1723
|
size: e.value.legendIconSize
|
|
1722
1724
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1723
1725
|
_("span", {
|
|
1724
|
-
style:
|
|
1726
|
+
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1725
1727
|
}, F(t.name), 5)
|
|
1726
1728
|
], 64))
|
|
1727
1729
|
], 12, oo))), 256)) : m("", !0),
|
|
@@ -1730,19 +1732,19 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1730
1732
|
onClick: (u) => {
|
|
1731
1733
|
bt(t.id, s.value.legend.length - 1), me("selectLegend", t);
|
|
1732
1734
|
},
|
|
1733
|
-
style:
|
|
1735
|
+
style: R(`cursor: ${s.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1734
1736
|
}, [
|
|
1735
1737
|
e.value.useCustomLegend ? U(a.$slots, "legend", et({
|
|
1736
1738
|
key: 0,
|
|
1737
1739
|
ref_for: !0
|
|
1738
1740
|
}, { legend: t }), void 0, !0) : (l(), o(p, { key: 1 }, [
|
|
1739
|
-
ke(r(
|
|
1741
|
+
ke(r(D), {
|
|
1740
1742
|
name: e.value.legendIcon,
|
|
1741
1743
|
stroke: t.color,
|
|
1742
1744
|
size: e.value.legendIconSize
|
|
1743
1745
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1744
1746
|
_("span", {
|
|
1745
|
-
style:
|
|
1747
|
+
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1746
1748
|
}, F(t.name), 5)
|
|
1747
1749
|
], 64))
|
|
1748
1750
|
], 12, no))), 256)) : m("", !0)
|
|
@@ -1767,7 +1769,7 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1767
1769
|
backgroundOpacity: e.value.tooltipBackgroundOpacity,
|
|
1768
1770
|
position: e.value.tooltipPosition,
|
|
1769
1771
|
offsetY: e.value.tooltipOffsetY,
|
|
1770
|
-
parent:
|
|
1772
|
+
parent: M.value,
|
|
1771
1773
|
content: se.value,
|
|
1772
1774
|
isFullscreen: Ue.value,
|
|
1773
1775
|
isCustom: r(qe)(e.value.tooltipCustomFormat),
|
|
@@ -1784,16 +1786,16 @@ const Ra = ["id"], Fa = ["id"], Na = ["xmlns", "viewBox"], Ba = ["x", "y", "widt
|
|
|
1784
1786
|
]),
|
|
1785
1787
|
_: 3
|
|
1786
1788
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "smoothForce", "smoothSnapThreshold", "backdropFilter"]),
|
|
1787
|
-
r(
|
|
1788
|
-
], 46,
|
|
1789
|
-
ke(r(
|
|
1789
|
+
r(B) ? (l(), Ie(Ca, { key: 9 })) : m("", !0)
|
|
1790
|
+
], 46, Oa)) : (l(), o("div", io, [
|
|
1791
|
+
ke(r(D), {
|
|
1790
1792
|
name: "circleCancel",
|
|
1791
1793
|
stroke: "red"
|
|
1792
1794
|
}),
|
|
1793
1795
|
c[5] || (c[5] = _("span", null, "Dataset is not processable", -1))
|
|
1794
1796
|
]));
|
|
1795
1797
|
}
|
|
1796
|
-
}, bo = /* @__PURE__ */ $a(uo, [["__scopeId", "data-v-
|
|
1798
|
+
}, bo = /* @__PURE__ */ $a(uo, [["__scopeId", "data-v-13414fa9"]]);
|
|
1797
1799
|
export {
|
|
1798
1800
|
bo as default
|
|
1799
1801
|
};
|