vue-data-ui 3.22.7 → 3.22.9
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,49 +1,50 @@
|
|
|
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
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
2
|
+
import { $ as t, G as n, J as r, Kt as i, Mt as a, Rt as o, S as s, Wt as c, b as l, dt as ee, i as u, kt as te, t as ne, yt as re, zt as ie } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as ae } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as ce } from "./useNestedProp-DIuuzG1r.js";
|
|
6
|
+
import { t as le } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as ue } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
+
import { t as de } from "./DefGrad-DVBqDjhO.js";
|
|
9
|
+
import { t as fe } from "./BaseLegendToggle-DWtet-Hh.js";
|
|
10
|
+
import { t as pe } from "./A11yDataTable-DdRsVULz.js";
|
|
11
|
+
import { t as me } from "./useChartAccessibility-DYqac8yF.js";
|
|
12
|
+
import { t as he } from "./vue_ui_sparkstackbar-BOjuQnZd.js";
|
|
13
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineAsyncComponent as ge, guardReactiveProps as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onMounted as _e, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toRefs as ve, unref as D, useSlots as ye, watch as be, withCtx as O } from "vue";
|
|
13
14
|
//#region src/components/vue-ui-sparkstackbar.vue
|
|
14
|
-
var xe = /* @__PURE__ */ e({ default: () =>
|
|
15
|
+
var xe = /* @__PURE__ */ e({ default: () => Re }), Se = ["id"], Ce = { style: { position: "relative" } }, we = [
|
|
15
16
|
"xmlns",
|
|
16
17
|
"viewBox",
|
|
17
18
|
"aria-describedby"
|
|
18
|
-
], Te =
|
|
19
|
+
], Te = {
|
|
19
20
|
id: "stackPill",
|
|
20
21
|
clipPathUnits: "objectBoundingBox"
|
|
21
|
-
},
|
|
22
|
+
}, Ee = ["fill"], De = {
|
|
22
23
|
key: 0,
|
|
23
24
|
"clip-path": "url(#stackPill)"
|
|
24
|
-
},
|
|
25
|
+
}, Oe = [
|
|
25
26
|
"x",
|
|
26
27
|
"width",
|
|
27
28
|
"height",
|
|
28
29
|
"fill"
|
|
29
|
-
],
|
|
30
|
+
], ke = [
|
|
30
31
|
"x",
|
|
31
32
|
"width",
|
|
32
33
|
"height",
|
|
33
34
|
"fill",
|
|
34
35
|
"stroke"
|
|
35
|
-
],
|
|
36
|
+
], Ae = [
|
|
36
37
|
"x",
|
|
37
38
|
"width",
|
|
38
39
|
"height",
|
|
39
40
|
"onClick",
|
|
40
41
|
"onMouseenter",
|
|
41
42
|
"onMouseleave"
|
|
42
|
-
],
|
|
43
|
+
], je = [
|
|
43
44
|
"width",
|
|
44
45
|
"height",
|
|
45
46
|
"rx"
|
|
46
|
-
],
|
|
47
|
+
], Me = {
|
|
47
48
|
key: 0,
|
|
48
49
|
style: {
|
|
49
50
|
position: "absolute",
|
|
@@ -53,23 +54,23 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
53
54
|
},
|
|
54
55
|
"data-dom-to-png-ignore": "",
|
|
55
56
|
"aria-hidden": "true"
|
|
56
|
-
},
|
|
57
|
+
}, Ne = [
|
|
57
58
|
"aria-pressed",
|
|
58
59
|
"aria-label",
|
|
59
60
|
"onClick",
|
|
60
61
|
"onFocus",
|
|
61
62
|
"onKeydown"
|
|
62
|
-
],
|
|
63
|
+
], Pe = { style: {
|
|
63
64
|
display: "flex",
|
|
64
65
|
"flex-direction": "row",
|
|
65
66
|
"align-items": "center",
|
|
66
67
|
gap: "4px",
|
|
67
68
|
"justify-content": "center"
|
|
68
|
-
} },
|
|
69
|
+
} }, Fe = ["height", "width"], Ie = ["fill"], Le = {
|
|
69
70
|
key: 3,
|
|
70
71
|
ref: "source",
|
|
71
72
|
dir: "auto"
|
|
72
|
-
},
|
|
73
|
+
}, Re = /*#__PURE__*/ ue({
|
|
73
74
|
__name: "vue-ui-sparkstackbar",
|
|
74
75
|
props: {
|
|
75
76
|
config: {
|
|
@@ -86,15 +87,15 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
86
87
|
}
|
|
87
88
|
},
|
|
88
89
|
emits: ["selectDatapoint", "selectLegend"],
|
|
89
|
-
setup(e, { expose:
|
|
90
|
-
let
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
setup(e, { expose: ue, emit: xe }) {
|
|
91
|
+
let Re = ge(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), ze = ge(() => import("./Tooltip-CxOrWlFy.js")), { vue_ui_sparkstackbar: Be } = ae(), { isThemeValid: Ve, warnInvalidTheme: He } = le(), k = e, Ue = ye();
|
|
92
|
+
_e(() => {
|
|
93
|
+
Ue["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
93
94
|
});
|
|
94
|
-
let
|
|
95
|
+
let We = C(null), A = C(n()), j = C(!1), Ge = C(""), M = C(null), N = C(!1), P = C(null), Ke = C({
|
|
95
96
|
x: 0,
|
|
96
97
|
y: 0
|
|
97
|
-
}), F = C("pointer"), I = C(!1), L = C(null),
|
|
98
|
+
}), F = C("pointer"), I = C(!1), L = C(null), qe = C([]), R = C(H()), Je = f(() => R.value.useCursorPointer), Ye = f(() => i({
|
|
98
99
|
defaultConfig: { style: {
|
|
99
100
|
backgroundColor: "#99999930",
|
|
100
101
|
animation: { show: !1 },
|
|
@@ -102,8 +103,8 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
102
103
|
title: { backgroundColor: "transparent" }
|
|
103
104
|
} },
|
|
104
105
|
userConfig: R.value.skeletonConfig ?? {}
|
|
105
|
-
})), { loading: z, FINAL_DATASET: B } =
|
|
106
|
-
...
|
|
106
|
+
})), { loading: z, FINAL_DATASET: B } = oe({
|
|
107
|
+
...ve(k),
|
|
107
108
|
FINAL_CONFIG: R,
|
|
108
109
|
prepareConfig: H,
|
|
109
110
|
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
@@ -123,140 +124,140 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
123
124
|
color: "#DBDBDB"
|
|
124
125
|
}
|
|
125
126
|
],
|
|
126
|
-
skeletonConfig:
|
|
127
|
+
skeletonConfig: i({
|
|
127
128
|
defaultConfig: R.value,
|
|
128
|
-
userConfig:
|
|
129
|
+
userConfig: Ye.value
|
|
129
130
|
})
|
|
130
|
-
}), { svgRef: V } =
|
|
131
|
+
}), { svgRef: V } = me({ config: R.value.style.title });
|
|
131
132
|
function H() {
|
|
132
|
-
let e =
|
|
133
|
+
let e = ce({
|
|
133
134
|
userConfig: k.config,
|
|
134
|
-
defaultConfig:
|
|
135
|
+
defaultConfig: Be
|
|
135
136
|
}), t = e.theme;
|
|
136
137
|
if (!t) return e;
|
|
137
|
-
if (!
|
|
138
|
-
let n =
|
|
139
|
-
userConfig:
|
|
138
|
+
if (!Ve.value(e)) return He(e), e;
|
|
139
|
+
let n = ce({
|
|
140
|
+
userConfig: he[t] || k.config,
|
|
140
141
|
defaultConfig: e
|
|
141
|
-
}), r =
|
|
142
|
+
}), r = ce({
|
|
142
143
|
userConfig: k.config,
|
|
143
144
|
defaultConfig: n
|
|
144
145
|
});
|
|
145
146
|
return {
|
|
146
147
|
...r,
|
|
147
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
148
|
+
customPalette: r.customPalette.length ? r.customPalette : c[t] || a
|
|
148
149
|
};
|
|
149
150
|
}
|
|
150
|
-
|
|
151
|
-
R.value = H(),
|
|
152
|
-
}, { deep: !0 }),
|
|
151
|
+
be(() => k.config, (e) => {
|
|
152
|
+
R.value = H(), Qe();
|
|
153
|
+
}, { deep: !0 }), be(() => B.value, (e) => {
|
|
153
154
|
W.value = B.value.map((e, t) => ({
|
|
154
155
|
...e,
|
|
155
|
-
color: e.color ? l(e.color) : U.value[t] ||
|
|
156
|
-
})),
|
|
156
|
+
color: e.color ? l(e.color) : U.value[t] || a[t] || a[t % a.length]
|
|
157
|
+
})), Xe();
|
|
157
158
|
}, { deep: !0 });
|
|
158
|
-
let U =
|
|
159
|
+
let U = f(() => s(R.value.customPalette)), W = C(B.value.map((e, t) => ({
|
|
159
160
|
...e,
|
|
160
161
|
value: R.value.style.animation.show ? 0 : e.value || 0,
|
|
161
|
-
color: e.color ? l(e.color) : U.value[t] ||
|
|
162
|
+
color: e.color ? l(e.color) : U.value[t] || a[t] || a[t % a.length]
|
|
162
163
|
}))), G = C(!0);
|
|
163
|
-
function
|
|
164
|
+
function Xe() {
|
|
164
165
|
if (!R.value.style.animation.show) {
|
|
165
166
|
G.value = !1;
|
|
166
167
|
return;
|
|
167
168
|
}
|
|
168
|
-
let e = R.value.style.animation.animationFrames, t = B.value.map((e) => e.value || 0),
|
|
169
|
+
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;
|
|
169
170
|
G.value = !0, W.value = B.value.map((e, t) => ({
|
|
170
171
|
...e,
|
|
171
172
|
value: 0,
|
|
172
|
-
color: e.color ? l(e.color) : U.value[t] ||
|
|
173
|
+
color: e.color ? l(e.color) : U.value[t] || a[t] || a[t % a.length]
|
|
173
174
|
}));
|
|
174
|
-
function
|
|
175
|
-
|
|
175
|
+
function s() {
|
|
176
|
+
o += i / e, o < i ? (W.value = W.value.map((e, n) => ({
|
|
176
177
|
...e,
|
|
177
|
-
value: Math.min(e.value + n
|
|
178
|
-
color: e.color ? l(e.color) : U.value[
|
|
179
|
-
})), requestAnimationFrame(
|
|
178
|
+
value: Math.min(e.value + r[n], t[n]),
|
|
179
|
+
color: e.color ? l(e.color) : U.value[n] || a[n] || a[n % a.length]
|
|
180
|
+
})), requestAnimationFrame(s)) : (G.value = !1, W.value = B.value.map((e, r) => ({
|
|
180
181
|
...e,
|
|
181
|
-
value: t[
|
|
182
|
-
color: e.color ? l(e.color) : U.value[
|
|
183
|
-
id:
|
|
182
|
+
value: t[r],
|
|
183
|
+
color: e.color ? l(e.color) : U.value[r] || a[r] || a[r % a.length],
|
|
184
|
+
id: n()
|
|
184
185
|
})));
|
|
185
186
|
}
|
|
186
|
-
|
|
187
|
+
s();
|
|
187
188
|
}
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
_e(() => {
|
|
190
|
+
Qe();
|
|
190
191
|
});
|
|
191
|
-
let
|
|
192
|
-
function
|
|
193
|
-
|
|
192
|
+
let Ze = f(() => R.value.debug);
|
|
193
|
+
function Qe() {
|
|
194
|
+
te(k.dataset) ? t({
|
|
194
195
|
componentName: "VueUiSparkStackbar",
|
|
195
196
|
type: "dataset",
|
|
196
|
-
debug:
|
|
197
|
-
}) : k.dataset.forEach((e,
|
|
198
|
-
|
|
197
|
+
debug: Ze.value
|
|
198
|
+
}) : k.dataset.forEach((e, n) => {
|
|
199
|
+
ee({
|
|
199
200
|
datasetObject: e,
|
|
200
201
|
requiredAttributes: ["name", "value"]
|
|
201
202
|
}).forEach((e) => {
|
|
202
|
-
|
|
203
|
+
t({
|
|
203
204
|
componentName: "VueUiSparkStackbar",
|
|
204
205
|
type: "datasetSerieAttribute",
|
|
205
206
|
property: e,
|
|
206
|
-
index:
|
|
207
|
-
debug:
|
|
207
|
+
index: n,
|
|
208
|
+
debug: Ze.value
|
|
208
209
|
});
|
|
209
210
|
});
|
|
210
|
-
}),
|
|
211
|
+
}), Xe();
|
|
211
212
|
}
|
|
212
213
|
let K = C({
|
|
213
214
|
width: 500,
|
|
214
215
|
height: 16
|
|
215
|
-
}), q = C([]),
|
|
216
|
-
let n = e.value || 0,
|
|
216
|
+
}), q = C([]), $e = f(() => B.value.map((e) => e.value || 0).filter((e, t) => !q.value.includes(t)).reduce((e, t) => e + t, 0)), J = f(() => W.value.map((e, t) => {
|
|
217
|
+
let n = e.value || 0, i = n / $e.value, o = isNaN(i) ? 0 : i, s = o * K.value.width;
|
|
217
218
|
return {
|
|
218
219
|
...e,
|
|
219
|
-
color: l(B.value[t]?.color ? B.value[t]?.color : U.value[t] ||
|
|
220
|
+
color: l(B.value[t]?.color ? B.value[t]?.color : U.value[t] || a[t] || a[t % a.length]),
|
|
220
221
|
value: n,
|
|
221
|
-
proportion:
|
|
222
|
-
width:
|
|
222
|
+
proportion: o,
|
|
223
|
+
width: s,
|
|
223
224
|
seriesIndex: t,
|
|
224
|
-
proportionLabel:
|
|
225
|
-
v:
|
|
225
|
+
proportionLabel: r({
|
|
226
|
+
v: o * 100,
|
|
226
227
|
s: "%",
|
|
227
228
|
r: R.value.style.legend.percentage.rounding
|
|
228
229
|
})
|
|
229
230
|
};
|
|
230
|
-
})), Y =
|
|
231
|
-
function
|
|
231
|
+
})), Y = f(() => J.value.filter((e, t) => !q.value.includes(t)));
|
|
232
|
+
function et() {
|
|
232
233
|
q.value.length ? q.value = [] : J.value.forEach((e, t) => {
|
|
233
234
|
q.value.push(t);
|
|
234
|
-
}),
|
|
235
|
+
}), it("selectLegend", Y.value);
|
|
235
236
|
}
|
|
236
237
|
function X(e) {
|
|
237
|
-
q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.length < W.value.length - 1 && q.value.push(e),
|
|
238
|
+
q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.length < W.value.length - 1 && q.value.push(e), it("selectLegend", Y.value);
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
+
function tt(e) {
|
|
240
241
|
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);
|
|
241
242
|
}
|
|
242
|
-
function
|
|
243
|
-
let t =
|
|
243
|
+
function nt(e) {
|
|
244
|
+
let t = tt(e);
|
|
244
245
|
t !== null && q.value.includes(t.id) && X(t.seriesIndex);
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
-
let t =
|
|
247
|
+
function rt(e) {
|
|
248
|
+
let t = tt(e);
|
|
248
249
|
t !== null && (q.value.includes(t.id) || X(t.seriesIndex));
|
|
249
250
|
}
|
|
250
|
-
let Z =
|
|
251
|
+
let Z = f(() => {
|
|
251
252
|
let e = 0, t = [];
|
|
252
253
|
for (let n = 0; n < Y.value.length; n += 1) t.push({
|
|
253
254
|
...Y.value[n],
|
|
254
255
|
start: e
|
|
255
256
|
}), e += Y.value[n].width;
|
|
256
257
|
return t;
|
|
257
|
-
}),
|
|
258
|
+
}), it = xe;
|
|
258
259
|
function Q(e, t, n = !1) {
|
|
259
|
-
|
|
260
|
+
it("selectDatapoint", {
|
|
260
261
|
datapoint: e,
|
|
261
262
|
index: t
|
|
262
263
|
}), R.value.events.datapointClick && !n && R.value.events.datapointClick({
|
|
@@ -264,13 +265,13 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
264
265
|
seriesIndex: e.seriesIndex
|
|
265
266
|
});
|
|
266
267
|
}
|
|
267
|
-
function
|
|
268
|
+
function at({ datapoint: e, seriesIndex: t }) {
|
|
268
269
|
j.value = !1, L.value = null, P.value = null, F.value = "pointer", R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
269
270
|
datapoint: e,
|
|
270
271
|
seriesIndex: e.seriesIndex
|
|
271
272
|
});
|
|
272
273
|
}
|
|
273
|
-
function
|
|
274
|
+
function ot({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
274
275
|
if (N.value = !1, R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
275
276
|
datapoint: e,
|
|
276
277
|
seriesIndex: e.seriesIndex
|
|
@@ -281,21 +282,21 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
281
282
|
config: R.value,
|
|
282
283
|
series: J.value
|
|
283
284
|
}, j.value = !0, L.value = t;
|
|
284
|
-
let
|
|
285
|
-
if (re(
|
|
286
|
-
let t =
|
|
285
|
+
let i = R.value.style.tooltip.customFormat;
|
|
286
|
+
if (re(i)) try {
|
|
287
|
+
let t = i({
|
|
287
288
|
seriesIndex: e.seriesIndex,
|
|
288
289
|
datapoint: e,
|
|
289
290
|
series: J.value,
|
|
290
291
|
config: R.value
|
|
291
292
|
});
|
|
292
|
-
typeof t == "string" && (
|
|
293
|
+
typeof t == "string" && (Ge.value = t, N.value = !0);
|
|
293
294
|
} catch {
|
|
294
295
|
console.warn("Custom format cannot be applied."), N.value = !1;
|
|
295
296
|
}
|
|
296
297
|
if (!N.value) {
|
|
297
298
|
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>(${
|
|
299
|
+
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>(${u(R.value.style.legend.value.formatter, e.value, r({
|
|
299
300
|
p: R.value.style.legend.value.prefix,
|
|
300
301
|
v: e.value,
|
|
301
302
|
s: R.value.style.legend.value.suffix,
|
|
@@ -303,30 +304,30 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
303
304
|
}), {
|
|
304
305
|
datapoint: e,
|
|
305
306
|
seriesIndex: t
|
|
306
|
-
})})</span>`,
|
|
307
|
+
})})</span>`, Ge.value = `<div>${n}</div>`;
|
|
307
308
|
}
|
|
308
309
|
}
|
|
309
310
|
function $(e) {
|
|
310
|
-
let t =
|
|
311
|
+
let t = qe.value[e];
|
|
311
312
|
t && typeof t.focus == "function" && t.focus();
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
+
function st(e) {
|
|
314
315
|
if (!Number.isFinite(e) || !V.value) return;
|
|
315
316
|
let t = Z.value[e];
|
|
316
317
|
if (!t) return;
|
|
317
318
|
let n = V.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
|
|
318
|
-
|
|
319
|
+
Ke.value = {
|
|
319
320
|
x: n.left + r / K.value.width * n.width,
|
|
320
321
|
y: n.top + i / K.value.height * n.height
|
|
321
322
|
};
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function ct() {
|
|
324
325
|
P.value = null, I.value = !0;
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function lt() {
|
|
327
328
|
P.value = null, F.value = "pointer", j.value = !1, L.value = null, I.value = !1;
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function ut(e) {
|
|
330
331
|
if (!V.value || document.activeElement !== V.value || !Z.value.length) return;
|
|
331
332
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape", a = e.key === "Home", o = e.key === "End";
|
|
332
333
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
@@ -344,23 +345,23 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
344
345
|
let s = P.value;
|
|
345
346
|
a ? s = 0 : o ? s = Z.value.length - 1 : s === null || s < 0 || s >= Z.value.length ? s = n ? 0 : Z.value.length - 1 : n ? (s += 1, s >= Z.value.length && (s = 0)) : t && (--s, s < 0 && (s = Z.value.length - 1));
|
|
346
347
|
let c = Z.value[s];
|
|
347
|
-
c && (P.value = s,
|
|
348
|
+
c && (P.value = s, st(s), ot({
|
|
348
349
|
datapoint: c,
|
|
349
350
|
seriesIndex: c.seriesIndex,
|
|
350
351
|
triggerMode: "keyboard"
|
|
351
352
|
}));
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
+
function dt(e) {
|
|
354
355
|
j.value = !1, P.value = null, F.value = "pointer", L.value = e.seriesIndex;
|
|
355
356
|
}
|
|
356
|
-
function
|
|
357
|
+
function ft() {
|
|
357
358
|
P.value = null, F.value = "pointer", j.value = !1, L.value = null;
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
+
function pt(e, t, n) {
|
|
360
361
|
let r = e.key === "Enter" || e.key === " ", i = e.key === "ArrowLeft" || e.key === "ArrowUp", a = e.key === "ArrowRight" || e.key === "ArrowDown", o = e.key === "Home", s = e.key === "End", c = e.key === "Escape";
|
|
361
362
|
if (!(!r && !i && !a && !o && !s && !c)) {
|
|
362
363
|
if (e.preventDefault(), e.stopPropagation(), c) {
|
|
363
|
-
|
|
364
|
+
ft();
|
|
364
365
|
return;
|
|
365
366
|
}
|
|
366
367
|
if (r) {
|
|
@@ -382,7 +383,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
382
383
|
a && $(n >= J.value.length - 1 ? 0 : n + 1);
|
|
383
384
|
}
|
|
384
385
|
}
|
|
385
|
-
let
|
|
386
|
+
let mt = f(() => ({
|
|
386
387
|
headers: [
|
|
387
388
|
R.value.a11y.translations.series,
|
|
388
389
|
R.value.a11y.translations.percentage,
|
|
@@ -391,7 +392,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
391
392
|
rows: J.value.map((e, t) => [
|
|
392
393
|
e.name,
|
|
393
394
|
q.value.includes(t) ? " - " : e.proportionLabel,
|
|
394
|
-
|
|
395
|
+
u(R.value.style.legend.value.formatter, e.value, r({
|
|
395
396
|
p: R.value.style.legend.value.prefix,
|
|
396
397
|
v: e.value,
|
|
397
398
|
s: R.value.style.legend.value.suffix,
|
|
@@ -402,24 +403,24 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
402
403
|
})
|
|
403
404
|
])
|
|
404
405
|
}));
|
|
405
|
-
return
|
|
406
|
-
hideSeries:
|
|
407
|
-
showSeries:
|
|
408
|
-
}), (e, t) => (S(),
|
|
406
|
+
return ue({
|
|
407
|
+
hideSeries: rt,
|
|
408
|
+
showSeries: nt
|
|
409
|
+
}), (e, t) => (S(), h("div", {
|
|
409
410
|
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
410
411
|
ref_key: "sparkstackbarChart",
|
|
411
|
-
ref:
|
|
412
|
+
ref: We,
|
|
412
413
|
style: x(`width:100%; background:${R.value.style.backgroundColor}`)
|
|
413
414
|
}, [
|
|
414
|
-
|
|
415
|
+
g("div", {
|
|
415
416
|
id: `chart-instructions-${A.value}`,
|
|
416
417
|
class: "sr-only"
|
|
417
|
-
}, [
|
|
418
|
-
|
|
418
|
+
}, [g("p", null, E(R.value.a11y.translations.keyboardNavigation), 1)], 8, Se),
|
|
419
|
+
mt.value?.rows?.length ? (S(), p(pe, {
|
|
419
420
|
key: 0,
|
|
420
421
|
uid: A.value,
|
|
421
|
-
head:
|
|
422
|
-
body:
|
|
422
|
+
head: mt.value.headers,
|
|
423
|
+
body: mt.value.rows,
|
|
423
424
|
notice: R.value.a11y.translations.tableAvailable,
|
|
424
425
|
caption: R.value.a11y.translations.tableCaption
|
|
425
426
|
}, null, 8, [
|
|
@@ -428,49 +429,54 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
428
429
|
"body",
|
|
429
430
|
"notice",
|
|
430
431
|
"caption"
|
|
431
|
-
])) :
|
|
432
|
-
R.value.style.title.text ? (S(),
|
|
432
|
+
])) : m("", !0),
|
|
433
|
+
R.value.style.title.text ? (S(), h("div", {
|
|
433
434
|
key: 1,
|
|
434
435
|
style: x(`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}`)
|
|
435
|
-
}, [
|
|
436
|
+
}, [g("div", {
|
|
436
437
|
class: "atom-title",
|
|
437
438
|
style: x(`font-size:${R.value.style.title.fontSize}px;color:${R.value.style.title.color};font-weight:${R.value.style.title.bold ? "bold" : "normal"}`)
|
|
438
|
-
}, E(R.value.style.title.text), 5), R.value.style.title.subtitle.text ? (S(),
|
|
439
|
+
}, E(R.value.style.title.text), 5), R.value.style.title.subtitle.text ? (S(), h("div", {
|
|
439
440
|
key: 0,
|
|
440
441
|
class: "atom-subtitle",
|
|
441
442
|
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
|
-
}, E(R.value.style.title.subtitle.text), 5)) :
|
|
443
|
-
|
|
443
|
+
}, E(R.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
|
|
444
|
+
g("div", Ce, [(S(), h("svg", {
|
|
444
445
|
ref_key: "svgRef",
|
|
445
446
|
ref: V,
|
|
446
|
-
xmlns: D(
|
|
447
|
+
xmlns: D(ne),
|
|
447
448
|
width: "100%",
|
|
448
449
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
449
450
|
"aria-describedby": `chart-instructions-${A.value}`,
|
|
450
451
|
tabindex: "0",
|
|
451
|
-
onFocus:
|
|
452
|
-
onBlur:
|
|
453
|
-
onKeydown:
|
|
452
|
+
onFocus: ct,
|
|
453
|
+
onBlur: lt,
|
|
454
|
+
onKeydown: ut
|
|
454
455
|
}, [
|
|
455
|
-
|
|
456
|
-
|
|
456
|
+
_(D(Re)),
|
|
457
|
+
g("defs", null, [(S(!0), h(d, null, w(Z.value, (e, t) => (S(), p(de, {
|
|
458
|
+
t: "linear",
|
|
459
|
+
id: `stack_gradient_${t}_${A.value}`,
|
|
457
460
|
key: `stack_gradient_${t}`,
|
|
458
461
|
gradientTransform: "rotate(90)",
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
462
|
+
stops: [
|
|
463
|
+
[
|
|
464
|
+
"0%",
|
|
465
|
+
e.color,
|
|
466
|
+
1
|
|
467
|
+
],
|
|
468
|
+
[
|
|
469
|
+
"50%",
|
|
470
|
+
D(o)(D(ie)(e.color, .05), 100 - R.value.style.bar.gradient.intensity),
|
|
471
|
+
1
|
|
472
|
+
],
|
|
473
|
+
[
|
|
474
|
+
"100%",
|
|
475
|
+
e.color,
|
|
476
|
+
1
|
|
477
|
+
]
|
|
478
|
+
]
|
|
479
|
+
}, null, 8, ["id", "stops"]))), 128)), g("clipPath", Te, [g("rect", {
|
|
474
480
|
x: "0.005",
|
|
475
481
|
y: "-2",
|
|
476
482
|
width: "0.99",
|
|
@@ -478,9 +484,9 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
478
484
|
rx: "3",
|
|
479
485
|
ry: "3",
|
|
480
486
|
fill: R.value.style.backgroundColor
|
|
481
|
-
}, null, 8,
|
|
482
|
-
|
|
483
|
-
(S(!0),
|
|
487
|
+
}, null, 8, Ee)])]),
|
|
488
|
+
$e.value > 0 ? (S(), h("g", De, [
|
|
489
|
+
(S(!0), h(d, null, w(Z.value, (e, t) => (S(), h("rect", {
|
|
484
490
|
key: `stack_underlayer_${t}`,
|
|
485
491
|
x: e.start,
|
|
486
492
|
y: 0,
|
|
@@ -489,8 +495,8 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
489
495
|
fill: R.value.style.bar.gradient.underlayerColor,
|
|
490
496
|
class: y({ animated: !G.value && !D(z) }),
|
|
491
497
|
style: x({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
492
|
-
}, null, 14,
|
|
493
|
-
(S(!0),
|
|
498
|
+
}, null, 14, Oe))), 128)),
|
|
499
|
+
(S(!0), h(d, null, w(Z.value, (e, t) => (S(), h("rect", {
|
|
494
500
|
key: `stack_${t}`,
|
|
495
501
|
x: e.start,
|
|
496
502
|
y: 0,
|
|
@@ -501,8 +507,8 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
501
507
|
"stroke-linecap": "round",
|
|
502
508
|
class: y({ animated: !G.value && !D(z) }),
|
|
503
509
|
style: x({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
504
|
-
}, null, 14,
|
|
505
|
-
(S(!0),
|
|
510
|
+
}, null, 14, ke))), 128)),
|
|
511
|
+
(S(!0), h(d, null, w(Z.value, (e, t) => (S(), h("rect", {
|
|
506
512
|
key: `stack_trap_${t}`,
|
|
507
513
|
x: e.start,
|
|
508
514
|
y: 0,
|
|
@@ -512,16 +518,16 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
512
518
|
stroke: "none",
|
|
513
519
|
class: y({ animated: !G.value && !D(z) }),
|
|
514
520
|
onClick: () => Q(e, t),
|
|
515
|
-
onMouseenter: () =>
|
|
521
|
+
onMouseenter: () => ot({
|
|
516
522
|
datapoint: e,
|
|
517
523
|
seriesIndex: t
|
|
518
524
|
}),
|
|
519
|
-
onMouseleave: (n) =>
|
|
525
|
+
onMouseleave: (n) => at({
|
|
520
526
|
datapoint: e,
|
|
521
527
|
seriesIndex: t
|
|
522
528
|
})
|
|
523
|
-
}, null, 42,
|
|
524
|
-
])) : (S(),
|
|
529
|
+
}, null, 42, Ae))), 128))
|
|
530
|
+
])) : (S(), h("rect", {
|
|
525
531
|
key: 1,
|
|
526
532
|
x: 2,
|
|
527
533
|
y: 1,
|
|
@@ -531,37 +537,37 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
531
537
|
"stroke-width": "2",
|
|
532
538
|
fill: "transparent",
|
|
533
539
|
rx: (K.value.height - 4) / 2
|
|
534
|
-
}, null, 8,
|
|
535
|
-
], 40, we)), e.$slots.hint ? (S(),
|
|
540
|
+
}, null, 8, je))
|
|
541
|
+
], 40, we)), e.$slots.hint ? (S(), h("div", Me, [T(e.$slots, "hint", b(v({
|
|
536
542
|
hint: R.value.a11y.translations.keyboardNavigation,
|
|
537
543
|
isVisible: I.value
|
|
538
|
-
})), void 0, !0)])) :
|
|
539
|
-
R.value.style.legend.show ? (S(),
|
|
544
|
+
})), void 0, !0)])) : m("", !0)]),
|
|
545
|
+
R.value.style.legend.show ? (S(), h("div", {
|
|
540
546
|
key: 2,
|
|
541
547
|
style: x(`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"}`),
|
|
542
548
|
class: "vue-ui-sparkstackbar-legend",
|
|
543
549
|
"aria-label": "legend",
|
|
544
550
|
role: "toolbar"
|
|
545
|
-
}, [R.value.style.legend.selectAllToggle.show && J.value.length > 2 && !D(z) ? (S(),
|
|
551
|
+
}, [R.value.style.legend.selectAllToggle.show && J.value.length > 2 && !D(z) ? (S(), p(fe, {
|
|
546
552
|
key: 0,
|
|
547
553
|
backgroundColor: R.value.style.legend.selectAllToggle.backgroundColor,
|
|
548
554
|
color: R.value.style.legend.selectAllToggle.color,
|
|
549
555
|
fontSize: R.value.style.legend.fontSize,
|
|
550
556
|
checked: q.value.length > 0,
|
|
551
|
-
isCursorPointer:
|
|
552
|
-
onToggle:
|
|
557
|
+
isCursorPointer: Je.value,
|
|
558
|
+
onToggle: et
|
|
553
559
|
}, null, 8, [
|
|
554
560
|
"backgroundColor",
|
|
555
561
|
"color",
|
|
556
562
|
"fontSize",
|
|
557
563
|
"checked",
|
|
558
564
|
"isCursorPointer"
|
|
559
|
-
])) :
|
|
565
|
+
])) : m("", !0), (S(!0), h(d, null, w(J.value, (e, t) => (S(), h("div", {
|
|
560
566
|
role: "button",
|
|
561
567
|
tabindex: "0",
|
|
562
568
|
"aria-pressed": q.value.includes(t),
|
|
563
569
|
"aria-label": `${e.name}, ${q.value.includes(t) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
564
|
-
style: x(`font-size:${R.value.style.legend.fontSize}px;cursor:${
|
|
570
|
+
style: x(`font-size:${R.value.style.legend.fontSize}px;cursor:${Je.value ? "pointer" : "default"}`),
|
|
565
571
|
class: y({
|
|
566
572
|
"vue-ui-sparkstackbar-legend-item": !0,
|
|
567
573
|
"vue-ui-sparkstackbar-legend-item-unselected": q.value.includes(t)
|
|
@@ -569,31 +575,37 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
569
575
|
onClick: (n) => {
|
|
570
576
|
X(t), Q(e, t, !0);
|
|
571
577
|
},
|
|
572
|
-
onFocus: (t) =>
|
|
573
|
-
onBlur:
|
|
574
|
-
onKeydown: (n) =>
|
|
575
|
-
}, [
|
|
578
|
+
onFocus: (t) => dt(e),
|
|
579
|
+
onBlur: ft,
|
|
580
|
+
onKeydown: (n) => pt(n, e, t)
|
|
581
|
+
}, [g("div", Pe, [(S(), h("svg", {
|
|
576
582
|
height: `${R.value.style.legend.fontSize}px`,
|
|
577
583
|
width: `${R.value.style.legend.fontSize}px`,
|
|
578
584
|
viewBox: "0 0 10 10"
|
|
579
|
-
}, [
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
585
|
+
}, [g("defs", null, [_(de, {
|
|
586
|
+
t: "radial",
|
|
587
|
+
id: `legend_grad_${t}-${A.value}`,
|
|
588
|
+
stops: [[
|
|
589
|
+
"0%",
|
|
590
|
+
D(z) ? "#FFFFFF" : D(o)(D(ie)(e.color, .05), 100 - R.value.style.bar.gradient.intensity),
|
|
591
|
+
1
|
|
592
|
+
], [
|
|
593
|
+
"100%",
|
|
594
|
+
e.color,
|
|
595
|
+
1
|
|
596
|
+
]]
|
|
597
|
+
}, null, 8, ["id", "stops"])]), g("circle", {
|
|
586
598
|
cx: 5,
|
|
587
599
|
cy: 5,
|
|
588
600
|
r: 5,
|
|
589
601
|
fill: R.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${A.value})` : e.color
|
|
590
|
-
}, null, 8,
|
|
602
|
+
}, null, 8, Ie)], 8, Fe)), D(z) ? m("", !0) : (S(), h(d, { key: 0 }, [g("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 ? m("", !0) : (S(), h(d, { key: 0 }, [R.value.style.legend.percentage.show ? (S(), h("span", {
|
|
591
603
|
key: 0,
|
|
592
604
|
style: x(`font-weight:${R.value.style.legend.percentage.bold ? "bold" : "normal"};color:${R.value.style.legend.percentage.color}`)
|
|
593
|
-
}, E(q.value.includes(t) ? " - " : e.proportionLabel), 5)) :
|
|
605
|
+
}, E(q.value.includes(t) ? " - " : e.proportionLabel), 5)) : m("", !0), R.value.style.legend.value.show ? (S(), h("span", {
|
|
594
606
|
key: 1,
|
|
595
607
|
style: x(`font-weight:${R.value.style.legend.value.bold ? "bold" : "normal"};color:${R.value.style.legend.value.color}`)
|
|
596
|
-
}, " (" + E(D(
|
|
608
|
+
}, " (" + E(D(u)(R.value.style.legend.value.formatter, e.value, D(r)({
|
|
597
609
|
p: R.value.style.legend.value.prefix,
|
|
598
610
|
v: e.value,
|
|
599
611
|
s: R.value.style.legend.value.suffix,
|
|
@@ -601,11 +613,11 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
601
613
|
}), {
|
|
602
614
|
datapoint: e,
|
|
603
615
|
seriesIndex: t
|
|
604
|
-
})) + ") ", 5)) :
|
|
605
|
-
|
|
616
|
+
})) + ") ", 5)) : m("", !0)], 64))], 64))])], 46, Ne))), 256))], 4)) : m("", !0),
|
|
617
|
+
_(D(ze), {
|
|
606
618
|
teleportTo: R.value.style.tooltip.teleportTo,
|
|
607
619
|
show: j.value && R.value.style.tooltip.show,
|
|
608
|
-
parent:
|
|
620
|
+
parent: We.value,
|
|
609
621
|
backgroundColor: R.value.style.tooltip.backgroundColor,
|
|
610
622
|
color: R.value.style.tooltip.color,
|
|
611
623
|
fontSize: R.value.style.tooltip.fontSize,
|
|
@@ -614,7 +626,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
614
626
|
borderWidth: R.value.style.tooltip.borderWidth,
|
|
615
627
|
backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
|
|
616
628
|
position: R.value.style.tooltip.position,
|
|
617
|
-
content:
|
|
629
|
+
content: Ge.value,
|
|
618
630
|
isCustom: N.value,
|
|
619
631
|
offsetX: R.value.style.tooltip.offsetX,
|
|
620
632
|
offsetY: -124 + R.value.style.tooltip.offsetY,
|
|
@@ -624,11 +636,11 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
624
636
|
smoothForce: R.value.style.tooltip.smoothForce,
|
|
625
637
|
smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
|
|
626
638
|
isA11yMode: F.value === "keyboard",
|
|
627
|
-
a11yPosition:
|
|
639
|
+
a11yPosition: Ke.value
|
|
628
640
|
}, {
|
|
629
|
-
"tooltip-before":
|
|
630
|
-
tooltip:
|
|
631
|
-
"tooltip-after":
|
|
641
|
+
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...M.value })), void 0, !0)]),
|
|
642
|
+
tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...M.value })), void 0, !0)]),
|
|
643
|
+
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...M.value })), void 0, !0)]),
|
|
632
644
|
_: 3
|
|
633
645
|
}, 8, [
|
|
634
646
|
"teleportTo",
|
|
@@ -653,10 +665,10 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
653
665
|
"isA11yMode",
|
|
654
666
|
"a11yPosition"
|
|
655
667
|
]),
|
|
656
|
-
e.$slots.source ? (S(),
|
|
657
|
-
T(e.$slots, "skeleton", {}, () => [D(z) ? (S(),
|
|
668
|
+
e.$slots.source ? (S(), h("div", Le, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
669
|
+
T(e.$slots, "skeleton", {}, () => [D(z) ? (S(), p(se, { key: 0 })) : m("", !0)], !0)
|
|
658
670
|
], 4));
|
|
659
671
|
}
|
|
660
|
-
}, [["__scopeId", "data-v-
|
|
672
|
+
}, [["__scopeId", "data-v-4ea77f60"]]);
|
|
661
673
|
//#endregion
|
|
662
|
-
export { xe as n,
|
|
674
|
+
export { xe as n, Re as t };
|