vue-data-ui 3.16.5 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -46
- package/dist/{PackageVersion-CvtT2-UH.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- 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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-XhJQD-ri.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BhzRmNak.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CZCn6OMX.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BRyBDt56.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-Dulq2vNg.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-BJD25FJV.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-DCHtRFDV.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-46054xSO.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-CSdFVJx2.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-CmPyW4rp.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-QZjpAemm.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-C051dx6c.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-zCwCXCfe.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-HPy7kRgm.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-DxOwX8nC.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-KD1WwwLS.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-0BJ1t72z.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-lPRZK-_Q.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-WJG6UU4c.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-Cnqgwc0G.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-BXFwr3H7.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-DeYdEiHT.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-C0-M2WoG.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DctMvoRr.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-sLaCn8jd.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-reisxCWX.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-z3S4DcoQ.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CQEaLq9E.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-BGIt_k-N.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-BxXAWrhM.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-CMKIYAuh.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-Tb8aJ91r.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-CLAqGLQH.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-BK2SOFv9.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-BY7vIWHL.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-BlUbhTZ5.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-Bsfw_4y_.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BaORhzZH.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-D8afRw4d.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BE5ADLxq.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-C2QdubPf.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BxP_TDR3.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CgHAoaeu.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-0m7QAV93.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DNt9nHQ9.js → vue-ui-sparkline-B-zOqzrC.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-RU8zQLfe.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-C3qGXmTQ.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-W24y7z12.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot--MWxAM0R.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DKbkhX_x.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BtkypjfT.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-qaGYZUMd.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-CpQYSD-K.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-CUiSLMlj.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-CMfWyA5N.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-H02mH3Rc.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-agcFNYTs.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-B0fNWUVr.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-B8mANOO8.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-DgyEEqnJ.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as Ne, useSlots as Fl, onMounted as No, computed as k, ref as b, shallowRef as Ce, toRefs as Ll, watch as Be, onBeforeUnmount as Nl, openBlock as v, createElementBlock as
|
|
2
|
-
import { j as
|
|
1
|
+
import { defineAsyncComponent as Ne, useSlots as Fl, onMounted as No, computed as k, ref as b, shallowRef as Ce, toRefs as Ll, watch as Be, onBeforeUnmount as Nl, openBlock as v, createElementBlock as M, unref as y, normalizeStyle as xe, normalizeClass as Zt, createElementVNode as E, toDisplayString as tt, createBlock as he, createCommentVNode as N, withCtx as S, renderSlot as C, normalizeProps as Y, guardReactiveProps as X, createSlots as Bo, Fragment as ot, renderList as ft, withKeys as Ro, withModifiers as Jt, mergeProps as pt, createVNode as gt, createTextVNode as yt, Teleport as Bl, resolveDynamicComponent as Rl, nextTick as Do } from "vue";
|
|
2
|
+
import { j as mt, t as zo, m as Dl, p as G, n as zl, o as Vo, q as Vl, s as lt, k as bt, l as at, X as Qt, x as wt, W as kt, T as Ho, a0 as Hl, a1 as El, az as Ct, aA as eo, U as Wl } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { t as Ul, u as Yl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Xl } from "./useConfig-
|
|
4
|
+
import { u as Xl } from "./useConfig-ChRble71.js";
|
|
5
5
|
import { u as jl, B as Kl } from "./BaseScanner-BhhkKVoj.js";
|
|
6
6
|
import { u as ql } from "./usePrinter-CEpYU3r5.js";
|
|
7
7
|
import { u as Gl } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -24,8 +24,8 @@ function Wo(r, p) {
|
|
|
24
24
|
{
|
|
25
25
|
let g = 1 / 0, f = -1 / 0, x = 0;
|
|
26
26
|
for (let P = 0; P < h; P += 1) {
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
const A = r[P].normalizedValue;
|
|
28
|
+
A < g && (g = A), A > f && (f = A), x += A;
|
|
29
29
|
}
|
|
30
30
|
return Math.max(
|
|
31
31
|
p ** 2 * f / x ** 2,
|
|
@@ -73,15 +73,15 @@ function ia(r) {
|
|
|
73
73
|
return (r.x1 - r.x0) * (r.y1 - r.y0);
|
|
74
74
|
}
|
|
75
75
|
function Xo(r, p) {
|
|
76
|
-
const { width: h, height: g, xOffset: f, yOffset: x } = oo(p), m = r.length, P = r.map(($) => $.normalizedValue || 0).reduce(($, V) => $ + V, 0),
|
|
76
|
+
const { width: h, height: g, xOffset: f, yOffset: x } = oo(p), m = r.length, P = r.map(($) => $.normalizedValue || 0).reduce(($, V) => $ + V, 0), A = P / g, $e = P / h;
|
|
77
77
|
let ue = f, fe = x;
|
|
78
78
|
const Z = [];
|
|
79
79
|
if (h >= g) {
|
|
80
80
|
for (let $ = 0; $ < m; $ += 1) {
|
|
81
|
-
const V = r[$], pe = fe + V.normalizedValue /
|
|
81
|
+
const V = r[$], pe = fe + V.normalizedValue / A, Te = {
|
|
82
82
|
x0: ue,
|
|
83
83
|
y0: fe,
|
|
84
|
-
x1: ue +
|
|
84
|
+
x1: ue + A,
|
|
85
85
|
y1: pe
|
|
86
86
|
}, ge = Object.assign({}, V, Te);
|
|
87
87
|
fe = pe, Z.push(ge);
|
|
@@ -105,10 +105,10 @@ function ca(r) {
|
|
|
105
105
|
return Math.min(h, g);
|
|
106
106
|
}
|
|
107
107
|
function da(r, p) {
|
|
108
|
-
const h = r.length, g = r.map((
|
|
108
|
+
const h = r.length, g = r.map((A) => A.value ?? 0).reduce((A, $e) => A + $e, 0), f = p / g, x = [];
|
|
109
109
|
let m, P;
|
|
110
|
-
for (let
|
|
111
|
-
P = r[
|
|
110
|
+
for (let A = 0; A < h; A += 1)
|
|
111
|
+
P = r[A], m = Object.assign({}, P, {
|
|
112
112
|
normalizedValue: P.value * (f || 0)
|
|
113
113
|
}), x.push(m);
|
|
114
114
|
return x;
|
|
@@ -125,12 +125,12 @@ function oo(r) {
|
|
|
125
125
|
function va(r, p, h, g) {
|
|
126
126
|
let f = r, x = p, m = h, P = g;
|
|
127
127
|
for (; ; ) {
|
|
128
|
-
const
|
|
129
|
-
if (
|
|
128
|
+
const A = f.length;
|
|
129
|
+
if (A === 0) {
|
|
130
130
|
const Z = Xo(x, m);
|
|
131
131
|
return P.concat(Z);
|
|
132
132
|
}
|
|
133
|
-
const $e = ca(m), ue = f[0], fe = f.slice(1,
|
|
133
|
+
const $e = ca(m), ue = f[0], fe = f.slice(1, A);
|
|
134
134
|
if (ua(x, ue, $e)) {
|
|
135
135
|
const Z = x.concat(ue);
|
|
136
136
|
f = fe, x = Z, m = m, P = P;
|
|
@@ -160,21 +160,21 @@ function jo(r) {
|
|
|
160
160
|
function ha(r, p) {
|
|
161
161
|
const { width: h, height: g, xOffset: f, yOffset: x } = oo(r);
|
|
162
162
|
if (h >= g) {
|
|
163
|
-
const m = p / g, P = h - m,
|
|
163
|
+
const m = p / g, P = h - m, A = {
|
|
164
164
|
xOffset: f + m,
|
|
165
165
|
yOffset: x,
|
|
166
166
|
width: P,
|
|
167
167
|
height: g
|
|
168
168
|
};
|
|
169
|
-
return Uo(
|
|
169
|
+
return Uo(A);
|
|
170
170
|
} else {
|
|
171
|
-
const m = p / h, P = g - m,
|
|
171
|
+
const m = p / h, P = g - m, A = {
|
|
172
172
|
xOffset: f,
|
|
173
173
|
yOffset: x + m,
|
|
174
174
|
width: h,
|
|
175
175
|
height: P
|
|
176
176
|
};
|
|
177
|
-
return Uo(
|
|
177
|
+
return Uo(A);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], ma = { class: "vue-ui-treemap-crumb-unit" }, ba = { class: "vue-ui-treemap-crumb-unit-label" }, wa = {
|
|
@@ -183,7 +183,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
183
183
|
}, ka = {
|
|
184
184
|
key: 0,
|
|
185
185
|
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
186
|
-
}, Ca = { style: { position: "relative" } }, xa = ["xmlns", "aria-describedby", "viewBox"], $a = { key: 0 }, Ta = ["id"], Sa = ["stop-color"], Aa = ["stop-color"], Ma = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Pa = ["width", "height", "x", "y"], Oa = ["innerHTML"],
|
|
186
|
+
}, Ca = { style: { position: "relative" } }, xa = ["xmlns", "aria-describedby", "viewBox"], $a = { key: 0 }, Ta = ["id"], Sa = ["stop-color"], Aa = ["stop-color"], Ma = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Pa = ["width", "height", "x", "y"], Oa = ["innerHTML"], Ia = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], _a = ["innerHTML"], Fa = ["x", "y", "height", "width"], La = {
|
|
187
187
|
style: {
|
|
188
188
|
width: "100%",
|
|
189
189
|
height: "100%"
|
|
@@ -215,11 +215,11 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
215
215
|
},
|
|
216
216
|
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
217
217
|
setup(r, { expose: p, emit: h }) {
|
|
218
|
-
const g = Ne(() => import("./DataTable-DT2kIdQ6.js")), f = Ne(() => import("./PenAndPaper-Ct3qJ4lA.js")), x = Ne(() => import("./vue-ui-accordion-
|
|
218
|
+
const g = Ne(() => import("./DataTable-DT2kIdQ6.js")), f = Ne(() => import("./PenAndPaper-Ct3qJ4lA.js")), x = Ne(() => import("./vue-ui-accordion-CnDW2UQL.js")), m = Ne(() => import("./Tooltip-C8KGyqQk.js")), P = Ne(() => import("./UserOptions-rW2fRf3V.js")), A = Ne(() => import("./PackageVersion-B3kmPxTR.js")), $e = Ne(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_treemap: ue } = Xl(), { isThemeValid: fe, warnInvalidTheme: Z } = Zl(), $ = r, V = h, pe = Fl();
|
|
219
219
|
No(() => {
|
|
220
220
|
pe["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
221
221
|
});
|
|
222
|
-
const Te = k(() => !!$.dataset && $.dataset.length), ge = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), le = b(
|
|
222
|
+
const Te = k(() => !!$.dataset && $.dataset.length), ge = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), le = b(mt()), Ue = b(!1), xt = b(""), _e = b(!1), lo = b(0), B = b([]), re = Ce(null), ao = Ce(null), no = Ce(null), so = Ce(null), uo = Ce(null), ro = b(0), $t = b(0), Tt = b(0), _ = b([]), St = b(null), io = b(!1), Ye = b(null), At = b(null), Xe = b(null), K = b(/* @__PURE__ */ new Map()), nt = b(!1), st = b(!1), ye = b(null), co = b({ x: 0, y: 0 }), je = b("pointer"), Mt = b(!1), t = b(It()), Se = k(() => t.value.userOptions.useCursorPointer), Ko = k(() => zo({
|
|
223
223
|
defaultConfig: {
|
|
224
224
|
userOptions: { show: !1 },
|
|
225
225
|
style: {
|
|
@@ -240,10 +240,10 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
242
|
userConfig: t.value.skeletonConfig ?? {}
|
|
243
|
-
})), { loading: Ae, FINAL_DATASET:
|
|
243
|
+
})), { loading: Ae, FINAL_DATASET: Pt, manualLoading: qo } = jl({
|
|
244
244
|
...Ll($),
|
|
245
245
|
FINAL_CONFIG: t,
|
|
246
|
-
prepareConfig:
|
|
246
|
+
prepareConfig: It,
|
|
247
247
|
skeletonDataset: $.config?.skeletonDataset ?? [
|
|
248
248
|
{
|
|
249
249
|
name: "_",
|
|
@@ -264,8 +264,8 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
264
264
|
defaultConfig: t.value,
|
|
265
265
|
userConfig: Ko.value
|
|
266
266
|
})
|
|
267
|
-
}), { userOptionsVisible:
|
|
268
|
-
function
|
|
267
|
+
}), { userOptionsVisible: Ot, setUserOptionsVisibility: vo, keepUserOptionState: ho } = Jl({ config: t.value }), { svgRef: Fe } = Ql({ config: t.value.style.chart.title });
|
|
268
|
+
function It() {
|
|
269
269
|
const e = to({
|
|
270
270
|
userConfig: $.config,
|
|
271
271
|
defaultConfig: ue
|
|
@@ -286,9 +286,9 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
288
|
Be(() => $.config, (e) => {
|
|
289
|
-
Ae.value || (t.value =
|
|
289
|
+
Ae.value || (t.value = It()), Ot.value = !t.value.userOptions.showOnChartHover, ro.value += 1, $t.value += 1, Tt.value += 1, J.value.showTable = t.value.table.show, J.value.showTooltip = t.value.style.chart.tooltip.show;
|
|
290
290
|
}, { deep: !0 });
|
|
291
|
-
const { isPrinting: _t, isImaging:
|
|
291
|
+
const { isPrinting: _t, isImaging: Ft, generatePdf: fo, generateImage: po } = ql({
|
|
292
292
|
elementId: `treemap_${le.value}`,
|
|
293
293
|
fileName: t.value.style.chart.title.text || "vue-ui-treemap",
|
|
294
294
|
options: t.value.userOptions.print
|
|
@@ -313,8 +313,8 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
313
313
|
return e * (o / a.height);
|
|
314
314
|
}
|
|
315
315
|
function Jo() {
|
|
316
|
-
if (!
|
|
317
|
-
const e =
|
|
316
|
+
if (!St.value || me.value.length <= 1) return 0;
|
|
317
|
+
const e = St.value, l = getComputedStyle(e), o = e.offsetHeight + parseFloat(l.marginTop || "0") + parseFloat(l.marginBottom || "0") + parseFloat(l.paddingTop || "0") + parseFloat(l.paddingBottom || "0");
|
|
318
318
|
return Zo(o);
|
|
319
319
|
}
|
|
320
320
|
const D = k(() => {
|
|
@@ -330,9 +330,9 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
330
330
|
vbHeight: o - a,
|
|
331
331
|
offsetY: a
|
|
332
332
|
};
|
|
333
|
-
}),
|
|
333
|
+
}), j = b(Pt.value), Me = b(j.value), go = Ce(/* @__PURE__ */ new Map());
|
|
334
334
|
Be(
|
|
335
|
-
[
|
|
335
|
+
[j, () => t.value],
|
|
336
336
|
() => {
|
|
337
337
|
Xe.value = null, K.value = /* @__PURE__ */ new Map();
|
|
338
338
|
},
|
|
@@ -351,28 +351,28 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
351
351
|
);
|
|
352
352
|
function yo(e) {
|
|
353
353
|
Array.isArray(e) && e.forEach((l, o) => {
|
|
354
|
-
l.id || (l.id =
|
|
354
|
+
l.id || (l.id = mt());
|
|
355
355
|
let a = lt(l.color) || go.value.get(l.id) || ut.value[o] || G[o] || G[o % G.length];
|
|
356
356
|
a = lt(a), go.value.set(l.id, a), l.color = a, mo(l, a);
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
function mo(e, l) {
|
|
360
360
|
Array.isArray(e.children) && e.children.forEach((o) => {
|
|
361
|
-
o.id || (o.id =
|
|
361
|
+
o.id || (o.id = mt()), o.parentId = e.id, o.color = l, mo(o, l);
|
|
362
362
|
});
|
|
363
363
|
}
|
|
364
364
|
function Qo() {
|
|
365
|
-
if (!
|
|
366
|
-
Me.value =
|
|
365
|
+
if (!_.value.length)
|
|
366
|
+
Me.value = j.value.slice();
|
|
367
367
|
else {
|
|
368
|
-
const e =
|
|
368
|
+
const e = _.value[_.value.length - 1], l = te(e);
|
|
369
369
|
Me.value = l?.children?.slice() || [];
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
Be(
|
|
373
|
-
() =>
|
|
373
|
+
() => Pt.value,
|
|
374
374
|
() => {
|
|
375
|
-
|
|
375
|
+
j.value = Pt.value, yo(j.value), Qo(), Tt.value += 1, $t.value += 1;
|
|
376
376
|
},
|
|
377
377
|
{ deep: !0, immediate: !0, flush: "post" }
|
|
378
378
|
);
|
|
@@ -386,7 +386,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
386
386
|
componentName: "VueUiTreemap",
|
|
387
387
|
type: "dataset",
|
|
388
388
|
debug: el.value
|
|
389
|
-
}), yo(
|
|
389
|
+
}), yo(j.value), Vo($.dataset) || (qo.value = t.value.loading), t.value.responsive) {
|
|
390
390
|
const e = Ul(() => {
|
|
391
391
|
const { width: l, height: o } = Yl({
|
|
392
392
|
chart: re.value,
|
|
@@ -408,7 +408,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
408
408
|
const Ke = k(() => Me.value.map((e, l) => ({
|
|
409
409
|
...e,
|
|
410
410
|
color: lt(e.color) || ut.value[l] || G[l] || G[l % G.length]
|
|
411
|
-
})).filter((e) => !B.value.includes(e.id))), De = k(() =>
|
|
411
|
+
})).filter((e) => !B.value.includes(e.id))), De = k(() => j.value.filter((e) => !B.value.includes(e.id)).map((e) => e.value || 0).reduce((e, l) => e + l, 0)), Lt = k({
|
|
412
412
|
get() {
|
|
413
413
|
let e = [...Ke.value];
|
|
414
414
|
return t.value.style.chart.layout.sorted && (e = [...Ke.value].sort((l, o) => o.value - l.value)), e.map((l) => ({
|
|
@@ -424,7 +424,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
424
424
|
}
|
|
425
425
|
function ol(e, l, o) {
|
|
426
426
|
const a = t.value.style.chart.layout.rects.colorRatio - bo(l, o);
|
|
427
|
-
return
|
|
427
|
+
return wt(e, a < 0 ? 0 : a);
|
|
428
428
|
}
|
|
429
429
|
function wo(e) {
|
|
430
430
|
return Array.isArray(e.children) && e.children.length > 0;
|
|
@@ -462,8 +462,8 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
const Co = k(() => {
|
|
465
|
-
const e =
|
|
466
|
-
const s = n.children ? n.children.reduce((q, Oe) => q + (Number(Oe.value) || 0), 0) : n.value, { children: u, parentId: i, id: c, value: d, name: w, color: z, ...T } = n, H = n.id ||
|
|
465
|
+
const e = Lt.value.map((n) => Number(n.value) || 0).reduce((n, s) => n + s, 0) || 1, l = Lt.value.map((n) => {
|
|
466
|
+
const s = n.children ? n.children.reduce((q, Oe) => q + (Number(Oe.value) || 0), 0) : n.value, { children: u, parentId: i, id: c, value: d, name: w, color: z, ...T } = n, H = n.id || mt();
|
|
467
467
|
return {
|
|
468
468
|
...T,
|
|
469
469
|
id: H,
|
|
@@ -479,7 +479,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
479
479
|
) : void 0
|
|
480
480
|
};
|
|
481
481
|
});
|
|
482
|
-
if (
|
|
482
|
+
if (_.value.length === 0) {
|
|
483
483
|
if (!Xe.value) {
|
|
484
484
|
const i = { x0: 0, y0: 0, x1: 1, y1: 1 };
|
|
485
485
|
Xe.value = Yo(l, i);
|
|
@@ -507,7 +507,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
507
507
|
return Yo(l, a);
|
|
508
508
|
});
|
|
509
509
|
function al(e) {
|
|
510
|
-
const l =
|
|
510
|
+
const l = _.value.length ? _.value[_.value.length - 1] : null, o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
511
511
|
for (const i of e) {
|
|
512
512
|
let c = rl(i.id);
|
|
513
513
|
if (l) {
|
|
@@ -551,21 +551,21 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
551
551
|
ancestorsByLeaf: a
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
const
|
|
555
|
-
const e =
|
|
554
|
+
const Nt = k(() => al(Co.value)), nl = k(() => {
|
|
555
|
+
const e = Nt.value.wrappers;
|
|
556
556
|
return e.length ? e.filter((l) => sl(l)) : [];
|
|
557
557
|
});
|
|
558
|
-
function
|
|
558
|
+
function Bt(e) {
|
|
559
559
|
return ze(e) * 1.2;
|
|
560
560
|
}
|
|
561
561
|
function sl(e) {
|
|
562
|
-
const l =
|
|
562
|
+
const l = Bt(e);
|
|
563
563
|
return Q(e) < l * 1.1 ? !1 : (e.labelY0 = e.y0, !0);
|
|
564
564
|
}
|
|
565
565
|
const F = k(() => ul({
|
|
566
566
|
rects: Co.value,
|
|
567
|
-
wrappers:
|
|
568
|
-
ancestorsByLeaf:
|
|
567
|
+
wrappers: Nt.value.wrappers,
|
|
568
|
+
ancestorsByLeaf: Nt.value.ancestorsByLeaf
|
|
569
569
|
}));
|
|
570
570
|
function ul({ rects: e, wrappers: l, ancestorsByLeaf: o }) {
|
|
571
571
|
if (!l.length || !o) return e;
|
|
@@ -577,9 +577,9 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
577
577
|
for (const i of s) {
|
|
578
578
|
const c = a.get(i);
|
|
579
579
|
if (!c) continue;
|
|
580
|
-
const d = Q(c), w =
|
|
580
|
+
const d = Q(c), w = Bt(c);
|
|
581
581
|
if (d < w * 1.1) continue;
|
|
582
|
-
const z = ze(c), T = z * 1.2, H = z * 0.5, q = z * 0.5, Oe = T * 0.5, Je = ee(c) / 3, Qe = Math.min(H, Je),
|
|
582
|
+
const z = ze(c), T = z * 1.2, H = z * 0.5, q = z * 0.5, Oe = T * 0.5, Je = ee(c) / 3, Qe = Math.min(H, Je), Ie = d * 0.25, Ht = Math.min(q, Ie), Wt = (typeof c.labelY0 == "number" ? c.labelY0 : c.y0) + w, ce = Math.max(u.x0, c.x0 + Qe), we = Math.min(u.x1, c.x1 - Qe), ke = Math.max(u.y0, Wt + Oe), Ut = Math.min(u.y1, c.y1 - Ht);
|
|
583
583
|
if (we <= ce || Ut <= ke)
|
|
584
584
|
break;
|
|
585
585
|
u = {
|
|
@@ -612,7 +612,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
612
612
|
return T = Math.min(T, H * c), T = Math.max(a, Math.min(n, T)), T;
|
|
613
613
|
}
|
|
614
614
|
function xo(e) {
|
|
615
|
-
|
|
615
|
+
_e.value = e, lo.value += 1;
|
|
616
616
|
}
|
|
617
617
|
const ie = k(() => ({
|
|
618
618
|
startX: 0,
|
|
@@ -620,7 +620,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
620
620
|
width: D.value.vbWidth,
|
|
621
621
|
height: D.value.vbHeight
|
|
622
622
|
}));
|
|
623
|
-
function te(e, l =
|
|
623
|
+
function te(e, l = j.value) {
|
|
624
624
|
for (const o of l) {
|
|
625
625
|
if (o.id === e)
|
|
626
626
|
return o;
|
|
@@ -642,28 +642,28 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
642
642
|
}
|
|
643
643
|
return l;
|
|
644
644
|
}
|
|
645
|
-
const Ve = k(() =>
|
|
645
|
+
const Ve = k(() => _.value.length > 0);
|
|
646
646
|
function qe(e, l) {
|
|
647
647
|
if (!e) {
|
|
648
|
-
Me.value =
|
|
648
|
+
Me.value = j.value.slice(), V("selectDatapoint", void 0), _.value = [];
|
|
649
649
|
return;
|
|
650
650
|
}
|
|
651
651
|
t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: e, seriesIndex: l });
|
|
652
652
|
const o = te(e.id);
|
|
653
653
|
if (o && o.children?.length)
|
|
654
|
-
|
|
654
|
+
_.value.push(o.id), Me.value = o.children.slice(), V("selectDatapoint", e);
|
|
655
655
|
else if (e.parentId) {
|
|
656
|
-
|
|
656
|
+
_.value.push(e.parentId);
|
|
657
657
|
const a = te(e.parentId);
|
|
658
658
|
Me.value = a.children.slice(), V("selectDatapoint", e);
|
|
659
|
-
} else if (
|
|
660
|
-
|
|
661
|
-
const a =
|
|
659
|
+
} else if (_.value.length > 0) {
|
|
660
|
+
_.value.pop();
|
|
661
|
+
const a = _.value[_.value.length - 1];
|
|
662
662
|
if (a) {
|
|
663
663
|
const n = te(a);
|
|
664
664
|
Me.value = n.children.slice();
|
|
665
665
|
} else
|
|
666
|
-
Me.value =
|
|
666
|
+
Me.value = j.value.slice(), _.value = [], V("selectDatapoint", void 0);
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
function il(e) {
|
|
@@ -673,8 +673,8 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
673
673
|
const e = [
|
|
674
674
|
{ id: null, label: "All" }
|
|
675
675
|
];
|
|
676
|
-
if (
|
|
677
|
-
let l = te(
|
|
676
|
+
if (_.value.length > 0) {
|
|
677
|
+
let l = te(_.value[_.value.length - 1]);
|
|
678
678
|
const o = [];
|
|
679
679
|
for (; l; )
|
|
680
680
|
o.unshift(l), l = l.parentId ? te(l.parentId) : null;
|
|
@@ -686,17 +686,17 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
688
|
return e;
|
|
689
|
-
}), R = Ce(null), He = k(() =>
|
|
689
|
+
}), R = Ce(null), He = k(() => j.value.map((e, l) => ({
|
|
690
690
|
...e,
|
|
691
691
|
color: lt(e.color) || ut.value[l] || G[l] || G[l % G.length],
|
|
692
692
|
shape: "square"
|
|
693
693
|
})).sort((e, l) => l.value - e.value).map((e, l) => {
|
|
694
|
-
const o = e.value /
|
|
694
|
+
const o = e.value / j.value.map((a) => a.value).reduce((a, n) => a + n, 0);
|
|
695
695
|
return {
|
|
696
696
|
...e,
|
|
697
697
|
proportion: o,
|
|
698
698
|
opacity: B.value.includes(e.id) ? 0.5 : 1,
|
|
699
|
-
display: `${e.name}${t.value.style.chart.legend.showPercentage || t.value.style.chart.legend.showValue ? ": " : ""}${t.value.style.chart.legend.showValue ?
|
|
699
|
+
display: `${e.name}${t.value.style.chart.legend.showPercentage || t.value.style.chart.legend.showValue ? ": " : ""}${t.value.style.chart.legend.showValue ? bt(
|
|
700
700
|
t.value.style.chart.layout.labels.formatter,
|
|
701
701
|
e.value,
|
|
702
702
|
at({
|
|
@@ -722,12 +722,12 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
function rt(e) {
|
|
725
|
-
R.value = null, B.value.includes(e.id) ? B.value = B.value.filter((l) => l !== e.id) : B.value.length < $.dataset.length - 1 && B.value.push(e.id), V("selectLegend",
|
|
725
|
+
R.value = null, B.value.includes(e.id) ? B.value = B.value.filter((l) => l !== e.id) : B.value.length < $.dataset.length - 1 && B.value.push(e.id), V("selectLegend", Lt.value);
|
|
726
726
|
}
|
|
727
727
|
function $o(e) {
|
|
728
|
-
if (!
|
|
728
|
+
if (!j.value.length)
|
|
729
729
|
return t.value.debug && console.warn("VueUiTreemap - There are no series to show."), null;
|
|
730
|
-
const l =
|
|
730
|
+
const l = j.value.find((o) => o.name === e);
|
|
731
731
|
return l || (t.value.debug && console.warn(`VueUiTreemap - Series name not found "${e}"`), null);
|
|
732
732
|
}
|
|
733
733
|
function vl(e) {
|
|
@@ -741,10 +741,10 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
741
741
|
function fl({ datapoint: e, seriesIndex: l }) {
|
|
742
742
|
R.value = null, Ue.value = !1, ye.value = null, je.value = "pointer", t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: l });
|
|
743
743
|
}
|
|
744
|
-
const
|
|
744
|
+
const it = b(null);
|
|
745
745
|
function To({ datapoint: e, seriesIndex: l, triggerMode: o = "pointer" }) {
|
|
746
746
|
if (Ee.value) return;
|
|
747
|
-
t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }), ye.value = l, je.value = o, R.value = e,
|
|
747
|
+
t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }), ye.value = l, je.value = o, R.value = e, it.value = { datapoint: e, seriesIndex: l, config: t.value, series: Ke.value };
|
|
748
748
|
const a = t.value.style.chart.tooltip.customFormat;
|
|
749
749
|
if (Ho(a) && Wl(() => a({
|
|
750
750
|
seriesIndex: l,
|
|
@@ -752,7 +752,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
752
752
|
series: Ke.value,
|
|
753
753
|
config: t.value
|
|
754
754
|
})))
|
|
755
|
-
|
|
755
|
+
xt.value = a({
|
|
756
756
|
seriesIndex: l,
|
|
757
757
|
datapoint: e,
|
|
758
758
|
series: Ke.value,
|
|
@@ -760,7 +760,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
760
760
|
});
|
|
761
761
|
else {
|
|
762
762
|
let n = "";
|
|
763
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${t.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>${
|
|
763
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${t.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>${bt(
|
|
764
764
|
t.value.style.chart.layout.labels.formatter,
|
|
765
765
|
e.value,
|
|
766
766
|
at({
|
|
@@ -770,7 +770,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
770
770
|
r: t.value.style.chart.tooltip.roundingValue
|
|
771
771
|
}),
|
|
772
772
|
{ datapoint: e, seriesIndex: l }
|
|
773
|
-
)}</b>`,
|
|
773
|
+
)}</b>`, xt.value = `<div>${n}</div>`;
|
|
774
774
|
}
|
|
775
775
|
Ue.value = !0;
|
|
776
776
|
}
|
|
@@ -795,7 +795,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
795
795
|
t.value.table.columnNames.value,
|
|
796
796
|
t.value.table.columnNames.percentage
|
|
797
797
|
], l = be.value.head.map((n, s) => {
|
|
798
|
-
const u =
|
|
798
|
+
const u = bt(
|
|
799
799
|
t.value.style.chart.layout.labels.formatter,
|
|
800
800
|
be.value.body[s],
|
|
801
801
|
at({
|
|
@@ -854,12 +854,12 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
854
854
|
function Dt() {
|
|
855
855
|
Ge.value = !Ge.value;
|
|
856
856
|
}
|
|
857
|
-
const
|
|
857
|
+
const ct = b(null);
|
|
858
858
|
function Mo(e) {
|
|
859
|
-
|
|
859
|
+
ct.value = e;
|
|
860
860
|
}
|
|
861
861
|
function Po() {
|
|
862
|
-
|
|
862
|
+
ct.value = null;
|
|
863
863
|
}
|
|
864
864
|
async function gl({ scale: e = 2 } = {}) {
|
|
865
865
|
if (!re.value) return;
|
|
@@ -883,7 +883,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
883
883
|
color: t.value.table.th.color,
|
|
884
884
|
headerColor: t.value.table.th.color,
|
|
885
885
|
headerBg: t.value.table.th.backgroundColor,
|
|
886
|
-
isFullscreen:
|
|
886
|
+
isFullscreen: _e.value,
|
|
887
887
|
fullscreenParent: re.value,
|
|
888
888
|
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
889
889
|
isCursorPointer: Se.value
|
|
@@ -908,7 +908,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
908
908
|
t.value.table.show || (e && t.value.table.useDialog && Ye.value ? Ye.value.open() : "close" in Ye.value && Ye.value.close());
|
|
909
909
|
});
|
|
910
910
|
function Oo() {
|
|
911
|
-
J.value.showTable = !1,
|
|
911
|
+
J.value.showTable = !1, At.value && At.value.setTableIconState(!1);
|
|
912
912
|
}
|
|
913
913
|
const yl = k(() => He.value.map((e) => ({
|
|
914
914
|
...e,
|
|
@@ -920,7 +920,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
920
920
|
legendItems: yl,
|
|
921
921
|
backgroundColor: ml
|
|
922
922
|
});
|
|
923
|
-
async function
|
|
923
|
+
async function Io({ isCb: e }) {
|
|
924
924
|
st.value = !0, await Do();
|
|
925
925
|
try {
|
|
926
926
|
if (e) {
|
|
@@ -947,16 +947,16 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
947
947
|
const o = ze(e) * 0.6;
|
|
948
948
|
return Math.max(0, ee(e) - 2 * o);
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function _o({ rect: e, seriesIndex: l, isTitle: o = !1 }) {
|
|
951
951
|
const a = t.value.style.chart.layout.labels.name.show, n = t.value.style.chart.layout.labels.value.show;
|
|
952
952
|
if (!a && !n) return "";
|
|
953
|
-
const s =
|
|
953
|
+
const s = _.value.length === 0, u = s ? `${e.id}:${o ? "title" : "rect"}` : null;
|
|
954
954
|
if (s && K.value.has(u))
|
|
955
955
|
return K.value.get(u);
|
|
956
956
|
const i = Math.max(2, ze(e) / 3), c = Math.max(8, ze(e)), d = c * 1.2, w = Math.max(0, ee(e) - i * 2), z = Math.max(0, Q(e) - i * 2);
|
|
957
957
|
if (w <= 2 || z <= c * 0.8)
|
|
958
958
|
return s && u && K.value.set(u, ""), "";
|
|
959
|
-
const T = t.value.style.fontFamily, H = t.value.style.chart.layout.labels.name.bold ? "600" : "400", q = t.value.style.chart.layout.labels.value.bold ? "600" : "400", Oe = o ? t.value.style.chart.layout.rects.group.label.adaptColorToBackground ? t.value.style.chart.layout.rects.group.useSeriesBackgroundColor ? wt(
|
|
959
|
+
const T = t.value.style.fontFamily, H = t.value.style.chart.layout.labels.name.bold ? "600" : "400", q = t.value.style.chart.layout.labels.value.bold ? "600" : "400", Oe = o ? t.value.style.chart.layout.rects.group.label.adaptColorToBackground ? t.value.style.chart.layout.rects.group.useSeriesBackgroundColor ? kt(wt(e.color, 0.4)) : kt(t.value.style.chart.backgroundColor) : t.value.style.chart.layout.rects.group.label.color : kt(e.color), Vt = a ? String(e.name ?? "") : "", Je = n ? bt(
|
|
960
960
|
t.value.style.chart.layout.labels.formatter,
|
|
961
961
|
e.value ?? 0,
|
|
962
962
|
at({
|
|
@@ -967,34 +967,34 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
967
967
|
}),
|
|
968
968
|
{ datapoint: e, seriesIndex: l }
|
|
969
969
|
) : "", Qe = o ? $l(e) : w;
|
|
970
|
-
function
|
|
970
|
+
function Ie(L, ae = c, et = "400") {
|
|
971
971
|
const oe = document.createElementNS(Qt, "svg");
|
|
972
972
|
oe.setAttribute("width", "0"), oe.setAttribute("height", "0"), oe.style.position = "absolute", oe.style.visibility = "hidden", oe.style.pointerEvents = "none";
|
|
973
973
|
const ne = document.createElementNS(Qt, "text");
|
|
974
974
|
ne.setAttribute("font-size", String(ae)), ne.setAttribute("font-family", T), ne.setAttribute("font-weight", String(et)), ne.textContent = L || "", oe.appendChild(ne), document.body.appendChild(oe);
|
|
975
|
-
const
|
|
976
|
-
return document.body.removeChild(oe),
|
|
975
|
+
const dt = ne.getComputedTextLength();
|
|
976
|
+
return document.body.removeChild(oe), dt;
|
|
977
977
|
}
|
|
978
978
|
if (o) {
|
|
979
979
|
let L = "";
|
|
980
980
|
if (a && (L = Vt), n && (L = L ? `${L} (${Je})` : Je), !L)
|
|
981
981
|
return s && u && K.value.set(u, ""), "";
|
|
982
982
|
let ae = L;
|
|
983
|
-
if (
|
|
983
|
+
if (Ie(ae, c, H) > Qe) {
|
|
984
984
|
let U = ae;
|
|
985
|
-
for (; U.length &&
|
|
985
|
+
for (; U.length && Ie(U + "…", c, H) > Qe; )
|
|
986
986
|
U = U.slice(0, -1);
|
|
987
987
|
ae = U ? U + "…" : "";
|
|
988
988
|
}
|
|
989
989
|
if (!ae)
|
|
990
990
|
return s && u && K.value.set(u, ""), "";
|
|
991
|
-
const et =
|
|
991
|
+
const et = Bt(e), oe = typeof e.depth == "number" ? e.depth : 0, ne = et * 1.4, dt = typeof e.labelY0 == "number" ? e.labelY0 : e.y0 + oe * ne, jt = e.x0 + i + c / 2, W = dt + i + c, se = `<text
|
|
992
992
|
x="${jt}"
|
|
993
993
|
y="${W}"
|
|
994
994
|
font-size="${c}"
|
|
995
|
-
font-family="${
|
|
995
|
+
font-family="${Ct(T)}"
|
|
996
996
|
font-weight="${H}"
|
|
997
|
-
fill="${
|
|
997
|
+
fill="${Ct(Oe)}"
|
|
998
998
|
paint-order="stroke"
|
|
999
999
|
stroke="transparent"
|
|
1000
1000
|
stroke-width="0"
|
|
@@ -1007,30 +1007,30 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1007
1007
|
const Ht = n ? 1 : 0, Et = Math.max(0, Math.floor(z / d) - Ht);
|
|
1008
1008
|
if (Et <= 0 && !n)
|
|
1009
1009
|
return s && u && K.value.set(u, ""), "";
|
|
1010
|
-
function Wt(L, ae, et, oe, ne,
|
|
1010
|
+
function Wt(L, ae, et, oe, ne, dt) {
|
|
1011
1011
|
const jt = String(L).split(/\s+/).filter(Boolean), W = [];
|
|
1012
1012
|
let se = "";
|
|
1013
|
-
function U(
|
|
1014
|
-
return
|
|
1013
|
+
function U(I) {
|
|
1014
|
+
return Ie(I, et, oe) <= ae;
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1017
|
-
if (U(
|
|
1016
|
+
function Il(I) {
|
|
1017
|
+
if (U(I)) return [I];
|
|
1018
1018
|
const de = [];
|
|
1019
1019
|
let O = 0;
|
|
1020
|
-
for (; O <
|
|
1021
|
-
let ve = 1, qt =
|
|
1020
|
+
for (; O < I.length; ) {
|
|
1021
|
+
let ve = 1, qt = I.length - O, Gt = 1;
|
|
1022
1022
|
for (; ve <= qt; ) {
|
|
1023
|
-
const
|
|
1024
|
-
U(
|
|
1023
|
+
const ht = ve + qt >> 1, _l = I.slice(O, O + ht);
|
|
1024
|
+
U(_l) ? (Gt = ht, ve = ht + 1) : qt = ht - 1;
|
|
1025
1025
|
}
|
|
1026
|
-
de.push(
|
|
1026
|
+
de.push(I.slice(O, O + Gt)), O += Gt;
|
|
1027
1027
|
}
|
|
1028
1028
|
return de;
|
|
1029
1029
|
}
|
|
1030
|
-
const
|
|
1030
|
+
const vt = jt.flatMap((I) => Il(I));
|
|
1031
1031
|
let Kt = !1;
|
|
1032
|
-
for (let
|
|
1033
|
-
const de =
|
|
1032
|
+
for (let I = 0; I < vt.length; I += 1) {
|
|
1033
|
+
const de = vt[I], O = se ? se + " " + de : de;
|
|
1034
1034
|
if (U(O))
|
|
1035
1035
|
se = O;
|
|
1036
1036
|
else {
|
|
@@ -1046,18 +1046,18 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1046
1046
|
break;
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
|
-
|
|
1049
|
+
I === vt.length - 1 && se && W.length < ne && W.push(se);
|
|
1050
1050
|
}
|
|
1051
|
-
if (W.length && W.join(" ") !==
|
|
1052
|
-
let
|
|
1053
|
-
if (!U(
|
|
1054
|
-
let O =
|
|
1051
|
+
if (W.length && W.join(" ") !== vt.join(" ") && (Kt = !0), Kt && W.length > 0) {
|
|
1052
|
+
let I = W[W.length - 1];
|
|
1053
|
+
if (!U(I)) {
|
|
1054
|
+
let O = I;
|
|
1055
1055
|
for (; O.length && !U(O); ) O = O.slice(0, -1);
|
|
1056
|
-
|
|
1056
|
+
I = O;
|
|
1057
1057
|
}
|
|
1058
|
-
let de =
|
|
1058
|
+
let de = I + "…";
|
|
1059
1059
|
if (!U(de)) {
|
|
1060
|
-
let O =
|
|
1060
|
+
let O = I;
|
|
1061
1061
|
for (; O.length && !U(O + "…"); )
|
|
1062
1062
|
O = O.slice(0, -1);
|
|
1063
1063
|
de = O + "…";
|
|
@@ -1075,11 +1075,11 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1075
1075
|
) : [];
|
|
1076
1076
|
let we = c, ke = String(Je);
|
|
1077
1077
|
if (n) {
|
|
1078
|
-
for (;
|
|
1078
|
+
for (; Ie(ke, we, q) > w && we > Math.max(8, c * 0.75); )
|
|
1079
1079
|
we -= 1;
|
|
1080
|
-
if (
|
|
1080
|
+
if (Ie(ke, we, q) > w) {
|
|
1081
1081
|
let L = ke;
|
|
1082
|
-
for (; L.length &&
|
|
1082
|
+
for (; L.length && Ie(L + "…", we, q) > w; )
|
|
1083
1083
|
L = L.slice(0, -1);
|
|
1084
1084
|
if (ke = L ? L + "…" : "", !ke.length)
|
|
1085
1085
|
return s && u && K.value.set(u, ""), "";
|
|
@@ -1114,8 +1114,8 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1114
1114
|
x="${Yt}"
|
|
1115
1115
|
y="${Ol}"
|
|
1116
1116
|
font-size="${c}"
|
|
1117
|
-
font-family="${
|
|
1118
|
-
fill="${
|
|
1117
|
+
font-family="${Ct(T)}"
|
|
1118
|
+
fill="${Ct(Oe)}"
|
|
1119
1119
|
paint-order="stroke"
|
|
1120
1120
|
stroke="transparent"
|
|
1121
1121
|
stroke-width="0"
|
|
@@ -1143,10 +1143,10 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1143
1143
|
}));
|
|
1144
1144
|
}
|
|
1145
1145
|
function Sl() {
|
|
1146
|
-
ye.value = null,
|
|
1146
|
+
ye.value = null, Mt.value = !0;
|
|
1147
1147
|
}
|
|
1148
1148
|
function Al() {
|
|
1149
|
-
ye.value = null, je.value = "pointer", Ue.value = !1, R.value = null,
|
|
1149
|
+
ye.value = null, je.value = "pointer", Ue.value = !1, R.value = null, Mt.value = !1;
|
|
1150
1150
|
}
|
|
1151
1151
|
function Ml(e) {
|
|
1152
1152
|
if (!Fe.value || Ge.value || document.activeElement !== Fe.value || !F.value.length || Ee.value) return;
|
|
@@ -1192,7 +1192,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1192
1192
|
getImage: gl,
|
|
1193
1193
|
generateCsv: Rt,
|
|
1194
1194
|
generateImage: po,
|
|
1195
|
-
generateSvg:
|
|
1195
|
+
generateSvg: Io,
|
|
1196
1196
|
generatePdf: fo,
|
|
1197
1197
|
hideSeries: hl,
|
|
1198
1198
|
showSeries: vl,
|
|
@@ -1201,10 +1201,10 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1201
1201
|
toggleAnnotator: Dt,
|
|
1202
1202
|
toggleFullscreen: xo,
|
|
1203
1203
|
copyAlt: Fo
|
|
1204
|
-
}), (e, l) => (v(),
|
|
1204
|
+
}), (e, l) => (v(), M("div", {
|
|
1205
1205
|
ref_key: "treemapChart",
|
|
1206
1206
|
ref: re,
|
|
1207
|
-
class: Zt(`vue-data-ui-component vue-ui-treemap ${
|
|
1207
|
+
class: Zt(`vue-data-ui-component vue-ui-treemap ${_e.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1208
1208
|
style: xe(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive ? "height: 100%;" : ""} text-align:center;background:${t.value.style.chart.backgroundColor}`),
|
|
1209
1209
|
id: `treemap_${le.value}`,
|
|
1210
1210
|
onMouseenter: l[2] || (l[2] = () => y(vo)(!0)),
|
|
@@ -1233,34 +1233,34 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1233
1233
|
isCursorPointer: Se.value,
|
|
1234
1234
|
onClose: Dt
|
|
1235
1235
|
}, {
|
|
1236
|
-
"annotator-action-close":
|
|
1236
|
+
"annotator-action-close": S(() => [
|
|
1237
1237
|
C(e.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1238
1238
|
]),
|
|
1239
|
-
"annotator-action-color":
|
|
1240
|
-
C(e.$slots, "annotator-action-color", X(
|
|
1239
|
+
"annotator-action-color": S(({ color: o }) => [
|
|
1240
|
+
C(e.$slots, "annotator-action-color", Y(X({ color: o })), void 0, !0)
|
|
1241
1241
|
]),
|
|
1242
|
-
"annotator-action-draw":
|
|
1243
|
-
C(e.$slots, "annotator-action-draw", X(
|
|
1242
|
+
"annotator-action-draw": S(({ mode: o }) => [
|
|
1243
|
+
C(e.$slots, "annotator-action-draw", Y(X({ mode: o })), void 0, !0)
|
|
1244
1244
|
]),
|
|
1245
|
-
"annotator-action-undo":
|
|
1246
|
-
C(e.$slots, "annotator-action-undo", X(
|
|
1245
|
+
"annotator-action-undo": S(({ disabled: o }) => [
|
|
1246
|
+
C(e.$slots, "annotator-action-undo", Y(X({ disabled: o })), void 0, !0)
|
|
1247
1247
|
]),
|
|
1248
|
-
"annotator-action-redo":
|
|
1249
|
-
C(e.$slots, "annotator-action-redo", X(
|
|
1248
|
+
"annotator-action-redo": S(({ disabled: o }) => [
|
|
1249
|
+
C(e.$slots, "annotator-action-redo", Y(X({ disabled: o })), void 0, !0)
|
|
1250
1250
|
]),
|
|
1251
|
-
"annotator-action-delete":
|
|
1252
|
-
C(e.$slots, "annotator-action-delete", X(
|
|
1251
|
+
"annotator-action-delete": S(({ disabled: o }) => [
|
|
1252
|
+
C(e.$slots, "annotator-action-delete", Y(X({ disabled: o })), void 0, !0)
|
|
1253
1253
|
]),
|
|
1254
1254
|
_: 3
|
|
1255
1255
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : N("", !0),
|
|
1256
|
-
Go.value ? (v(),
|
|
1256
|
+
Go.value ? (v(), M("div", {
|
|
1257
1257
|
key: 2,
|
|
1258
1258
|
ref_key: "noTitle",
|
|
1259
1259
|
ref: uo,
|
|
1260
1260
|
class: "vue-data-ui-no-title-space",
|
|
1261
1261
|
style: "height:36px; width: 100%;background:transparent"
|
|
1262
1262
|
}, null, 512)) : N("", !0),
|
|
1263
|
-
t.value.style.chart.title.text ? (v(),
|
|
1263
|
+
t.value.style.chart.title.text ? (v(), M("div", {
|
|
1264
1264
|
key: 3,
|
|
1265
1265
|
ref_key: "chartTitle",
|
|
1266
1266
|
ref: ao,
|
|
@@ -1283,14 +1283,14 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1283
1283
|
E("div", {
|
|
1284
1284
|
id: `legend-top-${le.value}`
|
|
1285
1285
|
}, null, 8, ga),
|
|
1286
|
-
t.value.userOptions.show && Te.value && (y(ho) || y(
|
|
1286
|
+
t.value.userOptions.show && Te.value && (y(ho) || y(Ot)) ? (v(), he(y(P), {
|
|
1287
1287
|
ref_key: "userOptionsRef",
|
|
1288
|
-
ref:
|
|
1288
|
+
ref: At,
|
|
1289
1289
|
key: `user_option_${lo.value}`,
|
|
1290
1290
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
1291
1291
|
color: t.value.style.chart.color,
|
|
1292
1292
|
isPrinting: y(_t),
|
|
1293
|
-
isImaging: y(
|
|
1293
|
+
isImaging: y(Ft),
|
|
1294
1294
|
uid: le.value,
|
|
1295
1295
|
hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
|
|
1296
1296
|
hasPdf: t.value.userOptions.buttons.pdf,
|
|
@@ -1300,7 +1300,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1300
1300
|
hasTable: t.value.userOptions.buttons.table,
|
|
1301
1301
|
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
1302
1302
|
hasAltCopy: t.value.userOptions.buttons.altCopy,
|
|
1303
|
-
isFullscreen:
|
|
1303
|
+
isFullscreen: _e.value,
|
|
1304
1304
|
isTooltip: J.value.showTooltip,
|
|
1305
1305
|
titles: { ...t.value.userOptions.buttonTitles },
|
|
1306
1306
|
chartElement: re.value,
|
|
@@ -1315,94 +1315,94 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1315
1315
|
onGeneratePdf: y(fo),
|
|
1316
1316
|
onGenerateCsv: Rt,
|
|
1317
1317
|
onGenerateImage: xl,
|
|
1318
|
-
onGenerateSvg:
|
|
1318
|
+
onGenerateSvg: Io,
|
|
1319
1319
|
onToggleTable: So,
|
|
1320
1320
|
onToggleTooltip: Ao,
|
|
1321
1321
|
onToggleAnnotator: Dt,
|
|
1322
1322
|
onCopyAlt: Fo,
|
|
1323
1323
|
style: xe({
|
|
1324
|
-
visibility: y(ho) ? y(
|
|
1324
|
+
visibility: y(ho) ? y(Ot) ? "visible" : "hidden" : "visible"
|
|
1325
1325
|
})
|
|
1326
1326
|
}, Bo({ _: 2 }, [
|
|
1327
1327
|
e.$slots.menuIcon ? {
|
|
1328
1328
|
name: "menuIcon",
|
|
1329
|
-
fn:
|
|
1330
|
-
C(e.$slots, "menuIcon", X(
|
|
1329
|
+
fn: S(({ isOpen: o, color: a }) => [
|
|
1330
|
+
C(e.$slots, "menuIcon", Y(X({ isOpen: o, color: a })), void 0, !0)
|
|
1331
1331
|
]),
|
|
1332
1332
|
key: "0"
|
|
1333
1333
|
} : void 0,
|
|
1334
1334
|
e.$slots.optionTooltip ? {
|
|
1335
1335
|
name: "optionTooltip",
|
|
1336
|
-
fn:
|
|
1336
|
+
fn: S(() => [
|
|
1337
1337
|
C(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
1338
1338
|
]),
|
|
1339
1339
|
key: "1"
|
|
1340
1340
|
} : void 0,
|
|
1341
1341
|
e.$slots.optionPdf ? {
|
|
1342
1342
|
name: "optionPdf",
|
|
1343
|
-
fn:
|
|
1343
|
+
fn: S(() => [
|
|
1344
1344
|
C(e.$slots, "optionPdf", {}, void 0, !0)
|
|
1345
1345
|
]),
|
|
1346
1346
|
key: "2"
|
|
1347
1347
|
} : void 0,
|
|
1348
1348
|
e.$slots.optionCsv ? {
|
|
1349
1349
|
name: "optionCsv",
|
|
1350
|
-
fn:
|
|
1350
|
+
fn: S(() => [
|
|
1351
1351
|
C(e.$slots, "optionCsv", {}, void 0, !0)
|
|
1352
1352
|
]),
|
|
1353
1353
|
key: "3"
|
|
1354
1354
|
} : void 0,
|
|
1355
1355
|
e.$slots.optionImg ? {
|
|
1356
1356
|
name: "optionImg",
|
|
1357
|
-
fn:
|
|
1357
|
+
fn: S(() => [
|
|
1358
1358
|
C(e.$slots, "optionImg", {}, void 0, !0)
|
|
1359
1359
|
]),
|
|
1360
1360
|
key: "4"
|
|
1361
1361
|
} : void 0,
|
|
1362
1362
|
e.$slots.optionSvg ? {
|
|
1363
1363
|
name: "optionSvg",
|
|
1364
|
-
fn:
|
|
1364
|
+
fn: S(() => [
|
|
1365
1365
|
C(e.$slots, "optionSvg", {}, void 0, !0)
|
|
1366
1366
|
]),
|
|
1367
1367
|
key: "5"
|
|
1368
1368
|
} : void 0,
|
|
1369
1369
|
e.$slots.optionTable ? {
|
|
1370
1370
|
name: "optionTable",
|
|
1371
|
-
fn:
|
|
1371
|
+
fn: S(() => [
|
|
1372
1372
|
C(e.$slots, "optionTable", {}, void 0, !0)
|
|
1373
1373
|
]),
|
|
1374
1374
|
key: "6"
|
|
1375
1375
|
} : void 0,
|
|
1376
1376
|
e.$slots.optionFullscreen ? {
|
|
1377
1377
|
name: "optionFullscreen",
|
|
1378
|
-
fn:
|
|
1379
|
-
C(e.$slots, "optionFullscreen", X(
|
|
1378
|
+
fn: S(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
1379
|
+
C(e.$slots, "optionFullscreen", Y(X({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
1380
1380
|
]),
|
|
1381
1381
|
key: "7"
|
|
1382
1382
|
} : void 0,
|
|
1383
1383
|
e.$slots.optionAnnotator ? {
|
|
1384
1384
|
name: "optionAnnotator",
|
|
1385
|
-
fn:
|
|
1386
|
-
C(e.$slots, "optionAnnotator", X(
|
|
1385
|
+
fn: S(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
1386
|
+
C(e.$slots, "optionAnnotator", Y(X({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
1387
1387
|
]),
|
|
1388
1388
|
key: "8"
|
|
1389
1389
|
} : void 0,
|
|
1390
1390
|
e.$slots.optionAltCopy ? {
|
|
1391
1391
|
name: "optionAltCopy",
|
|
1392
|
-
fn:
|
|
1393
|
-
C(e.$slots, "optionAltCopy", X(
|
|
1392
|
+
fn: S(({ altCopy: o }) => [
|
|
1393
|
+
C(e.$slots, "optionAltCopy", Y(X({ altCopy: o })), void 0, !0)
|
|
1394
1394
|
]),
|
|
1395
1395
|
key: "9"
|
|
1396
1396
|
} : void 0
|
|
1397
1397
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : N("", !0),
|
|
1398
|
-
me.value.length > 1 ? (v(),
|
|
1398
|
+
me.value.length > 1 ? (v(), M("nav", {
|
|
1399
1399
|
key: 5,
|
|
1400
1400
|
class: "vue-ui-treemap-breadcrumbs",
|
|
1401
1401
|
"data-dom-to-png-ignore": "",
|
|
1402
1402
|
ref_key: "breadcrumbsNav",
|
|
1403
|
-
ref:
|
|
1403
|
+
ref: St
|
|
1404
1404
|
}, [
|
|
1405
|
-
(v(!0),
|
|
1405
|
+
(v(!0), M(ot, null, ft(me.value, (o, a) => (v(), M("span", {
|
|
1406
1406
|
role: "button",
|
|
1407
1407
|
tabindex: a < me.value.length - 1 ? 0 : void 0,
|
|
1408
1408
|
key: o.id || "root",
|
|
@@ -1425,32 +1425,32 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1425
1425
|
}, [
|
|
1426
1426
|
E("span", ma, [
|
|
1427
1427
|
E("span", ba, [
|
|
1428
|
-
C(e.$slots, "breadcrumb-label",
|
|
1429
|
-
a === 0 ? (v(),
|
|
1430
|
-
|
|
1431
|
-
name:
|
|
1428
|
+
C(e.$slots, "breadcrumb-label", pt({ ref_for: !0 }, { crumb: o, isRoot: a === 0, isFocus: ct.value === a }), () => [
|
|
1429
|
+
a === 0 ? (v(), M("div", wa, [
|
|
1430
|
+
gt(Eo, {
|
|
1431
|
+
name: ct.value === 0 ? "homeFilled" : "home",
|
|
1432
1432
|
stroke: t.value.style.chart.color
|
|
1433
1433
|
}, null, 8, ["name", "stroke"])
|
|
1434
|
-
])) : (v(),
|
|
1435
|
-
|
|
1434
|
+
])) : (v(), M(ot, { key: 1 }, [
|
|
1435
|
+
yt(tt(o.label), 1)
|
|
1436
1436
|
], 64))
|
|
1437
1437
|
], !0)
|
|
1438
1438
|
]),
|
|
1439
|
-
a < me.value.length - 1 ? (v(),
|
|
1439
|
+
a < me.value.length - 1 ? (v(), M("span", ka, [
|
|
1440
1440
|
C(e.$slots, "breadcrumb-arrow", {}, () => [
|
|
1441
|
-
l[4] || (l[4] =
|
|
1441
|
+
l[4] || (l[4] = yt(" › ", -1))
|
|
1442
1442
|
], !0)
|
|
1443
1443
|
])) : N("", !0)
|
|
1444
1444
|
])
|
|
1445
1445
|
], 44, ya))), 128))
|
|
1446
1446
|
], 512)) : N("", !0),
|
|
1447
1447
|
E("div", Ca, [
|
|
1448
|
-
(v(),
|
|
1448
|
+
(v(), M("svg", {
|
|
1449
1449
|
ref_key: "svgRef",
|
|
1450
1450
|
ref: Fe,
|
|
1451
1451
|
xmlns: y(Qt),
|
|
1452
1452
|
"aria-describedby": `chart-instructions-${le.value}`,
|
|
1453
|
-
class: Zt({ "vue-data-ui-fullscreen--on":
|
|
1453
|
+
class: Zt({ "vue-data-ui-fullscreen--on": _e.value, "vue-data-ui-fulscreen--off": !_e.value, "vue-data-ui-zoom-plus": !Ve.value, "vue-data-ui-zoom-minus": Ve.value, loading: y(Ae) }),
|
|
1454
1454
|
viewBox: `${ie.value.startX} ${ie.value.startY} ${ie.value.width <= 0 ? 10 : ie.value.width} ${ie.value.height <= 0 ? 10 : ie.value.height}`,
|
|
1455
1455
|
style: xe(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`),
|
|
1456
1456
|
tabindex: "0",
|
|
@@ -1458,11 +1458,11 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1458
1458
|
onBlur: Al,
|
|
1459
1459
|
onKeydown: Ml
|
|
1460
1460
|
}, [
|
|
1461
|
-
|
|
1462
|
-
(v(!0),
|
|
1461
|
+
gt(y(A)),
|
|
1462
|
+
(v(!0), M(ot, null, ft(F.value, (o, a) => (v(), M("g", {
|
|
1463
1463
|
key: `tgrad_${o.id}`
|
|
1464
1464
|
}, [
|
|
1465
|
-
t.value.style.chart.layout.rects.gradient.show ? (v(),
|
|
1465
|
+
t.value.style.chart.layout.rects.gradient.show ? (v(), M("defs", $a, [
|
|
1466
1466
|
E("radialGradient", {
|
|
1467
1467
|
id: `tgrad_${o.id}`,
|
|
1468
1468
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
@@ -1473,12 +1473,12 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1473
1473
|
}, null, 8, Sa),
|
|
1474
1474
|
E("stop", {
|
|
1475
1475
|
offset: "100%",
|
|
1476
|
-
"stop-color": y(
|
|
1476
|
+
"stop-color": y(wt)(o.color, t.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
1477
1477
|
}, null, 8, Aa)
|
|
1478
1478
|
], 8, Ta)
|
|
1479
1479
|
])) : N("", !0)
|
|
1480
1480
|
]))), 128)),
|
|
1481
|
-
(v(!0),
|
|
1481
|
+
(v(!0), M(ot, null, ft(nl.value, (o, a) => (v(), M("g", {
|
|
1482
1482
|
key: `parent_${o.id}`,
|
|
1483
1483
|
class: "vue-ui-treemap-parent-wrapper"
|
|
1484
1484
|
}, [
|
|
@@ -1487,28 +1487,28 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1487
1487
|
y: o.y0,
|
|
1488
1488
|
height: Q(o),
|
|
1489
1489
|
width: ee(o),
|
|
1490
|
-
fill: t.value.style.chart.layout.rects.group.useSeriesBackgroundColor ? y(
|
|
1490
|
+
fill: t.value.style.chart.layout.rects.group.useSeriesBackgroundColor ? y(wt)(o.color ?? t.value.style.chart.backgroundColor, t.value.style.chart.layout.rects.group.backgroundLighterRatio) : t.value.style.chart.backgroundColor,
|
|
1491
1491
|
rx: 0,
|
|
1492
1492
|
stroke: t.value.style.chart.layout.rects.group.stroke,
|
|
1493
1493
|
"stroke-width": t.value.style.chart.layout.rects.group.strokeWidth,
|
|
1494
1494
|
class: "vue-data-ui-cursor-default vue-ui-treemap-rect"
|
|
1495
1495
|
}, null, 8, Ma),
|
|
1496
|
-
e.$slots["group-label"] && !Ee.value ? (v(),
|
|
1496
|
+
e.$slots["group-label"] && !Ee.value ? (v(), M("foreignObject", {
|
|
1497
1497
|
key: 0,
|
|
1498
1498
|
width: ee(o),
|
|
1499
1499
|
height: Q(o),
|
|
1500
1500
|
x: o.x0,
|
|
1501
1501
|
y: o.y0
|
|
1502
1502
|
}, [
|
|
1503
|
-
C(e.$slots, "group-label",
|
|
1504
|
-
], 8, Pa)) : !y(Ae) && t.value.style.chart.layout.labels.showDefaultLabels && !Ee.value ? (v(),
|
|
1503
|
+
C(e.$slots, "group-label", pt({ ref_for: !0 }, { group: o }), void 0, !0)
|
|
1504
|
+
], 8, Pa)) : !y(Ae) && t.value.style.chart.layout.labels.showDefaultLabels && !Ee.value ? (v(), M("g", {
|
|
1505
1505
|
key: 1,
|
|
1506
1506
|
style: { "pointer-events": "none" },
|
|
1507
|
-
innerHTML:
|
|
1507
|
+
innerHTML: _o({ rect: o, seriesIndex: 0, isTitle: !0 }),
|
|
1508
1508
|
class: "vue-data-ui-cursor-default"
|
|
1509
1509
|
}, null, 8, Oa)) : N("", !0)
|
|
1510
1510
|
]))), 128)),
|
|
1511
|
-
(v(!0),
|
|
1511
|
+
(v(!0), M(ot, null, ft(F.value, (o, a) => (v(), M("g", {
|
|
1512
1512
|
key: `k_${o.id}`
|
|
1513
1513
|
}, [
|
|
1514
1514
|
E("rect", {
|
|
@@ -1532,13 +1532,13 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1532
1532
|
"vue-ui-treemap-rect",
|
|
1533
1533
|
il(o) ? "vue-data-ui-zoom-plus" : Ve.value ? "vue-data-ui-zoom-minus" : ""
|
|
1534
1534
|
])
|
|
1535
|
-
}, null, 46,
|
|
1536
|
-
!e.$slots.rect && !y(Ae) && t.value.style.chart.layout.labels.showDefaultLabels && !Ee.value ? (v(),
|
|
1535
|
+
}, null, 46, Ia),
|
|
1536
|
+
!e.$slots.rect && !y(Ae) && t.value.style.chart.layout.labels.showDefaultLabels && !Ee.value ? (v(), M("g", {
|
|
1537
1537
|
key: 0,
|
|
1538
1538
|
style: xe(`pointer-events:none; opacity:${R.value ? R.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
1539
|
-
innerHTML:
|
|
1540
|
-
}, null, 12,
|
|
1541
|
-
(v(),
|
|
1539
|
+
innerHTML: _o({ rect: o, seriesIndex: a })
|
|
1540
|
+
}, null, 12, _a)) : N("", !0),
|
|
1541
|
+
(v(), M("foreignObject", {
|
|
1542
1542
|
x: o.x0,
|
|
1543
1543
|
y: o.y0,
|
|
1544
1544
|
height: Q(o),
|
|
@@ -1546,7 +1546,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1546
1546
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
1547
1547
|
}, [
|
|
1548
1548
|
E("div", La, [
|
|
1549
|
-
y(Ae) ? N("", !0) : C(e.$slots, "rect",
|
|
1549
|
+
y(Ae) ? N("", !0) : C(e.$slots, "rect", pt({
|
|
1550
1550
|
key: 0,
|
|
1551
1551
|
ref_for: !0
|
|
1552
1552
|
}, {
|
|
@@ -1559,19 +1559,19 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1559
1559
|
shouldShow: o.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Ve.value,
|
|
1560
1560
|
fontSize: ze(o),
|
|
1561
1561
|
isZoom: Ve.value,
|
|
1562
|
-
textColor: y(
|
|
1562
|
+
textColor: y(kt)(o.color)
|
|
1563
1563
|
}), void 0, !0)
|
|
1564
1564
|
])
|
|
1565
1565
|
], 8, Fa))
|
|
1566
1566
|
]))), 128)),
|
|
1567
|
-
C(e.$slots, "svg", X(
|
|
1567
|
+
C(e.$slots, "svg", Y(X({ svg: D.value, isZoom: Ve.value, rect: R.value, config: t.value, isPrintingImg: y(_t) | y(Ft) | nt.value, isPrintingSvg: st.value })), void 0, !0)
|
|
1568
1568
|
], 46, xa)),
|
|
1569
|
-
e.$slots.hint ? (v(),
|
|
1570
|
-
C(e.$slots, "hint", X(
|
|
1569
|
+
e.$slots.hint ? (v(), M("div", Na, [
|
|
1570
|
+
C(e.$slots, "hint", Y(X({ hint: t.value.a11y.translations.keyboardNavigation, isVisible: Mt.value })), void 0, !0)
|
|
1571
1571
|
])) : N("", !0)
|
|
1572
1572
|
]),
|
|
1573
|
-
e.$slots.watermark ? (v(),
|
|
1574
|
-
C(e.$slots, "watermark", X(
|
|
1573
|
+
e.$slots.watermark ? (v(), M("div", Ba, [
|
|
1574
|
+
C(e.$slots, "watermark", Y(X({ isPrinting: y(_t) || y(Ft) || nt.value || st.value })), void 0, !0)
|
|
1575
1575
|
])) : N("", !0),
|
|
1576
1576
|
E("div", {
|
|
1577
1577
|
id: `legend-bottom-${le.value}`
|
|
@@ -1585,21 +1585,21 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1585
1585
|
ref: no
|
|
1586
1586
|
}, [
|
|
1587
1587
|
t.value.style.chart.legend.show ? (v(), he(la, {
|
|
1588
|
-
key: `legend_${
|
|
1588
|
+
key: `legend_${Tt.value}`,
|
|
1589
1589
|
legendSet: He.value,
|
|
1590
1590
|
config: cl.value,
|
|
1591
1591
|
id: `treemap_legend_${le.value}`,
|
|
1592
1592
|
isCursorPointer: Se.value,
|
|
1593
1593
|
onClickMarker: l[0] || (l[0] = ({ legend: o }) => rt(o))
|
|
1594
1594
|
}, {
|
|
1595
|
-
item:
|
|
1596
|
-
y(Ae) ? N("", !0) : (v(),
|
|
1595
|
+
item: S(({ legend: o, index: a }) => [
|
|
1596
|
+
y(Ae) ? N("", !0) : (v(), M("div", {
|
|
1597
1597
|
key: 0,
|
|
1598
1598
|
onClick: (n) => rt(o),
|
|
1599
1599
|
style: xe(`opacity:${B.value.includes(o.id) ? 0.5 : 1}`)
|
|
1600
1600
|
}, tt(o.display), 13, Da))
|
|
1601
1601
|
]),
|
|
1602
|
-
legendToggle:
|
|
1602
|
+
legendToggle: S(() => [
|
|
1603
1603
|
He.value.length > 2 && t.value.style.chart.legend.selectAllToggle.show && !y(Ae) ? (v(), he(na, {
|
|
1604
1604
|
key: 0,
|
|
1605
1605
|
backgroundColor: t.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
@@ -1617,7 +1617,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1617
1617
|
}, void 0, !0)
|
|
1618
1618
|
], 512)
|
|
1619
1619
|
], 8, ["to"])) : N("", !0),
|
|
1620
|
-
e.$slots.source ? (v(),
|
|
1620
|
+
e.$slots.source ? (v(), M("div", {
|
|
1621
1621
|
key: 8,
|
|
1622
1622
|
ref_key: "source",
|
|
1623
1623
|
ref: so,
|
|
@@ -1625,7 +1625,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1625
1625
|
}, [
|
|
1626
1626
|
C(e.$slots, "source", {}, void 0, !0)
|
|
1627
1627
|
], 512)) : N("", !0),
|
|
1628
|
-
|
|
1628
|
+
gt(y(m), {
|
|
1629
1629
|
teleportTo: t.value.style.chart.tooltip.teleportTo,
|
|
1630
1630
|
show: J.value.showTooltip && Ue.value,
|
|
1631
1631
|
backgroundColor: t.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1638,8 +1638,8 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1638
1638
|
position: t.value.style.chart.tooltip.position,
|
|
1639
1639
|
offsetY: t.value.style.chart.tooltip.offsetY,
|
|
1640
1640
|
parent: re.value,
|
|
1641
|
-
content:
|
|
1642
|
-
isFullscreen:
|
|
1641
|
+
content: xt.value,
|
|
1642
|
+
isFullscreen: _e.value,
|
|
1643
1643
|
isCustom: y(Ho)(t.value.style.chart.tooltip.customFormat),
|
|
1644
1644
|
smooth: t.value.style.chart.tooltip.smooth,
|
|
1645
1645
|
backdropFilter: t.value.style.chart.tooltip.backdropFilter,
|
|
@@ -1648,22 +1648,25 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1648
1648
|
isA11yMode: je.value === "keyboard",
|
|
1649
1649
|
a11yPosition: co.value
|
|
1650
1650
|
}, {
|
|
1651
|
-
"tooltip-before":
|
|
1652
|
-
C(e.$slots, "tooltip-before", X(
|
|
1651
|
+
"tooltip-before": S(() => [
|
|
1652
|
+
C(e.$slots, "tooltip-before", Y(X({ ...it.value })), void 0, !0)
|
|
1653
|
+
]),
|
|
1654
|
+
tooltip: S(() => [
|
|
1655
|
+
C(e.$slots, "tooltip", Y(X({ ...it.value })), void 0, !0)
|
|
1653
1656
|
]),
|
|
1654
|
-
"tooltip-after":
|
|
1655
|
-
C(e.$slots, "tooltip-after", X(
|
|
1657
|
+
"tooltip-after": S(() => [
|
|
1658
|
+
C(e.$slots, "tooltip-after", Y(X({ ...it.value })), void 0, !0)
|
|
1656
1659
|
]),
|
|
1657
1660
|
_: 3
|
|
1658
1661
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1659
|
-
Te.value && t.value.userOptions.buttons.table ? (v(), he(Rl(Ze.value.component),
|
|
1662
|
+
Te.value && t.value.userOptions.buttons.table ? (v(), he(Rl(Ze.value.component), pt({ key: 9 }, Ze.value.props, {
|
|
1660
1663
|
ref_key: "tableUnit",
|
|
1661
1664
|
ref: Ye,
|
|
1662
1665
|
onClose: Oo
|
|
1663
1666
|
}), Bo({
|
|
1664
|
-
content:
|
|
1667
|
+
content: S(() => [
|
|
1665
1668
|
(v(), he(y(g), {
|
|
1666
|
-
key: `table_${
|
|
1669
|
+
key: `table_${$t.value}`,
|
|
1667
1670
|
colNames: We.value.colNames,
|
|
1668
1671
|
head: We.value.head,
|
|
1669
1672
|
body: We.value.body,
|
|
@@ -1673,14 +1676,14 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1673
1676
|
isCursorPointer: Se.value,
|
|
1674
1677
|
onClose: Oo
|
|
1675
1678
|
}, {
|
|
1676
|
-
th:
|
|
1679
|
+
th: S(({ th: o }) => [
|
|
1677
1680
|
E("div", {
|
|
1678
1681
|
innerHTML: o,
|
|
1679
1682
|
style: { display: "flex", "align-items": "center" }
|
|
1680
1683
|
}, null, 8, za)
|
|
1681
1684
|
]),
|
|
1682
|
-
td:
|
|
1683
|
-
|
|
1685
|
+
td: S(({ td: o }) => [
|
|
1686
|
+
yt(tt(o.name || o), 1)
|
|
1684
1687
|
]),
|
|
1685
1688
|
_: 1
|
|
1686
1689
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
@@ -1689,21 +1692,21 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1689
1692
|
}, [
|
|
1690
1693
|
t.value.table.useDialog ? {
|
|
1691
1694
|
name: "title",
|
|
1692
|
-
fn:
|
|
1693
|
-
|
|
1695
|
+
fn: S(() => [
|
|
1696
|
+
yt(tt(Ze.value.title), 1)
|
|
1694
1697
|
]),
|
|
1695
1698
|
key: "0"
|
|
1696
1699
|
} : void 0,
|
|
1697
1700
|
t.value.table.useDialog ? {
|
|
1698
1701
|
name: "actions",
|
|
1699
|
-
fn:
|
|
1702
|
+
fn: S(() => [
|
|
1700
1703
|
E("button", {
|
|
1701
1704
|
tabindex: "0",
|
|
1702
1705
|
class: "vue-ui-user-options-button",
|
|
1703
1706
|
onClick: l[1] || (l[1] = (o) => Rt(t.value.userOptions.callbacks.csv)),
|
|
1704
1707
|
style: xe({ cursor: Se.value ? "pointer" : "default" })
|
|
1705
1708
|
}, [
|
|
1706
|
-
|
|
1709
|
+
gt(Eo, {
|
|
1707
1710
|
name: "fileCsv",
|
|
1708
1711
|
stroke: Ze.value.props.color
|
|
1709
1712
|
}, null, 8, ["stroke"])
|
|
@@ -1717,7 +1720,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1717
1720
|
], !0)
|
|
1718
1721
|
], 46, fa));
|
|
1719
1722
|
}
|
|
1720
|
-
}, sn = /* @__PURE__ */ sa(Va, [["__scopeId", "data-v-
|
|
1723
|
+
}, sn = /* @__PURE__ */ sa(Va, [["__scopeId", "data-v-dc025d13"]]);
|
|
1721
1724
|
export {
|
|
1722
1725
|
sn as default
|
|
1723
1726
|
};
|