vue-data-ui 3.0.0-next.54 → 3.0.0-next.56
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-LMYgGTUq.js → Arrow-Dr73vXkS.js} +1 -1
- package/dist/{BaseDraggableDialog-D6NKDVDd.js → BaseDraggableDialog-C94LH2gO.js} +2 -2
- package/dist/{BaseIcon-D1YxuTqn.js → BaseIcon-DVj5nedZ.js} +1 -1
- package/dist/{ColorPicker-Dqnk4Bis.js → ColorPicker-BmI1B2Ie.js} +2 -2
- package/dist/{DataTable-D1RPxkQn.js → DataTable-DIRgYyMk.js} +2 -2
- package/dist/{Legend-BBaTktyQ.js → Legend-Bm0VbPfX.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Dqp0PFOO.js → NonSvgPenAndPaper-B9qj2h1N.js} +3 -3
- package/dist/{PackageVersion-Dvivm8-r.js → PackageVersion-CmrjjMGu.js} +1 -1
- package/dist/{PenAndPaper-DaQWWpgs.js → PenAndPaper-CkxcaljP.js} +3 -3
- package/dist/{Shape-Dc4AHan7.js → Shape-PFacVGG6.js} +1 -1
- package/dist/{Slicer-viJHi_bq.js → Slicer-OzSjPeeA.js} +2 -2
- package/dist/{SparkTooltip-Ca7tsP2u.js → SparkTooltip-B5KxrXfj.js} +1 -1
- package/dist/{Title-Bnr--aA5.js → Title-CPlHadE3.js} +1 -1
- package/dist/{Tooltip-DSvSWahk.js → Tooltip-DfLg6pdN.js} +1 -1
- package/dist/{UserOptions-Dm91TR_d.js → UserOptions-Cvao0wOJ.js} +2 -2
- package/dist/{dom-to-png-DTwkx-9j.js → dom-to-png-D_YDAEr8.js} +1 -1
- package/dist/{img-Brj7vn--.js → img-BUkzDAPW.js} +1 -1
- package/dist/{index-B5FRcZLo.js → index-bTtbNszd.js} +706 -668
- package/dist/{pdf-s-J6FH3X.js → pdf-DH7vaP6J.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +42 -2
- package/dist/types/vue-data-ui.d.ts +42 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-xwIHroEq.js → useAutoSizeLabelsInsideViewbox-D78glQ57.js} +1 -1
- package/dist/{BaseScanner-DIK2NTdp.js → useLoading-Bt5Doa8m.js} +11 -11
- package/dist/useNestedProp-CYma7CyA.js +13 -0
- package/dist/{usePrinter-CHbm8PGD.js → usePrinter-Byfy8pVl.js} +2 -2
- package/dist/{vue-data-ui-jynIaHEu.js → vue-data-ui-BA5aCP0F.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-D8ONqED5.js +1323 -0
- package/dist/{vue-ui-accordion-h_xORY7m.js → vue-ui-accordion-CwsNjkyh.js} +3 -3
- package/dist/{vue-ui-age-pyramid-ByNg19-v.js → vue-ui-age-pyramid-DZ6AvPgA.js} +7 -7
- package/dist/{vue-ui-annotator-DHWKIAiw.js → vue-ui-annotator-BUUPzhqT.js} +2 -2
- package/dist/{vue-ui-bullet-D8QT8Bn3.js → vue-ui-bullet-DJ5o_J5c.js} +8 -8
- package/dist/{vue-ui-candlestick-Dfga6m-d.js → vue-ui-candlestick-DTOpUEUO.js} +8 -8
- package/dist/{vue-ui-carousel-table--OsqU2f2.js → vue-ui-carousel-table-D9h_e75T.js} +29 -29
- package/dist/{vue-ui-chestnut-Bos9_e2W.js → vue-ui-chestnut-T3gxdFRJ.js} +5 -5
- package/dist/{vue-ui-chord-CBxXikz5.js → vue-ui-chord-BXgJkrMP.js} +8 -8
- package/dist/{vue-ui-circle-pack-CA4h8PoX.js → vue-ui-circle-pack-CeDwV2pm.js} +42 -42
- package/dist/{vue-ui-cursor-D1e1-QTO.js → vue-ui-cursor-5EQyN1HC.js} +2 -2
- package/dist/{vue-ui-dashboard-CGLgntfH.js → vue-ui-dashboard-CRy1Qs01.js} +62 -62
- package/dist/{vue-ui-digits-CsO3Iczu.js → vue-ui-digits-wfErkCJ_.js} +2 -2
- package/dist/{vue-ui-donut-evolution-s6f_kN-K.js → vue-ui-donut-evolution-57R6hLc8.js} +9 -9
- package/dist/{vue-ui-donut-CkicdCC0.js → vue-ui-donut-fMNTVnoQ.js} +9 -9
- package/dist/vue-ui-dumbbell-Bb9EWdAh.js +1119 -0
- package/dist/{vue-ui-flow-BQUZA0Ci.js → vue-ui-flow-ZTN_1mhN.js} +8 -8
- package/dist/{vue-ui-funnel-BaJXfhkn.js → vue-ui-funnel-nrLWJgh7.js} +16 -16
- package/dist/{vue-ui-galaxy-AamRVENQ.js → vue-ui-galaxy-DqJRsXpE.js} +5 -5
- package/dist/{vue-ui-gauge-DwpIlS3L.js → vue-ui-gauge-DHpR-E7B.js} +8 -8
- package/dist/{vue-ui-gizmo-_LjeGmAP.js → vue-ui-gizmo-6QmhvBHc.js} +3 -3
- package/dist/{vue-ui-heatmap-C2LL_MI_.js → vue-ui-heatmap-DBCm73qw.js} +8 -8
- package/dist/{vue-ui-history-plot-BLxytFYc.js → vue-ui-history-plot-qan_4GRJ.js} +20 -20
- package/dist/{vue-ui-kpi-D2Pbj0bH.js → vue-ui-kpi-B-SrOVSP.js} +7 -7
- package/dist/{vue-ui-mini-loader-DlrRQmpO.js → vue-ui-mini-loader-C4x-pTjm.js} +2 -2
- package/dist/{vue-ui-molecule-BUJqDdqt.js → vue-ui-molecule-DEd1uTxl.js} +15 -15
- package/dist/{vue-ui-mood-radar-B3_UAmrH.js → vue-ui-mood-radar-CwoHDmS7.js} +15 -15
- package/dist/{vue-ui-nested-donuts-C6J6RswH.js → vue-ui-nested-donuts-DbFA4Z1s.js} +10 -10
- package/dist/{vue-ui-onion-BbABpEI9.js → vue-ui-onion-CG_mZFym.js} +24 -24
- package/dist/{vue-ui-parallel-coordinate-plot-DKg6Ksmk.js → vue-ui-parallel-coordinate-plot-jU6R5FJX.js} +9 -9
- package/dist/{vue-ui-quadrant-DKYW231A.js → vue-ui-quadrant-jvc98f1Q.js} +8 -8
- package/dist/{vue-ui-quick-chart-Dk8KMMWE.js → vue-ui-quick-chart-CB8cnyMU.js} +45 -45
- package/dist/{vue-ui-radar-JJJvDyH0.js → vue-ui-radar-Dbf8tizc.js} +25 -25
- package/dist/{vue-ui-rating-hbgc6VRD.js → vue-ui-rating-BTD7xrCK.js} +2 -2
- package/dist/{vue-ui-relation-circle-Btubhkqp.js → vue-ui-relation-circle-jErgm958.js} +6 -6
- package/dist/{vue-ui-ridgeline-zS0itk3r.js → vue-ui-ridgeline-we0epqNk.js} +9 -9
- package/dist/{vue-ui-rings-C6QI4vT_.js → vue-ui-rings-DJWTf1uZ.js} +20 -20
- package/dist/{vue-ui-scatter-C2kNKb55.js → vue-ui-scatter-C94FXact.js} +9 -9
- package/dist/{vue-ui-skeleton-CzVYh2n3.js → vue-ui-skeleton--VFckr1-.js} +3 -3
- package/dist/{vue-ui-smiley-BK28gGd8.js → vue-ui-smiley-DNj5p6hi.js} +26 -26
- package/dist/{vue-ui-spark-trend-CSypVrHj.js → vue-ui-spark-trend-BUKgFMV_.js} +3 -3
- package/dist/{vue-ui-sparkbar-Cn2ww9SA.js → vue-ui-sparkbar-DMjqw4dV.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D_q1ShxX.js → vue-ui-sparkgauge-BnWxrxBS.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DrWMDYwQ.js → vue-ui-sparkhistogram-7MSKip9i.js} +4 -4
- package/dist/{vue-ui-sparkline-B2EWoOpH.js → vue-ui-sparkline-C8NiPHel.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-dgtxtC-v.js → vue-ui-sparkstackbar-B4OrKV2_.js} +3 -3
- package/dist/{vue-ui-stackbar-BEPKt8t1.js → vue-ui-stackbar-BePLgZLL.js} +10 -10
- package/dist/{vue-ui-strip-plot-CGLaQrOE.js → vue-ui-strip-plot-BzVgS6vT.js} +25 -25
- package/dist/{vue-ui-table-CYeBDq4t.js → vue-ui-table-088-wqHU.js} +3 -3
- package/dist/{vue-ui-table-heatmap-D5Higl6c.js → vue-ui-table-heatmap-A8gN9NU2.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CgUjTFEu.js → vue-ui-table-sparkline-B5ydziP3.js} +14 -14
- package/dist/{vue-ui-thermometer-DdHoEvl8.js → vue-ui-thermometer-DVSW7iAt.js} +25 -25
- package/dist/{vue-ui-timer-Dd9-bUFJ.js → vue-ui-timer-DOlZVwc0.js} +5 -5
- package/dist/{vue-ui-tiremarks-CDvBqFb9.js → vue-ui-tiremarks-BdpwJTjQ.js} +7 -7
- package/dist/{vue-ui-treemap-Cnk77LIb.js → vue-ui-treemap-BzRJXnWX.js} +39 -39
- package/dist/{vue-ui-vertical-bar-CfedVdxi.js → vue-ui-vertical-bar-BWF4L-si.js} +10 -10
- package/dist/{vue-ui-waffle-_nuwY19z.js → vue-ui-waffle-YMOhYjS2.js} +27 -27
- package/dist/{vue-ui-wheel-mgrK52NV.js → vue-ui-wheel-C2LJqnuj.js} +7 -7
- package/dist/{vue-ui-word-cloud-X7c1DN4a.js → vue-ui-word-cloud-BqoWGzfw.js} +6 -6
- package/dist/{vue-ui-world-Ip9Cyd__.js → vue-ui-world-BInCh1JK.js} +6 -6
- package/dist/{vue-ui-xy-canvas-1KtHBKRO.js → vue-ui-xy-canvas-DaIL6iBg.js} +8 -8
- package/dist/{vue-ui-xy-CsH5sX8-.js → vue-ui-xy-uE2FWrCv.js} +87 -87
- package/package.json +1 -1
- package/dist/useNestedProp-BwJKakXX.js +0 -13
- package/dist/vue-ui-3d-bar-CuyTiQjS.js +0 -1227
- package/dist/vue-ui-dumbbell-DmYCdaFI.js +0 -1058
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineAsyncComponent as $e, ref as w, computed as N, toRefs as ta, watch as Ie, shallowRef as $t, onMounted as aa, onBeforeUnmount as It, nextTick as Et, watchEffect as la, createElementBlock as o, openBlock as l, normalizeStyle as O, normalizeClass as ce, createBlock as qe, createCommentVNode as g, createVNode as ke, unref as r, createSlots as oa, withCtx as K, renderSlot as U, normalizeProps as he, guardReactiveProps as fe, toDisplayString as F, createElementVNode as z, Fragment as p, renderList as I, mergeProps as et } from "vue";
|
|
2
|
-
import { u as na, c as ia,
|
|
2
|
+
import { u as na, c as ia, t as ua, a as ra, p as j, b as sa, C as We, d as va, G as da, f as ca, o as ha, e as tt, m as fa, D as Tt, X as ga, n as ma, q as at, r as Ee, k as ee, i as W, I as Pt, V as Ot, h as te, y as Xe, z as lt } from "./index-bTtbNszd.js";
|
|
3
3
|
import { t as Rt, u as pa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as xa } from "./usePrinter-
|
|
5
|
-
import { u as Mt } from "./useNestedProp-
|
|
4
|
+
import { u as xa } from "./usePrinter-Byfy8pVl.js";
|
|
5
|
+
import { u as Mt } from "./useNestedProp-CYma7CyA.js";
|
|
6
6
|
import { u as ya } from "./useTimeLabels-DkzmKfZn.js";
|
|
7
7
|
import { u as ka } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
8
|
import { u as ba } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
-
import Sa from "./img-
|
|
10
|
-
import { S as wa } from "./Slicer-
|
|
11
|
-
import { u as Aa, B as La } from "./
|
|
9
|
+
import Sa from "./img-BUkzDAPW.js";
|
|
10
|
+
import { S as wa } from "./Slicer-OzSjPeeA.js";
|
|
11
|
+
import { u as Aa, B as La } from "./useLoading-Bt5Doa8m.js";
|
|
12
12
|
import { _ as _a } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const _ = {
|
|
14
14
|
LINE: "LINE",
|
|
@@ -17,7 +17,7 @@ const _ = {
|
|
|
17
17
|
}, za = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
18
18
|
function Ca({ dataset: h, barLineSwitch: P = 6, debug: S = !0 }) {
|
|
19
19
|
let B = null, H = null, le = 0;
|
|
20
|
-
if ((typeof h == "number" || typeof h == "string") && S && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Te(h) && (ae(h) && (h.length < P ? B = _.BAR : B = _.LINE, H = h, le = h.length),
|
|
20
|
+
if ((typeof h == "number" || typeof h == "string") && S && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Te(h) && (ae(h) && (h.length < P ? B = _.BAR : B = _.LINE, H = h, le = h.length), je(h))) {
|
|
21
21
|
if (!Ia(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
23
|
const Se = Object.keys(h[0]), M = Object.values(h[0]);
|
|
@@ -46,7 +46,7 @@ function ae(h) {
|
|
|
46
46
|
const P = h.map((S) => Number(S));
|
|
47
47
|
return ![...new Set(P.flatMap((S) => typeof S == "number" && !isNaN(S)))].includes(!1);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function je(h) {
|
|
50
50
|
return !Te(h) || Dt(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 $a(h, P) {
|
|
@@ -92,7 +92,7 @@ function Bt(h) {
|
|
|
92
92
|
const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"], Ma = ["x", "y", "width", "height"], Fa = ["width", "height"], Na = ["id"], Ba = ["id"], Da = ["id"], Ua = ["flood-color"], Va = {
|
|
93
93
|
key: 0,
|
|
94
94
|
class: "donut-label-connectors"
|
|
95
|
-
}, Ha = ["d", "stroke", "stroke-width", "filter"], qa = ["cx", "cy", "r", "fill", "filter"], Wa = { class: "donut" },
|
|
95
|
+
}, Ha = ["d", "stroke", "stroke-width", "filter"], qa = ["cx", "cy", "r", "fill", "filter"], Wa = { class: "donut" }, Xa = ["d", "fill", "stroke", "stroke-width", "filter"], ja = ["d", "onMouseenter", "onMouseout", "onClick"], Ga = {
|
|
96
96
|
key: 1,
|
|
97
97
|
class: "donut-labels quick-animation"
|
|
98
98
|
}, Ya = ["cx", "cy", "fill", "stroke", "filter"], Za = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Ja = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Qa = {
|
|
@@ -128,10 +128,10 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
128
128
|
}, Hl = ["x", "y", "font-size", "fill"], ql = {
|
|
129
129
|
key: 5,
|
|
130
130
|
class: "tooltip-traps"
|
|
131
|
-
}, Wl = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"],
|
|
131
|
+
}, Wl = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], Xl = {
|
|
132
132
|
key: 6,
|
|
133
133
|
class: "axis-labels"
|
|
134
|
-
},
|
|
134
|
+
}, jl = ["font-size", "fill", "x", "y"], Gl = ["font-size", "fill", "x", "y"], Yl = ["font-size", "fill", "transform"], Zl = ["font-size", "fill", "transform"], Jl = {
|
|
135
135
|
key: 5,
|
|
136
136
|
class: "vue-data-ui-watermark"
|
|
137
137
|
}, Ql = ["onClick"], Kl = ["onClick"], eo = ["onClick"], to = {
|
|
@@ -155,7 +155,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
155
155
|
},
|
|
156
156
|
emits: ["selectDatapoint", "selectLegend"],
|
|
157
157
|
setup(h, { expose: P, emit: S }) {
|
|
158
|
-
const B = $e(() => import("./BaseIcon-
|
|
158
|
+
const B = $e(() => import("./BaseIcon-DVj5nedZ.js")), H = $e(() => import("./PackageVersion-CmrjjMGu.js")), le = $e(() => import("./PenAndPaper-CkxcaljP.js")), be = $e(() => import("./Tooltip-DfLg6pdN.js")), ot = $e(() => import("./UserOptions-Cvao0wOJ.js")), { vue_ui_quick_chart: Se } = na(), M = h, R = w(null), Pe = w(null), nt = w(null), it = w(null), oe = w(ia()), re = w(!1), we = w(null), se = w(""), Y = w(null), ut = w(null), rt = w(null), A = w([]), st = w(0), Oe = w(0), Z = w(null), Re = w(null), vt = w(null), dt = w(null), Me = w("#FFFFFF"), e = w(Ze()), Ge = N(() => !!e.value.debug), { loading: D, FINAL_DATASET: Ut, manualLoading: ct } = Aa({
|
|
159
159
|
...ta(M),
|
|
160
160
|
FINAL_CONFIG: e,
|
|
161
161
|
prepareConfig: Ze,
|
|
@@ -197,7 +197,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
197
197
|
userConfig: sa.vue_ui_quick_chart[a.theme] || M.config,
|
|
198
198
|
defaultConfig: a
|
|
199
199
|
}),
|
|
200
|
-
customPalette: ra[a.theme] ||
|
|
200
|
+
customPalette: ra[a.theme] || j
|
|
201
201
|
} : c = a, M.config && We(M.config, "zoomStartIndex") ? c.zoomStartIndex = M.config.zoomStartIndex : c.zoomStartIndex = null, M.config && We(M.config, "zoomEndIndex") ? c.zoomEndIndex = M.config.zoomEndIndex : c.zoomEndIndex = null, M.config && !We(M.config, "donutStroke") ? We(M.config, "backgroundColor") ? Me.value = M.config.backgroundColor : Me.value = "#FFFFFF" : Me.value = M.config.donutStroke, c;
|
|
202
202
|
}
|
|
203
203
|
Ie(() => M.config, (a) => {
|
|
@@ -288,7 +288,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
288
288
|
A.value.includes(a) ? A.value = A.value.filter((t) => t !== a) : A.value.length < c && A.value.push(a);
|
|
289
289
|
}
|
|
290
290
|
const bt = w(null), St = w(null), De = w(!1);
|
|
291
|
-
function
|
|
291
|
+
function Xt(a, c) {
|
|
292
292
|
De.value = !0;
|
|
293
293
|
let t = a.value;
|
|
294
294
|
const i = Le.value.dataset.find((u, x) => a.id === `donut_${x}`).VALUE;
|
|
@@ -333,7 +333,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
const J = w(null);
|
|
336
|
-
function
|
|
336
|
+
function jt(a) {
|
|
337
337
|
J.value = a;
|
|
338
338
|
}
|
|
339
339
|
const wt = N(() => e.value.donutThicknessRatio < 0.01 ? 0.01 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), T = N(() => {
|
|
@@ -345,7 +345,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
345
345
|
id: `donut_${C}`
|
|
346
346
|
})).map((f, C) => ({
|
|
347
347
|
...f,
|
|
348
|
-
color: f.COLOR ? tt(f.COLOR) : Ae.value[C + e.value.paletteStartIndex] ||
|
|
348
|
+
color: f.COLOR ? tt(f.COLOR) : Ae.value[C + e.value.paletteStartIndex] || j[C + e.value.paletteStartIndex] || j[(C + e.value.paletteStartIndex) % j.length],
|
|
349
349
|
immutableValue: f.value
|
|
350
350
|
}));
|
|
351
351
|
function c(f, C) {
|
|
@@ -365,7 +365,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
365
365
|
function u({ datapoint: f, seriesIndex: C }) {
|
|
366
366
|
we.value = { datapoint: f, seriesIndex: C, config: e.value, dataset: a }, Y.value = f.id;
|
|
367
367
|
const v = e.value.tooltipCustomFormat;
|
|
368
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: C }),
|
|
368
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: C }), Xe(v) && lt(() => v({
|
|
369
369
|
datapoint: f,
|
|
370
370
|
seriesIndex: C,
|
|
371
371
|
series: a,
|
|
@@ -402,9 +402,9 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
402
402
|
const ie = {
|
|
403
403
|
centerX: b.value.width / 2,
|
|
404
404
|
centerY: b.value.height / 2
|
|
405
|
-
},
|
|
405
|
+
}, X = a.filter((f) => !A.value.includes(f.id)).map((f) => f.value || 0).reduce((f, C) => f + C, 0), ye = a.map((f, C) => ({
|
|
406
406
|
...f,
|
|
407
|
-
proportion: (f.value || 0) /
|
|
407
|
+
proportion: (f.value || 0) / X,
|
|
408
408
|
value: f.value || 0,
|
|
409
409
|
absoluteValue: Le.value.dataset.find((v, n) => `donut_${n}` === f.id).VALUE
|
|
410
410
|
})), ve = b.value.width / 2, ue = b.value.height / 2, Q = b.value.height * e.value.donutRadiusRatio;
|
|
@@ -418,7 +418,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
418
418
|
killTooltip: x,
|
|
419
419
|
selectDatapoint: L,
|
|
420
420
|
getSpaces: i,
|
|
421
|
-
total:
|
|
421
|
+
total: X,
|
|
422
422
|
cx: ve,
|
|
423
423
|
cy: ue,
|
|
424
424
|
radius: Q,
|
|
@@ -459,7 +459,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
459
459
|
const Zt = N(() => {
|
|
460
460
|
if (!e.value.zoomMinimap.show || $.value === _.DONUT) return [];
|
|
461
461
|
let a = [];
|
|
462
|
-
ae(k.value.dataset) && (a = k.value.dataset),
|
|
462
|
+
ae(k.value.dataset) && (a = k.value.dataset), je(k.value.dataset) && (a = k.value.dataset.map((u, x) => ({
|
|
463
463
|
values: u.VALUE || u.DATA || u.SERIE || u.SERIES || u.VALUES || u.NUM || 0,
|
|
464
464
|
id: $.value === _.LINE ? `line_${x}` : `bar_${x}`
|
|
465
465
|
})).filter((u) => !A.value.includes(u.id)));
|
|
@@ -521,17 +521,17 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
521
521
|
values: k.value.dataset.slice(m.value.start, m.value.end),
|
|
522
522
|
absoluteIndices: k.value.dataset.map((v, n) => n).slice(m.value.start, m.value.end),
|
|
523
523
|
name: e.value.title,
|
|
524
|
-
color: Ae.value[e.value.paletteStartIndex] ||
|
|
524
|
+
color: Ae.value[e.value.paletteStartIndex] || j[e.value.paletteStartIndex],
|
|
525
525
|
id: "line_0"
|
|
526
526
|
}
|
|
527
|
-
]),
|
|
527
|
+
]), je(k.value.dataset) && (i = k.value.dataset.map((v, n) => ({
|
|
528
528
|
...v,
|
|
529
529
|
values: v.VALUE || v.DATA || v.SERIE || v.SERIES || v.VALUES || v.NUM || 0,
|
|
530
530
|
name: v.NAME || v.DESCRIPTION || v.TITLE || v.LABEL || `Serie ${n}`,
|
|
531
531
|
id: `line_${n}`
|
|
532
532
|
})).map((v, n) => ({
|
|
533
533
|
...v,
|
|
534
|
-
color: v.COLOR ? tt(v.COLOR) : Ae.value[n + e.value.paletteStartIndex] ||
|
|
534
|
+
color: v.COLOR ? tt(v.COLOR) : Ae.value[n + e.value.paletteStartIndex] || j[n + e.value.paletteStartIndex] || j[(n + e.value.paletteStartIndex) % j.length],
|
|
535
535
|
values: v.values.slice(m.value.start, m.value.end),
|
|
536
536
|
absoluteIndices: v.values.map((y, E) => E).slice(m.value.start, m.value.end)
|
|
537
537
|
})));
|
|
@@ -539,14 +539,14 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
539
539
|
max: Math.max(...i.filter((v) => !A.value.includes(v.id)).flatMap((v) => v.values)),
|
|
540
540
|
min: Math.min(...i.filter((v) => !A.value.includes(v.id)).flatMap((v) => v.values)),
|
|
541
541
|
maxSeries: Math.max(...i.map((v) => v.values.length))
|
|
542
|
-
}, x = Tt(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), L = u.min < 0 ? Math.abs(u.min) : 0, ie = u.max < 0 ? t.top : t.bottom - L / (x.max + L) * t.height,
|
|
542
|
+
}, x = Tt(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), L = u.min < 0 ? Math.abs(u.min) : 0, ie = u.max < 0 ? t.top : t.bottom - L / (x.max + L) * t.height, X = t.width / u.maxSeries, ye = x.ticks.map((v) => ({
|
|
543
543
|
y: t.bottom - t.height * ((v + L) / (x.max + L)),
|
|
544
544
|
x: t.left - 8,
|
|
545
545
|
value: v
|
|
546
546
|
})), ve = i.map((v, n) => ({
|
|
547
547
|
...v,
|
|
548
548
|
coordinates: v.values.map((y, E) => ({
|
|
549
|
-
x: t.left +
|
|
549
|
+
x: t.left + X * (E + 1) - X / 2,
|
|
550
550
|
y: t.bottom - (y + L) / (x.max + L) * t.height,
|
|
551
551
|
value: y
|
|
552
552
|
}))
|
|
@@ -571,7 +571,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
571
571
|
const n = ue(v);
|
|
572
572
|
we.value = { datapoint: n, seriesIndex: v, config: e.value, dataset: i };
|
|
573
573
|
const y = e.value.tooltipCustomFormat;
|
|
574
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: n, seriesIndex: v + m.value.start }),
|
|
574
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: n, seriesIndex: v + m.value.start }), Xe(y) && lt(() => y({
|
|
575
575
|
datapoint: n,
|
|
576
576
|
seriesIndex: v,
|
|
577
577
|
series: i,
|
|
@@ -622,7 +622,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
622
622
|
legend: ve,
|
|
623
623
|
drawingArea: t,
|
|
624
624
|
extremes: u,
|
|
625
|
-
slotSize:
|
|
625
|
+
slotSize: X,
|
|
626
626
|
yLabels: ye,
|
|
627
627
|
useTooltip: Q,
|
|
628
628
|
killTooltip: f,
|
|
@@ -653,17 +653,17 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
653
653
|
values: k.value.dataset.slice(m.value.start, m.value.end),
|
|
654
654
|
absoluteIndices: k.value.dataset.map((n, y) => y).slice(m.value.start, m.value.end),
|
|
655
655
|
name: e.value.title,
|
|
656
|
-
color: Ae.value[e.value.paletteStartIndex] ||
|
|
656
|
+
color: Ae.value[e.value.paletteStartIndex] || j[e.value.paletteStartIndex],
|
|
657
657
|
id: "bar_0"
|
|
658
658
|
}
|
|
659
|
-
]),
|
|
659
|
+
]), je(k.value.dataset) && (i = k.value.dataset.map((n, y) => ({
|
|
660
660
|
...n,
|
|
661
661
|
values: n.VALUE || n.DATA || n.SERIE || n.SERIES || n.VALUES || n.NUM || 0,
|
|
662
662
|
name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${y}`,
|
|
663
663
|
id: `bar_${y}`
|
|
664
664
|
})).map((n, y) => ({
|
|
665
665
|
...n,
|
|
666
|
-
color: n.COLOR ? tt(n.COLOR) : Ae.value[y + e.value.paletteStartIndex] ||
|
|
666
|
+
color: n.COLOR ? tt(n.COLOR) : Ae.value[y + e.value.paletteStartIndex] || j[y + e.value.paletteStartIndex] || j[(y + e.value.paletteStartIndex) % j.length],
|
|
667
667
|
values: n.values.slice(m.value.start, m.value.end),
|
|
668
668
|
absoluteIndices: n.values.map((E, V) => V).slice(m.value.start, m.value.end)
|
|
669
669
|
})));
|
|
@@ -671,16 +671,16 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
671
671
|
max: Math.max(...i.filter((n) => !A.value.includes(n.id)).flatMap((n) => n.values)) < 0 ? 0 : Math.max(...i.filter((n) => !A.value.includes(n.id)).flatMap((n) => n.values)),
|
|
672
672
|
min: Math.min(...i.filter((n) => !A.value.includes(n.id)).flatMap((n) => n.values)),
|
|
673
673
|
maxSeries: Math.max(...i.filter((n) => !A.value.includes(n.id)).map((n) => n.values.length))
|
|
674
|
-
}, x = Tt(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), L = x.min < 0 ? Math.abs(x.min) : 0, ie = t.bottom - L / (x.max + L) * t.height,
|
|
674
|
+
}, x = Tt(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), L = x.min < 0 ? Math.abs(x.min) : 0, ie = t.bottom - L / (x.max + L) * t.height, X = t.width / u.maxSeries, ye = x.ticks.map((n) => ({
|
|
675
675
|
y: t.bottom - t.height * ((n + L) / (x.max + L)),
|
|
676
676
|
x: t.left - 8,
|
|
677
677
|
value: n
|
|
678
678
|
})), ve = i.map((n, y) => ({
|
|
679
679
|
...n,
|
|
680
680
|
coordinates: n.values.map((E, V) => {
|
|
681
|
-
const q = (E + L) / (u.max + L) * t.height, ze = Math.abs(E) / Math.abs(u.min) * (t.height - ie), Ke = L / (u.max + L) * t.height, Ce =
|
|
681
|
+
const q = (E + L) / (u.max + L) * t.height, ze = Math.abs(E) / Math.abs(u.min) * (t.height - ie), Ke = L / (u.max + L) * t.height, Ce = X / i.filter((de) => !A.value.includes(de.id)).length - e.value.barGap / i.filter((de) => !A.value.includes(de.id)).length;
|
|
682
682
|
return {
|
|
683
|
-
x: t.left +
|
|
683
|
+
x: t.left + X * V + Ce * y + e.value.barGap / 2,
|
|
684
684
|
y: E > 0 ? t.bottom - q : ie,
|
|
685
685
|
height: E > 0 ? q - Ke : ze,
|
|
686
686
|
value: E,
|
|
@@ -690,9 +690,9 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
690
690
|
})), ue = i.filter((n) => !A.value.includes(n.id)).map((n, y) => ({
|
|
691
691
|
...n,
|
|
692
692
|
coordinates: n.values.map((E, V) => {
|
|
693
|
-
const q = (E + L) / (u.max + L) * t.height, ze = Math.abs(E) / (u.max + L) * t.height, Ke = L / (u.max + L) * t.height, Ce =
|
|
693
|
+
const q = (E + L) / (u.max + L) * t.height, ze = Math.abs(E) / (u.max + L) * t.height, Ke = L / (u.max + L) * t.height, Ce = X / i.filter((de) => !A.value.includes(de.id)).length - e.value.barGap / i.filter((de) => !A.value.includes(de.id)).length;
|
|
694
694
|
return {
|
|
695
|
-
x: t.left +
|
|
695
|
+
x: t.left + X * V + Ce * y + e.value.barGap / 2,
|
|
696
696
|
y: E > 0 ? t.bottom - q : ie,
|
|
697
697
|
height: E > 0 ? q - Ke : ze,
|
|
698
698
|
value: E,
|
|
@@ -712,7 +712,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
712
712
|
const y = Q(n);
|
|
713
713
|
we.value = { datapoint: y, seriesIndex: n, config: e.value, dataset: i };
|
|
714
714
|
const E = e.value.tooltipCustomFormat;
|
|
715
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: y, seriesIndex: n + m.value.start }),
|
|
715
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: y, seriesIndex: n + m.value.start }), Xe(E) && lt(() => E({
|
|
716
716
|
datapoint: y,
|
|
717
717
|
seriesIndex: n,
|
|
718
718
|
series: i,
|
|
@@ -763,7 +763,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
763
763
|
legend: ve,
|
|
764
764
|
drawingArea: t,
|
|
765
765
|
extremes: u,
|
|
766
|
-
slotSize:
|
|
766
|
+
slotSize: X,
|
|
767
767
|
yLabels: ye,
|
|
768
768
|
useTooltip: f,
|
|
769
769
|
killTooltip: C,
|
|
@@ -1030,14 +1030,14 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
1030
1030
|
stroke: Me.value,
|
|
1031
1031
|
"stroke-width": e.value.donutStrokeWidth,
|
|
1032
1032
|
filter: _e(t.id)
|
|
1033
|
-
}, null, 8,
|
|
1033
|
+
}, null, 8, Xa))), 256)),
|
|
1034
1034
|
(l(!0), o(p, null, I(T.value.chart, (t, i) => (l(), o("path", {
|
|
1035
1035
|
d: t.arcSlice,
|
|
1036
1036
|
fill: "transparent",
|
|
1037
1037
|
onMouseenter: (u) => T.value.useTooltip({ datapoint: t, seriesIndex: i }),
|
|
1038
1038
|
onMouseout: (u) => T.value.killTooltip({ datapoint: t, seriesIndex: i }),
|
|
1039
1039
|
onClick: (u) => T.value.selectDatapoint({ datapoint: t, seriesIndex: i })
|
|
1040
|
-
}, null, 40,
|
|
1040
|
+
}, null, 40, ja))), 256))
|
|
1041
1041
|
]),
|
|
1042
1042
|
e.value.showDataLabels ? (l(), o("g", Ga, [
|
|
1043
1043
|
(l(!0), o(p, null, I(T.value.chart, (t, i) => (l(), o(p, null, [
|
|
@@ -1510,7 +1510,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
1510
1510
|
}, null, 44, Wl))), 256))
|
|
1511
1511
|
])) : g("", !0)
|
|
1512
1512
|
], 64)) : g("", !0),
|
|
1513
|
-
[_.LINE, _.BAR].includes($.value) ? (l(), o("g",
|
|
1513
|
+
[_.LINE, _.BAR].includes($.value) ? (l(), o("g", Xl, [
|
|
1514
1514
|
e.value.xAxisLabel && $.value === _.LINE ? (l(), o("g", {
|
|
1515
1515
|
key: 0,
|
|
1516
1516
|
ref_key: "xAxisLabel",
|
|
@@ -1522,7 +1522,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
1522
1522
|
"text-anchor": "middle",
|
|
1523
1523
|
x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
|
|
1524
1524
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1525
|
-
}, F(e.value.xAxisLabel), 9,
|
|
1525
|
+
}, F(e.value.xAxisLabel), 9, jl)
|
|
1526
1526
|
], 512)) : g("", !0),
|
|
1527
1527
|
e.value.xAxisLabel && $.value === _.BAR ? (l(), o("g", {
|
|
1528
1528
|
key: 1,
|
|
@@ -1606,7 +1606,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
1606
1606
|
enableRangeHandles: e.value.zoomEnableRangeHandles,
|
|
1607
1607
|
enableSelectionDrag: e.value.zoomEnableSelectionDrag,
|
|
1608
1608
|
onReset: Gt,
|
|
1609
|
-
onTrapMouse:
|
|
1609
|
+
onTrapMouse: jt
|
|
1610
1610
|
}, {
|
|
1611
1611
|
"reset-action": K(({ reset: t }) => [
|
|
1612
1612
|
U(a.$slots, "reset-action", he(fe({ reset: t })), void 0, !0)
|
|
@@ -1624,7 +1624,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
1624
1624
|
$.value === _.DONUT ? (l(!0), o(p, { key: 0 }, I(T.value.legend, (t, i) => (l(), o("div", {
|
|
1625
1625
|
class: "vue-ui-quick-chart-legend-item",
|
|
1626
1626
|
onClick: (u) => {
|
|
1627
|
-
|
|
1627
|
+
Xt(t, T.value.dataset), ge("selectLegend", t);
|
|
1628
1628
|
},
|
|
1629
1629
|
style: O(`cursor: ${T.value.legend.length > 1 ? "pointer" : "default"}; opacity:${A.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1630
1630
|
}, [
|
|
@@ -1734,7 +1734,7 @@ const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
|
|
|
1734
1734
|
parent: R.value,
|
|
1735
1735
|
content: se.value,
|
|
1736
1736
|
isFullscreen: Ve.value,
|
|
1737
|
-
isCustom: r(
|
|
1737
|
+
isCustom: r(Xe)(e.value.tooltipCustomFormat),
|
|
1738
1738
|
smooth: e.value.tooltipSmooth,
|
|
1739
1739
|
backdropFilter: e.value.tooltipBackdropFilter
|
|
1740
1740
|
}, {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as _, computed as p, ref as c, watch as nt, shallowRef as Se, onMounted as ut, onBeforeUnmount as it, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as
|
|
2
|
-
import { u as vt, c as pt,
|
|
1
|
+
import { defineAsyncComponent as _, computed as p, ref as c, watch as nt, shallowRef as Se, onMounted as ut, onBeforeUnmount as it, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as H, normalizeClass as B, createBlock as x, createCommentVNode as d, createElementVNode as O, createVNode as oe, createSlots as ct, withCtx as f, renderSlot as g, normalizeProps as z, guardReactiveProps as M, Fragment as A, renderList as F, toDisplayString as D, createTextVNode as Ne, nextTick as dt } from "vue";
|
|
2
|
+
import { u as vt, c as pt, a as ht, p as S, b as gt, o as ft, f as V, d as yt, g as Ie, e as Re, R as Le, h as mt, k as ze, i as G, X as bt, s as le, x as kt, S as Me, v as Ct, w as wt, y as $t, z as _t } from "./index-bTtbNszd.js";
|
|
3
3
|
import { t as Tt, u as Pt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ve } from "./useNestedProp-
|
|
5
|
-
import { u as xt } from "./usePrinter-
|
|
4
|
+
import { u as Ve } from "./useNestedProp-CYma7CyA.js";
|
|
5
|
+
import { u as xt } from "./usePrinter-Byfy8pVl.js";
|
|
6
6
|
import { u as Ot } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as At } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Ft from "./Legend-
|
|
9
|
-
import St from "./Title-
|
|
10
|
-
import Nt from "./img-
|
|
8
|
+
import Ft from "./Legend-Bm0VbPfX.js";
|
|
9
|
+
import St from "./Title-CPlHadE3.js";
|
|
10
|
+
import Nt from "./img-BUkzDAPW.js";
|
|
11
11
|
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["id"], Vt = ["stop-color"], Ut = ["stop-color"], Et = { key: 1 }, Bt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Dt = { key: 0 }, Gt = ["d", "stroke", "stroke-width"], Wt = ["d", "stroke", "stroke-width"], Xt = { key: 2 }, jt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"],
|
|
12
|
+
const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["id"], Vt = ["stop-color"], Ut = ["stop-color"], Et = { key: 1 }, Bt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Dt = { key: 0 }, Gt = ["d", "stroke", "stroke-width"], Wt = ["d", "stroke", "stroke-width"], Xt = { key: 2 }, jt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Ht = ["points", "stroke", "stroke-width"], Yt = ["points", "stroke", "stroke-width", "fill"], qt = { key: 3 }, Jt = ["cx", "cy", "fill", "r", "stroke"], Kt = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, Qt = ["onClick"], Zt = {
|
|
@@ -33,7 +33,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend"],
|
|
35
35
|
setup(Ue, { expose: Ee, emit: Be }) {
|
|
36
|
-
const De = _(() => import("./DataTable-
|
|
36
|
+
const De = _(() => import("./DataTable-DIRgYyMk.js")), Ge = _(() => import("./PenAndPaper-CkxcaljP.js")), We = _(() => import("./vue-ui-accordion-CwsNjkyh.js")), Xe = _(() => import("./vue-ui-skeleton--VFckr1-.js")), je = _(() => import("./Tooltip-DfLg6pdN.js")), He = _(() => import("./UserOptions-Cvao0wOJ.js")), Ye = _(() => import("./PackageVersion-CmrjjMGu.js")), qe = _(() => import("./vue-ui-sparkbar-DMjqw4dV.js")), { vue_ui_radar: Je } = vt(), h = Ue, U = p(() => !!h.dataset && Object.keys(h.dataset).length), T = c(pt()), Ke = c(null), Y = c(!1), q = c(""), re = c(0), C = c(null), se = c(null), ne = c(null), ue = c(null), ie = c(null), ce = c(0), de = c(0), ve = c(0), e = p({
|
|
37
37
|
get: () => fe(),
|
|
38
38
|
set: (t) => t
|
|
39
39
|
}), { userOptionsVisible: J, setUserOptionsVisibility: pe, keepUserOptionState: he } = Ot({ config: e.value }), { svgRef: ge } = At({ config: e.value.style.chart.title });
|
|
@@ -270,7 +270,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
270
270
|
return { head: t, body: a, config: o, colNames: t };
|
|
271
271
|
}), X = c(null), Z = c([]), ee = c(null);
|
|
272
272
|
function rt(t, a) {
|
|
273
|
-
Z.value = [], X.value = a,
|
|
273
|
+
Z.value = [], X.value = a, Y.value = !0;
|
|
274
274
|
let o = "";
|
|
275
275
|
ee.value = {
|
|
276
276
|
datapoint: t,
|
|
@@ -289,7 +289,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
289
289
|
series: { categories: y.value, datapoints: k.value, radar: $.value },
|
|
290
290
|
config: e.value
|
|
291
291
|
})))
|
|
292
|
-
|
|
292
|
+
q.value = l({
|
|
293
293
|
seriesIndex: a,
|
|
294
294
|
datapoint: t,
|
|
295
295
|
series: { categories: y.value, datapoints: k.value, radar: $.value },
|
|
@@ -307,7 +307,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
307
307
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
308
308
|
formatter: t.formatter
|
|
309
309
|
});
|
|
310
|
-
|
|
310
|
+
q.value = o;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
function xe(t = null) {
|
|
@@ -360,7 +360,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
360
360
|
ref_key: "radarChart",
|
|
361
361
|
ref: C,
|
|
362
362
|
id: `vue-ui-radar_${T.value}`,
|
|
363
|
-
style:
|
|
363
|
+
style: H(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
364
364
|
onMouseenter: a[3] || (a[3] = () => n(pe)(!0)),
|
|
365
365
|
onMouseleave: a[4] || (a[4] = () => n(pe)(!1))
|
|
366
366
|
}, [
|
|
@@ -399,7 +399,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
399
399
|
}
|
|
400
400
|
}, null, 8, ["config"]))
|
|
401
401
|
], 512)) : d("", !0),
|
|
402
|
-
e.value.userOptions.show && U.value && (n(he) || n(J)) ? (r(), x(n(
|
|
402
|
+
e.value.userOptions.show && U.value && (n(he) || n(J)) ? (r(), x(n(He), {
|
|
403
403
|
ref_key: "details",
|
|
404
404
|
ref: Ke,
|
|
405
405
|
key: `user_options_${re.value}`,
|
|
@@ -430,7 +430,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
430
430
|
onToggleTable: Ae,
|
|
431
431
|
onToggleTooltip: Fe,
|
|
432
432
|
onToggleAnnotator: te,
|
|
433
|
-
style:
|
|
433
|
+
style: H({
|
|
434
434
|
visibility: n(he) ? n(J) ? "visible" : "hidden" : "visible"
|
|
435
435
|
})
|
|
436
436
|
}, ct({ _: 2 }, [
|
|
@@ -498,9 +498,9 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
498
498
|
xmlns: n(bt),
|
|
499
499
|
class: B({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
500
500
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
501
|
-
style:
|
|
501
|
+
style: H(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
502
502
|
}, [
|
|
503
|
-
oe(n(
|
|
503
|
+
oe(n(Ye)),
|
|
504
504
|
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
505
505
|
key: 0,
|
|
506
506
|
x: 0,
|
|
@@ -572,7 +572,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
572
572
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
573
573
|
onMouseenter: (s) => rt(o, l),
|
|
574
574
|
onMouseleave: a[0] || (a[0] = (s) => {
|
|
575
|
-
|
|
575
|
+
Y.value = !1, X.value = null;
|
|
576
576
|
})
|
|
577
577
|
}, D(o.name), 41, jt))), 256))
|
|
578
578
|
])) : d("", !0),
|
|
@@ -585,7 +585,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
585
585
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
586
586
|
fill: "none",
|
|
587
587
|
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": I.value && E.value === l && e.value.useCssAnimation })
|
|
588
|
-
}, null, 10,
|
|
588
|
+
}, null, 10, Ht)) : d("", !0),
|
|
589
589
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
590
590
|
key: 1,
|
|
591
591
|
points: n(Me)($.value.map((s) => s.plots[l]), !1, !0),
|
|
@@ -593,10 +593,10 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
593
593
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
594
594
|
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${T.value}_${l})` : n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
595
595
|
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": I.value && E.value === l && e.value.useCssAnimation })
|
|
596
|
-
}, null, 10,
|
|
596
|
+
}, null, 10, Yt)) : d("", !0)
|
|
597
597
|
])
|
|
598
598
|
]))), 256)),
|
|
599
|
-
e.value.style.chart.layout.plots.show ? (r(), u("g",
|
|
599
|
+
e.value.style.chart.layout.plots.show ? (r(), u("g", qt, [
|
|
600
600
|
(r(!0), u(A, null, F($.value, (o, l) => (r(), u("g", null, [
|
|
601
601
|
(r(!0), u(A, null, F(o.plots, (s, m) => (r(), u("circle", {
|
|
602
602
|
cx: s.x,
|
|
@@ -644,7 +644,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
644
644
|
item: f(({ legend: o, index: l }) => [
|
|
645
645
|
O("div", {
|
|
646
646
|
onClick: (s) => o.segregate(),
|
|
647
|
-
style:
|
|
647
|
+
style: H(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
|
|
648
648
|
}, D(o.name) + ": " + D(n(G)({
|
|
649
649
|
v: o.totalProportion * 100,
|
|
650
650
|
s: "%",
|
|
@@ -666,7 +666,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
666
666
|
g(t.$slots, "source", {}, void 0, !0)
|
|
667
667
|
], 512)) : d("", !0),
|
|
668
668
|
oe(n(je), {
|
|
669
|
-
show: b.value.showTooltip &&
|
|
669
|
+
show: b.value.showTooltip && Y.value,
|
|
670
670
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
671
671
|
color: e.value.style.chart.tooltip.color,
|
|
672
672
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -677,7 +677,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
677
677
|
position: e.value.style.chart.tooltip.position,
|
|
678
678
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
679
679
|
parent: C.value,
|
|
680
|
-
content:
|
|
680
|
+
content: q.value,
|
|
681
681
|
isFullscreen: L.value,
|
|
682
682
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
683
683
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -688,7 +688,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
688
688
|
]),
|
|
689
689
|
"tooltip-after": f(() => [
|
|
690
690
|
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div", Zt, [
|
|
691
|
-
oe(n(
|
|
691
|
+
oe(n(qe), {
|
|
692
692
|
dataset: Z.value,
|
|
693
693
|
config: Ze.value,
|
|
694
694
|
backgroundOpacity: 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as $, useSlots as J, onMounted as R, computed as x, watch as Q, createElementBlock as o, openBlock as a, normalizeStyle as s, createCommentVNode as p, createElementVNode as r, toDisplayString as f, unref as n, Fragment as B, renderList as Z, renderSlot as j, mergeProps as O, withKeys as ee } from "vue";
|
|
2
|
-
import { u as te, c as le, o as oe,
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
2
|
+
import { u as te, c as le, o as oe, f as ae, k as b, i as _, X as z, x as X, _ as I } from "./index-bTtbNszd.js";
|
|
3
|
+
import { u as ie } from "./useNestedProp-CYma7CyA.js";
|
|
4
4
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const ne = {
|
|
6
6
|
key: 0,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useCssVars as Ke, computed as y, defineAsyncComponent as E, ref as o, watch as Qe, shallowRef as be, onMounted as Ze, onBeforeUnmount as et, createElementBlock as r, openBlock as i, unref as n, normalizeStyle as O, createBlock as F, createCommentVNode as v, createSlots as tt, withCtx as S, renderSlot as h, normalizeProps as B, guardReactiveProps as T, normalizeClass as H, createVNode as lt, createElementVNode as st, Fragment as z, renderList as A, mergeProps as we, toDisplayString as N } from "vue";
|
|
2
|
-
import { u as it, c as at,
|
|
2
|
+
import { u as it, c as at, a as nt, p as xe, b as rt, d as ut, o as ot, f as $e, g as ct, X as dt, F as _e, k as J, i as K, E as Q } from "./index-bTtbNszd.js";
|
|
3
3
|
import { t as vt, u as ft } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ce } from "./useNestedProp-
|
|
5
|
-
import { u as yt } from "./usePrinter-
|
|
4
|
+
import { u as Ce } from "./useNestedProp-CYma7CyA.js";
|
|
5
|
+
import { u as yt } from "./usePrinter-Byfy8pVl.js";
|
|
6
6
|
import { u as ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as gt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import mt from "./Title-
|
|
9
|
-
import pt from "./img-
|
|
8
|
+
import mt from "./Title-CPlHadE3.js";
|
|
9
|
+
import pt from "./img-BUkzDAPW.js";
|
|
10
10
|
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["cx", "cy", "r", "stroke", "stroke-width"], _t = { key: 1 }, Ct = ["stroke", "d", "stroke-width"], Pt = { style: { "pointer-events": "none" } }, Lt = ["cx", "cy", "fill", "r", "stroke"], Ot = ["x", "y", "fill", "font-size"], zt = { key: 2 }, At = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], It = { style: { "pointer-events": "none" } }, St = ["cx", "cy", "fill", "r", "stroke"], Mt = ["x", "y", "fill", "font-size"], Rt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], Et = ["cx", "cy", "fill", "stroke", "onClick", "r"], Ft = {
|
|
12
12
|
key: 5,
|
|
@@ -33,7 +33,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
33
33
|
"2d3aeb91": Fe.value,
|
|
34
34
|
"18692fb3": Te.value
|
|
35
35
|
}));
|
|
36
|
-
const Oe = E(() => import("./PackageVersion-
|
|
36
|
+
const Oe = E(() => import("./PackageVersion-CmrjjMGu.js")), ze = E(() => import("./PenAndPaper-CkxcaljP.js")), Ae = E(() => import("./vue-ui-skeleton--VFckr1-.js")), Ie = E(() => import("./UserOptions-Cvao0wOJ.js")), { vue_ui_relation_circle: Se } = it(), k = Pe, j = y(() => !!k.dataset && Object.keys(k.dataset).length), I = o(at()), Z = o(0), x = o(null), ee = o(null), te = o(null), le = o(null), se = o(0), l = y({
|
|
37
37
|
get: () => re(),
|
|
38
38
|
set: (e) => e
|
|
39
39
|
}), { userOptionsVisible: U, setUserOptionsVisibility: ie, keepUserOptionState: ae } = ht({ config: l.value }), { svgRef: ne } = gt({ config: l.value.style.title });
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineAsyncComponent as N, computed as d, ref as u, shallowRef as Je, toRefs as jt, onBeforeUnmount as Qe, watch as Z, nextTick as ke, watchEffect as qt, createElementBlock as n, openBlock as r, unref as i, normalizeStyle as w, normalizeClass as ee, createBlock as _, createCommentVNode as v, renderSlot as m, createElementVNode as y, createSlots as Ze, withCtx as p, normalizeProps as te, guardReactiveProps as ae, createVNode as et, Fragment as g, renderList as k, mergeProps as tt, toDisplayString as B, createTextVNode as at } from "vue";
|
|
2
|
-
import { u as Kt, c as Ae,
|
|
2
|
+
import { u as Kt, c as Ae, t as Jt, d as Qt, e as Zt, p as le, ap as lt, ai as ea, U as st, V as ta, W as aa, X as la, F as sa, I as oa, k as se, i as oe, a as ra, b as na, f as Ce, g as ot, o as ia, v as ua, w as ca, K as va } from "./index-bTtbNszd.js";
|
|
3
3
|
import { t as rt, u as ha } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as da, B as ya } from "./
|
|
5
|
-
import { u as fa } from "./usePrinter-
|
|
6
|
-
import { u as nt } from "./useNestedProp-
|
|
4
|
+
import { u as da, B as ya } from "./useLoading-Bt5Doa8m.js";
|
|
5
|
+
import { u as fa } from "./usePrinter-Byfy8pVl.js";
|
|
6
|
+
import { u as nt } from "./useNestedProp-CYma7CyA.js";
|
|
7
7
|
import { u as ga } from "./useTimeLabels-DkzmKfZn.js";
|
|
8
8
|
import { u as ma } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as pa } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { u as ba } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
-
import xa from "./Legend-
|
|
12
|
-
import ka from "./Title-
|
|
13
|
-
import { _ as Aa } from "./Shape-
|
|
14
|
-
import Ca from "./img-
|
|
11
|
+
import xa from "./Legend-Bm0VbPfX.js";
|
|
12
|
+
import ka from "./Title-CPlHadE3.js";
|
|
13
|
+
import { _ as Aa } from "./Shape-PFacVGG6.js";
|
|
14
|
+
import Ca from "./img-BUkzDAPW.js";
|
|
15
15
|
import { _ as wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const $a = ["id"], _a = ["xmlns", "viewBox"], Ta = ["id"], Pa = ["stop-color"], Sa = ["stop-color"], Ma = ["stop-color"], La = ["stop-color"], Oa = ["id"], za = ["stop-color"], Ia = ["stop-color"], Na = ["stop-color"], Fa = ["stop-color"], Da = { key: 0 }, Ra = ["fill", "d"], Ea = ["stroke", "stroke-width", "d"], Ha = ["fill", "d"], Xa = ["stroke", "stroke-dasharray", "stroke-width", "d"], Ba = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Va = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Ua = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], Ga = { key: 0 }, Wa = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Ya = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], ja = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], qa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ka = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Ja = ["x", "y", "text-anchor", "font-size", "fill"], Qa = {
|
|
17
17
|
key: 4,
|
|
@@ -34,7 +34,7 @@ const $a = ["id"], _a = ["xmlns", "viewBox"], Ta = ["id"], Pa = ["stop-color"],
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
36
36
|
setup(it, { expose: ut, emit: ct }) {
|
|
37
|
-
const vt = N(() => import("./vue-ui-accordion-
|
|
37
|
+
const vt = N(() => import("./vue-ui-accordion-CwsNjkyh.js")), ht = N(() => import("./BaseDraggableDialog-C94LH2gO.js")), dt = N(() => import("./DataTable-DIRgYyMk.js")), yt = N(() => import("./PackageVersion-CmrjjMGu.js")), ft = N(() => import("./PenAndPaper-CkxcaljP.js")), gt = N(() => import("./UserOptions-Cvao0wOJ.js")), mt = N(() => import("./vue-ui-xy-uE2FWrCv.js")), { vue_ui_ridgeline: pt } = Kt(), F = it, V = d({
|
|
38
38
|
get() {
|
|
39
39
|
return Array.isArray(O.value) && O.value.length > 0;
|
|
40
40
|
},
|