vue-data-ui 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
1
|
+
import { defineAsyncComponent as D, computed as f, ref as d, toRefs as Ot, watch as ee, shallowRef as Qe, onMounted as Dt, onBeforeUnmount as Rt, watchEffect as Bt, createElementBlock as u, openBlock as n, unref as v, normalizeStyle as I, normalizeClass as X, createBlock as _, createCommentVNode as g, createElementVNode as P, createVNode as fe, withCtx as h, renderSlot as p, normalizeProps as T, guardReactiveProps as z, createSlots as Je, Fragment as A, renderList as L, toDisplayString as H, Teleport as Et, resolveDynamicComponent as Ht, mergeProps as Ut, createTextVNode as Ke, nextTick as Wt } from "vue";
|
|
2
2
|
import { c as ye, t as Vt, b as Gt, p as te, o as Ze, f as et, g as jt, e as Xt, h as Yt, m as qt, B as Qt, z as Jt, a9 as Kt, X as Zt, M as ea, G as tt, R as ae, P as ta, Q as aa, a as at, d as lt, H as la } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as ot, u as oa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as sa, a as st } from "./useNestedProp-
|
|
4
|
+
import { u as sa, a as st } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as na } from "./usePrinter-DTzqpYKF.js";
|
|
6
6
|
import { u as ia, B as ua } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as ra } from "./useSvgExport-DrjCWun4.js";
|
|
@@ -9,12 +9,12 @@ import { u as ca } from "./useUserOptionState-BIvW1Kz7.js";
|
|
|
9
9
|
import { u as va } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { u as da } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
11
|
import { t as ha } from "./themes-AUNCOb2G.js";
|
|
12
|
-
import pa from "./Title-
|
|
12
|
+
import pa from "./Title-isbiM8i8.js";
|
|
13
13
|
import ma from "./Legend-G6GMcdAc.js";
|
|
14
14
|
import { _ as fa } from "./Shape-CNXKB8O0.js";
|
|
15
15
|
import ya from "./img-BecE5qXd.js";
|
|
16
16
|
import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"], Ca = { style: { "pointer-events": "none" } }, Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ta = { key: 0 }, za = ["x", "y", "fill", "font-size", "font-weight"], Fa = ["fill", "font-size", "font-weight", "text-anchor", "transform"], Ma = ["fill", "font-size", "font-weight", "text-anchor", "transform", "innerHTML"],
|
|
17
|
+
const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"], Ca = { style: { "pointer-events": "none" } }, Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ta = { key: 0 }, za = ["x", "y", "fill", "font-size", "font-weight"], Fa = ["fill", "font-size", "font-weight", "text-anchor", "transform"], Ma = ["fill", "font-size", "font-weight", "text-anchor", "transform", "innerHTML"], Na = { key: 0 }, Sa = ["x", "y", "font-size", "fill"], Ia = ["width", "x", "y"], _a = { style: { width: "100%" } }, Pa = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter", "onMouseleave", "onClick"], La = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Oa = ["d", "onMouseenter", "onMouseleave", "onClick"], Da = {
|
|
18
18
|
key: 4,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
20
|
}, Ra = ["id"], Ba = ["onClick"], Ea = ["innerHTML"], Ha = {
|
|
@@ -35,24 +35,24 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend", "selectDatapoint"],
|
|
37
37
|
setup(nt, { expose: it, emit: ut }) {
|
|
38
|
-
const rt =
|
|
38
|
+
const rt = D(() => import("./Tooltip-oWCO1HKy.js")), ct = D(() => import("./BaseIcon-BmMbm4d0.js")), vt = D(() => import("./vue-ui-accordion-CqhVCfc2.js")), dt = D(() => import("./DataTable-BT7VF2ua.js")), ht = D(() => import("./PenAndPaper-SZQIAgkg.js")), pt = D(() => import("./UserOptions-CGnQt6Fd.js")), mt = D(() => import("./PackageVersion-DQvyATVa.js")), ft = D(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_parallel_coordinate_plot: yt } = sa(), F = nt, Y = f({
|
|
39
39
|
get() {
|
|
40
|
-
return !!
|
|
40
|
+
return !!F.dataset && F.dataset.length;
|
|
41
41
|
},
|
|
42
42
|
set(t) {
|
|
43
43
|
return t;
|
|
44
44
|
}
|
|
45
|
-
}), ge = d(0),
|
|
45
|
+
}), ge = d(0), S = d(null), be = d(null), xe = d(null), ke = d(null), we = d(null), Ce = d(0), Ae = d(0), $e = d(0), Te = d(!1), V = d(null), le = d(null), oe = d(null), R = d(ye()), B = d(!1);
|
|
46
46
|
function ze(t) {
|
|
47
|
-
|
|
47
|
+
B.value = t, ge.value += 1;
|
|
48
48
|
}
|
|
49
|
-
const e = d(ue()), { loading:
|
|
50
|
-
...Ot(
|
|
49
|
+
const e = d(ue()), { loading: E, FINAL_DATASET: gt, manualLoading: se } = ia({
|
|
50
|
+
...Ot(F),
|
|
51
51
|
FINAL_CONFIG: e,
|
|
52
52
|
prepareConfig: ue,
|
|
53
53
|
callback: () => {
|
|
54
54
|
Promise.resolve().then(async () => {
|
|
55
|
-
await Wt(),
|
|
55
|
+
await Wt(), y.value.showTable = e.value.table.show;
|
|
56
56
|
});
|
|
57
57
|
},
|
|
58
58
|
skeletonDataset: [
|
|
@@ -120,33 +120,33 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
120
120
|
}), { userOptionsVisible: ne, setUserOptionsVisibility: Fe, keepUserOptionState: Me } = ca({ config: e.value }), { svgRef: ie } = va({ config: e.value.style.chart.title });
|
|
121
121
|
function ue() {
|
|
122
122
|
const t = st({
|
|
123
|
-
userConfig:
|
|
123
|
+
userConfig: F.config,
|
|
124
124
|
defaultConfig: yt
|
|
125
125
|
});
|
|
126
126
|
return t.theme ? {
|
|
127
127
|
...st({
|
|
128
|
-
userConfig: ha.vue_ui_parallel_coordinate_plot[t.theme] ||
|
|
128
|
+
userConfig: ha.vue_ui_parallel_coordinate_plot[t.theme] || F.config,
|
|
129
129
|
defaultConfig: t
|
|
130
130
|
}),
|
|
131
131
|
customPalette: Gt[t.theme] || te
|
|
132
132
|
} : t;
|
|
133
133
|
}
|
|
134
|
-
ee(() =>
|
|
135
|
-
|
|
136
|
-
}, { deep: !0 }), ee(() =>
|
|
134
|
+
ee(() => F.config, (t) => {
|
|
135
|
+
E.value || (e.value = ue()), ne.value = !e.value.userOptions.showOnChartHover, Se(), Ce.value += 1, $e.value += 1, Ae.value += 1, y.value.dataLabels.show = e.value.style.chart.yAxis.labels.datapoints.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
136
|
+
}, { deep: !0 }), ee(() => F.dataset, (t) => {
|
|
137
137
|
Array.isArray(t) && t.length > 0 && (se.value = !1);
|
|
138
138
|
}, { deep: !0 });
|
|
139
|
-
const
|
|
139
|
+
const O = Qe(null), U = Qe(null);
|
|
140
140
|
Dt(() => {
|
|
141
|
-
Te.value = !0,
|
|
141
|
+
Te.value = !0, Se();
|
|
142
142
|
});
|
|
143
|
-
const
|
|
144
|
-
function
|
|
145
|
-
if (Ze(
|
|
143
|
+
const Ne = f(() => !!e.value.debug);
|
|
144
|
+
function Se() {
|
|
145
|
+
if (Ze(F.dataset) ? (et({
|
|
146
146
|
componentName: "VueUiParallelCoordinatePlot",
|
|
147
147
|
type: "dataset",
|
|
148
|
-
debug:
|
|
149
|
-
}), se.value = !0) :
|
|
148
|
+
debug: Ne.value
|
|
149
|
+
}), se.value = !0) : F.dataset.forEach((t, l) => {
|
|
150
150
|
jt({
|
|
151
151
|
datasetObject: t,
|
|
152
152
|
requiredAttributes: ["name", "series"]
|
|
@@ -156,13 +156,13 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
156
156
|
type: "datasetSerieAttribute",
|
|
157
157
|
property: a,
|
|
158
158
|
index: l,
|
|
159
|
-
debug:
|
|
159
|
+
debug: Ne.value
|
|
160
160
|
});
|
|
161
161
|
});
|
|
162
|
-
}), Ze(
|
|
162
|
+
}), Ze(F.dataset) || (se.value = e.value.loading), e.value.responsive) {
|
|
163
163
|
const t = ot(() => {
|
|
164
164
|
const { width: l, height: a } = oa({
|
|
165
|
-
chart:
|
|
165
|
+
chart: S.value,
|
|
166
166
|
title: e.value.style.chart.title.text ? be.value : null,
|
|
167
167
|
legend: e.value.style.chart.legend.show ? xe.value : null,
|
|
168
168
|
source: ke.value,
|
|
@@ -196,17 +196,17 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
196
196
|
})) : (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);
|
|
197
197
|
});
|
|
198
198
|
});
|
|
199
|
-
|
|
199
|
+
O.value && (U.value && O.value.unobserve(U.value), O.value.disconnect()), O.value = new ResizeObserver(t), U.value = S.value.parentNode, O.value.observe(U.value);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
Rt(() => {
|
|
203
|
-
|
|
203
|
+
O.value && (U.value && O.value.unobserve(U.value), O.value.disconnect());
|
|
204
204
|
});
|
|
205
|
-
const { isPrinting:
|
|
206
|
-
elementId: `pcp_${
|
|
205
|
+
const { isPrinting: Ie, isImaging: _e, generatePdf: Pe, generateImage: Le } = na({
|
|
206
|
+
elementId: `pcp_${R.value}`,
|
|
207
207
|
fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
|
|
208
208
|
options: e.value.userOptions.print
|
|
209
|
-
}), bt =
|
|
209
|
+
}), bt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = d({
|
|
210
210
|
height: e.value.style.chart.height,
|
|
211
211
|
width: e.value.style.chart.width,
|
|
212
212
|
plotSize: e.value.style.chart.plots.radius,
|
|
@@ -215,7 +215,7 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
215
215
|
// ratio 42.85
|
|
216
216
|
datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
217
217
|
axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
218
|
-
}), Oe =
|
|
218
|
+
}), Oe = f(() => c.value.width), De = f(() => c.value.height), G = d(0), xt = ot((t) => {
|
|
219
219
|
G.value = t;
|
|
220
220
|
}, 100);
|
|
221
221
|
Bt((t) => {
|
|
@@ -226,7 +226,7 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
226
226
|
});
|
|
227
227
|
a.observe(l), t(() => a.disconnect());
|
|
228
228
|
});
|
|
229
|
-
const
|
|
229
|
+
const m = f(() => {
|
|
230
230
|
const { top: t, right: l, bottom: a, left: s } = e.value.style.chart.padding, o = De.value, r = Oe.value;
|
|
231
231
|
return {
|
|
232
232
|
chartHeight: Math.max(1e-3, o),
|
|
@@ -238,7 +238,7 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
238
238
|
right: r - l,
|
|
239
239
|
bottom: o - a - c.value.datapointFontSize
|
|
240
240
|
};
|
|
241
|
-
}), kt =
|
|
241
|
+
}), kt = f(() => Xt(e.value.customPalette)), y = d({
|
|
242
242
|
dataLabels: {
|
|
243
243
|
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
244
244
|
},
|
|
@@ -246,7 +246,7 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
246
246
|
showTooltip: e.value.style.chart.tooltip.show
|
|
247
247
|
});
|
|
248
248
|
ee(e, () => {
|
|
249
|
-
|
|
249
|
+
y.value = {
|
|
250
250
|
dataLabels: {
|
|
251
251
|
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
252
252
|
},
|
|
@@ -258,7 +258,7 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
258
258
|
function q(t) {
|
|
259
259
|
$.value.includes(t) ? $.value = $.value.filter((l) => l !== t) : $.value.push(t);
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const M = f(() => gt.value.map((t, l) => {
|
|
262
262
|
const a = Yt(t.color) || kt.value[l] || te[l] || te[l % te.length];
|
|
263
263
|
return {
|
|
264
264
|
...t,
|
|
@@ -274,9 +274,9 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
274
274
|
};
|
|
275
275
|
}));
|
|
276
276
|
function Re(t) {
|
|
277
|
-
if (!
|
|
277
|
+
if (!M.value.length)
|
|
278
278
|
return e.value.debug && console.warn("VueUiParallelCoordinatePlot - There are no series to show."), null;
|
|
279
|
-
const l =
|
|
279
|
+
const l = M.value.find((a) => a.name === t);
|
|
280
280
|
return l || (e.value.debug && console.warn(`VueUiParallelCoordinatePlot - Series name not found "${t}"`), null);
|
|
281
281
|
}
|
|
282
282
|
function wt(t) {
|
|
@@ -287,45 +287,45 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
287
287
|
const l = Re(t);
|
|
288
288
|
l !== null && ($.value.includes(l.id) || q(l.id));
|
|
289
289
|
}
|
|
290
|
-
const Be =
|
|
290
|
+
const Be = f(() => M.value.map((t) => ({
|
|
291
291
|
...t,
|
|
292
292
|
opacity: $.value.includes(t.id) ? 0.5 : 1,
|
|
293
293
|
segregate: () => q(t.id),
|
|
294
294
|
isSegregated: $.value.includes(t.id),
|
|
295
295
|
shape: "circle"
|
|
296
|
-
}))), At =
|
|
296
|
+
}))), At = f(() => ({
|
|
297
297
|
cy: "pcp-div-legend",
|
|
298
298
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
299
299
|
color: e.value.style.chart.legend.color,
|
|
300
300
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
301
301
|
paddingBottom: 12,
|
|
302
302
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
303
|
-
})), Ee =
|
|
304
|
-
...
|
|
305
|
-
)), C =
|
|
303
|
+
})), Ee = f(() => Math.max(
|
|
304
|
+
...M.value.filter((t) => !$.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((l) => l.values.length)))
|
|
305
|
+
)), C = f(() => m.value.width / Ee.value), re = f(() => M.value.filter((t) => !$.value.includes(t.id))), b = f(() => {
|
|
306
306
|
let t = [];
|
|
307
307
|
for (let l = 0; l < Ee.value; l += 1) {
|
|
308
|
-
const a = Math.min(...re.value.flatMap((x) => x.series.map((k) => k.values[l] || 0) || 0)), s = Math.max(...re.value.flatMap((x) => x.series.map((k) => k.values[l] || 0) || 0)), o = s === a ? a / 4 : a, r = s === a ? s * 2 : s, i = qt(o, r, e.value.style.chart.yAxis.scaleTicks),
|
|
308
|
+
const a = Math.min(...re.value.flatMap((x) => x.series.map((k) => k.values[l] || 0) || 0)), s = Math.max(...re.value.flatMap((x) => x.series.map((k) => k.values[l] || 0) || 0)), o = s === a ? a / 4 : a, r = s === a ? s * 2 : s, i = qt(o, r, e.value.style.chart.yAxis.scaleTicks), N = i.ticks.map((x, k) => {
|
|
309
309
|
const Pt = i.min < 0 ? x + Math.abs(i.min) : x - Math.abs(i.min), Lt = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
|
|
310
310
|
return {
|
|
311
|
-
y:
|
|
312
|
-
x:
|
|
311
|
+
y: m.value.bottom - m.value.height * (Pt / Lt),
|
|
312
|
+
x: m.value.left + C.value * l + C.value / 2,
|
|
313
313
|
value: x
|
|
314
314
|
};
|
|
315
315
|
});
|
|
316
316
|
t.push({
|
|
317
317
|
scale: i,
|
|
318
|
-
ticks:
|
|
318
|
+
ticks: N,
|
|
319
319
|
name: e.value.style.chart.yAxis.labels.axisNames[l] || `Y-${l + 1}`
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
return t;
|
|
323
|
-
}), ce =
|
|
323
|
+
}), ce = f(() => re.value.map((t, l) => ({
|
|
324
324
|
...t,
|
|
325
325
|
series: t.series.map((a, s) => ({
|
|
326
326
|
...a,
|
|
327
327
|
datapoints: a.values.map((o, r) => {
|
|
328
|
-
const i =
|
|
328
|
+
const i = b.value[r].scale.min < 0 ? (o || 0) + Math.abs(b.value[r].scale.min) : (o || 0) - Math.abs(b.value[r].scale.min), N = b.value[r].scale.min < 0 ? b.value[r].scale.max + Math.abs(b.value[r].scale.min) : b.value[r].scale.max - Math.abs(b.value[r].scale.min);
|
|
329
329
|
return {
|
|
330
330
|
name: a.name,
|
|
331
331
|
seriesName: t.name,
|
|
@@ -333,8 +333,8 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
333
333
|
datapointIndex: s,
|
|
334
334
|
seriesIndex: l,
|
|
335
335
|
value: o || 0,
|
|
336
|
-
x:
|
|
337
|
-
y:
|
|
336
|
+
x: m.value.left + C.value * r + C.value / 2,
|
|
337
|
+
y: m.value.bottom - m.value.height * (i / N),
|
|
338
338
|
comment: a.comments && a.comments[r] || ""
|
|
339
339
|
};
|
|
340
340
|
})
|
|
@@ -369,22 +369,22 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
369
369
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...l, shape: t }, seriesIndex: a }), w.value = null, de.value = null;
|
|
370
370
|
}
|
|
371
371
|
function J({ shape: t, serieName: l, serie: a, relativeIndex: s, seriesIndex: o, S: r }) {
|
|
372
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...a, shape: t }, seriesIndex: r }), ve.value = { serie: a, relativeIndex: s, seriesIndex: o, series:
|
|
372
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...a, shape: t }, seriesIndex: r }), ve.value = { serie: a, relativeIndex: s, seriesIndex: o, series: M.value, scales: b.value }, de.value = !0, w.value = a.id;
|
|
373
373
|
let i = "";
|
|
374
|
-
const
|
|
375
|
-
tt(
|
|
374
|
+
const N = e.value.style.chart.tooltip.customFormat;
|
|
375
|
+
tt(N) && la(() => N({
|
|
376
376
|
serie: a,
|
|
377
377
|
seriesIndex: a.seriesIndex,
|
|
378
|
-
series:
|
|
378
|
+
series: M.value,
|
|
379
379
|
config: e.value,
|
|
380
|
-
scales:
|
|
381
|
-
})) ? he.value =
|
|
380
|
+
scales: b.value
|
|
381
|
+
})) ? he.value = N({
|
|
382
382
|
serie: a,
|
|
383
383
|
seriesIndex: a.seriesIndex,
|
|
384
|
-
series:
|
|
384
|
+
series: M.value,
|
|
385
385
|
config: e.value,
|
|
386
|
-
scales:
|
|
387
|
-
}) : (i += `<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>`,
|
|
386
|
+
scales: b.value
|
|
387
|
+
}) : (i += `<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((x) => x.name).forEach((x, k) => {
|
|
388
388
|
i += `
|
|
389
389
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
390
390
|
<span>${x}: </span>
|
|
@@ -406,10 +406,10 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
406
406
|
}), he.value = `<div>${i}</div>`);
|
|
407
407
|
}
|
|
408
408
|
function $t() {
|
|
409
|
-
return
|
|
409
|
+
return M.value;
|
|
410
410
|
}
|
|
411
|
-
const
|
|
412
|
-
const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(
|
|
411
|
+
const W = f(() => {
|
|
412
|
+
const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(b.value.map((o) => o.name)), l = ce.value.flatMap((o, r) => o.series.map((i) => [o.name].concat([i.name]).concat(i.values))), a = {
|
|
413
413
|
th: {
|
|
414
414
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
415
415
|
color: e.value.table.th.color,
|
|
@@ -421,16 +421,16 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
421
421
|
outline: e.value.table.td.outline
|
|
422
422
|
},
|
|
423
423
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
424
|
-
}, s = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(
|
|
424
|
+
}, s = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(b.value.map((o) => o.name));
|
|
425
425
|
return {
|
|
426
426
|
body: l,
|
|
427
427
|
head: t,
|
|
428
428
|
config: a,
|
|
429
429
|
colNames: s
|
|
430
430
|
};
|
|
431
|
-
}), Ue =
|
|
432
|
-
head:
|
|
433
|
-
body:
|
|
431
|
+
}), Ue = f(() => ce.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
|
|
432
|
+
head: W.value.head,
|
|
433
|
+
body: W.value.body
|
|
434
434
|
});
|
|
435
435
|
function pe(t = null) {
|
|
436
436
|
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = Ue.value.head, s = Ue.value.body, o = l.concat([a]).concat(s), r = ta(o);
|
|
@@ -448,21 +448,21 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
450
|
function Ge() {
|
|
451
|
-
|
|
451
|
+
y.value.showTable = !y.value.showTable;
|
|
452
452
|
}
|
|
453
453
|
function je() {
|
|
454
|
-
|
|
454
|
+
y.value.dataLabels.show = !y.value.dataLabels.show;
|
|
455
455
|
}
|
|
456
456
|
function Xe() {
|
|
457
|
-
|
|
457
|
+
y.value.showTooltip = !y.value.showTooltip;
|
|
458
458
|
}
|
|
459
459
|
const Z = d(!1);
|
|
460
460
|
function me() {
|
|
461
461
|
Z.value = !Z.value;
|
|
462
462
|
}
|
|
463
463
|
async function Tt({ scale: t = 2 } = {}) {
|
|
464
|
-
if (!
|
|
465
|
-
const { width: l, height: a } =
|
|
464
|
+
if (!S.value) return;
|
|
465
|
+
const { width: l, height: a } = S.value.getBoundingClientRect(), s = l / a, { imageUri: o, base64: r } = await ya({ domElement: S.value, base64: !0, img: !0, scale: t });
|
|
466
466
|
return {
|
|
467
467
|
imageUri: o,
|
|
468
468
|
base64: r,
|
|
@@ -472,7 +472,7 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
472
472
|
aspectRatio: s
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
|
-
const zt = d({ start: 0, end: 1 }), Ft =
|
|
475
|
+
const zt = d({ start: 0, end: 1 }), Ft = f(() => b.value.map((t) => t.name));
|
|
476
476
|
da({
|
|
477
477
|
timeLabelsEls: oe,
|
|
478
478
|
timeLabels: Ft,
|
|
@@ -486,8 +486,8 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
486
486
|
targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
|
|
487
487
|
rotation: e.value.style.chart.yAxis.labels.axisNamesAutoRotate.angle
|
|
488
488
|
});
|
|
489
|
-
const j =
|
|
490
|
-
const t = e.value.table.useDialog && !e.value.table.show, l =
|
|
489
|
+
const j = f(() => {
|
|
490
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = y.value.showTable;
|
|
491
491
|
return {
|
|
492
492
|
component: t ? ft : vt,
|
|
493
493
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -496,8 +496,8 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
496
496
|
color: e.value.table.th.color,
|
|
497
497
|
headerColor: e.value.table.th.color,
|
|
498
498
|
headerBg: e.value.table.th.backgroundColor,
|
|
499
|
-
isFullscreen:
|
|
500
|
-
fullscreenParent:
|
|
499
|
+
isFullscreen: B.value,
|
|
500
|
+
fullscreenParent: S.value,
|
|
501
501
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
502
502
|
} : {
|
|
503
503
|
hideDetails: !0,
|
|
@@ -516,25 +516,25 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
});
|
|
519
|
-
ee(() =>
|
|
519
|
+
ee(() => y.value.showTable, (t) => {
|
|
520
520
|
e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
|
|
521
521
|
});
|
|
522
522
|
function Ye() {
|
|
523
|
-
|
|
523
|
+
y.value.showTable = !1, le.value && le.value.setTableIconState(!1);
|
|
524
524
|
}
|
|
525
|
-
const Mt =
|
|
525
|
+
const Mt = f(() => e.value.style.chart.backgroundColor), Nt = f(() => e.value.style.chart.legend), St = f(() => e.value.style.chart.title), { exportSvg: It, getSvg: _t } = ra({
|
|
526
526
|
svg: ie,
|
|
527
|
-
title:
|
|
528
|
-
legend:
|
|
527
|
+
title: St,
|
|
528
|
+
legend: Nt,
|
|
529
529
|
legendItems: Be,
|
|
530
530
|
backgroundColor: Mt
|
|
531
531
|
});
|
|
532
532
|
async function qe({ isCb: t }) {
|
|
533
533
|
if (t) {
|
|
534
|
-
const { blob: l, url: a, text: s, dataUrl: o } = await
|
|
534
|
+
const { blob: l, url: a, text: s, dataUrl: o } = await _t();
|
|
535
535
|
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: s, dataUrl: o });
|
|
536
536
|
} else
|
|
537
|
-
|
|
537
|
+
It();
|
|
538
538
|
}
|
|
539
539
|
return it({
|
|
540
540
|
getData: $t,
|
|
@@ -552,35 +552,55 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
552
552
|
toggleFullscreen: ze
|
|
553
553
|
}), (t, l) => (n(), u("div", {
|
|
554
554
|
ref_key: "pcpChart",
|
|
555
|
-
ref:
|
|
556
|
-
class: X(`vue-data-ui-component vue-ui-pcp ${
|
|
557
|
-
style:
|
|
558
|
-
id: `pcp_${
|
|
555
|
+
ref: S,
|
|
556
|
+
class: X(`vue-data-ui-component vue-ui-pcp ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
557
|
+
style: I(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
558
|
+
id: `pcp_${R.value}`,
|
|
559
559
|
onMouseenter: l[2] || (l[2] = () => v(Fe)(!0)),
|
|
560
560
|
onMouseleave: l[3] || (l[3] = () => v(Fe)(!1))
|
|
561
561
|
}, [
|
|
562
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
562
|
+
e.value.userOptions.buttons.annotator ? (n(), _(v(ht), {
|
|
563
563
|
key: 0,
|
|
564
564
|
svgRef: v(ie),
|
|
565
565
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
566
566
|
color: e.value.style.chart.color,
|
|
567
567
|
active: Z.value,
|
|
568
568
|
onClose: me
|
|
569
|
-
},
|
|
569
|
+
}, {
|
|
570
|
+
"annotator-action-close": h(() => [
|
|
571
|
+
p(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
572
|
+
]),
|
|
573
|
+
"annotator-action-color": h(({ color: a }) => [
|
|
574
|
+
p(t.$slots, "annotator-action-color", T(z({ color: a })), void 0, !0)
|
|
575
|
+
]),
|
|
576
|
+
"annotator-action-draw": h(({ mode: a }) => [
|
|
577
|
+
p(t.$slots, "annotator-action-draw", T(z({ mode: a })), void 0, !0)
|
|
578
|
+
]),
|
|
579
|
+
"annotator-action-undo": h(({ disabled: a }) => [
|
|
580
|
+
p(t.$slots, "annotator-action-undo", T(z({ disabled: a })), void 0, !0)
|
|
581
|
+
]),
|
|
582
|
+
"annotator-action-redo": h(({ disabled: a }) => [
|
|
583
|
+
p(t.$slots, "annotator-action-redo", T(z({ disabled: a })), void 0, !0)
|
|
584
|
+
]),
|
|
585
|
+
"annotator-action-delete": h(({ disabled: a }) => [
|
|
586
|
+
p(t.$slots, "annotator-action-delete", T(z({ disabled: a })), void 0, !0)
|
|
587
|
+
]),
|
|
588
|
+
_: 3
|
|
589
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
570
590
|
bt.value ? (n(), u("div", {
|
|
571
591
|
key: 1,
|
|
572
592
|
ref_key: "noTitle",
|
|
573
593
|
ref: we,
|
|
574
594
|
class: "vue-data-ui-no-title-space",
|
|
575
595
|
style: "height:36px; width: 100%;background:transparent"
|
|
576
|
-
}, null, 512)) :
|
|
596
|
+
}, null, 512)) : g("", !0),
|
|
577
597
|
e.value.style.chart.title.text ? (n(), u("div", {
|
|
578
598
|
key: 2,
|
|
579
599
|
ref_key: "chartTitle",
|
|
580
600
|
ref: be,
|
|
581
601
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
582
602
|
}, [
|
|
583
|
-
(n(),
|
|
603
|
+
(n(), _(pa, {
|
|
584
604
|
key: `title_${Ce.value}`,
|
|
585
605
|
config: {
|
|
586
606
|
title: {
|
|
@@ -593,19 +613,19 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
593
613
|
}
|
|
594
614
|
}
|
|
595
615
|
}, null, 8, ["config"]))
|
|
596
|
-
], 512)) :
|
|
597
|
-
|
|
598
|
-
id: `legend-top-${
|
|
616
|
+
], 512)) : g("", !0),
|
|
617
|
+
P("div", {
|
|
618
|
+
id: `legend-top-${R.value}`
|
|
599
619
|
}, null, 8, xa),
|
|
600
|
-
e.value.userOptions.show && Y.value && (v(Me) || v(ne)) ? (n(),
|
|
620
|
+
e.value.userOptions.show && Y.value && (v(Me) || v(ne)) ? (n(), _(v(pt), {
|
|
601
621
|
ref_key: "userOptionsRef",
|
|
602
622
|
ref: le,
|
|
603
623
|
key: `user_options_${ge.value}`,
|
|
604
624
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
605
625
|
color: e.value.style.chart.color,
|
|
606
|
-
isPrinting: v(
|
|
607
|
-
isImaging: v(
|
|
608
|
-
uid:
|
|
626
|
+
isPrinting: v(Ie),
|
|
627
|
+
isImaging: v(_e),
|
|
628
|
+
uid: R.value,
|
|
609
629
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
610
630
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
611
631
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -614,10 +634,10 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
614
634
|
hasTable: e.value.userOptions.buttons.table,
|
|
615
635
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
616
636
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
617
|
-
isFullscreen:
|
|
618
|
-
isTooltip:
|
|
637
|
+
isFullscreen: B.value,
|
|
638
|
+
isTooltip: y.value.showTooltip,
|
|
619
639
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
620
|
-
chartElement:
|
|
640
|
+
chartElement: S.value,
|
|
621
641
|
position: e.value.userOptions.position,
|
|
622
642
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
623
643
|
isAnnotation: Z.value,
|
|
@@ -633,133 +653,133 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
633
653
|
onToggleLabels: je,
|
|
634
654
|
onToggleTooltip: Xe,
|
|
635
655
|
onToggleAnnotator: me,
|
|
636
|
-
style:
|
|
656
|
+
style: I({
|
|
637
657
|
visibility: v(Me) ? v(ne) ? "visible" : "hidden" : "visible"
|
|
638
658
|
})
|
|
639
659
|
}, Je({ _: 2 }, [
|
|
640
660
|
t.$slots.menuIcon ? {
|
|
641
661
|
name: "menuIcon",
|
|
642
|
-
fn:
|
|
643
|
-
|
|
662
|
+
fn: h(({ isOpen: a, color: s }) => [
|
|
663
|
+
p(t.$slots, "menuIcon", T(z({ isOpen: a, color: s })), void 0, !0)
|
|
644
664
|
]),
|
|
645
665
|
key: "0"
|
|
646
666
|
} : void 0,
|
|
647
667
|
t.$slots.optionPdf ? {
|
|
648
668
|
name: "optionPdf",
|
|
649
|
-
fn:
|
|
650
|
-
|
|
669
|
+
fn: h(() => [
|
|
670
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
651
671
|
]),
|
|
652
672
|
key: "1"
|
|
653
673
|
} : void 0,
|
|
654
674
|
t.$slots.optionCsv ? {
|
|
655
675
|
name: "optionCsv",
|
|
656
|
-
fn:
|
|
657
|
-
|
|
676
|
+
fn: h(() => [
|
|
677
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
658
678
|
]),
|
|
659
679
|
key: "2"
|
|
660
680
|
} : void 0,
|
|
661
681
|
t.$slots.optionImg ? {
|
|
662
682
|
name: "optionImg",
|
|
663
|
-
fn:
|
|
664
|
-
|
|
683
|
+
fn: h(() => [
|
|
684
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
665
685
|
]),
|
|
666
686
|
key: "3"
|
|
667
687
|
} : void 0,
|
|
668
688
|
t.$slots.optionSvg ? {
|
|
669
689
|
name: "optionSvg",
|
|
670
|
-
fn:
|
|
671
|
-
|
|
690
|
+
fn: h(() => [
|
|
691
|
+
p(t.$slots, "optionSvg", {}, void 0, !0)
|
|
672
692
|
]),
|
|
673
693
|
key: "4"
|
|
674
694
|
} : void 0,
|
|
675
695
|
t.$slots.optionTable ? {
|
|
676
696
|
name: "optionTable",
|
|
677
|
-
fn:
|
|
678
|
-
|
|
697
|
+
fn: h(() => [
|
|
698
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
679
699
|
]),
|
|
680
700
|
key: "5"
|
|
681
701
|
} : void 0,
|
|
682
702
|
t.$slots.optionLabels ? {
|
|
683
703
|
name: "optionLabels",
|
|
684
|
-
fn:
|
|
685
|
-
|
|
704
|
+
fn: h(() => [
|
|
705
|
+
p(t.$slots, "optionLabels", {}, void 0, !0)
|
|
686
706
|
]),
|
|
687
707
|
key: "6"
|
|
688
708
|
} : void 0,
|
|
689
709
|
t.$slots.optionFullscreen ? {
|
|
690
710
|
name: "optionFullscreen",
|
|
691
|
-
fn:
|
|
692
|
-
|
|
711
|
+
fn: h(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
712
|
+
p(t.$slots, "optionFullscreen", T(z({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
693
713
|
]),
|
|
694
714
|
key: "7"
|
|
695
715
|
} : void 0,
|
|
696
716
|
t.$slots.optionAnnotator ? {
|
|
697
717
|
name: "optionAnnotator",
|
|
698
|
-
fn:
|
|
699
|
-
|
|
718
|
+
fn: h(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
719
|
+
p(t.$slots, "optionAnnotator", T(z({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
700
720
|
]),
|
|
701
721
|
key: "8"
|
|
702
722
|
} : void 0
|
|
703
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
723
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
704
724
|
(n(), u("svg", {
|
|
705
725
|
ref_key: "svgRef",
|
|
706
726
|
ref: ie,
|
|
707
727
|
xmlns: v(Zt),
|
|
708
|
-
class: X({ "vue-data-ui-fullscreen--on":
|
|
709
|
-
viewBox: `0 0 ${
|
|
710
|
-
style:
|
|
728
|
+
class: X({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
|
|
729
|
+
viewBox: `0 0 ${m.value.chartWidth <= 0 ? 10 : m.value.chartWidth} ${m.value.chartHeight <= 0 ? 10 : m.value.chartHeight}`,
|
|
730
|
+
style: I(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
711
731
|
}, [
|
|
712
732
|
fe(v(mt)),
|
|
713
733
|
t.$slots["chart-background"] ? (n(), u("foreignObject", {
|
|
714
734
|
key: 0,
|
|
715
|
-
x:
|
|
716
|
-
y:
|
|
717
|
-
width:
|
|
718
|
-
height:
|
|
735
|
+
x: m.value.left,
|
|
736
|
+
y: m.value.top,
|
|
737
|
+
width: m.value.width,
|
|
738
|
+
height: m.value.height,
|
|
719
739
|
style: {
|
|
720
740
|
pointerEvents: "none"
|
|
721
741
|
}
|
|
722
742
|
}, [
|
|
723
|
-
|
|
724
|
-
], 8, wa)) :
|
|
725
|
-
(n(!0), u(A, null,
|
|
726
|
-
|
|
727
|
-
x1:
|
|
728
|
-
x2:
|
|
729
|
-
y1:
|
|
730
|
-
y2:
|
|
743
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
744
|
+
], 8, wa)) : g("", !0),
|
|
745
|
+
(n(!0), u(A, null, L(b.value, (a, s) => (n(), u("g", Ca, [
|
|
746
|
+
P("line", {
|
|
747
|
+
x1: m.value.left + C.value * s + C.value / 2,
|
|
748
|
+
x2: m.value.left + C.value * s + C.value / 2,
|
|
749
|
+
y1: m.value.top,
|
|
750
|
+
y2: m.value.bottom,
|
|
731
751
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
732
752
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
733
753
|
}, null, 8, Aa),
|
|
734
754
|
e.value.style.chart.yAxis.labels.ticks.show ? (n(), u(A, { key: 0 }, [
|
|
735
|
-
(n(!0), u(A, null,
|
|
755
|
+
(n(!0), u(A, null, L(a.ticks, (o) => (n(), u("line", {
|
|
736
756
|
x1: o.x,
|
|
737
757
|
x2: o.x - 10,
|
|
738
758
|
y1: o.y,
|
|
739
759
|
y2: o.y,
|
|
740
760
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
741
761
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
742
|
-
style:
|
|
762
|
+
style: I(`opacity:${w.value && !y.value.showTooltip ? 0.2 : 1}`)
|
|
743
763
|
}, null, 12, $a))), 256)),
|
|
744
|
-
v(
|
|
745
|
-
(n(!0), u(A, null,
|
|
764
|
+
v(E) ? g("", !0) : (n(), u("g", Ta, [
|
|
765
|
+
(n(!0), u(A, null, L(a.ticks, (o) => (n(), u("text", {
|
|
746
766
|
x: o.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
747
767
|
y: o.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
748
768
|
fill: e.value.style.chart.yAxis.labels.ticks.color,
|
|
749
769
|
"text-anchor": "end",
|
|
750
770
|
"font-size": c.value.ticksFontSize,
|
|
751
771
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
752
|
-
style:
|
|
753
|
-
},
|
|
772
|
+
style: I(`opacity:${w.value && !y.value.showTooltip ? 0.2 : 1}`)
|
|
773
|
+
}, H(He({ value: o.value, index: s, datapoint: o })), 13, za))), 256))
|
|
754
774
|
]))
|
|
755
|
-
], 64)) :
|
|
775
|
+
], 64)) : g("", !0)
|
|
756
776
|
]))), 256)),
|
|
757
777
|
e.value.style.chart.yAxis.labels.showAxisNames ? (n(), u("g", {
|
|
758
778
|
key: 1,
|
|
759
779
|
ref_key: "xAxisLabels",
|
|
760
780
|
ref: oe
|
|
761
781
|
}, [
|
|
762
|
-
(n(!0), u(A, null,
|
|
782
|
+
(n(!0), u(A, null, L(b.value, (a, s) => (n(), u(A, null, [
|
|
763
783
|
String(a.name).includes(`
|
|
764
784
|
`) ? (n(), u("text", {
|
|
765
785
|
key: 1,
|
|
@@ -768,7 +788,7 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
768
788
|
"font-size": c.value.axisNameFontSize,
|
|
769
789
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
770
790
|
"text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
771
|
-
transform: `translate(${
|
|
791
|
+
transform: `translate(${m.value.left + C.value * s + C.value / 2}, ${G.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`,
|
|
772
792
|
innerHTML: v(ea)({
|
|
773
793
|
content: String(a.name),
|
|
774
794
|
fontSize: c.value.axisNameFontSize,
|
|
@@ -783,14 +803,14 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
783
803
|
"font-size": c.value.axisNameFontSize,
|
|
784
804
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
785
805
|
"text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
786
|
-
transform: `translate(${
|
|
787
|
-
},
|
|
806
|
+
transform: `translate(${m.value.left + C.value * s + C.value / 2}, ${G.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`
|
|
807
|
+
}, H(a.name), 9, Fa))
|
|
788
808
|
], 64))), 256))
|
|
789
|
-
], 512)) :
|
|
790
|
-
(n(!0), u(A, null,
|
|
791
|
-
(n(!0), u(A, null,
|
|
792
|
-
e.value.style.chart.plots.show ? (n(), u("g",
|
|
793
|
-
(n(!0), u(A, null,
|
|
809
|
+
], 512)) : g("", !0),
|
|
810
|
+
(n(!0), u(A, null, L(ce.value, (a, s) => (n(), u("g", null, [
|
|
811
|
+
(n(!0), u(A, null, L(a.series, (o, r) => (n(), u("g", null, [
|
|
812
|
+
e.value.style.chart.plots.show ? (n(), u("g", Na, [
|
|
813
|
+
(n(!0), u(A, null, L(o.datapoints, (i, N) => (n(), _(fa, {
|
|
794
814
|
plot: { x: i.x, y: i.y },
|
|
795
815
|
color: a.color,
|
|
796
816
|
shape: a.shape,
|
|
@@ -806,10 +826,10 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
806
826
|
S: s
|
|
807
827
|
}),
|
|
808
828
|
onMouseleave: (x) => Q({ serie: o, shape: a.shape, S: s }),
|
|
809
|
-
style:
|
|
829
|
+
style: I(`opacity:${w.value ? w.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
810
830
|
onClick: () => K({ serie: o, shape: a.shape, S: s })
|
|
811
831
|
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "onMouseleave", "style", "onClick"]))), 256)),
|
|
812
|
-
|
|
832
|
+
y.value.showTooltip ? g("", !0) : (n(), u(A, { key: 0 }, [
|
|
813
833
|
w.value && w.value === o.id && o.datapoints.length ? (n(), u("text", {
|
|
814
834
|
key: 0,
|
|
815
835
|
x: o.datapoints[0].x - c.value.ticksFontSize,
|
|
@@ -818,9 +838,9 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
818
838
|
"font-size": c.value.ticksFontSize,
|
|
819
839
|
fill: a.color,
|
|
820
840
|
"font-weight": "bold"
|
|
821
|
-
},
|
|
841
|
+
}, H(o.name), 9, Sa)) : g("", !0)
|
|
822
842
|
], 64)),
|
|
823
|
-
e.value.style.chart.comments.show ? (n(!0), u(A, { key: 1 },
|
|
843
|
+
e.value.style.chart.comments.show ? (n(!0), u(A, { key: 1 }, L(o.datapoints, (i) => (n(), u("g", null, [
|
|
824
844
|
i.comment ? (n(), u("foreignObject", {
|
|
825
845
|
key: 0,
|
|
826
846
|
style: { overflow: "visible" },
|
|
@@ -829,21 +849,21 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
829
849
|
x: i.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
830
850
|
y: i.y + e.value.style.chart.comments.offsetY + 6
|
|
831
851
|
}, [
|
|
832
|
-
|
|
833
|
-
|
|
852
|
+
P("div", _a, [
|
|
853
|
+
p(t.$slots, "plot-comment", {
|
|
834
854
|
plot: { ...i, color: a.color }
|
|
835
855
|
}, void 0, !0)
|
|
836
856
|
])
|
|
837
|
-
], 8,
|
|
838
|
-
]))), 256)) :
|
|
839
|
-
])) :
|
|
840
|
-
!v(
|
|
857
|
+
], 8, Ia)) : g("", !0)
|
|
858
|
+
]))), 256)) : g("", !0)
|
|
859
|
+
])) : g("", !0),
|
|
860
|
+
!v(E) && (y.value.dataLabels.show || w.value && w.value === o.id) ? (n(!0), u(A, { key: 1 }, L(o.datapoints, (i, N) => (n(), u("text", {
|
|
841
861
|
x: i.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
842
862
|
y: i.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
843
863
|
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
844
864
|
"text-anchor": "start",
|
|
845
865
|
"font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
846
|
-
class: X({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !v(
|
|
866
|
+
class: X({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !v(E) }),
|
|
847
867
|
"font-size": c.value.datapointFontSize,
|
|
848
868
|
onMouseenter: (x) => J({
|
|
849
869
|
shape: a.shape,
|
|
@@ -855,14 +875,14 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
855
875
|
}),
|
|
856
876
|
onMouseleave: (x) => Q({ serie: o, shape: a.shape, S: s }),
|
|
857
877
|
onClick: () => K({ serie: o, shape: a.shape, S: s }),
|
|
858
|
-
style:
|
|
859
|
-
},
|
|
860
|
-
|
|
878
|
+
style: I(`opacity:${w.value ? w.value === o.id ? 1 : 0.2 : 1}`)
|
|
879
|
+
}, H(He({ value: i.value, index: N, datapoint: i })), 47, Pa))), 256)) : g("", !0),
|
|
880
|
+
P("path", {
|
|
861
881
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
862
882
|
stroke: a.color,
|
|
863
883
|
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
864
884
|
fill: "none",
|
|
865
|
-
class: X({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(
|
|
885
|
+
class: X({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(E) }),
|
|
866
886
|
onMouseenter: (i) => J({
|
|
867
887
|
shape: a.shape,
|
|
868
888
|
serieName: a.name,
|
|
@@ -873,15 +893,15 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
873
893
|
}),
|
|
874
894
|
onMouseleave: (i) => Q({ serie: o, shape: a.shape, S: s }),
|
|
875
895
|
onClick: () => K({ serie: o, shape: a.shape, S: s }),
|
|
876
|
-
style:
|
|
896
|
+
style: I(`opacity:${w.value ? w.value === o.id ? e.value.style.chart.lines.opacity : 0.2 : e.value.style.chart.lines.opacity}; stroke-dasharray:${o.pathLength}; stroke-dashoffset: ${e.value.useCssAnimation ? o.pathLength : 0}`)
|
|
877
897
|
}, null, 46, La),
|
|
878
|
-
|
|
898
|
+
y.value.showTooltip ? (n(), u("path", {
|
|
879
899
|
key: 2,
|
|
880
900
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
881
901
|
stroke: "transparent",
|
|
882
902
|
"stroke-width": 12,
|
|
883
903
|
fill: "none",
|
|
884
|
-
class: X({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(
|
|
904
|
+
class: X({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(E) }),
|
|
885
905
|
onMouseenter: (i) => J({
|
|
886
906
|
shape: a.shape,
|
|
887
907
|
serieName: a.name,
|
|
@@ -893,26 +913,26 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
893
913
|
onMouseleave: (i) => Q({ serie: o, shape: a.shape, S: s }),
|
|
894
914
|
onClick: () => K({ serie: o, shape: a.shape, S: s }),
|
|
895
915
|
style: { opacity: "0" }
|
|
896
|
-
}, null, 42, Oa)) :
|
|
916
|
+
}, null, 42, Oa)) : g("", !0)
|
|
897
917
|
]))), 256))
|
|
898
918
|
]))), 256)),
|
|
899
|
-
|
|
919
|
+
p(t.$slots, "svg", { svg: m.value }, void 0, !0)
|
|
900
920
|
], 14, ka)),
|
|
901
921
|
t.$slots.watermark ? (n(), u("div", Da, [
|
|
902
|
-
|
|
903
|
-
])) :
|
|
904
|
-
|
|
905
|
-
id: `legend-bottom-${
|
|
922
|
+
p(t.$slots, "watermark", T(z({ isPrinting: v(Ie) || v(_e) })), void 0, !0)
|
|
923
|
+
])) : g("", !0),
|
|
924
|
+
P("div", {
|
|
925
|
+
id: `legend-bottom-${R.value}`
|
|
906
926
|
}, null, 8, Ra),
|
|
907
|
-
Te.value ? (n(),
|
|
927
|
+
Te.value ? (n(), _(Et, {
|
|
908
928
|
key: 5,
|
|
909
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
929
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${R.value}` : `#legend-bottom-${R.value}`
|
|
910
930
|
}, [
|
|
911
|
-
|
|
931
|
+
P("div", {
|
|
912
932
|
ref_key: "chartLegend",
|
|
913
933
|
ref: xe
|
|
914
934
|
}, [
|
|
915
|
-
e.value.style.chart.legend.show && Y.value ? (n(),
|
|
935
|
+
e.value.style.chart.legend.show && Y.value ? (n(), _(ma, {
|
|
916
936
|
key: `legend_${Ae.value}`,
|
|
917
937
|
legendSet: Be.value,
|
|
918
938
|
config: At.value,
|
|
@@ -920,31 +940,31 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
920
940
|
q(a.id), Ve(a);
|
|
921
941
|
})
|
|
922
942
|
}, {
|
|
923
|
-
item:
|
|
924
|
-
|
|
943
|
+
item: h(({ legend: a, index: s }) => [
|
|
944
|
+
P("div", {
|
|
925
945
|
onClick: (o) => {
|
|
926
946
|
a.segregate(), Ve(a);
|
|
927
947
|
},
|
|
928
|
-
style:
|
|
929
|
-
},
|
|
948
|
+
style: I(`opacity:${$.value.includes(a.id) ? 0.5 : 1}`)
|
|
949
|
+
}, H(a.name), 13, Ba)
|
|
930
950
|
]),
|
|
931
951
|
_: 1
|
|
932
|
-
}, 8, ["legendSet", "config"])) :
|
|
952
|
+
}, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
933
953
|
key: 1,
|
|
934
|
-
legend:
|
|
954
|
+
legend: M.value
|
|
935
955
|
}, void 0, !0)
|
|
936
956
|
], 512)
|
|
937
|
-
], 8, ["to"])) :
|
|
957
|
+
], 8, ["to"])) : g("", !0),
|
|
938
958
|
t.$slots.source ? (n(), u("div", {
|
|
939
959
|
key: 6,
|
|
940
960
|
ref_key: "source",
|
|
941
961
|
ref: ke,
|
|
942
962
|
dir: "auto"
|
|
943
963
|
}, [
|
|
944
|
-
|
|
945
|
-
], 512)) :
|
|
964
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
965
|
+
], 512)) : g("", !0),
|
|
946
966
|
fe(v(rt), {
|
|
947
|
-
show:
|
|
967
|
+
show: y.value.showTooltip && de.value,
|
|
948
968
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
949
969
|
color: e.value.style.chart.tooltip.color,
|
|
950
970
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -954,44 +974,44 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
954
974
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
955
975
|
position: e.value.style.chart.tooltip.position,
|
|
956
976
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
957
|
-
parent:
|
|
977
|
+
parent: S.value,
|
|
958
978
|
content: he.value,
|
|
959
|
-
isFullscreen:
|
|
979
|
+
isFullscreen: B.value,
|
|
960
980
|
isCustom: v(tt)(e.value.style.chart.tooltip.customFormat),
|
|
961
981
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
962
982
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
963
983
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
964
984
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
965
985
|
}, {
|
|
966
|
-
"tooltip-before":
|
|
967
|
-
|
|
986
|
+
"tooltip-before": h(() => [
|
|
987
|
+
p(t.$slots, "tooltip-before", T(z({ ...ve.value })), void 0, !0)
|
|
968
988
|
]),
|
|
969
|
-
"tooltip-after":
|
|
970
|
-
|
|
989
|
+
"tooltip-after": h(() => [
|
|
990
|
+
p(t.$slots, "tooltip-after", T(z({ ...ve.value })), void 0, !0)
|
|
971
991
|
]),
|
|
972
992
|
_: 3
|
|
973
993
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
974
|
-
Y.value && e.value.userOptions.buttons.table ? (n(),
|
|
994
|
+
Y.value && e.value.userOptions.buttons.table ? (n(), _(Ht(j.value.component), Ut({ key: 7 }, j.value.props, {
|
|
975
995
|
ref_key: "tableUnit",
|
|
976
996
|
ref: V,
|
|
977
997
|
onClose: Ye
|
|
978
998
|
}), Je({
|
|
979
|
-
content:
|
|
980
|
-
(n(),
|
|
999
|
+
content: h(() => [
|
|
1000
|
+
(n(), _(v(dt), {
|
|
981
1001
|
key: `table_${$e.value}`,
|
|
982
|
-
colNames:
|
|
983
|
-
head:
|
|
984
|
-
body:
|
|
985
|
-
config:
|
|
1002
|
+
colNames: W.value.colNames,
|
|
1003
|
+
head: W.value.head,
|
|
1004
|
+
body: W.value.body,
|
|
1005
|
+
config: W.value.config,
|
|
986
1006
|
title: e.value.table.useDialog ? "" : j.value.title,
|
|
987
1007
|
withCloseButton: !e.value.table.useDialog,
|
|
988
1008
|
onClose: Ye
|
|
989
1009
|
}, {
|
|
990
|
-
th:
|
|
991
|
-
|
|
1010
|
+
th: h(({ th: a }) => [
|
|
1011
|
+
P("div", { innerHTML: a }, null, 8, Ea)
|
|
992
1012
|
]),
|
|
993
|
-
td:
|
|
994
|
-
Ke(
|
|
1013
|
+
td: h(({ td: a }) => [
|
|
1014
|
+
Ke(H(a), 1)
|
|
995
1015
|
]),
|
|
996
1016
|
_: 1
|
|
997
1017
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1000,15 +1020,15 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
1000
1020
|
}, [
|
|
1001
1021
|
e.value.table.useDialog ? {
|
|
1002
1022
|
name: "title",
|
|
1003
|
-
fn:
|
|
1004
|
-
Ke(
|
|
1023
|
+
fn: h(() => [
|
|
1024
|
+
Ke(H(j.value.title), 1)
|
|
1005
1025
|
]),
|
|
1006
1026
|
key: "0"
|
|
1007
1027
|
} : void 0,
|
|
1008
1028
|
e.value.table.useDialog ? {
|
|
1009
1029
|
name: "actions",
|
|
1010
|
-
fn:
|
|
1011
|
-
|
|
1030
|
+
fn: h(() => [
|
|
1031
|
+
P("button", {
|
|
1012
1032
|
tabindex: "0",
|
|
1013
1033
|
class: "vue-ui-user-options-button",
|
|
1014
1034
|
onClick: l[1] || (l[1] = (a) => pe(e.value.userOptions.callbacks.csv))
|
|
@@ -1021,11 +1041,11 @@ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "widt
|
|
|
1021
1041
|
]),
|
|
1022
1042
|
key: "1"
|
|
1023
1043
|
} : void 0
|
|
1024
|
-
]), 1040)) :
|
|
1025
|
-
v(
|
|
1044
|
+
]), 1040)) : g("", !0),
|
|
1045
|
+
v(E) ? (n(), _(ua, { key: 8 })) : g("", !0)
|
|
1026
1046
|
], 46, ba));
|
|
1027
1047
|
}
|
|
1028
|
-
}, ol = /* @__PURE__ */ ga(Ha, [["__scopeId", "data-v-
|
|
1048
|
+
}, ol = /* @__PURE__ */ ga(Ha, [["__scopeId", "data-v-9716d648"]]);
|
|
1029
1049
|
export {
|
|
1030
1050
|
ol as default
|
|
1031
1051
|
};
|