vue-data-ui 3.16.5 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -46
- package/dist/{PackageVersion-CvtT2-UH.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- 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-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-XhJQD-ri.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BhzRmNak.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CZCn6OMX.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BRyBDt56.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-Dulq2vNg.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-BJD25FJV.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-DCHtRFDV.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-46054xSO.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-CSdFVJx2.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-CmPyW4rp.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-QZjpAemm.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-C051dx6c.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-zCwCXCfe.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-HPy7kRgm.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-DxOwX8nC.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-KD1WwwLS.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-0BJ1t72z.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-lPRZK-_Q.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-WJG6UU4c.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-Cnqgwc0G.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-BXFwr3H7.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-DeYdEiHT.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-C0-M2WoG.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DctMvoRr.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-sLaCn8jd.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-reisxCWX.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-z3S4DcoQ.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CQEaLq9E.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-BGIt_k-N.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-BxXAWrhM.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-CMKIYAuh.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-Tb8aJ91r.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-CLAqGLQH.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-BK2SOFv9.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-BY7vIWHL.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-BlUbhTZ5.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-Bsfw_4y_.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BaORhzZH.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-D8afRw4d.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BE5ADLxq.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-C2QdubPf.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BxP_TDR3.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CgHAoaeu.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-0m7QAV93.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DNt9nHQ9.js → vue-ui-sparkline-B-zOqzrC.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-RU8zQLfe.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-C3qGXmTQ.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-W24y7z12.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot--MWxAM0R.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DKbkhX_x.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BtkypjfT.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-qaGYZUMd.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-CpQYSD-K.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-CUiSLMlj.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-CMfWyA5N.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-H02mH3Rc.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-agcFNYTs.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-B0fNWUVr.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-B8mANOO8.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-DgyEEqnJ.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as ge, useSlots as Ye, onMounted as
|
|
2
|
-
import { j as be, t as ke, m as We, p as c, s as
|
|
3
|
-
import { u as et } from "./useConfig-
|
|
1
|
+
import { defineAsyncComponent as ge, useSlots as Ye, onMounted as he, ref as d, computed as C, toRefs as Ge, watch as ye, openBlock as r, createElementBlock as i, normalizeStyle as b, createElementVNode as f, toDisplayString as K, createBlock as te, createCommentVNode as m, unref as p, createVNode as me, Fragment as L, renderList as R, normalizeClass as Y, renderSlot as N, normalizeProps as G, guardReactiveProps as W, withCtx as le } from "vue";
|
|
2
|
+
import { j as be, t as ke, m as We, p as c, s as z, n as qe, o as Xe, q as we, r as Je, l as q, k as oe, X as Qe, u as _e, v as xe, T as Ze } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { u as et } from "./useConfig-ChRble71.js";
|
|
4
4
|
import { u as tt, B as lt } from "./BaseScanner-BhhkKVoj.js";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as ae } from "./useNestedProp-Bf5XFbs8.js";
|
|
6
6
|
import { u as ot } from "./useThemeCheck-D1ZYXUwG.js";
|
|
7
7
|
import { u as at } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
8
|
import st from "./vue_ui_sparkstackbar-BSexvOuM.js";
|
|
9
9
|
import { B as nt } from "./BaseLegendToggle-BQVIawmA.js";
|
|
10
10
|
import { A as rt } from "./A11yDataTable-KcVAX2cP.js";
|
|
11
11
|
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "viewBox", "aria-describedby"], dt = ["id"], ft = ["stop-color"],
|
|
12
|
+
const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "viewBox", "aria-describedby"], dt = ["id"], ft = ["stop-color"], pt = ["stop-color"], gt = ["stop-color"], ht = {
|
|
13
13
|
id: "stackPill",
|
|
14
14
|
clipPathUnits: "objectBoundingBox"
|
|
15
15
|
}, yt = ["fill"], mt = {
|
|
16
16
|
key: 0,
|
|
17
17
|
"clip-path": "url(#stackPill)"
|
|
18
|
-
}, bt = ["x", "width", "height", "fill"], kt = ["x", "width", "height", "fill", "stroke"],
|
|
18
|
+
}, bt = ["x", "width", "height", "fill"], kt = ["x", "width", "height", "fill", "stroke"], wt = ["x", "width", "height", "onClick", "onMouseenter", "onMouseleave"], _t = ["width", "height", "rx"], xt = {
|
|
19
19
|
key: 0,
|
|
20
20
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
21
21
|
"data-dom-to-png-ignore": "",
|
|
@@ -42,11 +42,11 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
42
42
|
},
|
|
43
43
|
emits: ["selectDatapoint"],
|
|
44
44
|
setup(Ce, { expose: $e, emit: Se }) {
|
|
45
|
-
const Ae = ge(() => import("./PackageVersion-
|
|
46
|
-
|
|
45
|
+
const Ae = ge(() => import("./PackageVersion-B3kmPxTR.js")), Ie = ge(() => import("./Tooltip-C8KGyqQk.js")), { vue_ui_sparkstackbar: Fe } = et(), { isThemeValid: Te, warnInvalidTheme: Pe } = ot(), $ = Ce, De = Ye();
|
|
46
|
+
he(() => {
|
|
47
47
|
De["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
48
48
|
});
|
|
49
|
-
const
|
|
49
|
+
const se = d(null), S = d(be()), A = d(!1), X = d(""), U = d(null), M = d(!1), k = d(null), ne = d({ x: 0, y: 0 }), I = d("pointer"), J = d(!1), w = d(null), Le = d([]), t = d(Q()), re = C(() => t.value.useCursorPointer), Be = C(() => ke({
|
|
50
50
|
defaultConfig: {
|
|
51
51
|
style: {
|
|
52
52
|
backgroundColor: "#99999930",
|
|
@@ -61,7 +61,7 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
61
61
|
})), { loading: F, FINAL_DATASET: x } = tt({
|
|
62
62
|
...Ge($),
|
|
63
63
|
FINAL_CONFIG: t,
|
|
64
|
-
prepareConfig:
|
|
64
|
+
prepareConfig: Q,
|
|
65
65
|
skeletonDataset: $.config?.skeletonDataset ?? [
|
|
66
66
|
{ name: "_", value: 8, color: "#808080" },
|
|
67
67
|
{ name: "_", value: 5, color: "#ADADAD" },
|
|
@@ -71,19 +71,19 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
71
71
|
defaultConfig: t.value,
|
|
72
72
|
userConfig: Be.value
|
|
73
73
|
})
|
|
74
|
-
}), { svgRef:
|
|
75
|
-
function
|
|
76
|
-
const e =
|
|
74
|
+
}), { svgRef: V } = at({ config: t.value.style.title });
|
|
75
|
+
function Q() {
|
|
76
|
+
const e = ae({
|
|
77
77
|
userConfig: $.config,
|
|
78
78
|
defaultConfig: Fe
|
|
79
79
|
}), l = e.theme;
|
|
80
80
|
if (!l) return e;
|
|
81
81
|
if (!Te.value(e))
|
|
82
82
|
return Pe(e), e;
|
|
83
|
-
const o =
|
|
83
|
+
const o = ae({
|
|
84
84
|
userConfig: st[l] || $.config,
|
|
85
85
|
defaultConfig: e
|
|
86
|
-
}), a =
|
|
86
|
+
}), a = ae({
|
|
87
87
|
userConfig: $.config,
|
|
88
88
|
defaultConfig: o
|
|
89
89
|
});
|
|
@@ -92,20 +92,20 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
92
92
|
customPalette: a.customPalette.length ? a.customPalette : We[l] || c
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
|
|
96
|
-
t.value =
|
|
97
|
-
}, { deep: !0 }),
|
|
95
|
+
ye(() => $.config, (e) => {
|
|
96
|
+
t.value = Q(), ce();
|
|
97
|
+
}, { deep: !0 }), ye(() => x.value, (e) => {
|
|
98
98
|
T.value = x.value.map((l, o) => ({
|
|
99
99
|
...l,
|
|
100
|
-
color: l.color ?
|
|
101
|
-
})),
|
|
100
|
+
color: l.color ? z(l.color) : B.value[o] || c[o] || c[o % c.length]
|
|
101
|
+
})), ue();
|
|
102
102
|
}, { deep: !0 });
|
|
103
103
|
const B = C(() => qe(t.value.customPalette)), T = d(x.value.map((e, l) => ({
|
|
104
104
|
...e,
|
|
105
105
|
value: t.value.style.animation.show ? 0 : e.value || 0,
|
|
106
|
-
color: e.color ?
|
|
106
|
+
color: e.color ? z(e.color) : B.value[l] || c[l] || c[l % c.length]
|
|
107
107
|
}))), P = d(!0);
|
|
108
|
-
function
|
|
108
|
+
function ue() {
|
|
109
109
|
if (!t.value.style.animation.show) {
|
|
110
110
|
P.value = !1;
|
|
111
111
|
return;
|
|
@@ -115,107 +115,107 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
115
115
|
P.value = !0, T.value = x.value.map((u, s) => ({
|
|
116
116
|
...u,
|
|
117
117
|
value: 0,
|
|
118
|
-
color: u.color ?
|
|
118
|
+
color: u.color ? z(u.color) : B.value[s] || c[s] || c[s % c.length]
|
|
119
119
|
}));
|
|
120
|
-
function
|
|
120
|
+
function _() {
|
|
121
121
|
n += a / e, n < a ? (T.value = T.value.map((u, s) => ({
|
|
122
122
|
...u,
|
|
123
123
|
value: Math.min(u.value + o[s], l[s]),
|
|
124
|
-
color: u.color ?
|
|
125
|
-
})), requestAnimationFrame(
|
|
124
|
+
color: u.color ? z(u.color) : B.value[s] || c[s] || c[s % c.length]
|
|
125
|
+
})), requestAnimationFrame(_)) : (P.value = !1, T.value = x.value.map((u, s) => ({
|
|
126
126
|
...u,
|
|
127
127
|
value: l[s],
|
|
128
|
-
color: u.color ?
|
|
128
|
+
color: u.color ? z(u.color) : B.value[s] || c[s] || c[s % c.length],
|
|
129
129
|
id: be()
|
|
130
130
|
})));
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
_();
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
he(() => {
|
|
135
|
+
ce();
|
|
136
136
|
});
|
|
137
|
-
const
|
|
138
|
-
function
|
|
139
|
-
Xe($.dataset) ?
|
|
137
|
+
const ie = C(() => t.value.debug);
|
|
138
|
+
function ce() {
|
|
139
|
+
Xe($.dataset) ? we({
|
|
140
140
|
componentName: "VueUiSparkStackbar",
|
|
141
141
|
type: "dataset",
|
|
142
|
-
debug:
|
|
142
|
+
debug: ie.value
|
|
143
143
|
}) : $.dataset.forEach((e, l) => {
|
|
144
144
|
Je({
|
|
145
145
|
datasetObject: e,
|
|
146
146
|
requiredAttributes: ["name", "value"]
|
|
147
147
|
}).forEach((o) => {
|
|
148
|
-
|
|
148
|
+
we({
|
|
149
149
|
componentName: "VueUiSparkStackbar",
|
|
150
150
|
type: "datasetSerieAttribute",
|
|
151
151
|
property: o,
|
|
152
152
|
index: l,
|
|
153
|
-
debug:
|
|
153
|
+
debug: ie.value
|
|
154
154
|
});
|
|
155
155
|
});
|
|
156
|
-
}),
|
|
156
|
+
}), ue();
|
|
157
157
|
}
|
|
158
158
|
const h = d({
|
|
159
159
|
width: 500,
|
|
160
160
|
height: 16
|
|
161
|
-
}), v = d([]),
|
|
162
|
-
const o = e.value || 0, a = o /
|
|
161
|
+
}), v = d([]), ve = C(() => x.value.map((e) => e.value || 0).filter((e, l) => !v.value.includes(l)).reduce((e, l) => e + l, 0)), y = C(() => T.value.map((e, l) => {
|
|
162
|
+
const o = e.value || 0, a = o / ve.value, n = isNaN(a) ? 0 : a, _ = n * h.value.width;
|
|
163
163
|
return {
|
|
164
164
|
...e,
|
|
165
|
-
color:
|
|
165
|
+
color: z(x.value[l]?.color ? x.value[l]?.color : B.value[l] || c[l] || c[l % c.length]),
|
|
166
166
|
value: o,
|
|
167
167
|
proportion: n,
|
|
168
|
-
width:
|
|
168
|
+
width: _,
|
|
169
169
|
seriesIndex: l,
|
|
170
|
-
proportionLabel:
|
|
170
|
+
proportionLabel: q({
|
|
171
171
|
v: n * 100,
|
|
172
172
|
s: "%",
|
|
173
173
|
r: t.value.style.legend.percentage.rounding
|
|
174
174
|
})
|
|
175
175
|
};
|
|
176
|
-
})),
|
|
176
|
+
})), Z = C(() => y.value.filter((e, l) => !v.value.includes(l)));
|
|
177
177
|
function Ee() {
|
|
178
178
|
v.value.length ? v.value = [] : y.value.forEach((e, l) => {
|
|
179
179
|
v.value.push(l);
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function O(e) {
|
|
183
183
|
v.value.includes(e) ? v.value = v.value.filter((l) => l !== e) : v.value.length < T.value.length - 1 && v.value.push(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function de(e) {
|
|
186
186
|
if (!y.value.length)
|
|
187
187
|
return t.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null;
|
|
188
188
|
const l = y.value.find((o) => o.name === e);
|
|
189
189
|
return l || (t.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null);
|
|
190
190
|
}
|
|
191
191
|
function Ke(e) {
|
|
192
|
-
const l =
|
|
193
|
-
l !== null && v.value.includes(l.id) &&
|
|
192
|
+
const l = de(e);
|
|
193
|
+
l !== null && v.value.includes(l.id) && O(l.seriesIndex);
|
|
194
194
|
}
|
|
195
195
|
function Ne(e) {
|
|
196
|
-
const l =
|
|
197
|
-
l !== null && (v.value.includes(l.id) ||
|
|
196
|
+
const l = de(e);
|
|
197
|
+
l !== null && (v.value.includes(l.id) || O(l.seriesIndex));
|
|
198
198
|
}
|
|
199
|
-
const
|
|
199
|
+
const g = C(() => {
|
|
200
200
|
let e = 0;
|
|
201
201
|
const l = [];
|
|
202
|
-
for (let o = 0; o <
|
|
202
|
+
for (let o = 0; o < Z.value.length; o += 1)
|
|
203
203
|
l.push({
|
|
204
|
-
...
|
|
204
|
+
...Z.value[o],
|
|
205
205
|
start: e
|
|
206
|
-
}), e +=
|
|
206
|
+
}), e += Z.value[o].width;
|
|
207
207
|
return l;
|
|
208
208
|
}), ze = Se;
|
|
209
|
-
function
|
|
209
|
+
function j(e, l, o = !1) {
|
|
210
210
|
ze("selectDatapoint", { datapoint: e, index: l }), t.value.events.datapointClick && !o && t.value.events.datapointClick({ datapoint: e, seriesIndex: e.seriesIndex });
|
|
211
211
|
}
|
|
212
212
|
function Me({ datapoint: e, seriesIndex: l }) {
|
|
213
|
-
A.value = !1,
|
|
213
|
+
A.value = !1, w.value = null, k.value = null, I.value = "pointer", t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: e.seriesIndex });
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
if (
|
|
215
|
+
function fe({ datapoint: e, seriesIndex: l, triggerMode: o = "pointer" }) {
|
|
216
|
+
if (M.value = !1, t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: e.seriesIndex }), !t.value.style.tooltip.show)
|
|
217
217
|
return;
|
|
218
|
-
I.value = o,
|
|
218
|
+
I.value = o, U.value = { datapoint: e, seriesIndex: l, config: t.value, series: y.value }, A.value = !0, w.value = l;
|
|
219
219
|
const a = t.value.style.tooltip.customFormat;
|
|
220
220
|
if (Ze(a))
|
|
221
221
|
try {
|
|
@@ -225,16 +225,16 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
225
225
|
series: y.value,
|
|
226
226
|
config: t.value
|
|
227
227
|
});
|
|
228
|
-
typeof n == "string" && (
|
|
228
|
+
typeof n == "string" && (X.value = n, M.value = !0);
|
|
229
229
|
} catch {
|
|
230
|
-
console.warn("Custom format cannot be applied."),
|
|
230
|
+
console.warn("Custom format cannot be applied."), M.value = !1;
|
|
231
231
|
}
|
|
232
|
-
if (!
|
|
232
|
+
if (!M.value) {
|
|
233
233
|
let n = "";
|
|
234
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${e.proportionLabel}</b>`, n += `<span>(${
|
|
234
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${e.proportionLabel}</b>`, n += `<span>(${oe(
|
|
235
235
|
t.value.style.legend.value.formatter,
|
|
236
236
|
e.value,
|
|
237
|
-
|
|
237
|
+
q({
|
|
238
238
|
p: t.value.style.legend.value.prefix,
|
|
239
239
|
v: e.value,
|
|
240
240
|
s: t.value.style.legend.value.suffix,
|
|
@@ -244,91 +244,91 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
244
244
|
datapoint: e,
|
|
245
245
|
seriesIndex: l
|
|
246
246
|
}
|
|
247
|
-
)})</span>`,
|
|
247
|
+
)})</span>`, X.value = `<div>${n}</div>`;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function H(e) {
|
|
251
251
|
const l = Le.value[e];
|
|
252
252
|
l && typeof l.focus == "function" && l.focus();
|
|
253
253
|
}
|
|
254
254
|
function Ve(e) {
|
|
255
|
-
if (!Number.isFinite(e) || !
|
|
256
|
-
const l =
|
|
255
|
+
if (!Number.isFinite(e) || !V.value) return;
|
|
256
|
+
const l = g.value[e];
|
|
257
257
|
if (!l) return;
|
|
258
|
-
const o =
|
|
259
|
-
|
|
258
|
+
const o = V.value.getBoundingClientRect(), a = l.start + l.width / 2, n = h.value.height / 2;
|
|
259
|
+
ne.value = {
|
|
260
260
|
x: o.left + a / h.value.width * o.width,
|
|
261
261
|
y: o.top + n / h.value.height * o.height
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
function Re() {
|
|
265
|
-
k.value = null,
|
|
265
|
+
k.value = null, J.value = !0;
|
|
266
266
|
}
|
|
267
267
|
function Ue() {
|
|
268
|
-
k.value = null, I.value = "pointer", A.value = !1,
|
|
268
|
+
k.value = null, I.value = "pointer", A.value = !1, w.value = null, J.value = !1;
|
|
269
269
|
}
|
|
270
270
|
function Oe(e) {
|
|
271
|
-
if (!
|
|
272
|
-
const l = e.key === "ArrowLeft", o = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", n = e.key === "Escape",
|
|
273
|
-
if (!l && !o && !a && !n && !
|
|
271
|
+
if (!V.value || document.activeElement !== V.value || !g.value.length) return;
|
|
272
|
+
const l = e.key === "ArrowLeft", o = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", n = e.key === "Escape", _ = e.key === "Home", u = e.key === "End";
|
|
273
|
+
if (!l && !o && !a && !n && !_ && !u)
|
|
274
274
|
return;
|
|
275
275
|
if (e.preventDefault(), e.stopPropagation(), n) {
|
|
276
|
-
k.value = null, I.value = "pointer", A.value = !1,
|
|
276
|
+
k.value = null, I.value = "pointer", A.value = !1, w.value = null;
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
279
|
if (a) {
|
|
280
280
|
if (k.value === null) return;
|
|
281
|
-
const D =
|
|
281
|
+
const D = g.value[k.value];
|
|
282
282
|
if (!D) return;
|
|
283
|
-
|
|
283
|
+
j(D, D.seriesIndex);
|
|
284
284
|
return;
|
|
285
285
|
}
|
|
286
286
|
let s = k.value;
|
|
287
|
-
|
|
288
|
-
const E =
|
|
289
|
-
E && (k.value = s, Ve(s),
|
|
287
|
+
_ ? s = 0 : u ? s = g.value.length - 1 : s === null || s < 0 || s >= g.value.length ? s = o ? 0 : g.value.length - 1 : o ? (s += 1, s >= g.value.length && (s = 0)) : l && (s -= 1, s < 0 && (s = g.value.length - 1));
|
|
288
|
+
const E = g.value[s];
|
|
289
|
+
E && (k.value = s, Ve(s), fe({
|
|
290
290
|
datapoint: E,
|
|
291
291
|
seriesIndex: E.seriesIndex,
|
|
292
292
|
triggerMode: "keyboard"
|
|
293
293
|
}));
|
|
294
294
|
}
|
|
295
295
|
function je(e) {
|
|
296
|
-
A.value = !1, k.value = null, I.value = "pointer",
|
|
296
|
+
A.value = !1, k.value = null, I.value = "pointer", w.value = e.seriesIndex;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
k.value = null, I.value = "pointer", A.value = !1,
|
|
298
|
+
function pe() {
|
|
299
|
+
k.value = null, I.value = "pointer", A.value = !1, w.value = null;
|
|
300
300
|
}
|
|
301
301
|
function He(e, l, o) {
|
|
302
|
-
const a = e.key === "Enter" || e.key === " ", n = e.key === "ArrowLeft" || e.key === "ArrowUp",
|
|
303
|
-
if (!(!a && !n && !
|
|
302
|
+
const a = e.key === "Enter" || e.key === " ", n = e.key === "ArrowLeft" || e.key === "ArrowUp", _ = e.key === "ArrowRight" || e.key === "ArrowDown", u = e.key === "Home", s = e.key === "End", E = e.key === "Escape";
|
|
303
|
+
if (!(!a && !n && !_ && !u && !s && !E)) {
|
|
304
304
|
if (e.preventDefault(), e.stopPropagation(), E) {
|
|
305
|
-
|
|
305
|
+
pe();
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
308
|
if (a) {
|
|
309
|
-
|
|
309
|
+
O(o), j(l, o, !0);
|
|
310
310
|
return;
|
|
311
311
|
}
|
|
312
312
|
if (u) {
|
|
313
|
-
|
|
313
|
+
H(0);
|
|
314
314
|
return;
|
|
315
315
|
}
|
|
316
316
|
if (s) {
|
|
317
|
-
|
|
317
|
+
H(y.value.length - 1);
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
320
|
if (n) {
|
|
321
321
|
const D = o <= 0 ? y.value.length - 1 : o - 1;
|
|
322
|
-
|
|
322
|
+
H(D);
|
|
323
323
|
return;
|
|
324
324
|
}
|
|
325
|
-
if (
|
|
325
|
+
if (_) {
|
|
326
326
|
const D = o >= y.value.length - 1 ? 0 : o + 1;
|
|
327
|
-
|
|
327
|
+
H(D);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
const
|
|
331
|
+
const ee = C(() => ({
|
|
332
332
|
headers: [
|
|
333
333
|
t.value.a11y.translations.series,
|
|
334
334
|
t.value.a11y.translations.percentage,
|
|
@@ -337,10 +337,10 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
337
337
|
rows: y.value.map((e, l) => [
|
|
338
338
|
e.name,
|
|
339
339
|
v.value.includes(l) ? " - " : e.proportionLabel,
|
|
340
|
-
|
|
340
|
+
oe(
|
|
341
341
|
t.value.style.legend.value.formatter,
|
|
342
342
|
e.value,
|
|
343
|
-
|
|
343
|
+
q({
|
|
344
344
|
p: t.value.style.legend.value.prefix,
|
|
345
345
|
v: e.value,
|
|
346
346
|
s: t.value.style.legend.value.suffix,
|
|
@@ -359,7 +359,7 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
359
359
|
}), (e, l) => (r(), i("div", {
|
|
360
360
|
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
361
361
|
ref_key: "sparkstackbarChart",
|
|
362
|
-
ref:
|
|
362
|
+
ref: se,
|
|
363
363
|
style: b(`width:100%; background:${t.value.style.backgroundColor}`)
|
|
364
364
|
}, [
|
|
365
365
|
f("div", {
|
|
@@ -368,11 +368,11 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
368
368
|
}, [
|
|
369
369
|
f("p", null, K(t.value.a11y.translations.keyboardNavigation), 1)
|
|
370
370
|
], 8, it),
|
|
371
|
-
|
|
371
|
+
ee.value?.rows?.length ? (r(), te(rt, {
|
|
372
372
|
key: 0,
|
|
373
373
|
uid: S.value,
|
|
374
|
-
head:
|
|
375
|
-
body:
|
|
374
|
+
head: ee.value.headers,
|
|
375
|
+
body: ee.value.rows,
|
|
376
376
|
notice: t.value.a11y.translations.tableAvailable,
|
|
377
377
|
caption: t.value.a11y.translations.tableCaption
|
|
378
378
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : m("", !0),
|
|
@@ -393,8 +393,8 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
393
393
|
f("div", ct, [
|
|
394
394
|
(r(), i("svg", {
|
|
395
395
|
ref_key: "svgRef",
|
|
396
|
-
ref:
|
|
397
|
-
xmlns:
|
|
396
|
+
ref: V,
|
|
397
|
+
xmlns: p(Qe),
|
|
398
398
|
width: "100%",
|
|
399
399
|
viewBox: `0 0 ${h.value.width} ${h.value.height}`,
|
|
400
400
|
"aria-describedby": `chart-instructions-${S.value}`,
|
|
@@ -403,9 +403,9 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
403
403
|
onBlur: Ue,
|
|
404
404
|
onKeydown: Oe
|
|
405
405
|
}, [
|
|
406
|
-
|
|
406
|
+
me(p(Ae)),
|
|
407
407
|
f("defs", null, [
|
|
408
|
-
(r(!0), i(L, null,
|
|
408
|
+
(r(!0), i(L, null, R(g.value, (o, a) => (r(), i("linearGradient", {
|
|
409
409
|
key: `stack_gradient_${a}`,
|
|
410
410
|
gradientTransform: "rotate(90)",
|
|
411
411
|
id: `stack_gradient_${a}_${S.value}`
|
|
@@ -416,12 +416,12 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
416
416
|
}, null, 8, ft),
|
|
417
417
|
f("stop", {
|
|
418
418
|
offset: "50%",
|
|
419
|
-
"stop-color":
|
|
420
|
-
}, null, 8,
|
|
419
|
+
"stop-color": p(_e)(p(xe)(o.color, 0.05), 100 - t.value.style.bar.gradient.intensity)
|
|
420
|
+
}, null, 8, pt),
|
|
421
421
|
f("stop", {
|
|
422
422
|
offset: "100%",
|
|
423
423
|
"stop-color": o.color
|
|
424
|
-
}, null, 8,
|
|
424
|
+
}, null, 8, gt)
|
|
425
425
|
], 8, dt))), 128)),
|
|
426
426
|
f("clipPath", ht, [
|
|
427
427
|
f("rect", {
|
|
@@ -435,20 +435,20 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
435
435
|
}, null, 8, yt)
|
|
436
436
|
])
|
|
437
437
|
]),
|
|
438
|
-
|
|
439
|
-
(r(!0), i(L, null,
|
|
438
|
+
ve.value > 0 ? (r(), i("g", mt, [
|
|
439
|
+
(r(!0), i(L, null, R(g.value, (o, a) => (r(), i("rect", {
|
|
440
440
|
key: `stack_underlayer_${a}`,
|
|
441
441
|
x: o.start,
|
|
442
442
|
y: 0,
|
|
443
443
|
width: o.width,
|
|
444
444
|
height: h.value.height,
|
|
445
445
|
fill: t.value.style.bar.gradient.underlayerColor,
|
|
446
|
-
class:
|
|
446
|
+
class: Y({ animated: !P.value && !p(F) }),
|
|
447
447
|
style: b({
|
|
448
|
-
opacity:
|
|
448
|
+
opacity: w.value !== null && t.value.style.tooltip.show ? w.value === a ? 1 : 0.5 : 1
|
|
449
449
|
})
|
|
450
450
|
}, null, 14, bt))), 128)),
|
|
451
|
-
(r(!0), i(L, null,
|
|
451
|
+
(r(!0), i(L, null, R(g.value, (o, a) => (r(), i("rect", {
|
|
452
452
|
key: `stack_${a}`,
|
|
453
453
|
x: o.start,
|
|
454
454
|
y: 0,
|
|
@@ -457,12 +457,12 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
457
457
|
fill: t.value.style.bar.gradient.show ? `url(#stack_gradient_${a}_${S.value})` : o.color,
|
|
458
458
|
stroke: t.value.style.backgroundColor,
|
|
459
459
|
"stroke-linecap": "round",
|
|
460
|
-
class:
|
|
460
|
+
class: Y({ animated: !P.value && !p(F) }),
|
|
461
461
|
style: b({
|
|
462
|
-
opacity:
|
|
462
|
+
opacity: w.value !== null && t.value.style.tooltip.show ? w.value === a ? 1 : 0.5 : 1
|
|
463
463
|
})
|
|
464
464
|
}, null, 14, kt))), 128)),
|
|
465
|
-
(r(!0), i(L, null,
|
|
465
|
+
(r(!0), i(L, null, R(g.value, (o, a) => (r(), i("rect", {
|
|
466
466
|
key: `stack_trap_${a}`,
|
|
467
467
|
x: o.start,
|
|
468
468
|
y: 0,
|
|
@@ -470,11 +470,11 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
470
470
|
height: h.value.height,
|
|
471
471
|
fill: "transparent",
|
|
472
472
|
stroke: "none",
|
|
473
|
-
class:
|
|
474
|
-
onClick: () =>
|
|
475
|
-
onMouseenter: () =>
|
|
473
|
+
class: Y({ animated: !P.value && !p(F) }),
|
|
474
|
+
onClick: () => j(o, a),
|
|
475
|
+
onMouseenter: () => fe({ datapoint: o, seriesIndex: a }),
|
|
476
476
|
onMouseleave: (n) => Me({ datapoint: o, seriesIndex: a })
|
|
477
|
-
}, null, 42,
|
|
477
|
+
}, null, 42, wt))), 128))
|
|
478
478
|
])) : (r(), i("rect", {
|
|
479
479
|
key: 1,
|
|
480
480
|
x: 2,
|
|
@@ -485,10 +485,10 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
485
485
|
"stroke-width": "2",
|
|
486
486
|
fill: "transparent",
|
|
487
487
|
rx: (h.value.height - 4) / 2
|
|
488
|
-
}, null, 8,
|
|
488
|
+
}, null, 8, _t))
|
|
489
489
|
], 40, vt)),
|
|
490
490
|
e.$slots.hint ? (r(), i("div", xt, [
|
|
491
|
-
|
|
491
|
+
N(e.$slots, "hint", G(W({ hint: t.value.a11y.translations.keyboardNavigation, isVisible: J.value })), void 0, !0)
|
|
492
492
|
])) : m("", !0)
|
|
493
493
|
]),
|
|
494
494
|
t.value.style.legend.show ? (r(), i("div", {
|
|
@@ -498,27 +498,27 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
498
498
|
"aria-label": "legend",
|
|
499
499
|
role: "toolbar"
|
|
500
500
|
}, [
|
|
501
|
-
t.value.style.legend.selectAllToggle.show && y.value.length > 2 && !
|
|
501
|
+
t.value.style.legend.selectAllToggle.show && y.value.length > 2 && !p(F) ? (r(), te(nt, {
|
|
502
502
|
key: 0,
|
|
503
503
|
backgroundColor: t.value.style.legend.selectAllToggle.backgroundColor,
|
|
504
504
|
color: t.value.style.legend.selectAllToggle.color,
|
|
505
505
|
fontSize: t.value.style.legend.fontSize,
|
|
506
506
|
checked: v.value.length > 0,
|
|
507
|
-
isCursorPointer:
|
|
507
|
+
isCursorPointer: re.value,
|
|
508
508
|
onToggle: Ee
|
|
509
509
|
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : m("", !0),
|
|
510
|
-
(r(!0), i(L, null,
|
|
510
|
+
(r(!0), i(L, null, R(y.value, (o, a) => (r(), i("div", {
|
|
511
511
|
role: "button",
|
|
512
512
|
tabindex: "0",
|
|
513
513
|
"aria-pressed": v.value.includes(a),
|
|
514
514
|
"aria-label": `${o.name}, ${v.value.includes(a) ? "hidden" : "visible"}, ${o.proportionLabel}`,
|
|
515
|
-
style: b(`font-size:${t.value.style.legend.fontSize}px;cursor:${
|
|
516
|
-
class:
|
|
515
|
+
style: b(`font-size:${t.value.style.legend.fontSize}px;cursor:${re.value ? "pointer" : "default"}`),
|
|
516
|
+
class: Y({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": v.value.includes(a) }),
|
|
517
517
|
onClick: (n) => {
|
|
518
|
-
|
|
518
|
+
O(a), j(o, a, !0);
|
|
519
519
|
},
|
|
520
520
|
onFocus: (n) => je(o),
|
|
521
|
-
onBlur:
|
|
521
|
+
onBlur: pe,
|
|
522
522
|
onKeydown: (n) => He(n, o, a)
|
|
523
523
|
}, [
|
|
524
524
|
f("div", $t, [
|
|
@@ -533,7 +533,7 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
533
533
|
}, [
|
|
534
534
|
f("stop", {
|
|
535
535
|
offset: "0%",
|
|
536
|
-
"stop-color":
|
|
536
|
+
"stop-color": p(F) ? "#FFFFFF" : p(_e)(p(xe)(o.color, 0.05), 100 - t.value.style.bar.gradient.intensity)
|
|
537
537
|
}, null, 8, It),
|
|
538
538
|
f("stop", {
|
|
539
539
|
offset: "100%",
|
|
@@ -548,7 +548,7 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
548
548
|
fill: t.value.style.bar.gradient.show ? `url(#legend_grad_${a}-${S.value})` : o.color
|
|
549
549
|
}, null, 8, Tt)
|
|
550
550
|
], 8, St)),
|
|
551
|
-
|
|
551
|
+
p(F) ? m("", !0) : (r(), i(L, { key: 0 }, [
|
|
552
552
|
f("span", {
|
|
553
553
|
style: b(`color:${t.value.style.legend.name.color}; font-weight:${t.value.style.legend.name.bold ? "bold" : "normal"}`)
|
|
554
554
|
}, K(o.name), 5),
|
|
@@ -560,10 +560,10 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
560
560
|
t.value.style.legend.value.show ? (r(), i("span", {
|
|
561
561
|
key: 1,
|
|
562
562
|
style: b(`font-weight:${t.value.style.legend.value.bold ? "bold" : "normal"};color:${t.value.style.legend.value.color}`)
|
|
563
|
-
}, " (" + K(
|
|
563
|
+
}, " (" + K(p(oe)(
|
|
564
564
|
t.value.style.legend.value.formatter,
|
|
565
565
|
o.value,
|
|
566
|
-
|
|
566
|
+
p(q)({
|
|
567
567
|
p: t.value.style.legend.value.prefix,
|
|
568
568
|
v: o.value,
|
|
569
569
|
s: t.value.style.legend.value.suffix,
|
|
@@ -576,10 +576,10 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
576
576
|
])
|
|
577
577
|
], 46, Ct))), 256))
|
|
578
578
|
], 4)) : m("", !0),
|
|
579
|
-
|
|
579
|
+
me(p(Ie), {
|
|
580
580
|
teleportTo: t.value.style.tooltip.teleportTo,
|
|
581
581
|
show: A.value && t.value.style.tooltip.show,
|
|
582
|
-
parent:
|
|
582
|
+
parent: se.value,
|
|
583
583
|
backgroundColor: t.value.style.tooltip.backgroundColor,
|
|
584
584
|
color: t.value.style.tooltip.color,
|
|
585
585
|
fontSize: t.value.style.tooltip.fontSize,
|
|
@@ -588,8 +588,8 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
588
588
|
borderWidth: t.value.style.tooltip.borderWidth,
|
|
589
589
|
backgroundOpacity: t.value.style.tooltip.backgroundOpacity,
|
|
590
590
|
position: t.value.style.tooltip.position,
|
|
591
|
-
content:
|
|
592
|
-
isCustom:
|
|
591
|
+
content: X.value,
|
|
592
|
+
isCustom: M.value,
|
|
593
593
|
offsetY: -124 + t.value.style.tooltip.offsetY,
|
|
594
594
|
blockShiftY: !0,
|
|
595
595
|
smooth: t.value.style.tooltip.smooth,
|
|
@@ -597,25 +597,28 @@ const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "vie
|
|
|
597
597
|
smoothForce: t.value.style.tooltip.smoothForce,
|
|
598
598
|
smoothSnapThreshold: t.value.style.tooltip.smoothSnapThreshold,
|
|
599
599
|
isA11yMode: I.value === "keyboard",
|
|
600
|
-
a11yPosition:
|
|
600
|
+
a11yPosition: ne.value
|
|
601
601
|
}, {
|
|
602
|
-
"tooltip-before":
|
|
603
|
-
|
|
602
|
+
"tooltip-before": le(() => [
|
|
603
|
+
N(e.$slots, "tooltip-before", G(W({ ...U.value })), void 0, !0)
|
|
604
604
|
]),
|
|
605
|
-
|
|
606
|
-
|
|
605
|
+
tooltip: le(() => [
|
|
606
|
+
N(e.$slots, "tooltip", G(W({ ...U.value })), void 0, !0)
|
|
607
|
+
]),
|
|
608
|
+
"tooltip-after": le(() => [
|
|
609
|
+
N(e.$slots, "tooltip-after", G(W({ ...U.value })), void 0, !0)
|
|
607
610
|
]),
|
|
608
611
|
_: 3
|
|
609
612
|
}, 8, ["teleportTo", "show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
610
613
|
e.$slots.source ? (r(), i("div", Pt, [
|
|
611
|
-
|
|
614
|
+
N(e.$slots, "source", {}, void 0, !0)
|
|
612
615
|
], 512)) : m("", !0),
|
|
613
|
-
|
|
614
|
-
|
|
616
|
+
N(e.$slots, "skeleton", {}, () => [
|
|
617
|
+
p(F) ? (r(), te(lt, { key: 0 })) : m("", !0)
|
|
615
618
|
], !0)
|
|
616
619
|
], 4));
|
|
617
620
|
}
|
|
618
|
-
}, jt = /* @__PURE__ */ ut(Dt, [["__scopeId", "data-v-
|
|
621
|
+
}, jt = /* @__PURE__ */ ut(Dt, [["__scopeId", "data-v-85267d41"]]);
|
|
619
622
|
export {
|
|
620
623
|
jt as default
|
|
621
624
|
};
|