vue-data-ui 3.22.7 → 3.22.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-_-BX7be3.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-BHHNsVVP.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-pcgwlYr2.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-16uF1ayB.js} +2 -2
- package/dist/components/arrow.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-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-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/{dom-to-png-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-CLn1VXJ9.js} +20 -20
- 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 +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +1757 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-CfJXeAOE.js} +67 -67
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/vue-ui-chestnut-RfWMGUD-.js +2010 -0
- package/dist/vue-ui-chord-Db1O_diJ.js +1391 -0
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-DL3zq0F2.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BuTd6dt4.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-C3Rt6j-I.js} +592 -592
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-DY46UPF_.js} +442 -442
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-wK7vUB0x.js} +238 -238
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-BTUNfWb7.js} +119 -119
- package/dist/{vue-ui-funnel-BEZUEuuh.js → vue-ui-funnel-BhoHzyHa.js} +162 -162
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-DJ2uNYcN.js} +342 -342
- package/dist/{vue-ui-gauge-B1ljgfE1.js → vue-ui-gauge-Cf4NqvrO.js} +55 -55
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-ovHu_Sc9.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-DDxEj-qe.js} +62 -62
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-Npqnvb1r.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-C3Kjy2tc.js} +371 -371
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-DlVh6hwx.js} +45 -45
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-ByVg-NBs.js} +58 -58
- package/dist/vue-ui-quick-chart-WMzSJxGZ.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-DE-me6OC.js} +79 -79
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-L7-dTqet.js} +167 -167
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-D4NnZ1mg.js} +16 -16
- package/dist/{vue-ui-spark-trend-DfZeLiWA.js → vue-ui-spark-trend-C38ysZ-c.js} +99 -99
- package/dist/{vue-ui-sparkbar-Cl1e49sw.js → vue-ui-sparkbar-B03ndcUe.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-DgPc4vPT.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-ny_liYa6.js → vue-ui-sparkhistogram-D02ff7ZI.js} +72 -72
- package/dist/vue-ui-sparkline-DlTfNQj8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DrmiWFlw.js} +110 -110
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-BVdApDnY.js} +82 -82
- package/dist/{vue-ui-stackline-CdvVPQUM.js → vue-ui-stackline-QzQQ7lTy.js} +636 -636
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-Q3brrivC.js} +62 -62
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/vue-ui-table-sparkline-Q6BHPKUn.js +712 -0
- package/dist/{vue-ui-thermometer-BUrtIfuo.js → vue-ui-thermometer-Bg0RR6m4.js} +115 -115
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-BdzKpoRj.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-DWb69ofh.js} +13 -13
- package/dist/{vue-ui-treemap-LMWiicop.js → vue-ui-treemap-uUz07Prw.js} +457 -457
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DTfvWYA7.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-DqfljAqH.js} +27 -27
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-Bvgy2do1.js} +714 -714
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-D5KsuNR2.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-BfgeE3TW.js} +58 -58
- package/package.json +1 -1
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +0 -2010
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-circle-pack-Cq4lkmee.js +0 -1608
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rating-Bek8Tgr-.js +0 -343
- package/dist/vue-ui-ridgeline-DIODGiu8.js +0 -1622
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-sparkline-BNxdO-Bx.js +0 -1547
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { c as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, Et as n, G as r, J as i, Kt as a, Mt as o, S as s, T as c, Wt as l, Y as u, Z as d, b as f, i as ee, kt as te, ot as ne, r as re, t as ie, yt as ae } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as oe } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as se } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
+
import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as ue } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as de } from "./useNestedProp-DIuuzG1r.js";
|
|
8
|
+
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as pe } from "./img-DnP3eXuv.js";
|
|
10
|
+
import { n as me } from "./Title-CcNiYzEo.js";
|
|
11
|
+
import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { c as ge } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as _e } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as ve } from "./BaseIcon-C2qlyHc7.js";
|
|
15
|
+
import { t as ye } from "./BaseLegendToggle-DtQ8vyfr.js";
|
|
16
|
+
import { t as be } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as Ce } from "./Legend-ROt6ugzW.js";
|
|
20
|
+
import { t as we } from "./usePrefersMotion-BC-CsqR1.js";
|
|
21
|
+
import { t as Te } from "./usePanZoom-CYU3B4T3.js";
|
|
22
|
+
import { t as Ee } from "./vue_ui_treemap-DoEtkRN6.js";
|
|
23
|
+
import { Fragment as p, Teleport as De, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as Oe, createTextVNode as ke, createVNode as Ae, defineAsyncComponent as je, guardReactiveProps as y, mergeProps as Me, nextTick as Ne, normalizeClass as Pe, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Fe, onMounted as Ie, openBlock as S, ref as C, renderList as Le, renderSlot as w, resolveDynamicComponent as Re, shallowRef as T, toDisplayString as ze, toRefs as Be, unref as E, useCssVars as Ve, useSlots as He, watch as D, withCtx as O, withKeys as Ue, withModifiers as We } from "vue";
|
|
24
24
|
//#region src/treemap.js
|
|
25
|
-
function
|
|
25
|
+
function Ge(e, t) {
|
|
26
26
|
let n = e.length;
|
|
27
27
|
if (n === 0) throw Error(`Max aspect ratio cannot be computed: ${e} is an empty array`);
|
|
28
28
|
{
|
|
@@ -34,7 +34,7 @@ function We(e, t) {
|
|
|
34
34
|
return Math.max(t ** 2 * i / a ** 2, a ** 2 / (t ** 2 * r));
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Ke(e) {
|
|
38
38
|
let { xOffset: t, yOffset: n, width: r, height: i } = e;
|
|
39
39
|
return {
|
|
40
40
|
x0: t,
|
|
@@ -43,14 +43,14 @@ function Ge(e) {
|
|
|
43
43
|
y1: n + i
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function qe(e, t, n) {
|
|
47
47
|
if (e.length === 0) return !0;
|
|
48
48
|
{
|
|
49
49
|
let r = e.concat(t);
|
|
50
|
-
return
|
|
50
|
+
return Ge(e, n) >= Ge(r, n);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Je(e) {
|
|
54
54
|
let t = [], n = e.length;
|
|
55
55
|
for (let r = 0; r < n; r += 1) {
|
|
56
56
|
let n = e[r], i = n.length;
|
|
@@ -58,17 +58,17 @@ function qe(e) {
|
|
|
58
58
|
}
|
|
59
59
|
return t;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
61
|
+
function Ye(e, t) {
|
|
62
|
+
return nt({
|
|
63
63
|
...t,
|
|
64
64
|
children: e
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Xe(e) {
|
|
68
68
|
return (e.x1 - e.x0) * (e.y1 - e.y0);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
let { width: n, height: r, xOffset: i, yOffset: a } =
|
|
70
|
+
function Ze(e, t) {
|
|
71
|
+
let { width: n, height: r, xOffset: i, yOffset: a } = et(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 = [];
|
|
72
72
|
if (n >= r) {
|
|
73
73
|
for (let t = 0; t < o; t += 1) {
|
|
74
74
|
let n = e[t], r = d + n.normalizedValue / c, i = {
|
|
@@ -93,16 +93,16 @@ function Xe(e, t) {
|
|
|
93
93
|
return f;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
let t =
|
|
96
|
+
function Qe(e) {
|
|
97
|
+
let t = et(e), n = t.width, r = t.height;
|
|
98
98
|
return Math.min(n, r);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function $e(e, t) {
|
|
101
101
|
let n = e.length, r = t / e.map((e) => e.value ?? 0).reduce((e, t) => e + t, 0), i = [], a, o;
|
|
102
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
103
|
return i;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function et(e) {
|
|
106
106
|
let { x0: t, y0: n, x1: r, y1: i } = e;
|
|
107
107
|
return {
|
|
108
108
|
xOffset: t,
|
|
@@ -111,39 +111,39 @@ function $e(e) {
|
|
|
111
111
|
height: i - n
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function tt(e, t, n, r) {
|
|
115
115
|
let i = e, a = t, o = n, s = r;
|
|
116
116
|
for (;;) {
|
|
117
117
|
let e = i.length;
|
|
118
118
|
if (e === 0) {
|
|
119
|
-
let e =
|
|
119
|
+
let e = Ze(a, o);
|
|
120
120
|
return s.concat(e);
|
|
121
121
|
}
|
|
122
|
-
let t =
|
|
123
|
-
if (
|
|
122
|
+
let t = Qe(o), n = i[0], r = i.slice(1, e);
|
|
123
|
+
if (qe(a, n, t)) {
|
|
124
124
|
let e = a.concat(n);
|
|
125
125
|
i = r, a = e, o = o, s = s;
|
|
126
126
|
} else {
|
|
127
127
|
let e = a.length, t = 0;
|
|
128
128
|
for (let n = 0; n < e; n += 1) t += a[n].normalizedValue;
|
|
129
|
-
let n =
|
|
129
|
+
let n = k(o, t), r = Ze(a, o), c = s.concat(r);
|
|
130
130
|
i = i, a = [], o = n, s = c;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function nt(e) {
|
|
135
135
|
if (e.children === void 0 || !e.children.length) return [e];
|
|
136
136
|
{
|
|
137
|
-
let t =
|
|
138
|
-
for (let e = 0; e < n; e += 1) r.push(
|
|
139
|
-
return
|
|
137
|
+
let t = tt($e(e.children, Xe(e)), [], e, []), n = t.length, r = [];
|
|
138
|
+
for (let e = 0; e < n; e += 1) r.push(nt(t[e]));
|
|
139
|
+
return Je(r);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
let { width: n, height: r, xOffset: i, yOffset: a } =
|
|
142
|
+
function k(e, t) {
|
|
143
|
+
let { width: n, height: r, xOffset: i, yOffset: a } = et(e);
|
|
144
144
|
if (n >= r) {
|
|
145
145
|
let e = t / r, o = n - e;
|
|
146
|
-
return
|
|
146
|
+
return Ke({
|
|
147
147
|
xOffset: i + e,
|
|
148
148
|
yOffset: a,
|
|
149
149
|
width: o,
|
|
@@ -151,7 +151,7 @@ function A(e, t) {
|
|
|
151
151
|
});
|
|
152
152
|
} else {
|
|
153
153
|
let e = t / n, o = r - e;
|
|
154
|
-
return
|
|
154
|
+
return Ke({
|
|
155
155
|
xOffset: i,
|
|
156
156
|
yOffset: a + e,
|
|
157
157
|
width: n,
|
|
@@ -161,7 +161,7 @@ function A(e, t) {
|
|
|
161
161
|
}
|
|
162
162
|
//#endregion
|
|
163
163
|
//#region src/components/vue-ui-treemap.vue
|
|
164
|
-
var
|
|
164
|
+
var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at = ["id"], ot = [
|
|
165
165
|
"tabindex",
|
|
166
166
|
"onClick",
|
|
167
167
|
"onKeydown",
|
|
@@ -234,7 +234,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
234
234
|
}, Dt = {
|
|
235
235
|
key: 6,
|
|
236
236
|
class: "vue-data-ui-watermark"
|
|
237
|
-
}, Ot = ["id"], kt = ["onClick"], At = ["innerHTML"], jt = 4, Mt = /*#__PURE__*/
|
|
237
|
+
}, Ot = ["id"], kt = ["onClick"], At = ["innerHTML"], jt = 4, Mt = /*#__PURE__*/ he({
|
|
238
238
|
__name: "vue-ui-treemap",
|
|
239
239
|
props: {
|
|
240
240
|
config: {
|
|
@@ -255,16 +255,16 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
255
255
|
"selectDatapoint",
|
|
256
256
|
"copyAlt"
|
|
257
257
|
],
|
|
258
|
-
setup(e, { expose:
|
|
259
|
-
|
|
260
|
-
let
|
|
261
|
-
|
|
258
|
+
setup(e, { expose: he, emit: Ge }) {
|
|
259
|
+
Ve((e) => ({ v76935d24: pi.value }));
|
|
260
|
+
let Ke = je(() => import("./DataTable-D9NvewTT.js")), qe = je(() => import("./PenAndPaper-pcgwlYr2.js").then((e) => e.t)), Je = je(() => import("./vue-ui-accordion-YyosvEPo.js").then((e) => e.n)), Xe = je(() => import("./Tooltip-CxOrWlFy.js")), Ze = je(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), Qe = je(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), $e = je(() => import("./BaseDraggableDialog-DcfGlH8A.js").then((e) => e.n)), { vue_ui_treemap: et } = oe(), { isThemeValid: tt, warnInvalidTheme: nt } = fe(), k = e, A = Ge, Mt = He(), Nt = we();
|
|
261
|
+
Ie(() => {
|
|
262
262
|
Mt["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
263
263
|
});
|
|
264
|
-
let Pt = m(() => !!
|
|
264
|
+
let Pt = m(() => !!k.dataset && k.dataset.length), Ft = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), j = C(r()), It = C(!1), Lt = C(""), M = C(!1), Rt = C(0), N = C([]), P = T(null), zt = T(null), Bt = T(null), Vt = T(null), Ht = T(null), Ut = C(0), Wt = C(0), Gt = C(0), F = C([]), Kt = C(null), qt = C(!1), Jt = C(null), Yt = C(null), Xt = C(null), Zt = C(/* @__PURE__ */ new Map()), Qt = C(!1), $t = C(!1), I = C(null), en = C({
|
|
265
265
|
x: 0,
|
|
266
266
|
y: 0
|
|
267
|
-
}),
|
|
267
|
+
}), tn = C("pointer"), nn = C(!1), L = C(dn()), R = m(() => L.value.userOptions.useCursorPointer), rn = m(() => a({
|
|
268
268
|
defaultConfig: {
|
|
269
269
|
userOptions: { show: !1 },
|
|
270
270
|
style: { chart: {
|
|
@@ -276,12 +276,12 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
276
276
|
legend: { backgroundColor: "transparent" }
|
|
277
277
|
} }
|
|
278
278
|
},
|
|
279
|
-
userConfig:
|
|
280
|
-
})), { loading:
|
|
281
|
-
...
|
|
282
|
-
FINAL_CONFIG:
|
|
279
|
+
userConfig: L.value.skeletonConfig ?? {}
|
|
280
|
+
})), { loading: an, FINAL_DATASET: on, manualLoading: sn } = ce({
|
|
281
|
+
...Be(k),
|
|
282
|
+
FINAL_CONFIG: L,
|
|
283
283
|
prepareConfig: dn,
|
|
284
|
-
skeletonDataset:
|
|
284
|
+
skeletonDataset: k.config?.skeletonDataset ?? [{
|
|
285
285
|
name: "_",
|
|
286
286
|
value: 53,
|
|
287
287
|
color: "#CACACA90",
|
|
@@ -316,64 +316,64 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
316
316
|
}
|
|
317
317
|
]
|
|
318
318
|
}],
|
|
319
|
-
skeletonConfig:
|
|
320
|
-
defaultConfig:
|
|
321
|
-
userConfig:
|
|
319
|
+
skeletonConfig: a({
|
|
320
|
+
defaultConfig: L.value,
|
|
321
|
+
userConfig: rn.value
|
|
322
322
|
})
|
|
323
|
-
}), { userOptionsVisible: cn, setUserOptionsVisibility: ln, keepUserOptionState: un } =
|
|
323
|
+
}), { userOptionsVisible: cn, setUserOptionsVisibility: ln, keepUserOptionState: un } = xe({ config: L.value }), { svgRef: z } = Se({ config: L.value.style.chart.title });
|
|
324
324
|
function dn() {
|
|
325
|
-
let e =
|
|
326
|
-
userConfig:
|
|
327
|
-
defaultConfig:
|
|
325
|
+
let e = de({
|
|
326
|
+
userConfig: k.config,
|
|
327
|
+
defaultConfig: et
|
|
328
328
|
}), t = e.theme;
|
|
329
329
|
if (!t) return e;
|
|
330
|
-
if (!
|
|
331
|
-
let n =
|
|
332
|
-
userConfig:
|
|
330
|
+
if (!tt.value(e)) return nt(e), e;
|
|
331
|
+
let n = de({
|
|
332
|
+
userConfig: Ee[t] || k.config,
|
|
333
333
|
defaultConfig: e
|
|
334
|
-
}), r =
|
|
335
|
-
userConfig:
|
|
334
|
+
}), r = de({
|
|
335
|
+
userConfig: k.config,
|
|
336
336
|
defaultConfig: n
|
|
337
337
|
});
|
|
338
338
|
return {
|
|
339
339
|
...r,
|
|
340
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
340
|
+
customPalette: r.customPalette.length ? r.customPalette : l[t] || o
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
D(() => k.config, (e) => {
|
|
344
|
+
an.value || (L.value = dn()), cn.value = !L.value.userOptions.showOnChartHover, Ut.value += 1, Wt.value += 1, Gt.value += 1, B.value.showTable = L.value.table.show, B.value.showTooltip = L.value.style.chart.tooltip.show, B.value.showZoom = L.value.style.chart.zoom?.show ?? !1;
|
|
345
345
|
}, { deep: !0 });
|
|
346
|
-
let { isPrinting: fn, isImaging: pn, generatePdf: mn, generateImage: hn } =
|
|
346
|
+
let { isPrinting: fn, isImaging: pn, generatePdf: mn, generateImage: hn } = se({
|
|
347
347
|
elementId: `treemap_${j.value}`,
|
|
348
|
-
fileName:
|
|
349
|
-
options:
|
|
350
|
-
}), gn = m(() =>
|
|
351
|
-
showTable:
|
|
352
|
-
showTooltip:
|
|
353
|
-
showZoom:
|
|
348
|
+
fileName: L.value.style.chart.title.text || "vue-ui-treemap",
|
|
349
|
+
options: L.value.userOptions.print
|
|
350
|
+
}), gn = m(() => L.value.userOptions.show && !L.value.style.chart.title.text), _n = m(() => s(L.value.customPalette)), B = C({
|
|
351
|
+
showTable: L.value.table.show,
|
|
352
|
+
showTooltip: L.value.style.chart.tooltip.show,
|
|
353
|
+
showZoom: L.value.style.chart.zoom?.show ?? !1
|
|
354
354
|
});
|
|
355
|
-
|
|
355
|
+
D(L, () => {
|
|
356
356
|
B.value = {
|
|
357
|
-
showTable:
|
|
358
|
-
showTooltip:
|
|
359
|
-
showZoom:
|
|
357
|
+
showTable: L.value.table.show,
|
|
358
|
+
showTooltip: L.value.style.chart.tooltip.show,
|
|
359
|
+
showZoom: L.value.style.chart.zoom?.show ?? !1
|
|
360
360
|
};
|
|
361
361
|
}, { immediate: !0 });
|
|
362
|
-
let vn =
|
|
363
|
-
height:
|
|
364
|
-
width:
|
|
362
|
+
let vn = C({
|
|
363
|
+
height: L.value.style.chart.height,
|
|
364
|
+
width: L.value.style.chart.width
|
|
365
365
|
});
|
|
366
366
|
function yn(e) {
|
|
367
|
-
let t =
|
|
367
|
+
let t = P.value, n = vn.value.height;
|
|
368
368
|
return !t || !n ? e : e * (n / t.getBoundingClientRect().height);
|
|
369
369
|
}
|
|
370
370
|
function bn() {
|
|
371
|
-
if (!
|
|
372
|
-
let e =
|
|
371
|
+
if (!Kt.value || X.value.length <= 1) return 0;
|
|
372
|
+
let e = Kt.value, t = getComputedStyle(e);
|
|
373
373
|
return yn(e.offsetHeight + parseFloat(t.marginTop || "0") + parseFloat(t.marginBottom || "0") + parseFloat(t.paddingTop || "0") + parseFloat(t.paddingBottom || "0"));
|
|
374
374
|
}
|
|
375
375
|
let V = m(() => {
|
|
376
|
-
let e =
|
|
376
|
+
let e = L.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;
|
|
377
377
|
return {
|
|
378
378
|
left: i,
|
|
379
379
|
top: o,
|
|
@@ -385,26 +385,26 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
385
385
|
vbHeight: n - r,
|
|
386
386
|
offsetY: r
|
|
387
387
|
};
|
|
388
|
-
}), H =
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
}, { deep: !0 }),
|
|
392
|
-
|
|
393
|
-
}, { deep: !0 }),
|
|
394
|
-
|
|
388
|
+
}), H = C(u(on.value)), U = C(H.value), xn = T(/* @__PURE__ */ new Map());
|
|
389
|
+
D([H, () => L.value], () => {
|
|
390
|
+
Xt.value = null, Zt.value = /* @__PURE__ */ new Map();
|
|
391
|
+
}, { deep: !0 }), D(() => N.value, () => {
|
|
392
|
+
Xt.value = null, Zt.value = /* @__PURE__ */ new Map(), Tn(), Gt.value += 1, Wt.value += 1;
|
|
393
|
+
}, { deep: !0 }), D([() => vn.value.width, () => vn.value.height], () => {
|
|
394
|
+
Zt.value = /* @__PURE__ */ new Map();
|
|
395
395
|
});
|
|
396
396
|
function Sn(e) {
|
|
397
397
|
Array.isArray(e) && e.forEach((e, t) => {
|
|
398
|
-
e.id ||=
|
|
399
|
-
let n = e.sourceColor || xn.value.get(e.id) || _n.value[t] ||
|
|
400
|
-
n =
|
|
398
|
+
e.id ||= r(), e.sourceColor === void 0 && (e.sourceColor = f(e.color) || null);
|
|
399
|
+
let n = e.sourceColor || xn.value.get(e.id) || _n.value[t] || o[t] || o[t % o.length];
|
|
400
|
+
n = f(n), xn.value.set(e.id, n), e.color = n, Cn(e, n);
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
function Cn(e, t) {
|
|
404
404
|
Array.isArray(e.children) && e.children.forEach((n) => {
|
|
405
|
-
n.id ||=
|
|
406
|
-
let
|
|
407
|
-
n.color =
|
|
405
|
+
n.id ||= r(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = f(n.color) || null);
|
|
406
|
+
let i = n.sourceColor || t;
|
|
407
|
+
n.color = i, Cn(n, i);
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
function wn(e) {
|
|
@@ -413,66 +413,66 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
413
413
|
return t?.id ?? null;
|
|
414
414
|
}
|
|
415
415
|
function Tn() {
|
|
416
|
-
let e = H.value.filter((e) => !
|
|
417
|
-
if (!
|
|
416
|
+
let e = H.value.filter((e) => !N.value.includes(e.id));
|
|
417
|
+
if (!F.value.length) {
|
|
418
418
|
U.value = e;
|
|
419
419
|
return;
|
|
420
420
|
}
|
|
421
|
-
let t =
|
|
421
|
+
let t = F.value[F.value.length - 1], n = Y(t);
|
|
422
422
|
if (!n) {
|
|
423
|
-
|
|
423
|
+
F.value = [], U.value = e;
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
426
|
let r = wn(n.id);
|
|
427
|
-
if (r &&
|
|
428
|
-
|
|
427
|
+
if (r && N.value.includes(r)) {
|
|
428
|
+
F.value = [], U.value = e;
|
|
429
429
|
return;
|
|
430
430
|
}
|
|
431
431
|
U.value = [n];
|
|
432
432
|
}
|
|
433
|
-
|
|
434
|
-
H.value =
|
|
433
|
+
D(() => on.value, () => {
|
|
434
|
+
H.value = u(on.value), Sn(H.value), Tn(), Gt.value += 1, Wt.value += 1;
|
|
435
435
|
}, {
|
|
436
436
|
deep: !0,
|
|
437
437
|
immediate: !0,
|
|
438
438
|
flush: "post"
|
|
439
439
|
});
|
|
440
|
-
let W =
|
|
441
|
-
|
|
442
|
-
|
|
440
|
+
let W = T(null), En = T(null);
|
|
441
|
+
Ie(() => {
|
|
442
|
+
qt.value = !0, On();
|
|
443
443
|
});
|
|
444
|
-
let Dn = m(() =>
|
|
444
|
+
let Dn = m(() => L.value.debug);
|
|
445
445
|
function On() {
|
|
446
|
-
if (
|
|
446
|
+
if (te(k.dataset) && t({
|
|
447
447
|
componentName: "VueUiTreemap",
|
|
448
448
|
type: "dataset",
|
|
449
449
|
debug: Dn.value
|
|
450
|
-
}), Sn(H.value),
|
|
451
|
-
let e =
|
|
452
|
-
let { width: e, height: t } =
|
|
453
|
-
chart:
|
|
454
|
-
title:
|
|
455
|
-
legend:
|
|
456
|
-
source:
|
|
457
|
-
noTitle:
|
|
450
|
+
}), Sn(H.value), te(k.dataset) || (sn.value = L.value.loading), L.value.responsive) {
|
|
451
|
+
let e = ge(() => {
|
|
452
|
+
let { width: e, height: t } = _e({
|
|
453
|
+
chart: P.value,
|
|
454
|
+
title: L.value.style.chart.title.text ? zt.value : null,
|
|
455
|
+
legend: L.value.style.chart.legend.show ? Bt.value : null,
|
|
456
|
+
source: Vt.value,
|
|
457
|
+
noTitle: Ht.value
|
|
458
458
|
});
|
|
459
459
|
requestAnimationFrame(() => {
|
|
460
460
|
vn.value.width = e, vn.value.height = t - 12;
|
|
461
461
|
});
|
|
462
462
|
});
|
|
463
|
-
W.value && (En.value && W.value.unobserve(En.value), W.value.disconnect()), W.value = new ResizeObserver(e), En.value =
|
|
463
|
+
W.value && (En.value && W.value.unobserve(En.value), W.value.disconnect()), W.value = new ResizeObserver(e), En.value = P.value.parentNode, W.value.observe(En.value);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
|
|
466
|
+
Fe(() => {
|
|
467
467
|
W.value && (En.value && W.value.unobserve(En.value), W.value.disconnect());
|
|
468
468
|
});
|
|
469
469
|
let kn = m(() => U.value.map((e, t) => ({
|
|
470
470
|
...e,
|
|
471
|
-
color:
|
|
472
|
-
})).filter((e) => !
|
|
471
|
+
color: f(e.color) || _n.value[t] || o[t] || o[t % o.length]
|
|
472
|
+
})).filter((e) => !N.value.includes(e.id))), An = m(() => H.value.filter((e) => !N.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), jn = m({
|
|
473
473
|
get() {
|
|
474
474
|
let e = [...kn.value];
|
|
475
|
-
return
|
|
475
|
+
return L.value.style.chart.layout.sorted && (e = [...kn.value].sort((e, t) => t.value - e.value)), e.map((e) => ({ ...e }));
|
|
476
476
|
},
|
|
477
477
|
set(e) {
|
|
478
478
|
return e;
|
|
@@ -481,9 +481,9 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
481
481
|
function Mn(e, t) {
|
|
482
482
|
return e.value / t;
|
|
483
483
|
}
|
|
484
|
-
function Nn(e, t,
|
|
485
|
-
let
|
|
486
|
-
return
|
|
484
|
+
function Nn(e, t, r) {
|
|
485
|
+
let i = L.value.style.chart.layout.rects.colorRatio - Mn(t, r);
|
|
486
|
+
return n(e, i < 0 ? 0 : i);
|
|
487
487
|
}
|
|
488
488
|
function Pn(e) {
|
|
489
489
|
return Array.isArray(e.children) && e.children.length > 0;
|
|
@@ -498,14 +498,14 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
498
498
|
}
|
|
499
499
|
function In(e, t, n, r, i) {
|
|
500
500
|
return Fn(e).map((e, a) => {
|
|
501
|
-
let
|
|
501
|
+
let s = e.sourceColor || f(e.color) || f(t) || _n.value[a] || o[a] || o[a % o.length], c = e.sourceColor ? e.sourceColor : Nn(s, e, r), l = Mn(e, r), u = i ?? e.parentId ?? e.id, d = Array.isArray(e.children) && e.children.length && e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) || 1;
|
|
502
502
|
return {
|
|
503
503
|
...e,
|
|
504
|
-
color:
|
|
505
|
-
proportion:
|
|
504
|
+
color: c,
|
|
505
|
+
proportion: l,
|
|
506
506
|
parentName: n,
|
|
507
|
-
rootId:
|
|
508
|
-
children: Array.isArray(e.children) && e.children.length ? In(e.children,
|
|
507
|
+
rootId: u,
|
|
508
|
+
children: Array.isArray(e.children) && e.children.length ? In(e.children, s, e.name, d, u) : void 0
|
|
509
509
|
};
|
|
510
510
|
});
|
|
511
511
|
}
|
|
@@ -522,7 +522,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
522
522
|
return zn(e);
|
|
523
523
|
}
|
|
524
524
|
function zn(e) {
|
|
525
|
-
let t = Number(
|
|
525
|
+
let t = Number(L.value.style.chart.layout.labels.hideUnderProportion);
|
|
526
526
|
return !Number.isFinite(t) || t <= 0 ? !0 : e.proportion > t;
|
|
527
527
|
}
|
|
528
528
|
function Bn(e, t, n = 0, r = null) {
|
|
@@ -530,7 +530,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
530
530
|
let i = e.map((e) => {
|
|
531
531
|
let { children: t, ...n } = e;
|
|
532
532
|
return { ...n };
|
|
533
|
-
}), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s =
|
|
533
|
+
}), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s = Ye(i, t), c = [];
|
|
534
534
|
for (let e of s) {
|
|
535
535
|
let t = a.get(e.id) || [], i = o.get(e.id), s = {
|
|
536
536
|
...e,
|
|
@@ -551,16 +551,16 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
551
551
|
let Vn = m(() => {
|
|
552
552
|
let e = U.value.length ? U.value : jn.value, t = e.map((e) => Number(e.value) || 0).reduce((e, t) => e + t, 0) || 1;
|
|
553
553
|
return Bn(e.map((e, n) => {
|
|
554
|
-
let
|
|
554
|
+
let i = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: a, ...s } = e, c = e.sourceColor || f(e.color) || xn.value.get(e.id) || _n.value[n] || o[n] || o[n % o.length], l = e.sourceColor ? e.sourceColor : Nn(c, e, t);
|
|
555
555
|
return {
|
|
556
|
-
...
|
|
557
|
-
id: e.id ||
|
|
556
|
+
...s,
|
|
557
|
+
id: e.id || r(),
|
|
558
558
|
parentId: e.parentId ?? null,
|
|
559
559
|
name: e.name,
|
|
560
560
|
value: e.value,
|
|
561
|
-
color:
|
|
561
|
+
color: l,
|
|
562
562
|
proportion: (Number(e.value) || 0) / t,
|
|
563
|
-
children: Array.isArray(e.children) && e.children.length ? In(e.children,
|
|
563
|
+
children: Array.isArray(e.children) && e.children.length ? In(e.children, c, e.name, i || 1) : void 0
|
|
564
564
|
};
|
|
565
565
|
}), {
|
|
566
566
|
x0: V.value.left,
|
|
@@ -576,7 +576,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
576
576
|
return t - e <= 0 ? 1e-4 : t - e;
|
|
577
577
|
}
|
|
578
578
|
function Hn() {
|
|
579
|
-
let e =
|
|
579
|
+
let e = L.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));
|
|
580
580
|
return {
|
|
581
581
|
lowerBound: r,
|
|
582
582
|
upperBound: Math.max(r, Number.isFinite(n) ? n : r)
|
|
@@ -600,11 +600,11 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
function Gn(e, t) {
|
|
603
|
-
return
|
|
604
|
-
p:
|
|
603
|
+
return ee(L.value.style.chart.layout.labels.formatter, e.value, i({
|
|
604
|
+
p: L.value.style.chart.layout.labels.prefix,
|
|
605
605
|
v: e.value,
|
|
606
|
-
s:
|
|
607
|
-
r:
|
|
606
|
+
s: L.value.style.chart.layout.labels.suffix,
|
|
607
|
+
r: L.value.style.chart.tooltip.roundingValue
|
|
608
608
|
}), {
|
|
609
609
|
datapoint: e,
|
|
610
610
|
seriesIndex: t
|
|
@@ -634,7 +634,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
634
634
|
return l >= u ? l : o;
|
|
635
635
|
}
|
|
636
636
|
function Xn(e) {
|
|
637
|
-
|
|
637
|
+
M.value = e, Rt.value += 1;
|
|
638
638
|
}
|
|
639
639
|
let J = m(() => ({
|
|
640
640
|
x: 0,
|
|
@@ -661,18 +661,18 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
661
661
|
}
|
|
662
662
|
return t;
|
|
663
663
|
}
|
|
664
|
-
let Qn = m(() =>
|
|
664
|
+
let Qn = m(() => F.value.length > 0);
|
|
665
665
|
function $n() {
|
|
666
|
-
U.value = H.value.slice(),
|
|
666
|
+
U.value = H.value.slice(), F.value = [], A("selectDatapoint", void 0);
|
|
667
667
|
}
|
|
668
668
|
function er() {
|
|
669
|
-
return
|
|
669
|
+
return F.value[F.value.length - 1] ?? null;
|
|
670
670
|
}
|
|
671
671
|
function tr(e, t, n) {
|
|
672
|
-
|
|
672
|
+
F.value = [...Zn(e.id), e.id], U.value = [e], L.value.events.datapointClick && L.value.events.datapointClick({
|
|
673
673
|
datapoint: t ?? e,
|
|
674
674
|
seriesIndex: n
|
|
675
|
-
}),
|
|
675
|
+
}), A("selectDatapoint", t ?? e);
|
|
676
676
|
}
|
|
677
677
|
function nr(e, t) {
|
|
678
678
|
let n = er();
|
|
@@ -682,7 +682,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
682
682
|
}
|
|
683
683
|
let r = Y(n);
|
|
684
684
|
if (!r?.parentId) {
|
|
685
|
-
|
|
685
|
+
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
686
686
|
datapoint: e,
|
|
687
687
|
seriesIndex: t
|
|
688
688
|
}), $n();
|
|
@@ -693,10 +693,10 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
693
693
|
$n();
|
|
694
694
|
return;
|
|
695
695
|
}
|
|
696
|
-
|
|
696
|
+
F.value = [...Zn(i.id), i.id], U.value = [i], L.value.events.datapointClick && L.value.events.datapointClick({
|
|
697
697
|
datapoint: e,
|
|
698
698
|
seriesIndex: t
|
|
699
|
-
}),
|
|
699
|
+
}), A("selectDatapoint", e);
|
|
700
700
|
}
|
|
701
701
|
function rr(e, t) {
|
|
702
702
|
if (!e) {
|
|
@@ -720,8 +720,8 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
720
720
|
id: null,
|
|
721
721
|
label: "All"
|
|
722
722
|
}];
|
|
723
|
-
if (
|
|
724
|
-
let t = Y(
|
|
723
|
+
if (F.value.length > 0) {
|
|
724
|
+
let t = Y(F.value[F.value.length - 1]), n = [];
|
|
725
725
|
for (; t;) n.unshift(t), t = t.parentId ? Y(t.parentId) : null;
|
|
726
726
|
for (let t of n) e.push({
|
|
727
727
|
id: t.id,
|
|
@@ -730,89 +730,89 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
732
|
return e;
|
|
733
|
-
}), Z =
|
|
733
|
+
}), Z = T(null), ar = m(() => H.value.map((e, t) => ({
|
|
734
734
|
...e,
|
|
735
|
-
color:
|
|
735
|
+
color: f(e.color) || _n.value[t] || o[t] || o[t % o.length],
|
|
736
736
|
shape: "square"
|
|
737
737
|
})).sort((e, t) => t.value - e.value).map((e, t) => {
|
|
738
738
|
let n = e.value / H.value.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
739
739
|
return {
|
|
740
740
|
...e,
|
|
741
741
|
proportion: n,
|
|
742
|
-
isSegregated:
|
|
742
|
+
isSegregated: N.value.includes(e.id),
|
|
743
743
|
segregate: () => lr(e),
|
|
744
|
-
opacity:
|
|
745
|
-
display: `${e.name}${
|
|
746
|
-
p:
|
|
744
|
+
opacity: N.value.includes(e.id) ? .5 : 1,
|
|
745
|
+
display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${L.value.style.chart.legend.showValue ? ee(L.value.style.chart.layout.labels.formatter, e.value, i({
|
|
746
|
+
p: L.value.style.chart.layout.labels.prefix,
|
|
747
747
|
v: e.value,
|
|
748
|
-
s:
|
|
749
|
-
r:
|
|
750
|
-
}), { datapoint: e }) : ""}${
|
|
748
|
+
s: L.value.style.chart.layout.labels.suffix,
|
|
749
|
+
r: L.value.style.chart.legend.roundingValue
|
|
750
|
+
}), { datapoint: e }) : ""}${L.value.style.chart.legend.showPercentage ? N.value.includes(e.id) ? `${L.value.style.chart.legend.showValue ? " (" : ""}- %${L.value.style.chart.legend.showValue ? ")" : ""}` : `${L.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / An.value) ? "-" : (e.value / An.value * 100).toFixed(L.value.style.chart.legend.roundingPercentage)}%${L.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
751
751
|
};
|
|
752
752
|
})), or = m(() => ({
|
|
753
753
|
cy: "treemap-div-legend",
|
|
754
|
-
backgroundColor:
|
|
755
|
-
color:
|
|
756
|
-
fontSize:
|
|
754
|
+
backgroundColor: L.value.style.chart.legend.backgroundColor,
|
|
755
|
+
color: L.value.style.chart.legend.color,
|
|
756
|
+
fontSize: L.value.style.chart.legend.fontSize,
|
|
757
757
|
paddingBottom: 12,
|
|
758
|
-
fontWeight:
|
|
759
|
-
})), sr = m(() =>
|
|
758
|
+
fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
|
|
759
|
+
})), sr = m(() => N.value.length === ar.value.length);
|
|
760
760
|
function cr() {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
}),
|
|
761
|
+
N.value.length ? N.value = [] : ar.value.forEach((e) => {
|
|
762
|
+
N.value.push(e.id);
|
|
763
|
+
}), A("selectLegend", H.value.filter((e) => !N.value.includes(e.id)));
|
|
764
764
|
}
|
|
765
765
|
function lr(e) {
|
|
766
|
-
Z.value = null,
|
|
766
|
+
Z.value = null, N.value.includes(e.id) ? N.value = N.value.filter((t) => t !== e.id) : N.value.length < k.dataset.length - 1 && N.value.push(e.id), A("selectLegend", H.value.filter((e) => !N.value.includes(e.id)));
|
|
767
767
|
}
|
|
768
768
|
function ur(e) {
|
|
769
|
-
return H.value.length ? H.value.find((t) => t.name === e) || (
|
|
769
|
+
return H.value.length ? H.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiTreemap - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiTreemap - There are no series to show."), null);
|
|
770
770
|
}
|
|
771
771
|
function dr(e) {
|
|
772
772
|
let t = ur(e);
|
|
773
|
-
t !== null &&
|
|
773
|
+
t !== null && N.value.includes(t.id) && lr({ id: t.id });
|
|
774
774
|
}
|
|
775
775
|
function fr(e) {
|
|
776
776
|
let t = ur(e);
|
|
777
|
-
t !== null && (
|
|
777
|
+
t !== null && (N.value.includes(t.id) || lr({ id: t.id }));
|
|
778
778
|
}
|
|
779
779
|
function pr({ datapoint: e, seriesIndex: t }) {
|
|
780
|
-
Z.value = null, It.value = !1,
|
|
780
|
+
Z.value = null, It.value = !1, I.value = null, tn.value = "pointer", L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
781
781
|
datapoint: e,
|
|
782
782
|
seriesIndex: t
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
|
-
let mr =
|
|
785
|
+
let mr = C(null);
|
|
786
786
|
function hr({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
787
787
|
if (sr.value || n === "pointer" && Tr.value) return;
|
|
788
|
-
|
|
788
|
+
L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
789
789
|
datapoint: e,
|
|
790
790
|
seriesIndex: t
|
|
791
|
-
}),
|
|
791
|
+
}), I.value = t, tn.value = n, Z.value = e, mr.value = {
|
|
792
792
|
datapoint: e,
|
|
793
793
|
seriesIndex: t,
|
|
794
|
-
config:
|
|
794
|
+
config: L.value,
|
|
795
795
|
series: kn.value
|
|
796
796
|
};
|
|
797
|
-
let r =
|
|
798
|
-
if (
|
|
797
|
+
let r = L.value.style.chart.tooltip.customFormat;
|
|
798
|
+
if (ae(r) && ne(() => r({
|
|
799
799
|
seriesIndex: t,
|
|
800
800
|
datapoint: e,
|
|
801
801
|
series: kn.value,
|
|
802
|
-
config:
|
|
802
|
+
config: L.value
|
|
803
803
|
}))) Lt.value = r({
|
|
804
804
|
seriesIndex: t,
|
|
805
805
|
datapoint: e,
|
|
806
806
|
series: kn.value,
|
|
807
|
-
config:
|
|
807
|
+
config: L.value
|
|
808
808
|
});
|
|
809
809
|
else {
|
|
810
810
|
let n = "";
|
|
811
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
812
|
-
p:
|
|
811
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.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>${ee(L.value.style.chart.layout.labels.formatter, e.value, i({
|
|
812
|
+
p: L.value.style.chart.layout.labels.prefix,
|
|
813
813
|
v: e.value,
|
|
814
|
-
s:
|
|
815
|
-
r:
|
|
814
|
+
s: L.value.style.chart.layout.labels.suffix,
|
|
815
|
+
r: L.value.style.chart.tooltip.roundingValue
|
|
816
816
|
}), {
|
|
817
817
|
datapoint: e,
|
|
818
818
|
seriesIndex: t
|
|
@@ -828,37 +828,37 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
828
828
|
body: G.value.map((e) => e.value)
|
|
829
829
|
}));
|
|
830
830
|
function gr(e = null) {
|
|
831
|
-
|
|
831
|
+
Ne(() => {
|
|
832
832
|
let t = Q.value.head.map((e, t) => [
|
|
833
833
|
[e.name],
|
|
834
834
|
[Q.value.body[t]],
|
|
835
835
|
[isNaN(Q.value.body[t] / An.value) ? "-" : Q.value.body[t] / An.value * 100]
|
|
836
|
-
]), n =
|
|
837
|
-
[
|
|
838
|
-
[
|
|
836
|
+
]), n = c([
|
|
837
|
+
[L.value.style.chart.title.text],
|
|
838
|
+
[L.value.style.chart.title.subtitle.text],
|
|
839
839
|
[
|
|
840
840
|
[""],
|
|
841
841
|
["val"],
|
|
842
842
|
["%"]
|
|
843
843
|
]
|
|
844
844
|
].concat(t));
|
|
845
|
-
e ? e(n) :
|
|
845
|
+
e ? e(n) : d({
|
|
846
846
|
csvContent: n,
|
|
847
|
-
title:
|
|
847
|
+
title: L.value.style.chart.title.text || "vue-ui-treemap"
|
|
848
848
|
});
|
|
849
849
|
});
|
|
850
850
|
}
|
|
851
851
|
let _r = m(() => {
|
|
852
852
|
let e = [
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
853
|
+
L.value.table.columnNames.series,
|
|
854
|
+
L.value.table.columnNames.value,
|
|
855
|
+
L.value.table.columnNames.percentage
|
|
856
856
|
], t = Q.value.head.map((e, t) => {
|
|
857
|
-
let n =
|
|
858
|
-
p:
|
|
857
|
+
let n = ee(L.value.style.chart.layout.labels.formatter, Q.value.body[t], i({
|
|
858
|
+
p: L.value.style.chart.layout.labels.prefix,
|
|
859
859
|
v: Q.value.body[t],
|
|
860
|
-
s:
|
|
861
|
-
r:
|
|
860
|
+
s: L.value.style.chart.layout.labels.suffix,
|
|
861
|
+
r: L.value.table.td.roundingValue
|
|
862
862
|
}));
|
|
863
863
|
return [
|
|
864
864
|
{
|
|
@@ -867,27 +867,27 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
867
867
|
shape: "square"
|
|
868
868
|
},
|
|
869
869
|
n,
|
|
870
|
-
isNaN(Q.value.body[t] / An.value) ? "-" :
|
|
870
|
+
isNaN(Q.value.body[t] / An.value) ? "-" : i({
|
|
871
871
|
v: Q.value.body[t] / An.value * 100,
|
|
872
872
|
s: "%",
|
|
873
|
-
r:
|
|
873
|
+
r: L.value.table.td.roundingPercentage
|
|
874
874
|
})
|
|
875
875
|
];
|
|
876
876
|
}), n = {
|
|
877
877
|
th: {
|
|
878
|
-
backgroundColor:
|
|
879
|
-
color:
|
|
880
|
-
outline:
|
|
878
|
+
backgroundColor: L.value.table.th.backgroundColor,
|
|
879
|
+
color: L.value.table.th.color,
|
|
880
|
+
outline: L.value.table.th.outline
|
|
881
881
|
},
|
|
882
882
|
td: {
|
|
883
|
-
backgroundColor:
|
|
884
|
-
color:
|
|
885
|
-
outline:
|
|
883
|
+
backgroundColor: L.value.table.td.backgroundColor,
|
|
884
|
+
color: L.value.table.td.color,
|
|
885
|
+
outline: L.value.table.td.outline
|
|
886
886
|
},
|
|
887
|
-
breakpoint:
|
|
887
|
+
breakpoint: L.value.table.responsiveBreakpoint
|
|
888
888
|
};
|
|
889
889
|
return {
|
|
890
|
-
colNames: [
|
|
890
|
+
colNames: [L.value.table.columnNames.series, L.value.table.columnNames.value],
|
|
891
891
|
head: e,
|
|
892
892
|
body: t,
|
|
893
893
|
config: n
|
|
@@ -905,23 +905,23 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
905
905
|
function xr() {
|
|
906
906
|
B.value.showZoom = !B.value.showZoom;
|
|
907
907
|
}
|
|
908
|
-
let Sr =
|
|
908
|
+
let Sr = C(!1);
|
|
909
909
|
function Cr() {
|
|
910
910
|
Sr.value = !Sr.value;
|
|
911
911
|
}
|
|
912
|
-
let wr = m(() => !Sr.value && B.value.showZoom), Tr =
|
|
912
|
+
let wr = m(() => !Sr.value && B.value.showZoom), Tr = C(null), Er = C(!1), { viewBox: $, resetZoom: Dr, isZoom: Or, setInitialViewBox: kr } = Te(z, {
|
|
913
913
|
x: J.value.x,
|
|
914
914
|
y: J.value.y,
|
|
915
915
|
width: Math.max(10, J.value.width),
|
|
916
916
|
height: Math.max(10, J.value.height)
|
|
917
917
|
}, 1, wr), Ar = m(() => B.value.showZoom || Or.value);
|
|
918
|
-
|
|
918
|
+
D([
|
|
919
919
|
() => J.value.x,
|
|
920
920
|
() => J.value.y,
|
|
921
921
|
() => J.value.width,
|
|
922
922
|
() => J.value.height
|
|
923
923
|
], () => {
|
|
924
|
-
|
|
924
|
+
Ne(() => {
|
|
925
925
|
kr({
|
|
926
926
|
x: J.value.x,
|
|
927
927
|
y: J.value.y,
|
|
@@ -949,7 +949,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
949
949
|
function Pr(e, t) {
|
|
950
950
|
Er.value || rr(e, t);
|
|
951
951
|
}
|
|
952
|
-
let Fr =
|
|
952
|
+
let Fr = C(null);
|
|
953
953
|
function Ir(e) {
|
|
954
954
|
Fr.value = e;
|
|
955
955
|
}
|
|
@@ -957,9 +957,9 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
957
957
|
Fr.value = null;
|
|
958
958
|
}
|
|
959
959
|
async function Rr({ scale: e = 2 } = {}) {
|
|
960
|
-
if (!
|
|
961
|
-
let { width: t, height: n } =
|
|
962
|
-
domElement:
|
|
960
|
+
if (!P.value) return;
|
|
961
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
|
|
962
|
+
domElement: P.value,
|
|
963
963
|
base64: !0,
|
|
964
964
|
img: !0,
|
|
965
965
|
scale: e
|
|
@@ -967,65 +967,65 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
967
967
|
return {
|
|
968
968
|
imageUri: i,
|
|
969
969
|
base64: a,
|
|
970
|
-
title:
|
|
970
|
+
title: L.value.style.chart.title.text,
|
|
971
971
|
width: t,
|
|
972
972
|
height: n,
|
|
973
973
|
aspectRatio: r
|
|
974
974
|
};
|
|
975
975
|
}
|
|
976
976
|
let zr = m(() => {
|
|
977
|
-
let e =
|
|
977
|
+
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
978
978
|
return {
|
|
979
|
-
component: e ?
|
|
980
|
-
title: `${
|
|
979
|
+
component: e ? $e : Je,
|
|
980
|
+
title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
|
|
981
981
|
props: e ? {
|
|
982
|
-
backgroundColor:
|
|
983
|
-
color:
|
|
984
|
-
headerColor:
|
|
985
|
-
headerBg:
|
|
986
|
-
isFullscreen:
|
|
987
|
-
fullscreenParent:
|
|
982
|
+
backgroundColor: L.value.table.th.backgroundColor,
|
|
983
|
+
color: L.value.table.th.color,
|
|
984
|
+
headerColor: L.value.table.th.color,
|
|
985
|
+
headerBg: L.value.table.th.backgroundColor,
|
|
986
|
+
isFullscreen: M.value,
|
|
987
|
+
fullscreenParent: P.value,
|
|
988
988
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
989
|
-
isCursorPointer:
|
|
989
|
+
isCursorPointer: R.value
|
|
990
990
|
} : {
|
|
991
991
|
hideDetails: !0,
|
|
992
992
|
config: {
|
|
993
993
|
open: t,
|
|
994
994
|
maxHeight: 1e4,
|
|
995
995
|
body: {
|
|
996
|
-
backgroundColor:
|
|
997
|
-
color:
|
|
996
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
997
|
+
color: L.value.style.chart.color
|
|
998
998
|
},
|
|
999
999
|
head: {
|
|
1000
|
-
backgroundColor:
|
|
1001
|
-
color:
|
|
1000
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1001
|
+
color: L.value.style.chart.color
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
1005
|
};
|
|
1006
1006
|
});
|
|
1007
|
-
|
|
1008
|
-
|
|
1007
|
+
D(() => B.value.showTable, (e) => {
|
|
1008
|
+
L.value.table.show || (e && L.value.table.useDialog && Jt.value ? Jt.value.open() : "close" in Jt.value && Jt.value.close());
|
|
1009
1009
|
});
|
|
1010
1010
|
function Br() {
|
|
1011
|
-
B.value.showTable = !1,
|
|
1011
|
+
B.value.showTable = !1, Yt.value && Yt.value.setTableIconState(!1);
|
|
1012
1012
|
}
|
|
1013
1013
|
let Vr = m(() => ar.value.map((e) => ({
|
|
1014
1014
|
...e,
|
|
1015
1015
|
name: e.display
|
|
1016
|
-
}))), Hr = m(() =>
|
|
1016
|
+
}))), Hr = m(() => L.value.style.chart.backgroundColor), Ur = m(() => L.value.style.chart.legend), { exportSvg: Wr, getSvg: Gr } = ue({
|
|
1017
1017
|
svg: z,
|
|
1018
|
-
title: m(() =>
|
|
1018
|
+
title: m(() => L.value.style.chart.title),
|
|
1019
1019
|
legend: Ur,
|
|
1020
1020
|
legendItems: Vr,
|
|
1021
1021
|
backgroundColor: Hr
|
|
1022
1022
|
});
|
|
1023
1023
|
async function Kr({ isCb: e }) {
|
|
1024
|
-
|
|
1024
|
+
$t.value = !0, await Ne();
|
|
1025
1025
|
try {
|
|
1026
1026
|
if (e) {
|
|
1027
1027
|
let { blob: e, url: t, text: n, dataUrl: r } = await Gr();
|
|
1028
|
-
await Promise.resolve(
|
|
1028
|
+
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
1029
1029
|
blob: e,
|
|
1030
1030
|
url: t,
|
|
1031
1031
|
text: n,
|
|
@@ -1033,16 +1033,16 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1033
1033
|
}));
|
|
1034
1034
|
} else await Promise.resolve(Wr());
|
|
1035
1035
|
} finally {
|
|
1036
|
-
|
|
1036
|
+
$t.value = !1;
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
1039
|
function qr(e) {
|
|
1040
1040
|
if (e?.stage === "start") {
|
|
1041
|
-
|
|
1041
|
+
Qt.value = !0;
|
|
1042
1042
|
return;
|
|
1043
1043
|
}
|
|
1044
1044
|
if (e?.stage === "end") {
|
|
1045
|
-
|
|
1045
|
+
Qt.value = !1;
|
|
1046
1046
|
return;
|
|
1047
1047
|
}
|
|
1048
1048
|
hn();
|
|
@@ -1060,7 +1060,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1060
1060
|
return Wn(e, Jr(e, t).fontSize);
|
|
1061
1061
|
}
|
|
1062
1062
|
function Xr(e) {
|
|
1063
|
-
return
|
|
1063
|
+
return re(e.color ?? L.value.style.chart.backgroundColor);
|
|
1064
1064
|
}
|
|
1065
1065
|
function Zr(e, t) {
|
|
1066
1066
|
let { fontSize: n, lineHeight: r } = Jr(e, t), i = ii(e, t), a = ai(e, t);
|
|
@@ -1069,7 +1069,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1069
1069
|
return Kn(e, t).slice(0, o).map((e) => String(e ?? "")).filter(Boolean);
|
|
1070
1070
|
}
|
|
1071
1071
|
function Qr({ rect: e, seriesIndex: t }) {
|
|
1072
|
-
if (!e || !
|
|
1072
|
+
if (!e || !L.value.style.chart.layout.labels.showDefaultLabels || !Rn(e)) return null;
|
|
1073
1073
|
let { fontSize: n } = Jr(e, t), r = Xr(e), i = Zr(e, t), a = Yr(e, t);
|
|
1074
1074
|
if (!i.length || a.width <= 0 || a.height <= 0) return null;
|
|
1075
1075
|
let o = `treemap_clip_${j.value}_${e.id}`, s = e.x0, c = e.y0, l = Math.max(q(e), 0), u = Math.max(K(e), 0);
|
|
@@ -1087,7 +1087,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1087
1087
|
y: a.y + a.lineHeight * i,
|
|
1088
1088
|
fill: r,
|
|
1089
1089
|
fontSize: n,
|
|
1090
|
-
fontFamily:
|
|
1090
|
+
fontFamily: L.value.style.fontFamily,
|
|
1091
1091
|
fontWeight: i === 0 ? 500 : 400
|
|
1092
1092
|
}))
|
|
1093
1093
|
};
|
|
@@ -1095,7 +1095,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1095
1095
|
function $r(e) {
|
|
1096
1096
|
return `${e.id}`;
|
|
1097
1097
|
}
|
|
1098
|
-
let ei = m(() => Mt.rect ||
|
|
1098
|
+
let ei = m(() => Mt.rect || an.value || !L.value.style.chart.layout.labels.showDefaultLabels || sr.value ? [] : G.value.map((e, t) => e.showLabel ? Qr({
|
|
1099
1099
|
rect: e,
|
|
1100
1100
|
seriesIndex: t
|
|
1101
1101
|
}) : null).filter(Boolean)), ti;
|
|
@@ -1104,7 +1104,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1104
1104
|
}
|
|
1105
1105
|
function ri(e, t, n = 400) {
|
|
1106
1106
|
let r = ni();
|
|
1107
|
-
return r ? (r.font = `${n} ${t}px ${
|
|
1107
|
+
return r ? (r.font = `${n} ${t}px ${L.value.style.fontFamily}`, r.measureText(String(e)).width) : e.length * t * .6;
|
|
1108
1108
|
}
|
|
1109
1109
|
function ii(e, t) {
|
|
1110
1110
|
return Yr(e, t).width;
|
|
@@ -1113,44 +1113,44 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1113
1113
|
return Yr(e, t).height;
|
|
1114
1114
|
}
|
|
1115
1115
|
function oi(e) {
|
|
1116
|
-
let t =
|
|
1116
|
+
let t = L.value.style.chart.layout.rects.borderRadius, n = q(e), r = K(e);
|
|
1117
1117
|
return Math.min(t, Math.min(n, r) / 6);
|
|
1118
1118
|
}
|
|
1119
1119
|
async function si() {
|
|
1120
|
-
if (
|
|
1121
|
-
config:
|
|
1120
|
+
if (A("copyAlt", {
|
|
1121
|
+
config: L.value,
|
|
1122
1122
|
dataset: G.value
|
|
1123
|
-
}), !
|
|
1123
|
+
}), !L.value.userOptions.callbacks.altCopy) {
|
|
1124
1124
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1125
1125
|
return;
|
|
1126
1126
|
}
|
|
1127
|
-
await Promise.resolve(
|
|
1128
|
-
config:
|
|
1127
|
+
await Promise.resolve(L.value.userOptions.callbacks.altCopy({
|
|
1128
|
+
config: L.value,
|
|
1129
1129
|
dataset: G.value
|
|
1130
1130
|
}));
|
|
1131
1131
|
}
|
|
1132
1132
|
function ci() {
|
|
1133
|
-
|
|
1133
|
+
I.value = null, nn.value = !0;
|
|
1134
1134
|
}
|
|
1135
1135
|
function li() {
|
|
1136
|
-
|
|
1136
|
+
I.value = null, tn.value = "pointer", It.value = !1, Z.value = null, nn.value = !1;
|
|
1137
1137
|
}
|
|
1138
1138
|
function ui(e) {
|
|
1139
1139
|
if (!z.value || Sr.value || document.activeElement !== z.value || !G.value.length || sr.value) return;
|
|
1140
1140
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1141
1141
|
if (!t && !n && !r && !i) return;
|
|
1142
1142
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1143
|
-
|
|
1143
|
+
I.value = null, tn.value = "pointer", It.value = !1, Z.value = null;
|
|
1144
1144
|
return;
|
|
1145
1145
|
}
|
|
1146
1146
|
if (r) {
|
|
1147
|
-
if (
|
|
1148
|
-
let e = G.value[
|
|
1147
|
+
if (I.value === null) return;
|
|
1148
|
+
let e = G.value[I.value];
|
|
1149
1149
|
if (!e) return;
|
|
1150
|
-
rr(e,
|
|
1150
|
+
rr(e, I.value);
|
|
1151
1151
|
return;
|
|
1152
1152
|
}
|
|
1153
|
-
let a =
|
|
1153
|
+
let a = I.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;
|
|
1154
1154
|
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;
|
|
1155
1155
|
let l = G.value[a];
|
|
1156
1156
|
l && (di(a), hr({
|
|
@@ -1164,7 +1164,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1164
1164
|
let t = G.value[e];
|
|
1165
1165
|
if (!t) return;
|
|
1166
1166
|
let n = t.x0 + q(t) / 2, r = t.y0 + K(t) / 2, i = z.value.getBoundingClientRect();
|
|
1167
|
-
|
|
1167
|
+
en.value = {
|
|
1168
1168
|
x: i.left + (n - $.value.x) / $.value.width * i.width,
|
|
1169
1169
|
y: i.top + (r - $.value.y) / $.value.height * i.height
|
|
1170
1170
|
};
|
|
@@ -1172,8 +1172,8 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1172
1172
|
let fi = m(() => ({
|
|
1173
1173
|
headers: _r.value?.colNames ?? [],
|
|
1174
1174
|
rows: _r.value?.body ?? []
|
|
1175
|
-
})), pi = m(() =>
|
|
1176
|
-
return
|
|
1175
|
+
})), pi = m(() => L.value.style.chart.color);
|
|
1176
|
+
return he({
|
|
1177
1177
|
getData: vr,
|
|
1178
1178
|
getImage: Rr,
|
|
1179
1179
|
generateCsv: gr,
|
|
@@ -1189,26 +1189,26 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1189
1189
|
toggleFullscreen: Xn,
|
|
1190
1190
|
resetZoom: Dr,
|
|
1191
1191
|
copyAlt: si
|
|
1192
|
-
}), (e, t) => (
|
|
1192
|
+
}), (e, t) => (S(), _("div", {
|
|
1193
1193
|
ref_key: "treemapChart",
|
|
1194
|
-
ref:
|
|
1195
|
-
class:
|
|
1196
|
-
style:
|
|
1194
|
+
ref: P,
|
|
1195
|
+
class: Pe(`vue-data-ui-component vue-ui-treemap ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1196
|
+
style: x(`font-family:${L.value.style.fontFamily};width:100%; ${L.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.style.chart.backgroundColor}`),
|
|
1197
1197
|
id: `treemap_${j.value}`,
|
|
1198
|
-
onMouseenter: t[3] ||= () =>
|
|
1199
|
-
onMouseleave: t[4] ||= () =>
|
|
1198
|
+
onMouseenter: t[3] ||= () => E(ln)(!0),
|
|
1199
|
+
onMouseleave: t[4] ||= () => E(ln)(!1)
|
|
1200
1200
|
}, [
|
|
1201
1201
|
v("div", {
|
|
1202
1202
|
id: `chart-instructions-${j.value}`,
|
|
1203
1203
|
class: "sr-only"
|
|
1204
|
-
}, [v("p", null,
|
|
1205
|
-
fi.value?.rows?.length ? (
|
|
1204
|
+
}, [v("p", null, ze(L.value.a11y.translations.keyboardNavigation), 1)], 8, it),
|
|
1205
|
+
fi.value?.rows?.length ? (S(), h(be, {
|
|
1206
1206
|
key: 0,
|
|
1207
1207
|
uid: j.value,
|
|
1208
1208
|
head: fi.value.headers,
|
|
1209
1209
|
body: fi.value.rows,
|
|
1210
|
-
notice:
|
|
1211
|
-
caption:
|
|
1210
|
+
notice: L.value.a11y.translations.tableAvailable,
|
|
1211
|
+
caption: L.value.a11y.translations.tableCaption
|
|
1212
1212
|
}, null, 8, [
|
|
1213
1213
|
"uid",
|
|
1214
1214
|
"head",
|
|
@@ -1216,21 +1216,21 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1216
1216
|
"notice",
|
|
1217
1217
|
"caption"
|
|
1218
1218
|
])) : g("", !0),
|
|
1219
|
-
|
|
1219
|
+
L.value.userOptions.buttons.annotator ? (S(), h(E(qe), {
|
|
1220
1220
|
key: 1,
|
|
1221
|
-
svgRef:
|
|
1222
|
-
backgroundColor:
|
|
1223
|
-
color:
|
|
1221
|
+
svgRef: E(z),
|
|
1222
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1223
|
+
color: L.value.style.chart.color,
|
|
1224
1224
|
active: Sr.value,
|
|
1225
|
-
isCursorPointer:
|
|
1225
|
+
isCursorPointer: R.value,
|
|
1226
1226
|
onClose: Cr
|
|
1227
1227
|
}, {
|
|
1228
|
-
"annotator-action-close":
|
|
1229
|
-
"annotator-action-color":
|
|
1230
|
-
"annotator-action-draw":
|
|
1231
|
-
"annotator-action-undo":
|
|
1232
|
-
"annotator-action-redo":
|
|
1233
|
-
"annotator-action-delete":
|
|
1228
|
+
"annotator-action-close": O(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1229
|
+
"annotator-action-color": O(({ color: t }) => [w(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
|
|
1230
|
+
"annotator-action-draw": O(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
|
|
1231
|
+
"annotator-action-undo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
|
|
1232
|
+
"annotator-action-redo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
|
|
1233
|
+
"annotator-action-delete": O(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
|
|
1234
1234
|
_: 3
|
|
1235
1235
|
}, 8, [
|
|
1236
1236
|
"svgRef",
|
|
@@ -1239,64 +1239,64 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1239
1239
|
"active",
|
|
1240
1240
|
"isCursorPointer"
|
|
1241
1241
|
])) : g("", !0),
|
|
1242
|
-
gn.value ? (
|
|
1242
|
+
gn.value ? (S(), _("div", {
|
|
1243
1243
|
key: 2,
|
|
1244
1244
|
ref_key: "noTitle",
|
|
1245
|
-
ref:
|
|
1245
|
+
ref: Ht,
|
|
1246
1246
|
class: "vue-data-ui-no-title-space",
|
|
1247
1247
|
style: "height:36px; width: 100%;background:transparent"
|
|
1248
1248
|
}, null, 512)) : g("", !0),
|
|
1249
|
-
|
|
1249
|
+
L.value.style.chart.title.text ? (S(), _("div", {
|
|
1250
1250
|
key: 3,
|
|
1251
1251
|
ref_key: "chartTitle",
|
|
1252
|
-
ref:
|
|
1253
|
-
style:
|
|
1254
|
-
}, [(
|
|
1255
|
-
key: `title_${
|
|
1252
|
+
ref: zt,
|
|
1253
|
+
style: x(`width:100%;background:${L.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
1254
|
+
}, [(S(), h(me, {
|
|
1255
|
+
key: `title_${Ut.value}`,
|
|
1256
1256
|
config: {
|
|
1257
1257
|
title: {
|
|
1258
1258
|
cy: "treemap-div-title",
|
|
1259
|
-
...
|
|
1259
|
+
...L.value.style.chart.title
|
|
1260
1260
|
},
|
|
1261
1261
|
subtitle: {
|
|
1262
1262
|
cy: "treemap-div-subtitle",
|
|
1263
|
-
...
|
|
1263
|
+
...L.value.style.chart.title.subtitle
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
1266
|
}, null, 8, ["config"]))], 4)) : g("", !0),
|
|
1267
1267
|
v("div", { id: `legend-top-${j.value}` }, null, 8, at),
|
|
1268
|
-
|
|
1268
|
+
L.value.userOptions.show && Pt.value && (E(un) || E(cn)) ? (S(), h(E(Ze), {
|
|
1269
1269
|
ref_key: "userOptionsRef",
|
|
1270
|
-
ref:
|
|
1271
|
-
key: `user_option_${
|
|
1272
|
-
backgroundColor:
|
|
1273
|
-
color:
|
|
1274
|
-
isPrinting:
|
|
1275
|
-
isImaging:
|
|
1270
|
+
ref: Yt,
|
|
1271
|
+
key: `user_option_${Rt.value}`,
|
|
1272
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1273
|
+
color: L.value.style.chart.color,
|
|
1274
|
+
isPrinting: E(fn),
|
|
1275
|
+
isImaging: E(pn),
|
|
1276
1276
|
uid: j.value,
|
|
1277
|
-
hasTooltip:
|
|
1278
|
-
hasPdf:
|
|
1279
|
-
hasXls:
|
|
1280
|
-
hasImg:
|
|
1281
|
-
hasSvg:
|
|
1282
|
-
hasTable:
|
|
1283
|
-
hasFullscreen:
|
|
1284
|
-
hasAltCopy:
|
|
1285
|
-
isFullscreen:
|
|
1277
|
+
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.chart.tooltip.show,
|
|
1278
|
+
hasPdf: L.value.userOptions.buttons.pdf,
|
|
1279
|
+
hasXls: L.value.userOptions.buttons.csv,
|
|
1280
|
+
hasImg: L.value.userOptions.buttons.img,
|
|
1281
|
+
hasSvg: L.value.userOptions.buttons.svg,
|
|
1282
|
+
hasTable: L.value.userOptions.buttons.table,
|
|
1283
|
+
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
1284
|
+
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
1285
|
+
isFullscreen: M.value,
|
|
1286
1286
|
isTooltip: B.value.showTooltip,
|
|
1287
|
-
titles: { ...
|
|
1288
|
-
chartElement:
|
|
1289
|
-
position:
|
|
1290
|
-
hasAnnotator:
|
|
1287
|
+
titles: { ...L.value.userOptions.buttonTitles },
|
|
1288
|
+
chartElement: P.value,
|
|
1289
|
+
position: L.value.userOptions.position,
|
|
1290
|
+
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1291
1291
|
isAnnotation: Sr.value,
|
|
1292
|
-
callbacks:
|
|
1293
|
-
printScale:
|
|
1294
|
-
tableDialog:
|
|
1295
|
-
isCursorPointer:
|
|
1296
|
-
hasZoom:
|
|
1292
|
+
callbacks: L.value.userOptions.callbacks,
|
|
1293
|
+
printScale: L.value.userOptions.print.scale,
|
|
1294
|
+
tableDialog: L.value.table.useDialog,
|
|
1295
|
+
isCursorPointer: R.value,
|
|
1296
|
+
hasZoom: L.value.userOptions.buttons.zoom,
|
|
1297
1297
|
isZoom: B.value.showZoom,
|
|
1298
1298
|
onToggleFullscreen: Xn,
|
|
1299
|
-
onGeneratePdf:
|
|
1299
|
+
onGeneratePdf: E(mn),
|
|
1300
1300
|
onGenerateCsv: gr,
|
|
1301
1301
|
onGenerateImage: qr,
|
|
1302
1302
|
onGenerateSvg: Kr,
|
|
@@ -1305,11 +1305,11 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1305
1305
|
onToggleAnnotator: Cr,
|
|
1306
1306
|
onToggleZoom: xr,
|
|
1307
1307
|
onCopyAlt: si,
|
|
1308
|
-
style:
|
|
1308
|
+
style: x({ visibility: E(un) ? E(cn) ? "visible" : "hidden" : "visible" })
|
|
1309
1309
|
}, Oe({ _: 2 }, [
|
|
1310
1310
|
e.$slots.menuIcon ? {
|
|
1311
1311
|
name: "menuIcon",
|
|
1312
|
-
fn:
|
|
1312
|
+
fn: O(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(y({
|
|
1313
1313
|
isOpen: t,
|
|
1314
1314
|
color: n
|
|
1315
1315
|
})), void 0, !0)]),
|
|
@@ -1317,37 +1317,37 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1317
1317
|
} : void 0,
|
|
1318
1318
|
e.$slots.optionTooltip ? {
|
|
1319
1319
|
name: "optionTooltip",
|
|
1320
|
-
fn:
|
|
1320
|
+
fn: O(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1321
1321
|
key: "1"
|
|
1322
1322
|
} : void 0,
|
|
1323
1323
|
e.$slots.optionPdf ? {
|
|
1324
1324
|
name: "optionPdf",
|
|
1325
|
-
fn:
|
|
1325
|
+
fn: O(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1326
1326
|
key: "2"
|
|
1327
1327
|
} : void 0,
|
|
1328
1328
|
e.$slots.optionCsv ? {
|
|
1329
1329
|
name: "optionCsv",
|
|
1330
|
-
fn:
|
|
1330
|
+
fn: O(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1331
1331
|
key: "3"
|
|
1332
1332
|
} : void 0,
|
|
1333
1333
|
e.$slots.optionImg ? {
|
|
1334
1334
|
name: "optionImg",
|
|
1335
|
-
fn:
|
|
1335
|
+
fn: O(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1336
1336
|
key: "4"
|
|
1337
1337
|
} : void 0,
|
|
1338
1338
|
e.$slots.optionSvg ? {
|
|
1339
1339
|
name: "optionSvg",
|
|
1340
|
-
fn:
|
|
1340
|
+
fn: O(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1341
1341
|
key: "5"
|
|
1342
1342
|
} : void 0,
|
|
1343
1343
|
e.$slots.optionTable ? {
|
|
1344
1344
|
name: "optionTable",
|
|
1345
|
-
fn:
|
|
1345
|
+
fn: O(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1346
1346
|
key: "6"
|
|
1347
1347
|
} : void 0,
|
|
1348
1348
|
e.$slots.optionFullscreen ? {
|
|
1349
1349
|
name: "optionFullscreen",
|
|
1350
|
-
fn:
|
|
1350
|
+
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(y({
|
|
1351
1351
|
toggleFullscreen: t,
|
|
1352
1352
|
isFullscreen: n
|
|
1353
1353
|
})), void 0, !0)]),
|
|
@@ -1355,7 +1355,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1355
1355
|
} : void 0,
|
|
1356
1356
|
e.$slots.optionAnnotator ? {
|
|
1357
1357
|
name: "optionAnnotator",
|
|
1358
|
-
fn:
|
|
1358
|
+
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(y({
|
|
1359
1359
|
toggleAnnotator: t,
|
|
1360
1360
|
isAnnotator: n
|
|
1361
1361
|
})), void 0, !0)]),
|
|
@@ -1363,7 +1363,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1363
1363
|
} : void 0,
|
|
1364
1364
|
e.$slots.optionZoom ? {
|
|
1365
1365
|
name: "optionZoom",
|
|
1366
|
-
fn:
|
|
1366
|
+
fn: O(({ toggleZoom: t, isZoomLocked: n }) => [w(e.$slots, "optionZoom", b(y({
|
|
1367
1367
|
toggleZoom: t,
|
|
1368
1368
|
isZoomLocked: n
|
|
1369
1369
|
})), void 0, !0)]),
|
|
@@ -1371,66 +1371,66 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1371
1371
|
} : void 0,
|
|
1372
1372
|
e.$slots.optionAltCopy ? {
|
|
1373
1373
|
name: "optionAltCopy",
|
|
1374
|
-
fn:
|
|
1374
|
+
fn: O(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
|
|
1375
1375
|
key: "10"
|
|
1376
1376
|
} : void 0,
|
|
1377
1377
|
e.$slots["custom-menu-before"] ? {
|
|
1378
1378
|
name: "custom-menu-before",
|
|
1379
|
-
fn:
|
|
1379
|
+
fn: O(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1380
1380
|
key: "11"
|
|
1381
1381
|
} : void 0,
|
|
1382
1382
|
e.$slots["custom-menu-after"] ? {
|
|
1383
1383
|
name: "custom-menu-after",
|
|
1384
|
-
fn:
|
|
1384
|
+
fn: O(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1385
1385
|
key: "12"
|
|
1386
1386
|
} : void 0
|
|
1387
1387
|
]), 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.style".split("."))) : g("", !0),
|
|
1388
|
-
X.value.length > 1 ? (
|
|
1388
|
+
X.value.length > 1 ? (S(), _("nav", {
|
|
1389
1389
|
key: 5,
|
|
1390
1390
|
class: "vue-ui-treemap-breadcrumbs",
|
|
1391
1391
|
"data-dom-to-png-ignore": "",
|
|
1392
1392
|
ref_key: "breadcrumbsNav",
|
|
1393
|
-
ref:
|
|
1394
|
-
}, [(
|
|
1393
|
+
ref: Kt
|
|
1394
|
+
}, [(S(!0), _(p, null, Le(X.value, (n, r) => (S(), _("span", {
|
|
1395
1395
|
role: "button",
|
|
1396
1396
|
tabindex: r < X.value.length - 1 ? 0 : void 0,
|
|
1397
1397
|
key: n.id || "root",
|
|
1398
1398
|
onClick: (e) => r === X.value.length - 1 ? () => {} : rr(n.node),
|
|
1399
|
-
onKeydown: [
|
|
1399
|
+
onKeydown: [Ue(We((e) => r === X.value.length - 1 ? void 0 : rr(n.node), ["prevent"]), ["enter"]), Ue(We((e) => r === X.value.length - 1 ? void 0 : rr(n.node), ["prevent"]), ["space"])],
|
|
1400
1400
|
class: "vue-ui-treemap-crumb",
|
|
1401
1401
|
"data-last-crumb": r === X.value.length - 1,
|
|
1402
|
-
style:
|
|
1403
|
-
color:
|
|
1404
|
-
cursor:
|
|
1402
|
+
style: x({
|
|
1403
|
+
color: L.value.style.chart.color,
|
|
1404
|
+
cursor: R.value ? "pointer" : "default"
|
|
1405
1405
|
}),
|
|
1406
1406
|
onMouseenter: (e) => Ir(r),
|
|
1407
1407
|
onMouseleave: Lr,
|
|
1408
1408
|
onFocus: (e) => Ir(r),
|
|
1409
1409
|
onBlur: Lr
|
|
1410
|
-
}, [v("span", st, [v("span", ct, [
|
|
1410
|
+
}, [v("span", st, [v("span", ct, [w(e.$slots, "breadcrumb-label", Me({ ref_for: !0 }, {
|
|
1411
1411
|
crumb: n,
|
|
1412
1412
|
isRoot: r === 0,
|
|
1413
1413
|
isFocus: Fr.value === r
|
|
1414
|
-
}), () => [r === 0 ? (
|
|
1414
|
+
}), () => [r === 0 ? (S(), _("div", lt, [Ae(ve, {
|
|
1415
1415
|
name: Fr.value === 0 ? "homeFilled" : "home",
|
|
1416
|
-
stroke:
|
|
1417
|
-
}, null, 8, ["name", "stroke"])])) : (
|
|
1416
|
+
stroke: L.value.style.chart.color
|
|
1417
|
+
}, null, 8, ["name", "stroke"])])) : (S(), _(p, { key: 1 }, [ke(ze(n.label), 1)], 64))], !0)]), r < X.value.length - 1 ? (S(), _("span", ut, [w(e.$slots, "breadcrumb-arrow", {}, () => [t[5] ||= ke(" › ", -1)], !0)])) : g("", !0)])], 44, ot))), 128))], 512)) : g("", !0),
|
|
1418
1418
|
v("div", dt, [
|
|
1419
|
-
(
|
|
1419
|
+
(S(), _("svg", {
|
|
1420
1420
|
ref_key: "svgRef",
|
|
1421
1421
|
ref: z,
|
|
1422
|
-
xmlns:
|
|
1422
|
+
xmlns: E(ie),
|
|
1423
1423
|
"aria-describedby": `chart-instructions-${j.value}`,
|
|
1424
|
-
class:
|
|
1425
|
-
"vue-data-ui-fullscreen--on":
|
|
1426
|
-
"vue-data-ui-fulscreen--off": !
|
|
1424
|
+
class: Pe({
|
|
1425
|
+
"vue-data-ui-fullscreen--on": M.value,
|
|
1426
|
+
"vue-data-ui-fulscreen--off": !M.value,
|
|
1427
1427
|
"vue-data-ui-zoom-plus": !Qn.value,
|
|
1428
1428
|
"vue-data-ui-zoom-minus": Qn.value,
|
|
1429
|
-
"no-transition":
|
|
1430
|
-
loading:
|
|
1429
|
+
"no-transition": E(Nt),
|
|
1430
|
+
loading: E(an)
|
|
1431
1431
|
}),
|
|
1432
|
-
viewBox: `${
|
|
1433
|
-
style:
|
|
1432
|
+
viewBox: `${E($).x} ${E($).y} ${E($).width <= 0 ? 10 : E($).width} ${E($).height <= 0 ? 10 : E($).height}`,
|
|
1433
|
+
style: x(`max-width:100%; overflow:${Ar.value ? "hidden" : "visible"}; background:transparent;color:${L.value.style.chart.color}`),
|
|
1434
1434
|
tabindex: "0",
|
|
1435
1435
|
onFocus: ci,
|
|
1436
1436
|
onBlur: li,
|
|
@@ -1441,8 +1441,8 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1441
1441
|
onPointercancel: Nr,
|
|
1442
1442
|
onPointerleave: Nr
|
|
1443
1443
|
}, [
|
|
1444
|
-
Ae(
|
|
1445
|
-
(
|
|
1444
|
+
Ae(E(Qe)),
|
|
1445
|
+
(S(!0), _(p, null, Le(G.value, (e, t) => (S(), _("g", { key: `tgrad_${e.id}` }, [L.value.style.chart.layout.rects.gradient.show ? (S(), _("defs", pt, [v("radialGradient", {
|
|
1446
1446
|
id: `tgrad_${e.id}`,
|
|
1447
1447
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
1448
1448
|
}, [v("stop", {
|
|
@@ -1450,19 +1450,19 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1450
1450
|
"stop-color": e.color
|
|
1451
1451
|
}, null, 8, ht), v("stop", {
|
|
1452
1452
|
offset: "100%",
|
|
1453
|
-
"stop-color":
|
|
1453
|
+
"stop-color": E(n)(e.color, L.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
1454
1454
|
}, null, 8, gt)], 8, mt)])) : g("", !0)]))), 128)),
|
|
1455
1455
|
v("g", null, [
|
|
1456
|
-
(
|
|
1456
|
+
(S(!0), _(p, null, Le(G.value, (e, t) => (S(), _("g", { key: `rect_${e.id}_${e.depth}` }, [v("rect", {
|
|
1457
1457
|
x: e.x0,
|
|
1458
1458
|
y: e.y0,
|
|
1459
1459
|
height: K(e),
|
|
1460
1460
|
width: q(e),
|
|
1461
|
-
fill: Ft.value ? e.color ??
|
|
1461
|
+
fill: Ft.value ? e.color ?? L.value.style.chart.backgroundColor : L.value.style.chart.layout.rects.gradient.show ? sr.value ? L.value.style.chart.backgroundColor : `url(#tgrad_${e.id})` : e.color ?? L.value.style.chart.backgroundColor,
|
|
1462
1462
|
rx: oi(e),
|
|
1463
|
-
stroke: Z.value && Z.value.id === e.id ?
|
|
1464
|
-
"stroke-width": Z.value && Z.value.id === e.id ?
|
|
1465
|
-
onClick:
|
|
1463
|
+
stroke: Z.value && Z.value.id === e.id ? L.value.style.chart.layout.rects.selected.stroke : L.value.style.chart.layout.rects.stroke,
|
|
1464
|
+
"stroke-width": Z.value && Z.value.id === e.id ? L.value.style.chart.layout.rects.selected.strokeWidth : L.value.style.chart.layout.rects.strokeWidth,
|
|
1465
|
+
onClick: We((n) => Pr(e, t), ["stop"]),
|
|
1466
1466
|
onMouseenter: () => hr({
|
|
1467
1467
|
datapoint: e,
|
|
1468
1468
|
seriesIndex: t,
|
|
@@ -1472,10 +1472,10 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1472
1472
|
datapoint: e,
|
|
1473
1473
|
seriesIndex: t
|
|
1474
1474
|
}),
|
|
1475
|
-
style:
|
|
1476
|
-
class:
|
|
1475
|
+
style: x(`opacity:${Z.value ? Z.value.id === e.id ? 1 : L.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
1476
|
+
class: Pe(["vue-ui-treemap-rect", ir(e) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"])
|
|
1477
1477
|
}, null, 46, _t)]))), 128)),
|
|
1478
|
-
(
|
|
1478
|
+
(S(!0), _(p, null, Le(ei.value, (e) => (S(), _("g", {
|
|
1479
1479
|
key: e.key,
|
|
1480
1480
|
style: { "pointer-events": "none" }
|
|
1481
1481
|
}, [v("defs", null, [v("clipPath", {
|
|
@@ -1487,7 +1487,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1487
1487
|
y: e.clipY,
|
|
1488
1488
|
width: e.clipWidth,
|
|
1489
1489
|
height: e.clipHeight
|
|
1490
|
-
}, null, 8, yt)], 8, vt)]), v("g", { "clip-path": `url(#${e.clipId})` }, [(
|
|
1490
|
+
}, null, 8, yt)], 8, vt)]), v("g", { "clip-path": `url(#${e.clipId})` }, [(S(!0), _(p, null, Le(e.lines, (e) => (S(), _("text", {
|
|
1491
1491
|
key: e.key,
|
|
1492
1492
|
class: "vue-ui-treemap-data-label",
|
|
1493
1493
|
transform: `translate(${e.x}, ${e.y})`,
|
|
@@ -1497,8 +1497,8 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1497
1497
|
"font-weight": e.fontWeight,
|
|
1498
1498
|
"text-anchor": "start",
|
|
1499
1499
|
"dominant-baseline": "text-before-edge"
|
|
1500
|
-
},
|
|
1501
|
-
e.$slots.rect ? (
|
|
1500
|
+
}, ze(e.text), 9, xt))), 128))], 8, bt)]))), 128)),
|
|
1501
|
+
e.$slots.rect ? (S(), _("g", St, [(S(!0), _(p, null, Le(G.value, (t, n) => (S(), _("g", { key: `slot_${t.id}_${t.depth}` }, [(S(), _("foreignObject", {
|
|
1502
1502
|
x: t.x0,
|
|
1503
1503
|
y: t.y0,
|
|
1504
1504
|
height: K(t),
|
|
@@ -1508,7 +1508,7 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1508
1508
|
"pointer-events": "none",
|
|
1509
1509
|
overflow: "hidden"
|
|
1510
1510
|
}
|
|
1511
|
-
}, [v("div", wt, [
|
|
1511
|
+
}, [v("div", wt, [E(an) ? g("", !0) : w(e.$slots, "rect", Me({
|
|
1512
1512
|
key: 0,
|
|
1513
1513
|
ref_for: !0
|
|
1514
1514
|
}, {
|
|
@@ -1521,65 +1521,65 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1521
1521
|
shouldShow: zn(t) || Qn.value,
|
|
1522
1522
|
fontSize: Yn(t, n),
|
|
1523
1523
|
isZoom: Qn.value,
|
|
1524
|
-
textColor:
|
|
1524
|
+
textColor: E(re)(t.color)
|
|
1525
1525
|
}), void 0, !0)])], 8, Ct))]))), 128))])) : g("", !0)
|
|
1526
1526
|
]),
|
|
1527
|
-
|
|
1527
|
+
w(e.$slots, "svg", b(y({
|
|
1528
1528
|
svg: V.value,
|
|
1529
1529
|
isZoom: Qn.value,
|
|
1530
1530
|
rect: Z.value,
|
|
1531
|
-
config:
|
|
1532
|
-
isPrintingImg:
|
|
1533
|
-
isPrintingSvg:
|
|
1531
|
+
config: L.value,
|
|
1532
|
+
isPrintingImg: E(fn) || E(pn) || Qt.value,
|
|
1533
|
+
isPrintingSvg: $t.value
|
|
1534
1534
|
})), void 0, !0)
|
|
1535
1535
|
], 46, ft)),
|
|
1536
|
-
|
|
1536
|
+
E(Or) ? (S(), _("div", Tt, [w(e.$slots, "reset-action", { reset: E(Dr) }, () => [v("button", {
|
|
1537
1537
|
"data-cy-reset": "",
|
|
1538
1538
|
tabindex: "0",
|
|
1539
1539
|
role: "button",
|
|
1540
1540
|
class: "vue-data-ui-refresh-button",
|
|
1541
|
-
style:
|
|
1542
|
-
background:
|
|
1543
|
-
cursor:
|
|
1541
|
+
style: x({
|
|
1542
|
+
background: L.value.style.chart.backgroundColor,
|
|
1543
|
+
cursor: R.value ? "pointer" : "default"
|
|
1544
1544
|
}),
|
|
1545
|
-
onClick: t[0] ||= (e) =>
|
|
1546
|
-
}, [Ae(
|
|
1545
|
+
onClick: t[0] ||= (e) => E(Dr)(!0)
|
|
1546
|
+
}, [Ae(ve, {
|
|
1547
1547
|
name: "refresh",
|
|
1548
|
-
stroke:
|
|
1548
|
+
stroke: L.value.style.chart.color
|
|
1549
1549
|
}, null, 8, ["stroke"])], 4)], !0)])) : g("", !0),
|
|
1550
|
-
e.$slots.hint ? (
|
|
1551
|
-
hint:
|
|
1552
|
-
isVisible:
|
|
1550
|
+
e.$slots.hint ? (S(), _("div", Et, [w(e.$slots, "hint", b(y({
|
|
1551
|
+
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1552
|
+
isVisible: nn.value
|
|
1553
1553
|
})), void 0, !0)])) : g("", !0)
|
|
1554
1554
|
]),
|
|
1555
|
-
e.$slots.watermark ? (
|
|
1555
|
+
e.$slots.watermark ? (S(), _("div", Dt, [w(e.$slots, "watermark", b(y({ isPrinting: E(fn) || E(pn) || Qt.value || $t.value })), void 0, !0)])) : g("", !0),
|
|
1556
1556
|
v("div", { id: `legend-bottom-${j.value}` }, null, 8, Ot),
|
|
1557
|
-
|
|
1557
|
+
qt.value && (L.value.style.chart.legend.show || e.$slots.legend) ? (S(), h(De, {
|
|
1558
1558
|
key: 7,
|
|
1559
|
-
to:
|
|
1559
|
+
to: L.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
|
|
1560
1560
|
}, [v("div", {
|
|
1561
1561
|
ref_key: "chartLegend",
|
|
1562
|
-
ref:
|
|
1563
|
-
}, [
|
|
1564
|
-
key: `legend_${
|
|
1562
|
+
ref: Bt
|
|
1563
|
+
}, [w(e.$slots, "legend", { legend: ar.value }, () => [L.value.style.chart.legend.show ? (S(), h(Ce, {
|
|
1564
|
+
key: `legend_${Gt.value}`,
|
|
1565
1565
|
legendSet: ar.value,
|
|
1566
1566
|
config: or.value,
|
|
1567
1567
|
id: `treemap_legend_${j.value}`,
|
|
1568
|
-
isCursorPointer:
|
|
1568
|
+
isCursorPointer: R.value,
|
|
1569
1569
|
onClickMarker: t[1] ||= ({ legend: e }) => lr(e)
|
|
1570
1570
|
}, {
|
|
1571
|
-
item:
|
|
1571
|
+
item: O(({ legend: e, index: t }) => [E(an) ? g("", !0) : (S(), _("div", {
|
|
1572
1572
|
key: 0,
|
|
1573
1573
|
onClick: (t) => lr(e),
|
|
1574
|
-
style:
|
|
1575
|
-
},
|
|
1576
|
-
legendToggle:
|
|
1574
|
+
style: x(`opacity:${N.value.includes(e.id) ? .5 : 1}`)
|
|
1575
|
+
}, ze(e.display), 13, kt))]),
|
|
1576
|
+
legendToggle: O(() => [ar.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !E(an) ? (S(), h(ye, {
|
|
1577
1577
|
key: 0,
|
|
1578
|
-
backgroundColor:
|
|
1579
|
-
color:
|
|
1580
|
-
fontSize:
|
|
1581
|
-
checked:
|
|
1582
|
-
isCursorPointer:
|
|
1578
|
+
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1579
|
+
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
1580
|
+
fontSize: L.value.style.chart.legend.fontSize,
|
|
1581
|
+
checked: N.value.length > 0,
|
|
1582
|
+
isCursorPointer: R.value,
|
|
1583
1583
|
onToggle: cr
|
|
1584
1584
|
}, null, 8, [
|
|
1585
1585
|
"backgroundColor",
|
|
@@ -1595,39 +1595,39 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1595
1595
|
"id",
|
|
1596
1596
|
"isCursorPointer"
|
|
1597
1597
|
])) : g("", !0)], !0)], 512)], 8, ["to"])) : g("", !0),
|
|
1598
|
-
e.$slots.source ? (
|
|
1598
|
+
e.$slots.source ? (S(), _("div", {
|
|
1599
1599
|
key: 8,
|
|
1600
1600
|
ref_key: "source",
|
|
1601
|
-
ref:
|
|
1601
|
+
ref: Vt,
|
|
1602
1602
|
dir: "auto"
|
|
1603
|
-
}, [
|
|
1604
|
-
Ae(
|
|
1605
|
-
teleportTo:
|
|
1603
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1604
|
+
Ae(E(Xe), {
|
|
1605
|
+
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
1606
1606
|
show: B.value.showTooltip && It.value,
|
|
1607
|
-
backgroundColor:
|
|
1608
|
-
color:
|
|
1609
|
-
fontSize:
|
|
1610
|
-
borderRadius:
|
|
1611
|
-
borderColor:
|
|
1612
|
-
borderWidth:
|
|
1613
|
-
backgroundOpacity:
|
|
1614
|
-
position:
|
|
1615
|
-
offsetX:
|
|
1616
|
-
offsetY:
|
|
1617
|
-
parent:
|
|
1607
|
+
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
1608
|
+
color: L.value.style.chart.tooltip.color,
|
|
1609
|
+
fontSize: L.value.style.chart.tooltip.fontSize,
|
|
1610
|
+
borderRadius: L.value.style.chart.tooltip.borderRadius,
|
|
1611
|
+
borderColor: L.value.style.chart.tooltip.borderColor,
|
|
1612
|
+
borderWidth: L.value.style.chart.tooltip.borderWidth,
|
|
1613
|
+
backgroundOpacity: L.value.style.chart.tooltip.backgroundOpacity,
|
|
1614
|
+
position: L.value.style.chart.tooltip.position,
|
|
1615
|
+
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
1616
|
+
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
1617
|
+
parent: P.value,
|
|
1618
1618
|
content: Lt.value,
|
|
1619
|
-
isFullscreen:
|
|
1620
|
-
isCustom:
|
|
1621
|
-
smooth:
|
|
1622
|
-
backdropFilter:
|
|
1623
|
-
smoothForce:
|
|
1624
|
-
smoothSnapThreshold:
|
|
1625
|
-
isA11yMode:
|
|
1626
|
-
a11yPosition:
|
|
1619
|
+
isFullscreen: M.value,
|
|
1620
|
+
isCustom: E(ae)(L.value.style.chart.tooltip.customFormat),
|
|
1621
|
+
smooth: L.value.style.chart.tooltip.smooth,
|
|
1622
|
+
backdropFilter: L.value.style.chart.tooltip.backdropFilter,
|
|
1623
|
+
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
1624
|
+
smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1625
|
+
isA11yMode: tn.value === "keyboard",
|
|
1626
|
+
a11yPosition: en.value
|
|
1627
1627
|
}, {
|
|
1628
|
-
"tooltip-before":
|
|
1629
|
-
tooltip:
|
|
1630
|
-
"tooltip-after":
|
|
1628
|
+
"tooltip-before": O(() => [w(e.$slots, "tooltip-before", b(y({ ...mr.value })), void 0, !0)]),
|
|
1629
|
+
tooltip: O(() => [w(e.$slots, "tooltip", b(y({ ...mr.value })), void 0, !0)]),
|
|
1630
|
+
"tooltip-after": O(() => [w(e.$slots, "tooltip-after", b(y({ ...mr.value })), void 0, !0)]),
|
|
1631
1631
|
_: 3
|
|
1632
1632
|
}, 8, [
|
|
1633
1633
|
"teleportTo",
|
|
@@ -1653,30 +1653,30 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1653
1653
|
"isA11yMode",
|
|
1654
1654
|
"a11yPosition"
|
|
1655
1655
|
]),
|
|
1656
|
-
Pt.value &&
|
|
1656
|
+
Pt.value && L.value.userOptions.buttons.table ? (S(), h(Re(zr.value.component), Me({ key: 9 }, zr.value.props, {
|
|
1657
1657
|
ref_key: "tableUnit",
|
|
1658
|
-
ref:
|
|
1658
|
+
ref: Jt,
|
|
1659
1659
|
onClose: Br
|
|
1660
1660
|
}), Oe({
|
|
1661
|
-
content:
|
|
1662
|
-
key: `table_${
|
|
1661
|
+
content: O(() => [(S(), h(E(Ke), {
|
|
1662
|
+
key: `table_${Wt.value}`,
|
|
1663
1663
|
colNames: _r.value.colNames,
|
|
1664
1664
|
head: _r.value.head,
|
|
1665
1665
|
body: _r.value.body,
|
|
1666
1666
|
config: _r.value.config,
|
|
1667
|
-
title:
|
|
1668
|
-
withCloseButton: !
|
|
1669
|
-
isCursorPointer:
|
|
1667
|
+
title: L.value.table.useDialog ? "" : zr.value.title,
|
|
1668
|
+
withCloseButton: !L.value.table.useDialog,
|
|
1669
|
+
isCursorPointer: R.value,
|
|
1670
1670
|
onClose: Br
|
|
1671
1671
|
}, {
|
|
1672
|
-
th:
|
|
1672
|
+
th: O(({ th: e }) => [v("div", {
|
|
1673
1673
|
innerHTML: e,
|
|
1674
1674
|
style: {
|
|
1675
1675
|
display: "flex",
|
|
1676
1676
|
"align-items": "center"
|
|
1677
1677
|
}
|
|
1678
1678
|
}, null, 8, At)]),
|
|
1679
|
-
td:
|
|
1679
|
+
td: O(({ td: e }) => [ke(ze(e.name || e), 1)]),
|
|
1680
1680
|
_: 1
|
|
1681
1681
|
}, 8, [
|
|
1682
1682
|
"colNames",
|
|
@@ -1688,26 +1688,26 @@ var nt = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at
|
|
|
1688
1688
|
"isCursorPointer"
|
|
1689
1689
|
]))]),
|
|
1690
1690
|
_: 2
|
|
1691
|
-
}, [
|
|
1691
|
+
}, [L.value.table.useDialog ? {
|
|
1692
1692
|
name: "title",
|
|
1693
|
-
fn:
|
|
1693
|
+
fn: O(() => [ke(ze(zr.value.title), 1)]),
|
|
1694
1694
|
key: "0"
|
|
1695
|
-
} : void 0,
|
|
1695
|
+
} : void 0, L.value.table.useDialog ? {
|
|
1696
1696
|
name: "actions",
|
|
1697
|
-
fn:
|
|
1697
|
+
fn: O(() => [v("button", {
|
|
1698
1698
|
tabindex: "0",
|
|
1699
1699
|
class: "vue-ui-user-options-button",
|
|
1700
|
-
onClick: t[2] ||= (e) => gr(
|
|
1701
|
-
style:
|
|
1702
|
-
}, [Ae(
|
|
1700
|
+
onClick: t[2] ||= (e) => gr(L.value.userOptions.callbacks.csv),
|
|
1701
|
+
style: x({ cursor: R.value ? "pointer" : "default" })
|
|
1702
|
+
}, [Ae(ve, {
|
|
1703
1703
|
name: "fileCsv",
|
|
1704
1704
|
stroke: zr.value.props.color
|
|
1705
1705
|
}, null, 8, ["stroke"])], 4)]),
|
|
1706
1706
|
key: "1"
|
|
1707
1707
|
} : void 0]), 1040)) : g("", !0),
|
|
1708
|
-
|
|
1708
|
+
w(e.$slots, "skeleton", {}, () => [E(an) ? (S(), h(le, { key: 0 })) : g("", !0)], !0)
|
|
1709
1709
|
], 46, rt));
|
|
1710
1710
|
}
|
|
1711
1711
|
}, [["__scopeId", "data-v-442b6b44"]]);
|
|
1712
1712
|
//#endregion
|
|
1713
|
-
export {
|
|
1713
|
+
export { A as n, Mt as t };
|