vue-data-ui 3.25.7 → 3.25.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/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-UfoQuPMf.js → PackageVersion-KBMdaOXg.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-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-B-3S5q00.js → package-BL27Ev_h.js} +1 -1
- package/dist/{render-common-CAXK7ycr.js → render-common-By8J0AE-.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 +2 -0
- package/dist/{useConfig-CIQZ6_r7.js → useConfig-D32D002m.js} +2 -0
- package/dist/{useObjectBindings---mHNfbS.js → useObjectBindings-Cd_WuYIn.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DlWT702n.js → vue-data-ui-CBWuUAXT.js} +69 -69
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-DbOk2kpM.js → vue-ui-3d-bar-BSbq90H3.js} +3 -3
- package/dist/{vue-ui-accordion-BSmBUjwZ.js → vue-ui-accordion-DmkL8A59.js} +1 -1
- package/dist/{vue-ui-age-pyramid-C7_mGIRk.js → vue-ui-age-pyramid-CrXl71iC.js} +263 -251
- package/dist/{vue-ui-annotator-CTQHAPho.js → vue-ui-annotator-BO5ihHOB.js} +2 -2
- package/dist/{vue-ui-bullet-CDy_dkYz.js → vue-ui-bullet-B2Y3Wqh9.js} +3 -3
- package/dist/{vue-ui-bump-DP24leiD.js → vue-ui-bump-DXvvjG4I.js} +3 -3
- package/dist/{vue-ui-candlestick-kJLmYaR7.js → vue-ui-candlestick-CFqR6W56.js} +453 -441
- package/dist/{vue-ui-carousel-table-BQzAQDw6.js → vue-ui-carousel-table-D-ZkPRta.js} +2 -2
- package/dist/{vue-ui-chestnut-DnnRp3Kl.js → vue-ui-chestnut-CyW3IoYC.js} +3 -3
- package/dist/{vue-ui-chord-DO15ZDCS.js → vue-ui-chord-DS0jni9A.js} +3 -3
- package/dist/{vue-ui-circle-pack-DYTllMPV.js → vue-ui-circle-pack-j2ChgLWr.js} +494 -482
- package/dist/{vue-ui-cursor-CtViSjNp.js → vue-ui-cursor-qOONOtcv.js} +2 -2
- package/dist/{vue-ui-dag-NXtGYzqg.js → vue-ui-dag-CmeFsKhR.js} +3 -3
- package/dist/{vue-ui-dashboard-D3_4QohV.js → vue-ui-dashboard-C7Z5BTN4.js} +65 -65
- package/dist/{vue-ui-digits-CB09pLQx.js → vue-ui-digits-Bf68x6fb.js} +2 -2
- package/dist/{vue-ui-donut-yTE6D8yV.js → vue-ui-donut-CkBPJW_T.js} +837 -825
- package/dist/{vue-ui-donut-eysaEyTy.js → vue-ui-donut-DzDSYgVp.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DhrtxvAd.js → vue-ui-donut-evolution-CDJumo0t.js} +3 -3
- package/dist/{vue-ui-dumbbell-CmGIeULQ.js → vue-ui-dumbbell-Cr__26dN.js} +3 -3
- package/dist/vue-ui-flow-Cz6WRi2c.js +1229 -0
- package/dist/{vue-ui-funnel-CLAii4wi.js → vue-ui-funnel-BlC7KxS6.js} +2 -2
- package/dist/vue-ui-galaxy-Bg2smlcI.js +1097 -0
- package/dist/{vue-ui-gauge-D76-4Z_0.js → vue-ui-gauge-BHsaent1.js} +3 -3
- package/dist/{vue-ui-geo-BQ7-UnuG.js → vue-ui-geo-CE3Cr0or.js} +407 -395
- package/dist/{vue-ui-gizmo-C47zjcs-.js → vue-ui-gizmo-DqFUBEai.js} +3 -3
- package/dist/{vue-ui-heatmap-XJef60IZ.js → vue-ui-heatmap-DXqj9ial.js} +478 -446
- package/dist/{vue-ui-hill-D5BYGPXB.js → vue-ui-hill-B3fPAfhL.js} +2 -2
- package/dist/vue-ui-history-plot-CrnTnpaM.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-BgFHi6_7.js → vue-ui-horizontal-bar-DqvN3imH.js} +432 -420
- package/dist/{vue-ui-kpi-Cb8QJeaj.js → vue-ui-kpi-Mf318HvK.js} +2 -2
- package/dist/{vue-ui-label-ClMQ5Gez.js → vue-ui-label-C1UAzvAu.js} +1 -1
- package/dist/{vue-ui-mini-loader-DtPOVIkK.js → vue-ui-mini-loader-wGeACd-Y.js} +1 -1
- package/dist/{vue-ui-molecule-BzwMl-in.js → vue-ui-molecule-CaLReo4h.js} +346 -334
- package/dist/{vue-ui-mood-radar-BUR_YCcr.js → vue-ui-mood-radar-jkE2ENX5.js} +3 -3
- package/dist/{vue-ui-nested-donuts-BEB4nfsD.js → vue-ui-nested-donuts-BgMOKjil.js} +360 -348
- package/dist/vue-ui-onion-DBN3Ev4j.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CSO4johj.js → vue-ui-parallel-coordinate-plot-BcJzEGJ-.js} +387 -375
- package/dist/{vue-ui-quadrant-CKav0I6g.js → vue-ui-quadrant-BvoVlxTI.js} +418 -406
- package/dist/{vue-ui-quick-chart-BAQNS9_2.js → vue-ui-quick-chart-2hn8-F_C.js} +550 -538
- package/dist/{vue-ui-radar-ClPAgf5I.js → vue-ui-radar-O3AjGrc-.js} +330 -318
- package/dist/{vue-ui-rating-CWFMoYpE.js → vue-ui-rating-Criq0ofQ.js} +1 -1
- package/dist/{vue-ui-relation-circle-Da2MhrVe.js → vue-ui-relation-circle-CRnH2ikm.js} +3 -3
- package/dist/{vue-ui-ridgeline-D7gFs8yR.js → vue-ui-ridgeline-Blejn8LY.js} +3 -3
- package/dist/{vue-ui-rings-DkDJ0k5b.js → vue-ui-rings-C1U38Bp0.js} +321 -309
- package/dist/{vue-ui-scatter-yv4JzJID.js → vue-ui-scatter-DTsCc9hg.js} +584 -572
- package/dist/{vue-ui-skeleton-oFnh5zWs.js → vue-ui-skeleton-BPr3u7IL.js} +2 -2
- package/dist/{vue-ui-smiley-DJVusLnp.js → vue-ui-smiley-BIjAIpJ9.js} +1 -1
- package/dist/{vue-ui-spark-trend-IqZWPvSB.js → vue-ui-spark-trend-B7w4Mg8O.js} +3 -3
- package/dist/{vue-ui-sparkbar-_FW47iYj.js → vue-ui-sparkbar-lVDnYEYA.js} +3 -3
- package/dist/{vue-ui-sparkgauge--2vk2Y23.js → vue-ui-sparkgauge-BryoGCoc.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CFEIPa5n.js → vue-ui-sparkhistogram-BdNoLb9L.js} +3 -3
- package/dist/{vue-ui-sparkline-Cs9CJR6W.js → vue-ui-sparkline-CNFD5K6z.js} +3 -3
- package/dist/vue-ui-sparkstackbar-CZ4tGL-_.js +750 -0
- package/dist/vue-ui-stackbar-DfsgaZy7.js +2369 -0
- package/dist/vue-ui-stackline-Cx7q2sGF.js +2483 -0
- package/dist/vue-ui-strip-plot-BcYhLPHM.js +1752 -0
- package/dist/{vue-ui-table-CiccGbRB.js → vue-ui-table-BzF75YjN.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DnP3pzh2.js → vue-ui-table-heatmap-BSUab4fG.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Bp7RiZh4.js → vue-ui-table-sparkline-B9ICTtoE.js} +2 -2
- package/dist/{vue-ui-thermometer-CawumQKP.js → vue-ui-thermometer-Am7llqdI.js} +3 -3
- package/dist/{vue-ui-timer-CXinMW7q.js → vue-ui-timer-D6EvkM31.js} +2 -2
- package/dist/{vue-ui-tiremarks-BnI2uhki.js → vue-ui-tiremarks-DiQJu8Em.js} +3 -3
- package/dist/{vue-ui-treemap-DTlFbfD6.js → vue-ui-treemap-wUZpijpr.js} +310 -298
- package/dist/vue-ui-waffle-6hO0flDT.js +1633 -0
- package/dist/{vue-ui-wheel-B02tiG0p.js → vue-ui-wheel-DnyCE0CK.js} +3 -3
- package/dist/{vue-ui-word-cloud-BZnCOMHx.js → vue-ui-word-cloud-D_MZ3gCS.js} +385 -372
- package/dist/{vue-ui-world-DO2VZ-T-.js → vue-ui-world-QNGY2WPz.js} +474 -462
- package/dist/{vue-ui-xy-CD6BiP_g.js → vue-ui-xy-BD-ighya.js} +2 -2
- package/dist/{vue-ui-xy-BC9GVdWE.js → vue-ui-xy-Ctcwn7Rk.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-DANPuyf4.js → vue-ui-xy-canvas-DUeglcdP.js} +523 -511
- package/package.json +1 -1
- package/dist/vue-ui-flow-qYAq3Rmn.js +0 -1217
- package/dist/vue-ui-galaxy-BVX-o2f-.js +0 -1085
- package/dist/vue-ui-history-plot-D-d-1ZiM.js +0 -1698
- package/dist/vue-ui-onion-CG6myK7a.js +0 -1235
- package/dist/vue-ui-sparkstackbar-Cvbue77A.js +0 -738
- package/dist/vue-ui-stackbar-C5ANS2hd.js +0 -2355
- package/dist/vue-ui-stackline-7yajJFW4.js +0 -2469
- package/dist/vue-ui-strip-plot-BT6Eqhup.js +0 -1740
- package/dist/vue-ui-waffle-CjgRkQAp.js +0 -1621
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, G as i, Jt as a, Lt as o, Pt as s, S as c, Ut as l, Wt as ee, X as u, Yt as te,
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { l as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as
|
|
2
|
+
import { $ as t, Ct as n, D as r, G as i, Jt as a, Lt as o, Pt as s, S as c, Ut as l, Wt as ee, X as u, Yt as te, Z as ne, Zt as re, b as d, bt as ie, i as ae, lt as oe, mt as se, nt as ce, q as le, t as ue, w as de } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as me } from "./useConfig-D32D002m.js";
|
|
5
|
+
import { t as he } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { n as ge, t as _e } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
+
import { t as ve } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
+
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as be } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
+
import { t as xe } from "./useTransitions-g_zBREk2.js";
|
|
11
|
+
import { t as Se } from "./img-DhGApYG0.js";
|
|
12
|
+
import { n as Ce } from "./Title-CPHi-evi.js";
|
|
13
|
+
import { t as we } from "./Shape-CIqU-p2F.js";
|
|
14
|
+
import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
+
import { l as Ee, t as De } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
+
import { t as Oe } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
+
import { t as ke } from "./vue-ui-accordion-DmkL8A59.js";
|
|
18
|
+
import { t as Ae } from "./BaseLegendToggle-CXQrLjd-.js";
|
|
19
|
+
import { t as je } from "./A11yDataTable-DdRsVULz.js";
|
|
20
|
+
import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
|
|
21
|
+
import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
|
|
22
|
+
import { t as Pe } from "./useTableResponsive-BAqJPR68.js";
|
|
23
|
+
import { t as Fe } from "./Legend-X4kF4PvW.js";
|
|
24
|
+
import { t as Ie } from "./vue_ui_horizontal_bar-C4J4QzXf.js";
|
|
25
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as Be, guardReactiveProps as v, mergeProps as Ve, nextTick as He, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ue, onMounted as We, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Ge, toDisplayString as E, toRefs as Ke, unref as D, useCssVars as qe, useSlots as Je, watch as Ye, withCtx as O, withKeys as Xe } from "vue";
|
|
26
26
|
//#region src/components/vue-ui-horizontal-bar.vue
|
|
27
|
-
var
|
|
27
|
+
var Ze = /* @__PURE__ */ e({ default: () => zt }), Qe = ["id"], $e = ["id"], et = ["onClick"], tt = { style: { position: "relative" } }, nt = [
|
|
28
28
|
"xmlns",
|
|
29
29
|
"viewBox",
|
|
30
30
|
"aria-describedby"
|
|
31
|
-
],
|
|
31
|
+
], rt = ["width", "height"], it = { key: 1 }, at = [
|
|
32
32
|
"y",
|
|
33
33
|
"width",
|
|
34
34
|
"height",
|
|
35
35
|
"fill",
|
|
36
36
|
"rx"
|
|
37
|
-
],
|
|
37
|
+
], ot = [
|
|
38
38
|
"x",
|
|
39
39
|
"y",
|
|
40
40
|
"width",
|
|
41
41
|
"height",
|
|
42
42
|
"fill",
|
|
43
43
|
"rx"
|
|
44
|
-
],
|
|
44
|
+
], st = [
|
|
45
45
|
"x",
|
|
46
46
|
"y",
|
|
47
47
|
"width",
|
|
@@ -50,7 +50,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
50
50
|
"rx",
|
|
51
51
|
"stroke",
|
|
52
52
|
"stroke-width"
|
|
53
|
-
],
|
|
53
|
+
], ct = [
|
|
54
54
|
"x",
|
|
55
55
|
"y",
|
|
56
56
|
"width",
|
|
@@ -59,48 +59,48 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
59
59
|
"rx",
|
|
60
60
|
"stroke",
|
|
61
61
|
"stroke-width"
|
|
62
|
-
],
|
|
62
|
+
], lt = [
|
|
63
63
|
"stroke",
|
|
64
64
|
"stroke-width",
|
|
65
65
|
"d"
|
|
66
|
-
],
|
|
66
|
+
], ut = [
|
|
67
67
|
"stroke",
|
|
68
68
|
"stroke-width",
|
|
69
69
|
"d"
|
|
70
|
-
],
|
|
70
|
+
], dt = [
|
|
71
71
|
"y",
|
|
72
72
|
"height",
|
|
73
73
|
"width",
|
|
74
74
|
"fill"
|
|
75
|
-
],
|
|
75
|
+
], ft = [
|
|
76
76
|
"transform",
|
|
77
77
|
"font-size",
|
|
78
78
|
"fill",
|
|
79
79
|
"font-weight",
|
|
80
80
|
"innerHTML"
|
|
81
|
-
],
|
|
81
|
+
], pt = [
|
|
82
82
|
"transform",
|
|
83
83
|
"font-size",
|
|
84
84
|
"fill",
|
|
85
85
|
"font-weight"
|
|
86
|
-
],
|
|
86
|
+
], mt = [
|
|
87
87
|
"transform",
|
|
88
88
|
"font-size",
|
|
89
89
|
"font-weight",
|
|
90
90
|
"innerHTML"
|
|
91
|
-
],
|
|
91
|
+
], ht = [
|
|
92
92
|
"transform",
|
|
93
93
|
"font-size",
|
|
94
94
|
"fill",
|
|
95
95
|
"font-weight",
|
|
96
96
|
"innerHTML"
|
|
97
|
-
],
|
|
97
|
+
], gt = [
|
|
98
98
|
"transform",
|
|
99
99
|
"text-anchor",
|
|
100
100
|
"font-size",
|
|
101
101
|
"fill",
|
|
102
102
|
"font-weight"
|
|
103
|
-
],
|
|
103
|
+
], _t = [
|
|
104
104
|
"y",
|
|
105
105
|
"width",
|
|
106
106
|
"height",
|
|
@@ -108,7 +108,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
108
108
|
"onMouseenter",
|
|
109
109
|
"onMouseleave",
|
|
110
110
|
"onClick"
|
|
111
|
-
],
|
|
111
|
+
], vt = {
|
|
112
112
|
key: 0,
|
|
113
113
|
style: {
|
|
114
114
|
position: "absolute",
|
|
@@ -118,59 +118,59 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
118
118
|
},
|
|
119
119
|
"data-dom-to-png-ignore": "",
|
|
120
120
|
"aria-hidden": "true"
|
|
121
|
-
},
|
|
121
|
+
}, yt = {
|
|
122
122
|
key: 6,
|
|
123
123
|
class: "vue-data-ui-watermark"
|
|
124
|
-
},
|
|
124
|
+
}, bt = ["onClick"], xt = { style: "width:100%;padding-top: 36px;position:relative" }, St = { class: "vue-ui-data-table" }, Ct = { key: 0 }, wt = { style: { width: "100%" } }, Tt = ["data-cell"], Et = { style: {
|
|
125
125
|
display: "flex",
|
|
126
126
|
"align-items": "center",
|
|
127
127
|
gap: "5px",
|
|
128
128
|
"justify-content": "flex-end",
|
|
129
129
|
width: "100%",
|
|
130
130
|
"padding-right": "3px"
|
|
131
|
-
} },
|
|
131
|
+
} }, Dt = ["data-cell"], Ot = { style: {
|
|
132
132
|
display: "flex",
|
|
133
133
|
"align-items": "center",
|
|
134
134
|
gap: "5px",
|
|
135
135
|
"justify-content": "flex-end",
|
|
136
136
|
width: "100%",
|
|
137
137
|
"padding-right": "3px"
|
|
138
|
-
} },
|
|
138
|
+
} }, kt = ["data-cell"], At = { style: {
|
|
139
139
|
display: "flex",
|
|
140
140
|
"align-items": "center",
|
|
141
141
|
gap: "5px",
|
|
142
142
|
"justify-content": "flex-end",
|
|
143
143
|
width: "100%",
|
|
144
144
|
"padding-right": "3px"
|
|
145
|
-
} },
|
|
145
|
+
} }, jt = ["data-cell"], Mt = { style: {
|
|
146
146
|
display: "flex",
|
|
147
147
|
"align-items": "center",
|
|
148
148
|
gap: "5px",
|
|
149
149
|
"justify-content": "flex-end",
|
|
150
150
|
width: "100%",
|
|
151
151
|
"padding-right": "3px"
|
|
152
|
-
} },
|
|
152
|
+
} }, Nt = ["data-cell"], Pt = { style: {
|
|
153
153
|
display: "flex",
|
|
154
154
|
"align-items": "center",
|
|
155
155
|
gap: "5px",
|
|
156
156
|
"justify-content": "flex-end",
|
|
157
157
|
width: "100%",
|
|
158
158
|
"padding-right": "3px"
|
|
159
|
-
} },
|
|
159
|
+
} }, Ft = ["data-cell"], It = { style: {
|
|
160
160
|
display: "flex",
|
|
161
161
|
"align-items": "center",
|
|
162
162
|
gap: "5px",
|
|
163
163
|
"justify-content": "flex-end",
|
|
164
164
|
width: "100%",
|
|
165
165
|
"padding-right": "3px"
|
|
166
|
-
} },
|
|
166
|
+
} }, Lt = ["data-cell"], Rt = { style: {
|
|
167
167
|
display: "flex",
|
|
168
168
|
"align-items": "center",
|
|
169
169
|
gap: "5px",
|
|
170
170
|
"justify-content": "flex-end",
|
|
171
171
|
width: "100%",
|
|
172
172
|
"padding-right": "3px"
|
|
173
|
-
} },
|
|
173
|
+
} }, zt = /*#__PURE__*/ Te({
|
|
174
174
|
__name: "vue-ui-horizontal-bar",
|
|
175
175
|
props: {
|
|
176
176
|
config: {
|
|
@@ -191,28 +191,28 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
191
191
|
"copyAlt",
|
|
192
192
|
"selectDatapoint"
|
|
193
193
|
],
|
|
194
|
-
setup(e, { expose:
|
|
195
|
-
|
|
196
|
-
let
|
|
194
|
+
setup(e, { expose: Te, emit: Ze }) {
|
|
195
|
+
qe((e) => ({ v085c9170: e.tdo }));
|
|
196
|
+
let zt = Be(() => import("./Tooltip-hhrkQ3Lk.js")), Bt = Be(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Vt = Be(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Ht = Be(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Ut = Be(() => import("./PackageVersion-KBMdaOXg.js").then((e) => e.t)), Wt = Be(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_vertical_bar: Gt } = me(), { isThemeValid: Kt, warnInvalidTheme: qt } = ye(), Jt = Je(), k = e, Yt = p({
|
|
197
197
|
get() {
|
|
198
198
|
return !!k.dataset && k.dataset.length;
|
|
199
199
|
},
|
|
200
200
|
set(e) {
|
|
201
201
|
return e;
|
|
202
202
|
}
|
|
203
|
-
}), A = C(
|
|
203
|
+
}), A = C(le()), Xt = C(!1), Zt = C(""), Qt = C(null), $t = C(0), j = C(null), en = C(null), tn = C(null), nn = C(null), rn = C(null), an = C(0), on = C(0), sn = C(null), cn = C(null), ln = C(null), un = C(null), dn = C(null), M = C([]), fn = C({
|
|
204
204
|
none: 0,
|
|
205
205
|
asc: 1,
|
|
206
206
|
desc: 2
|
|
207
|
-
}),
|
|
207
|
+
}), pn = C(0), mn = C(!1), hn = C(0), gn = null, _n = null, N = C(null), vn = C({
|
|
208
208
|
x: 0,
|
|
209
209
|
y: 0
|
|
210
|
-
}),
|
|
211
|
-
|
|
210
|
+
}), yn = C("pointer"), bn = Ze, P = C(jn()), F = p(() => P.value.style.chart.layout.bars), I = p(() => P.value.style.chart.layout), L = p(() => P.value.style.chart.tooltip), R = p(() => P.value.style.chart);
|
|
211
|
+
fe({
|
|
212
212
|
config: () => P.value,
|
|
213
213
|
dataset: () => k.dataset,
|
|
214
214
|
component: "VueUiHorizontalBar",
|
|
215
|
-
rules: [
|
|
215
|
+
rules: [pe.emptyArray, {
|
|
216
216
|
test: (e) => e.length > 50 || e.some((e) => e.children && e.children.length > 50),
|
|
217
217
|
message: [
|
|
218
218
|
"👀 There are > 50 series / bars, which will probably force users to scroll. Consider:",
|
|
@@ -223,10 +223,10 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
223
223
|
]
|
|
224
224
|
}]
|
|
225
225
|
});
|
|
226
|
-
let { transitionEnabled: z } =
|
|
226
|
+
let { transitionEnabled: z } = xe({
|
|
227
227
|
config: () => P.value.transitions,
|
|
228
228
|
dataset: () => k.dataset
|
|
229
|
-
}),
|
|
229
|
+
}), xn = p(() => P.value.userOptions.useCursorPointer), Sn = p(() => k.config?.skeletonDataset ?? [
|
|
230
230
|
{
|
|
231
231
|
name: "",
|
|
232
232
|
value: 6,
|
|
@@ -257,7 +257,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
257
257
|
value: 1,
|
|
258
258
|
color: "#d9d9d9"
|
|
259
259
|
}
|
|
260
|
-
]),
|
|
260
|
+
]), Cn = p(() => re({
|
|
261
261
|
defaultConfig: {
|
|
262
262
|
useCssAnimation: !1,
|
|
263
263
|
userOptions: { show: !1 },
|
|
@@ -294,35 +294,35 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
294
294
|
} }
|
|
295
295
|
},
|
|
296
296
|
userConfig: P.value.skeletonConfig ?? {}
|
|
297
|
-
})), { loading:
|
|
298
|
-
...
|
|
297
|
+
})), { loading: wn, FINAL_DATASET: Tn, manualLoading: En } = ge({
|
|
298
|
+
...Ke(k),
|
|
299
299
|
FINAL_CONFIG: P,
|
|
300
|
-
prepareConfig:
|
|
300
|
+
prepareConfig: jn,
|
|
301
301
|
callback: () => {
|
|
302
302
|
Promise.resolve().then(async () => {
|
|
303
|
-
H.value.showTable = P.value.table.show,
|
|
303
|
+
H.value.showTable = P.value.table.show, qn();
|
|
304
304
|
});
|
|
305
305
|
},
|
|
306
|
-
skeletonDataset:
|
|
307
|
-
skeletonConfig:
|
|
306
|
+
skeletonDataset: Sn.value,
|
|
307
|
+
skeletonConfig: re({
|
|
308
308
|
defaultConfig: P.value,
|
|
309
|
-
userConfig:
|
|
309
|
+
userConfig: Cn.value
|
|
310
310
|
})
|
|
311
|
-
}), { userOptionsVisible:
|
|
312
|
-
function
|
|
313
|
-
let e =
|
|
311
|
+
}), { userOptionsVisible: Dn, setUserOptionsVisibility: On, keepUserOptionState: kn } = Me({ config: P.value }), { svgRef: An } = Ne({ config: R.value.title });
|
|
312
|
+
function jn() {
|
|
313
|
+
let e = ve({
|
|
314
314
|
userConfig: k.config,
|
|
315
|
-
defaultConfig:
|
|
315
|
+
defaultConfig: Gt
|
|
316
316
|
}), t = {}, n = e.theme;
|
|
317
317
|
if (n) {
|
|
318
|
-
if (!
|
|
318
|
+
if (!Kt.value(e)) qt(e), t = e;
|
|
319
319
|
else {
|
|
320
|
-
let r =
|
|
321
|
-
userConfig:
|
|
320
|
+
let r = ve({
|
|
321
|
+
userConfig: Ie[n] || k.config,
|
|
322
322
|
defaultConfig: e
|
|
323
323
|
});
|
|
324
324
|
t = {
|
|
325
|
-
...
|
|
325
|
+
...ve({
|
|
326
326
|
userConfig: k.config,
|
|
327
327
|
defaultConfig: r
|
|
328
328
|
}),
|
|
@@ -330,71 +330,83 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
332
|
} else t = e;
|
|
333
|
-
return k.config &&
|
|
333
|
+
return k.config && ie(k.config, "events.datapointEnter") ? t.events.datapointEnter = k.config.events.datapointEnter : t.events.datapointEnter = null, k.config && ie(k.config, "events.datapointLeave") ? t.events.datapointLeave = k.config.events.datapointLeave : t.events.datapointLeave = null, k.config && ie(k.config, "events.datapointClick") ? t.events.datapointClick = k.config.events.datapointClick : t.events.datapointClick = null, t;
|
|
334
334
|
}
|
|
335
|
-
let B = C(R.value.width),
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
335
|
+
let B = C(R.value.width), Mn = C(R.value.height), V = C(F.value.gap);
|
|
336
|
+
function Nn(e) {
|
|
337
|
+
let t = ne(e);
|
|
338
|
+
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
339
|
+
}
|
|
340
|
+
let Pn = Nn(k.config);
|
|
341
|
+
Ye(() => k.config, (e, t) => {
|
|
342
|
+
let n = Nn(e), r = n !== Pn;
|
|
343
|
+
Pn = n;
|
|
344
|
+
let i = jn();
|
|
345
|
+
if (!r) {
|
|
346
|
+
P.value.style.chart.tooltip = i.style.chart.tooltip, H.value.showTooltip = P.value.style.chart.tooltip.show;
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
wn.value || (P.value = i), Dn.value = !P.value.userOptions.showOnChartHover, an.value += 1, on.value += 1, H.value.showTable = P.value.table.show, H.value.sortDesc = F.value.sort === "desc", H.value.showTooltip = L.value.show, B.value = R.value.width, Mn.value = R.value.height, V.value = F.value.gap;
|
|
350
|
+
}, { deep: !0 }), Ye(() => k.dataset, (e) => {
|
|
351
|
+
Array.isArray(e) && e.length > 0 && (En.value = !1);
|
|
340
352
|
}, { deep: !0 });
|
|
341
|
-
let { isPrinting:
|
|
353
|
+
let { isPrinting: Fn, isImaging: In, generatePdf: Ln, generateImage: Rn } = he({
|
|
342
354
|
elementId: `vue-ui-vertical-bar_${A.value}`,
|
|
343
355
|
fileName: R.value.title.text || "vue-ui-vertical-bar",
|
|
344
356
|
options: P.value.userOptions.print
|
|
345
|
-
}),
|
|
346
|
-
function
|
|
347
|
-
if (j.value && (s(k.dataset) && (
|
|
357
|
+
}), zn = p(() => P.value.userOptions.show && !R.value.title.text), Bn = p(() => de(P.value.customPalette)), Vn = C(null), Hn = p(() => P.value.table.responsiveBreakpoint), Un = p(() => P.value.debug), Wn = C(0), Gn = C(null), Kn = C(null);
|
|
358
|
+
function qn() {
|
|
359
|
+
if (j.value && (s(k.dataset) && (ce({
|
|
348
360
|
componentName: "VueUiVerticalBar",
|
|
349
361
|
type: "dataset",
|
|
350
|
-
debug:
|
|
351
|
-
}),
|
|
352
|
-
let e =
|
|
353
|
-
let { width: e, height: t } =
|
|
362
|
+
debug: Un.value
|
|
363
|
+
}), Yt.value = !1, En.value = !0), s(k.dataset) || (En.value = P.value.loading), P.value.responsive)) {
|
|
364
|
+
let e = Ee(() => {
|
|
365
|
+
let { width: e, height: t } = De({
|
|
354
366
|
chart: j.value,
|
|
355
|
-
title: R.value.title.text ?
|
|
356
|
-
legend: R.value.legend.show ?
|
|
357
|
-
source:
|
|
358
|
-
noTitle:
|
|
367
|
+
title: R.value.title.text ? en.value : null,
|
|
368
|
+
legend: R.value.legend.show ? tn.value : null,
|
|
369
|
+
source: nn.value,
|
|
370
|
+
noTitle: rn.value
|
|
359
371
|
});
|
|
360
|
-
|
|
361
|
-
|
|
372
|
+
Wn.value = t / 3, requestAnimationFrame(async () => {
|
|
373
|
+
Mn.value = t, B.value = e;
|
|
362
374
|
});
|
|
363
375
|
});
|
|
364
|
-
|
|
365
|
-
|
|
376
|
+
Gn.value && (Kn.value && Gn.value.unobserve(Kn.value), Gn.value.disconnect()), Gn.value = new ResizeObserver(e), He(() => {
|
|
377
|
+
Kn.value = j.value?.parentNode, Kn.value && Gn.value.observe(Kn.value);
|
|
366
378
|
});
|
|
367
379
|
}
|
|
368
380
|
}
|
|
369
|
-
|
|
370
|
-
|
|
381
|
+
Ue(() => {
|
|
382
|
+
Gn.value && (Kn.value && Gn.value.unobserve(Kn.value), Gn.value.disconnect());
|
|
371
383
|
});
|
|
372
384
|
let H = C({
|
|
373
385
|
showTable: P.value.table.show,
|
|
374
386
|
sortDesc: F.value.sort === "desc",
|
|
375
387
|
showTooltip: L.value.show
|
|
376
|
-
}),
|
|
377
|
-
!e.value && !e.children &&
|
|
388
|
+
}), Jn = p(() => H.value.sortDesc), U = p(() => (Tn.value.forEach((e, t) => {
|
|
389
|
+
!e.value && !e.children && ce({
|
|
378
390
|
componentName: "VueUiVerticalBar",
|
|
379
391
|
type: "datasetAttributeEmpty",
|
|
380
392
|
property: `value (index ${t})`,
|
|
381
|
-
debug:
|
|
382
|
-
}), e.children && (s(e.children) ?
|
|
393
|
+
debug: Un.value
|
|
394
|
+
}), e.children && (s(e.children) ? ce({
|
|
383
395
|
componentName: "VueUiVerticalBar",
|
|
384
396
|
type: "datasetAttributeEmpty",
|
|
385
397
|
property: `children (index ${t})`,
|
|
386
|
-
debug:
|
|
398
|
+
debug: Un.value
|
|
387
399
|
}) : e.children.forEach((e, t) => {
|
|
388
|
-
[null, void 0].includes(e.name) &&
|
|
400
|
+
[null, void 0].includes(e.name) && ce({
|
|
389
401
|
componentName: "VueUiVerticalBar",
|
|
390
402
|
type: "datasetSerieAttribute",
|
|
391
403
|
property: "name",
|
|
392
404
|
key: "children",
|
|
393
405
|
index: t,
|
|
394
|
-
debug:
|
|
406
|
+
debug: Un.value
|
|
395
407
|
});
|
|
396
408
|
}));
|
|
397
|
-
}),
|
|
409
|
+
}), Tn.value.map((e, t) => {
|
|
398
410
|
let n = `vertical_parent_${t}_${A.value}`, r = e.children && e.children.length > 0, i = d(e.value ? e.value : r ? e.children.map((e) => e.value || 0).reduce((e, t) => e + t, 0) : 0), a = i >= 0 ? 1 : -1;
|
|
399
411
|
return {
|
|
400
412
|
...e,
|
|
@@ -406,10 +418,10 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
406
418
|
sign: a,
|
|
407
419
|
hasChildren: r,
|
|
408
420
|
isChild: !1,
|
|
409
|
-
segregate: () =>
|
|
421
|
+
segregate: () => cr(n),
|
|
410
422
|
isSegregated: M.value.includes(n),
|
|
411
|
-
color: c(e.color) ||
|
|
412
|
-
children: !e.children || !e.children.length ? [] : e.children.toSorted(
|
|
423
|
+
color: c(e.color) || Bn.value[t] || o[t] || o[t % o.length],
|
|
424
|
+
children: !e.children || !e.children.length ? [] : e.children.toSorted(mn.value ? () => 0 : (e, t) => Jn.value ? t.value - e.value : e.value - t.value).map((r, s) => ({
|
|
413
425
|
...r,
|
|
414
426
|
value: d(Math.abs(r.value)),
|
|
415
427
|
absoluteIndex: t,
|
|
@@ -421,14 +433,14 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
421
433
|
parentSign: a,
|
|
422
434
|
id: `vertical_child_${t}_${s}_${A.value}`,
|
|
423
435
|
childIndex: s,
|
|
424
|
-
color: c(r.color) || c(e.color) ||
|
|
436
|
+
color: c(r.color) || c(e.color) || Bn.value[t] || o[t] || o[t % o.length]
|
|
425
437
|
})).map((t, n) => ({
|
|
426
438
|
...t,
|
|
427
439
|
isFirstChild: n === 0,
|
|
428
440
|
isLastChild: n === e.children.length - 1
|
|
429
441
|
}))
|
|
430
442
|
};
|
|
431
|
-
}).toSorted(
|
|
443
|
+
}).toSorted(mn.value ? () => 0 : (e, t) => Jn.value ? t.value - e.value : e.value - t.value))), W = p(() => U.value.filter((e) => !M.value.includes(e.id))), G = p(() => W.value.flatMap((e) => e.hasChildren ? e.children : e)), Yn = p(() => U.value.flatMap((e) => e.hasChildren ? e.children : e)), Xn = p(() => W.value.flatMap((e) => e.children && e.children.length > 0 ? e.children.length : 1).reduce((e, t) => e + t, 0)), Zn = p(() => ({
|
|
432
444
|
cy: "vertical-bar-div-legend",
|
|
433
445
|
backgroundColor: R.value.legend.backgroundColor,
|
|
434
446
|
color: R.value.legend.color,
|
|
@@ -442,55 +454,55 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
442
454
|
}), e;
|
|
443
455
|
}), J = p(() => {
|
|
444
456
|
let e = Math.max(0, ...q.value) * K.value;
|
|
445
|
-
return (
|
|
457
|
+
return (Mn.value - 24 - (Xn.value - 1) * V.value - e) / Xn.value;
|
|
446
458
|
}), Y = p(() => ({
|
|
447
459
|
width: B.value,
|
|
448
|
-
height:
|
|
460
|
+
height: Mn.value,
|
|
449
461
|
padding: {
|
|
450
462
|
top: 12,
|
|
451
463
|
left: 128 + F.value.offsetX,
|
|
452
464
|
right: 64 + F.value.paddingRight,
|
|
453
465
|
bottom: 12
|
|
454
466
|
}
|
|
455
|
-
})),
|
|
456
|
-
function
|
|
457
|
-
|
|
458
|
-
if (!
|
|
459
|
-
|
|
467
|
+
})), Qn = C(0);
|
|
468
|
+
function $n() {
|
|
469
|
+
He(() => {
|
|
470
|
+
if (!dn.value) {
|
|
471
|
+
Qn.value = 0;
|
|
460
472
|
return;
|
|
461
473
|
}
|
|
462
|
-
let e = Array.from(
|
|
474
|
+
let e = Array.from(dn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
463
475
|
let n = t.getBBox?.().width ?? t.getComputedTextLength();
|
|
464
476
|
return n > e ? n : e;
|
|
465
477
|
}, 0);
|
|
466
|
-
|
|
478
|
+
Qn.value = e + 12;
|
|
467
479
|
});
|
|
468
480
|
}
|
|
469
|
-
|
|
481
|
+
Ye(() => [
|
|
470
482
|
G.value,
|
|
471
483
|
B.value,
|
|
472
|
-
|
|
484
|
+
Mn.value,
|
|
473
485
|
F.value.nameLabels,
|
|
474
486
|
F.value.offsetX
|
|
475
|
-
], () =>
|
|
476
|
-
|
|
487
|
+
], () => $n(), { deep: !0 }), We(() => {
|
|
488
|
+
$n();
|
|
477
489
|
});
|
|
478
|
-
function
|
|
479
|
-
return typeof document > "u" ? null : (
|
|
490
|
+
function er() {
|
|
491
|
+
return typeof document > "u" ? null : (gn || (gn = document.createElement("canvas"), _n = gn.getContext("2d")), _n);
|
|
480
492
|
}
|
|
481
|
-
function
|
|
482
|
-
let t = String(e ?? ""), n = F.value, r = n.dataLabels.fontSize, i = n.dataLabels.bold ? 700 : 400, a = P.value.style.fontFamily, o =
|
|
493
|
+
function tr(e) {
|
|
494
|
+
let t = String(e ?? ""), n = F.value, r = n.dataLabels.fontSize, i = n.dataLabels.bold ? 700 : 400, a = P.value.style.fontFamily, o = er();
|
|
483
495
|
return o ? (o.font = `${i} ${r}px ${a}`, o.measureText(t).width) : t.length * r * .6;
|
|
484
496
|
}
|
|
485
|
-
function
|
|
497
|
+
function nr() {
|
|
486
498
|
let e = W.value.flatMap((e) => e.children && e.children.length ? e.children.map((e) => Math.abs(e.value)) : Math.abs(e.value));
|
|
487
499
|
return e.length ? Math.max(...e) : 0;
|
|
488
500
|
}
|
|
489
|
-
let
|
|
490
|
-
|
|
491
|
-
let e = F.value, t =
|
|
501
|
+
let rr = p(() => {
|
|
502
|
+
hn.value;
|
|
503
|
+
let e = F.value, t = Qn.value + Math.abs(e.nameLabels.offsetX) + e.offsetX, n = Y.value.width - Y.value.padding.right, r = Math.max(0, n - t - e.offsetX), i = Y.value.width - 40, a = nr(), o = G.value.map((e, t) => ({
|
|
492
504
|
serie: e,
|
|
493
|
-
textWidth:
|
|
505
|
+
textWidth: tr(Er(e.value, e, t, e.sign))
|
|
494
506
|
}));
|
|
495
507
|
if (!o.length || r <= 0) return {
|
|
496
508
|
left: 0,
|
|
@@ -528,17 +540,17 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
528
540
|
left: 0,
|
|
529
541
|
right: Math.ceil(Math.min(r, -u))
|
|
530
542
|
};
|
|
531
|
-
}),
|
|
532
|
-
function
|
|
533
|
-
|
|
543
|
+
}), ir = p(() => rr.value.right), ar = p(() => rr.value.left);
|
|
544
|
+
function or() {
|
|
545
|
+
hn.value += 1;
|
|
534
546
|
}
|
|
535
|
-
|
|
536
|
-
typeof document > "u" || !document.fonts || (document.fonts.ready.then(
|
|
537
|
-
}),
|
|
538
|
-
typeof document < "u" && document.fonts && document.fonts.removeEventListener?.("loadingdone",
|
|
547
|
+
We(() => {
|
|
548
|
+
typeof document > "u" || !document.fonts || (document.fonts.ready.then(or), document.fonts.addEventListener?.("loadingdone", or));
|
|
549
|
+
}), Ue(() => {
|
|
550
|
+
typeof document < "u" && document.fonts && document.fonts.removeEventListener?.("loadingdone", or), gn = null, _n = null;
|
|
539
551
|
});
|
|
540
552
|
let X = p(() => {
|
|
541
|
-
let e =
|
|
553
|
+
let e = Qn.value + Math.abs(F.value.nameLabels.offsetX) + ar.value + F.value.offsetX, t = Y.value.width - Y.value.padding.right, n = Math.max(0, t - e - ir.value - F.value.offsetX);
|
|
542
554
|
return {
|
|
543
555
|
top: Y.value.padding.top,
|
|
544
556
|
bottom: Y.value.padding.top + Y.value.height,
|
|
@@ -548,47 +560,47 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
548
560
|
fullHeight: Y.value.padding.top + Y.value.padding.bottom + Y.value.height
|
|
549
561
|
};
|
|
550
562
|
});
|
|
551
|
-
function
|
|
563
|
+
function sr() {
|
|
552
564
|
M.value.length ? M.value = [] : U.value.forEach((e) => {
|
|
553
565
|
M.value.push(e.id);
|
|
554
|
-
}),
|
|
566
|
+
}), bn("selectLegend", W.value);
|
|
555
567
|
}
|
|
556
|
-
async function
|
|
568
|
+
async function cr(e) {
|
|
557
569
|
if (M.value.includes(e)) M.value = M.value.filter((t) => t !== e);
|
|
558
570
|
else {
|
|
559
571
|
if (M.value.length === U.value.length - 1) return;
|
|
560
572
|
M.value.push(e);
|
|
561
573
|
}
|
|
562
|
-
|
|
574
|
+
bn("selectLegend", W.value);
|
|
563
575
|
}
|
|
564
|
-
function
|
|
565
|
-
return U.value.length ? U.value.find((t) => t.name === e) || (
|
|
576
|
+
function lr(e) {
|
|
577
|
+
return U.value.length ? U.value.find((t) => t.name === e) || (Un.value && console.warn(`VueUiHorizontalBar - Series name not found "${e}"`), null) : (Un.value && console.warn("VueUiHorizontalBar - There are no series to show."), null);
|
|
566
578
|
}
|
|
567
|
-
function
|
|
568
|
-
let t =
|
|
569
|
-
t !== null && M.value.includes(t.id) &&
|
|
579
|
+
function ur(e) {
|
|
580
|
+
let t = lr(e);
|
|
581
|
+
t !== null && M.value.includes(t.id) && cr(t.id);
|
|
570
582
|
}
|
|
571
|
-
function
|
|
572
|
-
let t =
|
|
573
|
-
t !== null && (M.value.includes(t.id) ||
|
|
583
|
+
function dr(e) {
|
|
584
|
+
let t = lr(e);
|
|
585
|
+
t !== null && (M.value.includes(t.id) || cr(t.id));
|
|
574
586
|
}
|
|
575
587
|
let Z = p(() => W.value.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0));
|
|
576
|
-
function
|
|
588
|
+
function fr(e, t = !1, n = 0) {
|
|
577
589
|
return t ? u({
|
|
578
590
|
v: d(Math.abs(e) / Z.value * 100),
|
|
579
591
|
s: "%",
|
|
580
592
|
r: n
|
|
581
593
|
}) : Math.abs(e) / Z.value;
|
|
582
594
|
}
|
|
583
|
-
let
|
|
595
|
+
let pr = p(() => G.value.map((e) => e.sign).includes(-1)), mr = p(() => Math.max(...W.value.flatMap((e) => e.children && e.children.length ? Math.max(...e.children.map((e) => e.value)) : e.value)));
|
|
584
596
|
function Q(e) {
|
|
585
|
-
let t = e /
|
|
586
|
-
return d(X.value.width / (
|
|
597
|
+
let t = e / mr.value;
|
|
598
|
+
return d(X.value.width / (pr.value ? 2 : 1) * t);
|
|
587
599
|
}
|
|
588
|
-
function
|
|
600
|
+
function hr(e) {
|
|
589
601
|
return Q(e) + X.value.left;
|
|
590
602
|
}
|
|
591
|
-
function
|
|
603
|
+
function gr(e, t) {
|
|
592
604
|
let n = W.value.find((t) => t.id === e.parentId);
|
|
593
605
|
return {
|
|
594
606
|
y: X.value.top + (V.value + J.value) * t + q.value[t] * K.value - K.value + F.value.parentLabels.fontSize,
|
|
@@ -598,58 +610,58 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
598
610
|
NaN,
|
|
599
611
|
null
|
|
600
612
|
].includes(n.value) ? "" : n.sign === 1 ? n.value : -n.value,
|
|
601
|
-
percentageToTotal: isNaN(n.value / Z.value) ? "" :
|
|
613
|
+
percentageToTotal: isNaN(n.value / Z.value) ? "" : fr(n.value, !0, F.value.dataLabels.percentage.roundingPercentage),
|
|
602
614
|
sign: n.sign
|
|
603
615
|
};
|
|
604
616
|
}
|
|
605
|
-
function
|
|
617
|
+
function _r() {
|
|
606
618
|
return W.value;
|
|
607
619
|
}
|
|
608
|
-
function
|
|
609
|
-
return
|
|
620
|
+
function vr(e, t) {
|
|
621
|
+
return gr(e, t).name;
|
|
610
622
|
}
|
|
611
|
-
function
|
|
612
|
-
let n =
|
|
613
|
-
return
|
|
623
|
+
function yr(e, t) {
|
|
624
|
+
let n = gr(e, t);
|
|
625
|
+
return Er(n.value, n, t, e.parentSign || e.sign);
|
|
614
626
|
}
|
|
615
|
-
let
|
|
616
|
-
function
|
|
617
|
-
|
|
627
|
+
let br = C(null), xr = C(null);
|
|
628
|
+
function Sr({ datapoint: e, seriesIndex: t }) {
|
|
629
|
+
bn("selectDatapoint", e), P.value.events.datapointClick && P.value.events.datapointClick({
|
|
618
630
|
datapoint: e,
|
|
619
631
|
seriesIndex: t
|
|
620
632
|
});
|
|
621
633
|
}
|
|
622
|
-
function
|
|
634
|
+
function Cr({ datapoint: e, seriesIndex: t }) {
|
|
623
635
|
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
624
636
|
datapoint: e,
|
|
625
637
|
seriesIndex: t
|
|
626
|
-
}),
|
|
638
|
+
}), Qt.value = null, Xt.value = !1, br.value = null, N.value === t && (N.value = null);
|
|
627
639
|
}
|
|
628
|
-
function
|
|
629
|
-
|
|
640
|
+
function wr(e, t, r = "pointer") {
|
|
641
|
+
yn.value = r, P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
630
642
|
datpoint: e,
|
|
631
643
|
seriesIndex: t
|
|
632
|
-
}), N.value = t,
|
|
644
|
+
}), N.value = t, Qt.value = e, xr.value = {
|
|
633
645
|
datapoint: e,
|
|
634
646
|
seriesIndex: t,
|
|
635
647
|
series: U.value,
|
|
636
648
|
config: P.value
|
|
637
|
-
},
|
|
649
|
+
}, Xt.value = !0, br.value = e.id;
|
|
638
650
|
let i = "", a = e.isChild ? e.parentName : e.name, o = e.isChild ? e.name : "", s = L.value.customFormat;
|
|
639
|
-
n(s) &&
|
|
651
|
+
n(s) && oe(() => s({
|
|
640
652
|
datapoint: e,
|
|
641
653
|
series: U.value,
|
|
642
654
|
config: P.value,
|
|
643
655
|
seriesIndex: t
|
|
644
|
-
})) ?
|
|
656
|
+
})) ? Zt.value = s({
|
|
645
657
|
datapoint: e,
|
|
646
658
|
series: U.value,
|
|
647
659
|
config: P.value,
|
|
648
660
|
seriesIndex: t
|
|
649
661
|
}) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
650
|
-
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${e.color}"/>${
|
|
662
|
+
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${e.color}"/>${Jt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${A.value}_${e.absoluteIndex})"/>` : ""}</svg> ${a}</div>
|
|
651
663
|
${o ? `<div>${o}</div>` : ""}
|
|
652
|
-
</div>`, L.value.showValue && (i += `<div>${P.value.translations.value}: <b>${
|
|
664
|
+
</div>`, L.value.showValue && (i += `<div>${P.value.translations.value}: <b>${ae(F.value.dataLabels.value.formatter, e.sign === 1 ? e.value : -e.value, u({
|
|
653
665
|
p: L.value.prefix,
|
|
654
666
|
v: e.sign === 1 ? e.value : -e.value,
|
|
655
667
|
s: L.value.suffix,
|
|
@@ -665,11 +677,11 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
665
677
|
v: Math.abs(e.value) / Math.abs(e.parentValue) * 100,
|
|
666
678
|
s: "%",
|
|
667
679
|
r: L.value.roundingPercentage
|
|
668
|
-
})}</b></div>`)),
|
|
680
|
+
})}</b></div>`)), Zt.value = `<div style="text-align:left">${i}</div>`);
|
|
669
681
|
}
|
|
670
|
-
function
|
|
682
|
+
function Tr({ legend: e, index: t }) {
|
|
671
683
|
let n = R.value.legend;
|
|
672
|
-
return n.showValue ? `${e.name}: ${
|
|
684
|
+
return n.showValue ? `${e.name}: ${ae(F.value.dataLabels.value.formatter, e.value, u({
|
|
673
685
|
p: n.prefix,
|
|
674
686
|
v: e.value,
|
|
675
687
|
s: n.suffix,
|
|
@@ -679,9 +691,9 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
679
691
|
seriesIndex: t
|
|
680
692
|
})}` : e.name;
|
|
681
693
|
}
|
|
682
|
-
function
|
|
694
|
+
function Er(e, t, n, r) {
|
|
683
695
|
if (!F.value.dataLabels.value.show) return "";
|
|
684
|
-
let i =
|
|
696
|
+
let i = ae(F.value.dataLabels.value.formatter, d(r === -1 && e >= 0 ? -e : e), u({
|
|
685
697
|
p: F.value.dataLabels.value.prefix,
|
|
686
698
|
v: d(r === -1 && e >= 0 ? -e : e),
|
|
687
699
|
s: F.value.dataLabels.value.suffix,
|
|
@@ -689,7 +701,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
689
701
|
}), {
|
|
690
702
|
datapoint: t,
|
|
691
703
|
seriesIndex: n
|
|
692
|
-
}), a = `(${
|
|
704
|
+
}), a = `(${fr(e, !0, F.value.dataLabels.percentage.roundingPercentage)})`;
|
|
693
705
|
return `${i}${F.value.dataLabels.percentage.show ? ` ${a}` : ""}`;
|
|
694
706
|
}
|
|
695
707
|
let $ = p(() => ({
|
|
@@ -731,7 +743,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
731
743
|
childPercentageToTotal: ""
|
|
732
744
|
})
|
|
733
745
|
}));
|
|
734
|
-
function
|
|
746
|
+
function Dr(e = null) {
|
|
735
747
|
let n = [
|
|
736
748
|
[R.value.title.text],
|
|
737
749
|
[R.value.title.subtitle.text],
|
|
@@ -750,41 +762,41 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
750
762
|
title: R.value.title.text || "vue-ui-vertical-bar"
|
|
751
763
|
});
|
|
752
764
|
}
|
|
753
|
-
let
|
|
754
|
-
function
|
|
755
|
-
|
|
765
|
+
let Or = C(!1);
|
|
766
|
+
function kr(e) {
|
|
767
|
+
Or.value = e, $t.value += 1;
|
|
756
768
|
}
|
|
757
|
-
function
|
|
769
|
+
function Ar() {
|
|
758
770
|
H.value.showTable = !H.value.showTable;
|
|
759
771
|
}
|
|
760
|
-
|
|
772
|
+
We(() => {
|
|
761
773
|
[
|
|
762
774
|
"none",
|
|
763
775
|
"asc",
|
|
764
776
|
"desc"
|
|
765
|
-
].includes(F.value.sort) ||
|
|
777
|
+
].includes(F.value.sort) || ce({
|
|
766
778
|
componentName: "VueUiVerticalBar",
|
|
767
779
|
type: "attributeWrongValue",
|
|
768
780
|
property: "style.chart.layout.bars.sort",
|
|
769
781
|
key: F.value.sort
|
|
770
|
-
}),
|
|
782
|
+
}), pn.value = fn.value[F.value.sort], H.value.sortDesc = pn.value === 2, mn.value = pn.value === 0;
|
|
771
783
|
});
|
|
772
|
-
function
|
|
773
|
-
|
|
784
|
+
function jr() {
|
|
785
|
+
pn.value += 1, pn.value > 2 && (pn.value = 0);
|
|
774
786
|
}
|
|
775
|
-
function
|
|
776
|
-
|
|
787
|
+
function Mr() {
|
|
788
|
+
jr(), H.value.sortDesc = pn.value === 2, mn.value = pn.value === 0;
|
|
777
789
|
}
|
|
778
|
-
function
|
|
790
|
+
function Nr() {
|
|
779
791
|
H.value.showTooltip = !H.value.showTooltip;
|
|
780
792
|
}
|
|
781
|
-
let
|
|
782
|
-
function
|
|
783
|
-
|
|
793
|
+
let Pr = C(!1);
|
|
794
|
+
function Fr() {
|
|
795
|
+
Pr.value = !Pr.value;
|
|
784
796
|
}
|
|
785
|
-
async function
|
|
797
|
+
async function Ir({ scale: e = 2 } = {}) {
|
|
786
798
|
if (!j.value) return;
|
|
787
|
-
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
799
|
+
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
788
800
|
domElement: j.value,
|
|
789
801
|
base64: !0,
|
|
790
802
|
img: !0,
|
|
@@ -799,20 +811,20 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
799
811
|
aspectRatio: r
|
|
800
812
|
};
|
|
801
813
|
}
|
|
802
|
-
let
|
|
814
|
+
let Lr = p(() => {
|
|
803
815
|
let e = P.value.table.useDialog && !P.value.table.show, t = H.value.showTable;
|
|
804
816
|
return {
|
|
805
|
-
component: e ?
|
|
817
|
+
component: e ? Wt : ke,
|
|
806
818
|
title: `${R.value.title.text}${R.value.title.subtitle.text ? `: ${R.value.title.subtitle.text}` : ""}`,
|
|
807
819
|
props: e ? {
|
|
808
820
|
backgroundColor: P.value.table.th.backgroundColor,
|
|
809
821
|
color: P.value.table.th.color,
|
|
810
822
|
headerColor: P.value.table.th.color,
|
|
811
823
|
headerBg: P.value.table.th.backgroundColor,
|
|
812
|
-
isFullscreen:
|
|
824
|
+
isFullscreen: Or.value,
|
|
813
825
|
fullscreenParent: j.value,
|
|
814
826
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
815
|
-
isCursorPointer:
|
|
827
|
+
isCursorPointer: xn.value
|
|
816
828
|
} : {
|
|
817
829
|
hideDetails: !0,
|
|
818
830
|
config: {
|
|
@@ -830,17 +842,17 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
830
842
|
}
|
|
831
843
|
};
|
|
832
844
|
});
|
|
833
|
-
|
|
834
|
-
P.value.table.show || (e && P.value.table.useDialog &&
|
|
845
|
+
Ye(() => H.value.showTable, (e) => {
|
|
846
|
+
P.value.table.show || (e && P.value.table.useDialog && cn.value ? cn.value.open() : "close" in cn.value && cn.value.close());
|
|
835
847
|
});
|
|
836
|
-
let { isResponsive:
|
|
837
|
-
function
|
|
838
|
-
H.value.showTable = !1,
|
|
848
|
+
let { isResponsive: Rr } = Pe(Vn, Hn);
|
|
849
|
+
function zr() {
|
|
850
|
+
H.value.showTable = !1, ln.value && ln.value.setTableIconState(!1);
|
|
839
851
|
}
|
|
840
|
-
let
|
|
852
|
+
let Br = p(() => U.value.map((e, t) => ({
|
|
841
853
|
...e,
|
|
842
854
|
shape: "square",
|
|
843
|
-
display: `${e.name}: ${
|
|
855
|
+
display: `${e.name}: ${ae(F.value.dataLabels.value.formatter, e.value, u({
|
|
844
856
|
p: R.value.legend.prefix,
|
|
845
857
|
v: e.value,
|
|
846
858
|
s: R.value.legend.suffix,
|
|
@@ -849,23 +861,23 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
849
861
|
datapoint: e,
|
|
850
862
|
seriesIndex: t
|
|
851
863
|
})}`
|
|
852
|
-
}))),
|
|
864
|
+
}))), Vr = p(() => R.value.backgroundColor), Hr = p(() => R.value.legend), Ur = p(() => R.value.title), Wr = p(() => Br.value.map((e) => ({
|
|
853
865
|
...e,
|
|
854
866
|
name: e.display
|
|
855
|
-
}))), { isCallbackImaging:
|
|
856
|
-
svg:
|
|
857
|
-
title:
|
|
858
|
-
legend:
|
|
859
|
-
legendItems:
|
|
860
|
-
backgroundColor:
|
|
867
|
+
}))), { isCallbackImaging: Gr, isCallbackSvg: Kr, generateSvg: qr, onGenerateImage: Jr } = be({
|
|
868
|
+
svg: An,
|
|
869
|
+
title: Ur,
|
|
870
|
+
legend: Hr,
|
|
871
|
+
legendItems: Wr,
|
|
872
|
+
backgroundColor: Vr,
|
|
861
873
|
getSvgCallback: () => P.value.userOptions.callbacks.svg,
|
|
862
|
-
generateImage:
|
|
874
|
+
generateImage: Rn
|
|
863
875
|
});
|
|
864
|
-
function
|
|
876
|
+
function Yr() {
|
|
865
877
|
console.warn("[autoSize]: this legacy method can be safely removed as it has no impact.");
|
|
866
878
|
}
|
|
867
|
-
async function
|
|
868
|
-
if (
|
|
879
|
+
async function Xr() {
|
|
880
|
+
if (bn("copyAlt", {
|
|
869
881
|
config: P.value,
|
|
870
882
|
dataset: W.value
|
|
871
883
|
}), !P.value.userOptions.callbacks.altCopy) {
|
|
@@ -877,54 +889,54 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
877
889
|
dataset: W.value
|
|
878
890
|
}));
|
|
879
891
|
}
|
|
880
|
-
let
|
|
881
|
-
function
|
|
882
|
-
N.value = null,
|
|
892
|
+
let Zr = C(!1);
|
|
893
|
+
function Qr() {
|
|
894
|
+
N.value = null, Zr.value = !0;
|
|
883
895
|
}
|
|
884
|
-
function
|
|
885
|
-
N.value = null,
|
|
896
|
+
function $r() {
|
|
897
|
+
N.value = null, Xt.value = !1, Zr.value = !1;
|
|
886
898
|
}
|
|
887
|
-
function
|
|
899
|
+
function ei() {
|
|
888
900
|
if (N.value === null) return;
|
|
889
901
|
let e = G.value[N.value];
|
|
890
|
-
e &&
|
|
902
|
+
e && Cr({
|
|
891
903
|
datapoint: e,
|
|
892
904
|
seriesIndex: N.value
|
|
893
|
-
}), N.value = null,
|
|
905
|
+
}), N.value = null, yn.value = "pointer";
|
|
894
906
|
}
|
|
895
|
-
function
|
|
896
|
-
if (!
|
|
907
|
+
function ti(e) {
|
|
908
|
+
if (!An.value || Pr.value || document.activeElement !== An.value) return;
|
|
897
909
|
let t = e.key === "ArrowRight" || e.key === "ArrowDown", n = e.key === "ArrowLeft" || e.key === "ArrowUp", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
898
910
|
if (!t && !n && !r && !i) return;
|
|
899
911
|
let a = G.value.length;
|
|
900
912
|
if (!a) return;
|
|
901
913
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
902
|
-
|
|
914
|
+
ei();
|
|
903
915
|
return;
|
|
904
916
|
}
|
|
905
917
|
if (r) {
|
|
906
918
|
if (N.value === null) return;
|
|
907
919
|
let e = G.value[N.value];
|
|
908
920
|
if (!e) return;
|
|
909
|
-
|
|
921
|
+
Sr({
|
|
910
922
|
datapoint: e,
|
|
911
923
|
seriesIndex: N.value
|
|
912
924
|
});
|
|
913
925
|
return;
|
|
914
926
|
}
|
|
915
|
-
let o = N.value, s =
|
|
927
|
+
let o = N.value, s = Qt.value ? G.value.findIndex((e) => e.id === Qt.value.id) : null;
|
|
916
928
|
o !== null && o >= 0 && o < a ? t ? (o += 1, o >= a && (o = 0)) : n && (--o, o < 0 && (o = a - 1)) : s !== null && s >= 0 && s < a ? (o = t ? s + 1 : s - 1, o >= a && (o = 0), o < 0 && (o = a - 1)) : o = t ? 0 : a - 1;
|
|
917
929
|
let c = G.value[o];
|
|
918
|
-
c && (N.value = o,
|
|
930
|
+
c && (N.value = o, ni(c), wr(c, o, "keyboard"));
|
|
919
931
|
}
|
|
920
|
-
function
|
|
932
|
+
function ni(e) {
|
|
921
933
|
if (!e) return;
|
|
922
934
|
let t = X.value.right, n = X.value.top + (V.value + J.value) * e.absoluteIndex + q.value[e.absoluteIndex] * K.value;
|
|
923
935
|
if (!Number.isFinite(t) || !Number.isFinite(n)) return;
|
|
924
|
-
let r = a(t, n,
|
|
925
|
-
r && (
|
|
936
|
+
let r = a(t, n, An.value);
|
|
937
|
+
r && (vn.value = r);
|
|
926
938
|
}
|
|
927
|
-
let
|
|
939
|
+
let ri = p(() => ({
|
|
928
940
|
head: $.value.head,
|
|
929
941
|
body: $.value.body.map((e) => [
|
|
930
942
|
e.parentName,
|
|
@@ -960,42 +972,42 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
960
972
|
caption: P.value.a11y.translations.tableCaption,
|
|
961
973
|
notice: P.value.a11y.translations.tableAvailable
|
|
962
974
|
}));
|
|
963
|
-
return
|
|
964
|
-
autoSize:
|
|
965
|
-
getData:
|
|
966
|
-
getImage:
|
|
967
|
-
generatePdf:
|
|
968
|
-
generateCsv:
|
|
969
|
-
generateImage:
|
|
970
|
-
generateSvg:
|
|
971
|
-
hideSeries:
|
|
972
|
-
showSeries:
|
|
973
|
-
toggleTable:
|
|
974
|
-
toggleSort:
|
|
975
|
-
toggleTooltip:
|
|
976
|
-
toggleAnnotator:
|
|
977
|
-
toggleFullscreen:
|
|
978
|
-
copyAlt:
|
|
975
|
+
return Te({
|
|
976
|
+
autoSize: Yr,
|
|
977
|
+
getData: _r,
|
|
978
|
+
getImage: Ir,
|
|
979
|
+
generatePdf: Ln,
|
|
980
|
+
generateCsv: Dr,
|
|
981
|
+
generateImage: Rn,
|
|
982
|
+
generateSvg: qr,
|
|
983
|
+
hideSeries: dr,
|
|
984
|
+
showSeries: ur,
|
|
985
|
+
toggleTable: Ar,
|
|
986
|
+
toggleSort: Mr,
|
|
987
|
+
toggleTooltip: Nr,
|
|
988
|
+
toggleAnnotator: Fr,
|
|
989
|
+
toggleFullscreen: kr,
|
|
990
|
+
copyAlt: Xr
|
|
979
991
|
}), (e, t) => (S(), g("div", {
|
|
980
|
-
class: y(`vue-data-ui-component vue-ui-vertical-bar ${
|
|
992
|
+
class: y(`vue-data-ui-component vue-ui-vertical-bar ${Or.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"} ${P.value.responsive ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
981
993
|
ref_key: "verticalBarChart",
|
|
982
994
|
ref: j,
|
|
983
995
|
id: `vue-ui-vertical-bar_${A.value}`,
|
|
984
996
|
style: x(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${R.value.backgroundColor};height:100%`),
|
|
985
|
-
onMouseenter: t[3] ||= () => D(
|
|
986
|
-
onMouseleave: t[4] ||= () => D(
|
|
997
|
+
onMouseenter: t[3] ||= () => D(On)(!0),
|
|
998
|
+
onMouseleave: t[4] ||= () => D(On)(!1)
|
|
987
999
|
}, [
|
|
988
1000
|
_("p", {
|
|
989
1001
|
id: `chart-instructions-${A.value}`,
|
|
990
1002
|
class: "sr-only"
|
|
991
|
-
}, E(P.value.a11y.translations.keyboardNavigation), 9,
|
|
992
|
-
|
|
1003
|
+
}, E(P.value.a11y.translations.keyboardNavigation), 9, $e),
|
|
1004
|
+
ri.value.body.length ? (S(), m(je, {
|
|
993
1005
|
key: 0,
|
|
994
1006
|
uid: A.value,
|
|
995
|
-
head:
|
|
996
|
-
body:
|
|
997
|
-
caption:
|
|
998
|
-
notice:
|
|
1007
|
+
head: ri.value.head,
|
|
1008
|
+
body: ri.value.body,
|
|
1009
|
+
caption: ri.value.caption,
|
|
1010
|
+
notice: ri.value.notice
|
|
999
1011
|
}, null, 8, [
|
|
1000
1012
|
"uid",
|
|
1001
1013
|
"head",
|
|
@@ -1003,15 +1015,15 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1003
1015
|
"caption",
|
|
1004
1016
|
"notice"
|
|
1005
1017
|
])) : h("", !0),
|
|
1006
|
-
P.value.userOptions.buttons.annotator ? (S(), m(D(
|
|
1018
|
+
P.value.userOptions.buttons.annotator ? (S(), m(D(Vt), {
|
|
1007
1019
|
key: 1,
|
|
1008
|
-
svgRef: D(
|
|
1020
|
+
svgRef: D(An),
|
|
1009
1021
|
backgroundColor: R.value.backgroundColor,
|
|
1010
1022
|
color: R.value.color,
|
|
1011
|
-
active:
|
|
1012
|
-
isCursorPointer:
|
|
1023
|
+
active: Pr.value,
|
|
1024
|
+
isCursorPointer: xn.value,
|
|
1013
1025
|
palette: P.value.userOptions.annotatorPalette,
|
|
1014
|
-
onClose:
|
|
1026
|
+
onClose: Fr
|
|
1015
1027
|
}, {
|
|
1016
1028
|
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1017
1029
|
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
@@ -1028,20 +1040,20 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1028
1040
|
"isCursorPointer",
|
|
1029
1041
|
"palette"
|
|
1030
1042
|
])) : h("", !0),
|
|
1031
|
-
|
|
1043
|
+
zn.value ? (S(), g("div", {
|
|
1032
1044
|
key: 2,
|
|
1033
1045
|
ref_key: "noTitle",
|
|
1034
|
-
ref:
|
|
1046
|
+
ref: rn,
|
|
1035
1047
|
class: "vue-data-ui-no-title-space",
|
|
1036
1048
|
style: "height:36px; width: 100%;background:transparent"
|
|
1037
1049
|
}, null, 512)) : h("", !0),
|
|
1038
1050
|
R.value.title.text ? (S(), g("div", {
|
|
1039
1051
|
key: 3,
|
|
1040
1052
|
ref_key: "chartTitle",
|
|
1041
|
-
ref:
|
|
1053
|
+
ref: en,
|
|
1042
1054
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1043
|
-
}, [(S(), m(
|
|
1044
|
-
key: `title_${
|
|
1055
|
+
}, [(S(), m(Ce, {
|
|
1056
|
+
key: `title_${an.value}`,
|
|
1045
1057
|
config: {
|
|
1046
1058
|
title: {
|
|
1047
1059
|
cy: "vertical-bar-div-title",
|
|
@@ -1053,14 +1065,14 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1053
1065
|
}
|
|
1054
1066
|
}
|
|
1055
1067
|
}, null, 8, ["config"]))], 512)) : h("", !0),
|
|
1056
|
-
P.value.userOptions.show &&
|
|
1068
|
+
P.value.userOptions.show && Yt.value && (D(kn) || D(Dn)) ? (S(), m(D(Ht), {
|
|
1057
1069
|
ref_key: "userOptionsRef",
|
|
1058
|
-
ref:
|
|
1070
|
+
ref: ln,
|
|
1059
1071
|
backgroundColor: R.value.backgroundColor,
|
|
1060
1072
|
color: R.value.color,
|
|
1061
|
-
key: `user_options_${
|
|
1062
|
-
isImaging: D(
|
|
1063
|
-
isPrinting: D(
|
|
1073
|
+
key: `user_options_${$t.value}`,
|
|
1074
|
+
isImaging: D(In),
|
|
1075
|
+
isPrinting: D(Fn),
|
|
1064
1076
|
uid: A.value,
|
|
1065
1077
|
hasTooltip: P.value.userOptions.buttons.tooltip && L.value.show,
|
|
1066
1078
|
hasPdf: P.value.userOptions.buttons.pdf,
|
|
@@ -1071,29 +1083,29 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1071
1083
|
hasSort: P.value.userOptions.buttons.sort,
|
|
1072
1084
|
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
1073
1085
|
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
1074
|
-
isFullscreen:
|
|
1086
|
+
isFullscreen: Or.value,
|
|
1075
1087
|
isTooltip: H.value.showTooltip,
|
|
1076
1088
|
titles: { ...P.value.userOptions.buttonTitles },
|
|
1077
1089
|
chartElement: j.value,
|
|
1078
1090
|
position: P.value.userOptions.position,
|
|
1079
1091
|
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
1080
|
-
isAnnotation:
|
|
1092
|
+
isAnnotation: Pr.value,
|
|
1081
1093
|
callbacks: P.value.userOptions.callbacks,
|
|
1082
1094
|
printScale: P.value.userOptions.print.scale,
|
|
1083
1095
|
tableDialog: P.value.table.useDialog,
|
|
1084
|
-
isCursorPointer:
|
|
1085
|
-
onToggleFullscreen:
|
|
1086
|
-
onGeneratePdf: D(
|
|
1087
|
-
onGenerateCsv:
|
|
1088
|
-
onGenerateImage: D(
|
|
1089
|
-
onGenerateSvg: D(
|
|
1090
|
-
onToggleTable:
|
|
1091
|
-
onToggleSort:
|
|
1092
|
-
onToggleTooltip:
|
|
1093
|
-
onToggleAnnotator:
|
|
1094
|
-
onCopyAlt:
|
|
1095
|
-
style: x({ visibility: D(
|
|
1096
|
-
},
|
|
1096
|
+
isCursorPointer: xn.value,
|
|
1097
|
+
onToggleFullscreen: kr,
|
|
1098
|
+
onGeneratePdf: D(Ln),
|
|
1099
|
+
onGenerateCsv: Dr,
|
|
1100
|
+
onGenerateImage: D(Jr),
|
|
1101
|
+
onGenerateSvg: D(qr),
|
|
1102
|
+
onToggleTable: Ar,
|
|
1103
|
+
onToggleSort: Mr,
|
|
1104
|
+
onToggleTooltip: Nr,
|
|
1105
|
+
onToggleAnnotator: Fr,
|
|
1106
|
+
onCopyAlt: Xr,
|
|
1107
|
+
style: x({ visibility: D(kn) ? D(Dn) ? "visible" : "hidden" : "visible" })
|
|
1108
|
+
}, Le({ _: 2 }, [
|
|
1097
1109
|
e.$slots.menuIcon ? {
|
|
1098
1110
|
name: "menuIcon",
|
|
1099
1111
|
fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
|
|
@@ -1177,27 +1189,27 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1177
1189
|
R.value.legend.show && R.value.legend.position === "top" ? (S(), g("div", {
|
|
1178
1190
|
key: 5,
|
|
1179
1191
|
ref_key: "chartLegend",
|
|
1180
|
-
ref:
|
|
1181
|
-
}, [(S(), m(
|
|
1182
|
-
key: `legend_top_${
|
|
1192
|
+
ref: tn
|
|
1193
|
+
}, [(S(), m(Fe, {
|
|
1194
|
+
key: `legend_top_${on.value}`,
|
|
1183
1195
|
legendSet: U.value,
|
|
1184
|
-
config:
|
|
1185
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1186
|
-
},
|
|
1196
|
+
config: Zn.value,
|
|
1197
|
+
onClickMarker: t[0] ||= ({ legend: e }) => cr(e.id)
|
|
1198
|
+
}, Le({
|
|
1187
1199
|
item: O(({ legend: e, index: t }) => [_("div", {
|
|
1188
|
-
onClick: (t) =>
|
|
1200
|
+
onClick: (t) => cr(e.id),
|
|
1189
1201
|
style: x(`opacity:${M.value.includes(e.id) ? .5 : 1}`)
|
|
1190
|
-
}, E(
|
|
1202
|
+
}, E(Tr({
|
|
1191
1203
|
legend: e,
|
|
1192
1204
|
index: t
|
|
1193
|
-
})), 13,
|
|
1194
|
-
legendToggle: O(() => [U.value.length > 2 && R.value.legend.selectAllToggle.show && !D(
|
|
1205
|
+
})), 13, et)]),
|
|
1206
|
+
legendToggle: O(() => [U.value.length > 2 && R.value.legend.selectAllToggle.show && !D(wn) ? (S(), m(Ae, {
|
|
1195
1207
|
key: 0,
|
|
1196
1208
|
backgroundColor: R.value.legend.selectAllToggle.backgroundColor,
|
|
1197
1209
|
color: R.value.legend.selectAllToggle.color,
|
|
1198
1210
|
fontSize: R.value.legend.fontSize,
|
|
1199
1211
|
checked: M.value.length > 0,
|
|
1200
|
-
onToggle:
|
|
1212
|
+
onToggle: sr
|
|
1201
1213
|
}, null, 8, [
|
|
1202
1214
|
"backgroundColor",
|
|
1203
1215
|
"color",
|
|
@@ -1207,7 +1219,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1207
1219
|
_: 2
|
|
1208
1220
|
}, [e.$slots.pattern ? {
|
|
1209
1221
|
name: "legend-pattern",
|
|
1210
|
-
fn: O(({ legend: e, index: t }) => [
|
|
1222
|
+
fn: O(({ legend: e, index: t }) => [ze(we, {
|
|
1211
1223
|
shape: e.shape,
|
|
1212
1224
|
radius: 30,
|
|
1213
1225
|
stroke: "none",
|
|
@@ -1219,37 +1231,37 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1219
1231
|
}, null, 8, ["shape", "fill"])]),
|
|
1220
1232
|
key: "0"
|
|
1221
1233
|
} : void 0]), 1032, ["legendSet", "config"]))], 512)) : h("", !0),
|
|
1222
|
-
_("div",
|
|
1234
|
+
_("div", tt, [(S(), g("svg", {
|
|
1223
1235
|
ref_key: "svgRef",
|
|
1224
|
-
ref:
|
|
1225
|
-
xmlns: D(
|
|
1236
|
+
ref: An,
|
|
1237
|
+
xmlns: D(ue),
|
|
1226
1238
|
class: y({
|
|
1227
|
-
"vue-data-ui-fullscreen--on":
|
|
1228
|
-
"vue-data-ui-fulscreen--off": !
|
|
1239
|
+
"vue-data-ui-fullscreen--on": Or.value,
|
|
1240
|
+
"vue-data-ui-fulscreen--off": !Or.value,
|
|
1229
1241
|
"vue-data-ui-no-transition": !D(z)
|
|
1230
1242
|
}),
|
|
1231
|
-
viewBox: `0 0 ${B.value} ${
|
|
1243
|
+
viewBox: `0 0 ${B.value} ${Mn.value}`,
|
|
1232
1244
|
style: x(`max-width:100%;overflow:visible;background:transparent;color:${R.value.color}`),
|
|
1233
1245
|
tabindex: "0",
|
|
1234
1246
|
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1235
|
-
onFocus:
|
|
1236
|
-
onBlur:
|
|
1237
|
-
onKeydown:
|
|
1247
|
+
onFocus: Qr,
|
|
1248
|
+
onBlur: $r,
|
|
1249
|
+
onKeydown: ti
|
|
1238
1250
|
}, [_("g", {
|
|
1239
1251
|
ref_key: "G",
|
|
1240
|
-
ref:
|
|
1252
|
+
ref: sn,
|
|
1241
1253
|
class: "vue-data-ui-g"
|
|
1242
1254
|
}, [
|
|
1243
|
-
|
|
1255
|
+
ze(D(Ut)),
|
|
1244
1256
|
e.$slots["chart-background"] ? (S(), g("foreignObject", {
|
|
1245
1257
|
key: 0,
|
|
1246
1258
|
x: 0,
|
|
1247
1259
|
y: 0,
|
|
1248
1260
|
width: B.value,
|
|
1249
|
-
height:
|
|
1261
|
+
height: Mn.value,
|
|
1250
1262
|
style: { pointerEvents: "none" }
|
|
1251
|
-
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1252
|
-
_("defs", null, [(S(!0), g(f, null, w(G.value, (e, t) => (S(), m(
|
|
1263
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) : h("", !0),
|
|
1264
|
+
_("defs", null, [(S(!0), g(f, null, w(G.value, (e, t) => (S(), m(Oe, {
|
|
1253
1265
|
t: "linear",
|
|
1254
1266
|
x1: "0%",
|
|
1255
1267
|
y1: "0%",
|
|
@@ -1267,7 +1279,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1267
1279
|
1
|
|
1268
1280
|
]]
|
|
1269
1281
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1270
|
-
e.$slots.pattern ? (S(), g("g",
|
|
1282
|
+
e.$slots.pattern ? (S(), g("g", it, [(S(!0), g(f, null, w(G.value, (t) => (S(), g("defs", null, [T(e.$slots, "pattern", Ve({ ref_for: !0 }, {
|
|
1271
1283
|
seriesIndex: t.absoluteIndex,
|
|
1272
1284
|
patternId: `pattern_${A.value}_${t.absoluteIndex}`
|
|
1273
1285
|
}), void 0, !0)]))), 256))])) : h("", !0),
|
|
@@ -1280,19 +1292,19 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1280
1292
|
rx: F.value.rowRadius,
|
|
1281
1293
|
style: { pointerEvents: "none" },
|
|
1282
1294
|
class: y({ "vue-data-ui-transition": D(z) })
|
|
1283
|
-
}, null, 10,
|
|
1295
|
+
}, null, 10, at)]))), 128)) : h("", !0),
|
|
1284
1296
|
(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", { key: `underlayer_${e.id}` }, [_("rect", {
|
|
1285
|
-
x: D(d)(
|
|
1297
|
+
x: D(d)(pr.value ? X.value.left + X.value.width / 2 - (e.sign === 1 ? 0 : Q(e.value) <= 0 ? 1e-4 : Q(e.value)) : X.value.left),
|
|
1286
1298
|
y: X.value.top + (V.value + J.value) * t + q.value[t] * K.value,
|
|
1287
1299
|
width: D(d)(Q(e.value) <= 0 ? 1e-4 : Q(e.value)),
|
|
1288
1300
|
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1289
1301
|
fill: F.value.underlayerColor,
|
|
1290
1302
|
rx: F.value.borderRadius,
|
|
1291
1303
|
class: y({ "vue-data-ui-transition": D(z) })
|
|
1292
|
-
}, null, 10,
|
|
1304
|
+
}, null, 10, ot)]))), 128)),
|
|
1293
1305
|
(S(!0), g(f, null, w(G.value, (t, n) => (S(), g("g", { key: `barloop_${t.id}` }, [
|
|
1294
1306
|
_("rect", {
|
|
1295
|
-
x: D(d)(
|
|
1307
|
+
x: D(d)(pr.value ? X.value.left + X.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : X.value.left),
|
|
1296
1308
|
y: X.value.top + (V.value + J.value) * n + q.value[n] * K.value,
|
|
1297
1309
|
width: D(d)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
|
|
1298
1310
|
height: J.value <= 0 ? 1e-4 : J.value,
|
|
@@ -1301,10 +1313,10 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1301
1313
|
stroke: F.value.useStroke ? t.color : "none",
|
|
1302
1314
|
"stroke-width": F.value.useStroke ? F.value.strokeWidth : 0,
|
|
1303
1315
|
class: y({ "vue-data-ui-transition": D(z) })
|
|
1304
|
-
}, null, 10,
|
|
1316
|
+
}, null, 10, st),
|
|
1305
1317
|
e.$slots.pattern ? (S(), g("rect", {
|
|
1306
1318
|
key: 0,
|
|
1307
|
-
x: D(d)(
|
|
1319
|
+
x: D(d)(pr.value ? X.value.left + X.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : X.value.left),
|
|
1308
1320
|
y: X.value.top + (V.value + J.value) * n + q.value[n] * K.value,
|
|
1309
1321
|
width: D(d)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
|
|
1310
1322
|
height: J.value <= 0 ? 1e-4 : J.value,
|
|
@@ -1313,7 +1325,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1313
1325
|
stroke: F.value.useStroke ? t.color : "none",
|
|
1314
1326
|
"stroke-width": F.value.useStroke ? F.value.strokeWidth : 0,
|
|
1315
1327
|
class: y({ "vue-data-ui-transition": D(z) })
|
|
1316
|
-
}, null, 10,
|
|
1328
|
+
}, null, 10, ct)) : h("", !0),
|
|
1317
1329
|
(!t.isChild || t.isLastChild) && I.value.separators.show && n !== G.value.length - 1 ? (S(), g("path", {
|
|
1318
1330
|
key: 1,
|
|
1319
1331
|
stroke: I.value.separators.color,
|
|
@@ -1321,19 +1333,19 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1321
1333
|
"stroke-linecap": "round",
|
|
1322
1334
|
class: y({ "vue-data-ui-transition": D(z) }),
|
|
1323
1335
|
d: `M${B.value}, ${J.value + V.value / 2 + X.value.top + (V.value + J.value) * n + q.value[n] * K.value} ${I.value.separators.fullWidth ? 0 : X.value.left}, ${J.value + V.value / 2 + X.value.top + (V.value + J.value) * n + q.value[n] * K.value}`
|
|
1324
|
-
}, null, 10,
|
|
1325
|
-
|
|
1336
|
+
}, null, 10, lt)) : h("", !0),
|
|
1337
|
+
pr.value && I.value.separators.show ? (S(), g("path", {
|
|
1326
1338
|
key: 2,
|
|
1327
1339
|
stroke: I.value.separators.color,
|
|
1328
1340
|
"stroke-width": I.value.separators.strokeWidth,
|
|
1329
1341
|
"stroke-linecap": "round",
|
|
1330
1342
|
class: y({ "vue-data-ui-transition": D(z) }),
|
|
1331
1343
|
d: `M${X.value.left + X.value.width / 2}, ${X.value.top} ${X.value.left + X.value.width / 2}, ${X.value.bottom}`
|
|
1332
|
-
}, null, 10,
|
|
1344
|
+
}, null, 10, ut)) : h("", !0)
|
|
1333
1345
|
]))), 128)),
|
|
1334
1346
|
_("g", {
|
|
1335
1347
|
ref_key: "parentLabels",
|
|
1336
|
-
ref:
|
|
1348
|
+
ref: un
|
|
1337
1349
|
}, [(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", {
|
|
1338
1350
|
key: `pn_${e.id}`,
|
|
1339
1351
|
class: "vue-ui-horizontal-bar-parent-label"
|
|
@@ -1342,43 +1354,43 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1342
1354
|
key: 0,
|
|
1343
1355
|
class: y(["vue-ui-horizontal-bar-parent-marker", { "vue-data-ui-transition": D(z) }]),
|
|
1344
1356
|
x: 2,
|
|
1345
|
-
y:
|
|
1357
|
+
y: gr(e, t).y - F.value.parentLabels.fontSize / 1.5,
|
|
1346
1358
|
height: F.value.parentLabels.fontSize / 1.5,
|
|
1347
1359
|
width: F.value.parentLabels.fontSize / 1.5,
|
|
1348
1360
|
rx: 1,
|
|
1349
1361
|
fill: e.color
|
|
1350
|
-
}, null, 10,
|
|
1362
|
+
}, null, 10, dt)) : h("", !0),
|
|
1351
1363
|
e.isChild && e.childIndex === 0 && F.value.parentLabels.show ? (S(), g("text", {
|
|
1352
1364
|
key: 1,
|
|
1353
1365
|
class: y({ "vue-data-ui-transition": D(z) }),
|
|
1354
|
-
transform: `translate(${F.value.parentLabels.offsetX + F.value.parentLabels.fontSize}, ${
|
|
1366
|
+
transform: `translate(${F.value.parentLabels.offsetX + F.value.parentLabels.fontSize}, ${gr(e, t).y})`,
|
|
1355
1367
|
"font-size": F.value.parentLabels.fontSize,
|
|
1356
1368
|
fill: F.value.parentLabels.color,
|
|
1357
1369
|
"font-weight": F.value.parentLabels.bold ? "bold" : "normal",
|
|
1358
1370
|
"text-anchor": "start",
|
|
1359
1371
|
innerHTML: D(i)({
|
|
1360
|
-
content: `${
|
|
1372
|
+
content: `${vr(e, t)}`,
|
|
1361
1373
|
fontSize: F.value.parentLabels.fontSize,
|
|
1362
1374
|
fill: I.value.bars.parentLabels.color,
|
|
1363
1375
|
x: 0,
|
|
1364
1376
|
y: 0,
|
|
1365
1377
|
translateY: !1
|
|
1366
1378
|
})
|
|
1367
|
-
}, null, 10,
|
|
1379
|
+
}, null, 10, ft)) : h("", !0),
|
|
1368
1380
|
e.isChild && e.childIndex === 0 && F.value.parentLabels.show ? (S(), g("text", {
|
|
1369
1381
|
key: 2,
|
|
1370
1382
|
class: y({ "vue-data-ui-transition": D(z) }),
|
|
1371
|
-
transform: `translate(${F.value.parentLabels.offsetX + F.value.parentLabels.fontSize}, ${
|
|
1383
|
+
transform: `translate(${F.value.parentLabels.offsetX + F.value.parentLabels.fontSize}, ${gr(e, t).y + D(se)(vr(e, t)) * F.value.parentLabels.fontSize * 1.1})`,
|
|
1372
1384
|
"font-size": F.value.parentLabels.fontSize,
|
|
1373
1385
|
fill: F.value.parentLabels.color,
|
|
1374
1386
|
"font-weight": F.value.dataLabels.bold ? "bold" : "normal",
|
|
1375
1387
|
"text-anchor": "start"
|
|
1376
|
-
}, E(
|
|
1388
|
+
}, E(yr(e, t)), 11, pt)) : h("", !0)
|
|
1377
1389
|
]))), 128))], 512),
|
|
1378
1390
|
_("g", {
|
|
1379
1391
|
ref_key: "childLabels",
|
|
1380
|
-
ref:
|
|
1381
|
-
}, [(S(!0), g(f, null, w(
|
|
1392
|
+
ref: dn
|
|
1393
|
+
}, [(S(!0), g(f, null, w(Yn.value, (e, t) => (S(), g("g", {
|
|
1382
1394
|
key: `cl_${e.id}`,
|
|
1383
1395
|
class: "vue-ui-horizontal-bar-child-label"
|
|
1384
1396
|
}, [(e.isChild || !e.hasChildren) && F.value.nameLabels.show ? (S(), g("text", {
|
|
@@ -1398,7 +1410,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1398
1410
|
y: 0,
|
|
1399
1411
|
translateY: !0
|
|
1400
1412
|
})
|
|
1401
|
-
}, null, 10,
|
|
1413
|
+
}, null, 10, mt)) : h("", !0)]))), 128))], 512),
|
|
1402
1414
|
_("g", null, [(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", {
|
|
1403
1415
|
key: `vislab_${e.id}`,
|
|
1404
1416
|
class: "vue-ui-horizontal-bar-child-label"
|
|
@@ -1418,71 +1430,71 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1418
1430
|
y: 0,
|
|
1419
1431
|
translateY: !0
|
|
1420
1432
|
})
|
|
1421
|
-
}, null, 10,
|
|
1433
|
+
}, null, 10, ht)) : h("", !0)]))), 128))]),
|
|
1422
1434
|
_("g", null, [(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", {
|
|
1423
1435
|
key: `sdl_${e.id}`,
|
|
1424
1436
|
class: "vue-ui-horizontal-bar-child-label"
|
|
1425
1437
|
}, [_("text", {
|
|
1426
1438
|
class: y({ "vue-data-ui-transition": D(z) }),
|
|
1427
|
-
transform: `translate(${
|
|
1428
|
-
"text-anchor": !
|
|
1439
|
+
transform: `translate(${pr.value ? X.value.left + X.value.width / 2 + (e.sign === 1 ? -12 : 12) + (e.sign === 1 ? -I.value.bars.dataLabels.offsetX : I.value.bars.dataLabels.offsetX) : Math.min(hr(e.value) + 3 + R.value.layout.bars.dataLabels.offsetX, X.value.right - 2)},${X.value.top + (V.value + J.value) * t + J.value / 2 + q.value[t] * K.value + F.value.dataLabels.fontSize / 3})`,
|
|
1440
|
+
"text-anchor": !pr.value || e.sign === -1 ? "start" : "end",
|
|
1429
1441
|
"font-size": F.value.dataLabels.fontSize,
|
|
1430
1442
|
fill: F.value.dataLabels.color,
|
|
1431
1443
|
"font-weight": F.value.dataLabels.bold ? "bold" : "normal"
|
|
1432
|
-
}, E(
|
|
1444
|
+
}, E(Er(e.value, e, t, e.sign)), 11, gt)]))), 128))]),
|
|
1433
1445
|
(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", null, [_("rect", {
|
|
1434
1446
|
x: 0,
|
|
1435
1447
|
y: X.value.top + (V.value + J.value) * t - V.value / 2 + q.value[t] * K.value,
|
|
1436
1448
|
width: B.value,
|
|
1437
1449
|
height: J.value + V.value <= 0 ? 1e-4 : J.value + V.value,
|
|
1438
|
-
fill:
|
|
1439
|
-
onMouseenter: (n) =>
|
|
1440
|
-
onMouseleave: (n) =>
|
|
1450
|
+
fill: br.value === e.id ? D(l)(I.value.highlighter.color, I.value.highlighter.opacity) : "transparent",
|
|
1451
|
+
onMouseenter: (n) => wr(e, t, "pointer"),
|
|
1452
|
+
onMouseleave: (n) => Cr({
|
|
1441
1453
|
datapoint: e,
|
|
1442
1454
|
seriesIndex: t
|
|
1443
1455
|
}),
|
|
1444
|
-
onClick: (n) =>
|
|
1456
|
+
onClick: (n) => Sr({
|
|
1445
1457
|
datapoint: e,
|
|
1446
1458
|
seriesIndex: t
|
|
1447
1459
|
})
|
|
1448
|
-
}, null, 40,
|
|
1460
|
+
}, null, 40, _t)]))), 256)),
|
|
1449
1461
|
T(e.$slots, "svg", { svg: {
|
|
1450
1462
|
...Y.value,
|
|
1451
1463
|
drawingArea: X.value,
|
|
1452
|
-
isPrintingImg: D(
|
|
1453
|
-
isPrintingSvg: D(
|
|
1464
|
+
isPrintingImg: D(Fn) || D(In) || D(Gr),
|
|
1465
|
+
isPrintingSvg: D(Kr)
|
|
1454
1466
|
} }, void 0, !0)
|
|
1455
|
-
], 512)], 46,
|
|
1467
|
+
], 512)], 46, nt)), e.$slots.hint ? (S(), g("div", vt, [T(e.$slots, "hint", b(v({
|
|
1456
1468
|
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1457
|
-
isVisible:
|
|
1469
|
+
isVisible: Zr.value
|
|
1458
1470
|
})), void 0, !0)])) : h("", !0)]),
|
|
1459
|
-
e.$slots.watermark ? (S(), g("div",
|
|
1471
|
+
e.$slots.watermark ? (S(), g("div", yt, [T(e.$slots, "watermark", b(v({ isPrinting: D(Fn) || D(In) || D(Gr) || D(Kr) })), void 0, !0)])) : h("", !0),
|
|
1460
1472
|
R.value.legend.show && R.value.legend.position === "bottom" ? (S(), g("div", {
|
|
1461
1473
|
key: 7,
|
|
1462
1474
|
ref_key: "chartLegend",
|
|
1463
|
-
ref:
|
|
1464
|
-
}, [(S(), m(
|
|
1465
|
-
key: `legend_bottom_${
|
|
1475
|
+
ref: tn
|
|
1476
|
+
}, [(S(), m(Fe, {
|
|
1477
|
+
key: `legend_bottom_${on.value}`,
|
|
1466
1478
|
legendSet: U.value,
|
|
1467
|
-
config:
|
|
1468
|
-
isCursorPointer:
|
|
1469
|
-
onClickMarker: t[1] ||= ({ legend: e }) =>
|
|
1470
|
-
},
|
|
1479
|
+
config: Zn.value,
|
|
1480
|
+
isCursorPointer: xn.value,
|
|
1481
|
+
onClickMarker: t[1] ||= ({ legend: e }) => cr(e.id)
|
|
1482
|
+
}, Le({
|
|
1471
1483
|
item: O(({ legend: e, index: t }) => [_("div", {
|
|
1472
|
-
onClick: (t) =>
|
|
1484
|
+
onClick: (t) => cr(e.id),
|
|
1473
1485
|
style: x(`opacity:${M.value.includes(e.id) ? .5 : 1}`)
|
|
1474
|
-
}, E(
|
|
1486
|
+
}, E(Tr({
|
|
1475
1487
|
legend: e,
|
|
1476
1488
|
index: t
|
|
1477
|
-
})), 13,
|
|
1478
|
-
legendToggle: O(() => [U.value.length > 2 && R.value.legend.selectAllToggle.show && !D(
|
|
1489
|
+
})), 13, bt)]),
|
|
1490
|
+
legendToggle: O(() => [U.value.length > 2 && R.value.legend.selectAllToggle.show && !D(wn) ? (S(), m(Ae, {
|
|
1479
1491
|
key: 0,
|
|
1480
1492
|
backgroundColor: R.value.legend.selectAllToggle.backgroundColor,
|
|
1481
1493
|
color: R.value.legend.selectAllToggle.color,
|
|
1482
1494
|
fontSize: R.value.legend.fontSize,
|
|
1483
1495
|
checked: M.value.length > 0,
|
|
1484
|
-
isCursorPointer:
|
|
1485
|
-
onToggle:
|
|
1496
|
+
isCursorPointer: xn.value,
|
|
1497
|
+
onToggle: sr
|
|
1486
1498
|
}, null, 8, [
|
|
1487
1499
|
"backgroundColor",
|
|
1488
1500
|
"color",
|
|
@@ -1493,7 +1505,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1493
1505
|
_: 2
|
|
1494
1506
|
}, [e.$slots.pattern ? {
|
|
1495
1507
|
name: "legend-pattern",
|
|
1496
|
-
fn: O(({ legend: e, index: t }) => [
|
|
1508
|
+
fn: O(({ legend: e, index: t }) => [ze(we, {
|
|
1497
1509
|
shape: e.shape,
|
|
1498
1510
|
radius: 30,
|
|
1499
1511
|
stroke: "none",
|
|
@@ -1513,12 +1525,12 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1513
1525
|
e.$slots.source ? (S(), g("div", {
|
|
1514
1526
|
key: 8,
|
|
1515
1527
|
ref_key: "source",
|
|
1516
|
-
ref:
|
|
1528
|
+
ref: nn,
|
|
1517
1529
|
dir: "auto"
|
|
1518
1530
|
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1519
|
-
|
|
1531
|
+
ze(D(zt), {
|
|
1520
1532
|
teleportTo: L.value.teleportTo,
|
|
1521
|
-
show: H.value.showTooltip &&
|
|
1533
|
+
show: H.value.showTooltip && Xt.value && M.value.length < k.dataset.length,
|
|
1522
1534
|
backgroundColor: L.value.backgroundColor,
|
|
1523
1535
|
color: L.value.color,
|
|
1524
1536
|
borderRadius: L.value.borderRadius,
|
|
@@ -1530,19 +1542,19 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1530
1542
|
offsetX: L.value.offsetX,
|
|
1531
1543
|
offsetY: L.value.offsetY,
|
|
1532
1544
|
parent: j.value,
|
|
1533
|
-
content:
|
|
1534
|
-
isFullscreen:
|
|
1545
|
+
content: Zt.value,
|
|
1546
|
+
isFullscreen: Or.value,
|
|
1535
1547
|
isCustom: L.value.customFormat && typeof L.value.customFormat == "function",
|
|
1536
1548
|
smooth: L.value.smooth,
|
|
1537
1549
|
backdropFilter: L.value.backdropFilter,
|
|
1538
1550
|
smoothForce: L.value.smoothForce,
|
|
1539
1551
|
smoothSnapThreshold: L.value.smoothSnapThreshold,
|
|
1540
|
-
isA11yMode:
|
|
1541
|
-
a11yPosition:
|
|
1552
|
+
isA11yMode: yn.value === "keyboard",
|
|
1553
|
+
a11yPosition: vn.value
|
|
1542
1554
|
}, {
|
|
1543
|
-
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...
|
|
1544
|
-
tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...
|
|
1545
|
-
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...
|
|
1555
|
+
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...xr.value })), void 0, !0)]),
|
|
1556
|
+
tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...xr.value })), void 0, !0)]),
|
|
1557
|
+
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...xr.value })), void 0, !0)]),
|
|
1546
1558
|
_: 3
|
|
1547
1559
|
}, 8, [
|
|
1548
1560
|
"teleportTo",
|
|
@@ -1568,24 +1580,24 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1568
1580
|
"isA11yMode",
|
|
1569
1581
|
"a11yPosition"
|
|
1570
1582
|
]),
|
|
1571
|
-
|
|
1583
|
+
Yt.value && P.value.userOptions.buttons.table ? (S(), m(Ge(Lr.value.component), Ve({ key: 9 }, Lr.value.props, {
|
|
1572
1584
|
ref_key: "tableUnit",
|
|
1573
|
-
ref:
|
|
1574
|
-
onClose:
|
|
1575
|
-
}),
|
|
1585
|
+
ref: cn,
|
|
1586
|
+
onClose: zr
|
|
1587
|
+
}), Le({
|
|
1576
1588
|
content: O(() => [_("div", {
|
|
1577
1589
|
ref_key: "tableContainer",
|
|
1578
|
-
ref:
|
|
1590
|
+
ref: Vn,
|
|
1579
1591
|
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
1580
1592
|
style: x(`${P.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
1581
|
-
}, [_("div",
|
|
1593
|
+
}, [_("div", xt, [P.value.table.useDialog ? h("", !0) : (S(), g("div", {
|
|
1582
1594
|
key: 0,
|
|
1583
1595
|
role: "button",
|
|
1584
1596
|
tabindex: "0",
|
|
1585
|
-
style: x(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${
|
|
1586
|
-
onClick:
|
|
1587
|
-
onKeypress:
|
|
1588
|
-
}, [
|
|
1597
|
+
style: x(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${xn.value ? "pointer" : "default"}; background:${P.value.table.th.backgroundColor};`),
|
|
1598
|
+
onClick: zr,
|
|
1599
|
+
onKeypress: Xe(zr, ["enter"])
|
|
1600
|
+
}, [ze(D(Bt), {
|
|
1589
1601
|
name: "close",
|
|
1590
1602
|
stroke: P.value.table.th.color,
|
|
1591
1603
|
"stroke-width": 2
|
|
@@ -1594,8 +1606,8 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1594
1606
|
width: "100%",
|
|
1595
1607
|
"container-type": "inline-size"
|
|
1596
1608
|
},
|
|
1597
|
-
class: y({ "vue-ui-responsive": D(
|
|
1598
|
-
}, [_("table",
|
|
1609
|
+
class: y({ "vue-ui-responsive": D(Rr) })
|
|
1610
|
+
}, [_("table", St, [
|
|
1599
1611
|
P.value.table.useDialog ? h("", !0) : (S(), g("caption", {
|
|
1600
1612
|
key: 0,
|
|
1601
1613
|
style: x({
|
|
@@ -1604,11 +1616,11 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1604
1616
|
outline: P.value.table.th.outline
|
|
1605
1617
|
}),
|
|
1606
1618
|
class: "vue-ui-data-table__caption"
|
|
1607
|
-
}, [
|
|
1619
|
+
}, [Re(E(R.value.title.text) + " ", 1), R.value.title.subtitle.text ? (S(), g("span", Ct, E(R.value.title.subtitle.text), 1)) : h("", !0)], 4)),
|
|
1608
1620
|
_("thead", null, [_("tr", {
|
|
1609
1621
|
role: "row",
|
|
1610
1622
|
style: x(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color}`)
|
|
1611
|
-
}, [(S(!0), g(f, null, w($.value.head, (e) => (S(), g("th", { style: x(`outline:${P.value.table.th.outline}`) }, [_("div",
|
|
1623
|
+
}, [(S(!0), g(f, null, w($.value.head, (e) => (S(), g("th", { style: x(`outline:${P.value.table.th.outline}`) }, [_("div", wt, E(e), 1)], 4))), 256))], 4), _("tr", null, [
|
|
1612
1624
|
_("th", { style: x(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
|
|
1613
1625
|
_("th", { style: x(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " ∑ " + E(P.value.table.td.prefix) + E(isNaN(Z.value) ? "" : Z.value.toFixed(P.value.table.td.roundingValue)) + E(P.value.table.td.suffix), 5),
|
|
1614
1626
|
_("th", { style: x(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " 100% ", 4),
|
|
@@ -1629,83 +1641,83 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1629
1641
|
class: "vue-ui-data-table__tbody__td",
|
|
1630
1642
|
style: x(`outline:${P.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1631
1643
|
"data-cell": $.value.head[0] ?? ""
|
|
1632
|
-
}, [_("div",
|
|
1644
|
+
}, [_("div", Et, [e.color ? (S(), g("span", {
|
|
1633
1645
|
key: 0,
|
|
1634
1646
|
style: x(`color:${e.color};margin-right:3px`)
|
|
1635
|
-
}, "⬤", 4)) : h("", !0), _("span", null, E(e.parentName), 1)])], 12,
|
|
1647
|
+
}, "⬤", 4)) : h("", !0), _("span", null, E(e.parentName), 1)])], 12, Tt),
|
|
1636
1648
|
_("td", {
|
|
1637
1649
|
class: "vue-ui-data-table__tbody__td",
|
|
1638
1650
|
style: x(`outline:${P.value.table.td.outline}`),
|
|
1639
1651
|
"data-cell": $.value.head[1] ?? ""
|
|
1640
|
-
}, [_("div",
|
|
1652
|
+
}, [_("div", Ot, E(P.value.table.td.prefix) + E([
|
|
1641
1653
|
"",
|
|
1642
1654
|
NaN,
|
|
1643
1655
|
void 0
|
|
1644
|
-
].includes(e.parentValue) ? "" : e.parentValue.toFixed(P.value.table.td.roundingValue)) + E(P.value.table.td.suffix), 1)], 12,
|
|
1656
|
+
].includes(e.parentValue) ? "" : e.parentValue.toFixed(P.value.table.td.roundingValue)) + E(P.value.table.td.suffix), 1)], 12, Dt),
|
|
1645
1657
|
_("td", {
|
|
1646
1658
|
class: "vue-ui-data-table__tbody__td",
|
|
1647
1659
|
style: x(`outline:${P.value.table.td.outline}`),
|
|
1648
1660
|
"data-cell": $.value.head[2] ?? ""
|
|
1649
|
-
}, [_("div",
|
|
1661
|
+
}, [_("div", At, E([
|
|
1650
1662
|
"",
|
|
1651
1663
|
NaN,
|
|
1652
1664
|
void 0
|
|
1653
|
-
].includes(e.percentageToTotal) ? "" : `${(e.percentageToTotal * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12,
|
|
1665
|
+
].includes(e.percentageToTotal) ? "" : `${(e.percentageToTotal * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12, kt),
|
|
1654
1666
|
_("td", {
|
|
1655
1667
|
class: "vue-ui-data-table__tbody__td",
|
|
1656
1668
|
style: x(`outline:${P.value.table.td.outline}`),
|
|
1657
1669
|
"data-cell": $.value.head[3] ?? ""
|
|
1658
|
-
}, [_("div",
|
|
1670
|
+
}, [_("div", Mt, E(e.childName), 1)], 12, jt),
|
|
1659
1671
|
_("td", {
|
|
1660
1672
|
class: "vue-ui-data-table__tbody__td",
|
|
1661
1673
|
style: x(`outline:${P.value.table.td.outline}`),
|
|
1662
1674
|
"data-cell": $.value.head[4] ?? ""
|
|
1663
|
-
}, [_("div",
|
|
1675
|
+
}, [_("div", Pt, E(P.value.table.td.prefix) + E([
|
|
1664
1676
|
"",
|
|
1665
1677
|
NaN,
|
|
1666
1678
|
void 0
|
|
1667
|
-
].includes(e.childValue) ? "" : e.childValue.toFixed(P.value.table.td.roundingValue)) + E(P.value.table.td.suffix), 1)], 12,
|
|
1679
|
+
].includes(e.childValue) ? "" : e.childValue.toFixed(P.value.table.td.roundingValue)) + E(P.value.table.td.suffix), 1)], 12, Nt),
|
|
1668
1680
|
_("td", {
|
|
1669
1681
|
class: "vue-ui-data-table__tbody__td",
|
|
1670
1682
|
style: x(`outline:${P.value.table.td.outline}`),
|
|
1671
1683
|
"data-cell": $.value.head[5] ?? ""
|
|
1672
|
-
}, [_("div",
|
|
1684
|
+
}, [_("div", It, E([
|
|
1673
1685
|
"",
|
|
1674
1686
|
NaN,
|
|
1675
1687
|
void 0
|
|
1676
|
-
].includes(e.childPercentageToParent) ? "" : `${(e.childPercentageToParent * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12,
|
|
1688
|
+
].includes(e.childPercentageToParent) ? "" : `${(e.childPercentageToParent * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12, Ft),
|
|
1677
1689
|
_("td", {
|
|
1678
1690
|
class: "vue-ui-data-table__tbody__td",
|
|
1679
1691
|
style: x(`outline:${P.value.table.td.outline}`),
|
|
1680
1692
|
"data-cell": $.value.head[6] ?? ""
|
|
1681
|
-
}, [_("div",
|
|
1693
|
+
}, [_("div", Rt, E([
|
|
1682
1694
|
"",
|
|
1683
1695
|
NaN,
|
|
1684
1696
|
void 0
|
|
1685
|
-
].includes(e.childPercentageToTotal) ? "" : `${(e.childPercentageToTotal * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12,
|
|
1697
|
+
].includes(e.childPercentageToTotal) ? "" : `${(e.childPercentageToTotal * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12, Lt)
|
|
1686
1698
|
], 6))), 256))])
|
|
1687
1699
|
])], 2)])], 4)]),
|
|
1688
1700
|
_: 2
|
|
1689
1701
|
}, [P.value.table.useDialog ? {
|
|
1690
1702
|
name: "title",
|
|
1691
|
-
fn: O(() => [
|
|
1703
|
+
fn: O(() => [Re(E(Lr.value.title), 1)]),
|
|
1692
1704
|
key: "0"
|
|
1693
1705
|
} : void 0, P.value.table.useDialog ? {
|
|
1694
1706
|
name: "actions",
|
|
1695
1707
|
fn: O(() => [_("button", {
|
|
1696
1708
|
tabindex: "0",
|
|
1697
1709
|
class: "vue-ui-user-options-button",
|
|
1698
|
-
onClick: t[2] ||= (e) =>
|
|
1699
|
-
style: x({ cursor:
|
|
1700
|
-
}, [
|
|
1710
|
+
onClick: t[2] ||= (e) => Dr(P.value.userOptions.callbacks.csv),
|
|
1711
|
+
style: x({ cursor: xn.value ? "pointer" : "default" })
|
|
1712
|
+
}, [ze(D(Bt), {
|
|
1701
1713
|
name: "fileCsv",
|
|
1702
|
-
stroke:
|
|
1714
|
+
stroke: Lr.value.props.color
|
|
1703
1715
|
}, null, 8, ["stroke"])], 4)]),
|
|
1704
1716
|
key: "1"
|
|
1705
1717
|
} : void 0]), 1040)) : h("", !0),
|
|
1706
|
-
T(e.$slots, "skeleton", {}, () => [D(
|
|
1707
|
-
], 46,
|
|
1718
|
+
T(e.$slots, "skeleton", {}, () => [D(wn) ? (S(), m(_e, { key: 0 })) : h("", !0)], !0)
|
|
1719
|
+
], 46, Qe));
|
|
1708
1720
|
}
|
|
1709
|
-
}, [["__scopeId", "data-v-
|
|
1721
|
+
}, [["__scopeId", "data-v-ed1ed3a8"]]);
|
|
1710
1722
|
//#endregion
|
|
1711
|
-
export {
|
|
1723
|
+
export { Ze as n, zt as t };
|