vue-data-ui 3.7.15 → 3.8.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 +50 -43
- package/dist/{Arrow-9T8aUCDR.js → Arrow-pvqmWZAQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DZVSjhEw.js → BaseDraggableDialog-BYwNgX3M.js} +2 -2
- package/dist/{BaseIcon-Dl4VBlHV.js → BaseIcon-CALhpING.js} +8 -4
- package/dist/{ColorPicker-BrMbLQds.js → ColorPicker-B_9b0REv.js} +2 -2
- package/dist/{DataTable-Ho3Bf5oq.js → DataTable-Ca1twcf7.js} +2 -2
- package/dist/{Legend-DSyOOSJ1.js → Legend-Djkw4FGq.js} +2 -2
- package/dist/{NonSvgPenAndPaper-MX5IsudW.js → NonSvgPenAndPaper-DCQPVA4M.js} +3 -3
- package/dist/{PackageVersion-BAF3mEBQ.js → PackageVersion-B9RA2_BM.js} +1 -1
- package/dist/{PenAndPaper-kymjF6_b.js → PenAndPaper-DscVdZ1u.js} +3 -3
- package/dist/{Shape-rPzC8L-O.js → Shape-BEGGcaL8.js} +1 -1
- package/dist/{Slicer-DScoMPmj.js → Slicer-DaUi0o8i.js} +2 -2
- package/dist/{SlicerPreview-B1QUTxTZ.js → SlicerPreview-Bk-h_ANq.js} +2 -2
- package/dist/{SparkTooltip-reDvtQYF.js → SparkTooltip-BWdCP-h3.js} +1 -1
- package/dist/{Title-Hk29BxeL.js → Title-CgkWUXeV.js} +1 -1
- package/dist/{Tooltip-De7i-i20.js → Tooltip-OHx7yHlS.js} +1 -1
- package/dist/{UserOptions-DgscxIaa.js → UserOptions-ChRXLqps.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +5 -0
- 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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BG68zYm5.js → dom-to-png-VQEAYRVr.js} +1 -1
- package/dist/{img-BYzbY8TZ.js → img-CwrkWkkl.js} +1 -1
- package/dist/{lib-DUaaQGCv.js → lib-qMPkcvmh.js} +194 -179
- package/dist/{pdf--SSvtzbF.js → pdf-BMMrFX8S.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +147 -6
- package/dist/types/vue-ui-dag.d.ts +16 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBJqy2aF.js → useAutoSizeLabelsInsideViewbox-CY90KinM.js} +1 -1
- package/dist/{useNestedProp-CVGae3Qt.js → useNestedProp-DOOBu_sL.js} +269 -185
- package/dist/usePanZoom-DMfuOfaC.js +135 -0
- package/dist/{usePrinter-BdVu83IN.js → usePrinter-CjGh4mFJ.js} +2 -2
- package/dist/vue-data-ui-BgQPEjgE.js +351 -0
- package/dist/vue-data-ui.js +202 -216
- package/dist/{vue-ui-3d-bar-Cg4nzpjZ.js → vue-ui-3d-bar-BHcSmBFt.js} +6 -6
- package/dist/{vue-ui-accordion-B3SlkXqV.js → vue-ui-accordion-BWfQ8Imt.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BGA_e57_.js → vue-ui-age-pyramid-CKtsF5IW.js} +25 -25
- package/dist/{vue-ui-annotator-BHmNl_oD.js → vue-ui-annotator-DQmmDTg7.js} +7 -7
- package/dist/{vue-ui-bullet-B8Td03RZ.js → vue-ui-bullet-CZKHPSsG.js} +7 -7
- package/dist/{vue-ui-candlestick-aRpv_WG-.js → vue-ui-candlestick-DW7yeLnE.js} +39 -39
- package/dist/{vue-ui-carousel-table-yjrmp9Q4.js → vue-ui-carousel-table-Bv0TZYW1.js} +4 -4
- package/dist/{vue-ui-chestnut-mlal6Cjv.js → vue-ui-chestnut-BUqGBycr.js} +5 -5
- package/dist/{vue-ui-chord-Ddbwnzl7.js → vue-ui-chord-Awtzhq_0.js} +8 -8
- package/dist/{vue-ui-circle-pack-DUw81Lbf.js → vue-ui-circle-pack-WTa2Mj2O.js} +37 -37
- package/dist/vue-ui-cursor-D6_m463R.js +252 -0
- package/dist/vue-ui-dag-tle30Ehr.js +2727 -0
- package/dist/{vue-ui-dashboard-BzIopzfw.js → vue-ui-dashboard-BLgMwKmT.js} +68 -68
- package/dist/vue-ui-digits-DIZ8pi6C.js +200 -0
- package/dist/{vue-ui-donut-D-uqv9-W.js → vue-ui-donut-DY8Q-PAg.js} +88 -88
- package/dist/{vue-ui-donut-evolution-C25j-w7G.js → vue-ui-donut-evolution-DGnq03PX.js} +85 -85
- package/dist/{vue-ui-dumbbell-DaBN6kZz.js → vue-ui-dumbbell-xRMH2Mlv.js} +33 -33
- package/dist/{vue-ui-flow-LBrbktKK.js → vue-ui-flow-C0a8rOyT.js} +42 -42
- package/dist/{vue-ui-funnel-StsSjaZJ.js → vue-ui-funnel-D6krkF1a.js} +19 -19
- package/dist/{vue-ui-galaxy-DATC0Ww1.js → vue-ui-galaxy-BCkJt9OE.js} +59 -59
- package/dist/{vue-ui-gauge-BuSVuoeo.js → vue-ui-gauge-BaH-VYAi.js} +25 -25
- package/dist/{vue-ui-gizmo-B4Du388h.js → vue-ui-gizmo-BnCONs1t.js} +3 -3
- package/dist/{vue-ui-heatmap-C7jHSpqL.js → vue-ui-heatmap-BYoD6XaS.js} +67 -67
- package/dist/{vue-ui-history-plot-CMGhB2Zv.js → vue-ui-history-plot-BZBtIBsY.js} +43 -43
- package/dist/{vue-ui-horizontal-bar-BlG3kfkk.js → vue-ui-horizontal-bar-DsDDKUa6.js} +69 -69
- package/dist/{vue-ui-kpi-CTUnzHcT.js → vue-ui-kpi-Dn750UNZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-DYMh6g7y.js → vue-ui-mini-loader-44NP38K0.js} +2 -2
- package/dist/{vue-ui-molecule-BNwKqzIg.js → vue-ui-molecule-C994_mOK.js} +53 -53
- package/dist/{vue-ui-mood-radar-Bpfe33cj.js → vue-ui-mood-radar-BI2SAtcM.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CG6vyTLr.js → vue-ui-nested-donuts-CSF_bA-I.js} +38 -38
- package/dist/{vue-ui-onion-BNrW85xB.js → vue-ui-onion-L5ULuI3B.js} +38 -38
- package/dist/{vue-ui-parallel-coordinate-plot-prQ8DLgP.js → vue-ui-parallel-coordinate-plot-CYetuoa5.js} +43 -43
- package/dist/{vue-ui-quadrant-mFM3WtKm.js → vue-ui-quadrant-Diwm1-e6.js} +8 -8
- package/dist/{vue-ui-quick-chart-CmJEoZEj.js → vue-ui-quick-chart-YBj4Iyk6.js} +51 -51
- package/dist/{vue-ui-radar-MheG5gvf.js → vue-ui-radar-D76Mi-4u.js} +41 -41
- package/dist/{vue-ui-rating-BAfHKHmb.js → vue-ui-rating-CJjSt6-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-BPZDXdVc.js → vue-ui-relation-circle-BlYazckd.js} +19 -19
- package/dist/{vue-ui-ridgeline-BPDURc5t.js → vue-ui-ridgeline-DW8JqGxN.js} +8 -8
- package/dist/{vue-ui-rings-ByeUycTV.js → vue-ui-rings-De3shW_r.js} +37 -37
- package/dist/{vue-ui-scatter-HkSLoM2F.js → vue-ui-scatter-oDhPqRJq.js} +8 -8
- package/dist/{vue-ui-skeleton-DtciU6S2.js → vue-ui-skeleton-BUIXG_mY.js} +3 -3
- package/dist/vue-ui-smiley-Cni8Q56U.js +377 -0
- package/dist/{vue-ui-spark-trend-lSw8HYoA.js → vue-ui-spark-trend-D1Zt5np6.js} +16 -16
- package/dist/{vue-ui-sparkbar-DZlTPWdS.js → vue-ui-sparkbar-CdmXCSnj.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Cwl9Ksz2.js → vue-ui-sparkgauge-Dn2PQhZj.js} +17 -17
- package/dist/{vue-ui-sparkhistogram-Bq2DS4V0.js → vue-ui-sparkhistogram-nrkglHJk.js} +4 -4
- package/dist/{vue-ui-sparkline-DbkCbelr.js → vue-ui-sparkline-tz8fAf2C.js} +31 -31
- package/dist/{vue-ui-sparkstackbar-DWDEh2j6.js → vue-ui-sparkstackbar-BQPSsF5Q.js} +3 -3
- package/dist/{vue-ui-stackbar-BhbkdK0G.js → vue-ui-stackbar-DMO3YIQp.js} +9 -9
- package/dist/{vue-ui-stackline-DqKYCBDP.js → vue-ui-stackline-BQo4KoIK.js} +55 -55
- package/dist/{vue-ui-strip-plot-BUbyj8j8.js → vue-ui-strip-plot-CJpmLgCV.js} +28 -28
- package/dist/{vue-ui-table-B1bx46AB.js → vue-ui-table-Cp4ee_1a.js} +5 -5
- package/dist/{vue-ui-table-heatmap-kuly5Mc1.js → vue-ui-table-heatmap-1qpMxFyu.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B9YLMDpp.js → vue-ui-table-sparkline-wSJjRJc4.js} +4 -4
- package/dist/{vue-ui-thermometer-DGM9Cnnw.js → vue-ui-thermometer-DA8pG0Tr.js} +19 -19
- package/dist/{vue-ui-timer-C1uo5WJb.js → vue-ui-timer-Bc0J-YWP.js} +12 -12
- package/dist/{vue-ui-tiremarks-B-xq7Ivj.js → vue-ui-tiremarks-DqYsca6Q.js} +6 -6
- package/dist/{vue-ui-treemap-VI1FYNqD.js → vue-ui-treemap-BQsPzEFA.js} +51 -51
- package/dist/{vue-ui-waffle-WdacXwVf.js → vue-ui-waffle-5wkXlR4p.js} +69 -69
- package/dist/{vue-ui-wheel-C7yfIwbK.js → vue-ui-wheel-CkZko1RX.js} +6 -6
- package/dist/{vue-ui-word-cloud-BlNxODSZ.js → vue-ui-word-cloud-52bv_Ba-.js} +41 -41
- package/dist/{vue-ui-world-vfrFZPI1.js → vue-ui-world-oIyf91PY.js} +6 -6
- package/dist/{vue-ui-xy-DHN5H4Ln.js → vue-ui-xy-DIEBv1b8.js} +75 -75
- package/dist/{vue-ui-xy-canvas-B3oAOFin.js → vue-ui-xy-canvas-pnm8ar87.js} +127 -127
- package/package.json +4 -3
- package/dist/usePanZoom-DZtyJi5q.js +0 -127
- package/dist/vue-data-ui-BcTiYl7u.js +0 -337
- package/dist/vue-ui-cursor-CIynd5w9.js +0 -229
- package/dist/vue-ui-digits-BDVx5bMH.js +0 -154
- package/dist/vue-ui-smiley-B8k0b8-R.js +0 -852
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { ref as d, computed as U, onMounted as j, onUnmounted as J, watchEffect as K, watch as Q } from "vue";
|
|
2
|
+
function O(c, z = { x: 0, y: 0, width: 100, height: 100 }, V = 1, m, M = null) {
|
|
3
|
+
const a = d({ ...z }), n = d({ ...a.value }), r = d(1), E = d(!1), L = d(!1), S = d(0), D = d(null), x = d({ x: 0, y: 0 }), k = U(
|
|
4
|
+
() => n.value.x !== a.value.x || n.value.y !== a.value.y || n.value.width !== a.value.width || n.value.height !== a.value.height
|
|
5
|
+
);
|
|
6
|
+
let y = null;
|
|
7
|
+
function T(e) {
|
|
8
|
+
if (e.length < 2) return 0;
|
|
9
|
+
const t = e[0].clientX - e[1].clientX, o = e[0].clientY - e[1].clientY;
|
|
10
|
+
return Math.hypot(t, o);
|
|
11
|
+
}
|
|
12
|
+
function P(e) {
|
|
13
|
+
const t = c.value;
|
|
14
|
+
if (!t) return { x: 0, y: 0 };
|
|
15
|
+
const o = t.createSVGPoint();
|
|
16
|
+
o.x = e.clientX, o.y = e.clientY;
|
|
17
|
+
const u = t.getScreenCTM()?.inverse();
|
|
18
|
+
return u ? o.matrixTransform(u) : { x: 0, y: 0 };
|
|
19
|
+
}
|
|
20
|
+
function H(e, t) {
|
|
21
|
+
const o = c.value;
|
|
22
|
+
if (!o) return { dx: 0, dy: 0 };
|
|
23
|
+
const u = Math.max(1, o.clientWidth), l = Math.max(1, o.clientHeight), i = n.value.width / u, v = n.value.height / l;
|
|
24
|
+
return { dx: e * i, dy: t * v };
|
|
25
|
+
}
|
|
26
|
+
function Y(e) {
|
|
27
|
+
E.value = !0;
|
|
28
|
+
const t = e.touches?.[0] || e;
|
|
29
|
+
x.value = { x: t.clientX, y: t.clientY }, c.value && (c.value.style.cursor = "grabbing");
|
|
30
|
+
}
|
|
31
|
+
function X(e) {
|
|
32
|
+
if (!E.value) return;
|
|
33
|
+
const t = e.touches?.[0] || e, o = t.clientX - x.value.x, u = t.clientY - x.value.y;
|
|
34
|
+
if (o === 0 && u === 0) return;
|
|
35
|
+
const { dx: l, dy: i } = H(o, u);
|
|
36
|
+
n.value.x -= l, n.value.y -= i, x.value = { x: t.clientX, y: t.clientY };
|
|
37
|
+
}
|
|
38
|
+
function f() {
|
|
39
|
+
E.value = !1, c.value && (c.value.style.cursor = "");
|
|
40
|
+
}
|
|
41
|
+
function Z(e) {
|
|
42
|
+
M && M(), e.preventDefault();
|
|
43
|
+
const t = e.deltaY > 0 ? 0.9 : 1.1;
|
|
44
|
+
w(t, P(e));
|
|
45
|
+
}
|
|
46
|
+
function A(e) {
|
|
47
|
+
e.preventDefault();
|
|
48
|
+
const t = P(e), o = 1.5 * (1 + V / 100);
|
|
49
|
+
b(o, t);
|
|
50
|
+
}
|
|
51
|
+
function b(e, t) {
|
|
52
|
+
y && cancelAnimationFrame(y);
|
|
53
|
+
const o = r.value, u = o * e;
|
|
54
|
+
let l = null;
|
|
55
|
+
const i = 200, v = (h) => h < 0.5 ? 2 * h * h : -1 + (4 - 2 * h) * h, s = (h) => {
|
|
56
|
+
l == null && (l = h);
|
|
57
|
+
const q = Math.min((h - l) / i, 1), N = (o + (u - o) * v(q)) / r.value;
|
|
58
|
+
w(N, t), q < 1 ? y = requestAnimationFrame(s) : y = null;
|
|
59
|
+
};
|
|
60
|
+
requestAnimationFrame(s);
|
|
61
|
+
}
|
|
62
|
+
function w(e, t) {
|
|
63
|
+
const o = r.value * e, u = o / r.value, l = n.value.width / u, i = n.value.height / u, v = (t.x - n.value.x) * (1 - 1 / u), s = (t.y - n.value.y) * (1 - 1 / u);
|
|
64
|
+
n.value.x += v, n.value.y += s, n.value.width = l, n.value.height = i, r.value = o;
|
|
65
|
+
}
|
|
66
|
+
function B(e) {
|
|
67
|
+
e.touches.length === 2 ? (L.value = !0, S.value = T(e.touches), D.value = { ...n.value }) : (e.preventDefault(), Y(e));
|
|
68
|
+
}
|
|
69
|
+
function C(e) {
|
|
70
|
+
if (L.value && e.touches.length === 2) {
|
|
71
|
+
e.preventDefault();
|
|
72
|
+
const t = T(e.touches);
|
|
73
|
+
if (S.value) {
|
|
74
|
+
const o = t / S.value;
|
|
75
|
+
c.value.getBoundingClientRect();
|
|
76
|
+
const l = (e.touches[0].clientX + e.touches[1].clientX) / 2, i = (e.touches[0].clientY + e.touches[1].clientY) / 2, v = P({ clientX: l, clientY: i });
|
|
77
|
+
n.value = { ...D.value }, w(o, v);
|
|
78
|
+
}
|
|
79
|
+
} else
|
|
80
|
+
e.preventDefault(), X(e);
|
|
81
|
+
}
|
|
82
|
+
function g(e) {
|
|
83
|
+
e.touches.length < 2 && (L.value = !1), f();
|
|
84
|
+
}
|
|
85
|
+
function I(e = !1) {
|
|
86
|
+
if (!e) {
|
|
87
|
+
n.value = { ...a.value }, r.value = 1;
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const t = { ...n.value }, o = r.value, u = 300;
|
|
91
|
+
let l = null;
|
|
92
|
+
const i = (v) => {
|
|
93
|
+
l == null && (l = v);
|
|
94
|
+
const s = Math.min((v - l) / u, 1);
|
|
95
|
+
n.value = {
|
|
96
|
+
x: t.x + (a.value.x - t.x) * s,
|
|
97
|
+
y: t.y + (a.value.y - t.y) * s,
|
|
98
|
+
width: t.width + (a.value.width - t.width) * s,
|
|
99
|
+
height: t.height + (a.value.height - t.height) * s
|
|
100
|
+
}, r.value = o + (1 - o) * s, s < 1 && requestAnimationFrame(i);
|
|
101
|
+
};
|
|
102
|
+
requestAnimationFrame(i);
|
|
103
|
+
}
|
|
104
|
+
function W(e, t = {}) {
|
|
105
|
+
const { overwriteCurrentIfNotZoomed: o = !0 } = t, u = n.value.x !== a.value.x || n.value.y !== a.value.y || n.value.width !== a.value.width || n.value.height !== a.value.height;
|
|
106
|
+
a.value = { ...e }, !u && o && (n.value = { ...a.value }, r.value = 1);
|
|
107
|
+
}
|
|
108
|
+
function F() {
|
|
109
|
+
const e = c.value;
|
|
110
|
+
e && (e.addEventListener("mousedown", Y), e.addEventListener("mousemove", X), e.addEventListener("mouseup", f), e.addEventListener("mouseleave", f), e.addEventListener("wheel", Z, { passive: !1 }), e.addEventListener("dblclick", A), e.addEventListener("touchstart", B, { passive: !1 }), e.addEventListener("touchmove", C, { passive: !1 }), e.addEventListener("touchend", g), e.addEventListener("touchcancel", g));
|
|
111
|
+
}
|
|
112
|
+
function p() {
|
|
113
|
+
const e = c.value;
|
|
114
|
+
e && (e.removeEventListener("mousedown", Y), e.removeEventListener("mousemove", X), e.removeEventListener("mouseup", f), e.removeEventListener("mouseleave", f), e.removeEventListener("wheel", Z), e.removeEventListener("dblclick", A), e.removeEventListener("touchstart", B), e.removeEventListener("touchmove", C), e.removeEventListener("touchend", g), e.removeEventListener("touchcancel", g));
|
|
115
|
+
}
|
|
116
|
+
j(() => {
|
|
117
|
+
(!m || m.value) && F();
|
|
118
|
+
}), J(p), K(() => {
|
|
119
|
+
if (m)
|
|
120
|
+
return m.value ? F() : p(), () => p();
|
|
121
|
+
}), Q(c, () => {
|
|
122
|
+
p(), (!m || m.value) && F();
|
|
123
|
+
});
|
|
124
|
+
function G(e, t = !1) {
|
|
125
|
+
const o = {
|
|
126
|
+
x: n.value.x + n.value.width / 2,
|
|
127
|
+
y: n.value.y + n.value.height / 2
|
|
128
|
+
};
|
|
129
|
+
t ? b(e, o) : w(e, o);
|
|
130
|
+
}
|
|
131
|
+
return { viewBox: n, resetZoom: I, isZoom: k, setInitialViewBox: W, scale: r, zoomByFactor: G };
|
|
132
|
+
}
|
|
133
|
+
export {
|
|
134
|
+
O as u
|
|
135
|
+
};
|
|
@@ -10,7 +10,7 @@ function m({
|
|
|
10
10
|
!a || r.value || (r.value = !0, clearTimeout(l.value), l.value = setTimeout(async () => {
|
|
11
11
|
if (a)
|
|
12
12
|
try {
|
|
13
|
-
const { default: e } = await import("./pdf
|
|
13
|
+
const { default: e } = await import("./pdf-BMMrFX8S.js");
|
|
14
14
|
await e({
|
|
15
15
|
domElement: document.getElementById(u),
|
|
16
16
|
fileName: i,
|
|
@@ -30,7 +30,7 @@ function m({
|
|
|
30
30
|
!a || o.value || (o.value = !0, clearTimeout(l.value), l.value = setTimeout(async () => {
|
|
31
31
|
if (a)
|
|
32
32
|
try {
|
|
33
|
-
const { default: e } = await import("./img-
|
|
33
|
+
const { default: e } = await import("./img-CwrkWkkl.js");
|
|
34
34
|
await e({
|
|
35
35
|
domElement: document.getElementById(u),
|
|
36
36
|
fileName: i,
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import { toRefs as Ut, defineAsyncComponent as e, computed as c, ref as o, onMounted as ht, watch as tt, shallowReactive as bt, createElementBlock as vt, createBlock as d, openBlock as g, normalizeStyle as ft, createElementVNode as St, createTextVNode as kt, createCommentVNode as et, toDisplayString as Ct, resolveDynamicComponent as yt, mergeProps as Tt, toHandlers as Pt, createSlots as At, renderList as Dt, withCtx as It, renderSlot as zt, normalizeProps as Lt, guardReactiveProps as Mt } from "vue";
|
|
2
|
+
import ot from "./BaseIcon-CALhpING.js";
|
|
3
|
+
const Ot = { style: { width: "36px" } }, xt = {
|
|
4
|
+
__name: "vue-data-ui",
|
|
5
|
+
props: {
|
|
6
|
+
component: { type: String },
|
|
7
|
+
dataset: { type: [Object, Array, Number, String] },
|
|
8
|
+
config: { type: Object }
|
|
9
|
+
},
|
|
10
|
+
emits: [
|
|
11
|
+
"selectLegend",
|
|
12
|
+
"selectDatapoint",
|
|
13
|
+
"toggleOpenState",
|
|
14
|
+
"saveAnnotations",
|
|
15
|
+
"selectRoot",
|
|
16
|
+
"selectBranch",
|
|
17
|
+
"selectNut",
|
|
18
|
+
"change",
|
|
19
|
+
"selectPlot",
|
|
20
|
+
"selectSide",
|
|
21
|
+
"rate",
|
|
22
|
+
"postImage",
|
|
23
|
+
"hoverIndex",
|
|
24
|
+
"selectX",
|
|
25
|
+
"toggleLock",
|
|
26
|
+
"toggleTooltip",
|
|
27
|
+
"start",
|
|
28
|
+
"play",
|
|
29
|
+
"pause",
|
|
30
|
+
"reset",
|
|
31
|
+
"restart",
|
|
32
|
+
"lap",
|
|
33
|
+
"toggleAnnotator",
|
|
34
|
+
"selectGroup",
|
|
35
|
+
"selectRibbon",
|
|
36
|
+
"toggleTable",
|
|
37
|
+
"resetZoom",
|
|
38
|
+
"showSeries",
|
|
39
|
+
"hideSeries",
|
|
40
|
+
"toggleZoom",
|
|
41
|
+
"onNodeClick",
|
|
42
|
+
"onMidpointEnter",
|
|
43
|
+
"onMidpointLeave"
|
|
44
|
+
],
|
|
45
|
+
setup(it, { expose: at, emit: nt }) {
|
|
46
|
+
const a = it, { component: Nt, dataset: lt, config: rt } = Ut(a), p = {
|
|
47
|
+
VueUi3dBar: e(() => import("./vue-ui-3d-bar-BHcSmBFt.js").then((t) => t.b)),
|
|
48
|
+
VueUiAgePyramid: e(() => import("./vue-ui-age-pyramid-CKtsF5IW.js").then((t) => t.b)),
|
|
49
|
+
VueUiAnnotator: e(() => import("./vue-ui-annotator-DQmmDTg7.js")),
|
|
50
|
+
VueUiCandlestick: e(() => import("./vue-ui-candlestick-DW7yeLnE.js").then((t) => t.b)),
|
|
51
|
+
VueUiChestnut: e(() => import("./vue-ui-chestnut-BUqGBycr.js").then((t) => t.b)),
|
|
52
|
+
VueUiDashboard: e(() => import("./vue-ui-dashboard-BLgMwKmT.js")),
|
|
53
|
+
VueUiDigits: e(() => import("./vue-ui-digits-DIZ8pi6C.js")),
|
|
54
|
+
VueUiDonut: e(() => import("./vue-ui-donut-DY8Q-PAg.js").then((t) => t.a)),
|
|
55
|
+
VueUiDonutEvolution: e(() => import("./vue-ui-donut-evolution-DGnq03PX.js").then((t) => t.b)),
|
|
56
|
+
VueUiGalaxy: e(() => import("./vue-ui-galaxy-BCkJt9OE.js").then((t) => t.b)),
|
|
57
|
+
VueUiGauge: e(() => import("./vue-ui-gauge-BaH-VYAi.js").then((t) => t.b)),
|
|
58
|
+
VueUiHeatmap: e(() => import("./vue-ui-heatmap-BYoD6XaS.js").then((t) => t.b)),
|
|
59
|
+
VueUiKpi: e(() => import("./vue-ui-kpi-Dn750UNZ.js")),
|
|
60
|
+
VueUiMiniLoader: e(() => import("./vue-ui-mini-loader-44NP38K0.js")),
|
|
61
|
+
VueUiMolecule: e(() => import("./vue-ui-molecule-C994_mOK.js").then((t) => t.b)),
|
|
62
|
+
VueUiMoodRadar: e(() => import("./vue-ui-mood-radar-BI2SAtcM.js").then((t) => t.b)),
|
|
63
|
+
VueUiNestedDonuts: e(() => import("./vue-ui-nested-donuts-CSF_bA-I.js").then((t) => t.b)),
|
|
64
|
+
VueUiOnion: e(() => import("./vue-ui-onion-L5ULuI3B.js").then((t) => t.b)),
|
|
65
|
+
VueUiQuadrant: e(() => import("./vue-ui-quadrant-Diwm1-e6.js").then((t) => t.b)),
|
|
66
|
+
VueUiRadar: e(() => import("./vue-ui-radar-D76Mi-4u.js").then((t) => t.b)),
|
|
67
|
+
VueUiRating: e(() => import("./vue-ui-rating-CJjSt6-z.js")),
|
|
68
|
+
VueUiRelationCircle: e(() => import("./vue-ui-relation-circle-BlYazckd.js").then((t) => t.b)),
|
|
69
|
+
VueUiRings: e(() => import("./vue-ui-rings-De3shW_r.js").then((t) => t.b)),
|
|
70
|
+
VueUiScatter: e(() => import("./vue-ui-scatter-oDhPqRJq.js").then((t) => t.b)),
|
|
71
|
+
VueUiSkeleton: e(() => import("./vue-ui-skeleton-BUIXG_mY.js")),
|
|
72
|
+
VueUiSmiley: e(() => import("./vue-ui-smiley-Cni8Q56U.js")),
|
|
73
|
+
VueUiSparkbar: e(() => import("./vue-ui-sparkbar-CdmXCSnj.js").then((t) => t.a)),
|
|
74
|
+
VueUiSparkgauge: e(() => import("./vue-ui-sparkgauge-Dn2PQhZj.js").then((t) => t.a)),
|
|
75
|
+
VueUiSparkHistogram: e(() => import("./vue-ui-sparkhistogram-nrkglHJk.js").then((t) => t.b)),
|
|
76
|
+
VueUiSparkline: e(() => import("./vue-ui-sparkline-tz8fAf2C.js").then((t) => t.b)),
|
|
77
|
+
VueUiSparkStackbar: e(() => import("./vue-ui-sparkstackbar-BQPSsF5Q.js").then((t) => t.b)),
|
|
78
|
+
VueUiTable: e(() => import("./vue-ui-table-Cp4ee_1a.js")),
|
|
79
|
+
VueUiTableSparkline: e(() => import("./vue-ui-table-sparkline-wSJjRJc4.js").then((t) => t.b)),
|
|
80
|
+
VueUiThermometer: e(() => import("./vue-ui-thermometer-DA8pG0Tr.js").then((t) => t.b)),
|
|
81
|
+
VueUiTiremarks: e(() => import("./vue-ui-tiremarks-DqYsca6Q.js").then((t) => t.b)),
|
|
82
|
+
VueUiTreemap: e(() => import("./vue-ui-treemap-BQsPzEFA.js").then((t) => t.b)),
|
|
83
|
+
VueUiVerticalBar: e(() => import("./vue-ui-horizontal-bar-DsDDKUa6.js").then((t) => t.b)),
|
|
84
|
+
// legacy support
|
|
85
|
+
VueUiHorizontalBar: e(() => import("./vue-ui-horizontal-bar-DsDDKUa6.js").then((t) => t.b)),
|
|
86
|
+
// v3 renaming
|
|
87
|
+
VueUiWaffle: e(() => import("./vue-ui-waffle-5wkXlR4p.js").then((t) => t.b)),
|
|
88
|
+
VueUiWheel: e(() => import("./vue-ui-wheel-CkZko1RX.js").then((t) => t.b)),
|
|
89
|
+
VueUiXy: e(() => import("./vue-ui-xy-DIEBv1b8.js").then((t) => t.a)),
|
|
90
|
+
VueUiTableHeatmap: e(() => import("./vue-ui-table-heatmap-1qpMxFyu.js").then((t) => t.b)),
|
|
91
|
+
VueUiAccordion: e(() => import("./vue-ui-accordion-BWfQ8Imt.js")),
|
|
92
|
+
VueUiQuickChart: e(() => import("./vue-ui-quick-chart-YBj4Iyk6.js").then((t) => t.b)),
|
|
93
|
+
VueUiCursor: e(() => import("./vue-ui-cursor-D6_m463R.js")),
|
|
94
|
+
VueUiSparkTrend: e(() => import("./vue-ui-spark-trend-D1Zt5np6.js").then((t) => t.b)),
|
|
95
|
+
VueUiStripPlot: e(() => import("./vue-ui-strip-plot-CJpmLgCV.js").then((t) => t.b)),
|
|
96
|
+
VueUiDumbbell: e(() => import("./vue-ui-dumbbell-xRMH2Mlv.js").then((t) => t.b)),
|
|
97
|
+
VueUiWordCloud: e(() => import("./vue-ui-word-cloud-52bv_Ba-.js").then((t) => t.b)),
|
|
98
|
+
VueUiXyCanvas: e(() => import("./vue-ui-xy-canvas-pnm8ar87.js").then((t) => t.b)),
|
|
99
|
+
VueUiFlow: e(() => import("./vue-ui-flow-C0a8rOyT.js").then((t) => t.b)),
|
|
100
|
+
VueUiParallelCoordinatePlot: e(() => import("./vue-ui-parallel-coordinate-plot-CYetuoa5.js").then((t) => t.b)),
|
|
101
|
+
VueUiTimer: e(() => import("./vue-ui-timer-Bc0J-YWP.js")),
|
|
102
|
+
VueUiCarouselTable: e(() => import("./vue-ui-carousel-table-Bv0TZYW1.js")),
|
|
103
|
+
VueUiGizmo: e(() => import("./vue-ui-gizmo-BnCONs1t.js")),
|
|
104
|
+
VueUiStackbar: e(() => import("./vue-ui-stackbar-DMO3YIQp.js").then((t) => t.b)),
|
|
105
|
+
VueUiStackline: e(() => import("./vue-ui-stackline-BQo4KoIK.js").then((t) => t.b)),
|
|
106
|
+
VueUiBullet: e(() => import("./vue-ui-bullet-CZKHPSsG.js").then((t) => t.b)),
|
|
107
|
+
VueUiFunnel: e(() => import("./vue-ui-funnel-D6krkF1a.js").then((t) => t.b)),
|
|
108
|
+
VueUiHistoryPlot: e(() => import("./vue-ui-history-plot-BZBtIBsY.js").then((t) => t.b)),
|
|
109
|
+
VueUiCirclePack: e(() => import("./vue-ui-circle-pack-WTa2Mj2O.js").then((t) => t.b)),
|
|
110
|
+
VueUiWorld: e(() => import("./vue-ui-world-oIyf91PY.js")),
|
|
111
|
+
VueUiRidgeline: e(() => import("./vue-ui-ridgeline-DW8JqGxN.js").then((t) => t.b)),
|
|
112
|
+
VueUiChord: e(() => import("./vue-ui-chord-Awtzhq_0.js").then((t) => t.b)),
|
|
113
|
+
VueUiDag: e(() => import("./vue-ui-dag-tle30Ehr.js").then((t) => t.b))
|
|
114
|
+
}, ut = {
|
|
115
|
+
VueUi3dBar: ["config", "dataset"],
|
|
116
|
+
VueUiAgePyramid: ["config", "dataset"],
|
|
117
|
+
VueUiAnnotator: ["config", "dataset"],
|
|
118
|
+
VueUiCandlestick: ["config", "dataset"],
|
|
119
|
+
VueUiChestnut: ["config", "dataset"],
|
|
120
|
+
VueUiDashboard: ["config", "dataset"],
|
|
121
|
+
VueUiDigits: ["config", "dataset"],
|
|
122
|
+
VueUiDonut: ["config", "dataset"],
|
|
123
|
+
VueUiDonutEvolution: ["config", "dataset"],
|
|
124
|
+
VueUiGalaxy: ["config", "dataset"],
|
|
125
|
+
VueUiGauge: ["config", "dataset"],
|
|
126
|
+
VueUiHeatmap: ["config", "dataset"],
|
|
127
|
+
VueUiKpi: ["config", "dataset"],
|
|
128
|
+
VueUiMiniLoader: ["config"],
|
|
129
|
+
VueUiMolecule: ["config", "dataset"],
|
|
130
|
+
VueUiMoodRadar: ["config", "dataset"],
|
|
131
|
+
VueUiNestedDonuts: ["config", "dataset"],
|
|
132
|
+
VueUiOnion: ["config", "dataset"],
|
|
133
|
+
VueUiQuadrant: ["config", "dataset"],
|
|
134
|
+
VueUiRadar: ["config", "dataset"],
|
|
135
|
+
VueUiRating: ["config", "dataset"],
|
|
136
|
+
VueUiRelationCircle: ["config", "dataset"],
|
|
137
|
+
VueUiRings: ["config", "dataset"],
|
|
138
|
+
VueUiScatter: ["config", "dataset"],
|
|
139
|
+
VueUiSkeleton: ["config"],
|
|
140
|
+
VueUiSmiley: ["config", "dataset"],
|
|
141
|
+
VueUiSparkbar: ["config", "dataset"],
|
|
142
|
+
VueUiSparkgauge: ["config", "dataset"],
|
|
143
|
+
VueUiSparkHistogram: ["config", "dataset"],
|
|
144
|
+
VueUiSparkline: ["config", "dataset"],
|
|
145
|
+
VueUiSparkStackbar: ["config", "dataset"],
|
|
146
|
+
VueUiTable: ["config", "dataset"],
|
|
147
|
+
VueUiTableSparkline: ["config", "dataset"],
|
|
148
|
+
VueUiThermometer: ["config", "dataset"],
|
|
149
|
+
VueUiTiremarks: ["config", "dataset"],
|
|
150
|
+
VueUiTreemap: ["config", "dataset"],
|
|
151
|
+
VueUiVerticalBar: ["config", "dataset"],
|
|
152
|
+
// delete in v4
|
|
153
|
+
VueUiHorizontalBar: ["config", "dataset"],
|
|
154
|
+
// v3 renaming
|
|
155
|
+
VueUiWaffle: ["config", "dataset"],
|
|
156
|
+
VueUiWheel: ["config", "dataset"],
|
|
157
|
+
VueUiXy: ["config", "dataset"],
|
|
158
|
+
VueUiTableHeatmap: ["config", "dataset"],
|
|
159
|
+
VueUiAccordion: ["config"],
|
|
160
|
+
VueUiQuickChart: ["config", "dataset"],
|
|
161
|
+
VueUiCursor: ["config"],
|
|
162
|
+
VueUiSparkTrend: ["config", "dataset"],
|
|
163
|
+
VueUiStripPlot: ["config", "dataset"],
|
|
164
|
+
VueUiDumbbell: ["config", "dataset"],
|
|
165
|
+
VueUiWordCloud: ["config", "dataset"],
|
|
166
|
+
VueUiXyCanvas: ["config", "dataset"],
|
|
167
|
+
VueUiFlow: ["config", "dataset"],
|
|
168
|
+
VueUiParallelCoordinatePlot: ["config", "dataset"],
|
|
169
|
+
VueUiTimer: ["config"],
|
|
170
|
+
VueUiCarouselTable: ["config", "dataset"],
|
|
171
|
+
VueUiGizmo: ["config", "dataset"],
|
|
172
|
+
VueUiStackbar: ["config", "dataset"],
|
|
173
|
+
VueUiStackline: ["config", "dataset"],
|
|
174
|
+
VueUiBullet: ["config", "dataset"],
|
|
175
|
+
VueUiFunnel: ["config", "dataset"],
|
|
176
|
+
VueUiHistoryPlot: ["config", "dataset"],
|
|
177
|
+
VueUiCirclePack: ["config", "dataset"],
|
|
178
|
+
VueUiWorld: ["config", "dataset"],
|
|
179
|
+
VueUiRidgeline: ["config", "dataset"],
|
|
180
|
+
VueUiChord: ["config", "dataset"],
|
|
181
|
+
VueUiDag: ["config", "dataset"]
|
|
182
|
+
}, st = nt, V = c(() => !p[a.component]), ct = c(() => p[a.component] || null), l = o(null), gt = c(() => {
|
|
183
|
+
const t = ut[a.component] || [], i = {};
|
|
184
|
+
return t.includes("config") && (i.config = rt.value), t.includes("dataset") && (i.dataset = lt.value), i;
|
|
185
|
+
}), U = o(() => null), h = o(() => null), b = o(() => null), v = o(() => null), f = o(() => null), S = o(() => null), k = o(() => null), C = o(() => null), y = o(() => null), T = o(() => null), P = o(() => null), A = o(() => null), D = o(() => null), I = o(() => null), z = o(() => null), L = o(() => null), M = o(() => null), O = o(() => null), N = o(() => null), E = o(() => null), H = o(() => null), x = o(() => null), B = o(() => null), F = o(() => null), G = o(() => null), Z = o(() => null), _ = o(() => null), $ = o(() => null), W = o(() => null), X = o(() => null), j = o(() => null), Q = o(() => null), q = o(() => null), pt = o(() => null), mt = o(() => null), dt = o(() => null), K = o(() => null), Y = o(() => null), J = o(() => null);
|
|
186
|
+
ht(() => {
|
|
187
|
+
V.value && console.error(`
|
|
188
|
+
|
|
189
|
+
Vue Data UI exception:
|
|
190
|
+
The provided component "${a.component}" does not exist. Check the spelling.
|
|
191
|
+
|
|
192
|
+
Available components:
|
|
193
|
+
|
|
194
|
+
${Object.keys(p).map((t) => `. ${t}
|
|
195
|
+
`).join("")}`);
|
|
196
|
+
}), tt(l, async (t) => {
|
|
197
|
+
t && (t.generatePdf && (U.value = t.generatePdf), t.generateImage && (b.value = t.generateImage), t.generateSvg && (v.value = t.generateSvg), t.generateCsv && (h.value = t.generateCsv), t.getItemsPositions && (f.value = t.getItemsPositions), t.toggleReadonly && (S.value = t.toggleReadonly), t.shoot && (k.value = t.shoot), t.close && (C.value = t.close), t.restoreOrder && (y.value = t.restoreOrder), t.recalculateHeight && (T.value = t.recalculateHeight), t.toggleLock && (P.value = t.toggleLock), t.toggleTable && (A.value = t.toggleTable), t.toggleLabels && (D.value = t.toggleLabels), t.toggleSort && (I.value = t.toggleSort), t.toggleStack && (z.value = t.toggleStack), t.toggleTooltip && (L.value = t.toggleTooltip), t.start && (M.value = t.start), t.pause && (O.value = t.pause), t.reset && (N.value = t.reset), t.restart && (E.value = t.restart), t.lap && (H.value = t.lap), t.toggleAnimation && (x.value = t.toggleAnimation), t.pauseAnimation && (B.value = t.pauseAnimation), t.resumeAnimation && (F.value = t.resumeAnimation), t.toggleAnnotator && (G.value = t.toggleAnnotator), t.selectNode && (Z.value = t.selectNode), t.selectGroup && (_.value = t.selectGroup), t.selectRibbon && ($.value = t.selectRibbon), t.autoSize && (W.value = t.autoSize), t.resetZoom && (X.value = t.resetZoom), t.showSeries && (j.value = t.showSeries), t.hideSeries && (Q.value = t.hideSeries), t.toggleZoom && (q.value = t.toggleZoom), t.onNodeClick && (pt.value = t.onNodeClick), t.onMidpointEnter && (mt.value = t.onMidpointEnter), t.onMidpointLeave && (dt.value = t.onMidpointLeave), t.zoomIn && (K.value = t.zoomIn), t.zoomOut && (Y.value = t.zoomOut), t.switchOrientation && (J.value = t.switchOrientation));
|
|
198
|
+
});
|
|
199
|
+
const Vt = () => {
|
|
200
|
+
const t = [
|
|
201
|
+
"selectLegend",
|
|
202
|
+
"selectDatapoint",
|
|
203
|
+
"toggleOpenState",
|
|
204
|
+
"saveAnnotations",
|
|
205
|
+
"selectRoot",
|
|
206
|
+
"selectBranch",
|
|
207
|
+
"selectNut",
|
|
208
|
+
"change",
|
|
209
|
+
"selectPlot",
|
|
210
|
+
"selectSide",
|
|
211
|
+
"rate",
|
|
212
|
+
"postImage",
|
|
213
|
+
"hoverIndex",
|
|
214
|
+
"selectX",
|
|
215
|
+
"toggleLock",
|
|
216
|
+
"toggleTooltip",
|
|
217
|
+
"start",
|
|
218
|
+
"pause",
|
|
219
|
+
"reset",
|
|
220
|
+
"restart",
|
|
221
|
+
"lap",
|
|
222
|
+
"toggleAnimation",
|
|
223
|
+
"pauseAnimation",
|
|
224
|
+
"resumeAnimation",
|
|
225
|
+
"toggleAnnotator",
|
|
226
|
+
"selectNode",
|
|
227
|
+
"selectGroup",
|
|
228
|
+
"selectRibbon",
|
|
229
|
+
"autoSize",
|
|
230
|
+
"toggleTable",
|
|
231
|
+
"resetZoom",
|
|
232
|
+
"showSeries",
|
|
233
|
+
"hideSeries",
|
|
234
|
+
"toggleZoom",
|
|
235
|
+
"onNodeClick",
|
|
236
|
+
"onMidpointEnter",
|
|
237
|
+
"onMidpointLeave",
|
|
238
|
+
"zoomIn",
|
|
239
|
+
"zoomOut",
|
|
240
|
+
"switchOrientation"
|
|
241
|
+
], i = {};
|
|
242
|
+
return t.forEach((r) => {
|
|
243
|
+
i[r] = (...n) => st(r, ...n);
|
|
244
|
+
}), i;
|
|
245
|
+
}, m = bt([]);
|
|
246
|
+
function R(t, i) {
|
|
247
|
+
return new Promise((r, n) => {
|
|
248
|
+
m.push({ method: t, args: i, resolve: r, reject: n });
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
tt(l, (t) => {
|
|
252
|
+
if (t)
|
|
253
|
+
for (; m.length; ) {
|
|
254
|
+
const { method: i, args: r, resolve: n, reject: s } = m.shift(), w = t[i];
|
|
255
|
+
typeof w == "function" ? Promise.resolve().then(() => w(...r)).then(n).catch(s) : s(new Error(`Method ${i} not found on ${a.component}`));
|
|
256
|
+
}
|
|
257
|
+
}), at({
|
|
258
|
+
getData(...t) {
|
|
259
|
+
return l.value?.getData ? l.value.getData(...t) : R("getData", t);
|
|
260
|
+
},
|
|
261
|
+
getImage(t = {}) {
|
|
262
|
+
const { scale: i = 2 } = t;
|
|
263
|
+
return l.value?.getImage ? l.value.getImage({ scale: i }) : R("getImage", [{ scale: i }]);
|
|
264
|
+
},
|
|
265
|
+
autoSize: W,
|
|
266
|
+
generatePdf: U,
|
|
267
|
+
generateCsv: h,
|
|
268
|
+
generateImage: b,
|
|
269
|
+
generateSvg: v,
|
|
270
|
+
getItemsPositions: f,
|
|
271
|
+
toggleReadonly: S,
|
|
272
|
+
shoot: k,
|
|
273
|
+
close: C,
|
|
274
|
+
restoreOrder: y,
|
|
275
|
+
recalculateHeight: T,
|
|
276
|
+
toggleLock: P,
|
|
277
|
+
toggleTable: A,
|
|
278
|
+
toggleLabels: D,
|
|
279
|
+
toggleSort: I,
|
|
280
|
+
toggleStack: z,
|
|
281
|
+
toggleTooltip: L,
|
|
282
|
+
start: M,
|
|
283
|
+
pause: O,
|
|
284
|
+
reset: N,
|
|
285
|
+
restart: E,
|
|
286
|
+
lap: H,
|
|
287
|
+
pauseAnimation: B,
|
|
288
|
+
resumeAnimation: F,
|
|
289
|
+
toggleAnimation: x,
|
|
290
|
+
toggleAnnotator: G,
|
|
291
|
+
selectNode: Z,
|
|
292
|
+
selectGroup: _,
|
|
293
|
+
selectRibbon: $,
|
|
294
|
+
resetZoom: X,
|
|
295
|
+
showSeries: j,
|
|
296
|
+
hideSeries: Q,
|
|
297
|
+
toggleZoom: q,
|
|
298
|
+
zoomIn: K,
|
|
299
|
+
zoomOut: Y,
|
|
300
|
+
switchOrientation: J
|
|
301
|
+
});
|
|
302
|
+
const u = c(() => {
|
|
303
|
+
let t = `The provided component ${a.component} does not exist.`;
|
|
304
|
+
return ["VueUiIcon", "VueUiPattern", "Arrow"].includes(a.component) ? (t = `${a.component} is not supported by the VueDataUi universal component. You must import it individually.`, console.warn(t), {
|
|
305
|
+
status: "notSupported",
|
|
306
|
+
message: t
|
|
307
|
+
}) : (console.warn(t), {
|
|
308
|
+
status: "unknown",
|
|
309
|
+
message: t
|
|
310
|
+
});
|
|
311
|
+
});
|
|
312
|
+
return (t, i) => V.value ? (g(), vt("div", {
|
|
313
|
+
key: 0,
|
|
314
|
+
style: ft({
|
|
315
|
+
width: "100%",
|
|
316
|
+
display: "flex",
|
|
317
|
+
gap: "6px",
|
|
318
|
+
alignItems: "center",
|
|
319
|
+
color: u.value.status === "notSupported" ? "#FF9000" : "#FF0000"
|
|
320
|
+
})
|
|
321
|
+
}, [
|
|
322
|
+
St("div", Ot, [
|
|
323
|
+
u.value.status === "unknown" ? (g(), d(ot, {
|
|
324
|
+
key: 0,
|
|
325
|
+
name: "moodFlat",
|
|
326
|
+
stroke: "#FF0000"
|
|
327
|
+
})) : et("", !0),
|
|
328
|
+
u.value.status === "notSupported" ? (g(), d(ot, {
|
|
329
|
+
key: 1,
|
|
330
|
+
name: "circleExclamation",
|
|
331
|
+
stroke: "#FF9000"
|
|
332
|
+
})) : et("", !0)
|
|
333
|
+
]),
|
|
334
|
+
kt(" " + Ct(u.value.message), 1)
|
|
335
|
+
], 4)) : (g(), d(yt(ct.value), Tt({
|
|
336
|
+
key: 1,
|
|
337
|
+
ref_key: "currentComponentRef",
|
|
338
|
+
ref: l
|
|
339
|
+
}, gt.value, Pt(Vt())), At({ _: 2 }, [
|
|
340
|
+
Dt(t.$slots, (r, n) => ({
|
|
341
|
+
name: n,
|
|
342
|
+
fn: It((s) => [
|
|
343
|
+
zt(t.$slots, n, Lt(Mt(s)))
|
|
344
|
+
])
|
|
345
|
+
}))
|
|
346
|
+
]), 1040));
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
export {
|
|
350
|
+
xt as default
|
|
351
|
+
};
|