vue-data-ui 3.3.3 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-ayTeSvpe.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-Cysanw8-.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-DG6cvf2h.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-CA8kKZjZ.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-DUpZ_s2c.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-CCBZ2x8T.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D2IMGwaN.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-CQvYRebC.js → PackageVersion-VpPtLYhK.js} +1 -1
- package/dist/{PenAndPaper-D9LruJaM.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BS9UGhNq.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-BOki89CB.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip-svd8Hb6c.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-B6rAo9Oz.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-DaInVNiV.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CJXSEhan.js → UserOptions-C0YT60JN.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-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-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-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-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-Tq92GZKA.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-DI-W68vp.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CSDxt1Zh.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-BzVpWnNO.js → pdf-O34i6EQX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +82 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-CtQ7pJ8G.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Dh-ldrr5.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-Cq8Pt6Lh.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/{vue-data-ui-CDY7snWF.js → vue-data-ui-oDJui39L.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-DbpiTjGu.js → vue-ui-3d-bar-wycTM073.js} +56 -56
- package/dist/{vue-ui-accordion-CaClZrCp.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DuIxXz5p.js → vue-ui-age-pyramid-C5NUZ_Y7.js} +39 -39
- package/dist/{vue-ui-annotator-C2efSKQK.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-qpcqLKmp.js → vue-ui-bullet-CIsX5UJw.js} +7 -7
- package/dist/vue-ui-candlestick-BRFx3_KK.js +1334 -0
- package/dist/{vue-ui-carousel-table-CCTtArFX.js → vue-ui-carousel-table-hJySHJTu.js} +29 -29
- package/dist/{vue-ui-chestnut-CbvxJ8hy.js → vue-ui-chestnut-D4GjvQh0.js} +70 -70
- package/dist/{vue-ui-chord-Cp9nyIdv.js → vue-ui-chord-By2NOs0N.js} +35 -35
- package/dist/{vue-ui-circle-pack-kHzd0UYO.js → vue-ui-circle-pack-OCmAkTNs.js} +59 -59
- package/dist/{vue-ui-cursor-DEvkJRCz.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-k_mz9iwy.js → vue-ui-dashboard-C7fwU9xb.js} +67 -67
- package/dist/{vue-ui-digits-CqWCkEu2.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-CDKS6sVu.js → vue-ui-donut-dVVBUQJz.js} +189 -189
- package/dist/{vue-ui-donut-evolution-C6cGI_P3.js → vue-ui-donut-evolution-BoWGaQP0.js} +82 -82
- package/dist/{vue-ui-dumbbell-ZjJst3xs.js → vue-ui-dumbbell-YMPZ3CVA.js} +66 -66
- package/dist/{vue-ui-flow-sX1PYIkr.js → vue-ui-flow-BE62rVS3.js} +75 -75
- package/dist/{vue-ui-funnel--VViM9gH.js → vue-ui-funnel-kNpDFAWo.js} +63 -63
- package/dist/{vue-ui-galaxy-Du0V9GF8.js → vue-ui-galaxy-BBBiXXyk.js} +62 -62
- package/dist/{vue-ui-gauge-BAe4p2g-.js → vue-ui-gauge-PQNTTl3Y.js} +58 -58
- package/dist/{vue-ui-gizmo-CfjwAt38.js → vue-ui-gizmo-D3gQxQz3.js} +3 -3
- package/dist/{vue-ui-heatmap-Q0jrPM5h.js → vue-ui-heatmap-CKWQButF.js} +104 -104
- package/dist/{vue-ui-history-plot-CLSN3mPy.js → vue-ui-history-plot-DYFzdR4Z.js} +91 -91
- package/dist/{vue-ui-kpi-CBRgXD1s.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-3yCeDEPK.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-Ddh4hbX0.js → vue-ui-molecule-Cklyb74B.js} +102 -102
- package/dist/{vue-ui-mood-radar-CK8UF-ka.js → vue-ui-mood-radar-Cvq4ZuLe.js} +28 -28
- package/dist/{vue-ui-nested-donuts-DO0FV0tU.js → vue-ui-nested-donuts-Bm78P1ES.js} +60 -60
- package/dist/{vue-ui-onion-DXLqoj-4.js → vue-ui-onion-Bh5jTb31.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-BlffHAHB.js → vue-ui-parallel-coordinate-plot-BKdN2OsW.js} +64 -64
- package/dist/{vue-ui-quadrant-pw2ALj7p.js → vue-ui-quadrant-BPhJzots.js} +8 -8
- package/dist/{vue-ui-quick-chart-9oGbV593.js → vue-ui-quick-chart-DbJR9CN3.js} +86 -86
- package/dist/vue-ui-radar-CrenQprr.js +938 -0
- package/dist/{vue-ui-rating-C4yZY1sb.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Duxv-A4H.js → vue-ui-relation-circle-BJ5RuZ0j.js} +31 -31
- package/dist/{vue-ui-ridgeline-B-q7J-C0.js → vue-ui-ridgeline-CKuom5Bu.js} +97 -97
- package/dist/{vue-ui-rings-PRAcmP1H.js → vue-ui-rings-B84GAEf4.js} +50 -50
- package/dist/{vue-ui-scatter-BLW4MJtJ.js → vue-ui-scatter-CBX-g9w3.js} +100 -100
- package/dist/{vue-ui-skeleton-D0PF0jxa.js → vue-ui-skeleton-CZ8xxpEU.js} +3 -3
- package/dist/{vue-ui-smiley-Be44gMTh.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-B2XY2dRa.js → vue-ui-spark-trend-DOf7-cIf.js} +18 -18
- package/dist/{vue-ui-sparkbar-DWQN4gvR.js → vue-ui-sparkbar-D-MPA2zf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-fDhQGQ12.js → vue-ui-sparkgauge-B9xRiVSU.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-f7Acvipt.js → vue-ui-sparkhistogram-BWb0lqQP.js} +4 -4
- package/dist/{vue-ui-sparkline-Ys3JW7Ap.js → vue-ui-sparkline-BF-qr8Ti.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Dv0HeSna.js → vue-ui-sparkstackbar-DnCUpk50.js} +17 -17
- package/dist/vue-ui-stackbar-DvJ8Hahn.js +1695 -0
- package/dist/{vue-ui-strip-plot-DN13ntF-.js → vue-ui-strip-plot-SAh1gIs5.js} +52 -52
- package/dist/{vue-ui-table-Qb5tDX1n.js → vue-ui-table-BJdDfMYD.js} +18 -18
- package/dist/{vue-ui-table-heatmap-hMrgJ25a.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-CdkFyJjv.js → vue-ui-table-sparkline-BBFEJ8c6.js} +28 -28
- package/dist/{vue-ui-thermometer-D7U2C7kJ.js → vue-ui-thermometer-D8DH6QSN.js} +22 -22
- package/dist/{vue-ui-timer-KtA4M2mV.js → vue-ui-timer-CaUdAHBE.js} +29 -29
- package/dist/{vue-ui-tiremarks-C6GTGszq.js → vue-ui-tiremarks-_sUH1d3J.js} +14 -14
- package/dist/{vue-ui-treemap-rhnl1TW9.js → vue-ui-treemap-DXduzuW4.js} +78 -78
- package/dist/{vue-ui-vertical-bar-n_Lvbd_X.js → vue-ui-vertical-bar-JdjmgwQj.js} +94 -94
- package/dist/{vue-ui-waffle-D-4whGLN.js → vue-ui-waffle-h8zoi4Rc.js} +68 -68
- package/dist/{vue-ui-wheel-D92HLjfr.js → vue-ui-wheel-Ck1Mx37j.js} +21 -21
- package/dist/{vue-ui-word-cloud-Df9AMw6v.js → vue-ui-word-cloud-CjWvuukM.js} +47 -47
- package/dist/{vue-ui-world-Bg9S35ug.js → vue-ui-world-Dw71_Mu2.js} +6 -6
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/dist/vue-ui-xy-tSMgXqqb.js +3375 -0
- package/package.json +2 -2
- package/dist/vue-ui-candlestick-DTWbbdGH.js +0 -1073
- package/dist/vue-ui-radar-Csznqw19.js +0 -891
- package/dist/vue-ui-stackbar-DUlN5QiM.js +0 -1457
- package/dist/vue-ui-xy-Da6oy2rm.js +0 -4527
- package/dist/vue-ui-xy-canvas-0CLSIKpO.js +0 -1305
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { watchEffect as Jt, nextTick as Se, useCssVars as Qt, defineAsyncComponent as oe, computed as g, ref as d, shallowRef as Zt, toRefs as el, watch as Ae, onBeforeUnmount as dt, onMounted as tl, reactive as ht, createElementBlock as n, openBlock as u, normalizeStyle as A, normalizeClass as fe, createBlock as ge, createCommentVNode as p, createElementVNode as b, createVNode as Ce, unref as i, createSlots as yt, withCtx as
|
|
2
|
-
import { c as Ie, t as ul,
|
|
1
|
+
import { watchEffect as Jt, nextTick as Se, useCssVars as Qt, defineAsyncComponent as oe, computed as g, ref as d, shallowRef as Zt, toRefs as el, watch as Ae, onBeforeUnmount as dt, onMounted as tl, reactive as ht, createElementBlock as n, openBlock as u, normalizeStyle as A, normalizeClass as fe, createBlock as ge, createCommentVNode as p, createElementVNode as b, createVNode as Ce, unref as i, createSlots as yt, withCtx as O, renderSlot as T, normalizeProps as se, guardReactiveProps as ue, Fragment as L, renderList as D, withDirectives as ft, createTextVNode as Xe, toDisplayString as S, vShow as ll, resolveDynamicComponent as al, mergeProps as ol, withKeys as sl } from "vue";
|
|
2
|
+
import { c as Ie, t as ul, O as il, o as gt, f as pt, ae as pe, g as nl, X as rl, J as Le, a as Y, d as X, x as W, au as vl, P as cl, Q as dl, G as hl, H as yl } from "./lib-BcBZIm6u.js";
|
|
3
3
|
import { t as Te, u as fl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as gl, a as bt } from "./useNestedProp-
|
|
5
|
-
import { u as pl } from "./usePrinter-
|
|
4
|
+
import { u as gl, a as bt } from "./useNestedProp-B7CiTRDS.js";
|
|
5
|
+
import { u as pl } from "./usePrinter-C1GiglOH.js";
|
|
6
6
|
import { u as bl, B as ml } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as xl } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as mt } from "./useTimeLabels-BGFjWgrv.js";
|
|
@@ -10,12 +10,12 @@ import { u as wl } from "./useTableResponsive-Cbx-ACcP.js";
|
|
|
10
10
|
import { u as kl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { u as xt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
12
|
import { u as Al } from "./useChartAccessibility-9icAAmYg.js";
|
|
13
|
-
import Cl from "./img-
|
|
14
|
-
import Ll from "./Title-
|
|
13
|
+
import Cl from "./img-CFY3JivG.js";
|
|
14
|
+
import Ll from "./Title-CFmv95In.js";
|
|
15
15
|
import { t as Tl } from "./themes-Dw-dDudK.js";
|
|
16
|
-
import Sl from "./vue-ui-accordion-
|
|
16
|
+
import Sl from "./vue-ui-accordion-BKkTS12x.js";
|
|
17
17
|
import { _ as _l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
function Ve({ elementRef: y, callback: R, attr:
|
|
18
|
+
function Ve({ elementRef: y, callback: R, attr: B, earlyReturn: I = !1 }) {
|
|
19
19
|
I || Jt(
|
|
20
20
|
(j) => {
|
|
21
21
|
const x = y.value;
|
|
@@ -23,21 +23,21 @@ function Ve({ elementRef: y, callback: R, attr: D, earlyReturn: I = !1 }) {
|
|
|
23
23
|
const V = new ResizeObserver((_) => {
|
|
24
24
|
const q = _[0]?.contentRect;
|
|
25
25
|
let f;
|
|
26
|
-
if (q && q[
|
|
27
|
-
f = q[
|
|
26
|
+
if (q && q[B] != null)
|
|
27
|
+
f = q[B];
|
|
28
28
|
else
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
B === "width" ? f = typeof x.getBBox == "function" ? x.getBBox().width : x.getBoundingClientRect().width : f = typeof x.getBBox == "function" ? x.getBBox().height : x.getBoundingClientRect().height;
|
|
31
31
|
} catch {
|
|
32
32
|
const K = x.getBoundingClientRect();
|
|
33
|
-
f =
|
|
33
|
+
f = B === "width" ? K.width : K.height;
|
|
34
34
|
}
|
|
35
35
|
typeof f == "number" && !Number.isNaN(f) && R(f);
|
|
36
36
|
});
|
|
37
37
|
V.observe(x), Se(() => {
|
|
38
38
|
requestAnimationFrame(() => {
|
|
39
39
|
if (!y.value) return;
|
|
40
|
-
const _ = y.value.getBoundingClientRect(), E =
|
|
40
|
+
const _ = y.value.getBoundingClientRect(), E = B === "width" ? _.width : _.height;
|
|
41
41
|
typeof E == "number" && !Number.isNaN(E) && R(E);
|
|
42
42
|
});
|
|
43
43
|
}), j(() => V.disconnect());
|
|
@@ -55,7 +55,7 @@ const zl = {
|
|
|
55
55
|
};
|
|
56
56
|
function wt(y, {
|
|
57
57
|
cellWidth: R,
|
|
58
|
-
cellHeight:
|
|
58
|
+
cellHeight: B,
|
|
59
59
|
maxFontSize: I,
|
|
60
60
|
minFontSize: j,
|
|
61
61
|
index: x,
|
|
@@ -79,16 +79,16 @@ function wt(y, {
|
|
|
79
79
|
const F = y.getBBox(), z = F.x + F.width / 2, ie = F.y + F.height / 2;
|
|
80
80
|
y.setAttribute("transform", `rotate(-90 ${z} ${ie})`);
|
|
81
81
|
const te = y.getBBox().width;
|
|
82
|
-
if (te <=
|
|
82
|
+
if (te <= B)
|
|
83
83
|
_(x, !1);
|
|
84
84
|
else {
|
|
85
|
-
const ne = Math.floor(I *
|
|
85
|
+
const ne = Math.floor(I * B / te);
|
|
86
86
|
ne >= j ? (y.setAttribute("font-size", ne), _(x, !1)) : (K = !0, _(x, !0));
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
(q || K) && y.setAttribute("visibility", "hidden");
|
|
90
90
|
}
|
|
91
|
-
const $l = ["id"],
|
|
91
|
+
const $l = ["id"], Ol = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"], Rl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Fl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Nl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Dl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "onMouseover", "onMouseout", "onClick"], Bl = ["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"], El = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Ul = { key: 6 }, Gl = ["x", "y", "width", "height", "stroke", "stroke-width"], Yl = { class: "vue-ui-heatmap-legend-gauge-right" }, Wl = ["data-value"], jl = { class: "vue-ui-heatmap-gauge-indicator-value" }, ql = {
|
|
92
92
|
key: 4,
|
|
93
93
|
class: "vue-data-ui-watermark"
|
|
94
94
|
}, Kl = { class: "vue-ui-data-table" }, Jl = { key: 0 }, Ql = ["data-cell"], Zl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ea = ["data-cell"], ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, la = {
|
|
@@ -108,18 +108,18 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
emits: ["selectDatapoint"],
|
|
111
|
-
setup(y, { expose: R, emit:
|
|
111
|
+
setup(y, { expose: R, emit: B }) {
|
|
112
112
|
Qt((t) => ({
|
|
113
113
|
v7e341d2a: t.tdo
|
|
114
114
|
}));
|
|
115
|
-
const I = oe(() => import("./Tooltip-
|
|
115
|
+
const I = oe(() => import("./Tooltip-Cs4v8OnI.js")), j = oe(() => import("./BaseIcon-B5KaGWWC.js")), x = oe(() => import("./PenAndPaper-Dj2diYr0.js")), V = oe(() => import("./UserOptions-C0YT60JN.js")), _ = oe(() => import("./PackageVersion-VpPtLYhK.js")), E = oe(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_heatmap: q } = gl(), f = y, K = B, ee = g({
|
|
116
116
|
get() {
|
|
117
117
|
return !!f.dataset && f.dataset.length;
|
|
118
118
|
},
|
|
119
119
|
set(t) {
|
|
120
120
|
return t;
|
|
121
121
|
}
|
|
122
|
-
}), F = d(Ie()), z = d(null), ie = d(!1), te = d(""), ne = d(void 0), re = d(null), Ee = d(0), Ue = d(null),
|
|
122
|
+
}), F = d(Ie()), z = d(null), ie = d(!1), te = d(""), ne = d(void 0), re = d(null), Ee = d(0), Ue = d(null), Ge = d(0), kt = d(null), ve = d(null), _e = d(null), Ye = d(null), We = d(null), At = d(null), je = d(null), Ct = d(null), ze = d(null), $e = d(null), Lt = d(null), qe = d(null), le = Zt(null), e = d(Fe());
|
|
123
123
|
function Tt() {
|
|
124
124
|
const t = Array(7).fill("_"), s = [], a = 14, o = t.length;
|
|
125
125
|
for (let v = 0; v < o; v += 1) {
|
|
@@ -133,7 +133,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
133
133
|
}
|
|
134
134
|
return s;
|
|
135
135
|
}
|
|
136
|
-
const { loading: be, FINAL_DATASET: w, manualLoading:
|
|
136
|
+
const { loading: be, FINAL_DATASET: w, manualLoading: Oe } = bl({
|
|
137
137
|
...el(f),
|
|
138
138
|
FINAL_CONFIG: e,
|
|
139
139
|
prepareConfig: Fe,
|
|
@@ -168,7 +168,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
})
|
|
171
|
-
}), { userOptionsVisible:
|
|
171
|
+
}), { userOptionsVisible: Me, setUserOptionsVisibility: St, keepUserOptionState: Ke } = kl({ config: e.value }), { svgRef: Re } = Al({ config: e.value.style.title });
|
|
172
172
|
function Je(t) {
|
|
173
173
|
St(t);
|
|
174
174
|
}
|
|
@@ -186,20 +186,20 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
186
186
|
} : s = t, f.config && il(f.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? s.style.layout.dataLabels.xAxis.showOnlyAtModulo = f.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : s.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, s;
|
|
187
187
|
}
|
|
188
188
|
Ae(() => f.config, (t) => {
|
|
189
|
-
be.value || (e.value = Fe()),
|
|
189
|
+
be.value || (e.value = Fe()), Me.value = !e.value.userOptions.showOnChartHover, Ne(), Ge.value += 1, M.value.showTable = e.value.table.show, M.value.showTooltip = e.value.style.tooltip.show, ce.value = e.value.style.layout.width, de.value = e.value.style.layout.height;
|
|
190
190
|
}, { deep: !0 }), Ae(() => f.dataset, (t) => {
|
|
191
|
-
Array.isArray(t) && t.length > 0 && (
|
|
191
|
+
Array.isArray(t) && t.length > 0 && (Oe.value = !1), Ne();
|
|
192
192
|
}, { deep: !0 });
|
|
193
193
|
const { isPrinting: Qe, isImaging: Ze, generatePdf: et, generateImage: tt } = pl({
|
|
194
194
|
elementId: `heatmap__${F.value}`,
|
|
195
195
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
196
196
|
options: e.value.userOptions.print
|
|
197
|
-
}), _t = g(() => e.value.userOptions.show && !e.value.style.title.text),
|
|
197
|
+
}), _t = g(() => e.value.userOptions.show && !e.value.style.title.text), M = d({
|
|
198
198
|
showTable: e.value.table.show,
|
|
199
199
|
showTooltip: e.value.style.tooltip.show
|
|
200
200
|
});
|
|
201
201
|
Ae(e, () => {
|
|
202
|
-
|
|
202
|
+
M.value = {
|
|
203
203
|
showTable: e.value.table.show,
|
|
204
204
|
showTooltip: e.value.style.tooltip.show
|
|
205
205
|
};
|
|
@@ -210,11 +210,11 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
210
210
|
componentName: "VueUiHeatmap",
|
|
211
211
|
type: "dataset",
|
|
212
212
|
debug: lt.value
|
|
213
|
-
}), ee.value = !1,
|
|
213
|
+
}), ee.value = !1, Oe.value = !0), gt(f.dataset) || (Oe.value = e.value.loading), e.value.responsive) {
|
|
214
214
|
const t = Te(() => {
|
|
215
215
|
const { width: s, height: a } = fl({
|
|
216
216
|
chart: z.value,
|
|
217
|
-
title: e.value.style.title.text ?
|
|
217
|
+
title: e.value.style.title.text ? Ye.value : null,
|
|
218
218
|
// add legend hirizontal in legend attr
|
|
219
219
|
// add legend vertical in some other attr and modify composable to subtract width
|
|
220
220
|
source: qe.value,
|
|
@@ -239,14 +239,14 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
239
239
|
he.value = t;
|
|
240
240
|
}, 100);
|
|
241
241
|
Ve({ elementRef: ze, callback: $t, attr: "height" });
|
|
242
|
-
const ae = d(0),
|
|
242
|
+
const ae = d(0), Ot = Te((t) => {
|
|
243
243
|
ae.value = t;
|
|
244
244
|
}, 100);
|
|
245
|
-
Ve({ elementRef: je, callback:
|
|
246
|
-
const me = d(0),
|
|
245
|
+
Ve({ elementRef: je, callback: Ot, attr: "width" });
|
|
246
|
+
const me = d(0), Mt = Te((t) => {
|
|
247
247
|
me.value = t;
|
|
248
248
|
}, 100);
|
|
249
|
-
Ve({ elementRef: $e, callback:
|
|
249
|
+
Ve({ elementRef: $e, callback: Mt, attr: "height" }), dt(() => {
|
|
250
250
|
he.value = 0, ae.value = 0, me.value = 0;
|
|
251
251
|
});
|
|
252
252
|
const r = g(() => Math.min($.value.height, $.value.width) / 1e3 * e.value.style.layout.cells.spacing), l = g(() => {
|
|
@@ -270,7 +270,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
270
270
|
width: P,
|
|
271
271
|
cellSize: C
|
|
272
272
|
};
|
|
273
|
-
}),
|
|
273
|
+
}), G = g(() => Math.max(...w.value.flatMap((t) => t.values))), ye = g(() => Math.min(...w.value.flatMap((t) => t.values))), J = g(() => {
|
|
274
274
|
const t = w.value.flatMap((a) => a.values);
|
|
275
275
|
return t.reduce((a, o) => a + o, 0) / t.length;
|
|
276
276
|
}), Rt = g(() => mt({
|
|
@@ -327,8 +327,8 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
327
327
|
...t,
|
|
328
328
|
temperatures: (t.values || []).map((a, o) => a >= J.value ? {
|
|
329
329
|
side: "up",
|
|
330
|
-
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ye.value,
|
|
331
|
-
ratio: Math.abs(Math.abs(a - J.value) / Math.abs(
|
|
330
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ye.value, G.value, a),
|
|
331
|
+
ratio: Math.abs(Math.abs(a - J.value) / Math.abs(G.value - J.value)) > 1 ? 1 : Math.abs(Math.abs(a - J.value) / Math.abs(G.value - J.value)),
|
|
332
332
|
value: a,
|
|
333
333
|
yAxisName: m.value.yLabels[s],
|
|
334
334
|
xAxisName: m.value.xLabels[o],
|
|
@@ -336,17 +336,17 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
336
336
|
} : {
|
|
337
337
|
side: "down",
|
|
338
338
|
ratio: Math.abs(1 - Math.abs(a) / Math.abs(J.value)) > 1 ? 1 : Math.abs(1 - Math.abs(a) / Math.abs(J.value)),
|
|
339
|
-
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ye.value,
|
|
339
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ye.value, G.value, a),
|
|
340
340
|
value: a,
|
|
341
341
|
yAxisName: m.value.yLabels[s],
|
|
342
342
|
xAxisName: m.value.xLabels[o],
|
|
343
343
|
id: `vue-data-ui-heatmap-cell-${Ie()}`
|
|
344
344
|
})
|
|
345
345
|
})))), at = g(() => w.value.length), ot = ht(Array(at.value * H.value || 1).fill(!1)), Nt = g(() => ot.some((t) => t));
|
|
346
|
-
function
|
|
346
|
+
function Dt(t, s) {
|
|
347
347
|
ot[t] = s;
|
|
348
348
|
}
|
|
349
|
-
const st = ht(Array(at.value * H.value || 1).fill(!1)),
|
|
349
|
+
const st = ht(Array(at.value * H.value || 1).fill(!1)), Bt = g(() => st.some((t) => t));
|
|
350
350
|
function Ht(t, s) {
|
|
351
351
|
st[t] = s;
|
|
352
352
|
}
|
|
@@ -372,7 +372,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
372
372
|
seriesIndex: s,
|
|
373
373
|
series: Q.value,
|
|
374
374
|
config: e.value
|
|
375
|
-
}) : (h += `<div>${c} ${k ? c ? ` - ${k}` : `${k}` : ""}</div>`, h += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ye.value,
|
|
375
|
+
}) : (h += `<div>${c} ${k ? c ? ` - ${k}` : `${k}` : ""}</div>`, h += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ye.value, G.value, v)}">⬤</span><span>${isNaN(v) ? "-" : Y(
|
|
376
376
|
e.value.style.layout.cells.value.formatter,
|
|
377
377
|
v,
|
|
378
378
|
X({
|
|
@@ -388,7 +388,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
388
388
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), ie.value = !1, ne.value = void 0, N.value = null, re.value = null;
|
|
389
389
|
}
|
|
390
390
|
function It(t) {
|
|
391
|
-
return
|
|
391
|
+
return Y(
|
|
392
392
|
e.value.style.layout.cells.value.formatter,
|
|
393
393
|
m.value.yTotals[t].total,
|
|
394
394
|
X({
|
|
@@ -401,7 +401,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
401
401
|
);
|
|
402
402
|
}
|
|
403
403
|
function Vt(t) {
|
|
404
|
-
return
|
|
404
|
+
return Y(
|
|
405
405
|
e.value.style.layout.cells.value.formatter,
|
|
406
406
|
m.value.xTotals[t].total,
|
|
407
407
|
X({
|
|
@@ -419,7 +419,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
419
419
|
})), s = w.value.map((a) => a.values);
|
|
420
420
|
return { head: t, body: s };
|
|
421
421
|
});
|
|
422
|
-
function
|
|
422
|
+
function De(t = null) {
|
|
423
423
|
Se(() => {
|
|
424
424
|
const s = ["", ...w.value.map((c, k) => c.name)], a = [];
|
|
425
425
|
for (let c = 0; c < m.value.xLabels.length; c += 1) {
|
|
@@ -437,13 +437,13 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
437
437
|
Z.value = t, Ee.value += 1;
|
|
438
438
|
}
|
|
439
439
|
function it() {
|
|
440
|
-
|
|
440
|
+
M.value.showTable = !M.value.showTable;
|
|
441
441
|
}
|
|
442
442
|
function nt() {
|
|
443
|
-
|
|
443
|
+
M.value.showTooltip = !M.value.showTooltip;
|
|
444
444
|
}
|
|
445
445
|
const we = d(!1);
|
|
446
|
-
function
|
|
446
|
+
function Be() {
|
|
447
447
|
we.value = !we.value;
|
|
448
448
|
}
|
|
449
449
|
function Et(t, s) {
|
|
@@ -452,7 +452,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
452
452
|
function Ut() {
|
|
453
453
|
return Q.value;
|
|
454
454
|
}
|
|
455
|
-
async function
|
|
455
|
+
async function Gt({ scale: t = 2 } = {}) {
|
|
456
456
|
if (!z.value) return;
|
|
457
457
|
const { width: s, height: a } = z.value.getBoundingClientRect(), o = s / a, { imageUri: v, base64: c } = await Cl({ domElement: z.value, base64: !0, img: !0, scale: t });
|
|
458
458
|
return {
|
|
@@ -494,7 +494,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
494
494
|
height: de
|
|
495
495
|
});
|
|
496
496
|
const ke = g(() => {
|
|
497
|
-
const t = e.value.table.useDialog && !e.value.table.show, s =
|
|
497
|
+
const t = e.value.table.useDialog && !e.value.table.show, s = M.value.showTable;
|
|
498
498
|
return {
|
|
499
499
|
component: t ? E : Sl,
|
|
500
500
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
@@ -523,12 +523,12 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
523
523
|
}
|
|
524
524
|
};
|
|
525
525
|
});
|
|
526
|
-
Ae(() =>
|
|
526
|
+
Ae(() => M.value.showTable, async (t) => {
|
|
527
527
|
e.value.table.show || (t && e.value.table.useDialog && ve.value ? (await Se(), ve.value.open()) : "close" in ve.value && ve.value.close());
|
|
528
528
|
});
|
|
529
|
-
const { isResponsive:
|
|
529
|
+
const { isResponsive: Yt } = wl(Ue, zt);
|
|
530
530
|
function He() {
|
|
531
|
-
|
|
531
|
+
M.value.showTable = !1, _e.value && _e.value.setTableIconState(!1);
|
|
532
532
|
}
|
|
533
533
|
const Wt = g(() => e.value.style.backgroundColor), jt = g(() => e.value.style.title), { exportSvg: qt, getSvg: Kt } = xl({
|
|
534
534
|
svg: Re,
|
|
@@ -544,14 +544,14 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
544
544
|
}
|
|
545
545
|
return R({
|
|
546
546
|
getData: Ut,
|
|
547
|
-
getImage:
|
|
547
|
+
getImage: Gt,
|
|
548
548
|
generatePdf: et,
|
|
549
|
-
generateCsv:
|
|
549
|
+
generateCsv: De,
|
|
550
550
|
generateImage: tt,
|
|
551
551
|
generateSvg: ct,
|
|
552
552
|
toggleTable: it,
|
|
553
553
|
toggleTooltip: nt,
|
|
554
|
-
toggleAnnotator:
|
|
554
|
+
toggleAnnotator: Be,
|
|
555
555
|
toggleFullscreen: ut
|
|
556
556
|
}), (t, s) => (u(), n("div", {
|
|
557
557
|
ref_key: "heatmapChart",
|
|
@@ -568,7 +568,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
568
568
|
backgroundColor: e.value.style.backgroundColor,
|
|
569
569
|
color: e.value.style.color,
|
|
570
570
|
active: we.value,
|
|
571
|
-
onClose:
|
|
571
|
+
onClose: Be
|
|
572
572
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
573
573
|
_t.value ? (u(), n("div", {
|
|
574
574
|
key: 1,
|
|
@@ -580,11 +580,11 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
580
580
|
e.value.style.title.text ? (u(), n("div", {
|
|
581
581
|
key: 2,
|
|
582
582
|
ref_key: "chartTitle",
|
|
583
|
-
ref:
|
|
583
|
+
ref: Ye,
|
|
584
584
|
style: "width:100%;background:transparent"
|
|
585
585
|
}, [
|
|
586
586
|
(u(), ge(Ll, {
|
|
587
|
-
key: `title_${
|
|
587
|
+
key: `title_${Ge.value}`,
|
|
588
588
|
config: {
|
|
589
589
|
title: {
|
|
590
590
|
cy: "heatmap-div-title",
|
|
@@ -597,7 +597,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
597
597
|
}
|
|
598
598
|
}, null, 8, ["config"]))
|
|
599
599
|
], 512)) : p("", !0),
|
|
600
|
-
e.value.userOptions.show && ee.value && (i(Ke) || i(
|
|
600
|
+
e.value.userOptions.show && ee.value && (i(Ke) || i(Me)) ? (u(), ge(i(V), {
|
|
601
601
|
ref_key: "userOptionsRef",
|
|
602
602
|
ref: _e,
|
|
603
603
|
key: `user_options_${Ee.value}`,
|
|
@@ -614,7 +614,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
614
614
|
hasTable: e.value.userOptions.buttons.table,
|
|
615
615
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
616
616
|
isFullscreen: Z.value,
|
|
617
|
-
isTooltip:
|
|
617
|
+
isTooltip: M.value.showTooltip,
|
|
618
618
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
619
619
|
chartElement: z.value,
|
|
620
620
|
position: e.value.userOptions.position,
|
|
@@ -625,68 +625,68 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
625
625
|
tableDialog: e.value.table.useDialog,
|
|
626
626
|
onToggleFullscreen: ut,
|
|
627
627
|
onGeneratePdf: i(et),
|
|
628
|
-
onGenerateCsv:
|
|
628
|
+
onGenerateCsv: De,
|
|
629
629
|
onGenerateImage: i(tt),
|
|
630
630
|
onGenerateSvg: ct,
|
|
631
631
|
onToggleTable: it,
|
|
632
632
|
onToggleTooltip: nt,
|
|
633
|
-
onToggleAnnotator:
|
|
633
|
+
onToggleAnnotator: Be,
|
|
634
634
|
style: A({
|
|
635
|
-
visibility: i(Ke) ? i(
|
|
635
|
+
visibility: i(Ke) ? i(Me) ? "visible" : "hidden" : "visible"
|
|
636
636
|
})
|
|
637
637
|
}, yt({ _: 2 }, [
|
|
638
638
|
t.$slots.menuIcon ? {
|
|
639
639
|
name: "menuIcon",
|
|
640
|
-
fn:
|
|
640
|
+
fn: O(({ isOpen: a, color: o }) => [
|
|
641
641
|
T(t.$slots, "menuIcon", se(ue({ isOpen: a, color: o })), void 0, !0)
|
|
642
642
|
]),
|
|
643
643
|
key: "0"
|
|
644
644
|
} : void 0,
|
|
645
645
|
t.$slots.optionTooltip ? {
|
|
646
646
|
name: "optionTooltip",
|
|
647
|
-
fn:
|
|
647
|
+
fn: O(() => [
|
|
648
648
|
T(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
649
649
|
]),
|
|
650
650
|
key: "1"
|
|
651
651
|
} : void 0,
|
|
652
652
|
t.$slots.optionPdf ? {
|
|
653
653
|
name: "optionPdf",
|
|
654
|
-
fn:
|
|
654
|
+
fn: O(() => [
|
|
655
655
|
T(t.$slots, "optionPdf", {}, void 0, !0)
|
|
656
656
|
]),
|
|
657
657
|
key: "2"
|
|
658
658
|
} : void 0,
|
|
659
659
|
t.$slots.optionCsv ? {
|
|
660
660
|
name: "optionCsv",
|
|
661
|
-
fn:
|
|
661
|
+
fn: O(() => [
|
|
662
662
|
T(t.$slots, "optionCsv", {}, void 0, !0)
|
|
663
663
|
]),
|
|
664
664
|
key: "3"
|
|
665
665
|
} : void 0,
|
|
666
666
|
t.$slots.optionImg ? {
|
|
667
667
|
name: "optionImg",
|
|
668
|
-
fn:
|
|
668
|
+
fn: O(() => [
|
|
669
669
|
T(t.$slots, "optionImg", {}, void 0, !0)
|
|
670
670
|
]),
|
|
671
671
|
key: "4"
|
|
672
672
|
} : void 0,
|
|
673
673
|
t.$slots.optionTable ? {
|
|
674
674
|
name: "optionTable",
|
|
675
|
-
fn:
|
|
675
|
+
fn: O(() => [
|
|
676
676
|
T(t.$slots, "optionTable", {}, void 0, !0)
|
|
677
677
|
]),
|
|
678
678
|
key: "5"
|
|
679
679
|
} : void 0,
|
|
680
680
|
t.$slots.optionFullscreen ? {
|
|
681
681
|
name: "optionFullscreen",
|
|
682
|
-
fn:
|
|
682
|
+
fn: O(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
683
683
|
T(t.$slots, "optionFullscreen", se(ue({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
684
684
|
]),
|
|
685
685
|
key: "6"
|
|
686
686
|
} : void 0,
|
|
687
687
|
t.$slots.optionAnnotator ? {
|
|
688
688
|
name: "optionAnnotator",
|
|
689
|
-
fn:
|
|
689
|
+
fn: O(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
690
690
|
T(t.$slots, "optionAnnotator", se(ue({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
691
691
|
]),
|
|
692
692
|
key: "7"
|
|
@@ -722,13 +722,13 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
722
722
|
}
|
|
723
723
|
}, [
|
|
724
724
|
T(t.$slots, "chart-background", {}, void 0, !0)
|
|
725
|
-
], 8,
|
|
725
|
+
], 8, Ml)) : p("", !0),
|
|
726
726
|
e.value.style.layout.cells.columnTotal.color.show ? (u(), n("g", {
|
|
727
727
|
key: 1,
|
|
728
728
|
ref_key: "xAxisSumRects",
|
|
729
729
|
ref: Lt
|
|
730
730
|
}, [
|
|
731
|
-
(u(!0), n(L, null,
|
|
731
|
+
(u(!0), n(L, null, D(m.value.xTotals, (a, o) => (u(), n("rect", {
|
|
732
732
|
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
733
733
|
y: l.value.top - l.value.sumCellXHeight + r.value * ($.value.height / $.value.width),
|
|
734
734
|
height: l.value.sumCellXHeight,
|
|
@@ -737,7 +737,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
737
737
|
stroke: e.value.style.backgroundColor,
|
|
738
738
|
"stroke-width": r.value
|
|
739
739
|
}, null, 8, Rl))), 256)),
|
|
740
|
-
(u(!0), n(L, null,
|
|
740
|
+
(u(!0), n(L, null, D(m.value.xTotals, (a, o) => (u(), n("rect", {
|
|
741
741
|
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
742
742
|
y: l.value.top - l.value.sumCellXHeight + r.value * ($.value.height / $.value.width),
|
|
743
743
|
height: l.value.sumCellXHeight,
|
|
@@ -751,8 +751,8 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
751
751
|
ref_key: "datapoints",
|
|
752
752
|
ref: kt
|
|
753
753
|
}, [
|
|
754
|
-
(u(!0), n(L, null,
|
|
755
|
-
(u(!0), n(L, null,
|
|
754
|
+
(u(!0), n(L, null, D(Q.value, (a, o) => (u(), n(L, null, [
|
|
755
|
+
(u(!0), n(L, null, D(a.temperatures, (v, c) => (u(), n("g", null, [
|
|
756
756
|
b("rect", {
|
|
757
757
|
x: l.value.left + l.value.cellSize.width * c + r.value / 2 + l.value.sumCellXHeight,
|
|
758
758
|
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
@@ -773,7 +773,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
773
773
|
onMouseover: (k) => Pt(v, o, l.value.left + l.value.cellSize.width * c, l.value.top + l.value.cellSize.height * o),
|
|
774
774
|
onMouseout: () => Xt({ datapoint: v, seriesIndex: o }),
|
|
775
775
|
onClick: () => Et(v, o)
|
|
776
|
-
}, null, 40,
|
|
776
|
+
}, null, 40, Dl),
|
|
777
777
|
e.value.style.layout.cells.value.show ? ft((u(), n("text", {
|
|
778
778
|
key: 0,
|
|
779
779
|
"text-anchor": "middle",
|
|
@@ -784,7 +784,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
784
784
|
y: l.value.top + l.value.cellSize.height * o + l.value.cellSize.height / 2 + e.value.style.layout.cells.value.fontSize / 3,
|
|
785
785
|
style: { pointerEvents: "none", userSelect: "none" }
|
|
786
786
|
}, [
|
|
787
|
-
Xe(S(i(
|
|
787
|
+
Xe(S(i(Y)(
|
|
788
788
|
e.value.style.layout.cells.value.formatter,
|
|
789
789
|
v.value,
|
|
790
790
|
i(X)({
|
|
@@ -795,7 +795,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
795
795
|
}),
|
|
796
796
|
{ datapoint: v }
|
|
797
797
|
)), 1)
|
|
798
|
-
], 8,
|
|
798
|
+
], 8, Bl)), [
|
|
799
799
|
[i(zl), {
|
|
800
800
|
cellWidth: l.value.cellSize.width - r.value,
|
|
801
801
|
cellHeight: l.value.cellSize.height - r.value,
|
|
@@ -803,8 +803,8 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
803
803
|
minFontSize: 10,
|
|
804
804
|
index: o * H.value + c,
|
|
805
805
|
reportHide: Ht,
|
|
806
|
-
reportRotation:
|
|
807
|
-
hideAll:
|
|
806
|
+
reportRotation: Dt,
|
|
807
|
+
hideAll: Bt.value,
|
|
808
808
|
rotateAll: Nt.value
|
|
809
809
|
}]
|
|
810
810
|
]) : p("", !0)
|
|
@@ -816,7 +816,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
816
816
|
ref_key: "yAxisSumRects",
|
|
817
817
|
ref: Ct
|
|
818
818
|
}, [
|
|
819
|
-
(u(!0), n(L, null,
|
|
819
|
+
(u(!0), n(L, null, D(Q.value, (a, o) => (u(), n(L, null, [
|
|
820
820
|
b("rect", {
|
|
821
821
|
x: l.value.left,
|
|
822
822
|
y: l.value.top + l.value.cellSize.height * o,
|
|
@@ -842,7 +842,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
842
842
|
ref_key: "yAxisLabels",
|
|
843
843
|
ref: je
|
|
844
844
|
}, [
|
|
845
|
-
(u(!0), n(L, null,
|
|
845
|
+
(u(!0), n(L, null, D(Q.value, (a, o) => (u(), n(L, null, [
|
|
846
846
|
b("text", {
|
|
847
847
|
class: "vue-ui-heatmap-row-name",
|
|
848
848
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -869,7 +869,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
869
869
|
ref_key: "xAxisLabels",
|
|
870
870
|
ref: ze
|
|
871
871
|
}, [
|
|
872
|
-
(u(!0), n(L, null,
|
|
872
|
+
(u(!0), n(L, null, D(m.value.xLabels, (a, o) => (u(), n(L, null, [
|
|
873
873
|
!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", {
|
|
874
874
|
key: 0,
|
|
875
875
|
class: "vue-ui-heatmap-col-name",
|
|
@@ -886,7 +886,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
886
886
|
ref_key: "xAxisSums",
|
|
887
887
|
ref: $e
|
|
888
888
|
}, [
|
|
889
|
-
(u(!0), n(L, null,
|
|
889
|
+
(u(!0), n(L, null, D(m.value.xLabels, (a, o) => (u(), n("text", {
|
|
890
890
|
class: "vue-ui-heatmap-col-total",
|
|
891
891
|
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
892
892
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
@@ -906,10 +906,10 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
906
906
|
stroke: e.value.style.layout.cells.selected.color,
|
|
907
907
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
908
908
|
rx: 1
|
|
909
|
-
}, null, 8,
|
|
909
|
+
}, null, 8, Gl)
|
|
910
910
|
])) : p("", !0),
|
|
911
911
|
T(t.$slots, "svg", { svg: $.value }, void 0, !0)
|
|
912
|
-
], 14,
|
|
912
|
+
], 14, Ol)),
|
|
913
913
|
e.value.style.legend.show ? (u(), n("div", {
|
|
914
914
|
key: 0,
|
|
915
915
|
ref_key: "legendRight",
|
|
@@ -926,17 +926,17 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
926
926
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
927
927
|
color: e.value.style.legend.color
|
|
928
928
|
})
|
|
929
|
-
}, S(i(
|
|
929
|
+
}, S(i(Y)(
|
|
930
930
|
e.value.style.layout.cells.value.formatter,
|
|
931
|
-
i(W)(
|
|
931
|
+
i(W)(G.value),
|
|
932
932
|
i(X)({
|
|
933
933
|
p: e.value.style.layout.dataLabels.prefix,
|
|
934
|
-
v: i(W)(
|
|
934
|
+
v: i(W)(G.value),
|
|
935
935
|
s: e.value.style.layout.dataLabels.suffix,
|
|
936
936
|
r: e.value.style.legend.roundingValue
|
|
937
937
|
})
|
|
938
938
|
)), 5)),
|
|
939
|
-
b("div",
|
|
939
|
+
b("div", Yl, [
|
|
940
940
|
b("div", {
|
|
941
941
|
class: "vue-ui-heatmap-gauge",
|
|
942
942
|
style: A({
|
|
@@ -945,7 +945,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
945
945
|
}, [
|
|
946
946
|
ft(b("div", {
|
|
947
947
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
948
|
-
"data-value": i(
|
|
948
|
+
"data-value": i(Y)(
|
|
949
949
|
e.value.style.layout.cells.value.formatter,
|
|
950
950
|
i(W)(N.value),
|
|
951
951
|
i(X)({
|
|
@@ -960,7 +960,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
960
960
|
width: "100%",
|
|
961
961
|
height: "2px",
|
|
962
962
|
background: [void 0, null].includes(N.value) ? "transparent" : i(Le)(xe.value.datapoint.color),
|
|
963
|
-
top: `${[void 0, null].includes(N.value) ? 0 : (1 - N.value /
|
|
963
|
+
top: `${[void 0, null].includes(N.value) ? 0 : (1 - N.value / G.value) * 100}%`,
|
|
964
964
|
transition: "all 0.2s ease-in-out",
|
|
965
965
|
"--background-color": e.value.style.backgroundColor,
|
|
966
966
|
"--gauge-arrow-color": i(Le)(e.value.style.backgroundColor),
|
|
@@ -969,7 +969,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
969
969
|
"--gauge-arrow-font-size": e.value.style.legend.fontSize + "px"
|
|
970
970
|
})
|
|
971
971
|
}, [
|
|
972
|
-
b("div", jl, S(i(
|
|
972
|
+
b("div", jl, S(i(Y)(
|
|
973
973
|
e.value.style.layout.cells.value.formatter,
|
|
974
974
|
i(W)(N.value),
|
|
975
975
|
i(X)({
|
|
@@ -991,7 +991,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
991
991
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
992
992
|
color: e.value.style.legend.color
|
|
993
993
|
})
|
|
994
|
-
}, S(i(
|
|
994
|
+
}, S(i(Y)(
|
|
995
995
|
e.value.style.layout.cells.value.formatter,
|
|
996
996
|
i(W)(ye.value),
|
|
997
997
|
i(X)({
|
|
@@ -1015,7 +1015,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1015
1015
|
T(t.$slots, "source", {}, void 0, !0)
|
|
1016
1016
|
], 512)) : p("", !0),
|
|
1017
1017
|
Ce(i(I), {
|
|
1018
|
-
show:
|
|
1018
|
+
show: M.value.showTooltip && ie.value,
|
|
1019
1019
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1020
1020
|
color: e.value.style.tooltip.color,
|
|
1021
1021
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -1034,10 +1034,10 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1034
1034
|
smoothForce: e.value.style.tooltip.smoothForce,
|
|
1035
1035
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
1036
1036
|
}, {
|
|
1037
|
-
"tooltip-before":
|
|
1037
|
+
"tooltip-before": O(() => [
|
|
1038
1038
|
T(t.$slots, "tooltip-before", se(ue({ ...xe.value })), void 0, !0)
|
|
1039
1039
|
]),
|
|
1040
|
-
"tooltip-after":
|
|
1040
|
+
"tooltip-after": O(() => [
|
|
1041
1041
|
T(t.$slots, "tooltip-after", se(ue({ ...xe.value })), void 0, !0)
|
|
1042
1042
|
]),
|
|
1043
1043
|
_: 3
|
|
@@ -1047,7 +1047,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1047
1047
|
ref: ve,
|
|
1048
1048
|
onClose: He
|
|
1049
1049
|
}), yt({
|
|
1050
|
-
content:
|
|
1050
|
+
content: O(() => [
|
|
1051
1051
|
b("div", {
|
|
1052
1052
|
ref_key: "tableContainer",
|
|
1053
1053
|
ref: Ue,
|
|
@@ -1056,7 +1056,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1056
1056
|
}, [
|
|
1057
1057
|
b("div", {
|
|
1058
1058
|
style: A(`width:100%;overflow-x:auto;position:relative;${e.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1059
|
-
class: fe({ "vue-ui-responsive": i(
|
|
1059
|
+
class: fe({ "vue-ui-responsive": i(Yt) })
|
|
1060
1060
|
}, [
|
|
1061
1061
|
e.value.table.useDialog ? p("", !0) : (u(), n("div", {
|
|
1062
1062
|
key: 0,
|
|
@@ -1088,14 +1088,14 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1088
1088
|
b("th", {
|
|
1089
1089
|
style: A(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1090
1090
|
}, null, 4),
|
|
1091
|
-
(u(!0), n(L, null,
|
|
1091
|
+
(u(!0), n(L, null, D(y.dataset, (a, o) => (u(), n("th", {
|
|
1092
1092
|
align: "right",
|
|
1093
1093
|
style: A(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1094
1094
|
}, S(a.name), 5))), 256))
|
|
1095
1095
|
], 4)
|
|
1096
1096
|
]),
|
|
1097
1097
|
b("tbody", null, [
|
|
1098
|
-
(u(!0), n(L, null,
|
|
1098
|
+
(u(!0), n(L, null, D(m.value.xLabels, (a, o) => (u(), n("tr", {
|
|
1099
1099
|
role: "row",
|
|
1100
1100
|
class: fe({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
|
|
1101
1101
|
style: A(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
@@ -1107,7 +1107,7 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1107
1107
|
}, [
|
|
1108
1108
|
b("div", Zl, S(a), 1)
|
|
1109
1109
|
], 12, Ql),
|
|
1110
|
-
(u(!0), n(L, null,
|
|
1110
|
+
(u(!0), n(L, null, D(y.dataset, (v, c) => (u(), n("td", {
|
|
1111
1111
|
class: "vue-ui-data-table__tbody__td",
|
|
1112
1112
|
"data-cell": y.dataset[c].name,
|
|
1113
1113
|
style: A(`outline:${e.value.table.td.outline}`)
|
|
@@ -1124,18 +1124,18 @@ const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"]
|
|
|
1124
1124
|
}, [
|
|
1125
1125
|
e.value.table.useDialog ? {
|
|
1126
1126
|
name: "title",
|
|
1127
|
-
fn:
|
|
1127
|
+
fn: O(() => [
|
|
1128
1128
|
Xe(S(ke.value.title), 1)
|
|
1129
1129
|
]),
|
|
1130
1130
|
key: "0"
|
|
1131
1131
|
} : void 0,
|
|
1132
1132
|
e.value.table.useDialog ? {
|
|
1133
1133
|
name: "actions",
|
|
1134
|
-
fn:
|
|
1134
|
+
fn: O(() => [
|
|
1135
1135
|
b("button", {
|
|
1136
1136
|
tabindex: "0",
|
|
1137
1137
|
class: "vue-ui-user-options-button",
|
|
1138
|
-
onClick: s[0] || (s[0] = (a) =>
|
|
1138
|
+
onClick: s[0] || (s[0] = (a) => De(e.value.userOptions.callbacks.csv))
|
|
1139
1139
|
}, [
|
|
1140
1140
|
Ce(i(j), {
|
|
1141
1141
|
name: "excel",
|