vue-data-ui 3.0.0-next.54 → 3.0.0-next.55
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-BJNH0Liz.js} +1 -1
- package/dist/{BaseDraggableDialog-D6NKDVDd.js → BaseDraggableDialog-g4-q5391.js} +2 -2
- package/dist/{BaseIcon-D1YxuTqn.js → BaseIcon-B-JPaycb.js} +1 -1
- package/dist/{ColorPicker-Dqnk4Bis.js → ColorPicker-B6cSfXTZ.js} +2 -2
- package/dist/{DataTable-D1RPxkQn.js → DataTable-CXvbwtai.js} +2 -2
- package/dist/{Legend-BBaTktyQ.js → Legend-Dt-A6TX4.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Dqp0PFOO.js → NonSvgPenAndPaper-Cde04UFK.js} +3 -3
- package/dist/{PackageVersion-Dvivm8-r.js → PackageVersion-D3gM0cgH.js} +1 -1
- package/dist/{PenAndPaper-DaQWWpgs.js → PenAndPaper-tiWdtLvY.js} +3 -3
- package/dist/{Shape-Dc4AHan7.js → Shape-BAOib99W.js} +1 -1
- package/dist/{Slicer-viJHi_bq.js → Slicer-2xXK3ZHN.js} +2 -2
- package/dist/{SparkTooltip-Ca7tsP2u.js → SparkTooltip-CP52F_jK.js} +1 -1
- package/dist/{Title-Bnr--aA5.js → Title-CNNSPaS8.js} +1 -1
- package/dist/{Tooltip-DSvSWahk.js → Tooltip-DsVWsLP0.js} +1 -1
- package/dist/{UserOptions-Dm91TR_d.js → UserOptions-DdxzR5Mv.js} +2 -2
- package/dist/{dom-to-png-DTwkx-9j.js → dom-to-png-FQEkmOOx.js} +1 -1
- package/dist/{img-Brj7vn--.js → img-CNjWjg_p.js} +1 -1
- package/dist/{index-B5FRcZLo.js → index-VrsKSULO.js} +33 -16
- package/dist/{pdf-s-J6FH3X.js → pdf-BLwguT_D.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -1
- package/dist/types/vue-data-ui.d.ts +25 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-xwIHroEq.js → useAutoSizeLabelsInsideViewbox-BD87yFjx.js} +1 -1
- package/dist/{BaseScanner-DIK2NTdp.js → useLoading-Bt5Doa8m.js} +11 -11
- package/dist/useNestedProp-lTwriOHy.js +13 -0
- package/dist/{usePrinter-CHbm8PGD.js → usePrinter-BrYkAEvI.js} +2 -2
- package/dist/{vue-data-ui-jynIaHEu.js → vue-data-ui-Cvdlw0Wu.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DIbV0GIS.js +1323 -0
- package/dist/{vue-ui-accordion-h_xORY7m.js → vue-ui-accordion-CP3KpYYB.js} +3 -3
- package/dist/{vue-ui-age-pyramid-ByNg19-v.js → vue-ui-age-pyramid-ING0HORH.js} +7 -7
- package/dist/{vue-ui-annotator-DHWKIAiw.js → vue-ui-annotator-Vcfg38lq.js} +2 -2
- package/dist/{vue-ui-bullet-D8QT8Bn3.js → vue-ui-bullet-nVyjtnfT.js} +8 -8
- package/dist/{vue-ui-candlestick-Dfga6m-d.js → vue-ui-candlestick-C8kOVEo0.js} +8 -8
- package/dist/{vue-ui-carousel-table--OsqU2f2.js → vue-ui-carousel-table-IxlXbBLZ.js} +29 -29
- package/dist/{vue-ui-chestnut-Bos9_e2W.js → vue-ui-chestnut-DrLVu-od.js} +5 -5
- package/dist/{vue-ui-chord-CBxXikz5.js → vue-ui-chord-Co_1mfBI.js} +8 -8
- package/dist/{vue-ui-circle-pack-CA4h8PoX.js → vue-ui-circle-pack-93ly70eJ.js} +42 -42
- package/dist/{vue-ui-cursor-D1e1-QTO.js → vue-ui-cursor-KJztZXjx.js} +2 -2
- package/dist/{vue-ui-dashboard-CGLgntfH.js → vue-ui-dashboard-Dm-pgEqX.js} +62 -62
- package/dist/{vue-ui-digits-CsO3Iczu.js → vue-ui-digits-BOZE8XF9.js} +2 -2
- package/dist/{vue-ui-donut-CkicdCC0.js → vue-ui-donut-C2ZgkW45.js} +9 -9
- package/dist/{vue-ui-donut-evolution-s6f_kN-K.js → vue-ui-donut-evolution-Bbv5_sp4.js} +9 -9
- package/dist/{vue-ui-dumbbell-DmYCdaFI.js → vue-ui-dumbbell-nld0Clws.js} +69 -69
- package/dist/{vue-ui-flow-BQUZA0Ci.js → vue-ui-flow-CLlSDNyj.js} +8 -8
- package/dist/{vue-ui-funnel-BaJXfhkn.js → vue-ui-funnel-BoxOdEOh.js} +16 -16
- package/dist/{vue-ui-galaxy-AamRVENQ.js → vue-ui-galaxy-DYyCeO0g.js} +5 -5
- package/dist/{vue-ui-gauge-DwpIlS3L.js → vue-ui-gauge-DzfVoVC0.js} +8 -8
- package/dist/{vue-ui-gizmo-_LjeGmAP.js → vue-ui-gizmo-Dq_wADwm.js} +3 -3
- package/dist/{vue-ui-heatmap-C2LL_MI_.js → vue-ui-heatmap-DiJ4PMPu.js} +8 -8
- package/dist/{vue-ui-history-plot-BLxytFYc.js → vue-ui-history-plot-CyQbpbFj.js} +20 -20
- package/dist/{vue-ui-kpi-D2Pbj0bH.js → vue-ui-kpi-CE3bvNxU.js} +7 -7
- package/dist/{vue-ui-mini-loader-DlrRQmpO.js → vue-ui-mini-loader-CezyYsIh.js} +2 -2
- package/dist/{vue-ui-molecule-BUJqDdqt.js → vue-ui-molecule-DBqdOQXg.js} +15 -15
- package/dist/{vue-ui-mood-radar-B3_UAmrH.js → vue-ui-mood-radar-Borsdnjs.js} +15 -15
- package/dist/{vue-ui-nested-donuts-C6J6RswH.js → vue-ui-nested-donuts-CluI37Ei.js} +10 -10
- package/dist/{vue-ui-onion-BbABpEI9.js → vue-ui-onion-Ny8gdAAf.js} +24 -24
- package/dist/{vue-ui-parallel-coordinate-plot-DKg6Ksmk.js → vue-ui-parallel-coordinate-plot-PJ7kBhSH.js} +9 -9
- package/dist/{vue-ui-quadrant-DKYW231A.js → vue-ui-quadrant--JI409Pn.js} +8 -8
- package/dist/{vue-ui-quick-chart-Dk8KMMWE.js → vue-ui-quick-chart-BDrTZO9Y.js} +45 -45
- package/dist/{vue-ui-radar-JJJvDyH0.js → vue-ui-radar-BWu9C6Zw.js} +25 -25
- package/dist/{vue-ui-rating-hbgc6VRD.js → vue-ui-rating-BR6GVyqk.js} +2 -2
- package/dist/{vue-ui-relation-circle-Btubhkqp.js → vue-ui-relation-circle-By35PCSP.js} +6 -6
- package/dist/{vue-ui-ridgeline-zS0itk3r.js → vue-ui-ridgeline-DWGU3udg.js} +9 -9
- package/dist/{vue-ui-rings-C6QI4vT_.js → vue-ui-rings-Cq5qHVk1.js} +20 -20
- package/dist/{vue-ui-scatter-C2kNKb55.js → vue-ui-scatter-DOaBf7Al.js} +9 -9
- package/dist/{vue-ui-skeleton-CzVYh2n3.js → vue-ui-skeleton-CcR1KppS.js} +3 -3
- package/dist/{vue-ui-smiley-BK28gGd8.js → vue-ui-smiley-BAg44Lr1.js} +26 -26
- package/dist/{vue-ui-spark-trend-CSypVrHj.js → vue-ui-spark-trend-et-6tMhw.js} +3 -3
- package/dist/{vue-ui-sparkbar-Cn2ww9SA.js → vue-ui-sparkbar-ZmkuoQIV.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D_q1ShxX.js → vue-ui-sparkgauge-B-sR11zt.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DrWMDYwQ.js → vue-ui-sparkhistogram-D6y3mWa-.js} +4 -4
- package/dist/{vue-ui-sparkline-B2EWoOpH.js → vue-ui-sparkline-BTcWkBkc.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-dgtxtC-v.js → vue-ui-sparkstackbar-DiLFzzs1.js} +3 -3
- package/dist/{vue-ui-stackbar-BEPKt8t1.js → vue-ui-stackbar-B0XZyCnz.js} +10 -10
- package/dist/{vue-ui-strip-plot-CGLaQrOE.js → vue-ui-strip-plot-B4vsbget.js} +25 -25
- package/dist/{vue-ui-table-CYeBDq4t.js → vue-ui-table-DDVF52A6.js} +3 -3
- package/dist/{vue-ui-table-heatmap-D5Higl6c.js → vue-ui-table-heatmap-DH1DYupu.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CgUjTFEu.js → vue-ui-table-sparkline-BL-1y2Oq.js} +14 -14
- package/dist/{vue-ui-thermometer-DdHoEvl8.js → vue-ui-thermometer-CyQT1DI6.js} +25 -25
- package/dist/{vue-ui-timer-Dd9-bUFJ.js → vue-ui-timer-CLqsJQ3V.js} +5 -5
- package/dist/{vue-ui-tiremarks-CDvBqFb9.js → vue-ui-tiremarks-DZSjovmn.js} +7 -7
- package/dist/{vue-ui-treemap-Cnk77LIb.js → vue-ui-treemap-CSMkD4Q3.js} +39 -39
- package/dist/{vue-ui-vertical-bar-CfedVdxi.js → vue-ui-vertical-bar-X3muLpmj.js} +10 -10
- package/dist/{vue-ui-waffle-_nuwY19z.js → vue-ui-waffle-DZoNMXZs.js} +27 -27
- package/dist/{vue-ui-wheel-mgrK52NV.js → vue-ui-wheel-CkrhExvP.js} +7 -7
- package/dist/{vue-ui-word-cloud-X7c1DN4a.js → vue-ui-word-cloud-SJJdaZHD.js} +6 -6
- package/dist/{vue-ui-world-Ip9Cyd__.js → vue-ui-world-CmeQPQhw.js} +6 -6
- package/dist/{vue-ui-xy-CsH5sX8-.js → vue-ui-xy-Cp8U2LrQ.js} +87 -87
- package/dist/{vue-ui-xy-canvas-1KtHBKRO.js → vue-ui-xy-canvas-CGop37ip.js} +8 -8
- package/package.json +1 -1
- package/dist/useNestedProp-BwJKakXX.js +0 -13
- package/dist/vue-ui-3d-bar-CuyTiQjS.js +0 -1227
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineAsyncComponent as M, computed as d, ref as r, toRefs as vt, watch as X, shallowRef as Re, onMounted as dt, onBeforeUnmount as ht, createElementBlock as i, openBlock as u, unref as s, normalizeStyle as A, normalizeClass as G, createBlock as I, createCommentVNode as g, createElementVNode as L, createVNode as ze, createSlots as ft, withCtx as p, renderSlot as h, normalizeProps as R, guardReactiveProps as z, Fragment as B, renderList as V, toDisplayString as N, createTextVNode as pt, nextTick as Ne } from "vue";
|
|
2
|
-
import { u as gt, c as mt,
|
|
2
|
+
import { u as gt, c as mt, t as yt, a as bt, p as De, b as kt, d as wt, o as Le, f as ne, e as Ct, X as $t, i as Y, k as se, y as Be, v as xt, w as Tt, z as Ot } from "./index-VrsKSULO.js";
|
|
3
3
|
import { t as _t, u as At } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ve } from "./useNestedProp-
|
|
5
|
-
import { u as It } from "./usePrinter-
|
|
4
|
+
import { u as Ve } from "./useNestedProp-lTwriOHy.js";
|
|
5
|
+
import { u as It } from "./usePrinter-BrYkAEvI.js";
|
|
6
6
|
import { u as St } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Pt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Ft from "./Title-
|
|
9
|
-
import Mt from "./Legend-
|
|
10
|
-
import Rt from "./img-
|
|
11
|
-
import { u as zt, B as Nt } from "./
|
|
12
|
-
import { u as Dt } from "./useAutoSizeLabelsInsideViewbox-
|
|
8
|
+
import Ft from "./Title-CNNSPaS8.js";
|
|
9
|
+
import Mt from "./Legend-Dt-A6TX4.js";
|
|
10
|
+
import Rt from "./img-CNjWjg_p.js";
|
|
11
|
+
import { u as zt, B as Nt } from "./useLoading-Bt5Doa8m.js";
|
|
12
|
+
import { u as Dt } from "./useAutoSizeLabelsInsideViewbox-BD87yFjx.js";
|
|
13
13
|
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ut = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Xt = ["id"], Gt = ["stdDeviation"], Ht = ["filter"],
|
|
14
|
+
const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ut = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Xt = ["id"], Gt = ["stdDeviation"], Ht = ["filter"], Wt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], jt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], qt = { key: 2 }, Jt = ["onMouseenter", "onMouseleave", "onClick"], Kt = ["x", "y", "font-size", "fill", "font-weight"], Qt = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
17
|
}, Zt = ["onClick"], ea = ["innerHTML"], ta = {
|
|
@@ -32,7 +32,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
34
|
setup(Ye, { expose: Ee, emit: Ue }) {
|
|
35
|
-
const Xe = M(() => import("./vue-ui-accordion-
|
|
35
|
+
const Xe = M(() => import("./vue-ui-accordion-CP3KpYYB.js")), Ge = M(() => import("./DataTable-CXvbwtai.js")), He = M(() => import("./PackageVersion-D3gM0cgH.js")), We = M(() => import("./PenAndPaper-tiWdtLvY.js")), je = M(() => import("./Tooltip-DsVWsLP0.js")), qe = M(() => import("./UserOptions-DdxzR5Mv.js")), { vue_ui_onion: Je } = gt(), w = Ye, ue = d(() => !!w.dataset && w.dataset.length), S = r(mt()), Ke = r(null), re = r(0), H = r(!1), W = r(""), y = r([]), x = r(null), ie = r(null), ce = r(null), ve = r(null), de = r(null), he = r(0), fe = r(0), pe = r(0), C = r(!1), e = r(K()), { loading: b, FINAL_DATASET: ge, manualLoading: j } = zt({
|
|
36
36
|
...vt(w),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: K,
|
|
@@ -68,7 +68,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
})
|
|
71
|
-
}), { userOptionsVisible:
|
|
71
|
+
}), { userOptionsVisible: q, setUserOptionsVisibility: me, keepUserOptionState: ye } = St({ config: e.value }), { svgRef: J } = Pt({ config: e.value.style.chart.title });
|
|
72
72
|
function K() {
|
|
73
73
|
const t = Ve({
|
|
74
74
|
userConfig: w.config,
|
|
@@ -83,7 +83,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
83
83
|
} : t;
|
|
84
84
|
}
|
|
85
85
|
X(() => w.config, (t) => {
|
|
86
|
-
b.value || (e.value = K()),
|
|
86
|
+
b.value || (e.value = K()), q.value = !e.value.userOptions.showOnChartHover, xe(), he.value += 1, fe.value += 1, pe.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
87
87
|
}, { deep: !0 });
|
|
88
88
|
const { isPrinting: be, isImaging: ke, generatePdf: we, generateImage: Ce } = It({
|
|
89
89
|
elementId: `vue-ui-onion_${S.value}`,
|
|
@@ -129,7 +129,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
129
129
|
componentName: "VueUiOnion",
|
|
130
130
|
type: "dataset",
|
|
131
131
|
debug: tt.value
|
|
132
|
-
}),
|
|
132
|
+
}), j.value = !0), Le(w.dataset) || (j.value = e.value.loading), e.value.responsive) {
|
|
133
133
|
const o = _t(() => {
|
|
134
134
|
Q && clearTimeout(Q), C.value = !0;
|
|
135
135
|
let { width: a, height: l } = At({
|
|
@@ -191,7 +191,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
191
191
|
};
|
|
192
192
|
}))), D = r(f.value), at = d(() => e.value.useStartAnimation), lt = r(null), ot = d(() => Math.max(...f.value.map((t) => t.percentage))), Z = r(!1);
|
|
193
193
|
X(() => f.value, Te, { immediate: !0, deep: !0 }), X(() => w.dataset, (t) => {
|
|
194
|
-
Array.isArray(t) && t.length > 0 && (
|
|
194
|
+
Array.isArray(t) && t.length > 0 && (j.value = !1);
|
|
195
195
|
}, { deep: !0 });
|
|
196
196
|
function Te() {
|
|
197
197
|
if (at.value && !Z.value && !b.value) {
|
|
@@ -316,7 +316,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
316
316
|
series: f.value,
|
|
317
317
|
config: e.value
|
|
318
318
|
})))
|
|
319
|
-
|
|
319
|
+
W.value = k({
|
|
320
320
|
seriesIndex: l,
|
|
321
321
|
datapoint: t,
|
|
322
322
|
series: f.value,
|
|
@@ -334,7 +334,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
334
334
|
r: e.value.style.chart.tooltip.roundingValue
|
|
335
335
|
}),
|
|
336
336
|
{ datapoint: t, seriesIndex: o }
|
|
337
|
-
) : ""}${le && oe ? ")" : ""}</div>`,
|
|
337
|
+
) : ""}${le && oe ? ")" : ""}</div>`, W.value = `<div>${v}</div>`;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
function Fe() {
|
|
@@ -378,7 +378,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
378
378
|
onMouseenter: o[2] || (o[2] = () => s(me)(!0)),
|
|
379
379
|
onMouseleave: o[3] || (o[3] = () => s(me)(!1))
|
|
380
380
|
}, [
|
|
381
|
-
e.value.userOptions.buttons.annotator ? (u(), I(s(
|
|
381
|
+
e.value.userOptions.buttons.annotator ? (u(), I(s(We), {
|
|
382
382
|
key: 0,
|
|
383
383
|
svgRef: s(J),
|
|
384
384
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -413,7 +413,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
413
413
|
}
|
|
414
414
|
}, null, 8, ["config"]))
|
|
415
415
|
], 512)) : g("", !0),
|
|
416
|
-
e.value.userOptions.show && ue.value && (s(ye) || s(
|
|
416
|
+
e.value.userOptions.show && ue.value && (s(ye) || s(q)) ? (u(), I(s(qe), {
|
|
417
417
|
ref_key: "details",
|
|
418
418
|
ref: Ke,
|
|
419
419
|
key: `user_options${re.value}`,
|
|
@@ -445,7 +445,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
445
445
|
onToggleTooltip: Me,
|
|
446
446
|
onToggleAnnotator: ae,
|
|
447
447
|
style: A({
|
|
448
|
-
visibility: s(ye) ? s(
|
|
448
|
+
visibility: s(ye) ? s(q) ? "visible" : "hidden" : "visible"
|
|
449
449
|
})
|
|
450
450
|
}, ft({ _: 2 }, [
|
|
451
451
|
t.$slots.menuIcon ? {
|
|
@@ -596,7 +596,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
596
596
|
transition: C.value || s(b) ? "none" : "all 0.3s ease-in-out !important",
|
|
597
597
|
animation: C.value || s(b) ? "none" : "xyAnimation 0.5s ease-in"
|
|
598
598
|
})
|
|
599
|
-
}, null, 12,
|
|
599
|
+
}, null, 12, Wt))), 256))
|
|
600
600
|
], 8, Ht)) : g("", !0),
|
|
601
601
|
(u(!0), i(B, null, V($.value, (a, l) => (u(), i("circle", {
|
|
602
602
|
cx: c.value.centerX,
|
|
@@ -620,8 +620,8 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
620
620
|
}),
|
|
621
621
|
onMouseleave: (v) => Se({ datapoint: a }),
|
|
622
622
|
onClick: (v) => Ie({ datapoint: a })
|
|
623
|
-
}, null, 40,
|
|
624
|
-
e.value.style.chart.layout.labels.show ? (u(), i("g",
|
|
623
|
+
}, null, 40, jt))), 256)),
|
|
624
|
+
e.value.style.chart.layout.labels.show ? (u(), i("g", qt, [
|
|
625
625
|
(u(!0), i(B, null, V($.value, (a, l) => (u(), i("g", {
|
|
626
626
|
onMouseenter: (v) => Pe({
|
|
627
627
|
datapoint: a,
|
|
@@ -704,7 +704,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
704
704
|
}, [
|
|
705
705
|
h(t.$slots, "source", {}, void 0, !0)
|
|
706
706
|
], 512)) : g("", !0),
|
|
707
|
-
ze(s(
|
|
707
|
+
ze(s(je), {
|
|
708
708
|
show: m.value.showTooltip && H.value,
|
|
709
709
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
710
710
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -716,7 +716,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
716
716
|
position: e.value.style.chart.tooltip.position,
|
|
717
717
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
718
718
|
parent: x.value,
|
|
719
|
-
content:
|
|
719
|
+
content: W.value,
|
|
720
720
|
isFullscreen: F.value,
|
|
721
721
|
isCustom: s(Be)(e.value.style.chart.tooltip.customFormat),
|
|
722
722
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineAsyncComponent as D, computed as y, ref as d, toRefs as bt, watch as re, shallowRef as Be, onMounted as gt, onBeforeUnmount as xt, watchEffect as kt, createElementBlock as u, openBlock as n, unref as v, normalizeStyle as M, normalizeClass as V, createBlock as L, createCommentVNode as m, createElementVNode as E, createVNode as We, createSlots as wt, withCtx as w, renderSlot as b, normalizeProps as H, guardReactiveProps as B, Fragment as A, renderList as N, toDisplayString as W, createTextVNode as Ct } from "vue";
|
|
2
|
-
import { u as At, c as ce,
|
|
2
|
+
import { u as At, c as ce, t as $t, a as Tt, p as J, b as zt, o as Ue, f as Ve, g as Mt, d as Nt, e as Ft, D as _t, U as It, V as Lt, W as Pt, X as Ot, I as St, y as je, E as K, v as Rt, w as Dt, k as Ge, i as Xe, z as Et } from "./index-VrsKSULO.js";
|
|
3
3
|
import { t as Ye, u as Ht } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Bt } from "./usePrinter-
|
|
5
|
-
import { u as Wt, B as Ut } from "./
|
|
6
|
-
import { u as qe } from "./useNestedProp-
|
|
4
|
+
import { u as Bt } from "./usePrinter-BrYkAEvI.js";
|
|
5
|
+
import { u as Wt, B as Ut } from "./useLoading-Bt5Doa8m.js";
|
|
6
|
+
import { u as qe } from "./useNestedProp-lTwriOHy.js";
|
|
7
7
|
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as jt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
9
|
import { u as Gt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
|
-
import Xt from "./Title-
|
|
11
|
-
import Yt from "./Legend-
|
|
12
|
-
import { _ as qt } from "./Shape-
|
|
13
|
-
import Jt from "./img-
|
|
10
|
+
import Xt from "./Title-CNNSPaS8.js";
|
|
11
|
+
import Yt from "./Legend-Dt-A6TX4.js";
|
|
12
|
+
import { _ as qt } from "./Shape-BAOib99W.js";
|
|
13
|
+
import Jt from "./img-CNjWjg_p.js";
|
|
14
14
|
import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"], ta = { style: { "pointer-events": "none" } }, aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], la = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oa = { key: 0 }, sa = ["x", "y", "fill", "font-size", "font-weight"], na = ["fill", "font-size", "font-weight", "text-anchor", "transform"], ia = ["fill", "font-size", "font-weight", "text-anchor", "transform", "innerHTML"], ua = { key: 0 }, ra = ["x", "y", "font-size", "fill"], ca = ["width", "x", "y"], va = { style: { width: "100%" } }, da = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter", "onMouseleave", "onClick"], ha = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], pa = ["d", "onMouseenter", "onMouseleave", "onClick"], ma = {
|
|
16
16
|
key: 4,
|
|
@@ -33,7 +33,7 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
35
|
setup(Je, { expose: Ke, emit: Qe }) {
|
|
36
|
-
const Ze = D(() => import("./vue-ui-accordion-
|
|
36
|
+
const Ze = D(() => import("./vue-ui-accordion-CP3KpYYB.js")), et = D(() => import("./DataTable-CXvbwtai.js")), tt = D(() => import("./PackageVersion-D3gM0cgH.js")), at = D(() => import("./PenAndPaper-tiWdtLvY.js")), lt = D(() => import("./Tooltip-DsVWsLP0.js")), ot = D(() => import("./UserOptions-DdxzR5Mv.js")), { vue_ui_parallel_coordinate_plot: st } = At(), $ = Je, j = y({
|
|
37
37
|
get() {
|
|
38
38
|
return !!$.dataset && $.dataset.length;
|
|
39
39
|
},
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineAsyncComponent as P, computed as g, ref as y, watch as Ee, shallowRef as Ue, onMounted as bt, onBeforeUnmount as ft, createElementBlock as n, openBlock as s, unref as i, normalizeStyle as q, normalizeClass as T, createBlock as R, createCommentVNode as h, createElementVNode as d, createVNode as de, createSlots as pt, withCtx as m, renderSlot as x, normalizeProps as U, guardReactiveProps as D, Fragment as S, renderList as Y, toDisplayString as L, createTextVNode as gt, nextTick as mt } from "vue";
|
|
2
|
-
import { u as xt, c as De,
|
|
2
|
+
import { u as xt, c as De, a as $t, p as he, b as kt, o as Lt, f as G, d as wt, e as qt, Y as _t, k as F, i as V, X as St, s as oe, x as Ct, Z as zt, I as Tt, F as Xt, v as Wt, w as Yt, y as At, z as Mt } from "./index-VrsKSULO.js";
|
|
3
3
|
import { t as Nt, u as Ot } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ge } from "./useNestedProp-
|
|
5
|
-
import { u as Rt } from "./usePrinter-
|
|
4
|
+
import { u as Ge } from "./useNestedProp-lTwriOHy.js";
|
|
5
|
+
import { u as Rt } from "./usePrinter-BrYkAEvI.js";
|
|
6
6
|
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Bt from "./Title-
|
|
9
|
-
import Pt from "./Legend-
|
|
10
|
-
import { _ as Qe } from "./Shape-
|
|
11
|
-
import Ht from "./img-
|
|
8
|
+
import Bt from "./Title-CNNSPaS8.js";
|
|
9
|
+
import Pt from "./Legend-Dt-A6TX4.js";
|
|
10
|
+
import { _ as Qe } from "./Shape-BAOib99W.js";
|
|
11
|
+
import Ht from "./img-CNjWjg_p.js";
|
|
12
12
|
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "height"], Gt = ["id"], Qt = ["stop-color"], Jt = ["stop-color"], jt = { key: 1 }, Zt = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], Kt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], el = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], tl = { key: 2 }, ll = ["points", "fill"], al = ["points", "fill"], ul = ["points", "fill"], ol = ["points", "fill"], sl = { key: 3 }, rl = ["y", "fill", "font-size"], nl = ["x", "y", "fill", "font-size"], il = ["x", "y", "fill", "font-size"], vl = ["y", "fill", "font-size"], cl = { key: 4 }, dl = ["x", "y", "font-size", "fill"], hl = ["x", "y", "font-size", "fill"], yl = ["x", "y", "font-size", "fill"], bl = ["id", "font-size", "transform", "fill"], fl = ["id", "font-size", "transform", "fill"], pl = ["id", "font-size", "transform", "fill"], gl = { key: 5 }, ml = ["fill", "points"], xl = ["x", "y", "width", "height"], $l = ["x", "y", "width", "height"], kl = ["x", "y", "width", "height"], Ll = ["x", "y", "width", "height"], wl = {
|
|
14
14
|
key: 0,
|
|
@@ -42,7 +42,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
42
42
|
},
|
|
43
43
|
emits: ["selectPlot", "selectSide", "selectLegend"],
|
|
44
44
|
setup(Je, { expose: je, emit: Ze }) {
|
|
45
|
-
const Ke = P(() => import("./DataTable-
|
|
45
|
+
const Ke = P(() => import("./DataTable-CXvbwtai.js")), et = P(() => import("./PenAndPaper-tiWdtLvY.js")), tt = P(() => import("./vue-ui-accordion-CP3KpYYB.js")), lt = P(() => import("./vue-ui-skeleton-CcR1KppS.js")), at = P(() => import("./Tooltip-DsVWsLP0.js")), ut = P(() => import("./UserOptions-DdxzR5Mv.js")), ot = P(() => import("./PackageVersion-D3gM0cgH.js")), { vue_ui_quadrant: st } = xt(), X = Je, K = g(() => !!X.dataset && X.dataset.length), z = y(De()), se = Ze, rt = y(null), ee = y(!1), re = y(""), ye = y(0), f = y(!1), A = y(null), be = y(null), fe = y(null), pe = y(null), ge = y(null), me = y(0), xe = y(0), $e = y(0), t = g({
|
|
46
46
|
get: () => qe(),
|
|
47
47
|
set: (l) => l
|
|
48
48
|
}), { userOptionsVisible: ne, setUserOptionsVisibility: ke, keepUserOptionState: Le } = Ft({ config: t.value }), { svgRef: we } = Vt({ config: t.value.style.chart.title });
|
|
@@ -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-VrsKSULO.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-BrYkAEvI.js";
|
|
5
|
+
import { u as Mt } from "./useNestedProp-lTwriOHy.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-CNjWjg_p.js";
|
|
10
|
+
import { S as wa } from "./Slicer-2xXK3ZHN.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-B-JPaycb.js")), H = $e(() => import("./PackageVersion-D3gM0cgH.js")), le = $e(() => import("./PenAndPaper-tiWdtLvY.js")), be = $e(() => import("./Tooltip-DsVWsLP0.js")), ot = $e(() => import("./UserOptions-DdxzR5Mv.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
|
}, {
|