vue-data-ui 3.23.1 → 3.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
- package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
- package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
- package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
- package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
- package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
- package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
- package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
- package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
- package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
- package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
- package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
- package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
- package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
- package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
- package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
- package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
- package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
- package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
- package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
- package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
- package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
- package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
- package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
- package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
- package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
- package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
- package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
- package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
- package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
- package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
- package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
- package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
- package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
- package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
- package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
- package/package.json +1 -1
- package/dist/Slicer-CIk57nL4.js +0 -1163
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
- package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
- package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
- package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
- package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
- package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
- package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
- package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
- package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
- package/dist/vue-ui-gauge-ByE_txav.js +0 -953
- package/dist/vue-ui-hill-BT183G-_.js +0 -1768
- package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
- package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
- package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
- package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
- package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
|
@@ -2,12 +2,12 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
|
2
2
|
import { $ as t, D as n, G as r, Jt as i, Kt as a, P as o, Pt as s, S as c, V as l, X as u, c as ee, i as te, jt as ne, pt as re, q as ie, r as ae, t as oe, tt as se, w as ce, wt as d } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as le, t as ue } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as de } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as fe } from "./useConfig-
|
|
5
|
+
import { t as fe } from "./useConfig-DlNpz6P8.js";
|
|
6
6
|
import { t as pe } from "./usePrinter-DN5bYhTG.js";
|
|
7
7
|
import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as ge } from "./
|
|
9
|
-
import { t as _e } from "./
|
|
10
|
-
import { t as ve } from "./
|
|
8
|
+
import { t as ge } from "./useNestedProp-vPNvh7rV.js";
|
|
9
|
+
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as ve } from "./useChartExport-DNiwdPmb.js";
|
|
11
11
|
import { t as ye } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
12
|
import { n as be } from "./Title-BE3qg9xl.js";
|
|
13
13
|
import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
@@ -17,30 +17,30 @@ import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
|
|
|
17
17
|
import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
18
|
import { t as De } from "./vue_ui_bump-Vl-zYAtG.js";
|
|
19
19
|
import { t as Oe } from "./BaseDraggableDialog-LoqqwRtV.js";
|
|
20
|
-
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as ke, createTextVNode as Ae, createVNode as je, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Me,
|
|
20
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as ke, createTextVNode as Ae, createVNode as je, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Me, normalizeClass as Ne, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Pe, onMounted as Fe, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Ie, shallowRef as Le, toDisplayString as E, toRefs as Re, unref as D, watch as ze, watchEffect as Be, withCtx as O } from "vue";
|
|
21
21
|
//#region src/components/vue-ui-bump.vue
|
|
22
|
-
var
|
|
22
|
+
var Ve = /* @__PURE__ */ e({ default: () => ct }), He = ["id"], Ue = ["id"], We = { style: { position: "relative" } }, Ge = [
|
|
23
23
|
"xmlns",
|
|
24
24
|
"aria-describedby",
|
|
25
25
|
"viewBox"
|
|
26
|
-
],
|
|
26
|
+
], Ke = [
|
|
27
27
|
"x",
|
|
28
28
|
"y",
|
|
29
29
|
"width",
|
|
30
30
|
"height"
|
|
31
|
-
],
|
|
31
|
+
], qe = [
|
|
32
32
|
"d",
|
|
33
33
|
"stroke",
|
|
34
34
|
"stroke-width",
|
|
35
35
|
"onMouseenter"
|
|
36
|
-
],
|
|
36
|
+
], Je = [
|
|
37
37
|
"d",
|
|
38
38
|
"stroke",
|
|
39
39
|
"stroke-width",
|
|
40
40
|
"onMouseenter",
|
|
41
41
|
"onMouseleave",
|
|
42
42
|
"onClick"
|
|
43
|
-
],
|
|
43
|
+
], Ye = [
|
|
44
44
|
"cx",
|
|
45
45
|
"cy",
|
|
46
46
|
"r",
|
|
@@ -50,21 +50,21 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
50
50
|
"onMouseenter",
|
|
51
51
|
"onMouseleave",
|
|
52
52
|
"onClick"
|
|
53
|
-
],
|
|
53
|
+
], Xe = [
|
|
54
54
|
"x",
|
|
55
55
|
"y",
|
|
56
56
|
"fill",
|
|
57
57
|
"font-size"
|
|
58
|
-
],
|
|
58
|
+
], Ze = [
|
|
59
59
|
"onMouseenter",
|
|
60
60
|
"onMouseleave",
|
|
61
61
|
"onClick"
|
|
62
|
-
],
|
|
62
|
+
], Qe = [
|
|
63
63
|
"x",
|
|
64
64
|
"y",
|
|
65
65
|
"fill",
|
|
66
66
|
"font-size"
|
|
67
|
-
],
|
|
67
|
+
], $e = [
|
|
68
68
|
"x",
|
|
69
69
|
"y",
|
|
70
70
|
"fill",
|
|
@@ -74,7 +74,7 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
74
74
|
"onMouseenter",
|
|
75
75
|
"onMouseleave",
|
|
76
76
|
"onClick"
|
|
77
|
-
],
|
|
77
|
+
], et = [
|
|
78
78
|
"x",
|
|
79
79
|
"y",
|
|
80
80
|
"fill",
|
|
@@ -84,19 +84,19 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
84
84
|
"onMouseenter",
|
|
85
85
|
"onMouseleave",
|
|
86
86
|
"onClick"
|
|
87
|
-
],
|
|
87
|
+
], tt = { key: 0 }, nt = { key: 1 }, rt = [
|
|
88
88
|
"text-anchor",
|
|
89
89
|
"font-size",
|
|
90
90
|
"font-weight",
|
|
91
91
|
"fill",
|
|
92
92
|
"transform"
|
|
93
|
-
],
|
|
93
|
+
], it = [
|
|
94
94
|
"text-anchor",
|
|
95
95
|
"font-size",
|
|
96
96
|
"fill",
|
|
97
97
|
"transform",
|
|
98
98
|
"innerHTML"
|
|
99
|
-
],
|
|
99
|
+
], at = {
|
|
100
100
|
key: 0,
|
|
101
101
|
style: {
|
|
102
102
|
position: "absolute",
|
|
@@ -106,10 +106,10 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
106
106
|
},
|
|
107
107
|
"data-dom-to-png-ignore": "",
|
|
108
108
|
"aria-hidden": "true"
|
|
109
|
-
},
|
|
109
|
+
}, ot = {
|
|
110
110
|
key: 5,
|
|
111
111
|
class: "vue-data-ui-watermark"
|
|
112
|
-
},
|
|
112
|
+
}, st = ["innerHTML"], ct = /*#__PURE__*/ xe({
|
|
113
113
|
__name: "vue-ui-bump",
|
|
114
114
|
props: {
|
|
115
115
|
config: {
|
|
@@ -126,15 +126,15 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
emits: ["copyAlt"],
|
|
129
|
-
setup(e, { expose: xe, emit:
|
|
130
|
-
let
|
|
129
|
+
setup(e, { expose: xe, emit: Ve }) {
|
|
130
|
+
let ct = v(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), lt = v(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), ut = v(() => import("./DataTable-BbKgJ5UI.js")), dt = v(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), ft = v(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), pt = v(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), { vue_ui_bump: mt } = fe(), { isThemeValid: ht, warnInvalidTheme: gt } = _e(), k = e, _t = Ve, vt = p({
|
|
131
131
|
get() {
|
|
132
132
|
return !!k.dataset && k.dataset.length;
|
|
133
133
|
},
|
|
134
134
|
set(e) {
|
|
135
135
|
return e;
|
|
136
136
|
}
|
|
137
|
-
}), A = C(null), j = C(ie()),
|
|
137
|
+
}), A = C(null), j = C(ie()), yt = C(0), bt = C(null), xt = C(null), St = C(null), Ct = C(!1), wt = C(!1), Tt = C(0), Et = C(0), M = C(null), Dt = C(null), Ot = C(!1), N = C(null), kt = C(null), At = C(null), jt = C(null), P = C(null), Mt = C(!1), F = C(Lt());
|
|
138
138
|
le({
|
|
139
139
|
config: () => F.value,
|
|
140
140
|
dataset: () => k.dataset,
|
|
@@ -171,7 +171,7 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
171
171
|
}
|
|
172
172
|
]
|
|
173
173
|
});
|
|
174
|
-
let I = p(() => F.value.userOptions.useCursorPointer),
|
|
174
|
+
let I = p(() => F.value.userOptions.useCursorPointer), Nt = p(() => i({
|
|
175
175
|
defaultConfig: {
|
|
176
176
|
userOptions: { show: !1 },
|
|
177
177
|
style: { chart: {
|
|
@@ -191,10 +191,10 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
191
191
|
} }
|
|
192
192
|
},
|
|
193
193
|
userConfig: F.value.skeletonConfig ?? {}
|
|
194
|
-
})), { loading:
|
|
195
|
-
...
|
|
194
|
+
})), { loading: Pt, FINAL_DATASET: Ft, manualLoading: It } = me({
|
|
195
|
+
...Re(k),
|
|
196
196
|
FINAL_CONFIG: F,
|
|
197
|
-
prepareConfig:
|
|
197
|
+
prepareConfig: Lt,
|
|
198
198
|
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
199
199
|
{
|
|
200
200
|
name: "————",
|
|
@@ -247,23 +247,23 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
247
247
|
],
|
|
248
248
|
skeletonConfig: i({
|
|
249
249
|
defaultConfig: F.value,
|
|
250
|
-
userConfig:
|
|
250
|
+
userConfig: Nt.value
|
|
251
251
|
})
|
|
252
252
|
});
|
|
253
|
-
|
|
254
|
-
function
|
|
255
|
-
let e =
|
|
253
|
+
Fe(Zt);
|
|
254
|
+
function Lt() {
|
|
255
|
+
let e = ge({
|
|
256
256
|
userConfig: k.config,
|
|
257
|
-
defaultConfig:
|
|
257
|
+
defaultConfig: mt
|
|
258
258
|
}), t = {}, n = e.theme;
|
|
259
|
-
if (n) if (!
|
|
259
|
+
if (n) if (!ht.value(e)) gt(e), t = e;
|
|
260
260
|
else {
|
|
261
|
-
let r =
|
|
261
|
+
let r = ge({
|
|
262
262
|
userConfig: De[n] || k.config,
|
|
263
263
|
defaultConfig: e
|
|
264
264
|
});
|
|
265
265
|
t = {
|
|
266
|
-
...
|
|
266
|
+
...ge({
|
|
267
267
|
userConfig: k.config,
|
|
268
268
|
defaultConfig: r
|
|
269
269
|
}),
|
|
@@ -273,31 +273,31 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
273
273
|
else t = e;
|
|
274
274
|
return t;
|
|
275
275
|
}
|
|
276
|
-
let { userOptionsVisible:
|
|
277
|
-
function
|
|
278
|
-
|
|
276
|
+
let { userOptionsVisible: Rt, setUserOptionsVisibility: zt, keepUserOptionState: Bt } = Te({ config: F.value }), { svgRef: L } = Ee({ config: F.value.style.chart.title });
|
|
277
|
+
function Vt() {
|
|
278
|
+
Ot.value = !0, zt(!0);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
|
|
280
|
+
function Ht() {
|
|
281
|
+
zt(!1), Ot.value = !1;
|
|
282
282
|
}
|
|
283
283
|
let R = C({ showTable: F.value.table.show });
|
|
284
|
-
|
|
284
|
+
ze(F, () => {
|
|
285
285
|
R.value = { showTable: F.value.table.show };
|
|
286
|
-
}, { immediate: !0 }),
|
|
287
|
-
|
|
286
|
+
}, { immediate: !0 }), ze(() => k.config, (e) => {
|
|
287
|
+
Pt.value || (F.value = Lt()), Rt.value = !F.value.userOptions.showOnChartHover, Zt(), Tt.value += 1, Et.value += 1, R.value.showTable = F.value.table.show, z.value.width = F.value.style.chart.width, z.value.height = F.value.style.chart.height, z.value.paddingRatio = {
|
|
288
288
|
top: F.value.style.chart.padding.top / F.value.style.chart.height,
|
|
289
289
|
right: F.value.style.chart.padding.right / F.value.style.chart.width,
|
|
290
290
|
bottom: F.value.style.chart.padding.bottom / F.value.style.chart.height,
|
|
291
291
|
left: F.value.style.chart.padding.left / F.value.style.chart.width
|
|
292
292
|
};
|
|
293
|
-
}),
|
|
294
|
-
Array.isArray(e) && e.length > 0 && (
|
|
293
|
+
}), ze(() => k.dataset, (e) => {
|
|
294
|
+
Array.isArray(e) && e.length > 0 && (It.value = !1);
|
|
295
295
|
}, { deep: !0 });
|
|
296
|
-
let { isPrinting:
|
|
296
|
+
let { isPrinting: Ut, isImaging: Wt, generatePdf: Gt, generateImage: Kt } = pe({
|
|
297
297
|
elementId: `bump_${j.value}`,
|
|
298
298
|
fileName: F.value.style.chart.title.text || "vue-ui-bump",
|
|
299
299
|
options: F.value.userOptions.print
|
|
300
|
-
}),
|
|
300
|
+
}), qt = p(() => F.value.userOptions.show && !F.value.style.chart.title.text), z = C({
|
|
301
301
|
width: F.value.style.chart.width,
|
|
302
302
|
height: F.value.style.chart.height,
|
|
303
303
|
paddingRatio: {
|
|
@@ -306,60 +306,60 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
306
306
|
bottom: F.value.style.chart.padding.bottom / F.value.style.chart.height,
|
|
307
307
|
left: F.value.style.chart.padding.left / F.value.style.chart.width
|
|
308
308
|
}
|
|
309
|
-
}),
|
|
310
|
-
function
|
|
309
|
+
}), Jt = p(() => ce(F.value.customPalette)), B = Le(null), V = Le(null), Yt = C(null), Xt = p(() => F.value.debug);
|
|
310
|
+
function Zt() {
|
|
311
311
|
if (ne(k.dataset) ? (se({
|
|
312
312
|
componentName: "VueUiBump",
|
|
313
313
|
type: "dataset",
|
|
314
|
-
debug:
|
|
315
|
-
}),
|
|
314
|
+
debug: Xt.value
|
|
315
|
+
}), It.value = !0) : k.dataset.forEach((e, t) => {
|
|
316
316
|
re({
|
|
317
317
|
datasetObject: e,
|
|
318
318
|
requiredAttributes: ["name", "values"]
|
|
319
319
|
}).forEach((e) => {
|
|
320
|
-
|
|
320
|
+
vt.value = !1, se({
|
|
321
321
|
componentName: "VueUiBump",
|
|
322
322
|
type: "datasetSerieAttribute",
|
|
323
323
|
property: e,
|
|
324
324
|
index: t,
|
|
325
|
-
debug:
|
|
326
|
-
}),
|
|
325
|
+
debug: Xt.value
|
|
326
|
+
}), It.value = !0;
|
|
327
327
|
});
|
|
328
|
-
}), ne(k.dataset) || (
|
|
329
|
-
|
|
328
|
+
}), ne(k.dataset) || (It.value = F.value.loading), setTimeout(() => {
|
|
329
|
+
wt.value = !0;
|
|
330
330
|
}, 10), F.value.responsive) {
|
|
331
331
|
let e = Se(() => {
|
|
332
|
-
|
|
332
|
+
wt.value = !1;
|
|
333
333
|
let { width: e, height: t } = Ce({
|
|
334
334
|
chart: A.value,
|
|
335
|
-
noTitle:
|
|
336
|
-
title: F.value.style.chart.title.text ?
|
|
335
|
+
noTitle: xt.value,
|
|
336
|
+
title: F.value.style.chart.title.text ? bt.value : null,
|
|
337
337
|
legend: null,
|
|
338
338
|
slicer: null,
|
|
339
|
-
source:
|
|
339
|
+
source: St.value
|
|
340
340
|
});
|
|
341
341
|
requestAnimationFrame(() => {
|
|
342
|
-
z.value.width = e, z.value.height = t - 12, clearTimeout(
|
|
343
|
-
|
|
342
|
+
z.value.width = e, z.value.height = t - 12, clearTimeout(Yt.value), Yt.value = setTimeout(() => {
|
|
343
|
+
wt.value = !0;
|
|
344
344
|
}, 10);
|
|
345
345
|
});
|
|
346
346
|
});
|
|
347
347
|
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect()), B.value = new ResizeObserver(e), V.value = A.value.parentNode, B.value.observe(V.value);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
|
|
350
|
+
Pe(() => {
|
|
351
351
|
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
|
|
352
352
|
});
|
|
353
|
-
let
|
|
354
|
-
let n = c(e.color) ||
|
|
353
|
+
let Qt = p(() => Ft.value.map((e, t) => {
|
|
354
|
+
let n = c(e.color) || Jt.value[t] || s[t] || s[t % s.length];
|
|
355
355
|
return {
|
|
356
356
|
...e,
|
|
357
357
|
absoluteIndex: t,
|
|
358
358
|
id: ie(),
|
|
359
359
|
color: n
|
|
360
360
|
};
|
|
361
|
-
})), H = p(() => Math.max(...
|
|
362
|
-
function
|
|
361
|
+
})), H = p(() => Math.max(...Qt.value.map((e) => e.values.length)));
|
|
362
|
+
function $t(e) {
|
|
363
363
|
let t = e.map(() => Array(H.value).fill(null));
|
|
364
364
|
for (let n = 0; n < H.value; n += 1) {
|
|
365
365
|
let r = e.map((e, r) => ({
|
|
@@ -375,34 +375,34 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
375
375
|
}
|
|
376
376
|
return t;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function en() {
|
|
379
379
|
let e = 0;
|
|
380
|
-
return
|
|
380
|
+
return kt.value && (e = Array.from(kt.value.querySelectorAll("tspan")).reduce((e, t) => {
|
|
381
381
|
let n = t.getComputedTextLength();
|
|
382
382
|
return n > e ? n : e;
|
|
383
383
|
}, 0)), e;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function tn() {
|
|
386
386
|
let e = 0;
|
|
387
|
-
return
|
|
387
|
+
return At.value && (e = Array.from(At.value.querySelectorAll("tspan")).reduce((e, t) => {
|
|
388
388
|
let n = t.getComputedTextLength();
|
|
389
389
|
return n > e ? n : e;
|
|
390
390
|
}, 0)), e;
|
|
391
391
|
}
|
|
392
|
-
let
|
|
393
|
-
|
|
392
|
+
let nn = C(0), rn = Se((e) => {
|
|
393
|
+
nn.value = e;
|
|
394
394
|
}, 100);
|
|
395
|
-
|
|
396
|
-
let t =
|
|
395
|
+
Be((e) => {
|
|
396
|
+
let t = jt.value;
|
|
397
397
|
if (!t) return;
|
|
398
398
|
let n = new ResizeObserver((e) => {
|
|
399
|
-
|
|
399
|
+
rn(e[0].contentRect.height);
|
|
400
400
|
});
|
|
401
401
|
n.observe(t), e(() => n.disconnect());
|
|
402
|
-
}),
|
|
403
|
-
|
|
402
|
+
}), Pe(() => {
|
|
403
|
+
nn.value = 0;
|
|
404
404
|
});
|
|
405
|
-
let
|
|
405
|
+
let an = p(() => {
|
|
406
406
|
let e = F.value.style.chart.layout.timeLabels;
|
|
407
407
|
if (!e.show) return 0;
|
|
408
408
|
let t = e.fontSize, n = e.rotation, r = Math.PI / 180 * n, i = K.value || [];
|
|
@@ -416,7 +416,7 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
416
416
|
}, 0), s = t * 1.3 * a, c = o * t * (o === 1 ? 1 : .6), l = Math.abs(Math.sin(r)) * c + Math.abs(Math.cos(r)) * s, u = t * .3;
|
|
417
417
|
return Math.max(0, l + Math.abs(e.offsetY) + u);
|
|
418
418
|
}), U = p(() => {
|
|
419
|
-
let { height: e, width: t } = z.value, { right: n, left: r } = z.value.paddingRatio, i =
|
|
419
|
+
let { height: e, width: t } = z.value, { right: n, left: r } = z.value.paddingRatio, i = en(), a = tn(), o = F.value.style.chart.padding.top, s = t - t * n - a, c = t * r + i, l = t - t * n - t * r - i - a, u = e - o - F.value.style.chart.padding.bottom - an.value, ee = o + u, te = o + u, ne = Math.max(0, e);
|
|
420
420
|
return {
|
|
421
421
|
chartHeight: te,
|
|
422
422
|
chartWidth: Math.max(0, t),
|
|
@@ -426,14 +426,14 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
426
426
|
left: Math.max(0, c),
|
|
427
427
|
width: Math.max(0, l),
|
|
428
428
|
height: Math.max(0, u),
|
|
429
|
-
unitH: Math.max(0, u) /
|
|
429
|
+
unitH: Math.max(0, u) / Qt.value.length,
|
|
430
430
|
unitW: Math.max(0, l) / H.value,
|
|
431
431
|
svgHeight: ne
|
|
432
432
|
};
|
|
433
433
|
}), W = p(() => {
|
|
434
|
-
if (!
|
|
435
|
-
let e =
|
|
436
|
-
return
|
|
434
|
+
if (!vt.value && !Pt.value) return [];
|
|
435
|
+
let e = $t(Qt.value);
|
|
436
|
+
return Qt.value.map((t, n) => ({
|
|
437
437
|
...t,
|
|
438
438
|
positions: e[n]
|
|
439
439
|
})).map((e) => {
|
|
@@ -471,7 +471,7 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
471
471
|
seriesName: e.name,
|
|
472
472
|
pointId: `${e.id}_${r}`
|
|
473
473
|
})).filter((e) => d(e.value))));
|
|
474
|
-
function
|
|
474
|
+
function on(e, t, n, r) {
|
|
475
475
|
let i = e.toSorted((e, t) => e.y - t.y);
|
|
476
476
|
for (let e = 1; e < i.length; e += 1) {
|
|
477
477
|
let n = i[e - 1], r = i[e];
|
|
@@ -491,7 +491,7 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
491
491
|
}
|
|
492
492
|
return i;
|
|
493
493
|
}
|
|
494
|
-
let
|
|
494
|
+
let sn = p(() => {
|
|
495
495
|
let e = [], t = [];
|
|
496
496
|
W.value.forEach((n) => {
|
|
497
497
|
let r = n.coordinates.filter((e) => Number.isFinite(e.rank));
|
|
@@ -500,13 +500,13 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
500
500
|
let i = r[r.length - 1];
|
|
501
501
|
t.push({ ...i });
|
|
502
502
|
});
|
|
503
|
-
let n = F.value.style.chart.layout.nameLabels.fontSize, r = n * 1.4, i = U.value.top + n, a = U.value.bottom - n, o =
|
|
503
|
+
let n = F.value.style.chart.layout.nameLabels.fontSize, r = n * 1.4, i = U.value.top + n, a = U.value.bottom - n, o = on(t, r, i, a);
|
|
504
504
|
return {
|
|
505
|
-
left:
|
|
505
|
+
left: on(e, r, i, a),
|
|
506
506
|
right: o
|
|
507
507
|
};
|
|
508
508
|
});
|
|
509
|
-
function
|
|
509
|
+
function cn(e) {
|
|
510
510
|
let t = F.value.style.chart.layout.plots.labels.fontSize * .4, n = e.displayValue, r = n.length * (F.value.style.chart.layout.plots.labels.fontSize * (n.length === 1 ? 1 : .6)), i = F.value.style.chart.layout.plots.labels.fontSize, a = r + t * 2, o = i + t * 2, s = e.x - a / 2, c = e.y - o / 2, l = F.value.style.chart.layout.plots.strokeWidth;
|
|
511
511
|
return {
|
|
512
512
|
x: s - l / 2,
|
|
@@ -519,9 +519,9 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
519
519
|
rx: o / 2
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
let G = C([]),
|
|
523
|
-
|
|
524
|
-
let e = ++
|
|
522
|
+
let G = C([]), ln = 0;
|
|
523
|
+
Be(() => {
|
|
524
|
+
let e = ++ln, t = F.value.style.chart.layout.timeLabels, n = t.values, r = t.datetimeFormatter, i = H.value;
|
|
525
525
|
if (!i || !Array.isArray(n) || n.length === 0) {
|
|
526
526
|
G.value = [];
|
|
527
527
|
return;
|
|
@@ -534,16 +534,16 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
534
534
|
start: 0,
|
|
535
535
|
end: i
|
|
536
536
|
});
|
|
537
|
-
e ===
|
|
537
|
+
e === ln && (G.value = t);
|
|
538
538
|
})();
|
|
539
539
|
});
|
|
540
|
-
let
|
|
540
|
+
let un = p(() => {
|
|
541
541
|
let e = F.value.style.chart.layout.timeLabels.modulo;
|
|
542
542
|
return G.value.length ? Math.min(e, [...new Set(G.value.map((e) => e.text))].length) : e;
|
|
543
543
|
}), K = p(() => {
|
|
544
544
|
let e = F.value.style.chart.layout.timeLabels, t = G.value || [], n = G.value || [], r = H.value, i = t.map((e) => e?.text ?? ""), a = n.map((e) => e?.text ?? "");
|
|
545
|
-
return ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1,
|
|
546
|
-
}),
|
|
545
|
+
return ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, un.value || 1), i, a, 0, null, r);
|
|
546
|
+
}), dn = p(() => z.value.width), fn = p(() => z.value.height), pn = p(() => ({
|
|
547
547
|
start: 0,
|
|
548
548
|
end: H.value
|
|
549
549
|
})), q = p(() => [...W.value].map((e) => {
|
|
@@ -553,40 +553,40 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
553
553
|
navigationRank: t?.rank ?? Infinity
|
|
554
554
|
};
|
|
555
555
|
}).sort((e, t) => e.navigationRank - t.navigationRank));
|
|
556
|
-
function
|
|
557
|
-
P.value = null,
|
|
556
|
+
function mn() {
|
|
557
|
+
P.value = null, Mt.value = !0;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
|
|
559
|
+
function hn() {
|
|
560
|
+
_n(), Mt.value = !1;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function gn(e, t) {
|
|
563
563
|
let n = q.value.length;
|
|
564
564
|
return n ? e === null || e < 0 || e >= n ? 0 : t === "previous" ? (e - 1 + n) % n : (e + 1) % n : null;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function _n() {
|
|
567
567
|
if (P.value !== null) {
|
|
568
568
|
let e = q.value[P.value];
|
|
569
569
|
e && $(e, e);
|
|
570
570
|
}
|
|
571
571
|
P.value = null, N.value = null;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function vn(e) {
|
|
574
574
|
if (!L.value || Y.value || document.activeElement !== L.value || !q.value.length) return;
|
|
575
575
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
576
576
|
if (!t && !n && !r && !i) return;
|
|
577
577
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
578
|
-
|
|
578
|
+
_n();
|
|
579
579
|
return;
|
|
580
580
|
}
|
|
581
581
|
if (r) {
|
|
582
582
|
if (P.value === null) return;
|
|
583
583
|
let e = q.value[P.value];
|
|
584
584
|
if (!e) return;
|
|
585
|
-
|
|
585
|
+
Mn(e, e);
|
|
586
586
|
return;
|
|
587
587
|
}
|
|
588
588
|
let a = P.value;
|
|
589
|
-
a === null ? a = 0 : t ? a =
|
|
589
|
+
a === null ? a = 0 : t ? a = gn(a, "previous") : n && (a = gn(a, "next"));
|
|
590
590
|
let o = q.value[a];
|
|
591
591
|
o && (P.value = a, Q(o, o));
|
|
592
592
|
}
|
|
@@ -597,9 +597,9 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
597
597
|
notice: F.value.a11y.translations.tableAvailable
|
|
598
598
|
}));
|
|
599
599
|
ye({
|
|
600
|
-
timeLabelsEls:
|
|
600
|
+
timeLabelsEls: jt,
|
|
601
601
|
timeLabels: G,
|
|
602
|
-
slicer:
|
|
602
|
+
slicer: pn,
|
|
603
603
|
configRef: F,
|
|
604
604
|
rotationPath: [
|
|
605
605
|
"style",
|
|
@@ -617,30 +617,30 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
617
617
|
"enable"
|
|
618
618
|
],
|
|
619
619
|
isAutoSize: !1,
|
|
620
|
-
width:
|
|
621
|
-
height:
|
|
620
|
+
width: dn,
|
|
621
|
+
height: fn,
|
|
622
622
|
rotation: F.value.style.chart.layout.timeLabels.autoRotate.angle
|
|
623
623
|
});
|
|
624
624
|
let Y = C(!1);
|
|
625
|
-
function
|
|
625
|
+
function yn() {
|
|
626
626
|
Y.value = !Y.value;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
|
|
628
|
+
function bn(e) {
|
|
629
|
+
Ct.value = e, yt.value += 1;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function xn() {
|
|
632
632
|
R.value.showTable = !R.value.showTable;
|
|
633
633
|
}
|
|
634
|
-
|
|
634
|
+
ze(() => R.value.showTable, (e) => {
|
|
635
635
|
F.value.table.show || (e && F.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
636
636
|
});
|
|
637
|
-
function
|
|
638
|
-
R.value.showTable = !1,
|
|
637
|
+
function Sn() {
|
|
638
|
+
R.value.showTable = !1, Dt.value && Dt.value.setTableIconState(!1);
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function Cn() {
|
|
641
641
|
return W.value;
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function wn(e = null) {
|
|
644
644
|
let r = [
|
|
645
645
|
[F.value.style.chart.title.text],
|
|
646
646
|
[F.value.style.chart.title.subtitle.text],
|
|
@@ -658,14 +658,14 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
658
658
|
let X = p(() => {
|
|
659
659
|
let e = F.value.table.useDialog && !F.value.table.show, t = R.value.showTable;
|
|
660
660
|
return {
|
|
661
|
-
component: e ? Oe :
|
|
661
|
+
component: e ? Oe : lt,
|
|
662
662
|
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
663
663
|
props: e ? {
|
|
664
664
|
backgroundColor: F.value.table.th.backgroundColor,
|
|
665
665
|
color: F.value.table.th.color,
|
|
666
666
|
headerColor: F.value.table.th.color,
|
|
667
667
|
headerBg: F.value.table.th.backgroundColor,
|
|
668
|
-
isFullscreen:
|
|
668
|
+
isFullscreen: Ct.value,
|
|
669
669
|
fullscreenParent: A.value,
|
|
670
670
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
671
671
|
isCursorPointer: I.value
|
|
@@ -702,30 +702,16 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
702
702
|
breakpoint: F.value.table.responsiveBreakpoint
|
|
703
703
|
},
|
|
704
704
|
colNames: [F.value.table.columnNames.series]
|
|
705
|
-
})),
|
|
705
|
+
})), Tn = p(() => F.value.style.chart.backgroundColor), En = p(() => F.value.style.chart.title), { isCallbackImaging: Dn, isCallbackSvg: On, generateSvg: kn, onGenerateImage: An } = ve({
|
|
706
706
|
svg: L,
|
|
707
|
-
title:
|
|
707
|
+
title: En,
|
|
708
708
|
legend: null,
|
|
709
709
|
legendItems: null,
|
|
710
|
-
backgroundColor:
|
|
710
|
+
backgroundColor: Tn,
|
|
711
|
+
getSvgCallback: () => F.value.userOptions.callbacks.svg,
|
|
712
|
+
generateImage: Kt
|
|
711
713
|
});
|
|
712
|
-
async function
|
|
713
|
-
jt.value = !0, await Ne();
|
|
714
|
-
try {
|
|
715
|
-
if (e) {
|
|
716
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await jn();
|
|
717
|
-
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
718
|
-
blob: e,
|
|
719
|
-
url: t,
|
|
720
|
-
text: n,
|
|
721
|
-
dataUrl: r
|
|
722
|
-
}));
|
|
723
|
-
} else await Promise.resolve(An());
|
|
724
|
-
} finally {
|
|
725
|
-
jt.value = !1;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
async function Nn({ scale: e = 2 } = {}) {
|
|
714
|
+
async function jn({ scale: e = 2 } = {}) {
|
|
729
715
|
if (!A.value) return;
|
|
730
716
|
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await img({
|
|
731
717
|
domElement: A.value,
|
|
@@ -754,25 +740,14 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
754
740
|
seriesIndex: e?.pointIndex ?? null
|
|
755
741
|
});
|
|
756
742
|
}
|
|
757
|
-
function
|
|
743
|
+
function Mn(e, t) {
|
|
758
744
|
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
759
745
|
datapoint: e,
|
|
760
746
|
seriesIndex: e?.pointIndex ?? null
|
|
761
747
|
});
|
|
762
748
|
}
|
|
763
|
-
function
|
|
764
|
-
if (
|
|
765
|
-
At.value = !0;
|
|
766
|
-
return;
|
|
767
|
-
}
|
|
768
|
-
if (e?.stage === "end") {
|
|
769
|
-
At.value = !1;
|
|
770
|
-
return;
|
|
771
|
-
}
|
|
772
|
-
Yt();
|
|
773
|
-
}
|
|
774
|
-
async function In() {
|
|
775
|
-
if (vt("copyAlt", {
|
|
749
|
+
async function Nn() {
|
|
750
|
+
if (_t("copyAlt", {
|
|
776
751
|
config: F.value,
|
|
777
752
|
dataset: W.value
|
|
778
753
|
}), !F.value.userOptions.callbacks.altCopy) {
|
|
@@ -785,33 +760,33 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
785
760
|
}));
|
|
786
761
|
}
|
|
787
762
|
return xe({
|
|
788
|
-
getData:
|
|
789
|
-
getImage:
|
|
790
|
-
generatePdf:
|
|
791
|
-
generateCsv:
|
|
792
|
-
generateImage:
|
|
793
|
-
generateSvg:
|
|
794
|
-
toggleTable:
|
|
795
|
-
toggleAnnotator:
|
|
796
|
-
toggleFullscreen:
|
|
797
|
-
copyAlt:
|
|
763
|
+
getData: Cn,
|
|
764
|
+
getImage: jn,
|
|
765
|
+
generatePdf: Gt,
|
|
766
|
+
generateCsv: wn,
|
|
767
|
+
generateImage: Kt,
|
|
768
|
+
generateSvg: kn,
|
|
769
|
+
toggleTable: xn,
|
|
770
|
+
toggleAnnotator: yn,
|
|
771
|
+
toggleFullscreen: bn,
|
|
772
|
+
copyAlt: Nn
|
|
798
773
|
}), (e, t) => (S(), g("div", {
|
|
799
774
|
id: `bump_${j.value}`,
|
|
800
775
|
ref_key: "bumpChart",
|
|
801
776
|
ref: A,
|
|
802
|
-
class:
|
|
777
|
+
class: Ne({
|
|
803
778
|
"vue-data-ui-component": !0,
|
|
804
779
|
"vue-ui-bump": !0,
|
|
805
|
-
"vue-data-ui-wrapper-fullscreen":
|
|
780
|
+
"vue-data-ui-wrapper-fullscreen": Ct.value
|
|
806
781
|
}),
|
|
807
782
|
style: x(`background:${F.value.style.chart.backgroundColor};color:${F.value.style.chart.color};font-family:${F.value.style.fontFamily}; position: relative; ${F.value.responsive ? "height: 100%" : ""}`),
|
|
808
|
-
onMouseenter:
|
|
809
|
-
onMouseleave:
|
|
783
|
+
onMouseenter: Vt,
|
|
784
|
+
onMouseleave: Ht
|
|
810
785
|
}, [
|
|
811
786
|
_("p", {
|
|
812
787
|
id: `chart-instructions-${j.value}`,
|
|
813
788
|
class: "sr-only"
|
|
814
|
-
}, E(F.value.a11y.translations.keyboardNavigation), 9,
|
|
789
|
+
}, E(F.value.a11y.translations.keyboardNavigation), 9, Ue),
|
|
815
790
|
J.value.body.length ? (S(), m(we, {
|
|
816
791
|
key: 0,
|
|
817
792
|
uid: j.value,
|
|
@@ -826,14 +801,14 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
826
801
|
"caption",
|
|
827
802
|
"notice"
|
|
828
803
|
])) : h("", !0),
|
|
829
|
-
F.value.userOptions.buttons.annotator ? (S(), m(D(
|
|
804
|
+
F.value.userOptions.buttons.annotator ? (S(), m(D(dt), {
|
|
830
805
|
key: 1,
|
|
831
806
|
svgRef: D(L),
|
|
832
807
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
833
808
|
color: F.value.style.chart.color,
|
|
834
809
|
active: Y.value,
|
|
835
810
|
isCursorPointer: I.value,
|
|
836
|
-
onClose:
|
|
811
|
+
onClose: yn
|
|
837
812
|
}, {
|
|
838
813
|
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
839
814
|
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
|
|
@@ -850,20 +825,20 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
850
825
|
"isCursorPointer"
|
|
851
826
|
])) : h("", !0),
|
|
852
827
|
T(e.$slots, "userConfig", {}, void 0, !0),
|
|
853
|
-
|
|
828
|
+
qt.value ? (S(), g("div", {
|
|
854
829
|
key: 2,
|
|
855
830
|
ref_key: "noTitle",
|
|
856
|
-
ref:
|
|
831
|
+
ref: xt,
|
|
857
832
|
class: "vue-data-ui-no-title-space",
|
|
858
833
|
style: "height:36px; width: 100%;background:transparent"
|
|
859
834
|
}, null, 512)) : h("", !0),
|
|
860
835
|
F.value.style.chart.title.text ? (S(), g("div", {
|
|
861
836
|
key: 3,
|
|
862
837
|
ref_key: "chartTitle",
|
|
863
|
-
ref:
|
|
838
|
+
ref: bt,
|
|
864
839
|
style: "width:100%;background:transparent;"
|
|
865
840
|
}, [(S(), m(be, {
|
|
866
|
-
key: `title_${
|
|
841
|
+
key: `title_${Tt.value}`,
|
|
867
842
|
config: {
|
|
868
843
|
title: {
|
|
869
844
|
cy: "bump-title",
|
|
@@ -875,14 +850,14 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
875
850
|
}
|
|
876
851
|
}
|
|
877
852
|
}, null, 8, ["config"]))], 512)) : h("", !0),
|
|
878
|
-
F.value.userOptions.show &&
|
|
853
|
+
F.value.userOptions.show && vt.value && (D(Bt) || D(Rt)) ? (S(), m(D(ft), {
|
|
879
854
|
ref_key: "userOptionsRef",
|
|
880
|
-
ref:
|
|
881
|
-
key: `user_option_${
|
|
855
|
+
ref: Dt,
|
|
856
|
+
key: `user_option_${yt.value}`,
|
|
882
857
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
883
858
|
color: F.value.style.chart.color,
|
|
884
|
-
isPrinting: D(
|
|
885
|
-
isImaging: D(
|
|
859
|
+
isPrinting: D(Ut),
|
|
860
|
+
isImaging: D(Wt),
|
|
886
861
|
uid: j.value,
|
|
887
862
|
hasTooltip: !1,
|
|
888
863
|
hasPdf: F.value.userOptions.buttons.pdf,
|
|
@@ -893,7 +868,7 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
893
868
|
hasLabel: !1,
|
|
894
869
|
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
895
870
|
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
896
|
-
isFullcreen:
|
|
871
|
+
isFullcreen: Ct.value,
|
|
897
872
|
chartElement: A.value,
|
|
898
873
|
position: F.value.userOptions.position,
|
|
899
874
|
titles: { ...F.value.userOptions.buttonTitles },
|
|
@@ -903,15 +878,15 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
903
878
|
printScale: F.value.userOptions.print.scale,
|
|
904
879
|
tableDialog: F.value.table.useDialog,
|
|
905
880
|
isCursorPointer: I.value,
|
|
906
|
-
onToggleFullscreen:
|
|
907
|
-
onGeneratePdf: D(
|
|
908
|
-
onGenerateCsv:
|
|
909
|
-
onGenerateImage:
|
|
910
|
-
onGenerateSvg:
|
|
911
|
-
onToggleTable:
|
|
912
|
-
onToggleAnnotator:
|
|
913
|
-
onCopyAlt:
|
|
914
|
-
style: x({ visibility: D(
|
|
881
|
+
onToggleFullscreen: bn,
|
|
882
|
+
onGeneratePdf: D(Gt),
|
|
883
|
+
onGenerateCsv: wn,
|
|
884
|
+
onGenerateImage: D(An),
|
|
885
|
+
onGenerateSvg: D(kn),
|
|
886
|
+
onToggleTable: xn,
|
|
887
|
+
onToggleAnnotator: yn,
|
|
888
|
+
onCopyAlt: Nn,
|
|
889
|
+
style: x({ visibility: D(Bt) ? D(Rt) ? "visible" : "hidden" : "visible" })
|
|
915
890
|
}, ke({ _: 2 }, [
|
|
916
891
|
e.$slots.menuIcon ? {
|
|
917
892
|
name: "menuIcon",
|
|
@@ -977,40 +952,15 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
977
952
|
fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
978
953
|
key: "10"
|
|
979
954
|
} : void 0
|
|
980
|
-
]), 1032,
|
|
981
|
-
|
|
982
|
-
"color",
|
|
983
|
-
"isPrinting",
|
|
984
|
-
"isImaging",
|
|
985
|
-
"uid",
|
|
986
|
-
"hasPdf",
|
|
987
|
-
"hasImg",
|
|
988
|
-
"hasSvg",
|
|
989
|
-
"hasXls",
|
|
990
|
-
"hasTable",
|
|
991
|
-
"hasAltCopy",
|
|
992
|
-
"hasFullscreen",
|
|
993
|
-
"isFullcreen",
|
|
994
|
-
"chartElement",
|
|
995
|
-
"position",
|
|
996
|
-
"titles",
|
|
997
|
-
"hasAnnotator",
|
|
998
|
-
"isAnnotation",
|
|
999
|
-
"callbacks",
|
|
1000
|
-
"printScale",
|
|
1001
|
-
"tableDialog",
|
|
1002
|
-
"isCursorPointer",
|
|
1003
|
-
"onGeneratePdf",
|
|
1004
|
-
"style"
|
|
1005
|
-
])) : h("", !0),
|
|
1006
|
-
_("div", Ge, [(S(), g("svg", {
|
|
955
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasAltCopy.hasFullscreen.isFullcreen.chartElement.position.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : h("", !0),
|
|
956
|
+
_("div", We, [(S(), g("svg", {
|
|
1007
957
|
ref_key: "svgRef",
|
|
1008
958
|
ref: L,
|
|
1009
959
|
xmlns: D(oe),
|
|
1010
960
|
"aria-describedby": `chart-instructions-${j.value}`,
|
|
1011
961
|
viewBox: `0 0 ${U.value.chartWidth <= 0 ? 10 : U.value.chartWidth} ${U.value.svgHeight <= 0 ? 10 : U.value.svgHeight}`,
|
|
1012
|
-
class:
|
|
1013
|
-
"vue-data-ui-loading": D(
|
|
962
|
+
class: Ne({
|
|
963
|
+
"vue-data-ui-loading": D(Pt),
|
|
1014
964
|
"no-transition": !F.value.useCssAnimation
|
|
1015
965
|
}),
|
|
1016
966
|
style: x(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.chart.color}`),
|
|
@@ -1018,11 +968,11 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1018
968
|
"aria-live": "polite",
|
|
1019
969
|
preserveAspectRatio: "xMidYMid",
|
|
1020
970
|
tabindex: "0",
|
|
1021
|
-
onFocus:
|
|
1022
|
-
onBlur:
|
|
1023
|
-
onKeydown:
|
|
971
|
+
onFocus: mn,
|
|
972
|
+
onBlur: hn,
|
|
973
|
+
onKeydown: vn
|
|
1024
974
|
}, [
|
|
1025
|
-
je(D(
|
|
975
|
+
je(D(pt)),
|
|
1026
976
|
e.$slots["chart-background"] ? (S(), g("foreignObject", {
|
|
1027
977
|
key: 0,
|
|
1028
978
|
x: U.value.left,
|
|
@@ -1030,7 +980,7 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1030
980
|
width: U.value.width <= 0 ? 10 : U.value.width,
|
|
1031
981
|
height: U.value.height <= 0 ? 10 : U.value.height,
|
|
1032
982
|
style: { pointerEvents: "none" }
|
|
1033
|
-
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
983
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : h("", !0),
|
|
1034
984
|
(S(!0), g(f, null, w(W.value, (e) => (S(), g(f, null, [_("path", {
|
|
1035
985
|
class: "transition-opacity",
|
|
1036
986
|
d: `M${e.path}`,
|
|
@@ -1042,7 +992,7 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1042
992
|
style: x({ opacity: N.value == null || N.value === e.id ? 1 : .1 }),
|
|
1043
993
|
onMouseenter: (t) => N.value = e.id,
|
|
1044
994
|
onMouseleave: t[0] ||= (e) => N.value = null
|
|
1045
|
-
}, null, 44,
|
|
995
|
+
}, null, 44, qe), _("path", {
|
|
1046
996
|
class: "transition-opacity",
|
|
1047
997
|
d: `M${e.path}`,
|
|
1048
998
|
stroke: e.color,
|
|
@@ -1053,8 +1003,8 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1053
1003
|
style: x({ opacity: N.value == null || N.value === e.id ? 1 : .1 }),
|
|
1054
1004
|
onMouseenter: (t) => Q(e, e),
|
|
1055
1005
|
onMouseleave: (t) => $(e, e),
|
|
1056
|
-
onClick: (t) =>
|
|
1057
|
-
}, null, 44,
|
|
1006
|
+
onClick: (t) => Mn(e, e)
|
|
1007
|
+
}, null, 44, Je)], 64))), 256)),
|
|
1058
1008
|
(S(!0), g(f, null, w(W.value, (t) => (S(), g(f, null, [
|
|
1059
1009
|
F.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (S(!0), g(f, { key: 0 }, w(t.coordinates, (e, n) => (S(), g("circle", {
|
|
1060
1010
|
class: "transition-opacity",
|
|
@@ -1077,7 +1027,7 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1077
1027
|
...e,
|
|
1078
1028
|
pointIndex: n
|
|
1079
1029
|
}, t)
|
|
1080
|
-
}, null, 44,
|
|
1030
|
+
}, null, 44, Ye))), 256)) : h("", !0),
|
|
1081
1031
|
F.value.style.chart.layout.plots.labels.show && F.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (S(!0), g(f, { key: 1 }, w(t.coordinates, (e) => (S(), g("text", {
|
|
1082
1032
|
class: "transition-opacity",
|
|
1083
1033
|
x: e.x,
|
|
@@ -1090,11 +1040,11 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1090
1040
|
pointerEvents: "none",
|
|
1091
1041
|
opacity: N.value == null || N.value === t.id ? 1 : .1
|
|
1092
1042
|
})
|
|
1093
|
-
}, E(e.rank), 13,
|
|
1043
|
+
}, E(e.rank), 13, Xe))), 256)) : h("", !0),
|
|
1094
1044
|
F.value.style.chart.layout.plots.labels.displayedValue === "value" ? (S(!0), g(f, { key: 2 }, w(t.coordinates, (n) => (S(), g(f, null, [D(d)(n.value) ? (S(), g("rect", Me({
|
|
1095
1045
|
key: 0,
|
|
1096
1046
|
class: "transition-opacity"
|
|
1097
|
-
}, { ref_for: !0 },
|
|
1047
|
+
}, { ref_for: !0 }, cn(n), {
|
|
1098
1048
|
style: { opacity: N.value == null || N.value === t.id ? 1 : .1 },
|
|
1099
1049
|
onMouseenter: (n) => Q({
|
|
1100
1050
|
...e.point,
|
|
@@ -1108,7 +1058,7 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1108
1058
|
...e.point,
|
|
1109
1059
|
pointIndex: e.i
|
|
1110
1060
|
}, t)
|
|
1111
|
-
}), null, 16,
|
|
1061
|
+
}), null, 16, Ze)) : h("", !0), D(d)(n.value) && F.value.style.chart.layout.plots.labels.show ? (S(), g("text", {
|
|
1112
1062
|
key: 1,
|
|
1113
1063
|
class: "transition-opacity",
|
|
1114
1064
|
x: n.x,
|
|
@@ -1121,13 +1071,13 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1121
1071
|
pointerEvents: "none",
|
|
1122
1072
|
opacity: N.value == null || N.value === t.id ? 1 : .1
|
|
1123
1073
|
})
|
|
1124
|
-
}, E(n.displayValue), 13,
|
|
1074
|
+
}, E(n.displayValue), 13, Qe)) : h("", !0)], 64))), 256)) : h("", !0)
|
|
1125
1075
|
], 64))), 256)),
|
|
1126
1076
|
F.value.style.chart.layout.nameLabels.leftLabels.show ? (S(), g("g", {
|
|
1127
1077
|
key: 1,
|
|
1128
1078
|
ref_key: "labelsLeft",
|
|
1129
|
-
ref:
|
|
1130
|
-
}, [(S(!0), g(f, null, w(
|
|
1079
|
+
ref: kt
|
|
1080
|
+
}, [(S(!0), g(f, null, w(sn.value.left.filter((e) => D(d)(e.value)), (e, t) => (S(), g("text", {
|
|
1131
1081
|
class: "transition-opacity",
|
|
1132
1082
|
x: U.value.left,
|
|
1133
1083
|
y: e.y + F.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
@@ -1146,13 +1096,13 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1146
1096
|
style: x({ opacity: N.value == null || N.value === e.id ? 1 : .1 }),
|
|
1147
1097
|
onMouseenter: (t) => Q(e, e),
|
|
1148
1098
|
onMouseleave: (t) => $(e, e),
|
|
1149
|
-
onClick: (t) =>
|
|
1150
|
-
}, null, 44,
|
|
1099
|
+
onClick: (t) => Mn(e, e)
|
|
1100
|
+
}, null, 44, $e))), 256))], 512)) : h("", !0),
|
|
1151
1101
|
F.value.style.chart.layout.nameLabels.rightLabels.show ? (S(), g("g", {
|
|
1152
1102
|
key: 2,
|
|
1153
1103
|
ref_key: "labelsRight",
|
|
1154
|
-
ref:
|
|
1155
|
-
}, [(S(!0), g(f, null, w(
|
|
1104
|
+
ref: At
|
|
1105
|
+
}, [(S(!0), g(f, null, w(sn.value.right.filter((e) => D(d)(e.value)), (e, t) => (S(), g("text", {
|
|
1156
1106
|
class: "transition-opacity",
|
|
1157
1107
|
x: U.value.right,
|
|
1158
1108
|
y: e.y + F.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
@@ -1171,13 +1121,13 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1171
1121
|
style: x({ opacity: N.value == null || N.value === e.id ? 1 : .1 }),
|
|
1172
1122
|
onMouseenter: (t) => Q(e, e),
|
|
1173
1123
|
onMouseleave: (t) => $(e, e),
|
|
1174
|
-
onClick: (t) =>
|
|
1175
|
-
}, null, 44,
|
|
1124
|
+
onClick: (t) => Mn(e, e)
|
|
1125
|
+
}, null, 44, et))), 256))], 512)) : h("", !0),
|
|
1176
1126
|
F.value.style.chart.layout.timeLabels.show ? (S(), g("g", {
|
|
1177
1127
|
key: 3,
|
|
1178
1128
|
ref_key: "timeLabelsEls",
|
|
1179
|
-
ref:
|
|
1180
|
-
}, [e.$slots["time-label"] ? (S(), g("g",
|
|
1129
|
+
ref: jt
|
|
1130
|
+
}, [e.$slots["time-label"] ? (S(), g("g", tt, [(S(!0), g(f, null, w(K.value, (t, n) => (S(), g("g", null, [T(e.$slots, "time-label", Me({ ref_for: !0 }, {
|
|
1181
1131
|
x: U.value.unitW * n + U.value.unitW / 2 + U.value.left,
|
|
1182
1132
|
y: U.value.chartHeight + F.value.style.chart.layout.timeLabels.offsetY,
|
|
1183
1133
|
fontSize: F.value.style.chart.layout.timeLabels.fontSize,
|
|
@@ -1187,7 +1137,7 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1187
1137
|
content: t.text,
|
|
1188
1138
|
textAnchor: F.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : F.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1189
1139
|
show: !0
|
|
1190
|
-
}), void 0, !0)]))), 256))])) : (S(), g("g",
|
|
1140
|
+
}), void 0, !0)]))), 256))])) : (S(), g("g", nt, [(S(!0), g(f, null, w(K.value, (e, t) => (S(), g("g", null, [String(e.text).includes("\n") ? (S(), g("text", {
|
|
1191
1141
|
key: t + "-multi",
|
|
1192
1142
|
"text-anchor": F.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : F.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1193
1143
|
"font-size": F.value.style.chart.layout.timeLabels.fontSize,
|
|
@@ -1206,7 +1156,7 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1206
1156
|
x: 0,
|
|
1207
1157
|
y: 0
|
|
1208
1158
|
})
|
|
1209
|
-
}, null, 8,
|
|
1159
|
+
}, null, 8, it)) : (S(), g("text", {
|
|
1210
1160
|
class: "vue-data-ui-time-label",
|
|
1211
1161
|
key: t,
|
|
1212
1162
|
"text-anchor": F.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : F.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1214,24 +1164,24 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1214
1164
|
"font-weight": F.value.style.chart.layout.timeLabels.bold ? "bold" : "normal",
|
|
1215
1165
|
fill: F.value.style.chart.layout.timeLabels.color,
|
|
1216
1166
|
transform: `translate(${U.value.unitW * t + U.value.unitW / 2 + U.value.left}, ${U.value.chartHeight + F.value.style.chart.layout.timeLabels.offsetY}), rotate(${F.value.style.chart.layout.timeLabels.rotation})`
|
|
1217
|
-
}, E(e.text), 9,
|
|
1167
|
+
}, E(e.text), 9, rt))]))), 256))]))], 512)) : h("", !0),
|
|
1218
1168
|
T(e.$slots, "svg", { svg: {
|
|
1219
1169
|
drawingArea: U.value,
|
|
1220
1170
|
data: W.value,
|
|
1221
|
-
isPrintingImg: D(
|
|
1222
|
-
isPrintingSvg:
|
|
1171
|
+
isPrintingImg: D(Ut) || D(Wt) || D(Dn),
|
|
1172
|
+
isPrintingSvg: D(On)
|
|
1223
1173
|
} }, void 0, !0)
|
|
1224
|
-
], 46,
|
|
1174
|
+
], 46, Ge)), e.$slots.hint ? (S(), g("div", at, [T(e.$slots, "hint", b(y({
|
|
1225
1175
|
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1226
|
-
isVisible:
|
|
1176
|
+
isVisible: Mt.value
|
|
1227
1177
|
})), void 0, !0)])) : h("", !0)]),
|
|
1228
|
-
e.$slots.watermark ? (S(), g("div",
|
|
1229
|
-
|
|
1178
|
+
e.$slots.watermark ? (S(), g("div", ot, [T(e.$slots, "watermark", b(y({ isPrinting: D(Ut) || D(Wt) || D(Dn) || D(On) })), void 0, !0)])) : h("", !0),
|
|
1179
|
+
vt.value && F.value.userOptions.buttons.table ? (S(), m(Ie(X.value.component), Me({ key: 6 }, X.value.props, {
|
|
1230
1180
|
ref_key: "tableUnit",
|
|
1231
1181
|
ref: M,
|
|
1232
|
-
onClose:
|
|
1182
|
+
onClose: Sn
|
|
1233
1183
|
}), ke({
|
|
1234
|
-
content: O(() => [je(D(
|
|
1184
|
+
content: O(() => [je(D(ut), {
|
|
1235
1185
|
colNames: Z.value.colNames,
|
|
1236
1186
|
head: Z.value.head,
|
|
1237
1187
|
body: Z.value.body,
|
|
@@ -1239,9 +1189,9 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1239
1189
|
title: F.value.table.useDialog ? "" : X.value.title,
|
|
1240
1190
|
withCloseButton: !F.value.table.useDialog,
|
|
1241
1191
|
isCursorPointer: I.value,
|
|
1242
|
-
onClose:
|
|
1192
|
+
onClose: Sn
|
|
1243
1193
|
}, {
|
|
1244
|
-
th: O(({ th: e }) => [_("div", { innerHTML: e }, null, 8,
|
|
1194
|
+
th: O(({ th: e }) => [_("div", { innerHTML: e }, null, 8, st)]),
|
|
1245
1195
|
td: O(({ td: e }) => [Ae(E(e), 1)]),
|
|
1246
1196
|
_: 1
|
|
1247
1197
|
}, 8, [
|
|
@@ -1263,9 +1213,9 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1263
1213
|
fn: O(() => [_("button", {
|
|
1264
1214
|
tabindex: "0",
|
|
1265
1215
|
class: "vue-ui-user-options-button",
|
|
1266
|
-
onClick: t[1] ||= (e) =>
|
|
1216
|
+
onClick: t[1] ||= (e) => wn(F.value.userOptions.callbacks.csv),
|
|
1267
1217
|
style: x({ cursor: I.value ? "pointer" : "default" })
|
|
1268
|
-
}, [je(D(
|
|
1218
|
+
}, [je(D(ct), {
|
|
1269
1219
|
name: "fileCsv",
|
|
1270
1220
|
stroke: X.value.props.color
|
|
1271
1221
|
}, null, 8, ["stroke"])], 4)]),
|
|
@@ -1274,12 +1224,12 @@ var He = /* @__PURE__ */ e({ default: () => lt }), Ue = ["id"], We = ["id"], Ge
|
|
|
1274
1224
|
e.$slots.source ? (S(), g("div", {
|
|
1275
1225
|
key: 7,
|
|
1276
1226
|
ref_key: "source",
|
|
1277
|
-
ref:
|
|
1227
|
+
ref: St,
|
|
1278
1228
|
dir: "auto"
|
|
1279
1229
|
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1280
|
-
T(e.$slots, "skeleton", {}, () => [D(
|
|
1281
|
-
], 46,
|
|
1230
|
+
T(e.$slots, "skeleton", {}, () => [D(Pt) ? (S(), m(he, { key: 0 })) : h("", !0)], !0)
|
|
1231
|
+
], 46, He));
|
|
1282
1232
|
}
|
|
1283
|
-
}, [["__scopeId", "data-v-
|
|
1233
|
+
}, [["__scopeId", "data-v-f5c72ff2"]]);
|
|
1284
1234
|
//#endregion
|
|
1285
|
-
export {
|
|
1235
|
+
export { Ve as n, ct as t };
|