vue-data-ui 3.6.0 → 3.7.1
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 +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- 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 +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
- package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
- package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
- package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
- package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
- package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
- package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
- package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
- package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
- package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
- package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
- package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
- package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
- package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
- package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
- package/dist/vue-ui-rings-BowsO9I8.js +884 -0
- package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
- package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
- package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
- package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
- package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
- package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
- package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
- package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
- package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
- package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
- package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
- package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
- package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
- package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -0,0 +1,904 @@
|
|
|
1
|
+
import { useCssVars as kt, defineAsyncComponent as q, computed as H, ref as v, toRefs as wt, watch as se, shallowRef as Xe, onMounted as At, onBeforeUnmount as xt, createElementBlock as _, openBlock as k, unref as i, normalizeStyle as Ce, createBlock as re, createCommentVNode as L, createVNode as ke, withCtx as f, renderSlot as p, normalizeProps as R, guardReactiveProps as V, createSlots as Le, normalizeClass as Ye, createElementVNode as we, Fragment as Ft, renderList as $t, toDisplayString as Me, resolveDynamicComponent as St, mergeProps as Tt, createTextVNode as je, nextTick as Ge } from "vue";
|
|
2
|
+
import { d as Mt, t as Ot, u as Pt } from "./useResponsive-DfdjqQps.js";
|
|
3
|
+
import { c as qe, t as Dt, ap as Et, M as zt, i as Bt, p as Ae, o as He, g as Ze, k as It, d as Nt, X as _t, u as Rt, q as Vt, x as Wt } from "./lib-C5BH09_g.js";
|
|
4
|
+
import { u as Ut, a as Oe } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as Xt, B as Lt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Yt } from "./usePrinter-DCJzEiS8.js";
|
|
7
|
+
import { u as jt } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Gt } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as qt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Ht } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import Zt from "./img-DUzJeMlr.js";
|
|
12
|
+
import Jt from "./Title-DfFUb9hd.js";
|
|
13
|
+
import { u as Kt } from "./usePanZoom-BVca3eMk.js";
|
|
14
|
+
import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
function eo(w, y) {
|
|
16
|
+
const { width: c, height: h } = w, m = y.getImageData(0, 0, c, h).data;
|
|
17
|
+
let n = c, l = h, u = 0, A = 0, S = !1;
|
|
18
|
+
for (let b = 0; b < h; b += 1)
|
|
19
|
+
for (let F = 0; F < c; F += 1)
|
|
20
|
+
m[(b * c + F) * 4 + 3] > 1 && (S = !0, F < n && (n = F), F > u && (u = F), b < l && (l = b), b > A && (A = b));
|
|
21
|
+
return S ? [n, l, u, A] : [0, 0, 0, 0];
|
|
22
|
+
}
|
|
23
|
+
function Je({
|
|
24
|
+
word: w,
|
|
25
|
+
fontSize: y,
|
|
26
|
+
pad: c,
|
|
27
|
+
canvas: h,
|
|
28
|
+
ctx: d,
|
|
29
|
+
svg: m
|
|
30
|
+
}) {
|
|
31
|
+
d.save(), d.font = `${m.style && m.style.bold ? "bold " : ""}${y}px Arial`;
|
|
32
|
+
const n = d.measureText(w.name), l = Math.ceil(n.width) + 2 + (c ? c * 2 : 0), u = Math.ceil(y) + 2 + (c ? c * 2 : 0);
|
|
33
|
+
h.width = l, h.height = u, d.clearRect(0, 0, l, u), d.font = `${m.style && m.style.bold ? "bold " : ""}${y}px Arial`, d.textAlign = "center", d.textBaseline = "middle", d.fillStyle = "black", d.fillText(w.name, l / 2, u / 2);
|
|
34
|
+
const S = d.getImageData(0, 0, l, u).data, b = [];
|
|
35
|
+
for (let U = 0; U < u; U += 1)
|
|
36
|
+
for (let x = 0; x < l; x += 1)
|
|
37
|
+
S[(U * l + x) * 4 + 3] > 1 && b.push([x, U]);
|
|
38
|
+
const [F, C, W, P] = eo(h, d);
|
|
39
|
+
return d.restore(), { w: l, h: u, wordMask: b, minX: F, minY: C, maxX: W, maxY: P };
|
|
40
|
+
}
|
|
41
|
+
function Ke({ mask: w, maskW: y, maskH: c, wx: h, wy: d, wordMask: m }) {
|
|
42
|
+
for (let n = 0; n < m.length; n += 1) {
|
|
43
|
+
const l = h + m[n][0], u = d + m[n][1];
|
|
44
|
+
if (l < 0 || u < 0 || l >= y || u >= c || w[u * y + l]) return !1;
|
|
45
|
+
}
|
|
46
|
+
return !0;
|
|
47
|
+
}
|
|
48
|
+
function Qe({ mask: w, maskW: y, maskH: c, wx: h, wy: d, wordMask: m }) {
|
|
49
|
+
for (let n = 0; n < m.length; n += 1) {
|
|
50
|
+
const l = h + m[n][0], u = d + m[n][1];
|
|
51
|
+
l >= 0 && u >= 0 && l < y && u < c && (w[u * y + l] = 1);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function to({ wordMask: w, w: y, h: c, dilation: h }) {
|
|
55
|
+
const d = new Set(w.map(([n, l]) => `${n},${l}`)), m = new Set(d);
|
|
56
|
+
for (let [n, l] of w)
|
|
57
|
+
for (let u = -h; u <= h; u += 1)
|
|
58
|
+
for (let A = -h; A <= h; A += 1) {
|
|
59
|
+
if (u === 0 && A === 0) continue;
|
|
60
|
+
const S = n + u, b = l + A;
|
|
61
|
+
S >= 0 && S < y && b >= 0 && b < c && m.add(`${S},${b}`);
|
|
62
|
+
}
|
|
63
|
+
return Array.from(m).map((n) => n.split(",").map(Number));
|
|
64
|
+
}
|
|
65
|
+
function oo({
|
|
66
|
+
words: w,
|
|
67
|
+
proximity: y = 0,
|
|
68
|
+
svg: c,
|
|
69
|
+
strictPixelPadding: h
|
|
70
|
+
}) {
|
|
71
|
+
const { width: d, height: m } = c, n = Math.round(d), l = Math.round(m), u = 1, A = c.minFontSize, S = Math.min(c.maxFontSize, 100), b = w.map((e) => e.value), F = Math.min(...b), C = Math.max(...b), W = new Uint8Array(n * l), P = document.createElement("canvas"), U = P.getContext("2d", { willReadFrequently: !0 });
|
|
72
|
+
P.width = n, P.height = l;
|
|
73
|
+
const x = 6, he = 2, me = 2, fe = 1, ie = Math.floor(n / 2), ee = Math.floor(l / 2), Z = [...w].sort((e, D) => D.value - e.value), J = [];
|
|
74
|
+
for (const e of Z) {
|
|
75
|
+
let D = A;
|
|
76
|
+
C !== F && (D = (e.value - F) / (C - F) * (S - A) + A), D = Math.max(A, Math.min(S, D));
|
|
77
|
+
let E = !1, X = D;
|
|
78
|
+
for (; !E && X >= u; ) {
|
|
79
|
+
let { w: T, h: z, wordMask: B, minX: te, minY: oe, maxX: j, maxY: K } = Je({
|
|
80
|
+
word: e,
|
|
81
|
+
fontSize: X,
|
|
82
|
+
pad: y,
|
|
83
|
+
canvas: P,
|
|
84
|
+
ctx: U,
|
|
85
|
+
svg: c
|
|
86
|
+
});
|
|
87
|
+
h && (B = to({ wordMask: B, w: T, h: z, dilation: 2 }));
|
|
88
|
+
let M = 0, Y = 0;
|
|
89
|
+
for (; M < Math.max(n, l) && !E && Y < 1e4; ) {
|
|
90
|
+
for (let I = 0; I < 360; I += x) {
|
|
91
|
+
Y += 1;
|
|
92
|
+
const $ = Math.round(ie + M * Math.cos(I * Math.PI / 180) - T / 2), r = Math.round(ee + M * Math.sin(I * Math.PI / 180) - z / 2);
|
|
93
|
+
if (!($ < 0 || r < 0 || $ + T > n || r + z > l) && Ke({ mask: W, maskW: n, maskH: l, wx: $, wy: r, wordMask: B })) {
|
|
94
|
+
J.push({ ...e, x: $ - n / 2, y: r - l / 2, fontSize: X, width: T, height: z, angle: 0, minX: te, minY: oe, maxX: j, maxY: K }), Qe({ mask: W, maskW: n, maskH: l, wx: $, wy: r, wordMask: B }), E = !0;
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
M += he;
|
|
99
|
+
}
|
|
100
|
+
E || (X -= 1);
|
|
101
|
+
}
|
|
102
|
+
if (!E && X < u) {
|
|
103
|
+
X = u;
|
|
104
|
+
const { w: T, h: z, wordMask: B, minX: te, minY: oe, maxX: j, maxY: K } = Je({
|
|
105
|
+
word: e,
|
|
106
|
+
fontSize: X,
|
|
107
|
+
pad: y,
|
|
108
|
+
canvas: P,
|
|
109
|
+
ctx: U,
|
|
110
|
+
svg: c
|
|
111
|
+
});
|
|
112
|
+
let M = 0, Y = 0;
|
|
113
|
+
for (; M < Math.max(n, l) && !E && Y < 25e3; ) {
|
|
114
|
+
for (let I = 0; I < 360; I += me) {
|
|
115
|
+
Y += 1;
|
|
116
|
+
const $ = Math.round(ie + M * Math.cos(I * Math.PI / 180) - T / 2), r = Math.round(ee + M * Math.sin(I * Math.PI / 180) - z / 2);
|
|
117
|
+
if (!($ < 0 || r < 0 || $ + T > n || r + z > l) && Ke({ mask: W, maskW: n, maskH: l, wx: $, wy: r, wordMask: B })) {
|
|
118
|
+
J.push({ ...e, x: $ - n / 2, y: r - l / 2, fontSize: X, width: T, height: z, angle: 0, minX: te, minY: oe, maxX: j, maxY: K }), Qe({ mask: W, maskW: n, maskH: l, wx: $, wy: r, wordMask: B }), E = !0;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
M += fe;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return J.sort((e, D) => D.fontSize - e.fontSize);
|
|
127
|
+
}
|
|
128
|
+
const et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, words: { selectedStroke: "#1A1A1A" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, tt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, words: { selectedStroke: "#FFF8E1" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, ot = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, words: { selectedStroke: "#1E1E1E" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, words: { selectedStroke: "#1A1A1A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, lt = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, words: { selectedStroke: "#fbfafa" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, nt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, words: { selectedStroke: "#f6f6fb" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, st = {
|
|
129
|
+
default: {},
|
|
130
|
+
dark: et,
|
|
131
|
+
celebration: tt,
|
|
132
|
+
celebrationNight: ot,
|
|
133
|
+
hack: at,
|
|
134
|
+
zen: lt,
|
|
135
|
+
concrete: nt
|
|
136
|
+
}, Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
137
|
+
__proto__: null,
|
|
138
|
+
celebration: tt,
|
|
139
|
+
celebrationNight: ot,
|
|
140
|
+
concrete: nt,
|
|
141
|
+
dark: et,
|
|
142
|
+
default: st,
|
|
143
|
+
hack: at,
|
|
144
|
+
zen: lt
|
|
145
|
+
}, Symbol.toStringTag, { value: "Module" })), ao = ["id"], lo = ["xmlns", "viewBox"], no = ["width", "height"], so = ["transform"], ro = ["x", "y", "width", "height", "onMouseover", "onMouseleave", "onClick"], io = ["fill", "font-weight", "x", "y", "font-size", "transform", "stroke", "stroke-width"], uo = {
|
|
146
|
+
key: 3,
|
|
147
|
+
class: "vue-data-ui-watermark"
|
|
148
|
+
}, co = {
|
|
149
|
+
key: 4,
|
|
150
|
+
"data-dom-to-png-ignore": "",
|
|
151
|
+
class: "reset-wrapper"
|
|
152
|
+
}, vo = ["innerHTML"], ho = {
|
|
153
|
+
__name: "vue-ui-word-cloud",
|
|
154
|
+
props: {
|
|
155
|
+
config: {
|
|
156
|
+
type: Object,
|
|
157
|
+
default() {
|
|
158
|
+
return {};
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
dataset: {
|
|
162
|
+
type: [Array, String],
|
|
163
|
+
default() {
|
|
164
|
+
return [];
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
setup(w, { expose: y }) {
|
|
169
|
+
kt((t) => ({
|
|
170
|
+
v5aaba590: t.slicerColor
|
|
171
|
+
}));
|
|
172
|
+
const c = q(() => import("./Tooltip-WD0Ros6G.js")), h = q(() => import("./BaseIcon-CofSxalQ.js")), d = q(() => import("./vue-ui-accordion-DSdZUn2C.js")), m = q(() => import("./DataTable-CHaOCmsE.js")), n = q(() => import("./PenAndPaper-HCZQTkqi.js")), l = q(() => import("./UserOptions-B3I-s3Lw.js")), u = q(() => import("./PackageVersion-C82JCJOX.js")), A = q(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_word_cloud: S } = Ut(), { isThemeValid: b, warnInvalidTheme: F } = Gt(), C = w, W = H({
|
|
173
|
+
get() {
|
|
174
|
+
return !!C.dataset && C.dataset.length;
|
|
175
|
+
},
|
|
176
|
+
set(t) {
|
|
177
|
+
return t;
|
|
178
|
+
}
|
|
179
|
+
}), P = v(qe()), U = v(0), x = v(null), he = v(null), me = v(null), fe = v(0), ie = v(0), ee = v(!1), Z = v(null), J = v(null), e = v(K()), { loading: D, FINAL_DATASET: E, manualLoading: X } = Xt({
|
|
180
|
+
...wt(C),
|
|
181
|
+
FINAL_CONFIG: e,
|
|
182
|
+
prepareConfig: K,
|
|
183
|
+
skeletonDataset: [
|
|
184
|
+
{ name: "Lorem", value: 6 },
|
|
185
|
+
{ name: "ipsum", value: 3 },
|
|
186
|
+
{ name: "dolor", value: 1 },
|
|
187
|
+
{ name: "sit", value: 3 },
|
|
188
|
+
{ name: "amet", value: 3 },
|
|
189
|
+
{ name: "consectetur", value: 2 },
|
|
190
|
+
{ name: "adipiscing", value: 1 },
|
|
191
|
+
{ name: "elit", value: 2 },
|
|
192
|
+
{ name: "Vivamus", value: 2 },
|
|
193
|
+
{ name: "pulvinar", value: 1 },
|
|
194
|
+
{ name: "pretium", value: 1 },
|
|
195
|
+
{ name: "venenatis", value: 2 },
|
|
196
|
+
{ name: "Donec", value: 1 },
|
|
197
|
+
{ name: "imperdiet", value: 3 },
|
|
198
|
+
{ name: "id", value: 1 },
|
|
199
|
+
{ name: "porttitor", value: 2 },
|
|
200
|
+
{ name: "tristique", value: 1 },
|
|
201
|
+
{ name: "Aenean", value: 2 },
|
|
202
|
+
{ name: "ac", value: 5 },
|
|
203
|
+
{ name: "commodo", value: 2 },
|
|
204
|
+
{ name: "justo", value: 2 },
|
|
205
|
+
{ name: "Vestibulum", value: 2 },
|
|
206
|
+
{ name: "placerat", value: 1 },
|
|
207
|
+
{ name: "molestie", value: 1 },
|
|
208
|
+
{ name: "nisl", value: 1 },
|
|
209
|
+
{ name: "lacinia", value: 2 },
|
|
210
|
+
{ name: "nulla", value: 1 },
|
|
211
|
+
{ name: "posuere", value: 2 },
|
|
212
|
+
{ name: "quis", value: 3 },
|
|
213
|
+
{ name: "ullamcorper", value: 1 },
|
|
214
|
+
{ name: "eu", value: 1 },
|
|
215
|
+
{ name: "ex", value: 1 },
|
|
216
|
+
{ name: "vitae", value: 3 },
|
|
217
|
+
{ name: "facilisis", value: 1 },
|
|
218
|
+
{ name: "Aliquam", value: 1 },
|
|
219
|
+
{ name: "erat", value: 1 },
|
|
220
|
+
{ name: "volutpat", value: 1 },
|
|
221
|
+
{ name: "Proin", value: 1 },
|
|
222
|
+
{ name: "nunc", value: 1 },
|
|
223
|
+
{ name: "felis", value: 1 },
|
|
224
|
+
{ name: "gravida", value: 3 },
|
|
225
|
+
{ name: "sed", value: 1 },
|
|
226
|
+
{ name: "orci", value: 1 },
|
|
227
|
+
{ name: "Interdum", value: 1 },
|
|
228
|
+
{ name: "et", value: 1 },
|
|
229
|
+
{ name: "malesuada", value: 1 },
|
|
230
|
+
{ name: "fames", value: 1 },
|
|
231
|
+
{ name: "ante", value: 1 }
|
|
232
|
+
],
|
|
233
|
+
skeletonConfig: Dt({
|
|
234
|
+
defaultConfig: e.value,
|
|
235
|
+
userConfig: {
|
|
236
|
+
userOptions: { show: !1 },
|
|
237
|
+
table: { show: !1 },
|
|
238
|
+
useCssAnimation: !1,
|
|
239
|
+
animationDelayMs: 0,
|
|
240
|
+
nodeCategories: {},
|
|
241
|
+
nodeCategoryColors: {},
|
|
242
|
+
style: {
|
|
243
|
+
chart: {
|
|
244
|
+
backgroundColor: "#99999930",
|
|
245
|
+
words: {
|
|
246
|
+
color: "#6A6A6A",
|
|
247
|
+
usePalette: !1,
|
|
248
|
+
selectedStroke: "#CCCCCC"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
})
|
|
254
|
+
}), T = v(z());
|
|
255
|
+
function z() {
|
|
256
|
+
return typeof E.value == "string" ? Et(E.value) : E.value.map((t, a) => ({
|
|
257
|
+
...t,
|
|
258
|
+
value: zt(t.value)
|
|
259
|
+
}));
|
|
260
|
+
}
|
|
261
|
+
se(() => C.dataset, () => {
|
|
262
|
+
T.value = z(), xe(), Y();
|
|
263
|
+
});
|
|
264
|
+
const { userOptionsVisible: B, setUserOptionsVisibility: te, keepUserOptionState: oe } = qt({ config: e.value }), { svgRef: j } = Ht({ config: e.value.style.chart.title });
|
|
265
|
+
function K() {
|
|
266
|
+
const t = Oe({
|
|
267
|
+
userConfig: C.config,
|
|
268
|
+
defaultConfig: S
|
|
269
|
+
}), a = t.theme;
|
|
270
|
+
if (!a) return t;
|
|
271
|
+
if (!b.value(t))
|
|
272
|
+
return F(t), t;
|
|
273
|
+
const o = Oe({
|
|
274
|
+
userConfig: st[a] || C.config,
|
|
275
|
+
defaultConfig: t
|
|
276
|
+
}), s = Oe({
|
|
277
|
+
userConfig: C.config,
|
|
278
|
+
defaultConfig: o
|
|
279
|
+
});
|
|
280
|
+
return {
|
|
281
|
+
...s,
|
|
282
|
+
customPalette: s.customPalette.length ? s.customPalette : Bt[a] || Ae
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
const M = v({ x: 0, y: 0 });
|
|
286
|
+
function Y() {
|
|
287
|
+
const t = {
|
|
288
|
+
x: 0,
|
|
289
|
+
y: 0,
|
|
290
|
+
width: Math.max(10, r.value.width),
|
|
291
|
+
height: Math.max(10, r.value.height)
|
|
292
|
+
};
|
|
293
|
+
vt(t), M.value = {
|
|
294
|
+
x: t.x + t.width / 2,
|
|
295
|
+
y: t.y + t.height / 2
|
|
296
|
+
}, ye();
|
|
297
|
+
}
|
|
298
|
+
const I = Mt(() => {
|
|
299
|
+
xe();
|
|
300
|
+
}, 10), $ = v(!1);
|
|
301
|
+
se(() => $.value, (t) => {
|
|
302
|
+
t === !1 && (I(), Y());
|
|
303
|
+
}), se(() => C.config, (t) => {
|
|
304
|
+
e.value = K(), B.value = !e.value.userOptions.showOnChartHover, De(), fe.value += 1, ie.value += 1, O.value.showTable = e.value.table.show, O.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
305
|
+
}, { deep: !0 });
|
|
306
|
+
const r = v({
|
|
307
|
+
width: e.value.style.chart.width,
|
|
308
|
+
height: e.value.style.chart.height,
|
|
309
|
+
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
310
|
+
minFontSize: e.value.style.chart.words.minFontSize,
|
|
311
|
+
bold: e.value.style.chart.words.bold
|
|
312
|
+
}), rt = Ot(() => {
|
|
313
|
+
$.value = !0;
|
|
314
|
+
const { width: t, height: a } = Pt({
|
|
315
|
+
chart: x.value,
|
|
316
|
+
title: e.value.style.chart.title.text ? he.value : null,
|
|
317
|
+
source: me.value
|
|
318
|
+
});
|
|
319
|
+
requestAnimationFrame(async () => {
|
|
320
|
+
r.value.width = Math.max(10, t), r.value.height = Math.max(10, a - 12), await Ge(), $.value = !1;
|
|
321
|
+
});
|
|
322
|
+
}), G = Xe(null), ae = Xe(null);
|
|
323
|
+
At(De);
|
|
324
|
+
const Pe = H(() => !!e.value.debug);
|
|
325
|
+
function De() {
|
|
326
|
+
He(C.dataset) ? Ze({
|
|
327
|
+
componentName: "VueUiWordCloud",
|
|
328
|
+
type: "dataset",
|
|
329
|
+
debug: Pe.value
|
|
330
|
+
}) : T.value.forEach((t, a) => {
|
|
331
|
+
It({
|
|
332
|
+
datasetObject: t,
|
|
333
|
+
requiredAttributes: ["name", "value"]
|
|
334
|
+
}).forEach((o) => {
|
|
335
|
+
W.value = !1, Ze({
|
|
336
|
+
componentName: "VueUiWordCloud",
|
|
337
|
+
type: "datasetSerieAttribute",
|
|
338
|
+
property: o,
|
|
339
|
+
index: a,
|
|
340
|
+
debug: Pe.value
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
}), He(C.dataset) || (X.value = e.value.loading), e.value.responsive && (G.value && (ae.value && G.value.unobserve(ae.value), G.value.disconnect()), G.value = new ResizeObserver(rt), ae.value = x.value.parentNode, G.value.observe(ae.value)), Y();
|
|
344
|
+
}
|
|
345
|
+
xt(() => {
|
|
346
|
+
G.value && (ae.value && G.value.unobserve(ae.value), G.value.disconnect());
|
|
347
|
+
});
|
|
348
|
+
const { isPrinting: Ee, isImaging: ze, generatePdf: Be, generateImage: Ie } = Yt({
|
|
349
|
+
elementId: `wordCloud_${P.value}`,
|
|
350
|
+
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
351
|
+
options: e.value.userOptions.print
|
|
352
|
+
}), O = v({
|
|
353
|
+
showTable: e.value.table.show,
|
|
354
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
355
|
+
});
|
|
356
|
+
se(e, () => {
|
|
357
|
+
O.value = {
|
|
358
|
+
showTable: e.value.table.show,
|
|
359
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
360
|
+
};
|
|
361
|
+
}, { immediate: !0 });
|
|
362
|
+
function it(t, a, o = "Arial") {
|
|
363
|
+
const g = document.createElement("canvas").getContext("2d");
|
|
364
|
+
return g.font = `${a}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
|
|
365
|
+
width: g.measureText(t).width + e.value.style.chart.words.proximity,
|
|
366
|
+
height: a
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
const ue = v([]);
|
|
370
|
+
se(() => C.dataset, xe, { immediate: !0 });
|
|
371
|
+
function xe() {
|
|
372
|
+
const t = [...T.value].map((g) => g.value), a = Math.max(...t), o = Math.min(...t), s = [...T.value].map((g, N) => {
|
|
373
|
+
let Q = (g.value - o) / (a - o) * (r.value.maxFontSize - r.value.minFontSize) + r.value.minFontSize;
|
|
374
|
+
Q = isNaN(Q) ? r.value.minFontSize : Q;
|
|
375
|
+
const Ue = it(g.name, Q);
|
|
376
|
+
return {
|
|
377
|
+
...g,
|
|
378
|
+
id: qe(),
|
|
379
|
+
fontSize: Q,
|
|
380
|
+
width: Ue.width,
|
|
381
|
+
height: Ue.height,
|
|
382
|
+
color: e.value.style.chart.words.usePalette ? e.value.customPalette[N] || e.value.customPalette[N % e.value.customPalette.length] || Ae[N] || Ae[N % Ae.length] : e.value.style.chart.words.color
|
|
383
|
+
};
|
|
384
|
+
});
|
|
385
|
+
ue.value = oo({
|
|
386
|
+
words: s,
|
|
387
|
+
svg: r.value,
|
|
388
|
+
proximity: e.value.style.chart.words.proximity,
|
|
389
|
+
strictPixelPadding: e.value.strictPixelPadding
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
const pe = H(() => {
|
|
393
|
+
const t = ue.value.map((o) => ({
|
|
394
|
+
name: o.name,
|
|
395
|
+
color: o.color
|
|
396
|
+
})), a = ue.value.map((o) => o.value);
|
|
397
|
+
return { head: t, body: a };
|
|
398
|
+
});
|
|
399
|
+
function Fe(t = null) {
|
|
400
|
+
Ge(() => {
|
|
401
|
+
const a = pe.value.head.map((g, N) => [[
|
|
402
|
+
g.name
|
|
403
|
+
], [pe.value.body[N]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(a), s = Rt(o);
|
|
404
|
+
t ? t(s) : Vt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
const ge = H(() => {
|
|
408
|
+
const t = [
|
|
409
|
+
e.value.table.columnNames.series,
|
|
410
|
+
e.value.table.columnNames.value
|
|
411
|
+
], a = pe.value.head.map((g, N) => {
|
|
412
|
+
const Q = Nt({ p: e.value.table.td.prefix, v: pe.value.body[N], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
413
|
+
return [
|
|
414
|
+
{
|
|
415
|
+
color: g.color,
|
|
416
|
+
name: g.name
|
|
417
|
+
},
|
|
418
|
+
Q
|
|
419
|
+
];
|
|
420
|
+
}), o = {
|
|
421
|
+
th: {
|
|
422
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
423
|
+
color: e.value.table.th.color,
|
|
424
|
+
outline: e.value.table.th.outline
|
|
425
|
+
},
|
|
426
|
+
td: {
|
|
427
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
428
|
+
color: e.value.table.td.color,
|
|
429
|
+
outline: e.value.table.td.outline
|
|
430
|
+
},
|
|
431
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
432
|
+
};
|
|
433
|
+
return {
|
|
434
|
+
colNames: [
|
|
435
|
+
e.value.table.columnNames.series,
|
|
436
|
+
e.value.table.columnNames.value
|
|
437
|
+
],
|
|
438
|
+
head: t,
|
|
439
|
+
body: a,
|
|
440
|
+
config: o
|
|
441
|
+
};
|
|
442
|
+
}), le = v(!1);
|
|
443
|
+
function Ne(t) {
|
|
444
|
+
le.value = t, U.value += 1;
|
|
445
|
+
}
|
|
446
|
+
function ut() {
|
|
447
|
+
return ue.value;
|
|
448
|
+
}
|
|
449
|
+
function _e() {
|
|
450
|
+
O.value.showTable = !O.value.showTable;
|
|
451
|
+
}
|
|
452
|
+
function Re() {
|
|
453
|
+
O.value.showTooltip = !O.value.showTooltip;
|
|
454
|
+
}
|
|
455
|
+
const ce = v(!1);
|
|
456
|
+
function $e() {
|
|
457
|
+
ce.value = !ce.value;
|
|
458
|
+
}
|
|
459
|
+
const ct = H(() => !ce.value && e.value.style.chart.zoom.show), { viewBox: be, resetZoom: ye, isZoom: dt, setInitialViewBox: vt } = Kt(j, {
|
|
460
|
+
x: 0,
|
|
461
|
+
y: 0,
|
|
462
|
+
width: r.value.width <= 0 ? 10 : r.value.width,
|
|
463
|
+
height: r.value.height <= 0 ? 10 : r.value.height
|
|
464
|
+
}, 1, ct);
|
|
465
|
+
async function ht({ scale: t = 2 } = {}) {
|
|
466
|
+
if (!x.value) return;
|
|
467
|
+
const { width: a, height: o } = x.value.getBoundingClientRect(), s = a / o, { imageUri: g, base64: N } = await Zt({ domElement: x.value, base64: !0, img: !0, scale: t });
|
|
468
|
+
return {
|
|
469
|
+
imageUri: g,
|
|
470
|
+
base64: N,
|
|
471
|
+
title: e.value.style.chart.title.text,
|
|
472
|
+
width: a,
|
|
473
|
+
height: o,
|
|
474
|
+
aspectRatio: s
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
const de = H(() => {
|
|
478
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = O.value.showTable;
|
|
479
|
+
return {
|
|
480
|
+
component: t ? A : d,
|
|
481
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
482
|
+
props: t ? {
|
|
483
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
484
|
+
color: e.value.table.th.color,
|
|
485
|
+
headerColor: e.value.table.th.color,
|
|
486
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
487
|
+
isFullscreen: le.value,
|
|
488
|
+
fullscreenParent: x.value,
|
|
489
|
+
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
490
|
+
} : {
|
|
491
|
+
hideDetails: !0,
|
|
492
|
+
config: {
|
|
493
|
+
open: a,
|
|
494
|
+
maxHeight: 1e4,
|
|
495
|
+
body: {
|
|
496
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
497
|
+
color: e.value.style.chart.color
|
|
498
|
+
},
|
|
499
|
+
head: {
|
|
500
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
501
|
+
color: e.value.style.chart.color
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
});
|
|
507
|
+
se(() => O.value.showTable, (t) => {
|
|
508
|
+
e.value.table.show || (t && e.value.table.useDialog && Z.value ? Z.value.open() : "close" in Z.value && Z.value.close());
|
|
509
|
+
});
|
|
510
|
+
function Ve() {
|
|
511
|
+
O.value.showTable = !1, J.value && J.value.setTableIconState(!1);
|
|
512
|
+
}
|
|
513
|
+
const mt = H(() => e.value.style.chart.backgroundColor), ft = H(() => e.value.style.chart.title), { exportSvg: pt, getSvg: gt } = jt({
|
|
514
|
+
svg: j,
|
|
515
|
+
title: ft,
|
|
516
|
+
backgroundColor: mt
|
|
517
|
+
});
|
|
518
|
+
async function We({ isCb: t }) {
|
|
519
|
+
if (t) {
|
|
520
|
+
const { blob: a, url: o, text: s, dataUrl: g } = await gt();
|
|
521
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: o, text: s, dataUrl: g });
|
|
522
|
+
} else
|
|
523
|
+
pt();
|
|
524
|
+
}
|
|
525
|
+
y({
|
|
526
|
+
getData: ut,
|
|
527
|
+
getImage: ht,
|
|
528
|
+
generateCsv: Fe,
|
|
529
|
+
generatePdf: Be,
|
|
530
|
+
generateImage: Ie,
|
|
531
|
+
generateSvg: We,
|
|
532
|
+
resetZoom: ye,
|
|
533
|
+
toggleTable: _e,
|
|
534
|
+
toggleTooltip: Re,
|
|
535
|
+
toggleAnnotator: $e,
|
|
536
|
+
toggleFullscreen: Ne
|
|
537
|
+
});
|
|
538
|
+
const ne = v(null), ve = v(!1), Se = v(""), Te = v(null);
|
|
539
|
+
function bt(t, a) {
|
|
540
|
+
ne.value = null, ee.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
541
|
+
}
|
|
542
|
+
function yt(t, a) {
|
|
543
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
544
|
+
}
|
|
545
|
+
function Ct(t, a) {
|
|
546
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), !O.value.showTooltip) return;
|
|
547
|
+
ne.value = t.id, Te.value = { datapoint: t, config: e.value };
|
|
548
|
+
const o = e.value.style.chart.tooltip.customFormat;
|
|
549
|
+
if (ve.value = !1, Wt(o))
|
|
550
|
+
try {
|
|
551
|
+
const s = o({
|
|
552
|
+
datapoint: t,
|
|
553
|
+
config: e.value
|
|
554
|
+
});
|
|
555
|
+
typeof s == "string" && (Se.value = s, ve.value = !0);
|
|
556
|
+
} catch {
|
|
557
|
+
console.warn("Custom format cannot be applied."), ve.value = !1;
|
|
558
|
+
}
|
|
559
|
+
if (!ve.value) {
|
|
560
|
+
let s = `<svg viewBox="0 0 10 10" height="${e.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${t.color}"/></svg><span>${t.name}:</span><b>${(t.value || 0).toFixed(e.value.style.chart.tooltip.roundingValue)}</b>`;
|
|
561
|
+
Se.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${s}</div>`;
|
|
562
|
+
}
|
|
563
|
+
ee.value = !0;
|
|
564
|
+
}
|
|
565
|
+
return (t, a) => (k(), _("div", {
|
|
566
|
+
class: "vue-data-ui-component vue-ui-word-cloud",
|
|
567
|
+
ref_key: "wordCloudChart",
|
|
568
|
+
ref: x,
|
|
569
|
+
id: `wordCloud_${P.value}`,
|
|
570
|
+
style: Ce(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
571
|
+
onMouseenter: a[2] || (a[2] = () => i(te)(!0)),
|
|
572
|
+
onMouseleave: a[3] || (a[3] = () => i(te)(!1))
|
|
573
|
+
}, [
|
|
574
|
+
e.value.userOptions.buttons.annotator ? (k(), re(i(n), {
|
|
575
|
+
key: 0,
|
|
576
|
+
svgRef: i(j),
|
|
577
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
578
|
+
color: e.value.style.chart.color,
|
|
579
|
+
active: ce.value,
|
|
580
|
+
onClose: $e
|
|
581
|
+
}, {
|
|
582
|
+
"annotator-action-close": f(() => [
|
|
583
|
+
p(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
584
|
+
]),
|
|
585
|
+
"annotator-action-color": f(({ color: o }) => [
|
|
586
|
+
p(t.$slots, "annotator-action-color", R(V({ color: o })), void 0, !0)
|
|
587
|
+
]),
|
|
588
|
+
"annotator-action-draw": f(({ mode: o }) => [
|
|
589
|
+
p(t.$slots, "annotator-action-draw", R(V({ mode: o })), void 0, !0)
|
|
590
|
+
]),
|
|
591
|
+
"annotator-action-undo": f(({ disabled: o }) => [
|
|
592
|
+
p(t.$slots, "annotator-action-undo", R(V({ disabled: o })), void 0, !0)
|
|
593
|
+
]),
|
|
594
|
+
"annotator-action-redo": f(({ disabled: o }) => [
|
|
595
|
+
p(t.$slots, "annotator-action-redo", R(V({ disabled: o })), void 0, !0)
|
|
596
|
+
]),
|
|
597
|
+
"annotator-action-delete": f(({ disabled: o }) => [
|
|
598
|
+
p(t.$slots, "annotator-action-delete", R(V({ disabled: o })), void 0, !0)
|
|
599
|
+
]),
|
|
600
|
+
_: 3
|
|
601
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : L("", !0),
|
|
602
|
+
e.value.style.chart.title.text ? (k(), _("div", {
|
|
603
|
+
key: 1,
|
|
604
|
+
ref_key: "chartTitle",
|
|
605
|
+
ref: he,
|
|
606
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
607
|
+
}, [
|
|
608
|
+
(k(), re(Jt, {
|
|
609
|
+
key: `title_${fe.value}`,
|
|
610
|
+
config: {
|
|
611
|
+
title: {
|
|
612
|
+
...e.value.style.chart.title
|
|
613
|
+
},
|
|
614
|
+
subtitle: {
|
|
615
|
+
...e.value.style.chart.title.subtitle
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}, null, 8, ["config"]))
|
|
619
|
+
], 512)) : L("", !0),
|
|
620
|
+
e.value.userOptions.show && W.value && (i(oe) || i(B)) ? (k(), re(i(l), {
|
|
621
|
+
ref_key: "userOptionsRef",
|
|
622
|
+
ref: J,
|
|
623
|
+
key: `user_option_${U.value}`,
|
|
624
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
625
|
+
color: e.value.style.chart.color,
|
|
626
|
+
isPrinting: i(Ee),
|
|
627
|
+
isImaging: i(ze),
|
|
628
|
+
uid: P.value,
|
|
629
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
630
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
631
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
632
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
633
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
634
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
635
|
+
isFullscreen: le.value,
|
|
636
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
637
|
+
chartElement: x.value,
|
|
638
|
+
position: e.value.userOptions.position,
|
|
639
|
+
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
640
|
+
isTooltip: O.value.showTooltip,
|
|
641
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
642
|
+
isAnnotation: ce.value,
|
|
643
|
+
callbacks: e.value.userOptions.callbacks,
|
|
644
|
+
printScale: e.value.userOptions.print.scale,
|
|
645
|
+
tableDialog: e.value.table.useDialog,
|
|
646
|
+
onToggleFullscreen: Ne,
|
|
647
|
+
onGeneratePdf: i(Be),
|
|
648
|
+
onGenerateCsv: Fe,
|
|
649
|
+
onGenerateImage: i(Ie),
|
|
650
|
+
onGenerateSvg: We,
|
|
651
|
+
onToggleTable: _e,
|
|
652
|
+
onToggleTooltip: Re,
|
|
653
|
+
onToggleAnnotator: $e,
|
|
654
|
+
style: Ce({
|
|
655
|
+
visibility: i(oe) ? i(B) ? "visible" : "hidden" : "visible"
|
|
656
|
+
})
|
|
657
|
+
}, Le({ _: 2 }, [
|
|
658
|
+
t.$slots.menuIcon ? {
|
|
659
|
+
name: "menuIcon",
|
|
660
|
+
fn: f(({ isOpen: o, color: s }) => [
|
|
661
|
+
p(t.$slots, "menuIcon", R(V({ isOpen: o, color: s })), void 0, !0)
|
|
662
|
+
]),
|
|
663
|
+
key: "0"
|
|
664
|
+
} : void 0,
|
|
665
|
+
t.$slots.optionPdf ? {
|
|
666
|
+
name: "optionPdf",
|
|
667
|
+
fn: f(() => [
|
|
668
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
669
|
+
]),
|
|
670
|
+
key: "1"
|
|
671
|
+
} : void 0,
|
|
672
|
+
t.$slots.optionCsv ? {
|
|
673
|
+
name: "optionCsv",
|
|
674
|
+
fn: f(() => [
|
|
675
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
676
|
+
]),
|
|
677
|
+
key: "2"
|
|
678
|
+
} : void 0,
|
|
679
|
+
t.$slots.optionImg ? {
|
|
680
|
+
name: "optionImg",
|
|
681
|
+
fn: f(() => [
|
|
682
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
683
|
+
]),
|
|
684
|
+
key: "3"
|
|
685
|
+
} : void 0,
|
|
686
|
+
t.$slots.optionSvg ? {
|
|
687
|
+
name: "optionSvg",
|
|
688
|
+
fn: f(() => [
|
|
689
|
+
p(t.$slots, "optionSvg", {}, void 0, !0)
|
|
690
|
+
]),
|
|
691
|
+
key: "4"
|
|
692
|
+
} : void 0,
|
|
693
|
+
t.$slots.optionTable ? {
|
|
694
|
+
name: "optionTable",
|
|
695
|
+
fn: f(() => [
|
|
696
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
697
|
+
]),
|
|
698
|
+
key: "5"
|
|
699
|
+
} : void 0,
|
|
700
|
+
t.$slots.optionFullscreen ? {
|
|
701
|
+
name: "optionFullscreen",
|
|
702
|
+
fn: f(({ toggleFullscreen: o, isFullscreen: s }) => [
|
|
703
|
+
p(t.$slots, "optionFullscreen", R(V({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
|
|
704
|
+
]),
|
|
705
|
+
key: "6"
|
|
706
|
+
} : void 0,
|
|
707
|
+
t.$slots.optionAnnotator ? {
|
|
708
|
+
name: "optionAnnotator",
|
|
709
|
+
fn: f(({ toggleAnnotator: o, isAnnotator: s }) => [
|
|
710
|
+
p(t.$slots, "optionAnnotator", R(V({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
|
|
711
|
+
]),
|
|
712
|
+
key: "7"
|
|
713
|
+
} : void 0
|
|
714
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : L("", !0),
|
|
715
|
+
(k(), _("svg", {
|
|
716
|
+
ref_key: "svgRef",
|
|
717
|
+
ref: j,
|
|
718
|
+
class: Ye({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value }),
|
|
719
|
+
xmlns: i(_t),
|
|
720
|
+
viewBox: `${i(be).x} ${i(be).y} ${i(be).width} ${i(be).height}`,
|
|
721
|
+
style: "overflow:hidden;background:transparent;"
|
|
722
|
+
}, [
|
|
723
|
+
ke(i(u)),
|
|
724
|
+
t.$slots["chart-background"] ? (k(), _("foreignObject", {
|
|
725
|
+
key: 0,
|
|
726
|
+
x: 0,
|
|
727
|
+
y: 0,
|
|
728
|
+
width: r.value.width <= 0 ? 10 : r.value.width,
|
|
729
|
+
height: r.value.height <= 0 ? 10 : r.value.height,
|
|
730
|
+
style: {
|
|
731
|
+
pointerEvents: "none"
|
|
732
|
+
}
|
|
733
|
+
}, [
|
|
734
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
735
|
+
], 8, no)) : L("", !0),
|
|
736
|
+
we("g", {
|
|
737
|
+
transform: `translate(${M.value.x}, ${M.value.y})`
|
|
738
|
+
}, [
|
|
739
|
+
(k(!0), _(Ft, null, $t(ue.value, (o, s) => (k(), _("g", null, [
|
|
740
|
+
o.minX !== void 0 ? (k(), _("rect", {
|
|
741
|
+
key: 0,
|
|
742
|
+
x: o.x + o.minX,
|
|
743
|
+
y: o.y + o.minY * 1.25,
|
|
744
|
+
width: o.maxX - o.minX,
|
|
745
|
+
height: o.maxY - o.minY,
|
|
746
|
+
fill: "transparent",
|
|
747
|
+
"pointer-events": "visiblePainted",
|
|
748
|
+
onMouseover: (g) => Ct(o, s),
|
|
749
|
+
onMouseleave: (g) => bt(o, s),
|
|
750
|
+
onClick: (g) => yt(o, s)
|
|
751
|
+
}, null, 40, ro)) : L("", !0),
|
|
752
|
+
(k(), _("text", {
|
|
753
|
+
fill: o.color,
|
|
754
|
+
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
755
|
+
key: s,
|
|
756
|
+
x: o.x,
|
|
757
|
+
y: o.y,
|
|
758
|
+
"font-size": o.fontSize,
|
|
759
|
+
transform: `translate(${o.width / 2}, ${o.height / 2})`,
|
|
760
|
+
class: Ye({ animated: e.value.useCssAnimation && !i(D) }),
|
|
761
|
+
"text-anchor": "middle",
|
|
762
|
+
"dominant-baseline": "central",
|
|
763
|
+
"paint-order": "stroke fill",
|
|
764
|
+
stroke: !ne.value || ne.value === o.id ? e.value.style.chart.words.selectedStroke : void 0,
|
|
765
|
+
"stroke-width": o.height * 0.05,
|
|
766
|
+
"stroke-linecap": "round",
|
|
767
|
+
"stroke-linejoin": "round",
|
|
768
|
+
style: Ce(`
|
|
769
|
+
animation-delay:${s * e.value.animationDelayMs}ms !important;
|
|
770
|
+
pointer-events:none;
|
|
771
|
+
fill-opacity:${!ne.value || ne.value === o.id ? 1 : e.value.style.chart.words.hoverOpacity} !important;
|
|
772
|
+
transition:fill-opacity 0.3s ease-in-out !important;
|
|
773
|
+
`)
|
|
774
|
+
}, Me(o.name), 15, io))
|
|
775
|
+
]))), 256))
|
|
776
|
+
], 8, so),
|
|
777
|
+
p(t.$slots, "svg", {
|
|
778
|
+
svg: { height: r.value.height, width: r.value.width }
|
|
779
|
+
}, void 0, !0)
|
|
780
|
+
], 10, lo)),
|
|
781
|
+
t.$slots.watermark ? (k(), _("div", uo, [
|
|
782
|
+
p(t.$slots, "watermark", R(V({ isPrinting: i(Ee) || i(ze) })), void 0, !0)
|
|
783
|
+
])) : L("", !0),
|
|
784
|
+
i(dt) ? (k(), _("div", co, [
|
|
785
|
+
p(t.$slots, "reset-action", { reset: i(ye) }, () => [
|
|
786
|
+
we("button", {
|
|
787
|
+
"data-cy-reset": "",
|
|
788
|
+
tabindex: "0",
|
|
789
|
+
role: "button",
|
|
790
|
+
class: "vue-data-ui-refresh-button",
|
|
791
|
+
style: Ce({
|
|
792
|
+
background: e.value.style.chart.backgroundColor
|
|
793
|
+
}),
|
|
794
|
+
onClick: a[0] || (a[0] = (o) => i(ye)(!0))
|
|
795
|
+
}, [
|
|
796
|
+
ke(i(h), {
|
|
797
|
+
name: "refresh",
|
|
798
|
+
stroke: e.value.style.chart.color
|
|
799
|
+
}, null, 8, ["stroke"])
|
|
800
|
+
], 4)
|
|
801
|
+
], !0)
|
|
802
|
+
])) : L("", !0),
|
|
803
|
+
ke(i(c), {
|
|
804
|
+
show: O.value.showTooltip && ee.value,
|
|
805
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
806
|
+
color: e.value.style.chart.tooltip.color,
|
|
807
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
808
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
809
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
810
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
811
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
812
|
+
position: e.value.style.chart.tooltip.position,
|
|
813
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
814
|
+
parent: x.value,
|
|
815
|
+
content: Se.value,
|
|
816
|
+
isCustom: ve.value,
|
|
817
|
+
isFullscreen: le.value,
|
|
818
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
819
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
820
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
821
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
822
|
+
}, {
|
|
823
|
+
"tooltip-before": f(() => [
|
|
824
|
+
p(t.$slots, "tooltip-before", R(V({ ...Te.value })), void 0, !0)
|
|
825
|
+
]),
|
|
826
|
+
"tooltip-after": f(() => [
|
|
827
|
+
p(t.$slots, "tooltip-after", R(V({ ...Te.value })), void 0, !0)
|
|
828
|
+
]),
|
|
829
|
+
_: 3
|
|
830
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
831
|
+
t.$slots.source ? (k(), _("div", {
|
|
832
|
+
key: 5,
|
|
833
|
+
ref_key: "source",
|
|
834
|
+
ref: me,
|
|
835
|
+
dir: "auto"
|
|
836
|
+
}, [
|
|
837
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
838
|
+
], 512)) : L("", !0),
|
|
839
|
+
W.value && e.value.userOptions.buttons.table ? (k(), re(St(de.value.component), Tt({ key: 6 }, de.value.props, {
|
|
840
|
+
ref_key: "tableUnit",
|
|
841
|
+
ref: Z,
|
|
842
|
+
onClose: Ve
|
|
843
|
+
}), Le({
|
|
844
|
+
content: f(() => [
|
|
845
|
+
(k(), re(i(m), {
|
|
846
|
+
key: `table_${ie.value}`,
|
|
847
|
+
colNames: ge.value.colNames,
|
|
848
|
+
head: ge.value.head,
|
|
849
|
+
body: ge.value.body,
|
|
850
|
+
config: ge.value.config,
|
|
851
|
+
title: e.value.table.useDialog ? "" : de.value.title,
|
|
852
|
+
withCloseButton: !e.value.table.useDialog,
|
|
853
|
+
onClose: Ve
|
|
854
|
+
}, {
|
|
855
|
+
th: f(({ th: o }) => [
|
|
856
|
+
we("div", {
|
|
857
|
+
innerHTML: o,
|
|
858
|
+
style: { display: "flex", "align-items": "center" }
|
|
859
|
+
}, null, 8, vo)
|
|
860
|
+
]),
|
|
861
|
+
td: f(({ td: o }) => [
|
|
862
|
+
je(Me(o.name || o), 1)
|
|
863
|
+
]),
|
|
864
|
+
_: 1
|
|
865
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
866
|
+
]),
|
|
867
|
+
_: 2
|
|
868
|
+
}, [
|
|
869
|
+
e.value.table.useDialog ? {
|
|
870
|
+
name: "title",
|
|
871
|
+
fn: f(() => [
|
|
872
|
+
je(Me(de.value.title), 1)
|
|
873
|
+
]),
|
|
874
|
+
key: "0"
|
|
875
|
+
} : void 0,
|
|
876
|
+
e.value.table.useDialog ? {
|
|
877
|
+
name: "actions",
|
|
878
|
+
fn: f(() => [
|
|
879
|
+
we("button", {
|
|
880
|
+
tabindex: "0",
|
|
881
|
+
class: "vue-ui-user-options-button",
|
|
882
|
+
onClick: a[1] || (a[1] = (o) => Fe(e.value.userOptions.callbacks.csv))
|
|
883
|
+
}, [
|
|
884
|
+
ke(i(h), {
|
|
885
|
+
name: "excel",
|
|
886
|
+
stroke: de.value.props.color
|
|
887
|
+
}, null, 8, ["stroke"])
|
|
888
|
+
])
|
|
889
|
+
]),
|
|
890
|
+
key: "1"
|
|
891
|
+
} : void 0
|
|
892
|
+
]), 1040)) : L("", !0),
|
|
893
|
+
i(D) ? (k(), re(Lt, { key: 7 })) : L("", !0)
|
|
894
|
+
], 44, ao));
|
|
895
|
+
}
|
|
896
|
+
}, mo = /* @__PURE__ */ Qt(ho, [["__scopeId", "data-v-fb316a5e"]]), Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
897
|
+
__proto__: null,
|
|
898
|
+
default: mo
|
|
899
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
900
|
+
export {
|
|
901
|
+
Mo as a,
|
|
902
|
+
Oo as b,
|
|
903
|
+
mo as v
|
|
904
|
+
};
|