vue-data-ui 3.23.0 → 3.23.2
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-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Bt as t, Jt as n, Kt as r, Pt as i, S as a, Vt as o, X as s, i as c, jt as ee, pt as te, q as ne, t as re, tt as ie, w as ae, xt as oe } from "./lib-
|
|
2
|
+
import { Bt as t, Jt as n, Kt as r, Pt as i, S as a, Vt as o, X as s, i as c, jt as ee, pt as te, q as ne, t as re, tt as ie, w as ae, xt as oe } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as le } from "./useConfig-
|
|
4
|
+
import { t as le } from "./useConfig-DlNpz6P8.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-vPNvh7rV.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-DZVucLnv.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 be, defineAsyncComponent as xe, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as Se, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, toRefs as Ce, unref as T, useSlots as we, watch as Te, withCtx as Ee } from "vue";
|
|
16
16
|
//#region src/components/vue-ui-sparkstackbar.vue
|
|
17
|
-
var
|
|
17
|
+
var De = /* @__PURE__ */ e({ default: () => E }), Oe = ["id"], ke = { style: { position: "relative" } }, Ae = [
|
|
18
18
|
"xmlns",
|
|
19
19
|
"viewBox",
|
|
20
20
|
"aria-describedby"
|
|
21
|
-
],
|
|
21
|
+
], je = {
|
|
22
22
|
id: "stackPill",
|
|
23
23
|
clipPathUnits: "objectBoundingBox"
|
|
24
|
-
},
|
|
24
|
+
}, Me = ["fill"], Ne = {
|
|
25
25
|
key: 0,
|
|
26
26
|
"clip-path": "url(#stackPill)"
|
|
27
|
-
},
|
|
27
|
+
}, Pe = [
|
|
28
28
|
"x",
|
|
29
29
|
"width",
|
|
30
30
|
"height",
|
|
31
31
|
"fill"
|
|
32
|
-
],
|
|
32
|
+
], Fe = [
|
|
33
33
|
"x",
|
|
34
34
|
"width",
|
|
35
35
|
"height",
|
|
36
36
|
"fill",
|
|
37
37
|
"stroke"
|
|
38
|
-
],
|
|
38
|
+
], Ie = [
|
|
39
39
|
"x",
|
|
40
40
|
"width",
|
|
41
41
|
"height",
|
|
42
42
|
"onClick",
|
|
43
43
|
"onMouseenter",
|
|
44
44
|
"onMouseleave"
|
|
45
|
-
],
|
|
45
|
+
], Le = [
|
|
46
46
|
"width",
|
|
47
47
|
"height",
|
|
48
48
|
"rx"
|
|
49
|
-
],
|
|
49
|
+
], Re = {
|
|
50
50
|
key: 0,
|
|
51
51
|
style: {
|
|
52
52
|
position: "absolute",
|
|
@@ -56,23 +56,23 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
56
56
|
},
|
|
57
57
|
"data-dom-to-png-ignore": "",
|
|
58
58
|
"aria-hidden": "true"
|
|
59
|
-
},
|
|
59
|
+
}, ze = [
|
|
60
60
|
"aria-pressed",
|
|
61
61
|
"aria-label",
|
|
62
62
|
"onClick",
|
|
63
63
|
"onFocus",
|
|
64
64
|
"onKeydown"
|
|
65
|
-
],
|
|
65
|
+
], Be = { 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
|
+
} }, Ve = ["height", "width"], He = ["fill"], Ue = {
|
|
72
72
|
key: 3,
|
|
73
73
|
ref: "source",
|
|
74
74
|
dir: "auto"
|
|
75
|
-
},
|
|
75
|
+
}, E = /*#__PURE__*/ pe({
|
|
76
76
|
__name: "vue-ui-sparkstackbar",
|
|
77
77
|
props: {
|
|
78
78
|
config: {
|
|
@@ -89,18 +89,16 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
emits: ["selectDatapoint", "selectLegend"],
|
|
92
|
-
setup(e, { expose: pe, emit:
|
|
93
|
-
let
|
|
94
|
-
xe(() => {
|
|
95
|
-
Je["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
96
|
-
});
|
|
97
|
-
let Ye = S(null), k = S(ne()), A = S(!1), j = S(""), M = S(null), N = S(!1), P = S(null), Xe = S({
|
|
92
|
+
setup(e, { expose: pe, emit: De }) {
|
|
93
|
+
let E = xe(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), We = xe(() => import("./Tooltip-DhjyfHwz.js")), { vue_ui_sparkstackbar: Ge } = le(), { isThemeValid: Ke, warnInvalidTheme: qe } = fe(), Je = ve(), Ye = we(), D = e, Xe = x(null), O = x(ne()), k = x(!1), A = x(""), j = x(null), M = x(!1), N = x(null), Ze = x({
|
|
98
94
|
x: 0,
|
|
99
95
|
y: 0
|
|
100
|
-
}),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
}), P = x("pointer"), F = x(!1), I = x(null), Qe = x([]), L = x(H()), R = d(() => L.value.debug);
|
|
97
|
+
Se(() => {
|
|
98
|
+
Ye["chart-background"] && R.value && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
99
|
+
}), se({
|
|
100
|
+
config: () => L.value,
|
|
101
|
+
dataset: () => D.dataset,
|
|
104
102
|
component: "VueUiSparkStackbar",
|
|
105
103
|
rules: [ce.emptyArray, {
|
|
106
104
|
test: (e) => e.length > 6,
|
|
@@ -113,19 +111,19 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
113
111
|
]
|
|
114
112
|
}]
|
|
115
113
|
});
|
|
116
|
-
let
|
|
114
|
+
let $e = d(() => L.value.useCursorPointer), et = d(() => n({
|
|
117
115
|
defaultConfig: { style: {
|
|
118
116
|
backgroundColor: "#99999930",
|
|
119
117
|
animation: { show: !1 },
|
|
120
118
|
bar: { gradient: { inderlayerColor: "#6A6A6A" } },
|
|
121
119
|
title: { backgroundColor: "transparent" }
|
|
122
120
|
} },
|
|
123
|
-
userConfig:
|
|
121
|
+
userConfig: L.value.skeletonConfig ?? {}
|
|
124
122
|
})), { loading: z, FINAL_DATASET: B } = ue({
|
|
125
|
-
...
|
|
126
|
-
FINAL_CONFIG:
|
|
123
|
+
...Ce(D),
|
|
124
|
+
FINAL_CONFIG: L,
|
|
127
125
|
prepareConfig: H,
|
|
128
|
-
skeletonDataset:
|
|
126
|
+
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
129
127
|
{
|
|
130
128
|
name: "_",
|
|
131
129
|
value: 8,
|
|
@@ -143,22 +141,22 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
143
141
|
}
|
|
144
142
|
],
|
|
145
143
|
skeletonConfig: n({
|
|
146
|
-
defaultConfig:
|
|
147
|
-
userConfig:
|
|
144
|
+
defaultConfig: L.value,
|
|
145
|
+
userConfig: et.value
|
|
148
146
|
})
|
|
149
|
-
}), { svgRef: V } = _e({ config:
|
|
147
|
+
}), { svgRef: V } = _e({ config: L.value.style.title });
|
|
150
148
|
function H() {
|
|
151
149
|
let e = l({
|
|
152
|
-
userConfig:
|
|
153
|
-
defaultConfig:
|
|
150
|
+
userConfig: D.config,
|
|
151
|
+
defaultConfig: Ge
|
|
154
152
|
}), t = e.theme;
|
|
155
153
|
if (!t) return e;
|
|
156
|
-
if (!
|
|
154
|
+
if (!Ke.value(e)) return qe(e), e;
|
|
157
155
|
let n = l({
|
|
158
|
-
userConfig: ye[t] ||
|
|
156
|
+
userConfig: ye[t] || D.config,
|
|
159
157
|
defaultConfig: e
|
|
160
158
|
}), a = l({
|
|
161
|
-
userConfig:
|
|
159
|
+
userConfig: D.config,
|
|
162
160
|
defaultConfig: n
|
|
163
161
|
});
|
|
164
162
|
return {
|
|
@@ -166,25 +164,25 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
166
164
|
customPalette: a.customPalette.length ? a.customPalette : r[t] || i
|
|
167
165
|
};
|
|
168
166
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}, { deep: !0 }),
|
|
167
|
+
Te(() => D.config, (e) => {
|
|
168
|
+
L.value = H(), nt();
|
|
169
|
+
}, { deep: !0 }), Te(() => B.value, (e) => {
|
|
172
170
|
W.value = B.value.map((e, t) => ({
|
|
173
171
|
...e,
|
|
174
172
|
color: e.color ? a(e.color) : U.value[t] || i[t] || i[t % i.length]
|
|
175
|
-
})),
|
|
173
|
+
})), tt();
|
|
176
174
|
}, { deep: !0 });
|
|
177
|
-
let U = d(() => ae(
|
|
175
|
+
let U = d(() => ae(L.value.customPalette)), W = x(B.value.map((e, t) => ({
|
|
178
176
|
...e,
|
|
179
|
-
value:
|
|
177
|
+
value: L.value.style.animation.show ? 0 : e.value || 0,
|
|
180
178
|
color: e.color ? a(e.color) : U.value[t] || i[t] || i[t % i.length]
|
|
181
|
-
}))), G =
|
|
182
|
-
function
|
|
183
|
-
if (!
|
|
179
|
+
}))), G = x(!0);
|
|
180
|
+
function tt() {
|
|
181
|
+
if (!L.value.style.animation.show || Je.value) {
|
|
184
182
|
G.value = !1;
|
|
185
183
|
return;
|
|
186
184
|
}
|
|
187
|
-
let e =
|
|
185
|
+
let e = L.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), o = 0;
|
|
188
186
|
G.value = !0, W.value = B.value.map((e, t) => ({
|
|
189
187
|
...e,
|
|
190
188
|
value: 0,
|
|
@@ -204,16 +202,15 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
204
202
|
}
|
|
205
203
|
s();
|
|
206
204
|
}
|
|
207
|
-
|
|
205
|
+
Se(() => {
|
|
208
206
|
nt();
|
|
209
207
|
});
|
|
210
|
-
let tt = d(() => R.value.debug);
|
|
211
208
|
function nt() {
|
|
212
|
-
ee(
|
|
209
|
+
ee(D.dataset) ? ie({
|
|
213
210
|
componentName: "VueUiSparkStackbar",
|
|
214
211
|
type: "dataset",
|
|
215
|
-
debug:
|
|
216
|
-
}) :
|
|
212
|
+
debug: R.value
|
|
213
|
+
}) : R.value && D.dataset.forEach((e, t) => {
|
|
217
214
|
te({
|
|
218
215
|
datasetObject: e,
|
|
219
216
|
requiredAttributes: ["name", "value"]
|
|
@@ -222,16 +219,15 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
222
219
|
componentName: "VueUiSparkStackbar",
|
|
223
220
|
type: "datasetSerieAttribute",
|
|
224
221
|
property: e,
|
|
225
|
-
index: t
|
|
226
|
-
debug: tt.value
|
|
222
|
+
index: t
|
|
227
223
|
});
|
|
228
224
|
});
|
|
229
|
-
}),
|
|
225
|
+
}), tt();
|
|
230
226
|
}
|
|
231
|
-
let K =
|
|
227
|
+
let K = x({
|
|
232
228
|
width: 500,
|
|
233
229
|
height: 16
|
|
234
|
-
}), q =
|
|
230
|
+
}), q = x([]), 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) => {
|
|
235
231
|
let n = e.value || 0, r = n / rt.value, o = isNaN(r) ? 0 : r, c = o * K.value.width;
|
|
236
232
|
return {
|
|
237
233
|
...e,
|
|
@@ -243,7 +239,7 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
243
239
|
proportionLabel: s({
|
|
244
240
|
v: o * 100,
|
|
245
241
|
s: "%",
|
|
246
|
-
r:
|
|
242
|
+
r: L.value.style.legend.percentage.rounding
|
|
247
243
|
})
|
|
248
244
|
};
|
|
249
245
|
})), Y = d(() => J.value.filter((e, t) => !q.value.includes(t)));
|
|
@@ -256,7 +252,7 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
256
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);
|
|
257
253
|
}
|
|
258
254
|
function at(e) {
|
|
259
|
-
return J.value.length ? J.value.find((t) => t.name === e) || (
|
|
255
|
+
return J.value.length ? J.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null);
|
|
260
256
|
}
|
|
261
257
|
function ot(e) {
|
|
262
258
|
let t = at(e);
|
|
@@ -273,60 +269,60 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
273
269
|
start: e
|
|
274
270
|
}), e += Y.value[n].width;
|
|
275
271
|
return t;
|
|
276
|
-
}), ct =
|
|
272
|
+
}), ct = De;
|
|
277
273
|
function Q(e, t, n = !1) {
|
|
278
274
|
ct("selectDatapoint", {
|
|
279
275
|
datapoint: e,
|
|
280
276
|
index: t
|
|
281
|
-
}),
|
|
277
|
+
}), L.value.events.datapointClick && !n && L.value.events.datapointClick({
|
|
282
278
|
datapoint: e,
|
|
283
279
|
seriesIndex: e.seriesIndex
|
|
284
280
|
});
|
|
285
281
|
}
|
|
286
282
|
function lt({ datapoint: e, seriesIndex: t }) {
|
|
287
|
-
|
|
283
|
+
k.value = !1, I.value = null, N.value = null, P.value = "pointer", L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
288
284
|
datapoint: e,
|
|
289
285
|
seriesIndex: e.seriesIndex
|
|
290
286
|
});
|
|
291
287
|
}
|
|
292
288
|
function ut({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
293
|
-
if (
|
|
289
|
+
if (M.value = !1, L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
294
290
|
datapoint: e,
|
|
295
291
|
seriesIndex: e.seriesIndex
|
|
296
|
-
}), !
|
|
297
|
-
|
|
292
|
+
}), !L.value.style.tooltip.show) return;
|
|
293
|
+
P.value = n, j.value = {
|
|
298
294
|
datapoint: e,
|
|
299
295
|
seriesIndex: t,
|
|
300
|
-
config:
|
|
296
|
+
config: L.value,
|
|
301
297
|
series: J.value
|
|
302
|
-
},
|
|
303
|
-
let r =
|
|
298
|
+
}, k.value = !0, I.value = t;
|
|
299
|
+
let r = L.value.style.tooltip.customFormat;
|
|
304
300
|
if (oe(r)) try {
|
|
305
301
|
let t = r({
|
|
306
302
|
seriesIndex: e.seriesIndex,
|
|
307
303
|
datapoint: e,
|
|
308
304
|
series: J.value,
|
|
309
|
-
config:
|
|
305
|
+
config: L.value
|
|
310
306
|
});
|
|
311
|
-
typeof t == "string" && (
|
|
307
|
+
typeof t == "string" && (A.value = t, M.value = !0);
|
|
312
308
|
} catch {
|
|
313
|
-
console.warn("Custom format cannot be applied."),
|
|
309
|
+
console.warn("Custom format cannot be applied."), M.value = !1;
|
|
314
310
|
}
|
|
315
|
-
if (!
|
|
311
|
+
if (!M.value) {
|
|
316
312
|
let n = "";
|
|
317
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
318
|
-
p:
|
|
313
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, 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>(${c(L.value.style.legend.value.formatter, e.value, s({
|
|
314
|
+
p: L.value.style.legend.value.prefix,
|
|
319
315
|
v: e.value,
|
|
320
|
-
s:
|
|
321
|
-
r:
|
|
316
|
+
s: L.value.style.legend.value.suffix,
|
|
317
|
+
r: L.value.style.legend.value.rounding
|
|
322
318
|
}), {
|
|
323
319
|
datapoint: e,
|
|
324
320
|
seriesIndex: t
|
|
325
|
-
})})</span>`,
|
|
321
|
+
})})</span>`, A.value = `<div>${n}</div>`;
|
|
326
322
|
}
|
|
327
323
|
}
|
|
328
324
|
function $(e) {
|
|
329
|
-
let t =
|
|
325
|
+
let t = Qe.value[e];
|
|
330
326
|
t && typeof t.focus == "function" && t.focus();
|
|
331
327
|
}
|
|
332
328
|
function dt(e) {
|
|
@@ -334,46 +330,46 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
334
330
|
let t = Z.value[e];
|
|
335
331
|
if (!t) return;
|
|
336
332
|
let n = V.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
|
|
337
|
-
|
|
333
|
+
Ze.value = {
|
|
338
334
|
x: n.left + r / K.value.width * n.width,
|
|
339
335
|
y: n.top + i / K.value.height * n.height
|
|
340
336
|
};
|
|
341
337
|
}
|
|
342
338
|
function ft() {
|
|
343
|
-
|
|
339
|
+
N.value = null, F.value = !0;
|
|
344
340
|
}
|
|
345
341
|
function pt() {
|
|
346
|
-
|
|
342
|
+
N.value = null, P.value = "pointer", k.value = !1, I.value = null, F.value = !1;
|
|
347
343
|
}
|
|
348
344
|
function mt(e) {
|
|
349
345
|
if (!V.value || document.activeElement !== V.value || !Z.value.length) return;
|
|
350
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";
|
|
351
347
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
352
348
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
353
|
-
|
|
349
|
+
N.value = null, P.value = "pointer", k.value = !1, I.value = null;
|
|
354
350
|
return;
|
|
355
351
|
}
|
|
356
352
|
if (r) {
|
|
357
|
-
if (
|
|
358
|
-
let e = Z.value[
|
|
353
|
+
if (N.value === null) return;
|
|
354
|
+
let e = Z.value[N.value];
|
|
359
355
|
if (!e) return;
|
|
360
356
|
Q(e, e.seriesIndex);
|
|
361
357
|
return;
|
|
362
358
|
}
|
|
363
|
-
let s =
|
|
359
|
+
let s = N.value;
|
|
364
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));
|
|
365
361
|
let c = Z.value[s];
|
|
366
|
-
c && (
|
|
362
|
+
c && (N.value = s, dt(s), ut({
|
|
367
363
|
datapoint: c,
|
|
368
364
|
seriesIndex: c.seriesIndex,
|
|
369
365
|
triggerMode: "keyboard"
|
|
370
366
|
}));
|
|
371
367
|
}
|
|
372
368
|
function ht(e) {
|
|
373
|
-
|
|
369
|
+
k.value = !1, N.value = null, P.value = "pointer", I.value = e.seriesIndex;
|
|
374
370
|
}
|
|
375
371
|
function gt() {
|
|
376
|
-
|
|
372
|
+
N.value = null, P.value = "pointer", k.value = !1, I.value = null;
|
|
377
373
|
}
|
|
378
374
|
function _t(e, t, n) {
|
|
379
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";
|
|
@@ -403,18 +399,18 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
403
399
|
}
|
|
404
400
|
let vt = d(() => ({
|
|
405
401
|
headers: [
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
402
|
+
L.value.a11y.translations.series,
|
|
403
|
+
L.value.a11y.translations.percentage,
|
|
404
|
+
L.value.a11y.translations.value
|
|
409
405
|
],
|
|
410
406
|
rows: J.value.map((e, t) => [
|
|
411
407
|
e.name,
|
|
412
408
|
q.value.includes(t) ? " - " : e.proportionLabel,
|
|
413
|
-
c(
|
|
414
|
-
p:
|
|
409
|
+
c(L.value.style.legend.value.formatter, e.value, s({
|
|
410
|
+
p: L.value.style.legend.value.prefix,
|
|
415
411
|
v: e.value,
|
|
416
|
-
s:
|
|
417
|
-
r:
|
|
412
|
+
s: L.value.style.legend.value.suffix,
|
|
413
|
+
r: L.value.style.legend.value.rounding
|
|
418
414
|
}), {
|
|
419
415
|
datapoint: e,
|
|
420
416
|
seriesIndex: t
|
|
@@ -424,23 +420,23 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
424
420
|
return pe({
|
|
425
421
|
hideSeries: st,
|
|
426
422
|
showSeries: ot
|
|
427
|
-
}), (e, n) => (
|
|
423
|
+
}), (e, n) => (b(), m("div", {
|
|
428
424
|
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
429
425
|
ref_key: "sparkstackbarChart",
|
|
430
|
-
ref:
|
|
431
|
-
style:
|
|
426
|
+
ref: Xe,
|
|
427
|
+
style: y(`width:100%; background:${L.value.style.backgroundColor}`)
|
|
432
428
|
}, [
|
|
433
429
|
h("div", {
|
|
434
|
-
id: `chart-instructions-${
|
|
430
|
+
id: `chart-instructions-${O.value}`,
|
|
435
431
|
class: "sr-only"
|
|
436
|
-
}, [h("p", null,
|
|
437
|
-
vt.value?.rows?.length ? (
|
|
432
|
+
}, [h("p", null, w(L.value.a11y.translations.keyboardNavigation), 1)], 8, Oe),
|
|
433
|
+
vt.value?.rows?.length ? (b(), f(ge, {
|
|
438
434
|
key: 0,
|
|
439
|
-
uid:
|
|
435
|
+
uid: O.value,
|
|
440
436
|
head: vt.value.headers,
|
|
441
437
|
body: vt.value.rows,
|
|
442
|
-
notice:
|
|
443
|
-
caption:
|
|
438
|
+
notice: L.value.a11y.translations.tableAvailable,
|
|
439
|
+
caption: L.value.a11y.translations.tableCaption
|
|
444
440
|
}, null, 8, [
|
|
445
441
|
"uid",
|
|
446
442
|
"head",
|
|
@@ -448,33 +444,33 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
448
444
|
"notice",
|
|
449
445
|
"caption"
|
|
450
446
|
])) : p("", !0),
|
|
451
|
-
|
|
447
|
+
L.value.style.title.text ? (b(), m("div", {
|
|
452
448
|
key: 1,
|
|
453
|
-
style:
|
|
449
|
+
style: y(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${L.value.style.title.margin};padding: 0 6px;text-align:${L.value.style.title.textAlign}`)
|
|
454
450
|
}, [h("div", {
|
|
455
451
|
class: "atom-title",
|
|
456
|
-
style:
|
|
457
|
-
},
|
|
452
|
+
style: y(`font-size:${L.value.style.title.fontSize}px;color:${L.value.style.title.color};font-weight:${L.value.style.title.bold ? "bold" : "normal"}`)
|
|
453
|
+
}, w(L.value.style.title.text), 5), L.value.style.title.subtitle.text ? (b(), m("div", {
|
|
458
454
|
key: 0,
|
|
459
455
|
class: "atom-subtitle",
|
|
460
|
-
style:
|
|
461
|
-
},
|
|
462
|
-
h("div",
|
|
456
|
+
style: y(`font-size:${L.value.style.title.subtitle.fontSize}px;color:${L.value.style.title.subtitle.color};font-weight:${L.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
457
|
+
}, w(L.value.style.title.subtitle.text), 5)) : p("", !0)], 4)) : p("", !0),
|
|
458
|
+
h("div", ke, [(b(), m("svg", {
|
|
463
459
|
ref_key: "svgRef",
|
|
464
460
|
ref: V,
|
|
465
|
-
xmlns:
|
|
461
|
+
xmlns: T(re),
|
|
466
462
|
width: "100%",
|
|
467
463
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
468
|
-
"aria-describedby": `chart-instructions-${
|
|
464
|
+
"aria-describedby": `chart-instructions-${O.value}`,
|
|
469
465
|
tabindex: "0",
|
|
470
466
|
onFocus: ft,
|
|
471
467
|
onBlur: pt,
|
|
472
468
|
onKeydown: mt
|
|
473
469
|
}, [
|
|
474
|
-
|
|
475
|
-
h("defs", null, [(
|
|
470
|
+
be(T(E)),
|
|
471
|
+
h("defs", null, [(b(!0), m(u, null, S(Z.value, (e, n) => (b(), f(me, {
|
|
476
472
|
t: "linear",
|
|
477
|
-
id: `stack_gradient_${n}_${
|
|
473
|
+
id: `stack_gradient_${n}_${O.value}`,
|
|
478
474
|
key: `stack_gradient_${n}`,
|
|
479
475
|
gradientTransform: "rotate(90)",
|
|
480
476
|
stops: [
|
|
@@ -485,7 +481,7 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
485
481
|
],
|
|
486
482
|
[
|
|
487
483
|
"50%",
|
|
488
|
-
|
|
484
|
+
T(t)(T(o)(e.color, .05), 100 - L.value.style.bar.gradient.intensity),
|
|
489
485
|
1
|
|
490
486
|
],
|
|
491
487
|
[
|
|
@@ -494,39 +490,39 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
494
490
|
1
|
|
495
491
|
]
|
|
496
492
|
]
|
|
497
|
-
}, null, 8, ["id", "stops"]))), 128)), h("clipPath",
|
|
493
|
+
}, null, 8, ["id", "stops"]))), 128)), h("clipPath", je, [h("rect", {
|
|
498
494
|
x: "0.005",
|
|
499
495
|
y: "-2",
|
|
500
496
|
width: "0.99",
|
|
501
497
|
height: "5",
|
|
502
498
|
rx: "3",
|
|
503
499
|
ry: "3",
|
|
504
|
-
fill:
|
|
505
|
-
}, null, 8,
|
|
506
|
-
rt.value > 0 ? (
|
|
507
|
-
(
|
|
500
|
+
fill: L.value.style.backgroundColor
|
|
501
|
+
}, null, 8, Me)])]),
|
|
502
|
+
rt.value > 0 ? (b(), m("g", Ne, [
|
|
503
|
+
(b(!0), m(u, null, S(Z.value, (e, t) => (b(), m("rect", {
|
|
508
504
|
key: `stack_underlayer_${t}`,
|
|
509
505
|
x: e.start,
|
|
510
506
|
y: 0,
|
|
511
507
|
width: e.width,
|
|
512
508
|
height: K.value.height,
|
|
513
|
-
fill:
|
|
514
|
-
class:
|
|
515
|
-
style:
|
|
516
|
-
}, null, 14,
|
|
517
|
-
(
|
|
509
|
+
fill: L.value.style.bar.gradient.underlayerColor,
|
|
510
|
+
class: _({ animated: !G.value && !T(z) }),
|
|
511
|
+
style: y({ opacity: I.value !== null && L.value.style.tooltip.show ? I.value === t ? 1 : .5 : 1 })
|
|
512
|
+
}, null, 14, Pe))), 128)),
|
|
513
|
+
(b(!0), m(u, null, S(Z.value, (e, t) => (b(), m("rect", {
|
|
518
514
|
key: `stack_${t}`,
|
|
519
515
|
x: e.start,
|
|
520
516
|
y: 0,
|
|
521
517
|
width: e.width,
|
|
522
518
|
height: K.value.height,
|
|
523
|
-
fill:
|
|
524
|
-
stroke:
|
|
519
|
+
fill: L.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${O.value})` : e.color,
|
|
520
|
+
stroke: L.value.style.backgroundColor,
|
|
525
521
|
"stroke-linecap": "round",
|
|
526
|
-
class:
|
|
527
|
-
style:
|
|
528
|
-
}, null, 14,
|
|
529
|
-
(
|
|
522
|
+
class: _({ animated: !G.value && !T(z) }),
|
|
523
|
+
style: y({ opacity: I.value !== null && L.value.style.tooltip.show ? I.value === t ? 1 : .5 : 1 })
|
|
524
|
+
}, null, 14, Fe))), 128)),
|
|
525
|
+
(b(!0), m(u, null, S(Z.value, (e, t) => (b(), m("rect", {
|
|
530
526
|
key: `stack_trap_${t}`,
|
|
531
527
|
x: e.start,
|
|
532
528
|
y: 0,
|
|
@@ -534,7 +530,7 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
534
530
|
height: K.value.height,
|
|
535
531
|
fill: "transparent",
|
|
536
532
|
stroke: "none",
|
|
537
|
-
class:
|
|
533
|
+
class: _({ animated: !G.value && !T(z) }),
|
|
538
534
|
onClick: () => Q(e, t),
|
|
539
535
|
onMouseenter: () => ut({
|
|
540
536
|
datapoint: e,
|
|
@@ -544,8 +540,8 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
544
540
|
datapoint: e,
|
|
545
541
|
seriesIndex: t
|
|
546
542
|
})
|
|
547
|
-
}, null, 42,
|
|
548
|
-
])) : (
|
|
543
|
+
}, null, 42, Ie))), 128))
|
|
544
|
+
])) : (b(), m("rect", {
|
|
549
545
|
key: 1,
|
|
550
546
|
x: 2,
|
|
551
547
|
y: 1,
|
|
@@ -555,24 +551,24 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
555
551
|
"stroke-width": "2",
|
|
556
552
|
fill: "transparent",
|
|
557
553
|
rx: (K.value.height - 4) / 2
|
|
558
|
-
}, null, 8,
|
|
559
|
-
], 40,
|
|
560
|
-
hint:
|
|
561
|
-
isVisible:
|
|
554
|
+
}, null, 8, Le))
|
|
555
|
+
], 40, Ae)), e.$slots.hint ? (b(), m("div", Re, [C(e.$slots, "hint", v(g({
|
|
556
|
+
hint: L.value.a11y.translations.keyboardNavigation,
|
|
557
|
+
isVisible: F.value
|
|
562
558
|
})), void 0, !0)])) : p("", !0)]),
|
|
563
|
-
|
|
559
|
+
L.value.style.legend.show ? (b(), m("div", {
|
|
564
560
|
key: 2,
|
|
565
|
-
style:
|
|
561
|
+
style: y(`background:transparent;margin:0 auto;margin:${L.value.style.legend.margin};justify-content:${L.value.style.legend.textAlign === "left" ? "flex-start" : L.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
566
562
|
class: "vue-ui-sparkstackbar-legend",
|
|
567
563
|
"aria-label": "legend",
|
|
568
564
|
role: "toolbar"
|
|
569
|
-
}, [
|
|
565
|
+
}, [L.value.style.legend.selectAllToggle.show && J.value.length > 2 && !T(z) ? (b(), f(he, {
|
|
570
566
|
key: 0,
|
|
571
|
-
backgroundColor:
|
|
572
|
-
color:
|
|
573
|
-
fontSize:
|
|
567
|
+
backgroundColor: L.value.style.legend.selectAllToggle.backgroundColor,
|
|
568
|
+
color: L.value.style.legend.selectAllToggle.color,
|
|
569
|
+
fontSize: L.value.style.legend.fontSize,
|
|
574
570
|
checked: q.value.length > 0,
|
|
575
|
-
isCursorPointer:
|
|
571
|
+
isCursorPointer: $e.value,
|
|
576
572
|
onToggle: it
|
|
577
573
|
}, null, 8, [
|
|
578
574
|
"backgroundColor",
|
|
@@ -580,13 +576,13 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
580
576
|
"fontSize",
|
|
581
577
|
"checked",
|
|
582
578
|
"isCursorPointer"
|
|
583
|
-
])) : p("", !0), (
|
|
579
|
+
])) : p("", !0), (b(!0), m(u, null, S(J.value, (e, n) => (b(), m("div", {
|
|
584
580
|
role: "button",
|
|
585
581
|
tabindex: "0",
|
|
586
582
|
"aria-pressed": q.value.includes(n),
|
|
587
583
|
"aria-label": `${e.name}, ${q.value.includes(n) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
588
|
-
style:
|
|
589
|
-
class:
|
|
584
|
+
style: y(`font-size:${L.value.style.legend.fontSize}px;cursor:${$e.value ? "pointer" : "default"}`),
|
|
585
|
+
class: _({
|
|
590
586
|
"vue-ui-sparkstackbar-legend-item": !0,
|
|
591
587
|
"vue-ui-sparkstackbar-legend-item-unselected": q.value.includes(n)
|
|
592
588
|
}),
|
|
@@ -596,16 +592,16 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
596
592
|
onFocus: (t) => ht(e),
|
|
597
593
|
onBlur: gt,
|
|
598
594
|
onKeydown: (t) => _t(t, e, n)
|
|
599
|
-
}, [h("div",
|
|
600
|
-
height: `${
|
|
601
|
-
width: `${
|
|
595
|
+
}, [h("div", Be, [(b(), m("svg", {
|
|
596
|
+
height: `${L.value.style.legend.fontSize}px`,
|
|
597
|
+
width: `${L.value.style.legend.fontSize}px`,
|
|
602
598
|
viewBox: "0 0 10 10"
|
|
603
|
-
}, [h("defs", null, [
|
|
599
|
+
}, [h("defs", null, [be(me, {
|
|
604
600
|
t: "radial",
|
|
605
|
-
id: `legend_grad_${n}-${
|
|
601
|
+
id: `legend_grad_${n}-${O.value}`,
|
|
606
602
|
stops: [[
|
|
607
603
|
"0%",
|
|
608
|
-
|
|
604
|
+
T(z) ? "#FFFFFF" : T(t)(T(o)(e.color, .05), 100 - L.value.style.bar.gradient.intensity),
|
|
609
605
|
1
|
|
610
606
|
], [
|
|
611
607
|
"100%",
|
|
@@ -616,49 +612,49 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
616
612
|
cx: 5,
|
|
617
613
|
cy: 5,
|
|
618
614
|
r: 5,
|
|
619
|
-
fill:
|
|
620
|
-
}, null, 8,
|
|
615
|
+
fill: L.value.style.bar.gradient.show ? `url(#legend_grad_${n}-${O.value})` : e.color
|
|
616
|
+
}, null, 8, He)], 8, Ve)), T(z) ? p("", !0) : (b(), m(u, { key: 0 }, [h("span", { style: y(`color:${L.value.style.legend.name.color}; font-weight:${L.value.style.legend.name.bold ? "bold" : "normal"}`) }, w(e.name), 5), G.value ? p("", !0) : (b(), m(u, { key: 0 }, [L.value.style.legend.percentage.show ? (b(), m("span", {
|
|
621
617
|
key: 0,
|
|
622
|
-
style:
|
|
623
|
-
},
|
|
618
|
+
style: y(`font-weight:${L.value.style.legend.percentage.bold ? "bold" : "normal"};color:${L.value.style.legend.percentage.color}`)
|
|
619
|
+
}, w(q.value.includes(n) ? " - " : e.proportionLabel), 5)) : p("", !0), L.value.style.legend.value.show ? (b(), m("span", {
|
|
624
620
|
key: 1,
|
|
625
|
-
style:
|
|
626
|
-
}, " (" + T(
|
|
627
|
-
p:
|
|
621
|
+
style: y(`font-weight:${L.value.style.legend.value.bold ? "bold" : "normal"};color:${L.value.style.legend.value.color}`)
|
|
622
|
+
}, " (" + w(T(c)(L.value.style.legend.value.formatter, e.value, T(s)({
|
|
623
|
+
p: L.value.style.legend.value.prefix,
|
|
628
624
|
v: e.value,
|
|
629
|
-
s:
|
|
630
|
-
r:
|
|
625
|
+
s: L.value.style.legend.value.suffix,
|
|
626
|
+
r: L.value.style.legend.value.rounding
|
|
631
627
|
}), {
|
|
632
628
|
datapoint: e,
|
|
633
629
|
seriesIndex: n
|
|
634
|
-
})) + ") ", 5)) : p("", !0)], 64))], 64))])], 46,
|
|
635
|
-
|
|
636
|
-
teleportTo:
|
|
637
|
-
show:
|
|
638
|
-
parent:
|
|
639
|
-
backgroundColor:
|
|
640
|
-
color:
|
|
641
|
-
fontSize:
|
|
642
|
-
borderRadius:
|
|
643
|
-
borderColor:
|
|
644
|
-
borderWidth:
|
|
645
|
-
backgroundOpacity:
|
|
646
|
-
position:
|
|
647
|
-
content:
|
|
648
|
-
isCustom:
|
|
649
|
-
offsetX:
|
|
650
|
-
offsetY: -124 +
|
|
630
|
+
})) + ") ", 5)) : p("", !0)], 64))], 64))])], 46, ze))), 256))], 4)) : p("", !0),
|
|
631
|
+
be(T(We), {
|
|
632
|
+
teleportTo: L.value.style.tooltip.teleportTo,
|
|
633
|
+
show: k.value && L.value.style.tooltip.show,
|
|
634
|
+
parent: Xe.value,
|
|
635
|
+
backgroundColor: L.value.style.tooltip.backgroundColor,
|
|
636
|
+
color: L.value.style.tooltip.color,
|
|
637
|
+
fontSize: L.value.style.tooltip.fontSize,
|
|
638
|
+
borderRadius: L.value.style.tooltip.borderRadius,
|
|
639
|
+
borderColor: L.value.style.tooltip.borderColor,
|
|
640
|
+
borderWidth: L.value.style.tooltip.borderWidth,
|
|
641
|
+
backgroundOpacity: L.value.style.tooltip.backgroundOpacity,
|
|
642
|
+
position: L.value.style.tooltip.position,
|
|
643
|
+
content: A.value,
|
|
644
|
+
isCustom: M.value,
|
|
645
|
+
offsetX: L.value.style.tooltip.offsetX,
|
|
646
|
+
offsetY: -124 + L.value.style.tooltip.offsetY,
|
|
651
647
|
blockShiftY: !0,
|
|
652
|
-
smooth:
|
|
653
|
-
backdropFilter:
|
|
654
|
-
smoothForce:
|
|
655
|
-
smoothSnapThreshold:
|
|
656
|
-
isA11yMode:
|
|
657
|
-
a11yPosition:
|
|
648
|
+
smooth: L.value.style.tooltip.smooth,
|
|
649
|
+
backdropFilter: L.value.style.tooltip.backdropFilter,
|
|
650
|
+
smoothForce: L.value.style.tooltip.smoothForce,
|
|
651
|
+
smoothSnapThreshold: L.value.style.tooltip.smoothSnapThreshold,
|
|
652
|
+
isA11yMode: P.value === "keyboard",
|
|
653
|
+
a11yPosition: Ze.value
|
|
658
654
|
}, {
|
|
659
|
-
"tooltip-before":
|
|
660
|
-
tooltip:
|
|
661
|
-
"tooltip-after":
|
|
655
|
+
"tooltip-before": Ee(() => [C(e.$slots, "tooltip-before", v(g({ ...j.value })), void 0, !0)]),
|
|
656
|
+
tooltip: Ee(() => [C(e.$slots, "tooltip", v(g({ ...j.value })), void 0, !0)]),
|
|
657
|
+
"tooltip-after": Ee(() => [C(e.$slots, "tooltip-after", v(g({ ...j.value })), void 0, !0)]),
|
|
662
658
|
_: 3
|
|
663
659
|
}, 8, [
|
|
664
660
|
"teleportTo",
|
|
@@ -683,10 +679,10 @@ var Te = /* @__PURE__ */ e({ default: () => He }), Ee = ["id"], De = { style: {
|
|
|
683
679
|
"isA11yMode",
|
|
684
680
|
"a11yPosition"
|
|
685
681
|
]),
|
|
686
|
-
e.$slots.source ? (
|
|
687
|
-
|
|
682
|
+
e.$slots.source ? (b(), m("div", Ue, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
683
|
+
C(e.$slots, "skeleton", {}, () => [T(z) ? (b(), f(de, { key: 0 })) : p("", !0)], !0)
|
|
688
684
|
], 4));
|
|
689
685
|
}
|
|
690
|
-
}, [["__scopeId", "data-v-
|
|
686
|
+
}, [["__scopeId", "data-v-46bfe738"]]);
|
|
691
687
|
//#endregion
|
|
692
|
-
export {
|
|
688
|
+
export { De as n, E as t };
|