vue-data-ui 3.10.0 → 3.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-O2XSymlZ.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-B9bGT7HU.js → BaseIcon-4uOct8re.js} +18 -18
- package/dist/{BaseZoomControls-B4rpv4Kk.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-VKEPgk58.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-DEwh__D8.js → DataTable-DyoDzNNY.js} +2 -2
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxbOhI52.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-C-JOGZBL.js → PackageVersion-CQxJyGQr.js} +1 -1
- package/dist/{PenAndPaper-CulSakut.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-EQH4YKwe.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-Ddfxn6es.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B5L2jweB.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-5pXc4J-c.js → UserOptions-CX7Xsusk.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-BCt4DMkT.js → useNestedProp-Ckf_2P_V.js} +1 -1
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-CwfD22m4.js → vue-data-ui-GAruO_UT.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DAr11NEe.js → vue-ui-3d-bar-t_E9saCp.js} +222 -218
- package/dist/{vue-ui-accordion-CAXPDm31.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-KApqwR11.js → vue-ui-age-pyramid-DKlTGZ6m.js} +177 -173
- package/dist/{vue-ui-annotator-D-x-F49X.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-D3ZOexko.js → vue-ui-bullet-C4FXVy8_.js} +135 -131
- package/dist/{vue-ui-bump-BJUb7fNz.js → vue-ui-bump-BJZrexv4.js} +264 -260
- package/dist/{vue-ui-candlestick-BBwYtV1-.js → vue-ui-candlestick-P7w1YVT6.js} +304 -300
- package/dist/{vue-ui-carousel-table-DrzQReuc.js → vue-ui-carousel-table-DQk4RoWo.js} +4 -4
- package/dist/{vue-ui-chestnut-ByqOYfmS.js → vue-ui-chestnut-Co8x4We0.js} +326 -322
- package/dist/{vue-ui-chord-3k3MxDxL.js → vue-ui-chord-NjSRzToa.js} +171 -167
- package/dist/{vue-ui-circle-pack-U-fW2dBh.js → vue-ui-circle-pack-CwrgCRKX.js} +162 -158
- package/dist/{vue-ui-cursor-PxyKLKT4.js → vue-ui-cursor-Bh5-9JWm.js} +3 -3
- package/dist/{vue-ui-dag-BgB4pBHg.js → vue-ui-dag-BBGpjSzH.js} +451 -447
- package/dist/{vue-ui-dashboard-Bb0qmaCv.js → vue-ui-dashboard-ekbwnmce.js} +68 -68
- package/dist/{vue-ui-digits-DWt_f5c-.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-Ce4aLPAr.js → vue-ui-donut-DvLh8qa2.js} +467 -463
- package/dist/{vue-ui-donut-evolution-Dn8sOIr-.js → vue-ui-donut-evolution-BiLhAVY8.js} +354 -350
- package/dist/{vue-ui-dumbbell-Bu8opmEM.js → vue-ui-dumbbell-C2OWcZvr.js} +240 -236
- package/dist/{vue-ui-flow-CavJTxRY.js → vue-ui-flow-Cp2le1ur.js} +171 -167
- package/dist/{vue-ui-funnel-CWSmOHEt.js → vue-ui-funnel-ClGo8z4y.js} +133 -129
- package/dist/{vue-ui-galaxy-CqeQVqG-.js → vue-ui-galaxy-DTAl_-40.js} +146 -142
- package/dist/{vue-ui-gauge-DnU9JZ0v.js → vue-ui-gauge-DOG6-lgt.js} +175 -171
- package/dist/{vue-ui-geo-Dg8W127k.js → vue-ui-geo-BpWyHXwd.js} +123 -119
- package/dist/{vue-ui-gizmo-BfyTXxBY.js → vue-ui-gizmo-BMq5dzK4.js} +3 -3
- package/dist/{vue-ui-heatmap-D_JOEm4-.js → vue-ui-heatmap-Bp9HI0Zo.js} +231 -227
- package/dist/{vue-ui-history-plot-DgMc6-9X.js → vue-ui-history-plot-CVM1jz1X.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-BPX7YBdV.js → vue-ui-horizontal-bar-B0UY6b-O.js} +325 -321
- package/dist/{vue-ui-kpi-BqCS6onP.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-CcXuJ3iD.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-CX-pPp0u.js → vue-ui-molecule-CUppdL5f.js} +183 -179
- package/dist/{vue-ui-mood-radar-3nHlZfrB.js → vue-ui-mood-radar-QN25VSAw.js} +162 -158
- package/dist/{vue-ui-nested-donuts-cz79gQlJ.js → vue-ui-nested-donuts-ywWUDYjT.js} +178 -174
- package/dist/{vue-ui-onion-yseOpPeu.js → vue-ui-onion-DmwZ1gg_.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-Dqg_vJCM.js → vue-ui-parallel-coordinate-plot-Bz2ROYRD.js} +195 -191
- package/dist/{vue-ui-quadrant-D4UDUZoN.js → vue-ui-quadrant-CUpWOWF2.js} +243 -239
- package/dist/{vue-ui-quick-chart-BMDrPkAJ.js → vue-ui-quick-chart-CXrm_rzI.js} +295 -291
- package/dist/{vue-ui-radar-B_wSZVDb.js → vue-ui-radar-BqLjOOnJ.js} +168 -164
- package/dist/{vue-ui-rating-CBedYtOp.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-DydZv4Pf.js → vue-ui-relation-circle-CrYmJHLI.js} +185 -181
- package/dist/vue-ui-ridgeline-ZbmQXJxt.js +1306 -0
- package/dist/{vue-ui-rings-BdYnuNS7.js → vue-ui-rings-BxYoBfvT.js} +299 -295
- package/dist/{vue-ui-scatter-QISpPygj.js → vue-ui-scatter-BhJkoRBS.js} +354 -350
- package/dist/{vue-ui-skeleton-CdpD_Zjk.js → vue-ui-skeleton-Bg1akQqn.js} +3 -3
- package/dist/{vue-ui-smiley-CTeSlfZa.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Jgho2QgC.js → vue-ui-spark-trend-CJtfXMSj.js} +120 -116
- package/dist/{vue-ui-sparkbar-CLqcdko6.js → vue-ui-sparkbar-DHJdmNDm.js} +84 -80
- package/dist/{vue-ui-sparkgauge-BA3NDOhA.js → vue-ui-sparkgauge-ANfPLNuD.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-fb8hGuCn.js → vue-ui-sparkhistogram-CIfYUXVZ.js} +109 -105
- package/dist/{vue-ui-sparkline-BWdvoOYj.js → vue-ui-sparkline-Bm0OmFUB.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DbbdPqIp.js → vue-ui-sparkstackbar-CCnnfsqG.js} +99 -95
- package/dist/{vue-ui-stackbar-MYly9iMc.js → vue-ui-stackbar-CK5is5H7.js} +376 -372
- package/dist/{vue-ui-stackline-L0q_GsYv.js → vue-ui-stackline-CFv2OUCL.js} +349 -345
- package/dist/{vue-ui-strip-plot-B7W1EZdY.js → vue-ui-strip-plot-CJ1Zkrhq.js} +248 -244
- package/dist/{vue-ui-table-WSRRp_nE.js → vue-ui-table-CMyYl8lE.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Bqr4Eubg.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-UhaEz2jD.js → vue-ui-table-sparkline-Bo4nuBEx.js} +174 -170
- package/dist/{vue-ui-thermometer-BFwmgdMO.js → vue-ui-thermometer-h3voYVGJ.js} +133 -129
- package/dist/{vue-ui-timer-CoLOwKwP.js → vue-ui-timer-CazY_Z4R.js} +5 -5
- package/dist/{vue-ui-tiremarks-CvXOa3z4.js → vue-ui-tiremarks-CTa_gpit.js} +156 -152
- package/dist/{vue-ui-treemap-C8HbMbin.js → vue-ui-treemap-B6AuOtaA.js} +161 -157
- package/dist/{vue-ui-waffle-rS6LRZNV.js → vue-ui-waffle-DnEBC07H.js} +185 -181
- package/dist/{vue-ui-wheel-BGle0ni9.js → vue-ui-wheel-DFU2vMsP.js} +125 -121
- package/dist/{vue-ui-word-cloud-Dj1lJdtL.js → vue-ui-word-cloud-DgY58NEj.js} +179 -175
- package/dist/{vue-ui-world-C7d5vM6d.js → vue-ui-world-xEUaTJDk.js} +6 -6
- package/dist/{vue-ui-xy-canvas-CoBMpLeE.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/dist/{vue-ui-xy-De-FDHwh.js → vue-ui-xy-spqKboQb.js} +697 -693
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BGerPYkY.js +0 -1302
|
@@ -1,20 +1,20 @@
|
|
|
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
|
|
1
|
+
import { watchEffect as il, nextTick as Se, useCssVars as rl, defineAsyncComponent as ve, computed as b, ref as d, shallowRef as vl, toRefs as cl, watch as Ae, onBeforeUnmount as ft, onMounted as dl, reactive as gt, createElementBlock as i, openBlock as u, normalizeStyle as L, normalizeClass as ge, createBlock as be, createCommentVNode as f, createElementVNode as g, createVNode as we, unref as n, withCtx as x, renderSlot as C, normalizeProps as H, guardReactiveProps as X, createSlots as bt, Fragment as z, renderList as P, withDirectives as pt, createTextVNode as Pe, toDisplayString as F, vShow as yl, resolveDynamicComponent as hl, mergeProps as fl, withKeys as gl } from "vue";
|
|
2
|
+
import { c as Ie, t as bl, a1 as pl, o as mt, g as Ct, am as pe, l as ml, X as Cl, x as Le, a as K, d as W, U as J, az as xl, v as kl, r as Al, y as wl, _ as Ll } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { t as Te, u as Tl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Sl, a as Ve } from "./useNestedProp-Ckf_2P_V.js";
|
|
5
|
+
import { u as _l } from "./usePrinter-1NmjuP-i.js";
|
|
6
|
+
import { u as zl, B as $l } from "./BaseScanner-BMpwQAfz.js";
|
|
7
|
+
import { u as Fl } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as xt } from "./useTimeLabels-DKoynYae.js";
|
|
9
|
+
import { u as Dl } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as Ol } from "./useTableResponsive-Cbx-ACcP.js";
|
|
11
|
+
import { u as Bl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
12
|
import { u as kt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
|
-
import { u as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { _ as
|
|
13
|
+
import { u as Ml } from "./useChartAccessibility-9icAAmYg.js";
|
|
14
|
+
import El from "./img-6fNF_rG0.js";
|
|
15
|
+
import Nl from "./Title-NgeRXqRA.js";
|
|
16
|
+
import Rl from "./vue-ui-accordion-DFKaB_05.js";
|
|
17
|
+
import { _ as Hl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
function Ue({
|
|
19
19
|
elementRef: y,
|
|
20
20
|
callback: I,
|
|
@@ -26,25 +26,25 @@ function Ue({
|
|
|
26
26
|
if (Y) return;
|
|
27
27
|
const V = (T) => {
|
|
28
28
|
if (!T) return;
|
|
29
|
-
let
|
|
29
|
+
let w;
|
|
30
30
|
if (typeof T.getBBox == "function")
|
|
31
31
|
try {
|
|
32
32
|
const O = T.getBBox();
|
|
33
|
-
|
|
33
|
+
w = Q === "width" ? O.width : O.height;
|
|
34
34
|
} catch {
|
|
35
35
|
}
|
|
36
|
-
if (typeof
|
|
36
|
+
if (typeof w != "number" || Number.isNaN(w))
|
|
37
37
|
try {
|
|
38
38
|
const O = T.getBoundingClientRect();
|
|
39
|
-
|
|
39
|
+
w = Q === "width" ? O.width : O.height;
|
|
40
40
|
} catch {
|
|
41
|
-
|
|
41
|
+
w = void 0;
|
|
42
42
|
}
|
|
43
|
-
typeof
|
|
43
|
+
typeof w == "number" && !Number.isNaN(w) && I(w);
|
|
44
44
|
};
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
if (!
|
|
45
|
+
il((T) => {
|
|
46
|
+
const w = y.value;
|
|
47
|
+
if (!w) return;
|
|
48
48
|
let O = !1;
|
|
49
49
|
(async () => {
|
|
50
50
|
await Se();
|
|
@@ -68,7 +68,7 @@ function Ue({
|
|
|
68
68
|
y.value && V(y.value);
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
|
-
ee.observe(
|
|
71
|
+
ee.observe(w, {
|
|
72
72
|
childList: !0,
|
|
73
73
|
subtree: !0,
|
|
74
74
|
characterData: !0,
|
|
@@ -77,7 +77,7 @@ function Ue({
|
|
|
77
77
|
});
|
|
78
78
|
let m;
|
|
79
79
|
if (typeof ResizeObserver < "u") {
|
|
80
|
-
const S =
|
|
80
|
+
const S = w.ownerSVGElement ? w.ownerSVGElement : w;
|
|
81
81
|
m = new ResizeObserver(() => {
|
|
82
82
|
const N = y.value;
|
|
83
83
|
N && V(N);
|
|
@@ -88,32 +88,36 @@ function Ue({
|
|
|
88
88
|
});
|
|
89
89
|
}, { flush: "post" });
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const wt = { userOptions: { show: !1 }, style: { legend: { show: !1 } } }, Lt = { userOptions: { show: !1 }, style: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { crosshairs: { stroke: "#CCCCCC" }, cells: { selected: { color: "#CCCCCC" } }, dataLabels: { xAxis: { color: "#CCCCCC" }, yAxis: { color: "#CCCCCC" } } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" }, legend: { show: !1, backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Tt = { style: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { crosshairs: { stroke: "#CCCCCC" }, cells: { selected: { color: "#CCCCCC" } }, dataLabels: { xAxis: { color: "#CCCCCC" }, yAxis: { color: "#CCCCCC" } } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, St = { style: { backgroundColor: "#FFF8E1", color: "#424242", layout: { crosshairs: { stroke: "#424242" }, cells: { colors: { hot: "#D32F2F", cold: "#FFE082" }, spacing: 0.5, selected: { color: "#B71C1C" } }, dataLabels: { xAxis: { color: "#424242" }, yAxis: { color: "#424242" } } }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, legend: { backgroundColor: "#FFF8E1", color: "#424242" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, _t = { style: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { crosshairs: { stroke: "#BDBDBD" }, cells: { colors: { hot: "#D32F2F", cold: "#FFE082" }, spacing: 0.5, selected: { color: "#B71C1C" } }, dataLabels: { xAxis: { color: "#BDBDBD" }, yAxis: { color: "#BDBDBD" } } }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, zt = { style: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { crosshairs: { stroke: "#33FF33" }, cells: { colors: { hot: "#008000", cold: "#333333" }, spacing: 0.5, selected: { color: "#33FF33" } }, dataLabels: { xAxis: { color: "#AACCAA" }, yAxis: { color: "#AACCAA" } } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" }, legend: { backgroundColor: "#2A2F2A", color: "#AACCAA" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, $t = { style: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { crosshairs: { stroke: "#8F837A" }, cells: { colors: { hot: "#DFCA99", cold: "#BBC4D3" }, spacing: 0.5, selected: { color: "#4F5B75" } }, dataLabels: { xAxis: { color: "#A0AC94" }, yAxis: { color: "#A0AC94" } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Ft = { style: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { crosshairs: { stroke: "#404C4D" }, cells: { colors: { hot: "#6D7D65", cold: "#6C94A5" }, spacing: 0.5, selected: { color: "#404C4D" } }, dataLabels: { xAxis: { color: "#61747E" }, yAxis: { color: "#61747E" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Dt = {
|
|
92
92
|
default: {},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
93
|
+
minimal: wt,
|
|
94
|
+
minimalDark: Lt,
|
|
95
|
+
dark: Tt,
|
|
96
|
+
celebration: St,
|
|
97
|
+
celebrationNight: _t,
|
|
98
|
+
hack: zt,
|
|
99
|
+
zen: $t,
|
|
100
|
+
concrete: Ft
|
|
101
|
+
}, Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
100
102
|
__proto__: null,
|
|
101
|
-
celebration:
|
|
102
|
-
celebrationNight:
|
|
103
|
-
concrete:
|
|
104
|
-
dark:
|
|
105
|
-
default:
|
|
106
|
-
hack:
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
celebration: St,
|
|
104
|
+
celebrationNight: _t,
|
|
105
|
+
concrete: Ft,
|
|
106
|
+
dark: Tt,
|
|
107
|
+
default: Dt,
|
|
108
|
+
hack: zt,
|
|
109
|
+
minimal: wt,
|
|
110
|
+
minimalDark: Lt,
|
|
111
|
+
zen: $t
|
|
112
|
+
}, Symbol.toStringTag, { value: "Module" })), Xl = {
|
|
109
113
|
mounted(y, I) {
|
|
110
|
-
|
|
114
|
+
At(y, I.value);
|
|
111
115
|
},
|
|
112
116
|
updated(y, I) {
|
|
113
|
-
|
|
117
|
+
At(y, I.value);
|
|
114
118
|
}
|
|
115
119
|
};
|
|
116
|
-
function
|
|
120
|
+
function At(y, {
|
|
117
121
|
cellWidth: I,
|
|
118
122
|
cellHeight: Q,
|
|
119
123
|
maxFontSize: Y,
|
|
@@ -121,7 +125,7 @@ function wt(y, {
|
|
|
121
125
|
index: D,
|
|
122
126
|
reportRotation: V,
|
|
123
127
|
reportHide: T,
|
|
124
|
-
rotateAll:
|
|
128
|
+
rotateAll: w,
|
|
125
129
|
hideAll: O
|
|
126
130
|
}) {
|
|
127
131
|
y.removeAttribute("transform"), y.removeAttribute("visibility");
|
|
@@ -134,7 +138,7 @@ function wt(y, {
|
|
|
134
138
|
const S = Math.floor(Y * I / m);
|
|
135
139
|
S >= Z ? (y.setAttribute("font-size", S), V(D, !1), T(D, !1)) : (V(D, !0), T(D, !1), ue = !0);
|
|
136
140
|
}
|
|
137
|
-
if (
|
|
141
|
+
if (w && (ue = !0), ue) {
|
|
138
142
|
y.setAttribute("font-size", Y);
|
|
139
143
|
const S = y.getBBox(), N = S.x + S.width / 2, te = S.y + S.height / 2;
|
|
140
144
|
y.setAttribute("transform", `rotate(-90 ${N} ${te})`);
|
|
@@ -148,10 +152,10 @@ function wt(y, {
|
|
|
148
152
|
}
|
|
149
153
|
(O || ee) && y.setAttribute("visibility", "hidden");
|
|
150
154
|
}
|
|
151
|
-
const
|
|
155
|
+
const Pl = ["id"], Il = ["xmlns", "viewBox"], Vl = ["x", "y", "width", "height"], Ul = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Gl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Wl = ["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"], ql = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Kl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Jl = ["font-size", "fill", "x", "y", "font-weight"], Ql = ["font-size", "fill", "x", "y", "font-weight"], Zl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], ea = ["text-anchor", "font-size", "fill", "font-weight", "transform"], ta = { key: 6 }, la = ["x", "y", "width", "height", "stroke", "stroke-width"], aa = { key: 7 }, oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ua = { class: "vue-ui-heatmap-legend-gauge-right" }, na = ["data-value"], ia = { class: "vue-ui-heatmap-gauge-indicator-value" }, ra = {
|
|
152
156
|
key: 4,
|
|
153
157
|
class: "vue-data-ui-watermark"
|
|
154
|
-
},
|
|
158
|
+
}, va = { class: "vue-ui-data-table" }, ca = { key: 0 }, da = ["data-cell"], ya = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ha = ["data-cell"], fa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ga = {
|
|
155
159
|
__name: "vue-ui-heatmap",
|
|
156
160
|
props: {
|
|
157
161
|
config: {
|
|
@@ -169,23 +173,23 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
169
173
|
},
|
|
170
174
|
emits: ["selectDatapoint"],
|
|
171
175
|
setup(y, { expose: I, emit: Q }) {
|
|
172
|
-
|
|
176
|
+
rl((t) => ({
|
|
173
177
|
v38f57f20: t.tdo
|
|
174
178
|
}));
|
|
175
|
-
const Y = ve(() => import("./Tooltip-
|
|
179
|
+
const Y = ve(() => import("./Tooltip-B6qvABDL.js")), Z = ve(() => import("./BaseIcon-4uOct8re.js")), D = ve(() => import("./PenAndPaper-LTuSTmWE.js")), V = ve(() => import("./UserOptions-CX7Xsusk.js")), T = ve(() => import("./PackageVersion-CQxJyGQr.js")), w = ve(() => import("./BaseDraggableDialog-BQYfVNu8.js")), { vue_ui_heatmap: O } = Sl(), { isThemeValid: ue, warnInvalidTheme: ee } = Dl(), m = y, S = Q, N = b({
|
|
176
180
|
get() {
|
|
177
181
|
return !!m.dataset && m.dataset.length;
|
|
178
182
|
},
|
|
179
183
|
set(t) {
|
|
180
184
|
return t;
|
|
181
185
|
}
|
|
182
|
-
}), te = d(Ie()), $ = d(null), ne = d(!1), _e = d(""), Ge = d(void 0), M = d(null), We = d(0), Ye = d(null), je = d(0),
|
|
183
|
-
function
|
|
186
|
+
}), te = d(Ie()), $ = d(null), ne = d(!1), _e = d(""), Ge = d(void 0), M = d(null), We = d(0), Ye = d(null), je = d(0), Ot = d(null), ce = d(null), ze = d(null), qe = d(null), Ke = d(null), Bt = d(null), Je = d(null), Mt = d(null), $e = d(null), Fe = d(null), Et = d(null), Qe = d(null), ie = vl(null), e = d(Me());
|
|
187
|
+
function Nt() {
|
|
184
188
|
const t = Array(7).fill("_"), s = [], a = 14, o = t.length;
|
|
185
189
|
for (let v = 0; v < o; v += 1) {
|
|
186
190
|
const c = [];
|
|
187
|
-
for (let
|
|
188
|
-
c.push(v +
|
|
191
|
+
for (let A = 0; A < a; A += 1)
|
|
192
|
+
c.push(v + A * 2);
|
|
189
193
|
s.push({
|
|
190
194
|
name: `${t[v]}`,
|
|
191
195
|
values: c
|
|
@@ -193,17 +197,17 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
193
197
|
}
|
|
194
198
|
return s;
|
|
195
199
|
}
|
|
196
|
-
const { loading: me, FINAL_DATASET: k, manualLoading: De } =
|
|
197
|
-
...
|
|
200
|
+
const { loading: me, FINAL_DATASET: k, manualLoading: De } = zl({
|
|
201
|
+
...cl(m),
|
|
198
202
|
FINAL_CONFIG: e,
|
|
199
203
|
prepareConfig: Me,
|
|
200
204
|
callback: () => {
|
|
201
205
|
Promise.resolve().then(async () => {
|
|
202
|
-
await Se(), $.value &&
|
|
206
|
+
await Se(), $.value && xl($.value, { delta: 0.1, delay: 250 });
|
|
203
207
|
});
|
|
204
208
|
},
|
|
205
|
-
skeletonDataset:
|
|
206
|
-
skeletonConfig:
|
|
209
|
+
skeletonDataset: Nt(),
|
|
210
|
+
skeletonConfig: bl({
|
|
207
211
|
defaultConfig: e.value,
|
|
208
212
|
userConfig: {
|
|
209
213
|
table: { show: !1 },
|
|
@@ -228,9 +232,9 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
228
232
|
}
|
|
229
233
|
}
|
|
230
234
|
})
|
|
231
|
-
}), { userOptionsVisible: Oe, setUserOptionsVisibility:
|
|
235
|
+
}), { userOptionsVisible: Oe, setUserOptionsVisibility: Rt, keepUserOptionState: Ze } = Bl({ config: e.value }), { svgRef: Be } = Ml({ config: e.value.style.title });
|
|
232
236
|
function et(t) {
|
|
233
|
-
|
|
237
|
+
Rt(t);
|
|
234
238
|
}
|
|
235
239
|
function Me() {
|
|
236
240
|
const t = Ve({
|
|
@@ -244,7 +248,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
244
248
|
ee(t), s = t;
|
|
245
249
|
else {
|
|
246
250
|
const o = Ve({
|
|
247
|
-
userConfig:
|
|
251
|
+
userConfig: Dt[a] || m.config,
|
|
248
252
|
defaultConfig: t
|
|
249
253
|
});
|
|
250
254
|
s = {
|
|
@@ -256,36 +260,36 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
256
260
|
}
|
|
257
261
|
else
|
|
258
262
|
s = t;
|
|
259
|
-
return m.config &&
|
|
263
|
+
return m.config && pl(m.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? s.style.layout.dataLabels.xAxis.showOnlyAtModulo = m.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : s.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, s;
|
|
260
264
|
}
|
|
261
|
-
|
|
265
|
+
Ae(() => m.config, (t) => {
|
|
262
266
|
me.value || (e.value = Me()), Oe.value = !e.value.userOptions.showOnChartHover, Ee(), je.value += 1, E.value.showTable = e.value.table.show, E.value.showTooltip = e.value.style.tooltip.show, de.value = e.value.style.layout.width, ye.value = e.value.style.layout.height;
|
|
263
|
-
}, { deep: !0 }),
|
|
267
|
+
}, { deep: !0 }), Ae(() => m.dataset, (t) => {
|
|
264
268
|
Array.isArray(t) && t.length > 0 && (De.value = !1), Ee();
|
|
265
269
|
}, { deep: !0 });
|
|
266
|
-
const { isPrinting: tt, isImaging: lt, generatePdf: at, generateImage: ot } =
|
|
270
|
+
const { isPrinting: tt, isImaging: lt, generatePdf: at, generateImage: ot } = _l({
|
|
267
271
|
elementId: `heatmap__${te.value}`,
|
|
268
272
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
269
273
|
options: e.value.userOptions.print
|
|
270
|
-
}),
|
|
274
|
+
}), Ht = b(() => e.value.userOptions.show && !e.value.style.title.text), E = d({
|
|
271
275
|
showTable: e.value.table.show,
|
|
272
276
|
showTooltip: e.value.style.tooltip.show
|
|
273
277
|
});
|
|
274
|
-
|
|
278
|
+
Ae(e, () => {
|
|
275
279
|
E.value = {
|
|
276
280
|
showTable: e.value.table.show,
|
|
277
281
|
showTooltip: e.value.style.tooltip.show
|
|
278
282
|
};
|
|
279
283
|
}, { immediate: !0 });
|
|
280
|
-
const
|
|
284
|
+
const Xt = b(() => e.value.table.responsiveBreakpoint), j = d(null), st = b(() => !!e.value.debug);
|
|
281
285
|
function Ee() {
|
|
282
|
-
if (mt(m.dataset) && (
|
|
286
|
+
if (mt(m.dataset) && (Ct({
|
|
283
287
|
componentName: "VueUiHeatmap",
|
|
284
288
|
type: "dataset",
|
|
285
289
|
debug: st.value
|
|
286
290
|
}), N.value = !1, De.value = !0), mt(m.dataset) || (De.value = e.value.loading), e.value.responsive) {
|
|
287
291
|
const t = Te(() => {
|
|
288
|
-
const { width: s, height: a } =
|
|
292
|
+
const { width: s, height: a } = Tl({
|
|
289
293
|
chart: $.value,
|
|
290
294
|
title: e.value.style.title.text ? qe.value : null,
|
|
291
295
|
// add legend hirizontal in legend attr
|
|
@@ -302,33 +306,33 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
302
306
|
}
|
|
303
307
|
ft(() => {
|
|
304
308
|
j.value && (ie.value && j.value.unobserve(ie.value), j.value.disconnect());
|
|
305
|
-
}),
|
|
309
|
+
}), dl(() => {
|
|
306
310
|
Ee();
|
|
307
311
|
});
|
|
308
312
|
const U = b(() => Math.max(...k.value.flatMap((t) => (t.values || []).length))), de = d(e.value.style.layout.width), ye = d(e.value.style.layout.height), B = b(() => ({
|
|
309
313
|
width: Math.max(10, de.value),
|
|
310
314
|
height: Math.max(10, ye.value)
|
|
311
|
-
})), re = d(0),
|
|
315
|
+
})), re = d(0), Pt = Te((t) => {
|
|
312
316
|
t !== re.value && (re.value = t);
|
|
313
317
|
}, 100);
|
|
314
|
-
Ue({ elementRef: $e, callback:
|
|
315
|
-
const le = d(0),
|
|
318
|
+
Ue({ elementRef: $e, callback: Pt, attr: "height" });
|
|
319
|
+
const le = d(0), It = Te((t) => {
|
|
316
320
|
t !== le.value && (le.value = t);
|
|
317
321
|
}, 100);
|
|
318
|
-
Ue({ elementRef: Je, callback:
|
|
319
|
-
const he = d(0),
|
|
322
|
+
Ue({ elementRef: Je, callback: It, attr: "width" });
|
|
323
|
+
const he = d(0), Vt = Te((t) => {
|
|
320
324
|
t !== he.value && (he.value = t);
|
|
321
325
|
}, 100);
|
|
322
|
-
Ue({ elementRef: Fe, callback:
|
|
326
|
+
Ue({ elementRef: Fe, callback: Vt, attr: "height" }), ft(() => {
|
|
323
327
|
re.value = 0, le.value = 0, he.value = 0;
|
|
324
328
|
});
|
|
325
329
|
const r = b(() => Math.min(B.value.height, B.value.width) / 1e3 * e.value.style.layout.cells.spacing), l = b(() => {
|
|
326
330
|
let t = 0;
|
|
327
331
|
e.value.style.legend.show && (t = e.value.style.legend.width);
|
|
328
|
-
const s = e.value.style.layout.padding, a = e.value.style.layout.dataLabels.xAxis.fontSize / 3, o = e.value.style.layout.dataLabels.xAxis.fontSize / 2, v = B.value.height - s.top - s.bottom - re.value - a, c = B.value.width / 60,
|
|
332
|
+
const s = e.value.style.layout.padding, a = e.value.style.layout.dataLabels.xAxis.fontSize / 3, o = e.value.style.layout.dataLabels.xAxis.fontSize / 2, v = B.value.height - s.top - s.bottom - re.value - a, c = B.value.width / 60, A = {
|
|
329
333
|
x: r.value * U.value,
|
|
330
334
|
y: r.value * ((k.value || []).length + 1)
|
|
331
|
-
}, G = B.value.width - s.left - s.right -
|
|
335
|
+
}, G = B.value.width - s.left - s.right - A.x - c * 2 - 2 - t - le.value, h = v - c - A.y - he.value - o - e.value.style.layout.cells.columnTotal.value.offsetY, _ = {
|
|
332
336
|
width: Math.max(3, G / U.value),
|
|
333
337
|
height: Math.max(3, h / (k.value.length ?? 1))
|
|
334
338
|
};
|
|
@@ -346,23 +350,23 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
346
350
|
}), q = b(() => Math.max(...k.value.flatMap((t) => t.values))), fe = b(() => Math.min(...k.value.flatMap((t) => t.values))), ae = b(() => {
|
|
347
351
|
const t = k.value.flatMap((a) => a.values);
|
|
348
352
|
return t.reduce((a, o) => a + o, 0) / t.length;
|
|
349
|
-
}),
|
|
353
|
+
}), Ut = b(() => xt({
|
|
350
354
|
values: e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : k.value.map((t) => t.name),
|
|
351
355
|
maxDatapoints: k.value.length,
|
|
352
356
|
formatter: e.value.style.layout.dataLabels.yAxis.datetimeFormatter,
|
|
353
357
|
start: 0,
|
|
354
358
|
end: k.value.length
|
|
355
|
-
})),
|
|
359
|
+
})), Gt = b(() => xt({
|
|
356
360
|
values: e.value.style.layout.dataLabels.xAxis.values,
|
|
357
361
|
maxDatapoints: U.value,
|
|
358
362
|
formatter: e.value.style.layout.dataLabels.xAxis.datetimeFormatter,
|
|
359
363
|
start: 0,
|
|
360
364
|
end: U.value
|
|
361
365
|
})), p = b(() => {
|
|
362
|
-
const t =
|
|
366
|
+
const t = Ut.value.map((h) => h.text), s = Gt.value.map((h) => h.text), a = k.value.map((h) => h.values.reduce((_, Xe) => _ + Xe, 0)), o = Math.max(...a), v = Math.min(...a), c = [];
|
|
363
367
|
for (let h = 0; h < U.value; h += 1)
|
|
364
368
|
c.push(k.value.map((_) => _.values[h] || 0).reduce((_, Xe) => _ + Xe, 0));
|
|
365
|
-
const
|
|
369
|
+
const A = Math.max(...c), G = Math.min(...c);
|
|
366
370
|
return {
|
|
367
371
|
yTotals: a.map((h) => {
|
|
368
372
|
const _ = isNaN(h / o) ? 0 : h / o;
|
|
@@ -373,22 +377,22 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
373
377
|
};
|
|
374
378
|
}),
|
|
375
379
|
xTotals: c.map((h) => {
|
|
376
|
-
const _ = isNaN(h /
|
|
380
|
+
const _ = isNaN(h / A) ? 0 : h / A;
|
|
377
381
|
return {
|
|
378
382
|
total: h,
|
|
379
383
|
proportion: _,
|
|
380
|
-
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, G,
|
|
384
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, G, A, h)
|
|
381
385
|
};
|
|
382
386
|
}),
|
|
383
387
|
yLabels: t,
|
|
384
388
|
xLabels: s.slice(0, U.value)
|
|
385
389
|
};
|
|
386
390
|
}), oe = b(() => (k.value.forEach((t, s) => {
|
|
387
|
-
|
|
391
|
+
ml({
|
|
388
392
|
datasetObject: t,
|
|
389
393
|
requiredAttributes: ["values"]
|
|
390
394
|
}).forEach((a) => {
|
|
391
|
-
|
|
395
|
+
Ct({
|
|
392
396
|
componentName: "VueUiHeatmap",
|
|
393
397
|
type: "datasetSerieAttribute",
|
|
394
398
|
property: "values",
|
|
@@ -415,19 +419,19 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
415
419
|
xAxisName: p.value.xLabels[o],
|
|
416
420
|
id: `vue-data-ui-heatmap-cell-${Ie()}`
|
|
417
421
|
})
|
|
418
|
-
})))), ut = b(() => k.value.length), nt = gt(Array(ut.value * U.value || 1).fill(!1)),
|
|
419
|
-
function
|
|
422
|
+
})))), ut = b(() => k.value.length), nt = gt(Array(ut.value * U.value || 1).fill(!1)), Wt = b(() => nt.some((t) => t));
|
|
423
|
+
function Yt(t, s) {
|
|
420
424
|
nt[t] = s;
|
|
421
425
|
}
|
|
422
|
-
const it = gt(Array(ut.value * U.value || 1).fill(!1)),
|
|
423
|
-
function
|
|
426
|
+
const it = gt(Array(ut.value * U.value || 1).fill(!1)), jt = b(() => it.some((t) => t));
|
|
427
|
+
function qt(t, s) {
|
|
424
428
|
it[t] = s;
|
|
425
429
|
}
|
|
426
|
-
const R = d(null),
|
|
427
|
-
function
|
|
430
|
+
const R = d(null), Ce = d(null);
|
|
431
|
+
function Kt(t, s, a, o) {
|
|
428
432
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: s }), M.value = { x: a, y: o };
|
|
429
|
-
const { value: v, yAxisName: c, xAxisName:
|
|
430
|
-
Ge.value = G, R.value = v,
|
|
433
|
+
const { value: v, yAxisName: c, xAxisName: A, id: G } = t;
|
|
434
|
+
Ge.value = G, R.value = v, Ce.value = {
|
|
431
435
|
datapoint: t,
|
|
432
436
|
seriesIndex: s,
|
|
433
437
|
series: oe.value,
|
|
@@ -435,7 +439,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
435
439
|
}, ne.value = !0;
|
|
436
440
|
let h = "";
|
|
437
441
|
const _ = e.value.style.tooltip.customFormat;
|
|
438
|
-
|
|
442
|
+
wl(_) && Ll(() => _({
|
|
439
443
|
datapoint: t,
|
|
440
444
|
seriesIndex: s,
|
|
441
445
|
series: oe.value,
|
|
@@ -445,7 +449,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
445
449
|
seriesIndex: s,
|
|
446
450
|
series: oe.value,
|
|
447
451
|
config: e.value
|
|
448
|
-
}) : (h += `<div>${c} ${
|
|
452
|
+
}) : (h += `<div>${c} ${A ? c ? ` - ${A}` : `${A}` : ""}</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:${pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, fe.value, q.value, v)}">⬤</span><span>${isNaN(v) ? "-" : K(
|
|
449
453
|
e.value.style.layout.cells.value.formatter,
|
|
450
454
|
v,
|
|
451
455
|
W({
|
|
@@ -457,10 +461,10 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
457
461
|
{ datapoint: t, seriesIndex: s }
|
|
458
462
|
)}</span></div>`, _e.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${h}</div>`);
|
|
459
463
|
}
|
|
460
|
-
function
|
|
464
|
+
function Jt({ datapoint: t, seriesIndex: s }) {
|
|
461
465
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), ne.value = !1, Ge.value = void 0, R.value = null, M.value = null;
|
|
462
466
|
}
|
|
463
|
-
function
|
|
467
|
+
function Qt(t) {
|
|
464
468
|
return K(
|
|
465
469
|
e.value.style.layout.cells.value.formatter,
|
|
466
470
|
p.value.yTotals[t].total,
|
|
@@ -473,7 +477,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
473
477
|
{ datapoint: p.value.yTotals[t], rowIndex: t }
|
|
474
478
|
);
|
|
475
479
|
}
|
|
476
|
-
function
|
|
480
|
+
function Zt(t) {
|
|
477
481
|
return K(
|
|
478
482
|
e.value.style.layout.cells.value.formatter,
|
|
479
483
|
p.value.xTotals[t].total,
|
|
@@ -494,15 +498,15 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
494
498
|
});
|
|
495
499
|
function Ne(t = null) {
|
|
496
500
|
Se(() => {
|
|
497
|
-
const s = ["", ...k.value.map((c,
|
|
501
|
+
const s = ["", ...k.value.map((c, A) => c.name)], a = [];
|
|
498
502
|
for (let c = 0; c < p.value.xLabels.length; c += 1) {
|
|
499
|
-
const
|
|
503
|
+
const A = [p.value.xLabels[c]];
|
|
500
504
|
for (let G = 0; G < k.value.length; G += 1)
|
|
501
|
-
|
|
502
|
-
a.push(
|
|
505
|
+
A.push([k.value[G].values[c]]);
|
|
506
|
+
a.push(A);
|
|
503
507
|
}
|
|
504
|
-
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(a), v =
|
|
505
|
-
t ? t(v) :
|
|
508
|
+
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(a), v = kl(o);
|
|
509
|
+
t ? t(v) : Al({ csvContent: v, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
506
510
|
});
|
|
507
511
|
}
|
|
508
512
|
const se = d(!1);
|
|
@@ -515,19 +519,19 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
515
519
|
function ct() {
|
|
516
520
|
E.value.showTooltip = !E.value.showTooltip;
|
|
517
521
|
}
|
|
518
|
-
const
|
|
522
|
+
const xe = d(!1);
|
|
519
523
|
function Re() {
|
|
520
|
-
|
|
524
|
+
xe.value = !xe.value;
|
|
521
525
|
}
|
|
522
|
-
function
|
|
526
|
+
function el(t, s) {
|
|
523
527
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: s }), S("selectDatapoint", t);
|
|
524
528
|
}
|
|
525
|
-
function
|
|
529
|
+
function tl() {
|
|
526
530
|
return oe.value;
|
|
527
531
|
}
|
|
528
|
-
async function
|
|
532
|
+
async function ll({ scale: t = 2 } = {}) {
|
|
529
533
|
if (!$.value) return;
|
|
530
|
-
const { width: s, height: a } = $.value.getBoundingClientRect(), o = s / a, { imageUri: v, base64: c } = await
|
|
534
|
+
const { width: s, height: a } = $.value.getBoundingClientRect(), o = s / a, { imageUri: v, base64: c } = await El({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
531
535
|
return {
|
|
532
536
|
imageUri: v,
|
|
533
537
|
base64: c,
|
|
@@ -569,7 +573,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
569
573
|
const ke = b(() => {
|
|
570
574
|
const t = e.value.table.useDialog && !e.value.table.show, s = E.value.showTable;
|
|
571
575
|
return {
|
|
572
|
-
component: t ?
|
|
576
|
+
component: t ? w : Rl,
|
|
573
577
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
574
578
|
props: t ? {
|
|
575
579
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -596,28 +600,28 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
596
600
|
}
|
|
597
601
|
};
|
|
598
602
|
});
|
|
599
|
-
|
|
603
|
+
Ae(() => E.value.showTable, async (t) => {
|
|
600
604
|
e.value.table.show || (t && e.value.table.useDialog && ce.value ? (await Se(), ce.value.open()) : "close" in ce.value && ce.value.close());
|
|
601
605
|
});
|
|
602
|
-
const { isResponsive:
|
|
606
|
+
const { isResponsive: al } = Ol(Ye, Xt);
|
|
603
607
|
function He() {
|
|
604
608
|
E.value.showTable = !1, ze.value && ze.value.setTableIconState(!1);
|
|
605
609
|
}
|
|
606
|
-
const
|
|
610
|
+
const ol = b(() => e.value.style.backgroundColor), sl = b(() => e.value.style.title), { exportSvg: ul, getSvg: nl } = Fl({
|
|
607
611
|
svg: Be,
|
|
608
|
-
title:
|
|
609
|
-
backgroundColor:
|
|
612
|
+
title: sl,
|
|
613
|
+
backgroundColor: ol
|
|
610
614
|
});
|
|
611
615
|
async function ht({ isCb: t }) {
|
|
612
616
|
if (t) {
|
|
613
|
-
const { blob: s, url: a, text: o, dataUrl: v } = await
|
|
617
|
+
const { blob: s, url: a, text: o, dataUrl: v } = await nl();
|
|
614
618
|
e.value.userOptions.callbacks.svg({ blob: s, url: a, text: o, dataUrl: v });
|
|
615
619
|
} else
|
|
616
|
-
|
|
620
|
+
ul();
|
|
617
621
|
}
|
|
618
622
|
return I({
|
|
619
|
-
getData:
|
|
620
|
-
getImage:
|
|
623
|
+
getData: tl,
|
|
624
|
+
getImage: ll,
|
|
621
625
|
generatePdf: at,
|
|
622
626
|
generateCsv: Ne,
|
|
623
627
|
generateImage: ot,
|
|
@@ -640,30 +644,30 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
640
644
|
svgRef: n(Be),
|
|
641
645
|
backgroundColor: e.value.style.backgroundColor,
|
|
642
646
|
color: e.value.style.color,
|
|
643
|
-
active:
|
|
647
|
+
active: xe.value,
|
|
644
648
|
onClose: Re
|
|
645
649
|
}, {
|
|
646
|
-
"annotator-action-close":
|
|
647
|
-
|
|
650
|
+
"annotator-action-close": x(() => [
|
|
651
|
+
C(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
648
652
|
]),
|
|
649
|
-
"annotator-action-color":
|
|
650
|
-
|
|
653
|
+
"annotator-action-color": x(({ color: a }) => [
|
|
654
|
+
C(t.$slots, "annotator-action-color", H(X({ color: a })), void 0, !0)
|
|
651
655
|
]),
|
|
652
|
-
"annotator-action-draw":
|
|
653
|
-
|
|
656
|
+
"annotator-action-draw": x(({ mode: a }) => [
|
|
657
|
+
C(t.$slots, "annotator-action-draw", H(X({ mode: a })), void 0, !0)
|
|
654
658
|
]),
|
|
655
|
-
"annotator-action-undo":
|
|
656
|
-
|
|
659
|
+
"annotator-action-undo": x(({ disabled: a }) => [
|
|
660
|
+
C(t.$slots, "annotator-action-undo", H(X({ disabled: a })), void 0, !0)
|
|
657
661
|
]),
|
|
658
|
-
"annotator-action-redo":
|
|
659
|
-
|
|
662
|
+
"annotator-action-redo": x(({ disabled: a }) => [
|
|
663
|
+
C(t.$slots, "annotator-action-redo", H(X({ disabled: a })), void 0, !0)
|
|
660
664
|
]),
|
|
661
|
-
"annotator-action-delete":
|
|
662
|
-
|
|
665
|
+
"annotator-action-delete": x(({ disabled: a }) => [
|
|
666
|
+
C(t.$slots, "annotator-action-delete", H(X({ disabled: a })), void 0, !0)
|
|
663
667
|
]),
|
|
664
668
|
_: 3
|
|
665
669
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
666
|
-
|
|
670
|
+
Ht.value ? (u(), i("div", {
|
|
667
671
|
key: 1,
|
|
668
672
|
ref_key: "noTitle",
|
|
669
673
|
ref: Ke,
|
|
@@ -676,7 +680,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
676
680
|
ref: qe,
|
|
677
681
|
style: "width:100%;background:transparent"
|
|
678
682
|
}, [
|
|
679
|
-
(u(), be(
|
|
683
|
+
(u(), be(Nl, {
|
|
680
684
|
key: `title_${je.value}`,
|
|
681
685
|
config: {
|
|
682
686
|
title: {
|
|
@@ -712,7 +716,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
712
716
|
chartElement: $.value,
|
|
713
717
|
position: e.value.userOptions.position,
|
|
714
718
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
715
|
-
isAnnotation:
|
|
719
|
+
isAnnotation: xe.value,
|
|
716
720
|
callbacks: e.value.userOptions.callbacks,
|
|
717
721
|
printScale: e.value.userOptions.print.scale,
|
|
718
722
|
tableDialog: e.value.table.useDialog,
|
|
@@ -730,64 +734,64 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
730
734
|
}, bt({ _: 2 }, [
|
|
731
735
|
t.$slots.menuIcon ? {
|
|
732
736
|
name: "menuIcon",
|
|
733
|
-
fn:
|
|
734
|
-
|
|
737
|
+
fn: x(({ isOpen: a, color: o }) => [
|
|
738
|
+
C(t.$slots, "menuIcon", H(X({ isOpen: a, color: o })), void 0, !0)
|
|
735
739
|
]),
|
|
736
740
|
key: "0"
|
|
737
741
|
} : void 0,
|
|
738
742
|
t.$slots.optionTooltip ? {
|
|
739
743
|
name: "optionTooltip",
|
|
740
|
-
fn:
|
|
741
|
-
|
|
744
|
+
fn: x(() => [
|
|
745
|
+
C(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
742
746
|
]),
|
|
743
747
|
key: "1"
|
|
744
748
|
} : void 0,
|
|
745
749
|
t.$slots.optionPdf ? {
|
|
746
750
|
name: "optionPdf",
|
|
747
|
-
fn:
|
|
748
|
-
|
|
751
|
+
fn: x(() => [
|
|
752
|
+
C(t.$slots, "optionPdf", {}, void 0, !0)
|
|
749
753
|
]),
|
|
750
754
|
key: "2"
|
|
751
755
|
} : void 0,
|
|
752
756
|
t.$slots.optionCsv ? {
|
|
753
757
|
name: "optionCsv",
|
|
754
|
-
fn:
|
|
755
|
-
|
|
758
|
+
fn: x(() => [
|
|
759
|
+
C(t.$slots, "optionCsv", {}, void 0, !0)
|
|
756
760
|
]),
|
|
757
761
|
key: "3"
|
|
758
762
|
} : void 0,
|
|
759
763
|
t.$slots.optionImg ? {
|
|
760
764
|
name: "optionImg",
|
|
761
|
-
fn:
|
|
762
|
-
|
|
765
|
+
fn: x(() => [
|
|
766
|
+
C(t.$slots, "optionImg", {}, void 0, !0)
|
|
763
767
|
]),
|
|
764
768
|
key: "4"
|
|
765
769
|
} : void 0,
|
|
766
770
|
t.$slots.optionSvg ? {
|
|
767
771
|
name: "optionSvg",
|
|
768
|
-
fn:
|
|
769
|
-
|
|
772
|
+
fn: x(() => [
|
|
773
|
+
C(t.$slots, "optionSvg", {}, void 0, !0)
|
|
770
774
|
]),
|
|
771
775
|
key: "5"
|
|
772
776
|
} : void 0,
|
|
773
777
|
t.$slots.optionTable ? {
|
|
774
778
|
name: "optionTable",
|
|
775
|
-
fn:
|
|
776
|
-
|
|
779
|
+
fn: x(() => [
|
|
780
|
+
C(t.$slots, "optionTable", {}, void 0, !0)
|
|
777
781
|
]),
|
|
778
782
|
key: "6"
|
|
779
783
|
} : void 0,
|
|
780
784
|
t.$slots.optionFullscreen ? {
|
|
781
785
|
name: "optionFullscreen",
|
|
782
|
-
fn:
|
|
783
|
-
|
|
786
|
+
fn: x(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
787
|
+
C(t.$slots, "optionFullscreen", H(X({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
784
788
|
]),
|
|
785
789
|
key: "7"
|
|
786
790
|
} : void 0,
|
|
787
791
|
t.$slots.optionAnnotator ? {
|
|
788
792
|
name: "optionAnnotator",
|
|
789
|
-
fn:
|
|
790
|
-
|
|
793
|
+
fn: x(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
794
|
+
C(t.$slots, "optionAnnotator", H(X({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
791
795
|
]),
|
|
792
796
|
key: "8"
|
|
793
797
|
} : void 0
|
|
@@ -801,7 +805,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
801
805
|
(u(), i("svg", {
|
|
802
806
|
ref_key: "svgRef",
|
|
803
807
|
ref: Be,
|
|
804
|
-
xmlns: n(
|
|
808
|
+
xmlns: n(Cl),
|
|
805
809
|
class: ge({ "vue-data-ui-fullscreen--on": se.value, "vue-data-ui-fulscreen--off": !se.value }),
|
|
806
810
|
viewBox: `0 0 ${B.value.width} ${B.value.height}`,
|
|
807
811
|
width: "100%",
|
|
@@ -810,7 +814,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
810
814
|
role: "img",
|
|
811
815
|
preserveAspectRatio: "xMidYMid"
|
|
812
816
|
}, [
|
|
813
|
-
|
|
817
|
+
we(n(T)),
|
|
814
818
|
t.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
815
819
|
key: 0,
|
|
816
820
|
x: l.value.left,
|
|
@@ -821,12 +825,12 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
821
825
|
pointerEvents: "none"
|
|
822
826
|
}
|
|
823
827
|
}, [
|
|
824
|
-
|
|
825
|
-
], 8,
|
|
828
|
+
C(t.$slots, "chart-background", {}, void 0, !0)
|
|
829
|
+
], 8, Vl)) : f("", !0),
|
|
826
830
|
e.value.style.layout.cells.columnTotal.color.show ? (u(), i("g", {
|
|
827
831
|
key: 1,
|
|
828
832
|
ref_key: "xAxisSumRects",
|
|
829
|
-
ref:
|
|
833
|
+
ref: Et
|
|
830
834
|
}, [
|
|
831
835
|
(u(!0), i(z, null, P(p.value.xTotals, (a, o) => (u(), i("rect", {
|
|
832
836
|
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
@@ -836,7 +840,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
836
840
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
837
841
|
stroke: e.value.style.backgroundColor,
|
|
838
842
|
"stroke-width": r.value
|
|
839
|
-
}, null, 8,
|
|
843
|
+
}, null, 8, Ul))), 256)),
|
|
840
844
|
(u(!0), i(z, null, P(p.value.xTotals, (a, o) => (u(), i("rect", {
|
|
841
845
|
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
842
846
|
y: l.value.top - l.value.sumCellXHeight + r.value * (B.value.height / B.value.width),
|
|
@@ -845,11 +849,11 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
845
849
|
fill: a.color,
|
|
846
850
|
stroke: e.value.style.backgroundColor,
|
|
847
851
|
"stroke-width": r.value
|
|
848
|
-
}, null, 8,
|
|
852
|
+
}, null, 8, Gl))), 256))
|
|
849
853
|
], 512)) : f("", !0),
|
|
850
854
|
g("g", {
|
|
851
855
|
ref_key: "datapoints",
|
|
852
|
-
ref:
|
|
856
|
+
ref: Ot
|
|
853
857
|
}, [
|
|
854
858
|
(u(!0), i(z, null, P(oe.value, (a, o) => (u(), i(z, null, [
|
|
855
859
|
(u(!0), i(z, null, P(a.temperatures, (v, c) => (u(), i("g", null, [
|
|
@@ -861,7 +865,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
861
865
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
862
866
|
stroke: e.value.style.backgroundColor,
|
|
863
867
|
"stroke-width": r.value
|
|
864
|
-
}, null, 8,
|
|
868
|
+
}, null, 8, Wl),
|
|
865
869
|
g("rect", {
|
|
866
870
|
x: l.value.left + l.value.cellSize.width * c + r.value / 2 + l.value.sumCellXHeight,
|
|
867
871
|
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
@@ -870,10 +874,10 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
870
874
|
fill: v.color,
|
|
871
875
|
stroke: e.value.style.backgroundColor,
|
|
872
876
|
"stroke-width": r.value,
|
|
873
|
-
onMouseover: (
|
|
874
|
-
onMouseout: () =>
|
|
875
|
-
onClick: () =>
|
|
876
|
-
}, null, 40,
|
|
877
|
+
onMouseover: (A) => Kt(v, o, l.value.left + l.value.cellSize.width * c, l.value.top + l.value.cellSize.height * o),
|
|
878
|
+
onMouseout: () => Jt({ datapoint: v, seriesIndex: o }),
|
|
879
|
+
onClick: () => el(v, o)
|
|
880
|
+
}, null, 40, Yl),
|
|
877
881
|
e.value.style.layout.cells.value.show ? pt((u(), i("text", {
|
|
878
882
|
key: 0,
|
|
879
883
|
"text-anchor": "middle",
|
|
@@ -895,17 +899,17 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
895
899
|
}),
|
|
896
900
|
{ datapoint: v }
|
|
897
901
|
)), 1)
|
|
898
|
-
], 8,
|
|
899
|
-
[n(
|
|
902
|
+
], 8, jl)), [
|
|
903
|
+
[n(Xl), {
|
|
900
904
|
cellWidth: l.value.cellSize.width - r.value,
|
|
901
905
|
cellHeight: l.value.cellSize.height - r.value,
|
|
902
906
|
maxFontSize: e.value.style.layout.cells.value.fontSize,
|
|
903
907
|
minFontSize: 10,
|
|
904
908
|
index: o * U.value + c,
|
|
905
|
-
reportHide:
|
|
906
|
-
reportRotation:
|
|
907
|
-
hideAll:
|
|
908
|
-
rotateAll:
|
|
909
|
+
reportHide: qt,
|
|
910
|
+
reportRotation: Yt,
|
|
911
|
+
hideAll: jt.value,
|
|
912
|
+
rotateAll: Wt.value
|
|
909
913
|
}]
|
|
910
914
|
]) : f("", !0)
|
|
911
915
|
]))), 256))
|
|
@@ -914,7 +918,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
914
918
|
e.value.style.layout.cells.rowTotal.color.show ? (u(), i("g", {
|
|
915
919
|
key: 2,
|
|
916
920
|
ref_key: "yAxisSumRects",
|
|
917
|
-
ref:
|
|
921
|
+
ref: Mt
|
|
918
922
|
}, [
|
|
919
923
|
(u(!0), i(z, null, P(oe.value, (a, o) => (u(), i(z, null, [
|
|
920
924
|
g("rect", {
|
|
@@ -925,7 +929,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
925
929
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
926
930
|
stroke: e.value.style.backgroundColor,
|
|
927
931
|
"stroke-width": r.value
|
|
928
|
-
}, null, 8,
|
|
932
|
+
}, null, 8, ql),
|
|
929
933
|
g("rect", {
|
|
930
934
|
x: l.value.left,
|
|
931
935
|
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
@@ -934,7 +938,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
934
938
|
fill: p.value.yTotals[o].color,
|
|
935
939
|
stroke: e.value.style.backgroundColor,
|
|
936
940
|
"stroke-width": r.value
|
|
937
|
-
}, null, 8,
|
|
941
|
+
}, null, 8, Kl)
|
|
938
942
|
], 64))), 256))
|
|
939
943
|
], 512)) : f("", !0),
|
|
940
944
|
e.value.style.layout.dataLabels.yAxis.show ? (u(), i("g", {
|
|
@@ -951,7 +955,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
951
955
|
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),
|
|
952
956
|
"text-anchor": "end",
|
|
953
957
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
954
|
-
}, F(p.value.yLabels[o]), 9,
|
|
958
|
+
}, F(p.value.yLabels[o]), 9, Jl),
|
|
955
959
|
e.value.style.layout.cells.rowTotal.value.show ? (u(), i("text", {
|
|
956
960
|
key: 0,
|
|
957
961
|
class: "vue-ui-heatmap-row-total",
|
|
@@ -961,7 +965,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
961
965
|
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,
|
|
962
966
|
"text-anchor": "end",
|
|
963
967
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
964
|
-
}, F(
|
|
968
|
+
}, F(Qt(o)), 9, Ql)) : f("", !0)
|
|
965
969
|
], 64))), 256))
|
|
966
970
|
], 512)) : f("", !0),
|
|
967
971
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), i("g", {
|
|
@@ -978,7 +982,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
978
982
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
979
983
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
980
984
|
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})`
|
|
981
|
-
}, F(a), 9,
|
|
985
|
+
}, F(a), 9, Zl)) : f("", !0)
|
|
982
986
|
], 64))), 256))
|
|
983
987
|
], 512)) : f("", !0),
|
|
984
988
|
e.value.style.layout.cells.columnTotal.value.show ? (u(), i("g", {
|
|
@@ -993,9 +997,9 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
993
997
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
994
998
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
995
999
|
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / p.value.xLabels.length * o + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + l.value.sumCellXHeight}, ${l.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
|
|
996
|
-
}, F(
|
|
1000
|
+
}, F(Zt(o)), 9, ea))), 256))
|
|
997
1001
|
], 512)) : f("", !0),
|
|
998
|
-
M.value ? (u(), i("g",
|
|
1002
|
+
M.value ? (u(), i("g", ta, [
|
|
999
1003
|
g("rect", {
|
|
1000
1004
|
style: { "pointer-events": "none" },
|
|
1001
1005
|
x: M.value.x - e.value.style.layout.cells.selected.border / 2 + r.value + l.value.sumCellXHeight,
|
|
@@ -1006,9 +1010,9 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1006
1010
|
stroke: e.value.style.layout.cells.selected.color,
|
|
1007
1011
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
1008
1012
|
rx: 1
|
|
1009
|
-
}, null, 8,
|
|
1013
|
+
}, null, 8, la)
|
|
1010
1014
|
])) : f("", !0),
|
|
1011
|
-
e.value.style.layout.crosshairs.show && M.value ? (u(), i("g",
|
|
1015
|
+
e.value.style.layout.crosshairs.show && M.value ? (u(), i("g", aa, [
|
|
1012
1016
|
g("line", {
|
|
1013
1017
|
x1: l.value.left + l.value.sumCellXHeight,
|
|
1014
1018
|
x2: M.value.x + l.value.sumCellXHeight,
|
|
@@ -1018,7 +1022,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1018
1022
|
"stroke-width": e.value.style.layout.crosshairs.strokeWidth,
|
|
1019
1023
|
"stroke-dasharray": e.value.style.layout.crosshairs.strokeDasharray,
|
|
1020
1024
|
"stroke-linecap": "round"
|
|
1021
|
-
}, null, 8,
|
|
1025
|
+
}, null, 8, oa),
|
|
1022
1026
|
g("line", {
|
|
1023
1027
|
x1: M.value.x + l.value.sumCellXHeight + (l.value.cellSize.width - r.value) / 2,
|
|
1024
1028
|
x2: M.value.x + l.value.sumCellXHeight + (l.value.cellSize.width - r.value) / 2,
|
|
@@ -1028,14 +1032,14 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1028
1032
|
"stroke-width": e.value.style.layout.crosshairs.strokeWidth,
|
|
1029
1033
|
"stroke-dasharray": e.value.style.layout.crosshairs.strokeDasharray,
|
|
1030
1034
|
"stroke-linecap": "round"
|
|
1031
|
-
}, null, 8,
|
|
1035
|
+
}, null, 8, sa)
|
|
1032
1036
|
])) : f("", !0),
|
|
1033
|
-
|
|
1034
|
-
], 14,
|
|
1037
|
+
C(t.$slots, "svg", { svg: B.value }, void 0, !0)
|
|
1038
|
+
], 14, Il)),
|
|
1035
1039
|
e.value.style.legend.show ? (u(), i("div", {
|
|
1036
1040
|
key: 0,
|
|
1037
1041
|
ref_key: "legendRight",
|
|
1038
|
-
ref:
|
|
1042
|
+
ref: Bt,
|
|
1039
1043
|
class: "vue-ui-heatmap-legend-right",
|
|
1040
1044
|
style: L({
|
|
1041
1045
|
"--legend-width": e.value.style.legend.width + "px"
|
|
@@ -1058,7 +1062,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1058
1062
|
r: e.value.style.legend.roundingValue
|
|
1059
1063
|
})
|
|
1060
1064
|
)), 5)),
|
|
1061
|
-
g("div",
|
|
1065
|
+
g("div", ua, [
|
|
1062
1066
|
g("div", {
|
|
1063
1067
|
class: "vue-ui-heatmap-gauge",
|
|
1064
1068
|
style: L({
|
|
@@ -1081,7 +1085,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1081
1085
|
position: "absolute",
|
|
1082
1086
|
width: "100%",
|
|
1083
1087
|
height: "2px",
|
|
1084
|
-
background: [void 0, null].includes(R.value) ? "transparent" : n(Le)(
|
|
1088
|
+
background: [void 0, null].includes(R.value) ? "transparent" : n(Le)(Ce.value.datapoint.color),
|
|
1085
1089
|
top: `${[void 0, null].includes(R.value) ? 0 : (1 - R.value / q.value) * 100}%`,
|
|
1086
1090
|
transition: "all 0.2s ease-in-out",
|
|
1087
1091
|
"--background-color": e.value.style.backgroundColor,
|
|
@@ -1091,7 +1095,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1091
1095
|
"--gauge-arrow-font-size": e.value.style.legend.fontSize + "px"
|
|
1092
1096
|
})
|
|
1093
1097
|
}, [
|
|
1094
|
-
g("div",
|
|
1098
|
+
g("div", ia, F(n(K)(
|
|
1095
1099
|
e.value.style.layout.cells.value.formatter,
|
|
1096
1100
|
n(J)(R.value),
|
|
1097
1101
|
n(W)({
|
|
@@ -1101,8 +1105,8 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1101
1105
|
r: e.value.style.legend.roundingValue
|
|
1102
1106
|
})
|
|
1103
1107
|
)), 1)
|
|
1104
|
-
], 12,
|
|
1105
|
-
[
|
|
1108
|
+
], 12, na), [
|
|
1109
|
+
[yl, ![void 0, null].includes(R.value)]
|
|
1106
1110
|
])
|
|
1107
1111
|
], 4)
|
|
1108
1112
|
]),
|
|
@@ -1125,8 +1129,8 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1125
1129
|
)), 5))
|
|
1126
1130
|
], 4)) : f("", !0)
|
|
1127
1131
|
], 2),
|
|
1128
|
-
t.$slots.watermark ? (u(), i("div",
|
|
1129
|
-
|
|
1132
|
+
t.$slots.watermark ? (u(), i("div", ra, [
|
|
1133
|
+
C(t.$slots, "watermark", H(X({ isPrinting: n(tt) || n(lt) })), void 0, !0)
|
|
1130
1134
|
])) : f("", !0),
|
|
1131
1135
|
t.$slots.source ? (u(), i("div", {
|
|
1132
1136
|
key: 5,
|
|
@@ -1134,9 +1138,9 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1134
1138
|
ref: Qe,
|
|
1135
1139
|
dir: "auto"
|
|
1136
1140
|
}, [
|
|
1137
|
-
|
|
1141
|
+
C(t.$slots, "source", {}, void 0, !0)
|
|
1138
1142
|
], 512)) : f("", !0),
|
|
1139
|
-
|
|
1143
|
+
we(n(Y), {
|
|
1140
1144
|
teleportTo: e.value.style.tooltip.teleportTo,
|
|
1141
1145
|
show: E.value.showTooltip && ne.value,
|
|
1142
1146
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
@@ -1157,20 +1161,20 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1157
1161
|
smoothForce: e.value.style.tooltip.smoothForce,
|
|
1158
1162
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
1159
1163
|
}, {
|
|
1160
|
-
"tooltip-before":
|
|
1161
|
-
|
|
1164
|
+
"tooltip-before": x(() => [
|
|
1165
|
+
C(t.$slots, "tooltip-before", H(X({ ...Ce.value })), void 0, !0)
|
|
1162
1166
|
]),
|
|
1163
|
-
"tooltip-after":
|
|
1164
|
-
|
|
1167
|
+
"tooltip-after": x(() => [
|
|
1168
|
+
C(t.$slots, "tooltip-after", H(X({ ...Ce.value })), void 0, !0)
|
|
1165
1169
|
]),
|
|
1166
1170
|
_: 3
|
|
1167
1171
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1168
|
-
N.value && e.value.userOptions.buttons.table ? (u(), be(
|
|
1172
|
+
N.value && e.value.userOptions.buttons.table ? (u(), be(hl(ke.value.component), fl({ key: 6 }, ke.value.props, {
|
|
1169
1173
|
ref_key: "tableUnit",
|
|
1170
1174
|
ref: ce,
|
|
1171
1175
|
onClose: He
|
|
1172
1176
|
}), bt({
|
|
1173
|
-
content:
|
|
1177
|
+
content: x(() => [
|
|
1174
1178
|
g("div", {
|
|
1175
1179
|
ref_key: "tableContainer",
|
|
1176
1180
|
ref: Ye,
|
|
@@ -1179,7 +1183,7 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1179
1183
|
}, [
|
|
1180
1184
|
g("div", {
|
|
1181
1185
|
style: L(`width:100%;overflow-x:auto;position:relative;${e.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1182
|
-
class: ge({ "vue-ui-responsive": n(
|
|
1186
|
+
class: ge({ "vue-ui-responsive": n(al) })
|
|
1183
1187
|
}, [
|
|
1184
1188
|
e.value.table.useDialog ? f("", !0) : (u(), i("div", {
|
|
1185
1189
|
key: 0,
|
|
@@ -1187,21 +1191,21 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1187
1191
|
tabindex: "0",
|
|
1188
1192
|
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};`),
|
|
1189
1193
|
onClick: He,
|
|
1190
|
-
onKeypress:
|
|
1194
|
+
onKeypress: gl(He, ["enter"])
|
|
1191
1195
|
}, [
|
|
1192
|
-
|
|
1196
|
+
we(n(Z), {
|
|
1193
1197
|
name: "close",
|
|
1194
1198
|
stroke: e.value.table.th.color,
|
|
1195
1199
|
"stroke-width": 2
|
|
1196
1200
|
}, null, 8, ["stroke"])
|
|
1197
1201
|
], 36)),
|
|
1198
|
-
g("table",
|
|
1202
|
+
g("table", va, [
|
|
1199
1203
|
e.value.table.useDialog ? f("", !0) : (u(), i("caption", {
|
|
1200
1204
|
key: 0,
|
|
1201
1205
|
style: L(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1202
1206
|
}, [
|
|
1203
1207
|
Pe(F(e.value.style.title.text) + " ", 1),
|
|
1204
|
-
e.value.style.title.subtitle.text ? (u(), i("span",
|
|
1208
|
+
e.value.style.title.subtitle.text ? (u(), i("span", ca, F(e.value.style.title.subtitle.text), 1)) : f("", !0)
|
|
1205
1209
|
], 4)),
|
|
1206
1210
|
g("thead", null, [
|
|
1207
1211
|
g("tr", {
|
|
@@ -1228,15 +1232,15 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1228
1232
|
class: "vue-ui-data-table__tbody__td",
|
|
1229
1233
|
style: L(`outline:${e.value.table.td.outline}`)
|
|
1230
1234
|
}, [
|
|
1231
|
-
g("div",
|
|
1232
|
-
], 12,
|
|
1235
|
+
g("div", ya, F(a), 1)
|
|
1236
|
+
], 12, da),
|
|
1233
1237
|
(u(!0), i(z, null, P(y.dataset, (v, c) => (u(), i("td", {
|
|
1234
1238
|
class: "vue-ui-data-table__tbody__td",
|
|
1235
1239
|
"data-cell": y.dataset[c].name,
|
|
1236
1240
|
style: L(`outline:${e.value.table.td.outline}`)
|
|
1237
1241
|
}, [
|
|
1238
|
-
g("div",
|
|
1239
|
-
], 12,
|
|
1242
|
+
g("div", fa, F(isNaN(v.values[o]) ? "-" : n(W)({ p: e.value.style.layout.dataLabels.prefix, v: v.values[o], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
1243
|
+
], 12, ha))), 256))
|
|
1240
1244
|
], 6))), 256))
|
|
1241
1245
|
])
|
|
1242
1246
|
])
|
|
@@ -1247,20 +1251,20 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1247
1251
|
}, [
|
|
1248
1252
|
e.value.table.useDialog ? {
|
|
1249
1253
|
name: "title",
|
|
1250
|
-
fn:
|
|
1254
|
+
fn: x(() => [
|
|
1251
1255
|
Pe(F(ke.value.title), 1)
|
|
1252
1256
|
]),
|
|
1253
1257
|
key: "0"
|
|
1254
1258
|
} : void 0,
|
|
1255
1259
|
e.value.table.useDialog ? {
|
|
1256
1260
|
name: "actions",
|
|
1257
|
-
fn:
|
|
1261
|
+
fn: x(() => [
|
|
1258
1262
|
g("button", {
|
|
1259
1263
|
tabindex: "0",
|
|
1260
1264
|
class: "vue-ui-user-options-button",
|
|
1261
1265
|
onClick: s[0] || (s[0] = (a) => Ne(e.value.userOptions.callbacks.csv))
|
|
1262
1266
|
}, [
|
|
1263
|
-
|
|
1267
|
+
we(n(Z), {
|
|
1264
1268
|
name: "excel",
|
|
1265
1269
|
stroke: ke.value.props.color
|
|
1266
1270
|
}, null, 8, ["stroke"])
|
|
@@ -1269,15 +1273,15 @@ const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"]
|
|
|
1269
1273
|
key: "1"
|
|
1270
1274
|
} : void 0
|
|
1271
1275
|
]), 1040)) : f("", !0),
|
|
1272
|
-
n(me) ? (u(), be(
|
|
1273
|
-
], 46,
|
|
1276
|
+
n(me) ? (u(), be($l, { key: 7 })) : f("", !0)
|
|
1277
|
+
], 46, Pl));
|
|
1274
1278
|
}
|
|
1275
|
-
},
|
|
1279
|
+
}, ba = /* @__PURE__ */ Hl(ga, [["__scopeId", "data-v-0f0d4652"]]), Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1276
1280
|
__proto__: null,
|
|
1277
|
-
default:
|
|
1281
|
+
default: ba
|
|
1278
1282
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1279
1283
|
export {
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1284
|
+
Ma as a,
|
|
1285
|
+
Ea as b,
|
|
1286
|
+
ba as v
|
|
1283
1287
|
};
|