vue-data-ui 2.12.8-beta.1 → 2.12.8-beta.3
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 +15 -0
- package/dist/{Arrow-BZERXYRS.js → Arrow-kQyQXUUg.js} +1 -1
- package/dist/{BaseDraggableDialog-CsxEDFbY.js → BaseDraggableDialog-DLRFrsDT.js} +2 -2
- package/dist/{BaseIcon-C8g0bTnH.js → BaseIcon-DaR0sIWZ.js} +1 -1
- package/dist/{ColorPicker-RCAns9t0.js → ColorPicker-Bj3sq9o7.js} +2 -2
- package/dist/{DataTable-DN8VsGNp.js → DataTable-BBqbcutV.js} +2 -2
- package/dist/{Legend-B3x9Et6h.js → Legend-DRqzYrP9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D9ieEyKs.js → NonSvgPenAndPaper-CQIC2PMP.js} +3 -3
- package/dist/{PackageVersion-CFpmup6M.js → PackageVersion-ClpqQxYT.js} +1 -1
- package/dist/{PenAndPaper-BrIjEzie.js → PenAndPaper-B-T7XvxF.js} +3 -3
- package/dist/{Shape-CtkpE63a.js → Shape-DEWxbZ-l.js} +1 -1
- package/dist/{Slicer-COOEkKtu.js → Slicer-o6jJH5bw.js} +2 -2
- package/dist/{SparkTooltip-4iy6SPsL.js → SparkTooltip-LPnbBoFu.js} +1 -1
- package/dist/{Title-BEQiIKjn.js → Title-apr_T9tg.js} +1 -1
- package/dist/{Tooltip-R_tsQZO3.js → Tooltip-BuHsMAfp.js} +1 -1
- package/dist/{UserOptions-CIOyDPmN.js → UserOptions-OVNxxnq5.js} +144 -133
- package/dist/{dom-to-png-CUCFZVax.js → dom-to-png-C0Ct8ClX.js} +1 -1
- package/dist/{img-DG5CAMFC.js → img-P0SFFw37.js} +1 -1
- package/dist/{index-_gtZv10q.js → index-CH_mJIWj.js} +254 -190
- package/dist/{pdf-CTRFaSN8.js → pdf-Jun3ogRn.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +42 -0
- package/dist/types/vue-data-ui.d.ts +42 -0
- package/dist/{useNestedProp-Bz6Z0t8M.js → useNestedProp-rMR-JeOJ.js} +1 -1
- package/dist/{usePrinter-LFM5suk6.js → usePrinter-DJ7WfWUs.js} +2 -2
- package/dist/{vue-data-ui-DdACgPWc.js → vue-data-ui-D7AaTKU6.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BJNtd28w.js → vue-ui-3d-bar-BfLLrwWi.js} +8 -7
- package/dist/{vue-ui-accordion-DFfQ5rpF.js → vue-ui-accordion-Ds4zkPIx.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DHs_TL8y.js → vue-ui-age-pyramid-C7ca5TG5.js} +41 -40
- package/dist/{vue-ui-annotator-CuPdtRUq.js → vue-ui-annotator-DG2z1gw8.js} +2 -2
- package/dist/{vue-ui-bullet-3TXSEM2Y.js → vue-ui-bullet-Dh25QAEH.js} +9 -8
- package/dist/{vue-ui-candlestick-IcQJ9_WS.js → vue-ui-candlestick-7Yo_kEV0.js} +9 -8
- package/dist/{vue-ui-carousel-table-DX7aRcCS.js → vue-ui-carousel-table-Det9Kwmy.js} +28 -27
- package/dist/{vue-ui-chestnut-m-FVZD8y.js → vue-ui-chestnut-DLlFv6Uj.js} +8 -7
- package/dist/{vue-ui-chord-DrvRDAyr.js → vue-ui-chord-BXlv5Z2x.js} +35 -34
- package/dist/{vue-ui-circle-pack-CkNvMtLt.js → vue-ui-circle-pack-DdRcdWmx.js} +43 -42
- package/dist/{vue-ui-cursor-DxvPYJ2Y.js → vue-ui-cursor-Djtg6Ppw.js} +2 -2
- package/dist/{vue-ui-dashboard-CygrXSEE.js → vue-ui-dashboard-C4MDDCl6.js} +62 -62
- package/dist/{vue-ui-digits-C-WSlGoq.js → vue-ui-digits-8Ox6q1Ov.js} +2 -2
- package/dist/{vue-ui-donut-CHoBqz39.js → vue-ui-donut-Hk4EaVhb.js} +10 -9
- package/dist/{vue-ui-donut-evolution-D-ls2LUq.js → vue-ui-donut-evolution-DzgYokPU.js} +10 -9
- package/dist/{vue-ui-dumbbell-BnwCfYOJ.js → vue-ui-dumbbell-CAC44_Hu.js} +52 -51
- package/dist/{vue-ui-flow-09xAMehp.js → vue-ui-flow-CYWiZjrP.js} +9 -8
- package/dist/{vue-ui-funnel-DOrXAsbx.js → vue-ui-funnel-C2eqxh_8.js} +20 -19
- package/dist/{vue-ui-galaxy-BMXyhvCe.js → vue-ui-galaxy-BBfg84E4.js} +7 -6
- package/dist/{vue-ui-gauge-DkJVRsqL.js → vue-ui-gauge-BJgJgef_.js} +33 -32
- package/dist/{vue-ui-gizmo-EISlXvOs.js → vue-ui-gizmo-DBclpybR.js} +3 -3
- package/dist/{vue-ui-heatmap-B3dgboHu.js → vue-ui-heatmap-D65wOgqe.js} +10 -9
- package/dist/{vue-ui-history-plot-GZwvTkfa.js → vue-ui-history-plot-CHhDy7Da.js} +9 -8
- package/dist/{vue-ui-kpi-Dyuf4jAg.js → vue-ui-kpi-uT6fsAaO.js} +3 -3
- package/dist/{vue-ui-mini-loader-B2gkvvEB.js → vue-ui-mini-loader-CKVlBiYB.js} +2 -2
- package/dist/{vue-ui-molecule-DFTLY4ad.js → vue-ui-molecule-BwtHZtGN.js} +22 -21
- package/dist/{vue-ui-mood-radar-CQlhpdhp.js → vue-ui-mood-radar-Vf4_-R-m.js} +9 -8
- package/dist/{vue-ui-nested-donuts-BVS8QHol.js → vue-ui-nested-donuts-BVkSns4S.js} +44 -43
- package/dist/{vue-ui-onion-BVdWS8RK.js → vue-ui-onion-UzMmwtvF.js} +9 -8
- package/dist/{vue-ui-parallel-coordinate-plot-crvd8Pln.js → vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js} +10 -9
- package/dist/{vue-ui-quadrant-CREePTU2.js → vue-ui-quadrant-Ck7xALez.js} +10 -9
- package/dist/{vue-ui-quick-chart-DeaiKdlr.js → vue-ui-quick-chart-B62Pa0nG.js} +8 -7
- package/dist/{vue-ui-radar-BIL-3GUR.js → vue-ui-radar-DMfv2hSb.js} +6 -6
- package/dist/{vue-ui-rating-BpU03_iR.js → vue-ui-rating-CFYHJrxj.js} +2 -2
- package/dist/{vue-ui-relation-circle-BRUFM-tU.js → vue-ui-relation-circle-RWlfC5BI.js} +75 -74
- package/dist/{vue-ui-ridgeline-B4BGITxs.js → vue-ui-ridgeline-Bh93VzcO.js} +10 -9
- package/dist/{vue-ui-rings-DZTUSyr7.js → vue-ui-rings-CyX30Ccv.js} +23 -22
- package/dist/{vue-ui-scatter-DG1k85e_.js → vue-ui-scatter-BEDnWByj.js} +10 -9
- package/dist/{vue-ui-skeleton-g2ChSAKh.js → vue-ui-skeleton-C6PWt_m5.js} +3 -3
- package/dist/{vue-ui-smiley-BlPJI-D9.js → vue-ui-smiley-79itAe84.js} +2 -2
- package/dist/{vue-ui-spark-trend-DhZ3csGm.js → vue-ui-spark-trend-AaA4KuaH.js} +3 -3
- package/dist/{vue-ui-sparkbar-cJJWCLiJ.js → vue-ui-sparkbar-CYBZeaor.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ByCUh-P0.js → vue-ui-sparkgauge-ElGarXVS.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B3q-6W-d.js → vue-ui-sparkhistogram-C_LV99i1.js} +4 -4
- package/dist/{vue-ui-sparkline-ZMAOSesx.js → vue-ui-sparkline-DwzCA8d6.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BDVSCmGl.js → vue-ui-sparkstackbar-CobB11uw.js} +3 -3
- package/dist/{vue-ui-stackbar-BY3AQz0l.js → vue-ui-stackbar-B4SxM5Ix.js} +11 -10
- package/dist/{vue-ui-strip-plot-DpmUR3PK.js → vue-ui-strip-plot-9VK_Y3SC.js} +9 -8
- package/dist/{vue-ui-table-DpFMZ4rJ.js → vue-ui-table-DFTE1OH5.js} +3 -3
- package/dist/{vue-ui-table-heatmap-4GOzV-IT.js → vue-ui-table-heatmap-DvyJx0j7.js} +48 -47
- package/dist/{vue-ui-table-sparkline-1TrSrWvU.js → vue-ui-table-sparkline-SGsBnQTK.js} +8 -7
- package/dist/{vue-ui-thermometer-CZIMCIDI.js → vue-ui-thermometer-DEMS6HXl.js} +22 -21
- package/dist/{vue-ui-timer-C8VQR1EN.js → vue-ui-timer-CQ71yJ_N.js} +5 -5
- package/dist/{vue-ui-tiremarks-DfCCzbZ-.js → vue-ui-tiremarks-CsN_QtUK.js} +38 -37
- package/dist/{vue-ui-treemap-Buou4k4m.js → vue-ui-treemap-B0CPNusH.js} +229 -228
- package/dist/{vue-ui-vertical-bar-D5NWJ0Ah.js → vue-ui-vertical-bar-Cxv-ahMT.js} +12 -11
- package/dist/{vue-ui-waffle-Cs77FlO0.js → vue-ui-waffle-TgNNo9UX.js} +66 -65
- package/dist/{vue-ui-wheel-Oik-vORz.js → vue-ui-wheel-Bq0ZLc-R.js} +8 -7
- package/dist/{vue-ui-word-cloud-a4kmpLK9.js → vue-ui-word-cloud-D28awCaT.js} +66 -65
- package/dist/{vue-ui-world-CNDCD1yU.js → vue-ui-world-BhUsfhY5.js} +8 -7
- package/dist/{vue-ui-xy-BTe1HiZx.js → vue-ui-xy-CEFkua9H.js} +930 -823
- package/dist/{vue-ui-xy-canvas-BS0jWsyQ.js → vue-ui-xy-canvas-oHhzL0ui.js} +53 -52
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useCssVars as De, defineAsyncComponent as j, computed as se, ref as g, watch as be, shallowRef as Fe, onMounted as Ee, onBeforeUnmount as Ue, createElementBlock as N, openBlock as x, unref as r, normalizeStyle as he, createBlock as ie, createCommentVNode as B, createVNode as we, createSlots as Ge, withCtx as
|
|
2
|
-
import { u as qe, c as
|
|
1
|
+
import { useCssVars as De, defineAsyncComponent as j, computed as se, ref as g, watch as be, shallowRef as Fe, onMounted as Ee, onBeforeUnmount as Ue, createElementBlock as N, openBlock as x, unref as r, normalizeStyle as he, createBlock as ie, createCommentVNode as B, createVNode as we, createSlots as Ge, withCtx as A, renderSlot as F, normalizeProps as Q, guardReactiveProps as ee, normalizeClass as Me, createElementVNode as ke, Fragment as Le, renderList as je, toDisplayString as Pe, createTextVNode as He, nextTick as ze } from "vue";
|
|
2
|
+
import { u as qe, c as Oe, aj as Ze, v as Je, t as Ke, p as me, a as Qe, o as et, e as Ae, g as tt, f as ot, X as at, q as lt, r as nt, x as st } from "./index-CH_mJIWj.js";
|
|
3
3
|
import { t as it, u as rt, d as ut } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as Ne } from "./useNestedProp-
|
|
5
|
-
import { u as ct } from "./usePrinter-
|
|
4
|
+
import { u as Ne } from "./useNestedProp-rMR-JeOJ.js";
|
|
5
|
+
import { u as ct } from "./usePrinter-DJ7WfWUs.js";
|
|
6
6
|
import { u as dt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as vt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
8
|
import { u as ht } from "./usePanZoom-BQMvRXEQ.js";
|
|
9
|
-
import mt from "./Title-
|
|
9
|
+
import mt from "./Title-apr_T9tg.js";
|
|
10
10
|
import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
function pt(w, p) {
|
|
12
12
|
const { width: u, height: f } = w, m = p.getImageData(0, 0, u, f).data;
|
|
13
|
-
let l = u, a = f, s = 0,
|
|
13
|
+
let l = u, a = f, s = 0, k = 0, d = !1;
|
|
14
14
|
for (let h = 0; h < f; h += 1)
|
|
15
15
|
for (let y = 0; y < u; y += 1)
|
|
16
|
-
m[(h * u + y) * 4 + 3] > 1 && (d = !0, y < l && (l = y), y > s && (s = y), h < a && (a = h), h >
|
|
17
|
-
return d ? [l, a, s,
|
|
16
|
+
m[(h * u + y) * 4 + 3] > 1 && (d = !0, y < l && (l = y), y > s && (s = y), h < a && (a = h), h > k && (k = h));
|
|
17
|
+
return d ? [l, a, s, k] : [0, 0, 0, 0];
|
|
18
18
|
}
|
|
19
19
|
function Ie({
|
|
20
20
|
word: w,
|
|
@@ -51,9 +51,9 @@ function gt({ wordMask: w, w: p, h: u, dilation: f }) {
|
|
|
51
51
|
const c = new Set(w.map(([l, a]) => `${l},${a}`)), m = new Set(c);
|
|
52
52
|
for (let [l, a] of w)
|
|
53
53
|
for (let s = -f; s <= f; s += 1)
|
|
54
|
-
for (let
|
|
55
|
-
if (s === 0 &&
|
|
56
|
-
const d = l + s, h = a +
|
|
54
|
+
for (let k = -f; k <= f; k += 1) {
|
|
55
|
+
if (s === 0 && k === 0) continue;
|
|
56
|
+
const d = l + s, h = a + k;
|
|
57
57
|
d >= 0 && d < p && h >= 0 && h < u && m.add(`${d},${h}`);
|
|
58
58
|
}
|
|
59
59
|
return Array.from(m).map((l) => l.split(",").map(Number));
|
|
@@ -64,15 +64,15 @@ function yt({
|
|
|
64
64
|
svg: u,
|
|
65
65
|
strictPixelPadding: f
|
|
66
66
|
}) {
|
|
67
|
-
const { width: c, height: m } = u, l = Math.round(c), a = Math.round(m), s = 1,
|
|
67
|
+
const { width: c, height: m } = u, l = Math.round(c), a = Math.round(m), s = 1, k = u.minFontSize, d = Math.min(u.maxFontSize, 100), h = w.map((T) => T.value), y = Math.min(...h), D = Math.max(...h), P = new Uint8Array(l * a), I = document.createElement("canvas"), _ = I.getContext("2d", { willReadFrequently: !0 });
|
|
68
68
|
I.width = l, I.height = a;
|
|
69
69
|
const Y = 6, re = 2, te = 2, e = 1, U = Math.floor(l / 2), oe = Math.floor(a / 2), ae = [...w].sort((T, z) => z.value - T.value), H = [];
|
|
70
70
|
for (const T of ae) {
|
|
71
|
-
let z =
|
|
72
|
-
D !== y && (z = (T.value - y) / (D - y) * (d -
|
|
71
|
+
let z = k;
|
|
72
|
+
D !== y && (z = (T.value - y) / (D - y) * (d - k) + k), z = Math.max(k, Math.min(d, z));
|
|
73
73
|
let R = !1, n = z;
|
|
74
74
|
for (; !R && n >= s; ) {
|
|
75
|
-
let { w: X, h: V, wordMask:
|
|
75
|
+
let { w: X, h: V, wordMask: C, minX: W, minY: q, maxX: Z, maxY: J } = Ie({
|
|
76
76
|
word: T,
|
|
77
77
|
fontSize: n,
|
|
78
78
|
pad: p,
|
|
@@ -80,24 +80,24 @@ function yt({
|
|
|
80
80
|
ctx: _,
|
|
81
81
|
svg: u
|
|
82
82
|
});
|
|
83
|
-
f && (
|
|
84
|
-
let
|
|
85
|
-
for (;
|
|
83
|
+
f && (C = gt({ wordMask: C, w: X, h: V, dilation: 1 }));
|
|
84
|
+
let O = 0, E = 0;
|
|
85
|
+
for (; O < Math.max(l, a) && !R && E < 1e4; ) {
|
|
86
86
|
for (let v = 0; v < 360; v += Y) {
|
|
87
87
|
E += 1;
|
|
88
|
-
const M = Math.round(U +
|
|
89
|
-
if (!(M < 0 || b < 0 || M + X > l || b + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask:
|
|
90
|
-
H.push({ ...T, x: M - l / 2, y: b - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask:
|
|
88
|
+
const M = Math.round(U + O * Math.cos(v * Math.PI / 180) - X / 2), b = Math.round(oe + O * Math.sin(v * Math.PI / 180) - V / 2);
|
|
89
|
+
if (!(M < 0 || b < 0 || M + X > l || b + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: C })) {
|
|
90
|
+
H.push({ ...T, x: M - l / 2, y: b - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: C }), R = !0;
|
|
91
91
|
break;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
O += re;
|
|
95
95
|
}
|
|
96
96
|
R || (n -= 1);
|
|
97
97
|
}
|
|
98
98
|
if (!R && n < s) {
|
|
99
99
|
n = s;
|
|
100
|
-
const { w: X, h: V, wordMask:
|
|
100
|
+
const { w: X, h: V, wordMask: C, minX: W, minY: q, maxX: Z, maxY: J } = Ie({
|
|
101
101
|
word: T,
|
|
102
102
|
fontSize: n,
|
|
103
103
|
pad: p,
|
|
@@ -105,23 +105,23 @@ function yt({
|
|
|
105
105
|
ctx: _,
|
|
106
106
|
svg: u
|
|
107
107
|
});
|
|
108
|
-
let
|
|
109
|
-
for (;
|
|
108
|
+
let O = 0, E = 0;
|
|
109
|
+
for (; O < Math.max(l, a) && !R && E < 25e3; ) {
|
|
110
110
|
for (let v = 0; v < 360; v += te) {
|
|
111
111
|
E += 1;
|
|
112
|
-
const M = Math.round(U +
|
|
113
|
-
if (!(M < 0 || b < 0 || M + X > l || b + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask:
|
|
114
|
-
H.push({ ...T, x: M - l / 2, y: b - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask:
|
|
112
|
+
const M = Math.round(U + O * Math.cos(v * Math.PI / 180) - X / 2), b = Math.round(oe + O * Math.sin(v * Math.PI / 180) - V / 2);
|
|
113
|
+
if (!(M < 0 || b < 0 || M + X > l || b + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: C })) {
|
|
114
|
+
H.push({ ...T, x: M - l / 2, y: b - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: C }), R = !0;
|
|
115
115
|
break;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
O += e;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
return H.sort((T, z) => z.fontSize - T.fontSize);
|
|
123
123
|
}
|
|
124
|
-
const bt = ["id"], wt = ["xmlns", "viewBox"],
|
|
124
|
+
const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["transform"], xt = ["x", "y", "width", "height", "onMouseover"], $t = ["fill", "font-weight", "x", "y", "font-size", "transform"], Tt = {
|
|
125
125
|
key: 4,
|
|
126
126
|
class: "vue-data-ui-watermark"
|
|
127
127
|
}, St = {
|
|
@@ -146,16 +146,16 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
146
146
|
},
|
|
147
147
|
setup(w, { expose: p }) {
|
|
148
148
|
De((t) => ({
|
|
149
|
-
|
|
149
|
+
ef7c6c52: t.slicerColor
|
|
150
150
|
}));
|
|
151
|
-
const u = j(() => import("./vue-ui-accordion-
|
|
151
|
+
const u = j(() => import("./vue-ui-accordion-Ds4zkPIx.js")), f = j(() => import("./BaseIcon-DaR0sIWZ.js")), c = j(() => import("./DataTable-BBqbcutV.js")), m = j(() => import("./PackageVersion-ClpqQxYT.js")), l = j(() => import("./PenAndPaper-B-T7XvxF.js")), a = j(() => import("./Tooltip-BuHsMAfp.js")), s = j(() => import("./UserOptions-OVNxxnq5.js")), { vue_ui_word_cloud: k } = qe(), d = w, h = se({
|
|
152
152
|
get() {
|
|
153
153
|
return !!d.dataset && d.dataset.length;
|
|
154
154
|
},
|
|
155
155
|
set(t) {
|
|
156
156
|
return t;
|
|
157
157
|
}
|
|
158
|
-
}), y = g(
|
|
158
|
+
}), y = g(Oe()), D = g(0), P = g(null), I = g(null), _ = g(null), Y = g(0), re = g(0), te = g(!1), e = se({
|
|
159
159
|
get: () => R(),
|
|
160
160
|
set: (t) => t
|
|
161
161
|
}), U = g(oe());
|
|
@@ -172,7 +172,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
172
172
|
function R() {
|
|
173
173
|
const t = Ne({
|
|
174
174
|
userConfig: d.config,
|
|
175
|
-
defaultConfig:
|
|
175
|
+
defaultConfig: k
|
|
176
176
|
});
|
|
177
177
|
return t.theme ? {
|
|
178
178
|
...Ne({
|
|
@@ -202,10 +202,10 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
202
202
|
requestAnimationFrame(() => {
|
|
203
203
|
n.value.width = t, n.value.height = i, ze(X);
|
|
204
204
|
});
|
|
205
|
-
}),
|
|
205
|
+
}), C = Fe(null), W = Fe(null);
|
|
206
206
|
Ee(q);
|
|
207
207
|
function q() {
|
|
208
|
-
et(d.dataset) ?
|
|
208
|
+
et(d.dataset) ? Ae({
|
|
209
209
|
componentName: "VueUiWordCloud",
|
|
210
210
|
type: "dataset"
|
|
211
211
|
}) : U.value.forEach((t, i) => {
|
|
@@ -213,19 +213,19 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
213
213
|
datasetObject: t,
|
|
214
214
|
requiredAttributes: ["name", "value"]
|
|
215
215
|
}).forEach((o) => {
|
|
216
|
-
h.value = !1,
|
|
216
|
+
h.value = !1, Ae({
|
|
217
217
|
componentName: "VueUiWordCloud",
|
|
218
218
|
type: "datasetSerieAttribute",
|
|
219
219
|
property: o,
|
|
220
220
|
index: i
|
|
221
221
|
});
|
|
222
222
|
});
|
|
223
|
-
}), e.value.responsive && (
|
|
223
|
+
}), e.value.responsive && (C.value && (W.value && C.value.unobserve(W.value), C.value.disconnect()), C.value = new ResizeObserver(V), W.value = P.value.parentNode, C.value.observe(W.value));
|
|
224
224
|
}
|
|
225
225
|
Ue(() => {
|
|
226
|
-
|
|
226
|
+
C.value && (W.value && C.value.unobserve(W.value), C.value.disconnect());
|
|
227
227
|
});
|
|
228
|
-
const { isPrinting: Z, isImaging: J, generatePdf:
|
|
228
|
+
const { isPrinting: Z, isImaging: J, generatePdf: O, generateImage: E } = ct({
|
|
229
229
|
elementId: `wordCloud_${y.value}`,
|
|
230
230
|
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
231
231
|
options: e.value.userOptions.print
|
|
@@ -249,7 +249,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
249
249
|
const Se = M($.name, L);
|
|
250
250
|
return {
|
|
251
251
|
...$,
|
|
252
|
-
id:
|
|
252
|
+
id: Oe(),
|
|
253
253
|
fontSize: L,
|
|
254
254
|
width: Se.width,
|
|
255
255
|
height: Se.height,
|
|
@@ -270,7 +270,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
270
270
|
})), i = b.value.map((o) => o.value);
|
|
271
271
|
return { head: t, body: i };
|
|
272
272
|
});
|
|
273
|
-
function
|
|
273
|
+
function Ce() {
|
|
274
274
|
ze(() => {
|
|
275
275
|
const t = ue.value.head.map((S, $) => [[
|
|
276
276
|
S.name
|
|
@@ -338,8 +338,8 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
338
338
|
}, 1, We);
|
|
339
339
|
p({
|
|
340
340
|
getData: Ve,
|
|
341
|
-
generateCsv:
|
|
342
|
-
generatePdf:
|
|
341
|
+
generateCsv: Ce,
|
|
342
|
+
generatePdf: O,
|
|
343
343
|
generateImage: E,
|
|
344
344
|
toggleTable: xe,
|
|
345
345
|
toggleTooltip: $e,
|
|
@@ -422,9 +422,10 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
422
422
|
isTooltip: v.value.showTooltip,
|
|
423
423
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
424
424
|
isAnnotation: le.value,
|
|
425
|
+
callbacks: e.value.userOptions.callbacks,
|
|
425
426
|
onToggleFullscreen: Xe,
|
|
426
|
-
onGeneratePdf: r(
|
|
427
|
-
onGenerateCsv:
|
|
427
|
+
onGeneratePdf: r(O),
|
|
428
|
+
onGenerateCsv: Ce,
|
|
428
429
|
onGenerateImage: r(E),
|
|
429
430
|
onToggleTable: xe,
|
|
430
431
|
onToggleTooltip: $e,
|
|
@@ -435,54 +436,54 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
435
436
|
}, Ge({ _: 2 }, [
|
|
436
437
|
t.$slots.menuIcon ? {
|
|
437
438
|
name: "menuIcon",
|
|
438
|
-
fn:
|
|
439
|
+
fn: A(({ isOpen: o, color: S }) => [
|
|
439
440
|
F(t.$slots, "menuIcon", Q(ee({ isOpen: o, color: S })), void 0, !0)
|
|
440
441
|
]),
|
|
441
442
|
key: "0"
|
|
442
443
|
} : void 0,
|
|
443
444
|
t.$slots.optionPdf ? {
|
|
444
445
|
name: "optionPdf",
|
|
445
|
-
fn:
|
|
446
|
+
fn: A(() => [
|
|
446
447
|
F(t.$slots, "optionPdf", {}, void 0, !0)
|
|
447
448
|
]),
|
|
448
449
|
key: "1"
|
|
449
450
|
} : void 0,
|
|
450
451
|
t.$slots.optionCsv ? {
|
|
451
452
|
name: "optionCsv",
|
|
452
|
-
fn:
|
|
453
|
+
fn: A(() => [
|
|
453
454
|
F(t.$slots, "optionCsv", {}, void 0, !0)
|
|
454
455
|
]),
|
|
455
456
|
key: "2"
|
|
456
457
|
} : void 0,
|
|
457
458
|
t.$slots.optionImg ? {
|
|
458
459
|
name: "optionImg",
|
|
459
|
-
fn:
|
|
460
|
+
fn: A(() => [
|
|
460
461
|
F(t.$slots, "optionImg", {}, void 0, !0)
|
|
461
462
|
]),
|
|
462
463
|
key: "3"
|
|
463
464
|
} : void 0,
|
|
464
465
|
t.$slots.optionTable ? {
|
|
465
466
|
name: "optionTable",
|
|
466
|
-
fn:
|
|
467
|
+
fn: A(() => [
|
|
467
468
|
F(t.$slots, "optionTable", {}, void 0, !0)
|
|
468
469
|
]),
|
|
469
470
|
key: "4"
|
|
470
471
|
} : void 0,
|
|
471
472
|
t.$slots.optionFullscreen ? {
|
|
472
473
|
name: "optionFullscreen",
|
|
473
|
-
fn:
|
|
474
|
+
fn: A(({ toggleFullscreen: o, isFullscreen: S }) => [
|
|
474
475
|
F(t.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: o, isFullscreen: S })), void 0, !0)
|
|
475
476
|
]),
|
|
476
477
|
key: "5"
|
|
477
478
|
} : void 0,
|
|
478
479
|
t.$slots.optionAnnotator ? {
|
|
479
480
|
name: "optionAnnotator",
|
|
480
|
-
fn:
|
|
481
|
+
fn: A(({ toggleAnnotator: o, isAnnotator: S }) => [
|
|
481
482
|
F(t.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: o, isAnnotator: S })), void 0, !0)
|
|
482
483
|
]),
|
|
483
484
|
key: "6"
|
|
484
485
|
} : void 0
|
|
485
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : B("", !0),
|
|
486
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : B("", !0),
|
|
486
487
|
h.value ? (x(), N("svg", {
|
|
487
488
|
key: 3,
|
|
488
489
|
ref_key: "svgRef",
|
|
@@ -504,8 +505,8 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
504
505
|
}
|
|
505
506
|
}, [
|
|
506
507
|
F(t.$slots, "chart-background", {}, void 0, !0)
|
|
507
|
-
], 8,
|
|
508
|
-
|
|
508
|
+
], 8, kt)) : B("", !0),
|
|
509
|
+
ke("g", {
|
|
509
510
|
transform: `translate(${(n.value.width <= 0 ? 10 : n.value.width) / 2}, ${(n.value.height <= 0 ? 10 : n.value.height) / 2})`
|
|
510
511
|
}, [
|
|
511
512
|
(x(!0), N(Le, null, je(b.value, (o, S) => (x(), N("g", null, [
|
|
@@ -536,7 +537,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
536
537
|
style: he(`animation-delay:${S * e.value.animationDelayMs}ms !important; pointer-events:none;`)
|
|
537
538
|
}, Pe(o.name), 15, $t))
|
|
538
539
|
]))), 256))
|
|
539
|
-
], 8,
|
|
540
|
+
], 8, Ct),
|
|
540
541
|
F(t.$slots, "svg", {
|
|
541
542
|
svg: { height: n.value.height, width: n.value.width }
|
|
542
543
|
}, void 0, !0)
|
|
@@ -546,7 +547,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
546
547
|
])) : B("", !0),
|
|
547
548
|
r(Be) ? (x(), N("div", St, [
|
|
548
549
|
F(t.$slots, "reset-action", { reset: r(Te) }, () => [
|
|
549
|
-
|
|
550
|
+
ke("button", {
|
|
550
551
|
"data-cy-reset": "",
|
|
551
552
|
tabindex: "0",
|
|
552
553
|
role: "button",
|
|
@@ -578,10 +579,10 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
578
579
|
content: ge.value,
|
|
579
580
|
isCustom: ne.value
|
|
580
581
|
}, {
|
|
581
|
-
"tooltip-before":
|
|
582
|
+
"tooltip-before": A(() => [
|
|
582
583
|
F(t.$slots, "tooltip-before", Q(ee({ ...ye.value })), void 0, !0)
|
|
583
584
|
]),
|
|
584
|
-
"tooltip-after":
|
|
585
|
+
"tooltip-after": A(() => [
|
|
585
586
|
F(t.$slots, "tooltip-after", Q(ee({ ...ye.value })), void 0, !0)
|
|
586
587
|
]),
|
|
587
588
|
_: 3
|
|
@@ -610,7 +611,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
610
611
|
}
|
|
611
612
|
}
|
|
612
613
|
}, {
|
|
613
|
-
content:
|
|
614
|
+
content: A(() => [
|
|
614
615
|
(x(), ie(r(c), {
|
|
615
616
|
key: `table_${re.value}`,
|
|
616
617
|
colNames: ce.value.colNames,
|
|
@@ -620,13 +621,13 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
620
621
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
621
622
|
onClose: i[2] || (i[2] = (o) => v.value.showTable = !1)
|
|
622
623
|
}, {
|
|
623
|
-
th:
|
|
624
|
-
|
|
624
|
+
th: A(({ th: o }) => [
|
|
625
|
+
ke("div", {
|
|
625
626
|
innerHTML: o,
|
|
626
627
|
style: { display: "flex", "align-items": "center" }
|
|
627
628
|
}, null, 8, Ft)
|
|
628
629
|
]),
|
|
629
|
-
td:
|
|
630
|
+
td: A(({ td: o }) => [
|
|
630
631
|
He(Pe(o.name || o), 1)
|
|
631
632
|
]),
|
|
632
633
|
_: 1
|
|
@@ -636,7 +637,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
|
|
|
636
637
|
}, 8, ["config"])) : B("", !0)
|
|
637
638
|
], 44, bt));
|
|
638
639
|
}
|
|
639
|
-
}, Wt = /* @__PURE__ */ ft(Mt, [["__scopeId", "data-v-
|
|
640
|
+
}, Wt = /* @__PURE__ */ ft(Mt, [["__scopeId", "data-v-f12089f2"]]);
|
|
640
641
|
export {
|
|
641
642
|
Wt as default
|
|
642
643
|
};
|