vue-data-ui 3.23.9 → 3.23.11
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/README.md +40 -40
- package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.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-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-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
- package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
- 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 +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
- package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
- package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
- package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
- package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
- package/dist/vue-ui-chord-BuConnPN.js +1345 -0
- package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
- package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
- package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
- package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
- package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
- package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
- package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
- package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
- package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
- package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
- package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
- package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
- package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
- package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
- package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
- package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
- package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
- package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
- package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
- package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
- package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
- package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
- package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
- package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
- package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
- package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
- package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
- package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
- package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
- package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
- package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
- package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
- package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
- package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
- package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
- package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
- package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
- package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
- package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
- package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
- package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
- package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
- package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
- package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
- package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
- package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
- package/package.json +1 -1
- package/dist/exposedLib-C0DPCgFj.js +0 -28
- package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
- package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
- package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
- package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
- package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
- package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
- package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
- package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
- package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
- package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
- package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
- package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
- package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
- package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
- package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
- package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
- package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
- package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
- package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
- package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
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-Dqr_-I6Y.js";
|
|
3
3
|
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as le } from "./useConfig-DwdGsXTx.js";
|
|
5
5
|
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as l } from "./useNestedProp-
|
|
6
|
+
import { t as l } from "./useNestedProp-CulPqtou.js";
|
|
7
7
|
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
8
|
import { t as pe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
9
|
import { t as me } from "./DefGrad-DVBqDjhO.js";
|
|
10
|
-
import { t as he } from "./BaseLegendToggle-
|
|
10
|
+
import { t as he } from "./BaseLegendToggle-CtEdLr4R.js";
|
|
11
11
|
import { t as ge } from "./A11yDataTable-DdRsVULz.js";
|
|
12
12
|
import { t as _e } from "./useChartAccessibility-DYqac8yF.js";
|
|
13
13
|
import { t as ve } from "./usePrefersMotion-BC-CsqR1.js";
|
|
14
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
|
|
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
16
|
//#region src/components/vue-ui-sparkstackbar.vue
|
|
17
|
-
var
|
|
17
|
+
var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: { position: "relative" } }, Oe = [
|
|
18
18
|
"xmlns",
|
|
19
19
|
"viewBox",
|
|
20
20
|
"aria-describedby"
|
|
21
|
-
],
|
|
21
|
+
], ke = {
|
|
22
22
|
id: "stackPill",
|
|
23
23
|
clipPathUnits: "objectBoundingBox"
|
|
24
|
-
},
|
|
24
|
+
}, Ae = ["fill"], je = {
|
|
25
25
|
key: 0,
|
|
26
26
|
"clip-path": "url(#stackPill)"
|
|
27
|
-
},
|
|
27
|
+
}, Me = [
|
|
28
28
|
"x",
|
|
29
29
|
"width",
|
|
30
30
|
"height",
|
|
31
31
|
"fill"
|
|
32
|
-
],
|
|
32
|
+
], Ne = [
|
|
33
33
|
"x",
|
|
34
34
|
"width",
|
|
35
35
|
"height",
|
|
36
36
|
"fill",
|
|
37
37
|
"stroke"
|
|
38
|
-
],
|
|
38
|
+
], Pe = [
|
|
39
39
|
"x",
|
|
40
40
|
"width",
|
|
41
41
|
"height",
|
|
42
42
|
"onClick",
|
|
43
43
|
"onMouseenter",
|
|
44
44
|
"onMouseleave"
|
|
45
|
-
],
|
|
45
|
+
], Fe = [
|
|
46
46
|
"width",
|
|
47
47
|
"height",
|
|
48
48
|
"rx"
|
|
49
|
-
],
|
|
49
|
+
], Ie = {
|
|
50
50
|
key: 0,
|
|
51
51
|
style: {
|
|
52
52
|
position: "absolute",
|
|
@@ -56,23 +56,23 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
56
56
|
},
|
|
57
57
|
"data-dom-to-png-ignore": "",
|
|
58
58
|
"aria-hidden": "true"
|
|
59
|
-
},
|
|
59
|
+
}, Le = [
|
|
60
60
|
"aria-pressed",
|
|
61
61
|
"aria-label",
|
|
62
62
|
"onClick",
|
|
63
63
|
"onFocus",
|
|
64
64
|
"onKeydown"
|
|
65
|
-
],
|
|
65
|
+
], Re = { style: {
|
|
66
66
|
display: "flex",
|
|
67
67
|
"flex-direction": "row",
|
|
68
68
|
"align-items": "center",
|
|
69
69
|
gap: "4px",
|
|
70
70
|
"justify-content": "center"
|
|
71
|
-
} },
|
|
71
|
+
} }, ze = ["height", "width"], Be = ["fill"], Ve = {
|
|
72
72
|
key: 3,
|
|
73
73
|
ref: "source",
|
|
74
74
|
dir: "auto"
|
|
75
|
-
},
|
|
75
|
+
}, He = /*#__PURE__*/ pe({
|
|
76
76
|
__name: "vue-ui-sparkstackbar",
|
|
77
77
|
props: {
|
|
78
78
|
config: {
|
|
@@ -89,16 +89,16 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
emits: ["selectDatapoint", "selectLegend"],
|
|
92
|
-
setup(e, { expose: pe, emit:
|
|
93
|
-
let
|
|
92
|
+
setup(e, { expose: pe, emit: Te }) {
|
|
93
|
+
let He = be(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), Ue = be(() => import("./Tooltip-CVxJe3UW.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
94
|
x: 0,
|
|
95
95
|
y: 0
|
|
96
|
-
}),
|
|
97
|
-
|
|
98
|
-
|
|
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
99
|
}), se({
|
|
100
|
-
config: () =>
|
|
101
|
-
dataset: () =>
|
|
100
|
+
config: () => R.value,
|
|
101
|
+
dataset: () => O.dataset,
|
|
102
102
|
component: "VueUiSparkStackbar",
|
|
103
103
|
rules: [ce.emptyArray, {
|
|
104
104
|
test: (e) => e.length > 6,
|
|
@@ -111,19 +111,19 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
111
111
|
]
|
|
112
112
|
}]
|
|
113
113
|
});
|
|
114
|
-
let $e = d(() =>
|
|
114
|
+
let $e = d(() => R.value.useCursorPointer), et = d(() => ee({
|
|
115
115
|
defaultConfig: { style: {
|
|
116
116
|
backgroundColor: "#99999930",
|
|
117
117
|
animation: { show: !1 },
|
|
118
118
|
bar: { gradient: { inderlayerColor: "#6A6A6A" } },
|
|
119
119
|
title: { backgroundColor: "transparent" }
|
|
120
120
|
} },
|
|
121
|
-
userConfig:
|
|
121
|
+
userConfig: R.value.skeletonConfig ?? {}
|
|
122
122
|
})), { loading: z, FINAL_DATASET: B } = ue({
|
|
123
|
-
...
|
|
124
|
-
FINAL_CONFIG:
|
|
123
|
+
...Se(O),
|
|
124
|
+
FINAL_CONFIG: R,
|
|
125
125
|
prepareConfig: H,
|
|
126
|
-
skeletonDataset:
|
|
126
|
+
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
127
127
|
{
|
|
128
128
|
name: "_",
|
|
129
129
|
value: 8,
|
|
@@ -140,82 +140,82 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
140
140
|
color: "#DBDBDB"
|
|
141
141
|
}
|
|
142
142
|
],
|
|
143
|
-
skeletonConfig:
|
|
144
|
-
defaultConfig:
|
|
143
|
+
skeletonConfig: ee({
|
|
144
|
+
defaultConfig: R.value,
|
|
145
145
|
userConfig: et.value
|
|
146
146
|
})
|
|
147
|
-
}), { svgRef: V } = _e({ config:
|
|
147
|
+
}), { svgRef: V } = _e({ config: R.value.style.title });
|
|
148
148
|
function H() {
|
|
149
149
|
let e = l({
|
|
150
|
-
userConfig:
|
|
151
|
-
defaultConfig:
|
|
150
|
+
userConfig: O.config,
|
|
151
|
+
defaultConfig: We
|
|
152
152
|
}), t = e.theme;
|
|
153
153
|
if (!t) return e;
|
|
154
|
-
if (!
|
|
155
|
-
let
|
|
156
|
-
userConfig: ye[t] ||
|
|
154
|
+
if (!Ge.value(e)) return Ke(e), e;
|
|
155
|
+
let i = l({
|
|
156
|
+
userConfig: ye[t] || O.config,
|
|
157
157
|
defaultConfig: e
|
|
158
158
|
}), a = l({
|
|
159
|
-
userConfig:
|
|
160
|
-
defaultConfig:
|
|
159
|
+
userConfig: O.config,
|
|
160
|
+
defaultConfig: i
|
|
161
161
|
});
|
|
162
162
|
return {
|
|
163
163
|
...a,
|
|
164
|
-
customPalette: a.customPalette.length ? a.customPalette : r[t] ||
|
|
164
|
+
customPalette: a.customPalette.length ? a.customPalette : r[t] || n
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}, { deep: !0 }),
|
|
167
|
+
we(() => O.config, (e) => {
|
|
168
|
+
R.value = H(), nt();
|
|
169
|
+
}, { deep: !0 }), we(() => B.value, (e) => {
|
|
170
170
|
W.value = B.value.map((e, t) => ({
|
|
171
171
|
...e,
|
|
172
|
-
color: e.color ? a(e.color) : U.value[t] ||
|
|
172
|
+
color: e.color ? a(e.color) : U.value[t] || n[t] || n[t % n.length]
|
|
173
173
|
})), tt();
|
|
174
174
|
}, { deep: !0 });
|
|
175
|
-
let U = d(() =>
|
|
175
|
+
let U = d(() => oe(R.value.customPalette)), W = S(B.value.map((e, t) => ({
|
|
176
176
|
...e,
|
|
177
|
-
value:
|
|
178
|
-
color: e.color ? a(e.color) : U.value[t] ||
|
|
179
|
-
}))), G =
|
|
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
180
|
function tt() {
|
|
181
|
-
if (!
|
|
181
|
+
if (!R.value.style.animation.show || qe.value) {
|
|
182
182
|
G.value = !1;
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
|
-
let e =
|
|
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
186
|
G.value = !0, W.value = B.value.map((e, t) => ({
|
|
187
187
|
...e,
|
|
188
188
|
value: 0,
|
|
189
|
-
color: e.color ? a(e.color) : U.value[t] ||
|
|
189
|
+
color: e.color ? a(e.color) : U.value[t] || n[t] || n[t % n.length]
|
|
190
190
|
}));
|
|
191
191
|
function s() {
|
|
192
|
-
o +=
|
|
192
|
+
o += i / e, o < i ? (W.value = W.value.map((e, i) => ({
|
|
193
193
|
...e,
|
|
194
|
-
value: Math.min(e.value +
|
|
195
|
-
color: e.color ? a(e.color) : U.value[
|
|
196
|
-
})), requestAnimationFrame(s)) : (G.value = !1, W.value = B.value.map((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
197
|
...e,
|
|
198
|
-
value: t[
|
|
199
|
-
color: e.color ? a(e.color) : U.value[
|
|
200
|
-
id:
|
|
198
|
+
value: t[r],
|
|
199
|
+
color: e.color ? a(e.color) : U.value[r] || n[r] || n[r % n.length],
|
|
200
|
+
id: ie()
|
|
201
201
|
})));
|
|
202
202
|
}
|
|
203
203
|
s();
|
|
204
204
|
}
|
|
205
|
-
|
|
205
|
+
xe(() => {
|
|
206
206
|
nt();
|
|
207
207
|
});
|
|
208
208
|
function nt() {
|
|
209
|
-
|
|
209
|
+
i(O.dataset) ? re({
|
|
210
210
|
componentName: "VueUiSparkStackbar",
|
|
211
211
|
type: "dataset",
|
|
212
|
-
debug:
|
|
213
|
-
}) :
|
|
214
|
-
|
|
212
|
+
debug: Qe.value
|
|
213
|
+
}) : Qe.value && O.dataset.forEach((e, t) => {
|
|
214
|
+
ne({
|
|
215
215
|
datasetObject: e,
|
|
216
216
|
requiredAttributes: ["name", "value"]
|
|
217
217
|
}).forEach((e) => {
|
|
218
|
-
|
|
218
|
+
re({
|
|
219
219
|
componentName: "VueUiSparkStackbar",
|
|
220
220
|
type: "datasetSerieAttribute",
|
|
221
221
|
property: e,
|
|
@@ -224,22 +224,22 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
224
224
|
});
|
|
225
225
|
}), tt();
|
|
226
226
|
}
|
|
227
|
-
let K =
|
|
227
|
+
let K = S({
|
|
228
228
|
width: 500,
|
|
229
229
|
height: 16
|
|
230
|
-
}), q =
|
|
231
|
-
let
|
|
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
232
|
return {
|
|
233
233
|
...e,
|
|
234
|
-
color: a(B.value[t]?.color ? B.value[t]?.color : U.value[t] ||
|
|
235
|
-
value:
|
|
234
|
+
color: a(B.value[t]?.color ? B.value[t]?.color : U.value[t] || n[t] || n[t % n.length]),
|
|
235
|
+
value: r,
|
|
236
236
|
proportion: o,
|
|
237
|
-
width:
|
|
237
|
+
width: s,
|
|
238
238
|
seriesIndex: t,
|
|
239
|
-
proportionLabel:
|
|
239
|
+
proportionLabel: c({
|
|
240
240
|
v: o * 100,
|
|
241
241
|
s: "%",
|
|
242
|
-
r:
|
|
242
|
+
r: R.value.style.legend.percentage.rounding
|
|
243
243
|
})
|
|
244
244
|
};
|
|
245
245
|
})), Y = d(() => J.value.filter((e, t) => !q.value.includes(t)));
|
|
@@ -252,7 +252,7 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
252
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
253
|
}
|
|
254
254
|
function at(e) {
|
|
255
|
-
return J.value.length ? J.value.find((t) => t.name === 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
256
|
}
|
|
257
257
|
function ot(e) {
|
|
258
258
|
let t = at(e);
|
|
@@ -269,60 +269,60 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
269
269
|
start: e
|
|
270
270
|
}), e += Y.value[n].width;
|
|
271
271
|
return t;
|
|
272
|
-
}), ct =
|
|
272
|
+
}), ct = Te;
|
|
273
273
|
function Q(e, t, n = !1) {
|
|
274
274
|
ct("selectDatapoint", {
|
|
275
275
|
datapoint: e,
|
|
276
276
|
index: t
|
|
277
|
-
}),
|
|
277
|
+
}), R.value.events.datapointClick && !n && R.value.events.datapointClick({
|
|
278
278
|
datapoint: e,
|
|
279
279
|
seriesIndex: e.seriesIndex
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
282
|
function lt({ datapoint: e, seriesIndex: t }) {
|
|
283
|
-
|
|
283
|
+
A.value = !1, L.value = null, P.value = null, F.value = "pointer", R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
284
284
|
datapoint: e,
|
|
285
285
|
seriesIndex: e.seriesIndex
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
288
|
function ut({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
289
|
-
if (
|
|
289
|
+
if (N.value = !1, R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
290
290
|
datapoint: e,
|
|
291
291
|
seriesIndex: e.seriesIndex
|
|
292
|
-
}), !
|
|
293
|
-
|
|
292
|
+
}), !R.value.style.tooltip.show) return;
|
|
293
|
+
F.value = n, M.value = {
|
|
294
294
|
datapoint: e,
|
|
295
295
|
seriesIndex: t,
|
|
296
|
-
config:
|
|
296
|
+
config: R.value,
|
|
297
297
|
series: J.value
|
|
298
|
-
},
|
|
299
|
-
let r =
|
|
300
|
-
if (
|
|
298
|
+
}, A.value = !0, L.value = t;
|
|
299
|
+
let r = R.value.style.tooltip.customFormat;
|
|
300
|
+
if (o(r)) try {
|
|
301
301
|
let t = r({
|
|
302
302
|
seriesIndex: e.seriesIndex,
|
|
303
303
|
datapoint: e,
|
|
304
304
|
series: J.value,
|
|
305
|
-
config:
|
|
305
|
+
config: R.value
|
|
306
306
|
});
|
|
307
|
-
typeof t == "string" && (
|
|
307
|
+
typeof t == "string" && (j.value = t, N.value = !0);
|
|
308
308
|
} catch {
|
|
309
|
-
console.warn("Custom format cannot be applied."),
|
|
309
|
+
console.warn("Custom format cannot be applied."), N.value = !1;
|
|
310
310
|
}
|
|
311
|
-
if (!
|
|
311
|
+
if (!N.value) {
|
|
312
312
|
let n = "";
|
|
313
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
314
|
-
p:
|
|
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
315
|
v: e.value,
|
|
316
|
-
s:
|
|
317
|
-
r:
|
|
316
|
+
s: R.value.style.legend.value.suffix,
|
|
317
|
+
r: R.value.style.legend.value.rounding
|
|
318
318
|
}), {
|
|
319
319
|
datapoint: e,
|
|
320
320
|
seriesIndex: t
|
|
321
|
-
})})</span>`,
|
|
321
|
+
})})</span>`, j.value = `<div>${n}</div>`;
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
function $(e) {
|
|
325
|
-
let t =
|
|
325
|
+
let t = Ze.value[e];
|
|
326
326
|
t && typeof t.focus == "function" && t.focus();
|
|
327
327
|
}
|
|
328
328
|
function dt(e) {
|
|
@@ -330,46 +330,46 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
330
330
|
let t = Z.value[e];
|
|
331
331
|
if (!t) return;
|
|
332
332
|
let n = V.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
|
|
333
|
-
|
|
333
|
+
Xe.value = {
|
|
334
334
|
x: n.left + r / K.value.width * n.width,
|
|
335
335
|
y: n.top + i / K.value.height * n.height
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
338
|
function ft() {
|
|
339
|
-
|
|
339
|
+
P.value = null, I.value = !0;
|
|
340
340
|
}
|
|
341
341
|
function pt() {
|
|
342
|
-
|
|
342
|
+
P.value = null, F.value = "pointer", A.value = !1, L.value = null, I.value = !1;
|
|
343
343
|
}
|
|
344
344
|
function mt(e) {
|
|
345
345
|
if (!V.value || document.activeElement !== V.value || !Z.value.length) return;
|
|
346
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
347
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
348
348
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
349
|
-
|
|
349
|
+
P.value = null, F.value = "pointer", A.value = !1, L.value = null;
|
|
350
350
|
return;
|
|
351
351
|
}
|
|
352
352
|
if (r) {
|
|
353
|
-
if (
|
|
354
|
-
let e = Z.value[
|
|
353
|
+
if (P.value === null) return;
|
|
354
|
+
let e = Z.value[P.value];
|
|
355
355
|
if (!e) return;
|
|
356
356
|
Q(e, e.seriesIndex);
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
|
-
let s =
|
|
359
|
+
let s = P.value;
|
|
360
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
361
|
let c = Z.value[s];
|
|
362
|
-
c && (
|
|
362
|
+
c && (P.value = s, dt(s), ut({
|
|
363
363
|
datapoint: c,
|
|
364
364
|
seriesIndex: c.seriesIndex,
|
|
365
365
|
triggerMode: "keyboard"
|
|
366
366
|
}));
|
|
367
367
|
}
|
|
368
368
|
function ht(e) {
|
|
369
|
-
|
|
369
|
+
A.value = !1, P.value = null, F.value = "pointer", L.value = e.seriesIndex;
|
|
370
370
|
}
|
|
371
371
|
function gt() {
|
|
372
|
-
|
|
372
|
+
P.value = null, F.value = "pointer", A.value = !1, L.value = null;
|
|
373
373
|
}
|
|
374
374
|
function _t(e, t, n) {
|
|
375
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";
|
|
@@ -399,18 +399,18 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
399
399
|
}
|
|
400
400
|
let vt = d(() => ({
|
|
401
401
|
headers: [
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
402
|
+
R.value.a11y.translations.series,
|
|
403
|
+
R.value.a11y.translations.percentage,
|
|
404
|
+
R.value.a11y.translations.value
|
|
405
405
|
],
|
|
406
406
|
rows: J.value.map((e, t) => [
|
|
407
407
|
e.name,
|
|
408
408
|
q.value.includes(t) ? " - " : e.proportionLabel,
|
|
409
|
-
|
|
410
|
-
p:
|
|
409
|
+
te(R.value.style.legend.value.formatter, e.value, c({
|
|
410
|
+
p: R.value.style.legend.value.prefix,
|
|
411
411
|
v: e.value,
|
|
412
|
-
s:
|
|
413
|
-
r:
|
|
412
|
+
s: R.value.style.legend.value.suffix,
|
|
413
|
+
r: R.value.style.legend.value.rounding
|
|
414
414
|
}), {
|
|
415
415
|
datapoint: e,
|
|
416
416
|
seriesIndex: t
|
|
@@ -420,23 +420,23 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
420
420
|
return pe({
|
|
421
421
|
hideSeries: st,
|
|
422
422
|
showSeries: ot
|
|
423
|
-
}), (e, n) => (
|
|
423
|
+
}), (e, n) => (x(), m("div", {
|
|
424
424
|
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
425
425
|
ref_key: "sparkstackbarChart",
|
|
426
|
-
ref:
|
|
427
|
-
style:
|
|
426
|
+
ref: Ye,
|
|
427
|
+
style: b(`width:100%; background:${R.value.style.backgroundColor}`)
|
|
428
428
|
}, [
|
|
429
429
|
h("div", {
|
|
430
|
-
id: `chart-instructions-${
|
|
430
|
+
id: `chart-instructions-${k.value}`,
|
|
431
431
|
class: "sr-only"
|
|
432
|
-
}, [h("p", null,
|
|
433
|
-
vt.value?.rows?.length ? (
|
|
432
|
+
}, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, Ee),
|
|
433
|
+
vt.value?.rows?.length ? (x(), f(ge, {
|
|
434
434
|
key: 0,
|
|
435
|
-
uid:
|
|
435
|
+
uid: k.value,
|
|
436
436
|
head: vt.value.headers,
|
|
437
437
|
body: vt.value.rows,
|
|
438
|
-
notice:
|
|
439
|
-
caption:
|
|
438
|
+
notice: R.value.a11y.translations.tableAvailable,
|
|
439
|
+
caption: R.value.a11y.translations.tableCaption
|
|
440
440
|
}, null, 8, [
|
|
441
441
|
"uid",
|
|
442
442
|
"head",
|
|
@@ -444,33 +444,33 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
444
444
|
"notice",
|
|
445
445
|
"caption"
|
|
446
446
|
])) : p("", !0),
|
|
447
|
-
|
|
447
|
+
R.value.style.title.text ? (x(), m("div", {
|
|
448
448
|
key: 1,
|
|
449
|
-
style:
|
|
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
450
|
}, [h("div", {
|
|
451
451
|
class: "atom-title",
|
|
452
|
-
style:
|
|
453
|
-
},
|
|
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
454
|
key: 0,
|
|
455
455
|
class: "atom-subtitle",
|
|
456
|
-
style:
|
|
457
|
-
},
|
|
458
|
-
h("div",
|
|
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
459
|
ref_key: "svgRef",
|
|
460
460
|
ref: V,
|
|
461
|
-
xmlns:
|
|
461
|
+
xmlns: E(ae),
|
|
462
462
|
width: "100%",
|
|
463
463
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
464
|
-
"aria-describedby": `chart-instructions-${
|
|
464
|
+
"aria-describedby": `chart-instructions-${k.value}`,
|
|
465
465
|
tabindex: "0",
|
|
466
466
|
onFocus: ft,
|
|
467
467
|
onBlur: pt,
|
|
468
468
|
onKeydown: mt
|
|
469
469
|
}, [
|
|
470
|
-
|
|
471
|
-
h("defs", null, [(
|
|
470
|
+
g(E(He)),
|
|
471
|
+
h("defs", null, [(x(!0), m(u, null, C(Z.value, (e, n) => (x(), f(me, {
|
|
472
472
|
t: "linear",
|
|
473
|
-
id: `stack_gradient_${n}_${
|
|
473
|
+
id: `stack_gradient_${n}_${k.value}`,
|
|
474
474
|
key: `stack_gradient_${n}`,
|
|
475
475
|
gradientTransform: "rotate(90)",
|
|
476
476
|
stops: [
|
|
@@ -481,7 +481,7 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
481
481
|
],
|
|
482
482
|
[
|
|
483
483
|
"50%",
|
|
484
|
-
|
|
484
|
+
E(t)(E(s)(e.color, .05), 100 - R.value.style.bar.gradient.intensity),
|
|
485
485
|
1
|
|
486
486
|
],
|
|
487
487
|
[
|
|
@@ -490,39 +490,39 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
490
490
|
1
|
|
491
491
|
]
|
|
492
492
|
]
|
|
493
|
-
}, null, 8, ["id", "stops"]))), 128)), h("clipPath",
|
|
493
|
+
}, null, 8, ["id", "stops"]))), 128)), h("clipPath", ke, [h("rect", {
|
|
494
494
|
x: "0.005",
|
|
495
495
|
y: "-2",
|
|
496
496
|
width: "0.99",
|
|
497
497
|
height: "5",
|
|
498
498
|
rx: "3",
|
|
499
499
|
ry: "3",
|
|
500
|
-
fill:
|
|
501
|
-
}, null, 8,
|
|
502
|
-
rt.value > 0 ? (
|
|
503
|
-
(
|
|
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
504
|
key: `stack_underlayer_${t}`,
|
|
505
505
|
x: e.start,
|
|
506
506
|
y: 0,
|
|
507
507
|
width: e.width,
|
|
508
508
|
height: K.value.height,
|
|
509
|
-
fill:
|
|
510
|
-
class:
|
|
511
|
-
style:
|
|
512
|
-
}, null, 14,
|
|
513
|
-
(
|
|
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
514
|
key: `stack_${t}`,
|
|
515
515
|
x: e.start,
|
|
516
516
|
y: 0,
|
|
517
517
|
width: e.width,
|
|
518
518
|
height: K.value.height,
|
|
519
|
-
fill:
|
|
520
|
-
stroke:
|
|
519
|
+
fill: R.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${k.value})` : e.color,
|
|
520
|
+
stroke: R.value.style.backgroundColor,
|
|
521
521
|
"stroke-linecap": "round",
|
|
522
|
-
class:
|
|
523
|
-
style:
|
|
524
|
-
}, null, 14,
|
|
525
|
-
(
|
|
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
526
|
key: `stack_trap_${t}`,
|
|
527
527
|
x: e.start,
|
|
528
528
|
y: 0,
|
|
@@ -530,7 +530,7 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
530
530
|
height: K.value.height,
|
|
531
531
|
fill: "transparent",
|
|
532
532
|
stroke: "none",
|
|
533
|
-
class:
|
|
533
|
+
class: v({ animated: !G.value && !E(z) }),
|
|
534
534
|
onClick: () => Q(e, t),
|
|
535
535
|
onMouseenter: () => ut({
|
|
536
536
|
datapoint: e,
|
|
@@ -540,8 +540,8 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
540
540
|
datapoint: e,
|
|
541
541
|
seriesIndex: t
|
|
542
542
|
})
|
|
543
|
-
}, null, 42,
|
|
544
|
-
])) : (
|
|
543
|
+
}, null, 42, Pe))), 128))
|
|
544
|
+
])) : (x(), m("rect", {
|
|
545
545
|
key: 1,
|
|
546
546
|
x: 2,
|
|
547
547
|
y: 1,
|
|
@@ -551,22 +551,22 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
551
551
|
"stroke-width": "2",
|
|
552
552
|
fill: "transparent",
|
|
553
553
|
rx: (K.value.height - 4) / 2
|
|
554
|
-
}, null, 8,
|
|
555
|
-
], 40,
|
|
556
|
-
hint:
|
|
557
|
-
isVisible:
|
|
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
558
|
})), void 0, !0)])) : p("", !0)]),
|
|
559
|
-
|
|
559
|
+
R.value.style.legend.show ? (x(), m("div", {
|
|
560
560
|
key: 2,
|
|
561
|
-
style:
|
|
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
562
|
class: "vue-ui-sparkstackbar-legend",
|
|
563
563
|
"aria-label": "legend",
|
|
564
564
|
role: "toolbar"
|
|
565
|
-
}, [
|
|
565
|
+
}, [R.value.style.legend.selectAllToggle.show && J.value.length > 2 && !E(z) ? (x(), f(he, {
|
|
566
566
|
key: 0,
|
|
567
|
-
backgroundColor:
|
|
568
|
-
color:
|
|
569
|
-
fontSize:
|
|
567
|
+
backgroundColor: R.value.style.legend.selectAllToggle.backgroundColor,
|
|
568
|
+
color: R.value.style.legend.selectAllToggle.color,
|
|
569
|
+
fontSize: R.value.style.legend.fontSize,
|
|
570
570
|
checked: q.value.length > 0,
|
|
571
571
|
isCursorPointer: $e.value,
|
|
572
572
|
onToggle: it
|
|
@@ -576,13 +576,13 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
576
576
|
"fontSize",
|
|
577
577
|
"checked",
|
|
578
578
|
"isCursorPointer"
|
|
579
|
-
])) : p("", !0), (
|
|
579
|
+
])) : p("", !0), (x(!0), m(u, null, C(J.value, (e, n) => (x(), m("div", {
|
|
580
580
|
role: "button",
|
|
581
581
|
tabindex: "0",
|
|
582
582
|
"aria-pressed": q.value.includes(n),
|
|
583
583
|
"aria-label": `${e.name}, ${q.value.includes(n) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
584
|
-
style:
|
|
585
|
-
class:
|
|
584
|
+
style: b(`font-size:${R.value.style.legend.fontSize}px;cursor:${$e.value ? "pointer" : "default"}`),
|
|
585
|
+
class: v({
|
|
586
586
|
"vue-ui-sparkstackbar-legend-item": !0,
|
|
587
587
|
"vue-ui-sparkstackbar-legend-item-unselected": q.value.includes(n)
|
|
588
588
|
}),
|
|
@@ -592,16 +592,16 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
592
592
|
onFocus: (t) => ht(e),
|
|
593
593
|
onBlur: gt,
|
|
594
594
|
onKeydown: (t) => _t(t, e, n)
|
|
595
|
-
}, [h("div",
|
|
596
|
-
height: `${
|
|
597
|
-
width: `${
|
|
595
|
+
}, [h("div", Re, [(x(), m("svg", {
|
|
596
|
+
height: `${R.value.style.legend.fontSize}px`,
|
|
597
|
+
width: `${R.value.style.legend.fontSize}px`,
|
|
598
598
|
viewBox: "0 0 10 10"
|
|
599
|
-
}, [h("defs", null, [
|
|
599
|
+
}, [h("defs", null, [g(me, {
|
|
600
600
|
t: "radial",
|
|
601
|
-
id: `legend_grad_${n}-${
|
|
601
|
+
id: `legend_grad_${n}-${k.value}`,
|
|
602
602
|
stops: [[
|
|
603
603
|
"0%",
|
|
604
|
-
|
|
604
|
+
E(z) ? "#FFFFFF" : E(t)(E(s)(e.color, .05), 100 - R.value.style.bar.gradient.intensity),
|
|
605
605
|
1
|
|
606
606
|
], [
|
|
607
607
|
"100%",
|
|
@@ -612,49 +612,49 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
612
612
|
cx: 5,
|
|
613
613
|
cy: 5,
|
|
614
614
|
r: 5,
|
|
615
|
-
fill:
|
|
616
|
-
}, null, 8,
|
|
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
617
|
key: 0,
|
|
618
|
-
style:
|
|
619
|
-
},
|
|
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
620
|
key: 1,
|
|
621
|
-
style:
|
|
622
|
-
}, " (" +
|
|
623
|
-
p:
|
|
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
624
|
v: e.value,
|
|
625
|
-
s:
|
|
626
|
-
r:
|
|
625
|
+
s: R.value.style.legend.value.suffix,
|
|
626
|
+
r: R.value.style.legend.value.rounding
|
|
627
627
|
}), {
|
|
628
628
|
datapoint: e,
|
|
629
629
|
seriesIndex: n
|
|
630
|
-
})) + ") ", 5)) : p("", !0)], 64))], 64))])], 46,
|
|
631
|
-
|
|
632
|
-
teleportTo:
|
|
633
|
-
show:
|
|
634
|
-
parent:
|
|
635
|
-
backgroundColor:
|
|
636
|
-
color:
|
|
637
|
-
fontSize:
|
|
638
|
-
borderRadius:
|
|
639
|
-
borderColor:
|
|
640
|
-
borderWidth:
|
|
641
|
-
backgroundOpacity:
|
|
642
|
-
position:
|
|
643
|
-
content:
|
|
644
|
-
isCustom:
|
|
645
|
-
offsetX:
|
|
646
|
-
offsetY: -124 +
|
|
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
647
|
blockShiftY: !0,
|
|
648
|
-
smooth:
|
|
649
|
-
backdropFilter:
|
|
650
|
-
smoothForce:
|
|
651
|
-
smoothSnapThreshold:
|
|
652
|
-
isA11yMode:
|
|
653
|
-
a11yPosition:
|
|
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
654
|
}, {
|
|
655
|
-
"tooltip-before":
|
|
656
|
-
tooltip:
|
|
657
|
-
"tooltip-after":
|
|
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
658
|
_: 3
|
|
659
659
|
}, 8, [
|
|
660
660
|
"teleportTo",
|
|
@@ -679,10 +679,10 @@ var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { p
|
|
|
679
679
|
"isA11yMode",
|
|
680
680
|
"a11yPosition"
|
|
681
681
|
]),
|
|
682
|
-
e.$slots.source ? (
|
|
683
|
-
|
|
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
684
|
], 4));
|
|
685
685
|
}
|
|
686
686
|
}, [["__scopeId", "data-v-46bfe738"]]);
|
|
687
687
|
//#endregion
|
|
688
|
-
export {
|
|
688
|
+
export { Te as n, He as t };
|