vue-data-ui 3.22.8 → 3.22.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/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
- package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.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-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-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.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/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
- package/dist/vue-data-ui.js +67 -67
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
- package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
- package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
- package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
- package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
- package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
- package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
- package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
- package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
- package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
- package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
- package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
- package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
- package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
- package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
- package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
- package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
- package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
- package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
- package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
- package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
|
@@ -13,22 +13,23 @@ import { t as Te } from "./Shape-UpH0a4Ur.js";
|
|
|
13
13
|
import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
14
|
import { c as De } from "./canvas-lib-BOP_HS11.js";
|
|
15
15
|
import { t as Oe } from "./useResponsive-BfnK0KxU.js";
|
|
16
|
-
import { t as ke } from "./
|
|
17
|
-
import { t as Ae } from "./
|
|
18
|
-
import { t as je } from "./
|
|
19
|
-
import { t as Me } from "./
|
|
20
|
-
import {
|
|
16
|
+
import { t as ke } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
+
import { t as Ae } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as je } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as Me } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as Ne } from "./vue_ui_strip_plot-BaHbnnwN.js";
|
|
21
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Le, nextTick as Re, normalizeClass as ze, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Be, onMounted as Ve, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as w, toRefs as We, unref as T, watch as Ge, watchEffect as Ke, withCtx as E } from "vue";
|
|
21
22
|
//#region src/components/vue-ui-strip-plot.vue
|
|
22
|
-
var
|
|
23
|
+
var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe = { style: { position: "relative" } }, Ze = [
|
|
23
24
|
"xmlns",
|
|
24
25
|
"viewBox",
|
|
25
26
|
"aria-describedby"
|
|
26
|
-
],
|
|
27
|
+
], Qe = [
|
|
27
28
|
"x",
|
|
28
29
|
"y",
|
|
29
30
|
"width",
|
|
30
31
|
"height"
|
|
31
|
-
],
|
|
32
|
+
], $e = { key: 1 }, et = { key: 0 }, tt = [
|
|
32
33
|
"x1",
|
|
33
34
|
"x2",
|
|
34
35
|
"y1",
|
|
@@ -36,7 +37,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
36
37
|
"stroke",
|
|
37
38
|
"stroke-width",
|
|
38
39
|
"stroke-dasharray"
|
|
39
|
-
],
|
|
40
|
+
], nt = { key: 1 }, rt = [
|
|
40
41
|
"x1",
|
|
41
42
|
"x2",
|
|
42
43
|
"y1",
|
|
@@ -44,60 +45,60 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
44
45
|
"stroke",
|
|
45
46
|
"stroke-width",
|
|
46
47
|
"stroke-dasharray"
|
|
47
|
-
],
|
|
48
|
+
], it = [
|
|
48
49
|
"x1",
|
|
49
50
|
"x2",
|
|
50
51
|
"y1",
|
|
51
52
|
"y2",
|
|
52
53
|
"stroke",
|
|
53
54
|
"stroke-width"
|
|
54
|
-
],
|
|
55
|
+
], at = [
|
|
55
56
|
"x1",
|
|
56
57
|
"x2",
|
|
57
58
|
"y1",
|
|
58
59
|
"y2",
|
|
59
60
|
"stroke",
|
|
60
61
|
"stroke-width"
|
|
61
|
-
],
|
|
62
|
+
], ot = [
|
|
62
63
|
"x",
|
|
63
64
|
"y",
|
|
64
65
|
"fill",
|
|
65
66
|
"font-size"
|
|
66
|
-
],
|
|
67
|
+
], st = [
|
|
67
68
|
"transform",
|
|
68
69
|
"font-size",
|
|
69
70
|
"fill",
|
|
70
71
|
"text-anchor"
|
|
71
|
-
],
|
|
72
|
+
], ct = [
|
|
72
73
|
"transform",
|
|
73
74
|
"font-size",
|
|
74
75
|
"fill",
|
|
75
76
|
"text-anchor",
|
|
76
77
|
"innerHTML"
|
|
77
|
-
],
|
|
78
|
+
], lt = [
|
|
78
79
|
"fill",
|
|
79
80
|
"font-size",
|
|
80
81
|
"transform"
|
|
81
|
-
],
|
|
82
|
+
], ut = [
|
|
82
83
|
"fill",
|
|
83
84
|
"font-size",
|
|
84
85
|
"x",
|
|
85
86
|
"y"
|
|
86
|
-
],
|
|
87
|
+
], dt = [
|
|
87
88
|
"x1",
|
|
88
89
|
"x2",
|
|
89
90
|
"y1",
|
|
90
91
|
"y2",
|
|
91
92
|
"stroke"
|
|
92
|
-
],
|
|
93
|
+
], ft = [
|
|
93
94
|
"cx",
|
|
94
95
|
"cy",
|
|
95
96
|
"fill"
|
|
96
|
-
],
|
|
97
|
+
], pt = [
|
|
97
98
|
"cx",
|
|
98
99
|
"cy",
|
|
99
100
|
"fill"
|
|
100
|
-
],
|
|
101
|
+
], mt = [
|
|
101
102
|
"d",
|
|
102
103
|
"fill",
|
|
103
104
|
"stroke",
|
|
@@ -105,7 +106,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
105
106
|
"stroke-opacity",
|
|
106
107
|
"stroke-width",
|
|
107
108
|
"onMouseenter"
|
|
108
|
-
],
|
|
109
|
+
], ht = [
|
|
109
110
|
"x1",
|
|
110
111
|
"x2",
|
|
111
112
|
"y1",
|
|
@@ -113,14 +114,14 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
113
114
|
"stroke",
|
|
114
115
|
"stroke-opacity",
|
|
115
116
|
"stroke-width"
|
|
116
|
-
],
|
|
117
|
+
], gt = ["onMouseenter"], _t = [
|
|
117
118
|
"x1",
|
|
118
119
|
"x2",
|
|
119
120
|
"y1",
|
|
120
121
|
"y2",
|
|
121
122
|
"stroke",
|
|
122
123
|
"stroke-width"
|
|
123
|
-
],
|
|
124
|
+
], vt = [
|
|
124
125
|
"x",
|
|
125
126
|
"y",
|
|
126
127
|
"width",
|
|
@@ -129,18 +130,18 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
129
130
|
"stroke",
|
|
130
131
|
"stroke-width",
|
|
131
132
|
"rx"
|
|
132
|
-
],
|
|
133
|
+
], yt = [
|
|
133
134
|
"cx",
|
|
134
135
|
"cy",
|
|
135
136
|
"r",
|
|
136
137
|
"fill",
|
|
137
138
|
"stroke"
|
|
138
|
-
],
|
|
139
|
+
], bt = { key: 1 }, xt = [
|
|
139
140
|
"x",
|
|
140
141
|
"y",
|
|
141
142
|
"font-size",
|
|
142
143
|
"fill"
|
|
143
|
-
],
|
|
144
|
+
], St = {
|
|
144
145
|
key: 0,
|
|
145
146
|
style: {
|
|
146
147
|
position: "absolute",
|
|
@@ -150,10 +151,10 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
150
151
|
},
|
|
151
152
|
"data-dom-to-png-ignore": "",
|
|
152
153
|
"aria-hidden": "true"
|
|
153
|
-
},
|
|
154
|
+
}, Ct = {
|
|
154
155
|
key: 5,
|
|
155
156
|
class: "vue-data-ui-watermark"
|
|
156
|
-
},
|
|
157
|
+
}, wt = ["innerHTML"], Tt = /*#__PURE__*/ Ee({
|
|
157
158
|
__name: "vue-ui-strip-plot",
|
|
158
159
|
props: {
|
|
159
160
|
config: {
|
|
@@ -170,22 +171,22 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
170
171
|
}
|
|
171
172
|
},
|
|
172
173
|
emits: ["selectDatapoint", "copyAlt"],
|
|
173
|
-
setup(e, { expose: Ee, emit:
|
|
174
|
-
let
|
|
174
|
+
setup(e, { expose: Ee, emit: qe }) {
|
|
175
|
+
let Tt = g(() => import("./Tooltip-CxOrWlFy.js")), Et = g(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Dt = g(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), Ot = g(() => import("./DataTable-BxpTMgfK.js")), kt = g(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), At = g(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), jt = g(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Mt = g(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), Nt = [
|
|
175
176
|
"classic",
|
|
176
177
|
"scatter",
|
|
177
178
|
"violin"
|
|
178
|
-
], { vue_ui_strip_plot:
|
|
179
|
+
], { vue_ui_strip_plot: Pt } = he(), { isThemeValid: Ft, warnInvalidTheme: It } = xe(), D = e, Lt = qe, Rt = d({
|
|
179
180
|
get() {
|
|
180
181
|
return !!D.dataset && D.dataset.length;
|
|
181
182
|
},
|
|
182
183
|
set(e) {
|
|
183
184
|
return e;
|
|
184
185
|
}
|
|
185
|
-
}), O = x(r()),
|
|
186
|
+
}), O = x(r()), zt = x(0), k = x(!1), Bt = x(""), A = x(null), Vt = x(null), Ht = x(null), Ut = x(null), Wt = x(!1), Gt = x(0), Kt = x(0), qt = x(null), Jt = x(null), Yt = x(!1), Xt = x(!1), Zt = x(null), Qt = x(null), $t = x(null), en = x(null), j = x(null), tn = x(null), M = x("pointer"), nn = x({
|
|
186
187
|
x: 0,
|
|
187
188
|
y: 0
|
|
188
|
-
}),
|
|
189
|
+
}), rn = x(!1), N = x(pn()), an = d(() => mn(N.value.type)), P = d(() => N.value.userOptions.useCursorPointer), on = d(() => o({
|
|
189
190
|
defaultConfig: {
|
|
190
191
|
userOptions: { show: !1 },
|
|
191
192
|
table: { show: !1 },
|
|
@@ -215,10 +216,10 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
215
216
|
} }
|
|
216
217
|
},
|
|
217
218
|
userConfig: N.value.skeletonConfig ?? {}
|
|
218
|
-
})), { loading:
|
|
219
|
-
...
|
|
219
|
+
})), { loading: sn, FINAL_DATASET: cn, manualLoading: ln } = _e({
|
|
220
|
+
...We(D),
|
|
220
221
|
FINAL_CONFIG: N,
|
|
221
|
-
prepareConfig:
|
|
222
|
+
prepareConfig: pn,
|
|
222
223
|
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
223
224
|
{
|
|
224
225
|
name: "_",
|
|
@@ -313,18 +314,18 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
313
314
|
],
|
|
314
315
|
skeletonConfig: o({
|
|
315
316
|
defaultConfig: N.value,
|
|
316
|
-
userConfig:
|
|
317
|
+
userConfig: on.value
|
|
317
318
|
})
|
|
318
|
-
}), { userOptionsVisible:
|
|
319
|
-
function
|
|
319
|
+
}), { userOptionsVisible: un, setUserOptionsVisibility: dn, keepUserOptionState: fn } = je({ config: N.value }), { svgRef: F } = Me({ config: N.value.style.chart.title });
|
|
320
|
+
function pn() {
|
|
320
321
|
let e = be({
|
|
321
322
|
userConfig: D.config,
|
|
322
|
-
defaultConfig:
|
|
323
|
+
defaultConfig: Pt
|
|
323
324
|
}), t = e.theme;
|
|
324
325
|
if (!t) return e;
|
|
325
|
-
if (!
|
|
326
|
+
if (!Ft.value(e)) return It(e), e;
|
|
326
327
|
let n = be({
|
|
327
|
-
userConfig:
|
|
328
|
+
userConfig: Ne[t] || D.config,
|
|
328
329
|
defaultConfig: e
|
|
329
330
|
}), r = be({
|
|
330
331
|
userConfig: D.config,
|
|
@@ -335,134 +336,134 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
335
336
|
customPalette: r.customPalette.length ? r.customPalette : ne[t] || s
|
|
336
337
|
};
|
|
337
338
|
}
|
|
338
|
-
function
|
|
339
|
-
return
|
|
339
|
+
function mn(e) {
|
|
340
|
+
return Nt.includes(e) ? e : "classic";
|
|
340
341
|
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}, { deep: !0 }),
|
|
344
|
-
Array.isArray(e) && e.length > 0 && (
|
|
342
|
+
Ge(() => D.config, async (e) => {
|
|
343
|
+
sn.value || (N.value = pn()), un.value = !N.value.userOptions.showOnChartHover, gn(), Gt.value += 1, Kt.value += 1, B.value.dataLabels.show = N.value.style.chart.labels.bestPlotLabel.show, B.value.showTable = N.value.table.show, B.value.showTooltip = N.value.style.chart.tooltip.show, R.value = N.value.style.chart.width, z.value = N.value.style.chart.height, En.value = N.value.style.chart.plots.radius;
|
|
344
|
+
}, { deep: !0 }), Ge(() => D.dataset, (e) => {
|
|
345
|
+
Array.isArray(e) && e.length > 0 && (ln.value = !1);
|
|
345
346
|
}, { deep: !0 });
|
|
346
|
-
let I =
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
let I = Ue(null), L = Ue(null);
|
|
348
|
+
Ve(() => {
|
|
349
|
+
gn();
|
|
349
350
|
});
|
|
350
|
-
let
|
|
351
|
-
function
|
|
351
|
+
let hn = d(() => !!N.value.debug);
|
|
352
|
+
function gn() {
|
|
352
353
|
if (le(D.dataset) ? (t({
|
|
353
354
|
componentName: "VueUiStripPlot",
|
|
354
355
|
type: "dataset",
|
|
355
|
-
debug:
|
|
356
|
-
}),
|
|
356
|
+
debug: hn.value
|
|
357
|
+
}), ln.value = !0) : D.dataset.forEach((e, n) => {
|
|
357
358
|
oe({
|
|
358
359
|
datasetObject: e,
|
|
359
360
|
requiredAttributes: ["name", "plots"]
|
|
360
361
|
}).forEach((e) => {
|
|
361
|
-
|
|
362
|
+
Rt.value = !1, t({
|
|
362
363
|
componentName: "VueUiStripPlot",
|
|
363
364
|
type: "datasetSerieAttribute",
|
|
364
365
|
property: e,
|
|
365
366
|
index: n,
|
|
366
|
-
debug:
|
|
367
|
+
debug: hn.value
|
|
367
368
|
});
|
|
368
369
|
}), e.plots && e.plots.forEach((e, r) => {
|
|
369
370
|
oe({
|
|
370
371
|
datasetObject: e,
|
|
371
372
|
requiredAttributes: ["name", "value"]
|
|
372
373
|
}).forEach((e) => {
|
|
373
|
-
|
|
374
|
+
Rt.value = !1, t({
|
|
374
375
|
componentName: "VueUiStripPlot",
|
|
375
376
|
type: "datasetSerieAttribute",
|
|
376
377
|
property: e,
|
|
377
378
|
index: `${n},${r}`,
|
|
378
|
-
debug:
|
|
379
|
+
debug: hn.value
|
|
379
380
|
});
|
|
380
381
|
});
|
|
381
382
|
});
|
|
382
|
-
}), le(D.dataset) || (
|
|
383
|
+
}), le(D.dataset) || (ln.value = N.value.loading), N.value.responsive) {
|
|
383
384
|
let e = De(() => {
|
|
384
385
|
let { width: e, height: t } = Oe({
|
|
385
386
|
chart: A.value,
|
|
386
|
-
title: N.value.style.chart.title.text ?
|
|
387
|
-
source:
|
|
388
|
-
noTitle:
|
|
387
|
+
title: N.value.style.chart.title.text ? Vt.value : null,
|
|
388
|
+
source: Ht.value,
|
|
389
|
+
noTitle: Ut.value
|
|
389
390
|
});
|
|
390
391
|
requestAnimationFrame(() => {
|
|
391
|
-
|
|
392
|
+
Tn.value = t, R.value = Math.max(.1, e), z.value = Math.max(.1, t - 12), N.value.responsiveProportionalSizing ? En.value = i({
|
|
392
393
|
relator: Math.min(t, e),
|
|
393
394
|
adjuster: 600,
|
|
394
395
|
source: N.value.style.chart.plots.radius,
|
|
395
396
|
threshold: 6,
|
|
396
397
|
fallback: 6
|
|
397
|
-
}) :
|
|
398
|
+
}) : En.value = N.value.style.chart.plots.radius;
|
|
398
399
|
});
|
|
399
400
|
});
|
|
400
401
|
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value = A.value.parentNode, I.value.observe(L.value);
|
|
401
402
|
}
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
},
|
|
403
|
+
Wt.value = !0, setTimeout(() => {
|
|
404
|
+
Cn.value = !1;
|
|
405
|
+
}, Nn.value * 50);
|
|
405
406
|
}
|
|
406
|
-
|
|
407
|
+
Be(() => {
|
|
407
408
|
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
|
|
408
409
|
});
|
|
409
|
-
let { isPrinting:
|
|
410
|
+
let { isPrinting: _n, isImaging: vn, generatePdf: yn, generateImage: bn } = ge({
|
|
410
411
|
elementId: `strip-plot_${O.value}`,
|
|
411
412
|
fileName: N.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
412
413
|
options: N.value.userOptions.print
|
|
413
|
-
}),
|
|
414
|
+
}), xn = d(() => N.value.userOptions.show && !N.value.style.chart.title.text), Sn = d(() => c(N.value.customPalette)), Cn = x(N.value.useCssAnimation), wn = x({
|
|
414
415
|
top: N.value.style.chart.padding.top,
|
|
415
416
|
bottom: N.value.style.chart.padding.bottom,
|
|
416
417
|
left: N.value.style.chart.padding.left,
|
|
417
418
|
right: N.value.style.chart.padding.right
|
|
418
|
-
}), R = x(N.value.style.chart.width), z = x(N.value.style.chart.height),
|
|
419
|
+
}), R = x(N.value.style.chart.width), z = x(N.value.style.chart.height), Tn = x(N.value.style.chart.height), En = x(N.value.style.chart.plots.radius), B = x({
|
|
419
420
|
showTable: N.value.table.show,
|
|
420
421
|
dataLabels: { show: N.value.style.chart.labels.bestPlotLabel.show },
|
|
421
422
|
showTooltip: N.value.style.chart.tooltip.show
|
|
422
423
|
});
|
|
423
|
-
|
|
424
|
+
Ge(N, () => {
|
|
424
425
|
B.value = {
|
|
425
426
|
showTable: N.value.table.show,
|
|
426
427
|
dataLabels: { show: N.value.style.chart.labels.bestPlotLabel.show },
|
|
427
428
|
showTooltip: N.value.style.chart.tooltip.show
|
|
428
|
-
}, R.value = N.value.style.chart.width, z.value = N.value.style.chart.height,
|
|
429
|
+
}, R.value = N.value.style.chart.width, z.value = N.value.style.chart.height, En.value = N.value.style.chart.plots.radius;
|
|
429
430
|
}, { immediate: !0 });
|
|
430
|
-
let V = d(() => Math.min(
|
|
431
|
+
let V = d(() => Math.min(En.value, U.value.stripWidth / 2 * .9));
|
|
431
432
|
function H(e) {
|
|
432
433
|
return Number.isFinite(e) ? Number(e.toFixed(2)) : 0;
|
|
433
434
|
}
|
|
434
|
-
function
|
|
435
|
+
function Dn() {
|
|
435
436
|
return Math.max(0, (U.value.stripWidth / 2 - V.value * 1.8) * .86) * Math.min(1, N.value.style.chart.violin.widthRatio);
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
+
function On() {
|
|
438
439
|
let e = 0;
|
|
439
|
-
|
|
440
|
+
en.value && (e = Array.from(en.value.querySelectorAll("text")).reduce((e, t) => {
|
|
440
441
|
let n = t.getComputedTextLength();
|
|
441
442
|
return n > e ? n : e;
|
|
442
443
|
}, 0));
|
|
443
|
-
let t =
|
|
444
|
+
let t = Qt.value ? Qt.value.getBoundingClientRect().width : 0;
|
|
444
445
|
return e + t + (t ? 24 : 0);
|
|
445
446
|
}
|
|
446
|
-
let
|
|
447
|
-
|
|
447
|
+
let kn = x(0), An = De((e) => {
|
|
448
|
+
kn.value = e;
|
|
448
449
|
}, 100);
|
|
449
|
-
|
|
450
|
-
let t =
|
|
450
|
+
Ke((e) => {
|
|
451
|
+
let t = $t.value;
|
|
451
452
|
if (!t) return;
|
|
452
453
|
let n = new ResizeObserver((e) => {
|
|
453
|
-
|
|
454
|
+
An(e[0].contentRect.height);
|
|
454
455
|
});
|
|
455
456
|
n.observe(t), e(() => n.disconnect());
|
|
456
|
-
}),
|
|
457
|
-
|
|
457
|
+
}), Be(() => {
|
|
458
|
+
kn.value = 0;
|
|
458
459
|
});
|
|
459
|
-
let
|
|
460
|
+
let jn = d(() => {
|
|
460
461
|
let e = 0;
|
|
461
|
-
|
|
462
|
+
Zt.value && (e = Zt.value.getBBox().height + N.value.style.chart.labels.axis.fontSize / 3 + 12 + N.value.style.chart.labels.axis.xLabelOffsetY);
|
|
462
463
|
let t = 0;
|
|
463
|
-
return
|
|
464
|
+
return $t.value && (t = kn.value + 12), e + t;
|
|
464
465
|
}), U = d(() => {
|
|
465
|
-
let e =
|
|
466
|
+
let e = On(), t = wn.value.left + e + N.value.style.chart.labels.axis.yLabelOffsetX + 5, n = R.value - wn.value.right, r = Math.max(0, n - t), i = wn.value.top + N.value.style.chart.plots.radius + N.value.style.chart.labels.bestPlotLabel.fontSize, a = z.value - wn.value.bottom - jn.value, o = Math.max(0, a - i), s = Array.isArray(cn.value) ? cn.value.length : 0;
|
|
466
467
|
return {
|
|
467
468
|
left: t,
|
|
468
469
|
right: n,
|
|
@@ -474,15 +475,15 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
474
475
|
absoluteHeight: z.value
|
|
475
476
|
};
|
|
476
477
|
});
|
|
477
|
-
function
|
|
478
|
+
function Mn(e) {
|
|
478
479
|
return U.value.left + (e + 1) * U.value.stripWidth - U.value.stripWidth / 2;
|
|
479
480
|
}
|
|
480
|
-
let W = d(() =>
|
|
481
|
+
let W = d(() => cn.value.map((e, t) => {
|
|
481
482
|
let n = r();
|
|
482
483
|
return {
|
|
483
484
|
...e,
|
|
484
485
|
id: n,
|
|
485
|
-
color: e.color ? ae(e.color) :
|
|
486
|
+
color: e.color ? ae(e.color) : Sn.value[t] || s[t] || s[t % s.length],
|
|
486
487
|
plots: e.plots.map((i, a) => ({
|
|
487
488
|
...i,
|
|
488
489
|
value: pe(i.value),
|
|
@@ -490,7 +491,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
490
491
|
parentName: e.name,
|
|
491
492
|
parentIndex: t,
|
|
492
493
|
plotIndex: a,
|
|
493
|
-
color: e.color ? ae(e.color) :
|
|
494
|
+
color: e.color ? ae(e.color) : Sn.value[t] || s[t] || s[t % s.length],
|
|
494
495
|
id: r()
|
|
495
496
|
})).sort((e, t) => e.value - t.value)
|
|
496
497
|
};
|
|
@@ -498,19 +499,19 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
498
499
|
...e,
|
|
499
500
|
plots: e.plots.map((e) => ({
|
|
500
501
|
...e,
|
|
501
|
-
x:
|
|
502
|
+
x: Mn(t)
|
|
502
503
|
}))
|
|
503
|
-
}))),
|
|
504
|
+
}))), Nn = d(() => Math.max(...G.value.map((e) => e.plots.length))), Pn = d(() => {
|
|
504
505
|
let e = G.value.flatMap((e) => e.plots.map((e) => e.value));
|
|
505
506
|
return {
|
|
506
507
|
max: Math.max(...e),
|
|
507
508
|
min: Math.min(...e)
|
|
508
509
|
};
|
|
509
|
-
}), K = d(() => se(
|
|
510
|
+
}), K = d(() => se(Pn.value.min < 0 ? Pn.value.min : 0, Pn.value.max, N.value.style.chart.grid.scaleSteps)), q = d(() => (G.value || []).map((e, t) => {
|
|
510
511
|
let n = e.plots.map((e) => ({
|
|
511
512
|
...e,
|
|
512
513
|
y: U.value.bottom - (e.value + Math.abs(K.value.min)) / (K.value.max + Math.abs(K.value.min)) * U.value.height
|
|
513
|
-
})), r =
|
|
514
|
+
})), r = an.value === "classic" ? n.map(() => 0) : Rn(n);
|
|
514
515
|
return {
|
|
515
516
|
...e,
|
|
516
517
|
plots: n.map((e, t) => ({
|
|
@@ -518,19 +519,19 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
518
519
|
x: e.x + r[t]
|
|
519
520
|
}))
|
|
520
521
|
};
|
|
521
|
-
})), J = d(() =>
|
|
522
|
-
function
|
|
522
|
+
})), J = d(() => an.value === "violin" && !!N.value.style.chart.violin?.boxPlot?.show);
|
|
523
|
+
function Fn(e, t) {
|
|
523
524
|
if (!e.length) return 0;
|
|
524
525
|
if (e.length === 1) return e[0];
|
|
525
526
|
let n = (e.length - 1) * t, r = Math.floor(n), i = n - r, a = e[r + 1];
|
|
526
527
|
return a === void 0 ? e[r] : e[r] + i * (a - e[r]);
|
|
527
528
|
}
|
|
528
|
-
function
|
|
529
|
+
function In(e) {
|
|
529
530
|
let t = K.value.max + Math.abs(K.value.min);
|
|
530
531
|
return t ? U.value.bottom - (e + Math.abs(K.value.min)) / t * U.value.height : U.value.bottom;
|
|
531
532
|
}
|
|
532
533
|
let Y = d(() => J.value ? q.value.map((e, t) => {
|
|
533
|
-
let n = e.plots.map((e) => e.value).sort((e, t) => e - t), r =
|
|
534
|
+
let n = e.plots.map((e) => e.value).sort((e, t) => e - t), r = Fn(n, .25), i = Fn(n, .5), a = Fn(n, .75), o = a - r, s = r - o * 1.5, c = a + o * 1.5, ee = n.find((e) => e >= s), te = n.slice().reverse().find((e) => e <= c), ne = Mn(t), re = Math.max(V.value * 2.8, Math.min(Dn() * .32, U.value.stripWidth * .12)) * Math.min(1.5, N.value.style.chart.violin.boxPlot.widthRatio);
|
|
534
535
|
return {
|
|
535
536
|
id: e.id,
|
|
536
537
|
boxPlotColor: N.value.style.chart.violin.boxPlot.useSerieColor ? e.color : N.value.style.chart.violin.boxPlot.color,
|
|
@@ -548,13 +549,13 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
548
549
|
centerX: ne,
|
|
549
550
|
boxLeft: ne - re / 2,
|
|
550
551
|
boxWidth: re,
|
|
551
|
-
q1Y:
|
|
552
|
-
medianY:
|
|
553
|
-
q3Y:
|
|
554
|
-
lowerY:
|
|
555
|
-
upperY:
|
|
552
|
+
q1Y: In(r),
|
|
553
|
+
medianY: In(i),
|
|
554
|
+
q3Y: In(a),
|
|
555
|
+
lowerY: In(ee ?? n[0]),
|
|
556
|
+
upperY: In(te ?? n[n.length - 1])
|
|
556
557
|
};
|
|
557
|
-
}) : []),
|
|
558
|
+
}) : []), Ln = d(() => [
|
|
558
559
|
N.value.table.columnNames.series,
|
|
559
560
|
N.value.style.chart.violin.tooltipLabels.lowerAdjacent,
|
|
560
561
|
N.value.style.chart.violin.tooltipLabels.q1,
|
|
@@ -572,8 +573,8 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
572
573
|
r: N.value.table.td.roundingValue
|
|
573
574
|
});
|
|
574
575
|
}
|
|
575
|
-
function
|
|
576
|
-
let t =
|
|
576
|
+
function Rn(e) {
|
|
577
|
+
let t = an.value === "violin" ? Math.max(0, Dn() - V.value * 1.15) : Math.max(0, U.value.stripWidth / 2 - V.value * 1.5);
|
|
577
578
|
if (!e.length || !t) return e.map(() => 0);
|
|
578
579
|
let n = e.map(() => 0), r = V.value * 2.1, i = Math.min(t, r), a = [0];
|
|
579
580
|
for (let e = i; e <= t + i / 2; e += i) a.push(-Math.min(e, t)), a.push(Math.min(e, t));
|
|
@@ -589,39 +590,39 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
589
590
|
});
|
|
590
591
|
}), n;
|
|
591
592
|
}
|
|
592
|
-
let
|
|
593
|
+
let zn = d(() => an.value === "violin" ? q.value.map((e, t) => ({
|
|
593
594
|
id: e.id,
|
|
594
595
|
color: N.value.style.chart.violin.useSerieColor ? e.color : N.value.style.chart.violin.stroke,
|
|
595
596
|
fill: N.value.style.chart.violin.useSerieColor ? e.color : N.value.style.chart.violin.fill,
|
|
596
|
-
path:
|
|
597
|
-
connectors:
|
|
597
|
+
path: Bn(e.plots, t),
|
|
598
|
+
connectors: Vn(e.plots, t)
|
|
598
599
|
})) : []);
|
|
599
|
-
function
|
|
600
|
-
let n =
|
|
600
|
+
function Bn(e, t) {
|
|
601
|
+
let n = Dn();
|
|
601
602
|
if (!e.length || !U.value.height || !n) return "";
|
|
602
|
-
let r =
|
|
603
|
+
let r = Mn(t), i = e.map((e) => e.y), a = Z(i), o = Un({
|
|
603
604
|
yValues: i,
|
|
604
605
|
bandwidth: a
|
|
605
606
|
});
|
|
606
|
-
return o.length > 1 ? o.map((e) =>
|
|
607
|
+
return o.length > 1 ? o.map((e) => Gn({
|
|
607
608
|
yValues: e,
|
|
608
609
|
centerX: r,
|
|
609
|
-
maxWidth:
|
|
610
|
+
maxWidth: Hn({
|
|
610
611
|
clusterLength: e.length,
|
|
611
612
|
totalLength: i.length,
|
|
612
613
|
maxWidth: n
|
|
613
614
|
}),
|
|
614
615
|
bandwidth: Z(e)
|
|
615
|
-
})).join(" ") :
|
|
616
|
+
})).join(" ") : Gn({
|
|
616
617
|
yValues: i,
|
|
617
618
|
centerX: r,
|
|
618
619
|
maxWidth: n,
|
|
619
620
|
bandwidth: a
|
|
620
621
|
});
|
|
621
622
|
}
|
|
622
|
-
function
|
|
623
|
+
function Vn(e, t) {
|
|
623
624
|
if (!e.length) return [];
|
|
624
|
-
let n =
|
|
625
|
+
let n = Mn(t), r = e.map((e) => e.y), i = Un({
|
|
625
626
|
yValues: r,
|
|
626
627
|
bandwidth: Z(r)
|
|
627
628
|
});
|
|
@@ -634,7 +635,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
634
635
|
};
|
|
635
636
|
});
|
|
636
637
|
}
|
|
637
|
-
function
|
|
638
|
+
function Hn({ clusterLength: e, totalLength: t, maxWidth: n }) {
|
|
638
639
|
let r = (e / t) ** .6, i = e <= 2 ? .72 : 1;
|
|
639
640
|
return Math.max(V.value * 2.2, n * l(r * i, .18, 1));
|
|
640
641
|
}
|
|
@@ -642,13 +643,13 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
642
643
|
let t = e.reduce((e, t) => e + t, 0) / Math.max(1, e.length), n = e.reduce((e, n) => e + (n - t) ** 2, 0) / Math.max(1, e.length), r = Math.sqrt(n), i = e.length < 2 ? Math.max(V.value * 2.6, U.value.height / 48) : V.value * 2.1;
|
|
643
644
|
return l(1.06 * r * e.length ** -.2, i, U.value.height / 5);
|
|
644
645
|
}
|
|
645
|
-
function
|
|
646
|
+
function Un({ yValues: e, bandwidth: t }) {
|
|
646
647
|
if (e.length < 2) return [e];
|
|
647
648
|
let n = [...e].sort((e, t) => e - t), r = Math.max(t * 1.45, V.value * 5), i = [], a = [n[0]];
|
|
648
649
|
for (let e = 1; e < n.length; e += 1) Math.abs(n[e] - n[e - 1]) > r ? (i.push(a), a = [n[e]]) : a.push(n[e]);
|
|
649
|
-
return i.push(a),
|
|
650
|
+
return i.push(a), Wn(i);
|
|
650
651
|
}
|
|
651
|
-
function
|
|
652
|
+
function Wn(e) {
|
|
652
653
|
return e.reduce((e, t) => {
|
|
653
654
|
let n = e[e.length - 1];
|
|
654
655
|
if (!n) return e.push(t), e;
|
|
@@ -656,7 +657,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
656
657
|
return Math.max(...n) + r * 2.35 >= Math.min(...t) - i * 2.35 ? n.push(...t) : e.push(t), e;
|
|
657
658
|
}, []);
|
|
658
659
|
}
|
|
659
|
-
function
|
|
660
|
+
function Gn({ yValues: e, centerX: t, maxWidth: n, bandwidth: r }) {
|
|
660
661
|
let i = l(Math.min(...e) - r * 2.35, U.value.top, U.value.bottom), a = l(Math.max(...e) + r * 2.35, U.value.top, U.value.bottom), o = Math.max(48, Math.min(120, Math.round((a - i) / Math.max(1, r / 4)))), s = Array.from({ length: o }, (t, n) => {
|
|
661
662
|
let s = i + (a - i) * n / Math.max(1, o - 1);
|
|
662
663
|
return {
|
|
@@ -681,9 +682,9 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
681
682
|
x: H(t + e.width),
|
|
682
683
|
y: e.y
|
|
683
684
|
}));
|
|
684
|
-
return `${
|
|
685
|
+
return `${Kn([...te, ...ne])} Z`;
|
|
685
686
|
}
|
|
686
|
-
function
|
|
687
|
+
function Kn(e) {
|
|
687
688
|
if (!e.length) return "";
|
|
688
689
|
if (e.length === 1) return `M ${e[0].x} ${e[0].y}`;
|
|
689
690
|
let t = `M ${e[0].x} ${e[0].y}`;
|
|
@@ -694,25 +695,25 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
694
695
|
let n = e[e.length - 1];
|
|
695
696
|
return `${t} L ${n.x} ${n.y}`;
|
|
696
697
|
}
|
|
697
|
-
let
|
|
698
|
+
let qn = d(() => K.value.ticks.map((e) => ({
|
|
698
699
|
y: U.value.bottom - U.value.height * ((e + Math.abs(K.value.min)) / (K.value.max + Math.abs(K.value.min))),
|
|
699
700
|
x1: U.value.left,
|
|
700
701
|
x2: U.value.right,
|
|
701
702
|
value: e
|
|
702
|
-
}))),
|
|
703
|
-
function
|
|
703
|
+
}))), Jn = x(null), Q = x(null);
|
|
704
|
+
function Yn({ datapoint: e, seriesIndex: t }) {
|
|
704
705
|
M.value !== "keyboard" && (k.value = !1, Q.value = null, N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
705
706
|
datapoint: e,
|
|
706
707
|
seriesIndex: t
|
|
707
708
|
}));
|
|
708
709
|
}
|
|
709
|
-
function
|
|
710
|
-
|
|
710
|
+
function Xn({ datapoint: e, seriesIndex: t }) {
|
|
711
|
+
Lt("selectDatapoint", e), N.value.events.datapointClick && N.value.events.datapointClick({
|
|
711
712
|
datapoint: e,
|
|
712
713
|
seriesIndex: t
|
|
713
714
|
});
|
|
714
715
|
}
|
|
715
|
-
function
|
|
716
|
+
function Zn(e, t = {}) {
|
|
716
717
|
return ce(N.value.style.chart.labels.formatter, e, a({
|
|
717
718
|
p: N.value.style.chart.labels.prefix,
|
|
718
719
|
v: e,
|
|
@@ -720,11 +721,11 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
720
721
|
r: N.value.style.chart.tooltip.roundingValue
|
|
721
722
|
}), t);
|
|
722
723
|
}
|
|
723
|
-
function
|
|
724
|
+
function Qn({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
724
725
|
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
725
726
|
datapoint: e,
|
|
726
727
|
seriesIndex: t
|
|
727
|
-
}), M.value = n,
|
|
728
|
+
}), M.value = n, Jn.value = {
|
|
728
729
|
datapoint: e,
|
|
729
730
|
seriesIndex: t,
|
|
730
731
|
config: N.value,
|
|
@@ -736,7 +737,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
736
737
|
datapoint: e,
|
|
737
738
|
series: W.value,
|
|
738
739
|
config: N.value
|
|
739
|
-
})))
|
|
740
|
+
}))) Bt.value = r({
|
|
740
741
|
seriesIndex: t,
|
|
741
742
|
datapoint: e,
|
|
742
743
|
series: W.value,
|
|
@@ -744,17 +745,17 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
744
745
|
});
|
|
745
746
|
else {
|
|
746
747
|
let n = "";
|
|
747
|
-
n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${N.value.style.chart.plots.gradient.show ? `url(#${e.parentId})` : e.color}"/></svg>${e.name}</div>`, n += `<div>${
|
|
748
|
+
n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${N.value.style.chart.plots.gradient.show ? `url(#${e.parentId})` : e.color}"/></svg>${e.name}</div>`, n += `<div>${Zn(e.value, {
|
|
748
749
|
datapoint: e,
|
|
749
750
|
seriesIndex: t
|
|
750
|
-
})}</div>`,
|
|
751
|
+
})}</div>`, Bt.value = `<div>${n}</div>`;
|
|
751
752
|
}
|
|
752
753
|
}
|
|
753
|
-
function
|
|
754
|
+
function $n() {
|
|
754
755
|
M.value !== "keyboard" && (k.value = !1, Q.value = null);
|
|
755
756
|
}
|
|
756
|
-
function
|
|
757
|
-
M.value = n, Q.value = null, k.value = !0,
|
|
757
|
+
function er({ boxPlot: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
758
|
+
M.value = n, Q.value = null, k.value = !0, Jn.value = {
|
|
758
759
|
boxPlot: e,
|
|
759
760
|
seriesIndex: t,
|
|
760
761
|
config: N.value,
|
|
@@ -769,7 +770,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
769
770
|
config: N.value
|
|
770
771
|
};
|
|
771
772
|
if (ue(() => r(n))) {
|
|
772
|
-
|
|
773
|
+
Bt.value = r(n);
|
|
773
774
|
return;
|
|
774
775
|
}
|
|
775
776
|
} catch {}
|
|
@@ -780,23 +781,23 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
780
781
|
[N.value.style.chart.violin.tooltipLabels.q1, e.q1],
|
|
781
782
|
[N.value.style.chart.violin.tooltipLabels.lowerAdjacent, e.lowerAdjacent],
|
|
782
783
|
[N.value.style.chart.violin.tooltipLabels.iqr, e.iqr]
|
|
783
|
-
], a = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="1" y="1" width="10" height="10" rx="2" stroke="none" fill="${e.color}"/></svg>`, o = i.map(([n, r]) => `<div style="display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;"><span>${n}</span><b>${
|
|
784
|
+
], a = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="1" y="1" width="10" height="10" rx="2" stroke="none" fill="${e.color}"/></svg>`, o = i.map(([n, r]) => `<div style="display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;"><span>${n}</span><b>${Zn(r, {
|
|
784
785
|
boxPlot: e,
|
|
785
786
|
seriesIndex: t
|
|
786
787
|
})}</b></div>`).join("");
|
|
787
|
-
|
|
788
|
+
Bt.value = `<div style="min-width:160px;"><div style="display:flex;flex-direction:row;gap:6px;align-items:center;margin-bottom:6px;">${a}${e.name}</div>` + o + `<div style="display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;margin-top:6px;"><span>${N.value.style.chart.violin.tooltipLabels.count}</span><b>${e.count}</b></div></div>`;
|
|
788
789
|
}
|
|
789
|
-
let
|
|
790
|
+
let tr = d(() => ({
|
|
790
791
|
head: G.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((t) => ({
|
|
791
792
|
name: `${e.name} - ${t.name}`,
|
|
792
793
|
color: t.color
|
|
793
794
|
}))),
|
|
794
795
|
body: G.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((e) => e.value))
|
|
795
796
|
}));
|
|
796
|
-
function
|
|
797
|
-
|
|
797
|
+
function nr(e = null) {
|
|
798
|
+
Re(() => {
|
|
798
799
|
let t = [], n = [N.value.table.columnNames.series, N.value.table.columnNames.value];
|
|
799
|
-
J.value ? (n =
|
|
800
|
+
J.value ? (n = Ln.value, t = Y.value.map((e) => [
|
|
800
801
|
[e.name],
|
|
801
802
|
[e.lowerAdjacent],
|
|
802
803
|
[e.q1],
|
|
@@ -805,7 +806,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
805
806
|
[e.upperAdjacent],
|
|
806
807
|
[e.iqr],
|
|
807
808
|
[e.count]
|
|
808
|
-
])) : t =
|
|
809
|
+
])) : t = tr.value.head.map((e, t) => [[e.name], [tr.value.body[t]]]);
|
|
809
810
|
let r = ee([
|
|
810
811
|
[N.value.style.chart.title.text],
|
|
811
812
|
[N.value.style.chart.title.subtitle.text],
|
|
@@ -817,9 +818,9 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
817
818
|
});
|
|
818
819
|
});
|
|
819
820
|
}
|
|
820
|
-
let
|
|
821
|
+
let rr = d(() => {
|
|
821
822
|
if (J.value) {
|
|
822
|
-
let e =
|
|
823
|
+
let e = Ln.value;
|
|
823
824
|
return {
|
|
824
825
|
colNames: e,
|
|
825
826
|
head: e,
|
|
@@ -851,10 +852,10 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
851
852
|
}
|
|
852
853
|
};
|
|
853
854
|
}
|
|
854
|
-
let e = [N.value.table.columnNames.series, N.value.table.columnNames.value], t =
|
|
855
|
+
let e = [N.value.table.columnNames.series, N.value.table.columnNames.value], t = tr.value.head.map((e, t) => {
|
|
855
856
|
let n = a({
|
|
856
857
|
p: N.value.style.chart.labels.prefix,
|
|
857
|
-
v:
|
|
858
|
+
v: tr.value.body[t],
|
|
858
859
|
s: N.value.style.chart.labels.suffix,
|
|
859
860
|
r: N.value.table.td.roundingValue
|
|
860
861
|
});
|
|
@@ -882,26 +883,26 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
882
883
|
config: n
|
|
883
884
|
};
|
|
884
885
|
}), $ = x(!1);
|
|
885
|
-
function
|
|
886
|
-
$.value = e,
|
|
886
|
+
function ir(e) {
|
|
887
|
+
$.value = e, zt.value += 1;
|
|
887
888
|
}
|
|
888
|
-
function
|
|
889
|
+
function ar() {
|
|
889
890
|
return G.value;
|
|
890
891
|
}
|
|
891
|
-
function
|
|
892
|
+
function or() {
|
|
892
893
|
B.value.showTable = !B.value.showTable;
|
|
893
894
|
}
|
|
894
|
-
function
|
|
895
|
+
function sr() {
|
|
895
896
|
B.value.dataLabels.show = !B.value.dataLabels.show;
|
|
896
897
|
}
|
|
897
|
-
function
|
|
898
|
+
function cr() {
|
|
898
899
|
B.value.showTooltip = !B.value.showTooltip;
|
|
899
900
|
}
|
|
900
|
-
let
|
|
901
|
-
function
|
|
902
|
-
|
|
901
|
+
let lr = x(!1);
|
|
902
|
+
function ur() {
|
|
903
|
+
lr.value = !lr.value;
|
|
903
904
|
}
|
|
904
|
-
async function
|
|
905
|
+
async function dr({ scale: e = 2 } = {}) {
|
|
905
906
|
if (!A.value) return;
|
|
906
907
|
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
|
|
907
908
|
domElement: A.value,
|
|
@@ -918,10 +919,10 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
918
919
|
aspectRatio: r
|
|
919
920
|
};
|
|
920
921
|
}
|
|
921
|
-
let
|
|
922
|
+
let fr = d(() => G.value.map((e) => e.name));
|
|
922
923
|
Se({
|
|
923
|
-
timeLabelsEls:
|
|
924
|
-
timeLabels:
|
|
924
|
+
timeLabelsEls: $t,
|
|
925
|
+
timeLabels: fr,
|
|
925
926
|
slicer: x({
|
|
926
927
|
start: 0,
|
|
927
928
|
end: G.value.length
|
|
@@ -948,10 +949,10 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
948
949
|
targetClass: ".vue-ui-strip-plot-category-name",
|
|
949
950
|
rotation: N.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
950
951
|
});
|
|
951
|
-
let
|
|
952
|
+
let pr = d(() => {
|
|
952
953
|
let e = N.value.table.useDialog && !N.value.table.show, t = B.value.showTable;
|
|
953
954
|
return {
|
|
954
|
-
component: e ?
|
|
955
|
+
component: e ? Mt : Dt,
|
|
955
956
|
title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
|
|
956
957
|
props: e ? {
|
|
957
958
|
backgroundColor: N.value.table.th.backgroundColor,
|
|
@@ -979,46 +980,46 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
979
980
|
}
|
|
980
981
|
};
|
|
981
982
|
});
|
|
982
|
-
|
|
983
|
-
N.value.table.show || (e && N.value.table.useDialog &&
|
|
983
|
+
Ge(() => B.value.showTable, (e) => {
|
|
984
|
+
N.value.table.show || (e && N.value.table.useDialog && qt.value ? qt.value.open() : "close" in qt.value && qt.value.close());
|
|
984
985
|
});
|
|
985
|
-
function
|
|
986
|
-
B.value.showTable = !1,
|
|
986
|
+
function mr() {
|
|
987
|
+
B.value.showTable = !1, Jt.value && Jt.value.setTableIconState(!1);
|
|
987
988
|
}
|
|
988
|
-
let
|
|
989
|
+
let hr = d(() => N.value.style.chart.backgroundColor), { exportSvg: gr, getSvg: _r } = ye({
|
|
989
990
|
svg: F,
|
|
990
991
|
title: d(() => N.value.style.chart.title),
|
|
991
|
-
backgroundColor:
|
|
992
|
+
backgroundColor: hr
|
|
992
993
|
});
|
|
993
|
-
async function
|
|
994
|
-
|
|
994
|
+
async function vr({ isCb: e }) {
|
|
995
|
+
Xt.value = !0, await Re();
|
|
995
996
|
try {
|
|
996
997
|
if (e) {
|
|
997
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
998
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await _r();
|
|
998
999
|
await Promise.resolve(N.value.userOptions.callbacks.svg({
|
|
999
1000
|
blob: e,
|
|
1000
1001
|
url: t,
|
|
1001
1002
|
text: n,
|
|
1002
1003
|
dataUrl: r
|
|
1003
1004
|
}));
|
|
1004
|
-
} else await Promise.resolve(
|
|
1005
|
+
} else await Promise.resolve(gr());
|
|
1005
1006
|
} finally {
|
|
1006
|
-
|
|
1007
|
+
Xt.value = !1;
|
|
1007
1008
|
}
|
|
1008
1009
|
}
|
|
1009
|
-
function
|
|
1010
|
+
function yr(e) {
|
|
1010
1011
|
if (e?.stage === "start") {
|
|
1011
|
-
|
|
1012
|
+
Yt.value = !0;
|
|
1012
1013
|
return;
|
|
1013
1014
|
}
|
|
1014
1015
|
if (e?.stage === "end") {
|
|
1015
|
-
|
|
1016
|
+
Yt.value = !1;
|
|
1016
1017
|
return;
|
|
1017
1018
|
}
|
|
1018
|
-
|
|
1019
|
+
bn();
|
|
1019
1020
|
}
|
|
1020
|
-
async function
|
|
1021
|
-
if (
|
|
1021
|
+
async function br() {
|
|
1022
|
+
if (Lt("copyAlt", {
|
|
1022
1023
|
config: N.value,
|
|
1023
1024
|
dataset: q.value
|
|
1024
1025
|
}), !N.value.userOptions.callbacks.altCopy) {
|
|
@@ -1030,107 +1031,107 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1030
1031
|
dataset: q.value
|
|
1031
1032
|
}));
|
|
1032
1033
|
}
|
|
1033
|
-
function
|
|
1034
|
+
function xr() {
|
|
1034
1035
|
return q.value.length;
|
|
1035
1036
|
}
|
|
1036
|
-
function
|
|
1037
|
+
function Sr(e) {
|
|
1037
1038
|
return q.value[e]?.plots ?? [];
|
|
1038
1039
|
}
|
|
1039
|
-
function
|
|
1040
|
-
return !Number.isInteger(e) || !Number.isInteger(t) ? null :
|
|
1040
|
+
function Cr(e = j.value, t = tn.value) {
|
|
1041
|
+
return !Number.isInteger(e) || !Number.isInteger(t) ? null : Sr(e)[t] ?? null;
|
|
1041
1042
|
}
|
|
1042
|
-
function
|
|
1043
|
-
j.value = null,
|
|
1043
|
+
function wr() {
|
|
1044
|
+
j.value = null, tn.value = null, M.value = "pointer", k.value = !1, Q.value = null;
|
|
1044
1045
|
}
|
|
1045
|
-
function
|
|
1046
|
+
function Tr(e) {
|
|
1046
1047
|
if (!e || !F.value) return;
|
|
1047
1048
|
let t = F.value.getBoundingClientRect();
|
|
1048
|
-
|
|
1049
|
+
nn.value = {
|
|
1049
1050
|
x: t.left + e.x / R.value * t.width,
|
|
1050
1051
|
y: t.top + e.y / z.value * t.height
|
|
1051
1052
|
};
|
|
1052
1053
|
}
|
|
1053
|
-
function
|
|
1054
|
-
let n =
|
|
1055
|
-
n && (j.value = e,
|
|
1054
|
+
function Er(e, t) {
|
|
1055
|
+
let n = Cr(e, t);
|
|
1056
|
+
n && (j.value = e, tn.value = t, M.value = "keyboard", Tr(n), Qn({
|
|
1056
1057
|
datapoint: n,
|
|
1057
1058
|
seriesIndex: e,
|
|
1058
1059
|
triggerMode: "keyboard"
|
|
1059
1060
|
}));
|
|
1060
1061
|
}
|
|
1061
|
-
function
|
|
1062
|
-
|
|
1062
|
+
function Dr() {
|
|
1063
|
+
rn.value = !0, j.value = null, tn.value = null;
|
|
1063
1064
|
}
|
|
1064
|
-
function
|
|
1065
|
-
|
|
1065
|
+
function Or() {
|
|
1066
|
+
rn.value = !1, wr();
|
|
1066
1067
|
}
|
|
1067
|
-
function
|
|
1068
|
-
if (!F.value ||
|
|
1068
|
+
function kr(e) {
|
|
1069
|
+
if (!F.value || lr.value || document.activeElement !== F.value || !xr()) return;
|
|
1069
1070
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
1070
1071
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
1071
1072
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1072
|
-
|
|
1073
|
+
wr();
|
|
1073
1074
|
return;
|
|
1074
1075
|
}
|
|
1075
|
-
let s = j.value, c =
|
|
1076
|
+
let s = j.value, c = tn.value;
|
|
1076
1077
|
if (s === null || c === null) s = 0, c = 0;
|
|
1077
1078
|
else if (t || n) {
|
|
1078
|
-
let e =
|
|
1079
|
+
let e = xr();
|
|
1079
1080
|
s = n ? (s + 1) % e : (s - 1 + e) % e;
|
|
1080
|
-
let t =
|
|
1081
|
+
let t = Sr(s);
|
|
1081
1082
|
if (!t.length) return;
|
|
1082
1083
|
c = Math.min(c, t.length - 1);
|
|
1083
1084
|
} else if (r || i) {
|
|
1084
|
-
let e =
|
|
1085
|
+
let e = Sr(s);
|
|
1085
1086
|
if (!e.length) return;
|
|
1086
1087
|
c = r ? (c + 1) % e.length : (c - 1 + e.length) % e.length;
|
|
1087
1088
|
}
|
|
1088
1089
|
if (a) {
|
|
1089
|
-
let e =
|
|
1090
|
+
let e = Cr();
|
|
1090
1091
|
if (!e) return;
|
|
1091
|
-
|
|
1092
|
+
Xn({
|
|
1092
1093
|
datapoint: e,
|
|
1093
1094
|
seriesIndex: j.value
|
|
1094
1095
|
});
|
|
1095
1096
|
return;
|
|
1096
1097
|
}
|
|
1097
|
-
|
|
1098
|
+
Er(s, c);
|
|
1098
1099
|
}
|
|
1099
|
-
let
|
|
1100
|
-
headers:
|
|
1101
|
-
rows:
|
|
1100
|
+
let Ar = d(() => ({
|
|
1101
|
+
headers: rr.value?.colNames ?? [],
|
|
1102
|
+
rows: rr.value?.body?.map((e) => e.map((e) => e && typeof e == "object" && "name" in e ? e.name : e)) ?? []
|
|
1102
1103
|
}));
|
|
1103
1104
|
return Ee({
|
|
1104
|
-
getData:
|
|
1105
|
-
getImage:
|
|
1106
|
-
generatePdf:
|
|
1107
|
-
generateCsv:
|
|
1108
|
-
generateImage:
|
|
1109
|
-
generateSvg:
|
|
1110
|
-
toggleTable:
|
|
1111
|
-
toggleLabels:
|
|
1112
|
-
toggleTooltip:
|
|
1113
|
-
toggleAnnotator:
|
|
1114
|
-
toggleFullscreen:
|
|
1115
|
-
copyAlt:
|
|
1105
|
+
getData: ar,
|
|
1106
|
+
getImage: dr,
|
|
1107
|
+
generatePdf: yn,
|
|
1108
|
+
generateCsv: nr,
|
|
1109
|
+
generateImage: bn,
|
|
1110
|
+
generateSvg: vr,
|
|
1111
|
+
toggleTable: or,
|
|
1112
|
+
toggleLabels: sr,
|
|
1113
|
+
toggleTooltip: cr,
|
|
1114
|
+
toggleAnnotator: ur,
|
|
1115
|
+
toggleFullscreen: ir,
|
|
1116
|
+
copyAlt: br
|
|
1116
1117
|
}), (e, t) => (b(), m("div", {
|
|
1117
1118
|
ref_key: "stripPlotChart",
|
|
1118
1119
|
ref: A,
|
|
1119
|
-
class:
|
|
1120
|
+
class: ze(`vue-data-ui-component vue-ui-strip-plot ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1120
1121
|
style: y(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height:100%" : ""}`),
|
|
1121
1122
|
id: `strip-plot_${O.value}`,
|
|
1122
|
-
onMouseenter: t[2] ||= () => T(
|
|
1123
|
-
onMouseleave: t[3] ||= () => T(
|
|
1123
|
+
onMouseenter: t[2] ||= () => T(dn)(!0),
|
|
1124
|
+
onMouseleave: t[3] ||= () => T(dn)(!1)
|
|
1124
1125
|
}, [
|
|
1125
1126
|
h("div", {
|
|
1126
1127
|
id: `chart-instructions-${O.value}`,
|
|
1127
1128
|
class: "sr-only"
|
|
1128
|
-
}, [h("p", null, w(N.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
1129
|
-
|
|
1129
|
+
}, [h("p", null, w(N.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
|
|
1130
|
+
Ar.value?.rows?.length ? (b(), f(Ae, {
|
|
1130
1131
|
key: 0,
|
|
1131
1132
|
uid: O.value,
|
|
1132
|
-
head:
|
|
1133
|
-
body:
|
|
1133
|
+
head: Ar.value.headers,
|
|
1134
|
+
body: Ar.value.rows,
|
|
1134
1135
|
notice: N.value.a11y.translations.tableAvailable,
|
|
1135
1136
|
caption: N.value.a11y.translations.tableCaption
|
|
1136
1137
|
}, null, 8, [
|
|
@@ -1140,14 +1141,14 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1140
1141
|
"notice",
|
|
1141
1142
|
"caption"
|
|
1142
1143
|
])) : p("", !0),
|
|
1143
|
-
N.value.userOptions.buttons.annotator ? (b(), f(T(
|
|
1144
|
+
N.value.userOptions.buttons.annotator ? (b(), f(T(At), {
|
|
1144
1145
|
key: 1,
|
|
1145
1146
|
svgRef: T(F),
|
|
1146
1147
|
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1147
1148
|
color: N.value.style.chart.color,
|
|
1148
|
-
active:
|
|
1149
|
+
active: lr.value,
|
|
1149
1150
|
isCursorPointer: P.value,
|
|
1150
|
-
onClose:
|
|
1151
|
+
onClose: ur
|
|
1151
1152
|
}, {
|
|
1152
1153
|
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1153
1154
|
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(_({ color: t })), void 0, !0)]),
|
|
@@ -1163,20 +1164,20 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1163
1164
|
"active",
|
|
1164
1165
|
"isCursorPointer"
|
|
1165
1166
|
])) : p("", !0),
|
|
1166
|
-
|
|
1167
|
+
xn.value ? (b(), m("div", {
|
|
1167
1168
|
key: 2,
|
|
1168
1169
|
ref_key: "noTitle",
|
|
1169
|
-
ref:
|
|
1170
|
+
ref: Ut,
|
|
1170
1171
|
class: "vue-data-ui-no-title-space",
|
|
1171
1172
|
style: "height:36px; width: 100%;background:transparent"
|
|
1172
1173
|
}, null, 512)) : p("", !0),
|
|
1173
1174
|
N.value.style.chart.title.text ? (b(), m("div", {
|
|
1174
1175
|
key: 3,
|
|
1175
1176
|
ref_key: "chartTitle",
|
|
1176
|
-
ref:
|
|
1177
|
+
ref: Vt,
|
|
1177
1178
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1178
1179
|
}, [(b(), f(we, {
|
|
1179
|
-
key: `title_${
|
|
1180
|
+
key: `title_${Gt.value}`,
|
|
1180
1181
|
config: {
|
|
1181
1182
|
title: {
|
|
1182
1183
|
cy: "donut-div-title",
|
|
@@ -1188,14 +1189,14 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1188
1189
|
}
|
|
1189
1190
|
}
|
|
1190
1191
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
1191
|
-
N.value.userOptions.show &&
|
|
1192
|
+
N.value.userOptions.show && Rt.value && (T(fn) || T(un)) ? (b(), f(T(kt), {
|
|
1192
1193
|
ref_key: "userOptionsRef",
|
|
1193
|
-
ref:
|
|
1194
|
-
key: `user_option_${
|
|
1194
|
+
ref: Jt,
|
|
1195
|
+
key: `user_option_${zt.value}`,
|
|
1195
1196
|
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1196
1197
|
color: N.value.style.chart.color,
|
|
1197
|
-
isPrinting: T(
|
|
1198
|
-
isImaging: T(
|
|
1198
|
+
isPrinting: T(_n),
|
|
1199
|
+
isImaging: T(vn),
|
|
1199
1200
|
uid: O.value,
|
|
1200
1201
|
hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
|
|
1201
1202
|
hasPdf: N.value.userOptions.buttons.pdf,
|
|
@@ -1212,23 +1213,23 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1212
1213
|
chartElement: A.value,
|
|
1213
1214
|
position: N.value.userOptions.position,
|
|
1214
1215
|
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
1215
|
-
isAnnotation:
|
|
1216
|
+
isAnnotation: lr.value,
|
|
1216
1217
|
callbacks: N.value.userOptions.callbacks,
|
|
1217
1218
|
printScale: N.value.userOptions.print.scale,
|
|
1218
1219
|
tableDialog: N.value.table.useDialog,
|
|
1219
1220
|
isCursorPointer: P.value,
|
|
1220
|
-
onToggleFullscreen:
|
|
1221
|
-
onGeneratePdf: T(
|
|
1222
|
-
onGenerateCsv:
|
|
1223
|
-
onGenerateImage:
|
|
1224
|
-
onGenerateSvg:
|
|
1225
|
-
onToggleTable:
|
|
1226
|
-
onToggleLabels:
|
|
1227
|
-
onToggleTooltip:
|
|
1228
|
-
onToggleAnnotator:
|
|
1229
|
-
onCopyAlt:
|
|
1230
|
-
style: y({ visibility: T(
|
|
1231
|
-
},
|
|
1221
|
+
onToggleFullscreen: ir,
|
|
1222
|
+
onGeneratePdf: T(yn),
|
|
1223
|
+
onGenerateCsv: nr,
|
|
1224
|
+
onGenerateImage: yr,
|
|
1225
|
+
onGenerateSvg: vr,
|
|
1226
|
+
onToggleTable: or,
|
|
1227
|
+
onToggleLabels: sr,
|
|
1228
|
+
onToggleTooltip: cr,
|
|
1229
|
+
onToggleAnnotator: ur,
|
|
1230
|
+
onCopyAlt: br,
|
|
1231
|
+
style: y({ visibility: T(fn) ? T(un) ? "visible" : "hidden" : "visible" })
|
|
1232
|
+
}, Pe({ _: 2 }, [
|
|
1232
1233
|
e.$slots.menuIcon ? {
|
|
1233
1234
|
name: "menuIcon",
|
|
1234
1235
|
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(_({
|
|
@@ -1304,11 +1305,11 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1304
1305
|
key: "12"
|
|
1305
1306
|
} : void 0
|
|
1306
1307
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : p("", !0),
|
|
1307
|
-
h("div",
|
|
1308
|
+
h("div", Xe, [(b(), m("svg", {
|
|
1308
1309
|
ref_key: "svgRef",
|
|
1309
1310
|
ref: F,
|
|
1310
1311
|
xmlns: T(fe),
|
|
1311
|
-
class:
|
|
1312
|
+
class: ze({
|
|
1312
1313
|
"vue-data-ui-fullscreen--on": $.value,
|
|
1313
1314
|
"vue-data-ui-fulscreen--off": !$.value
|
|
1314
1315
|
}),
|
|
@@ -1316,11 +1317,11 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1316
1317
|
style: y(`max-width:100%; overflow: visible; background:transparent;color:${N.value.style.chart.color};`),
|
|
1317
1318
|
"aria-describedby": `chart-instructions-${O.value}`,
|
|
1318
1319
|
tabindex: "0",
|
|
1319
|
-
onFocus:
|
|
1320
|
-
onBlur:
|
|
1321
|
-
onKeydown:
|
|
1320
|
+
onFocus: Dr,
|
|
1321
|
+
onBlur: Or,
|
|
1322
|
+
onKeydown: kr
|
|
1322
1323
|
}, [
|
|
1323
|
-
|
|
1324
|
+
Ie(T(jt)),
|
|
1324
1325
|
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
1325
1326
|
key: 0,
|
|
1326
1327
|
x: U.value.left,
|
|
@@ -1328,9 +1329,9 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1328
1329
|
width: Math.max(.1, U.value.width),
|
|
1329
1330
|
height: Math.max(.1, U.value.height),
|
|
1330
1331
|
style: { pointerEvents: "none" }
|
|
1331
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1332
|
-
N.value.style.chart.grid.show ? (b(), m("g",
|
|
1333
|
-
N.value.style.chart.grid.horizontalGrid.show ? (b(), m("g",
|
|
1332
|
+
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) : p("", !0),
|
|
1333
|
+
N.value.style.chart.grid.show ? (b(), m("g", $e, [
|
|
1334
|
+
N.value.style.chart.grid.horizontalGrid.show ? (b(), m("g", et, [(b(!0), m(u, null, S(qn.value, (e) => (b(), m("line", {
|
|
1334
1335
|
x1: e.x1,
|
|
1335
1336
|
x2: e.x2,
|
|
1336
1337
|
y1: e.y,
|
|
@@ -1339,8 +1340,8 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1339
1340
|
"stroke-width": N.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
1340
1341
|
"stroke-dasharray": N.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
1341
1342
|
"stroke-linecap": "round"
|
|
1342
|
-
}, null, 8,
|
|
1343
|
-
N.value.style.chart.grid.verticalGrid.show ? (b(), m("g",
|
|
1343
|
+
}, null, 8, tt))), 256))])) : p("", !0),
|
|
1344
|
+
N.value.style.chart.grid.verticalGrid.show ? (b(), m("g", nt, [(b(!0), m(u, null, S(G.value, (e, t) => (b(), m("line", {
|
|
1344
1345
|
x1: U.value.left + (t + 1) * U.value.stripWidth,
|
|
1345
1346
|
x2: U.value.left + (t + 1) * U.value.stripWidth,
|
|
1346
1347
|
y1: U.value.top,
|
|
@@ -1349,7 +1350,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1349
1350
|
"stroke-width": N.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
1350
1351
|
"stroke-dasharray": N.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
1351
1352
|
"stroke-linecap": "round"
|
|
1352
|
-
}, null, 8,
|
|
1353
|
+
}, null, 8, rt))), 256))])) : p("", !0),
|
|
1353
1354
|
h("line", {
|
|
1354
1355
|
x1: U.value.left,
|
|
1355
1356
|
x2: U.value.left,
|
|
@@ -1358,7 +1359,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1358
1359
|
stroke: N.value.style.chart.grid.stroke,
|
|
1359
1360
|
"stroke-width": N.value.style.chart.grid.strokeWidth,
|
|
1360
1361
|
"stroke-linecap": "round"
|
|
1361
|
-
}, null, 8,
|
|
1362
|
+
}, null, 8, it),
|
|
1362
1363
|
h("line", {
|
|
1363
1364
|
x1: U.value.left,
|
|
1364
1365
|
x2: U.value.right,
|
|
@@ -1367,13 +1368,13 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1367
1368
|
stroke: N.value.style.chart.grid.stroke,
|
|
1368
1369
|
"stroke-width": N.value.style.chart.grid.strokeWidth,
|
|
1369
1370
|
"stroke-linecap": "round"
|
|
1370
|
-
}, null, 8,
|
|
1371
|
+
}, null, 8, at)
|
|
1371
1372
|
])) : p("", !0),
|
|
1372
1373
|
N.value.style.chart.labels.yAxisLabels.show ? (b(), m("g", {
|
|
1373
1374
|
key: 2,
|
|
1374
1375
|
ref_key: "scaleLabels",
|
|
1375
|
-
ref:
|
|
1376
|
-
}, [(b(!0), m(u, null, S(
|
|
1376
|
+
ref: en
|
|
1377
|
+
}, [(b(!0), m(u, null, S(qn.value, (e, t) => (b(), m("text", {
|
|
1377
1378
|
x: e.x1 + N.value.style.chart.labels.yAxisLabels.offsetX - 5,
|
|
1378
1379
|
y: e.y + N.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
1379
1380
|
fill: N.value.style.chart.labels.yAxisLabels.color,
|
|
@@ -1387,12 +1388,12 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1387
1388
|
}), {
|
|
1388
1389
|
datapoint: e,
|
|
1389
1390
|
seriesIndex: t
|
|
1390
|
-
})), 9,
|
|
1391
|
+
})), 9, ot))), 256))], 512)) : p("", !0),
|
|
1391
1392
|
N.value.style.chart.labels.xAxisLabels.show ? (b(), m("g", {
|
|
1392
1393
|
key: 3,
|
|
1393
1394
|
ref_key: "timeLabelsEls",
|
|
1394
|
-
ref:
|
|
1395
|
-
}, [(b(!0), m(u, null, S(
|
|
1395
|
+
ref: $t
|
|
1396
|
+
}, [(b(!0), m(u, null, S(fr.value, (e, t) => (b(), m("g", null, [String(e).includes("\n") ? (b(), m("text", {
|
|
1396
1397
|
key: 1,
|
|
1397
1398
|
class: "vue-ui-strip-plot-category-name",
|
|
1398
1399
|
transform: `translate(${U.value.left + (t + 1) * U.value.stripWidth - U.value.stripWidth / 2}, ${U.value.bottom + N.value.style.chart.labels.xAxisLabels.fontSize * 2 + N.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${N.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
@@ -1406,33 +1407,33 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1406
1407
|
x: 0,
|
|
1407
1408
|
y: 0
|
|
1408
1409
|
})
|
|
1409
|
-
}, null, 8,
|
|
1410
|
+
}, null, 8, ct)) : (b(), m("text", {
|
|
1410
1411
|
key: 0,
|
|
1411
1412
|
class: "vue-ui-strip-plot-category-name",
|
|
1412
1413
|
transform: `translate(${U.value.left + (t + 1) * U.value.stripWidth - U.value.stripWidth / 2}, ${U.value.bottom + N.value.style.chart.labels.xAxisLabels.fontSize * 2 + N.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${N.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
1413
1414
|
"font-size": N.value.style.chart.labels.xAxisLabels.fontSize,
|
|
1414
1415
|
fill: N.value.style.chart.labels.xAxisLabels.color,
|
|
1415
1416
|
"text-anchor": N.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : N.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
1416
|
-
}, w(String(e)), 9,
|
|
1417
|
+
}, w(String(e)), 9, st))]))), 256))], 512)) : p("", !0),
|
|
1417
1418
|
N.value.style.chart.labels.axis.yLabel ? (b(), m("text", {
|
|
1418
1419
|
key: 4,
|
|
1419
1420
|
ref_key: "yAxisLabel",
|
|
1420
|
-
ref:
|
|
1421
|
+
ref: Qt,
|
|
1421
1422
|
fill: N.value.style.chart.labels.axis.color,
|
|
1422
1423
|
"font-size": N.value.style.chart.labels.axis.fontSize,
|
|
1423
1424
|
transform: `translate(${N.value.style.chart.labels.axis.fontSize}, ${U.value.top + U.value.height / 2}) rotate(-90)`,
|
|
1424
1425
|
"text-anchor": "middle"
|
|
1425
|
-
}, w(N.value.style.chart.labels.axis.yLabel), 9,
|
|
1426
|
+
}, w(N.value.style.chart.labels.axis.yLabel), 9, lt)) : p("", !0),
|
|
1426
1427
|
N.value.style.chart.labels.axis.xLabel ? (b(), m("text", {
|
|
1427
1428
|
key: 5,
|
|
1428
1429
|
ref_key: "xAxisLabel",
|
|
1429
|
-
ref:
|
|
1430
|
+
ref: Zt,
|
|
1430
1431
|
fill: N.value.style.chart.labels.axis.color,
|
|
1431
1432
|
"font-size": N.value.style.chart.labels.axis.fontSize,
|
|
1432
1433
|
x: U.value.left + U.value.width / 2,
|
|
1433
1434
|
y: z.value - N.value.style.chart.labels.axis.fontSize / 3,
|
|
1434
1435
|
"text-anchor": "middle"
|
|
1435
|
-
}, w(N.value.style.chart.labels.axis.xLabel), 9,
|
|
1436
|
+
}, w(N.value.style.chart.labels.axis.xLabel), 9, ut)) : p("", !0),
|
|
1436
1437
|
Q.value ? (b(), m(u, { key: 6 }, [
|
|
1437
1438
|
h("line", {
|
|
1438
1439
|
x1: U.value.left,
|
|
@@ -1441,41 +1442,47 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1441
1442
|
y2: Q.value.y,
|
|
1442
1443
|
stroke: Q.value.color,
|
|
1443
1444
|
"stroke-width": 1,
|
|
1444
|
-
class:
|
|
1445
|
-
}, null, 10,
|
|
1445
|
+
class: ze({ "select-circle": N.value.useCssAnimation })
|
|
1446
|
+
}, null, 10, dt),
|
|
1446
1447
|
h("circle", {
|
|
1447
1448
|
cx: U.value.left,
|
|
1448
1449
|
cy: Q.value.y,
|
|
1449
1450
|
r: 3,
|
|
1450
1451
|
fill: Q.value.color,
|
|
1451
|
-
class:
|
|
1452
|
-
}, null, 10,
|
|
1452
|
+
class: ze({ "select-circle": N.value.useCssAnimation })
|
|
1453
|
+
}, null, 10, ft),
|
|
1453
1454
|
h("circle", {
|
|
1454
1455
|
cx: U.value.right,
|
|
1455
1456
|
cy: Q.value.y,
|
|
1456
1457
|
r: 3,
|
|
1457
1458
|
fill: Q.value.color,
|
|
1458
|
-
class:
|
|
1459
|
-
}, null, 10,
|
|
1459
|
+
class: ze({ "select-circle": N.value.useCssAnimation })
|
|
1460
|
+
}, null, 10, pt)
|
|
1460
1461
|
], 64)) : p("", !0),
|
|
1461
|
-
h("defs", null, [(b(!0), m(u, null, S(G.value, (e) => (b(),
|
|
1462
|
+
h("defs", null, [(b(!0), m(u, null, S(G.value, (e) => (b(), f(ke, {
|
|
1463
|
+
t: "radial",
|
|
1462
1464
|
id: e.id,
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1465
|
+
key: `r_${e.id}`,
|
|
1466
|
+
fy: "30%",
|
|
1467
|
+
stops: [
|
|
1468
|
+
[
|
|
1469
|
+
"10%",
|
|
1470
|
+
T(n)(e.color, N.value.style.chart.plots.gradient.intensity / 100),
|
|
1471
|
+
1
|
|
1472
|
+
],
|
|
1473
|
+
[
|
|
1474
|
+
"90%",
|
|
1475
|
+
T(de)(e.color, .1),
|
|
1476
|
+
1
|
|
1477
|
+
],
|
|
1478
|
+
[
|
|
1479
|
+
"100%",
|
|
1480
|
+
e.color,
|
|
1481
|
+
1
|
|
1482
|
+
]
|
|
1483
|
+
]
|
|
1484
|
+
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1485
|
+
(b(!0), m(u, null, S(zn.value, (e, n) => (b(), m(u, { key: e.id }, [e.path ? (b(), m("path", {
|
|
1479
1486
|
key: 0,
|
|
1480
1487
|
d: e.path,
|
|
1481
1488
|
fill: e.fill,
|
|
@@ -1487,13 +1494,13 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1487
1494
|
pointerEvents: J.value ? "auto" : "none",
|
|
1488
1495
|
cursor: J.value && P.value ? "pointer" : "default"
|
|
1489
1496
|
}),
|
|
1490
|
-
onMouseenter: (e) => J.value && Y.value[n] &&
|
|
1497
|
+
onMouseenter: (e) => J.value && Y.value[n] && er({
|
|
1491
1498
|
boxPlot: Y.value[n],
|
|
1492
1499
|
seriesIndex: n,
|
|
1493
1500
|
triggerMode: "pointer"
|
|
1494
1501
|
}),
|
|
1495
|
-
onMouseleave: t[0] ||= (e) => J.value &&
|
|
1496
|
-
}, null, 44,
|
|
1502
|
+
onMouseleave: t[0] ||= (e) => J.value && $n()
|
|
1503
|
+
}, null, 44, mt)) : p("", !0), (b(!0), m(u, null, S(e.connectors, (t, n) => (b(), m("line", {
|
|
1497
1504
|
key: `violin_connector_${e.id}_${n}`,
|
|
1498
1505
|
x1: t.x,
|
|
1499
1506
|
x2: t.x,
|
|
@@ -1504,16 +1511,16 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1504
1511
|
"stroke-width": N.value.style.chart.violin.strokeWidth,
|
|
1505
1512
|
"stroke-linecap": "round",
|
|
1506
1513
|
style: { "pointer-events": "none" }
|
|
1507
|
-
}, null, 8,
|
|
1514
|
+
}, null, 8, ht))), 128))], 64))), 128)),
|
|
1508
1515
|
(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("g", {
|
|
1509
1516
|
key: `boxplot_${e.id}`,
|
|
1510
1517
|
style: y({ cursor: P.value ? "pointer" : "default" }),
|
|
1511
|
-
onMouseenter: (n) =>
|
|
1518
|
+
onMouseenter: (n) => er({
|
|
1512
1519
|
boxPlot: e,
|
|
1513
1520
|
seriesIndex: t,
|
|
1514
1521
|
triggerMode: "pointer"
|
|
1515
1522
|
}),
|
|
1516
|
-
onMouseleave:
|
|
1523
|
+
onMouseleave: $n
|
|
1517
1524
|
}, [
|
|
1518
1525
|
h("line", {
|
|
1519
1526
|
x1: e.centerX,
|
|
@@ -1523,7 +1530,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1523
1530
|
stroke: T(de)(e.boxPlotColor, .2),
|
|
1524
1531
|
"stroke-width": Math.max(1, N.value.style.chart.violin.strokeWidth),
|
|
1525
1532
|
"stroke-linecap": "round"
|
|
1526
|
-
}, null, 8,
|
|
1533
|
+
}, null, 8, _t),
|
|
1527
1534
|
h("rect", {
|
|
1528
1535
|
x: e.boxLeft,
|
|
1529
1536
|
y: Math.min(e.q1Y, e.q3Y),
|
|
@@ -1533,40 +1540,40 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1533
1540
|
stroke: T(de)(e.boxPlotColor, .2),
|
|
1534
1541
|
"stroke-width": Math.max(1, N.value.style.chart.violin.strokeWidth),
|
|
1535
1542
|
rx: e.boxWidth / 20
|
|
1536
|
-
}, null, 8,
|
|
1543
|
+
}, null, 8, vt),
|
|
1537
1544
|
h("circle", {
|
|
1538
1545
|
cx: e.boxLeft + e.boxWidth / 2,
|
|
1539
1546
|
cy: e.medianY,
|
|
1540
1547
|
r: e.boxWidth / 3 * Math.min(1, N.value.style.chart.violin.boxPlot.medianCircleRadiusRatio),
|
|
1541
1548
|
fill: N.value.style.chart.violin.boxPlot.medianCircleFill,
|
|
1542
1549
|
stroke: T(de)(e.boxPlotColor, .2)
|
|
1543
|
-
}, null, 8,
|
|
1544
|
-
], 44,
|
|
1545
|
-
(b(!0), m(u, null, S(q.value, (t, n) => (b(), m(u, null, [J.value ? p("", !0) : (b(!0), m(u, { key: 0 }, S(t.plots, (n, r) => (b(), f(Te,
|
|
1550
|
+
}, null, 8, yt)
|
|
1551
|
+
], 44, gt))), 128)),
|
|
1552
|
+
(b(!0), m(u, null, S(q.value, (t, n) => (b(), m(u, null, [J.value ? p("", !0) : (b(!0), m(u, { key: 0 }, S(t.plots, (n, r) => (b(), f(Te, Le({ ref_for: !0 }, e.$attrs, {
|
|
1546
1553
|
plot: {
|
|
1547
1554
|
x: n.x,
|
|
1548
|
-
y:
|
|
1555
|
+
y: Wt.value ? n.y : U.value.top
|
|
1549
1556
|
},
|
|
1550
1557
|
radius: Q.value && Q.value.id === n.id ? V.value * 1.5 : V.value,
|
|
1551
1558
|
shape: N.value.style.chart.plots.shape,
|
|
1552
1559
|
stroke: N.value.style.chart.plots.stroke,
|
|
1553
1560
|
strokeWidth: N.value.style.chart.plots.strokeWidth,
|
|
1554
1561
|
color: N.value.style.chart.plots.gradient.show ? `url(#${t.id})` : t.color,
|
|
1555
|
-
style: `transition: all 0.2s ease-in-out; opacity:${Q.value ? Q.value.id === n.id ? 1 : .2 : N.value.style.chart.plots.opacity};${
|
|
1562
|
+
style: `transition: all 0.2s ease-in-out; opacity:${Q.value ? Q.value.id === n.id ? 1 : .2 : N.value.style.chart.plots.opacity};${Cn.value ? `transition-delay:${r * 50}ms` : ""}`,
|
|
1556
1563
|
class: {
|
|
1557
|
-
"vue-ui-strip-plot-animated": N.value.useCssAnimation &&
|
|
1558
|
-
"vue-ui-strip-plot-select-circle": N.value.useCssAnimation && !
|
|
1564
|
+
"vue-ui-strip-plot-animated": N.value.useCssAnimation && Cn.value && !T(sn),
|
|
1565
|
+
"vue-ui-strip-plot-select-circle": N.value.useCssAnimation && !Cn.value
|
|
1559
1566
|
},
|
|
1560
|
-
onMouseenter: (e) =>
|
|
1567
|
+
onMouseenter: (e) => Qn({
|
|
1561
1568
|
datapoint: n,
|
|
1562
1569
|
seriesIndex: r,
|
|
1563
1570
|
triggerMode: "pointer"
|
|
1564
1571
|
}),
|
|
1565
|
-
onMouseleave: (e) =>
|
|
1572
|
+
onMouseleave: (e) => Yn({
|
|
1566
1573
|
datapoint: n,
|
|
1567
1574
|
seriesIndex: r
|
|
1568
1575
|
}),
|
|
1569
|
-
onClick: (e) =>
|
|
1576
|
+
onClick: (e) => Xn({
|
|
1570
1577
|
datapoint: n,
|
|
1571
1578
|
seriesIndex: r
|
|
1572
1579
|
})
|
|
@@ -1582,14 +1589,14 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1582
1589
|
"onMouseenter",
|
|
1583
1590
|
"onMouseleave",
|
|
1584
1591
|
"onClick"
|
|
1585
|
-
]))), 256)), B.value.dataLabels.show && !J.value ? (b(), m("g",
|
|
1592
|
+
]))), 256)), B.value.dataLabels.show && !J.value ? (b(), m("g", bt, [(b(!0), m(u, null, S(t.plots, (e, n) => (b(), m(u, null, [n === t.plots.length - 1 || Q.value && Q.value.id === e.id && !B.value.showTooltip ? (b(), m("text", {
|
|
1586
1593
|
key: 0,
|
|
1587
1594
|
x: e.x,
|
|
1588
1595
|
y: e.y + N.value.style.chart.labels.bestPlotLabel.offsetY - V.value * (Q.value && Q.value.id === e.id && !B.value.showTooltip ? 2 : 1.5),
|
|
1589
1596
|
"font-size": N.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
1590
1597
|
fill: N.value.style.chart.labels.bestPlotLabel.color,
|
|
1591
1598
|
"text-anchor": "middle",
|
|
1592
|
-
style: y(`opacity:${N.value.useCssAnimation ? +!
|
|
1599
|
+
style: y(`opacity:${N.value.useCssAnimation ? +!Cn.value : 1};transition:opacity 0.2s ease-in;`)
|
|
1593
1600
|
}, w(e.name) + " " + w(N.value.style.chart.labels.bestPlotLabel.showValue ? T(ce)(N.value.style.chart.labels.formatter, e.value, T(a)({
|
|
1594
1601
|
p: `(${N.value.style.chart.labels.prefix}`,
|
|
1595
1602
|
v: e.value,
|
|
@@ -1598,26 +1605,26 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1598
1605
|
}), {
|
|
1599
1606
|
datapoint: e,
|
|
1600
1607
|
seriesIndex: n
|
|
1601
|
-
}) : ""), 13,
|
|
1608
|
+
}) : ""), 13, xt)) : p("", !0)], 64))), 256))])) : p("", !0)], 64))), 256)),
|
|
1602
1609
|
C(e.$slots, "svg", { svg: {
|
|
1603
1610
|
...U.value,
|
|
1604
|
-
isPrintingImg: T(
|
|
1605
|
-
isPrintingSvg:
|
|
1611
|
+
isPrintingImg: T(_n) || T(vn) || Yt.value,
|
|
1612
|
+
isPrintingSvg: Xt.value,
|
|
1606
1613
|
boxPlotSummaries: Y.value,
|
|
1607
1614
|
series: G.value
|
|
1608
1615
|
} }, void 0, !0)
|
|
1609
|
-
], 46,
|
|
1616
|
+
], 46, Ze)), e.$slots.hint ? (b(), m("div", St, [C(e.$slots, "hint", v(_({
|
|
1610
1617
|
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1611
|
-
isVisible:
|
|
1618
|
+
isVisible: rn.value
|
|
1612
1619
|
})), void 0, !0)])) : p("", !0)]),
|
|
1613
|
-
e.$slots.watermark ? (b(), m("div",
|
|
1620
|
+
e.$slots.watermark ? (b(), m("div", Ct, [C(e.$slots, "watermark", v(_({ isPrinting: T(_n) || T(vn) || Yt.value || Xt.value })), void 0, !0)])) : p("", !0),
|
|
1614
1621
|
e.$slots.source ? (b(), m("div", {
|
|
1615
1622
|
key: 6,
|
|
1616
1623
|
ref_key: "source",
|
|
1617
|
-
ref:
|
|
1624
|
+
ref: Ht,
|
|
1618
1625
|
dir: "auto"
|
|
1619
1626
|
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1620
|
-
|
|
1627
|
+
Ie(T(Tt), {
|
|
1621
1628
|
teleportTo: N.value.style.chart.tooltip.teleportTo,
|
|
1622
1629
|
show: B.value.showTooltip && k.value,
|
|
1623
1630
|
backgroundColor: N.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1631,7 +1638,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1631
1638
|
offsetX: N.value.style.chart.tooltip.offsetX,
|
|
1632
1639
|
offsetY: N.value.style.chart.tooltip.offsetY,
|
|
1633
1640
|
parent: A.value,
|
|
1634
|
-
content:
|
|
1641
|
+
content: Bt.value,
|
|
1635
1642
|
isFullscreen: $.value,
|
|
1636
1643
|
isCustom: T(me)(N.value.style.chart.tooltip.customFormat),
|
|
1637
1644
|
smooth: N.value.style.chart.tooltip.smooth,
|
|
@@ -1639,11 +1646,11 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1639
1646
|
smoothForce: N.value.style.chart.tooltip.smoothForce,
|
|
1640
1647
|
smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1641
1648
|
isA11yMode: M.value === "keyboard",
|
|
1642
|
-
a11yPosition:
|
|
1649
|
+
a11yPosition: nn.value
|
|
1643
1650
|
}, {
|
|
1644
|
-
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(_({ ...
|
|
1645
|
-
tooltip: E(() => [C(e.$slots, "tooltip", v(_({ ...
|
|
1646
|
-
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(_({ ...
|
|
1651
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(_({ ...Jn.value })), void 0, !0)]),
|
|
1652
|
+
tooltip: E(() => [C(e.$slots, "tooltip", v(_({ ...Jn.value })), void 0, !0)]),
|
|
1653
|
+
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(_({ ...Jn.value })), void 0, !0)]),
|
|
1647
1654
|
_: 3
|
|
1648
1655
|
}, 8, [
|
|
1649
1656
|
"teleportTo",
|
|
@@ -1669,21 +1676,21 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1669
1676
|
"isA11yMode",
|
|
1670
1677
|
"a11yPosition"
|
|
1671
1678
|
]),
|
|
1672
|
-
|
|
1679
|
+
Rt.value && N.value.userOptions.buttons.table ? (b(), f(He(pr.value.component), Le({ key: 7 }, pr.value.props, {
|
|
1673
1680
|
ref_key: "tableUnit",
|
|
1674
|
-
ref:
|
|
1675
|
-
onClose:
|
|
1676
|
-
}),
|
|
1677
|
-
content: E(() => [(b(), f(T(
|
|
1678
|
-
key: `table_${
|
|
1679
|
-
colNames:
|
|
1680
|
-
head:
|
|
1681
|
-
body:
|
|
1682
|
-
config:
|
|
1683
|
-
title: N.value.table.useDialog ? "" :
|
|
1681
|
+
ref: qt,
|
|
1682
|
+
onClose: mr
|
|
1683
|
+
}), Pe({
|
|
1684
|
+
content: E(() => [(b(), f(T(Ot), {
|
|
1685
|
+
key: `table_${Kt.value}`,
|
|
1686
|
+
colNames: rr.value.colNames,
|
|
1687
|
+
head: rr.value.head,
|
|
1688
|
+
body: rr.value.body,
|
|
1689
|
+
config: rr.value.config,
|
|
1690
|
+
title: N.value.table.useDialog ? "" : pr.value.title,
|
|
1684
1691
|
withCloseButton: !N.value.table.useDialog,
|
|
1685
1692
|
isCursorPointer: P.value,
|
|
1686
|
-
onClose:
|
|
1693
|
+
onClose: mr
|
|
1687
1694
|
}, {
|
|
1688
1695
|
th: E(({ th: e }) => [h("div", {
|
|
1689
1696
|
innerHTML: e,
|
|
@@ -1691,8 +1698,8 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1691
1698
|
display: "flex",
|
|
1692
1699
|
"align-items": "center"
|
|
1693
1700
|
}
|
|
1694
|
-
}, null, 8,
|
|
1695
|
-
td: E(({ td: e }) => [
|
|
1701
|
+
}, null, 8, wt)]),
|
|
1702
|
+
td: E(({ td: e }) => [Fe(w(e.name || e), 1)]),
|
|
1696
1703
|
_: 1
|
|
1697
1704
|
}, 8, [
|
|
1698
1705
|
"colNames",
|
|
@@ -1706,24 +1713,24 @@ var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye
|
|
|
1706
1713
|
_: 2
|
|
1707
1714
|
}, [N.value.table.useDialog ? {
|
|
1708
1715
|
name: "title",
|
|
1709
|
-
fn: E(() => [
|
|
1716
|
+
fn: E(() => [Fe(w(pr.value.title), 1)]),
|
|
1710
1717
|
key: "0"
|
|
1711
1718
|
} : void 0, N.value.table.useDialog ? {
|
|
1712
1719
|
name: "actions",
|
|
1713
1720
|
fn: E(() => [h("button", {
|
|
1714
1721
|
tabindex: "0",
|
|
1715
1722
|
class: "vue-ui-user-options-button",
|
|
1716
|
-
onClick: t[1] ||= (e) =>
|
|
1723
|
+
onClick: t[1] ||= (e) => nr(N.value.userOptions.callbacks.csv),
|
|
1717
1724
|
style: y({ cursor: P.value ? "pointer" : "default" })
|
|
1718
|
-
}, [
|
|
1725
|
+
}, [Ie(T(Et), {
|
|
1719
1726
|
name: "fileCsv",
|
|
1720
|
-
stroke:
|
|
1727
|
+
stroke: pr.value.props.color
|
|
1721
1728
|
}, null, 8, ["stroke"])], 4)]),
|
|
1722
1729
|
key: "1"
|
|
1723
1730
|
} : void 0]), 1040)) : p("", !0),
|
|
1724
|
-
C(e.$slots, "skeleton", {}, () => [T(
|
|
1725
|
-
], 46,
|
|
1731
|
+
C(e.$slots, "skeleton", {}, () => [T(sn) ? (b(), f(ve, { key: 0 })) : p("", !0)], !0)
|
|
1732
|
+
], 46, Je));
|
|
1726
1733
|
}
|
|
1727
|
-
}, [["__scopeId", "data-v-
|
|
1734
|
+
}, [["__scopeId", "data-v-ae6af597"]]);
|
|
1728
1735
|
//#endregion
|
|
1729
|
-
export {
|
|
1736
|
+
export { qe as n, Tt as t };
|