vue-data-ui 3.9.10 → 3.9.12
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/{PackageVersion-DCZIL0_B.js → PackageVersion-BpArR90N.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.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-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-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-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.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-ClRXBGda.js → vue-data-ui-Dw19CYml.js} +57 -57
- package/dist/vue-data-ui.js +58 -58
- package/dist/{vue-ui-3d-bar-TNgpzuEc.js → vue-ui-3d-bar-Bv7Tft_r.js} +1 -1
- package/dist/{vue-ui-age-pyramid-BPTzdmW0.js → vue-ui-age-pyramid-C6NjJlg4.js} +1 -1
- package/dist/{vue-ui-bullet-DzFbSsu2.js → vue-ui-bullet-BLGvme53.js} +1 -1
- package/dist/{vue-ui-candlestick-CAboED0U.js → vue-ui-candlestick-DBG1mW60.js} +1 -1
- package/dist/{vue-ui-carousel-table-DlrmY97e.js → vue-ui-carousel-table-BYnItN48.js} +1 -1
- package/dist/{vue-ui-chestnut-pbykwsi2.js → vue-ui-chestnut-DV6f4SNc.js} +1 -1
- package/dist/{vue-ui-chord-DJfFRfKV.js → vue-ui-chord-DRleP2O8.js} +1 -1
- package/dist/{vue-ui-circle-pack-CQRZOtuK.js → vue-ui-circle-pack-BCrMaFWw.js} +1 -1
- package/dist/{vue-ui-cursor-yyls4HGT.js → vue-ui-cursor-j10t3UEX.js} +1 -1
- package/dist/{vue-ui-dag-C8K66G3E.js → vue-ui-dag-y0oqslGj.js} +1 -1
- package/dist/{vue-ui-dashboard-D3Iyv0JD.js → vue-ui-dashboard-mBGF94l6.js} +54 -54
- package/dist/{vue-ui-donut-xcE---Po.js → vue-ui-donut-A_IFB9JR.js} +1 -1
- package/dist/{vue-ui-donut-evolution-fhLI01zC.js → vue-ui-donut-evolution-hkHICgry.js} +1 -1
- package/dist/{vue-ui-dumbbell-C9O0Bkf9.js → vue-ui-dumbbell-BVPZwi0X.js} +1 -1
- package/dist/{vue-ui-flow-CGOye6P4.js → vue-ui-flow-BNeKU-KR.js} +1 -1
- package/dist/{vue-ui-funnel-DsTz2cnF.js → vue-ui-funnel-VorM1bT0.js} +1 -1
- package/dist/{vue-ui-galaxy-DU-o6sLX.js → vue-ui-galaxy-DKkviRQr.js} +1 -1
- package/dist/{vue-ui-gauge-RYEhh2WB.js → vue-ui-gauge-BNaWVi-e.js} +1 -1
- package/dist/{vue-ui-geo-DzFx9KIT.js → vue-ui-geo-_R5mjj-u.js} +14 -14
- package/dist/{vue-ui-gizmo-B4GeLU_H.js → vue-ui-gizmo-AQFQccea.js} +1 -1
- package/dist/{vue-ui-heatmap-Di39E10i.js → vue-ui-heatmap-BKX1bPY5.js} +134 -134
- package/dist/{vue-ui-history-plot-DweGUMrh.js → vue-ui-history-plot-BNX8B2jr.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-BRk_Qnvt.js → vue-ui-horizontal-bar-B6VyEs1p.js} +1 -1
- package/dist/{vue-ui-molecule-Dn3L3Pzv.js → vue-ui-molecule-PtnhkQLr.js} +1 -1
- package/dist/{vue-ui-mood-radar-CR8x29EU.js → vue-ui-mood-radar-DxSVU35A.js} +1 -1
- package/dist/{vue-ui-nested-donuts-DEmXu87c.js → vue-ui-nested-donuts-BY8C1axg.js} +1 -1
- package/dist/{vue-ui-onion-B_bd4qUM.js → vue-ui-onion-XJAcsPVV.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CjKb6-Uq.js → vue-ui-parallel-coordinate-plot-CDWIZbgp.js} +1 -1
- package/dist/{vue-ui-quadrant-B5OfygHr.js → vue-ui-quadrant-DY9GXVYY.js} +1 -1
- package/dist/{vue-ui-quick-chart-MdfHmOs2.js → vue-ui-quick-chart-Y73WB5GW.js} +1 -1
- package/dist/{vue-ui-radar-BLFDJ69V.js → vue-ui-radar-Deup68ga.js} +1 -1
- package/dist/{vue-ui-relation-circle-xGWmFHf_.js → vue-ui-relation-circle-C0W3aPaO.js} +1 -1
- package/dist/{vue-ui-ridgeline-Dvwi6E9_.js → vue-ui-ridgeline-D9z3_hRf.js} +1 -1
- package/dist/{vue-ui-rings-CGOWZybm.js → vue-ui-rings-CT3gLUkS.js} +1 -1
- package/dist/{vue-ui-scatter-CdCUg54d.js → vue-ui-scatter-DiLSOZGs.js} +1 -1
- package/dist/{vue-ui-skeleton-DaomVcWl.js → vue-ui-skeleton-D_2C5A85.js} +1 -1
- package/dist/{vue-ui-spark-trend-CCPXy2ZD.js → vue-ui-spark-trend-C05f4Fn6.js} +1 -1
- package/dist/{vue-ui-sparkbar-DMuih6Dx.js → vue-ui-sparkbar-CjYaG0Ae.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BZFeEMV9.js → vue-ui-sparkgauge-AKIy8PYI.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-DahIfjLU.js → vue-ui-sparkhistogram-nWWgx7iD.js} +1 -1
- package/dist/{vue-ui-sparkline-CaehcwBo.js → vue-ui-sparkline-CGMDNQpH.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-On4F24cq.js → vue-ui-sparkstackbar-C3vjYPrM.js} +1 -1
- package/dist/{vue-ui-stackbar-aN5cfErv.js → vue-ui-stackbar-BQiLC89h.js} +1 -1
- package/dist/{vue-ui-stackline-CTPUaU0K.js → vue-ui-stackline-DPV5Amgq.js} +1 -1
- package/dist/{vue-ui-strip-plot-BO7YQnRj.js → vue-ui-strip-plot-CFGml25d.js} +1 -1
- package/dist/{vue-ui-table-Dg6j7T65.js → vue-ui-table-DySeXTmp.js} +2 -2
- package/dist/{vue-ui-table-sparkline-DE_LyDJV.js → vue-ui-table-sparkline-DbEj6x4N.js} +1 -1
- package/dist/{vue-ui-thermometer-C6LrWdX4.js → vue-ui-thermometer-BeiT4slQ.js} +1 -1
- package/dist/{vue-ui-timer-DCENDOVz.js → vue-ui-timer-RWg45QKc.js} +1 -1
- package/dist/{vue-ui-tiremarks-CEQM_3u0.js → vue-ui-tiremarks-B4_W_mWX.js} +1 -1
- package/dist/{vue-ui-treemap-Cighusxg.js → vue-ui-treemap-fq9-enBk.js} +1 -1
- package/dist/{vue-ui-waffle-Cs4LXcYi.js → vue-ui-waffle-BRcWupew.js} +1 -1
- package/dist/{vue-ui-wheel-DchTydjv.js → vue-ui-wheel-DziR9q2I.js} +1 -1
- package/dist/{vue-ui-word-cloud-BlsRq_M1.js → vue-ui-word-cloud-C6i_7Q6Y.js} +1 -1
- package/dist/{vue-ui-world-C8zN4MHP.js → vue-ui-world-Dvn1JWi9.js} +1 -1
- package/dist/{vue-ui-xy-1vhl0WmV.js → vue-ui-xy-2ui0juKl.js} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { watchEffect as ul, nextTick as
|
|
1
|
+
import { watchEffect as ul, nextTick as Te, useCssVars as nl, defineAsyncComponent as ve, computed as b, ref as d, shallowRef as il, toRefs as rl, watch as we, onBeforeUnmount as ft, onMounted as vl, reactive as gt, createElementBlock as i, openBlock as u, normalizeStyle as L, normalizeClass as ge, createBlock as be, createCommentVNode as f, createElementVNode as g, createVNode as Ae, unref as n, withCtx as C, renderSlot as x, normalizeProps as H, guardReactiveProps as X, createSlots as bt, Fragment as z, renderList as P, withDirectives as pt, createTextVNode as Pe, toDisplayString as F, vShow as cl, resolveDynamicComponent as dl, mergeProps as hl, withKeys as yl } from "vue";
|
|
2
2
|
import { c as Ie, t as fl, a0 as gl, o as mt, g as xt, al as pe, k as bl, X as pl, w as Le, a as K, d as W, T as Z, ax as ml, u as xl, q as Cl, x as kl, Z as wl } from "./lib-W9waxHL3.js";
|
|
3
|
-
import { t as
|
|
3
|
+
import { t as Se, u as Al } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as Ll, a as Ve } from "./useNestedProp-D-jUHecl.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
5
|
+
import { u as Sl } from "./usePrinter-DhoMn87n.js";
|
|
6
|
+
import { u as Tl, B as _l } from "./BaseScanner-BMpwQAfz.js";
|
|
7
7
|
import { u as zl } from "./useSvgExport-ByUukOZt.js";
|
|
8
8
|
import { u as Ct } from "./useTimeLabels-DKoynYae.js";
|
|
9
9
|
import { u as $l } from "./useThemeCheck-DGJ31Vi5.js";
|
|
@@ -11,12 +11,12 @@ import { u as Fl } from "./useTableResponsive-Cbx-ACcP.js";
|
|
|
11
11
|
import { u as Dl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
12
|
import { u as kt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
13
|
import { u as Ol } from "./useChartAccessibility-9icAAmYg.js";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
14
|
+
import Bl from "./img-BJzUSmkm.js";
|
|
15
|
+
import Ml from "./Title-DFtCaCah.js";
|
|
16
16
|
import El from "./vue-ui-accordion-B6BX2vhq.js";
|
|
17
17
|
import { _ as Nl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
function Ue({
|
|
19
|
-
elementRef:
|
|
19
|
+
elementRef: h,
|
|
20
20
|
callback: I,
|
|
21
21
|
attr: J,
|
|
22
22
|
earlyReturn: Y = !1,
|
|
@@ -24,34 +24,34 @@ function Ue({
|
|
|
24
24
|
alsoAfterFontsReady: D = !0
|
|
25
25
|
}) {
|
|
26
26
|
if (Y) return;
|
|
27
|
-
const V = (
|
|
28
|
-
if (!
|
|
27
|
+
const V = (S) => {
|
|
28
|
+
if (!S) return;
|
|
29
29
|
let A;
|
|
30
|
-
if (typeof
|
|
30
|
+
if (typeof S.getBBox == "function")
|
|
31
31
|
try {
|
|
32
|
-
const O =
|
|
32
|
+
const O = S.getBBox();
|
|
33
33
|
A = J === "width" ? O.width : O.height;
|
|
34
34
|
} catch {
|
|
35
35
|
}
|
|
36
36
|
if (typeof A != "number" || Number.isNaN(A))
|
|
37
37
|
try {
|
|
38
|
-
const O =
|
|
38
|
+
const O = S.getBoundingClientRect();
|
|
39
39
|
A = J === "width" ? O.width : O.height;
|
|
40
40
|
} catch {
|
|
41
41
|
A = void 0;
|
|
42
42
|
}
|
|
43
43
|
typeof A == "number" && !Number.isNaN(A) && I(A);
|
|
44
44
|
};
|
|
45
|
-
ul((
|
|
46
|
-
const A =
|
|
45
|
+
ul((S) => {
|
|
46
|
+
const A = h.value;
|
|
47
47
|
if (!A) return;
|
|
48
48
|
let O = !1;
|
|
49
49
|
(async () => {
|
|
50
|
-
await
|
|
51
|
-
for (let
|
|
50
|
+
await Te();
|
|
51
|
+
for (let T = 0; T < Q; T += 1) {
|
|
52
52
|
if (O) return;
|
|
53
53
|
await new Promise((te) => requestAnimationFrame(te));
|
|
54
|
-
const N =
|
|
54
|
+
const N = h.value;
|
|
55
55
|
if (!N) return;
|
|
56
56
|
V(N);
|
|
57
57
|
}
|
|
@@ -60,12 +60,12 @@ function Ue({
|
|
|
60
60
|
await document.fonts.ready;
|
|
61
61
|
} catch {
|
|
62
62
|
}
|
|
63
|
-
!O &&
|
|
63
|
+
!O && h.value && V(h.value);
|
|
64
64
|
}
|
|
65
65
|
})();
|
|
66
66
|
const ee = new MutationObserver(() => {
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
h.value && requestAnimationFrame(() => {
|
|
68
|
+
h.value && V(h.value);
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
71
|
ee.observe(A, {
|
|
@@ -77,81 +77,81 @@ function Ue({
|
|
|
77
77
|
});
|
|
78
78
|
let m;
|
|
79
79
|
if (typeof ResizeObserver < "u") {
|
|
80
|
-
const
|
|
80
|
+
const T = A.ownerSVGElement ? A.ownerSVGElement : A;
|
|
81
81
|
m = new ResizeObserver(() => {
|
|
82
|
-
const N =
|
|
82
|
+
const N = h.value;
|
|
83
83
|
N && V(N);
|
|
84
|
-
}), m.observe(
|
|
84
|
+
}), m.observe(T);
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
S(() => {
|
|
87
87
|
O = !0, ee.disconnect(), m && m.disconnect();
|
|
88
88
|
});
|
|
89
89
|
}, { flush: "post" });
|
|
90
90
|
}
|
|
91
|
-
const At = { style: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { cells: { selected: { color: "#CCCCCC" } }, dataLabels: { xAxis: { color: "#CCCCCC" }, yAxis: { color: "#CCCCCC" } } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Lt = { style: { backgroundColor: "#FFF8E1", color: "#424242", layout: { cells: { colors: { hot: "#D32F2F", cold: "#FFE082" }, spacing: 0.5, selected: { color: "#B71C1C" } }, dataLabels: { xAxis: { color: "#424242" }, yAxis: { color: "#424242" } } }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, legend: { backgroundColor: "#FFF8E1", color: "#424242" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } },
|
|
91
|
+
const At = { style: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { crosshairs: { stroke: "#CCCCCC" }, cells: { selected: { color: "#CCCCCC" } }, dataLabels: { xAxis: { color: "#CCCCCC" }, yAxis: { color: "#CCCCCC" } } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Lt = { style: { backgroundColor: "#FFF8E1", color: "#424242", layout: { crosshairs: { stroke: "#424242" }, cells: { colors: { hot: "#D32F2F", cold: "#FFE082" }, spacing: 0.5, selected: { color: "#B71C1C" } }, dataLabels: { xAxis: { color: "#424242" }, yAxis: { color: "#424242" } } }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, legend: { backgroundColor: "#FFF8E1", color: "#424242" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, St = { style: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { crosshairs: { stroke: "#BDBDBD" }, cells: { colors: { hot: "#D32F2F", cold: "#FFE082" }, spacing: 0.5, selected: { color: "#B71C1C" } }, dataLabels: { xAxis: { color: "#BDBDBD" }, yAxis: { color: "#BDBDBD" } } }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Tt = { style: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { crosshairs: { stroke: "#33FF33" }, cells: { colors: { hot: "#008000", cold: "#333333" }, spacing: 0.5, selected: { color: "#33FF33" } }, dataLabels: { xAxis: { color: "#AACCAA" }, yAxis: { color: "#AACCAA" } } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" }, legend: { backgroundColor: "#2A2F2A", color: "#AACCAA" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, _t = { style: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { crosshairs: { stroke: "#8F837A" }, cells: { colors: { hot: "#DFCA99", cold: "#BBC4D3" }, spacing: 0.5, selected: { color: "#4F5B75" } }, dataLabels: { xAxis: { color: "#A0AC94" }, yAxis: { color: "#A0AC94" } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, zt = { style: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { crosshairs: { stroke: "#404C4D" }, cells: { colors: { hot: "#6D7D65", cold: "#6C94A5" }, spacing: 0.5, selected: { color: "#404C4D" } }, dataLabels: { xAxis: { color: "#61747E" }, yAxis: { color: "#61747E" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, $t = {
|
|
92
92
|
default: {},
|
|
93
93
|
dark: At,
|
|
94
94
|
celebration: Lt,
|
|
95
|
-
celebrationNight:
|
|
96
|
-
hack:
|
|
95
|
+
celebrationNight: St,
|
|
96
|
+
hack: Tt,
|
|
97
97
|
zen: _t,
|
|
98
98
|
concrete: zt
|
|
99
99
|
}, Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
100
100
|
__proto__: null,
|
|
101
101
|
celebration: Lt,
|
|
102
|
-
celebrationNight:
|
|
102
|
+
celebrationNight: St,
|
|
103
103
|
concrete: zt,
|
|
104
104
|
dark: At,
|
|
105
105
|
default: $t,
|
|
106
|
-
hack:
|
|
106
|
+
hack: Tt,
|
|
107
107
|
zen: _t
|
|
108
108
|
}, Symbol.toStringTag, { value: "Module" })), Rl = {
|
|
109
|
-
mounted(
|
|
110
|
-
wt(
|
|
109
|
+
mounted(h, I) {
|
|
110
|
+
wt(h, I.value);
|
|
111
111
|
},
|
|
112
|
-
updated(
|
|
113
|
-
wt(
|
|
112
|
+
updated(h, I) {
|
|
113
|
+
wt(h, I.value);
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
|
-
function wt(
|
|
116
|
+
function wt(h, {
|
|
117
117
|
cellWidth: I,
|
|
118
118
|
cellHeight: J,
|
|
119
119
|
maxFontSize: Y,
|
|
120
120
|
minFontSize: Q,
|
|
121
121
|
index: D,
|
|
122
122
|
reportRotation: V,
|
|
123
|
-
reportHide:
|
|
123
|
+
reportHide: S,
|
|
124
124
|
rotateAll: A,
|
|
125
125
|
hideAll: O
|
|
126
126
|
}) {
|
|
127
|
-
|
|
127
|
+
h.removeAttribute("transform"), h.removeAttribute("visibility");
|
|
128
128
|
let ue = !1, ee = !1;
|
|
129
|
-
|
|
130
|
-
const m =
|
|
129
|
+
h.setAttribute("font-size", Y);
|
|
130
|
+
const m = h.getComputedTextLength();
|
|
131
131
|
if (m <= I)
|
|
132
|
-
V(D, !1),
|
|
132
|
+
V(D, !1), S(D, !1);
|
|
133
133
|
else {
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const T = Math.floor(Y * I / m);
|
|
135
|
+
T >= Q ? (h.setAttribute("font-size", T), V(D, !1), S(D, !1)) : (V(D, !0), S(D, !1), ue = !0);
|
|
136
136
|
}
|
|
137
137
|
if (A && (ue = !0), ue) {
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
const $ =
|
|
138
|
+
h.setAttribute("font-size", Y);
|
|
139
|
+
const T = h.getBBox(), N = T.x + T.width / 2, te = T.y + T.height / 2;
|
|
140
|
+
h.setAttribute("transform", `rotate(-90 ${N} ${te})`);
|
|
141
|
+
const $ = h.getBBox().width;
|
|
142
142
|
if ($ <= J)
|
|
143
|
-
|
|
143
|
+
S(D, !1);
|
|
144
144
|
else {
|
|
145
145
|
const ne = Math.floor(Y * J / $);
|
|
146
|
-
ne >= Q ? (
|
|
146
|
+
ne >= Q ? (h.setAttribute("font-size", ne), S(D, !1)) : (ee = !0, S(D, !0));
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
(O || ee) &&
|
|
149
|
+
(O || ee) && h.setAttribute("visibility", "hidden");
|
|
150
150
|
}
|
|
151
151
|
const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"], Il = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Vl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Ul = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Gl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "onMouseover", "onMouseout", "onClick"], Wl = ["font-size", "font-weight", "fill", "x", "y"], Yl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], jl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], ql = ["font-size", "fill", "x", "y", "font-weight"], Kl = ["font-size", "fill", "x", "y", "font-weight"], Zl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Jl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Ql = { key: 6 }, ea = ["x", "y", "width", "height", "stroke", "stroke-width"], ta = { key: 7 }, la = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], oa = { class: "vue-ui-heatmap-legend-gauge-right" }, sa = ["data-value"], ua = { class: "vue-ui-heatmap-gauge-indicator-value" }, na = {
|
|
152
152
|
key: 4,
|
|
153
153
|
class: "vue-data-ui-watermark"
|
|
154
|
-
}, ia = { class: "vue-ui-data-table" }, ra = { key: 0 }, va = ["data-cell"], ca = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, da = ["data-cell"],
|
|
154
|
+
}, ia = { class: "vue-ui-data-table" }, ra = { key: 0 }, va = ["data-cell"], ca = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, da = ["data-cell"], ha = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ya = {
|
|
155
155
|
__name: "vue-ui-heatmap",
|
|
156
156
|
props: {
|
|
157
157
|
config: {
|
|
@@ -168,19 +168,19 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
170
|
emits: ["selectDatapoint"],
|
|
171
|
-
setup(
|
|
171
|
+
setup(h, { expose: I, emit: J }) {
|
|
172
172
|
nl((t) => ({
|
|
173
|
-
|
|
173
|
+
v0ce143cf: t.tdo
|
|
174
174
|
}));
|
|
175
|
-
const Y = ve(() => import("./Tooltip-B79qvriT.js")), Q = ve(() => import("./BaseIcon-r3_sTK1A.js")), D = ve(() => import("./PenAndPaper-CsqBamFZ.js")), V = ve(() => import("./UserOptions-B-2A_KRb.js")),
|
|
175
|
+
const Y = ve(() => import("./Tooltip-B79qvriT.js")), Q = ve(() => import("./BaseIcon-r3_sTK1A.js")), D = ve(() => import("./PenAndPaper-CsqBamFZ.js")), V = ve(() => import("./UserOptions-B-2A_KRb.js")), S = ve(() => import("./PackageVersion-BpArR90N.js")), A = ve(() => import("./BaseDraggableDialog-C167SnU0.js")), { vue_ui_heatmap: O } = Ll(), { isThemeValid: ue, warnInvalidTheme: ee } = $l(), m = h, T = J, N = b({
|
|
176
176
|
get() {
|
|
177
177
|
return !!m.dataset && m.dataset.length;
|
|
178
178
|
},
|
|
179
179
|
set(t) {
|
|
180
180
|
return t;
|
|
181
181
|
}
|
|
182
|
-
}), te = d(Ie()), $ = d(null), ne = d(!1), _e = d(""), Ge = d(void 0),
|
|
183
|
-
function
|
|
182
|
+
}), te = d(Ie()), $ = d(null), ne = d(!1), _e = d(""), Ge = d(void 0), M = d(null), We = d(0), Ye = d(null), je = d(0), Ft = d(null), ce = d(null), ze = d(null), qe = d(null), Ke = d(null), Dt = d(null), Ze = d(null), Ot = d(null), $e = d(null), Fe = d(null), Bt = d(null), Je = d(null), ie = il(null), e = d(Me());
|
|
183
|
+
function Mt() {
|
|
184
184
|
const t = Array(7).fill("_"), s = [], a = 14, o = t.length;
|
|
185
185
|
for (let v = 0; v < o; v += 1) {
|
|
186
186
|
const c = [];
|
|
@@ -193,16 +193,16 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
193
193
|
}
|
|
194
194
|
return s;
|
|
195
195
|
}
|
|
196
|
-
const { loading: me, FINAL_DATASET: k, manualLoading: De } =
|
|
196
|
+
const { loading: me, FINAL_DATASET: k, manualLoading: De } = Tl({
|
|
197
197
|
...rl(m),
|
|
198
198
|
FINAL_CONFIG: e,
|
|
199
|
-
prepareConfig:
|
|
199
|
+
prepareConfig: Me,
|
|
200
200
|
callback: () => {
|
|
201
201
|
Promise.resolve().then(async () => {
|
|
202
|
-
await
|
|
202
|
+
await Te(), $.value && ml($.value, { delta: 0.1, delay: 250 });
|
|
203
203
|
});
|
|
204
204
|
},
|
|
205
|
-
skeletonDataset:
|
|
205
|
+
skeletonDataset: Mt(),
|
|
206
206
|
skeletonConfig: fl({
|
|
207
207
|
defaultConfig: e.value,
|
|
208
208
|
userConfig: {
|
|
@@ -228,11 +228,11 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
})
|
|
231
|
-
}), { userOptionsVisible: Oe, setUserOptionsVisibility: Et, keepUserOptionState: Qe } = Dl({ config: e.value }), { svgRef:
|
|
231
|
+
}), { userOptionsVisible: Oe, setUserOptionsVisibility: Et, keepUserOptionState: Qe } = Dl({ config: e.value }), { svgRef: Be } = Ol({ config: e.value.style.title });
|
|
232
232
|
function et(t) {
|
|
233
233
|
Et(t);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Me() {
|
|
236
236
|
const t = Ve({
|
|
237
237
|
userConfig: m.config,
|
|
238
238
|
defaultConfig: O
|
|
@@ -259,11 +259,11 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
259
259
|
return m.config && gl(m.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? s.style.layout.dataLabels.xAxis.showOnlyAtModulo = m.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : s.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, s;
|
|
260
260
|
}
|
|
261
261
|
we(() => m.config, (t) => {
|
|
262
|
-
me.value || (e.value =
|
|
262
|
+
me.value || (e.value = Me()), Oe.value = !e.value.userOptions.showOnChartHover, Ee(), je.value += 1, E.value.showTable = e.value.table.show, E.value.showTooltip = e.value.style.tooltip.show, de.value = e.value.style.layout.width, he.value = e.value.style.layout.height;
|
|
263
263
|
}, { deep: !0 }), we(() => m.dataset, (t) => {
|
|
264
264
|
Array.isArray(t) && t.length > 0 && (De.value = !1), Ee();
|
|
265
265
|
}, { deep: !0 });
|
|
266
|
-
const { isPrinting: tt, isImaging: lt, generatePdf: at, generateImage: ot } =
|
|
266
|
+
const { isPrinting: tt, isImaging: lt, generatePdf: at, generateImage: ot } = Sl({
|
|
267
267
|
elementId: `heatmap__${te.value}`,
|
|
268
268
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
269
269
|
options: e.value.userOptions.print
|
|
@@ -284,7 +284,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
284
284
|
type: "dataset",
|
|
285
285
|
debug: st.value
|
|
286
286
|
}), N.value = !1, De.value = !0), mt(m.dataset) || (De.value = e.value.loading), e.value.responsive) {
|
|
287
|
-
const t =
|
|
287
|
+
const t = Se(() => {
|
|
288
288
|
const { width: s, height: a } = Al({
|
|
289
289
|
chart: $.value,
|
|
290
290
|
title: e.value.style.title.text ? qe.value : null,
|
|
@@ -294,7 +294,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
294
294
|
noTitle: Ke.value
|
|
295
295
|
});
|
|
296
296
|
requestAnimationFrame(() => {
|
|
297
|
-
de.value = s,
|
|
297
|
+
de.value = s, he.value = a;
|
|
298
298
|
});
|
|
299
299
|
});
|
|
300
300
|
j.value && (ie.value && j.value.unobserve(ie.value), j.value.disconnect()), j.value = new ResizeObserver(t), ie.value = $.value.parentNode, j.value.observe(ie.value);
|
|
@@ -305,41 +305,41 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
305
305
|
}), vl(() => {
|
|
306
306
|
Ee();
|
|
307
307
|
});
|
|
308
|
-
const U = b(() => Math.max(...k.value.flatMap((t) => (t.values || []).length))), de = d(e.value.style.layout.width),
|
|
308
|
+
const U = b(() => Math.max(...k.value.flatMap((t) => (t.values || []).length))), de = d(e.value.style.layout.width), he = d(e.value.style.layout.height), B = b(() => ({
|
|
309
309
|
width: Math.max(10, de.value),
|
|
310
|
-
height: Math.max(10,
|
|
311
|
-
})), re = d(0), Ht =
|
|
310
|
+
height: Math.max(10, he.value)
|
|
311
|
+
})), re = d(0), Ht = Se((t) => {
|
|
312
312
|
t !== re.value && (re.value = t);
|
|
313
313
|
}, 100);
|
|
314
314
|
Ue({ elementRef: $e, callback: Ht, attr: "height" });
|
|
315
|
-
const le = d(0), Xt =
|
|
315
|
+
const le = d(0), Xt = Se((t) => {
|
|
316
316
|
t !== le.value && (le.value = t);
|
|
317
317
|
}, 100);
|
|
318
318
|
Ue({ elementRef: Ze, callback: Xt, attr: "width" });
|
|
319
|
-
const
|
|
320
|
-
t !==
|
|
319
|
+
const ye = d(0), Pt = Se((t) => {
|
|
320
|
+
t !== ye.value && (ye.value = t);
|
|
321
321
|
}, 100);
|
|
322
322
|
Ue({ elementRef: Fe, callback: Pt, attr: "height" }), ft(() => {
|
|
323
|
-
re.value = 0, le.value = 0,
|
|
323
|
+
re.value = 0, le.value = 0, ye.value = 0;
|
|
324
324
|
});
|
|
325
|
-
const r = b(() => Math.min(
|
|
325
|
+
const r = b(() => Math.min(B.value.height, B.value.width) / 1e3 * e.value.style.layout.cells.spacing), l = b(() => {
|
|
326
326
|
let t = 0;
|
|
327
327
|
e.value.style.legend.show && (t = e.value.style.legend.width);
|
|
328
|
-
const s = e.value.style.layout.padding, a = e.value.style.layout.dataLabels.xAxis.fontSize / 3, o = e.value.style.layout.dataLabels.xAxis.fontSize / 2, v =
|
|
328
|
+
const s = e.value.style.layout.padding, a = e.value.style.layout.dataLabels.xAxis.fontSize / 3, o = e.value.style.layout.dataLabels.xAxis.fontSize / 2, v = B.value.height - s.top - s.bottom - re.value - a, c = B.value.width / 60, w = {
|
|
329
329
|
x: r.value * U.value,
|
|
330
330
|
y: r.value * ((k.value || []).length + 1)
|
|
331
|
-
}, G =
|
|
331
|
+
}, G = B.value.width - s.left - s.right - w.x - c * 2 - 2 - t - le.value, y = v - c - w.y - ye.value - o - e.value.style.layout.cells.columnTotal.value.offsetY, _ = {
|
|
332
332
|
width: Math.max(3, G / U.value),
|
|
333
|
-
height: Math.max(3,
|
|
333
|
+
height: Math.max(3, y / (k.value.length ?? 1))
|
|
334
334
|
};
|
|
335
335
|
return {
|
|
336
336
|
top: s.top + re.value + c + a,
|
|
337
337
|
topLabelsHeight: re.value,
|
|
338
338
|
sumCellXHeight: c,
|
|
339
|
-
height:
|
|
339
|
+
height: y,
|
|
340
340
|
left: s.left + le.value + c / 2,
|
|
341
341
|
right: s.right - t,
|
|
342
|
-
bottom:
|
|
342
|
+
bottom: B.value.height - s.bottom - ye.value,
|
|
343
343
|
width: G,
|
|
344
344
|
cellSize: _
|
|
345
345
|
};
|
|
@@ -359,25 +359,25 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
359
359
|
start: 0,
|
|
360
360
|
end: U.value
|
|
361
361
|
})), p = b(() => {
|
|
362
|
-
const t = It.value.map((
|
|
363
|
-
for (let
|
|
364
|
-
c.push(k.value.map((_) => _.values[
|
|
362
|
+
const t = It.value.map((y) => y.text), s = Vt.value.map((y) => y.text), a = k.value.map((y) => y.values.reduce((_, Xe) => _ + Xe, 0)), o = Math.max(...a), v = Math.min(...a), c = [];
|
|
363
|
+
for (let y = 0; y < U.value; y += 1)
|
|
364
|
+
c.push(k.value.map((_) => _.values[y] || 0).reduce((_, Xe) => _ + Xe, 0));
|
|
365
365
|
const w = Math.max(...c), G = Math.min(...c);
|
|
366
366
|
return {
|
|
367
|
-
yTotals: a.map((
|
|
368
|
-
const _ = isNaN(
|
|
367
|
+
yTotals: a.map((y) => {
|
|
368
|
+
const _ = isNaN(y / o) ? 0 : y / o;
|
|
369
369
|
return {
|
|
370
|
-
total:
|
|
370
|
+
total: y,
|
|
371
371
|
proportion: _,
|
|
372
|
-
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, v, o,
|
|
372
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, v, o, y)
|
|
373
373
|
};
|
|
374
374
|
}),
|
|
375
|
-
xTotals: c.map((
|
|
376
|
-
const _ = isNaN(
|
|
375
|
+
xTotals: c.map((y) => {
|
|
376
|
+
const _ = isNaN(y / w) ? 0 : y / w;
|
|
377
377
|
return {
|
|
378
|
-
total:
|
|
378
|
+
total: y,
|
|
379
379
|
proportion: _,
|
|
380
|
-
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, G, w,
|
|
380
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, G, w, y)
|
|
381
381
|
};
|
|
382
382
|
}),
|
|
383
383
|
yLabels: t,
|
|
@@ -425,7 +425,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
425
425
|
}
|
|
426
426
|
const R = d(null), xe = d(null);
|
|
427
427
|
function jt(t, s, a, o) {
|
|
428
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: s }),
|
|
428
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: s }), M.value = { x: a, y: o };
|
|
429
429
|
const { value: v, yAxisName: c, xAxisName: w, id: G } = t;
|
|
430
430
|
Ge.value = G, R.value = v, xe.value = {
|
|
431
431
|
datapoint: t,
|
|
@@ -433,7 +433,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
433
433
|
series: oe.value,
|
|
434
434
|
config: e.value
|
|
435
435
|
}, ne.value = !0;
|
|
436
|
-
let
|
|
436
|
+
let y = "";
|
|
437
437
|
const _ = e.value.style.tooltip.customFormat;
|
|
438
438
|
kl(_) && wl(() => _({
|
|
439
439
|
datapoint: t,
|
|
@@ -445,7 +445,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
445
445
|
seriesIndex: s,
|
|
446
446
|
series: oe.value,
|
|
447
447
|
config: e.value
|
|
448
|
-
}) : (
|
|
448
|
+
}) : (y += `<div>${c} ${w ? c ? ` - ${w}` : `${w}` : ""}</div>`, y += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, fe.value, q.value, v)}">⬤</span><span>${isNaN(v) ? "-" : K(
|
|
449
449
|
e.value.style.layout.cells.value.formatter,
|
|
450
450
|
v,
|
|
451
451
|
W({
|
|
@@ -455,10 +455,10 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
455
455
|
r: e.value.style.tooltip.roundingValue
|
|
456
456
|
}),
|
|
457
457
|
{ datapoint: t, seriesIndex: s }
|
|
458
|
-
)}</span></div>`, _e.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${
|
|
458
|
+
)}</span></div>`, _e.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${y}</div>`);
|
|
459
459
|
}
|
|
460
460
|
function qt({ datapoint: t, seriesIndex: s }) {
|
|
461
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), ne.value = !1, Ge.value = void 0, R.value = null,
|
|
461
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), ne.value = !1, Ge.value = void 0, R.value = null, M.value = null;
|
|
462
462
|
}
|
|
463
463
|
function Kt(t) {
|
|
464
464
|
return K(
|
|
@@ -493,7 +493,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
493
493
|
return { head: t, body: s };
|
|
494
494
|
});
|
|
495
495
|
function Ne(t = null) {
|
|
496
|
-
|
|
496
|
+
Te(() => {
|
|
497
497
|
const s = ["", ...k.value.map((c, w) => c.name)], a = [];
|
|
498
498
|
for (let c = 0; c < p.value.xLabels.length; c += 1) {
|
|
499
499
|
const w = [p.value.xLabels[c]];
|
|
@@ -520,14 +520,14 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
520
520
|
Ce.value = !Ce.value;
|
|
521
521
|
}
|
|
522
522
|
function Jt(t, s) {
|
|
523
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: s }),
|
|
523
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: s }), T("selectDatapoint", t);
|
|
524
524
|
}
|
|
525
525
|
function Qt() {
|
|
526
526
|
return oe.value;
|
|
527
527
|
}
|
|
528
528
|
async function el({ scale: t = 2 } = {}) {
|
|
529
529
|
if (!$.value) return;
|
|
530
|
-
const { width: s, height: a } = $.value.getBoundingClientRect(), o = s / a, { imageUri: v, base64: c } = await
|
|
530
|
+
const { width: s, height: a } = $.value.getBoundingClientRect(), o = s / a, { imageUri: v, base64: c } = await Bl({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
531
531
|
return {
|
|
532
532
|
imageUri: v,
|
|
533
533
|
base64: c,
|
|
@@ -540,10 +540,10 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
540
540
|
const dt = b(() => ({
|
|
541
541
|
start: 0,
|
|
542
542
|
end: U.value
|
|
543
|
-
})),
|
|
543
|
+
})), ht = b(() => p.value.xLabels);
|
|
544
544
|
kt({
|
|
545
545
|
timeLabelsEls: $e,
|
|
546
|
-
timeLabels:
|
|
546
|
+
timeLabels: ht,
|
|
547
547
|
slicer: dt,
|
|
548
548
|
configRef: e,
|
|
549
549
|
rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
|
|
@@ -552,10 +552,10 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
552
552
|
targetClass: ".vue-ui-heatmap-col-name",
|
|
553
553
|
rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
554
554
|
width: de,
|
|
555
|
-
height:
|
|
555
|
+
height: he
|
|
556
556
|
}), kt({
|
|
557
557
|
timeLabelsEls: Fe,
|
|
558
|
-
timeLabels:
|
|
558
|
+
timeLabels: ht,
|
|
559
559
|
slicer: dt,
|
|
560
560
|
configRef: e,
|
|
561
561
|
rotationPath: ["style", "layout", "cells", "columnTotal", "value", "rotation"],
|
|
@@ -564,7 +564,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
564
564
|
targetClass: ".vue-ui-heatmap-col-total",
|
|
565
565
|
rotation: e.value.style.layout.cells.columnTotal.value.autoRotate.angle,
|
|
566
566
|
width: de,
|
|
567
|
-
height:
|
|
567
|
+
height: he
|
|
568
568
|
});
|
|
569
569
|
const ke = b(() => {
|
|
570
570
|
const t = e.value.table.useDialog && !e.value.table.show, s = E.value.showTable;
|
|
@@ -597,18 +597,18 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
597
597
|
};
|
|
598
598
|
});
|
|
599
599
|
we(() => E.value.showTable, async (t) => {
|
|
600
|
-
e.value.table.show || (t && e.value.table.useDialog && ce.value ? (await
|
|
600
|
+
e.value.table.show || (t && e.value.table.useDialog && ce.value ? (await Te(), ce.value.open()) : "close" in ce.value && ce.value.close());
|
|
601
601
|
});
|
|
602
602
|
const { isResponsive: tl } = Fl(Ye, Rt);
|
|
603
603
|
function He() {
|
|
604
604
|
E.value.showTable = !1, ze.value && ze.value.setTableIconState(!1);
|
|
605
605
|
}
|
|
606
606
|
const ll = b(() => e.value.style.backgroundColor), al = b(() => e.value.style.title), { exportSvg: ol, getSvg: sl } = zl({
|
|
607
|
-
svg:
|
|
607
|
+
svg: Be,
|
|
608
608
|
title: al,
|
|
609
609
|
backgroundColor: ll
|
|
610
610
|
});
|
|
611
|
-
async function
|
|
611
|
+
async function yt({ isCb: t }) {
|
|
612
612
|
if (t) {
|
|
613
613
|
const { blob: s, url: a, text: o, dataUrl: v } = await sl();
|
|
614
614
|
e.value.userOptions.callbacks.svg({ blob: s, url: a, text: o, dataUrl: v });
|
|
@@ -621,7 +621,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
621
621
|
generatePdf: at,
|
|
622
622
|
generateCsv: Ne,
|
|
623
623
|
generateImage: ot,
|
|
624
|
-
generateSvg:
|
|
624
|
+
generateSvg: yt,
|
|
625
625
|
toggleTable: vt,
|
|
626
626
|
toggleTooltip: ct,
|
|
627
627
|
toggleAnnotator: Re,
|
|
@@ -637,7 +637,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
637
637
|
}, [
|
|
638
638
|
e.value.userOptions.buttons.annotator ? (u(), be(n(D), {
|
|
639
639
|
key: 0,
|
|
640
|
-
svgRef: n(
|
|
640
|
+
svgRef: n(Be),
|
|
641
641
|
backgroundColor: e.value.style.backgroundColor,
|
|
642
642
|
color: e.value.style.color,
|
|
643
643
|
active: Ce.value,
|
|
@@ -676,7 +676,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
676
676
|
ref: qe,
|
|
677
677
|
style: "width:100%;background:transparent"
|
|
678
678
|
}, [
|
|
679
|
-
(u(), be(
|
|
679
|
+
(u(), be(Ml, {
|
|
680
680
|
key: `title_${je.value}`,
|
|
681
681
|
config: {
|
|
682
682
|
title: {
|
|
@@ -720,7 +720,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
720
720
|
onGeneratePdf: n(at),
|
|
721
721
|
onGenerateCsv: Ne,
|
|
722
722
|
onGenerateImage: n(ot),
|
|
723
|
-
onGenerateSvg:
|
|
723
|
+
onGenerateSvg: yt,
|
|
724
724
|
onToggleTable: vt,
|
|
725
725
|
onToggleTooltip: ct,
|
|
726
726
|
onToggleAnnotator: Re,
|
|
@@ -800,17 +800,17 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
800
800
|
}, [
|
|
801
801
|
(u(), i("svg", {
|
|
802
802
|
ref_key: "svgRef",
|
|
803
|
-
ref:
|
|
803
|
+
ref: Be,
|
|
804
804
|
xmlns: n(pl),
|
|
805
805
|
class: ge({ "vue-data-ui-fullscreen--on": se.value, "vue-data-ui-fulscreen--off": !se.value }),
|
|
806
|
-
viewBox: `0 0 ${
|
|
806
|
+
viewBox: `0 0 ${B.value.width} ${B.value.height}`,
|
|
807
807
|
width: "100%",
|
|
808
808
|
style: L(`overflow: visible; background:transparent;color:${e.value.style.color}`),
|
|
809
809
|
"aria-live": "polite",
|
|
810
810
|
role: "img",
|
|
811
811
|
preserveAspectRatio: "xMidYMid"
|
|
812
812
|
}, [
|
|
813
|
-
Ae(n(
|
|
813
|
+
Ae(n(S)),
|
|
814
814
|
t.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
815
815
|
key: 0,
|
|
816
816
|
x: l.value.left,
|
|
@@ -826,11 +826,11 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
826
826
|
e.value.style.layout.cells.columnTotal.color.show ? (u(), i("g", {
|
|
827
827
|
key: 1,
|
|
828
828
|
ref_key: "xAxisSumRects",
|
|
829
|
-
ref:
|
|
829
|
+
ref: Bt
|
|
830
830
|
}, [
|
|
831
831
|
(u(!0), i(z, null, P(p.value.xTotals, (a, o) => (u(), i("rect", {
|
|
832
832
|
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
833
|
-
y: l.value.top - l.value.sumCellXHeight + r.value * (
|
|
833
|
+
y: l.value.top - l.value.sumCellXHeight + r.value * (B.value.height / B.value.width),
|
|
834
834
|
height: l.value.sumCellXHeight,
|
|
835
835
|
width: l.value.cellSize.width - r.value,
|
|
836
836
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
@@ -839,7 +839,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
839
839
|
}, null, 8, Il))), 256)),
|
|
840
840
|
(u(!0), i(z, null, P(p.value.xTotals, (a, o) => (u(), i("rect", {
|
|
841
841
|
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
842
|
-
y: l.value.top - l.value.sumCellXHeight + r.value * (
|
|
842
|
+
y: l.value.top - l.value.sumCellXHeight + r.value * (B.value.height / B.value.width),
|
|
843
843
|
height: l.value.sumCellXHeight,
|
|
844
844
|
width: l.value.cellSize.width - r.value,
|
|
845
845
|
fill: a.color,
|
|
@@ -995,11 +995,11 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
995
995
|
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / p.value.xLabels.length * o + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + l.value.sumCellXHeight}, ${l.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
|
|
996
996
|
}, F(Zt(o)), 9, Jl))), 256))
|
|
997
997
|
], 512)) : f("", !0),
|
|
998
|
-
|
|
998
|
+
M.value ? (u(), i("g", Ql, [
|
|
999
999
|
g("rect", {
|
|
1000
1000
|
style: { "pointer-events": "none" },
|
|
1001
|
-
x:
|
|
1002
|
-
y:
|
|
1001
|
+
x: M.value.x - e.value.style.layout.cells.selected.border / 2 + r.value + l.value.sumCellXHeight,
|
|
1002
|
+
y: M.value.y - e.value.style.layout.cells.selected.border / 2 + r.value,
|
|
1003
1003
|
width: l.value.cellSize.width - r.value + e.value.style.layout.cells.selected.border - r.value,
|
|
1004
1004
|
height: l.value.cellSize.height - r.value + e.value.style.layout.cells.selected.border - r.value,
|
|
1005
1005
|
fill: "transparent",
|
|
@@ -1008,21 +1008,21 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1008
1008
|
rx: 1
|
|
1009
1009
|
}, null, 8, ea)
|
|
1010
1010
|
])) : f("", !0),
|
|
1011
|
-
e.value.style.layout.crosshairs.show &&
|
|
1011
|
+
e.value.style.layout.crosshairs.show && M.value ? (u(), i("g", ta, [
|
|
1012
1012
|
g("line", {
|
|
1013
|
-
x1: l.value.left +
|
|
1014
|
-
x2:
|
|
1015
|
-
y1:
|
|
1016
|
-
y2:
|
|
1013
|
+
x1: l.value.left + l.value.sumCellXHeight,
|
|
1014
|
+
x2: M.value.x + l.value.sumCellXHeight,
|
|
1015
|
+
y1: M.value.y + (l.value.cellSize.height - r.value) / 2,
|
|
1016
|
+
y2: M.value.y + (l.value.cellSize.height - r.value) / 2,
|
|
1017
1017
|
stroke: e.value.style.layout.crosshairs.stroke,
|
|
1018
1018
|
"stroke-width": e.value.style.layout.crosshairs.strokeWidth,
|
|
1019
1019
|
"stroke-dasharray": e.value.style.layout.crosshairs.strokeDasharray,
|
|
1020
1020
|
"stroke-linecap": "round"
|
|
1021
1021
|
}, null, 8, la),
|
|
1022
1022
|
g("line", {
|
|
1023
|
-
x1:
|
|
1024
|
-
x2:
|
|
1025
|
-
y1:
|
|
1023
|
+
x1: M.value.x + l.value.sumCellXHeight + (l.value.cellSize.width - r.value) / 2,
|
|
1024
|
+
x2: M.value.x + l.value.sumCellXHeight + (l.value.cellSize.width - r.value) / 2,
|
|
1025
|
+
y1: M.value.y,
|
|
1026
1026
|
y2: l.value.top,
|
|
1027
1027
|
stroke: e.value.style.layout.crosshairs.stroke,
|
|
1028
1028
|
"stroke-width": e.value.style.layout.crosshairs.strokeWidth,
|
|
@@ -1030,7 +1030,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1030
1030
|
"stroke-linecap": "round"
|
|
1031
1031
|
}, null, 8, aa)
|
|
1032
1032
|
])) : f("", !0),
|
|
1033
|
-
x(t.$slots, "svg", { svg:
|
|
1033
|
+
x(t.$slots, "svg", { svg: B.value }, void 0, !0)
|
|
1034
1034
|
], 14, Xl)),
|
|
1035
1035
|
e.value.style.legend.show ? (u(), i("div", {
|
|
1036
1036
|
key: 0,
|
|
@@ -1164,7 +1164,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1164
1164
|
]),
|
|
1165
1165
|
_: 3
|
|
1166
1166
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1167
|
-
N.value && e.value.userOptions.buttons.table ? (u(), be(dl(ke.value.component),
|
|
1167
|
+
N.value && e.value.userOptions.buttons.table ? (u(), be(dl(ke.value.component), hl({ key: 6 }, ke.value.props, {
|
|
1168
1168
|
ref_key: "tableUnit",
|
|
1169
1169
|
ref: ce,
|
|
1170
1170
|
onClose: He
|
|
@@ -1186,7 +1186,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1186
1186
|
tabindex: "0",
|
|
1187
1187
|
style: L(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
1188
1188
|
onClick: He,
|
|
1189
|
-
onKeypress:
|
|
1189
|
+
onKeypress: yl(He, ["enter"])
|
|
1190
1190
|
}, [
|
|
1191
1191
|
Ae(n(Q), {
|
|
1192
1192
|
name: "close",
|
|
@@ -1210,7 +1210,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1210
1210
|
g("th", {
|
|
1211
1211
|
style: L(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1212
1212
|
}, null, 4),
|
|
1213
|
-
(u(!0), i(z, null, P(
|
|
1213
|
+
(u(!0), i(z, null, P(h.dataset, (a, o) => (u(), i("th", {
|
|
1214
1214
|
align: "right",
|
|
1215
1215
|
style: L(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1216
1216
|
}, F(a.name), 5))), 256))
|
|
@@ -1229,12 +1229,12 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1229
1229
|
}, [
|
|
1230
1230
|
g("div", ca, F(a), 1)
|
|
1231
1231
|
], 12, va),
|
|
1232
|
-
(u(!0), i(z, null, P(
|
|
1232
|
+
(u(!0), i(z, null, P(h.dataset, (v, c) => (u(), i("td", {
|
|
1233
1233
|
class: "vue-ui-data-table__tbody__td",
|
|
1234
|
-
"data-cell":
|
|
1234
|
+
"data-cell": h.dataset[c].name,
|
|
1235
1235
|
style: L(`outline:${e.value.table.td.outline}`)
|
|
1236
1236
|
}, [
|
|
1237
|
-
g("div",
|
|
1237
|
+
g("div", ha, F(isNaN(v.values[o]) ? "-" : n(W)({ p: e.value.style.layout.dataLabels.prefix, v: v.values[o], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
1238
1238
|
], 12, da))), 256))
|
|
1239
1239
|
], 6))), 256))
|
|
1240
1240
|
])
|
|
@@ -1271,12 +1271,12 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1271
1271
|
n(me) ? (u(), be(_l, { key: 7 })) : f("", !0)
|
|
1272
1272
|
], 46, Hl));
|
|
1273
1273
|
}
|
|
1274
|
-
}, fa = /* @__PURE__ */ Nl(
|
|
1274
|
+
}, fa = /* @__PURE__ */ Nl(ya, [["__scopeId", "data-v-9f255c51"]]), Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1275
1275
|
__proto__: null,
|
|
1276
1276
|
default: fa
|
|
1277
1277
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1278
1278
|
export {
|
|
1279
1279
|
Oa as a,
|
|
1280
|
-
|
|
1280
|
+
Ba as b,
|
|
1281
1281
|
fa as v
|
|
1282
1282
|
};
|