vue-data-ui 3.1.4 → 3.1.6
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-COJRk3pc.js → Arrow-DtlAIKPQ.js} +1 -1
- package/dist/{BaseDraggableDialog-BdAp3qr9.js → BaseDraggableDialog-BVZPPMT9.js} +2 -2
- package/dist/{BaseIcon-B5nQNkmd.js → BaseIcon-D_BjQBAR.js} +1 -1
- package/dist/{ColorPicker-CPqHwp1V.js → ColorPicker-BeJGNqJl.js} +2 -2
- package/dist/{DataTable-CzO3oHys.js → DataTable-IycMkaTU.js} +2 -2
- package/dist/{Legend-BQqnf4BN.js → Legend-D7l8BJ7z.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D_g27Foy.js → NonSvgPenAndPaper-BK5M9Lt9.js} +3 -3
- package/dist/{PackageVersion-7CxQB-mx.js → PackageVersion-BtfT0hV9.js} +1 -1
- package/dist/{PenAndPaper-C8hICPzL.js → PenAndPaper-BdzDJYnr.js} +3 -3
- package/dist/{Shape-BEVQVI0z.js → Shape-DD3SLpa4.js} +1 -1
- package/dist/Slicer-DoGlWyq_.js +596 -0
- package/dist/{SparkTooltip-BSgzljwP.js → SparkTooltip-DAfofSes.js} +1 -1
- package/dist/{Title-nHtPyPd9.js → Title-DbQthJAs.js} +1 -1
- package/dist/Tooltip-DvtYLrX2.js +200 -0
- package/dist/{UserOptions-D3pVnvAB.js → UserOptions-Dd5XOrwq.js} +2 -2
- package/dist/{dom-to-png-CcijTM69.js → dom-to-png-j6qE-sAL.js} +1 -1
- package/dist/{img-Bl0o2UAr.js → img-DLgjML7h.js} +1 -1
- package/dist/{index-INqbM37s.js → index-C0wrF8hm.js} +6 -2
- package/dist/{pdf-BeeAdG2m.js → pdf-Csglybwj.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DXkvjSDn.js → useAutoSizeLabelsInsideViewbox-Bj3DhGbZ.js} +1 -1
- package/dist/{useNestedProp-BKprMEaB.js → useNestedProp-Bg2FlIgI.js} +1 -1
- package/dist/{usePrinter-9WO5mDzj.js → usePrinter-C2jvouU0.js} +2 -2
- package/dist/{vue-data-ui-IMHc9Ta4.js → vue-data-ui-DaOijb0V.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D-1TVi2s.js → vue-ui-3d-bar-BbW6NaRc.js} +8 -8
- package/dist/{vue-ui-accordion-CQZjxT5U.js → vue-ui-accordion-3JuSLBjV.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B31NbBxS.js → vue-ui-age-pyramid-D94C1TOK.js} +44 -42
- package/dist/{vue-ui-annotator-BmFYtzWW.js → vue-ui-annotator-Jq_yw0h7.js} +2 -2
- package/dist/{vue-ui-bullet-BvMlcux3.js → vue-ui-bullet-ajwy7d-R.js} +7 -7
- package/dist/{vue-ui-candlestick-CCrNcgjy.js → vue-ui-candlestick-vMGbmNWA.js} +87 -85
- package/dist/{vue-ui-carousel-table-DrGj7_CL.js → vue-ui-carousel-table-DydTCm2Z.js} +4 -4
- package/dist/{vue-ui-chestnut-Dz0E-AxZ.js → vue-ui-chestnut-D6AP76wU.js} +37 -37
- package/dist/{vue-ui-chord-BxOzgPka.js → vue-ui-chord-Du8GJXPN.js} +11 -11
- package/dist/{vue-ui-circle-pack-CaWwzEF0.js → vue-ui-circle-pack-C-C3OGW_.js} +232 -228
- package/dist/{vue-ui-cursor-CG-oJITu.js → vue-ui-cursor-B70FlDqP.js} +2 -2
- package/dist/{vue-ui-dashboard-BFLQYXuo.js → vue-ui-dashboard-DrFCH7LP.js} +67 -67
- package/dist/{vue-ui-digits-BlZsS_qz.js → vue-ui-digits-CQy-vOC2.js} +2 -2
- package/dist/{vue-ui-donut-COXIRkz4.js → vue-ui-donut-D0RdN18d.js} +53 -51
- package/dist/{vue-ui-donut-evolution-DSGLD4z5.js → vue-ui-donut-evolution-naYIvk-b.js} +38 -38
- package/dist/{vue-ui-dumbbell-DgUPMy2W.js → vue-ui-dumbbell-D6b7WMTy.js} +84 -84
- package/dist/{vue-ui-flow-E8_jp5Qc.js → vue-ui-flow-Dh8_ii-s.js} +82 -80
- package/dist/{vue-ui-funnel-NMcBpYTQ.js → vue-ui-funnel-Ct4e9chO.js} +31 -31
- package/dist/{vue-ui-galaxy-Cay4NZ6o.js → vue-ui-galaxy-Dqklv14X.js} +49 -47
- package/dist/{vue-ui-gauge-DWOH8_Z2.js → vue-ui-gauge-D-vHj5J1.js} +7 -7
- package/dist/{vue-ui-gizmo-DtZu2tcU.js → vue-ui-gizmo-Cn0d1lVH.js} +3 -3
- package/dist/{vue-ui-heatmap-Dk5515tQ.js → vue-ui-heatmap-BpcoDwpi.js} +69 -67
- package/dist/{vue-ui-history-plot-X_jPheWu.js → vue-ui-history-plot-D8tmNUHo.js} +148 -146
- package/dist/{vue-ui-kpi-DwNsapLR.js → vue-ui-kpi-88Bguk6S.js} +3 -3
- package/dist/{vue-ui-mini-loader-uyATuTz5.js → vue-ui-mini-loader-VDpWxyls.js} +2 -2
- package/dist/{vue-ui-molecule-BOeCt8b2.js → vue-ui-molecule-Cn8yeJLZ.js} +63 -61
- package/dist/{vue-ui-mood-radar-BeHjc5Ty.js → vue-ui-mood-radar-DidC77_K.js} +9 -9
- package/dist/{vue-ui-nested-donuts-CPoaD2py.js → vue-ui-nested-donuts-D1EZ91Wm.js} +71 -69
- package/dist/{vue-ui-onion-C8H8i77u.js → vue-ui-onion-B_mir5Ax.js} +40 -37
- package/dist/{vue-ui-parallel-coordinate-plot-Cblzs6mf.js → vue-ui-parallel-coordinate-plot-DRbJyqiQ.js} +54 -52
- package/dist/{vue-ui-quadrant-BLYsMAey.js → vue-ui-quadrant-D7ihdCkd.js} +204 -202
- package/dist/{vue-ui-quick-chart-D-7cooqG.js → vue-ui-quick-chart-Dwc1xJtX.js} +63 -61
- package/dist/{vue-ui-radar-BBR8cYGx.js → vue-ui-radar-DhsgkGwF.js} +121 -119
- package/dist/{vue-ui-rating-Ccn8aUMA.js → vue-ui-rating-D_sWv7fR.js} +2 -2
- package/dist/{vue-ui-relation-circle-SKeIJXHs.js → vue-ui-relation-circle-CAvYwKpm.js} +7 -7
- package/dist/{vue-ui-ridgeline-CuHSBPB8.js → vue-ui-ridgeline-DuWQX2OI.js} +10 -10
- package/dist/{vue-ui-rings-SusI7pff.js → vue-ui-rings-BrBkOGZk.js} +162 -160
- package/dist/{vue-ui-scatter-Do8NoLng.js → vue-ui-scatter--kNBhPeG.js} +158 -156
- package/dist/{vue-ui-skeleton-FONviv9G.js → vue-ui-skeleton-B6Y0yxOn.js} +3 -3
- package/dist/{vue-ui-smiley-Bbt8bZxB.js → vue-ui-smiley-B7tZsNRS.js} +2 -2
- package/dist/{vue-ui-spark-trend-DB7RPBwQ.js → vue-ui-spark-trend-Dy5C9uny.js} +3 -3
- package/dist/{vue-ui-sparkbar-B8inUR_m.js → vue-ui-sparkbar-9NN07DOT.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B4_YoY5M.js → vue-ui-sparkgauge-iV-u83Ie.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DXSLenC7.js → vue-ui-sparkhistogram-X47TDKC2.js} +4 -4
- package/dist/{vue-ui-sparkline-BQ6Voxky.js → vue-ui-sparkline-C67Y3c7l.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BgFJQKhq.js → vue-ui-sparkstackbar-Bzmq9peq.js} +36 -34
- package/dist/{vue-ui-stackbar-CBB-kH1C.js → vue-ui-stackbar-C0cn-5Sz.js} +15 -13
- package/dist/{vue-ui-strip-plot-3gWivNhR.js → vue-ui-strip-plot-D3StIxYT.js} +59 -57
- package/dist/{vue-ui-table-NJNp95Us.js → vue-ui-table-B-wP544v.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CRzHSurU.js → vue-ui-table-heatmap-_qJwOiYG.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DxGr1WNr.js → vue-ui-table-sparkline-C6MoeyKm.js} +4 -4
- package/dist/{vue-ui-thermometer-B6NudPzq.js → vue-ui-thermometer-BmYZiNK4.js} +7 -7
- package/dist/{vue-ui-timer-DO3oJlhi.js → vue-ui-timer-XeLnI_ia.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dv39xDlL.js → vue-ui-tiremarks-CnCSAQiH.js} +6 -6
- package/dist/{vue-ui-treemap-D9jbccaW.js → vue-ui-treemap-Nd27H4H5.js} +41 -39
- package/dist/{vue-ui-vertical-bar-CxJNWczK.js → vue-ui-vertical-bar-Dd1XUvnp.js} +54 -52
- package/dist/{vue-ui-waffle-BMjk9LhH.js → vue-ui-waffle-Czg-z9KF.js} +56 -54
- package/dist/{vue-ui-wheel-CMACWJLJ.js → vue-ui-wheel-DfPu-QQM.js} +6 -6
- package/dist/{vue-ui-word-cloud-BbwSabN0.js → vue-ui-word-cloud-CB9_bPjO.js} +107 -104
- package/dist/{vue-ui-world-DCp2i-uy.js → vue-ui-world-Bo_NzzhJ.js} +12 -10
- package/dist/{vue-ui-xy-CRQHfrGQ.js → vue-ui-xy-Dc-o6Q3R.js} +1234 -1231
- package/dist/{vue-ui-xy-canvas-D-iziyn0.js → vue-ui-xy-canvas-D1Do33ar.js} +46 -44
- package/package.json +4 -2
- package/dist/Slicer-Cmc94zkG.js +0 -604
- package/dist/Tooltip-RCWHeRDV.js +0 -161
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineAsyncComponent as te, useSlots as Wt, onMounted as yt, computed as b, ref as m, shallowRef as U, toRefs as Gt, watch as ke, onBeforeUnmount as Xt, createElementBlock as y, openBlock as d, unref as c, normalizeStyle as M, normalizeClass as Le, createBlock as Z, createCommentVNode as _, createElementVNode as O, createVNode as we, createSlots as bt, withCtx as T, renderSlot as C, normalizeProps as le, guardReactiveProps as oe, Fragment as Ce, renderList as Me, withKeys as kt, withModifiers as Be, mergeProps as Ve, createTextVNode as $e, toDisplayString as H, Teleport as qt, resolveDynamicComponent as Yt, nextTick as jt } from "vue";
|
|
2
|
-
import { u as Zt, c as Te, t as Kt, a as Jt, p as
|
|
2
|
+
import { u as Zt, c as Te, t as Kt, a as Jt, p as F, b as Qt, d as el, o as wt, f as tl, e as de, k as xe, i as he, X as ll, l as Ct, F as $t, y as Tt, v as ol, w as al, z as nl } from "./index-C0wrF8hm.js";
|
|
3
3
|
import { t as sl, u as ul } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as rl, B as il } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as cl } from "./usePrinter-
|
|
6
|
-
import { u as xt } from "./useNestedProp-
|
|
5
|
+
import { u as cl } from "./usePrinter-C2jvouU0.js";
|
|
6
|
+
import { u as xt } from "./useNestedProp-Bg2FlIgI.js";
|
|
7
7
|
import { u as vl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as dl } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import hl from "./img-
|
|
10
|
-
import pl from "./Title-
|
|
11
|
-
import fl from "./Legend-
|
|
12
|
-
import _t from "./BaseIcon-
|
|
9
|
+
import hl from "./img-DLgjML7h.js";
|
|
10
|
+
import pl from "./Title-DbQthJAs.js";
|
|
11
|
+
import fl from "./Legend-D7l8BJ7z.js";
|
|
12
|
+
import _t from "./BaseIcon-D_BjQBAR.js";
|
|
13
13
|
import { _ as gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
function Ot(n, r) {
|
|
15
15
|
const s = n.length;
|
|
@@ -61,34 +61,34 @@ function bl(n, r) {
|
|
|
61
61
|
...r,
|
|
62
62
|
children: n
|
|
63
63
|
};
|
|
64
|
-
return
|
|
64
|
+
return Ft(s);
|
|
65
65
|
}
|
|
66
66
|
function kl(n) {
|
|
67
67
|
return (n.x1 - n.x0) * (n.y1 - n.y0);
|
|
68
68
|
}
|
|
69
69
|
function St(n, r) {
|
|
70
|
-
const { width: s, height: i, xOffset: u, yOffset: h } = Ee(r), v = n.length, g = n.map((w) => w.normalizedValue || 0).reduce((w,
|
|
70
|
+
const { width: s, height: i, xOffset: u, yOffset: h } = Ee(r), v = n.length, g = n.map((w) => w.normalizedValue || 0).reduce((w, I) => w + I, 0), f = g / i, W = g / s;
|
|
71
71
|
let P = u, k = h;
|
|
72
72
|
const $ = [];
|
|
73
73
|
if (s >= i) {
|
|
74
74
|
for (let w = 0; w < v; w += 1) {
|
|
75
|
-
const
|
|
75
|
+
const I = n[w], B = k + I.normalizedValue / f, A = {
|
|
76
76
|
x0: P,
|
|
77
77
|
y0: k,
|
|
78
78
|
x1: P + f,
|
|
79
79
|
y1: B
|
|
80
|
-
}, N = Object.assign({},
|
|
80
|
+
}, N = Object.assign({}, I, A);
|
|
81
81
|
k = B, $.push(N);
|
|
82
82
|
}
|
|
83
83
|
return $;
|
|
84
84
|
} else {
|
|
85
85
|
for (let w = 0; w < v; w += 1) {
|
|
86
|
-
const
|
|
86
|
+
const I = n[w], B = P + I.normalizedValue / W, A = {
|
|
87
87
|
x0: P,
|
|
88
88
|
y0: k,
|
|
89
89
|
x1: B,
|
|
90
90
|
y1: k + W
|
|
91
|
-
}, N = Object.assign({},
|
|
91
|
+
}, N = Object.assign({}, I, A);
|
|
92
92
|
P = B, $.push(N);
|
|
93
93
|
}
|
|
94
94
|
return $;
|
|
@@ -133,12 +133,12 @@ function $l(n, r, s, i) {
|
|
|
133
133
|
let w = 0;
|
|
134
134
|
for (let N = 0; N < $; N += 1)
|
|
135
135
|
w += h[N].normalizedValue;
|
|
136
|
-
const
|
|
137
|
-
u = u, h = [], v =
|
|
136
|
+
const I = Tl(v, w), B = St(h, v), A = g.concat(B);
|
|
137
|
+
u = u, h = [], v = I, g = A;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function Ft(n) {
|
|
142
142
|
if (typeof n.children > "u" || !n.children.length)
|
|
143
143
|
return [n];
|
|
144
144
|
{
|
|
@@ -147,7 +147,7 @@ function It(n) {
|
|
|
147
147
|
kl(n)
|
|
148
148
|
), s = $l(r, [], n, []), i = s.length, u = [];
|
|
149
149
|
for (let v = 0; v < i; v += 1)
|
|
150
|
-
u.push(
|
|
150
|
+
u.push(Ft(s[v]));
|
|
151
151
|
return yl(u);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
@@ -171,10 +171,10 @@ function Tl(n, r) {
|
|
|
171
171
|
return At(f);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], Al = { class: "vue-ui-treemap-crumb-unit" }, Sl = { class: "vue-ui-treemap-crumb-unit-label" },
|
|
174
|
+
const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], Al = { class: "vue-ui-treemap-crumb-unit" }, Sl = { class: "vue-ui-treemap-crumb-unit-label" }, Fl = {
|
|
175
175
|
key: 0,
|
|
176
176
|
style: { width: "24px", display: "flex", "align-items": "center" }
|
|
177
|
-
},
|
|
177
|
+
}, Il = {
|
|
178
178
|
key: 0,
|
|
179
179
|
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
180
180
|
}, Dl = ["xmlns", "viewBox"], Nl = { key: 0 }, Rl = ["id"], Pl = ["stop-color"], zl = ["stop-color"], Ll = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], Ml = ["x", "y", "height", "width"], Bl = {
|
|
@@ -201,11 +201,11 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
201
201
|
},
|
|
202
202
|
emits: ["selectLegend", "selectDatapoint"],
|
|
203
203
|
setup(n, { expose: r, emit: s }) {
|
|
204
|
-
const i = te(() => import("./DataTable-
|
|
204
|
+
const i = te(() => import("./DataTable-IycMkaTU.js")), u = te(() => import("./PenAndPaper-BdzDJYnr.js")), h = te(() => import("./vue-ui-accordion-3JuSLBjV.js")), v = te(() => import("./Tooltip-DvtYLrX2.js")), g = te(() => import("./UserOptions-Dd5XOrwq.js")), f = te(() => import("./PackageVersion-BtfT0hV9.js")), W = te(() => import("./BaseDraggableDialog-BVZPPMT9.js")), { vue_ui_treemap: P } = Zt(), k = n, $ = s, w = Wt();
|
|
205
205
|
yt(() => {
|
|
206
206
|
w["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
207
207
|
});
|
|
208
|
-
const
|
|
208
|
+
const I = b(() => !!k.dataset && k.dataset.length), B = b(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), A = m(Te()), N = m(!1), _e = m(""), K = m(!1), Ue = m(0), z = m([]), V = U(null), He = U(null), We = U(null), Ge = U(null), Xe = U(null), qe = m(0), Oe = m(0), Ae = m(0), x = m([]), Se = m(null), Ye = m(!1), ue = m(null), Fe = m(null), e = m(Ne()), { loading: re, FINAL_DATASET: Ie, manualLoading: It } = rl({
|
|
209
209
|
...Gt(k),
|
|
210
210
|
FINAL_CONFIG: e,
|
|
211
211
|
prepareConfig: Ne,
|
|
@@ -258,7 +258,7 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
258
258
|
userConfig: Qt.vue_ui_treemap[t.theme] || k.config,
|
|
259
259
|
defaultConfig: t
|
|
260
260
|
}),
|
|
261
|
-
customPalette: Jt[t.theme] ||
|
|
261
|
+
customPalette: Jt[t.theme] || F
|
|
262
262
|
} : t;
|
|
263
263
|
}
|
|
264
264
|
ke(() => k.config, (t) => {
|
|
@@ -290,11 +290,11 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
290
290
|
vbHeight: G.value.height,
|
|
291
291
|
vbWidth: G.value.width,
|
|
292
292
|
width: G.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
|
|
293
|
-
})), R = m(
|
|
293
|
+
})), R = m(Ie.value), X = m(R.value), lt = U(/* @__PURE__ */ new Map());
|
|
294
294
|
function ot(t) {
|
|
295
295
|
Array.isArray(t) && t.forEach((o, l) => {
|
|
296
296
|
o.id || (o.id = Te());
|
|
297
|
-
let a = de(o.color) || lt.value.get(o.id) || pe.value[l] ||
|
|
297
|
+
let a = de(o.color) || lt.value.get(o.id) || pe.value[l] || F[l] || F[l % F.length];
|
|
298
298
|
a = de(a), lt.value.set(o.id, a), o.color = a, at(o, a);
|
|
299
299
|
});
|
|
300
300
|
}
|
|
@@ -312,9 +312,9 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
ke(
|
|
315
|
-
() =>
|
|
315
|
+
() => Ie.value,
|
|
316
316
|
() => {
|
|
317
|
-
R.value =
|
|
317
|
+
R.value = Ie.value, ot(R.value), Nt(), Ae.value += 1, Oe.value += 1;
|
|
318
318
|
},
|
|
319
319
|
{ deep: !0, immediate: !0, flush: "post" }
|
|
320
320
|
);
|
|
@@ -328,7 +328,7 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
328
328
|
componentName: "VueUiTreemap",
|
|
329
329
|
type: "dataset",
|
|
330
330
|
debug: Rt.value
|
|
331
|
-
}), ot(R.value), wt(k.dataset) || (
|
|
331
|
+
}), ot(R.value), wt(k.dataset) || (It.value = e.value.loading), e.value.responsive) {
|
|
332
332
|
const t = sl(() => {
|
|
333
333
|
const { width: o, height: l } = ul({
|
|
334
334
|
chart: V.value,
|
|
@@ -349,7 +349,7 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
349
349
|
});
|
|
350
350
|
const ie = b(() => X.value.map((t, o) => ({
|
|
351
351
|
...t,
|
|
352
|
-
color: de(t.color) || pe.value[o] ||
|
|
352
|
+
color: de(t.color) || pe.value[o] || F[o] || F[o % F.length]
|
|
353
353
|
})).filter((t) => !z.value.includes(t.id))), ne = b(() => R.value.filter((t) => !z.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), nt = b({
|
|
354
354
|
get() {
|
|
355
355
|
let t = [...ie.value];
|
|
@@ -370,7 +370,7 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
370
370
|
}
|
|
371
371
|
function ut(t, o, l, a) {
|
|
372
372
|
return t.map((p, S) => {
|
|
373
|
-
const be = zt(de(o) || pe.value[S] ||
|
|
373
|
+
const be = zt(de(o) || pe.value[S] || F[S] || F[S % F.length], p, a), Ht = st(p, a);
|
|
374
374
|
return {
|
|
375
375
|
...p,
|
|
376
376
|
color: be,
|
|
@@ -473,7 +473,7 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
473
473
|
return t;
|
|
474
474
|
}), L = U(null), vt = b(() => R.value.map((t, o) => ({
|
|
475
475
|
...t,
|
|
476
|
-
color: de(t.color) || pe.value[o] ||
|
|
476
|
+
color: de(t.color) || pe.value[o] || F[o] || F[o % F.length],
|
|
477
477
|
shape: "square"
|
|
478
478
|
})).sort((t, o) => o.value - t.value).map((t, o) => ({
|
|
479
479
|
...t,
|
|
@@ -658,7 +658,7 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
658
658
|
e.value.table.show || (t && e.value.table.useDialog && ue.value ? ue.value.open() : "close" in ue.value && ue.value.close());
|
|
659
659
|
});
|
|
660
660
|
function mt() {
|
|
661
|
-
D.value.showTable = !1,
|
|
661
|
+
D.value.showTable = !1, Fe.value && Fe.value.setTableIconState(!1);
|
|
662
662
|
}
|
|
663
663
|
return r({
|
|
664
664
|
getData: Et,
|
|
@@ -717,9 +717,9 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
717
717
|
O("div", {
|
|
718
718
|
id: `legend-top-${A.value}`
|
|
719
719
|
}, null, 8, _l),
|
|
720
|
-
e.value.userOptions.show &&
|
|
720
|
+
e.value.userOptions.show && I.value && (c(Ze) || c(De)) ? (d(), Z(c(g), {
|
|
721
721
|
ref_key: "userOptionsRef",
|
|
722
|
-
ref:
|
|
722
|
+
ref: Fe,
|
|
723
723
|
key: `user_option_${Ue.value}`,
|
|
724
724
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
725
725
|
color: e.value.style.chart.color,
|
|
@@ -840,7 +840,7 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
840
840
|
O("span", Al, [
|
|
841
841
|
O("span", Sl, [
|
|
842
842
|
C(t.$slots, "breadcrumb-label", Ve({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: ye.value === a }), () => [
|
|
843
|
-
a === 0 ? (d(), y("div",
|
|
843
|
+
a === 0 ? (d(), y("div", Fl, [
|
|
844
844
|
we(_t, {
|
|
845
845
|
name: ye.value === 0 ? "homeFilled" : "home",
|
|
846
846
|
stroke: e.value.style.chart.color
|
|
@@ -850,7 +850,7 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
850
850
|
], 64))
|
|
851
851
|
], !0)
|
|
852
852
|
]),
|
|
853
|
-
a < j.value.length - 1 ? (d(), y("span",
|
|
853
|
+
a < j.value.length - 1 ? (d(), y("span", Il, [
|
|
854
854
|
C(t.$slots, "breadcrumb-arrow", {}, () => [
|
|
855
855
|
o[4] || (o[4] = $e(" › ", -1))
|
|
856
856
|
], !0)
|
|
@@ -1025,7 +1025,9 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1025
1025
|
isFullscreen: K.value,
|
|
1026
1026
|
isCustom: c(Tt)(e.value.style.chart.tooltip.customFormat),
|
|
1027
1027
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1028
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1028
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1029
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1030
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1029
1031
|
}, {
|
|
1030
1032
|
"tooltip-before": T(() => [
|
|
1031
1033
|
C(t.$slots, "tooltip-before", le(oe({ ...Re.value })), void 0, !0)
|
|
@@ -1034,8 +1036,8 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1034
1036
|
C(t.$slots, "tooltip-after", le(oe({ ...Re.value })), void 0, !0)
|
|
1035
1037
|
]),
|
|
1036
1038
|
_: 3
|
|
1037
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1038
|
-
|
|
1039
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1040
|
+
I.value && e.value.userOptions.buttons.table ? (d(), Z(Yt(ve.value.component), Ve({ key: 8 }, ve.value.props, {
|
|
1039
1041
|
ref_key: "tableUnit",
|
|
1040
1042
|
ref: ue,
|
|
1041
1043
|
onClose: mt
|
|
@@ -1092,7 +1094,7 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1092
1094
|
c(re) ? (d(), Z(il, { key: 9 })) : _("", !0)
|
|
1093
1095
|
], 46, xl));
|
|
1094
1096
|
}
|
|
1095
|
-
}, ao = /* @__PURE__ */ gl(Wl, [["__scopeId", "data-v-
|
|
1097
|
+
}, ao = /* @__PURE__ */ gl(Wl, [["__scopeId", "data-v-123da83a"]]);
|
|
1096
1098
|
export {
|
|
1097
1099
|
ao as default
|
|
1098
1100
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { useCssVars as Ut, defineAsyncComponent as K, useSlots as Xt, computed as y, ref as i, toRefs as Wt, watch as Ae, shallowRef as vt, onMounted as ze, nextTick as de, onBeforeUnmount as Gt, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as d, normalizeClass as U, createBlock as X, createCommentVNode as f, renderSlot as _, createVNode as J, createSlots as he, withCtx as m, normalizeProps as Q, guardReactiveProps as Z, createElementVNode as n, toDisplayString as h, Fragment as ee, renderList as te, mergeProps as ct, resolveDynamicComponent as Ht, withKeys as jt, createTextVNode as dt } from "vue";
|
|
2
|
-
import { u as qt, c as Yt, t as Kt, a as Jt, p as W, b as Qt, C as Ve, d as Zt, h as L, o as
|
|
2
|
+
import { u as qt, c as Yt, t as Kt, a as Jt, p as W, b as Qt, C as Ve, d as Zt, h as L, o as Oe, f as ue, e as Fe, k as pe, i as G, X as ea, s as Ie, x as ta, v as aa, w as la, y as oa, z as na } from "./index-C0wrF8hm.js";
|
|
3
3
|
import { t as ua, u as sa } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as ra, B as ia } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as va } from "./usePrinter-
|
|
6
|
-
import { u as ht } from "./useNestedProp-
|
|
5
|
+
import { u as va } from "./usePrinter-C2jvouU0.js";
|
|
6
|
+
import { u as ht } from "./useNestedProp-Bg2FlIgI.js";
|
|
7
7
|
import { u as ca } from "./useTableResponsive-Cbx-ACcP.js";
|
|
8
8
|
import { u as da } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as ha } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import pt from "./Legend-
|
|
11
|
-
import pa from "./vue-ui-accordion-
|
|
12
|
-
import fa from "./Title-
|
|
13
|
-
import { _ as ft } from "./Shape-
|
|
14
|
-
import ga from "./img-
|
|
10
|
+
import pt from "./Legend-D7l8BJ7z.js";
|
|
11
|
+
import pa from "./vue-ui-accordion-3JuSLBjV.js";
|
|
12
|
+
import fa from "./Title-DbQthJAs.js";
|
|
13
|
+
import { _ as ft } from "./Shape-DD3SLpa4.js";
|
|
14
|
+
import ga from "./img-DLgjML7h.js";
|
|
15
15
|
import { _ as ya } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "width", "height"], _a = ["id"], wa = ["stop-color"], $a = ["stop-color"], Ca = { key: 1 }, Ta = ["x", "y", "width", "height", "fill", "rx"], Sa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], La = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Aa = { class: "vue-ui-horizontal-bar-child-label" }, za = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Va = ["x", "y", "font-size", "fill", "font-weight"],
|
|
16
|
+
const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "width", "height"], _a = ["id"], wa = ["stop-color"], $a = ["stop-color"], Ca = { key: 1 }, Ta = ["x", "y", "width", "height", "fill", "rx"], Sa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], La = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Aa = { class: "vue-ui-horizontal-bar-child-label" }, za = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Va = ["x", "y", "font-size", "fill", "font-weight"], Oa = { class: "vue-ui-horizontal-bar-parent-label" }, Fa = ["x", "y", "font-size", "fill", "font-weight"], Ia = ["x", "y", "font-size", "fill", "font-weight"], Ma = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Da = {
|
|
17
17
|
key: 5,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, Ba = ["onClick"], Ra = { style: "width:100%;padding-top: 36px;position:relative" }, Ea = { class: "vue-ui-data-table" }, Ua = { key: 0 }, Xa = { style: { width: "100%" } }, Wa = ["data-cell"], Ga = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ha = ["data-cell"], ja = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, qa = ["data-cell"], Ya = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ka = ["data-cell"], Ja = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Qa = ["data-cell"], Za = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, el = ["data-cell"], tl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, al = ["data-cell"], ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ol = {
|
|
@@ -35,9 +35,9 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
36
|
setup(gt, { expose: yt, emit: bt }) {
|
|
37
37
|
Ut((t) => ({
|
|
38
|
-
|
|
38
|
+
"27fa778f": t.tdo
|
|
39
39
|
}));
|
|
40
|
-
const mt = K(() => import("./Tooltip-
|
|
40
|
+
const mt = K(() => import("./Tooltip-DvtYLrX2.js")), Me = K(() => import("./BaseIcon-D_BjQBAR.js")), kt = K(() => import("./PenAndPaper-BdzDJYnr.js")), xt = K(() => import("./UserOptions-Dd5XOrwq.js")), _t = K(() => import("./PackageVersion-BtfT0hV9.js")), wt = K(() => import("./BaseDraggableDialog-BVZPPMT9.js")), { vue_ui_vertical_bar: $t } = qt(), Ct = Xt(), b = gt, fe = y({
|
|
41
41
|
get() {
|
|
42
42
|
return !!b.dataset && b.dataset.length;
|
|
43
43
|
},
|
|
@@ -57,7 +57,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
57
57
|
prepareConfig: $e,
|
|
58
58
|
callback: () => {
|
|
59
59
|
Promise.resolve().then(async () => {
|
|
60
|
-
q(), $.value.showTable = e.value.table.show, await
|
|
60
|
+
q(), $.value.showTable = e.value.table.show, await F();
|
|
61
61
|
});
|
|
62
62
|
},
|
|
63
63
|
skeletonDataset: Lt.value,
|
|
@@ -131,14 +131,14 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
131
131
|
elementId: `vue-ui-vertical-bar_${S.value}`,
|
|
132
132
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
133
133
|
options: e.value.userOptions.print
|
|
134
|
-
}), Pt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Je = y(() => Zt(e.value.customPalette)), Qe = i(null), Nt = y(() => e.value.table.responsiveBreakpoint),
|
|
134
|
+
}), Pt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Je = y(() => Zt(e.value.customPalette)), Qe = i(null), Nt = y(() => e.value.table.responsiveBreakpoint), O = vt(null), j = vt(null), se = i("0 0 10 10"), N = y(() => {
|
|
135
135
|
const [t, l, a, o] = se.value.split(" ").map(Number);
|
|
136
136
|
return { x: t, y: l, width: a, height: o };
|
|
137
137
|
});
|
|
138
138
|
ze(async () => {
|
|
139
|
-
await de(), et(),
|
|
139
|
+
await de(), et(), F();
|
|
140
140
|
});
|
|
141
|
-
async function
|
|
141
|
+
async function F() {
|
|
142
142
|
if (se.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize || !H.value) return;
|
|
143
143
|
const t = H.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = H.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
|
|
144
144
|
if (t && t.length) {
|
|
@@ -172,7 +172,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
172
172
|
const { width: a, height: o } = l.contentRect;
|
|
173
173
|
if (a > 0 && o > 0) {
|
|
174
174
|
Promise.resolve().then(async () => {
|
|
175
|
-
q(), await
|
|
175
|
+
q(), await F();
|
|
176
176
|
});
|
|
177
177
|
break;
|
|
178
178
|
}
|
|
@@ -181,11 +181,11 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
181
181
|
});
|
|
182
182
|
const re = y(() => !!e.value.debug), Ce = i(0);
|
|
183
183
|
function et() {
|
|
184
|
-
if (
|
|
184
|
+
if (Oe(b.dataset) && (ue({
|
|
185
185
|
componentName: "VueUiVerticalBar",
|
|
186
186
|
type: "dataset",
|
|
187
187
|
debug: re.value
|
|
188
|
-
}), fe.value = !1, _e.value = !0), ae.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0),
|
|
188
|
+
}), fe.value = !1, _e.value = !0), ae.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Oe(b.dataset) || (_e.value = e.value.loading), e.value.responsive) {
|
|
189
189
|
const t = ua(() => {
|
|
190
190
|
const { width: l, height: a } = sa({
|
|
191
191
|
chart: P.value,
|
|
@@ -197,26 +197,26 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
197
197
|
Ce.value = a / 3, requestAnimationFrame(async () => {
|
|
198
198
|
lt.value = l;
|
|
199
199
|
const o = k.value * (ae.value - 1);
|
|
200
|
-
p.value = (a - o) / ae.value, await de(),
|
|
200
|
+
p.value = (a - o) / ae.value, await de(), F();
|
|
201
201
|
});
|
|
202
202
|
});
|
|
203
|
-
|
|
203
|
+
O.value && (j.value && O.value.unobserve(j.value), O.value.disconnect()), O.value = new ResizeObserver(t), j.value = P.value.parentNode, O.value.observe(j.value), e.value.autoSize && F();
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
Gt(() => {
|
|
207
|
-
|
|
207
|
+
O.value && (j.value && O.value.unobserve(j.value), O.value.disconnect());
|
|
208
208
|
});
|
|
209
209
|
const $ = i({
|
|
210
210
|
showTable: e.value.table.show,
|
|
211
211
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
212
212
|
showTooltip: e.value.style.chart.tooltip.show
|
|
213
|
-
}), tt = y(() => $.value.sortDesc),
|
|
213
|
+
}), tt = y(() => $.value.sortDesc), I = y(() => (xe.value.forEach((t, l) => {
|
|
214
214
|
!t.value && !t.children && ue({
|
|
215
215
|
componentName: "VueUiVerticalBar",
|
|
216
216
|
type: "datasetAttributeEmpty",
|
|
217
217
|
property: `value (index ${l})`,
|
|
218
218
|
debug: re.value
|
|
219
|
-
}), t.children && (
|
|
219
|
+
}), t.children && (Oe(t.children) ? ue({
|
|
220
220
|
componentName: "VueUiVerticalBar",
|
|
221
221
|
type: "datasetAttributeEmpty",
|
|
222
222
|
property: `children (index ${l})`,
|
|
@@ -245,7 +245,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
245
245
|
isChild: !1,
|
|
246
246
|
segregate: () => oe(a),
|
|
247
247
|
isSegregated: A.value.includes(a),
|
|
248
|
-
color:
|
|
248
|
+
color: Fe(t.color) || Je.value[l] || W[l] || W[l % W.length],
|
|
249
249
|
children: !t.children || !t.children.length ? [] : t.children.toSorted(ie.value ? () => 0 : (c, x) => tt.value ? x.value - c.value : c.value - x.value).map((c, x) => ({
|
|
250
250
|
...c,
|
|
251
251
|
value: L(Math.abs(c.value)),
|
|
@@ -258,7 +258,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
258
258
|
parentSign: w,
|
|
259
259
|
id: `vertical_child_${l}_${x}_${S.value}`,
|
|
260
260
|
childIndex: x,
|
|
261
|
-
color:
|
|
261
|
+
color: Fe(c.color) || Fe(t.color) || Je.value[l] || W[l] || W[l % W.length]
|
|
262
262
|
})).map((c, x) => ({
|
|
263
263
|
...c,
|
|
264
264
|
isFirstChild: x === 0,
|
|
@@ -290,19 +290,19 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
290
290
|
width: C.value.width - (C.value.padding.left + C.value.padding.right)
|
|
291
291
|
}));
|
|
292
292
|
async function q() {
|
|
293
|
-
ae.value = D.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await
|
|
293
|
+
ae.value = D.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await F();
|
|
294
294
|
}
|
|
295
295
|
const A = i([]);
|
|
296
296
|
async function oe(t) {
|
|
297
297
|
if (A.value.includes(t))
|
|
298
298
|
A.value = A.value.filter((l) => l !== t);
|
|
299
299
|
else {
|
|
300
|
-
if (A.value.length ===
|
|
300
|
+
if (A.value.length === I.value.length - 1) return;
|
|
301
301
|
A.value.push(t);
|
|
302
302
|
}
|
|
303
|
-
q(), await de(), e.value.autoSize &&
|
|
303
|
+
q(), await de(), e.value.autoSize && F(), St("selectLegend", D.value);
|
|
304
304
|
}
|
|
305
|
-
const D = y(() =>
|
|
305
|
+
const D = y(() => I.value.filter((t) => !A.value.includes(t.id))), V = y(() => D.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
|
|
306
306
|
function ot(t, l = !1, a = 0) {
|
|
307
307
|
return l ? G({
|
|
308
308
|
v: L(Math.abs(t) / V.value * 100),
|
|
@@ -328,33 +328,33 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
328
328
|
sign: a.sign
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Ot() {
|
|
332
332
|
return D.value;
|
|
333
333
|
}
|
|
334
334
|
const Te = i(null), Se = i(null);
|
|
335
|
-
function
|
|
335
|
+
function Ft({ datapoint: t, seriesIndex: l }) {
|
|
336
336
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function It({ datapoint: t, seriesIndex: l }) {
|
|
339
339
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), Tt.value = null, ge.value = !1, Te.value = null;
|
|
340
340
|
}
|
|
341
341
|
function Mt(t, l) {
|
|
342
342
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), Se.value = {
|
|
343
343
|
datapoint: t,
|
|
344
344
|
seriesIndex: l,
|
|
345
|
-
series:
|
|
345
|
+
series: I.value,
|
|
346
346
|
config: e.value
|
|
347
347
|
}, ge.value = !0, Te.value = t.id;
|
|
348
348
|
let a = "";
|
|
349
349
|
const o = t.isChild ? t.parentName : t.name, g = t.isChild ? t.name : "", w = e.value.style.chart.tooltip.customFormat;
|
|
350
350
|
oa(w) && na(() => w({
|
|
351
351
|
datapoint: t,
|
|
352
|
-
series:
|
|
352
|
+
series: I.value,
|
|
353
353
|
config: e.value,
|
|
354
354
|
seriesIndex: l
|
|
355
355
|
})) ? ye.value = w({
|
|
356
356
|
datapoint: t,
|
|
357
|
-
series:
|
|
357
|
+
series: I.value,
|
|
358
358
|
config: e.value,
|
|
359
359
|
seriesIndex: l
|
|
360
360
|
}) : (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;">
|
|
@@ -530,9 +530,9 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
530
530
|
$.value.showTable = !1, ke.value && ke.value.setTableIconState(!1);
|
|
531
531
|
}
|
|
532
532
|
return yt({
|
|
533
|
-
autoSize:
|
|
533
|
+
autoSize: F,
|
|
534
534
|
// v3
|
|
535
|
-
getData:
|
|
535
|
+
getData: Ot,
|
|
536
536
|
getImage: Rt,
|
|
537
537
|
recalculateHeight: q,
|
|
538
538
|
generatePdf: Ye,
|
|
@@ -703,7 +703,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
703
703
|
}, [
|
|
704
704
|
(u(), X(pt, {
|
|
705
705
|
key: `legend_top_${me.value}`,
|
|
706
|
-
legendSet:
|
|
706
|
+
legendSet: I.value,
|
|
707
707
|
config: at.value,
|
|
708
708
|
onClickMarker: l[0] || (l[0] = ({ legend: a }) => oe(a.id))
|
|
709
709
|
}, he({
|
|
@@ -779,7 +779,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
779
779
|
}, null, 8, wa),
|
|
780
780
|
n("stop", {
|
|
781
781
|
offset: "100%",
|
|
782
|
-
"stop-color": s(
|
|
782
|
+
"stop-color": s(Ie)(s(ta)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
783
783
|
}, null, 8, $a)
|
|
784
784
|
], 8, _a))), 256)),
|
|
785
785
|
t.$slots.pattern ? (u(), v("g", Ca, [
|
|
@@ -804,7 +804,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
804
804
|
y: r.value.top + (k.value + p.value) * o,
|
|
805
805
|
width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
806
806
|
height: p.value <= 0 ? 1e-4 : p.value,
|
|
807
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(
|
|
807
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(Ie)(a.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
808
808
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
809
809
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
810
810
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
@@ -862,7 +862,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
862
862
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
863
863
|
}, h(a.name), 9, Va)) : f("", !0)
|
|
864
864
|
]),
|
|
865
|
-
n("g",
|
|
865
|
+
n("g", Oa, [
|
|
866
866
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
867
867
|
key: 0,
|
|
868
868
|
x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -871,7 +871,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
871
871
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
872
872
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
873
873
|
"text-anchor": "start"
|
|
874
|
-
}, h(ne(a, o).name), 9,
|
|
874
|
+
}, h(ne(a, o).name), 9, Fa)) : f("", !0),
|
|
875
875
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
876
876
|
key: 1,
|
|
877
877
|
x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -880,17 +880,17 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
880
880
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
881
881
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
882
882
|
"text-anchor": "start"
|
|
883
|
-
}, h(nt(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9,
|
|
883
|
+
}, h(nt(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9, Ia)) : f("", !0)
|
|
884
884
|
]),
|
|
885
885
|
n("rect", {
|
|
886
886
|
x: N.value.x,
|
|
887
887
|
y: r.value.top + (k.value + p.value) * o - k.value / 2,
|
|
888
888
|
width: N.value.width,
|
|
889
889
|
height: p.value + k.value <= 0 ? 1e-4 : p.value + k.value,
|
|
890
|
-
fill: Te.value === a.id ? s(
|
|
890
|
+
fill: Te.value === a.id ? s(Ie)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
891
891
|
onMouseenter: (g) => Mt(a, o),
|
|
892
|
-
onMouseleave: (g) =>
|
|
893
|
-
onClick: (g) =>
|
|
892
|
+
onMouseleave: (g) => It({ datapoint: a, seriesIndex: o }),
|
|
893
|
+
onClick: (g) => Ft({ datapoint: a, seriesIndex: o })
|
|
894
894
|
}, null, 40, Ma)
|
|
895
895
|
]))), 256)),
|
|
896
896
|
_(t.$slots, "svg", { svg: N.value }, void 0, !0)
|
|
@@ -906,7 +906,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
906
906
|
}, [
|
|
907
907
|
(u(), X(pt, {
|
|
908
908
|
key: `legend_bottom_${me.value}`,
|
|
909
|
-
legendSet:
|
|
909
|
+
legendSet: I.value,
|
|
910
910
|
config: at.value,
|
|
911
911
|
onClickMarker: l[1] || (l[1] = ({ legend: a }) => oe(a.id))
|
|
912
912
|
}, he({
|
|
@@ -943,7 +943,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
943
943
|
} : void 0
|
|
944
944
|
]), 1032, ["legendSet", "config"]))
|
|
945
945
|
], 512)) : f("", !0),
|
|
946
|
-
_(t.$slots, "legend", { legend:
|
|
946
|
+
_(t.$slots, "legend", { legend: I.value }, void 0, !0),
|
|
947
947
|
t.$slots.source ? (u(), v("div", {
|
|
948
948
|
key: 7,
|
|
949
949
|
ref_key: "source",
|
|
@@ -968,7 +968,9 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
968
968
|
isFullscreen: E.value,
|
|
969
969
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
970
970
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
971
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
971
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
972
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
973
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
972
974
|
}, {
|
|
973
975
|
"tooltip-before": m(() => [
|
|
974
976
|
_(t.$slots, "tooltip-before", Q(Z({ ...Se.value })), void 0, !0)
|
|
@@ -977,8 +979,8 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
977
979
|
_(t.$slots, "tooltip-after", Q(Z({ ...Se.value })), void 0, !0)
|
|
978
980
|
]),
|
|
979
981
|
_: 3
|
|
980
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
981
|
-
fe.value ? (u(), X(Ht(ce.value.component), ct({ key: 8 }, ce.value.props, {
|
|
982
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
983
|
+
fe.value && e.value.userOptions.buttons.table ? (u(), X(Ht(ce.value.component), ct({ key: 8 }, ce.value.props, {
|
|
982
984
|
ref_key: "tableUnit",
|
|
983
985
|
ref: le,
|
|
984
986
|
onClose: Ne
|
|
@@ -1149,7 +1151,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
1149
1151
|
s(Xe) ? (u(), X(ia, { key: 9 })) : f("", !0)
|
|
1150
1152
|
], 46, ba));
|
|
1151
1153
|
}
|
|
1152
|
-
}, kl = /* @__PURE__ */ ya(ol, [["__scopeId", "data-v-
|
|
1154
|
+
}, kl = /* @__PURE__ */ ya(ol, [["__scopeId", "data-v-d553ecc0"]]);
|
|
1153
1155
|
export {
|
|
1154
1156
|
kl as default
|
|
1155
1157
|
};
|