vue-data-ui 3.22.9 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
- 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/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { At as t, Bt as n, C as r, Gt as i, K as a, Nt as o, Y as s, bt as c, et as ee, ft as te, i as ne, qt as re, t as ie, x as l, zt as ae } from "./lib-CnHx5WfV.js";
|
|
3
|
+
import { t as oe } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as u } from "./useNestedProp-D8NuRneO.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-BrQ2OlzI.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 ge, defineAsyncComponent as _e, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onMounted as ve, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, toRefs as ye, unref as E, useSlots as be, watch as xe, withCtx as D } from "vue";
|
|
14
|
+
//#region src/components/vue-ui-sparkstackbar.vue
|
|
15
|
+
var Se = /* @__PURE__ */ e({ default: () => O }), Ce = ["id"], we = { style: { position: "relative" } }, Te = [
|
|
16
|
+
"xmlns",
|
|
17
|
+
"viewBox",
|
|
18
|
+
"aria-describedby"
|
|
19
|
+
], Ee = {
|
|
20
|
+
id: "stackPill",
|
|
21
|
+
clipPathUnits: "objectBoundingBox"
|
|
22
|
+
}, De = ["fill"], Oe = {
|
|
23
|
+
key: 0,
|
|
24
|
+
"clip-path": "url(#stackPill)"
|
|
25
|
+
}, ke = [
|
|
26
|
+
"x",
|
|
27
|
+
"width",
|
|
28
|
+
"height",
|
|
29
|
+
"fill"
|
|
30
|
+
], Ae = [
|
|
31
|
+
"x",
|
|
32
|
+
"width",
|
|
33
|
+
"height",
|
|
34
|
+
"fill",
|
|
35
|
+
"stroke"
|
|
36
|
+
], je = [
|
|
37
|
+
"x",
|
|
38
|
+
"width",
|
|
39
|
+
"height",
|
|
40
|
+
"onClick",
|
|
41
|
+
"onMouseenter",
|
|
42
|
+
"onMouseleave"
|
|
43
|
+
], Me = [
|
|
44
|
+
"width",
|
|
45
|
+
"height",
|
|
46
|
+
"rx"
|
|
47
|
+
], Ne = {
|
|
48
|
+
key: 0,
|
|
49
|
+
style: {
|
|
50
|
+
position: "absolute",
|
|
51
|
+
top: "100%",
|
|
52
|
+
left: "0",
|
|
53
|
+
width: "100%"
|
|
54
|
+
},
|
|
55
|
+
"data-dom-to-png-ignore": "",
|
|
56
|
+
"aria-hidden": "true"
|
|
57
|
+
}, Pe = [
|
|
58
|
+
"aria-pressed",
|
|
59
|
+
"aria-label",
|
|
60
|
+
"onClick",
|
|
61
|
+
"onFocus",
|
|
62
|
+
"onKeydown"
|
|
63
|
+
], Fe = { style: {
|
|
64
|
+
display: "flex",
|
|
65
|
+
"flex-direction": "row",
|
|
66
|
+
"align-items": "center",
|
|
67
|
+
gap: "4px",
|
|
68
|
+
"justify-content": "center"
|
|
69
|
+
} }, Ie = ["height", "width"], Le = ["fill"], Re = {
|
|
70
|
+
key: 3,
|
|
71
|
+
ref: "source",
|
|
72
|
+
dir: "auto"
|
|
73
|
+
}, O = /*#__PURE__*/ ue({
|
|
74
|
+
__name: "vue-ui-sparkstackbar",
|
|
75
|
+
props: {
|
|
76
|
+
config: {
|
|
77
|
+
type: Object,
|
|
78
|
+
default() {
|
|
79
|
+
return {};
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
dataset: {
|
|
83
|
+
type: Array,
|
|
84
|
+
default() {
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
emits: ["selectDatapoint", "selectLegend"],
|
|
90
|
+
setup(e, { expose: ue, emit: Se }) {
|
|
91
|
+
let O = _e(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), ze = _e(() => import("./Tooltip-CDbLl3TD.js")), { vue_ui_sparkstackbar: Be } = oe(), { isThemeValid: Ve, warnInvalidTheme: He } = le(), k = e, Ue = be();
|
|
92
|
+
ve(() => {
|
|
93
|
+
Ue["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
94
|
+
});
|
|
95
|
+
let We = S(null), A = S(a()), j = S(!1), M = S(""), N = S(null), P = S(!1), F = S(null), Ge = S({
|
|
96
|
+
x: 0,
|
|
97
|
+
y: 0
|
|
98
|
+
}), I = S("pointer"), L = S(!1), R = S(null), Ke = S([]), z = S(Ye()), qe = f(() => z.value.useCursorPointer), Je = f(() => re({
|
|
99
|
+
defaultConfig: { style: {
|
|
100
|
+
backgroundColor: "#99999930",
|
|
101
|
+
animation: { show: !1 },
|
|
102
|
+
bar: { gradient: { inderlayerColor: "#6A6A6A" } },
|
|
103
|
+
title: { backgroundColor: "transparent" }
|
|
104
|
+
} },
|
|
105
|
+
userConfig: z.value.skeletonConfig ?? {}
|
|
106
|
+
})), { loading: B, FINAL_DATASET: V } = se({
|
|
107
|
+
...ye(k),
|
|
108
|
+
FINAL_CONFIG: z,
|
|
109
|
+
prepareConfig: Ye,
|
|
110
|
+
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
111
|
+
{
|
|
112
|
+
name: "_",
|
|
113
|
+
value: 8,
|
|
114
|
+
color: "#808080"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "_",
|
|
118
|
+
value: 5,
|
|
119
|
+
color: "#ADADAD"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: "_",
|
|
123
|
+
value: 3,
|
|
124
|
+
color: "#DBDBDB"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
skeletonConfig: re({
|
|
128
|
+
defaultConfig: z.value,
|
|
129
|
+
userConfig: Je.value
|
|
130
|
+
})
|
|
131
|
+
}), { svgRef: H } = me({ config: z.value.style.title });
|
|
132
|
+
function Ye() {
|
|
133
|
+
let e = u({
|
|
134
|
+
userConfig: k.config,
|
|
135
|
+
defaultConfig: Be
|
|
136
|
+
}), t = e.theme;
|
|
137
|
+
if (!t) return e;
|
|
138
|
+
if (!Ve.value(e)) return He(e), e;
|
|
139
|
+
let n = u({
|
|
140
|
+
userConfig: he[t] || k.config,
|
|
141
|
+
defaultConfig: e
|
|
142
|
+
}), r = u({
|
|
143
|
+
userConfig: k.config,
|
|
144
|
+
defaultConfig: n
|
|
145
|
+
});
|
|
146
|
+
return {
|
|
147
|
+
...r,
|
|
148
|
+
customPalette: r.customPalette.length ? r.customPalette : i[t] || o
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
xe(() => k.config, (e) => {
|
|
152
|
+
z.value = Ye(), Qe();
|
|
153
|
+
}, { deep: !0 }), xe(() => V.value, (e) => {
|
|
154
|
+
W.value = V.value.map((e, t) => ({
|
|
155
|
+
...e,
|
|
156
|
+
color: e.color ? l(e.color) : U.value[t] || o[t] || o[t % o.length]
|
|
157
|
+
})), Xe();
|
|
158
|
+
}, { deep: !0 });
|
|
159
|
+
let U = f(() => r(z.value.customPalette)), W = S(V.value.map((e, t) => ({
|
|
160
|
+
...e,
|
|
161
|
+
value: z.value.style.animation.show ? 0 : e.value || 0,
|
|
162
|
+
color: e.color ? l(e.color) : U.value[t] || o[t] || o[t % o.length]
|
|
163
|
+
}))), G = S(!0);
|
|
164
|
+
function Xe() {
|
|
165
|
+
if (!z.value.style.animation.show) {
|
|
166
|
+
G.value = !1;
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
let e = z.value.style.animation.animationFrames, t = V.value.map((e) => e.value || 0), n = t.map((t) => t / e), r = t.reduce((e, t) => e + t, 0), i = 0;
|
|
170
|
+
G.value = !0, W.value = V.value.map((e, t) => ({
|
|
171
|
+
...e,
|
|
172
|
+
value: 0,
|
|
173
|
+
color: e.color ? l(e.color) : U.value[t] || o[t] || o[t % o.length]
|
|
174
|
+
}));
|
|
175
|
+
function s() {
|
|
176
|
+
i += r / e, i < r ? (W.value = W.value.map((e, r) => ({
|
|
177
|
+
...e,
|
|
178
|
+
value: Math.min(e.value + n[r], t[r]),
|
|
179
|
+
color: e.color ? l(e.color) : U.value[r] || o[r] || o[r % o.length]
|
|
180
|
+
})), requestAnimationFrame(s)) : (G.value = !1, W.value = V.value.map((e, n) => ({
|
|
181
|
+
...e,
|
|
182
|
+
value: t[n],
|
|
183
|
+
color: e.color ? l(e.color) : U.value[n] || o[n] || o[n % o.length],
|
|
184
|
+
id: a()
|
|
185
|
+
})));
|
|
186
|
+
}
|
|
187
|
+
s();
|
|
188
|
+
}
|
|
189
|
+
ve(() => {
|
|
190
|
+
Qe();
|
|
191
|
+
});
|
|
192
|
+
let Ze = f(() => z.value.debug);
|
|
193
|
+
function Qe() {
|
|
194
|
+
t(k.dataset) ? ee({
|
|
195
|
+
componentName: "VueUiSparkStackbar",
|
|
196
|
+
type: "dataset",
|
|
197
|
+
debug: Ze.value
|
|
198
|
+
}) : k.dataset.forEach((e, t) => {
|
|
199
|
+
te({
|
|
200
|
+
datasetObject: e,
|
|
201
|
+
requiredAttributes: ["name", "value"]
|
|
202
|
+
}).forEach((e) => {
|
|
203
|
+
ee({
|
|
204
|
+
componentName: "VueUiSparkStackbar",
|
|
205
|
+
type: "datasetSerieAttribute",
|
|
206
|
+
property: e,
|
|
207
|
+
index: t,
|
|
208
|
+
debug: Ze.value
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
}), Xe();
|
|
212
|
+
}
|
|
213
|
+
let K = S({
|
|
214
|
+
width: 500,
|
|
215
|
+
height: 16
|
|
216
|
+
}), q = S([]), $e = f(() => V.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, r = n / $e.value, i = isNaN(r) ? 0 : r, a = i * K.value.width;
|
|
218
|
+
return {
|
|
219
|
+
...e,
|
|
220
|
+
color: l(V.value[t]?.color ? V.value[t]?.color : U.value[t] || o[t] || o[t % o.length]),
|
|
221
|
+
value: n,
|
|
222
|
+
proportion: i,
|
|
223
|
+
width: a,
|
|
224
|
+
seriesIndex: t,
|
|
225
|
+
proportionLabel: s({
|
|
226
|
+
v: i * 100,
|
|
227
|
+
s: "%",
|
|
228
|
+
r: z.value.style.legend.percentage.rounding
|
|
229
|
+
})
|
|
230
|
+
};
|
|
231
|
+
})), Y = f(() => J.value.filter((e, t) => !q.value.includes(t)));
|
|
232
|
+
function et() {
|
|
233
|
+
q.value.length ? q.value = [] : J.value.forEach((e, t) => {
|
|
234
|
+
q.value.push(t);
|
|
235
|
+
}), it("selectLegend", Y.value);
|
|
236
|
+
}
|
|
237
|
+
function X(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);
|
|
239
|
+
}
|
|
240
|
+
function tt(e) {
|
|
241
|
+
return J.value.length ? J.value.find((t) => t.name === e) || (z.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null) : (z.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null);
|
|
242
|
+
}
|
|
243
|
+
function nt(e) {
|
|
244
|
+
let t = tt(e);
|
|
245
|
+
t !== null && q.value.includes(t.id) && X(t.seriesIndex);
|
|
246
|
+
}
|
|
247
|
+
function rt(e) {
|
|
248
|
+
let t = tt(e);
|
|
249
|
+
t !== null && (q.value.includes(t.id) || X(t.seriesIndex));
|
|
250
|
+
}
|
|
251
|
+
let Z = f(() => {
|
|
252
|
+
let e = 0, t = [];
|
|
253
|
+
for (let n = 0; n < Y.value.length; n += 1) t.push({
|
|
254
|
+
...Y.value[n],
|
|
255
|
+
start: e
|
|
256
|
+
}), e += Y.value[n].width;
|
|
257
|
+
return t;
|
|
258
|
+
}), it = Se;
|
|
259
|
+
function Q(e, t, n = !1) {
|
|
260
|
+
it("selectDatapoint", {
|
|
261
|
+
datapoint: e,
|
|
262
|
+
index: t
|
|
263
|
+
}), z.value.events.datapointClick && !n && z.value.events.datapointClick({
|
|
264
|
+
datapoint: e,
|
|
265
|
+
seriesIndex: e.seriesIndex
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
function at({ datapoint: e, seriesIndex: t }) {
|
|
269
|
+
j.value = !1, R.value = null, F.value = null, I.value = "pointer", z.value.events.datapointLeave && z.value.events.datapointLeave({
|
|
270
|
+
datapoint: e,
|
|
271
|
+
seriesIndex: e.seriesIndex
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
function ot({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
275
|
+
if (P.value = !1, z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
276
|
+
datapoint: e,
|
|
277
|
+
seriesIndex: e.seriesIndex
|
|
278
|
+
}), !z.value.style.tooltip.show) return;
|
|
279
|
+
I.value = n, N.value = {
|
|
280
|
+
datapoint: e,
|
|
281
|
+
seriesIndex: t,
|
|
282
|
+
config: z.value,
|
|
283
|
+
series: J.value
|
|
284
|
+
}, j.value = !0, R.value = t;
|
|
285
|
+
let r = z.value.style.tooltip.customFormat;
|
|
286
|
+
if (c(r)) try {
|
|
287
|
+
let t = r({
|
|
288
|
+
seriesIndex: e.seriesIndex,
|
|
289
|
+
datapoint: e,
|
|
290
|
+
series: J.value,
|
|
291
|
+
config: z.value
|
|
292
|
+
});
|
|
293
|
+
typeof t == "string" && (M.value = t, P.value = !0);
|
|
294
|
+
} catch {
|
|
295
|
+
console.warn("Custom format cannot be applied."), P.value = !1;
|
|
296
|
+
}
|
|
297
|
+
if (!P.value) {
|
|
298
|
+
let n = "";
|
|
299
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.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(z.value.style.legend.value.formatter, e.value, s({
|
|
300
|
+
p: z.value.style.legend.value.prefix,
|
|
301
|
+
v: e.value,
|
|
302
|
+
s: z.value.style.legend.value.suffix,
|
|
303
|
+
r: z.value.style.legend.value.rounding
|
|
304
|
+
}), {
|
|
305
|
+
datapoint: e,
|
|
306
|
+
seriesIndex: t
|
|
307
|
+
})})</span>`, M.value = `<div>${n}</div>`;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
function $(e) {
|
|
311
|
+
let t = Ke.value[e];
|
|
312
|
+
t && typeof t.focus == "function" && t.focus();
|
|
313
|
+
}
|
|
314
|
+
function st(e) {
|
|
315
|
+
if (!Number.isFinite(e) || !H.value) return;
|
|
316
|
+
let t = Z.value[e];
|
|
317
|
+
if (!t) return;
|
|
318
|
+
let n = H.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
|
|
319
|
+
Ge.value = {
|
|
320
|
+
x: n.left + r / K.value.width * n.width,
|
|
321
|
+
y: n.top + i / K.value.height * n.height
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
function ct() {
|
|
325
|
+
F.value = null, L.value = !0;
|
|
326
|
+
}
|
|
327
|
+
function lt() {
|
|
328
|
+
F.value = null, I.value = "pointer", j.value = !1, R.value = null, L.value = !1;
|
|
329
|
+
}
|
|
330
|
+
function ut(e) {
|
|
331
|
+
if (!H.value || document.activeElement !== H.value || !Z.value.length) return;
|
|
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";
|
|
333
|
+
if (!t && !n && !r && !i && !a && !o) return;
|
|
334
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
335
|
+
F.value = null, I.value = "pointer", j.value = !1, R.value = null;
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
if (r) {
|
|
339
|
+
if (F.value === null) return;
|
|
340
|
+
let e = Z.value[F.value];
|
|
341
|
+
if (!e) return;
|
|
342
|
+
Q(e, e.seriesIndex);
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
let s = F.value;
|
|
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));
|
|
347
|
+
let c = Z.value[s];
|
|
348
|
+
c && (F.value = s, st(s), ot({
|
|
349
|
+
datapoint: c,
|
|
350
|
+
seriesIndex: c.seriesIndex,
|
|
351
|
+
triggerMode: "keyboard"
|
|
352
|
+
}));
|
|
353
|
+
}
|
|
354
|
+
function dt(e) {
|
|
355
|
+
j.value = !1, F.value = null, I.value = "pointer", R.value = e.seriesIndex;
|
|
356
|
+
}
|
|
357
|
+
function ft() {
|
|
358
|
+
F.value = null, I.value = "pointer", j.value = !1, R.value = null;
|
|
359
|
+
}
|
|
360
|
+
function pt(e, t, n) {
|
|
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";
|
|
362
|
+
if (!(!r && !i && !a && !o && !s && !c)) {
|
|
363
|
+
if (e.preventDefault(), e.stopPropagation(), c) {
|
|
364
|
+
ft();
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
if (r) {
|
|
368
|
+
X(n), Q(t, n, !0);
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
if (o) {
|
|
372
|
+
$(0);
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
if (s) {
|
|
376
|
+
$(J.value.length - 1);
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
if (i) {
|
|
380
|
+
$(n <= 0 ? J.value.length - 1 : n - 1);
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
a && $(n >= J.value.length - 1 ? 0 : n + 1);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
let mt = f(() => ({
|
|
387
|
+
headers: [
|
|
388
|
+
z.value.a11y.translations.series,
|
|
389
|
+
z.value.a11y.translations.percentage,
|
|
390
|
+
z.value.a11y.translations.value
|
|
391
|
+
],
|
|
392
|
+
rows: J.value.map((e, t) => [
|
|
393
|
+
e.name,
|
|
394
|
+
q.value.includes(t) ? " - " : e.proportionLabel,
|
|
395
|
+
ne(z.value.style.legend.value.formatter, e.value, s({
|
|
396
|
+
p: z.value.style.legend.value.prefix,
|
|
397
|
+
v: e.value,
|
|
398
|
+
s: z.value.style.legend.value.suffix,
|
|
399
|
+
r: z.value.style.legend.value.rounding
|
|
400
|
+
}), {
|
|
401
|
+
datapoint: e,
|
|
402
|
+
seriesIndex: t
|
|
403
|
+
})
|
|
404
|
+
])
|
|
405
|
+
}));
|
|
406
|
+
return ue({
|
|
407
|
+
hideSeries: rt,
|
|
408
|
+
showSeries: nt
|
|
409
|
+
}), (e, t) => (x(), h("div", {
|
|
410
|
+
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
411
|
+
ref_key: "sparkstackbarChart",
|
|
412
|
+
ref: We,
|
|
413
|
+
style: b(`width:100%; background:${z.value.style.backgroundColor}`)
|
|
414
|
+
}, [
|
|
415
|
+
g("div", {
|
|
416
|
+
id: `chart-instructions-${A.value}`,
|
|
417
|
+
class: "sr-only"
|
|
418
|
+
}, [g("p", null, T(z.value.a11y.translations.keyboardNavigation), 1)], 8, Ce),
|
|
419
|
+
mt.value?.rows?.length ? (x(), p(pe, {
|
|
420
|
+
key: 0,
|
|
421
|
+
uid: A.value,
|
|
422
|
+
head: mt.value.headers,
|
|
423
|
+
body: mt.value.rows,
|
|
424
|
+
notice: z.value.a11y.translations.tableAvailable,
|
|
425
|
+
caption: z.value.a11y.translations.tableCaption
|
|
426
|
+
}, null, 8, [
|
|
427
|
+
"uid",
|
|
428
|
+
"head",
|
|
429
|
+
"body",
|
|
430
|
+
"notice",
|
|
431
|
+
"caption"
|
|
432
|
+
])) : m("", !0),
|
|
433
|
+
z.value.style.title.text ? (x(), h("div", {
|
|
434
|
+
key: 1,
|
|
435
|
+
style: b(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${z.value.style.title.margin};padding: 0 6px;text-align:${z.value.style.title.textAlign}`)
|
|
436
|
+
}, [g("div", {
|
|
437
|
+
class: "atom-title",
|
|
438
|
+
style: b(`font-size:${z.value.style.title.fontSize}px;color:${z.value.style.title.color};font-weight:${z.value.style.title.bold ? "bold" : "normal"}`)
|
|
439
|
+
}, T(z.value.style.title.text), 5), z.value.style.title.subtitle.text ? (x(), h("div", {
|
|
440
|
+
key: 0,
|
|
441
|
+
class: "atom-subtitle",
|
|
442
|
+
style: b(`font-size:${z.value.style.title.subtitle.fontSize}px;color:${z.value.style.title.subtitle.color};font-weight:${z.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
443
|
+
}, T(z.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
|
|
444
|
+
g("div", we, [(x(), h("svg", {
|
|
445
|
+
ref_key: "svgRef",
|
|
446
|
+
ref: H,
|
|
447
|
+
xmlns: E(ie),
|
|
448
|
+
width: "100%",
|
|
449
|
+
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
450
|
+
"aria-describedby": `chart-instructions-${A.value}`,
|
|
451
|
+
tabindex: "0",
|
|
452
|
+
onFocus: ct,
|
|
453
|
+
onBlur: lt,
|
|
454
|
+
onKeydown: ut
|
|
455
|
+
}, [
|
|
456
|
+
ge(E(O)),
|
|
457
|
+
g("defs", null, [(x(!0), h(d, null, C(Z.value, (e, t) => (x(), p(de, {
|
|
458
|
+
t: "linear",
|
|
459
|
+
id: `stack_gradient_${t}_${A.value}`,
|
|
460
|
+
key: `stack_gradient_${t}`,
|
|
461
|
+
gradientTransform: "rotate(90)",
|
|
462
|
+
stops: [
|
|
463
|
+
[
|
|
464
|
+
"0%",
|
|
465
|
+
e.color,
|
|
466
|
+
1
|
|
467
|
+
],
|
|
468
|
+
[
|
|
469
|
+
"50%",
|
|
470
|
+
E(ae)(E(n)(e.color, .05), 100 - z.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", Ee, [g("rect", {
|
|
480
|
+
x: "0.005",
|
|
481
|
+
y: "-2",
|
|
482
|
+
width: "0.99",
|
|
483
|
+
height: "5",
|
|
484
|
+
rx: "3",
|
|
485
|
+
ry: "3",
|
|
486
|
+
fill: z.value.style.backgroundColor
|
|
487
|
+
}, null, 8, De)])]),
|
|
488
|
+
$e.value > 0 ? (x(), h("g", Oe, [
|
|
489
|
+
(x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
490
|
+
key: `stack_underlayer_${t}`,
|
|
491
|
+
x: e.start,
|
|
492
|
+
y: 0,
|
|
493
|
+
width: e.width,
|
|
494
|
+
height: K.value.height,
|
|
495
|
+
fill: z.value.style.bar.gradient.underlayerColor,
|
|
496
|
+
class: v({ animated: !G.value && !E(B) }),
|
|
497
|
+
style: b({ opacity: R.value !== null && z.value.style.tooltip.show ? R.value === t ? 1 : .5 : 1 })
|
|
498
|
+
}, null, 14, ke))), 128)),
|
|
499
|
+
(x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
500
|
+
key: `stack_${t}`,
|
|
501
|
+
x: e.start,
|
|
502
|
+
y: 0,
|
|
503
|
+
width: e.width,
|
|
504
|
+
height: K.value.height,
|
|
505
|
+
fill: z.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${A.value})` : e.color,
|
|
506
|
+
stroke: z.value.style.backgroundColor,
|
|
507
|
+
"stroke-linecap": "round",
|
|
508
|
+
class: v({ animated: !G.value && !E(B) }),
|
|
509
|
+
style: b({ opacity: R.value !== null && z.value.style.tooltip.show ? R.value === t ? 1 : .5 : 1 })
|
|
510
|
+
}, null, 14, Ae))), 128)),
|
|
511
|
+
(x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
512
|
+
key: `stack_trap_${t}`,
|
|
513
|
+
x: e.start,
|
|
514
|
+
y: 0,
|
|
515
|
+
width: e.width,
|
|
516
|
+
height: K.value.height,
|
|
517
|
+
fill: "transparent",
|
|
518
|
+
stroke: "none",
|
|
519
|
+
class: v({ animated: !G.value && !E(B) }),
|
|
520
|
+
onClick: () => Q(e, t),
|
|
521
|
+
onMouseenter: () => ot({
|
|
522
|
+
datapoint: e,
|
|
523
|
+
seriesIndex: t
|
|
524
|
+
}),
|
|
525
|
+
onMouseleave: (n) => at({
|
|
526
|
+
datapoint: e,
|
|
527
|
+
seriesIndex: t
|
|
528
|
+
})
|
|
529
|
+
}, null, 42, je))), 128))
|
|
530
|
+
])) : (x(), h("rect", {
|
|
531
|
+
key: 1,
|
|
532
|
+
x: 2,
|
|
533
|
+
y: 1,
|
|
534
|
+
width: K.value.width - 4,
|
|
535
|
+
height: K.value.height - 2,
|
|
536
|
+
stroke: "#CCCCCC",
|
|
537
|
+
"stroke-width": "2",
|
|
538
|
+
fill: "transparent",
|
|
539
|
+
rx: (K.value.height - 4) / 2
|
|
540
|
+
}, null, 8, Me))
|
|
541
|
+
], 40, Te)), e.$slots.hint ? (x(), h("div", Ne, [w(e.$slots, "hint", y(_({
|
|
542
|
+
hint: z.value.a11y.translations.keyboardNavigation,
|
|
543
|
+
isVisible: L.value
|
|
544
|
+
})), void 0, !0)])) : m("", !0)]),
|
|
545
|
+
z.value.style.legend.show ? (x(), h("div", {
|
|
546
|
+
key: 2,
|
|
547
|
+
style: b(`background:transparent;margin:0 auto;margin:${z.value.style.legend.margin};justify-content:${z.value.style.legend.textAlign === "left" ? "flex-start" : z.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
548
|
+
class: "vue-ui-sparkstackbar-legend",
|
|
549
|
+
"aria-label": "legend",
|
|
550
|
+
role: "toolbar"
|
|
551
|
+
}, [z.value.style.legend.selectAllToggle.show && J.value.length > 2 && !E(B) ? (x(), p(fe, {
|
|
552
|
+
key: 0,
|
|
553
|
+
backgroundColor: z.value.style.legend.selectAllToggle.backgroundColor,
|
|
554
|
+
color: z.value.style.legend.selectAllToggle.color,
|
|
555
|
+
fontSize: z.value.style.legend.fontSize,
|
|
556
|
+
checked: q.value.length > 0,
|
|
557
|
+
isCursorPointer: qe.value,
|
|
558
|
+
onToggle: et
|
|
559
|
+
}, null, 8, [
|
|
560
|
+
"backgroundColor",
|
|
561
|
+
"color",
|
|
562
|
+
"fontSize",
|
|
563
|
+
"checked",
|
|
564
|
+
"isCursorPointer"
|
|
565
|
+
])) : m("", !0), (x(!0), h(d, null, C(J.value, (e, t) => (x(), h("div", {
|
|
566
|
+
role: "button",
|
|
567
|
+
tabindex: "0",
|
|
568
|
+
"aria-pressed": q.value.includes(t),
|
|
569
|
+
"aria-label": `${e.name}, ${q.value.includes(t) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
570
|
+
style: b(`font-size:${z.value.style.legend.fontSize}px;cursor:${qe.value ? "pointer" : "default"}`),
|
|
571
|
+
class: v({
|
|
572
|
+
"vue-ui-sparkstackbar-legend-item": !0,
|
|
573
|
+
"vue-ui-sparkstackbar-legend-item-unselected": q.value.includes(t)
|
|
574
|
+
}),
|
|
575
|
+
onClick: (n) => {
|
|
576
|
+
X(t), Q(e, t, !0);
|
|
577
|
+
},
|
|
578
|
+
onFocus: (t) => dt(e),
|
|
579
|
+
onBlur: ft,
|
|
580
|
+
onKeydown: (n) => pt(n, e, t)
|
|
581
|
+
}, [g("div", Fe, [(x(), h("svg", {
|
|
582
|
+
height: `${z.value.style.legend.fontSize}px`,
|
|
583
|
+
width: `${z.value.style.legend.fontSize}px`,
|
|
584
|
+
viewBox: "0 0 10 10"
|
|
585
|
+
}, [g("defs", null, [ge(de, {
|
|
586
|
+
t: "radial",
|
|
587
|
+
id: `legend_grad_${t}-${A.value}`,
|
|
588
|
+
stops: [[
|
|
589
|
+
"0%",
|
|
590
|
+
E(B) ? "#FFFFFF" : E(ae)(E(n)(e.color, .05), 100 - z.value.style.bar.gradient.intensity),
|
|
591
|
+
1
|
|
592
|
+
], [
|
|
593
|
+
"100%",
|
|
594
|
+
e.color,
|
|
595
|
+
1
|
|
596
|
+
]]
|
|
597
|
+
}, null, 8, ["id", "stops"])]), g("circle", {
|
|
598
|
+
cx: 5,
|
|
599
|
+
cy: 5,
|
|
600
|
+
r: 5,
|
|
601
|
+
fill: z.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${A.value})` : e.color
|
|
602
|
+
}, null, 8, Le)], 8, Ie)), E(B) ? m("", !0) : (x(), h(d, { key: 0 }, [g("span", { style: b(`color:${z.value.style.legend.name.color}; font-weight:${z.value.style.legend.name.bold ? "bold" : "normal"}`) }, T(e.name), 5), G.value ? m("", !0) : (x(), h(d, { key: 0 }, [z.value.style.legend.percentage.show ? (x(), h("span", {
|
|
603
|
+
key: 0,
|
|
604
|
+
style: b(`font-weight:${z.value.style.legend.percentage.bold ? "bold" : "normal"};color:${z.value.style.legend.percentage.color}`)
|
|
605
|
+
}, T(q.value.includes(t) ? " - " : e.proportionLabel), 5)) : m("", !0), z.value.style.legend.value.show ? (x(), h("span", {
|
|
606
|
+
key: 1,
|
|
607
|
+
style: b(`font-weight:${z.value.style.legend.value.bold ? "bold" : "normal"};color:${z.value.style.legend.value.color}`)
|
|
608
|
+
}, " (" + T(E(ne)(z.value.style.legend.value.formatter, e.value, E(s)({
|
|
609
|
+
p: z.value.style.legend.value.prefix,
|
|
610
|
+
v: e.value,
|
|
611
|
+
s: z.value.style.legend.value.suffix,
|
|
612
|
+
r: z.value.style.legend.value.rounding
|
|
613
|
+
}), {
|
|
614
|
+
datapoint: e,
|
|
615
|
+
seriesIndex: t
|
|
616
|
+
})) + ") ", 5)) : m("", !0)], 64))], 64))])], 46, Pe))), 256))], 4)) : m("", !0),
|
|
617
|
+
ge(E(ze), {
|
|
618
|
+
teleportTo: z.value.style.tooltip.teleportTo,
|
|
619
|
+
show: j.value && z.value.style.tooltip.show,
|
|
620
|
+
parent: We.value,
|
|
621
|
+
backgroundColor: z.value.style.tooltip.backgroundColor,
|
|
622
|
+
color: z.value.style.tooltip.color,
|
|
623
|
+
fontSize: z.value.style.tooltip.fontSize,
|
|
624
|
+
borderRadius: z.value.style.tooltip.borderRadius,
|
|
625
|
+
borderColor: z.value.style.tooltip.borderColor,
|
|
626
|
+
borderWidth: z.value.style.tooltip.borderWidth,
|
|
627
|
+
backgroundOpacity: z.value.style.tooltip.backgroundOpacity,
|
|
628
|
+
position: z.value.style.tooltip.position,
|
|
629
|
+
content: M.value,
|
|
630
|
+
isCustom: P.value,
|
|
631
|
+
offsetX: z.value.style.tooltip.offsetX,
|
|
632
|
+
offsetY: -124 + z.value.style.tooltip.offsetY,
|
|
633
|
+
blockShiftY: !0,
|
|
634
|
+
smooth: z.value.style.tooltip.smooth,
|
|
635
|
+
backdropFilter: z.value.style.tooltip.backdropFilter,
|
|
636
|
+
smoothForce: z.value.style.tooltip.smoothForce,
|
|
637
|
+
smoothSnapThreshold: z.value.style.tooltip.smoothSnapThreshold,
|
|
638
|
+
isA11yMode: I.value === "keyboard",
|
|
639
|
+
a11yPosition: Ge.value
|
|
640
|
+
}, {
|
|
641
|
+
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...N.value })), void 0, !0)]),
|
|
642
|
+
tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...N.value })), void 0, !0)]),
|
|
643
|
+
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...N.value })), void 0, !0)]),
|
|
644
|
+
_: 3
|
|
645
|
+
}, 8, [
|
|
646
|
+
"teleportTo",
|
|
647
|
+
"show",
|
|
648
|
+
"parent",
|
|
649
|
+
"backgroundColor",
|
|
650
|
+
"color",
|
|
651
|
+
"fontSize",
|
|
652
|
+
"borderRadius",
|
|
653
|
+
"borderColor",
|
|
654
|
+
"borderWidth",
|
|
655
|
+
"backgroundOpacity",
|
|
656
|
+
"position",
|
|
657
|
+
"content",
|
|
658
|
+
"isCustom",
|
|
659
|
+
"offsetX",
|
|
660
|
+
"offsetY",
|
|
661
|
+
"smooth",
|
|
662
|
+
"backdropFilter",
|
|
663
|
+
"smoothForce",
|
|
664
|
+
"smoothSnapThreshold",
|
|
665
|
+
"isA11yMode",
|
|
666
|
+
"a11yPosition"
|
|
667
|
+
]),
|
|
668
|
+
e.$slots.source ? (x(), h("div", Re, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
669
|
+
w(e.$slots, "skeleton", {}, () => [E(B) ? (x(), p(ce, { key: 0 })) : m("", !0)], !0)
|
|
670
|
+
], 4));
|
|
671
|
+
}
|
|
672
|
+
}, [["__scopeId", "data-v-4ea77f60"]]);
|
|
673
|
+
//#endregion
|
|
674
|
+
export { Se as n, O as t };
|