vue-data-ui 3.4.9 → 3.5.0
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 +88 -37
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-Cyx_s25h.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.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-dashboard.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-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-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-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-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/{vue-data-ui-DjxWWa78.js → vue-data-ui-DxgRqCAo.js} +104 -98
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-DewevWV_.js} +1 -1
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
- package/dist/{vue-ui-chord-CDgzolI-.js → vue-ui-chord-BG4dxKNA.js} +1 -1
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
- package/dist/{vue-ui-dashboard-CeJwbiON.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
- package/dist/{vue-ui-donut-DjQXHBJE.js → vue-ui-donut-BRGFcgxS.js} +542 -526
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-CTYFoib3.js} +1 -1
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-BALqwB8c.js} +1 -1
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
- package/dist/{vue-ui-onion-DTY2p87s.js → vue-ui-onion-DAOCf3f8.js} +331 -309
- package/dist/{vue-ui-parallel-coordinate-plot-C8aWTcNn.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-C5V4hhbW.js} +393 -374
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
- package/dist/{vue-ui-rings-CnTMFK6R.js → vue-ui-rings-BpUcyqo7.js} +285 -263
- package/dist/{vue-ui-scatter-fzR2c0St.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
- package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
- package/dist/{vue-ui-stackbar-DubS6Pg8.js → vue-ui-stackbar-CkBOjryQ.js} +437 -421
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-7r02N9R9.js} +2 -2
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
- package/dist/{vue-ui-thermometer-DTnfnf9z.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
- package/dist/{vue-ui-tiremarks-CrC_tlIx.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
- package/dist/{vue-ui-treemap-kyuyi2ES.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
- package/dist/{vue-ui-wheel-BasM7FWt.js → vue-ui-wheel-BpirIgAG.js} +1 -1
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-CdP4g_3_.js} +1 -1
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
- package/package.json +1 -1
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { t as
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as I, ref as v, shallowRef as Ue, computed as h, onMounted as Rt, onBeforeUnmount as Bt, toRefs as Yt, watch as K, watchEffect as Ht, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as $, normalizeClass as F, renderSlot as p, createBlock as N, createCommentVNode as d, createElementVNode as S, createVNode as xe, createSlots as We, withCtx as g, normalizeProps as R, guardReactiveProps as B, Fragment as b, renderList as k, toDisplayString as M, Teleport as Et, resolveDynamicComponent as Ut, mergeProps as Wt, createTextVNode as je, nextTick as jt } from "vue";
|
|
2
|
+
import { c as Ge, o as Ve, f as qe, g as Gt, t as Vt, e as qt, h as Jt, p as ee, m as Je, a as Y, d as H, X as Qt, S as Zt, U as Kt, M as el, J as tl, R as D, b as ll, O as te, P as al, Q as sl, G as ol } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as Qe, u as nl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as rl, a as Ze } from "./useNestedProp-BjZe1Y85.js";
|
|
5
|
+
import { u as ul, B as il } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as cl } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
+
import { u as vl } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as hl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as dl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as yl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import fl from "./img-BecE5qXd.js";
|
|
12
|
+
import xl from "./Title-l36lOBMx.js";
|
|
13
|
+
import { t as pl } from "./themes-AUNCOb2G.js";
|
|
14
|
+
import gl from "./Legend-G6GMcdAc.js";
|
|
15
|
+
import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"], Al = { key: 1 }, Sl = ["id"], _l = ["stop-color"], $l = ["stop-color"], Tl = ["stop-color"], Ll = { key: 2 }, Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = { key: 3 }, Ol = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Il = ["x", "y", "fill", "font-size"], Nl = ["transform", "font-size", "fill", "font-weight"], Pl = { key: 6 }, Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dl = { key: 7 }, Xl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Rl = ["transform", "fill", "font-size", "text-anchor"], Bl = ["x", "y", "font-size", "fill", "font-weight"], Yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], El = ["d", "stroke", "stroke-width"], Ul = ["d", "stroke", "stroke-width"], Wl = ["cx", "cy", "fill", "r"], jl = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Gl = { key: 1 }, Vl = ["x", "y", "font-size", "fill", "font-weight"], ql = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Jl = { key: 2 }, Ql = ["x", "y", "font-size", "font-weight", "fill"], Zl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Kl = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, ea = ["id"], ta = ["onClick"], la = ["innerHTML"], aa = {
|
|
20
20
|
__name: "vue-ui-history-plot",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,112 +33,112 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend", "selectDatapoint"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
36
|
+
setup(Ke, { expose: et, emit: tt }) {
|
|
37
|
+
const lt = I(() => import("./Tooltip-oWCO1HKy.js")), at = I(() => import("./BaseIcon-BmMbm4d0.js")), st = I(() => import("./vue-ui-accordion-CZ0thhxa.js")), ot = I(() => import("./DataTable-BT7VF2ua.js")), nt = I(() => import("./PenAndPaper-DSvu9dwa.js")), rt = I(() => import("./UserOptions-CGnQt6Fd.js")), ut = I(() => import("./PackageVersion-Cyx_s25h.js")), it = I(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_history_plot: ct } = rl(), y = Ke, T = v(null), pe = v(null), ge = v(0), me = v(null), be = v(0), ke = v(0), we = v(0), z = Ue(null), X = Ue(null), Ce = v(null), L = v(Ge()), le = v(!1), ae = v(""), m = v([]), E = v(!1), A = v(null), U = v(!1), Ae = v(null), Se = v(!1), W = v(null), se = v(null), oe = v(null), ne = v(null), G = v(null), re = v(null), V = h({
|
|
38
38
|
get: () => !!y.dataset && y.dataset.length,
|
|
39
39
|
set: (t) => t
|
|
40
|
-
}), _e =
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
}), _e = tt;
|
|
41
|
+
Rt(() => {
|
|
42
|
+
Se.value = !0, Te();
|
|
43
43
|
});
|
|
44
|
-
const
|
|
45
|
-
function
|
|
46
|
-
if (
|
|
44
|
+
const $e = h(() => !!e.value.debug);
|
|
45
|
+
function Te() {
|
|
46
|
+
if (Ve(y.dataset) ? (qe({
|
|
47
47
|
componentName: "VueUiHistoryPlot",
|
|
48
48
|
type: "dataset",
|
|
49
|
-
debug:
|
|
50
|
-
}),
|
|
51
|
-
|
|
49
|
+
debug: $e.value
|
|
50
|
+
}), ie.value = !0) : y.dataset.forEach((t, a) => {
|
|
51
|
+
Gt({
|
|
52
52
|
datasetObject: t,
|
|
53
53
|
requiredAttributes: ["name", "values"]
|
|
54
54
|
}).forEach((l) => {
|
|
55
|
-
V.value = !1,
|
|
55
|
+
V.value = !1, qe({
|
|
56
56
|
componentName: "VueUiHistoryPlot",
|
|
57
57
|
type: "datasetSerieAttribute",
|
|
58
58
|
property: l,
|
|
59
59
|
index: a,
|
|
60
|
-
debug:
|
|
60
|
+
debug: $e.value
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
|
-
}),
|
|
64
|
-
const t =
|
|
65
|
-
const { width: a, height: l } =
|
|
66
|
-
chart:
|
|
67
|
-
title: e.value.style.chart.title.text ?
|
|
68
|
-
noTitle:
|
|
69
|
-
legend: e.value.style.chart.legend.show ?
|
|
70
|
-
source:
|
|
63
|
+
}), Ve(y.dataset) || (ie.value = e.value.loading), e.value.responsive) {
|
|
64
|
+
const t = Qe(() => {
|
|
65
|
+
const { width: a, height: l } = nl({
|
|
66
|
+
chart: T.value,
|
|
67
|
+
title: e.value.style.chart.title.text ? pe.value : null,
|
|
68
|
+
noTitle: Ce.value,
|
|
69
|
+
legend: e.value.style.chart.legend.show ? me.value : null,
|
|
70
|
+
source: Ae.value
|
|
71
71
|
});
|
|
72
72
|
requestAnimationFrame(() => {
|
|
73
|
-
f.value.width = a, f.value.height = l, e.value.responsiveProportionalSizing ? (
|
|
73
|
+
f.value.width = a, f.value.height = l, e.value.responsiveProportionalSizing ? (r.value.plots = D({
|
|
74
74
|
relator: Math.min(a, l),
|
|
75
75
|
adjuster: 600,
|
|
76
76
|
source: e.value.style.chart.plots.radius,
|
|
77
77
|
threshold: 3,
|
|
78
78
|
fallback: 3
|
|
79
|
-
}),
|
|
79
|
+
}), r.value.indexLabels = D({
|
|
80
80
|
relator: Math.min(a, l),
|
|
81
81
|
adjuster: 600,
|
|
82
82
|
source: e.value.style.chart.plots.indexLabels.fontSize,
|
|
83
83
|
threshold: 6,
|
|
84
84
|
fallback: 6
|
|
85
|
-
}),
|
|
85
|
+
}), r.value.labels = D({
|
|
86
86
|
relator: Math.min(a, l),
|
|
87
87
|
adjuster: 600,
|
|
88
88
|
source: e.value.style.chart.plots.labels.fontSize,
|
|
89
89
|
threshold: 6,
|
|
90
90
|
fallback: 6
|
|
91
|
-
}),
|
|
91
|
+
}), r.value.xAxisLabels = D({
|
|
92
92
|
relator: Math.min(a, l),
|
|
93
93
|
adjuster: 600,
|
|
94
94
|
source: e.value.style.chart.axes.x.labels.fontSize,
|
|
95
95
|
threshold: 6,
|
|
96
96
|
fallback: 6
|
|
97
|
-
}),
|
|
97
|
+
}), r.value.xAxisName = D({
|
|
98
98
|
relator: Math.min(a, l),
|
|
99
99
|
adjuster: 600,
|
|
100
100
|
source: e.value.style.chart.axes.x.name.fontSize,
|
|
101
101
|
threshold: 6,
|
|
102
102
|
fallback: 6
|
|
103
|
-
}),
|
|
103
|
+
}), r.value.yAxisLabels = D({
|
|
104
104
|
relator: Math.min(a, l),
|
|
105
105
|
adjuster: 600,
|
|
106
106
|
source: e.value.style.chart.axes.y.labels.fontSize,
|
|
107
107
|
threshold: 6,
|
|
108
108
|
fallback: 6
|
|
109
|
-
}),
|
|
109
|
+
}), r.value.yAxisName = D({
|
|
110
110
|
relator: Math.min(a, l),
|
|
111
111
|
adjuster: 600,
|
|
112
112
|
source: e.value.style.chart.axes.y.name.fontSize,
|
|
113
113
|
threshold: 6,
|
|
114
114
|
fallback: 6
|
|
115
|
-
})) : (
|
|
115
|
+
})) : (r.value.plots = e.value.style.chart.plots.radius, r.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, r.value.labels = e.value.style.chart.plots.labels.fontSize, r.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, r.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, r.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, r.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
|
-
|
|
118
|
+
z.value && (X.value && z.value.unobserve(X.value), z.value.disconnect()), z.value = new ResizeObserver(t), X.value = T.value.parentNode, z.value.observe(X.value);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
Bt(() => {
|
|
122
|
+
z.value && (X.value && z.value.unobserve(X.value), z.value.disconnect());
|
|
123
123
|
});
|
|
124
|
-
function
|
|
125
|
-
const t =
|
|
124
|
+
function ue() {
|
|
125
|
+
const t = Ze({
|
|
126
126
|
userConfig: y.config,
|
|
127
|
-
defaultConfig:
|
|
127
|
+
defaultConfig: ct
|
|
128
128
|
});
|
|
129
129
|
let a = {};
|
|
130
130
|
return t.theme ? a = {
|
|
131
|
-
...
|
|
132
|
-
userConfig:
|
|
131
|
+
...Ze({
|
|
132
|
+
userConfig: pl.vue_ui_history_plot[t.theme] || y.config,
|
|
133
133
|
defaultConfig: t
|
|
134
134
|
}),
|
|
135
|
-
customPalette:
|
|
136
|
-
} : a = t, y.config &&
|
|
135
|
+
customPalette: ll[t.theme] || ee
|
|
136
|
+
} : a = t, y.config && te(y.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = y.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, y.config && te(y.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = y.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, y.config && te(y.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = y.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, y.config && te(y.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = y.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
|
|
137
137
|
}
|
|
138
|
-
const e = v(
|
|
139
|
-
...
|
|
138
|
+
const e = v(ue()), { loading: O, FINAL_DATASET: vt, manualLoading: ie } = ul({
|
|
139
|
+
...Yt(y),
|
|
140
140
|
FINAL_CONFIG: e,
|
|
141
|
-
prepareConfig:
|
|
141
|
+
prepareConfig: ue,
|
|
142
142
|
skeletonDataset: [
|
|
143
143
|
{
|
|
144
144
|
name: "",
|
|
@@ -151,7 +151,7 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
151
151
|
]
|
|
152
152
|
}
|
|
153
153
|
],
|
|
154
|
-
skeletonConfig:
|
|
154
|
+
skeletonConfig: Vt({
|
|
155
155
|
defaultConfig: e.value,
|
|
156
156
|
userConfig: {
|
|
157
157
|
userOptions: { show: !1 },
|
|
@@ -203,21 +203,21 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
})
|
|
206
|
-
}), { userOptionsVisible:
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}, { deep: !0 }),
|
|
210
|
-
Array.isArray(t) && t.length > 0 && (
|
|
206
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: Le, keepUserOptionState: Me } = hl({ config: e.value }), { svgRef: ve } = dl({ config: e.value.style.chart.title });
|
|
207
|
+
K(() => y.config, (t) => {
|
|
208
|
+
O.value || (e.value = ue()), ce.value = !e.value.userOptions.showOnChartHover, Te(), ge.value += 1, ke.value += 1, be.value += 1, f.value.height = e.value.style.chart.height, f.value.width = e.value.style.chart.width, r.value.plots = e.value.style.chart.plots.radius, r.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, r.value.labels = e.value.style.chart.plots.labels.fontSize, r.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, r.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, r.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, r.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
209
|
+
}, { deep: !0 }), K(() => y.dataset, (t) => {
|
|
210
|
+
Array.isArray(t) && t.length > 0 && (ie.value = !1);
|
|
211
211
|
}, { deep: !0 });
|
|
212
|
-
const { isPrinting:
|
|
212
|
+
const { isPrinting: ze, isImaging: Oe, generatePdf: Ie, generateImage: Ne } = cl({
|
|
213
213
|
elementId: `history_plot_${L.value}`,
|
|
214
214
|
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
215
215
|
options: e.value.userOptions.print
|
|
216
|
-
}),
|
|
216
|
+
}), ht = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), dt = h(() => qt(e.value.customPalette)), C = v({
|
|
217
217
|
showTable: e.value.table.show,
|
|
218
218
|
showTooltip: e.value.style.chart.tooltip.show
|
|
219
219
|
});
|
|
220
|
-
|
|
220
|
+
K(e, () => {
|
|
221
221
|
C.value = {
|
|
222
222
|
showTable: e.value.table.show,
|
|
223
223
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -226,43 +226,43 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
226
226
|
const f = v({
|
|
227
227
|
height: e.value.style.chart.height,
|
|
228
228
|
width: e.value.style.chart.width
|
|
229
|
-
}),
|
|
230
|
-
function
|
|
229
|
+
}), yt = h(() => f.value.width), ft = h(() => f.value.height);
|
|
230
|
+
function xt() {
|
|
231
231
|
let t = 0;
|
|
232
232
|
re.value && (t = Array.from(re.value.querySelectorAll("text")).reduce((u, s) => {
|
|
233
|
-
const
|
|
234
|
-
return
|
|
233
|
+
const w = s.getComputedTextLength();
|
|
234
|
+
return w > u ? w : u;
|
|
235
235
|
}, 0));
|
|
236
|
-
const a =
|
|
236
|
+
const a = ne.value ? ne.value.getBoundingClientRect().width : 0;
|
|
237
237
|
return t + a + (a ? 24 : 0);
|
|
238
238
|
}
|
|
239
|
-
const
|
|
240
|
-
|
|
239
|
+
const Pe = v(0), pt = Qe((t) => {
|
|
240
|
+
Pe.value = t;
|
|
241
241
|
});
|
|
242
|
-
|
|
242
|
+
Ht((t) => {
|
|
243
243
|
const a = G.value;
|
|
244
244
|
if (!a) return;
|
|
245
245
|
const l = new ResizeObserver((u) => {
|
|
246
|
-
|
|
246
|
+
pt(u[0].contentRect.height);
|
|
247
247
|
});
|
|
248
248
|
l.observe(a), t(() => l.disconnect());
|
|
249
249
|
});
|
|
250
|
-
const
|
|
250
|
+
const Fe = h(() => {
|
|
251
251
|
let t = 0;
|
|
252
|
-
|
|
252
|
+
oe.value && (t = oe.value.getBBox().height + r.value.xAxisName / 2);
|
|
253
253
|
let a = 0;
|
|
254
|
-
return G.value && (a =
|
|
254
|
+
return G.value && (a = Pe.value), t + a;
|
|
255
255
|
}), c = h(() => {
|
|
256
|
-
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l =
|
|
256
|
+
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = xt(), u = e.value.style.chart.plots.radius;
|
|
257
257
|
return {
|
|
258
258
|
left: t + l + e.value.style.chart.axes.y.name.offsetX,
|
|
259
259
|
top: a + u,
|
|
260
260
|
right: f.value.width - e.value.style.chart.padding.right - u - e.value.style.chart.axes.y.name.offsetX,
|
|
261
|
-
bottom: f.value.height - e.value.style.chart.padding.bottom -
|
|
261
|
+
bottom: f.value.height - e.value.style.chart.padding.bottom - Fe.value - u - e.value.style.chart.axes.x.name.offsetY,
|
|
262
262
|
width: f.value.width - t - e.value.style.chart.padding.right - l - u - e.value.style.chart.axes.y.name.offsetX,
|
|
263
|
-
height: f.value.height - a - e.value.style.chart.padding.bottom -
|
|
263
|
+
height: f.value.height - a - e.value.style.chart.padding.bottom - Fe.value - u * 2 - e.value.style.chart.axes.x.name.offsetY
|
|
264
264
|
};
|
|
265
|
-
}),
|
|
265
|
+
}), r = v({
|
|
266
266
|
plots: e.value.style.chart.plots.radius,
|
|
267
267
|
indexLabels: e.value.style.chart.plots.indexLabels.fontSize,
|
|
268
268
|
labels: e.value.style.chart.plots.labels.fontSize,
|
|
@@ -270,24 +270,24 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
270
270
|
xAxisName: e.value.style.chart.axes.x.name.fontSize,
|
|
271
271
|
yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
|
|
272
272
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
273
|
-
}),
|
|
273
|
+
}), _ = h(() => vt.value.map((t, a) => ({
|
|
274
274
|
...t,
|
|
275
|
-
color: t.color ?
|
|
275
|
+
color: t.color ? Jt(t.color) : dt.value[a] || ee[a] || ee[a % ee.length],
|
|
276
276
|
seriesIndex: a
|
|
277
|
-
}))),
|
|
278
|
-
const t = Math.min(...
|
|
277
|
+
}))), gt = h(() => Math.max(..._.value.filter((t) => !m.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), mt = h(() => {
|
|
278
|
+
const t = Math.min(..._.value.filter((a) => !m.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
279
279
|
return t < 0 ? t : 0;
|
|
280
|
-
}),
|
|
281
|
-
const t = Math.min(...
|
|
280
|
+
}), bt = h(() => Math.max(..._.value.filter((t) => !m.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), kt = h(() => {
|
|
281
|
+
const t = Math.min(..._.value.filter((a) => !m.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
282
282
|
return t < 0 ? t : 0;
|
|
283
283
|
}), x = h(() => {
|
|
284
|
-
const t =
|
|
285
|
-
e.value.style.chart.axes.x.scaleMin === null ?
|
|
286
|
-
e.value.style.chart.axes.x.scaleMax === null ?
|
|
284
|
+
const t = Je(
|
|
285
|
+
e.value.style.chart.axes.x.scaleMin === null ? mt.value : e.value.style.chart.axes.x.scaleMin,
|
|
286
|
+
e.value.style.chart.axes.x.scaleMax === null ? gt.value : e.value.style.chart.axes.x.scaleMax,
|
|
287
287
|
e.value.style.chart.axes.x.ticks
|
|
288
|
-
), a =
|
|
289
|
-
e.value.style.chart.axes.y.scaleMin === null ?
|
|
290
|
-
e.value.style.chart.axes.y.scaleMax === null ?
|
|
288
|
+
), a = Je(
|
|
289
|
+
e.value.style.chart.axes.y.scaleMin === null ? kt.value : e.value.style.chart.axes.y.scaleMin,
|
|
290
|
+
e.value.style.chart.axes.y.scaleMax === null ? bt.value : e.value.style.chart.axes.y.scaleMax,
|
|
291
291
|
e.value.style.chart.axes.y.ticks
|
|
292
292
|
);
|
|
293
293
|
return {
|
|
@@ -307,24 +307,24 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
307
307
|
}))
|
|
308
308
|
};
|
|
309
309
|
});
|
|
310
|
-
function
|
|
310
|
+
function wt(t) {
|
|
311
311
|
const a = x.value.x.min < 0 ? Math.abs(x.value.x.min) : x.value.x.min > 0 ? -x.value.x.min : 0;
|
|
312
312
|
return c.value.left + ((t || 0) + a) / (x.value.x.max + a) * c.value.width;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Ct(t) {
|
|
315
315
|
const a = x.value.y.min < 0 ? Math.abs(x.value.y.min) : x.value.y.min > 0 ? -x.value.y.min : 0;
|
|
316
316
|
return c.value.bottom - ((t || 0) + a) / (x.value.y.max + a) * c.value.height;
|
|
317
317
|
}
|
|
318
|
-
const P = h(() =>
|
|
319
|
-
const l = t.values.map((s,
|
|
318
|
+
const P = h(() => _.value.filter((t) => !m.value.includes(t.seriesIndex)).map((t, a) => {
|
|
319
|
+
const l = t.values.map((s, w) => ({
|
|
320
320
|
valueX: s.x,
|
|
321
321
|
valueY: s.y,
|
|
322
322
|
label: s.label,
|
|
323
|
-
x:
|
|
324
|
-
y:
|
|
323
|
+
x: wt(s.x),
|
|
324
|
+
y: Ct(s.y),
|
|
325
325
|
color: t.color,
|
|
326
326
|
seriesName: t.name,
|
|
327
|
-
id:
|
|
327
|
+
id: Ge()
|
|
328
328
|
})), u = l.map((s) => `${s.x},${s.y} `).join("").trim();
|
|
329
329
|
return {
|
|
330
330
|
...t,
|
|
@@ -332,16 +332,30 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
332
332
|
path: `M${u}`
|
|
333
333
|
};
|
|
334
334
|
}));
|
|
335
|
-
function
|
|
336
|
-
|
|
335
|
+
function q(t) {
|
|
336
|
+
m.value.includes(t) ? m.value = m.value.filter((a) => a !== t) : m.value.push(t);
|
|
337
|
+
}
|
|
338
|
+
function De(t) {
|
|
339
|
+
if (!_.value.length)
|
|
340
|
+
return e.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null;
|
|
341
|
+
const a = _.value.find((l) => l.name === t);
|
|
342
|
+
return a || (e.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${t}"`), null);
|
|
343
|
+
}
|
|
344
|
+
function At(t) {
|
|
345
|
+
const a = De(t);
|
|
346
|
+
a !== null && m.value.includes(a.seriesIndex) && q(a.seriesIndex);
|
|
337
347
|
}
|
|
338
|
-
|
|
348
|
+
function St(t) {
|
|
349
|
+
const a = De(t);
|
|
350
|
+
a !== null && (m.value.includes(a.seriesIndex) || q(a.seriesIndex));
|
|
351
|
+
}
|
|
352
|
+
const he = h(() => _.value.map((t) => ({
|
|
339
353
|
...t,
|
|
340
|
-
opacity:
|
|
341
|
-
segregate: () =>
|
|
342
|
-
isSegregated:
|
|
354
|
+
opacity: m.value.includes(t.seriesIndex) ? 0.5 : 1,
|
|
355
|
+
segregate: () => q(t.seriesIndex),
|
|
356
|
+
isSegregated: m.value.includes(t.seriesIndex),
|
|
343
357
|
shape: "circle"
|
|
344
|
-
}))),
|
|
358
|
+
}))), _t = h(() => ({
|
|
345
359
|
cy: "history-plot-div-legend",
|
|
346
360
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
347
361
|
color: e.value.style.chart.legend.color,
|
|
@@ -349,45 +363,45 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
349
363
|
paddingBottom: 12,
|
|
350
364
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
351
365
|
}));
|
|
352
|
-
function
|
|
366
|
+
function $t({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
353
367
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), _e("selectDatapoint", t);
|
|
354
368
|
}
|
|
355
|
-
function
|
|
369
|
+
function Xe(t) {
|
|
356
370
|
_e("selectLegend", {
|
|
357
371
|
...t,
|
|
358
372
|
isSegregated: !t.isSegregated,
|
|
359
373
|
opacity: t.isSegregated ? 1 : 0.5
|
|
360
374
|
});
|
|
361
375
|
}
|
|
362
|
-
function
|
|
363
|
-
|
|
376
|
+
function Re(t) {
|
|
377
|
+
E.value = t, we.value += 1;
|
|
364
378
|
}
|
|
365
|
-
const
|
|
366
|
-
function
|
|
367
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }),
|
|
379
|
+
const de = v(null);
|
|
380
|
+
function Tt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
381
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), le.value = !1, A.value = null;
|
|
368
382
|
}
|
|
369
|
-
function
|
|
370
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }),
|
|
383
|
+
function Lt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
384
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), de.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: _.value }, A.value = t;
|
|
371
385
|
const u = e.value.style.chart.tooltip.customFormat;
|
|
372
|
-
if (
|
|
386
|
+
if (U.value = !1, ol(u))
|
|
373
387
|
try {
|
|
374
388
|
const s = u({
|
|
375
389
|
seriesIndex: l,
|
|
376
390
|
datapoint: t,
|
|
377
391
|
plotIndex: a,
|
|
378
|
-
series:
|
|
392
|
+
series: _.value,
|
|
379
393
|
config: e.value
|
|
380
394
|
});
|
|
381
|
-
typeof s == "string" && (
|
|
395
|
+
typeof s == "string" && (ae.value = s, U.value = !0);
|
|
382
396
|
} catch {
|
|
383
|
-
console.warn("Custom format cannot be applied."),
|
|
397
|
+
console.warn("Custom format cannot be applied."), U.value = !1;
|
|
384
398
|
}
|
|
385
|
-
if (!
|
|
399
|
+
if (!U.value) {
|
|
386
400
|
let s = "";
|
|
387
401
|
s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span>${t.seriesName}</span></div>`, s += `<div>${t.label}</div>`, s += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${Y(
|
|
388
402
|
e.value.style.chart.axes.x.labels.formatter,
|
|
389
403
|
t.valueX,
|
|
390
|
-
|
|
404
|
+
H({
|
|
391
405
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
392
406
|
v: t.valueX,
|
|
393
407
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
@@ -396,21 +410,21 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
396
410
|
)}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${Y(
|
|
397
411
|
e.value.style.chart.axes.y.labels.formatter,
|
|
398
412
|
t.valueY,
|
|
399
|
-
|
|
413
|
+
H({
|
|
400
414
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
401
415
|
v: t.valueY,
|
|
402
416
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
403
417
|
r: e.value.style.chart.axes.y.labels.rounding
|
|
404
418
|
})
|
|
405
|
-
)}</div>`,
|
|
419
|
+
)}</div>`, ae.value = `<div>${s}</div>`;
|
|
406
420
|
}
|
|
407
|
-
|
|
421
|
+
le.value = !0;
|
|
408
422
|
}
|
|
409
423
|
h(() => ({ head: P.value.map((a) => ({
|
|
410
424
|
name: a.name,
|
|
411
425
|
color: a.color
|
|
412
426
|
})) }));
|
|
413
|
-
const
|
|
427
|
+
const J = h(() => {
|
|
414
428
|
const t = [
|
|
415
429
|
e.value.table.columnNames.series,
|
|
416
430
|
e.value.table.columnNames.datapoint,
|
|
@@ -425,7 +439,7 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
425
439
|
Y(
|
|
426
440
|
e.value.style.chart.axes.x.labels.formatter,
|
|
427
441
|
s.valueX,
|
|
428
|
-
|
|
442
|
+
H({
|
|
429
443
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
430
444
|
v: s.valueX,
|
|
431
445
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
@@ -435,7 +449,7 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
435
449
|
Y(
|
|
436
450
|
e.value.style.chart.axes.y.labels.formatter,
|
|
437
451
|
s.valueY,
|
|
438
|
-
|
|
452
|
+
H({
|
|
439
453
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
440
454
|
v: s.valueY,
|
|
441
455
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
@@ -462,80 +476,80 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
462
476
|
colNames: t
|
|
463
477
|
};
|
|
464
478
|
});
|
|
465
|
-
function
|
|
466
|
-
|
|
479
|
+
function ye(t = null) {
|
|
480
|
+
jt(() => {
|
|
467
481
|
const a = [
|
|
468
482
|
[e.value.table.columnNames.series],
|
|
469
483
|
[e.value.table.columnNames.datapoint],
|
|
470
484
|
[e.value.table.columnNames.x],
|
|
471
485
|
[e.value.table.columnNames.y]
|
|
472
|
-
], l = P.value.flatMap((
|
|
473
|
-
[
|
|
474
|
-
[
|
|
475
|
-
[
|
|
476
|
-
[
|
|
486
|
+
], l = P.value.flatMap((w) => w.plots.map((Z) => [
|
|
487
|
+
[Z.seriesName],
|
|
488
|
+
[Z.label],
|
|
489
|
+
[Z.valueX],
|
|
490
|
+
[Z.valueY]
|
|
477
491
|
])), u = [
|
|
478
492
|
[e.value.style.chart.title.text],
|
|
479
493
|
[e.value.style.chart.title.subtitle.text],
|
|
480
494
|
a
|
|
481
|
-
].concat(l), s =
|
|
482
|
-
t ? t(s) :
|
|
495
|
+
].concat(l), s = al(u);
|
|
496
|
+
t ? t(s) : sl({
|
|
483
497
|
csvContent: s,
|
|
484
498
|
title: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
485
499
|
});
|
|
486
500
|
});
|
|
487
501
|
}
|
|
488
|
-
const
|
|
489
|
-
function
|
|
490
|
-
|
|
502
|
+
const Q = v(!1);
|
|
503
|
+
function fe() {
|
|
504
|
+
Q.value = !Q.value;
|
|
491
505
|
}
|
|
492
|
-
function
|
|
506
|
+
function Be() {
|
|
493
507
|
C.value.showTable = !C.value.showTable;
|
|
494
508
|
}
|
|
495
|
-
function
|
|
509
|
+
function Ye() {
|
|
496
510
|
C.value.showTooltip = !C.value.showTooltip;
|
|
497
511
|
}
|
|
498
|
-
function
|
|
512
|
+
function Mt() {
|
|
499
513
|
return P.value;
|
|
500
514
|
}
|
|
501
|
-
async function
|
|
502
|
-
if (
|
|
503
|
-
const { width: a, height: l } =
|
|
515
|
+
async function zt({ scale: t = 2 } = {}) {
|
|
516
|
+
if (!T.value) return;
|
|
517
|
+
const { width: a, height: l } = T.value.getBoundingClientRect(), u = a / l, { imageUri: s, base64: w } = await fl({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
504
518
|
return {
|
|
505
519
|
imageUri: s,
|
|
506
|
-
base64:
|
|
520
|
+
base64: w,
|
|
507
521
|
title: e.value.style.chart.title.text,
|
|
508
522
|
width: a,
|
|
509
523
|
height: l,
|
|
510
524
|
aspectRatio: u
|
|
511
525
|
};
|
|
512
526
|
}
|
|
513
|
-
const
|
|
514
|
-
|
|
527
|
+
const Ot = h(() => x.value.tickX), It = h(() => ({ start: 0, end: x.value.tickX.length }));
|
|
528
|
+
yl({
|
|
515
529
|
timeLabelsEls: G,
|
|
516
|
-
timeLabels:
|
|
517
|
-
slicer:
|
|
530
|
+
timeLabels: Ot,
|
|
531
|
+
slicer: It,
|
|
518
532
|
configRef: e,
|
|
519
533
|
rotationPath: ["style", "chart", "axes", "x", "labels", "rotation"],
|
|
520
534
|
autoRotatePath: ["style", "chart", "axes", "x", "labels", "autoRotate", "enable"],
|
|
521
535
|
isAutoSize: !1,
|
|
522
|
-
width:
|
|
523
|
-
height:
|
|
536
|
+
width: yt,
|
|
537
|
+
height: ft,
|
|
524
538
|
targetClass: ".vue-ui-history-plot-x-axis-scale",
|
|
525
539
|
rotation: e.value.style.chart.axes.x.labels.autoRotate.angle
|
|
526
540
|
});
|
|
527
541
|
const j = h(() => {
|
|
528
542
|
const t = e.value.table.useDialog && !e.value.table.show, a = C.value.showTable;
|
|
529
543
|
return {
|
|
530
|
-
component: t ?
|
|
544
|
+
component: t ? it : st,
|
|
531
545
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
532
546
|
props: t ? {
|
|
533
547
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
534
548
|
color: e.value.table.th.color,
|
|
535
549
|
headerColor: e.value.table.th.color,
|
|
536
550
|
headerBg: e.value.table.th.backgroundColor,
|
|
537
|
-
isFullscreen:
|
|
538
|
-
fullscreenParent:
|
|
551
|
+
isFullscreen: E.value,
|
|
552
|
+
fullscreenParent: T.value,
|
|
539
553
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
540
554
|
} : {
|
|
541
555
|
hideDetails: !0,
|
|
@@ -554,71 +568,73 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
554
568
|
}
|
|
555
569
|
};
|
|
556
570
|
});
|
|
557
|
-
|
|
558
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
571
|
+
K(() => C.value.showTable, (t) => {
|
|
572
|
+
e.value.table.show || (t && e.value.table.useDialog && W.value ? W.value.open() : "close" in W.value && W.value.close());
|
|
559
573
|
});
|
|
560
|
-
function
|
|
561
|
-
C.value.showTable = !1,
|
|
574
|
+
function He() {
|
|
575
|
+
C.value.showTable = !1, se.value && se.value.setTableIconState(!1);
|
|
562
576
|
}
|
|
563
|
-
const
|
|
564
|
-
svg:
|
|
565
|
-
title:
|
|
566
|
-
legend:
|
|
567
|
-
legendItems:
|
|
568
|
-
backgroundColor:
|
|
577
|
+
const Nt = h(() => e.value.style.chart.backgroundColor), Pt = h(() => e.value.style.chart.legend), Ft = h(() => e.value.style.chart.title), { exportSvg: Dt, getSvg: Xt } = vl({
|
|
578
|
+
svg: ve,
|
|
579
|
+
title: Ft,
|
|
580
|
+
legend: Pt,
|
|
581
|
+
legendItems: he,
|
|
582
|
+
backgroundColor: Nt
|
|
569
583
|
});
|
|
570
584
|
async function Ee({ isCb: t }) {
|
|
571
585
|
if (t) {
|
|
572
|
-
const { blob: a, url: l, text: u, dataUrl: s } = await
|
|
586
|
+
const { blob: a, url: l, text: u, dataUrl: s } = await Xt();
|
|
573
587
|
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: u, dataUrl: s });
|
|
574
588
|
} else
|
|
575
|
-
|
|
589
|
+
Dt();
|
|
576
590
|
}
|
|
577
|
-
return
|
|
578
|
-
getData:
|
|
579
|
-
getImage:
|
|
580
|
-
generatePdf:
|
|
581
|
-
generateCsv:
|
|
591
|
+
return et({
|
|
592
|
+
getData: Mt,
|
|
593
|
+
getImage: zt,
|
|
594
|
+
generatePdf: Ie,
|
|
595
|
+
generateCsv: ye,
|
|
582
596
|
generateImage: Ne,
|
|
583
597
|
generateSvg: Ee,
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
598
|
+
hideSeries: St,
|
|
599
|
+
showSeries: At,
|
|
600
|
+
toggleTable: Be,
|
|
601
|
+
toggleTooltip: Ye,
|
|
602
|
+
toggleAnnotator: fe,
|
|
603
|
+
toggleFullscreen: Re
|
|
604
|
+
}), (t, a) => (o(), n("div", {
|
|
589
605
|
id: `history_plot_${L.value}`,
|
|
590
606
|
ref_key: "historyPlotChart",
|
|
591
|
-
ref:
|
|
592
|
-
class: F({ "vue-data-ui-component": !0, "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen":
|
|
593
|
-
style:
|
|
607
|
+
ref: T,
|
|
608
|
+
class: F({ "vue-data-ui-component": !0, "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": E.value }),
|
|
609
|
+
style: $(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
594
610
|
onMouseenter: a[2] || (a[2] = () => i(Le)(!0)),
|
|
595
611
|
onMouseleave: a[3] || (a[3] = () => i(Le)(!1))
|
|
596
612
|
}, [
|
|
597
613
|
p(t.$slots, "userConfig", {}, void 0, !0),
|
|
598
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
614
|
+
e.value.userOptions.buttons.annotator ? (o(), N(i(nt), {
|
|
599
615
|
key: 0,
|
|
600
|
-
svgRef: i(
|
|
616
|
+
svgRef: i(ve),
|
|
601
617
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
602
618
|
color: e.value.style.chart.color,
|
|
603
|
-
active:
|
|
604
|
-
onClose:
|
|
619
|
+
active: Q.value,
|
|
620
|
+
onClose: fe
|
|
605
621
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
606
|
-
|
|
622
|
+
ht.value ? (o(), n("div", {
|
|
607
623
|
key: 1,
|
|
608
624
|
ref_key: "noTitle",
|
|
609
|
-
ref:
|
|
625
|
+
ref: Ce,
|
|
610
626
|
class: "vue-data-ui-no-title-space",
|
|
611
627
|
style: "height:36px; width: 100%;background:transparent"
|
|
612
628
|
}, null, 512)) : d("", !0),
|
|
613
|
-
e.value.style.chart.title.text ? (o(),
|
|
629
|
+
e.value.style.chart.title.text ? (o(), n("div", {
|
|
614
630
|
key: 2,
|
|
615
631
|
ref_key: "chartTitle",
|
|
616
|
-
ref:
|
|
632
|
+
ref: pe,
|
|
617
633
|
class: "vue-ui-xy-title",
|
|
618
|
-
style:
|
|
634
|
+
style: $(`font-family:${e.value.style.fontFamily}`)
|
|
619
635
|
}, [
|
|
620
|
-
(o(),
|
|
621
|
-
key: `title_${
|
|
636
|
+
(o(), N(xl, {
|
|
637
|
+
key: `title_${ge.value}`,
|
|
622
638
|
config: {
|
|
623
639
|
title: {
|
|
624
640
|
cy: "history-plot-div-title",
|
|
@@ -631,17 +647,17 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
631
647
|
}
|
|
632
648
|
}, null, 8, ["config"]))
|
|
633
649
|
], 4)) : d("", !0),
|
|
634
|
-
|
|
650
|
+
S("div", {
|
|
635
651
|
id: `legend-top-${L.value}`
|
|
636
|
-
}, null, 8,
|
|
637
|
-
e.value.userOptions.show && V.value && (i(
|
|
652
|
+
}, null, 8, kl),
|
|
653
|
+
e.value.userOptions.show && V.value && (i(Me) || i(ce)) ? (o(), N(i(rt), {
|
|
638
654
|
ref_key: "userOptionsRef",
|
|
639
|
-
ref:
|
|
640
|
-
key: `user_option_${
|
|
655
|
+
ref: se,
|
|
656
|
+
key: `user_option_${we.value}`,
|
|
641
657
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
642
658
|
color: e.value.style.chart.color,
|
|
643
|
-
isPrinting: i(
|
|
644
|
-
isImaging: i(
|
|
659
|
+
isPrinting: i(ze),
|
|
660
|
+
isImaging: i(Oe),
|
|
645
661
|
uid: L.value,
|
|
646
662
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
647
663
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -651,26 +667,26 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
651
667
|
hasTable: e.value.userOptions.buttons.table,
|
|
652
668
|
hasLabel: !1,
|
|
653
669
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
654
|
-
isFullscreen:
|
|
655
|
-
chartElement:
|
|
670
|
+
isFullscreen: E.value,
|
|
671
|
+
chartElement: T.value,
|
|
656
672
|
position: e.value.userOptions.position,
|
|
657
673
|
isTooltip: C.value.showTooltip,
|
|
658
674
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
659
675
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
660
|
-
isAnnotation:
|
|
676
|
+
isAnnotation: Q.value,
|
|
661
677
|
callbacks: e.value.userOptions.callbacks,
|
|
662
678
|
printScale: e.value.userOptions.print.scale,
|
|
663
679
|
tableDialog: e.value.table.useDialog,
|
|
664
|
-
onToggleFullscreen:
|
|
665
|
-
onGeneratePdf: i(
|
|
666
|
-
onGenerateCsv:
|
|
680
|
+
onToggleFullscreen: Re,
|
|
681
|
+
onGeneratePdf: i(Ie),
|
|
682
|
+
onGenerateCsv: ye,
|
|
667
683
|
onGenerateImage: i(Ne),
|
|
668
684
|
onGenerateSvg: Ee,
|
|
669
|
-
onToggleTable:
|
|
670
|
-
onToggleTooltip:
|
|
671
|
-
onToggleAnnotator:
|
|
672
|
-
style:
|
|
673
|
-
visibility: i(
|
|
685
|
+
onToggleTable: Be,
|
|
686
|
+
onToggleTooltip: Ye,
|
|
687
|
+
onToggleAnnotator: fe,
|
|
688
|
+
style: $({
|
|
689
|
+
visibility: i(Me) ? i(ce) ? "visible" : "hidden" : "visible"
|
|
674
690
|
})
|
|
675
691
|
}, We({ _: 2 }, [
|
|
676
692
|
t.$slots.menuIcon ? {
|
|
@@ -737,15 +753,15 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
737
753
|
key: "8"
|
|
738
754
|
} : void 0
|
|
739
755
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
740
|
-
(o(),
|
|
756
|
+
(o(), n("svg", {
|
|
741
757
|
ref_key: "svgRef",
|
|
742
|
-
ref:
|
|
743
|
-
xmlns: i(
|
|
758
|
+
ref: ve,
|
|
759
|
+
xmlns: i(Qt),
|
|
744
760
|
viewBox: `0 0 ${f.value.width < 0 ? 0.1 : f.value.width} ${f.value.height < 0 ? 0.1 : f.value.height}`,
|
|
745
|
-
style:
|
|
761
|
+
style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
746
762
|
}, [
|
|
747
|
-
|
|
748
|
-
t.$slots["chart-background"] ? (o(),
|
|
763
|
+
xe(i(ut)),
|
|
764
|
+
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
749
765
|
key: 0,
|
|
750
766
|
x: c.value.left,
|
|
751
767
|
y: c.value.top,
|
|
@@ -756,28 +772,28 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
756
772
|
}
|
|
757
773
|
}, [
|
|
758
774
|
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
759
|
-
], 8,
|
|
760
|
-
e.value.style.chart.plots.gradient.show ? (o(),
|
|
761
|
-
(o(!0),
|
|
775
|
+
], 8, Cl)) : d("", !0),
|
|
776
|
+
e.value.style.chart.plots.gradient.show ? (o(), n("defs", Al, [
|
|
777
|
+
(o(!0), n(b, null, k(P.value, (l, u) => (o(), n("radialGradient", {
|
|
762
778
|
id: `gradient_${u}_${L.value}`,
|
|
763
779
|
fy: "30%"
|
|
764
780
|
}, [
|
|
765
|
-
|
|
781
|
+
S("stop", {
|
|
766
782
|
offset: "10%",
|
|
767
|
-
"stop-color": i(
|
|
768
|
-
}, null, 8,
|
|
769
|
-
|
|
783
|
+
"stop-color": i(Zt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
784
|
+
}, null, 8, _l),
|
|
785
|
+
S("stop", {
|
|
770
786
|
offset: "90%",
|
|
771
|
-
"stop-color": i(
|
|
772
|
-
}, null, 8,
|
|
773
|
-
|
|
787
|
+
"stop-color": i(Kt)(l.color, 0.1)
|
|
788
|
+
}, null, 8, $l),
|
|
789
|
+
S("stop", {
|
|
774
790
|
offset: "100%",
|
|
775
791
|
"stop-color": l.color
|
|
776
|
-
}, null, 8,
|
|
777
|
-
], 8,
|
|
792
|
+
}, null, 8, Tl)
|
|
793
|
+
], 8, Sl))), 256))
|
|
778
794
|
])) : d("", !0),
|
|
779
|
-
e.value.style.chart.grid.verticalLines.show ? (o(),
|
|
780
|
-
(o(!0),
|
|
795
|
+
e.value.style.chart.grid.verticalLines.show ? (o(), n("g", Ll, [
|
|
796
|
+
(o(!0), n(b, null, k(x.value.tickX, (l) => (o(), n("line", {
|
|
781
797
|
x1: l.x,
|
|
782
798
|
x2: l.x,
|
|
783
799
|
y1: l.y1,
|
|
@@ -785,10 +801,10 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
785
801
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
786
802
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
787
803
|
"stroke-linecap": "round"
|
|
788
|
-
}, null, 8,
|
|
804
|
+
}, null, 8, Ml))), 256))
|
|
789
805
|
])) : d("", !0),
|
|
790
|
-
e.value.style.chart.axes.y.labels.show ? (o(),
|
|
791
|
-
(o(!0),
|
|
806
|
+
e.value.style.chart.axes.y.labels.show ? (o(), n("g", zl, [
|
|
807
|
+
(o(!0), n(b, null, k(x.value.tickY, (l) => (o(), n("line", {
|
|
792
808
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
793
809
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
794
810
|
"stroke-linecap": "round",
|
|
@@ -796,42 +812,42 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
796
812
|
x2: c.value.left,
|
|
797
813
|
y1: l.y,
|
|
798
814
|
y2: l.y
|
|
799
|
-
}, null, 8,
|
|
815
|
+
}, null, 8, Ol))), 256))
|
|
800
816
|
])) : d("", !0),
|
|
801
|
-
e.value.style.chart.axes.y.labels.show ? (o(),
|
|
817
|
+
e.value.style.chart.axes.y.labels.show ? (o(), n("g", {
|
|
802
818
|
key: 4,
|
|
803
819
|
ref_key: "yAxisScales",
|
|
804
820
|
ref: re
|
|
805
821
|
}, [
|
|
806
|
-
(o(!0),
|
|
822
|
+
(o(!0), n(b, null, k(x.value.tickY, (l) => (o(), n("text", {
|
|
807
823
|
x: c.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
|
|
808
|
-
y: l.y +
|
|
824
|
+
y: l.y + r.value.yAxisLabels / 3,
|
|
809
825
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
810
|
-
"font-size":
|
|
826
|
+
"font-size": r.value.yAxisLabels,
|
|
811
827
|
"text-anchor": "end"
|
|
812
|
-
},
|
|
828
|
+
}, M(i(Y)(
|
|
813
829
|
e.value.style.chart.axes.y.labels.formatter,
|
|
814
830
|
l.value,
|
|
815
|
-
i(
|
|
831
|
+
i(H)({
|
|
816
832
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
817
833
|
v: l.value,
|
|
818
834
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
819
835
|
r: e.value.style.chart.axes.y.labels.rounding
|
|
820
836
|
})
|
|
821
|
-
)), 9,
|
|
837
|
+
)), 9, Il))), 256))
|
|
822
838
|
], 512)) : d("", !0),
|
|
823
|
-
e.value.style.chart.axes.y.name.text ? (o(),
|
|
839
|
+
e.value.style.chart.axes.y.name.text ? (o(), n("text", {
|
|
824
840
|
key: 5,
|
|
825
841
|
ref_key: "yAxisLabel",
|
|
826
|
-
ref:
|
|
827
|
-
transform: `translate(${
|
|
828
|
-
"font-size":
|
|
842
|
+
ref: ne,
|
|
843
|
+
transform: `translate(${r.value.yAxisName}, ${f.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
844
|
+
"font-size": r.value.yAxisName,
|
|
829
845
|
fill: e.value.style.chart.axes.y.name.color,
|
|
830
846
|
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
831
847
|
"text-anchor": "middle"
|
|
832
|
-
},
|
|
833
|
-
e.value.style.chart.grid.horizontalLines.show ? (o(),
|
|
834
|
-
(o(!0),
|
|
848
|
+
}, M(e.value.style.chart.axes.y.name.text), 9, Nl)) : d("", !0),
|
|
849
|
+
e.value.style.chart.grid.horizontalLines.show ? (o(), n("g", Pl, [
|
|
850
|
+
(o(!0), n(b, null, k(x.value.tickY, (l) => (o(), n("line", {
|
|
835
851
|
x1: l.x1,
|
|
836
852
|
x2: l.x2,
|
|
837
853
|
y1: l.y,
|
|
@@ -839,10 +855,10 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
839
855
|
stroke: e.value.style.chart.grid.horizontalLines.stroke,
|
|
840
856
|
"stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
841
857
|
"stroke-linecap": "round"
|
|
842
|
-
}, null, 8,
|
|
858
|
+
}, null, 8, Fl))), 256))
|
|
843
859
|
])) : d("", !0),
|
|
844
|
-
e.value.style.chart.axes.x.labels.show ? (o(),
|
|
845
|
-
(o(!0),
|
|
860
|
+
e.value.style.chart.axes.x.labels.show ? (o(), n("g", Dl, [
|
|
861
|
+
(o(!0), n(b, null, k(x.value.tickX, (l) => (o(), n("line", {
|
|
846
862
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
847
863
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
848
864
|
"stroke-linecap": "round",
|
|
@@ -850,42 +866,42 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
850
866
|
x2: l.x,
|
|
851
867
|
y1: c.value.bottom,
|
|
852
868
|
y2: c.value.bottom + 5
|
|
853
|
-
}, null, 8,
|
|
869
|
+
}, null, 8, Xl))), 256))
|
|
854
870
|
])) : d("", !0),
|
|
855
|
-
e.value.style.chart.axes.x.labels.show ? (o(),
|
|
871
|
+
e.value.style.chart.axes.x.labels.show ? (o(), n("g", {
|
|
856
872
|
key: 8,
|
|
857
873
|
ref_key: "xAxisScales",
|
|
858
874
|
ref: G
|
|
859
875
|
}, [
|
|
860
|
-
(o(!0),
|
|
876
|
+
(o(!0), n(b, null, k(x.value.tickX, (l) => (o(), n("text", {
|
|
861
877
|
class: "vue-ui-history-plot-x-axis-scale",
|
|
862
|
-
transform: `translate(${l.x}, ${c.value.bottom + e.value.style.chart.axes.x.labels.offsetY +
|
|
878
|
+
transform: `translate(${l.x}, ${c.value.bottom + e.value.style.chart.axes.x.labels.offsetY + r.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
863
879
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
864
|
-
"font-size":
|
|
880
|
+
"font-size": r.value.xAxisLabels,
|
|
865
881
|
"text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
866
|
-
},
|
|
882
|
+
}, M(i(Y)(
|
|
867
883
|
e.value.style.chart.axes.x.labels.formatter,
|
|
868
884
|
l.value,
|
|
869
|
-
i(
|
|
885
|
+
i(H)({
|
|
870
886
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
871
887
|
v: l.value,
|
|
872
888
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
873
889
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
874
890
|
})
|
|
875
|
-
)), 9,
|
|
891
|
+
)), 9, Rl))), 256))
|
|
876
892
|
], 512)) : d("", !0),
|
|
877
|
-
e.value.style.chart.axes.x.name.text ? (o(),
|
|
893
|
+
e.value.style.chart.axes.x.name.text ? (o(), n("text", {
|
|
878
894
|
key: 9,
|
|
879
895
|
ref_key: "xAxisLabel",
|
|
880
|
-
ref:
|
|
896
|
+
ref: oe,
|
|
881
897
|
x: f.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
|
|
882
898
|
y: f.value.height,
|
|
883
|
-
"font-size":
|
|
899
|
+
"font-size": r.value.xAxisName,
|
|
884
900
|
fill: e.value.style.chart.axes.x.name.color,
|
|
885
901
|
"font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
886
902
|
"text-anchor": "middle"
|
|
887
|
-
},
|
|
888
|
-
e.value.style.chart.grid.xAxis.show ? (o(),
|
|
903
|
+
}, M(e.value.style.chart.axes.x.name.text), 9, Bl)) : d("", !0),
|
|
904
|
+
e.value.style.chart.grid.xAxis.show ? (o(), n("line", {
|
|
889
905
|
key: 10,
|
|
890
906
|
x1: c.value.left,
|
|
891
907
|
x2: c.value.left + c.value.width,
|
|
@@ -894,8 +910,8 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
894
910
|
stroke: e.value.style.chart.grid.xAxis.stroke,
|
|
895
911
|
"stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
|
|
896
912
|
"stroke-linecap": "round"
|
|
897
|
-
}, null, 8,
|
|
898
|
-
e.value.style.chart.grid.yAxis.show ? (o(),
|
|
913
|
+
}, null, 8, Yl)) : d("", !0),
|
|
914
|
+
e.value.style.chart.grid.yAxis.show ? (o(), n("line", {
|
|
899
915
|
key: 11,
|
|
900
916
|
x1: c.value.left,
|
|
901
917
|
x2: c.value.left,
|
|
@@ -904,181 +920,181 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
904
920
|
stroke: e.value.style.chart.grid.yAxis.stroke,
|
|
905
921
|
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
906
922
|
"stroke-linecap": "round"
|
|
907
|
-
}, null, 8,
|
|
908
|
-
(o(!0),
|
|
909
|
-
e.value.style.chart.paths.show ? (o(),
|
|
923
|
+
}, null, 8, Hl)) : d("", !0),
|
|
924
|
+
(o(!0), n(b, null, k(P.value, (l, u) => (o(), n("g", null, [
|
|
925
|
+
e.value.style.chart.paths.show ? (o(), n("g", {
|
|
910
926
|
key: 0,
|
|
911
|
-
style:
|
|
927
|
+
style: $({
|
|
912
928
|
opacity: A.value === null ? 1 : 0.3
|
|
913
929
|
})
|
|
914
930
|
}, [
|
|
915
|
-
|
|
931
|
+
S("path", {
|
|
916
932
|
d: l.path,
|
|
917
933
|
stroke: e.value.style.chart.backgroundColor,
|
|
918
934
|
"stroke-width": e.value.style.chart.paths.strokeWidth + 4,
|
|
919
935
|
fill: "none",
|
|
920
936
|
"stroke-linecap": "round",
|
|
921
937
|
"stroke-linejoin": "round",
|
|
922
|
-
class: F({ animated: e.value.useCssAnimation && !i(
|
|
923
|
-
}, null, 10,
|
|
924
|
-
|
|
938
|
+
class: F({ animated: e.value.useCssAnimation && !i(O) })
|
|
939
|
+
}, null, 10, El),
|
|
940
|
+
S("path", {
|
|
925
941
|
d: l.path,
|
|
926
942
|
stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
|
|
927
943
|
"stroke-width": e.value.style.chart.paths.strokeWidth,
|
|
928
944
|
fill: "none",
|
|
929
945
|
"stroke-linecap": "round",
|
|
930
946
|
"stroke-linejoin": "round",
|
|
931
|
-
class: F({ animated: e.value.useCssAnimation && !i(
|
|
932
|
-
}, null, 10,
|
|
947
|
+
class: F({ animated: e.value.useCssAnimation && !i(O) })
|
|
948
|
+
}, null, 10, Ul)
|
|
933
949
|
], 4)) : d("", !0),
|
|
934
|
-
(o(!0),
|
|
950
|
+
(o(!0), n(b, null, k(l.plots, (s) => (o(), n("circle", {
|
|
935
951
|
cx: s.x,
|
|
936
952
|
cy: s.y,
|
|
937
953
|
fill: e.value.style.chart.backgroundColor,
|
|
938
|
-
r:
|
|
954
|
+
r: r.value.plots,
|
|
939
955
|
stroke: "none"
|
|
940
|
-
}, null, 8,
|
|
941
|
-
(o(!0),
|
|
956
|
+
}, null, 8, Wl))), 256)),
|
|
957
|
+
(o(!0), n(b, null, k(l.plots, (s) => (o(), n("circle", {
|
|
942
958
|
cx: s.x,
|
|
943
959
|
cy: s.y,
|
|
944
960
|
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${u}_${L.value})` : s.color,
|
|
945
|
-
r:
|
|
961
|
+
r: r.value.plots,
|
|
946
962
|
stroke: e.value.style.chart.plots.stroke,
|
|
947
963
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
948
|
-
class: F({ animated: e.value.useCssAnimation && !i(
|
|
949
|
-
style:
|
|
964
|
+
class: F({ animated: e.value.useCssAnimation && !i(O) }),
|
|
965
|
+
style: $({
|
|
950
966
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
951
967
|
transition: "opacity 0.2s ease-in-out"
|
|
952
968
|
})
|
|
953
|
-
}, null, 14,
|
|
954
|
-
e.value.style.chart.plots.labels.show ? (o(),
|
|
955
|
-
(o(!0),
|
|
969
|
+
}, null, 14, jl))), 256)),
|
|
970
|
+
e.value.style.chart.plots.labels.show ? (o(), n("g", Gl, [
|
|
971
|
+
(o(!0), n(b, null, k(l.plots, (s) => (o(), n("g", null, [
|
|
956
972
|
String(s.label).includes(`
|
|
957
|
-
`) ? (o(),
|
|
973
|
+
`) ? (o(), n("text", {
|
|
958
974
|
key: 1,
|
|
959
975
|
x: s.x + e.value.style.chart.plots.labels.offsetX,
|
|
960
|
-
y: s.y + e.value.style.chart.plots.labels.offsetY +
|
|
961
|
-
"font-size":
|
|
976
|
+
y: s.y + e.value.style.chart.plots.labels.offsetY + r.value.plots + r.value.labels,
|
|
977
|
+
"font-size": r.value.labels,
|
|
962
978
|
fill: e.value.style.chart.plots.labels.color,
|
|
963
979
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
964
980
|
"text-anchor": "middle",
|
|
965
|
-
class: F({ animated: e.value.useCssAnimation && !i(
|
|
966
|
-
style:
|
|
981
|
+
class: F({ animated: e.value.useCssAnimation && !i(O) }),
|
|
982
|
+
style: $({
|
|
967
983
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
968
984
|
transition: "opacity 0.2s ease-in-out"
|
|
969
985
|
}),
|
|
970
|
-
innerHTML: i(
|
|
986
|
+
innerHTML: i(el)({
|
|
971
987
|
content: String(s.label),
|
|
972
|
-
fontSize:
|
|
988
|
+
fontSize: r.value.labels,
|
|
973
989
|
fill: e.value.style.chart.plots.labels.color,
|
|
974
990
|
x: s.x + e.value.style.chart.plots.labels.offsetX,
|
|
975
|
-
y: s.y + e.value.style.chart.plots.labels.offsetY +
|
|
991
|
+
y: s.y + e.value.style.chart.plots.labels.offsetY + r.value.plots + r.value.labels
|
|
976
992
|
})
|
|
977
|
-
}, null, 14,
|
|
993
|
+
}, null, 14, ql)) : (o(), n("text", {
|
|
978
994
|
key: 0,
|
|
979
995
|
x: s.x + e.value.style.chart.plots.labels.offsetX,
|
|
980
|
-
y: s.y + e.value.style.chart.plots.labels.offsetY +
|
|
981
|
-
"font-size":
|
|
996
|
+
y: s.y + e.value.style.chart.plots.labels.offsetY + r.value.plots + r.value.labels,
|
|
997
|
+
"font-size": r.value.labels,
|
|
982
998
|
fill: e.value.style.chart.plots.labels.color,
|
|
983
999
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
984
1000
|
"text-anchor": "middle",
|
|
985
|
-
class: F({ animated: e.value.useCssAnimation && !i(
|
|
986
|
-
style:
|
|
1001
|
+
class: F({ animated: e.value.useCssAnimation && !i(O) }),
|
|
1002
|
+
style: $({
|
|
987
1003
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
988
1004
|
transition: "opacity 0.2s ease-in-out"
|
|
989
1005
|
})
|
|
990
|
-
},
|
|
1006
|
+
}, M(s.label), 15, Vl))
|
|
991
1007
|
]))), 256))
|
|
992
1008
|
])) : d("", !0),
|
|
993
|
-
e.value.style.chart.plots.indexLabels.show ? (o(),
|
|
994
|
-
(o(!0),
|
|
1009
|
+
e.value.style.chart.plots.indexLabels.show ? (o(), n("g", Jl, [
|
|
1010
|
+
(o(!0), n(b, null, k(l.plots, (s, w) => (o(), n("text", {
|
|
995
1011
|
x: s.x + e.value.style.chart.plots.indexLabels.offsetX,
|
|
996
|
-
y: s.y + e.value.style.chart.plots.indexLabels.offsetY +
|
|
997
|
-
"font-size":
|
|
1012
|
+
y: s.y + e.value.style.chart.plots.indexLabels.offsetY + r.value.indexLabels / 3,
|
|
1013
|
+
"font-size": r.value.indexLabels,
|
|
998
1014
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
999
|
-
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(
|
|
1015
|
+
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(tl)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
1000
1016
|
"text-anchor": "middle",
|
|
1001
|
-
class: F({ animated: e.value.useCssAnimation && !i(
|
|
1002
|
-
style:
|
|
1017
|
+
class: F({ animated: e.value.useCssAnimation && !i(O) }),
|
|
1018
|
+
style: $({
|
|
1003
1019
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
1004
1020
|
transition: "opacity 0.2s ease-in-out"
|
|
1005
1021
|
})
|
|
1006
|
-
},
|
|
1022
|
+
}, M(e.value.style.chart.plots.indexLabels.startAtZero ? w : w + 1), 15, Ql))), 256))
|
|
1007
1023
|
])) : d("", !0)
|
|
1008
1024
|
]))), 256)),
|
|
1009
|
-
(o(!0),
|
|
1010
|
-
(o(!0),
|
|
1025
|
+
(o(!0), n(b, null, k(P.value, (l) => (o(), n("g", null, [
|
|
1026
|
+
(o(!0), n(b, null, k(l.plots, (u, s) => (o(), n("circle", {
|
|
1011
1027
|
cx: u.x,
|
|
1012
1028
|
cy: u.y,
|
|
1013
1029
|
fill: "transparent",
|
|
1014
|
-
r:
|
|
1030
|
+
r: r.value.plots,
|
|
1015
1031
|
stroke: "none",
|
|
1016
|
-
onMouseenter: (
|
|
1032
|
+
onMouseenter: (w) => Lt({
|
|
1017
1033
|
datapoint: u,
|
|
1018
1034
|
plotIndex: s,
|
|
1019
1035
|
seriesIndex: l.seriesIndex
|
|
1020
1036
|
}),
|
|
1021
|
-
onMouseleave: (
|
|
1037
|
+
onMouseleave: (w) => Tt({
|
|
1022
1038
|
datapoint: u,
|
|
1023
1039
|
plotIndex: s,
|
|
1024
1040
|
seriesIndex: l.seriesIndex
|
|
1025
1041
|
}),
|
|
1026
|
-
onClick: (
|
|
1042
|
+
onClick: (w) => $t({
|
|
1027
1043
|
datapoint: u,
|
|
1028
1044
|
plotIndex: s,
|
|
1029
1045
|
seriesIndex: l.seriesIndex
|
|
1030
1046
|
})
|
|
1031
|
-
}, null, 40,
|
|
1047
|
+
}, null, 40, Zl))), 256))
|
|
1032
1048
|
]))), 256)),
|
|
1033
1049
|
p(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1034
|
-
], 12,
|
|
1035
|
-
t.$slots.watermark ? (o(),
|
|
1036
|
-
p(t.$slots, "watermark", R(B({ isPrinting: i(
|
|
1050
|
+
], 12, wl)),
|
|
1051
|
+
t.$slots.watermark ? (o(), n("div", Kl, [
|
|
1052
|
+
p(t.$slots, "watermark", R(B({ isPrinting: i(ze) || i(Oe) })), void 0, !0)
|
|
1037
1053
|
])) : d("", !0),
|
|
1038
|
-
|
|
1054
|
+
S("div", {
|
|
1039
1055
|
id: `legend-bottom-${L.value}`
|
|
1040
|
-
}, null, 8,
|
|
1041
|
-
|
|
1056
|
+
}, null, 8, ea),
|
|
1057
|
+
Se.value ? (o(), N(Et, {
|
|
1042
1058
|
key: 5,
|
|
1043
1059
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${L.value}` : `#legend-bottom-${L.value}`
|
|
1044
1060
|
}, [
|
|
1045
|
-
|
|
1061
|
+
S("div", {
|
|
1046
1062
|
ref_key: "chartLegend",
|
|
1047
|
-
ref:
|
|
1063
|
+
ref: me
|
|
1048
1064
|
}, [
|
|
1049
|
-
e.value.style.chart.legend.show && V.value ? (o(),
|
|
1050
|
-
key: `legend_${
|
|
1051
|
-
legendSet:
|
|
1052
|
-
config:
|
|
1065
|
+
e.value.style.chart.legend.show && V.value ? (o(), N(gl, {
|
|
1066
|
+
key: `legend_${be.value}`,
|
|
1067
|
+
legendSet: he.value,
|
|
1068
|
+
config: _t.value,
|
|
1053
1069
|
onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
|
|
1054
|
-
|
|
1070
|
+
q(l.seriesIndex), Xe(l);
|
|
1055
1071
|
})
|
|
1056
1072
|
}, {
|
|
1057
1073
|
item: g(({ legend: l, index: u }) => [
|
|
1058
|
-
|
|
1074
|
+
S("div", {
|
|
1059
1075
|
onClick: (s) => {
|
|
1060
|
-
l.segregate(),
|
|
1076
|
+
l.segregate(), Xe(l);
|
|
1061
1077
|
},
|
|
1062
|
-
style:
|
|
1063
|
-
},
|
|
1078
|
+
style: $(`opacity:${m.value.includes(l.seriesIndex) ? 0.5 : 1}`)
|
|
1079
|
+
}, M(l.name), 13, ta)
|
|
1064
1080
|
]),
|
|
1065
1081
|
_: 1
|
|
1066
1082
|
}, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
1067
1083
|
key: 1,
|
|
1068
|
-
legend:
|
|
1084
|
+
legend: he.value
|
|
1069
1085
|
}, void 0, !0)
|
|
1070
1086
|
], 512)
|
|
1071
1087
|
], 8, ["to"])) : d("", !0),
|
|
1072
|
-
t.$slots.source ? (o(),
|
|
1088
|
+
t.$slots.source ? (o(), n("div", {
|
|
1073
1089
|
key: 6,
|
|
1074
1090
|
ref_key: "source",
|
|
1075
|
-
ref:
|
|
1091
|
+
ref: Ae,
|
|
1076
1092
|
dir: "auto"
|
|
1077
1093
|
}, [
|
|
1078
1094
|
p(t.$slots, "source", {}, void 0, !0)
|
|
1079
1095
|
], 512)) : d("", !0),
|
|
1080
|
-
|
|
1081
|
-
show: C.value.showTooltip &&
|
|
1096
|
+
xe(i(lt), {
|
|
1097
|
+
show: C.value.showTooltip && le.value,
|
|
1082
1098
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1083
1099
|
color: e.value.style.chart.tooltip.color,
|
|
1084
1100
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1088,47 +1104,47 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
1088
1104
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1089
1105
|
position: e.value.style.chart.tooltip.position,
|
|
1090
1106
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1091
|
-
parent:
|
|
1092
|
-
content:
|
|
1093
|
-
isCustom:
|
|
1094
|
-
isFullscreen:
|
|
1107
|
+
parent: T.value,
|
|
1108
|
+
content: ae.value,
|
|
1109
|
+
isCustom: U.value,
|
|
1110
|
+
isFullscreen: E.value,
|
|
1095
1111
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1096
1112
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1097
1113
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1098
1114
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1099
1115
|
}, {
|
|
1100
1116
|
"tooltip-before": g(() => [
|
|
1101
|
-
p(t.$slots, "tooltip-before", R(B({ ...
|
|
1117
|
+
p(t.$slots, "tooltip-before", R(B({ ...de.value })), void 0, !0)
|
|
1102
1118
|
]),
|
|
1103
1119
|
"tooltip-after": g(() => [
|
|
1104
|
-
p(t.$slots, "tooltip-after", R(B({ ...
|
|
1120
|
+
p(t.$slots, "tooltip-after", R(B({ ...de.value })), void 0, !0)
|
|
1105
1121
|
]),
|
|
1106
1122
|
_: 3
|
|
1107
1123
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1108
|
-
V.value && e.value.userOptions.buttons.table ? (o(),
|
|
1124
|
+
V.value && e.value.userOptions.buttons.table ? (o(), N(Ut(j.value.component), Wt({ key: 7 }, j.value.props, {
|
|
1109
1125
|
ref_key: "tableUnit",
|
|
1110
|
-
ref:
|
|
1111
|
-
onClose:
|
|
1126
|
+
ref: W,
|
|
1127
|
+
onClose: He
|
|
1112
1128
|
}), We({
|
|
1113
1129
|
content: g(() => [
|
|
1114
|
-
(o(),
|
|
1115
|
-
key: `table_${
|
|
1116
|
-
colNames:
|
|
1117
|
-
head:
|
|
1118
|
-
body:
|
|
1119
|
-
config:
|
|
1130
|
+
(o(), N(i(ot), {
|
|
1131
|
+
key: `table_${ke.value}`,
|
|
1132
|
+
colNames: J.value.colNames,
|
|
1133
|
+
head: J.value.head,
|
|
1134
|
+
body: J.value.body,
|
|
1135
|
+
config: J.value.config,
|
|
1120
1136
|
title: e.value.table.useDialog ? "" : j.value.title,
|
|
1121
1137
|
withCloseButton: !e.value.table.useDialog,
|
|
1122
|
-
onClose:
|
|
1138
|
+
onClose: He
|
|
1123
1139
|
}, {
|
|
1124
1140
|
th: g(({ th: l }) => [
|
|
1125
|
-
|
|
1141
|
+
S("div", {
|
|
1126
1142
|
innerHTML: l,
|
|
1127
1143
|
style: { display: "flex", "align-items": "center" }
|
|
1128
|
-
}, null, 8,
|
|
1144
|
+
}, null, 8, la)
|
|
1129
1145
|
]),
|
|
1130
1146
|
td: g(({ td: l }) => [
|
|
1131
|
-
|
|
1147
|
+
je(M(l.name || l), 1)
|
|
1132
1148
|
]),
|
|
1133
1149
|
_: 1
|
|
1134
1150
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1138,19 +1154,19 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
1138
1154
|
e.value.table.useDialog ? {
|
|
1139
1155
|
name: "title",
|
|
1140
1156
|
fn: g(() => [
|
|
1141
|
-
|
|
1157
|
+
je(M(j.value.title), 1)
|
|
1142
1158
|
]),
|
|
1143
1159
|
key: "0"
|
|
1144
1160
|
} : void 0,
|
|
1145
1161
|
e.value.table.useDialog ? {
|
|
1146
1162
|
name: "actions",
|
|
1147
1163
|
fn: g(() => [
|
|
1148
|
-
|
|
1164
|
+
S("button", {
|
|
1149
1165
|
tabindex: "0",
|
|
1150
1166
|
class: "vue-ui-user-options-button",
|
|
1151
|
-
onClick: a[1] || (a[1] = (l) =>
|
|
1167
|
+
onClick: a[1] || (a[1] = (l) => ye(e.value.userOptions.callbacks.csv))
|
|
1152
1168
|
}, [
|
|
1153
|
-
|
|
1169
|
+
xe(i(at), {
|
|
1154
1170
|
name: "excel",
|
|
1155
1171
|
stroke: j.value.props.color
|
|
1156
1172
|
}, null, 8, ["stroke"])
|
|
@@ -1159,10 +1175,10 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "widt
|
|
|
1159
1175
|
key: "1"
|
|
1160
1176
|
} : void 0
|
|
1161
1177
|
]), 1040)) : d("", !0),
|
|
1162
|
-
i(
|
|
1163
|
-
], 46,
|
|
1178
|
+
i(O) ? (o(), N(il, { key: 8 })) : d("", !0)
|
|
1179
|
+
], 46, bl));
|
|
1164
1180
|
}
|
|
1165
|
-
},
|
|
1181
|
+
}, ma = /* @__PURE__ */ ml(aa, [["__scopeId", "data-v-234b2fb3"]]);
|
|
1166
1182
|
export {
|
|
1167
|
-
|
|
1183
|
+
ma as default
|
|
1168
1184
|
};
|