vue-data-ui 3.25.4 → 3.25.5
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 +13 -13
- package/dist/{ColorPicker-ZJrR3Olp.js → ColorPicker-Bn3MY7eL.js} +101 -99
- package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-KXRhcsxM.js} +1 -1
- package/dist/{PackageVersion-5SWftabm.js → PackageVersion-M2Ws-VwJ.js} +1 -1
- package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-BgH3m_LP.js} +19 -3
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-DmsdiyeS.js → package-ta2JoIjx.js} +1 -1
- package/dist/{render-common-zoPh9a78.js → render-common-bvOuxfN3.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +70 -1
- package/dist/types/vue-ui-annotator.d.ts +58 -2
- package/dist/{useConfig-CyCVHo81.js → useConfig-C_mX5pOZ.js} +1329 -1313
- package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings-uXpBcVyo.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-BjdCpsRV.js} +69 -69
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-CH8SpxS2.js → vue-ui-3d-bar-C0aLR6lw.js} +6 -4
- package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-DRf3NQyH.js} +1 -1
- package/dist/{vue-ui-age-pyramid-B9MUVi75.js → vue-ui-age-pyramid-DUcB3lYs.js} +6 -4
- package/dist/vue-ui-annotator-DZ0O8Xa5.js +3325 -0
- package/dist/{vue-ui-bullet-n8KNnDwh.js → vue-ui-bullet-DIOCMF2H.js} +6 -4
- package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DoHnD1Xy.js} +6 -4
- package/dist/{vue-ui-candlestick-Bxlvqk49.js → vue-ui-candlestick-Cf8TYPl5.js} +6 -4
- package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-k1cBJ1i1.js} +2 -2
- package/dist/{vue-ui-chestnut-ByDKbkG9.js → vue-ui-chestnut-BMAuaeif.js} +7 -5
- package/dist/{vue-ui-chord-DQRBgVOx.js → vue-ui-chord-DCe2iPjk.js} +7 -5
- package/dist/{vue-ui-circle-pack-CBBc0HOe.js → vue-ui-circle-pack-Eb5hS_z3.js} +7 -5
- package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CQWLyEx0.js} +2 -2
- package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-BqlsutMj.js} +6 -4
- package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Be3MmkgS.js} +73 -71
- package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-BqdfbcKX.js} +2 -2
- package/dist/{vue-ui-donut-DfiocufT.js → vue-ui-donut-CuQVKuZa.js} +6 -4
- package/dist/{vue-ui-donut-evolution-BoqO8By2.js → vue-ui-donut-evolution-DckruxZ9.js} +6 -4
- package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-gzGZ42uH.js} +2 -2
- package/dist/{vue-ui-dumbbell-7M_oUQdi.js → vue-ui-dumbbell-BYU-hh2E.js} +6 -4
- package/dist/{vue-ui-flow-CoylrfnO.js → vue-ui-flow-DLRcNDLc.js} +7 -5
- package/dist/{vue-ui-funnel-DaBYHWIC.js → vue-ui-funnel-DjoqNN1U.js} +7 -5
- package/dist/{vue-ui-galaxy-BIebStQ3.js → vue-ui-galaxy-BhR4IOra.js} +6 -4
- package/dist/{vue-ui-gauge-CwdTmiRP.js → vue-ui-gauge-Cq161Kwp.js} +6 -4
- package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-Ca8kPYr-.js} +6 -4
- package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-wUqHJICb.js} +2 -2
- package/dist/{vue-ui-heatmap-DXYlGwqR.js → vue-ui-heatmap-Bl5ymvi9.js} +8 -6
- package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-D6Y9Xy2K.js} +6 -4
- package/dist/{vue-ui-history-plot-CgIELoD2.js → vue-ui-history-plot-CvVjsdCL.js} +6 -4
- package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-3on3-H3B.js} +8 -6
- package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-CUpRRIUf.js} +2 -2
- package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-DR2qUZOG.js} +1 -1
- package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-D8W-fERs.js} +1 -1
- package/dist/{vue-ui-molecule-DeHWkkhy.js → vue-ui-molecule-BExVLLgE.js} +2 -2
- package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-TW251icr.js} +6 -4
- package/dist/{vue-ui-nested-donuts-CeAV2xPk.js → vue-ui-nested-donuts-CWzJKr3S.js} +6 -4
- package/dist/{vue-ui-onion-B7oFulsQ.js → vue-ui-onion-VaYZQK5i.js} +6 -4
- package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-RM25bxtf.js} +6 -4
- package/dist/{vue-ui-quadrant-DrKnz37q.js → vue-ui-quadrant-Dmtwow7n.js} +6 -4
- package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-Cswm3_eI.js} +6 -4
- package/dist/{vue-ui-radar-Bzx69q8f.js → vue-ui-radar-C3GYthqu.js} +6 -4
- package/dist/{vue-ui-rating-CimC9FQ9.js → vue-ui-rating-CBdDXL80.js} +1 -1
- package/dist/{vue-ui-relation-circle-DIQYyDGb.js → vue-ui-relation-circle-BA0qy0kp.js} +9 -7
- package/dist/{vue-ui-ridgeline-CPEnM45x.js → vue-ui-ridgeline-C5skjBTe.js} +468 -459
- package/dist/{vue-ui-rings-qPL5Iwji.js → vue-ui-rings-BJ8yEQMw.js} +6 -4
- package/dist/{vue-ui-scatter-BB0ClTsU.js → vue-ui-scatter-DXg8ESgr.js} +6 -4
- package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-D_u8EWeW.js} +2 -2
- package/dist/{vue-ui-smiley-DzPkCMN-.js → vue-ui-smiley-DQOp87rr.js} +1 -1
- package/dist/{vue-ui-spark-trend-Ciq7-k_q.js → vue-ui-spark-trend-CjCufXof.js} +2 -2
- package/dist/{vue-ui-sparkbar-D1M7-naP.js → vue-ui-sparkbar-BniEM15a.js} +2 -2
- package/dist/{vue-ui-sparkgauge-rsqaeR_n.js → vue-ui-sparkgauge-BtyCrqTQ.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-C4WXt2Ni.js → vue-ui-sparkhistogram-DQdn3PW1.js} +2 -2
- package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-9qkNNZG6.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-DDOXdeV-.js → vue-ui-sparkstackbar-BXQlOdOk.js} +2 -2
- package/dist/{vue-ui-stackbar-C_hMnOLb.js → vue-ui-stackbar-CkjicNDv.js} +6 -4
- package/dist/{vue-ui-stackline-BHGi63lD.js → vue-ui-stackline-BB1IZta8.js} +6 -4
- package/dist/{vue-ui-strip-plot-Cygpn-l8.js → vue-ui-strip-plot-DGLGuH6e.js} +6 -4
- package/dist/{vue-ui-table-BQna1wL6.js → vue-ui-table-BXz_HY2g.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-XmDK1aHJ.js} +1 -1
- package/dist/{vue-ui-table-sparkline-BCuimtk6.js → vue-ui-table-sparkline-MTEw3imE.js} +2 -2
- package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-CLx3SPRv.js} +9 -7
- package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-BDWUNb6t.js} +2 -2
- package/dist/{vue-ui-tiremarks-BvjdZwgh.js → vue-ui-tiremarks-DoaypTC-.js} +6 -4
- package/dist/{vue-ui-treemap-C5OpqzSc.js → vue-ui-treemap-Bv7PgpiC.js} +7 -5
- package/dist/{vue-ui-waffle-B7T_Zzan.js → vue-ui-waffle-z2DhvSAx.js} +6 -4
- package/dist/{vue-ui-wheel-D1B0k7IW.js → vue-ui-wheel-DYLBJuFb.js} +9 -7
- package/dist/{vue-ui-word-cloud-C4pX6jop.js → vue-ui-word-cloud-CbpEhSdL.js} +6 -4
- package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-C2atz4Xm.js} +6 -4
- package/dist/{vue-ui-xy-Ck41KYqF.js → vue-ui-xy-B3DQ6t46.js} +7 -5
- package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-CpA0W6zM.js} +2 -2
- package/dist/{vue-ui-xy-canvas-B_8Mu19r.js → vue-ui-xy-canvas-CJefORWc.js} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, G as r, Gt as i, Lt as a, N as ee, P as
|
|
2
|
+
import { $ as t, D as n, G as r, Gt as i, Lt as a, N as ee, P as te, Pt as o, Q as ne, S as s, V as re, X as c, Yt as ie, Zt as ae, _t as oe, ht as se, i as ce, nt as le, q as ue, r as de, t as fe, w as pe } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ge } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as _e } from "./useConfig-
|
|
5
|
+
import { t as _e } from "./useConfig-C_mX5pOZ.js";
|
|
6
6
|
import { t as ve } from "./usePrinter-DISD7q5m.js";
|
|
7
7
|
import { n as ye, t as be } from "./BaseScanner-DZvpgOjM.js";
|
|
8
8
|
import { t as xe } from "./useNestedProp-Chvyfpl-.js";
|
|
@@ -21,22 +21,22 @@ import { t as Pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
|
21
21
|
import { t as Fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
22
22
|
import { t as Ie } from "./Legend-X4kF4PvW.js";
|
|
23
23
|
import { t as Le } from "./vue_ui_ridgeline-VM8_mx4J.js";
|
|
24
|
-
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Ve, nextTick as He, normalizeClass as Ue, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as We, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as C, toRefs as qe, unref as w, watch as
|
|
24
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Ve, nextTick as He, normalizeClass as Ue, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as We, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as C, toRefs as qe, unref as w, watch as Je, watchEffect as Ye, withCtx as T } from "vue";
|
|
25
25
|
//#region src/components/vue-ui-ridgeline.vue
|
|
26
|
-
var
|
|
26
|
+
var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e = { style: { position: "relative" } }, et = [
|
|
27
27
|
"xmlns",
|
|
28
28
|
"aria-describedby",
|
|
29
29
|
"viewBox"
|
|
30
|
-
],
|
|
30
|
+
], tt = { key: 0 }, nt = ["fill", "d"], rt = [
|
|
31
31
|
"stroke",
|
|
32
32
|
"stroke-width",
|
|
33
33
|
"d"
|
|
34
|
-
],
|
|
34
|
+
], it = ["fill", "d"], at = [
|
|
35
35
|
"stroke",
|
|
36
36
|
"stroke-dasharray",
|
|
37
37
|
"stroke-width",
|
|
38
38
|
"d"
|
|
39
|
-
],
|
|
39
|
+
], ot = [
|
|
40
40
|
"x1",
|
|
41
41
|
"y1",
|
|
42
42
|
"x2",
|
|
@@ -44,14 +44,14 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
44
44
|
"stroke",
|
|
45
45
|
"stroke-width",
|
|
46
46
|
"stroke-dasharray"
|
|
47
|
-
],
|
|
47
|
+
], st = [
|
|
48
48
|
"cx",
|
|
49
49
|
"cy",
|
|
50
50
|
"stroke",
|
|
51
51
|
"stroke-width",
|
|
52
52
|
"r",
|
|
53
53
|
"fill"
|
|
54
|
-
],
|
|
54
|
+
], ct = [
|
|
55
55
|
"x",
|
|
56
56
|
"y",
|
|
57
57
|
"font-size",
|
|
@@ -60,21 +60,21 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
60
60
|
"text-decoration",
|
|
61
61
|
"onMouseenter",
|
|
62
62
|
"onClick"
|
|
63
|
-
],
|
|
63
|
+
], lt = { key: 0 }, ut = [
|
|
64
64
|
"font-size",
|
|
65
65
|
"fill",
|
|
66
66
|
"stroke",
|
|
67
67
|
"font-weight",
|
|
68
68
|
"transform",
|
|
69
69
|
"text-anchor"
|
|
70
|
-
],
|
|
70
|
+
], dt = [
|
|
71
71
|
"font-size",
|
|
72
72
|
"fill",
|
|
73
73
|
"font-weight",
|
|
74
74
|
"transform",
|
|
75
75
|
"text-anchor",
|
|
76
76
|
"innerHTML"
|
|
77
|
-
],
|
|
77
|
+
], ft = [
|
|
78
78
|
"x",
|
|
79
79
|
"y",
|
|
80
80
|
"width",
|
|
@@ -82,7 +82,7 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
82
82
|
"onMouseenter",
|
|
83
83
|
"onMouseleave",
|
|
84
84
|
"onClick"
|
|
85
|
-
],
|
|
85
|
+
], pt = [
|
|
86
86
|
"x1",
|
|
87
87
|
"x2",
|
|
88
88
|
"y1",
|
|
@@ -90,20 +90,21 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
90
90
|
"stroke",
|
|
91
91
|
"stroke-width",
|
|
92
92
|
"stroke-dasharray"
|
|
93
|
-
],
|
|
93
|
+
], mt = [
|
|
94
94
|
"cx",
|
|
95
95
|
"cy",
|
|
96
96
|
"stroke",
|
|
97
97
|
"stroke-width",
|
|
98
98
|
"r",
|
|
99
99
|
"fill"
|
|
100
|
-
],
|
|
100
|
+
], ht = [
|
|
101
101
|
"x",
|
|
102
102
|
"y",
|
|
103
|
+
"stroke",
|
|
103
104
|
"text-anchor",
|
|
104
105
|
"font-size",
|
|
105
106
|
"fill"
|
|
106
|
-
],
|
|
107
|
+
], gt = {
|
|
107
108
|
key: 0,
|
|
108
109
|
style: {
|
|
109
110
|
position: "absolute",
|
|
@@ -113,10 +114,10 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
113
114
|
},
|
|
114
115
|
"data-dom-to-png-ignore": "",
|
|
115
116
|
"aria-hidden": "true"
|
|
116
|
-
},
|
|
117
|
+
}, _t = {
|
|
117
118
|
key: 5,
|
|
118
119
|
class: "vue-data-ui-watermark"
|
|
119
|
-
},
|
|
120
|
+
}, vt = ["onClick"], yt = /*#__PURE__*/ Oe({
|
|
120
121
|
__name: "vue-ui-ridgeline",
|
|
121
122
|
props: {
|
|
122
123
|
config: {
|
|
@@ -138,27 +139,27 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
138
139
|
"selectX",
|
|
139
140
|
"copyAlt"
|
|
140
141
|
],
|
|
141
|
-
setup(e, { expose: Oe, emit:
|
|
142
|
-
let
|
|
142
|
+
setup(e, { expose: Oe, emit: Xe }) {
|
|
143
|
+
let yt = h(() => import("./vue-ui-xy-B3DQ6t46.js").then((e) => e.n)), bt = h(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), xt = h(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), St = h(() => import("./DataTable-COIO9gi4.js")), Ct = h(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), wt = h(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Tt = h(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), Et = h(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_ridgeline: Dt } = _e(), { isThemeValid: Ot, warnInvalidTheme: kt } = Se(), E = e, D = u({
|
|
143
144
|
get() {
|
|
144
|
-
return Array.isArray(
|
|
145
|
+
return Array.isArray(z.value) && z.value.length > 0;
|
|
145
146
|
},
|
|
146
147
|
set(e) {
|
|
147
148
|
return e;
|
|
148
149
|
}
|
|
149
|
-
}),
|
|
150
|
-
function
|
|
150
|
+
}), O = Xe, k = b(null), At = b(null), jt = b(null), A = Ke(null), j = Ke(null), Mt = b(null), Nt = b(null), Pt = b(0), Ft = b(0), It = b(0), M = b(ue()), Lt = b(0), Rt = b(0), zt = b(512), N = b(null), P = b(null), Bt = b(null), Vt = b(0), Ht = b(null), F = b(null), Ut = b(null), I = b(null), Wt = b(!1);
|
|
151
|
+
function Gt() {
|
|
151
152
|
let e = xe({
|
|
152
|
-
userConfig:
|
|
153
|
-
defaultConfig:
|
|
153
|
+
userConfig: E.config,
|
|
154
|
+
defaultConfig: Dt
|
|
154
155
|
}), t = e.theme;
|
|
155
156
|
if (!t) return e;
|
|
156
|
-
if (!
|
|
157
|
+
if (!Ot.value(e)) return kt(e), e;
|
|
157
158
|
let n = xe({
|
|
158
|
-
userConfig: Le[t] ||
|
|
159
|
+
userConfig: Le[t] || E.config,
|
|
159
160
|
defaultConfig: e
|
|
160
161
|
}), r = xe({
|
|
161
|
-
userConfig:
|
|
162
|
+
userConfig: E.config,
|
|
162
163
|
defaultConfig: n
|
|
163
164
|
});
|
|
164
165
|
return {
|
|
@@ -166,10 +167,10 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
166
167
|
customPalette: r.customPalette.length ? r.customPalette : ie[t] || a
|
|
167
168
|
};
|
|
168
169
|
}
|
|
169
|
-
let
|
|
170
|
+
let L = b(Gt());
|
|
170
171
|
me({
|
|
171
|
-
config: () =>
|
|
172
|
-
dataset: () =>
|
|
172
|
+
config: () => L.value,
|
|
173
|
+
dataset: () => E.dataset,
|
|
173
174
|
component: "VueUiRidgeline",
|
|
174
175
|
rules: [
|
|
175
176
|
he.emptyArray,
|
|
@@ -203,7 +204,7 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
203
204
|
}
|
|
204
205
|
]
|
|
205
206
|
});
|
|
206
|
-
let
|
|
207
|
+
let R = u(() => L.value.userOptions.useCursorPointer), Kt = u(() => ae({
|
|
207
208
|
defaultConfig: {
|
|
208
209
|
userOptions: { show: !1 },
|
|
209
210
|
table: { show: !1 },
|
|
@@ -224,12 +225,12 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
224
225
|
zeroLine: { show: !1 }
|
|
225
226
|
} }
|
|
226
227
|
},
|
|
227
|
-
userConfig:
|
|
228
|
-
})), { loading:
|
|
229
|
-
...qe(
|
|
230
|
-
FINAL_CONFIG:
|
|
231
|
-
prepareConfig:
|
|
232
|
-
skeletonDataset:
|
|
228
|
+
userConfig: L.value.skeletonConfig ?? {}
|
|
229
|
+
})), { loading: qt, FINAL_DATASET: z, manualLoading: Jt } = ye({
|
|
230
|
+
...qe(E),
|
|
231
|
+
FINAL_CONFIG: L,
|
|
232
|
+
prepareConfig: Gt,
|
|
233
|
+
skeletonDataset: E.config?.skeletonDataset ?? [
|
|
233
234
|
{
|
|
234
235
|
name: "_",
|
|
235
236
|
datapoints: [{
|
|
@@ -460,18 +461,18 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
460
461
|
}
|
|
461
462
|
],
|
|
462
463
|
skeletonConfig: ae({
|
|
463
|
-
defaultConfig:
|
|
464
|
-
userConfig:
|
|
464
|
+
defaultConfig: L.value,
|
|
465
|
+
userConfig: Kt.value
|
|
465
466
|
})
|
|
466
|
-
}),
|
|
467
|
-
function
|
|
468
|
-
let e =
|
|
467
|
+
}), B = b(Math.min(L.value.style.chart.areas.height, L.value.style.chart.areas.rowHeight)), { userOptionsVisible: Yt, setUserOptionsVisibility: Xt, keepUserOptionState: Zt } = Pe({ config: L.value }), { svgRef: V } = Fe({ config: L.value.style.chart.title }), H = u(() => L.value.debug);
|
|
468
|
+
function Qt() {
|
|
469
|
+
let e = z.value || [];
|
|
469
470
|
if (!Array.isArray(e) || e.length === 0) {
|
|
470
471
|
le({
|
|
471
472
|
componentName: "VueUiRidgeline",
|
|
472
473
|
type: "dataset",
|
|
473
|
-
debug:
|
|
474
|
-
}),
|
|
474
|
+
debug: H.value
|
|
475
|
+
}), Jt.value = !0;
|
|
475
476
|
return;
|
|
476
477
|
}
|
|
477
478
|
if (e.forEach((e, t) => {
|
|
@@ -479,206 +480,206 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
479
480
|
datasetObject: e,
|
|
480
481
|
requiredAttributes: ["name", "datapoints"]
|
|
481
482
|
}).forEach((e) => {
|
|
482
|
-
|
|
483
|
+
D.value = !1, le({
|
|
483
484
|
componentName: "VueUiRidgeline",
|
|
484
485
|
type: "datasetSerieAttribute",
|
|
485
486
|
property: e,
|
|
486
487
|
index: t,
|
|
487
|
-
debug:
|
|
488
|
+
debug: H.value
|
|
488
489
|
});
|
|
489
490
|
}), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
|
|
490
491
|
se({
|
|
491
492
|
datasetObject: e,
|
|
492
493
|
requiredAttributes: ["name", "values"]
|
|
493
494
|
}).forEach((e) => {
|
|
494
|
-
|
|
495
|
+
D.value = !1, le({
|
|
495
496
|
componentName: "VueUiRidgeline",
|
|
496
497
|
type: "datasetSerieAttribute",
|
|
497
498
|
property: `datapoint.${e}`,
|
|
498
499
|
index: `${t}-${n}`,
|
|
499
|
-
debug:
|
|
500
|
+
debug: H.value
|
|
500
501
|
});
|
|
501
502
|
});
|
|
502
503
|
});
|
|
503
|
-
}),
|
|
504
|
+
}), Rt.value = e.length, B.value = Math.min(L.value.style.chart.areas.height, L.value.style.chart.areas.rowHeight), o(E.dataset) || (Jt.value = L.value.loading), L.value.responsive) {
|
|
504
505
|
let t = ke(() => {
|
|
505
506
|
let { width: t, height: n } = Ae({
|
|
506
|
-
chart:
|
|
507
|
-
title:
|
|
508
|
-
legend:
|
|
509
|
-
source:
|
|
510
|
-
noTitle:
|
|
511
|
-
padding:
|
|
507
|
+
chart: k.value,
|
|
508
|
+
title: L.value.style.chart.title.text ? At.value : null,
|
|
509
|
+
legend: L.value.style.chart.legend.show ? jt.value : null,
|
|
510
|
+
source: Mt.value,
|
|
511
|
+
noTitle: Nt.value,
|
|
512
|
+
padding: L.value.style.chart.padding
|
|
512
513
|
});
|
|
513
514
|
requestAnimationFrame(() => {
|
|
514
|
-
|
|
515
|
+
zt.value = t, B.value = e.length ? n / e.length : 0, Vt.value = n - 12;
|
|
515
516
|
});
|
|
516
517
|
});
|
|
517
|
-
|
|
518
|
+
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(t), j.value = k.value?.parentNode || null, j.value && A.value.observe(j.value);
|
|
518
519
|
}
|
|
519
520
|
}
|
|
520
521
|
We(() => {
|
|
521
|
-
|
|
522
|
+
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect());
|
|
522
523
|
});
|
|
523
|
-
let { isPrinting:
|
|
524
|
-
elementId: `vue-ui-ridgeline_${
|
|
525
|
-
fileName:
|
|
526
|
-
options:
|
|
527
|
-
}),
|
|
528
|
-
|
|
529
|
-
Array.isArray(e) && e.length && (
|
|
524
|
+
let { isPrinting: $t, isImaging: en, generatePdf: tn, generateImage: nn } = ve({
|
|
525
|
+
elementId: `vue-ui-ridgeline_${M.value}`,
|
|
526
|
+
fileName: L.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
527
|
+
options: L.value.userOptions.print
|
|
528
|
+
}), rn = u(() => L.value.userOptions.show && !L.value.style.chart.title.text), an = u(() => pe(L.value.customPalette)), U = b({ showTable: L.value.table.show });
|
|
529
|
+
Je(() => z.value, async (e) => {
|
|
530
|
+
Array.isArray(e) && e.length && (Yt.value = !L.value.userOptions.showOnChartHover, await He(), Qt(), Pt.value += 1, It.value += 1, U.value.showTable = L.value.table.show);
|
|
530
531
|
}, {
|
|
531
532
|
deep: !0,
|
|
532
533
|
immediate: !0
|
|
533
|
-
}),
|
|
534
|
-
Array.isArray(e) && e.length > 0 && (
|
|
535
|
-
}, { deep: !0 }),
|
|
536
|
-
e || (await He(),
|
|
537
|
-
}, { immediate: !0 }),
|
|
538
|
-
|
|
534
|
+
}), Je(() => E.dataset, (e) => {
|
|
535
|
+
Array.isArray(e) && e.length > 0 && (Jt.value = !1);
|
|
536
|
+
}, { deep: !0 }), Je(() => qt.value, async (e) => {
|
|
537
|
+
e || (await He(), Qt());
|
|
538
|
+
}, { immediate: !0 }), Je(() => E.config, () => {
|
|
539
|
+
L.value = Gt(z.value || null), Yt.value = !L.value.userOptions.showOnChartHover, B.value = Math.min(L.value.style.chart.areas.height, L.value.style.chart.areas.rowHeight), U.value.showTable = L.value.table.show, Pt.value += 1, It.value += 1;
|
|
539
540
|
}, { deep: !0 });
|
|
540
|
-
let
|
|
541
|
-
function
|
|
541
|
+
let on = u(() => L.value.style.chart.areas.height / L.value.style.chart.areas.rowHeight);
|
|
542
|
+
function sn() {
|
|
542
543
|
X.value.length ? X.value = [] : Z.value.forEach((e) => {
|
|
543
544
|
X.value.push(e.id);
|
|
544
|
-
}),
|
|
545
|
+
}), O("selectLegend", Y.value);
|
|
546
|
+
}
|
|
547
|
+
function cn(e) {
|
|
548
|
+
X.value.includes(e) ? X.value = X.value.filter((t) => t !== e) : X.value.push(e), O("selectLegend", Y.value);
|
|
545
549
|
}
|
|
546
550
|
function ln(e) {
|
|
547
|
-
|
|
551
|
+
return Z.value.length ? Z.value.find((t) => t.name === e) || (H.value && console.warn(`VueUiRidgeline - Series name not found "${e}"`), null) : (H.value && console.warn("VueUiRidgeline - There are no series to show."), null);
|
|
548
552
|
}
|
|
549
553
|
function un(e) {
|
|
550
|
-
|
|
554
|
+
let t = ln(e);
|
|
555
|
+
t !== null && X.value.includes(t.id) && cn(t.id);
|
|
551
556
|
}
|
|
552
557
|
function dn(e) {
|
|
553
|
-
let t =
|
|
554
|
-
t !== null && X.value.includes(t.id)
|
|
555
|
-
}
|
|
556
|
-
function fn(e) {
|
|
557
|
-
let t = un(e);
|
|
558
|
-
t !== null && (X.value.includes(t.id) || ln(t.id));
|
|
558
|
+
let t = ln(e);
|
|
559
|
+
t !== null && (X.value.includes(t.id) || cn(t.id));
|
|
559
560
|
}
|
|
560
|
-
let
|
|
561
|
+
let W = u(() => D.value ? (z.value || []).map((e) => ({
|
|
561
562
|
...e,
|
|
562
|
-
labelLen: Tn(e.name,
|
|
563
|
+
labelLen: Tn(e.name, L.value.style.chart.yAxis.labels.fontSize),
|
|
563
564
|
uid: ue(),
|
|
564
565
|
datapoints: e.datapoints.map((e, t) => {
|
|
565
|
-
let n = e.color ?
|
|
566
|
+
let n = e.color ? s(e.color) : an.value[t] || a[t] || a[t % a.length], r = i(e.name);
|
|
566
567
|
return {
|
|
567
568
|
...e,
|
|
568
569
|
color: n,
|
|
569
570
|
id: r
|
|
570
571
|
};
|
|
571
572
|
})
|
|
572
|
-
})) : []),
|
|
573
|
-
let e =
|
|
573
|
+
})) : []), fn = u(() => L.value.style.chart.padding.top + B.value * (z.value || []).length + B.value * on.value + L.value.style.chart.padding.bottom), G = u(() => {
|
|
574
|
+
let e = L.value.style.chart.padding;
|
|
574
575
|
return {
|
|
575
|
-
width:
|
|
576
|
-
height:
|
|
576
|
+
width: zt.value,
|
|
577
|
+
height: fn.value,
|
|
577
578
|
padding: e
|
|
578
579
|
};
|
|
579
|
-
}),
|
|
580
|
-
|
|
580
|
+
}), pn = u(() => G.value.width), mn = u(() => G.value.height), hn = b(0), gn = ke((e) => {
|
|
581
|
+
hn.value = e;
|
|
581
582
|
}, 100);
|
|
582
|
-
|
|
583
|
-
let t =
|
|
583
|
+
Ye((e) => {
|
|
584
|
+
let t = Ht.value;
|
|
584
585
|
if (!t) return;
|
|
585
586
|
let n = new ResizeObserver((e) => {
|
|
586
|
-
|
|
587
|
+
gn(e[0].contentRect.height);
|
|
587
588
|
});
|
|
588
589
|
n.observe(t), e(() => n.disconnect());
|
|
589
590
|
}), We(() => {
|
|
590
|
-
|
|
591
|
+
hn.value = 0;
|
|
591
592
|
});
|
|
592
|
-
let
|
|
593
|
-
fullHeight:
|
|
594
|
-
top:
|
|
595
|
-
left:
|
|
596
|
-
right:
|
|
597
|
-
bottom:
|
|
598
|
-
width:
|
|
599
|
-
})),
|
|
600
|
-
|
|
593
|
+
let K = u(() => ({
|
|
594
|
+
fullHeight: G.value.height + hn.value,
|
|
595
|
+
top: G.value.padding.top,
|
|
596
|
+
left: G.value.padding.left,
|
|
597
|
+
right: G.value.width - G.value.padding.right,
|
|
598
|
+
bottom: G.value.height - L.value.style.chart.padding.bottom,
|
|
599
|
+
width: G.value.width - (G.value.padding.left + G.value.padding.right)
|
|
600
|
+
})), _n = u(() => Math.max(...W.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), q = b([]), vn = 0;
|
|
601
|
+
Ye(() => {
|
|
601
602
|
let e = ++vn;
|
|
602
603
|
(async () => {
|
|
603
604
|
let t = await ge({
|
|
604
|
-
values:
|
|
605
|
-
maxDatapoints:
|
|
606
|
-
formatter:
|
|
605
|
+
values: L.value.style.chart.xAxis.labels.values,
|
|
606
|
+
maxDatapoints: _n.value,
|
|
607
|
+
formatter: L.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
607
608
|
start: 0,
|
|
608
|
-
end:
|
|
609
|
+
end: L.value.style.chart.xAxis.labels.values.length
|
|
609
610
|
});
|
|
610
611
|
e === vn && (q.value = t);
|
|
611
612
|
})();
|
|
612
613
|
});
|
|
613
614
|
let J = u(() => {
|
|
614
|
-
let e = Math.max(...
|
|
615
|
-
for (let e = 0; e <
|
|
615
|
+
let e = Math.max(...W.value.map((e) => e.labelLen)), t = G.value.padding.left + e + 16 + L.value.style.chart.yAxis.labels.offsetX, n = (K.value.width - t) / _n.value, r = [];
|
|
616
|
+
for (let e = 0; e < _n.value; e += 1) r.push({
|
|
616
617
|
selectorX: t + n * e,
|
|
617
618
|
x: t + n * e - n / 2,
|
|
618
|
-
y:
|
|
619
|
-
label:
|
|
619
|
+
y: K.value.top,
|
|
620
|
+
label: L.value.style.chart.xAxis.labels.values[e] ? q.value[e]?.text ?? "" : "",
|
|
620
621
|
index: e,
|
|
621
622
|
width: n,
|
|
622
|
-
height:
|
|
623
|
+
height: fn.value
|
|
623
624
|
});
|
|
624
625
|
return r;
|
|
625
626
|
});
|
|
626
627
|
function yn(e) {
|
|
627
|
-
return
|
|
628
|
+
return W.value.map((t) => t.datapoints.map((t) => ({
|
|
628
629
|
dp: t,
|
|
629
630
|
selected: t.values[e.index]
|
|
630
631
|
})));
|
|
631
632
|
}
|
|
632
633
|
function bn(e) {
|
|
633
|
-
|
|
634
|
+
N.value = e;
|
|
634
635
|
let t = yn(e);
|
|
635
|
-
|
|
636
|
+
L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
636
637
|
datapoint: t,
|
|
637
638
|
seriesIndex: e.index
|
|
638
639
|
});
|
|
639
640
|
}
|
|
640
641
|
function xn(e) {
|
|
641
|
-
|
|
642
|
+
N.value = null;
|
|
642
643
|
let t = yn(e);
|
|
643
|
-
|
|
644
|
+
L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
644
645
|
datapoint: t,
|
|
645
646
|
seriesIndex: e.index
|
|
646
647
|
});
|
|
647
648
|
}
|
|
648
649
|
function Sn(e) {
|
|
649
650
|
let t = yn(e);
|
|
650
|
-
|
|
651
|
+
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
651
652
|
datapoint: t,
|
|
652
653
|
seriesIndex: e.index
|
|
653
|
-
}),
|
|
654
|
+
}), O("selectX", t);
|
|
654
655
|
}
|
|
655
656
|
function Cn(e, t) {
|
|
656
657
|
return e.length * t / 2 + t;
|
|
657
658
|
}
|
|
658
659
|
function wn(e, t, n) {
|
|
659
|
-
return e + Cn(t, n) >
|
|
660
|
+
return e + Cn(t, n) > K.value.right;
|
|
660
661
|
}
|
|
661
662
|
function Tn(e, t, n = "sans-serif") {
|
|
662
663
|
let r = document.createElement("canvas").getContext("2d");
|
|
663
664
|
return r.font = `${typeof t == "number" ? `${t}px` : t} ${n}`, r.measureText(e).width;
|
|
664
665
|
}
|
|
665
666
|
let Y = u(() => {
|
|
666
|
-
|
|
667
|
-
let e = Math.max(...
|
|
668
|
-
function
|
|
669
|
-
return isNaN(e /
|
|
667
|
+
B.value;
|
|
668
|
+
let e = Math.max(...W.value.map((e) => e.labelLen)), t = Math.max(...W.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), n = Math.min(...W.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), r = G.value.padding.left + e + 16 + L.value.style.chart.yAxis.labels.offsetX, i = (K.value.width - r) / _n.value, a = Math.abs(Math.min(n, 0)), o = t + a;
|
|
669
|
+
function ne(e) {
|
|
670
|
+
return isNaN(e / o) ? 0 : e / o;
|
|
670
671
|
}
|
|
671
|
-
return
|
|
672
|
-
let n =
|
|
672
|
+
return W.value.map((e, t) => {
|
|
673
|
+
let n = B.value * on.value * (1 - ne(a)), o = K.value.top + B.value * t, s = K.value.top + o + n;
|
|
673
674
|
return {
|
|
674
675
|
...e,
|
|
675
676
|
label: {
|
|
676
|
-
x: r -
|
|
677
|
-
y: s
|
|
677
|
+
x: r - L.value.style.chart.yAxis.labels.fontSize,
|
|
678
|
+
y: (L.value.style.chart.yAxis.labels.centered ? s - n / 2 : s) + L.value.style.chart.yAxis.labels.offsetY
|
|
678
679
|
},
|
|
679
680
|
datapoints: e.datapoints.map((e) => {
|
|
680
|
-
let t = e.values.map((t,
|
|
681
|
-
let
|
|
681
|
+
let t = e.values.map((t, n) => {
|
|
682
|
+
let ee = isNaN(t) || [
|
|
682
683
|
void 0,
|
|
683
684
|
null,
|
|
684
685
|
"NaN",
|
|
@@ -687,18 +688,18 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
687
688
|
-Infinity
|
|
688
689
|
].includes(t) ? 0 : t || 0;
|
|
689
690
|
return {
|
|
690
|
-
x: r + i *
|
|
691
|
-
y:
|
|
691
|
+
x: r + i * n,
|
|
692
|
+
y: K.value.top + o + B.value * on.value * (1 - ne(ee + a)),
|
|
692
693
|
value: t,
|
|
693
694
|
isMaxPoint: t === Math.max(...e.values),
|
|
694
695
|
zero: s
|
|
695
696
|
};
|
|
696
|
-
}),
|
|
697
|
+
}), n = `${ee(t, s, !1, !1)}`, c = `M ${r},${s} ${re(t)} ${t.at(-1).x},${s}`, ie = `M ${r},${s} ${t.at(-1).x},${s}`, ae = `M ${te(t)}`, se = `M ${re(t)}`, ce = oe(L.value.style.chart.areas.smooth ? ae : se);
|
|
697
698
|
return {
|
|
698
699
|
...e,
|
|
699
700
|
uid: ue(),
|
|
700
701
|
plots: t,
|
|
701
|
-
smoothPath:
|
|
702
|
+
smoothPath: n,
|
|
702
703
|
straightPath: c,
|
|
703
704
|
zeroPath: ie,
|
|
704
705
|
pathLength: ce,
|
|
@@ -719,71 +720,71 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
719
720
|
name: e.name,
|
|
720
721
|
color: e.color,
|
|
721
722
|
shape: "circle",
|
|
722
|
-
segregate: () =>
|
|
723
|
+
segregate: () => cn(r),
|
|
723
724
|
isSegregated: X.value.includes(r),
|
|
724
725
|
opacity: X.value.includes(r) ? .5 : 1
|
|
725
726
|
});
|
|
726
727
|
});
|
|
727
728
|
}), Array.from(t.values());
|
|
728
729
|
}
|
|
729
|
-
let Z = u(() => En(
|
|
730
|
+
let Z = u(() => En(W.value)), Dn = u(() => ({
|
|
730
731
|
cy: "donut-div-legend",
|
|
731
|
-
backgroundColor:
|
|
732
|
-
color:
|
|
733
|
-
fontSize:
|
|
732
|
+
backgroundColor: L.value.style.chart.legend.backgroundColor,
|
|
733
|
+
color: L.value.style.chart.legend.color,
|
|
734
|
+
fontSize: L.value.style.chart.legend.fontSize,
|
|
734
735
|
paddingBottom: 12,
|
|
735
|
-
fontWeight:
|
|
736
|
+
fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
|
|
736
737
|
})), Q = b(!1);
|
|
737
738
|
function On(e) {
|
|
738
|
-
Q.value = e,
|
|
739
|
+
Q.value = e, Lt.value += 1;
|
|
739
740
|
}
|
|
740
741
|
let kn = b({}), An = b([]);
|
|
741
742
|
function jn(e) {
|
|
742
|
-
|
|
743
|
+
O("selectDatapoint", e), L.value.style.chart.dialog.show && (An.value = e.datapoints.map((e) => ({
|
|
743
744
|
name: e.name,
|
|
744
745
|
color: e.color,
|
|
745
746
|
type: "line",
|
|
746
747
|
useArea: !0,
|
|
747
|
-
smooth:
|
|
748
|
+
smooth: L.value.style.chart.areas.smooth,
|
|
748
749
|
series: e.values
|
|
749
|
-
})),
|
|
750
|
-
...
|
|
750
|
+
})), P.value = e, kn.value = ne({
|
|
751
|
+
...L.value.style.chart.dialog.xyChart,
|
|
751
752
|
responsive: !0,
|
|
752
753
|
chart: {
|
|
753
|
-
...
|
|
754
|
+
...L.value.style.chart.dialog.xyChart.chart,
|
|
754
755
|
grid: {
|
|
755
|
-
...
|
|
756
|
+
...L.value.style.chart.dialog.xyChart.chart.grid,
|
|
756
757
|
labels: {
|
|
757
|
-
...
|
|
758
|
+
...L.value.style.chart.dialog.xyChart.chart.grid.labels,
|
|
758
759
|
xAxisLabels: {
|
|
759
|
-
...
|
|
760
|
-
values:
|
|
760
|
+
...L.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
|
|
761
|
+
values: L.value.style.chart.xAxis.labels.values,
|
|
761
762
|
autoRotate: {
|
|
762
763
|
enable: !0,
|
|
763
|
-
angle:
|
|
764
|
+
angle: L.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
764
765
|
},
|
|
765
|
-
datetimeFormatter:
|
|
766
|
+
datetimeFormatter: L.value.style.chart.xAxis.labels.datetimeFormatter
|
|
766
767
|
}
|
|
767
768
|
}
|
|
768
769
|
},
|
|
769
770
|
tooltip: {
|
|
770
|
-
...
|
|
771
|
-
showTimeLabel:
|
|
771
|
+
...L.value.style.chart.dialog.xyChart.chart.tooltip,
|
|
772
|
+
showTimeLabel: L.value.style.chart.xAxis.labels.values.length > 0
|
|
772
773
|
},
|
|
773
774
|
userOptions: {
|
|
774
|
-
...
|
|
775
|
+
...L.value.style.chart.dialog.xyChart.chart.userOptions,
|
|
775
776
|
buttons: {
|
|
776
|
-
...
|
|
777
|
-
altCopy:
|
|
777
|
+
...L.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
|
|
778
|
+
altCopy: L.value.userOptions.buttons.altCopy
|
|
778
779
|
},
|
|
779
780
|
callbacks: {
|
|
780
|
-
...
|
|
781
|
+
...L.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
|
|
781
782
|
altCopy: () => {}
|
|
782
783
|
},
|
|
783
|
-
useCursorPointer:
|
|
784
|
+
useCursorPointer: L.value.userOptions.useCursorPointer
|
|
784
785
|
}
|
|
785
786
|
}
|
|
786
|
-
}),
|
|
787
|
+
}), Bt.value && Bt.value.open());
|
|
787
788
|
}
|
|
788
789
|
let Mn = b(null);
|
|
789
790
|
function Nn(e) {
|
|
@@ -797,7 +798,7 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
797
798
|
Fn.value = !Fn.value;
|
|
798
799
|
}
|
|
799
800
|
function Ln() {
|
|
800
|
-
|
|
801
|
+
U.value.showTable = !U.value.showTable;
|
|
801
802
|
}
|
|
802
803
|
let Rn = u(() => ({ body: Y.value.flatMap((e) => e.datapoints.flatMap((t) => ({
|
|
803
804
|
...t,
|
|
@@ -806,21 +807,21 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
806
807
|
name: e.rowName,
|
|
807
808
|
color: e.color
|
|
808
809
|
}, ...e.values]) })), $ = u(() => {
|
|
809
|
-
let e = [
|
|
810
|
+
let e = [L.value.table.columnNames.series, ...q.value.map((e) => e.text)], t = {
|
|
810
811
|
th: {
|
|
811
|
-
backgroundColor:
|
|
812
|
-
color:
|
|
813
|
-
outline:
|
|
812
|
+
backgroundColor: L.value.table.th.backgroundColor,
|
|
813
|
+
color: L.value.table.th.color,
|
|
814
|
+
outline: L.value.table.th.outline
|
|
814
815
|
},
|
|
815
816
|
td: {
|
|
816
|
-
backgroundColor:
|
|
817
|
-
color:
|
|
818
|
-
outline:
|
|
817
|
+
backgroundColor: L.value.table.td.backgroundColor,
|
|
818
|
+
color: L.value.table.td.color,
|
|
819
|
+
outline: L.value.table.td.outline
|
|
819
820
|
},
|
|
820
|
-
breakpoint:
|
|
821
|
+
breakpoint: L.value.table.responsiveBreakpoint
|
|
821
822
|
};
|
|
822
823
|
return {
|
|
823
|
-
colNames: [
|
|
824
|
+
colNames: [L.value.table.columnNames.series, ...q.value.map((e) => e.text)],
|
|
824
825
|
head: e,
|
|
825
826
|
body: Rn.value.body,
|
|
826
827
|
config: t
|
|
@@ -828,10 +829,10 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
828
829
|
});
|
|
829
830
|
function zn(e = null) {
|
|
830
831
|
He(() => {
|
|
831
|
-
let r = [[
|
|
832
|
+
let r = [[L.value.table.columnNames.series, ...q.map((e) => [e.text])], ...Rn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], i = [[L.value.style.chart.title.text], [L.value.style.chart.title.subtitle.text]].concat(r), a = n(i);
|
|
832
833
|
e ? e(a) : t({
|
|
833
834
|
csvContent: a,
|
|
834
|
-
title:
|
|
835
|
+
title: L.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
835
836
|
});
|
|
836
837
|
});
|
|
837
838
|
}
|
|
@@ -839,9 +840,9 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
839
840
|
return Y.value;
|
|
840
841
|
}
|
|
841
842
|
async function Vn({ scale: e = 2 } = {}) {
|
|
842
|
-
if (!
|
|
843
|
-
let { width: t, height: n } =
|
|
844
|
-
domElement:
|
|
843
|
+
if (!k.value) return;
|
|
844
|
+
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Te({
|
|
845
|
+
domElement: k.value,
|
|
845
846
|
base64: !0,
|
|
846
847
|
img: !0,
|
|
847
848
|
scale: e
|
|
@@ -849,7 +850,7 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
849
850
|
return {
|
|
850
851
|
imageUri: i,
|
|
851
852
|
base64: a,
|
|
852
|
-
title:
|
|
853
|
+
title: L.value.style.chart.title.text,
|
|
853
854
|
width: t,
|
|
854
855
|
height: n,
|
|
855
856
|
aspectRatio: r
|
|
@@ -857,13 +858,13 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
857
858
|
}
|
|
858
859
|
let Hn = u(() => ({
|
|
859
860
|
min: 0,
|
|
860
|
-
max:
|
|
861
|
+
max: _n.value
|
|
861
862
|
}));
|
|
862
863
|
we({
|
|
863
|
-
timeLabelsEls:
|
|
864
|
+
timeLabelsEls: Ht,
|
|
864
865
|
timeLabels: q,
|
|
865
866
|
slicer: Hn,
|
|
866
|
-
configRef:
|
|
867
|
+
configRef: L,
|
|
867
868
|
rotationPath: [
|
|
868
869
|
"style",
|
|
869
870
|
"chart",
|
|
@@ -880,86 +881,86 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
880
881
|
"enable"
|
|
881
882
|
],
|
|
882
883
|
isAutoSize: !1,
|
|
883
|
-
width:
|
|
884
|
-
height:
|
|
884
|
+
width: pn,
|
|
885
|
+
height: mn,
|
|
885
886
|
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
886
|
-
angle:
|
|
887
|
+
angle: L.value.style.chart.xAxis.labels.autoRotate.angle
|
|
887
888
|
});
|
|
888
889
|
let Un = u(() => {
|
|
889
|
-
let e =
|
|
890
|
+
let e = L.value.table.useDialog && !L.value.table.show, t = U.value.showTable;
|
|
890
891
|
return {
|
|
891
|
-
component: e ?
|
|
892
|
-
title: `${
|
|
892
|
+
component: e ? Et : xt,
|
|
893
|
+
title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
|
|
893
894
|
props: e ? {
|
|
894
|
-
backgroundColor:
|
|
895
|
-
color:
|
|
896
|
-
headerColor:
|
|
897
|
-
headerBg:
|
|
895
|
+
backgroundColor: L.value.table.th.backgroundColor,
|
|
896
|
+
color: L.value.table.th.color,
|
|
897
|
+
headerColor: L.value.table.th.color,
|
|
898
|
+
headerBg: L.value.table.th.backgroundColor,
|
|
898
899
|
isFullscreen: Q.value,
|
|
899
|
-
fullscreenParent:
|
|
900
|
+
fullscreenParent: k.value,
|
|
900
901
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
901
|
-
isCursorPointer:
|
|
902
|
+
isCursorPointer: R.value
|
|
902
903
|
} : {
|
|
903
904
|
hideDetails: !0,
|
|
904
905
|
config: {
|
|
905
906
|
open: t,
|
|
906
907
|
maxHeight: 1e4,
|
|
907
908
|
body: {
|
|
908
|
-
backgroundColor:
|
|
909
|
-
color:
|
|
909
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
910
|
+
color: L.value.style.chart.color
|
|
910
911
|
},
|
|
911
912
|
head: {
|
|
912
|
-
backgroundColor:
|
|
913
|
-
color:
|
|
913
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
914
|
+
color: L.value.style.chart.color
|
|
914
915
|
}
|
|
915
916
|
}
|
|
916
917
|
}
|
|
917
918
|
};
|
|
918
919
|
});
|
|
919
|
-
|
|
920
|
-
|
|
920
|
+
Je(() => U.value.showTable, (e) => {
|
|
921
|
+
L.value.table.show || (e && L.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
921
922
|
});
|
|
922
923
|
function Wn() {
|
|
923
|
-
|
|
924
|
+
U.value.showTable = !1, Ut.value && Ut.value.setTableIconState(!1);
|
|
924
925
|
}
|
|
925
|
-
let Gn = u(() =>
|
|
926
|
-
...
|
|
926
|
+
let Gn = u(() => L.value.style.chart.backgroundColor), Kn = u(() => ({
|
|
927
|
+
...L.value.style.chart.legend,
|
|
927
928
|
position: "bottom"
|
|
928
|
-
})), qn = u(() =>
|
|
929
|
-
svg:
|
|
929
|
+
})), qn = u(() => L.value.style.chart.title), { isCallbackImaging: Jn, isCallbackSvg: Yn, generateSvg: Xn, onGenerateImage: Zn } = Ce({
|
|
930
|
+
svg: V,
|
|
930
931
|
title: qn,
|
|
931
932
|
legend: Kn,
|
|
932
933
|
legendItems: Z,
|
|
933
934
|
backgroundColor: Gn,
|
|
934
|
-
getSvgCallback: () =>
|
|
935
|
-
generateImage:
|
|
935
|
+
getSvgCallback: () => L.value.userOptions.callbacks.svg,
|
|
936
|
+
generateImage: nn
|
|
936
937
|
});
|
|
937
938
|
function Qn(e) {
|
|
938
939
|
$n("xy-zoom", e.dataset, e.config);
|
|
939
940
|
}
|
|
940
941
|
async function $n(e = "main-chart", t = null, n = null) {
|
|
941
|
-
if (
|
|
942
|
+
if (O("copyAlt", {
|
|
942
943
|
source: e,
|
|
943
|
-
config: e === "main-chart" ?
|
|
944
|
+
config: e === "main-chart" ? L.value : kn.value,
|
|
944
945
|
dataset: e === "main-chart" ? Y.value : An.value
|
|
945
|
-
}), !
|
|
946
|
+
}), !L.value.userOptions.callbacks.altCopy) {
|
|
946
947
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
947
948
|
return;
|
|
948
949
|
}
|
|
949
|
-
await Promise.resolve(
|
|
950
|
+
await Promise.resolve(L.value.userOptions.callbacks.altCopy({
|
|
950
951
|
source: e,
|
|
951
|
-
config: e === "main-chart" ?
|
|
952
|
+
config: e === "main-chart" ? L.value : kn.value,
|
|
952
953
|
dataset: e === "main-chart" ? Y.value : An.value
|
|
953
954
|
}));
|
|
954
955
|
}
|
|
955
956
|
function er() {
|
|
956
|
-
|
|
957
|
+
I.value = null, Wt.value = !0;
|
|
957
958
|
}
|
|
958
959
|
function tr() {
|
|
959
|
-
ar(),
|
|
960
|
+
ar(), Wt.value = !1;
|
|
960
961
|
}
|
|
961
962
|
function nr(e) {
|
|
962
|
-
if (!
|
|
963
|
+
if (!V.value || Fn.value || document.activeElement !== V.value || !Y.value.length) return;
|
|
963
964
|
let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", ee = e.key === "Escape";
|
|
964
965
|
if (!t && !n && !r && !i && !a && !ee) return;
|
|
965
966
|
if (e.preventDefault(), e.stopPropagation(), ee) {
|
|
@@ -967,24 +968,24 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
967
968
|
return;
|
|
968
969
|
}
|
|
969
970
|
if (a) {
|
|
970
|
-
if (
|
|
971
|
-
let e = Y.value[
|
|
971
|
+
if (I.value !== null) {
|
|
972
|
+
let e = Y.value[I.value];
|
|
972
973
|
e && jn(e);
|
|
973
974
|
return;
|
|
974
975
|
}
|
|
975
|
-
|
|
976
|
+
N.value && Sn(N.value);
|
|
976
977
|
return;
|
|
977
978
|
}
|
|
978
979
|
if (t || n) {
|
|
979
|
-
let e =
|
|
980
|
-
e = e === null ? n ? 0 : Y.value.length - 1 : rr(e + (n ? 1 : -1)),
|
|
980
|
+
let e = I.value;
|
|
981
|
+
e = e === null ? n ? 0 : Y.value.length - 1 : rr(e + (n ? 1 : -1)), I.value = e, Mn.value = e;
|
|
981
982
|
return;
|
|
982
983
|
}
|
|
983
984
|
if (!J.value.length) return;
|
|
984
|
-
let
|
|
985
|
-
|
|
986
|
-
let
|
|
987
|
-
|
|
985
|
+
let te = N.value?.index ?? null;
|
|
986
|
+
te = te === null ? i ? 0 : J.value.length - 1 : ir(te + (i ? 1 : -1));
|
|
987
|
+
let o = J.value[te];
|
|
988
|
+
o && bn(o);
|
|
988
989
|
}
|
|
989
990
|
function rr(e) {
|
|
990
991
|
let t = Y.value.length;
|
|
@@ -995,49 +996,49 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
995
996
|
return t ? (e % t + t) % t : null;
|
|
996
997
|
}
|
|
997
998
|
function ar() {
|
|
998
|
-
|
|
999
|
+
I.value = null, Mn.value = null, N.value ? xn(N.value) : N.value = null;
|
|
999
1000
|
}
|
|
1000
1001
|
let or = u(() => ({
|
|
1001
1002
|
head: $.value.head,
|
|
1002
1003
|
body: $.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
|
|
1003
|
-
caption:
|
|
1004
|
-
notice:
|
|
1004
|
+
caption: L.value.a11y.translations.tableCaption,
|
|
1005
|
+
notice: L.value.a11y.translations.tableAvailable
|
|
1005
1006
|
}));
|
|
1006
1007
|
return Oe({
|
|
1007
1008
|
getData: Bn,
|
|
1008
1009
|
getImage: Vn,
|
|
1009
|
-
generateImage:
|
|
1010
|
+
generateImage: nn,
|
|
1010
1011
|
generateSvg: Xn,
|
|
1011
|
-
generatePdf:
|
|
1012
|
+
generatePdf: tn,
|
|
1012
1013
|
generateCsv: zn,
|
|
1013
|
-
hideSeries:
|
|
1014
|
-
showSeries:
|
|
1014
|
+
hideSeries: dn,
|
|
1015
|
+
showSeries: un,
|
|
1015
1016
|
toggleAnnotator: In,
|
|
1016
1017
|
toggleTable: Ln,
|
|
1017
1018
|
toggleFullscreen: On,
|
|
1018
1019
|
copyAlt: $n
|
|
1019
1020
|
}), (e, t) => (y(), p("div", {
|
|
1020
1021
|
ref_key: "ridgelineChart",
|
|
1021
|
-
ref:
|
|
1022
|
+
ref: k,
|
|
1022
1023
|
class: Ue(`vue-data-ui-component vue-ui-ridgeline ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1023
|
-
id: `vue-ui-ridgeline_${
|
|
1024
|
+
id: `vue-ui-ridgeline_${M.value}`,
|
|
1024
1025
|
style: v({
|
|
1025
|
-
fontFamily:
|
|
1026
|
+
fontFamily: L.value.style.fontFamily,
|
|
1026
1027
|
width: "100%",
|
|
1027
1028
|
textAlign: "center",
|
|
1028
|
-
background:
|
|
1029
|
-
height:
|
|
1029
|
+
background: L.value.style.chart.backgroundColor,
|
|
1030
|
+
height: L.value.responsive ? "100%" : void 0
|
|
1030
1031
|
}),
|
|
1031
|
-
onMouseenter: t[3] ||= () => w(
|
|
1032
|
-
onMouseleave: t[4] ||= () => w(
|
|
1032
|
+
onMouseenter: t[3] ||= () => w(Xt)(!0),
|
|
1033
|
+
onMouseleave: t[4] ||= () => w(Xt)(!1)
|
|
1033
1034
|
}, [
|
|
1034
1035
|
m("div", {
|
|
1035
|
-
id: `chart-instructions-${
|
|
1036
|
+
id: `chart-instructions-${M.value}`,
|
|
1036
1037
|
class: "sr-only"
|
|
1037
|
-
}, [m("p", null, C(
|
|
1038
|
+
}, [m("p", null, C(L.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
|
|
1038
1039
|
or.value.body.length ? (y(), d(Ne, {
|
|
1039
1040
|
key: 0,
|
|
1040
|
-
uid:
|
|
1041
|
+
uid: M.value,
|
|
1041
1042
|
head: or.value.head,
|
|
1042
1043
|
body: or.value.body,
|
|
1043
1044
|
caption: or.value.caption,
|
|
@@ -1049,21 +1050,21 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1049
1050
|
"caption",
|
|
1050
1051
|
"notice"
|
|
1051
1052
|
])) : f("", !0),
|
|
1052
|
-
|
|
1053
|
+
L.value.userOptions.buttons.annotator && w(V) ? (y(), d(w(Ct), {
|
|
1053
1054
|
key: 1,
|
|
1054
|
-
color:
|
|
1055
|
-
backgroundColor:
|
|
1055
|
+
color: L.value.style.chart.color,
|
|
1056
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1056
1057
|
active: Fn.value,
|
|
1057
|
-
svgRef: w(
|
|
1058
|
-
isCursorPointer:
|
|
1058
|
+
svgRef: w(V),
|
|
1059
|
+
isCursorPointer: R.value,
|
|
1059
1060
|
onClose: In
|
|
1060
1061
|
}, {
|
|
1061
|
-
"annotator-action-close":
|
|
1062
|
-
"annotator-action-color":
|
|
1063
|
-
"annotator-action-draw":
|
|
1064
|
-
"annotator-action-undo":
|
|
1065
|
-
"annotator-action-redo":
|
|
1066
|
-
"annotator-action-delete":
|
|
1062
|
+
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1063
|
+
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(g({ color: t })), void 0, !0)]),
|
|
1064
|
+
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(g({ mode: t })), void 0, !0)]),
|
|
1065
|
+
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(g({ disabled: t })), void 0, !0)]),
|
|
1066
|
+
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(g({ disabled: t })), void 0, !0)]),
|
|
1067
|
+
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(g({ disabled: t })), void 0, !0)]),
|
|
1067
1068
|
_: 3
|
|
1068
1069
|
}, 8, [
|
|
1069
1070
|
"color",
|
|
@@ -1073,63 +1074,63 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1073
1074
|
"isCursorPointer"
|
|
1074
1075
|
])) : f("", !0),
|
|
1075
1076
|
S(e.$slots, "userConfig", {}, void 0, !0),
|
|
1076
|
-
|
|
1077
|
+
rn.value ? (y(), p("div", {
|
|
1077
1078
|
key: 2,
|
|
1078
1079
|
ref_key: "noTitle",
|
|
1079
|
-
ref:
|
|
1080
|
+
ref: Nt,
|
|
1080
1081
|
class: "vue-data-ui-no-title-space",
|
|
1081
1082
|
style: "height:36px; width: 100%;background:transparent"
|
|
1082
1083
|
}, null, 512)) : f("", !0),
|
|
1083
|
-
|
|
1084
|
+
L.value.style.chart.title.text ? (y(), p("div", {
|
|
1084
1085
|
key: 3,
|
|
1085
1086
|
ref_key: "chartTitle",
|
|
1086
|
-
ref:
|
|
1087
|
+
ref: At,
|
|
1087
1088
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1088
1089
|
}, [(y(), d(Ee, {
|
|
1089
|
-
key: `title_${
|
|
1090
|
+
key: `title_${Pt.value}`,
|
|
1090
1091
|
config: {
|
|
1091
1092
|
title: {
|
|
1092
1093
|
cy: "ridgeline-div-title",
|
|
1093
|
-
...
|
|
1094
|
+
...L.value.style.chart.title
|
|
1094
1095
|
},
|
|
1095
1096
|
subtitle: {
|
|
1096
1097
|
cy: "ridgeline-div-subtitle",
|
|
1097
|
-
...
|
|
1098
|
+
...L.value.style.chart.title.subtitle
|
|
1098
1099
|
}
|
|
1099
1100
|
}
|
|
1100
1101
|
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
1101
|
-
|
|
1102
|
+
L.value.userOptions.show && D.value && (w(Zt) || w(Yt)) ? (y(), d(w(wt), {
|
|
1102
1103
|
ref_key: "userOptionsRef",
|
|
1103
|
-
ref:
|
|
1104
|
-
key: `user_option_${
|
|
1105
|
-
backgroundColor:
|
|
1106
|
-
color:
|
|
1107
|
-
isPrinting: w(
|
|
1108
|
-
isImaging: w(
|
|
1109
|
-
uid:
|
|
1104
|
+
ref: Ut,
|
|
1105
|
+
key: `user_option_${Lt.value}`,
|
|
1106
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1107
|
+
color: L.value.style.chart.color,
|
|
1108
|
+
isPrinting: w($t),
|
|
1109
|
+
isImaging: w(en),
|
|
1110
|
+
uid: M.value,
|
|
1110
1111
|
hasTooltip: !1,
|
|
1111
|
-
callbacks:
|
|
1112
|
-
hasPdf:
|
|
1113
|
-
hasImg:
|
|
1114
|
-
hasSvg:
|
|
1115
|
-
hasXls:
|
|
1116
|
-
hasTable:
|
|
1112
|
+
callbacks: L.value.userOptions.callbacks,
|
|
1113
|
+
hasPdf: L.value.userOptions.buttons.pdf,
|
|
1114
|
+
hasImg: L.value.userOptions.buttons.img,
|
|
1115
|
+
hasSvg: L.value.userOptions.buttons.svg,
|
|
1116
|
+
hasXls: L.value.userOptions.buttons.csv,
|
|
1117
|
+
hasTable: L.value.userOptions.buttons.table,
|
|
1117
1118
|
hasLabel: !1,
|
|
1118
|
-
hasFullscreen:
|
|
1119
|
-
hasAltCopy:
|
|
1119
|
+
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
1120
|
+
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
1120
1121
|
isFullscreen: Q.value,
|
|
1121
|
-
printScale:
|
|
1122
|
-
chartElement:
|
|
1123
|
-
position:
|
|
1122
|
+
printScale: L.value.userOptions.print.scale,
|
|
1123
|
+
chartElement: k.value,
|
|
1124
|
+
position: L.value.userOptions.position,
|
|
1124
1125
|
isTooltip: !1,
|
|
1125
|
-
titles: { ...
|
|
1126
|
-
hasAnnotator:
|
|
1126
|
+
titles: { ...L.value.userOptions.buttonTitles },
|
|
1127
|
+
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1127
1128
|
isAnnotation: Fn.value,
|
|
1128
|
-
tableDialog:
|
|
1129
|
-
style: v({ visibility: w(
|
|
1130
|
-
isCursorPointer:
|
|
1129
|
+
tableDialog: L.value.table.useDialog,
|
|
1130
|
+
style: v({ visibility: w(Zt) ? w(Yt) ? "visible" : "hidden" : "visible" }),
|
|
1131
|
+
isCursorPointer: R.value,
|
|
1131
1132
|
onToggleFullscreen: On,
|
|
1132
|
-
onGeneratePdf: w(
|
|
1133
|
+
onGeneratePdf: w(tn),
|
|
1133
1134
|
onGenerateCsv: zn,
|
|
1134
1135
|
onGenerateImage: w(Zn),
|
|
1135
1136
|
onGenerateSvg: w(Xn),
|
|
@@ -1139,7 +1140,7 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1139
1140
|
}, Re({ _: 2 }, [
|
|
1140
1141
|
e.$slots.menuIcon ? {
|
|
1141
1142
|
name: "menuIcon",
|
|
1142
|
-
fn:
|
|
1143
|
+
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(g({
|
|
1143
1144
|
isOpen: t,
|
|
1144
1145
|
color: n
|
|
1145
1146
|
})), void 0, !0)]),
|
|
@@ -1147,37 +1148,37 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1147
1148
|
} : void 0,
|
|
1148
1149
|
e.$slots.optionTooltip ? {
|
|
1149
1150
|
name: "optionTooltip",
|
|
1150
|
-
fn:
|
|
1151
|
+
fn: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1151
1152
|
key: "1"
|
|
1152
1153
|
} : void 0,
|
|
1153
1154
|
e.$slots.optionPdf ? {
|
|
1154
1155
|
name: "optionPdf",
|
|
1155
|
-
fn:
|
|
1156
|
+
fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1156
1157
|
key: "2"
|
|
1157
1158
|
} : void 0,
|
|
1158
1159
|
e.$slots.optionCsv ? {
|
|
1159
1160
|
name: "optionCsv",
|
|
1160
|
-
fn:
|
|
1161
|
+
fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1161
1162
|
key: "3"
|
|
1162
1163
|
} : void 0,
|
|
1163
1164
|
e.$slots.optionImg ? {
|
|
1164
1165
|
name: "optionImg",
|
|
1165
|
-
fn:
|
|
1166
|
+
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1166
1167
|
key: "4"
|
|
1167
1168
|
} : void 0,
|
|
1168
1169
|
e.$slots.optionSvg ? {
|
|
1169
1170
|
name: "optionSvg",
|
|
1170
|
-
fn:
|
|
1171
|
+
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1171
1172
|
key: "5"
|
|
1172
1173
|
} : void 0,
|
|
1173
1174
|
e.$slots.optionTable ? {
|
|
1174
1175
|
name: "optionTable",
|
|
1175
|
-
fn:
|
|
1176
|
+
fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1176
1177
|
key: "6"
|
|
1177
1178
|
} : void 0,
|
|
1178
1179
|
e.$slots.optionFullscreen ? {
|
|
1179
1180
|
name: "optionFullscreen",
|
|
1180
|
-
fn:
|
|
1181
|
+
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(g({
|
|
1181
1182
|
toggleFullscreen: t,
|
|
1182
1183
|
isFullscreen: n
|
|
1183
1184
|
})), void 0, !0)]),
|
|
@@ -1185,7 +1186,7 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1185
1186
|
} : void 0,
|
|
1186
1187
|
e.$slots.optionAnnotator ? {
|
|
1187
1188
|
name: "optionAnnotator",
|
|
1188
|
-
fn:
|
|
1189
|
+
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(g({
|
|
1189
1190
|
toggleAnnotator: t,
|
|
1190
1191
|
isAnnotator: n
|
|
1191
1192
|
})), void 0, !0)]),
|
|
@@ -1193,41 +1194,41 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1193
1194
|
} : void 0,
|
|
1194
1195
|
e.$slots.optionAltCopy ? {
|
|
1195
1196
|
name: "optionAltCopy",
|
|
1196
|
-
fn:
|
|
1197
|
+
fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(g({ altCopy: t })), void 0, !0)]),
|
|
1197
1198
|
key: "9"
|
|
1198
1199
|
} : void 0,
|
|
1199
1200
|
e.$slots["custom-menu-before"] ? {
|
|
1200
1201
|
name: "custom-menu-before",
|
|
1201
|
-
fn:
|
|
1202
|
+
fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1202
1203
|
key: "10"
|
|
1203
1204
|
} : void 0,
|
|
1204
1205
|
e.$slots["custom-menu-after"] ? {
|
|
1205
1206
|
name: "custom-menu-after",
|
|
1206
|
-
fn:
|
|
1207
|
+
fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1207
1208
|
key: "11"
|
|
1208
1209
|
} : void 0
|
|
1209
1210
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.callbacks.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.printScale.chartElement.position.titles.hasAnnotator.isAnnotation.tableDialog.style.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg".split("."))) : f("", !0),
|
|
1210
|
-
m("div",
|
|
1211
|
+
m("div", $e, [(y(), p("svg", {
|
|
1211
1212
|
ref_key: "svgRef",
|
|
1212
|
-
ref:
|
|
1213
|
+
ref: V,
|
|
1213
1214
|
xmlns: w(fe),
|
|
1214
|
-
"aria-describedby": `chart-instructions-${
|
|
1215
|
+
"aria-describedby": `chart-instructions-${M.value}`,
|
|
1215
1216
|
class: Ue({
|
|
1216
1217
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
1217
1218
|
"vue-data-ui-fulscreen--off": !Q.value
|
|
1218
1219
|
}),
|
|
1219
|
-
viewBox: `0 0 ${
|
|
1220
|
-
style: v(`max-width:100%;overflow:visible;background:transparent;color:${
|
|
1220
|
+
viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${K.value.fullHeight <= 0 ? 10 : K.value.fullHeight}`,
|
|
1221
|
+
style: v(`max-width:100%;overflow:visible;background:transparent;color:${L.value.style.chart.color};${L.value.responsive ? `height: ${Vt.value}px; width: 100%;` : ""}`),
|
|
1221
1222
|
tabindex: "0",
|
|
1222
1223
|
onFocus: er,
|
|
1223
1224
|
onBlur: tr,
|
|
1224
1225
|
onKeydown: nr
|
|
1225
1226
|
}, [
|
|
1226
|
-
Be(w(
|
|
1227
|
+
Be(w(Tt)),
|
|
1227
1228
|
m("defs", null, [(y(!0), p(l, null, x(Z.value, (e, t) => (y(), d(je, {
|
|
1228
1229
|
t: "linear",
|
|
1229
|
-
id: `gradient-${e.id}-${
|
|
1230
|
-
key: `gradient-${e.id}-${
|
|
1230
|
+
id: `gradient-${e.id}-${M.value}`,
|
|
1231
|
+
key: `gradient-${e.id}-${M.value}`,
|
|
1231
1232
|
x1: "50%",
|
|
1232
1233
|
y1: "0%",
|
|
1233
1234
|
x2: "50%",
|
|
@@ -1257,7 +1258,7 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1257
1258
|
}, null, 8, ["id", "stops"]))), 128)), (y(!0), p(l, null, x(Y.value, (e, t) => (y(), p(l, null, [(y(!0), p(l, null, x(e.datapoints, (e, t) => (y(), d(je, {
|
|
1258
1259
|
t: "linear",
|
|
1259
1260
|
key: `grad${e.id}`,
|
|
1260
|
-
id: `gradient-single-${
|
|
1261
|
+
id: `gradient-single-${M.value}-${e.uid}`,
|
|
1261
1262
|
x1: "50%",
|
|
1262
1263
|
y1: "0%",
|
|
1263
1264
|
x2: "50%",
|
|
@@ -1286,128 +1287,129 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1286
1287
|
]
|
|
1287
1288
|
}, null, 8, ["id", "stops"]))), 128))], 64))), 256))]),
|
|
1288
1289
|
(y(!0), p(l, null, x(Y.value, (t, n) => (y(), p("g", { key: `ds-${n}` }, [(y(!0), p(l, null, x(t.datapoints, (t, r) => (y(), p("g", { key: t.id }, [
|
|
1289
|
-
e.$slots.pattern ? (y(), p("g",
|
|
1290
|
+
e.$slots.pattern ? (y(), p("g", tt, [m("defs", null, [S(e.$slots, "pattern", Ve({ ref_for: !0 }, {
|
|
1290
1291
|
datapointIndex: n,
|
|
1291
1292
|
seriesIndex: r,
|
|
1292
|
-
patternId: `pattern_${
|
|
1293
|
+
patternId: `pattern_${M.value}_${t.uid}`
|
|
1293
1294
|
}), void 0, !0)])])) : f("", !0),
|
|
1294
1295
|
m("path", {
|
|
1295
|
-
fill: e.$slots.pattern ? `url(#pattern_${
|
|
1296
|
+
fill: e.$slots.pattern ? `url(#pattern_${M.value}_${t.uid})` : L.value.style.chart.backgroundColor,
|
|
1296
1297
|
stroke: "none",
|
|
1297
1298
|
"stroke-linecap": "round",
|
|
1298
|
-
d:
|
|
1299
|
-
style: v({ opacity:
|
|
1300
|
-
}, null, 12,
|
|
1299
|
+
d: L.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1300
|
+
style: v({ opacity: L.value.style.chart.areas.opacity })
|
|
1301
|
+
}, null, 12, nt),
|
|
1301
1302
|
m("path", {
|
|
1302
1303
|
fill: "none",
|
|
1303
|
-
stroke:
|
|
1304
|
-
"stroke-width":
|
|
1305
|
-
d:
|
|
1304
|
+
stroke: L.value.style.chart.areas.stroke.useSerieColor ? t.color : L.value.style.chart.areas.stroke.color,
|
|
1305
|
+
"stroke-width": L.value.style.chart.areas.strokeWidth,
|
|
1306
|
+
d: L.value.style.chart.areas.smooth ? t.smoothPathRidge : t.straightPathRidge,
|
|
1306
1307
|
"stroke-linecap": "round",
|
|
1307
1308
|
"stroke-linejoin": "round",
|
|
1308
1309
|
style: v({
|
|
1309
1310
|
strokeDasharray: t.pathLength,
|
|
1310
|
-
strokeDashoffset:
|
|
1311
|
+
strokeDashoffset: L.value.useCssAnimation ? t.pathLength : 0
|
|
1311
1312
|
})
|
|
1312
|
-
}, null, 12,
|
|
1313
|
+
}, null, 12, rt),
|
|
1313
1314
|
m("path", {
|
|
1314
|
-
fill:
|
|
1315
|
+
fill: L.value.style.chart.areas.useGradient ? L.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${M.value})` : `url(#gradient-single-${M.value}-${t.uid})` : t.color,
|
|
1315
1316
|
stroke: "none",
|
|
1316
|
-
d:
|
|
1317
|
+
d: L.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1317
1318
|
"stroke-linecap": "round",
|
|
1318
1319
|
"stroke-linejoin": "round",
|
|
1319
1320
|
style: v({
|
|
1320
1321
|
strokeDasharray: t.pathLength,
|
|
1321
|
-
strokeDashoffset:
|
|
1322
|
+
strokeDashoffset: L.value.useCssAnimation ? t.pathLength : 0
|
|
1322
1323
|
})
|
|
1323
|
-
}, null, 12,
|
|
1324
|
-
|
|
1324
|
+
}, null, 12, it),
|
|
1325
|
+
L.value.style.chart.zeroLine.show ? (y(), p("path", {
|
|
1325
1326
|
key: 1,
|
|
1326
|
-
stroke:
|
|
1327
|
-
"stroke-dasharray":
|
|
1328
|
-
"stroke-width":
|
|
1327
|
+
stroke: L.value.style.chart.zeroLine.useSerieColor ? t.color : L.value.style.chart.zeroLine.stroke,
|
|
1328
|
+
"stroke-dasharray": L.value.style.chart.zeroLine.strokeDasharray,
|
|
1329
|
+
"stroke-width": L.value.style.chart.zeroLine.strokeWidth,
|
|
1329
1330
|
d: t.zeroPath,
|
|
1330
1331
|
"stroke-linecap": "round"
|
|
1331
|
-
}, null, 8,
|
|
1332
|
-
|
|
1332
|
+
}, null, 8, at)) : f("", !0),
|
|
1333
|
+
L.value.style.chart.areas.maxPoint.show && t.plots.length > 1 ? (y(!0), p(l, { key: 2 }, x(t.plots, (e) => (y(), p(l, null, [e.isMaxPoint ? (y(), p("line", {
|
|
1333
1334
|
key: 0,
|
|
1334
1335
|
x1: e.x,
|
|
1335
1336
|
y1: e.y,
|
|
1336
1337
|
x2: e.x,
|
|
1337
1338
|
y2: e.zero,
|
|
1338
|
-
stroke:
|
|
1339
|
-
"stroke-width":
|
|
1339
|
+
stroke: L.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? w(de)(t.color) : L.value.style.chart.areas.maxPoint.stroke,
|
|
1340
|
+
"stroke-width": L.value.style.chart.areas.maxPoint.strokeWidth,
|
|
1340
1341
|
"stroke-linecap": "round",
|
|
1341
|
-
"stroke-dasharray":
|
|
1342
|
-
}, null, 8,
|
|
1342
|
+
"stroke-dasharray": L.value.style.chart.areas.maxPoint.strokeDasharray
|
|
1343
|
+
}, null, 8, ot)) : f("", !0)], 64))), 256)) : f("", !0),
|
|
1343
1344
|
t.plots.length === 1 ? (y(), p("circle", {
|
|
1344
1345
|
key: 3,
|
|
1345
1346
|
cx: t.plots[0].x,
|
|
1346
1347
|
cy: t.plots[0].y,
|
|
1347
|
-
stroke:
|
|
1348
|
-
"stroke-width":
|
|
1349
|
-
r:
|
|
1350
|
-
fill:
|
|
1348
|
+
stroke: L.value.style.chart.selector.dot.stroke,
|
|
1349
|
+
"stroke-width": L.value.style.chart.selector.dot.strokeWidth,
|
|
1350
|
+
r: L.value.style.chart.selector.dot.radius,
|
|
1351
|
+
fill: L.value.style.chart.selector.dot.useDatapointColor ? t.color : L.value.style.chart.selector.dot.fill,
|
|
1351
1352
|
style: { pointerEvents: "none" }
|
|
1352
|
-
}, null, 8,
|
|
1353
|
+
}, null, 8, st)) : f("", !0)
|
|
1353
1354
|
]))), 128)), m("text", {
|
|
1354
1355
|
x: t.label.x,
|
|
1355
1356
|
y: t.label.y,
|
|
1356
1357
|
"text-anchor": "end",
|
|
1357
|
-
"font-size":
|
|
1358
|
-
"font-weight":
|
|
1359
|
-
fill:
|
|
1360
|
-
style: v({ cursor:
|
|
1361
|
-
"text-decoration":
|
|
1358
|
+
"font-size": L.value.style.chart.yAxis.labels.fontSize,
|
|
1359
|
+
"font-weight": L.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
1360
|
+
fill: L.value.style.chart.yAxis.labels.color,
|
|
1361
|
+
style: v({ cursor: L.value.style.chart.dialog.show && R.value ? "pointer" : "default" }),
|
|
1362
|
+
"text-decoration": L.value.style.chart.dialog.show && (Mn.value === n || P.value && t.uid === P.value.uid || I.value === n) ? "underline" : "",
|
|
1363
|
+
"dominant-baseline": "middle",
|
|
1362
1364
|
onMouseenter: (e) => Nn(n),
|
|
1363
1365
|
onMouseleave: Pn,
|
|
1364
1366
|
onClick: (e) => jn(t)
|
|
1365
|
-
}, C(t.name), 45,
|
|
1366
|
-
|
|
1367
|
+
}, C(t.name), 45, ct)]))), 128)),
|
|
1368
|
+
L.value.style.chart.xAxis.labels.values.length ? (y(), p("g", {
|
|
1367
1369
|
key: 0,
|
|
1368
1370
|
ref_key: "timeLabelsEls",
|
|
1369
|
-
ref:
|
|
1371
|
+
ref: Ht
|
|
1370
1372
|
}, [(y(!0), p(l, null, x(J.value, (t, n) => S(e.$slots, "time-label", Ve({ ref_for: !0 }, {
|
|
1371
|
-
show: t && !
|
|
1372
|
-
fontSize:
|
|
1373
|
+
show: t && !L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !L.value.style.chart.xAxis.labels.showOnlyAtModulo || t && L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === J.value.length - 1) || t && N.value && N.value.index === n || t && !L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && L.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.max(1, Math.floor(Number(L.value.style.chart.xAxis.labels.modulo) || 1)) === 0,
|
|
1374
|
+
fontSize: L.value.style.chart.xAxis.labels.fontSize,
|
|
1373
1375
|
content: t.label,
|
|
1374
|
-
textAnchor:
|
|
1375
|
-
fill:
|
|
1376
|
-
transform: `translate(${t.selectorX}, ${
|
|
1376
|
+
textAnchor: L.value.style.chart.xAxis.labels.rotation > 0 ? "start" : L.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1377
|
+
fill: L.value.style.chart.xAxis.labels.color,
|
|
1378
|
+
transform: `translate(${t.selectorX}, ${K.value.top + t.height + L.value.style.chart.xAxis.labels.offsetY}), rotate(${L.value.style.chart.xAxis.labels.rotation})`,
|
|
1377
1379
|
x: t.selectorX,
|
|
1378
|
-
y:
|
|
1379
|
-
}), () => [t && !
|
|
1380
|
+
y: K.value.bottom + L.value.style.chart.xAxis.labels.offsetY
|
|
1381
|
+
}), () => [t && !L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !L.value.style.chart.xAxis.labels.showOnlyAtModulo || t && L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === J.value.length - 1) || t && N.value && N.value.index === n || t && !L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && L.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.max(1, Math.floor(Number(L.value.style.chart.xAxis.labels.modulo) || 1)) === 0 ? (y(), p("g", lt, [String(t.label).includes("\n") ? (y(), p("text", {
|
|
1380
1382
|
key: 1,
|
|
1381
1383
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
1382
|
-
"font-size":
|
|
1383
|
-
fill:
|
|
1384
|
-
"font-weight":
|
|
1385
|
-
transform: `translate(${t.selectorX}, ${
|
|
1386
|
-
"text-anchor":
|
|
1387
|
-
style: v({ opacity:
|
|
1384
|
+
"font-size": L.value.style.chart.xAxis.labels.fontSize,
|
|
1385
|
+
fill: L.value.style.chart.xAxis.labels.color,
|
|
1386
|
+
"font-weight": L.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1387
|
+
transform: `translate(${t.selectorX}, ${K.value.bottom + L.value.style.chart.xAxis.labels.offsetY}), rotate(${L.value.style.chart.xAxis.labels.rotation})`,
|
|
1388
|
+
"text-anchor": L.value.style.chart.xAxis.labels.rotation > 0 ? "start" : L.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1389
|
+
style: v({ opacity: N.value ? N.value.index === n ? 1 : .2 : 1 }),
|
|
1388
1390
|
innerHTML: w(r)({
|
|
1389
1391
|
content: String(t.label),
|
|
1390
|
-
fontSize:
|
|
1391
|
-
fill:
|
|
1392
|
-
stroke:
|
|
1392
|
+
fontSize: L.value.style.chart.xAxis.labels.fontSize,
|
|
1393
|
+
fill: L.value.style.chart.xAxis.labels.color,
|
|
1394
|
+
stroke: L.value.style.chart.backgroundColor,
|
|
1393
1395
|
x: 0,
|
|
1394
1396
|
y: 0
|
|
1395
1397
|
})
|
|
1396
|
-
}, null, 12,
|
|
1398
|
+
}, null, 12, dt)) : (y(), p("text", {
|
|
1397
1399
|
key: 0,
|
|
1398
1400
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
1399
|
-
"font-size":
|
|
1400
|
-
fill:
|
|
1401
|
-
stroke:
|
|
1401
|
+
"font-size": L.value.style.chart.xAxis.labels.fontSize,
|
|
1402
|
+
fill: L.value.style.chart.xAxis.labels.color,
|
|
1403
|
+
stroke: L.value.style.chart.backgroundColor,
|
|
1402
1404
|
"stroke-width": "3",
|
|
1403
1405
|
"stroke-linecap": "round",
|
|
1404
1406
|
"stroke-linejoin": "round",
|
|
1405
1407
|
"paint-order": "stroke fill",
|
|
1406
|
-
"font-weight":
|
|
1407
|
-
transform: `translate(${t.selectorX}, ${
|
|
1408
|
-
"text-anchor":
|
|
1409
|
-
style: v({ opacity:
|
|
1410
|
-
}, C(t.label), 13,
|
|
1408
|
+
"font-weight": L.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1409
|
+
transform: `translate(${t.selectorX}, ${K.value.bottom + L.value.style.chart.xAxis.labels.offsetY}), rotate(${L.value.style.chart.xAxis.labels.rotation})`,
|
|
1410
|
+
"text-anchor": L.value.style.chart.xAxis.labels.rotation > 0 ? "start" : L.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1411
|
+
style: v({ opacity: N.value ? N.value.index === n ? 1 : .2 : 1 })
|
|
1412
|
+
}, C(t.label), 13, ut))])) : f("", !0)], !0)), 256))], 512)) : f("", !0),
|
|
1411
1413
|
m("g", null, [
|
|
1412
1414
|
(y(!0), p(l, null, x(J.value, (e, t) => (y(), p("rect", {
|
|
1413
1415
|
x: e.x,
|
|
@@ -1418,87 +1420,94 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1418
1420
|
onMouseenter: (t) => bn(e),
|
|
1419
1421
|
onMouseleave: (t) => xn(e),
|
|
1420
1422
|
onClick: () => Sn(e)
|
|
1421
|
-
}, null, 40,
|
|
1422
|
-
|
|
1423
|
+
}, null, 40, ft))), 256)),
|
|
1424
|
+
L.value.style.chart.selector.show && N.value ? (y(), p("line", {
|
|
1423
1425
|
key: 0,
|
|
1424
|
-
x1:
|
|
1425
|
-
x2:
|
|
1426
|
-
y1:
|
|
1427
|
-
y2:
|
|
1428
|
-
stroke:
|
|
1429
|
-
"stroke-width":
|
|
1430
|
-
"stroke-dasharray":
|
|
1426
|
+
x1: N.value.selectorX,
|
|
1427
|
+
x2: N.value.selectorX,
|
|
1428
|
+
y1: N.value.y,
|
|
1429
|
+
y2: N.value.y + N.value.height - B.value / 2,
|
|
1430
|
+
stroke: L.value.style.chart.selector.stroke,
|
|
1431
|
+
"stroke-width": L.value.style.chart.selector.strokeWidth,
|
|
1432
|
+
"stroke-dasharray": L.value.style.chart.selector.strokeDasharray,
|
|
1431
1433
|
"stroke-linecap": "round",
|
|
1432
1434
|
style: { pointerEvents: "none" }
|
|
1433
|
-
}, null, 8,
|
|
1434
|
-
|
|
1435
|
+
}, null, 8, pt)) : f("", !0),
|
|
1436
|
+
N.value ? (y(!0), p(l, { key: 1 }, x(Y.value, (e) => (y(), p(l, null, [(y(!0), p(l, null, x(e.datapoints, (e) => (y(), p(l, null, [(y(!0), p(l, null, x(e.plots, (t, n) => (y(), p(l, null, [N.value && N.value.index === n ? (y(), p("circle", {
|
|
1435
1437
|
key: 0,
|
|
1436
1438
|
cx: t.x,
|
|
1437
1439
|
cy: t.y,
|
|
1438
|
-
stroke:
|
|
1439
|
-
"stroke-width":
|
|
1440
|
-
r:
|
|
1441
|
-
fill:
|
|
1440
|
+
stroke: L.value.style.chart.selector.dot.stroke,
|
|
1441
|
+
"stroke-width": L.value.style.chart.selector.dot.strokeWidth,
|
|
1442
|
+
r: L.value.style.chart.selector.dot.radius,
|
|
1443
|
+
fill: L.value.style.chart.selector.dot.useDatapointColor ? e.color : L.value.style.chart.selector.dot.fill,
|
|
1442
1444
|
style: { pointerEvents: "none" }
|
|
1443
|
-
}, null, 8,
|
|
1445
|
+
}, null, 8, mt)) : f("", !0), N.value && N.value.index === n ? (y(), p("text", {
|
|
1444
1446
|
key: 1,
|
|
1445
|
-
x: wn(t.x, w(ce)(
|
|
1446
|
-
p:
|
|
1447
|
+
x: wn(t.x, w(ce)(L.value.style.chart.selector.labels.formatter, t.value, w(c)({
|
|
1448
|
+
p: L.value.style.chart.xAxis.labels.prefix,
|
|
1447
1449
|
v: t.value,
|
|
1448
|
-
s:
|
|
1449
|
-
r:
|
|
1450
|
-
})),
|
|
1451
|
-
y: t.y
|
|
1452
|
-
"
|
|
1453
|
-
|
|
1450
|
+
s: L.value.style.chart.xAxis.labels.suffix,
|
|
1451
|
+
r: L.value.style.chart.selector.labels.rounding
|
|
1452
|
+
})), L.value.style.chart.selector.labels.fontSize) ? t.x - L.value.style.chart.selector.labels.fontSize / 2 : t.x + L.value.style.chart.selector.labels.fontSize / 2,
|
|
1453
|
+
y: t.y,
|
|
1454
|
+
"dominant-baseline": "middle",
|
|
1455
|
+
stroke: L.value.style.chart.backgroundColor,
|
|
1456
|
+
"stroke-linecap": "round",
|
|
1457
|
+
"stroke-linejoin": "round",
|
|
1458
|
+
"stroke-width": "3",
|
|
1459
|
+
"paint-order": "stroke fill",
|
|
1460
|
+
"text-anchor": wn(t.x, w(ce)(L.value.style.chart.selector.labels.formatter, t.value, w(c)({
|
|
1461
|
+
p: L.value.style.chart.xAxis.labels.prefix,
|
|
1454
1462
|
v: t.value,
|
|
1455
|
-
s:
|
|
1456
|
-
r:
|
|
1457
|
-
})),
|
|
1458
|
-
"font-size":
|
|
1459
|
-
fill:
|
|
1463
|
+
s: L.value.style.chart.xAxis.labels.suffix,
|
|
1464
|
+
r: L.value.style.chart.selector.labels.rounding
|
|
1465
|
+
})), L.value.style.chart.selector.labels.fontSize) ? "end" : "start",
|
|
1466
|
+
"font-size": L.value.style.chart.selector.labels.fontSize,
|
|
1467
|
+
fill: L.value.style.chart.selector.labels.color,
|
|
1460
1468
|
style: { pointerEvents: "none" }
|
|
1461
|
-
}, C(w(ce)(
|
|
1462
|
-
p:
|
|
1469
|
+
}, C(w(ce)(L.value.style.chart.selector.labels.formatter, t.value, w(c)({
|
|
1470
|
+
p: L.value.style.chart.xAxis.labels.prefix,
|
|
1463
1471
|
v: t.value,
|
|
1464
|
-
s:
|
|
1465
|
-
r:
|
|
1466
|
-
}))), 9,
|
|
1472
|
+
s: L.value.style.chart.xAxis.labels.suffix,
|
|
1473
|
+
r: L.value.style.chart.selector.labels.rounding
|
|
1474
|
+
}))), 9, ht)) : f("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : f("", !0)
|
|
1467
1475
|
]),
|
|
1468
1476
|
S(e.$slots, "svg", { svg: {
|
|
1469
|
-
...
|
|
1470
|
-
drawingArea:
|
|
1471
|
-
isPrintingImg: w(
|
|
1472
|
-
isPrintingSvg: w(Yn)
|
|
1477
|
+
...G.value,
|
|
1478
|
+
drawingArea: K.value,
|
|
1479
|
+
isPrintingImg: w($t) || w(en) || w(Jn),
|
|
1480
|
+
isPrintingSvg: w(Yn),
|
|
1481
|
+
data: Y.value
|
|
1473
1482
|
} }, void 0, !0)
|
|
1474
|
-
], 46,
|
|
1475
|
-
hint:
|
|
1476
|
-
isVisible:
|
|
1483
|
+
], 46, et)), e.$slots.hint ? (y(), p("div", gt, [S(e.$slots, "hint", _(g({
|
|
1484
|
+
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1485
|
+
isVisible: Wt.value
|
|
1477
1486
|
})), void 0, !0)])) : f("", !0)]),
|
|
1478
|
-
e.$slots.watermark ? (y(), p("div",
|
|
1487
|
+
e.$slots.watermark ? (y(), p("div", _t, [S(e.$slots, "watermark", _(g({ isPrinting: w($t) || w(en) || w(Jn) || w(Yn) })), void 0, !0)])) : f("", !0),
|
|
1479
1488
|
m("div", {
|
|
1480
1489
|
ref_key: "chartLegend",
|
|
1481
|
-
ref:
|
|
1482
|
-
}, [S(e.$slots, "legend", { legend: Z.value }, () => [
|
|
1483
|
-
key: `legend_${
|
|
1490
|
+
ref: jt
|
|
1491
|
+
}, [S(e.$slots, "legend", { legend: Z.value }, () => [L.value.style.chart.legend.show ? (y(), d(Ie, {
|
|
1492
|
+
key: `legend_${It.value}`,
|
|
1484
1493
|
legendSet: Z.value,
|
|
1485
1494
|
config: Dn.value,
|
|
1486
|
-
isCursorPointer:
|
|
1487
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1495
|
+
isCursorPointer: R.value,
|
|
1496
|
+
onClickMarker: t[0] ||= ({ legend: e }) => cn(e.id)
|
|
1488
1497
|
}, Re({
|
|
1489
|
-
item:
|
|
1498
|
+
item: T(({ legend: e }) => [w(qt) ? f("", !0) : (y(), p("div", {
|
|
1490
1499
|
key: 0,
|
|
1491
1500
|
style: v(`opacity:${X.value.includes(e.id) ? .5 : 1}`),
|
|
1492
1501
|
onClick: (t) => e.segregate()
|
|
1493
|
-
}, C(e.name), 13,
|
|
1494
|
-
legendToggle:
|
|
1502
|
+
}, C(e.name), 13, vt))]),
|
|
1503
|
+
legendToggle: T(() => [Z.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !w(qt) ? (y(), d(Me, {
|
|
1495
1504
|
key: 0,
|
|
1496
|
-
backgroundColor:
|
|
1497
|
-
color:
|
|
1498
|
-
fontSize:
|
|
1505
|
+
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1506
|
+
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
1507
|
+
fontSize: L.value.style.chart.legend.fontSize,
|
|
1499
1508
|
checked: X.value.length > 0,
|
|
1500
|
-
isCursorPointer:
|
|
1501
|
-
onToggle:
|
|
1509
|
+
isCursorPointer: R.value,
|
|
1510
|
+
onToggle: sn
|
|
1502
1511
|
}, null, 8, [
|
|
1503
1512
|
"backgroundColor",
|
|
1504
1513
|
"color",
|
|
@@ -1509,7 +1518,7 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1509
1518
|
_: 2
|
|
1510
1519
|
}, [e.$slots.pattern ? {
|
|
1511
1520
|
name: "legend-pattern",
|
|
1512
|
-
fn:
|
|
1521
|
+
fn: T(({ legend: e, index: t }) => [Be(De, {
|
|
1513
1522
|
shape: e.shape,
|
|
1514
1523
|
radius: 30,
|
|
1515
1524
|
stroke: "none",
|
|
@@ -1517,7 +1526,7 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1517
1526
|
x: 30,
|
|
1518
1527
|
y: 30
|
|
1519
1528
|
},
|
|
1520
|
-
fill: `url(#pattern_${
|
|
1529
|
+
fill: `url(#pattern_${M.value}_${t})`
|
|
1521
1530
|
}, null, 8, ["shape", "fill"])]),
|
|
1522
1531
|
key: "0"
|
|
1523
1532
|
} : void 0]), 1032, [
|
|
@@ -1528,31 +1537,31 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1528
1537
|
e.$slots.source ? (y(), p("div", {
|
|
1529
1538
|
key: 6,
|
|
1530
1539
|
ref_key: "source",
|
|
1531
|
-
ref:
|
|
1540
|
+
ref: Mt,
|
|
1532
1541
|
dir: "auto"
|
|
1533
1542
|
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1534
|
-
|
|
1543
|
+
D.value && L.value.userOptions.buttons.table ? (y(), d(Ge(Un.value.component), Ve({ key: 7 }, Un.value.props, {
|
|
1535
1544
|
ref_key: "tableUnit",
|
|
1536
|
-
ref:
|
|
1545
|
+
ref: F,
|
|
1537
1546
|
onClose: Wn
|
|
1538
1547
|
}), Re({
|
|
1539
|
-
content:
|
|
1540
|
-
key: `table_${
|
|
1548
|
+
content: T(() => [(y(), d(w(St), {
|
|
1549
|
+
key: `table_${Ft.value}`,
|
|
1541
1550
|
colNames: $.value.colNames,
|
|
1542
1551
|
head: $.value.head,
|
|
1543
1552
|
body: $.value.body,
|
|
1544
1553
|
config: $.value.config,
|
|
1545
|
-
title:
|
|
1546
|
-
withCloseButton: !
|
|
1547
|
-
isCursorPointer:
|
|
1554
|
+
title: L.value.table.useDialog ? "" : Un.value.title,
|
|
1555
|
+
withCloseButton: !L.value.table.useDialog,
|
|
1556
|
+
isCursorPointer: R.value,
|
|
1548
1557
|
onClose: Wn
|
|
1549
1558
|
}, {
|
|
1550
|
-
th:
|
|
1551
|
-
td:
|
|
1552
|
-
p:
|
|
1559
|
+
th: T(({ th: e }) => [m("div", null, C(e), 1)]),
|
|
1560
|
+
td: T(({ td: e }) => [ze(C(e.name ? e.name : w(ce)(L.value.style.chart.selector.labels.formatter, e, w(c)({
|
|
1561
|
+
p: L.value.style.chart.xAxis.labels.prefix,
|
|
1553
1562
|
v: e,
|
|
1554
|
-
s:
|
|
1555
|
-
r:
|
|
1563
|
+
s: L.value.style.chart.xAxis.labels.suffix,
|
|
1564
|
+
r: L.value.table.td.roundingValue
|
|
1556
1565
|
}))), 1)]),
|
|
1557
1566
|
_: 1
|
|
1558
1567
|
}, 8, [
|
|
@@ -1565,39 +1574,39 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1565
1574
|
"isCursorPointer"
|
|
1566
1575
|
]))]),
|
|
1567
1576
|
_: 2
|
|
1568
|
-
}, [
|
|
1577
|
+
}, [L.value.table.useDialog ? {
|
|
1569
1578
|
name: "title",
|
|
1570
|
-
fn:
|
|
1579
|
+
fn: T(() => [ze(C(Un.value.title), 1)]),
|
|
1571
1580
|
key: "0"
|
|
1572
|
-
} : void 0,
|
|
1581
|
+
} : void 0, L.value.table.useDialog ? {
|
|
1573
1582
|
name: "actions",
|
|
1574
|
-
fn:
|
|
1583
|
+
fn: T(() => [m("button", {
|
|
1575
1584
|
tabindex: "0",
|
|
1576
1585
|
class: "vue-ui-user-options-button",
|
|
1577
|
-
onClick: t[1] ||= (e) => zn(
|
|
1578
|
-
style: v({ cursor:
|
|
1579
|
-
}, [Be(w(
|
|
1586
|
+
onClick: t[1] ||= (e) => zn(L.value.userOptions.callbacks.csv),
|
|
1587
|
+
style: v({ cursor: R.value ? "pointer" : "default" })
|
|
1588
|
+
}, [Be(w(bt), {
|
|
1580
1589
|
name: "fileCsv",
|
|
1581
1590
|
stroke: Un.value.props.color
|
|
1582
1591
|
}, null, 8, ["stroke"])], 4)]),
|
|
1583
1592
|
key: "1"
|
|
1584
1593
|
} : void 0]), 1040)) : f("", !0),
|
|
1585
|
-
|
|
1594
|
+
L.value.style.chart.dialog.show ? (y(), d(w(Et), {
|
|
1586
1595
|
key: 8,
|
|
1587
1596
|
ref_key: "dialog",
|
|
1588
|
-
ref:
|
|
1589
|
-
onClose: t[2] ||= (e) =>
|
|
1590
|
-
backgroundColor:
|
|
1591
|
-
color:
|
|
1592
|
-
headerBg:
|
|
1593
|
-
headerColor:
|
|
1597
|
+
ref: Bt,
|
|
1598
|
+
onClose: t[2] ||= (e) => P.value = null,
|
|
1599
|
+
backgroundColor: L.value.style.chart.dialog.backgroundColor,
|
|
1600
|
+
color: L.value.style.chart.dialog.color,
|
|
1601
|
+
headerBg: L.value.style.chart.dialog.header.backgroundColor,
|
|
1602
|
+
headerColor: L.value.style.chart.dialog.header.color,
|
|
1594
1603
|
isFullscreen: Q.value,
|
|
1595
|
-
fullscreenParent:
|
|
1596
|
-
isCursorPointer:
|
|
1604
|
+
fullscreenParent: k.value,
|
|
1605
|
+
isCursorPointer: R.value,
|
|
1597
1606
|
withPadding: ""
|
|
1598
1607
|
}, {
|
|
1599
|
-
title:
|
|
1600
|
-
content:
|
|
1608
|
+
title: T(() => [ze(C(P.value.name), 1)]),
|
|
1609
|
+
content: T(() => [P.value ? (y(), d(w(yt), {
|
|
1601
1610
|
key: 0,
|
|
1602
1611
|
config: kn.value,
|
|
1603
1612
|
dataset: An.value,
|
|
@@ -1613,9 +1622,9 @@ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1613
1622
|
"fullscreenParent",
|
|
1614
1623
|
"isCursorPointer"
|
|
1615
1624
|
])) : f("", !0),
|
|
1616
|
-
S(e.$slots, "skeleton", {}, () => [w(
|
|
1617
|
-
], 46,
|
|
1625
|
+
S(e.$slots, "skeleton", {}, () => [w(qt) ? (y(), d(be, { key: 0 })) : f("", !0)], !0)
|
|
1626
|
+
], 46, Ze));
|
|
1618
1627
|
}
|
|
1619
|
-
}, [["__scopeId", "data-v-
|
|
1628
|
+
}, [["__scopeId", "data-v-0841144b"]]);
|
|
1620
1629
|
//#endregion
|
|
1621
|
-
export {
|
|
1630
|
+
export { Xe as n, yt as t };
|