vue-data-ui 3.25.8 → 3.25.10
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/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-ekRvV3aF.js → PackageVersion-CZZayD-D.js} +1 -1
- package/dist/{PenAndPaper-KFzKlvbi.js → PenAndPaper-Cd3nItcO.js} +3 -3
- package/dist/{SlicerPreview-B6iHOC9L.js → SlicerPreview-Ccss7Vsq.js} +2 -2
- package/dist/{SparkTooltip-C-Y-mDrc.js → SparkTooltip-L3SliZbR.js} +1 -1
- package/dist/{UserOptions-2x4VklMW.js → UserOptions-qo_Tsqci.js} +1 -1
- package/dist/components/vue-ui-3d-bar.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-kpi.js +1 -1
- package/dist/components/vue-ui-label.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-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-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/composables.js +1 -1
- package/dist/{dom-to-png-C6cQJ5Hq.js → dom-to-png-BR4imuKV.js} +1 -1
- package/dist/{geoProjections-CEo3dVaL.js → geoProjections-BYthUA8l.js} +2 -2
- package/dist/{img-DhGApYG0.js → img-BkMKbWsI.js} +1 -1
- package/dist/{package-C4XeEHJx.js → package-CYtJq7s7.js} +1 -1
- package/dist/{pdf-Di5yPEw9.js → pdf-BSOs_GZz.js} +1 -1
- package/dist/{render-common-CQUp12xB.js → render-common-CpHpPc5s.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/utils.d.ts +5 -5
- package/dist/types/vue-data-ui.d.ts +5 -5
- package/dist/{usePrinter-DISD7q5m.js → usePrinter-hohanNCX.js} +4 -4
- package/dist/{useTooltipPosition-DifeoeQW.js → useTooltipPosition-BCrtQa9H.js} +1 -1
- package/dist/{vue-data-ui-BChCkqtW.js → vue-data-ui-ChB3aXCO.js} +65 -65
- package/dist/vue-data-ui.js +66 -66
- package/dist/{vue-ui-3d-bar-BkVOy4Y_.js → vue-ui-3d-bar-DcXbkO19.js} +5 -5
- package/dist/{vue-ui-age-pyramid-1_yQ64LX.js → vue-ui-age-pyramid-Cnaxt9NI.js} +263 -251
- package/dist/{vue-ui-annotator-BO5ihHOB.js → vue-ui-annotator-BLYRy--7.js} +12 -12
- package/dist/{vue-ui-bullet-BF1FeBst.js → vue-ui-bullet-DOfD2TSb.js} +4 -4
- package/dist/{vue-ui-bump-ZtKya76Y.js → vue-ui-bump-DL2lDZbE.js} +3 -3
- package/dist/{vue-ui-candlestick-P-clTYIt.js → vue-ui-candlestick-ijujiVJ5.js} +453 -441
- package/dist/{vue-ui-carousel-table-BVS-4A3h.js → vue-ui-carousel-table-DFtWb2-C.js} +3 -3
- package/dist/{vue-ui-chestnut-DHOIbpib.js → vue-ui-chestnut-BGXr0s08.js} +5 -5
- package/dist/{vue-ui-chord-CX_Mc3Fp.js → vue-ui-chord-DgBzLfbv.js} +5 -5
- package/dist/{vue-ui-circle-pack-Caqvblsl.js → vue-ui-circle-pack-88qDJbt0.js} +494 -482
- package/dist/{vue-ui-cursor-BFF4tWUb.js → vue-ui-cursor-CcEB7Ypx.js} +1 -1
- package/dist/{vue-ui-dag-CtG3HUh4.js → vue-ui-dag-BeoFmTDs.js} +6 -6
- package/dist/{vue-ui-dashboard-DASHNFPT.js → vue-ui-dashboard-NOVcGMCa.js} +63 -63
- package/dist/{vue-ui-digits-BQWHzntO.js → vue-ui-digits-BGmT7H1z.js} +1 -1
- package/dist/{vue-ui-donut-DHP_lm0m.js → vue-ui-donut-CP7ilveE.js} +838 -826
- package/dist/{vue-ui-donut-vbqlIlij.js → vue-ui-donut-CtXzuWzy.js} +1 -1
- package/dist/{vue-ui-donut-evolution-Cio3lNLz.js → vue-ui-donut-evolution-D_-y7BZi.js} +6 -6
- package/dist/{vue-ui-dumbbell-C2lQhCfq.js → vue-ui-dumbbell-BR1Cn4wm.js} +4 -4
- package/dist/vue-ui-flow-Bm6TgD8I.js +1229 -0
- package/dist/{vue-ui-funnel-DDncfHgI.js → vue-ui-funnel-CQ0-9nZT.js} +3 -3
- package/dist/vue-ui-galaxy-DUto0BOw.js +1097 -0
- package/dist/{vue-ui-gauge-OQbET2bh.js → vue-ui-gauge-B6pyA6Jh.js} +4 -4
- package/dist/{vue-ui-geo-Ddw87hVT.js → vue-ui-geo-BlG7s8MH.js} +408 -396
- package/dist/{vue-ui-gizmo-DJVWEvWS.js → vue-ui-gizmo-BlyehpxE.js} +2 -2
- package/dist/{vue-ui-heatmap-BKG4xt6j.js → vue-ui-heatmap-DqbWkKAE.js} +405 -393
- package/dist/{vue-ui-hill-BAruBiw6.js → vue-ui-hill-CGE0NdNk.js} +7 -7
- package/dist/vue-ui-history-plot-CaxqIiTb.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-CXT7-P_o.js → vue-ui-horizontal-bar-Ykwe4M1n.js} +401 -389
- package/dist/{vue-ui-kpi-uOGX20hs.js → vue-ui-kpi-B7Nfet0o.js} +1 -1
- package/dist/{vue-ui-label-C1UAzvAu.js → vue-ui-label-Cs4ZlAqr.js} +10 -10
- package/dist/{vue-ui-molecule-BcA064dR.js → vue-ui-molecule-DWq98OSc.js} +347 -335
- package/dist/{vue-ui-mood-radar-CXtC0IqT.js → vue-ui-mood-radar-DDfimq6c.js} +5 -5
- package/dist/{vue-ui-nested-donuts-BFE0oXF_.js → vue-ui-nested-donuts-Bt-r6uXS.js} +360 -348
- package/dist/vue-ui-onion-D8gOhQHP.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-5kKVnNmE.js → vue-ui-parallel-coordinate-plot-BbPbJiiu.js} +387 -375
- package/dist/{vue-ui-quadrant-BPg8L6Sw.js → vue-ui-quadrant-BJlf3qW1.js} +418 -406
- package/dist/{vue-ui-quick-chart-DQ_rhjqc.js → vue-ui-quick-chart-Cb8x00-X.js} +550 -538
- package/dist/{vue-ui-radar-C65wD7cW.js → vue-ui-radar-30PF-qqr.js} +330 -318
- package/dist/{vue-ui-relation-circle-nZaZcCh1.js → vue-ui-relation-circle-CRiC4PnL.js} +4 -4
- package/dist/{vue-ui-ridgeline-Bsi2hN14.js → vue-ui-ridgeline-CSs4Tq_c.js} +4 -4
- package/dist/{vue-ui-rings-DkCzxDyQ.js → vue-ui-rings-BqRWK5rY.js} +321 -309
- package/dist/{vue-ui-scatter-V01qkcN8.js → vue-ui-scatter-Bsh6jbdW.js} +584 -572
- package/dist/{vue-ui-skeleton-BgYtv_I2.js → vue-ui-skeleton-DbPSsEKV.js} +1 -1
- package/dist/{vue-ui-spark-trend-Dm1OyGyr.js → vue-ui-spark-trend--8QokOII.js} +2 -2
- package/dist/{vue-ui-sparkbar-D3hChHHS.js → vue-ui-sparkbar-DkX9Demg.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CAeJapmG.js → vue-ui-sparkgauge-Ci_xD5B7.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-ZIo_Vg7F.js → vue-ui-sparkhistogram-Qe3ZCPRd.js} +2 -2
- package/dist/{vue-ui-sparkline-BjvSeM83.js → vue-ui-sparkline-BwldgOYW.js} +2 -2
- package/dist/vue-ui-sparkstackbar-Divd0hL_.js +750 -0
- package/dist/vue-ui-stackbar-BWPSGzN-.js +2369 -0
- package/dist/vue-ui-stackline-BQroSnwZ.js +2483 -0
- package/dist/vue-ui-strip-plot-BCUPHkCp.js +1752 -0
- package/dist/{vue-ui-table-C8cvK-x_.js → vue-ui-table-DJeXLYly.js} +2 -2
- package/dist/{vue-ui-table-heatmap-BSUab4fG.js → vue-ui-table-heatmap-D5F5bLx5.js} +2 -2
- package/dist/{vue-ui-table-sparkline-Dam9BFsU.js → vue-ui-table-sparkline-DCm8S2uK.js} +2 -2
- package/dist/{vue-ui-thermometer-zyBeCINd.js → vue-ui-thermometer-xu4R8d2f.js} +4 -4
- package/dist/{vue-ui-timer-CDXczagK.js → vue-ui-timer-i_3bMu3h.js} +1 -1
- package/dist/{vue-ui-tiremarks-CG8LNC9c.js → vue-ui-tiremarks-DGuMI0yH.js} +4 -4
- package/dist/{vue-ui-treemap-DfDRwoZc.js → vue-ui-treemap-Bvl7elni.js} +311 -299
- package/dist/vue-ui-waffle-CVuYg0yU.js +1633 -0
- package/dist/{vue-ui-wheel-DDJIPE_z.js → vue-ui-wheel-DqHD09iA.js} +4 -4
- package/dist/{vue-ui-word-cloud-DBOXRp-e.js → vue-ui-word-cloud-BDCuTQ8Q.js} +385 -372
- package/dist/{vue-ui-world-CiIyp7WH.js → vue-ui-world-B0oVwEDj.js} +474 -462
- package/dist/{vue-ui-xy-s_IZ573M.js → vue-ui-xy-BJJi0E4D.js} +1 -1
- package/dist/{vue-ui-xy-AGYE0Vsz.js → vue-ui-xy-D1dPd68D.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-MOMyUdJg.js → vue-ui-xy-canvas-R2xbgDOy.js} +523 -511
- package/package.json +3 -3
- package/dist/vue-ui-flow-Dmnz4LCl.js +0 -1217
- package/dist/vue-ui-galaxy-Dw7TyOH0.js +0 -1085
- package/dist/vue-ui-history-plot-BKUg8Gz_.js +0 -1698
- package/dist/vue-ui-onion-DhedgEnV.js +0 -1235
- package/dist/vue-ui-sparkstackbar-DGQcpWK4.js +0 -738
- package/dist/vue-ui-stackbar-D0qmFn5Y.js +0 -2355
- package/dist/vue-ui-stackline-BBtEVl9V.js +0 -2469
- package/dist/vue-ui-strip-plot-CkU-nCt4.js +0 -1740
- package/dist/vue-ui-waffle-D6_cGi1-.js +0 -1621
|
@@ -2,13 +2,13 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
|
2
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
3
|
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ce } from "./useConfig-D32D002m.js";
|
|
5
|
-
import { t as le } from "./usePrinter-
|
|
6
|
-
import { n as ue, t as de } from "./BaseScanner-
|
|
5
|
+
import { t as le } from "./usePrinter-hohanNCX.js";
|
|
6
|
+
import { n as ue, t as de } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
7
|
import { t as fe } from "./useNestedProp-Chvyfpl-.js";
|
|
8
8
|
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as me } from "./useChartExport-iwOqiIWX.js";
|
|
10
10
|
import { t as he } from "./useTransitions-g_zBREk2.js";
|
|
11
|
-
import { t as ge } from "./img-
|
|
11
|
+
import { t as ge } from "./img-BkMKbWsI.js";
|
|
12
12
|
import { n as _e } from "./Title-CPHi-evi.js";
|
|
13
13
|
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
14
|
import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
|
|
@@ -261,8 +261,8 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
261
261
|
"copyAlt"
|
|
262
262
|
],
|
|
263
263
|
setup(e, { expose: ve, emit: Xe }) {
|
|
264
|
-
Ge((e) => ({
|
|
265
|
-
let Ze = Fe(() => import("./DataTable-oiM9uWrQ.js")), Qe = Fe(() => import("./PenAndPaper-
|
|
264
|
+
Ge((e) => ({ v798593f9: Ti.value }));
|
|
265
|
+
let Ze = Fe(() => import("./DataTable-oiM9uWrQ.js")), Qe = Fe(() => import("./PenAndPaper-Cd3nItcO.js").then((e) => e.t)), $e = Fe(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), tt = Fe(() => import("./Tooltip-hhrkQ3Lk.js")), nt = Fe(() => import("./UserOptions-qo_Tsqci.js").then((e) => e.n)), rt = Fe(() => import("./PackageVersion-CZZayD-D.js").then((e) => e.t)), it = Fe(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_treemap: at } = ce(), { isThemeValid: ot, warnInvalidTheme: st } = pe(), D = e, ct = Xe, Lt = Ke(), Rt = p(() => !!D.dataset && D.dataset.length), zt = p(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), O = S(ne()), Bt = S(!1), Vt = S(""), Ht = S(!1), Ut = S(0), k = S([]), A = w(null), Wt = w(null), Gt = w(null), Kt = w(null), qt = w(null), Jt = S(0), Yt = S(0), Xt = S(0), j = S([]), Zt = S(null), Qt = S(!1), $t = S(null), en = S(null), tn = S(null), nn = S(/* @__PURE__ */ new Map()), M = S(null), rn = S({
|
|
266
266
|
x: 0,
|
|
267
267
|
y: 0
|
|
268
268
|
}), an = S("pointer"), on = S(!1), N = S(gn()), P = p(() => N.value.userOptions), F = p(() => N.value.style.chart.tooltip), I = p(() => N.value.style.chart.legend), L = p(() => N.value.style.chart.layout.labels), R = p(() => N.value.style.chart.layout), z = p(() => N.value.style.chart);
|
|
@@ -369,14 +369,26 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
369
369
|
customPalette: r.customPalette.length ? r.customPalette : c[t] || i
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
|
|
373
|
-
|
|
372
|
+
function _n(e) {
|
|
373
|
+
let t = l(e);
|
|
374
|
+
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
375
|
+
}
|
|
376
|
+
let vn = _n(D.config);
|
|
377
|
+
qe(() => D.config, (e, t) => {
|
|
378
|
+
let n = _n(e), r = n !== vn;
|
|
379
|
+
vn = n;
|
|
380
|
+
let i = gn();
|
|
381
|
+
if (!r) {
|
|
382
|
+
N.value.style.chart.tooltip = i.style.chart.tooltip, V.value.showTooltip = N.value.style.chart.tooltip.show;
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
ln.value || (N.value = i), fn.value = !N.value.userOptions.showOnChartHover, Jt.value += 1, Yt.value += 1, Xt.value += 1, V.value.showTable = N.value.table.show, V.value.showTooltip = F.value.show, V.value.showZoom = z.value.zoom?.show ?? !1;
|
|
374
386
|
}, { deep: !0 });
|
|
375
|
-
let { isPrinting:
|
|
387
|
+
let { isPrinting: yn, isImaging: bn, generatePdf: xn, generateImage: Sn } = le({
|
|
376
388
|
elementId: `treemap_${O.value}`,
|
|
377
389
|
fileName: z.value.title.text || "vue-ui-treemap",
|
|
378
390
|
options: N.value.userOptions.print
|
|
379
|
-
}),
|
|
391
|
+
}), Cn = p(() => N.value.userOptions.show && !z.value.title.text), wn = p(() => ae(N.value.customPalette)), V = S({
|
|
380
392
|
showTable: N.value.table.show,
|
|
381
393
|
showTooltip: F.value.show,
|
|
382
394
|
showZoom: z.value.zoom?.show ?? !1
|
|
@@ -388,21 +400,21 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
388
400
|
showZoom: z.value.zoom?.show ?? !1
|
|
389
401
|
};
|
|
390
402
|
}, { immediate: !0 });
|
|
391
|
-
let
|
|
403
|
+
let Tn = S({
|
|
392
404
|
height: z.value.height,
|
|
393
405
|
width: z.value.width
|
|
394
406
|
});
|
|
395
|
-
function
|
|
396
|
-
let t = A.value, n =
|
|
407
|
+
function En(e) {
|
|
408
|
+
let t = A.value, n = Tn.value.height;
|
|
397
409
|
return !t || !n ? e : e * (n / t.getBoundingClientRect().height);
|
|
398
410
|
}
|
|
399
|
-
function
|
|
411
|
+
function Dn() {
|
|
400
412
|
if (!Zt.value || X.value.length <= 1) return 0;
|
|
401
413
|
let e = Zt.value, t = getComputedStyle(e);
|
|
402
|
-
return
|
|
414
|
+
return En(e.offsetHeight + parseFloat(t.marginTop || "0") + parseFloat(t.marginBottom || "0") + parseFloat(t.paddingTop || "0") + parseFloat(t.paddingBottom || "0"));
|
|
403
415
|
}
|
|
404
416
|
let H = p(() => {
|
|
405
|
-
let e = z.value.padding, t =
|
|
417
|
+
let e = z.value.padding, t = Tn.value.width, n = Tn.value.height, r = Dn(), i = e.left, a = t - e.right, o = e.top, s = n - e.bottom - r;
|
|
406
418
|
return {
|
|
407
419
|
left: i,
|
|
408
420
|
top: o,
|
|
@@ -414,34 +426,34 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
414
426
|
vbHeight: n - r,
|
|
415
427
|
offsetY: r
|
|
416
428
|
};
|
|
417
|
-
}), U = S(l(un.value)), W = S(U.value),
|
|
429
|
+
}), U = S(l(un.value)), W = S(U.value), On = w(/* @__PURE__ */ new Map());
|
|
418
430
|
qe([U, () => N.value], () => {
|
|
419
431
|
tn.value = null, nn.value = /* @__PURE__ */ new Map();
|
|
420
432
|
}, { deep: !0 }), qe(() => k.value, () => {
|
|
421
|
-
tn.value = null, nn.value = /* @__PURE__ */ new Map(),
|
|
422
|
-
}, { deep: !0 }), qe([() =>
|
|
433
|
+
tn.value = null, nn.value = /* @__PURE__ */ new Map(), Mn(), Xt.value += 1, Yt.value += 1;
|
|
434
|
+
}, { deep: !0 }), qe([() => Tn.value.width, () => Tn.value.height], () => {
|
|
423
435
|
nn.value = /* @__PURE__ */ new Map();
|
|
424
436
|
});
|
|
425
|
-
function
|
|
437
|
+
function kn(e) {
|
|
426
438
|
Array.isArray(e) && e.forEach((e, t) => {
|
|
427
439
|
e.id ||= ne(), e.sourceColor === void 0 && (e.sourceColor = o(e.color) || null);
|
|
428
|
-
let n = e.sourceColor ||
|
|
429
|
-
n = o(n),
|
|
440
|
+
let n = e.sourceColor || On.value.get(e.id) || wn.value[t] || i[t] || i[t % i.length];
|
|
441
|
+
n = o(n), On.value.set(e.id, n), e.color = n, An(e, n);
|
|
430
442
|
});
|
|
431
443
|
}
|
|
432
|
-
function
|
|
444
|
+
function An(e, t) {
|
|
433
445
|
Array.isArray(e.children) && e.children.forEach((n) => {
|
|
434
446
|
n.id ||= ne(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = o(n.color) || null);
|
|
435
447
|
let r = n.sourceColor || t;
|
|
436
|
-
n.color = r,
|
|
448
|
+
n.color = r, An(n, r);
|
|
437
449
|
});
|
|
438
450
|
}
|
|
439
|
-
function
|
|
451
|
+
function jn(e) {
|
|
440
452
|
let t = Y(e);
|
|
441
453
|
for (; t?.parentId;) t = Y(t.parentId);
|
|
442
454
|
return t?.id ?? null;
|
|
443
455
|
}
|
|
444
|
-
function
|
|
456
|
+
function Mn() {
|
|
445
457
|
let e = U.value.filter((e) => !k.value.includes(e.id));
|
|
446
458
|
if (!j.value.length) {
|
|
447
459
|
W.value = e;
|
|
@@ -452,7 +464,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
452
464
|
j.value = [], W.value = e;
|
|
453
465
|
return;
|
|
454
466
|
}
|
|
455
|
-
let r =
|
|
467
|
+
let r = jn(n.id);
|
|
456
468
|
if (r && k.value.includes(r)) {
|
|
457
469
|
j.value = [], W.value = e;
|
|
458
470
|
return;
|
|
@@ -460,26 +472,26 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
460
472
|
W.value = [n];
|
|
461
473
|
}
|
|
462
474
|
qe(() => un.value, () => {
|
|
463
|
-
U.value = l(un.value),
|
|
475
|
+
U.value = l(un.value), kn(U.value), Mn(), Xt.value += 1, Yt.value += 1;
|
|
464
476
|
}, {
|
|
465
477
|
deep: !0,
|
|
466
478
|
immediate: !0,
|
|
467
479
|
flush: "post"
|
|
468
480
|
});
|
|
469
|
-
let
|
|
481
|
+
let Nn = w(null), Pn = w(null);
|
|
470
482
|
Be(() => {
|
|
471
|
-
Qt.value = !0,
|
|
483
|
+
Qt.value = !0, In();
|
|
472
484
|
});
|
|
473
|
-
let
|
|
485
|
+
let Fn = p(() => N.value.debug);
|
|
474
486
|
Be(() => {
|
|
475
|
-
Lt["chart-background"] &&
|
|
487
|
+
Lt["chart-background"] && Fn.value && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
476
488
|
});
|
|
477
|
-
function
|
|
489
|
+
function In() {
|
|
478
490
|
if (a(D.dataset) && te({
|
|
479
491
|
componentName: "VueUiTreemap",
|
|
480
492
|
type: "dataset",
|
|
481
|
-
debug:
|
|
482
|
-
}),
|
|
493
|
+
debug: Fn.value
|
|
494
|
+
}), kn(U.value), a(D.dataset) || (dn.value = N.value.loading), N.value.responsive) {
|
|
483
495
|
let e = ye(() => {
|
|
484
496
|
let { width: e, height: t } = be({
|
|
485
497
|
chart: A.value,
|
|
@@ -489,60 +501,60 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
489
501
|
noTitle: qt.value
|
|
490
502
|
});
|
|
491
503
|
requestAnimationFrame(() => {
|
|
492
|
-
|
|
504
|
+
Tn.value.width = e, Tn.value.height = t - 12;
|
|
493
505
|
});
|
|
494
506
|
});
|
|
495
|
-
|
|
507
|
+
Nn.value && (Pn.value && Nn.value.unobserve(Pn.value), Nn.value.disconnect()), Nn.value = new ResizeObserver(e), Pn.value = A.value.parentNode, Nn.value.observe(Pn.value);
|
|
496
508
|
}
|
|
497
509
|
}
|
|
498
510
|
ze(() => {
|
|
499
|
-
|
|
511
|
+
Nn.value && (Pn.value && Nn.value.unobserve(Pn.value), Nn.value.disconnect());
|
|
500
512
|
});
|
|
501
|
-
let
|
|
513
|
+
let Ln = p(() => W.value.map((e, t) => ({
|
|
502
514
|
...e,
|
|
503
|
-
color: o(e.color) ||
|
|
504
|
-
})).filter((e) => !k.value.includes(e.id))),
|
|
515
|
+
color: o(e.color) || wn.value[t] || i[t] || i[t % i.length]
|
|
516
|
+
})).filter((e) => !k.value.includes(e.id))), Rn = p(() => U.value.filter((e) => !k.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), zn = p({
|
|
505
517
|
get() {
|
|
506
|
-
let e = [...
|
|
507
|
-
return R.value.sorted && (e = [...
|
|
518
|
+
let e = [...Ln.value];
|
|
519
|
+
return R.value.sorted && (e = [...Ln.value].sort((e, t) => t.value - e.value)), e.map((e) => ({ ...e }));
|
|
508
520
|
},
|
|
509
521
|
set(e) {
|
|
510
522
|
return e;
|
|
511
523
|
}
|
|
512
524
|
});
|
|
513
|
-
function
|
|
525
|
+
function Bn(e, t) {
|
|
514
526
|
return e.value / t;
|
|
515
527
|
}
|
|
516
|
-
function
|
|
517
|
-
let r = R.value.rects.colorRatio -
|
|
528
|
+
function Vn(e, t, n) {
|
|
529
|
+
let r = R.value.rects.colorRatio - Bn(t, n);
|
|
518
530
|
return f(e, r < 0 ? 0 : r);
|
|
519
531
|
}
|
|
520
|
-
function
|
|
532
|
+
function Hn(e) {
|
|
521
533
|
return Array.isArray(e.children) && e.children.length > 0;
|
|
522
534
|
}
|
|
523
|
-
function
|
|
535
|
+
function Un(e) {
|
|
524
536
|
return [...e].sort((e, t) => {
|
|
525
|
-
let n =
|
|
537
|
+
let n = Hn(e), r = Hn(t);
|
|
526
538
|
if (n !== r) return n - r;
|
|
527
539
|
let i = Number(e.value) || 0;
|
|
528
540
|
return (Number(t.value) || 0) - i;
|
|
529
541
|
});
|
|
530
542
|
}
|
|
531
|
-
function
|
|
532
|
-
return
|
|
533
|
-
let c = e.sourceColor || o(e.color) || o(t) ||
|
|
543
|
+
function Wn(e, t, n, r, a) {
|
|
544
|
+
return Un(e).map((e, s) => {
|
|
545
|
+
let c = e.sourceColor || o(e.color) || o(t) || wn.value[s] || i[s] || i[s % i.length], l = e.sourceColor ? e.sourceColor : Vn(c, e, r), u = Bn(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
546
|
return {
|
|
535
547
|
...e,
|
|
536
548
|
color: l,
|
|
537
549
|
proportion: u,
|
|
538
550
|
parentName: n,
|
|
539
551
|
rootId: d,
|
|
540
|
-
children: Array.isArray(e.children) && e.children.length ?
|
|
552
|
+
children: Array.isArray(e.children) && e.children.length ? Wn(e.children, c, e.name, f, d) : void 0
|
|
541
553
|
};
|
|
542
554
|
});
|
|
543
555
|
}
|
|
544
|
-
function
|
|
545
|
-
let t =
|
|
556
|
+
function Gn(e) {
|
|
557
|
+
let t = ir(e), n = Kn(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
558
|
return u <= l || f <= d ? null : {
|
|
547
559
|
x0: l,
|
|
548
560
|
y0: d,
|
|
@@ -550,14 +562,14 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
550
562
|
y1: f
|
|
551
563
|
};
|
|
552
564
|
}
|
|
553
|
-
function
|
|
554
|
-
return L.value.hideUnderProportion === 0 ||
|
|
565
|
+
function Kn(e) {
|
|
566
|
+
return L.value.hideUnderProportion === 0 || qn(e);
|
|
555
567
|
}
|
|
556
|
-
function
|
|
568
|
+
function qn(e) {
|
|
557
569
|
let t = Number(L.value.hideUnderProportion);
|
|
558
570
|
return !Number.isFinite(t) || t <= 0 || e.proportion > t;
|
|
559
571
|
}
|
|
560
|
-
function
|
|
572
|
+
function Jn(e, t, n = 0, r = null) {
|
|
561
573
|
if (!Array.isArray(e) || !e.length) return [];
|
|
562
574
|
let i = e.map((e) => {
|
|
563
575
|
let { children: t, ...n } = e;
|
|
@@ -571,19 +583,19 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
571
583
|
color: i?.color ?? e.color ?? null,
|
|
572
584
|
children: t,
|
|
573
585
|
isVisibleNode: !0,
|
|
574
|
-
showLabel:
|
|
586
|
+
showLabel: Kn(e)
|
|
575
587
|
};
|
|
576
588
|
if (c.push(s), t.length) {
|
|
577
|
-
let r =
|
|
578
|
-
r && c.push(...
|
|
589
|
+
let r = Gn(s);
|
|
590
|
+
r && c.push(...Jn(t, r, n + 1, e.id));
|
|
579
591
|
}
|
|
580
592
|
}
|
|
581
593
|
return c;
|
|
582
594
|
}
|
|
583
|
-
let
|
|
584
|
-
let e = W.value.length ? W.value :
|
|
585
|
-
return
|
|
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) ||
|
|
595
|
+
let Yn = p(() => {
|
|
596
|
+
let e = W.value.length ? W.value : zn.value, t = e.map((e) => Number(e.value) || 0).reduce((e, t) => e + t, 0) || 1;
|
|
597
|
+
return Jn(e.map((e, n) => {
|
|
598
|
+
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) || On.value.get(e.id) || wn.value[n] || i[n] || i[n % i.length], l = e.sourceColor ? e.sourceColor : Vn(c, e, t);
|
|
587
599
|
return {
|
|
588
600
|
...s,
|
|
589
601
|
id: e.id || ne(),
|
|
@@ -592,7 +604,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
592
604
|
value: e.value,
|
|
593
605
|
color: l,
|
|
594
606
|
proportion: (Number(e.value) || 0) / t,
|
|
595
|
-
children: Array.isArray(e.children) && e.children.length ?
|
|
607
|
+
children: Array.isArray(e.children) && e.children.length ? Wn(e.children, c, e.name, r || 1) : void 0
|
|
596
608
|
};
|
|
597
609
|
}), {
|
|
598
610
|
x0: H.value.left,
|
|
@@ -600,9 +612,9 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
600
612
|
x1: H.value.left + H.value.width,
|
|
601
613
|
y1: H.value.top + H.value.height
|
|
602
614
|
});
|
|
603
|
-
}), G = p(() =>
|
|
604
|
-
function
|
|
605
|
-
return (Z.value && Z.value.id === e.id ? R.value.rects.selected.strokeWidth : R.value.rects.strokeWidth) *
|
|
615
|
+
}), G = p(() => Yn.value);
|
|
616
|
+
function Xn(e) {
|
|
617
|
+
return (Z.value && Z.value.id === e.id ? R.value.rects.selected.strokeWidth : R.value.rects.strokeWidth) * Br.value;
|
|
606
618
|
}
|
|
607
619
|
function K({ y0: e, y1: t }) {
|
|
608
620
|
return t - e <= 0 ? 1e-4 : Math.round((t - e) * 1e4) / 1e4;
|
|
@@ -610,22 +622,22 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
610
622
|
function q({ x0: e, x1: t }) {
|
|
611
623
|
return t - e <= 0 ? 1e-4 : Math.round((t - e) * 1e4) / 1e4;
|
|
612
624
|
}
|
|
613
|
-
function
|
|
625
|
+
function Zn() {
|
|
614
626
|
let e = L.value, 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
627
|
return {
|
|
616
628
|
lowerBound: r,
|
|
617
629
|
upperBound: Math.max(r, Number.isFinite(n) ? n : r)
|
|
618
630
|
};
|
|
619
631
|
}
|
|
620
|
-
function
|
|
632
|
+
function Qn(e) {
|
|
621
633
|
let t = Math.min(4, Math.max(e * .25, .5));
|
|
622
634
|
return {
|
|
623
635
|
paddingX: t,
|
|
624
636
|
paddingTop: t
|
|
625
637
|
};
|
|
626
638
|
}
|
|
627
|
-
function
|
|
628
|
-
let { paddingX: n, paddingTop: r } =
|
|
639
|
+
function $n(e, t) {
|
|
640
|
+
let { paddingX: n, paddingTop: r } = Qn(t), i = t * 1.1;
|
|
629
641
|
return {
|
|
630
642
|
x: e.x0 + n,
|
|
631
643
|
y: e.y0 + r,
|
|
@@ -634,7 +646,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
634
646
|
lineHeight: i
|
|
635
647
|
};
|
|
636
648
|
}
|
|
637
|
-
function
|
|
649
|
+
function er(e, t) {
|
|
638
650
|
return d(L.value.formatter, e.value, s({
|
|
639
651
|
p: L.value.prefix,
|
|
640
652
|
v: e.value,
|
|
@@ -645,30 +657,30 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
645
657
|
seriesIndex: t
|
|
646
658
|
});
|
|
647
659
|
}
|
|
648
|
-
function
|
|
649
|
-
let n =
|
|
660
|
+
function tr(e, t) {
|
|
661
|
+
let n = er(e, t);
|
|
650
662
|
return Array.isArray(e.children) && e.children.length ? [`${e.name} (${n})`] : [`${e.name}`, n].filter((e) => `${e}`.length);
|
|
651
663
|
}
|
|
652
|
-
function
|
|
653
|
-
let r =
|
|
654
|
-
return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) =>
|
|
664
|
+
function nr(e, t, n) {
|
|
665
|
+
let r = tr(e, n), i = $n(e, t);
|
|
666
|
+
return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) => _i(e, t, n === 0 ? 500 : 400) <= i.width);
|
|
655
667
|
}
|
|
656
|
-
function
|
|
657
|
-
let i =
|
|
668
|
+
function rr(e, t, n, r) {
|
|
669
|
+
let i = tr(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
670
|
return Math.max(n, Math.min(r, u, d));
|
|
659
671
|
}
|
|
660
|
-
function
|
|
661
|
-
let { lowerBound: n, upperBound: r } =
|
|
662
|
-
if (
|
|
672
|
+
function ir(e, t) {
|
|
673
|
+
let { lowerBound: n, upperBound: r } = Zn(), i = Math.max(1e-4, Math.min(q(e), K(e))), a = Math.max(n, Math.min(r, i * .9)), o = Math.min(a, rr(e, t, n, r));
|
|
674
|
+
if (nr(e, o, t) || !nr(e, n, t)) return o;
|
|
663
675
|
let s = n, c = o, l = n;
|
|
664
676
|
for (let n = 0; n < 8; n += 1) {
|
|
665
677
|
let n = (s + c) / 2;
|
|
666
|
-
|
|
678
|
+
nr(e, n, t) ? (l = n, s = n) : c = n;
|
|
667
679
|
}
|
|
668
680
|
let u = Math.max(n, o * .7);
|
|
669
681
|
return l >= u ? l : o;
|
|
670
682
|
}
|
|
671
|
-
function
|
|
683
|
+
function ar(e) {
|
|
672
684
|
Ht.value = e, Ut.value += 1;
|
|
673
685
|
}
|
|
674
686
|
let J = p(() => ({
|
|
@@ -687,7 +699,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
687
699
|
}
|
|
688
700
|
return null;
|
|
689
701
|
}
|
|
690
|
-
function
|
|
702
|
+
function or(e) {
|
|
691
703
|
let t = [], n = Y(e);
|
|
692
704
|
for (; n && n.parentId;) {
|
|
693
705
|
let e = Y(n.parentId);
|
|
@@ -696,23 +708,23 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
696
708
|
}
|
|
697
709
|
return t;
|
|
698
710
|
}
|
|
699
|
-
let
|
|
700
|
-
function
|
|
711
|
+
let sr = p(() => j.value.length > 0);
|
|
712
|
+
function cr() {
|
|
701
713
|
W.value = U.value.slice(), j.value = [], ct("selectDatapoint", void 0);
|
|
702
714
|
}
|
|
703
|
-
function
|
|
715
|
+
function lr() {
|
|
704
716
|
return j.value[j.value.length - 1] ?? null;
|
|
705
717
|
}
|
|
706
|
-
function
|
|
707
|
-
j.value = [...
|
|
718
|
+
function ur(e, t, n) {
|
|
719
|
+
j.value = [...or(e.id), e.id], W.value = [e], N.value.events.datapointClick && N.value.events.datapointClick({
|
|
708
720
|
datapoint: t ?? e,
|
|
709
721
|
seriesIndex: n
|
|
710
722
|
}), ct("selectDatapoint", t ?? e);
|
|
711
723
|
}
|
|
712
|
-
function
|
|
713
|
-
let n =
|
|
724
|
+
function dr(e, t) {
|
|
725
|
+
let n = lr();
|
|
714
726
|
if (!n) {
|
|
715
|
-
|
|
727
|
+
cr();
|
|
716
728
|
return;
|
|
717
729
|
}
|
|
718
730
|
let r = Y(n);
|
|
@@ -720,35 +732,35 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
720
732
|
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
721
733
|
datapoint: e,
|
|
722
734
|
seriesIndex: t
|
|
723
|
-
}),
|
|
735
|
+
}), cr();
|
|
724
736
|
return;
|
|
725
737
|
}
|
|
726
738
|
let i = Y(r.parentId);
|
|
727
739
|
if (!i) {
|
|
728
|
-
|
|
740
|
+
cr();
|
|
729
741
|
return;
|
|
730
742
|
}
|
|
731
|
-
j.value = [...
|
|
743
|
+
j.value = [...or(i.id), i.id], W.value = [i], N.value.events.datapointClick && N.value.events.datapointClick({
|
|
732
744
|
datapoint: e,
|
|
733
745
|
seriesIndex: t
|
|
734
746
|
}), ct("selectDatapoint", e);
|
|
735
747
|
}
|
|
736
|
-
function
|
|
748
|
+
function fr(e, t) {
|
|
737
749
|
if (!e) {
|
|
738
|
-
|
|
750
|
+
cr();
|
|
739
751
|
return;
|
|
740
752
|
}
|
|
741
753
|
let n = Y(e.id);
|
|
742
754
|
if (n) {
|
|
743
|
-
if (
|
|
744
|
-
|
|
755
|
+
if (lr() === n.id) {
|
|
756
|
+
dr(e, t);
|
|
745
757
|
return;
|
|
746
758
|
}
|
|
747
|
-
|
|
759
|
+
ur(n, e, t);
|
|
748
760
|
}
|
|
749
761
|
}
|
|
750
|
-
function
|
|
751
|
-
return e ?
|
|
762
|
+
function pr(e) {
|
|
763
|
+
return e ? lr() === e.id : !1;
|
|
752
764
|
}
|
|
753
765
|
let X = p(() => {
|
|
754
766
|
let e = [{
|
|
@@ -765,9 +777,9 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
765
777
|
});
|
|
766
778
|
}
|
|
767
779
|
return e;
|
|
768
|
-
}), Z = w(null),
|
|
780
|
+
}), Z = w(null), mr = p(() => U.value.map((e, t) => ({
|
|
769
781
|
...e,
|
|
770
|
-
color: o(e.color) ||
|
|
782
|
+
color: o(e.color) || wn.value[t] || i[t] || i[t % i.length],
|
|
771
783
|
shape: "square"
|
|
772
784
|
})).sort((e, t) => t.value - e.value).map((e, t) => {
|
|
773
785
|
let n = e.value / U.value.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
@@ -775,70 +787,70 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
775
787
|
...e,
|
|
776
788
|
proportion: n,
|
|
777
789
|
isSegregated: k.value.includes(e.id),
|
|
778
|
-
segregate: () =>
|
|
790
|
+
segregate: () => vr(e),
|
|
779
791
|
opacity: k.value.includes(e.id) ? .5 : 1,
|
|
780
792
|
display: `${e.name}${I.value.showPercentage || I.value.showValue ? ": " : ""}${I.value.showValue ? d(L.value.formatter, e.value, s({
|
|
781
793
|
p: L.value.prefix,
|
|
782
794
|
v: e.value,
|
|
783
795
|
s: L.value.suffix,
|
|
784
796
|
r: I.value.roundingValue
|
|
785
|
-
}), { datapoint: e }) : ""}${I.value.showPercentage ? k.value.includes(e.id) ? `${I.value.showValue ? " (" : ""}- %${I.value.showValue ? ")" : ""}` : `${I.value.showValue ? " (" : ""}${isNaN(e.value /
|
|
797
|
+
}), { datapoint: e }) : ""}${I.value.showPercentage ? k.value.includes(e.id) ? `${I.value.showValue ? " (" : ""}- %${I.value.showValue ? ")" : ""}` : `${I.value.showValue ? " (" : ""}${isNaN(e.value / Rn.value) ? "-" : (e.value / Rn.value * 100).toFixed(I.value.roundingPercentage)}%${I.value.showValue ? ")" : ""}` : ""}`
|
|
786
798
|
};
|
|
787
|
-
})),
|
|
799
|
+
})), hr = p(() => ({
|
|
788
800
|
cy: "treemap-div-legend",
|
|
789
801
|
backgroundColor: I.value.backgroundColor,
|
|
790
802
|
color: I.value.color,
|
|
791
803
|
fontSize: I.value.fontSize,
|
|
792
804
|
paddingBottom: 12,
|
|
793
805
|
fontWeight: I.value.bold ? "bold" : ""
|
|
794
|
-
})),
|
|
795
|
-
function
|
|
796
|
-
k.value.length ? k.value = [] :
|
|
806
|
+
})), gr = p(() => k.value.length === mr.value.length);
|
|
807
|
+
function _r() {
|
|
808
|
+
k.value.length ? k.value = [] : mr.value.forEach((e) => {
|
|
797
809
|
k.value.push(e.id);
|
|
798
810
|
}), ct("selectLegend", U.value.filter((e) => !k.value.includes(e.id)));
|
|
799
811
|
}
|
|
800
|
-
function
|
|
812
|
+
function vr(e) {
|
|
801
813
|
Z.value = null, k.value.includes(e.id) ? k.value = k.value.filter((t) => t !== e.id) : k.value.length < D.dataset.length - 1 && k.value.push(e.id), ct("selectLegend", U.value.filter((e) => !k.value.includes(e.id)));
|
|
802
814
|
}
|
|
803
|
-
function
|
|
804
|
-
return U.value.length ? U.value.find((t) => t.name === e) || (
|
|
815
|
+
function yr(e) {
|
|
816
|
+
return U.value.length ? U.value.find((t) => t.name === e) || (Fn.value && console.warn(`VueUiTreemap - Series name not found "${e}"`), null) : (Fn.value && console.warn("VueUiTreemap - There are no series to show."), null);
|
|
805
817
|
}
|
|
806
|
-
function
|
|
807
|
-
let t =
|
|
808
|
-
t !== null && k.value.includes(t.id) &&
|
|
818
|
+
function br(e) {
|
|
819
|
+
let t = yr(e);
|
|
820
|
+
t !== null && k.value.includes(t.id) && vr({ id: t.id });
|
|
809
821
|
}
|
|
810
|
-
function
|
|
811
|
-
let t =
|
|
812
|
-
t !== null && (k.value.includes(t.id) ||
|
|
822
|
+
function xr(e) {
|
|
823
|
+
let t = yr(e);
|
|
824
|
+
t !== null && (k.value.includes(t.id) || vr({ id: t.id }));
|
|
813
825
|
}
|
|
814
|
-
function
|
|
826
|
+
function Sr({ datapoint: e, seriesIndex: t }) {
|
|
815
827
|
Z.value = null, Bt.value = !1, M.value = null, an.value = "pointer", N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
816
828
|
datapoint: e,
|
|
817
829
|
seriesIndex: t
|
|
818
830
|
});
|
|
819
831
|
}
|
|
820
|
-
let
|
|
821
|
-
function
|
|
822
|
-
if (
|
|
832
|
+
let Cr = S(null);
|
|
833
|
+
function wr({ datapoint: e, seriesIndex: t, triggerMode: r = "pointer" }) {
|
|
834
|
+
if (gr.value || r === "pointer" && Pr.value) return;
|
|
823
835
|
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
824
836
|
datapoint: e,
|
|
825
837
|
seriesIndex: t
|
|
826
|
-
}), M.value = t, an.value = r, Z.value = e,
|
|
838
|
+
}), M.value = t, an.value = r, Z.value = e, Cr.value = {
|
|
827
839
|
datapoint: e,
|
|
828
840
|
seriesIndex: t,
|
|
829
841
|
config: N.value,
|
|
830
|
-
series:
|
|
842
|
+
series: Ln.value
|
|
831
843
|
};
|
|
832
844
|
let i = F.value.customFormat;
|
|
833
845
|
if (n(i) && ee(() => i({
|
|
834
846
|
seriesIndex: t,
|
|
835
847
|
datapoint: e,
|
|
836
|
-
series:
|
|
848
|
+
series: Ln.value,
|
|
837
849
|
config: N.value
|
|
838
850
|
}))) Vt.value = i({
|
|
839
851
|
seriesIndex: t,
|
|
840
852
|
datapoint: e,
|
|
841
|
-
series:
|
|
853
|
+
series: Ln.value,
|
|
842
854
|
config: N.value
|
|
843
855
|
});
|
|
844
856
|
else {
|
|
@@ -862,12 +874,12 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
862
874
|
})),
|
|
863
875
|
body: G.value.map((e) => e.value)
|
|
864
876
|
}));
|
|
865
|
-
function
|
|
877
|
+
function Tr(e = null) {
|
|
866
878
|
Le(() => {
|
|
867
879
|
let n = Q.value.head.map((e, t) => [
|
|
868
880
|
[e.name],
|
|
869
881
|
[Q.value.body[t]],
|
|
870
|
-
[isNaN(Q.value.body[t] /
|
|
882
|
+
[isNaN(Q.value.body[t] / Rn.value) ? "-" : Q.value.body[t] / Rn.value * 100]
|
|
871
883
|
]), i = [
|
|
872
884
|
[z.value.title.text],
|
|
873
885
|
[z.value.title.subtitle.text],
|
|
@@ -883,7 +895,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
883
895
|
});
|
|
884
896
|
});
|
|
885
897
|
}
|
|
886
|
-
let
|
|
898
|
+
let Er = p(() => {
|
|
887
899
|
let e = [
|
|
888
900
|
N.value.table.columnNames.series,
|
|
889
901
|
N.value.table.columnNames.value,
|
|
@@ -902,8 +914,8 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
902
914
|
shape: "square"
|
|
903
915
|
},
|
|
904
916
|
n,
|
|
905
|
-
isNaN(Q.value.body[t] /
|
|
906
|
-
v: Q.value.body[t] /
|
|
917
|
+
isNaN(Q.value.body[t] / Rn.value) ? "-" : s({
|
|
918
|
+
v: Q.value.body[t] / Rn.value * 100,
|
|
907
919
|
s: "%",
|
|
908
920
|
r: N.value.table.td.roundingPercentage
|
|
909
921
|
})
|
|
@@ -928,28 +940,28 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
928
940
|
config: n
|
|
929
941
|
};
|
|
930
942
|
});
|
|
931
|
-
function
|
|
943
|
+
function Dr() {
|
|
932
944
|
return G.value;
|
|
933
945
|
}
|
|
934
|
-
function
|
|
946
|
+
function Or() {
|
|
935
947
|
V.value.showTable = !V.value.showTable;
|
|
936
948
|
}
|
|
937
|
-
function
|
|
949
|
+
function kr() {
|
|
938
950
|
V.value.showTooltip = !V.value.showTooltip;
|
|
939
951
|
}
|
|
940
|
-
function
|
|
952
|
+
function Ar() {
|
|
941
953
|
V.value.showZoom = !V.value.showZoom;
|
|
942
954
|
}
|
|
943
|
-
let
|
|
944
|
-
function
|
|
945
|
-
|
|
955
|
+
let jr = S(!1);
|
|
956
|
+
function Mr() {
|
|
957
|
+
jr.value = !jr.value;
|
|
946
958
|
}
|
|
947
|
-
let
|
|
959
|
+
let Nr = p(() => !jr.value && V.value.showZoom), Pr = S(null), Fr = S(!1), { viewBox: $, resetZoom: Ir, isZoom: Lr, setInitialViewBox: Rr, scale: zr } = Oe(hn, {
|
|
948
960
|
x: J.value.x,
|
|
949
961
|
y: J.value.y,
|
|
950
962
|
width: Math.max(10, J.value.width),
|
|
951
963
|
height: Math.max(10, J.value.height)
|
|
952
|
-
}, 1,
|
|
964
|
+
}, 1, Nr), Br = p(() => 1 / zr.value), Vr = p(() => Math.min(1, L.value.fontSizeZoomFactor / Math.max(zr.value, 1e-4))), Hr = p(() => `scale(${Vr.value})`), Ur = p(() => V.value.showZoom || Lr.value);
|
|
953
965
|
qe([
|
|
954
966
|
() => J.value.x,
|
|
955
967
|
() => J.value.y,
|
|
@@ -957,7 +969,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
957
969
|
() => J.value.height
|
|
958
970
|
], () => {
|
|
959
971
|
Le(() => {
|
|
960
|
-
|
|
972
|
+
Rr({
|
|
961
973
|
x: J.value.x,
|
|
962
974
|
y: J.value.y,
|
|
963
975
|
width: Math.max(10, J.value.width),
|
|
@@ -965,33 +977,33 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
965
977
|
});
|
|
966
978
|
});
|
|
967
979
|
}, { immediate: !0 });
|
|
968
|
-
function
|
|
969
|
-
|
|
980
|
+
function Wr(e) {
|
|
981
|
+
Nr.value && (e.button === void 0 || e.button === 0) && (Pr.value = {
|
|
970
982
|
x: e.clientX,
|
|
971
983
|
y: e.clientY
|
|
972
|
-
},
|
|
984
|
+
}, Fr.value = !1);
|
|
973
985
|
}
|
|
974
|
-
function
|
|
975
|
-
if (!
|
|
976
|
-
let t = e.clientX -
|
|
977
|
-
Math.hypot(t, n) > It && (
|
|
986
|
+
function Gr(e) {
|
|
987
|
+
if (!Nr.value || !Pr.value) return;
|
|
988
|
+
let t = e.clientX - Pr.value.x, n = e.clientY - Pr.value.y;
|
|
989
|
+
Math.hypot(t, n) > It && (Fr.value = !0);
|
|
978
990
|
}
|
|
979
|
-
function
|
|
980
|
-
|
|
981
|
-
|
|
991
|
+
function Kr() {
|
|
992
|
+
Pr.value = null, Fr.value && window.setTimeout(() => {
|
|
993
|
+
Fr.value = !1;
|
|
982
994
|
}, 0);
|
|
983
995
|
}
|
|
984
|
-
function
|
|
985
|
-
|
|
996
|
+
function qr(e, t) {
|
|
997
|
+
Fr.value || fr(e, t);
|
|
986
998
|
}
|
|
987
|
-
let
|
|
988
|
-
function
|
|
989
|
-
|
|
999
|
+
let Jr = S(null);
|
|
1000
|
+
function Yr(e) {
|
|
1001
|
+
Jr.value = e;
|
|
990
1002
|
}
|
|
991
|
-
function
|
|
992
|
-
|
|
1003
|
+
function Xr() {
|
|
1004
|
+
Jr.value = null;
|
|
993
1005
|
}
|
|
994
|
-
async function
|
|
1006
|
+
async function Zr({ scale: e = 2 } = {}) {
|
|
995
1007
|
if (!A.value) return;
|
|
996
1008
|
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ge({
|
|
997
1009
|
domElement: A.value,
|
|
@@ -1008,7 +1020,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1008
1020
|
aspectRatio: r
|
|
1009
1021
|
};
|
|
1010
1022
|
}
|
|
1011
|
-
let
|
|
1023
|
+
let Qr = p(() => {
|
|
1012
1024
|
let e = N.value.table.useDialog && !N.value.table.show, t = V.value.showTable;
|
|
1013
1025
|
return {
|
|
1014
1026
|
component: e ? it : $e,
|
|
@@ -1042,23 +1054,23 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1042
1054
|
qe(() => V.value.showTable, (e) => {
|
|
1043
1055
|
N.value.table.show || (e && N.value.table.useDialog && $t.value ? $t.value.open() : "close" in $t.value && $t.value.close());
|
|
1044
1056
|
});
|
|
1045
|
-
function
|
|
1057
|
+
function $r() {
|
|
1046
1058
|
V.value.showTable = !1, en.value && en.value.setTableIconState(!1);
|
|
1047
1059
|
}
|
|
1048
|
-
let
|
|
1060
|
+
let ei = p(() => mr.value.map((e) => ({
|
|
1049
1061
|
...e,
|
|
1050
1062
|
name: e.display
|
|
1051
|
-
}))),
|
|
1063
|
+
}))), ti = p(() => z.value.backgroundColor), ni = p(() => z.value.title), { isCallbackImaging: ri, isCallbackSvg: ii, generateSvg: ai, onGenerateImage: oi } = me({
|
|
1052
1064
|
svg: hn,
|
|
1053
|
-
title:
|
|
1065
|
+
title: ni,
|
|
1054
1066
|
legend: I,
|
|
1055
|
-
legendItems:
|
|
1056
|
-
backgroundColor:
|
|
1067
|
+
legendItems: ei,
|
|
1068
|
+
backgroundColor: ti,
|
|
1057
1069
|
getSvgCallback: () => N.value.userOptions.callbacks.svg,
|
|
1058
|
-
generateImage:
|
|
1070
|
+
generateImage: Sn
|
|
1059
1071
|
});
|
|
1060
|
-
function
|
|
1061
|
-
let n =
|
|
1072
|
+
function si(e, t) {
|
|
1073
|
+
let n = ir(e, t), { paddingX: r, paddingTop: i } = Qn(n);
|
|
1062
1074
|
return {
|
|
1063
1075
|
fontSize: n,
|
|
1064
1076
|
paddingX: r,
|
|
@@ -1066,28 +1078,28 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1066
1078
|
lineHeight: n * 1.1
|
|
1067
1079
|
};
|
|
1068
1080
|
}
|
|
1069
|
-
function
|
|
1081
|
+
function ci(e) {
|
|
1070
1082
|
return re(e.color ?? z.value.backgroundColor);
|
|
1071
1083
|
}
|
|
1072
|
-
function
|
|
1084
|
+
function li({ availableHeight: e, lineHeight: t, lineIndex: n }) {
|
|
1073
1085
|
if (n === 0) return Infinity;
|
|
1074
1086
|
let r = e / (n + 1);
|
|
1075
1087
|
return r < 1e-4 ? -Infinity : t <= 0 ? Infinity : r / t;
|
|
1076
1088
|
}
|
|
1077
|
-
function
|
|
1089
|
+
function ui() {
|
|
1078
1090
|
return Number(L.value.hideUnderProportion) === 0;
|
|
1079
1091
|
}
|
|
1080
|
-
function
|
|
1081
|
-
let t =
|
|
1082
|
-
return e.alwaysShowAllLines ? `scale(${Math.min(t, e.allLinesScaleCap)})` :
|
|
1092
|
+
function di(e) {
|
|
1093
|
+
let t = Vr.value;
|
|
1094
|
+
return e.alwaysShowAllLines ? `scale(${Math.min(t, e.allLinesScaleCap)})` : Hr.value;
|
|
1083
1095
|
}
|
|
1084
|
-
function
|
|
1085
|
-
if (!e || !L.value.showDefaultLabels || !
|
|
1086
|
-
let { fontSize: n, paddingX: r, paddingTop: i, lineHeight: a } =
|
|
1096
|
+
function fi({ rect: e, seriesIndex: t }) {
|
|
1097
|
+
if (!e || !L.value.showDefaultLabels || !Kn(e)) return null;
|
|
1098
|
+
let { fontSize: n, paddingX: r, paddingTop: i, lineHeight: a } = si(e, t), o = ci(e), s = tr(e, t).map((e) => String(e ?? "")), c = $n(e, n);
|
|
1087
1099
|
if (!s.some(Boolean) || c.width <= 0 || c.height <= 0) return null;
|
|
1088
|
-
let l =
|
|
1100
|
+
let l = ui(), u = l ? Math.max(1e-4, Math.min(1, c.height / Math.max(s.length * a, 1e-4))) : 1, d = `treemap_clip_${O.value}_${e.id}`, f = e.x0, ee = e.y0, te = Math.max(q(e), 0), ne = Math.max(K(e), 0);
|
|
1089
1101
|
return {
|
|
1090
|
-
key:
|
|
1102
|
+
key: pi(e),
|
|
1091
1103
|
clipId: d,
|
|
1092
1104
|
clipX: f,
|
|
1093
1105
|
clipY: ee,
|
|
@@ -1101,7 +1113,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1101
1113
|
text: t,
|
|
1102
1114
|
x: r,
|
|
1103
1115
|
y: i + a * s,
|
|
1104
|
-
maxZoomFactor:
|
|
1116
|
+
maxZoomFactor: li({
|
|
1105
1117
|
availableHeight: c.height,
|
|
1106
1118
|
lineHeight: a,
|
|
1107
1119
|
lineIndex: s
|
|
@@ -1113,25 +1125,25 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1113
1125
|
}))
|
|
1114
1126
|
};
|
|
1115
1127
|
}
|
|
1116
|
-
function
|
|
1128
|
+
function pi(e) {
|
|
1117
1129
|
return `${e.id}`;
|
|
1118
1130
|
}
|
|
1119
|
-
let
|
|
1131
|
+
let mi = p(() => Lt.rect || ln.value || !L.value.showDefaultLabels || gr.value ? [] : G.value.map((e, t) => e.showLabel ? fi({
|
|
1120
1132
|
rect: e,
|
|
1121
1133
|
seriesIndex: t
|
|
1122
|
-
}) : null).filter(Boolean)),
|
|
1123
|
-
function
|
|
1124
|
-
return typeof document > "u" ? null : (
|
|
1134
|
+
}) : null).filter(Boolean)), hi;
|
|
1135
|
+
function gi() {
|
|
1136
|
+
return typeof document > "u" ? null : (hi ||= document.createElement("canvas"), hi.getContext("2d"));
|
|
1125
1137
|
}
|
|
1126
|
-
function
|
|
1127
|
-
let r =
|
|
1138
|
+
function _i(e, t, n = 400) {
|
|
1139
|
+
let r = gi();
|
|
1128
1140
|
return r ? (r.font = `${n} ${t}px ${N.value.style.fontFamily}`, r.measureText(String(e)).width) : e.length * t * .6;
|
|
1129
1141
|
}
|
|
1130
|
-
function
|
|
1142
|
+
function vi(e) {
|
|
1131
1143
|
let t = R.value.rects.borderRadius, n = q(e), r = K(e);
|
|
1132
1144
|
return Math.min(t, Math.min(n, r) / 6);
|
|
1133
1145
|
}
|
|
1134
|
-
async function
|
|
1146
|
+
async function yi() {
|
|
1135
1147
|
if (ct("copyAlt", {
|
|
1136
1148
|
config: N.value,
|
|
1137
1149
|
dataset: G.value
|
|
@@ -1144,14 +1156,14 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1144
1156
|
dataset: G.value
|
|
1145
1157
|
}));
|
|
1146
1158
|
}
|
|
1147
|
-
function
|
|
1159
|
+
function bi() {
|
|
1148
1160
|
M.value = null, on.value = !0;
|
|
1149
1161
|
}
|
|
1150
|
-
function
|
|
1162
|
+
function xi() {
|
|
1151
1163
|
M.value = null, an.value = "pointer", Bt.value = !1, Z.value = null, on.value = !1;
|
|
1152
1164
|
}
|
|
1153
|
-
function
|
|
1154
|
-
if (!hn.value ||
|
|
1165
|
+
function Si(e) {
|
|
1166
|
+
if (!hn.value || jr.value || document.activeElement !== hn.value || !G.value.length || gr.value) return;
|
|
1155
1167
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1156
1168
|
if (!t && !n && !r && !i) return;
|
|
1157
1169
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -1162,19 +1174,19 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1162
1174
|
if (M.value === null) return;
|
|
1163
1175
|
let e = G.value[M.value];
|
|
1164
1176
|
if (!e) return;
|
|
1165
|
-
|
|
1177
|
+
fr(e, M.value);
|
|
1166
1178
|
return;
|
|
1167
1179
|
}
|
|
1168
1180
|
let a = M.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
1181
|
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
1182
|
let l = G.value[a];
|
|
1171
|
-
l && (
|
|
1183
|
+
l && (Ci(a), wr({
|
|
1172
1184
|
datapoint: l,
|
|
1173
1185
|
seriesIndex: a,
|
|
1174
1186
|
triggerMode: "keyboard"
|
|
1175
1187
|
}));
|
|
1176
1188
|
}
|
|
1177
|
-
function
|
|
1189
|
+
function Ci(e) {
|
|
1178
1190
|
if (!Number.isFinite(e) || !hn.value) return;
|
|
1179
1191
|
let t = G.value[e];
|
|
1180
1192
|
if (!t) return;
|
|
@@ -1184,26 +1196,26 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1184
1196
|
y: i.top + (r - $.value.y) / $.value.height * i.height
|
|
1185
1197
|
};
|
|
1186
1198
|
}
|
|
1187
|
-
let
|
|
1188
|
-
headers:
|
|
1189
|
-
rows:
|
|
1190
|
-
})),
|
|
1199
|
+
let wi = p(() => ({
|
|
1200
|
+
headers: Er.value?.colNames ?? [],
|
|
1201
|
+
rows: Er.value?.body ?? []
|
|
1202
|
+
})), Ti = p(() => z.value.color);
|
|
1191
1203
|
return ve({
|
|
1192
|
-
getData:
|
|
1193
|
-
getImage:
|
|
1194
|
-
generateCsv:
|
|
1195
|
-
generateImage:
|
|
1196
|
-
generateSvg:
|
|
1197
|
-
generatePdf:
|
|
1198
|
-
hideSeries:
|
|
1199
|
-
showSeries:
|
|
1200
|
-
toggleTable:
|
|
1201
|
-
toggleTooltip:
|
|
1202
|
-
toggleZoom:
|
|
1203
|
-
toggleAnnotator:
|
|
1204
|
-
toggleFullscreen:
|
|
1205
|
-
resetZoom:
|
|
1206
|
-
copyAlt:
|
|
1204
|
+
getData: Dr,
|
|
1205
|
+
getImage: Zr,
|
|
1206
|
+
generateCsv: Tr,
|
|
1207
|
+
generateImage: Sn,
|
|
1208
|
+
generateSvg: ai,
|
|
1209
|
+
generatePdf: xn,
|
|
1210
|
+
hideSeries: xr,
|
|
1211
|
+
showSeries: br,
|
|
1212
|
+
toggleTable: Or,
|
|
1213
|
+
toggleTooltip: kr,
|
|
1214
|
+
toggleZoom: Ar,
|
|
1215
|
+
toggleAnnotator: Mr,
|
|
1216
|
+
toggleFullscreen: ar,
|
|
1217
|
+
resetZoom: Ir,
|
|
1218
|
+
copyAlt: yi
|
|
1207
1219
|
}), (e, t) => (x(), g("div", {
|
|
1208
1220
|
ref_key: "treemapChart",
|
|
1209
1221
|
ref: A,
|
|
@@ -1217,11 +1229,11 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1217
1229
|
id: `chart-instructions-${O.value}`,
|
|
1218
1230
|
class: "sr-only"
|
|
1219
1231
|
}, [_("p", null, Ue(N.value.a11y.translations.keyboardNavigation), 1)], 8, ut),
|
|
1220
|
-
|
|
1232
|
+
wi.value?.rows?.length ? (x(), m(we, {
|
|
1221
1233
|
key: 0,
|
|
1222
1234
|
uid: O.value,
|
|
1223
|
-
head:
|
|
1224
|
-
body:
|
|
1235
|
+
head: wi.value.headers,
|
|
1236
|
+
body: wi.value.rows,
|
|
1225
1237
|
notice: N.value.a11y.translations.tableAvailable,
|
|
1226
1238
|
caption: N.value.a11y.translations.tableCaption
|
|
1227
1239
|
}, null, 8, [
|
|
@@ -1236,10 +1248,10 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1236
1248
|
svgRef: T(hn),
|
|
1237
1249
|
backgroundColor: z.value.backgroundColor,
|
|
1238
1250
|
color: z.value.color,
|
|
1239
|
-
active:
|
|
1251
|
+
active: jr.value,
|
|
1240
1252
|
isCursorPointer: B.value,
|
|
1241
1253
|
palette: P.value.annotatorPalette,
|
|
1242
|
-
onClose:
|
|
1254
|
+
onClose: Mr
|
|
1243
1255
|
}, {
|
|
1244
1256
|
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1245
1257
|
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", y(v({ color: t })), void 0, !0)]),
|
|
@@ -1256,7 +1268,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1256
1268
|
"isCursorPointer",
|
|
1257
1269
|
"palette"
|
|
1258
1270
|
])) : h("", !0),
|
|
1259
|
-
|
|
1271
|
+
Cn.value ? (x(), g("div", {
|
|
1260
1272
|
key: 2,
|
|
1261
1273
|
ref_key: "noTitle",
|
|
1262
1274
|
ref: qt,
|
|
@@ -1288,8 +1300,8 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1288
1300
|
key: `user_option_${Ut.value}`,
|
|
1289
1301
|
backgroundColor: z.value.backgroundColor,
|
|
1290
1302
|
color: z.value.color,
|
|
1291
|
-
isPrinting: T(
|
|
1292
|
-
isImaging: T(
|
|
1303
|
+
isPrinting: T(yn),
|
|
1304
|
+
isImaging: T(bn),
|
|
1293
1305
|
uid: O.value,
|
|
1294
1306
|
hasTooltip: P.value.buttons.tooltip && F.value.show,
|
|
1295
1307
|
hasPdf: P.value.buttons.pdf,
|
|
@@ -1305,23 +1317,23 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1305
1317
|
chartElement: A.value,
|
|
1306
1318
|
position: P.value.position,
|
|
1307
1319
|
hasAnnotator: P.value.buttons.annotator,
|
|
1308
|
-
isAnnotation:
|
|
1320
|
+
isAnnotation: jr.value,
|
|
1309
1321
|
callbacks: P.value.callbacks,
|
|
1310
1322
|
printScale: P.value.print.scale,
|
|
1311
1323
|
tableDialog: N.value.table.useDialog,
|
|
1312
1324
|
isCursorPointer: B.value,
|
|
1313
1325
|
hasZoom: P.value.buttons.zoom,
|
|
1314
1326
|
isZoom: V.value.showZoom,
|
|
1315
|
-
onToggleFullscreen:
|
|
1316
|
-
onGeneratePdf: T(
|
|
1317
|
-
onGenerateCsv:
|
|
1318
|
-
onGenerateImage: T(
|
|
1319
|
-
onGenerateSvg: T(
|
|
1320
|
-
onToggleTable:
|
|
1321
|
-
onToggleTooltip:
|
|
1322
|
-
onToggleAnnotator:
|
|
1323
|
-
onToggleZoom:
|
|
1324
|
-
onCopyAlt:
|
|
1327
|
+
onToggleFullscreen: ar,
|
|
1328
|
+
onGeneratePdf: T(xn),
|
|
1329
|
+
onGenerateCsv: Tr,
|
|
1330
|
+
onGenerateImage: T(oi),
|
|
1331
|
+
onGenerateSvg: T(ai),
|
|
1332
|
+
onToggleTable: Or,
|
|
1333
|
+
onToggleTooltip: kr,
|
|
1334
|
+
onToggleAnnotator: Mr,
|
|
1335
|
+
onToggleZoom: Ar,
|
|
1336
|
+
onCopyAlt: yi,
|
|
1325
1337
|
style: b({ visibility: T(mn) ? T(fn) ? "visible" : "hidden" : "visible" })
|
|
1326
1338
|
}, Me({ _: 2 }, [
|
|
1327
1339
|
e.$slots.menuIcon ? {
|
|
@@ -1412,24 +1424,24 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1412
1424
|
role: "button",
|
|
1413
1425
|
tabindex: r < X.value.length - 1 ? 0 : void 0,
|
|
1414
1426
|
key: n.id || "root",
|
|
1415
|
-
onClick: (e) => r === X.value.length - 1 ? () => {} :
|
|
1416
|
-
onKeydown: [Je(Ye((e) => r === X.value.length - 1 ? void 0 :
|
|
1427
|
+
onClick: (e) => r === X.value.length - 1 ? () => {} : fr(n.node),
|
|
1428
|
+
onKeydown: [Je(Ye((e) => r === X.value.length - 1 ? void 0 : fr(n.node), ["prevent"]), ["enter"]), Je(Ye((e) => r === X.value.length - 1 ? void 0 : fr(n.node), ["prevent"]), ["space"])],
|
|
1417
1429
|
class: "vue-ui-treemap-crumb",
|
|
1418
1430
|
"data-last-crumb": r === X.value.length - 1,
|
|
1419
1431
|
style: b({
|
|
1420
1432
|
color: z.value.color,
|
|
1421
1433
|
cursor: B.value ? "pointer" : "default"
|
|
1422
1434
|
}),
|
|
1423
|
-
onMouseenter: (e) =>
|
|
1424
|
-
onMouseleave:
|
|
1425
|
-
onFocus: (e) =>
|
|
1426
|
-
onBlur:
|
|
1435
|
+
onMouseenter: (e) => Yr(r),
|
|
1436
|
+
onMouseleave: Xr,
|
|
1437
|
+
onFocus: (e) => Yr(r),
|
|
1438
|
+
onBlur: Xr
|
|
1427
1439
|
}, [_("span", pt, [_("span", mt, [C(e.$slots, "breadcrumb-label", Ie({ ref_for: !0 }, {
|
|
1428
1440
|
crumb: n,
|
|
1429
1441
|
isRoot: r === 0,
|
|
1430
|
-
isFocus:
|
|
1442
|
+
isFocus: Jr.value === r
|
|
1431
1443
|
}), () => [r === 0 ? (x(), g("div", ht, [Pe(xe, {
|
|
1432
|
-
name:
|
|
1444
|
+
name: Jr.value === 0 ? "homeFilled" : "home",
|
|
1433
1445
|
stroke: z.value.color
|
|
1434
1446
|
}, null, 8, ["name", "stroke"])])) : (x(), g(Ae, { key: 1 }, [Ne(Ue(n.label), 1)], 64))], !0)]), r < X.value.length - 1 ? (x(), g("span", gt, [C(e.$slots, "breadcrumb-arrow", {}, () => [t[5] ||= Ne(" › ", -1)], !0)])) : h("", !0)])], 44, ft))), 128))], 512)) : h("", !0),
|
|
1435
1447
|
_("div", _t, [
|
|
@@ -1441,22 +1453,22 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1441
1453
|
class: Re({
|
|
1442
1454
|
"vue-data-ui-fullscreen--on": Ht.value,
|
|
1443
1455
|
"vue-data-ui-fulscreen--off": !Ht.value,
|
|
1444
|
-
"vue-data-ui-zoom-plus": !
|
|
1445
|
-
"vue-data-ui-zoom-minus":
|
|
1456
|
+
"vue-data-ui-zoom-plus": !sr.value,
|
|
1457
|
+
"vue-data-ui-zoom-minus": sr.value,
|
|
1446
1458
|
"vue-data-ui-no-transition": !T(sn),
|
|
1447
1459
|
loading: T(ln)
|
|
1448
1460
|
}),
|
|
1449
1461
|
viewBox: `${T($).x} ${T($).y} ${T($).width <= 0 ? 10 : T($).width} ${T($).height <= 0 ? 10 : T($).height}`,
|
|
1450
|
-
style: b(`max-width:100%; overflow:${
|
|
1462
|
+
style: b(`max-width:100%; overflow:${Ur.value ? "hidden" : "visible"}; background:transparent;color:${z.value.color}`),
|
|
1451
1463
|
tabindex: "0",
|
|
1452
|
-
onFocus:
|
|
1453
|
-
onBlur:
|
|
1454
|
-
onKeydown:
|
|
1455
|
-
onPointerdown:
|
|
1456
|
-
onPointermove:
|
|
1457
|
-
onPointerup:
|
|
1458
|
-
onPointercancel:
|
|
1459
|
-
onPointerleave:
|
|
1464
|
+
onFocus: bi,
|
|
1465
|
+
onBlur: xi,
|
|
1466
|
+
onKeydown: Si,
|
|
1467
|
+
onPointerdown: Wr,
|
|
1468
|
+
onPointermove: Gr,
|
|
1469
|
+
onPointerup: Kr,
|
|
1470
|
+
onPointercancel: Kr,
|
|
1471
|
+
onPointerleave: Kr
|
|
1460
1472
|
}, [
|
|
1461
1473
|
Pe(T(rt)),
|
|
1462
1474
|
(x(!0), g(Ae, null, Ve(G.value, (e, t) => (x(), g("g", { key: `tgrad_${e.id}` }, [R.value.rects.gradient.show ? (x(), g("defs", yt, [Pe(Se, {
|
|
@@ -1479,17 +1491,17 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1479
1491
|
y: e.y0,
|
|
1480
1492
|
height: K(e),
|
|
1481
1493
|
width: q(e),
|
|
1482
|
-
fill: zt.value ? e.color ?? z.value.backgroundColor : R.value.rects.gradient.show ?
|
|
1483
|
-
rx: T(
|
|
1494
|
+
fill: zt.value ? e.color ?? z.value.backgroundColor : R.value.rects.gradient.show ? gr.value ? z.value.backgroundColor : `url(#tgrad_${e.id})` : e.color ?? z.value.backgroundColor,
|
|
1495
|
+
rx: T(zr) > 1 ? vi(e) * Br.value : vi(e),
|
|
1484
1496
|
stroke: Z.value && Z.value.id === e.id ? R.value.rects.selected.stroke : R.value.rects.stroke,
|
|
1485
|
-
"stroke-width":
|
|
1486
|
-
onClick: Ye((n) =>
|
|
1487
|
-
onMouseenter: () =>
|
|
1497
|
+
"stroke-width": Xn(e),
|
|
1498
|
+
onClick: Ye((n) => qr(e, t), ["stop"]),
|
|
1499
|
+
onMouseenter: () => wr({
|
|
1488
1500
|
datapoint: e,
|
|
1489
1501
|
seriesIndex: t,
|
|
1490
1502
|
triggerMode: "pointer"
|
|
1491
1503
|
}),
|
|
1492
|
-
onMouseleave: (n) =>
|
|
1504
|
+
onMouseleave: (n) => Sr({
|
|
1493
1505
|
datapoint: e,
|
|
1494
1506
|
seriesIndex: t
|
|
1495
1507
|
}),
|
|
@@ -1497,10 +1509,10 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1497
1509
|
class: Re([
|
|
1498
1510
|
"vue-ui-treemap-rect",
|
|
1499
1511
|
T(sn) ? "vue-data-ui-transition" : "",
|
|
1500
|
-
|
|
1512
|
+
pr(e) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"
|
|
1501
1513
|
])
|
|
1502
1514
|
}, null, 46, bt)]))), 128)),
|
|
1503
|
-
(x(!0), g(Ae, null, Ve(
|
|
1515
|
+
(x(!0), g(Ae, null, Ve(mi.value, (e) => (x(), g("g", {
|
|
1504
1516
|
key: e.key,
|
|
1505
1517
|
style: { "pointer-events": "none" }
|
|
1506
1518
|
}, [_("defs", null, [_("clipPath", {
|
|
@@ -1514,8 +1526,8 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1514
1526
|
height: e.clipHeight
|
|
1515
1527
|
}, null, 10, St)], 8, xt)]), _("g", { "clip-path": `url(#${e.clipId})` }, [_("g", { transform: e.translate }, [_("g", {
|
|
1516
1528
|
class: Re({ "vue-data-ui-transition": T(sn) }),
|
|
1517
|
-
transform:
|
|
1518
|
-
}, [(x(!0), g(Ae, null, Ve(e.lines, (t) => (x(), g(Ae, { key: t.key }, [t.text && (e.alwaysShowAllLines ||
|
|
1529
|
+
transform: di(e)
|
|
1530
|
+
}, [(x(!0), g(Ae, null, Ve(e.lines, (t) => (x(), g(Ae, { key: t.key }, [t.text && (e.alwaysShowAllLines || Vr.value <= t.maxZoomFactor) ? (x(), g("text", {
|
|
1519
1531
|
key: 0,
|
|
1520
1532
|
x: t.x,
|
|
1521
1533
|
y: t.y,
|
|
@@ -1544,22 +1556,22 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1544
1556
|
width: q(t),
|
|
1545
1557
|
isSelected: !Z.value || Z.value.id === t.id
|
|
1546
1558
|
},
|
|
1547
|
-
shouldShow:
|
|
1548
|
-
fontSize:
|
|
1549
|
-
isZoom:
|
|
1559
|
+
shouldShow: qn(t) || sr.value,
|
|
1560
|
+
fontSize: ir(t, n),
|
|
1561
|
+
isZoom: sr.value,
|
|
1550
1562
|
textColor: T(re)(t.color)
|
|
1551
1563
|
}), void 0, !0, 0)])], 8, Ot))]))), 128))])) : h("", !0)
|
|
1552
1564
|
]),
|
|
1553
1565
|
C(e.$slots, "svg", y(v({
|
|
1554
1566
|
svg: H.value,
|
|
1555
|
-
isZoom:
|
|
1567
|
+
isZoom: sr.value,
|
|
1556
1568
|
rect: Z.value,
|
|
1557
1569
|
config: N.value,
|
|
1558
|
-
isPrintingImg: T(
|
|
1559
|
-
isPrintingSvg: T(
|
|
1570
|
+
isPrintingImg: T(yn) || T(bn) || T(ri),
|
|
1571
|
+
isPrintingSvg: T(ii)
|
|
1560
1572
|
})), void 0, !0)
|
|
1561
1573
|
], 46, vt)),
|
|
1562
|
-
T(
|
|
1574
|
+
T(Lr) ? (x(), g("div", At, [C(e.$slots, "reset-action", { reset: T(Ir) }, () => [_("button", {
|
|
1563
1575
|
"data-cy-reset": "",
|
|
1564
1576
|
tabindex: "0",
|
|
1565
1577
|
role: "button",
|
|
@@ -1568,7 +1580,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1568
1580
|
background: z.value.backgroundColor,
|
|
1569
1581
|
cursor: B.value ? "pointer" : "default"
|
|
1570
1582
|
}),
|
|
1571
|
-
onClick: t[0] ||= (e) => T(
|
|
1583
|
+
onClick: t[0] ||= (e) => T(Ir)(!0)
|
|
1572
1584
|
}, [Pe(xe, {
|
|
1573
1585
|
name: "refresh",
|
|
1574
1586
|
stroke: z.value.color
|
|
@@ -1578,7 +1590,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1578
1590
|
isVisible: on.value
|
|
1579
1591
|
})), void 0, !0)])) : h("", !0)
|
|
1580
1592
|
]),
|
|
1581
|
-
e.$slots.watermark ? (x(), g("div", Mt, [C(e.$slots, "watermark", y(v({ isPrinting: T(
|
|
1593
|
+
e.$slots.watermark ? (x(), g("div", Mt, [C(e.$slots, "watermark", y(v({ isPrinting: T(yn) || T(bn) || T(ri) || T(ii) })), void 0, !0)])) : h("", !0),
|
|
1582
1594
|
_("div", { id: `legend-bottom-${O.value}` }, null, 8, Nt),
|
|
1583
1595
|
Qt.value && (I.value.show || e.$slots.legend) ? (x(), m(je, {
|
|
1584
1596
|
key: 7,
|
|
@@ -1586,27 +1598,27 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1586
1598
|
}, [_("div", {
|
|
1587
1599
|
ref_key: "chartLegend",
|
|
1588
1600
|
ref: Gt
|
|
1589
|
-
}, [C(e.$slots, "legend", { legend:
|
|
1601
|
+
}, [C(e.$slots, "legend", { legend: mr.value }, () => [I.value.show ? (x(), m(De, {
|
|
1590
1602
|
key: `legend_${Xt.value}`,
|
|
1591
|
-
legendSet:
|
|
1592
|
-
config:
|
|
1603
|
+
legendSet: mr.value,
|
|
1604
|
+
config: hr.value,
|
|
1593
1605
|
id: `treemap_legend_${O.value}`,
|
|
1594
1606
|
isCursorPointer: B.value,
|
|
1595
|
-
onClickMarker: t[1] ||= ({ legend: e }) =>
|
|
1607
|
+
onClickMarker: t[1] ||= ({ legend: e }) => vr(e)
|
|
1596
1608
|
}, {
|
|
1597
1609
|
item: E(({ legend: e, index: t }) => [T(ln) ? h("", !0) : (x(), g("div", {
|
|
1598
1610
|
key: 0,
|
|
1599
|
-
onClick: (t) =>
|
|
1611
|
+
onClick: (t) => vr(e),
|
|
1600
1612
|
style: b(`opacity:${k.value.includes(e.id) ? .5 : 1}`)
|
|
1601
1613
|
}, Ue(e.display), 13, Pt))]),
|
|
1602
|
-
legendToggle: E(() => [
|
|
1614
|
+
legendToggle: E(() => [mr.value.length > 2 && I.value.selectAllToggle.show && !T(ln) ? (x(), m(Ce, {
|
|
1603
1615
|
key: 0,
|
|
1604
1616
|
backgroundColor: I.value.selectAllToggle.backgroundColor,
|
|
1605
1617
|
color: I.value.selectAllToggle.color,
|
|
1606
1618
|
fontSize: I.value.fontSize,
|
|
1607
1619
|
checked: k.value.length > 0,
|
|
1608
1620
|
isCursorPointer: B.value,
|
|
1609
|
-
onToggle:
|
|
1621
|
+
onToggle: _r
|
|
1610
1622
|
}, null, 8, [
|
|
1611
1623
|
"backgroundColor",
|
|
1612
1624
|
"color",
|
|
@@ -1651,9 +1663,9 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1651
1663
|
isA11yMode: an.value === "keyboard",
|
|
1652
1664
|
a11yPosition: rn.value
|
|
1653
1665
|
}, {
|
|
1654
|
-
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", y(v({ ...
|
|
1655
|
-
tooltip: E(() => [C(e.$slots, "tooltip", y(v({ ...
|
|
1656
|
-
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", y(v({ ...
|
|
1666
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", y(v({ ...Cr.value })), void 0, !0)]),
|
|
1667
|
+
tooltip: E(() => [C(e.$slots, "tooltip", y(v({ ...Cr.value })), void 0, !0)]),
|
|
1668
|
+
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", y(v({ ...Cr.value })), void 0, !0)]),
|
|
1657
1669
|
_: 3
|
|
1658
1670
|
}, 8, [
|
|
1659
1671
|
"teleportTo",
|
|
@@ -1679,21 +1691,21 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1679
1691
|
"isA11yMode",
|
|
1680
1692
|
"a11yPosition"
|
|
1681
1693
|
]),
|
|
1682
|
-
Rt.value && P.value.buttons.table ? (x(), m(He(
|
|
1694
|
+
Rt.value && P.value.buttons.table ? (x(), m(He(Qr.value.component), Ie({ key: 9 }, Qr.value.props, {
|
|
1683
1695
|
ref_key: "tableUnit",
|
|
1684
1696
|
ref: $t,
|
|
1685
|
-
onClose:
|
|
1697
|
+
onClose: $r
|
|
1686
1698
|
}), Me({
|
|
1687
1699
|
content: E(() => [(x(), m(T(Ze), {
|
|
1688
1700
|
key: `table_${Yt.value}`,
|
|
1689
|
-
colNames:
|
|
1690
|
-
head:
|
|
1691
|
-
body:
|
|
1692
|
-
config:
|
|
1693
|
-
title: N.value.table.useDialog ? "" :
|
|
1701
|
+
colNames: Er.value.colNames,
|
|
1702
|
+
head: Er.value.head,
|
|
1703
|
+
body: Er.value.body,
|
|
1704
|
+
config: Er.value.config,
|
|
1705
|
+
title: N.value.table.useDialog ? "" : Qr.value.title,
|
|
1694
1706
|
withCloseButton: !N.value.table.useDialog,
|
|
1695
1707
|
isCursorPointer: B.value,
|
|
1696
|
-
onClose:
|
|
1708
|
+
onClose: $r
|
|
1697
1709
|
}, {
|
|
1698
1710
|
th: E(({ th: e }) => [_("div", Ft, Ue(e), 1)]),
|
|
1699
1711
|
td: E(({ td: e }) => [Ne(Ue(e.name || e), 1)]),
|
|
@@ -1710,24 +1722,24 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1710
1722
|
_: 2
|
|
1711
1723
|
}, [N.value.table.useDialog ? {
|
|
1712
1724
|
name: "title",
|
|
1713
|
-
fn: E(() => [Ne(Ue(
|
|
1725
|
+
fn: E(() => [Ne(Ue(Qr.value.title), 1)]),
|
|
1714
1726
|
key: "0"
|
|
1715
1727
|
} : void 0, N.value.table.useDialog ? {
|
|
1716
1728
|
name: "actions",
|
|
1717
1729
|
fn: E(() => [_("button", {
|
|
1718
1730
|
tabindex: "0",
|
|
1719
1731
|
class: "vue-ui-user-options-button",
|
|
1720
|
-
onClick: t[2] ||= (e) =>
|
|
1732
|
+
onClick: t[2] ||= (e) => Tr(P.value.callbacks.csv),
|
|
1721
1733
|
style: b({ cursor: B.value ? "pointer" : "default" })
|
|
1722
1734
|
}, [Pe(xe, {
|
|
1723
1735
|
name: "fileCsv",
|
|
1724
|
-
stroke:
|
|
1736
|
+
stroke: Qr.value.props.color
|
|
1725
1737
|
}, null, 8, ["stroke"])], 4)]),
|
|
1726
1738
|
key: "1"
|
|
1727
1739
|
} : void 0]), 1040)) : h("", !0),
|
|
1728
1740
|
C(e.$slots, "skeleton", {}, () => [T(ln) ? (x(), m(de, { key: 0 })) : h("", !0)], !0)
|
|
1729
1741
|
], 46, lt));
|
|
1730
1742
|
}
|
|
1731
|
-
}, [["__scopeId", "data-v-
|
|
1743
|
+
}, [["__scopeId", "data-v-34f9e8dd"]]);
|
|
1732
1744
|
//#endregion
|
|
1733
1745
|
export { ct as n, Lt as t };
|