vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
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-BzfnuLnw.js";
|
|
3
|
+
import { u as Se } from "./useNestedProp-DorElw91.js";
|
|
4
|
+
import { u as bl } from "./usePrinter-C9qkgv0r.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-DgZK-qDz.js";
|
|
8
|
+
import kl from "./Title-pVYRzQXY.js";
|
|
9
|
+
import _l from "./img-ku4zevVD.js";
|
|
10
|
+
import { _ as Cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const $l = ["id"], Ll = {
|
|
11
12
|
key: 2,
|
|
12
13
|
style: "width:100%;background:transparent"
|
|
13
|
-
},
|
|
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 = {
|
|
14
15
|
id: "colorScaleHorizontal",
|
|
15
16
|
x1: "0%",
|
|
16
17
|
x2: "100%",
|
|
17
18
|
y1: "0%",
|
|
18
19
|
y2: "0%"
|
|
19
|
-
},
|
|
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 = {
|
|
20
21
|
key: 5,
|
|
21
22
|
class: "vue-data-ui-watermark"
|
|
22
|
-
},
|
|
23
|
+
}, yt = {
|
|
23
24
|
key: 6,
|
|
24
25
|
ref: "source",
|
|
25
26
|
dir: "auto"
|
|
26
|
-
},
|
|
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 = {
|
|
27
28
|
__name: "vue-ui-heatmap",
|
|
28
29
|
props: {
|
|
29
30
|
config: {
|
|
@@ -40,72 +41,72 @@ const kl = ["id"], _l = {
|
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
43
|
emits: ["selectDatapoint"],
|
|
43
|
-
setup(
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
setup(Y, { expose: Ne, emit: Ve }) {
|
|
45
|
+
el((l) => ({
|
|
46
|
+
e16f0f96: l.tdo
|
|
46
47
|
}));
|
|
47
|
-
const
|
|
48
|
-
|
|
48
|
+
const Fe = D(() => import("./BaseIcon-BmZ4MREl.js")), Ie = D(() => import("./PackageVersion-CAkNkiIG.js")), Pe = D(() => import("./PenAndPaper-Cx1-5zdD.js")), Re = D(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Xe = D(() => import("./Tooltip-NwATo4ZJ.js")), Be = D(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_heatmap: De } = il(), y = Y, Ee = Ve, Z = f(() => !!y.dataset && y.dataset.length);
|
|
49
|
+
rl(y.dataset) && Oe({
|
|
49
50
|
componentName: "VueUiHeatmap",
|
|
50
51
|
type: "dataset"
|
|
51
52
|
});
|
|
52
|
-
const
|
|
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({
|
|
53
54
|
get: () => we(),
|
|
54
55
|
set: (l) => l
|
|
55
|
-
}), { userOptionsVisible: se, setUserOptionsVisibility: be, keepUserOptionState: me } =
|
|
56
|
+
}), { userOptionsVisible: se, setUserOptionsVisibility: be, keepUserOptionState: me } = ml({ config: e.value }), { svgRef: xe } = xl({ config: e.value.style.title });
|
|
56
57
|
function we() {
|
|
57
|
-
const l =
|
|
58
|
+
const l = Se({
|
|
58
59
|
userConfig: y.config,
|
|
59
|
-
defaultConfig:
|
|
60
|
+
defaultConfig: De
|
|
60
61
|
});
|
|
61
|
-
let
|
|
62
|
-
return l.theme ?
|
|
63
|
-
...
|
|
64
|
-
userConfig:
|
|
62
|
+
let o = {};
|
|
63
|
+
return l.theme ? o = {
|
|
64
|
+
...Se({
|
|
65
|
+
userConfig: vl.vue_ui_heatmap[l.theme] || y.config,
|
|
65
66
|
defaultConfig: l
|
|
66
67
|
})
|
|
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;
|
|
68
69
|
}
|
|
69
|
-
|
|
70
|
+
Me(() => y.config, (l) => {
|
|
70
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;
|
|
71
|
-
}, { deep: !0 }),
|
|
72
|
+
}, { deep: !0 }), Me(() => y.dataset, () => {
|
|
72
73
|
ue();
|
|
73
74
|
}, { deep: !0 });
|
|
74
|
-
const { isPrinting: ke, isImaging: _e, generatePdf: Ce, generateImage: $e } =
|
|
75
|
-
elementId: `heatmap__${
|
|
75
|
+
const { isPrinting: ke, isImaging: _e, generatePdf: Ce, generateImage: $e } = bl({
|
|
76
|
+
elementId: `heatmap__${G.value}`,
|
|
76
77
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
77
78
|
options: e.value.userOptions.print
|
|
78
|
-
}),
|
|
79
|
+
}), Ge = f(() => e.value.userOptions.show && !e.value.style.title.text), C = b({
|
|
79
80
|
showTable: e.value.table.show,
|
|
80
81
|
showTooltip: e.value.style.tooltip.show
|
|
81
|
-
}),
|
|
82
|
-
function
|
|
83
|
-
|
|
84
|
-
l.forEach((
|
|
85
|
-
pe.value =
|
|
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;
|
|
86
87
|
});
|
|
87
|
-
}),
|
|
88
|
+
}), X.value.observe(ge.value);
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
tl(ue), al(() => {
|
|
91
|
+
X.value && X.value.disconnect();
|
|
91
92
|
});
|
|
92
93
|
function ue() {
|
|
93
|
-
|
|
94
|
+
je();
|
|
94
95
|
}
|
|
95
96
|
const V = f(() => Math.max(...y.dataset.flatMap((l) => (l.values || []).length))), $ = f(() => {
|
|
96
|
-
const l = e.value.style.layout.padding.top + e.value.style.layout.padding.bottom + y.dataset.length * e.value.style.layout.cells.height,
|
|
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);
|
|
97
98
|
return {
|
|
98
99
|
height: l,
|
|
99
100
|
heightWithLegend: n,
|
|
100
|
-
width:
|
|
101
|
+
width: o
|
|
101
102
|
};
|
|
102
|
-
}),
|
|
103
|
+
}), ee = f(() => e.value.style.legend.position), t = f(() => ({
|
|
103
104
|
top: e.value.style.layout.padding.top,
|
|
104
105
|
left: e.value.style.layout.padding.left,
|
|
105
|
-
right: $.value.width - e.value.style.layout.padding.right - (
|
|
106
|
+
right: $.value.width - e.value.style.layout.padding.right - (ee.value === "right" && e.value.style.legend.show ? 92 : 0),
|
|
106
107
|
bottom: $.value.height - e.value.style.layout.padding.bottom,
|
|
107
108
|
height: $.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
|
|
108
|
-
width: $.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (
|
|
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)
|
|
109
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(() => {
|
|
110
111
|
const l = y.dataset.flatMap((n) => n.values);
|
|
111
112
|
return l.reduce((n, s) => n + s, 0) / l.length;
|
|
@@ -113,7 +114,7 @@ const kl = ["id"], _l = {
|
|
|
113
114
|
width: t.value.width / V.value,
|
|
114
115
|
height: t.value.width / (V.value < y.dataset.length ? y.dataset.length : V.value)
|
|
115
116
|
})), p = f(() => {
|
|
116
|
-
const l = e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : y.dataset.map((g) => g.name),
|
|
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 = [];
|
|
117
118
|
for (let g = 0; g < V.value; g += 1)
|
|
118
119
|
h.push(y.dataset.map((w) => w.values[g] || 0).reduce((w, re) => w + re, 0));
|
|
119
120
|
const k = Math.max(...h), P = Math.min(...h);
|
|
@@ -123,7 +124,7 @@ const kl = ["id"], _l = {
|
|
|
123
124
|
return {
|
|
124
125
|
total: g,
|
|
125
126
|
proportion: w,
|
|
126
|
-
color:
|
|
127
|
+
color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, c, s, g)
|
|
127
128
|
};
|
|
128
129
|
}),
|
|
129
130
|
xTotals: h.map((g) => {
|
|
@@ -131,66 +132,66 @@ const kl = ["id"], _l = {
|
|
|
131
132
|
return {
|
|
132
133
|
total: g,
|
|
133
134
|
proportion: w,
|
|
134
|
-
color:
|
|
135
|
+
color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, P, k, g)
|
|
135
136
|
};
|
|
136
137
|
}),
|
|
137
138
|
yLabels: l,
|
|
138
|
-
xLabels:
|
|
139
|
+
xLabels: o.slice(0, V.value)
|
|
139
140
|
};
|
|
140
|
-
}),
|
|
141
|
-
|
|
141
|
+
}), j = f(() => (y.dataset.forEach((l, o) => {
|
|
142
|
+
dl({
|
|
142
143
|
datasetObject: l,
|
|
143
144
|
requiredAttributes: ["values"]
|
|
144
145
|
}).forEach((n) => {
|
|
145
|
-
|
|
146
|
+
Oe({
|
|
146
147
|
componentName: "VueUiHeatmap",
|
|
147
148
|
type: "datasetSerieAttribute",
|
|
148
149
|
property: "values",
|
|
149
|
-
index:
|
|
150
|
+
index: o
|
|
150
151
|
});
|
|
151
152
|
});
|
|
152
153
|
}), y.dataset.map((l) => ({
|
|
153
154
|
...l,
|
|
154
|
-
temperatures: (l.values || []).map((
|
|
155
|
+
temperatures: (l.values || []).map((o, n) => o >= I.value ? {
|
|
155
156
|
side: "up",
|
|
156
|
-
color:
|
|
157
|
-
ratio: Math.abs(Math.abs(
|
|
158
|
-
value:
|
|
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,
|
|
159
160
|
yAxisName: l.name,
|
|
160
161
|
xAxisName: p.value.xLabels[n],
|
|
161
162
|
id: `vue-data-ui-heatmap-cell-${ye()}`
|
|
162
163
|
} : {
|
|
163
164
|
side: "down",
|
|
164
|
-
ratio: Math.abs(1 - Math.abs(
|
|
165
|
-
color:
|
|
166
|
-
value:
|
|
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,
|
|
167
168
|
yAxisName: l.name,
|
|
168
169
|
xAxisName: p.value.xLabels[n],
|
|
169
170
|
id: `vue-data-ui-heatmap-cell-${ye()}`
|
|
170
171
|
})
|
|
171
|
-
})))), O = b(null),
|
|
172
|
-
function
|
|
173
|
-
|
|
172
|
+
})))), O = b(null), W = b(null);
|
|
173
|
+
function We(l, o, n, s) {
|
|
174
|
+
H.value = { x: n, y: s };
|
|
174
175
|
const { value: c, yAxisName: h, xAxisName: k, id: P } = l;
|
|
175
|
-
ce.value = P, O.value = c,
|
|
176
|
+
ce.value = P, O.value = c, W.value = {
|
|
176
177
|
datapoint: l,
|
|
177
|
-
seriesIndex:
|
|
178
|
-
series:
|
|
178
|
+
seriesIndex: o,
|
|
179
|
+
series: j.value,
|
|
179
180
|
config: e.value
|
|
180
181
|
}, ae.value = !0;
|
|
181
182
|
let g = "";
|
|
182
183
|
const w = e.value.style.tooltip.customFormat;
|
|
183
|
-
|
|
184
|
+
pl(w) && fl(() => w({
|
|
184
185
|
datapoint: l,
|
|
185
|
-
seriesIndex:
|
|
186
|
-
series:
|
|
186
|
+
seriesIndex: o,
|
|
187
|
+
series: j.value,
|
|
187
188
|
config: e.value
|
|
188
189
|
})) ? oe.value = w({
|
|
189
190
|
datapoint: l,
|
|
190
|
-
seriesIndex:
|
|
191
|
-
series:
|
|
191
|
+
seriesIndex: o,
|
|
192
|
+
series: j.value,
|
|
192
193
|
config: e.value
|
|
193
|
-
}) : (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:${
|
|
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(
|
|
194
195
|
e.value.style.layout.cells.value.formatter,
|
|
195
196
|
c,
|
|
196
197
|
M({
|
|
@@ -199,11 +200,11 @@ const kl = ["id"], _l = {
|
|
|
199
200
|
s: e.value.style.layout.dataLabels.suffix,
|
|
200
201
|
r: e.value.style.tooltip.roundingValue
|
|
201
202
|
}),
|
|
202
|
-
{ datapoint: l, seriesIndex:
|
|
203
|
+
{ datapoint: l, seriesIndex: o }
|
|
203
204
|
)}</span></div>`, oe.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${g}</div>`);
|
|
204
205
|
}
|
|
205
|
-
const
|
|
206
|
-
function
|
|
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) {
|
|
207
208
|
return S(
|
|
208
209
|
e.value.style.layout.cells.value.formatter,
|
|
209
210
|
p.value.yTotals[l].total,
|
|
@@ -216,7 +217,7 @@ const kl = ["id"], _l = {
|
|
|
216
217
|
{ datapoint: p.value.yTotals[l], rowIndex: l }
|
|
217
218
|
);
|
|
218
219
|
}
|
|
219
|
-
function
|
|
220
|
+
function Ke(l) {
|
|
220
221
|
return S(
|
|
221
222
|
e.value.style.layout.cells.value.formatter,
|
|
222
223
|
p.value.xTotals[l].total,
|
|
@@ -232,72 +233,90 @@ const kl = ["id"], _l = {
|
|
|
232
233
|
f(() => {
|
|
233
234
|
const l = y.dataset.map((n) => ({
|
|
234
235
|
name: n.name
|
|
235
|
-
})),
|
|
236
|
-
return { head: l, body:
|
|
236
|
+
})), o = y.dataset.map((n) => n.values);
|
|
237
|
+
return { head: l, body: o };
|
|
237
238
|
});
|
|
238
239
|
function Le(l = null) {
|
|
239
|
-
|
|
240
|
-
const
|
|
240
|
+
nl(() => {
|
|
241
|
+
const o = ["", ...y.dataset.map((h, k) => h.name)], n = [];
|
|
241
242
|
for (let h = 0; h < p.value.xLabels.length; h += 1) {
|
|
242
243
|
const k = [p.value.xLabels[h]];
|
|
243
244
|
for (let P = 0; P < y.dataset.length; P += 1)
|
|
244
245
|
k.push([y.dataset[P].values[h]]);
|
|
245
246
|
n.push(k);
|
|
246
247
|
}
|
|
247
|
-
const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([
|
|
248
|
-
l ? l(c) :
|
|
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" });
|
|
249
250
|
});
|
|
250
251
|
}
|
|
251
|
-
const
|
|
252
|
-
function
|
|
253
|
-
|
|
252
|
+
const B = b(!1);
|
|
253
|
+
function Te(l) {
|
|
254
|
+
B.value = l, he.value += 1;
|
|
254
255
|
}
|
|
255
|
-
function
|
|
256
|
+
function Ae() {
|
|
256
257
|
C.value.showTable = !C.value.showTable;
|
|
257
258
|
}
|
|
258
|
-
function
|
|
259
|
+
function ze() {
|
|
259
260
|
C.value.showTooltip = !C.value.showTooltip;
|
|
260
261
|
}
|
|
261
|
-
const
|
|
262
|
+
const le = b(!1);
|
|
262
263
|
function ie() {
|
|
263
|
-
|
|
264
|
+
le.value = !le.value;
|
|
264
265
|
}
|
|
265
266
|
function Je(l) {
|
|
266
|
-
|
|
267
|
+
Ee("selectDatapoint", l);
|
|
267
268
|
}
|
|
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,
|
|
269
287
|
generatePdf: Ce,
|
|
270
288
|
generateCsv: Le,
|
|
271
289
|
generateImage: $e,
|
|
272
|
-
toggleTable:
|
|
273
|
-
toggleTooltip:
|
|
274
|
-
toggleAnnotator: ie
|
|
275
|
-
|
|
290
|
+
toggleTable: Ae,
|
|
291
|
+
toggleTooltip: ze,
|
|
292
|
+
toggleAnnotator: ie,
|
|
293
|
+
toggleFullscreen: Te
|
|
294
|
+
}), (l, o) => (u(), i("div", {
|
|
276
295
|
ref_key: "heatmapChart",
|
|
277
|
-
ref:
|
|
278
|
-
class:
|
|
296
|
+
ref: R,
|
|
297
|
+
class: te(`vue-ui-heatmap ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
279
298
|
style: T(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor}`),
|
|
280
|
-
id: `heatmap__${
|
|
281
|
-
onMouseenter:
|
|
282
|
-
onMouseleave:
|
|
299
|
+
id: `heatmap__${G.value}`,
|
|
300
|
+
onMouseenter: o[3] || (o[3] = () => r(be)(!0)),
|
|
301
|
+
onMouseleave: o[4] || (o[4] = () => r(be)(!1))
|
|
283
302
|
}, [
|
|
284
|
-
e.value.userOptions.buttons.annotator ? (
|
|
303
|
+
e.value.userOptions.buttons.annotator ? (u(), J(r(Pe), {
|
|
285
304
|
key: 0,
|
|
286
305
|
svgRef: r(xe),
|
|
287
306
|
backgroundColor: e.value.style.backgroundColor,
|
|
288
307
|
color: e.value.style.color,
|
|
289
|
-
active:
|
|
308
|
+
active: le.value,
|
|
290
309
|
onClose: ie
|
|
291
310
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
292
|
-
|
|
311
|
+
Ge.value ? (u(), i("div", {
|
|
293
312
|
key: 1,
|
|
294
313
|
ref_key: "noTitle",
|
|
295
|
-
ref:
|
|
314
|
+
ref: Ye,
|
|
296
315
|
class: "vue-data-ui-no-title-space",
|
|
297
316
|
style: "height:36px; width: 100%;background:transparent"
|
|
298
317
|
}, null, 512)) : d("", !0),
|
|
299
|
-
e.value.style.title.text ? (
|
|
300
|
-
(
|
|
318
|
+
e.value.style.title.text ? (u(), i("div", Ll, [
|
|
319
|
+
(u(), J(kl, {
|
|
301
320
|
key: `title_${fe.value}`,
|
|
302
321
|
config: {
|
|
303
322
|
title: {
|
|
@@ -311,44 +330,45 @@ const kl = ["id"], _l = {
|
|
|
311
330
|
}
|
|
312
331
|
}, null, 8, ["config"]))
|
|
313
332
|
])) : d("", !0),
|
|
314
|
-
e.value.userOptions.show &&
|
|
333
|
+
e.value.userOptions.show && Z.value && (r(me) || r(se)) ? (u(), J(r(Be), {
|
|
315
334
|
ref_key: "details",
|
|
316
|
-
ref:
|
|
335
|
+
ref: Ue,
|
|
317
336
|
key: `user_options_${he.value}`,
|
|
318
337
|
backgroundColor: e.value.style.backgroundColor,
|
|
319
338
|
color: e.value.style.color,
|
|
320
339
|
isImaging: r(_e),
|
|
321
340
|
isPrinting: r(ke),
|
|
322
|
-
uid:
|
|
341
|
+
uid: G.value,
|
|
323
342
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
324
343
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
325
344
|
hasImg: e.value.userOptions.buttons.img,
|
|
326
345
|
hasXls: e.value.userOptions.buttons.csv,
|
|
327
346
|
hasTable: e.value.userOptions.buttons.table,
|
|
328
347
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
329
|
-
isFullscreen:
|
|
348
|
+
isFullscreen: B.value,
|
|
330
349
|
isTooltip: C.value.showTooltip,
|
|
331
350
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
332
|
-
chartElement:
|
|
351
|
+
chartElement: R.value,
|
|
333
352
|
position: e.value.userOptions.position,
|
|
334
353
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
335
|
-
isAnnotation:
|
|
354
|
+
isAnnotation: le.value,
|
|
336
355
|
callbacks: e.value.userOptions.callbacks,
|
|
337
|
-
|
|
356
|
+
printScale: e.value.userOptions.print.scale,
|
|
357
|
+
onToggleFullscreen: Te,
|
|
338
358
|
onGeneratePdf: r(Ce),
|
|
339
359
|
onGenerateCsv: Le,
|
|
340
360
|
onGenerateImage: r($e),
|
|
341
|
-
onToggleTable:
|
|
342
|
-
onToggleTooltip:
|
|
361
|
+
onToggleTable: Ae,
|
|
362
|
+
onToggleTooltip: ze,
|
|
343
363
|
onToggleAnnotator: ie,
|
|
344
364
|
style: T({
|
|
345
365
|
visibility: r(me) ? r(se) ? "visible" : "hidden" : "visible"
|
|
346
366
|
})
|
|
347
|
-
},
|
|
367
|
+
}, ol({ _: 2 }, [
|
|
348
368
|
l.$slots.menuIcon ? {
|
|
349
369
|
name: "menuIcon",
|
|
350
370
|
fn: A(({ isOpen: n, color: s }) => [
|
|
351
|
-
m(l.$slots, "menuIcon",
|
|
371
|
+
m(l.$slots, "menuIcon", E(U({ isOpen: n, color: s })), void 0, !0)
|
|
352
372
|
]),
|
|
353
373
|
key: "0"
|
|
354
374
|
} : void 0,
|
|
@@ -390,29 +410,29 @@ const kl = ["id"], _l = {
|
|
|
390
410
|
l.$slots.optionFullscreen ? {
|
|
391
411
|
name: "optionFullscreen",
|
|
392
412
|
fn: A(({ toggleFullscreen: n, isFullscreen: s }) => [
|
|
393
|
-
m(l.$slots, "optionFullscreen",
|
|
413
|
+
m(l.$slots, "optionFullscreen", E(U({ toggleFullscreen: n, isFullscreen: s })), void 0, !0)
|
|
394
414
|
]),
|
|
395
415
|
key: "6"
|
|
396
416
|
} : void 0,
|
|
397
417
|
l.$slots.optionAnnotator ? {
|
|
398
418
|
name: "optionAnnotator",
|
|
399
419
|
fn: A(({ toggleAnnotator: n, isAnnotator: s }) => [
|
|
400
|
-
m(l.$slots, "optionAnnotator",
|
|
420
|
+
m(l.$slots, "optionAnnotator", E(U({ toggleAnnotator: n, isAnnotator: s })), void 0, !0)
|
|
401
421
|
]),
|
|
402
422
|
key: "7"
|
|
403
423
|
} : void 0
|
|
404
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
405
|
-
|
|
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", {
|
|
406
426
|
key: 4,
|
|
407
427
|
ref_key: "svgRef",
|
|
408
428
|
ref: xe,
|
|
409
|
-
xmlns: r(
|
|
410
|
-
class:
|
|
429
|
+
xmlns: r(cl),
|
|
430
|
+
class: te({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
|
|
411
431
|
viewBox: `0 0 ${$.value.width} ${$.value.heightWithLegend}`,
|
|
412
432
|
style: T(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
413
433
|
}, [
|
|
414
|
-
ve(r(
|
|
415
|
-
l.$slots["chart-background"] ? (
|
|
434
|
+
ve(r(Ie)),
|
|
435
|
+
l.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
416
436
|
key: 0,
|
|
417
437
|
x: 0,
|
|
418
438
|
y: 0,
|
|
@@ -423,9 +443,9 @@ const kl = ["id"], _l = {
|
|
|
423
443
|
}
|
|
424
444
|
}, [
|
|
425
445
|
m(l.$slots, "chart-background", {}, void 0, !0)
|
|
426
|
-
], 8,
|
|
427
|
-
e.value.style.layout.cells.columnTotal.color.show ? (
|
|
428
|
-
(
|
|
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", {
|
|
429
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),
|
|
430
450
|
y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
|
|
431
451
|
height: a.value.height / 3,
|
|
@@ -433,8 +453,8 @@ const kl = ["id"], _l = {
|
|
|
433
453
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
434
454
|
stroke: e.value.style.backgroundColor,
|
|
435
455
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
436
|
-
}, null, 8,
|
|
437
|
-
(
|
|
456
|
+
}, null, 8, zl))), 256)),
|
|
457
|
+
(u(!0), i(_, null, z(p.value.xTotals, (n, s) => (u(), i("rect", {
|
|
438
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),
|
|
439
459
|
y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
|
|
440
460
|
height: a.value.height / 3,
|
|
@@ -442,10 +462,10 @@ const kl = ["id"], _l = {
|
|
|
442
462
|
fill: n.color,
|
|
443
463
|
stroke: e.value.style.backgroundColor,
|
|
444
464
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
445
|
-
}, null, 8,
|
|
465
|
+
}, null, 8, Ml))), 256))
|
|
446
466
|
], 64)) : d("", !0),
|
|
447
|
-
(
|
|
448
|
-
(
|
|
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, [
|
|
449
469
|
v("rect", {
|
|
450
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),
|
|
451
471
|
y: t.value.top + a.value.height * s + e.value.style.layout.cells.spacing / 2,
|
|
@@ -454,7 +474,7 @@ const kl = ["id"], _l = {
|
|
|
454
474
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
455
475
|
stroke: e.value.style.backgroundColor,
|
|
456
476
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
457
|
-
}, null, 8,
|
|
477
|
+
}, null, 8, Ol),
|
|
458
478
|
v("rect", {
|
|
459
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),
|
|
460
480
|
y: t.value.top + a.value.height * s + e.value.style.layout.cells.spacing / 2,
|
|
@@ -463,8 +483,8 @@ const kl = ["id"], _l = {
|
|
|
463
483
|
fill: c.color,
|
|
464
484
|
stroke: e.value.style.backgroundColor,
|
|
465
485
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
466
|
-
}, null, 8,
|
|
467
|
-
e.value.style.layout.cells.value.show ? (
|
|
486
|
+
}, null, 8, Sl),
|
|
487
|
+
e.value.style.layout.cells.value.show ? (u(), i("text", {
|
|
468
488
|
key: 0,
|
|
469
489
|
"text-anchor": "middle",
|
|
470
490
|
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
@@ -482,9 +502,9 @@ const kl = ["id"], _l = {
|
|
|
482
502
|
r: e.value.style.layout.cells.value.roundingValue
|
|
483
503
|
}),
|
|
484
504
|
{ datapoint: c }
|
|
485
|
-
)), 9,
|
|
505
|
+
)), 9, Nl)) : d("", !0)
|
|
486
506
|
]))), 256)),
|
|
487
|
-
(
|
|
507
|
+
(u(!0), i(_, null, z(n.temperatures, (c, h) => (u(), i("g", null, [
|
|
488
508
|
v("rect", {
|
|
489
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),
|
|
490
510
|
y: t.value.top + a.value.height * s,
|
|
@@ -492,14 +512,14 @@ const kl = ["id"], _l = {
|
|
|
492
512
|
height: a.value.height,
|
|
493
513
|
fill: "transparent",
|
|
494
514
|
stroke: "none",
|
|
495
|
-
onMouseover: (k) =>
|
|
496
|
-
onMouseout:
|
|
497
|
-
ae.value = !1, ce.value = void 0, O.value = null,
|
|
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;
|
|
498
518
|
}),
|
|
499
519
|
onClick: () => Je(c)
|
|
500
|
-
}, null, 40,
|
|
520
|
+
}, null, 40, Vl)
|
|
501
521
|
]))), 256)),
|
|
502
|
-
e.value.style.layout.dataLabels.yAxis.show ? (
|
|
522
|
+
e.value.style.layout.dataLabels.yAxis.show ? (u(), i("g", Fl, [
|
|
503
523
|
v("text", {
|
|
504
524
|
class: "vue-ui-heatmap-row-name",
|
|
505
525
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -508,8 +528,8 @@ const kl = ["id"], _l = {
|
|
|
508
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),
|
|
509
529
|
"text-anchor": "end",
|
|
510
530
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
511
|
-
}, x(p.value.yLabels[s]), 9,
|
|
512
|
-
e.value.style.layout.cells.rowTotal.value.show ? (
|
|
531
|
+
}, x(p.value.yLabels[s]), 9, Il),
|
|
532
|
+
e.value.style.layout.cells.rowTotal.value.show ? (u(), i("text", {
|
|
513
533
|
key: 0,
|
|
514
534
|
class: "vue-ui-heatmap-row-total",
|
|
515
535
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -518,9 +538,9 @@ const kl = ["id"], _l = {
|
|
|
518
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,
|
|
519
539
|
"text-anchor": "end",
|
|
520
540
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
521
|
-
}, x(
|
|
541
|
+
}, x(qe(s)), 9, Pl)) : d("", !0)
|
|
522
542
|
])) : d("", !0),
|
|
523
|
-
e.value.style.layout.cells.rowTotal.color.show ? (
|
|
543
|
+
e.value.style.layout.cells.rowTotal.color.show ? (u(), i("g", Rl, [
|
|
524
544
|
v("rect", {
|
|
525
545
|
x: t.value.left,
|
|
526
546
|
y: t.value.top + a.value.height * s,
|
|
@@ -529,7 +549,7 @@ const kl = ["id"], _l = {
|
|
|
529
549
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
530
550
|
stroke: e.value.style.backgroundColor,
|
|
531
551
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
532
|
-
}, null, 8,
|
|
552
|
+
}, null, 8, Xl),
|
|
533
553
|
v("rect", {
|
|
534
554
|
x: t.value.left,
|
|
535
555
|
y: t.value.top + a.value.height * s + e.value.style.layout.cells.spacing / 2,
|
|
@@ -538,12 +558,12 @@ const kl = ["id"], _l = {
|
|
|
538
558
|
fill: p.value.yTotals[s].color,
|
|
539
559
|
stroke: e.value.style.backgroundColor,
|
|
540
560
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
541
|
-
}, null, 8,
|
|
561
|
+
}, null, 8, Bl)
|
|
542
562
|
])) : d("", !0)
|
|
543
563
|
]))), 256)),
|
|
544
|
-
e.value.style.layout.dataLabels.xAxis.show ? (
|
|
545
|
-
(
|
|
546
|
-
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && s % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (
|
|
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", {
|
|
547
567
|
key: 0,
|
|
548
568
|
class: "vue-ui-heatmap-col-name",
|
|
549
569
|
"text-anchor": e.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
@@ -551,46 +571,46 @@ const kl = ["id"], _l = {
|
|
|
551
571
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
552
572
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
553
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})`
|
|
554
|
-
}, x(n), 9,
|
|
574
|
+
}, x(n), 9, El)) : d("", !0)
|
|
555
575
|
], 64))), 256))
|
|
556
576
|
])) : d("", !0),
|
|
557
|
-
e.value.style.layout.cells.columnTotal.value.show ? (
|
|
577
|
+
e.value.style.layout.cells.columnTotal.value.show ? (u(!0), i(_, { key: 3 }, z(p.value.xLabels, (n, s) => (u(), i("text", {
|
|
558
578
|
class: "vue-ui-heatmap-col-total",
|
|
559
579
|
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
560
580
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
561
581
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
562
582
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
563
|
-
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) * (
|
|
564
|
-
}, x(
|
|
565
|
-
|
|
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, [
|
|
566
586
|
v("rect", {
|
|
567
587
|
style: { "pointer-events": "none" },
|
|
568
|
-
x:
|
|
569
|
-
y:
|
|
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,
|
|
570
590
|
width: a.value.width - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
571
591
|
height: a.value.height - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
572
592
|
fill: "transparent",
|
|
573
593
|
stroke: e.value.style.layout.cells.selected.color,
|
|
574
594
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
575
595
|
rx: 1
|
|
576
|
-
}, null, 8,
|
|
596
|
+
}, null, 8, Gl)
|
|
577
597
|
])) : d("", !0),
|
|
578
|
-
e.value.style.legend.show &&
|
|
598
|
+
e.value.style.legend.show && ee.value === "right" ? (u(), i("g", Hl, [
|
|
579
599
|
v("defs", null, [
|
|
580
600
|
v("linearGradient", {
|
|
581
|
-
id: `colorScaleVertical_${
|
|
601
|
+
id: `colorScaleVertical_${G.value}`,
|
|
582
602
|
x2: "0%",
|
|
583
603
|
y2: "100%"
|
|
584
604
|
}, [
|
|
585
605
|
v("stop", {
|
|
586
606
|
offset: "0%",
|
|
587
607
|
"stop-color": e.value.style.layout.cells.colors.hot
|
|
588
|
-
}, null, 8,
|
|
608
|
+
}, null, 8, Wl),
|
|
589
609
|
v("stop", {
|
|
590
610
|
offset: "100%",
|
|
591
611
|
"stop-color": e.value.style.layout.cells.colors.cold
|
|
592
|
-
}, null, 8,
|
|
593
|
-
], 8,
|
|
612
|
+
}, null, 8, ql)
|
|
613
|
+
], 8, jl)
|
|
594
614
|
]),
|
|
595
615
|
v("text", {
|
|
596
616
|
x: t.value.right + 36 + 18,
|
|
@@ -607,15 +627,15 @@ const kl = ["id"], _l = {
|
|
|
607
627
|
s: e.value.style.layout.dataLabels.suffix,
|
|
608
628
|
r: e.value.style.legend.roundingValue
|
|
609
629
|
})
|
|
610
|
-
)), 9,
|
|
630
|
+
)), 9, Kl),
|
|
611
631
|
v("rect", {
|
|
612
632
|
x: t.value.right + 36,
|
|
613
633
|
y: t.value.top,
|
|
614
634
|
width: 36,
|
|
615
635
|
height: ne.value,
|
|
616
636
|
rx: e.value.style.legend.scaleBorderRadius,
|
|
617
|
-
fill: `url(#colorScaleVertical_${
|
|
618
|
-
}, null, 8,
|
|
637
|
+
fill: `url(#colorScaleVertical_${G.value})`
|
|
638
|
+
}, null, 8, Jl),
|
|
619
639
|
v("text", {
|
|
620
640
|
x: t.value.right + 36 + 18,
|
|
621
641
|
y: t.value.top + ne.value + e.value.style.legend.fontSize * 2.5,
|
|
@@ -631,34 +651,34 @@ const kl = ["id"], _l = {
|
|
|
631
651
|
s: e.value.style.layout.dataLabels.suffix,
|
|
632
652
|
r: e.value.style.legend.roundingValue
|
|
633
653
|
})
|
|
634
|
-
)), 9,
|
|
635
|
-
O.value !== null ? (
|
|
654
|
+
)), 9, Ql),
|
|
655
|
+
O.value !== null ? (u(), i("line", {
|
|
636
656
|
key: 0,
|
|
637
|
-
stroke: r(de)(
|
|
657
|
+
stroke: r(de)(W.value.datapoint.color),
|
|
638
658
|
"stroke-width": "2",
|
|
639
659
|
x1: t.value.right + 36,
|
|
640
660
|
x2: t.value.right + 72,
|
|
641
|
-
y1:
|
|
642
|
-
y2:
|
|
643
|
-
}, null, 8,
|
|
644
|
-
O.value !== null ? (
|
|
661
|
+
y1: q.value,
|
|
662
|
+
y2: q.value
|
|
663
|
+
}, null, 8, Zl)) : d("", !0),
|
|
664
|
+
O.value !== null ? (u(), i("path", {
|
|
645
665
|
key: 1,
|
|
646
666
|
fill: e.value.style.color,
|
|
647
667
|
stroke: "none",
|
|
648
|
-
d: `M ${t.value.right + 36},${
|
|
649
|
-
}, null, 8,
|
|
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)
|
|
650
670
|
])) : d("", !0),
|
|
651
|
-
e.value.style.legend.show &&
|
|
671
|
+
e.value.style.legend.show && ee.value === "bottom" ? (u(), i("g", lt, [
|
|
652
672
|
v("defs", null, [
|
|
653
|
-
v("linearGradient",
|
|
673
|
+
v("linearGradient", tt, [
|
|
654
674
|
v("stop", {
|
|
655
675
|
offset: "0%",
|
|
656
676
|
"stop-color": e.value.style.layout.cells.colors.cold
|
|
657
|
-
}, null, 8,
|
|
677
|
+
}, null, 8, at),
|
|
658
678
|
v("stop", {
|
|
659
679
|
offset: "100%",
|
|
660
680
|
"stop-color": e.value.style.layout.cells.colors.hot
|
|
661
|
-
}, null, 8,
|
|
681
|
+
}, null, 8, ot)
|
|
662
682
|
])
|
|
663
683
|
]),
|
|
664
684
|
v("rect", {
|
|
@@ -668,7 +688,7 @@ const kl = ["id"], _l = {
|
|
|
668
688
|
height: e.value.style.layout.cells.height,
|
|
669
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,
|
|
670
690
|
fill: "url(#colorScaleHorizontal)"
|
|
671
|
-
}, null, 8,
|
|
691
|
+
}, null, 8, st),
|
|
672
692
|
v("text", {
|
|
673
693
|
x: t.value.left,
|
|
674
694
|
y: t.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
@@ -684,7 +704,7 @@ const kl = ["id"], _l = {
|
|
|
684
704
|
s: e.value.style.layout.dataLabels.suffix,
|
|
685
705
|
r: e.value.style.legend.roundingValue
|
|
686
706
|
})
|
|
687
|
-
)), 9,
|
|
707
|
+
)), 9, ut),
|
|
688
708
|
v("text", {
|
|
689
709
|
x: t.value.right,
|
|
690
710
|
y: t.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
@@ -700,32 +720,32 @@ const kl = ["id"], _l = {
|
|
|
700
720
|
s: e.value.style.layout.dataLabels.suffix,
|
|
701
721
|
r: e.value.style.legend.roundingValue
|
|
702
722
|
})
|
|
703
|
-
)), 9,
|
|
704
|
-
O.value !== null ? (
|
|
723
|
+
)), 9, nt),
|
|
724
|
+
O.value !== null ? (u(), i("line", {
|
|
705
725
|
key: 0,
|
|
706
|
-
stroke: r(de)(
|
|
726
|
+
stroke: r(de)(W.value.datapoint.color),
|
|
707
727
|
"stroke-width": "2",
|
|
708
|
-
x1:
|
|
709
|
-
x2:
|
|
728
|
+
x1: K.value,
|
|
729
|
+
x2: K.value,
|
|
710
730
|
y1: t.value.bottom + e.value.style.layout.cells.height,
|
|
711
731
|
y2: t.value.bottom + e.value.style.layout.cells.height * 2
|
|
712
|
-
}, null, 8,
|
|
713
|
-
O.value !== null ? (
|
|
732
|
+
}, null, 8, it)) : d("", !0),
|
|
733
|
+
O.value !== null ? (u(), i("path", {
|
|
714
734
|
key: 1,
|
|
715
735
|
fill: e.value.style.color,
|
|
716
736
|
stroke: "none",
|
|
717
|
-
d: `M ${
|
|
718
|
-
}, null, 8,
|
|
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)
|
|
719
739
|
])) : d("", !0),
|
|
720
740
|
m(l.$slots, "svg", { svg: $.value }, void 0, !0)
|
|
721
|
-
], 14,
|
|
722
|
-
l.$slots.watermark ? (
|
|
723
|
-
m(l.$slots, "watermark",
|
|
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)
|
|
724
744
|
])) : d("", !0),
|
|
725
|
-
l.$slots.source ? (
|
|
745
|
+
l.$slots.source ? (u(), i("div", yt, [
|
|
726
746
|
m(l.$slots, "source", {}, void 0, !0)
|
|
727
747
|
], 512)) : d("", !0),
|
|
728
|
-
|
|
748
|
+
Z.value ? d("", !0) : (u(), J(r(Re), {
|
|
729
749
|
key: 7,
|
|
730
750
|
config: {
|
|
731
751
|
type: "heatmap",
|
|
@@ -737,7 +757,7 @@ const kl = ["id"], _l = {
|
|
|
737
757
|
}
|
|
738
758
|
}
|
|
739
759
|
}, null, 8, ["config"])),
|
|
740
|
-
ve(r(
|
|
760
|
+
ve(r(Xe), {
|
|
741
761
|
show: C.value.showTooltip && ae.value,
|
|
742
762
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
743
763
|
color: e.value.style.tooltip.color,
|
|
@@ -748,20 +768,20 @@ const kl = ["id"], _l = {
|
|
|
748
768
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
749
769
|
position: e.value.style.tooltip.position,
|
|
750
770
|
offsetY: e.value.style.tooltip.offsetY,
|
|
751
|
-
parent:
|
|
771
|
+
parent: R.value,
|
|
752
772
|
content: oe.value,
|
|
753
|
-
isFullscreen:
|
|
773
|
+
isFullscreen: B.value,
|
|
754
774
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
755
775
|
}, {
|
|
756
776
|
"tooltip-before": A(() => [
|
|
757
|
-
m(l.$slots, "tooltip-before",
|
|
777
|
+
m(l.$slots, "tooltip-before", E(U({ ...W.value })), void 0, !0)
|
|
758
778
|
]),
|
|
759
779
|
"tooltip-after": A(() => [
|
|
760
|
-
m(l.$slots, "tooltip-after",
|
|
780
|
+
m(l.$slots, "tooltip-after", E(U({ ...W.value })), void 0, !0)
|
|
761
781
|
]),
|
|
762
782
|
_: 3
|
|
763
783
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
764
|
-
|
|
784
|
+
Z.value ? (u(), J(wl, {
|
|
765
785
|
key: 8,
|
|
766
786
|
hideDetails: "",
|
|
767
787
|
config: {
|
|
@@ -785,27 +805,27 @@ const kl = ["id"], _l = {
|
|
|
785
805
|
}, [
|
|
786
806
|
v("div", {
|
|
787
807
|
style: "width:100%;overflow-x:auto;padding-top:36px;position:relative",
|
|
788
|
-
class:
|
|
808
|
+
class: te({ "vue-ui-responsive": pe.value })
|
|
789
809
|
}, [
|
|
790
810
|
v("div", {
|
|
791
811
|
role: "button",
|
|
792
812
|
tabindex: "0",
|
|
793
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};`),
|
|
794
|
-
onClick:
|
|
795
|
-
onKeypress:
|
|
814
|
+
onClick: o[1] || (o[1] = (n) => C.value.showTable = !1),
|
|
815
|
+
onKeypress: o[2] || (o[2] = sl((n) => C.value.showTable = !1, ["enter"]))
|
|
796
816
|
}, [
|
|
797
|
-
ve(r(
|
|
817
|
+
ve(r(Fe), {
|
|
798
818
|
name: "close",
|
|
799
819
|
stroke: e.value.table.th.color,
|
|
800
820
|
"stroke-width": 2
|
|
801
821
|
}, null, 8, ["stroke"])
|
|
802
822
|
], 36),
|
|
803
|
-
v("table",
|
|
823
|
+
v("table", dt, [
|
|
804
824
|
v("caption", {
|
|
805
825
|
style: T(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
806
826
|
}, [
|
|
807
|
-
|
|
808
|
-
e.value.style.title.subtitle.text ? (
|
|
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)
|
|
809
829
|
], 4),
|
|
810
830
|
v("thead", null, [
|
|
811
831
|
v("tr", {
|
|
@@ -815,16 +835,16 @@ const kl = ["id"], _l = {
|
|
|
815
835
|
v("th", {
|
|
816
836
|
style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
817
837
|
}, null, 4),
|
|
818
|
-
(
|
|
838
|
+
(u(!0), i(_, null, z(Y.dataset, (n, s) => (u(), i("th", {
|
|
819
839
|
align: "right",
|
|
820
840
|
style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
821
841
|
}, x(n.name), 5))), 256))
|
|
822
842
|
], 4)
|
|
823
843
|
]),
|
|
824
844
|
v("tbody", null, [
|
|
825
|
-
(
|
|
845
|
+
(u(!0), i(_, null, z(p.value.xLabels, (n, s) => (u(), i("tr", {
|
|
826
846
|
role: "row",
|
|
827
|
-
class:
|
|
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 }),
|
|
828
848
|
style: T(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
829
849
|
}, [
|
|
830
850
|
v("td", {
|
|
@@ -832,15 +852,15 @@ const kl = ["id"], _l = {
|
|
|
832
852
|
class: "vue-ui-data-table__tbody__td",
|
|
833
853
|
style: T(`outline:${e.value.table.td.outline}`)
|
|
834
854
|
}, [
|
|
835
|
-
v("div",
|
|
836
|
-
], 12,
|
|
837
|
-
(
|
|
855
|
+
v("div", gt, x(n), 1)
|
|
856
|
+
], 12, ht),
|
|
857
|
+
(u(!0), i(_, null, z(Y.dataset, (c, h) => (u(), i("td", {
|
|
838
858
|
class: "vue-ui-data-table__tbody__td",
|
|
839
|
-
"data-cell":
|
|
859
|
+
"data-cell": Y.dataset[h].name,
|
|
840
860
|
style: T(`outline:${e.value.table.td.outline}`)
|
|
841
861
|
}, [
|
|
842
|
-
v("div",
|
|
843
|
-
], 12,
|
|
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))
|
|
844
864
|
], 6))), 256))
|
|
845
865
|
])
|
|
846
866
|
])
|
|
@@ -849,9 +869,9 @@ const kl = ["id"], _l = {
|
|
|
849
869
|
]),
|
|
850
870
|
_: 1
|
|
851
871
|
}, 8, ["config"])) : d("", !0)
|
|
852
|
-
], 46,
|
|
872
|
+
], 46, $l));
|
|
853
873
|
}
|
|
854
|
-
},
|
|
874
|
+
}, zt = /* @__PURE__ */ Cl(bt, [["__scopeId", "data-v-a3e4a488"]]);
|
|
855
875
|
export {
|
|
856
|
-
|
|
876
|
+
zt as default
|
|
857
877
|
};
|