vue-data-ui 3.22.0 → 3.22.1
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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-_Dwp4NUr.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CfgH43C9.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-B_81qHQA.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 +3 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-C10cdg45.js} +2 -0
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-DSBOFB88.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DyFtIu5x.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BONLasZK.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Ck_u5Nro.js} +4 -4
- package/dist/vue-ui-age-pyramid-CESMhEwG.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-DvpCTv7j.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-qdXPXPxt.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-LMO0-JMK.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-ByWgbxR_.js} +50 -50
- package/dist/vue-ui-carousel-table-Clv65OZW.js +455 -0
- package/dist/vue-ui-chestnut-Dbxtt0EO.js +2010 -0
- package/dist/vue-ui-chord-DsCYzzLp.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DUn2l2nz.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-CElckzVJ.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag-B7a6P_58.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-CuYXrIHK.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-CiRRs9Yh.js} +4 -4
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-PedJo3bO.js} +474 -474
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-_EtEQwAW.js} +160 -160
- package/dist/vue-ui-donut-evolution-C9mV62bb.js +1510 -0
- package/dist/vue-ui-dumbbell-byV_cZ7p.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-DOLqQ6P4.js} +43 -43
- package/dist/vue-ui-funnel-CInvdUuT.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-DOeb6bP3.js} +301 -301
- package/dist/vue-ui-gauge-m2OemLTk.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-CGw4_HqU.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-CavNggei.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-BgBgDRa_.js} +95 -95
- package/dist/vue-ui-history-plot-jc1aVr7r.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-BkV41pJi.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DZAJA0gO.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-C29a9zHr.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-E7a7X-Tz.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-ww9uHX-0.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-BNvpHhXK.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-Cis7D9N3.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-BnVXfomm.js} +40 -40
- package/dist/vue-ui-quadrant-DQ8rrBHV.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-B1xUyqD7.js} +358 -358
- package/dist/vue-ui-radar-D0y4BN8E.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-DKurps0a.js} +34 -34
- package/dist/vue-ui-relation-circle-aanEwlBG.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-DS_llqb5.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-CILfFp-q.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-CQqdNOLR.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DpjFm7_n.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-BKQMu9Dw.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-xsg-hyHs.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-BwpOy0xT.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-DgTkRohs.js} +38 -38
- package/dist/vue-ui-sparkhistogram-D72VDOlh.js +560 -0
- package/dist/vue-ui-sparkline-WG-oYip8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BqAeq4Lb.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-CVIF37k7.js} +67 -67
- package/dist/vue-ui-stackline-DX1AYpur.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot--fR31p0x.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-DSE4d-Dx.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-DKE7y65s.js} +17 -17
- package/dist/vue-ui-table-sparkline-KOk0iH56.js +712 -0
- package/dist/vue-ui-thermometer-FQvSBV4T.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-BsSpuP2_.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-f85yEqZh.js} +19 -19
- package/dist/vue-ui-treemap-DdSJEMp-.js +1587 -0
- package/dist/vue-ui-waffle-BHsayx6v.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-DerItN6D.js} +51 -51
- package/dist/{vue-ui-word-cloud-BqsUdsCY.js → vue-ui-word-cloud-DV-qLV17.js} +27 -27
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-DhH-_2IC.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CuAsNLLv.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DMoj6Y3F.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CrzY1ni9.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as ae } from "./useConfig-
|
|
2
|
+
import { Et as t, Ft as n, G as r, H as i, It as a, Ut as o, Vt as s, X as c, ct as ee, gt as te, i as ne, kt as l, t as re, x as ie, y as u } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as ae } from "./useConfig-C10cdg45.js";
|
|
4
4
|
import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
-
import { t as d } from "./useNestedProp-
|
|
5
|
+
import { t as d } from "./useNestedProp-APyFoLCQ.js";
|
|
6
6
|
import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
7
|
import { t as le } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
-
import { t as ue } from "./BaseLegendToggle-
|
|
8
|
+
import { t as ue } from "./BaseLegendToggle-B-lM0iV1.js";
|
|
9
9
|
import { t as de } from "./A11yDataTable-DdRsVULz.js";
|
|
10
10
|
import { t as fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
11
11
|
import { t as pe } from "./vue_ui_sparkstackbar-BOjuQnZd.js";
|
|
12
|
-
import { Fragment as f, computed as p, createBlock as
|
|
12
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as me, defineAsyncComponent as he, guardReactiveProps as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onMounted as ge, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toRefs as _e, unref as D, useSlots as ve, watch as ye, withCtx as O } from "vue";
|
|
13
13
|
//#region src/components/vue-ui-sparkstackbar.vue
|
|
14
|
-
var
|
|
14
|
+
var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { style: { position: "relative" } }, Ce = [
|
|
15
15
|
"xmlns",
|
|
16
16
|
"viewBox",
|
|
17
17
|
"aria-describedby"
|
|
18
|
-
],
|
|
18
|
+
], we = ["id"], Te = ["stop-color"], Ee = ["stop-color"], De = ["stop-color"], Oe = {
|
|
19
19
|
id: "stackPill",
|
|
20
20
|
clipPathUnits: "objectBoundingBox"
|
|
21
|
-
},
|
|
21
|
+
}, ke = ["fill"], Ae = {
|
|
22
22
|
key: 0,
|
|
23
23
|
"clip-path": "url(#stackPill)"
|
|
24
|
-
},
|
|
24
|
+
}, je = [
|
|
25
25
|
"x",
|
|
26
26
|
"width",
|
|
27
27
|
"height",
|
|
28
28
|
"fill"
|
|
29
|
-
],
|
|
29
|
+
], Me = [
|
|
30
30
|
"x",
|
|
31
31
|
"width",
|
|
32
32
|
"height",
|
|
33
33
|
"fill",
|
|
34
34
|
"stroke"
|
|
35
|
-
],
|
|
35
|
+
], Ne = [
|
|
36
36
|
"x",
|
|
37
37
|
"width",
|
|
38
38
|
"height",
|
|
39
39
|
"onClick",
|
|
40
40
|
"onMouseenter",
|
|
41
41
|
"onMouseleave"
|
|
42
|
-
],
|
|
42
|
+
], Pe = [
|
|
43
43
|
"width",
|
|
44
44
|
"height",
|
|
45
45
|
"rx"
|
|
46
|
-
],
|
|
46
|
+
], Fe = {
|
|
47
47
|
key: 0,
|
|
48
48
|
style: {
|
|
49
49
|
position: "absolute",
|
|
@@ -53,23 +53,23 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
53
53
|
},
|
|
54
54
|
"data-dom-to-png-ignore": "",
|
|
55
55
|
"aria-hidden": "true"
|
|
56
|
-
},
|
|
56
|
+
}, Ie = [
|
|
57
57
|
"aria-pressed",
|
|
58
58
|
"aria-label",
|
|
59
59
|
"onClick",
|
|
60
60
|
"onFocus",
|
|
61
61
|
"onKeydown"
|
|
62
|
-
],
|
|
62
|
+
], Le = { style: {
|
|
63
63
|
display: "flex",
|
|
64
64
|
"flex-direction": "row",
|
|
65
65
|
"align-items": "center",
|
|
66
66
|
gap: "4px",
|
|
67
67
|
"justify-content": "center"
|
|
68
|
-
} },
|
|
68
|
+
} }, Re = ["height", "width"], ze = ["id"], Be = ["stop-color"], Ve = ["stop-color"], He = ["fill"], Ue = {
|
|
69
69
|
key: 3,
|
|
70
70
|
ref: "source",
|
|
71
71
|
dir: "auto"
|
|
72
|
-
},
|
|
72
|
+
}, k = /*#__PURE__*/ le({
|
|
73
73
|
__name: "vue-ui-sparkstackbar",
|
|
74
74
|
props: {
|
|
75
75
|
config: {
|
|
@@ -86,15 +86,15 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
emits: ["selectDatapoint", "selectLegend"],
|
|
89
|
-
setup(e, { expose: le, emit:
|
|
90
|
-
let
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
setup(e, { expose: le, emit: be }) {
|
|
90
|
+
let k = he(() => import("./PackageVersion-_Dwp4NUr.js").then((e) => e.t)), We = he(() => import("./Tooltip-BmGCBJuU.js")), { vue_ui_sparkstackbar: Ge } = ae(), { isThemeValid: Ke, warnInvalidTheme: qe } = ce(), A = e, Je = ve();
|
|
91
|
+
ge(() => {
|
|
92
|
+
Je["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
93
93
|
});
|
|
94
|
-
let
|
|
94
|
+
let Ye = C(null), j = C(i()), M = C(!1), Xe = C(""), N = C(null), P = C(!1), F = C(null), Ze = C({
|
|
95
95
|
x: 0,
|
|
96
96
|
y: 0
|
|
97
|
-
}),
|
|
97
|
+
}), I = C("pointer"), Qe = C(!1), L = C(null), $e = C([]), R = C(H()), et = p(() => R.value.useCursorPointer), tt = p(() => o({
|
|
98
98
|
defaultConfig: { style: {
|
|
99
99
|
backgroundColor: "#99999930",
|
|
100
100
|
animation: { show: !1 },
|
|
@@ -103,10 +103,10 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
103
103
|
} },
|
|
104
104
|
userConfig: R.value.skeletonConfig ?? {}
|
|
105
105
|
})), { loading: z, FINAL_DATASET: B } = oe({
|
|
106
|
-
...
|
|
106
|
+
..._e(A),
|
|
107
107
|
FINAL_CONFIG: R,
|
|
108
108
|
prepareConfig: H,
|
|
109
|
-
skeletonDataset:
|
|
109
|
+
skeletonDataset: A.config?.skeletonDataset ?? [
|
|
110
110
|
{
|
|
111
111
|
name: "_",
|
|
112
112
|
value: 8,
|
|
@@ -123,43 +123,43 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
123
123
|
color: "#DBDBDB"
|
|
124
124
|
}
|
|
125
125
|
],
|
|
126
|
-
skeletonConfig:
|
|
126
|
+
skeletonConfig: o({
|
|
127
127
|
defaultConfig: R.value,
|
|
128
128
|
userConfig: tt.value
|
|
129
129
|
})
|
|
130
130
|
}), { svgRef: V } = fe({ config: R.value.style.title });
|
|
131
131
|
function H() {
|
|
132
132
|
let e = d({
|
|
133
|
-
userConfig:
|
|
134
|
-
defaultConfig:
|
|
135
|
-
}),
|
|
136
|
-
if (!
|
|
137
|
-
if (!
|
|
138
|
-
let
|
|
139
|
-
userConfig: pe[
|
|
133
|
+
userConfig: A.config,
|
|
134
|
+
defaultConfig: Ge
|
|
135
|
+
}), t = e.theme;
|
|
136
|
+
if (!t) return e;
|
|
137
|
+
if (!Ke.value(e)) return qe(e), e;
|
|
138
|
+
let n = d({
|
|
139
|
+
userConfig: pe[t] || A.config,
|
|
140
140
|
defaultConfig: e
|
|
141
|
-
}),
|
|
142
|
-
userConfig:
|
|
143
|
-
defaultConfig:
|
|
141
|
+
}), r = d({
|
|
142
|
+
userConfig: A.config,
|
|
143
|
+
defaultConfig: n
|
|
144
144
|
});
|
|
145
145
|
return {
|
|
146
|
-
...
|
|
147
|
-
customPalette:
|
|
146
|
+
...r,
|
|
147
|
+
customPalette: r.customPalette.length ? r.customPalette : s[t] || l
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
|
|
150
|
+
ye(() => A.config, (e) => {
|
|
151
151
|
R.value = H(), it();
|
|
152
|
-
}, { deep: !0 }),
|
|
152
|
+
}, { deep: !0 }), ye(() => B.value, (e) => {
|
|
153
153
|
W.value = B.value.map((e, t) => ({
|
|
154
154
|
...e,
|
|
155
|
-
color: e.color ? u(e.color) : U.value[t] ||
|
|
155
|
+
color: e.color ? u(e.color) : U.value[t] || l[t] || l[t % l.length]
|
|
156
156
|
})), nt();
|
|
157
157
|
}, { deep: !0 });
|
|
158
|
-
let U = p(() => ie(R.value.customPalette)), W =
|
|
158
|
+
let U = p(() => ie(R.value.customPalette)), W = C(B.value.map((e, t) => ({
|
|
159
159
|
...e,
|
|
160
160
|
value: R.value.style.animation.show ? 0 : e.value || 0,
|
|
161
|
-
color: e.color ? u(e.color) : U.value[t] ||
|
|
162
|
-
}))), G =
|
|
161
|
+
color: e.color ? u(e.color) : U.value[t] || l[t] || l[t % l.length]
|
|
162
|
+
}))), G = C(!0);
|
|
163
163
|
function nt() {
|
|
164
164
|
if (!R.value.style.animation.show) {
|
|
165
165
|
G.value = !1;
|
|
@@ -169,37 +169,37 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
169
169
|
G.value = !0, W.value = B.value.map((e, t) => ({
|
|
170
170
|
...e,
|
|
171
171
|
value: 0,
|
|
172
|
-
color: e.color ? u(e.color) : U.value[t] ||
|
|
172
|
+
color: e.color ? u(e.color) : U.value[t] || l[t] || l[t % l.length]
|
|
173
173
|
}));
|
|
174
|
-
function
|
|
174
|
+
function o() {
|
|
175
175
|
a += r / e, a < r ? (W.value = W.value.map((e, r) => ({
|
|
176
176
|
...e,
|
|
177
177
|
value: Math.min(e.value + n[r], t[r]),
|
|
178
|
-
color: e.color ? u(e.color) : U.value[r] ||
|
|
179
|
-
})), requestAnimationFrame(
|
|
178
|
+
color: e.color ? u(e.color) : U.value[r] || l[r] || l[r % l.length]
|
|
179
|
+
})), requestAnimationFrame(o)) : (G.value = !1, W.value = B.value.map((e, n) => ({
|
|
180
180
|
...e,
|
|
181
181
|
value: t[n],
|
|
182
|
-
color: e.color ? u(e.color) : U.value[n] ||
|
|
182
|
+
color: e.color ? u(e.color) : U.value[n] || l[n] || l[n % l.length],
|
|
183
183
|
id: i()
|
|
184
184
|
})));
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
o();
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
ge(() => {
|
|
189
189
|
it();
|
|
190
190
|
});
|
|
191
191
|
let rt = p(() => R.value.debug);
|
|
192
192
|
function it() {
|
|
193
|
-
|
|
193
|
+
t(A.dataset) ? c({
|
|
194
194
|
componentName: "VueUiSparkStackbar",
|
|
195
195
|
type: "dataset",
|
|
196
196
|
debug: rt.value
|
|
197
|
-
}) :
|
|
198
|
-
|
|
197
|
+
}) : A.dataset.forEach((e, t) => {
|
|
198
|
+
ee({
|
|
199
199
|
datasetObject: e,
|
|
200
200
|
requiredAttributes: ["name", "value"]
|
|
201
201
|
}).forEach((e) => {
|
|
202
|
-
|
|
202
|
+
c({
|
|
203
203
|
componentName: "VueUiSparkStackbar",
|
|
204
204
|
type: "datasetSerieAttribute",
|
|
205
205
|
property: e,
|
|
@@ -209,17 +209,17 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
209
209
|
});
|
|
210
210
|
}), nt();
|
|
211
211
|
}
|
|
212
|
-
let K =
|
|
212
|
+
let K = C({
|
|
213
213
|
width: 500,
|
|
214
214
|
height: 16
|
|
215
|
-
}), q =
|
|
216
|
-
let n = e.value || 0, i = n / at.value, a = isNaN(i) ? 0 : i,
|
|
215
|
+
}), q = C([]), at = p(() => B.value.map((e) => e.value || 0).filter((e, t) => !q.value.includes(t)).reduce((e, t) => e + t, 0)), J = p(() => W.value.map((e, t) => {
|
|
216
|
+
let n = e.value || 0, i = n / at.value, a = isNaN(i) ? 0 : i, o = a * K.value.width;
|
|
217
217
|
return {
|
|
218
218
|
...e,
|
|
219
|
-
color: u(B.value[t]?.color ? B.value[t]?.color : U.value[t] ||
|
|
219
|
+
color: u(B.value[t]?.color ? B.value[t]?.color : U.value[t] || l[t] || l[t % l.length]),
|
|
220
220
|
value: n,
|
|
221
221
|
proportion: a,
|
|
222
|
-
width:
|
|
222
|
+
width: o,
|
|
223
223
|
seriesIndex: t,
|
|
224
224
|
proportionLabel: r({
|
|
225
225
|
v: a * 100,
|
|
@@ -254,7 +254,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
254
254
|
start: e
|
|
255
255
|
}), e += Y.value[n].width;
|
|
256
256
|
return t;
|
|
257
|
-
}), ut =
|
|
257
|
+
}), ut = be;
|
|
258
258
|
function Q(e, t, n = !1) {
|
|
259
259
|
ut("selectDatapoint", {
|
|
260
260
|
datapoint: e,
|
|
@@ -265,37 +265,37 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
function dt({ datapoint: e, seriesIndex: t }) {
|
|
268
|
-
|
|
268
|
+
M.value = !1, L.value = null, F.value = null, I.value = "pointer", R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
269
269
|
datapoint: e,
|
|
270
270
|
seriesIndex: e.seriesIndex
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
function ft({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
274
|
-
if (
|
|
274
|
+
if (P.value = !1, R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
275
275
|
datapoint: e,
|
|
276
276
|
seriesIndex: e.seriesIndex
|
|
277
277
|
}), !R.value.style.tooltip.show) return;
|
|
278
|
-
|
|
278
|
+
I.value = n, N.value = {
|
|
279
279
|
datapoint: e,
|
|
280
280
|
seriesIndex: t,
|
|
281
281
|
config: R.value,
|
|
282
282
|
series: J.value
|
|
283
|
-
},
|
|
283
|
+
}, M.value = !0, L.value = t;
|
|
284
284
|
let i = R.value.style.tooltip.customFormat;
|
|
285
|
-
if (
|
|
285
|
+
if (te(i)) try {
|
|
286
286
|
let t = i({
|
|
287
287
|
seriesIndex: e.seriesIndex,
|
|
288
288
|
datapoint: e,
|
|
289
289
|
series: J.value,
|
|
290
290
|
config: R.value
|
|
291
291
|
});
|
|
292
|
-
typeof t == "string" && (
|
|
292
|
+
typeof t == "string" && (Xe.value = t, P.value = !0);
|
|
293
293
|
} catch {
|
|
294
|
-
console.warn("Custom format cannot be applied."),
|
|
294
|
+
console.warn("Custom format cannot be applied."), P.value = !1;
|
|
295
295
|
}
|
|
296
|
-
if (!
|
|
296
|
+
if (!P.value) {
|
|
297
297
|
let n = "";
|
|
298
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${R.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${e.proportionLabel}</b>`, n += `<span>(${
|
|
298
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${R.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${e.proportionLabel}</b>`, n += `<span>(${ne(R.value.style.legend.value.formatter, e.value, r({
|
|
299
299
|
p: R.value.style.legend.value.prefix,
|
|
300
300
|
v: e.value,
|
|
301
301
|
s: R.value.style.legend.value.suffix,
|
|
@@ -303,7 +303,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
303
303
|
}), {
|
|
304
304
|
datapoint: e,
|
|
305
305
|
seriesIndex: t
|
|
306
|
-
})})</span>`,
|
|
306
|
+
})})</span>`, Xe.value = `<div>${n}</div>`;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
function $(e) {
|
|
@@ -315,46 +315,46 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
315
315
|
let t = Z.value[e];
|
|
316
316
|
if (!t) return;
|
|
317
317
|
let n = V.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
|
|
318
|
-
|
|
318
|
+
Ze.value = {
|
|
319
319
|
x: n.left + r / K.value.width * n.width,
|
|
320
320
|
y: n.top + i / K.value.height * n.height
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
function mt() {
|
|
324
|
-
|
|
324
|
+
F.value = null, Qe.value = !0;
|
|
325
325
|
}
|
|
326
326
|
function ht() {
|
|
327
|
-
|
|
327
|
+
F.value = null, I.value = "pointer", M.value = !1, L.value = null, Qe.value = !1;
|
|
328
328
|
}
|
|
329
329
|
function gt(e) {
|
|
330
330
|
if (!V.value || document.activeElement !== V.value || !Z.value.length) return;
|
|
331
331
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape", a = e.key === "Home", o = e.key === "End";
|
|
332
332
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
333
333
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
334
|
-
|
|
334
|
+
F.value = null, I.value = "pointer", M.value = !1, L.value = null;
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
337
|
if (r) {
|
|
338
|
-
if (
|
|
339
|
-
let e = Z.value[
|
|
338
|
+
if (F.value === null) return;
|
|
339
|
+
let e = Z.value[F.value];
|
|
340
340
|
if (!e) return;
|
|
341
341
|
Q(e, e.seriesIndex);
|
|
342
342
|
return;
|
|
343
343
|
}
|
|
344
|
-
let s =
|
|
344
|
+
let s = F.value;
|
|
345
345
|
a ? s = 0 : o ? s = Z.value.length - 1 : s === null || s < 0 || s >= Z.value.length ? s = n ? 0 : Z.value.length - 1 : n ? (s += 1, s >= Z.value.length && (s = 0)) : t && (--s, s < 0 && (s = Z.value.length - 1));
|
|
346
346
|
let c = Z.value[s];
|
|
347
|
-
c && (
|
|
347
|
+
c && (F.value = s, pt(s), ft({
|
|
348
348
|
datapoint: c,
|
|
349
349
|
seriesIndex: c.seriesIndex,
|
|
350
350
|
triggerMode: "keyboard"
|
|
351
351
|
}));
|
|
352
352
|
}
|
|
353
353
|
function _t(e) {
|
|
354
|
-
|
|
354
|
+
M.value = !1, F.value = null, I.value = "pointer", L.value = e.seriesIndex;
|
|
355
355
|
}
|
|
356
356
|
function vt() {
|
|
357
|
-
|
|
357
|
+
F.value = null, I.value = "pointer", M.value = !1, L.value = null;
|
|
358
358
|
}
|
|
359
359
|
function yt(e, t, n) {
|
|
360
360
|
let r = e.key === "Enter" || e.key === " ", i = e.key === "ArrowLeft" || e.key === "ArrowUp", a = e.key === "ArrowRight" || e.key === "ArrowDown", o = e.key === "Home", s = e.key === "End", c = e.key === "Escape";
|
|
@@ -391,7 +391,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
391
391
|
rows: J.value.map((e, t) => [
|
|
392
392
|
e.name,
|
|
393
393
|
q.value.includes(t) ? " - " : e.proportionLabel,
|
|
394
|
-
|
|
394
|
+
ne(R.value.style.legend.value.formatter, e.value, r({
|
|
395
395
|
p: R.value.style.legend.value.prefix,
|
|
396
396
|
v: e.value,
|
|
397
397
|
s: R.value.style.legend.value.suffix,
|
|
@@ -405,19 +405,19 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
405
405
|
return le({
|
|
406
406
|
hideSeries: lt,
|
|
407
407
|
showSeries: ct
|
|
408
|
-
}), (e, t) => (
|
|
408
|
+
}), (e, t) => (S(), g("div", {
|
|
409
409
|
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
410
410
|
ref_key: "sparkstackbarChart",
|
|
411
|
-
ref:
|
|
412
|
-
style:
|
|
411
|
+
ref: Ye,
|
|
412
|
+
style: x(`width:100%; background:${R.value.style.backgroundColor}`)
|
|
413
413
|
}, [
|
|
414
|
-
|
|
415
|
-
id: `chart-instructions-${
|
|
414
|
+
_("div", {
|
|
415
|
+
id: `chart-instructions-${j.value}`,
|
|
416
416
|
class: "sr-only"
|
|
417
|
-
}, [
|
|
418
|
-
bt.value?.rows?.length ? (
|
|
417
|
+
}, [_("p", null, E(R.value.a11y.translations.keyboardNavigation), 1)], 8, xe),
|
|
418
|
+
bt.value?.rows?.length ? (S(), m(de, {
|
|
419
419
|
key: 0,
|
|
420
|
-
uid:
|
|
420
|
+
uid: j.value,
|
|
421
421
|
head: bt.value.headers,
|
|
422
422
|
body: bt.value.rows,
|
|
423
423
|
notice: R.value.a11y.translations.tableAvailable,
|
|
@@ -428,49 +428,49 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
428
428
|
"body",
|
|
429
429
|
"notice",
|
|
430
430
|
"caption"
|
|
431
|
-
])) :
|
|
432
|
-
R.value.style.title.text ? (
|
|
431
|
+
])) : h("", !0),
|
|
432
|
+
R.value.style.title.text ? (S(), g("div", {
|
|
433
433
|
key: 1,
|
|
434
|
-
style:
|
|
435
|
-
}, [
|
|
434
|
+
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
|
+
}, [_("div", {
|
|
436
436
|
class: "atom-title",
|
|
437
|
-
style:
|
|
438
|
-
},
|
|
437
|
+
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(), g("div", {
|
|
439
439
|
key: 0,
|
|
440
440
|
class: "atom-subtitle",
|
|
441
|
-
style:
|
|
442
|
-
},
|
|
443
|
-
|
|
441
|
+
style: x(`font-size:${R.value.style.title.subtitle.fontSize}px;color:${R.value.style.title.subtitle.color};font-weight:${R.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
442
|
+
}, E(R.value.style.title.subtitle.text), 5)) : h("", !0)], 4)) : h("", !0),
|
|
443
|
+
_("div", Se, [(S(), g("svg", {
|
|
444
444
|
ref_key: "svgRef",
|
|
445
445
|
ref: V,
|
|
446
|
-
xmlns:
|
|
446
|
+
xmlns: D(re),
|
|
447
447
|
width: "100%",
|
|
448
448
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
449
|
-
"aria-describedby": `chart-instructions-${
|
|
449
|
+
"aria-describedby": `chart-instructions-${j.value}`,
|
|
450
450
|
tabindex: "0",
|
|
451
451
|
onFocus: mt,
|
|
452
452
|
onBlur: ht,
|
|
453
453
|
onKeydown: gt
|
|
454
454
|
}, [
|
|
455
|
-
|
|
456
|
-
|
|
455
|
+
me(D(k)),
|
|
456
|
+
_("defs", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("linearGradient", {
|
|
457
457
|
key: `stack_gradient_${t}`,
|
|
458
458
|
gradientTransform: "rotate(90)",
|
|
459
|
-
id: `stack_gradient_${t}_${
|
|
459
|
+
id: `stack_gradient_${t}_${j.value}`
|
|
460
460
|
}, [
|
|
461
|
-
|
|
461
|
+
_("stop", {
|
|
462
462
|
offset: "0%",
|
|
463
463
|
"stop-color": e.color
|
|
464
|
-
}, null, 8,
|
|
465
|
-
|
|
464
|
+
}, null, 8, Te),
|
|
465
|
+
_("stop", {
|
|
466
466
|
offset: "50%",
|
|
467
|
-
"stop-color":
|
|
468
|
-
}, null, 8,
|
|
469
|
-
|
|
467
|
+
"stop-color": D(n)(D(a)(e.color, .05), 100 - R.value.style.bar.gradient.intensity)
|
|
468
|
+
}, null, 8, Ee),
|
|
469
|
+
_("stop", {
|
|
470
470
|
offset: "100%",
|
|
471
471
|
"stop-color": e.color
|
|
472
|
-
}, null, 8,
|
|
473
|
-
], 8,
|
|
472
|
+
}, null, 8, De)
|
|
473
|
+
], 8, we))), 128)), _("clipPath", Oe, [_("rect", {
|
|
474
474
|
x: "0.005",
|
|
475
475
|
y: "-2",
|
|
476
476
|
width: "0.99",
|
|
@@ -478,31 +478,31 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
478
478
|
rx: "3",
|
|
479
479
|
ry: "3",
|
|
480
480
|
fill: R.value.style.backgroundColor
|
|
481
|
-
}, null, 8,
|
|
482
|
-
at.value > 0 ? (
|
|
483
|
-
(
|
|
481
|
+
}, null, 8, ke)])]),
|
|
482
|
+
at.value > 0 ? (S(), g("g", Ae, [
|
|
483
|
+
(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
|
|
484
484
|
key: `stack_underlayer_${t}`,
|
|
485
485
|
x: e.start,
|
|
486
486
|
y: 0,
|
|
487
487
|
width: e.width,
|
|
488
488
|
height: K.value.height,
|
|
489
489
|
fill: R.value.style.bar.gradient.underlayerColor,
|
|
490
|
-
class:
|
|
491
|
-
style:
|
|
492
|
-
}, null, 14,
|
|
493
|
-
(
|
|
490
|
+
class: y({ animated: !G.value && !D(z) }),
|
|
491
|
+
style: x({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
492
|
+
}, null, 14, je))), 128)),
|
|
493
|
+
(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
|
|
494
494
|
key: `stack_${t}`,
|
|
495
495
|
x: e.start,
|
|
496
496
|
y: 0,
|
|
497
497
|
width: e.width,
|
|
498
498
|
height: K.value.height,
|
|
499
|
-
fill: R.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${
|
|
499
|
+
fill: R.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${j.value})` : e.color,
|
|
500
500
|
stroke: R.value.style.backgroundColor,
|
|
501
501
|
"stroke-linecap": "round",
|
|
502
|
-
class:
|
|
503
|
-
style:
|
|
504
|
-
}, null, 14,
|
|
505
|
-
(
|
|
502
|
+
class: y({ animated: !G.value && !D(z) }),
|
|
503
|
+
style: x({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
504
|
+
}, null, 14, Me))), 128)),
|
|
505
|
+
(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
|
|
506
506
|
key: `stack_trap_${t}`,
|
|
507
507
|
x: e.start,
|
|
508
508
|
y: 0,
|
|
@@ -510,7 +510,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
510
510
|
height: K.value.height,
|
|
511
511
|
fill: "transparent",
|
|
512
512
|
stroke: "none",
|
|
513
|
-
class:
|
|
513
|
+
class: y({ animated: !G.value && !D(z) }),
|
|
514
514
|
onClick: () => Q(e, t),
|
|
515
515
|
onMouseenter: () => ft({
|
|
516
516
|
datapoint: e,
|
|
@@ -520,8 +520,8 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
520
520
|
datapoint: e,
|
|
521
521
|
seriesIndex: t
|
|
522
522
|
})
|
|
523
|
-
}, null, 42,
|
|
524
|
-
])) : (
|
|
523
|
+
}, null, 42, Ne))), 128))
|
|
524
|
+
])) : (S(), g("rect", {
|
|
525
525
|
key: 1,
|
|
526
526
|
x: 2,
|
|
527
527
|
y: 1,
|
|
@@ -531,18 +531,18 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
531
531
|
"stroke-width": "2",
|
|
532
532
|
fill: "transparent",
|
|
533
533
|
rx: (K.value.height - 4) / 2
|
|
534
|
-
}, null, 8,
|
|
535
|
-
], 40,
|
|
534
|
+
}, null, 8, Pe))
|
|
535
|
+
], 40, Ce)), e.$slots.hint ? (S(), g("div", Fe, [T(e.$slots, "hint", b(v({
|
|
536
536
|
hint: R.value.a11y.translations.keyboardNavigation,
|
|
537
|
-
isVisible:
|
|
538
|
-
})), void 0, !0)])) :
|
|
539
|
-
R.value.style.legend.show ? (
|
|
537
|
+
isVisible: Qe.value
|
|
538
|
+
})), void 0, !0)])) : h("", !0)]),
|
|
539
|
+
R.value.style.legend.show ? (S(), g("div", {
|
|
540
540
|
key: 2,
|
|
541
|
-
style:
|
|
541
|
+
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
542
|
class: "vue-ui-sparkstackbar-legend",
|
|
543
543
|
"aria-label": "legend",
|
|
544
544
|
role: "toolbar"
|
|
545
|
-
}, [R.value.style.legend.selectAllToggle.show && J.value.length > 2 && !
|
|
545
|
+
}, [R.value.style.legend.selectAllToggle.show && J.value.length > 2 && !D(z) ? (S(), m(ue, {
|
|
546
546
|
key: 0,
|
|
547
547
|
backgroundColor: R.value.style.legend.selectAllToggle.backgroundColor,
|
|
548
548
|
color: R.value.style.legend.selectAllToggle.color,
|
|
@@ -556,13 +556,13 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
556
556
|
"fontSize",
|
|
557
557
|
"checked",
|
|
558
558
|
"isCursorPointer"
|
|
559
|
-
])) :
|
|
559
|
+
])) : h("", !0), (S(!0), g(f, null, w(J.value, (e, t) => (S(), g("div", {
|
|
560
560
|
role: "button",
|
|
561
561
|
tabindex: "0",
|
|
562
562
|
"aria-pressed": q.value.includes(t),
|
|
563
563
|
"aria-label": `${e.name}, ${q.value.includes(t) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
564
|
-
style:
|
|
565
|
-
class:
|
|
564
|
+
style: x(`font-size:${R.value.style.legend.fontSize}px;cursor:${et.value ? "pointer" : "default"}`),
|
|
565
|
+
class: y({
|
|
566
566
|
"vue-ui-sparkstackbar-legend-item": !0,
|
|
567
567
|
"vue-ui-sparkstackbar-legend-item-unselected": q.value.includes(t)
|
|
568
568
|
}),
|
|
@@ -572,28 +572,28 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
572
572
|
onFocus: (t) => _t(e),
|
|
573
573
|
onBlur: vt,
|
|
574
574
|
onKeydown: (n) => yt(n, e, t)
|
|
575
|
-
}, [
|
|
575
|
+
}, [_("div", Le, [(S(), g("svg", {
|
|
576
576
|
height: `${R.value.style.legend.fontSize}px`,
|
|
577
577
|
width: `${R.value.style.legend.fontSize}px`,
|
|
578
578
|
viewBox: "0 0 10 10"
|
|
579
|
-
}, [
|
|
579
|
+
}, [_("defs", null, [_("radialGradient", { id: `legend_grad_${t}-${j.value}` }, [_("stop", {
|
|
580
580
|
offset: "0%",
|
|
581
|
-
"stop-color":
|
|
582
|
-
}, null, 8,
|
|
581
|
+
"stop-color": D(z) ? "#FFFFFF" : D(n)(D(a)(e.color, .05), 100 - R.value.style.bar.gradient.intensity)
|
|
582
|
+
}, null, 8, Be), _("stop", {
|
|
583
583
|
offset: "100%",
|
|
584
584
|
"stop-color": e.color
|
|
585
|
-
}, null, 8,
|
|
585
|
+
}, null, 8, Ve)], 8, ze)]), _("circle", {
|
|
586
586
|
cx: 5,
|
|
587
587
|
cy: 5,
|
|
588
588
|
r: 5,
|
|
589
|
-
fill: R.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${
|
|
590
|
-
}, null, 8,
|
|
589
|
+
fill: R.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${j.value})` : e.color
|
|
590
|
+
}, null, 8, He)], 8, Re)), D(z) ? h("", !0) : (S(), g(f, { key: 0 }, [_("span", { style: x(`color:${R.value.style.legend.name.color}; font-weight:${R.value.style.legend.name.bold ? "bold" : "normal"}`) }, E(e.name), 5), G.value ? h("", !0) : (S(), g(f, { key: 0 }, [R.value.style.legend.percentage.show ? (S(), g("span", {
|
|
591
591
|
key: 0,
|
|
592
|
-
style:
|
|
593
|
-
},
|
|
592
|
+
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)) : h("", !0), R.value.style.legend.value.show ? (S(), g("span", {
|
|
594
594
|
key: 1,
|
|
595
|
-
style:
|
|
596
|
-
}, " (" +
|
|
595
|
+
style: x(`font-weight:${R.value.style.legend.value.bold ? "bold" : "normal"};color:${R.value.style.legend.value.color}`)
|
|
596
|
+
}, " (" + E(D(ne)(R.value.style.legend.value.formatter, e.value, D(r)({
|
|
597
597
|
p: R.value.style.legend.value.prefix,
|
|
598
598
|
v: e.value,
|
|
599
599
|
s: R.value.style.legend.value.suffix,
|
|
@@ -601,11 +601,11 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
601
601
|
}), {
|
|
602
602
|
datapoint: e,
|
|
603
603
|
seriesIndex: t
|
|
604
|
-
})) + ") ", 5)) :
|
|
605
|
-
|
|
604
|
+
})) + ") ", 5)) : h("", !0)], 64))], 64))])], 46, Ie))), 256))], 4)) : h("", !0),
|
|
605
|
+
me(D(We), {
|
|
606
606
|
teleportTo: R.value.style.tooltip.teleportTo,
|
|
607
|
-
show:
|
|
608
|
-
parent:
|
|
607
|
+
show: M.value && R.value.style.tooltip.show,
|
|
608
|
+
parent: Ye.value,
|
|
609
609
|
backgroundColor: R.value.style.tooltip.backgroundColor,
|
|
610
610
|
color: R.value.style.tooltip.color,
|
|
611
611
|
fontSize: R.value.style.tooltip.fontSize,
|
|
@@ -614,8 +614,8 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
614
614
|
borderWidth: R.value.style.tooltip.borderWidth,
|
|
615
615
|
backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
|
|
616
616
|
position: R.value.style.tooltip.position,
|
|
617
|
-
content:
|
|
618
|
-
isCustom:
|
|
617
|
+
content: Xe.value,
|
|
618
|
+
isCustom: P.value,
|
|
619
619
|
offsetX: R.value.style.tooltip.offsetX,
|
|
620
620
|
offsetY: -124 + R.value.style.tooltip.offsetY,
|
|
621
621
|
blockShiftY: !0,
|
|
@@ -623,12 +623,12 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
623
623
|
backdropFilter: R.value.style.tooltip.backdropFilter,
|
|
624
624
|
smoothForce: R.value.style.tooltip.smoothForce,
|
|
625
625
|
smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
|
|
626
|
-
isA11yMode:
|
|
627
|
-
a11yPosition:
|
|
626
|
+
isA11yMode: I.value === "keyboard",
|
|
627
|
+
a11yPosition: Ze.value
|
|
628
628
|
}, {
|
|
629
|
-
"tooltip-before":
|
|
630
|
-
tooltip:
|
|
631
|
-
"tooltip-after":
|
|
629
|
+
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...N.value })), void 0, !0)]),
|
|
630
|
+
tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...N.value })), void 0, !0)]),
|
|
631
|
+
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...N.value })), void 0, !0)]),
|
|
632
632
|
_: 3
|
|
633
633
|
}, 8, [
|
|
634
634
|
"teleportTo",
|
|
@@ -653,10 +653,10 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
653
653
|
"isA11yMode",
|
|
654
654
|
"a11yPosition"
|
|
655
655
|
]),
|
|
656
|
-
e.$slots.source ? (
|
|
657
|
-
|
|
656
|
+
e.$slots.source ? (S(), g("div", Ue, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
657
|
+
T(e.$slots, "skeleton", {}, () => [D(z) ? (S(), m(se, { key: 0 })) : h("", !0)], !0)
|
|
658
658
|
], 4));
|
|
659
659
|
}
|
|
660
660
|
}, [["__scopeId", "data-v-706a37e5"]]);
|
|
661
661
|
//#endregion
|
|
662
|
-
export {
|
|
662
|
+
export { be as n, k as t };
|