vue-data-ui 2.12.8-beta.3 → 2.12.8-beta.4
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 +10 -4
- package/dist/{Arrow-kQyQXUUg.js → Arrow-XoY1VXNf.js} +1 -1
- package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
- package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-d4dmqhkb.js} +1 -1
- package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-B3v0IhDO.js} +2 -2
- package/dist/{DataTable-BBqbcutV.js → DataTable-CmbjnjRg.js} +2 -2
- package/dist/{Legend-DRqzYrP9.js → Legend-YPYnzTBz.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
- package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-OcbP0WH2.js} +1 -1
- package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BgPXmpGI.js} +3 -3
- package/dist/{Shape-DEWxbZ-l.js → Shape-WvXjwML_.js} +1 -1
- package/dist/{Slicer-o6jJH5bw.js → Slicer-CaMHCF_p.js} +2 -2
- package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BTLad6y3.js} +1 -1
- package/dist/{Title-apr_T9tg.js → Title-CJcZXNtK.js} +1 -1
- package/dist/{Tooltip-BuHsMAfp.js → Tooltip-dXp8FaUj.js} +1 -1
- package/dist/{UserOptions-OVNxxnq5.js → UserOptions-Cs7JW3dK.js} +16 -11
- package/dist/dom-to-png-DGfv21rX.js +247 -0
- package/dist/img-fdViJw1e.js +20 -0
- package/dist/{index-CH_mJIWj.js → index-BzQ0j5xI.js} +6 -2
- package/dist/{pdf-Jun3ogRn.js → pdf-Bj65uPK-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +20 -3
- package/dist/types/vue-data-ui.d.ts +20 -3
- package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DqpZEE3h.js} +1 -1
- package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-CpG5jh_z.js} +2 -2
- package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-CeIncf6V.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-fAJK0nIB.js} +173 -173
- package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-D5w5EqmV.js} +179 -179
- package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-CSGemK-O.js} +2 -2
- package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-FPBahjOr.js} +6 -6
- package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BpP9MQC2.js} +113 -113
- package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-lpdLFAfT.js} +94 -94
- package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-D5um0tmC.js} +452 -452
- package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CgrXXOgv.js} +17 -17
- package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Jk-Yd8T_.js} +116 -116
- package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
- package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
- package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-B3h4BufU.js} +2 -2
- package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DcjJqRof.js} +149 -149
- package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-DmSbXlMu.js} +109 -109
- package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-BLcmTUd_.js} +65 -65
- package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-BmIGl6DC.js} +12 -12
- package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-BJfxaSQC.js} +65 -65
- package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-Cpnr2YW-.js} +82 -82
- package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-BhPFNziU.js} +5 -5
- package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
- package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-CpwNMx3i.js} +221 -221
- package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-DpxHqDZw.js} +232 -232
- package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
- package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
- package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-3-vg0Re6.js} +30 -30
- package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar-B7W7wGkW.js} +75 -75
- package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-ByoeDL-3.js} +16 -16
- package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-CNVwf4QX.js} +70 -70
- package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +11 -11
- package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-C-wPn5l5.js} +11 -11
- package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-SV-m_FhA.js} +5 -5
- package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-DqOzvLUy.js} +283 -282
- package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-CsZXcINB.js} +2 -2
- package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-B0zxq02O.js} +5 -5
- package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-CykFyAin.js} +100 -100
- package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-DoJwXgd3.js} +96 -96
- package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-BTT3BYrI.js} +164 -164
- package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
- package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
- package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
- package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
- package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
- package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-DuGcJQ6F.js} +37 -37
- package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-C6vbloAI.js} +80 -80
- package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Bb6pNaIM.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-_ypWL_z2.js} +57 -57
- package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-_pPedR_D.js} +72 -72
- package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-CmLnTIU7.js} +5 -5
- package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-CpAJT80M.js} +5 -5
- package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-DXgmJClr.js} +5 -5
- package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-Ci2Yi9Gh.js} +297 -297
- package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-pn_EqFmU.js} +81 -81
- package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-vqh1kEDT.js} +50 -50
- package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BCcK6wwZ.js} +5 -5
- package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-Bu8Giu0b.js} +67 -67
- package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CzRlg19V.js} +55 -55
- package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-0gHPOOwZ.js} +201 -182
- package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-DuAgXbBB.js} +80 -80
- package/package.json +1 -1
- package/dist/dom-to-png-C0Ct8ClX.js +0 -243
- package/dist/img-P0SFFw37.js +0 -19
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as N, ref as h, shallowRef as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { t as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
1
|
+
import { defineAsyncComponent as N, ref as h, shallowRef as $e, computed as f, onMounted as tt, onBeforeUnmount as lt, watch as at, createElementBlock as r, openBlock as s, unref as i, normalizeStyle as $, normalizeClass as F, renderSlot as x, createBlock as O, createCommentVNode as v, createElementVNode as T, createVNode as Me, createSlots as st, withCtx as m, normalizeProps as X, guardReactiveProps as D, Fragment as b, renderList as k, toDisplayString as S, createTextVNode as ot, nextTick as rt } from "vue";
|
|
2
|
+
import { u as nt, c as Ae, o as ut, e as Te, g as it, b as ct, d as vt, p as V, D as Se, i as Y, f as j, X as ht, l as yt, h as dt, G as ft, F as P, t as xt, a as pt, C as q, q as mt, r as gt, x as bt } from "./index-BzQ0j5xI.js";
|
|
3
|
+
import { u as ze } from "./useNestedProp-DqpZEE3h.js";
|
|
4
|
+
import { u as kt } from "./usePrinter-CpG5jh_z.js";
|
|
5
|
+
import { t as wt, u as Ct } from "./useResponsive-JZ9xq-JV.js";
|
|
6
|
+
import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Mt from "./Legend-YPYnzTBz.js";
|
|
9
|
+
import At from "./Title-CJcZXNtK.js";
|
|
10
|
+
import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"], Nt = { key: 1 }, Ot = ["id"], Pt = ["stop-color"], It = ["stop-color"], Ft = ["stop-color"], Xt = { key: 2 }, Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yt = { key: 3 }, jt = ["x", "y", "fill", "font-size"], Rt = ["transform", "font-size", "fill", "font-weight"], Bt = { key: 5 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = { key: 6 }, Ht = ["transform", "fill", "font-size", "text-anchor"], Ut = ["x", "y", "font-size", "fill", "font-weight"], Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], qt = ["d", "stroke", "stroke-width"], Zt = ["d", "stroke", "stroke-width"], Jt = ["cx", "cy", "fill", "r"], Kt = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Qt = { key: 1 }, el = ["x", "y", "font-size", "fill", "font-weight"], tl = { key: 2 }, ll = ["x", "y", "font-size", "font-weight", "fill"], al = ["cx", "cy", "r", "onMouseenter", "onClick"], sl = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
14
|
+
}, ol = ["onClick"], rl = ["innerHTML"], nl = {
|
|
15
15
|
__name: "vue-ui-history-plot",
|
|
16
16
|
props: {
|
|
17
17
|
config: {
|
|
@@ -28,22 +28,22 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
emits: ["selectLegend", "selectDatapoint"],
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
get: () => !!
|
|
31
|
+
setup(Le, { expose: Ne, emit: Oe }) {
|
|
32
|
+
const Pe = N(() => import("./vue-ui-accordion-bpaEpjqI.js")), Ie = N(() => import("./DataTable-CmbjnjRg.js")), Fe = N(() => import("./PackageVersion-OcbP0WH2.js")), Xe = N(() => import("./PenAndPaper-BgPXmpGI.js")), De = N(() => import("./vue-ui-skeleton-CavMQlAm.js")), Ye = N(() => import("./Tooltip-dXp8FaUj.js")), je = N(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_history_plot: Re } = nt(), y = Le, R = h(null), te = h(null), le = h(0), ae = h(null), se = h(0), oe = h(0), re = h(0), M = $e(null), I = $e(null), ne = h(null), B = h(Ae()), Z = h(!1), J = h(""), g = h([]), E = h(!1), _ = h(null), W = h(!1), ue = h(null), w = f({
|
|
33
|
+
get: () => !!y.dataset && y.dataset.length,
|
|
34
34
|
set: (t) => t
|
|
35
|
-
}),
|
|
36
|
-
|
|
37
|
-
function
|
|
38
|
-
if (
|
|
35
|
+
}), ie = Oe;
|
|
36
|
+
tt(ce);
|
|
37
|
+
function ce() {
|
|
38
|
+
if (ut(y.dataset) ? Te({
|
|
39
39
|
componentName: "VueUiHistoryPlot",
|
|
40
40
|
type: "dataset"
|
|
41
|
-
}) :
|
|
42
|
-
|
|
41
|
+
}) : y.dataset.forEach((t, a) => {
|
|
42
|
+
it({
|
|
43
43
|
datasetObject: t,
|
|
44
44
|
requiredAttributes: ["name", "values"]
|
|
45
45
|
}).forEach((l) => {
|
|
46
|
-
w.value = !1,
|
|
46
|
+
w.value = !1, Te({
|
|
47
47
|
componentName: "VueUiHistoryPlot",
|
|
48
48
|
type: "datasetSerieAttribute",
|
|
49
49
|
property: l,
|
|
@@ -51,16 +51,16 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
53
|
}), e.value.responsive) {
|
|
54
|
-
const t =
|
|
55
|
-
const { width: a, height: l } =
|
|
54
|
+
const t = wt(() => {
|
|
55
|
+
const { width: a, height: l } = Ct({
|
|
56
56
|
chart: R.value,
|
|
57
|
-
title: e.value.style.chart.title.text ?
|
|
58
|
-
noTitle:
|
|
59
|
-
legend: e.value.style.chart.legend.show ?
|
|
60
|
-
source:
|
|
57
|
+
title: e.value.style.chart.title.text ? te.value : null,
|
|
58
|
+
noTitle: ne.value,
|
|
59
|
+
legend: e.value.style.chart.legend.show ? ae.value : null,
|
|
60
|
+
source: ue.value
|
|
61
61
|
});
|
|
62
62
|
requestAnimationFrame(() => {
|
|
63
|
-
|
|
63
|
+
d.value.width = a, d.value.height = l, e.value.responsiveProportionalSizing && (u.value.plots = P({
|
|
64
64
|
relator: Math.min(a, l),
|
|
65
65
|
adjuster: 600,
|
|
66
66
|
source: e.value.style.chart.plots.radius,
|
|
@@ -105,41 +105,41 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
105
105
|
}));
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
|
-
|
|
108
|
+
M.value && (I.value && M.value.unobserve(I.value), M.value.disconnect()), M.value = new ResizeObserver(t), I.value = R.value.parentNode, M.value.observe(I.value);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
lt(() => {
|
|
112
|
+
M.value && (I.value && M.value.unobserve(I.value), M.value.disconnect());
|
|
113
113
|
});
|
|
114
|
-
function
|
|
115
|
-
const t =
|
|
116
|
-
userConfig:
|
|
117
|
-
defaultConfig:
|
|
114
|
+
function ve() {
|
|
115
|
+
const t = ze({
|
|
116
|
+
userConfig: y.config,
|
|
117
|
+
defaultConfig: Re
|
|
118
118
|
});
|
|
119
119
|
let a = {};
|
|
120
120
|
return t.theme ? a = {
|
|
121
|
-
...
|
|
122
|
-
userConfig:
|
|
121
|
+
...ze({
|
|
122
|
+
userConfig: pt.vue_ui_history_plot[t.theme] || y.config,
|
|
123
123
|
defaultConfig: t
|
|
124
124
|
}),
|
|
125
|
-
customPalette:
|
|
126
|
-
} : a = t,
|
|
125
|
+
customPalette: xt[t.theme] || V
|
|
126
|
+
} : a = t, y.config && q(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 && q(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 && q(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 && q(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;
|
|
127
127
|
}
|
|
128
128
|
const e = f({
|
|
129
|
-
get: () =>
|
|
129
|
+
get: () => ve(),
|
|
130
130
|
set: (t) => t
|
|
131
|
-
}), { userOptionsVisible:
|
|
132
|
-
|
|
133
|
-
e.value =
|
|
131
|
+
}), { userOptionsVisible: K, setUserOptionsVisibility: he, keepUserOptionState: ye } = _t({ config: e.value }), { svgRef: de } = $t({ config: e.value.style.chart.title });
|
|
132
|
+
at(() => y.config, (t) => {
|
|
133
|
+
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, u.value.plots = e.value.style.chart.plots.radius, u.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, u.value.labels = e.value.style.chart.plots.labels.fontSize, u.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, u.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, u.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, u.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;
|
|
134
134
|
}, { deep: !0 });
|
|
135
|
-
const { isPrinting:
|
|
135
|
+
const { isPrinting: fe, isImaging: xe, generatePdf: pe, generateImage: me } = kt({
|
|
136
136
|
elementId: `history_plot_${B.value}`,
|
|
137
137
|
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
138
138
|
options: e.value.userOptions.print
|
|
139
|
-
}),
|
|
139
|
+
}), Be = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), We = f(() => ct(e.value.customPalette)), C = h({
|
|
140
140
|
showTable: e.value.table.show,
|
|
141
141
|
showTooltip: e.value.style.chart.tooltip.show
|
|
142
|
-
}),
|
|
142
|
+
}), d = h({
|
|
143
143
|
height: e.value.style.chart.height,
|
|
144
144
|
width: e.value.style.chart.width
|
|
145
145
|
}), n = f(() => {
|
|
@@ -147,10 +147,10 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
147
147
|
return {
|
|
148
148
|
left: t,
|
|
149
149
|
top: a,
|
|
150
|
-
right:
|
|
151
|
-
bottom:
|
|
152
|
-
width:
|
|
153
|
-
height:
|
|
150
|
+
right: d.value.width - e.value.style.chart.padding.right,
|
|
151
|
+
bottom: d.value.height - e.value.style.chart.padding.bottom,
|
|
152
|
+
width: d.value.width - t - e.value.style.chart.padding.right,
|
|
153
|
+
height: d.value.height - a - e.value.style.chart.padding.bottom
|
|
154
154
|
};
|
|
155
155
|
}), u = h({
|
|
156
156
|
plots: e.value.style.chart.plots.radius,
|
|
@@ -160,26 +160,26 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
160
160
|
xAxisName: e.value.style.chart.axes.x.name.fontSize,
|
|
161
161
|
yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
|
|
162
162
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
163
|
-
}),
|
|
163
|
+
}), A = f(() => w.value ? y.dataset.map((t, a) => ({
|
|
164
164
|
...t,
|
|
165
|
-
color: t.color ?
|
|
165
|
+
color: t.color ? vt(t.color) : We.value[a] || V[a] || V[a % V.length],
|
|
166
166
|
seriesIndex: a
|
|
167
|
-
})) : []),
|
|
167
|
+
})) : []), Ee = f(() => w.value ? Math.max(...A.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), He = f(() => {
|
|
168
168
|
if (!w.value) return 1;
|
|
169
|
-
const t = Math.min(...
|
|
169
|
+
const t = Math.min(...A.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
170
170
|
return t < 0 ? t : 0;
|
|
171
|
-
}),
|
|
171
|
+
}), Ue = f(() => w.value ? Math.max(...A.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1), Ge = f(() => {
|
|
172
172
|
if (!w.value) return 1;
|
|
173
|
-
const t = Math.min(...
|
|
173
|
+
const t = Math.min(...A.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
174
174
|
return t < 0 ? t : 0;
|
|
175
175
|
}), p = f(() => {
|
|
176
|
-
const t =
|
|
177
|
-
e.value.style.chart.axes.x.scaleMin === null ?
|
|
178
|
-
e.value.style.chart.axes.x.scaleMax === null ?
|
|
176
|
+
const t = Se(
|
|
177
|
+
e.value.style.chart.axes.x.scaleMin === null ? He.value : e.value.style.chart.axes.x.scaleMin,
|
|
178
|
+
e.value.style.chart.axes.x.scaleMax === null ? Ee.value : e.value.style.chart.axes.x.scaleMax,
|
|
179
179
|
e.value.style.chart.axes.x.ticks
|
|
180
|
-
), a =
|
|
181
|
-
e.value.style.chart.axes.y.scaleMin === null ?
|
|
182
|
-
e.value.style.chart.axes.y.scaleMax === null ?
|
|
180
|
+
), a = Se(
|
|
181
|
+
e.value.style.chart.axes.y.scaleMin === null ? Ge.value : e.value.style.chart.axes.y.scaleMin,
|
|
182
|
+
e.value.style.chart.axes.y.scaleMax === null ? Ue.value : e.value.style.chart.axes.y.scaleMax,
|
|
183
183
|
e.value.style.chart.axes.y.ticks
|
|
184
184
|
);
|
|
185
185
|
return {
|
|
@@ -199,24 +199,24 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
199
199
|
}))
|
|
200
200
|
};
|
|
201
201
|
});
|
|
202
|
-
function
|
|
202
|
+
function Ve(t) {
|
|
203
203
|
const a = p.value.x.min < 0 ? Math.abs(p.value.x.min) : p.value.x.min > 0 ? -p.value.x.min : 0;
|
|
204
204
|
return n.value.left + ((t || 0) + a) / (p.value.x.max + a) * n.value.width;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function qe(t) {
|
|
207
207
|
const a = p.value.y.min < 0 ? Math.abs(p.value.y.min) : p.value.y.min > 0 ? -p.value.y.min : 0;
|
|
208
208
|
return n.value.bottom - ((t || 0) + a) / (p.value.y.max + a) * n.value.height;
|
|
209
209
|
}
|
|
210
|
-
const
|
|
211
|
-
const l = t.values.map((o,
|
|
210
|
+
const z = f(() => A.value.filter((t) => !g.value.includes(t.seriesIndex)).map((t, a) => {
|
|
211
|
+
const l = t.values.map((o, L) => ({
|
|
212
212
|
valueX: o.x,
|
|
213
213
|
valueY: o.y,
|
|
214
214
|
label: o.label,
|
|
215
|
-
x:
|
|
216
|
-
y:
|
|
215
|
+
x: Ve(o.x),
|
|
216
|
+
y: qe(o.y),
|
|
217
217
|
color: t.color,
|
|
218
218
|
seriesName: t.name,
|
|
219
|
-
id:
|
|
219
|
+
id: Ae()
|
|
220
220
|
})), c = l.map((o) => `${o.x},${o.y} `).join("").trim();
|
|
221
221
|
return {
|
|
222
222
|
...t,
|
|
@@ -224,16 +224,16 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
224
224
|
path: `M${c}`
|
|
225
225
|
};
|
|
226
226
|
}));
|
|
227
|
-
function
|
|
227
|
+
function ge(t) {
|
|
228
228
|
g.value.includes(t) ? g.value = g.value.filter((a) => a !== t) : g.value.push(t);
|
|
229
229
|
}
|
|
230
|
-
const
|
|
230
|
+
const be = f(() => A.value.map((t) => ({
|
|
231
231
|
...t,
|
|
232
232
|
opacity: g.value.includes(t.seriesIndex) ? 0.5 : 1,
|
|
233
|
-
segregate: () =>
|
|
233
|
+
segregate: () => ge(t.seriesIndex),
|
|
234
234
|
isSegregated: g.value.includes(t.seriesIndex),
|
|
235
235
|
shape: "circle"
|
|
236
|
-
}))),
|
|
236
|
+
}))), Ze = f(() => ({
|
|
237
237
|
cy: "history-plot-div-legend",
|
|
238
238
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
239
239
|
color: e.value.style.chart.legend.color,
|
|
@@ -241,33 +241,33 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
241
241
|
paddingBottom: 12,
|
|
242
242
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
243
243
|
}));
|
|
244
|
-
function
|
|
245
|
-
|
|
244
|
+
function Je(t) {
|
|
245
|
+
ie("selectDatapoint", t);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
|
|
247
|
+
function ke(t) {
|
|
248
|
+
ie("selectLegend", {
|
|
249
249
|
...t,
|
|
250
250
|
isSegregated: !t.isSegregated,
|
|
251
251
|
opacity: t.isSegregated ? 1 : 0.5
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
E.value = t,
|
|
254
|
+
function Ke(t) {
|
|
255
|
+
E.value = t, re.value += 1;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
258
|
-
function
|
|
259
|
-
|
|
257
|
+
const Q = h(null);
|
|
258
|
+
function Qe({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
259
|
+
Q.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: A.value }, _.value = t;
|
|
260
260
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
261
|
-
if (W.value = !1,
|
|
261
|
+
if (W.value = !1, bt(c))
|
|
262
262
|
try {
|
|
263
263
|
const o = c({
|
|
264
264
|
seriesIndex: l,
|
|
265
265
|
datapoint: t,
|
|
266
266
|
plotIndex: a,
|
|
267
|
-
series:
|
|
267
|
+
series: A.value,
|
|
268
268
|
config: e.value
|
|
269
269
|
});
|
|
270
|
-
typeof o == "string" && (
|
|
270
|
+
typeof o == "string" && (J.value = o, W.value = !0);
|
|
271
271
|
} catch {
|
|
272
272
|
console.warn("Custom format cannot be applied."), W.value = !1;
|
|
273
273
|
}
|
|
@@ -291,11 +291,11 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
291
291
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
292
292
|
r: e.value.style.chart.axes.y.labels.rounding
|
|
293
293
|
})
|
|
294
|
-
)}</div>`,
|
|
294
|
+
)}</div>`, J.value = `<div>${o}</div>`;
|
|
295
295
|
}
|
|
296
|
-
|
|
296
|
+
Z.value = !0;
|
|
297
297
|
}
|
|
298
|
-
f(() => ({ head:
|
|
298
|
+
f(() => ({ head: z.value.map((a) => ({
|
|
299
299
|
name: a.name,
|
|
300
300
|
color: a.color
|
|
301
301
|
})) }));
|
|
@@ -305,7 +305,7 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
305
305
|
e.value.table.columnNames.datapoint,
|
|
306
306
|
e.value.table.columnNames.x,
|
|
307
307
|
e.value.table.columnNames.y
|
|
308
|
-
], a =
|
|
308
|
+
], a = z.value.flatMap((c) => c.plots.map((o) => [
|
|
309
309
|
{
|
|
310
310
|
color: o.color,
|
|
311
311
|
name: o.seriesName
|
|
@@ -351,84 +351,84 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
351
351
|
colNames: t
|
|
352
352
|
};
|
|
353
353
|
});
|
|
354
|
-
function
|
|
355
|
-
|
|
356
|
-
const
|
|
354
|
+
function we(t = null) {
|
|
355
|
+
rt(() => {
|
|
356
|
+
const a = [
|
|
357
357
|
[e.value.table.columnNames.series],
|
|
358
358
|
[e.value.table.columnNames.datapoint],
|
|
359
359
|
[e.value.table.columnNames.x],
|
|
360
360
|
[e.value.table.columnNames.y]
|
|
361
|
-
],
|
|
362
|
-
[
|
|
363
|
-
[
|
|
364
|
-
[
|
|
365
|
-
[
|
|
366
|
-
])),
|
|
361
|
+
], l = z.value.flatMap((L) => L.plots.map((G) => [
|
|
362
|
+
[G.seriesName],
|
|
363
|
+
[G.label],
|
|
364
|
+
[G.valueX],
|
|
365
|
+
[G.valueY]
|
|
366
|
+
])), c = [
|
|
367
367
|
[e.value.style.chart.title.text],
|
|
368
368
|
[e.value.style.chart.title.subtitle.text],
|
|
369
|
-
|
|
370
|
-
].concat(
|
|
371
|
-
|
|
372
|
-
csvContent:
|
|
369
|
+
a
|
|
370
|
+
].concat(l), o = mt(c);
|
|
371
|
+
t ? t(o) : gt({
|
|
372
|
+
csvContent: o,
|
|
373
373
|
title: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
374
374
|
});
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
377
|
const U = h(!1);
|
|
378
|
-
function
|
|
378
|
+
function ee() {
|
|
379
379
|
U.value = !U.value;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function Ce() {
|
|
382
382
|
C.value.showTable = !C.value.showTable;
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function _e() {
|
|
385
385
|
C.value.showTooltip = !C.value.showTooltip;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
387
|
+
function et() {
|
|
388
|
+
return z.value;
|
|
389
389
|
}
|
|
390
|
-
return
|
|
391
|
-
getData:
|
|
392
|
-
generatePdf:
|
|
393
|
-
generateCsv:
|
|
394
|
-
generateImage:
|
|
395
|
-
toggleTable:
|
|
396
|
-
toggleTooltip:
|
|
397
|
-
toggleAnnotator:
|
|
390
|
+
return Ne({
|
|
391
|
+
getData: et,
|
|
392
|
+
generatePdf: pe,
|
|
393
|
+
generateCsv: we,
|
|
394
|
+
generateImage: me,
|
|
395
|
+
toggleTable: Ce,
|
|
396
|
+
toggleTooltip: _e,
|
|
397
|
+
toggleAnnotator: ee
|
|
398
398
|
}), (t, a) => (s(), r("div", {
|
|
399
399
|
id: `history_plot_${B.value}`,
|
|
400
400
|
ref_key: "historyPlotChart",
|
|
401
401
|
ref: R,
|
|
402
402
|
class: F({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": E.value }),
|
|
403
|
-
style:
|
|
404
|
-
onMouseenter: a[3] || (a[3] = () => i(
|
|
405
|
-
onMouseleave: a[4] || (a[4] = () => i(
|
|
403
|
+
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%" : ""}`),
|
|
404
|
+
onMouseenter: a[3] || (a[3] = () => i(he)(!0)),
|
|
405
|
+
onMouseleave: a[4] || (a[4] = () => i(he)(!1))
|
|
406
406
|
}, [
|
|
407
407
|
x(t.$slots, "userConfig", {}, void 0, !0),
|
|
408
|
-
e.value.userOptions.buttons.annotator ? (s(), O(i(
|
|
408
|
+
e.value.userOptions.buttons.annotator ? (s(), O(i(Xe), {
|
|
409
409
|
key: 0,
|
|
410
410
|
svgRef: i(de),
|
|
411
411
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
412
412
|
color: e.value.style.chart.color,
|
|
413
413
|
active: U.value,
|
|
414
|
-
onClose:
|
|
414
|
+
onClose: ee
|
|
415
415
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
416
|
-
|
|
416
|
+
Be.value ? (s(), r("div", {
|
|
417
417
|
key: 1,
|
|
418
418
|
ref_key: "noTitle",
|
|
419
|
-
ref:
|
|
419
|
+
ref: ne,
|
|
420
420
|
class: "vue-data-ui-no-title-space",
|
|
421
421
|
style: "height:36px; width: 100%;background:transparent"
|
|
422
422
|
}, null, 512)) : v("", !0),
|
|
423
423
|
e.value.style.chart.title.text ? (s(), r("div", {
|
|
424
424
|
key: 2,
|
|
425
425
|
ref_key: "chartTitle",
|
|
426
|
-
ref:
|
|
426
|
+
ref: te,
|
|
427
427
|
class: "vue-ui-xy-title",
|
|
428
|
-
style:
|
|
428
|
+
style: $(`font-family:${e.value.style.fontFamily}`)
|
|
429
429
|
}, [
|
|
430
|
-
(s(), O(
|
|
431
|
-
key: `title_${
|
|
430
|
+
(s(), O(At, {
|
|
431
|
+
key: `title_${le.value}`,
|
|
432
432
|
config: {
|
|
433
433
|
title: {
|
|
434
434
|
cy: "history-plot-div-title",
|
|
@@ -441,13 +441,13 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
441
441
|
}
|
|
442
442
|
}, null, 8, ["config"]))
|
|
443
443
|
], 4)) : v("", !0),
|
|
444
|
-
e.value.userOptions.show && w.value && (i(
|
|
444
|
+
e.value.userOptions.show && w.value && (i(ye) || i(K)) ? (s(), O(i(je), {
|
|
445
445
|
ref: "details",
|
|
446
|
-
key: `user_option_${
|
|
446
|
+
key: `user_option_${re.value}`,
|
|
447
447
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
448
448
|
color: e.value.style.chart.color,
|
|
449
|
-
isPrinting: i(
|
|
450
|
-
isImaging: i(
|
|
449
|
+
isPrinting: i(fe),
|
|
450
|
+
isImaging: i(xe),
|
|
451
451
|
uid: B.value,
|
|
452
452
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
453
453
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -464,17 +464,17 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
464
464
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
465
465
|
isAnnotation: U.value,
|
|
466
466
|
callbacks: e.value.userOptions.callbacks,
|
|
467
|
-
onToggleFullscreen:
|
|
468
|
-
onGeneratePdf: i(
|
|
469
|
-
onGenerateCsv:
|
|
470
|
-
onGenerateImage: i(
|
|
471
|
-
onToggleTable:
|
|
472
|
-
onToggleTooltip:
|
|
473
|
-
onToggleAnnotator:
|
|
474
|
-
style:
|
|
475
|
-
visibility: i(
|
|
467
|
+
onToggleFullscreen: Ke,
|
|
468
|
+
onGeneratePdf: i(pe),
|
|
469
|
+
onGenerateCsv: we,
|
|
470
|
+
onGenerateImage: i(me),
|
|
471
|
+
onToggleTable: Ce,
|
|
472
|
+
onToggleTooltip: _e,
|
|
473
|
+
onToggleAnnotator: ee,
|
|
474
|
+
style: $({
|
|
475
|
+
visibility: i(ye) ? i(K) ? "visible" : "hidden" : "visible"
|
|
476
476
|
})
|
|
477
|
-
},
|
|
477
|
+
}, st({ _: 2 }, [
|
|
478
478
|
t.$slots.menuIcon ? {
|
|
479
479
|
name: "menuIcon",
|
|
480
480
|
fn: m(({ isOpen: l, color: c }) => [
|
|
@@ -536,11 +536,11 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
536
536
|
key: 4,
|
|
537
537
|
ref_key: "svgRef",
|
|
538
538
|
ref: de,
|
|
539
|
-
xmlns: i(
|
|
540
|
-
viewBox: `0 0 ${
|
|
541
|
-
style:
|
|
539
|
+
xmlns: i(ht),
|
|
540
|
+
viewBox: `0 0 ${d.value.width < 0 ? 0.1 : d.value.width} ${d.value.height < 0 ? 0.1 : d.value.height}`,
|
|
541
|
+
style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
542
542
|
}, [
|
|
543
|
-
|
|
543
|
+
Me(i(Fe)),
|
|
544
544
|
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
545
545
|
key: 0,
|
|
546
546
|
x: n.value.left,
|
|
@@ -552,27 +552,27 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
552
552
|
}
|
|
553
553
|
}, [
|
|
554
554
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
555
|
-
], 8,
|
|
556
|
-
e.value.style.chart.plots.gradient.show ? (s(), r("defs",
|
|
557
|
-
(s(!0), r(b, null, k(
|
|
555
|
+
], 8, Lt)) : v("", !0),
|
|
556
|
+
e.value.style.chart.plots.gradient.show ? (s(), r("defs", Nt, [
|
|
557
|
+
(s(!0), r(b, null, k(z.value, (l, c) => (s(), r("radialGradient", {
|
|
558
558
|
id: `gradient_${c}_${B.value}`,
|
|
559
559
|
fy: "30%"
|
|
560
560
|
}, [
|
|
561
|
-
|
|
561
|
+
T("stop", {
|
|
562
562
|
offset: "10%",
|
|
563
|
-
"stop-color": i(
|
|
564
|
-
}, null, 8,
|
|
565
|
-
|
|
563
|
+
"stop-color": i(yt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
564
|
+
}, null, 8, Pt),
|
|
565
|
+
T("stop", {
|
|
566
566
|
offset: "90%",
|
|
567
567
|
"stop-color": i(dt)(l.color, 0.1)
|
|
568
|
-
}, null, 8,
|
|
569
|
-
|
|
568
|
+
}, null, 8, It),
|
|
569
|
+
T("stop", {
|
|
570
570
|
offset: "100%",
|
|
571
571
|
"stop-color": l.color
|
|
572
|
-
}, null, 8,
|
|
573
|
-
], 8,
|
|
572
|
+
}, null, 8, Ft)
|
|
573
|
+
], 8, Ot))), 256))
|
|
574
574
|
])) : v("", !0),
|
|
575
|
-
e.value.style.chart.grid.verticalLines.show ? (s(), r("g",
|
|
575
|
+
e.value.style.chart.grid.verticalLines.show ? (s(), r("g", Xt, [
|
|
576
576
|
(s(!0), r(b, null, k(p.value.tickX, (l) => (s(), r("line", {
|
|
577
577
|
x1: l.x,
|
|
578
578
|
x2: l.x,
|
|
@@ -581,16 +581,16 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
581
581
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
582
582
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
583
583
|
"stroke-linecap": "round"
|
|
584
|
-
}, null, 8,
|
|
584
|
+
}, null, 8, Dt))), 256))
|
|
585
585
|
])) : v("", !0),
|
|
586
|
-
e.value.style.chart.axes.y.labels.show ? (s(), r("g",
|
|
586
|
+
e.value.style.chart.axes.y.labels.show ? (s(), r("g", Yt, [
|
|
587
587
|
(s(!0), r(b, null, k(p.value.tickY, (l) => (s(), r("text", {
|
|
588
588
|
x: n.value.left + e.value.style.chart.axes.y.labels.offsetX - 4,
|
|
589
589
|
y: l.y + u.value.yAxisLabels / 3,
|
|
590
590
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
591
591
|
"font-size": u.value.yAxisLabels,
|
|
592
592
|
"text-anchor": "end"
|
|
593
|
-
},
|
|
593
|
+
}, S(i(Y)(
|
|
594
594
|
e.value.style.chart.axes.y.labels.formatter,
|
|
595
595
|
l.value,
|
|
596
596
|
i(j)({
|
|
@@ -599,17 +599,17 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
599
599
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
600
600
|
r: e.value.style.chart.axes.y.labels.rounding
|
|
601
601
|
})
|
|
602
|
-
)), 9,
|
|
602
|
+
)), 9, jt))), 256))
|
|
603
603
|
])) : v("", !0),
|
|
604
604
|
e.value.style.chart.axes.y.name.text ? (s(), r("text", {
|
|
605
605
|
key: 4,
|
|
606
|
-
transform: `translate(${e.value.style.chart.axes.y.name.offsetX + u.value.yAxisName}, ${
|
|
606
|
+
transform: `translate(${e.value.style.chart.axes.y.name.offsetX + u.value.yAxisName}, ${d.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
607
607
|
"font-size": u.value.yAxisName,
|
|
608
608
|
fill: e.value.style.chart.axes.y.name.color,
|
|
609
609
|
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
610
610
|
"text-anchor": "middle"
|
|
611
|
-
},
|
|
612
|
-
e.value.style.chart.grid.horizontalLines.show ? (s(), r("g",
|
|
611
|
+
}, S(e.value.style.chart.axes.y.name.text), 9, Rt)) : v("", !0),
|
|
612
|
+
e.value.style.chart.grid.horizontalLines.show ? (s(), r("g", Bt, [
|
|
613
613
|
(s(!0), r(b, null, k(p.value.tickY, (l) => (s(), r("line", {
|
|
614
614
|
x1: l.x1,
|
|
615
615
|
x2: l.x2,
|
|
@@ -618,15 +618,15 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
618
618
|
stroke: e.value.style.chart.grid.horizontalLines.stroke,
|
|
619
619
|
"stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
620
620
|
"stroke-linecap": "round"
|
|
621
|
-
}, null, 8,
|
|
621
|
+
}, null, 8, Wt))), 256))
|
|
622
622
|
])) : v("", !0),
|
|
623
|
-
e.value.style.chart.axes.x.labels.show ? (s(), r("g",
|
|
623
|
+
e.value.style.chart.axes.x.labels.show ? (s(), r("g", Et, [
|
|
624
624
|
(s(!0), r(b, null, k(p.value.tickX, (l) => (s(), r("text", {
|
|
625
625
|
transform: `translate(${l.x}, ${n.value.bottom + e.value.style.chart.axes.x.labels.offsetY + u.value.xAxisLabels}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
626
626
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
627
627
|
"font-size": u.value.xAxisLabels,
|
|
628
628
|
"text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
629
|
-
},
|
|
629
|
+
}, S(i(Y)(
|
|
630
630
|
e.value.style.chart.axes.x.labels.formatter,
|
|
631
631
|
l.value,
|
|
632
632
|
i(j)({
|
|
@@ -635,17 +635,17 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
635
635
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
636
636
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
637
637
|
})
|
|
638
|
-
)), 9,
|
|
638
|
+
)), 9, Ht))), 256))
|
|
639
639
|
])) : v("", !0),
|
|
640
640
|
e.value.style.chart.axes.x.name.text ? (s(), r("text", {
|
|
641
641
|
key: 7,
|
|
642
|
-
x:
|
|
643
|
-
y:
|
|
642
|
+
x: d.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
|
|
643
|
+
y: d.value.height + e.value.style.chart.axes.x.name.offsetY,
|
|
644
644
|
"font-size": u.value.xAxisName,
|
|
645
645
|
fill: e.value.style.chart.axes.x.name.color,
|
|
646
646
|
"font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
647
647
|
"text-anchor": "middle"
|
|
648
|
-
},
|
|
648
|
+
}, S(e.value.style.chart.axes.x.name.text), 9, Ut)) : v("", !0),
|
|
649
649
|
e.value.style.chart.grid.xAxis.show ? (s(), r("line", {
|
|
650
650
|
key: 8,
|
|
651
651
|
x1: n.value.left,
|
|
@@ -655,7 +655,7 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
655
655
|
stroke: e.value.style.chart.grid.xAxis.stroke,
|
|
656
656
|
"stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
|
|
657
657
|
"stroke-linecap": "round"
|
|
658
|
-
}, null, 8,
|
|
658
|
+
}, null, 8, Gt)) : v("", !0),
|
|
659
659
|
e.value.style.chart.grid.yAxis.show ? (s(), r("line", {
|
|
660
660
|
key: 9,
|
|
661
661
|
x1: n.value.left,
|
|
@@ -665,15 +665,15 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
665
665
|
stroke: e.value.style.chart.grid.yAxis.stroke,
|
|
666
666
|
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
667
667
|
"stroke-linecap": "round"
|
|
668
|
-
}, null, 8,
|
|
669
|
-
(s(!0), r(b, null, k(
|
|
668
|
+
}, null, 8, Vt)) : v("", !0),
|
|
669
|
+
(s(!0), r(b, null, k(z.value, (l, c) => (s(), r("g", null, [
|
|
670
670
|
e.value.style.chart.paths.show ? (s(), r("g", {
|
|
671
671
|
key: 0,
|
|
672
|
-
style:
|
|
673
|
-
opacity:
|
|
672
|
+
style: $({
|
|
673
|
+
opacity: _.value === null ? 1 : 0.3
|
|
674
674
|
})
|
|
675
675
|
}, [
|
|
676
|
-
|
|
676
|
+
T("path", {
|
|
677
677
|
d: l.path,
|
|
678
678
|
stroke: e.value.style.chart.backgroundColor,
|
|
679
679
|
"stroke-width": e.value.style.chart.paths.strokeWidth + 4,
|
|
@@ -681,8 +681,8 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
681
681
|
"stroke-linecap": "round",
|
|
682
682
|
"stroke-linejoin": "round",
|
|
683
683
|
class: F({ animated: e.value.useCssAnimation })
|
|
684
|
-
}, null, 10,
|
|
685
|
-
|
|
684
|
+
}, null, 10, qt),
|
|
685
|
+
T("path", {
|
|
686
686
|
d: l.path,
|
|
687
687
|
stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
|
|
688
688
|
"stroke-width": e.value.style.chart.paths.strokeWidth,
|
|
@@ -690,7 +690,7 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
690
690
|
"stroke-linecap": "round",
|
|
691
691
|
"stroke-linejoin": "round",
|
|
692
692
|
class: F({ animated: e.value.useCssAnimation })
|
|
693
|
-
}, null, 10,
|
|
693
|
+
}, null, 10, Zt)
|
|
694
694
|
], 4)) : v("", !0),
|
|
695
695
|
(s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
|
|
696
696
|
cx: o.x,
|
|
@@ -698,7 +698,7 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
698
698
|
fill: e.value.style.chart.backgroundColor,
|
|
699
699
|
r: u.value.plots,
|
|
700
700
|
stroke: "none"
|
|
701
|
-
}, null, 8,
|
|
701
|
+
}, null, 8, Jt))), 256)),
|
|
702
702
|
(s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
|
|
703
703
|
cx: o.x,
|
|
704
704
|
cy: o.y,
|
|
@@ -707,12 +707,12 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
707
707
|
stroke: e.value.style.chart.plots.stroke,
|
|
708
708
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
709
709
|
class: F({ animated: e.value.useCssAnimation }),
|
|
710
|
-
style:
|
|
711
|
-
opacity:
|
|
710
|
+
style: $({
|
|
711
|
+
opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
|
|
712
712
|
transition: "opacity 0.2s ease-in-out"
|
|
713
713
|
})
|
|
714
|
-
}, null, 14,
|
|
715
|
-
e.value.style.chart.plots.labels.show ? (s(), r("g",
|
|
714
|
+
}, null, 14, Kt))), 256)),
|
|
715
|
+
e.value.style.chart.plots.labels.show ? (s(), r("g", Qt, [
|
|
716
716
|
(s(!0), r(b, null, k(l.plots, (o) => (s(), r("text", {
|
|
717
717
|
x: o.x + e.value.style.chart.plots.labels.offsetX,
|
|
718
718
|
y: o.y + e.value.style.chart.plots.labels.offsetY + u.value.plots + u.value.labels,
|
|
@@ -721,52 +721,52 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
721
721
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
722
722
|
"text-anchor": "middle",
|
|
723
723
|
class: F({ animated: e.value.useCssAnimation }),
|
|
724
|
-
style:
|
|
725
|
-
opacity:
|
|
724
|
+
style: $({
|
|
725
|
+
opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
|
|
726
726
|
transition: "opacity 0.2s ease-in-out"
|
|
727
727
|
})
|
|
728
|
-
},
|
|
728
|
+
}, S(o.label), 15, el))), 256))
|
|
729
729
|
])) : v("", !0),
|
|
730
|
-
e.value.style.chart.plots.indexLabels.show ? (s(), r("g",
|
|
731
|
-
(s(!0), r(b, null, k(l.plots, (o,
|
|
730
|
+
e.value.style.chart.plots.indexLabels.show ? (s(), r("g", tl, [
|
|
731
|
+
(s(!0), r(b, null, k(l.plots, (o, L) => (s(), r("text", {
|
|
732
732
|
x: o.x + e.value.style.chart.plots.indexLabels.offsetX,
|
|
733
733
|
y: o.y + e.value.style.chart.plots.indexLabels.offsetY + u.value.indexLabels / 3,
|
|
734
734
|
"font-size": u.value.indexLabels,
|
|
735
735
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
736
|
-
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(
|
|
736
|
+
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(ft)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
737
737
|
"text-anchor": "middle",
|
|
738
738
|
class: F({ animated: e.value.useCssAnimation }),
|
|
739
|
-
style:
|
|
740
|
-
opacity:
|
|
739
|
+
style: $({
|
|
740
|
+
opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
|
|
741
741
|
transition: "opacity 0.2s ease-in-out"
|
|
742
742
|
})
|
|
743
|
-
},
|
|
743
|
+
}, S(e.value.style.chart.plots.indexLabels.startAtZero ? L : L + 1), 15, ll))), 256))
|
|
744
744
|
])) : v("", !0)
|
|
745
745
|
]))), 256)),
|
|
746
|
-
(s(!0), r(b, null, k(
|
|
746
|
+
(s(!0), r(b, null, k(z.value, (l) => (s(), r("g", null, [
|
|
747
747
|
(s(!0), r(b, null, k(l.plots, (c, o) => (s(), r("circle", {
|
|
748
748
|
cx: c.x,
|
|
749
749
|
cy: c.y,
|
|
750
750
|
fill: "transparent",
|
|
751
751
|
r: u.value.plots,
|
|
752
752
|
stroke: "none",
|
|
753
|
-
onMouseenter: (
|
|
753
|
+
onMouseenter: (L) => Qe({
|
|
754
754
|
datapoint: c,
|
|
755
755
|
plotIndex: o,
|
|
756
756
|
seriesIndex: l.seriesIndex
|
|
757
757
|
}),
|
|
758
|
-
onMouseleave: a[0] || (a[0] = (
|
|
759
|
-
|
|
758
|
+
onMouseleave: a[0] || (a[0] = (L) => {
|
|
759
|
+
Z.value = !1, _.value = null;
|
|
760
760
|
}),
|
|
761
|
-
onClick: () =>
|
|
762
|
-
}, null, 40,
|
|
761
|
+
onClick: () => Je(c)
|
|
762
|
+
}, null, 40, al))), 256))
|
|
763
763
|
]))), 256)),
|
|
764
|
-
x(t.$slots, "svg", { svg:
|
|
765
|
-
], 12,
|
|
766
|
-
t.$slots.watermark ? (s(), r("div",
|
|
767
|
-
x(t.$slots, "watermark", X(D({ isPrinting: i(
|
|
764
|
+
x(t.$slots, "svg", { svg: d.value }, void 0, !0)
|
|
765
|
+
], 12, zt)) : v("", !0),
|
|
766
|
+
t.$slots.watermark ? (s(), r("div", sl, [
|
|
767
|
+
x(t.$slots, "watermark", X(D({ isPrinting: i(fe) || i(xe) })), void 0, !0)
|
|
768
768
|
])) : v("", !0),
|
|
769
|
-
w.value ? v("", !0) : (s(), O(i(
|
|
769
|
+
w.value ? v("", !0) : (s(), O(i(De), {
|
|
770
770
|
key: 6,
|
|
771
771
|
config: {
|
|
772
772
|
type: "historyPlot",
|
|
@@ -778,42 +778,42 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
}, null, 8, ["config"])),
|
|
781
|
-
|
|
781
|
+
T("div", {
|
|
782
782
|
ref_key: "chartLegend",
|
|
783
|
-
ref:
|
|
783
|
+
ref: ae
|
|
784
784
|
}, [
|
|
785
|
-
e.value.style.chart.legend.show && w.value ? (s(), O(
|
|
786
|
-
key: `legend_${
|
|
787
|
-
legendSet:
|
|
788
|
-
config:
|
|
785
|
+
e.value.style.chart.legend.show && w.value ? (s(), O(Mt, {
|
|
786
|
+
key: `legend_${se.value}`,
|
|
787
|
+
legendSet: be.value,
|
|
788
|
+
config: Ze.value,
|
|
789
789
|
onClickMarker: a[1] || (a[1] = ({ legend: l }) => {
|
|
790
|
-
|
|
790
|
+
ge(l.seriesIndex), ke(l);
|
|
791
791
|
})
|
|
792
792
|
}, {
|
|
793
793
|
item: m(({ legend: l, index: c }) => [
|
|
794
|
-
|
|
794
|
+
T("div", {
|
|
795
795
|
onClick: (o) => {
|
|
796
|
-
l.segregate(),
|
|
796
|
+
l.segregate(), ke(l);
|
|
797
797
|
},
|
|
798
|
-
style:
|
|
799
|
-
},
|
|
798
|
+
style: $(`opacity:${g.value.includes(l.seriesIndex) ? 0.5 : 1}`)
|
|
799
|
+
}, S(l.name), 13, ol)
|
|
800
800
|
]),
|
|
801
801
|
_: 1
|
|
802
802
|
}, 8, ["legendSet", "config"])) : x(t.$slots, "legend", {
|
|
803
803
|
key: 1,
|
|
804
|
-
legend:
|
|
804
|
+
legend: be.value
|
|
805
805
|
}, void 0, !0)
|
|
806
806
|
], 512),
|
|
807
807
|
t.$slots.source ? (s(), r("div", {
|
|
808
808
|
key: 7,
|
|
809
809
|
ref_key: "source",
|
|
810
|
-
ref:
|
|
810
|
+
ref: ue,
|
|
811
811
|
dir: "auto"
|
|
812
812
|
}, [
|
|
813
813
|
x(t.$slots, "source", {}, void 0, !0)
|
|
814
814
|
], 512)) : v("", !0),
|
|
815
|
-
|
|
816
|
-
show: C.value.showTooltip &&
|
|
815
|
+
Me(i(Ye), {
|
|
816
|
+
show: C.value.showTooltip && Z.value,
|
|
817
817
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
818
818
|
color: e.value.style.chart.tooltip.color,
|
|
819
819
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -824,19 +824,19 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
824
824
|
position: e.value.style.chart.tooltip.position,
|
|
825
825
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
826
826
|
parent: R.value,
|
|
827
|
-
content:
|
|
827
|
+
content: J.value,
|
|
828
828
|
isCustom: W.value,
|
|
829
829
|
isFullscreen: E.value
|
|
830
830
|
}, {
|
|
831
831
|
"tooltip-before": m(() => [
|
|
832
|
-
x(t.$slots, "tooltip-before", X(D({ ...
|
|
832
|
+
x(t.$slots, "tooltip-before", X(D({ ...Q.value })), void 0, !0)
|
|
833
833
|
]),
|
|
834
834
|
"tooltip-after": m(() => [
|
|
835
|
-
x(t.$slots, "tooltip-after", X(D({ ...
|
|
835
|
+
x(t.$slots, "tooltip-after", X(D({ ...Q.value })), void 0, !0)
|
|
836
836
|
]),
|
|
837
837
|
_: 3
|
|
838
838
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
839
|
-
w.value ? (s(), O(i(
|
|
839
|
+
w.value ? (s(), O(i(Pe), {
|
|
840
840
|
key: 8,
|
|
841
841
|
hideDetails: "",
|
|
842
842
|
config: {
|
|
@@ -853,8 +853,8 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
853
853
|
}
|
|
854
854
|
}, {
|
|
855
855
|
content: m(() => [
|
|
856
|
-
(s(), O(i(
|
|
857
|
-
key: `table_${
|
|
856
|
+
(s(), O(i(Ie), {
|
|
857
|
+
key: `table_${oe.value}`,
|
|
858
858
|
colNames: H.value.colNames,
|
|
859
859
|
head: H.value.head,
|
|
860
860
|
body: H.value.body,
|
|
@@ -863,22 +863,22 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
|
|
|
863
863
|
onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
|
|
864
864
|
}, {
|
|
865
865
|
th: m(({ th: l }) => [
|
|
866
|
-
|
|
866
|
+
T("div", {
|
|
867
867
|
innerHTML: l,
|
|
868
868
|
style: { display: "flex", "align-items": "center" }
|
|
869
|
-
}, null, 8,
|
|
869
|
+
}, null, 8, rl)
|
|
870
870
|
]),
|
|
871
871
|
td: m(({ td: l }) => [
|
|
872
|
-
|
|
872
|
+
ot(S(l.name || l), 1)
|
|
873
873
|
]),
|
|
874
874
|
_: 1
|
|
875
875
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
876
876
|
]),
|
|
877
877
|
_: 1
|
|
878
878
|
}, 8, ["config"])) : v("", !0)
|
|
879
|
-
], 46,
|
|
879
|
+
], 46, St));
|
|
880
880
|
}
|
|
881
|
-
},
|
|
881
|
+
}, ml = /* @__PURE__ */ Tt(nl, [["__scopeId", "data-v-c53613f6"]]);
|
|
882
882
|
export {
|
|
883
|
-
|
|
883
|
+
ml as default
|
|
884
884
|
};
|