vue-data-ui 3.24.0 → 3.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CJuuMivt.js → Arrow-cWEoIMbe.js} +1 -1
- package/dist/{BaseDraggableDialog-9RMU4zIz.js → BaseDraggableDialog-obpncsqR.js} +2 -2
- package/dist/{BaseIcon-U0y1Y7dC.js → BaseIcon-Dmgd8MfJ.js} +1 -1
- package/dist/{BaseLegendToggle-B_wibe7d.js → BaseLegendToggle-Dj1a_tSb.js} +1 -1
- package/dist/{BaseZoomControls-DXDTBATh.js → BaseZoomControls-CdYm4Qh4.js} +2 -2
- package/dist/{ColorPicker-Diee0Pe9.js → ColorPicker-B93_eq_J.js} +2 -2
- package/dist/{DataTable-1Lsn9w61.js → DataTable-D6vq6n14.js} +2 -2
- package/dist/{HillActions-DntqVj-0.js → HillActions-D0OMo0PZ.js} +1 -1
- package/dist/{Legend-Cg1jtWxv.js → Legend-Du6YK6gu.js} +2 -2
- package/dist/{NonSvgPenAndPaper-aCu8CNkj.js → NonSvgPenAndPaper-DbwjIxnE.js} +3 -3
- package/dist/{PackageVersion-CrLLZ567.js → PackageVersion-CU9Hflo-.js} +1 -1
- package/dist/{PenAndPaper-ktbpEc-t.js → PenAndPaper-CD5tlFYh.js} +3 -3
- package/dist/{Shape-BV_BCG2F.js → Shape-Dqpgbk7w.js} +1 -1
- package/dist/{SlicerPreview-CsFT236o.js → SlicerPreview-BSjcCjhA.js} +2 -2
- package/dist/{SparkTooltip-BqzJa3h2.js → SparkTooltip-Da4O7iOD.js} +1 -1
- package/dist/{Title-C5ytqOnj.js → Title-y2KUSK-I.js} +1 -1
- package/dist/{Tooltip-CTgk02J6.js → Tooltip-CLpW5URN.js} +1 -1
- package/dist/{UserOptions-DJt-e5q0.js → UserOptions-3Qr8es3g.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-K9hvrmBm.js → dom-to-png-CQUIoewh.js} +1 -1
- package/dist/{exposedLib-CNHCqGuG.js → exposedLib-4fR8MXNd.js} +1 -1
- package/dist/{img-DRq3Equ5.js → img-D3Ck2d_T.js} +1 -1
- package/dist/{labelUtils-CSh956Gz.js → labelUtils-CJ6EaaYo.js} +1 -1
- package/dist/{lib-DfMn_3jf.js → lib-DurLxjMz.js} +21 -42
- package/dist/{package-DwX5gXIb.js → package-CawqE4gj.js} +1 -1
- package/dist/{pdf-CglSdC4O.js → pdf-2aQfvzB9.js} +1 -1
- package/dist/{render-common-DruozHP7.js → render-common-DrbN2WgW.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/types/vue-data-ui.d.ts +6 -0
- package/dist/{useConfig-BtJSJ6AK.js → useConfig-CyCVHo81.js} +27 -17
- package/dist/{useNestedProp-CLEe1P5W.js → useNestedProp-B3XMQAL1.js} +1 -1
- package/dist/{useObjectBindings-CgRKOMSB.js → useObjectBindings-ByORl1rV.js} +1 -1
- package/dist/{usePrinter-Daqyj6c7.js → usePrinter-D53IAxB2.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C37q2rbt.js → vue-data-ui-DHA6rnQ7.js} +70 -70
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-B_z643_d.js → vue-ui-3d-bar-B3bLF2Fp.js} +7 -7
- package/dist/{vue-ui-accordion-BhOSscZB.js → vue-ui-accordion-D2W-dY3E.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CS1J-mHZ.js → vue-ui-age-pyramid-CvRi9Web.js} +7 -7
- package/dist/{vue-ui-annotator-DmTbmRrw.js → vue-ui-annotator-BTozB0Fb.js} +7 -7
- package/dist/{vue-ui-bullet-BUuF_-rE.js → vue-ui-bullet-BbCPpZ5k.js} +8 -8
- package/dist/{vue-ui-bump-Dt13LCR2.js → vue-ui-bump-FZIoCybJ.js} +100 -96
- package/dist/{vue-ui-candlestick-CgvK082R.js → vue-ui-candlestick-IlS8zO5O.js} +431 -416
- package/dist/{vue-ui-carousel-table-C6IZZLpG.js → vue-ui-carousel-table-DokjHbNr.js} +5 -5
- package/dist/{vue-ui-chestnut-B03dTYpe.js → vue-ui-chestnut-DoUFUSVm.js} +6 -6
- package/dist/{vue-ui-chord-R7YLYkOS.js → vue-ui-chord-6t-7dxVu.js} +9 -9
- package/dist/{vue-ui-circle-pack-CxIJbXSK.js → vue-ui-circle-pack-CexF2pcc.js} +7 -7
- package/dist/{vue-ui-cursor-Bqm8zbqD.js → vue-ui-cursor-YbgOW5z6.js} +4 -4
- package/dist/{vue-ui-dag-TqlqeLgZ.js → vue-ui-dag-B4RKzj4H.js} +8 -8
- package/dist/{vue-ui-dashboard-W0PV1gGV.js → vue-ui-dashboard-BUXA_h5X.js} +70 -70
- package/dist/{vue-ui-digits-D3VKW9O0.js → vue-ui-digits-C4eNwkQW.js} +4 -4
- package/dist/{vue-ui-donut-8W7ZV_hU.js → vue-ui-donut-BS9ICnxW.js} +3 -3
- package/dist/{vue-ui-donut-C_CUqRdv.js → vue-ui-donut-DBhaQARJ.js} +11 -11
- package/dist/{vue-ui-donut-evolution-CHQHSkpq.js → vue-ui-donut-evolution-B0v3uJNo.js} +10 -10
- package/dist/{vue-ui-dumbbell-D3G5uL-P.js → vue-ui-dumbbell-Dj-FFcXl.js} +8 -8
- package/dist/{vue-ui-flow-CjvO8Fsp.js → vue-ui-flow-CGjXnUTR.js} +8 -8
- package/dist/{vue-ui-funnel-eHR9hTpj.js → vue-ui-funnel-B8qoKSY6.js} +7 -7
- package/dist/{vue-ui-galaxy-DBarvxFP.js → vue-ui-galaxy-BOqqpg7g.js} +10 -10
- package/dist/{vue-ui-gauge-Cz6PC_H5.js → vue-ui-gauge-C6gbloYZ.js} +7 -7
- package/dist/{vue-ui-geo-BmjzP6NK.js → vue-ui-geo-BMRhXP7L.js} +8 -8
- package/dist/{vue-ui-gizmo-BChwImvX.js → vue-ui-gizmo-DjnW3oDO.js} +4 -4
- package/dist/{vue-ui-heatmap-h0_V5jv6.js → vue-ui-heatmap-DyxHJCSO.js} +8 -8
- package/dist/{vue-ui-hill-D_2DFdNy.js → vue-ui-hill-C4osOxU0.js} +7 -7
- package/dist/{vue-ui-history-plot-Bis3f9Ub.js → vue-ui-history-plot-Cwi7sVNg.js} +9 -9
- package/dist/{vue-ui-horizontal-bar-2AOgQ694.js → vue-ui-horizontal-bar-CrgP4Bm8.js} +11 -11
- package/dist/{vue-ui-kpi-k0yLSsqF.js → vue-ui-kpi-is2_nVkE.js} +4 -4
- package/dist/{vue-ui-label-aHnVFvfK.js → vue-ui-label-BbX73tEX.js} +4 -4
- package/dist/{vue-ui-mini-loader-DUsSEO5b.js → vue-ui-mini-loader-DntLxOr0.js} +3 -3
- package/dist/{vue-ui-molecule--1J4__BY.js → vue-ui-molecule-CIY3r7HA.js} +6 -6
- package/dist/{vue-ui-mood-radar-BEruKK_i.js → vue-ui-mood-radar-CezYlJmD.js} +8 -8
- package/dist/{vue-ui-nested-donuts-MBeHoc-t.js → vue-ui-nested-donuts-CF7YdoRx.js} +10 -10
- package/dist/{vue-ui-onion-j0eEGvru.js → vue-ui-onion-Chk8CzSw.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-BvuYSu3N.js → vue-ui-parallel-coordinate-plot-hKkob-cX.js} +10 -10
- package/dist/{vue-ui-quadrant-DWtwr7JT.js → vue-ui-quadrant-B3Wy4REJ.js} +10 -10
- package/dist/{vue-ui-quick-chart-vhICAvQe.js → vue-ui-quick-chart-rUvFKRs1.js} +8 -8
- package/dist/{vue-ui-radar-e9eoRxOC.js → vue-ui-radar-DA5EnHNt.js} +9 -9
- package/dist/{vue-ui-rating-WsMfVsJN.js → vue-ui-rating-DglGQ_DQ.js} +3 -3
- package/dist/{vue-ui-relation-circle-NgJ8121q.js → vue-ui-relation-circle-ta7aeXOK.js} +7 -7
- package/dist/{vue-ui-ridgeline-BZ1Czz8V.js → vue-ui-ridgeline-BDqNGJ20.js} +20 -13
- package/dist/{vue-ui-rings-grgJPuxE.js → vue-ui-rings-BbSBLvb4.js} +13 -13
- package/dist/{vue-ui-scatter-DuqZxbZD.js → vue-ui-scatter-DwgFHsYb.js} +10 -10
- package/dist/{vue-ui-skeleton-CnexlOV6.js → vue-ui-skeleton-UP0Bv65Q.js} +4 -4
- package/dist/{vue-ui-smiley-Bvs5RJtM.js → vue-ui-smiley-CmN35dmK.js} +3 -3
- package/dist/{vue-ui-spark-trend-C2knAS0F.js → vue-ui-spark-trend-BHC8GKeh.js} +4 -4
- package/dist/vue-ui-sparkbar-DG5Lx7L_.js +401 -0
- package/dist/{vue-ui-sparkgauge-CCkcq4Wh.js → vue-ui-sparkgauge-Budj4a8D.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B-fzheQo.js → vue-ui-sparkhistogram-EF6l_8DB.js} +5 -5
- package/dist/{vue-ui-sparkline-DVYlqELY.js → vue-ui-sparkline-Bt3WUBs7.js} +4 -4
- package/dist/vue-ui-sparkstackbar-zcc269TN.js +738 -0
- package/dist/{vue-ui-stackbar-CIUS0xkc.js → vue-ui-stackbar-RFBCfoIt.js} +612 -596
- package/dist/vue-ui-stackline-B2cHovb4.js +2463 -0
- package/dist/{vue-ui-strip-plot-Sshmlk9v.js → vue-ui-strip-plot-Cu-cVKCS.js} +8 -8
- package/dist/{vue-ui-table-DSUvcqI9.js → vue-ui-table-BukgLZ8K.js} +6 -6
- package/dist/{vue-ui-table-heatmap-btnDozZ-.js → vue-ui-table-heatmap-y9oWnS6t.js} +6 -6
- package/dist/{vue-ui-table-sparkline-C12IgrZG.js → vue-ui-table-sparkline-B4V_s9rK.js} +5 -5
- package/dist/{vue-ui-thermometer-3ZSPCE1q.js → vue-ui-thermometer-CqVDnPmF.js} +7 -7
- package/dist/{vue-ui-timer-Birf1RVz.js → vue-ui-timer-D2pn3RWL.js} +6 -6
- package/dist/{vue-ui-tiremarks-BuzKLW5l.js → vue-ui-tiremarks-BMIIhkaB.js} +7 -7
- package/dist/{vue-ui-treemap-DMwq5MYv.js → vue-ui-treemap-fFJPPf8-.js} +10 -10
- package/dist/{vue-ui-waffle-wjn4e1mz.js → vue-ui-waffle-B9TaBdel.js} +11 -11
- package/dist/{vue-ui-wheel-BS6f8xC-.js → vue-ui-wheel-BN-YBzNj.js} +7 -7
- package/dist/{vue-ui-word-cloud-BH1JB5hg.js → vue-ui-word-cloud-CZzUlZBc.js} +8 -8
- package/dist/{vue-ui-world-DtNML6Oz.js → vue-ui-world-C--4pHTs.js} +8 -8
- package/dist/{vue-ui-xy-DNvRGCN_.js → vue-ui-xy-16TcfetH.js} +47 -28
- package/dist/{vue-ui-xy-B9S7cAhC.js → vue-ui-xy-BTh5QolL.js} +31 -17
- package/dist/{vue-ui-xy-canvas-Hk0x8dd_.js → vue-ui-xy-canvas-BzbNRbft.js} +12 -12
- package/package.json +3 -3
- package/dist/vue-ui-sparkbar-Daxkni2h.js +0 -400
- package/dist/vue-ui-sparkstackbar-pip0BOeZ.js +0 -688
- package/dist/vue-ui-stackline-Dy4tIQwk.js +0 -2447
|
@@ -1,688 +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-DfMn_3jf.js";
|
|
3
|
-
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as le } from "./useConfig-BtJSJ6AK.js";
|
|
5
|
-
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as l } from "./useNestedProp-CLEe1P5W.js";
|
|
7
|
-
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
-
import { t as pe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
-
import { t as me } from "./DefGrad-DVBqDjhO.js";
|
|
10
|
-
import { t as he } from "./BaseLegendToggle-B_wibe7d.js";
|
|
11
|
-
import { t as ge } from "./A11yDataTable-DdRsVULz.js";
|
|
12
|
-
import { t as _e } from "./useChartAccessibility-DYqac8yF.js";
|
|
13
|
-
import { t as ve } from "./usePrefersMotion-BC-CsqR1.js";
|
|
14
|
-
import { t as ye } from "./vue_ui_sparkstackbar-BOjuQnZd.js";
|
|
15
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineAsyncComponent as be, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onMounted as xe, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, toRefs as Se, unref as E, useSlots as Ce, watch as we, withCtx as D } from "vue";
|
|
16
|
-
//#region src/components/vue-ui-sparkstackbar.vue
|
|
17
|
-
var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: { position: "relative" } }, Oe = [
|
|
18
|
-
"xmlns",
|
|
19
|
-
"viewBox",
|
|
20
|
-
"aria-describedby"
|
|
21
|
-
], ke = {
|
|
22
|
-
id: "stackPill",
|
|
23
|
-
clipPathUnits: "objectBoundingBox"
|
|
24
|
-
}, Ae = ["fill"], je = {
|
|
25
|
-
key: 0,
|
|
26
|
-
"clip-path": "url(#stackPill)"
|
|
27
|
-
}, Me = [
|
|
28
|
-
"x",
|
|
29
|
-
"width",
|
|
30
|
-
"height",
|
|
31
|
-
"fill"
|
|
32
|
-
], Ne = [
|
|
33
|
-
"x",
|
|
34
|
-
"width",
|
|
35
|
-
"height",
|
|
36
|
-
"fill",
|
|
37
|
-
"stroke"
|
|
38
|
-
], Pe = [
|
|
39
|
-
"x",
|
|
40
|
-
"width",
|
|
41
|
-
"height",
|
|
42
|
-
"onClick",
|
|
43
|
-
"onMouseenter",
|
|
44
|
-
"onMouseleave"
|
|
45
|
-
], Fe = [
|
|
46
|
-
"width",
|
|
47
|
-
"height",
|
|
48
|
-
"rx"
|
|
49
|
-
], Ie = {
|
|
50
|
-
key: 0,
|
|
51
|
-
style: {
|
|
52
|
-
position: "absolute",
|
|
53
|
-
top: "100%",
|
|
54
|
-
left: "0",
|
|
55
|
-
width: "100%"
|
|
56
|
-
},
|
|
57
|
-
"data-dom-to-png-ignore": "",
|
|
58
|
-
"aria-hidden": "true"
|
|
59
|
-
}, Le = [
|
|
60
|
-
"aria-pressed",
|
|
61
|
-
"aria-label",
|
|
62
|
-
"onClick",
|
|
63
|
-
"onFocus",
|
|
64
|
-
"onKeydown"
|
|
65
|
-
], Re = { style: {
|
|
66
|
-
display: "flex",
|
|
67
|
-
"flex-direction": "row",
|
|
68
|
-
"align-items": "center",
|
|
69
|
-
gap: "4px",
|
|
70
|
-
"justify-content": "center"
|
|
71
|
-
} }, ze = ["height", "width"], Be = ["fill"], Ve = {
|
|
72
|
-
key: 3,
|
|
73
|
-
ref: "source",
|
|
74
|
-
dir: "auto"
|
|
75
|
-
}, He = /*#__PURE__*/ pe({
|
|
76
|
-
__name: "vue-ui-sparkstackbar",
|
|
77
|
-
props: {
|
|
78
|
-
config: {
|
|
79
|
-
type: Object,
|
|
80
|
-
default() {
|
|
81
|
-
return {};
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
dataset: {
|
|
85
|
-
type: Array,
|
|
86
|
-
default() {
|
|
87
|
-
return [];
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
emits: ["selectDatapoint", "selectLegend"],
|
|
92
|
-
setup(e, { expose: pe, emit: Te }) {
|
|
93
|
-
let He = be(() => import("./PackageVersion-CrLLZ567.js").then((e) => e.t)), Ue = be(() => import("./Tooltip-CTgk02J6.js")), { vue_ui_sparkstackbar: We } = le(), { isThemeValid: Ge, warnInvalidTheme: Ke } = fe(), qe = ve(), Je = Ce(), O = e, Ye = S(null), k = S(ie()), A = S(!1), j = S(""), M = S(null), N = S(!1), P = S(null), Xe = S({
|
|
94
|
-
x: 0,
|
|
95
|
-
y: 0
|
|
96
|
-
}), F = S("pointer"), I = S(!1), L = S(null), Ze = S([]), R = S(H()), Qe = d(() => R.value.debug);
|
|
97
|
-
xe(() => {
|
|
98
|
-
Je["chart-background"] && Qe.value && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
99
|
-
}), se({
|
|
100
|
-
config: () => R.value,
|
|
101
|
-
dataset: () => O.dataset,
|
|
102
|
-
component: "VueUiSparkStackbar",
|
|
103
|
-
rules: [ce.emptyArray, {
|
|
104
|
-
test: (e) => e.length > 6,
|
|
105
|
-
message: [
|
|
106
|
-
"👀 The number of series is > 6. Consider:",
|
|
107
|
-
"",
|
|
108
|
-
"▶️ Grouping small values dynamically into a single \"Other\" series.",
|
|
109
|
-
"",
|
|
110
|
-
"▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
|
|
111
|
-
]
|
|
112
|
-
}]
|
|
113
|
-
});
|
|
114
|
-
let $e = d(() => R.value.useCursorPointer), et = d(() => ee({
|
|
115
|
-
defaultConfig: { style: {
|
|
116
|
-
backgroundColor: "#99999930",
|
|
117
|
-
animation: { show: !1 },
|
|
118
|
-
bar: { gradient: { inderlayerColor: "#6A6A6A" } },
|
|
119
|
-
title: { backgroundColor: "transparent" }
|
|
120
|
-
} },
|
|
121
|
-
userConfig: R.value.skeletonConfig ?? {}
|
|
122
|
-
})), { loading: z, FINAL_DATASET: B } = ue({
|
|
123
|
-
...Se(O),
|
|
124
|
-
FINAL_CONFIG: R,
|
|
125
|
-
prepareConfig: H,
|
|
126
|
-
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
127
|
-
{
|
|
128
|
-
name: "_",
|
|
129
|
-
value: 8,
|
|
130
|
-
color: "#808080"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
name: "_",
|
|
134
|
-
value: 5,
|
|
135
|
-
color: "#ADADAD"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: "_",
|
|
139
|
-
value: 3,
|
|
140
|
-
color: "#DBDBDB"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
skeletonConfig: ee({
|
|
144
|
-
defaultConfig: R.value,
|
|
145
|
-
userConfig: et.value
|
|
146
|
-
})
|
|
147
|
-
}), { svgRef: V } = _e({ config: R.value.style.title });
|
|
148
|
-
function H() {
|
|
149
|
-
let e = l({
|
|
150
|
-
userConfig: O.config,
|
|
151
|
-
defaultConfig: We
|
|
152
|
-
}), t = e.theme;
|
|
153
|
-
if (!t) return e;
|
|
154
|
-
if (!Ge.value(e)) return Ke(e), e;
|
|
155
|
-
let i = l({
|
|
156
|
-
userConfig: ye[t] || O.config,
|
|
157
|
-
defaultConfig: e
|
|
158
|
-
}), a = l({
|
|
159
|
-
userConfig: O.config,
|
|
160
|
-
defaultConfig: i
|
|
161
|
-
});
|
|
162
|
-
return {
|
|
163
|
-
...a,
|
|
164
|
-
customPalette: a.customPalette.length ? a.customPalette : r[t] || n
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
we(() => O.config, (e) => {
|
|
168
|
-
R.value = H(), nt();
|
|
169
|
-
}, { deep: !0 }), we(() => B.value, (e) => {
|
|
170
|
-
W.value = B.value.map((e, t) => ({
|
|
171
|
-
...e,
|
|
172
|
-
color: e.color ? a(e.color) : U.value[t] || n[t] || n[t % n.length]
|
|
173
|
-
})), tt();
|
|
174
|
-
}, { deep: !0 });
|
|
175
|
-
let U = d(() => oe(R.value.customPalette)), W = S(B.value.map((e, t) => ({
|
|
176
|
-
...e,
|
|
177
|
-
value: R.value.style.animation.show ? 0 : e.value || 0,
|
|
178
|
-
color: e.color ? a(e.color) : U.value[t] || n[t] || n[t % n.length]
|
|
179
|
-
}))), G = S(!0);
|
|
180
|
-
function tt() {
|
|
181
|
-
if (!R.value.style.animation.show || qe.value) {
|
|
182
|
-
G.value = !1;
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
let e = R.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;
|
|
186
|
-
G.value = !0, W.value = B.value.map((e, t) => ({
|
|
187
|
-
...e,
|
|
188
|
-
value: 0,
|
|
189
|
-
color: e.color ? a(e.color) : U.value[t] || n[t] || n[t % n.length]
|
|
190
|
-
}));
|
|
191
|
-
function s() {
|
|
192
|
-
o += i / e, o < i ? (W.value = W.value.map((e, i) => ({
|
|
193
|
-
...e,
|
|
194
|
-
value: Math.min(e.value + r[i], t[i]),
|
|
195
|
-
color: e.color ? a(e.color) : U.value[i] || n[i] || n[i % n.length]
|
|
196
|
-
})), requestAnimationFrame(s)) : (G.value = !1, W.value = B.value.map((e, r) => ({
|
|
197
|
-
...e,
|
|
198
|
-
value: t[r],
|
|
199
|
-
color: e.color ? a(e.color) : U.value[r] || n[r] || n[r % n.length],
|
|
200
|
-
id: ie()
|
|
201
|
-
})));
|
|
202
|
-
}
|
|
203
|
-
s();
|
|
204
|
-
}
|
|
205
|
-
xe(() => {
|
|
206
|
-
nt();
|
|
207
|
-
});
|
|
208
|
-
function nt() {
|
|
209
|
-
i(O.dataset) ? re({
|
|
210
|
-
componentName: "VueUiSparkStackbar",
|
|
211
|
-
type: "dataset",
|
|
212
|
-
debug: Qe.value
|
|
213
|
-
}) : Qe.value && O.dataset.forEach((e, t) => {
|
|
214
|
-
ne({
|
|
215
|
-
datasetObject: e,
|
|
216
|
-
requiredAttributes: ["name", "value"]
|
|
217
|
-
}).forEach((e) => {
|
|
218
|
-
re({
|
|
219
|
-
componentName: "VueUiSparkStackbar",
|
|
220
|
-
type: "datasetSerieAttribute",
|
|
221
|
-
property: e,
|
|
222
|
-
index: t
|
|
223
|
-
});
|
|
224
|
-
});
|
|
225
|
-
}), tt();
|
|
226
|
-
}
|
|
227
|
-
let K = S({
|
|
228
|
-
width: 500,
|
|
229
|
-
height: 16
|
|
230
|
-
}), q = S([]), rt = d(() => B.value.map((e) => e.value || 0).filter((e, t) => !q.value.includes(t)).reduce((e, t) => e + t, 0)), J = d(() => W.value.map((e, t) => {
|
|
231
|
-
let r = e.value || 0, i = r / rt.value, o = isNaN(i) ? 0 : i, s = o * K.value.width;
|
|
232
|
-
return {
|
|
233
|
-
...e,
|
|
234
|
-
color: a(B.value[t]?.color ? B.value[t]?.color : U.value[t] || n[t] || n[t % n.length]),
|
|
235
|
-
value: r,
|
|
236
|
-
proportion: o,
|
|
237
|
-
width: s,
|
|
238
|
-
seriesIndex: t,
|
|
239
|
-
proportionLabel: c({
|
|
240
|
-
v: o * 100,
|
|
241
|
-
s: "%",
|
|
242
|
-
r: R.value.style.legend.percentage.rounding
|
|
243
|
-
})
|
|
244
|
-
};
|
|
245
|
-
})), Y = d(() => J.value.filter((e, t) => !q.value.includes(t)));
|
|
246
|
-
function it() {
|
|
247
|
-
q.value.length ? q.value = [] : J.value.forEach((e, t) => {
|
|
248
|
-
q.value.push(t);
|
|
249
|
-
}), ct("selectLegend", Y.value);
|
|
250
|
-
}
|
|
251
|
-
function X(e) {
|
|
252
|
-
q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.length < W.value.length - 1 && q.value.push(e), ct("selectLegend", Y.value);
|
|
253
|
-
}
|
|
254
|
-
function at(e) {
|
|
255
|
-
return J.value.length ? J.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null);
|
|
256
|
-
}
|
|
257
|
-
function ot(e) {
|
|
258
|
-
let t = at(e);
|
|
259
|
-
t !== null && q.value.includes(t.id) && X(t.seriesIndex);
|
|
260
|
-
}
|
|
261
|
-
function st(e) {
|
|
262
|
-
let t = at(e);
|
|
263
|
-
t !== null && (q.value.includes(t.id) || X(t.seriesIndex));
|
|
264
|
-
}
|
|
265
|
-
let Z = d(() => {
|
|
266
|
-
let e = 0, t = [];
|
|
267
|
-
for (let n = 0; n < Y.value.length; n += 1) t.push({
|
|
268
|
-
...Y.value[n],
|
|
269
|
-
start: e
|
|
270
|
-
}), e += Y.value[n].width;
|
|
271
|
-
return t;
|
|
272
|
-
}), ct = Te;
|
|
273
|
-
function Q(e, t, n = !1) {
|
|
274
|
-
ct("selectDatapoint", {
|
|
275
|
-
datapoint: e,
|
|
276
|
-
index: t
|
|
277
|
-
}), R.value.events.datapointClick && !n && R.value.events.datapointClick({
|
|
278
|
-
datapoint: e,
|
|
279
|
-
seriesIndex: e.seriesIndex
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
function lt({ datapoint: e, seriesIndex: t }) {
|
|
283
|
-
A.value = !1, L.value = null, P.value = null, F.value = "pointer", R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
284
|
-
datapoint: e,
|
|
285
|
-
seriesIndex: e.seriesIndex
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
function ut({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
289
|
-
if (N.value = !1, R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
290
|
-
datapoint: e,
|
|
291
|
-
seriesIndex: e.seriesIndex
|
|
292
|
-
}), !R.value.style.tooltip.show) return;
|
|
293
|
-
F.value = n, M.value = {
|
|
294
|
-
datapoint: e,
|
|
295
|
-
seriesIndex: t,
|
|
296
|
-
config: R.value,
|
|
297
|
-
series: J.value
|
|
298
|
-
}, A.value = !0, L.value = t;
|
|
299
|
-
let r = R.value.style.tooltip.customFormat;
|
|
300
|
-
if (o(r)) try {
|
|
301
|
-
let t = r({
|
|
302
|
-
seriesIndex: e.seriesIndex,
|
|
303
|
-
datapoint: e,
|
|
304
|
-
series: J.value,
|
|
305
|
-
config: R.value
|
|
306
|
-
});
|
|
307
|
-
typeof t == "string" && (j.value = t, N.value = !0);
|
|
308
|
-
} catch {
|
|
309
|
-
console.warn("Custom format cannot be applied."), N.value = !1;
|
|
310
|
-
}
|
|
311
|
-
if (!N.value) {
|
|
312
|
-
let n = "";
|
|
313
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${R.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>(${te(R.value.style.legend.value.formatter, e.value, c({
|
|
314
|
-
p: R.value.style.legend.value.prefix,
|
|
315
|
-
v: e.value,
|
|
316
|
-
s: R.value.style.legend.value.suffix,
|
|
317
|
-
r: R.value.style.legend.value.rounding
|
|
318
|
-
}), {
|
|
319
|
-
datapoint: e,
|
|
320
|
-
seriesIndex: t
|
|
321
|
-
})})</span>`, j.value = `<div>${n}</div>`;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
function $(e) {
|
|
325
|
-
let t = Ze.value[e];
|
|
326
|
-
t && typeof t.focus == "function" && t.focus();
|
|
327
|
-
}
|
|
328
|
-
function dt(e) {
|
|
329
|
-
if (!Number.isFinite(e) || !V.value) return;
|
|
330
|
-
let t = Z.value[e];
|
|
331
|
-
if (!t) return;
|
|
332
|
-
let n = V.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
|
|
333
|
-
Xe.value = {
|
|
334
|
-
x: n.left + r / K.value.width * n.width,
|
|
335
|
-
y: n.top + i / K.value.height * n.height
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
function ft() {
|
|
339
|
-
P.value = null, I.value = !0;
|
|
340
|
-
}
|
|
341
|
-
function pt() {
|
|
342
|
-
P.value = null, F.value = "pointer", A.value = !1, L.value = null, I.value = !1;
|
|
343
|
-
}
|
|
344
|
-
function mt(e) {
|
|
345
|
-
if (!V.value || document.activeElement !== V.value || !Z.value.length) return;
|
|
346
|
-
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";
|
|
347
|
-
if (!t && !n && !r && !i && !a && !o) return;
|
|
348
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
349
|
-
P.value = null, F.value = "pointer", A.value = !1, L.value = null;
|
|
350
|
-
return;
|
|
351
|
-
}
|
|
352
|
-
if (r) {
|
|
353
|
-
if (P.value === null) return;
|
|
354
|
-
let e = Z.value[P.value];
|
|
355
|
-
if (!e) return;
|
|
356
|
-
Q(e, e.seriesIndex);
|
|
357
|
-
return;
|
|
358
|
-
}
|
|
359
|
-
let s = P.value;
|
|
360
|
-
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));
|
|
361
|
-
let c = Z.value[s];
|
|
362
|
-
c && (P.value = s, dt(s), ut({
|
|
363
|
-
datapoint: c,
|
|
364
|
-
seriesIndex: c.seriesIndex,
|
|
365
|
-
triggerMode: "keyboard"
|
|
366
|
-
}));
|
|
367
|
-
}
|
|
368
|
-
function ht(e) {
|
|
369
|
-
A.value = !1, P.value = null, F.value = "pointer", L.value = e.seriesIndex;
|
|
370
|
-
}
|
|
371
|
-
function gt() {
|
|
372
|
-
P.value = null, F.value = "pointer", A.value = !1, L.value = null;
|
|
373
|
-
}
|
|
374
|
-
function _t(e, t, n) {
|
|
375
|
-
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";
|
|
376
|
-
if (!(!r && !i && !a && !o && !s && !c)) {
|
|
377
|
-
if (e.preventDefault(), e.stopPropagation(), c) {
|
|
378
|
-
gt();
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
if (r) {
|
|
382
|
-
X(n), Q(t, n, !0);
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
385
|
-
if (o) {
|
|
386
|
-
$(0);
|
|
387
|
-
return;
|
|
388
|
-
}
|
|
389
|
-
if (s) {
|
|
390
|
-
$(J.value.length - 1);
|
|
391
|
-
return;
|
|
392
|
-
}
|
|
393
|
-
if (i) {
|
|
394
|
-
$(n <= 0 ? J.value.length - 1 : n - 1);
|
|
395
|
-
return;
|
|
396
|
-
}
|
|
397
|
-
a && $(n >= J.value.length - 1 ? 0 : n + 1);
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
let vt = d(() => ({
|
|
401
|
-
headers: [
|
|
402
|
-
R.value.a11y.translations.series,
|
|
403
|
-
R.value.a11y.translations.percentage,
|
|
404
|
-
R.value.a11y.translations.value
|
|
405
|
-
],
|
|
406
|
-
rows: J.value.map((e, t) => [
|
|
407
|
-
e.name,
|
|
408
|
-
q.value.includes(t) ? " - " : e.proportionLabel,
|
|
409
|
-
te(R.value.style.legend.value.formatter, e.value, c({
|
|
410
|
-
p: R.value.style.legend.value.prefix,
|
|
411
|
-
v: e.value,
|
|
412
|
-
s: R.value.style.legend.value.suffix,
|
|
413
|
-
r: R.value.style.legend.value.rounding
|
|
414
|
-
}), {
|
|
415
|
-
datapoint: e,
|
|
416
|
-
seriesIndex: t
|
|
417
|
-
})
|
|
418
|
-
])
|
|
419
|
-
}));
|
|
420
|
-
return pe({
|
|
421
|
-
hideSeries: st,
|
|
422
|
-
showSeries: ot
|
|
423
|
-
}), (e, n) => (x(), m("div", {
|
|
424
|
-
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
425
|
-
ref_key: "sparkstackbarChart",
|
|
426
|
-
ref: Ye,
|
|
427
|
-
style: b(`width:100%; background:${R.value.style.backgroundColor}`)
|
|
428
|
-
}, [
|
|
429
|
-
h("div", {
|
|
430
|
-
id: `chart-instructions-${k.value}`,
|
|
431
|
-
class: "sr-only"
|
|
432
|
-
}, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, Ee),
|
|
433
|
-
vt.value?.rows?.length ? (x(), f(ge, {
|
|
434
|
-
key: 0,
|
|
435
|
-
uid: k.value,
|
|
436
|
-
head: vt.value.headers,
|
|
437
|
-
body: vt.value.rows,
|
|
438
|
-
notice: R.value.a11y.translations.tableAvailable,
|
|
439
|
-
caption: R.value.a11y.translations.tableCaption
|
|
440
|
-
}, null, 8, [
|
|
441
|
-
"uid",
|
|
442
|
-
"head",
|
|
443
|
-
"body",
|
|
444
|
-
"notice",
|
|
445
|
-
"caption"
|
|
446
|
-
])) : p("", !0),
|
|
447
|
-
R.value.style.title.text ? (x(), m("div", {
|
|
448
|
-
key: 1,
|
|
449
|
-
style: b(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${R.value.style.title.margin};padding: 0 6px;text-align:${R.value.style.title.textAlign}`)
|
|
450
|
-
}, [h("div", {
|
|
451
|
-
class: "atom-title",
|
|
452
|
-
style: b(`font-size:${R.value.style.title.fontSize}px;color:${R.value.style.title.color};font-weight:${R.value.style.title.bold ? "bold" : "normal"}`)
|
|
453
|
-
}, T(R.value.style.title.text), 5), R.value.style.title.subtitle.text ? (x(), m("div", {
|
|
454
|
-
key: 0,
|
|
455
|
-
class: "atom-subtitle",
|
|
456
|
-
style: b(`font-size:${R.value.style.title.subtitle.fontSize}px;color:${R.value.style.title.subtitle.color};font-weight:${R.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
457
|
-
}, T(R.value.style.title.subtitle.text), 5)) : p("", !0)], 4)) : p("", !0),
|
|
458
|
-
h("div", De, [(x(), m("svg", {
|
|
459
|
-
ref_key: "svgRef",
|
|
460
|
-
ref: V,
|
|
461
|
-
xmlns: E(ae),
|
|
462
|
-
width: "100%",
|
|
463
|
-
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
464
|
-
"aria-describedby": `chart-instructions-${k.value}`,
|
|
465
|
-
tabindex: "0",
|
|
466
|
-
onFocus: ft,
|
|
467
|
-
onBlur: pt,
|
|
468
|
-
onKeydown: mt
|
|
469
|
-
}, [
|
|
470
|
-
g(E(He)),
|
|
471
|
-
h("defs", null, [(x(!0), m(u, null, C(Z.value, (e, n) => (x(), f(me, {
|
|
472
|
-
t: "linear",
|
|
473
|
-
id: `stack_gradient_${n}_${k.value}`,
|
|
474
|
-
key: `stack_gradient_${n}`,
|
|
475
|
-
gradientTransform: "rotate(90)",
|
|
476
|
-
stops: [
|
|
477
|
-
[
|
|
478
|
-
"0%",
|
|
479
|
-
e.color,
|
|
480
|
-
1
|
|
481
|
-
],
|
|
482
|
-
[
|
|
483
|
-
"50%",
|
|
484
|
-
E(t)(E(s)(e.color, .05), 100 - R.value.style.bar.gradient.intensity),
|
|
485
|
-
1
|
|
486
|
-
],
|
|
487
|
-
[
|
|
488
|
-
"100%",
|
|
489
|
-
e.color,
|
|
490
|
-
1
|
|
491
|
-
]
|
|
492
|
-
]
|
|
493
|
-
}, null, 8, ["id", "stops"]))), 128)), h("clipPath", ke, [h("rect", {
|
|
494
|
-
x: "0.005",
|
|
495
|
-
y: "-2",
|
|
496
|
-
width: "0.99",
|
|
497
|
-
height: "5",
|
|
498
|
-
rx: "3",
|
|
499
|
-
ry: "3",
|
|
500
|
-
fill: R.value.style.backgroundColor
|
|
501
|
-
}, null, 8, Ae)])]),
|
|
502
|
-
rt.value > 0 ? (x(), m("g", je, [
|
|
503
|
-
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
|
|
504
|
-
key: `stack_underlayer_${t}`,
|
|
505
|
-
x: e.start,
|
|
506
|
-
y: 0,
|
|
507
|
-
width: e.width,
|
|
508
|
-
height: K.value.height,
|
|
509
|
-
fill: R.value.style.bar.gradient.underlayerColor,
|
|
510
|
-
class: v({ animated: !G.value && !E(z) }),
|
|
511
|
-
style: b({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
512
|
-
}, null, 14, Me))), 128)),
|
|
513
|
-
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
|
|
514
|
-
key: `stack_${t}`,
|
|
515
|
-
x: e.start,
|
|
516
|
-
y: 0,
|
|
517
|
-
width: e.width,
|
|
518
|
-
height: K.value.height,
|
|
519
|
-
fill: R.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${k.value})` : e.color,
|
|
520
|
-
stroke: R.value.style.backgroundColor,
|
|
521
|
-
"stroke-linecap": "round",
|
|
522
|
-
class: v({ animated: !G.value && !E(z) }),
|
|
523
|
-
style: b({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
524
|
-
}, null, 14, Ne))), 128)),
|
|
525
|
-
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
|
|
526
|
-
key: `stack_trap_${t}`,
|
|
527
|
-
x: e.start,
|
|
528
|
-
y: 0,
|
|
529
|
-
width: e.width,
|
|
530
|
-
height: K.value.height,
|
|
531
|
-
fill: "transparent",
|
|
532
|
-
stroke: "none",
|
|
533
|
-
class: v({ animated: !G.value && !E(z) }),
|
|
534
|
-
onClick: () => Q(e, t),
|
|
535
|
-
onMouseenter: () => ut({
|
|
536
|
-
datapoint: e,
|
|
537
|
-
seriesIndex: t
|
|
538
|
-
}),
|
|
539
|
-
onMouseleave: (n) => lt({
|
|
540
|
-
datapoint: e,
|
|
541
|
-
seriesIndex: t
|
|
542
|
-
})
|
|
543
|
-
}, null, 42, Pe))), 128))
|
|
544
|
-
])) : (x(), m("rect", {
|
|
545
|
-
key: 1,
|
|
546
|
-
x: 2,
|
|
547
|
-
y: 1,
|
|
548
|
-
width: K.value.width - 4,
|
|
549
|
-
height: K.value.height - 2,
|
|
550
|
-
stroke: "#CCCCCC",
|
|
551
|
-
"stroke-width": "2",
|
|
552
|
-
fill: "transparent",
|
|
553
|
-
rx: (K.value.height - 4) / 2
|
|
554
|
-
}, null, 8, Fe))
|
|
555
|
-
], 40, Oe)), e.$slots.hint ? (x(), m("div", Ie, [w(e.$slots, "hint", y(_({
|
|
556
|
-
hint: R.value.a11y.translations.keyboardNavigation,
|
|
557
|
-
isVisible: I.value
|
|
558
|
-
})), void 0, !0)])) : p("", !0)]),
|
|
559
|
-
R.value.style.legend.show ? (x(), m("div", {
|
|
560
|
-
key: 2,
|
|
561
|
-
style: b(`background:transparent;margin:0 auto;margin:${R.value.style.legend.margin};justify-content:${R.value.style.legend.textAlign === "left" ? "flex-start" : R.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
562
|
-
class: "vue-ui-sparkstackbar-legend",
|
|
563
|
-
"aria-label": "legend",
|
|
564
|
-
role: "toolbar"
|
|
565
|
-
}, [R.value.style.legend.selectAllToggle.show && J.value.length > 2 && !E(z) ? (x(), f(he, {
|
|
566
|
-
key: 0,
|
|
567
|
-
backgroundColor: R.value.style.legend.selectAllToggle.backgroundColor,
|
|
568
|
-
color: R.value.style.legend.selectAllToggle.color,
|
|
569
|
-
fontSize: R.value.style.legend.fontSize,
|
|
570
|
-
checked: q.value.length > 0,
|
|
571
|
-
isCursorPointer: $e.value,
|
|
572
|
-
onToggle: it
|
|
573
|
-
}, null, 8, [
|
|
574
|
-
"backgroundColor",
|
|
575
|
-
"color",
|
|
576
|
-
"fontSize",
|
|
577
|
-
"checked",
|
|
578
|
-
"isCursorPointer"
|
|
579
|
-
])) : p("", !0), (x(!0), m(u, null, C(J.value, (e, n) => (x(), m("div", {
|
|
580
|
-
role: "button",
|
|
581
|
-
tabindex: "0",
|
|
582
|
-
"aria-pressed": q.value.includes(n),
|
|
583
|
-
"aria-label": `${e.name}, ${q.value.includes(n) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
584
|
-
style: b(`font-size:${R.value.style.legend.fontSize}px;cursor:${$e.value ? "pointer" : "default"}`),
|
|
585
|
-
class: v({
|
|
586
|
-
"vue-ui-sparkstackbar-legend-item": !0,
|
|
587
|
-
"vue-ui-sparkstackbar-legend-item-unselected": q.value.includes(n)
|
|
588
|
-
}),
|
|
589
|
-
onClick: (t) => {
|
|
590
|
-
X(n), Q(e, n, !0);
|
|
591
|
-
},
|
|
592
|
-
onFocus: (t) => ht(e),
|
|
593
|
-
onBlur: gt,
|
|
594
|
-
onKeydown: (t) => _t(t, e, n)
|
|
595
|
-
}, [h("div", Re, [(x(), m("svg", {
|
|
596
|
-
height: `${R.value.style.legend.fontSize}px`,
|
|
597
|
-
width: `${R.value.style.legend.fontSize}px`,
|
|
598
|
-
viewBox: "0 0 10 10"
|
|
599
|
-
}, [h("defs", null, [g(me, {
|
|
600
|
-
t: "radial",
|
|
601
|
-
id: `legend_grad_${n}-${k.value}`,
|
|
602
|
-
stops: [[
|
|
603
|
-
"0%",
|
|
604
|
-
E(z) ? "#FFFFFF" : E(t)(E(s)(e.color, .05), 100 - R.value.style.bar.gradient.intensity),
|
|
605
|
-
1
|
|
606
|
-
], [
|
|
607
|
-
"100%",
|
|
608
|
-
e.color,
|
|
609
|
-
1
|
|
610
|
-
]]
|
|
611
|
-
}, null, 8, ["id", "stops"])]), h("circle", {
|
|
612
|
-
cx: 5,
|
|
613
|
-
cy: 5,
|
|
614
|
-
r: 5,
|
|
615
|
-
fill: R.value.style.bar.gradient.show ? `url(#legend_grad_${n}-${k.value})` : e.color
|
|
616
|
-
}, null, 8, Be)], 8, ze)), E(z) ? p("", !0) : (x(), m(u, { key: 0 }, [h("span", { style: b(`color:${R.value.style.legend.name.color}; font-weight:${R.value.style.legend.name.bold ? "bold" : "normal"}`) }, T(e.name), 5), G.value ? p("", !0) : (x(), m(u, { key: 0 }, [R.value.style.legend.percentage.show ? (x(), m("span", {
|
|
617
|
-
key: 0,
|
|
618
|
-
style: b(`font-weight:${R.value.style.legend.percentage.bold ? "bold" : "normal"};color:${R.value.style.legend.percentage.color}`)
|
|
619
|
-
}, T(q.value.includes(n) ? " - " : e.proportionLabel), 5)) : p("", !0), R.value.style.legend.value.show ? (x(), m("span", {
|
|
620
|
-
key: 1,
|
|
621
|
-
style: b(`font-weight:${R.value.style.legend.value.bold ? "bold" : "normal"};color:${R.value.style.legend.value.color}`)
|
|
622
|
-
}, " (" + T(E(te)(R.value.style.legend.value.formatter, e.value, E(c)({
|
|
623
|
-
p: R.value.style.legend.value.prefix,
|
|
624
|
-
v: e.value,
|
|
625
|
-
s: R.value.style.legend.value.suffix,
|
|
626
|
-
r: R.value.style.legend.value.rounding
|
|
627
|
-
}), {
|
|
628
|
-
datapoint: e,
|
|
629
|
-
seriesIndex: n
|
|
630
|
-
})) + ") ", 5)) : p("", !0)], 64))], 64))])], 46, Le))), 256))], 4)) : p("", !0),
|
|
631
|
-
g(E(Ue), {
|
|
632
|
-
teleportTo: R.value.style.tooltip.teleportTo,
|
|
633
|
-
show: A.value && R.value.style.tooltip.show,
|
|
634
|
-
parent: Ye.value,
|
|
635
|
-
backgroundColor: R.value.style.tooltip.backgroundColor,
|
|
636
|
-
color: R.value.style.tooltip.color,
|
|
637
|
-
fontSize: R.value.style.tooltip.fontSize,
|
|
638
|
-
borderRadius: R.value.style.tooltip.borderRadius,
|
|
639
|
-
borderColor: R.value.style.tooltip.borderColor,
|
|
640
|
-
borderWidth: R.value.style.tooltip.borderWidth,
|
|
641
|
-
backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
|
|
642
|
-
position: R.value.style.tooltip.position,
|
|
643
|
-
content: j.value,
|
|
644
|
-
isCustom: N.value,
|
|
645
|
-
offsetX: R.value.style.tooltip.offsetX,
|
|
646
|
-
offsetY: -124 + R.value.style.tooltip.offsetY,
|
|
647
|
-
blockShiftY: !0,
|
|
648
|
-
smooth: R.value.style.tooltip.smooth,
|
|
649
|
-
backdropFilter: R.value.style.tooltip.backdropFilter,
|
|
650
|
-
smoothForce: R.value.style.tooltip.smoothForce,
|
|
651
|
-
smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
|
|
652
|
-
isA11yMode: F.value === "keyboard",
|
|
653
|
-
a11yPosition: Xe.value
|
|
654
|
-
}, {
|
|
655
|
-
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...M.value })), void 0, !0)]),
|
|
656
|
-
tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...M.value })), void 0, !0)]),
|
|
657
|
-
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...M.value })), void 0, !0)]),
|
|
658
|
-
_: 3
|
|
659
|
-
}, 8, [
|
|
660
|
-
"teleportTo",
|
|
661
|
-
"show",
|
|
662
|
-
"parent",
|
|
663
|
-
"backgroundColor",
|
|
664
|
-
"color",
|
|
665
|
-
"fontSize",
|
|
666
|
-
"borderRadius",
|
|
667
|
-
"borderColor",
|
|
668
|
-
"borderWidth",
|
|
669
|
-
"backgroundOpacity",
|
|
670
|
-
"position",
|
|
671
|
-
"content",
|
|
672
|
-
"isCustom",
|
|
673
|
-
"offsetX",
|
|
674
|
-
"offsetY",
|
|
675
|
-
"smooth",
|
|
676
|
-
"backdropFilter",
|
|
677
|
-
"smoothForce",
|
|
678
|
-
"smoothSnapThreshold",
|
|
679
|
-
"isA11yMode",
|
|
680
|
-
"a11yPosition"
|
|
681
|
-
]),
|
|
682
|
-
e.$slots.source ? (x(), m("div", Ve, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
683
|
-
w(e.$slots, "skeleton", {}, () => [E(z) ? (x(), f(de, { key: 0 })) : p("", !0)], !0)
|
|
684
|
-
], 4));
|
|
685
|
-
}
|
|
686
|
-
}, [["__scopeId", "data-v-46bfe738"]]);
|
|
687
|
-
//#endregion
|
|
688
|
-
export { Te as n, He as t };
|