vue-data-ui 3.22.8 → 3.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
- package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
- package/dist/vue-data-ui.js +67 -67
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
- package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
- package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
- package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
- package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
- package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
- package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
- package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
- package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
- package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
- package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
- package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
- package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
- package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
- package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
- package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
- package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
- package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
- package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
- package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
- package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
|
@@ -2,48 +2,49 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
|
2
2
|
import { $ as t, G as n, J as r, Kt as i, Mt as a, Rt as o, S as s, Wt as c, b as l, dt as ee, i as u, kt as te, t as ne, yt as re, zt as ie } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as ae } from "./useConfig-DYM3f6EI.js";
|
|
4
4
|
import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
5
|
+
import { t as ce } from "./useNestedProp-DIuuzG1r.js";
|
|
6
|
+
import { t as le } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as ue } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
+
import { t as de } from "./DefGrad-DVBqDjhO.js";
|
|
9
|
+
import { t as fe } from "./BaseLegendToggle-DWtet-Hh.js";
|
|
10
|
+
import { t as pe } from "./A11yDataTable-DdRsVULz.js";
|
|
11
|
+
import { t as me } from "./useChartAccessibility-DYqac8yF.js";
|
|
12
|
+
import { t as he } from "./vue_ui_sparkstackbar-BOjuQnZd.js";
|
|
13
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineAsyncComponent as ge, guardReactiveProps as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onMounted as _e, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toRefs as ve, unref as D, useSlots as ye, watch as be, withCtx as O } from "vue";
|
|
13
14
|
//#region src/components/vue-ui-sparkstackbar.vue
|
|
14
|
-
var xe = /* @__PURE__ */ e({ default: () =>
|
|
15
|
+
var xe = /* @__PURE__ */ e({ default: () => Re }), Se = ["id"], Ce = { style: { position: "relative" } }, we = [
|
|
15
16
|
"xmlns",
|
|
16
17
|
"viewBox",
|
|
17
18
|
"aria-describedby"
|
|
18
|
-
], Te =
|
|
19
|
+
], Te = {
|
|
19
20
|
id: "stackPill",
|
|
20
21
|
clipPathUnits: "objectBoundingBox"
|
|
21
|
-
},
|
|
22
|
+
}, Ee = ["fill"], De = {
|
|
22
23
|
key: 0,
|
|
23
24
|
"clip-path": "url(#stackPill)"
|
|
24
|
-
},
|
|
25
|
+
}, Oe = [
|
|
25
26
|
"x",
|
|
26
27
|
"width",
|
|
27
28
|
"height",
|
|
28
29
|
"fill"
|
|
29
|
-
],
|
|
30
|
+
], ke = [
|
|
30
31
|
"x",
|
|
31
32
|
"width",
|
|
32
33
|
"height",
|
|
33
34
|
"fill",
|
|
34
35
|
"stroke"
|
|
35
|
-
],
|
|
36
|
+
], Ae = [
|
|
36
37
|
"x",
|
|
37
38
|
"width",
|
|
38
39
|
"height",
|
|
39
40
|
"onClick",
|
|
40
41
|
"onMouseenter",
|
|
41
42
|
"onMouseleave"
|
|
42
|
-
],
|
|
43
|
+
], je = [
|
|
43
44
|
"width",
|
|
44
45
|
"height",
|
|
45
46
|
"rx"
|
|
46
|
-
],
|
|
47
|
+
], Me = {
|
|
47
48
|
key: 0,
|
|
48
49
|
style: {
|
|
49
50
|
position: "absolute",
|
|
@@ -53,23 +54,23 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
53
54
|
},
|
|
54
55
|
"data-dom-to-png-ignore": "",
|
|
55
56
|
"aria-hidden": "true"
|
|
56
|
-
},
|
|
57
|
+
}, Ne = [
|
|
57
58
|
"aria-pressed",
|
|
58
59
|
"aria-label",
|
|
59
60
|
"onClick",
|
|
60
61
|
"onFocus",
|
|
61
62
|
"onKeydown"
|
|
62
|
-
],
|
|
63
|
+
], Pe = { style: {
|
|
63
64
|
display: "flex",
|
|
64
65
|
"flex-direction": "row",
|
|
65
66
|
"align-items": "center",
|
|
66
67
|
gap: "4px",
|
|
67
68
|
"justify-content": "center"
|
|
68
|
-
} },
|
|
69
|
+
} }, Fe = ["height", "width"], Ie = ["fill"], Le = {
|
|
69
70
|
key: 3,
|
|
70
71
|
ref: "source",
|
|
71
72
|
dir: "auto"
|
|
72
|
-
},
|
|
73
|
+
}, Re = /*#__PURE__*/ ue({
|
|
73
74
|
__name: "vue-ui-sparkstackbar",
|
|
74
75
|
props: {
|
|
75
76
|
config: {
|
|
@@ -86,15 +87,15 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
86
87
|
}
|
|
87
88
|
},
|
|
88
89
|
emits: ["selectDatapoint", "selectLegend"],
|
|
89
|
-
setup(e, { expose:
|
|
90
|
-
let
|
|
90
|
+
setup(e, { expose: ue, emit: xe }) {
|
|
91
|
+
let Re = ge(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), ze = ge(() => import("./Tooltip-CxOrWlFy.js")), { vue_ui_sparkstackbar: Be } = ae(), { isThemeValid: Ve, warnInvalidTheme: He } = le(), k = e, Ue = ye();
|
|
91
92
|
_e(() => {
|
|
92
|
-
|
|
93
|
+
Ue["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
93
94
|
});
|
|
94
|
-
let
|
|
95
|
+
let We = C(null), A = C(n()), j = C(!1), Ge = C(""), M = C(null), N = C(!1), P = C(null), Ke = C({
|
|
95
96
|
x: 0,
|
|
96
97
|
y: 0
|
|
97
|
-
}), F =
|
|
98
|
+
}), F = C("pointer"), I = C(!1), L = C(null), qe = C([]), R = C(H()), Je = f(() => R.value.useCursorPointer), Ye = f(() => i({
|
|
98
99
|
defaultConfig: { style: {
|
|
99
100
|
backgroundColor: "#99999930",
|
|
100
101
|
animation: { show: !1 },
|
|
@@ -125,20 +126,20 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
125
126
|
],
|
|
126
127
|
skeletonConfig: i({
|
|
127
128
|
defaultConfig: R.value,
|
|
128
|
-
userConfig:
|
|
129
|
+
userConfig: Ye.value
|
|
129
130
|
})
|
|
130
|
-
}), { svgRef: V } =
|
|
131
|
+
}), { svgRef: V } = me({ config: R.value.style.title });
|
|
131
132
|
function H() {
|
|
132
|
-
let e =
|
|
133
|
+
let e = ce({
|
|
133
134
|
userConfig: k.config,
|
|
134
|
-
defaultConfig:
|
|
135
|
+
defaultConfig: Be
|
|
135
136
|
}), t = e.theme;
|
|
136
137
|
if (!t) return e;
|
|
137
|
-
if (!
|
|
138
|
-
let n =
|
|
139
|
-
userConfig:
|
|
138
|
+
if (!Ve.value(e)) return He(e), e;
|
|
139
|
+
let n = ce({
|
|
140
|
+
userConfig: he[t] || k.config,
|
|
140
141
|
defaultConfig: e
|
|
141
|
-
}), r =
|
|
142
|
+
}), r = ce({
|
|
142
143
|
userConfig: k.config,
|
|
143
144
|
defaultConfig: n
|
|
144
145
|
});
|
|
@@ -148,19 +149,19 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
148
149
|
};
|
|
149
150
|
}
|
|
150
151
|
be(() => k.config, (e) => {
|
|
151
|
-
R.value = H(),
|
|
152
|
+
R.value = H(), Qe();
|
|
152
153
|
}, { deep: !0 }), be(() => B.value, (e) => {
|
|
153
154
|
W.value = B.value.map((e, t) => ({
|
|
154
155
|
...e,
|
|
155
156
|
color: e.color ? l(e.color) : U.value[t] || a[t] || a[t % a.length]
|
|
156
|
-
})),
|
|
157
|
+
})), Xe();
|
|
157
158
|
}, { deep: !0 });
|
|
158
|
-
let U =
|
|
159
|
+
let U = f(() => s(R.value.customPalette)), W = C(B.value.map((e, t) => ({
|
|
159
160
|
...e,
|
|
160
161
|
value: R.value.style.animation.show ? 0 : e.value || 0,
|
|
161
162
|
color: e.color ? l(e.color) : U.value[t] || a[t] || a[t % a.length]
|
|
162
|
-
}))), G =
|
|
163
|
-
function
|
|
163
|
+
}))), G = C(!0);
|
|
164
|
+
function Xe() {
|
|
164
165
|
if (!R.value.style.animation.show) {
|
|
165
166
|
G.value = !1;
|
|
166
167
|
return;
|
|
@@ -186,14 +187,14 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
186
187
|
s();
|
|
187
188
|
}
|
|
188
189
|
_e(() => {
|
|
189
|
-
|
|
190
|
+
Qe();
|
|
190
191
|
});
|
|
191
|
-
let
|
|
192
|
-
function
|
|
192
|
+
let Ze = f(() => R.value.debug);
|
|
193
|
+
function Qe() {
|
|
193
194
|
te(k.dataset) ? t({
|
|
194
195
|
componentName: "VueUiSparkStackbar",
|
|
195
196
|
type: "dataset",
|
|
196
|
-
debug:
|
|
197
|
+
debug: Ze.value
|
|
197
198
|
}) : k.dataset.forEach((e, n) => {
|
|
198
199
|
ee({
|
|
199
200
|
datasetObject: e,
|
|
@@ -204,16 +205,16 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
204
205
|
type: "datasetSerieAttribute",
|
|
205
206
|
property: e,
|
|
206
207
|
index: n,
|
|
207
|
-
debug:
|
|
208
|
+
debug: Ze.value
|
|
208
209
|
});
|
|
209
210
|
});
|
|
210
|
-
}),
|
|
211
|
+
}), Xe();
|
|
211
212
|
}
|
|
212
|
-
let K =
|
|
213
|
+
let K = C({
|
|
213
214
|
width: 500,
|
|
214
215
|
height: 16
|
|
215
|
-
}), q =
|
|
216
|
-
let n = e.value || 0, i = n /
|
|
216
|
+
}), q = C([]), $e = f(() => B.value.map((e) => e.value || 0).filter((e, t) => !q.value.includes(t)).reduce((e, t) => e + t, 0)), J = f(() => W.value.map((e, t) => {
|
|
217
|
+
let n = e.value || 0, i = n / $e.value, o = isNaN(i) ? 0 : i, s = o * K.value.width;
|
|
217
218
|
return {
|
|
218
219
|
...e,
|
|
219
220
|
color: l(B.value[t]?.color ? B.value[t]?.color : U.value[t] || a[t] || a[t % a.length]),
|
|
@@ -227,36 +228,36 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
227
228
|
r: R.value.style.legend.percentage.rounding
|
|
228
229
|
})
|
|
229
230
|
};
|
|
230
|
-
})), Y =
|
|
231
|
-
function
|
|
231
|
+
})), Y = f(() => J.value.filter((e, t) => !q.value.includes(t)));
|
|
232
|
+
function et() {
|
|
232
233
|
q.value.length ? q.value = [] : J.value.forEach((e, t) => {
|
|
233
234
|
q.value.push(t);
|
|
234
|
-
}),
|
|
235
|
+
}), it("selectLegend", Y.value);
|
|
235
236
|
}
|
|
236
237
|
function X(e) {
|
|
237
|
-
q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.length < W.value.length - 1 && q.value.push(e),
|
|
238
|
+
q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.length < W.value.length - 1 && q.value.push(e), it("selectLegend", Y.value);
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
+
function tt(e) {
|
|
240
241
|
return J.value.length ? J.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null);
|
|
241
242
|
}
|
|
242
|
-
function
|
|
243
|
-
let t =
|
|
243
|
+
function nt(e) {
|
|
244
|
+
let t = tt(e);
|
|
244
245
|
t !== null && q.value.includes(t.id) && X(t.seriesIndex);
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
-
let t =
|
|
247
|
+
function rt(e) {
|
|
248
|
+
let t = tt(e);
|
|
248
249
|
t !== null && (q.value.includes(t.id) || X(t.seriesIndex));
|
|
249
250
|
}
|
|
250
|
-
let Z =
|
|
251
|
+
let Z = f(() => {
|
|
251
252
|
let e = 0, t = [];
|
|
252
253
|
for (let n = 0; n < Y.value.length; n += 1) t.push({
|
|
253
254
|
...Y.value[n],
|
|
254
255
|
start: e
|
|
255
256
|
}), e += Y.value[n].width;
|
|
256
257
|
return t;
|
|
257
|
-
}),
|
|
258
|
+
}), it = xe;
|
|
258
259
|
function Q(e, t, n = !1) {
|
|
259
|
-
|
|
260
|
+
it("selectDatapoint", {
|
|
260
261
|
datapoint: e,
|
|
261
262
|
index: t
|
|
262
263
|
}), R.value.events.datapointClick && !n && R.value.events.datapointClick({
|
|
@@ -264,13 +265,13 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
264
265
|
seriesIndex: e.seriesIndex
|
|
265
266
|
});
|
|
266
267
|
}
|
|
267
|
-
function
|
|
268
|
+
function at({ datapoint: e, seriesIndex: t }) {
|
|
268
269
|
j.value = !1, L.value = null, P.value = null, F.value = "pointer", R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
269
270
|
datapoint: e,
|
|
270
271
|
seriesIndex: e.seriesIndex
|
|
271
272
|
});
|
|
272
273
|
}
|
|
273
|
-
function
|
|
274
|
+
function ot({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
274
275
|
if (N.value = !1, R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
275
276
|
datapoint: e,
|
|
276
277
|
seriesIndex: e.seriesIndex
|
|
@@ -289,7 +290,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
289
290
|
series: J.value,
|
|
290
291
|
config: R.value
|
|
291
292
|
});
|
|
292
|
-
typeof t == "string" && (
|
|
293
|
+
typeof t == "string" && (Ge.value = t, N.value = !0);
|
|
293
294
|
} catch {
|
|
294
295
|
console.warn("Custom format cannot be applied."), N.value = !1;
|
|
295
296
|
}
|
|
@@ -303,30 +304,30 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
303
304
|
}), {
|
|
304
305
|
datapoint: e,
|
|
305
306
|
seriesIndex: t
|
|
306
|
-
})})</span>`,
|
|
307
|
+
})})</span>`, Ge.value = `<div>${n}</div>`;
|
|
307
308
|
}
|
|
308
309
|
}
|
|
309
310
|
function $(e) {
|
|
310
|
-
let t =
|
|
311
|
+
let t = qe.value[e];
|
|
311
312
|
t && typeof t.focus == "function" && t.focus();
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
+
function st(e) {
|
|
314
315
|
if (!Number.isFinite(e) || !V.value) return;
|
|
315
316
|
let t = Z.value[e];
|
|
316
317
|
if (!t) return;
|
|
317
318
|
let n = V.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
|
|
318
|
-
|
|
319
|
+
Ke.value = {
|
|
319
320
|
x: n.left + r / K.value.width * n.width,
|
|
320
321
|
y: n.top + i / K.value.height * n.height
|
|
321
322
|
};
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function ct() {
|
|
324
325
|
P.value = null, I.value = !0;
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function lt() {
|
|
327
328
|
P.value = null, F.value = "pointer", j.value = !1, L.value = null, I.value = !1;
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function ut(e) {
|
|
330
331
|
if (!V.value || document.activeElement !== V.value || !Z.value.length) return;
|
|
331
332
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape", a = e.key === "Home", o = e.key === "End";
|
|
332
333
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
@@ -344,23 +345,23 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
344
345
|
let s = P.value;
|
|
345
346
|
a ? s = 0 : o ? s = Z.value.length - 1 : s === null || s < 0 || s >= Z.value.length ? s = n ? 0 : Z.value.length - 1 : n ? (s += 1, s >= Z.value.length && (s = 0)) : t && (--s, s < 0 && (s = Z.value.length - 1));
|
|
346
347
|
let c = Z.value[s];
|
|
347
|
-
c && (P.value = s,
|
|
348
|
+
c && (P.value = s, st(s), ot({
|
|
348
349
|
datapoint: c,
|
|
349
350
|
seriesIndex: c.seriesIndex,
|
|
350
351
|
triggerMode: "keyboard"
|
|
351
352
|
}));
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
+
function dt(e) {
|
|
354
355
|
j.value = !1, P.value = null, F.value = "pointer", L.value = e.seriesIndex;
|
|
355
356
|
}
|
|
356
|
-
function
|
|
357
|
+
function ft() {
|
|
357
358
|
P.value = null, F.value = "pointer", j.value = !1, L.value = null;
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
+
function pt(e, t, n) {
|
|
360
361
|
let r = e.key === "Enter" || e.key === " ", i = e.key === "ArrowLeft" || e.key === "ArrowUp", a = e.key === "ArrowRight" || e.key === "ArrowDown", o = e.key === "Home", s = e.key === "End", c = e.key === "Escape";
|
|
361
362
|
if (!(!r && !i && !a && !o && !s && !c)) {
|
|
362
363
|
if (e.preventDefault(), e.stopPropagation(), c) {
|
|
363
|
-
|
|
364
|
+
ft();
|
|
364
365
|
return;
|
|
365
366
|
}
|
|
366
367
|
if (r) {
|
|
@@ -382,7 +383,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
382
383
|
a && $(n >= J.value.length - 1 ? 0 : n + 1);
|
|
383
384
|
}
|
|
384
385
|
}
|
|
385
|
-
let
|
|
386
|
+
let mt = f(() => ({
|
|
386
387
|
headers: [
|
|
387
388
|
R.value.a11y.translations.series,
|
|
388
389
|
R.value.a11y.translations.percentage,
|
|
@@ -402,24 +403,24 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
402
403
|
})
|
|
403
404
|
])
|
|
404
405
|
}));
|
|
405
|
-
return
|
|
406
|
-
hideSeries:
|
|
407
|
-
showSeries:
|
|
408
|
-
}), (e, t) => (
|
|
406
|
+
return ue({
|
|
407
|
+
hideSeries: rt,
|
|
408
|
+
showSeries: nt
|
|
409
|
+
}), (e, t) => (S(), h("div", {
|
|
409
410
|
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
410
411
|
ref_key: "sparkstackbarChart",
|
|
411
|
-
ref:
|
|
412
|
-
style:
|
|
412
|
+
ref: We,
|
|
413
|
+
style: x(`width:100%; background:${R.value.style.backgroundColor}`)
|
|
413
414
|
}, [
|
|
414
415
|
g("div", {
|
|
415
416
|
id: `chart-instructions-${A.value}`,
|
|
416
417
|
class: "sr-only"
|
|
417
|
-
}, [g("p", null,
|
|
418
|
-
|
|
418
|
+
}, [g("p", null, E(R.value.a11y.translations.keyboardNavigation), 1)], 8, Se),
|
|
419
|
+
mt.value?.rows?.length ? (S(), p(pe, {
|
|
419
420
|
key: 0,
|
|
420
421
|
uid: A.value,
|
|
421
|
-
head:
|
|
422
|
-
body:
|
|
422
|
+
head: mt.value.headers,
|
|
423
|
+
body: mt.value.rows,
|
|
423
424
|
notice: R.value.a11y.translations.tableAvailable,
|
|
424
425
|
caption: R.value.a11y.translations.tableCaption
|
|
425
426
|
}, null, 8, [
|
|
@@ -429,48 +430,53 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
429
430
|
"notice",
|
|
430
431
|
"caption"
|
|
431
432
|
])) : m("", !0),
|
|
432
|
-
R.value.style.title.text ? (
|
|
433
|
+
R.value.style.title.text ? (S(), h("div", {
|
|
433
434
|
key: 1,
|
|
434
|
-
style:
|
|
435
|
+
style: x(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${R.value.style.title.margin};padding: 0 6px;text-align:${R.value.style.title.textAlign}`)
|
|
435
436
|
}, [g("div", {
|
|
436
437
|
class: "atom-title",
|
|
437
|
-
style:
|
|
438
|
-
},
|
|
438
|
+
style: x(`font-size:${R.value.style.title.fontSize}px;color:${R.value.style.title.color};font-weight:${R.value.style.title.bold ? "bold" : "normal"}`)
|
|
439
|
+
}, E(R.value.style.title.text), 5), R.value.style.title.subtitle.text ? (S(), h("div", {
|
|
439
440
|
key: 0,
|
|
440
441
|
class: "atom-subtitle",
|
|
441
|
-
style:
|
|
442
|
-
},
|
|
443
|
-
g("div", Ce, [(
|
|
442
|
+
style: x(`font-size:${R.value.style.title.subtitle.fontSize}px;color:${R.value.style.title.subtitle.color};font-weight:${R.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
443
|
+
}, E(R.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
|
|
444
|
+
g("div", Ce, [(S(), h("svg", {
|
|
444
445
|
ref_key: "svgRef",
|
|
445
446
|
ref: V,
|
|
446
|
-
xmlns:
|
|
447
|
+
xmlns: D(ne),
|
|
447
448
|
width: "100%",
|
|
448
449
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
449
450
|
"aria-describedby": `chart-instructions-${A.value}`,
|
|
450
451
|
tabindex: "0",
|
|
451
|
-
onFocus:
|
|
452
|
-
onBlur:
|
|
453
|
-
onKeydown:
|
|
452
|
+
onFocus: ct,
|
|
453
|
+
onBlur: lt,
|
|
454
|
+
onKeydown: ut
|
|
454
455
|
}, [
|
|
455
|
-
|
|
456
|
-
g("defs", null, [(
|
|
456
|
+
_(D(Re)),
|
|
457
|
+
g("defs", null, [(S(!0), h(d, null, w(Z.value, (e, t) => (S(), p(de, {
|
|
458
|
+
t: "linear",
|
|
459
|
+
id: `stack_gradient_${t}_${A.value}`,
|
|
457
460
|
key: `stack_gradient_${t}`,
|
|
458
461
|
gradientTransform: "rotate(90)",
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
462
|
+
stops: [
|
|
463
|
+
[
|
|
464
|
+
"0%",
|
|
465
|
+
e.color,
|
|
466
|
+
1
|
|
467
|
+
],
|
|
468
|
+
[
|
|
469
|
+
"50%",
|
|
470
|
+
D(o)(D(ie)(e.color, .05), 100 - R.value.style.bar.gradient.intensity),
|
|
471
|
+
1
|
|
472
|
+
],
|
|
473
|
+
[
|
|
474
|
+
"100%",
|
|
475
|
+
e.color,
|
|
476
|
+
1
|
|
477
|
+
]
|
|
478
|
+
]
|
|
479
|
+
}, null, 8, ["id", "stops"]))), 128)), g("clipPath", Te, [g("rect", {
|
|
474
480
|
x: "0.005",
|
|
475
481
|
y: "-2",
|
|
476
482
|
width: "0.99",
|
|
@@ -478,19 +484,19 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
478
484
|
rx: "3",
|
|
479
485
|
ry: "3",
|
|
480
486
|
fill: R.value.style.backgroundColor
|
|
481
|
-
}, null, 8,
|
|
482
|
-
|
|
483
|
-
(
|
|
487
|
+
}, null, 8, Ee)])]),
|
|
488
|
+
$e.value > 0 ? (S(), h("g", De, [
|
|
489
|
+
(S(!0), h(d, null, w(Z.value, (e, t) => (S(), h("rect", {
|
|
484
490
|
key: `stack_underlayer_${t}`,
|
|
485
491
|
x: e.start,
|
|
486
492
|
y: 0,
|
|
487
493
|
width: e.width,
|
|
488
494
|
height: K.value.height,
|
|
489
495
|
fill: R.value.style.bar.gradient.underlayerColor,
|
|
490
|
-
class:
|
|
491
|
-
style:
|
|
492
|
-
}, null, 14,
|
|
493
|
-
(
|
|
496
|
+
class: y({ animated: !G.value && !D(z) }),
|
|
497
|
+
style: x({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
498
|
+
}, null, 14, Oe))), 128)),
|
|
499
|
+
(S(!0), h(d, null, w(Z.value, (e, t) => (S(), h("rect", {
|
|
494
500
|
key: `stack_${t}`,
|
|
495
501
|
x: e.start,
|
|
496
502
|
y: 0,
|
|
@@ -499,10 +505,10 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
499
505
|
fill: R.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${A.value})` : e.color,
|
|
500
506
|
stroke: R.value.style.backgroundColor,
|
|
501
507
|
"stroke-linecap": "round",
|
|
502
|
-
class:
|
|
503
|
-
style:
|
|
504
|
-
}, null, 14,
|
|
505
|
-
(
|
|
508
|
+
class: y({ animated: !G.value && !D(z) }),
|
|
509
|
+
style: x({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
510
|
+
}, null, 14, ke))), 128)),
|
|
511
|
+
(S(!0), h(d, null, w(Z.value, (e, t) => (S(), h("rect", {
|
|
506
512
|
key: `stack_trap_${t}`,
|
|
507
513
|
x: e.start,
|
|
508
514
|
y: 0,
|
|
@@ -510,18 +516,18 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
510
516
|
height: K.value.height,
|
|
511
517
|
fill: "transparent",
|
|
512
518
|
stroke: "none",
|
|
513
|
-
class:
|
|
519
|
+
class: y({ animated: !G.value && !D(z) }),
|
|
514
520
|
onClick: () => Q(e, t),
|
|
515
|
-
onMouseenter: () =>
|
|
521
|
+
onMouseenter: () => ot({
|
|
516
522
|
datapoint: e,
|
|
517
523
|
seriesIndex: t
|
|
518
524
|
}),
|
|
519
|
-
onMouseleave: (n) =>
|
|
525
|
+
onMouseleave: (n) => at({
|
|
520
526
|
datapoint: e,
|
|
521
527
|
seriesIndex: t
|
|
522
528
|
})
|
|
523
|
-
}, null, 42,
|
|
524
|
-
])) : (
|
|
529
|
+
}, null, 42, Ae))), 128))
|
|
530
|
+
])) : (S(), h("rect", {
|
|
525
531
|
key: 1,
|
|
526
532
|
x: 2,
|
|
527
533
|
y: 1,
|
|
@@ -531,69 +537,75 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
531
537
|
"stroke-width": "2",
|
|
532
538
|
fill: "transparent",
|
|
533
539
|
rx: (K.value.height - 4) / 2
|
|
534
|
-
}, null, 8,
|
|
535
|
-
], 40, we)), e.$slots.hint ? (
|
|
540
|
+
}, null, 8, je))
|
|
541
|
+
], 40, we)), e.$slots.hint ? (S(), h("div", Me, [T(e.$slots, "hint", b(v({
|
|
536
542
|
hint: R.value.a11y.translations.keyboardNavigation,
|
|
537
543
|
isVisible: I.value
|
|
538
544
|
})), void 0, !0)])) : m("", !0)]),
|
|
539
|
-
R.value.style.legend.show ? (
|
|
545
|
+
R.value.style.legend.show ? (S(), h("div", {
|
|
540
546
|
key: 2,
|
|
541
|
-
style:
|
|
547
|
+
style: x(`background:transparent;margin:0 auto;margin:${R.value.style.legend.margin};justify-content:${R.value.style.legend.textAlign === "left" ? "flex-start" : R.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
542
548
|
class: "vue-ui-sparkstackbar-legend",
|
|
543
549
|
"aria-label": "legend",
|
|
544
550
|
role: "toolbar"
|
|
545
|
-
}, [R.value.style.legend.selectAllToggle.show && J.value.length > 2 && !
|
|
551
|
+
}, [R.value.style.legend.selectAllToggle.show && J.value.length > 2 && !D(z) ? (S(), p(fe, {
|
|
546
552
|
key: 0,
|
|
547
553
|
backgroundColor: R.value.style.legend.selectAllToggle.backgroundColor,
|
|
548
554
|
color: R.value.style.legend.selectAllToggle.color,
|
|
549
555
|
fontSize: R.value.style.legend.fontSize,
|
|
550
556
|
checked: q.value.length > 0,
|
|
551
|
-
isCursorPointer:
|
|
552
|
-
onToggle:
|
|
557
|
+
isCursorPointer: Je.value,
|
|
558
|
+
onToggle: et
|
|
553
559
|
}, null, 8, [
|
|
554
560
|
"backgroundColor",
|
|
555
561
|
"color",
|
|
556
562
|
"fontSize",
|
|
557
563
|
"checked",
|
|
558
564
|
"isCursorPointer"
|
|
559
|
-
])) : m("", !0), (
|
|
565
|
+
])) : m("", !0), (S(!0), h(d, null, w(J.value, (e, t) => (S(), h("div", {
|
|
560
566
|
role: "button",
|
|
561
567
|
tabindex: "0",
|
|
562
568
|
"aria-pressed": q.value.includes(t),
|
|
563
569
|
"aria-label": `${e.name}, ${q.value.includes(t) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
564
|
-
style:
|
|
565
|
-
class:
|
|
570
|
+
style: x(`font-size:${R.value.style.legend.fontSize}px;cursor:${Je.value ? "pointer" : "default"}`),
|
|
571
|
+
class: y({
|
|
566
572
|
"vue-ui-sparkstackbar-legend-item": !0,
|
|
567
573
|
"vue-ui-sparkstackbar-legend-item-unselected": q.value.includes(t)
|
|
568
574
|
}),
|
|
569
575
|
onClick: (n) => {
|
|
570
576
|
X(t), Q(e, t, !0);
|
|
571
577
|
},
|
|
572
|
-
onFocus: (t) =>
|
|
573
|
-
onBlur:
|
|
574
|
-
onKeydown: (n) =>
|
|
575
|
-
}, [g("div",
|
|
578
|
+
onFocus: (t) => dt(e),
|
|
579
|
+
onBlur: ft,
|
|
580
|
+
onKeydown: (n) => pt(n, e, t)
|
|
581
|
+
}, [g("div", Pe, [(S(), h("svg", {
|
|
576
582
|
height: `${R.value.style.legend.fontSize}px`,
|
|
577
583
|
width: `${R.value.style.legend.fontSize}px`,
|
|
578
584
|
viewBox: "0 0 10 10"
|
|
579
|
-
}, [g("defs", null, [
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
585
|
+
}, [g("defs", null, [_(de, {
|
|
586
|
+
t: "radial",
|
|
587
|
+
id: `legend_grad_${t}-${A.value}`,
|
|
588
|
+
stops: [[
|
|
589
|
+
"0%",
|
|
590
|
+
D(z) ? "#FFFFFF" : D(o)(D(ie)(e.color, .05), 100 - R.value.style.bar.gradient.intensity),
|
|
591
|
+
1
|
|
592
|
+
], [
|
|
593
|
+
"100%",
|
|
594
|
+
e.color,
|
|
595
|
+
1
|
|
596
|
+
]]
|
|
597
|
+
}, null, 8, ["id", "stops"])]), g("circle", {
|
|
586
598
|
cx: 5,
|
|
587
599
|
cy: 5,
|
|
588
600
|
r: 5,
|
|
589
601
|
fill: R.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${A.value})` : e.color
|
|
590
|
-
}, null, 8,
|
|
602
|
+
}, null, 8, Ie)], 8, Fe)), D(z) ? m("", !0) : (S(), h(d, { key: 0 }, [g("span", { style: x(`color:${R.value.style.legend.name.color}; font-weight:${R.value.style.legend.name.bold ? "bold" : "normal"}`) }, E(e.name), 5), G.value ? m("", !0) : (S(), h(d, { key: 0 }, [R.value.style.legend.percentage.show ? (S(), h("span", {
|
|
591
603
|
key: 0,
|
|
592
|
-
style:
|
|
593
|
-
},
|
|
604
|
+
style: x(`font-weight:${R.value.style.legend.percentage.bold ? "bold" : "normal"};color:${R.value.style.legend.percentage.color}`)
|
|
605
|
+
}, E(q.value.includes(t) ? " - " : e.proportionLabel), 5)) : m("", !0), R.value.style.legend.value.show ? (S(), h("span", {
|
|
594
606
|
key: 1,
|
|
595
|
-
style:
|
|
596
|
-
}, " (" +
|
|
607
|
+
style: x(`font-weight:${R.value.style.legend.value.bold ? "bold" : "normal"};color:${R.value.style.legend.value.color}`)
|
|
608
|
+
}, " (" + E(D(u)(R.value.style.legend.value.formatter, e.value, D(r)({
|
|
597
609
|
p: R.value.style.legend.value.prefix,
|
|
598
610
|
v: e.value,
|
|
599
611
|
s: R.value.style.legend.value.suffix,
|
|
@@ -601,11 +613,11 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
601
613
|
}), {
|
|
602
614
|
datapoint: e,
|
|
603
615
|
seriesIndex: t
|
|
604
|
-
})) + ") ", 5)) : m("", !0)], 64))], 64))])], 46,
|
|
605
|
-
|
|
616
|
+
})) + ") ", 5)) : m("", !0)], 64))], 64))])], 46, Ne))), 256))], 4)) : m("", !0),
|
|
617
|
+
_(D(ze), {
|
|
606
618
|
teleportTo: R.value.style.tooltip.teleportTo,
|
|
607
619
|
show: j.value && R.value.style.tooltip.show,
|
|
608
|
-
parent:
|
|
620
|
+
parent: We.value,
|
|
609
621
|
backgroundColor: R.value.style.tooltip.backgroundColor,
|
|
610
622
|
color: R.value.style.tooltip.color,
|
|
611
623
|
fontSize: R.value.style.tooltip.fontSize,
|
|
@@ -614,7 +626,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
614
626
|
borderWidth: R.value.style.tooltip.borderWidth,
|
|
615
627
|
backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
|
|
616
628
|
position: R.value.style.tooltip.position,
|
|
617
|
-
content:
|
|
629
|
+
content: Ge.value,
|
|
618
630
|
isCustom: N.value,
|
|
619
631
|
offsetX: R.value.style.tooltip.offsetX,
|
|
620
632
|
offsetY: -124 + R.value.style.tooltip.offsetY,
|
|
@@ -624,11 +636,11 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
624
636
|
smoothForce: R.value.style.tooltip.smoothForce,
|
|
625
637
|
smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
|
|
626
638
|
isA11yMode: F.value === "keyboard",
|
|
627
|
-
a11yPosition:
|
|
639
|
+
a11yPosition: Ke.value
|
|
628
640
|
}, {
|
|
629
|
-
"tooltip-before":
|
|
630
|
-
tooltip:
|
|
631
|
-
"tooltip-after":
|
|
641
|
+
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...M.value })), void 0, !0)]),
|
|
642
|
+
tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...M.value })), void 0, !0)]),
|
|
643
|
+
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...M.value })), void 0, !0)]),
|
|
632
644
|
_: 3
|
|
633
645
|
}, 8, [
|
|
634
646
|
"teleportTo",
|
|
@@ -653,10 +665,10 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
653
665
|
"isA11yMode",
|
|
654
666
|
"a11yPosition"
|
|
655
667
|
]),
|
|
656
|
-
e.$slots.source ? (
|
|
657
|
-
|
|
668
|
+
e.$slots.source ? (S(), h("div", Le, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
669
|
+
T(e.$slots, "skeleton", {}, () => [D(z) ? (S(), p(se, { key: 0 })) : m("", !0)], !0)
|
|
658
670
|
], 4));
|
|
659
671
|
}
|
|
660
|
-
}, [["__scopeId", "data-v-
|
|
672
|
+
}, [["__scopeId", "data-v-4ea77f60"]]);
|
|
661
673
|
//#endregion
|
|
662
|
-
export { xe as n,
|
|
674
|
+
export { xe as n, Re as t };
|