vue-data-ui 3.0.0-next.7 → 3.0.0-next.71
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-Bl8urcli.js → Arrow-BZNpld6u.js} +1 -1
- package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-kg-eVvXZ.js} +2 -2
- package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BdOEhJar.js} +1 -1
- package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-CWvXlPxS.js} +2 -2
- package/dist/{DataTable-mQ6Wd-rR.js → DataTable-B3yakHEM.js} +2 -2
- package/dist/{Legend-B2hrDh4G.js → Legend-DiGLrlzP.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-C-ZjpJQd.js} +3 -3
- package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-6s4eI8W7.js} +1 -1
- package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-JoUN7Ink.js} +3 -3
- package/dist/{Shape-C2qH26wh.js → Shape-CWIa2nta.js} +43 -37
- package/dist/Slicer-DYuvPkEM.js +602 -0
- package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-C_fUmbP7.js} +1 -1
- package/dist/{Title-B7Xb3YuE.js → Title-VLWyIYrj.js} +1 -1
- package/dist/{Tooltip-BidRoM5E.js → Tooltip-BS5naLS2.js} +23 -19
- package/dist/{UserOptions-0tvMM8PF.js → UserOptions-BV_xM-sB.js} +2 -2
- package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-PUk0ukSG.js} +1 -1
- package/dist/{img-D72yZNUg.js → img-DD_2wgY3.js} +1 -1
- package/dist/{index-Cg-RjxqH.js → index-DKpp7RIH.js} +2236 -1505
- package/dist/{pdf-DgX01_wu.js → pdf-0TQQyXWM.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +610 -22
- package/dist/types/vue-data-ui.d.ts +610 -22
- package/dist/useAutoSizeLabelsInsideViewbox-Qhry5WvH.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-D-8c0o4p.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-BUzmyQf9.js → usePrinter-NUeckmCX.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
- package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-BIXXEsFZ.js} +105 -100
- package/dist/vue-data-ui.js +23 -22
- package/dist/vue-ui-3d-bar-CVUfj12F.js +1323 -0
- package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-Cpovz3RE.js} +3 -3
- package/dist/vue-ui-age-pyramid-CQWFaHLV.js +834 -0
- package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-C49Xw5Mh.js} +2 -2
- package/dist/vue-ui-bullet-DED2SuIa.js +571 -0
- package/dist/vue-ui-candlestick-DGgbevy6.js +999 -0
- package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DKIgSB1T.js} +29 -29
- package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-D1bEM91d.js} +5 -5
- package/dist/vue-ui-chord-CBLSqtEP.js +1038 -0
- package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-g2ts9NTG.js} +24 -24
- package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-DSxmPUD8.js} +2 -2
- package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-B6FfoNjQ.js} +62 -62
- package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-DKffQVgr.js} +2 -2
- package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-CJrWc4-g.js} +320 -308
- package/dist/vue-ui-donut-evolution-Bys6cs-D.js +1075 -0
- package/dist/vue-ui-dumbbell-Cb_I__qC.js +1119 -0
- package/dist/vue-ui-flow-BzuT3ij5.js +841 -0
- package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-Ctp7GDiN.js} +16 -16
- package/dist/vue-ui-galaxy-CRBy0aio.js +680 -0
- package/dist/vue-ui-gauge-NcQq5UFr.js +791 -0
- package/dist/vue-ui-gizmo-Cwfb8c-0.js +210 -0
- package/dist/vue-ui-heatmap-DElqpFVY.js +1078 -0
- package/dist/vue-ui-history-plot-De1Dvnhw.js +1073 -0
- package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-_bLScmgO.js} +26 -26
- package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-PsHE_2Wy.js} +2 -2
- package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-CgiahnC6.js} +53 -51
- package/dist/vue-ui-mood-radar-dXVOOrhl.js +785 -0
- package/dist/vue-ui-nested-donuts-C0X6BetT.js +1286 -0
- package/dist/vue-ui-onion-C7sxQzk_.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-jwtnNX59.js +915 -0
- package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-DguDE91h.js} +512 -459
- package/dist/vue-ui-quick-chart-BpEDS08U.js +1761 -0
- package/dist/vue-ui-radar-lFrqTRqo.js +796 -0
- package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-BHghXziv.js} +2 -2
- package/dist/vue-ui-relation-circle-C5W6NFOb.js +598 -0
- package/dist/vue-ui-ridgeline-A2DuFEDS.js +1153 -0
- package/dist/vue-ui-rings-BgJAm9_b.js +728 -0
- package/dist/vue-ui-scatter-COfpLChz.js +1178 -0
- package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-DMLCBUtZ.js} +3 -3
- package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-ZopESYc_.js} +26 -26
- package/dist/vue-ui-spark-trend-CuSQ03fQ.js +315 -0
- package/dist/vue-ui-sparkbar-BCsX9M4q.js +351 -0
- package/dist/vue-ui-sparkgauge-DdyZLA0T.js +232 -0
- package/dist/vue-ui-sparkhistogram-CUxFgIcE.js +380 -0
- package/dist/vue-ui-sparkline-DOkofsLL.js +489 -0
- package/dist/vue-ui-sparkstackbar-Bq9PZzmH.js +421 -0
- package/dist/vue-ui-stackbar-B7ceoT0V.js +1370 -0
- package/dist/vue-ui-strip-plot-DYh-NGQN.js +915 -0
- package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-BVTb1xuA.js} +5 -5
- package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-pESH5KAJ.js} +11 -11
- package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-Bw-6l9lA.js} +14 -14
- package/dist/vue-ui-thermometer-BqqfmS-B.js +541 -0
- package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-CVisMxLS.js} +5 -5
- package/dist/vue-ui-tiremarks-K1dcCdpj.js +406 -0
- package/dist/vue-ui-treemap-Bz3c68s4.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-BvtXpCjw.js} +71 -69
- package/dist/vue-ui-waffle-CYO7bIf1.js +910 -0
- package/dist/vue-ui-wheel-De1spwLh.js +379 -0
- package/dist/vue-ui-word-cloud-BMmVrx_T.js +765 -0
- package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-Ccpr00nJ.js} +11 -9
- package/dist/vue-ui-xy-D4jaRKe3.js +3771 -0
- package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-DE-Uu5oq.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-BD8Z8VCW.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-C_G5E08Y.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
- package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
- package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
- package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
- package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
- package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
- package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
- package/dist/vue-ui-flow-D_L_xssL.js +0 -765
- package/dist/vue-ui-galaxy-Cn6vHbaw.js +0 -617
- package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
- package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
- package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
- package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
- package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
- package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
- package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
- package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
- package/dist/vue-ui-radar-98mXFZe-.js +0 -741
- package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
- package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
- package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
- package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
- package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
- package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
- package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
- package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
- package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
- package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
- package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
- package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
- package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
- package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
- package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
- package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
- package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
- package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
- package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
|
@@ -1,877 +0,0 @@
|
|
|
1
|
-
import { useCssVars as el, defineAsyncComponent as D, computed as f, ref as b, watch as Me, shallowRef as ll, onMounted as tl, onBeforeUnmount as al, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as T, normalizeClass as te, createBlock as J, createCommentVNode as d, createVNode as ve, createSlots as ol, withCtx as A, renderSlot as m, normalizeProps as E, guardReactiveProps as U, Fragment as _, renderList as z, createElementVNode as v, toDisplayString as x, withKeys as sl, createTextVNode as ul, nextTick as nl } from "vue";
|
|
2
|
-
import { u as il, o as rl, e as Oe, c as ye, a as vl, C as yl, P as Q, g as dl, X as cl, F as de, i as S, f as M, v as N, q as hl, r as gl, x as pl, y as fl } from "./index-Cg-RjxqH.js";
|
|
3
|
-
import { u as Se } from "./useNestedProp-C_G5E08Y.js";
|
|
4
|
-
import { u as bl } from "./usePrinter-BUzmyQf9.js";
|
|
5
|
-
import { u as ml } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { u as xl } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import wl from "./vue-ui-accordion-CRomxzaL.js";
|
|
8
|
-
import kl from "./Title-B7Xb3YuE.js";
|
|
9
|
-
import _l from "./img-D72yZNUg.js";
|
|
10
|
-
import { _ as Cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const $l = ["id"], Ll = {
|
|
12
|
-
key: 2,
|
|
13
|
-
style: "width:100%;background:transparent"
|
|
14
|
-
}, Tl = ["xmlns", "viewBox"], Al = ["width", "height"], zl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Ml = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Ol = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Sl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Nl = ["font-size", "font-weight", "fill", "x", "y"], Vl = ["x", "y", "width", "height", "onMouseover", "onClick"], Fl = { key: 0 }, Il = ["font-size", "fill", "x", "y", "font-weight"], Pl = ["font-size", "fill", "x", "y", "font-weight"], Rl = { key: 1 }, Xl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Bl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Dl = { key: 2 }, El = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Ul = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Yl = { key: 4 }, Gl = ["x", "y", "width", "height", "stroke", "stroke-width"], Hl = { key: 5 }, jl = ["id"], Wl = ["stop-color"], ql = ["stop-color"], Kl = ["x", "y", "font-size", "fill"], Jl = ["x", "y", "height", "rx", "fill"], Ql = ["x", "y", "font-size", "fill"], Zl = ["stroke", "x1", "x2", "y1", "y2"], et = ["fill", "d"], lt = { key: 6 }, tt = {
|
|
15
|
-
id: "colorScaleHorizontal",
|
|
16
|
-
x1: "0%",
|
|
17
|
-
x2: "100%",
|
|
18
|
-
y1: "0%",
|
|
19
|
-
y2: "0%"
|
|
20
|
-
}, at = ["stop-color"], ot = ["stop-color"], st = ["x", "y", "width", "height", "rx"], ut = ["x", "y", "font-size", "fill"], nt = ["x", "y", "font-size", "fill"], it = ["stroke", "x1", "x2", "y1", "y2"], rt = ["fill", "d"], vt = {
|
|
21
|
-
key: 5,
|
|
22
|
-
class: "vue-data-ui-watermark"
|
|
23
|
-
}, yt = {
|
|
24
|
-
key: 6,
|
|
25
|
-
ref: "source",
|
|
26
|
-
dir: "auto"
|
|
27
|
-
}, dt = { class: "vue-ui-data-table" }, ct = { key: 0 }, ht = ["data-cell"], gt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, pt = ["data-cell"], ft = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, bt = {
|
|
28
|
-
__name: "vue-ui-heatmap",
|
|
29
|
-
props: {
|
|
30
|
-
config: {
|
|
31
|
-
type: Object,
|
|
32
|
-
default() {
|
|
33
|
-
return {};
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
dataset: {
|
|
37
|
-
type: Array,
|
|
38
|
-
default() {
|
|
39
|
-
return [];
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
emits: ["selectDatapoint"],
|
|
44
|
-
setup(Y, { expose: Ne, emit: Ve }) {
|
|
45
|
-
el((l) => ({
|
|
46
|
-
e16f0f96: l.tdo
|
|
47
|
-
}));
|
|
48
|
-
const Fe = D(() => import("./BaseIcon-BCZfTCeM.js")), Ie = D(() => import("./PackageVersion-CeEYZfaH.js")), Pe = D(() => import("./PenAndPaper-DhSxfUrQ.js")), Re = D(() => import("./vue-ui-skeleton-CUOhCY4p.js")), Xe = D(() => import("./Tooltip-BidRoM5E.js")), Be = D(() => import("./UserOptions-0tvMM8PF.js")), { vue_ui_heatmap: De } = il(), y = Y, Ee = Ve, Z = f(() => !!y.dataset && y.dataset.length);
|
|
49
|
-
rl(y.dataset) && Oe({
|
|
50
|
-
componentName: "VueUiHeatmap",
|
|
51
|
-
type: "dataset"
|
|
52
|
-
});
|
|
53
|
-
const G = b(ye()), R = b(null), Ue = b(null), ae = b(!1), oe = b(""), ce = b(void 0), H = b(null), he = b(0), ge = b(null), Ye = b(null), pe = b(!1), fe = b(0), e = f({
|
|
54
|
-
get: () => we(),
|
|
55
|
-
set: (l) => l
|
|
56
|
-
}), { userOptionsVisible: se, setUserOptionsVisibility: be, keepUserOptionState: me } = ml({ config: e.value }), { svgRef: xe } = xl({ config: e.value.style.title });
|
|
57
|
-
function we() {
|
|
58
|
-
const l = Se({
|
|
59
|
-
userConfig: y.config,
|
|
60
|
-
defaultConfig: De
|
|
61
|
-
});
|
|
62
|
-
let o = {};
|
|
63
|
-
return l.theme ? o = {
|
|
64
|
-
...Se({
|
|
65
|
-
userConfig: vl.vue_ui_heatmap[l.theme] || y.config,
|
|
66
|
-
defaultConfig: l
|
|
67
|
-
})
|
|
68
|
-
} : o = l, y.config && yl(y.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? o.style.layout.dataLabels.xAxis.showOnlyAtModulo = y.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : o.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, o;
|
|
69
|
-
}
|
|
70
|
-
Me(() => y.config, (l) => {
|
|
71
|
-
e.value = we(), se.value = !e.value.userOptions.showOnChartHover, ue(), fe.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.tooltip.show;
|
|
72
|
-
}, { deep: !0 }), Me(() => y.dataset, () => {
|
|
73
|
-
ue();
|
|
74
|
-
}, { deep: !0 });
|
|
75
|
-
const { isPrinting: ke, isImaging: _e, generatePdf: Ce, generateImage: $e } = bl({
|
|
76
|
-
elementId: `heatmap__${G.value}`,
|
|
77
|
-
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
78
|
-
options: e.value.userOptions.print
|
|
79
|
-
}), Ge = f(() => e.value.userOptions.show && !e.value.style.title.text), C = b({
|
|
80
|
-
showTable: e.value.table.show,
|
|
81
|
-
showTooltip: e.value.style.tooltip.show
|
|
82
|
-
}), He = f(() => e.value.table.responsiveBreakpoint), X = ll(null);
|
|
83
|
-
function je() {
|
|
84
|
-
X.value && X.value.disconnect(), X.value = new ResizeObserver((l) => {
|
|
85
|
-
l.forEach((o) => {
|
|
86
|
-
pe.value = o.contentRect.width < He.value;
|
|
87
|
-
});
|
|
88
|
-
}), X.value.observe(ge.value);
|
|
89
|
-
}
|
|
90
|
-
tl(ue), al(() => {
|
|
91
|
-
X.value && X.value.disconnect();
|
|
92
|
-
});
|
|
93
|
-
function ue() {
|
|
94
|
-
je();
|
|
95
|
-
}
|
|
96
|
-
const V = f(() => Math.max(...y.dataset.flatMap((l) => (l.values || []).length))), $ = f(() => {
|
|
97
|
-
const l = e.value.style.layout.padding.top + e.value.style.layout.padding.bottom + y.dataset.length * e.value.style.layout.cells.height, o = e.value.style.layout.padding.left + e.value.style.layout.padding.right + (V.value < y.dataset.length ? y.dataset.length : V.value) * e.value.style.layout.cells.height, n = l + (e.value.style.legend.show ? e.value.style.legend.position === "right" ? 0 : e.value.style.layout.cells.height * 2 : 0);
|
|
98
|
-
return {
|
|
99
|
-
height: l,
|
|
100
|
-
heightWithLegend: n,
|
|
101
|
-
width: o
|
|
102
|
-
};
|
|
103
|
-
}), ee = f(() => e.value.style.legend.position), t = f(() => ({
|
|
104
|
-
top: e.value.style.layout.padding.top,
|
|
105
|
-
left: e.value.style.layout.padding.left,
|
|
106
|
-
right: $.value.width - e.value.style.layout.padding.right - (ee.value === "right" && e.value.style.legend.show ? 92 : 0),
|
|
107
|
-
bottom: $.value.height - e.value.style.layout.padding.bottom,
|
|
108
|
-
height: $.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
|
|
109
|
-
width: $.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (ee.value === "right" && e.value.style.legend.show ? 92 : 0)
|
|
110
|
-
})), ne = f(() => a.value.height * y.dataset.length), L = f(() => Math.max(...y.dataset.flatMap((l) => l.values))), F = f(() => Math.min(...y.dataset.flatMap((l) => l.values))), I = f(() => {
|
|
111
|
-
const l = y.dataset.flatMap((n) => n.values);
|
|
112
|
-
return l.reduce((n, s) => n + s, 0) / l.length;
|
|
113
|
-
}), a = f(() => ({
|
|
114
|
-
width: t.value.width / V.value,
|
|
115
|
-
height: t.value.width / (V.value < y.dataset.length ? y.dataset.length : V.value)
|
|
116
|
-
})), p = f(() => {
|
|
117
|
-
const l = e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : y.dataset.map((g) => g.name), o = e.value.style.layout.dataLabels.xAxis.values, n = y.dataset.map((g) => g.values.reduce((w, re) => w + re, 0)), s = Math.max(...n), c = Math.min(...n), h = [];
|
|
118
|
-
for (let g = 0; g < V.value; g += 1)
|
|
119
|
-
h.push(y.dataset.map((w) => w.values[g] || 0).reduce((w, re) => w + re, 0));
|
|
120
|
-
const k = Math.max(...h), P = Math.min(...h);
|
|
121
|
-
return {
|
|
122
|
-
yTotals: n.map((g) => {
|
|
123
|
-
const w = isNaN(g / s) ? 0 : g / s;
|
|
124
|
-
return {
|
|
125
|
-
total: g,
|
|
126
|
-
proportion: w,
|
|
127
|
-
color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, c, s, g)
|
|
128
|
-
};
|
|
129
|
-
}),
|
|
130
|
-
xTotals: h.map((g) => {
|
|
131
|
-
const w = isNaN(g / k) ? 0 : g / k;
|
|
132
|
-
return {
|
|
133
|
-
total: g,
|
|
134
|
-
proportion: w,
|
|
135
|
-
color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, P, k, g)
|
|
136
|
-
};
|
|
137
|
-
}),
|
|
138
|
-
yLabels: l,
|
|
139
|
-
xLabels: o.slice(0, V.value)
|
|
140
|
-
};
|
|
141
|
-
}), j = f(() => (y.dataset.forEach((l, o) => {
|
|
142
|
-
dl({
|
|
143
|
-
datasetObject: l,
|
|
144
|
-
requiredAttributes: ["values"]
|
|
145
|
-
}).forEach((n) => {
|
|
146
|
-
Oe({
|
|
147
|
-
componentName: "VueUiHeatmap",
|
|
148
|
-
type: "datasetSerieAttribute",
|
|
149
|
-
property: "values",
|
|
150
|
-
index: o
|
|
151
|
-
});
|
|
152
|
-
});
|
|
153
|
-
}), y.dataset.map((l) => ({
|
|
154
|
-
...l,
|
|
155
|
-
temperatures: (l.values || []).map((o, n) => o >= I.value ? {
|
|
156
|
-
side: "up",
|
|
157
|
-
color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, o),
|
|
158
|
-
ratio: Math.abs(Math.abs(o - I.value) / Math.abs(L.value - I.value)) > 1 ? 1 : Math.abs(Math.abs(o - I.value) / Math.abs(L.value - I.value)),
|
|
159
|
-
value: o,
|
|
160
|
-
yAxisName: l.name,
|
|
161
|
-
xAxisName: p.value.xLabels[n],
|
|
162
|
-
id: `vue-data-ui-heatmap-cell-${ye()}`
|
|
163
|
-
} : {
|
|
164
|
-
side: "down",
|
|
165
|
-
ratio: Math.abs(1 - Math.abs(o) / Math.abs(I.value)) > 1 ? 1 : Math.abs(1 - Math.abs(o) / Math.abs(I.value)),
|
|
166
|
-
color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, o),
|
|
167
|
-
value: o,
|
|
168
|
-
yAxisName: l.name,
|
|
169
|
-
xAxisName: p.value.xLabels[n],
|
|
170
|
-
id: `vue-data-ui-heatmap-cell-${ye()}`
|
|
171
|
-
})
|
|
172
|
-
})))), O = b(null), W = b(null);
|
|
173
|
-
function We(l, o, n, s) {
|
|
174
|
-
H.value = { x: n, y: s };
|
|
175
|
-
const { value: c, yAxisName: h, xAxisName: k, id: P } = l;
|
|
176
|
-
ce.value = P, O.value = c, W.value = {
|
|
177
|
-
datapoint: l,
|
|
178
|
-
seriesIndex: o,
|
|
179
|
-
series: j.value,
|
|
180
|
-
config: e.value
|
|
181
|
-
}, ae.value = !0;
|
|
182
|
-
let g = "";
|
|
183
|
-
const w = e.value.style.tooltip.customFormat;
|
|
184
|
-
pl(w) && fl(() => w({
|
|
185
|
-
datapoint: l,
|
|
186
|
-
seriesIndex: o,
|
|
187
|
-
series: j.value,
|
|
188
|
-
config: e.value
|
|
189
|
-
})) ? oe.value = w({
|
|
190
|
-
datapoint: l,
|
|
191
|
-
seriesIndex: o,
|
|
192
|
-
series: j.value,
|
|
193
|
-
config: e.value
|
|
194
|
-
}) : (g += `<div>${h} ${k ? `${k}` : ""}</div>`, g += `<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:${Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, c)}">⬤</span><span>${isNaN(c) ? "-" : S(
|
|
195
|
-
e.value.style.layout.cells.value.formatter,
|
|
196
|
-
c,
|
|
197
|
-
M({
|
|
198
|
-
p: e.value.style.layout.dataLabels.prefix,
|
|
199
|
-
v: c,
|
|
200
|
-
s: e.value.style.layout.dataLabels.suffix,
|
|
201
|
-
r: e.value.style.tooltip.roundingValue
|
|
202
|
-
}),
|
|
203
|
-
{ datapoint: l, seriesIndex: o }
|
|
204
|
-
)}</span></div>`, oe.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${g}</div>`);
|
|
205
|
-
}
|
|
206
|
-
const q = f(() => t.value.top + ne.value * (1 - O.value / L.value)), K = f(() => t.value.left + ($.value.width - t.value.left - e.value.style.layout.padding.right) * (O.value / L.value));
|
|
207
|
-
function qe(l) {
|
|
208
|
-
return S(
|
|
209
|
-
e.value.style.layout.cells.value.formatter,
|
|
210
|
-
p.value.yTotals[l].total,
|
|
211
|
-
M({
|
|
212
|
-
p: e.value.style.layout.dataLabels.prefix,
|
|
213
|
-
v: p.value.yTotals[l].total,
|
|
214
|
-
s: e.value.style.layout.dataLabels.suffix,
|
|
215
|
-
r: e.value.style.layout.cells.value.roundingValue
|
|
216
|
-
}),
|
|
217
|
-
{ datapoint: p.value.yTotals[l], rowIndex: l }
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
function Ke(l) {
|
|
221
|
-
return S(
|
|
222
|
-
e.value.style.layout.cells.value.formatter,
|
|
223
|
-
p.value.xTotals[l].total,
|
|
224
|
-
M({
|
|
225
|
-
p: e.value.style.layout.dataLabels.prefix,
|
|
226
|
-
v: p.value.xTotals[l].total,
|
|
227
|
-
s: e.value.style.layout.dataLabels.suffix,
|
|
228
|
-
r: e.value.style.layout.cells.value.roundingValue
|
|
229
|
-
}),
|
|
230
|
-
{ datapoint: p.value.xTotals[l], colIndex: l }
|
|
231
|
-
);
|
|
232
|
-
}
|
|
233
|
-
f(() => {
|
|
234
|
-
const l = y.dataset.map((n) => ({
|
|
235
|
-
name: n.name
|
|
236
|
-
})), o = y.dataset.map((n) => n.values);
|
|
237
|
-
return { head: l, body: o };
|
|
238
|
-
});
|
|
239
|
-
function Le(l = null) {
|
|
240
|
-
nl(() => {
|
|
241
|
-
const o = ["", ...y.dataset.map((h, k) => h.name)], n = [];
|
|
242
|
-
for (let h = 0; h < p.value.xLabels.length; h += 1) {
|
|
243
|
-
const k = [p.value.xLabels[h]];
|
|
244
|
-
for (let P = 0; P < y.dataset.length; P += 1)
|
|
245
|
-
k.push([y.dataset[P].values[h]]);
|
|
246
|
-
n.push(k);
|
|
247
|
-
}
|
|
248
|
-
const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(n), c = hl(s);
|
|
249
|
-
l ? l(c) : gl({ csvContent: c, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
const B = b(!1);
|
|
253
|
-
function Te(l) {
|
|
254
|
-
B.value = l, he.value += 1;
|
|
255
|
-
}
|
|
256
|
-
function Ae() {
|
|
257
|
-
C.value.showTable = !C.value.showTable;
|
|
258
|
-
}
|
|
259
|
-
function ze() {
|
|
260
|
-
C.value.showTooltip = !C.value.showTooltip;
|
|
261
|
-
}
|
|
262
|
-
const le = b(!1);
|
|
263
|
-
function ie() {
|
|
264
|
-
le.value = !le.value;
|
|
265
|
-
}
|
|
266
|
-
function Je(l) {
|
|
267
|
-
Ee("selectDatapoint", l);
|
|
268
|
-
}
|
|
269
|
-
function Qe() {
|
|
270
|
-
return j.value;
|
|
271
|
-
}
|
|
272
|
-
async function Ze({ scale: l = 2 } = {}) {
|
|
273
|
-
if (!R.value) return;
|
|
274
|
-
const { width: o, height: n } = R.value.getBoundingClientRect(), s = o / n, { imageUri: c, base64: h } = await _l({ domElement: R.value, base64: !0, img: !0, scale: l });
|
|
275
|
-
return {
|
|
276
|
-
imageUri: c,
|
|
277
|
-
base64: h,
|
|
278
|
-
title: e.value.style.title.text,
|
|
279
|
-
width: o,
|
|
280
|
-
height: n,
|
|
281
|
-
aspectRatio: s
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
return Ne({
|
|
285
|
-
getData: Qe,
|
|
286
|
-
getImage: Ze,
|
|
287
|
-
generatePdf: Ce,
|
|
288
|
-
generateCsv: Le,
|
|
289
|
-
generateImage: $e,
|
|
290
|
-
toggleTable: Ae,
|
|
291
|
-
toggleTooltip: ze,
|
|
292
|
-
toggleAnnotator: ie,
|
|
293
|
-
toggleFullscreen: Te
|
|
294
|
-
}), (l, o) => (u(), i("div", {
|
|
295
|
-
ref_key: "heatmapChart",
|
|
296
|
-
ref: R,
|
|
297
|
-
class: te(`vue-ui-heatmap ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
298
|
-
style: T(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor}`),
|
|
299
|
-
id: `heatmap__${G.value}`,
|
|
300
|
-
onMouseenter: o[3] || (o[3] = () => r(be)(!0)),
|
|
301
|
-
onMouseleave: o[4] || (o[4] = () => r(be)(!1))
|
|
302
|
-
}, [
|
|
303
|
-
e.value.userOptions.buttons.annotator ? (u(), J(r(Pe), {
|
|
304
|
-
key: 0,
|
|
305
|
-
svgRef: r(xe),
|
|
306
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
307
|
-
color: e.value.style.color,
|
|
308
|
-
active: le.value,
|
|
309
|
-
onClose: ie
|
|
310
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
311
|
-
Ge.value ? (u(), i("div", {
|
|
312
|
-
key: 1,
|
|
313
|
-
ref_key: "noTitle",
|
|
314
|
-
ref: Ye,
|
|
315
|
-
class: "vue-data-ui-no-title-space",
|
|
316
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
317
|
-
}, null, 512)) : d("", !0),
|
|
318
|
-
e.value.style.title.text ? (u(), i("div", Ll, [
|
|
319
|
-
(u(), J(kl, {
|
|
320
|
-
key: `title_${fe.value}`,
|
|
321
|
-
config: {
|
|
322
|
-
title: {
|
|
323
|
-
cy: "heatmap-div-title",
|
|
324
|
-
...e.value.style.title
|
|
325
|
-
},
|
|
326
|
-
subtitle: {
|
|
327
|
-
cy: "heatmap-div-subtitle",
|
|
328
|
-
...e.value.style.title.subtitle
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}, null, 8, ["config"]))
|
|
332
|
-
])) : d("", !0),
|
|
333
|
-
e.value.userOptions.show && Z.value && (r(me) || r(se)) ? (u(), J(r(Be), {
|
|
334
|
-
ref_key: "details",
|
|
335
|
-
ref: Ue,
|
|
336
|
-
key: `user_options_${he.value}`,
|
|
337
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
338
|
-
color: e.value.style.color,
|
|
339
|
-
isImaging: r(_e),
|
|
340
|
-
isPrinting: r(ke),
|
|
341
|
-
uid: G.value,
|
|
342
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
343
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
344
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
345
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
346
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
347
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
348
|
-
isFullscreen: B.value,
|
|
349
|
-
isTooltip: C.value.showTooltip,
|
|
350
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
351
|
-
chartElement: R.value,
|
|
352
|
-
position: e.value.userOptions.position,
|
|
353
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
354
|
-
isAnnotation: le.value,
|
|
355
|
-
callbacks: e.value.userOptions.callbacks,
|
|
356
|
-
printScale: e.value.userOptions.print.scale,
|
|
357
|
-
onToggleFullscreen: Te,
|
|
358
|
-
onGeneratePdf: r(Ce),
|
|
359
|
-
onGenerateCsv: Le,
|
|
360
|
-
onGenerateImage: r($e),
|
|
361
|
-
onToggleTable: Ae,
|
|
362
|
-
onToggleTooltip: ze,
|
|
363
|
-
onToggleAnnotator: ie,
|
|
364
|
-
style: T({
|
|
365
|
-
visibility: r(me) ? r(se) ? "visible" : "hidden" : "visible"
|
|
366
|
-
})
|
|
367
|
-
}, ol({ _: 2 }, [
|
|
368
|
-
l.$slots.menuIcon ? {
|
|
369
|
-
name: "menuIcon",
|
|
370
|
-
fn: A(({ isOpen: n, color: s }) => [
|
|
371
|
-
m(l.$slots, "menuIcon", E(U({ isOpen: n, color: s })), void 0, !0)
|
|
372
|
-
]),
|
|
373
|
-
key: "0"
|
|
374
|
-
} : void 0,
|
|
375
|
-
l.$slots.optionTooltip ? {
|
|
376
|
-
name: "optionTooltip",
|
|
377
|
-
fn: A(() => [
|
|
378
|
-
m(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
379
|
-
]),
|
|
380
|
-
key: "1"
|
|
381
|
-
} : void 0,
|
|
382
|
-
l.$slots.optionPdf ? {
|
|
383
|
-
name: "optionPdf",
|
|
384
|
-
fn: A(() => [
|
|
385
|
-
m(l.$slots, "optionPdf", {}, void 0, !0)
|
|
386
|
-
]),
|
|
387
|
-
key: "2"
|
|
388
|
-
} : void 0,
|
|
389
|
-
l.$slots.optionCsv ? {
|
|
390
|
-
name: "optionCsv",
|
|
391
|
-
fn: A(() => [
|
|
392
|
-
m(l.$slots, "optionCsv", {}, void 0, !0)
|
|
393
|
-
]),
|
|
394
|
-
key: "3"
|
|
395
|
-
} : void 0,
|
|
396
|
-
l.$slots.optionImg ? {
|
|
397
|
-
name: "optionImg",
|
|
398
|
-
fn: A(() => [
|
|
399
|
-
m(l.$slots, "optionImg", {}, void 0, !0)
|
|
400
|
-
]),
|
|
401
|
-
key: "4"
|
|
402
|
-
} : void 0,
|
|
403
|
-
l.$slots.optionTable ? {
|
|
404
|
-
name: "optionTable",
|
|
405
|
-
fn: A(() => [
|
|
406
|
-
m(l.$slots, "optionTable", {}, void 0, !0)
|
|
407
|
-
]),
|
|
408
|
-
key: "5"
|
|
409
|
-
} : void 0,
|
|
410
|
-
l.$slots.optionFullscreen ? {
|
|
411
|
-
name: "optionFullscreen",
|
|
412
|
-
fn: A(({ toggleFullscreen: n, isFullscreen: s }) => [
|
|
413
|
-
m(l.$slots, "optionFullscreen", E(U({ toggleFullscreen: n, isFullscreen: s })), void 0, !0)
|
|
414
|
-
]),
|
|
415
|
-
key: "6"
|
|
416
|
-
} : void 0,
|
|
417
|
-
l.$slots.optionAnnotator ? {
|
|
418
|
-
name: "optionAnnotator",
|
|
419
|
-
fn: A(({ toggleAnnotator: n, isAnnotator: s }) => [
|
|
420
|
-
m(l.$slots, "optionAnnotator", E(U({ toggleAnnotator: n, isAnnotator: s })), void 0, !0)
|
|
421
|
-
]),
|
|
422
|
-
key: "7"
|
|
423
|
-
} : void 0
|
|
424
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
425
|
-
Z.value ? (u(), i("svg", {
|
|
426
|
-
key: 4,
|
|
427
|
-
ref_key: "svgRef",
|
|
428
|
-
ref: xe,
|
|
429
|
-
xmlns: r(cl),
|
|
430
|
-
class: te({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
|
|
431
|
-
viewBox: `0 0 ${$.value.width} ${$.value.heightWithLegend}`,
|
|
432
|
-
style: T(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
433
|
-
}, [
|
|
434
|
-
ve(r(Ie)),
|
|
435
|
-
l.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
436
|
-
key: 0,
|
|
437
|
-
x: 0,
|
|
438
|
-
y: 0,
|
|
439
|
-
width: $.value.width,
|
|
440
|
-
height: $.value.heightWithLegend,
|
|
441
|
-
style: {
|
|
442
|
-
pointerEvents: "none"
|
|
443
|
-
}
|
|
444
|
-
}, [
|
|
445
|
-
m(l.$slots, "chart-background", {}, void 0, !0)
|
|
446
|
-
], 8, Al)) : d("", !0),
|
|
447
|
-
e.value.style.layout.cells.columnTotal.color.show ? (u(), i(_, { key: 1 }, [
|
|
448
|
-
(u(!0), i(_, null, z(p.value.xTotals, (n, s) => (u(), i("rect", {
|
|
449
|
-
x: t.value.left + a.value.width * s + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
450
|
-
y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
|
|
451
|
-
height: a.value.height / 3,
|
|
452
|
-
width: a.value.width - e.value.style.layout.cells.spacing,
|
|
453
|
-
fill: e.value.style.layout.cells.colors.underlayer,
|
|
454
|
-
stroke: e.value.style.backgroundColor,
|
|
455
|
-
"stroke-width": e.value.style.layout.cells.spacing
|
|
456
|
-
}, null, 8, zl))), 256)),
|
|
457
|
-
(u(!0), i(_, null, z(p.value.xTotals, (n, s) => (u(), i("rect", {
|
|
458
|
-
x: t.value.left + a.value.width * s + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
459
|
-
y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
|
|
460
|
-
height: a.value.height / 3,
|
|
461
|
-
width: a.value.width - e.value.style.layout.cells.spacing,
|
|
462
|
-
fill: n.color,
|
|
463
|
-
stroke: e.value.style.backgroundColor,
|
|
464
|
-
"stroke-width": e.value.style.layout.cells.spacing
|
|
465
|
-
}, null, 8, Ml))), 256))
|
|
466
|
-
], 64)) : d("", !0),
|
|
467
|
-
(u(!0), i(_, null, z(j.value, (n, s) => (u(), i("g", null, [
|
|
468
|
-
(u(!0), i(_, null, z(n.temperatures, (c, h) => (u(), i("g", null, [
|
|
469
|
-
v("rect", {
|
|
470
|
-
x: t.value.left + a.value.width * h + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
471
|
-
y: t.value.top + a.value.height * s + e.value.style.layout.cells.spacing / 2,
|
|
472
|
-
width: a.value.width - e.value.style.layout.cells.spacing,
|
|
473
|
-
height: a.value.height - e.value.style.layout.cells.spacing,
|
|
474
|
-
fill: e.value.style.layout.cells.colors.underlayer,
|
|
475
|
-
stroke: e.value.style.backgroundColor,
|
|
476
|
-
"stroke-width": e.value.style.layout.cells.spacing
|
|
477
|
-
}, null, 8, Ol),
|
|
478
|
-
v("rect", {
|
|
479
|
-
x: t.value.left + a.value.width * h + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
480
|
-
y: t.value.top + a.value.height * s + e.value.style.layout.cells.spacing / 2,
|
|
481
|
-
width: a.value.width - e.value.style.layout.cells.spacing,
|
|
482
|
-
height: a.value.height - e.value.style.layout.cells.spacing,
|
|
483
|
-
fill: c.color,
|
|
484
|
-
stroke: e.value.style.backgroundColor,
|
|
485
|
-
"stroke-width": e.value.style.layout.cells.spacing
|
|
486
|
-
}, null, 8, Sl),
|
|
487
|
-
e.value.style.layout.cells.value.show ? (u(), i("text", {
|
|
488
|
-
key: 0,
|
|
489
|
-
"text-anchor": "middle",
|
|
490
|
-
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
491
|
-
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
492
|
-
fill: r(de)(c.color),
|
|
493
|
-
x: t.value.left + a.value.width * h + a.value.width / 2 + +(e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
494
|
-
y: t.value.top + a.value.height * s + a.value.height / 2 + e.value.style.layout.cells.value.fontSize / 3
|
|
495
|
-
}, x(r(S)(
|
|
496
|
-
e.value.style.layout.cells.value.formatter,
|
|
497
|
-
c.value,
|
|
498
|
-
r(M)({
|
|
499
|
-
p: e.value.style.layout.dataLabels.prefix,
|
|
500
|
-
v: c.value,
|
|
501
|
-
s: e.value.style.layout.dataLabels.suffix,
|
|
502
|
-
r: e.value.style.layout.cells.value.roundingValue
|
|
503
|
-
}),
|
|
504
|
-
{ datapoint: c }
|
|
505
|
-
)), 9, Nl)) : d("", !0)
|
|
506
|
-
]))), 256)),
|
|
507
|
-
(u(!0), i(_, null, z(n.temperatures, (c, h) => (u(), i("g", null, [
|
|
508
|
-
v("rect", {
|
|
509
|
-
x: t.value.left + a.value.width * h + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
510
|
-
y: t.value.top + a.value.height * s,
|
|
511
|
-
width: a.value.width,
|
|
512
|
-
height: a.value.height,
|
|
513
|
-
fill: "transparent",
|
|
514
|
-
stroke: "none",
|
|
515
|
-
onMouseover: (k) => We(c, s, t.value.left + a.value.width * h, t.value.top + a.value.height * s),
|
|
516
|
-
onMouseout: o[0] || (o[0] = (k) => {
|
|
517
|
-
ae.value = !1, ce.value = void 0, O.value = null, H.value = null;
|
|
518
|
-
}),
|
|
519
|
-
onClick: () => Je(c)
|
|
520
|
-
}, null, 40, Vl)
|
|
521
|
-
]))), 256)),
|
|
522
|
-
e.value.style.layout.dataLabels.yAxis.show ? (u(), i("g", Fl, [
|
|
523
|
-
v("text", {
|
|
524
|
-
class: "vue-ui-heatmap-row-name",
|
|
525
|
-
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
526
|
-
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
527
|
-
x: t.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
|
|
528
|
-
y: t.value.top + a.value.height * s + a.value.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),
|
|
529
|
-
"text-anchor": "end",
|
|
530
|
-
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
531
|
-
}, x(p.value.yLabels[s]), 9, Il),
|
|
532
|
-
e.value.style.layout.cells.rowTotal.value.show ? (u(), i("text", {
|
|
533
|
-
key: 0,
|
|
534
|
-
class: "vue-ui-heatmap-row-total",
|
|
535
|
-
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
536
|
-
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
537
|
-
x: t.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
|
|
538
|
-
y: t.value.top + a.value.height * s + a.value.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize + e.value.style.layout.dataLabels.yAxis.offsetY,
|
|
539
|
-
"text-anchor": "end",
|
|
540
|
-
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
541
|
-
}, x(qe(s)), 9, Pl)) : d("", !0)
|
|
542
|
-
])) : d("", !0),
|
|
543
|
-
e.value.style.layout.cells.rowTotal.color.show ? (u(), i("g", Rl, [
|
|
544
|
-
v("rect", {
|
|
545
|
-
x: t.value.left,
|
|
546
|
-
y: t.value.top + a.value.height * s,
|
|
547
|
-
width: a.value.height / 3,
|
|
548
|
-
height: a.value.height - e.value.style.layout.cells.spacing,
|
|
549
|
-
fill: e.value.style.layout.cells.colors.underlayer,
|
|
550
|
-
stroke: e.value.style.backgroundColor,
|
|
551
|
-
"stroke-width": e.value.style.layout.cells.spacing
|
|
552
|
-
}, null, 8, Xl),
|
|
553
|
-
v("rect", {
|
|
554
|
-
x: t.value.left,
|
|
555
|
-
y: t.value.top + a.value.height * s + e.value.style.layout.cells.spacing / 2,
|
|
556
|
-
width: a.value.height / 3,
|
|
557
|
-
height: a.value.height - e.value.style.layout.cells.spacing,
|
|
558
|
-
fill: p.value.yTotals[s].color,
|
|
559
|
-
stroke: e.value.style.backgroundColor,
|
|
560
|
-
"stroke-width": e.value.style.layout.cells.spacing
|
|
561
|
-
}, null, 8, Bl)
|
|
562
|
-
])) : d("", !0)
|
|
563
|
-
]))), 256)),
|
|
564
|
-
e.value.style.layout.dataLabels.xAxis.show ? (u(), i("g", Dl, [
|
|
565
|
-
(u(!0), i(_, null, z(p.value.xLabels, (n, s) => (u(), i(_, null, [
|
|
566
|
-
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && s % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (u(), i("text", {
|
|
567
|
-
key: 0,
|
|
568
|
-
class: "vue-ui-heatmap-col-name",
|
|
569
|
-
"text-anchor": e.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
570
|
-
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
571
|
-
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
572
|
-
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
573
|
-
transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / p.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}, ${t.value.top + e.value.style.layout.dataLabels.xAxis.offsetY - 6 - (e.value.style.layout.cells.columnTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}), rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
574
|
-
}, x(n), 9, El)) : d("", !0)
|
|
575
|
-
], 64))), 256))
|
|
576
|
-
])) : d("", !0),
|
|
577
|
-
e.value.style.layout.cells.columnTotal.value.show ? (u(!0), i(_, { key: 3 }, z(p.value.xLabels, (n, s) => (u(), i("text", {
|
|
578
|
-
class: "vue-ui-heatmap-col-total",
|
|
579
|
-
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
580
|
-
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
581
|
-
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
582
|
-
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
583
|
-
transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / p.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}, ${(a.value.height + e.value.style.layout.cells.spacing) * (Y.dataset.length + 1) + e.value.style.layout.cells.columnTotal.value.offsetY}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
|
|
584
|
-
}, x(Ke(s)), 9, Ul))), 256)) : d("", !0),
|
|
585
|
-
H.value ? (u(), i("g", Yl, [
|
|
586
|
-
v("rect", {
|
|
587
|
-
style: { "pointer-events": "none" },
|
|
588
|
-
x: H.value.x - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
589
|
-
y: H.value.y - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
|
|
590
|
-
width: a.value.width - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
591
|
-
height: a.value.height - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
592
|
-
fill: "transparent",
|
|
593
|
-
stroke: e.value.style.layout.cells.selected.color,
|
|
594
|
-
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
595
|
-
rx: 1
|
|
596
|
-
}, null, 8, Gl)
|
|
597
|
-
])) : d("", !0),
|
|
598
|
-
e.value.style.legend.show && ee.value === "right" ? (u(), i("g", Hl, [
|
|
599
|
-
v("defs", null, [
|
|
600
|
-
v("linearGradient", {
|
|
601
|
-
id: `colorScaleVertical_${G.value}`,
|
|
602
|
-
x2: "0%",
|
|
603
|
-
y2: "100%"
|
|
604
|
-
}, [
|
|
605
|
-
v("stop", {
|
|
606
|
-
offset: "0%",
|
|
607
|
-
"stop-color": e.value.style.layout.cells.colors.hot
|
|
608
|
-
}, null, 8, Wl),
|
|
609
|
-
v("stop", {
|
|
610
|
-
offset: "100%",
|
|
611
|
-
"stop-color": e.value.style.layout.cells.colors.cold
|
|
612
|
-
}, null, 8, ql)
|
|
613
|
-
], 8, jl)
|
|
614
|
-
]),
|
|
615
|
-
v("text", {
|
|
616
|
-
x: t.value.right + 36 + 18,
|
|
617
|
-
y: t.value.top - e.value.style.legend.fontSize * 1.5,
|
|
618
|
-
"text-anchor": "middle",
|
|
619
|
-
"font-size": e.value.style.legend.fontSize * 2,
|
|
620
|
-
fill: e.value.style.legend.color
|
|
621
|
-
}, x(r(S)(
|
|
622
|
-
e.value.style.layout.cells.value.formatter,
|
|
623
|
-
r(N)(L.value),
|
|
624
|
-
r(M)({
|
|
625
|
-
p: e.value.style.layout.dataLabels.prefix,
|
|
626
|
-
v: r(N)(L.value),
|
|
627
|
-
s: e.value.style.layout.dataLabels.suffix,
|
|
628
|
-
r: e.value.style.legend.roundingValue
|
|
629
|
-
})
|
|
630
|
-
)), 9, Kl),
|
|
631
|
-
v("rect", {
|
|
632
|
-
x: t.value.right + 36,
|
|
633
|
-
y: t.value.top,
|
|
634
|
-
width: 36,
|
|
635
|
-
height: ne.value,
|
|
636
|
-
rx: e.value.style.legend.scaleBorderRadius,
|
|
637
|
-
fill: `url(#colorScaleVertical_${G.value})`
|
|
638
|
-
}, null, 8, Jl),
|
|
639
|
-
v("text", {
|
|
640
|
-
x: t.value.right + 36 + 18,
|
|
641
|
-
y: t.value.top + ne.value + e.value.style.legend.fontSize * 2.5,
|
|
642
|
-
"text-anchor": "middle",
|
|
643
|
-
"font-size": e.value.style.legend.fontSize * 2,
|
|
644
|
-
fill: e.value.style.legend.color
|
|
645
|
-
}, x(r(S)(
|
|
646
|
-
e.value.style.layout.cells.value.formatter,
|
|
647
|
-
r(N)(F.value),
|
|
648
|
-
r(M)({
|
|
649
|
-
p: e.value.style.layout.dataLabels.prefix,
|
|
650
|
-
v: r(N)(F.value),
|
|
651
|
-
s: e.value.style.layout.dataLabels.suffix,
|
|
652
|
-
r: e.value.style.legend.roundingValue
|
|
653
|
-
})
|
|
654
|
-
)), 9, Ql),
|
|
655
|
-
O.value !== null ? (u(), i("line", {
|
|
656
|
-
key: 0,
|
|
657
|
-
stroke: r(de)(W.value.datapoint.color),
|
|
658
|
-
"stroke-width": "2",
|
|
659
|
-
x1: t.value.right + 36,
|
|
660
|
-
x2: t.value.right + 72,
|
|
661
|
-
y1: q.value,
|
|
662
|
-
y2: q.value
|
|
663
|
-
}, null, 8, Zl)) : d("", !0),
|
|
664
|
-
O.value !== null ? (u(), i("path", {
|
|
665
|
-
key: 1,
|
|
666
|
-
fill: e.value.style.color,
|
|
667
|
-
stroke: "none",
|
|
668
|
-
d: `M ${t.value.right + 36},${q.value} ${t.value.right + 26},${q.value - 8} ${t.value.right + 26},${q.value + 8}z`
|
|
669
|
-
}, null, 8, et)) : d("", !0)
|
|
670
|
-
])) : d("", !0),
|
|
671
|
-
e.value.style.legend.show && ee.value === "bottom" ? (u(), i("g", lt, [
|
|
672
|
-
v("defs", null, [
|
|
673
|
-
v("linearGradient", tt, [
|
|
674
|
-
v("stop", {
|
|
675
|
-
offset: "0%",
|
|
676
|
-
"stop-color": e.value.style.layout.cells.colors.cold
|
|
677
|
-
}, null, 8, at),
|
|
678
|
-
v("stop", {
|
|
679
|
-
offset: "100%",
|
|
680
|
-
"stop-color": e.value.style.layout.cells.colors.hot
|
|
681
|
-
}, null, 8, ot)
|
|
682
|
-
])
|
|
683
|
-
]),
|
|
684
|
-
v("rect", {
|
|
685
|
-
x: t.value.left,
|
|
686
|
-
y: t.value.bottom + e.value.style.layout.cells.height,
|
|
687
|
-
width: $.value.width - t.value.left - e.value.style.layout.padding.right,
|
|
688
|
-
height: e.value.style.layout.cells.height,
|
|
689
|
-
rx: e.value.style.legend.scaleBorderRadius > e.value.style.layout.cells.height / 2 ? e.value.style.layout.cells.height / 2 : e.value.style.legend.scaleBorderRadius,
|
|
690
|
-
fill: "url(#colorScaleHorizontal)"
|
|
691
|
-
}, null, 8, st),
|
|
692
|
-
v("text", {
|
|
693
|
-
x: t.value.left,
|
|
694
|
-
y: t.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
695
|
-
"text-anchor": "start",
|
|
696
|
-
"font-size": e.value.style.legend.fontSize * 2,
|
|
697
|
-
fill: e.value.style.legend.color
|
|
698
|
-
}, x(r(S)(
|
|
699
|
-
e.value.style.layout.cells.value.formatter,
|
|
700
|
-
r(N)(F.value),
|
|
701
|
-
r(M)({
|
|
702
|
-
p: e.value.style.layout.dataLabels.prefix,
|
|
703
|
-
v: r(N)(F.value),
|
|
704
|
-
s: e.value.style.layout.dataLabels.suffix,
|
|
705
|
-
r: e.value.style.legend.roundingValue
|
|
706
|
-
})
|
|
707
|
-
)), 9, ut),
|
|
708
|
-
v("text", {
|
|
709
|
-
x: t.value.right,
|
|
710
|
-
y: t.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
711
|
-
"text-anchor": "end",
|
|
712
|
-
"font-size": e.value.style.legend.fontSize * 2,
|
|
713
|
-
fill: e.value.style.legend.color
|
|
714
|
-
}, x(r(S)(
|
|
715
|
-
e.value.style.layout.cells.value.formatter,
|
|
716
|
-
r(N)(L.value),
|
|
717
|
-
r(M)({
|
|
718
|
-
p: e.value.style.layout.dataLabels.prefix,
|
|
719
|
-
v: r(N)(L.value),
|
|
720
|
-
s: e.value.style.layout.dataLabels.suffix,
|
|
721
|
-
r: e.value.style.legend.roundingValue
|
|
722
|
-
})
|
|
723
|
-
)), 9, nt),
|
|
724
|
-
O.value !== null ? (u(), i("line", {
|
|
725
|
-
key: 0,
|
|
726
|
-
stroke: r(de)(W.value.datapoint.color),
|
|
727
|
-
"stroke-width": "2",
|
|
728
|
-
x1: K.value,
|
|
729
|
-
x2: K.value,
|
|
730
|
-
y1: t.value.bottom + e.value.style.layout.cells.height,
|
|
731
|
-
y2: t.value.bottom + e.value.style.layout.cells.height * 2
|
|
732
|
-
}, null, 8, it)) : d("", !0),
|
|
733
|
-
O.value !== null ? (u(), i("path", {
|
|
734
|
-
key: 1,
|
|
735
|
-
fill: e.value.style.color,
|
|
736
|
-
stroke: "none",
|
|
737
|
-
d: `M ${K.value},${t.value.bottom + e.value.style.layout.cells.height} ${K.value - 12},${t.value.bottom + e.value.style.layout.cells.height - 20} ${K.value + 12},${t.value.bottom + e.value.style.layout.cells.height - 20}z`
|
|
738
|
-
}, null, 8, rt)) : d("", !0)
|
|
739
|
-
])) : d("", !0),
|
|
740
|
-
m(l.$slots, "svg", { svg: $.value }, void 0, !0)
|
|
741
|
-
], 14, Tl)) : d("", !0),
|
|
742
|
-
l.$slots.watermark ? (u(), i("div", vt, [
|
|
743
|
-
m(l.$slots, "watermark", E(U({ isPrinting: r(ke) || r(_e) })), void 0, !0)
|
|
744
|
-
])) : d("", !0),
|
|
745
|
-
l.$slots.source ? (u(), i("div", yt, [
|
|
746
|
-
m(l.$slots, "source", {}, void 0, !0)
|
|
747
|
-
], 512)) : d("", !0),
|
|
748
|
-
Z.value ? d("", !0) : (u(), J(r(Re), {
|
|
749
|
-
key: 7,
|
|
750
|
-
config: {
|
|
751
|
-
type: "heatmap",
|
|
752
|
-
style: {
|
|
753
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
754
|
-
heatmap: {
|
|
755
|
-
color: "#CCCCCC"
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
}, null, 8, ["config"])),
|
|
760
|
-
ve(r(Xe), {
|
|
761
|
-
show: C.value.showTooltip && ae.value,
|
|
762
|
-
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
763
|
-
color: e.value.style.tooltip.color,
|
|
764
|
-
borderRadius: e.value.style.tooltip.borderRadius,
|
|
765
|
-
borderColor: e.value.style.tooltip.borderColor,
|
|
766
|
-
borderWidth: e.value.style.tooltip.borderWidth,
|
|
767
|
-
fontSize: e.value.style.tooltip.fontSize,
|
|
768
|
-
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
769
|
-
position: e.value.style.tooltip.position,
|
|
770
|
-
offsetY: e.value.style.tooltip.offsetY,
|
|
771
|
-
parent: R.value,
|
|
772
|
-
content: oe.value,
|
|
773
|
-
isFullscreen: B.value,
|
|
774
|
-
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
775
|
-
}, {
|
|
776
|
-
"tooltip-before": A(() => [
|
|
777
|
-
m(l.$slots, "tooltip-before", E(U({ ...W.value })), void 0, !0)
|
|
778
|
-
]),
|
|
779
|
-
"tooltip-after": A(() => [
|
|
780
|
-
m(l.$slots, "tooltip-after", E(U({ ...W.value })), void 0, !0)
|
|
781
|
-
]),
|
|
782
|
-
_: 3
|
|
783
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
784
|
-
Z.value ? (u(), J(wl, {
|
|
785
|
-
key: 8,
|
|
786
|
-
hideDetails: "",
|
|
787
|
-
config: {
|
|
788
|
-
open: C.value.showTable,
|
|
789
|
-
maxHeight: 1e4,
|
|
790
|
-
body: {
|
|
791
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
792
|
-
color: e.value.style.color
|
|
793
|
-
},
|
|
794
|
-
head: {
|
|
795
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
796
|
-
color: e.value.style.color
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
}, {
|
|
800
|
-
content: A(() => [
|
|
801
|
-
v("div", {
|
|
802
|
-
ref_key: "tableContainer",
|
|
803
|
-
ref: ge,
|
|
804
|
-
class: "vue-ui-heatmap-table atom-data-table"
|
|
805
|
-
}, [
|
|
806
|
-
v("div", {
|
|
807
|
-
style: "width:100%;overflow-x:auto;padding-top:36px;position:relative",
|
|
808
|
-
class: te({ "vue-ui-responsive": pe.value })
|
|
809
|
-
}, [
|
|
810
|
-
v("div", {
|
|
811
|
-
role: "button",
|
|
812
|
-
tabindex: "0",
|
|
813
|
-
style: T(`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};`),
|
|
814
|
-
onClick: o[1] || (o[1] = (n) => C.value.showTable = !1),
|
|
815
|
-
onKeypress: o[2] || (o[2] = sl((n) => C.value.showTable = !1, ["enter"]))
|
|
816
|
-
}, [
|
|
817
|
-
ve(r(Fe), {
|
|
818
|
-
name: "close",
|
|
819
|
-
stroke: e.value.table.th.color,
|
|
820
|
-
"stroke-width": 2
|
|
821
|
-
}, null, 8, ["stroke"])
|
|
822
|
-
], 36),
|
|
823
|
-
v("table", dt, [
|
|
824
|
-
v("caption", {
|
|
825
|
-
style: T(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
826
|
-
}, [
|
|
827
|
-
ul(x(e.value.style.title.text) + " ", 1),
|
|
828
|
-
e.value.style.title.subtitle.text ? (u(), i("span", ct, x(e.value.style.title.subtitle.text), 1)) : d("", !0)
|
|
829
|
-
], 4),
|
|
830
|
-
v("thead", null, [
|
|
831
|
-
v("tr", {
|
|
832
|
-
role: "row",
|
|
833
|
-
style: T(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
834
|
-
}, [
|
|
835
|
-
v("th", {
|
|
836
|
-
style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
837
|
-
}, null, 4),
|
|
838
|
-
(u(!0), i(_, null, z(Y.dataset, (n, s) => (u(), i("th", {
|
|
839
|
-
align: "right",
|
|
840
|
-
style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
841
|
-
}, x(n.name), 5))), 256))
|
|
842
|
-
], 4)
|
|
843
|
-
]),
|
|
844
|
-
v("tbody", null, [
|
|
845
|
-
(u(!0), i(_, null, z(p.value.xLabels, (n, s) => (u(), i("tr", {
|
|
846
|
-
role: "row",
|
|
847
|
-
class: te({ "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 }),
|
|
848
|
-
style: T(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
849
|
-
}, [
|
|
850
|
-
v("td", {
|
|
851
|
-
"data-cell": e.value.table.colNames.xAxis,
|
|
852
|
-
class: "vue-ui-data-table__tbody__td",
|
|
853
|
-
style: T(`outline:${e.value.table.td.outline}`)
|
|
854
|
-
}, [
|
|
855
|
-
v("div", gt, x(n), 1)
|
|
856
|
-
], 12, ht),
|
|
857
|
-
(u(!0), i(_, null, z(Y.dataset, (c, h) => (u(), i("td", {
|
|
858
|
-
class: "vue-ui-data-table__tbody__td",
|
|
859
|
-
"data-cell": Y.dataset[h].name,
|
|
860
|
-
style: T(`outline:${e.value.table.td.outline}`)
|
|
861
|
-
}, [
|
|
862
|
-
v("div", ft, x(isNaN(c.values[s]) ? "-" : r(M)({ p: e.value.style.layout.dataLabels.prefix, v: c.values[s], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
863
|
-
], 12, pt))), 256))
|
|
864
|
-
], 6))), 256))
|
|
865
|
-
])
|
|
866
|
-
])
|
|
867
|
-
], 2)
|
|
868
|
-
], 512)
|
|
869
|
-
]),
|
|
870
|
-
_: 1
|
|
871
|
-
}, 8, ["config"])) : d("", !0)
|
|
872
|
-
], 46, $l));
|
|
873
|
-
}
|
|
874
|
-
}, zt = /* @__PURE__ */ Cl(bt, [["__scopeId", "data-v-a3e4a488"]]);
|
|
875
|
-
export {
|
|
876
|
-
zt as default
|
|
877
|
-
};
|