vue-data-ui 3.19.7 → 3.19.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{PackageVersion-DUU5Aku2.js → PackageVersion-Dl9W5zJD.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-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-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{vue-data-ui-DBjj6t8B.js → vue-data-ui-nsosW-n5.js} +61 -61
- package/dist/vue-data-ui.js +61 -61
- package/dist/{vue-ui-3d-bar-CmAc1xBL.js → vue-ui-3d-bar-CTvvvgBE.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CFvux3-S.js → vue-ui-age-pyramid-ckZtLlmH.js} +1 -1
- package/dist/{vue-ui-bullet-C4xEb3fq.js → vue-ui-bullet-3CkhGOSb.js} +1 -1
- package/dist/{vue-ui-bump-BW76g7ep.js → vue-ui-bump-LQuPTOlm.js} +1 -1
- package/dist/{vue-ui-candlestick-ShTn9uzH.js → vue-ui-candlestick-BeO06tlH.js} +1 -1
- package/dist/{vue-ui-carousel-table-DMan_IZb.js → vue-ui-carousel-table-nZJ1k6se.js} +1 -1
- package/dist/{vue-ui-chestnut-BIfaNOqy.js → vue-ui-chestnut-BWItE1hg.js} +1 -1
- package/dist/{vue-ui-chord-GDJiAjfD.js → vue-ui-chord-YflKRyWK.js} +1 -1
- package/dist/{vue-ui-circle-pack-Bo4ljiP_.js → vue-ui-circle-pack-DyTYvEg3.js} +1 -1
- package/dist/{vue-ui-cursor-BuLoDOFw.js → vue-ui-cursor-C5_wkWul.js} +1 -1
- package/dist/{vue-ui-dag-BmbwijZi.js → vue-ui-dag-mH0baWM3.js} +1 -1
- package/dist/{vue-ui-dashboard-CyzIaw6M.js → vue-ui-dashboard-F7pEuJDh.js} +58 -58
- package/dist/{vue-ui-digits-B33dTRHj.js → vue-ui-digits-BYBtwXy_.js} +1 -1
- package/dist/{vue-ui-donut-BIgvjStd.js → vue-ui-donut-B3L7jeHL.js} +434 -432
- package/dist/{vue-ui-donut-evolution-DT5F88LK.js → vue-ui-donut-evolution-C46h0gLy.js} +356 -356
- package/dist/{vue-ui-dumbbell-SwLKpHuh.js → vue-ui-dumbbell-xekp1obI.js} +1 -1
- package/dist/{vue-ui-flow-BqTUyRBS.js → vue-ui-flow-BYYyk5KL.js} +1 -1
- package/dist/{vue-ui-funnel-GOx4FfhB.js → vue-ui-funnel-BfY509t-.js} +1 -1
- package/dist/{vue-ui-galaxy-CTMyOfp7.js → vue-ui-galaxy-D061gTYS.js} +260 -257
- package/dist/{vue-ui-gauge-Clz_TmiX.js → vue-ui-gauge-BRxZNBBS.js} +1 -1
- package/dist/{vue-ui-geo-2kZK_UVF.js → vue-ui-geo-BwOMFUVr.js} +1 -1
- package/dist/{vue-ui-gizmo-BpNEwLo7.js → vue-ui-gizmo-CQsP8Nd3.js} +1 -1
- package/dist/{vue-ui-heatmap-B6FLZij5.js → vue-ui-heatmap-DOsulVoP.js} +1 -1
- package/dist/{vue-ui-history-plot-DpGwqYyg.js → vue-ui-history-plot-CXW6lF42.js} +4 -8
- package/dist/{vue-ui-horizontal-bar-BHFd966c.js → vue-ui-horizontal-bar-CideXtlg.js} +4 -4
- package/dist/{vue-ui-kpi-DyIqCISK.js → vue-ui-kpi-CE-JFZ1o.js} +1 -1
- package/dist/{vue-ui-molecule-BtQOQ32e.js → vue-ui-molecule-B1Prm5Lk.js} +1 -1
- package/dist/{vue-ui-mood-radar-CZSLnIMi.js → vue-ui-mood-radar-B29gVcTN.js} +1 -1
- package/dist/{vue-ui-nested-donuts-Lhteboo1.js → vue-ui-nested-donuts-Bsx5f9Gv.js} +97 -94
- package/dist/{vue-ui-onion-uCUgmyF1.js → vue-ui-onion-MN-PjNJq.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-_u_VTAjF.js → vue-ui-parallel-coordinate-plot-C9zU7MP5.js} +91 -95
- package/dist/{vue-ui-quadrant-CgalDMyS.js → vue-ui-quadrant-h-QFG9O4.js} +3 -3
- package/dist/vue-ui-quick-chart-PAVz4c9z.js +2469 -0
- package/dist/{vue-ui-radar-64HPFASp.js → vue-ui-radar-D2pVd53z.js} +115 -112
- package/dist/{vue-ui-relation-circle-DT4So4-6.js → vue-ui-relation-circle-BjB0J53V.js} +1 -1
- package/dist/{vue-ui-ridgeline-5fZANTS9.js → vue-ui-ridgeline-DamvqiyJ.js} +3 -3
- package/dist/{vue-ui-rings-QFY794j3.js → vue-ui-rings-DkHS5dwd.js} +105 -102
- package/dist/{vue-ui-scatter-BPCY-u36.js → vue-ui-scatter-dFDowCVQ.js} +5 -5
- package/dist/{vue-ui-skeleton-Dj_ZVfSX.js → vue-ui-skeleton-zhkS1cmh.js} +1 -1
- package/dist/{vue-ui-spark-trend-DB0VHzm0.js → vue-ui-spark-trend-fQ10-UvM.js} +1 -1
- package/dist/{vue-ui-sparkbar-DVGRTFO5.js → vue-ui-sparkbar-D5toou8V.js} +1 -1
- package/dist/{vue-ui-sparkgauge-3UFZaDF9.js → vue-ui-sparkgauge-DRZcIPYf.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-DRmBVef7.js → vue-ui-sparkhistogram-YizEqFdN.js} +1 -1
- package/dist/{vue-ui-sparkline-vsqKnakQ.js → vue-ui-sparkline-w2nclIW0.js} +1 -1
- package/dist/vue-ui-sparkstackbar-CTShNXhW.js +662 -0
- package/dist/{vue-ui-stackbar-9jP1s0MN.js → vue-ui-stackbar-BFLCEsRk.js} +404 -404
- package/dist/{vue-ui-stackline-D1o_afno.js → vue-ui-stackline-CU6s-hhv.js} +125 -125
- package/dist/{vue-ui-strip-plot-CogQ8VSl.js → vue-ui-strip-plot-ByaDLFSL.js} +1 -1
- package/dist/{vue-ui-table-Bub1v0eM.js → vue-ui-table-DuA_CfGn.js} +2 -2
- package/dist/{vue-ui-table-sparkline-BPts9wTR.js → vue-ui-table-sparkline-Dfei_QrJ.js} +1 -1
- package/dist/{vue-ui-thermometer-CJJ4cVt0.js → vue-ui-thermometer-biw3ivMI.js} +1 -1
- package/dist/{vue-ui-timer-BEPXWd20.js → vue-ui-timer-9LNNDl4q.js} +1 -1
- package/dist/{vue-ui-tiremarks-BC7bLLQD.js → vue-ui-tiremarks-kF0Baqia.js} +1 -1
- package/dist/{vue-ui-treemap-Cja-vZoa.js → vue-ui-treemap-BexKMBhz.js} +373 -373
- package/dist/{vue-ui-waffle-BRj-YBlz.js → vue-ui-waffle-Dq50j_uw.js} +1 -1
- package/dist/{vue-ui-wheel-AOTFpTWN.js → vue-ui-wheel-BETHlWsO.js} +1 -1
- package/dist/{vue-ui-word-cloud-dqfAdhW-.js → vue-ui-word-cloud-D1AQtzmT.js} +1 -1
- package/dist/{vue-ui-world-DqwsIYze.js → vue-ui-world-CcgbuSp_.js} +1 -1
- package/dist/vue-ui-xy-BQ1YONCq.js +4219 -0
- package/dist/{vue-ui-xy-canvas-B06Rit63.js → vue-ui-xy-canvas-4ABYnasj.js} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-quick-chart-BAWcSaDB.js +0 -2471
- package/dist/vue-ui-sparkstackbar-BNUhunuQ.js +0 -662
- package/dist/vue-ui-xy-Dhult6gR.js +0 -4181
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { B as t, Ft as n, G as r, H as a, It as o, J as s, Lt as c, S as l, St as u, Tt as d, V as
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { c as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { Fragment as
|
|
2
|
+
import { B as t, Ft as n, G as r, H as a, It as o, J as s, Lt as c, S as l, St as u, Tt as d, V as ee, X as f, et as p, g as te, h as ne, i as m, nt as re, ot as ie, pt as ae, r as oe, s as se, t as ce, x as le, y as ue, yt as de, zt as fe } from "./lib-BkiwukKO.js";
|
|
3
|
+
import { n as pe, r as me, t as he } from "./useTimeLabels-C0x7zUXP.js";
|
|
4
|
+
import { t as ge } from "./useConfig-ByaaSKhz.js";
|
|
5
|
+
import { t as _e } from "./usePrinter-X0yWOynH.js";
|
|
6
|
+
import { n as ve, t as ye } from "./BaseScanner-C7dmAref.js";
|
|
7
|
+
import { t as be } from "./useSvgExport-Dtu973wa.js";
|
|
8
|
+
import { t as xe } from "./useNestedProp-Ck4hsrpu.js";
|
|
9
|
+
import { t as Se } from "./useThemeCheck-rFK9Zlb_.js";
|
|
10
|
+
import { t as Ce } from "./useStableElementSize-0I1IpHPl.js";
|
|
11
|
+
import { t as we } from "./useTimeLabelCollider-Dm55Emzg.js";
|
|
12
|
+
import { t as Te } from "./img-BjOr008R.js";
|
|
13
|
+
import { n as Ee } from "./Title-__gWq2g6.js";
|
|
14
|
+
import { t as De } from "./Shape-DEGOZ6GG.js";
|
|
15
|
+
import { t as Oe } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
16
|
+
import { c as ke } from "./canvas-lib-DTaADQOK.js";
|
|
17
|
+
import { t as Ae } from "./useResponsive-CrAInupd.js";
|
|
18
|
+
import { t as je } from "./SlicerPreview-BU3ZeHjR.js";
|
|
19
|
+
import { t as Me } from "./BaseLegendToggle-CJTwLGXL.js";
|
|
20
|
+
import { t as Ne } from "./A11yDataTable-q2-8fSlJ.js";
|
|
21
|
+
import { t as Pe } from "./useUserOptionState-CjPJPTg2.js";
|
|
22
|
+
import { t as Fe } from "./useChartAccessibility-Do37qcw2.js";
|
|
23
|
+
import { t as Ie } from "./Legend-Gg5Q4Clb.js";
|
|
24
|
+
import { t as Le } from "./vue_ui_stackbar-BW_C3MXw.js";
|
|
25
|
+
import { Fragment as h, Teleport as Re, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as x, guardReactiveProps as S, mergeProps as He, nextTick as Ue, normalizeClass as We, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as Ge, onMounted as Ke, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as qe, shallowRef as Je, toDisplayString as k, toRefs as Ye, unref as A, useSlots as Xe, watch as Ze, watchEffect as Qe, withCtx as j } from "vue";
|
|
26
26
|
//#region src/components/vue-ui-stackbar.vue
|
|
27
|
-
var
|
|
27
|
+
var $e = /* @__PURE__ */ e({ default: () => Qt }), et = ["id"], tt = ["id"], nt = ["id"], rt = { style: { position: "relative" } }, it = [
|
|
28
28
|
"xmlns",
|
|
29
29
|
"aria-describedby",
|
|
30
30
|
"viewBox"
|
|
31
|
-
],
|
|
31
|
+
], at = [
|
|
32
32
|
"x",
|
|
33
33
|
"y",
|
|
34
34
|
"width",
|
|
35
35
|
"height"
|
|
36
|
-
],
|
|
36
|
+
], ot = { key: 1 }, st = ["id"], ct = ["stop-color"], lt = ["stop-color"], ut = ["stop-color"], dt = [
|
|
37
37
|
"x",
|
|
38
38
|
"y",
|
|
39
39
|
"width",
|
|
@@ -43,7 +43,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
43
43
|
"stroke-linecap",
|
|
44
44
|
"stroke-linejoin",
|
|
45
45
|
"stroke-dasharray"
|
|
46
|
-
],
|
|
46
|
+
], ft = [
|
|
47
47
|
"x1",
|
|
48
48
|
"x2",
|
|
49
49
|
"y1",
|
|
@@ -51,7 +51,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
51
51
|
"stroke",
|
|
52
52
|
"stroke-width",
|
|
53
53
|
"stroke-dasharray"
|
|
54
|
-
],
|
|
54
|
+
], pt = [
|
|
55
55
|
"x1",
|
|
56
56
|
"x2",
|
|
57
57
|
"y1",
|
|
@@ -59,7 +59,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
59
59
|
"stroke",
|
|
60
60
|
"stroke-width",
|
|
61
61
|
"stroke-dasharray"
|
|
62
|
-
],
|
|
62
|
+
], mt = [
|
|
63
63
|
"x1",
|
|
64
64
|
"x2",
|
|
65
65
|
"y1",
|
|
@@ -67,7 +67,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
67
67
|
"stroke",
|
|
68
68
|
"stroke-width",
|
|
69
69
|
"stroke-dasharray"
|
|
70
|
-
],
|
|
70
|
+
], ht = [
|
|
71
71
|
"x1",
|
|
72
72
|
"x2",
|
|
73
73
|
"y1",
|
|
@@ -75,7 +75,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
75
75
|
"stroke",
|
|
76
76
|
"stroke-width",
|
|
77
77
|
"stroke-dasharray"
|
|
78
|
-
],
|
|
78
|
+
], gt = { key: 0 }, _t = [
|
|
79
79
|
"x",
|
|
80
80
|
"y",
|
|
81
81
|
"height",
|
|
@@ -84,7 +84,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
84
84
|
"fill",
|
|
85
85
|
"stroke",
|
|
86
86
|
"stroke-width"
|
|
87
|
-
],
|
|
87
|
+
], vt = { key: 0 }, yt = [
|
|
88
88
|
"x",
|
|
89
89
|
"y",
|
|
90
90
|
"height",
|
|
@@ -93,7 +93,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
93
93
|
"fill",
|
|
94
94
|
"stroke",
|
|
95
95
|
"stroke-width"
|
|
96
|
-
],
|
|
96
|
+
], bt = [
|
|
97
97
|
"x",
|
|
98
98
|
"y",
|
|
99
99
|
"width",
|
|
@@ -102,7 +102,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
102
102
|
"fill",
|
|
103
103
|
"stroke",
|
|
104
104
|
"stroke-width"
|
|
105
|
-
],
|
|
105
|
+
], xt = { key: 0 }, St = [
|
|
106
106
|
"x",
|
|
107
107
|
"y",
|
|
108
108
|
"width",
|
|
@@ -111,102 +111,102 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
111
111
|
"fill",
|
|
112
112
|
"stroke",
|
|
113
113
|
"stroke-width"
|
|
114
|
-
],
|
|
114
|
+
], Ct = [
|
|
115
115
|
"x1",
|
|
116
116
|
"x2",
|
|
117
117
|
"y1",
|
|
118
118
|
"y2",
|
|
119
119
|
"stroke",
|
|
120
120
|
"stroke-width"
|
|
121
|
-
],
|
|
121
|
+
], wt = [
|
|
122
122
|
"x1",
|
|
123
123
|
"x2",
|
|
124
124
|
"y1",
|
|
125
125
|
"y2",
|
|
126
126
|
"stroke",
|
|
127
127
|
"stroke-width"
|
|
128
|
-
],
|
|
128
|
+
], Tt = [
|
|
129
129
|
"x",
|
|
130
130
|
"y",
|
|
131
131
|
"font-size",
|
|
132
132
|
"fill",
|
|
133
133
|
"font-weight"
|
|
134
|
-
],
|
|
134
|
+
], Et = [
|
|
135
135
|
"transform",
|
|
136
136
|
"font-size",
|
|
137
137
|
"fill",
|
|
138
138
|
"font-weight"
|
|
139
|
-
],
|
|
139
|
+
], Dt = [
|
|
140
140
|
"x",
|
|
141
141
|
"y",
|
|
142
142
|
"font-size",
|
|
143
143
|
"fill",
|
|
144
144
|
"font-weight"
|
|
145
|
-
],
|
|
145
|
+
], Ot = [
|
|
146
146
|
"x",
|
|
147
147
|
"y",
|
|
148
148
|
"font-size",
|
|
149
149
|
"font-weight",
|
|
150
150
|
"fill"
|
|
151
|
-
],
|
|
151
|
+
], kt = [
|
|
152
152
|
"x",
|
|
153
153
|
"y",
|
|
154
154
|
"font-size",
|
|
155
155
|
"fill",
|
|
156
156
|
"font-weight"
|
|
157
|
-
],
|
|
157
|
+
], At = [
|
|
158
158
|
"x",
|
|
159
159
|
"y",
|
|
160
160
|
"font-size",
|
|
161
161
|
"font-weight",
|
|
162
162
|
"fill"
|
|
163
|
-
],
|
|
163
|
+
], jt = [
|
|
164
164
|
"x1",
|
|
165
165
|
"x2",
|
|
166
166
|
"y1",
|
|
167
167
|
"y2",
|
|
168
168
|
"stroke"
|
|
169
|
-
],
|
|
169
|
+
], Mt = [
|
|
170
170
|
"x",
|
|
171
171
|
"y",
|
|
172
172
|
"font-size",
|
|
173
173
|
"font-weight",
|
|
174
174
|
"fill",
|
|
175
175
|
"text-anchor"
|
|
176
|
-
],
|
|
176
|
+
], Nt = [
|
|
177
177
|
"x1",
|
|
178
178
|
"x2",
|
|
179
179
|
"y1",
|
|
180
180
|
"y2",
|
|
181
181
|
"stroke"
|
|
182
|
-
],
|
|
182
|
+
], Pt = [
|
|
183
183
|
"font-size",
|
|
184
184
|
"font-weight",
|
|
185
185
|
"fill",
|
|
186
186
|
"text-anchor",
|
|
187
187
|
"transform"
|
|
188
|
-
],
|
|
188
|
+
], Ft = { key: 0 }, It = { key: 1 }, Lt = [
|
|
189
189
|
"text-anchor",
|
|
190
190
|
"font-size",
|
|
191
191
|
"font-weight",
|
|
192
192
|
"fill",
|
|
193
193
|
"transform",
|
|
194
194
|
"onClick"
|
|
195
|
-
],
|
|
195
|
+
], Rt = [
|
|
196
196
|
"text-anchor",
|
|
197
197
|
"font-size",
|
|
198
198
|
"fill",
|
|
199
199
|
"transform",
|
|
200
200
|
"innerHTML",
|
|
201
201
|
"onClick"
|
|
202
|
-
],
|
|
202
|
+
], zt = { key: 0 }, Bt = { key: 1 }, Vt = [
|
|
203
203
|
"font-size",
|
|
204
204
|
"font-weight",
|
|
205
205
|
"fill",
|
|
206
206
|
"x",
|
|
207
207
|
"y",
|
|
208
208
|
"onClick"
|
|
209
|
-
],
|
|
209
|
+
], Ht = [
|
|
210
210
|
"font-size",
|
|
211
211
|
"font-weight",
|
|
212
212
|
"fill",
|
|
@@ -214,7 +214,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
214
214
|
"y",
|
|
215
215
|
"onClick",
|
|
216
216
|
"innerHTML"
|
|
217
|
-
],
|
|
217
|
+
], Ut = [
|
|
218
218
|
"x",
|
|
219
219
|
"y",
|
|
220
220
|
"width",
|
|
@@ -223,7 +223,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
223
223
|
"onMouseenter",
|
|
224
224
|
"onMouseleave",
|
|
225
225
|
"fill"
|
|
226
|
-
],
|
|
226
|
+
], Wt = [
|
|
227
227
|
"x",
|
|
228
228
|
"y",
|
|
229
229
|
"width",
|
|
@@ -232,7 +232,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
232
232
|
"onMouseenter",
|
|
233
233
|
"onMouseleave",
|
|
234
234
|
"fill"
|
|
235
|
-
],
|
|
235
|
+
], Gt = ["data-start", "data-end"], Kt = {
|
|
236
236
|
key: 0,
|
|
237
237
|
style: {
|
|
238
238
|
position: "absolute",
|
|
@@ -242,17 +242,17 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
242
242
|
},
|
|
243
243
|
"data-dom-to-png-ignore": "",
|
|
244
244
|
"aria-hidden": "true"
|
|
245
|
-
},
|
|
245
|
+
}, qt = {
|
|
246
246
|
key: 4,
|
|
247
247
|
class: "vue-data-ui-watermark"
|
|
248
|
-
},
|
|
248
|
+
}, Jt = [
|
|
249
249
|
"x",
|
|
250
250
|
"y",
|
|
251
251
|
"height",
|
|
252
252
|
"width",
|
|
253
253
|
"fill",
|
|
254
254
|
"stroke"
|
|
255
|
-
],
|
|
255
|
+
], Yt = ["id"], Xt = ["onClick"], Zt = ["innerHTML"], Qt = /* @__PURE__ */ Oe({
|
|
256
256
|
__name: "vue-ui-stackbar",
|
|
257
257
|
props: {
|
|
258
258
|
config: {
|
|
@@ -279,18 +279,18 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
279
279
|
"selectX",
|
|
280
280
|
"copyAlt"
|
|
281
281
|
],
|
|
282
|
-
setup(e, { expose:
|
|
283
|
-
let
|
|
282
|
+
setup(e, { expose: Oe, emit: $e }) {
|
|
283
|
+
let Qt = x(() => import("./Tooltip-CuWEYGr3.js")), $t = x(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), en = x(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), tn = x(() => import("./DataTable-DmE8Oo4i.js")), nn = x(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), rn = x(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), an = x(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), on = x(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_stackbar: sn } = ge(), { isThemeValid: cn, warnInvalidTheme: ln } = Se(), un = Xe(), M = e, N = $e, dn = g({
|
|
284
284
|
get() {
|
|
285
|
-
return !!
|
|
285
|
+
return !!M.dataset && M.dataset.length;
|
|
286
286
|
},
|
|
287
287
|
set(e) {
|
|
288
288
|
return e;
|
|
289
289
|
}
|
|
290
|
-
}), P =
|
|
290
|
+
}), P = E(null), F = E(a()), fn = E(!1), pn = E(null), mn = E(""), I = E([]), hn = E(0), gn = E(null), _n = E(null), vn = E(null), yn = E(null), bn = E(!1), L = E(null), xn = E(!1), Sn = E(0), Cn = E(0), wn = E(0), Tn = E(!1), En = E(null), Dn = E(null), On = E(!1), kn = E(!1), An = E(null), jn = E(null), Mn = E(null), Nn = E(null), Pn = E(null), Fn = E(null), In = Je(null), Ln = E(!1), Rn = E(0), zn = E(0), R = E(null), Bn = E({
|
|
291
291
|
x: 0,
|
|
292
292
|
y: 0
|
|
293
|
-
}), Vn =
|
|
293
|
+
}), Vn = E("pointer"), Hn = Ce({
|
|
294
294
|
elementRef: In,
|
|
295
295
|
minimumWidth: 2,
|
|
296
296
|
minimumHeight: 2,
|
|
@@ -312,13 +312,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
312
312
|
}
|
|
313
313
|
async function Gn() {
|
|
314
314
|
let e = ++zn.value;
|
|
315
|
-
Ln.value = !1, await
|
|
315
|
+
Ln.value = !1, await Ue(), await Wn(), await Wn(), e === zn.value && (Rn.value += 1, Ln.value = !0);
|
|
316
316
|
}
|
|
317
|
-
let Kn =
|
|
318
|
-
|
|
317
|
+
let Kn = E(null);
|
|
318
|
+
Ke(() => {
|
|
319
319
|
Tn.value = !0, Un(), Hn.start(), mr();
|
|
320
320
|
});
|
|
321
|
-
let z =
|
|
321
|
+
let z = E(rr()), B = g(() => z.value.userOptions.useCursorPointer), qn = g(() => fe({
|
|
322
322
|
defaultConfig: {
|
|
323
323
|
userOptions: { show: !1 },
|
|
324
324
|
useCssAnimation: !1,
|
|
@@ -363,8 +363,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
363
363
|
} }
|
|
364
364
|
},
|
|
365
365
|
userConfig: z.value.skeletonConfig ?? {}
|
|
366
|
-
})), { loading: Jn, FINAL_DATASET: Yn, manualLoading: Xn } =
|
|
367
|
-
...
|
|
366
|
+
})), { loading: Jn, FINAL_DATASET: Yn, manualLoading: Xn } = ve({
|
|
367
|
+
...Ye(M),
|
|
368
368
|
FINAL_CONFIG: z,
|
|
369
369
|
prepareConfig: rr,
|
|
370
370
|
callback: () => {
|
|
@@ -372,7 +372,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
372
372
|
(!z.value.style.chart.zoom.keepState || !Li.value || J.value.start === 0 && J.value.end === 0) && await Ri();
|
|
373
373
|
});
|
|
374
374
|
},
|
|
375
|
-
skeletonDataset:
|
|
375
|
+
skeletonDataset: M.config?.skeletonDataset ?? [{
|
|
376
376
|
name: "",
|
|
377
377
|
series: [
|
|
378
378
|
2,
|
|
@@ -395,34 +395,34 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
395
395
|
],
|
|
396
396
|
color: "#CACACA"
|
|
397
397
|
}],
|
|
398
|
-
skeletonConfig:
|
|
398
|
+
skeletonConfig: fe({
|
|
399
399
|
defaultConfig: z.value,
|
|
400
400
|
userConfig: qn.value
|
|
401
401
|
})
|
|
402
|
-
}), { userOptionsVisible: Zn, setUserOptionsVisibility: Qn, keepUserOptionState: $n } =
|
|
402
|
+
}), { userOptionsVisible: Zn, setUserOptionsVisibility: Qn, keepUserOptionState: $n } = Pe({ config: z.value }), { svgRef: er } = Fe({ config: z.value.style.chart.title });
|
|
403
403
|
function tr() {
|
|
404
404
|
Qn(!0);
|
|
405
405
|
}
|
|
406
406
|
function nr() {
|
|
407
|
-
Qn(!1),
|
|
407
|
+
Qn(!1), N("selectX", {
|
|
408
408
|
seriesIndex: null,
|
|
409
409
|
datapoint: null
|
|
410
410
|
}), L.value = null, R.value = null, fn.value = !1;
|
|
411
411
|
}
|
|
412
412
|
function rr() {
|
|
413
|
-
let e =
|
|
414
|
-
userConfig:
|
|
415
|
-
defaultConfig:
|
|
413
|
+
let e = xe({
|
|
414
|
+
userConfig: M.config,
|
|
415
|
+
defaultConfig: sn
|
|
416
416
|
}), t = {}, n = e.theme;
|
|
417
|
-
if (n) if (!
|
|
417
|
+
if (n) if (!cn.value(e)) ln(e), t = e;
|
|
418
418
|
else {
|
|
419
|
-
let r =
|
|
420
|
-
userConfig:
|
|
419
|
+
let r = xe({
|
|
420
|
+
userConfig: Le[n] || M.config,
|
|
421
421
|
defaultConfig: e
|
|
422
422
|
});
|
|
423
423
|
t = {
|
|
424
|
-
...
|
|
425
|
-
userConfig:
|
|
424
|
+
...xe({
|
|
425
|
+
userConfig: M.config,
|
|
426
426
|
defaultConfig: r
|
|
427
427
|
}),
|
|
428
428
|
customPalette: e.customPalette.length ? e.customPalette : c[n] || d
|
|
@@ -431,29 +431,29 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
431
431
|
else t = e;
|
|
432
432
|
return t;
|
|
433
433
|
}
|
|
434
|
-
let ir =
|
|
435
|
-
|
|
434
|
+
let ir = g(() => z.value.style.chart.bars.dataLabels.hideUnderValue != null), ar = g(() => z.value.style.chart.bars.dataLabels.hideUnderPercentage != null);
|
|
435
|
+
Ze(() => M.config, (e) => {
|
|
436
436
|
Jn.value || (z.value = rr()), Zn.value = !z.value.userOptions.showOnChartHover, mr({ resetSlicer: !z.value.style.chart.zoom.keepState }), Sn.value += 1, Cn.value += 1, wn.value += 1, V.value.dataLabels.show = z.value.style.chart.bars.dataLabels.show, V.value.showTable = z.value.table.show, V.value.showTooltip = z.value.style.chart.tooltip.show, Un(), !z.value.style.chart.zoom.keepState || !Li.value || J.value.start === 0 && J.value.end === 0 ? Ri() : kr();
|
|
437
|
-
}, { deep: !0 }),
|
|
437
|
+
}, { deep: !0 }), Ze(() => M.dataset, (e) => {
|
|
438
438
|
Array.isArray(e) && e.length > 0 && (Xn.value = !1), Un(), z.value.style.chart.zoom.keepState ? kr() : Mr();
|
|
439
439
|
}, { deep: !0 });
|
|
440
|
-
let V =
|
|
440
|
+
let V = E({
|
|
441
441
|
dataLabels: { show: z.value.style.chart.bars.dataLabels.show },
|
|
442
442
|
showTable: z.value.table.show,
|
|
443
443
|
showTooltip: z.value.style.chart.tooltip.show
|
|
444
444
|
});
|
|
445
|
-
|
|
445
|
+
Ze(z, () => {
|
|
446
446
|
V.value = {
|
|
447
447
|
dataLabels: { show: z.value.style.chart.bars.dataLabels.show },
|
|
448
448
|
showTable: z.value.table.show,
|
|
449
449
|
showTooltip: z.value.style.chart.tooltip.show
|
|
450
450
|
};
|
|
451
451
|
}, { immediate: !0 });
|
|
452
|
-
let { isPrinting: or, isImaging: sr, generatePdf: cr, generateImage: lr } =
|
|
452
|
+
let { isPrinting: or, isImaging: sr, generatePdf: cr, generateImage: lr } = _e({
|
|
453
453
|
elementId: `stackbar_${F.value}`,
|
|
454
454
|
fileName: z.value.style.chart.title.text || "vue-ui-stackbar",
|
|
455
455
|
options: z.value.userOptions.print
|
|
456
|
-
}), H =
|
|
456
|
+
}), H = E({
|
|
457
457
|
width: z.value.style.chart.width,
|
|
458
458
|
height: z.value.style.chart.height,
|
|
459
459
|
paddingRatio: {
|
|
@@ -462,18 +462,18 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
462
462
|
bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
|
|
463
463
|
left: z.value.style.chart.padding.left / z.value.style.chart.width
|
|
464
464
|
}
|
|
465
|
-
}), ur =
|
|
465
|
+
}), ur = g(() => le(z.value.customPalette)), U = Je(null), dr = Je(null), fr = E(null), pr = g(() => !!z.value.debug);
|
|
466
466
|
function mr({ resetSlicer: e = !0 } = {}) {
|
|
467
|
-
if (u(
|
|
467
|
+
if (u(M.dataset) ? (f({
|
|
468
468
|
componentName: "VueUiStackbar",
|
|
469
469
|
type: "dataset",
|
|
470
470
|
debug: pr.value
|
|
471
|
-
}), Xn.value = !0) :
|
|
472
|
-
|
|
471
|
+
}), Xn.value = !0) : M.dataset.forEach((e, t) => {
|
|
472
|
+
ie({
|
|
473
473
|
datasetObject: e,
|
|
474
474
|
requiredAttributes: ["name", "series"]
|
|
475
475
|
}).forEach((e) => {
|
|
476
|
-
dn.value = !1,
|
|
476
|
+
dn.value = !1, f({
|
|
477
477
|
componentName: "VueUiStackbar",
|
|
478
478
|
type: "datasetSerieAttribute",
|
|
479
479
|
property: e,
|
|
@@ -481,12 +481,12 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
481
481
|
debug: pr.value
|
|
482
482
|
}), Xn.value = !0;
|
|
483
483
|
});
|
|
484
|
-
}), u(
|
|
484
|
+
}), u(M.dataset) || (Xn.value = z.value.loading), setTimeout(() => {
|
|
485
485
|
xn.value = !0;
|
|
486
486
|
}, 10), z.value.responsive) {
|
|
487
|
-
let e =
|
|
487
|
+
let e = ke(() => {
|
|
488
488
|
xn.value = !1;
|
|
489
|
-
let { width: e, height: t } =
|
|
489
|
+
let { width: e, height: t } = Ae({
|
|
490
490
|
chart: P.value,
|
|
491
491
|
title: z.value.style.chart.title.text ? gn.value : null,
|
|
492
492
|
legend: z.value.style.chart.legend.show ? _n.value : null,
|
|
@@ -503,10 +503,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
503
503
|
}
|
|
504
504
|
Gn(), e && Ri();
|
|
505
505
|
}
|
|
506
|
-
|
|
506
|
+
Ge(() => {
|
|
507
507
|
Hn.stop(), U.value && (dr.value && U.value.unobserve(dr.value), U.value.disconnect());
|
|
508
508
|
});
|
|
509
|
-
let W =
|
|
509
|
+
let W = g(() => z.value.style.chart.grid.y.position === "right");
|
|
510
510
|
function hr() {
|
|
511
511
|
let e = 0;
|
|
512
512
|
z.value.orientation === "vertical" && Mn.value && (e = Array.from(Mn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
@@ -524,7 +524,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
524
524
|
yAxisLabelWidth: t
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
|
-
let gr =
|
|
527
|
+
let gr = E(0), _r = E(0), vr = ke((e) => {
|
|
528
528
|
_r.value = e + z.value.style.chart.bars.totalValues.fontSize;
|
|
529
529
|
}, 100);
|
|
530
530
|
function yr() {
|
|
@@ -540,7 +540,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
540
540
|
} catch {}
|
|
541
541
|
return Math.max(0, n - (G.value?.right ?? 0));
|
|
542
542
|
}
|
|
543
|
-
|
|
543
|
+
Qe((e) => {
|
|
544
544
|
if (z.value.orientation !== "horizontal") return;
|
|
545
545
|
let t = Fn.value;
|
|
546
546
|
if (!t) return;
|
|
@@ -558,10 +558,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
558
558
|
}), e(() => {
|
|
559
559
|
r.disconnect(), a.disconnect();
|
|
560
560
|
});
|
|
561
|
-
}),
|
|
561
|
+
}), Ge(() => {
|
|
562
562
|
gr.value = 0, _r.value = 0;
|
|
563
563
|
});
|
|
564
|
-
let br =
|
|
564
|
+
let br = E(0), xr = E(0);
|
|
565
565
|
function Sr() {
|
|
566
566
|
let e = z.value.orientation === "vertical" ? Nn.value : Mn.value;
|
|
567
567
|
if (!e) {
|
|
@@ -582,10 +582,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
582
582
|
});
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
|
-
|
|
585
|
+
Ge(() => {
|
|
586
586
|
xr.value && cancelAnimationFrame(xr.value);
|
|
587
587
|
});
|
|
588
|
-
let wr =
|
|
588
|
+
let wr = g(() => {
|
|
589
589
|
let e = 0;
|
|
590
590
|
if (An.value) try {
|
|
591
591
|
e = An.value.getBBox().height;
|
|
@@ -594,29 +594,29 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
594
594
|
}
|
|
595
595
|
let t = z.value.style.chart.grid.x.timeLabels.show ? br.value : 0;
|
|
596
596
|
return e + t;
|
|
597
|
-
}), G =
|
|
597
|
+
}), G = g(() => {
|
|
598
598
|
Rn.value;
|
|
599
|
-
let { height: e, width: t } = H.value, { right: n } = H.value.paddingRatio, r = z.value.style.chart.bars.totalValues.show &&
|
|
599
|
+
let { height: e, width: t } = H.value, { right: n } = H.value.paddingRatio, r = z.value.style.chart.bars.totalValues.show && M.dataset && M.dataset.length > 1 ? z.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, a = 0, o = 0, s = 0, c = 0;
|
|
600
600
|
if (z.value.style.chart.grid.y.axisLabels.show) {
|
|
601
601
|
let e = hr();
|
|
602
602
|
a = e.left, o = e.right, s = e.scaleLabelsWidth, c = e.yAxisLabelWidth;
|
|
603
603
|
}
|
|
604
|
-
let l = z.value.style.chart.padding.top + r, u = t - t * n - _r.value - o, d = e - z.value.style.chart.padding.bottom - wr.value - r,
|
|
604
|
+
let l = z.value.style.chart.padding.top + r, u = t - t * n - _r.value - o, d = e - z.value.style.chart.padding.bottom - wr.value - r, ee = z.value.style.chart.padding.left + a, f = t - ee - t * n - _r.value - o, p = e - l - z.value.style.chart.padding.bottom - wr.value - r;
|
|
605
605
|
return {
|
|
606
606
|
chartHeight: e,
|
|
607
607
|
chartWidth: t,
|
|
608
608
|
top: l,
|
|
609
609
|
right: u,
|
|
610
610
|
bottom: d,
|
|
611
|
-
left:
|
|
612
|
-
width: Math.max(0,
|
|
613
|
-
height: Math.max(0,
|
|
611
|
+
left: ee,
|
|
612
|
+
width: Math.max(0, f),
|
|
613
|
+
height: Math.max(0, p),
|
|
614
614
|
offsetLeft: a,
|
|
615
615
|
offsetRightAxis: o,
|
|
616
616
|
scaleLabelsWidth: s,
|
|
617
617
|
yAxisLabelWidth: c
|
|
618
618
|
};
|
|
619
|
-
}), Tr =
|
|
619
|
+
}), Tr = g(() => {
|
|
620
620
|
let { left: e, top: t, width: n, height: r } = G.value, a = J.value.start, o = J.value.end, s = Math.max(1, o - a), c = Math.max(0, Math.min(s, (Y.value.start ?? a) - a)), l = Math.max(0, Math.min(s, (Y.value.end ?? o) - a)), u = Math.max(0, l - c), d = {
|
|
621
621
|
fill: z.value.style.chart.zoom.preview.fill,
|
|
622
622
|
stroke: z.value.style.chart.zoom.preview.stroke,
|
|
@@ -649,8 +649,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
649
649
|
...d
|
|
650
650
|
};
|
|
651
651
|
}
|
|
652
|
-
}), K =
|
|
653
|
-
let n = `stackbar_serie_${t}`, r =
|
|
652
|
+
}), K = g(() => Yn.value.map((e, t) => {
|
|
653
|
+
let n = `stackbar_serie_${t}`, r = ue(e.color) || ur.value[t] || d[t] || d[t % d.length];
|
|
654
654
|
return {
|
|
655
655
|
...e,
|
|
656
656
|
series: JSON.parse(JSON.stringify(e.series)).map((e) => z.value.style.chart.bars.distributed ? Math.abs(e) : e),
|
|
@@ -659,20 +659,20 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
659
659
|
id: n,
|
|
660
660
|
color: r
|
|
661
661
|
};
|
|
662
|
-
})), q =
|
|
662
|
+
})), q = g(() => {
|
|
663
663
|
let e = Math.max(...K.value.filter((e) => !I.value.includes(e.id)).map((e) => e.series.length));
|
|
664
664
|
return isFinite(e) ? e : Math.max(...K.value.map((e) => e.series.length));
|
|
665
665
|
});
|
|
666
666
|
function Er(e) {
|
|
667
667
|
Kn.value = e;
|
|
668
668
|
}
|
|
669
|
-
let J =
|
|
669
|
+
let J = E({
|
|
670
670
|
start: 0,
|
|
671
671
|
end: Math.max(...Yn.value.map((e) => e.series.length))
|
|
672
|
-
}), Y =
|
|
672
|
+
}), Y = E({
|
|
673
673
|
start: 0,
|
|
674
674
|
end: Math.max(...Yn.value.map((e) => e.series.length))
|
|
675
|
-
}), Dr =
|
|
675
|
+
}), Dr = g(() => z.value.style.chart.zoom.preview.enable && (Y.value.start !== J.value.start || Y.value.end !== J.value.end));
|
|
676
676
|
function Or(e, t) {
|
|
677
677
|
Y.value[e] = t;
|
|
678
678
|
}
|
|
@@ -680,11 +680,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
680
680
|
let e = q.value, t = Math.max(0, Math.min(J.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(J.value.end ?? e, e));
|
|
681
681
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value.start = t, J.value.end = n, Y.value.start = t, Y.value.end = n, vn.value && (vn.value.setStartValue(t), vn.value.setEndValue(n));
|
|
682
682
|
}
|
|
683
|
-
let Ar =
|
|
683
|
+
let Ar = E(null);
|
|
684
684
|
function jr() {
|
|
685
685
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
686
686
|
}
|
|
687
|
-
|
|
687
|
+
Ge(() => {
|
|
688
688
|
Ar.value && cancelAnimationFrame(Ar.value);
|
|
689
689
|
});
|
|
690
690
|
async function Mr({ force: e = !1 } = {}) {
|
|
@@ -692,25 +692,25 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
692
692
|
kr();
|
|
693
693
|
return;
|
|
694
694
|
}
|
|
695
|
-
Ri(), await
|
|
695
|
+
Ri(), await Ue(), Ar.value && cancelAnimationFrame(Ar.value), Ar.value = requestAnimationFrame(async () => {
|
|
696
696
|
await jr(), Ri();
|
|
697
697
|
});
|
|
698
698
|
}
|
|
699
|
-
let X =
|
|
699
|
+
let X = g(() => {
|
|
700
700
|
let e;
|
|
701
701
|
return e = z.value.orientation === "vertical" ? G.value.width / (J.value.end - J.value.start) : G.value.height / (J.value.end - J.value.start), e <= 0 ? 0 : e;
|
|
702
|
-
}), Nr =
|
|
702
|
+
}), Nr = g(() => n(K.value.filter((e) => !I.value.includes(e.id))).slice(J.value.start, J.value.end)), Pr = g(() => I.value.length === K.value.length), Fr = g(() => z.value.style.chart.zoom.minimap.show ? n(K.value.map((e) => ({
|
|
703
703
|
...e,
|
|
704
704
|
series: e.series.map((e) => e ?? 0)
|
|
705
|
-
})).filter((e) => Pr.value ? !0 : !I.value.includes(e.id))) : []), Ir =
|
|
705
|
+
})).filter((e) => Pr.value ? !0 : !I.value.includes(e.id))) : []), Ir = g(() => z.value.style.chart.zoom.minimap.show ? [{
|
|
706
706
|
name: "",
|
|
707
707
|
series: Fr.value,
|
|
708
708
|
color: "#000000",
|
|
709
709
|
isVisible: !0
|
|
710
|
-
}] : []), Lr =
|
|
710
|
+
}] : []), Lr = g(() => n(K.value.filter((e) => !I.value.includes(e.id)).map((e) => ({
|
|
711
711
|
...e,
|
|
712
712
|
series: e.series.map((t, n) => e.signedSeries[n] === -1 && t >= 0 ? -t : t)
|
|
713
|
-
}))).slice(J.value.start, J.value.end)), Rr =
|
|
713
|
+
}))).slice(J.value.start, J.value.end)), Rr = g(() => {
|
|
714
714
|
let e = K.value.filter((e) => !I.value.includes(e.id));
|
|
715
715
|
return {
|
|
716
716
|
positive: n(e.map((e) => ({
|
|
@@ -722,14 +722,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
722
722
|
series: e.series.slice(J.value.start, J.value.end).map((e) => e < 0 ? e : 0)
|
|
723
723
|
})))
|
|
724
724
|
};
|
|
725
|
-
}), Z =
|
|
725
|
+
}), Z = g(() => {
|
|
726
726
|
let e = z.value.style.chart.grid.scale.scaleMax !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMax : Math.max(...Rr.value.positive), t = Math.min(...Rr.value.negative), n = z.value.style.chart.grid.scale.scaleMin !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMin : [
|
|
727
727
|
-Infinity,
|
|
728
728
|
Infinity,
|
|
729
729
|
NaN,
|
|
730
730
|
void 0,
|
|
731
731
|
null
|
|
732
|
-
].includes(t) ? 0 : t, r = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
732
|
+
].includes(t) ? 0 : t, r = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? te(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks) : ne(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks);
|
|
733
733
|
return r.ticks.map((e) => ({
|
|
734
734
|
zero: G.value.bottom - G.value.height * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
|
|
735
735
|
y: G.value.bottom - G.value.height * ((e + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
|
|
@@ -739,11 +739,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
739
739
|
horizontal_y: G.value.bottom - 8,
|
|
740
740
|
value: e
|
|
741
741
|
}));
|
|
742
|
-
}), Q =
|
|
743
|
-
|
|
742
|
+
}), Q = E([]), zr = E([]), Br = 0;
|
|
743
|
+
Qe(() => {
|
|
744
744
|
let e = ++Br;
|
|
745
745
|
(async () => {
|
|
746
|
-
let t = await
|
|
746
|
+
let t = await he({
|
|
747
747
|
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
748
748
|
maxDatapoints: q.value,
|
|
749
749
|
formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
@@ -754,10 +754,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
754
754
|
})();
|
|
755
755
|
});
|
|
756
756
|
let Vr = 0;
|
|
757
|
-
|
|
757
|
+
Qe(() => {
|
|
758
758
|
let e = ++Vr;
|
|
759
759
|
(async () => {
|
|
760
|
-
let t = await
|
|
760
|
+
let t = await he({
|
|
761
761
|
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
762
762
|
maxDatapoints: q.value,
|
|
763
763
|
formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
@@ -767,31 +767,31 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
767
767
|
e === Vr && (zr.value = t);
|
|
768
768
|
})();
|
|
769
769
|
});
|
|
770
|
-
let Hr =
|
|
770
|
+
let Hr = g(() => {
|
|
771
771
|
let e = z.value.style.chart.grid.x.timeLabels.modulo;
|
|
772
772
|
return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
|
|
773
|
-
}), Ur =
|
|
773
|
+
}), Ur = g(() => {
|
|
774
774
|
let e = z.value.style.chart.grid.x.timeLabels, t = Q.value || [], n = zr.value || [], r = J.value.start ?? 0, a = L.value, o = q.value, s = t.map((e) => e?.text ?? ""), c = n.map((e) => e?.text ?? "");
|
|
775
|
-
return
|
|
775
|
+
return se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Hr.value || 1), s, c, r, a, o);
|
|
776
776
|
});
|
|
777
|
-
|
|
777
|
+
Qe(() => {
|
|
778
778
|
z.value.orientation, 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("|"), Z.value?.map((e) => e?.value ?? "").join("|"), H.value.width, H.value.height, Nn.value, Mn.value, An.value, Cr();
|
|
779
779
|
}, { flush: "post" });
|
|
780
|
-
let Wr =
|
|
780
|
+
let Wr = E({
|
|
781
781
|
months: [],
|
|
782
782
|
shortMonths: [],
|
|
783
783
|
days: [],
|
|
784
784
|
shortDays: []
|
|
785
785
|
}), Gr = 0;
|
|
786
|
-
|
|
786
|
+
Qe(() => {
|
|
787
787
|
let e = ++Gr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
788
788
|
(async () => {
|
|
789
|
-
let n = await
|
|
789
|
+
let n = await me(t.locale).catch(() => me("en"));
|
|
790
790
|
e === Gr && (Wr.value = n.data);
|
|
791
791
|
})();
|
|
792
792
|
});
|
|
793
|
-
let Kr =
|
|
794
|
-
let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t =
|
|
793
|
+
let Kr = g(() => {
|
|
794
|
+
let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = pe({
|
|
795
795
|
useUTC: e.useUTC,
|
|
796
796
|
locale: Wr.value,
|
|
797
797
|
januaryAsYear: e.januaryAsYear
|
|
@@ -800,13 +800,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
800
800
|
let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
801
801
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
802
802
|
};
|
|
803
|
-
}), qr =
|
|
803
|
+
}), qr = g(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
804
804
|
text: Kr.value(t, z.value.style.chart.zoom.timeFormat),
|
|
805
805
|
absoluteIndex: t
|
|
806
|
-
}))), Jr =
|
|
806
|
+
}))), Jr = g(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
807
807
|
text: Kr.value(t, z.value.style.chart.tooltip.timeFormat),
|
|
808
808
|
absoluteIndex: t
|
|
809
|
-
}))), $ =
|
|
809
|
+
}))), $ = g(() => {
|
|
810
810
|
if (!dn.value && !Jn.value) return [];
|
|
811
811
|
let e = Array(q.value).fill(0), t = Array(q.value).fill(0), n = Array(q.value).fill(0), r = Array(q.value).fill(0), a = Math.max(...Rr.value.positive) || 0, o = Math.min(...Rr.value.negative), s = [
|
|
812
812
|
-Infinity,
|
|
@@ -814,83 +814,83 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
814
814
|
NaN,
|
|
815
815
|
void 0,
|
|
816
816
|
null
|
|
817
|
-
].includes(o) ? 0 : o, { min: c, max: l } = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
817
|
+
].includes(o) ? 0 : o, { min: c, max: l } = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? te(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : 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) : ne(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : 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), u = l + (c >= 0 ? 0 : Math.abs(c)) || 1, d = G.value.height, ee = G.value.width, f = Z.value[0] ? Z.value[0].zero : G.value.bottom, p = Z.value[0] ? Z.value[0].horizontal_zero : G.value.left, m = Array(Fr.value.length).fill(0), re = Array(Fr.value.length).fill(0);
|
|
818
818
|
return K.value.filter((e) => !I.value.includes(e.id)).map((a) => {
|
|
819
|
-
let o = a.series.slice(), s = o.map((e, t) =>
|
|
819
|
+
let o = a.series.slice(), s = o.map((e, t) => m[t]), c = o.map((e, t) => re[t]);
|
|
820
820
|
o.forEach((e, t) => {
|
|
821
|
-
(Number(e) || 0) >= 0 ?
|
|
821
|
+
(Number(e) || 0) >= 0 ? m[t] += Number(e) || 0 : re[t] += Math.abs(Number(e) || 0);
|
|
822
822
|
});
|
|
823
|
-
let l = a.series.slice(J.value.start, J.value.end),
|
|
824
|
-
function
|
|
825
|
-
let t = 1e-9, n =
|
|
826
|
-
if (n &&
|
|
827
|
-
let n = Math.max(
|
|
823
|
+
let l = a.series.slice(J.value.start, J.value.end), te = a.signedSeries.slice(J.value.start, J.value.end), ne = l.map((e, t) => G.value.left + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), ie = (Fr.value || []).filter(Number.isFinite), ae = ie.length ? Math.max(...ie) : 0, oe = ie.length ? Math.min(...ie) : 0;
|
|
824
|
+
function se({ minimapH: e }) {
|
|
825
|
+
let t = 1e-9, n = ae > 0;
|
|
826
|
+
if (n && oe < 0) {
|
|
827
|
+
let n = Math.max(ae, Math.abs(oe)) || t;
|
|
828
828
|
return {
|
|
829
829
|
pxPerUnit: e / 2 / n,
|
|
830
830
|
zero: e / 2
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
833
|
return n ? {
|
|
834
|
-
pxPerUnit: e / Math.max(t,
|
|
834
|
+
pxPerUnit: e / Math.max(t, ae),
|
|
835
835
|
zero: e
|
|
836
836
|
} : {
|
|
837
|
-
pxPerUnit: e / Math.max(t, Math.abs(
|
|
837
|
+
pxPerUnit: e / Math.max(t, Math.abs(oe)),
|
|
838
838
|
zero: 0
|
|
839
839
|
};
|
|
840
840
|
}
|
|
841
|
-
let
|
|
841
|
+
let ce = ({ left: e, unitW: t }) => {
|
|
842
842
|
let n = t * (z.value.style.chart.bars.gapRatio / 4);
|
|
843
843
|
return o.map((r, a) => e + t * a + n);
|
|
844
|
-
},
|
|
844
|
+
}, le = l.map((e, t) => G.value.top + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), ue = l.map((t, r) => {
|
|
845
845
|
let a = z.value.style.chart.bars.distributed ? (t || 0) / Nr.value[r] : (t || 0) / u, o, s;
|
|
846
|
-
return t > 0 ? (s = d * a, o =
|
|
847
|
-
}),
|
|
846
|
+
return t > 0 ? (s = d * a, o = f - s - e[r], e[r] += s) : (s = d * a, o = f + n[r], n[r] += Math.abs(s)), o;
|
|
847
|
+
}), de = ({ minimapH: e }) => {
|
|
848
848
|
if (z.value.style.chart.bars.distributed) return o.map((t, n) => {
|
|
849
849
|
let r = Math.abs(Number(t) || 0), a = Math.abs(Fr.value?.[n] || 0) || 1e-9;
|
|
850
850
|
return e - (s[n] + r) / a * e;
|
|
851
851
|
});
|
|
852
|
-
let { pxPerUnit: t, zero: n } =
|
|
852
|
+
let { pxPerUnit: t, zero: n } = se({ minimapH: e });
|
|
853
853
|
return o.map((e, r) => {
|
|
854
854
|
let a = Number(e) || 0;
|
|
855
855
|
return a >= 0 ? n - (s[r] + a) * t : n + c[r] * t;
|
|
856
856
|
});
|
|
857
|
-
},
|
|
857
|
+
}, fe = l.map((e, n) => {
|
|
858
858
|
let a = z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[n] : (e || 0) / u, o, s;
|
|
859
|
-
return e > 0 ? (s =
|
|
860
|
-
}),
|
|
859
|
+
return e > 0 ? (s = ee * a, o = p + t[n], t[n] += s) : (s = ee * a, o = p - Math.abs(s) - r[n], r[n] += Math.abs(s)), o;
|
|
860
|
+
}), pe = l.map((e, t) => {
|
|
861
861
|
let n = z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[t] : (e || 0) / u;
|
|
862
862
|
return e > 0 ? d * n : d * Math.abs(n);
|
|
863
|
-
}),
|
|
863
|
+
}), me = ({ minimapH: e }) => {
|
|
864
864
|
if (z.value.style.chart.bars.distributed) return o.map((t, n) => Math.abs(Number(t) || 0) / (Math.abs(Fr.value?.[n] || 0) || 1e-9) * e);
|
|
865
|
-
let { pxPerUnit: t } =
|
|
865
|
+
let { pxPerUnit: t } = se({ minimapH: e });
|
|
866
866
|
return o.map((e) => Math.abs(Number(e) || 0) * t);
|
|
867
|
-
},
|
|
867
|
+
}, he = l.map((e, t) => {
|
|
868
868
|
let n = z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[t] : (e || 0) / u;
|
|
869
|
-
return e > 0 ?
|
|
870
|
-
}),
|
|
869
|
+
return e > 0 ? ee * n : ee * Math.abs(n);
|
|
870
|
+
}), ge = l.map((e) => Math.abs(e)).reduce((e, t) => e + t, 0);
|
|
871
871
|
return {
|
|
872
872
|
...a,
|
|
873
|
-
proportions: l.map((e, t) => z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[t] : (e || 0) /
|
|
873
|
+
proportions: l.map((e, t) => z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[t] : (e || 0) / ge),
|
|
874
874
|
series: l,
|
|
875
|
-
signedSeries:
|
|
876
|
-
x:
|
|
877
|
-
y:
|
|
878
|
-
height:
|
|
879
|
-
horizontal_width:
|
|
880
|
-
horizontal_y:
|
|
881
|
-
horizontal_x:
|
|
882
|
-
xMinimap:
|
|
883
|
-
yMinimap:
|
|
884
|
-
heightMinimap:
|
|
875
|
+
signedSeries: te,
|
|
876
|
+
x: ne,
|
|
877
|
+
y: ue,
|
|
878
|
+
height: pe,
|
|
879
|
+
horizontal_width: he,
|
|
880
|
+
horizontal_y: le,
|
|
881
|
+
horizontal_x: fe,
|
|
882
|
+
xMinimap: ce,
|
|
883
|
+
yMinimap: de,
|
|
884
|
+
heightMinimap: me
|
|
885
885
|
};
|
|
886
886
|
});
|
|
887
|
-
}), Yr =
|
|
887
|
+
}), Yr = g(() => Lr.value.map((e, t) => ({
|
|
888
888
|
value: e,
|
|
889
889
|
sign: e >= 0 ? 1 : -1
|
|
890
890
|
})));
|
|
891
891
|
function Xr(e, t, n, a, o) {
|
|
892
892
|
let s = o === -1 && e >= 0 ? -e : e;
|
|
893
|
-
return
|
|
893
|
+
return m(z.value.style.chart.bars.dataLabels.formatter, s, r({
|
|
894
894
|
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
895
895
|
v: s,
|
|
896
896
|
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -902,7 +902,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
904
|
function Zr(e, t, n, a) {
|
|
905
|
-
return
|
|
905
|
+
return m(z.value.style.chart.bars.dataLabels.formatter, e, r({
|
|
906
906
|
v: isNaN(e) ? 0 : e,
|
|
907
907
|
s: "%",
|
|
908
908
|
r: z.value.style.chart.bars.dataLabels.rounding
|
|
@@ -923,7 +923,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
923
923
|
z.value.events.datapointClick && z.value.events.datapointClick({
|
|
924
924
|
datapoint: t,
|
|
925
925
|
seriesIndex: e + J.value.start
|
|
926
|
-
}),
|
|
926
|
+
}), N("selectDatapoint", {
|
|
927
927
|
datapoint: t,
|
|
928
928
|
period: Q.value[e]
|
|
929
929
|
});
|
|
@@ -949,9 +949,9 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
949
949
|
}
|
|
950
950
|
fn.value = !1, L.value = null, R.value === e && (R.value = null);
|
|
951
951
|
}
|
|
952
|
-
let ti =
|
|
953
|
-
|
|
954
|
-
if ([null, void 0].includes(
|
|
952
|
+
let ti = g(() => Array(q.value).fill(0).map((e, t) => $r(t)));
|
|
953
|
+
Ze(() => M.selectedXIndex, (e) => {
|
|
954
|
+
if ([null, void 0].includes(M.selectedXIndex)) {
|
|
955
955
|
L.value = null;
|
|
956
956
|
return;
|
|
957
957
|
}
|
|
@@ -980,8 +980,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
980
980
|
config: z.value,
|
|
981
981
|
series: $.value
|
|
982
982
|
};
|
|
983
|
-
let o = a.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0), s = a.map((e) =>
|
|
984
|
-
if (
|
|
983
|
+
let o = a.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0), s = a.map((e) => p(e.value)).reduce((e, t) => e + t, 0);
|
|
984
|
+
if (ae(n) && re(() => n({
|
|
985
985
|
seriesIndex: e,
|
|
986
986
|
datapoint: a,
|
|
987
987
|
series: $.value,
|
|
@@ -993,11 +993,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
993
993
|
config: z.value
|
|
994
994
|
});
|
|
995
995
|
else {
|
|
996
|
-
let { showValue: t, showTotal: n, totalTranslation: c, showPercentage: l, borderColor: u, roundingValue: d, roundingPercentage:
|
|
997
|
-
|
|
996
|
+
let { showValue: t, showTotal: n, totalTranslation: c, showPercentage: l, borderColor: u, roundingValue: d, roundingPercentage: ee } = z.value.style.chart.tooltip, f = "", p = ni(e);
|
|
997
|
+
p && (f += `<div style="width:100%;text-align:center;border-bottom:1px solid ${u};padding-bottom:6px;margin-bottom:3px;">${p}</div>`), n && (f += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
998
998
|
<span>${c}:</span>
|
|
999
999
|
<span>
|
|
1000
|
-
${
|
|
1000
|
+
${m(z.value.style.chart.bars.dataLabels.formatter, s, r({
|
|
1001
1001
|
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1002
1002
|
v: s,
|
|
1003
1003
|
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1008,28 +1008,28 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1008
1008
|
} })}
|
|
1009
1009
|
</span>
|
|
1010
1010
|
</div>`);
|
|
1011
|
-
let
|
|
1011
|
+
let te = [t && l ? "(" : "", t && l ? ")" : ""];
|
|
1012
1012
|
a.reverse().forEach((e) => {
|
|
1013
|
-
|
|
1013
|
+
f += `
|
|
1014
1014
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1015
|
-
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color}"/>${
|
|
1016
|
-
${e.name}${t || l ? ":" : ""} ${t ?
|
|
1015
|
+
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color}"/>${un.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${F.value}_${e.absoluteIndex})"/>` : ""}</svg>
|
|
1016
|
+
${e.name}${t || l ? ":" : ""} ${t ? m(z.value.style.chart.bars.dataLabels.formatter, e.value, r({
|
|
1017
1017
|
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1018
1018
|
v: e.value,
|
|
1019
1019
|
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1020
1020
|
r: d
|
|
1021
|
-
}, { datapoint: e })) : ""} ${
|
|
1021
|
+
}, { datapoint: e })) : ""} ${te[0]}${l ? r({
|
|
1022
1022
|
v: isNaN(e.value / o) ? 0 : Math.abs(e.value) / o * 100,
|
|
1023
1023
|
s: "%",
|
|
1024
|
-
r:
|
|
1025
|
-
}) : ""}${
|
|
1024
|
+
r: ee
|
|
1025
|
+
}) : ""}${te[1]}
|
|
1026
1026
|
</div>
|
|
1027
1027
|
`;
|
|
1028
|
-
}), mn.value = `<div>${
|
|
1028
|
+
}), mn.value = `<div>${f}</div>`;
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
|
-
let ii =
|
|
1032
|
-
|
|
1031
|
+
let ii = g(() => H.value.width), ai = g(() => H.value.height);
|
|
1032
|
+
we({
|
|
1033
1033
|
timeLabelsEls: z.value.orientation === "vertical" ? Nn : Mn,
|
|
1034
1034
|
timeLabels: Q,
|
|
1035
1035
|
slicer: J,
|
|
@@ -1071,7 +1071,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1071
1071
|
function ui() {
|
|
1072
1072
|
return $.value;
|
|
1073
1073
|
}
|
|
1074
|
-
let di =
|
|
1074
|
+
let di = g(() => {
|
|
1075
1075
|
if ($.value.length === 0) return {
|
|
1076
1076
|
head: [],
|
|
1077
1077
|
body: [],
|
|
@@ -1103,7 +1103,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1103
1103
|
title: z.value.style.chart.title.text || "vue-ui-stackbar"
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
|
-
let pi =
|
|
1106
|
+
let pi = g(() => {
|
|
1107
1107
|
let e = [""].concat($.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 = J.value.end - J.value.start;
|
|
1108
1108
|
for (let e = 0; e < n; e += 1) {
|
|
1109
1109
|
let n = J.value.start + e, r = $.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
@@ -1132,7 +1132,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1132
1132
|
function mi() {
|
|
1133
1133
|
I.value.length ? I.value = [] : yi.value.forEach((e) => {
|
|
1134
1134
|
I.value.push(e.id);
|
|
1135
|
-
});
|
|
1135
|
+
}), N("selectLegend", $.value);
|
|
1136
1136
|
}
|
|
1137
1137
|
function hi(e) {
|
|
1138
1138
|
if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
|
|
@@ -1140,7 +1140,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1140
1140
|
if (I.value.length === K.value.length - 1) return;
|
|
1141
1141
|
I.value.push(e.id);
|
|
1142
1142
|
}
|
|
1143
|
-
|
|
1143
|
+
N("selectLegend", $.value);
|
|
1144
1144
|
}
|
|
1145
1145
|
function gi(e) {
|
|
1146
1146
|
return K.value.length ? K.value.find((t) => t.name === e) || (z.value.debug && console.warn(`VueUiStackbar - Series name not found "${e}"`), null) : (z.value.debug && console.warn("VueUiStackbar - There are no series to show."), null);
|
|
@@ -1153,7 +1153,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1153
1153
|
let t = gi(e);
|
|
1154
1154
|
t !== null && (I.value.includes(t.id) || hi({ id: t.id }));
|
|
1155
1155
|
}
|
|
1156
|
-
let yi =
|
|
1156
|
+
let yi = g(() => K.value.map((e, t) => ({
|
|
1157
1157
|
...e,
|
|
1158
1158
|
shape: "square"
|
|
1159
1159
|
})).map((e) => ({
|
|
@@ -1161,19 +1161,19 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1161
1161
|
opacity: I.value.includes(e.id) ? .5 : 1,
|
|
1162
1162
|
segregate: () => hi(e),
|
|
1163
1163
|
isSegregated: I.value.includes(e.id)
|
|
1164
|
-
}))), bi =
|
|
1164
|
+
}))), bi = g(() => ({
|
|
1165
1165
|
cy: "stackbar-legend",
|
|
1166
1166
|
backgroundColor: z.value.style.chart.legend.backgroundColor,
|
|
1167
1167
|
color: z.value.style.chart.legend.color,
|
|
1168
1168
|
fontSize: z.value.style.chart.legend.fontSize,
|
|
1169
1169
|
paddingBottom: 12,
|
|
1170
1170
|
fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
|
|
1171
|
-
})), xi =
|
|
1171
|
+
})), xi = E(!1);
|
|
1172
1172
|
function Si() {
|
|
1173
1173
|
xi.value = !xi.value;
|
|
1174
1174
|
}
|
|
1175
1175
|
function Ci(e, t) {
|
|
1176
|
-
|
|
1176
|
+
N("selectTimeLabel", {
|
|
1177
1177
|
datapoint: JSON.parse(JSON.stringify($.value)).map((e) => ({
|
|
1178
1178
|
name: e.name,
|
|
1179
1179
|
value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
|
|
@@ -1185,13 +1185,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1185
1185
|
label: e.text
|
|
1186
1186
|
});
|
|
1187
1187
|
}
|
|
1188
|
-
let wi =
|
|
1188
|
+
let wi = g(() => Math.max(...$.value.flatMap((e) => e.series)));
|
|
1189
1189
|
function Ti(e, t) {
|
|
1190
1190
|
return z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? ar.value ? t * 100 >= z.value.style.chart.bars.dataLabels.hideUnderPercentage : z.value.style.chart.bars.dataLabels.hideEmptyPercentages ? t > 0 : !0 : ar.value ? (ir.value && pr.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), e > wi.value * z.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : ir.value ? Math.abs(e) >= z.value.style.chart.bars.dataLabels.hideUnderValue : z.value.style.chart.bars.dataLabels.hideEmptyValues ? e !== 0 : !0;
|
|
1191
1191
|
}
|
|
1192
1192
|
async function Ei({ scale: e = 2 } = {}) {
|
|
1193
1193
|
if (!P.value) return;
|
|
1194
|
-
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: a, base64: o } = await
|
|
1194
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: a, base64: o } = await Te({
|
|
1195
1195
|
domElement: P.value,
|
|
1196
1196
|
base64: !0,
|
|
1197
1197
|
img: !0,
|
|
@@ -1206,10 +1206,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1206
1206
|
aspectRatio: r
|
|
1207
1207
|
};
|
|
1208
1208
|
}
|
|
1209
|
-
let Di =
|
|
1209
|
+
let Di = g(() => {
|
|
1210
1210
|
let e = z.value.table.useDialog && !z.value.table.show, t = V.value.showTable;
|
|
1211
1211
|
return {
|
|
1212
|
-
component: e ?
|
|
1212
|
+
component: e ? on : en,
|
|
1213
1213
|
title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1214
1214
|
props: e ? {
|
|
1215
1215
|
backgroundColor: z.value.table.th.backgroundColor,
|
|
@@ -1237,21 +1237,21 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1237
1237
|
}
|
|
1238
1238
|
};
|
|
1239
1239
|
});
|
|
1240
|
-
|
|
1240
|
+
Ze(() => V.value.showTable, (e) => {
|
|
1241
1241
|
z.value.table.show || (e && z.value.table.useDialog && En.value ? En.value.open() : "close" in En.value && En.value.close());
|
|
1242
1242
|
});
|
|
1243
1243
|
function Oi() {
|
|
1244
1244
|
V.value.showTable = !1, Dn.value && Dn.value.setTableIconState(!1);
|
|
1245
1245
|
}
|
|
1246
|
-
let ki =
|
|
1246
|
+
let ki = g(() => z.value.style.chart.backgroundColor), Ai = g(() => z.value.style.chart.legend), { exportSvg: ji, getSvg: Mi } = be({
|
|
1247
1247
|
svg: er,
|
|
1248
|
-
title:
|
|
1248
|
+
title: g(() => z.value.style.chart.title),
|
|
1249
1249
|
legend: Ai,
|
|
1250
1250
|
legendItems: yi,
|
|
1251
1251
|
backgroundColor: ki
|
|
1252
1252
|
});
|
|
1253
1253
|
async function Ni({ isCb: e }) {
|
|
1254
|
-
kn.value = !0, await
|
|
1254
|
+
kn.value = !0, await Ue();
|
|
1255
1255
|
try {
|
|
1256
1256
|
if (e) {
|
|
1257
1257
|
let { blob: e, url: t, text: n, dataUrl: r } = await Mi();
|
|
@@ -1281,7 +1281,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1281
1281
|
let t = q.value;
|
|
1282
1282
|
return e > t ? t : e < 0 || e < J.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : J.value.start + 1 : e;
|
|
1283
1283
|
}
|
|
1284
|
-
let Ii =
|
|
1284
|
+
let Ii = E(!1), Li = E(!1);
|
|
1285
1285
|
function Ri() {
|
|
1286
1286
|
if (!Ii.value) {
|
|
1287
1287
|
Ii.value = !0;
|
|
@@ -1297,7 +1297,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
|
-
let zi =
|
|
1300
|
+
let zi = E(!1);
|
|
1301
1301
|
function Bi(e) {
|
|
1302
1302
|
Ii.value || zi.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, kr());
|
|
1303
1303
|
}
|
|
@@ -1308,7 +1308,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1308
1308
|
}
|
|
1309
1309
|
function Hi({ seriesIndex: e, datapoint: t }) {
|
|
1310
1310
|
let n = J.value.start + e;
|
|
1311
|
-
|
|
1311
|
+
N("selectX", {
|
|
1312
1312
|
dataset: t,
|
|
1313
1313
|
index: n,
|
|
1314
1314
|
indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
|
|
@@ -1335,7 +1335,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1335
1335
|
return (a && Number.isFinite(r) ? r : t) + n;
|
|
1336
1336
|
}
|
|
1337
1337
|
async function Ki() {
|
|
1338
|
-
if (
|
|
1338
|
+
if (N("copyAlt", {
|
|
1339
1339
|
config: z.value,
|
|
1340
1340
|
dataset: $.value
|
|
1341
1341
|
}), !z.value.userOptions.callbacks.altCopy) {
|
|
@@ -1347,12 +1347,12 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1347
1347
|
dataset: $.value
|
|
1348
1348
|
}));
|
|
1349
1349
|
}
|
|
1350
|
-
let qi =
|
|
1350
|
+
let qi = E(!1);
|
|
1351
1351
|
function Ji() {
|
|
1352
1352
|
R.value = null, qi.value = !0;
|
|
1353
1353
|
}
|
|
1354
1354
|
function Yi() {
|
|
1355
|
-
R.value = null, fn.value = !1, L.value = null,
|
|
1355
|
+
R.value = null, fn.value = !1, L.value = null, N("selectX", {
|
|
1356
1356
|
seriesIndex: null,
|
|
1357
1357
|
datapoint: null
|
|
1358
1358
|
}), qi.value = !1;
|
|
@@ -1364,7 +1364,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1364
1364
|
let c = J.value.end - J.value.start;
|
|
1365
1365
|
if (c <= 0) return;
|
|
1366
1366
|
if (e.preventDefault(), e.stopPropagation(), s) {
|
|
1367
|
-
R.value = null, fn.value = !1, L.value = null,
|
|
1367
|
+
R.value = null, fn.value = !1, L.value = null, N("selectX", {
|
|
1368
1368
|
seriesIndex: null,
|
|
1369
1369
|
datapoint: null
|
|
1370
1370
|
});
|
|
@@ -1385,11 +1385,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1385
1385
|
let r = o(t, n, er.value);
|
|
1386
1386
|
r && (Bn.value = r);
|
|
1387
1387
|
}
|
|
1388
|
-
let Qi =
|
|
1388
|
+
let Qi = g(() => ({
|
|
1389
1389
|
headers: pi.value?.colNames ?? [],
|
|
1390
1390
|
rows: pi.value?.body ?? []
|
|
1391
1391
|
}));
|
|
1392
|
-
return
|
|
1392
|
+
return Oe({
|
|
1393
1393
|
getData: ui,
|
|
1394
1394
|
getImage: Ei,
|
|
1395
1395
|
generatePdf: cr,
|
|
@@ -1404,24 +1404,24 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1404
1404
|
toggleAnnotator: Si,
|
|
1405
1405
|
toggleFullscreen: oi,
|
|
1406
1406
|
copyAlt: Ki
|
|
1407
|
-
}), (n, a) => (
|
|
1407
|
+
}), (n, a) => (T(), y("div", {
|
|
1408
1408
|
id: `stackbar_${F.value}`,
|
|
1409
1409
|
ref_key: "stackbarChart",
|
|
1410
1410
|
ref: P,
|
|
1411
|
-
class:
|
|
1411
|
+
class: We({
|
|
1412
1412
|
"vue-data-ui-component": !0,
|
|
1413
1413
|
"vue-ui-stackbar": !0,
|
|
1414
1414
|
"vue-data-ui-wrapper-fullscreen": bn.value
|
|
1415
1415
|
}),
|
|
1416
|
-
style:
|
|
1416
|
+
style: w(`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%" : ""}`),
|
|
1417
1417
|
onMouseenter: tr,
|
|
1418
1418
|
onMouseleave: nr
|
|
1419
1419
|
}, [
|
|
1420
|
-
|
|
1420
|
+
b("div", {
|
|
1421
1421
|
id: `chart-instructions-${F.value}`,
|
|
1422
1422
|
class: "sr-only"
|
|
1423
|
-
}, [
|
|
1424
|
-
Qi.value?.rows?.length ? (
|
|
1423
|
+
}, [b("p", null, k(z.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
|
|
1424
|
+
Qi.value?.rows?.length ? (T(), _(Ne, {
|
|
1425
1425
|
key: 0,
|
|
1426
1426
|
uid: F.value,
|
|
1427
1427
|
head: Qi.value.headers,
|
|
@@ -1434,22 +1434,22 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1434
1434
|
"body",
|
|
1435
1435
|
"notice",
|
|
1436
1436
|
"caption"
|
|
1437
|
-
])) :
|
|
1438
|
-
z.value.userOptions.buttons.annotator ? (
|
|
1437
|
+
])) : v("", !0),
|
|
1438
|
+
z.value.userOptions.buttons.annotator ? (T(), _(A(nn), {
|
|
1439
1439
|
key: 1,
|
|
1440
|
-
svgRef:
|
|
1440
|
+
svgRef: A(er),
|
|
1441
1441
|
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1442
1442
|
color: z.value.style.chart.color,
|
|
1443
1443
|
active: xi.value,
|
|
1444
1444
|
isCursorPointer: B.value,
|
|
1445
1445
|
onClose: Si
|
|
1446
1446
|
}, {
|
|
1447
|
-
"annotator-action-close":
|
|
1448
|
-
"annotator-action-color":
|
|
1449
|
-
"annotator-action-draw":
|
|
1450
|
-
"annotator-action-undo":
|
|
1451
|
-
"annotator-action-redo":
|
|
1452
|
-
"annotator-action-delete":
|
|
1447
|
+
"annotator-action-close": j(() => [O(n.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1448
|
+
"annotator-action-color": j(({ color: e }) => [O(n.$slots, "annotator-action-color", C(S({ color: e })), void 0, !0)]),
|
|
1449
|
+
"annotator-action-draw": j(({ mode: e }) => [O(n.$slots, "annotator-action-draw", C(S({ mode: e })), void 0, !0)]),
|
|
1450
|
+
"annotator-action-undo": j(({ disabled: e }) => [O(n.$slots, "annotator-action-undo", C(S({ disabled: e })), void 0, !0)]),
|
|
1451
|
+
"annotator-action-redo": j(({ disabled: e }) => [O(n.$slots, "annotator-action-redo", C(S({ disabled: e })), void 0, !0)]),
|
|
1452
|
+
"annotator-action-delete": j(({ disabled: e }) => [O(n.$slots, "annotator-action-delete", C(S({ disabled: e })), void 0, !0)]),
|
|
1453
1453
|
_: 3
|
|
1454
1454
|
}, 8, [
|
|
1455
1455
|
"svgRef",
|
|
@@ -1457,14 +1457,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1457
1457
|
"color",
|
|
1458
1458
|
"active",
|
|
1459
1459
|
"isCursorPointer"
|
|
1460
|
-
])) :
|
|
1461
|
-
|
|
1462
|
-
z.value.style.chart.title.text ? (
|
|
1460
|
+
])) : v("", !0),
|
|
1461
|
+
O(n.$slots, "userConfig", {}, void 0, !0),
|
|
1462
|
+
z.value.style.chart.title.text ? (T(), y("div", {
|
|
1463
1463
|
key: 2,
|
|
1464
1464
|
ref_key: "chartTitle",
|
|
1465
1465
|
ref: gn,
|
|
1466
1466
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1467
|
-
}, [(
|
|
1467
|
+
}, [(T(), _(Ee, {
|
|
1468
1468
|
key: `title_${Sn.value}`,
|
|
1469
1469
|
config: {
|
|
1470
1470
|
title: {
|
|
@@ -1476,16 +1476,16 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1476
1476
|
...z.value.style.chart.title.subtitle
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1480
|
-
|
|
1481
|
-
z.value.userOptions.show && dn.value && (
|
|
1479
|
+
}, null, 8, ["config"]))], 512)) : v("", !0),
|
|
1480
|
+
b("div", { id: `legend-top-${F.value}` }, null, 8, nt),
|
|
1481
|
+
z.value.userOptions.show && dn.value && (A($n) || A(Zn)) ? (T(), _(A(rn), {
|
|
1482
1482
|
ref_key: "userOptionsRef",
|
|
1483
1483
|
ref: Dn,
|
|
1484
1484
|
key: `user_option_${hn.value}`,
|
|
1485
1485
|
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1486
1486
|
color: z.value.style.chart.color,
|
|
1487
|
-
isPrinting:
|
|
1488
|
-
isImaging:
|
|
1487
|
+
isPrinting: A(or),
|
|
1488
|
+
isImaging: A(sr),
|
|
1489
1489
|
uid: F.value,
|
|
1490
1490
|
hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
|
|
1491
1491
|
hasPdf: z.value.userOptions.buttons.pdf,
|
|
@@ -1508,7 +1508,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1508
1508
|
tableDialog: z.value.table.useDialog,
|
|
1509
1509
|
isCursorPointer: B.value,
|
|
1510
1510
|
onToggleFullscreen: oi,
|
|
1511
|
-
onGeneratePdf:
|
|
1511
|
+
onGeneratePdf: A(cr),
|
|
1512
1512
|
onGenerateCsv: fi,
|
|
1513
1513
|
onGenerateImage: Pi,
|
|
1514
1514
|
onGenerateSvg: Ni,
|
|
@@ -1517,11 +1517,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1517
1517
|
onToggleTooltip: li,
|
|
1518
1518
|
onToggleAnnotator: Si,
|
|
1519
1519
|
onCopyAlt: Ki,
|
|
1520
|
-
style:
|
|
1521
|
-
},
|
|
1520
|
+
style: w({ visibility: A($n) ? A(Zn) ? "visible" : "hidden" : "visible" })
|
|
1521
|
+
}, ze({ _: 2 }, [
|
|
1522
1522
|
n.$slots.menuIcon ? {
|
|
1523
1523
|
name: "menuIcon",
|
|
1524
|
-
fn:
|
|
1524
|
+
fn: j(({ isOpen: e, color: t }) => [O(n.$slots, "menuIcon", C(S({
|
|
1525
1525
|
isOpen: e,
|
|
1526
1526
|
color: t
|
|
1527
1527
|
})), void 0, !0)]),
|
|
@@ -1529,42 +1529,42 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1529
1529
|
} : void 0,
|
|
1530
1530
|
n.$slots.optionTooltip ? {
|
|
1531
1531
|
name: "optionTooltip",
|
|
1532
|
-
fn:
|
|
1532
|
+
fn: j(() => [O(n.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1533
1533
|
key: "1"
|
|
1534
1534
|
} : void 0,
|
|
1535
1535
|
n.$slots.optionPdf ? {
|
|
1536
1536
|
name: "optionPdf",
|
|
1537
|
-
fn:
|
|
1537
|
+
fn: j(() => [O(n.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1538
1538
|
key: "2"
|
|
1539
1539
|
} : void 0,
|
|
1540
1540
|
n.$slots.optionCsv ? {
|
|
1541
1541
|
name: "optionCsv",
|
|
1542
|
-
fn:
|
|
1542
|
+
fn: j(() => [O(n.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1543
1543
|
key: "3"
|
|
1544
1544
|
} : void 0,
|
|
1545
1545
|
n.$slots.optionImg ? {
|
|
1546
1546
|
name: "optionImg",
|
|
1547
|
-
fn:
|
|
1547
|
+
fn: j(() => [O(n.$slots, "optionImg", {}, void 0, !0)]),
|
|
1548
1548
|
key: "4"
|
|
1549
1549
|
} : void 0,
|
|
1550
1550
|
n.$slots.optionSvg ? {
|
|
1551
1551
|
name: "optionSvg",
|
|
1552
|
-
fn:
|
|
1552
|
+
fn: j(() => [O(n.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1553
1553
|
key: "5"
|
|
1554
1554
|
} : void 0,
|
|
1555
1555
|
n.$slots.optionTable ? {
|
|
1556
1556
|
name: "optionTable",
|
|
1557
|
-
fn:
|
|
1557
|
+
fn: j(() => [O(n.$slots, "optionTable", {}, void 0, !0)]),
|
|
1558
1558
|
key: "6"
|
|
1559
1559
|
} : void 0,
|
|
1560
1560
|
n.$slots.optionLabels ? {
|
|
1561
1561
|
name: "optionLabels",
|
|
1562
|
-
fn:
|
|
1562
|
+
fn: j(() => [O(n.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1563
1563
|
key: "7"
|
|
1564
1564
|
} : void 0,
|
|
1565
1565
|
n.$slots.optionFullscreen ? {
|
|
1566
1566
|
name: "optionFullscreen",
|
|
1567
|
-
fn:
|
|
1567
|
+
fn: j(({ toggleFullscreen: e, isFullscreen: t }) => [O(n.$slots, "optionFullscreen", C(S({
|
|
1568
1568
|
toggleFullscreen: e,
|
|
1569
1569
|
isFullscreen: t
|
|
1570
1570
|
})), void 0, !0)]),
|
|
@@ -1572,7 +1572,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1572
1572
|
} : void 0,
|
|
1573
1573
|
n.$slots.optionAnnotator ? {
|
|
1574
1574
|
name: "optionAnnotator",
|
|
1575
|
-
fn:
|
|
1575
|
+
fn: j(({ toggleAnnotator: e, isAnnotator: t }) => [O(n.$slots, "optionAnnotator", C(S({
|
|
1576
1576
|
toggleAnnotator: e,
|
|
1577
1577
|
isAnnotator: t
|
|
1578
1578
|
})), void 0, !0)]),
|
|
@@ -1580,63 +1580,63 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1580
1580
|
} : void 0,
|
|
1581
1581
|
n.$slots.optionAltCopy ? {
|
|
1582
1582
|
name: "optionAltCopy",
|
|
1583
|
-
fn:
|
|
1583
|
+
fn: j(({ altCopy: e }) => [O(n.$slots, "optionAltCopy", C(S({ altCopy: e })), void 0, !0)]),
|
|
1584
1584
|
key: "10"
|
|
1585
1585
|
} : void 0,
|
|
1586
1586
|
n.$slots["custom-menu-before"] ? {
|
|
1587
1587
|
name: "custom-menu-before",
|
|
1588
|
-
fn:
|
|
1588
|
+
fn: j(() => [O(n.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1589
1589
|
key: "11"
|
|
1590
1590
|
} : void 0,
|
|
1591
1591
|
n.$slots["custom-menu-after"] ? {
|
|
1592
1592
|
name: "custom-menu-after",
|
|
1593
|
-
fn:
|
|
1593
|
+
fn: j(() => [O(n.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1594
1594
|
key: "12"
|
|
1595
1595
|
} : void 0
|
|
1596
|
-
]), 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("."))) :
|
|
1597
|
-
|
|
1596
|
+
]), 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("."))) : v("", !0),
|
|
1597
|
+
b("div", rt, [(T(), y("svg", {
|
|
1598
1598
|
ref_key: "svgRef",
|
|
1599
1599
|
ref: er,
|
|
1600
|
-
xmlns:
|
|
1600
|
+
xmlns: A(ce),
|
|
1601
1601
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1602
1602
|
viewBox: `0 0 ${G.value.chartWidth <= 0 ? 10 : G.value.chartWidth} ${G.value.chartHeight <= 0 ? 10 : G.value.chartHeight}`,
|
|
1603
|
-
class:
|
|
1604
|
-
style:
|
|
1603
|
+
class: We({ "vue-data-ui-loading": A(Jn) }),
|
|
1604
|
+
style: w(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
|
|
1605
1605
|
tabindex: "0",
|
|
1606
1606
|
onFocus: Ji,
|
|
1607
1607
|
onBlur: Yi,
|
|
1608
1608
|
onKeydown: Xi
|
|
1609
1609
|
}, [
|
|
1610
|
-
|
|
1611
|
-
n.$slots["chart-background"] ? (
|
|
1610
|
+
Ve(A(an)),
|
|
1611
|
+
n.$slots["chart-background"] ? (T(), y("foreignObject", {
|
|
1612
1612
|
key: 0,
|
|
1613
1613
|
x: G.value.left,
|
|
1614
1614
|
y: G.value.top,
|
|
1615
1615
|
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1616
1616
|
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
1617
1617
|
style: { pointerEvents: "none" }
|
|
1618
|
-
}, [
|
|
1619
|
-
z.value.style.chart.bars.gradient.show ? (
|
|
1618
|
+
}, [O(n.$slots, "chart-background", {}, void 0, !0)], 8, at)) : v("", !0),
|
|
1619
|
+
z.value.style.chart.bars.gradient.show ? (T(), y("defs", ot, [(T(!0), y(h, null, D($.value, (e, t) => (T(), y("linearGradient", {
|
|
1620
1620
|
id: `gradient_${e.id}`,
|
|
1621
1621
|
x1: "0%",
|
|
1622
1622
|
y1: "0%",
|
|
1623
1623
|
x2: "0%",
|
|
1624
1624
|
y2: "100%"
|
|
1625
1625
|
}, [
|
|
1626
|
-
|
|
1626
|
+
b("stop", {
|
|
1627
1627
|
offset: "0%",
|
|
1628
1628
|
"stop-color": e.color
|
|
1629
|
-
}, null, 8, st),
|
|
1630
|
-
x("stop", {
|
|
1631
|
-
offset: "61.8%",
|
|
1632
|
-
"stop-color": j(ue)(e.color, z.value.style.chart.bars.gradient.intensity / 100)
|
|
1633
1629
|
}, null, 8, ct),
|
|
1634
|
-
|
|
1630
|
+
b("stop", {
|
|
1631
|
+
offset: "61.8%",
|
|
1632
|
+
"stop-color": A(de)(e.color, z.value.style.chart.bars.gradient.intensity / 100)
|
|
1633
|
+
}, null, 8, lt),
|
|
1634
|
+
b("stop", {
|
|
1635
1635
|
offset: "100%",
|
|
1636
1636
|
"stop-color": e.color
|
|
1637
|
-
}, null, 8,
|
|
1638
|
-
], 8,
|
|
1639
|
-
z.value.style.chart.grid.frame.show ? (
|
|
1637
|
+
}, null, 8, ut)
|
|
1638
|
+
], 8, st))), 256))])) : v("", !0),
|
|
1639
|
+
z.value.style.chart.grid.frame.show ? (T(), y("rect", {
|
|
1640
1640
|
key: 2,
|
|
1641
1641
|
style: {
|
|
1642
1642
|
pointerEvents: "none",
|
|
@@ -1653,8 +1653,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1653
1653
|
"stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
|
|
1654
1654
|
"stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
|
|
1655
1655
|
"stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
|
|
1656
|
-
}, null, 8,
|
|
1657
|
-
z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "vertical" ? (
|
|
1656
|
+
}, null, 8, dt)) : v("", !0),
|
|
1657
|
+
z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "vertical" ? (T(!0), y(h, { key: 3 }, D(Z.value, (e, t) => (T(), y("line", {
|
|
1658
1658
|
x1: G.value.left,
|
|
1659
1659
|
x2: G.value.right,
|
|
1660
1660
|
y1: e.y,
|
|
@@ -1663,8 +1663,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1663
1663
|
"stroke-width": z.value.style.chart.grid.x.linesThickness,
|
|
1664
1664
|
"stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1665
1665
|
"stroke-linecap": "round"
|
|
1666
|
-
}, null, 8,
|
|
1667
|
-
z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "horizontal" ? (
|
|
1666
|
+
}, null, 8, ft))), 256)) : v("", !0),
|
|
1667
|
+
z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "horizontal" ? (T(!0), y(h, { key: 4 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), y("line", {
|
|
1668
1668
|
x1: G.value.left,
|
|
1669
1669
|
x2: G.value.right,
|
|
1670
1670
|
y1: G.value.top + X.value * t,
|
|
@@ -1673,8 +1673,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1673
1673
|
"stroke-width": z.value.style.chart.grid.x.linesThickness,
|
|
1674
1674
|
"stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1675
1675
|
"stroke-linecap": "round"
|
|
1676
|
-
}, null, 8,
|
|
1677
|
-
z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "vertical" ? (
|
|
1676
|
+
}, null, 8, pt))), 256)) : v("", !0),
|
|
1677
|
+
z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "vertical" ? (T(!0), y(h, { key: 5 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), y("line", {
|
|
1678
1678
|
x1: G.value.left + X.value * t,
|
|
1679
1679
|
x2: G.value.left + X.value * t,
|
|
1680
1680
|
y1: G.value.top,
|
|
@@ -1683,8 +1683,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1683
1683
|
"stroke-width": z.value.style.chart.grid.y.linesThickness,
|
|
1684
1684
|
"stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1685
1685
|
"stroke-linecap": "round"
|
|
1686
|
-
}, null, 8,
|
|
1687
|
-
z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "horizontal" ? (
|
|
1686
|
+
}, null, 8, mt))), 256)) : v("", !0),
|
|
1687
|
+
z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "horizontal" ? (T(!0), y(h, { key: 6 }, D(Z.value, (e, t) => (T(), y("line", {
|
|
1688
1688
|
x1: e.horizontal_x,
|
|
1689
1689
|
x2: e.horizontal_x,
|
|
1690
1690
|
y1: G.value.top,
|
|
@@ -1693,13 +1693,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1693
1693
|
"stroke-width": z.value.style.chart.grid.y.linesThickness,
|
|
1694
1694
|
"stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1695
1695
|
"stroke-linecap": "round"
|
|
1696
|
-
}, null, 8,
|
|
1697
|
-
(
|
|
1696
|
+
}, null, 8, ht))), 256)) : v("", !0),
|
|
1697
|
+
(T(!0), y(h, null, D($.value, (e, t) => (T(), y("g", null, [n.$slots.pattern ? (T(), y("defs", gt, [O(n.$slots, "pattern", He({ ref_for: !0 }, {
|
|
1698
1698
|
seriesIndex: e.absoluteIndex,
|
|
1699
1699
|
patternId: `pattern_${F.value}_${e.absoluteIndex}`
|
|
1700
|
-
}), void 0, !0)])) :
|
|
1700
|
+
}), void 0, !0)])) : v("", !0), z.value.orientation === "vertical" ? (T(), y(h, { key: 1 }, [(T(!0), y(h, null, D(e.x, (t, n) => (T(), y("rect", {
|
|
1701
1701
|
x: t,
|
|
1702
|
-
y:
|
|
1702
|
+
y: A(p)(e.y[n]),
|
|
1703
1703
|
height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
|
|
1704
1704
|
rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
|
|
1705
1705
|
width: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
@@ -1708,13 +1708,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1708
1708
|
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1709
1709
|
"stroke-linecap": "round",
|
|
1710
1710
|
"stroke-linejoin": "round",
|
|
1711
|
-
class:
|
|
1711
|
+
class: We({
|
|
1712
1712
|
"vue-data-ui-bar-animated": z.value.useCssAnimation,
|
|
1713
1713
|
"vue-data-ui-bar-transition": xn.value
|
|
1714
1714
|
})
|
|
1715
|
-
}, null, 10,
|
|
1715
|
+
}, null, 10, _t))), 256)), n.$slots.pattern ? (T(), y("g", vt, [(T(!0), y(h, null, D(e.x, (t, n) => (T(), y("rect", {
|
|
1716
1716
|
x: t,
|
|
1717
|
-
y:
|
|
1717
|
+
y: A(p)(e.y[n]),
|
|
1718
1718
|
height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
|
|
1719
1719
|
rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
|
|
1720
1720
|
width: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
@@ -1723,14 +1723,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1723
1723
|
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1724
1724
|
"stroke-linecap": "round",
|
|
1725
1725
|
"stroke-linejoin": "round",
|
|
1726
|
-
class:
|
|
1726
|
+
class: We({
|
|
1727
1727
|
"vue-data-ui-bar-animated": z.value.useCssAnimation,
|
|
1728
1728
|
"vue-data-ui-bar-transition": xn.value
|
|
1729
1729
|
})
|
|
1730
|
-
}, null, 10,
|
|
1731
|
-
x:
|
|
1730
|
+
}, null, 10, yt))), 256))])) : v("", !0)], 64)) : (T(), y(h, { key: 2 }, [(T(!0), y(h, null, D(e.horizontal_x, (t, n) => (T(), y("rect", {
|
|
1731
|
+
x: A(p)(t, G.value.left),
|
|
1732
1732
|
y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
|
|
1733
|
-
width:
|
|
1733
|
+
width: A(p)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
|
|
1734
1734
|
rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
|
|
1735
1735
|
height: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
1736
1736
|
fill: z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
@@ -1738,14 +1738,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1738
1738
|
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1739
1739
|
"stroke-linecap": "round",
|
|
1740
1740
|
"stroke-linejoin": "round",
|
|
1741
|
-
class:
|
|
1741
|
+
class: We({
|
|
1742
1742
|
"vue-data-ui-bar-animated": z.value.useCssAnimation,
|
|
1743
1743
|
"vue-data-ui-bar-transition": xn.value
|
|
1744
1744
|
})
|
|
1745
|
-
}, null, 10,
|
|
1746
|
-
x:
|
|
1745
|
+
}, null, 10, bt))), 256)), n.$slots.pattern ? (T(), y("g", xt, [(T(!0), y(h, null, D(e.horizontal_x, (t, n) => (T(), y("rect", {
|
|
1746
|
+
x: A(p)(t, G.value.left),
|
|
1747
1747
|
y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
|
|
1748
|
-
width:
|
|
1748
|
+
width: A(p)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
|
|
1749
1749
|
rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
|
|
1750
1750
|
height: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
1751
1751
|
fill: `url(#pattern_${F.value}_${e.absoluteIndex})`,
|
|
@@ -1753,12 +1753,12 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1753
1753
|
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1754
1754
|
"stroke-linecap": "round",
|
|
1755
1755
|
"stroke-linejoin": "round",
|
|
1756
|
-
class:
|
|
1756
|
+
class: We({
|
|
1757
1757
|
"vue-data-ui-bar-animated": z.value.useCssAnimation,
|
|
1758
1758
|
"vue-data-ui-bar-transition": xn.value
|
|
1759
1759
|
})
|
|
1760
|
-
}, null, 10,
|
|
1761
|
-
z.value.style.chart.grid.x.showAxis ? (
|
|
1760
|
+
}, null, 10, St))), 256))])) : v("", !0)], 64))]))), 256)),
|
|
1761
|
+
z.value.style.chart.grid.x.showAxis ? (T(), y("line", {
|
|
1762
1762
|
key: 7,
|
|
1763
1763
|
x1: G.value.left,
|
|
1764
1764
|
x2: G.value.right,
|
|
@@ -1768,8 +1768,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1768
1768
|
"stroke-width": z.value.style.chart.grid.x.axisThickness,
|
|
1769
1769
|
"stroke-linecap": "round",
|
|
1770
1770
|
"stroke-linejoin": "round"
|
|
1771
|
-
}, null, 8,
|
|
1772
|
-
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.bars.distributed ? (
|
|
1771
|
+
}, null, 8, Ct)) : v("", !0),
|
|
1772
|
+
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.bars.distributed ? (T(), y("line", {
|
|
1773
1773
|
key: 8,
|
|
1774
1774
|
x1: W.value ? G.value.right : G.value.left,
|
|
1775
1775
|
x2: W.value ? G.value.right : G.value.left,
|
|
@@ -1779,8 +1779,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1779
1779
|
"stroke-width": z.value.style.chart.grid.y.axisThickness,
|
|
1780
1780
|
"stroke-linecap": "round",
|
|
1781
1781
|
"stroke-linejoin": "round"
|
|
1782
|
-
}, null, 8,
|
|
1783
|
-
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (
|
|
1782
|
+
}, null, 8, wt)) : v("", !0),
|
|
1783
|
+
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (T(), y("text", {
|
|
1784
1784
|
key: 9,
|
|
1785
1785
|
ref_key: "xAxisLabel",
|
|
1786
1786
|
ref: An,
|
|
@@ -1790,8 +1790,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1790
1790
|
fill: z.value.style.chart.grid.x.axisName.color,
|
|
1791
1791
|
"font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1792
1792
|
"text-anchor": "middle"
|
|
1793
|
-
},
|
|
1794
|
-
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (
|
|
1793
|
+
}, k(z.value.style.chart.grid.x.axisName.text), 9, Tt)) : v("", !0),
|
|
1794
|
+
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (T(), y("text", {
|
|
1795
1795
|
key: 10,
|
|
1796
1796
|
ref_key: "yAxisLabel",
|
|
1797
1797
|
ref: jn,
|
|
@@ -1800,20 +1800,20 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1800
1800
|
fill: z.value.style.chart.grid.y.axisName.color,
|
|
1801
1801
|
"font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1802
1802
|
"text-anchor": "middle"
|
|
1803
|
-
},
|
|
1804
|
-
V.value.dataLabels.show && z.value.orientation === "vertical" ? (
|
|
1803
|
+
}, k(z.value.style.chart.grid.y.axisName.text), 9, Et)) : v("", !0),
|
|
1804
|
+
V.value.dataLabels.show && z.value.orientation === "vertical" ? (T(), y(h, { key: 11 }, [(T(!0), y(h, null, D($.value, (e, t) => (T(), y("g", null, [(T(!0), y(h, null, D(e.x, (n, r) => (T(), y(h, null, [Ti(e.series[r], e.proportions[r]) ? (T(), y("text", {
|
|
1805
1805
|
key: 0,
|
|
1806
1806
|
x: n + X.value * (1 - z.value.style.chart.bars.gapRatio / 2) / 2,
|
|
1807
1807
|
y: e.y[r] + e.height[r] / 2 + z.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1808
1808
|
"font-size": z.value.style.chart.bars.dataLabels.fontSize,
|
|
1809
|
-
fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
1809
|
+
fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(oe)(e.color) : z.value.style.chart.bars.dataLabels.color,
|
|
1810
1810
|
"font-weight": z.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1811
1811
|
"text-anchor": "middle"
|
|
1812
|
-
},
|
|
1812
|
+
}, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? Zr(e.proportions[r] * 100, e, t, r) : Xr(e.series[r], e, t, r, e.signedSeries[r])), 9, Dt)) : v("", !0)], 64))), 256))]))), 256)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), y("g", {
|
|
1813
1813
|
key: 0,
|
|
1814
1814
|
ref_key: "sumTop",
|
|
1815
1815
|
ref: Pn
|
|
1816
|
-
}, [(
|
|
1816
|
+
}, [(T(!0), y(h, null, D(Yr.value, (e, t) => (T(), y(h, null, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), y("text", {
|
|
1817
1817
|
key: 0,
|
|
1818
1818
|
x: G.value.left + X.value * t + X.value / 2,
|
|
1819
1819
|
y: Wi(t),
|
|
@@ -1821,20 +1821,20 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1821
1821
|
"font-size": z.value.style.chart.bars.totalValues.fontSize,
|
|
1822
1822
|
"font-weight": z.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1823
1823
|
fill: z.value.style.chart.bars.totalValues.color
|
|
1824
|
-
},
|
|
1825
|
-
V.value.dataLabels.show && z.value.orientation === "horizontal" ? (
|
|
1824
|
+
}, k(Xr(e.value, e, t, e.sign)), 9, Ot)) : v("", !0)], 64))), 256))], 512)) : v("", !0)], 64)) : v("", !0),
|
|
1825
|
+
V.value.dataLabels.show && z.value.orientation === "horizontal" ? (T(), y(h, { key: 12 }, [(T(!0), y(h, null, D($.value, (e, t) => (T(), y("g", null, [(T(!0), y(h, null, D(e.horizontal_x, (n, r) => (T(), y(h, null, [Ti(e.series[r], e.proportions[r]) ? (T(), y("text", {
|
|
1826
1826
|
key: 0,
|
|
1827
1827
|
x: n + (e.horizontal_width[r] < 0 ? 1e-4 : e.horizontal_width[r]) / 2,
|
|
1828
1828
|
y: e.horizontal_y[r] + X.value * (1 - z.value.style.chart.bars.gapRatio / 2) / 2 + z.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1829
1829
|
"font-size": z.value.style.chart.bars.dataLabels.fontSize,
|
|
1830
|
-
fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
1830
|
+
fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(oe)(e.color) : z.value.style.chart.bars.dataLabels.color,
|
|
1831
1831
|
"font-weight": z.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1832
1832
|
"text-anchor": "middle"
|
|
1833
|
-
},
|
|
1833
|
+
}, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? Zr(e.proportions[r] * 100, e, t, r) : Xr(e.series[r], e, t, r, e.signedSeries[r])), 9, kt)) : v("", !0)], 64))), 256))]))), 256)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), y("g", {
|
|
1834
1834
|
key: 0,
|
|
1835
1835
|
ref_key: "sumRight",
|
|
1836
1836
|
ref: Fn
|
|
1837
|
-
}, [(
|
|
1837
|
+
}, [(T(!0), y(h, null, D(Yr.value, (e, t) => (T(), y(h, null, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), y("text", {
|
|
1838
1838
|
key: 0,
|
|
1839
1839
|
x: Gi(t),
|
|
1840
1840
|
y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.bars.totalValues.fontSize / 3,
|
|
@@ -1842,36 +1842,36 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1842
1842
|
"font-size": z.value.style.chart.bars.totalValues.fontSize,
|
|
1843
1843
|
"font-weight": z.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1844
1844
|
fill: z.value.style.chart.bars.totalValues.color
|
|
1845
|
-
},
|
|
1846
|
-
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "vertical" ? (
|
|
1845
|
+
}, k(Xr(e.value, e, t, e.sign)), 9, At)) : v("", !0)], 64))), 256))], 512)) : v("", !0)], 64)) : v("", !0),
|
|
1846
|
+
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "vertical" ? (T(), y("g", {
|
|
1847
1847
|
key: 13,
|
|
1848
1848
|
ref_key: "scaleLabels",
|
|
1849
1849
|
ref: Mn
|
|
1850
|
-
}, [(
|
|
1850
|
+
}, [(T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("line", {
|
|
1851
1851
|
x1: W.value ? G.value.right : G.value.left,
|
|
1852
1852
|
x2: W.value ? G.value.right + 6 : G.value.left - 6,
|
|
1853
1853
|
y1: e.y,
|
|
1854
1854
|
y2: e.y,
|
|
1855
1855
|
stroke: z.value.style.chart.grid.x.axisColor,
|
|
1856
1856
|
"stroke-width": 1
|
|
1857
|
-
}, null, 8,
|
|
1857
|
+
}, null, 8, jt))), 256)), (T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("text", {
|
|
1858
1858
|
x: e.x,
|
|
1859
1859
|
y: e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1860
1860
|
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1861
1861
|
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1862
1862
|
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1863
1863
|
"text-anchor": W.value ? "start" : "end"
|
|
1864
|
-
}, A(
|
|
1864
|
+
}, k(A(m)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(r)({
|
|
1865
1865
|
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1866
1866
|
v: e.value,
|
|
1867
1867
|
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1868
1868
|
r: z.value.style.chart.grid.y.axisLabels.rounding
|
|
1869
|
-
}), { datapoint: e })), 9,
|
|
1870
|
-
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "horizontal" ? (
|
|
1869
|
+
}), { datapoint: e })), 9, Mt))), 256))], 512)) : v("", !0),
|
|
1870
|
+
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "horizontal" ? (T(), y("g", {
|
|
1871
1871
|
key: 14,
|
|
1872
1872
|
ref_key: "scaleLabels",
|
|
1873
1873
|
ref: Mn
|
|
1874
|
-
}, [(
|
|
1874
|
+
}, [(T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("line", {
|
|
1875
1875
|
x1: e.horizontal_x,
|
|
1876
1876
|
x2: e.horizontal_x,
|
|
1877
1877
|
y1: G.value.bottom,
|
|
@@ -1879,24 +1879,24 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1879
1879
|
stroke: z.value.style.chart.grid.x.axisColor,
|
|
1880
1880
|
"stroke-width": 1,
|
|
1881
1881
|
"stroke-linecap": "round"
|
|
1882
|
-
}, null, 8,
|
|
1882
|
+
}, null, 8, Nt))), 256)), (T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("text", {
|
|
1883
1883
|
class: "vue-data-ui-time-label",
|
|
1884
1884
|
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1885
1885
|
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1886
1886
|
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1887
1887
|
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1888
1888
|
transform: `translate(${e.horizontal_x}, ${G.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})`
|
|
1889
|
-
}, A(
|
|
1889
|
+
}, k(A(m)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(r)({
|
|
1890
1890
|
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1891
1891
|
v: e.value,
|
|
1892
1892
|
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1893
1893
|
r: z.value.style.chart.grid.y.axisLabels.rounding
|
|
1894
|
-
}), { datapoint: e })), 9,
|
|
1895
|
-
z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "vertical" ? (
|
|
1894
|
+
}), { datapoint: e })), 9, Pt))), 256))], 512)) : v("", !0),
|
|
1895
|
+
z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "vertical" ? (T(), y("g", {
|
|
1896
1896
|
key: 15,
|
|
1897
1897
|
ref_key: "timeLabelsEls",
|
|
1898
1898
|
ref: Nn
|
|
1899
|
-
}, [n.$slots["time-label"] ? (
|
|
1899
|
+
}, [n.$slots["time-label"] ? (T(), y("g", Ft, [(T(!0), y(h, null, D(Ur.value, (e, t) => (T(), y("g", null, [O(n.$slots, "time-label", He({ ref_for: !0 }, {
|
|
1900
1900
|
x: G.value.left + X.value * t + X.value / 2,
|
|
1901
1901
|
y: G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1902
1902
|
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1906,7 +1906,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1906
1906
|
content: e.text,
|
|
1907
1907
|
textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1908
1908
|
show: !0
|
|
1909
|
-
}), void 0, !0)]))), 256))])) : (
|
|
1909
|
+
}), void 0, !0)]))), 256))])) : (T(), y("g", It, [(T(!0), y(h, null, D(Ur.value, (e, n) => (T(), y("g", null, [String(e.text).includes("\n") ? (T(), y("text", {
|
|
1910
1910
|
key: n + "-multi",
|
|
1911
1911
|
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1912
1912
|
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1918,8 +1918,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1918
1918
|
),
|
|
1919
1919
|
rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
|
|
1920
1920
|
`,
|
|
1921
|
-
style:
|
|
1922
|
-
innerHTML:
|
|
1921
|
+
style: w({ cursor: B.value ? "pointer" : "default" }),
|
|
1922
|
+
innerHTML: A(t)({
|
|
1923
1923
|
content: String(e.text),
|
|
1924
1924
|
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1925
1925
|
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
@@ -1927,7 +1927,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1927
1927
|
y: 0
|
|
1928
1928
|
}),
|
|
1929
1929
|
onClick: () => Ci(e, n)
|
|
1930
|
-
}, null, 12,
|
|
1930
|
+
}, null, 12, Rt)) : (T(), y("text", {
|
|
1931
1931
|
class: "vue-data-ui-time-label",
|
|
1932
1932
|
key: n,
|
|
1933
1933
|
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1935,14 +1935,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1935
1935
|
"font-weight": z.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
1936
1936
|
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
1937
1937
|
transform: `translate(${G.value.left + X.value * n + X.value / 2}, ${G.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})`,
|
|
1938
|
-
style:
|
|
1938
|
+
style: w({ cursor: B.value ? "pointer" : "default" }),
|
|
1939
1939
|
onClick: () => Ci(e, n)
|
|
1940
|
-
},
|
|
1941
|
-
z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "horizontal" ? (
|
|
1940
|
+
}, k(e.text), 13, Lt))]))), 256))]))], 512)) : v("", !0),
|
|
1941
|
+
z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "horizontal" ? (T(), y("g", {
|
|
1942
1942
|
key: 16,
|
|
1943
1943
|
ref_key: "timeLabelsEls",
|
|
1944
1944
|
ref: Nn
|
|
1945
|
-
}, [n.$slots["time-label"] ? (
|
|
1945
|
+
}, [n.$slots["time-label"] ? (T(), y("g", zt, [(T(!0), y(h, null, D(Q.value, (e, t) => (T(), y("g", null, [O(n.$slots, "time-label", He({ ref_for: !0 }, {
|
|
1946
1946
|
x: G.value.left - 8,
|
|
1947
1947
|
y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1948
1948
|
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1952,7 +1952,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1952
1952
|
content: e.text,
|
|
1953
1953
|
textAnchor: "end",
|
|
1954
1954
|
show: !0
|
|
1955
|
-
}), void 0, !0)]))), 256))])) : (
|
|
1955
|
+
}), void 0, !0)]))), 256))])) : (T(), y("g", Bt, [(T(!0), y(h, null, D(Q.value, (e, t) => (T(), y("g", null, [String(e.text).includes("\n") ? (T(), y("text", {
|
|
1956
1956
|
key: 1,
|
|
1957
1957
|
"text-anchor": "end",
|
|
1958
1958
|
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1960,16 +1960,16 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1960
1960
|
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1961
1961
|
x: G.value.left - 8,
|
|
1962
1962
|
y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1963
|
-
style:
|
|
1963
|
+
style: w({ cursor: B.value ? "pointer" : "default" }),
|
|
1964
1964
|
onClick: () => Ci(e, t),
|
|
1965
|
-
innerHTML:
|
|
1965
|
+
innerHTML: A(ee)({
|
|
1966
1966
|
content: String(e.text),
|
|
1967
1967
|
fontSize: z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1968
1968
|
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1969
1969
|
x: G.value.left - 8,
|
|
1970
1970
|
y: 0
|
|
1971
1971
|
})
|
|
1972
|
-
}, null, 12,
|
|
1972
|
+
}, null, 12, Ht)) : (T(), y("text", {
|
|
1973
1973
|
key: 0,
|
|
1974
1974
|
"text-anchor": "end",
|
|
1975
1975
|
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1977,10 +1977,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1977
1977
|
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1978
1978
|
x: G.value.left - 8,
|
|
1979
1979
|
y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1980
|
-
style:
|
|
1980
|
+
style: w({ cursor: B.value ? "pointer" : "default" }),
|
|
1981
1981
|
onClick: () => Ci(e, t)
|
|
1982
|
-
},
|
|
1983
|
-
V.value.showTooltip && z.value.orientation === "vertical" ? (
|
|
1982
|
+
}, k(e.text), 13, Vt))]))), 256))]))], 512)) : v("", !0),
|
|
1983
|
+
V.value.showTooltip && z.value.orientation === "vertical" ? (T(!0), y(h, { key: 17 }, D(J.value.end - J.value.start, (e, t) => (T(), y("rect", {
|
|
1984
1984
|
x: G.value.left + t * X.value,
|
|
1985
1985
|
y: G.value.top,
|
|
1986
1986
|
width: X.value,
|
|
@@ -1989,9 +1989,9 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
1989
1989
|
onMouseenter: () => ri(t, "pointer"),
|
|
1990
1990
|
onMouseleave: () => ei(t),
|
|
1991
1991
|
fill: t === L.value || t === Kn.value ? z.value.style.chart.highlighter.color : "transparent",
|
|
1992
|
-
style:
|
|
1993
|
-
}, null, 44,
|
|
1994
|
-
V.value.showTooltip && z.value.orientation === "horizontal" ? (
|
|
1992
|
+
style: w({ opacity: z.value.style.chart.highlighter.opacity / 100 })
|
|
1993
|
+
}, null, 44, Ut))), 256)) : v("", !0),
|
|
1994
|
+
V.value.showTooltip && z.value.orientation === "horizontal" ? (T(!0), y(h, { key: 18 }, D(J.value.end - J.value.start, (e, t) => (T(), y("rect", {
|
|
1995
1995
|
x: G.value.left,
|
|
1996
1996
|
y: G.value.top + t * X.value,
|
|
1997
1997
|
width: G.value.width < 0 ? 0 : G.value.width,
|
|
@@ -2000,24 +2000,24 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
2000
2000
|
onMouseenter: () => ri(t, "pointer"),
|
|
2001
2001
|
onMouseleave: () => ei(t),
|
|
2002
2002
|
fill: t === L.value || t === Kn.value ? z.value.style.chart.highlighter.color : "transparent",
|
|
2003
|
-
style:
|
|
2004
|
-
}, null, 44,
|
|
2005
|
-
Dr.value ? (
|
|
2003
|
+
style: w({ opacity: z.value.style.chart.highlighter.opacity / 100 })
|
|
2004
|
+
}, null, 44, Wt))), 256)) : v("", !0),
|
|
2005
|
+
Dr.value ? (T(), y("rect", He({ key: 19 }, Tr.value, {
|
|
2006
2006
|
"data-start": J.value.start,
|
|
2007
2007
|
"data-end": J.value.end
|
|
2008
|
-
}), null, 16,
|
|
2009
|
-
|
|
2008
|
+
}), null, 16, Gt)) : v("", !0),
|
|
2009
|
+
O(n.$slots, "svg", { svg: {
|
|
2010
2010
|
drawingArea: G.value,
|
|
2011
2011
|
data: $.value,
|
|
2012
|
-
isPrintingImg:
|
|
2012
|
+
isPrintingImg: A(or) || A(sr) || On.value,
|
|
2013
2013
|
isPrintingSvg: kn.value
|
|
2014
2014
|
} }, void 0, !0)
|
|
2015
|
-
], 46,
|
|
2015
|
+
], 46, it)), n.$slots.hint ? (T(), y("div", Kt, [O(n.$slots, "hint", C(S({
|
|
2016
2016
|
hint: z.value.a11y.translations.keyboardNavigation,
|
|
2017
2017
|
isVisible: qi.value
|
|
2018
|
-
})), void 0, !0)])) :
|
|
2019
|
-
n.$slots.watermark ? (
|
|
2020
|
-
z.value.style.chart.zoom.show && dn.value && Li.value && q.value > 6 ? (
|
|
2018
|
+
})), void 0, !0)])) : v("", !0)]),
|
|
2019
|
+
n.$slots.watermark ? (T(), y("div", qt, [O(n.$slots, "watermark", C(S({ isPrinting: A(or) || A(sr) || On.value || kn.value })), void 0, !0)])) : v("", !0),
|
|
2020
|
+
z.value.style.chart.zoom.show && dn.value && Li.value && q.value > 6 ? (T(), _(je, {
|
|
2021
2021
|
key: 5,
|
|
2022
2022
|
ref_key: "chartSlicer",
|
|
2023
2023
|
ref: vn,
|
|
@@ -2078,11 +2078,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
2078
2078
|
onFutureEnd: a[1] ||= (e) => Or("end", e),
|
|
2079
2079
|
onFutureStart: a[2] ||= (e) => Or("start", e)
|
|
2080
2080
|
}, {
|
|
2081
|
-
"reset-action":
|
|
2082
|
-
slotMap:
|
|
2081
|
+
"reset-action": j(({ reset: e }) => [O(n.$slots, "reset-action", C(S({ reset: e })), void 0, !0)]),
|
|
2082
|
+
slotMap: j(({ width: e, height: t, unitW: n }) => [(T(!0), y(h, null, D($.value, (e) => (T(), y("g", { key: e.id }, [(T(!0), y(h, null, D(e.xMinimap({
|
|
2083
2083
|
left: 0,
|
|
2084
2084
|
unitW: n
|
|
2085
|
-
}), (r, a) => (
|
|
2085
|
+
}), (r, a) => (T(), y("rect", {
|
|
2086
2086
|
key: a,
|
|
2087
2087
|
x: a === 0 ? r - n * (z.value.style.chart.bars.gapRatio / 4) : r - n / 2,
|
|
2088
2088
|
y: Math.max(0, Math.min(t, e.yMinimap({ minimapH: t })[a])),
|
|
@@ -2094,11 +2094,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
2094
2094
|
rx: "0",
|
|
2095
2095
|
"stroke-linecap": "round",
|
|
2096
2096
|
"stroke-linejoin": "round",
|
|
2097
|
-
style:
|
|
2098
|
-
}, null, 12,
|
|
2097
|
+
style: w({ opacity: a >= Y.value.start && a <= Y.value.end ? 1 : .62 })
|
|
2098
|
+
}, null, 12, Jt))), 128))]))), 128))]),
|
|
2099
2099
|
_: 3
|
|
2100
|
-
}, 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.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) :
|
|
2101
|
-
|
|
2100
|
+
}, 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.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : v("", !0),
|
|
2101
|
+
Ve(A(Qt), {
|
|
2102
2102
|
teleportTo: z.value.style.chart.tooltip.teleportTo,
|
|
2103
2103
|
show: V.value.showTooltip && fn.value,
|
|
2104
2104
|
backgroundColor: z.value.style.chart.tooltip.backgroundColor,
|
|
@@ -2114,7 +2114,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
2114
2114
|
parent: P.value,
|
|
2115
2115
|
content: mn.value,
|
|
2116
2116
|
isFullscreen: bn.value,
|
|
2117
|
-
isCustom:
|
|
2117
|
+
isCustom: A(ae)(z.value.style.chart.tooltip.customFormat),
|
|
2118
2118
|
smooth: z.value.style.chart.tooltip.smooth,
|
|
2119
2119
|
backdropFilter: z.value.style.chart.tooltip.backdropFilter,
|
|
2120
2120
|
smoothForce: z.value.style.chart.tooltip.smoothForce,
|
|
@@ -2122,9 +2122,9 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
2122
2122
|
isA11yMode: Vn.value === "keyboard",
|
|
2123
2123
|
a11yPosition: Bn.value
|
|
2124
2124
|
}, {
|
|
2125
|
-
"tooltip-before":
|
|
2126
|
-
tooltip:
|
|
2127
|
-
"tooltip-after":
|
|
2125
|
+
"tooltip-before": j(() => [O(n.$slots, "tooltip-before", C(S({ ...pn.value })), void 0, !0)]),
|
|
2126
|
+
tooltip: j(() => [O(n.$slots, "tooltip", C(S({ ...pn.value })), void 0, !0)]),
|
|
2127
|
+
"tooltip-after": j(() => [O(n.$slots, "tooltip-after", C(S({ ...pn.value })), void 0, !0)]),
|
|
2128
2128
|
_: 3
|
|
2129
2129
|
}, 8, [
|
|
2130
2130
|
"teleportTo",
|
|
@@ -2150,26 +2150,26 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
2150
2150
|
"isA11yMode",
|
|
2151
2151
|
"a11yPosition"
|
|
2152
2152
|
]),
|
|
2153
|
-
|
|
2154
|
-
Tn.value && (z.value.style.chart.legend.show || n.$slots.legend) ? (
|
|
2153
|
+
b("div", { id: `legend-bottom-${F.value}` }, null, 8, Yt),
|
|
2154
|
+
Tn.value && (z.value.style.chart.legend.show || n.$slots.legend) ? (T(), _(Re, {
|
|
2155
2155
|
key: 6,
|
|
2156
2156
|
to: z.value.style.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
2157
|
-
}, [
|
|
2157
|
+
}, [b("div", {
|
|
2158
2158
|
ref_key: "chartLegend",
|
|
2159
2159
|
ref: _n
|
|
2160
|
-
}, [
|
|
2160
|
+
}, [O(n.$slots, "legend", { legend: yi.value }, () => [z.value.style.chart.legend.show ? (T(), _(Ie, {
|
|
2161
2161
|
key: 0,
|
|
2162
2162
|
legendSet: yi.value,
|
|
2163
2163
|
config: bi.value,
|
|
2164
2164
|
isCursorPointer: B.value,
|
|
2165
2165
|
onClickMarker: a[3] ||= ({ legend: e }) => e.segregate()
|
|
2166
|
-
},
|
|
2167
|
-
item:
|
|
2166
|
+
}, ze({
|
|
2167
|
+
item: j(({ legend: e }) => [A(Jn) ? v("", !0) : (T(), y("div", {
|
|
2168
2168
|
key: 0,
|
|
2169
2169
|
onClick: (t) => e.segregate(),
|
|
2170
|
-
style:
|
|
2171
|
-
},
|
|
2172
|
-
legendToggle:
|
|
2170
|
+
style: w(`opacity:${I.value.includes(e.id) ? .5 : 1}`)
|
|
2171
|
+
}, k(e.name), 13, Xt))]),
|
|
2172
|
+
legendToggle: j(() => [yi.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !A(Jn) ? (T(), _(Me, {
|
|
2173
2173
|
key: 0,
|
|
2174
2174
|
backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2175
2175
|
color: z.value.style.chart.legend.selectAllToggle.color,
|
|
@@ -2183,11 +2183,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
2183
2183
|
"fontSize",
|
|
2184
2184
|
"checked",
|
|
2185
2185
|
"isCursorPointer"
|
|
2186
|
-
])) :
|
|
2186
|
+
])) : v("", !0)]),
|
|
2187
2187
|
_: 2
|
|
2188
2188
|
}, [n.$slots.pattern ? {
|
|
2189
2189
|
name: "legend-pattern",
|
|
2190
|
-
fn:
|
|
2190
|
+
fn: j(({ legend: e, index: t }) => [Ve(De, {
|
|
2191
2191
|
shape: e.shape,
|
|
2192
2192
|
radius: 30,
|
|
2193
2193
|
stroke: "none",
|
|
@@ -2202,19 +2202,19 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
2202
2202
|
"legendSet",
|
|
2203
2203
|
"config",
|
|
2204
2204
|
"isCursorPointer"
|
|
2205
|
-
])) :
|
|
2206
|
-
n.$slots.source ? (
|
|
2205
|
+
])) : v("", !0)], !0)], 512)], 8, ["to"])) : v("", !0),
|
|
2206
|
+
n.$slots.source ? (T(), y("div", {
|
|
2207
2207
|
key: 7,
|
|
2208
2208
|
ref_key: "source",
|
|
2209
2209
|
ref: yn,
|
|
2210
2210
|
dir: "auto"
|
|
2211
|
-
}, [
|
|
2212
|
-
dn.value && z.value.userOptions.buttons.table ? (
|
|
2211
|
+
}, [O(n.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
|
|
2212
|
+
dn.value && z.value.userOptions.buttons.table ? (T(), _(qe(Di.value.component), He({ key: 8 }, Di.value.props, {
|
|
2213
2213
|
ref_key: "tableUnit",
|
|
2214
2214
|
ref: En,
|
|
2215
2215
|
onClose: Oi
|
|
2216
|
-
}),
|
|
2217
|
-
content:
|
|
2216
|
+
}), ze({
|
|
2217
|
+
content: j(() => [Ve(A(tn), {
|
|
2218
2218
|
colNames: pi.value.colNames,
|
|
2219
2219
|
head: pi.value.head,
|
|
2220
2220
|
body: pi.value.body,
|
|
@@ -2224,8 +2224,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
2224
2224
|
isCursorPointer: B.value,
|
|
2225
2225
|
onClose: Oi
|
|
2226
2226
|
}, {
|
|
2227
|
-
th:
|
|
2228
|
-
td:
|
|
2227
|
+
th: j(({ th: e }) => [b("div", { innerHTML: e }, null, 8, Zt)]),
|
|
2228
|
+
td: j(({ td: e }) => [Be(k(isNaN(Number(e)) ? e : A(r)({
|
|
2229
2229
|
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
2230
2230
|
v: e,
|
|
2231
2231
|
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -2244,24 +2244,24 @@ var Qe = /* @__PURE__ */ e({ default: () => Zt }), $e = ["id"], et = ["id"], tt
|
|
|
2244
2244
|
_: 2
|
|
2245
2245
|
}, [z.value.table.useDialog ? {
|
|
2246
2246
|
name: "title",
|
|
2247
|
-
fn:
|
|
2247
|
+
fn: j(() => [Be(k(Di.value.title), 1)]),
|
|
2248
2248
|
key: "0"
|
|
2249
2249
|
} : void 0, z.value.table.useDialog ? {
|
|
2250
2250
|
name: "actions",
|
|
2251
|
-
fn:
|
|
2251
|
+
fn: j(() => [b("button", {
|
|
2252
2252
|
tabindex: "0",
|
|
2253
2253
|
class: "vue-ui-user-options-button",
|
|
2254
2254
|
onClick: a[4] ||= (e) => fi(z.value.userOptions.callbacks.csv),
|
|
2255
|
-
style:
|
|
2256
|
-
}, [
|
|
2255
|
+
style: w({ cursor: B.value ? "pointer" : "default" })
|
|
2256
|
+
}, [Ve(A($t), {
|
|
2257
2257
|
name: "fileCsv",
|
|
2258
2258
|
stroke: Di.value.props.color
|
|
2259
2259
|
}, null, 8, ["stroke"])], 4)]),
|
|
2260
2260
|
key: "1"
|
|
2261
|
-
} : void 0]), 1040)) :
|
|
2262
|
-
|
|
2263
|
-
], 46,
|
|
2261
|
+
} : void 0]), 1040)) : v("", !0),
|
|
2262
|
+
O(n.$slots, "skeleton", {}, () => [A(Jn) ? (T(), _(ye, { key: 0 })) : v("", !0)], !0)
|
|
2263
|
+
], 46, et));
|
|
2264
2264
|
}
|
|
2265
|
-
}, [["__scopeId", "data-v-
|
|
2265
|
+
}, [["__scopeId", "data-v-46c5b91f"]]);
|
|
2266
2266
|
//#endregion
|
|
2267
|
-
export {
|
|
2267
|
+
export { $e as n, Qt as t };
|