vue-data-ui 3.25.11 → 3.25.13
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-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
- package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
- package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
- package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
- package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
- package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
- package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
- package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
- package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
- package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
- package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
- package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
- package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
- package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
- package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
- package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
- package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.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-label.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-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
- package/dist/exposedLib-BBtjpydc.js +28 -0
- package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
- package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
- package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
- package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
- package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
- package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
- 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 +6 -0
- package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
- package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
- package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
- package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
- package/dist/utils.js +13 -13
- package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
- package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
- package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
- package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
- package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
- package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
- package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
- package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
- package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
- package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
- package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
- package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
- package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
- package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
- package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
- package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
- package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
- package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
- package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
- package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
- package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
- package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
- package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
- package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
- package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
- package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
- package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
- package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
- package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
- package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
- package/dist/vue-ui-molecule-_x232mMu.js +941 -0
- package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
- package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
- package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
- package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
- package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
- package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
- package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
- package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
- package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
- package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
- package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
- package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
- package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
- package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
- package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
- package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
- package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
- package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
- package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
- package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
- package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
- package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
- package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
- package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
- package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
- package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
- package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
- package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
- package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
- package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
- package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
- package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
- package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
- package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
- package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
- package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
- package/package.json +1 -1
- package/dist/exposedLib-CG3aXJ-v.js +0 -28
- package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
- package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
- package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
- package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
- package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
- package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
- package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
- package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
- package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
- package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
- package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
- package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
- package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
- package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
- package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
- package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
- package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
- package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
- package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
- package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
- package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
- package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
- package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, $t as n, Et as r, Jt as i, Rt as a, S as o, Vt as s, X as c, at as ee, et as te, i as ne, qt as re, t as ie, tn as ae, vt as oe, w as se } from "./lib-DOpaUOQx.js";
|
|
3
3
|
import { n as ce, t as le } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ue } from "./useConfig-
|
|
4
|
+
import { t as ue } from "./useConfig-C2uy4ltq.js";
|
|
5
5
|
import { n as de, t as fe } from "./BaseScanner-Dzc8VT3j.js";
|
|
6
|
-
import { t as pe } from "./useNestedProp-
|
|
6
|
+
import { t as pe } from "./useNestedProp-Bux0f4iY.js";
|
|
7
7
|
import { t as me } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
8
|
import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
9
|
import { t as ge } from "./DefGrad-DVBqDjhO.js";
|
|
10
|
-
import { t as _e } from "./BaseLegendToggle-
|
|
10
|
+
import { t as _e } from "./BaseLegendToggle-DGG65LAR.js";
|
|
11
11
|
import { t as ve } from "./A11yDataTable-DdRsVULz.js";
|
|
12
12
|
import { t as ye } from "./useChartAccessibility-DYqac8yF.js";
|
|
13
13
|
import { t as be } from "./usePrefersMotion-BC-CsqR1.js";
|
|
@@ -96,10 +96,10 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
96
96
|
},
|
|
97
97
|
emits: ["selectDatapoint", "selectLegend"],
|
|
98
98
|
setup(e, { expose: he, emit: ke }) {
|
|
99
|
-
let Ye = Ce(() => import("./PackageVersion-
|
|
99
|
+
let Ye = Ce(() => import("./PackageVersion-D5QkTJQU.js").then((e) => e.t)), Xe = Ce(() => import("./Tooltip-DZ4a3XJQ.js")), { vue_ui_sparkstackbar: Ze } = ue(), { isThemeValid: Qe, warnInvalidTheme: $e } = me(), et = be(), tt = Ee(), T = e, nt = b(null), E = b(c()), D = b(!1), rt = b(""), O = b(null), k = b(!1), A = b(null), it = b({
|
|
100
100
|
x: 0,
|
|
101
101
|
y: 0
|
|
102
|
-
}), j = b("pointer"), at = b(!1), M = b(null), ot = b([]), N = b(
|
|
102
|
+
}), j = b("pointer"), at = b(!1), M = b(null), ot = b([]), N = b(V()), P = u(() => N.value.style.bar), F = u(() => N.value.style.legend), I = u(() => N.value.style.tooltip), L = u(() => N.value.style), st = u(() => N.value.debug);
|
|
103
103
|
we(() => {
|
|
104
104
|
tt["chart-background"] && st.value && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
105
105
|
}), ce({
|
|
@@ -117,7 +117,7 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
117
117
|
]
|
|
118
118
|
}]
|
|
119
119
|
});
|
|
120
|
-
let ct = u(() => N.value.useCursorPointer), lt = u(() =>
|
|
120
|
+
let ct = u(() => N.value.useCursorPointer), lt = u(() => ae({
|
|
121
121
|
defaultConfig: { style: {
|
|
122
122
|
backgroundColor: "#99999930",
|
|
123
123
|
animation: { show: !1 },
|
|
@@ -128,7 +128,7 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
128
128
|
})), { loading: R, FINAL_DATASET: z } = de({
|
|
129
129
|
...Te(T),
|
|
130
130
|
FINAL_CONFIG: N,
|
|
131
|
-
prepareConfig:
|
|
131
|
+
prepareConfig: V,
|
|
132
132
|
skeletonDataset: T.config?.skeletonDataset ?? [
|
|
133
133
|
{
|
|
134
134
|
name: "_",
|
|
@@ -146,12 +146,12 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
146
146
|
color: "#DBDBDB"
|
|
147
147
|
}
|
|
148
148
|
],
|
|
149
|
-
skeletonConfig:
|
|
149
|
+
skeletonConfig: ae({
|
|
150
150
|
defaultConfig: N.value,
|
|
151
151
|
userConfig: lt.value
|
|
152
152
|
})
|
|
153
153
|
}), { svgRef: B } = ye({ config: L.value.title });
|
|
154
|
-
function
|
|
154
|
+
function V() {
|
|
155
155
|
let e = pe({
|
|
156
156
|
userConfig: T.config,
|
|
157
157
|
defaultConfig: Ze
|
|
@@ -167,135 +167,135 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
167
167
|
});
|
|
168
168
|
return {
|
|
169
169
|
...i,
|
|
170
|
-
customPalette: i.customPalette.length ? i.customPalette :
|
|
170
|
+
customPalette: i.customPalette.length ? i.customPalette : n[t] || s
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
let t =
|
|
173
|
+
function ut(e) {
|
|
174
|
+
let t = te(e);
|
|
175
175
|
return t?.style && delete t.style.tooltip, JSON.stringify(t);
|
|
176
176
|
}
|
|
177
|
-
let
|
|
177
|
+
let dt = ut(T.config);
|
|
178
178
|
De(() => T.config, (e, t) => {
|
|
179
|
-
let n =
|
|
180
|
-
|
|
181
|
-
let i =
|
|
179
|
+
let n = ut(e), r = n !== dt;
|
|
180
|
+
dt = n;
|
|
181
|
+
let i = V();
|
|
182
182
|
if (!r) {
|
|
183
183
|
N.value.style.tooltip = i.style.tooltip;
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
|
-
N.value = i,
|
|
186
|
+
N.value = i, pt();
|
|
187
187
|
}, { deep: !0 }), De(() => z.value, (e) => {
|
|
188
|
-
|
|
188
|
+
U.value = z.value.map((e, t) => ({
|
|
189
189
|
...e,
|
|
190
|
-
color: e.color ?
|
|
191
|
-
})),
|
|
190
|
+
color: e.color ? o(e.color) : H.value[t] || s[t] || s[t % s.length]
|
|
191
|
+
})), ft();
|
|
192
192
|
}, { deep: !0 });
|
|
193
|
-
let
|
|
193
|
+
let H = u(() => se(N.value.customPalette)), U = b(z.value.map((e, t) => ({
|
|
194
194
|
...e,
|
|
195
195
|
value: L.value.animation.show ? 0 : e.value || 0,
|
|
196
|
-
color: e.color ?
|
|
197
|
-
}))),
|
|
198
|
-
function
|
|
196
|
+
color: e.color ? o(e.color) : H.value[t] || s[t] || s[t % s.length]
|
|
197
|
+
}))), W = b(!0);
|
|
198
|
+
function ft() {
|
|
199
199
|
if (!L.value.animation.show || et.value) {
|
|
200
|
-
|
|
200
|
+
W.value = !1;
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
|
-
let e = L.value.animation.animationFrames, t = z.value.map((e) => e.value || 0),
|
|
204
|
-
|
|
203
|
+
let e = L.value.animation.animationFrames, t = z.value.map((e) => e.value || 0), n = t.map((t) => t / e), r = t.reduce((e, t) => e + t, 0), i = 0;
|
|
204
|
+
W.value = !0, U.value = z.value.map((e, t) => ({
|
|
205
205
|
...e,
|
|
206
206
|
value: 0,
|
|
207
|
-
color: e.color ?
|
|
207
|
+
color: e.color ? o(e.color) : H.value[t] || s[t] || s[t % s.length]
|
|
208
208
|
}));
|
|
209
|
-
function
|
|
210
|
-
|
|
209
|
+
function a() {
|
|
210
|
+
i += r / e, i < r ? (U.value = U.value.map((e, r) => ({
|
|
211
211
|
...e,
|
|
212
|
-
value: Math.min(e.value + r
|
|
213
|
-
color: e.color ?
|
|
214
|
-
})), requestAnimationFrame(
|
|
212
|
+
value: Math.min(e.value + n[r], t[r]),
|
|
213
|
+
color: e.color ? o(e.color) : H.value[r] || s[r] || s[r % s.length]
|
|
214
|
+
})), requestAnimationFrame(a)) : (W.value = !1, U.value = z.value.map((e, n) => ({
|
|
215
215
|
...e,
|
|
216
|
-
value: t[
|
|
217
|
-
color: e.color ?
|
|
218
|
-
id:
|
|
216
|
+
value: t[n],
|
|
217
|
+
color: e.color ? o(e.color) : H.value[n] || s[n] || s[n % s.length],
|
|
218
|
+
id: c()
|
|
219
219
|
})));
|
|
220
220
|
}
|
|
221
|
-
|
|
221
|
+
a();
|
|
222
222
|
}
|
|
223
223
|
we(() => {
|
|
224
|
-
|
|
224
|
+
pt();
|
|
225
225
|
});
|
|
226
|
-
function
|
|
227
|
-
|
|
226
|
+
function pt() {
|
|
227
|
+
a(T.dataset) ? ee({
|
|
228
228
|
componentName: "VueUiSparkStackbar",
|
|
229
229
|
type: "dataset",
|
|
230
230
|
debug: st.value
|
|
231
231
|
}) : st.value && T.dataset.forEach((e, t) => {
|
|
232
|
-
|
|
232
|
+
oe({
|
|
233
233
|
datasetObject: e,
|
|
234
234
|
requiredAttributes: ["name", "value"]
|
|
235
235
|
}).forEach((e) => {
|
|
236
|
-
|
|
236
|
+
ee({
|
|
237
237
|
componentName: "VueUiSparkStackbar",
|
|
238
238
|
type: "datasetSerieAttribute",
|
|
239
239
|
property: e,
|
|
240
240
|
index: t
|
|
241
241
|
});
|
|
242
242
|
});
|
|
243
|
-
}),
|
|
243
|
+
}), ft();
|
|
244
244
|
}
|
|
245
|
-
let
|
|
245
|
+
let G = b({
|
|
246
246
|
width: 500,
|
|
247
247
|
height: 16
|
|
248
|
-
}),
|
|
249
|
-
let r = e.value || 0,
|
|
248
|
+
}), K = b([]), mt = u(() => z.value.map((e) => e.value || 0).filter((e, t) => !K.value.includes(t)).reduce((e, t) => e + t, 0)), q = u(() => U.value.map((e, n) => {
|
|
249
|
+
let r = e.value || 0, i = r / mt.value, a = isNaN(i) ? 0 : i, c = a * G.value.width;
|
|
250
250
|
return {
|
|
251
251
|
...e,
|
|
252
|
-
color:
|
|
252
|
+
color: o(z.value[n]?.color ? z.value[n]?.color : H.value[n] || s[n] || s[n % s.length]),
|
|
253
253
|
value: r,
|
|
254
|
-
proportion:
|
|
254
|
+
proportion: a,
|
|
255
255
|
width: c,
|
|
256
|
-
seriesIndex:
|
|
257
|
-
proportionLabel:
|
|
258
|
-
v:
|
|
256
|
+
seriesIndex: n,
|
|
257
|
+
proportionLabel: t({
|
|
258
|
+
v: a * 100,
|
|
259
259
|
s: "%",
|
|
260
260
|
r: F.value.percentage.rounding
|
|
261
261
|
})
|
|
262
262
|
};
|
|
263
|
-
})),
|
|
264
|
-
function
|
|
263
|
+
})), J = u(() => q.value.filter((e, t) => !K.value.includes(t)));
|
|
264
|
+
function ht() {
|
|
265
265
|
D.value = !1, M.value = null, A.value = null, j.value = "pointer";
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}),
|
|
267
|
+
function gt() {
|
|
268
|
+
ht(), K.value.length ? K.value = [] : q.value.forEach((e, t) => {
|
|
269
|
+
K.value.push(t);
|
|
270
|
+
}), xt("selectLegend", J.value);
|
|
271
|
+
}
|
|
272
|
+
function Y(e) {
|
|
273
|
+
ht(), K.value.includes(e) ? K.value = K.value.filter((t) => t !== e) : K.value.length < U.value.length - 1 && K.value.push(e), xt("selectLegend", J.value);
|
|
271
274
|
}
|
|
272
|
-
function
|
|
273
|
-
|
|
275
|
+
function _t(e) {
|
|
276
|
+
return q.value.length ? q.value.find((t) => t.name === e) || (N.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null) : (N.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null);
|
|
274
277
|
}
|
|
275
278
|
function vt(e) {
|
|
276
|
-
|
|
279
|
+
let t = _t(e);
|
|
280
|
+
t !== null && K.value.includes(t.id) && Y(t.seriesIndex);
|
|
277
281
|
}
|
|
278
282
|
function yt(e) {
|
|
279
|
-
let t =
|
|
280
|
-
t !== null &&
|
|
283
|
+
let t = _t(e);
|
|
284
|
+
t !== null && (K.value.includes(t.id) || Y(t.seriesIndex));
|
|
281
285
|
}
|
|
282
|
-
|
|
283
|
-
let t = vt(e);
|
|
284
|
-
t !== null && (G.value.includes(t.id) || J(t.seriesIndex));
|
|
285
|
-
}
|
|
286
|
-
let Y = u(() => {
|
|
286
|
+
let X = u(() => {
|
|
287
287
|
let e = 0, t = [];
|
|
288
|
-
for (let n = 0; n <
|
|
289
|
-
...
|
|
288
|
+
for (let n = 0; n < J.value.length; n += 1) t.push({
|
|
289
|
+
...J.value[n],
|
|
290
290
|
start: e
|
|
291
|
-
}), e +=
|
|
291
|
+
}), e += J.value[n].width;
|
|
292
292
|
return t;
|
|
293
|
-
}),
|
|
294
|
-
let e =
|
|
295
|
-
return Math.min(Math.max(e, 0),
|
|
296
|
-
}),
|
|
297
|
-
function
|
|
298
|
-
|
|
293
|
+
}), bt = u(() => {
|
|
294
|
+
let e = X.value.reduce((e, t) => e + t.width, 0);
|
|
295
|
+
return Math.min(Math.max(e, 0), G.value.width);
|
|
296
|
+
}), xt = ke;
|
|
297
|
+
function Z(e, t, n = !1) {
|
|
298
|
+
xt("selectDatapoint", {
|
|
299
299
|
datapoint: e,
|
|
300
300
|
index: t
|
|
301
301
|
}), N.value.events.datapointClick && !n && N.value.events.datapointClick({
|
|
@@ -303,29 +303,29 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
303
303
|
seriesIndex: e.seriesIndex
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function St({ datapoint: e, seriesIndex: t }) {
|
|
307
307
|
D.value = !1, M.value = null, A.value = null, j.value = "pointer", N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
308
308
|
datapoint: e,
|
|
309
309
|
seriesIndex: e.seriesIndex
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Ct({ datapoint: e, seriesIndex: n, triggerMode: a = "pointer" }) {
|
|
313
313
|
if (k.value = !1, N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
314
314
|
datapoint: e,
|
|
315
315
|
seriesIndex: e.seriesIndex
|
|
316
316
|
}), !I.value.show) return;
|
|
317
|
-
j.value =
|
|
317
|
+
j.value = a, O.value = {
|
|
318
318
|
datapoint: e,
|
|
319
319
|
seriesIndex: n,
|
|
320
320
|
config: N.value,
|
|
321
|
-
series:
|
|
321
|
+
series: q.value
|
|
322
322
|
}, D.value = !0, M.value = e.seriesIndex;
|
|
323
|
-
let
|
|
324
|
-
if (
|
|
325
|
-
let t =
|
|
323
|
+
let o = I.value.customFormat;
|
|
324
|
+
if (r(o)) try {
|
|
325
|
+
let t = o({
|
|
326
326
|
seriesIndex: e.seriesIndex,
|
|
327
327
|
datapoint: e,
|
|
328
|
-
series:
|
|
328
|
+
series: q.value,
|
|
329
329
|
config: N.value
|
|
330
330
|
});
|
|
331
331
|
typeof t == "string" && (rt.value = t, k.value = !0);
|
|
@@ -333,8 +333,8 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
333
333
|
console.warn("Custom format cannot be applied."), k.value = !1;
|
|
334
334
|
}
|
|
335
335
|
if (!k.value) {
|
|
336
|
-
let
|
|
337
|
-
|
|
336
|
+
let r = "", a = P.value.gradient.show, o = `tooltip_grad_${n}_${E.value}`, s = re(i(e.color, .05), 100 - P.value.gradient.intensity), c = a ? `<rect x="0" y="0" width="10" height="10" rx="${Q.value}" fill="${P.value.gradient.underlayerColor}"/>` : "", ee = a ? `<defs><radialGradient id="${o}"><stop offset="0%" stop-color="${s}"/><stop offset="100%" stop-color="${e.color}"/></radialGradient></defs>` : "";
|
|
337
|
+
r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 10 10" height="14" width="14">${ee}${c}<rect x="0" y="0" width="10" height="10" rx="${Q.value}" fill="${a ? `url(#${o})` : e.color}"/></svg>`, r += `<b>${e.proportionLabel}</b>`, r += `<span>(${ne(F.value.value.formatter, e.value, t({
|
|
338
338
|
p: F.value.value.prefix,
|
|
339
339
|
v: e.value,
|
|
340
340
|
s: F.value.value.suffix,
|
|
@@ -342,38 +342,38 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
342
342
|
}), {
|
|
343
343
|
datapoint: e,
|
|
344
344
|
seriesIndex: n
|
|
345
|
-
})})</span>`, rt.value = `<div>${
|
|
345
|
+
})})</span>`, rt.value = `<div>${r}</div>`;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
let
|
|
349
|
-
let e = P.value.borderRadius == null ?
|
|
350
|
-
return Math.min(Math.max(e, 0),
|
|
351
|
-
}),
|
|
352
|
-
let e =
|
|
353
|
-
return e === 0 ? 5 :
|
|
348
|
+
let wt = u(() => {
|
|
349
|
+
let e = P.value.borderRadius == null ? G.value.height / 2 : P.value.borderRadius;
|
|
350
|
+
return Math.min(Math.max(e, 0), G.value.height / 2);
|
|
351
|
+
}), Q = u(() => {
|
|
352
|
+
let e = G.value.height / 2;
|
|
353
|
+
return e === 0 ? 5 : wt.value / e * 5;
|
|
354
354
|
});
|
|
355
|
-
function
|
|
355
|
+
function $(e) {
|
|
356
356
|
let t = ot.value[e];
|
|
357
357
|
t && typeof t.focus == "function" && t.focus();
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Tt(e) {
|
|
360
360
|
if (!Number.isFinite(e) || !B.value) return;
|
|
361
|
-
let t =
|
|
361
|
+
let t = X.value[e];
|
|
362
362
|
if (!t) return;
|
|
363
|
-
let n = B.value.getBoundingClientRect(), r = t.start + t.width / 2, i =
|
|
363
|
+
let n = B.value.getBoundingClientRect(), r = t.start + t.width / 2, i = G.value.height / 2;
|
|
364
364
|
it.value = {
|
|
365
|
-
x: n.left + r /
|
|
366
|
-
y: n.top + i /
|
|
365
|
+
x: n.left + r / G.value.width * n.width,
|
|
366
|
+
y: n.top + i / G.value.height * n.height
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Et() {
|
|
370
370
|
A.value = null, at.value = !0;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Dt() {
|
|
373
373
|
A.value = null, j.value = "pointer", D.value = !1, M.value = null, at.value = !1;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
if (!B.value || document.activeElement !== B.value || !
|
|
375
|
+
function Ot(e) {
|
|
376
|
+
if (!B.value || document.activeElement !== B.value || !X.value.length) return;
|
|
377
377
|
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";
|
|
378
378
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
379
379
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -382,76 +382,76 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
382
382
|
}
|
|
383
383
|
if (r) {
|
|
384
384
|
if (A.value === null) return;
|
|
385
|
-
let e =
|
|
385
|
+
let e = X.value[A.value];
|
|
386
386
|
if (!e) return;
|
|
387
|
-
|
|
387
|
+
Z(e, e.seriesIndex);
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
let s = A.value;
|
|
391
|
-
a ? s = 0 : o ? s =
|
|
392
|
-
let c =
|
|
393
|
-
c && (A.value = s,
|
|
391
|
+
a ? s = 0 : o ? s = X.value.length - 1 : s === null || s < 0 || s >= X.value.length ? s = n ? 0 : X.value.length - 1 : n ? (s += 1, s >= X.value.length && (s = 0)) : t && (--s, s < 0 && (s = X.value.length - 1));
|
|
392
|
+
let c = X.value[s];
|
|
393
|
+
c && (A.value = s, Tt(s), Ct({
|
|
394
394
|
datapoint: c,
|
|
395
395
|
seriesIndex: c.seriesIndex,
|
|
396
396
|
triggerMode: "keyboard"
|
|
397
397
|
}));
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function kt(e) {
|
|
400
400
|
D.value = !1, A.value = null, j.value = "pointer", M.value = e.seriesIndex;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function At() {
|
|
403
403
|
A.value = null, j.value = "pointer", D.value = !1, M.value = null;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function jt(e, t, n) {
|
|
406
406
|
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";
|
|
407
407
|
if (r || i || a || o || s || c) {
|
|
408
408
|
if (e.preventDefault(), e.stopPropagation(), c) {
|
|
409
|
-
|
|
409
|
+
At();
|
|
410
410
|
return;
|
|
411
411
|
}
|
|
412
412
|
if (r) {
|
|
413
|
-
|
|
413
|
+
Y(n), Z(t, n, !0);
|
|
414
414
|
return;
|
|
415
415
|
}
|
|
416
416
|
if (o) {
|
|
417
|
-
|
|
417
|
+
$(0);
|
|
418
418
|
return;
|
|
419
419
|
}
|
|
420
420
|
if (s) {
|
|
421
|
-
|
|
421
|
+
$(q.value.length - 1);
|
|
422
422
|
return;
|
|
423
423
|
}
|
|
424
424
|
if (i) {
|
|
425
|
-
|
|
425
|
+
$(n <= 0 ? q.value.length - 1 : n - 1);
|
|
426
426
|
return;
|
|
427
427
|
}
|
|
428
|
-
a &&
|
|
428
|
+
a && $(n >= q.value.length - 1 ? 0 : n + 1);
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
let
|
|
431
|
+
let Mt = u(() => ({
|
|
432
432
|
headers: [
|
|
433
433
|
N.value.a11y.translations.series,
|
|
434
434
|
N.value.a11y.translations.percentage,
|
|
435
435
|
N.value.a11y.translations.value
|
|
436
436
|
],
|
|
437
|
-
rows:
|
|
437
|
+
rows: q.value.map((e, n) => [
|
|
438
438
|
e.name,
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
K.value.includes(n) ? " - " : e.proportionLabel,
|
|
440
|
+
ne(F.value.value.formatter, e.value, t({
|
|
441
441
|
p: F.value.value.prefix,
|
|
442
442
|
v: e.value,
|
|
443
443
|
s: F.value.value.suffix,
|
|
444
444
|
r: F.value.value.rounding
|
|
445
445
|
}), {
|
|
446
446
|
datapoint: e,
|
|
447
|
-
seriesIndex:
|
|
447
|
+
seriesIndex: n
|
|
448
448
|
})
|
|
449
449
|
])
|
|
450
450
|
}));
|
|
451
451
|
return he({
|
|
452
|
-
hideSeries:
|
|
453
|
-
showSeries:
|
|
454
|
-
}), (e,
|
|
452
|
+
hideSeries: yt,
|
|
453
|
+
showSeries: vt
|
|
454
|
+
}), (e, n) => (y(), p("div", {
|
|
455
455
|
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
456
456
|
ref_key: "sparkstackbarChart",
|
|
457
457
|
ref: nt,
|
|
@@ -461,11 +461,11 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
461
461
|
id: `chart-instructions-${E.value}`,
|
|
462
462
|
class: "sr-only"
|
|
463
463
|
}, [m("p", null, C(N.value.a11y.translations.keyboardNavigation), 1)], 8, Ae),
|
|
464
|
-
|
|
464
|
+
Mt.value?.rows?.length ? (y(), d(ve, {
|
|
465
465
|
key: 0,
|
|
466
466
|
uid: E.value,
|
|
467
|
-
head:
|
|
468
|
-
body:
|
|
467
|
+
head: Mt.value.headers,
|
|
468
|
+
body: Mt.value.rows,
|
|
469
469
|
notice: N.value.a11y.translations.tableAvailable,
|
|
470
470
|
caption: N.value.a11y.translations.tableCaption
|
|
471
471
|
}, null, 8, [
|
|
@@ -489,17 +489,17 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
489
489
|
m("div", je, [(y(), p("svg", {
|
|
490
490
|
ref_key: "svgRef",
|
|
491
491
|
ref: B,
|
|
492
|
-
xmlns: w(
|
|
492
|
+
xmlns: w(ie),
|
|
493
493
|
width: "100%",
|
|
494
|
-
viewBox: `0 0 ${
|
|
494
|
+
viewBox: `0 0 ${G.value.width} ${G.value.height}`,
|
|
495
495
|
"aria-describedby": `chart-instructions-${E.value}`,
|
|
496
496
|
tabindex: "0",
|
|
497
|
-
onFocus:
|
|
498
|
-
onBlur:
|
|
499
|
-
onKeydown:
|
|
497
|
+
onFocus: Et,
|
|
498
|
+
onBlur: Dt,
|
|
499
|
+
onKeydown: Ot
|
|
500
500
|
}, [
|
|
501
501
|
Se(w(Ye)),
|
|
502
|
-
m("defs", null, [(y(!0), p(l, null, x(
|
|
502
|
+
m("defs", null, [(y(!0), p(l, null, x(X.value, (e, t) => (y(), d(ge, {
|
|
503
503
|
t: "linear",
|
|
504
504
|
id: `stack_gradient_${t}_${E.value}`,
|
|
505
505
|
key: `stack_gradient_${t}`,
|
|
@@ -512,7 +512,7 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
512
512
|
],
|
|
513
513
|
[
|
|
514
514
|
"50%",
|
|
515
|
-
w(
|
|
515
|
+
w(re)(w(i)(e.color, .05), 100 - P.value.gradient.intensity),
|
|
516
516
|
1
|
|
517
517
|
],
|
|
518
518
|
[
|
|
@@ -524,57 +524,57 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
524
524
|
}, null, 8, ["id", "stops"]))), 128)), m("clipPath", { id: `stackPill_${E.value}` }, [m("rect", {
|
|
525
525
|
x: "0",
|
|
526
526
|
y: "0",
|
|
527
|
-
width:
|
|
528
|
-
height:
|
|
529
|
-
rx:
|
|
530
|
-
class: g({ animated: !
|
|
527
|
+
width: bt.value,
|
|
528
|
+
height: G.value.height,
|
|
529
|
+
rx: wt.value,
|
|
530
|
+
class: g({ animated: !W.value && !w(R) })
|
|
531
531
|
}, null, 10, Pe)], 8, Ne)]),
|
|
532
|
-
|
|
533
|
-
(y(!0), p(l, null, x(
|
|
532
|
+
mt.value > 0 ? (y(), p(l, { key: 0 }, [m("g", { "clip-path": `url(#stackPill_${E.value})` }, [
|
|
533
|
+
(y(!0), p(l, null, x(X.value, (e, t) => (y(), p("rect", {
|
|
534
534
|
key: `stack_underlayer_${t}`,
|
|
535
535
|
x: e.start,
|
|
536
536
|
y: 0,
|
|
537
537
|
width: e.width,
|
|
538
|
-
height:
|
|
538
|
+
height: G.value.height,
|
|
539
539
|
fill: P.value.gradient.underlayerColor,
|
|
540
|
-
class: g({ animated: !
|
|
540
|
+
class: g({ animated: !W.value && !w(R) }),
|
|
541
541
|
style: v({ opacity: D.value && M.value !== null && I.value.show ? M.value === e.seriesIndex ? 1 : .5 : 1 })
|
|
542
542
|
}, null, 14, Ie))), 128)),
|
|
543
|
-
(y(!0), p(l, null, x(
|
|
543
|
+
(y(!0), p(l, null, x(X.value, (e, t) => (y(), p("rect", {
|
|
544
544
|
key: `stack_${t}`,
|
|
545
545
|
x: e.start,
|
|
546
546
|
y: 0,
|
|
547
547
|
width: e.width,
|
|
548
|
-
height:
|
|
548
|
+
height: G.value.height,
|
|
549
549
|
fill: P.value.gradient.show ? `url(#stack_gradient_${t}_${E.value})` : e.color,
|
|
550
|
-
class: g({ animated: !
|
|
550
|
+
class: g({ animated: !W.value && !w(R) }),
|
|
551
551
|
style: v({ opacity: D.value && M.value !== null && I.value.show ? M.value === e.seriesIndex ? 1 : .5 : 1 })
|
|
552
552
|
}, null, 14, Le))), 128)),
|
|
553
|
-
(y(!0), p(l, null, x(
|
|
553
|
+
(y(!0), p(l, null, x(X.value.slice(1), (e, t) => (y(), p("rect", {
|
|
554
554
|
key: `stack_separator_${t}`,
|
|
555
555
|
x: e.start - .5,
|
|
556
556
|
y: "0",
|
|
557
557
|
width: "1",
|
|
558
|
-
height:
|
|
558
|
+
height: G.value.height,
|
|
559
559
|
fill: L.value.backgroundColor,
|
|
560
560
|
"pointer-events": "none",
|
|
561
|
-
class: g({ animated: !
|
|
561
|
+
class: g({ animated: !W.value && !w(R) })
|
|
562
562
|
}, null, 10, Re))), 128)),
|
|
563
|
-
(y(!0), p(l, null, x(
|
|
563
|
+
(y(!0), p(l, null, x(X.value, (e, t) => (y(), p("rect", {
|
|
564
564
|
key: `stack_trap_${t}`,
|
|
565
565
|
x: e.start,
|
|
566
566
|
y: 0,
|
|
567
567
|
width: e.width,
|
|
568
|
-
height:
|
|
568
|
+
height: G.value.height,
|
|
569
569
|
fill: "transparent",
|
|
570
570
|
stroke: "none",
|
|
571
|
-
class: g({ animated: !
|
|
572
|
-
onClick: () =>
|
|
573
|
-
onMouseenter: () =>
|
|
571
|
+
class: g({ animated: !W.value && !w(R) }),
|
|
572
|
+
onClick: () => Z(e, t),
|
|
573
|
+
onMouseenter: () => Ct({
|
|
574
574
|
datapoint: e,
|
|
575
575
|
seriesIndex: e.seriesIndex
|
|
576
576
|
}),
|
|
577
|
-
onMouseleave: (t) =>
|
|
577
|
+
onMouseleave: (t) => St({
|
|
578
578
|
datapoint: e,
|
|
579
579
|
seriesIndex: e.seriesIndex
|
|
580
580
|
})
|
|
@@ -582,9 +582,9 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
582
582
|
], 8, Fe), m("rect", {
|
|
583
583
|
x: "0.5",
|
|
584
584
|
y: "0.5",
|
|
585
|
-
width:
|
|
586
|
-
height:
|
|
587
|
-
rx: Math.max(0,
|
|
585
|
+
width: G.value.width - 1,
|
|
586
|
+
height: G.value.height - 1,
|
|
587
|
+
rx: Math.max(0, wt.value - .5),
|
|
588
588
|
fill: "none",
|
|
589
589
|
stroke: L.value.backgroundColor,
|
|
590
590
|
"stroke-width": "1",
|
|
@@ -593,12 +593,12 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
593
593
|
key: 1,
|
|
594
594
|
x: 2,
|
|
595
595
|
y: 1,
|
|
596
|
-
width:
|
|
597
|
-
height:
|
|
596
|
+
width: G.value.width - 4,
|
|
597
|
+
height: G.value.height - 2,
|
|
598
598
|
stroke: "#CCCCCC",
|
|
599
599
|
"stroke-width": "2",
|
|
600
600
|
fill: "transparent",
|
|
601
|
-
rx: (
|
|
601
|
+
rx: (G.value.height - 4) / 2
|
|
602
602
|
}, null, 8, Ve))
|
|
603
603
|
], 40, Me)), e.$slots.hint ? (y(), p("div", He, [S(e.$slots, "hint", _(h({
|
|
604
604
|
hint: N.value.a11y.translations.keyboardNavigation,
|
|
@@ -610,36 +610,36 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
610
610
|
class: "vue-ui-sparkstackbar-legend",
|
|
611
611
|
"aria-label": "legend",
|
|
612
612
|
role: "toolbar"
|
|
613
|
-
}, [F.value.selectAllToggle.show &&
|
|
613
|
+
}, [F.value.selectAllToggle.show && q.value.length > 2 && !w(R) ? (y(), d(_e, {
|
|
614
614
|
key: 0,
|
|
615
615
|
backgroundColor: F.value.selectAllToggle.backgroundColor,
|
|
616
616
|
color: F.value.selectAllToggle.color,
|
|
617
617
|
fontSize: F.value.fontSize,
|
|
618
|
-
checked:
|
|
618
|
+
checked: K.value.length > 0,
|
|
619
619
|
isCursorPointer: ct.value,
|
|
620
|
-
onToggle:
|
|
620
|
+
onToggle: gt
|
|
621
621
|
}, null, 8, [
|
|
622
622
|
"backgroundColor",
|
|
623
623
|
"color",
|
|
624
624
|
"fontSize",
|
|
625
625
|
"checked",
|
|
626
626
|
"isCursorPointer"
|
|
627
|
-
])) : f("", !0), (y(!0), p(l, null, x(
|
|
627
|
+
])) : f("", !0), (y(!0), p(l, null, x(q.value, (e, n) => (y(), p("div", {
|
|
628
628
|
role: "button",
|
|
629
629
|
tabindex: "0",
|
|
630
|
-
"aria-pressed":
|
|
631
|
-
"aria-label": `${e.name}, ${
|
|
630
|
+
"aria-pressed": K.value.includes(n),
|
|
631
|
+
"aria-label": `${e.name}, ${K.value.includes(n) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
632
632
|
style: v(`font-size:${F.value.fontSize}px;cursor:${ct.value ? "pointer" : "default"}`),
|
|
633
633
|
class: g({
|
|
634
634
|
"vue-ui-sparkstackbar-legend-item": !0,
|
|
635
|
-
"vue-ui-sparkstackbar-legend-item-unselected":
|
|
635
|
+
"vue-ui-sparkstackbar-legend-item-unselected": K.value.includes(n)
|
|
636
636
|
}),
|
|
637
|
-
onClick: (
|
|
638
|
-
|
|
637
|
+
onClick: (t) => {
|
|
638
|
+
Y(n), Z(e, n, !0);
|
|
639
639
|
},
|
|
640
|
-
onFocus: (t) =>
|
|
641
|
-
onBlur:
|
|
642
|
-
onKeydown: (
|
|
640
|
+
onFocus: (t) => kt(e),
|
|
641
|
+
onBlur: At,
|
|
642
|
+
onKeydown: (t) => jt(t, e, n)
|
|
643
643
|
}, [m("div", We, [(y(), p("svg", {
|
|
644
644
|
height: `${F.value.fontSize}px`,
|
|
645
645
|
width: `${F.value.fontSize}px`,
|
|
@@ -647,10 +647,10 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
647
647
|
}, [
|
|
648
648
|
m("defs", null, [Se(ge, {
|
|
649
649
|
t: "radial",
|
|
650
|
-
id: `legend_grad_${
|
|
650
|
+
id: `legend_grad_${n}-${E.value}`,
|
|
651
651
|
stops: [[
|
|
652
652
|
"0%",
|
|
653
|
-
w(R) ? "#FFFFFF" : w(
|
|
653
|
+
w(R) ? "#FFFFFF" : w(re)(w(i)(e.color, .05), 100 - P.value.gradient.intensity),
|
|
654
654
|
1
|
|
655
655
|
], [
|
|
656
656
|
"100%",
|
|
@@ -664,7 +664,7 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
664
664
|
y: "0",
|
|
665
665
|
width: "10",
|
|
666
666
|
height: "10",
|
|
667
|
-
rx:
|
|
667
|
+
rx: Q.value,
|
|
668
668
|
fill: P.value.gradient.underlayerColor
|
|
669
669
|
}, null, 8, Ke)) : f("", !0),
|
|
670
670
|
m("rect", {
|
|
@@ -672,23 +672,23 @@ var ke = /* @__PURE__ */ e({ default: () => Ye }), Ae = ["id"], je = { style: {
|
|
|
672
672
|
y: "0",
|
|
673
673
|
width: "10",
|
|
674
674
|
height: "10",
|
|
675
|
-
rx:
|
|
676
|
-
fill: P.value.gradient.show ? `url(#legend_grad_${
|
|
675
|
+
rx: Q.value,
|
|
676
|
+
fill: P.value.gradient.show ? `url(#legend_grad_${n}-${E.value})` : e.color
|
|
677
677
|
}, null, 8, qe)
|
|
678
|
-
], 8, Ge)), w(R) ? f("", !0) : (y(), p(l, { key: 0 }, [m("span", { style: v(`color:${F.value.name.color}; font-weight:${F.value.name.bold ? "bold" : "normal"}`) }, C(e.name), 5),
|
|
678
|
+
], 8, Ge)), w(R) ? f("", !0) : (y(), p(l, { key: 0 }, [m("span", { style: v(`color:${F.value.name.color}; font-weight:${F.value.name.bold ? "bold" : "normal"}`) }, C(e.name), 5), W.value ? f("", !0) : (y(), p(l, { key: 0 }, [F.value.percentage.show ? (y(), p("span", {
|
|
679
679
|
key: 0,
|
|
680
680
|
style: v(`font-weight:${F.value.percentage.bold ? "bold" : "normal"};color:${F.value.percentage.color}`)
|
|
681
|
-
}, C(
|
|
681
|
+
}, C(K.value.includes(n) ? " - " : e.proportionLabel), 5)) : f("", !0), F.value.value.show ? (y(), p("span", {
|
|
682
682
|
key: 1,
|
|
683
683
|
style: v(`font-weight:${F.value.value.bold ? "bold" : "normal"};color:${F.value.value.color}`)
|
|
684
|
-
}, " (" + C(w(
|
|
684
|
+
}, " (" + C(w(ne)(F.value.value.formatter, e.value, w(t)({
|
|
685
685
|
p: F.value.value.prefix,
|
|
686
686
|
v: e.value,
|
|
687
687
|
s: F.value.value.suffix,
|
|
688
688
|
r: F.value.value.rounding
|
|
689
689
|
}), {
|
|
690
690
|
datapoint: e,
|
|
691
|
-
seriesIndex:
|
|
691
|
+
seriesIndex: n
|
|
692
692
|
})) + ") ", 5)) : f("", !0)], 64))], 64))])], 46, Ue))), 256))], 4)) : f("", !0),
|
|
693
693
|
Se(w(Xe), {
|
|
694
694
|
teleportTo: I.value.teleportTo,
|