vue-data-ui 2.12.8-beta.3 → 2.12.8-beta.4
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 +10 -4
- package/dist/{Arrow-kQyQXUUg.js → Arrow-XoY1VXNf.js} +1 -1
- package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
- package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-d4dmqhkb.js} +1 -1
- package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-B3v0IhDO.js} +2 -2
- package/dist/{DataTable-BBqbcutV.js → DataTable-CmbjnjRg.js} +2 -2
- package/dist/{Legend-DRqzYrP9.js → Legend-YPYnzTBz.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
- package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-OcbP0WH2.js} +1 -1
- package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BgPXmpGI.js} +3 -3
- package/dist/{Shape-DEWxbZ-l.js → Shape-WvXjwML_.js} +1 -1
- package/dist/{Slicer-o6jJH5bw.js → Slicer-CaMHCF_p.js} +2 -2
- package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BTLad6y3.js} +1 -1
- package/dist/{Title-apr_T9tg.js → Title-CJcZXNtK.js} +1 -1
- package/dist/{Tooltip-BuHsMAfp.js → Tooltip-dXp8FaUj.js} +1 -1
- package/dist/{UserOptions-OVNxxnq5.js → UserOptions-Cs7JW3dK.js} +16 -11
- package/dist/dom-to-png-DGfv21rX.js +247 -0
- package/dist/img-fdViJw1e.js +20 -0
- package/dist/{index-CH_mJIWj.js → index-BzQ0j5xI.js} +6 -2
- package/dist/{pdf-Jun3ogRn.js → pdf-Bj65uPK-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +20 -3
- package/dist/types/vue-data-ui.d.ts +20 -3
- package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DqpZEE3h.js} +1 -1
- package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-CpG5jh_z.js} +2 -2
- package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-CeIncf6V.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-fAJK0nIB.js} +173 -173
- package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-D5w5EqmV.js} +179 -179
- package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-CSGemK-O.js} +2 -2
- package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-FPBahjOr.js} +6 -6
- package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BpP9MQC2.js} +113 -113
- package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-lpdLFAfT.js} +94 -94
- package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-D5um0tmC.js} +452 -452
- package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CgrXXOgv.js} +17 -17
- package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Jk-Yd8T_.js} +116 -116
- package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
- package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
- package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-B3h4BufU.js} +2 -2
- package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DcjJqRof.js} +149 -149
- package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-DmSbXlMu.js} +109 -109
- package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-BLcmTUd_.js} +65 -65
- package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-BmIGl6DC.js} +12 -12
- package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-BJfxaSQC.js} +65 -65
- package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-Cpnr2YW-.js} +82 -82
- package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-BhPFNziU.js} +5 -5
- package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
- package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-CpwNMx3i.js} +221 -221
- package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-DpxHqDZw.js} +232 -232
- package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
- package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
- package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-3-vg0Re6.js} +30 -30
- package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar-B7W7wGkW.js} +75 -75
- package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-ByoeDL-3.js} +16 -16
- package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-CNVwf4QX.js} +70 -70
- package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +11 -11
- package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-C-wPn5l5.js} +11 -11
- package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-SV-m_FhA.js} +5 -5
- package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-DqOzvLUy.js} +283 -282
- package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-CsZXcINB.js} +2 -2
- package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-B0zxq02O.js} +5 -5
- package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-CykFyAin.js} +100 -100
- package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-DoJwXgd3.js} +96 -96
- package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-BTT3BYrI.js} +164 -164
- package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
- package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
- package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
- package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
- package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
- package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-DuGcJQ6F.js} +37 -37
- package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-C6vbloAI.js} +80 -80
- package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Bb6pNaIM.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-_ypWL_z2.js} +57 -57
- package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-_pPedR_D.js} +72 -72
- package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-CmLnTIU7.js} +5 -5
- package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-CpAJT80M.js} +5 -5
- package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-DXgmJClr.js} +5 -5
- package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-Ci2Yi9Gh.js} +297 -297
- package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-pn_EqFmU.js} +81 -81
- package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-vqh1kEDT.js} +50 -50
- package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BCcK6wwZ.js} +5 -5
- package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-Bu8Giu0b.js} +67 -67
- package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CzRlg19V.js} +55 -55
- package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-0gHPOOwZ.js} +201 -182
- package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-DuAgXbBB.js} +80 -80
- package/package.json +1 -1
- package/dist/dom-to-png-C0Ct8ClX.js +0 -243
- package/dist/img-P0SFFw37.js +0 -19
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useCssVars as Qe, defineAsyncComponent as
|
|
2
|
-
import { u as ul, o as nl, e as Me, c as ye, a as il, C as rl, O as
|
|
3
|
-
import { u as Oe } from "./useNestedProp-
|
|
4
|
-
import { u as pl } from "./usePrinter-
|
|
1
|
+
import { useCssVars as Qe, defineAsyncComponent as B, computed as f, ref as b, watch as ze, shallowRef as Ze, onMounted as el, onBeforeUnmount as ll, createElementBlock as i, openBlock as o, unref as r, normalizeStyle as T, normalizeClass as le, createBlock as q, createCommentVNode as d, createVNode as ve, createSlots as tl, 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 al, createTextVNode as ol, nextTick as sl } from "vue";
|
|
2
|
+
import { u as ul, o as nl, e as Me, c as ye, a as il, C as rl, O as K, g as vl, X as yl, G as de, i as S, f as M, v as N, q as dl, r as cl, x as hl, y as gl } from "./index-BzQ0j5xI.js";
|
|
3
|
+
import { u as Oe } from "./useNestedProp-DqpZEE3h.js";
|
|
4
|
+
import { u as pl } from "./usePrinter-CpG5jh_z.js";
|
|
5
5
|
import { u as fl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as bl } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import ml from "./vue-ui-accordion-
|
|
8
|
-
import xl from "./Title-
|
|
7
|
+
import ml from "./vue-ui-accordion-bpaEpjqI.js";
|
|
8
|
+
import xl from "./Title-CJcZXNtK.js";
|
|
9
9
|
import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const kl = ["id"], _l = {
|
|
11
11
|
key: 2,
|
|
@@ -40,104 +40,104 @@ const kl = ["id"], _l = {
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
emits: ["selectDatapoint"],
|
|
43
|
-
setup(
|
|
43
|
+
setup(G, { expose: Se, emit: Ne }) {
|
|
44
44
|
Qe((l) => ({
|
|
45
|
-
|
|
45
|
+
f31c23a2: l.tdo
|
|
46
46
|
}));
|
|
47
|
-
const Ve =
|
|
47
|
+
const Ve = B(() => import("./BaseIcon-d4dmqhkb.js")), Fe = B(() => import("./PackageVersion-OcbP0WH2.js")), Ie = B(() => import("./PenAndPaper-BgPXmpGI.js")), Pe = B(() => import("./vue-ui-skeleton-CavMQlAm.js")), Re = B(() => import("./Tooltip-dXp8FaUj.js")), Xe = B(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_heatmap: Be } = ul(), y = G, De = Ne, J = f(() => !!y.dataset && y.dataset.length);
|
|
48
48
|
nl(y.dataset) && Me({
|
|
49
49
|
componentName: "VueUiHeatmap",
|
|
50
50
|
type: "dataset"
|
|
51
51
|
});
|
|
52
|
-
const
|
|
52
|
+
const U = b(ye()), te = b(null), Ee = b(null), ae = b(!1), oe = b(""), ce = b(void 0), Y = b(null), he = b(0), ge = b(null), Ge = b(null), pe = b(!1), fe = b(0), e = f({
|
|
53
53
|
get: () => we(),
|
|
54
54
|
set: (l) => l
|
|
55
|
-
}), { userOptionsVisible:
|
|
55
|
+
}), { userOptionsVisible: se, setUserOptionsVisibility: be, keepUserOptionState: me } = fl({ config: e.value }), { svgRef: xe } = bl({ config: e.value.style.title });
|
|
56
56
|
function we() {
|
|
57
57
|
const l = Oe({
|
|
58
58
|
userConfig: y.config,
|
|
59
59
|
defaultConfig: Be
|
|
60
60
|
});
|
|
61
|
-
let
|
|
62
|
-
return l.theme ?
|
|
61
|
+
let u = {};
|
|
62
|
+
return l.theme ? u = {
|
|
63
63
|
...Oe({
|
|
64
64
|
userConfig: il.vue_ui_heatmap[l.theme] || y.config,
|
|
65
65
|
defaultConfig: l
|
|
66
66
|
})
|
|
67
|
-
} :
|
|
67
|
+
} : u = l, y.config && rl(y.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? u.style.layout.dataLabels.xAxis.showOnlyAtModulo = y.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : u.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, u;
|
|
68
68
|
}
|
|
69
69
|
ze(() => y.config, (l) => {
|
|
70
|
-
e.value = we(),
|
|
70
|
+
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
71
|
}, { deep: !0 }), ze(() => y.dataset, () => {
|
|
72
|
-
|
|
72
|
+
ue();
|
|
73
73
|
}, { deep: !0 });
|
|
74
74
|
const { isPrinting: ke, isImaging: _e, generatePdf: Ce, generateImage: $e } = pl({
|
|
75
|
-
elementId: `heatmap__${
|
|
75
|
+
elementId: `heatmap__${U.value}`,
|
|
76
76
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
77
77
|
options: e.value.userOptions.print
|
|
78
78
|
}), Ue = f(() => e.value.userOptions.show && !e.value.style.title.text), C = b({
|
|
79
79
|
showTable: e.value.table.show,
|
|
80
80
|
showTooltip: e.value.style.tooltip.show
|
|
81
|
-
}), Ye = f(() => e.value.table.responsiveBreakpoint),
|
|
81
|
+
}), Ye = f(() => e.value.table.responsiveBreakpoint), R = Ze(null);
|
|
82
82
|
function He() {
|
|
83
|
-
|
|
84
|
-
l.forEach((
|
|
85
|
-
pe.value =
|
|
83
|
+
R.value && R.value.disconnect(), R.value = new ResizeObserver((l) => {
|
|
84
|
+
l.forEach((u) => {
|
|
85
|
+
pe.value = u.contentRect.width < Ye.value;
|
|
86
86
|
});
|
|
87
|
-
}),
|
|
87
|
+
}), R.value.observe(ge.value);
|
|
88
88
|
}
|
|
89
|
-
el(
|
|
90
|
-
|
|
89
|
+
el(ue), ll(() => {
|
|
90
|
+
R.value && R.value.disconnect();
|
|
91
91
|
});
|
|
92
|
-
function
|
|
92
|
+
function ue() {
|
|
93
93
|
He();
|
|
94
94
|
}
|
|
95
95
|
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,
|
|
96
|
+
const l = e.value.style.layout.padding.top + e.value.style.layout.padding.bottom + y.dataset.length * e.value.style.layout.cells.height, u = 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
97
|
return {
|
|
98
98
|
height: l,
|
|
99
99
|
heightWithLegend: n,
|
|
100
|
-
width:
|
|
100
|
+
width: u
|
|
101
101
|
};
|
|
102
|
-
}),
|
|
102
|
+
}), Q = f(() => e.value.style.legend.position), t = f(() => ({
|
|
103
103
|
top: e.value.style.layout.padding.top,
|
|
104
104
|
left: e.value.style.layout.padding.left,
|
|
105
|
-
right: $.value.width - e.value.style.layout.padding.right - (
|
|
105
|
+
right: $.value.width - e.value.style.layout.padding.right - (Q.value === "right" && e.value.style.legend.show ? 92 : 0),
|
|
106
106
|
bottom: $.value.height - e.value.style.layout.padding.bottom,
|
|
107
107
|
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
|
-
})),
|
|
108
|
+
width: $.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (Q.value === "right" && e.value.style.legend.show ? 92 : 0)
|
|
109
|
+
})), 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
110
|
const l = y.dataset.flatMap((n) => n.values);
|
|
111
|
-
return l.reduce((n,
|
|
111
|
+
return l.reduce((n, s) => n + s, 0) / l.length;
|
|
112
112
|
}), a = f(() => ({
|
|
113
113
|
width: t.value.width / V.value,
|
|
114
114
|
height: t.value.width / (V.value < y.dataset.length ? y.dataset.length : V.value)
|
|
115
|
-
})),
|
|
116
|
-
const l = e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : y.dataset.map((
|
|
117
|
-
for (let
|
|
118
|
-
|
|
119
|
-
const k = Math.max(...
|
|
115
|
+
})), 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), u = 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
|
+
for (let g = 0; g < V.value; g += 1)
|
|
118
|
+
h.push(y.dataset.map((w) => w.values[g] || 0).reduce((w, re) => w + re, 0));
|
|
119
|
+
const k = Math.max(...h), P = Math.min(...h);
|
|
120
120
|
return {
|
|
121
|
-
yTotals: n.map((
|
|
122
|
-
const w = isNaN(
|
|
121
|
+
yTotals: n.map((g) => {
|
|
122
|
+
const w = isNaN(g / s) ? 0 : g / s;
|
|
123
123
|
return {
|
|
124
|
-
total:
|
|
124
|
+
total: g,
|
|
125
125
|
proportion: w,
|
|
126
|
-
color:
|
|
126
|
+
color: K(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, c, s, g)
|
|
127
127
|
};
|
|
128
128
|
}),
|
|
129
|
-
xTotals:
|
|
130
|
-
const w = isNaN(
|
|
129
|
+
xTotals: h.map((g) => {
|
|
130
|
+
const w = isNaN(g / k) ? 0 : g / k;
|
|
131
131
|
return {
|
|
132
|
-
total:
|
|
132
|
+
total: g,
|
|
133
133
|
proportion: w,
|
|
134
|
-
color:
|
|
134
|
+
color: K(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, P, k, g)
|
|
135
135
|
};
|
|
136
136
|
}),
|
|
137
137
|
yLabels: l,
|
|
138
|
-
xLabels:
|
|
138
|
+
xLabels: u.slice(0, V.value)
|
|
139
139
|
};
|
|
140
|
-
}),
|
|
140
|
+
}), Z = f(() => (y.dataset.forEach((l, u) => {
|
|
141
141
|
vl({
|
|
142
142
|
datasetObject: l,
|
|
143
143
|
requiredAttributes: ["values"]
|
|
@@ -146,111 +146,111 @@ const kl = ["id"], _l = {
|
|
|
146
146
|
componentName: "VueUiHeatmap",
|
|
147
147
|
type: "datasetSerieAttribute",
|
|
148
148
|
property: "values",
|
|
149
|
-
index:
|
|
149
|
+
index: u
|
|
150
150
|
});
|
|
151
151
|
});
|
|
152
152
|
}), y.dataset.map((l) => ({
|
|
153
153
|
...l,
|
|
154
|
-
temperatures: (l.values || []).map((
|
|
154
|
+
temperatures: (l.values || []).map((u, n) => u >= I.value ? {
|
|
155
155
|
side: "up",
|
|
156
|
-
color:
|
|
157
|
-
ratio: Math.abs(Math.abs(
|
|
158
|
-
value:
|
|
156
|
+
color: K(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, u),
|
|
157
|
+
ratio: Math.abs(Math.abs(u - I.value) / Math.abs(L.value - I.value)) > 1 ? 1 : Math.abs(Math.abs(u - I.value) / Math.abs(L.value - I.value)),
|
|
158
|
+
value: u,
|
|
159
159
|
yAxisName: l.name,
|
|
160
|
-
xAxisName:
|
|
160
|
+
xAxisName: p.value.xLabels[n],
|
|
161
161
|
id: `vue-data-ui-heatmap-cell-${ye()}`
|
|
162
162
|
} : {
|
|
163
163
|
side: "down",
|
|
164
|
-
ratio: Math.abs(1 - Math.abs(
|
|
165
|
-
color:
|
|
166
|
-
value:
|
|
164
|
+
ratio: Math.abs(1 - Math.abs(u) / Math.abs(I.value)) > 1 ? 1 : Math.abs(1 - Math.abs(u) / Math.abs(I.value)),
|
|
165
|
+
color: K(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, u),
|
|
166
|
+
value: u,
|
|
167
167
|
yAxisName: l.name,
|
|
168
|
-
xAxisName:
|
|
168
|
+
xAxisName: p.value.xLabels[n],
|
|
169
169
|
id: `vue-data-ui-heatmap-cell-${ye()}`
|
|
170
170
|
})
|
|
171
|
-
})))), O = b(null),
|
|
172
|
-
function je(l,
|
|
173
|
-
|
|
174
|
-
const { value:
|
|
175
|
-
ce.value =
|
|
171
|
+
})))), O = b(null), H = b(null);
|
|
172
|
+
function je(l, u, n, s) {
|
|
173
|
+
Y.value = { x: n, y: s };
|
|
174
|
+
const { value: c, yAxisName: h, xAxisName: k, id: P } = l;
|
|
175
|
+
ce.value = P, O.value = c, H.value = {
|
|
176
176
|
datapoint: l,
|
|
177
|
-
seriesIndex:
|
|
178
|
-
series:
|
|
177
|
+
seriesIndex: u,
|
|
178
|
+
series: Z.value,
|
|
179
179
|
config: e.value
|
|
180
|
-
},
|
|
181
|
-
let
|
|
180
|
+
}, ae.value = !0;
|
|
181
|
+
let g = "";
|
|
182
182
|
const w = e.value.style.tooltip.customFormat;
|
|
183
183
|
hl(w) && gl(() => w({
|
|
184
184
|
datapoint: l,
|
|
185
|
-
seriesIndex:
|
|
186
|
-
series:
|
|
185
|
+
seriesIndex: u,
|
|
186
|
+
series: Z.value,
|
|
187
187
|
config: e.value
|
|
188
|
-
})) ?
|
|
188
|
+
})) ? oe.value = w({
|
|
189
189
|
datapoint: l,
|
|
190
|
-
seriesIndex:
|
|
191
|
-
series:
|
|
190
|
+
seriesIndex: u,
|
|
191
|
+
series: Z.value,
|
|
192
192
|
config: e.value
|
|
193
|
-
}) : (
|
|
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:${K(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
194
|
e.value.style.layout.cells.value.formatter,
|
|
195
|
-
|
|
195
|
+
c,
|
|
196
196
|
M({
|
|
197
197
|
p: e.value.style.layout.dataLabels.prefix,
|
|
198
|
-
v:
|
|
198
|
+
v: c,
|
|
199
199
|
s: e.value.style.layout.dataLabels.suffix,
|
|
200
200
|
r: e.value.style.tooltip.roundingValue
|
|
201
201
|
}),
|
|
202
|
-
{ datapoint: l, seriesIndex:
|
|
203
|
-
)}</span></div>`,
|
|
202
|
+
{ datapoint: l, seriesIndex: u }
|
|
203
|
+
)}</span></div>`, oe.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${g}</div>`);
|
|
204
204
|
}
|
|
205
|
-
const
|
|
205
|
+
const j = f(() => t.value.top + ne.value * (1 - O.value / L.value)), W = f(() => t.value.left + ($.value.width - t.value.left - e.value.style.layout.padding.right) * (O.value / L.value));
|
|
206
206
|
function We(l) {
|
|
207
207
|
return S(
|
|
208
208
|
e.value.style.layout.cells.value.formatter,
|
|
209
|
-
|
|
209
|
+
p.value.yTotals[l].total,
|
|
210
210
|
M({
|
|
211
211
|
p: e.value.style.layout.dataLabels.prefix,
|
|
212
|
-
v:
|
|
212
|
+
v: p.value.yTotals[l].total,
|
|
213
213
|
s: e.value.style.layout.dataLabels.suffix,
|
|
214
214
|
r: e.value.style.layout.cells.value.roundingValue
|
|
215
215
|
}),
|
|
216
|
-
{ datapoint:
|
|
216
|
+
{ datapoint: p.value.yTotals[l], rowIndex: l }
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
219
|
function qe(l) {
|
|
220
220
|
return S(
|
|
221
221
|
e.value.style.layout.cells.value.formatter,
|
|
222
|
-
|
|
222
|
+
p.value.xTotals[l].total,
|
|
223
223
|
M({
|
|
224
224
|
p: e.value.style.layout.dataLabels.prefix,
|
|
225
|
-
v:
|
|
225
|
+
v: p.value.xTotals[l].total,
|
|
226
226
|
s: e.value.style.layout.dataLabels.suffix,
|
|
227
227
|
r: e.value.style.layout.cells.value.roundingValue
|
|
228
228
|
}),
|
|
229
|
-
{ datapoint:
|
|
229
|
+
{ datapoint: p.value.xTotals[l], colIndex: l }
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
232
|
f(() => {
|
|
233
233
|
const l = y.dataset.map((n) => ({
|
|
234
234
|
name: n.name
|
|
235
|
-
})),
|
|
236
|
-
return { head: l, body:
|
|
235
|
+
})), u = y.dataset.map((n) => n.values);
|
|
236
|
+
return { head: l, body: u };
|
|
237
237
|
});
|
|
238
|
-
function Le() {
|
|
238
|
+
function Le(l = null) {
|
|
239
239
|
sl(() => {
|
|
240
|
-
const
|
|
241
|
-
for (let
|
|
242
|
-
const
|
|
243
|
-
for (let
|
|
244
|
-
|
|
245
|
-
|
|
240
|
+
const u = ["", ...y.dataset.map((h, k) => h.name)], n = [];
|
|
241
|
+
for (let h = 0; h < p.value.xLabels.length; h += 1) {
|
|
242
|
+
const k = [p.value.xLabels[h]];
|
|
243
|
+
for (let P = 0; P < y.dataset.length; P += 1)
|
|
244
|
+
k.push([y.dataset[P].values[h]]);
|
|
245
|
+
n.push(k);
|
|
246
246
|
}
|
|
247
|
-
const
|
|
248
|
-
cl({ csvContent:
|
|
247
|
+
const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([u]).concat(n), c = dl(s);
|
|
248
|
+
l ? l(c) : cl({ csvContent: c, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
|
-
const
|
|
251
|
+
const X = b(!1);
|
|
252
252
|
function Ke(l) {
|
|
253
|
-
|
|
253
|
+
X.value = l, he.value += 1;
|
|
254
254
|
}
|
|
255
255
|
function Te() {
|
|
256
256
|
C.value.showTable = !C.value.showTable;
|
|
@@ -258,9 +258,9 @@ const kl = ["id"], _l = {
|
|
|
258
258
|
function Ae() {
|
|
259
259
|
C.value.showTooltip = !C.value.showTooltip;
|
|
260
260
|
}
|
|
261
|
-
const
|
|
262
|
-
function
|
|
263
|
-
|
|
261
|
+
const ee = b(!1);
|
|
262
|
+
function ie() {
|
|
263
|
+
ee.value = !ee.value;
|
|
264
264
|
}
|
|
265
265
|
function Je(l) {
|
|
266
266
|
De("selectDatapoint", l);
|
|
@@ -271,33 +271,33 @@ const kl = ["id"], _l = {
|
|
|
271
271
|
generateImage: $e,
|
|
272
272
|
toggleTable: Te,
|
|
273
273
|
toggleTooltip: Ae,
|
|
274
|
-
toggleAnnotator:
|
|
275
|
-
}), (l,
|
|
274
|
+
toggleAnnotator: ie
|
|
275
|
+
}), (l, u) => (o(), i("div", {
|
|
276
276
|
ref_key: "heatmapChart",
|
|
277
|
-
ref:
|
|
278
|
-
class:
|
|
277
|
+
ref: te,
|
|
278
|
+
class: le(`vue-ui-heatmap ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
279
279
|
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:
|
|
280
|
+
id: `heatmap__${U.value}`,
|
|
281
|
+
onMouseenter: u[3] || (u[3] = () => r(be)(!0)),
|
|
282
|
+
onMouseleave: u[4] || (u[4] = () => r(be)(!1))
|
|
283
283
|
}, [
|
|
284
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
284
|
+
e.value.userOptions.buttons.annotator ? (o(), q(r(Ie), {
|
|
285
285
|
key: 0,
|
|
286
286
|
svgRef: r(xe),
|
|
287
287
|
backgroundColor: e.value.style.backgroundColor,
|
|
288
288
|
color: e.value.style.color,
|
|
289
|
-
active:
|
|
290
|
-
onClose:
|
|
291
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
289
|
+
active: ee.value,
|
|
290
|
+
onClose: ie
|
|
291
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
292
292
|
Ue.value ? (o(), i("div", {
|
|
293
293
|
key: 1,
|
|
294
294
|
ref_key: "noTitle",
|
|
295
295
|
ref: Ge,
|
|
296
296
|
class: "vue-data-ui-no-title-space",
|
|
297
297
|
style: "height:36px; width: 100%;background:transparent"
|
|
298
|
-
}, null, 512)) :
|
|
298
|
+
}, null, 512)) : d("", !0),
|
|
299
299
|
e.value.style.title.text ? (o(), i("div", _l, [
|
|
300
|
-
(o(),
|
|
300
|
+
(o(), q(xl, {
|
|
301
301
|
key: `title_${fe.value}`,
|
|
302
302
|
config: {
|
|
303
303
|
title: {
|
|
@@ -310,8 +310,8 @@ const kl = ["id"], _l = {
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
}, null, 8, ["config"]))
|
|
313
|
-
])) :
|
|
314
|
-
e.value.userOptions.show &&
|
|
313
|
+
])) : d("", !0),
|
|
314
|
+
e.value.userOptions.show && J.value && (r(me) || r(se)) ? (o(), q(r(Xe), {
|
|
315
315
|
ref_key: "details",
|
|
316
316
|
ref: Ee,
|
|
317
317
|
key: `user_options_${he.value}`,
|
|
@@ -319,20 +319,20 @@ const kl = ["id"], _l = {
|
|
|
319
319
|
color: e.value.style.color,
|
|
320
320
|
isImaging: r(_e),
|
|
321
321
|
isPrinting: r(ke),
|
|
322
|
-
uid:
|
|
322
|
+
uid: U.value,
|
|
323
323
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
324
324
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
325
325
|
hasImg: e.value.userOptions.buttons.img,
|
|
326
326
|
hasXls: e.value.userOptions.buttons.csv,
|
|
327
327
|
hasTable: e.value.userOptions.buttons.table,
|
|
328
328
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
329
|
-
isFullscreen:
|
|
329
|
+
isFullscreen: X.value,
|
|
330
330
|
isTooltip: C.value.showTooltip,
|
|
331
331
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
332
|
-
chartElement:
|
|
332
|
+
chartElement: te.value,
|
|
333
333
|
position: e.value.userOptions.position,
|
|
334
334
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
335
|
-
isAnnotation:
|
|
335
|
+
isAnnotation: ee.value,
|
|
336
336
|
callbacks: e.value.userOptions.callbacks,
|
|
337
337
|
onToggleFullscreen: Ke,
|
|
338
338
|
onGeneratePdf: r(Ce),
|
|
@@ -340,15 +340,15 @@ const kl = ["id"], _l = {
|
|
|
340
340
|
onGenerateImage: r($e),
|
|
341
341
|
onToggleTable: Te,
|
|
342
342
|
onToggleTooltip: Ae,
|
|
343
|
-
onToggleAnnotator:
|
|
343
|
+
onToggleAnnotator: ie,
|
|
344
344
|
style: T({
|
|
345
|
-
visibility: r(me) ? r(
|
|
345
|
+
visibility: r(me) ? r(se) ? "visible" : "hidden" : "visible"
|
|
346
346
|
})
|
|
347
347
|
}, tl({ _: 2 }, [
|
|
348
348
|
l.$slots.menuIcon ? {
|
|
349
349
|
name: "menuIcon",
|
|
350
|
-
fn: A(({ isOpen: n, color:
|
|
351
|
-
m(l.$slots, "menuIcon",
|
|
350
|
+
fn: A(({ isOpen: n, color: s }) => [
|
|
351
|
+
m(l.$slots, "menuIcon", D(E({ isOpen: n, color: s })), void 0, !0)
|
|
352
352
|
]),
|
|
353
353
|
key: "0"
|
|
354
354
|
} : void 0,
|
|
@@ -389,25 +389,25 @@ const kl = ["id"], _l = {
|
|
|
389
389
|
} : void 0,
|
|
390
390
|
l.$slots.optionFullscreen ? {
|
|
391
391
|
name: "optionFullscreen",
|
|
392
|
-
fn: A(({ toggleFullscreen: n, isFullscreen:
|
|
393
|
-
m(l.$slots, "optionFullscreen",
|
|
392
|
+
fn: A(({ toggleFullscreen: n, isFullscreen: s }) => [
|
|
393
|
+
m(l.$slots, "optionFullscreen", D(E({ toggleFullscreen: n, isFullscreen: s })), void 0, !0)
|
|
394
394
|
]),
|
|
395
395
|
key: "6"
|
|
396
396
|
} : void 0,
|
|
397
397
|
l.$slots.optionAnnotator ? {
|
|
398
398
|
name: "optionAnnotator",
|
|
399
|
-
fn: A(({ toggleAnnotator: n, isAnnotator:
|
|
400
|
-
m(l.$slots, "optionAnnotator",
|
|
399
|
+
fn: A(({ toggleAnnotator: n, isAnnotator: s }) => [
|
|
400
|
+
m(l.$slots, "optionAnnotator", D(E({ toggleAnnotator: n, isAnnotator: s })), void 0, !0)
|
|
401
401
|
]),
|
|
402
402
|
key: "7"
|
|
403
403
|
} : 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"])) :
|
|
405
|
-
|
|
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
|
+
J.value ? (o(), i("svg", {
|
|
406
406
|
key: 4,
|
|
407
407
|
ref_key: "svgRef",
|
|
408
408
|
ref: xe,
|
|
409
409
|
xmlns: r(yl),
|
|
410
|
-
class:
|
|
410
|
+
class: le({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
|
|
411
411
|
viewBox: `0 0 ${$.value.width} ${$.value.heightWithLegend}`,
|
|
412
412
|
style: T(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
413
413
|
}, [
|
|
@@ -423,10 +423,10 @@ const kl = ["id"], _l = {
|
|
|
423
423
|
}
|
|
424
424
|
}, [
|
|
425
425
|
m(l.$slots, "chart-background", {}, void 0, !0)
|
|
426
|
-
], 8, $l)) :
|
|
426
|
+
], 8, $l)) : d("", !0),
|
|
427
427
|
e.value.style.layout.cells.columnTotal.color.show ? (o(), i(_, { key: 1 }, [
|
|
428
|
-
(o(!0), i(_, null, z(
|
|
429
|
-
x: t.value.left + a.value.width *
|
|
428
|
+
(o(!0), i(_, null, z(p.value.xTotals, (n, s) => (o(), i("rect", {
|
|
429
|
+
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
430
|
y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
|
|
431
431
|
height: a.value.height / 3,
|
|
432
432
|
width: a.value.width - e.value.style.layout.cells.spacing,
|
|
@@ -434,8 +434,8 @@ const kl = ["id"], _l = {
|
|
|
434
434
|
stroke: e.value.style.backgroundColor,
|
|
435
435
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
436
436
|
}, null, 8, Ll))), 256)),
|
|
437
|
-
(o(!0), i(_, null, z(
|
|
438
|
-
x: t.value.left + a.value.width *
|
|
437
|
+
(o(!0), i(_, null, z(p.value.xTotals, (n, s) => (o(), i("rect", {
|
|
438
|
+
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
439
|
y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
|
|
440
440
|
height: a.value.height / 3,
|
|
441
441
|
width: a.value.width - e.value.style.layout.cells.spacing,
|
|
@@ -443,12 +443,12 @@ const kl = ["id"], _l = {
|
|
|
443
443
|
stroke: e.value.style.backgroundColor,
|
|
444
444
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
445
445
|
}, null, 8, Tl))), 256))
|
|
446
|
-
], 64)) :
|
|
447
|
-
(o(!0), i(_, null, z(
|
|
448
|
-
(o(!0), i(_, null, z(n.temperatures, (
|
|
446
|
+
], 64)) : d("", !0),
|
|
447
|
+
(o(!0), i(_, null, z(Z.value, (n, s) => (o(), i("g", null, [
|
|
448
|
+
(o(!0), i(_, null, z(n.temperatures, (c, h) => (o(), i("g", null, [
|
|
449
449
|
v("rect", {
|
|
450
|
-
x: t.value.left + a.value.width *
|
|
451
|
-
y: t.value.top + a.value.height *
|
|
450
|
+
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 * s + e.value.style.layout.cells.spacing / 2,
|
|
452
452
|
width: a.value.width - e.value.style.layout.cells.spacing,
|
|
453
453
|
height: a.value.height - e.value.style.layout.cells.spacing,
|
|
454
454
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
@@ -456,11 +456,11 @@ const kl = ["id"], _l = {
|
|
|
456
456
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
457
457
|
}, null, 8, Al),
|
|
458
458
|
v("rect", {
|
|
459
|
-
x: t.value.left + a.value.width *
|
|
460
|
-
y: t.value.top + a.value.height *
|
|
459
|
+
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 * s + e.value.style.layout.cells.spacing / 2,
|
|
461
461
|
width: a.value.width - e.value.style.layout.cells.spacing,
|
|
462
462
|
height: a.value.height - e.value.style.layout.cells.spacing,
|
|
463
|
-
fill:
|
|
463
|
+
fill: c.color,
|
|
464
464
|
stroke: e.value.style.backgroundColor,
|
|
465
465
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
466
466
|
}, null, 8, zl),
|
|
@@ -469,34 +469,34 @@ const kl = ["id"], _l = {
|
|
|
469
469
|
"text-anchor": "middle",
|
|
470
470
|
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
471
471
|
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
472
|
-
fill: r(de)(
|
|
473
|
-
x: t.value.left + a.value.width *
|
|
474
|
-
y: t.value.top + a.value.height *
|
|
472
|
+
fill: r(de)(c.color),
|
|
473
|
+
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 * s + a.value.height / 2 + e.value.style.layout.cells.value.fontSize / 3
|
|
475
475
|
}, x(r(S)(
|
|
476
476
|
e.value.style.layout.cells.value.formatter,
|
|
477
|
-
|
|
477
|
+
c.value,
|
|
478
478
|
r(M)({
|
|
479
479
|
p: e.value.style.layout.dataLabels.prefix,
|
|
480
|
-
v:
|
|
480
|
+
v: c.value,
|
|
481
481
|
s: e.value.style.layout.dataLabels.suffix,
|
|
482
482
|
r: e.value.style.layout.cells.value.roundingValue
|
|
483
483
|
}),
|
|
484
|
-
{ datapoint:
|
|
485
|
-
)), 9, Ml)) :
|
|
484
|
+
{ datapoint: c }
|
|
485
|
+
)), 9, Ml)) : d("", !0)
|
|
486
486
|
]))), 256)),
|
|
487
|
-
(o(!0), i(_, null, z(n.temperatures, (
|
|
487
|
+
(o(!0), i(_, null, z(n.temperatures, (c, h) => (o(), i("g", null, [
|
|
488
488
|
v("rect", {
|
|
489
|
-
x: t.value.left + a.value.width *
|
|
490
|
-
y: t.value.top + a.value.height *
|
|
489
|
+
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 * s,
|
|
491
491
|
width: a.value.width,
|
|
492
492
|
height: a.value.height,
|
|
493
493
|
fill: "transparent",
|
|
494
494
|
stroke: "none",
|
|
495
|
-
onMouseover: (k) => je(
|
|
496
|
-
onMouseout:
|
|
497
|
-
|
|
495
|
+
onMouseover: (k) => je(c, s, t.value.left + a.value.width * h, t.value.top + a.value.height * s),
|
|
496
|
+
onMouseout: u[0] || (u[0] = (k) => {
|
|
497
|
+
ae.value = !1, ce.value = void 0, O.value = null, Y.value = null;
|
|
498
498
|
}),
|
|
499
|
-
onClick: () => Je(
|
|
499
|
+
onClick: () => Je(c)
|
|
500
500
|
}, null, 40, Ol)
|
|
501
501
|
]))), 256)),
|
|
502
502
|
e.value.style.layout.dataLabels.yAxis.show ? (o(), i("g", Sl, [
|
|
@@ -505,25 +505,25 @@ const kl = ["id"], _l = {
|
|
|
505
505
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
506
506
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
507
507
|
x: t.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
|
|
508
|
-
y: t.value.top + a.value.height *
|
|
508
|
+
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
509
|
"text-anchor": "end",
|
|
510
510
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
511
|
-
}, x(
|
|
511
|
+
}, x(p.value.yLabels[s]), 9, Nl),
|
|
512
512
|
e.value.style.layout.cells.rowTotal.value.show ? (o(), i("text", {
|
|
513
513
|
key: 0,
|
|
514
514
|
class: "vue-ui-heatmap-row-total",
|
|
515
515
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
516
516
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
517
517
|
x: t.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
|
|
518
|
-
y: t.value.top + a.value.height *
|
|
518
|
+
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
519
|
"text-anchor": "end",
|
|
520
520
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
521
|
-
}, x(We(
|
|
522
|
-
])) :
|
|
521
|
+
}, x(We(s)), 9, Vl)) : d("", !0)
|
|
522
|
+
])) : d("", !0),
|
|
523
523
|
e.value.style.layout.cells.rowTotal.color.show ? (o(), i("g", Fl, [
|
|
524
524
|
v("rect", {
|
|
525
525
|
x: t.value.left,
|
|
526
|
-
y: t.value.top + a.value.height *
|
|
526
|
+
y: t.value.top + a.value.height * s,
|
|
527
527
|
width: a.value.height / 3,
|
|
528
528
|
height: a.value.height - e.value.style.layout.cells.spacing,
|
|
529
529
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
@@ -532,41 +532,41 @@ const kl = ["id"], _l = {
|
|
|
532
532
|
}, null, 8, Il),
|
|
533
533
|
v("rect", {
|
|
534
534
|
x: t.value.left,
|
|
535
|
-
y: t.value.top + a.value.height *
|
|
535
|
+
y: t.value.top + a.value.height * s + e.value.style.layout.cells.spacing / 2,
|
|
536
536
|
width: a.value.height / 3,
|
|
537
537
|
height: a.value.height - e.value.style.layout.cells.spacing,
|
|
538
|
-
fill:
|
|
538
|
+
fill: p.value.yTotals[s].color,
|
|
539
539
|
stroke: e.value.style.backgroundColor,
|
|
540
540
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
541
541
|
}, null, 8, Pl)
|
|
542
|
-
])) :
|
|
542
|
+
])) : d("", !0)
|
|
543
543
|
]))), 256)),
|
|
544
544
|
e.value.style.layout.dataLabels.xAxis.show ? (o(), i("g", Rl, [
|
|
545
|
-
(o(!0), i(_, null, z(
|
|
546
|
-
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo &&
|
|
545
|
+
(o(!0), i(_, null, z(p.value.xLabels, (n, s) => (o(), i(_, null, [
|
|
546
|
+
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && s % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (o(), i("text", {
|
|
547
547
|
key: 0,
|
|
548
548
|
class: "vue-ui-heatmap-col-name",
|
|
549
549
|
"text-anchor": e.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
550
550
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
551
551
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
552
552
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
553
|
-
transform: `translate(${t.value.left + a.value.width / 2 + t.value.width /
|
|
554
|
-
}, x(n), 9, Xl)) :
|
|
553
|
+
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, Xl)) : d("", !0)
|
|
555
555
|
], 64))), 256))
|
|
556
|
-
])) :
|
|
557
|
-
e.value.style.layout.cells.columnTotal.value.show ? (o(!0), i(_, { key: 3 }, z(
|
|
556
|
+
])) : d("", !0),
|
|
557
|
+
e.value.style.layout.cells.columnTotal.value.show ? (o(!0), i(_, { key: 3 }, z(p.value.xLabels, (n, s) => (o(), i("text", {
|
|
558
558
|
class: "vue-ui-heatmap-col-total",
|
|
559
559
|
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
560
560
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
561
561
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
562
562
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
563
|
-
transform: `translate(${t.value.left + a.value.width / 2 + t.value.width /
|
|
564
|
-
}, x(qe(
|
|
565
|
-
|
|
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) * (G.dataset.length + 1) + e.value.style.layout.cells.columnTotal.value.offsetY}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
|
|
564
|
+
}, x(qe(s)), 9, Bl))), 256)) : d("", !0),
|
|
565
|
+
Y.value ? (o(), i("g", Dl, [
|
|
566
566
|
v("rect", {
|
|
567
567
|
style: { "pointer-events": "none" },
|
|
568
|
-
x:
|
|
569
|
-
y:
|
|
568
|
+
x: Y.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),
|
|
569
|
+
y: Y.value.y - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
|
|
570
570
|
width: a.value.width - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
571
571
|
height: a.value.height - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
572
572
|
fill: "transparent",
|
|
@@ -574,11 +574,11 @@ const kl = ["id"], _l = {
|
|
|
574
574
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
575
575
|
rx: 1
|
|
576
576
|
}, null, 8, El)
|
|
577
|
-
])) :
|
|
578
|
-
e.value.style.legend.show &&
|
|
577
|
+
])) : d("", !0),
|
|
578
|
+
e.value.style.legend.show && Q.value === "right" ? (o(), i("g", Gl, [
|
|
579
579
|
v("defs", null, [
|
|
580
580
|
v("linearGradient", {
|
|
581
|
-
id: `colorScaleVertical_${
|
|
581
|
+
id: `colorScaleVertical_${U.value}`,
|
|
582
582
|
x2: "0%",
|
|
583
583
|
y2: "100%"
|
|
584
584
|
}, [
|
|
@@ -612,13 +612,13 @@ const kl = ["id"], _l = {
|
|
|
612
612
|
x: t.value.right + 36,
|
|
613
613
|
y: t.value.top,
|
|
614
614
|
width: 36,
|
|
615
|
-
height:
|
|
615
|
+
height: ne.value,
|
|
616
616
|
rx: e.value.style.legend.scaleBorderRadius,
|
|
617
|
-
fill: `url(#colorScaleVertical_${
|
|
617
|
+
fill: `url(#colorScaleVertical_${U.value})`
|
|
618
618
|
}, null, 8, Wl),
|
|
619
619
|
v("text", {
|
|
620
620
|
x: t.value.right + 36 + 18,
|
|
621
|
-
y: t.value.top +
|
|
621
|
+
y: t.value.top + ne.value + e.value.style.legend.fontSize * 2.5,
|
|
622
622
|
"text-anchor": "middle",
|
|
623
623
|
"font-size": e.value.style.legend.fontSize * 2,
|
|
624
624
|
fill: e.value.style.legend.color
|
|
@@ -634,21 +634,21 @@ const kl = ["id"], _l = {
|
|
|
634
634
|
)), 9, ql),
|
|
635
635
|
O.value !== null ? (o(), i("line", {
|
|
636
636
|
key: 0,
|
|
637
|
-
stroke: r(de)(
|
|
637
|
+
stroke: r(de)(H.value.datapoint.color),
|
|
638
638
|
"stroke-width": "2",
|
|
639
639
|
x1: t.value.right + 36,
|
|
640
640
|
x2: t.value.right + 72,
|
|
641
|
-
y1:
|
|
642
|
-
y2:
|
|
643
|
-
}, null, 8, Kl)) :
|
|
641
|
+
y1: j.value,
|
|
642
|
+
y2: j.value
|
|
643
|
+
}, null, 8, Kl)) : d("", !0),
|
|
644
644
|
O.value !== null ? (o(), i("path", {
|
|
645
645
|
key: 1,
|
|
646
646
|
fill: e.value.style.color,
|
|
647
647
|
stroke: "none",
|
|
648
|
-
d: `M ${t.value.right + 36},${
|
|
649
|
-
}, null, 8, Jl)) :
|
|
650
|
-
])) :
|
|
651
|
-
e.value.style.legend.show &&
|
|
648
|
+
d: `M ${t.value.right + 36},${j.value} ${t.value.right + 26},${j.value - 8} ${t.value.right + 26},${j.value + 8}z`
|
|
649
|
+
}, null, 8, Jl)) : d("", !0)
|
|
650
|
+
])) : d("", !0),
|
|
651
|
+
e.value.style.legend.show && Q.value === "bottom" ? (o(), i("g", Ql, [
|
|
652
652
|
v("defs", null, [
|
|
653
653
|
v("linearGradient", Zl, [
|
|
654
654
|
v("stop", {
|
|
@@ -703,29 +703,29 @@ const kl = ["id"], _l = {
|
|
|
703
703
|
)), 9, ot),
|
|
704
704
|
O.value !== null ? (o(), i("line", {
|
|
705
705
|
key: 0,
|
|
706
|
-
stroke: r(de)(
|
|
706
|
+
stroke: r(de)(H.value.datapoint.color),
|
|
707
707
|
"stroke-width": "2",
|
|
708
|
-
x1:
|
|
709
|
-
x2:
|
|
708
|
+
x1: W.value,
|
|
709
|
+
x2: W.value,
|
|
710
710
|
y1: t.value.bottom + e.value.style.layout.cells.height,
|
|
711
711
|
y2: t.value.bottom + e.value.style.layout.cells.height * 2
|
|
712
|
-
}, null, 8, st)) :
|
|
712
|
+
}, null, 8, st)) : d("", !0),
|
|
713
713
|
O.value !== null ? (o(), i("path", {
|
|
714
714
|
key: 1,
|
|
715
715
|
fill: e.value.style.color,
|
|
716
716
|
stroke: "none",
|
|
717
|
-
d: `M ${
|
|
718
|
-
}, null, 8, ut)) :
|
|
719
|
-
])) :
|
|
717
|
+
d: `M ${W.value},${t.value.bottom + e.value.style.layout.cells.height} ${W.value - 12},${t.value.bottom + e.value.style.layout.cells.height - 20} ${W.value + 12},${t.value.bottom + e.value.style.layout.cells.height - 20}z`
|
|
718
|
+
}, null, 8, ut)) : d("", !0)
|
|
719
|
+
])) : d("", !0),
|
|
720
720
|
m(l.$slots, "svg", { svg: $.value }, void 0, !0)
|
|
721
|
-
], 14, Cl)) :
|
|
721
|
+
], 14, Cl)) : d("", !0),
|
|
722
722
|
l.$slots.watermark ? (o(), i("div", nt, [
|
|
723
|
-
m(l.$slots, "watermark",
|
|
724
|
-
])) :
|
|
723
|
+
m(l.$slots, "watermark", D(E({ isPrinting: r(ke) || r(_e) })), void 0, !0)
|
|
724
|
+
])) : d("", !0),
|
|
725
725
|
l.$slots.source ? (o(), i("div", it, [
|
|
726
726
|
m(l.$slots, "source", {}, void 0, !0)
|
|
727
|
-
], 512)) :
|
|
728
|
-
|
|
727
|
+
], 512)) : d("", !0),
|
|
728
|
+
J.value ? d("", !0) : (o(), q(r(Pe), {
|
|
729
729
|
key: 7,
|
|
730
730
|
config: {
|
|
731
731
|
type: "heatmap",
|
|
@@ -738,7 +738,7 @@ const kl = ["id"], _l = {
|
|
|
738
738
|
}
|
|
739
739
|
}, null, 8, ["config"])),
|
|
740
740
|
ve(r(Re), {
|
|
741
|
-
show: C.value.showTooltip &&
|
|
741
|
+
show: C.value.showTooltip && ae.value,
|
|
742
742
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
743
743
|
color: e.value.style.tooltip.color,
|
|
744
744
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -748,20 +748,20 @@ const kl = ["id"], _l = {
|
|
|
748
748
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
749
749
|
position: e.value.style.tooltip.position,
|
|
750
750
|
offsetY: e.value.style.tooltip.offsetY,
|
|
751
|
-
parent:
|
|
752
|
-
content:
|
|
753
|
-
isFullscreen:
|
|
751
|
+
parent: te.value,
|
|
752
|
+
content: oe.value,
|
|
753
|
+
isFullscreen: X.value,
|
|
754
754
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
755
755
|
}, {
|
|
756
756
|
"tooltip-before": A(() => [
|
|
757
|
-
m(l.$slots, "tooltip-before",
|
|
757
|
+
m(l.$slots, "tooltip-before", D(E({ ...H.value })), void 0, !0)
|
|
758
758
|
]),
|
|
759
759
|
"tooltip-after": A(() => [
|
|
760
|
-
m(l.$slots, "tooltip-after",
|
|
760
|
+
m(l.$slots, "tooltip-after", D(E({ ...H.value })), void 0, !0)
|
|
761
761
|
]),
|
|
762
762
|
_: 3
|
|
763
763
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
764
|
-
|
|
764
|
+
J.value ? (o(), q(ml, {
|
|
765
765
|
key: 8,
|
|
766
766
|
hideDetails: "",
|
|
767
767
|
config: {
|
|
@@ -785,14 +785,14 @@ const kl = ["id"], _l = {
|
|
|
785
785
|
}, [
|
|
786
786
|
v("div", {
|
|
787
787
|
style: "width:100%;overflow-x:auto;padding-top:36px;position:relative",
|
|
788
|
-
class:
|
|
788
|
+
class: le({ "vue-ui-responsive": pe.value })
|
|
789
789
|
}, [
|
|
790
790
|
v("div", {
|
|
791
791
|
role: "button",
|
|
792
792
|
tabindex: "0",
|
|
793
793
|
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:
|
|
794
|
+
onClick: u[1] || (u[1] = (n) => C.value.showTable = !1),
|
|
795
|
+
onKeypress: u[2] || (u[2] = al((n) => C.value.showTable = !1, ["enter"]))
|
|
796
796
|
}, [
|
|
797
797
|
ve(r(Ve), {
|
|
798
798
|
name: "close",
|
|
@@ -805,7 +805,7 @@ const kl = ["id"], _l = {
|
|
|
805
805
|
style: T(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
806
806
|
}, [
|
|
807
807
|
ol(x(e.value.style.title.text) + " ", 1),
|
|
808
|
-
e.value.style.title.subtitle.text ? (o(), i("span", vt, x(e.value.style.title.subtitle.text), 1)) :
|
|
808
|
+
e.value.style.title.subtitle.text ? (o(), i("span", vt, x(e.value.style.title.subtitle.text), 1)) : d("", !0)
|
|
809
809
|
], 4),
|
|
810
810
|
v("thead", null, [
|
|
811
811
|
v("tr", {
|
|
@@ -815,16 +815,16 @@ const kl = ["id"], _l = {
|
|
|
815
815
|
v("th", {
|
|
816
816
|
style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
817
817
|
}, null, 4),
|
|
818
|
-
(o(!0), i(_, null, z(
|
|
818
|
+
(o(!0), i(_, null, z(G.dataset, (n, s) => (o(), i("th", {
|
|
819
819
|
align: "right",
|
|
820
820
|
style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
821
821
|
}, x(n.name), 5))), 256))
|
|
822
822
|
], 4)
|
|
823
823
|
]),
|
|
824
824
|
v("tbody", null, [
|
|
825
|
-
(o(!0), i(_, null, z(
|
|
825
|
+
(o(!0), i(_, null, z(p.value.xLabels, (n, s) => (o(), i("tr", {
|
|
826
826
|
role: "row",
|
|
827
|
-
class:
|
|
827
|
+
class: le({ "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
828
|
style: T(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
829
829
|
}, [
|
|
830
830
|
v("td", {
|
|
@@ -834,12 +834,12 @@ const kl = ["id"], _l = {
|
|
|
834
834
|
}, [
|
|
835
835
|
v("div", dt, x(n), 1)
|
|
836
836
|
], 12, yt),
|
|
837
|
-
(o(!0), i(_, null, z(
|
|
837
|
+
(o(!0), i(_, null, z(G.dataset, (c, h) => (o(), i("td", {
|
|
838
838
|
class: "vue-ui-data-table__tbody__td",
|
|
839
|
-
"data-cell":
|
|
839
|
+
"data-cell": G.dataset[h].name,
|
|
840
840
|
style: T(`outline:${e.value.table.td.outline}`)
|
|
841
841
|
}, [
|
|
842
|
-
v("div", ht, x(isNaN(
|
|
842
|
+
v("div", ht, 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)
|
|
843
843
|
], 12, ct))), 256))
|
|
844
844
|
], 6))), 256))
|
|
845
845
|
])
|
|
@@ -848,10 +848,10 @@ const kl = ["id"], _l = {
|
|
|
848
848
|
], 512)
|
|
849
849
|
]),
|
|
850
850
|
_: 1
|
|
851
|
-
}, 8, ["config"])) :
|
|
851
|
+
}, 8, ["config"])) : d("", !0)
|
|
852
852
|
], 46, kl));
|
|
853
853
|
}
|
|
854
|
-
}, $t = /* @__PURE__ */ wl(gt, [["__scopeId", "data-v-
|
|
854
|
+
}, $t = /* @__PURE__ */ wl(gt, [["__scopeId", "data-v-0b8cd24c"]]);
|
|
855
855
|
export {
|
|
856
856
|
$t as default
|
|
857
857
|
};
|