vue-data-ui 3.2.7 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-Cwrh45ON.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- 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-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-CRXnB8wH.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CeMTgpl0.js → vue-ui-accordion-Dch9YrCi.js} +19 -19
- package/dist/{vue-ui-age-pyramid-BEGsngR6.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-BhZr9pFJ.js → vue-ui-annotator-DwRwhrgB.js} +9 -9
- package/dist/{vue-ui-bullet-CrCHb15S.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-CnWY88nd.js → vue-ui-candlestick-C81k1_f9.js} +279 -263
- package/dist/{vue-ui-carousel-table-CsVWXrdA.js → vue-ui-carousel-table-DBIhnEj-.js} +6 -6
- package/dist/{vue-ui-chestnut-NpO91zJV.js → vue-ui-chestnut-CSM-_IWw.js} +426 -380
- package/dist/{vue-ui-chord-bIihB6Qf.js → vue-ui-chord-BFW9nnNh.js} +318 -299
- package/dist/{vue-ui-circle-pack-Z5VTiXZU.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-BEJ5uSZV.js → vue-ui-dashboard-BdFLsK4u.js} +72 -71
- package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-DXum1rs6.js} +10 -10
- package/dist/{vue-ui-donut-a82yzfvT.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-DP_dXmIC.js → vue-ui-donut-evolution-DFIbK50s.js} +407 -385
- package/dist/{vue-ui-dumbbell-BDIzPnlX.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CaxHiJIB.js → vue-ui-funnel-B8UHwj15.js} +197 -181
- package/dist/{vue-ui-galaxy-CbGRAAFI.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-But_1QwV.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-DcBQp-C8.js → vue-ui-gizmo-DFxlqPz7.js} +18 -18
- package/dist/{vue-ui-heatmap-BAVkwnbX.js → vue-ui-heatmap-CcAe5dDN.js} +394 -373
- package/dist/{vue-ui-history-plot-BlVib573.js → vue-ui-history-plot-CgKvd7Jx.js} +337 -319
- package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-Ct2iyD49.js} +4 -4
- package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-ByjcvXBB.js} +19 -19
- package/dist/{vue-ui-molecule-CEb6_0wR.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-B6rmNl9X.js → vue-ui-nested-donuts-CGKgOTX2.js} +542 -519
- package/dist/{vue-ui-onion-BWAdTZ6V.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-DXbgnatq.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +253 -234
- package/dist/{vue-ui-quadrant-BwGMZ_d_.js → vue-ui-quadrant-BGDCaOXv.js} +295 -277
- package/dist/{vue-ui-quick-chart-2bQ0DX_A.js → vue-ui-quick-chart-CjXSB-2S.js} +724 -686
- package/dist/{vue-ui-radar-DPXvVIbh.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-Bo9gSy-z.js} +4 -4
- package/dist/{vue-ui-relation-circle-BVGAfqBj.js → vue-ui-relation-circle-Qo8FKbL2.js} +147 -132
- package/dist/{vue-ui-ridgeline-C6UdClMT.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-B_7zAshC.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-BRr9oPfo.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-C3tGR_lR.js → vue-ui-skeleton-CKfOnyd_.js} +105 -105
- package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-CY7UiJ9C.js} +88 -88
- package/dist/{vue-ui-spark-trend-C2tSZULg.js → vue-ui-spark-trend-DwNYP97M.js} +5 -5
- package/dist/{vue-ui-sparkbar-BUPDw_qR.js → vue-ui-sparkbar-BkdcYrmg.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DufAZyFK.js → vue-ui-sparkgauge-C6Kq_OGV.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DDunWMKu.js → vue-ui-sparkhistogram-CjB33yXB.js} +7 -7
- package/dist/{vue-ui-sparkline-lRx2nNde.js → vue-ui-sparkline-DcH4yIEd.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CB6WHJHd.js → vue-ui-sparkstackbar-MKr2u_pO.js} +5 -5
- package/dist/{vue-ui-stackbar-CQ9Zvuxh.js → vue-ui-stackbar-DKV-exfd.js} +356 -338
- package/dist/{vue-ui-strip-plot-DW3c82dV.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-CEt97z7F.js → vue-ui-table-BdT3lGuv.js} +16 -16
- package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-D929cWB0.js} +9 -9
- package/dist/{vue-ui-table-sparkline-RB40-Z1R.js → vue-ui-table-sparkline-CkZ_ygR1.js} +7 -7
- package/dist/{vue-ui-thermometer-fmPzO-eT.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-qxLpO3HX.js → vue-ui-timer-Bs7eMmiC.js} +7 -7
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-B4-IPDxV.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-Y5LefeNg.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-gvnJOZlg.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-BzS_N3GP.js → vue-ui-wheel-KrGLMCqW.js} +185 -169
- package/dist/{vue-ui-word-cloud-vWhTarrE.js → vue-ui-word-cloud-BQSu6kiR.js} +234 -218
- package/dist/{vue-ui-world-CqWuE8ZR.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-BxpuE9Ng.js → vue-ui-xy-B2fjTYMJ.js} +1602 -1708
- package/dist/{vue-ui-xy-canvas-C9YQjaUA.js → vue-ui-xy-canvas-oUXISeU8.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-data-ui-DH8opsJv.js +0 -325
- package/dist/vue-ui-flow-B72CBzC3.js +0 -909
- package/dist/vue-ui-mood-radar-CqJPicZv.js +0 -853
- package/dist/vue-ui-tiremarks-Cxx97FLg.js +0 -407
|
@@ -1,66 +1,67 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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, watchEffect as Xe, reactive as ht, nextTick as Ie, 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 T, normalizeProps as Z, guardReactiveProps as ee, Fragment as C, renderList as F, withDirectives as ft, createTextVNode as Ve, toDisplayString as S, vShow as tl, resolveDynamicComponent as ll, mergeProps as al, withKeys as ol } from "vue";
|
|
2
|
+
import { c as Be, 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-GIYcnm0E.js";
|
|
3
|
+
import { t as Ce, u as yl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as fl, a as bt } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as pl } from "./usePrinter-DYRFiw7X.js";
|
|
6
|
+
import { u as gl, B as bl } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as ml } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as mt } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { u as xl } from "./useTableResponsive-Cbx-ACcP.js";
|
|
10
|
+
import { u as wl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as xt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import { u as kl } from "./useChartAccessibility-9icAAmYg.js";
|
|
13
|
+
import Al from "./img-6wPuVVtk.js";
|
|
14
|
+
import Cl from "./Title-D17CJXko.js";
|
|
15
|
+
import { t as Ll } from "./themes-Dw-dDudK.js";
|
|
16
|
+
import Tl from "./vue-ui-accordion-Dch9YrCi.js";
|
|
17
|
+
import { _ as Sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const _l = {
|
|
19
|
+
mounted(b, P) {
|
|
20
|
+
wt(b, P.value);
|
|
20
21
|
},
|
|
21
|
-
updated(b,
|
|
22
|
-
|
|
22
|
+
updated(b, P) {
|
|
23
|
+
wt(b, P.value);
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
|
-
function
|
|
26
|
-
cellWidth:
|
|
26
|
+
function wt(b, {
|
|
27
|
+
cellWidth: P,
|
|
27
28
|
cellHeight: ye,
|
|
28
29
|
maxFontSize: W,
|
|
29
30
|
minFontSize: te,
|
|
30
|
-
index:
|
|
31
|
+
index: O,
|
|
31
32
|
reportRotation: le,
|
|
32
|
-
reportHide:
|
|
33
|
-
rotateAll:
|
|
33
|
+
reportHide: X,
|
|
34
|
+
rotateAll: Le,
|
|
34
35
|
hideAll: Te
|
|
35
36
|
}) {
|
|
36
37
|
b.removeAttribute("transform"), b.removeAttribute("visibility");
|
|
37
38
|
let k = !1, fe = !1;
|
|
38
39
|
b.setAttribute("font-size", W);
|
|
39
40
|
const j = b.getComputedTextLength();
|
|
40
|
-
if (j <=
|
|
41
|
-
le(
|
|
41
|
+
if (j <= P)
|
|
42
|
+
le(O, !1), X(O, !1);
|
|
42
43
|
else {
|
|
43
|
-
const M = Math.floor(W *
|
|
44
|
-
M >= te ? (b.setAttribute("font-size", M), le(
|
|
44
|
+
const M = Math.floor(W * P / j);
|
|
45
|
+
M >= te ? (b.setAttribute("font-size", M), le(O, !1), X(O, !1)) : (le(O, !0), X(O, !1), k = !0);
|
|
45
46
|
}
|
|
46
|
-
if (
|
|
47
|
+
if (Le && (k = !0), k) {
|
|
47
48
|
b.setAttribute("font-size", W);
|
|
48
|
-
const M = b.getBBox(),
|
|
49
|
-
b.setAttribute("transform", `rotate(-90 ${
|
|
49
|
+
const M = b.getBBox(), L = M.x + M.width / 2, ae = M.y + M.height / 2;
|
|
50
|
+
b.setAttribute("transform", `rotate(-90 ${L} ${ae})`);
|
|
50
51
|
const q = b.getBBox().width;
|
|
51
52
|
if (q <= ye)
|
|
52
|
-
|
|
53
|
+
X(O, !1);
|
|
53
54
|
else {
|
|
54
55
|
const oe = Math.floor(W * ye / q);
|
|
55
|
-
oe >= te ? (b.setAttribute("font-size", oe),
|
|
56
|
+
oe >= te ? (b.setAttribute("font-size", oe), X(O, !1)) : (fe = !0, X(O, !0));
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
(Te || fe) && b.setAttribute("visibility", "hidden");
|
|
59
60
|
}
|
|
60
|
-
const
|
|
61
|
+
const zl = ["id"], $l = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"], Ml = ["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"], Nl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "onMouseover", "onMouseout", "onClick"], Dl = ["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 = {
|
|
61
62
|
key: 4,
|
|
62
63
|
class: "vue-data-ui-watermark"
|
|
63
|
-
},
|
|
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 = {
|
|
64
65
|
__name: "vue-ui-heatmap",
|
|
65
66
|
props: {
|
|
66
67
|
config: {
|
|
@@ -77,37 +78,42 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
80
|
emits: ["selectDatapoint"],
|
|
80
|
-
setup(b, { expose:
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
setup(b, { expose: P, emit: ye }) {
|
|
82
|
+
Jt((t) => ({
|
|
83
|
+
v0f22886a: t.tdo
|
|
83
84
|
}));
|
|
84
|
-
const W = Q(() => import("./Tooltip-
|
|
85
|
+
const W = Q(() => import("./Tooltip-CtVdvbZi.js")), te = Q(() => import("./BaseIcon-CtqN7W_g.js")), O = Q(() => import("./PenAndPaper-BxbYiPy4.js")), le = Q(() => import("./UserOptions-B3vCIe-u.js")), X = Q(() => import("./PackageVersion-C9oklnuy.js")), Le = Q(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_heatmap: Te } = fl(), k = b, fe = ye, j = y({
|
|
85
86
|
get() {
|
|
86
87
|
return !!k.dataset && k.dataset.length;
|
|
87
88
|
},
|
|
88
89
|
set(t) {
|
|
89
90
|
return t;
|
|
90
91
|
}
|
|
91
|
-
}), M =
|
|
92
|
-
function
|
|
92
|
+
}), M = d(Be()), L = 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
|
+
function Tt() {
|
|
93
94
|
const t = Array(7).fill("_"), o = [], a = 14, s = t.length;
|
|
94
|
-
for (let
|
|
95
|
-
const
|
|
95
|
+
for (let v = 0; v < s; v += 1) {
|
|
96
|
+
const c = [];
|
|
96
97
|
for (let x = 0; x < a; x += 1)
|
|
97
|
-
|
|
98
|
+
c.push(v + x * 2);
|
|
98
99
|
o.push({
|
|
99
|
-
name: `${t[
|
|
100
|
-
values:
|
|
100
|
+
name: `${t[v]}`,
|
|
101
|
+
values: c
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
104
|
return o;
|
|
104
105
|
}
|
|
105
|
-
const { loading: pe, FINAL_DATASET: m, manualLoading: $e } =
|
|
106
|
-
...
|
|
106
|
+
const { loading: pe, FINAL_DATASET: m, manualLoading: $e } = gl({
|
|
107
|
+
...Zt(k),
|
|
107
108
|
FINAL_CONFIG: e,
|
|
108
|
-
prepareConfig:
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
prepareConfig: Re,
|
|
110
|
+
callback: () => {
|
|
111
|
+
Promise.resolve().then(async () => {
|
|
112
|
+
await Ie(), L.value && L.value.parentNode && rl(L.value.parentNode);
|
|
113
|
+
});
|
|
114
|
+
},
|
|
115
|
+
skeletonDataset: Tt(),
|
|
116
|
+
skeletonConfig: sl({
|
|
111
117
|
defaultConfig: e.value,
|
|
112
118
|
userConfig: {
|
|
113
119
|
table: { show: !1 },
|
|
@@ -132,96 +138,96 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
132
138
|
}
|
|
133
139
|
}
|
|
134
140
|
})
|
|
135
|
-
}), { userOptionsVisible:
|
|
136
|
-
function
|
|
137
|
-
|
|
141
|
+
}), { userOptionsVisible: Oe, setUserOptionsVisibility: St, keepUserOptionState: Ke } = wl({ config: e.value }), { svgRef: Me } = kl({ config: e.value.style.title });
|
|
142
|
+
function Je(t) {
|
|
143
|
+
St(t);
|
|
138
144
|
}
|
|
139
|
-
function
|
|
140
|
-
const t =
|
|
145
|
+
function Re() {
|
|
146
|
+
const t = bt({
|
|
141
147
|
userConfig: k.config,
|
|
142
148
|
defaultConfig: Te
|
|
143
149
|
});
|
|
144
150
|
let o = {};
|
|
145
151
|
return t.theme ? o = {
|
|
146
|
-
...
|
|
147
|
-
userConfig:
|
|
152
|
+
...bt({
|
|
153
|
+
userConfig: Ll.vue_ui_heatmap[t.theme] || k.config,
|
|
148
154
|
defaultConfig: t
|
|
149
155
|
})
|
|
150
|
-
} : o = t, k.config &&
|
|
156
|
+
} : o = t, k.config && ul(k.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? o.style.layout.dataLabels.xAxis.showOnlyAtModulo = k.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : o.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, o;
|
|
151
157
|
}
|
|
152
158
|
we(() => k.config, (t) => {
|
|
153
|
-
pe.value || (e.value =
|
|
159
|
+
pe.value || (e.value = Re()), Oe.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;
|
|
154
160
|
}, { deep: !0 }), we(() => k.dataset, (t) => {
|
|
155
|
-
Array.isArray(t) && t.length > 0 && ($e.value = !1),
|
|
161
|
+
Array.isArray(t) && t.length > 0 && ($e.value = !1), Fe();
|
|
156
162
|
}, { deep: !0 });
|
|
157
|
-
const { isPrinting:
|
|
163
|
+
const { isPrinting: Qe, isImaging: Ze, generatePdf: et, generateImage: tt } = pl({
|
|
158
164
|
elementId: `heatmap__${M.value}`,
|
|
159
165
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
160
166
|
options: e.value.userOptions.print
|
|
161
|
-
}), _t =
|
|
167
|
+
}), _t = y(() => e.value.userOptions.show && !e.value.style.title.text), $ = d({
|
|
162
168
|
showTable: e.value.table.show,
|
|
163
169
|
showTooltip: e.value.style.tooltip.show
|
|
164
170
|
});
|
|
165
171
|
we(e, () => {
|
|
166
|
-
|
|
172
|
+
$.value = {
|
|
167
173
|
showTable: e.value.table.show,
|
|
168
174
|
showTooltip: e.value.style.tooltip.show
|
|
169
175
|
};
|
|
170
176
|
}, { immediate: !0 });
|
|
171
|
-
const
|
|
172
|
-
function
|
|
173
|
-
if (
|
|
177
|
+
const zt = y(() => e.value.table.responsiveBreakpoint), I = d(null), lt = y(() => !!e.value.debug);
|
|
178
|
+
function Fe() {
|
|
179
|
+
if (pt(k.dataset) && (gt({
|
|
174
180
|
componentName: "VueUiHeatmap",
|
|
175
181
|
type: "dataset",
|
|
176
|
-
debug:
|
|
177
|
-
}), j.value = !1, $e.value = !0),
|
|
178
|
-
const t =
|
|
179
|
-
const { width: o, height: a } =
|
|
180
|
-
chart:
|
|
181
|
-
title: e.value.style.title.text ?
|
|
182
|
+
debug: lt.value
|
|
183
|
+
}), j.value = !1, $e.value = !0), pt(k.dataset) || ($e.value = e.value.loading), e.value.responsive) {
|
|
184
|
+
const t = Ce(() => {
|
|
185
|
+
const { width: o, height: a } = yl({
|
|
186
|
+
chart: L.value,
|
|
187
|
+
title: e.value.style.title.text ? Ge.value : null,
|
|
182
188
|
// add legend hirizontal in legend attr
|
|
183
189
|
// add legend vertical in some other attr and modify composable to subtract width
|
|
184
|
-
source:
|
|
185
|
-
noTitle:
|
|
190
|
+
source: qe.value,
|
|
191
|
+
noTitle: We.value
|
|
186
192
|
});
|
|
187
193
|
requestAnimationFrame(() => {
|
|
188
194
|
ie.value = o, ne.value = a;
|
|
189
195
|
});
|
|
190
196
|
});
|
|
191
|
-
I.value && (K.value && I.value.unobserve(K.value), I.value.disconnect()), I.value = new ResizeObserver(t), K.value =
|
|
197
|
+
I.value && (K.value && I.value.unobserve(K.value), I.value.disconnect()), I.value = new ResizeObserver(t), K.value = L.value.parentNode, I.value.observe(K.value);
|
|
192
198
|
}
|
|
193
199
|
}
|
|
194
|
-
|
|
200
|
+
dt(() => {
|
|
195
201
|
I.value && (K.value && I.value.unobserve(K.value), I.value.disconnect());
|
|
196
|
-
}),
|
|
197
|
-
|
|
202
|
+
}), el(() => {
|
|
203
|
+
Fe();
|
|
198
204
|
});
|
|
199
|
-
const
|
|
205
|
+
const N = y(() => Math.max(...m.value.flatMap((t) => (t.values || []).length))), ie = d(e.value.style.layout.width), ne = d(e.value.style.layout.height), _ = y(() => ({
|
|
200
206
|
width: Math.max(10, ie.value),
|
|
201
207
|
height: Math.max(10, ne.value)
|
|
202
|
-
})), re =
|
|
208
|
+
})), re = d(0), $t = Ce((t) => {
|
|
203
209
|
re.value = t;
|
|
204
210
|
}, 100);
|
|
205
211
|
Xe((t) => {
|
|
206
|
-
const o =
|
|
212
|
+
const o = _e.value;
|
|
207
213
|
if (!o) return;
|
|
208
214
|
const a = new ResizeObserver((s) => {
|
|
209
|
-
|
|
215
|
+
$t(s[0].contentRect.height);
|
|
210
216
|
});
|
|
211
217
|
a.observe(o), t(() => a.disconnect());
|
|
212
218
|
});
|
|
213
|
-
const J =
|
|
219
|
+
const J = d(0), Ot = Ce((t) => {
|
|
214
220
|
J.value = t;
|
|
215
221
|
}, 100);
|
|
216
222
|
Xe((t) => {
|
|
217
|
-
const o =
|
|
223
|
+
const o = je.value;
|
|
218
224
|
if (!o) return;
|
|
219
225
|
const a = new ResizeObserver((s) => {
|
|
220
|
-
|
|
226
|
+
Ot(s[0].contentRect.width);
|
|
221
227
|
});
|
|
222
228
|
a.observe(o), t(() => a.disconnect());
|
|
223
229
|
});
|
|
224
|
-
const ge =
|
|
230
|
+
const ge = d(0), Mt = Ce((t) => {
|
|
225
231
|
ge.value = t;
|
|
226
232
|
}, 100);
|
|
227
233
|
Xe((t) => {
|
|
@@ -231,81 +237,81 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
231
237
|
Mt(s[0].contentRect.height);
|
|
232
238
|
});
|
|
233
239
|
a.observe(o), t(() => a.disconnect());
|
|
234
|
-
}),
|
|
240
|
+
}), dt(() => {
|
|
235
241
|
re.value = 0, J.value = 0, ge.value = 0;
|
|
236
242
|
});
|
|
237
|
-
const r =
|
|
243
|
+
const r = y(() => Math.min(_.value.height, _.value.width) / 1e3 * e.value.style.layout.cells.spacing), l = y(() => {
|
|
238
244
|
let t = 0;
|
|
239
245
|
e.value.style.legend.show && (t = e.value.style.legend.width);
|
|
240
|
-
const o = e.value.style.layout.padding, a = e.value.style.layout.dataLabels.xAxis.fontSize / 3, s = e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
241
|
-
x: r.value *
|
|
246
|
+
const o = e.value.style.layout.padding, a = e.value.style.layout.dataLabels.xAxis.fontSize / 3, s = e.value.style.layout.dataLabels.xAxis.fontSize / 2, v = _.value.height - o.top - o.bottom - re.value - a, c = _.value.width / 60, x = {
|
|
247
|
+
x: r.value * N.value,
|
|
242
248
|
y: r.value * ((m.value || []).length + 1)
|
|
243
|
-
},
|
|
244
|
-
width: Math.max(3,
|
|
249
|
+
}, D = _.value.width - o.left - o.right - x.x - c * 2 - 2 - t - J.value, h = v - c - x.y - ge.value - s - e.value.style.layout.cells.columnTotal.value.offsetY, A = {
|
|
250
|
+
width: Math.max(3, D / N.value),
|
|
245
251
|
height: Math.max(3, h / (m.value.length ?? 1))
|
|
246
252
|
};
|
|
247
253
|
return {
|
|
248
|
-
top: o.top + re.value +
|
|
254
|
+
top: o.top + re.value + c + a,
|
|
249
255
|
topLabelsHeight: re.value,
|
|
250
|
-
sumCellXHeight:
|
|
256
|
+
sumCellXHeight: c,
|
|
251
257
|
height: h,
|
|
252
|
-
left: o.left + J.value +
|
|
258
|
+
left: o.left + J.value + c / 2,
|
|
253
259
|
right: o.right - t,
|
|
254
260
|
bottom: _.value.height - o.bottom - ge.value,
|
|
255
|
-
width:
|
|
261
|
+
width: D,
|
|
256
262
|
cellSize: A
|
|
257
263
|
};
|
|
258
|
-
}), V =
|
|
264
|
+
}), V = y(() => Math.max(...m.value.flatMap((t) => t.values))), ve = y(() => Math.min(...m.value.flatMap((t) => t.values))), U = y(() => {
|
|
259
265
|
const t = m.value.flatMap((a) => a.values);
|
|
260
266
|
return t.reduce((a, s) => a + s, 0) / t.length;
|
|
261
|
-
}),
|
|
267
|
+
}), Rt = y(() => mt({
|
|
262
268
|
values: e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : m.value.map((t) => t.name),
|
|
263
269
|
maxDatapoints: m.value.length,
|
|
264
270
|
formatter: e.value.style.layout.dataLabels.yAxis.datetimeFormatter,
|
|
265
271
|
start: 0,
|
|
266
272
|
end: m.value.length
|
|
267
|
-
})),
|
|
273
|
+
})), Ft = y(() => mt({
|
|
268
274
|
values: e.value.style.layout.dataLabels.xAxis.values,
|
|
269
|
-
maxDatapoints:
|
|
275
|
+
maxDatapoints: N.value,
|
|
270
276
|
formatter: e.value.style.layout.dataLabels.xAxis.datetimeFormatter,
|
|
271
277
|
start: 0,
|
|
272
|
-
end:
|
|
273
|
-
})),
|
|
274
|
-
const t =
|
|
275
|
-
for (let h = 0; h <
|
|
276
|
-
|
|
277
|
-
const x = Math.max(...
|
|
278
|
+
end: N.value
|
|
279
|
+
})), g = y(() => {
|
|
280
|
+
const t = Rt.value.map((h) => h.text), o = Ft.value.map((h) => h.text), a = m.value.map((h) => h.values.reduce((A, Pe) => A + Pe, 0)), s = Math.max(...a), v = Math.min(...a), c = [];
|
|
281
|
+
for (let h = 0; h < N.value; h += 1)
|
|
282
|
+
c.push(m.value.map((A) => A.values[h] || 0).reduce((A, Pe) => A + Pe, 0));
|
|
283
|
+
const x = Math.max(...c), D = Math.min(...c);
|
|
278
284
|
return {
|
|
279
285
|
yTotals: a.map((h) => {
|
|
280
286
|
const A = isNaN(h / s) ? 0 : h / s;
|
|
281
287
|
return {
|
|
282
288
|
total: h,
|
|
283
289
|
proportion: A,
|
|
284
|
-
color: he(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot,
|
|
290
|
+
color: he(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, v, s, h)
|
|
285
291
|
};
|
|
286
292
|
}),
|
|
287
|
-
xTotals:
|
|
293
|
+
xTotals: c.map((h) => {
|
|
288
294
|
const A = isNaN(h / x) ? 0 : h / x;
|
|
289
295
|
return {
|
|
290
296
|
total: h,
|
|
291
297
|
proportion: A,
|
|
292
|
-
color: he(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot,
|
|
298
|
+
color: he(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, D, x, h)
|
|
293
299
|
};
|
|
294
300
|
}),
|
|
295
301
|
yLabels: t,
|
|
296
|
-
xLabels: o.slice(0,
|
|
302
|
+
xLabels: o.slice(0, N.value)
|
|
297
303
|
};
|
|
298
|
-
}), Y =
|
|
299
|
-
|
|
304
|
+
}), Y = y(() => (m.value.forEach((t, o) => {
|
|
305
|
+
il({
|
|
300
306
|
datasetObject: t,
|
|
301
307
|
requiredAttributes: ["values"]
|
|
302
308
|
}).forEach((a) => {
|
|
303
|
-
|
|
309
|
+
gt({
|
|
304
310
|
componentName: "VueUiHeatmap",
|
|
305
311
|
type: "datasetSerieAttribute",
|
|
306
312
|
property: "values",
|
|
307
313
|
index: o,
|
|
308
|
-
debug:
|
|
314
|
+
debug: lt.value
|
|
309
315
|
});
|
|
310
316
|
});
|
|
311
317
|
}), m.value.map((t, o) => ({
|
|
@@ -315,31 +321,31 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
315
321
|
color: he(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ve.value, V.value, a),
|
|
316
322
|
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)),
|
|
317
323
|
value: a,
|
|
318
|
-
yAxisName:
|
|
319
|
-
xAxisName:
|
|
320
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
324
|
+
yAxisName: g.value.yLabels[o],
|
|
325
|
+
xAxisName: g.value.xLabels[s],
|
|
326
|
+
id: `vue-data-ui-heatmap-cell-${Be()}`
|
|
321
327
|
} : {
|
|
322
328
|
side: "down",
|
|
323
329
|
ratio: Math.abs(1 - Math.abs(a) / Math.abs(U.value)) > 1 ? 1 : Math.abs(1 - Math.abs(a) / Math.abs(U.value)),
|
|
324
330
|
color: he(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ve.value, V.value, a),
|
|
325
331
|
value: a,
|
|
326
|
-
yAxisName:
|
|
327
|
-
xAxisName:
|
|
328
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
332
|
+
yAxisName: g.value.yLabels[o],
|
|
333
|
+
xAxisName: g.value.xLabels[s],
|
|
334
|
+
id: `vue-data-ui-heatmap-cell-${Be()}`
|
|
329
335
|
})
|
|
330
|
-
})))),
|
|
336
|
+
})))), at = y(() => m.value.length), ot = ht(Array(at.value * N.value || 1).fill(!1)), Nt = y(() => ot.some((t) => t));
|
|
331
337
|
function Dt(t, o) {
|
|
332
|
-
at[t] = o;
|
|
333
|
-
}
|
|
334
|
-
const ot = ct(Array(lt.value * D.value || 1).fill(!1)), Nt = g(() => ot.some((t) => t));
|
|
335
|
-
function Ht(t, o) {
|
|
336
338
|
ot[t] = o;
|
|
337
339
|
}
|
|
338
|
-
const
|
|
340
|
+
const st = ht(Array(at.value * N.value || 1).fill(!1)), Ht = y(() => st.some((t) => t));
|
|
341
|
+
function Pt(t, o) {
|
|
342
|
+
st[t] = o;
|
|
343
|
+
}
|
|
344
|
+
const R = d(null), be = d(null);
|
|
339
345
|
function Xt(t, o, a, s) {
|
|
340
346
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), se.value = { x: a, y: s };
|
|
341
|
-
const { value:
|
|
342
|
-
oe.value =
|
|
347
|
+
const { value: v, yAxisName: c, xAxisName: x, id: D } = t;
|
|
348
|
+
oe.value = D, R.value = v, be.value = {
|
|
343
349
|
datapoint: t,
|
|
344
350
|
seriesIndex: o,
|
|
345
351
|
series: Y.value,
|
|
@@ -347,7 +353,7 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
347
353
|
}, ae.value = !0;
|
|
348
354
|
let h = "";
|
|
349
355
|
const A = e.value.style.tooltip.customFormat;
|
|
350
|
-
|
|
356
|
+
dl(A) && hl(() => A({
|
|
351
357
|
datapoint: t,
|
|
352
358
|
seriesIndex: o,
|
|
353
359
|
series: Y.value,
|
|
@@ -357,106 +363,106 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
357
363
|
seriesIndex: o,
|
|
358
364
|
series: Y.value,
|
|
359
365
|
config: e.value
|
|
360
|
-
}) : (h += `<div>${
|
|
366
|
+
}) : (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(
|
|
361
367
|
e.value.style.layout.cells.value.formatter,
|
|
362
|
-
|
|
368
|
+
v,
|
|
363
369
|
H({
|
|
364
370
|
p: e.value.style.layout.dataLabels.prefix,
|
|
365
|
-
v
|
|
371
|
+
v,
|
|
366
372
|
s: e.value.style.layout.dataLabels.suffix,
|
|
367
373
|
r: e.value.style.tooltip.roundingValue
|
|
368
374
|
}),
|
|
369
375
|
{ datapoint: t, seriesIndex: o }
|
|
370
376
|
)}</span></div>`, q.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${h}</div>`);
|
|
371
377
|
}
|
|
372
|
-
function
|
|
378
|
+
function It({ datapoint: t, seriesIndex: o }) {
|
|
373
379
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o }), ae.value = !1, oe.value = void 0, R.value = null, se.value = null;
|
|
374
380
|
}
|
|
375
|
-
function
|
|
381
|
+
function Vt(t) {
|
|
376
382
|
return B(
|
|
377
383
|
e.value.style.layout.cells.value.formatter,
|
|
378
|
-
|
|
384
|
+
g.value.yTotals[t].total,
|
|
379
385
|
H({
|
|
380
386
|
p: e.value.style.layout.dataLabels.prefix,
|
|
381
|
-
v:
|
|
387
|
+
v: g.value.yTotals[t].total,
|
|
382
388
|
s: e.value.style.layout.dataLabels.suffix,
|
|
383
389
|
r: e.value.style.layout.cells.value.roundingValue
|
|
384
390
|
}),
|
|
385
|
-
{ datapoint:
|
|
391
|
+
{ datapoint: g.value.yTotals[t], rowIndex: t }
|
|
386
392
|
);
|
|
387
393
|
}
|
|
388
|
-
function
|
|
394
|
+
function Bt(t) {
|
|
389
395
|
return B(
|
|
390
396
|
e.value.style.layout.cells.value.formatter,
|
|
391
|
-
|
|
397
|
+
g.value.xTotals[t].total,
|
|
392
398
|
H({
|
|
393
399
|
p: e.value.style.layout.dataLabels.prefix,
|
|
394
|
-
v:
|
|
400
|
+
v: g.value.xTotals[t].total,
|
|
395
401
|
s: e.value.style.layout.dataLabels.suffix,
|
|
396
402
|
r: e.value.style.layout.cells.value.roundingValue
|
|
397
403
|
}),
|
|
398
|
-
{ datapoint:
|
|
404
|
+
{ datapoint: g.value.xTotals[t], colIndex: t }
|
|
399
405
|
);
|
|
400
406
|
}
|
|
401
|
-
|
|
407
|
+
y(() => {
|
|
402
408
|
const t = m.value.map((a) => ({
|
|
403
409
|
name: a.name
|
|
404
410
|
})), o = m.value.map((a) => a.values);
|
|
405
411
|
return { head: t, body: o };
|
|
406
412
|
});
|
|
407
|
-
function
|
|
408
|
-
|
|
409
|
-
const o = ["", ...m.value.map((
|
|
410
|
-
for (let
|
|
411
|
-
const x = [
|
|
412
|
-
for (let
|
|
413
|
-
x.push([m.value[
|
|
413
|
+
function Ne(t = null) {
|
|
414
|
+
Ie(() => {
|
|
415
|
+
const o = ["", ...m.value.map((c, x) => c.name)], a = [];
|
|
416
|
+
for (let c = 0; c < g.value.xLabels.length; c += 1) {
|
|
417
|
+
const x = [g.value.xLabels[c]];
|
|
418
|
+
for (let D = 0; D < m.value.length; D += 1)
|
|
419
|
+
x.push([m.value[D].values[c]]);
|
|
414
420
|
a.push(x);
|
|
415
421
|
}
|
|
416
|
-
const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(a),
|
|
417
|
-
t ? t(
|
|
422
|
+
const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(a), v = vl(s);
|
|
423
|
+
t ? t(v) : cl({ csvContent: v, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
418
424
|
});
|
|
419
425
|
}
|
|
420
|
-
const G =
|
|
421
|
-
function
|
|
422
|
-
G.value = t,
|
|
423
|
-
}
|
|
424
|
-
function ut() {
|
|
425
|
-
z.value.showTable = !z.value.showTable;
|
|
426
|
+
const G = d(!1);
|
|
427
|
+
function ut(t) {
|
|
428
|
+
G.value = t, Ee.value += 1;
|
|
426
429
|
}
|
|
427
430
|
function it() {
|
|
428
|
-
|
|
431
|
+
$.value.showTable = !$.value.showTable;
|
|
429
432
|
}
|
|
430
|
-
|
|
433
|
+
function nt() {
|
|
434
|
+
$.value.showTooltip = !$.value.showTooltip;
|
|
435
|
+
}
|
|
436
|
+
const me = d(!1);
|
|
431
437
|
function De() {
|
|
432
438
|
me.value = !me.value;
|
|
433
439
|
}
|
|
434
|
-
function
|
|
440
|
+
function Et(t, o) {
|
|
435
441
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o }), fe("selectDatapoint", t);
|
|
436
442
|
}
|
|
437
|
-
function
|
|
443
|
+
function Ut() {
|
|
438
444
|
return Y.value;
|
|
439
445
|
}
|
|
440
|
-
async function
|
|
441
|
-
if (!
|
|
442
|
-
const { width: o, height: a } =
|
|
446
|
+
async function Yt({ scale: t = 2 } = {}) {
|
|
447
|
+
if (!L.value) return;
|
|
448
|
+
const { width: o, height: a } = L.value.getBoundingClientRect(), s = o / a, { imageUri: v, base64: c } = await Al({ domElement: L.value, base64: !0, img: !0, scale: t });
|
|
443
449
|
return {
|
|
444
|
-
imageUri:
|
|
445
|
-
base64:
|
|
450
|
+
imageUri: v,
|
|
451
|
+
base64: c,
|
|
446
452
|
title: e.value.style.title.text,
|
|
447
453
|
width: o,
|
|
448
454
|
height: a,
|
|
449
455
|
aspectRatio: s
|
|
450
456
|
};
|
|
451
457
|
}
|
|
452
|
-
const
|
|
458
|
+
const rt = y(() => ({
|
|
453
459
|
start: 0,
|
|
454
|
-
end:
|
|
455
|
-
})),
|
|
456
|
-
|
|
457
|
-
timeLabelsEls:
|
|
458
|
-
timeLabels:
|
|
459
|
-
slicer:
|
|
460
|
+
end: N.value
|
|
461
|
+
})), vt = y(() => g.value.xLabels);
|
|
462
|
+
xt({
|
|
463
|
+
timeLabelsEls: _e,
|
|
464
|
+
timeLabels: vt,
|
|
465
|
+
slicer: rt,
|
|
460
466
|
configRef: e,
|
|
461
467
|
rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
|
|
462
468
|
autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
|
|
@@ -465,10 +471,10 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
465
471
|
rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
466
472
|
width: ie,
|
|
467
473
|
height: ne
|
|
468
|
-
}),
|
|
474
|
+
}), xt({
|
|
469
475
|
timeLabelsEls: ze,
|
|
470
|
-
timeLabels:
|
|
471
|
-
slicer:
|
|
476
|
+
timeLabels: vt,
|
|
477
|
+
slicer: rt,
|
|
472
478
|
configRef: e,
|
|
473
479
|
rotationPath: ["style", "layout", "cells", "columnTotal", "value", "rotation"],
|
|
474
480
|
autoRotatePath: ["style", "layout", "cells", "columnTotal", "value", "autoRotate", "enable"],
|
|
@@ -478,10 +484,10 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
478
484
|
width: ie,
|
|
479
485
|
height: ne
|
|
480
486
|
});
|
|
481
|
-
const xe =
|
|
482
|
-
const t = e.value.table.useDialog && !e.value.table.show, o =
|
|
487
|
+
const xe = y(() => {
|
|
488
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = $.value.showTable;
|
|
483
489
|
return {
|
|
484
|
-
component: t ?
|
|
490
|
+
component: t ? Le : Tl,
|
|
485
491
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
486
492
|
props: t ? {
|
|
487
493
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -489,7 +495,7 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
489
495
|
headerColor: e.value.table.th.color,
|
|
490
496
|
headerBg: e.value.table.th.backgroundColor,
|
|
491
497
|
isFullscreen: G.value,
|
|
492
|
-
fullscreenParent:
|
|
498
|
+
fullscreenParent: L.value,
|
|
493
499
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
494
500
|
} : {
|
|
495
501
|
hideDetails: !0,
|
|
@@ -508,55 +514,68 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
508
514
|
}
|
|
509
515
|
};
|
|
510
516
|
});
|
|
511
|
-
we(() =>
|
|
512
|
-
e.value.table.show || (t && e.value.table.useDialog && ue.value ? (await
|
|
517
|
+
we(() => $.value.showTable, async (t) => {
|
|
518
|
+
e.value.table.show || (t && e.value.table.useDialog && ue.value ? (await Ie(), ue.value.open()) : "close" in ue.value && ue.value.close());
|
|
513
519
|
});
|
|
514
|
-
const { isResponsive:
|
|
515
|
-
function
|
|
516
|
-
|
|
520
|
+
const { isResponsive: Gt } = xl(Ue, zt);
|
|
521
|
+
function He() {
|
|
522
|
+
$.value.showTable = !1, Se.value && Se.value.setTableIconState(!1);
|
|
517
523
|
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
524
|
+
const Wt = y(() => e.value.style.backgroundColor), jt = y(() => e.value.style.title), { exportSvg: qt, getSvg: Kt } = ml({
|
|
525
|
+
svg: Me,
|
|
526
|
+
title: jt,
|
|
527
|
+
backgroundColor: Wt
|
|
528
|
+
});
|
|
529
|
+
async function ct({ isCb: t }) {
|
|
530
|
+
if (t) {
|
|
531
|
+
const { blob: o, url: a, text: s, dataUrl: v } = await Kt();
|
|
532
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: a, text: s, dataUrl: v });
|
|
533
|
+
} else
|
|
534
|
+
qt();
|
|
535
|
+
}
|
|
536
|
+
return P({
|
|
537
|
+
getData: Ut,
|
|
538
|
+
getImage: Yt,
|
|
539
|
+
generatePdf: et,
|
|
540
|
+
generateCsv: Ne,
|
|
541
|
+
generateImage: tt,
|
|
542
|
+
generateSvg: ct,
|
|
543
|
+
toggleTable: it,
|
|
544
|
+
toggleTooltip: nt,
|
|
526
545
|
toggleAnnotator: De,
|
|
527
|
-
toggleFullscreen:
|
|
546
|
+
toggleFullscreen: ut
|
|
528
547
|
}), (t, o) => (u(), n("div", {
|
|
529
548
|
ref_key: "heatmapChart",
|
|
530
|
-
ref:
|
|
531
|
-
class: ce(`vue-ui-heatmap ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
549
|
+
ref: L,
|
|
550
|
+
class: ce(`vue-data-ui-component vue-ui-heatmap ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
532
551
|
style: w(`font-family:${e.value.style.fontFamily};width:100%;${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.backgroundColor}`),
|
|
533
552
|
id: `heatmap__${M.value}`,
|
|
534
|
-
onMouseenter: o[1] || (o[1] = () =>
|
|
535
|
-
onMouseleave: o[2] || (o[2] = () =>
|
|
553
|
+
onMouseenter: o[1] || (o[1] = () => Je(!0)),
|
|
554
|
+
onMouseleave: o[2] || (o[2] = () => Je(!1))
|
|
536
555
|
}, [
|
|
537
|
-
e.value.userOptions.buttons.annotator ? (u(), de(i(
|
|
556
|
+
e.value.userOptions.buttons.annotator ? (u(), de(i(O), {
|
|
538
557
|
key: 0,
|
|
539
|
-
svgRef: i(
|
|
558
|
+
svgRef: i(Me),
|
|
540
559
|
backgroundColor: e.value.style.backgroundColor,
|
|
541
560
|
color: e.value.style.color,
|
|
542
561
|
active: me.value,
|
|
543
562
|
onClose: De
|
|
544
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
563
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
545
564
|
_t.value ? (u(), n("div", {
|
|
546
565
|
key: 1,
|
|
547
566
|
ref_key: "noTitle",
|
|
548
|
-
ref:
|
|
567
|
+
ref: We,
|
|
549
568
|
class: "vue-data-ui-no-title-space",
|
|
550
569
|
style: "height:36px; width: 100%;background:transparent"
|
|
551
|
-
}, null, 512)) :
|
|
570
|
+
}, null, 512)) : f("", !0),
|
|
552
571
|
e.value.style.title.text ? (u(), n("div", {
|
|
553
572
|
key: 2,
|
|
554
573
|
ref_key: "chartTitle",
|
|
555
|
-
ref:
|
|
574
|
+
ref: Ge,
|
|
556
575
|
style: "width:100%;background:transparent"
|
|
557
576
|
}, [
|
|
558
|
-
(u(), de(
|
|
559
|
-
key: `title_${
|
|
577
|
+
(u(), de(Cl, {
|
|
578
|
+
key: `title_${Ye.value}`,
|
|
560
579
|
config: {
|
|
561
580
|
title: {
|
|
562
581
|
cy: "heatmap-div-title",
|
|
@@ -568,101 +587,103 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
568
587
|
}
|
|
569
588
|
}
|
|
570
589
|
}, null, 8, ["config"]))
|
|
571
|
-
], 512)) :
|
|
572
|
-
e.value.userOptions.show && j.value && (i(
|
|
590
|
+
], 512)) : f("", !0),
|
|
591
|
+
e.value.userOptions.show && j.value && (i(Ke) || i(Oe)) ? (u(), de(i(le), {
|
|
573
592
|
ref_key: "userOptionsRef",
|
|
574
|
-
ref:
|
|
575
|
-
key: `user_options_${
|
|
593
|
+
ref: Se,
|
|
594
|
+
key: `user_options_${Ee.value}`,
|
|
576
595
|
backgroundColor: e.value.style.backgroundColor,
|
|
577
596
|
color: e.value.style.color,
|
|
578
|
-
isImaging: i(
|
|
579
|
-
isPrinting: i(
|
|
597
|
+
isImaging: i(Ze),
|
|
598
|
+
isPrinting: i(Qe),
|
|
580
599
|
uid: M.value,
|
|
581
600
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
582
601
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
583
602
|
hasImg: e.value.userOptions.buttons.img,
|
|
603
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
584
604
|
hasXls: e.value.userOptions.buttons.csv,
|
|
585
605
|
hasTable: e.value.userOptions.buttons.table,
|
|
586
606
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
587
607
|
isFullscreen: G.value,
|
|
588
|
-
isTooltip:
|
|
608
|
+
isTooltip: $.value.showTooltip,
|
|
589
609
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
590
|
-
chartElement:
|
|
610
|
+
chartElement: L.value,
|
|
591
611
|
position: e.value.userOptions.position,
|
|
592
612
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
593
613
|
isAnnotation: me.value,
|
|
594
614
|
callbacks: e.value.userOptions.callbacks,
|
|
595
615
|
printScale: e.value.userOptions.print.scale,
|
|
596
616
|
tableDialog: e.value.table.useDialog,
|
|
597
|
-
onToggleFullscreen:
|
|
598
|
-
onGeneratePdf: i(
|
|
599
|
-
onGenerateCsv:
|
|
600
|
-
onGenerateImage: i(
|
|
601
|
-
|
|
602
|
-
|
|
617
|
+
onToggleFullscreen: ut,
|
|
618
|
+
onGeneratePdf: i(et),
|
|
619
|
+
onGenerateCsv: Ne,
|
|
620
|
+
onGenerateImage: i(tt),
|
|
621
|
+
onGenerateSvg: ct,
|
|
622
|
+
onToggleTable: it,
|
|
623
|
+
onToggleTooltip: nt,
|
|
603
624
|
onToggleAnnotator: De,
|
|
604
625
|
style: w({
|
|
605
|
-
visibility: i(
|
|
626
|
+
visibility: i(Ke) ? i(Oe) ? "visible" : "hidden" : "visible"
|
|
606
627
|
})
|
|
607
|
-
},
|
|
628
|
+
}, yt({ _: 2 }, [
|
|
608
629
|
t.$slots.menuIcon ? {
|
|
609
630
|
name: "menuIcon",
|
|
610
|
-
fn:
|
|
611
|
-
|
|
631
|
+
fn: z(({ isOpen: a, color: s }) => [
|
|
632
|
+
T(t.$slots, "menuIcon", Z(ee({ isOpen: a, color: s })), void 0, !0)
|
|
612
633
|
]),
|
|
613
634
|
key: "0"
|
|
614
635
|
} : void 0,
|
|
615
636
|
t.$slots.optionTooltip ? {
|
|
616
637
|
name: "optionTooltip",
|
|
617
|
-
fn:
|
|
618
|
-
|
|
638
|
+
fn: z(() => [
|
|
639
|
+
T(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
619
640
|
]),
|
|
620
641
|
key: "1"
|
|
621
642
|
} : void 0,
|
|
622
643
|
t.$slots.optionPdf ? {
|
|
623
644
|
name: "optionPdf",
|
|
624
|
-
fn:
|
|
625
|
-
|
|
645
|
+
fn: z(() => [
|
|
646
|
+
T(t.$slots, "optionPdf", {}, void 0, !0)
|
|
626
647
|
]),
|
|
627
648
|
key: "2"
|
|
628
649
|
} : void 0,
|
|
629
650
|
t.$slots.optionCsv ? {
|
|
630
651
|
name: "optionCsv",
|
|
631
|
-
fn:
|
|
632
|
-
|
|
652
|
+
fn: z(() => [
|
|
653
|
+
T(t.$slots, "optionCsv", {}, void 0, !0)
|
|
633
654
|
]),
|
|
634
655
|
key: "3"
|
|
635
656
|
} : void 0,
|
|
636
657
|
t.$slots.optionImg ? {
|
|
637
658
|
name: "optionImg",
|
|
638
|
-
fn:
|
|
639
|
-
|
|
659
|
+
fn: z(() => [
|
|
660
|
+
T(t.$slots, "optionImg", {}, void 0, !0)
|
|
640
661
|
]),
|
|
641
662
|
key: "4"
|
|
642
663
|
} : void 0,
|
|
643
664
|
t.$slots.optionTable ? {
|
|
644
665
|
name: "optionTable",
|
|
645
|
-
fn:
|
|
646
|
-
|
|
666
|
+
fn: z(() => [
|
|
667
|
+
T(t.$slots, "optionTable", {}, void 0, !0)
|
|
647
668
|
]),
|
|
648
669
|
key: "5"
|
|
649
670
|
} : void 0,
|
|
650
671
|
t.$slots.optionFullscreen ? {
|
|
651
672
|
name: "optionFullscreen",
|
|
652
|
-
fn:
|
|
653
|
-
|
|
673
|
+
fn: z(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
674
|
+
T(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
654
675
|
]),
|
|
655
676
|
key: "6"
|
|
656
677
|
} : void 0,
|
|
657
678
|
t.$slots.optionAnnotator ? {
|
|
658
679
|
name: "optionAnnotator",
|
|
659
|
-
fn:
|
|
660
|
-
|
|
680
|
+
fn: z(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
681
|
+
T(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
661
682
|
]),
|
|
662
683
|
key: "7"
|
|
663
684
|
} : void 0
|
|
664
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
665
|
-
|
|
685
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
686
|
+
p("div", {
|
|
666
687
|
class: ce({
|
|
667
688
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
668
689
|
"vue-ui-heatmap-chart-wrapper-legend-right": e.value.style.legend.show
|
|
@@ -670,8 +691,8 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
670
691
|
}, [
|
|
671
692
|
(u(), n("svg", {
|
|
672
693
|
ref_key: "svgRef",
|
|
673
|
-
ref:
|
|
674
|
-
xmlns: i(
|
|
694
|
+
ref: Me,
|
|
695
|
+
xmlns: i(nl),
|
|
675
696
|
class: ce({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
676
697
|
viewBox: `0 0 ${_.value.width} ${_.value.height}`,
|
|
677
698
|
width: "100%",
|
|
@@ -680,7 +701,7 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
680
701
|
role: "img",
|
|
681
702
|
preserveAspectRatio: "xMidYMid"
|
|
682
703
|
}, [
|
|
683
|
-
ke(i(
|
|
704
|
+
ke(i(X)),
|
|
684
705
|
t.$slots["chart-background"] ? (u(), n("foreignObject", {
|
|
685
706
|
key: 0,
|
|
686
707
|
x: l.value.left,
|
|
@@ -691,14 +712,14 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
691
712
|
pointerEvents: "none"
|
|
692
713
|
}
|
|
693
714
|
}, [
|
|
694
|
-
|
|
695
|
-
], 8,
|
|
715
|
+
T(t.$slots, "chart-background", {}, void 0, !0)
|
|
716
|
+
], 8, Ol)) : f("", !0),
|
|
696
717
|
e.value.style.layout.cells.columnTotal.color.show ? (u(), n("g", {
|
|
697
718
|
key: 1,
|
|
698
719
|
ref_key: "xAxisSumRects",
|
|
699
720
|
ref: Lt
|
|
700
721
|
}, [
|
|
701
|
-
(u(!0), n(
|
|
722
|
+
(u(!0), n(C, null, F(g.value.xTotals, (a, s) => (u(), n("rect", {
|
|
702
723
|
x: l.value.left + l.value.cellSize.width * s + r.value / 2 + l.value.sumCellXHeight,
|
|
703
724
|
y: l.value.top - l.value.sumCellXHeight + r.value * (_.value.height / _.value.width),
|
|
704
725
|
height: l.value.sumCellXHeight,
|
|
@@ -706,8 +727,8 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
706
727
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
707
728
|
stroke: e.value.style.backgroundColor,
|
|
708
729
|
"stroke-width": r.value
|
|
709
|
-
}, null, 8,
|
|
710
|
-
(u(!0), n(
|
|
730
|
+
}, null, 8, Ml))), 256)),
|
|
731
|
+
(u(!0), n(C, null, F(g.value.xTotals, (a, s) => (u(), n("rect", {
|
|
711
732
|
x: l.value.left + l.value.cellSize.width * s + r.value / 2 + l.value.sumCellXHeight,
|
|
712
733
|
y: l.value.top - l.value.sumCellXHeight + r.value * (_.value.height / _.value.width),
|
|
713
734
|
height: l.value.sumCellXHeight,
|
|
@@ -715,79 +736,79 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
715
736
|
fill: a.color,
|
|
716
737
|
stroke: e.value.style.backgroundColor,
|
|
717
738
|
"stroke-width": r.value
|
|
718
|
-
}, null, 8,
|
|
719
|
-
], 512)) :
|
|
720
|
-
|
|
739
|
+
}, null, 8, Rl))), 256))
|
|
740
|
+
], 512)) : f("", !0),
|
|
741
|
+
p("g", {
|
|
721
742
|
ref_key: "datapoints",
|
|
722
|
-
ref:
|
|
743
|
+
ref: kt
|
|
723
744
|
}, [
|
|
724
|
-
(u(!0), n(
|
|
725
|
-
(u(!0), n(
|
|
726
|
-
|
|
727
|
-
x: l.value.left + l.value.cellSize.width *
|
|
745
|
+
(u(!0), n(C, null, F(Y.value, (a, s) => (u(), n(C, null, [
|
|
746
|
+
(u(!0), n(C, null, F(a.temperatures, (v, c) => (u(), n("g", null, [
|
|
747
|
+
p("rect", {
|
|
748
|
+
x: l.value.left + l.value.cellSize.width * c + r.value / 2 + l.value.sumCellXHeight,
|
|
728
749
|
y: l.value.top + l.value.cellSize.height * s + r.value / 2,
|
|
729
750
|
width: l.value.cellSize.width - r.value,
|
|
730
751
|
height: l.value.cellSize.height - r.value,
|
|
731
752
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
732
753
|
stroke: e.value.style.backgroundColor,
|
|
733
754
|
"stroke-width": r.value
|
|
734
|
-
}, null, 8,
|
|
735
|
-
|
|
736
|
-
x: l.value.left + l.value.cellSize.width *
|
|
755
|
+
}, null, 8, Fl),
|
|
756
|
+
p("rect", {
|
|
757
|
+
x: l.value.left + l.value.cellSize.width * c + r.value / 2 + l.value.sumCellXHeight,
|
|
737
758
|
y: l.value.top + l.value.cellSize.height * s + r.value / 2,
|
|
738
759
|
width: l.value.cellSize.width - r.value,
|
|
739
760
|
height: l.value.cellSize.height - r.value,
|
|
740
|
-
fill:
|
|
761
|
+
fill: v.color,
|
|
741
762
|
stroke: e.value.style.backgroundColor,
|
|
742
763
|
"stroke-width": r.value,
|
|
743
|
-
onMouseover: (x) => Xt(
|
|
744
|
-
onMouseout: () =>
|
|
745
|
-
onClick: () =>
|
|
746
|
-
}, null, 40,
|
|
747
|
-
e.value.style.layout.cells.value.show ?
|
|
764
|
+
onMouseover: (x) => Xt(v, s, l.value.left + l.value.cellSize.width * c, l.value.top + l.value.cellSize.height * s),
|
|
765
|
+
onMouseout: () => It({ datapoint: v, seriesIndex: s }),
|
|
766
|
+
onClick: () => Et(v, s)
|
|
767
|
+
}, null, 40, Nl),
|
|
768
|
+
e.value.style.layout.cells.value.show ? ft((u(), n("text", {
|
|
748
769
|
key: 0,
|
|
749
770
|
"text-anchor": "middle",
|
|
750
771
|
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
751
772
|
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
752
|
-
fill: i(Ae)(
|
|
753
|
-
x: l.value.left + l.value.cellSize.width *
|
|
773
|
+
fill: i(Ae)(v.color),
|
|
774
|
+
x: l.value.left + l.value.cellSize.width * c + l.value.cellSize.width / 2 + l.value.sumCellXHeight,
|
|
754
775
|
y: l.value.top + l.value.cellSize.height * s + l.value.cellSize.height / 2 + e.value.style.layout.cells.value.fontSize / 3,
|
|
755
776
|
style: { pointerEvents: "none", userSelect: "none" }
|
|
756
777
|
}, [
|
|
757
|
-
|
|
778
|
+
Ve(S(i(B)(
|
|
758
779
|
e.value.style.layout.cells.value.formatter,
|
|
759
|
-
|
|
780
|
+
v.value,
|
|
760
781
|
i(H)({
|
|
761
782
|
p: e.value.style.layout.dataLabels.prefix,
|
|
762
|
-
v:
|
|
783
|
+
v: v.value,
|
|
763
784
|
s: e.value.style.layout.dataLabels.suffix,
|
|
764
785
|
r: e.value.style.layout.cells.value.roundingValue
|
|
765
786
|
}),
|
|
766
|
-
{ datapoint:
|
|
787
|
+
{ datapoint: v }
|
|
767
788
|
)), 1)
|
|
768
|
-
], 8,
|
|
769
|
-
[i(
|
|
789
|
+
], 8, Dl)), [
|
|
790
|
+
[i(_l), {
|
|
770
791
|
cellWidth: l.value.cellSize.width - r.value,
|
|
771
792
|
cellHeight: l.value.cellSize.height - r.value,
|
|
772
793
|
maxFontSize: e.value.style.layout.cells.value.fontSize,
|
|
773
794
|
minFontSize: 10,
|
|
774
|
-
index: s *
|
|
775
|
-
reportHide:
|
|
795
|
+
index: s * N.value + c,
|
|
796
|
+
reportHide: Pt,
|
|
776
797
|
reportRotation: Dt,
|
|
777
|
-
hideAll:
|
|
778
|
-
rotateAll:
|
|
798
|
+
hideAll: Ht.value,
|
|
799
|
+
rotateAll: Nt.value
|
|
779
800
|
}]
|
|
780
|
-
]) :
|
|
801
|
+
]) : f("", !0)
|
|
781
802
|
]))), 256))
|
|
782
803
|
], 64))), 256))
|
|
783
804
|
], 512),
|
|
784
805
|
e.value.style.layout.cells.rowTotal.color.show ? (u(), n("g", {
|
|
785
806
|
key: 2,
|
|
786
807
|
ref_key: "yAxisSumRects",
|
|
787
|
-
ref:
|
|
808
|
+
ref: Ct
|
|
788
809
|
}, [
|
|
789
|
-
(u(!0), n(
|
|
790
|
-
|
|
810
|
+
(u(!0), n(C, null, F(Y.value, (a, s) => (u(), n(C, null, [
|
|
811
|
+
p("rect", {
|
|
791
812
|
x: l.value.left,
|
|
792
813
|
y: l.value.top + l.value.cellSize.height * s,
|
|
793
814
|
width: l.value.sumCellXHeight,
|
|
@@ -795,25 +816,25 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
795
816
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
796
817
|
stroke: e.value.style.backgroundColor,
|
|
797
818
|
"stroke-width": r.value
|
|
798
|
-
}, null, 8,
|
|
799
|
-
|
|
819
|
+
}, null, 8, Hl),
|
|
820
|
+
p("rect", {
|
|
800
821
|
x: l.value.left,
|
|
801
822
|
y: l.value.top + l.value.cellSize.height * s + r.value / 2,
|
|
802
823
|
width: l.value.sumCellXHeight,
|
|
803
824
|
height: l.value.cellSize.height - r.value,
|
|
804
|
-
fill:
|
|
825
|
+
fill: g.value.yTotals[s].color,
|
|
805
826
|
stroke: e.value.style.backgroundColor,
|
|
806
827
|
"stroke-width": r.value
|
|
807
|
-
}, null, 8,
|
|
828
|
+
}, null, 8, Pl)
|
|
808
829
|
], 64))), 256))
|
|
809
|
-
], 512)) :
|
|
830
|
+
], 512)) : f("", !0),
|
|
810
831
|
e.value.style.layout.dataLabels.yAxis.show ? (u(), n("g", {
|
|
811
832
|
key: 3,
|
|
812
833
|
ref_key: "yAxisLabels",
|
|
813
|
-
ref:
|
|
834
|
+
ref: je
|
|
814
835
|
}, [
|
|
815
|
-
(u(!0), n(
|
|
816
|
-
|
|
836
|
+
(u(!0), n(C, null, F(Y.value, (a, s) => (u(), n(C, null, [
|
|
837
|
+
p("text", {
|
|
817
838
|
class: "vue-ui-heatmap-row-name",
|
|
818
839
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
819
840
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
@@ -821,7 +842,7 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
821
842
|
y: l.value.top + l.value.cellSize.height * s + 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),
|
|
822
843
|
"text-anchor": "end",
|
|
823
844
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
824
|
-
},
|
|
845
|
+
}, S(g.value.yLabels[s]), 9, Xl),
|
|
825
846
|
e.value.style.layout.cells.rowTotal.value.show ? (u(), n("text", {
|
|
826
847
|
key: 0,
|
|
827
848
|
class: "vue-ui-heatmap-row-total",
|
|
@@ -831,15 +852,15 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
831
852
|
y: l.value.top + l.value.cellSize.height * s + l.value.cellSize.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize + e.value.style.layout.dataLabels.yAxis.offsetY,
|
|
832
853
|
"text-anchor": "end",
|
|
833
854
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
834
|
-
},
|
|
855
|
+
}, S(Vt(s)), 9, Il)) : f("", !0)
|
|
835
856
|
], 64))), 256))
|
|
836
|
-
], 512)) :
|
|
857
|
+
], 512)) : f("", !0),
|
|
837
858
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), n("g", {
|
|
838
859
|
key: 4,
|
|
839
860
|
ref_key: "xAxisLabels",
|
|
840
|
-
ref:
|
|
861
|
+
ref: _e
|
|
841
862
|
}, [
|
|
842
|
-
(u(!0), n(
|
|
863
|
+
(u(!0), n(C, null, F(g.value.xLabels, (a, s) => (u(), n(C, null, [
|
|
843
864
|
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && s % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (u(), n("text", {
|
|
844
865
|
key: 0,
|
|
845
866
|
class: "vue-ui-heatmap-col-name",
|
|
@@ -847,26 +868,26 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
847
868
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
848
869
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
849
870
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
850
|
-
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width /
|
|
851
|
-
},
|
|
871
|
+
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / g.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + l.value.sumCellXHeight}, ${l.value.topLabelsHeight}), rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
872
|
+
}, S(a), 9, Vl)) : f("", !0)
|
|
852
873
|
], 64))), 256))
|
|
853
|
-
], 512)) :
|
|
874
|
+
], 512)) : f("", !0),
|
|
854
875
|
e.value.style.layout.cells.columnTotal.value.show ? (u(), n("g", {
|
|
855
876
|
key: 5,
|
|
856
877
|
ref_key: "xAxisSums",
|
|
857
878
|
ref: ze
|
|
858
879
|
}, [
|
|
859
|
-
(u(!0), n(
|
|
880
|
+
(u(!0), n(C, null, F(g.value.xLabels, (a, s) => (u(), n("text", {
|
|
860
881
|
class: "vue-ui-heatmap-col-total",
|
|
861
882
|
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
862
883
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
863
884
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
864
885
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
865
|
-
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width /
|
|
866
|
-
},
|
|
867
|
-
], 512)) :
|
|
868
|
-
se.value ? (u(), n("g",
|
|
869
|
-
|
|
886
|
+
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / g.value.xLabels.length * s + 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})`
|
|
887
|
+
}, S(Bt(s)), 9, Bl))), 256))
|
|
888
|
+
], 512)) : f("", !0),
|
|
889
|
+
se.value ? (u(), n("g", El, [
|
|
890
|
+
p("rect", {
|
|
870
891
|
style: { "pointer-events": "none" },
|
|
871
892
|
x: se.value.x - e.value.style.layout.cells.selected.border / 2 + r.value + l.value.sumCellXHeight,
|
|
872
893
|
y: se.value.y - e.value.style.layout.cells.selected.border / 2 + r.value,
|
|
@@ -876,27 +897,27 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
876
897
|
stroke: e.value.style.layout.cells.selected.color,
|
|
877
898
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
878
899
|
rx: 1
|
|
879
|
-
}, null, 8,
|
|
880
|
-
])) :
|
|
881
|
-
|
|
882
|
-
], 14,
|
|
900
|
+
}, null, 8, Ul)
|
|
901
|
+
])) : f("", !0),
|
|
902
|
+
T(t.$slots, "svg", { svg: _.value }, void 0, !0)
|
|
903
|
+
], 14, $l)),
|
|
883
904
|
e.value.style.legend.show ? (u(), n("div", {
|
|
884
905
|
key: 0,
|
|
885
906
|
ref_key: "legendRight",
|
|
886
|
-
ref:
|
|
907
|
+
ref: At,
|
|
887
908
|
class: "vue-ui-heatmap-legend-right",
|
|
888
909
|
style: w({
|
|
889
910
|
"--legend-width": e.value.style.legend.width + "px"
|
|
890
911
|
})
|
|
891
912
|
}, [
|
|
892
|
-
i(pe) ?
|
|
913
|
+
i(pe) ? f("", !0) : (u(), n("div", {
|
|
893
914
|
key: 0,
|
|
894
915
|
class: "vue-ui-heatmap-legend-label-max",
|
|
895
916
|
style: w({
|
|
896
917
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
897
918
|
color: e.value.style.legend.color
|
|
898
919
|
})
|
|
899
|
-
},
|
|
920
|
+
}, S(i(B)(
|
|
900
921
|
e.value.style.layout.cells.value.formatter,
|
|
901
922
|
i(E)(V.value),
|
|
902
923
|
i(H)({
|
|
@@ -906,14 +927,14 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
906
927
|
r: e.value.style.legend.roundingValue
|
|
907
928
|
})
|
|
908
929
|
)), 5)),
|
|
909
|
-
|
|
910
|
-
|
|
930
|
+
p("div", Yl, [
|
|
931
|
+
p("div", {
|
|
911
932
|
class: "vue-ui-heatmap-gauge",
|
|
912
933
|
style: w({
|
|
913
934
|
background: `linear-gradient(to bottom, ${e.value.style.layout.cells.colors.hot}, ${e.value.style.layout.cells.colors.cold})`
|
|
914
935
|
})
|
|
915
936
|
}, [
|
|
916
|
-
|
|
937
|
+
ft(p("div", {
|
|
917
938
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
918
939
|
"data-value": i(B)(
|
|
919
940
|
e.value.style.layout.cells.value.formatter,
|
|
@@ -939,7 +960,7 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
939
960
|
"--gauge-arrow-font-size": e.value.style.legend.fontSize + "px"
|
|
940
961
|
})
|
|
941
962
|
}, [
|
|
942
|
-
|
|
963
|
+
p("div", Wl, S(i(B)(
|
|
943
964
|
e.value.style.layout.cells.value.formatter,
|
|
944
965
|
i(E)(R.value),
|
|
945
966
|
i(H)({
|
|
@@ -949,19 +970,19 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
949
970
|
r: e.value.style.legend.roundingValue
|
|
950
971
|
})
|
|
951
972
|
)), 1)
|
|
952
|
-
], 12,
|
|
953
|
-
[
|
|
973
|
+
], 12, Gl), [
|
|
974
|
+
[tl, ![void 0, null].includes(R.value)]
|
|
954
975
|
])
|
|
955
976
|
], 4)
|
|
956
977
|
]),
|
|
957
|
-
i(pe) ?
|
|
978
|
+
i(pe) ? f("", !0) : (u(), n("div", {
|
|
958
979
|
key: 1,
|
|
959
980
|
class: "vue-ui-heatmap-legend-label-min",
|
|
960
981
|
style: w({
|
|
961
982
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
962
983
|
color: e.value.style.legend.color
|
|
963
984
|
})
|
|
964
|
-
},
|
|
985
|
+
}, S(i(B)(
|
|
965
986
|
e.value.style.layout.cells.value.formatter,
|
|
966
987
|
i(E)(ve.value),
|
|
967
988
|
i(H)({
|
|
@@ -971,21 +992,21 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
971
992
|
r: e.value.style.legend.roundingValue
|
|
972
993
|
})
|
|
973
994
|
)), 5))
|
|
974
|
-
], 4)) :
|
|
995
|
+
], 4)) : f("", !0)
|
|
975
996
|
], 2),
|
|
976
|
-
t.$slots.watermark ? (u(), n("div",
|
|
977
|
-
|
|
978
|
-
])) :
|
|
997
|
+
t.$slots.watermark ? (u(), n("div", jl, [
|
|
998
|
+
T(t.$slots, "watermark", Z(ee({ isPrinting: i(Qe) || i(Ze) })), void 0, !0)
|
|
999
|
+
])) : f("", !0),
|
|
979
1000
|
t.$slots.source ? (u(), n("div", {
|
|
980
1001
|
key: 5,
|
|
981
1002
|
ref_key: "source",
|
|
982
|
-
ref:
|
|
1003
|
+
ref: qe,
|
|
983
1004
|
dir: "auto"
|
|
984
1005
|
}, [
|
|
985
|
-
|
|
986
|
-
], 512)) :
|
|
1006
|
+
T(t.$slots, "source", {}, void 0, !0)
|
|
1007
|
+
], 512)) : f("", !0),
|
|
987
1008
|
ke(i(W), {
|
|
988
|
-
show:
|
|
1009
|
+
show: $.value.showTooltip && ae.value,
|
|
989
1010
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
990
1011
|
color: e.value.style.tooltip.color,
|
|
991
1012
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -995,7 +1016,7 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
995
1016
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
996
1017
|
position: e.value.style.tooltip.position,
|
|
997
1018
|
offsetY: e.value.style.tooltip.offsetY,
|
|
998
|
-
parent:
|
|
1019
|
+
parent: L.value,
|
|
999
1020
|
content: q.value,
|
|
1000
1021
|
isFullscreen: G.value,
|
|
1001
1022
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
@@ -1004,37 +1025,37 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
1004
1025
|
smoothForce: e.value.style.tooltip.smoothForce,
|
|
1005
1026
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
1006
1027
|
}, {
|
|
1007
|
-
"tooltip-before":
|
|
1008
|
-
|
|
1028
|
+
"tooltip-before": z(() => [
|
|
1029
|
+
T(t.$slots, "tooltip-before", Z(ee({ ...be.value })), void 0, !0)
|
|
1009
1030
|
]),
|
|
1010
|
-
"tooltip-after":
|
|
1011
|
-
|
|
1031
|
+
"tooltip-after": z(() => [
|
|
1032
|
+
T(t.$slots, "tooltip-after", Z(ee({ ...be.value })), void 0, !0)
|
|
1012
1033
|
]),
|
|
1013
1034
|
_: 3
|
|
1014
1035
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1015
|
-
j.value && e.value.userOptions.buttons.table ? (u(), de(
|
|
1036
|
+
j.value && e.value.userOptions.buttons.table ? (u(), de(ll(xe.value.component), al({ key: 6 }, xe.value.props, {
|
|
1016
1037
|
ref_key: "tableUnit",
|
|
1017
1038
|
ref: ue,
|
|
1018
|
-
onClose:
|
|
1019
|
-
}),
|
|
1020
|
-
content:
|
|
1021
|
-
|
|
1039
|
+
onClose: He
|
|
1040
|
+
}), yt({
|
|
1041
|
+
content: z(() => [
|
|
1042
|
+
p("div", {
|
|
1022
1043
|
ref_key: "tableContainer",
|
|
1023
|
-
ref:
|
|
1044
|
+
ref: Ue,
|
|
1024
1045
|
class: "vue-ui-heatmap-table atom-data-table",
|
|
1025
1046
|
style: w(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1026
1047
|
}, [
|
|
1027
|
-
|
|
1048
|
+
p("div", {
|
|
1028
1049
|
style: w(`width:100%;overflow-x:auto;position:relative;${e.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1029
|
-
class: ce({ "vue-ui-responsive": i(
|
|
1050
|
+
class: ce({ "vue-ui-responsive": i(Gt) })
|
|
1030
1051
|
}, [
|
|
1031
|
-
e.value.table.useDialog ?
|
|
1052
|
+
e.value.table.useDialog ? f("", !0) : (u(), n("div", {
|
|
1032
1053
|
key: 0,
|
|
1033
1054
|
role: "button",
|
|
1034
1055
|
tabindex: "0",
|
|
1035
1056
|
style: w(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
1036
|
-
onClick:
|
|
1037
|
-
onKeypress:
|
|
1057
|
+
onClick: He,
|
|
1058
|
+
onKeypress: ol(He, ["enter"])
|
|
1038
1059
|
}, [
|
|
1039
1060
|
ke(i(te), {
|
|
1040
1061
|
name: "close",
|
|
@@ -1042,48 +1063,48 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
1042
1063
|
"stroke-width": 2
|
|
1043
1064
|
}, null, 8, ["stroke"])
|
|
1044
1065
|
], 36)),
|
|
1045
|
-
|
|
1046
|
-
e.value.table.useDialog ?
|
|
1066
|
+
p("table", ql, [
|
|
1067
|
+
e.value.table.useDialog ? f("", !0) : (u(), n("caption", {
|
|
1047
1068
|
key: 0,
|
|
1048
1069
|
style: w(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1049
1070
|
}, [
|
|
1050
|
-
|
|
1051
|
-
e.value.style.title.subtitle.text ? (u(), n("span",
|
|
1071
|
+
Ve(S(e.value.style.title.text) + " ", 1),
|
|
1072
|
+
e.value.style.title.subtitle.text ? (u(), n("span", Kl, S(e.value.style.title.subtitle.text), 1)) : f("", !0)
|
|
1052
1073
|
], 4)),
|
|
1053
|
-
|
|
1054
|
-
|
|
1074
|
+
p("thead", null, [
|
|
1075
|
+
p("tr", {
|
|
1055
1076
|
role: "row",
|
|
1056
1077
|
style: w(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1057
1078
|
}, [
|
|
1058
|
-
|
|
1079
|
+
p("th", {
|
|
1059
1080
|
style: w(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1060
1081
|
}, null, 4),
|
|
1061
|
-
(u(!0), n(
|
|
1082
|
+
(u(!0), n(C, null, F(b.dataset, (a, s) => (u(), n("th", {
|
|
1062
1083
|
align: "right",
|
|
1063
1084
|
style: w(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1064
|
-
},
|
|
1085
|
+
}, S(a.name), 5))), 256))
|
|
1065
1086
|
], 4)
|
|
1066
1087
|
]),
|
|
1067
|
-
|
|
1068
|
-
(u(!0), n(
|
|
1088
|
+
p("tbody", null, [
|
|
1089
|
+
(u(!0), n(C, null, F(g.value.xLabels, (a, s) => (u(), n("tr", {
|
|
1069
1090
|
role: "row",
|
|
1070
1091
|
class: ce({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": s % 2 === 0, "vue-ui-data-table__tbody__row-odd": s % 2 !== 0 }),
|
|
1071
1092
|
style: w(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1072
1093
|
}, [
|
|
1073
|
-
|
|
1094
|
+
p("td", {
|
|
1074
1095
|
"data-cell": e.value.table.colNames.xAxis,
|
|
1075
1096
|
class: "vue-ui-data-table__tbody__td",
|
|
1076
1097
|
style: w(`outline:${e.value.table.td.outline}`)
|
|
1077
1098
|
}, [
|
|
1078
|
-
|
|
1079
|
-
], 12,
|
|
1080
|
-
(u(!0), n(
|
|
1099
|
+
p("div", Ql, S(a), 1)
|
|
1100
|
+
], 12, Jl),
|
|
1101
|
+
(u(!0), n(C, null, F(b.dataset, (v, c) => (u(), n("td", {
|
|
1081
1102
|
class: "vue-ui-data-table__tbody__td",
|
|
1082
|
-
"data-cell": b.dataset[
|
|
1103
|
+
"data-cell": b.dataset[c].name,
|
|
1083
1104
|
style: w(`outline:${e.value.table.td.outline}`)
|
|
1084
1105
|
}, [
|
|
1085
|
-
|
|
1086
|
-
], 12,
|
|
1106
|
+
p("div", ea, S(isNaN(v.values[s]) ? "-" : i(H)({ p: e.value.style.layout.dataLabels.prefix, v: v.values[s], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
1107
|
+
], 12, Zl))), 256))
|
|
1087
1108
|
], 6))), 256))
|
|
1088
1109
|
])
|
|
1089
1110
|
])
|
|
@@ -1094,18 +1115,18 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
1094
1115
|
}, [
|
|
1095
1116
|
e.value.table.useDialog ? {
|
|
1096
1117
|
name: "title",
|
|
1097
|
-
fn:
|
|
1098
|
-
|
|
1118
|
+
fn: z(() => [
|
|
1119
|
+
Ve(S(xe.value.title), 1)
|
|
1099
1120
|
]),
|
|
1100
1121
|
key: "0"
|
|
1101
1122
|
} : void 0,
|
|
1102
1123
|
e.value.table.useDialog ? {
|
|
1103
1124
|
name: "actions",
|
|
1104
|
-
fn:
|
|
1105
|
-
|
|
1125
|
+
fn: z(() => [
|
|
1126
|
+
p("button", {
|
|
1106
1127
|
tabindex: "0",
|
|
1107
1128
|
class: "vue-ui-user-options-button",
|
|
1108
|
-
onClick: o[0] || (o[0] = (a) =>
|
|
1129
|
+
onClick: o[0] || (o[0] = (a) => Ne(e.value.userOptions.callbacks.csv))
|
|
1109
1130
|
}, [
|
|
1110
1131
|
ke(i(te), {
|
|
1111
1132
|
name: "excel",
|
|
@@ -1115,11 +1136,11 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Ll = ["x", "y", "width", "height"]
|
|
|
1115
1136
|
]),
|
|
1116
1137
|
key: "1"
|
|
1117
1138
|
} : void 0
|
|
1118
|
-
]), 1040)) :
|
|
1119
|
-
i(pe) ? (u(), de(
|
|
1120
|
-
], 46,
|
|
1139
|
+
]), 1040)) : f("", !0),
|
|
1140
|
+
i(pe) ? (u(), de(bl, { key: 7 })) : f("", !0)
|
|
1141
|
+
], 46, zl));
|
|
1121
1142
|
}
|
|
1122
|
-
},
|
|
1143
|
+
}, ma = /* @__PURE__ */ Sl(ta, [["__scopeId", "data-v-39916842"]]);
|
|
1123
1144
|
export {
|
|
1124
|
-
|
|
1145
|
+
ma as default
|
|
1125
1146
|
};
|