vue-data-ui 3.25.5 → 3.25.7
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/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-UfoQuPMf.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.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-bump.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 +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.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-hill.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-label.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/{package-ta2JoIjx.js → package-B-3S5q00.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-CAXK7ycr.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-DlWT702n.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-DbOk2kpM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-C7_mGIRk.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CDy_dkYz.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DP24leiD.js} +380 -380
- package/dist/vue-ui-candlestick-kJLmYaR7.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-BQzAQDw6.js} +2 -2
- package/dist/vue-ui-chestnut-DnnRp3Kl.js +2016 -0
- package/dist/vue-ui-chord-DO15ZDCS.js +1347 -0
- package/dist/vue-ui-circle-pack-DYTllMPV.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CtViSjNp.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-NXtGYzqg.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-D3_4QohV.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-CB09pLQx.js} +2 -2
- package/dist/vue-ui-donut-evolution-DhrtxvAd.js +1552 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-eysaEyTy.js} +2 -2
- package/dist/vue-ui-donut-yTE6D8yV.js +2415 -0
- package/dist/vue-ui-dumbbell-CmGIeULQ.js +1533 -0
- package/dist/vue-ui-flow-qYAq3Rmn.js +1217 -0
- package/dist/vue-ui-funnel-CLAii4wi.js +749 -0
- package/dist/vue-ui-galaxy-BVX-o2f-.js +1085 -0
- package/dist/vue-ui-gauge-D76-4Z_0.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-BQ7-UnuG.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-C47zjcs-.js} +2 -2
- package/dist/vue-ui-heatmap-XJef60IZ.js +1558 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-D5BYGPXB.js} +470 -470
- package/dist/vue-ui-history-plot-D-d-1ZiM.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-BgFHi6_7.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-Cb8QJeaj.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-BzwMl-in.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-BUR_YCcr.js} +376 -376
- package/dist/vue-ui-nested-donuts-BEB4nfsD.js +1503 -0
- package/dist/vue-ui-onion-CG6myK7a.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-CSO4johj.js} +407 -407
- package/dist/vue-ui-quadrant-CKav0I6g.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BAQNS9_2.js} +4 -4
- package/dist/vue-ui-radar-ClPAgf5I.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-Da2MhrVe.js +905 -0
- package/dist/vue-ui-ridgeline-D7gFs8yR.js +1630 -0
- package/dist/vue-ui-rings-DkDJ0k5b.js +1252 -0
- package/dist/vue-ui-scatter-yv4JzJID.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-oFnh5zWs.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-IqZWPvSB.js +457 -0
- package/dist/vue-ui-sparkbar-_FW47iYj.js +401 -0
- package/dist/vue-ui-sparkgauge--2vk2Y23.js +268 -0
- package/dist/vue-ui-sparkhistogram-CFEIPa5n.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-Cs9CJR6W.js} +511 -511
- package/dist/vue-ui-sparkstackbar-Cvbue77A.js +738 -0
- package/dist/vue-ui-stackbar-C5ANS2hd.js +2355 -0
- package/dist/vue-ui-stackline-7yajJFW4.js +2469 -0
- package/dist/vue-ui-strip-plot-BT6Eqhup.js +1740 -0
- package/dist/vue-ui-table-CiccGbRB.js +1352 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-sparkline-Bp7RiZh4.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-CawumQKP.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-CXinMW7q.js} +153 -153
- package/dist/vue-ui-tiremarks-BnI2uhki.js +540 -0
- package/dist/vue-ui-treemap-DTlFbfD6.js +1733 -0
- package/dist/vue-ui-waffle-CjgRkQAp.js +1621 -0
- package/dist/vue-ui-wheel-B02tiG0p.js +873 -0
- package/dist/vue-ui-word-cloud-BZnCOMHx.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-DO2VZ-T-.js} +524 -524
- package/dist/vue-ui-xy-BC9GVdWE.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-CD6BiP_g.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -1,1733 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Lt as i, Pt as a, S as o, X as s, Yt as c, Z as l, Zt as u, i as d, jt as f, lt as ee, nt as te, q as ne, r as re, t as ie, w as ae } from "./lib-Dql7cqyA.js";
|
|
3
|
-
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ce } from "./useConfig-C_mX5pOZ.js";
|
|
5
|
-
import { t as le } from "./usePrinter-DISD7q5m.js";
|
|
6
|
-
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as fe } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
-
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as me } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as he } from "./useTransitions-g_zBREk2.js";
|
|
11
|
-
import { t as ge } from "./img-DhGApYG0.js";
|
|
12
|
-
import { n as _e } from "./Title-CPHi-evi.js";
|
|
13
|
-
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
-
import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
-
import { t as xe } from "./BaseIcon-t83PDe9k.js";
|
|
16
|
-
import { t as Se } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
-
import { t as Ce } from "./BaseLegendToggle-__JnV08B.js";
|
|
18
|
-
import { t as we } from "./A11yDataTable-DdRsVULz.js";
|
|
19
|
-
import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
|
-
import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
-
import { t as De } from "./Legend-X4kF4PvW.js";
|
|
22
|
-
import { t as Oe } from "./usePanZoom-CYU3B4T3.js";
|
|
23
|
-
import { t as ke } from "./vue_ui_treemap-DoEtkRN6.js";
|
|
24
|
-
import { Fragment as p, Teleport as Ae, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as Pe, guardReactiveProps as y, mergeProps as Fe, nextTick as Ie, normalizeClass as Le, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Re, onMounted as ze, openBlock as S, ref as C, renderList as Be, renderSlot as w, resolveDynamicComponent as Ve, shallowRef as T, toDisplayString as He, toRefs as Ue, unref as E, useCssVars as We, useSlots as Ge, watch as D, withCtx as O, withKeys as Ke, withModifiers as qe } from "vue";
|
|
25
|
-
//#region src/treemap.js
|
|
26
|
-
function Je(e, t) {
|
|
27
|
-
let n = e.length;
|
|
28
|
-
if (n === 0) throw Error(`Max aspect ratio cannot be computed: ${e} is an empty array`);
|
|
29
|
-
{
|
|
30
|
-
let r = Infinity, i = -Infinity, a = 0;
|
|
31
|
-
for (let t = 0; t < n; t += 1) {
|
|
32
|
-
let n = e[t].normalizedValue;
|
|
33
|
-
n < r && (r = n), n > i && (i = n), a += n;
|
|
34
|
-
}
|
|
35
|
-
return Math.max(t ** 2 * i / a ** 2, a ** 2 / (t ** 2 * r));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function Ye(e) {
|
|
39
|
-
let { xOffset: t, yOffset: n, width: r, height: i } = e;
|
|
40
|
-
return {
|
|
41
|
-
x0: t,
|
|
42
|
-
y0: n,
|
|
43
|
-
x1: t + r,
|
|
44
|
-
y1: n + i
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function Xe(e, t, n) {
|
|
48
|
-
if (e.length === 0) return !0;
|
|
49
|
-
{
|
|
50
|
-
let r = e.concat(t);
|
|
51
|
-
return Je(e, n) >= Je(r, n);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function Ze(e) {
|
|
55
|
-
let t = [], n = e.length;
|
|
56
|
-
for (let r = 0; r < n; r += 1) {
|
|
57
|
-
let n = e[r], i = n.length;
|
|
58
|
-
for (let e = 0; e < i; e += 1) t.push(n[e]);
|
|
59
|
-
}
|
|
60
|
-
return t;
|
|
61
|
-
}
|
|
62
|
-
function Qe(e, t) {
|
|
63
|
-
return at({
|
|
64
|
-
...t,
|
|
65
|
-
children: e
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function $e(e) {
|
|
69
|
-
return (e.x1 - e.x0) * (e.y1 - e.y0);
|
|
70
|
-
}
|
|
71
|
-
function et(e, t) {
|
|
72
|
-
let { width: n, height: r, xOffset: i, yOffset: a } = rt(t), o = e.length, s = e.map((e) => e.normalizedValue || 0).reduce((e, t) => e + t, 0), c = s / r, l = s / n, u = i, d = a, f = [];
|
|
73
|
-
if (n >= r) {
|
|
74
|
-
for (let t = 0; t < o; t += 1) {
|
|
75
|
-
let n = e[t], r = d + n.normalizedValue / c, i = {
|
|
76
|
-
x0: u,
|
|
77
|
-
y0: d,
|
|
78
|
-
x1: u + c,
|
|
79
|
-
y1: r
|
|
80
|
-
}, a = Object.assign({}, n, i);
|
|
81
|
-
d = r, f.push(a);
|
|
82
|
-
}
|
|
83
|
-
return f;
|
|
84
|
-
}
|
|
85
|
-
for (let t = 0; t < o; t += 1) {
|
|
86
|
-
let n = e[t], r = u + n.normalizedValue / l, i = {
|
|
87
|
-
x0: u,
|
|
88
|
-
y0: d,
|
|
89
|
-
x1: r,
|
|
90
|
-
y1: d + l
|
|
91
|
-
}, a = Object.assign({}, n, i);
|
|
92
|
-
u = r, f.push(a);
|
|
93
|
-
}
|
|
94
|
-
return f;
|
|
95
|
-
}
|
|
96
|
-
function tt(e) {
|
|
97
|
-
let t = rt(e), n = t.width, r = t.height;
|
|
98
|
-
return Math.min(n, r);
|
|
99
|
-
}
|
|
100
|
-
function nt(e, t) {
|
|
101
|
-
let n = e.length, r = t / e.map((e) => e.value ?? 0).reduce((e, t) => e + t, 0), i = [], a, o;
|
|
102
|
-
for (let t = 0; t < n; t += 1) o = e[t], a = Object.assign({}, o, { normalizedValue: o.value * (r || 0) }), i.push(a);
|
|
103
|
-
return i;
|
|
104
|
-
}
|
|
105
|
-
function rt(e) {
|
|
106
|
-
let { x0: t, y0: n, x1: r, y1: i } = e;
|
|
107
|
-
return {
|
|
108
|
-
xOffset: t,
|
|
109
|
-
yOffset: n,
|
|
110
|
-
width: r - t,
|
|
111
|
-
height: i - n
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
function it(e, t, n, r) {
|
|
115
|
-
let i = e, a = t, o = n, s = r;
|
|
116
|
-
for (;;) {
|
|
117
|
-
let e = i.length;
|
|
118
|
-
if (e === 0) {
|
|
119
|
-
let e = et(a, o);
|
|
120
|
-
return s.concat(e);
|
|
121
|
-
}
|
|
122
|
-
let t = tt(o), n = i[0], r = i.slice(1, e);
|
|
123
|
-
if (Xe(a, n, t)) {
|
|
124
|
-
let e = a.concat(n);
|
|
125
|
-
i = r, a = e, o = o, s = s;
|
|
126
|
-
} else {
|
|
127
|
-
let e = a.length, t = 0;
|
|
128
|
-
for (let n = 0; n < e; n += 1) t += a[n].normalizedValue;
|
|
129
|
-
let n = k(o, t), r = et(a, o), c = s.concat(r);
|
|
130
|
-
i = i, a = [], o = n, s = c;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
function at(e) {
|
|
135
|
-
if (e.children === void 0 || !e.children.length) return [e];
|
|
136
|
-
{
|
|
137
|
-
let t = it(nt(e.children, $e(e)), [], e, []), n = t.length, r = [];
|
|
138
|
-
for (let e = 0; e < n; e += 1) r.push(at(t[e]));
|
|
139
|
-
return Ze(r);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
function k(e, t) {
|
|
143
|
-
let { width: n, height: r, xOffset: i, yOffset: a } = rt(e);
|
|
144
|
-
if (n >= r) {
|
|
145
|
-
let e = t / r, o = n - e;
|
|
146
|
-
return Ye({
|
|
147
|
-
xOffset: i + e,
|
|
148
|
-
yOffset: a,
|
|
149
|
-
width: o,
|
|
150
|
-
height: r
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
{
|
|
154
|
-
let e = t / n, o = r - e;
|
|
155
|
-
return Ye({
|
|
156
|
-
xOffset: i,
|
|
157
|
-
yOffset: a + e,
|
|
158
|
-
width: n,
|
|
159
|
-
height: o
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
//#endregion
|
|
164
|
-
//#region src/components/vue-ui-treemap.vue
|
|
165
|
-
var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt = ["id"], ut = [
|
|
166
|
-
"tabindex",
|
|
167
|
-
"onClick",
|
|
168
|
-
"onKeydown",
|
|
169
|
-
"data-last-crumb",
|
|
170
|
-
"onMouseenter",
|
|
171
|
-
"onFocus"
|
|
172
|
-
], dt = { class: "vue-ui-treemap-crumb-unit" }, ft = { class: "vue-ui-treemap-crumb-unit-label" }, pt = {
|
|
173
|
-
key: 0,
|
|
174
|
-
style: {
|
|
175
|
-
width: "24px",
|
|
176
|
-
display: "flex",
|
|
177
|
-
"align-items": "center"
|
|
178
|
-
}
|
|
179
|
-
}, mt = {
|
|
180
|
-
key: 0,
|
|
181
|
-
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
182
|
-
}, ht = { style: { position: "relative" } }, gt = [
|
|
183
|
-
"xmlns",
|
|
184
|
-
"aria-describedby",
|
|
185
|
-
"viewBox"
|
|
186
|
-
], _t = { key: 0 }, vt = [
|
|
187
|
-
"x",
|
|
188
|
-
"y",
|
|
189
|
-
"height",
|
|
190
|
-
"width",
|
|
191
|
-
"fill",
|
|
192
|
-
"rx",
|
|
193
|
-
"stroke",
|
|
194
|
-
"stroke-width",
|
|
195
|
-
"onClick",
|
|
196
|
-
"onMouseenter",
|
|
197
|
-
"onMouseleave"
|
|
198
|
-
], yt = ["id"], bt = [
|
|
199
|
-
"x",
|
|
200
|
-
"y",
|
|
201
|
-
"width",
|
|
202
|
-
"height"
|
|
203
|
-
], xt = ["clip-path"], St = ["transform"], Ct = ["transform"], wt = [
|
|
204
|
-
"x",
|
|
205
|
-
"y",
|
|
206
|
-
"fill",
|
|
207
|
-
"font-size",
|
|
208
|
-
"font-family",
|
|
209
|
-
"font-weight"
|
|
210
|
-
], Tt = { key: 0 }, Et = [
|
|
211
|
-
"x",
|
|
212
|
-
"y",
|
|
213
|
-
"height",
|
|
214
|
-
"width"
|
|
215
|
-
], Dt = {
|
|
216
|
-
style: {
|
|
217
|
-
width: "100%",
|
|
218
|
-
height: "100%",
|
|
219
|
-
overflow: "hidden"
|
|
220
|
-
},
|
|
221
|
-
class: "vue-ui-treemap-cell"
|
|
222
|
-
}, Ot = {
|
|
223
|
-
key: 0,
|
|
224
|
-
"data-dom-to-png-ignore": "",
|
|
225
|
-
class: "reset-wrapper"
|
|
226
|
-
}, kt = {
|
|
227
|
-
key: 1,
|
|
228
|
-
style: {
|
|
229
|
-
position: "absolute",
|
|
230
|
-
top: "100%",
|
|
231
|
-
left: "0",
|
|
232
|
-
width: "100%"
|
|
233
|
-
},
|
|
234
|
-
"data-dom-to-png-ignore": "",
|
|
235
|
-
"aria-hidden": "true"
|
|
236
|
-
}, At = {
|
|
237
|
-
key: 6,
|
|
238
|
-
class: "vue-data-ui-watermark"
|
|
239
|
-
}, jt = ["id"], Mt = ["onClick"], Nt = { style: {
|
|
240
|
-
display: "flex",
|
|
241
|
-
"align-items": "center"
|
|
242
|
-
} }, Pt = 4, Ft = /*#__PURE__*/ ve({
|
|
243
|
-
__name: "vue-ui-treemap",
|
|
244
|
-
props: {
|
|
245
|
-
config: {
|
|
246
|
-
type: Object,
|
|
247
|
-
default() {
|
|
248
|
-
return {};
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
dataset: {
|
|
252
|
-
type: Array,
|
|
253
|
-
default() {
|
|
254
|
-
return [];
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
emits: [
|
|
259
|
-
"selectLegend",
|
|
260
|
-
"selectDatapoint",
|
|
261
|
-
"copyAlt"
|
|
262
|
-
],
|
|
263
|
-
setup(e, { expose: ve, emit: Je }) {
|
|
264
|
-
We((e) => ({ f6fafe52: vi.value }));
|
|
265
|
-
let Ye = Pe(() => import("./DataTable-COIO9gi4.js")), Xe = Pe(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), Ze = Pe(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), $e = Pe(() => import("./Tooltip-hhrkQ3Lk.js")), et = Pe(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), tt = Pe(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), nt = Pe(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_treemap: rt } = ce(), { isThemeValid: it, warnInvalidTheme: at } = pe(), k = e, ot = Je, Ft = Ge(), It = m(() => !!k.dataset && k.dataset.length), Lt = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), A = C(ne()), Rt = C(!1), zt = C(""), j = C(!1), Bt = C(0), M = C([]), N = T(null), Vt = T(null), Ht = T(null), Ut = T(null), Wt = T(null), Gt = C(0), Kt = C(0), qt = C(0), P = C([]), Jt = C(null), Yt = C(!1), Xt = C(null), Zt = C(null), Qt = C(null), $t = C(/* @__PURE__ */ new Map()), F = C(null), en = C({
|
|
266
|
-
x: 0,
|
|
267
|
-
y: 0
|
|
268
|
-
}), tn = C("pointer"), nn = C(!1), I = C(dn());
|
|
269
|
-
oe({
|
|
270
|
-
config: () => I.value,
|
|
271
|
-
dataset: () => k.dataset,
|
|
272
|
-
component: "VueUiTreemap",
|
|
273
|
-
rules: [
|
|
274
|
-
se.emptyArray,
|
|
275
|
-
{
|
|
276
|
-
test: (e) => e.length === 1 && e[0]?.children && e[0].children.length < 6 && e[0].children.length > 0 || e.flatMap((e) => e?.children?.length ?? 0).reduce((e, t) => e + t, 0) < 6,
|
|
277
|
-
message: [
|
|
278
|
-
"👀 The number of data points is < 6. Consider:",
|
|
279
|
-
"",
|
|
280
|
-
"▶️ Using another type of chart instead to better show proportions: VueUiDonut, VueUiWaffle"
|
|
281
|
-
]
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
test: (e) => e.length === 1 && e[0]?.children && e[0].children.length === 0,
|
|
285
|
-
message: [
|
|
286
|
-
"👀 There is a series defined in the dataset but it has no children items.",
|
|
287
|
-
"",
|
|
288
|
-
"▶️ Add children items to your series."
|
|
289
|
-
]
|
|
290
|
-
}
|
|
291
|
-
]
|
|
292
|
-
});
|
|
293
|
-
let { transitionEnabled: rn } = he({
|
|
294
|
-
config: () => I.value.transitions,
|
|
295
|
-
dataset: () => k.dataset
|
|
296
|
-
}), L = m(() => I.value.userOptions.useCursorPointer), an = m(() => u({
|
|
297
|
-
defaultConfig: {
|
|
298
|
-
userOptions: { show: !1 },
|
|
299
|
-
style: { chart: {
|
|
300
|
-
backgroundColor: "#999999",
|
|
301
|
-
layout: {
|
|
302
|
-
labels: { showDefaultLabels: !1 },
|
|
303
|
-
rects: { stroke: "#6A6A6A" }
|
|
304
|
-
},
|
|
305
|
-
legend: { backgroundColor: "transparent" }
|
|
306
|
-
} }
|
|
307
|
-
},
|
|
308
|
-
userConfig: I.value.skeletonConfig ?? {}
|
|
309
|
-
})), { loading: R, FINAL_DATASET: on, manualLoading: sn } = ue({
|
|
310
|
-
...Ue(k),
|
|
311
|
-
FINAL_CONFIG: I,
|
|
312
|
-
prepareConfig: dn,
|
|
313
|
-
skeletonDataset: k.config?.skeletonDataset ?? [{
|
|
314
|
-
name: "_",
|
|
315
|
-
value: 53,
|
|
316
|
-
color: "#CACACA90",
|
|
317
|
-
children: [
|
|
318
|
-
{
|
|
319
|
-
name: "_",
|
|
320
|
-
value: 21
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
name: "_",
|
|
324
|
-
value: 13
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
name: "_",
|
|
328
|
-
value: 8
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
name: "_",
|
|
332
|
-
value: 5
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
name: "_",
|
|
336
|
-
value: 3
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
name: "_",
|
|
340
|
-
value: 2
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
name: "_",
|
|
344
|
-
value: 1
|
|
345
|
-
}
|
|
346
|
-
]
|
|
347
|
-
}],
|
|
348
|
-
skeletonConfig: u({
|
|
349
|
-
defaultConfig: I.value,
|
|
350
|
-
userConfig: an.value
|
|
351
|
-
})
|
|
352
|
-
}), { userOptionsVisible: cn, setUserOptionsVisibility: ln, keepUserOptionState: un } = Te({ config: I.value }), { svgRef: z } = Ee({ config: I.value.style.chart.title });
|
|
353
|
-
function dn() {
|
|
354
|
-
let e = fe({
|
|
355
|
-
userConfig: k.config,
|
|
356
|
-
defaultConfig: rt
|
|
357
|
-
}), t = e.theme;
|
|
358
|
-
if (!t) return e;
|
|
359
|
-
if (!it.value(e)) return at(e), e;
|
|
360
|
-
let n = fe({
|
|
361
|
-
userConfig: ke[t] || k.config,
|
|
362
|
-
defaultConfig: e
|
|
363
|
-
}), r = fe({
|
|
364
|
-
userConfig: k.config,
|
|
365
|
-
defaultConfig: n
|
|
366
|
-
});
|
|
367
|
-
return {
|
|
368
|
-
...r,
|
|
369
|
-
customPalette: r.customPalette.length ? r.customPalette : c[t] || i
|
|
370
|
-
};
|
|
371
|
-
}
|
|
372
|
-
D(() => k.config, (e) => {
|
|
373
|
-
R.value || (I.value = dn()), cn.value = !I.value.userOptions.showOnChartHover, Gt.value += 1, Kt.value += 1, qt.value += 1, B.value.showTable = I.value.table.show, B.value.showTooltip = I.value.style.chart.tooltip.show, B.value.showZoom = I.value.style.chart.zoom?.show ?? !1;
|
|
374
|
-
}, { deep: !0 });
|
|
375
|
-
let { isPrinting: fn, isImaging: pn, generatePdf: mn, generateImage: hn } = le({
|
|
376
|
-
elementId: `treemap_${A.value}`,
|
|
377
|
-
fileName: I.value.style.chart.title.text || "vue-ui-treemap",
|
|
378
|
-
options: I.value.userOptions.print
|
|
379
|
-
}), gn = m(() => I.value.userOptions.show && !I.value.style.chart.title.text), _n = m(() => ae(I.value.customPalette)), B = C({
|
|
380
|
-
showTable: I.value.table.show,
|
|
381
|
-
showTooltip: I.value.style.chart.tooltip.show,
|
|
382
|
-
showZoom: I.value.style.chart.zoom?.show ?? !1
|
|
383
|
-
});
|
|
384
|
-
D(I, () => {
|
|
385
|
-
B.value = {
|
|
386
|
-
showTable: I.value.table.show,
|
|
387
|
-
showTooltip: I.value.style.chart.tooltip.show,
|
|
388
|
-
showZoom: I.value.style.chart.zoom?.show ?? !1
|
|
389
|
-
};
|
|
390
|
-
}, { immediate: !0 });
|
|
391
|
-
let vn = C({
|
|
392
|
-
height: I.value.style.chart.height,
|
|
393
|
-
width: I.value.style.chart.width
|
|
394
|
-
});
|
|
395
|
-
function yn(e) {
|
|
396
|
-
let t = N.value, n = vn.value.height;
|
|
397
|
-
return !t || !n ? e : e * (n / t.getBoundingClientRect().height);
|
|
398
|
-
}
|
|
399
|
-
function bn() {
|
|
400
|
-
if (!Jt.value || X.value.length <= 1) return 0;
|
|
401
|
-
let e = Jt.value, t = getComputedStyle(e);
|
|
402
|
-
return yn(e.offsetHeight + parseFloat(t.marginTop || "0") + parseFloat(t.marginBottom || "0") + parseFloat(t.paddingTop || "0") + parseFloat(t.paddingBottom || "0"));
|
|
403
|
-
}
|
|
404
|
-
let V = m(() => {
|
|
405
|
-
let e = I.value.style.chart.padding, t = vn.value.width, n = vn.value.height, r = bn(), i = e.left, a = t - e.right, o = e.top, s = n - e.bottom - r;
|
|
406
|
-
return {
|
|
407
|
-
left: i,
|
|
408
|
-
top: o,
|
|
409
|
-
right: a,
|
|
410
|
-
bottom: s,
|
|
411
|
-
width: a - i,
|
|
412
|
-
height: Math.max(0, s - o),
|
|
413
|
-
vbWidth: t,
|
|
414
|
-
vbHeight: n - r,
|
|
415
|
-
offsetY: r
|
|
416
|
-
};
|
|
417
|
-
}), H = C(l(on.value)), U = C(H.value), xn = T(/* @__PURE__ */ new Map());
|
|
418
|
-
D([H, () => I.value], () => {
|
|
419
|
-
Qt.value = null, $t.value = /* @__PURE__ */ new Map();
|
|
420
|
-
}, { deep: !0 }), D(() => M.value, () => {
|
|
421
|
-
Qt.value = null, $t.value = /* @__PURE__ */ new Map(), Tn(), qt.value += 1, Kt.value += 1;
|
|
422
|
-
}, { deep: !0 }), D([() => vn.value.width, () => vn.value.height], () => {
|
|
423
|
-
$t.value = /* @__PURE__ */ new Map();
|
|
424
|
-
});
|
|
425
|
-
function Sn(e) {
|
|
426
|
-
Array.isArray(e) && e.forEach((e, t) => {
|
|
427
|
-
e.id ||= ne(), e.sourceColor === void 0 && (e.sourceColor = o(e.color) || null);
|
|
428
|
-
let n = e.sourceColor || xn.value.get(e.id) || _n.value[t] || i[t] || i[t % i.length];
|
|
429
|
-
n = o(n), xn.value.set(e.id, n), e.color = n, Cn(e, n);
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
function Cn(e, t) {
|
|
433
|
-
Array.isArray(e.children) && e.children.forEach((n) => {
|
|
434
|
-
n.id ||= ne(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = o(n.color) || null);
|
|
435
|
-
let r = n.sourceColor || t;
|
|
436
|
-
n.color = r, Cn(n, r);
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
function wn(e) {
|
|
440
|
-
let t = Y(e);
|
|
441
|
-
for (; t?.parentId;) t = Y(t.parentId);
|
|
442
|
-
return t?.id ?? null;
|
|
443
|
-
}
|
|
444
|
-
function Tn() {
|
|
445
|
-
let e = H.value.filter((e) => !M.value.includes(e.id));
|
|
446
|
-
if (!P.value.length) {
|
|
447
|
-
U.value = e;
|
|
448
|
-
return;
|
|
449
|
-
}
|
|
450
|
-
let t = P.value[P.value.length - 1], n = Y(t);
|
|
451
|
-
if (!n) {
|
|
452
|
-
P.value = [], U.value = e;
|
|
453
|
-
return;
|
|
454
|
-
}
|
|
455
|
-
let r = wn(n.id);
|
|
456
|
-
if (r && M.value.includes(r)) {
|
|
457
|
-
P.value = [], U.value = e;
|
|
458
|
-
return;
|
|
459
|
-
}
|
|
460
|
-
U.value = [n];
|
|
461
|
-
}
|
|
462
|
-
D(() => on.value, () => {
|
|
463
|
-
H.value = l(on.value), Sn(H.value), Tn(), qt.value += 1, Kt.value += 1;
|
|
464
|
-
}, {
|
|
465
|
-
deep: !0,
|
|
466
|
-
immediate: !0,
|
|
467
|
-
flush: "post"
|
|
468
|
-
});
|
|
469
|
-
let W = T(null), En = T(null);
|
|
470
|
-
ze(() => {
|
|
471
|
-
Yt.value = !0, On();
|
|
472
|
-
});
|
|
473
|
-
let Dn = m(() => I.value.debug);
|
|
474
|
-
ze(() => {
|
|
475
|
-
Ft["chart-background"] && Dn.value && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
476
|
-
});
|
|
477
|
-
function On() {
|
|
478
|
-
if (a(k.dataset) && te({
|
|
479
|
-
componentName: "VueUiTreemap",
|
|
480
|
-
type: "dataset",
|
|
481
|
-
debug: Dn.value
|
|
482
|
-
}), Sn(H.value), a(k.dataset) || (sn.value = I.value.loading), I.value.responsive) {
|
|
483
|
-
let e = ye(() => {
|
|
484
|
-
let { width: e, height: t } = be({
|
|
485
|
-
chart: N.value,
|
|
486
|
-
title: I.value.style.chart.title.text ? Vt.value : null,
|
|
487
|
-
legend: I.value.style.chart.legend.show ? Ht.value : null,
|
|
488
|
-
source: Ut.value,
|
|
489
|
-
noTitle: Wt.value
|
|
490
|
-
});
|
|
491
|
-
requestAnimationFrame(() => {
|
|
492
|
-
vn.value.width = e, vn.value.height = t - 12;
|
|
493
|
-
});
|
|
494
|
-
});
|
|
495
|
-
W.value && (En.value && W.value.unobserve(En.value), W.value.disconnect()), W.value = new ResizeObserver(e), En.value = N.value.parentNode, W.value.observe(En.value);
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
Re(() => {
|
|
499
|
-
W.value && (En.value && W.value.unobserve(En.value), W.value.disconnect());
|
|
500
|
-
});
|
|
501
|
-
let kn = m(() => U.value.map((e, t) => ({
|
|
502
|
-
...e,
|
|
503
|
-
color: o(e.color) || _n.value[t] || i[t] || i[t % i.length]
|
|
504
|
-
})).filter((e) => !M.value.includes(e.id))), An = m(() => H.value.filter((e) => !M.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), jn = m({
|
|
505
|
-
get() {
|
|
506
|
-
let e = [...kn.value];
|
|
507
|
-
return I.value.style.chart.layout.sorted && (e = [...kn.value].sort((e, t) => t.value - e.value)), e.map((e) => ({ ...e }));
|
|
508
|
-
},
|
|
509
|
-
set(e) {
|
|
510
|
-
return e;
|
|
511
|
-
}
|
|
512
|
-
});
|
|
513
|
-
function Mn(e, t) {
|
|
514
|
-
return e.value / t;
|
|
515
|
-
}
|
|
516
|
-
function Nn(e, t, n) {
|
|
517
|
-
let r = I.value.style.chart.layout.rects.colorRatio - Mn(t, n);
|
|
518
|
-
return f(e, r < 0 ? 0 : r);
|
|
519
|
-
}
|
|
520
|
-
function Pn(e) {
|
|
521
|
-
return Array.isArray(e.children) && e.children.length > 0;
|
|
522
|
-
}
|
|
523
|
-
function Fn(e) {
|
|
524
|
-
return [...e].sort((e, t) => {
|
|
525
|
-
let n = Pn(e), r = Pn(t);
|
|
526
|
-
if (n !== r) return n - r;
|
|
527
|
-
let i = Number(e.value) || 0;
|
|
528
|
-
return (Number(t.value) || 0) - i;
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
function In(e, t, n, r, a) {
|
|
532
|
-
return Fn(e).map((e, s) => {
|
|
533
|
-
let c = e.sourceColor || o(e.color) || o(t) || _n.value[s] || i[s] || i[s % i.length], l = e.sourceColor ? e.sourceColor : Nn(c, e, r), u = Mn(e, r), d = a ?? e.parentId ?? e.id, f = Array.isArray(e.children) && e.children.length && e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) || 1;
|
|
534
|
-
return {
|
|
535
|
-
...e,
|
|
536
|
-
color: l,
|
|
537
|
-
proportion: u,
|
|
538
|
-
parentName: n,
|
|
539
|
-
rootId: d,
|
|
540
|
-
children: Array.isArray(e.children) && e.children.length ? In(e.children, c, e.name, f, d) : void 0
|
|
541
|
-
};
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
function Ln(e) {
|
|
545
|
-
let t = Xn(e), n = Rn(e), r = t * .55, i = t * .55, a = t * 1.05, o = t * 1.05, s = t * .35, c = n ? a + o + s : t * .45, l = e.x0 + r, u = e.x1 - r, d = e.y0 + c, f = e.y1 - i;
|
|
546
|
-
return u <= l || f <= d ? null : {
|
|
547
|
-
x0: l,
|
|
548
|
-
y0: d,
|
|
549
|
-
x1: u,
|
|
550
|
-
y1: f
|
|
551
|
-
};
|
|
552
|
-
}
|
|
553
|
-
function Rn(e) {
|
|
554
|
-
return I.value.style.chart.layout.labels.hideUnderProportion === 0 || zn(e);
|
|
555
|
-
}
|
|
556
|
-
function zn(e) {
|
|
557
|
-
let t = Number(I.value.style.chart.layout.labels.hideUnderProportion);
|
|
558
|
-
return !Number.isFinite(t) || t <= 0 || e.proportion > t;
|
|
559
|
-
}
|
|
560
|
-
function Bn(e, t, n = 0, r = null) {
|
|
561
|
-
if (!Array.isArray(e) || !e.length) return [];
|
|
562
|
-
let i = e.map((e) => {
|
|
563
|
-
let { children: t, ...n } = e;
|
|
564
|
-
return { ...n };
|
|
565
|
-
}), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s = Qe(i, t), c = [];
|
|
566
|
-
for (let e of s) {
|
|
567
|
-
let t = a.get(e.id) || [], i = o.get(e.id), s = {
|
|
568
|
-
...e,
|
|
569
|
-
depth: n,
|
|
570
|
-
parentId: r ?? e.parentId ?? null,
|
|
571
|
-
color: i?.color ?? e.color ?? null,
|
|
572
|
-
children: t,
|
|
573
|
-
isVisibleNode: !0,
|
|
574
|
-
showLabel: Rn(e)
|
|
575
|
-
};
|
|
576
|
-
if (c.push(s), t.length) {
|
|
577
|
-
let r = Ln(s);
|
|
578
|
-
r && c.push(...Bn(t, r, n + 1, e.id));
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
return c;
|
|
582
|
-
}
|
|
583
|
-
let Vn = m(() => {
|
|
584
|
-
let e = U.value.length ? U.value : jn.value, t = e.map((e) => Number(e.value) || 0).reduce((e, t) => e + t, 0) || 1;
|
|
585
|
-
return Bn(e.map((e, n) => {
|
|
586
|
-
let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: a, ...s } = e, c = e.sourceColor || o(e.color) || xn.value.get(e.id) || _n.value[n] || i[n] || i[n % i.length], l = e.sourceColor ? e.sourceColor : Nn(c, e, t);
|
|
587
|
-
return {
|
|
588
|
-
...s,
|
|
589
|
-
id: e.id || ne(),
|
|
590
|
-
parentId: e.parentId ?? null,
|
|
591
|
-
name: e.name,
|
|
592
|
-
value: e.value,
|
|
593
|
-
color: l,
|
|
594
|
-
proportion: (Number(e.value) || 0) / t,
|
|
595
|
-
children: Array.isArray(e.children) && e.children.length ? In(e.children, c, e.name, r || 1) : void 0
|
|
596
|
-
};
|
|
597
|
-
}), {
|
|
598
|
-
x0: V.value.left,
|
|
599
|
-
y0: V.value.top,
|
|
600
|
-
x1: V.value.left + V.value.width,
|
|
601
|
-
y1: V.value.top + V.value.height
|
|
602
|
-
});
|
|
603
|
-
}), G = m(() => Vn.value);
|
|
604
|
-
function Hn(e) {
|
|
605
|
-
return (Z.value && Z.value.id === e.id ? I.value.style.chart.layout.rects.selected.strokeWidth : I.value.style.chart.layout.rects.strokeWidth) * Mr.value;
|
|
606
|
-
}
|
|
607
|
-
function K({ y0: e, y1: t }) {
|
|
608
|
-
return t - e <= 0 ? 1e-4 : Math.round((t - e) * 1e4) / 1e4;
|
|
609
|
-
}
|
|
610
|
-
function q({ x0: e, x1: t }) {
|
|
611
|
-
return t - e <= 0 ? 1e-4 : Math.round((t - e) * 1e4) / 1e4;
|
|
612
|
-
}
|
|
613
|
-
function Un() {
|
|
614
|
-
let e = I.value.style.chart.layout.labels, t = Number(e.minFontSize), n = Number(e.fontSize), r = Math.max(0, Math.min(Number.isFinite(t) ? t : 0, Number.isFinite(n) ? n : 0));
|
|
615
|
-
return {
|
|
616
|
-
lowerBound: r,
|
|
617
|
-
upperBound: Math.max(r, Number.isFinite(n) ? n : r)
|
|
618
|
-
};
|
|
619
|
-
}
|
|
620
|
-
function Wn(e) {
|
|
621
|
-
let t = Math.min(4, Math.max(e * .25, .5));
|
|
622
|
-
return {
|
|
623
|
-
paddingX: t,
|
|
624
|
-
paddingTop: t
|
|
625
|
-
};
|
|
626
|
-
}
|
|
627
|
-
function Gn(e, t) {
|
|
628
|
-
let { paddingX: n, paddingTop: r } = Wn(t), i = t * 1.1;
|
|
629
|
-
return {
|
|
630
|
-
x: e.x0 + n,
|
|
631
|
-
y: e.y0 + r,
|
|
632
|
-
width: Math.max(q(e) - n * 2, 0),
|
|
633
|
-
height: Math.max(K(e) - r * 2, 0),
|
|
634
|
-
lineHeight: i
|
|
635
|
-
};
|
|
636
|
-
}
|
|
637
|
-
function Kn(e, t) {
|
|
638
|
-
return d(I.value.style.chart.layout.labels.formatter, e.value, s({
|
|
639
|
-
p: I.value.style.chart.layout.labels.prefix,
|
|
640
|
-
v: e.value,
|
|
641
|
-
s: I.value.style.chart.layout.labels.suffix,
|
|
642
|
-
r: I.value.style.chart.tooltip.roundingValue
|
|
643
|
-
}), {
|
|
644
|
-
datapoint: e,
|
|
645
|
-
seriesIndex: t
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
function qn(e, t) {
|
|
649
|
-
let n = Kn(e, t);
|
|
650
|
-
return Array.isArray(e.children) && e.children.length ? [`${e.name} (${n})`] : [`${e.name}`, n].filter((e) => `${e}`.length);
|
|
651
|
-
}
|
|
652
|
-
function Jn(e, t, n) {
|
|
653
|
-
let r = qn(e, n), i = Gn(e, t);
|
|
654
|
-
return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) => ui(e, t, n === 0 ? 500 : 400) <= i.width);
|
|
655
|
-
}
|
|
656
|
-
function Yn(e, t, n, r) {
|
|
657
|
-
let i = qn(e, t), a = Math.max(1, ...i.map((e) => String(e).length)), o = Math.min(18, Math.max(10, Math.ceil(a * .7))), s = Math.max(1, i.length), c = Math.max(q(e) - 1, 1e-4), l = Math.max(K(e) - 1, 1e-4), u = c / (o * .58), d = l / (s * 1.35);
|
|
658
|
-
return Math.max(n, Math.min(r, u, d));
|
|
659
|
-
}
|
|
660
|
-
function Xn(e, t) {
|
|
661
|
-
let { lowerBound: n, upperBound: r } = Un(), i = Math.max(1e-4, Math.min(q(e), K(e))), a = Math.max(n, Math.min(r, i * .9)), o = Math.min(a, Yn(e, t, n, r));
|
|
662
|
-
if (Jn(e, o, t) || !Jn(e, n, t)) return o;
|
|
663
|
-
let s = n, c = o, l = n;
|
|
664
|
-
for (let n = 0; n < 8; n += 1) {
|
|
665
|
-
let n = (s + c) / 2;
|
|
666
|
-
Jn(e, n, t) ? (l = n, s = n) : c = n;
|
|
667
|
-
}
|
|
668
|
-
let u = Math.max(n, o * .7);
|
|
669
|
-
return l >= u ? l : o;
|
|
670
|
-
}
|
|
671
|
-
function Zn(e) {
|
|
672
|
-
j.value = e, Bt.value += 1;
|
|
673
|
-
}
|
|
674
|
-
let J = m(() => ({
|
|
675
|
-
x: 0,
|
|
676
|
-
y: 0,
|
|
677
|
-
width: V.value.vbWidth,
|
|
678
|
-
height: V.value.vbHeight
|
|
679
|
-
}));
|
|
680
|
-
function Y(e, t = H.value) {
|
|
681
|
-
for (let n of t) {
|
|
682
|
-
if (n.id === e) return n;
|
|
683
|
-
if (n.children) {
|
|
684
|
-
let t = Y(e, n.children);
|
|
685
|
-
if (t) return t;
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
return null;
|
|
689
|
-
}
|
|
690
|
-
function Qn(e) {
|
|
691
|
-
let t = [], n = Y(e);
|
|
692
|
-
for (; n && n.parentId;) {
|
|
693
|
-
let e = Y(n.parentId);
|
|
694
|
-
if (!e) break;
|
|
695
|
-
t.unshift(e.id), n = e;
|
|
696
|
-
}
|
|
697
|
-
return t;
|
|
698
|
-
}
|
|
699
|
-
let $n = m(() => P.value.length > 0);
|
|
700
|
-
function er() {
|
|
701
|
-
U.value = H.value.slice(), P.value = [], ot("selectDatapoint", void 0);
|
|
702
|
-
}
|
|
703
|
-
function tr() {
|
|
704
|
-
return P.value[P.value.length - 1] ?? null;
|
|
705
|
-
}
|
|
706
|
-
function nr(e, t, n) {
|
|
707
|
-
P.value = [...Qn(e.id), e.id], U.value = [e], I.value.events.datapointClick && I.value.events.datapointClick({
|
|
708
|
-
datapoint: t ?? e,
|
|
709
|
-
seriesIndex: n
|
|
710
|
-
}), ot("selectDatapoint", t ?? e);
|
|
711
|
-
}
|
|
712
|
-
function rr(e, t) {
|
|
713
|
-
let n = tr();
|
|
714
|
-
if (!n) {
|
|
715
|
-
er();
|
|
716
|
-
return;
|
|
717
|
-
}
|
|
718
|
-
let r = Y(n);
|
|
719
|
-
if (!r?.parentId) {
|
|
720
|
-
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
721
|
-
datapoint: e,
|
|
722
|
-
seriesIndex: t
|
|
723
|
-
}), er();
|
|
724
|
-
return;
|
|
725
|
-
}
|
|
726
|
-
let i = Y(r.parentId);
|
|
727
|
-
if (!i) {
|
|
728
|
-
er();
|
|
729
|
-
return;
|
|
730
|
-
}
|
|
731
|
-
P.value = [...Qn(i.id), i.id], U.value = [i], I.value.events.datapointClick && I.value.events.datapointClick({
|
|
732
|
-
datapoint: e,
|
|
733
|
-
seriesIndex: t
|
|
734
|
-
}), ot("selectDatapoint", e);
|
|
735
|
-
}
|
|
736
|
-
function ir(e, t) {
|
|
737
|
-
if (!e) {
|
|
738
|
-
er();
|
|
739
|
-
return;
|
|
740
|
-
}
|
|
741
|
-
let n = Y(e.id);
|
|
742
|
-
if (n) {
|
|
743
|
-
if (tr() === n.id) {
|
|
744
|
-
rr(e, t);
|
|
745
|
-
return;
|
|
746
|
-
}
|
|
747
|
-
nr(n, e, t);
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
function ar(e) {
|
|
751
|
-
return e ? tr() === e.id : !1;
|
|
752
|
-
}
|
|
753
|
-
let X = m(() => {
|
|
754
|
-
let e = [{
|
|
755
|
-
id: null,
|
|
756
|
-
label: "All"
|
|
757
|
-
}];
|
|
758
|
-
if (P.value.length > 0) {
|
|
759
|
-
let t = Y(P.value[P.value.length - 1]), n = [];
|
|
760
|
-
for (; t;) n.unshift(t), t = t.parentId ? Y(t.parentId) : null;
|
|
761
|
-
for (let t of n) e.push({
|
|
762
|
-
id: t.id,
|
|
763
|
-
label: t.name,
|
|
764
|
-
node: t
|
|
765
|
-
});
|
|
766
|
-
}
|
|
767
|
-
return e;
|
|
768
|
-
}), Z = T(null), or = m(() => H.value.map((e, t) => ({
|
|
769
|
-
...e,
|
|
770
|
-
color: o(e.color) || _n.value[t] || i[t] || i[t % i.length],
|
|
771
|
-
shape: "square"
|
|
772
|
-
})).sort((e, t) => t.value - e.value).map((e, t) => {
|
|
773
|
-
let n = e.value / H.value.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
774
|
-
return {
|
|
775
|
-
...e,
|
|
776
|
-
proportion: n,
|
|
777
|
-
isSegregated: M.value.includes(e.id),
|
|
778
|
-
segregate: () => ur(e),
|
|
779
|
-
opacity: M.value.includes(e.id) ? .5 : 1,
|
|
780
|
-
display: `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${I.value.style.chart.legend.showValue ? d(I.value.style.chart.layout.labels.formatter, e.value, s({
|
|
781
|
-
p: I.value.style.chart.layout.labels.prefix,
|
|
782
|
-
v: e.value,
|
|
783
|
-
s: I.value.style.chart.layout.labels.suffix,
|
|
784
|
-
r: I.value.style.chart.legend.roundingValue
|
|
785
|
-
}), { datapoint: e }) : ""}${I.value.style.chart.legend.showPercentage ? M.value.includes(e.id) ? `${I.value.style.chart.legend.showValue ? " (" : ""}- %${I.value.style.chart.legend.showValue ? ")" : ""}` : `${I.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / An.value) ? "-" : (e.value / An.value * 100).toFixed(I.value.style.chart.legend.roundingPercentage)}%${I.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
786
|
-
};
|
|
787
|
-
})), sr = m(() => ({
|
|
788
|
-
cy: "treemap-div-legend",
|
|
789
|
-
backgroundColor: I.value.style.chart.legend.backgroundColor,
|
|
790
|
-
color: I.value.style.chart.legend.color,
|
|
791
|
-
fontSize: I.value.style.chart.legend.fontSize,
|
|
792
|
-
paddingBottom: 12,
|
|
793
|
-
fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
|
|
794
|
-
})), cr = m(() => M.value.length === or.value.length);
|
|
795
|
-
function lr() {
|
|
796
|
-
M.value.length ? M.value = [] : or.value.forEach((e) => {
|
|
797
|
-
M.value.push(e.id);
|
|
798
|
-
}), ot("selectLegend", H.value.filter((e) => !M.value.includes(e.id)));
|
|
799
|
-
}
|
|
800
|
-
function ur(e) {
|
|
801
|
-
Z.value = null, M.value.includes(e.id) ? M.value = M.value.filter((t) => t !== e.id) : M.value.length < k.dataset.length - 1 && M.value.push(e.id), ot("selectLegend", H.value.filter((e) => !M.value.includes(e.id)));
|
|
802
|
-
}
|
|
803
|
-
function dr(e) {
|
|
804
|
-
return H.value.length ? H.value.find((t) => t.name === e) || (Dn.value && console.warn(`VueUiTreemap - Series name not found "${e}"`), null) : (Dn.value && console.warn("VueUiTreemap - There are no series to show."), null);
|
|
805
|
-
}
|
|
806
|
-
function fr(e) {
|
|
807
|
-
let t = dr(e);
|
|
808
|
-
t !== null && M.value.includes(t.id) && ur({ id: t.id });
|
|
809
|
-
}
|
|
810
|
-
function pr(e) {
|
|
811
|
-
let t = dr(e);
|
|
812
|
-
t !== null && (M.value.includes(t.id) || ur({ id: t.id }));
|
|
813
|
-
}
|
|
814
|
-
function mr({ datapoint: e, seriesIndex: t }) {
|
|
815
|
-
Z.value = null, Rt.value = !1, F.value = null, tn.value = "pointer", I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
816
|
-
datapoint: e,
|
|
817
|
-
seriesIndex: t
|
|
818
|
-
});
|
|
819
|
-
}
|
|
820
|
-
let hr = C(null);
|
|
821
|
-
function gr({ datapoint: e, seriesIndex: t, triggerMode: r = "pointer" }) {
|
|
822
|
-
if (cr.value || r === "pointer" && Er.value) return;
|
|
823
|
-
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
824
|
-
datapoint: e,
|
|
825
|
-
seriesIndex: t
|
|
826
|
-
}), F.value = t, tn.value = r, Z.value = e, hr.value = {
|
|
827
|
-
datapoint: e,
|
|
828
|
-
seriesIndex: t,
|
|
829
|
-
config: I.value,
|
|
830
|
-
series: kn.value
|
|
831
|
-
};
|
|
832
|
-
let i = I.value.style.chart.tooltip.customFormat;
|
|
833
|
-
if (n(i) && ee(() => i({
|
|
834
|
-
seriesIndex: t,
|
|
835
|
-
datapoint: e,
|
|
836
|
-
series: kn.value,
|
|
837
|
-
config: I.value
|
|
838
|
-
}))) zt.value = i({
|
|
839
|
-
seriesIndex: t,
|
|
840
|
-
datapoint: e,
|
|
841
|
-
series: kn.value,
|
|
842
|
-
config: I.value
|
|
843
|
-
});
|
|
844
|
-
else {
|
|
845
|
-
let n = "";
|
|
846
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${d(I.value.style.chart.layout.labels.formatter, e.value, s({
|
|
847
|
-
p: I.value.style.chart.layout.labels.prefix,
|
|
848
|
-
v: e.value,
|
|
849
|
-
s: I.value.style.chart.layout.labels.suffix,
|
|
850
|
-
r: I.value.style.chart.tooltip.roundingValue
|
|
851
|
-
}), {
|
|
852
|
-
datapoint: e,
|
|
853
|
-
seriesIndex: t
|
|
854
|
-
})}</b>`, zt.value = `<div>${n}</div>`;
|
|
855
|
-
}
|
|
856
|
-
Rt.value = !0;
|
|
857
|
-
}
|
|
858
|
-
let Q = m(() => ({
|
|
859
|
-
head: G.value.map((e) => ({
|
|
860
|
-
name: e.name,
|
|
861
|
-
color: e.color
|
|
862
|
-
})),
|
|
863
|
-
body: G.value.map((e) => e.value)
|
|
864
|
-
}));
|
|
865
|
-
function _r(e = null) {
|
|
866
|
-
Ie(() => {
|
|
867
|
-
let n = Q.value.head.map((e, t) => [
|
|
868
|
-
[e.name],
|
|
869
|
-
[Q.value.body[t]],
|
|
870
|
-
[isNaN(Q.value.body[t] / An.value) ? "-" : Q.value.body[t] / An.value * 100]
|
|
871
|
-
]), i = [
|
|
872
|
-
[I.value.style.chart.title.text],
|
|
873
|
-
[I.value.style.chart.title.subtitle.text],
|
|
874
|
-
[
|
|
875
|
-
[""],
|
|
876
|
-
["val"],
|
|
877
|
-
["%"]
|
|
878
|
-
]
|
|
879
|
-
].concat(n), a = r(i);
|
|
880
|
-
e ? e(a) : t({
|
|
881
|
-
csvContent: a,
|
|
882
|
-
title: I.value.style.chart.title.text || "vue-ui-treemap"
|
|
883
|
-
});
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
let vr = m(() => {
|
|
887
|
-
let e = [
|
|
888
|
-
I.value.table.columnNames.series,
|
|
889
|
-
I.value.table.columnNames.value,
|
|
890
|
-
I.value.table.columnNames.percentage
|
|
891
|
-
], t = Q.value.head.map((e, t) => {
|
|
892
|
-
let n = d(I.value.style.chart.layout.labels.formatter, Q.value.body[t], s({
|
|
893
|
-
p: I.value.style.chart.layout.labels.prefix,
|
|
894
|
-
v: Q.value.body[t],
|
|
895
|
-
s: I.value.style.chart.layout.labels.suffix,
|
|
896
|
-
r: I.value.table.td.roundingValue
|
|
897
|
-
}));
|
|
898
|
-
return [
|
|
899
|
-
{
|
|
900
|
-
color: e.color,
|
|
901
|
-
name: e.name,
|
|
902
|
-
shape: "square"
|
|
903
|
-
},
|
|
904
|
-
n,
|
|
905
|
-
isNaN(Q.value.body[t] / An.value) ? "-" : s({
|
|
906
|
-
v: Q.value.body[t] / An.value * 100,
|
|
907
|
-
s: "%",
|
|
908
|
-
r: I.value.table.td.roundingPercentage
|
|
909
|
-
})
|
|
910
|
-
];
|
|
911
|
-
}), n = {
|
|
912
|
-
th: {
|
|
913
|
-
backgroundColor: I.value.table.th.backgroundColor,
|
|
914
|
-
color: I.value.table.th.color,
|
|
915
|
-
outline: I.value.table.th.outline
|
|
916
|
-
},
|
|
917
|
-
td: {
|
|
918
|
-
backgroundColor: I.value.table.td.backgroundColor,
|
|
919
|
-
color: I.value.table.td.color,
|
|
920
|
-
outline: I.value.table.td.outline
|
|
921
|
-
},
|
|
922
|
-
breakpoint: I.value.table.responsiveBreakpoint
|
|
923
|
-
};
|
|
924
|
-
return {
|
|
925
|
-
colNames: [I.value.table.columnNames.series, I.value.table.columnNames.value],
|
|
926
|
-
head: e,
|
|
927
|
-
body: t,
|
|
928
|
-
config: n
|
|
929
|
-
};
|
|
930
|
-
});
|
|
931
|
-
function yr() {
|
|
932
|
-
return G.value;
|
|
933
|
-
}
|
|
934
|
-
function br() {
|
|
935
|
-
B.value.showTable = !B.value.showTable;
|
|
936
|
-
}
|
|
937
|
-
function xr() {
|
|
938
|
-
B.value.showTooltip = !B.value.showTooltip;
|
|
939
|
-
}
|
|
940
|
-
function Sr() {
|
|
941
|
-
B.value.showZoom = !B.value.showZoom;
|
|
942
|
-
}
|
|
943
|
-
let Cr = C(!1);
|
|
944
|
-
function wr() {
|
|
945
|
-
Cr.value = !Cr.value;
|
|
946
|
-
}
|
|
947
|
-
let Tr = m(() => !Cr.value && B.value.showZoom), Er = C(null), Dr = C(!1), { viewBox: $, resetZoom: Or, isZoom: kr, setInitialViewBox: Ar, scale: jr } = Oe(z, {
|
|
948
|
-
x: J.value.x,
|
|
949
|
-
y: J.value.y,
|
|
950
|
-
width: Math.max(10, J.value.width),
|
|
951
|
-
height: Math.max(10, J.value.height)
|
|
952
|
-
}, 1, Tr), Mr = m(() => 1 / jr.value), Nr = m(() => Math.min(1, I.value.style.chart.layout.labels.fontSizeZoomFactor / Math.max(jr.value, 1e-4))), Pr = m(() => `scale(${Nr.value})`), Fr = m(() => B.value.showZoom || kr.value);
|
|
953
|
-
D([
|
|
954
|
-
() => J.value.x,
|
|
955
|
-
() => J.value.y,
|
|
956
|
-
() => J.value.width,
|
|
957
|
-
() => J.value.height
|
|
958
|
-
], () => {
|
|
959
|
-
Ie(() => {
|
|
960
|
-
Ar({
|
|
961
|
-
x: J.value.x,
|
|
962
|
-
y: J.value.y,
|
|
963
|
-
width: Math.max(10, J.value.width),
|
|
964
|
-
height: Math.max(10, J.value.height)
|
|
965
|
-
});
|
|
966
|
-
});
|
|
967
|
-
}, { immediate: !0 });
|
|
968
|
-
function Ir(e) {
|
|
969
|
-
Tr.value && (e.button === void 0 || e.button === 0) && (Er.value = {
|
|
970
|
-
x: e.clientX,
|
|
971
|
-
y: e.clientY
|
|
972
|
-
}, Dr.value = !1);
|
|
973
|
-
}
|
|
974
|
-
function Lr(e) {
|
|
975
|
-
if (!Tr.value || !Er.value) return;
|
|
976
|
-
let t = e.clientX - Er.value.x, n = e.clientY - Er.value.y;
|
|
977
|
-
Math.hypot(t, n) > Pt && (Dr.value = !0);
|
|
978
|
-
}
|
|
979
|
-
function Rr() {
|
|
980
|
-
Er.value = null, Dr.value && window.setTimeout(() => {
|
|
981
|
-
Dr.value = !1;
|
|
982
|
-
}, 0);
|
|
983
|
-
}
|
|
984
|
-
function zr(e, t) {
|
|
985
|
-
Dr.value || ir(e, t);
|
|
986
|
-
}
|
|
987
|
-
let Br = C(null);
|
|
988
|
-
function Vr(e) {
|
|
989
|
-
Br.value = e;
|
|
990
|
-
}
|
|
991
|
-
function Hr() {
|
|
992
|
-
Br.value = null;
|
|
993
|
-
}
|
|
994
|
-
async function Ur({ scale: e = 2 } = {}) {
|
|
995
|
-
if (!N.value) return;
|
|
996
|
-
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ge({
|
|
997
|
-
domElement: N.value,
|
|
998
|
-
base64: !0,
|
|
999
|
-
img: !0,
|
|
1000
|
-
scale: e
|
|
1001
|
-
});
|
|
1002
|
-
return {
|
|
1003
|
-
imageUri: i,
|
|
1004
|
-
base64: a,
|
|
1005
|
-
title: I.value.style.chart.title.text,
|
|
1006
|
-
width: t,
|
|
1007
|
-
height: n,
|
|
1008
|
-
aspectRatio: r
|
|
1009
|
-
};
|
|
1010
|
-
}
|
|
1011
|
-
let Wr = m(() => {
|
|
1012
|
-
let e = I.value.table.useDialog && !I.value.table.show, t = B.value.showTable;
|
|
1013
|
-
return {
|
|
1014
|
-
component: e ? nt : Ze,
|
|
1015
|
-
title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1016
|
-
props: e ? {
|
|
1017
|
-
backgroundColor: I.value.table.th.backgroundColor,
|
|
1018
|
-
color: I.value.table.th.color,
|
|
1019
|
-
headerColor: I.value.table.th.color,
|
|
1020
|
-
headerBg: I.value.table.th.backgroundColor,
|
|
1021
|
-
isFullscreen: j.value,
|
|
1022
|
-
fullscreenParent: N.value,
|
|
1023
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1024
|
-
isCursorPointer: L.value
|
|
1025
|
-
} : {
|
|
1026
|
-
hideDetails: !0,
|
|
1027
|
-
config: {
|
|
1028
|
-
open: t,
|
|
1029
|
-
maxHeight: 1e4,
|
|
1030
|
-
body: {
|
|
1031
|
-
backgroundColor: I.value.style.chart.backgroundColor,
|
|
1032
|
-
color: I.value.style.chart.color
|
|
1033
|
-
},
|
|
1034
|
-
head: {
|
|
1035
|
-
backgroundColor: I.value.style.chart.backgroundColor,
|
|
1036
|
-
color: I.value.style.chart.color
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
};
|
|
1041
|
-
});
|
|
1042
|
-
D(() => B.value.showTable, (e) => {
|
|
1043
|
-
I.value.table.show || (e && I.value.table.useDialog && Xt.value ? Xt.value.open() : "close" in Xt.value && Xt.value.close());
|
|
1044
|
-
});
|
|
1045
|
-
function Gr() {
|
|
1046
|
-
B.value.showTable = !1, Zt.value && Zt.value.setTableIconState(!1);
|
|
1047
|
-
}
|
|
1048
|
-
let Kr = m(() => or.value.map((e) => ({
|
|
1049
|
-
...e,
|
|
1050
|
-
name: e.display
|
|
1051
|
-
}))), qr = m(() => I.value.style.chart.backgroundColor), Jr = m(() => I.value.style.chart.legend), Yr = m(() => I.value.style.chart.title), { isCallbackImaging: Xr, isCallbackSvg: Zr, generateSvg: Qr, onGenerateImage: $r } = me({
|
|
1052
|
-
svg: z,
|
|
1053
|
-
title: Yr,
|
|
1054
|
-
legend: Jr,
|
|
1055
|
-
legendItems: Kr,
|
|
1056
|
-
backgroundColor: qr,
|
|
1057
|
-
getSvgCallback: () => I.value.userOptions.callbacks.svg,
|
|
1058
|
-
generateImage: hn
|
|
1059
|
-
});
|
|
1060
|
-
function ei(e, t) {
|
|
1061
|
-
let n = Xn(e, t), { paddingX: r, paddingTop: i } = Wn(n);
|
|
1062
|
-
return {
|
|
1063
|
-
fontSize: n,
|
|
1064
|
-
paddingX: r,
|
|
1065
|
-
paddingTop: i,
|
|
1066
|
-
lineHeight: n * 1.1
|
|
1067
|
-
};
|
|
1068
|
-
}
|
|
1069
|
-
function ti(e) {
|
|
1070
|
-
return re(e.color ?? I.value.style.chart.backgroundColor);
|
|
1071
|
-
}
|
|
1072
|
-
function ni({ availableHeight: e, lineHeight: t, lineIndex: n }) {
|
|
1073
|
-
if (n === 0) return Infinity;
|
|
1074
|
-
let r = e / (n + 1);
|
|
1075
|
-
return r < 1e-4 ? -Infinity : t <= 0 ? Infinity : r / t;
|
|
1076
|
-
}
|
|
1077
|
-
function ri() {
|
|
1078
|
-
return Number(I.value.style.chart.layout.labels.hideUnderProportion) === 0;
|
|
1079
|
-
}
|
|
1080
|
-
function ii(e) {
|
|
1081
|
-
let t = Nr.value;
|
|
1082
|
-
return e.alwaysShowAllLines ? `scale(${Math.min(t, e.allLinesScaleCap)})` : Pr.value;
|
|
1083
|
-
}
|
|
1084
|
-
function ai({ rect: e, seriesIndex: t }) {
|
|
1085
|
-
if (!e || !I.value.style.chart.layout.labels.showDefaultLabels || !Rn(e)) return null;
|
|
1086
|
-
let { fontSize: n, paddingX: r, paddingTop: i, lineHeight: a } = ei(e, t), o = ti(e), s = qn(e, t).map((e) => String(e ?? "")), c = Gn(e, n);
|
|
1087
|
-
if (!s.some(Boolean) || c.width <= 0 || c.height <= 0) return null;
|
|
1088
|
-
let l = ri(), u = l ? Math.max(1e-4, Math.min(1, c.height / Math.max(s.length * a, 1e-4))) : 1, d = `treemap_clip_${A.value}_${e.id}`, f = e.x0, ee = e.y0, te = Math.max(q(e), 0), ne = Math.max(K(e), 0);
|
|
1089
|
-
return {
|
|
1090
|
-
key: oi(e),
|
|
1091
|
-
clipId: d,
|
|
1092
|
-
clipX: f,
|
|
1093
|
-
clipY: ee,
|
|
1094
|
-
clipWidth: te,
|
|
1095
|
-
clipHeight: ne,
|
|
1096
|
-
translate: `translate(${e.x0}, ${e.y0})`,
|
|
1097
|
-
alwaysShowAllLines: l,
|
|
1098
|
-
allLinesScaleCap: u,
|
|
1099
|
-
lines: s.map((t, s) => ({
|
|
1100
|
-
key: `${e.id}_${s}`,
|
|
1101
|
-
text: t,
|
|
1102
|
-
x: r,
|
|
1103
|
-
y: i + a * s,
|
|
1104
|
-
maxZoomFactor: ni({
|
|
1105
|
-
availableHeight: c.height,
|
|
1106
|
-
lineHeight: a,
|
|
1107
|
-
lineIndex: s
|
|
1108
|
-
}),
|
|
1109
|
-
fill: o,
|
|
1110
|
-
fontSize: n,
|
|
1111
|
-
fontFamily: I.value.style.fontFamily,
|
|
1112
|
-
fontWeight: s === 0 ? 500 : 400
|
|
1113
|
-
}))
|
|
1114
|
-
};
|
|
1115
|
-
}
|
|
1116
|
-
function oi(e) {
|
|
1117
|
-
return `${e.id}`;
|
|
1118
|
-
}
|
|
1119
|
-
let si = m(() => Ft.rect || R.value || !I.value.style.chart.layout.labels.showDefaultLabels || cr.value ? [] : G.value.map((e, t) => e.showLabel ? ai({
|
|
1120
|
-
rect: e,
|
|
1121
|
-
seriesIndex: t
|
|
1122
|
-
}) : null).filter(Boolean)), ci;
|
|
1123
|
-
function li() {
|
|
1124
|
-
return typeof document > "u" ? null : (ci ||= document.createElement("canvas"), ci.getContext("2d"));
|
|
1125
|
-
}
|
|
1126
|
-
function ui(e, t, n = 400) {
|
|
1127
|
-
let r = li();
|
|
1128
|
-
return r ? (r.font = `${n} ${t}px ${I.value.style.fontFamily}`, r.measureText(String(e)).width) : e.length * t * .6;
|
|
1129
|
-
}
|
|
1130
|
-
function di(e) {
|
|
1131
|
-
let t = I.value.style.chart.layout.rects.borderRadius, n = q(e), r = K(e);
|
|
1132
|
-
return Math.min(t, Math.min(n, r) / 6);
|
|
1133
|
-
}
|
|
1134
|
-
async function fi() {
|
|
1135
|
-
if (ot("copyAlt", {
|
|
1136
|
-
config: I.value,
|
|
1137
|
-
dataset: G.value
|
|
1138
|
-
}), !I.value.userOptions.callbacks.altCopy) {
|
|
1139
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1140
|
-
return;
|
|
1141
|
-
}
|
|
1142
|
-
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
1143
|
-
config: I.value,
|
|
1144
|
-
dataset: G.value
|
|
1145
|
-
}));
|
|
1146
|
-
}
|
|
1147
|
-
function pi() {
|
|
1148
|
-
F.value = null, nn.value = !0;
|
|
1149
|
-
}
|
|
1150
|
-
function mi() {
|
|
1151
|
-
F.value = null, tn.value = "pointer", Rt.value = !1, Z.value = null, nn.value = !1;
|
|
1152
|
-
}
|
|
1153
|
-
function hi(e) {
|
|
1154
|
-
if (!z.value || Cr.value || document.activeElement !== z.value || !G.value.length || cr.value) return;
|
|
1155
|
-
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1156
|
-
if (!t && !n && !r && !i) return;
|
|
1157
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1158
|
-
F.value = null, tn.value = "pointer", Rt.value = !1, Z.value = null;
|
|
1159
|
-
return;
|
|
1160
|
-
}
|
|
1161
|
-
if (r) {
|
|
1162
|
-
if (F.value === null) return;
|
|
1163
|
-
let e = G.value[F.value];
|
|
1164
|
-
if (!e) return;
|
|
1165
|
-
ir(e, F.value);
|
|
1166
|
-
return;
|
|
1167
|
-
}
|
|
1168
|
-
let a = F.value, o = Z.value ? G.value.findIndex((e) => e.id === Z.value.id) : null, s = a !== null && a >= 0 && a < G.value.length, c = o !== null && o >= 0 && o < G.value.length;
|
|
1169
|
-
s ? n ? (a += 1, a >= G.value.length && (a = 0)) : t && (--a, a < 0 && (a = G.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= G.value.length && (a = 0), a < 0 && (a = G.value.length - 1)) : a = n ? 0 : G.value.length - 1;
|
|
1170
|
-
let l = G.value[a];
|
|
1171
|
-
l && (gi(a), gr({
|
|
1172
|
-
datapoint: l,
|
|
1173
|
-
seriesIndex: a,
|
|
1174
|
-
triggerMode: "keyboard"
|
|
1175
|
-
}));
|
|
1176
|
-
}
|
|
1177
|
-
function gi(e) {
|
|
1178
|
-
if (!Number.isFinite(e) || !z.value) return;
|
|
1179
|
-
let t = G.value[e];
|
|
1180
|
-
if (!t) return;
|
|
1181
|
-
let n = t.x0 + q(t) / 2, r = t.y0 + K(t) / 2, i = z.value.getBoundingClientRect();
|
|
1182
|
-
en.value = {
|
|
1183
|
-
x: i.left + (n - $.value.x) / $.value.width * i.width,
|
|
1184
|
-
y: i.top + (r - $.value.y) / $.value.height * i.height
|
|
1185
|
-
};
|
|
1186
|
-
}
|
|
1187
|
-
let _i = m(() => ({
|
|
1188
|
-
headers: vr.value?.colNames ?? [],
|
|
1189
|
-
rows: vr.value?.body ?? []
|
|
1190
|
-
})), vi = m(() => I.value.style.chart.color);
|
|
1191
|
-
return ve({
|
|
1192
|
-
getData: yr,
|
|
1193
|
-
getImage: Ur,
|
|
1194
|
-
generateCsv: _r,
|
|
1195
|
-
generateImage: hn,
|
|
1196
|
-
generateSvg: Qr,
|
|
1197
|
-
generatePdf: mn,
|
|
1198
|
-
hideSeries: pr,
|
|
1199
|
-
showSeries: fr,
|
|
1200
|
-
toggleTable: br,
|
|
1201
|
-
toggleTooltip: xr,
|
|
1202
|
-
toggleZoom: Sr,
|
|
1203
|
-
toggleAnnotator: wr,
|
|
1204
|
-
toggleFullscreen: Zn,
|
|
1205
|
-
resetZoom: Or,
|
|
1206
|
-
copyAlt: fi
|
|
1207
|
-
}), (e, t) => (S(), _("div", {
|
|
1208
|
-
ref_key: "treemapChart",
|
|
1209
|
-
ref: N,
|
|
1210
|
-
class: Le(`vue-data-ui-component vue-ui-treemap ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1211
|
-
style: x(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height: 100%;" : ""} text-align:center;background:${I.value.style.chart.backgroundColor}`),
|
|
1212
|
-
id: `treemap_${A.value}`,
|
|
1213
|
-
onMouseenter: t[3] ||= () => E(ln)(!0),
|
|
1214
|
-
onMouseleave: t[4] ||= () => E(ln)(!1)
|
|
1215
|
-
}, [
|
|
1216
|
-
v("div", {
|
|
1217
|
-
id: `chart-instructions-${A.value}`,
|
|
1218
|
-
class: "sr-only"
|
|
1219
|
-
}, [v("p", null, He(I.value.a11y.translations.keyboardNavigation), 1)], 8, ct),
|
|
1220
|
-
_i.value?.rows?.length ? (S(), h(we, {
|
|
1221
|
-
key: 0,
|
|
1222
|
-
uid: A.value,
|
|
1223
|
-
head: _i.value.headers,
|
|
1224
|
-
body: _i.value.rows,
|
|
1225
|
-
notice: I.value.a11y.translations.tableAvailable,
|
|
1226
|
-
caption: I.value.a11y.translations.tableCaption
|
|
1227
|
-
}, null, 8, [
|
|
1228
|
-
"uid",
|
|
1229
|
-
"head",
|
|
1230
|
-
"body",
|
|
1231
|
-
"notice",
|
|
1232
|
-
"caption"
|
|
1233
|
-
])) : g("", !0),
|
|
1234
|
-
I.value.userOptions.buttons.annotator ? (S(), h(E(Xe), {
|
|
1235
|
-
key: 1,
|
|
1236
|
-
svgRef: E(z),
|
|
1237
|
-
backgroundColor: I.value.style.chart.backgroundColor,
|
|
1238
|
-
color: I.value.style.chart.color,
|
|
1239
|
-
active: Cr.value,
|
|
1240
|
-
isCursorPointer: L.value,
|
|
1241
|
-
palette: I.value.userOptions.annotatorPalette,
|
|
1242
|
-
onClose: wr
|
|
1243
|
-
}, {
|
|
1244
|
-
"annotator-action-close": O(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1245
|
-
"annotator-action-color": O(({ color: t }) => [w(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
|
|
1246
|
-
"annotator-action-draw": O(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
|
|
1247
|
-
"annotator-action-undo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
|
|
1248
|
-
"annotator-action-redo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
|
|
1249
|
-
"annotator-action-delete": O(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
|
|
1250
|
-
_: 3
|
|
1251
|
-
}, 8, [
|
|
1252
|
-
"svgRef",
|
|
1253
|
-
"backgroundColor",
|
|
1254
|
-
"color",
|
|
1255
|
-
"active",
|
|
1256
|
-
"isCursorPointer",
|
|
1257
|
-
"palette"
|
|
1258
|
-
])) : g("", !0),
|
|
1259
|
-
gn.value ? (S(), _("div", {
|
|
1260
|
-
key: 2,
|
|
1261
|
-
ref_key: "noTitle",
|
|
1262
|
-
ref: Wt,
|
|
1263
|
-
class: "vue-data-ui-no-title-space",
|
|
1264
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
1265
|
-
}, null, 512)) : g("", !0),
|
|
1266
|
-
I.value.style.chart.title.text ? (S(), _("div", {
|
|
1267
|
-
key: 3,
|
|
1268
|
-
ref_key: "chartTitle",
|
|
1269
|
-
ref: Vt,
|
|
1270
|
-
style: x(`width:100%;background:${I.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
1271
|
-
}, [(S(), h(_e, {
|
|
1272
|
-
key: `title_${Gt.value}`,
|
|
1273
|
-
config: {
|
|
1274
|
-
title: {
|
|
1275
|
-
cy: "treemap-div-title",
|
|
1276
|
-
...I.value.style.chart.title
|
|
1277
|
-
},
|
|
1278
|
-
subtitle: {
|
|
1279
|
-
cy: "treemap-div-subtitle",
|
|
1280
|
-
...I.value.style.chart.title.subtitle
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
}, null, 8, ["config"]))], 4)) : g("", !0),
|
|
1284
|
-
v("div", { id: `legend-top-${A.value}` }, null, 8, lt),
|
|
1285
|
-
I.value.userOptions.show && It.value && (E(un) || E(cn)) ? (S(), h(E(et), {
|
|
1286
|
-
ref_key: "userOptionsRef",
|
|
1287
|
-
ref: Zt,
|
|
1288
|
-
key: `user_option_${Bt.value}`,
|
|
1289
|
-
backgroundColor: I.value.style.chart.backgroundColor,
|
|
1290
|
-
color: I.value.style.chart.color,
|
|
1291
|
-
isPrinting: E(fn),
|
|
1292
|
-
isImaging: E(pn),
|
|
1293
|
-
uid: A.value,
|
|
1294
|
-
hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.chart.tooltip.show,
|
|
1295
|
-
hasPdf: I.value.userOptions.buttons.pdf,
|
|
1296
|
-
hasXls: I.value.userOptions.buttons.csv,
|
|
1297
|
-
hasImg: I.value.userOptions.buttons.img,
|
|
1298
|
-
hasSvg: I.value.userOptions.buttons.svg,
|
|
1299
|
-
hasTable: I.value.userOptions.buttons.table,
|
|
1300
|
-
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
1301
|
-
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
1302
|
-
isFullscreen: j.value,
|
|
1303
|
-
isTooltip: B.value.showTooltip,
|
|
1304
|
-
titles: { ...I.value.userOptions.buttonTitles },
|
|
1305
|
-
chartElement: N.value,
|
|
1306
|
-
position: I.value.userOptions.position,
|
|
1307
|
-
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
1308
|
-
isAnnotation: Cr.value,
|
|
1309
|
-
callbacks: I.value.userOptions.callbacks,
|
|
1310
|
-
printScale: I.value.userOptions.print.scale,
|
|
1311
|
-
tableDialog: I.value.table.useDialog,
|
|
1312
|
-
isCursorPointer: L.value,
|
|
1313
|
-
hasZoom: I.value.userOptions.buttons.zoom,
|
|
1314
|
-
isZoom: B.value.showZoom,
|
|
1315
|
-
onToggleFullscreen: Zn,
|
|
1316
|
-
onGeneratePdf: E(mn),
|
|
1317
|
-
onGenerateCsv: _r,
|
|
1318
|
-
onGenerateImage: E($r),
|
|
1319
|
-
onGenerateSvg: E(Qr),
|
|
1320
|
-
onToggleTable: br,
|
|
1321
|
-
onToggleTooltip: xr,
|
|
1322
|
-
onToggleAnnotator: wr,
|
|
1323
|
-
onToggleZoom: Sr,
|
|
1324
|
-
onCopyAlt: fi,
|
|
1325
|
-
style: x({ visibility: E(un) ? E(cn) ? "visible" : "hidden" : "visible" })
|
|
1326
|
-
}, je({ _: 2 }, [
|
|
1327
|
-
e.$slots.menuIcon ? {
|
|
1328
|
-
name: "menuIcon",
|
|
1329
|
-
fn: O(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(y({
|
|
1330
|
-
isOpen: t,
|
|
1331
|
-
color: n
|
|
1332
|
-
})), void 0, !0)]),
|
|
1333
|
-
key: "0"
|
|
1334
|
-
} : void 0,
|
|
1335
|
-
e.$slots.optionTooltip ? {
|
|
1336
|
-
name: "optionTooltip",
|
|
1337
|
-
fn: O(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1338
|
-
key: "1"
|
|
1339
|
-
} : void 0,
|
|
1340
|
-
e.$slots.optionPdf ? {
|
|
1341
|
-
name: "optionPdf",
|
|
1342
|
-
fn: O(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1343
|
-
key: "2"
|
|
1344
|
-
} : void 0,
|
|
1345
|
-
e.$slots.optionCsv ? {
|
|
1346
|
-
name: "optionCsv",
|
|
1347
|
-
fn: O(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1348
|
-
key: "3"
|
|
1349
|
-
} : void 0,
|
|
1350
|
-
e.$slots.optionImg ? {
|
|
1351
|
-
name: "optionImg",
|
|
1352
|
-
fn: O(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1353
|
-
key: "4"
|
|
1354
|
-
} : void 0,
|
|
1355
|
-
e.$slots.optionSvg ? {
|
|
1356
|
-
name: "optionSvg",
|
|
1357
|
-
fn: O(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1358
|
-
key: "5"
|
|
1359
|
-
} : void 0,
|
|
1360
|
-
e.$slots.optionTable ? {
|
|
1361
|
-
name: "optionTable",
|
|
1362
|
-
fn: O(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1363
|
-
key: "6"
|
|
1364
|
-
} : void 0,
|
|
1365
|
-
e.$slots.optionFullscreen ? {
|
|
1366
|
-
name: "optionFullscreen",
|
|
1367
|
-
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(y({
|
|
1368
|
-
toggleFullscreen: t,
|
|
1369
|
-
isFullscreen: n
|
|
1370
|
-
})), void 0, !0)]),
|
|
1371
|
-
key: "7"
|
|
1372
|
-
} : void 0,
|
|
1373
|
-
e.$slots.optionAnnotator ? {
|
|
1374
|
-
name: "optionAnnotator",
|
|
1375
|
-
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(y({
|
|
1376
|
-
toggleAnnotator: t,
|
|
1377
|
-
isAnnotator: n
|
|
1378
|
-
})), void 0, !0)]),
|
|
1379
|
-
key: "8"
|
|
1380
|
-
} : void 0,
|
|
1381
|
-
e.$slots.optionZoom ? {
|
|
1382
|
-
name: "optionZoom",
|
|
1383
|
-
fn: O(({ toggleZoom: t, isZoomLocked: n }) => [w(e.$slots, "optionZoom", b(y({
|
|
1384
|
-
toggleZoom: t,
|
|
1385
|
-
isZoomLocked: n
|
|
1386
|
-
})), void 0, !0)]),
|
|
1387
|
-
key: "9"
|
|
1388
|
-
} : void 0,
|
|
1389
|
-
e.$slots.optionAltCopy ? {
|
|
1390
|
-
name: "optionAltCopy",
|
|
1391
|
-
fn: O(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
|
|
1392
|
-
key: "10"
|
|
1393
|
-
} : void 0,
|
|
1394
|
-
e.$slots["custom-menu-before"] ? {
|
|
1395
|
-
name: "custom-menu-before",
|
|
1396
|
-
fn: O(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1397
|
-
key: "11"
|
|
1398
|
-
} : void 0,
|
|
1399
|
-
e.$slots["custom-menu-after"] ? {
|
|
1400
|
-
name: "custom-menu-after",
|
|
1401
|
-
fn: O(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1402
|
-
key: "12"
|
|
1403
|
-
} : void 0
|
|
1404
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.hasZoom.isZoom.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : g("", !0),
|
|
1405
|
-
X.value.length > 1 ? (S(), _("nav", {
|
|
1406
|
-
key: 5,
|
|
1407
|
-
class: "vue-ui-treemap-breadcrumbs",
|
|
1408
|
-
"data-dom-to-png-ignore": "",
|
|
1409
|
-
ref_key: "breadcrumbsNav",
|
|
1410
|
-
ref: Jt
|
|
1411
|
-
}, [(S(!0), _(p, null, Be(X.value, (n, r) => (S(), _("span", {
|
|
1412
|
-
role: "button",
|
|
1413
|
-
tabindex: r < X.value.length - 1 ? 0 : void 0,
|
|
1414
|
-
key: n.id || "root",
|
|
1415
|
-
onClick: (e) => r === X.value.length - 1 ? () => {} : ir(n.node),
|
|
1416
|
-
onKeydown: [Ke(qe((e) => r === X.value.length - 1 ? void 0 : ir(n.node), ["prevent"]), ["enter"]), Ke(qe((e) => r === X.value.length - 1 ? void 0 : ir(n.node), ["prevent"]), ["space"])],
|
|
1417
|
-
class: "vue-ui-treemap-crumb",
|
|
1418
|
-
"data-last-crumb": r === X.value.length - 1,
|
|
1419
|
-
style: x({
|
|
1420
|
-
color: I.value.style.chart.color,
|
|
1421
|
-
cursor: L.value ? "pointer" : "default"
|
|
1422
|
-
}),
|
|
1423
|
-
onMouseenter: (e) => Vr(r),
|
|
1424
|
-
onMouseleave: Hr,
|
|
1425
|
-
onFocus: (e) => Vr(r),
|
|
1426
|
-
onBlur: Hr
|
|
1427
|
-
}, [v("span", dt, [v("span", ft, [w(e.$slots, "breadcrumb-label", Fe({ ref_for: !0 }, {
|
|
1428
|
-
crumb: n,
|
|
1429
|
-
isRoot: r === 0,
|
|
1430
|
-
isFocus: Br.value === r
|
|
1431
|
-
}), () => [r === 0 ? (S(), _("div", pt, [Ne(xe, {
|
|
1432
|
-
name: Br.value === 0 ? "homeFilled" : "home",
|
|
1433
|
-
stroke: I.value.style.chart.color
|
|
1434
|
-
}, null, 8, ["name", "stroke"])])) : (S(), _(p, { key: 1 }, [Me(He(n.label), 1)], 64))], !0)]), r < X.value.length - 1 ? (S(), _("span", mt, [w(e.$slots, "breadcrumb-arrow", {}, () => [t[5] ||= Me(" › ", -1)], !0)])) : g("", !0)])], 44, ut))), 128))], 512)) : g("", !0),
|
|
1435
|
-
v("div", ht, [
|
|
1436
|
-
(S(), _("svg", {
|
|
1437
|
-
ref_key: "svgRef",
|
|
1438
|
-
ref: z,
|
|
1439
|
-
xmlns: E(ie),
|
|
1440
|
-
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1441
|
-
class: Le({
|
|
1442
|
-
"vue-data-ui-fullscreen--on": j.value,
|
|
1443
|
-
"vue-data-ui-fulscreen--off": !j.value,
|
|
1444
|
-
"vue-data-ui-zoom-plus": !$n.value,
|
|
1445
|
-
"vue-data-ui-zoom-minus": $n.value,
|
|
1446
|
-
"vue-data-ui-no-transition": !E(rn),
|
|
1447
|
-
loading: E(R)
|
|
1448
|
-
}),
|
|
1449
|
-
viewBox: `${E($).x} ${E($).y} ${E($).width <= 0 ? 10 : E($).width} ${E($).height <= 0 ? 10 : E($).height}`,
|
|
1450
|
-
style: x(`max-width:100%; overflow:${Fr.value ? "hidden" : "visible"}; background:transparent;color:${I.value.style.chart.color}`),
|
|
1451
|
-
tabindex: "0",
|
|
1452
|
-
onFocus: pi,
|
|
1453
|
-
onBlur: mi,
|
|
1454
|
-
onKeydown: hi,
|
|
1455
|
-
onPointerdown: Ir,
|
|
1456
|
-
onPointermove: Lr,
|
|
1457
|
-
onPointerup: Rr,
|
|
1458
|
-
onPointercancel: Rr,
|
|
1459
|
-
onPointerleave: Rr
|
|
1460
|
-
}, [
|
|
1461
|
-
Ne(E(tt)),
|
|
1462
|
-
(S(!0), _(p, null, Be(G.value, (e, t) => (S(), _("g", { key: `tgrad_${e.id}` }, [I.value.style.chart.layout.rects.gradient.show ? (S(), _("defs", _t, [Ne(Se, {
|
|
1463
|
-
t: "radial",
|
|
1464
|
-
id: `tgrad_${e.id}`,
|
|
1465
|
-
gradientTransform: "translate(-1, -1.000001) scale(2, 2)",
|
|
1466
|
-
stops: [[
|
|
1467
|
-
"18%",
|
|
1468
|
-
e.color,
|
|
1469
|
-
1
|
|
1470
|
-
], [
|
|
1471
|
-
"100%",
|
|
1472
|
-
E(f)(e.color, I.value.style.chart.layout.rects.gradient.intensity / 100),
|
|
1473
|
-
1
|
|
1474
|
-
]]
|
|
1475
|
-
}, null, 8, ["id", "stops"])])) : g("", !0)]))), 128)),
|
|
1476
|
-
v("g", null, [
|
|
1477
|
-
(S(!0), _(p, null, Be(G.value, (e, t) => (S(), _("g", { key: `rect_${e.id}_${e.depth}` }, [v("rect", {
|
|
1478
|
-
x: e.x0,
|
|
1479
|
-
y: e.y0,
|
|
1480
|
-
height: K(e),
|
|
1481
|
-
width: q(e),
|
|
1482
|
-
fill: Lt.value ? e.color ?? I.value.style.chart.backgroundColor : I.value.style.chart.layout.rects.gradient.show ? cr.value ? I.value.style.chart.backgroundColor : `url(#tgrad_${e.id})` : e.color ?? I.value.style.chart.backgroundColor,
|
|
1483
|
-
rx: E(jr) > 1 ? di(e) * Mr.value : di(e),
|
|
1484
|
-
stroke: Z.value && Z.value.id === e.id ? I.value.style.chart.layout.rects.selected.stroke : I.value.style.chart.layout.rects.stroke,
|
|
1485
|
-
"stroke-width": Hn(e),
|
|
1486
|
-
onClick: qe((n) => zr(e, t), ["stop"]),
|
|
1487
|
-
onMouseenter: () => gr({
|
|
1488
|
-
datapoint: e,
|
|
1489
|
-
seriesIndex: t,
|
|
1490
|
-
triggerMode: "pointer"
|
|
1491
|
-
}),
|
|
1492
|
-
onMouseleave: (n) => mr({
|
|
1493
|
-
datapoint: e,
|
|
1494
|
-
seriesIndex: t
|
|
1495
|
-
}),
|
|
1496
|
-
style: x(`opacity:${Z.value ? Z.value.id === e.id ? 1 : I.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
1497
|
-
class: Le([
|
|
1498
|
-
"vue-ui-treemap-rect",
|
|
1499
|
-
E(rn) ? "vue-data-ui-transition" : "",
|
|
1500
|
-
ar(e) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"
|
|
1501
|
-
])
|
|
1502
|
-
}, null, 46, vt)]))), 128)),
|
|
1503
|
-
(S(!0), _(p, null, Be(si.value, (e) => (S(), _("g", {
|
|
1504
|
-
key: e.key,
|
|
1505
|
-
style: { "pointer-events": "none" }
|
|
1506
|
-
}, [v("defs", null, [v("clipPath", {
|
|
1507
|
-
id: e.clipId,
|
|
1508
|
-
clipPathUnits: "userSpaceOnUse"
|
|
1509
|
-
}, [v("rect", {
|
|
1510
|
-
class: Le({ "vue-data-ui-transition": E(rn) }),
|
|
1511
|
-
x: e.clipX,
|
|
1512
|
-
y: e.clipY,
|
|
1513
|
-
width: e.clipWidth,
|
|
1514
|
-
height: e.clipHeight
|
|
1515
|
-
}, null, 10, bt)], 8, yt)]), v("g", { "clip-path": `url(#${e.clipId})` }, [v("g", { transform: e.translate }, [v("g", {
|
|
1516
|
-
class: Le({ "vue-data-ui-transition": E(rn) }),
|
|
1517
|
-
transform: ii(e)
|
|
1518
|
-
}, [(S(!0), _(p, null, Be(e.lines, (t) => (S(), _(p, { key: t.key }, [t.text && (e.alwaysShowAllLines || Nr.value <= t.maxZoomFactor) ? (S(), _("text", {
|
|
1519
|
-
key: 0,
|
|
1520
|
-
x: t.x,
|
|
1521
|
-
y: t.y,
|
|
1522
|
-
fill: t.fill,
|
|
1523
|
-
"font-size": t.fontSize,
|
|
1524
|
-
"font-family": t.fontFamily,
|
|
1525
|
-
"font-weight": t.fontWeight,
|
|
1526
|
-
class: Le({ "vue-data-ui-transition": E(rn) }),
|
|
1527
|
-
"text-anchor": "start",
|
|
1528
|
-
"dominant-baseline": "text-before-edge"
|
|
1529
|
-
}, He(t.text), 11, wt)) : g("", !0)], 64))), 128))], 10, Ct)], 8, St)], 8, xt)]))), 128)),
|
|
1530
|
-
e.$slots.rect ? (S(), _("g", Tt, [(S(!0), _(p, null, Be(G.value, (t, n) => (S(), _("g", { key: `slot_${t.id}_${t.depth}` }, [(S(), _("foreignObject", {
|
|
1531
|
-
x: t.x0,
|
|
1532
|
-
y: t.y0,
|
|
1533
|
-
height: K(t),
|
|
1534
|
-
width: q(t),
|
|
1535
|
-
class: "vue-ui-treemap-cell-foreignObject",
|
|
1536
|
-
style: {
|
|
1537
|
-
"pointer-events": "none",
|
|
1538
|
-
overflow: "hidden"
|
|
1539
|
-
}
|
|
1540
|
-
}, [v("div", Dt, [E(R) ? g("", !0) : w(e.$slots, "rect", Fe({ ref_for: !0 }, {
|
|
1541
|
-
rect: {
|
|
1542
|
-
...t,
|
|
1543
|
-
height: K(t),
|
|
1544
|
-
width: q(t),
|
|
1545
|
-
isSelected: !Z.value || Z.value.id === t.id
|
|
1546
|
-
},
|
|
1547
|
-
shouldShow: zn(t) || $n.value,
|
|
1548
|
-
fontSize: Xn(t, n),
|
|
1549
|
-
isZoom: $n.value,
|
|
1550
|
-
textColor: E(re)(t.color)
|
|
1551
|
-
}), void 0, !0, 0)])], 8, Et))]))), 128))])) : g("", !0)
|
|
1552
|
-
]),
|
|
1553
|
-
w(e.$slots, "svg", b(y({
|
|
1554
|
-
svg: V.value,
|
|
1555
|
-
isZoom: $n.value,
|
|
1556
|
-
rect: Z.value,
|
|
1557
|
-
config: I.value,
|
|
1558
|
-
isPrintingImg: E(fn) || E(pn) || E(Xr),
|
|
1559
|
-
isPrintingSvg: E(Zr)
|
|
1560
|
-
})), void 0, !0)
|
|
1561
|
-
], 46, gt)),
|
|
1562
|
-
E(kr) ? (S(), _("div", Ot, [w(e.$slots, "reset-action", { reset: E(Or) }, () => [v("button", {
|
|
1563
|
-
"data-cy-reset": "",
|
|
1564
|
-
tabindex: "0",
|
|
1565
|
-
role: "button",
|
|
1566
|
-
class: "vue-data-ui-refresh-button",
|
|
1567
|
-
style: x({
|
|
1568
|
-
background: I.value.style.chart.backgroundColor,
|
|
1569
|
-
cursor: L.value ? "pointer" : "default"
|
|
1570
|
-
}),
|
|
1571
|
-
onClick: t[0] ||= (e) => E(Or)(!0)
|
|
1572
|
-
}, [Ne(xe, {
|
|
1573
|
-
name: "refresh",
|
|
1574
|
-
stroke: I.value.style.chart.color
|
|
1575
|
-
}, null, 8, ["stroke"])], 4)], !0)])) : g("", !0),
|
|
1576
|
-
e.$slots.hint ? (S(), _("div", kt, [w(e.$slots, "hint", b(y({
|
|
1577
|
-
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1578
|
-
isVisible: nn.value
|
|
1579
|
-
})), void 0, !0)])) : g("", !0)
|
|
1580
|
-
]),
|
|
1581
|
-
e.$slots.watermark ? (S(), _("div", At, [w(e.$slots, "watermark", b(y({ isPrinting: E(fn) || E(pn) || E(Xr) || E(Zr) })), void 0, !0)])) : g("", !0),
|
|
1582
|
-
v("div", { id: `legend-bottom-${A.value}` }, null, 8, jt),
|
|
1583
|
-
Yt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (S(), h(Ae, {
|
|
1584
|
-
key: 7,
|
|
1585
|
-
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
1586
|
-
}, [v("div", {
|
|
1587
|
-
ref_key: "chartLegend",
|
|
1588
|
-
ref: Ht
|
|
1589
|
-
}, [w(e.$slots, "legend", { legend: or.value }, () => [I.value.style.chart.legend.show ? (S(), h(De, {
|
|
1590
|
-
key: `legend_${qt.value}`,
|
|
1591
|
-
legendSet: or.value,
|
|
1592
|
-
config: sr.value,
|
|
1593
|
-
id: `treemap_legend_${A.value}`,
|
|
1594
|
-
isCursorPointer: L.value,
|
|
1595
|
-
onClickMarker: t[1] ||= ({ legend: e }) => ur(e)
|
|
1596
|
-
}, {
|
|
1597
|
-
item: O(({ legend: e, index: t }) => [E(R) ? g("", !0) : (S(), _("div", {
|
|
1598
|
-
key: 0,
|
|
1599
|
-
onClick: (t) => ur(e),
|
|
1600
|
-
style: x(`opacity:${M.value.includes(e.id) ? .5 : 1}`)
|
|
1601
|
-
}, He(e.display), 13, Mt))]),
|
|
1602
|
-
legendToggle: O(() => [or.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !E(R) ? (S(), h(Ce, {
|
|
1603
|
-
key: 0,
|
|
1604
|
-
backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1605
|
-
color: I.value.style.chart.legend.selectAllToggle.color,
|
|
1606
|
-
fontSize: I.value.style.chart.legend.fontSize,
|
|
1607
|
-
checked: M.value.length > 0,
|
|
1608
|
-
isCursorPointer: L.value,
|
|
1609
|
-
onToggle: lr
|
|
1610
|
-
}, null, 8, [
|
|
1611
|
-
"backgroundColor",
|
|
1612
|
-
"color",
|
|
1613
|
-
"fontSize",
|
|
1614
|
-
"checked",
|
|
1615
|
-
"isCursorPointer"
|
|
1616
|
-
])) : g("", !0)]),
|
|
1617
|
-
_: 1
|
|
1618
|
-
}, 8, [
|
|
1619
|
-
"legendSet",
|
|
1620
|
-
"config",
|
|
1621
|
-
"id",
|
|
1622
|
-
"isCursorPointer"
|
|
1623
|
-
])) : g("", !0)], !0)], 512)], 8, ["to"])) : g("", !0),
|
|
1624
|
-
e.$slots.source ? (S(), _("div", {
|
|
1625
|
-
key: 8,
|
|
1626
|
-
ref_key: "source",
|
|
1627
|
-
ref: Ut,
|
|
1628
|
-
dir: "auto"
|
|
1629
|
-
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1630
|
-
Ne(E($e), {
|
|
1631
|
-
teleportTo: I.value.style.chart.tooltip.teleportTo,
|
|
1632
|
-
show: B.value.showTooltip && Rt.value,
|
|
1633
|
-
backgroundColor: I.value.style.chart.tooltip.backgroundColor,
|
|
1634
|
-
color: I.value.style.chart.tooltip.color,
|
|
1635
|
-
fontSize: I.value.style.chart.tooltip.fontSize,
|
|
1636
|
-
borderRadius: I.value.style.chart.tooltip.borderRadius,
|
|
1637
|
-
borderColor: I.value.style.chart.tooltip.borderColor,
|
|
1638
|
-
borderWidth: I.value.style.chart.tooltip.borderWidth,
|
|
1639
|
-
backgroundOpacity: I.value.style.chart.tooltip.backgroundOpacity,
|
|
1640
|
-
position: I.value.style.chart.tooltip.position,
|
|
1641
|
-
offsetX: I.value.style.chart.tooltip.offsetX,
|
|
1642
|
-
offsetY: I.value.style.chart.tooltip.offsetY,
|
|
1643
|
-
parent: N.value,
|
|
1644
|
-
content: zt.value,
|
|
1645
|
-
isFullscreen: j.value,
|
|
1646
|
-
isCustom: E(n)(I.value.style.chart.tooltip.customFormat),
|
|
1647
|
-
smooth: I.value.style.chart.tooltip.smooth,
|
|
1648
|
-
backdropFilter: I.value.style.chart.tooltip.backdropFilter,
|
|
1649
|
-
smoothForce: I.value.style.chart.tooltip.smoothForce,
|
|
1650
|
-
smoothSnapThreshold: I.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1651
|
-
isA11yMode: tn.value === "keyboard",
|
|
1652
|
-
a11yPosition: en.value
|
|
1653
|
-
}, {
|
|
1654
|
-
"tooltip-before": O(() => [w(e.$slots, "tooltip-before", b(y({ ...hr.value })), void 0, !0)]),
|
|
1655
|
-
tooltip: O(() => [w(e.$slots, "tooltip", b(y({ ...hr.value })), void 0, !0)]),
|
|
1656
|
-
"tooltip-after": O(() => [w(e.$slots, "tooltip-after", b(y({ ...hr.value })), void 0, !0)]),
|
|
1657
|
-
_: 3
|
|
1658
|
-
}, 8, [
|
|
1659
|
-
"teleportTo",
|
|
1660
|
-
"show",
|
|
1661
|
-
"backgroundColor",
|
|
1662
|
-
"color",
|
|
1663
|
-
"fontSize",
|
|
1664
|
-
"borderRadius",
|
|
1665
|
-
"borderColor",
|
|
1666
|
-
"borderWidth",
|
|
1667
|
-
"backgroundOpacity",
|
|
1668
|
-
"position",
|
|
1669
|
-
"offsetX",
|
|
1670
|
-
"offsetY",
|
|
1671
|
-
"parent",
|
|
1672
|
-
"content",
|
|
1673
|
-
"isFullscreen",
|
|
1674
|
-
"isCustom",
|
|
1675
|
-
"smooth",
|
|
1676
|
-
"backdropFilter",
|
|
1677
|
-
"smoothForce",
|
|
1678
|
-
"smoothSnapThreshold",
|
|
1679
|
-
"isA11yMode",
|
|
1680
|
-
"a11yPosition"
|
|
1681
|
-
]),
|
|
1682
|
-
It.value && I.value.userOptions.buttons.table ? (S(), h(Ve(Wr.value.component), Fe({ key: 9 }, Wr.value.props, {
|
|
1683
|
-
ref_key: "tableUnit",
|
|
1684
|
-
ref: Xt,
|
|
1685
|
-
onClose: Gr
|
|
1686
|
-
}), je({
|
|
1687
|
-
content: O(() => [(S(), h(E(Ye), {
|
|
1688
|
-
key: `table_${Kt.value}`,
|
|
1689
|
-
colNames: vr.value.colNames,
|
|
1690
|
-
head: vr.value.head,
|
|
1691
|
-
body: vr.value.body,
|
|
1692
|
-
config: vr.value.config,
|
|
1693
|
-
title: I.value.table.useDialog ? "" : Wr.value.title,
|
|
1694
|
-
withCloseButton: !I.value.table.useDialog,
|
|
1695
|
-
isCursorPointer: L.value,
|
|
1696
|
-
onClose: Gr
|
|
1697
|
-
}, {
|
|
1698
|
-
th: O(({ th: e }) => [v("div", Nt, He(e), 1)]),
|
|
1699
|
-
td: O(({ td: e }) => [Me(He(e.name || e), 1)]),
|
|
1700
|
-
_: 1
|
|
1701
|
-
}, 8, [
|
|
1702
|
-
"colNames",
|
|
1703
|
-
"head",
|
|
1704
|
-
"body",
|
|
1705
|
-
"config",
|
|
1706
|
-
"title",
|
|
1707
|
-
"withCloseButton",
|
|
1708
|
-
"isCursorPointer"
|
|
1709
|
-
]))]),
|
|
1710
|
-
_: 2
|
|
1711
|
-
}, [I.value.table.useDialog ? {
|
|
1712
|
-
name: "title",
|
|
1713
|
-
fn: O(() => [Me(He(Wr.value.title), 1)]),
|
|
1714
|
-
key: "0"
|
|
1715
|
-
} : void 0, I.value.table.useDialog ? {
|
|
1716
|
-
name: "actions",
|
|
1717
|
-
fn: O(() => [v("button", {
|
|
1718
|
-
tabindex: "0",
|
|
1719
|
-
class: "vue-ui-user-options-button",
|
|
1720
|
-
onClick: t[2] ||= (e) => _r(I.value.userOptions.callbacks.csv),
|
|
1721
|
-
style: x({ cursor: L.value ? "pointer" : "default" })
|
|
1722
|
-
}, [Ne(xe, {
|
|
1723
|
-
name: "fileCsv",
|
|
1724
|
-
stroke: Wr.value.props.color
|
|
1725
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1726
|
-
key: "1"
|
|
1727
|
-
} : void 0]), 1040)) : g("", !0),
|
|
1728
|
-
w(e.$slots, "skeleton", {}, () => [E(R) ? (S(), h(de, { key: 0 })) : g("", !0)], !0)
|
|
1729
|
-
], 46, st));
|
|
1730
|
-
}
|
|
1731
|
-
}, [["__scopeId", "data-v-f4ff8289"]]);
|
|
1732
|
-
//#endregion
|
|
1733
|
-
export { ot as n, Ft as t };
|