vue-data-ui 3.0.0-next.7 → 3.0.0-next.70
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-Bl8urcli.js → Arrow-fzydFjfE.js} +1 -1
- package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-BwazM8ka.js} +2 -2
- package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BnbvQjs5.js} +1 -1
- package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-DR1Yr4kR.js} +2 -2
- package/dist/{DataTable-mQ6Wd-rR.js → DataTable-CKpA_OA_.js} +2 -2
- package/dist/{Legend-B2hrDh4G.js → Legend-ChXhJNzd.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-CPOpM7Os.js} +3 -3
- package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-CBHvscRY.js} +1 -1
- package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-BCcfYvgR.js} +3 -3
- package/dist/{Shape-C2qH26wh.js → Shape-C1rNfsMY.js} +43 -37
- package/dist/Slicer-D8a4Wv1q.js +602 -0
- package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-BUdf02cs.js} +1 -1
- package/dist/{Title-B7Xb3YuE.js → Title-feqCv0Si.js} +1 -1
- package/dist/{Tooltip-BidRoM5E.js → Tooltip-DQbksria.js} +23 -19
- package/dist/{UserOptions-0tvMM8PF.js → UserOptions-CGnAZpYs.js} +2 -2
- package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-DTPmkDTK.js} +1 -1
- package/dist/{img-D72yZNUg.js → img-_RMhslMZ.js} +1 -1
- package/dist/{index-Cg-RjxqH.js → index-CnY41r21.js} +2103 -1411
- package/dist/{pdf-DgX01_wu.js → pdf-C02XBmhm.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +600 -22
- package/dist/types/vue-data-ui.d.ts +600 -22
- package/dist/useAutoSizeLabelsInsideViewbox-DVYZBwNc.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-DtUATNAU.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-BUzmyQf9.js → usePrinter-CJ1uZx0D.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
- package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-DDBabVWX.js} +105 -100
- package/dist/vue-data-ui.js +23 -22
- package/dist/vue-ui-3d-bar-CtPXePUa.js +1323 -0
- package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-CnLY8CrQ.js} +3 -3
- package/dist/vue-ui-age-pyramid-CvrNLE47.js +834 -0
- package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-NuSwWka4.js} +2 -2
- package/dist/vue-ui-bullet-CpIVgkPB.js +571 -0
- package/dist/vue-ui-candlestick-DGWKUeJp.js +999 -0
- package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DWbQS8F3.js} +29 -29
- package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-K4-oOYff.js} +5 -5
- package/dist/vue-ui-chord-DqmP8yTR.js +1038 -0
- package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-D_ufubH5.js} +24 -24
- package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-B0tP4woK.js} +2 -2
- package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-D_7qyx3P.js} +62 -62
- package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-pUQErY07.js} +2 -2
- package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-Dl__PVfq.js} +320 -308
- package/dist/vue-ui-donut-evolution-BCGGTZZI.js +1075 -0
- package/dist/vue-ui-dumbbell-KzCa3k9g.js +1119 -0
- package/dist/vue-ui-flow-B1AOqk14.js +841 -0
- package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-DCl9v71X.js} +16 -16
- package/dist/{vue-ui-galaxy-Cn6vHbaw.js → vue-ui-galaxy-0rAzDHe5.js} +60 -58
- package/dist/vue-ui-gauge-Cg4qAOEf.js +791 -0
- package/dist/vue-ui-gizmo-CQmMkODw.js +210 -0
- package/dist/vue-ui-heatmap-CgkgUDI0.js +1078 -0
- package/dist/vue-ui-history-plot-CYvkTszV.js +1073 -0
- package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-BDuOZbc2.js} +26 -26
- package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-BZaU_YD-.js} +2 -2
- package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-HYjHgVuN.js} +53 -51
- package/dist/vue-ui-mood-radar-4pYtL93A.js +785 -0
- package/dist/vue-ui-nested-donuts-BVbvVm19.js +1286 -0
- package/dist/vue-ui-onion-DQg97Dwm.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-KQ4FTUda.js +915 -0
- package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-D8OU7TFs.js} +512 -459
- package/dist/vue-ui-quick-chart-BOKDoHdK.js +1761 -0
- package/dist/vue-ui-radar-2hTf-Qrf.js +796 -0
- package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-QriKDSO7.js} +2 -2
- package/dist/vue-ui-relation-circle-DqLiKEHw.js +598 -0
- package/dist/vue-ui-ridgeline-CvFlsavM.js +1153 -0
- package/dist/vue-ui-rings-B2ges9Ud.js +728 -0
- package/dist/vue-ui-scatter-DQJeFlv4.js +1178 -0
- package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-Bghm5obp.js} +3 -3
- package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-C3SkDNoz.js} +26 -26
- package/dist/vue-ui-spark-trend-dd8h3N7H.js +315 -0
- package/dist/vue-ui-sparkbar-BTj8M7fY.js +351 -0
- package/dist/vue-ui-sparkgauge-BBQAo-W1.js +232 -0
- package/dist/vue-ui-sparkhistogram-C4ZEcb8S.js +380 -0
- package/dist/vue-ui-sparkline-Bm3GpqJx.js +489 -0
- package/dist/vue-ui-sparkstackbar-Dde4iayd.js +421 -0
- package/dist/vue-ui-stackbar-DPvfNjwH.js +1370 -0
- package/dist/vue-ui-strip-plot-iZIN9U90.js +915 -0
- package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-C4EoviSd.js} +11 -11
- package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-D-eqO3LU.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-CD7IH49g.js} +14 -14
- package/dist/vue-ui-thermometer-BKEFH2Xt.js +541 -0
- package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-hhKj1gPp.js} +5 -5
- package/dist/vue-ui-tiremarks-CmNwCnVC.js +406 -0
- package/dist/vue-ui-treemap-BL7T8x_B.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-CGn_OX3P.js} +71 -69
- package/dist/vue-ui-waffle-qfT-wDhI.js +910 -0
- package/dist/vue-ui-wheel-B8J8C3AN.js +379 -0
- package/dist/vue-ui-word-cloud-B6oHFfEK.js +765 -0
- package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-BEv_oTrC.js} +11 -9
- package/dist/vue-ui-xy-DPBrciAR.js +3771 -0
- package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-BXT3mXj5.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-BD8Z8VCW.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-C_G5E08Y.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
- package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
- package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
- package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
- package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
- package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
- package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
- package/dist/vue-ui-flow-D_L_xssL.js +0 -765
- package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
- package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
- package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
- package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
- package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
- package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
- package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
- package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
- package/dist/vue-ui-radar-98mXFZe-.js +0 -741
- package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
- package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
- package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
- package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
- package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
- package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
- package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
- package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
- package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
- package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
- package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
- package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
- package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
- package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
- package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
- package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
- package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
- package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
- package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as Gt, c as Wt,
|
|
1
|
+
import { useCssVars as Mt, defineAsyncComponent as le, useSlots as Bt, computed as b, ref as i, toRefs as Rt, watch as nt, shallowRef as ut, onMounted as Te, nextTick as ve, onBeforeUnmount as Et, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as h, normalizeClass as D, createBlock as X, createCommentVNode as y, renderSlot as x, createVNode as oe, createSlots as Se, withCtx as w, normalizeProps as Y, guardReactiveProps as K, createElementVNode as n, toDisplayString as p, Fragment as J, renderList as Q, mergeProps as Dt, withKeys as Xt, createTextVNode as Ut } from "vue";
|
|
2
|
+
import { u as Gt, c as Wt, t as Ht, a as jt, p as U, b as qt, C as Le, d as Yt, h as L, o as Pe, f as ne, e as Ne, k as de, i as G, X as Kt, s as Ae, x as Jt, v as Qt, w as Zt, y as ea, z as ta } from "./index-CnY41r21.js";
|
|
3
3
|
import { t as aa, u as la } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as st } from "./useNestedProp-
|
|
5
|
-
import { u as oa } from "./usePrinter-
|
|
4
|
+
import { u as st } from "./useNestedProp-DtUATNAU.js";
|
|
5
|
+
import { u as oa } from "./usePrinter-CJ1uZx0D.js";
|
|
6
6
|
import { u as na } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as ua } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import sa from "./vue-ui-accordion-
|
|
9
|
-
import rt from "./Legend-
|
|
10
|
-
import ra from "./Title-
|
|
11
|
-
import { _ as it } from "./Shape-
|
|
12
|
-
import ia from "./img-
|
|
13
|
-
import { u as va, B as da } from "./useLoading-
|
|
8
|
+
import sa from "./vue-ui-accordion-CnLY8CrQ.js";
|
|
9
|
+
import rt from "./Legend-ChXhJNzd.js";
|
|
10
|
+
import ra from "./Title-feqCv0Si.js";
|
|
11
|
+
import { _ as it } from "./Shape-C1rNfsMY.js";
|
|
12
|
+
import ia from "./img-_RMhslMZ.js";
|
|
13
|
+
import { u as va, B as da } from "./useLoading-D7YHNtLX.js";
|
|
14
14
|
import { _ as ca } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "width", "height"], ga = ["id"], ba = ["stop-color"], ma = ["stop-color"], ka = { key: 1 }, xa = ["x", "y", "width", "height", "fill", "rx"], _a = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], wa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ta = { class: "vue-ui-horizontal-bar-child-label" }, Sa = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], La = ["x", "y", "font-size", "fill", "font-weight"], Pa = { class: "vue-ui-horizontal-bar-parent-label" }, Na = ["x", "y", "font-size", "fill", "font-weight"], Aa = ["x", "y", "font-size", "fill", "font-weight"], za = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Va = {
|
|
16
16
|
key: 5,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
}, Ia = ["onClick"], Oa = { style: "width:100%;padding-top: 36px;position:relative" },
|
|
18
|
+
}, Ia = ["onClick"], Oa = { style: "width:100%;padding-top: 36px;position:relative" }, Fa = { class: "vue-ui-data-table" }, Ma = { key: 0 }, Ba = { style: { width: "100%" } }, Ra = ["data-cell"], Ea = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Da = ["data-cell"], Xa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ua = ["data-cell"], Ga = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Wa = ["data-cell"], Ha = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ja = ["data-cell"], qa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ya = ["data-cell"], Ka = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ja = ["data-cell"], Qa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Za = {
|
|
19
19
|
__name: "vue-ui-vertical-bar",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -33,17 +33,17 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend"],
|
|
35
35
|
setup(vt, { expose: dt, emit: ct }) {
|
|
36
|
-
|
|
37
|
-
"
|
|
36
|
+
Mt((t) => ({
|
|
37
|
+
"7f2de844": t.tdo
|
|
38
38
|
}));
|
|
39
|
-
const ht =
|
|
39
|
+
const ht = le(() => import("./BaseIcon-BnbvQjs5.js")), pt = le(() => import("./PackageVersion-CBHvscRY.js")), ft = le(() => import("./PenAndPaper-BCcfYvgR.js")), yt = le(() => import("./Tooltip-DQbksria.js")), gt = le(() => import("./UserOptions-CGnAZpYs.js")), { vue_ui_vertical_bar: bt } = Gt(), mt = Bt(), g = vt, ce = b({
|
|
40
40
|
get() {
|
|
41
41
|
return !!g.dataset && g.dataset.length;
|
|
42
42
|
},
|
|
43
43
|
set(t) {
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
46
|
-
}), S = i(Wt()), kt = i(null), he = i(!1), pe = i(""), Z = i(0), xt = i(null), ze = i(0), z = i(null), Ve = i(null), fe = i(null), Ie = i(null), Oe = i(null),
|
|
46
|
+
}), S = i(Wt()), kt = i(null), he = i(!1), pe = i(""), Z = i(0), xt = i(null), ze = i(0), z = i(null), Ve = i(null), fe = i(null), Ie = i(null), Oe = i(null), Fe = i(0), ye = i(0), ee = i(null), _t = ct, e = i(xe()), wt = b(() => [
|
|
47
47
|
{ name: "", value: 6, color: "#d9d9d9" },
|
|
48
48
|
{ name: "", value: 5, color: "#d9d9d9" },
|
|
49
49
|
{ name: "", value: 4, color: "#d9d9d9" },
|
|
@@ -68,7 +68,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
68
68
|
table: { show: !1 },
|
|
69
69
|
style: {
|
|
70
70
|
chart: {
|
|
71
|
-
backgroundColor: "#
|
|
71
|
+
backgroundColor: "#99999930",
|
|
72
72
|
layout: {
|
|
73
73
|
bars: {
|
|
74
74
|
offsetX: 110,
|
|
@@ -90,7 +90,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
90
90
|
},
|
|
91
91
|
legend: {
|
|
92
92
|
show: !0,
|
|
93
|
-
backgroundColor: "
|
|
93
|
+
backgroundColor: "transparent",
|
|
94
94
|
color: "transparent",
|
|
95
95
|
prefix: "",
|
|
96
96
|
suffix: "",
|
|
@@ -106,7 +106,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
})
|
|
109
|
-
}), { userOptionsVisible: ke, setUserOptionsVisibility:
|
|
109
|
+
}), { userOptionsVisible: ke, setUserOptionsVisibility: Me, keepUserOptionState: Be } = na({ config: e.value }), { svgRef: Re } = ua({ config: e.value.style.chart.title });
|
|
110
110
|
function xe() {
|
|
111
111
|
const t = st({
|
|
112
112
|
userConfig: g.config,
|
|
@@ -122,7 +122,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
122
122
|
} : l = t, g.config && Le(g.config, "events.datapointEnter") ? l.events.datapointEnter = g.config.events.datapointEnter : l.events.datapointEnter = null, g.config && Le(g.config, "events.datapointLeave") ? l.events.datapointLeave = g.config.events.datapointLeave : l.events.datapointLeave = null, g.config && Le(g.config, "events.datapointClick") ? l.events.datapointClick = g.config.events.datapointClick : l.events.datapointClick = null, l;
|
|
123
123
|
}
|
|
124
124
|
nt(() => g.config, (t) => {
|
|
125
|
-
ge.value || (e.value = xe()), ke.value = !e.value.userOptions.showOnChartHover, qe(),
|
|
125
|
+
ge.value || (e.value = xe()), ke.value = !e.value.userOptions.showOnChartHover, qe(), Fe.value += 1, ye.value += 1, c.value = e.value.style.chart.layout.bars.height, m.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
126
126
|
}, { deep: !0 }), nt(() => g.dataset, (t) => {
|
|
127
127
|
Array.isArray(t) && t.length > 0 && (me.value = !1), H();
|
|
128
128
|
}, { deep: !0 });
|
|
@@ -138,9 +138,9 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
138
138
|
await ve(), qe(), O();
|
|
139
139
|
});
|
|
140
140
|
async function O() {
|
|
141
|
-
if (ue.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize) return;
|
|
142
|
-
const t =
|
|
143
|
-
if (t.length) {
|
|
141
|
+
if (ue.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize || !ee.value) return;
|
|
142
|
+
const t = ee.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = ee.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
|
|
143
|
+
if (t && t.length) {
|
|
144
144
|
const f = Math.max(...Array.from(t).flatMap((d) => {
|
|
145
145
|
const k = d.querySelectorAll("text");
|
|
146
146
|
return k.length ? Array.from(k).map((q) => q.getBBox().width) : 0;
|
|
@@ -156,7 +156,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
await ve();
|
|
159
|
-
const a =
|
|
159
|
+
const a = ee.value.getBBox(), o = e.value.style.chart.layout.bars.dataLabels.offsetX;
|
|
160
160
|
ue.value = [
|
|
161
161
|
a.x + -o,
|
|
162
162
|
0,
|
|
@@ -180,7 +180,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
180
180
|
});
|
|
181
181
|
const se = b(() => !!e.value.debug), _e = i(0);
|
|
182
182
|
function qe() {
|
|
183
|
-
if (Pe(g.dataset) && (
|
|
183
|
+
if (Pe(g.dataset) && (ne({
|
|
184
184
|
componentName: "VueUiVerticalBar",
|
|
185
185
|
type: "dataset",
|
|
186
186
|
debug: se.value
|
|
@@ -217,19 +217,19 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
217
217
|
showTable: e.value.table.show,
|
|
218
218
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
219
219
|
showTooltip: e.value.style.chart.tooltip.show
|
|
220
|
-
}), Ye = b(() => $.value.sortDesc),
|
|
221
|
-
!t.value && !t.children &&
|
|
220
|
+
}), Ye = b(() => $.value.sortDesc), F = b(() => (be.value.forEach((t, l) => {
|
|
221
|
+
!t.value && !t.children && ne({
|
|
222
222
|
componentName: "VueUiVerticalBar",
|
|
223
223
|
type: "datasetAttributeEmpty",
|
|
224
224
|
property: `value (index ${l})`,
|
|
225
225
|
debug: se.value
|
|
226
|
-
}), t.children && (Pe(t.children) ?
|
|
226
|
+
}), t.children && (Pe(t.children) ? ne({
|
|
227
227
|
componentName: "VueUiVerticalBar",
|
|
228
228
|
type: "datasetAttributeEmpty",
|
|
229
229
|
property: `children (index ${l})`,
|
|
230
230
|
debug: se.value
|
|
231
231
|
}) : t.children.forEach((a, o) => {
|
|
232
|
-
[null, void 0].includes(a.name) &&
|
|
232
|
+
[null, void 0].includes(a.name) && ne({
|
|
233
233
|
componentName: "VueUiVerticalBar",
|
|
234
234
|
type: "datasetSerieAttribute",
|
|
235
235
|
property: "name",
|
|
@@ -250,7 +250,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
250
250
|
sign: _,
|
|
251
251
|
hasChildren: o,
|
|
252
252
|
isChild: !1,
|
|
253
|
-
segregate: () =>
|
|
253
|
+
segregate: () => te(a),
|
|
254
254
|
isSegregated: N.value.includes(a),
|
|
255
255
|
color: Ne(t.color) || Ge.value[l] || U[l] || U[l % U.length],
|
|
256
256
|
children: !t.children || !t.children.length ? [] : t.children.toSorted(re.value ? () => 0 : (d, k) => Ye.value ? k.value - d.value : d.value - k.value).map((d, k) => ({
|
|
@@ -300,16 +300,16 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
300
300
|
Z.value = B.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await O();
|
|
301
301
|
}
|
|
302
302
|
const N = i([]);
|
|
303
|
-
async function
|
|
303
|
+
async function te(t) {
|
|
304
304
|
if (N.value.includes(t))
|
|
305
305
|
N.value = N.value.filter((l) => l !== t);
|
|
306
306
|
else {
|
|
307
|
-
if (N.value.length ===
|
|
307
|
+
if (N.value.length === F.value.length - 1) return;
|
|
308
308
|
N.value.push(t);
|
|
309
309
|
}
|
|
310
310
|
H(), await ve(), e.value.autoSize && O(), _t("selectLegend", B.value);
|
|
311
311
|
}
|
|
312
|
-
const B = b(() =>
|
|
312
|
+
const B = b(() => F.value.filter((t) => !N.value.includes(t.id))), V = b(() => B.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
|
|
313
313
|
function Qe(t, l = !1, a = 0) {
|
|
314
314
|
return l ? G({
|
|
315
315
|
v: L(Math.abs(t) / V.value * 100),
|
|
@@ -325,7 +325,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
325
325
|
function Pt(t) {
|
|
326
326
|
return T(t) + r.value.left;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function ae(t, l) {
|
|
329
329
|
const a = B.value.find((_) => _.id === t.parentId), o = r.value.top + (m.value + c.value) * l, f = a.children.length * (m.value + c.value);
|
|
330
330
|
return {
|
|
331
331
|
y: o + f / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
@@ -349,19 +349,19 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
349
349
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), $e.value = {
|
|
350
350
|
datapoint: t,
|
|
351
351
|
seriesIndex: l,
|
|
352
|
-
series:
|
|
352
|
+
series: F.value,
|
|
353
353
|
config: e.value
|
|
354
354
|
}, he.value = !0, we.value = t.id;
|
|
355
355
|
let a = "";
|
|
356
356
|
const o = t.isChild ? t.parentName : t.name, f = t.isChild ? t.name : "", _ = e.value.style.chart.tooltip.customFormat;
|
|
357
357
|
ea(_) && ta(() => _({
|
|
358
358
|
datapoint: t,
|
|
359
|
-
series:
|
|
359
|
+
series: F.value,
|
|
360
360
|
config: e.value,
|
|
361
361
|
seriesIndex: l
|
|
362
362
|
})) ? pe.value = _({
|
|
363
363
|
datapoint: t,
|
|
364
|
-
series:
|
|
364
|
+
series: F.value,
|
|
365
365
|
config: e.value,
|
|
366
366
|
seriesIndex: l
|
|
367
367
|
}) : (a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
@@ -465,20 +465,20 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
465
465
|
none: 0,
|
|
466
466
|
asc: 1,
|
|
467
467
|
desc: 2
|
|
468
|
-
}),
|
|
468
|
+
}), M = i(0), re = i(!1);
|
|
469
469
|
Te(() => {
|
|
470
|
-
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) ||
|
|
470
|
+
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || ne({
|
|
471
471
|
componentName: "VueUiVerticalBar",
|
|
472
472
|
type: "attributeWrongValue",
|
|
473
473
|
property: "style.chart.layout.bars.sort",
|
|
474
474
|
key: e.value.style.chart.layout.bars.sort
|
|
475
|
-
}),
|
|
475
|
+
}), M.value = It.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = M.value === 2, re.value = M.value === 0;
|
|
476
476
|
});
|
|
477
477
|
function Ot() {
|
|
478
|
-
|
|
478
|
+
M.value += 1, M.value > 2 && (M.value = 0);
|
|
479
479
|
}
|
|
480
480
|
function lt() {
|
|
481
|
-
Ot(), $.value.sortDesc =
|
|
481
|
+
Ot(), $.value.sortDesc = M.value === 2, re.value = M.value === 0, H();
|
|
482
482
|
}
|
|
483
483
|
function ot() {
|
|
484
484
|
$.value.showTooltip = !$.value.showTooltip;
|
|
@@ -487,7 +487,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
487
487
|
function Ce() {
|
|
488
488
|
ie.value = !ie.value;
|
|
489
489
|
}
|
|
490
|
-
async function
|
|
490
|
+
async function Ft({ scale: t = 2 } = {}) {
|
|
491
491
|
if (!z.value) return;
|
|
492
492
|
const { width: l, height: a } = z.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: _ } = await ia({ domElement: z.value, base64: !0, img: !0, scale: t });
|
|
493
493
|
return {
|
|
@@ -503,7 +503,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
503
503
|
autoSize: O,
|
|
504
504
|
// v3
|
|
505
505
|
getData: Nt,
|
|
506
|
-
getImage:
|
|
506
|
+
getImage: Ft,
|
|
507
507
|
recalculateHeight: H,
|
|
508
508
|
generatePdf: Xe,
|
|
509
509
|
generateCsv: et,
|
|
@@ -518,9 +518,9 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
518
518
|
ref_key: "verticalBarChart",
|
|
519
519
|
ref: z,
|
|
520
520
|
id: `vue-ui-vertical-bar_${S.value}`,
|
|
521
|
-
style: h(`
|
|
522
|
-
onMouseenter: l[4] || (l[4] = () => s(
|
|
523
|
-
onMouseleave: l[5] || (l[5] = () => s(
|
|
521
|
+
style: h(`padding-top:${e.value.responsive && e.value.autoSize ? `${_e.value / 2}px` : "0"}; font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? e.value.autoSize ? `height:calc(100% - ${_e.value}px` : "height: 100%" : ""}`),
|
|
522
|
+
onMouseenter: l[4] || (l[4] = () => s(Me)(!0)),
|
|
523
|
+
onMouseleave: l[5] || (l[5] = () => s(Me)(!1))
|
|
524
524
|
}, [
|
|
525
525
|
e.value.userOptions.buttons.annotator ? (u(), X(s(ft), {
|
|
526
526
|
key: 0,
|
|
@@ -544,7 +544,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
544
544
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
545
545
|
}, [
|
|
546
546
|
(u(), X(ra, {
|
|
547
|
-
key: `title_${
|
|
547
|
+
key: `title_${Fe.value}`,
|
|
548
548
|
config: {
|
|
549
549
|
title: {
|
|
550
550
|
cy: "vertical-bar-div-title",
|
|
@@ -672,13 +672,13 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
672
672
|
}, [
|
|
673
673
|
(u(), X(rt, {
|
|
674
674
|
key: `legend_top_${ye.value}`,
|
|
675
|
-
legendSet:
|
|
675
|
+
legendSet: F.value,
|
|
676
676
|
config: Ke.value,
|
|
677
|
-
onClickMarker: l[0] || (l[0] = ({ legend: a }) =>
|
|
677
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => te(a.id))
|
|
678
678
|
}, Se({
|
|
679
679
|
item: w(({ legend: a, index: o }) => [
|
|
680
680
|
n("div", {
|
|
681
|
-
onClick: (f) =>
|
|
681
|
+
onClick: (f) => te(a.id),
|
|
682
682
|
style: h(`opacity:${N.value.includes(a.id) ? 0.5 : 1}`)
|
|
683
683
|
}, p(a.name) + ": " + p(s(de)(
|
|
684
684
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
@@ -697,7 +697,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
697
697
|
t.$slots.pattern ? {
|
|
698
698
|
name: "legend-pattern",
|
|
699
699
|
fn: w(({ legend: a, index: o }) => [
|
|
700
|
-
|
|
700
|
+
oe(it, {
|
|
701
701
|
shape: a.shape,
|
|
702
702
|
radius: 30,
|
|
703
703
|
stroke: "none",
|
|
@@ -719,10 +719,10 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
719
719
|
}, [
|
|
720
720
|
n("g", {
|
|
721
721
|
ref_key: "G",
|
|
722
|
-
ref:
|
|
722
|
+
ref: ee,
|
|
723
723
|
class: "vue-data-ui-g"
|
|
724
724
|
}, [
|
|
725
|
-
|
|
725
|
+
oe(s(pt)),
|
|
726
726
|
t.$slots["chart-background"] ? (u(), v("foreignObject", {
|
|
727
727
|
key: 0,
|
|
728
728
|
x: P.value.x,
|
|
@@ -835,21 +835,21 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
835
835
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
836
836
|
key: 0,
|
|
837
837
|
x: e.value.autoSize ? void 0 : P.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
838
|
-
y:
|
|
838
|
+
y: ae(a, o).y,
|
|
839
839
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
840
840
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
841
841
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
842
842
|
"text-anchor": "start"
|
|
843
|
-
}, p(
|
|
843
|
+
}, p(ae(a, o).name), 9, Na)) : y("", !0),
|
|
844
844
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
845
845
|
key: 1,
|
|
846
846
|
x: e.value.autoSize ? void 0 : P.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
847
|
-
y:
|
|
847
|
+
y: ae(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
|
|
848
848
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
849
849
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
850
850
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
851
851
|
"text-anchor": "start"
|
|
852
|
-
}, p(Ze(
|
|
852
|
+
}, p(Ze(ae(a, o).value), ae(a, o), o, a.parentSign || a.sign), 9, Aa)) : y("", !0)
|
|
853
853
|
]),
|
|
854
854
|
n("rect", {
|
|
855
855
|
x: P.value.x,
|
|
@@ -875,13 +875,13 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
875
875
|
}, [
|
|
876
876
|
(u(), X(rt, {
|
|
877
877
|
key: `legend_bottom_${ye.value}`,
|
|
878
|
-
legendSet:
|
|
878
|
+
legendSet: F.value,
|
|
879
879
|
config: Ke.value,
|
|
880
|
-
onClickMarker: l[1] || (l[1] = ({ legend: a }) =>
|
|
880
|
+
onClickMarker: l[1] || (l[1] = ({ legend: a }) => te(a.id))
|
|
881
881
|
}, Se({
|
|
882
882
|
item: w(({ legend: a, index: o }) => [
|
|
883
883
|
n("div", {
|
|
884
|
-
onClick: (f) =>
|
|
884
|
+
onClick: (f) => te(a.id),
|
|
885
885
|
style: h(`opacity:${N.value.includes(a.id) ? 0.5 : 1}`)
|
|
886
886
|
}, p(a.name) + ": " + p(s(de)(
|
|
887
887
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
@@ -900,7 +900,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
900
900
|
t.$slots.pattern ? {
|
|
901
901
|
name: "legend-pattern",
|
|
902
902
|
fn: w(({ legend: a, index: o }) => [
|
|
903
|
-
|
|
903
|
+
oe(it, {
|
|
904
904
|
shape: a.shape,
|
|
905
905
|
radius: 30,
|
|
906
906
|
stroke: "none",
|
|
@@ -912,7 +912,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
912
912
|
} : void 0
|
|
913
913
|
]), 1032, ["legendSet", "config"]))
|
|
914
914
|
], 512)) : y("", !0),
|
|
915
|
-
x(t.$slots, "legend", { legend:
|
|
915
|
+
x(t.$slots, "legend", { legend: F.value }, void 0, !0),
|
|
916
916
|
t.$slots.source ? (u(), v("div", {
|
|
917
917
|
key: 7,
|
|
918
918
|
ref_key: "source",
|
|
@@ -921,7 +921,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
921
921
|
}, [
|
|
922
922
|
x(t.$slots, "source", {}, void 0, !0)
|
|
923
923
|
], 512)) : y("", !0),
|
|
924
|
-
|
|
924
|
+
oe(s(yt), {
|
|
925
925
|
show: $.value.showTooltip && he.value && N.value.length < g.dataset.length,
|
|
926
926
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
927
927
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -935,7 +935,9 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
935
935
|
parent: z.value,
|
|
936
936
|
content: pe.value,
|
|
937
937
|
isFullscreen: j.value,
|
|
938
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
938
|
+
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
939
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
940
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
939
941
|
}, {
|
|
940
942
|
"tooltip-before": w(() => [
|
|
941
943
|
x(t.$slots, "tooltip-before", Y(K({ ...$e.value })), void 0, !0)
|
|
@@ -944,7 +946,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
944
946
|
x(t.$slots, "tooltip-after", Y(K({ ...$e.value })), void 0, !0)
|
|
945
947
|
]),
|
|
946
948
|
_: 3
|
|
947
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
949
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
948
950
|
ce.value ? (u(), X(sa, {
|
|
949
951
|
key: 8,
|
|
950
952
|
hideDetails: "",
|
|
@@ -975,7 +977,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
975
977
|
onClick: l[2] || (l[2] = (a) => $.value.showTable = !1),
|
|
976
978
|
onKeypress: l[3] || (l[3] = Xt((a) => $.value.showTable = !1, ["enter"]))
|
|
977
979
|
}, [
|
|
978
|
-
|
|
980
|
+
oe(s(ht), {
|
|
979
981
|
name: "close",
|
|
980
982
|
stroke: e.value.table.th.color,
|
|
981
983
|
"stroke-width": 2
|
|
@@ -985,13 +987,13 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
985
987
|
style: { width: "100%", "container-type": "inline-size" },
|
|
986
988
|
class: D({ "vue-ui-responsive": He.value })
|
|
987
989
|
}, [
|
|
988
|
-
n("table",
|
|
990
|
+
n("table", Fa, [
|
|
989
991
|
n("caption", {
|
|
990
992
|
style: h({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
991
993
|
class: "vue-ui-data-table__caption"
|
|
992
994
|
}, [
|
|
993
995
|
Ut(p(e.value.style.chart.title.text) + " ", 1),
|
|
994
|
-
e.value.style.chart.title.subtitle.text ? (u(), v("span",
|
|
996
|
+
e.value.style.chart.title.subtitle.text ? (u(), v("span", Ma, p(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
|
|
995
997
|
], 4),
|
|
996
998
|
n("thead", null, [
|
|
997
999
|
n("tr", {
|
|
@@ -1100,7 +1102,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
1100
1102
|
s(ge) ? (u(), X(da, { key: 9 })) : y("", !0)
|
|
1101
1103
|
], 46, ha));
|
|
1102
1104
|
}
|
|
1103
|
-
}, pl = /* @__PURE__ */ ca(Za, [["__scopeId", "data-v-
|
|
1105
|
+
}, pl = /* @__PURE__ */ ca(Za, [["__scopeId", "data-v-f1477972"]]);
|
|
1104
1106
|
export {
|
|
1105
1107
|
pl as default
|
|
1106
1108
|
};
|