vue-data-ui 3.3.1 → 3.3.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/{PackageVersion-BfykJm_B.js → PackageVersion-r-Q1R3nV.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/useResizeObserverEffect-DfnWps4W.js +109 -0
- package/dist/{vue-data-ui-j8Dnx_Ui.js → vue-data-ui-BFdGl7rL.js} +54 -54
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-Cml_eeEU.js → vue-ui-3d-bar-kzlIaqHU.js} +1 -1
- package/dist/{vue-ui-age-pyramid-MULKSv5c.js → vue-ui-age-pyramid-YFzQ15k1.js} +26 -33
- package/dist/{vue-ui-bullet-BHO5zu9m.js → vue-ui-bullet-DdjpiM-T.js} +1 -1
- package/dist/{vue-ui-candlestick-B7EjAlSi.js → vue-ui-candlestick-x9U5Ni0N.js} +28 -35
- package/dist/{vue-ui-carousel-table-DXnYj0Gc.js → vue-ui-carousel-table-CRI_iPLn.js} +1 -1
- package/dist/{vue-ui-chestnut-B1Usqda-.js → vue-ui-chestnut-YrEA5Gq3.js} +1 -1
- package/dist/{vue-ui-chord-DgXH82Hg.js → vue-ui-chord-D_2DdvpZ.js} +1 -1
- package/dist/{vue-ui-circle-pack-BQfaZFFz.js → vue-ui-circle-pack-xm9-OOAR.js} +1 -1
- package/dist/{vue-ui-dashboard-C6xHAPp8.js → vue-ui-dashboard-29ZuFoLn.js} +54 -54
- package/dist/{vue-ui-donut-swJu7UL2.js → vue-ui-donut-BQptfVfE.js} +1 -1
- package/dist/{vue-ui-donut-evolution-D_CKlaay.js → vue-ui-donut-evolution-fiqngEFW.js} +72 -79
- package/dist/{vue-ui-dumbbell-siD31WFG.js → vue-ui-dumbbell-Cw45EBO0.js} +28 -35
- package/dist/{vue-ui-flow-BZCnqIs-.js → vue-ui-flow-DPu9BjPy.js} +1 -1
- package/dist/{vue-ui-funnel-DmgcIRzW.js → vue-ui-funnel-CtlDuNjO.js} +1 -1
- package/dist/{vue-ui-galaxy-C-zegxf9.js → vue-ui-galaxy-BiVjoNHW.js} +1 -1
- package/dist/{vue-ui-gauge-D6C8eUvP.js → vue-ui-gauge-CoM6Q3Nb.js} +1 -1
- package/dist/{vue-ui-gizmo-iSYUVKlt.js → vue-ui-gizmo-DXG8dS5u.js} +1 -1
- package/dist/{vue-ui-heatmap-RHDxexNf.js → vue-ui-heatmap-D6n8AnCc.js} +135 -156
- package/dist/{vue-ui-history-plot-4nwAd1qA.js → vue-ui-history-plot-C8WMHda_.js} +35 -42
- package/dist/{vue-ui-molecule-BhisFSGQ.js → vue-ui-molecule-DC4_vXt_.js} +1 -1
- package/dist/{vue-ui-mood-radar-B8yHPdrV.js → vue-ui-mood-radar-BgT5wMS0.js} +1 -1
- package/dist/{vue-ui-nested-donuts-Bfp0oVSK.js → vue-ui-nested-donuts-D2gSqe1f.js} +1 -1
- package/dist/{vue-ui-onion-f1B0W_oT.js → vue-ui-onion-CEbv2ii4.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DcY-0R-7.js → vue-ui-parallel-coordinate-plot-budrvcwU.js} +34 -41
- package/dist/{vue-ui-quadrant-DuzopA33.js → vue-ui-quadrant-PpymeiXe.js} +1 -1
- package/dist/{vue-ui-quick-chart-45Tm1UnC.js → vue-ui-quick-chart-k6mjTD56.js} +205 -212
- package/dist/{vue-ui-radar-DDS405TF.js → vue-ui-radar-C5NvYMnv.js} +1 -1
- package/dist/{vue-ui-relation-circle-BqXHJEvi.js → vue-ui-relation-circle-Df33aaUT.js} +1 -1
- package/dist/{vue-ui-ridgeline-Lx7YOCRg.js → vue-ui-ridgeline-BTw-37RS.js} +34 -41
- package/dist/{vue-ui-rings-crjrV65X.js → vue-ui-rings-C_s9xOtZ.js} +1 -1
- package/dist/{vue-ui-scatter-Bk4liS2c.js → vue-ui-scatter-Jd8bQ0S5.js} +1 -1
- package/dist/{vue-ui-skeleton-Pu9gPf97.js → vue-ui-skeleton-Ce7H57o7.js} +1 -1
- package/dist/{vue-ui-spark-trend-BmaybxJn.js → vue-ui-spark-trend-DQy4iSO7.js} +1 -1
- package/dist/{vue-ui-sparkbar-DvhcXniz.js → vue-ui-sparkbar-CUFTHql0.js} +1 -1
- package/dist/{vue-ui-sparkgauge-D4Brfset.js → vue-ui-sparkgauge-CcykuBps.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-D5_lR__d.js → vue-ui-sparkhistogram-CyGvYpYn.js} +1 -1
- package/dist/{vue-ui-sparkline-DxNG5QQg.js → vue-ui-sparkline-CLWJM6hA.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-BTFzo3fq.js → vue-ui-sparkstackbar-Cln1pduE.js} +1 -1
- package/dist/{vue-ui-stackbar-B8glHsE6.js → vue-ui-stackbar-DIUil9DO.js} +24 -39
- package/dist/{vue-ui-strip-plot-C5Bro8-W.js → vue-ui-strip-plot-C4U0fT5D.js} +104 -111
- package/dist/{vue-ui-table-Ddu9yx2S.js → vue-ui-table-DpdP3PDq.js} +2 -2
- package/dist/{vue-ui-table-sparkline-D3tgrV_k.js → vue-ui-table-sparkline-Chf5YY4A.js} +1 -1
- package/dist/{vue-ui-thermometer-BxQIZoXd.js → vue-ui-thermometer-D6RmaNE6.js} +1 -1
- package/dist/{vue-ui-timer-BwFlr_19.js → vue-ui-timer-C5E1kJRt.js} +1 -1
- package/dist/{vue-ui-tiremarks-KwISwJS6.js → vue-ui-tiremarks-D0erVBnj.js} +1 -1
- package/dist/{vue-ui-treemap-C6PLDL2Y.js → vue-ui-treemap-K8FYxuYz.js} +1 -1
- package/dist/{vue-ui-vertical-bar-CTmRo06n.js → vue-ui-vertical-bar-BA3OY8Sh.js} +1 -1
- package/dist/{vue-ui-waffle-BwOLL9aa.js → vue-ui-waffle-CgLgPuro.js} +1 -1
- package/dist/{vue-ui-wheel-KI9mkz8y.js → vue-ui-wheel-C_cOUhCs.js} +1 -1
- package/dist/{vue-ui-word-cloud-DTyjx6X4.js → vue-ui-word-cloud-uvHNOIpN.js} +1 -1
- package/dist/{vue-ui-world-C3QXAlC7.js → vue-ui-world-DmeNMwpX.js} +1 -1
- package/dist/{vue-ui-xy-canvas-CdkE1NHd.js → vue-ui-xy-canvas-BQKR36bd.js} +1 -1
- package/dist/{vue-ui-xy-b-CN-G4J.js → vue-ui-xy-tWE4H5ij.js} +274 -281
- package/package.json +1 -1
- package/dist/useTimeLabelCollider-CIsgDrl9.js +0 -78
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useCssVars as Jt, defineAsyncComponent as Q, computed as y, ref as d, shallowRef as Qt, toRefs as Zt, watch as we, onBeforeUnmount as dt, onMounted as el,
|
|
2
|
-
import { c as
|
|
1
|
+
import { useCssVars as Jt, defineAsyncComponent as Q, computed as y, ref as d, shallowRef as Qt, toRefs as Zt, watch as we, onBeforeUnmount as dt, onMounted as el, reactive as ht, nextTick as Xe, createElementBlock as n, openBlock as u, normalizeStyle as w, normalizeClass as ce, createBlock as de, createCommentVNode as f, createElementVNode as p, createVNode as ke, unref as i, createSlots as yt, withCtx as z, renderSlot as L, normalizeProps as Z, guardReactiveProps as ee, Fragment as C, renderList as F, withDirectives as ft, createTextVNode as Ie, toDisplayString as T, vShow as tl, resolveDynamicComponent as ll, mergeProps as al, withKeys as ol } from "vue";
|
|
2
|
+
import { c as Ve, t as sl, B as ul, o as pt, f as gt, a0 as he, g as il, X as nl, E as Ae, a as B, d as H, q as E, ai as rl, x as vl, y as cl, z as dl, A as hl } from "./lib-CEjkWSLj.js";
|
|
3
3
|
import { t as Ce, u as yl } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as fl, a as bt } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
5
|
import { u as pl } from "./usePrinter-DJ1iH-F_.js";
|
|
@@ -8,7 +8,7 @@ import { u as ml } from "./useSvgExport-DrjCWun4.js";
|
|
|
8
8
|
import { u as mt } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
9
|
import { u as xl } from "./useTableResponsive-Cbx-ACcP.js";
|
|
10
10
|
import { u as wl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
-
import { u as xt } from "./
|
|
11
|
+
import { u as Be, a as xt } from "./useResizeObserverEffect-DfnWps4W.js";
|
|
12
12
|
import { u as kl } from "./useChartAccessibility-9icAAmYg.js";
|
|
13
13
|
import Al from "./img-J2dLIr8Y.js";
|
|
14
14
|
import Cl from "./Title-Camz1Lce.js";
|
|
@@ -28,7 +28,7 @@ function wt(b, {
|
|
|
28
28
|
cellHeight: ye,
|
|
29
29
|
maxFontSize: W,
|
|
30
30
|
minFontSize: te,
|
|
31
|
-
index:
|
|
31
|
+
index: M,
|
|
32
32
|
reportRotation: le,
|
|
33
33
|
reportHide: X,
|
|
34
34
|
rotateAll: Le,
|
|
@@ -39,26 +39,26 @@ function wt(b, {
|
|
|
39
39
|
b.setAttribute("font-size", W);
|
|
40
40
|
const j = b.getComputedTextLength();
|
|
41
41
|
if (j <= P)
|
|
42
|
-
le(
|
|
42
|
+
le(M, !1), X(M, !1);
|
|
43
43
|
else {
|
|
44
|
-
const
|
|
45
|
-
|
|
44
|
+
const O = Math.floor(W * P / j);
|
|
45
|
+
O >= te ? (b.setAttribute("font-size", O), le(M, !1), X(M, !1)) : (le(M, !0), X(M, !1), k = !0);
|
|
46
46
|
}
|
|
47
47
|
if (Le && (k = !0), k) {
|
|
48
48
|
b.setAttribute("font-size", W);
|
|
49
|
-
const
|
|
49
|
+
const O = b.getBBox(), S = O.x + O.width / 2, ae = O.y + O.height / 2;
|
|
50
50
|
b.setAttribute("transform", `rotate(-90 ${S} ${ae})`);
|
|
51
51
|
const q = b.getBBox().width;
|
|
52
52
|
if (q <= ye)
|
|
53
|
-
X(
|
|
53
|
+
X(M, !1);
|
|
54
54
|
else {
|
|
55
55
|
const oe = Math.floor(W * ye / q);
|
|
56
|
-
oe >= te ? (b.setAttribute("font-size", oe), X(
|
|
56
|
+
oe >= te ? (b.setAttribute("font-size", oe), X(M, !1)) : (fe = !0, X(M, !0));
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
(Te || fe) && b.setAttribute("visibility", "hidden");
|
|
60
60
|
}
|
|
61
|
-
const zl = ["id"], $l = ["xmlns", "viewBox"],
|
|
61
|
+
const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"], Ol = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Rl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Fl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Dl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "onMouseover", "onMouseout", "onClick"], Nl = ["font-size", "font-weight", "fill", "x", "y"], Hl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Pl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Xl = ["font-size", "fill", "x", "y", "font-weight"], Il = ["font-size", "fill", "x", "y", "font-weight"], Vl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Bl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], El = { key: 6 }, Ul = ["x", "y", "width", "height", "stroke", "stroke-width"], Yl = { class: "vue-ui-heatmap-legend-gauge-right" }, Gl = ["data-value"], Wl = { class: "vue-ui-heatmap-gauge-indicator-value" }, jl = {
|
|
62
62
|
key: 4,
|
|
63
63
|
class: "vue-data-ui-watermark"
|
|
64
64
|
}, ql = { class: "vue-ui-data-table" }, Kl = { key: 0 }, Jl = ["data-cell"], Ql = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Zl = ["data-cell"], ea = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ta = {
|
|
@@ -80,28 +80,28 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
80
80
|
emits: ["selectDatapoint"],
|
|
81
81
|
setup(b, { expose: P, emit: ye }) {
|
|
82
82
|
Jt((t) => ({
|
|
83
|
-
|
|
83
|
+
v7e341d2a: t.tdo
|
|
84
84
|
}));
|
|
85
|
-
const W = Q(() => import("./Tooltip-VOcQEHa4.js")), te = Q(() => import("./BaseIcon-eZbszQrv.js")),
|
|
85
|
+
const W = Q(() => import("./Tooltip-VOcQEHa4.js")), te = Q(() => import("./BaseIcon-eZbszQrv.js")), M = Q(() => import("./PenAndPaper-Bo-lMUik.js")), le = Q(() => import("./UserOptions-CSja1SGU.js")), X = Q(() => import("./PackageVersion-r-Q1R3nV.js")), Le = Q(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_heatmap: Te } = fl(), k = b, fe = ye, j = y({
|
|
86
86
|
get() {
|
|
87
87
|
return !!k.dataset && k.dataset.length;
|
|
88
88
|
},
|
|
89
89
|
set(t) {
|
|
90
90
|
return t;
|
|
91
91
|
}
|
|
92
|
-
}),
|
|
92
|
+
}), O = d(Ve()), S = d(null), ae = d(!1), q = d(""), oe = d(void 0), se = d(null), Ee = d(0), Ue = d(null), Ye = d(0), kt = d(null), ue = d(null), Se = d(null), Ge = d(null), We = d(null), At = d(null), je = d(null), Ct = d(null), _e = d(null), ze = d(null), Lt = d(null), qe = d(null), K = Qt(null), e = d(Re());
|
|
93
93
|
function Tt() {
|
|
94
|
-
const t = Array(7).fill("_"),
|
|
95
|
-
for (let v = 0; v <
|
|
94
|
+
const t = Array(7).fill("_"), s = [], a = 14, o = t.length;
|
|
95
|
+
for (let v = 0; v < o; v += 1) {
|
|
96
96
|
const c = [];
|
|
97
97
|
for (let x = 0; x < a; x += 1)
|
|
98
98
|
c.push(v + x * 2);
|
|
99
|
-
|
|
99
|
+
s.push({
|
|
100
100
|
name: `${t[v]}`,
|
|
101
101
|
values: c
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
return
|
|
104
|
+
return s;
|
|
105
105
|
}
|
|
106
106
|
const { loading: pe, FINAL_DATASET: m, manualLoading: $e } = gl({
|
|
107
107
|
...Zt(k),
|
|
@@ -109,7 +109,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
109
109
|
prepareConfig: Re,
|
|
110
110
|
callback: () => {
|
|
111
111
|
Promise.resolve().then(async () => {
|
|
112
|
-
await
|
|
112
|
+
await Xe(), S.value && rl(S.value, { delta: 0.1, delay: 250 });
|
|
113
113
|
});
|
|
114
114
|
},
|
|
115
115
|
skeletonDataset: Tt(),
|
|
@@ -138,7 +138,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
})
|
|
141
|
-
}), { userOptionsVisible:
|
|
141
|
+
}), { userOptionsVisible: Me, setUserOptionsVisibility: St, keepUserOptionState: Ke } = wl({ config: e.value }), { svgRef: Oe } = kl({ config: e.value.style.title });
|
|
142
142
|
function Je(t) {
|
|
143
143
|
St(t);
|
|
144
144
|
}
|
|
@@ -147,21 +147,21 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
147
147
|
userConfig: k.config,
|
|
148
148
|
defaultConfig: Te
|
|
149
149
|
});
|
|
150
|
-
let
|
|
151
|
-
return t.theme ?
|
|
150
|
+
let s = {};
|
|
151
|
+
return t.theme ? s = {
|
|
152
152
|
...bt({
|
|
153
153
|
userConfig: Ll.vue_ui_heatmap[t.theme] || k.config,
|
|
154
154
|
defaultConfig: t
|
|
155
155
|
})
|
|
156
|
-
} :
|
|
156
|
+
} : s = t, k.config && ul(k.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? s.style.layout.dataLabels.xAxis.showOnlyAtModulo = k.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : s.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, s;
|
|
157
157
|
}
|
|
158
158
|
we(() => k.config, (t) => {
|
|
159
|
-
pe.value || (e.value = Re()),
|
|
159
|
+
pe.value || (e.value = Re()), Me.value = !e.value.userOptions.showOnChartHover, Fe(), Ye.value += 1, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.tooltip.show, ie.value = e.value.style.layout.width, ne.value = e.value.style.layout.height;
|
|
160
160
|
}, { deep: !0 }), we(() => k.dataset, (t) => {
|
|
161
161
|
Array.isArray(t) && t.length > 0 && ($e.value = !1), Fe();
|
|
162
162
|
}, { deep: !0 });
|
|
163
163
|
const { isPrinting: Qe, isImaging: Ze, generatePdf: et, generateImage: tt } = pl({
|
|
164
|
-
elementId: `heatmap__${
|
|
164
|
+
elementId: `heatmap__${O.value}`,
|
|
165
165
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
166
166
|
options: e.value.userOptions.print
|
|
167
167
|
}), _t = y(() => e.value.userOptions.show && !e.value.style.title.text), $ = d({
|
|
@@ -182,7 +182,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
182
182
|
debug: lt.value
|
|
183
183
|
}), j.value = !1, $e.value = !0), pt(k.dataset) || ($e.value = e.value.loading), e.value.responsive) {
|
|
184
184
|
const t = Ce(() => {
|
|
185
|
-
const { width:
|
|
185
|
+
const { width: s, height: a } = yl({
|
|
186
186
|
chart: S.value,
|
|
187
187
|
title: e.value.style.title.text ? Ge.value : null,
|
|
188
188
|
// add legend hirizontal in legend attr
|
|
@@ -191,7 +191,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
191
191
|
noTitle: We.value
|
|
192
192
|
});
|
|
193
193
|
requestAnimationFrame(() => {
|
|
194
|
-
ie.value =
|
|
194
|
+
ie.value = s, ne.value = a;
|
|
195
195
|
});
|
|
196
196
|
});
|
|
197
197
|
I.value && (K.value && I.value.unobserve(K.value), I.value.disconnect()), I.value = new ResizeObserver(t), K.value = S.value.parentNode, I.value.observe(K.value);
|
|
@@ -208,62 +208,41 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
208
208
|
})), re = d(0), $t = Ce((t) => {
|
|
209
209
|
re.value = t;
|
|
210
210
|
}, 100);
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
if (!o) return;
|
|
214
|
-
const a = new ResizeObserver((s) => {
|
|
215
|
-
$t(s[0].contentRect.height);
|
|
216
|
-
});
|
|
217
|
-
a.observe(o), t(() => a.disconnect());
|
|
218
|
-
});
|
|
219
|
-
const J = d(0), Ot = Ce((t) => {
|
|
211
|
+
Be({ elementRef: _e, callback: $t, attr: "height" });
|
|
212
|
+
const J = d(0), Mt = Ce((t) => {
|
|
220
213
|
J.value = t;
|
|
221
214
|
}, 100);
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
if (!o) return;
|
|
225
|
-
const a = new ResizeObserver((s) => {
|
|
226
|
-
Ot(s[0].contentRect.width);
|
|
227
|
-
});
|
|
228
|
-
a.observe(o), t(() => a.disconnect());
|
|
229
|
-
});
|
|
230
|
-
const ge = d(0), Mt = Ce((t) => {
|
|
215
|
+
Be({ elementRef: je, callback: Mt, attr: "width" });
|
|
216
|
+
const ge = d(0), Ot = Ce((t) => {
|
|
231
217
|
ge.value = t;
|
|
232
218
|
}, 100);
|
|
233
|
-
|
|
234
|
-
const o = ze.value;
|
|
235
|
-
if (!o) return;
|
|
236
|
-
const a = new ResizeObserver((s) => {
|
|
237
|
-
Mt(s[0].contentRect.height);
|
|
238
|
-
});
|
|
239
|
-
a.observe(o), t(() => a.disconnect());
|
|
240
|
-
}), dt(() => {
|
|
219
|
+
Be({ elementRef: ze, callback: Ot, attr: "height" }), dt(() => {
|
|
241
220
|
re.value = 0, J.value = 0, ge.value = 0;
|
|
242
221
|
});
|
|
243
222
|
const r = y(() => Math.min(_.value.height, _.value.width) / 1e3 * e.value.style.layout.cells.spacing), l = y(() => {
|
|
244
223
|
let t = 0;
|
|
245
224
|
e.value.style.legend.show && (t = e.value.style.legend.width);
|
|
246
|
-
const
|
|
225
|
+
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 = _.value.height - s.top - s.bottom - re.value - a, c = _.value.width / 60, x = {
|
|
247
226
|
x: r.value * D.value,
|
|
248
227
|
y: r.value * ((m.value || []).length + 1)
|
|
249
|
-
}, N = _.value.width -
|
|
228
|
+
}, N = _.value.width - s.left - s.right - x.x - c * 2 - 2 - t - J.value, h = v - c - x.y - ge.value - o - e.value.style.layout.cells.columnTotal.value.offsetY, A = {
|
|
250
229
|
width: Math.max(3, N / D.value),
|
|
251
230
|
height: Math.max(3, h / (m.value.length ?? 1))
|
|
252
231
|
};
|
|
253
232
|
return {
|
|
254
|
-
top:
|
|
233
|
+
top: s.top + re.value + c + a,
|
|
255
234
|
topLabelsHeight: re.value,
|
|
256
235
|
sumCellXHeight: c,
|
|
257
236
|
height: h,
|
|
258
|
-
left:
|
|
259
|
-
right:
|
|
260
|
-
bottom: _.value.height -
|
|
237
|
+
left: s.left + J.value + c / 2,
|
|
238
|
+
right: s.right - t,
|
|
239
|
+
bottom: _.value.height - s.bottom - ge.value,
|
|
261
240
|
width: N,
|
|
262
241
|
cellSize: A
|
|
263
242
|
};
|
|
264
243
|
}), V = y(() => Math.max(...m.value.flatMap((t) => t.values))), ve = y(() => Math.min(...m.value.flatMap((t) => t.values))), U = y(() => {
|
|
265
244
|
const t = m.value.flatMap((a) => a.values);
|
|
266
|
-
return t.reduce((a,
|
|
245
|
+
return t.reduce((a, o) => a + o, 0) / t.length;
|
|
267
246
|
}), Rt = y(() => mt({
|
|
268
247
|
values: e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : m.value.map((t) => t.name),
|
|
269
248
|
maxDatapoints: m.value.length,
|
|
@@ -277,17 +256,17 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
277
256
|
start: 0,
|
|
278
257
|
end: D.value
|
|
279
258
|
})), g = y(() => {
|
|
280
|
-
const t = Rt.value.map((h) => h.text),
|
|
259
|
+
const t = Rt.value.map((h) => h.text), s = Ft.value.map((h) => h.text), a = m.value.map((h) => h.values.reduce((A, Pe) => A + Pe, 0)), o = Math.max(...a), v = Math.min(...a), c = [];
|
|
281
260
|
for (let h = 0; h < D.value; h += 1)
|
|
282
261
|
c.push(m.value.map((A) => A.values[h] || 0).reduce((A, Pe) => A + Pe, 0));
|
|
283
262
|
const x = Math.max(...c), N = Math.min(...c);
|
|
284
263
|
return {
|
|
285
264
|
yTotals: a.map((h) => {
|
|
286
|
-
const A = isNaN(h /
|
|
265
|
+
const A = isNaN(h / o) ? 0 : h / o;
|
|
287
266
|
return {
|
|
288
267
|
total: h,
|
|
289
268
|
proportion: A,
|
|
290
|
-
color: he(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, v,
|
|
269
|
+
color: he(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, v, o, h)
|
|
291
270
|
};
|
|
292
271
|
}),
|
|
293
272
|
xTotals: c.map((h) => {
|
|
@@ -299,9 +278,9 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
299
278
|
};
|
|
300
279
|
}),
|
|
301
280
|
yLabels: t,
|
|
302
|
-
xLabels:
|
|
281
|
+
xLabels: s.slice(0, D.value)
|
|
303
282
|
};
|
|
304
|
-
}), Y = y(() => (m.value.forEach((t,
|
|
283
|
+
}), Y = y(() => (m.value.forEach((t, s) => {
|
|
305
284
|
il({
|
|
306
285
|
datasetObject: t,
|
|
307
286
|
requiredAttributes: ["values"]
|
|
@@ -310,44 +289,44 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
310
289
|
componentName: "VueUiHeatmap",
|
|
311
290
|
type: "datasetSerieAttribute",
|
|
312
291
|
property: "values",
|
|
313
|
-
index:
|
|
292
|
+
index: s,
|
|
314
293
|
debug: lt.value
|
|
315
294
|
});
|
|
316
295
|
});
|
|
317
|
-
}), m.value.map((t,
|
|
296
|
+
}), m.value.map((t, s) => ({
|
|
318
297
|
...t,
|
|
319
|
-
temperatures: (t.values || []).map((a,
|
|
298
|
+
temperatures: (t.values || []).map((a, o) => a >= U.value ? {
|
|
320
299
|
side: "up",
|
|
321
300
|
color: he(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ve.value, V.value, a),
|
|
322
301
|
ratio: Math.abs(Math.abs(a - U.value) / Math.abs(V.value - U.value)) > 1 ? 1 : Math.abs(Math.abs(a - U.value) / Math.abs(V.value - U.value)),
|
|
323
302
|
value: a,
|
|
324
|
-
yAxisName: g.value.yLabels[
|
|
325
|
-
xAxisName: g.value.xLabels[
|
|
326
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
303
|
+
yAxisName: g.value.yLabels[s],
|
|
304
|
+
xAxisName: g.value.xLabels[o],
|
|
305
|
+
id: `vue-data-ui-heatmap-cell-${Ve()}`
|
|
327
306
|
} : {
|
|
328
307
|
side: "down",
|
|
329
308
|
ratio: Math.abs(1 - Math.abs(a) / Math.abs(U.value)) > 1 ? 1 : Math.abs(1 - Math.abs(a) / Math.abs(U.value)),
|
|
330
309
|
color: he(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ve.value, V.value, a),
|
|
331
310
|
value: a,
|
|
332
|
-
yAxisName: g.value.yLabels[
|
|
333
|
-
xAxisName: g.value.xLabels[
|
|
334
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
311
|
+
yAxisName: g.value.yLabels[s],
|
|
312
|
+
xAxisName: g.value.xLabels[o],
|
|
313
|
+
id: `vue-data-ui-heatmap-cell-${Ve()}`
|
|
335
314
|
})
|
|
336
315
|
})))), at = y(() => m.value.length), ot = ht(Array(at.value * D.value || 1).fill(!1)), Dt = y(() => ot.some((t) => t));
|
|
337
|
-
function Nt(t,
|
|
338
|
-
ot[t] =
|
|
316
|
+
function Nt(t, s) {
|
|
317
|
+
ot[t] = s;
|
|
339
318
|
}
|
|
340
319
|
const st = ht(Array(at.value * D.value || 1).fill(!1)), Ht = y(() => st.some((t) => t));
|
|
341
|
-
function Pt(t,
|
|
342
|
-
st[t] =
|
|
320
|
+
function Pt(t, s) {
|
|
321
|
+
st[t] = s;
|
|
343
322
|
}
|
|
344
323
|
const R = d(null), be = d(null);
|
|
345
|
-
function Xt(t,
|
|
346
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex:
|
|
324
|
+
function Xt(t, s, a, o) {
|
|
325
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: s }), se.value = { x: a, y: o };
|
|
347
326
|
const { value: v, yAxisName: c, xAxisName: x, id: N } = t;
|
|
348
327
|
oe.value = N, R.value = v, be.value = {
|
|
349
328
|
datapoint: t,
|
|
350
|
-
seriesIndex:
|
|
329
|
+
seriesIndex: s,
|
|
351
330
|
series: Y.value,
|
|
352
331
|
config: e.value
|
|
353
332
|
}, ae.value = !0;
|
|
@@ -355,12 +334,12 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
355
334
|
const A = e.value.style.tooltip.customFormat;
|
|
356
335
|
dl(A) && hl(() => A({
|
|
357
336
|
datapoint: t,
|
|
358
|
-
seriesIndex:
|
|
337
|
+
seriesIndex: s,
|
|
359
338
|
series: Y.value,
|
|
360
339
|
config: e.value
|
|
361
340
|
})) ? q.value = A({
|
|
362
341
|
datapoint: t,
|
|
363
|
-
seriesIndex:
|
|
342
|
+
seriesIndex: s,
|
|
364
343
|
series: Y.value,
|
|
365
344
|
config: e.value
|
|
366
345
|
}) : (h += `<div>${c} ${x ? c ? ` - ${x}` : `${x}` : ""}</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:${he(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ve.value, V.value, v)}">⬤</span><span>${isNaN(v) ? "-" : B(
|
|
@@ -372,11 +351,11 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
372
351
|
s: e.value.style.layout.dataLabels.suffix,
|
|
373
352
|
r: e.value.style.tooltip.roundingValue
|
|
374
353
|
}),
|
|
375
|
-
{ datapoint: t, seriesIndex:
|
|
354
|
+
{ datapoint: t, seriesIndex: s }
|
|
376
355
|
)}</span></div>`, q.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${h}</div>`);
|
|
377
356
|
}
|
|
378
|
-
function It({ datapoint: t, seriesIndex:
|
|
379
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex:
|
|
357
|
+
function It({ datapoint: t, seriesIndex: s }) {
|
|
358
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), ae.value = !1, oe.value = void 0, R.value = null, se.value = null;
|
|
380
359
|
}
|
|
381
360
|
function Vt(t) {
|
|
382
361
|
return B(
|
|
@@ -407,19 +386,19 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
407
386
|
y(() => {
|
|
408
387
|
const t = m.value.map((a) => ({
|
|
409
388
|
name: a.name
|
|
410
|
-
})),
|
|
411
|
-
return { head: t, body:
|
|
389
|
+
})), s = m.value.map((a) => a.values);
|
|
390
|
+
return { head: t, body: s };
|
|
412
391
|
});
|
|
413
392
|
function De(t = null) {
|
|
414
|
-
|
|
415
|
-
const
|
|
393
|
+
Xe(() => {
|
|
394
|
+
const s = ["", ...m.value.map((c, x) => c.name)], a = [];
|
|
416
395
|
for (let c = 0; c < g.value.xLabels.length; c += 1) {
|
|
417
396
|
const x = [g.value.xLabels[c]];
|
|
418
397
|
for (let N = 0; N < m.value.length; N += 1)
|
|
419
398
|
x.push([m.value[N].values[c]]);
|
|
420
399
|
a.push(x);
|
|
421
400
|
}
|
|
422
|
-
const
|
|
401
|
+
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(a), v = vl(o);
|
|
423
402
|
t ? t(v) : cl({ csvContent: v, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
424
403
|
});
|
|
425
404
|
}
|
|
@@ -437,22 +416,22 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
437
416
|
function Ne() {
|
|
438
417
|
me.value = !me.value;
|
|
439
418
|
}
|
|
440
|
-
function Et(t,
|
|
441
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex:
|
|
419
|
+
function Et(t, s) {
|
|
420
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: s }), fe("selectDatapoint", t);
|
|
442
421
|
}
|
|
443
422
|
function Ut() {
|
|
444
423
|
return Y.value;
|
|
445
424
|
}
|
|
446
425
|
async function Yt({ scale: t = 2 } = {}) {
|
|
447
426
|
if (!S.value) return;
|
|
448
|
-
const { width:
|
|
427
|
+
const { width: s, height: a } = S.value.getBoundingClientRect(), o = s / a, { imageUri: v, base64: c } = await Al({ domElement: S.value, base64: !0, img: !0, scale: t });
|
|
449
428
|
return {
|
|
450
429
|
imageUri: v,
|
|
451
430
|
base64: c,
|
|
452
431
|
title: e.value.style.title.text,
|
|
453
|
-
width:
|
|
432
|
+
width: s,
|
|
454
433
|
height: a,
|
|
455
|
-
aspectRatio:
|
|
434
|
+
aspectRatio: o
|
|
456
435
|
};
|
|
457
436
|
}
|
|
458
437
|
const rt = y(() => ({
|
|
@@ -485,7 +464,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
485
464
|
height: ne
|
|
486
465
|
});
|
|
487
466
|
const xe = y(() => {
|
|
488
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
467
|
+
const t = e.value.table.useDialog && !e.value.table.show, s = $.value.showTable;
|
|
489
468
|
return {
|
|
490
469
|
component: t ? Le : Tl,
|
|
491
470
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
@@ -500,7 +479,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
500
479
|
} : {
|
|
501
480
|
hideDetails: !0,
|
|
502
481
|
config: {
|
|
503
|
-
open:
|
|
482
|
+
open: s,
|
|
504
483
|
maxHeight: 1e4,
|
|
505
484
|
body: {
|
|
506
485
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -515,21 +494,21 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
515
494
|
};
|
|
516
495
|
});
|
|
517
496
|
we(() => $.value.showTable, async (t) => {
|
|
518
|
-
e.value.table.show || (t && e.value.table.useDialog && ue.value ? (await
|
|
497
|
+
e.value.table.show || (t && e.value.table.useDialog && ue.value ? (await Xe(), ue.value.open()) : "close" in ue.value && ue.value.close());
|
|
519
498
|
});
|
|
520
499
|
const { isResponsive: Gt } = xl(Ue, zt);
|
|
521
500
|
function He() {
|
|
522
501
|
$.value.showTable = !1, Se.value && Se.value.setTableIconState(!1);
|
|
523
502
|
}
|
|
524
503
|
const Wt = y(() => e.value.style.backgroundColor), jt = y(() => e.value.style.title), { exportSvg: qt, getSvg: Kt } = ml({
|
|
525
|
-
svg:
|
|
504
|
+
svg: Oe,
|
|
526
505
|
title: jt,
|
|
527
506
|
backgroundColor: Wt
|
|
528
507
|
});
|
|
529
508
|
async function ct({ isCb: t }) {
|
|
530
509
|
if (t) {
|
|
531
|
-
const { blob:
|
|
532
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
510
|
+
const { blob: s, url: a, text: o, dataUrl: v } = await Kt();
|
|
511
|
+
e.value.userOptions.callbacks.svg({ blob: s, url: a, text: o, dataUrl: v });
|
|
533
512
|
} else
|
|
534
513
|
qt();
|
|
535
514
|
}
|
|
@@ -544,18 +523,18 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
544
523
|
toggleTooltip: nt,
|
|
545
524
|
toggleAnnotator: Ne,
|
|
546
525
|
toggleFullscreen: ut
|
|
547
|
-
}), (t,
|
|
526
|
+
}), (t, s) => (u(), n("div", {
|
|
548
527
|
ref_key: "heatmapChart",
|
|
549
528
|
ref: S,
|
|
550
529
|
class: ce(`vue-data-ui-component vue-ui-heatmap ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
551
530
|
style: w(`font-family:${e.value.style.fontFamily};width:100%;${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.backgroundColor}`),
|
|
552
|
-
id: `heatmap__${
|
|
553
|
-
onMouseenter:
|
|
554
|
-
onMouseleave:
|
|
531
|
+
id: `heatmap__${O.value}`,
|
|
532
|
+
onMouseenter: s[1] || (s[1] = () => Je(!0)),
|
|
533
|
+
onMouseleave: s[2] || (s[2] = () => Je(!1))
|
|
555
534
|
}, [
|
|
556
|
-
e.value.userOptions.buttons.annotator ? (u(), de(i(
|
|
535
|
+
e.value.userOptions.buttons.annotator ? (u(), de(i(M), {
|
|
557
536
|
key: 0,
|
|
558
|
-
svgRef: i(
|
|
537
|
+
svgRef: i(Oe),
|
|
559
538
|
backgroundColor: e.value.style.backgroundColor,
|
|
560
539
|
color: e.value.style.color,
|
|
561
540
|
active: me.value,
|
|
@@ -588,7 +567,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
588
567
|
}
|
|
589
568
|
}, null, 8, ["config"]))
|
|
590
569
|
], 512)) : f("", !0),
|
|
591
|
-
e.value.userOptions.show && j.value && (i(Ke) || i(
|
|
570
|
+
e.value.userOptions.show && j.value && (i(Ke) || i(Me)) ? (u(), de(i(le), {
|
|
592
571
|
ref_key: "userOptionsRef",
|
|
593
572
|
ref: Se,
|
|
594
573
|
key: `user_options_${Ee.value}`,
|
|
@@ -596,7 +575,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
596
575
|
color: e.value.style.color,
|
|
597
576
|
isImaging: i(Ze),
|
|
598
577
|
isPrinting: i(Qe),
|
|
599
|
-
uid:
|
|
578
|
+
uid: O.value,
|
|
600
579
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
601
580
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
602
581
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -623,13 +602,13 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
623
602
|
onToggleTooltip: nt,
|
|
624
603
|
onToggleAnnotator: Ne,
|
|
625
604
|
style: w({
|
|
626
|
-
visibility: i(Ke) ? i(
|
|
605
|
+
visibility: i(Ke) ? i(Me) ? "visible" : "hidden" : "visible"
|
|
627
606
|
})
|
|
628
607
|
}, yt({ _: 2 }, [
|
|
629
608
|
t.$slots.menuIcon ? {
|
|
630
609
|
name: "menuIcon",
|
|
631
|
-
fn: z(({ isOpen: a, color:
|
|
632
|
-
L(t.$slots, "menuIcon", Z(ee({ isOpen: a, color:
|
|
610
|
+
fn: z(({ isOpen: a, color: o }) => [
|
|
611
|
+
L(t.$slots, "menuIcon", Z(ee({ isOpen: a, color: o })), void 0, !0)
|
|
633
612
|
]),
|
|
634
613
|
key: "0"
|
|
635
614
|
} : void 0,
|
|
@@ -670,15 +649,15 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
670
649
|
} : void 0,
|
|
671
650
|
t.$slots.optionFullscreen ? {
|
|
672
651
|
name: "optionFullscreen",
|
|
673
|
-
fn: z(({ toggleFullscreen: a, isFullscreen:
|
|
674
|
-
L(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: a, isFullscreen:
|
|
652
|
+
fn: z(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
653
|
+
L(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
675
654
|
]),
|
|
676
655
|
key: "6"
|
|
677
656
|
} : void 0,
|
|
678
657
|
t.$slots.optionAnnotator ? {
|
|
679
658
|
name: "optionAnnotator",
|
|
680
|
-
fn: z(({ toggleAnnotator: a, isAnnotator:
|
|
681
|
-
L(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: a, isAnnotator:
|
|
659
|
+
fn: z(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
660
|
+
L(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
682
661
|
]),
|
|
683
662
|
key: "7"
|
|
684
663
|
} : void 0
|
|
@@ -691,7 +670,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
691
670
|
}, [
|
|
692
671
|
(u(), n("svg", {
|
|
693
672
|
ref_key: "svgRef",
|
|
694
|
-
ref:
|
|
673
|
+
ref: Oe,
|
|
695
674
|
xmlns: i(nl),
|
|
696
675
|
class: ce({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
697
676
|
viewBox: `0 0 ${_.value.width} ${_.value.height}`,
|
|
@@ -713,23 +692,23 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
713
692
|
}
|
|
714
693
|
}, [
|
|
715
694
|
L(t.$slots, "chart-background", {}, void 0, !0)
|
|
716
|
-
], 8,
|
|
695
|
+
], 8, Ml)) : f("", !0),
|
|
717
696
|
e.value.style.layout.cells.columnTotal.color.show ? (u(), n("g", {
|
|
718
697
|
key: 1,
|
|
719
698
|
ref_key: "xAxisSumRects",
|
|
720
699
|
ref: Lt
|
|
721
700
|
}, [
|
|
722
|
-
(u(!0), n(C, null, F(g.value.xTotals, (a,
|
|
723
|
-
x: l.value.left + l.value.cellSize.width *
|
|
701
|
+
(u(!0), n(C, null, F(g.value.xTotals, (a, o) => (u(), n("rect", {
|
|
702
|
+
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
724
703
|
y: l.value.top - l.value.sumCellXHeight + r.value * (_.value.height / _.value.width),
|
|
725
704
|
height: l.value.sumCellXHeight,
|
|
726
705
|
width: l.value.cellSize.width - r.value,
|
|
727
706
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
728
707
|
stroke: e.value.style.backgroundColor,
|
|
729
708
|
"stroke-width": r.value
|
|
730
|
-
}, null, 8,
|
|
731
|
-
(u(!0), n(C, null, F(g.value.xTotals, (a,
|
|
732
|
-
x: l.value.left + l.value.cellSize.width *
|
|
709
|
+
}, null, 8, Ol))), 256)),
|
|
710
|
+
(u(!0), n(C, null, F(g.value.xTotals, (a, o) => (u(), n("rect", {
|
|
711
|
+
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
733
712
|
y: l.value.top - l.value.sumCellXHeight + r.value * (_.value.height / _.value.width),
|
|
734
713
|
height: l.value.sumCellXHeight,
|
|
735
714
|
width: l.value.cellSize.width - r.value,
|
|
@@ -742,11 +721,11 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
742
721
|
ref_key: "datapoints",
|
|
743
722
|
ref: kt
|
|
744
723
|
}, [
|
|
745
|
-
(u(!0), n(C, null, F(Y.value, (a,
|
|
724
|
+
(u(!0), n(C, null, F(Y.value, (a, o) => (u(), n(C, null, [
|
|
746
725
|
(u(!0), n(C, null, F(a.temperatures, (v, c) => (u(), n("g", null, [
|
|
747
726
|
p("rect", {
|
|
748
727
|
x: l.value.left + l.value.cellSize.width * c + r.value / 2 + l.value.sumCellXHeight,
|
|
749
|
-
y: l.value.top + l.value.cellSize.height *
|
|
728
|
+
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
750
729
|
width: l.value.cellSize.width - r.value,
|
|
751
730
|
height: l.value.cellSize.height - r.value,
|
|
752
731
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
@@ -755,15 +734,15 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
755
734
|
}, null, 8, Fl),
|
|
756
735
|
p("rect", {
|
|
757
736
|
x: l.value.left + l.value.cellSize.width * c + r.value / 2 + l.value.sumCellXHeight,
|
|
758
|
-
y: l.value.top + l.value.cellSize.height *
|
|
737
|
+
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
759
738
|
width: l.value.cellSize.width - r.value,
|
|
760
739
|
height: l.value.cellSize.height - r.value,
|
|
761
740
|
fill: v.color,
|
|
762
741
|
stroke: e.value.style.backgroundColor,
|
|
763
742
|
"stroke-width": r.value,
|
|
764
|
-
onMouseover: (x) => Xt(v,
|
|
765
|
-
onMouseout: () => It({ datapoint: v, seriesIndex:
|
|
766
|
-
onClick: () => Et(v,
|
|
743
|
+
onMouseover: (x) => Xt(v, o, l.value.left + l.value.cellSize.width * c, l.value.top + l.value.cellSize.height * o),
|
|
744
|
+
onMouseout: () => It({ datapoint: v, seriesIndex: o }),
|
|
745
|
+
onClick: () => Et(v, o)
|
|
767
746
|
}, null, 40, Dl),
|
|
768
747
|
e.value.style.layout.cells.value.show ? ft((u(), n("text", {
|
|
769
748
|
key: 0,
|
|
@@ -772,10 +751,10 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
772
751
|
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
773
752
|
fill: i(Ae)(v.color),
|
|
774
753
|
x: l.value.left + l.value.cellSize.width * c + l.value.cellSize.width / 2 + l.value.sumCellXHeight,
|
|
775
|
-
y: l.value.top + l.value.cellSize.height *
|
|
754
|
+
y: l.value.top + l.value.cellSize.height * o + l.value.cellSize.height / 2 + e.value.style.layout.cells.value.fontSize / 3,
|
|
776
755
|
style: { pointerEvents: "none", userSelect: "none" }
|
|
777
756
|
}, [
|
|
778
|
-
|
|
757
|
+
Ie(T(i(B)(
|
|
779
758
|
e.value.style.layout.cells.value.formatter,
|
|
780
759
|
v.value,
|
|
781
760
|
i(H)({
|
|
@@ -792,7 +771,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
792
771
|
cellHeight: l.value.cellSize.height - r.value,
|
|
793
772
|
maxFontSize: e.value.style.layout.cells.value.fontSize,
|
|
794
773
|
minFontSize: 10,
|
|
795
|
-
index:
|
|
774
|
+
index: o * D.value + c,
|
|
796
775
|
reportHide: Pt,
|
|
797
776
|
reportRotation: Nt,
|
|
798
777
|
hideAll: Ht.value,
|
|
@@ -807,10 +786,10 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
807
786
|
ref_key: "yAxisSumRects",
|
|
808
787
|
ref: Ct
|
|
809
788
|
}, [
|
|
810
|
-
(u(!0), n(C, null, F(Y.value, (a,
|
|
789
|
+
(u(!0), n(C, null, F(Y.value, (a, o) => (u(), n(C, null, [
|
|
811
790
|
p("rect", {
|
|
812
791
|
x: l.value.left,
|
|
813
|
-
y: l.value.top + l.value.cellSize.height *
|
|
792
|
+
y: l.value.top + l.value.cellSize.height * o,
|
|
814
793
|
width: l.value.sumCellXHeight,
|
|
815
794
|
height: l.value.cellSize.height - r.value,
|
|
816
795
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
@@ -819,10 +798,10 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
819
798
|
}, null, 8, Hl),
|
|
820
799
|
p("rect", {
|
|
821
800
|
x: l.value.left,
|
|
822
|
-
y: l.value.top + l.value.cellSize.height *
|
|
801
|
+
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
823
802
|
width: l.value.sumCellXHeight,
|
|
824
803
|
height: l.value.cellSize.height - r.value,
|
|
825
|
-
fill: g.value.yTotals[
|
|
804
|
+
fill: g.value.yTotals[o].color,
|
|
826
805
|
stroke: e.value.style.backgroundColor,
|
|
827
806
|
"stroke-width": r.value
|
|
828
807
|
}, null, 8, Pl)
|
|
@@ -833,26 +812,26 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
833
812
|
ref_key: "yAxisLabels",
|
|
834
813
|
ref: je
|
|
835
814
|
}, [
|
|
836
|
-
(u(!0), n(C, null, F(Y.value, (a,
|
|
815
|
+
(u(!0), n(C, null, F(Y.value, (a, o) => (u(), n(C, null, [
|
|
837
816
|
p("text", {
|
|
838
817
|
class: "vue-ui-heatmap-row-name",
|
|
839
818
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
840
819
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
841
820
|
x: J.value,
|
|
842
|
-
y: l.value.top + l.value.cellSize.height *
|
|
821
|
+
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),
|
|
843
822
|
"text-anchor": "end",
|
|
844
823
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
845
|
-
}, T(g.value.yLabels[
|
|
824
|
+
}, T(g.value.yLabels[o]), 9, Xl),
|
|
846
825
|
e.value.style.layout.cells.rowTotal.value.show ? (u(), n("text", {
|
|
847
826
|
key: 0,
|
|
848
827
|
class: "vue-ui-heatmap-row-total",
|
|
849
828
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
850
829
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
851
830
|
x: J.value,
|
|
852
|
-
y: l.value.top + l.value.cellSize.height *
|
|
831
|
+
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,
|
|
853
832
|
"text-anchor": "end",
|
|
854
833
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
855
|
-
}, T(Vt(
|
|
834
|
+
}, T(Vt(o)), 9, Il)) : f("", !0)
|
|
856
835
|
], 64))), 256))
|
|
857
836
|
], 512)) : f("", !0),
|
|
858
837
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), n("g", {
|
|
@@ -860,15 +839,15 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
860
839
|
ref_key: "xAxisLabels",
|
|
861
840
|
ref: _e
|
|
862
841
|
}, [
|
|
863
|
-
(u(!0), n(C, null, F(g.value.xLabels, (a,
|
|
864
|
-
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo &&
|
|
842
|
+
(u(!0), n(C, null, F(g.value.xLabels, (a, o) => (u(), n(C, null, [
|
|
843
|
+
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && o % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (u(), n("text", {
|
|
865
844
|
key: 0,
|
|
866
845
|
class: "vue-ui-heatmap-col-name",
|
|
867
846
|
"text-anchor": e.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
868
847
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
869
848
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
870
849
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
871
|
-
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / g.value.xLabels.length *
|
|
850
|
+
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / g.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})`
|
|
872
851
|
}, T(a), 9, Vl)) : f("", !0)
|
|
873
852
|
], 64))), 256))
|
|
874
853
|
], 512)) : f("", !0),
|
|
@@ -877,14 +856,14 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
877
856
|
ref_key: "xAxisSums",
|
|
878
857
|
ref: ze
|
|
879
858
|
}, [
|
|
880
|
-
(u(!0), n(C, null, F(g.value.xLabels, (a,
|
|
859
|
+
(u(!0), n(C, null, F(g.value.xLabels, (a, o) => (u(), n("text", {
|
|
881
860
|
class: "vue-ui-heatmap-col-total",
|
|
882
861
|
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
883
862
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
884
863
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
885
864
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
886
|
-
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / g.value.xLabels.length *
|
|
887
|
-
}, T(Bt(
|
|
865
|
+
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / g.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})`
|
|
866
|
+
}, T(Bt(o)), 9, Bl))), 256))
|
|
888
867
|
], 512)) : f("", !0),
|
|
889
868
|
se.value ? (u(), n("g", El, [
|
|
890
869
|
p("rect", {
|
|
@@ -1068,7 +1047,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1068
1047
|
key: 0,
|
|
1069
1048
|
style: w(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1070
1049
|
}, [
|
|
1071
|
-
|
|
1050
|
+
Ie(T(e.value.style.title.text) + " ", 1),
|
|
1072
1051
|
e.value.style.title.subtitle.text ? (u(), n("span", Kl, T(e.value.style.title.subtitle.text), 1)) : f("", !0)
|
|
1073
1052
|
], 4)),
|
|
1074
1053
|
p("thead", null, [
|
|
@@ -1079,16 +1058,16 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1079
1058
|
p("th", {
|
|
1080
1059
|
style: w(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1081
1060
|
}, null, 4),
|
|
1082
|
-
(u(!0), n(C, null, F(b.dataset, (a,
|
|
1061
|
+
(u(!0), n(C, null, F(b.dataset, (a, o) => (u(), n("th", {
|
|
1083
1062
|
align: "right",
|
|
1084
1063
|
style: w(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1085
1064
|
}, T(a.name), 5))), 256))
|
|
1086
1065
|
], 4)
|
|
1087
1066
|
]),
|
|
1088
1067
|
p("tbody", null, [
|
|
1089
|
-
(u(!0), n(C, null, F(g.value.xLabels, (a,
|
|
1068
|
+
(u(!0), n(C, null, F(g.value.xLabels, (a, o) => (u(), n("tr", {
|
|
1090
1069
|
role: "row",
|
|
1091
|
-
class: ce({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even":
|
|
1070
|
+
class: ce({ "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 }),
|
|
1092
1071
|
style: w(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1093
1072
|
}, [
|
|
1094
1073
|
p("td", {
|
|
@@ -1103,7 +1082,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1103
1082
|
"data-cell": b.dataset[c].name,
|
|
1104
1083
|
style: w(`outline:${e.value.table.td.outline}`)
|
|
1105
1084
|
}, [
|
|
1106
|
-
p("div", ea, T(isNaN(v.values[
|
|
1085
|
+
p("div", ea, T(isNaN(v.values[o]) ? "-" : i(H)({ 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)
|
|
1107
1086
|
], 12, Zl))), 256))
|
|
1108
1087
|
], 6))), 256))
|
|
1109
1088
|
])
|
|
@@ -1116,7 +1095,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1116
1095
|
e.value.table.useDialog ? {
|
|
1117
1096
|
name: "title",
|
|
1118
1097
|
fn: z(() => [
|
|
1119
|
-
|
|
1098
|
+
Ie(T(xe.value.title), 1)
|
|
1120
1099
|
]),
|
|
1121
1100
|
key: "0"
|
|
1122
1101
|
} : void 0,
|
|
@@ -1126,7 +1105,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1126
1105
|
p("button", {
|
|
1127
1106
|
tabindex: "0",
|
|
1128
1107
|
class: "vue-ui-user-options-button",
|
|
1129
|
-
onClick:
|
|
1108
|
+
onClick: s[0] || (s[0] = (a) => De(e.value.userOptions.callbacks.csv))
|
|
1130
1109
|
}, [
|
|
1131
1110
|
ke(i(te), {
|
|
1132
1111
|
name: "excel",
|
|
@@ -1140,7 +1119,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1140
1119
|
i(pe) ? (u(), de(bl, { key: 7 })) : f("", !0)
|
|
1141
1120
|
], 46, zl));
|
|
1142
1121
|
}
|
|
1143
|
-
}, ma = /* @__PURE__ */ Sl(ta, [["__scopeId", "data-v-
|
|
1122
|
+
}, ma = /* @__PURE__ */ Sl(ta, [["__scopeId", "data-v-7b02a740"]]);
|
|
1144
1123
|
export {
|
|
1145
1124
|
ma as default
|
|
1146
1125
|
};
|