vue-data-ui 3.5.0 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-Y7t79Jtq.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-BzH_LEA3.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-CReNavA0.js} +23 -9
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-BRaq4hRp.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-BB4ii8Nt.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-BmFTVF1a.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-8bUepd28.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-CcpaXBNK.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BvT4scFv.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-CMP7UL6z.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-CzOcKsDj.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-S787oASt.js} +375 -355
- package/dist/vue-ui-chord-Dl9Y4mcz.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-CU09BzOV.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-C3yD_TUr.js} +1 -1
- package/dist/vue-ui-dashboard-BfEcVRxQ.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-pRh179Gg.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-B_tEm4dT.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-DiGhMwMO.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-BlF3CLbN.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-BQi5L8mJ.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-CM_6Sare.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-BnZA62Li.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-DAk72bez.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BQzQlUJ8.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-C9MhHWpp.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-BYQh3E8U.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-jcrPjW4C.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-DTM98mRN.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-Bd1OXvl3.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-DuoiTsYn.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-BTswQFjz.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-D-1U2Qgl.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-D-7VFHas.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-CeM23s0z.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-C0RMQzjC.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-BSfxyur3.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-tj97undO.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-C7uV2mIj.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CYMfTlwI.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-C96aj57d.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CtvOXUnx.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-87TORm6s.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-B74geHT3.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-6_Ibziyv.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-BDCocMLI.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-CQ4Zk9-f.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-BlTV9wfn.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-DWESyiqL.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-DK_7X8mL.js} +2 -2
- package/dist/vue-ui-stackbar-BWuw8ff4.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-C1N2n39d.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-CcuoPHgI.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-C9EMEM3Z.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-BAxmZRff.js} +2 -2
- package/dist/vue-ui-thermometer-CDrM-WFq.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BVsUQJz_.js} +3 -3
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-6WLoCHsH.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-B3gfBqD_.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-Bhlqo4xM.js} +219 -199
- package/dist/vue-ui-wheel-CqHw1WuW.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-CKuWZGLv.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-C8KVyDim.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-Cz2qIEfi.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-y4h7gEFp.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as Ge, o as Ve, f as qe, g as Gt, t as Vt, e as qt, h as Jt, p as ee, m as Je, a as Y, d as H, X as Qt, S as Zt, U as Kt, M as el, J as tl, R
|
|
1
|
+
import { defineAsyncComponent as P, ref as v, shallowRef as Ue, computed as h, onMounted as Rt, onBeforeUnmount as Bt, toRefs as Yt, watch as K, watchEffect as Ht, createElementBlock as n, openBlock as o, unref as u, normalizeStyle as L, normalizeClass as X, renderSlot as y, createBlock as F, createCommentVNode as d, createElementVNode as S, createVNode as xe, withCtx as f, normalizeProps as $, guardReactiveProps as _, createSlots as We, Fragment as b, renderList as k, toDisplayString as O, Teleport as Et, resolveDynamicComponent as Ut, mergeProps as Wt, createTextVNode as je, nextTick as jt } from "vue";
|
|
2
|
+
import { c as Ge, o as Ve, f as qe, g as Gt, t as Vt, e as qt, h as Jt, p as ee, m as Je, a as Y, d as H, X as Qt, S as Zt, U as Kt, M as el, J as tl, R, b as ll, O as te, P as al, Q as sl, G as ol } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as Qe, u as nl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as rl, a as Ze } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
4
|
+
import { u as rl, a as Ze } from "./useNestedProp-CReNavA0.js";
|
|
5
|
+
import { u as il, B as ul } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as cl } from "./usePrinter-DTzqpYKF.js";
|
|
7
7
|
import { u as vl } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as hl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as dl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { u as yl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
11
|
import fl from "./img-BecE5qXd.js";
|
|
12
|
-
import xl from "./Title-
|
|
12
|
+
import xl from "./Title-BzH_LEA3.js";
|
|
13
13
|
import { t as pl } from "./themes-AUNCOb2G.js";
|
|
14
14
|
import gl from "./Legend-G6GMcdAc.js";
|
|
15
15
|
import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"], Al = { key: 1 }, Sl = ["id"],
|
|
16
|
+
const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"], Al = { key: 1 }, Sl = ["id"], $l = ["stop-color"], _l = ["stop-color"], Tl = ["stop-color"], Ll = { key: 2 }, Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = { key: 3 }, Ol = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Il = ["x", "y", "fill", "font-size"], Nl = ["transform", "font-size", "fill", "font-weight"], Pl = { key: 6 }, Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dl = { key: 7 }, Xl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Rl = ["transform", "fill", "font-size", "text-anchor"], Bl = ["x", "y", "font-size", "fill", "font-weight"], Yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], El = ["d", "stroke", "stroke-width"], Ul = ["d", "stroke", "stroke-width"], Wl = ["cx", "cy", "fill", "r"], jl = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Gl = { key: 1 }, Vl = ["x", "y", "font-size", "fill", "font-weight"], ql = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Jl = { key: 2 }, Ql = ["x", "y", "font-size", "font-weight", "fill"], Zl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Kl = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, ea = ["id"], ta = ["onClick"], la = ["innerHTML"], aa = {
|
|
@@ -34,20 +34,20 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend", "selectDatapoint"],
|
|
36
36
|
setup(Ke, { expose: et, emit: tt }) {
|
|
37
|
-
const lt =
|
|
38
|
-
get: () => !!
|
|
37
|
+
const lt = P(() => import("./Tooltip-oWCO1HKy.js")), at = P(() => import("./BaseIcon-BmMbm4d0.js")), st = P(() => import("./vue-ui-accordion-BmFTVF1a.js")), ot = P(() => import("./DataTable-BT7VF2ua.js")), nt = P(() => import("./PenAndPaper-SZQIAgkg.js")), rt = P(() => import("./UserOptions-CGnQt6Fd.js")), it = P(() => import("./PackageVersion-Y7t79Jtq.js")), ut = P(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_history_plot: ct } = rl(), x = Ke, M = v(null), pe = v(null), ge = v(0), me = v(null), be = v(0), ke = v(0), we = v(0), I = Ue(null), B = Ue(null), Ce = v(null), z = v(Ge()), le = v(!1), ae = v(""), m = v([]), E = v(!1), A = v(null), U = v(!1), Ae = v(null), Se = v(!1), W = v(null), se = v(null), oe = v(null), ne = v(null), G = v(null), re = v(null), V = h({
|
|
38
|
+
get: () => !!x.dataset && x.dataset.length,
|
|
39
39
|
set: (t) => t
|
|
40
|
-
}),
|
|
40
|
+
}), $e = tt;
|
|
41
41
|
Rt(() => {
|
|
42
42
|
Se.value = !0, Te();
|
|
43
43
|
});
|
|
44
|
-
const
|
|
44
|
+
const _e = h(() => !!e.value.debug);
|
|
45
45
|
function Te() {
|
|
46
|
-
if (Ve(
|
|
46
|
+
if (Ve(x.dataset) ? (qe({
|
|
47
47
|
componentName: "VueUiHistoryPlot",
|
|
48
48
|
type: "dataset",
|
|
49
|
-
debug:
|
|
50
|
-
}),
|
|
49
|
+
debug: _e.value
|
|
50
|
+
}), ue.value = !0) : x.dataset.forEach((t, a) => {
|
|
51
51
|
Gt({
|
|
52
52
|
datasetObject: t,
|
|
53
53
|
requiredAttributes: ["name", "values"]
|
|
@@ -57,56 +57,56 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
57
57
|
type: "datasetSerieAttribute",
|
|
58
58
|
property: l,
|
|
59
59
|
index: a,
|
|
60
|
-
debug:
|
|
60
|
+
debug: _e.value
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
|
-
}), Ve(
|
|
63
|
+
}), Ve(x.dataset) || (ue.value = e.value.loading), e.value.responsive) {
|
|
64
64
|
const t = Qe(() => {
|
|
65
65
|
const { width: a, height: l } = nl({
|
|
66
|
-
chart:
|
|
66
|
+
chart: M.value,
|
|
67
67
|
title: e.value.style.chart.title.text ? pe.value : null,
|
|
68
68
|
noTitle: Ce.value,
|
|
69
69
|
legend: e.value.style.chart.legend.show ? me.value : null,
|
|
70
70
|
source: Ae.value
|
|
71
71
|
});
|
|
72
72
|
requestAnimationFrame(() => {
|
|
73
|
-
|
|
73
|
+
p.value.width = a, p.value.height = l, e.value.responsiveProportionalSizing ? (r.value.plots = R({
|
|
74
74
|
relator: Math.min(a, l),
|
|
75
75
|
adjuster: 600,
|
|
76
76
|
source: e.value.style.chart.plots.radius,
|
|
77
77
|
threshold: 3,
|
|
78
78
|
fallback: 3
|
|
79
|
-
}), r.value.indexLabels =
|
|
79
|
+
}), r.value.indexLabels = R({
|
|
80
80
|
relator: Math.min(a, l),
|
|
81
81
|
adjuster: 600,
|
|
82
82
|
source: e.value.style.chart.plots.indexLabels.fontSize,
|
|
83
83
|
threshold: 6,
|
|
84
84
|
fallback: 6
|
|
85
|
-
}), r.value.labels =
|
|
85
|
+
}), r.value.labels = R({
|
|
86
86
|
relator: Math.min(a, l),
|
|
87
87
|
adjuster: 600,
|
|
88
88
|
source: e.value.style.chart.plots.labels.fontSize,
|
|
89
89
|
threshold: 6,
|
|
90
90
|
fallback: 6
|
|
91
|
-
}), r.value.xAxisLabels =
|
|
91
|
+
}), r.value.xAxisLabels = R({
|
|
92
92
|
relator: Math.min(a, l),
|
|
93
93
|
adjuster: 600,
|
|
94
94
|
source: e.value.style.chart.axes.x.labels.fontSize,
|
|
95
95
|
threshold: 6,
|
|
96
96
|
fallback: 6
|
|
97
|
-
}), r.value.xAxisName =
|
|
97
|
+
}), r.value.xAxisName = R({
|
|
98
98
|
relator: Math.min(a, l),
|
|
99
99
|
adjuster: 600,
|
|
100
100
|
source: e.value.style.chart.axes.x.name.fontSize,
|
|
101
101
|
threshold: 6,
|
|
102
102
|
fallback: 6
|
|
103
|
-
}), r.value.yAxisLabels =
|
|
103
|
+
}), r.value.yAxisLabels = R({
|
|
104
104
|
relator: Math.min(a, l),
|
|
105
105
|
adjuster: 600,
|
|
106
106
|
source: e.value.style.chart.axes.y.labels.fontSize,
|
|
107
107
|
threshold: 6,
|
|
108
108
|
fallback: 6
|
|
109
|
-
}), r.value.yAxisName =
|
|
109
|
+
}), r.value.yAxisName = R({
|
|
110
110
|
relator: Math.min(a, l),
|
|
111
111
|
adjuster: 600,
|
|
112
112
|
source: e.value.style.chart.axes.y.name.fontSize,
|
|
@@ -115,30 +115,30 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
115
115
|
})) : (r.value.plots = e.value.style.chart.plots.radius, r.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, r.value.labels = e.value.style.chart.plots.labels.fontSize, r.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, r.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, r.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, r.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
|
-
|
|
118
|
+
I.value && (B.value && I.value.unobserve(B.value), I.value.disconnect()), I.value = new ResizeObserver(t), B.value = M.value.parentNode, I.value.observe(B.value);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
Bt(() => {
|
|
122
|
-
|
|
122
|
+
I.value && (B.value && I.value.unobserve(B.value), I.value.disconnect());
|
|
123
123
|
});
|
|
124
|
-
function
|
|
124
|
+
function ie() {
|
|
125
125
|
const t = Ze({
|
|
126
|
-
userConfig:
|
|
126
|
+
userConfig: x.config,
|
|
127
127
|
defaultConfig: ct
|
|
128
128
|
});
|
|
129
129
|
let a = {};
|
|
130
130
|
return t.theme ? a = {
|
|
131
131
|
...Ze({
|
|
132
|
-
userConfig: pl.vue_ui_history_plot[t.theme] ||
|
|
132
|
+
userConfig: pl.vue_ui_history_plot[t.theme] || x.config,
|
|
133
133
|
defaultConfig: t
|
|
134
134
|
}),
|
|
135
135
|
customPalette: ll[t.theme] || ee
|
|
136
|
-
} : a = t,
|
|
136
|
+
} : a = t, x.config && te(x.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = x.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, x.config && te(x.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = x.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, x.config && te(x.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = x.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, x.config && te(x.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = x.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
|
|
137
137
|
}
|
|
138
|
-
const e = v(
|
|
139
|
-
...Yt(
|
|
138
|
+
const e = v(ie()), { loading: N, FINAL_DATASET: vt, manualLoading: ue } = il({
|
|
139
|
+
...Yt(x),
|
|
140
140
|
FINAL_CONFIG: e,
|
|
141
|
-
prepareConfig:
|
|
141
|
+
prepareConfig: ie,
|
|
142
142
|
skeletonDataset: [
|
|
143
143
|
{
|
|
144
144
|
name: "",
|
|
@@ -204,13 +204,13 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
204
204
|
}
|
|
205
205
|
})
|
|
206
206
|
}), { userOptionsVisible: ce, setUserOptionsVisibility: Le, keepUserOptionState: Me } = hl({ config: e.value }), { svgRef: ve } = dl({ config: e.value.style.chart.title });
|
|
207
|
-
K(() =>
|
|
208
|
-
|
|
209
|
-
}, { deep: !0 }), K(() =>
|
|
210
|
-
Array.isArray(t) && t.length > 0 && (
|
|
207
|
+
K(() => x.config, (t) => {
|
|
208
|
+
N.value || (e.value = ie()), ce.value = !e.value.userOptions.showOnChartHover, Te(), ge.value += 1, ke.value += 1, be.value += 1, p.value.height = e.value.style.chart.height, p.value.width = e.value.style.chart.width, r.value.plots = e.value.style.chart.plots.radius, r.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, r.value.labels = e.value.style.chart.plots.labels.fontSize, r.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, r.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, r.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, r.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
209
|
+
}, { deep: !0 }), K(() => x.dataset, (t) => {
|
|
210
|
+
Array.isArray(t) && t.length > 0 && (ue.value = !1);
|
|
211
211
|
}, { deep: !0 });
|
|
212
212
|
const { isPrinting: ze, isImaging: Oe, generatePdf: Ie, generateImage: Ne } = cl({
|
|
213
|
-
elementId: `history_plot_${
|
|
213
|
+
elementId: `history_plot_${z.value}`,
|
|
214
214
|
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
215
215
|
options: e.value.userOptions.print
|
|
216
216
|
}), ht = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), dt = h(() => qt(e.value.customPalette)), C = v({
|
|
@@ -223,15 +223,15 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
223
223
|
showTooltip: e.value.style.chart.tooltip.show
|
|
224
224
|
};
|
|
225
225
|
}, { immediate: !0 });
|
|
226
|
-
const
|
|
226
|
+
const p = v({
|
|
227
227
|
height: e.value.style.chart.height,
|
|
228
228
|
width: e.value.style.chart.width
|
|
229
|
-
}), yt = h(() =>
|
|
229
|
+
}), yt = h(() => p.value.width), ft = h(() => p.value.height);
|
|
230
230
|
function xt() {
|
|
231
231
|
let t = 0;
|
|
232
|
-
re.value && (t = Array.from(re.value.querySelectorAll("text")).reduce((
|
|
232
|
+
re.value && (t = Array.from(re.value.querySelectorAll("text")).reduce((i, s) => {
|
|
233
233
|
const w = s.getComputedTextLength();
|
|
234
|
-
return w >
|
|
234
|
+
return w > i ? w : i;
|
|
235
235
|
}, 0));
|
|
236
236
|
const a = ne.value ? ne.value.getBoundingClientRect().width : 0;
|
|
237
237
|
return t + a + (a ? 24 : 0);
|
|
@@ -242,8 +242,8 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
242
242
|
Ht((t) => {
|
|
243
243
|
const a = G.value;
|
|
244
244
|
if (!a) return;
|
|
245
|
-
const l = new ResizeObserver((
|
|
246
|
-
pt(
|
|
245
|
+
const l = new ResizeObserver((i) => {
|
|
246
|
+
pt(i[0].contentRect.height);
|
|
247
247
|
});
|
|
248
248
|
l.observe(a), t(() => l.disconnect());
|
|
249
249
|
});
|
|
@@ -253,14 +253,14 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
253
253
|
let a = 0;
|
|
254
254
|
return G.value && (a = Pe.value), t + a;
|
|
255
255
|
}), c = h(() => {
|
|
256
|
-
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = xt(),
|
|
256
|
+
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = xt(), i = e.value.style.chart.plots.radius;
|
|
257
257
|
return {
|
|
258
258
|
left: t + l + e.value.style.chart.axes.y.name.offsetX,
|
|
259
|
-
top: a +
|
|
260
|
-
right:
|
|
261
|
-
bottom:
|
|
262
|
-
width:
|
|
263
|
-
height:
|
|
259
|
+
top: a + i,
|
|
260
|
+
right: p.value.width - e.value.style.chart.padding.right - i - e.value.style.chart.axes.y.name.offsetX,
|
|
261
|
+
bottom: p.value.height - e.value.style.chart.padding.bottom - Fe.value - i - e.value.style.chart.axes.x.name.offsetY,
|
|
262
|
+
width: p.value.width - t - e.value.style.chart.padding.right - l - i - e.value.style.chart.axes.y.name.offsetX,
|
|
263
|
+
height: p.value.height - a - e.value.style.chart.padding.bottom - Fe.value - i * 2 - e.value.style.chart.axes.x.name.offsetY
|
|
264
264
|
};
|
|
265
265
|
}), r = v({
|
|
266
266
|
plots: e.value.style.chart.plots.radius,
|
|
@@ -270,17 +270,17 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
270
270
|
xAxisName: e.value.style.chart.axes.x.name.fontSize,
|
|
271
271
|
yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
|
|
272
272
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
273
|
-
}),
|
|
273
|
+
}), T = h(() => vt.value.map((t, a) => ({
|
|
274
274
|
...t,
|
|
275
275
|
color: t.color ? Jt(t.color) : dt.value[a] || ee[a] || ee[a % ee.length],
|
|
276
276
|
seriesIndex: a
|
|
277
|
-
}))), gt = h(() => Math.max(...
|
|
278
|
-
const t = Math.min(...
|
|
277
|
+
}))), gt = h(() => Math.max(...T.value.filter((t) => !m.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), mt = h(() => {
|
|
278
|
+
const t = Math.min(...T.value.filter((a) => !m.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
279
279
|
return t < 0 ? t : 0;
|
|
280
|
-
}), bt = h(() => Math.max(...
|
|
281
|
-
const t = Math.min(...
|
|
280
|
+
}), bt = h(() => Math.max(...T.value.filter((t) => !m.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), kt = h(() => {
|
|
281
|
+
const t = Math.min(...T.value.filter((a) => !m.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
282
282
|
return t < 0 ? t : 0;
|
|
283
|
-
}),
|
|
283
|
+
}), g = h(() => {
|
|
284
284
|
const t = Je(
|
|
285
285
|
e.value.style.chart.axes.x.scaleMin === null ? mt.value : e.value.style.chart.axes.x.scaleMin,
|
|
286
286
|
e.value.style.chart.axes.x.scaleMax === null ? gt.value : e.value.style.chart.axes.x.scaleMax,
|
|
@@ -308,14 +308,14 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
308
308
|
};
|
|
309
309
|
});
|
|
310
310
|
function wt(t) {
|
|
311
|
-
const a =
|
|
312
|
-
return c.value.left + ((t || 0) + a) / (
|
|
311
|
+
const a = g.value.x.min < 0 ? Math.abs(g.value.x.min) : g.value.x.min > 0 ? -g.value.x.min : 0;
|
|
312
|
+
return c.value.left + ((t || 0) + a) / (g.value.x.max + a) * c.value.width;
|
|
313
313
|
}
|
|
314
314
|
function Ct(t) {
|
|
315
|
-
const a =
|
|
316
|
-
return c.value.bottom - ((t || 0) + a) / (
|
|
315
|
+
const a = g.value.y.min < 0 ? Math.abs(g.value.y.min) : g.value.y.min > 0 ? -g.value.y.min : 0;
|
|
316
|
+
return c.value.bottom - ((t || 0) + a) / (g.value.y.max + a) * c.value.height;
|
|
317
317
|
}
|
|
318
|
-
const
|
|
318
|
+
const D = h(() => T.value.filter((t) => !m.value.includes(t.seriesIndex)).map((t, a) => {
|
|
319
319
|
const l = t.values.map((s, w) => ({
|
|
320
320
|
valueX: s.x,
|
|
321
321
|
valueY: s.y,
|
|
@@ -325,20 +325,20 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
325
325
|
color: t.color,
|
|
326
326
|
seriesName: t.name,
|
|
327
327
|
id: Ge()
|
|
328
|
-
})),
|
|
328
|
+
})), i = l.map((s) => `${s.x},${s.y} `).join("").trim();
|
|
329
329
|
return {
|
|
330
330
|
...t,
|
|
331
331
|
plots: l,
|
|
332
|
-
path: `M${
|
|
332
|
+
path: `M${i}`
|
|
333
333
|
};
|
|
334
334
|
}));
|
|
335
335
|
function q(t) {
|
|
336
336
|
m.value.includes(t) ? m.value = m.value.filter((a) => a !== t) : m.value.push(t);
|
|
337
337
|
}
|
|
338
338
|
function De(t) {
|
|
339
|
-
if (!
|
|
339
|
+
if (!T.value.length)
|
|
340
340
|
return e.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null;
|
|
341
|
-
const a =
|
|
341
|
+
const a = T.value.find((l) => l.name === t);
|
|
342
342
|
return a || (e.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${t}"`), null);
|
|
343
343
|
}
|
|
344
344
|
function At(t) {
|
|
@@ -349,13 +349,13 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
349
349
|
const a = De(t);
|
|
350
350
|
a !== null && (m.value.includes(a.seriesIndex) || q(a.seriesIndex));
|
|
351
351
|
}
|
|
352
|
-
const he = h(() =>
|
|
352
|
+
const he = h(() => T.value.map((t) => ({
|
|
353
353
|
...t,
|
|
354
354
|
opacity: m.value.includes(t.seriesIndex) ? 0.5 : 1,
|
|
355
355
|
segregate: () => q(t.seriesIndex),
|
|
356
356
|
isSegregated: m.value.includes(t.seriesIndex),
|
|
357
357
|
shape: "circle"
|
|
358
|
-
}))),
|
|
358
|
+
}))), $t = h(() => ({
|
|
359
359
|
cy: "history-plot-div-legend",
|
|
360
360
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
361
361
|
color: e.value.style.chart.legend.color,
|
|
@@ -363,11 +363,11 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
363
363
|
paddingBottom: 12,
|
|
364
364
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
365
365
|
}));
|
|
366
|
-
function
|
|
367
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }),
|
|
366
|
+
function _t({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
367
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), $e("selectDatapoint", t);
|
|
368
368
|
}
|
|
369
369
|
function Xe(t) {
|
|
370
|
-
|
|
370
|
+
$e("selectLegend", {
|
|
371
371
|
...t,
|
|
372
372
|
isSegregated: !t.isSegregated,
|
|
373
373
|
opacity: t.isSegregated ? 1 : 0.5
|
|
@@ -381,15 +381,15 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
381
381
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), le.value = !1, A.value = null;
|
|
382
382
|
}
|
|
383
383
|
function Lt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
384
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), de.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series:
|
|
385
|
-
const
|
|
386
|
-
if (U.value = !1, ol(
|
|
384
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), de.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: T.value }, A.value = t;
|
|
385
|
+
const i = e.value.style.chart.tooltip.customFormat;
|
|
386
|
+
if (U.value = !1, ol(i))
|
|
387
387
|
try {
|
|
388
|
-
const s =
|
|
388
|
+
const s = i({
|
|
389
389
|
seriesIndex: l,
|
|
390
390
|
datapoint: t,
|
|
391
391
|
plotIndex: a,
|
|
392
|
-
series:
|
|
392
|
+
series: T.value,
|
|
393
393
|
config: e.value
|
|
394
394
|
});
|
|
395
395
|
typeof s == "string" && (ae.value = s, U.value = !0);
|
|
@@ -420,7 +420,7 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
420
420
|
}
|
|
421
421
|
le.value = !0;
|
|
422
422
|
}
|
|
423
|
-
h(() => ({ head:
|
|
423
|
+
h(() => ({ head: D.value.map((a) => ({
|
|
424
424
|
name: a.name,
|
|
425
425
|
color: a.color
|
|
426
426
|
})) }));
|
|
@@ -430,7 +430,7 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
430
430
|
e.value.table.columnNames.datapoint,
|
|
431
431
|
e.value.table.columnNames.x,
|
|
432
432
|
e.value.table.columnNames.y
|
|
433
|
-
], a =
|
|
433
|
+
], a = D.value.flatMap((i) => i.plots.map((s) => [
|
|
434
434
|
{
|
|
435
435
|
color: s.color,
|
|
436
436
|
name: s.seriesName
|
|
@@ -483,16 +483,16 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
483
483
|
[e.value.table.columnNames.datapoint],
|
|
484
484
|
[e.value.table.columnNames.x],
|
|
485
485
|
[e.value.table.columnNames.y]
|
|
486
|
-
], l =
|
|
486
|
+
], l = D.value.flatMap((w) => w.plots.map((Z) => [
|
|
487
487
|
[Z.seriesName],
|
|
488
488
|
[Z.label],
|
|
489
489
|
[Z.valueX],
|
|
490
490
|
[Z.valueY]
|
|
491
|
-
])),
|
|
491
|
+
])), i = [
|
|
492
492
|
[e.value.style.chart.title.text],
|
|
493
493
|
[e.value.style.chart.title.subtitle.text],
|
|
494
494
|
a
|
|
495
|
-
].concat(l), s = al(
|
|
495
|
+
].concat(l), s = al(i);
|
|
496
496
|
t ? t(s) : sl({
|
|
497
497
|
csvContent: s,
|
|
498
498
|
title: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
@@ -510,21 +510,21 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
510
510
|
C.value.showTooltip = !C.value.showTooltip;
|
|
511
511
|
}
|
|
512
512
|
function Mt() {
|
|
513
|
-
return
|
|
513
|
+
return D.value;
|
|
514
514
|
}
|
|
515
515
|
async function zt({ scale: t = 2 } = {}) {
|
|
516
|
-
if (!
|
|
517
|
-
const { width: a, height: l } =
|
|
516
|
+
if (!M.value) return;
|
|
517
|
+
const { width: a, height: l } = M.value.getBoundingClientRect(), i = a / l, { imageUri: s, base64: w } = await fl({ domElement: M.value, base64: !0, img: !0, scale: t });
|
|
518
518
|
return {
|
|
519
519
|
imageUri: s,
|
|
520
520
|
base64: w,
|
|
521
521
|
title: e.value.style.chart.title.text,
|
|
522
522
|
width: a,
|
|
523
523
|
height: l,
|
|
524
|
-
aspectRatio:
|
|
524
|
+
aspectRatio: i
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
|
-
const Ot = h(() =>
|
|
527
|
+
const Ot = h(() => g.value.tickX), It = h(() => ({ start: 0, end: g.value.tickX.length }));
|
|
528
528
|
yl({
|
|
529
529
|
timeLabelsEls: G,
|
|
530
530
|
timeLabels: Ot,
|
|
@@ -541,7 +541,7 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
541
541
|
const j = h(() => {
|
|
542
542
|
const t = e.value.table.useDialog && !e.value.table.show, a = C.value.showTable;
|
|
543
543
|
return {
|
|
544
|
-
component: t ?
|
|
544
|
+
component: t ? ut : st,
|
|
545
545
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
546
546
|
props: t ? {
|
|
547
547
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -549,7 +549,7 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
549
549
|
headerColor: e.value.table.th.color,
|
|
550
550
|
headerBg: e.value.table.th.backgroundColor,
|
|
551
551
|
isFullscreen: E.value,
|
|
552
|
-
fullscreenParent:
|
|
552
|
+
fullscreenParent: M.value,
|
|
553
553
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
554
554
|
} : {
|
|
555
555
|
hideDetails: !0,
|
|
@@ -583,8 +583,8 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
583
583
|
});
|
|
584
584
|
async function Ee({ isCb: t }) {
|
|
585
585
|
if (t) {
|
|
586
|
-
const { blob: a, url: l, text:
|
|
587
|
-
e.value.userOptions.callbacks.svg({ blob: a, url: l, text:
|
|
586
|
+
const { blob: a, url: l, text: i, dataUrl: s } = await Xt();
|
|
587
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: i, dataUrl: s });
|
|
588
588
|
} else
|
|
589
589
|
Dt();
|
|
590
590
|
}
|
|
@@ -602,23 +602,43 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
602
602
|
toggleAnnotator: fe,
|
|
603
603
|
toggleFullscreen: Re
|
|
604
604
|
}), (t, a) => (o(), n("div", {
|
|
605
|
-
id: `history_plot_${
|
|
605
|
+
id: `history_plot_${z.value}`,
|
|
606
606
|
ref_key: "historyPlotChart",
|
|
607
|
-
ref:
|
|
608
|
-
class:
|
|
609
|
-
style:
|
|
610
|
-
onMouseenter: a[2] || (a[2] = () =>
|
|
611
|
-
onMouseleave: a[3] || (a[3] = () =>
|
|
607
|
+
ref: M,
|
|
608
|
+
class: X({ "vue-data-ui-component": !0, "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": E.value }),
|
|
609
|
+
style: L(`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%" : ""}`),
|
|
610
|
+
onMouseenter: a[2] || (a[2] = () => u(Le)(!0)),
|
|
611
|
+
onMouseleave: a[3] || (a[3] = () => u(Le)(!1))
|
|
612
612
|
}, [
|
|
613
|
-
|
|
614
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
613
|
+
y(t.$slots, "userConfig", {}, void 0, !0),
|
|
614
|
+
e.value.userOptions.buttons.annotator ? (o(), F(u(nt), {
|
|
615
615
|
key: 0,
|
|
616
|
-
svgRef:
|
|
616
|
+
svgRef: u(ve),
|
|
617
617
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
618
618
|
color: e.value.style.chart.color,
|
|
619
619
|
active: Q.value,
|
|
620
620
|
onClose: fe
|
|
621
|
-
},
|
|
621
|
+
}, {
|
|
622
|
+
"annotator-action-close": f(() => [
|
|
623
|
+
y(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
624
|
+
]),
|
|
625
|
+
"annotator-action-color": f(({ color: l }) => [
|
|
626
|
+
y(t.$slots, "annotator-action-color", $(_({ color: l })), void 0, !0)
|
|
627
|
+
]),
|
|
628
|
+
"annotator-action-draw": f(({ mode: l }) => [
|
|
629
|
+
y(t.$slots, "annotator-action-draw", $(_({ mode: l })), void 0, !0)
|
|
630
|
+
]),
|
|
631
|
+
"annotator-action-undo": f(({ disabled: l }) => [
|
|
632
|
+
y(t.$slots, "annotator-action-undo", $(_({ disabled: l })), void 0, !0)
|
|
633
|
+
]),
|
|
634
|
+
"annotator-action-redo": f(({ disabled: l }) => [
|
|
635
|
+
y(t.$slots, "annotator-action-redo", $(_({ disabled: l })), void 0, !0)
|
|
636
|
+
]),
|
|
637
|
+
"annotator-action-delete": f(({ disabled: l }) => [
|
|
638
|
+
y(t.$slots, "annotator-action-delete", $(_({ disabled: l })), void 0, !0)
|
|
639
|
+
]),
|
|
640
|
+
_: 3
|
|
641
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
622
642
|
ht.value ? (o(), n("div", {
|
|
623
643
|
key: 1,
|
|
624
644
|
ref_key: "noTitle",
|
|
@@ -631,9 +651,9 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
631
651
|
ref_key: "chartTitle",
|
|
632
652
|
ref: pe,
|
|
633
653
|
class: "vue-ui-xy-title",
|
|
634
|
-
style:
|
|
654
|
+
style: L(`font-family:${e.value.style.fontFamily}`)
|
|
635
655
|
}, [
|
|
636
|
-
(o(),
|
|
656
|
+
(o(), F(xl, {
|
|
637
657
|
key: `title_${ge.value}`,
|
|
638
658
|
config: {
|
|
639
659
|
title: {
|
|
@@ -648,17 +668,17 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
648
668
|
}, null, 8, ["config"]))
|
|
649
669
|
], 4)) : d("", !0),
|
|
650
670
|
S("div", {
|
|
651
|
-
id: `legend-top-${
|
|
671
|
+
id: `legend-top-${z.value}`
|
|
652
672
|
}, null, 8, kl),
|
|
653
|
-
e.value.userOptions.show && V.value && (
|
|
673
|
+
e.value.userOptions.show && V.value && (u(Me) || u(ce)) ? (o(), F(u(rt), {
|
|
654
674
|
ref_key: "userOptionsRef",
|
|
655
675
|
ref: se,
|
|
656
676
|
key: `user_option_${we.value}`,
|
|
657
677
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
658
678
|
color: e.value.style.chart.color,
|
|
659
|
-
isPrinting:
|
|
660
|
-
isImaging:
|
|
661
|
-
uid:
|
|
679
|
+
isPrinting: u(ze),
|
|
680
|
+
isImaging: u(Oe),
|
|
681
|
+
uid: z.value,
|
|
662
682
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
663
683
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
664
684
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -668,7 +688,7 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
668
688
|
hasLabel: !1,
|
|
669
689
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
670
690
|
isFullscreen: E.value,
|
|
671
|
-
chartElement:
|
|
691
|
+
chartElement: M.value,
|
|
672
692
|
position: e.value.userOptions.position,
|
|
673
693
|
isTooltip: C.value.showTooltip,
|
|
674
694
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
@@ -678,77 +698,77 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
678
698
|
printScale: e.value.userOptions.print.scale,
|
|
679
699
|
tableDialog: e.value.table.useDialog,
|
|
680
700
|
onToggleFullscreen: Re,
|
|
681
|
-
onGeneratePdf:
|
|
701
|
+
onGeneratePdf: u(Ie),
|
|
682
702
|
onGenerateCsv: ye,
|
|
683
|
-
onGenerateImage:
|
|
703
|
+
onGenerateImage: u(Ne),
|
|
684
704
|
onGenerateSvg: Ee,
|
|
685
705
|
onToggleTable: Be,
|
|
686
706
|
onToggleTooltip: Ye,
|
|
687
707
|
onToggleAnnotator: fe,
|
|
688
|
-
style:
|
|
689
|
-
visibility:
|
|
708
|
+
style: L({
|
|
709
|
+
visibility: u(Me) ? u(ce) ? "visible" : "hidden" : "visible"
|
|
690
710
|
})
|
|
691
711
|
}, We({ _: 2 }, [
|
|
692
712
|
t.$slots.menuIcon ? {
|
|
693
713
|
name: "menuIcon",
|
|
694
|
-
fn:
|
|
695
|
-
|
|
714
|
+
fn: f(({ isOpen: l, color: i }) => [
|
|
715
|
+
y(t.$slots, "menuIcon", $(_({ isOpen: l, color: i })), void 0, !0)
|
|
696
716
|
]),
|
|
697
717
|
key: "0"
|
|
698
718
|
} : void 0,
|
|
699
719
|
t.$slots.optionTooltip ? {
|
|
700
720
|
name: "optionTooltip",
|
|
701
|
-
fn:
|
|
702
|
-
|
|
721
|
+
fn: f(() => [
|
|
722
|
+
y(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
703
723
|
]),
|
|
704
724
|
key: "1"
|
|
705
725
|
} : void 0,
|
|
706
726
|
t.$slots.optionPdf ? {
|
|
707
727
|
name: "optionPdf",
|
|
708
|
-
fn:
|
|
709
|
-
|
|
728
|
+
fn: f(() => [
|
|
729
|
+
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
710
730
|
]),
|
|
711
731
|
key: "2"
|
|
712
732
|
} : void 0,
|
|
713
733
|
t.$slots.optionCsv ? {
|
|
714
734
|
name: "optionCsv",
|
|
715
|
-
fn:
|
|
716
|
-
|
|
735
|
+
fn: f(() => [
|
|
736
|
+
y(t.$slots, "optionCsv", {}, void 0, !0)
|
|
717
737
|
]),
|
|
718
738
|
key: "3"
|
|
719
739
|
} : void 0,
|
|
720
740
|
t.$slots.optionImg ? {
|
|
721
741
|
name: "optionImg",
|
|
722
|
-
fn:
|
|
723
|
-
|
|
742
|
+
fn: f(() => [
|
|
743
|
+
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
724
744
|
]),
|
|
725
745
|
key: "4"
|
|
726
746
|
} : void 0,
|
|
727
747
|
t.$slots.optionSvg ? {
|
|
728
748
|
name: "optionSvg",
|
|
729
|
-
fn:
|
|
730
|
-
|
|
749
|
+
fn: f(() => [
|
|
750
|
+
y(t.$slots, "optionSvg", {}, void 0, !0)
|
|
731
751
|
]),
|
|
732
752
|
key: "5"
|
|
733
753
|
} : void 0,
|
|
734
754
|
t.$slots.optionTable ? {
|
|
735
755
|
name: "optionTable",
|
|
736
|
-
fn:
|
|
737
|
-
|
|
756
|
+
fn: f(() => [
|
|
757
|
+
y(t.$slots, "optionTable", {}, void 0, !0)
|
|
738
758
|
]),
|
|
739
759
|
key: "6"
|
|
740
760
|
} : void 0,
|
|
741
761
|
t.$slots.optionFullscreen ? {
|
|
742
762
|
name: "optionFullscreen",
|
|
743
|
-
fn:
|
|
744
|
-
|
|
763
|
+
fn: f(({ toggleFullscreen: l, isFullscreen: i }) => [
|
|
764
|
+
y(t.$slots, "optionFullscreen", $(_({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
|
|
745
765
|
]),
|
|
746
766
|
key: "7"
|
|
747
767
|
} : void 0,
|
|
748
768
|
t.$slots.optionAnnotator ? {
|
|
749
769
|
name: "optionAnnotator",
|
|
750
|
-
fn:
|
|
751
|
-
|
|
770
|
+
fn: f(({ toggleAnnotator: l, isAnnotator: i }) => [
|
|
771
|
+
y(t.$slots, "optionAnnotator", $(_({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
|
|
752
772
|
]),
|
|
753
773
|
key: "8"
|
|
754
774
|
} : void 0
|
|
@@ -756,11 +776,11 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
756
776
|
(o(), n("svg", {
|
|
757
777
|
ref_key: "svgRef",
|
|
758
778
|
ref: ve,
|
|
759
|
-
xmlns:
|
|
760
|
-
viewBox: `0 0 ${
|
|
761
|
-
style:
|
|
779
|
+
xmlns: u(Qt),
|
|
780
|
+
viewBox: `0 0 ${p.value.width < 0 ? 0.1 : p.value.width} ${p.value.height < 0 ? 0.1 : p.value.height}`,
|
|
781
|
+
style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
762
782
|
}, [
|
|
763
|
-
xe(
|
|
783
|
+
xe(u(it)),
|
|
764
784
|
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
765
785
|
key: 0,
|
|
766
786
|
x: c.value.left,
|
|
@@ -771,21 +791,21 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
771
791
|
pointerEvents: "none"
|
|
772
792
|
}
|
|
773
793
|
}, [
|
|
774
|
-
|
|
794
|
+
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
775
795
|
], 8, Cl)) : d("", !0),
|
|
776
796
|
e.value.style.chart.plots.gradient.show ? (o(), n("defs", Al, [
|
|
777
|
-
(o(!0), n(b, null, k(
|
|
778
|
-
id: `gradient_${
|
|
797
|
+
(o(!0), n(b, null, k(D.value, (l, i) => (o(), n("radialGradient", {
|
|
798
|
+
id: `gradient_${i}_${z.value}`,
|
|
779
799
|
fy: "30%"
|
|
780
800
|
}, [
|
|
781
801
|
S("stop", {
|
|
782
802
|
offset: "10%",
|
|
783
|
-
"stop-color":
|
|
784
|
-
}, null, 8,
|
|
803
|
+
"stop-color": u(Zt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
804
|
+
}, null, 8, $l),
|
|
785
805
|
S("stop", {
|
|
786
806
|
offset: "90%",
|
|
787
|
-
"stop-color":
|
|
788
|
-
}, null, 8,
|
|
807
|
+
"stop-color": u(Kt)(l.color, 0.1)
|
|
808
|
+
}, null, 8, _l),
|
|
789
809
|
S("stop", {
|
|
790
810
|
offset: "100%",
|
|
791
811
|
"stop-color": l.color
|
|
@@ -793,7 +813,7 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
793
813
|
], 8, Sl))), 256))
|
|
794
814
|
])) : d("", !0),
|
|
795
815
|
e.value.style.chart.grid.verticalLines.show ? (o(), n("g", Ll, [
|
|
796
|
-
(o(!0), n(b, null, k(
|
|
816
|
+
(o(!0), n(b, null, k(g.value.tickX, (l) => (o(), n("line", {
|
|
797
817
|
x1: l.x,
|
|
798
818
|
x2: l.x,
|
|
799
819
|
y1: l.y1,
|
|
@@ -804,7 +824,7 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
804
824
|
}, null, 8, Ml))), 256))
|
|
805
825
|
])) : d("", !0),
|
|
806
826
|
e.value.style.chart.axes.y.labels.show ? (o(), n("g", zl, [
|
|
807
|
-
(o(!0), n(b, null, k(
|
|
827
|
+
(o(!0), n(b, null, k(g.value.tickY, (l) => (o(), n("line", {
|
|
808
828
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
809
829
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
810
830
|
"stroke-linecap": "round",
|
|
@@ -819,16 +839,16 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
819
839
|
ref_key: "yAxisScales",
|
|
820
840
|
ref: re
|
|
821
841
|
}, [
|
|
822
|
-
(o(!0), n(b, null, k(
|
|
842
|
+
(o(!0), n(b, null, k(g.value.tickY, (l) => (o(), n("text", {
|
|
823
843
|
x: c.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
|
|
824
844
|
y: l.y + r.value.yAxisLabels / 3,
|
|
825
845
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
826
846
|
"font-size": r.value.yAxisLabels,
|
|
827
847
|
"text-anchor": "end"
|
|
828
|
-
},
|
|
848
|
+
}, O(u(Y)(
|
|
829
849
|
e.value.style.chart.axes.y.labels.formatter,
|
|
830
850
|
l.value,
|
|
831
|
-
|
|
851
|
+
u(H)({
|
|
832
852
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
833
853
|
v: l.value,
|
|
834
854
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
@@ -840,14 +860,14 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
840
860
|
key: 5,
|
|
841
861
|
ref_key: "yAxisLabel",
|
|
842
862
|
ref: ne,
|
|
843
|
-
transform: `translate(${r.value.yAxisName}, ${
|
|
863
|
+
transform: `translate(${r.value.yAxisName}, ${p.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
844
864
|
"font-size": r.value.yAxisName,
|
|
845
865
|
fill: e.value.style.chart.axes.y.name.color,
|
|
846
866
|
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
847
867
|
"text-anchor": "middle"
|
|
848
|
-
},
|
|
868
|
+
}, O(e.value.style.chart.axes.y.name.text), 9, Nl)) : d("", !0),
|
|
849
869
|
e.value.style.chart.grid.horizontalLines.show ? (o(), n("g", Pl, [
|
|
850
|
-
(o(!0), n(b, null, k(
|
|
870
|
+
(o(!0), n(b, null, k(g.value.tickY, (l) => (o(), n("line", {
|
|
851
871
|
x1: l.x1,
|
|
852
872
|
x2: l.x2,
|
|
853
873
|
y1: l.y,
|
|
@@ -858,7 +878,7 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
858
878
|
}, null, 8, Fl))), 256))
|
|
859
879
|
])) : d("", !0),
|
|
860
880
|
e.value.style.chart.axes.x.labels.show ? (o(), n("g", Dl, [
|
|
861
|
-
(o(!0), n(b, null, k(
|
|
881
|
+
(o(!0), n(b, null, k(g.value.tickX, (l) => (o(), n("line", {
|
|
862
882
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
863
883
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
864
884
|
"stroke-linecap": "round",
|
|
@@ -873,16 +893,16 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
873
893
|
ref_key: "xAxisScales",
|
|
874
894
|
ref: G
|
|
875
895
|
}, [
|
|
876
|
-
(o(!0), n(b, null, k(
|
|
896
|
+
(o(!0), n(b, null, k(g.value.tickX, (l) => (o(), n("text", {
|
|
877
897
|
class: "vue-ui-history-plot-x-axis-scale",
|
|
878
898
|
transform: `translate(${l.x}, ${c.value.bottom + e.value.style.chart.axes.x.labels.offsetY + r.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
879
899
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
880
900
|
"font-size": r.value.xAxisLabels,
|
|
881
901
|
"text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
882
|
-
},
|
|
902
|
+
}, O(u(Y)(
|
|
883
903
|
e.value.style.chart.axes.x.labels.formatter,
|
|
884
904
|
l.value,
|
|
885
|
-
|
|
905
|
+
u(H)({
|
|
886
906
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
887
907
|
v: l.value,
|
|
888
908
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
@@ -894,13 +914,13 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
894
914
|
key: 9,
|
|
895
915
|
ref_key: "xAxisLabel",
|
|
896
916
|
ref: oe,
|
|
897
|
-
x:
|
|
898
|
-
y:
|
|
917
|
+
x: p.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
|
|
918
|
+
y: p.value.height,
|
|
899
919
|
"font-size": r.value.xAxisName,
|
|
900
920
|
fill: e.value.style.chart.axes.x.name.color,
|
|
901
921
|
"font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
902
922
|
"text-anchor": "middle"
|
|
903
|
-
},
|
|
923
|
+
}, O(e.value.style.chart.axes.x.name.text), 9, Bl)) : d("", !0),
|
|
904
924
|
e.value.style.chart.grid.xAxis.show ? (o(), n("line", {
|
|
905
925
|
key: 10,
|
|
906
926
|
x1: c.value.left,
|
|
@@ -921,10 +941,10 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
921
941
|
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
922
942
|
"stroke-linecap": "round"
|
|
923
943
|
}, null, 8, Hl)) : d("", !0),
|
|
924
|
-
(o(!0), n(b, null, k(
|
|
944
|
+
(o(!0), n(b, null, k(D.value, (l, i) => (o(), n("g", null, [
|
|
925
945
|
e.value.style.chart.paths.show ? (o(), n("g", {
|
|
926
946
|
key: 0,
|
|
927
|
-
style:
|
|
947
|
+
style: L({
|
|
928
948
|
opacity: A.value === null ? 1 : 0.3
|
|
929
949
|
})
|
|
930
950
|
}, [
|
|
@@ -935,7 +955,7 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
935
955
|
fill: "none",
|
|
936
956
|
"stroke-linecap": "round",
|
|
937
957
|
"stroke-linejoin": "round",
|
|
938
|
-
class:
|
|
958
|
+
class: X({ animated: e.value.useCssAnimation && !u(N) })
|
|
939
959
|
}, null, 10, El),
|
|
940
960
|
S("path", {
|
|
941
961
|
d: l.path,
|
|
@@ -944,7 +964,7 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
944
964
|
fill: "none",
|
|
945
965
|
"stroke-linecap": "round",
|
|
946
966
|
"stroke-linejoin": "round",
|
|
947
|
-
class:
|
|
967
|
+
class: X({ animated: e.value.useCssAnimation && !u(N) })
|
|
948
968
|
}, null, 10, Ul)
|
|
949
969
|
], 4)) : d("", !0),
|
|
950
970
|
(o(!0), n(b, null, k(l.plots, (s) => (o(), n("circle", {
|
|
@@ -957,12 +977,12 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
957
977
|
(o(!0), n(b, null, k(l.plots, (s) => (o(), n("circle", {
|
|
958
978
|
cx: s.x,
|
|
959
979
|
cy: s.y,
|
|
960
|
-
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${
|
|
980
|
+
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${z.value})` : s.color,
|
|
961
981
|
r: r.value.plots,
|
|
962
982
|
stroke: e.value.style.chart.plots.stroke,
|
|
963
983
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
964
|
-
class:
|
|
965
|
-
style:
|
|
984
|
+
class: X({ animated: e.value.useCssAnimation && !u(N) }),
|
|
985
|
+
style: L({
|
|
966
986
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
967
987
|
transition: "opacity 0.2s ease-in-out"
|
|
968
988
|
})
|
|
@@ -978,12 +998,12 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
978
998
|
fill: e.value.style.chart.plots.labels.color,
|
|
979
999
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
980
1000
|
"text-anchor": "middle",
|
|
981
|
-
class:
|
|
982
|
-
style:
|
|
1001
|
+
class: X({ animated: e.value.useCssAnimation && !u(N) }),
|
|
1002
|
+
style: L({
|
|
983
1003
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
984
1004
|
transition: "opacity 0.2s ease-in-out"
|
|
985
1005
|
}),
|
|
986
|
-
innerHTML:
|
|
1006
|
+
innerHTML: u(el)({
|
|
987
1007
|
content: String(s.label),
|
|
988
1008
|
fontSize: r.value.labels,
|
|
989
1009
|
fill: e.value.style.chart.plots.labels.color,
|
|
@@ -998,12 +1018,12 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
998
1018
|
fill: e.value.style.chart.plots.labels.color,
|
|
999
1019
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1000
1020
|
"text-anchor": "middle",
|
|
1001
|
-
class:
|
|
1002
|
-
style:
|
|
1021
|
+
class: X({ animated: e.value.useCssAnimation && !u(N) }),
|
|
1022
|
+
style: L({
|
|
1003
1023
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
1004
1024
|
transition: "opacity 0.2s ease-in-out"
|
|
1005
1025
|
})
|
|
1006
|
-
},
|
|
1026
|
+
}, O(s.label), 15, Vl))
|
|
1007
1027
|
]))), 256))
|
|
1008
1028
|
])) : d("", !0),
|
|
1009
1029
|
e.value.style.chart.plots.indexLabels.show ? (o(), n("g", Jl, [
|
|
@@ -1012,74 +1032,74 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
1012
1032
|
y: s.y + e.value.style.chart.plots.indexLabels.offsetY + r.value.indexLabels / 3,
|
|
1013
1033
|
"font-size": r.value.indexLabels,
|
|
1014
1034
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
1015
|
-
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ?
|
|
1035
|
+
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(tl)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
1016
1036
|
"text-anchor": "middle",
|
|
1017
|
-
class:
|
|
1018
|
-
style:
|
|
1037
|
+
class: X({ animated: e.value.useCssAnimation && !u(N) }),
|
|
1038
|
+
style: L({
|
|
1019
1039
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
1020
1040
|
transition: "opacity 0.2s ease-in-out"
|
|
1021
1041
|
})
|
|
1022
|
-
},
|
|
1042
|
+
}, O(e.value.style.chart.plots.indexLabels.startAtZero ? w : w + 1), 15, Ql))), 256))
|
|
1023
1043
|
])) : d("", !0)
|
|
1024
1044
|
]))), 256)),
|
|
1025
|
-
(o(!0), n(b, null, k(
|
|
1026
|
-
(o(!0), n(b, null, k(l.plots, (
|
|
1027
|
-
cx:
|
|
1028
|
-
cy:
|
|
1045
|
+
(o(!0), n(b, null, k(D.value, (l) => (o(), n("g", null, [
|
|
1046
|
+
(o(!0), n(b, null, k(l.plots, (i, s) => (o(), n("circle", {
|
|
1047
|
+
cx: i.x,
|
|
1048
|
+
cy: i.y,
|
|
1029
1049
|
fill: "transparent",
|
|
1030
1050
|
r: r.value.plots,
|
|
1031
1051
|
stroke: "none",
|
|
1032
1052
|
onMouseenter: (w) => Lt({
|
|
1033
|
-
datapoint:
|
|
1053
|
+
datapoint: i,
|
|
1034
1054
|
plotIndex: s,
|
|
1035
1055
|
seriesIndex: l.seriesIndex
|
|
1036
1056
|
}),
|
|
1037
1057
|
onMouseleave: (w) => Tt({
|
|
1038
|
-
datapoint:
|
|
1058
|
+
datapoint: i,
|
|
1039
1059
|
plotIndex: s,
|
|
1040
1060
|
seriesIndex: l.seriesIndex
|
|
1041
1061
|
}),
|
|
1042
|
-
onClick: (w) =>
|
|
1043
|
-
datapoint:
|
|
1062
|
+
onClick: (w) => _t({
|
|
1063
|
+
datapoint: i,
|
|
1044
1064
|
plotIndex: s,
|
|
1045
1065
|
seriesIndex: l.seriesIndex
|
|
1046
1066
|
})
|
|
1047
1067
|
}, null, 40, Zl))), 256))
|
|
1048
1068
|
]))), 256)),
|
|
1049
|
-
|
|
1069
|
+
y(t.$slots, "svg", { svg: p.value }, void 0, !0)
|
|
1050
1070
|
], 12, wl)),
|
|
1051
1071
|
t.$slots.watermark ? (o(), n("div", Kl, [
|
|
1052
|
-
|
|
1072
|
+
y(t.$slots, "watermark", $(_({ isPrinting: u(ze) || u(Oe) })), void 0, !0)
|
|
1053
1073
|
])) : d("", !0),
|
|
1054
1074
|
S("div", {
|
|
1055
|
-
id: `legend-bottom-${
|
|
1075
|
+
id: `legend-bottom-${z.value}`
|
|
1056
1076
|
}, null, 8, ea),
|
|
1057
|
-
Se.value ? (o(),
|
|
1077
|
+
Se.value ? (o(), F(Et, {
|
|
1058
1078
|
key: 5,
|
|
1059
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1079
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${z.value}` : `#legend-bottom-${z.value}`
|
|
1060
1080
|
}, [
|
|
1061
1081
|
S("div", {
|
|
1062
1082
|
ref_key: "chartLegend",
|
|
1063
1083
|
ref: me
|
|
1064
1084
|
}, [
|
|
1065
|
-
e.value.style.chart.legend.show && V.value ? (o(),
|
|
1085
|
+
e.value.style.chart.legend.show && V.value ? (o(), F(gl, {
|
|
1066
1086
|
key: `legend_${be.value}`,
|
|
1067
1087
|
legendSet: he.value,
|
|
1068
|
-
config:
|
|
1088
|
+
config: $t.value,
|
|
1069
1089
|
onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
|
|
1070
1090
|
q(l.seriesIndex), Xe(l);
|
|
1071
1091
|
})
|
|
1072
1092
|
}, {
|
|
1073
|
-
item:
|
|
1093
|
+
item: f(({ legend: l, index: i }) => [
|
|
1074
1094
|
S("div", {
|
|
1075
1095
|
onClick: (s) => {
|
|
1076
1096
|
l.segregate(), Xe(l);
|
|
1077
1097
|
},
|
|
1078
|
-
style:
|
|
1079
|
-
},
|
|
1098
|
+
style: L(`opacity:${m.value.includes(l.seriesIndex) ? 0.5 : 1}`)
|
|
1099
|
+
}, O(l.name), 13, ta)
|
|
1080
1100
|
]),
|
|
1081
1101
|
_: 1
|
|
1082
|
-
}, 8, ["legendSet", "config"])) :
|
|
1102
|
+
}, 8, ["legendSet", "config"])) : y(t.$slots, "legend", {
|
|
1083
1103
|
key: 1,
|
|
1084
1104
|
legend: he.value
|
|
1085
1105
|
}, void 0, !0)
|
|
@@ -1091,9 +1111,9 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
1091
1111
|
ref: Ae,
|
|
1092
1112
|
dir: "auto"
|
|
1093
1113
|
}, [
|
|
1094
|
-
|
|
1114
|
+
y(t.$slots, "source", {}, void 0, !0)
|
|
1095
1115
|
], 512)) : d("", !0),
|
|
1096
|
-
xe(
|
|
1116
|
+
xe(u(lt), {
|
|
1097
1117
|
show: C.value.showTooltip && le.value,
|
|
1098
1118
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1099
1119
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1104,7 +1124,7 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
1104
1124
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1105
1125
|
position: e.value.style.chart.tooltip.position,
|
|
1106
1126
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1107
|
-
parent:
|
|
1127
|
+
parent: M.value,
|
|
1108
1128
|
content: ae.value,
|
|
1109
1129
|
isCustom: U.value,
|
|
1110
1130
|
isFullscreen: E.value,
|
|
@@ -1113,21 +1133,21 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
1113
1133
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1114
1134
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1115
1135
|
}, {
|
|
1116
|
-
"tooltip-before":
|
|
1117
|
-
|
|
1136
|
+
"tooltip-before": f(() => [
|
|
1137
|
+
y(t.$slots, "tooltip-before", $(_({ ...de.value })), void 0, !0)
|
|
1118
1138
|
]),
|
|
1119
|
-
"tooltip-after":
|
|
1120
|
-
|
|
1139
|
+
"tooltip-after": f(() => [
|
|
1140
|
+
y(t.$slots, "tooltip-after", $(_({ ...de.value })), void 0, !0)
|
|
1121
1141
|
]),
|
|
1122
1142
|
_: 3
|
|
1123
1143
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1124
|
-
V.value && e.value.userOptions.buttons.table ? (o(),
|
|
1144
|
+
V.value && e.value.userOptions.buttons.table ? (o(), F(Ut(j.value.component), Wt({ key: 7 }, j.value.props, {
|
|
1125
1145
|
ref_key: "tableUnit",
|
|
1126
1146
|
ref: W,
|
|
1127
1147
|
onClose: He
|
|
1128
1148
|
}), We({
|
|
1129
|
-
content:
|
|
1130
|
-
(o(),
|
|
1149
|
+
content: f(() => [
|
|
1150
|
+
(o(), F(u(ot), {
|
|
1131
1151
|
key: `table_${ke.value}`,
|
|
1132
1152
|
colNames: J.value.colNames,
|
|
1133
1153
|
head: J.value.head,
|
|
@@ -1137,14 +1157,14 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
1137
1157
|
withCloseButton: !e.value.table.useDialog,
|
|
1138
1158
|
onClose: He
|
|
1139
1159
|
}, {
|
|
1140
|
-
th:
|
|
1160
|
+
th: f(({ th: l }) => [
|
|
1141
1161
|
S("div", {
|
|
1142
1162
|
innerHTML: l,
|
|
1143
1163
|
style: { display: "flex", "align-items": "center" }
|
|
1144
1164
|
}, null, 8, la)
|
|
1145
1165
|
]),
|
|
1146
|
-
td:
|
|
1147
|
-
je(
|
|
1166
|
+
td: f(({ td: l }) => [
|
|
1167
|
+
je(O(l.name || l), 1)
|
|
1148
1168
|
]),
|
|
1149
1169
|
_: 1
|
|
1150
1170
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1153,20 +1173,20 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
1153
1173
|
}, [
|
|
1154
1174
|
e.value.table.useDialog ? {
|
|
1155
1175
|
name: "title",
|
|
1156
|
-
fn:
|
|
1157
|
-
je(
|
|
1176
|
+
fn: f(() => [
|
|
1177
|
+
je(O(j.value.title), 1)
|
|
1158
1178
|
]),
|
|
1159
1179
|
key: "0"
|
|
1160
1180
|
} : void 0,
|
|
1161
1181
|
e.value.table.useDialog ? {
|
|
1162
1182
|
name: "actions",
|
|
1163
|
-
fn:
|
|
1183
|
+
fn: f(() => [
|
|
1164
1184
|
S("button", {
|
|
1165
1185
|
tabindex: "0",
|
|
1166
1186
|
class: "vue-ui-user-options-button",
|
|
1167
1187
|
onClick: a[1] || (a[1] = (l) => ye(e.value.userOptions.callbacks.csv))
|
|
1168
1188
|
}, [
|
|
1169
|
-
xe(
|
|
1189
|
+
xe(u(at), {
|
|
1170
1190
|
name: "excel",
|
|
1171
1191
|
stroke: j.value.props.color
|
|
1172
1192
|
}, null, 8, ["stroke"])
|
|
@@ -1175,10 +1195,10 @@ const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "widt
|
|
|
1175
1195
|
key: "1"
|
|
1176
1196
|
} : void 0
|
|
1177
1197
|
]), 1040)) : d("", !0),
|
|
1178
|
-
|
|
1198
|
+
u(N) ? (o(), F(ul, { key: 8 })) : d("", !0)
|
|
1179
1199
|
], 46, bl));
|
|
1180
1200
|
}
|
|
1181
|
-
}, ma = /* @__PURE__ */ ml(aa, [["__scopeId", "data-v-
|
|
1201
|
+
}, ma = /* @__PURE__ */ ml(aa, [["__scopeId", "data-v-3fe2716c"]]);
|
|
1182
1202
|
export {
|
|
1183
1203
|
ma as default
|
|
1184
1204
|
};
|