vue-data-ui 3.22.2 → 3.22.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-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.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-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
- package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +69 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
- package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend-BVDhEEsC.js +0 -115
- package/dist/Slicer-ClR833cP.js +0 -1144
- package/dist/exposedLib-CffbQxjN.js +0 -19
- package/dist/img-BCAOkqfM.js +0 -74
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
- package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
- package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
- package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
- package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
- package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
- package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
- package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
- package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
- package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
- package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
- package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
- package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
- package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
- package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
- package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
- package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
2
|
+
import { Gt as t, Lt as n, Ot as r, Q as i, Rt as a, S as o, Ut as s, W as c, b as l, i as ee, jt as u, q as d, t as te, ut as ne, vt as re } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as ie } from "./useConfig-pVLia3dt.js";
|
|
4
|
+
import { n as ae, t as oe } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as se } from "./useNestedProp-BjkuFaz1.js";
|
|
6
6
|
import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
7
|
import { t as le } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
-
import { t as ue } from "./BaseLegendToggle-
|
|
8
|
+
import { t as ue } from "./BaseLegendToggle-C4Usj0LI.js";
|
|
9
9
|
import { t as de } from "./A11yDataTable-DdRsVULz.js";
|
|
10
10
|
import { t as fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
11
11
|
import { t as pe } from "./vue_ui_sparkstackbar-BOjuQnZd.js";
|
|
12
|
-
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as me, defineAsyncComponent as he, guardReactiveProps as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onMounted as ge, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toRefs as _e, unref as D, useSlots as ve, watch as ye, withCtx as
|
|
12
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as me, defineAsyncComponent as he, guardReactiveProps as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onMounted as ge, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toRefs as _e, unref as D, useSlots as ve, watch as ye, withCtx as be } from "vue";
|
|
13
13
|
//#region src/components/vue-ui-sparkstackbar.vue
|
|
14
|
-
var
|
|
14
|
+
var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { position: "relative" } }, we = [
|
|
15
15
|
"xmlns",
|
|
16
16
|
"viewBox",
|
|
17
17
|
"aria-describedby"
|
|
18
|
-
],
|
|
18
|
+
], Te = ["id"], Ee = ["stop-color"], De = ["stop-color"], Oe = ["stop-color"], ke = {
|
|
19
19
|
id: "stackPill",
|
|
20
20
|
clipPathUnits: "objectBoundingBox"
|
|
21
|
-
},
|
|
21
|
+
}, Ae = ["fill"], je = {
|
|
22
22
|
key: 0,
|
|
23
23
|
"clip-path": "url(#stackPill)"
|
|
24
|
-
},
|
|
24
|
+
}, Me = [
|
|
25
25
|
"x",
|
|
26
26
|
"width",
|
|
27
27
|
"height",
|
|
28
28
|
"fill"
|
|
29
|
-
],
|
|
29
|
+
], Ne = [
|
|
30
30
|
"x",
|
|
31
31
|
"width",
|
|
32
32
|
"height",
|
|
33
33
|
"fill",
|
|
34
34
|
"stroke"
|
|
35
|
-
],
|
|
35
|
+
], Pe = [
|
|
36
36
|
"x",
|
|
37
37
|
"width",
|
|
38
38
|
"height",
|
|
39
39
|
"onClick",
|
|
40
40
|
"onMouseenter",
|
|
41
41
|
"onMouseleave"
|
|
42
|
-
],
|
|
42
|
+
], Fe = [
|
|
43
43
|
"width",
|
|
44
44
|
"height",
|
|
45
45
|
"rx"
|
|
46
|
-
],
|
|
46
|
+
], Ie = {
|
|
47
47
|
key: 0,
|
|
48
48
|
style: {
|
|
49
49
|
position: "absolute",
|
|
@@ -53,23 +53,23 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
53
53
|
},
|
|
54
54
|
"data-dom-to-png-ignore": "",
|
|
55
55
|
"aria-hidden": "true"
|
|
56
|
-
},
|
|
56
|
+
}, Le = [
|
|
57
57
|
"aria-pressed",
|
|
58
58
|
"aria-label",
|
|
59
59
|
"onClick",
|
|
60
60
|
"onFocus",
|
|
61
61
|
"onKeydown"
|
|
62
|
-
],
|
|
62
|
+
], Re = { style: {
|
|
63
63
|
display: "flex",
|
|
64
64
|
"flex-direction": "row",
|
|
65
65
|
"align-items": "center",
|
|
66
66
|
gap: "4px",
|
|
67
67
|
"justify-content": "center"
|
|
68
|
-
} },
|
|
68
|
+
} }, ze = ["height", "width"], Be = ["id"], Ve = ["stop-color"], He = ["stop-color"], Ue = ["fill"], We = {
|
|
69
69
|
key: 3,
|
|
70
70
|
ref: "source",
|
|
71
71
|
dir: "auto"
|
|
72
|
-
},
|
|
72
|
+
}, O = /*#__PURE__*/ le({
|
|
73
73
|
__name: "vue-ui-sparkstackbar",
|
|
74
74
|
props: {
|
|
75
75
|
config: {
|
|
@@ -86,15 +86,15 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
emits: ["selectDatapoint", "selectLegend"],
|
|
89
|
-
setup(e, { expose: le, emit:
|
|
90
|
-
let
|
|
89
|
+
setup(e, { expose: le, emit: xe }) {
|
|
90
|
+
let O = he(() => import("./PackageVersion-Cm-3hwIF.js").then((e) => e.t)), Ge = he(() => import("./Tooltip-BhKov422.js")), { vue_ui_sparkstackbar: Ke } = ie(), { isThemeValid: qe, warnInvalidTheme: Je } = ce(), k = e, Ye = ve();
|
|
91
91
|
ge(() => {
|
|
92
|
-
|
|
92
|
+
Ye["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
93
93
|
});
|
|
94
|
-
let
|
|
94
|
+
let Xe = C(null), A = C(c()), j = C(!1), Ze = C(""), M = C(null), N = C(!1), P = C(null), Qe = C({
|
|
95
95
|
x: 0,
|
|
96
96
|
y: 0
|
|
97
|
-
}),
|
|
97
|
+
}), F = C("pointer"), I = C(!1), L = C(null), $e = C([]), R = C(H()), et = p(() => R.value.useCursorPointer), tt = p(() => t({
|
|
98
98
|
defaultConfig: { style: {
|
|
99
99
|
backgroundColor: "#99999930",
|
|
100
100
|
animation: { show: !1 },
|
|
@@ -102,11 +102,11 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
102
102
|
title: { backgroundColor: "transparent" }
|
|
103
103
|
} },
|
|
104
104
|
userConfig: R.value.skeletonConfig ?? {}
|
|
105
|
-
})), { loading: z, FINAL_DATASET: B } =
|
|
106
|
-
..._e(
|
|
105
|
+
})), { loading: z, FINAL_DATASET: B } = ae({
|
|
106
|
+
..._e(k),
|
|
107
107
|
FINAL_CONFIG: R,
|
|
108
108
|
prepareConfig: H,
|
|
109
|
-
skeletonDataset:
|
|
109
|
+
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
110
110
|
{
|
|
111
111
|
name: "_",
|
|
112
112
|
value: 8,
|
|
@@ -123,83 +123,83 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
123
123
|
color: "#DBDBDB"
|
|
124
124
|
}
|
|
125
125
|
],
|
|
126
|
-
skeletonConfig:
|
|
126
|
+
skeletonConfig: t({
|
|
127
127
|
defaultConfig: R.value,
|
|
128
128
|
userConfig: tt.value
|
|
129
129
|
})
|
|
130
130
|
}), { svgRef: V } = fe({ config: R.value.style.title });
|
|
131
131
|
function H() {
|
|
132
|
-
let e =
|
|
133
|
-
userConfig:
|
|
134
|
-
defaultConfig:
|
|
132
|
+
let e = se({
|
|
133
|
+
userConfig: k.config,
|
|
134
|
+
defaultConfig: Ke
|
|
135
135
|
}), t = e.theme;
|
|
136
136
|
if (!t) return e;
|
|
137
|
-
if (!
|
|
138
|
-
let n =
|
|
139
|
-
userConfig: pe[t] ||
|
|
137
|
+
if (!qe.value(e)) return Je(e), e;
|
|
138
|
+
let n = se({
|
|
139
|
+
userConfig: pe[t] || k.config,
|
|
140
140
|
defaultConfig: e
|
|
141
|
-
}), r =
|
|
142
|
-
userConfig:
|
|
141
|
+
}), r = se({
|
|
142
|
+
userConfig: k.config,
|
|
143
143
|
defaultConfig: n
|
|
144
144
|
});
|
|
145
145
|
return {
|
|
146
146
|
...r,
|
|
147
|
-
customPalette: r.customPalette.length ? r.customPalette : s[t] ||
|
|
147
|
+
customPalette: r.customPalette.length ? r.customPalette : s[t] || u
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
ye(() =>
|
|
150
|
+
ye(() => k.config, (e) => {
|
|
151
151
|
R.value = H(), it();
|
|
152
152
|
}, { deep: !0 }), ye(() => B.value, (e) => {
|
|
153
153
|
W.value = B.value.map((e, t) => ({
|
|
154
154
|
...e,
|
|
155
|
-
color: e.color ?
|
|
155
|
+
color: e.color ? l(e.color) : U.value[t] || u[t] || u[t % u.length]
|
|
156
156
|
})), nt();
|
|
157
157
|
}, { deep: !0 });
|
|
158
|
-
let U = p(() =>
|
|
158
|
+
let U = p(() => o(R.value.customPalette)), W = C(B.value.map((e, t) => ({
|
|
159
159
|
...e,
|
|
160
160
|
value: R.value.style.animation.show ? 0 : e.value || 0,
|
|
161
|
-
color: e.color ?
|
|
161
|
+
color: e.color ? l(e.color) : U.value[t] || u[t] || u[t % u.length]
|
|
162
162
|
}))), G = C(!0);
|
|
163
163
|
function nt() {
|
|
164
164
|
if (!R.value.style.animation.show) {
|
|
165
165
|
G.value = !1;
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
|
-
let e = R.value.style.animation.animationFrames, t = B.value.map((e) => e.value || 0), n = t.map((t) => t / e), r = t.reduce((e, t) => e + t, 0),
|
|
168
|
+
let e = R.value.style.animation.animationFrames, t = B.value.map((e) => e.value || 0), n = t.map((t) => t / e), r = t.reduce((e, t) => e + t, 0), i = 0;
|
|
169
169
|
G.value = !0, W.value = B.value.map((e, t) => ({
|
|
170
170
|
...e,
|
|
171
171
|
value: 0,
|
|
172
|
-
color: e.color ?
|
|
172
|
+
color: e.color ? l(e.color) : U.value[t] || u[t] || u[t % u.length]
|
|
173
173
|
}));
|
|
174
|
-
function
|
|
175
|
-
|
|
174
|
+
function a() {
|
|
175
|
+
i += r / e, i < r ? (W.value = W.value.map((e, r) => ({
|
|
176
176
|
...e,
|
|
177
177
|
value: Math.min(e.value + n[r], t[r]),
|
|
178
|
-
color: e.color ?
|
|
179
|
-
})), requestAnimationFrame(
|
|
178
|
+
color: e.color ? l(e.color) : U.value[r] || u[r] || u[r % u.length]
|
|
179
|
+
})), requestAnimationFrame(a)) : (G.value = !1, W.value = B.value.map((e, n) => ({
|
|
180
180
|
...e,
|
|
181
181
|
value: t[n],
|
|
182
|
-
color: e.color ?
|
|
183
|
-
id:
|
|
182
|
+
color: e.color ? l(e.color) : U.value[n] || u[n] || u[n % u.length],
|
|
183
|
+
id: c()
|
|
184
184
|
})));
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
a();
|
|
187
187
|
}
|
|
188
188
|
ge(() => {
|
|
189
189
|
it();
|
|
190
190
|
});
|
|
191
191
|
let rt = p(() => R.value.debug);
|
|
192
192
|
function it() {
|
|
193
|
-
|
|
193
|
+
r(k.dataset) ? i({
|
|
194
194
|
componentName: "VueUiSparkStackbar",
|
|
195
195
|
type: "dataset",
|
|
196
196
|
debug: rt.value
|
|
197
|
-
}) :
|
|
198
|
-
|
|
197
|
+
}) : k.dataset.forEach((e, t) => {
|
|
198
|
+
ne({
|
|
199
199
|
datasetObject: e,
|
|
200
200
|
requiredAttributes: ["name", "value"]
|
|
201
201
|
}).forEach((e) => {
|
|
202
|
-
|
|
202
|
+
i({
|
|
203
203
|
componentName: "VueUiSparkStackbar",
|
|
204
204
|
type: "datasetSerieAttribute",
|
|
205
205
|
property: e,
|
|
@@ -213,16 +213,16 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
213
213
|
width: 500,
|
|
214
214
|
height: 16
|
|
215
215
|
}), q = C([]), at = p(() => B.value.map((e) => e.value || 0).filter((e, t) => !q.value.includes(t)).reduce((e, t) => e + t, 0)), J = p(() => W.value.map((e, t) => {
|
|
216
|
-
let n = e.value || 0,
|
|
216
|
+
let n = e.value || 0, r = n / at.value, i = isNaN(r) ? 0 : r, a = i * K.value.width;
|
|
217
217
|
return {
|
|
218
218
|
...e,
|
|
219
|
-
color:
|
|
219
|
+
color: l(B.value[t]?.color ? B.value[t]?.color : U.value[t] || u[t] || u[t % u.length]),
|
|
220
220
|
value: n,
|
|
221
|
-
proportion:
|
|
222
|
-
width:
|
|
221
|
+
proportion: i,
|
|
222
|
+
width: a,
|
|
223
223
|
seriesIndex: t,
|
|
224
|
-
proportionLabel:
|
|
225
|
-
v:
|
|
224
|
+
proportionLabel: d({
|
|
225
|
+
v: i * 100,
|
|
226
226
|
s: "%",
|
|
227
227
|
r: R.value.style.legend.percentage.rounding
|
|
228
228
|
})
|
|
@@ -254,7 +254,7 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
254
254
|
start: e
|
|
255
255
|
}), e += Y.value[n].width;
|
|
256
256
|
return t;
|
|
257
|
-
}), ut =
|
|
257
|
+
}), ut = xe;
|
|
258
258
|
function Q(e, t, n = !1) {
|
|
259
259
|
ut("selectDatapoint", {
|
|
260
260
|
datapoint: e,
|
|
@@ -265,37 +265,37 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
function dt({ datapoint: e, seriesIndex: t }) {
|
|
268
|
-
|
|
268
|
+
j.value = !1, L.value = null, P.value = null, F.value = "pointer", R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
269
269
|
datapoint: e,
|
|
270
270
|
seriesIndex: e.seriesIndex
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
function ft({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
274
|
-
if (
|
|
274
|
+
if (N.value = !1, R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
275
275
|
datapoint: e,
|
|
276
276
|
seriesIndex: e.seriesIndex
|
|
277
277
|
}), !R.value.style.tooltip.show) return;
|
|
278
|
-
|
|
278
|
+
F.value = n, M.value = {
|
|
279
279
|
datapoint: e,
|
|
280
280
|
seriesIndex: t,
|
|
281
281
|
config: R.value,
|
|
282
282
|
series: J.value
|
|
283
|
-
},
|
|
284
|
-
let
|
|
285
|
-
if (
|
|
286
|
-
let t =
|
|
283
|
+
}, j.value = !0, L.value = t;
|
|
284
|
+
let r = R.value.style.tooltip.customFormat;
|
|
285
|
+
if (re(r)) try {
|
|
286
|
+
let t = r({
|
|
287
287
|
seriesIndex: e.seriesIndex,
|
|
288
288
|
datapoint: e,
|
|
289
289
|
series: J.value,
|
|
290
290
|
config: R.value
|
|
291
291
|
});
|
|
292
|
-
typeof t == "string" && (
|
|
292
|
+
typeof t == "string" && (Ze.value = t, N.value = !0);
|
|
293
293
|
} catch {
|
|
294
|
-
console.warn("Custom format cannot be applied."),
|
|
294
|
+
console.warn("Custom format cannot be applied."), N.value = !1;
|
|
295
295
|
}
|
|
296
|
-
if (!
|
|
296
|
+
if (!N.value) {
|
|
297
297
|
let n = "";
|
|
298
|
-
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>(${
|
|
298
|
+
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>(${ee(R.value.style.legend.value.formatter, e.value, d({
|
|
299
299
|
p: R.value.style.legend.value.prefix,
|
|
300
300
|
v: e.value,
|
|
301
301
|
s: R.value.style.legend.value.suffix,
|
|
@@ -303,7 +303,7 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
303
303
|
}), {
|
|
304
304
|
datapoint: e,
|
|
305
305
|
seriesIndex: t
|
|
306
|
-
})})</span>`,
|
|
306
|
+
})})</span>`, Ze.value = `<div>${n}</div>`;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
function $(e) {
|
|
@@ -315,46 +315,46 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
315
315
|
let t = Z.value[e];
|
|
316
316
|
if (!t) return;
|
|
317
317
|
let n = V.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
|
|
318
|
-
|
|
318
|
+
Qe.value = {
|
|
319
319
|
x: n.left + r / K.value.width * n.width,
|
|
320
320
|
y: n.top + i / K.value.height * n.height
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
function mt() {
|
|
324
|
-
|
|
324
|
+
P.value = null, I.value = !0;
|
|
325
325
|
}
|
|
326
326
|
function ht() {
|
|
327
|
-
|
|
327
|
+
P.value = null, F.value = "pointer", j.value = !1, L.value = null, I.value = !1;
|
|
328
328
|
}
|
|
329
329
|
function gt(e) {
|
|
330
330
|
if (!V.value || document.activeElement !== V.value || !Z.value.length) return;
|
|
331
331
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape", a = e.key === "Home", o = e.key === "End";
|
|
332
332
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
333
333
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
334
|
-
|
|
334
|
+
P.value = null, F.value = "pointer", j.value = !1, L.value = null;
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
337
|
if (r) {
|
|
338
|
-
if (
|
|
339
|
-
let e = Z.value[
|
|
338
|
+
if (P.value === null) return;
|
|
339
|
+
let e = Z.value[P.value];
|
|
340
340
|
if (!e) return;
|
|
341
341
|
Q(e, e.seriesIndex);
|
|
342
342
|
return;
|
|
343
343
|
}
|
|
344
|
-
let s =
|
|
344
|
+
let s = P.value;
|
|
345
345
|
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));
|
|
346
346
|
let c = Z.value[s];
|
|
347
|
-
c && (
|
|
347
|
+
c && (P.value = s, pt(s), ft({
|
|
348
348
|
datapoint: c,
|
|
349
349
|
seriesIndex: c.seriesIndex,
|
|
350
350
|
triggerMode: "keyboard"
|
|
351
351
|
}));
|
|
352
352
|
}
|
|
353
353
|
function _t(e) {
|
|
354
|
-
|
|
354
|
+
j.value = !1, P.value = null, F.value = "pointer", L.value = e.seriesIndex;
|
|
355
355
|
}
|
|
356
356
|
function vt() {
|
|
357
|
-
|
|
357
|
+
P.value = null, F.value = "pointer", j.value = !1, L.value = null;
|
|
358
358
|
}
|
|
359
359
|
function yt(e, t, n) {
|
|
360
360
|
let r = e.key === "Enter" || e.key === " ", i = e.key === "ArrowLeft" || e.key === "ArrowUp", a = e.key === "ArrowRight" || e.key === "ArrowDown", o = e.key === "Home", s = e.key === "End", c = e.key === "Escape";
|
|
@@ -391,7 +391,7 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
391
391
|
rows: J.value.map((e, t) => [
|
|
392
392
|
e.name,
|
|
393
393
|
q.value.includes(t) ? " - " : e.proportionLabel,
|
|
394
|
-
|
|
394
|
+
ee(R.value.style.legend.value.formatter, e.value, d({
|
|
395
395
|
p: R.value.style.legend.value.prefix,
|
|
396
396
|
v: e.value,
|
|
397
397
|
s: R.value.style.legend.value.suffix,
|
|
@@ -408,16 +408,16 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
408
408
|
}), (e, t) => (S(), g("div", {
|
|
409
409
|
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
410
410
|
ref_key: "sparkstackbarChart",
|
|
411
|
-
ref:
|
|
411
|
+
ref: Xe,
|
|
412
412
|
style: x(`width:100%; background:${R.value.style.backgroundColor}`)
|
|
413
413
|
}, [
|
|
414
414
|
_("div", {
|
|
415
|
-
id: `chart-instructions-${
|
|
415
|
+
id: `chart-instructions-${A.value}`,
|
|
416
416
|
class: "sr-only"
|
|
417
|
-
}, [_("p", null, E(R.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
417
|
+
}, [_("p", null, E(R.value.a11y.translations.keyboardNavigation), 1)], 8, Se),
|
|
418
418
|
bt.value?.rows?.length ? (S(), m(de, {
|
|
419
419
|
key: 0,
|
|
420
|
-
uid:
|
|
420
|
+
uid: A.value,
|
|
421
421
|
head: bt.value.headers,
|
|
422
422
|
body: bt.value.rows,
|
|
423
423
|
notice: R.value.a11y.translations.tableAvailable,
|
|
@@ -440,37 +440,37 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
440
440
|
class: "atom-subtitle",
|
|
441
441
|
style: x(`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"}`)
|
|
442
442
|
}, E(R.value.style.title.subtitle.text), 5)) : h("", !0)], 4)) : h("", !0),
|
|
443
|
-
_("div",
|
|
443
|
+
_("div", Ce, [(S(), g("svg", {
|
|
444
444
|
ref_key: "svgRef",
|
|
445
445
|
ref: V,
|
|
446
|
-
xmlns: D(
|
|
446
|
+
xmlns: D(te),
|
|
447
447
|
width: "100%",
|
|
448
448
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
449
|
-
"aria-describedby": `chart-instructions-${
|
|
449
|
+
"aria-describedby": `chart-instructions-${A.value}`,
|
|
450
450
|
tabindex: "0",
|
|
451
451
|
onFocus: mt,
|
|
452
452
|
onBlur: ht,
|
|
453
453
|
onKeydown: gt
|
|
454
454
|
}, [
|
|
455
|
-
me(D(
|
|
455
|
+
me(D(O)),
|
|
456
456
|
_("defs", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("linearGradient", {
|
|
457
457
|
key: `stack_gradient_${t}`,
|
|
458
458
|
gradientTransform: "rotate(90)",
|
|
459
|
-
id: `stack_gradient_${t}_${
|
|
459
|
+
id: `stack_gradient_${t}_${A.value}`
|
|
460
460
|
}, [
|
|
461
461
|
_("stop", {
|
|
462
462
|
offset: "0%",
|
|
463
463
|
"stop-color": e.color
|
|
464
|
-
}, null, 8,
|
|
464
|
+
}, null, 8, Ee),
|
|
465
465
|
_("stop", {
|
|
466
466
|
offset: "50%",
|
|
467
467
|
"stop-color": D(n)(D(a)(e.color, .05), 100 - R.value.style.bar.gradient.intensity)
|
|
468
|
-
}, null, 8,
|
|
468
|
+
}, null, 8, De),
|
|
469
469
|
_("stop", {
|
|
470
470
|
offset: "100%",
|
|
471
471
|
"stop-color": e.color
|
|
472
|
-
}, null, 8,
|
|
473
|
-
], 8,
|
|
472
|
+
}, null, 8, Oe)
|
|
473
|
+
], 8, Te))), 128)), _("clipPath", ke, [_("rect", {
|
|
474
474
|
x: "0.005",
|
|
475
475
|
y: "-2",
|
|
476
476
|
width: "0.99",
|
|
@@ -478,8 +478,8 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
478
478
|
rx: "3",
|
|
479
479
|
ry: "3",
|
|
480
480
|
fill: R.value.style.backgroundColor
|
|
481
|
-
}, null, 8,
|
|
482
|
-
at.value > 0 ? (S(), g("g",
|
|
481
|
+
}, null, 8, Ae)])]),
|
|
482
|
+
at.value > 0 ? (S(), g("g", je, [
|
|
483
483
|
(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
|
|
484
484
|
key: `stack_underlayer_${t}`,
|
|
485
485
|
x: e.start,
|
|
@@ -489,19 +489,19 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
489
489
|
fill: R.value.style.bar.gradient.underlayerColor,
|
|
490
490
|
class: y({ animated: !G.value && !D(z) }),
|
|
491
491
|
style: x({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
492
|
-
}, null, 14,
|
|
492
|
+
}, null, 14, Me))), 128)),
|
|
493
493
|
(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
|
|
494
494
|
key: `stack_${t}`,
|
|
495
495
|
x: e.start,
|
|
496
496
|
y: 0,
|
|
497
497
|
width: e.width,
|
|
498
498
|
height: K.value.height,
|
|
499
|
-
fill: R.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${
|
|
499
|
+
fill: R.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${A.value})` : e.color,
|
|
500
500
|
stroke: R.value.style.backgroundColor,
|
|
501
501
|
"stroke-linecap": "round",
|
|
502
502
|
class: y({ animated: !G.value && !D(z) }),
|
|
503
503
|
style: x({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
504
|
-
}, null, 14,
|
|
504
|
+
}, null, 14, Ne))), 128)),
|
|
505
505
|
(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
|
|
506
506
|
key: `stack_trap_${t}`,
|
|
507
507
|
x: e.start,
|
|
@@ -520,7 +520,7 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
520
520
|
datapoint: e,
|
|
521
521
|
seriesIndex: t
|
|
522
522
|
})
|
|
523
|
-
}, null, 42,
|
|
523
|
+
}, null, 42, Pe))), 128))
|
|
524
524
|
])) : (S(), g("rect", {
|
|
525
525
|
key: 1,
|
|
526
526
|
x: 2,
|
|
@@ -531,10 +531,10 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
531
531
|
"stroke-width": "2",
|
|
532
532
|
fill: "transparent",
|
|
533
533
|
rx: (K.value.height - 4) / 2
|
|
534
|
-
}, null, 8,
|
|
535
|
-
], 40,
|
|
534
|
+
}, null, 8, Fe))
|
|
535
|
+
], 40, we)), e.$slots.hint ? (S(), g("div", Ie, [T(e.$slots, "hint", b(v({
|
|
536
536
|
hint: R.value.a11y.translations.keyboardNavigation,
|
|
537
|
-
isVisible:
|
|
537
|
+
isVisible: I.value
|
|
538
538
|
})), void 0, !0)])) : h("", !0)]),
|
|
539
539
|
R.value.style.legend.show ? (S(), g("div", {
|
|
540
540
|
key: 2,
|
|
@@ -572,28 +572,28 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
572
572
|
onFocus: (t) => _t(e),
|
|
573
573
|
onBlur: vt,
|
|
574
574
|
onKeydown: (n) => yt(n, e, t)
|
|
575
|
-
}, [_("div",
|
|
575
|
+
}, [_("div", Re, [(S(), g("svg", {
|
|
576
576
|
height: `${R.value.style.legend.fontSize}px`,
|
|
577
577
|
width: `${R.value.style.legend.fontSize}px`,
|
|
578
578
|
viewBox: "0 0 10 10"
|
|
579
|
-
}, [_("defs", null, [_("radialGradient", { id: `legend_grad_${t}-${
|
|
579
|
+
}, [_("defs", null, [_("radialGradient", { id: `legend_grad_${t}-${A.value}` }, [_("stop", {
|
|
580
580
|
offset: "0%",
|
|
581
581
|
"stop-color": D(z) ? "#FFFFFF" : D(n)(D(a)(e.color, .05), 100 - R.value.style.bar.gradient.intensity)
|
|
582
|
-
}, null, 8,
|
|
582
|
+
}, null, 8, Ve), _("stop", {
|
|
583
583
|
offset: "100%",
|
|
584
584
|
"stop-color": e.color
|
|
585
|
-
}, null, 8,
|
|
585
|
+
}, null, 8, He)], 8, Be)]), _("circle", {
|
|
586
586
|
cx: 5,
|
|
587
587
|
cy: 5,
|
|
588
588
|
r: 5,
|
|
589
|
-
fill: R.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${
|
|
590
|
-
}, null, 8,
|
|
589
|
+
fill: R.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${A.value})` : e.color
|
|
590
|
+
}, null, 8, Ue)], 8, ze)), D(z) ? h("", !0) : (S(), g(f, { key: 0 }, [_("span", { style: x(`color:${R.value.style.legend.name.color}; font-weight:${R.value.style.legend.name.bold ? "bold" : "normal"}`) }, E(e.name), 5), G.value ? h("", !0) : (S(), g(f, { key: 0 }, [R.value.style.legend.percentage.show ? (S(), g("span", {
|
|
591
591
|
key: 0,
|
|
592
592
|
style: x(`font-weight:${R.value.style.legend.percentage.bold ? "bold" : "normal"};color:${R.value.style.legend.percentage.color}`)
|
|
593
593
|
}, E(q.value.includes(t) ? " - " : e.proportionLabel), 5)) : h("", !0), R.value.style.legend.value.show ? (S(), g("span", {
|
|
594
594
|
key: 1,
|
|
595
595
|
style: x(`font-weight:${R.value.style.legend.value.bold ? "bold" : "normal"};color:${R.value.style.legend.value.color}`)
|
|
596
|
-
}, " (" + E(D(
|
|
596
|
+
}, " (" + E(D(ee)(R.value.style.legend.value.formatter, e.value, D(d)({
|
|
597
597
|
p: R.value.style.legend.value.prefix,
|
|
598
598
|
v: e.value,
|
|
599
599
|
s: R.value.style.legend.value.suffix,
|
|
@@ -601,11 +601,11 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
601
601
|
}), {
|
|
602
602
|
datapoint: e,
|
|
603
603
|
seriesIndex: t
|
|
604
|
-
})) + ") ", 5)) : h("", !0)], 64))], 64))])], 46,
|
|
605
|
-
me(D(
|
|
604
|
+
})) + ") ", 5)) : h("", !0)], 64))], 64))])], 46, Le))), 256))], 4)) : h("", !0),
|
|
605
|
+
me(D(Ge), {
|
|
606
606
|
teleportTo: R.value.style.tooltip.teleportTo,
|
|
607
|
-
show:
|
|
608
|
-
parent:
|
|
607
|
+
show: j.value && R.value.style.tooltip.show,
|
|
608
|
+
parent: Xe.value,
|
|
609
609
|
backgroundColor: R.value.style.tooltip.backgroundColor,
|
|
610
610
|
color: R.value.style.tooltip.color,
|
|
611
611
|
fontSize: R.value.style.tooltip.fontSize,
|
|
@@ -614,8 +614,8 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
614
614
|
borderWidth: R.value.style.tooltip.borderWidth,
|
|
615
615
|
backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
|
|
616
616
|
position: R.value.style.tooltip.position,
|
|
617
|
-
content:
|
|
618
|
-
isCustom:
|
|
617
|
+
content: Ze.value,
|
|
618
|
+
isCustom: N.value,
|
|
619
619
|
offsetX: R.value.style.tooltip.offsetX,
|
|
620
620
|
offsetY: -124 + R.value.style.tooltip.offsetY,
|
|
621
621
|
blockShiftY: !0,
|
|
@@ -623,12 +623,12 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
623
623
|
backdropFilter: R.value.style.tooltip.backdropFilter,
|
|
624
624
|
smoothForce: R.value.style.tooltip.smoothForce,
|
|
625
625
|
smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
|
|
626
|
-
isA11yMode:
|
|
627
|
-
a11yPosition:
|
|
626
|
+
isA11yMode: F.value === "keyboard",
|
|
627
|
+
a11yPosition: Qe.value
|
|
628
628
|
}, {
|
|
629
|
-
"tooltip-before":
|
|
630
|
-
tooltip:
|
|
631
|
-
"tooltip-after":
|
|
629
|
+
"tooltip-before": be(() => [T(e.$slots, "tooltip-before", b(v({ ...M.value })), void 0, !0)]),
|
|
630
|
+
tooltip: be(() => [T(e.$slots, "tooltip", b(v({ ...M.value })), void 0, !0)]),
|
|
631
|
+
"tooltip-after": be(() => [T(e.$slots, "tooltip-after", b(v({ ...M.value })), void 0, !0)]),
|
|
632
632
|
_: 3
|
|
633
633
|
}, 8, [
|
|
634
634
|
"teleportTo",
|
|
@@ -653,10 +653,10 @@ var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { p
|
|
|
653
653
|
"isA11yMode",
|
|
654
654
|
"a11yPosition"
|
|
655
655
|
]),
|
|
656
|
-
e.$slots.source ? (S(), g("div",
|
|
657
|
-
T(e.$slots, "skeleton", {}, () => [D(z) ? (S(), m(
|
|
656
|
+
e.$slots.source ? (S(), g("div", We, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
657
|
+
T(e.$slots, "skeleton", {}, () => [D(z) ? (S(), m(oe, { key: 0 })) : h("", !0)], !0)
|
|
658
658
|
], 4));
|
|
659
659
|
}
|
|
660
660
|
}, [["__scopeId", "data-v-706a37e5"]]);
|
|
661
661
|
//#endregion
|
|
662
|
-
export {
|
|
662
|
+
export { xe as n, O as t };
|