vue-data-ui 3.16.0 → 3.16.1
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/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
- package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-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-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DXGkXRnC.js} +63 -63
- package/dist/vue-data-ui.js +63 -63
- package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-BaFpQnd5.js} +1 -1
- package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-CRM498Pc.js} +342 -341
- package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
- package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-BBiwof3c.js} +1 -1
- package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-Brxpu4xV.js} +1 -1
- package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DAnZv77-.js} +240 -239
- package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-BHRZBYY0.js} +1 -1
- package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-CbrYnRgm.js} +1 -1
- package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-CaX_IUVs.js} +1 -1
- package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-CR3h53sc.js} +1 -1
- package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-Cjfazw7Z.js} +1 -1
- package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-B9vH3c66.js} +1 -1
- package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-DWll05qs.js} +62 -62
- package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-DcM67rMx.js} +1 -1
- package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Be5G38P5.js} +395 -394
- package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-BLSesj3c.js} +265 -264
- package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-DIMiCY4r.js} +1 -1
- package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-zvZylhgr.js} +1 -1
- package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-CSri-oWm.js} +1 -1
- package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-CGykxsAI.js} +1 -1
- package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-D1MNB9Jq.js} +1 -1
- package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-DdJDGhG2.js} +1 -1
- package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-BZYRHGFm.js} +1 -1
- package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-CryOx6XK.js} +494 -482
- package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-C85iw9Kl.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-BoBZOybC.js} +430 -429
- package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-DHrolXw6.js} +1 -1
- package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-DJ_BQ4DK.js} +1 -1
- package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-CBE02TpQ.js} +1 -1
- package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-YTFtb4CL.js} +284 -283
- package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-B9l81-PS.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-C1e_rs8J.js} +1 -1
- package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-C1qsLCRn.js} +556 -555
- package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DFoz3WiA.js} +360 -359
- package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-Cmo3p-UA.js} +1 -1
- package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-BqwznVwf.js} +1 -1
- package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CDk9eXJq.js} +1 -1
- package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-BRkGoQdL.js} +1 -1
- package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-BxDtWASQ.js} +479 -466
- package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-D6kTb9aO.js} +1 -1
- package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-D8Mf2A1w.js} +1 -1
- package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-BbYj56c3.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DXzOSLRb.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-DMfSx1iH.js} +1 -1
- package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-D-rQ9PsC.js} +439 -438
- package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-DK5n8IKP.js} +1 -1
- package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-BHthy6jf.js} +212 -211
- package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-C6-WNpKD.js} +363 -362
- package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-CHu-1ilI.js} +1 -1
- package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DW9JGsLq.js} +2 -2
- package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-CXK1dFr-.js} +1 -1
- package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-BN8tflOz.js} +1 -1
- package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-DGT0UBOF.js} +1 -1
- package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-BZ-osQqY.js} +1 -1
- package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-98KaVRyd.js} +388 -387
- package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-Cb7oJnIc.js} +1 -1
- package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-sfew1fjw.js} +1 -1
- package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-vq1t9JHr.js} +1 -1
- package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-CN0f6elD.js} +1 -1
- package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-BdzEiImZ.js} +956 -955
- package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
- package/package.json +1 -1
- package/dist/ColorPicker-DQ5sdRrl.js +0 -244
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { watchEffect as
|
|
2
|
-
import { j as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { A as
|
|
20
|
-
import { _ as
|
|
21
|
-
function
|
|
1
|
+
import { watchEffect as pt, nextTick as xe, useCssVars as Ul, defineAsyncComponent as be, computed as f, ref as v, shallowRef as Gl, toRefs as Wl, watch as Be, onBeforeUnmount as qt, onMounted as Kl, reactive as jt, openBlock as u, createElementBlock as i, normalizeStyle as L, normalizeClass as Oe, createElementVNode as p, toDisplayString as I, createBlock as me, createCommentVNode as g, unref as n, withCtx as C, renderSlot as m, normalizeProps as H, guardReactiveProps as E, createSlots as Jt, createVNode as Ue, Fragment as O, renderList as U, withDirectives as Qt, createTextVNode as dt, vShow as Yl, resolveDynamicComponent as ql, mergeProps as jl, withKeys as Jl } from "vue";
|
|
2
|
+
import { j as yt, t as Zt, o as el, q as tl, ao as Me, r as Ql, l as q, X as Zl, W as Ge, k as le, K as ae, aB as ea, a0 as ta, a1 as la, T as aa, U as oa } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { t as We, u as sa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ua } from "./useConfig-DO94Aj5s.js";
|
|
5
|
+
import { u as na } from "./usePrinter-CEpYU3r5.js";
|
|
6
|
+
import { u as ia, B as ra } from "./BaseScanner-BhhkKVoj.js";
|
|
7
|
+
import { u as va } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as ht } from "./useNestedProp-Bf5XFbs8.js";
|
|
9
|
+
import { u as ll } from "./useTimeLabels-C-A2uZKi.js";
|
|
10
|
+
import { u as ca } from "./useThemeCheck-D1ZYXUwG.js";
|
|
11
|
+
import { u as da } from "./useTableResponsive-Cbx-ACcP.js";
|
|
12
|
+
import { u as ya } from "./useUserOptionState-BIvW1Kz7.js";
|
|
13
|
+
import { u as al } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
14
|
+
import { u as ha } from "./useChartAccessibility-9icAAmYg.js";
|
|
15
|
+
import fa from "./img-LXxMLmCg.js";
|
|
16
|
+
import pa from "./Title-BeMKE1cj.js";
|
|
17
|
+
import ga from "./vue_ui_heatmap-C9u993qE.js";
|
|
18
|
+
import ba from "./vue-ui-accordion-nvggWcGN.js";
|
|
19
|
+
import { A as ma } from "./A11yDataTable-KcVAX2cP.js";
|
|
20
|
+
import { _ as xa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
21
|
+
function ft({
|
|
22
22
|
elementRef: h,
|
|
23
23
|
callback: G,
|
|
24
|
-
attr:
|
|
24
|
+
attr: oe,
|
|
25
25
|
earlyReturn: J = !1,
|
|
26
|
-
retryFrames:
|
|
27
|
-
alsoAfterFontsReady:
|
|
26
|
+
retryFrames: se = 12,
|
|
27
|
+
alsoAfterFontsReady: N = !0
|
|
28
28
|
}) {
|
|
29
29
|
if (J) return;
|
|
30
|
-
const W = (
|
|
31
|
-
if (
|
|
30
|
+
const W = (z) => {
|
|
31
|
+
if (!z) return;
|
|
32
32
|
let S;
|
|
33
|
-
if (typeof
|
|
33
|
+
if (typeof z.getBBox == "function")
|
|
34
34
|
try {
|
|
35
|
-
const F =
|
|
36
|
-
S =
|
|
35
|
+
const F = z.getBBox();
|
|
36
|
+
S = oe === "width" ? F.width : F.height;
|
|
37
37
|
} catch {
|
|
38
38
|
}
|
|
39
39
|
if (typeof S != "number" || Number.isNaN(S))
|
|
40
40
|
try {
|
|
41
|
-
const F =
|
|
42
|
-
S =
|
|
41
|
+
const F = z.getBoundingClientRect();
|
|
42
|
+
S = oe === "width" ? F.width : F.height;
|
|
43
43
|
} catch {
|
|
44
44
|
S = void 0;
|
|
45
45
|
}
|
|
46
46
|
typeof S == "number" && !Number.isNaN(S) && G(S);
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
pt((z) => {
|
|
49
49
|
const S = h.value;
|
|
50
50
|
if (!S) return;
|
|
51
51
|
let F = !1;
|
|
52
52
|
(async () => {
|
|
53
|
-
await
|
|
54
|
-
for (let T = 0; T <
|
|
53
|
+
await xe();
|
|
54
|
+
for (let T = 0; T < se; T += 1) {
|
|
55
55
|
if (F) return;
|
|
56
56
|
await new Promise((K) => requestAnimationFrame(K));
|
|
57
|
-
const
|
|
58
|
-
if (!
|
|
59
|
-
W(
|
|
57
|
+
const X = h.value;
|
|
58
|
+
if (!X) return;
|
|
59
|
+
W(X);
|
|
60
60
|
}
|
|
61
|
-
if (
|
|
61
|
+
if (N && typeof document < "u" && document.fonts && document.fonts.ready) {
|
|
62
62
|
try {
|
|
63
63
|
await document.fonts.ready;
|
|
64
64
|
} catch {
|
|
@@ -66,12 +66,12 @@ function nt({
|
|
|
66
66
|
!F && h.value && W(h.value);
|
|
67
67
|
}
|
|
68
68
|
})();
|
|
69
|
-
const
|
|
69
|
+
const ue = new MutationObserver(() => {
|
|
70
70
|
h.value && requestAnimationFrame(() => {
|
|
71
71
|
h.value && W(h.value);
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
|
-
|
|
74
|
+
ue.observe(S, {
|
|
75
75
|
childList: !0,
|
|
76
76
|
subtree: !0,
|
|
77
77
|
characterData: !0,
|
|
@@ -82,67 +82,67 @@ function nt({
|
|
|
82
82
|
if (typeof ResizeObserver < "u") {
|
|
83
83
|
const T = S.ownerSVGElement ? S.ownerSVGElement : S;
|
|
84
84
|
A = new ResizeObserver(() => {
|
|
85
|
-
const
|
|
86
|
-
|
|
85
|
+
const X = h.value;
|
|
86
|
+
X && W(X);
|
|
87
87
|
}), A.observe(T);
|
|
88
88
|
}
|
|
89
|
-
|
|
90
|
-
F = !0,
|
|
89
|
+
z(() => {
|
|
90
|
+
F = !0, ue.disconnect(), A && A.disconnect();
|
|
91
91
|
});
|
|
92
92
|
}, { flush: "post" });
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const wa = {
|
|
95
95
|
mounted(h, G) {
|
|
96
|
-
|
|
96
|
+
ol(h, G.value);
|
|
97
97
|
},
|
|
98
98
|
updated(h, G) {
|
|
99
|
-
|
|
99
|
+
ol(h, G.value);
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
|
-
function
|
|
102
|
+
function ol(h, {
|
|
103
103
|
cellWidth: G,
|
|
104
|
-
cellHeight:
|
|
104
|
+
cellHeight: oe,
|
|
105
105
|
maxFontSize: J,
|
|
106
|
-
minFontSize:
|
|
107
|
-
index:
|
|
106
|
+
minFontSize: se,
|
|
107
|
+
index: N,
|
|
108
108
|
reportRotation: W,
|
|
109
|
-
reportHide:
|
|
109
|
+
reportHide: z,
|
|
110
110
|
rotateAll: S,
|
|
111
111
|
hideAll: F
|
|
112
112
|
}) {
|
|
113
113
|
h.removeAttribute("transform"), h.removeAttribute("visibility");
|
|
114
|
-
let
|
|
114
|
+
let fe = !1, ue = !1;
|
|
115
115
|
h.setAttribute("font-size", J);
|
|
116
116
|
const A = h.getComputedTextLength();
|
|
117
117
|
if (A <= G)
|
|
118
|
-
W(
|
|
118
|
+
W(N, !1), z(N, !1);
|
|
119
119
|
else {
|
|
120
120
|
const T = Math.floor(J * G / A);
|
|
121
|
-
T >=
|
|
121
|
+
T >= se ? (h.setAttribute("font-size", T), W(N, !1), z(N, !1)) : (W(N, !0), z(N, !1), fe = !0);
|
|
122
122
|
}
|
|
123
|
-
if (S && (
|
|
123
|
+
if (S && (fe = !0), fe) {
|
|
124
124
|
h.setAttribute("font-size", J);
|
|
125
|
-
const T = h.getBBox(),
|
|
126
|
-
h.setAttribute("transform", `rotate(-90 ${
|
|
127
|
-
const
|
|
128
|
-
if (
|
|
129
|
-
|
|
125
|
+
const T = h.getBBox(), X = T.x + T.width / 2, K = T.y + T.height / 2;
|
|
126
|
+
h.setAttribute("transform", `rotate(-90 ${X} ${K})`);
|
|
127
|
+
const M = h.getBBox().width;
|
|
128
|
+
if (M <= oe)
|
|
129
|
+
z(N, !1);
|
|
130
130
|
else {
|
|
131
|
-
const
|
|
132
|
-
|
|
131
|
+
const ne = Math.floor(J * oe / M);
|
|
132
|
+
ne >= se ? (h.setAttribute("font-size", ne), z(N, !1)) : (ue = !0, z(N, !0));
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
(F ||
|
|
135
|
+
(F || ue) && h.setAttribute("visibility", "hidden");
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], La = ["x", "y", "width", "height"], Sa = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Ta = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], $a = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], za = ["data-a11y-cell-id", "x", "y", "width", "height", "fill", "stroke", "stroke-width", "aria-label", "onMouseover", "onMouseout", "onClick"], _a = ["font-size", "font-weight", "fill", "x", "y"], Ia = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Oa = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ma = ["font-size", "fill", "x", "y", "font-weight"], Na = ["font-size", "fill", "x", "y", "font-weight"], Fa = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Ra = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Pa = { key: 6 }, Da = ["x", "y", "width", "height", "stroke", "stroke-width"], Ha = { key: 7 }, Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Xa = { class: "vue-ui-heatmap-legend-gauge-right" }, Ba = ["data-value"], Ua = { class: "vue-ui-heatmap-gauge-indicator-value" }, Ga = {
|
|
138
138
|
key: 1,
|
|
139
139
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
140
140
|
"data-dom-to-png-ignore": "",
|
|
141
141
|
"aria-hidden": "true"
|
|
142
|
-
},
|
|
142
|
+
}, Wa = {
|
|
143
143
|
key: 5,
|
|
144
144
|
class: "vue-data-ui-watermark"
|
|
145
|
-
},
|
|
145
|
+
}, Ka = { class: "vue-ui-data-table" }, Ya = { key: 0 }, qa = ["data-cell"], ja = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ja = ["data-cell"], Qa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Za = {
|
|
146
146
|
__name: "vue-ui-heatmap",
|
|
147
147
|
props: {
|
|
148
148
|
config: {
|
|
@@ -159,32 +159,32 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
emits: ["selectDatapoint", "copyAlt"],
|
|
162
|
-
setup(h, { expose: G, emit:
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
setup(h, { expose: G, emit: oe }) {
|
|
163
|
+
Ul((t) => ({
|
|
164
|
+
v2aac18d7: t.tdo
|
|
165
165
|
}));
|
|
166
|
-
const J =
|
|
166
|
+
const J = be(() => import("./Tooltip-Bf-kM3_A.js")), se = be(() => import("./BaseIcon-Cb3zzG6s.js")), N = be(() => import("./PenAndPaper-Ct3qJ4lA.js")), W = be(() => import("./UserOptions-rW2fRf3V.js")), z = be(() => import("./PackageVersion-DPO-OOVI.js")), S = be(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_heatmap: F } = ua(), { isThemeValid: fe, warnInvalidTheme: ue } = ca(), A = h, T = oe, X = f({
|
|
167
167
|
get() {
|
|
168
168
|
return !!A.dataset && A.dataset.length;
|
|
169
169
|
},
|
|
170
170
|
set(t) {
|
|
171
171
|
return t;
|
|
172
172
|
}
|
|
173
|
-
}), K =
|
|
174
|
-
function
|
|
173
|
+
}), K = v(yt()), M = v(null), ne = v(!1), Ke = v(""), we = v(void 0), R = v(null), gt = v(0), bt = v(null), mt = v(0), sl = v(null), ke = v(null), Ye = v(null), Ne = v(!1), Fe = v(!1), xt = v(null), wt = v(null), ul = v(null), kt = v(null), nl = v(null), qe = v(null), je = v(null), il = v(null), Ct = v(null), pe = Gl(null), ie = v(null), Re = v(null), At = v({ x: 0, y: 0 }), Je = v("pointer"), Pe = v(!1), e = v(et()), De = f(() => e.value.userOptions.useCursorPointer);
|
|
174
|
+
function rl() {
|
|
175
175
|
const t = Array(7).fill("_"), o = [], l = 14, s = t.length;
|
|
176
|
-
for (let
|
|
176
|
+
for (let r = 0; r < s; r += 1) {
|
|
177
177
|
const c = [];
|
|
178
178
|
for (let b = 0; b < l; b += 1)
|
|
179
|
-
c.push(
|
|
179
|
+
c.push(r + b * 2);
|
|
180
180
|
o.push({
|
|
181
|
-
name: `${t[
|
|
181
|
+
name: `${t[r]}`,
|
|
182
182
|
values: c
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
return o;
|
|
186
186
|
}
|
|
187
|
-
const
|
|
187
|
+
const vl = f(() => Zt({
|
|
188
188
|
defaultConfig: {
|
|
189
189
|
table: { show: !1 },
|
|
190
190
|
userOptions: { show: !1 },
|
|
@@ -208,41 +208,41 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
210
|
userConfig: e.value.skeletonConfig ?? {}
|
|
211
|
-
})), { loading:
|
|
212
|
-
...
|
|
211
|
+
})), { loading: He, FINAL_DATASET: k, manualLoading: Qe } = ia({
|
|
212
|
+
...Wl(A),
|
|
213
213
|
FINAL_CONFIG: e,
|
|
214
|
-
prepareConfig:
|
|
214
|
+
prepareConfig: et,
|
|
215
215
|
callback: () => {
|
|
216
216
|
Promise.resolve().then(async () => {
|
|
217
|
-
await
|
|
217
|
+
await xe(), M.value && ea(M.value, { delta: 0.1, delay: 250 });
|
|
218
218
|
});
|
|
219
219
|
},
|
|
220
|
-
skeletonDataset: A.config?.skeletonDataset ??
|
|
221
|
-
skeletonConfig:
|
|
220
|
+
skeletonDataset: A.config?.skeletonDataset ?? rl(),
|
|
221
|
+
skeletonConfig: Zt({
|
|
222
222
|
defaultConfig: e.value,
|
|
223
|
-
userConfig:
|
|
223
|
+
userConfig: vl.value
|
|
224
224
|
})
|
|
225
|
-
}), { userOptionsVisible:
|
|
226
|
-
function
|
|
227
|
-
|
|
225
|
+
}), { userOptionsVisible: Ze, setUserOptionsVisibility: cl, keepUserOptionState: Lt } = ya({ config: e.value }), { svgRef: re } = ha({ config: e.value.style.title });
|
|
226
|
+
function St(t) {
|
|
227
|
+
cl(t);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
const t =
|
|
229
|
+
function et() {
|
|
230
|
+
const t = ht({
|
|
231
231
|
userConfig: A.config,
|
|
232
232
|
defaultConfig: F
|
|
233
233
|
});
|
|
234
234
|
let o = {};
|
|
235
235
|
const l = t.theme;
|
|
236
236
|
if (l)
|
|
237
|
-
if (!
|
|
238
|
-
|
|
237
|
+
if (!fe.value(t))
|
|
238
|
+
ue(t), o = t;
|
|
239
239
|
else {
|
|
240
|
-
const s =
|
|
241
|
-
userConfig:
|
|
240
|
+
const s = ht({
|
|
241
|
+
userConfig: ga[l] || A.config,
|
|
242
242
|
defaultConfig: t
|
|
243
243
|
});
|
|
244
244
|
o = {
|
|
245
|
-
...
|
|
245
|
+
...ht({
|
|
246
246
|
userConfig: A.config,
|
|
247
247
|
defaultConfig: s
|
|
248
248
|
})
|
|
@@ -252,125 +252,125 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
252
252
|
o = t;
|
|
253
253
|
return o;
|
|
254
254
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}, { deep: !0 }),
|
|
258
|
-
Array.isArray(t) && t.length > 0 && (
|
|
255
|
+
Be(() => A.config, (t) => {
|
|
256
|
+
He.value || (e.value = et()), Ze.value = !e.value.userOptions.showOnChartHover, at(), mt.value += 1, P.value.showTable = e.value.table.show, P.value.showTooltip = e.value.style.tooltip.show, Ce.value = e.value.style.layout.width, Ae.value = e.value.style.layout.height;
|
|
257
|
+
}, { deep: !0 }), Be(() => A.dataset, (t) => {
|
|
258
|
+
Array.isArray(t) && t.length > 0 && (Qe.value = !1), at();
|
|
259
259
|
}, { deep: !0 });
|
|
260
|
-
const { isPrinting:
|
|
260
|
+
const { isPrinting: tt, isImaging: lt, generatePdf: Tt, generateImage: $t } = na({
|
|
261
261
|
elementId: `heatmap__${K.value}`,
|
|
262
262
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
263
263
|
options: e.value.userOptions.print
|
|
264
|
-
}),
|
|
264
|
+
}), dl = f(() => e.value.userOptions.show && !e.value.style.title.text), P = v({
|
|
265
265
|
showTable: e.value.table.show,
|
|
266
266
|
showTooltip: e.value.style.tooltip.show
|
|
267
267
|
});
|
|
268
|
-
|
|
268
|
+
Be(e, () => {
|
|
269
269
|
P.value = {
|
|
270
270
|
showTable: e.value.table.show,
|
|
271
271
|
showTooltip: e.value.style.tooltip.show
|
|
272
272
|
};
|
|
273
273
|
}, { immediate: !0 });
|
|
274
|
-
const
|
|
275
|
-
function
|
|
276
|
-
if (
|
|
274
|
+
const yl = f(() => e.value.table.responsiveBreakpoint), Q = v(null), zt = f(() => !!e.value.debug);
|
|
275
|
+
function at() {
|
|
276
|
+
if (el(A.dataset) && (tl({
|
|
277
277
|
componentName: "VueUiHeatmap",
|
|
278
278
|
type: "dataset",
|
|
279
|
-
debug:
|
|
280
|
-
}),
|
|
281
|
-
const t =
|
|
282
|
-
const { width: o, height: l } =
|
|
283
|
-
chart:
|
|
284
|
-
title: e.value.style.title.text ?
|
|
279
|
+
debug: zt.value
|
|
280
|
+
}), X.value = !1, Qe.value = !0), el(A.dataset) || (Qe.value = e.value.loading), e.value.responsive) {
|
|
281
|
+
const t = We(() => {
|
|
282
|
+
const { width: o, height: l } = sa({
|
|
283
|
+
chart: M.value,
|
|
284
|
+
title: e.value.style.title.text ? xt.value : null,
|
|
285
285
|
// add legend hirizontal in legend attr
|
|
286
286
|
// add legend vertical in some other attr and modify composable to subtract width
|
|
287
|
-
source:
|
|
288
|
-
noTitle:
|
|
287
|
+
source: Ct.value,
|
|
288
|
+
noTitle: wt.value
|
|
289
289
|
});
|
|
290
290
|
requestAnimationFrame(() => {
|
|
291
|
-
|
|
291
|
+
Ce.value = o, Ae.value = l;
|
|
292
292
|
});
|
|
293
293
|
});
|
|
294
|
-
Q.value && (
|
|
294
|
+
Q.value && (pe.value && Q.value.unobserve(pe.value), Q.value.disconnect()), Q.value = new ResizeObserver(t), pe.value = M.value.parentNode, Q.value.observe(pe.value);
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
|
|
298
|
-
Q.value && (
|
|
299
|
-
}),
|
|
300
|
-
|
|
297
|
+
qt(() => {
|
|
298
|
+
Q.value && (pe.value && Q.value.unobserve(pe.value), Q.value.disconnect());
|
|
299
|
+
}), Kl(() => {
|
|
300
|
+
at();
|
|
301
301
|
});
|
|
302
|
-
const Y = f(() => Math.max(...k.value.flatMap((t) => (t.values || []).length))),
|
|
303
|
-
width: Math.max(10,
|
|
304
|
-
height: Math.max(10,
|
|
305
|
-
})),
|
|
306
|
-
t !==
|
|
302
|
+
const Y = f(() => Math.max(...k.value.flatMap((t) => (t.values || []).length))), Ce = v(e.value.style.layout.width), Ae = v(e.value.style.layout.height), D = f(() => ({
|
|
303
|
+
width: Math.max(10, Ce.value),
|
|
304
|
+
height: Math.max(10, Ae.value)
|
|
305
|
+
})), ge = v(0), hl = We((t) => {
|
|
306
|
+
t !== ge.value && (ge.value = t);
|
|
307
307
|
}, 100);
|
|
308
|
-
|
|
309
|
-
const
|
|
310
|
-
t !==
|
|
308
|
+
ft({ elementRef: qe, callback: hl, attr: "height" });
|
|
309
|
+
const ve = v(0), fl = We((t) => {
|
|
310
|
+
t !== ve.value && (ve.value = t);
|
|
311
311
|
}, 100);
|
|
312
|
-
|
|
313
|
-
const
|
|
314
|
-
t !==
|
|
312
|
+
ft({ elementRef: kt, callback: fl, attr: "width" });
|
|
313
|
+
const Le = v(0), pl = We((t) => {
|
|
314
|
+
t !== Le.value && (Le.value = t);
|
|
315
315
|
}, 100);
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
ft({ elementRef: je, callback: pl, attr: "height" }), qt(() => {
|
|
317
|
+
ge.value = 0, ve.value = 0, Le.value = 0;
|
|
318
318
|
});
|
|
319
319
|
const d = f(() => Math.min(D.value.height, D.value.width) / 1e3 * e.value.style.layout.cells.spacing), a = f(() => {
|
|
320
320
|
let t = 0;
|
|
321
321
|
e.value.style.legend.show && (t = e.value.style.legend.width);
|
|
322
|
-
const o = e.value.style.layout.padding, l = e.value.style.layout.dataLabels.xAxis.fontSize / 3, s = e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
322
|
+
const o = e.value.style.layout.padding, l = e.value.style.layout.dataLabels.xAxis.fontSize / 3, s = e.value.style.layout.dataLabels.xAxis.fontSize / 2, r = D.value.height - o.top - o.bottom - ge.value - l, c = D.value.width / 60, b = {
|
|
323
323
|
x: d.value * Y.value,
|
|
324
324
|
y: d.value * ((k.value || []).length + 1)
|
|
325
|
-
}, _ = D.value.width - o.left - o.right - b.x - c * 2 - 2 - t -
|
|
325
|
+
}, _ = D.value.width - o.left - o.right - b.x - c * 2 - 2 - t - ve.value, y = r - c - b.y - Le.value - s - e.value.style.layout.cells.columnTotal.value.offsetY, w = {
|
|
326
326
|
width: Math.max(3, _ / Y.value),
|
|
327
327
|
height: Math.max(3, y / (k.value.length ?? 1))
|
|
328
328
|
};
|
|
329
329
|
return {
|
|
330
|
-
top: o.top +
|
|
331
|
-
topLabelsHeight:
|
|
330
|
+
top: o.top + ge.value + c + l,
|
|
331
|
+
topLabelsHeight: ge.value,
|
|
332
332
|
sumCellXHeight: c,
|
|
333
333
|
height: y,
|
|
334
|
-
left: o.left +
|
|
334
|
+
left: o.left + ve.value + c / 2,
|
|
335
335
|
right: o.right - t,
|
|
336
|
-
bottom: D.value.height - o.bottom -
|
|
336
|
+
bottom: D.value.height - o.bottom - Le.value,
|
|
337
337
|
width: _,
|
|
338
338
|
cellSize: w
|
|
339
339
|
};
|
|
340
|
-
}), Z = f(() => Math.max(...k.value.flatMap((t) => t.values))),
|
|
340
|
+
}), Z = f(() => Math.max(...k.value.flatMap((t) => t.values))), Se = f(() => Math.min(...k.value.flatMap((t) => t.values))), ce = f(() => {
|
|
341
341
|
const t = k.value.flatMap((l) => l.values);
|
|
342
342
|
return t.reduce((l, s) => l + s, 0) / t.length;
|
|
343
|
-
}),
|
|
344
|
-
let
|
|
345
|
-
|
|
346
|
-
const t = ++
|
|
343
|
+
}), _t = v([]), It = v([]);
|
|
344
|
+
let Ot = 0;
|
|
345
|
+
pt(() => {
|
|
346
|
+
const t = ++Ot;
|
|
347
347
|
(async () => {
|
|
348
|
-
const o = e.value.style.layout.dataLabels.yAxis, l = await
|
|
348
|
+
const o = e.value.style.layout.dataLabels.yAxis, l = await ll({
|
|
349
349
|
values: o.values.length ? o.values : k.value.map((s) => s.name),
|
|
350
350
|
maxDatapoints: k.value.length,
|
|
351
351
|
formatter: o.datetimeFormatter,
|
|
352
352
|
start: 0,
|
|
353
353
|
end: k.value.length
|
|
354
354
|
});
|
|
355
|
-
t ===
|
|
355
|
+
t === Ot && (_t.value = l);
|
|
356
356
|
})();
|
|
357
357
|
});
|
|
358
|
-
let
|
|
359
|
-
|
|
360
|
-
const t = ++
|
|
358
|
+
let Mt = 0;
|
|
359
|
+
pt(() => {
|
|
360
|
+
const t = ++Mt;
|
|
361
361
|
(async () => {
|
|
362
|
-
const o = e.value.style.layout.dataLabels.xAxis, l = await
|
|
362
|
+
const o = e.value.style.layout.dataLabels.xAxis, l = await ll({
|
|
363
363
|
values: o.values,
|
|
364
364
|
maxDatapoints: Y.value,
|
|
365
365
|
formatter: o.datetimeFormatter,
|
|
366
366
|
start: 0,
|
|
367
367
|
end: Y.value
|
|
368
368
|
});
|
|
369
|
-
t ===
|
|
369
|
+
t === Mt && (It.value = l);
|
|
370
370
|
})();
|
|
371
371
|
});
|
|
372
372
|
const x = f(() => {
|
|
373
|
-
const t =
|
|
373
|
+
const t = _t.value.map((y) => y.text), o = It.value.map((y) => y.text), l = k.value.map((y) => y.values.reduce((w, B) => w + B, 0)), s = Math.max(...l), r = Math.min(...l), c = [];
|
|
374
374
|
for (let y = 0; y < Y.value; y += 1)
|
|
375
375
|
c.push(k.value.map((w) => w.values[y] || 0).reduce((w, B) => w + B, 0));
|
|
376
376
|
const b = Math.max(...c), _ = Math.min(...c);
|
|
@@ -380,7 +380,7 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
380
380
|
return {
|
|
381
381
|
total: y,
|
|
382
382
|
proportion: w,
|
|
383
|
-
color:
|
|
383
|
+
color: Me(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, r, s, y)
|
|
384
384
|
};
|
|
385
385
|
}),
|
|
386
386
|
xTotals: c.map((y) => {
|
|
@@ -388,89 +388,89 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
388
388
|
return {
|
|
389
389
|
total: y,
|
|
390
390
|
proportion: w,
|
|
391
|
-
color:
|
|
391
|
+
color: Me(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, _, b, y)
|
|
392
392
|
};
|
|
393
393
|
}),
|
|
394
394
|
yLabels: t,
|
|
395
395
|
xLabels: o.slice(0, Y.value)
|
|
396
396
|
};
|
|
397
|
-
}),
|
|
398
|
-
|
|
397
|
+
}), $ = f(() => (k.value.forEach((t, o) => {
|
|
398
|
+
Ql({
|
|
399
399
|
datasetObject: t,
|
|
400
400
|
requiredAttributes: ["values"]
|
|
401
401
|
}).forEach((l) => {
|
|
402
|
-
|
|
402
|
+
tl({
|
|
403
403
|
componentName: "VueUiHeatmap",
|
|
404
404
|
type: "datasetSerieAttribute",
|
|
405
405
|
property: "values",
|
|
406
406
|
index: o,
|
|
407
|
-
debug:
|
|
407
|
+
debug: zt.value
|
|
408
408
|
});
|
|
409
409
|
});
|
|
410
410
|
}), k.value.map((t, o) => ({
|
|
411
411
|
...t,
|
|
412
|
-
temperatures: (t.values || []).map((l, s) => l >=
|
|
412
|
+
temperatures: (t.values || []).map((l, s) => l >= ce.value ? {
|
|
413
413
|
side: "up",
|
|
414
|
-
color:
|
|
415
|
-
ratio: Math.abs(Math.abs(l -
|
|
414
|
+
color: Me(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, Se.value, Z.value, l),
|
|
415
|
+
ratio: Math.abs(Math.abs(l - ce.value) / Math.abs(Z.value - ce.value)) > 1 ? 1 : Math.abs(Math.abs(l - ce.value) / Math.abs(Z.value - ce.value)),
|
|
416
416
|
value: l,
|
|
417
417
|
yAxisName: x.value.yLabels[o],
|
|
418
418
|
xAxisName: x.value.xLabels[s],
|
|
419
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
419
|
+
id: `vue-data-ui-heatmap-cell-${yt()}`
|
|
420
420
|
} : {
|
|
421
421
|
side: "down",
|
|
422
|
-
ratio: Math.abs(1 - Math.abs(l) / Math.abs(
|
|
423
|
-
color:
|
|
422
|
+
ratio: Math.abs(1 - Math.abs(l) / Math.abs(ce.value)) > 1 ? 1 : Math.abs(1 - Math.abs(l) / Math.abs(ce.value)),
|
|
423
|
+
color: Me(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, Se.value, Z.value, l),
|
|
424
424
|
value: l,
|
|
425
425
|
yAxisName: x.value.yLabels[o],
|
|
426
426
|
xAxisName: x.value.xLabels[s],
|
|
427
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
427
|
+
id: `vue-data-ui-heatmap-cell-${yt()}`
|
|
428
428
|
})
|
|
429
|
-
})))),
|
|
430
|
-
function
|
|
431
|
-
|
|
429
|
+
})))), Nt = f(() => k.value.length), Ft = jt(Array(Nt.value * Y.value || 1).fill(!1)), gl = f(() => Ft.some((t) => t));
|
|
430
|
+
function bl(t, o) {
|
|
431
|
+
Ft[t] = o;
|
|
432
432
|
}
|
|
433
|
-
const
|
|
434
|
-
function
|
|
435
|
-
|
|
433
|
+
const Rt = jt(Array(Nt.value * Y.value || 1).fill(!1)), ml = f(() => Rt.some((t) => t));
|
|
434
|
+
function xl(t, o) {
|
|
435
|
+
Rt[t] = o;
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
function
|
|
439
|
-
|
|
437
|
+
const V = v(null), Ee = v(null);
|
|
438
|
+
function ot() {
|
|
439
|
+
ne.value = !1, we.value = void 0, V.value = null, R.value = null, ie.value = null, Re.value = null;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
if (!
|
|
443
|
-
const o =
|
|
441
|
+
function wl(t) {
|
|
442
|
+
if (!re.value || !t) return;
|
|
443
|
+
const o = re.value.querySelector(`[data-a11y-cell-id="${t}"]`);
|
|
444
444
|
if (!o) return;
|
|
445
445
|
const l = o.getBoundingClientRect();
|
|
446
|
-
|
|
446
|
+
At.value = {
|
|
447
447
|
x: l.left + l.width / 2,
|
|
448
448
|
y: l.top + l.height / 2
|
|
449
449
|
};
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Ve(t, o, l, s, r = "pointer", c = null) {
|
|
452
452
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), !P.value.showTooltip) return;
|
|
453
|
-
|
|
453
|
+
Je.value = r, ie.value = c, Re.value = t.id, R.value = { x: l, y: s };
|
|
454
454
|
const { value: b, yAxisName: _, xAxisName: y, id: w } = t;
|
|
455
|
-
|
|
455
|
+
we.value = w, V.value = b, Ee.value = {
|
|
456
456
|
datapoint: t,
|
|
457
457
|
seriesIndex: o,
|
|
458
|
-
series:
|
|
458
|
+
series: $.value,
|
|
459
459
|
config: e.value
|
|
460
|
-
},
|
|
460
|
+
}, ne.value = !0;
|
|
461
461
|
let B = "";
|
|
462
|
-
const
|
|
463
|
-
|
|
462
|
+
const he = e.value.style.tooltip.customFormat;
|
|
463
|
+
aa(he) && oa(() => he({
|
|
464
464
|
datapoint: t,
|
|
465
465
|
seriesIndex: o,
|
|
466
|
-
series:
|
|
466
|
+
series: $.value,
|
|
467
467
|
config: e.value
|
|
468
|
-
})) ?
|
|
468
|
+
})) ? Ke.value = he({
|
|
469
469
|
datapoint: t,
|
|
470
470
|
seriesIndex: o,
|
|
471
|
-
series:
|
|
471
|
+
series: $.value,
|
|
472
472
|
config: e.value
|
|
473
|
-
}) : (B += `<div>${_} ${y ? _ ? ` - ${y}` : `${y}` : ""}</div>`, B += `<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:${
|
|
473
|
+
}) : (B += `<div>${_} ${y ? _ ? ` - ${y}` : `${y}` : ""}</div>`, B += `<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:${Me(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, Se.value, Z.value, b)}">⬤</span><span>${isNaN(b) ? "-" : le(
|
|
474
474
|
e.value.style.layout.cells.value.formatter,
|
|
475
475
|
b,
|
|
476
476
|
q({
|
|
@@ -480,15 +480,15 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
480
480
|
r: e.value.style.tooltip.roundingValue
|
|
481
481
|
}),
|
|
482
482
|
{ datapoint: t, seriesIndex: o }
|
|
483
|
-
)}</span></div>`,
|
|
484
|
-
|
|
483
|
+
)}</span></div>`, Ke.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${B}</div>`), r === "keyboard" && xe(() => {
|
|
484
|
+
wl(t.id);
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o }), !(
|
|
487
|
+
function kl({ datapoint: t, seriesIndex: o }) {
|
|
488
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o }), !(Re.value === t.id && Je.value === "keyboard") && (ne.value = !1, we.value = void 0, V.value = null, R.value = null);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
return
|
|
490
|
+
function Cl(t) {
|
|
491
|
+
return le(
|
|
492
492
|
e.value.style.layout.cells.value.formatter,
|
|
493
493
|
x.value.yTotals[t].total,
|
|
494
494
|
q({
|
|
@@ -500,8 +500,8 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
500
500
|
{ datapoint: x.value.yTotals[t], rowIndex: t }
|
|
501
501
|
);
|
|
502
502
|
}
|
|
503
|
-
function
|
|
504
|
-
return
|
|
503
|
+
function Al(t) {
|
|
504
|
+
return le(
|
|
505
505
|
e.value.style.layout.cells.value.formatter,
|
|
506
506
|
x.value.xTotals[t].total,
|
|
507
507
|
q({
|
|
@@ -519,8 +519,8 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
519
519
|
})), o = k.value.map((l) => l.values);
|
|
520
520
|
return { head: t, body: o };
|
|
521
521
|
});
|
|
522
|
-
function
|
|
523
|
-
|
|
522
|
+
function st(t = null) {
|
|
523
|
+
xe(() => {
|
|
524
524
|
const o = ["", ...k.value.map((c, b) => c.name)], l = [];
|
|
525
525
|
for (let c = 0; c < x.value.xLabels.length; c += 1) {
|
|
526
526
|
const b = [x.value.xLabels[c]];
|
|
@@ -528,35 +528,35 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
528
528
|
b.push([k.value[_].values[c]]);
|
|
529
529
|
l.push(b);
|
|
530
530
|
}
|
|
531
|
-
const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l),
|
|
532
|
-
t ? t(
|
|
531
|
+
const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), r = ta(s);
|
|
532
|
+
t ? t(r) : la({ csvContent: r, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
|
-
const
|
|
536
|
-
function
|
|
537
|
-
|
|
535
|
+
const de = v(!1);
|
|
536
|
+
function Pt(t) {
|
|
537
|
+
de.value = t, gt.value += 1;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Dt() {
|
|
540
540
|
P.value.showTable = !P.value.showTable;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Ht() {
|
|
543
543
|
P.value.showTooltip = !P.value.showTooltip;
|
|
544
544
|
}
|
|
545
|
-
const
|
|
546
|
-
function
|
|
547
|
-
|
|
545
|
+
const Te = v(!1);
|
|
546
|
+
function ut() {
|
|
547
|
+
Te.value = !Te.value;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Et(t, o) {
|
|
550
550
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o }), T("selectDatapoint", t);
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
return
|
|
552
|
+
function Ll() {
|
|
553
|
+
return $.value;
|
|
554
554
|
}
|
|
555
|
-
async function
|
|
556
|
-
if (!
|
|
557
|
-
const { width: o, height: l } =
|
|
555
|
+
async function Sl({ scale: t = 2 } = {}) {
|
|
556
|
+
if (!M.value) return;
|
|
557
|
+
const { width: o, height: l } = M.value.getBoundingClientRect(), s = o / l, { imageUri: r, base64: c } = await fa({ domElement: M.value, base64: !0, img: !0, scale: t });
|
|
558
558
|
return {
|
|
559
|
-
imageUri:
|
|
559
|
+
imageUri: r,
|
|
560
560
|
base64: c,
|
|
561
561
|
title: e.value.style.title.text,
|
|
562
562
|
width: o,
|
|
@@ -564,49 +564,49 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
564
564
|
aspectRatio: s
|
|
565
565
|
};
|
|
566
566
|
}
|
|
567
|
-
const
|
|
567
|
+
const Vt = f(() => ({
|
|
568
568
|
start: 0,
|
|
569
569
|
end: Y.value
|
|
570
|
-
})),
|
|
571
|
-
|
|
572
|
-
timeLabelsEls:
|
|
573
|
-
timeLabels:
|
|
574
|
-
slicer:
|
|
570
|
+
})), Xt = f(() => x.value.xLabels);
|
|
571
|
+
al({
|
|
572
|
+
timeLabelsEls: qe,
|
|
573
|
+
timeLabels: Xt,
|
|
574
|
+
slicer: Vt,
|
|
575
575
|
configRef: e,
|
|
576
576
|
rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
|
|
577
577
|
autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
|
|
578
578
|
isAutoSize: !1,
|
|
579
579
|
targetClass: ".vue-ui-heatmap-col-name",
|
|
580
580
|
rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
581
|
-
width:
|
|
582
|
-
height:
|
|
583
|
-
}),
|
|
584
|
-
timeLabelsEls:
|
|
585
|
-
timeLabels:
|
|
586
|
-
slicer:
|
|
581
|
+
width: Ce,
|
|
582
|
+
height: Ae
|
|
583
|
+
}), al({
|
|
584
|
+
timeLabelsEls: je,
|
|
585
|
+
timeLabels: Xt,
|
|
586
|
+
slicer: Vt,
|
|
587
587
|
configRef: e,
|
|
588
588
|
rotationPath: ["style", "layout", "cells", "columnTotal", "value", "rotation"],
|
|
589
589
|
autoRotatePath: ["style", "layout", "cells", "columnTotal", "value", "autoRotate", "enable"],
|
|
590
590
|
isAutoSize: !1,
|
|
591
591
|
targetClass: ".vue-ui-heatmap-col-total",
|
|
592
592
|
rotation: e.value.style.layout.cells.columnTotal.value.autoRotate.angle,
|
|
593
|
-
width:
|
|
594
|
-
height:
|
|
593
|
+
width: Ce,
|
|
594
|
+
height: Ae
|
|
595
595
|
});
|
|
596
|
-
const
|
|
596
|
+
const Xe = f(() => {
|
|
597
597
|
const t = e.value.table.useDialog && !e.value.table.show, o = P.value.showTable;
|
|
598
598
|
return {
|
|
599
|
-
component: t ? S :
|
|
599
|
+
component: t ? S : ba,
|
|
600
600
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
601
601
|
props: t ? {
|
|
602
602
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
603
603
|
color: e.value.table.th.color,
|
|
604
604
|
headerColor: e.value.table.th.color,
|
|
605
605
|
headerBg: e.value.table.th.backgroundColor,
|
|
606
|
-
isFullscreen:
|
|
607
|
-
fullscreenParent:
|
|
606
|
+
isFullscreen: de.value,
|
|
607
|
+
fullscreenParent: M.value,
|
|
608
608
|
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
609
|
-
isCursorPointer:
|
|
609
|
+
isCursorPointer: De.value
|
|
610
610
|
} : {
|
|
611
611
|
hideDetails: !0,
|
|
612
612
|
config: {
|
|
@@ -624,56 +624,56 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
624
624
|
}
|
|
625
625
|
};
|
|
626
626
|
});
|
|
627
|
-
|
|
628
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
627
|
+
Be(() => P.value.showTable, async (t) => {
|
|
628
|
+
e.value.table.show || (t && e.value.table.useDialog && ke.value ? (await xe(), ke.value.open()) : "close" in ke.value && ke.value.close());
|
|
629
629
|
});
|
|
630
|
-
const { isResponsive:
|
|
631
|
-
function
|
|
632
|
-
P.value.showTable = !1,
|
|
630
|
+
const { isResponsive: Tl } = da(bt, yl);
|
|
631
|
+
function nt() {
|
|
632
|
+
P.value.showTable = !1, Ye.value && Ye.value.setTableIconState(!1);
|
|
633
633
|
}
|
|
634
|
-
const
|
|
635
|
-
svg:
|
|
636
|
-
title:
|
|
637
|
-
backgroundColor:
|
|
634
|
+
const $l = f(() => e.value.style.backgroundColor), zl = f(() => e.value.style.title), { exportSvg: _l, getSvg: Il } = va({
|
|
635
|
+
svg: re,
|
|
636
|
+
title: zl,
|
|
637
|
+
backgroundColor: $l
|
|
638
638
|
});
|
|
639
|
-
async function
|
|
640
|
-
|
|
639
|
+
async function Bt({ isCb: t }) {
|
|
640
|
+
Fe.value = !0, await xe();
|
|
641
641
|
try {
|
|
642
642
|
if (t) {
|
|
643
|
-
const { blob: o, url: l, text: s, dataUrl:
|
|
644
|
-
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: o, url: l, text: s, dataUrl:
|
|
643
|
+
const { blob: o, url: l, text: s, dataUrl: r } = await Il();
|
|
644
|
+
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: o, url: l, text: s, dataUrl: r }));
|
|
645
645
|
} else
|
|
646
|
-
await Promise.resolve(
|
|
646
|
+
await Promise.resolve(_l());
|
|
647
647
|
} finally {
|
|
648
|
-
|
|
648
|
+
Fe.value = !1;
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Ol(t) {
|
|
652
652
|
if (t?.stage === "start") {
|
|
653
|
-
|
|
653
|
+
Ne.value = !0;
|
|
654
654
|
return;
|
|
655
655
|
}
|
|
656
656
|
if (t?.stage === "end") {
|
|
657
|
-
|
|
657
|
+
Ne.value = !1;
|
|
658
658
|
return;
|
|
659
659
|
}
|
|
660
|
-
|
|
660
|
+
$t();
|
|
661
661
|
}
|
|
662
|
-
async function
|
|
662
|
+
async function Ut() {
|
|
663
663
|
if (T("copyAlt", {
|
|
664
664
|
config: e.value,
|
|
665
|
-
dataset:
|
|
665
|
+
dataset: $.value
|
|
666
666
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
667
667
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
668
668
|
return;
|
|
669
669
|
}
|
|
670
670
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
671
671
|
config: e.value,
|
|
672
|
-
dataset:
|
|
672
|
+
dataset: $.value
|
|
673
673
|
}));
|
|
674
674
|
}
|
|
675
|
-
function
|
|
676
|
-
const l =
|
|
675
|
+
function Gt(t, o) {
|
|
676
|
+
const l = $.value[t];
|
|
677
677
|
if (!l) return null;
|
|
678
678
|
const s = l.temperatures[o];
|
|
679
679
|
return s ? {
|
|
@@ -682,70 +682,82 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
682
682
|
columnIndex: o
|
|
683
683
|
} : null;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function it(t, o) {
|
|
686
686
|
let l = 0;
|
|
687
687
|
for (let s = 0; s < t; s += 1)
|
|
688
|
-
l +=
|
|
688
|
+
l += $.value[s]?.temperatures?.length || 0;
|
|
689
689
|
return l + o;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
|
|
691
|
+
function Ml() {
|
|
692
|
+
ie.value = null, Re.value = null, Pe.value = !0;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
|
|
694
|
+
function Nl() {
|
|
695
|
+
ot(), Pe.value = !1;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
698
|
-
if (!
|
|
699
|
-
const o = t.key === "ArrowLeft", l = t.key === "ArrowRight", s = t.key === "ArrowUp",
|
|
700
|
-
if (!o && !l && !s && !
|
|
697
|
+
function Fl(t) {
|
|
698
|
+
if (!re.value || Te.value || document.activeElement !== re.value || !ye.value.length) return;
|
|
699
|
+
const o = t.key === "ArrowLeft", l = t.key === "ArrowRight", s = t.key === "ArrowUp", r = t.key === "ArrowDown", c = t.key === "Enter" || t.key === " ", b = t.key === "Escape";
|
|
700
|
+
if (!o && !l && !s && !r && !c && !b) return;
|
|
701
701
|
if (t.preventDefault(), t.stopPropagation(), b) {
|
|
702
|
-
|
|
702
|
+
ot();
|
|
703
703
|
return;
|
|
704
704
|
}
|
|
705
705
|
if (c) {
|
|
706
|
-
if (
|
|
707
|
-
const
|
|
708
|
-
if (!
|
|
709
|
-
|
|
706
|
+
if (ie.value === null) return;
|
|
707
|
+
const ee = ye.value[ie.value];
|
|
708
|
+
if (!ee) return;
|
|
709
|
+
Et(ee.cell, ee.rowIndex);
|
|
710
710
|
return;
|
|
711
711
|
}
|
|
712
|
-
let _ =
|
|
712
|
+
let _ = ie.value === null ? null : ye.value[ie.value];
|
|
713
713
|
if (!_) {
|
|
714
|
-
const
|
|
715
|
-
if (
|
|
716
|
-
|
|
717
|
-
|
|
714
|
+
const ee = we.value ? ye.value.findIndex((_e) => _e.cell.id === we.value) : null;
|
|
715
|
+
if (ee !== null && ee >= 0 && ee < ye.value.length) {
|
|
716
|
+
const _e = ye.value[ee];
|
|
717
|
+
if (!_e) return;
|
|
718
|
+
let j = _e.rowIndex, te = _e.columnIndex;
|
|
719
|
+
l ? te += 1 : o ? te -= 1 : r ? j += 1 : s && (j -= 1);
|
|
720
|
+
const vt = Wt.value.rowCount;
|
|
721
|
+
if (vt <= 0) return;
|
|
722
|
+
j < 0 && (j = vt - 1), j >= vt && (j = 0);
|
|
723
|
+
const ct = $.value[j];
|
|
724
|
+
if (!ct || !ct.temperatures.length) return;
|
|
725
|
+
const Yt = ct.temperatures.length;
|
|
726
|
+
te < 0 && (te = Yt - 1), te >= Yt && (te = 0);
|
|
727
|
+
const Ie = Gt(j, te);
|
|
728
|
+
if (!Ie) return;
|
|
729
|
+
const Vl = it(j, te), Xl = a.value.left + a.value.cellSize.width * Ie.columnIndex, Bl = a.value.top + a.value.cellSize.height * Ie.rowIndex;
|
|
730
|
+
Ve(Ie.cell, Ie.rowIndex, Xl, Bl, "keyboard", Vl);
|
|
731
|
+
return;
|
|
732
|
+
}
|
|
733
|
+
const ze = ye.value[0];
|
|
734
|
+
if (!ze) return;
|
|
735
|
+
const Hl = a.value.left + a.value.cellSize.width * ze.columnIndex, El = a.value.top + a.value.cellSize.height * ze.rowIndex;
|
|
736
|
+
Ve(ze.cell, ze.rowIndex, Hl, El, "keyboard", 0);
|
|
718
737
|
return;
|
|
719
738
|
}
|
|
720
739
|
let y = _.rowIndex, w = _.columnIndex;
|
|
721
|
-
l ? w += 1 : o ? w -= 1 :
|
|
722
|
-
const B =
|
|
740
|
+
l ? w += 1 : o ? w -= 1 : r ? y += 1 : s && (y -= 1);
|
|
741
|
+
const B = Wt.value.rowCount;
|
|
723
742
|
if (B <= 0) return;
|
|
724
743
|
y < 0 && (y = B - 1), y >= B && (y = 0);
|
|
725
|
-
const
|
|
726
|
-
if (!
|
|
727
|
-
const
|
|
728
|
-
w < 0 && (w =
|
|
729
|
-
const
|
|
730
|
-
if (
|
|
731
|
-
const
|
|
732
|
-
|
|
733
|
-
Ae.cell,
|
|
734
|
-
Ae.rowIndex,
|
|
735
|
-
zl,
|
|
736
|
-
_l,
|
|
737
|
-
"keyboard",
|
|
738
|
-
$l
|
|
739
|
-
);
|
|
744
|
+
const he = $.value[y];
|
|
745
|
+
if (!he || !he.temperatures.length) return;
|
|
746
|
+
const Kt = he.temperatures.length;
|
|
747
|
+
w < 0 && (w = Kt - 1), w >= Kt && (w = 0);
|
|
748
|
+
const $e = Gt(y, w);
|
|
749
|
+
if (!$e) return;
|
|
750
|
+
const Rl = it(y, w), Pl = a.value.left + a.value.cellSize.width * $e.columnIndex, Dl = a.value.top + a.value.cellSize.height * $e.rowIndex;
|
|
751
|
+
Ve($e.cell, $e.rowIndex, Pl, Dl, "keyboard", Rl);
|
|
740
752
|
}
|
|
741
|
-
const
|
|
753
|
+
const rt = f(() => {
|
|
742
754
|
const t = [
|
|
743
755
|
e.value.table.colNames.xAxis,
|
|
744
756
|
...k.value.map((l) => l.name)
|
|
745
757
|
], o = x.value.xLabels.map((l, s) => [
|
|
746
758
|
l,
|
|
747
|
-
...k.value.map((
|
|
748
|
-
const c =
|
|
759
|
+
...k.value.map((r) => {
|
|
760
|
+
const c = r.values?.[s];
|
|
749
761
|
return isNaN(c) ? "-" : q({
|
|
750
762
|
p: e.value.style.layout.dataLabels.prefix,
|
|
751
763
|
v: c,
|
|
@@ -755,65 +767,65 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
755
767
|
})
|
|
756
768
|
]);
|
|
757
769
|
return { headers: t, rows: o };
|
|
758
|
-
}),
|
|
759
|
-
const t =
|
|
770
|
+
}), Wt = f(() => {
|
|
771
|
+
const t = $.value.length, o = Math.max(
|
|
760
772
|
0,
|
|
761
|
-
|
|
773
|
+
...$.value.map((l) => l.temperatures.length)
|
|
762
774
|
);
|
|
763
775
|
return {
|
|
764
776
|
rowCount: t,
|
|
765
777
|
columnCount: o
|
|
766
778
|
};
|
|
767
|
-
}),
|
|
779
|
+
}), ye = f(() => $.value.flatMap((t, o) => t.temperatures.map((l, s) => ({
|
|
768
780
|
cell: l,
|
|
769
781
|
rowIndex: o,
|
|
770
782
|
columnIndex: s
|
|
771
783
|
}))));
|
|
772
784
|
return G({
|
|
773
|
-
getData:
|
|
774
|
-
getImage:
|
|
775
|
-
generatePdf:
|
|
776
|
-
generateCsv:
|
|
777
|
-
generateImage:
|
|
778
|
-
generateSvg:
|
|
779
|
-
toggleTable:
|
|
780
|
-
toggleTooltip:
|
|
781
|
-
toggleAnnotator:
|
|
782
|
-
toggleFullscreen:
|
|
783
|
-
copyAlt:
|
|
785
|
+
getData: Ll,
|
|
786
|
+
getImage: Sl,
|
|
787
|
+
generatePdf: Tt,
|
|
788
|
+
generateCsv: st,
|
|
789
|
+
generateImage: $t,
|
|
790
|
+
generateSvg: Bt,
|
|
791
|
+
toggleTable: Dt,
|
|
792
|
+
toggleTooltip: Ht,
|
|
793
|
+
toggleAnnotator: ut,
|
|
794
|
+
toggleFullscreen: Pt,
|
|
795
|
+
copyAlt: Ut
|
|
784
796
|
}), (t, o) => (u(), i("div", {
|
|
785
797
|
ref_key: "heatmapChart",
|
|
786
|
-
ref:
|
|
787
|
-
class:
|
|
798
|
+
ref: M,
|
|
799
|
+
class: Oe(`vue-data-ui-component vue-ui-heatmap ${de.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
788
800
|
style: L(`font-family:${e.value.style.fontFamily};width:100%;${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.backgroundColor}`),
|
|
789
801
|
id: `heatmap__${K.value}`,
|
|
790
|
-
onMouseenter: o[1] || (o[1] = () =>
|
|
802
|
+
onMouseenter: o[1] || (o[1] = () => St(!0)),
|
|
791
803
|
onMouseleave: o[2] || (o[2] = () => {
|
|
792
|
-
|
|
804
|
+
St(!1), Pe.value || ot();
|
|
793
805
|
})
|
|
794
806
|
}, [
|
|
795
807
|
p("div", {
|
|
796
808
|
id: `chart-instructions-${K.value}`,
|
|
797
809
|
class: "sr-only"
|
|
798
810
|
}, [
|
|
799
|
-
p("p", null,
|
|
800
|
-
], 8,
|
|
801
|
-
|
|
811
|
+
p("p", null, I(e.value.a11y.translations.keyboardNavigation), 1)
|
|
812
|
+
], 8, Ca),
|
|
813
|
+
rt.value?.rows?.length ? (u(), me(ma, {
|
|
802
814
|
key: 0,
|
|
803
815
|
uid: K.value,
|
|
804
|
-
head:
|
|
805
|
-
body:
|
|
816
|
+
head: rt.value.headers,
|
|
817
|
+
body: rt.value.rows,
|
|
806
818
|
notice: e.value.a11y.translations.tableAvailable,
|
|
807
819
|
caption: e.value.a11y.translations.tableCaption
|
|
808
820
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : g("", !0),
|
|
809
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
821
|
+
e.value.userOptions.buttons.annotator ? (u(), me(n(N), {
|
|
810
822
|
key: 1,
|
|
811
|
-
svgRef: n(
|
|
823
|
+
svgRef: n(re),
|
|
812
824
|
backgroundColor: e.value.style.backgroundColor,
|
|
813
825
|
color: e.value.style.color,
|
|
814
|
-
active:
|
|
815
|
-
isCursorPointer:
|
|
816
|
-
onClose:
|
|
826
|
+
active: Te.value,
|
|
827
|
+
isCursorPointer: De.value,
|
|
828
|
+
onClose: ut
|
|
817
829
|
}, {
|
|
818
830
|
"annotator-action-close": C(() => [
|
|
819
831
|
m(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
@@ -835,21 +847,21 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
835
847
|
]),
|
|
836
848
|
_: 3
|
|
837
849
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : g("", !0),
|
|
838
|
-
|
|
850
|
+
dl.value ? (u(), i("div", {
|
|
839
851
|
key: 2,
|
|
840
852
|
ref_key: "noTitle",
|
|
841
|
-
ref:
|
|
853
|
+
ref: wt,
|
|
842
854
|
class: "vue-data-ui-no-title-space",
|
|
843
855
|
style: "height:36px; width: 100%;background:transparent"
|
|
844
856
|
}, null, 512)) : g("", !0),
|
|
845
857
|
e.value.style.title.text ? (u(), i("div", {
|
|
846
858
|
key: 3,
|
|
847
859
|
ref_key: "chartTitle",
|
|
848
|
-
ref:
|
|
860
|
+
ref: xt,
|
|
849
861
|
style: "width:100%;background:transparent"
|
|
850
862
|
}, [
|
|
851
|
-
(u(),
|
|
852
|
-
key: `title_${
|
|
863
|
+
(u(), me(pa, {
|
|
864
|
+
key: `title_${mt.value}`,
|
|
853
865
|
config: {
|
|
854
866
|
title: {
|
|
855
867
|
cy: "heatmap-div-title",
|
|
@@ -862,14 +874,14 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
862
874
|
}
|
|
863
875
|
}, null, 8, ["config"]))
|
|
864
876
|
], 512)) : g("", !0),
|
|
865
|
-
e.value.userOptions.show &&
|
|
877
|
+
e.value.userOptions.show && X.value && (n(Lt) || n(Ze)) ? (u(), me(n(W), {
|
|
866
878
|
ref_key: "userOptionsRef",
|
|
867
|
-
ref:
|
|
868
|
-
key: `user_options_${
|
|
879
|
+
ref: Ye,
|
|
880
|
+
key: `user_options_${gt.value}`,
|
|
869
881
|
backgroundColor: e.value.style.backgroundColor,
|
|
870
882
|
color: e.value.style.color,
|
|
871
|
-
isImaging: n(
|
|
872
|
-
isPrinting: n(
|
|
883
|
+
isImaging: n(lt),
|
|
884
|
+
isPrinting: n(tt),
|
|
873
885
|
uid: K.value,
|
|
874
886
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
875
887
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -879,30 +891,30 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
879
891
|
hasTable: e.value.userOptions.buttons.table,
|
|
880
892
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
881
893
|
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
882
|
-
isFullscreen:
|
|
894
|
+
isFullscreen: de.value,
|
|
883
895
|
isTooltip: P.value.showTooltip,
|
|
884
896
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
885
|
-
chartElement:
|
|
897
|
+
chartElement: M.value,
|
|
886
898
|
position: e.value.userOptions.position,
|
|
887
899
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
888
|
-
isAnnotation:
|
|
900
|
+
isAnnotation: Te.value,
|
|
889
901
|
callbacks: e.value.userOptions.callbacks,
|
|
890
902
|
printScale: e.value.userOptions.print.scale,
|
|
891
903
|
tableDialog: e.value.table.useDialog,
|
|
892
|
-
isCursorPointer:
|
|
893
|
-
onToggleFullscreen:
|
|
894
|
-
onGeneratePdf: n(
|
|
895
|
-
onGenerateCsv:
|
|
896
|
-
onGenerateImage:
|
|
897
|
-
onGenerateSvg:
|
|
898
|
-
onToggleTable:
|
|
899
|
-
onToggleTooltip:
|
|
900
|
-
onToggleAnnotator:
|
|
901
|
-
onCopyAlt:
|
|
904
|
+
isCursorPointer: De.value,
|
|
905
|
+
onToggleFullscreen: Pt,
|
|
906
|
+
onGeneratePdf: n(Tt),
|
|
907
|
+
onGenerateCsv: st,
|
|
908
|
+
onGenerateImage: Ol,
|
|
909
|
+
onGenerateSvg: Bt,
|
|
910
|
+
onToggleTable: Dt,
|
|
911
|
+
onToggleTooltip: Ht,
|
|
912
|
+
onToggleAnnotator: ut,
|
|
913
|
+
onCopyAlt: Ut,
|
|
902
914
|
style: L({
|
|
903
|
-
visibility: n(
|
|
915
|
+
visibility: n(Lt) ? n(Ze) ? "visible" : "hidden" : "visible"
|
|
904
916
|
})
|
|
905
|
-
},
|
|
917
|
+
}, Jt({ _: 2 }, [
|
|
906
918
|
t.$slots.menuIcon ? {
|
|
907
919
|
name: "menuIcon",
|
|
908
920
|
fn: C(({ isOpen: l, color: s }) => [
|
|
@@ -975,17 +987,17 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
975
987
|
} : void 0
|
|
976
988
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : g("", !0),
|
|
977
989
|
p("div", {
|
|
978
|
-
class:
|
|
990
|
+
class: Oe({
|
|
979
991
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
980
992
|
"vue-ui-heatmap-chart-wrapper-legend-right": e.value.style.legend.show
|
|
981
993
|
})
|
|
982
994
|
}, [
|
|
983
995
|
(u(), i("svg", {
|
|
984
996
|
ref_key: "svgRef",
|
|
985
|
-
ref:
|
|
986
|
-
xmlns: n(
|
|
997
|
+
ref: re,
|
|
998
|
+
xmlns: n(Zl),
|
|
987
999
|
"aria-describedby": `chart-instructions-${K.value}`,
|
|
988
|
-
class:
|
|
1000
|
+
class: Oe({ "vue-data-ui-fullscreen--on": de.value, "vue-data-ui-fulscreen--off": !de.value }),
|
|
989
1001
|
viewBox: `0 0 ${D.value.width} ${D.value.height}`,
|
|
990
1002
|
width: "100%",
|
|
991
1003
|
style: L(`overflow: visible; background:transparent;color:${e.value.style.color}`),
|
|
@@ -993,11 +1005,11 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
993
1005
|
role: "img",
|
|
994
1006
|
preserveAspectRatio: "xMidYMid",
|
|
995
1007
|
tabindex: "0",
|
|
996
|
-
onFocus:
|
|
997
|
-
onBlur:
|
|
998
|
-
onKeydown:
|
|
1008
|
+
onFocus: Ml,
|
|
1009
|
+
onBlur: Nl,
|
|
1010
|
+
onKeydown: Fl
|
|
999
1011
|
}, [
|
|
1000
|
-
|
|
1012
|
+
Ue(n(z)),
|
|
1001
1013
|
t.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
1002
1014
|
key: 0,
|
|
1003
1015
|
x: a.value.left,
|
|
@@ -1009,13 +1021,13 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1009
1021
|
}
|
|
1010
1022
|
}, [
|
|
1011
1023
|
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
1012
|
-
], 8,
|
|
1024
|
+
], 8, La)) : g("", !0),
|
|
1013
1025
|
e.value.style.layout.cells.columnTotal.color.show ? (u(), i("g", {
|
|
1014
1026
|
key: 1,
|
|
1015
1027
|
ref_key: "xAxisSumRects",
|
|
1016
|
-
ref:
|
|
1028
|
+
ref: il
|
|
1017
1029
|
}, [
|
|
1018
|
-
(u(!0), i(
|
|
1030
|
+
(u(!0), i(O, null, U(x.value.xTotals, (l, s) => (u(), i("rect", {
|
|
1019
1031
|
x: a.value.left + a.value.cellSize.width * s + d.value / 2 + a.value.sumCellXHeight,
|
|
1020
1032
|
y: a.value.top - a.value.sumCellXHeight + d.value * (D.value.height / D.value.width),
|
|
1021
1033
|
height: a.value.sumCellXHeight,
|
|
@@ -1023,8 +1035,8 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1023
1035
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
1024
1036
|
stroke: e.value.style.backgroundColor,
|
|
1025
1037
|
"stroke-width": d.value
|
|
1026
|
-
}, null, 8,
|
|
1027
|
-
(u(!0), i(
|
|
1038
|
+
}, null, 8, Sa))), 256)),
|
|
1039
|
+
(u(!0), i(O, null, U(x.value.xTotals, (l, s) => (u(), i("rect", {
|
|
1028
1040
|
x: a.value.left + a.value.cellSize.width * s + d.value / 2 + a.value.sumCellXHeight,
|
|
1029
1041
|
y: a.value.top - a.value.sumCellXHeight + d.value * (D.value.height / D.value.width),
|
|
1030
1042
|
height: a.value.sumCellXHeight,
|
|
@@ -1032,14 +1044,14 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1032
1044
|
fill: l.color,
|
|
1033
1045
|
stroke: e.value.style.backgroundColor,
|
|
1034
1046
|
"stroke-width": d.value
|
|
1035
|
-
}, null, 8,
|
|
1047
|
+
}, null, 8, Ta))), 256))
|
|
1036
1048
|
], 512)) : g("", !0),
|
|
1037
1049
|
p("g", {
|
|
1038
1050
|
ref_key: "datapoints",
|
|
1039
|
-
ref:
|
|
1051
|
+
ref: sl
|
|
1040
1052
|
}, [
|
|
1041
|
-
(u(!0), i(
|
|
1042
|
-
(u(!0), i(
|
|
1053
|
+
(u(!0), i(O, null, U($.value, (l, s) => (u(), i(O, null, [
|
|
1054
|
+
(u(!0), i(O, null, U(l.temperatures, (r, c) => (u(), i("g", null, [
|
|
1043
1055
|
p("rect", {
|
|
1044
1056
|
x: a.value.left + a.value.cellSize.width * c + d.value / 2 + a.value.sumCellXHeight,
|
|
1045
1057
|
y: a.value.top + a.value.cellSize.height * s + d.value / 2,
|
|
@@ -1048,60 +1060,60 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1048
1060
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
1049
1061
|
stroke: e.value.style.backgroundColor,
|
|
1050
1062
|
"stroke-width": d.value
|
|
1051
|
-
}, null, 8,
|
|
1063
|
+
}, null, 8, $a),
|
|
1052
1064
|
p("rect", {
|
|
1053
|
-
"data-a11y-cell-id":
|
|
1065
|
+
"data-a11y-cell-id": r.id,
|
|
1054
1066
|
x: a.value.left + a.value.cellSize.width * c + d.value / 2 + a.value.sumCellXHeight,
|
|
1055
1067
|
y: a.value.top + a.value.cellSize.height * s + d.value / 2,
|
|
1056
1068
|
width: a.value.cellSize.width - d.value,
|
|
1057
1069
|
height: a.value.cellSize.height - d.value,
|
|
1058
|
-
fill:
|
|
1070
|
+
fill: r.color,
|
|
1059
1071
|
stroke: e.value.style.backgroundColor,
|
|
1060
1072
|
"stroke-width": d.value,
|
|
1061
|
-
"aria-label": `${
|
|
1062
|
-
onMouseover: (b) =>
|
|
1063
|
-
|
|
1073
|
+
"aria-label": `${r.yAxisName}${r.xAxisName ? ` - ${r.xAxisName}` : ""}: ${isNaN(r.value) ? "-" : r.value}`,
|
|
1074
|
+
onMouseover: (b) => Ve(
|
|
1075
|
+
r,
|
|
1064
1076
|
s,
|
|
1065
1077
|
a.value.left + a.value.cellSize.width * c,
|
|
1066
1078
|
a.value.top + a.value.cellSize.height * s,
|
|
1067
1079
|
"pointer",
|
|
1068
|
-
|
|
1080
|
+
it(s, c)
|
|
1069
1081
|
),
|
|
1070
|
-
onMouseout: () =>
|
|
1071
|
-
onClick: () =>
|
|
1072
|
-
}, null, 40,
|
|
1073
|
-
e.value.style.layout.cells.value.show ?
|
|
1082
|
+
onMouseout: () => kl({ datapoint: r, seriesIndex: s }),
|
|
1083
|
+
onClick: () => Et(r, s)
|
|
1084
|
+
}, null, 40, za),
|
|
1085
|
+
e.value.style.layout.cells.value.show ? Qt((u(), i("text", {
|
|
1074
1086
|
key: 0,
|
|
1075
1087
|
"text-anchor": "middle",
|
|
1076
1088
|
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
1077
1089
|
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
1078
|
-
fill: n(
|
|
1090
|
+
fill: n(Ge)(r.color),
|
|
1079
1091
|
x: a.value.left + a.value.cellSize.width * c + a.value.cellSize.width / 2 + a.value.sumCellXHeight,
|
|
1080
1092
|
y: a.value.top + a.value.cellSize.height * s + a.value.cellSize.height / 2 + e.value.style.layout.cells.value.fontSize / 3,
|
|
1081
1093
|
style: { pointerEvents: "none", userSelect: "none" }
|
|
1082
1094
|
}, [
|
|
1083
|
-
|
|
1095
|
+
dt(I(n(le)(
|
|
1084
1096
|
e.value.style.layout.cells.value.formatter,
|
|
1085
|
-
|
|
1097
|
+
r.value,
|
|
1086
1098
|
n(q)({
|
|
1087
1099
|
p: e.value.style.layout.dataLabels.prefix,
|
|
1088
|
-
v:
|
|
1100
|
+
v: r.value,
|
|
1089
1101
|
s: e.value.style.layout.dataLabels.suffix,
|
|
1090
1102
|
r: e.value.style.layout.cells.value.roundingValue
|
|
1091
1103
|
}),
|
|
1092
|
-
{ datapoint:
|
|
1104
|
+
{ datapoint: r }
|
|
1093
1105
|
)), 1)
|
|
1094
|
-
], 8,
|
|
1095
|
-
[n(
|
|
1106
|
+
], 8, _a)), [
|
|
1107
|
+
[n(wa), {
|
|
1096
1108
|
cellWidth: a.value.cellSize.width - d.value,
|
|
1097
1109
|
cellHeight: a.value.cellSize.height - d.value,
|
|
1098
1110
|
maxFontSize: e.value.style.layout.cells.value.fontSize,
|
|
1099
1111
|
minFontSize: 10,
|
|
1100
1112
|
index: s * Y.value + c,
|
|
1101
|
-
reportHide:
|
|
1102
|
-
reportRotation:
|
|
1103
|
-
hideAll:
|
|
1104
|
-
rotateAll:
|
|
1113
|
+
reportHide: xl,
|
|
1114
|
+
reportRotation: bl,
|
|
1115
|
+
hideAll: ml.value,
|
|
1116
|
+
rotateAll: gl.value
|
|
1105
1117
|
}]
|
|
1106
1118
|
]) : g("", !0)
|
|
1107
1119
|
]))), 256))
|
|
@@ -1110,9 +1122,9 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1110
1122
|
e.value.style.layout.cells.rowTotal.color.show ? (u(), i("g", {
|
|
1111
1123
|
key: 2,
|
|
1112
1124
|
ref_key: "yAxisSumRects",
|
|
1113
|
-
ref:
|
|
1125
|
+
ref: nl
|
|
1114
1126
|
}, [
|
|
1115
|
-
(u(!0), i(
|
|
1127
|
+
(u(!0), i(O, null, U($.value, (l, s) => (u(), i(O, null, [
|
|
1116
1128
|
p("rect", {
|
|
1117
1129
|
x: a.value.left,
|
|
1118
1130
|
y: a.value.top + a.value.cellSize.height * s,
|
|
@@ -1121,7 +1133,7 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1121
1133
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
1122
1134
|
stroke: e.value.style.backgroundColor,
|
|
1123
1135
|
"stroke-width": d.value
|
|
1124
|
-
}, null, 8,
|
|
1136
|
+
}, null, 8, Ia),
|
|
1125
1137
|
p("rect", {
|
|
1126
1138
|
x: a.value.left,
|
|
1127
1139
|
y: a.value.top + a.value.cellSize.height * s + d.value / 2,
|
|
@@ -1130,42 +1142,42 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1130
1142
|
fill: x.value.yTotals[s].color,
|
|
1131
1143
|
stroke: e.value.style.backgroundColor,
|
|
1132
1144
|
"stroke-width": d.value
|
|
1133
|
-
}, null, 8,
|
|
1145
|
+
}, null, 8, Oa)
|
|
1134
1146
|
], 64))), 256))
|
|
1135
1147
|
], 512)) : g("", !0),
|
|
1136
1148
|
e.value.style.layout.dataLabels.yAxis.show ? (u(), i("g", {
|
|
1137
1149
|
key: 3,
|
|
1138
1150
|
ref_key: "yAxisLabels",
|
|
1139
|
-
ref:
|
|
1151
|
+
ref: kt
|
|
1140
1152
|
}, [
|
|
1141
|
-
(u(!0), i(
|
|
1153
|
+
(u(!0), i(O, null, U($.value, (l, s) => (u(), i(O, null, [
|
|
1142
1154
|
p("text", {
|
|
1143
1155
|
class: "vue-ui-heatmap-row-name",
|
|
1144
1156
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1145
1157
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
1146
|
-
x:
|
|
1158
|
+
x: ve.value,
|
|
1147
1159
|
y: a.value.top + a.value.cellSize.height * s + a.value.cellSize.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize / 3 + e.value.style.layout.dataLabels.yAxis.offsetY - (e.value.style.layout.cells.rowTotal.value.show ? e.value.style.layout.dataLabels.yAxis.fontSize / 1.5 : 0),
|
|
1148
1160
|
"text-anchor": "end",
|
|
1149
1161
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1150
|
-
},
|
|
1162
|
+
}, I(x.value.yLabels[s]), 9, Ma),
|
|
1151
1163
|
e.value.style.layout.cells.rowTotal.value.show ? (u(), i("text", {
|
|
1152
1164
|
key: 0,
|
|
1153
1165
|
class: "vue-ui-heatmap-row-total",
|
|
1154
1166
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1155
1167
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
1156
|
-
x:
|
|
1168
|
+
x: ve.value,
|
|
1157
1169
|
y: a.value.top + a.value.cellSize.height * s + a.value.cellSize.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize + e.value.style.layout.dataLabels.yAxis.offsetY,
|
|
1158
1170
|
"text-anchor": "end",
|
|
1159
1171
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1160
|
-
},
|
|
1172
|
+
}, I(Cl(s)), 9, Na)) : g("", !0)
|
|
1161
1173
|
], 64))), 256))
|
|
1162
1174
|
], 512)) : g("", !0),
|
|
1163
1175
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), i("g", {
|
|
1164
1176
|
key: 4,
|
|
1165
1177
|
ref_key: "xAxisLabels",
|
|
1166
|
-
ref:
|
|
1178
|
+
ref: qe
|
|
1167
1179
|
}, [
|
|
1168
|
-
(u(!0), i(
|
|
1180
|
+
(u(!0), i(O, null, U(x.value.xLabels, (l, s) => (u(), i(O, null, [
|
|
1169
1181
|
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && s % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (u(), i("text", {
|
|
1170
1182
|
key: 0,
|
|
1171
1183
|
class: "vue-ui-heatmap-col-name",
|
|
@@ -1174,24 +1186,24 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1174
1186
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
1175
1187
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1176
1188
|
transform: `translate(${a.value.left + a.value.cellSize.width / 2 + a.value.width / x.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + a.value.sumCellXHeight}, ${a.value.topLabelsHeight}), rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
1177
|
-
},
|
|
1189
|
+
}, I(l), 9, Fa)) : g("", !0)
|
|
1178
1190
|
], 64))), 256))
|
|
1179
1191
|
], 512)) : g("", !0),
|
|
1180
1192
|
e.value.style.layout.cells.columnTotal.value.show ? (u(), i("g", {
|
|
1181
1193
|
key: 5,
|
|
1182
1194
|
ref_key: "xAxisSums",
|
|
1183
|
-
ref:
|
|
1195
|
+
ref: je
|
|
1184
1196
|
}, [
|
|
1185
|
-
(u(!0), i(
|
|
1197
|
+
(u(!0), i(O, null, U(x.value.xLabels, (l, s) => (u(), i("text", {
|
|
1186
1198
|
class: "vue-ui-heatmap-col-total",
|
|
1187
1199
|
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
1188
1200
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1189
1201
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
1190
1202
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1191
1203
|
transform: `translate(${a.value.left + a.value.cellSize.width / 2 + a.value.width / x.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + a.value.sumCellXHeight}, ${a.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
|
|
1192
|
-
},
|
|
1204
|
+
}, I(Al(s)), 9, Ra))), 256))
|
|
1193
1205
|
], 512)) : g("", !0),
|
|
1194
|
-
R.value ? (u(), i("g",
|
|
1206
|
+
R.value ? (u(), i("g", Pa, [
|
|
1195
1207
|
p("rect", {
|
|
1196
1208
|
style: { "pointer-events": "none" },
|
|
1197
1209
|
x: R.value.x - e.value.style.layout.cells.selected.border / 2 + d.value + a.value.sumCellXHeight,
|
|
@@ -1202,9 +1214,9 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1202
1214
|
stroke: e.value.style.layout.cells.selected.color,
|
|
1203
1215
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
1204
1216
|
rx: 1
|
|
1205
|
-
}, null, 8,
|
|
1217
|
+
}, null, 8, Da)
|
|
1206
1218
|
])) : g("", !0),
|
|
1207
|
-
e.value.style.layout.crosshairs.show && R.value ? (u(), i("g",
|
|
1219
|
+
e.value.style.layout.crosshairs.show && R.value ? (u(), i("g", Ha, [
|
|
1208
1220
|
p("line", {
|
|
1209
1221
|
x1: a.value.left + a.value.sumCellXHeight,
|
|
1210
1222
|
x2: R.value.x + a.value.sumCellXHeight,
|
|
@@ -1214,7 +1226,7 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1214
1226
|
"stroke-width": e.value.style.layout.crosshairs.strokeWidth,
|
|
1215
1227
|
"stroke-dasharray": e.value.style.layout.crosshairs.strokeDasharray,
|
|
1216
1228
|
"stroke-linecap": "round"
|
|
1217
|
-
}, null, 8,
|
|
1229
|
+
}, null, 8, Ea),
|
|
1218
1230
|
p("line", {
|
|
1219
1231
|
x1: R.value.x + a.value.sumCellXHeight + (a.value.cellSize.width - d.value) / 2,
|
|
1220
1232
|
x2: R.value.x + a.value.sumCellXHeight + (a.value.cellSize.width - d.value) / 2,
|
|
@@ -1224,57 +1236,57 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1224
1236
|
"stroke-width": e.value.style.layout.crosshairs.strokeWidth,
|
|
1225
1237
|
"stroke-dasharray": e.value.style.layout.crosshairs.strokeDasharray,
|
|
1226
1238
|
"stroke-linecap": "round"
|
|
1227
|
-
}, null, 8,
|
|
1239
|
+
}, null, 8, Va)
|
|
1228
1240
|
])) : g("", !0),
|
|
1229
1241
|
m(t.$slots, "svg", {
|
|
1230
1242
|
svg: {
|
|
1231
1243
|
...D.value,
|
|
1232
|
-
isPrintingImg: n(
|
|
1233
|
-
isPrintingSvg:
|
|
1244
|
+
isPrintingImg: n(tt) | n(lt) | Ne.value,
|
|
1245
|
+
isPrintingSvg: Fe.value
|
|
1234
1246
|
}
|
|
1235
1247
|
}, void 0, !0)
|
|
1236
|
-
], 46,
|
|
1248
|
+
], 46, Aa)),
|
|
1237
1249
|
e.value.style.legend.show ? (u(), i("div", {
|
|
1238
1250
|
key: 0,
|
|
1239
1251
|
ref_key: "legendRight",
|
|
1240
|
-
ref:
|
|
1252
|
+
ref: ul,
|
|
1241
1253
|
class: "vue-ui-heatmap-legend-right",
|
|
1242
1254
|
style: L({
|
|
1243
1255
|
"--legend-width": e.value.style.legend.width + "px"
|
|
1244
1256
|
})
|
|
1245
1257
|
}, [
|
|
1246
|
-
n(
|
|
1258
|
+
n(He) ? g("", !0) : (u(), i("div", {
|
|
1247
1259
|
key: 0,
|
|
1248
1260
|
class: "vue-ui-heatmap-legend-label-max",
|
|
1249
1261
|
style: L({
|
|
1250
1262
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
1251
1263
|
color: e.value.style.legend.color
|
|
1252
1264
|
})
|
|
1253
|
-
},
|
|
1265
|
+
}, I(n(le)(
|
|
1254
1266
|
e.value.style.layout.cells.value.formatter,
|
|
1255
|
-
n(
|
|
1267
|
+
n(ae)(Z.value),
|
|
1256
1268
|
n(q)({
|
|
1257
1269
|
p: e.value.style.layout.dataLabels.prefix,
|
|
1258
|
-
v: n(
|
|
1270
|
+
v: n(ae)(Z.value),
|
|
1259
1271
|
s: e.value.style.layout.dataLabels.suffix,
|
|
1260
1272
|
r: e.value.style.legend.roundingValue
|
|
1261
1273
|
})
|
|
1262
1274
|
)), 5)),
|
|
1263
|
-
p("div",
|
|
1275
|
+
p("div", Xa, [
|
|
1264
1276
|
p("div", {
|
|
1265
1277
|
class: "vue-ui-heatmap-gauge",
|
|
1266
1278
|
style: L({
|
|
1267
1279
|
background: `linear-gradient(to bottom, ${e.value.style.layout.cells.colors.hot}, ${e.value.style.layout.cells.colors.cold})`
|
|
1268
1280
|
})
|
|
1269
1281
|
}, [
|
|
1270
|
-
|
|
1282
|
+
Qt(p("div", {
|
|
1271
1283
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
1272
|
-
"data-value": n(
|
|
1284
|
+
"data-value": n(le)(
|
|
1273
1285
|
e.value.style.layout.cells.value.formatter,
|
|
1274
|
-
n(
|
|
1286
|
+
n(ae)(V.value),
|
|
1275
1287
|
n(q)({
|
|
1276
1288
|
p: e.value.style.layout.dataLabels.prefix,
|
|
1277
|
-
v: n(
|
|
1289
|
+
v: n(ae)(V.value),
|
|
1278
1290
|
s: e.value.style.layout.dataLabels.suffix,
|
|
1279
1291
|
r: e.value.style.legend.roundingValue
|
|
1280
1292
|
})
|
|
@@ -1283,67 +1295,67 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1283
1295
|
position: "absolute",
|
|
1284
1296
|
width: "100%",
|
|
1285
1297
|
height: "2px",
|
|
1286
|
-
background: [void 0, null].includes(
|
|
1287
|
-
top: `${[void 0, null].includes(
|
|
1298
|
+
background: [void 0, null].includes(V.value) ? "transparent" : n(Ge)(Ee.value.datapoint.color),
|
|
1299
|
+
top: `${[void 0, null].includes(V.value) ? 0 : (1 - V.value / Z.value) * 100}%`,
|
|
1288
1300
|
transition: "all 0.2s ease-in-out",
|
|
1289
1301
|
"--background-color": e.value.style.backgroundColor,
|
|
1290
|
-
"--gauge-arrow-color": n(
|
|
1291
|
-
"--gauge-arrow-text-color": n(
|
|
1292
|
-
"--gauge-arrow-value":
|
|
1302
|
+
"--gauge-arrow-color": n(Ge)(e.value.style.backgroundColor),
|
|
1303
|
+
"--gauge-arrow-text-color": n(Ge)(e.value.style.backgroundColor),
|
|
1304
|
+
"--gauge-arrow-value": V.value,
|
|
1293
1305
|
"--gauge-arrow-font-size": e.value.style.legend.fontSize + "px"
|
|
1294
1306
|
})
|
|
1295
1307
|
}, [
|
|
1296
|
-
p("div",
|
|
1308
|
+
p("div", Ua, I(n(le)(
|
|
1297
1309
|
e.value.style.layout.cells.value.formatter,
|
|
1298
|
-
n(
|
|
1310
|
+
n(ae)(V.value),
|
|
1299
1311
|
n(q)({
|
|
1300
1312
|
p: e.value.style.layout.dataLabels.prefix,
|
|
1301
|
-
v: n(
|
|
1313
|
+
v: n(ae)(V.value),
|
|
1302
1314
|
s: e.value.style.layout.dataLabels.suffix,
|
|
1303
1315
|
r: e.value.style.legend.roundingValue
|
|
1304
1316
|
})
|
|
1305
1317
|
)), 1)
|
|
1306
|
-
], 12,
|
|
1307
|
-
[
|
|
1318
|
+
], 12, Ba), [
|
|
1319
|
+
[Yl, ![void 0, null].includes(V.value)]
|
|
1308
1320
|
])
|
|
1309
1321
|
], 4)
|
|
1310
1322
|
]),
|
|
1311
|
-
n(
|
|
1323
|
+
n(He) ? g("", !0) : (u(), i("div", {
|
|
1312
1324
|
key: 1,
|
|
1313
1325
|
class: "vue-ui-heatmap-legend-label-min",
|
|
1314
1326
|
style: L({
|
|
1315
1327
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
1316
1328
|
color: e.value.style.legend.color
|
|
1317
1329
|
})
|
|
1318
|
-
},
|
|
1330
|
+
}, I(n(le)(
|
|
1319
1331
|
e.value.style.layout.cells.value.formatter,
|
|
1320
|
-
n(
|
|
1332
|
+
n(ae)(Se.value),
|
|
1321
1333
|
n(q)({
|
|
1322
1334
|
p: e.value.style.layout.dataLabels.prefix,
|
|
1323
|
-
v: n(
|
|
1335
|
+
v: n(ae)(Se.value),
|
|
1324
1336
|
s: e.value.style.layout.dataLabels.suffix,
|
|
1325
1337
|
r: e.value.style.legend.roundingValue
|
|
1326
1338
|
})
|
|
1327
1339
|
)), 5))
|
|
1328
1340
|
], 4)) : g("", !0),
|
|
1329
|
-
t.$slots.hint ? (u(), i("div",
|
|
1330
|
-
m(t.$slots, "hint", H(E({ hint: e.value.a11y.translations.keyboardNavigation, isVisible:
|
|
1341
|
+
t.$slots.hint ? (u(), i("div", Ga, [
|
|
1342
|
+
m(t.$slots, "hint", H(E({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Pe.value })), void 0, !0)
|
|
1331
1343
|
])) : g("", !0)
|
|
1332
1344
|
], 2),
|
|
1333
|
-
t.$slots.watermark ? (u(), i("div",
|
|
1334
|
-
m(t.$slots, "watermark", H(E({ isPrinting: n(
|
|
1345
|
+
t.$slots.watermark ? (u(), i("div", Wa, [
|
|
1346
|
+
m(t.$slots, "watermark", H(E({ isPrinting: n(tt) || n(lt) || Ne.value || Fe.value })), void 0, !0)
|
|
1335
1347
|
])) : g("", !0),
|
|
1336
1348
|
t.$slots.source ? (u(), i("div", {
|
|
1337
1349
|
key: 6,
|
|
1338
1350
|
ref_key: "source",
|
|
1339
|
-
ref:
|
|
1351
|
+
ref: Ct,
|
|
1340
1352
|
dir: "auto"
|
|
1341
1353
|
}, [
|
|
1342
1354
|
m(t.$slots, "source", {}, void 0, !0)
|
|
1343
1355
|
], 512)) : g("", !0),
|
|
1344
|
-
|
|
1356
|
+
Ue(n(J), {
|
|
1345
1357
|
teleportTo: e.value.style.tooltip.teleportTo,
|
|
1346
|
-
show: P.value.showTooltip &&
|
|
1358
|
+
show: P.value.showTooltip && ne.value,
|
|
1347
1359
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1348
1360
|
color: e.value.style.tooltip.color,
|
|
1349
1361
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -1353,62 +1365,62 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1353
1365
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
1354
1366
|
position: e.value.style.tooltip.position,
|
|
1355
1367
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1356
|
-
parent:
|
|
1357
|
-
content:
|
|
1358
|
-
isFullscreen:
|
|
1368
|
+
parent: M.value,
|
|
1369
|
+
content: Ke.value,
|
|
1370
|
+
isFullscreen: de.value,
|
|
1359
1371
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1360
1372
|
smooth: e.value.style.tooltip.smooth,
|
|
1361
1373
|
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
1362
1374
|
smoothForce: e.value.style.tooltip.smoothForce,
|
|
1363
1375
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold,
|
|
1364
|
-
isA11yMode:
|
|
1365
|
-
a11yPosition:
|
|
1376
|
+
isA11yMode: Je.value === "keyboard",
|
|
1377
|
+
a11yPosition: At.value
|
|
1366
1378
|
}, {
|
|
1367
1379
|
"tooltip-before": C(() => [
|
|
1368
|
-
m(t.$slots, "tooltip-before", H(E({ ...
|
|
1380
|
+
m(t.$slots, "tooltip-before", H(E({ ...Ee.value })), void 0, !0)
|
|
1369
1381
|
]),
|
|
1370
1382
|
"tooltip-after": C(() => [
|
|
1371
|
-
m(t.$slots, "tooltip-after", H(E({ ...
|
|
1383
|
+
m(t.$slots, "tooltip-after", H(E({ ...Ee.value })), void 0, !0)
|
|
1372
1384
|
]),
|
|
1373
1385
|
_: 3
|
|
1374
1386
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1375
|
-
|
|
1387
|
+
X.value && e.value.userOptions.buttons.table ? (u(), me(ql(Xe.value.component), jl({ key: 7 }, Xe.value.props, {
|
|
1376
1388
|
ref_key: "tableUnit",
|
|
1377
|
-
ref:
|
|
1378
|
-
onClose:
|
|
1379
|
-
}),
|
|
1389
|
+
ref: ke,
|
|
1390
|
+
onClose: nt
|
|
1391
|
+
}), Jt({
|
|
1380
1392
|
content: C(() => [
|
|
1381
1393
|
p("div", {
|
|
1382
1394
|
ref_key: "tableContainer",
|
|
1383
|
-
ref:
|
|
1395
|
+
ref: bt,
|
|
1384
1396
|
class: "vue-ui-heatmap-table atom-data-table",
|
|
1385
1397
|
style: L(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1386
1398
|
}, [
|
|
1387
1399
|
p("div", {
|
|
1388
1400
|
style: L(`width:100%;overflow-x:auto;position:relative;${e.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1389
|
-
class:
|
|
1401
|
+
class: Oe({ "vue-ui-responsive": n(Tl) })
|
|
1390
1402
|
}, [
|
|
1391
1403
|
e.value.table.useDialog ? g("", !0) : (u(), i("div", {
|
|
1392
1404
|
key: 0,
|
|
1393
1405
|
role: "button",
|
|
1394
1406
|
tabindex: "0",
|
|
1395
1407
|
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};`),
|
|
1396
|
-
onClick:
|
|
1397
|
-
onKeypress:
|
|
1408
|
+
onClick: nt,
|
|
1409
|
+
onKeypress: Jl(nt, ["enter"])
|
|
1398
1410
|
}, [
|
|
1399
|
-
|
|
1411
|
+
Ue(n(se), {
|
|
1400
1412
|
name: "close",
|
|
1401
1413
|
stroke: e.value.table.th.color,
|
|
1402
1414
|
"stroke-width": 2
|
|
1403
1415
|
}, null, 8, ["stroke"])
|
|
1404
1416
|
], 36)),
|
|
1405
|
-
p("table",
|
|
1417
|
+
p("table", Ka, [
|
|
1406
1418
|
e.value.table.useDialog ? g("", !0) : (u(), i("caption", {
|
|
1407
1419
|
key: 0,
|
|
1408
1420
|
style: L(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1409
1421
|
}, [
|
|
1410
|
-
|
|
1411
|
-
e.value.style.title.subtitle.text ? (u(), i("span",
|
|
1422
|
+
dt(I(e.value.style.title.text) + " ", 1),
|
|
1423
|
+
e.value.style.title.subtitle.text ? (u(), i("span", Ya, I(e.value.style.title.subtitle.text), 1)) : g("", !0)
|
|
1412
1424
|
], 4)),
|
|
1413
1425
|
p("thead", null, [
|
|
1414
1426
|
p("tr", {
|
|
@@ -1418,16 +1430,16 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1418
1430
|
p("th", {
|
|
1419
1431
|
style: L(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1420
1432
|
}, null, 4),
|
|
1421
|
-
(u(!0), i(
|
|
1433
|
+
(u(!0), i(O, null, U(h.dataset, (l, s) => (u(), i("th", {
|
|
1422
1434
|
align: "right",
|
|
1423
1435
|
style: L(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1424
|
-
},
|
|
1436
|
+
}, I(l.name), 5))), 256))
|
|
1425
1437
|
], 4)
|
|
1426
1438
|
]),
|
|
1427
1439
|
p("tbody", null, [
|
|
1428
|
-
(u(!0), i(
|
|
1440
|
+
(u(!0), i(O, null, U(x.value.xLabels, (l, s) => (u(), i("tr", {
|
|
1429
1441
|
role: "row",
|
|
1430
|
-
class:
|
|
1442
|
+
class: Oe({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": s % 2 === 0, "vue-ui-data-table__tbody__row-odd": s % 2 !== 0 }),
|
|
1431
1443
|
style: L(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1432
1444
|
}, [
|
|
1433
1445
|
p("td", {
|
|
@@ -1435,15 +1447,15 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1435
1447
|
class: "vue-ui-data-table__tbody__td",
|
|
1436
1448
|
style: L(`outline:${e.value.table.td.outline}`)
|
|
1437
1449
|
}, [
|
|
1438
|
-
p("div",
|
|
1439
|
-
], 12,
|
|
1440
|
-
(u(!0), i(
|
|
1450
|
+
p("div", ja, I(l), 1)
|
|
1451
|
+
], 12, qa),
|
|
1452
|
+
(u(!0), i(O, null, U(h.dataset, (r, c) => (u(), i("td", {
|
|
1441
1453
|
class: "vue-ui-data-table__tbody__td",
|
|
1442
1454
|
"data-cell": h.dataset[c].name,
|
|
1443
1455
|
style: L(`outline:${e.value.table.td.outline}`)
|
|
1444
1456
|
}, [
|
|
1445
|
-
p("div",
|
|
1446
|
-
], 12,
|
|
1457
|
+
p("div", Qa, I(isNaN(r.values[s]) ? "-" : n(q)({ p: e.value.style.layout.dataLabels.prefix, v: r.values[s], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
1458
|
+
], 12, Ja))), 256))
|
|
1447
1459
|
], 6))), 256))
|
|
1448
1460
|
])
|
|
1449
1461
|
])
|
|
@@ -1455,7 +1467,7 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1455
1467
|
e.value.table.useDialog ? {
|
|
1456
1468
|
name: "title",
|
|
1457
1469
|
fn: C(() => [
|
|
1458
|
-
|
|
1470
|
+
dt(I(Xe.value.title), 1)
|
|
1459
1471
|
]),
|
|
1460
1472
|
key: "0"
|
|
1461
1473
|
} : void 0,
|
|
@@ -1465,12 +1477,12 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1465
1477
|
p("button", {
|
|
1466
1478
|
tabindex: "0",
|
|
1467
1479
|
class: "vue-ui-user-options-button",
|
|
1468
|
-
onClick: o[0] || (o[0] = (l) =>
|
|
1469
|
-
style: L({ cursor:
|
|
1480
|
+
onClick: o[0] || (o[0] = (l) => st(e.value.userOptions.callbacks.csv)),
|
|
1481
|
+
style: L({ cursor: De.value ? "pointer" : "default" })
|
|
1470
1482
|
}, [
|
|
1471
|
-
|
|
1483
|
+
Ue(n(se), {
|
|
1472
1484
|
name: "fileCsv",
|
|
1473
|
-
stroke:
|
|
1485
|
+
stroke: Xe.value.props.color
|
|
1474
1486
|
}, null, 8, ["stroke"])
|
|
1475
1487
|
], 4)
|
|
1476
1488
|
]),
|
|
@@ -1478,11 +1490,11 @@ const ca = ["id"], da = ["id"], ya = ["xmlns", "aria-describedby", "viewBox"], h
|
|
|
1478
1490
|
} : void 0
|
|
1479
1491
|
]), 1040)) : g("", !0),
|
|
1480
1492
|
m(t.$slots, "skeleton", {}, () => [
|
|
1481
|
-
n(
|
|
1493
|
+
n(He) ? (u(), me(ra, { key: 0 })) : g("", !0)
|
|
1482
1494
|
], !0)
|
|
1483
|
-
], 46,
|
|
1495
|
+
], 46, ka));
|
|
1484
1496
|
}
|
|
1485
|
-
},
|
|
1497
|
+
}, ko = /* @__PURE__ */ xa(Za, [["__scopeId", "data-v-2ff442c5"]]);
|
|
1486
1498
|
export {
|
|
1487
|
-
|
|
1499
|
+
ko as default
|
|
1488
1500
|
};
|