vue-data-ui 3.6.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.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 +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -1,97 +1,114 @@
|
|
|
1
|
-
import { watchEffect as
|
|
2
|
-
import { c as Ie, t as
|
|
3
|
-
import { t as Te, u 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
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { _ as
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
(
|
|
21
|
-
const
|
|
22
|
-
if (!
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
let
|
|
26
|
-
if (
|
|
27
|
-
|
|
1
|
+
import { watchEffect as ul, nextTick as Se, useCssVars as nl, defineAsyncComponent as ue, computed as f, ref as d, shallowRef as il, toRefs as rl, watch as ke, onBeforeUnmount as ft, onMounted as vl, reactive as gt, createElementBlock as i, openBlock as u, normalizeStyle as w, normalizeClass as fe, createBlock as ge, createCommentVNode as g, createElementVNode as b, createVNode as we, unref as n, withCtx as C, renderSlot as x, normalizeProps as R, guardReactiveProps as E, createSlots as bt, Fragment as S, renderList as N, withDirectives as pt, createTextVNode as Xe, toDisplayString as $, vShow as cl, resolveDynamicComponent as dl, mergeProps as hl, withKeys as yl } from "vue";
|
|
2
|
+
import { c as Ie, t as fl, W as gl, o as mt, g as xt, ai as be, k as bl, X as pl, w as Le, a as q, d as V, M as K, aw as ml, u as xl, q as Cl, x as Al, R as kl } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as Te, u as wl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ll, a as Ve } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as Tl } from "./usePrinter-DCJzEiS8.js";
|
|
6
|
+
import { u as Sl, B as _l } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as $l } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Ct } from "./useTimeLabels-C5qMhpbe.js";
|
|
9
|
+
import { u as zl } from "./useThemeCheck-DGJ31Vi5.js";
|
|
10
|
+
import { u as Fl } from "./useTableResponsive-Cbx-ACcP.js";
|
|
11
|
+
import { u as Dl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
+
import { u as At } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
|
+
import { u as Bl } from "./useChartAccessibility-9icAAmYg.js";
|
|
14
|
+
import Ol from "./img-DUzJeMlr.js";
|
|
15
|
+
import Ml from "./Title-DfFUb9hd.js";
|
|
16
|
+
import Rl from "./vue-ui-accordion-DSdZUn2C.js";
|
|
17
|
+
import { _ as El } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
function Ue({ elementRef: y, callback: O, attr: H, earlyReturn: U = !1 }) {
|
|
19
|
+
U || ul(
|
|
20
|
+
(J) => {
|
|
21
|
+
const m = y.value;
|
|
22
|
+
if (!m) return;
|
|
23
|
+
const Y = new ResizeObserver((z) => {
|
|
24
|
+
const Q = z[0]?.contentRect;
|
|
25
|
+
let F;
|
|
26
|
+
if (Q && Q[H] != null)
|
|
27
|
+
F = Q[H];
|
|
28
28
|
else
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
H === "width" ? F = typeof m.getBBox == "function" ? m.getBBox().width : m.getBoundingClientRect().width : F = typeof m.getBBox == "function" ? m.getBBox().height : m.getBoundingClientRect().height;
|
|
31
31
|
} catch {
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const Z = m.getBoundingClientRect();
|
|
33
|
+
F = H === "width" ? Z.width : Z.height;
|
|
34
34
|
}
|
|
35
|
-
typeof
|
|
35
|
+
typeof F == "number" && !Number.isNaN(F) && O(F);
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
Y.observe(m), Se(() => {
|
|
38
38
|
requestAnimationFrame(() => {
|
|
39
39
|
if (!y.value) return;
|
|
40
|
-
const
|
|
41
|
-
typeof
|
|
40
|
+
const z = y.value.getBoundingClientRect(), j = H === "width" ? z.width : z.height;
|
|
41
|
+
typeof j == "number" && !Number.isNaN(j) && O(j);
|
|
42
42
|
});
|
|
43
|
-
}),
|
|
43
|
+
}), J(() => Y.disconnect());
|
|
44
44
|
},
|
|
45
45
|
{ flush: "post" }
|
|
46
46
|
);
|
|
47
47
|
}
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
const wt = { 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" } } }, Tt = { style: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { 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" } } }, St = { style: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { 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: { 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" } } }, $t = { style: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { 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" } } }, zt = {
|
|
49
|
+
default: {},
|
|
50
|
+
dark: wt,
|
|
51
|
+
celebration: Lt,
|
|
52
|
+
celebrationNight: Tt,
|
|
53
|
+
hack: St,
|
|
54
|
+
zen: _t,
|
|
55
|
+
concrete: $t
|
|
56
|
+
}, za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
57
|
+
__proto__: null,
|
|
58
|
+
celebration: Lt,
|
|
59
|
+
celebrationNight: Tt,
|
|
60
|
+
concrete: $t,
|
|
61
|
+
dark: wt,
|
|
62
|
+
default: zt,
|
|
63
|
+
hack: St,
|
|
64
|
+
zen: _t
|
|
65
|
+
}, Symbol.toStringTag, { value: "Module" })), Nl = {
|
|
66
|
+
mounted(y, O) {
|
|
67
|
+
kt(y, O.value);
|
|
51
68
|
},
|
|
52
|
-
updated(y,
|
|
53
|
-
|
|
69
|
+
updated(y, O) {
|
|
70
|
+
kt(y, O.value);
|
|
54
71
|
}
|
|
55
72
|
};
|
|
56
|
-
function
|
|
57
|
-
cellWidth:
|
|
58
|
-
cellHeight:
|
|
59
|
-
maxFontSize:
|
|
60
|
-
minFontSize:
|
|
61
|
-
index:
|
|
62
|
-
reportRotation:
|
|
63
|
-
reportHide:
|
|
64
|
-
rotateAll:
|
|
65
|
-
hideAll:
|
|
73
|
+
function kt(y, {
|
|
74
|
+
cellWidth: O,
|
|
75
|
+
cellHeight: H,
|
|
76
|
+
maxFontSize: U,
|
|
77
|
+
minFontSize: J,
|
|
78
|
+
index: m,
|
|
79
|
+
reportRotation: Y,
|
|
80
|
+
reportHide: z,
|
|
81
|
+
rotateAll: j,
|
|
82
|
+
hideAll: Q
|
|
66
83
|
}) {
|
|
67
84
|
y.removeAttribute("transform"), y.removeAttribute("visibility");
|
|
68
|
-
let
|
|
69
|
-
y.setAttribute("font-size",
|
|
70
|
-
const
|
|
71
|
-
if (
|
|
72
|
-
|
|
85
|
+
let F = !1, Z = !1;
|
|
86
|
+
y.setAttribute("font-size", U);
|
|
87
|
+
const L = y.getComputedTextLength();
|
|
88
|
+
if (L <= O)
|
|
89
|
+
Y(m, !1), z(m, !1);
|
|
73
90
|
else {
|
|
74
|
-
const
|
|
75
|
-
|
|
91
|
+
const I = Math.floor(U * O / L);
|
|
92
|
+
I >= J ? (y.setAttribute("font-size", I), Y(m, !1), z(m, !1)) : (Y(m, !0), z(m, !1), F = !0);
|
|
76
93
|
}
|
|
77
|
-
if (
|
|
78
|
-
y.setAttribute("font-size",
|
|
79
|
-
const
|
|
80
|
-
y.setAttribute("transform", `rotate(-90 ${
|
|
81
|
-
const
|
|
82
|
-
if (
|
|
83
|
-
|
|
94
|
+
if (j && (F = !0), F) {
|
|
95
|
+
y.setAttribute("font-size", U);
|
|
96
|
+
const I = y.getBBox(), ne = I.x + I.width / 2, ie = I.y + I.height / 2;
|
|
97
|
+
y.setAttribute("transform", `rotate(-90 ${ne} ${ie})`);
|
|
98
|
+
const _ = y.getBBox().width;
|
|
99
|
+
if (_ <= H)
|
|
100
|
+
z(m, !1);
|
|
84
101
|
else {
|
|
85
|
-
const
|
|
86
|
-
|
|
102
|
+
const ae = Math.floor(U * H / _);
|
|
103
|
+
ae >= J ? (y.setAttribute("font-size", ae), z(m, !1)) : (Z = !0, z(m, !0));
|
|
87
104
|
}
|
|
88
105
|
}
|
|
89
|
-
(
|
|
106
|
+
(Q || Z) && y.setAttribute("visibility", "hidden");
|
|
90
107
|
}
|
|
91
|
-
const
|
|
108
|
+
const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["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"], Yl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "onMouseover", "onMouseout", "onClick"], jl = ["font-size", "font-weight", "fill", "x", "y"], Gl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Wl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], ql = ["font-size", "fill", "x", "y", "font-weight"], Kl = ["font-size", "fill", "x", "y", "font-weight"], Jl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Ql = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Zl = { key: 6 }, ea = ["x", "y", "width", "height", "stroke", "stroke-width"], ta = { class: "vue-ui-heatmap-legend-gauge-right" }, la = ["data-value"], aa = { class: "vue-ui-heatmap-gauge-indicator-value" }, oa = {
|
|
92
109
|
key: 4,
|
|
93
110
|
class: "vue-data-ui-watermark"
|
|
94
|
-
},
|
|
111
|
+
}, sa = { class: "vue-ui-data-table" }, ua = { key: 0 }, na = ["data-cell"], ia = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ra = ["data-cell"], va = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ca = {
|
|
95
112
|
__name: "vue-ui-heatmap",
|
|
96
113
|
props: {
|
|
97
114
|
config: {
|
|
@@ -108,24 +125,24 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
108
125
|
}
|
|
109
126
|
},
|
|
110
127
|
emits: ["selectDatapoint"],
|
|
111
|
-
setup(y, { expose:
|
|
112
|
-
|
|
113
|
-
|
|
128
|
+
setup(y, { expose: O, emit: H }) {
|
|
129
|
+
nl((t) => ({
|
|
130
|
+
v3fbb7831: t.tdo
|
|
114
131
|
}));
|
|
115
|
-
const
|
|
132
|
+
const U = ue(() => import("./Tooltip-WD0Ros6G.js")), J = ue(() => import("./BaseIcon-CofSxalQ.js")), m = ue(() => import("./PenAndPaper-HCZQTkqi.js")), Y = ue(() => import("./UserOptions-B3I-s3Lw.js")), z = ue(() => import("./PackageVersion-Bq_mtsqr.js")), j = ue(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_heatmap: Q } = Ll(), { isThemeValid: F, warnInvalidTheme: Z } = zl(), L = y, I = H, ne = f({
|
|
116
133
|
get() {
|
|
117
|
-
return !!
|
|
134
|
+
return !!L.dataset && L.dataset.length;
|
|
118
135
|
},
|
|
119
136
|
set(t) {
|
|
120
137
|
return t;
|
|
121
138
|
}
|
|
122
|
-
}),
|
|
123
|
-
function
|
|
139
|
+
}), ie = d(Ie()), _ = d(null), ae = d(!1), _e = d(""), Ye = d(void 0), re = d(null), je = d(0), Ge = d(null), We = d(0), Ft = d(null), ve = d(null), $e = d(null), qe = d(null), Ke = d(null), Dt = d(null), Je = d(null), Bt = d(null), ze = d(null), Fe = d(null), Ot = d(null), Qe = d(null), oe = il(null), e = d(Me());
|
|
140
|
+
function Mt() {
|
|
124
141
|
const t = Array(7).fill("_"), s = [], a = 14, o = t.length;
|
|
125
142
|
for (let v = 0; v < o; v += 1) {
|
|
126
143
|
const c = [];
|
|
127
|
-
for (let
|
|
128
|
-
c.push(v +
|
|
144
|
+
for (let k = 0; k < a; k += 1)
|
|
145
|
+
c.push(v + k * 2);
|
|
129
146
|
s.push({
|
|
130
147
|
name: `${t[v]}`,
|
|
131
148
|
values: c
|
|
@@ -133,17 +150,17 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
133
150
|
}
|
|
134
151
|
return s;
|
|
135
152
|
}
|
|
136
|
-
const { loading:
|
|
137
|
-
...
|
|
153
|
+
const { loading: pe, FINAL_DATASET: A, manualLoading: De } = Sl({
|
|
154
|
+
...rl(L),
|
|
138
155
|
FINAL_CONFIG: e,
|
|
139
|
-
prepareConfig:
|
|
156
|
+
prepareConfig: Me,
|
|
140
157
|
callback: () => {
|
|
141
158
|
Promise.resolve().then(async () => {
|
|
142
|
-
await Se(),
|
|
159
|
+
await Se(), _.value && ml(_.value, { delta: 0.1, delay: 250 });
|
|
143
160
|
});
|
|
144
161
|
},
|
|
145
|
-
skeletonDataset:
|
|
146
|
-
skeletonConfig:
|
|
162
|
+
skeletonDataset: Mt(),
|
|
163
|
+
skeletonConfig: fl({
|
|
147
164
|
defaultConfig: e.value,
|
|
148
165
|
userConfig: {
|
|
149
166
|
table: { show: !1 },
|
|
@@ -168,95 +185,108 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
168
185
|
}
|
|
169
186
|
}
|
|
170
187
|
})
|
|
171
|
-
}), { userOptionsVisible:
|
|
172
|
-
function
|
|
173
|
-
|
|
188
|
+
}), { userOptionsVisible: Be, setUserOptionsVisibility: Rt, keepUserOptionState: Ze } = Dl({ config: e.value }), { svgRef: Oe } = Bl({ config: e.value.style.title });
|
|
189
|
+
function et(t) {
|
|
190
|
+
Rt(t);
|
|
174
191
|
}
|
|
175
|
-
function
|
|
176
|
-
const t =
|
|
177
|
-
userConfig:
|
|
178
|
-
defaultConfig:
|
|
192
|
+
function Me() {
|
|
193
|
+
const t = Ve({
|
|
194
|
+
userConfig: L.config,
|
|
195
|
+
defaultConfig: Q
|
|
179
196
|
});
|
|
180
197
|
let s = {};
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
198
|
+
const a = t.theme;
|
|
199
|
+
if (a)
|
|
200
|
+
if (!F.value(t))
|
|
201
|
+
Z(t), s = t;
|
|
202
|
+
else {
|
|
203
|
+
const o = Ve({
|
|
204
|
+
userConfig: zt[a] || L.config,
|
|
205
|
+
defaultConfig: t
|
|
206
|
+
});
|
|
207
|
+
s = {
|
|
208
|
+
...Ve({
|
|
209
|
+
userConfig: L.config,
|
|
210
|
+
defaultConfig: o
|
|
211
|
+
})
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
else
|
|
215
|
+
s = t;
|
|
216
|
+
return L.config && gl(L.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? s.style.layout.dataLabels.xAxis.showOnlyAtModulo = L.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : s.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, s;
|
|
187
217
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}, { deep: !0 }),
|
|
191
|
-
Array.isArray(t) && t.length > 0 && (
|
|
218
|
+
ke(() => L.config, (t) => {
|
|
219
|
+
pe.value || (e.value = Me()), Be.value = !e.value.userOptions.showOnChartHover, Re(), We.value += 1, B.value.showTable = e.value.table.show, B.value.showTooltip = e.value.style.tooltip.show, ce.value = e.value.style.layout.width, de.value = e.value.style.layout.height;
|
|
220
|
+
}, { deep: !0 }), ke(() => L.dataset, (t) => {
|
|
221
|
+
Array.isArray(t) && t.length > 0 && (De.value = !1), Re();
|
|
192
222
|
}, { deep: !0 });
|
|
193
|
-
const { isPrinting:
|
|
194
|
-
elementId: `heatmap__${
|
|
223
|
+
const { isPrinting: tt, isImaging: lt, generatePdf: at, generateImage: ot } = Tl({
|
|
224
|
+
elementId: `heatmap__${ie.value}`,
|
|
195
225
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
196
226
|
options: e.value.userOptions.print
|
|
197
|
-
}),
|
|
227
|
+
}), Et = f(() => e.value.userOptions.show && !e.value.style.title.text), B = d({
|
|
198
228
|
showTable: e.value.table.show,
|
|
199
229
|
showTooltip: e.value.style.tooltip.show
|
|
200
230
|
});
|
|
201
|
-
|
|
202
|
-
|
|
231
|
+
ke(e, () => {
|
|
232
|
+
B.value = {
|
|
203
233
|
showTable: e.value.table.show,
|
|
204
234
|
showTooltip: e.value.style.tooltip.show
|
|
205
235
|
};
|
|
206
236
|
}, { immediate: !0 });
|
|
207
|
-
const
|
|
208
|
-
function
|
|
209
|
-
if (
|
|
237
|
+
const Nt = f(() => e.value.table.responsiveBreakpoint), G = d(null), st = f(() => !!e.value.debug);
|
|
238
|
+
function Re() {
|
|
239
|
+
if (mt(L.dataset) && (xt({
|
|
210
240
|
componentName: "VueUiHeatmap",
|
|
211
241
|
type: "dataset",
|
|
212
|
-
debug:
|
|
213
|
-
}),
|
|
242
|
+
debug: st.value
|
|
243
|
+
}), ne.value = !1, De.value = !0), mt(L.dataset) || (De.value = e.value.loading), e.value.responsive) {
|
|
214
244
|
const t = Te(() => {
|
|
215
|
-
const { width: s, height: a } =
|
|
216
|
-
chart:
|
|
217
|
-
title: e.value.style.title.text ?
|
|
245
|
+
const { width: s, height: a } = wl({
|
|
246
|
+
chart: _.value,
|
|
247
|
+
title: e.value.style.title.text ? qe.value : null,
|
|
218
248
|
// add legend hirizontal in legend attr
|
|
219
249
|
// add legend vertical in some other attr and modify composable to subtract width
|
|
220
|
-
source:
|
|
221
|
-
noTitle:
|
|
250
|
+
source: Qe.value,
|
|
251
|
+
noTitle: Ke.value
|
|
222
252
|
});
|
|
223
253
|
requestAnimationFrame(() => {
|
|
224
254
|
ce.value = s, de.value = a;
|
|
225
255
|
});
|
|
226
256
|
});
|
|
227
|
-
|
|
257
|
+
G.value && (oe.value && G.value.unobserve(oe.value), G.value.disconnect()), G.value = new ResizeObserver(t), oe.value = _.value.parentNode, G.value.observe(oe.value);
|
|
228
258
|
}
|
|
229
259
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
}),
|
|
233
|
-
|
|
260
|
+
ft(() => {
|
|
261
|
+
G.value && (oe.value && G.value.unobserve(oe.value), G.value.disconnect());
|
|
262
|
+
}), vl(() => {
|
|
263
|
+
Re();
|
|
234
264
|
});
|
|
235
|
-
const
|
|
265
|
+
const P = f(() => Math.max(...A.value.flatMap((t) => (t.values || []).length))), ce = d(e.value.style.layout.width), de = d(e.value.style.layout.height), D = f(() => ({
|
|
236
266
|
width: Math.max(10, ce.value),
|
|
237
267
|
height: Math.max(10, de.value)
|
|
238
|
-
})), he = d(0),
|
|
268
|
+
})), he = d(0), Ht = Te((t) => {
|
|
239
269
|
he.value = t;
|
|
240
270
|
}, 100);
|
|
241
|
-
|
|
242
|
-
const se = d(0),
|
|
271
|
+
Ue({ elementRef: ze, callback: Ht, attr: "height" });
|
|
272
|
+
const se = d(0), Pt = Te((t) => {
|
|
243
273
|
se.value = t;
|
|
244
274
|
}, 100);
|
|
245
|
-
|
|
246
|
-
const me = d(0),
|
|
275
|
+
Ue({ elementRef: Je, callback: Pt, attr: "width" });
|
|
276
|
+
const me = d(0), Xt = Te((t) => {
|
|
247
277
|
me.value = t;
|
|
248
278
|
}, 100);
|
|
249
|
-
|
|
279
|
+
Ue({ elementRef: Fe, callback: Xt, attr: "height" }), ft(() => {
|
|
250
280
|
he.value = 0, se.value = 0, me.value = 0;
|
|
251
281
|
});
|
|
252
|
-
const r =
|
|
282
|
+
const r = f(() => Math.min(D.value.height, D.value.width) / 1e3 * e.value.style.layout.cells.spacing), l = f(() => {
|
|
253
283
|
let t = 0;
|
|
254
284
|
e.value.style.legend.show && (t = e.value.style.legend.width);
|
|
255
|
-
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 =
|
|
256
|
-
x: r.value *
|
|
285
|
+
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 = D.value.height - s.top - s.bottom - he.value - a, c = D.value.width / 60, k = {
|
|
286
|
+
x: r.value * P.value,
|
|
257
287
|
y: r.value * ((A.value || []).length + 1)
|
|
258
|
-
},
|
|
259
|
-
width: Math.max(3,
|
|
288
|
+
}, X = D.value.width - s.left - s.right - k.x - c * 2 - 2 - t - se.value, h = v - c - k.y - me.value - o - e.value.style.layout.cells.columnTotal.value.offsetY, T = {
|
|
289
|
+
width: Math.max(3, X / P.value),
|
|
260
290
|
height: Math.max(3, h / (A.value.length ?? 1))
|
|
261
291
|
};
|
|
262
292
|
return {
|
|
@@ -266,113 +296,113 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
266
296
|
height: h,
|
|
267
297
|
left: s.left + se.value + c / 2,
|
|
268
298
|
right: s.right - t,
|
|
269
|
-
bottom:
|
|
270
|
-
width:
|
|
299
|
+
bottom: D.value.height - s.bottom - me.value,
|
|
300
|
+
width: X,
|
|
271
301
|
cellSize: T
|
|
272
302
|
};
|
|
273
|
-
}), W =
|
|
303
|
+
}), W = f(() => Math.max(...A.value.flatMap((t) => t.values))), ye = f(() => Math.min(...A.value.flatMap((t) => t.values))), ee = f(() => {
|
|
274
304
|
const t = A.value.flatMap((a) => a.values);
|
|
275
305
|
return t.reduce((a, o) => a + o, 0) / t.length;
|
|
276
|
-
}),
|
|
306
|
+
}), It = f(() => Ct({
|
|
277
307
|
values: e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : A.value.map((t) => t.name),
|
|
278
308
|
maxDatapoints: A.value.length,
|
|
279
309
|
formatter: e.value.style.layout.dataLabels.yAxis.datetimeFormatter,
|
|
280
310
|
start: 0,
|
|
281
311
|
end: A.value.length
|
|
282
|
-
})),
|
|
312
|
+
})), Vt = f(() => Ct({
|
|
283
313
|
values: e.value.style.layout.dataLabels.xAxis.values,
|
|
284
|
-
maxDatapoints:
|
|
314
|
+
maxDatapoints: P.value,
|
|
285
315
|
formatter: e.value.style.layout.dataLabels.xAxis.datetimeFormatter,
|
|
286
316
|
start: 0,
|
|
287
|
-
end:
|
|
288
|
-
})),
|
|
289
|
-
const t =
|
|
290
|
-
for (let h = 0; h <
|
|
317
|
+
end: P.value
|
|
318
|
+
})), p = f(() => {
|
|
319
|
+
const t = It.value.map((h) => h.text), s = Vt.value.map((h) => h.text), a = A.value.map((h) => h.values.reduce((T, Pe) => T + Pe, 0)), o = Math.max(...a), v = Math.min(...a), c = [];
|
|
320
|
+
for (let h = 0; h < P.value; h += 1)
|
|
291
321
|
c.push(A.value.map((T) => T.values[h] || 0).reduce((T, Pe) => T + Pe, 0));
|
|
292
|
-
const
|
|
322
|
+
const k = Math.max(...c), X = Math.min(...c);
|
|
293
323
|
return {
|
|
294
324
|
yTotals: a.map((h) => {
|
|
295
325
|
const T = isNaN(h / o) ? 0 : h / o;
|
|
296
326
|
return {
|
|
297
327
|
total: h,
|
|
298
328
|
proportion: T,
|
|
299
|
-
color:
|
|
329
|
+
color: be(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, v, o, h)
|
|
300
330
|
};
|
|
301
331
|
}),
|
|
302
332
|
xTotals: c.map((h) => {
|
|
303
|
-
const T = isNaN(h /
|
|
333
|
+
const T = isNaN(h / k) ? 0 : h / k;
|
|
304
334
|
return {
|
|
305
335
|
total: h,
|
|
306
336
|
proportion: T,
|
|
307
|
-
color:
|
|
337
|
+
color: be(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, X, k, h)
|
|
308
338
|
};
|
|
309
339
|
}),
|
|
310
340
|
yLabels: t,
|
|
311
|
-
xLabels: s.slice(0,
|
|
341
|
+
xLabels: s.slice(0, P.value)
|
|
312
342
|
};
|
|
313
|
-
}),
|
|
314
|
-
|
|
343
|
+
}), te = f(() => (A.value.forEach((t, s) => {
|
|
344
|
+
bl({
|
|
315
345
|
datasetObject: t,
|
|
316
346
|
requiredAttributes: ["values"]
|
|
317
347
|
}).forEach((a) => {
|
|
318
|
-
|
|
348
|
+
xt({
|
|
319
349
|
componentName: "VueUiHeatmap",
|
|
320
350
|
type: "datasetSerieAttribute",
|
|
321
351
|
property: "values",
|
|
322
352
|
index: s,
|
|
323
|
-
debug:
|
|
353
|
+
debug: st.value
|
|
324
354
|
});
|
|
325
355
|
});
|
|
326
356
|
}), A.value.map((t, s) => ({
|
|
327
357
|
...t,
|
|
328
|
-
temperatures: (t.values || []).map((a, o) => a >=
|
|
358
|
+
temperatures: (t.values || []).map((a, o) => a >= ee.value ? {
|
|
329
359
|
side: "up",
|
|
330
|
-
color:
|
|
331
|
-
ratio: Math.abs(Math.abs(a -
|
|
360
|
+
color: be(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ye.value, W.value, a),
|
|
361
|
+
ratio: Math.abs(Math.abs(a - ee.value) / Math.abs(W.value - ee.value)) > 1 ? 1 : Math.abs(Math.abs(a - ee.value) / Math.abs(W.value - ee.value)),
|
|
332
362
|
value: a,
|
|
333
|
-
yAxisName:
|
|
334
|
-
xAxisName:
|
|
363
|
+
yAxisName: p.value.yLabels[s],
|
|
364
|
+
xAxisName: p.value.xLabels[o],
|
|
335
365
|
id: `vue-data-ui-heatmap-cell-${Ie()}`
|
|
336
366
|
} : {
|
|
337
367
|
side: "down",
|
|
338
|
-
ratio: Math.abs(1 - Math.abs(a) / Math.abs(
|
|
339
|
-
color:
|
|
368
|
+
ratio: Math.abs(1 - Math.abs(a) / Math.abs(ee.value)) > 1 ? 1 : Math.abs(1 - Math.abs(a) / Math.abs(ee.value)),
|
|
369
|
+
color: be(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ye.value, W.value, a),
|
|
340
370
|
value: a,
|
|
341
|
-
yAxisName:
|
|
342
|
-
xAxisName:
|
|
371
|
+
yAxisName: p.value.yLabels[s],
|
|
372
|
+
xAxisName: p.value.xLabels[o],
|
|
343
373
|
id: `vue-data-ui-heatmap-cell-${Ie()}`
|
|
344
374
|
})
|
|
345
|
-
})))),
|
|
346
|
-
function
|
|
347
|
-
|
|
375
|
+
})))), ut = f(() => A.value.length), nt = gt(Array(ut.value * P.value || 1).fill(!1)), Ut = f(() => nt.some((t) => t));
|
|
376
|
+
function Yt(t, s) {
|
|
377
|
+
nt[t] = s;
|
|
348
378
|
}
|
|
349
|
-
const
|
|
350
|
-
function
|
|
351
|
-
|
|
379
|
+
const it = gt(Array(ut.value * P.value || 1).fill(!1)), jt = f(() => it.some((t) => t));
|
|
380
|
+
function Gt(t, s) {
|
|
381
|
+
it[t] = s;
|
|
352
382
|
}
|
|
353
|
-
const
|
|
354
|
-
function
|
|
383
|
+
const M = d(null), xe = d(null);
|
|
384
|
+
function Wt(t, s, a, o) {
|
|
355
385
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: s }), re.value = { x: a, y: o };
|
|
356
|
-
const { value: v, yAxisName: c, xAxisName:
|
|
357
|
-
|
|
386
|
+
const { value: v, yAxisName: c, xAxisName: k, id: X } = t;
|
|
387
|
+
Ye.value = X, M.value = v, xe.value = {
|
|
358
388
|
datapoint: t,
|
|
359
389
|
seriesIndex: s,
|
|
360
|
-
series:
|
|
390
|
+
series: te.value,
|
|
361
391
|
config: e.value
|
|
362
|
-
},
|
|
392
|
+
}, ae.value = !0;
|
|
363
393
|
let h = "";
|
|
364
394
|
const T = e.value.style.tooltip.customFormat;
|
|
365
|
-
|
|
395
|
+
Al(T) && kl(() => T({
|
|
366
396
|
datapoint: t,
|
|
367
397
|
seriesIndex: s,
|
|
368
|
-
series:
|
|
398
|
+
series: te.value,
|
|
369
399
|
config: e.value
|
|
370
|
-
})) ?
|
|
400
|
+
})) ? _e.value = T({
|
|
371
401
|
datapoint: t,
|
|
372
402
|
seriesIndex: s,
|
|
373
|
-
series:
|
|
403
|
+
series: te.value,
|
|
374
404
|
config: e.value
|
|
375
|
-
}) : (h += `<div>${c} ${
|
|
405
|
+
}) : (h += `<div>${c} ${k ? c ? ` - ${k}` : `${k}` : ""}</div>`, h += `<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:${be(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ye.value, W.value, v)}">⬤</span><span>${isNaN(v) ? "-" : q(
|
|
376
406
|
e.value.style.layout.cells.value.formatter,
|
|
377
407
|
v,
|
|
378
408
|
V({
|
|
@@ -382,79 +412,79 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
382
412
|
r: e.value.style.tooltip.roundingValue
|
|
383
413
|
}),
|
|
384
414
|
{ datapoint: t, seriesIndex: s }
|
|
385
|
-
)}</span></div>`,
|
|
415
|
+
)}</span></div>`, _e.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${h}</div>`);
|
|
386
416
|
}
|
|
387
|
-
function
|
|
388
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }),
|
|
417
|
+
function qt({ datapoint: t, seriesIndex: s }) {
|
|
418
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), ae.value = !1, Ye.value = void 0, M.value = null, re.value = null;
|
|
389
419
|
}
|
|
390
|
-
function
|
|
391
|
-
return
|
|
420
|
+
function Kt(t) {
|
|
421
|
+
return q(
|
|
392
422
|
e.value.style.layout.cells.value.formatter,
|
|
393
|
-
|
|
423
|
+
p.value.yTotals[t].total,
|
|
394
424
|
V({
|
|
395
425
|
p: e.value.style.layout.dataLabels.prefix,
|
|
396
|
-
v:
|
|
426
|
+
v: p.value.yTotals[t].total,
|
|
397
427
|
s: e.value.style.layout.dataLabels.suffix,
|
|
398
428
|
r: e.value.style.layout.cells.value.roundingValue
|
|
399
429
|
}),
|
|
400
|
-
{ datapoint:
|
|
430
|
+
{ datapoint: p.value.yTotals[t], rowIndex: t }
|
|
401
431
|
);
|
|
402
432
|
}
|
|
403
|
-
function
|
|
404
|
-
return
|
|
433
|
+
function Jt(t) {
|
|
434
|
+
return q(
|
|
405
435
|
e.value.style.layout.cells.value.formatter,
|
|
406
|
-
|
|
436
|
+
p.value.xTotals[t].total,
|
|
407
437
|
V({
|
|
408
438
|
p: e.value.style.layout.dataLabels.prefix,
|
|
409
|
-
v:
|
|
439
|
+
v: p.value.xTotals[t].total,
|
|
410
440
|
s: e.value.style.layout.dataLabels.suffix,
|
|
411
441
|
r: e.value.style.layout.cells.value.roundingValue
|
|
412
442
|
}),
|
|
413
|
-
{ datapoint:
|
|
443
|
+
{ datapoint: p.value.xTotals[t], colIndex: t }
|
|
414
444
|
);
|
|
415
445
|
}
|
|
416
|
-
|
|
446
|
+
f(() => {
|
|
417
447
|
const t = A.value.map((a) => ({
|
|
418
448
|
name: a.name
|
|
419
449
|
})), s = A.value.map((a) => a.values);
|
|
420
450
|
return { head: t, body: s };
|
|
421
451
|
});
|
|
422
|
-
function
|
|
452
|
+
function Ee(t = null) {
|
|
423
453
|
Se(() => {
|
|
424
|
-
const s = ["", ...A.value.map((c,
|
|
425
|
-
for (let c = 0; c <
|
|
426
|
-
const
|
|
427
|
-
for (let
|
|
428
|
-
|
|
429
|
-
a.push(
|
|
454
|
+
const s = ["", ...A.value.map((c, k) => c.name)], a = [];
|
|
455
|
+
for (let c = 0; c < p.value.xLabels.length; c += 1) {
|
|
456
|
+
const k = [p.value.xLabels[c]];
|
|
457
|
+
for (let X = 0; X < A.value.length; X += 1)
|
|
458
|
+
k.push([A.value[X].values[c]]);
|
|
459
|
+
a.push(k);
|
|
430
460
|
}
|
|
431
|
-
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(a), v =
|
|
432
|
-
t ? t(v) :
|
|
461
|
+
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(a), v = xl(o);
|
|
462
|
+
t ? t(v) : Cl({ csvContent: v, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
433
463
|
});
|
|
434
464
|
}
|
|
435
|
-
const
|
|
436
|
-
function
|
|
437
|
-
|
|
465
|
+
const le = d(!1);
|
|
466
|
+
function rt(t) {
|
|
467
|
+
le.value = t, je.value += 1;
|
|
438
468
|
}
|
|
439
|
-
function
|
|
440
|
-
|
|
469
|
+
function vt() {
|
|
470
|
+
B.value.showTable = !B.value.showTable;
|
|
441
471
|
}
|
|
442
|
-
function
|
|
443
|
-
|
|
472
|
+
function ct() {
|
|
473
|
+
B.value.showTooltip = !B.value.showTooltip;
|
|
444
474
|
}
|
|
445
|
-
const
|
|
446
|
-
function
|
|
447
|
-
|
|
475
|
+
const Ce = d(!1);
|
|
476
|
+
function Ne() {
|
|
477
|
+
Ce.value = !Ce.value;
|
|
448
478
|
}
|
|
449
|
-
function
|
|
450
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: s }),
|
|
479
|
+
function Qt(t, s) {
|
|
480
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: s }), I("selectDatapoint", t);
|
|
451
481
|
}
|
|
452
|
-
function
|
|
453
|
-
return
|
|
482
|
+
function Zt() {
|
|
483
|
+
return te.value;
|
|
454
484
|
}
|
|
455
|
-
async function
|
|
456
|
-
if (!
|
|
457
|
-
const { width: s, height: a } =
|
|
485
|
+
async function el({ scale: t = 2 } = {}) {
|
|
486
|
+
if (!_.value) return;
|
|
487
|
+
const { width: s, height: a } = _.value.getBoundingClientRect(), o = s / a, { imageUri: v, base64: c } = await Ol({ domElement: _.value, base64: !0, img: !0, scale: t });
|
|
458
488
|
return {
|
|
459
489
|
imageUri: v,
|
|
460
490
|
base64: c,
|
|
@@ -464,14 +494,14 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
464
494
|
aspectRatio: o
|
|
465
495
|
};
|
|
466
496
|
}
|
|
467
|
-
const
|
|
497
|
+
const dt = f(() => ({
|
|
468
498
|
start: 0,
|
|
469
|
-
end:
|
|
470
|
-
})),
|
|
471
|
-
|
|
472
|
-
timeLabelsEls:
|
|
473
|
-
timeLabels:
|
|
474
|
-
slicer:
|
|
499
|
+
end: P.value
|
|
500
|
+
})), ht = f(() => p.value.xLabels);
|
|
501
|
+
At({
|
|
502
|
+
timeLabelsEls: ze,
|
|
503
|
+
timeLabels: ht,
|
|
504
|
+
slicer: dt,
|
|
475
505
|
configRef: e,
|
|
476
506
|
rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
|
|
477
507
|
autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
|
|
@@ -480,10 +510,10 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
480
510
|
rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
481
511
|
width: ce,
|
|
482
512
|
height: de
|
|
483
|
-
}),
|
|
484
|
-
timeLabelsEls:
|
|
485
|
-
timeLabels:
|
|
486
|
-
slicer:
|
|
513
|
+
}), At({
|
|
514
|
+
timeLabelsEls: Fe,
|
|
515
|
+
timeLabels: ht,
|
|
516
|
+
slicer: dt,
|
|
487
517
|
configRef: e,
|
|
488
518
|
rotationPath: ["style", "layout", "cells", "columnTotal", "value", "rotation"],
|
|
489
519
|
autoRotatePath: ["style", "layout", "cells", "columnTotal", "value", "autoRotate", "enable"],
|
|
@@ -493,18 +523,18 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
493
523
|
width: ce,
|
|
494
524
|
height: de
|
|
495
525
|
});
|
|
496
|
-
const
|
|
497
|
-
const t = e.value.table.useDialog && !e.value.table.show, s =
|
|
526
|
+
const Ae = f(() => {
|
|
527
|
+
const t = e.value.table.useDialog && !e.value.table.show, s = B.value.showTable;
|
|
498
528
|
return {
|
|
499
|
-
component: t ?
|
|
529
|
+
component: t ? j : Rl,
|
|
500
530
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
501
531
|
props: t ? {
|
|
502
532
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
503
533
|
color: e.value.table.th.color,
|
|
504
534
|
headerColor: e.value.table.th.color,
|
|
505
535
|
headerBg: e.value.table.th.backgroundColor,
|
|
506
|
-
isFullscreen:
|
|
507
|
-
fullscreenParent:
|
|
536
|
+
isFullscreen: le.value,
|
|
537
|
+
fullscreenParent: _.value,
|
|
508
538
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
509
539
|
} : {
|
|
510
540
|
hideDetails: !0,
|
|
@@ -523,88 +553,88 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
523
553
|
}
|
|
524
554
|
};
|
|
525
555
|
});
|
|
526
|
-
|
|
556
|
+
ke(() => B.value.showTable, async (t) => {
|
|
527
557
|
e.value.table.show || (t && e.value.table.useDialog && ve.value ? (await Se(), ve.value.open()) : "close" in ve.value && ve.value.close());
|
|
528
558
|
});
|
|
529
|
-
const { isResponsive:
|
|
559
|
+
const { isResponsive: tl } = Fl(Ge, Nt);
|
|
530
560
|
function He() {
|
|
531
|
-
|
|
561
|
+
B.value.showTable = !1, $e.value && $e.value.setTableIconState(!1);
|
|
532
562
|
}
|
|
533
|
-
const
|
|
534
|
-
svg:
|
|
535
|
-
title:
|
|
536
|
-
backgroundColor:
|
|
563
|
+
const ll = f(() => e.value.style.backgroundColor), al = f(() => e.value.style.title), { exportSvg: ol, getSvg: sl } = $l({
|
|
564
|
+
svg: Oe,
|
|
565
|
+
title: al,
|
|
566
|
+
backgroundColor: ll
|
|
537
567
|
});
|
|
538
|
-
async function
|
|
568
|
+
async function yt({ isCb: t }) {
|
|
539
569
|
if (t) {
|
|
540
|
-
const { blob: s, url: a, text: o, dataUrl: v } = await
|
|
570
|
+
const { blob: s, url: a, text: o, dataUrl: v } = await sl();
|
|
541
571
|
e.value.userOptions.callbacks.svg({ blob: s, url: a, text: o, dataUrl: v });
|
|
542
572
|
} else
|
|
543
|
-
|
|
573
|
+
ol();
|
|
544
574
|
}
|
|
545
|
-
return
|
|
546
|
-
getData:
|
|
547
|
-
getImage:
|
|
548
|
-
generatePdf:
|
|
549
|
-
generateCsv:
|
|
550
|
-
generateImage:
|
|
551
|
-
generateSvg:
|
|
552
|
-
toggleTable:
|
|
553
|
-
toggleTooltip:
|
|
554
|
-
toggleAnnotator:
|
|
555
|
-
toggleFullscreen:
|
|
575
|
+
return O({
|
|
576
|
+
getData: Zt,
|
|
577
|
+
getImage: el,
|
|
578
|
+
generatePdf: at,
|
|
579
|
+
generateCsv: Ee,
|
|
580
|
+
generateImage: ot,
|
|
581
|
+
generateSvg: yt,
|
|
582
|
+
toggleTable: vt,
|
|
583
|
+
toggleTooltip: ct,
|
|
584
|
+
toggleAnnotator: Ne,
|
|
585
|
+
toggleFullscreen: rt
|
|
556
586
|
}), (t, s) => (u(), i("div", {
|
|
557
587
|
ref_key: "heatmapChart",
|
|
558
|
-
ref:
|
|
559
|
-
class: fe(`vue-data-ui-component vue-ui-heatmap ${
|
|
560
|
-
style:
|
|
561
|
-
id: `heatmap__${
|
|
562
|
-
onMouseenter: s[1] || (s[1] = () =>
|
|
563
|
-
onMouseleave: s[2] || (s[2] = () =>
|
|
588
|
+
ref: _,
|
|
589
|
+
class: fe(`vue-data-ui-component vue-ui-heatmap ${le.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
590
|
+
style: w(`font-family:${e.value.style.fontFamily};width:100%;${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.backgroundColor}`),
|
|
591
|
+
id: `heatmap__${ie.value}`,
|
|
592
|
+
onMouseenter: s[1] || (s[1] = () => et(!0)),
|
|
593
|
+
onMouseleave: s[2] || (s[2] = () => et(!1))
|
|
564
594
|
}, [
|
|
565
|
-
e.value.userOptions.buttons.annotator ? (u(), ge(n(
|
|
595
|
+
e.value.userOptions.buttons.annotator ? (u(), ge(n(m), {
|
|
566
596
|
key: 0,
|
|
567
|
-
svgRef: n(
|
|
597
|
+
svgRef: n(Oe),
|
|
568
598
|
backgroundColor: e.value.style.backgroundColor,
|
|
569
599
|
color: e.value.style.color,
|
|
570
|
-
active:
|
|
571
|
-
onClose:
|
|
600
|
+
active: Ce.value,
|
|
601
|
+
onClose: Ne
|
|
572
602
|
}, {
|
|
573
|
-
"annotator-action-close":
|
|
574
|
-
|
|
603
|
+
"annotator-action-close": C(() => [
|
|
604
|
+
x(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
575
605
|
]),
|
|
576
|
-
"annotator-action-color":
|
|
577
|
-
|
|
606
|
+
"annotator-action-color": C(({ color: a }) => [
|
|
607
|
+
x(t.$slots, "annotator-action-color", R(E({ color: a })), void 0, !0)
|
|
578
608
|
]),
|
|
579
|
-
"annotator-action-draw":
|
|
580
|
-
|
|
609
|
+
"annotator-action-draw": C(({ mode: a }) => [
|
|
610
|
+
x(t.$slots, "annotator-action-draw", R(E({ mode: a })), void 0, !0)
|
|
581
611
|
]),
|
|
582
|
-
"annotator-action-undo":
|
|
583
|
-
|
|
612
|
+
"annotator-action-undo": C(({ disabled: a }) => [
|
|
613
|
+
x(t.$slots, "annotator-action-undo", R(E({ disabled: a })), void 0, !0)
|
|
584
614
|
]),
|
|
585
|
-
"annotator-action-redo":
|
|
586
|
-
|
|
615
|
+
"annotator-action-redo": C(({ disabled: a }) => [
|
|
616
|
+
x(t.$slots, "annotator-action-redo", R(E({ disabled: a })), void 0, !0)
|
|
587
617
|
]),
|
|
588
|
-
"annotator-action-delete":
|
|
589
|
-
|
|
618
|
+
"annotator-action-delete": C(({ disabled: a }) => [
|
|
619
|
+
x(t.$slots, "annotator-action-delete", R(E({ disabled: a })), void 0, !0)
|
|
590
620
|
]),
|
|
591
621
|
_: 3
|
|
592
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
593
|
-
|
|
622
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
623
|
+
Et.value ? (u(), i("div", {
|
|
594
624
|
key: 1,
|
|
595
625
|
ref_key: "noTitle",
|
|
596
|
-
ref:
|
|
626
|
+
ref: Ke,
|
|
597
627
|
class: "vue-data-ui-no-title-space",
|
|
598
628
|
style: "height:36px; width: 100%;background:transparent"
|
|
599
|
-
}, null, 512)) :
|
|
629
|
+
}, null, 512)) : g("", !0),
|
|
600
630
|
e.value.style.title.text ? (u(), i("div", {
|
|
601
631
|
key: 2,
|
|
602
632
|
ref_key: "chartTitle",
|
|
603
|
-
ref:
|
|
633
|
+
ref: qe,
|
|
604
634
|
style: "width:100%;background:transparent"
|
|
605
635
|
}, [
|
|
606
|
-
(u(), ge(
|
|
607
|
-
key: `title_${
|
|
636
|
+
(u(), ge(Ml, {
|
|
637
|
+
key: `title_${We.value}`,
|
|
608
638
|
config: {
|
|
609
639
|
title: {
|
|
610
640
|
cy: "heatmap-div-title",
|
|
@@ -616,16 +646,16 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
616
646
|
}
|
|
617
647
|
}
|
|
618
648
|
}, null, 8, ["config"]))
|
|
619
|
-
], 512)) :
|
|
620
|
-
e.value.userOptions.show &&
|
|
649
|
+
], 512)) : g("", !0),
|
|
650
|
+
e.value.userOptions.show && ne.value && (n(Ze) || n(Be)) ? (u(), ge(n(Y), {
|
|
621
651
|
ref_key: "userOptionsRef",
|
|
622
652
|
ref: $e,
|
|
623
|
-
key: `user_options_${
|
|
653
|
+
key: `user_options_${je.value}`,
|
|
624
654
|
backgroundColor: e.value.style.backgroundColor,
|
|
625
655
|
color: e.value.style.color,
|
|
626
|
-
isImaging: n(
|
|
627
|
-
isPrinting: n(
|
|
628
|
-
uid:
|
|
656
|
+
isImaging: n(lt),
|
|
657
|
+
isPrinting: n(tt),
|
|
658
|
+
uid: ie.value,
|
|
629
659
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
630
660
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
631
661
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -633,92 +663,92 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
633
663
|
hasXls: e.value.userOptions.buttons.csv,
|
|
634
664
|
hasTable: e.value.userOptions.buttons.table,
|
|
635
665
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
636
|
-
isFullscreen:
|
|
637
|
-
isTooltip:
|
|
666
|
+
isFullscreen: le.value,
|
|
667
|
+
isTooltip: B.value.showTooltip,
|
|
638
668
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
639
|
-
chartElement:
|
|
669
|
+
chartElement: _.value,
|
|
640
670
|
position: e.value.userOptions.position,
|
|
641
671
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
642
|
-
isAnnotation:
|
|
672
|
+
isAnnotation: Ce.value,
|
|
643
673
|
callbacks: e.value.userOptions.callbacks,
|
|
644
674
|
printScale: e.value.userOptions.print.scale,
|
|
645
675
|
tableDialog: e.value.table.useDialog,
|
|
646
|
-
onToggleFullscreen:
|
|
647
|
-
onGeneratePdf: n(
|
|
648
|
-
onGenerateCsv:
|
|
649
|
-
onGenerateImage: n(
|
|
650
|
-
onGenerateSvg:
|
|
651
|
-
onToggleTable:
|
|
652
|
-
onToggleTooltip:
|
|
653
|
-
onToggleAnnotator:
|
|
654
|
-
style:
|
|
655
|
-
visibility: n(
|
|
676
|
+
onToggleFullscreen: rt,
|
|
677
|
+
onGeneratePdf: n(at),
|
|
678
|
+
onGenerateCsv: Ee,
|
|
679
|
+
onGenerateImage: n(ot),
|
|
680
|
+
onGenerateSvg: yt,
|
|
681
|
+
onToggleTable: vt,
|
|
682
|
+
onToggleTooltip: ct,
|
|
683
|
+
onToggleAnnotator: Ne,
|
|
684
|
+
style: w({
|
|
685
|
+
visibility: n(Ze) ? n(Be) ? "visible" : "hidden" : "visible"
|
|
656
686
|
})
|
|
657
|
-
},
|
|
687
|
+
}, bt({ _: 2 }, [
|
|
658
688
|
t.$slots.menuIcon ? {
|
|
659
689
|
name: "menuIcon",
|
|
660
|
-
fn:
|
|
661
|
-
|
|
690
|
+
fn: C(({ isOpen: a, color: o }) => [
|
|
691
|
+
x(t.$slots, "menuIcon", R(E({ isOpen: a, color: o })), void 0, !0)
|
|
662
692
|
]),
|
|
663
693
|
key: "0"
|
|
664
694
|
} : void 0,
|
|
665
695
|
t.$slots.optionTooltip ? {
|
|
666
696
|
name: "optionTooltip",
|
|
667
|
-
fn:
|
|
668
|
-
|
|
697
|
+
fn: C(() => [
|
|
698
|
+
x(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
669
699
|
]),
|
|
670
700
|
key: "1"
|
|
671
701
|
} : void 0,
|
|
672
702
|
t.$slots.optionPdf ? {
|
|
673
703
|
name: "optionPdf",
|
|
674
|
-
fn:
|
|
675
|
-
|
|
704
|
+
fn: C(() => [
|
|
705
|
+
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
676
706
|
]),
|
|
677
707
|
key: "2"
|
|
678
708
|
} : void 0,
|
|
679
709
|
t.$slots.optionCsv ? {
|
|
680
710
|
name: "optionCsv",
|
|
681
|
-
fn:
|
|
682
|
-
|
|
711
|
+
fn: C(() => [
|
|
712
|
+
x(t.$slots, "optionCsv", {}, void 0, !0)
|
|
683
713
|
]),
|
|
684
714
|
key: "3"
|
|
685
715
|
} : void 0,
|
|
686
716
|
t.$slots.optionImg ? {
|
|
687
717
|
name: "optionImg",
|
|
688
|
-
fn:
|
|
689
|
-
|
|
718
|
+
fn: C(() => [
|
|
719
|
+
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
690
720
|
]),
|
|
691
721
|
key: "4"
|
|
692
722
|
} : void 0,
|
|
693
723
|
t.$slots.optionSvg ? {
|
|
694
724
|
name: "optionSvg",
|
|
695
|
-
fn:
|
|
696
|
-
|
|
725
|
+
fn: C(() => [
|
|
726
|
+
x(t.$slots, "optionSvg", {}, void 0, !0)
|
|
697
727
|
]),
|
|
698
728
|
key: "5"
|
|
699
729
|
} : void 0,
|
|
700
730
|
t.$slots.optionTable ? {
|
|
701
731
|
name: "optionTable",
|
|
702
|
-
fn:
|
|
703
|
-
|
|
732
|
+
fn: C(() => [
|
|
733
|
+
x(t.$slots, "optionTable", {}, void 0, !0)
|
|
704
734
|
]),
|
|
705
735
|
key: "6"
|
|
706
736
|
} : void 0,
|
|
707
737
|
t.$slots.optionFullscreen ? {
|
|
708
738
|
name: "optionFullscreen",
|
|
709
|
-
fn:
|
|
710
|
-
|
|
739
|
+
fn: C(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
740
|
+
x(t.$slots, "optionFullscreen", R(E({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
711
741
|
]),
|
|
712
742
|
key: "7"
|
|
713
743
|
} : void 0,
|
|
714
744
|
t.$slots.optionAnnotator ? {
|
|
715
745
|
name: "optionAnnotator",
|
|
716
|
-
fn:
|
|
717
|
-
|
|
746
|
+
fn: C(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
747
|
+
x(t.$slots, "optionAnnotator", R(E({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
718
748
|
]),
|
|
719
749
|
key: "8"
|
|
720
750
|
} : void 0
|
|
721
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
751
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
722
752
|
b("div", {
|
|
723
753
|
class: fe({
|
|
724
754
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
@@ -727,17 +757,17 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
727
757
|
}, [
|
|
728
758
|
(u(), i("svg", {
|
|
729
759
|
ref_key: "svgRef",
|
|
730
|
-
ref:
|
|
731
|
-
xmlns: n(
|
|
732
|
-
class: fe({ "vue-data-ui-fullscreen--on":
|
|
733
|
-
viewBox: `0 0 ${
|
|
760
|
+
ref: Oe,
|
|
761
|
+
xmlns: n(pl),
|
|
762
|
+
class: fe({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value }),
|
|
763
|
+
viewBox: `0 0 ${D.value.width} ${D.value.height}`,
|
|
734
764
|
width: "100%",
|
|
735
|
-
style:
|
|
765
|
+
style: w(`overflow: visible; background:transparent;color:${e.value.style.color}`),
|
|
736
766
|
"aria-live": "polite",
|
|
737
767
|
role: "img",
|
|
738
768
|
preserveAspectRatio: "xMidYMid"
|
|
739
769
|
}, [
|
|
740
|
-
|
|
770
|
+
we(n(z)),
|
|
741
771
|
t.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
742
772
|
key: 0,
|
|
743
773
|
x: l.value.left,
|
|
@@ -748,38 +778,38 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
748
778
|
pointerEvents: "none"
|
|
749
779
|
}
|
|
750
780
|
}, [
|
|
751
|
-
|
|
752
|
-
], 8,
|
|
781
|
+
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
782
|
+
], 8, Xl)) : g("", !0),
|
|
753
783
|
e.value.style.layout.cells.columnTotal.color.show ? (u(), i("g", {
|
|
754
784
|
key: 1,
|
|
755
785
|
ref_key: "xAxisSumRects",
|
|
756
|
-
ref:
|
|
786
|
+
ref: Ot
|
|
757
787
|
}, [
|
|
758
|
-
(u(!0), i(S, null,
|
|
788
|
+
(u(!0), i(S, null, N(p.value.xTotals, (a, o) => (u(), i("rect", {
|
|
759
789
|
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
760
|
-
y: l.value.top - l.value.sumCellXHeight + r.value * (
|
|
790
|
+
y: l.value.top - l.value.sumCellXHeight + r.value * (D.value.height / D.value.width),
|
|
761
791
|
height: l.value.sumCellXHeight,
|
|
762
792
|
width: l.value.cellSize.width - r.value,
|
|
763
793
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
764
794
|
stroke: e.value.style.backgroundColor,
|
|
765
795
|
"stroke-width": r.value
|
|
766
|
-
}, null, 8,
|
|
767
|
-
(u(!0), i(S, null,
|
|
796
|
+
}, null, 8, Il))), 256)),
|
|
797
|
+
(u(!0), i(S, null, N(p.value.xTotals, (a, o) => (u(), i("rect", {
|
|
768
798
|
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
769
|
-
y: l.value.top - l.value.sumCellXHeight + r.value * (
|
|
799
|
+
y: l.value.top - l.value.sumCellXHeight + r.value * (D.value.height / D.value.width),
|
|
770
800
|
height: l.value.sumCellXHeight,
|
|
771
801
|
width: l.value.cellSize.width - r.value,
|
|
772
802
|
fill: a.color,
|
|
773
803
|
stroke: e.value.style.backgroundColor,
|
|
774
804
|
"stroke-width": r.value
|
|
775
|
-
}, null, 8,
|
|
776
|
-
], 512)) :
|
|
805
|
+
}, null, 8, Vl))), 256))
|
|
806
|
+
], 512)) : g("", !0),
|
|
777
807
|
b("g", {
|
|
778
808
|
ref_key: "datapoints",
|
|
779
|
-
ref:
|
|
809
|
+
ref: Ft
|
|
780
810
|
}, [
|
|
781
|
-
(u(!0), i(S, null,
|
|
782
|
-
(u(!0), i(S, null,
|
|
811
|
+
(u(!0), i(S, null, N(te.value, (a, o) => (u(), i(S, null, [
|
|
812
|
+
(u(!0), i(S, null, N(a.temperatures, (v, c) => (u(), i("g", null, [
|
|
783
813
|
b("rect", {
|
|
784
814
|
x: l.value.left + l.value.cellSize.width * c + r.value / 2 + l.value.sumCellXHeight,
|
|
785
815
|
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
@@ -788,7 +818,7 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
788
818
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
789
819
|
stroke: e.value.style.backgroundColor,
|
|
790
820
|
"stroke-width": r.value
|
|
791
|
-
}, null, 8,
|
|
821
|
+
}, null, 8, Ul),
|
|
792
822
|
b("rect", {
|
|
793
823
|
x: l.value.left + l.value.cellSize.width * c + r.value / 2 + l.value.sumCellXHeight,
|
|
794
824
|
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
@@ -797,11 +827,11 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
797
827
|
fill: v.color,
|
|
798
828
|
stroke: e.value.style.backgroundColor,
|
|
799
829
|
"stroke-width": r.value,
|
|
800
|
-
onMouseover: (
|
|
801
|
-
onMouseout: () =>
|
|
802
|
-
onClick: () =>
|
|
803
|
-
}, null, 40,
|
|
804
|
-
e.value.style.layout.cells.value.show ?
|
|
830
|
+
onMouseover: (k) => Wt(v, o, l.value.left + l.value.cellSize.width * c, l.value.top + l.value.cellSize.height * o),
|
|
831
|
+
onMouseout: () => qt({ datapoint: v, seriesIndex: o }),
|
|
832
|
+
onClick: () => Qt(v, o)
|
|
833
|
+
}, null, 40, Yl),
|
|
834
|
+
e.value.style.layout.cells.value.show ? pt((u(), i("text", {
|
|
805
835
|
key: 0,
|
|
806
836
|
"text-anchor": "middle",
|
|
807
837
|
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
@@ -811,7 +841,7 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
811
841
|
y: l.value.top + l.value.cellSize.height * o + l.value.cellSize.height / 2 + e.value.style.layout.cells.value.fontSize / 3,
|
|
812
842
|
style: { pointerEvents: "none", userSelect: "none" }
|
|
813
843
|
}, [
|
|
814
|
-
Xe($(n(
|
|
844
|
+
Xe($(n(q)(
|
|
815
845
|
e.value.style.layout.cells.value.formatter,
|
|
816
846
|
v.value,
|
|
817
847
|
n(V)({
|
|
@@ -822,28 +852,28 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
822
852
|
}),
|
|
823
853
|
{ datapoint: v }
|
|
824
854
|
)), 1)
|
|
825
|
-
], 8,
|
|
826
|
-
[n(
|
|
855
|
+
], 8, jl)), [
|
|
856
|
+
[n(Nl), {
|
|
827
857
|
cellWidth: l.value.cellSize.width - r.value,
|
|
828
858
|
cellHeight: l.value.cellSize.height - r.value,
|
|
829
859
|
maxFontSize: e.value.style.layout.cells.value.fontSize,
|
|
830
860
|
minFontSize: 10,
|
|
831
|
-
index: o *
|
|
832
|
-
reportHide:
|
|
833
|
-
reportRotation:
|
|
834
|
-
hideAll:
|
|
835
|
-
rotateAll:
|
|
861
|
+
index: o * P.value + c,
|
|
862
|
+
reportHide: Gt,
|
|
863
|
+
reportRotation: Yt,
|
|
864
|
+
hideAll: jt.value,
|
|
865
|
+
rotateAll: Ut.value
|
|
836
866
|
}]
|
|
837
|
-
]) :
|
|
867
|
+
]) : g("", !0)
|
|
838
868
|
]))), 256))
|
|
839
869
|
], 64))), 256))
|
|
840
870
|
], 512),
|
|
841
871
|
e.value.style.layout.cells.rowTotal.color.show ? (u(), i("g", {
|
|
842
872
|
key: 2,
|
|
843
873
|
ref_key: "yAxisSumRects",
|
|
844
|
-
ref:
|
|
874
|
+
ref: Bt
|
|
845
875
|
}, [
|
|
846
|
-
(u(!0), i(S, null,
|
|
876
|
+
(u(!0), i(S, null, N(te.value, (a, o) => (u(), i(S, null, [
|
|
847
877
|
b("rect", {
|
|
848
878
|
x: l.value.left,
|
|
849
879
|
y: l.value.top + l.value.cellSize.height * o,
|
|
@@ -852,24 +882,24 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
852
882
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
853
883
|
stroke: e.value.style.backgroundColor,
|
|
854
884
|
"stroke-width": r.value
|
|
855
|
-
}, null, 8,
|
|
885
|
+
}, null, 8, Gl),
|
|
856
886
|
b("rect", {
|
|
857
887
|
x: l.value.left,
|
|
858
888
|
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
859
889
|
width: l.value.sumCellXHeight,
|
|
860
890
|
height: l.value.cellSize.height - r.value,
|
|
861
|
-
fill:
|
|
891
|
+
fill: p.value.yTotals[o].color,
|
|
862
892
|
stroke: e.value.style.backgroundColor,
|
|
863
893
|
"stroke-width": r.value
|
|
864
|
-
}, null, 8,
|
|
894
|
+
}, null, 8, Wl)
|
|
865
895
|
], 64))), 256))
|
|
866
|
-
], 512)) :
|
|
896
|
+
], 512)) : g("", !0),
|
|
867
897
|
e.value.style.layout.dataLabels.yAxis.show ? (u(), i("g", {
|
|
868
898
|
key: 3,
|
|
869
899
|
ref_key: "yAxisLabels",
|
|
870
|
-
ref:
|
|
900
|
+
ref: Je
|
|
871
901
|
}, [
|
|
872
|
-
(u(!0), i(S, null,
|
|
902
|
+
(u(!0), i(S, null, N(te.value, (a, o) => (u(), i(S, null, [
|
|
873
903
|
b("text", {
|
|
874
904
|
class: "vue-ui-heatmap-row-name",
|
|
875
905
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -878,7 +908,7 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
878
908
|
y: l.value.top + l.value.cellSize.height * o + l.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),
|
|
879
909
|
"text-anchor": "end",
|
|
880
910
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
881
|
-
}, $(
|
|
911
|
+
}, $(p.value.yLabels[o]), 9, ql),
|
|
882
912
|
e.value.style.layout.cells.rowTotal.value.show ? (u(), i("text", {
|
|
883
913
|
key: 0,
|
|
884
914
|
class: "vue-ui-heatmap-row-total",
|
|
@@ -888,15 +918,15 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
888
918
|
y: l.value.top + l.value.cellSize.height * o + l.value.cellSize.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize + e.value.style.layout.dataLabels.yAxis.offsetY,
|
|
889
919
|
"text-anchor": "end",
|
|
890
920
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
891
|
-
}, $(
|
|
921
|
+
}, $(Kt(o)), 9, Kl)) : g("", !0)
|
|
892
922
|
], 64))), 256))
|
|
893
|
-
], 512)) :
|
|
923
|
+
], 512)) : g("", !0),
|
|
894
924
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), i("g", {
|
|
895
925
|
key: 4,
|
|
896
926
|
ref_key: "xAxisLabels",
|
|
897
|
-
ref:
|
|
927
|
+
ref: ze
|
|
898
928
|
}, [
|
|
899
|
-
(u(!0), i(S, null,
|
|
929
|
+
(u(!0), i(S, null, N(p.value.xLabels, (a, o) => (u(), i(S, null, [
|
|
900
930
|
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && o % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (u(), i("text", {
|
|
901
931
|
key: 0,
|
|
902
932
|
class: "vue-ui-heatmap-col-name",
|
|
@@ -904,25 +934,25 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
904
934
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
905
935
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
906
936
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
907
|
-
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width /
|
|
908
|
-
}, $(a), 9,
|
|
937
|
+
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 + l.value.sumCellXHeight}, ${l.value.topLabelsHeight}), rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
938
|
+
}, $(a), 9, Jl)) : g("", !0)
|
|
909
939
|
], 64))), 256))
|
|
910
|
-
], 512)) :
|
|
940
|
+
], 512)) : g("", !0),
|
|
911
941
|
e.value.style.layout.cells.columnTotal.value.show ? (u(), i("g", {
|
|
912
942
|
key: 5,
|
|
913
943
|
ref_key: "xAxisSums",
|
|
914
|
-
ref:
|
|
944
|
+
ref: Fe
|
|
915
945
|
}, [
|
|
916
|
-
(u(!0), i(S, null,
|
|
946
|
+
(u(!0), i(S, null, N(p.value.xLabels, (a, o) => (u(), i("text", {
|
|
917
947
|
class: "vue-ui-heatmap-col-total",
|
|
918
948
|
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
919
949
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
920
950
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
921
951
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
922
|
-
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width /
|
|
923
|
-
}, $(
|
|
924
|
-
], 512)) :
|
|
925
|
-
re.value ? (u(), i("g",
|
|
952
|
+
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})`
|
|
953
|
+
}, $(Jt(o)), 9, Ql))), 256))
|
|
954
|
+
], 512)) : g("", !0),
|
|
955
|
+
re.value ? (u(), i("g", Zl, [
|
|
926
956
|
b("rect", {
|
|
927
957
|
style: { "pointer-events": "none" },
|
|
928
958
|
x: re.value.x - e.value.style.layout.cells.selected.border / 2 + r.value + l.value.sumCellXHeight,
|
|
@@ -933,116 +963,116 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
933
963
|
stroke: e.value.style.layout.cells.selected.color,
|
|
934
964
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
935
965
|
rx: 1
|
|
936
|
-
}, null, 8,
|
|
937
|
-
])) :
|
|
938
|
-
|
|
939
|
-
], 14,
|
|
966
|
+
}, null, 8, ea)
|
|
967
|
+
])) : g("", !0),
|
|
968
|
+
x(t.$slots, "svg", { svg: D.value }, void 0, !0)
|
|
969
|
+
], 14, Pl)),
|
|
940
970
|
e.value.style.legend.show ? (u(), i("div", {
|
|
941
971
|
key: 0,
|
|
942
972
|
ref_key: "legendRight",
|
|
943
|
-
ref:
|
|
973
|
+
ref: Dt,
|
|
944
974
|
class: "vue-ui-heatmap-legend-right",
|
|
945
|
-
style:
|
|
975
|
+
style: w({
|
|
946
976
|
"--legend-width": e.value.style.legend.width + "px"
|
|
947
977
|
})
|
|
948
978
|
}, [
|
|
949
|
-
n(
|
|
979
|
+
n(pe) ? g("", !0) : (u(), i("div", {
|
|
950
980
|
key: 0,
|
|
951
981
|
class: "vue-ui-heatmap-legend-label-max",
|
|
952
|
-
style:
|
|
982
|
+
style: w({
|
|
953
983
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
954
984
|
color: e.value.style.legend.color
|
|
955
985
|
})
|
|
956
|
-
}, $(n(
|
|
986
|
+
}, $(n(q)(
|
|
957
987
|
e.value.style.layout.cells.value.formatter,
|
|
958
|
-
n(
|
|
988
|
+
n(K)(W.value),
|
|
959
989
|
n(V)({
|
|
960
990
|
p: e.value.style.layout.dataLabels.prefix,
|
|
961
|
-
v: n(
|
|
991
|
+
v: n(K)(W.value),
|
|
962
992
|
s: e.value.style.layout.dataLabels.suffix,
|
|
963
993
|
r: e.value.style.legend.roundingValue
|
|
964
994
|
})
|
|
965
995
|
)), 5)),
|
|
966
|
-
b("div",
|
|
996
|
+
b("div", ta, [
|
|
967
997
|
b("div", {
|
|
968
998
|
class: "vue-ui-heatmap-gauge",
|
|
969
|
-
style:
|
|
999
|
+
style: w({
|
|
970
1000
|
background: `linear-gradient(to bottom, ${e.value.style.layout.cells.colors.hot}, ${e.value.style.layout.cells.colors.cold})`
|
|
971
1001
|
})
|
|
972
1002
|
}, [
|
|
973
|
-
|
|
1003
|
+
pt(b("div", {
|
|
974
1004
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
975
|
-
"data-value": n(
|
|
1005
|
+
"data-value": n(q)(
|
|
976
1006
|
e.value.style.layout.cells.value.formatter,
|
|
977
|
-
n(
|
|
1007
|
+
n(K)(M.value),
|
|
978
1008
|
n(V)({
|
|
979
1009
|
p: e.value.style.layout.dataLabels.prefix,
|
|
980
|
-
v: n(
|
|
1010
|
+
v: n(K)(M.value),
|
|
981
1011
|
s: e.value.style.layout.dataLabels.suffix,
|
|
982
1012
|
r: e.value.style.legend.roundingValue
|
|
983
1013
|
})
|
|
984
1014
|
),
|
|
985
|
-
style:
|
|
1015
|
+
style: w({
|
|
986
1016
|
position: "absolute",
|
|
987
1017
|
width: "100%",
|
|
988
1018
|
height: "2px",
|
|
989
|
-
background: [void 0, null].includes(
|
|
990
|
-
top: `${[void 0, null].includes(
|
|
1019
|
+
background: [void 0, null].includes(M.value) ? "transparent" : n(Le)(xe.value.datapoint.color),
|
|
1020
|
+
top: `${[void 0, null].includes(M.value) ? 0 : (1 - M.value / W.value) * 100}%`,
|
|
991
1021
|
transition: "all 0.2s ease-in-out",
|
|
992
1022
|
"--background-color": e.value.style.backgroundColor,
|
|
993
1023
|
"--gauge-arrow-color": n(Le)(e.value.style.backgroundColor),
|
|
994
1024
|
"--gauge-arrow-text-color": n(Le)(e.value.style.backgroundColor),
|
|
995
|
-
"--gauge-arrow-value":
|
|
1025
|
+
"--gauge-arrow-value": M.value,
|
|
996
1026
|
"--gauge-arrow-font-size": e.value.style.legend.fontSize + "px"
|
|
997
1027
|
})
|
|
998
1028
|
}, [
|
|
999
|
-
b("div",
|
|
1029
|
+
b("div", aa, $(n(q)(
|
|
1000
1030
|
e.value.style.layout.cells.value.formatter,
|
|
1001
|
-
n(
|
|
1031
|
+
n(K)(M.value),
|
|
1002
1032
|
n(V)({
|
|
1003
1033
|
p: e.value.style.layout.dataLabels.prefix,
|
|
1004
|
-
v: n(
|
|
1034
|
+
v: n(K)(M.value),
|
|
1005
1035
|
s: e.value.style.layout.dataLabels.suffix,
|
|
1006
1036
|
r: e.value.style.legend.roundingValue
|
|
1007
1037
|
})
|
|
1008
1038
|
)), 1)
|
|
1009
|
-
], 12,
|
|
1010
|
-
[
|
|
1039
|
+
], 12, la), [
|
|
1040
|
+
[cl, ![void 0, null].includes(M.value)]
|
|
1011
1041
|
])
|
|
1012
1042
|
], 4)
|
|
1013
1043
|
]),
|
|
1014
|
-
n(
|
|
1044
|
+
n(pe) ? g("", !0) : (u(), i("div", {
|
|
1015
1045
|
key: 1,
|
|
1016
1046
|
class: "vue-ui-heatmap-legend-label-min",
|
|
1017
|
-
style:
|
|
1047
|
+
style: w({
|
|
1018
1048
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
1019
1049
|
color: e.value.style.legend.color
|
|
1020
1050
|
})
|
|
1021
|
-
}, $(n(
|
|
1051
|
+
}, $(n(q)(
|
|
1022
1052
|
e.value.style.layout.cells.value.formatter,
|
|
1023
|
-
n(
|
|
1053
|
+
n(K)(ye.value),
|
|
1024
1054
|
n(V)({
|
|
1025
1055
|
p: e.value.style.layout.dataLabels.prefix,
|
|
1026
|
-
v: n(
|
|
1056
|
+
v: n(K)(ye.value),
|
|
1027
1057
|
s: e.value.style.layout.dataLabels.suffix,
|
|
1028
1058
|
r: e.value.style.legend.roundingValue
|
|
1029
1059
|
})
|
|
1030
1060
|
)), 5))
|
|
1031
|
-
], 4)) :
|
|
1061
|
+
], 4)) : g("", !0)
|
|
1032
1062
|
], 2),
|
|
1033
|
-
t.$slots.watermark ? (u(), i("div",
|
|
1034
|
-
|
|
1035
|
-
])) :
|
|
1063
|
+
t.$slots.watermark ? (u(), i("div", oa, [
|
|
1064
|
+
x(t.$slots, "watermark", R(E({ isPrinting: n(tt) || n(lt) })), void 0, !0)
|
|
1065
|
+
])) : g("", !0),
|
|
1036
1066
|
t.$slots.source ? (u(), i("div", {
|
|
1037
1067
|
key: 5,
|
|
1038
1068
|
ref_key: "source",
|
|
1039
|
-
ref:
|
|
1069
|
+
ref: Qe,
|
|
1040
1070
|
dir: "auto"
|
|
1041
1071
|
}, [
|
|
1042
|
-
|
|
1043
|
-
], 512)) :
|
|
1044
|
-
|
|
1045
|
-
show:
|
|
1072
|
+
x(t.$slots, "source", {}, void 0, !0)
|
|
1073
|
+
], 512)) : g("", !0),
|
|
1074
|
+
we(n(U), {
|
|
1075
|
+
show: B.value.showTooltip && ae.value,
|
|
1046
1076
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1047
1077
|
color: e.value.style.tooltip.color,
|
|
1048
1078
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -1052,95 +1082,95 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
1052
1082
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
1053
1083
|
position: e.value.style.tooltip.position,
|
|
1054
1084
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1055
|
-
parent:
|
|
1056
|
-
content:
|
|
1057
|
-
isFullscreen:
|
|
1085
|
+
parent: _.value,
|
|
1086
|
+
content: _e.value,
|
|
1087
|
+
isFullscreen: le.value,
|
|
1058
1088
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1059
1089
|
smooth: e.value.style.tooltip.smooth,
|
|
1060
1090
|
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
1061
1091
|
smoothForce: e.value.style.tooltip.smoothForce,
|
|
1062
1092
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
1063
1093
|
}, {
|
|
1064
|
-
"tooltip-before":
|
|
1065
|
-
|
|
1094
|
+
"tooltip-before": C(() => [
|
|
1095
|
+
x(t.$slots, "tooltip-before", R(E({ ...xe.value })), void 0, !0)
|
|
1066
1096
|
]),
|
|
1067
|
-
"tooltip-after":
|
|
1068
|
-
|
|
1097
|
+
"tooltip-after": C(() => [
|
|
1098
|
+
x(t.$slots, "tooltip-after", R(E({ ...xe.value })), void 0, !0)
|
|
1069
1099
|
]),
|
|
1070
1100
|
_: 3
|
|
1071
1101
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1072
|
-
|
|
1102
|
+
ne.value && e.value.userOptions.buttons.table ? (u(), ge(dl(Ae.value.component), hl({ key: 6 }, Ae.value.props, {
|
|
1073
1103
|
ref_key: "tableUnit",
|
|
1074
1104
|
ref: ve,
|
|
1075
1105
|
onClose: He
|
|
1076
|
-
}),
|
|
1077
|
-
content:
|
|
1106
|
+
}), bt({
|
|
1107
|
+
content: C(() => [
|
|
1078
1108
|
b("div", {
|
|
1079
1109
|
ref_key: "tableContainer",
|
|
1080
|
-
ref:
|
|
1110
|
+
ref: Ge,
|
|
1081
1111
|
class: "vue-ui-heatmap-table atom-data-table",
|
|
1082
|
-
style:
|
|
1112
|
+
style: w(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1083
1113
|
}, [
|
|
1084
1114
|
b("div", {
|
|
1085
|
-
style:
|
|
1086
|
-
class: fe({ "vue-ui-responsive": n(
|
|
1115
|
+
style: w(`width:100%;overflow-x:auto;position:relative;${e.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1116
|
+
class: fe({ "vue-ui-responsive": n(tl) })
|
|
1087
1117
|
}, [
|
|
1088
|
-
e.value.table.useDialog ?
|
|
1118
|
+
e.value.table.useDialog ? g("", !0) : (u(), i("div", {
|
|
1089
1119
|
key: 0,
|
|
1090
1120
|
role: "button",
|
|
1091
1121
|
tabindex: "0",
|
|
1092
|
-
style:
|
|
1122
|
+
style: w(`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};`),
|
|
1093
1123
|
onClick: He,
|
|
1094
|
-
onKeypress:
|
|
1124
|
+
onKeypress: yl(He, ["enter"])
|
|
1095
1125
|
}, [
|
|
1096
|
-
|
|
1126
|
+
we(n(J), {
|
|
1097
1127
|
name: "close",
|
|
1098
1128
|
stroke: e.value.table.th.color,
|
|
1099
1129
|
"stroke-width": 2
|
|
1100
1130
|
}, null, 8, ["stroke"])
|
|
1101
1131
|
], 36)),
|
|
1102
|
-
b("table",
|
|
1103
|
-
e.value.table.useDialog ?
|
|
1132
|
+
b("table", sa, [
|
|
1133
|
+
e.value.table.useDialog ? g("", !0) : (u(), i("caption", {
|
|
1104
1134
|
key: 0,
|
|
1105
|
-
style:
|
|
1135
|
+
style: w(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1106
1136
|
}, [
|
|
1107
1137
|
Xe($(e.value.style.title.text) + " ", 1),
|
|
1108
|
-
e.value.style.title.subtitle.text ? (u(), i("span",
|
|
1138
|
+
e.value.style.title.subtitle.text ? (u(), i("span", ua, $(e.value.style.title.subtitle.text), 1)) : g("", !0)
|
|
1109
1139
|
], 4)),
|
|
1110
1140
|
b("thead", null, [
|
|
1111
1141
|
b("tr", {
|
|
1112
1142
|
role: "row",
|
|
1113
|
-
style:
|
|
1143
|
+
style: w(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1114
1144
|
}, [
|
|
1115
1145
|
b("th", {
|
|
1116
|
-
style:
|
|
1146
|
+
style: w(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1117
1147
|
}, null, 4),
|
|
1118
|
-
(u(!0), i(S, null,
|
|
1148
|
+
(u(!0), i(S, null, N(y.dataset, (a, o) => (u(), i("th", {
|
|
1119
1149
|
align: "right",
|
|
1120
|
-
style:
|
|
1150
|
+
style: w(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1121
1151
|
}, $(a.name), 5))), 256))
|
|
1122
1152
|
], 4)
|
|
1123
1153
|
]),
|
|
1124
1154
|
b("tbody", null, [
|
|
1125
|
-
(u(!0), i(S, null,
|
|
1155
|
+
(u(!0), i(S, null, N(p.value.xLabels, (a, o) => (u(), i("tr", {
|
|
1126
1156
|
role: "row",
|
|
1127
1157
|
class: fe({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
|
|
1128
|
-
style:
|
|
1158
|
+
style: w(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1129
1159
|
}, [
|
|
1130
1160
|
b("td", {
|
|
1131
1161
|
"data-cell": e.value.table.colNames.xAxis,
|
|
1132
1162
|
class: "vue-ui-data-table__tbody__td",
|
|
1133
|
-
style:
|
|
1163
|
+
style: w(`outline:${e.value.table.td.outline}`)
|
|
1134
1164
|
}, [
|
|
1135
|
-
b("div",
|
|
1136
|
-
], 12,
|
|
1137
|
-
(u(!0), i(S, null,
|
|
1165
|
+
b("div", ia, $(a), 1)
|
|
1166
|
+
], 12, na),
|
|
1167
|
+
(u(!0), i(S, null, N(y.dataset, (v, c) => (u(), i("td", {
|
|
1138
1168
|
class: "vue-ui-data-table__tbody__td",
|
|
1139
1169
|
"data-cell": y.dataset[c].name,
|
|
1140
|
-
style:
|
|
1170
|
+
style: w(`outline:${e.value.table.td.outline}`)
|
|
1141
1171
|
}, [
|
|
1142
|
-
b("div",
|
|
1143
|
-
], 12,
|
|
1172
|
+
b("div", va, $(isNaN(v.values[o]) ? "-" : n(V)({ 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)
|
|
1173
|
+
], 12, ra))), 256))
|
|
1144
1174
|
], 6))), 256))
|
|
1145
1175
|
])
|
|
1146
1176
|
])
|
|
@@ -1151,32 +1181,37 @@ const zl = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
1151
1181
|
}, [
|
|
1152
1182
|
e.value.table.useDialog ? {
|
|
1153
1183
|
name: "title",
|
|
1154
|
-
fn:
|
|
1155
|
-
Xe($(
|
|
1184
|
+
fn: C(() => [
|
|
1185
|
+
Xe($(Ae.value.title), 1)
|
|
1156
1186
|
]),
|
|
1157
1187
|
key: "0"
|
|
1158
1188
|
} : void 0,
|
|
1159
1189
|
e.value.table.useDialog ? {
|
|
1160
1190
|
name: "actions",
|
|
1161
|
-
fn:
|
|
1191
|
+
fn: C(() => [
|
|
1162
1192
|
b("button", {
|
|
1163
1193
|
tabindex: "0",
|
|
1164
1194
|
class: "vue-ui-user-options-button",
|
|
1165
|
-
onClick: s[0] || (s[0] = (a) =>
|
|
1195
|
+
onClick: s[0] || (s[0] = (a) => Ee(e.value.userOptions.callbacks.csv))
|
|
1166
1196
|
}, [
|
|
1167
|
-
|
|
1197
|
+
we(n(J), {
|
|
1168
1198
|
name: "excel",
|
|
1169
|
-
stroke:
|
|
1199
|
+
stroke: Ae.value.props.color
|
|
1170
1200
|
}, null, 8, ["stroke"])
|
|
1171
1201
|
])
|
|
1172
1202
|
]),
|
|
1173
1203
|
key: "1"
|
|
1174
1204
|
} : void 0
|
|
1175
|
-
]), 1040)) :
|
|
1176
|
-
n(
|
|
1177
|
-
], 46,
|
|
1205
|
+
]), 1040)) : g("", !0),
|
|
1206
|
+
n(pe) ? (u(), ge(_l, { key: 7 })) : g("", !0)
|
|
1207
|
+
], 46, Hl));
|
|
1178
1208
|
}
|
|
1179
|
-
},
|
|
1209
|
+
}, da = /* @__PURE__ */ El(ca, [["__scopeId", "data-v-dd5b744b"]]), Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1210
|
+
__proto__: null,
|
|
1211
|
+
default: da
|
|
1212
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1180
1213
|
export {
|
|
1181
|
-
|
|
1214
|
+
za as a,
|
|
1215
|
+
Fa as b,
|
|
1216
|
+
da as v
|
|
1182
1217
|
};
|