vue-data-ui 3.2.6 → 3.2.8
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/{PackageVersion-5qR9AVYq.js → PackageVersion-C40g0Rfc.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-Djpo8FBy.js → vue-data-ui-BcRg499t.js} +62 -62
- package/dist/vue-data-ui.js +62 -62
- package/dist/{vue-ui-3d-bar-BdUUurQF.js → vue-ui-3d-bar-Cf7zHemQ.js} +3 -3
- package/dist/{vue-ui-accordion-C1OLvrea.js → vue-ui-accordion-CDIzGCG1.js} +20 -20
- package/dist/{vue-ui-age-pyramid-DmBRe5xH.js → vue-ui-age-pyramid-T09D0LHr.js} +3 -3
- package/dist/{vue-ui-annotator-BVdVOPF6.js → vue-ui-annotator-3bUg-1Zy.js} +3 -3
- package/dist/{vue-ui-bullet-C9JRu4NQ.js → vue-ui-bullet-DKgdFa2v.js} +3 -3
- package/dist/{vue-ui-candlestick--6CJDlW4.js → vue-ui-candlestick-g6PO_L_7.js} +3 -3
- package/dist/{vue-ui-carousel-table-DyuUDRR6.js → vue-ui-carousel-table-Ch2xooE8.js} +3 -3
- package/dist/{vue-ui-chestnut-CPFwRmpE.js → vue-ui-chestnut-B-nzp0b6.js} +4 -4
- package/dist/{vue-ui-chord-Dpkeaur6.js → vue-ui-chord-BqS8DoTd.js} +4 -3
- package/dist/{vue-ui-circle-pack-BennEsLy.js → vue-ui-circle-pack-B1axDP9l.js} +5 -5
- package/dist/{vue-ui-dashboard-D9JZVdHy.js → vue-ui-dashboard-TXcw45j_.js} +67 -66
- package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-pW7YVqxy.js} +8 -8
- package/dist/{vue-ui-donut-C36gley-.js → vue-ui-donut-BFpWEe2s.js} +3 -3
- package/dist/{vue-ui-donut-evolution-Cx_7Wi1t.js → vue-ui-donut-evolution-BoVslTri.js} +3 -3
- package/dist/{vue-ui-dumbbell-DFLWlWUJ.js → vue-ui-dumbbell-CRHvtmq9.js} +3 -3
- package/dist/{vue-ui-flow-sdg4P5gg.js → vue-ui-flow-CKGjSZoj.js} +50 -50
- package/dist/{vue-ui-funnel-Ctnlll1a.js → vue-ui-funnel-CKUlzitM.js} +51 -51
- package/dist/{vue-ui-galaxy-GWCCkX_k.js → vue-ui-galaxy-DZqCAK9c.js} +3 -3
- package/dist/{vue-ui-gauge-CXMQuWfj.js → vue-ui-gauge-D3bPFF59.js} +3 -3
- package/dist/{vue-ui-gizmo-k3BfWb5b.js → vue-ui-gizmo-oVLp367W.js} +16 -16
- package/dist/{vue-ui-heatmap-BVlD1EIN.js → vue-ui-heatmap-C1RctcPx.js} +5 -5
- package/dist/{vue-ui-history-plot-C1_5vtsJ.js → vue-ui-history-plot-CoQYOlF4.js} +84 -84
- package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-BZX-tqIm.js} +2 -2
- package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-hMqB-KQI.js} +17 -17
- package/dist/{vue-ui-molecule-WUR-7dEU.js → vue-ui-molecule-D0Kr_w-v.js} +4 -4
- package/dist/{vue-ui-mood-radar-BRR6mQHI.js → vue-ui-mood-radar-C6UCofDb.js} +3 -3
- package/dist/{vue-ui-nested-donuts-DAjxc3x7.js → vue-ui-nested-donuts-94Gu95Z9.js} +3 -3
- package/dist/{vue-ui-onion-CSavM_BP.js → vue-ui-onion-Dy_aTvGI.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-BEbszAHE.js → vue-ui-parallel-coordinate-plot-D_oo5lQW.js} +3 -3
- package/dist/{vue-ui-quadrant-DPgncxZQ.js → vue-ui-quadrant-CRYpRl_q.js} +3 -3
- package/dist/{vue-ui-quick-chart-CtN8WFnA.js → vue-ui-quick-chart-B1s047tz.js} +3 -3
- package/dist/{vue-ui-radar-KbCqEit5.js → vue-ui-radar-DA7EuchK.js} +3 -3
- package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-z2bsnprP.js} +2 -2
- package/dist/{vue-ui-relation-circle-CCBM5wgz.js → vue-ui-relation-circle-DZ8IiUNu.js} +6 -6
- package/dist/{vue-ui-ridgeline-CL_3ByuI.js → vue-ui-ridgeline-5IWuJgs6.js} +3 -3
- package/dist/{vue-ui-rings-DfLmYMcP.js → vue-ui-rings-gY2f8mVf.js} +3 -3
- package/dist/{vue-ui-scatter-DMbolDeN.js → vue-ui-scatter-OLidvHlx.js} +3 -3
- package/dist/{vue-ui-skeleton-BYXvBTUe.js → vue-ui-skeleton-BaysGsg0.js} +104 -104
- package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-Dn2IR0oC.js} +87 -87
- package/dist/{vue-ui-spark-trend-C1UpWIDp.js → vue-ui-spark-trend-gp5B9uF7.js} +3 -3
- package/dist/{vue-ui-sparkbar-DwXV0oNn.js → vue-ui-sparkbar-8t63RYc7.js} +28 -28
- package/dist/{vue-ui-sparkgauge-CZNlg3nw.js → vue-ui-sparkgauge-BWSykUpn.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-CXJxaEgj.js → vue-ui-sparkhistogram-BEjxKMG5.js} +4 -4
- package/dist/{vue-ui-sparkline-DQEinDMl.js → vue-ui-sparkline-bFF-ZCCH.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-D-9dj2ZF.js → vue-ui-sparkstackbar-HtAlEtzK.js} +3 -3
- package/dist/{vue-ui-stackbar-DKAXnHbn.js → vue-ui-stackbar-CUIWPgfk.js} +3 -3
- package/dist/{vue-ui-strip-plot-AzK7kFIo.js → vue-ui-strip-plot-DwS52yGc.js} +3 -3
- package/dist/{vue-ui-table-BKANEUCO.js → vue-ui-table-BYqPx7k4.js} +13 -13
- package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-CRfjUoa1.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DclProaH.js → vue-ui-table-sparkline-Bvf0ZBOi.js} +4 -4
- package/dist/{vue-ui-thermometer-C2t96ChB.js → vue-ui-thermometer-BB7cHec0.js} +6 -6
- package/dist/{vue-ui-timer-BOIDckAe.js → vue-ui-timer-BVDKvC4v.js} +3 -3
- package/dist/{vue-ui-tiremarks-BKDEmrdG.js → vue-ui-tiremarks-CBVuu_Zi.js} +3 -3
- package/dist/{vue-ui-treemap-CPVCUhJQ.js → vue-ui-treemap-nGgRTw0l.js} +3 -3
- package/dist/{vue-ui-vertical-bar-CpzyHTRu.js → vue-ui-vertical-bar-BJOm2JQh.js} +5 -5
- package/dist/{vue-ui-waffle-svcjPH6f.js → vue-ui-waffle-aCMPaHbw.js} +3 -3
- package/dist/{vue-ui-wheel-Bsrxyhbo.js → vue-ui-wheel-D_q23eOk.js} +34 -34
- package/dist/{vue-ui-word-cloud-DTXolazg.js → vue-ui-word-cloud-C7TMR4Zq.js} +4 -4
- package/dist/{vue-ui-world-BQYgaqx3.js → vue-ui-world-DtMYYQ6T.js} +3 -3
- package/dist/{vue-ui-xy-DB5_PACt.js → vue-ui-xy-Dputm9QT.js} +4 -4
- package/dist/{vue-ui-xy-canvas-JwLwOxS-.js → vue-ui-xy-canvas-BCeQoXNM.js} +4 -4
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, ref as c, computed as g, onMounted as Jt, toRefs as Qt, watch as Te, createElementBlock as p, openBlock as i, unref as r, normalizeStyle as W, normalizeClass as kt, createBlock as q, createCommentVNode as T, createElementVNode as Y, createVNode as xe, createSlots as wt, withCtx as
|
|
1
|
+
import { defineAsyncComponent as H, ref as c, computed as g, onMounted as Jt, toRefs as Qt, watch as Te, createElementBlock as p, openBlock as i, unref as r, normalizeStyle as W, normalizeClass as kt, createBlock as q, createCommentVNode as T, createElementVNode as Y, createVNode as xe, createSlots as wt, withCtx as b, renderSlot as k, normalizeProps as Q, guardReactiveProps as ee, Fragment as de, renderList as he, toDisplayString as te, Teleport as eo, resolveDynamicComponent as to, mergeProps as oo, createTextVNode as $t, nextTick as lo } from "vue";
|
|
2
2
|
import { c as He, t as ao, o as At, f as no, b as so, p as z, e as ro, q as x, h as uo, d as fe, X as io, E as Tt, O as co, a as We, x as vo, y as ho, z as fo } from "./lib-BEpWEyMm.js";
|
|
3
3
|
import { t as po, u as go } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as mo, a as xt } from "./useNestedProp-BOk-tPdu.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
5
|
+
import { u as yo } from "./usePrinter-w23K-ezx.js";
|
|
6
|
+
import { u as bo, B as Co } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as ko } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as wo } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
9
|
import { t as $o } from "./themes-Dw-dDudK.js";
|
|
@@ -36,7 +36,7 @@ const So = ["id"], Oo = {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
setup(_t, { expose: St }) {
|
|
39
|
-
const Ot = H(() => import("./Tooltip-BOXz8skU.js")), Nt = H(() => import("./BaseIcon-Bz-1GQhu.js")), Ft = H(() => import("./vue-ui-accordion-
|
|
39
|
+
const Ot = H(() => import("./Tooltip-BOXz8skU.js")), Nt = H(() => import("./BaseIcon-Bz-1GQhu.js")), Ft = H(() => import("./vue-ui-accordion-CDIzGCG1.js")), Et = H(() => import("./DataTable-BvjacRbw.js")), Pt = H(() => import("./PenAndPaper-CR8q353D.js")), It = H(() => import("./UserOptions-DsTgvAok.js")), Mt = H(() => import("./PackageVersion-C40g0Rfc.js")), Dt = H(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_flow: zt } = mo(), F = _t, G = c(He()), M = c(null), Ye = c(0), Ge = c(0), _e = c(!1), Se = c(""), Ue = c(null), je = c(null), Ve = c(null), oe = c(null), pe = c(null), Xe = c(!1), le = c(null), Oe = c(null), qe = g(() => !!F.dataset && F.dataset.length);
|
|
40
40
|
Jt(() => {
|
|
41
41
|
Xe.value = !0, Ze();
|
|
42
42
|
});
|
|
@@ -44,7 +44,7 @@ const So = ["id"], Oo = {
|
|
|
44
44
|
function Ke(o) {
|
|
45
45
|
U.value = o, Ye.value += 1;
|
|
46
46
|
}
|
|
47
|
-
const e = c(Pe()), { loading: Ne, FINAL_DATASET: ge, manualLoading: Fe } =
|
|
47
|
+
const e = c(Pe()), { loading: Ne, FINAL_DATASET: ge, manualLoading: Fe } = bo({
|
|
48
48
|
...Qt(F),
|
|
49
49
|
FINAL_CONFIG: e,
|
|
50
50
|
prepareConfig: Pe,
|
|
@@ -136,11 +136,11 @@ const So = ["id"], Oo = {
|
|
|
136
136
|
), Te(() => F.dataset, (o) => {
|
|
137
137
|
Array.isArray(o) && o.length > 0 && (Fe.value = !1);
|
|
138
138
|
}, { deep: !0 });
|
|
139
|
-
const { isPrinting: lt, isImaging: at, generatePdf: nt, generateImage: st } =
|
|
139
|
+
const { isPrinting: lt, isImaging: at, generatePdf: nt, generateImage: st } = yo({
|
|
140
140
|
elementId: `flow_${G.value}`,
|
|
141
141
|
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
142
142
|
options: e.value.userOptions.print
|
|
143
|
-
}), Lt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = g(() => ro(e.value.customPalette)),
|
|
143
|
+
}), Lt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = g(() => ro(e.value.customPalette)), ye = g(() => e.value.style.chart.nodes.width), E = c({
|
|
144
144
|
showTable: e.value.table.show,
|
|
145
145
|
showTooltip: e.value.style.chart.tooltip.show
|
|
146
146
|
});
|
|
@@ -185,35 +185,35 @@ const So = ["id"], Oo = {
|
|
|
185
185
|
}), Object.keys(l).forEach((a) => {
|
|
186
186
|
l[a].value = Math.max(l[a].inflow, l[a].outflow);
|
|
187
187
|
});
|
|
188
|
-
const we = ae.value, ze = ct.value.width, J = ct.value.height, D = Object.keys(t).map(Number).sort((a, u) => a - u), $e = D.length || 1, Be = $e > 1 ? ze / ($e - 1) : 0, A = Number(
|
|
188
|
+
const we = ae.value, ze = ct.value.width, J = ct.value.height, D = Object.keys(t).map(Number).sort((a, u) => a - u), $e = D.length || 1, Be = $e > 1 ? ze / ($e - 1) : 0, A = Number(ye.value), I = Number(
|
|
189
189
|
e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
|
|
190
190
|
), ce = Number(e.value.style.chart.nodes.minHeight || 0);
|
|
191
191
|
function v(a) {
|
|
192
192
|
const u = t[a], d = u.length;
|
|
193
193
|
if (!d) return 1 / 0;
|
|
194
194
|
const h = Math.max(0, (d - 1) * I), S = Math.max(0, J - h), B = Math.min(ce, d ? S / d : 0);
|
|
195
|
-
let C = 0, O = u.map((f) => l[f].value || 0),
|
|
195
|
+
let C = 0, O = u.map((f) => l[f].value || 0), y = O.reduce((f, N) => f + N, 0);
|
|
196
196
|
for (let f = 0; f < 12; f += 1) {
|
|
197
|
-
const N =
|
|
197
|
+
const N = y > 0 ? (S - C) / y : 0, L = [];
|
|
198
198
|
for (let P = 0; P < O.length; P += 1) {
|
|
199
199
|
const R = O[P];
|
|
200
200
|
R < 0 || R * N < B && L.push(P);
|
|
201
201
|
}
|
|
202
202
|
if (!L.length) return Math.max(0, N);
|
|
203
203
|
for (const P of L)
|
|
204
|
-
C += B,
|
|
205
|
-
if (
|
|
204
|
+
C += B, y -= O[P], O[P] = -1;
|
|
205
|
+
if (y <= 0) return 0;
|
|
206
206
|
}
|
|
207
|
-
return
|
|
207
|
+
return y > 0 ? Math.max(0, (S - C) / y) : 0;
|
|
208
208
|
}
|
|
209
209
|
const m = D.map(v), V = m.length ? Math.min(...m) : 0, X = {};
|
|
210
210
|
D.forEach((a) => {
|
|
211
211
|
const u = t[a], d = u.length, h = Math.max(0, (d - 1) * I), S = Math.max(0, J - h), B = Math.min(ce, d ? S / d : 0), C = u.map(
|
|
212
212
|
(f) => Math.max(B, (l[f].value || 0) * V)
|
|
213
213
|
), O = C.reduce((f, N) => f + N, 0) + h;
|
|
214
|
-
let
|
|
214
|
+
let y = Math.max(0, (J - O) / 2);
|
|
215
215
|
u.forEach((f, N) => {
|
|
216
|
-
const L = C[N], P = we.left + a * Be, R =
|
|
216
|
+
const L = C[N], P = we.left + a * Be, R = y;
|
|
217
217
|
X[f] = {
|
|
218
218
|
x: P,
|
|
219
219
|
y: R,
|
|
@@ -222,10 +222,10 @@ const So = ["id"], Oo = {
|
|
|
222
222
|
i: N,
|
|
223
223
|
color: l[f].color,
|
|
224
224
|
value: l[f].value
|
|
225
|
-
},
|
|
225
|
+
}, y += L, N < d - 1 && (y += I);
|
|
226
226
|
});
|
|
227
227
|
});
|
|
228
|
-
const
|
|
228
|
+
const yt = [], ve = we.top, Le = {}, Re = {};
|
|
229
229
|
Object.keys(l).forEach((a) => {
|
|
230
230
|
Le[a] = X[a]?.y ?? 0, Re[a] = 0;
|
|
231
231
|
});
|
|
@@ -236,24 +236,24 @@ const So = ["id"], Oo = {
|
|
|
236
236
|
if (!h.children || !h.children.length) return;
|
|
237
237
|
let B = S.y;
|
|
238
238
|
h.children.forEach(({ target: C, value: O }) => {
|
|
239
|
-
const
|
|
240
|
-
let Ae =
|
|
239
|
+
const y = X[C], f = l[C], N = h.outflow > 0 ? O / h.outflow : 0, L = f.inflow > 0 ? O / f.inflow : 0, P = x(B + ve), R = x(B + N * S.height + ve), bt = Le[C];
|
|
240
|
+
let Ae = bt + L * y.height;
|
|
241
241
|
Re[C] += O;
|
|
242
|
-
const qt = f.inflow > 0 && Re[C] >= f.inflow - Vt, Ct =
|
|
242
|
+
const qt = f.inflow > 0 && Re[C] >= f.inflow - Vt, Ct = y.y + y.height;
|
|
243
243
|
(qt || Ae > Ct - Xt) && (Ae = Ct);
|
|
244
|
-
const Kt = x(
|
|
245
|
-
|
|
244
|
+
const Kt = x(bt + ve), Zt = x(Ae + ve);
|
|
245
|
+
yt.push({
|
|
246
246
|
id: He(),
|
|
247
247
|
source: d,
|
|
248
248
|
target: C,
|
|
249
|
-
path: `M ${x(S.x + A)} ${P} L ${x(S.x + A)} ${R} L ${x(
|
|
249
|
+
path: `M ${x(S.x + A)} ${P} L ${x(S.x + A)} ${R} L ${x(y.x)} ${Zt} L ${x(y.x)} ${Kt} Z`,
|
|
250
250
|
value: O,
|
|
251
251
|
sourceColor: h.color,
|
|
252
252
|
targetColor: l[C].color
|
|
253
253
|
}), B = R - ve, Le[C] = Ae;
|
|
254
254
|
});
|
|
255
255
|
});
|
|
256
|
-
}), { nodeCoordinates: X, links:
|
|
256
|
+
}), { nodeCoordinates: X, links: yt };
|
|
257
257
|
}
|
|
258
258
|
const _ = g(() => {
|
|
259
259
|
const o = Rt(ge.value);
|
|
@@ -277,7 +277,7 @@ const So = ["id"], Oo = {
|
|
|
277
277
|
l[s] || (l[s] = []), t[$] || (t[$] = []), l[s].push($), t[$].push(s);
|
|
278
278
|
}), l[o] && l[o].forEach((s) => n.add(s)), t[o] && t[o].forEach((s) => n.add(s)), Array.from(n).concat(o);
|
|
279
279
|
}
|
|
280
|
-
const w = c(null), K = c(null), se = c(null),
|
|
280
|
+
const w = c(null), K = c(null), se = c(null), be = c(!1);
|
|
281
281
|
function Wt(o, l) {
|
|
282
282
|
j.value = [], w.value = Ht(o.name), K.value = o.name;
|
|
283
283
|
const t = o.name, n = rt.value;
|
|
@@ -300,18 +300,18 @@ const So = ["id"], Oo = {
|
|
|
300
300
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: A, seriesIndex: l }), se.value = { datapoint: A }, _e.value = !0;
|
|
301
301
|
let I = "";
|
|
302
302
|
const ce = e.value.style.chart.tooltip.customFormat;
|
|
303
|
-
if (
|
|
303
|
+
if (be.value = !1, fo(ce))
|
|
304
304
|
try {
|
|
305
305
|
const v = ce({
|
|
306
306
|
datapoint: A,
|
|
307
307
|
series: _.value,
|
|
308
308
|
config: e.value
|
|
309
309
|
});
|
|
310
|
-
typeof v == "string" && (Se.value = v,
|
|
310
|
+
typeof v == "string" && (Se.value = v, be.value = !0);
|
|
311
311
|
} catch {
|
|
312
312
|
console.warn("Custom format cannot be applied.");
|
|
313
313
|
}
|
|
314
|
-
if (!
|
|
314
|
+
if (!be.value) {
|
|
315
315
|
const v = e.value.style.chart.tooltip.showPercentage ? `<div>${fe({
|
|
316
316
|
p: e.value.style.chart.tooltip.translations.percentOfTotal,
|
|
317
317
|
v: A.percentOfTotal,
|
|
@@ -538,7 +538,7 @@ const So = ["id"], Oo = {
|
|
|
538
538
|
}), (o, l) => (i(), p("div", {
|
|
539
539
|
ref_key: "flowChart",
|
|
540
540
|
ref: M,
|
|
541
|
-
class: kt(`vue-ui-flow ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
541
|
+
class: kt(`vue-data-ui-component vue-ui-flow ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
542
542
|
style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
543
543
|
id: `flow_${G.value}`,
|
|
544
544
|
onMouseenter: l[2] || (l[2] = () => r(Je)(!0)),
|
|
@@ -614,56 +614,56 @@ const So = ["id"], Oo = {
|
|
|
614
614
|
}, wt({ _: 2 }, [
|
|
615
615
|
o.$slots.menuIcon ? {
|
|
616
616
|
name: "menuIcon",
|
|
617
|
-
fn:
|
|
617
|
+
fn: b(({ isOpen: t, color: n }) => [
|
|
618
618
|
k(o.$slots, "menuIcon", Q(ee({ isOpen: t, color: n })), void 0, !0)
|
|
619
619
|
]),
|
|
620
620
|
key: "0"
|
|
621
621
|
} : void 0,
|
|
622
622
|
o.$slots.optionTooltip ? {
|
|
623
623
|
name: "optionTooltip",
|
|
624
|
-
fn:
|
|
624
|
+
fn: b(() => [
|
|
625
625
|
k(o.$slots, "optionTooltip", {}, void 0, !0)
|
|
626
626
|
]),
|
|
627
627
|
key: "1"
|
|
628
628
|
} : void 0,
|
|
629
629
|
o.$slots.optionPdf ? {
|
|
630
630
|
name: "optionPdf",
|
|
631
|
-
fn:
|
|
631
|
+
fn: b(() => [
|
|
632
632
|
k(o.$slots, "optionPdf", {}, void 0, !0)
|
|
633
633
|
]),
|
|
634
634
|
key: "2"
|
|
635
635
|
} : void 0,
|
|
636
636
|
o.$slots.optionCsv ? {
|
|
637
637
|
name: "optionCsv",
|
|
638
|
-
fn:
|
|
638
|
+
fn: b(() => [
|
|
639
639
|
k(o.$slots, "optionCsv", {}, void 0, !0)
|
|
640
640
|
]),
|
|
641
641
|
key: "3"
|
|
642
642
|
} : void 0,
|
|
643
643
|
o.$slots.optionImg ? {
|
|
644
644
|
name: "optionImg",
|
|
645
|
-
fn:
|
|
645
|
+
fn: b(() => [
|
|
646
646
|
k(o.$slots, "optionImg", {}, void 0, !0)
|
|
647
647
|
]),
|
|
648
648
|
key: "4"
|
|
649
649
|
} : void 0,
|
|
650
650
|
o.$slots.optionTable ? {
|
|
651
651
|
name: "optionTable",
|
|
652
|
-
fn:
|
|
652
|
+
fn: b(() => [
|
|
653
653
|
k(o.$slots, "optionTable", {}, void 0, !0)
|
|
654
654
|
]),
|
|
655
655
|
key: "5"
|
|
656
656
|
} : void 0,
|
|
657
657
|
o.$slots.optionFullscreen ? {
|
|
658
658
|
name: "optionFullscreen",
|
|
659
|
-
fn:
|
|
659
|
+
fn: b(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
660
660
|
k(o.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
661
661
|
]),
|
|
662
662
|
key: "6"
|
|
663
663
|
} : void 0,
|
|
664
664
|
o.$slots.optionAnnotator ? {
|
|
665
665
|
name: "optionAnnotator",
|
|
666
|
-
fn:
|
|
666
|
+
fn: b(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
667
667
|
k(o.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
668
668
|
]),
|
|
669
669
|
key: "7"
|
|
@@ -733,7 +733,7 @@ const So = ["id"], Oo = {
|
|
|
733
733
|
x: t.x,
|
|
734
734
|
y: r(x)(t.absoluteY) + e.value.style.chart.padding.top,
|
|
735
735
|
height: r(x)(t.height),
|
|
736
|
-
width:
|
|
736
|
+
width: ye.value,
|
|
737
737
|
fill: t.color,
|
|
738
738
|
stroke: e.value.style.chart.nodes.stroke,
|
|
739
739
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
@@ -744,7 +744,7 @@ const So = ["id"], Oo = {
|
|
|
744
744
|
}, null, 44, zo))), 256)),
|
|
745
745
|
e.value.style.chart.nodes.labels.show ? (i(), p("g", Bo, [
|
|
746
746
|
(i(!0), p(de, null, he(_.value.nodes, (t, n) => (i(), p("text", {
|
|
747
|
-
x: t.x +
|
|
747
|
+
x: t.x + ye.value / 2,
|
|
748
748
|
y: r(x)(
|
|
749
749
|
t.absoluteY + t.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
750
750
|
) + e.value.style.chart.padding.top,
|
|
@@ -757,7 +757,7 @@ const So = ["id"], Oo = {
|
|
|
757
757
|
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
758
758
|
}) : t.name), 13, Lo))), 256)),
|
|
759
759
|
(i(!0), p(de, null, he(_.value.nodes, (t, n) => (i(), p("text", {
|
|
760
|
-
x: t.x +
|
|
760
|
+
x: t.x + ye.value / 2,
|
|
761
761
|
y: r(x)(
|
|
762
762
|
t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize
|
|
763
763
|
) + e.value.style.chart.padding.top,
|
|
@@ -799,7 +799,7 @@ const So = ["id"], Oo = {
|
|
|
799
799
|
config: Ut.value,
|
|
800
800
|
onClickMarker: l[0] || (l[0] = (t) => De(t))
|
|
801
801
|
}, {
|
|
802
|
-
item:
|
|
802
|
+
item: b(({ legend: t, index: n }) => [
|
|
803
803
|
r(Ne) ? T("", !0) : (i(), p("div", {
|
|
804
804
|
key: 0,
|
|
805
805
|
onClick: (s) => t.segregate(),
|
|
@@ -832,17 +832,17 @@ const So = ["id"], Oo = {
|
|
|
832
832
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
833
833
|
parent: M.value,
|
|
834
834
|
content: Se.value,
|
|
835
|
-
isCustom:
|
|
835
|
+
isCustom: be.value,
|
|
836
836
|
isFullscreen: U.value,
|
|
837
837
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
838
838
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
839
839
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
840
840
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
841
841
|
}, {
|
|
842
|
-
"tooltip-before":
|
|
842
|
+
"tooltip-before": b(() => [
|
|
843
843
|
k(o.$slots, "tooltip-before", Q(ee({ ...se.value })), void 0, !0)
|
|
844
844
|
]),
|
|
845
|
-
"tooltip-after":
|
|
845
|
+
"tooltip-after": b(() => [
|
|
846
846
|
k(o.$slots, "tooltip-after", Q(ee({ ...se.value })), void 0, !0)
|
|
847
847
|
]),
|
|
848
848
|
_: 3
|
|
@@ -852,7 +852,7 @@ const So = ["id"], Oo = {
|
|
|
852
852
|
ref: le,
|
|
853
853
|
onClose: mt
|
|
854
854
|
}), wt({
|
|
855
|
-
content:
|
|
855
|
+
content: b(() => [
|
|
856
856
|
xe(r(Et), {
|
|
857
857
|
colNames: Ce.value.colNames,
|
|
858
858
|
head: Ce.value.head,
|
|
@@ -862,13 +862,13 @@ const So = ["id"], Oo = {
|
|
|
862
862
|
withCloseButton: !e.value.table.useDialog,
|
|
863
863
|
onClose: mt
|
|
864
864
|
}, {
|
|
865
|
-
th:
|
|
865
|
+
th: b(({ th: t }) => [
|
|
866
866
|
Y("div", {
|
|
867
867
|
innerHTML: t,
|
|
868
868
|
style: { display: "flex", "align-items": "center" }
|
|
869
869
|
}, null, 8, Go)
|
|
870
870
|
]),
|
|
871
|
-
td:
|
|
871
|
+
td: b(({ td: t }) => [
|
|
872
872
|
$t(te(t.name || t), 1)
|
|
873
873
|
]),
|
|
874
874
|
_: 1
|
|
@@ -878,14 +878,14 @@ const So = ["id"], Oo = {
|
|
|
878
878
|
}, [
|
|
879
879
|
e.value.table.useDialog ? {
|
|
880
880
|
name: "title",
|
|
881
|
-
fn:
|
|
881
|
+
fn: b(() => [
|
|
882
882
|
$t(te(re.value.title), 1)
|
|
883
883
|
]),
|
|
884
884
|
key: "0"
|
|
885
885
|
} : void 0,
|
|
886
886
|
e.value.table.useDialog ? {
|
|
887
887
|
name: "actions",
|
|
888
|
-
fn:
|
|
888
|
+
fn: b(() => [
|
|
889
889
|
Y("button", {
|
|
890
890
|
tabindex: "0",
|
|
891
891
|
class: "vue-ui-user-options-button",
|
|
@@ -903,7 +903,7 @@ const So = ["id"], Oo = {
|
|
|
903
903
|
r(Ne) ? (i(), q(Co, { key: 8 })) : T("", !0)
|
|
904
904
|
], 46, So));
|
|
905
905
|
}
|
|
906
|
-
}, nl = /* @__PURE__ */ _o(Uo, [["__scopeId", "data-v-
|
|
906
|
+
}, nl = /* @__PURE__ */ _o(Uo, [["__scopeId", "data-v-29a4138e"]]);
|
|
907
907
|
export {
|
|
908
908
|
nl as default
|
|
909
909
|
};
|