vue-data-ui 3.22.13 → 3.23.0
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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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 +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,674 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { At as t, Bt as n, C as r, Gt as i, K as a, Nt as o, Y as s, bt as c, et as ee, ft as te, i as ne, qt as re, t as ie, x as l, zt as ae } from "./lib-CFm_J26b.js";
|
|
3
|
-
import { t as oe } from "./useConfig-C0V0eG7L.js";
|
|
4
|
-
import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
-
import { t as u } from "./useNestedProp-BY6DNN3i.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-DsWphmIb.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 ge, defineAsyncComponent as _e, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onMounted as ve, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, toRefs as ye, unref as E, useSlots as be, watch as xe, withCtx as D } from "vue";
|
|
14
|
-
//#region src/components/vue-ui-sparkstackbar.vue
|
|
15
|
-
var Se = /* @__PURE__ */ e({ default: () => O }), Ce = ["id"], we = { style: { position: "relative" } }, Te = [
|
|
16
|
-
"xmlns",
|
|
17
|
-
"viewBox",
|
|
18
|
-
"aria-describedby"
|
|
19
|
-
], Ee = {
|
|
20
|
-
id: "stackPill",
|
|
21
|
-
clipPathUnits: "objectBoundingBox"
|
|
22
|
-
}, De = ["fill"], Oe = {
|
|
23
|
-
key: 0,
|
|
24
|
-
"clip-path": "url(#stackPill)"
|
|
25
|
-
}, ke = [
|
|
26
|
-
"x",
|
|
27
|
-
"width",
|
|
28
|
-
"height",
|
|
29
|
-
"fill"
|
|
30
|
-
], Ae = [
|
|
31
|
-
"x",
|
|
32
|
-
"width",
|
|
33
|
-
"height",
|
|
34
|
-
"fill",
|
|
35
|
-
"stroke"
|
|
36
|
-
], je = [
|
|
37
|
-
"x",
|
|
38
|
-
"width",
|
|
39
|
-
"height",
|
|
40
|
-
"onClick",
|
|
41
|
-
"onMouseenter",
|
|
42
|
-
"onMouseleave"
|
|
43
|
-
], Me = [
|
|
44
|
-
"width",
|
|
45
|
-
"height",
|
|
46
|
-
"rx"
|
|
47
|
-
], Ne = {
|
|
48
|
-
key: 0,
|
|
49
|
-
style: {
|
|
50
|
-
position: "absolute",
|
|
51
|
-
top: "100%",
|
|
52
|
-
left: "0",
|
|
53
|
-
width: "100%"
|
|
54
|
-
},
|
|
55
|
-
"data-dom-to-png-ignore": "",
|
|
56
|
-
"aria-hidden": "true"
|
|
57
|
-
}, Pe = [
|
|
58
|
-
"aria-pressed",
|
|
59
|
-
"aria-label",
|
|
60
|
-
"onClick",
|
|
61
|
-
"onFocus",
|
|
62
|
-
"onKeydown"
|
|
63
|
-
], Fe = { style: {
|
|
64
|
-
display: "flex",
|
|
65
|
-
"flex-direction": "row",
|
|
66
|
-
"align-items": "center",
|
|
67
|
-
gap: "4px",
|
|
68
|
-
"justify-content": "center"
|
|
69
|
-
} }, Ie = ["height", "width"], Le = ["fill"], Re = {
|
|
70
|
-
key: 3,
|
|
71
|
-
ref: "source",
|
|
72
|
-
dir: "auto"
|
|
73
|
-
}, O = /*#__PURE__*/ ue({
|
|
74
|
-
__name: "vue-ui-sparkstackbar",
|
|
75
|
-
props: {
|
|
76
|
-
config: {
|
|
77
|
-
type: Object,
|
|
78
|
-
default() {
|
|
79
|
-
return {};
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
dataset: {
|
|
83
|
-
type: Array,
|
|
84
|
-
default() {
|
|
85
|
-
return [];
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
emits: ["selectDatapoint", "selectLegend"],
|
|
90
|
-
setup(e, { expose: ue, emit: Se }) {
|
|
91
|
-
let O = _e(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), ze = _e(() => import("./Tooltip-CA1rtSyl.js")), { vue_ui_sparkstackbar: Be } = oe(), { isThemeValid: Ve, warnInvalidTheme: He } = le(), k = e, Ue = be();
|
|
92
|
-
ve(() => {
|
|
93
|
-
Ue["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
94
|
-
});
|
|
95
|
-
let We = S(null), A = S(a()), j = S(!1), M = S(""), N = S(null), P = S(!1), F = S(null), Ge = S({
|
|
96
|
-
x: 0,
|
|
97
|
-
y: 0
|
|
98
|
-
}), I = S("pointer"), L = S(!1), R = S(null), Ke = S([]), z = S(Ye()), qe = f(() => z.value.useCursorPointer), Je = f(() => re({
|
|
99
|
-
defaultConfig: { style: {
|
|
100
|
-
backgroundColor: "#99999930",
|
|
101
|
-
animation: { show: !1 },
|
|
102
|
-
bar: { gradient: { inderlayerColor: "#6A6A6A" } },
|
|
103
|
-
title: { backgroundColor: "transparent" }
|
|
104
|
-
} },
|
|
105
|
-
userConfig: z.value.skeletonConfig ?? {}
|
|
106
|
-
})), { loading: B, FINAL_DATASET: V } = se({
|
|
107
|
-
...ye(k),
|
|
108
|
-
FINAL_CONFIG: z,
|
|
109
|
-
prepareConfig: Ye,
|
|
110
|
-
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
111
|
-
{
|
|
112
|
-
name: "_",
|
|
113
|
-
value: 8,
|
|
114
|
-
color: "#808080"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: "_",
|
|
118
|
-
value: 5,
|
|
119
|
-
color: "#ADADAD"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: "_",
|
|
123
|
-
value: 3,
|
|
124
|
-
color: "#DBDBDB"
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
skeletonConfig: re({
|
|
128
|
-
defaultConfig: z.value,
|
|
129
|
-
userConfig: Je.value
|
|
130
|
-
})
|
|
131
|
-
}), { svgRef: H } = me({ config: z.value.style.title });
|
|
132
|
-
function Ye() {
|
|
133
|
-
let e = u({
|
|
134
|
-
userConfig: k.config,
|
|
135
|
-
defaultConfig: Be
|
|
136
|
-
}), t = e.theme;
|
|
137
|
-
if (!t) return e;
|
|
138
|
-
if (!Ve.value(e)) return He(e), e;
|
|
139
|
-
let n = u({
|
|
140
|
-
userConfig: he[t] || k.config,
|
|
141
|
-
defaultConfig: e
|
|
142
|
-
}), r = u({
|
|
143
|
-
userConfig: k.config,
|
|
144
|
-
defaultConfig: n
|
|
145
|
-
});
|
|
146
|
-
return {
|
|
147
|
-
...r,
|
|
148
|
-
customPalette: r.customPalette.length ? r.customPalette : i[t] || o
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
xe(() => k.config, (e) => {
|
|
152
|
-
z.value = Ye(), Qe();
|
|
153
|
-
}, { deep: !0 }), xe(() => V.value, (e) => {
|
|
154
|
-
W.value = V.value.map((e, t) => ({
|
|
155
|
-
...e,
|
|
156
|
-
color: e.color ? l(e.color) : U.value[t] || o[t] || o[t % o.length]
|
|
157
|
-
})), Xe();
|
|
158
|
-
}, { deep: !0 });
|
|
159
|
-
let U = f(() => r(z.value.customPalette)), W = S(V.value.map((e, t) => ({
|
|
160
|
-
...e,
|
|
161
|
-
value: z.value.style.animation.show ? 0 : e.value || 0,
|
|
162
|
-
color: e.color ? l(e.color) : U.value[t] || o[t] || o[t % o.length]
|
|
163
|
-
}))), G = S(!0);
|
|
164
|
-
function Xe() {
|
|
165
|
-
if (!z.value.style.animation.show) {
|
|
166
|
-
G.value = !1;
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
let e = z.value.style.animation.animationFrames, t = V.value.map((e) => e.value || 0), n = t.map((t) => t / e), r = t.reduce((e, t) => e + t, 0), i = 0;
|
|
170
|
-
G.value = !0, W.value = V.value.map((e, t) => ({
|
|
171
|
-
...e,
|
|
172
|
-
value: 0,
|
|
173
|
-
color: e.color ? l(e.color) : U.value[t] || o[t] || o[t % o.length]
|
|
174
|
-
}));
|
|
175
|
-
function s() {
|
|
176
|
-
i += r / e, i < r ? (W.value = W.value.map((e, r) => ({
|
|
177
|
-
...e,
|
|
178
|
-
value: Math.min(e.value + n[r], t[r]),
|
|
179
|
-
color: e.color ? l(e.color) : U.value[r] || o[r] || o[r % o.length]
|
|
180
|
-
})), requestAnimationFrame(s)) : (G.value = !1, W.value = V.value.map((e, n) => ({
|
|
181
|
-
...e,
|
|
182
|
-
value: t[n],
|
|
183
|
-
color: e.color ? l(e.color) : U.value[n] || o[n] || o[n % o.length],
|
|
184
|
-
id: a()
|
|
185
|
-
})));
|
|
186
|
-
}
|
|
187
|
-
s();
|
|
188
|
-
}
|
|
189
|
-
ve(() => {
|
|
190
|
-
Qe();
|
|
191
|
-
});
|
|
192
|
-
let Ze = f(() => z.value.debug);
|
|
193
|
-
function Qe() {
|
|
194
|
-
t(k.dataset) ? ee({
|
|
195
|
-
componentName: "VueUiSparkStackbar",
|
|
196
|
-
type: "dataset",
|
|
197
|
-
debug: Ze.value
|
|
198
|
-
}) : k.dataset.forEach((e, t) => {
|
|
199
|
-
te({
|
|
200
|
-
datasetObject: e,
|
|
201
|
-
requiredAttributes: ["name", "value"]
|
|
202
|
-
}).forEach((e) => {
|
|
203
|
-
ee({
|
|
204
|
-
componentName: "VueUiSparkStackbar",
|
|
205
|
-
type: "datasetSerieAttribute",
|
|
206
|
-
property: e,
|
|
207
|
-
index: t,
|
|
208
|
-
debug: Ze.value
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
}), Xe();
|
|
212
|
-
}
|
|
213
|
-
let K = S({
|
|
214
|
-
width: 500,
|
|
215
|
-
height: 16
|
|
216
|
-
}), q = S([]), $e = f(() => V.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, r = n / $e.value, i = isNaN(r) ? 0 : r, a = i * K.value.width;
|
|
218
|
-
return {
|
|
219
|
-
...e,
|
|
220
|
-
color: l(V.value[t]?.color ? V.value[t]?.color : U.value[t] || o[t] || o[t % o.length]),
|
|
221
|
-
value: n,
|
|
222
|
-
proportion: i,
|
|
223
|
-
width: a,
|
|
224
|
-
seriesIndex: t,
|
|
225
|
-
proportionLabel: s({
|
|
226
|
-
v: i * 100,
|
|
227
|
-
s: "%",
|
|
228
|
-
r: z.value.style.legend.percentage.rounding
|
|
229
|
-
})
|
|
230
|
-
};
|
|
231
|
-
})), Y = f(() => J.value.filter((e, t) => !q.value.includes(t)));
|
|
232
|
-
function et() {
|
|
233
|
-
q.value.length ? q.value = [] : J.value.forEach((e, t) => {
|
|
234
|
-
q.value.push(t);
|
|
235
|
-
}), it("selectLegend", Y.value);
|
|
236
|
-
}
|
|
237
|
-
function X(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);
|
|
239
|
-
}
|
|
240
|
-
function tt(e) {
|
|
241
|
-
return J.value.length ? J.value.find((t) => t.name === e) || (z.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null) : (z.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null);
|
|
242
|
-
}
|
|
243
|
-
function nt(e) {
|
|
244
|
-
let t = tt(e);
|
|
245
|
-
t !== null && q.value.includes(t.id) && X(t.seriesIndex);
|
|
246
|
-
}
|
|
247
|
-
function rt(e) {
|
|
248
|
-
let t = tt(e);
|
|
249
|
-
t !== null && (q.value.includes(t.id) || X(t.seriesIndex));
|
|
250
|
-
}
|
|
251
|
-
let Z = f(() => {
|
|
252
|
-
let e = 0, t = [];
|
|
253
|
-
for (let n = 0; n < Y.value.length; n += 1) t.push({
|
|
254
|
-
...Y.value[n],
|
|
255
|
-
start: e
|
|
256
|
-
}), e += Y.value[n].width;
|
|
257
|
-
return t;
|
|
258
|
-
}), it = Se;
|
|
259
|
-
function Q(e, t, n = !1) {
|
|
260
|
-
it("selectDatapoint", {
|
|
261
|
-
datapoint: e,
|
|
262
|
-
index: t
|
|
263
|
-
}), z.value.events.datapointClick && !n && z.value.events.datapointClick({
|
|
264
|
-
datapoint: e,
|
|
265
|
-
seriesIndex: e.seriesIndex
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
function at({ datapoint: e, seriesIndex: t }) {
|
|
269
|
-
j.value = !1, R.value = null, F.value = null, I.value = "pointer", z.value.events.datapointLeave && z.value.events.datapointLeave({
|
|
270
|
-
datapoint: e,
|
|
271
|
-
seriesIndex: e.seriesIndex
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
function ot({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
275
|
-
if (P.value = !1, z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
276
|
-
datapoint: e,
|
|
277
|
-
seriesIndex: e.seriesIndex
|
|
278
|
-
}), !z.value.style.tooltip.show) return;
|
|
279
|
-
I.value = n, N.value = {
|
|
280
|
-
datapoint: e,
|
|
281
|
-
seriesIndex: t,
|
|
282
|
-
config: z.value,
|
|
283
|
-
series: J.value
|
|
284
|
-
}, j.value = !0, R.value = t;
|
|
285
|
-
let r = z.value.style.tooltip.customFormat;
|
|
286
|
-
if (c(r)) try {
|
|
287
|
-
let t = r({
|
|
288
|
-
seriesIndex: e.seriesIndex,
|
|
289
|
-
datapoint: e,
|
|
290
|
-
series: J.value,
|
|
291
|
-
config: z.value
|
|
292
|
-
});
|
|
293
|
-
typeof t == "string" && (M.value = t, P.value = !0);
|
|
294
|
-
} catch {
|
|
295
|
-
console.warn("Custom format cannot be applied."), P.value = !1;
|
|
296
|
-
}
|
|
297
|
-
if (!P.value) {
|
|
298
|
-
let n = "";
|
|
299
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.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(z.value.style.legend.value.formatter, e.value, s({
|
|
300
|
-
p: z.value.style.legend.value.prefix,
|
|
301
|
-
v: e.value,
|
|
302
|
-
s: z.value.style.legend.value.suffix,
|
|
303
|
-
r: z.value.style.legend.value.rounding
|
|
304
|
-
}), {
|
|
305
|
-
datapoint: e,
|
|
306
|
-
seriesIndex: t
|
|
307
|
-
})})</span>`, M.value = `<div>${n}</div>`;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
function $(e) {
|
|
311
|
-
let t = Ke.value[e];
|
|
312
|
-
t && typeof t.focus == "function" && t.focus();
|
|
313
|
-
}
|
|
314
|
-
function st(e) {
|
|
315
|
-
if (!Number.isFinite(e) || !H.value) return;
|
|
316
|
-
let t = Z.value[e];
|
|
317
|
-
if (!t) return;
|
|
318
|
-
let n = H.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
|
|
319
|
-
Ge.value = {
|
|
320
|
-
x: n.left + r / K.value.width * n.width,
|
|
321
|
-
y: n.top + i / K.value.height * n.height
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
function ct() {
|
|
325
|
-
F.value = null, L.value = !0;
|
|
326
|
-
}
|
|
327
|
-
function lt() {
|
|
328
|
-
F.value = null, I.value = "pointer", j.value = !1, R.value = null, L.value = !1;
|
|
329
|
-
}
|
|
330
|
-
function ut(e) {
|
|
331
|
-
if (!H.value || document.activeElement !== H.value || !Z.value.length) return;
|
|
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";
|
|
333
|
-
if (!t && !n && !r && !i && !a && !o) return;
|
|
334
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
335
|
-
F.value = null, I.value = "pointer", j.value = !1, R.value = null;
|
|
336
|
-
return;
|
|
337
|
-
}
|
|
338
|
-
if (r) {
|
|
339
|
-
if (F.value === null) return;
|
|
340
|
-
let e = Z.value[F.value];
|
|
341
|
-
if (!e) return;
|
|
342
|
-
Q(e, e.seriesIndex);
|
|
343
|
-
return;
|
|
344
|
-
}
|
|
345
|
-
let s = F.value;
|
|
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));
|
|
347
|
-
let c = Z.value[s];
|
|
348
|
-
c && (F.value = s, st(s), ot({
|
|
349
|
-
datapoint: c,
|
|
350
|
-
seriesIndex: c.seriesIndex,
|
|
351
|
-
triggerMode: "keyboard"
|
|
352
|
-
}));
|
|
353
|
-
}
|
|
354
|
-
function dt(e) {
|
|
355
|
-
j.value = !1, F.value = null, I.value = "pointer", R.value = e.seriesIndex;
|
|
356
|
-
}
|
|
357
|
-
function ft() {
|
|
358
|
-
F.value = null, I.value = "pointer", j.value = !1, R.value = null;
|
|
359
|
-
}
|
|
360
|
-
function pt(e, t, n) {
|
|
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";
|
|
362
|
-
if (!(!r && !i && !a && !o && !s && !c)) {
|
|
363
|
-
if (e.preventDefault(), e.stopPropagation(), c) {
|
|
364
|
-
ft();
|
|
365
|
-
return;
|
|
366
|
-
}
|
|
367
|
-
if (r) {
|
|
368
|
-
X(n), Q(t, n, !0);
|
|
369
|
-
return;
|
|
370
|
-
}
|
|
371
|
-
if (o) {
|
|
372
|
-
$(0);
|
|
373
|
-
return;
|
|
374
|
-
}
|
|
375
|
-
if (s) {
|
|
376
|
-
$(J.value.length - 1);
|
|
377
|
-
return;
|
|
378
|
-
}
|
|
379
|
-
if (i) {
|
|
380
|
-
$(n <= 0 ? J.value.length - 1 : n - 1);
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
a && $(n >= J.value.length - 1 ? 0 : n + 1);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
let mt = f(() => ({
|
|
387
|
-
headers: [
|
|
388
|
-
z.value.a11y.translations.series,
|
|
389
|
-
z.value.a11y.translations.percentage,
|
|
390
|
-
z.value.a11y.translations.value
|
|
391
|
-
],
|
|
392
|
-
rows: J.value.map((e, t) => [
|
|
393
|
-
e.name,
|
|
394
|
-
q.value.includes(t) ? " - " : e.proportionLabel,
|
|
395
|
-
ne(z.value.style.legend.value.formatter, e.value, s({
|
|
396
|
-
p: z.value.style.legend.value.prefix,
|
|
397
|
-
v: e.value,
|
|
398
|
-
s: z.value.style.legend.value.suffix,
|
|
399
|
-
r: z.value.style.legend.value.rounding
|
|
400
|
-
}), {
|
|
401
|
-
datapoint: e,
|
|
402
|
-
seriesIndex: t
|
|
403
|
-
})
|
|
404
|
-
])
|
|
405
|
-
}));
|
|
406
|
-
return ue({
|
|
407
|
-
hideSeries: rt,
|
|
408
|
-
showSeries: nt
|
|
409
|
-
}), (e, t) => (x(), h("div", {
|
|
410
|
-
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
411
|
-
ref_key: "sparkstackbarChart",
|
|
412
|
-
ref: We,
|
|
413
|
-
style: b(`width:100%; background:${z.value.style.backgroundColor}`)
|
|
414
|
-
}, [
|
|
415
|
-
g("div", {
|
|
416
|
-
id: `chart-instructions-${A.value}`,
|
|
417
|
-
class: "sr-only"
|
|
418
|
-
}, [g("p", null, T(z.value.a11y.translations.keyboardNavigation), 1)], 8, Ce),
|
|
419
|
-
mt.value?.rows?.length ? (x(), p(pe, {
|
|
420
|
-
key: 0,
|
|
421
|
-
uid: A.value,
|
|
422
|
-
head: mt.value.headers,
|
|
423
|
-
body: mt.value.rows,
|
|
424
|
-
notice: z.value.a11y.translations.tableAvailable,
|
|
425
|
-
caption: z.value.a11y.translations.tableCaption
|
|
426
|
-
}, null, 8, [
|
|
427
|
-
"uid",
|
|
428
|
-
"head",
|
|
429
|
-
"body",
|
|
430
|
-
"notice",
|
|
431
|
-
"caption"
|
|
432
|
-
])) : m("", !0),
|
|
433
|
-
z.value.style.title.text ? (x(), h("div", {
|
|
434
|
-
key: 1,
|
|
435
|
-
style: b(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${z.value.style.title.margin};padding: 0 6px;text-align:${z.value.style.title.textAlign}`)
|
|
436
|
-
}, [g("div", {
|
|
437
|
-
class: "atom-title",
|
|
438
|
-
style: b(`font-size:${z.value.style.title.fontSize}px;color:${z.value.style.title.color};font-weight:${z.value.style.title.bold ? "bold" : "normal"}`)
|
|
439
|
-
}, T(z.value.style.title.text), 5), z.value.style.title.subtitle.text ? (x(), h("div", {
|
|
440
|
-
key: 0,
|
|
441
|
-
class: "atom-subtitle",
|
|
442
|
-
style: b(`font-size:${z.value.style.title.subtitle.fontSize}px;color:${z.value.style.title.subtitle.color};font-weight:${z.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
443
|
-
}, T(z.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
|
|
444
|
-
g("div", we, [(x(), h("svg", {
|
|
445
|
-
ref_key: "svgRef",
|
|
446
|
-
ref: H,
|
|
447
|
-
xmlns: E(ie),
|
|
448
|
-
width: "100%",
|
|
449
|
-
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
450
|
-
"aria-describedby": `chart-instructions-${A.value}`,
|
|
451
|
-
tabindex: "0",
|
|
452
|
-
onFocus: ct,
|
|
453
|
-
onBlur: lt,
|
|
454
|
-
onKeydown: ut
|
|
455
|
-
}, [
|
|
456
|
-
ge(E(O)),
|
|
457
|
-
g("defs", null, [(x(!0), h(d, null, C(Z.value, (e, t) => (x(), p(de, {
|
|
458
|
-
t: "linear",
|
|
459
|
-
id: `stack_gradient_${t}_${A.value}`,
|
|
460
|
-
key: `stack_gradient_${t}`,
|
|
461
|
-
gradientTransform: "rotate(90)",
|
|
462
|
-
stops: [
|
|
463
|
-
[
|
|
464
|
-
"0%",
|
|
465
|
-
e.color,
|
|
466
|
-
1
|
|
467
|
-
],
|
|
468
|
-
[
|
|
469
|
-
"50%",
|
|
470
|
-
E(ae)(E(n)(e.color, .05), 100 - z.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", Ee, [g("rect", {
|
|
480
|
-
x: "0.005",
|
|
481
|
-
y: "-2",
|
|
482
|
-
width: "0.99",
|
|
483
|
-
height: "5",
|
|
484
|
-
rx: "3",
|
|
485
|
-
ry: "3",
|
|
486
|
-
fill: z.value.style.backgroundColor
|
|
487
|
-
}, null, 8, De)])]),
|
|
488
|
-
$e.value > 0 ? (x(), h("g", Oe, [
|
|
489
|
-
(x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
490
|
-
key: `stack_underlayer_${t}`,
|
|
491
|
-
x: e.start,
|
|
492
|
-
y: 0,
|
|
493
|
-
width: e.width,
|
|
494
|
-
height: K.value.height,
|
|
495
|
-
fill: z.value.style.bar.gradient.underlayerColor,
|
|
496
|
-
class: v({ animated: !G.value && !E(B) }),
|
|
497
|
-
style: b({ opacity: R.value !== null && z.value.style.tooltip.show ? R.value === t ? 1 : .5 : 1 })
|
|
498
|
-
}, null, 14, ke))), 128)),
|
|
499
|
-
(x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
500
|
-
key: `stack_${t}`,
|
|
501
|
-
x: e.start,
|
|
502
|
-
y: 0,
|
|
503
|
-
width: e.width,
|
|
504
|
-
height: K.value.height,
|
|
505
|
-
fill: z.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${A.value})` : e.color,
|
|
506
|
-
stroke: z.value.style.backgroundColor,
|
|
507
|
-
"stroke-linecap": "round",
|
|
508
|
-
class: v({ animated: !G.value && !E(B) }),
|
|
509
|
-
style: b({ opacity: R.value !== null && z.value.style.tooltip.show ? R.value === t ? 1 : .5 : 1 })
|
|
510
|
-
}, null, 14, Ae))), 128)),
|
|
511
|
-
(x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
512
|
-
key: `stack_trap_${t}`,
|
|
513
|
-
x: e.start,
|
|
514
|
-
y: 0,
|
|
515
|
-
width: e.width,
|
|
516
|
-
height: K.value.height,
|
|
517
|
-
fill: "transparent",
|
|
518
|
-
stroke: "none",
|
|
519
|
-
class: v({ animated: !G.value && !E(B) }),
|
|
520
|
-
onClick: () => Q(e, t),
|
|
521
|
-
onMouseenter: () => ot({
|
|
522
|
-
datapoint: e,
|
|
523
|
-
seriesIndex: t
|
|
524
|
-
}),
|
|
525
|
-
onMouseleave: (n) => at({
|
|
526
|
-
datapoint: e,
|
|
527
|
-
seriesIndex: t
|
|
528
|
-
})
|
|
529
|
-
}, null, 42, je))), 128))
|
|
530
|
-
])) : (x(), h("rect", {
|
|
531
|
-
key: 1,
|
|
532
|
-
x: 2,
|
|
533
|
-
y: 1,
|
|
534
|
-
width: K.value.width - 4,
|
|
535
|
-
height: K.value.height - 2,
|
|
536
|
-
stroke: "#CCCCCC",
|
|
537
|
-
"stroke-width": "2",
|
|
538
|
-
fill: "transparent",
|
|
539
|
-
rx: (K.value.height - 4) / 2
|
|
540
|
-
}, null, 8, Me))
|
|
541
|
-
], 40, Te)), e.$slots.hint ? (x(), h("div", Ne, [w(e.$slots, "hint", y(_({
|
|
542
|
-
hint: z.value.a11y.translations.keyboardNavigation,
|
|
543
|
-
isVisible: L.value
|
|
544
|
-
})), void 0, !0)])) : m("", !0)]),
|
|
545
|
-
z.value.style.legend.show ? (x(), h("div", {
|
|
546
|
-
key: 2,
|
|
547
|
-
style: b(`background:transparent;margin:0 auto;margin:${z.value.style.legend.margin};justify-content:${z.value.style.legend.textAlign === "left" ? "flex-start" : z.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
548
|
-
class: "vue-ui-sparkstackbar-legend",
|
|
549
|
-
"aria-label": "legend",
|
|
550
|
-
role: "toolbar"
|
|
551
|
-
}, [z.value.style.legend.selectAllToggle.show && J.value.length > 2 && !E(B) ? (x(), p(fe, {
|
|
552
|
-
key: 0,
|
|
553
|
-
backgroundColor: z.value.style.legend.selectAllToggle.backgroundColor,
|
|
554
|
-
color: z.value.style.legend.selectAllToggle.color,
|
|
555
|
-
fontSize: z.value.style.legend.fontSize,
|
|
556
|
-
checked: q.value.length > 0,
|
|
557
|
-
isCursorPointer: qe.value,
|
|
558
|
-
onToggle: et
|
|
559
|
-
}, null, 8, [
|
|
560
|
-
"backgroundColor",
|
|
561
|
-
"color",
|
|
562
|
-
"fontSize",
|
|
563
|
-
"checked",
|
|
564
|
-
"isCursorPointer"
|
|
565
|
-
])) : m("", !0), (x(!0), h(d, null, C(J.value, (e, t) => (x(), h("div", {
|
|
566
|
-
role: "button",
|
|
567
|
-
tabindex: "0",
|
|
568
|
-
"aria-pressed": q.value.includes(t),
|
|
569
|
-
"aria-label": `${e.name}, ${q.value.includes(t) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
570
|
-
style: b(`font-size:${z.value.style.legend.fontSize}px;cursor:${qe.value ? "pointer" : "default"}`),
|
|
571
|
-
class: v({
|
|
572
|
-
"vue-ui-sparkstackbar-legend-item": !0,
|
|
573
|
-
"vue-ui-sparkstackbar-legend-item-unselected": q.value.includes(t)
|
|
574
|
-
}),
|
|
575
|
-
onClick: (n) => {
|
|
576
|
-
X(t), Q(e, t, !0);
|
|
577
|
-
},
|
|
578
|
-
onFocus: (t) => dt(e),
|
|
579
|
-
onBlur: ft,
|
|
580
|
-
onKeydown: (n) => pt(n, e, t)
|
|
581
|
-
}, [g("div", Fe, [(x(), h("svg", {
|
|
582
|
-
height: `${z.value.style.legend.fontSize}px`,
|
|
583
|
-
width: `${z.value.style.legend.fontSize}px`,
|
|
584
|
-
viewBox: "0 0 10 10"
|
|
585
|
-
}, [g("defs", null, [ge(de, {
|
|
586
|
-
t: "radial",
|
|
587
|
-
id: `legend_grad_${t}-${A.value}`,
|
|
588
|
-
stops: [[
|
|
589
|
-
"0%",
|
|
590
|
-
E(B) ? "#FFFFFF" : E(ae)(E(n)(e.color, .05), 100 - z.value.style.bar.gradient.intensity),
|
|
591
|
-
1
|
|
592
|
-
], [
|
|
593
|
-
"100%",
|
|
594
|
-
e.color,
|
|
595
|
-
1
|
|
596
|
-
]]
|
|
597
|
-
}, null, 8, ["id", "stops"])]), g("circle", {
|
|
598
|
-
cx: 5,
|
|
599
|
-
cy: 5,
|
|
600
|
-
r: 5,
|
|
601
|
-
fill: z.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${A.value})` : e.color
|
|
602
|
-
}, null, 8, Le)], 8, Ie)), E(B) ? m("", !0) : (x(), h(d, { key: 0 }, [g("span", { style: b(`color:${z.value.style.legend.name.color}; font-weight:${z.value.style.legend.name.bold ? "bold" : "normal"}`) }, T(e.name), 5), G.value ? m("", !0) : (x(), h(d, { key: 0 }, [z.value.style.legend.percentage.show ? (x(), h("span", {
|
|
603
|
-
key: 0,
|
|
604
|
-
style: b(`font-weight:${z.value.style.legend.percentage.bold ? "bold" : "normal"};color:${z.value.style.legend.percentage.color}`)
|
|
605
|
-
}, T(q.value.includes(t) ? " - " : e.proportionLabel), 5)) : m("", !0), z.value.style.legend.value.show ? (x(), h("span", {
|
|
606
|
-
key: 1,
|
|
607
|
-
style: b(`font-weight:${z.value.style.legend.value.bold ? "bold" : "normal"};color:${z.value.style.legend.value.color}`)
|
|
608
|
-
}, " (" + T(E(ne)(z.value.style.legend.value.formatter, e.value, E(s)({
|
|
609
|
-
p: z.value.style.legend.value.prefix,
|
|
610
|
-
v: e.value,
|
|
611
|
-
s: z.value.style.legend.value.suffix,
|
|
612
|
-
r: z.value.style.legend.value.rounding
|
|
613
|
-
}), {
|
|
614
|
-
datapoint: e,
|
|
615
|
-
seriesIndex: t
|
|
616
|
-
})) + ") ", 5)) : m("", !0)], 64))], 64))])], 46, Pe))), 256))], 4)) : m("", !0),
|
|
617
|
-
ge(E(ze), {
|
|
618
|
-
teleportTo: z.value.style.tooltip.teleportTo,
|
|
619
|
-
show: j.value && z.value.style.tooltip.show,
|
|
620
|
-
parent: We.value,
|
|
621
|
-
backgroundColor: z.value.style.tooltip.backgroundColor,
|
|
622
|
-
color: z.value.style.tooltip.color,
|
|
623
|
-
fontSize: z.value.style.tooltip.fontSize,
|
|
624
|
-
borderRadius: z.value.style.tooltip.borderRadius,
|
|
625
|
-
borderColor: z.value.style.tooltip.borderColor,
|
|
626
|
-
borderWidth: z.value.style.tooltip.borderWidth,
|
|
627
|
-
backgroundOpacity: z.value.style.tooltip.backgroundOpacity,
|
|
628
|
-
position: z.value.style.tooltip.position,
|
|
629
|
-
content: M.value,
|
|
630
|
-
isCustom: P.value,
|
|
631
|
-
offsetX: z.value.style.tooltip.offsetX,
|
|
632
|
-
offsetY: -124 + z.value.style.tooltip.offsetY,
|
|
633
|
-
blockShiftY: !0,
|
|
634
|
-
smooth: z.value.style.tooltip.smooth,
|
|
635
|
-
backdropFilter: z.value.style.tooltip.backdropFilter,
|
|
636
|
-
smoothForce: z.value.style.tooltip.smoothForce,
|
|
637
|
-
smoothSnapThreshold: z.value.style.tooltip.smoothSnapThreshold,
|
|
638
|
-
isA11yMode: I.value === "keyboard",
|
|
639
|
-
a11yPosition: Ge.value
|
|
640
|
-
}, {
|
|
641
|
-
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...N.value })), void 0, !0)]),
|
|
642
|
-
tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...N.value })), void 0, !0)]),
|
|
643
|
-
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...N.value })), void 0, !0)]),
|
|
644
|
-
_: 3
|
|
645
|
-
}, 8, [
|
|
646
|
-
"teleportTo",
|
|
647
|
-
"show",
|
|
648
|
-
"parent",
|
|
649
|
-
"backgroundColor",
|
|
650
|
-
"color",
|
|
651
|
-
"fontSize",
|
|
652
|
-
"borderRadius",
|
|
653
|
-
"borderColor",
|
|
654
|
-
"borderWidth",
|
|
655
|
-
"backgroundOpacity",
|
|
656
|
-
"position",
|
|
657
|
-
"content",
|
|
658
|
-
"isCustom",
|
|
659
|
-
"offsetX",
|
|
660
|
-
"offsetY",
|
|
661
|
-
"smooth",
|
|
662
|
-
"backdropFilter",
|
|
663
|
-
"smoothForce",
|
|
664
|
-
"smoothSnapThreshold",
|
|
665
|
-
"isA11yMode",
|
|
666
|
-
"a11yPosition"
|
|
667
|
-
]),
|
|
668
|
-
e.$slots.source ? (x(), h("div", Re, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
669
|
-
w(e.$slots, "skeleton", {}, () => [E(B) ? (x(), p(ce, { key: 0 })) : m("", !0)], !0)
|
|
670
|
-
], 4));
|
|
671
|
-
}
|
|
672
|
-
}, [["__scopeId", "data-v-4ea77f60"]]);
|
|
673
|
-
//#endregion
|
|
674
|
-
export { Se as n, O as t };
|