vue-data-ui 3.0.0-next.3 → 3.0.0-next.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{Arrow-C8ztMhxn.js → Arrow-CjrRAMiU.js} +1 -1
- package/dist/{BaseDraggableDialog-DoA1cXmQ.js → BaseDraggableDialog-Bat9k7_9.js} +2 -2
- package/dist/{BaseIcon-TJm1JI2f.js → BaseIcon-DGtQbkFy.js} +1 -1
- package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
- package/dist/{ColorPicker-DwhabPvD.js → ColorPicker-DowMg7RO.js} +2 -2
- package/dist/{DataTable-DObwKftY.js → DataTable-DAZn6udI.js} +2 -2
- package/dist/{Legend-C-EDWcHp.js → Legend-DCsRNGsk.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cmy4Opaq.js → NonSvgPenAndPaper-BhfZ3RsC.js} +3 -3
- package/dist/{PackageVersion-B_SVQo0g.js → PackageVersion-CJPhC_FI.js} +1 -1
- package/dist/{PenAndPaper-CFbTGuB_.js → PenAndPaper-kGe5NPSy.js} +3 -3
- package/dist/{Shape-DGduPk8q.js → Shape-D6ahkZT8.js} +1 -1
- package/dist/{Slicer-VumiAmDi.js → Slicer-CUUN5Npc.js} +2 -2
- package/dist/{SparkTooltip-DrRmoIkR.js → SparkTooltip-1EkqR7Qj.js} +7 -7
- package/dist/{Title-Dahu_Ia-.js → Title-gfAAMBE3.js} +1 -1
- package/dist/{Tooltip-j8grOyYT.js → Tooltip-eZi8Q0Mr.js} +23 -19
- package/dist/{UserOptions-BOIQ8NtD.js → UserOptions-Dd0OHMn7.js} +2 -2
- package/dist/{dom-to-png-00aHI4Vj.js → dom-to-png-CwBiVDQT.js} +1 -1
- package/dist/{img-DFeNRkbq.js → img-FayRC7eM.js} +1 -1
- package/dist/{index-DKjAxJY6.js → index-CvyDwC1y.js} +1305 -1181
- package/dist/{pdf-COmwjbLG.js → pdf-B_EkQtoL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +144 -15
- package/dist/types/vue-data-ui.d.ts +144 -15
- package/dist/{useNestedProp-Cmx8ApWu.js → useNestedProp-B-ULAHAH.js} +1 -1
- package/dist/{usePrinter-BefhLUKK.js → usePrinter-BAQfJI9j.js} +2 -2
- package/dist/useTimeLabelCollider-V7AOiPLB.js +71 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DFkUfjfs.js} +211 -152
- package/dist/{vue-data-ui-kdcEQgS0.js → vue-data-ui-Drw9rZ27.js} +80 -74
- package/dist/vue-data-ui.js +58 -56
- package/dist/{vue-ui-3d-bar-Lv9eoXpT.js → vue-ui-3d-bar-Bu68MVtW.js} +6 -6
- package/dist/{vue-ui-accordion-BhrF0D_h.js → vue-ui-accordion-ErGvIA2d.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DN94DM1L.js → vue-ui-age-pyramid-CeTpdJmu.js} +11 -9
- package/dist/{vue-ui-annotator-D-YFzFco.js → vue-ui-annotator-DneaduAI.js} +2 -2
- package/dist/{vue-ui-bullet--c-hIC1J.js → vue-ui-bullet-gol3S_xU.js} +7 -7
- package/dist/vue-ui-candlestick-BIjOGylw.js +991 -0
- package/dist/{vue-ui-carousel-table-Bg4_nEqO.js → vue-ui-carousel-table-DMIknisD.js} +4 -4
- package/dist/{vue-ui-chestnut-D9BP8n-D.js → vue-ui-chestnut-BpaWvBdS.js} +5 -5
- package/dist/{vue-ui-chord-DDa4TTtv.js → vue-ui-chord-BxtcK3_z.js} +8 -8
- package/dist/{vue-ui-circle-pack-DWxEHCSN.js → vue-ui-circle-pack-C1VhKFJH.js} +26 -26
- package/dist/{vue-ui-cursor-BtLD4k-n.js → vue-ui-cursor-BfBzN6pL.js} +2 -2
- package/dist/{vue-ui-dashboard-DvyNEYA8.js → vue-ui-dashboard-BkJ-_5VM.js} +62 -62
- package/dist/{vue-ui-digits-XkSs-Fvw.js → vue-ui-digits-DiVIJnu1.js} +2 -2
- package/dist/{vue-ui-donut-BO2QuXBj.js → vue-ui-donut-Bzs1fvFg.js} +408 -381
- package/dist/vue-ui-donut-evolution-CphzEyQm.js +1072 -0
- package/dist/{vue-ui-dumbbell-jtJmPKky.js → vue-ui-dumbbell-DZ_K-uO1.js} +7 -7
- package/dist/{vue-ui-flow-D1hSlRXa.js → vue-ui-flow-B1Smp670.js} +12 -10
- package/dist/{vue-ui-funnel-BlLlAOtx.js → vue-ui-funnel-MxaU-Y6j.js} +6 -6
- package/dist/{vue-ui-galaxy-BZAhXSnB.js → vue-ui-galaxy-CuIvJuky.js} +51 -49
- package/dist/{vue-ui-gauge-FdnYVol9.js → vue-ui-gauge-CQa1ARJW.js} +6 -6
- package/dist/{vue-ui-gizmo-BXiMNDNp.js → vue-ui-gizmo-CYD2DkWS.js} +3 -3
- package/dist/{vue-ui-heatmap-BUmZvmK0.js → vue-ui-heatmap-DPKVxs97.js} +32 -30
- package/dist/{vue-ui-history-plot-CTT0NO2g.js → vue-ui-history-plot-CfaqUSG0.js} +12 -10
- package/dist/{vue-ui-kpi-BNNqPORJ.js → vue-ui-kpi-BF7LY0ml.js} +3 -3
- package/dist/{vue-ui-mini-loader-wa4WjqZj.js → vue-ui-mini-loader-paPzy6bc.js} +2 -2
- package/dist/{vue-ui-molecule-NGbWYvw-.js → vue-ui-molecule-s8MbsyOD.js} +35 -33
- package/dist/{vue-ui-mood-radar-Dz2YUYPG.js → vue-ui-mood-radar-DJVB6bAz.js} +7 -7
- package/dist/vue-ui-nested-donuts-Cj6UWI-E.js +1286 -0
- package/dist/{vue-ui-onion-DUeU3zvH.js → vue-ui-onion-CZPQVM2E.js} +46 -44
- package/dist/{vue-ui-parallel-coordinate-plot-5158EX3T.js → vue-ui-parallel-coordinate-plot-BFjFaGPP.js} +69 -67
- package/dist/{vue-ui-quadrant-BEaCxPxR.js → vue-ui-quadrant-BliWKYkH.js} +59 -57
- package/dist/{vue-ui-quick-chart-C3yTivjK.js → vue-ui-quick-chart-BnsIAVwN.js} +269 -265
- package/dist/{vue-ui-radar-CwRo-de_.js → vue-ui-radar-BKWpjRbP.js} +12 -10
- package/dist/{vue-ui-rating-nHTBjTie.js → vue-ui-rating-BfGF_GEg.js} +2 -2
- package/dist/{vue-ui-relation-circle-w7TYrdHz.js → vue-ui-relation-circle-5U3oW2sT.js} +6 -6
- package/dist/{vue-ui-ridgeline-Dk9xpHSw.js → vue-ui-ridgeline-Ch5zmtxC.js} +9 -9
- package/dist/{vue-ui-rings-tCL5utj_.js → vue-ui-rings-B0NyCg-p.js} +13 -11
- package/dist/{vue-ui-scatter-BJUJRCto.js → vue-ui-scatter-Xv9oRiGO.js} +72 -70
- package/dist/{vue-ui-skeleton-Cf09cngz.js → vue-ui-skeleton-B-AdrWNd.js} +3 -3
- package/dist/{vue-ui-smiley-BvoOjmJx.js → vue-ui-smiley-snwlluW9.js} +2 -2
- package/dist/{vue-ui-spark-trend-Bdz2gHnU.js → vue-ui-spark-trend-DSdhsrCl.js} +3 -3
- package/dist/{vue-ui-sparkbar-CS1FzyFk.js → vue-ui-sparkbar-eABecvjz.js} +3 -3
- package/dist/{vue-ui-sparkgauge-auWy_YMm.js → vue-ui-sparkgauge-DFsW13y7.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-yA_F8Ls5.js → vue-ui-sparkhistogram-DPzGXjFj.js} +4 -4
- package/dist/vue-ui-sparkline-B5OPRjNU.js +489 -0
- package/dist/{vue-ui-sparkstackbar-BhqOPIZT.js → vue-ui-sparkstackbar-CVBdITIs.js} +55 -53
- package/dist/vue-ui-stackbar-BTr1BBN4.js +1360 -0
- package/dist/{vue-ui-strip-plot-D7KgSU5y.js → vue-ui-strip-plot-54NtDb0A.js} +30 -28
- package/dist/{vue-ui-table-BDJg5T9l.js → vue-ui-table-B3FWWAuR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Pp2gbL5G.js → vue-ui-table-heatmap-BTWwkQXu.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CmZBjiWv.js → vue-ui-table-sparkline-L_VfVY3_.js} +4 -4
- package/dist/{vue-ui-thermometer-ClY99Umm.js → vue-ui-thermometer-BYg-tLqb.js} +6 -6
- package/dist/{vue-ui-timer-_Bck3rxo.js → vue-ui-timer-Bsm1nthM.js} +5 -5
- package/dist/{vue-ui-tiremarks-C2CtoJT_.js → vue-ui-tiremarks-DDNjDbqV.js} +6 -6
- package/dist/{vue-ui-treemap-CM-zqI6U.js → vue-ui-treemap-4Rb7juUd.js} +13 -11
- package/dist/vue-ui-vertical-bar-BBUHbyBk.js +1108 -0
- package/dist/{vue-ui-waffle-B21kT4HO.js → vue-ui-waffle-B0pPICBw.js} +13 -11
- package/dist/{vue-ui-wheel-Dqv-ta7L.js → vue-ui-wheel-DsxxqjAU.js} +6 -6
- package/dist/{vue-ui-word-cloud-DHjvCwD8.js → vue-ui-word-cloud-Bcy11LqK.js} +12 -10
- package/dist/{vue-ui-world-h3Csu0YN.js → vue-ui-world-6gaLWJY0.js} +11 -9
- package/dist/vue-ui-xy-DH1dcD0K.js +3031 -0
- package/dist/{vue-ui-xy-canvas-sIRUM_Be.js → vue-ui-xy-canvas-dEh72fwk.js} +265 -264
- package/package.json +1 -1
- package/dist/vue-ui-candlestick-Dz0D7t8f.js +0 -873
- package/dist/vue-ui-donut-evolution-CQDtCf7k.js +0 -903
- package/dist/vue-ui-nested-donuts-ywwGdEJO.js +0 -1177
- package/dist/vue-ui-sparkline-B-sCAUEL.js +0 -459
- package/dist/vue-ui-stackbar-CZzqF-ZH.js +0 -1207
- package/dist/vue-ui-vertical-bar-CET-9MDi.js +0 -980
- package/dist/vue-ui-xy-CZ7mScyg.js +0 -2958
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as N, computed as x, ref as h, watch as ot, shallowRef as Ie, onMounted as st, onBeforeUnmount as nt, createElementBlock as u, openBlock as i, unref as d, normalizeStyle as z, normalizeClass as W, createBlock as I, createCommentVNode as
|
|
2
|
-
import { u as rt, c as ae, t as ct, p as G, a as vt, o as dt, e as Ne, g as ht, b as pt, d as
|
|
1
|
+
import { defineAsyncComponent as N, computed as x, ref as h, watch as ot, shallowRef as Ie, onMounted as st, onBeforeUnmount as nt, createElementBlock as u, openBlock as i, unref as d, normalizeStyle as z, normalizeClass as W, createBlock as I, createCommentVNode as y, createElementVNode as E, createVNode as _e, createSlots as it, withCtx as w, renderSlot as g, normalizeProps as B, guardReactiveProps as U, Fragment as C, renderList as _, toDisplayString as V, createTextVNode as ut } from "vue";
|
|
2
|
+
import { u as rt, c as ae, t as ct, p as G, a as vt, o as dt, e as Ne, g as ht, b as pt, d as mt, D as yt, U as ft, V as gt, W as bt, X as xt, I as kt, x as Pe, E as Y, q as wt, r as Ct, i as Oe, f as Le, y as $t } from "./index-CvyDwC1y.js";
|
|
3
3
|
import { t as At, u as zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as De } from "./useNestedProp-
|
|
5
|
-
import { u as Tt } from "./usePrinter-
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import St from "./Title-
|
|
9
|
-
import It from "./Legend-
|
|
10
|
-
import { _ as _t } from "./Shape-
|
|
11
|
-
import Nt from "./img-
|
|
4
|
+
import { u as De } from "./useNestedProp-B-ULAHAH.js";
|
|
5
|
+
import { u as Tt } from "./usePrinter-BAQfJI9j.js";
|
|
6
|
+
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import St from "./Title-gfAAMBE3.js";
|
|
9
|
+
import It from "./Legend-DCsRNGsk.js";
|
|
10
|
+
import { _ as _t } from "./Shape-D6ahkZT8.js";
|
|
11
|
+
import Nt from "./img-FayRC7eM.js";
|
|
12
12
|
import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"], Rt = { style: { "pointer-events": "none" } }, Et = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = ["x", "y", "fill", "font-size", "font-weight"], Ut = ["x", "y", "fill", "font-size", "font-weight", "innerHTML"], Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x", "y", "fill", "font-size", "font-weight"], Ht = { key: 0 }, jt = ["x", "y", "font-size", "fill"], Xt = ["width", "x", "y"], Gt = { style: { width: "100%" } }, Yt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], qt = ["d", "stroke", "stroke-width", "onMouseenter"], Jt = ["d", "onMouseenter"], Kt = {
|
|
14
14
|
key: 5,
|
|
@@ -31,22 +31,22 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend", "selectDatapoint"],
|
|
33
33
|
setup(Re, { expose: Ee, emit: Be }) {
|
|
34
|
-
const Ue = N(() => import("./vue-ui-accordion-
|
|
34
|
+
const Ue = N(() => import("./vue-ui-accordion-ErGvIA2d.js")), Ve = N(() => import("./DataTable-DAZn6udI.js")), We = N(() => import("./PackageVersion-CJPhC_FI.js")), He = N(() => import("./PenAndPaper-kGe5NPSy.js")), je = N(() => import("./vue-ui-skeleton-B-AdrWNd.js")), Xe = N(() => import("./Tooltip-eZi8Q0Mr.js")), Ge = N(() => import("./UserOptions-Dd0OHMn7.js")), { vue_ui_parallel_coordinate_plot: Ye } = rt(), T = Re, P = x({
|
|
35
35
|
get() {
|
|
36
36
|
return !!T.dataset && T.dataset.length;
|
|
37
37
|
},
|
|
38
38
|
set(t) {
|
|
39
39
|
return t;
|
|
40
40
|
}
|
|
41
|
-
}), le = h(0),
|
|
41
|
+
}), le = h(0), F = h(null), oe = h(null), se = h(null), ne = h(null), ie = h(null), ue = h(0), re = h(0), ce = h(0), q = h(ae()), O = h(!1);
|
|
42
42
|
function ve(t) {
|
|
43
43
|
O.value = t, le.value += 1;
|
|
44
44
|
}
|
|
45
45
|
const e = x({
|
|
46
|
-
get: () =>
|
|
46
|
+
get: () => me(),
|
|
47
47
|
set: (t) => t
|
|
48
|
-
}), { userOptionsVisible: J, setUserOptionsVisibility: de, keepUserOptionState: he } =
|
|
49
|
-
function
|
|
48
|
+
}), { userOptionsVisible: J, setUserOptionsVisibility: de, keepUserOptionState: he } = Ft({ config: e.value }), { svgRef: pe } = Mt({ config: e.value.style.chart.title });
|
|
49
|
+
function me() {
|
|
50
50
|
const t = De({
|
|
51
51
|
userConfig: T.config,
|
|
52
52
|
defaultConfig: Ye
|
|
@@ -60,13 +60,13 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
60
60
|
} : t;
|
|
61
61
|
}
|
|
62
62
|
ot(() => T.config, (t) => {
|
|
63
|
-
e.value =
|
|
63
|
+
e.value = me(), J.value = !e.value.userOptions.showOnChartHover, ye(), ue.value += 1, ce.value += 1, re.value += 1, p.value.dataLabels.show = e.value.style.chart.yAxis.labels.datapoints.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
64
64
|
}, { deep: !0 });
|
|
65
|
-
const
|
|
65
|
+
const M = Ie(null), L = Ie(null);
|
|
66
66
|
st(() => {
|
|
67
|
-
|
|
67
|
+
ye();
|
|
68
68
|
});
|
|
69
|
-
function
|
|
69
|
+
function ye() {
|
|
70
70
|
if (dt(T.dataset) ? Ne({
|
|
71
71
|
componentName: "VueUiParallelCoordinatePlot",
|
|
72
72
|
type: "dataset"
|
|
@@ -85,7 +85,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
85
85
|
}), e.value.responsive) {
|
|
86
86
|
const t = At(() => {
|
|
87
87
|
const { width: l, height: a } = zt({
|
|
88
|
-
chart:
|
|
88
|
+
chart: F.value,
|
|
89
89
|
title: e.value.style.chart.title.text ? oe.value : null,
|
|
90
90
|
legend: e.value.style.chart.legend.show ? se.value : null,
|
|
91
91
|
source: ne.value,
|
|
@@ -119,11 +119,11 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
119
119
|
})) : (c.value.plotSize = e.value.style.chart.plots.radius, c.value.ticksFontSize = e.value.style.chart.yAxis.labels.ticks.fontSize, c.value.datapointFontSize = e.value.style.chart.yAxis.labels.datapoints.fontSize, c.value.axisNameFontSize = e.value.style.chart.yAxis.labels.axisNamesFontSize);
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
|
-
|
|
122
|
+
M.value && (L.value && M.value.unobserve(L.value), M.value.disconnect()), M.value = new ResizeObserver(t), L.value = F.value.parentNode, M.value.observe(L.value);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
nt(() => {
|
|
126
|
-
|
|
126
|
+
M.value && (L.value && M.value.unobserve(L.value), M.value.disconnect());
|
|
127
127
|
});
|
|
128
128
|
const { isPrinting: fe, isImaging: ge, generatePdf: be, generateImage: xe } = Tt({
|
|
129
129
|
elementId: `pcp_${q.value}`,
|
|
@@ -161,7 +161,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
161
161
|
$.value.includes(t) ? $.value = $.value.filter((l) => l !== t) : $.value.push(t);
|
|
162
162
|
}
|
|
163
163
|
const S = x(() => T.dataset.map((t, l) => {
|
|
164
|
-
const a =
|
|
164
|
+
const a = mt(t.color) || Je.value[l] || G[l] || G[l % G.length];
|
|
165
165
|
return {
|
|
166
166
|
...t,
|
|
167
167
|
series: t.series.map((o) => ({
|
|
@@ -191,12 +191,12 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
191
191
|
)), k = x(() => r.value.width / we.value), K = x(() => S.value.filter((t) => !$.value.includes(t.id))), b = x(() => {
|
|
192
192
|
let t = [];
|
|
193
193
|
for (let l = 0; l < we.value; l += 1) {
|
|
194
|
-
const a = Math.min(...K.value.flatMap((
|
|
195
|
-
const at = v.min < 0 ?
|
|
194
|
+
const a = Math.min(...K.value.flatMap((m) => m.series.map((X) => X.values[l] || 0) || 0)), o = Math.max(...K.value.flatMap((m) => m.series.map((X) => X.values[l] || 0) || 0)), n = o === a ? a / 4 : a, s = o === a ? o * 2 : o, v = yt(n, s, e.value.style.chart.yAxis.scaleTicks), A = v.ticks.map((m, X) => {
|
|
195
|
+
const at = v.min < 0 ? m + Math.abs(v.min) : m - Math.abs(v.min), lt = v.min < 0 ? v.max + Math.abs(v.min) : v.max - Math.abs(v.min);
|
|
196
196
|
return {
|
|
197
197
|
y: r.value.bottom - r.value.height * (at / lt),
|
|
198
198
|
x: r.value.left + k.value * l + k.value / 2,
|
|
199
|
-
value:
|
|
199
|
+
value: m
|
|
200
200
|
};
|
|
201
201
|
});
|
|
202
202
|
t.push({
|
|
@@ -267,25 +267,25 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
267
267
|
series: S.value,
|
|
268
268
|
config: e.value,
|
|
269
269
|
scales: b.value
|
|
270
|
-
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l ? l + " - " : ""}${a.name}</div>`, b.value.map((A) => A.name).forEach((A,
|
|
270
|
+
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l ? l + " - " : ""}${a.name}</div>`, b.value.map((A) => A.name).forEach((A, m) => {
|
|
271
271
|
s += `
|
|
272
272
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
273
273
|
<span>${A}: </span>
|
|
274
274
|
<span>
|
|
275
275
|
${Oe(
|
|
276
|
-
e.value.style.chart.yAxis.labels.formatters[
|
|
277
|
-
a.datapoints[
|
|
276
|
+
e.value.style.chart.yAxis.labels.formatters[m] || null,
|
|
277
|
+
a.datapoints[m].value,
|
|
278
278
|
Le({
|
|
279
|
-
p: e.value.style.chart.yAxis.labels.prefixes[
|
|
280
|
-
v: a.datapoints[
|
|
281
|
-
s: e.value.style.chart.yAxis.labels.suffixes[
|
|
282
|
-
r: e.value.style.chart.yAxis.labels.roundings[
|
|
279
|
+
p: e.value.style.chart.yAxis.labels.prefixes[m] || "",
|
|
280
|
+
v: a.datapoints[m].value,
|
|
281
|
+
s: e.value.style.chart.yAxis.labels.suffixes[m] || "",
|
|
282
|
+
r: e.value.style.chart.yAxis.labels.roundings[m] || ""
|
|
283
283
|
}),
|
|
284
|
-
{ datapoint: a.datapoints[
|
|
284
|
+
{ datapoint: a.datapoints[m], seriesIndex: m }
|
|
285
285
|
)}
|
|
286
286
|
</span>
|
|
287
287
|
</div>
|
|
288
|
-
`, e.value.style.chart.comments.showInTooltip && a.datapoints[
|
|
288
|
+
`, e.value.style.chart.comments.showInTooltip && a.datapoints[m].comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.datapoints[m].comment}</div>`);
|
|
289
289
|
}), ee.value = `<div>${s}</div>`);
|
|
290
290
|
}
|
|
291
291
|
function Ze() {
|
|
@@ -330,10 +330,10 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
330
330
|
opacity: t.isSegregated ? 1 : 0.5
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function Fe() {
|
|
334
334
|
p.value.showTable = !p.value.showTable;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Me() {
|
|
337
337
|
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
338
338
|
}
|
|
339
339
|
function Se() {
|
|
@@ -344,8 +344,8 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
344
344
|
j.value = !j.value;
|
|
345
345
|
}
|
|
346
346
|
async function tt({ scale: t = 2 } = {}) {
|
|
347
|
-
if (!
|
|
348
|
-
const { width: l, height: a } =
|
|
347
|
+
if (!F.value) return;
|
|
348
|
+
const { width: l, height: a } = F.value.getBoundingClientRect(), o = l / a, { imageUri: n, base64: s } = await Nt({ domElement: F.value, base64: !0, img: !0, scale: t });
|
|
349
349
|
return {
|
|
350
350
|
imageUri: n,
|
|
351
351
|
base64: s,
|
|
@@ -361,14 +361,14 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
361
361
|
generateCsv: Ae,
|
|
362
362
|
generatePdf: be,
|
|
363
363
|
generateImage: xe,
|
|
364
|
-
toggleTable:
|
|
365
|
-
toggleLabels:
|
|
364
|
+
toggleTable: Fe,
|
|
365
|
+
toggleLabels: Me,
|
|
366
366
|
toggleTooltip: Se,
|
|
367
367
|
toggleAnnotator: te,
|
|
368
368
|
toggleFullscreen: ve
|
|
369
369
|
}), (t, l) => (i(), u("div", {
|
|
370
370
|
ref_key: "pcpChart",
|
|
371
|
-
ref:
|
|
371
|
+
ref: F,
|
|
372
372
|
class: W(`vue-ui-pcp ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
373
373
|
style: z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
374
374
|
id: `pcp_${q.value}`,
|
|
@@ -382,14 +382,14 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
382
382
|
color: e.value.style.chart.color,
|
|
383
383
|
active: j.value,
|
|
384
384
|
onClose: te
|
|
385
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
385
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
386
386
|
qe.value ? (i(), u("div", {
|
|
387
387
|
key: 1,
|
|
388
388
|
ref_key: "noTitle",
|
|
389
389
|
ref: ie,
|
|
390
390
|
class: "vue-data-ui-no-title-space",
|
|
391
391
|
style: "height:36px; width: 100%;background:transparent"
|
|
392
|
-
}, null, 512)) :
|
|
392
|
+
}, null, 512)) : y("", !0),
|
|
393
393
|
e.value.style.chart.title.text ? (i(), u("div", {
|
|
394
394
|
key: 2,
|
|
395
395
|
ref_key: "chartTitle",
|
|
@@ -409,7 +409,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
}, null, 8, ["config"]))
|
|
412
|
-
], 512)) :
|
|
412
|
+
], 512)) : y("", !0),
|
|
413
413
|
e.value.userOptions.show && P.value && (d(he) || d(J)) ? (i(), I(d(Ge), {
|
|
414
414
|
ref: "details",
|
|
415
415
|
key: `user_options_${le.value}`,
|
|
@@ -428,7 +428,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
428
428
|
isFullscreen: O.value,
|
|
429
429
|
isTooltip: p.value.showTooltip,
|
|
430
430
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
431
|
-
chartElement:
|
|
431
|
+
chartElement: F.value,
|
|
432
432
|
position: e.value.userOptions.position,
|
|
433
433
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
434
434
|
isAnnotation: j.value,
|
|
@@ -438,8 +438,8 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
438
438
|
onGeneratePdf: d(be),
|
|
439
439
|
onGenerateCsv: Ae,
|
|
440
440
|
onGenerateImage: d(xe),
|
|
441
|
-
onToggleTable:
|
|
442
|
-
onToggleLabels:
|
|
441
|
+
onToggleTable: Fe,
|
|
442
|
+
onToggleLabels: Me,
|
|
443
443
|
onToggleTooltip: Se,
|
|
444
444
|
onToggleAnnotator: te,
|
|
445
445
|
style: z({
|
|
@@ -502,7 +502,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
502
502
|
]),
|
|
503
503
|
key: "7"
|
|
504
504
|
} : void 0
|
|
505
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
505
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
506
506
|
P.value ? (i(), u("svg", {
|
|
507
507
|
key: 4,
|
|
508
508
|
ref_key: "svgRef",
|
|
@@ -524,7 +524,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
524
524
|
}
|
|
525
525
|
}, [
|
|
526
526
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
527
|
-
], 8, Dt)) :
|
|
527
|
+
], 8, Dt)) : y("", !0),
|
|
528
528
|
(i(!0), u(C, null, _(b.value, (a, o) => (i(), u("g", Rt, [
|
|
529
529
|
E("line", {
|
|
530
530
|
x1: r.value.left + k.value * o + k.value / 2,
|
|
@@ -578,7 +578,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
578
578
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
579
579
|
style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
580
580
|
}, V(Ce({ value: n.value, index: o, datapoint: n })), 13, Wt))), 256))
|
|
581
|
-
], 64)) :
|
|
581
|
+
], 64)) : y("", !0)
|
|
582
582
|
]))), 256)),
|
|
583
583
|
(i(!0), u(C, null, _(Q.value, (a) => (i(), u("g", null, [
|
|
584
584
|
(i(!0), u(C, null, _(a.series, (o, n) => (i(), u("g", null, [
|
|
@@ -603,7 +603,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
603
603
|
style: z(`opacity:${f.value ? f.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
604
604
|
onClick: () => et(s)
|
|
605
605
|
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "style", "onClick"]))), 256)),
|
|
606
|
-
p.value.showTooltip ?
|
|
606
|
+
p.value.showTooltip ? y("", !0) : (i(), u(C, { key: 0 }, [
|
|
607
607
|
f.value && f.value === o.id && o.datapoints.length ? (i(), u("text", {
|
|
608
608
|
key: 0,
|
|
609
609
|
x: o.datapoints[0].x - c.value.ticksFontSize,
|
|
@@ -612,7 +612,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
612
612
|
"font-size": c.value.ticksFontSize,
|
|
613
613
|
fill: a.color,
|
|
614
614
|
"font-weight": "bold"
|
|
615
|
-
}, V(o.name), 9, jt)) :
|
|
615
|
+
}, V(o.name), 9, jt)) : y("", !0)
|
|
616
616
|
], 64)),
|
|
617
617
|
e.value.style.chart.comments.show ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s) => (i(), u("g", null, [
|
|
618
618
|
s.comment ? (i(), u("foreignObject", {
|
|
@@ -628,9 +628,9 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
628
628
|
plot: { ...s, color: a.color }
|
|
629
629
|
}, void 0, !0)
|
|
630
630
|
])
|
|
631
|
-
], 8, Xt)) :
|
|
632
|
-
]))), 256)) :
|
|
633
|
-
])) :
|
|
631
|
+
], 8, Xt)) : y("", !0)
|
|
632
|
+
]))), 256)) : y("", !0)
|
|
633
|
+
])) : y("", !0),
|
|
634
634
|
p.value.dataLabels.show || f.value && f.value === o.id ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s, v) => (i(), u("text", {
|
|
635
635
|
x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
636
636
|
y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
@@ -650,7 +650,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
650
650
|
f.value = null, D.value = !1;
|
|
651
651
|
}),
|
|
652
652
|
style: z(`opacity:${f.value ? f.value === o.id ? 1 : 0.2 : 1}`)
|
|
653
|
-
}, V(Ce({ value: s.value, index: v, datapoint: s })), 45, Yt))), 256)) :
|
|
653
|
+
}, V(Ce({ value: s.value, index: v, datapoint: s })), 45, Yt))), 256)) : y("", !0),
|
|
654
654
|
E("path", {
|
|
655
655
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
656
656
|
stroke: a.color,
|
|
@@ -687,15 +687,15 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
687
687
|
f.value = null, D.value = !1;
|
|
688
688
|
}),
|
|
689
689
|
style: { opacity: "0" }
|
|
690
|
-
}, null, 42, Jt)) :
|
|
690
|
+
}, null, 42, Jt)) : y("", !0)
|
|
691
691
|
]))), 256))
|
|
692
692
|
]))), 256)),
|
|
693
693
|
g(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
694
|
-
], 14, Lt)) :
|
|
694
|
+
], 14, Lt)) : y("", !0),
|
|
695
695
|
t.$slots.watermark ? (i(), u("div", Kt, [
|
|
696
696
|
g(t.$slots, "watermark", B(U({ isPrinting: d(fe) || d(ge) })), void 0, !0)
|
|
697
|
-
])) :
|
|
698
|
-
P.value ?
|
|
697
|
+
])) : y("", !0),
|
|
698
|
+
P.value ? y("", !0) : (i(), I(d(je), {
|
|
699
699
|
key: 6,
|
|
700
700
|
config: {
|
|
701
701
|
type: "parallelCoordinatePlot",
|
|
@@ -737,7 +737,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
737
737
|
dir: "auto"
|
|
738
738
|
}, [
|
|
739
739
|
g(t.$slots, "source", {}, void 0, !0)
|
|
740
|
-
], 512)) :
|
|
740
|
+
], 512)) : y("", !0),
|
|
741
741
|
_e(d(Xe), {
|
|
742
742
|
show: p.value.showTooltip && D.value,
|
|
743
743
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -749,10 +749,12 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
749
749
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
750
750
|
position: e.value.style.chart.tooltip.position,
|
|
751
751
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
752
|
-
parent:
|
|
752
|
+
parent: F.value,
|
|
753
753
|
content: ee.value,
|
|
754
754
|
isFullscreen: O.value,
|
|
755
|
-
isCustom: d(Pe)(e.value.style.chart.tooltip.customFormat)
|
|
755
|
+
isCustom: d(Pe)(e.value.style.chart.tooltip.customFormat),
|
|
756
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
757
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
756
758
|
}, {
|
|
757
759
|
"tooltip-before": w(() => [
|
|
758
760
|
g(t.$slots, "tooltip-before", B(U({ ...Z.value })), void 0, !0)
|
|
@@ -761,7 +763,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
761
763
|
g(t.$slots, "tooltip-after", B(U({ ...Z.value })), void 0, !0)
|
|
762
764
|
]),
|
|
763
765
|
_: 3
|
|
764
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
766
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
765
767
|
P.value ? (i(), I(d(Ue), {
|
|
766
768
|
key: 8,
|
|
767
769
|
hideDetails: "",
|
|
@@ -798,10 +800,10 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
798
800
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
799
801
|
]),
|
|
800
802
|
_: 1
|
|
801
|
-
}, 8, ["config"])) :
|
|
803
|
+
}, 8, ["config"])) : y("", !0)
|
|
802
804
|
], 46, Ot));
|
|
803
805
|
}
|
|
804
|
-
}, ha = /* @__PURE__ */ Pt(ea, [["__scopeId", "data-v-
|
|
806
|
+
}, ha = /* @__PURE__ */ Pt(ea, [["__scopeId", "data-v-8657bba9"]]);
|
|
805
807
|
export {
|
|
806
808
|
ha as default
|
|
807
809
|
};
|