vue-data-ui 2.16.5 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -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 B, computed as f, ref as b, watch as Me, shallowRef as ll, onMounted as tl, onBeforeUnmount as al, createElementBlock as i, openBlock as o, 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 D, guardReactiveProps as E, 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-pPGk-uhD.js";
|
|
3
|
+
import { u as Se } from "./useNestedProp-DjACxgdZ.js";
|
|
4
|
+
import { u as bl } from "./usePrinter-DDHcrl0A.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-CVnA550V.js";
|
|
8
|
+
import kl from "./Title-B-2bV0SW.js";
|
|
9
|
+
import _l from "./img-Y_hYz-ZC.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,90 +41,90 @@ const kl = ["id"], _l = {
|
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
43
|
emits: ["selectDatapoint"],
|
|
43
|
-
setup(U, { expose:
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
setup(U, { expose: Ne, emit: Ve }) {
|
|
45
|
+
el((l) => ({
|
|
46
|
+
"2baa6172": l.tdo
|
|
46
47
|
}));
|
|
47
|
-
const
|
|
48
|
-
|
|
48
|
+
const Fe = B(() => import("./BaseIcon-naqtCxVi.js")), Ie = B(() => import("./PackageVersion-5TR4ocqp.js")), Pe = B(() => import("./PenAndPaper-D6AqipIO.js")), Re = B(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Xe = B(() => import("./Tooltip-CoQnTnr-.js")), Be = B(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_heatmap: De } = il(), y = U, 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 Y = b(ye()),
|
|
53
|
+
const Y = b(ye()), G = 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 s = {};
|
|
63
|
+
return l.theme ? s = {
|
|
64
|
+
...Se({
|
|
65
|
+
userConfig: vl.vue_ui_heatmap[l.theme] || y.config,
|
|
65
66
|
defaultConfig: l
|
|
66
67
|
})
|
|
67
|
-
} :
|
|
68
|
+
} : s = l, y.config && yl(y.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? s.style.layout.dataLabels.xAxis.showOnlyAtModulo = y.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : s.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, s;
|
|
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
|
+
const { isPrinting: ke, isImaging: _e, generatePdf: Ce, generateImage: $e } = bl({
|
|
75
76
|
elementId: `heatmap__${Y.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
|
|
82
|
+
}), He = f(() => e.value.table.responsiveBreakpoint), R = ll(null);
|
|
83
|
+
function je() {
|
|
83
84
|
R.value && R.value.disconnect(), R.value = new ResizeObserver((l) => {
|
|
84
|
-
l.forEach((
|
|
85
|
-
pe.value =
|
|
85
|
+
l.forEach((s) => {
|
|
86
|
+
pe.value = s.contentRect.width < He.value;
|
|
86
87
|
});
|
|
87
88
|
}), R.value.observe(ge.value);
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
+
tl(ue), al(() => {
|
|
90
91
|
R.value && R.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, s = 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, u = 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
|
-
heightWithLegend:
|
|
100
|
-
width:
|
|
100
|
+
heightWithLegend: u,
|
|
101
|
+
width: s
|
|
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
|
-
const l = y.dataset.flatMap((
|
|
111
|
-
return l.reduce((
|
|
111
|
+
const l = y.dataset.flatMap((u) => u.values);
|
|
112
|
+
return l.reduce((u, n) => u + n, 0) / l.length;
|
|
112
113
|
}), a = f(() => ({
|
|
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), s = e.value.style.layout.dataLabels.xAxis.values, u = y.dataset.map((g) => g.values.reduce((w, re) => w + re, 0)), n = Math.max(...u), c = Math.min(...u), 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);
|
|
120
121
|
return {
|
|
121
|
-
yTotals:
|
|
122
|
-
const w = isNaN(g /
|
|
122
|
+
yTotals: u.map((g) => {
|
|
123
|
+
const w = isNaN(g / n) ? 0 : g / n;
|
|
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, n, 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: s.slice(0, V.value)
|
|
139
140
|
};
|
|
140
|
-
}),
|
|
141
|
-
|
|
141
|
+
}), j = f(() => (y.dataset.forEach((l, s) => {
|
|
142
|
+
dl({
|
|
142
143
|
datasetObject: l,
|
|
143
144
|
requiredAttributes: ["values"]
|
|
144
|
-
}).forEach((
|
|
145
|
-
|
|
145
|
+
}).forEach((u) => {
|
|
146
|
+
Oe({
|
|
146
147
|
componentName: "VueUiHeatmap",
|
|
147
148
|
type: "datasetSerieAttribute",
|
|
148
149
|
property: "values",
|
|
149
|
-
index:
|
|
150
|
+
index: s
|
|
150
151
|
});
|
|
151
152
|
});
|
|
152
153
|
}), y.dataset.map((l) => ({
|
|
153
154
|
...l,
|
|
154
|
-
temperatures: (l.values || []).map((
|
|
155
|
+
temperatures: (l.values || []).map((s, u) => s >= 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, s),
|
|
158
|
+
ratio: Math.abs(Math.abs(s - I.value) / Math.abs(L.value - I.value)) > 1 ? 1 : Math.abs(Math.abs(s - I.value) / Math.abs(L.value - I.value)),
|
|
159
|
+
value: s,
|
|
159
160
|
yAxisName: l.name,
|
|
160
|
-
xAxisName: p.value.xLabels[
|
|
161
|
+
xAxisName: p.value.xLabels[u],
|
|
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(s) / Math.abs(I.value)) > 1 ? 1 : Math.abs(1 - Math.abs(s) / 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, s),
|
|
167
|
+
value: s,
|
|
167
168
|
yAxisName: l.name,
|
|
168
|
-
xAxisName: p.value.xLabels[
|
|
169
|
+
xAxisName: p.value.xLabels[u],
|
|
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, s, u, n) {
|
|
174
|
+
H.value = { x: u, y: n };
|
|
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: s,
|
|
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: s,
|
|
187
|
+
series: j.value,
|
|
187
188
|
config: e.value
|
|
188
189
|
})) ? oe.value = w({
|
|
189
190
|
datapoint: l,
|
|
190
|
-
seriesIndex:
|
|
191
|
-
series:
|
|
191
|
+
seriesIndex: s,
|
|
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: s }
|
|
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,
|
|
@@ -230,74 +231,85 @@ const kl = ["id"], _l = {
|
|
|
230
231
|
);
|
|
231
232
|
}
|
|
232
233
|
f(() => {
|
|
233
|
-
const l = y.dataset.map((
|
|
234
|
-
name:
|
|
235
|
-
})),
|
|
236
|
-
return { head: l, body:
|
|
234
|
+
const l = y.dataset.map((u) => ({
|
|
235
|
+
name: u.name
|
|
236
|
+
})), s = y.dataset.map((u) => u.values);
|
|
237
|
+
return { head: l, body: s };
|
|
237
238
|
});
|
|
238
239
|
function Le(l = null) {
|
|
239
|
-
|
|
240
|
-
const
|
|
240
|
+
nl(() => {
|
|
241
|
+
const s = ["", ...y.dataset.map((h, k) => h.name)], u = [];
|
|
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
|
+
u.push(k);
|
|
246
247
|
}
|
|
247
|
-
const
|
|
248
|
-
l ? l(c) :
|
|
248
|
+
const n = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(u), c = hl(n);
|
|
249
|
+
l ? l(c) : gl({ csvContent: c, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
249
250
|
});
|
|
250
251
|
}
|
|
251
252
|
const X = b(!1);
|
|
252
|
-
function
|
|
253
|
+
function Te(l) {
|
|
253
254
|
X.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);
|
|
268
|
+
}
|
|
269
|
+
function Qe() {
|
|
270
|
+
return j.value;
|
|
271
|
+
}
|
|
272
|
+
async function Ze({ scale: l = 2 } = {}) {
|
|
273
|
+
if (!G.value) return;
|
|
274
|
+
const { imageUri: s, base64: u } = await _l({ domElement: G.value, base64: !0, img: !0, scale: l });
|
|
275
|
+
return { imageUri: s, base64: u };
|
|
267
276
|
}
|
|
268
|
-
return
|
|
277
|
+
return Ne({
|
|
278
|
+
getData: Qe,
|
|
279
|
+
getImage: Ze,
|
|
269
280
|
generatePdf: Ce,
|
|
270
281
|
generateCsv: Le,
|
|
271
282
|
generateImage: $e,
|
|
272
|
-
toggleTable:
|
|
273
|
-
toggleTooltip:
|
|
274
|
-
toggleAnnotator: ie
|
|
275
|
-
|
|
283
|
+
toggleTable: Ae,
|
|
284
|
+
toggleTooltip: ze,
|
|
285
|
+
toggleAnnotator: ie,
|
|
286
|
+
toggleFullscreen: Te
|
|
287
|
+
}), (l, s) => (o(), i("div", {
|
|
276
288
|
ref_key: "heatmapChart",
|
|
277
|
-
ref:
|
|
278
|
-
class:
|
|
289
|
+
ref: G,
|
|
290
|
+
class: te(`vue-ui-heatmap ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
279
291
|
style: T(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor}`),
|
|
280
292
|
id: `heatmap__${Y.value}`,
|
|
281
|
-
onMouseenter:
|
|
282
|
-
onMouseleave:
|
|
293
|
+
onMouseenter: s[3] || (s[3] = () => r(be)(!0)),
|
|
294
|
+
onMouseleave: s[4] || (s[4] = () => r(be)(!1))
|
|
283
295
|
}, [
|
|
284
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
296
|
+
e.value.userOptions.buttons.annotator ? (o(), J(r(Pe), {
|
|
285
297
|
key: 0,
|
|
286
298
|
svgRef: r(xe),
|
|
287
299
|
backgroundColor: e.value.style.backgroundColor,
|
|
288
300
|
color: e.value.style.color,
|
|
289
|
-
active:
|
|
301
|
+
active: le.value,
|
|
290
302
|
onClose: ie
|
|
291
303
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
292
|
-
|
|
304
|
+
Ge.value ? (o(), i("div", {
|
|
293
305
|
key: 1,
|
|
294
306
|
ref_key: "noTitle",
|
|
295
|
-
ref:
|
|
307
|
+
ref: Ye,
|
|
296
308
|
class: "vue-data-ui-no-title-space",
|
|
297
309
|
style: "height:36px; width: 100%;background:transparent"
|
|
298
310
|
}, null, 512)) : d("", !0),
|
|
299
|
-
e.value.style.title.text ? (o(), i("div",
|
|
300
|
-
(o(),
|
|
311
|
+
e.value.style.title.text ? (o(), i("div", Ll, [
|
|
312
|
+
(o(), J(kl, {
|
|
301
313
|
key: `title_${fe.value}`,
|
|
302
314
|
config: {
|
|
303
315
|
title: {
|
|
@@ -311,9 +323,9 @@ const kl = ["id"], _l = {
|
|
|
311
323
|
}
|
|
312
324
|
}, null, 8, ["config"]))
|
|
313
325
|
])) : d("", !0),
|
|
314
|
-
e.value.userOptions.show &&
|
|
326
|
+
e.value.userOptions.show && Z.value && (r(me) || r(se)) ? (o(), J(r(Be), {
|
|
315
327
|
ref_key: "details",
|
|
316
|
-
ref:
|
|
328
|
+
ref: Ue,
|
|
317
329
|
key: `user_options_${he.value}`,
|
|
318
330
|
backgroundColor: e.value.style.backgroundColor,
|
|
319
331
|
color: e.value.style.color,
|
|
@@ -329,26 +341,27 @@ const kl = ["id"], _l = {
|
|
|
329
341
|
isFullscreen: X.value,
|
|
330
342
|
isTooltip: C.value.showTooltip,
|
|
331
343
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
332
|
-
chartElement:
|
|
344
|
+
chartElement: G.value,
|
|
333
345
|
position: e.value.userOptions.position,
|
|
334
346
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
335
|
-
isAnnotation:
|
|
347
|
+
isAnnotation: le.value,
|
|
336
348
|
callbacks: e.value.userOptions.callbacks,
|
|
337
|
-
|
|
349
|
+
printScale: e.value.userOptions.print.scale,
|
|
350
|
+
onToggleFullscreen: Te,
|
|
338
351
|
onGeneratePdf: r(Ce),
|
|
339
352
|
onGenerateCsv: Le,
|
|
340
353
|
onGenerateImage: r($e),
|
|
341
|
-
onToggleTable:
|
|
342
|
-
onToggleTooltip:
|
|
354
|
+
onToggleTable: Ae,
|
|
355
|
+
onToggleTooltip: ze,
|
|
343
356
|
onToggleAnnotator: ie,
|
|
344
357
|
style: T({
|
|
345
358
|
visibility: r(me) ? r(se) ? "visible" : "hidden" : "visible"
|
|
346
359
|
})
|
|
347
|
-
},
|
|
360
|
+
}, ol({ _: 2 }, [
|
|
348
361
|
l.$slots.menuIcon ? {
|
|
349
362
|
name: "menuIcon",
|
|
350
|
-
fn: A(({ isOpen:
|
|
351
|
-
m(l.$slots, "menuIcon", D(E({ isOpen:
|
|
363
|
+
fn: A(({ isOpen: u, color: n }) => [
|
|
364
|
+
m(l.$slots, "menuIcon", D(E({ isOpen: u, color: n })), void 0, !0)
|
|
352
365
|
]),
|
|
353
366
|
key: "0"
|
|
354
367
|
} : void 0,
|
|
@@ -389,29 +402,29 @@ const kl = ["id"], _l = {
|
|
|
389
402
|
} : void 0,
|
|
390
403
|
l.$slots.optionFullscreen ? {
|
|
391
404
|
name: "optionFullscreen",
|
|
392
|
-
fn: A(({ toggleFullscreen:
|
|
393
|
-
m(l.$slots, "optionFullscreen", D(E({ toggleFullscreen:
|
|
405
|
+
fn: A(({ toggleFullscreen: u, isFullscreen: n }) => [
|
|
406
|
+
m(l.$slots, "optionFullscreen", D(E({ toggleFullscreen: u, isFullscreen: n })), void 0, !0)
|
|
394
407
|
]),
|
|
395
408
|
key: "6"
|
|
396
409
|
} : void 0,
|
|
397
410
|
l.$slots.optionAnnotator ? {
|
|
398
411
|
name: "optionAnnotator",
|
|
399
|
-
fn: A(({ toggleAnnotator:
|
|
400
|
-
m(l.$slots, "optionAnnotator", D(E({ toggleAnnotator:
|
|
412
|
+
fn: A(({ toggleAnnotator: u, isAnnotator: n }) => [
|
|
413
|
+
m(l.$slots, "optionAnnotator", D(E({ toggleAnnotator: u, isAnnotator: n })), void 0, !0)
|
|
401
414
|
]),
|
|
402
415
|
key: "7"
|
|
403
416
|
} : 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
|
-
|
|
417
|
+
]), 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),
|
|
418
|
+
Z.value ? (o(), i("svg", {
|
|
406
419
|
key: 4,
|
|
407
420
|
ref_key: "svgRef",
|
|
408
421
|
ref: xe,
|
|
409
|
-
xmlns: r(
|
|
410
|
-
class:
|
|
422
|
+
xmlns: r(cl),
|
|
423
|
+
class: te({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
|
|
411
424
|
viewBox: `0 0 ${$.value.width} ${$.value.heightWithLegend}`,
|
|
412
425
|
style: T(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
413
426
|
}, [
|
|
414
|
-
ve(r(
|
|
427
|
+
ve(r(Ie)),
|
|
415
428
|
l.$slots["chart-background"] ? (o(), i("foreignObject", {
|
|
416
429
|
key: 0,
|
|
417
430
|
x: 0,
|
|
@@ -423,47 +436,47 @@ const kl = ["id"], _l = {
|
|
|
423
436
|
}
|
|
424
437
|
}, [
|
|
425
438
|
m(l.$slots, "chart-background", {}, void 0, !0)
|
|
426
|
-
], 8,
|
|
439
|
+
], 8, Al)) : d("", !0),
|
|
427
440
|
e.value.style.layout.cells.columnTotal.color.show ? (o(), i(_, { key: 1 }, [
|
|
428
|
-
(o(!0), i(_, null, z(p.value.xTotals, (
|
|
429
|
-
x: t.value.left + a.value.width *
|
|
441
|
+
(o(!0), i(_, null, z(p.value.xTotals, (u, n) => (o(), i("rect", {
|
|
442
|
+
x: t.value.left + a.value.width * n + 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
443
|
y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
|
|
431
444
|
height: a.value.height / 3,
|
|
432
445
|
width: a.value.width - e.value.style.layout.cells.spacing,
|
|
433
446
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
434
447
|
stroke: e.value.style.backgroundColor,
|
|
435
448
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
436
|
-
}, null, 8,
|
|
437
|
-
(o(!0), i(_, null, z(p.value.xTotals, (
|
|
438
|
-
x: t.value.left + a.value.width *
|
|
449
|
+
}, null, 8, zl))), 256)),
|
|
450
|
+
(o(!0), i(_, null, z(p.value.xTotals, (u, n) => (o(), i("rect", {
|
|
451
|
+
x: t.value.left + a.value.width * n + 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
452
|
y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
|
|
440
453
|
height: a.value.height / 3,
|
|
441
454
|
width: a.value.width - e.value.style.layout.cells.spacing,
|
|
442
|
-
fill:
|
|
455
|
+
fill: u.color,
|
|
443
456
|
stroke: e.value.style.backgroundColor,
|
|
444
457
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
445
|
-
}, null, 8,
|
|
458
|
+
}, null, 8, Ml))), 256))
|
|
446
459
|
], 64)) : d("", !0),
|
|
447
|
-
(o(!0), i(_, null, z(
|
|
448
|
-
(o(!0), i(_, null, z(
|
|
460
|
+
(o(!0), i(_, null, z(j.value, (u, n) => (o(), i("g", null, [
|
|
461
|
+
(o(!0), i(_, null, z(u.temperatures, (c, h) => (o(), i("g", null, [
|
|
449
462
|
v("rect", {
|
|
450
463
|
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
|
-
y: t.value.top + a.value.height *
|
|
464
|
+
y: t.value.top + a.value.height * n + e.value.style.layout.cells.spacing / 2,
|
|
452
465
|
width: a.value.width - e.value.style.layout.cells.spacing,
|
|
453
466
|
height: a.value.height - e.value.style.layout.cells.spacing,
|
|
454
467
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
455
468
|
stroke: e.value.style.backgroundColor,
|
|
456
469
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
457
|
-
}, null, 8,
|
|
470
|
+
}, null, 8, Ol),
|
|
458
471
|
v("rect", {
|
|
459
472
|
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
|
-
y: t.value.top + a.value.height *
|
|
473
|
+
y: t.value.top + a.value.height * n + e.value.style.layout.cells.spacing / 2,
|
|
461
474
|
width: a.value.width - e.value.style.layout.cells.spacing,
|
|
462
475
|
height: a.value.height - e.value.style.layout.cells.spacing,
|
|
463
476
|
fill: c.color,
|
|
464
477
|
stroke: e.value.style.backgroundColor,
|
|
465
478
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
466
|
-
}, null, 8,
|
|
479
|
+
}, null, 8, Sl),
|
|
467
480
|
e.value.style.layout.cells.value.show ? (o(), i("text", {
|
|
468
481
|
key: 0,
|
|
469
482
|
"text-anchor": "middle",
|
|
@@ -471,7 +484,7 @@ const kl = ["id"], _l = {
|
|
|
471
484
|
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
472
485
|
fill: r(de)(c.color),
|
|
473
486
|
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),
|
|
474
|
-
y: t.value.top + a.value.height *
|
|
487
|
+
y: t.value.top + a.value.height * n + a.value.height / 2 + e.value.style.layout.cells.value.fontSize / 3
|
|
475
488
|
}, x(r(S)(
|
|
476
489
|
e.value.style.layout.cells.value.formatter,
|
|
477
490
|
c.value,
|
|
@@ -482,100 +495,100 @@ const kl = ["id"], _l = {
|
|
|
482
495
|
r: e.value.style.layout.cells.value.roundingValue
|
|
483
496
|
}),
|
|
484
497
|
{ datapoint: c }
|
|
485
|
-
)), 9,
|
|
498
|
+
)), 9, Nl)) : d("", !0)
|
|
486
499
|
]))), 256)),
|
|
487
|
-
(o(!0), i(_, null, z(
|
|
500
|
+
(o(!0), i(_, null, z(u.temperatures, (c, h) => (o(), i("g", null, [
|
|
488
501
|
v("rect", {
|
|
489
502
|
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
|
-
y: t.value.top + a.value.height *
|
|
503
|
+
y: t.value.top + a.value.height * n,
|
|
491
504
|
width: a.value.width,
|
|
492
505
|
height: a.value.height,
|
|
493
506
|
fill: "transparent",
|
|
494
507
|
stroke: "none",
|
|
495
|
-
onMouseover: (k) =>
|
|
496
|
-
onMouseout:
|
|
497
|
-
ae.value = !1, ce.value = void 0, O.value = null,
|
|
508
|
+
onMouseover: (k) => We(c, n, t.value.left + a.value.width * h, t.value.top + a.value.height * n),
|
|
509
|
+
onMouseout: s[0] || (s[0] = (k) => {
|
|
510
|
+
ae.value = !1, ce.value = void 0, O.value = null, H.value = null;
|
|
498
511
|
}),
|
|
499
512
|
onClick: () => Je(c)
|
|
500
|
-
}, null, 40,
|
|
513
|
+
}, null, 40, Vl)
|
|
501
514
|
]))), 256)),
|
|
502
|
-
e.value.style.layout.dataLabels.yAxis.show ? (o(), i("g",
|
|
515
|
+
e.value.style.layout.dataLabels.yAxis.show ? (o(), i("g", Fl, [
|
|
503
516
|
v("text", {
|
|
504
517
|
class: "vue-ui-heatmap-row-name",
|
|
505
518
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
506
519
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
507
520
|
x: t.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
|
|
508
|
-
y: t.value.top + a.value.height *
|
|
521
|
+
y: t.value.top + a.value.height * n + 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
522
|
"text-anchor": "end",
|
|
510
523
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
511
|
-
}, x(p.value.yLabels[
|
|
524
|
+
}, x(p.value.yLabels[n]), 9, Il),
|
|
512
525
|
e.value.style.layout.cells.rowTotal.value.show ? (o(), i("text", {
|
|
513
526
|
key: 0,
|
|
514
527
|
class: "vue-ui-heatmap-row-total",
|
|
515
528
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
516
529
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
517
530
|
x: t.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
|
|
518
|
-
y: t.value.top + a.value.height *
|
|
531
|
+
y: t.value.top + a.value.height * n + a.value.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize + e.value.style.layout.dataLabels.yAxis.offsetY,
|
|
519
532
|
"text-anchor": "end",
|
|
520
533
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
521
|
-
}, x(
|
|
534
|
+
}, x(qe(n)), 9, Pl)) : d("", !0)
|
|
522
535
|
])) : d("", !0),
|
|
523
|
-
e.value.style.layout.cells.rowTotal.color.show ? (o(), i("g",
|
|
536
|
+
e.value.style.layout.cells.rowTotal.color.show ? (o(), i("g", Rl, [
|
|
524
537
|
v("rect", {
|
|
525
538
|
x: t.value.left,
|
|
526
|
-
y: t.value.top + a.value.height *
|
|
539
|
+
y: t.value.top + a.value.height * n,
|
|
527
540
|
width: a.value.height / 3,
|
|
528
541
|
height: a.value.height - e.value.style.layout.cells.spacing,
|
|
529
542
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
530
543
|
stroke: e.value.style.backgroundColor,
|
|
531
544
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
532
|
-
}, null, 8,
|
|
545
|
+
}, null, 8, Xl),
|
|
533
546
|
v("rect", {
|
|
534
547
|
x: t.value.left,
|
|
535
|
-
y: t.value.top + a.value.height *
|
|
548
|
+
y: t.value.top + a.value.height * n + e.value.style.layout.cells.spacing / 2,
|
|
536
549
|
width: a.value.height / 3,
|
|
537
550
|
height: a.value.height - e.value.style.layout.cells.spacing,
|
|
538
|
-
fill: p.value.yTotals[
|
|
551
|
+
fill: p.value.yTotals[n].color,
|
|
539
552
|
stroke: e.value.style.backgroundColor,
|
|
540
553
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
541
|
-
}, null, 8,
|
|
554
|
+
}, null, 8, Bl)
|
|
542
555
|
])) : d("", !0)
|
|
543
556
|
]))), 256)),
|
|
544
|
-
e.value.style.layout.dataLabels.xAxis.show ? (o(), i("g",
|
|
545
|
-
(o(!0), i(_, null, z(p.value.xLabels, (
|
|
546
|
-
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo &&
|
|
557
|
+
e.value.style.layout.dataLabels.xAxis.show ? (o(), i("g", Dl, [
|
|
558
|
+
(o(!0), i(_, null, z(p.value.xLabels, (u, n) => (o(), i(_, null, [
|
|
559
|
+
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && n % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (o(), i("text", {
|
|
547
560
|
key: 0,
|
|
548
561
|
class: "vue-ui-heatmap-col-name",
|
|
549
562
|
"text-anchor": e.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
550
563
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
551
564
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
552
565
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
553
|
-
transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / p.value.xLabels.length *
|
|
554
|
-
}, x(
|
|
566
|
+
transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / p.value.xLabels.length * n + 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})`
|
|
567
|
+
}, x(u), 9, El)) : d("", !0)
|
|
555
568
|
], 64))), 256))
|
|
556
569
|
])) : d("", !0),
|
|
557
|
-
e.value.style.layout.cells.columnTotal.value.show ? (o(!0), i(_, { key: 3 }, z(p.value.xLabels, (
|
|
570
|
+
e.value.style.layout.cells.columnTotal.value.show ? (o(!0), i(_, { key: 3 }, z(p.value.xLabels, (u, n) => (o(), i("text", {
|
|
558
571
|
class: "vue-ui-heatmap-col-total",
|
|
559
572
|
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
560
573
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
561
574
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
562
575
|
"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 *
|
|
564
|
-
}, x(
|
|
565
|
-
|
|
576
|
+
transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / p.value.xLabels.length * n + 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) * (U.dataset.length + 1) + e.value.style.layout.cells.columnTotal.value.offsetY}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
|
|
577
|
+
}, x(Ke(n)), 9, Ul))), 256)) : d("", !0),
|
|
578
|
+
H.value ? (o(), i("g", Yl, [
|
|
566
579
|
v("rect", {
|
|
567
580
|
style: { "pointer-events": "none" },
|
|
568
|
-
x:
|
|
569
|
-
y:
|
|
581
|
+
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),
|
|
582
|
+
y: H.value.y - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
|
|
570
583
|
width: a.value.width - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
571
584
|
height: a.value.height - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
572
585
|
fill: "transparent",
|
|
573
586
|
stroke: e.value.style.layout.cells.selected.color,
|
|
574
587
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
575
588
|
rx: 1
|
|
576
|
-
}, null, 8,
|
|
589
|
+
}, null, 8, Gl)
|
|
577
590
|
])) : d("", !0),
|
|
578
|
-
e.value.style.legend.show &&
|
|
591
|
+
e.value.style.legend.show && ee.value === "right" ? (o(), i("g", Hl, [
|
|
579
592
|
v("defs", null, [
|
|
580
593
|
v("linearGradient", {
|
|
581
594
|
id: `colorScaleVertical_${Y.value}`,
|
|
@@ -585,12 +598,12 @@ const kl = ["id"], _l = {
|
|
|
585
598
|
v("stop", {
|
|
586
599
|
offset: "0%",
|
|
587
600
|
"stop-color": e.value.style.layout.cells.colors.hot
|
|
588
|
-
}, null, 8,
|
|
601
|
+
}, null, 8, Wl),
|
|
589
602
|
v("stop", {
|
|
590
603
|
offset: "100%",
|
|
591
604
|
"stop-color": e.value.style.layout.cells.colors.cold
|
|
592
|
-
}, null, 8,
|
|
593
|
-
], 8,
|
|
605
|
+
}, null, 8, ql)
|
|
606
|
+
], 8, jl)
|
|
594
607
|
]),
|
|
595
608
|
v("text", {
|
|
596
609
|
x: t.value.right + 36 + 18,
|
|
@@ -607,7 +620,7 @@ const kl = ["id"], _l = {
|
|
|
607
620
|
s: e.value.style.layout.dataLabels.suffix,
|
|
608
621
|
r: e.value.style.legend.roundingValue
|
|
609
622
|
})
|
|
610
|
-
)), 9,
|
|
623
|
+
)), 9, Kl),
|
|
611
624
|
v("rect", {
|
|
612
625
|
x: t.value.right + 36,
|
|
613
626
|
y: t.value.top,
|
|
@@ -615,7 +628,7 @@ const kl = ["id"], _l = {
|
|
|
615
628
|
height: ne.value,
|
|
616
629
|
rx: e.value.style.legend.scaleBorderRadius,
|
|
617
630
|
fill: `url(#colorScaleVertical_${Y.value})`
|
|
618
|
-
}, null, 8,
|
|
631
|
+
}, null, 8, Jl),
|
|
619
632
|
v("text", {
|
|
620
633
|
x: t.value.right + 36 + 18,
|
|
621
634
|
y: t.value.top + ne.value + e.value.style.legend.fontSize * 2.5,
|
|
@@ -631,34 +644,34 @@ const kl = ["id"], _l = {
|
|
|
631
644
|
s: e.value.style.layout.dataLabels.suffix,
|
|
632
645
|
r: e.value.style.legend.roundingValue
|
|
633
646
|
})
|
|
634
|
-
)), 9,
|
|
647
|
+
)), 9, Ql),
|
|
635
648
|
O.value !== null ? (o(), i("line", {
|
|
636
649
|
key: 0,
|
|
637
|
-
stroke: r(de)(
|
|
650
|
+
stroke: r(de)(W.value.datapoint.color),
|
|
638
651
|
"stroke-width": "2",
|
|
639
652
|
x1: t.value.right + 36,
|
|
640
653
|
x2: t.value.right + 72,
|
|
641
|
-
y1:
|
|
642
|
-
y2:
|
|
643
|
-
}, null, 8,
|
|
654
|
+
y1: q.value,
|
|
655
|
+
y2: q.value
|
|
656
|
+
}, null, 8, Zl)) : d("", !0),
|
|
644
657
|
O.value !== null ? (o(), i("path", {
|
|
645
658
|
key: 1,
|
|
646
659
|
fill: e.value.style.color,
|
|
647
660
|
stroke: "none",
|
|
648
|
-
d: `M ${t.value.right + 36},${
|
|
649
|
-
}, null, 8,
|
|
661
|
+
d: `M ${t.value.right + 36},${q.value} ${t.value.right + 26},${q.value - 8} ${t.value.right + 26},${q.value + 8}z`
|
|
662
|
+
}, null, 8, et)) : d("", !0)
|
|
650
663
|
])) : d("", !0),
|
|
651
|
-
e.value.style.legend.show &&
|
|
664
|
+
e.value.style.legend.show && ee.value === "bottom" ? (o(), i("g", lt, [
|
|
652
665
|
v("defs", null, [
|
|
653
|
-
v("linearGradient",
|
|
666
|
+
v("linearGradient", tt, [
|
|
654
667
|
v("stop", {
|
|
655
668
|
offset: "0%",
|
|
656
669
|
"stop-color": e.value.style.layout.cells.colors.cold
|
|
657
|
-
}, null, 8,
|
|
670
|
+
}, null, 8, at),
|
|
658
671
|
v("stop", {
|
|
659
672
|
offset: "100%",
|
|
660
673
|
"stop-color": e.value.style.layout.cells.colors.hot
|
|
661
|
-
}, null, 8,
|
|
674
|
+
}, null, 8, ot)
|
|
662
675
|
])
|
|
663
676
|
]),
|
|
664
677
|
v("rect", {
|
|
@@ -668,7 +681,7 @@ const kl = ["id"], _l = {
|
|
|
668
681
|
height: e.value.style.layout.cells.height,
|
|
669
682
|
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
683
|
fill: "url(#colorScaleHorizontal)"
|
|
671
|
-
}, null, 8,
|
|
684
|
+
}, null, 8, st),
|
|
672
685
|
v("text", {
|
|
673
686
|
x: t.value.left,
|
|
674
687
|
y: t.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
@@ -684,7 +697,7 @@ const kl = ["id"], _l = {
|
|
|
684
697
|
s: e.value.style.layout.dataLabels.suffix,
|
|
685
698
|
r: e.value.style.legend.roundingValue
|
|
686
699
|
})
|
|
687
|
-
)), 9,
|
|
700
|
+
)), 9, ut),
|
|
688
701
|
v("text", {
|
|
689
702
|
x: t.value.right,
|
|
690
703
|
y: t.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
@@ -700,32 +713,32 @@ const kl = ["id"], _l = {
|
|
|
700
713
|
s: e.value.style.layout.dataLabels.suffix,
|
|
701
714
|
r: e.value.style.legend.roundingValue
|
|
702
715
|
})
|
|
703
|
-
)), 9,
|
|
716
|
+
)), 9, nt),
|
|
704
717
|
O.value !== null ? (o(), i("line", {
|
|
705
718
|
key: 0,
|
|
706
|
-
stroke: r(de)(
|
|
719
|
+
stroke: r(de)(W.value.datapoint.color),
|
|
707
720
|
"stroke-width": "2",
|
|
708
|
-
x1:
|
|
709
|
-
x2:
|
|
721
|
+
x1: K.value,
|
|
722
|
+
x2: K.value,
|
|
710
723
|
y1: t.value.bottom + e.value.style.layout.cells.height,
|
|
711
724
|
y2: t.value.bottom + e.value.style.layout.cells.height * 2
|
|
712
|
-
}, null, 8,
|
|
725
|
+
}, null, 8, it)) : d("", !0),
|
|
713
726
|
O.value !== null ? (o(), i("path", {
|
|
714
727
|
key: 1,
|
|
715
728
|
fill: e.value.style.color,
|
|
716
729
|
stroke: "none",
|
|
717
|
-
d: `M ${
|
|
718
|
-
}, null, 8,
|
|
730
|
+
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`
|
|
731
|
+
}, null, 8, rt)) : d("", !0)
|
|
719
732
|
])) : d("", !0),
|
|
720
733
|
m(l.$slots, "svg", { svg: $.value }, void 0, !0)
|
|
721
|
-
], 14,
|
|
722
|
-
l.$slots.watermark ? (o(), i("div",
|
|
734
|
+
], 14, Tl)) : d("", !0),
|
|
735
|
+
l.$slots.watermark ? (o(), i("div", vt, [
|
|
723
736
|
m(l.$slots, "watermark", D(E({ isPrinting: r(ke) || r(_e) })), void 0, !0)
|
|
724
737
|
])) : d("", !0),
|
|
725
|
-
l.$slots.source ? (o(), i("div",
|
|
738
|
+
l.$slots.source ? (o(), i("div", yt, [
|
|
726
739
|
m(l.$slots, "source", {}, void 0, !0)
|
|
727
740
|
], 512)) : d("", !0),
|
|
728
|
-
|
|
741
|
+
Z.value ? d("", !0) : (o(), J(r(Re), {
|
|
729
742
|
key: 7,
|
|
730
743
|
config: {
|
|
731
744
|
type: "heatmap",
|
|
@@ -737,7 +750,7 @@ const kl = ["id"], _l = {
|
|
|
737
750
|
}
|
|
738
751
|
}
|
|
739
752
|
}, null, 8, ["config"])),
|
|
740
|
-
ve(r(
|
|
753
|
+
ve(r(Xe), {
|
|
741
754
|
show: C.value.showTooltip && ae.value,
|
|
742
755
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
743
756
|
color: e.value.style.tooltip.color,
|
|
@@ -748,20 +761,20 @@ const kl = ["id"], _l = {
|
|
|
748
761
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
749
762
|
position: e.value.style.tooltip.position,
|
|
750
763
|
offsetY: e.value.style.tooltip.offsetY,
|
|
751
|
-
parent:
|
|
764
|
+
parent: G.value,
|
|
752
765
|
content: oe.value,
|
|
753
766
|
isFullscreen: X.value,
|
|
754
767
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
755
768
|
}, {
|
|
756
769
|
"tooltip-before": A(() => [
|
|
757
|
-
m(l.$slots, "tooltip-before", D(E({ ...
|
|
770
|
+
m(l.$slots, "tooltip-before", D(E({ ...W.value })), void 0, !0)
|
|
758
771
|
]),
|
|
759
772
|
"tooltip-after": A(() => [
|
|
760
|
-
m(l.$slots, "tooltip-after", D(E({ ...
|
|
773
|
+
m(l.$slots, "tooltip-after", D(E({ ...W.value })), void 0, !0)
|
|
761
774
|
]),
|
|
762
775
|
_: 3
|
|
763
776
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
764
|
-
|
|
777
|
+
Z.value ? (o(), J(wl, {
|
|
765
778
|
key: 8,
|
|
766
779
|
hideDetails: "",
|
|
767
780
|
config: {
|
|
@@ -785,27 +798,27 @@ const kl = ["id"], _l = {
|
|
|
785
798
|
}, [
|
|
786
799
|
v("div", {
|
|
787
800
|
style: "width:100%;overflow-x:auto;padding-top:36px;position:relative",
|
|
788
|
-
class:
|
|
801
|
+
class: te({ "vue-ui-responsive": pe.value })
|
|
789
802
|
}, [
|
|
790
803
|
v("div", {
|
|
791
804
|
role: "button",
|
|
792
805
|
tabindex: "0",
|
|
793
806
|
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:
|
|
807
|
+
onClick: s[1] || (s[1] = (u) => C.value.showTable = !1),
|
|
808
|
+
onKeypress: s[2] || (s[2] = sl((u) => C.value.showTable = !1, ["enter"]))
|
|
796
809
|
}, [
|
|
797
|
-
ve(r(
|
|
810
|
+
ve(r(Fe), {
|
|
798
811
|
name: "close",
|
|
799
812
|
stroke: e.value.table.th.color,
|
|
800
813
|
"stroke-width": 2
|
|
801
814
|
}, null, 8, ["stroke"])
|
|
802
815
|
], 36),
|
|
803
|
-
v("table",
|
|
816
|
+
v("table", dt, [
|
|
804
817
|
v("caption", {
|
|
805
818
|
style: T(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
806
819
|
}, [
|
|
807
|
-
|
|
808
|
-
e.value.style.title.subtitle.text ? (o(), i("span",
|
|
820
|
+
ul(x(e.value.style.title.text) + " ", 1),
|
|
821
|
+
e.value.style.title.subtitle.text ? (o(), i("span", ct, x(e.value.style.title.subtitle.text), 1)) : d("", !0)
|
|
809
822
|
], 4),
|
|
810
823
|
v("thead", null, [
|
|
811
824
|
v("tr", {
|
|
@@ -815,16 +828,16 @@ const kl = ["id"], _l = {
|
|
|
815
828
|
v("th", {
|
|
816
829
|
style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
817
830
|
}, null, 4),
|
|
818
|
-
(o(!0), i(_, null, z(U.dataset, (
|
|
831
|
+
(o(!0), i(_, null, z(U.dataset, (u, n) => (o(), i("th", {
|
|
819
832
|
align: "right",
|
|
820
833
|
style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
821
|
-
}, x(
|
|
834
|
+
}, x(u.name), 5))), 256))
|
|
822
835
|
], 4)
|
|
823
836
|
]),
|
|
824
837
|
v("tbody", null, [
|
|
825
|
-
(o(!0), i(_, null, z(p.value.xLabels, (
|
|
838
|
+
(o(!0), i(_, null, z(p.value.xLabels, (u, n) => (o(), i("tr", {
|
|
826
839
|
role: "row",
|
|
827
|
-
class:
|
|
840
|
+
class: te({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": n % 2 === 0, "vue-ui-data-table__tbody__row-odd": n % 2 !== 0 }),
|
|
828
841
|
style: T(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
829
842
|
}, [
|
|
830
843
|
v("td", {
|
|
@@ -832,15 +845,15 @@ const kl = ["id"], _l = {
|
|
|
832
845
|
class: "vue-ui-data-table__tbody__td",
|
|
833
846
|
style: T(`outline:${e.value.table.td.outline}`)
|
|
834
847
|
}, [
|
|
835
|
-
v("div",
|
|
836
|
-
], 12,
|
|
848
|
+
v("div", gt, x(u), 1)
|
|
849
|
+
], 12, ht),
|
|
837
850
|
(o(!0), i(_, null, z(U.dataset, (c, h) => (o(), i("td", {
|
|
838
851
|
class: "vue-ui-data-table__tbody__td",
|
|
839
852
|
"data-cell": U.dataset[h].name,
|
|
840
853
|
style: T(`outline:${e.value.table.td.outline}`)
|
|
841
854
|
}, [
|
|
842
|
-
v("div",
|
|
843
|
-
], 12,
|
|
855
|
+
v("div", ft, x(isNaN(c.values[n]) ? "-" : r(M)({ p: e.value.style.layout.dataLabels.prefix, v: c.values[n], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
856
|
+
], 12, pt))), 256))
|
|
844
857
|
], 6))), 256))
|
|
845
858
|
])
|
|
846
859
|
])
|
|
@@ -849,9 +862,9 @@ const kl = ["id"], _l = {
|
|
|
849
862
|
]),
|
|
850
863
|
_: 1
|
|
851
864
|
}, 8, ["config"])) : d("", !0)
|
|
852
|
-
], 46,
|
|
865
|
+
], 46, $l));
|
|
853
866
|
}
|
|
854
|
-
},
|
|
867
|
+
}, zt = /* @__PURE__ */ Cl(bt, [["__scopeId", "data-v-c11e7656"]]);
|
|
855
868
|
export {
|
|
856
|
-
|
|
869
|
+
zt as default
|
|
857
870
|
};
|