vue-data-ui 3.1.0 → 3.1.2
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-DvG07exK.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-O7900pGp.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DHtro8us.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-CpWzNn4r.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-DJjA2_wf.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-2-dC7DVb.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DHeE4Yuv.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-DU12WH3O.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B7QEDgx4.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Dj2Hl33H.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-D99HytqX.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-B-wL07rI.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dq2_Z9kR.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-Y219DXZO.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-BuGfCdAY.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BhciAKaM.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-JOqdlnUs.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-CDQbCd41.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-BPEHGiYX.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-Bnl1YeUU.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DcNYz3cZ.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BNIFAeN-.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-Bf_LHFFX.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bz-l1afR.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-BcfRH2BF.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DK1aM9fX.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-D6mMjvtu.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-Vp5f238W.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BKc4v-lf.js → vue-ui-chestnut-C4B0wEFn.js} +484 -487
- package/dist/{vue-ui-chord-CquhRjf0.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-D6zLgxa3.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-DIXb2S93.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-CLAIo9gW.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-C3r0YhKz.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-C8h_tCSO.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-D-t4M00E.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-D7_D_UNm.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-B0QOfZRz.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-Ccw5uNes.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-DvW7nFmK.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-WGQxvGPy.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-BQkLujyp.js → vue-ui-heatmap-NfRSd6fU.js} +370 -375
- package/dist/{vue-ui-history-plot-eU33r_Ot.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CKg2i71M.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-BmkGQsm_.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-Dlu0hjSg.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-DQaxfw9R.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-Djj9Aw_i.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-ZgsErXis.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-B5fB22Jc.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-CMevCtXH.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-DcparKSX.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-DFbxoKCK.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-ZUpxCWrk.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-eNKJY4Sx.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-D4shpQZd.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-TdTHMbsa.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CVuV9ljU.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton-CFxBU2-p.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-Har3B3aQ.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-FPk-XEwI.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-V3eJ0w0t.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DKTGkWnJ.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DJsgFwHs.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Dmrm5SL5.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B0Pl7VMI.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-CNsgBPhj.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-CYAWwYOM.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-COI9LRqC.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dn6H98rP.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-B7Gg5FfJ.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-Bgynq5El.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-CXng51v5.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-Cy1U3hO1.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-BsvIvRmE.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-DHqWeDIf.js → vue-ui-vertical-bar-DOCeCCqz.js} +297 -298
- package/dist/{vue-ui-waffle-D1Mscj3N.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-DpV-N5tF.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-DYz6zw3x.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-B1nqNbzw.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-D4wd-Asd.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Dd-LIJqz.js +0 -61
- package/dist/vue-ui-dashboard-DmiriAK7.js +0 -325
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +0 -811
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { d as g } from "./dom-to-png-C7V0EktO.js";
|
|
2
|
+
async function E({
|
|
3
|
+
domElement: a,
|
|
4
|
+
fileName: D,
|
|
5
|
+
scale: r = 2,
|
|
6
|
+
orientation: S = "auto",
|
|
7
|
+
// 'auto' | 'portrait' | 'landscape'
|
|
8
|
+
overflowTolerance: F = 0.2,
|
|
9
|
+
// up to +n% height overflow gets squeezed onto 1 page
|
|
10
|
+
aspectRatio: O = null
|
|
11
|
+
// example: '1/14141'
|
|
12
|
+
}) {
|
|
13
|
+
if (!a) return Promise.reject("No domElement provided");
|
|
14
|
+
const W = typeof navigator < "u" && /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
15
|
+
let T;
|
|
16
|
+
try {
|
|
17
|
+
T = (await import("jspdf")).default;
|
|
18
|
+
} catch {
|
|
19
|
+
return Promise.reject("jspdf is not installed. Run npm install jspdf");
|
|
20
|
+
}
|
|
21
|
+
const b = { width: 595.28, height: 841.89 }, j = { width: 841.89, height: 595.28 }, I = 1e3;
|
|
22
|
+
function v(i) {
|
|
23
|
+
if (i == null) return null;
|
|
24
|
+
if (typeof i == "number" && i > 0) return { w: 1, h: i };
|
|
25
|
+
if (typeof i == "string") {
|
|
26
|
+
const o = i.split("/").map((t) => t.trim());
|
|
27
|
+
if (o.length === 2) {
|
|
28
|
+
const t = Number(o[0]), s = Number(o[1]);
|
|
29
|
+
if (t > 0 && s > 0) return { w: t, h: s };
|
|
30
|
+
} else if (o.length === 1) {
|
|
31
|
+
const t = Number(o[0]);
|
|
32
|
+
if (t > 0) return { w: 1, h: t };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
const e = v(O), f = e ? { width: I, height: I * (e.h / e.w) } : null, C = e ? { width: f.height, height: f.width } : null;
|
|
38
|
+
if (W)
|
|
39
|
+
try {
|
|
40
|
+
await g({ container: a, scale: r }), await g({ container: a, scale: r }), await g({ container: a, scale: r }), await g({ container: a, scale: r });
|
|
41
|
+
} catch {
|
|
42
|
+
}
|
|
43
|
+
const u = await g({ container: a, scale: r });
|
|
44
|
+
return await new Promise((i, o) => {
|
|
45
|
+
const t = new window.Image();
|
|
46
|
+
t.onload = function() {
|
|
47
|
+
const w = t.naturalWidth, c = t.naturalHeight, N = S === "auto" ? c >= w ? "p" : "l" : S, n = N === "l" ? e ? C : j : e ? f : b, d = n.width / w, M = n.height / c, y = c * d;
|
|
48
|
+
let H = "single", h;
|
|
49
|
+
y <= n.height + 0.5 ? h = d : y <= n.height * (1 + F) ? h = Math.min(d, M) : (H = "multi", h = d);
|
|
50
|
+
const p = w * h, m = c * h, R = (n.width - p) / 2, l = new T({
|
|
51
|
+
orientation: N,
|
|
52
|
+
unit: "pt",
|
|
53
|
+
format: e ? [n.width, n.height] : "a4"
|
|
54
|
+
});
|
|
55
|
+
if (H === "single") {
|
|
56
|
+
const P = (n.height - m) / 2;
|
|
57
|
+
l.addImage(u, "PNG", R, P, p, m, "", "FAST");
|
|
58
|
+
} else {
|
|
59
|
+
const P = n.height / h;
|
|
60
|
+
let A = c, _ = 0;
|
|
61
|
+
for (; A > 0.5; )
|
|
62
|
+
l.addImage(
|
|
63
|
+
u,
|
|
64
|
+
"PNG",
|
|
65
|
+
R,
|
|
66
|
+
_,
|
|
67
|
+
p,
|
|
68
|
+
m,
|
|
69
|
+
"",
|
|
70
|
+
"FAST"
|
|
71
|
+
), A -= P, _ -= n.height, A > 0.5 && l.addPage();
|
|
72
|
+
}
|
|
73
|
+
l.save(`${D}.pdf`), i();
|
|
74
|
+
}, t.onerror = (s) => o("Failed to load image for PDF: " + s), t.src = u;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
E as default
|
|
79
|
+
};
|