vue-data-ui 3.25.3 → 3.25.4
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-Bvx4_tSN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-BCQY4Tir.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-CVrQHhw1.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-BF-thEu0.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-BAHeLgV8.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-B0CMtFkc.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-BBpTEQY5.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-ChMsbYib.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-DmitJZi5.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DNIpZGOP.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-hRJtldYi.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-DzM1vUXR.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-BBKymE00.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-W4PWXK69.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-9hXY74AD.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-DIf1lG-_.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-C3jBTIhR.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-m0uxKoiy.js → UserOptions-f3Q0nqrj.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-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-DPcw-QzB.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-BGrCpxDo.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-IjqD_xWl.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Bgt85NUY.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-C7t_vY8w.js → lib-Dql7cqyA.js} +200 -177
- package/dist/{package-NccReU84.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-HBji623H.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-CHj9aLwI.js → render-common-zoPh9a78.js} +2 -2
- 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/{useNestedProp-BfTgFMXF.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-VVTuFI6H.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-xQI9KcZd.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-DuARUUdY.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D-ggLbES.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-MvDwnq7k.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DiH9-DLV.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-B486ChH8.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-DGESmviK.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-DQJ7RuvS.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-YXuSpTIB.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-Dju_nWZh.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-C2f1v-IC.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-pNI0se0n.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-C5Z_lpSZ.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DZXYGFJc.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-DQn-87Ak.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-CDtBLV2m.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-B0L2gQ3k.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-yF4pKrlD.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-CFz30xe0.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-ys9jjs02.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-qigx4Z5I.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-K3JKKF1b.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-0W2GpUBQ.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-CBM2b0Aq.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-C-2BQ3hi.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-VCVoA-i7.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-CFPhvIy3.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-BMucjktR.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-BhahYf50.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-77idomwS.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-CNKuNur5.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-CuT1AXHF.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-CTuSylET.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-CijnGJ6-.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-DDGKIiGT.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-Clzzx8hc.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-DILPVI14.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-CYIyrTQj.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C2HcYmPm.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-BLJ0mImj.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-1FYy_qM3.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-C11KKbIn.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-Dj06PSQK.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-1h7A5F1N.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-CVKlj7fU.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-BWz6K56E.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-D26MLo5F.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-33VL-HnF.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-BPbR_-t8.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-RFcpvswb.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-CseHQjz7.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-D_biv7Wg.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-C3UI9YIM.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-R1I0sffy.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-Cf5mJEzr.js +0 -1829
- package/dist/vue-ui-bullet-DWe51l3b.js +0 -700
- package/dist/vue-ui-carousel-table-BPNQQVsu.js +0 -467
- package/dist/vue-ui-donut-CaMaNvIF.js +0 -2413
- package/dist/vue-ui-funnel-G5nO77o5.js +0 -747
- package/dist/vue-ui-gauge-DA92q6HZ.js +0 -932
- package/dist/vue-ui-history-plot-DUoXwHLn.js +0 -1696
- package/dist/vue-ui-horizontal-bar-C51hv9PU.js +0 -1709
- package/dist/vue-ui-molecule-B1ChvZql.js +0 -929
- package/dist/vue-ui-relation-circle-DxONGvTM.js +0 -903
- package/dist/vue-ui-scatter-Cwlhv9y6.js +0 -2403
- package/dist/vue-ui-sparkstackbar-B4H_cgzW.js +0 -738
- package/dist/vue-ui-stackbar-CBOAAVtS.js +0 -2349
- package/dist/vue-ui-stackline-24PeB3yN.js +0 -2463
- package/dist/vue-ui-strip-plot-C3Q1lECl.js +0 -1738
- package/dist/vue-ui-table-DMJWplCT.js +0 -1352
- package/dist/vue-ui-waffle-DIFpyE2V.js +0 -1619
|
@@ -1,738 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Ht as t, It as n, Jt as r, Nt as i, S as a, St as o, Ut as s, X as c, Xt as ee, i as te, mt as ne, nt as re, q as ie, t as ae, w as oe } from "./lib-C7t_vY8w.js";
|
|
3
|
-
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as le } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as fe } from "./useNestedProp-BfTgFMXF.js";
|
|
7
|
-
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
-
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
-
import { t as he } from "./DefGrad-DVBqDjhO.js";
|
|
10
|
-
import { t as ge } from "./BaseLegendToggle-BF-thEu0.js";
|
|
11
|
-
import { t as _e } from "./A11yDataTable-DdRsVULz.js";
|
|
12
|
-
import { t as ve } from "./useChartAccessibility-DYqac8yF.js";
|
|
13
|
-
import { t as ye } from "./usePrefersMotion-BC-CsqR1.js";
|
|
14
|
-
import { t as be } from "./vue_ui_sparkstackbar-BOjuQnZd.js";
|
|
15
|
-
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineAsyncComponent as xe, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as Se, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, toRefs as Ce, unref as T, useSlots as we, watch as Te, withCtx as E } from "vue";
|
|
16
|
-
//#region src/components/vue-ui-sparkstackbar.vue
|
|
17
|
-
var Ee = /* @__PURE__ */ e({ default: () => D }), De = ["id"], Oe = { style: { position: "relative" } }, ke = [
|
|
18
|
-
"xmlns",
|
|
19
|
-
"viewBox",
|
|
20
|
-
"aria-describedby"
|
|
21
|
-
], Ae = ["id"], je = [
|
|
22
|
-
"width",
|
|
23
|
-
"height",
|
|
24
|
-
"rx"
|
|
25
|
-
], Me = ["clip-path"], Ne = [
|
|
26
|
-
"x",
|
|
27
|
-
"width",
|
|
28
|
-
"height",
|
|
29
|
-
"fill"
|
|
30
|
-
], Pe = [
|
|
31
|
-
"x",
|
|
32
|
-
"width",
|
|
33
|
-
"height",
|
|
34
|
-
"fill"
|
|
35
|
-
], Fe = [
|
|
36
|
-
"x",
|
|
37
|
-
"height",
|
|
38
|
-
"fill"
|
|
39
|
-
], Ie = [
|
|
40
|
-
"x",
|
|
41
|
-
"width",
|
|
42
|
-
"height",
|
|
43
|
-
"onClick",
|
|
44
|
-
"onMouseenter",
|
|
45
|
-
"onMouseleave"
|
|
46
|
-
], Le = [
|
|
47
|
-
"width",
|
|
48
|
-
"height",
|
|
49
|
-
"rx",
|
|
50
|
-
"stroke"
|
|
51
|
-
], Re = [
|
|
52
|
-
"width",
|
|
53
|
-
"height",
|
|
54
|
-
"rx"
|
|
55
|
-
], ze = {
|
|
56
|
-
key: 0,
|
|
57
|
-
style: {
|
|
58
|
-
position: "absolute",
|
|
59
|
-
top: "100%",
|
|
60
|
-
left: "0",
|
|
61
|
-
width: "100%"
|
|
62
|
-
},
|
|
63
|
-
"data-dom-to-png-ignore": "",
|
|
64
|
-
"aria-hidden": "true"
|
|
65
|
-
}, Be = [
|
|
66
|
-
"aria-pressed",
|
|
67
|
-
"aria-label",
|
|
68
|
-
"onClick",
|
|
69
|
-
"onFocus",
|
|
70
|
-
"onKeydown"
|
|
71
|
-
], Ve = { style: {
|
|
72
|
-
display: "flex",
|
|
73
|
-
"flex-direction": "row",
|
|
74
|
-
"align-items": "center",
|
|
75
|
-
gap: "4px",
|
|
76
|
-
"justify-content": "center"
|
|
77
|
-
} }, He = ["height", "width"], Ue = ["rx", "fill"], We = ["rx", "fill"], Ge = {
|
|
78
|
-
key: 3,
|
|
79
|
-
ref: "source",
|
|
80
|
-
dir: "auto"
|
|
81
|
-
}, D = /*#__PURE__*/ me({
|
|
82
|
-
__name: "vue-ui-sparkstackbar",
|
|
83
|
-
props: {
|
|
84
|
-
config: {
|
|
85
|
-
type: Object,
|
|
86
|
-
default() {
|
|
87
|
-
return {};
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
dataset: {
|
|
91
|
-
type: Array,
|
|
92
|
-
default() {
|
|
93
|
-
return [];
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
emits: ["selectDatapoint", "selectLegend"],
|
|
98
|
-
setup(e, { expose: me, emit: Ee }) {
|
|
99
|
-
let D = xe(() => import("./PackageVersion-hRJtldYi.js").then((e) => e.t)), Ke = xe(() => import("./Tooltip-C3jBTIhR.js")), { vue_ui_sparkstackbar: qe } = le(), { isThemeValid: Je, warnInvalidTheme: Ye } = pe(), Xe = ye(), Ze = we(), O = e, Qe = x(null), k = x(ie()), A = x(!1), $e = x(""), j = x(null), M = x(!1), N = x(null), et = x({
|
|
100
|
-
x: 0,
|
|
101
|
-
y: 0
|
|
102
|
-
}), P = x("pointer"), F = x(!1), I = x(null), tt = x([]), L = x(it()), R = u(() => L.value.debug);
|
|
103
|
-
Se(() => {
|
|
104
|
-
Ze["chart-background"] && R.value && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
105
|
-
}), se({
|
|
106
|
-
config: () => L.value,
|
|
107
|
-
dataset: () => O.dataset,
|
|
108
|
-
component: "VueUiSparkStackbar",
|
|
109
|
-
rules: [ce.emptyArray, {
|
|
110
|
-
test: (e) => e.length > 6,
|
|
111
|
-
message: [
|
|
112
|
-
"👀 The number of series is > 6. Consider:",
|
|
113
|
-
"",
|
|
114
|
-
"▶️ Grouping small values dynamically into a single \"Other\" series.",
|
|
115
|
-
"",
|
|
116
|
-
"▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
|
|
117
|
-
]
|
|
118
|
-
}]
|
|
119
|
-
});
|
|
120
|
-
let nt = u(() => L.value.useCursorPointer), rt = u(() => ee({
|
|
121
|
-
defaultConfig: { style: {
|
|
122
|
-
backgroundColor: "#99999930",
|
|
123
|
-
animation: { show: !1 },
|
|
124
|
-
bar: { gradient: { inderlayerColor: "#6A6A6A" } },
|
|
125
|
-
title: { backgroundColor: "transparent" }
|
|
126
|
-
} },
|
|
127
|
-
userConfig: L.value.skeletonConfig ?? {}
|
|
128
|
-
})), { loading: z, FINAL_DATASET: B } = ue({
|
|
129
|
-
...Ce(O),
|
|
130
|
-
FINAL_CONFIG: L,
|
|
131
|
-
prepareConfig: it,
|
|
132
|
-
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
133
|
-
{
|
|
134
|
-
name: "_",
|
|
135
|
-
value: 8,
|
|
136
|
-
color: "#808080"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
name: "_",
|
|
140
|
-
value: 5,
|
|
141
|
-
color: "#ADADAD"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
name: "_",
|
|
145
|
-
value: 3,
|
|
146
|
-
color: "#DBDBDB"
|
|
147
|
-
}
|
|
148
|
-
],
|
|
149
|
-
skeletonConfig: ee({
|
|
150
|
-
defaultConfig: L.value,
|
|
151
|
-
userConfig: rt.value
|
|
152
|
-
})
|
|
153
|
-
}), { svgRef: V } = ve({ config: L.value.style.title });
|
|
154
|
-
function it() {
|
|
155
|
-
let e = fe({
|
|
156
|
-
userConfig: O.config,
|
|
157
|
-
defaultConfig: qe
|
|
158
|
-
}), t = e.theme;
|
|
159
|
-
if (!t) return e;
|
|
160
|
-
if (!Je.value(e)) return Ye(e), e;
|
|
161
|
-
let i = fe({
|
|
162
|
-
userConfig: be[t] || O.config,
|
|
163
|
-
defaultConfig: e
|
|
164
|
-
}), a = fe({
|
|
165
|
-
userConfig: O.config,
|
|
166
|
-
defaultConfig: i
|
|
167
|
-
});
|
|
168
|
-
return {
|
|
169
|
-
...a,
|
|
170
|
-
customPalette: a.customPalette.length ? a.customPalette : r[t] || n
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
Te(() => O.config, (e) => {
|
|
174
|
-
L.value = it(), ot();
|
|
175
|
-
}, { deep: !0 }), Te(() => B.value, (e) => {
|
|
176
|
-
U.value = B.value.map((e, t) => ({
|
|
177
|
-
...e,
|
|
178
|
-
color: e.color ? a(e.color) : H.value[t] || n[t] || n[t % n.length]
|
|
179
|
-
})), at();
|
|
180
|
-
}, { deep: !0 });
|
|
181
|
-
let H = u(() => oe(L.value.customPalette)), U = x(B.value.map((e, t) => ({
|
|
182
|
-
...e,
|
|
183
|
-
value: L.value.style.animation.show ? 0 : e.value || 0,
|
|
184
|
-
color: e.color ? a(e.color) : H.value[t] || n[t] || n[t % n.length]
|
|
185
|
-
}))), W = x(!0);
|
|
186
|
-
function at() {
|
|
187
|
-
if (!L.value.style.animation.show || Xe.value) {
|
|
188
|
-
W.value = !1;
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
let e = L.value.style.animation.animationFrames, t = B.value.map((e) => e.value || 0), r = t.map((t) => t / e), i = t.reduce((e, t) => e + t, 0), o = 0;
|
|
192
|
-
W.value = !0, U.value = B.value.map((e, t) => ({
|
|
193
|
-
...e,
|
|
194
|
-
value: 0,
|
|
195
|
-
color: e.color ? a(e.color) : H.value[t] || n[t] || n[t % n.length]
|
|
196
|
-
}));
|
|
197
|
-
function s() {
|
|
198
|
-
o += i / e, o < i ? (U.value = U.value.map((e, i) => ({
|
|
199
|
-
...e,
|
|
200
|
-
value: Math.min(e.value + r[i], t[i]),
|
|
201
|
-
color: e.color ? a(e.color) : H.value[i] || n[i] || n[i % n.length]
|
|
202
|
-
})), requestAnimationFrame(s)) : (W.value = !1, U.value = B.value.map((e, r) => ({
|
|
203
|
-
...e,
|
|
204
|
-
value: t[r],
|
|
205
|
-
color: e.color ? a(e.color) : H.value[r] || n[r] || n[r % n.length],
|
|
206
|
-
id: ie()
|
|
207
|
-
})));
|
|
208
|
-
}
|
|
209
|
-
s();
|
|
210
|
-
}
|
|
211
|
-
Se(() => {
|
|
212
|
-
ot();
|
|
213
|
-
});
|
|
214
|
-
function ot() {
|
|
215
|
-
i(O.dataset) ? re({
|
|
216
|
-
componentName: "VueUiSparkStackbar",
|
|
217
|
-
type: "dataset",
|
|
218
|
-
debug: R.value
|
|
219
|
-
}) : R.value && O.dataset.forEach((e, t) => {
|
|
220
|
-
ne({
|
|
221
|
-
datasetObject: e,
|
|
222
|
-
requiredAttributes: ["name", "value"]
|
|
223
|
-
}).forEach((e) => {
|
|
224
|
-
re({
|
|
225
|
-
componentName: "VueUiSparkStackbar",
|
|
226
|
-
type: "datasetSerieAttribute",
|
|
227
|
-
property: e,
|
|
228
|
-
index: t
|
|
229
|
-
});
|
|
230
|
-
});
|
|
231
|
-
}), at();
|
|
232
|
-
}
|
|
233
|
-
let G = x({
|
|
234
|
-
width: 500,
|
|
235
|
-
height: 16
|
|
236
|
-
}), K = x([]), st = u(() => B.value.map((e) => e.value || 0).filter((e, t) => !K.value.includes(t)).reduce((e, t) => e + t, 0)), q = u(() => U.value.map((e, t) => {
|
|
237
|
-
let r = e.value || 0, i = r / st.value, o = isNaN(i) ? 0 : i, s = o * G.value.width;
|
|
238
|
-
return {
|
|
239
|
-
...e,
|
|
240
|
-
color: a(B.value[t]?.color ? B.value[t]?.color : H.value[t] || n[t] || n[t % n.length]),
|
|
241
|
-
value: r,
|
|
242
|
-
proportion: o,
|
|
243
|
-
width: s,
|
|
244
|
-
seriesIndex: t,
|
|
245
|
-
proportionLabel: c({
|
|
246
|
-
v: o * 100,
|
|
247
|
-
s: "%",
|
|
248
|
-
r: L.value.style.legend.percentage.rounding
|
|
249
|
-
})
|
|
250
|
-
};
|
|
251
|
-
})), J = u(() => q.value.filter((e, t) => !K.value.includes(t)));
|
|
252
|
-
function ct() {
|
|
253
|
-
A.value = !1, I.value = null, N.value = null, P.value = "pointer";
|
|
254
|
-
}
|
|
255
|
-
function lt() {
|
|
256
|
-
ct(), K.value.length ? K.value = [] : q.value.forEach((e, t) => {
|
|
257
|
-
K.value.push(t);
|
|
258
|
-
}), mt("selectLegend", J.value);
|
|
259
|
-
}
|
|
260
|
-
function Y(e) {
|
|
261
|
-
ct(), K.value.includes(e) ? K.value = K.value.filter((t) => t !== e) : K.value.length < U.value.length - 1 && K.value.push(e), mt("selectLegend", J.value);
|
|
262
|
-
}
|
|
263
|
-
function ut(e) {
|
|
264
|
-
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);
|
|
265
|
-
}
|
|
266
|
-
function dt(e) {
|
|
267
|
-
let t = ut(e);
|
|
268
|
-
t !== null && K.value.includes(t.id) && Y(t.seriesIndex);
|
|
269
|
-
}
|
|
270
|
-
function ft(e) {
|
|
271
|
-
let t = ut(e);
|
|
272
|
-
t !== null && (K.value.includes(t.id) || Y(t.seriesIndex));
|
|
273
|
-
}
|
|
274
|
-
let X = u(() => {
|
|
275
|
-
let e = 0, t = [];
|
|
276
|
-
for (let n = 0; n < J.value.length; n += 1) t.push({
|
|
277
|
-
...J.value[n],
|
|
278
|
-
start: e
|
|
279
|
-
}), e += J.value[n].width;
|
|
280
|
-
return t;
|
|
281
|
-
}), pt = u(() => {
|
|
282
|
-
let e = X.value.reduce((e, t) => e + t.width, 0);
|
|
283
|
-
return Math.min(Math.max(e, 0), G.value.width);
|
|
284
|
-
}), mt = Ee;
|
|
285
|
-
function Z(e, t, n = !1) {
|
|
286
|
-
mt("selectDatapoint", {
|
|
287
|
-
datapoint: e,
|
|
288
|
-
index: t
|
|
289
|
-
}), L.value.events.datapointClick && !n && L.value.events.datapointClick({
|
|
290
|
-
datapoint: e,
|
|
291
|
-
seriesIndex: e.seriesIndex
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
function ht({ datapoint: e, seriesIndex: t }) {
|
|
295
|
-
A.value = !1, I.value = null, N.value = null, P.value = "pointer", L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
296
|
-
datapoint: e,
|
|
297
|
-
seriesIndex: e.seriesIndex
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
function gt({ datapoint: e, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
301
|
-
if (M.value = !1, L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
302
|
-
datapoint: e,
|
|
303
|
-
seriesIndex: e.seriesIndex
|
|
304
|
-
}), !L.value.style.tooltip.show) return;
|
|
305
|
-
P.value = r, j.value = {
|
|
306
|
-
datapoint: e,
|
|
307
|
-
seriesIndex: n,
|
|
308
|
-
config: L.value,
|
|
309
|
-
series: q.value
|
|
310
|
-
}, A.value = !0, I.value = e.seriesIndex;
|
|
311
|
-
let i = L.value.style.tooltip.customFormat;
|
|
312
|
-
if (o(i)) try {
|
|
313
|
-
let t = i({
|
|
314
|
-
seriesIndex: e.seriesIndex,
|
|
315
|
-
datapoint: e,
|
|
316
|
-
series: q.value,
|
|
317
|
-
config: L.value
|
|
318
|
-
});
|
|
319
|
-
typeof t == "string" && ($e.value = t, M.value = !0);
|
|
320
|
-
} catch {
|
|
321
|
-
console.warn("Custom format cannot be applied."), M.value = !1;
|
|
322
|
-
}
|
|
323
|
-
if (!M.value) {
|
|
324
|
-
let r = "", i = L.value.style.bar.gradient.show, a = `tooltip_grad_${n}_${k.value}`, o = t(s(e.color, .05), 100 - L.value.style.bar.gradient.intensity), ee = i ? `<rect x="0" y="0" width="10" height="10" rx="${Q.value}" fill="${L.value.style.bar.gradient.underlayerColor}"/>` : "", ne = i ? `<defs><radialGradient id="${a}"><stop offset="0%" stop-color="${o}"/><stop offset="100%" stop-color="${e.color}"/></radialGradient></defs>` : "";
|
|
325
|
-
r += `<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>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 10 10" height="14" width="14">${ne}${ee}<rect x="0" y="0" width="10" height="10" rx="${Q.value}" fill="${i ? `url(#${a})` : e.color}"/></svg>`, r += `<b>${e.proportionLabel}</b>`, r += `<span>(${te(L.value.style.legend.value.formatter, e.value, c({
|
|
326
|
-
p: L.value.style.legend.value.prefix,
|
|
327
|
-
v: e.value,
|
|
328
|
-
s: L.value.style.legend.value.suffix,
|
|
329
|
-
r: L.value.style.legend.value.rounding
|
|
330
|
-
}), {
|
|
331
|
-
datapoint: e,
|
|
332
|
-
seriesIndex: n
|
|
333
|
-
})})</span>`, $e.value = `<div>${r}</div>`;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
let _t = u(() => {
|
|
337
|
-
let e = L.value.style.bar.borderRadius == null ? G.value.height / 2 : L.value.style.bar.borderRadius;
|
|
338
|
-
return Math.min(Math.max(e, 0), G.value.height / 2);
|
|
339
|
-
}), Q = u(() => {
|
|
340
|
-
let e = G.value.height / 2;
|
|
341
|
-
return e === 0 ? 5 : _t.value / e * 5;
|
|
342
|
-
});
|
|
343
|
-
function $(e) {
|
|
344
|
-
let t = tt.value[e];
|
|
345
|
-
t && typeof t.focus == "function" && t.focus();
|
|
346
|
-
}
|
|
347
|
-
function vt(e) {
|
|
348
|
-
if (!Number.isFinite(e) || !V.value) return;
|
|
349
|
-
let t = X.value[e];
|
|
350
|
-
if (!t) return;
|
|
351
|
-
let n = V.value.getBoundingClientRect(), r = t.start + t.width / 2, i = G.value.height / 2;
|
|
352
|
-
et.value = {
|
|
353
|
-
x: n.left + r / G.value.width * n.width,
|
|
354
|
-
y: n.top + i / G.value.height * n.height
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
function yt() {
|
|
358
|
-
N.value = null, F.value = !0;
|
|
359
|
-
}
|
|
360
|
-
function bt() {
|
|
361
|
-
N.value = null, P.value = "pointer", A.value = !1, I.value = null, F.value = !1;
|
|
362
|
-
}
|
|
363
|
-
function xt(e) {
|
|
364
|
-
if (!V.value || document.activeElement !== V.value || !X.value.length) return;
|
|
365
|
-
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";
|
|
366
|
-
if (!t && !n && !r && !i && !a && !o) return;
|
|
367
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
368
|
-
N.value = null, P.value = "pointer", A.value = !1, I.value = null;
|
|
369
|
-
return;
|
|
370
|
-
}
|
|
371
|
-
if (r) {
|
|
372
|
-
if (N.value === null) return;
|
|
373
|
-
let e = X.value[N.value];
|
|
374
|
-
if (!e) return;
|
|
375
|
-
Z(e, e.seriesIndex);
|
|
376
|
-
return;
|
|
377
|
-
}
|
|
378
|
-
let s = N.value;
|
|
379
|
-
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));
|
|
380
|
-
let c = X.value[s];
|
|
381
|
-
c && (N.value = s, vt(s), gt({
|
|
382
|
-
datapoint: c,
|
|
383
|
-
seriesIndex: c.seriesIndex,
|
|
384
|
-
triggerMode: "keyboard"
|
|
385
|
-
}));
|
|
386
|
-
}
|
|
387
|
-
function St(e) {
|
|
388
|
-
A.value = !1, N.value = null, P.value = "pointer", I.value = e.seriesIndex;
|
|
389
|
-
}
|
|
390
|
-
function Ct() {
|
|
391
|
-
N.value = null, P.value = "pointer", A.value = !1, I.value = null;
|
|
392
|
-
}
|
|
393
|
-
function wt(e, t, n) {
|
|
394
|
-
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";
|
|
395
|
-
if (!(!r && !i && !a && !o && !s && !c)) {
|
|
396
|
-
if (e.preventDefault(), e.stopPropagation(), c) {
|
|
397
|
-
Ct();
|
|
398
|
-
return;
|
|
399
|
-
}
|
|
400
|
-
if (r) {
|
|
401
|
-
Y(n), Z(t, n, !0);
|
|
402
|
-
return;
|
|
403
|
-
}
|
|
404
|
-
if (o) {
|
|
405
|
-
$(0);
|
|
406
|
-
return;
|
|
407
|
-
}
|
|
408
|
-
if (s) {
|
|
409
|
-
$(q.value.length - 1);
|
|
410
|
-
return;
|
|
411
|
-
}
|
|
412
|
-
if (i) {
|
|
413
|
-
$(n <= 0 ? q.value.length - 1 : n - 1);
|
|
414
|
-
return;
|
|
415
|
-
}
|
|
416
|
-
a && $(n >= q.value.length - 1 ? 0 : n + 1);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
let Tt = u(() => ({
|
|
420
|
-
headers: [
|
|
421
|
-
L.value.a11y.translations.series,
|
|
422
|
-
L.value.a11y.translations.percentage,
|
|
423
|
-
L.value.a11y.translations.value
|
|
424
|
-
],
|
|
425
|
-
rows: q.value.map((e, t) => [
|
|
426
|
-
e.name,
|
|
427
|
-
K.value.includes(t) ? " - " : e.proportionLabel,
|
|
428
|
-
te(L.value.style.legend.value.formatter, e.value, c({
|
|
429
|
-
p: L.value.style.legend.value.prefix,
|
|
430
|
-
v: e.value,
|
|
431
|
-
s: L.value.style.legend.value.suffix,
|
|
432
|
-
r: L.value.style.legend.value.rounding
|
|
433
|
-
}), {
|
|
434
|
-
datapoint: e,
|
|
435
|
-
seriesIndex: t
|
|
436
|
-
})
|
|
437
|
-
])
|
|
438
|
-
}));
|
|
439
|
-
return me({
|
|
440
|
-
hideSeries: ft,
|
|
441
|
-
showSeries: dt
|
|
442
|
-
}), (e, n) => (b(), p("div", {
|
|
443
|
-
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
444
|
-
ref_key: "sparkstackbarChart",
|
|
445
|
-
ref: Qe,
|
|
446
|
-
style: y(`width:100%; background:${L.value.style.backgroundColor}`)
|
|
447
|
-
}, [
|
|
448
|
-
m("div", {
|
|
449
|
-
id: `chart-instructions-${k.value}`,
|
|
450
|
-
class: "sr-only"
|
|
451
|
-
}, [m("p", null, w(L.value.a11y.translations.keyboardNavigation), 1)], 8, De),
|
|
452
|
-
Tt.value?.rows?.length ? (b(), d(_e, {
|
|
453
|
-
key: 0,
|
|
454
|
-
uid: k.value,
|
|
455
|
-
head: Tt.value.headers,
|
|
456
|
-
body: Tt.value.rows,
|
|
457
|
-
notice: L.value.a11y.translations.tableAvailable,
|
|
458
|
-
caption: L.value.a11y.translations.tableCaption
|
|
459
|
-
}, null, 8, [
|
|
460
|
-
"uid",
|
|
461
|
-
"head",
|
|
462
|
-
"body",
|
|
463
|
-
"notice",
|
|
464
|
-
"caption"
|
|
465
|
-
])) : f("", !0),
|
|
466
|
-
L.value.style.title.text ? (b(), p("div", {
|
|
467
|
-
key: 1,
|
|
468
|
-
style: y(`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}`)
|
|
469
|
-
}, [m("div", {
|
|
470
|
-
class: "atom-title",
|
|
471
|
-
style: y(`font-size:${L.value.style.title.fontSize}px;color:${L.value.style.title.color};font-weight:${L.value.style.title.bold ? "bold" : "normal"}`)
|
|
472
|
-
}, w(L.value.style.title.text), 5), L.value.style.title.subtitle.text ? (b(), p("div", {
|
|
473
|
-
key: 0,
|
|
474
|
-
class: "atom-subtitle",
|
|
475
|
-
style: y(`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"}`)
|
|
476
|
-
}, w(L.value.style.title.subtitle.text), 5)) : f("", !0)], 4)) : f("", !0),
|
|
477
|
-
m("div", Oe, [(b(), p("svg", {
|
|
478
|
-
ref_key: "svgRef",
|
|
479
|
-
ref: V,
|
|
480
|
-
xmlns: T(ae),
|
|
481
|
-
width: "100%",
|
|
482
|
-
viewBox: `0 0 ${G.value.width} ${G.value.height}`,
|
|
483
|
-
"aria-describedby": `chart-instructions-${k.value}`,
|
|
484
|
-
tabindex: "0",
|
|
485
|
-
onFocus: yt,
|
|
486
|
-
onBlur: bt,
|
|
487
|
-
onKeydown: xt
|
|
488
|
-
}, [
|
|
489
|
-
h(T(D)),
|
|
490
|
-
m("defs", null, [(b(!0), p(l, null, S(X.value, (e, n) => (b(), d(he, {
|
|
491
|
-
t: "linear",
|
|
492
|
-
id: `stack_gradient_${n}_${k.value}`,
|
|
493
|
-
key: `stack_gradient_${n}`,
|
|
494
|
-
gradientTransform: "rotate(90)",
|
|
495
|
-
stops: [
|
|
496
|
-
[
|
|
497
|
-
"0%",
|
|
498
|
-
e.color,
|
|
499
|
-
1
|
|
500
|
-
],
|
|
501
|
-
[
|
|
502
|
-
"50%",
|
|
503
|
-
T(t)(T(s)(e.color, .05), 100 - L.value.style.bar.gradient.intensity),
|
|
504
|
-
1
|
|
505
|
-
],
|
|
506
|
-
[
|
|
507
|
-
"100%",
|
|
508
|
-
e.color,
|
|
509
|
-
1
|
|
510
|
-
]
|
|
511
|
-
]
|
|
512
|
-
}, null, 8, ["id", "stops"]))), 128)), m("clipPath", { id: `stackPill_${k.value}` }, [m("rect", {
|
|
513
|
-
x: "0",
|
|
514
|
-
y: "0",
|
|
515
|
-
width: pt.value,
|
|
516
|
-
height: G.value.height,
|
|
517
|
-
rx: _t.value,
|
|
518
|
-
class: _({ animated: !W.value && !T(z) })
|
|
519
|
-
}, null, 10, je)], 8, Ae)]),
|
|
520
|
-
st.value > 0 ? (b(), p(l, { key: 0 }, [m("g", { "clip-path": `url(#stackPill_${k.value})` }, [
|
|
521
|
-
(b(!0), p(l, null, S(X.value, (e, t) => (b(), p("rect", {
|
|
522
|
-
key: `stack_underlayer_${t}`,
|
|
523
|
-
x: e.start,
|
|
524
|
-
y: 0,
|
|
525
|
-
width: e.width,
|
|
526
|
-
height: G.value.height,
|
|
527
|
-
fill: L.value.style.bar.gradient.underlayerColor,
|
|
528
|
-
class: _({ animated: !W.value && !T(z) }),
|
|
529
|
-
style: y({ opacity: A.value && I.value !== null && L.value.style.tooltip.show ? I.value === e.seriesIndex ? 1 : .5 : 1 })
|
|
530
|
-
}, null, 14, Ne))), 128)),
|
|
531
|
-
(b(!0), p(l, null, S(X.value, (e, t) => (b(), p("rect", {
|
|
532
|
-
key: `stack_${t}`,
|
|
533
|
-
x: e.start,
|
|
534
|
-
y: 0,
|
|
535
|
-
width: e.width,
|
|
536
|
-
height: G.value.height,
|
|
537
|
-
fill: L.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${k.value})` : e.color,
|
|
538
|
-
class: _({ animated: !W.value && !T(z) }),
|
|
539
|
-
style: y({ opacity: A.value && I.value !== null && L.value.style.tooltip.show ? I.value === e.seriesIndex ? 1 : .5 : 1 })
|
|
540
|
-
}, null, 14, Pe))), 128)),
|
|
541
|
-
(b(!0), p(l, null, S(X.value.slice(1), (e, t) => (b(), p("rect", {
|
|
542
|
-
key: `stack_separator_${t}`,
|
|
543
|
-
x: e.start - .5,
|
|
544
|
-
y: "0",
|
|
545
|
-
width: "1",
|
|
546
|
-
height: G.value.height,
|
|
547
|
-
fill: L.value.style.backgroundColor,
|
|
548
|
-
"pointer-events": "none",
|
|
549
|
-
class: _({ animated: !W.value && !T(z) })
|
|
550
|
-
}, null, 10, Fe))), 128)),
|
|
551
|
-
(b(!0), p(l, null, S(X.value, (e, t) => (b(), p("rect", {
|
|
552
|
-
key: `stack_trap_${t}`,
|
|
553
|
-
x: e.start,
|
|
554
|
-
y: 0,
|
|
555
|
-
width: e.width,
|
|
556
|
-
height: G.value.height,
|
|
557
|
-
fill: "transparent",
|
|
558
|
-
stroke: "none",
|
|
559
|
-
class: _({ animated: !W.value && !T(z) }),
|
|
560
|
-
onClick: () => Z(e, t),
|
|
561
|
-
onMouseenter: () => gt({
|
|
562
|
-
datapoint: e,
|
|
563
|
-
seriesIndex: e.seriesIndex
|
|
564
|
-
}),
|
|
565
|
-
onMouseleave: (t) => ht({
|
|
566
|
-
datapoint: e,
|
|
567
|
-
seriesIndex: e.seriesIndex
|
|
568
|
-
})
|
|
569
|
-
}, null, 42, Ie))), 128))
|
|
570
|
-
], 8, Me), m("rect", {
|
|
571
|
-
x: "0.5",
|
|
572
|
-
y: "0.5",
|
|
573
|
-
width: G.value.width - 1,
|
|
574
|
-
height: G.value.height - 1,
|
|
575
|
-
rx: Math.max(0, _t.value - .5),
|
|
576
|
-
fill: "none",
|
|
577
|
-
stroke: L.value.style.backgroundColor,
|
|
578
|
-
"stroke-width": "1",
|
|
579
|
-
"pointer-events": "none"
|
|
580
|
-
}, null, 8, Le)], 64)) : (b(), p("rect", {
|
|
581
|
-
key: 1,
|
|
582
|
-
x: 2,
|
|
583
|
-
y: 1,
|
|
584
|
-
width: G.value.width - 4,
|
|
585
|
-
height: G.value.height - 2,
|
|
586
|
-
stroke: "#CCCCCC",
|
|
587
|
-
"stroke-width": "2",
|
|
588
|
-
fill: "transparent",
|
|
589
|
-
rx: (G.value.height - 4) / 2
|
|
590
|
-
}, null, 8, Re))
|
|
591
|
-
], 40, ke)), e.$slots.hint ? (b(), p("div", ze, [C(e.$slots, "hint", v(g({
|
|
592
|
-
hint: L.value.a11y.translations.keyboardNavigation,
|
|
593
|
-
isVisible: F.value
|
|
594
|
-
})), void 0, !0)])) : f("", !0)]),
|
|
595
|
-
L.value.style.legend.show ? (b(), p("div", {
|
|
596
|
-
key: 2,
|
|
597
|
-
style: y(`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"}`),
|
|
598
|
-
class: "vue-ui-sparkstackbar-legend",
|
|
599
|
-
"aria-label": "legend",
|
|
600
|
-
role: "toolbar"
|
|
601
|
-
}, [L.value.style.legend.selectAllToggle.show && q.value.length > 2 && !T(z) ? (b(), d(ge, {
|
|
602
|
-
key: 0,
|
|
603
|
-
backgroundColor: L.value.style.legend.selectAllToggle.backgroundColor,
|
|
604
|
-
color: L.value.style.legend.selectAllToggle.color,
|
|
605
|
-
fontSize: L.value.style.legend.fontSize,
|
|
606
|
-
checked: K.value.length > 0,
|
|
607
|
-
isCursorPointer: nt.value,
|
|
608
|
-
onToggle: lt
|
|
609
|
-
}, null, 8, [
|
|
610
|
-
"backgroundColor",
|
|
611
|
-
"color",
|
|
612
|
-
"fontSize",
|
|
613
|
-
"checked",
|
|
614
|
-
"isCursorPointer"
|
|
615
|
-
])) : f("", !0), (b(!0), p(l, null, S(q.value, (e, n) => (b(), p("div", {
|
|
616
|
-
role: "button",
|
|
617
|
-
tabindex: "0",
|
|
618
|
-
"aria-pressed": K.value.includes(n),
|
|
619
|
-
"aria-label": `${e.name}, ${K.value.includes(n) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
620
|
-
style: y(`font-size:${L.value.style.legend.fontSize}px;cursor:${nt.value ? "pointer" : "default"}`),
|
|
621
|
-
class: _({
|
|
622
|
-
"vue-ui-sparkstackbar-legend-item": !0,
|
|
623
|
-
"vue-ui-sparkstackbar-legend-item-unselected": K.value.includes(n)
|
|
624
|
-
}),
|
|
625
|
-
onClick: (t) => {
|
|
626
|
-
Y(n), Z(e, n, !0);
|
|
627
|
-
},
|
|
628
|
-
onFocus: (t) => St(e),
|
|
629
|
-
onBlur: Ct,
|
|
630
|
-
onKeydown: (t) => wt(t, e, n)
|
|
631
|
-
}, [m("div", Ve, [(b(), p("svg", {
|
|
632
|
-
height: `${L.value.style.legend.fontSize}px`,
|
|
633
|
-
width: `${L.value.style.legend.fontSize}px`,
|
|
634
|
-
viewBox: "0 0 10 10"
|
|
635
|
-
}, [
|
|
636
|
-
m("defs", null, [h(he, {
|
|
637
|
-
t: "radial",
|
|
638
|
-
id: `legend_grad_${n}-${k.value}`,
|
|
639
|
-
stops: [[
|
|
640
|
-
"0%",
|
|
641
|
-
T(z) ? "#FFFFFF" : T(t)(T(s)(e.color, .05), 100 - L.value.style.bar.gradient.intensity),
|
|
642
|
-
1
|
|
643
|
-
], [
|
|
644
|
-
"100%",
|
|
645
|
-
e.color,
|
|
646
|
-
1
|
|
647
|
-
]]
|
|
648
|
-
}, null, 8, ["id", "stops"])]),
|
|
649
|
-
L.value.style.bar.gradient.show ? (b(), p("rect", {
|
|
650
|
-
key: 0,
|
|
651
|
-
x: "0",
|
|
652
|
-
y: "0",
|
|
653
|
-
width: "10",
|
|
654
|
-
height: "10",
|
|
655
|
-
rx: Q.value,
|
|
656
|
-
fill: L.value.style.bar.gradient.underlayerColor
|
|
657
|
-
}, null, 8, Ue)) : f("", !0),
|
|
658
|
-
m("rect", {
|
|
659
|
-
x: "0",
|
|
660
|
-
y: "0",
|
|
661
|
-
width: "10",
|
|
662
|
-
height: "10",
|
|
663
|
-
rx: Q.value,
|
|
664
|
-
fill: L.value.style.bar.gradient.show ? `url(#legend_grad_${n}-${k.value})` : e.color
|
|
665
|
-
}, null, 8, We)
|
|
666
|
-
], 8, He)), T(z) ? f("", !0) : (b(), p(l, { key: 0 }, [m("span", { style: y(`color:${L.value.style.legend.name.color}; font-weight:${L.value.style.legend.name.bold ? "bold" : "normal"}`) }, w(e.name), 5), W.value ? f("", !0) : (b(), p(l, { key: 0 }, [L.value.style.legend.percentage.show ? (b(), p("span", {
|
|
667
|
-
key: 0,
|
|
668
|
-
style: y(`font-weight:${L.value.style.legend.percentage.bold ? "bold" : "normal"};color:${L.value.style.legend.percentage.color}`)
|
|
669
|
-
}, w(K.value.includes(n) ? " - " : e.proportionLabel), 5)) : f("", !0), L.value.style.legend.value.show ? (b(), p("span", {
|
|
670
|
-
key: 1,
|
|
671
|
-
style: y(`font-weight:${L.value.style.legend.value.bold ? "bold" : "normal"};color:${L.value.style.legend.value.color}`)
|
|
672
|
-
}, " (" + w(T(te)(L.value.style.legend.value.formatter, e.value, T(c)({
|
|
673
|
-
p: L.value.style.legend.value.prefix,
|
|
674
|
-
v: e.value,
|
|
675
|
-
s: L.value.style.legend.value.suffix,
|
|
676
|
-
r: L.value.style.legend.value.rounding
|
|
677
|
-
}), {
|
|
678
|
-
datapoint: e,
|
|
679
|
-
seriesIndex: n
|
|
680
|
-
})) + ") ", 5)) : f("", !0)], 64))], 64))])], 46, Be))), 256))], 4)) : f("", !0),
|
|
681
|
-
h(T(Ke), {
|
|
682
|
-
teleportTo: L.value.style.tooltip.teleportTo,
|
|
683
|
-
show: A.value && L.value.style.tooltip.show,
|
|
684
|
-
parent: Qe.value,
|
|
685
|
-
backgroundColor: L.value.style.tooltip.backgroundColor,
|
|
686
|
-
color: L.value.style.tooltip.color,
|
|
687
|
-
fontSize: L.value.style.tooltip.fontSize,
|
|
688
|
-
borderRadius: L.value.style.tooltip.borderRadius,
|
|
689
|
-
borderColor: L.value.style.tooltip.borderColor,
|
|
690
|
-
borderWidth: L.value.style.tooltip.borderWidth,
|
|
691
|
-
backgroundOpacity: L.value.style.tooltip.backgroundOpacity,
|
|
692
|
-
position: L.value.style.tooltip.position,
|
|
693
|
-
content: $e.value,
|
|
694
|
-
isCustom: M.value,
|
|
695
|
-
offsetX: L.value.style.tooltip.offsetX,
|
|
696
|
-
offsetY: -124 + L.value.style.tooltip.offsetY,
|
|
697
|
-
blockShiftY: !0,
|
|
698
|
-
smooth: L.value.style.tooltip.smooth,
|
|
699
|
-
backdropFilter: L.value.style.tooltip.backdropFilter,
|
|
700
|
-
smoothForce: L.value.style.tooltip.smoothForce,
|
|
701
|
-
smoothSnapThreshold: L.value.style.tooltip.smoothSnapThreshold,
|
|
702
|
-
isA11yMode: P.value === "keyboard",
|
|
703
|
-
a11yPosition: et.value
|
|
704
|
-
}, {
|
|
705
|
-
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...j.value })), void 0, !0)]),
|
|
706
|
-
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...j.value })), void 0, !0)]),
|
|
707
|
-
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(g({ ...j.value })), void 0, !0)]),
|
|
708
|
-
_: 3
|
|
709
|
-
}, 8, [
|
|
710
|
-
"teleportTo",
|
|
711
|
-
"show",
|
|
712
|
-
"parent",
|
|
713
|
-
"backgroundColor",
|
|
714
|
-
"color",
|
|
715
|
-
"fontSize",
|
|
716
|
-
"borderRadius",
|
|
717
|
-
"borderColor",
|
|
718
|
-
"borderWidth",
|
|
719
|
-
"backgroundOpacity",
|
|
720
|
-
"position",
|
|
721
|
-
"content",
|
|
722
|
-
"isCustom",
|
|
723
|
-
"offsetX",
|
|
724
|
-
"offsetY",
|
|
725
|
-
"smooth",
|
|
726
|
-
"backdropFilter",
|
|
727
|
-
"smoothForce",
|
|
728
|
-
"smoothSnapThreshold",
|
|
729
|
-
"isA11yMode",
|
|
730
|
-
"a11yPosition"
|
|
731
|
-
]),
|
|
732
|
-
e.$slots.source ? (b(), p("div", Ge, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
733
|
-
C(e.$slots, "skeleton", {}, () => [T(z) ? (b(), d(de, { key: 0 })) : f("", !0)], !0)
|
|
734
|
-
], 4));
|
|
735
|
-
}
|
|
736
|
-
}, [["__scopeId", "data-v-ff4d9af8"]]);
|
|
737
|
-
//#endregion
|
|
738
|
-
export { Ee as n, D as t };
|