vue-data-ui 3.22.4 → 3.22.6
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/{Arrow-CgzmXCW_.js → Arrow-Ds4xmpiQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-VbypEaAa.js} +2 -2
- package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-DcUvOfxf.js} +1 -1
- package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-DFwIY5bE.js} +1 -1
- package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-DwolSINF.js} +2 -2
- package/dist/{ColorPicker-Usv7badH.js → ColorPicker-UVDPcrjE.js} +2 -2
- package/dist/{DataTable-PidUPOit.js → DataTable-CXfvIulC.js} +2 -2
- package/dist/{Legend-DXOzbXb-.js → Legend-D-635Kag.js} +2 -2
- package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-pR_1qp3s.js} +29 -29
- package/dist/{PackageVersion-Cm-3hwIF.js → PackageVersion-Da7hl-34.js} +1 -1
- package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-Bk2-E7V4.js} +18 -18
- package/dist/{Shape-BnF9aMPX.js → Shape-BSetplwm.js} +1 -1
- package/dist/{Slicer-hEvKOLw3.js → Slicer-ClIGOuoX.js} +2 -2
- package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-D1n9AW39.js} +4 -4
- package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-CjDAyolg.js} +1 -1
- package/dist/{Title-DDEEO-Nr.js → Title-C-p0ilWB.js} +1 -1
- package/dist/{Tooltip-BhKov422.js → Tooltip-YabpoXo1.js} +1 -1
- package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BO4VFL8O.js} +2 -2
- package/dist/components/arrow.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-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/{dom-to-png-ZOysoMwu.js → dom-to-png-CVJfsfwL.js} +1 -1
- package/dist/exposedLib-CjwriUaG.js +19 -0
- package/dist/{img-B29J8tV5.js → img-B_y5qDdm.js} +1 -1
- package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CyVwqXSh.js} +1 -1
- package/dist/{lib-CuwHGt1j.js → lib-DRBJCmHW.js} +6 -9
- package/dist/{package-CRlwXCDr.js → package-DyQ_PQis.js} +1 -1
- package/dist/{pdf-ymYt9Lee.js → pdf-CG02qhAH.js} +1 -1
- package/dist/{render-common-D6ny-Fwu.js → render-common-CUAlQvAQ.js} +22 -22
- 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 +14 -0
- package/dist/types/vue-ui-treemap.d.ts +3 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-DPMOys9n.js} +1 -1
- package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
- package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-BEo2N1Db.js} +1 -1
- package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
- package/dist/{usePrinter-C0wAS8yc.js → usePrinter-CRp5IW3v.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-DTWqd0R2.js → vue-data-ui-Bpu4kxlm.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +1757 -0
- package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-CfMrbDoq.js} +4 -4
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +1238 -0
- package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-CG6rhFpy.js} +68 -68
- package/dist/{vue-ui-bullet-tlj5_z_z.js → vue-ui-bullet-C_oBS1cr.js} +18 -18
- package/dist/{vue-ui-bump-BD0Uq3As.js → vue-ui-bump-BZB1Na8h.js} +243 -243
- package/dist/{vue-ui-candlestick-CZxsNGKS.js → vue-ui-candlestick-8d_1xO8X.js} +27 -27
- package/dist/{vue-ui-carousel-table-ycbcmBKt.js → vue-ui-carousel-table-BfZNcwmY.js} +43 -43
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +2010 -0
- package/dist/vue-ui-chord-B-sauvLo.js +1391 -0
- package/dist/{vue-ui-circle-pack-BPC6zUis.js → vue-ui-circle-pack-BLh8HnGK.js} +32 -32
- package/dist/{vue-ui-cursor-DF_e5k1s.js → vue-ui-cursor-DVsEm_4l.js} +4 -4
- package/dist/{vue-ui-dag-BIo4-Oa8.js → vue-ui-dag-Cfi0b9qm.js} +24 -24
- package/dist/{vue-ui-dashboard-BEtF6UX2.js → vue-ui-dashboard-F_NZ1xoQ.js} +70 -70
- package/dist/{vue-ui-digits-07IxTlNO.js → vue-ui-digits-BfP1kbj3.js} +4 -4
- package/dist/vue-ui-donut-BwAyvV3-.js +2410 -0
- package/dist/{vue-ui-donut-C5oRCxAO.js → vue-ui-donut-DlVRnVr_.js} +120 -120
- package/dist/{vue-ui-donut-evolution-BSeyPC9k.js → vue-ui-donut-evolution-D1k4u6cA.js} +419 -419
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +1530 -0
- package/dist/{vue-ui-flow-R_dLE1WS.js → vue-ui-flow-D_7Idmmw.js} +84 -84
- package/dist/vue-ui-funnel-BYCFV5TD.js +777 -0
- package/dist/vue-ui-galaxy-Bjxbg5_B.js +1077 -0
- package/dist/{vue-ui-gauge-AbzY-7Gg.js → vue-ui-gauge-Dt0H7DgC.js} +217 -217
- package/dist/{vue-ui-geo-DVT9XEC3.js → vue-ui-geo-89DEQb5l.js} +18 -18
- package/dist/{vue-ui-gizmo-DJTRXao8.js → vue-ui-gizmo-CQyLK18v.js} +62 -62
- package/dist/{vue-ui-heatmap-BCFId15K.js → vue-ui-heatmap-o6MvoxBK.js} +247 -247
- package/dist/vue-ui-history-plot-B7zuCfdg.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-j3jszojt.js → vue-ui-horizontal-bar-CwB4sc6M.js} +275 -275
- package/dist/{vue-ui-kpi-DJjF6tcf.js → vue-ui-kpi-4C-j92D-.js} +4 -4
- package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-Bj4Wv-i8.js} +3 -3
- package/dist/vue-ui-molecule-BDrRmwmm.js +925 -0
- package/dist/{vue-ui-mood-radar-DP_4LHfZ.js → vue-ui-mood-radar-B5W35Fvp.js} +30 -30
- package/dist/{vue-ui-nested-donuts-DFsLZEqx.js → vue-ui-nested-donuts-wfesrzle.js} +105 -105
- package/dist/{vue-ui-onion-CzXx3Rme.js → vue-ui-onion-B8-psLbF.js} +40 -40
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +1416 -0
- package/dist/vue-ui-quadrant-BzyGOJR2.js +1978 -0
- package/dist/{vue-ui-quick-chart-CnIFPFPv.js → vue-ui-quick-chart-so_8PzvS.js} +663 -663
- package/dist/{vue-ui-radar-CNwKFbHc.js → vue-ui-radar-5fQ5AAWD.js} +63 -63
- package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-CKWHDKOT.js} +34 -34
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +924 -0
- package/dist/{vue-ui-ridgeline-Kw50zROq.js → vue-ui-ridgeline-DVbYznRz.js} +102 -102
- package/dist/vue-ui-rings-c-yLWFHr.js +1246 -0
- package/dist/{vue-ui-scatter-DoL5Kh1Y.js → vue-ui-scatter-QhmE7n1H.js} +87 -87
- package/dist/{vue-ui-skeleton-BOHwJSdz.js → vue-ui-skeleton-BkxB6Dik.js} +4 -4
- package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-C4g0iaF7.js} +10 -10
- package/dist/{vue-ui-spark-trend-OgSFIFh0.js → vue-ui-spark-trend-0FELlq4x.js} +98 -98
- package/dist/{vue-ui-sparkbar-D8FdqMB_.js → vue-ui-sparkbar-D-i_VLO6.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CBpPbVkw.js → vue-ui-sparkgauge-CWw6w_ng.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-BQjbLa2k.js → vue-ui-sparkhistogram-DuGpkfma.js} +105 -105
- package/dist/{vue-ui-sparkline-BJfh5Lje.js → vue-ui-sparkline-Bi06lHQd.js} +252 -252
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +662 -0
- package/dist/{vue-ui-stackbar-Dqs7_g8D.js → vue-ui-stackbar-DDvuDGQ_.js} +85 -85
- package/dist/vue-ui-stackline-C0NHBUaE.js +2416 -0
- package/dist/{vue-ui-strip-plot-B7D6Hk8R.js → vue-ui-strip-plot-_6LL45i9.js} +369 -369
- package/dist/{vue-ui-table-Bqi9XNvY.js → vue-ui-table-DBlZswRi.js} +26 -26
- package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-3xYIDKcP.js} +6 -6
- package/dist/{vue-ui-table-sparkline-0Ffb2jdf.js → vue-ui-table-sparkline-BH5PzEnJ.js} +201 -201
- package/dist/{vue-ui-thermometer-Di5PXtEO.js → vue-ui-thermometer-BxMzAqoT.js} +119 -119
- package/dist/{vue-ui-timer-9CDcd-gP.js → vue-ui-timer-ONSitYDm.js} +30 -30
- package/dist/{vue-ui-tiremarks-BAQ-cCSq.js → vue-ui-tiremarks-DWXM-9nR.js} +15 -15
- package/dist/vue-ui-treemap-B03c4RIy.js +1713 -0
- package/dist/{vue-ui-waffle-DG2IfACo.js → vue-ui-waffle-afa8HSxz.js} +160 -160
- package/dist/{vue-ui-wheel-BfXJFCjv.js → vue-ui-wheel-DRP7X8S2.js} +37 -37
- package/dist/{vue-ui-word-cloud-3NJy1z6d.js → vue-ui-word-cloud-AKpMO97a.js} +38 -38
- package/dist/{vue-ui-world-vrGT5g1H.js → vue-ui-world-CqS-HhZl.js} +400 -400
- package/dist/{vue-ui-xy-Dg0wxSeC.js → vue-ui-xy-Bmd11BxR.js} +656 -656
- package/dist/{vue-ui-xy-Cb7u46JN.js → vue-ui-xy-DJ8YKPgs.js} +244 -244
- package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DO_PDGKf.js} +47 -47
- package/package.json +1 -1
- package/dist/exposedLib-C2U48XK7.js +0 -19
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +0 -1757
- package/dist/vue-ui-age-pyramid-e09oK-Fp.js +0 -1238
- package/dist/vue-ui-chestnut-CnEsjvh4.js +0 -2010
- package/dist/vue-ui-chord-BZhXsZXp.js +0 -1391
- package/dist/vue-ui-donut-C4FcvXm3.js +0 -2410
- package/dist/vue-ui-dumbbell-Cykw4WYn.js +0 -1530
- package/dist/vue-ui-funnel-Ct5xQdak.js +0 -777
- package/dist/vue-ui-galaxy-B5BkdIt5.js +0 -1077
- package/dist/vue-ui-history-plot-DCeroetw.js +0 -1700
- package/dist/vue-ui-molecule-2pfoR63d.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +0 -1416
- package/dist/vue-ui-quadrant-Br_iZmcw.js +0 -1978
- package/dist/vue-ui-relation-circle-BVDIikGi.js +0 -924
- package/dist/vue-ui-rings-BDJyoWvT.js +0 -1246
- package/dist/vue-ui-sparkstackbar-1WUQrqd7.js +0 -662
- package/dist/vue-ui-stackline-IRjugedp.js +0 -2416
- package/dist/vue-ui-treemap-CLOlWiDE.js +0 -1587
|
@@ -0,0 +1,662 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { At as t, Dt as n, Ht as r, It as i, Lt as a, Q as o, S as s, W as c, Wt as ee, _t as te, b as l, i as ne, lt as re, q as u, t as ie } from "./lib-DRBJCmHW.js";
|
|
3
|
+
import { t as ae } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as d } from "./useNestedProp-BEo2N1Db.js";
|
|
6
|
+
import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as le } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
+
import { t as ue } from "./BaseLegendToggle-DFwIY5bE.js";
|
|
9
|
+
import { t as de } from "./A11yDataTable-DdRsVULz.js";
|
|
10
|
+
import { t as fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
11
|
+
import { t as pe } from "./vue_ui_sparkstackbar-BOjuQnZd.js";
|
|
12
|
+
import { Fragment as f, computed as p, createBlock as me, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as he, defineAsyncComponent as ge, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onMounted as _e, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, toRefs as ve, unref as E, useSlots as ye, watch as be, withCtx as D } from "vue";
|
|
13
|
+
//#region src/components/vue-ui-sparkstackbar.vue
|
|
14
|
+
var xe = /* @__PURE__ */ e({ default: () => Ge }), Se = ["id"], Ce = { style: { position: "relative" } }, we = [
|
|
15
|
+
"xmlns",
|
|
16
|
+
"viewBox",
|
|
17
|
+
"aria-describedby"
|
|
18
|
+
], Te = ["id"], Ee = ["stop-color"], De = ["stop-color"], Oe = ["stop-color"], ke = {
|
|
19
|
+
id: "stackPill",
|
|
20
|
+
clipPathUnits: "objectBoundingBox"
|
|
21
|
+
}, Ae = ["fill"], je = {
|
|
22
|
+
key: 0,
|
|
23
|
+
"clip-path": "url(#stackPill)"
|
|
24
|
+
}, Me = [
|
|
25
|
+
"x",
|
|
26
|
+
"width",
|
|
27
|
+
"height",
|
|
28
|
+
"fill"
|
|
29
|
+
], Ne = [
|
|
30
|
+
"x",
|
|
31
|
+
"width",
|
|
32
|
+
"height",
|
|
33
|
+
"fill",
|
|
34
|
+
"stroke"
|
|
35
|
+
], Pe = [
|
|
36
|
+
"x",
|
|
37
|
+
"width",
|
|
38
|
+
"height",
|
|
39
|
+
"onClick",
|
|
40
|
+
"onMouseenter",
|
|
41
|
+
"onMouseleave"
|
|
42
|
+
], Fe = [
|
|
43
|
+
"width",
|
|
44
|
+
"height",
|
|
45
|
+
"rx"
|
|
46
|
+
], Ie = {
|
|
47
|
+
key: 0,
|
|
48
|
+
style: {
|
|
49
|
+
position: "absolute",
|
|
50
|
+
top: "100%",
|
|
51
|
+
left: "0",
|
|
52
|
+
width: "100%"
|
|
53
|
+
},
|
|
54
|
+
"data-dom-to-png-ignore": "",
|
|
55
|
+
"aria-hidden": "true"
|
|
56
|
+
}, Le = [
|
|
57
|
+
"aria-pressed",
|
|
58
|
+
"aria-label",
|
|
59
|
+
"onClick",
|
|
60
|
+
"onFocus",
|
|
61
|
+
"onKeydown"
|
|
62
|
+
], Re = { style: {
|
|
63
|
+
display: "flex",
|
|
64
|
+
"flex-direction": "row",
|
|
65
|
+
"align-items": "center",
|
|
66
|
+
gap: "4px",
|
|
67
|
+
"justify-content": "center"
|
|
68
|
+
} }, ze = ["height", "width"], Be = ["id"], Ve = ["stop-color"], He = ["stop-color"], Ue = ["fill"], We = {
|
|
69
|
+
key: 3,
|
|
70
|
+
ref: "source",
|
|
71
|
+
dir: "auto"
|
|
72
|
+
}, Ge = /*#__PURE__*/ le({
|
|
73
|
+
__name: "vue-ui-sparkstackbar",
|
|
74
|
+
props: {
|
|
75
|
+
config: {
|
|
76
|
+
type: Object,
|
|
77
|
+
default() {
|
|
78
|
+
return {};
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
dataset: {
|
|
82
|
+
type: Array,
|
|
83
|
+
default() {
|
|
84
|
+
return [];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
emits: ["selectDatapoint", "selectLegend"],
|
|
89
|
+
setup(e, { expose: le, emit: xe }) {
|
|
90
|
+
let Ge = ge(() => import("./PackageVersion-Da7hl-34.js").then((e) => e.t)), Ke = ge(() => import("./Tooltip-YabpoXo1.js")), { vue_ui_sparkstackbar: qe } = ae(), { isThemeValid: Je, warnInvalidTheme: Ye } = ce(), O = e, Xe = ye();
|
|
91
|
+
_e(() => {
|
|
92
|
+
Xe["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
93
|
+
});
|
|
94
|
+
let Ze = S(null), k = S(c()), A = S(!1), j = S(""), M = S(null), N = S(!1), P = S(null), Qe = S({
|
|
95
|
+
x: 0,
|
|
96
|
+
y: 0
|
|
97
|
+
}), F = S("pointer"), $e = S(!1), I = S(null), et = S([]), L = S(V()), tt = p(() => L.value.useCursorPointer), nt = p(() => ee({
|
|
98
|
+
defaultConfig: { style: {
|
|
99
|
+
backgroundColor: "#99999930",
|
|
100
|
+
animation: { show: !1 },
|
|
101
|
+
bar: { gradient: { inderlayerColor: "#6A6A6A" } },
|
|
102
|
+
title: { backgroundColor: "transparent" }
|
|
103
|
+
} },
|
|
104
|
+
userConfig: L.value.skeletonConfig ?? {}
|
|
105
|
+
})), { loading: R, FINAL_DATASET: z } = oe({
|
|
106
|
+
...ve(O),
|
|
107
|
+
FINAL_CONFIG: L,
|
|
108
|
+
prepareConfig: V,
|
|
109
|
+
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
110
|
+
{
|
|
111
|
+
name: "_",
|
|
112
|
+
value: 8,
|
|
113
|
+
color: "#808080"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "_",
|
|
117
|
+
value: 5,
|
|
118
|
+
color: "#ADADAD"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "_",
|
|
122
|
+
value: 3,
|
|
123
|
+
color: "#DBDBDB"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
skeletonConfig: ee({
|
|
127
|
+
defaultConfig: L.value,
|
|
128
|
+
userConfig: nt.value
|
|
129
|
+
})
|
|
130
|
+
}), { svgRef: B } = fe({ config: L.value.style.title });
|
|
131
|
+
function V() {
|
|
132
|
+
let e = d({
|
|
133
|
+
userConfig: O.config,
|
|
134
|
+
defaultConfig: qe
|
|
135
|
+
}), n = e.theme;
|
|
136
|
+
if (!n) return e;
|
|
137
|
+
if (!Je.value(e)) return Ye(e), e;
|
|
138
|
+
let i = d({
|
|
139
|
+
userConfig: pe[n] || O.config,
|
|
140
|
+
defaultConfig: e
|
|
141
|
+
}), a = d({
|
|
142
|
+
userConfig: O.config,
|
|
143
|
+
defaultConfig: i
|
|
144
|
+
});
|
|
145
|
+
return {
|
|
146
|
+
...a,
|
|
147
|
+
customPalette: a.customPalette.length ? a.customPalette : r[n] || t
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
be(() => O.config, (e) => {
|
|
151
|
+
L.value = V(), at();
|
|
152
|
+
}, { deep: !0 }), be(() => z.value, (e) => {
|
|
153
|
+
U.value = z.value.map((e, n) => ({
|
|
154
|
+
...e,
|
|
155
|
+
color: e.color ? l(e.color) : H.value[n] || t[n] || t[n % t.length]
|
|
156
|
+
})), rt();
|
|
157
|
+
}, { deep: !0 });
|
|
158
|
+
let H = p(() => s(L.value.customPalette)), U = S(z.value.map((e, n) => ({
|
|
159
|
+
...e,
|
|
160
|
+
value: L.value.style.animation.show ? 0 : e.value || 0,
|
|
161
|
+
color: e.color ? l(e.color) : H.value[n] || t[n] || t[n % t.length]
|
|
162
|
+
}))), W = S(!0);
|
|
163
|
+
function rt() {
|
|
164
|
+
if (!L.value.style.animation.show) {
|
|
165
|
+
W.value = !1;
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
let e = L.value.style.animation.animationFrames, n = z.value.map((e) => e.value || 0), r = n.map((t) => t / e), i = n.reduce((e, t) => e + t, 0), a = 0;
|
|
169
|
+
W.value = !0, U.value = z.value.map((e, n) => ({
|
|
170
|
+
...e,
|
|
171
|
+
value: 0,
|
|
172
|
+
color: e.color ? l(e.color) : H.value[n] || t[n] || t[n % t.length]
|
|
173
|
+
}));
|
|
174
|
+
function o() {
|
|
175
|
+
a += i / e, a < i ? (U.value = U.value.map((e, i) => ({
|
|
176
|
+
...e,
|
|
177
|
+
value: Math.min(e.value + r[i], n[i]),
|
|
178
|
+
color: e.color ? l(e.color) : H.value[i] || t[i] || t[i % t.length]
|
|
179
|
+
})), requestAnimationFrame(o)) : (W.value = !1, U.value = z.value.map((e, r) => ({
|
|
180
|
+
...e,
|
|
181
|
+
value: n[r],
|
|
182
|
+
color: e.color ? l(e.color) : H.value[r] || t[r] || t[r % t.length],
|
|
183
|
+
id: c()
|
|
184
|
+
})));
|
|
185
|
+
}
|
|
186
|
+
o();
|
|
187
|
+
}
|
|
188
|
+
_e(() => {
|
|
189
|
+
at();
|
|
190
|
+
});
|
|
191
|
+
let it = p(() => L.value.debug);
|
|
192
|
+
function at() {
|
|
193
|
+
n(O.dataset) ? o({
|
|
194
|
+
componentName: "VueUiSparkStackbar",
|
|
195
|
+
type: "dataset",
|
|
196
|
+
debug: it.value
|
|
197
|
+
}) : O.dataset.forEach((e, t) => {
|
|
198
|
+
re({
|
|
199
|
+
datasetObject: e,
|
|
200
|
+
requiredAttributes: ["name", "value"]
|
|
201
|
+
}).forEach((e) => {
|
|
202
|
+
o({
|
|
203
|
+
componentName: "VueUiSparkStackbar",
|
|
204
|
+
type: "datasetSerieAttribute",
|
|
205
|
+
property: e,
|
|
206
|
+
index: t,
|
|
207
|
+
debug: it.value
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
}), rt();
|
|
211
|
+
}
|
|
212
|
+
let G = S({
|
|
213
|
+
width: 500,
|
|
214
|
+
height: 16
|
|
215
|
+
}), K = S([]), ot = p(() => z.value.map((e) => e.value || 0).filter((e, t) => !K.value.includes(t)).reduce((e, t) => e + t, 0)), q = p(() => U.value.map((e, n) => {
|
|
216
|
+
let r = e.value || 0, i = r / ot.value, a = isNaN(i) ? 0 : i, o = a * G.value.width;
|
|
217
|
+
return {
|
|
218
|
+
...e,
|
|
219
|
+
color: l(z.value[n]?.color ? z.value[n]?.color : H.value[n] || t[n] || t[n % t.length]),
|
|
220
|
+
value: r,
|
|
221
|
+
proportion: a,
|
|
222
|
+
width: o,
|
|
223
|
+
seriesIndex: n,
|
|
224
|
+
proportionLabel: u({
|
|
225
|
+
v: a * 100,
|
|
226
|
+
s: "%",
|
|
227
|
+
r: L.value.style.legend.percentage.rounding
|
|
228
|
+
})
|
|
229
|
+
};
|
|
230
|
+
})), J = p(() => q.value.filter((e, t) => !K.value.includes(t)));
|
|
231
|
+
function st() {
|
|
232
|
+
K.value.length ? K.value = [] : q.value.forEach((e, t) => {
|
|
233
|
+
K.value.push(t);
|
|
234
|
+
}), Z("selectLegend", J.value);
|
|
235
|
+
}
|
|
236
|
+
function Y(e) {
|
|
237
|
+
K.value.includes(e) ? K.value = K.value.filter((t) => t !== e) : K.value.length < U.value.length - 1 && K.value.push(e), Z("selectLegend", J.value);
|
|
238
|
+
}
|
|
239
|
+
function ct(e) {
|
|
240
|
+
return q.value.length ? q.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null);
|
|
241
|
+
}
|
|
242
|
+
function lt(e) {
|
|
243
|
+
let t = ct(e);
|
|
244
|
+
t !== null && K.value.includes(t.id) && Y(t.seriesIndex);
|
|
245
|
+
}
|
|
246
|
+
function ut(e) {
|
|
247
|
+
let t = ct(e);
|
|
248
|
+
t !== null && (K.value.includes(t.id) || Y(t.seriesIndex));
|
|
249
|
+
}
|
|
250
|
+
let X = p(() => {
|
|
251
|
+
let e = 0, t = [];
|
|
252
|
+
for (let n = 0; n < J.value.length; n += 1) t.push({
|
|
253
|
+
...J.value[n],
|
|
254
|
+
start: e
|
|
255
|
+
}), e += J.value[n].width;
|
|
256
|
+
return t;
|
|
257
|
+
}), Z = xe;
|
|
258
|
+
function Q(e, t, n = !1) {
|
|
259
|
+
Z("selectDatapoint", {
|
|
260
|
+
datapoint: e,
|
|
261
|
+
index: t
|
|
262
|
+
}), L.value.events.datapointClick && !n && L.value.events.datapointClick({
|
|
263
|
+
datapoint: e,
|
|
264
|
+
seriesIndex: e.seriesIndex
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
function dt({ datapoint: e, seriesIndex: t }) {
|
|
268
|
+
A.value = !1, I.value = null, P.value = null, F.value = "pointer", L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
269
|
+
datapoint: e,
|
|
270
|
+
seriesIndex: e.seriesIndex
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
function ft({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
274
|
+
if (N.value = !1, L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
275
|
+
datapoint: e,
|
|
276
|
+
seriesIndex: e.seriesIndex
|
|
277
|
+
}), !L.value.style.tooltip.show) return;
|
|
278
|
+
F.value = n, M.value = {
|
|
279
|
+
datapoint: e,
|
|
280
|
+
seriesIndex: t,
|
|
281
|
+
config: L.value,
|
|
282
|
+
series: q.value
|
|
283
|
+
}, A.value = !0, I.value = t;
|
|
284
|
+
let r = L.value.style.tooltip.customFormat;
|
|
285
|
+
if (te(r)) try {
|
|
286
|
+
let t = r({
|
|
287
|
+
seriesIndex: e.seriesIndex,
|
|
288
|
+
datapoint: e,
|
|
289
|
+
series: q.value,
|
|
290
|
+
config: L.value
|
|
291
|
+
});
|
|
292
|
+
typeof t == "string" && (j.value = t, N.value = !0);
|
|
293
|
+
} catch {
|
|
294
|
+
console.warn("Custom format cannot be applied."), N.value = !1;
|
|
295
|
+
}
|
|
296
|
+
if (!N.value) {
|
|
297
|
+
let n = "";
|
|
298
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.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>(${ne(L.value.style.legend.value.formatter, e.value, u({
|
|
299
|
+
p: L.value.style.legend.value.prefix,
|
|
300
|
+
v: e.value,
|
|
301
|
+
s: L.value.style.legend.value.suffix,
|
|
302
|
+
r: L.value.style.legend.value.rounding
|
|
303
|
+
}), {
|
|
304
|
+
datapoint: e,
|
|
305
|
+
seriesIndex: t
|
|
306
|
+
})})</span>`, j.value = `<div>${n}</div>`;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
function $(e) {
|
|
310
|
+
let t = et.value[e];
|
|
311
|
+
t && typeof t.focus == "function" && t.focus();
|
|
312
|
+
}
|
|
313
|
+
function pt(e) {
|
|
314
|
+
if (!Number.isFinite(e) || !B.value) return;
|
|
315
|
+
let t = X.value[e];
|
|
316
|
+
if (!t) return;
|
|
317
|
+
let n = B.value.getBoundingClientRect(), r = t.start + t.width / 2, i = G.value.height / 2;
|
|
318
|
+
Qe.value = {
|
|
319
|
+
x: n.left + r / G.value.width * n.width,
|
|
320
|
+
y: n.top + i / G.value.height * n.height
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
function mt() {
|
|
324
|
+
P.value = null, $e.value = !0;
|
|
325
|
+
}
|
|
326
|
+
function ht() {
|
|
327
|
+
P.value = null, F.value = "pointer", A.value = !1, I.value = null, $e.value = !1;
|
|
328
|
+
}
|
|
329
|
+
function gt(e) {
|
|
330
|
+
if (!B.value || document.activeElement !== B.value || !X.value.length) return;
|
|
331
|
+
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
|
+
if (!t && !n && !r && !i && !a && !o) return;
|
|
333
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
334
|
+
P.value = null, F.value = "pointer", A.value = !1, I.value = null;
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
if (r) {
|
|
338
|
+
if (P.value === null) return;
|
|
339
|
+
let e = X.value[P.value];
|
|
340
|
+
if (!e) return;
|
|
341
|
+
Q(e, e.seriesIndex);
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
let s = P.value;
|
|
345
|
+
a ? s = 0 : o ? s = X.value.length - 1 : s === null || s < 0 || s >= X.value.length ? s = n ? 0 : X.value.length - 1 : n ? (s += 1, s >= X.value.length && (s = 0)) : t && (--s, s < 0 && (s = X.value.length - 1));
|
|
346
|
+
let c = X.value[s];
|
|
347
|
+
c && (P.value = s, pt(s), ft({
|
|
348
|
+
datapoint: c,
|
|
349
|
+
seriesIndex: c.seriesIndex,
|
|
350
|
+
triggerMode: "keyboard"
|
|
351
|
+
}));
|
|
352
|
+
}
|
|
353
|
+
function _t(e) {
|
|
354
|
+
A.value = !1, P.value = null, F.value = "pointer", I.value = e.seriesIndex;
|
|
355
|
+
}
|
|
356
|
+
function vt() {
|
|
357
|
+
P.value = null, F.value = "pointer", A.value = !1, I.value = null;
|
|
358
|
+
}
|
|
359
|
+
function yt(e, t, n) {
|
|
360
|
+
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
|
+
if (!(!r && !i && !a && !o && !s && !c)) {
|
|
362
|
+
if (e.preventDefault(), e.stopPropagation(), c) {
|
|
363
|
+
vt();
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
if (r) {
|
|
367
|
+
Y(n), Q(t, n, !0);
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
if (o) {
|
|
371
|
+
$(0);
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
if (s) {
|
|
375
|
+
$(q.value.length - 1);
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
if (i) {
|
|
379
|
+
$(n <= 0 ? q.value.length - 1 : n - 1);
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
a && $(n >= q.value.length - 1 ? 0 : n + 1);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
let bt = p(() => ({
|
|
386
|
+
headers: [
|
|
387
|
+
L.value.a11y.translations.series,
|
|
388
|
+
L.value.a11y.translations.percentage,
|
|
389
|
+
L.value.a11y.translations.value
|
|
390
|
+
],
|
|
391
|
+
rows: q.value.map((e, t) => [
|
|
392
|
+
e.name,
|
|
393
|
+
K.value.includes(t) ? " - " : e.proportionLabel,
|
|
394
|
+
ne(L.value.style.legend.value.formatter, e.value, u({
|
|
395
|
+
p: L.value.style.legend.value.prefix,
|
|
396
|
+
v: e.value,
|
|
397
|
+
s: L.value.style.legend.value.suffix,
|
|
398
|
+
r: L.value.style.legend.value.rounding
|
|
399
|
+
}), {
|
|
400
|
+
datapoint: e,
|
|
401
|
+
seriesIndex: t
|
|
402
|
+
})
|
|
403
|
+
])
|
|
404
|
+
}));
|
|
405
|
+
return le({
|
|
406
|
+
hideSeries: ut,
|
|
407
|
+
showSeries: lt
|
|
408
|
+
}), (e, t) => (x(), h("div", {
|
|
409
|
+
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
410
|
+
ref_key: "sparkstackbarChart",
|
|
411
|
+
ref: Ze,
|
|
412
|
+
style: b(`width:100%; background:${L.value.style.backgroundColor}`)
|
|
413
|
+
}, [
|
|
414
|
+
g("div", {
|
|
415
|
+
id: `chart-instructions-${k.value}`,
|
|
416
|
+
class: "sr-only"
|
|
417
|
+
}, [g("p", null, T(L.value.a11y.translations.keyboardNavigation), 1)], 8, Se),
|
|
418
|
+
bt.value?.rows?.length ? (x(), me(de, {
|
|
419
|
+
key: 0,
|
|
420
|
+
uid: k.value,
|
|
421
|
+
head: bt.value.headers,
|
|
422
|
+
body: bt.value.rows,
|
|
423
|
+
notice: L.value.a11y.translations.tableAvailable,
|
|
424
|
+
caption: L.value.a11y.translations.tableCaption
|
|
425
|
+
}, null, 8, [
|
|
426
|
+
"uid",
|
|
427
|
+
"head",
|
|
428
|
+
"body",
|
|
429
|
+
"notice",
|
|
430
|
+
"caption"
|
|
431
|
+
])) : m("", !0),
|
|
432
|
+
L.value.style.title.text ? (x(), h("div", {
|
|
433
|
+
key: 1,
|
|
434
|
+
style: b(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${L.value.style.title.margin};padding: 0 6px;text-align:${L.value.style.title.textAlign}`)
|
|
435
|
+
}, [g("div", {
|
|
436
|
+
class: "atom-title",
|
|
437
|
+
style: b(`font-size:${L.value.style.title.fontSize}px;color:${L.value.style.title.color};font-weight:${L.value.style.title.bold ? "bold" : "normal"}`)
|
|
438
|
+
}, T(L.value.style.title.text), 5), L.value.style.title.subtitle.text ? (x(), h("div", {
|
|
439
|
+
key: 0,
|
|
440
|
+
class: "atom-subtitle",
|
|
441
|
+
style: b(`font-size:${L.value.style.title.subtitle.fontSize}px;color:${L.value.style.title.subtitle.color};font-weight:${L.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
442
|
+
}, T(L.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
|
|
443
|
+
g("div", Ce, [(x(), h("svg", {
|
|
444
|
+
ref_key: "svgRef",
|
|
445
|
+
ref: B,
|
|
446
|
+
xmlns: E(ie),
|
|
447
|
+
width: "100%",
|
|
448
|
+
viewBox: `0 0 ${G.value.width} ${G.value.height}`,
|
|
449
|
+
"aria-describedby": `chart-instructions-${k.value}`,
|
|
450
|
+
tabindex: "0",
|
|
451
|
+
onFocus: mt,
|
|
452
|
+
onBlur: ht,
|
|
453
|
+
onKeydown: gt
|
|
454
|
+
}, [
|
|
455
|
+
he(E(Ge)),
|
|
456
|
+
g("defs", null, [(x(!0), h(f, null, C(X.value, (e, t) => (x(), h("linearGradient", {
|
|
457
|
+
key: `stack_gradient_${t}`,
|
|
458
|
+
gradientTransform: "rotate(90)",
|
|
459
|
+
id: `stack_gradient_${t}_${k.value}`
|
|
460
|
+
}, [
|
|
461
|
+
g("stop", {
|
|
462
|
+
offset: "0%",
|
|
463
|
+
"stop-color": e.color
|
|
464
|
+
}, null, 8, Ee),
|
|
465
|
+
g("stop", {
|
|
466
|
+
offset: "50%",
|
|
467
|
+
"stop-color": E(i)(E(a)(e.color, .05), 100 - L.value.style.bar.gradient.intensity)
|
|
468
|
+
}, null, 8, De),
|
|
469
|
+
g("stop", {
|
|
470
|
+
offset: "100%",
|
|
471
|
+
"stop-color": e.color
|
|
472
|
+
}, null, 8, Oe)
|
|
473
|
+
], 8, Te))), 128)), g("clipPath", ke, [g("rect", {
|
|
474
|
+
x: "0.005",
|
|
475
|
+
y: "-2",
|
|
476
|
+
width: "0.99",
|
|
477
|
+
height: "5",
|
|
478
|
+
rx: "3",
|
|
479
|
+
ry: "3",
|
|
480
|
+
fill: L.value.style.backgroundColor
|
|
481
|
+
}, null, 8, Ae)])]),
|
|
482
|
+
ot.value > 0 ? (x(), h("g", je, [
|
|
483
|
+
(x(!0), h(f, null, C(X.value, (e, t) => (x(), h("rect", {
|
|
484
|
+
key: `stack_underlayer_${t}`,
|
|
485
|
+
x: e.start,
|
|
486
|
+
y: 0,
|
|
487
|
+
width: e.width,
|
|
488
|
+
height: G.value.height,
|
|
489
|
+
fill: L.value.style.bar.gradient.underlayerColor,
|
|
490
|
+
class: v({ animated: !W.value && !E(R) }),
|
|
491
|
+
style: b({ opacity: I.value !== null && L.value.style.tooltip.show ? I.value === t ? 1 : .5 : 1 })
|
|
492
|
+
}, null, 14, Me))), 128)),
|
|
493
|
+
(x(!0), h(f, null, C(X.value, (e, t) => (x(), h("rect", {
|
|
494
|
+
key: `stack_${t}`,
|
|
495
|
+
x: e.start,
|
|
496
|
+
y: 0,
|
|
497
|
+
width: e.width,
|
|
498
|
+
height: G.value.height,
|
|
499
|
+
fill: L.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${k.value})` : e.color,
|
|
500
|
+
stroke: L.value.style.backgroundColor,
|
|
501
|
+
"stroke-linecap": "round",
|
|
502
|
+
class: v({ animated: !W.value && !E(R) }),
|
|
503
|
+
style: b({ opacity: I.value !== null && L.value.style.tooltip.show ? I.value === t ? 1 : .5 : 1 })
|
|
504
|
+
}, null, 14, Ne))), 128)),
|
|
505
|
+
(x(!0), h(f, null, C(X.value, (e, t) => (x(), h("rect", {
|
|
506
|
+
key: `stack_trap_${t}`,
|
|
507
|
+
x: e.start,
|
|
508
|
+
y: 0,
|
|
509
|
+
width: e.width,
|
|
510
|
+
height: G.value.height,
|
|
511
|
+
fill: "transparent",
|
|
512
|
+
stroke: "none",
|
|
513
|
+
class: v({ animated: !W.value && !E(R) }),
|
|
514
|
+
onClick: () => Q(e, t),
|
|
515
|
+
onMouseenter: () => ft({
|
|
516
|
+
datapoint: e,
|
|
517
|
+
seriesIndex: t
|
|
518
|
+
}),
|
|
519
|
+
onMouseleave: (n) => dt({
|
|
520
|
+
datapoint: e,
|
|
521
|
+
seriesIndex: t
|
|
522
|
+
})
|
|
523
|
+
}, null, 42, Pe))), 128))
|
|
524
|
+
])) : (x(), h("rect", {
|
|
525
|
+
key: 1,
|
|
526
|
+
x: 2,
|
|
527
|
+
y: 1,
|
|
528
|
+
width: G.value.width - 4,
|
|
529
|
+
height: G.value.height - 2,
|
|
530
|
+
stroke: "#CCCCCC",
|
|
531
|
+
"stroke-width": "2",
|
|
532
|
+
fill: "transparent",
|
|
533
|
+
rx: (G.value.height - 4) / 2
|
|
534
|
+
}, null, 8, Fe))
|
|
535
|
+
], 40, we)), e.$slots.hint ? (x(), h("div", Ie, [w(e.$slots, "hint", y(_({
|
|
536
|
+
hint: L.value.a11y.translations.keyboardNavigation,
|
|
537
|
+
isVisible: $e.value
|
|
538
|
+
})), void 0, !0)])) : m("", !0)]),
|
|
539
|
+
L.value.style.legend.show ? (x(), h("div", {
|
|
540
|
+
key: 2,
|
|
541
|
+
style: b(`background:transparent;margin:0 auto;margin:${L.value.style.legend.margin};justify-content:${L.value.style.legend.textAlign === "left" ? "flex-start" : L.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
542
|
+
class: "vue-ui-sparkstackbar-legend",
|
|
543
|
+
"aria-label": "legend",
|
|
544
|
+
role: "toolbar"
|
|
545
|
+
}, [L.value.style.legend.selectAllToggle.show && q.value.length > 2 && !E(R) ? (x(), me(ue, {
|
|
546
|
+
key: 0,
|
|
547
|
+
backgroundColor: L.value.style.legend.selectAllToggle.backgroundColor,
|
|
548
|
+
color: L.value.style.legend.selectAllToggle.color,
|
|
549
|
+
fontSize: L.value.style.legend.fontSize,
|
|
550
|
+
checked: K.value.length > 0,
|
|
551
|
+
isCursorPointer: tt.value,
|
|
552
|
+
onToggle: st
|
|
553
|
+
}, null, 8, [
|
|
554
|
+
"backgroundColor",
|
|
555
|
+
"color",
|
|
556
|
+
"fontSize",
|
|
557
|
+
"checked",
|
|
558
|
+
"isCursorPointer"
|
|
559
|
+
])) : m("", !0), (x(!0), h(f, null, C(q.value, (e, t) => (x(), h("div", {
|
|
560
|
+
role: "button",
|
|
561
|
+
tabindex: "0",
|
|
562
|
+
"aria-pressed": K.value.includes(t),
|
|
563
|
+
"aria-label": `${e.name}, ${K.value.includes(t) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
564
|
+
style: b(`font-size:${L.value.style.legend.fontSize}px;cursor:${tt.value ? "pointer" : "default"}`),
|
|
565
|
+
class: v({
|
|
566
|
+
"vue-ui-sparkstackbar-legend-item": !0,
|
|
567
|
+
"vue-ui-sparkstackbar-legend-item-unselected": K.value.includes(t)
|
|
568
|
+
}),
|
|
569
|
+
onClick: (n) => {
|
|
570
|
+
Y(t), Q(e, t, !0);
|
|
571
|
+
},
|
|
572
|
+
onFocus: (t) => _t(e),
|
|
573
|
+
onBlur: vt,
|
|
574
|
+
onKeydown: (n) => yt(n, e, t)
|
|
575
|
+
}, [g("div", Re, [(x(), h("svg", {
|
|
576
|
+
height: `${L.value.style.legend.fontSize}px`,
|
|
577
|
+
width: `${L.value.style.legend.fontSize}px`,
|
|
578
|
+
viewBox: "0 0 10 10"
|
|
579
|
+
}, [g("defs", null, [g("radialGradient", { id: `legend_grad_${t}-${k.value}` }, [g("stop", {
|
|
580
|
+
offset: "0%",
|
|
581
|
+
"stop-color": E(R) ? "#FFFFFF" : E(i)(E(a)(e.color, .05), 100 - L.value.style.bar.gradient.intensity)
|
|
582
|
+
}, null, 8, Ve), g("stop", {
|
|
583
|
+
offset: "100%",
|
|
584
|
+
"stop-color": e.color
|
|
585
|
+
}, null, 8, He)], 8, Be)]), g("circle", {
|
|
586
|
+
cx: 5,
|
|
587
|
+
cy: 5,
|
|
588
|
+
r: 5,
|
|
589
|
+
fill: L.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${k.value})` : e.color
|
|
590
|
+
}, null, 8, Ue)], 8, ze)), E(R) ? m("", !0) : (x(), h(f, { key: 0 }, [g("span", { style: b(`color:${L.value.style.legend.name.color}; font-weight:${L.value.style.legend.name.bold ? "bold" : "normal"}`) }, T(e.name), 5), W.value ? m("", !0) : (x(), h(f, { key: 0 }, [L.value.style.legend.percentage.show ? (x(), h("span", {
|
|
591
|
+
key: 0,
|
|
592
|
+
style: b(`font-weight:${L.value.style.legend.percentage.bold ? "bold" : "normal"};color:${L.value.style.legend.percentage.color}`)
|
|
593
|
+
}, T(K.value.includes(t) ? " - " : e.proportionLabel), 5)) : m("", !0), L.value.style.legend.value.show ? (x(), h("span", {
|
|
594
|
+
key: 1,
|
|
595
|
+
style: b(`font-weight:${L.value.style.legend.value.bold ? "bold" : "normal"};color:${L.value.style.legend.value.color}`)
|
|
596
|
+
}, " (" + T(E(ne)(L.value.style.legend.value.formatter, e.value, E(u)({
|
|
597
|
+
p: L.value.style.legend.value.prefix,
|
|
598
|
+
v: e.value,
|
|
599
|
+
s: L.value.style.legend.value.suffix,
|
|
600
|
+
r: L.value.style.legend.value.rounding
|
|
601
|
+
}), {
|
|
602
|
+
datapoint: e,
|
|
603
|
+
seriesIndex: t
|
|
604
|
+
})) + ") ", 5)) : m("", !0)], 64))], 64))])], 46, Le))), 256))], 4)) : m("", !0),
|
|
605
|
+
he(E(Ke), {
|
|
606
|
+
teleportTo: L.value.style.tooltip.teleportTo,
|
|
607
|
+
show: A.value && L.value.style.tooltip.show,
|
|
608
|
+
parent: Ze.value,
|
|
609
|
+
backgroundColor: L.value.style.tooltip.backgroundColor,
|
|
610
|
+
color: L.value.style.tooltip.color,
|
|
611
|
+
fontSize: L.value.style.tooltip.fontSize,
|
|
612
|
+
borderRadius: L.value.style.tooltip.borderRadius,
|
|
613
|
+
borderColor: L.value.style.tooltip.borderColor,
|
|
614
|
+
borderWidth: L.value.style.tooltip.borderWidth,
|
|
615
|
+
backgroundOpacity: L.value.style.tooltip.backgroundOpacity,
|
|
616
|
+
position: L.value.style.tooltip.position,
|
|
617
|
+
content: j.value,
|
|
618
|
+
isCustom: N.value,
|
|
619
|
+
offsetX: L.value.style.tooltip.offsetX,
|
|
620
|
+
offsetY: -124 + L.value.style.tooltip.offsetY,
|
|
621
|
+
blockShiftY: !0,
|
|
622
|
+
smooth: L.value.style.tooltip.smooth,
|
|
623
|
+
backdropFilter: L.value.style.tooltip.backdropFilter,
|
|
624
|
+
smoothForce: L.value.style.tooltip.smoothForce,
|
|
625
|
+
smoothSnapThreshold: L.value.style.tooltip.smoothSnapThreshold,
|
|
626
|
+
isA11yMode: F.value === "keyboard",
|
|
627
|
+
a11yPosition: Qe.value
|
|
628
|
+
}, {
|
|
629
|
+
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...M.value })), void 0, !0)]),
|
|
630
|
+
tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...M.value })), void 0, !0)]),
|
|
631
|
+
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...M.value })), void 0, !0)]),
|
|
632
|
+
_: 3
|
|
633
|
+
}, 8, [
|
|
634
|
+
"teleportTo",
|
|
635
|
+
"show",
|
|
636
|
+
"parent",
|
|
637
|
+
"backgroundColor",
|
|
638
|
+
"color",
|
|
639
|
+
"fontSize",
|
|
640
|
+
"borderRadius",
|
|
641
|
+
"borderColor",
|
|
642
|
+
"borderWidth",
|
|
643
|
+
"backgroundOpacity",
|
|
644
|
+
"position",
|
|
645
|
+
"content",
|
|
646
|
+
"isCustom",
|
|
647
|
+
"offsetX",
|
|
648
|
+
"offsetY",
|
|
649
|
+
"smooth",
|
|
650
|
+
"backdropFilter",
|
|
651
|
+
"smoothForce",
|
|
652
|
+
"smoothSnapThreshold",
|
|
653
|
+
"isA11yMode",
|
|
654
|
+
"a11yPosition"
|
|
655
|
+
]),
|
|
656
|
+
e.$slots.source ? (x(), h("div", We, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
657
|
+
w(e.$slots, "skeleton", {}, () => [E(R) ? (x(), me(se, { key: 0 })) : m("", !0)], !0)
|
|
658
|
+
], 4));
|
|
659
|
+
}
|
|
660
|
+
}, [["__scopeId", "data-v-706a37e5"]]);
|
|
661
|
+
//#endregion
|
|
662
|
+
export { xe as n, Ge as t };
|