vue-data-ui 3.23.1 → 3.23.3
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/dist/{PackageVersion-D6d8SCp9.js → PackageVersion-1OKZ1W6H.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-bump.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-dag.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-geo.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-hill.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-stackline.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/{package-KvlL5CqE.js → package-Cg4kroiZ.js} +1 -1
- package/dist/{render-common-oDYGTc5P.js → render-common-DXUvcGUp.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
- package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
- package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-CDti5Yrx.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-CyfvdA32.js} +164 -182
- package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
- package/dist/vue-ui-age-pyramid-B4akhyhb.js +1241 -0
- package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
- package/dist/vue-ui-bullet-CRVbAoXy.js +700 -0
- package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-D7a8R9Rg.js} +213 -263
- package/dist/vue-ui-candlestick-DDeDF04h.js +1837 -0
- package/dist/vue-ui-carousel-table-CV-962pa.js +467 -0
- package/dist/vue-ui-chestnut-DdF3f-qF.js +2014 -0
- package/dist/vue-ui-chord-CFtlZsF0.js +1345 -0
- package/dist/vue-ui-circle-pack-CF0525gq.js +1636 -0
- package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-C8SJymel.js} +2 -2
- package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-DjN2WTn7.js} +492 -515
- package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-urkM2RYu.js} +65 -65
- package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-BcEqgBhZ.js} +2 -2
- package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-K1RfKnQq.js} +2 -2
- package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-bcwR4sv_.js} +333 -359
- package/dist/vue-ui-donut-evolution-DZO16wgT.js +1549 -0
- package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-CAMuCd_S.js} +378 -428
- package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-CYjjPNyR.js} +182 -207
- package/dist/vue-ui-funnel-SdQbCfPX.js +750 -0
- package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-CU_ZeAXL.js} +308 -334
- package/dist/vue-ui-gauge-Wg7of8IL.js +932 -0
- package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-eGnYp7cT.js} +362 -413
- package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-rLrn2qwz.js} +2 -2
- package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-CSkSZVck.js} +292 -315
- package/dist/vue-ui-hill-B-RveDCB.js +1745 -0
- package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-XKtS1nG0.js} +258 -283
- package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-DZGkY905.js} +273 -298
- package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-C1dfLx3K.js} +2 -2
- package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
- package/dist/vue-ui-molecule-BFsMnCPM.js +935 -0
- package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-CBwnys-6.js} +337 -386
- package/dist/vue-ui-nested-donuts-Cg_ZhOrZ.js +1503 -0
- package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-D-lr5E52.js} +257 -282
- package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-DSdUdqZS.js} +190 -215
- package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-27bzpBv7.js} +213 -243
- package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-C1pTZxWF.js} +52 -61
- package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-DK0BHh36.js} +343 -370
- package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
- package/dist/vue-ui-relation-circle-BTr7AVxq.js +903 -0
- package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-CNxY7quH.js} +267 -317
- package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-Zo7VL6uV.js} +407 -432
- package/dist/vue-ui-scatter-UE5Fk5GN.js +2403 -0
- package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DQuSjWKe.js} +2 -2
- package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
- package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-BW37w8he.js} +2 -2
- package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-CvzmZ_NG.js} +97 -100
- package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-gYY4yLsx.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-CIaudPsS.js} +7 -8
- package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-BNtMARjh.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-j_FzHNpg.js} +191 -195
- package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-Dwwq7eyk.js} +524 -549
- package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-COpvIV2e.js} +570 -595
- package/dist/vue-ui-strip-plot-DbAC2j_E.js +1734 -0
- package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-B5tDjnRf.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
- package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-D_xQdBDw.js} +7 -9
- package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-CEdPDVN6.js} +240 -261
- package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DSLwqD-s.js} +2 -2
- package/dist/vue-ui-tiremarks-BoAllKL8.js +538 -0
- package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-CLeRO5Mn.js} +498 -524
- package/dist/vue-ui-waffle-B1V1NjL-.js +1386 -0
- package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DB6T5nFC.js} +188 -209
- package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-DzNJBiRP.js} +375 -398
- package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-CJRyhi5-.js} +428 -453
- package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CLkDo4Wy.js} +1600 -1562
- package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DG5WDIAj.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
- package/package.json +1 -1
- package/dist/Slicer-CIk57nL4.js +0 -1163
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
- package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
- package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
- package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
- package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
- package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
- package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
- package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
- package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
- package/dist/vue-ui-gauge-ByE_txav.js +0 -953
- package/dist/vue-ui-hill-BT183G-_.js +0 -1768
- package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
- package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
- package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
- package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
- package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
|
@@ -2,12 +2,12 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
|
2
2
|
import { $ as t, Bt as n, D as r, Gt as i, Jt as a, Kt as o, M as s, Ot as c, P as l, Pt as u, S as d, St as f, V as p, Wt as m, X as h, _ as g, b as _, c as ee, ct as te, dt as ne, i as v, jt as re, ot as ie, pt as ae, q as oe, t as se, tt as ce, v as le, w as ue, xt as de, z as fe } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { n as he, r as ge, t as _e } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as ve } from "./useConfig-
|
|
5
|
+
import { t as ve } from "./useConfig-DlNpz6P8.js";
|
|
6
6
|
import { t as ye } from "./usePrinter-DN5bYhTG.js";
|
|
7
7
|
import { n as be, t as xe } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as Se } from "./
|
|
9
|
-
import { t as Ce } from "./
|
|
10
|
-
import { t as we } from "./
|
|
8
|
+
import { t as Se } from "./useNestedProp-vPNvh7rV.js";
|
|
9
|
+
import { t as Ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as we } from "./useChartExport-DNiwdPmb.js";
|
|
11
11
|
import { t as Te } from "./useTransitions-g_zBREk2.js";
|
|
12
12
|
import { t as Ee } from "./useStableElementSize-C7KADDKj.js";
|
|
13
13
|
import { t as De } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
@@ -24,18 +24,18 @@ import { t as Re } from "./useUserOptionState-DK-_1ddE.js";
|
|
|
24
24
|
import { t as ze } from "./useChartAccessibility-DYqac8yF.js";
|
|
25
25
|
import { t as Be } from "./Legend-CQxUgOd-.js";
|
|
26
26
|
import { t as Ve } from "./vue_ui_stackline-DQqKPA9z.js";
|
|
27
|
-
import { Fragment as y, Teleport as He, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ue, createTextVNode as We, createVNode as Ge, defineAsyncComponent as Ke, guardReactiveProps as T, mergeProps as qe, nextTick as Je, normalizeClass as
|
|
27
|
+
import { Fragment as y, Teleport as He, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ue, createTextVNode as We, createVNode as Ge, defineAsyncComponent as Ke, guardReactiveProps as T, mergeProps as qe, nextTick as Je, normalizeClass as E, normalizeProps as D, normalizeStyle as Ye, onBeforeUnmount as Xe, onMounted as Ze, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as Qe, shallowRef as $e, toDisplayString as M, toRefs as et, unref as N, useSlots as tt, watch as nt, watchEffect as rt, withCtx as P } from "vue";
|
|
28
28
|
//#region src/components/vue-ui-stackline.vue
|
|
29
|
-
var
|
|
29
|
+
var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st = ["id"], ct = { style: { position: "relative" } }, lt = [
|
|
30
30
|
"aria-describedby",
|
|
31
31
|
"xmlns",
|
|
32
32
|
"viewBox"
|
|
33
|
-
],
|
|
33
|
+
], ut = { key: 0 }, dt = [
|
|
34
34
|
"x",
|
|
35
35
|
"y",
|
|
36
36
|
"width",
|
|
37
37
|
"height"
|
|
38
|
-
],
|
|
38
|
+
], ft = { key: 1 }, pt = [
|
|
39
39
|
"x1",
|
|
40
40
|
"x2",
|
|
41
41
|
"y1",
|
|
@@ -43,7 +43,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
43
43
|
"stroke",
|
|
44
44
|
"stroke-width",
|
|
45
45
|
"stroke-dasharray"
|
|
46
|
-
],
|
|
46
|
+
], mt = [
|
|
47
47
|
"x1",
|
|
48
48
|
"x2",
|
|
49
49
|
"y1",
|
|
@@ -51,32 +51,32 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
51
51
|
"stroke",
|
|
52
52
|
"stroke-width",
|
|
53
53
|
"stroke-dasharray"
|
|
54
|
-
],
|
|
54
|
+
], ht = [
|
|
55
55
|
"x1",
|
|
56
56
|
"x2",
|
|
57
57
|
"y1",
|
|
58
58
|
"y2",
|
|
59
59
|
"stroke",
|
|
60
60
|
"stroke-width"
|
|
61
|
-
],
|
|
61
|
+
], gt = [
|
|
62
62
|
"x1",
|
|
63
63
|
"x2",
|
|
64
64
|
"y1",
|
|
65
65
|
"y2",
|
|
66
66
|
"stroke",
|
|
67
67
|
"stroke-width"
|
|
68
|
-
],
|
|
68
|
+
], _t = [
|
|
69
69
|
"x",
|
|
70
70
|
"y",
|
|
71
71
|
"font-size",
|
|
72
72
|
"fill",
|
|
73
73
|
"font-weight"
|
|
74
|
-
],
|
|
74
|
+
], vt = [
|
|
75
75
|
"transform",
|
|
76
76
|
"font-size",
|
|
77
77
|
"fill",
|
|
78
78
|
"font-weight"
|
|
79
|
-
],
|
|
79
|
+
], yt = [
|
|
80
80
|
"x",
|
|
81
81
|
"y",
|
|
82
82
|
"width",
|
|
@@ -86,47 +86,47 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
86
86
|
"stroke-linecap",
|
|
87
87
|
"stroke-linejoin",
|
|
88
88
|
"stroke-dasharray"
|
|
89
|
-
],
|
|
89
|
+
], bt = [
|
|
90
90
|
"d",
|
|
91
91
|
"fill",
|
|
92
92
|
"opacity"
|
|
93
|
-
],
|
|
93
|
+
], xt = [
|
|
94
94
|
"d",
|
|
95
95
|
"stroke",
|
|
96
96
|
"stroke-width"
|
|
97
|
-
],
|
|
97
|
+
], St = [
|
|
98
98
|
"x1",
|
|
99
99
|
"x2",
|
|
100
100
|
"y1",
|
|
101
101
|
"y2",
|
|
102
102
|
"stroke"
|
|
103
|
-
],
|
|
103
|
+
], Ct = [
|
|
104
104
|
"transform",
|
|
105
105
|
"font-size",
|
|
106
106
|
"font-weight",
|
|
107
107
|
"fill",
|
|
108
108
|
"text-anchor"
|
|
109
|
-
],
|
|
109
|
+
], wt = { key: 0 }, Tt = { key: 1 }, Et = [
|
|
110
110
|
"text-anchor",
|
|
111
111
|
"font-size",
|
|
112
112
|
"font-weight",
|
|
113
113
|
"fill",
|
|
114
114
|
"transform",
|
|
115
115
|
"onClick"
|
|
116
|
-
],
|
|
116
|
+
], Dt = [
|
|
117
117
|
"text-anchor",
|
|
118
118
|
"font-size",
|
|
119
119
|
"fill",
|
|
120
120
|
"transform",
|
|
121
121
|
"innerHTML",
|
|
122
122
|
"onClick"
|
|
123
|
-
],
|
|
123
|
+
], Ot = [
|
|
124
124
|
"x",
|
|
125
125
|
"y",
|
|
126
126
|
"height",
|
|
127
127
|
"width",
|
|
128
128
|
"fill"
|
|
129
|
-
],
|
|
129
|
+
], kt = { key: 0 }, At = [
|
|
130
130
|
"x1",
|
|
131
131
|
"x2",
|
|
132
132
|
"y1",
|
|
@@ -134,17 +134,17 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
134
134
|
"stroke",
|
|
135
135
|
"stroke-width",
|
|
136
136
|
"stroke-dasharray"
|
|
137
|
-
],
|
|
137
|
+
], jt = { key: 0 }, Mt = [
|
|
138
138
|
"transform",
|
|
139
139
|
"font-size",
|
|
140
140
|
"fill",
|
|
141
141
|
"font-weight"
|
|
142
|
-
],
|
|
142
|
+
], Nt = [
|
|
143
143
|
"transform",
|
|
144
144
|
"font-size",
|
|
145
145
|
"font-weight",
|
|
146
146
|
"fill"
|
|
147
|
-
],
|
|
147
|
+
], Pt = ["data-start", "data-end"], Ft = {
|
|
148
148
|
key: 0,
|
|
149
149
|
style: {
|
|
150
150
|
position: "absolute",
|
|
@@ -154,10 +154,10 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
154
154
|
},
|
|
155
155
|
"data-dom-to-png-ignore": "",
|
|
156
156
|
"aria-hidden": "true"
|
|
157
|
-
},
|
|
157
|
+
}, It = {
|
|
158
158
|
key: 5,
|
|
159
159
|
class: "vue-data-ui-watermark"
|
|
160
|
-
},
|
|
160
|
+
}, Lt = ["onClick"], Rt = ["innerHTML"], zt = ["innerHTML"], Bt = ["id"], Vt = /*#__PURE__*/ je({
|
|
161
161
|
__name: "vue-ui-stackline",
|
|
162
162
|
props: {
|
|
163
163
|
config: {
|
|
@@ -184,52 +184,52 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
184
184
|
"selectX",
|
|
185
185
|
"copyAlt"
|
|
186
186
|
],
|
|
187
|
-
setup(e, { expose: je, emit:
|
|
188
|
-
let
|
|
187
|
+
setup(e, { expose: je, emit: it }) {
|
|
188
|
+
let Vt = Ke(() => import("./Tooltip-DhjyfHwz.js")), Ht = Ke(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Ut = Ke(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), Wt = Ke(() => import("./DataTable-BbKgJ5UI.js")), Gt = Ke(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Kt = Ke(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), qt = Ke(() => import("./PackageVersion-1OKZ1W6H.js").then((e) => e.t)), Jt = Ke(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_stackline: Yt } = ve(), { isThemeValid: Xt, warnInvalidTheme: Zt } = Ce(), Qt = tt(), F = e, $t = it, en = b({
|
|
189
189
|
get() {
|
|
190
|
-
return !!
|
|
190
|
+
return !!F.dataset && F.dataset.length;
|
|
191
191
|
},
|
|
192
192
|
set(e) {
|
|
193
193
|
return e;
|
|
194
194
|
}
|
|
195
|
-
}), tn =
|
|
195
|
+
}), tn = k(null), I = k(oe()), nn = k(!1), L = k([]), rn = k(0), an = k(null), on = k(null), sn = k(null), cn = k(null), ln = k(null), un = k(!1), dn = k(!1), fn = k(0), pn = k(0), mn = k(0), hn = k(!1), gn = k(null), _n = k(null), vn = k(!1), yn = k(null), bn = k(null), xn = k(null), Sn = k(null), Cn = k(null), wn = $e(null), Tn = k(!1), En = k(0), Dn = k(0), R = k(null), On = k({
|
|
196
196
|
x: 0,
|
|
197
197
|
y: 0
|
|
198
|
-
}),
|
|
199
|
-
elementRef:
|
|
198
|
+
}), kn = k("pointer"), An = Ee({
|
|
199
|
+
elementRef: wn,
|
|
200
200
|
minimumWidth: 2,
|
|
201
201
|
minimumHeight: 2,
|
|
202
202
|
stableFramesRequired: 2,
|
|
203
203
|
once: !1,
|
|
204
204
|
onSizeAccepted: () => {
|
|
205
|
-
|
|
205
|
+
Nn();
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
|
-
function
|
|
209
|
-
|
|
208
|
+
function jn() {
|
|
209
|
+
wn.value = tn.value?.parentNode ?? null;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Mn() {
|
|
212
212
|
return new Promise((e) => {
|
|
213
213
|
requestAnimationFrame(() => {
|
|
214
214
|
requestAnimationFrame(e);
|
|
215
215
|
});
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
-
async function
|
|
219
|
-
let e = ++
|
|
220
|
-
|
|
218
|
+
async function Nn() {
|
|
219
|
+
let e = ++Dn.value;
|
|
220
|
+
Tn.value = !1, await Je(), await Mn(), await Mn(), e === Dn.value && (En.value += 1, Tn.value = !0);
|
|
221
221
|
}
|
|
222
|
-
let
|
|
223
|
-
function
|
|
224
|
-
|
|
222
|
+
let Pn = k(null), Fn = k(!1);
|
|
223
|
+
function In() {
|
|
224
|
+
Fn.value = !Fn.value;
|
|
225
225
|
}
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
Ze(() => {
|
|
227
|
+
jn(), An.start(), hn.value = !0, or(), Nn();
|
|
228
228
|
});
|
|
229
|
-
let z =
|
|
229
|
+
let z = k(qn());
|
|
230
230
|
pe({
|
|
231
231
|
config: () => z.value,
|
|
232
|
-
dataset: () =>
|
|
232
|
+
dataset: () => F.dataset,
|
|
233
233
|
component: "VueUiStackline",
|
|
234
234
|
rules: [
|
|
235
235
|
me.emptyArray,
|
|
@@ -255,10 +255,10 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
255
255
|
}
|
|
256
256
|
]
|
|
257
257
|
});
|
|
258
|
-
let { transitionEnabled:
|
|
258
|
+
let { transitionEnabled: Ln } = Te({
|
|
259
259
|
config: () => z.value.transitions,
|
|
260
|
-
dataset: () =>
|
|
261
|
-
}), B = b(() => z.value.userOptions.useCursorPointer),
|
|
260
|
+
dataset: () => F.dataset
|
|
261
|
+
}), B = b(() => z.value.userOptions.useCursorPointer), Rn = b(() => a({
|
|
262
262
|
defaultConfig: {
|
|
263
263
|
userOptions: { show: !1 },
|
|
264
264
|
useCssAnimation: !1,
|
|
@@ -304,16 +304,16 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
304
304
|
} }
|
|
305
305
|
},
|
|
306
306
|
userConfig: z.value.skeletonConfig ?? {}
|
|
307
|
-
})), { loading:
|
|
308
|
-
...
|
|
307
|
+
})), { loading: zn, FINAL_DATASET: Bn, manualLoading: Vn } = be({
|
|
308
|
+
...et(F),
|
|
309
309
|
FINAL_CONFIG: z,
|
|
310
|
-
prepareConfig:
|
|
310
|
+
prepareConfig: qn,
|
|
311
311
|
callback: () => {
|
|
312
312
|
Promise.resolve().then(async () => {
|
|
313
|
-
(!z.value.style.chart.zoom.keepState || !
|
|
313
|
+
(!z.value.style.chart.zoom.keepState || !Qr.value || q.value.start === 0 && q.value.end === 0) && await ei();
|
|
314
314
|
});
|
|
315
315
|
},
|
|
316
|
-
skeletonDataset:
|
|
316
|
+
skeletonDataset: F.config?.skeletonDataset ?? [{
|
|
317
317
|
name: "",
|
|
318
318
|
series: [
|
|
319
319
|
3,
|
|
@@ -346,33 +346,33 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
346
346
|
}],
|
|
347
347
|
skeletonConfig: a({
|
|
348
348
|
defaultConfig: z.value,
|
|
349
|
-
userConfig:
|
|
349
|
+
userConfig: Rn.value
|
|
350
350
|
})
|
|
351
|
-
}), { userOptionsVisible:
|
|
352
|
-
function
|
|
353
|
-
vn.value = !0,
|
|
351
|
+
}), { userOptionsVisible: Hn, setUserOptionsVisibility: Un, keepUserOptionState: Wn } = Re({ config: z.value }), { svgRef: V } = ze({ config: z.value.style.chart.title });
|
|
352
|
+
function Gn() {
|
|
353
|
+
vn.value = !0, Un(!0);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
|
|
355
|
+
function Kn() {
|
|
356
|
+
Un(!1), vn.value = !1, R.value = null, kn.value = "pointer", nn.value = !1, $.value = null, $t("selectX", {
|
|
357
357
|
index: null,
|
|
358
358
|
indexLabel: null,
|
|
359
359
|
dataset: null
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
let e =
|
|
364
|
-
userConfig:
|
|
365
|
-
defaultConfig:
|
|
362
|
+
function qn() {
|
|
363
|
+
let e = Se({
|
|
364
|
+
userConfig: F.config,
|
|
365
|
+
defaultConfig: Yt
|
|
366
366
|
}), t = {}, n = e.theme;
|
|
367
|
-
if (n) if (!
|
|
367
|
+
if (n) if (!Xt.value(e)) Zt(e), t = e;
|
|
368
368
|
else {
|
|
369
|
-
let r =
|
|
370
|
-
userConfig: Ve[n] ||
|
|
369
|
+
let r = Se({
|
|
370
|
+
userConfig: Ve[n] || F.config,
|
|
371
371
|
defaultConfig: e
|
|
372
372
|
});
|
|
373
373
|
t = {
|
|
374
|
-
...
|
|
375
|
-
userConfig:
|
|
374
|
+
...Se({
|
|
375
|
+
userConfig: F.config,
|
|
376
376
|
defaultConfig: r
|
|
377
377
|
}),
|
|
378
378
|
customPalette: e.customPalette.length ? e.customPalette : o[n] || u
|
|
@@ -381,34 +381,34 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
381
381
|
else t = e;
|
|
382
382
|
return t;
|
|
383
383
|
}
|
|
384
|
-
let
|
|
385
|
-
|
|
386
|
-
|
|
384
|
+
let Jn = b(() => z.value.style.chart.lines.dataLabels.hideUnderValue !== null), Yn = b(() => z.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
|
|
385
|
+
nt(() => F.config, (e) => {
|
|
386
|
+
zn.value || (z.value = qn()), Hn.value = !z.value.userOptions.showOnChartHover, or({ resetSlicer: !z.value.style.chart.zoom.keepState }), fn.value += 1, pn.value += 1, mn.value += 1, H.value.dataLabels.show = z.value.style.chart.lines.dataLabels.show, H.value.showTable = z.value.table.show, H.value.showTooltip = z.value.style.chart.tooltip.show, U.value.width = z.value.style.chart.width, U.value.height = z.value.style.chart.height, U.value.paddingRatio = {
|
|
387
387
|
top: z.value.style.chart.padding.top / z.value.style.chart.height,
|
|
388
388
|
right: z.value.style.chart.padding.right / z.value.style.chart.width,
|
|
389
389
|
bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
|
|
390
390
|
left: z.value.style.chart.padding.left / z.value.style.chart.width
|
|
391
|
-
},
|
|
392
|
-
}, { deep: !0 }),
|
|
393
|
-
Array.isArray(e) && e.length > 0 && (
|
|
391
|
+
}, jn(), Nn(), !z.value.style.chart.zoom.keepState || !Qr.value || q.value.start === 0 && q.value.end === 0 ? ei() : Sr();
|
|
392
|
+
}, { deep: !0 }), nt(() => F.dataset, (e) => {
|
|
393
|
+
Array.isArray(e) && e.length > 0 && (Vn.value = !1), z.value.style.chart.zoom.keepState ? Sr() : Tr(), jn(), Nn();
|
|
394
394
|
}, { deep: !0 });
|
|
395
|
-
let H =
|
|
395
|
+
let H = k({
|
|
396
396
|
dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
|
|
397
397
|
showTable: z.value.table.show,
|
|
398
398
|
showTooltip: z.value.style.chart.tooltip.show
|
|
399
399
|
});
|
|
400
|
-
|
|
400
|
+
nt(z, () => {
|
|
401
401
|
H.value = {
|
|
402
402
|
dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
|
|
403
403
|
showTable: z.value.table.show,
|
|
404
404
|
showTooltip: z.value.style.chart.tooltip.show
|
|
405
405
|
};
|
|
406
406
|
}, { immediate: !0 });
|
|
407
|
-
let { isPrinting:
|
|
407
|
+
let { isPrinting: Xn, isImaging: Zn, generatePdf: Qn, generateImage: $n } = ye({
|
|
408
408
|
elementId: `stackline_${I.value}`,
|
|
409
409
|
fileName: z.value.style.chart.title.text || "vue-ui-stackline",
|
|
410
410
|
options: z.value.userOptions.print
|
|
411
|
-
}),
|
|
411
|
+
}), er = b(() => z.value.userOptions.show && !z.value.style.chart.title.text), U = k({
|
|
412
412
|
width: z.value.style.chart.width,
|
|
413
413
|
height: z.value.style.chart.height,
|
|
414
414
|
paddingRatio: {
|
|
@@ -417,13 +417,13 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
417
417
|
bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
|
|
418
418
|
left: z.value.style.chart.padding.left / z.value.style.chart.width
|
|
419
419
|
}
|
|
420
|
-
}),
|
|
421
|
-
function
|
|
422
|
-
if (re(
|
|
420
|
+
}), tr = b(() => ue(z.value.customPalette)), nr = $e(null), rr = $e(null), ir = k(null), ar = b(() => z.value.debug);
|
|
421
|
+
function or({ resetSlicer: e = !0 } = {}) {
|
|
422
|
+
if (re(F.dataset) ? (ce({
|
|
423
423
|
componentName: "VueUiStackline",
|
|
424
424
|
type: "dataset",
|
|
425
|
-
debug:
|
|
426
|
-
}),
|
|
425
|
+
debug: ar.value
|
|
426
|
+
}), Vn.value = !0) : F.dataset.forEach((e, t) => {
|
|
427
427
|
ae({
|
|
428
428
|
datasetObject: e,
|
|
429
429
|
requiredAttributes: ["name", "series"]
|
|
@@ -433,10 +433,10 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
433
433
|
type: "datasetSerieAttribute",
|
|
434
434
|
property: e,
|
|
435
435
|
index: t,
|
|
436
|
-
debug:
|
|
437
|
-
}),
|
|
436
|
+
debug: ar.value
|
|
437
|
+
}), Vn.value = !0;
|
|
438
438
|
});
|
|
439
|
-
}), re(
|
|
439
|
+
}), re(F.dataset) || (Vn.value = z.value.loading), setTimeout(() => {
|
|
440
440
|
dn.value = !0;
|
|
441
441
|
}, 10), z.value.responsive) {
|
|
442
442
|
let e = Me(() => {
|
|
@@ -450,74 +450,74 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
450
450
|
source: ln.value
|
|
451
451
|
});
|
|
452
452
|
requestAnimationFrame(() => {
|
|
453
|
-
U.value.width = e, U.value.height = t - 12, clearTimeout(
|
|
453
|
+
U.value.width = e, U.value.height = t - 12, clearTimeout(ir.value), ir.value = setTimeout(() => {
|
|
454
454
|
dn.value = !0;
|
|
455
455
|
}, 10);
|
|
456
456
|
});
|
|
457
457
|
});
|
|
458
|
-
|
|
458
|
+
nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect()), nr.value = new ResizeObserver(e), rr.value = tn.value.parentNode, nr.value.observe(rr.value);
|
|
459
459
|
}
|
|
460
|
-
e &&
|
|
460
|
+
e && ei();
|
|
461
461
|
}
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
Xe(() => {
|
|
463
|
+
An.stop(), nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect());
|
|
464
464
|
});
|
|
465
|
-
let
|
|
466
|
-
function
|
|
465
|
+
let sr = b(() => z.value.style.chart.grid.y.position === "right");
|
|
466
|
+
function cr() {
|
|
467
467
|
let e = 0;
|
|
468
|
-
|
|
468
|
+
xn.value && (e = Array.from(xn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
469
469
|
let n = t.getComputedTextLength();
|
|
470
470
|
return n > e ? n : e;
|
|
471
471
|
}, 0));
|
|
472
|
-
let t =
|
|
472
|
+
let t = bn.value ? bn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
|
|
473
473
|
return {
|
|
474
|
-
left:
|
|
475
|
-
right:
|
|
474
|
+
left: sr.value ? 0 : e + t,
|
|
475
|
+
right: sr.value ? e + t : 0,
|
|
476
476
|
scaleLabelsWidth: e,
|
|
477
477
|
yAxisLabelWidth: t
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
|
-
let
|
|
481
|
-
function
|
|
482
|
-
let e =
|
|
480
|
+
let lr = k(0), ur = k(0), dr = k(0);
|
|
481
|
+
function fr() {
|
|
482
|
+
let e = Sn.value;
|
|
483
483
|
if (!e) {
|
|
484
|
-
|
|
484
|
+
ur.value = 0;
|
|
485
485
|
return;
|
|
486
486
|
}
|
|
487
487
|
try {
|
|
488
488
|
let t = e.getBBox();
|
|
489
|
-
|
|
489
|
+
ur.value = Number.isFinite(t?.height) ? t.height : 0;
|
|
490
490
|
} catch {
|
|
491
|
-
|
|
491
|
+
ur.value = 0;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
|
|
494
|
+
function pr() {
|
|
495
|
+
dr.value && cancelAnimationFrame(dr.value), dr.value = requestAnimationFrame(() => {
|
|
496
496
|
requestAnimationFrame(() => {
|
|
497
|
-
|
|
497
|
+
fr();
|
|
498
498
|
});
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
|
|
502
|
-
|
|
501
|
+
Xe(() => {
|
|
502
|
+
dr.value && cancelAnimationFrame(dr.value), ur.value = 0, lr.value = 0;
|
|
503
503
|
});
|
|
504
|
-
let
|
|
504
|
+
let mr = b(() => {
|
|
505
505
|
let e = 0;
|
|
506
|
-
if (
|
|
507
|
-
e =
|
|
506
|
+
if (yn.value) try {
|
|
507
|
+
e = yn.value.getBBox().height;
|
|
508
508
|
} catch {
|
|
509
509
|
e = 0;
|
|
510
510
|
}
|
|
511
|
-
let t = z.value.style.chart.grid.x.timeLabels.show ?
|
|
511
|
+
let t = z.value.style.chart.grid.x.timeLabels.show ? ur.value : 0;
|
|
512
512
|
return e + t;
|
|
513
513
|
}), W = b(() => {
|
|
514
|
-
|
|
515
|
-
let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = z.value.style.chart.lines.totalValues.show &&
|
|
514
|
+
En.value;
|
|
515
|
+
let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = z.value.style.chart.lines.totalValues.show && F.dataset && F.dataset.length > 1 ? z.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
|
|
516
516
|
if (z.value.style.chart.grid.y.axisLabels.show) {
|
|
517
|
-
let e =
|
|
517
|
+
let e = cr();
|
|
518
518
|
i = e.left, a = e.right, o = e.scaleLabelsWidth, s = e.yAxisLabelWidth;
|
|
519
519
|
}
|
|
520
|
-
let c = z.value.style.chart.padding.top + r, l = t - t * n -
|
|
520
|
+
let c = z.value.style.chart.padding.top + r, l = t - t * n - lr.value - a, u = e - z.value.style.chart.padding.bottom - mr.value - r, d = z.value.style.chart.padding.left + i, f = t - d - t * n - lr.value - a, p = e - c - z.value.style.chart.padding.bottom - mr.value - r;
|
|
521
521
|
return {
|
|
522
522
|
chartHeight: Math.max(0, e),
|
|
523
523
|
chartWidth: Math.max(0, t),
|
|
@@ -532,7 +532,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
532
532
|
scaleLabelsWidth: o,
|
|
533
533
|
yAxisLabelWidth: s
|
|
534
534
|
};
|
|
535
|
-
}),
|
|
535
|
+
}), hr = b(() => {
|
|
536
536
|
let { left: e, top: t, width: n, height: r } = W.value, i = q.value.start, a = q.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (J.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (J.value.end ?? a) - i)), l = Math.max(0, c - s), u = {
|
|
537
537
|
fill: z.value.style.chart.zoom.preview.fill,
|
|
538
538
|
stroke: z.value.style.chart.zoom.preview.stroke,
|
|
@@ -553,8 +553,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
553
553
|
height: r,
|
|
554
554
|
...u
|
|
555
555
|
};
|
|
556
|
-
}), G = b(() =>
|
|
557
|
-
let n = oe(), r = d(e.color) ||
|
|
556
|
+
}), G = b(() => Bn.value.map((e, t) => {
|
|
557
|
+
let n = oe(), r = d(e.color) || tr.value[t] || u[t] || u[t % u.length];
|
|
558
558
|
return {
|
|
559
559
|
...e,
|
|
560
560
|
shape: e.shape || "circle",
|
|
@@ -566,66 +566,66 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
566
566
|
id: n,
|
|
567
567
|
color: r
|
|
568
568
|
};
|
|
569
|
-
})),
|
|
569
|
+
})), gr = b(() => G.value.filter((e) => !L.value.includes(e.id) && !e.standalone)), _r = b(() => G.value.filter((e) => !L.value.includes(e.id) && e.standalone)), K = b(() => {
|
|
570
570
|
let e = Math.max(...G.value.filter((e) => !L.value.includes(e.id)).map((e) => e.series.length));
|
|
571
571
|
return isFinite(e) ? e : Math.max(...G.value.map((e) => e.series.length));
|
|
572
572
|
});
|
|
573
|
-
function
|
|
574
|
-
|
|
573
|
+
function vr(e) {
|
|
574
|
+
Pn.value = e;
|
|
575
575
|
}
|
|
576
|
-
let q =
|
|
576
|
+
let q = k({
|
|
577
577
|
start: 0,
|
|
578
|
-
end: Math.max(...
|
|
579
|
-
}), J =
|
|
578
|
+
end: Math.max(...Bn.value.map((e) => e.series.length))
|
|
579
|
+
}), J = k({
|
|
580
580
|
start: 0,
|
|
581
|
-
end: Math.max(...
|
|
581
|
+
end: Math.max(...Bn.value.map((e) => e.series.length))
|
|
582
582
|
});
|
|
583
|
-
function
|
|
583
|
+
function yr(e) {
|
|
584
584
|
return (q.value.start ?? 0) + (e ?? 0);
|
|
585
585
|
}
|
|
586
|
-
let
|
|
587
|
-
function
|
|
586
|
+
let br = b(() => z.value.style.chart.zoom.preview.enable && (J.value.start !== q.value.start || J.value.end !== q.value.end));
|
|
587
|
+
function xr(e, t) {
|
|
588
588
|
J.value[e] = t;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Sr() {
|
|
591
591
|
let e = K.value, t = Math.max(0, Math.min(q.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(q.value.end ?? e, e));
|
|
592
592
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), q.value.start = t, q.value.end = n, J.value.start = t, J.value.end = n, sn.value && (sn.value.setStartValue(t), sn.value.setEndValue(n));
|
|
593
593
|
}
|
|
594
|
-
let
|
|
595
|
-
function
|
|
594
|
+
let Cr = k(null);
|
|
595
|
+
function wr() {
|
|
596
596
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
597
597
|
}
|
|
598
|
-
|
|
599
|
-
|
|
598
|
+
Xe(() => {
|
|
599
|
+
Cr.value && cancelAnimationFrame(Cr.value);
|
|
600
600
|
});
|
|
601
|
-
async function
|
|
602
|
-
if (z.value.style.chart.zoom.keepState && !e &&
|
|
603
|
-
|
|
601
|
+
async function Tr({ force: e = !1 } = {}) {
|
|
602
|
+
if (z.value.style.chart.zoom.keepState && !e && Qr.value && (q.value.start !== 0 || q.value.end !== 0)) {
|
|
603
|
+
Sr();
|
|
604
604
|
return;
|
|
605
605
|
}
|
|
606
|
-
|
|
607
|
-
await
|
|
606
|
+
ei(), await Je(), Cr.value && cancelAnimationFrame(Cr.value), Cr.value = requestAnimationFrame(async () => {
|
|
607
|
+
await wr(), ei();
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
|
-
let
|
|
610
|
+
let Er = b(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Dr = b(() => m(gr.value.map((e) => ({
|
|
611
611
|
...e,
|
|
612
612
|
series: e.series.map((e) => e ?? 0)
|
|
613
|
-
}))).slice(q.value.start, q.value.end)),
|
|
613
|
+
}))).slice(q.value.start, q.value.end)), Or = b(() => L.value.length === G.value.length), kr = b(() => {
|
|
614
614
|
if (!z.value.style.chart.zoom.minimap.show) return [];
|
|
615
|
-
let e = G.value.filter((e) =>
|
|
615
|
+
let e = G.value.filter((e) => Or.value ? !0 : !L.value.includes(e.id) && !e.standalone);
|
|
616
616
|
if (e.length) return m(e.map((e) => ({
|
|
617
617
|
...e,
|
|
618
618
|
series: (e.series || []).map((e) => e ?? 0)
|
|
619
619
|
})));
|
|
620
|
-
let t =
|
|
620
|
+
let t = _r.value;
|
|
621
621
|
if (!t.length) return [];
|
|
622
622
|
let n = Math.max(...t.map((e) => e.series.length || 0));
|
|
623
623
|
return Array.from({ length: n }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
|
|
624
|
-
}),
|
|
624
|
+
}), Ar = b(() => {
|
|
625
625
|
if (!z.value.style.chart.zoom.minimap.show) return [];
|
|
626
|
-
let e = G.value.filter((e) =>
|
|
626
|
+
let e = G.value.filter((e) => Or.value ? !0 : !L.value.includes(e.id) && !e.standalone), t = _r.value, n = e.length ? [{
|
|
627
627
|
name: "",
|
|
628
|
-
series:
|
|
628
|
+
series: kr.value,
|
|
629
629
|
color: "#000000",
|
|
630
630
|
isVisible: !0
|
|
631
631
|
}] : [], r = t.map((e) => ({
|
|
@@ -635,14 +635,14 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
635
635
|
isVisible: !0
|
|
636
636
|
}));
|
|
637
637
|
return n.concat(r);
|
|
638
|
-
}),
|
|
638
|
+
}), jr = b(() => m(gr.value.filter((e) => !L.value.includes(e.id)).map((e) => ({
|
|
639
639
|
...e,
|
|
640
640
|
series: e.series.map((t, n) => {
|
|
641
641
|
let r = t ?? 0;
|
|
642
642
|
return e.signedSeries[n] === -1 && r >= 0 ? -r : r;
|
|
643
643
|
})
|
|
644
|
-
}))).slice(q.value.start, q.value.end)),
|
|
645
|
-
let e =
|
|
644
|
+
}))).slice(q.value.start, q.value.end)), Mr = b(() => {
|
|
645
|
+
let e = gr.value.filter((e) => !L.value.includes(e.id));
|
|
646
646
|
return {
|
|
647
647
|
positive: m(e.map((e) => ({
|
|
648
648
|
...e,
|
|
@@ -653,9 +653,9 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
653
653
|
series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
|
|
654
654
|
})))
|
|
655
655
|
};
|
|
656
|
-
}),
|
|
656
|
+
}), Nr = b(() => {
|
|
657
657
|
let e = Math.max(0, q.value.end - q.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
|
|
658
|
-
return
|
|
658
|
+
return _r.value.forEach((r) => {
|
|
659
659
|
for (let i = 0; i < e; i += 1) {
|
|
660
660
|
let e = r.series[q.value.start + i] ?? 0;
|
|
661
661
|
e > 0 && (t[i] = Math.max(t[i], e)), e < 0 && (n[i] = Math.min(n[i], e));
|
|
@@ -664,16 +664,16 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
664
664
|
positive: t,
|
|
665
665
|
negative: n
|
|
666
666
|
};
|
|
667
|
-
}),
|
|
667
|
+
}), Pr = b(() => jr.value.map((e, t) => ({
|
|
668
668
|
value: e,
|
|
669
669
|
sign: e >= 0 ? 1 : -1
|
|
670
670
|
})));
|
|
671
|
-
function
|
|
672
|
-
return { y0:
|
|
671
|
+
function Fr() {
|
|
672
|
+
return { y0: Lr.value?.[0]?.zero ?? W.value.bottom };
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
let { y0: t } =
|
|
676
|
-
if ((
|
|
674
|
+
function Ir(e) {
|
|
675
|
+
let { y0: t } = Fr(), n = z.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, W.value.top - z.value.style.chart.lines.totalValues.fontSize * 1.3), W.value.bottom + z.value.style.chart.lines.totalValues.fontSize * 2);
|
|
676
|
+
if ((Pr.value?.[e]?.value ?? 0) >= 0 || z.value.style.chart.lines.distributed) {
|
|
677
677
|
let n = Infinity;
|
|
678
678
|
for (let t of Y.value || []) {
|
|
679
679
|
let r = t?.series?.[e], i = t?.topY?.[e];
|
|
@@ -690,8 +690,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
690
690
|
return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + z.value.style.chart.lines.totalValues.offsetY);
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
|
-
let
|
|
694
|
-
let e = Math.max(...
|
|
693
|
+
let Lr = b(() => {
|
|
694
|
+
let e = Math.max(...Mr.value.positive, 0), t = Math.min(...Mr.value.negative, 0), n = Math.max(...Nr.value.positive, 0), r = Math.min(...Nr.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
|
|
695
695
|
-Infinity,
|
|
696
696
|
Infinity,
|
|
697
697
|
NaN,
|
|
@@ -703,13 +703,13 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
703
703
|
return {
|
|
704
704
|
zero: ee,
|
|
705
705
|
y: n,
|
|
706
|
-
x:
|
|
706
|
+
x: sr.value ? X.value.right + 8 : X.value.left - 8,
|
|
707
707
|
value: t
|
|
708
708
|
};
|
|
709
709
|
});
|
|
710
|
-
}),
|
|
711
|
-
|
|
712
|
-
let e = ++
|
|
710
|
+
}), Rr = k([]), zr = k([]), Br = 0;
|
|
711
|
+
rt(() => {
|
|
712
|
+
let e = ++Br;
|
|
713
713
|
(async () => {
|
|
714
714
|
let t = await _e({
|
|
715
715
|
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
@@ -718,12 +718,12 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
718
718
|
start: q.value.start,
|
|
719
719
|
end: q.value.end
|
|
720
720
|
});
|
|
721
|
-
e ===
|
|
721
|
+
e === Br && (Rr.value = t);
|
|
722
722
|
})();
|
|
723
723
|
});
|
|
724
|
-
let
|
|
725
|
-
|
|
726
|
-
let e = ++
|
|
724
|
+
let Vr = 0;
|
|
725
|
+
rt(() => {
|
|
726
|
+
let e = ++Vr;
|
|
727
727
|
(async () => {
|
|
728
728
|
let t = await _e({
|
|
729
729
|
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
@@ -732,55 +732,55 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
732
732
|
start: 0,
|
|
733
733
|
end: K.value
|
|
734
734
|
});
|
|
735
|
-
e ===
|
|
735
|
+
e === Vr && (zr.value = t);
|
|
736
736
|
})();
|
|
737
737
|
});
|
|
738
|
-
let
|
|
738
|
+
let Hr = b(() => {
|
|
739
739
|
let e = z.value.style.chart.grid.x.timeLabels.modulo;
|
|
740
|
-
return
|
|
741
|
-
}),
|
|
742
|
-
let e = z.value.style.chart.grid.x.timeLabels, t =
|
|
743
|
-
return ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1,
|
|
740
|
+
return Rr.value.length ? Math.min(e, [...new Set(Rr.value.map((e) => e.text))].length) : e;
|
|
741
|
+
}), Ur = b(() => {
|
|
742
|
+
let e = z.value.style.chart.grid.x.timeLabels, t = Rr.value || [], n = zr.value || [], r = q.value.start ?? 0, i = $.value, a = K.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
743
|
+
return ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Hr.value || 1), o, s, r, i, a);
|
|
744
744
|
});
|
|
745
|
-
|
|
746
|
-
z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, (
|
|
745
|
+
rt(() => {
|
|
746
|
+
z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, (Ur.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height, Sn.value, yn.value, pr();
|
|
747
747
|
}, { flush: "post" });
|
|
748
|
-
let
|
|
748
|
+
let Wr = k({
|
|
749
749
|
months: [],
|
|
750
750
|
shortMonths: [],
|
|
751
751
|
days: [],
|
|
752
752
|
shortDays: []
|
|
753
|
-
}),
|
|
754
|
-
|
|
755
|
-
let e = ++
|
|
753
|
+
}), Gr = 0;
|
|
754
|
+
rt(() => {
|
|
755
|
+
let e = ++Gr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
756
756
|
(async () => {
|
|
757
757
|
let n = await ge(t.locale).catch(() => ge("en"));
|
|
758
|
-
e ===
|
|
758
|
+
e === Gr && (Wr.value = n.data);
|
|
759
759
|
})();
|
|
760
760
|
});
|
|
761
|
-
let
|
|
761
|
+
let Kr = b(() => {
|
|
762
762
|
let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = he({
|
|
763
763
|
useUTC: e.useUTC,
|
|
764
|
-
locale:
|
|
764
|
+
locale: Wr.value,
|
|
765
765
|
januaryAsYear: e.januaryAsYear
|
|
766
766
|
});
|
|
767
767
|
return (e, n) => {
|
|
768
768
|
let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
769
769
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
770
770
|
};
|
|
771
|
-
}),
|
|
772
|
-
text:
|
|
771
|
+
}), qr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
772
|
+
text: Kr.value(t, z.value.style.chart.zoom.timeFormat),
|
|
773
773
|
absoluteIndex: t
|
|
774
|
-
}))),
|
|
775
|
-
text:
|
|
774
|
+
}))), Jr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
775
|
+
text: Kr.value(t, z.value.style.chart.tooltip.timeFormat),
|
|
776
776
|
absoluteIndex: t
|
|
777
|
-
}))),
|
|
778
|
-
if (!en.value && !
|
|
779
|
-
let e = W.value.height, t =
|
|
777
|
+
}))), Yr = b(() => {
|
|
778
|
+
if (!en.value && !zn.value) return [];
|
|
779
|
+
let e = W.value.height, t = Lr.value[0] ? Lr.value[0].zero : W.value.bottom, n = q.value.start ?? 0, r = q.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...Mr.value.positive, 0), o = Math.min(...Mr.value.negative, 0), s = Math.max(...Nr.value.positive, 0), c = Math.min(...Nr.value.negative, 0), l = Math.max(a, s), u = Math.min(o, c), { min: d, max: f } = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? le(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : g(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), p = f + (d >= 0 ? 0 : Math.abs(d)) || 1, m = Array(i).fill(0), h = Array(i).fill(0), _ = (e) => i <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e / (i - 1) * W.value.width;
|
|
780
780
|
return G.value.filter((e) => !L.value.includes(e.id)).map((r) => {
|
|
781
781
|
let a = [], o = [], s = [], c = Array(i).fill(null), l = Array(i).fill(null);
|
|
782
782
|
for (let u = 0; u < i; u += 1) {
|
|
783
|
-
let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p : z.value.style.chart.lines.distributed ? g / (
|
|
783
|
+
let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p : z.value.style.chart.lines.distributed ? g / (Dr.value[u] || 1) : g / p;
|
|
784
784
|
if (g >= 0) {
|
|
785
785
|
let n = e * Math.abs(_);
|
|
786
786
|
if (r.standalone) c[u] = t, l[u] = t - n;
|
|
@@ -803,7 +803,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
803
803
|
y: l[e]
|
|
804
804
|
})), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), g = f === 0 ? 1 : f, ee = o.map((e, t) => {
|
|
805
805
|
if (z.value.style.chart.lines.distributed && !r.standalone) {
|
|
806
|
-
let n = a[t], r =
|
|
806
|
+
let n = a[t], r = Dr.value[n] || 1;
|
|
807
807
|
return (e || 0) / r;
|
|
808
808
|
}
|
|
809
809
|
return (e || 0) / g;
|
|
@@ -822,14 +822,14 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
822
822
|
};
|
|
823
823
|
});
|
|
824
824
|
}), Y = b(() => {
|
|
825
|
-
let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...
|
|
825
|
+
let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...Mr.value.positive, 0), n = Math.min(...Mr.value.negative, 0), r = Math.max(...Nr.value.positive, 0), i = Math.min(...Nr.value.negative, 0), a = Math.max(t, r), o = Math.min(n, i), s = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? le(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : g(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), c = Number(s.min) || 0, u = Number(s.max) || 0, d = Math.abs(c), f = u + d || 1, m = (e) => {
|
|
826
826
|
if (z.value.style.chart.lines.distributed) {
|
|
827
827
|
let t = Math.max(0, Math.min(1, e));
|
|
828
828
|
return minimapH - minimapH * t;
|
|
829
829
|
}
|
|
830
830
|
return clampY(minimapH - minimapH * (((e ?? 0) + d) / f));
|
|
831
831
|
};
|
|
832
|
-
return
|
|
832
|
+
return Yr.value.map((t) => {
|
|
833
833
|
let n = t.x.length, r = Array.isArray(t.fullSeries) ? t.fullSeries : t.series, i = ({ left: e = 0, unitW: t }) => {
|
|
834
834
|
let n = r.length;
|
|
835
835
|
return !Number.isFinite(t) || t <= 0 || n <= 0 ? [] : n === 1 ? [e + t * .5] : r.map((n, r) => e + r * t);
|
|
@@ -872,67 +872,67 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
872
872
|
yMinimapBase: o
|
|
873
873
|
};
|
|
874
874
|
});
|
|
875
|
-
}),
|
|
876
|
-
timeLabel:
|
|
875
|
+
}), Xr = b(() => $.value === null || $.value === void 0 ? null : {
|
|
876
|
+
timeLabel: _i($.value),
|
|
877
877
|
absoluteIndex: $.value + q.value.start,
|
|
878
878
|
seriesIndex: $.value,
|
|
879
|
-
datapoint:
|
|
879
|
+
datapoint: gi.value,
|
|
880
880
|
series: Y.value,
|
|
881
881
|
config: z.value
|
|
882
|
-
}),
|
|
883
|
-
function
|
|
882
|
+
}), Zr = k(!1), Qr = k(!1);
|
|
883
|
+
function $r(e) {
|
|
884
884
|
let t = K.value;
|
|
885
885
|
return e > t ? t : e < 0 || e < q.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : q.value.start + 1 : e;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
if (
|
|
889
|
-
|
|
887
|
+
function ei() {
|
|
888
|
+
if (!Zr.value) {
|
|
889
|
+
Zr.value = !0;
|
|
890
890
|
try {
|
|
891
891
|
let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, K.value) : K.value;
|
|
892
892
|
if (n && r <= 0) return;
|
|
893
|
-
let i = e ?? 0, a = t == null ? r : Math.min(
|
|
894
|
-
|
|
893
|
+
let i = e ?? 0, a = t == null ? r : Math.min($r(t + 1), r);
|
|
894
|
+
ii.value = !0, q.value.start = i, q.value.end = a, J.value.start = i, J.value.end = a, Sr(), Qr.value = !0;
|
|
895
895
|
} finally {
|
|
896
896
|
queueMicrotask(() => {
|
|
897
|
-
|
|
898
|
-
}),
|
|
897
|
+
ii.value = !1;
|
|
898
|
+
}), Zr.value = !1;
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
|
-
function
|
|
903
|
-
|
|
902
|
+
function ti(e) {
|
|
903
|
+
Zr.value || ii.value || e !== q.value.start && (q.value.start = e, J.value.start = e, Sr());
|
|
904
904
|
}
|
|
905
|
-
function
|
|
906
|
-
if (
|
|
907
|
-
let t =
|
|
908
|
-
t !== q.value.end && (q.value.end = t, J.value.end = t,
|
|
905
|
+
function ni(e) {
|
|
906
|
+
if (Zr.value || ii.value) return;
|
|
907
|
+
let t = $r(e);
|
|
908
|
+
t !== q.value.end && (q.value.end = t, J.value.end = t, Sr());
|
|
909
909
|
}
|
|
910
910
|
let X = b(() => ({
|
|
911
911
|
left: W.value.left,
|
|
912
912
|
right: W.value.right,
|
|
913
913
|
width: W.value.width
|
|
914
|
-
})),
|
|
914
|
+
})), ri = b(() => {
|
|
915
915
|
let e = z.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = z.value.style.chart.lines.dataLabels;
|
|
916
|
-
return
|
|
916
|
+
return Lr.value.map((r) => String(v(e.formatter, r.value, h({
|
|
917
917
|
p: t,
|
|
918
918
|
v: r.value,
|
|
919
919
|
s: n,
|
|
920
920
|
r: e.rounding
|
|
921
921
|
}), { datapoint: r }) ?? "")).join("|");
|
|
922
922
|
});
|
|
923
|
-
|
|
924
|
-
|
|
923
|
+
nt([
|
|
924
|
+
ri,
|
|
925
925
|
() => z.value.style.chart.grid.y.axisLabels.show,
|
|
926
926
|
() => z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
927
927
|
() => z.value.style.chart.grid.y.axisLabels.bold,
|
|
928
928
|
() => z.value.style.chart.grid.y.position
|
|
929
929
|
], () => {
|
|
930
|
-
z.value.style.chart.grid.y.axisLabels.show &&
|
|
930
|
+
z.value.style.chart.grid.y.axisLabels.show && Nn();
|
|
931
931
|
}, { flush: "post" });
|
|
932
|
-
let
|
|
932
|
+
let ii = k(!1), ai = b(() => U.value.width), oi = b(() => U.value.height);
|
|
933
933
|
De({
|
|
934
|
-
timeLabelsEls:
|
|
935
|
-
timeLabels:
|
|
934
|
+
timeLabelsEls: Sn,
|
|
935
|
+
timeLabels: Rr,
|
|
936
936
|
slicer: q,
|
|
937
937
|
configRef: z,
|
|
938
938
|
rotationPath: [
|
|
@@ -953,12 +953,12 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
953
953
|
"enable"
|
|
954
954
|
],
|
|
955
955
|
isAutoSize: !1,
|
|
956
|
-
width:
|
|
957
|
-
height:
|
|
956
|
+
width: ai,
|
|
957
|
+
height: oi,
|
|
958
958
|
rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
959
959
|
});
|
|
960
|
-
let
|
|
961
|
-
function
|
|
960
|
+
let si = k(null);
|
|
961
|
+
function ci(e) {
|
|
962
962
|
let t = V.value;
|
|
963
963
|
if (!t) return null;
|
|
964
964
|
if (t.createSVGPoint && t.getScreenCTM) {
|
|
@@ -986,11 +986,11 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
986
986
|
ok: !0
|
|
987
987
|
};
|
|
988
988
|
}
|
|
989
|
-
let
|
|
989
|
+
let li = 0, Z = b(() => Math.max(1, q.value.end - q.value.start)), ui = b(() => Z.value > 1 ? W.value.width / (Z.value - 1) : 0);
|
|
990
990
|
function Q(e) {
|
|
991
|
-
return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e *
|
|
991
|
+
return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e * ui.value;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function di(e) {
|
|
994
994
|
if (Z.value <= 1) return {
|
|
995
995
|
x: W.value.left,
|
|
996
996
|
width: W.value.width
|
|
@@ -1001,43 +1001,43 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1001
1001
|
width: Math.max(0, n - t)
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
let t =
|
|
1004
|
+
function fi(e) {
|
|
1005
|
+
Fn.value || (li && cancelAnimationFrame(li), li = requestAnimationFrame(() => {
|
|
1006
|
+
li = 0;
|
|
1007
|
+
let t = ci(e);
|
|
1008
1008
|
if (!t || !V.value) {
|
|
1009
|
-
|
|
1009
|
+
hi();
|
|
1010
1010
|
return;
|
|
1011
1011
|
}
|
|
1012
1012
|
let { left: n, right: r, top: i, bottom: a } = W.value;
|
|
1013
1013
|
if (t.x < n || t.x > r || t.y < i || t.y > a) {
|
|
1014
|
-
|
|
1014
|
+
hi();
|
|
1015
1015
|
return;
|
|
1016
1016
|
}
|
|
1017
1017
|
let o = 0;
|
|
1018
1018
|
if (Z.value > 1) {
|
|
1019
|
-
let e = (t.x - n) /
|
|
1019
|
+
let e = (t.x - n) / ui.value;
|
|
1020
1020
|
o = Math.round(e);
|
|
1021
1021
|
} else o = 0;
|
|
1022
|
-
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1),
|
|
1022
|
+
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), si.value !== o && (si.value = o, yi(!0, o));
|
|
1023
1023
|
}));
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1026
|
-
let t =
|
|
1025
|
+
function pi(e) {
|
|
1026
|
+
let t = ci(e);
|
|
1027
1027
|
if (!t || !V.value) return;
|
|
1028
1028
|
let { left: n, right: r, top: i, bottom: a } = W.value;
|
|
1029
1029
|
if (t.x < n || t.x > r || t.y < i || t.y > a) return;
|
|
1030
1030
|
let o = 0;
|
|
1031
1031
|
if (Z.value > 1) {
|
|
1032
|
-
let e = (t.x - n) /
|
|
1032
|
+
let e = (t.x - n) / ui.value;
|
|
1033
1033
|
o = Math.round(e);
|
|
1034
1034
|
} else o = 0;
|
|
1035
|
-
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1),
|
|
1035
|
+
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ea({
|
|
1036
1036
|
seriesIndex: o,
|
|
1037
|
-
datapoint:
|
|
1038
|
-
}),
|
|
1037
|
+
datapoint: Ki(o)
|
|
1038
|
+
}), mi(o);
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function mi(e) {
|
|
1041
1041
|
let t = JSON.parse(JSON.stringify(Y.value)).map((t) => ({
|
|
1042
1042
|
name: t.name,
|
|
1043
1043
|
value: t.series[e] === 0 ? 0 : t.series[e] || null,
|
|
@@ -1048,12 +1048,12 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1048
1048
|
z.value.events.datapointClick && z.value.events.datapointClick({
|
|
1049
1049
|
datapoint: t,
|
|
1050
1050
|
seriesIndex: e + q.value.start
|
|
1051
|
-
}),
|
|
1051
|
+
}), $t("selectDatapoint", {
|
|
1052
1052
|
datapoint: t,
|
|
1053
|
-
period:
|
|
1053
|
+
period: Rr.value[e]
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
|
-
|
|
1056
|
+
nt(() => [
|
|
1057
1057
|
q.value.start,
|
|
1058
1058
|
q.value.end,
|
|
1059
1059
|
Y.value.length
|
|
@@ -1067,11 +1067,11 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1067
1067
|
$.value < 0 && ($.value = 0), $.value > e - 1 && ($.value = e - 1);
|
|
1068
1068
|
}
|
|
1069
1069
|
});
|
|
1070
|
-
function
|
|
1071
|
-
|
|
1070
|
+
function hi() {
|
|
1071
|
+
li &&= (cancelAnimationFrame(li), 0), si.value = null, yi(!1, null);
|
|
1072
1072
|
}
|
|
1073
|
-
let $ =
|
|
1074
|
-
let e = $.value, t = e == null ? null :
|
|
1073
|
+
let $ = k(null), gi = b(() => {
|
|
1074
|
+
let e = $.value, t = e == null ? null : yr(e);
|
|
1075
1075
|
return Y.value.map((n) => ({
|
|
1076
1076
|
slotAbsoluteIndex: n.absoluteIndex,
|
|
1077
1077
|
shape: n.shape || "circle",
|
|
@@ -1084,23 +1084,23 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1084
1084
|
standalone: !!n.standalone
|
|
1085
1085
|
}));
|
|
1086
1086
|
});
|
|
1087
|
-
function
|
|
1087
|
+
function _i(e) {
|
|
1088
1088
|
if (e == null || !z.value.style.chart.tooltip.showTimeLabel) return null;
|
|
1089
|
-
let t =
|
|
1089
|
+
let t = Rr.value?.[e]?.text || null, n = Jr.value?.[e]?.text || null, r = zr.value?.[e]?.text || null;
|
|
1090
1090
|
return z.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
|
|
1091
1091
|
}
|
|
1092
|
-
let
|
|
1093
|
-
let e = z.value.style.chart.tooltip.customFormat, t = [...
|
|
1092
|
+
let vi = b(() => {
|
|
1093
|
+
let e = z.value.style.chart.tooltip.customFormat, t = [...gi.value].reverse(), n = t.filter((e) => !e.standalone), r = t.filter((e) => e.standalone), i = n.map((e) => e.value).filter((e) => f(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
|
|
1094
1094
|
if (de(e) && te(() => e({
|
|
1095
1095
|
absoluteIndex: $.value + q.value.start,
|
|
1096
1096
|
seriesIndex: $.value,
|
|
1097
|
-
datapoint:
|
|
1097
|
+
datapoint: gi.value,
|
|
1098
1098
|
series: G.value,
|
|
1099
1099
|
config: z.value
|
|
1100
1100
|
}))) return e({
|
|
1101
1101
|
absoluteIndex: $.value + q.value.start,
|
|
1102
1102
|
seriesIndex: $.value,
|
|
1103
|
-
datapoint:
|
|
1103
|
+
datapoint: gi.value,
|
|
1104
1104
|
series: G.value,
|
|
1105
1105
|
config: z.value
|
|
1106
1106
|
});
|
|
@@ -1175,7 +1175,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1175
1175
|
}, { datapoint: e })) : ""} ${r}${n}${o}
|
|
1176
1176
|
</div>
|
|
1177
1177
|
`;
|
|
1178
|
-
}, _ = "", ee =
|
|
1178
|
+
}, _ = "", ee = _i($.value);
|
|
1179
1179
|
return ee && (_ += `<div style="width:100%;text-align:center;border-bottom:1px solid ${u};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), o && n.length > 1 && (_ += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1180
1180
|
<span>${c}:</span>
|
|
1181
1181
|
<span>${v(z.value.style.chart.lines.dataLabels.formatter, ie(i), h({
|
|
@@ -1189,13 +1189,13 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1189
1189
|
} })}</span>
|
|
1190
1190
|
</div>`), n.forEach((e) => {
|
|
1191
1191
|
_ += g(e, l);
|
|
1192
|
-
}), r.length && (_ += `<div style="border-top:1px solid ${
|
|
1192
|
+
}), r.length && (_ += `<div style="border-top:1px solid ${gr.value.length ? u : "transparent"}; margin:${gr.value.length ? "6px 0" : "0"};"></div>`, r.forEach((e) => {
|
|
1193
1193
|
_ += g(e, !1);
|
|
1194
1194
|
})), `<div>${_}</div>`;
|
|
1195
1195
|
});
|
|
1196
|
-
function
|
|
1197
|
-
if (
|
|
1198
|
-
|
|
1196
|
+
function yi(e, t = null, n = "pointer") {
|
|
1197
|
+
if (Or.value) return;
|
|
1198
|
+
kn.value = n, nn.value = e;
|
|
1199
1199
|
let r = Y.value.map((e) => ({
|
|
1200
1200
|
name: e.name,
|
|
1201
1201
|
value: [
|
|
@@ -1205,13 +1205,13 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1205
1205
|
].includes(e.series[t]) ? null : e.series[t],
|
|
1206
1206
|
color: e.color
|
|
1207
1207
|
}));
|
|
1208
|
-
e ? (R.value = t, $.value = t,
|
|
1208
|
+
e ? (R.value = t, $.value = t, ea({
|
|
1209
1209
|
seriesIndex: t,
|
|
1210
1210
|
datapoint: r
|
|
1211
1211
|
}), z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
1212
1212
|
datapoint: r,
|
|
1213
1213
|
seriesIndex: t + q.value.start
|
|
1214
|
-
})) : (R.value = null, $.value = null,
|
|
1214
|
+
})) : (R.value = null, $.value = null, $t("selectX", {
|
|
1215
1215
|
index: null,
|
|
1216
1216
|
indexLabel: null,
|
|
1217
1217
|
dataset: null
|
|
@@ -1220,7 +1220,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1220
1220
|
seriesIndex: t + q.value.start
|
|
1221
1221
|
}));
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function bi(e, t) {
|
|
1224
1224
|
let n = JSON.parse(JSON.stringify(Y.value)).map((e) => ({
|
|
1225
1225
|
name: e.name,
|
|
1226
1226
|
value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
|
|
@@ -1228,31 +1228,31 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1228
1228
|
color: e.color,
|
|
1229
1229
|
id: e.id
|
|
1230
1230
|
}));
|
|
1231
|
-
|
|
1231
|
+
$t("selectTimeLabel", {
|
|
1232
1232
|
datapoint: n,
|
|
1233
1233
|
absoluteIndex: e.absoluteIndex,
|
|
1234
1234
|
label: e.text
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1238
|
-
L.value.length ? L.value = [] :
|
|
1237
|
+
function xi() {
|
|
1238
|
+
L.value.length ? L.value = [] : Ci.value.forEach((e) => {
|
|
1239
1239
|
L.value.push(e.id);
|
|
1240
|
-
}),
|
|
1240
|
+
}), $t("selectLegend", Y.value);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function Si(e) {
|
|
1243
1243
|
if (L.value.includes(e.id)) L.value = L.value.filter((t) => t !== e.id);
|
|
1244
1244
|
else {
|
|
1245
1245
|
if (L.value.length === G.value.length - 1) return;
|
|
1246
1246
|
L.value.push(e.id);
|
|
1247
1247
|
}
|
|
1248
|
-
|
|
1248
|
+
$t("selectLegend", Y.value);
|
|
1249
1249
|
}
|
|
1250
|
-
let
|
|
1250
|
+
let Ci = b(() => G.value.map((e) => ({
|
|
1251
1251
|
...e,
|
|
1252
1252
|
opacity: L.value.includes(e.id) ? .5 : 1,
|
|
1253
|
-
segregate: () =>
|
|
1253
|
+
segregate: () => Si(e),
|
|
1254
1254
|
isSegregated: L.value.includes(e.id)
|
|
1255
|
-
}))),
|
|
1255
|
+
}))), wi = b(() => ({
|
|
1256
1256
|
cy: "stackline-legend",
|
|
1257
1257
|
backgroundColor: z.value.style.chart.legend.backgroundColor,
|
|
1258
1258
|
color: z.value.style.chart.legend.color,
|
|
@@ -1260,18 +1260,18 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1260
1260
|
paddingBottom: 12,
|
|
1261
1261
|
fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
|
|
1262
1262
|
}));
|
|
1263
|
-
function
|
|
1264
|
-
return G.value.length ? G.value.find((t) => t.name === e) || (
|
|
1263
|
+
function Ti(e) {
|
|
1264
|
+
return G.value.length ? G.value.find((t) => t.name === e) || (ar.value && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (ar.value && console.warn("VueUiStackline - There are no series to show."), null);
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1267
|
-
let t =
|
|
1268
|
-
t !== null && L.value.includes(t.id) &&
|
|
1266
|
+
function Ei(e) {
|
|
1267
|
+
let t = Ti(e);
|
|
1268
|
+
t !== null && L.value.includes(t.id) && Si({ id: t.id });
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1271
|
-
let t =
|
|
1272
|
-
t !== null && (L.value.includes(t.id) ||
|
|
1270
|
+
function Di(e) {
|
|
1271
|
+
let t = Ti(e);
|
|
1272
|
+
t !== null && (L.value.includes(t.id) || Si({ id: t.id }));
|
|
1273
1273
|
}
|
|
1274
|
-
let
|
|
1274
|
+
let Oi = b(() => {
|
|
1275
1275
|
if (Y.value.length === 0) return {
|
|
1276
1276
|
head: [],
|
|
1277
1277
|
body: [],
|
|
@@ -1282,7 +1282,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1282
1282
|
label: e,
|
|
1283
1283
|
color: t
|
|
1284
1284
|
})), t = [];
|
|
1285
|
-
return
|
|
1285
|
+
return Ur.value.forEach((e) => {
|
|
1286
1286
|
let n = e.absoluteIndex, r = [z.value.style.chart.grid.x.timeLabels.values?.[n] ? e.text : n + 1];
|
|
1287
1287
|
G.value.forEach((e) => {
|
|
1288
1288
|
let t = e.series?.[n], i = Number((t ?? 0).toFixed(z.value.table.td.roundingValue));
|
|
@@ -1293,21 +1293,21 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1293
1293
|
body: t
|
|
1294
1294
|
};
|
|
1295
1295
|
});
|
|
1296
|
-
function
|
|
1296
|
+
function ki(e = null) {
|
|
1297
1297
|
let n = [
|
|
1298
1298
|
[z.value.style.chart.title.text],
|
|
1299
1299
|
[z.value.style.chart.title.subtitle.text],
|
|
1300
1300
|
[""]
|
|
1301
|
-
], i = ["", ...
|
|
1301
|
+
], i = ["", ...Oi.value.head.map((e) => e.label)], a = Oi.value.body, o = n.concat([i]).concat(a), s = r(o);
|
|
1302
1302
|
e ? e(s) : t({
|
|
1303
1303
|
csvContent: s,
|
|
1304
1304
|
title: z.value.style.chart.title.text || "vue-ui-stackline"
|
|
1305
1305
|
});
|
|
1306
1306
|
}
|
|
1307
|
-
let
|
|
1307
|
+
let Ai = b(() => {
|
|
1308
1308
|
let e = [""].concat(Y.value.map((e) => e.name), " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"), t = [], n = Math.max(0, q.value.end - q.value.start);
|
|
1309
1309
|
for (let e = 0; e < n; e += 1) {
|
|
1310
|
-
let n =
|
|
1310
|
+
let n = yr(e), r = z.value.style.chart.grid.x.timeLabels.values?.[n] ? Rr.value?.[e]?.text ?? n + 1 : n + 1, i = Y.value.map((t) => {
|
|
1311
1311
|
let n = t.series?.[e] ?? 0;
|
|
1312
1312
|
return Number(n.toFixed(z.value.table.td.roundingValue));
|
|
1313
1313
|
}), a = Y.value.filter((e) => !e.standalone).map((t) => t.series?.[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
@@ -1331,30 +1331,16 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1331
1331
|
},
|
|
1332
1332
|
colNames: [z.value.table.columnNames.period].concat(Y.value.map((e) => e.name), z.value.table.columnNames.total)
|
|
1333
1333
|
};
|
|
1334
|
-
}),
|
|
1334
|
+
}), ji = b(() => z.value.style.chart.backgroundColor), Mi = b(() => z.value.style.chart.legend), Ni = b(() => z.value.style.chart.title), { isCallbackImaging: Pi, isCallbackSvg: Fi, generateSvg: Ii, onGenerateImage: Li } = we({
|
|
1335
1335
|
svg: V,
|
|
1336
|
-
title:
|
|
1337
|
-
legend:
|
|
1338
|
-
legendItems:
|
|
1339
|
-
backgroundColor:
|
|
1336
|
+
title: Ni,
|
|
1337
|
+
legend: Mi,
|
|
1338
|
+
legendItems: Ci,
|
|
1339
|
+
backgroundColor: ji,
|
|
1340
|
+
getSvgCallback: () => z.value.userOptions.callbacks.svg,
|
|
1341
|
+
generateImage: $n
|
|
1340
1342
|
});
|
|
1341
|
-
async function Ri({
|
|
1342
|
-
bn.value = !0, await Je();
|
|
1343
|
-
try {
|
|
1344
|
-
if (e) {
|
|
1345
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Li();
|
|
1346
|
-
await Promise.resolve(z.value.userOptions.callbacks.svg({
|
|
1347
|
-
blob: e,
|
|
1348
|
-
url: t,
|
|
1349
|
-
text: n,
|
|
1350
|
-
dataUrl: r
|
|
1351
|
-
}));
|
|
1352
|
-
} else await Promise.resolve(Ii());
|
|
1353
|
-
} finally {
|
|
1354
|
-
bn.value = !1;
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
async function zi({ scale: e = 2 } = {}) {
|
|
1343
|
+
async function Ri({ scale: e = 2 } = {}) {
|
|
1358
1344
|
if (!tn.value) return;
|
|
1359
1345
|
let { imageUri: t, base64: n } = await Oe({
|
|
1360
1346
|
domElement: tn.value,
|
|
@@ -1373,10 +1359,10 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1373
1359
|
...a
|
|
1374
1360
|
};
|
|
1375
1361
|
}
|
|
1376
|
-
let
|
|
1362
|
+
let zi = b(() => {
|
|
1377
1363
|
let e = z.value.table.useDialog && !z.value.table.show, t = H.value.showTable;
|
|
1378
1364
|
return {
|
|
1379
|
-
component: e ?
|
|
1365
|
+
component: e ? Jt : Ut,
|
|
1380
1366
|
title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1381
1367
|
props: e ? {
|
|
1382
1368
|
backgroundColor: z.value.table.th.backgroundColor,
|
|
@@ -1404,29 +1390,29 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1404
1390
|
}
|
|
1405
1391
|
};
|
|
1406
1392
|
});
|
|
1407
|
-
|
|
1393
|
+
nt(() => H.value.showTable, (e) => {
|
|
1408
1394
|
z.value.table.show || (e && z.value.table.useDialog && gn.value ? gn.value.open() : "close" in gn.value && gn.value.close());
|
|
1409
1395
|
});
|
|
1410
|
-
function
|
|
1396
|
+
function Bi() {
|
|
1411
1397
|
H.value.showTable = !1, _n.value && _n.value.setTableIconState(!1);
|
|
1412
1398
|
}
|
|
1413
|
-
function
|
|
1399
|
+
function Vi(e) {
|
|
1414
1400
|
un.value = e, rn.value += 1;
|
|
1415
1401
|
}
|
|
1416
|
-
function
|
|
1402
|
+
function Hi() {
|
|
1417
1403
|
H.value.showTable = !H.value.showTable;
|
|
1418
1404
|
}
|
|
1419
|
-
function
|
|
1405
|
+
function Ui() {
|
|
1420
1406
|
H.value.dataLabels.show = !H.value.dataLabels.show;
|
|
1421
1407
|
}
|
|
1422
|
-
function
|
|
1408
|
+
function Wi() {
|
|
1423
1409
|
H.value.showTooltip = !H.value.showTooltip;
|
|
1424
1410
|
}
|
|
1425
|
-
function
|
|
1411
|
+
function Gi() {
|
|
1426
1412
|
return Y.value;
|
|
1427
1413
|
}
|
|
1428
|
-
function
|
|
1429
|
-
let t = e ?? 0, n =
|
|
1414
|
+
function Ki(e) {
|
|
1415
|
+
let t = e ?? 0, n = yr(t);
|
|
1430
1416
|
return JSON.parse(JSON.stringify(Y.value)).map((e) => {
|
|
1431
1417
|
let r = e.series[t], i = e.signedSeries?.[t], a = r === 0 ? 0 : (i === -1 && r >= 0 ? -r : r) || null;
|
|
1432
1418
|
return {
|
|
@@ -1436,25 +1422,25 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1436
1422
|
proportion: e.proportions?.[t] || null,
|
|
1437
1423
|
color: e.color,
|
|
1438
1424
|
id: e.id,
|
|
1439
|
-
timeLabel:
|
|
1425
|
+
timeLabel: zr.value?.[n] || null
|
|
1440
1426
|
};
|
|
1441
1427
|
});
|
|
1442
1428
|
}
|
|
1443
|
-
let
|
|
1444
|
-
|
|
1445
|
-
if ([null, void 0].includes(
|
|
1429
|
+
let qi = b(() => Array(K.value).fill(0).map((e, t) => Ki(t)));
|
|
1430
|
+
nt(() => F.selectedXIndex, (e) => {
|
|
1431
|
+
if ([null, void 0].includes(F.selectedXIndex)) {
|
|
1446
1432
|
$.value = null;
|
|
1447
1433
|
return;
|
|
1448
1434
|
}
|
|
1449
1435
|
let t = e - q.value.start;
|
|
1450
1436
|
t < 0 || e >= q.value.end ? $.value = null : $.value = t ?? null;
|
|
1451
1437
|
}, { immediate: !0 });
|
|
1452
|
-
let
|
|
1438
|
+
let Ji = b(() => {
|
|
1453
1439
|
if (z.value.style.chart.lines.distributed) return {
|
|
1454
1440
|
min: -1,
|
|
1455
1441
|
max: 1
|
|
1456
1442
|
};
|
|
1457
|
-
let e =
|
|
1443
|
+
let e = gr.value, t = _r.value, n = Math.max(1, ...[...e, ...t].map((e) => e.series?.length || 0)), r = Array(n).fill(0), i = Array(n).fill(0);
|
|
1458
1444
|
e.forEach((e) => {
|
|
1459
1445
|
for (let t = 0; t < n; t += 1) {
|
|
1460
1446
|
let n = e.series[t] ?? 0;
|
|
@@ -1474,7 +1460,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1474
1460
|
max: Number(f.max) || 0
|
|
1475
1461
|
};
|
|
1476
1462
|
});
|
|
1477
|
-
function
|
|
1463
|
+
function Yi({ minimapH: e, unitW: t }) {
|
|
1478
1464
|
let n = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
|
|
1479
1465
|
if (!Number.isFinite(e) || e <= 0 || !Number.isFinite(t) || t <= 0) return "";
|
|
1480
1466
|
let r = Y.value.filter((e) => !e.standalone), i = Y.value.filter((e) => e.standalone), a = Math.max(0, ...Y.value.map((e) => Array.isArray(e.fullSeries) ? e.fullSeries.length : e.series.length));
|
|
@@ -1504,7 +1490,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1504
1490
|
if (z.value.style.chart.lines.useArea) {
|
|
1505
1491
|
let t = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)} L${v.x},${v.y} ${n(ee)} Z` : `M${h[0].x},${h[0].y} ${n(te)} L${v.x},${v.y} ${n(ne)} Z`;
|
|
1506
1492
|
c.push(`<path d="${t}"
|
|
1507
|
-
fill="${
|
|
1493
|
+
fill="${Qt.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, e.color)}"
|
|
1508
1494
|
opacity="${z.value.style.chart.lines.areaOpacity}"
|
|
1509
1495
|
stroke="none" />`);
|
|
1510
1496
|
}
|
|
@@ -1526,7 +1512,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1526
1512
|
stroke-linecap="round" />`);
|
|
1527
1513
|
}), c.join("");
|
|
1528
1514
|
}
|
|
1529
|
-
let s =
|
|
1515
|
+
let s = Ji.value.min, c = Ji.value.max, u = Math.abs(s), d = c + u || 1, f = (t) => Math.max(0, Math.min(e, t)), m = (t) => f(e - e * (((t ?? 0) + u) / d)), h = [];
|
|
1530
1516
|
if (r.length) {
|
|
1531
1517
|
let e = Array(a).fill(0), t = Array(a).fill(0);
|
|
1532
1518
|
r.forEach((r) => {
|
|
@@ -1545,7 +1531,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1545
1531
|
if (z.value.style.chart.lines.useArea) {
|
|
1546
1532
|
let e = z.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(_)} L${v.x},${v.y} ${n(ee)} Z` : `M${f[0].x},${f[0].y} ${n(te)} L${v.x},${v.y} ${n(ne)} Z`;
|
|
1547
1533
|
h.push(`<path d="${e}"
|
|
1548
|
-
fill="${
|
|
1534
|
+
fill="${Qt.pattern ? `url(#pattern_${I.value}_${r.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, r.color)}"
|
|
1549
1535
|
opacity="${z.value.style.chart.lines.areaOpacity}"
|
|
1550
1536
|
stroke="none" />`);
|
|
1551
1537
|
}
|
|
@@ -1569,12 +1555,12 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1569
1555
|
stroke-linecap="round" />`);
|
|
1570
1556
|
}), h.join("");
|
|
1571
1557
|
}
|
|
1572
|
-
function
|
|
1558
|
+
function Xi(e, t) {
|
|
1573
1559
|
let n = z.value.style.chart.lines, r = n.dataLabels;
|
|
1574
|
-
return n.showDistributedPercentage && n.distributed ?
|
|
1560
|
+
return n.showDistributedPercentage && n.distributed ? Yn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : !r.hideEmptyPercentages || Math.abs(t) > 0 : Yn.value ? (Jn.value && ar.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(e) > Zi.value * r.hideUnderPercentage / 100) : Jn.value ? Math.abs(e) >= r.hideUnderValue : !r.hideEmptyValues || e !== 0;
|
|
1575
1561
|
}
|
|
1576
|
-
let
|
|
1577
|
-
function
|
|
1562
|
+
let Zi = b(() => Math.max(...Y.value.flatMap((e) => e.series)));
|
|
1563
|
+
function Qi(e, t, n, r, i) {
|
|
1578
1564
|
let a = i === -1 && e >= 0 ? -e : e;
|
|
1579
1565
|
return v(z.value.style.chart.lines.dataLabels.formatter, a, h({
|
|
1580
1566
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
@@ -1587,7 +1573,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1587
1573
|
datapointIndex: r
|
|
1588
1574
|
});
|
|
1589
1575
|
}
|
|
1590
|
-
function
|
|
1576
|
+
function $i(e, t, n, r) {
|
|
1591
1577
|
return v(z.value.style.chart.lines.dataLabels.formatter, e, h({
|
|
1592
1578
|
v: isNaN(e) ? 0 : e,
|
|
1593
1579
|
s: "%",
|
|
@@ -1598,27 +1584,16 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1598
1584
|
datapointIndex: r
|
|
1599
1585
|
});
|
|
1600
1586
|
}
|
|
1601
|
-
function
|
|
1587
|
+
function ea({ seriesIndex: e, datapoint: t }) {
|
|
1602
1588
|
let n = q.value.start + e;
|
|
1603
|
-
|
|
1589
|
+
$t("selectX", {
|
|
1604
1590
|
dataset: t,
|
|
1605
1591
|
index: n,
|
|
1606
1592
|
indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
|
|
1607
1593
|
});
|
|
1608
1594
|
}
|
|
1609
|
-
function
|
|
1610
|
-
if (
|
|
1611
|
-
yn.value = !0;
|
|
1612
|
-
return;
|
|
1613
|
-
}
|
|
1614
|
-
if (e?.stage === "end") {
|
|
1615
|
-
yn.value = !1;
|
|
1616
|
-
return;
|
|
1617
|
-
}
|
|
1618
|
-
tr();
|
|
1619
|
-
}
|
|
1620
|
-
async function ra() {
|
|
1621
|
-
if (F("copyAlt", {
|
|
1595
|
+
async function ta() {
|
|
1596
|
+
if ($t("copyAlt", {
|
|
1622
1597
|
config: z.value,
|
|
1623
1598
|
dataset: Y.value
|
|
1624
1599
|
}), !z.value.userOptions.callbacks.altCopy) {
|
|
@@ -1630,23 +1605,23 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1630
1605
|
dataset: Y.value
|
|
1631
1606
|
}));
|
|
1632
1607
|
}
|
|
1633
|
-
let
|
|
1634
|
-
function
|
|
1635
|
-
R.value = null,
|
|
1608
|
+
let na = k(!1);
|
|
1609
|
+
function ra() {
|
|
1610
|
+
R.value = null, na.value = !0;
|
|
1636
1611
|
}
|
|
1637
|
-
function
|
|
1638
|
-
R.value = null,
|
|
1612
|
+
function ia() {
|
|
1613
|
+
R.value = null, kn.value = "pointer", nn.value = !1, $.value = null, $t("selectX", {
|
|
1639
1614
|
index: null,
|
|
1640
1615
|
indexLabel: null,
|
|
1641
1616
|
dataset: null
|
|
1642
|
-
}),
|
|
1617
|
+
}), na.value = !1;
|
|
1643
1618
|
}
|
|
1644
|
-
function
|
|
1645
|
-
if (!V.value ||
|
|
1619
|
+
function aa(e) {
|
|
1620
|
+
if (!V.value || Fn.value || document.activeElement !== V.value || Or.value || !Z.value) return;
|
|
1646
1621
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1647
1622
|
if (!t && !n && !r && !i) return;
|
|
1648
1623
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1649
|
-
R.value = null,
|
|
1624
|
+
R.value = null, kn.value = "pointer", nn.value = !1, $.value = null, $t("selectX", {
|
|
1650
1625
|
index: null,
|
|
1651
1626
|
indexLabel: null,
|
|
1652
1627
|
dataset: null
|
|
@@ -1655,58 +1630,58 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1655
1630
|
}
|
|
1656
1631
|
if (r) {
|
|
1657
1632
|
if (R.value === null) return;
|
|
1658
|
-
|
|
1633
|
+
mi(R.value);
|
|
1659
1634
|
return;
|
|
1660
1635
|
}
|
|
1661
|
-
let a = R.value, o =
|
|
1662
|
-
s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, R.value = a,
|
|
1636
|
+
let a = R.value, o = si.value, s = a !== null && a >= 0 && a < Z.value, c = o !== null && o >= 0 && o < Z.value;
|
|
1637
|
+
s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, R.value = a, oa(a), yi(!0, a, "keyboard");
|
|
1663
1638
|
}
|
|
1664
|
-
function
|
|
1639
|
+
function oa(e) {
|
|
1665
1640
|
if (!Number.isFinite(e) || !V.value) return;
|
|
1666
|
-
let t = W.value.left + e *
|
|
1667
|
-
r && (
|
|
1641
|
+
let t = W.value.left + e * ui.value, n = W.value.top + W.value.height / 2, r = i(t, n, V.value);
|
|
1642
|
+
r && (On.value = r);
|
|
1668
1643
|
}
|
|
1669
|
-
let
|
|
1670
|
-
headers:
|
|
1671
|
-
rows:
|
|
1644
|
+
let sa = b(() => ({
|
|
1645
|
+
headers: Ai.value?.colNames ?? [],
|
|
1646
|
+
rows: Ai.value?.body ?? []
|
|
1672
1647
|
}));
|
|
1673
1648
|
return je({
|
|
1674
|
-
getData:
|
|
1675
|
-
getImage:
|
|
1676
|
-
generatePdf:
|
|
1677
|
-
generateCsv:
|
|
1678
|
-
generateImage:
|
|
1679
|
-
generateSvg:
|
|
1680
|
-
hideSeries:
|
|
1681
|
-
showSeries:
|
|
1682
|
-
toggleTable:
|
|
1683
|
-
toggleLabels:
|
|
1684
|
-
toggleTooltip:
|
|
1685
|
-
toggleAnnotator:
|
|
1686
|
-
toggleFullscreen:
|
|
1687
|
-
copyAlt:
|
|
1688
|
-
}), (t, r) => (
|
|
1649
|
+
getData: Gi,
|
|
1650
|
+
getImage: Ri,
|
|
1651
|
+
generatePdf: Qn,
|
|
1652
|
+
generateCsv: ki,
|
|
1653
|
+
generateImage: $n,
|
|
1654
|
+
generateSvg: Ii,
|
|
1655
|
+
hideSeries: Di,
|
|
1656
|
+
showSeries: Ei,
|
|
1657
|
+
toggleTable: Hi,
|
|
1658
|
+
toggleLabels: Ui,
|
|
1659
|
+
toggleTooltip: Wi,
|
|
1660
|
+
toggleAnnotator: In,
|
|
1661
|
+
toggleFullscreen: Vi,
|
|
1662
|
+
copyAlt: ta
|
|
1663
|
+
}), (t, r) => (O(), C("div", {
|
|
1689
1664
|
id: `stackline_${I.value}`,
|
|
1690
1665
|
ref_key: "stacklineChart",
|
|
1691
1666
|
ref: tn,
|
|
1692
|
-
class:
|
|
1667
|
+
class: E({
|
|
1693
1668
|
"vue-data-ui-component": !0,
|
|
1694
1669
|
"vue-ui-stackline": !0,
|
|
1695
1670
|
"vue-data-ui-wrapper-fullscreen": un.value
|
|
1696
1671
|
}),
|
|
1697
|
-
style:
|
|
1698
|
-
onMouseenter:
|
|
1699
|
-
onMouseleave:
|
|
1672
|
+
style: Ye(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
|
|
1673
|
+
onMouseenter: Gn,
|
|
1674
|
+
onMouseleave: Kn
|
|
1700
1675
|
}, [
|
|
1701
1676
|
w("div", {
|
|
1702
1677
|
id: `chart-instructions-${I.value}`,
|
|
1703
1678
|
class: "sr-only"
|
|
1704
|
-
}, [w("p", null,
|
|
1705
|
-
|
|
1679
|
+
}, [w("p", null, M(z.value.a11y.translations.keyboardNavigation), 1)], 8, ot),
|
|
1680
|
+
sa.value?.rows?.length ? (O(), x(Le, {
|
|
1706
1681
|
key: 0,
|
|
1707
1682
|
uid: I.value,
|
|
1708
|
-
head:
|
|
1709
|
-
body:
|
|
1683
|
+
head: sa.value.headers,
|
|
1684
|
+
body: sa.value.rows,
|
|
1710
1685
|
notice: z.value.a11y.translations.tableAvailable,
|
|
1711
1686
|
caption: z.value.a11y.translations.tableCaption
|
|
1712
1687
|
}, null, 8, [
|
|
@@ -1716,21 +1691,21 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1716
1691
|
"notice",
|
|
1717
1692
|
"caption"
|
|
1718
1693
|
])) : S("", !0),
|
|
1719
|
-
z.value.userOptions.buttons.annotator ? (
|
|
1694
|
+
z.value.userOptions.buttons.annotator ? (O(), x(N(Gt), {
|
|
1720
1695
|
key: 1,
|
|
1721
|
-
svgRef:
|
|
1696
|
+
svgRef: N(V),
|
|
1722
1697
|
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1723
1698
|
color: z.value.style.chart.color,
|
|
1724
|
-
active:
|
|
1699
|
+
active: Fn.value,
|
|
1725
1700
|
isCursorPointer: B.value,
|
|
1726
|
-
onClose:
|
|
1701
|
+
onClose: In
|
|
1727
1702
|
}, {
|
|
1728
|
-
"annotator-action-close":
|
|
1729
|
-
"annotator-action-color":
|
|
1730
|
-
"annotator-action-draw":
|
|
1731
|
-
"annotator-action-undo":
|
|
1732
|
-
"annotator-action-redo":
|
|
1733
|
-
"annotator-action-delete":
|
|
1703
|
+
"annotator-action-close": P(() => [j(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1704
|
+
"annotator-action-color": P(({ color: e }) => [j(t.$slots, "annotator-action-color", D(T({ color: e })), void 0, !0)]),
|
|
1705
|
+
"annotator-action-draw": P(({ mode: e }) => [j(t.$slots, "annotator-action-draw", D(T({ mode: e })), void 0, !0)]),
|
|
1706
|
+
"annotator-action-undo": P(({ disabled: e }) => [j(t.$slots, "annotator-action-undo", D(T({ disabled: e })), void 0, !0)]),
|
|
1707
|
+
"annotator-action-redo": P(({ disabled: e }) => [j(t.$slots, "annotator-action-redo", D(T({ disabled: e })), void 0, !0)]),
|
|
1708
|
+
"annotator-action-delete": P(({ disabled: e }) => [j(t.$slots, "annotator-action-delete", D(T({ disabled: e })), void 0, !0)]),
|
|
1734
1709
|
_: 3
|
|
1735
1710
|
}, 8, [
|
|
1736
1711
|
"svgRef",
|
|
@@ -1739,20 +1714,20 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1739
1714
|
"active",
|
|
1740
1715
|
"isCursorPointer"
|
|
1741
1716
|
])) : S("", !0),
|
|
1742
|
-
|
|
1743
|
-
|
|
1717
|
+
j(t.$slots, "userConfig", {}, void 0, !0),
|
|
1718
|
+
er.value ? (O(), C("div", {
|
|
1744
1719
|
key: 2,
|
|
1745
1720
|
ref_key: "noTitle",
|
|
1746
1721
|
ref: cn,
|
|
1747
1722
|
class: "vue-data-ui-no-title-space",
|
|
1748
1723
|
style: "height:36px; width: 100%;background:transparent"
|
|
1749
1724
|
}, null, 512)) : S("", !0),
|
|
1750
|
-
z.value.style.chart.title.text ? (
|
|
1725
|
+
z.value.style.chart.title.text ? (O(), C("div", {
|
|
1751
1726
|
key: 3,
|
|
1752
1727
|
ref_key: "chartTitle",
|
|
1753
1728
|
ref: an,
|
|
1754
1729
|
style: "width:100%;background:transparent;"
|
|
1755
|
-
}, [(
|
|
1730
|
+
}, [(O(), x(ke, {
|
|
1756
1731
|
key: `title_${fn.value}`,
|
|
1757
1732
|
config: {
|
|
1758
1733
|
title: {
|
|
@@ -1765,15 +1740,15 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1765
1740
|
}
|
|
1766
1741
|
}
|
|
1767
1742
|
}, null, 8, ["config"]))], 512)) : S("", !0),
|
|
1768
|
-
w("div", { id: `legend-top-${I.value}` }, null, 8,
|
|
1769
|
-
z.value.userOptions.show && en.value && (
|
|
1743
|
+
w("div", { id: `legend-top-${I.value}` }, null, 8, st),
|
|
1744
|
+
z.value.userOptions.show && en.value && (N(Wn) || N(Hn)) ? (O(), x(N(Kt), {
|
|
1770
1745
|
ref_key: "userOptionsRef",
|
|
1771
1746
|
ref: _n,
|
|
1772
1747
|
key: `user_option_${rn.value}`,
|
|
1773
1748
|
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1774
1749
|
color: z.value.style.chart.color,
|
|
1775
|
-
isPrinting:
|
|
1776
|
-
isImaging:
|
|
1750
|
+
isPrinting: N(Xn),
|
|
1751
|
+
isImaging: N(Zn),
|
|
1777
1752
|
uid: I.value,
|
|
1778
1753
|
hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
|
|
1779
1754
|
hasPdf: z.value.userOptions.buttons.pdf,
|
|
@@ -1790,26 +1765,26 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1790
1765
|
isTooltip: H.value.showTooltip,
|
|
1791
1766
|
titles: { ...z.value.userOptions.buttonTitles },
|
|
1792
1767
|
hasAnnotator: z.value.userOptions.buttons.annotator,
|
|
1793
|
-
isAnnotation:
|
|
1768
|
+
isAnnotation: Fn.value,
|
|
1794
1769
|
callbacks: z.value.userOptions.callbacks,
|
|
1795
1770
|
printScale: z.value.userOptions.print.scale,
|
|
1796
1771
|
tableDialog: z.value.table.useDialog,
|
|
1797
1772
|
isCursorPointer: B.value,
|
|
1798
|
-
onToggleFullscreen:
|
|
1799
|
-
onGeneratePdf:
|
|
1800
|
-
onGenerateCsv:
|
|
1801
|
-
onGenerateImage:
|
|
1802
|
-
onGenerateSvg:
|
|
1803
|
-
onToggleTable:
|
|
1804
|
-
onToggleLabels:
|
|
1805
|
-
onToggleTooltip:
|
|
1806
|
-
onToggleAnnotator:
|
|
1807
|
-
onCopyAlt:
|
|
1808
|
-
style:
|
|
1773
|
+
onToggleFullscreen: Vi,
|
|
1774
|
+
onGeneratePdf: N(Qn),
|
|
1775
|
+
onGenerateCsv: ki,
|
|
1776
|
+
onGenerateImage: N(Li),
|
|
1777
|
+
onGenerateSvg: N(Ii),
|
|
1778
|
+
onToggleTable: Hi,
|
|
1779
|
+
onToggleLabels: Ui,
|
|
1780
|
+
onToggleTooltip: Wi,
|
|
1781
|
+
onToggleAnnotator: In,
|
|
1782
|
+
onCopyAlt: ta,
|
|
1783
|
+
style: Ye({ visibility: N(Wn) ? N(Hn) ? "visible" : "hidden" : "visible" })
|
|
1809
1784
|
}, Ue({ _: 2 }, [
|
|
1810
1785
|
t.$slots.menuIcon ? {
|
|
1811
1786
|
name: "menuIcon",
|
|
1812
|
-
fn:
|
|
1787
|
+
fn: P(({ isOpen: e, color: n }) => [j(t.$slots, "menuIcon", D(T({
|
|
1813
1788
|
isOpen: e,
|
|
1814
1789
|
color: n
|
|
1815
1790
|
})), void 0, !0)]),
|
|
@@ -1817,42 +1792,42 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1817
1792
|
} : void 0,
|
|
1818
1793
|
t.$slots.optionTooltip ? {
|
|
1819
1794
|
name: "optionTooltip",
|
|
1820
|
-
fn:
|
|
1795
|
+
fn: P(() => [j(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1821
1796
|
key: "1"
|
|
1822
1797
|
} : void 0,
|
|
1823
1798
|
t.$slots.optionPdf ? {
|
|
1824
1799
|
name: "optionPdf",
|
|
1825
|
-
fn:
|
|
1800
|
+
fn: P(() => [j(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1826
1801
|
key: "2"
|
|
1827
1802
|
} : void 0,
|
|
1828
1803
|
t.$slots.optionCsv ? {
|
|
1829
1804
|
name: "optionCsv",
|
|
1830
|
-
fn:
|
|
1805
|
+
fn: P(() => [j(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1831
1806
|
key: "3"
|
|
1832
1807
|
} : void 0,
|
|
1833
1808
|
t.$slots.optionImg ? {
|
|
1834
1809
|
name: "optionImg",
|
|
1835
|
-
fn:
|
|
1810
|
+
fn: P(() => [j(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1836
1811
|
key: "4"
|
|
1837
1812
|
} : void 0,
|
|
1838
1813
|
t.$slots.optionSvg ? {
|
|
1839
1814
|
name: "optionSvg",
|
|
1840
|
-
fn:
|
|
1815
|
+
fn: P(() => [j(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1841
1816
|
key: "5"
|
|
1842
1817
|
} : void 0,
|
|
1843
1818
|
t.$slots.optionTable ? {
|
|
1844
1819
|
name: "optionTable",
|
|
1845
|
-
fn:
|
|
1820
|
+
fn: P(() => [j(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1846
1821
|
key: "6"
|
|
1847
1822
|
} : void 0,
|
|
1848
1823
|
t.$slots.optionLabels ? {
|
|
1849
1824
|
name: "optionLabels",
|
|
1850
|
-
fn:
|
|
1825
|
+
fn: P(() => [j(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1851
1826
|
key: "7"
|
|
1852
1827
|
} : void 0,
|
|
1853
1828
|
t.$slots.optionFullscreen ? {
|
|
1854
1829
|
name: "optionFullscreen",
|
|
1855
|
-
fn:
|
|
1830
|
+
fn: P(({ toggleFullscreen: e, isFullscreen: n }) => [j(t.$slots, "optionFullscreen", D(T({
|
|
1856
1831
|
toggleFullscreen: e,
|
|
1857
1832
|
isFullscreen: n
|
|
1858
1833
|
})), void 0, !0)]),
|
|
@@ -1860,7 +1835,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1860
1835
|
} : void 0,
|
|
1861
1836
|
t.$slots.optionAnnotator ? {
|
|
1862
1837
|
name: "optionAnnotator",
|
|
1863
|
-
fn:
|
|
1838
|
+
fn: P(({ toggleAnnotator: e, isAnnotator: n }) => [j(t.$slots, "optionAnnotator", D(T({
|
|
1864
1839
|
toggleAnnotator: e,
|
|
1865
1840
|
isAnnotator: n
|
|
1866
1841
|
})), void 0, !0)]),
|
|
@@ -1868,58 +1843,58 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1868
1843
|
} : void 0,
|
|
1869
1844
|
t.$slots.optionAltCopy ? {
|
|
1870
1845
|
name: "optionAltCopy",
|
|
1871
|
-
fn:
|
|
1846
|
+
fn: P(({ altCopy: e }) => [j(t.$slots, "optionAltCopy", D(T({ altCopy: e })), void 0, !0)]),
|
|
1872
1847
|
key: "10"
|
|
1873
1848
|
} : void 0,
|
|
1874
1849
|
t.$slots["custom-menu-before"] ? {
|
|
1875
1850
|
name: "custom-menu-before",
|
|
1876
|
-
fn:
|
|
1851
|
+
fn: P(() => [j(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1877
1852
|
key: "11"
|
|
1878
1853
|
} : void 0,
|
|
1879
1854
|
t.$slots["custom-menu-after"] ? {
|
|
1880
1855
|
name: "custom-menu-after",
|
|
1881
|
-
fn:
|
|
1856
|
+
fn: P(() => [j(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1882
1857
|
key: "12"
|
|
1883
1858
|
} : void 0
|
|
1884
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : S("", !0),
|
|
1885
|
-
w("div",
|
|
1859
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : S("", !0),
|
|
1860
|
+
w("div", ct, [(O(), C("svg", {
|
|
1886
1861
|
ref_key: "svgRef",
|
|
1887
1862
|
ref: V,
|
|
1888
1863
|
"aria-describedby": `chart-instructions-${I.value}`,
|
|
1889
|
-
xmlns:
|
|
1864
|
+
xmlns: N(se),
|
|
1890
1865
|
viewBox: `0 0 ${W.value.chartWidth <= 0 ? 10 : W.value.chartWidth} ${W.value.chartHeight <= 0 ? 10 : W.value.chartHeight}`,
|
|
1891
|
-
class:
|
|
1892
|
-
"vue-data-ui-loading":
|
|
1866
|
+
class: E({
|
|
1867
|
+
"vue-data-ui-loading": N(zn),
|
|
1893
1868
|
"vue-data-ui-fullscreen--on": un.value,
|
|
1894
1869
|
"vue-data-ui-fulscreen--off": !un.value,
|
|
1895
|
-
"vue-data-ui-no-transition": !
|
|
1870
|
+
"vue-data-ui-no-transition": !N(Ln)
|
|
1896
1871
|
}),
|
|
1897
|
-
style:
|
|
1872
|
+
style: Ye(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
|
|
1898
1873
|
role: "img",
|
|
1899
1874
|
"aria-live": "polite",
|
|
1900
1875
|
tabindex: "0",
|
|
1901
1876
|
preserveAspectRatio: "xMidYMid",
|
|
1902
|
-
onMousemove:
|
|
1903
|
-
onMouseleave:
|
|
1904
|
-
onClick:
|
|
1905
|
-
onFocus:
|
|
1906
|
-
onBlur:
|
|
1907
|
-
onKeydown:
|
|
1877
|
+
onMousemove: fi,
|
|
1878
|
+
onMouseleave: hi,
|
|
1879
|
+
onClick: pi,
|
|
1880
|
+
onFocus: ra,
|
|
1881
|
+
onBlur: ia,
|
|
1882
|
+
onKeydown: aa
|
|
1908
1883
|
}, [
|
|
1909
|
-
Ge(
|
|
1910
|
-
(
|
|
1884
|
+
Ge(N(qt)),
|
|
1885
|
+
(O(!0), C(y, null, A(gr.value, (e) => (O(), C(y, null, [t.$slots.pattern ? (O(), C("defs", ut, [j(t.$slots, "pattern", qe({ ref_for: !0 }, {
|
|
1911
1886
|
seriesIndex: e.absoluteIndex,
|
|
1912
1887
|
patternId: `pattern_${I.value}_${e.absoluteIndex}`
|
|
1913
1888
|
}), void 0, !0)])) : S("", !0)], 64))), 256)),
|
|
1914
|
-
t.$slots["chart-background"] ? (
|
|
1889
|
+
t.$slots["chart-background"] ? (O(), C("foreignObject", {
|
|
1915
1890
|
key: 0,
|
|
1916
1891
|
x: X.value.left,
|
|
1917
1892
|
y: W.value.top,
|
|
1918
1893
|
width: X.value.width,
|
|
1919
1894
|
height: W.value.height,
|
|
1920
1895
|
style: { pointerEvents: "none" }
|
|
1921
|
-
}, [
|
|
1922
|
-
z.value.style.chart.lines.gradient.show ? (
|
|
1896
|
+
}, [j(t.$slots, "chart-background", {}, void 0, !0)], 8, dt)) : S("", !0),
|
|
1897
|
+
z.value.style.chart.lines.gradient.show ? (O(), C("defs", ft, [(O(!0), C(y, null, A(Y.value, (e, t) => (O(), x(Pe, {
|
|
1923
1898
|
t: "linear",
|
|
1924
1899
|
id: `gradient_${e.id}`,
|
|
1925
1900
|
key: `gradient_${e.id}_${t}`,
|
|
@@ -1933,11 +1908,11 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1933
1908
|
1
|
|
1934
1909
|
], [
|
|
1935
1910
|
"100%",
|
|
1936
|
-
|
|
1911
|
+
N(c)(e.color, z.value.style.chart.lines.gradient.intensity / 100),
|
|
1937
1912
|
1
|
|
1938
1913
|
]]
|
|
1939
1914
|
}, null, 8, ["id", "stops"]))), 128))])) : S("", !0),
|
|
1940
|
-
z.value.style.chart.grid.x.showHorizontalLines ? (
|
|
1915
|
+
z.value.style.chart.grid.x.showHorizontalLines ? (O(!0), C(y, { key: 2 }, A(Lr.value, (e, t) => (O(), C("line", {
|
|
1941
1916
|
x1: X.value.left,
|
|
1942
1917
|
x2: X.value.right,
|
|
1943
1918
|
y1: e.y,
|
|
@@ -1946,8 +1921,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1946
1921
|
"stroke-width": z.value.style.chart.grid.x.linesThickness,
|
|
1947
1922
|
"stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1948
1923
|
"stroke-linecap": "round"
|
|
1949
|
-
}, null, 8,
|
|
1950
|
-
z.value.style.chart.grid.y.showVerticalLines ? (
|
|
1924
|
+
}, null, 8, pt))), 256)) : S("", !0),
|
|
1925
|
+
z.value.style.chart.grid.y.showVerticalLines ? (O(!0), C(y, { key: 3 }, A(q.value.end - q.value.start, (e, t) => (O(), C("line", {
|
|
1951
1926
|
x1: Q(t),
|
|
1952
1927
|
x2: Q(t),
|
|
1953
1928
|
y1: W.value.top,
|
|
@@ -1956,8 +1931,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1956
1931
|
"stroke-width": z.value.style.chart.grid.y.linesThickness,
|
|
1957
1932
|
"stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1958
1933
|
"stroke-linecap": "round"
|
|
1959
|
-
}, null, 8,
|
|
1960
|
-
z.value.style.chart.grid.x.showAxis ? (
|
|
1934
|
+
}, null, 8, mt))), 256)) : S("", !0),
|
|
1935
|
+
z.value.style.chart.grid.x.showAxis ? (O(), C("line", {
|
|
1961
1936
|
key: 4,
|
|
1962
1937
|
x1: X.value.left,
|
|
1963
1938
|
x2: X.value.right,
|
|
@@ -1967,40 +1942,40 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1967
1942
|
"stroke-width": z.value.style.chart.grid.x.axisThickness,
|
|
1968
1943
|
"stroke-linecap": "round",
|
|
1969
1944
|
"stroke-linejoin": "round"
|
|
1970
|
-
}, null, 8,
|
|
1971
|
-
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.lines.distributed ? (
|
|
1945
|
+
}, null, 8, ht)) : S("", !0),
|
|
1946
|
+
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.lines.distributed ? (O(), C("line", {
|
|
1972
1947
|
key: 5,
|
|
1973
|
-
x1:
|
|
1974
|
-
x2:
|
|
1948
|
+
x1: sr.value ? X.value.right : X.value.left,
|
|
1949
|
+
x2: sr.value ? X.value.right : X.value.left,
|
|
1975
1950
|
y1: W.value.top,
|
|
1976
1951
|
y2: W.value.bottom,
|
|
1977
1952
|
stroke: z.value.style.chart.grid.y.axisColor,
|
|
1978
1953
|
"stroke-width": z.value.style.chart.grid.y.axisThickness,
|
|
1979
1954
|
"stroke-linecap": "round",
|
|
1980
1955
|
"stroke-linejoin": "round"
|
|
1981
|
-
}, null, 8,
|
|
1982
|
-
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (
|
|
1956
|
+
}, null, 8, gt)) : S("", !0),
|
|
1957
|
+
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (O(), C("text", {
|
|
1983
1958
|
key: 6,
|
|
1984
1959
|
ref_key: "xAxisLabel",
|
|
1985
|
-
ref:
|
|
1960
|
+
ref: yn,
|
|
1986
1961
|
x: W.value.left + W.value.width / 2,
|
|
1987
1962
|
y: W.value.chartHeight - 3,
|
|
1988
1963
|
"font-size": z.value.style.chart.grid.x.axisName.fontSize,
|
|
1989
1964
|
fill: z.value.style.chart.grid.x.axisName.color,
|
|
1990
1965
|
"font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1991
1966
|
"text-anchor": "middle"
|
|
1992
|
-
},
|
|
1993
|
-
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (
|
|
1967
|
+
}, M(z.value.style.chart.grid.x.axisName.text), 9, _t)) : S("", !0),
|
|
1968
|
+
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (O(), C("text", {
|
|
1994
1969
|
key: 7,
|
|
1995
1970
|
ref_key: "yAxisLabel",
|
|
1996
|
-
ref:
|
|
1997
|
-
transform: `translate(${
|
|
1971
|
+
ref: bn,
|
|
1972
|
+
transform: `translate(${sr.value ? W.value.chartWidth - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
|
|
1998
1973
|
"font-size": z.value.style.chart.grid.y.axisName.fontSize,
|
|
1999
1974
|
fill: z.value.style.chart.grid.y.axisName.color,
|
|
2000
1975
|
"font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
2001
1976
|
"text-anchor": "middle"
|
|
2002
|
-
},
|
|
2003
|
-
z.value.style.chart.grid.frame.show ? (
|
|
1977
|
+
}, M(z.value.style.chart.grid.y.axisName.text), 9, vt)) : S("", !0),
|
|
1978
|
+
z.value.style.chart.grid.frame.show ? (O(), C("rect", {
|
|
2004
1979
|
key: 8,
|
|
2005
1980
|
style: {
|
|
2006
1981
|
pointerEvents: "none",
|
|
@@ -2017,63 +1992,63 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2017
1992
|
"stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
|
|
2018
1993
|
"stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
|
|
2019
1994
|
"stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
|
|
2020
|
-
}, null, 8,
|
|
2021
|
-
(
|
|
1995
|
+
}, null, 8, yt)) : S("", !0),
|
|
1996
|
+
(O(!0), C(y, null, A(Y.value, (e) => (O(), C(y, null, [z.value.style.chart.lines.useArea && !e.standalone ? (O(), C("path", {
|
|
2022
1997
|
key: 0,
|
|
2023
1998
|
d: z.value.style.chart.lines.smooth ? e.smoothArea : e.straightArea,
|
|
2024
1999
|
fill: t.$slots.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : z.value.style.chart.lines.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
2025
2000
|
opacity: z.value.style.chart.lines.areaOpacity,
|
|
2026
|
-
class:
|
|
2027
|
-
}, null, 10,
|
|
2028
|
-
(
|
|
2001
|
+
class: E({ "vue-data-ui-transition": N(Ln) })
|
|
2002
|
+
}, null, 10, bt)) : S("", !0)], 64))), 256)),
|
|
2003
|
+
(O(!0), C(y, null, A(Y.value, (e) => (O(), C("path", {
|
|
2029
2004
|
d: z.value.style.chart.lines.smooth ? e.smoothPath : e.straightPath,
|
|
2030
2005
|
stroke: z.value.style.chart.lines.path.useSerieColor ? e.color : z.value.style.chart.lines.path.stroke,
|
|
2031
2006
|
"stroke-width": z.value.style.chart.lines.strokeWidth,
|
|
2032
2007
|
fill: "none",
|
|
2033
2008
|
"stroke-linecap": "round",
|
|
2034
|
-
class:
|
|
2035
|
-
}, null, 10,
|
|
2036
|
-
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.lines.distributed ? (
|
|
2009
|
+
class: E({ "vue-data-ui-transition": N(Ln) })
|
|
2010
|
+
}, null, 10, xt))), 256)),
|
|
2011
|
+
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.lines.distributed ? (O(), C("g", {
|
|
2037
2012
|
key: 9,
|
|
2038
2013
|
ref_key: "scaleLabels",
|
|
2039
|
-
ref:
|
|
2040
|
-
}, [(
|
|
2014
|
+
ref: xn
|
|
2015
|
+
}, [(O(!0), C(y, null, A(Lr.value, (e, t) => (O(), C("line", {
|
|
2041
2016
|
key: `ytick_${t}`,
|
|
2042
|
-
class:
|
|
2043
|
-
x1:
|
|
2044
|
-
x2:
|
|
2017
|
+
class: E({ "vue-data-ui-transition": N(Ln) }),
|
|
2018
|
+
x1: sr.value ? X.value.right : X.value.left,
|
|
2019
|
+
x2: sr.value ? X.value.right + 6 : X.value.left - 6,
|
|
2045
2020
|
y1: e.y,
|
|
2046
2021
|
y2: e.y,
|
|
2047
2022
|
stroke: z.value.style.chart.grid.x.axisColor,
|
|
2048
2023
|
"stroke-width": 1
|
|
2049
|
-
}, null, 10,
|
|
2050
|
-
class:
|
|
2024
|
+
}, null, 10, St))), 128)), (O(!0), C(y, null, A(Lr.value, (e, t) => (O(), C("text", {
|
|
2025
|
+
class: E({ "vue-data-ui-transition": N(Ln) }),
|
|
2051
2026
|
transform: `translate(${e.x}, ${e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
|
|
2052
2027
|
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
2053
2028
|
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
2054
2029
|
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
2055
|
-
"text-anchor":
|
|
2056
|
-
},
|
|
2030
|
+
"text-anchor": sr.value ? "start" : "end"
|
|
2031
|
+
}, M(N(v)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, N(h)({
|
|
2057
2032
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
2058
2033
|
v: e.value,
|
|
2059
2034
|
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
2060
2035
|
r: z.value.style.chart.grid.y.axisLabels.rounding
|
|
2061
|
-
}), { datapoint: e })), 11,
|
|
2062
|
-
z.value.style.chart.grid.x.timeLabels.show ? (
|
|
2036
|
+
}), { datapoint: e })), 11, Ct))), 256))], 512)) : S("", !0),
|
|
2037
|
+
z.value.style.chart.grid.x.timeLabels.show ? (O(), C("g", {
|
|
2063
2038
|
key: 10,
|
|
2064
2039
|
ref_key: "timeLabelsEls",
|
|
2065
|
-
ref:
|
|
2066
|
-
}, [t.$slots["time-label"] ? (
|
|
2067
|
-
x: W.value.left +
|
|
2040
|
+
ref: Sn
|
|
2041
|
+
}, [t.$slots["time-label"] ? (O(), C("g", wt, [(O(!0), C(y, null, A(Ur.value, (e, n) => (O(), C("g", null, [j(t.$slots, "time-label", qe({ ref_for: !0 }, {
|
|
2042
|
+
x: W.value.left + Er.value * n + Er.value / 2,
|
|
2068
2043
|
y: W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
|
|
2069
2044
|
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
2070
2045
|
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
2071
|
-
transform: `translate(${W.value.left +
|
|
2046
|
+
transform: `translate(${W.value.left + Er.value * n + Er.value / 2}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2072
2047
|
absoluteIndex: e.absoluteIndex,
|
|
2073
2048
|
content: e.text,
|
|
2074
2049
|
textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2075
2050
|
show: !0
|
|
2076
|
-
}), void 0, !0)]))), 256))])) : (
|
|
2051
|
+
}), void 0, !0)]))), 256))])) : (O(), C("g", Tt, [(O(!0), C(y, null, A(Ur.value, (e, n) => (O(), C("g", null, [String(e.text).includes("\n") ? (O(), C("text", {
|
|
2077
2052
|
key: n + "-multi",
|
|
2078
2053
|
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2079
2054
|
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2085,7 +2060,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2085
2060
|
),
|
|
2086
2061
|
rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
|
|
2087
2062
|
`,
|
|
2088
|
-
style:
|
|
2063
|
+
style: Ye({ cursor: B.value ? "pointer" : "default" }),
|
|
2089
2064
|
innerHTML: t.createTSpansFromLineBreaksOnX({
|
|
2090
2065
|
content: String(e.text),
|
|
2091
2066
|
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2093,8 +2068,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2093
2068
|
x: 0,
|
|
2094
2069
|
y: 0
|
|
2095
2070
|
}),
|
|
2096
|
-
onClick: () =>
|
|
2097
|
-
}, null, 12,
|
|
2071
|
+
onClick: () => bi(e, n)
|
|
2072
|
+
}, null, 12, Dt)) : (O(), C("text", {
|
|
2098
2073
|
class: "vue-data-ui-time-label",
|
|
2099
2074
|
key: n,
|
|
2100
2075
|
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -2102,25 +2077,25 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2102
2077
|
"font-weight": z.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
2103
2078
|
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
2104
2079
|
transform: `translate(${Q(n)}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2105
|
-
style:
|
|
2106
|
-
onClick: () =>
|
|
2107
|
-
},
|
|
2108
|
-
(vn.value || ![null, void 0].includes($.value)) && !z.value.style.chart.highlighter.useLine ? (
|
|
2109
|
-
x:
|
|
2080
|
+
style: Ye({ cursor: B.value ? "pointer" : "default" }),
|
|
2081
|
+
onClick: () => bi(e, n)
|
|
2082
|
+
}, M(e.text), 13, Et))]))), 256))]))], 512)) : S("", !0),
|
|
2083
|
+
(vn.value || ![null, void 0].includes($.value)) && !z.value.style.chart.highlighter.useLine ? (O(!0), C(y, { key: 11 }, A(q.value.end - q.value.start, (e, t) => (O(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
|
|
2084
|
+
x: di(t).x,
|
|
2110
2085
|
y: W.value.top,
|
|
2111
2086
|
height: W.value.height,
|
|
2112
|
-
width:
|
|
2113
|
-
fill: [
|
|
2087
|
+
width: di(t).width,
|
|
2088
|
+
fill: [Pn.value, $.value].includes(t) ? N(n)(z.value.style.chart.highlighter.color, z.value.style.chart.highlighter.opacity) : "transparent",
|
|
2114
2089
|
style: {
|
|
2115
2090
|
transition: "none !important",
|
|
2116
2091
|
animation: "none !important"
|
|
2117
2092
|
}
|
|
2118
|
-
}, null, 8,
|
|
2119
|
-
(vn.value || ![null, void 0].includes($.value)) && z.value.style.chart.highlighter.useLine ? (
|
|
2120
|
-
x1: Q(($.value ??
|
|
2121
|
-
x2: Q(($.value ??
|
|
2122
|
-
y1:
|
|
2123
|
-
y2:
|
|
2093
|
+
}, null, 8, Ot)]))), 128)) : S("", !0),
|
|
2094
|
+
(vn.value || ![null, void 0].includes($.value)) && z.value.style.chart.highlighter.useLine ? (O(), C(y, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Pn.value) ? (O(), C("g", kt, [w("line", {
|
|
2095
|
+
x1: Q(($.value ?? Pn.value) || 0),
|
|
2096
|
+
x2: Q(($.value ?? Pn.value) || 0),
|
|
2097
|
+
y1: N(ie)(W.value.top),
|
|
2098
|
+
y2: N(ie)(W.value.bottom),
|
|
2124
2099
|
stroke: z.value.style.chart.highlighter.color,
|
|
2125
2100
|
"stroke-width": z.value.style.chart.highlighter.lineWidth,
|
|
2126
2101
|
"stroke-dasharray": z.value.style.chart.highlighter.lineDasharray,
|
|
@@ -2130,8 +2105,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2130
2105
|
animation: "none !important",
|
|
2131
2106
|
"pointer-events": "none"
|
|
2132
2107
|
}
|
|
2133
|
-
}, null, 8,
|
|
2134
|
-
(
|
|
2108
|
+
}, null, 8, At)])) : S("", !0)], 64)) : S("", !0),
|
|
2109
|
+
(O(!0), C(y, null, A(Y.value, (e) => (O(), C(y, { key: `shp_sel_${e.id}` }, [vn.value && q.value.end - q.value.start > z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (O(), C("g", jt, [$.value == null ? S("", !0) : (O(), C(y, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[q.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[q.value.start + $.value]) ? (O(), x(Ae, {
|
|
2135
2110
|
key: 0,
|
|
2136
2111
|
shape: [
|
|
2137
2112
|
"triangle",
|
|
@@ -2143,14 +2118,14 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2143
2118
|
].includes(e.shape) ? e.shape : "circle",
|
|
2144
2119
|
color: z.value.style.chart.lines.dot.useSerieColor ? e.color : z.value.style.chart.lines.dot.fill,
|
|
2145
2120
|
plot: {
|
|
2146
|
-
x:
|
|
2147
|
-
y:
|
|
2121
|
+
x: N(_)(e.points[e.rel.indexOf($.value)].x),
|
|
2122
|
+
y: N(_)(e.points[e.rel.indexOf($.value)].y)
|
|
2148
2123
|
},
|
|
2149
2124
|
radius: z.value.style.chart.lines.dot.radius * 1.3,
|
|
2150
2125
|
stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
|
|
2151
2126
|
strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
|
|
2152
|
-
still:
|
|
2153
|
-
class:
|
|
2127
|
+
still: N(zn),
|
|
2128
|
+
class: E({ "vue-data-ui-transition": N(Ln) })
|
|
2154
2129
|
}, null, 8, [
|
|
2155
2130
|
"shape",
|
|
2156
2131
|
"color",
|
|
@@ -2161,7 +2136,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2161
2136
|
"still",
|
|
2162
2137
|
"class"
|
|
2163
2138
|
])) : S("", !0)], 64))])) : S("", !0)], 64))), 128)),
|
|
2164
|
-
(
|
|
2139
|
+
(O(!0), C(y, null, A(Y.value, (e) => (O(), C(y, { key: `shp_${e.id}` }, [q.value.end - q.value.start < z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (O(!0), C(y, { key: 0 }, A(e.points, (t, n) => (O(), C("g", { key: `shp_${e.id}_${q.value.start + n}` }, [e.fullSeries?.[q.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[q.value.start + e.rel[n]]) ? (O(), x(Ae, {
|
|
2165
2140
|
key: 0,
|
|
2166
2141
|
shape: [
|
|
2167
2142
|
"triangle",
|
|
@@ -2179,8 +2154,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2179
2154
|
radius: vn.value && $.value === e.rel[n] ? z.value.style.chart.lines.dot.radius * 1.3 : z.value.style.chart.lines.dot.radius,
|
|
2180
2155
|
stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
|
|
2181
2156
|
strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
|
|
2182
|
-
still:
|
|
2183
|
-
class:
|
|
2157
|
+
still: N(zn),
|
|
2158
|
+
class: E({ "vue-data-ui-transition": N(Ln) })
|
|
2184
2159
|
}, null, 8, [
|
|
2185
2160
|
"shape",
|
|
2186
2161
|
"color",
|
|
@@ -2191,68 +2166,68 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2191
2166
|
"still",
|
|
2192
2167
|
"class"
|
|
2193
2168
|
])) : S("", !0)]))), 128)) : S("", !0)], 64))), 128)),
|
|
2194
|
-
H.value.dataLabels.show && z.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (
|
|
2169
|
+
H.value.dataLabels.show && z.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (O(), C(y, { key: 13 }, [(O(!0), C(y, null, A(Y.value, (e, t) => (O(), C("g", { key: `dl_${e.id}` }, [(O(!0), C(y, null, A(e.points, (n, r) => (O(), C(y, { key: `dp_${e.id}_${q.value.start + r}` }, [Xi(e.series[r], e.proportions[r]) ? (O(), C("text", {
|
|
2195
2170
|
key: 0,
|
|
2196
|
-
class:
|
|
2171
|
+
class: E({ "vue-data-ui-transition": N(Ln) }),
|
|
2197
2172
|
transform: `translate(${n.x}, ${n.y + (e.series[r] >= 0 ? -z.value.style.chart.lines.dataLabels.fontSize / 2 + z.value.style.chart.lines.dataLabels.offsetY : z.value.style.chart.lines.dataLabels.fontSize * 1.2 - z.value.style.chart.lines.dataLabels.offsetY)})`,
|
|
2198
2173
|
"font-size": z.value.style.chart.lines.dataLabels.fontSize,
|
|
2199
2174
|
fill: z.value.style.chart.lines.dataLabels.color,
|
|
2200
2175
|
"font-weight": z.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
|
|
2201
2176
|
"text-anchor": "middle"
|
|
2202
|
-
},
|
|
2177
|
+
}, M(z.value.style.chart.lines.showDistributedPercentage && z.value.style.chart.lines.distributed ? $i(e.proportions[r] * 100, e, t, e.rel[r]) : Qi(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 11, Mt)) : S("", !0)], 64))), 128))]))), 128)), z.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (O(), C("g", {
|
|
2203
2178
|
key: 0,
|
|
2204
2179
|
ref_key: "sumTop",
|
|
2205
|
-
ref:
|
|
2206
|
-
}, [(
|
|
2180
|
+
ref: Cn
|
|
2181
|
+
}, [(O(!0), C(y, null, A(Pr.value, (e, t) => (O(), C(y, { key: `total_l_${t + q.value.start}` }, [!z.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (O(), C("text", {
|
|
2207
2182
|
key: 0,
|
|
2208
|
-
class:
|
|
2209
|
-
transform: `translate(${Q(t)}, ${
|
|
2183
|
+
class: E({ "vue-data-ui-transition": N(Ln) }),
|
|
2184
|
+
transform: `translate(${Q(t)}, ${Ir(t)})`,
|
|
2210
2185
|
"text-anchor": "middle",
|
|
2211
2186
|
"font-size": z.value.style.chart.lines.totalValues.fontSize,
|
|
2212
2187
|
"font-weight": z.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
|
|
2213
2188
|
fill: z.value.style.chart.lines.totalValues.color
|
|
2214
|
-
},
|
|
2215
|
-
|
|
2189
|
+
}, M(Qi(e.value, e, t, t, e.sign)), 11, Nt)) : S("", !0)], 64))), 128))], 512)) : S("", !0)], 64)) : S("", !0),
|
|
2190
|
+
br.value ? (O(), C("rect", qe({ key: 14 }, hr.value, {
|
|
2216
2191
|
"data-start": q.value.start,
|
|
2217
2192
|
"data-end": q.value.end
|
|
2218
|
-
}), null, 16,
|
|
2219
|
-
|
|
2193
|
+
}), null, 16, Pt)) : S("", !0),
|
|
2194
|
+
j(t.$slots, "svg", { svg: {
|
|
2220
2195
|
drawingArea: W.value,
|
|
2221
2196
|
data: Y.value,
|
|
2222
|
-
isPrintingImg:
|
|
2223
|
-
isPrintingSvg:
|
|
2197
|
+
isPrintingImg: N(Xn) || N(Zn) || N(Pi),
|
|
2198
|
+
isPrintingSvg: N(Fi)
|
|
2224
2199
|
} }, void 0, !0)
|
|
2225
|
-
], 46,
|
|
2200
|
+
], 46, lt)), t.$slots.hint ? (O(), C("div", Ft, [j(t.$slots, "hint", D(T({
|
|
2226
2201
|
hint: z.value.a11y.translations.keyboardNavigation,
|
|
2227
|
-
isVisible:
|
|
2202
|
+
isVisible: na.value
|
|
2228
2203
|
})), void 0, !0)])) : S("", !0)]),
|
|
2229
|
-
t.$slots.watermark ? (
|
|
2230
|
-
hn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (
|
|
2204
|
+
t.$slots.watermark ? (O(), C("div", It, [j(t.$slots, "watermark", D(T({ isPrinting: N(Xn) || N(Zn) || N(Pi) || N(Fi) })), void 0, !0)])) : S("", !0),
|
|
2205
|
+
hn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (O(), x(He, {
|
|
2231
2206
|
key: 6,
|
|
2232
2207
|
to: z.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
|
|
2233
2208
|
}, [w("div", {
|
|
2234
2209
|
ref_key: "chartLegend",
|
|
2235
2210
|
ref: on
|
|
2236
|
-
}, [
|
|
2211
|
+
}, [j(t.$slots, "legend", { legend: Ci.value }, () => [z.value.style.chart.legend.show ? (O(), x(Be, {
|
|
2237
2212
|
key: 0,
|
|
2238
|
-
legendSet:
|
|
2239
|
-
config:
|
|
2213
|
+
legendSet: Ci.value,
|
|
2214
|
+
config: wi.value,
|
|
2240
2215
|
isCursorPointer: B.value,
|
|
2241
2216
|
onClickMarker: r[0] ||= ({ legend: e }) => e.segregate()
|
|
2242
2217
|
}, Ue({
|
|
2243
|
-
item:
|
|
2218
|
+
item: P(({ legend: e }) => [N(zn) ? S("", !0) : (O(), C("div", {
|
|
2244
2219
|
key: 0,
|
|
2245
2220
|
onClick: (t) => e.segregate(),
|
|
2246
|
-
style:
|
|
2247
|
-
},
|
|
2248
|
-
legendToggle:
|
|
2221
|
+
style: Ye(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
|
|
2222
|
+
}, M(e.name), 13, Lt))]),
|
|
2223
|
+
legendToggle: P(() => [Ci.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !N(zn) ? (O(), x(Ie, {
|
|
2249
2224
|
key: 0,
|
|
2250
2225
|
backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2251
2226
|
color: z.value.style.chart.legend.selectAllToggle.color,
|
|
2252
2227
|
fontSize: z.value.style.chart.legend.fontSize,
|
|
2253
2228
|
checked: L.value.length > 0,
|
|
2254
2229
|
isCursorPointer: B.value,
|
|
2255
|
-
onToggle:
|
|
2230
|
+
onToggle: xi
|
|
2256
2231
|
}, null, 8, [
|
|
2257
2232
|
"backgroundColor",
|
|
2258
2233
|
"color",
|
|
@@ -2263,7 +2238,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2263
2238
|
_: 2
|
|
2264
2239
|
}, [t.$slots.pattern ? {
|
|
2265
2240
|
name: "legend-pattern",
|
|
2266
|
-
fn:
|
|
2241
|
+
fn: P(({ legend: e, index: t }) => [Ge(Ae, {
|
|
2267
2242
|
shape: e.shape,
|
|
2268
2243
|
radius: 30,
|
|
2269
2244
|
stroke: "none",
|
|
@@ -2279,23 +2254,23 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2279
2254
|
"config",
|
|
2280
2255
|
"isCursorPointer"
|
|
2281
2256
|
])) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
|
|
2282
|
-
en.value && z.value.userOptions.buttons.table ? (
|
|
2257
|
+
en.value && z.value.userOptions.buttons.table ? (O(), x(Qe(zi.value.component), qe({ key: 7 }, zi.value.props, {
|
|
2283
2258
|
ref_key: "tableUnit",
|
|
2284
2259
|
ref: gn,
|
|
2285
|
-
onClose:
|
|
2260
|
+
onClose: Bi
|
|
2286
2261
|
}), Ue({
|
|
2287
|
-
content:
|
|
2288
|
-
colNames:
|
|
2289
|
-
head:
|
|
2290
|
-
body:
|
|
2291
|
-
config:
|
|
2292
|
-
title: z.value.table.useDialog ? "" :
|
|
2262
|
+
content: P(() => [Ge(N(Wt), {
|
|
2263
|
+
colNames: Ai.value.colNames,
|
|
2264
|
+
head: Ai.value.head,
|
|
2265
|
+
body: Ai.value.body,
|
|
2266
|
+
config: Ai.value.config,
|
|
2267
|
+
title: z.value.table.useDialog ? "" : zi.value.title,
|
|
2293
2268
|
withCloseButton: !z.value.table.useDialog,
|
|
2294
2269
|
isCursorPointer: B.value,
|
|
2295
|
-
onClose:
|
|
2270
|
+
onClose: Bi
|
|
2296
2271
|
}, {
|
|
2297
|
-
th:
|
|
2298
|
-
td:
|
|
2272
|
+
th: P(({ th: e }) => [w("div", { innerHTML: e }, null, 8, Rt)]),
|
|
2273
|
+
td: P(({ td: e }) => [We(M(isNaN(Number(e)) ? e : N(h)({
|
|
2299
2274
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
2300
2275
|
v: e,
|
|
2301
2276
|
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
@@ -2314,27 +2289,27 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2314
2289
|
_: 2
|
|
2315
2290
|
}, [z.value.table.useDialog ? {
|
|
2316
2291
|
name: "title",
|
|
2317
|
-
fn:
|
|
2292
|
+
fn: P(() => [We(M(zi.value.title), 1)]),
|
|
2318
2293
|
key: "0"
|
|
2319
2294
|
} : void 0, z.value.table.useDialog ? {
|
|
2320
2295
|
name: "actions",
|
|
2321
|
-
fn:
|
|
2296
|
+
fn: P(() => [w("button", {
|
|
2322
2297
|
tabindex: "0",
|
|
2323
2298
|
class: "vue-ui-user-options-button",
|
|
2324
|
-
onClick: r[1] ||= (e) =>
|
|
2325
|
-
style:
|
|
2326
|
-
}, [Ge(
|
|
2299
|
+
onClick: r[1] ||= (e) => ki(z.value.userOptions.callbacks.csv),
|
|
2300
|
+
style: Ye({ cursor: B.value ? "pointer" : "default" })
|
|
2301
|
+
}, [Ge(N(Ht), {
|
|
2327
2302
|
name: "fileCsv",
|
|
2328
|
-
stroke:
|
|
2303
|
+
stroke: zi.value.props.color
|
|
2329
2304
|
}, null, 8, ["stroke"])], 4)]),
|
|
2330
2305
|
key: "1"
|
|
2331
2306
|
} : void 0]), 1040)) : S("", !0),
|
|
2332
|
-
z.value.style.chart.zoom.show && en.value &&
|
|
2307
|
+
z.value.style.chart.zoom.show && en.value && Qr.value && K.value > 6 ? (O(), x(Fe, {
|
|
2333
2308
|
key: 8,
|
|
2334
2309
|
ref_key: "chartSlicer",
|
|
2335
2310
|
ref: sn,
|
|
2336
2311
|
"data-dom-to-png-ignore-layout": "",
|
|
2337
|
-
allMinimaps:
|
|
2312
|
+
allMinimaps: Ar.value,
|
|
2338
2313
|
background: z.value.style.chart.zoom.color,
|
|
2339
2314
|
borderColor: z.value.style.chart.backgroundColor,
|
|
2340
2315
|
customFormat: z.value.style.chart.zoom.customFormat,
|
|
@@ -2347,12 +2322,12 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2347
2322
|
fontSize: z.value.style.chart.zoom.fontSize,
|
|
2348
2323
|
immediate: !z.value.style.chart.zoom.preview.enable,
|
|
2349
2324
|
inputColor: z.value.style.chart.zoom.color,
|
|
2350
|
-
isPreview:
|
|
2351
|
-
labelLeft: z.value.style.chart.grid.x.timeLabels.values[q.value.start] ?
|
|
2352
|
-
labelRight: z.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ?
|
|
2325
|
+
isPreview: br.value,
|
|
2326
|
+
labelLeft: z.value.style.chart.grid.x.timeLabels.values[q.value.start] ? Rr.value?.[0]?.text ?? "" : "",
|
|
2327
|
+
labelRight: z.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ? Rr.value?.at(-1)?.text ?? "" : "",
|
|
2353
2328
|
max: Math.max(...e.dataset.map((e) => e.series.length)),
|
|
2354
2329
|
min: 0,
|
|
2355
|
-
minimap:
|
|
2330
|
+
minimap: kr.value,
|
|
2356
2331
|
minimapCompact: z.value.style.chart.zoom.minimap.compact,
|
|
2357
2332
|
minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
|
|
2358
2333
|
minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -2361,15 +2336,15 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2361
2336
|
minimapSelectedColorOpacity: z.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
2362
2337
|
minimapSelectedIndex: $.value,
|
|
2363
2338
|
minimapSelectionRadius: 1,
|
|
2364
|
-
preciseLabels:
|
|
2339
|
+
preciseLabels: qr.value.length ? qr.value : zr.value,
|
|
2365
2340
|
refreshEndPoint: z.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : z.value.style.chart.zoom.endIndex + 1,
|
|
2366
2341
|
refreshStartPoint: z.value.style.chart.zoom.startIndex === null ? 0 : z.value.style.chart.zoom.startIndex,
|
|
2367
2342
|
selectColor: z.value.style.chart.zoom.highlightColor,
|
|
2368
|
-
selectedSeries:
|
|
2343
|
+
selectedSeries: qi.value,
|
|
2369
2344
|
smoothMinimap: !1,
|
|
2370
2345
|
start: q.value.start,
|
|
2371
2346
|
textColor: z.value.style.chart.color,
|
|
2372
|
-
timeLabels:
|
|
2347
|
+
timeLabels: zr.value,
|
|
2373
2348
|
usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
|
|
2374
2349
|
valueEnd: q.value.end,
|
|
2375
2350
|
valueStart: q.value.start,
|
|
@@ -2385,23 +2360,23 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2385
2360
|
handleBorderColor: z.value.style.chart.zoom.minimap.handleBorderColor,
|
|
2386
2361
|
handleFill: z.value.style.chart.zoom.minimap.handleFill,
|
|
2387
2362
|
handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
|
|
2388
|
-
"onUpdate:end":
|
|
2389
|
-
"onUpdate:start":
|
|
2390
|
-
onTrapMouse:
|
|
2391
|
-
onReset: r[2] ||= () =>
|
|
2392
|
-
onFutureEnd: r[3] ||= (e) =>
|
|
2393
|
-
onFutureStart: r[4] ||= (e) =>
|
|
2363
|
+
"onUpdate:end": ni,
|
|
2364
|
+
"onUpdate:start": ti,
|
|
2365
|
+
onTrapMouse: vr,
|
|
2366
|
+
onReset: r[2] ||= () => Tr({ force: !0 }),
|
|
2367
|
+
onFutureEnd: r[3] ||= (e) => xr("end", e),
|
|
2368
|
+
onFutureStart: r[4] ||= (e) => xr("start", e)
|
|
2394
2369
|
}, {
|
|
2395
|
-
"reset-action":
|
|
2396
|
-
slotMap:
|
|
2370
|
+
"reset-action": P(({ reset: e }) => [j(t.$slots, "reset-action", D(T({ reset: e })), void 0, !0)]),
|
|
2371
|
+
slotMap: P(({ width: e, height: t, unitW: n }) => [w("g", { innerHTML: Yi({
|
|
2397
2372
|
minimapW: e,
|
|
2398
2373
|
minimapH: t,
|
|
2399
2374
|
unitW: n
|
|
2400
|
-
}) }, null, 8,
|
|
2375
|
+
}) }, null, 8, zt)]),
|
|
2401
2376
|
_: 3
|
|
2402
2377
|
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : S("", !0),
|
|
2403
|
-
w("div", { id: `legend-bottom-${I.value}` }, null, 8,
|
|
2404
|
-
Ge(
|
|
2378
|
+
w("div", { id: `legend-bottom-${I.value}` }, null, 8, Bt),
|
|
2379
|
+
Ge(N(Vt), {
|
|
2405
2380
|
teleportTo: z.value.style.chart.tooltip.teleportTo,
|
|
2406
2381
|
show: H.value.showTooltip && nn.value,
|
|
2407
2382
|
backgroundColor: z.value.style.chart.tooltip.backgroundColor,
|
|
@@ -2415,19 +2390,19 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2415
2390
|
offsetX: z.value.style.chart.tooltip.offsetX,
|
|
2416
2391
|
offsetY: z.value.style.chart.tooltip.offsetY,
|
|
2417
2392
|
parent: tn.value,
|
|
2418
|
-
content:
|
|
2393
|
+
content: vi.value,
|
|
2419
2394
|
isFullscreen: un.value,
|
|
2420
2395
|
isCustom: z.value.style.chart.tooltip.customFormat && typeof z.value.style.chart.tooltip.customFormat == "function",
|
|
2421
2396
|
smooth: z.value.style.chart.tooltip.smooth,
|
|
2422
2397
|
backdropFilter: z.value.style.chart.tooltip.backdropFilter,
|
|
2423
2398
|
smoothForce: z.value.style.chart.tooltip.smoothForce,
|
|
2424
2399
|
smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
|
|
2425
|
-
isA11yMode:
|
|
2426
|
-
a11yPosition:
|
|
2400
|
+
isA11yMode: kn.value === "keyboard",
|
|
2401
|
+
a11yPosition: On.value
|
|
2427
2402
|
}, {
|
|
2428
|
-
"tooltip-before":
|
|
2429
|
-
tooltip:
|
|
2430
|
-
"tooltip-after":
|
|
2403
|
+
"tooltip-before": P(() => [j(t.$slots, "tooltip-before", D(T({ ...Xr.value })), void 0, !0)]),
|
|
2404
|
+
tooltip: P(() => [j(t.$slots, "tooltip", D(T({ ...Xr.value })), void 0, !0)]),
|
|
2405
|
+
"tooltip-after": P(() => [j(t.$slots, "tooltip-after", D(T({ ...Xr.value })), void 0, !0)]),
|
|
2431
2406
|
_: 3
|
|
2432
2407
|
}, 8, [
|
|
2433
2408
|
"teleportTo",
|
|
@@ -2453,15 +2428,15 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2453
2428
|
"isA11yMode",
|
|
2454
2429
|
"a11yPosition"
|
|
2455
2430
|
]),
|
|
2456
|
-
t.$slots.source ? (
|
|
2431
|
+
t.$slots.source ? (O(), C("div", {
|
|
2457
2432
|
key: 9,
|
|
2458
2433
|
ref_key: "source",
|
|
2459
2434
|
ref: ln,
|
|
2460
2435
|
dir: "auto"
|
|
2461
|
-
}, [
|
|
2462
|
-
|
|
2463
|
-
], 46,
|
|
2436
|
+
}, [j(t.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
|
|
2437
|
+
j(t.$slots, "skeleton", {}, () => [N(zn) ? (O(), x(xe, { key: 0 })) : S("", !0)], !0)
|
|
2438
|
+
], 46, at));
|
|
2464
2439
|
}
|
|
2465
|
-
}, [["__scopeId", "data-v-
|
|
2440
|
+
}, [["__scopeId", "data-v-deca57cf"]]);
|
|
2466
2441
|
//#endregion
|
|
2467
|
-
export {
|
|
2442
|
+
export { it as n, Vt as t };
|