vue-data-ui 3.6.0 → 3.7.1
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 +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
- package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
- package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
- package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
- package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
- package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
- package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
- package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
- package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
- package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
- package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
- package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
- package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
- package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
- package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
- package/dist/vue-ui-rings-BowsO9I8.js +884 -0
- package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
- package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
- package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
- package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
- package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
- package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
- package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
- package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
- package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
- package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
- package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
- package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
- package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
- package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
import { useCssVars as ae, computed as c, defineAsyncComponent as oe, ref as h, useSlots as se, onMounted as z, watch as ne, createElementBlock as r, openBlock as n, unref as i, normalizeClass as E, normalizeStyle as C, createBlock as le, createCommentVNode as v, createElementVNode as g, createSlots as re, withCtx as b, renderSlot as u, normalizeProps as G, guardReactiveProps as B, Fragment as k, renderList as w, mergeProps as f, createVNode as ue, nextTick as ie } from "vue";
|
|
2
|
-
import { c as A, o as de, f as pe, ag as ce, J as ve, ae as me, P as fe, Q as he } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { u as ge, a as H } from "./useNestedProp-CIoDlpHu.js";
|
|
4
|
-
import { u as be } from "./usePrinter-DTzqpYKF.js";
|
|
5
|
-
import { u as ye } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { t as Ce } from "./themes-DH-N_ePR.js";
|
|
7
|
-
import { _ as ke } from "./Shape-CNXKB8O0.js";
|
|
8
|
-
import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell"], Pe = {
|
|
10
|
-
key: 0,
|
|
11
|
-
style: { display: "flex", "flex-direction": "row", gap: "2px", "align-items": "center" }
|
|
12
|
-
}, xe = ["height", "width"], Fe = {
|
|
13
|
-
key: 0,
|
|
14
|
-
role: "cell",
|
|
15
|
-
"data-cell": "sum"
|
|
16
|
-
}, Ne = {
|
|
17
|
-
key: 1,
|
|
18
|
-
role: "cell",
|
|
19
|
-
"data-cell": "average"
|
|
20
|
-
}, Se = {
|
|
21
|
-
key: 2,
|
|
22
|
-
role: "cell",
|
|
23
|
-
"data-cell": "median"
|
|
24
|
-
}, Ve = {
|
|
25
|
-
key: 1,
|
|
26
|
-
ref: "source",
|
|
27
|
-
dir: "auto"
|
|
28
|
-
}, Re = {
|
|
29
|
-
__name: "vue-ui-table-heatmap",
|
|
30
|
-
props: {
|
|
31
|
-
config: {
|
|
32
|
-
type: Object,
|
|
33
|
-
default() {
|
|
34
|
-
return {};
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
dataset: {
|
|
38
|
-
type: Array,
|
|
39
|
-
default() {
|
|
40
|
-
return [];
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
setup(D, { expose: L }) {
|
|
45
|
-
ae((e) => ({
|
|
46
|
-
cea75ac0: ee.value,
|
|
47
|
-
v98a6fd0a: j.value
|
|
48
|
-
}));
|
|
49
|
-
const X = oe(() => import("./UserOptions-BqmUW9Kp.js")), { vue_ui_table_heatmap: W } = ge(), m = D, _ = h(A()), d = h(!1), y = h(null), I = h(!1), O = h(0), J = se();
|
|
50
|
-
z(() => {
|
|
51
|
-
J["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
|
|
52
|
-
});
|
|
53
|
-
const t = c({
|
|
54
|
-
get: () => F(),
|
|
55
|
-
set: (e) => e
|
|
56
|
-
}), { userOptionsVisible: $, setUserOptionsVisibility: P, keepUserOptionState: x } = ye({ config: t.value });
|
|
57
|
-
function F() {
|
|
58
|
-
const e = H({
|
|
59
|
-
userConfig: m.config,
|
|
60
|
-
defaultConfig: W
|
|
61
|
-
});
|
|
62
|
-
return e.theme ? {
|
|
63
|
-
...H({
|
|
64
|
-
userConfig: Ce.vue_ui_table_heatmap[e.theme] || m.config,
|
|
65
|
-
defaultConfig: e
|
|
66
|
-
})
|
|
67
|
-
} : e;
|
|
68
|
-
}
|
|
69
|
-
ne(() => m.config, (e) => {
|
|
70
|
-
t.value = F(), $.value = !t.value.userOptions.showOnChartHover, V();
|
|
71
|
-
}, { deep: !0 });
|
|
72
|
-
const { isPrinting: Q, isImaging: q, generatePdf: N, generateImage: S } = be({
|
|
73
|
-
elementId: `table_heatmap_${_.value}`,
|
|
74
|
-
fileName: "vue-ui-table-heatmap",
|
|
75
|
-
options: t.value.userOptions.print
|
|
76
|
-
}), K = c(() => t.value.table.responsiveBreakpoint), Y = c(() => !!m.dataset && m.dataset.length);
|
|
77
|
-
z(() => {
|
|
78
|
-
V();
|
|
79
|
-
});
|
|
80
|
-
function V() {
|
|
81
|
-
de(m.dataset) && pe({
|
|
82
|
-
componentName: "VueUiTableHeatmap",
|
|
83
|
-
type: "dataset"
|
|
84
|
-
});
|
|
85
|
-
const e = new ResizeObserver((o) => {
|
|
86
|
-
o.forEach((a) => {
|
|
87
|
-
d.value = a.contentRect.width < K.value;
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
y.value && e.observe(y.value);
|
|
91
|
-
}
|
|
92
|
-
const R = c(() => m.dataset.map((e) => {
|
|
93
|
-
const o = e.values.map((s) => isNaN(s) ? 0 : s), a = o.reduce((s, l) => s + l, 0);
|
|
94
|
-
return {
|
|
95
|
-
...e,
|
|
96
|
-
values: o,
|
|
97
|
-
serieExtremes: {
|
|
98
|
-
max: Math.max(...o),
|
|
99
|
-
min: Math.min(...o)
|
|
100
|
-
},
|
|
101
|
-
sum: a,
|
|
102
|
-
average: a / o.length,
|
|
103
|
-
median: ce(o),
|
|
104
|
-
displayValues: [e.name, ...e.values],
|
|
105
|
-
id: A()
|
|
106
|
-
};
|
|
107
|
-
})), M = c(() => {
|
|
108
|
-
const e = R.value.flatMap((o) => o.values);
|
|
109
|
-
return {
|
|
110
|
-
min: Math.min(...e),
|
|
111
|
-
max: Math.max(...e)
|
|
112
|
-
};
|
|
113
|
-
});
|
|
114
|
-
function Z(e, o) {
|
|
115
|
-
const a = t.value.style.heatmapColors.useIndividualScale;
|
|
116
|
-
return me(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max, a ? o.min : M.value.min, a ? o.max : M.value.max, e);
|
|
117
|
-
}
|
|
118
|
-
const T = c(() => R.value.map((e) => ({
|
|
119
|
-
...e,
|
|
120
|
-
colors: e.displayValues.map((o) => isNaN(o) ? t.value.style.backgroundColor : Z(o, e.serieExtremes))
|
|
121
|
-
}))), j = c(() => t.value.style.backgroundColor), ee = c(() => `${t.value.table.borderWidth}px`);
|
|
122
|
-
function U(e = null) {
|
|
123
|
-
ie(() => {
|
|
124
|
-
const o = T.value.map((l) => [
|
|
125
|
-
[l.name],
|
|
126
|
-
l.displayValues,
|
|
127
|
-
[l.sum],
|
|
128
|
-
[l.average],
|
|
129
|
-
[l.median]
|
|
130
|
-
]), a = [[[""], t.value.table.head.values, ["sum"], ["average"], ["median"]]].concat(o), s = fe(a);
|
|
131
|
-
e ? e(s) : he({ csvContent: s, title: "vue-ui-table-heatmap" });
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
function te(e) {
|
|
135
|
-
I.value = e, O.value += 1;
|
|
136
|
-
}
|
|
137
|
-
return L({
|
|
138
|
-
generatePdf: N,
|
|
139
|
-
generateCsv: U,
|
|
140
|
-
generateImage: S
|
|
141
|
-
}), (e, o) => (n(), r("div", {
|
|
142
|
-
ref_key: "tableContainer",
|
|
143
|
-
ref: y,
|
|
144
|
-
style: C(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${t.value.userOptions.show ? "36px" : ""}; ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}; position:relative;`),
|
|
145
|
-
class: E({ "vue-data-ui-component": !0, "vue-ui-responsive": d.value }),
|
|
146
|
-
id: `table_heatmap_${_.value}`,
|
|
147
|
-
onMouseenter: o[0] || (o[0] = () => i(P)(!0)),
|
|
148
|
-
onMouseleave: o[1] || (o[1] = () => i(P)(!1))
|
|
149
|
-
}, [
|
|
150
|
-
t.value.userOptions.show && Y.value && (i(x) || i($)) ? (n(), le(i(X), {
|
|
151
|
-
ref: "details",
|
|
152
|
-
key: `user_option_${O.value}`,
|
|
153
|
-
backgroundColor: t.value.style.backgroundColor,
|
|
154
|
-
color: t.value.style.color,
|
|
155
|
-
isPrinting: i(Q),
|
|
156
|
-
isImaging: i(q),
|
|
157
|
-
uid: _.value,
|
|
158
|
-
hasPdf: t.value.userOptions.buttons.pdf,
|
|
159
|
-
hasXls: t.value.userOptions.buttons.csv,
|
|
160
|
-
hasImg: t.value.userOptions.buttons.img,
|
|
161
|
-
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
162
|
-
isFullscreen: I.value,
|
|
163
|
-
titles: { ...t.value.userOptions.buttonTitles },
|
|
164
|
-
chartElement: y.value,
|
|
165
|
-
position: t.value.userOptions.position,
|
|
166
|
-
callbacks: t.value.userOptions.callbacks,
|
|
167
|
-
printScale: t.value.userOptions.print.scale,
|
|
168
|
-
onToggleFullscreen: te,
|
|
169
|
-
onGeneratePdf: i(N),
|
|
170
|
-
onGenerateCsv: U,
|
|
171
|
-
onGenerateImage: i(S),
|
|
172
|
-
style: C({
|
|
173
|
-
visibility: i(x) ? i($) ? "visible" : "hidden" : "visible"
|
|
174
|
-
})
|
|
175
|
-
}, re({ _: 2 }, [
|
|
176
|
-
e.$slots.menuIcon ? {
|
|
177
|
-
name: "menuIcon",
|
|
178
|
-
fn: b(({ isOpen: a, color: s }) => [
|
|
179
|
-
u(e.$slots, "menuIcon", G(B({ isOpen: a, color: s })), void 0, !0)
|
|
180
|
-
]),
|
|
181
|
-
key: "0"
|
|
182
|
-
} : void 0,
|
|
183
|
-
e.$slots.optionPdf ? {
|
|
184
|
-
name: "optionPdf",
|
|
185
|
-
fn: b(() => [
|
|
186
|
-
u(e.$slots, "optionPdf", {}, void 0, !0)
|
|
187
|
-
]),
|
|
188
|
-
key: "1"
|
|
189
|
-
} : void 0,
|
|
190
|
-
e.$slots.optionCsv ? {
|
|
191
|
-
name: "optionCsv",
|
|
192
|
-
fn: b(() => [
|
|
193
|
-
u(e.$slots, "optionCsv", {}, void 0, !0)
|
|
194
|
-
]),
|
|
195
|
-
key: "2"
|
|
196
|
-
} : void 0,
|
|
197
|
-
e.$slots.optionImg ? {
|
|
198
|
-
name: "optionImg",
|
|
199
|
-
fn: b(() => [
|
|
200
|
-
u(e.$slots, "optionImg", {}, void 0, !0)
|
|
201
|
-
]),
|
|
202
|
-
key: "3"
|
|
203
|
-
} : void 0,
|
|
204
|
-
e.$slots.optionFullscreen ? {
|
|
205
|
-
name: "optionFullscreen",
|
|
206
|
-
fn: b(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
207
|
-
u(e.$slots, "optionFullscreen", G(B({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
208
|
-
]),
|
|
209
|
-
key: "4"
|
|
210
|
-
} : void 0
|
|
211
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
212
|
-
g("table", {
|
|
213
|
-
class: E({ "vue-ui-table-heatmap": !0 }),
|
|
214
|
-
style: C(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor};`)
|
|
215
|
-
}, [
|
|
216
|
-
g("caption", null, [
|
|
217
|
-
u(e.$slots, "caption", {}, void 0, !0)
|
|
218
|
-
]),
|
|
219
|
-
g("thead", null, [
|
|
220
|
-
g("tr", {
|
|
221
|
-
role: "row",
|
|
222
|
-
style: C(`background:${t.value.table.head.backgroundColor};color:${t.value.table.head.color}`)
|
|
223
|
-
}, [
|
|
224
|
-
(n(!0), r(k, null, w(t.value.table.head.values, (a, s) => (n(), r("th", $e, [
|
|
225
|
-
u(e.$slots, "head", f({ ref_for: !0 }, { value: a, rowIndex: s, type: typeof a, isResponsive: d.value }), void 0, !0)
|
|
226
|
-
]))), 256))
|
|
227
|
-
], 4)
|
|
228
|
-
]),
|
|
229
|
-
g("tbody", null, [
|
|
230
|
-
(n(!0), r(k, null, w(T.value, (a, s) => (n(), r("tr", we, [
|
|
231
|
-
(n(!0), r(k, null, w(a.displayValues, (l, p) => (n(), r("td", {
|
|
232
|
-
role: "cell",
|
|
233
|
-
"data-cell": t.value.table.head.values[p]
|
|
234
|
-
}, [
|
|
235
|
-
a.color && p === 0 ? (n(), r("div", Pe, [
|
|
236
|
-
a.color ? (n(), r("svg", {
|
|
237
|
-
key: 0,
|
|
238
|
-
height: t.value.style.shapeSize,
|
|
239
|
-
width: t.value.style.shapeSize,
|
|
240
|
-
viewBox: "0 0 20 20",
|
|
241
|
-
style: { background: "none", overflow: "visible" }
|
|
242
|
-
}, [
|
|
243
|
-
ue(ke, {
|
|
244
|
-
plot: { x: 10, y: 10 },
|
|
245
|
-
color: a.color,
|
|
246
|
-
radius: 9,
|
|
247
|
-
shape: a.shape || "circle"
|
|
248
|
-
}, null, 8, ["color", "shape"])
|
|
249
|
-
], 8, xe)) : v("", !0),
|
|
250
|
-
u(e.$slots, "rowTitle", f({ ref_for: !0 }, { value: l, rowIndex: s, colIndex: p, type: typeof l, isResponsive: d.value }), void 0, !0)
|
|
251
|
-
])) : (n(), r(k, { key: 1 }, [
|
|
252
|
-
p === 0 ? u(e.$slots, "rowTitle", f({
|
|
253
|
-
key: 0,
|
|
254
|
-
ref_for: !0
|
|
255
|
-
}, { value: l, rowIndex: s, colIndex: p, type: typeof l, isResponsive: d.value }), void 0, !0) : v("", !0),
|
|
256
|
-
p > 0 ? u(e.$slots, "cell", f({
|
|
257
|
-
key: 1,
|
|
258
|
-
ref_for: !0
|
|
259
|
-
}, { value: l, rowIndex: s, colIndex: p, type: typeof l, isResponsive: d.value, color: a.colors[p], textColor: i(ve)(a.colors[p]) }), void 0, !0) : v("", !0)
|
|
260
|
-
], 64))
|
|
261
|
-
], 8, Oe))), 256)),
|
|
262
|
-
t.value.table.showSum ? (n(), r("td", Fe, [
|
|
263
|
-
u(e.$slots, "sum", f({ ref_for: !0 }, { value: a.sum, rowIndex: s, isResponsive: d.value }), void 0, !0)
|
|
264
|
-
])) : v("", !0),
|
|
265
|
-
t.value.table.showAverage ? (n(), r("td", Ne, [
|
|
266
|
-
u(e.$slots, "average", f({ ref_for: !0 }, { value: a.average, rowIndex: s, isResponsive: d.value }), void 0, !0)
|
|
267
|
-
])) : v("", !0),
|
|
268
|
-
t.value.table.showMedian ? (n(), r("td", Se, [
|
|
269
|
-
u(e.$slots, "median", f({ ref_for: !0 }, { value: a.median, rowIndex: s, isResponsive: d.value }), void 0, !0)
|
|
270
|
-
])) : v("", !0)
|
|
271
|
-
]))), 256))
|
|
272
|
-
])
|
|
273
|
-
], 4),
|
|
274
|
-
e.$slots.source ? (n(), r("div", Ve, [
|
|
275
|
-
u(e.$slots, "source", {}, void 0, !0)
|
|
276
|
-
], 512)) : v("", !0)
|
|
277
|
-
], 46, Ie));
|
|
278
|
-
}
|
|
279
|
-
}, He = /* @__PURE__ */ _e(Re, [["__scopeId", "data-v-8e88d7ae"]]);
|
|
280
|
-
export {
|
|
281
|
-
He as default
|
|
282
|
-
};
|