vue-data-ui 2.17.0 → 2.17.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 +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-Cde-wJ3N.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +63 -160
- package/dist/types/vue-data-ui.d.ts +63 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-D7ZgRDQ_.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-ORUAjkg7.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-Yl4aRpNc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-C307lCPt.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-BE6PcEdh.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CUw74AgC.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-CCPGeAiY.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-dfyPiQmy.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-CKa7nFjt.js → vue-ui-donut-D41WeqQU.js} +244 -243
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-Deg0dsYg.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-DDwNoTPG.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-6oR7IMyi.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BnXtOJmh.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-75XC8SpV.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-w31j915C.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-BfU62tMW.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-CFfco-Yj.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-Tdk3Gd8M.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-Dg5wS7W5.js} +126 -119
- package/dist/{vue-ui-nested-donuts-D0RgFifU.js → vue-ui-nested-donuts-CpRe0sQB.js} +244 -244
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-B8o4ft2v.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-DiRtZ16w.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-BRlYC_yT.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-DKgX1Ibx.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-MHiAp8dC.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-DA8verAe.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-Dh6lFqun.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-CLC5sTOi.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-C6rjCYDD.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-B6cYojHQ.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-D-oiVT3n.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-B1bM9Aoo.js} +127 -120
- package/dist/vue-ui-treemap-DX48YlU5.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-6SjKPQWR.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-CYao9MMw.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-USuDhMwW.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-TOBTs7yF.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-C2qikqBa.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-DxwgKoO-.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-N69OpVn8.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as O, ref as h, shallowRef as Se, computed as f, onMounted as lt, onBeforeUnmount as at, watch as st, createElementBlock as r, openBlock as o, unref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as Le } from "./useNestedProp-
|
|
4
|
-
import { u as Ct } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as O, ref as h, shallowRef as Se, computed as f, onMounted as lt, onBeforeUnmount as at, watch as st, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as $, normalizeClass as I, renderSlot as x, createBlock as P, createCommentVNode as v, createElementVNode as T, createVNode as Ae, createSlots as ot, withCtx as m, normalizeProps as Y, guardReactiveProps as D, Fragment as b, renderList as k, toDisplayString as L, createTextVNode as rt, nextTick as nt } from "vue";
|
|
2
|
+
import { u as it, c as Me, o as ut, e as ze, g as ct, b as vt, d as ht, p as G, D as Te, i as j, f as R, X as yt, l as dt, h as ft, I as xt, F as pt, E as F, t as mt, a as gt, C as q, q as bt, r as kt, x as wt } from "./index-CobsZUkv.js";
|
|
3
|
+
import { u as Le } from "./useNestedProp-BwL5wmVa.js";
|
|
4
|
+
import { u as Ct } from "./usePrinter-DPh6U_Qk.js";
|
|
5
5
|
import { t as _t, u as $t } from "./useResponsive-DfdjqQps.js";
|
|
6
6
|
import { u as St } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as At } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Mt from "./Legend-
|
|
9
|
-
import zt from "./Title-
|
|
10
|
-
import Tt from "./img-
|
|
8
|
+
import Mt from "./Legend-3LNqqLDg.js";
|
|
9
|
+
import zt from "./Title-DpERl1yr.js";
|
|
10
|
+
import Tt from "./img-utitT2Gd.js";
|
|
11
11
|
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"], Pt = { key: 1 }, Ft = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], Dt = ["stop-color"], jt = { key: 2 },
|
|
12
|
+
const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"], Pt = { key: 1 }, Ft = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], Dt = ["stop-color"], jt = { key: 2 }, Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = { key: 3 }, Et = ["x", "y", "fill", "font-size"], Ht = ["transform", "font-size", "fill", "font-weight"], Ut = { key: 5 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = { key: 6 }, Gt = ["transform", "fill", "font-size", "text-anchor"], qt = ["x", "y", "font-size", "fill", "font-weight"], Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = ["d", "stroke", "stroke-width"], Qt = ["d", "stroke", "stroke-width"], el = ["cx", "cy", "fill", "r"], tl = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], ll = { key: 1 }, al = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], ol = { key: 2 }, rl = ["x", "y", "font-size", "font-weight", "fill"], nl = ["cx", "cy", "r", "onMouseenter", "onClick"], il = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, ul = ["onClick"], cl = ["innerHTML"], vl = {
|
|
16
16
|
__name: "vue-ui-history-plot",
|
|
17
17
|
props: {
|
|
18
18
|
config: {
|
|
@@ -30,13 +30,13 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectLegend", "selectDatapoint"],
|
|
32
32
|
setup(Ne, { expose: Oe, emit: Ie }) {
|
|
33
|
-
const Pe = O(() => import("./vue-ui-accordion-
|
|
33
|
+
const Pe = O(() => import("./vue-ui-accordion-UewqY6OI.js")), Fe = O(() => import("./DataTable-Dt-TIOyY.js")), Xe = O(() => import("./PackageVersion-C-4Ee8BQ.js")), Ye = O(() => import("./PenAndPaper-Cde-wJ3N.js")), De = O(() => import("./vue-ui-skeleton-8s4xts8z.js")), je = O(() => import("./Tooltip-DA0bYKFG.js")), Re = O(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_history_plot: Be } = it(), y = Ne, A = h(null), te = h(null), le = h(0), ae = h(null), se = h(0), oe = h(0), re = h(0), M = Se(null), X = Se(null), ne = h(null), B = h(Me()), Z = h(!1), J = h(""), g = h([]), H = h(!1), w = h(null), E = h(!1), ie = h(null), C = f({
|
|
34
34
|
get: () => !!y.dataset && y.dataset.length,
|
|
35
35
|
set: (t) => t
|
|
36
|
-
}),
|
|
36
|
+
}), ue = Ie;
|
|
37
37
|
lt(ce);
|
|
38
38
|
function ce() {
|
|
39
|
-
if (
|
|
39
|
+
if (ut(y.dataset) ? ze({
|
|
40
40
|
componentName: "VueUiHistoryPlot",
|
|
41
41
|
type: "dataset"
|
|
42
42
|
}) : y.dataset.forEach((t, a) => {
|
|
@@ -54,11 +54,11 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
54
54
|
}), e.value.responsive) {
|
|
55
55
|
const t = _t(() => {
|
|
56
56
|
const { width: a, height: l } = $t({
|
|
57
|
-
chart:
|
|
57
|
+
chart: A.value,
|
|
58
58
|
title: e.value.style.chart.title.text ? te.value : null,
|
|
59
59
|
noTitle: ne.value,
|
|
60
60
|
legend: e.value.style.chart.legend.show ? ae.value : null,
|
|
61
|
-
source:
|
|
61
|
+
source: ie.value
|
|
62
62
|
});
|
|
63
63
|
requestAnimationFrame(() => {
|
|
64
64
|
d.value.width = a, d.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = F({
|
|
@@ -106,16 +106,16 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
106
106
|
})) : (n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
|
-
|
|
109
|
+
M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect()), M.value = new ResizeObserver(t), X.value = A.value.parentNode, M.value.observe(X.value);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
at(() => {
|
|
113
|
-
|
|
113
|
+
M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect());
|
|
114
114
|
});
|
|
115
115
|
function ve() {
|
|
116
116
|
const t = Le({
|
|
117
117
|
userConfig: y.config,
|
|
118
|
-
defaultConfig:
|
|
118
|
+
defaultConfig: Be
|
|
119
119
|
});
|
|
120
120
|
let a = {};
|
|
121
121
|
return t.theme ? a = {
|
|
@@ -134,16 +134,16 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
134
134
|
e.value = ve(), K.value = !e.value.userOptions.showOnChartHover, ce(), le.value += 1, oe.value += 1, se.value += 1, d.value.height = e.value.style.chart.height, d.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
135
135
|
}, { deep: !0 });
|
|
136
136
|
const { isPrinting: fe, isImaging: xe, generatePdf: pe, generateImage: me } = Ct({
|
|
137
|
-
elementId: `history_plot_${
|
|
137
|
+
elementId: `history_plot_${B.value}`,
|
|
138
138
|
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
139
139
|
options: e.value.userOptions.print
|
|
140
|
-
}),
|
|
140
|
+
}), Ee = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), He = f(() => vt(e.value.customPalette)), _ = h({
|
|
141
141
|
showTable: e.value.table.show,
|
|
142
142
|
showTooltip: e.value.style.chart.tooltip.show
|
|
143
143
|
}), d = h({
|
|
144
144
|
height: e.value.style.chart.height,
|
|
145
145
|
width: e.value.style.chart.width
|
|
146
|
-
}),
|
|
146
|
+
}), i = f(() => {
|
|
147
147
|
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top;
|
|
148
148
|
return {
|
|
149
149
|
left: t,
|
|
@@ -161,17 +161,17 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
161
161
|
xAxisName: e.value.style.chart.axes.x.name.fontSize,
|
|
162
162
|
yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
|
|
163
163
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
164
|
-
}),
|
|
164
|
+
}), z = f(() => C.value ? y.dataset.map((t, a) => ({
|
|
165
165
|
...t,
|
|
166
|
-
color: t.color ? ht(t.color) :
|
|
166
|
+
color: t.color ? ht(t.color) : He.value[a] || G[a] || G[a % G.length],
|
|
167
167
|
seriesIndex: a
|
|
168
|
-
})) : []), Ue = f(() => C.value ? Math.max(...
|
|
168
|
+
})) : []), Ue = f(() => C.value ? Math.max(...z.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), We = f(() => {
|
|
169
169
|
if (!C.value) return 1;
|
|
170
|
-
const t = Math.min(...
|
|
170
|
+
const t = Math.min(...z.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
171
171
|
return t < 0 ? t : 0;
|
|
172
|
-
}), Ve = f(() => C.value ? Math.max(...
|
|
172
|
+
}), Ve = f(() => C.value ? Math.max(...z.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1), Ge = f(() => {
|
|
173
173
|
if (!C.value) return 1;
|
|
174
|
-
const t = Math.min(...
|
|
174
|
+
const t = Math.min(...z.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
175
175
|
return t < 0 ? t : 0;
|
|
176
176
|
}), p = f(() => {
|
|
177
177
|
const t = Te(
|
|
@@ -187,29 +187,29 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
187
187
|
x: t,
|
|
188
188
|
y: a,
|
|
189
189
|
tickX: t.ticks.map((l) => ({
|
|
190
|
-
x:
|
|
191
|
-
y1:
|
|
192
|
-
y2:
|
|
190
|
+
x: i.value.left + (l - t.min) / (t.max - t.min) * i.value.width,
|
|
191
|
+
y1: i.value.top,
|
|
192
|
+
y2: i.value.bottom,
|
|
193
193
|
value: l
|
|
194
194
|
})),
|
|
195
195
|
tickY: a.ticks.map((l) => ({
|
|
196
|
-
y:
|
|
197
|
-
x1:
|
|
198
|
-
x2:
|
|
196
|
+
y: i.value.bottom - (l - a.min) / (a.max - a.min) * i.value.height,
|
|
197
|
+
x1: i.value.left,
|
|
198
|
+
x2: i.value.right,
|
|
199
199
|
value: l
|
|
200
200
|
}))
|
|
201
201
|
};
|
|
202
202
|
});
|
|
203
203
|
function qe(t) {
|
|
204
204
|
const a = p.value.x.min < 0 ? Math.abs(p.value.x.min) : p.value.x.min > 0 ? -p.value.x.min : 0;
|
|
205
|
-
return
|
|
205
|
+
return i.value.left + ((t || 0) + a) / (p.value.x.max + a) * i.value.width;
|
|
206
206
|
}
|
|
207
207
|
function Ze(t) {
|
|
208
208
|
const a = p.value.y.min < 0 ? Math.abs(p.value.y.min) : p.value.y.min > 0 ? -p.value.y.min : 0;
|
|
209
|
-
return
|
|
209
|
+
return i.value.bottom - ((t || 0) + a) / (p.value.y.max + a) * i.value.height;
|
|
210
210
|
}
|
|
211
|
-
const
|
|
212
|
-
const l = t.values.map((s,
|
|
211
|
+
const N = f(() => z.value.filter((t) => !g.value.includes(t.seriesIndex)).map((t, a) => {
|
|
212
|
+
const l = t.values.map((s, S) => ({
|
|
213
213
|
valueX: s.x,
|
|
214
214
|
valueY: s.y,
|
|
215
215
|
label: s.label,
|
|
@@ -228,7 +228,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
228
228
|
function ge(t) {
|
|
229
229
|
g.value.includes(t) ? g.value = g.value.filter((a) => a !== t) : g.value.push(t);
|
|
230
230
|
}
|
|
231
|
-
const be = f(() =>
|
|
231
|
+
const be = f(() => z.value.map((t) => ({
|
|
232
232
|
...t,
|
|
233
233
|
opacity: g.value.includes(t.seriesIndex) ? 0.5 : 1,
|
|
234
234
|
segregate: () => ge(t.seriesIndex),
|
|
@@ -243,41 +243,41 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
243
243
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
244
244
|
}));
|
|
245
245
|
function Ke(t) {
|
|
246
|
-
|
|
246
|
+
ue("selectDatapoint", t);
|
|
247
247
|
}
|
|
248
248
|
function ke(t) {
|
|
249
|
-
|
|
249
|
+
ue("selectLegend", {
|
|
250
250
|
...t,
|
|
251
251
|
isSegregated: !t.isSegregated,
|
|
252
252
|
opacity: t.isSegregated ? 1 : 0.5
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
function we(t) {
|
|
256
|
-
|
|
256
|
+
H.value = t, re.value += 1;
|
|
257
257
|
}
|
|
258
258
|
const Q = h(null);
|
|
259
259
|
function Qe({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
260
|
-
Q.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series:
|
|
260
|
+
Q.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: z.value }, w.value = t;
|
|
261
261
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
262
|
-
if (
|
|
262
|
+
if (E.value = !1, wt(c))
|
|
263
263
|
try {
|
|
264
264
|
const s = c({
|
|
265
265
|
seriesIndex: l,
|
|
266
266
|
datapoint: t,
|
|
267
267
|
plotIndex: a,
|
|
268
|
-
series:
|
|
268
|
+
series: z.value,
|
|
269
269
|
config: e.value
|
|
270
270
|
});
|
|
271
|
-
typeof s == "string" && (J.value = s,
|
|
271
|
+
typeof s == "string" && (J.value = s, E.value = !0);
|
|
272
272
|
} catch {
|
|
273
|
-
console.warn("Custom format cannot be applied."),
|
|
273
|
+
console.warn("Custom format cannot be applied."), E.value = !1;
|
|
274
274
|
}
|
|
275
|
-
if (!
|
|
275
|
+
if (!E.value) {
|
|
276
276
|
let s = "";
|
|
277
277
|
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"}: ${j(
|
|
278
278
|
e.value.style.chart.axes.x.labels.formatter,
|
|
279
279
|
t.valueX,
|
|
280
|
-
|
|
280
|
+
R({
|
|
281
281
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
282
282
|
v: t.valueX,
|
|
283
283
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
@@ -286,7 +286,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
286
286
|
)}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${j(
|
|
287
287
|
e.value.style.chart.axes.y.labels.formatter,
|
|
288
288
|
t.valueY,
|
|
289
|
-
|
|
289
|
+
R({
|
|
290
290
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
291
291
|
v: t.valueY,
|
|
292
292
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
@@ -296,7 +296,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
296
296
|
}
|
|
297
297
|
Z.value = !0;
|
|
298
298
|
}
|
|
299
|
-
f(() => ({ head:
|
|
299
|
+
f(() => ({ head: N.value.map((a) => ({
|
|
300
300
|
name: a.name,
|
|
301
301
|
color: a.color
|
|
302
302
|
})) }));
|
|
@@ -306,7 +306,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
306
306
|
e.value.table.columnNames.datapoint,
|
|
307
307
|
e.value.table.columnNames.x,
|
|
308
308
|
e.value.table.columnNames.y
|
|
309
|
-
], a =
|
|
309
|
+
], a = N.value.flatMap((c) => c.plots.map((s) => [
|
|
310
310
|
{
|
|
311
311
|
color: s.color,
|
|
312
312
|
name: s.seriesName
|
|
@@ -315,7 +315,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
315
315
|
j(
|
|
316
316
|
e.value.style.chart.axes.x.labels.formatter,
|
|
317
317
|
s.valueX,
|
|
318
|
-
|
|
318
|
+
R({
|
|
319
319
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
320
320
|
v: s.valueX,
|
|
321
321
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
@@ -325,7 +325,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
325
325
|
j(
|
|
326
326
|
e.value.style.chart.axes.y.labels.formatter,
|
|
327
327
|
s.valueY,
|
|
328
|
-
|
|
328
|
+
R({
|
|
329
329
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
330
330
|
v: s.valueY,
|
|
331
331
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
@@ -359,7 +359,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
359
359
|
[e.value.table.columnNames.datapoint],
|
|
360
360
|
[e.value.table.columnNames.x],
|
|
361
361
|
[e.value.table.columnNames.y]
|
|
362
|
-
], l =
|
|
362
|
+
], l = N.value.flatMap((S) => S.plots.map((V) => [
|
|
363
363
|
[V.seriesName],
|
|
364
364
|
[V.label],
|
|
365
365
|
[V.valueX],
|
|
@@ -386,12 +386,19 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
386
386
|
_.value.showTooltip = !_.value.showTooltip;
|
|
387
387
|
}
|
|
388
388
|
function et() {
|
|
389
|
-
return
|
|
389
|
+
return N.value;
|
|
390
390
|
}
|
|
391
391
|
async function tt({ scale: t = 2 } = {}) {
|
|
392
|
-
if (!
|
|
393
|
-
const {
|
|
394
|
-
return {
|
|
392
|
+
if (!A.value) return;
|
|
393
|
+
const { width: a, height: l } = A.value.getBoundingClientRect(), c = a / l, { imageUri: s, base64: S } = await Tt({ domElement: A.value, base64: !0, img: !0, scale: t });
|
|
394
|
+
return {
|
|
395
|
+
imageUri: s,
|
|
396
|
+
base64: S,
|
|
397
|
+
title: e.value.style.chart.title.text,
|
|
398
|
+
width: a,
|
|
399
|
+
height: l,
|
|
400
|
+
aspectRatio: c
|
|
401
|
+
};
|
|
395
402
|
}
|
|
396
403
|
return Oe({
|
|
397
404
|
getData: et,
|
|
@@ -404,24 +411,24 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
404
411
|
toggleAnnotator: ee,
|
|
405
412
|
toggleFullscreen: we
|
|
406
413
|
}), (t, a) => (o(), r("div", {
|
|
407
|
-
id: `history_plot_${
|
|
414
|
+
id: `history_plot_${B.value}`,
|
|
408
415
|
ref_key: "historyPlotChart",
|
|
409
|
-
ref:
|
|
410
|
-
class: I({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen":
|
|
416
|
+
ref: A,
|
|
417
|
+
class: I({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": H.value }),
|
|
411
418
|
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%" : ""}`),
|
|
412
|
-
onMouseenter: a[3] || (a[3] = () =>
|
|
413
|
-
onMouseleave: a[4] || (a[4] = () =>
|
|
419
|
+
onMouseenter: a[3] || (a[3] = () => u(he)(!0)),
|
|
420
|
+
onMouseleave: a[4] || (a[4] = () => u(he)(!1))
|
|
414
421
|
}, [
|
|
415
422
|
x(t.$slots, "userConfig", {}, void 0, !0),
|
|
416
|
-
e.value.userOptions.buttons.annotator ? (o(), P(
|
|
423
|
+
e.value.userOptions.buttons.annotator ? (o(), P(u(Ye), {
|
|
417
424
|
key: 0,
|
|
418
|
-
svgRef:
|
|
425
|
+
svgRef: u(de),
|
|
419
426
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
420
427
|
color: e.value.style.chart.color,
|
|
421
428
|
active: W.value,
|
|
422
429
|
onClose: ee
|
|
423
430
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
424
|
-
|
|
431
|
+
Ee.value ? (o(), r("div", {
|
|
425
432
|
key: 1,
|
|
426
433
|
ref_key: "noTitle",
|
|
427
434
|
ref: ne,
|
|
@@ -449,14 +456,14 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
449
456
|
}
|
|
450
457
|
}, null, 8, ["config"]))
|
|
451
458
|
], 4)) : v("", !0),
|
|
452
|
-
e.value.userOptions.show && C.value && (
|
|
459
|
+
e.value.userOptions.show && C.value && (u(ye) || u(K)) ? (o(), P(u(Re), {
|
|
453
460
|
ref: "details",
|
|
454
461
|
key: `user_option_${re.value}`,
|
|
455
462
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
456
463
|
color: e.value.style.chart.color,
|
|
457
|
-
isPrinting:
|
|
458
|
-
isImaging:
|
|
459
|
-
uid:
|
|
464
|
+
isPrinting: u(fe),
|
|
465
|
+
isImaging: u(xe),
|
|
466
|
+
uid: B.value,
|
|
460
467
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
461
468
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
462
469
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -464,8 +471,8 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
464
471
|
hasTable: e.value.userOptions.buttons.table,
|
|
465
472
|
hasLabel: !1,
|
|
466
473
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
467
|
-
isFullscreen:
|
|
468
|
-
chartElement:
|
|
474
|
+
isFullscreen: H.value,
|
|
475
|
+
chartElement: A.value,
|
|
469
476
|
position: e.value.userOptions.position,
|
|
470
477
|
isTooltip: _.value.showTooltip,
|
|
471
478
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
@@ -474,14 +481,14 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
474
481
|
callbacks: e.value.userOptions.callbacks,
|
|
475
482
|
printScale: e.value.userOptions.print.scale,
|
|
476
483
|
onToggleFullscreen: we,
|
|
477
|
-
onGeneratePdf:
|
|
484
|
+
onGeneratePdf: u(pe),
|
|
478
485
|
onGenerateCsv: Ce,
|
|
479
|
-
onGenerateImage:
|
|
486
|
+
onGenerateImage: u(me),
|
|
480
487
|
onToggleTable: _e,
|
|
481
488
|
onToggleTooltip: $e,
|
|
482
489
|
onToggleAnnotator: ee,
|
|
483
490
|
style: $({
|
|
484
|
-
visibility:
|
|
491
|
+
visibility: u(ye) ? u(K) ? "visible" : "hidden" : "visible"
|
|
485
492
|
})
|
|
486
493
|
}, ot({ _: 2 }, [
|
|
487
494
|
t.$slots.menuIcon ? {
|
|
@@ -545,17 +552,17 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
545
552
|
key: 4,
|
|
546
553
|
ref_key: "svgRef",
|
|
547
554
|
ref: de,
|
|
548
|
-
xmlns:
|
|
555
|
+
xmlns: u(yt),
|
|
549
556
|
viewBox: `0 0 ${d.value.width < 0 ? 0.1 : d.value.width} ${d.value.height < 0 ? 0.1 : d.value.height}`,
|
|
550
557
|
style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
551
558
|
}, [
|
|
552
|
-
Ae(
|
|
559
|
+
Ae(u(Xe)),
|
|
553
560
|
t.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
554
561
|
key: 0,
|
|
555
|
-
x:
|
|
556
|
-
y:
|
|
557
|
-
width:
|
|
558
|
-
height:
|
|
562
|
+
x: i.value.left,
|
|
563
|
+
y: i.value.top,
|
|
564
|
+
width: i.value.width <= 0 ? 10 : i.value.width,
|
|
565
|
+
height: i.value.height <= 0 ? 10 : i.value.height,
|
|
559
566
|
style: {
|
|
560
567
|
pointerEvents: "none"
|
|
561
568
|
}
|
|
@@ -563,19 +570,19 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
563
570
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
564
571
|
], 8, It)) : v("", !0),
|
|
565
572
|
e.value.style.chart.plots.gradient.show ? (o(), r("defs", Pt, [
|
|
566
|
-
(o(!0), r(b, null, k(
|
|
567
|
-
id: `gradient_${c}_${
|
|
573
|
+
(o(!0), r(b, null, k(N.value, (l, c) => (o(), r("radialGradient", {
|
|
574
|
+
id: `gradient_${c}_${B.value}`,
|
|
568
575
|
fy: "30%"
|
|
569
576
|
}, [
|
|
570
|
-
|
|
577
|
+
T("stop", {
|
|
571
578
|
offset: "10%",
|
|
572
|
-
"stop-color":
|
|
579
|
+
"stop-color": u(dt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
573
580
|
}, null, 8, Xt),
|
|
574
|
-
|
|
581
|
+
T("stop", {
|
|
575
582
|
offset: "90%",
|
|
576
|
-
"stop-color":
|
|
583
|
+
"stop-color": u(ft)(l.color, 0.1)
|
|
577
584
|
}, null, 8, Yt),
|
|
578
|
-
|
|
585
|
+
T("stop", {
|
|
579
586
|
offset: "100%",
|
|
580
587
|
"stop-color": l.color
|
|
581
588
|
}, null, 8, Dt)
|
|
@@ -590,25 +597,25 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
590
597
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
591
598
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
592
599
|
"stroke-linecap": "round"
|
|
593
|
-
}, null, 8,
|
|
600
|
+
}, null, 8, Rt))), 256))
|
|
594
601
|
])) : v("", !0),
|
|
595
|
-
e.value.style.chart.axes.y.labels.show ? (o(), r("g",
|
|
602
|
+
e.value.style.chart.axes.y.labels.show ? (o(), r("g", Bt, [
|
|
596
603
|
(o(!0), r(b, null, k(p.value.tickY, (l) => (o(), r("text", {
|
|
597
|
-
x:
|
|
604
|
+
x: i.value.left + e.value.style.chart.axes.y.labels.offsetX - 4,
|
|
598
605
|
y: l.y + n.value.yAxisLabels / 3,
|
|
599
606
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
600
607
|
"font-size": n.value.yAxisLabels,
|
|
601
608
|
"text-anchor": "end"
|
|
602
|
-
},
|
|
609
|
+
}, L(u(j)(
|
|
603
610
|
e.value.style.chart.axes.y.labels.formatter,
|
|
604
611
|
l.value,
|
|
605
|
-
|
|
612
|
+
u(R)({
|
|
606
613
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
607
614
|
v: l.value,
|
|
608
615
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
609
616
|
r: e.value.style.chart.axes.y.labels.rounding
|
|
610
617
|
})
|
|
611
|
-
)), 9,
|
|
618
|
+
)), 9, Et))), 256))
|
|
612
619
|
])) : v("", !0),
|
|
613
620
|
e.value.style.chart.axes.y.name.text ? (o(), r("text", {
|
|
614
621
|
key: 4,
|
|
@@ -617,7 +624,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
617
624
|
fill: e.value.style.chart.axes.y.name.color,
|
|
618
625
|
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
619
626
|
"text-anchor": "middle"
|
|
620
|
-
},
|
|
627
|
+
}, L(e.value.style.chart.axes.y.name.text), 9, Ht)) : v("", !0),
|
|
621
628
|
e.value.style.chart.grid.horizontalLines.show ? (o(), r("g", Ut, [
|
|
622
629
|
(o(!0), r(b, null, k(p.value.tickY, (l) => (o(), r("line", {
|
|
623
630
|
x1: l.x1,
|
|
@@ -631,14 +638,14 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
631
638
|
])) : v("", !0),
|
|
632
639
|
e.value.style.chart.axes.x.labels.show ? (o(), r("g", Vt, [
|
|
633
640
|
(o(!0), r(b, null, k(p.value.tickX, (l) => (o(), r("text", {
|
|
634
|
-
transform: `translate(${l.x}, ${
|
|
641
|
+
transform: `translate(${l.x}, ${i.value.bottom + e.value.style.chart.axes.x.labels.offsetY + n.value.xAxisLabels}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
635
642
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
636
643
|
"font-size": n.value.xAxisLabels,
|
|
637
644
|
"text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
638
|
-
},
|
|
645
|
+
}, L(u(j)(
|
|
639
646
|
e.value.style.chart.axes.x.labels.formatter,
|
|
640
647
|
l.value,
|
|
641
|
-
|
|
648
|
+
u(R)({
|
|
642
649
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
643
650
|
v: l.value,
|
|
644
651
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
@@ -654,35 +661,35 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
654
661
|
fill: e.value.style.chart.axes.x.name.color,
|
|
655
662
|
"font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
656
663
|
"text-anchor": "middle"
|
|
657
|
-
},
|
|
664
|
+
}, L(e.value.style.chart.axes.x.name.text), 9, qt)) : v("", !0),
|
|
658
665
|
e.value.style.chart.grid.xAxis.show ? (o(), r("line", {
|
|
659
666
|
key: 8,
|
|
660
|
-
x1:
|
|
661
|
-
x2:
|
|
662
|
-
y1:
|
|
663
|
-
y2:
|
|
667
|
+
x1: i.value.left,
|
|
668
|
+
x2: i.value.left + i.value.width,
|
|
669
|
+
y1: i.value.bottom,
|
|
670
|
+
y2: i.value.bottom,
|
|
664
671
|
stroke: e.value.style.chart.grid.xAxis.stroke,
|
|
665
672
|
"stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
|
|
666
673
|
"stroke-linecap": "round"
|
|
667
674
|
}, null, 8, Zt)) : v("", !0),
|
|
668
675
|
e.value.style.chart.grid.yAxis.show ? (o(), r("line", {
|
|
669
676
|
key: 9,
|
|
670
|
-
x1:
|
|
671
|
-
x2:
|
|
672
|
-
y1:
|
|
673
|
-
y2:
|
|
677
|
+
x1: i.value.left,
|
|
678
|
+
x2: i.value.left,
|
|
679
|
+
y1: i.value.top,
|
|
680
|
+
y2: i.value.bottom,
|
|
674
681
|
stroke: e.value.style.chart.grid.yAxis.stroke,
|
|
675
682
|
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
676
683
|
"stroke-linecap": "round"
|
|
677
684
|
}, null, 8, Jt)) : v("", !0),
|
|
678
|
-
(o(!0), r(b, null, k(
|
|
685
|
+
(o(!0), r(b, null, k(N.value, (l, c) => (o(), r("g", null, [
|
|
679
686
|
e.value.style.chart.paths.show ? (o(), r("g", {
|
|
680
687
|
key: 0,
|
|
681
688
|
style: $({
|
|
682
689
|
opacity: w.value === null ? 1 : 0.3
|
|
683
690
|
})
|
|
684
691
|
}, [
|
|
685
|
-
|
|
692
|
+
T("path", {
|
|
686
693
|
d: l.path,
|
|
687
694
|
stroke: e.value.style.chart.backgroundColor,
|
|
688
695
|
"stroke-width": e.value.style.chart.paths.strokeWidth + 4,
|
|
@@ -691,7 +698,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
691
698
|
"stroke-linejoin": "round",
|
|
692
699
|
class: I({ animated: e.value.useCssAnimation })
|
|
693
700
|
}, null, 10, Kt),
|
|
694
|
-
|
|
701
|
+
T("path", {
|
|
695
702
|
d: l.path,
|
|
696
703
|
stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
|
|
697
704
|
"stroke-width": e.value.style.chart.paths.strokeWidth,
|
|
@@ -711,7 +718,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
711
718
|
(o(!0), r(b, null, k(l.plots, (s) => (o(), r("circle", {
|
|
712
719
|
cx: s.x,
|
|
713
720
|
cy: s.y,
|
|
714
|
-
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${c}_${
|
|
721
|
+
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${c}_${B.value})` : s.color,
|
|
715
722
|
r: n.value.plots,
|
|
716
723
|
stroke: e.value.style.chart.plots.stroke,
|
|
717
724
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
@@ -737,7 +744,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
737
744
|
opacity: w.value === null || w.value.id === s.id ? 1 : 0.3,
|
|
738
745
|
transition: "opacity 0.2s ease-in-out"
|
|
739
746
|
}),
|
|
740
|
-
innerHTML:
|
|
747
|
+
innerHTML: u(xt)({
|
|
741
748
|
content: String(s.label),
|
|
742
749
|
fontSize: n.value.labels,
|
|
743
750
|
fill: e.value.style.chart.plots.labels.color,
|
|
@@ -757,38 +764,38 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
757
764
|
opacity: w.value === null || w.value.id === s.id ? 1 : 0.3,
|
|
758
765
|
transition: "opacity 0.2s ease-in-out"
|
|
759
766
|
})
|
|
760
|
-
},
|
|
767
|
+
}, L(s.label), 15, al))
|
|
761
768
|
]))), 256))
|
|
762
769
|
])) : v("", !0),
|
|
763
770
|
e.value.style.chart.plots.indexLabels.show ? (o(), r("g", ol, [
|
|
764
|
-
(o(!0), r(b, null, k(l.plots, (s,
|
|
771
|
+
(o(!0), r(b, null, k(l.plots, (s, S) => (o(), r("text", {
|
|
765
772
|
x: s.x + e.value.style.chart.plots.indexLabels.offsetX,
|
|
766
773
|
y: s.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
|
|
767
774
|
"font-size": n.value.indexLabels,
|
|
768
775
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
769
|
-
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ?
|
|
776
|
+
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(pt)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
770
777
|
"text-anchor": "middle",
|
|
771
778
|
class: I({ animated: e.value.useCssAnimation }),
|
|
772
779
|
style: $({
|
|
773
780
|
opacity: w.value === null || w.value.id === s.id ? 1 : 0.3,
|
|
774
781
|
transition: "opacity 0.2s ease-in-out"
|
|
775
782
|
})
|
|
776
|
-
},
|
|
783
|
+
}, L(e.value.style.chart.plots.indexLabels.startAtZero ? S : S + 1), 15, rl))), 256))
|
|
777
784
|
])) : v("", !0)
|
|
778
785
|
]))), 256)),
|
|
779
|
-
(o(!0), r(b, null, k(
|
|
786
|
+
(o(!0), r(b, null, k(N.value, (l) => (o(), r("g", null, [
|
|
780
787
|
(o(!0), r(b, null, k(l.plots, (c, s) => (o(), r("circle", {
|
|
781
788
|
cx: c.x,
|
|
782
789
|
cy: c.y,
|
|
783
790
|
fill: "transparent",
|
|
784
791
|
r: n.value.plots,
|
|
785
792
|
stroke: "none",
|
|
786
|
-
onMouseenter: (
|
|
793
|
+
onMouseenter: (S) => Qe({
|
|
787
794
|
datapoint: c,
|
|
788
795
|
plotIndex: s,
|
|
789
796
|
seriesIndex: l.seriesIndex
|
|
790
797
|
}),
|
|
791
|
-
onMouseleave: a[0] || (a[0] = (
|
|
798
|
+
onMouseleave: a[0] || (a[0] = (S) => {
|
|
792
799
|
Z.value = !1, w.value = null;
|
|
793
800
|
}),
|
|
794
801
|
onClick: () => Ke(c)
|
|
@@ -796,10 +803,10 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
796
803
|
]))), 256)),
|
|
797
804
|
x(t.$slots, "svg", { svg: d.value }, void 0, !0)
|
|
798
805
|
], 12, Ot)) : v("", !0),
|
|
799
|
-
t.$slots.watermark ? (o(), r("div",
|
|
800
|
-
x(t.$slots, "watermark", Y(D({ isPrinting:
|
|
806
|
+
t.$slots.watermark ? (o(), r("div", il, [
|
|
807
|
+
x(t.$slots, "watermark", Y(D({ isPrinting: u(fe) || u(xe) })), void 0, !0)
|
|
801
808
|
])) : v("", !0),
|
|
802
|
-
C.value ? v("", !0) : (o(), P(
|
|
809
|
+
C.value ? v("", !0) : (o(), P(u(De), {
|
|
803
810
|
key: 6,
|
|
804
811
|
config: {
|
|
805
812
|
type: "historyPlot",
|
|
@@ -811,7 +818,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
811
818
|
}
|
|
812
819
|
}
|
|
813
820
|
}, null, 8, ["config"])),
|
|
814
|
-
|
|
821
|
+
T("div", {
|
|
815
822
|
ref_key: "chartLegend",
|
|
816
823
|
ref: ae
|
|
817
824
|
}, [
|
|
@@ -824,12 +831,12 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
824
831
|
})
|
|
825
832
|
}, {
|
|
826
833
|
item: m(({ legend: l, index: c }) => [
|
|
827
|
-
|
|
834
|
+
T("div", {
|
|
828
835
|
onClick: (s) => {
|
|
829
836
|
l.segregate(), ke(l);
|
|
830
837
|
},
|
|
831
838
|
style: $(`opacity:${g.value.includes(l.seriesIndex) ? 0.5 : 1}`)
|
|
832
|
-
},
|
|
839
|
+
}, L(l.name), 13, ul)
|
|
833
840
|
]),
|
|
834
841
|
_: 1
|
|
835
842
|
}, 8, ["legendSet", "config"])) : x(t.$slots, "legend", {
|
|
@@ -840,12 +847,12 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
840
847
|
t.$slots.source ? (o(), r("div", {
|
|
841
848
|
key: 7,
|
|
842
849
|
ref_key: "source",
|
|
843
|
-
ref:
|
|
850
|
+
ref: ie,
|
|
844
851
|
dir: "auto"
|
|
845
852
|
}, [
|
|
846
853
|
x(t.$slots, "source", {}, void 0, !0)
|
|
847
854
|
], 512)) : v("", !0),
|
|
848
|
-
Ae(
|
|
855
|
+
Ae(u(je), {
|
|
849
856
|
show: _.value.showTooltip && Z.value,
|
|
850
857
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
851
858
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -856,10 +863,10 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
856
863
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
857
864
|
position: e.value.style.chart.tooltip.position,
|
|
858
865
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
859
|
-
parent:
|
|
866
|
+
parent: A.value,
|
|
860
867
|
content: J.value,
|
|
861
|
-
isCustom:
|
|
862
|
-
isFullscreen:
|
|
868
|
+
isCustom: E.value,
|
|
869
|
+
isFullscreen: H.value
|
|
863
870
|
}, {
|
|
864
871
|
"tooltip-before": m(() => [
|
|
865
872
|
x(t.$slots, "tooltip-before", Y(D({ ...Q.value })), void 0, !0)
|
|
@@ -869,7 +876,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
869
876
|
]),
|
|
870
877
|
_: 3
|
|
871
878
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
872
|
-
C.value ? (o(), P(
|
|
879
|
+
C.value ? (o(), P(u(Pe), {
|
|
873
880
|
key: 8,
|
|
874
881
|
hideDetails: "",
|
|
875
882
|
config: {
|
|
@@ -886,7 +893,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
886
893
|
}
|
|
887
894
|
}, {
|
|
888
895
|
content: m(() => [
|
|
889
|
-
(o(), P(
|
|
896
|
+
(o(), P(u(Fe), {
|
|
890
897
|
key: `table_${oe.value}`,
|
|
891
898
|
colNames: U.value.colNames,
|
|
892
899
|
head: U.value.head,
|
|
@@ -896,13 +903,13 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
896
903
|
onClose: a[2] || (a[2] = (l) => _.value.showTable = !1)
|
|
897
904
|
}, {
|
|
898
905
|
th: m(({ th: l }) => [
|
|
899
|
-
|
|
906
|
+
T("div", {
|
|
900
907
|
innerHTML: l,
|
|
901
908
|
style: { display: "flex", "align-items": "center" }
|
|
902
909
|
}, null, 8, cl)
|
|
903
910
|
]),
|
|
904
911
|
td: m(({ td: l }) => [
|
|
905
|
-
rt(
|
|
912
|
+
rt(L(l.name || l), 1)
|
|
906
913
|
]),
|
|
907
914
|
_: 1
|
|
908
915
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -911,7 +918,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"]
|
|
|
911
918
|
}, 8, ["config"])) : v("", !0)
|
|
912
919
|
], 46, Nt));
|
|
913
920
|
}
|
|
914
|
-
}, Cl = /* @__PURE__ */ Lt(vl, [["__scopeId", "data-v-
|
|
921
|
+
}, Cl = /* @__PURE__ */ Lt(vl, [["__scopeId", "data-v-3bd0f102"]]);
|
|
915
922
|
export {
|
|
916
923
|
Cl as default
|
|
917
924
|
};
|