vue-data-ui 3.9.12 → 3.9.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-Cbn8f8m4.js → Arrow-f1dKmuRH.js} +1 -1
- package/dist/{BaseDraggableDialog-C167SnU0.js → BaseDraggableDialog-CAJxIF6g.js} +2 -2
- package/dist/{BaseIcon-r3_sTK1A.js → BaseIcon-4i3dd7Ty.js} +1 -1
- package/dist/{BaseZoomControls-D8N7fb-c.js → BaseZoomControls-C0H509ZF.js} +6 -6
- package/dist/{ColorPicker-Bq2C5Dll.js → ColorPicker-B9oF4-O6.js} +8 -8
- package/dist/{DataTable-DNeCys3I.js → DataTable-WrXCJkfE.js} +2 -2
- package/dist/{Legend-Dxz13z4E.js → Legend-D6z73edh.js} +2 -2
- package/dist/{NonSvgPenAndPaper-ZnkWbBri.js → NonSvgPenAndPaper-7clRuQVF.js} +11 -11
- package/dist/{PackageVersion-BpArR90N.js → PackageVersion-D3cMhAlf.js} +1 -1
- package/dist/{PenAndPaper-CsqBamFZ.js → PenAndPaper-DxIUvoQ8.js} +17 -17
- package/dist/{Shape-_iTOIp3x.js → Shape-DAHhCEdg.js} +1 -1
- package/dist/{Slicer-DBYna_by.js → Slicer-Bn8azYkD.js} +70 -70
- package/dist/{SlicerPreview-pHjYklxh.js → SlicerPreview-oV3dMuV1.js} +2 -2
- package/dist/{SparkTooltip-BaSHhfes.js → SparkTooltip-D7iYVquk.js} +3 -3
- package/dist/{Title-DFtCaCah.js → Title-BhURirpm.js} +1 -1
- package/dist/{Tooltip-B79qvriT.js → Tooltip-TDyKgLB6.js} +1 -1
- package/dist/{UserOptions-B-2A_KRb.js → UserOptions-CzJWRC4s.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-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-Cm7R2Zu2.js → dom-to-png-C2K57N1M.js} +1 -1
- package/dist/{img-BJzUSmkm.js → img-DKigoPDs.js} +1 -1
- package/dist/labelUtils-PMU3ZGCb.js +30 -0
- package/dist/{lib-W9waxHL3.js → lib-BwysEpWI.js} +81 -77
- package/dist/{pdf-BJR-8Moh.js → pdf-BHGnVnBG.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +20 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DAdqpHf1.js → useAutoSizeLabelsInsideViewbox-DO2dxQ78.js} +1 -1
- package/dist/{useNestedProp-D-jUHecl.js → useNestedProp--5lL-kf1.js} +209 -197
- package/dist/{usePrinter-DhoMn87n.js → usePrinter-BJzHDpYF.js} +2 -2
- package/dist/{vue-data-ui-Dw19CYml.js → vue-data-ui-DE3O1T8n.js} +67 -67
- package/dist/vue-data-ui.js +83 -83
- package/dist/{vue-ui-3d-bar-Bv7Tft_r.js → vue-ui-3d-bar-CVvhPzdH.js} +6 -6
- package/dist/{vue-ui-accordion-B6BX2vhq.js → vue-ui-accordion-tQNKwbVi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C6NjJlg4.js → vue-ui-age-pyramid-DxTHqM7w.js} +25 -25
- package/dist/{vue-ui-annotator-DB6dpuUU.js → vue-ui-annotator-Da5aL57a.js} +7 -7
- package/dist/{vue-ui-bullet-BLGvme53.js → vue-ui-bullet-DhpTML7L.js} +22 -22
- package/dist/{vue-ui-candlestick-DBG1mW60.js → vue-ui-candlestick-BDOKQqMm.js} +85 -85
- package/dist/{vue-ui-carousel-table-BYnItN48.js → vue-ui-carousel-table-BW6bKPsX.js} +13 -13
- package/dist/{vue-ui-chestnut-DV6f4SNc.js → vue-ui-chestnut-Cc-lke6P.js} +31 -31
- package/dist/{vue-ui-chord-DRleP2O8.js → vue-ui-chord-CB6w31Ex.js} +8 -8
- package/dist/{vue-ui-circle-pack-BCrMaFWw.js → vue-ui-circle-pack-CfihOmNV.js} +6 -6
- package/dist/{vue-ui-cursor-j10t3UEX.js → vue-ui-cursor-Dnpe76BQ.js} +3 -3
- package/dist/{vue-ui-dag-y0oqslGj.js → vue-ui-dag-Dq3hKon7.js} +7 -7
- package/dist/{vue-ui-dashboard-mBGF94l6.js → vue-ui-dashboard-eMwyGsuD.js} +68 -68
- package/dist/{vue-ui-digits-DQz1eJc-.js → vue-ui-digits-B5QhIbFD.js} +2 -2
- package/dist/vue-ui-donut-D3---CiY.js +2082 -0
- package/dist/{vue-ui-donut-evolution-hkHICgry.js → vue-ui-donut-evolution-C6H1Vr6m.js} +8 -8
- package/dist/{vue-ui-dumbbell-BVPZwi0X.js → vue-ui-dumbbell-L1p0npq4.js} +33 -33
- package/dist/{vue-ui-flow-BNeKU-KR.js → vue-ui-flow-CgAIlvZF.js} +38 -38
- package/dist/{vue-ui-funnel-VorM1bT0.js → vue-ui-funnel-CpgqO34n.js} +6 -6
- package/dist/{vue-ui-galaxy-DKkviRQr.js → vue-ui-galaxy-DAi1I2Cr.js} +316 -291
- package/dist/{vue-ui-gauge-BNaWVi-e.js → vue-ui-gauge-DY78U-uO.js} +7 -7
- package/dist/{vue-ui-geo-_R5mjj-u.js → vue-ui-geo-Befu6fkT.js} +7 -7
- package/dist/{vue-ui-gizmo-AQFQccea.js → vue-ui-gizmo-BM_oOeYY.js} +3 -3
- package/dist/{vue-ui-heatmap-BKX1bPY5.js → vue-ui-heatmap-C_ze3bzX.js} +108 -108
- package/dist/{vue-ui-history-plot-BNX8B2jr.js → vue-ui-history-plot-C-_zpLPH.js} +50 -50
- package/dist/{vue-ui-horizontal-bar-B6VyEs1p.js → vue-ui-horizontal-bar-DvLMeP44.js} +47 -47
- package/dist/{vue-ui-kpi-BnCqocoi.js → vue-ui-kpi-IcOqABQz.js} +3 -3
- package/dist/{vue-ui-mini-loader-Dzqusv9i.js → vue-ui-mini-loader-DxlOXn6v.js} +2 -2
- package/dist/{vue-ui-molecule-PtnhkQLr.js → vue-ui-molecule-N938wMMB.js} +5 -5
- package/dist/{vue-ui-mood-radar-DxSVU35A.js → vue-ui-mood-radar-D1hHnpLB.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BY8C1axg.js → vue-ui-nested-donuts-DeTGEb4T.js} +597 -595
- package/dist/{vue-ui-onion-XJAcsPVV.js → vue-ui-onion-BwY998zT.js} +376 -332
- package/dist/{vue-ui-parallel-coordinate-plot-CDWIZbgp.js → vue-ui-parallel-coordinate-plot-B4v3AheY.js} +43 -43
- package/dist/{vue-ui-quadrant-DY9GXVYY.js → vue-ui-quadrant-4f1p9gSO.js} +8 -8
- package/dist/{vue-ui-quick-chart-Y73WB5GW.js → vue-ui-quick-chart-CGbEBTS1.js} +52 -52
- package/dist/{vue-ui-radar-Deup68ga.js → vue-ui-radar-B15r4HoM.js} +57 -57
- package/dist/{vue-ui-rating-BciQHmzs.js → vue-ui-rating-CaRZVE71.js} +2 -2
- package/dist/{vue-ui-relation-circle-C0W3aPaO.js → vue-ui-relation-circle-CFEL1uYt.js} +7 -7
- package/dist/{vue-ui-ridgeline-D9z3_hRf.js → vue-ui-ridgeline-LGH61-xE.js} +8 -8
- package/dist/{vue-ui-rings-CT3gLUkS.js → vue-ui-rings-DNdUdKax.js} +270 -246
- package/dist/{vue-ui-scatter-DiLSOZGs.js → vue-ui-scatter-Duxs0Ie_.js} +8 -8
- package/dist/{vue-ui-skeleton-D_2C5A85.js → vue-ui-skeleton-UoBAzUyN.js} +3 -3
- package/dist/{vue-ui-smiley-C0Bqip2_.js → vue-ui-smiley-BhpJbcM8.js} +2 -2
- package/dist/{vue-ui-spark-trend-C05f4Fn6.js → vue-ui-spark-trend-2c75iF9Y.js} +96 -96
- package/dist/{vue-ui-sparkbar-CjYaG0Ae.js → vue-ui-sparkbar-B2E5nzBF.js} +3 -3
- package/dist/{vue-ui-sparkgauge-AKIy8PYI.js → vue-ui-sparkgauge-DFkpaMkk.js} +13 -13
- package/dist/{vue-ui-sparkhistogram-nWWgx7iD.js → vue-ui-sparkhistogram-K6lo-KnY.js} +4 -4
- package/dist/{vue-ui-sparkline-CGMDNQpH.js → vue-ui-sparkline-CsByZZt4.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-C3vjYPrM.js → vue-ui-sparkstackbar-ByUb6nk-.js} +3 -3
- package/dist/{vue-ui-stackbar-BQiLC89h.js → vue-ui-stackbar-D7SnQvr4.js} +41 -41
- package/dist/{vue-ui-stackline-DPV5Amgq.js → vue-ui-stackline-BnRxf3k_.js} +130 -130
- package/dist/{vue-ui-strip-plot-CFGml25d.js → vue-ui-strip-plot-CJWXdisu.js} +28 -28
- package/dist/{vue-ui-table-DySeXTmp.js → vue-ui-table-BHWwypkc.js} +27 -27
- package/dist/{vue-ui-table-heatmap-CDnzIKGy.js → vue-ui-table-heatmap-DvHKKwJA.js} +12 -12
- package/dist/{vue-ui-table-sparkline-DbEj6x4N.js → vue-ui-table-sparkline-uK0q-dO9.js} +11 -11
- package/dist/{vue-ui-thermometer-BeiT4slQ.js → vue-ui-thermometer-Bxn0JNeJ.js} +31 -31
- package/dist/{vue-ui-timer-RWg45QKc.js → vue-ui-timer-7o5Jrxf3.js} +5 -5
- package/dist/{vue-ui-tiremarks-B4_W_mWX.js → vue-ui-tiremarks-DHoUaHOe.js} +6 -6
- package/dist/{vue-ui-treemap-fq9-enBk.js → vue-ui-treemap-B_4cIAAI.js} +51 -51
- package/dist/{vue-ui-waffle-BRcWupew.js → vue-ui-waffle-CddfqNWD.js} +381 -352
- package/dist/{vue-ui-wheel-DziR9q2I.js → vue-ui-wheel-CGYJA-33.js} +6 -6
- package/dist/{vue-ui-word-cloud-C6i_7Q6Y.js → vue-ui-word-cloud-oszTieHn.js} +32 -32
- package/dist/{vue-ui-world-Dvn1JWi9.js → vue-ui-world-DQjHEyKe.js} +31 -31
- package/dist/{vue-ui-xy-2ui0juKl.js → vue-ui-xy-D5A8tR-O.js} +9 -9
- package/dist/{vue-ui-xy-canvas-9tgX_s2v.js → vue-ui-xy-canvas-Bzd8pZdH.js} +100 -100
- package/package.json +1 -1
- package/dist/vue-ui-donut-A_IFB9JR.js +0 -2078
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as he, computed as f, ref as y, toRefs as Xe, watch as
|
|
2
|
-
import { c as
|
|
1
|
+
import { defineAsyncComponent as he, computed as f, ref as y, toRefs as Xe, watch as Q, shallowRef as ye, onMounted as Ye, onBeforeUnmount as pe, createElementBlock as c, openBlock as n, normalizeStyle as z, renderSlot as F, createCommentVNode as h, createBlock as ge, normalizeProps as be, guardReactiveProps as me, createElementVNode as p, toDisplayString as B, unref as u, createVNode as qe, Fragment as J, renderList as ee, withCtx as Ze, createTextVNode as Ke, nextTick as He } from "vue";
|
|
2
|
+
import { c as Qe, t as Je, a1 as ke, an as te, o as xe, g as Ae, l as et, h as E, n as tt, ao as at, X as lt, s as V, A as _e, C as ot, Q as Ce, a as ae, d as le, ap as rt } from "./lib-BwysEpWI.js";
|
|
3
3
|
import { t as ut, u as st } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as nt, a as oe } from "./useNestedProp-
|
|
4
|
+
import { u as nt, a as oe } from "./useNestedProp--5lL-kf1.js";
|
|
5
5
|
import { u as it, B as vt } from "./BaseScanner-BMpwQAfz.js";
|
|
6
6
|
import { u as dt } from "./useThemeCheck-DGJ31Vi5.js";
|
|
7
7
|
import { u as ct } from "./useTimeLabels-DKoynYae.js";
|
|
@@ -58,7 +58,7 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
58
58
|
},
|
|
59
59
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
60
60
|
setup(L, { emit: De }) {
|
|
61
|
-
const Se = he(() => import("./PackageVersion-
|
|
61
|
+
const Se = he(() => import("./PackageVersion-D3cMhAlf.js")), ze = he(() => import("./SparkTooltip-D7iYVquk.js")), { vue_ui_sparkline: Be } = nt(), { isThemeValid: Ee, warnInvalidTheme: Ve } = dt(), s = L, re = f(() => Array.isArray(s.dataset) && s.dataset.length > 0), g = y(Qe()), T = y(null), ue = y(null), se = y(null), e = y(W());
|
|
62
62
|
function Te(t) {
|
|
63
63
|
return rt(t).map((a) => ({ period: "-", value: a }));
|
|
64
64
|
}
|
|
@@ -72,7 +72,7 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
72
72
|
});
|
|
73
73
|
},
|
|
74
74
|
skeletonDataset: Te(12),
|
|
75
|
-
skeletonConfig:
|
|
75
|
+
skeletonConfig: Je({
|
|
76
76
|
defaultConfig: e.value,
|
|
77
77
|
userConfig: {
|
|
78
78
|
style: {
|
|
@@ -120,9 +120,9 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
120
120
|
data: $.value,
|
|
121
121
|
threshold: e.value.downsample.threshold
|
|
122
122
|
}));
|
|
123
|
-
|
|
123
|
+
Q(() => s.config, (t) => {
|
|
124
124
|
R.value || (e.value = W()), ve(), r.value.chartWidth = e.value.style.chartWidth;
|
|
125
|
-
}, { deep: !0 }),
|
|
125
|
+
}, { deep: !0 }), Q(() => s.dataset, (t) => {
|
|
126
126
|
Array.isArray(t) && t.length > 0 && (P.value = !1), b.value = te({
|
|
127
127
|
data: $.value.map((a) => ({
|
|
128
128
|
...a,
|
|
@@ -178,7 +178,7 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
178
178
|
};
|
|
179
179
|
N.value = requestAnimationFrame(fe);
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
Q(U, () => {
|
|
182
182
|
X();
|
|
183
183
|
}), Ye(() => {
|
|
184
184
|
ve(), X();
|
|
@@ -421,7 +421,7 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
421
421
|
"stroke-width": e.value.style.line.strokeWidth,
|
|
422
422
|
"stroke-linecap": "round"
|
|
423
423
|
}, null, 8, Ft)) : h("", !0),
|
|
424
|
-
(n(!0), c(
|
|
424
|
+
(n(!0), c(J, null, ee(d.value, (l, o) => (n(), c("g", null, [
|
|
425
425
|
I.value ? (n(), c("rect", {
|
|
426
426
|
key: 0,
|
|
427
427
|
x: l.x - l.width / 2,
|
|
@@ -454,7 +454,7 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
454
454
|
"stroke-width": e.value.style.zeroLine.strokeWidth,
|
|
455
455
|
"stroke-linecap": "round"
|
|
456
456
|
}, null, 8, zt)) : h("", !0),
|
|
457
|
-
e.value.style.plot.show ? (n(!0), c(
|
|
457
|
+
e.value.style.plot.show ? (n(!0), c(J, { key: 5 }, ee(d.value, (l, o) => (n(), c("g", null, [
|
|
458
458
|
v.value && l.id === v.value.id || L.selectedIndex === o || u($).length === 1 ? (n(), c("circle", {
|
|
459
459
|
key: 0,
|
|
460
460
|
cx: l.x,
|
|
@@ -482,7 +482,7 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
482
482
|
ce.value,
|
|
483
483
|
u(le)({ p: e.value.style.dataLabel.prefix, v: ce.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
|
|
484
484
|
)), 9, Et)) : h("", !0),
|
|
485
|
-
(n(!0), c(
|
|
485
|
+
(n(!0), c(J, null, ee(d.value, (l, o) => (n(), c("rect", {
|
|
486
486
|
x: l.x - (i.value.width / (C.value + 1) > r.value.padding ? r.value.padding : i.value.width / (C.value + 1)) / 2,
|
|
487
487
|
y: i.value.top - 6,
|
|
488
488
|
height: i.value.height + 6,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as Q, useSlots as Ie, onMounted as Z, ref as v, toRefs as Te, watch as ee, computed as F, createElementBlock as s, openBlock as r, normalizeStyle as g, createCommentVNode as h, createVNode as te, createBlock as Pe, createElementVNode as d, toDisplayString as S, unref as c, Fragment as _, renderList as D, normalizeClass as z, withCtx as oe, renderSlot as U, normalizeProps as le, guardReactiveProps as ae } from "vue";
|
|
2
|
-
import { c as re, t as ze, i as Oe,
|
|
3
|
-
import { u as Ue, a as G } from "./useNestedProp-
|
|
2
|
+
import { c as re, t as ze, i as Oe, j as i, m as B, k as Le, o as Ne, g as se, l as je, d as R, X as Ve, s as ne, h as ue, a as ie, y as Me } from "./lib-BwysEpWI.js";
|
|
3
|
+
import { u as Ue, a as G } from "./useNestedProp--5lL-kf1.js";
|
|
4
4
|
import { u as Re, B as Ge } from "./BaseScanner-BMpwQAfz.js";
|
|
5
5
|
import { u as We } from "./useThemeCheck-DGJ31Vi5.js";
|
|
6
6
|
import { u as Ye } from "./useChartAccessibility-9icAAmYg.js";
|
|
@@ -50,7 +50,7 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
50
50
|
},
|
|
51
51
|
emits: ["selectDatapoint"],
|
|
52
52
|
setup(ye, { expose: me, emit: be }) {
|
|
53
|
-
const Ce = Q(() => import("./PackageVersion-
|
|
53
|
+
const Ce = Q(() => import("./PackageVersion-D3cMhAlf.js")), ke = Q(() => import("./Tooltip-TDyKgLB6.js")), { vue_ui_sparkstackbar: _e } = Ue(), { isThemeValid: xe, warnInvalidTheme: we } = We(), m = ye, Ae = Ie();
|
|
54
54
|
Z(() => {
|
|
55
55
|
Ae["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
56
56
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineAsyncComponent as j, useSlots as Pl, computed as b, ref as d, onMounted as ia, toRefs as Ol, watch as ze, shallowRef as ua, onBeforeUnmount as gt, watchEffect as ca, nextTick as El, createElementBlock as n, openBlock as s, normalizeStyle as ne, normalizeClass as ve, createBlock as ee, createCommentVNode as y, renderSlot as C, createElementVNode as te, createVNode as _e, unref as m, withCtx as L, normalizeProps as U, guardReactiveProps as H, createSlots as bt, Fragment as x, renderList as w, mergeProps as Me, toDisplayString as B, Teleport as Rl, resolveDynamicComponent as Il, createTextVNode as ha } from "vue";
|
|
2
|
-
import { u as Bl, a as yt } from "./useNestedProp-
|
|
3
|
-
import { c as va, t as Vl, i as Ul,
|
|
2
|
+
import { u as Bl, a as yt } from "./useNestedProp--5lL-kf1.js";
|
|
3
|
+
import { c as va, t as Vl, i as Ul, j as He, a1 as de, k as Hl, o as da, g as ga, l as Xl, m as Yl, aq as Te, O as ba, N as ya, S as Wl, X as ql, q as Gl, Q as ie, x as fa, a as ge, d as ae, $ as Jl, ar as Zl, y as ma, v as Ql, r as Kl, _ as jl } from "./lib-BwysEpWI.js";
|
|
4
4
|
import { t as ft, u as eo } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as to } from "./usePrinter-
|
|
5
|
+
import { u as to } from "./usePrinter-BJzHDpYF.js";
|
|
6
6
|
import { u as ao, B as lo } from "./BaseScanner-BMpwQAfz.js";
|
|
7
7
|
import { u as pa, a as oo, l as ro } from "./useTimeLabels-DKoynYae.js";
|
|
8
8
|
import { u as so } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -10,11 +10,11 @@ import { u as no } from "./useThemeCheck-DGJ31Vi5.js";
|
|
|
10
10
|
import { u as io } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { u as uo } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
12
|
import { u as co } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
|
-
import ho from "./img-
|
|
14
|
-
import vo from "./Title-
|
|
15
|
-
import { _ as go } from "./Shape-
|
|
16
|
-
import bo from "./Legend-
|
|
17
|
-
import { S as yo } from "./SlicerPreview-
|
|
13
|
+
import ho from "./img-DKigoPDs.js";
|
|
14
|
+
import vo from "./Title-BhURirpm.js";
|
|
15
|
+
import { _ as go } from "./Shape-DAHhCEdg.js";
|
|
16
|
+
import bo from "./Legend-D6z73edh.js";
|
|
17
|
+
import { S as yo } from "./SlicerPreview-oV3dMuV1.js";
|
|
18
18
|
import { _ as fo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
19
|
const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" }, bars: { totalValues: { color: "#CCCCCC" } }, grid: { frame: { stroke: "#5A5A5A" }, x: { axisColor: "#5A5A5A", linesColor: "#4A4A4A", axisName: { color: "#CCCCCC" }, timeLabels: { color: "#CCCCCC" } }, y: { axisColor: "#5A5A5A", linesColor: "#4A4A4A", axisName: { color: "#CCCCCC" }, axisLabels: { color: "#CCCCCC" } } } } } }, ka = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, highlighter: { color: "#424242" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, bars: { totalValues: { color: "#424242" } }, grid: { x: { axisColor: "#5D403780", axisName: { color: "#424242" }, timeLabels: { color: "#424242" } }, y: { axisColor: "#5D403780", axisName: { color: "#424242" }, axisLabels: { color: "#424242" } } } } } }, Ca = { table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, highlighter: { color: "#FFF8E1" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, bars: { totalValues: { color: "#BDBDBD" } }, grid: { x: { axisColor: "#5D403740", axisName: { color: "#BDBDBD" }, timeLabels: { color: "#BDBDBD" } }, y: { axisColor: "#5D4037", axisName: { color: "#BDBDBD" }, axisLabels: { color: "#BDBDBD" } } } } } }, wa = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, highlighter: { color: "#66CC66" }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" }, bars: { totalValues: { color: "#99AA99" } }, grid: { x: { axisColor: "#5F6A5F", axisName: { color: "#66CC66" }, timeLabels: { color: "#99AA99" } }, y: { axisColor: "#5F6A5F", axisName: { color: "#66CC66" }, axisLabels: { color: "#99AA99" } } } } } }, La = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, highlighter: { color: "#8F837A" }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" }, bars: { borderRadius: 4, totalValues: { show: !1 }, dataLabels: { show: !1 } }, grid: { x: { showAxis: !1, axisName: { color: "#8F837A" }, timeLabels: { show: !1 } }, y: { showAxis: !1, axisName: { color: "#8F837A" }, axisLabels: { show: !1 } } } } } }, Aa = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, zoom: { color: "#92B0AB", highlightColor: "#50606C" }, highlighter: { color: "#7DA9B5" }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" }, bars: { totalValues: { color: "#50606C" } }, grid: { x: { showHorizontalLines: !0, axisColor: "#829C98", axisName: { color: "#50606C" }, timeLabels: { color: "#61747E" } }, y: { showVerticalLines: !0, axisColor: "#829C98", axisName: { color: "#50606C" }, axisLabels: { color: "#61747E" } } } } } }, Sa = {
|
|
20
20
|
default: {},
|
|
@@ -33,7 +33,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
33
33
|
default: Sa,
|
|
34
34
|
hack: wa,
|
|
35
35
|
zen: La
|
|
36
|
-
}, Symbol.toStringTag, { value: "Module" })), mo = ["id"], po = ["id"], xo = ["xmlns", "viewBox"], ko = ["x", "y", "width", "height"], Co = { key: 1 }, wo = ["id"], Lo = ["stop-color"], Ao = ["stop-color"], So = ["stop-color"], zo = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], _o = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Mo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], To = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], $o = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Fo = { key: 0 }, Do = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], No = { key: 0 }, Po = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Oo = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Eo = { key: 0 }, Ro = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Io = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vo = ["x", "y", "font-size", "fill", "font-weight"], Uo = ["transform", "font-size", "fill", "font-weight"], Ho = ["x", "y", "font-size", "fill", "font-weight"], Xo = ["x", "y", "font-size", "font-weight", "fill"], Yo = ["x", "y", "font-size", "fill", "font-weight"], Wo = ["x", "y", "font-size", "font-weight", "fill"], qo = ["x1", "x2", "y1", "y2", "stroke"], Go = ["x", "y", "font-size", "font-weight", "fill"], Jo = ["x1", "x2", "y1", "y2", "stroke"], Zo = ["font-size", "font-weight", "fill", "text-anchor", "transform"],
|
|
36
|
+
}, Symbol.toStringTag, { value: "Module" })), mo = ["id"], po = ["id"], xo = ["xmlns", "viewBox"], ko = ["x", "y", "width", "height"], Co = { key: 1 }, wo = ["id"], Lo = ["stop-color"], Ao = ["stop-color"], So = ["stop-color"], zo = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], _o = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Mo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], To = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], $o = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Fo = { key: 0 }, Do = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], No = { key: 0 }, Po = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Oo = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Eo = { key: 0 }, Ro = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Io = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vo = ["x", "y", "font-size", "fill", "font-weight"], Uo = ["transform", "font-size", "fill", "font-weight"], Ho = ["x", "y", "font-size", "fill", "font-weight"], Xo = ["x", "y", "font-size", "font-weight", "fill"], Yo = ["x", "y", "font-size", "fill", "font-weight"], Wo = ["x", "y", "font-size", "font-weight", "fill"], qo = ["x1", "x2", "y1", "y2", "stroke"], Go = ["x", "y", "font-size", "font-weight", "fill"], Jo = ["x1", "x2", "y1", "y2", "stroke"], Zo = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Qo = { key: 0 }, Ko = { key: 1 }, jo = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], er = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], tr = { key: 0 }, ar = { key: 1 }, lr = ["font-size", "font-weight", "fill", "x", "y", "onClick"], or = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], rr = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], sr = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], nr = ["data-start", "data-end"], ir = {
|
|
37
37
|
key: 3,
|
|
38
38
|
class: "vue-data-ui-watermark"
|
|
39
39
|
}, ur = ["x", "y", "height", "width", "fill", "stroke"], cr = ["id"], hr = ["onClick"], vr = ["innerHTML"], dr = {
|
|
@@ -58,14 +58,14 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
58
58
|
},
|
|
59
59
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel", "selectX"],
|
|
60
60
|
setup(Xe, { expose: za, emit: _a }) {
|
|
61
|
-
const Ma = j(() => import("./Tooltip-
|
|
61
|
+
const Ma = j(() => import("./Tooltip-TDyKgLB6.js")), Ta = j(() => import("./BaseIcon-4i3dd7Ty.js")), $a = j(() => import("./vue-ui-accordion-tQNKwbVi.js")), Fa = j(() => import("./DataTable-WrXCJkfE.js")), Da = j(() => import("./PenAndPaper-DxIUvoQ8.js")), Na = j(() => import("./UserOptions-CzJWRC4s.js")), Pa = j(() => import("./PackageVersion-D3cMhAlf.js")), Oa = j(() => import("./BaseDraggableDialog-CAJxIF6g.js")), { vue_ui_stackbar: Ea } = Bl(), { isThemeValid: Ra, warnInvalidTheme: Ia } = no(), Ba = Pl(), k = Xe, be = _a, ye = b({
|
|
62
62
|
get() {
|
|
63
63
|
return !!k.dataset && k.dataset.length;
|
|
64
64
|
},
|
|
65
65
|
set(a) {
|
|
66
66
|
return a;
|
|
67
67
|
}
|
|
68
|
-
}), J = d(null), V = d(va()), Ye = d(!1), We = d(null), qe = d(""), F = d([]), mt = d(0), pt = d(null), xt = d(null), fe = d(null), kt = d(null), me = d(!1), G = d(null), le = d(!1), Ct = d(0), Va = d(0), Ua = d(0), wt = d(!1), pe = d(null), Ge = d(null), Je = d(null), Ze = d(null), oe = d(null), re = d(null), Ha = d(null),
|
|
68
|
+
}), J = d(null), V = d(va()), Ye = d(!1), We = d(null), qe = d(""), F = d([]), mt = d(0), pt = d(null), xt = d(null), fe = d(null), kt = d(null), me = d(!1), G = d(null), le = d(!1), Ct = d(0), Va = d(0), Ua = d(0), wt = d(!1), pe = d(null), Ge = d(null), Je = d(null), Ze = d(null), oe = d(null), re = d(null), Ha = d(null), Qe = d(null), Ke = d(null);
|
|
69
69
|
ia(() => {
|
|
70
70
|
wt.value = !0, ot();
|
|
71
71
|
});
|
|
@@ -211,7 +211,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
211
211
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
212
212
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
213
213
|
}
|
|
214
|
-
}), Wa = b(() => Hl(e.value.customPalette)),
|
|
214
|
+
}), Wa = b(() => Hl(e.value.customPalette)), Q = ua(null), ce = ua(null), Ft = d(null);
|
|
215
215
|
ia(() => {
|
|
216
216
|
ot();
|
|
217
217
|
});
|
|
@@ -252,12 +252,12 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
252
252
|
}, 10);
|
|
253
253
|
});
|
|
254
254
|
});
|
|
255
|
-
|
|
255
|
+
Q.value && (ce.value && Q.value.unobserve(ce.value), Q.value.disconnect()), Q.value = new ResizeObserver(a), ce.value = J.value.parentNode, Q.value.observe(ce.value);
|
|
256
256
|
}
|
|
257
257
|
Be();
|
|
258
258
|
}
|
|
259
259
|
gt(() => {
|
|
260
|
-
|
|
260
|
+
Q.value && (ce.value && Q.value.unobserve(ce.value), Q.value.disconnect());
|
|
261
261
|
});
|
|
262
262
|
function qa() {
|
|
263
263
|
let a = 0;
|
|
@@ -287,7 +287,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
287
287
|
}, 100);
|
|
288
288
|
function Za() {
|
|
289
289
|
if (e.value.orientation !== "horizontal") return 0;
|
|
290
|
-
const a =
|
|
290
|
+
const a = Qe.value;
|
|
291
291
|
if (!a) return 0;
|
|
292
292
|
const l = Array.from(a.querySelectorAll("text"));
|
|
293
293
|
if (!l.length) return 0;
|
|
@@ -302,7 +302,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
302
302
|
}
|
|
303
303
|
ca((a) => {
|
|
304
304
|
if (e.value.orientation !== "horizontal") return;
|
|
305
|
-
const l =
|
|
305
|
+
const l = Qe.value;
|
|
306
306
|
if (!l) return;
|
|
307
307
|
const t = () => {
|
|
308
308
|
const r = Za();
|
|
@@ -338,7 +338,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
338
338
|
width: Math.max(0, N),
|
|
339
339
|
height: Math.max(0, $)
|
|
340
340
|
};
|
|
341
|
-
}),
|
|
341
|
+
}), Qa = b(() => {
|
|
342
342
|
const { left: a, top: l, width: t, height: o } = u.value, c = h.value.start, r = h.value.end, f = Math.max(1, r - c), A = Math.max(0, Math.min(f, (R.value.start ?? c) - c)), M = Math.max(0, Math.min(f, (R.value.end ?? r) - c)), N = Math.max(0, M - A), $ = {
|
|
343
343
|
fill: e.value.style.chart.zoom.preview.fill,
|
|
344
344
|
stroke: e.value.style.chart.zoom.preview.stroke,
|
|
@@ -384,8 +384,8 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
384
384
|
color: t
|
|
385
385
|
};
|
|
386
386
|
})), D = b(() => Math.max(...X.value.filter((a) => !F.value.includes(a.id)).map((a) => a.series.length)));
|
|
387
|
-
function
|
|
388
|
-
|
|
387
|
+
function Ka(a) {
|
|
388
|
+
Ke.value = a;
|
|
389
389
|
}
|
|
390
390
|
const h = d({
|
|
391
391
|
start: 0,
|
|
@@ -499,8 +499,8 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
499
499
|
const c = Math.max(...Pe.value.positive) || 0, r = Math.min(...Pe.value.negative), f = [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, A = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ba(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : f > 0 ? 0 : f, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : ya(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : f > 0 ? 0 : f, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: M, max: N } = A, $ = N + (M >= 0 ? 0 : Math.abs(M)) || 1, E = u.value.height, I = u.value.width, Se = Y.value[0] ? Y.value[0].zero : u.value.bottom, W = Y.value[0] ? Y.value[0].horizontal_zero : u.value.left;
|
|
500
500
|
let la = Array(se.value.length).fill(0), oa = Array(se.value.length).fill(0);
|
|
501
501
|
return X.value.filter((he) => !F.value.includes(he.id)).map((he) => {
|
|
502
|
-
const
|
|
503
|
-
|
|
502
|
+
const K = he.series.slice(), ra = K.map((v, g) => la[g]), Cl = K.map((v, g) => oa[g]);
|
|
503
|
+
K.forEach((v, g) => {
|
|
504
504
|
(Number(v) || 0) >= 0 ? la[g] += Number(v) || 0 : oa[g] += Math.abs(Number(v) || 0);
|
|
505
505
|
});
|
|
506
506
|
const Z = he.series.slice(h.value.start, h.value.end), wl = he.signedSeries.slice(h.value.start, h.value.end), Ll = Z.map((v, g) => u.value.left + p.value * g + p.value * e.value.style.chart.bars.gapRatio / 4), Ue = (se.value || []).filter(Number.isFinite), ht = Ue.length ? Math.max(...Ue) : 0, vt = Ue.length ? Math.min(...Ue) : 0;
|
|
@@ -528,19 +528,19 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
528
528
|
}
|
|
529
529
|
const Al = ({ left: v, unitW: g }) => {
|
|
530
530
|
const z = g * (e.value.style.chart.bars.gapRatio / 4);
|
|
531
|
-
return
|
|
531
|
+
return K.map((P, _) => v + g * _ + z);
|
|
532
532
|
}, Sl = Z.map((v, g) => u.value.top + p.value * g + p.value * e.value.style.chart.bars.gapRatio / 4), zl = Z.map((v, g) => {
|
|
533
533
|
const z = e.value.style.chart.bars.distributed ? (v || 0) / Ce.value[g] : (v || 0) / $;
|
|
534
534
|
let P, _;
|
|
535
535
|
return v > 0 ? (_ = E * z, P = Se - _ - a[g], a[g] += _) : (_ = E * z, P = Se + t[g], t[g] += Math.abs(_)), P;
|
|
536
536
|
}), _l = ({ minimapH: v }) => {
|
|
537
537
|
if (e.value.style.chart.bars.distributed)
|
|
538
|
-
return
|
|
538
|
+
return K.map((_, q) => {
|
|
539
539
|
const dt = Math.abs(Number(_) || 0), na = Math.abs(se.value?.[q] || 0) || 1e-9, Nl = (ra[q] + dt) / na;
|
|
540
540
|
return v - Nl * v;
|
|
541
541
|
});
|
|
542
542
|
const { pxPerUnit: g, zero: z } = sa({ minimapH: v });
|
|
543
|
-
return
|
|
543
|
+
return K.map((P, _) => {
|
|
544
544
|
const q = Number(P) || 0;
|
|
545
545
|
return q >= 0 ? z - (ra[_] + q) * g : z + Cl[_] * g;
|
|
546
546
|
});
|
|
@@ -553,12 +553,12 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
553
553
|
return v > 0 ? E * z : E * Math.abs(z);
|
|
554
554
|
}), $l = ({ minimapH: v }) => {
|
|
555
555
|
if (e.value.style.chart.bars.distributed)
|
|
556
|
-
return
|
|
556
|
+
return K.map((P, _) => {
|
|
557
557
|
const q = Math.abs(Number(P) || 0), dt = Math.abs(se.value?.[_] || 0) || 1e-9;
|
|
558
558
|
return q / dt * v;
|
|
559
559
|
});
|
|
560
560
|
const { pxPerUnit: g } = sa({ minimapH: v });
|
|
561
|
-
return
|
|
561
|
+
return K.map((z) => Math.abs(Number(z) || 0) * g);
|
|
562
562
|
}, Fl = Z.map((v, g) => {
|
|
563
563
|
const z = e.value.style.chart.bars.distributed ? (v || 0) / Ce.value[g] : (v || 0) / $;
|
|
564
564
|
return v > 0 ? I * z : I * Math.abs(z);
|
|
@@ -765,8 +765,8 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
765
765
|
}), { head: a, body: l };
|
|
766
766
|
});
|
|
767
767
|
function nt(a = null) {
|
|
768
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...Jt.value.head.map((f) => f.label)], o = Jt.value.body, c = l.concat([t]).concat(o), r =
|
|
769
|
-
a ? a(r) :
|
|
768
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...Jt.value.head.map((f) => f.label)], o = Jt.value.body, c = l.concat([t]).concat(o), r = Ql(c);
|
|
769
|
+
a ? a(r) : Kl({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
770
770
|
}
|
|
771
771
|
const Ee = b(() => {
|
|
772
772
|
const a = [""].concat(S.value.map((c) => c.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
@@ -847,7 +847,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
847
847
|
});
|
|
848
848
|
}
|
|
849
849
|
const cl = b(() => Math.max(...S.value.flatMap((a) => a.series)));
|
|
850
|
-
function
|
|
850
|
+
function Qt(a, l) {
|
|
851
851
|
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? zt.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : zt.value ? (St.value && lt.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), a > cl.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : St.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
852
852
|
}
|
|
853
853
|
async function hl({ scale: a = 2 } = {}) {
|
|
@@ -895,7 +895,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
895
895
|
ze(() => T.value.showTable, (a) => {
|
|
896
896
|
e.value.table.show || (a && e.value.table.useDialog && pe.value ? pe.value.open() : "close" in pe.value && pe.value.close());
|
|
897
897
|
});
|
|
898
|
-
function
|
|
898
|
+
function Kt() {
|
|
899
899
|
T.value.showTable = !1, Ge.value && Ge.value.setTableIconState(!1);
|
|
900
900
|
}
|
|
901
901
|
const vl = b(() => e.value.style.chart.backgroundColor), dl = b(() => e.value.style.chart.legend), gl = b(() => e.value.style.chart.title), { exportSvg: bl, getSvg: yl } = so({
|
|
@@ -1365,7 +1365,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1365
1365
|
T.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(x, { key: 11 }, [
|
|
1366
1366
|
(s(!0), n(x, null, w(S.value, (t, o) => (s(), n("g", null, [
|
|
1367
1367
|
(s(!0), n(x, null, w(t.x, (c, r) => (s(), n(x, null, [
|
|
1368
|
-
|
|
1368
|
+
Qt(t.series[r], t.proportions[r]) ? (s(), n("text", {
|
|
1369
1369
|
key: 0,
|
|
1370
1370
|
x: c + p.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
1371
1371
|
y: t.y[r] + t.height[r] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
@@ -1397,7 +1397,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1397
1397
|
T.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(x, { key: 12 }, [
|
|
1398
1398
|
(s(!0), n(x, null, w(S.value, (t, o) => (s(), n("g", null, [
|
|
1399
1399
|
(s(!0), n(x, null, w(t.horizontal_x, (c, r) => (s(), n(x, null, [
|
|
1400
|
-
|
|
1400
|
+
Qt(t.series[r], t.proportions[r]) ? (s(), n("text", {
|
|
1401
1401
|
key: 0,
|
|
1402
1402
|
x: c + (t.horizontal_width[r] < 0 ? 1e-4 : t.horizontal_width[r]) / 2,
|
|
1403
1403
|
y: t.horizontal_y[r] + p.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
@@ -1411,7 +1411,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1411
1411
|
e.value.style.chart.bars.totalValues.show && S.value.length > 1 ? (s(), n("g", {
|
|
1412
1412
|
key: 0,
|
|
1413
1413
|
ref_key: "sumRight",
|
|
1414
|
-
ref:
|
|
1414
|
+
ref: Qe
|
|
1415
1415
|
}, [
|
|
1416
1416
|
(s(!0), n(x, null, w(Bt.value, (t, o) => (s(), n(x, null, [
|
|
1417
1417
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
@@ -1496,7 +1496,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1496
1496
|
ref_key: "timeLabelsEls",
|
|
1497
1497
|
ref: re
|
|
1498
1498
|
}, [
|
|
1499
|
-
a.$slots["time-label"] ? (s(), n("g",
|
|
1499
|
+
a.$slots["time-label"] ? (s(), n("g", Qo, [
|
|
1500
1500
|
(s(!0), n(x, null, w(Et.value, (t, o) => (s(), n("g", null, [
|
|
1501
1501
|
C(a.$slots, "time-label", Me({ ref_for: !0 }, {
|
|
1502
1502
|
x: u.value.left + p.value * o + p.value / 2,
|
|
@@ -1510,7 +1510,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1510
1510
|
show: !0
|
|
1511
1511
|
}), void 0, !0)
|
|
1512
1512
|
]))), 256))
|
|
1513
|
-
])) : (s(), n("g",
|
|
1513
|
+
])) : (s(), n("g", Ko, [
|
|
1514
1514
|
(s(!0), n(x, null, w(Et.value, (t, o) => (s(), n("g", null, [
|
|
1515
1515
|
String(t.text).includes(`
|
|
1516
1516
|
`) ? (s(), n("text", {
|
|
@@ -1611,7 +1611,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1611
1611
|
onClick: () => Ut(o),
|
|
1612
1612
|
onMouseenter: () => Xt(o),
|
|
1613
1613
|
onMouseleave: () => Ht(o),
|
|
1614
|
-
fill: o === G.value || o ===
|
|
1614
|
+
fill: o === G.value || o === Ke.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1615
1615
|
style: ne({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1616
1616
|
}, null, 44, rr))), 256)) : y("", !0),
|
|
1617
1617
|
T.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(x, { key: 18 }, w(h.value.end - h.value.start, (t, o) => (s(), n("rect", {
|
|
@@ -1622,10 +1622,10 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1622
1622
|
onClick: () => Ut(o),
|
|
1623
1623
|
onMouseenter: () => Xt(o),
|
|
1624
1624
|
onMouseleave: () => Ht(o),
|
|
1625
|
-
fill: o === G.value || o ===
|
|
1625
|
+
fill: o === G.value || o === Ke.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1626
1626
|
style: ne({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1627
1627
|
}, null, 44, sr))), 256)) : y("", !0),
|
|
1628
|
-
Nt.value ? (s(), n("rect", Me({ key: 19 },
|
|
1628
|
+
Nt.value ? (s(), n("rect", Me({ key: 19 }, Qa.value, {
|
|
1629
1629
|
"data-start": h.value.start,
|
|
1630
1630
|
"data-end": h.value.end
|
|
1631
1631
|
}), null, 16, nr)) : y("", !0),
|
|
@@ -1685,7 +1685,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1685
1685
|
verticalHandles: e.value.style.chart.zoom.minimap.verticalHandles,
|
|
1686
1686
|
"onUpdate:end": ml,
|
|
1687
1687
|
"onUpdate:start": fl,
|
|
1688
|
-
onTrapMouse:
|
|
1688
|
+
onTrapMouse: Ka,
|
|
1689
1689
|
onReset: Ot,
|
|
1690
1690
|
onFutureEnd: l[0] || (l[0] = (t) => Pt("end", t)),
|
|
1691
1691
|
onFutureStart: l[1] || (l[1] = (t) => Pt("start", t))
|
|
@@ -1801,7 +1801,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1801
1801
|
ye.value && e.value.userOptions.buttons.table ? (s(), ee(Il(Le.value.component), Me({ key: 7 }, Le.value.props, {
|
|
1802
1802
|
ref_key: "tableUnit",
|
|
1803
1803
|
ref: pe,
|
|
1804
|
-
onClose:
|
|
1804
|
+
onClose: Kt
|
|
1805
1805
|
}), bt({
|
|
1806
1806
|
content: L(() => [
|
|
1807
1807
|
_e(m(Fa), {
|
|
@@ -1811,7 +1811,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1811
1811
|
config: Ee.value.config,
|
|
1812
1812
|
title: e.value.table.useDialog ? "" : Le.value.title,
|
|
1813
1813
|
withCloseButton: !e.value.table.useDialog,
|
|
1814
|
-
onClose:
|
|
1814
|
+
onClose: Kt
|
|
1815
1815
|
}, {
|
|
1816
1816
|
th: L(({ th: t }) => [
|
|
1817
1817
|
te("div", { innerHTML: t }, null, 8, vr)
|