vue-data-ui 3.0.0-next.8 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -30
- package/dist/{Arrow-BRtNjitS.js → Arrow-r2f8Bpd-.js} +1 -1
- package/dist/{BaseDraggableDialog-CO9ok1PR.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
- package/dist/{BaseIcon-BuOIF6t5.js → BaseIcon-CXtL10fo.js} +1 -1
- package/dist/{ColorPicker-FH6oc0mS.js → ColorPicker-H91bBsqM.js} +2 -2
- package/dist/{DataTable-D36ZRtpU.js → DataTable-BSSXpM7w.js} +2 -2
- package/dist/{Legend-DInM-hku.js → Legend-BUk0WvWJ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B60MxEaz.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
- package/dist/{PackageVersion-CGQlqnmq.js → PackageVersion-CJ6Vd7V5.js} +3 -3
- package/dist/{PenAndPaper-B5slIHlh.js → PenAndPaper-D3zudcNI.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-BGr3dQKt.js → Shape-BRzOzubn.js} +43 -37
- package/dist/Slicer-MID8pgT3.js +602 -0
- package/dist/{SparkTooltip-BWA23VgJ.js → SparkTooltip-DATI1fGZ.js} +7 -7
- package/dist/{Title-BSlAPr_H.js → Title-BGu6gEd2.js} +1 -1
- package/dist/{Tooltip-lPcsweXz.js → Tooltip-Bh2zYSoM.js} +23 -19
- package/dist/{UserOptions-Dn5TCQxg.js → UserOptions-Ck8fz9f4.js} +2 -2
- package/dist/{dom-to-png-Br-eVhJZ.js → dom-to-png-DhIh24Ti.js} +1 -1
- package/dist/{img-CgMUOQnb.js → img-DrR839Ot.js} +1 -1
- package/dist/{index-Cfm5-hMQ.js → index-BtNwOUja.js} +2885 -2010
- package/dist/{pdf-BMVHBLq5.js → pdf-DoShrdT5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-f2H3m6Yj.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-B1Hgs47c.js → usePrinter-DUNjpQNe.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-CD674-M3.js → vue-data-ui-D7QVxNhO.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
- package/dist/{vue-ui-accordion-CEDGlyKI.js → vue-ui-accordion-BKUrAowe.js} +3 -3
- package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
- package/dist/{vue-ui-annotator-CosgP-Fl.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
- package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
- package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
- package/dist/{vue-ui-carousel-table-BG1ItsAb.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
- package/dist/{vue-ui-chestnut-6uKesZW9.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
- package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
- package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
- package/dist/{vue-ui-cursor-CkVnNEGn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
- package/dist/{vue-ui-dashboard-D07ivGS7.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
- package/dist/{vue-ui-digits-Doidl3Lz.js → vue-ui-digits-zKn3uhGN.js} +2 -2
- package/dist/{vue-ui-donut-CWvzqAAa.js → vue-ui-donut-BtnIwS_E.js} +433 -424
- package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
- package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
- package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
- package/dist/{vue-ui-funnel-D1pFzjJa.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
- package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
- package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
- package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
- package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
- package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
- package/dist/{vue-ui-kpi-DTeZbrJk.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
- package/dist/{vue-ui-mini-loader-itpDcfZU.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
- package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
- package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
- package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
- package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
- package/dist/{vue-ui-quadrant-0milmSNS.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
- package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
- package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
- package/dist/{vue-ui-rating-C3QUdrMw.js → vue-ui-rating-Bh35aujf.js} +2 -2
- package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
- package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
- package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
- package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
- package/dist/{vue-ui-skeleton-P-1SRvsT.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
- package/dist/{vue-ui-smiley-Cd1bhDuU.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
- package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
- package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
- package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
- package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
- package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
- package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
- package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
- package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
- package/dist/{vue-ui-table-B1tjuVi0.js → vue-ui-table-BXOLZXuz.js} +17 -17
- package/dist/{vue-ui-table-heatmap-BI8eIQG7.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CqBD7xhZ.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
- package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
- package/dist/{vue-ui-timer-sgO_Z6ja.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
- package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
- package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BPay31_q.js → vue-ui-vertical-bar-C-i2dRnU.js} +107 -105
- package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
- package/dist/vue-ui-wheel-waZf462K.js +379 -0
- package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
- package/dist/{vue-ui-world-DWskeHfE.js → vue-ui-world-Cx4uuwTY.js} +364 -327
- package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
- package/dist/{vue-ui-xy-canvas-Dkmsguo1.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-O07lQwRC.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-Hh7nGEjp.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-DWtJoryQ.js +0 -1227
- package/dist/vue-ui-age-pyramid-DbrA1G0r.js +0 -746
- package/dist/vue-ui-bullet-9IB3mGon.js +0 -513
- package/dist/vue-ui-candlestick-CWqPF_zW.js +0 -873
- package/dist/vue-ui-chord-Crd3l1b6.js +0 -949
- package/dist/vue-ui-circle-pack-CAm2gxBi.js +0 -673
- package/dist/vue-ui-donut-evolution-Djp_eBqw.js +0 -903
- package/dist/vue-ui-dumbbell-B7GySnYf.js +0 -753
- package/dist/vue-ui-flow-XDpZAYWI.js +0 -765
- package/dist/vue-ui-galaxy-DBQy21se.js +0 -617
- package/dist/vue-ui-gauge-FBZaUrBD.js +0 -738
- package/dist/vue-ui-gizmo-CDbPxUzE.js +0 -192
- package/dist/vue-ui-heatmap-DsDWxYOS.js +0 -877
- package/dist/vue-ui-history-plot-CzO1Z1FH.js +0 -924
- package/dist/vue-ui-molecule-Ddd3FgID.js +0 -597
- package/dist/vue-ui-mood-radar-24XAq8mg.js +0 -670
- package/dist/vue-ui-nested-donuts-DjWASp62.js +0 -1212
- package/dist/vue-ui-onion-B9thdF_c.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-DT-GhOaA.js +0 -807
- package/dist/vue-ui-quick-chart-D0DukVN6.js +0 -1612
- package/dist/vue-ui-radar-DY8y6oRc.js +0 -741
- package/dist/vue-ui-relation-circle-8Gd7_fxt.js +0 -542
- package/dist/vue-ui-ridgeline-iPtG1McW.js +0 -969
- package/dist/vue-ui-rings-BXPo4MMo.js +0 -685
- package/dist/vue-ui-scatter-26d0eebx.js +0 -1045
- package/dist/vue-ui-spark-trend-Dt3ctzpl.js +0 -291
- package/dist/vue-ui-sparkbar-RrxErqrU.js +0 -301
- package/dist/vue-ui-sparkgauge-CyNi1b0O.js +0 -201
- package/dist/vue-ui-sparkhistogram-DPpZCPuE.js +0 -313
- package/dist/vue-ui-sparkline-BMjQ_uYx.js +0 -459
- package/dist/vue-ui-sparkstackbar-CjO8pfE-.js +0 -381
- package/dist/vue-ui-stackbar-wgyvMlE6.js +0 -1207
- package/dist/vue-ui-strip-plot-BF1o8lvY.js +0 -761
- package/dist/vue-ui-thermometer-CtuxuYVt.js +0 -495
- package/dist/vue-ui-tiremarks-DOwj4ZE-.js +0 -358
- package/dist/vue-ui-treemap-C4LtyFug.js +0 -965
- package/dist/vue-ui-waffle-D8mzGTeo.js +0 -863
- package/dist/vue-ui-wheel-C6uAotal.js +0 -352
- package/dist/vue-ui-word-cloud-Bge2211V.js +0 -659
- package/dist/vue-ui-xy-UzQacbnA.js +0 -2982
|
@@ -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 K, guardReactiveProps as J, createElementVNode as n, toDisplayString as p, Fragment as Q, renderList as Z, 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-BtNwOUja.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-f2H3m6Yj.js";
|
|
5
|
+
import { u as oa } from "./usePrinter-DUNjpQNe.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-BKUrAowe.js";
|
|
9
|
+
import rt from "./Legend-BUk0WvWJ.js";
|
|
10
|
+
import ra from "./Title-BGu6gEd2.js";
|
|
11
|
+
import { _ as it } from "./Shape-BRzOzubn.js";
|
|
12
|
+
import ia from "./img-DrR839Ot.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
|
+
dd2a8d00: t.tdo
|
|
38
38
|
}));
|
|
39
|
-
const ht =
|
|
39
|
+
const ht = le(() => import("./BaseIcon-CXtL10fo.js")), pt = le(() => import("./PackageVersion-CJ6Vd7V5.js")), ft = le(() => import("./PenAndPaper-D3zudcNI.js")), yt = le(() => import("./Tooltip-Bh2zYSoM.js")), gt = le(() => import("./UserOptions-Ck8fz9f4.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(""),
|
|
46
|
+
}), S = i(Wt()), kt = i(null), he = i(!1), pe = i(""), ee = 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), W = 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" },
|
|
@@ -56,7 +56,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
56
56
|
prepareConfig: xe,
|
|
57
57
|
callback: () => {
|
|
58
58
|
Promise.resolve().then(async () => {
|
|
59
|
-
|
|
59
|
+
j(), await O();
|
|
60
60
|
});
|
|
61
61
|
},
|
|
62
62
|
skeletonDataset: wt.value,
|
|
@@ -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,15 +122,15 @@ 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
|
-
Array.isArray(t) && t.length > 0 && (me.value = !1),
|
|
127
|
+
Array.isArray(t) && t.length > 0 && (me.value = !1), j();
|
|
128
128
|
}, { deep: !0 });
|
|
129
129
|
const { isPrinting: Ee, isImaging: De, generatePdf: Xe, generateImage: Ue } = oa({
|
|
130
130
|
elementId: `vue-ui-vertical-bar_${S.value}`,
|
|
131
131
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
132
132
|
options: e.value.userOptions.print
|
|
133
|
-
}), $t = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = b(() => Yt(e.value.customPalette)), We = i(null), He = i(!1), Ct = b(() => e.value.table.responsiveBreakpoint), I = ut(null),
|
|
133
|
+
}), $t = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = b(() => Yt(e.value.customPalette)), We = i(null), He = i(!1), Ct = b(() => e.value.table.responsiveBreakpoint), I = ut(null), H = ut(null), ue = i("0 0 10 10"), P = b(() => {
|
|
134
134
|
const [t, l, a, o] = ue.value.split(" ").map(Number);
|
|
135
135
|
return { x: t, y: l, width: a, height: o };
|
|
136
136
|
});
|
|
@@ -138,25 +138,25 @@ 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 || !W.value) return;
|
|
142
|
+
const t = W.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = W.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
|
-
return k.length ? Array.from(k).map((
|
|
146
|
+
return k.length ? Array.from(k).map((Y) => Y.getBBox().width) : 0;
|
|
147
147
|
})), _ = Math.max(...Array.from(l).flatMap((d) => {
|
|
148
148
|
const k = d.querySelectorAll("text");
|
|
149
|
-
return k.length ? Array.from(k).map((
|
|
149
|
+
return k.length ? Array.from(k).map((Y) => Y.getBBox().width) : 0;
|
|
150
150
|
}));
|
|
151
151
|
Array.from(t).forEach((d) => {
|
|
152
152
|
const k = d.querySelectorAll("text");
|
|
153
|
-
Array.from(k).forEach(async (
|
|
154
|
-
|
|
153
|
+
Array.from(k).forEach(async (Y) => {
|
|
154
|
+
Y.setAttribute("x", 0), Y.setAttribute("x", L(-f - _));
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
await ve();
|
|
159
|
-
const a =
|
|
159
|
+
const a = W.value ? W.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
|
|
160
160
|
ue.value = [
|
|
161
161
|
a.x + -o,
|
|
162
162
|
0,
|
|
@@ -171,7 +171,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
171
171
|
const { width: a, height: o } = l.contentRect;
|
|
172
172
|
if (a > 0 && o > 0) {
|
|
173
173
|
Promise.resolve().then(async () => {
|
|
174
|
-
|
|
174
|
+
j(), await O();
|
|
175
175
|
});
|
|
176
176
|
break;
|
|
177
177
|
}
|
|
@@ -180,11 +180,11 @@ 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
|
|
187
|
-
}), ce.value = !1, me.value = !0),
|
|
187
|
+
}), ce.value = !1, me.value = !0), ee.value = be.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Tt(), Pe(g.dataset) || (me.value = e.value.loading), e.value.responsive) {
|
|
188
188
|
const t = aa(() => {
|
|
189
189
|
const { width: l, height: a } = la({
|
|
190
190
|
chart: z.value,
|
|
@@ -195,15 +195,15 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
195
195
|
});
|
|
196
196
|
_e.value = a / 3, requestAnimationFrame(async () => {
|
|
197
197
|
Je.value = l;
|
|
198
|
-
const o = m.value * (
|
|
199
|
-
c.value = (a - o) /
|
|
198
|
+
const o = m.value * (ee.value - 1);
|
|
199
|
+
c.value = (a - o) / ee.value, await ve(), O();
|
|
200
200
|
});
|
|
201
201
|
});
|
|
202
|
-
I.value && (
|
|
202
|
+
I.value && (H.value && I.value.unobserve(H.value), I.value.disconnect()), I.value = new ResizeObserver(t), H.value = z.value.parentNode, I.value.observe(H.value), e.value.autoSize && O();
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
Et(() => {
|
|
206
|
-
I.value && (
|
|
206
|
+
I.value && (H.value && I.value.unobserve(H.value), I.value.disconnect());
|
|
207
207
|
});
|
|
208
208
|
function Tt() {
|
|
209
209
|
if (ge.value) return;
|
|
@@ -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) => ({
|
|
@@ -279,7 +279,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
279
279
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
280
280
|
paddingBottom: 12,
|
|
281
281
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
282
|
-
})), c = i(e.value.style.chart.layout.bars.height), m = i(e.value.style.chart.layout.bars.gap), St = b(() => (c.value + m.value) *
|
|
282
|
+
})), c = i(e.value.style.chart.layout.bars.height), m = i(e.value.style.chart.layout.bars.gap), St = b(() => (c.value + m.value) * ee.value), Je = i(512), C = b(() => ({
|
|
283
283
|
width: Je.value,
|
|
284
284
|
height: St.value,
|
|
285
285
|
padding: {
|
|
@@ -296,20 +296,20 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
296
296
|
bottom: C.value.padding.top + C.value.height,
|
|
297
297
|
width: C.value.width - (C.value.padding.left + C.value.padding.right)
|
|
298
298
|
}));
|
|
299
|
-
async function
|
|
300
|
-
|
|
299
|
+
async function j() {
|
|
300
|
+
ee.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
|
+
j(), 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;">
|
|
@@ -454,9 +454,9 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
454
454
|
]), f = l.concat([a]).concat(o), _ = Qt(f);
|
|
455
455
|
t ? t(_) : Zt({ csvContent: _, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
456
456
|
}
|
|
457
|
-
const
|
|
457
|
+
const q = i(!1);
|
|
458
458
|
function tt(t) {
|
|
459
|
-
|
|
459
|
+
q.value = t, ze.value += 1;
|
|
460
460
|
}
|
|
461
461
|
function at() {
|
|
462
462
|
$.value.showTable = !$.value.showTable;
|
|
@@ -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, j();
|
|
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,8 +503,8 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
503
503
|
autoSize: O,
|
|
504
504
|
// v3
|
|
505
505
|
getData: Nt,
|
|
506
|
-
getImage:
|
|
507
|
-
recalculateHeight:
|
|
506
|
+
getImage: Ft,
|
|
507
|
+
recalculateHeight: j,
|
|
508
508
|
generatePdf: Xe,
|
|
509
509
|
generateCsv: et,
|
|
510
510
|
generateImage: Ue,
|
|
@@ -514,13 +514,13 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
514
514
|
toggleAnnotator: Ce,
|
|
515
515
|
toggleFullscreen: tt
|
|
516
516
|
}), (t, l) => (u(), v("div", {
|
|
517
|
-
class: D(`vue-ui-vertical-bar ${
|
|
517
|
+
class: D(`vue-ui-vertical-bar ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive && e.value.autoSize ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
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",
|
|
@@ -573,7 +573,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
573
573
|
hasTable: e.value.userOptions.buttons.table,
|
|
574
574
|
hasSort: e.value.userOptions.buttons.sort,
|
|
575
575
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
576
|
-
isFullscreen:
|
|
576
|
+
isFullscreen: q.value,
|
|
577
577
|
isTooltip: $.value.showTooltip,
|
|
578
578
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
579
579
|
chartElement: z.value,
|
|
@@ -597,7 +597,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
597
597
|
t.$slots.menuIcon ? {
|
|
598
598
|
name: "menuIcon",
|
|
599
599
|
fn: w(({ isOpen: a, color: o }) => [
|
|
600
|
-
x(t.$slots, "menuIcon",
|
|
600
|
+
x(t.$slots, "menuIcon", K(J({ isOpen: a, color: o })), void 0, !0)
|
|
601
601
|
]),
|
|
602
602
|
key: "0"
|
|
603
603
|
} : void 0,
|
|
@@ -653,14 +653,14 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
653
653
|
t.$slots.optionFullscreen ? {
|
|
654
654
|
name: "optionFullscreen",
|
|
655
655
|
fn: w(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
656
|
-
x(t.$slots, "optionFullscreen",
|
|
656
|
+
x(t.$slots, "optionFullscreen", K(J({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
657
657
|
]),
|
|
658
658
|
key: "8"
|
|
659
659
|
} : void 0,
|
|
660
660
|
t.$slots.optionAnnotator ? {
|
|
661
661
|
name: "optionAnnotator",
|
|
662
662
|
fn: w(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
663
|
-
x(t.$slots, "optionAnnotator",
|
|
663
|
+
x(t.$slots, "optionAnnotator", K(J({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
664
664
|
]),
|
|
665
665
|
key: "9"
|
|
666
666
|
} : void 0
|
|
@@ -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",
|
|
@@ -713,16 +713,16 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
713
713
|
ref_key: "svgRef",
|
|
714
714
|
ref: Re,
|
|
715
715
|
xmlns: s(Kt),
|
|
716
|
-
class: D({ "vue-data-ui-fullscreen--on":
|
|
716
|
+
class: D({ "vue-data-ui-fullscreen--on": q.value, "vue-data-ui-fulscreen--off": !q.value }),
|
|
717
717
|
viewBox: ue.value,
|
|
718
718
|
style: h(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
719
719
|
}, [
|
|
720
720
|
n("g", {
|
|
721
721
|
ref_key: "G",
|
|
722
|
-
ref:
|
|
722
|
+
ref: W,
|
|
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,
|
|
@@ -735,7 +735,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
735
735
|
}, [
|
|
736
736
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
737
737
|
], 8, ya)) : y("", !0),
|
|
738
|
-
(u(!0), v(
|
|
738
|
+
(u(!0), v(Q, null, Z(R.value, (a, o) => (u(), v("linearGradient", {
|
|
739
739
|
x1: "0%",
|
|
740
740
|
y1: "0%",
|
|
741
741
|
x2: "100%",
|
|
@@ -752,11 +752,11 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
752
752
|
}, null, 8, ma)
|
|
753
753
|
], 8, ga))), 256)),
|
|
754
754
|
t.$slots.pattern ? (u(), v("g", ka, [
|
|
755
|
-
(u(!0), v(
|
|
755
|
+
(u(!0), v(Q, null, Z(R.value, (a) => (u(), v("defs", null, [
|
|
756
756
|
x(t.$slots, "pattern", Dt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${S.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
757
757
|
]))), 256))
|
|
758
758
|
])) : y("", !0),
|
|
759
|
-
(u(!0), v(
|
|
759
|
+
(u(!0), v(Q, null, Z(R.value, (a, o) => (u(), v("g", null, [
|
|
760
760
|
n("rect", {
|
|
761
761
|
x: s(L)(E.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
|
|
762
762
|
y: r.value.top + (m.value + c.value) * o,
|
|
@@ -767,7 +767,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
767
767
|
class: D({ animated: e.value.useCssAnimation })
|
|
768
768
|
}, null, 10, xa)
|
|
769
769
|
]))), 256)),
|
|
770
|
-
(u(!0), v(
|
|
770
|
+
(u(!0), v(Q, null, Z(R.value, (a, o) => (u(), v("g", null, [
|
|
771
771
|
n("rect", {
|
|
772
772
|
x: s(L)(E.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
|
|
773
773
|
y: r.value.top + (m.value + c.value) * o,
|
|
@@ -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,
|
|
@@ -866,7 +866,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
866
866
|
], 512)
|
|
867
867
|
], 14, fa)),
|
|
868
868
|
t.$slots.watermark ? (u(), v("div", Va, [
|
|
869
|
-
x(t.$slots, "watermark",
|
|
869
|
+
x(t.$slots, "watermark", K(J({ isPrinting: s(Ee) || s(De) })), void 0, !0)
|
|
870
870
|
])) : y("", !0),
|
|
871
871
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), v("div", {
|
|
872
872
|
key: 6,
|
|
@@ -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,
|
|
@@ -934,17 +934,19 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
934
934
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
935
935
|
parent: z.value,
|
|
936
936
|
content: pe.value,
|
|
937
|
-
isFullscreen:
|
|
938
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
937
|
+
isFullscreen: q.value,
|
|
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
|
-
x(t.$slots, "tooltip-before",
|
|
943
|
+
x(t.$slots, "tooltip-before", K(J({ ...$e.value })), void 0, !0)
|
|
942
944
|
]),
|
|
943
945
|
"tooltip-after": w(() => [
|
|
944
|
-
x(t.$slots, "tooltip-after",
|
|
946
|
+
x(t.$slots, "tooltip-after", K(J({ ...$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,20 +987,20 @@ 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", {
|
|
998
1000
|
role: "row",
|
|
999
1001
|
style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1000
1002
|
}, [
|
|
1001
|
-
(u(!0), v(
|
|
1003
|
+
(u(!0), v(Q, null, Z(A.value.head, (a) => (u(), v("th", {
|
|
1002
1004
|
style: h(`outline:${e.value.table.th.outline}`)
|
|
1003
1005
|
}, [
|
|
1004
1006
|
n("div", Ba, p(a), 1)
|
|
@@ -1029,7 +1031,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
1029
1031
|
])
|
|
1030
1032
|
]),
|
|
1031
1033
|
n("tbody", null, [
|
|
1032
|
-
(u(!0), v(
|
|
1034
|
+
(u(!0), v(Q, null, Z(A.value.body, (a, o) => (u(), v("tr", {
|
|
1033
1035
|
class: D({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
|
|
1034
1036
|
style: h(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1035
1037
|
}, [
|
|
@@ -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-fa1761f3"]]);
|
|
1104
1106
|
export {
|
|
1105
1107
|
pl as default
|
|
1106
1108
|
};
|