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,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as se } from "./useNestedProp-
|
|
3
|
-
import ne from "./vue-ui-xy-
|
|
4
|
-
import re from "./vue-ui-donut-
|
|
5
|
-
import le from "./BaseIcon-
|
|
1
|
+
import { m as Y, t as W, n as G, q as J, d as K, r as Z, u as q, v as Q, l as $, w as ee, s as E, p as te } from "./lib-C5BH09_g.js";
|
|
2
|
+
import { u as se } from "./useNestedProp-CWo6bftQ.js";
|
|
3
|
+
import { V as ne } from "./vue-ui-xy-BdXV4naK.js";
|
|
4
|
+
import { V as re } from "./vue-ui-donut-BqiNPW3q.js";
|
|
5
|
+
import le from "./BaseIcon-CofSxalQ.js";
|
|
6
6
|
import { resolveComponent as D, createElementBlock as u, openBlock as c, normalizeStyle as g, createCommentVNode as b, createElementVNode as a, toDisplayString as h, withDirectives as O, withKeys as L, withModifiers as S, vModelText as A, createVNode as P, Fragment as C, renderList as k, normalizeClass as p, createTextVNode as _, vModelSelect as H, createBlock as R, ref as oe, computed as ae, useCssVars as ie } from "vue";
|
|
7
7
|
import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const x = {
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { useCssVars as de, computed as v, defineAsyncComponent as ce, ref as b, useSlots as pe, onMounted as R, watch as ve, createElementBlock as r, openBlock as s, unref as i, normalizeClass as U, normalizeStyle as y, createBlock as fe, createCommentVNode as f, createElementVNode as g, createSlots as me, withCtx as h, renderSlot as u, normalizeProps as B, guardReactiveProps as D, Fragment as k, renderList as F, mergeProps as m, createVNode as be, nextTick as ge } from "vue";
|
|
2
|
+
import { c as G, o as he, g as Ce, ak as ye, w as ke, ai as _e, u as Ie, q as $e } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { u as Fe, a as w } from "./useNestedProp-CWo6bftQ.js";
|
|
4
|
+
import { u as we } from "./usePrinter-DCJzEiS8.js";
|
|
5
|
+
import { u as Oe } from "./useThemeCheck-DGJ31Vi5.js";
|
|
6
|
+
import { u as Ae } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { _ as xe } from "./Shape-DE6X_t31.js";
|
|
8
|
+
import { _ as Pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const H = { style: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, table: { head: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, L = { style: { backgroundColor: "#FFF8E1", color: "#424242", heatmapColors: { min: "#FFECB3", max: "#D32F2F" } }, table: { head: { backgroundColor: "#FFF8E1", color: "#424242" } } }, X = { style: { backgroundColor: "#1A1A1A", color: "#99AA99", heatmapColors: { min: "#333333", max: "#66CC66" } }, table: { head: { backgroundColor: "#1A1A1A", color: "#99AA99" } } }, W = { style: { backgroundColor: "#fbfafa", color: "#8A9892", heatmapColors: { max: "#C09E85", min: "#DCDFE7" } }, table: { head: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, q = { style: { backgroundColor: "#f6f6fb", color: "#50606C", heatmapColors: { max: "#4A6A75", min: "#EFECEC" } }, table: { head: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, J = {
|
|
10
|
+
default: {},
|
|
11
|
+
dark: H,
|
|
12
|
+
celebration: L,
|
|
13
|
+
hack: X,
|
|
14
|
+
zen: W,
|
|
15
|
+
concrete: q
|
|
16
|
+
}, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17
|
+
__proto__: null,
|
|
18
|
+
celebration: L,
|
|
19
|
+
concrete: q,
|
|
20
|
+
dark: H,
|
|
21
|
+
default: J,
|
|
22
|
+
hack: X,
|
|
23
|
+
zen: W
|
|
24
|
+
}, Symbol.toStringTag, { value: "Module" })), Ee = ["id"], Se = { role: "cell" }, Te = { role: "row" }, Ne = ["data-cell"], Ve = {
|
|
25
|
+
key: 0,
|
|
26
|
+
style: { display: "flex", "flex-direction": "row", gap: "2px", "align-items": "center" }
|
|
27
|
+
}, Me = ["height", "width"], ze = {
|
|
28
|
+
key: 0,
|
|
29
|
+
role: "cell",
|
|
30
|
+
"data-cell": "sum"
|
|
31
|
+
}, Re = {
|
|
32
|
+
key: 1,
|
|
33
|
+
role: "cell",
|
|
34
|
+
"data-cell": "average"
|
|
35
|
+
}, Ue = {
|
|
36
|
+
key: 2,
|
|
37
|
+
role: "cell",
|
|
38
|
+
"data-cell": "median"
|
|
39
|
+
}, Be = {
|
|
40
|
+
key: 1,
|
|
41
|
+
ref: "source",
|
|
42
|
+
dir: "auto"
|
|
43
|
+
}, De = {
|
|
44
|
+
__name: "vue-ui-table-heatmap",
|
|
45
|
+
props: {
|
|
46
|
+
config: {
|
|
47
|
+
type: Object,
|
|
48
|
+
default() {
|
|
49
|
+
return {};
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
dataset: {
|
|
53
|
+
type: Array,
|
|
54
|
+
default() {
|
|
55
|
+
return [];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
setup(K, { expose: Q }) {
|
|
60
|
+
de((e) => ({
|
|
61
|
+
v7bb1d4dc: ue.value,
|
|
62
|
+
v4b487b6d: re.value
|
|
63
|
+
}));
|
|
64
|
+
const Y = ce(() => import("./UserOptions-B3I-s3Lw.js")), { vue_ui_table_heatmap: Z } = Fe(), { isThemeValid: j, warnInvalidTheme: ee } = Oe(), p = K, _ = b(G()), d = b(!1), C = b(null), I = b(!1), O = b(0), te = pe();
|
|
65
|
+
R(() => {
|
|
66
|
+
te["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
|
|
67
|
+
});
|
|
68
|
+
const t = v({
|
|
69
|
+
get: () => P(),
|
|
70
|
+
set: (e) => e
|
|
71
|
+
}), { userOptionsVisible: $, setUserOptionsVisibility: A, keepUserOptionState: x } = Ae({ config: t.value });
|
|
72
|
+
function P() {
|
|
73
|
+
const e = w({
|
|
74
|
+
userConfig: p.config,
|
|
75
|
+
defaultConfig: Z
|
|
76
|
+
}), a = e.theme;
|
|
77
|
+
if (!a) return e;
|
|
78
|
+
if (!j.value(e))
|
|
79
|
+
return ee(e), e;
|
|
80
|
+
const o = w({
|
|
81
|
+
userConfig: J[a] || p.config,
|
|
82
|
+
defaultConfig: e
|
|
83
|
+
});
|
|
84
|
+
return w({
|
|
85
|
+
userConfig: p.config,
|
|
86
|
+
defaultConfig: o
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
ve(() => p.config, (e) => {
|
|
90
|
+
t.value = P(), $.value = !t.value.userOptions.showOnChartHover, T();
|
|
91
|
+
}, { deep: !0 });
|
|
92
|
+
const { isPrinting: oe, isImaging: ae, generatePdf: E, generateImage: S } = we({
|
|
93
|
+
elementId: `table_heatmap_${_.value}`,
|
|
94
|
+
fileName: "vue-ui-table-heatmap",
|
|
95
|
+
options: t.value.userOptions.print
|
|
96
|
+
}), ne = v(() => t.value.table.responsiveBreakpoint), se = v(() => !!p.dataset && p.dataset.length);
|
|
97
|
+
R(() => {
|
|
98
|
+
T();
|
|
99
|
+
});
|
|
100
|
+
function T() {
|
|
101
|
+
he(p.dataset) && Ce({
|
|
102
|
+
componentName: "VueUiTableHeatmap",
|
|
103
|
+
type: "dataset"
|
|
104
|
+
});
|
|
105
|
+
const e = new ResizeObserver((a) => {
|
|
106
|
+
a.forEach((o) => {
|
|
107
|
+
d.value = o.contentRect.width < ne.value;
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
C.value && e.observe(C.value);
|
|
111
|
+
}
|
|
112
|
+
const N = v(() => p.dataset.map((e) => {
|
|
113
|
+
const a = e.values.map((n) => isNaN(n) ? 0 : n), o = a.reduce((n, l) => n + l, 0);
|
|
114
|
+
return {
|
|
115
|
+
...e,
|
|
116
|
+
values: a,
|
|
117
|
+
serieExtremes: {
|
|
118
|
+
max: Math.max(...a),
|
|
119
|
+
min: Math.min(...a)
|
|
120
|
+
},
|
|
121
|
+
sum: o,
|
|
122
|
+
average: o / a.length,
|
|
123
|
+
median: ye(a),
|
|
124
|
+
displayValues: [e.name, ...e.values],
|
|
125
|
+
id: G()
|
|
126
|
+
};
|
|
127
|
+
})), V = v(() => {
|
|
128
|
+
const e = N.value.flatMap((a) => a.values);
|
|
129
|
+
return {
|
|
130
|
+
min: Math.min(...e),
|
|
131
|
+
max: Math.max(...e)
|
|
132
|
+
};
|
|
133
|
+
});
|
|
134
|
+
function le(e, a) {
|
|
135
|
+
const o = t.value.style.heatmapColors.useIndividualScale;
|
|
136
|
+
return _e(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max, o ? a.min : V.value.min, o ? a.max : V.value.max, e);
|
|
137
|
+
}
|
|
138
|
+
const M = v(() => N.value.map((e) => ({
|
|
139
|
+
...e,
|
|
140
|
+
colors: e.displayValues.map((a) => isNaN(a) ? t.value.style.backgroundColor : le(a, e.serieExtremes))
|
|
141
|
+
}))), re = v(() => t.value.style.backgroundColor), ue = v(() => `${t.value.table.borderWidth}px`);
|
|
142
|
+
function z(e = null) {
|
|
143
|
+
ge(() => {
|
|
144
|
+
const a = M.value.map((l) => [
|
|
145
|
+
[l.name],
|
|
146
|
+
l.displayValues,
|
|
147
|
+
[l.sum],
|
|
148
|
+
[l.average],
|
|
149
|
+
[l.median]
|
|
150
|
+
]), o = [[[""], t.value.table.head.values, ["sum"], ["average"], ["median"]]].concat(a), n = Ie(o);
|
|
151
|
+
e ? e(n) : $e({ csvContent: n, title: "vue-ui-table-heatmap" });
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function ie(e) {
|
|
155
|
+
I.value = e, O.value += 1;
|
|
156
|
+
}
|
|
157
|
+
return Q({
|
|
158
|
+
generatePdf: E,
|
|
159
|
+
generateCsv: z,
|
|
160
|
+
generateImage: S
|
|
161
|
+
}), (e, a) => (s(), r("div", {
|
|
162
|
+
ref_key: "tableContainer",
|
|
163
|
+
ref: C,
|
|
164
|
+
style: y(`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;`),
|
|
165
|
+
class: U({ "vue-data-ui-component": !0, "vue-ui-responsive": d.value }),
|
|
166
|
+
id: `table_heatmap_${_.value}`,
|
|
167
|
+
onMouseenter: a[0] || (a[0] = () => i(A)(!0)),
|
|
168
|
+
onMouseleave: a[1] || (a[1] = () => i(A)(!1))
|
|
169
|
+
}, [
|
|
170
|
+
t.value.userOptions.show && se.value && (i(x) || i($)) ? (s(), fe(i(Y), {
|
|
171
|
+
ref: "details",
|
|
172
|
+
key: `user_option_${O.value}`,
|
|
173
|
+
backgroundColor: t.value.style.backgroundColor,
|
|
174
|
+
color: t.value.style.color,
|
|
175
|
+
isPrinting: i(oe),
|
|
176
|
+
isImaging: i(ae),
|
|
177
|
+
uid: _.value,
|
|
178
|
+
hasPdf: t.value.userOptions.buttons.pdf,
|
|
179
|
+
hasXls: t.value.userOptions.buttons.csv,
|
|
180
|
+
hasImg: t.value.userOptions.buttons.img,
|
|
181
|
+
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
182
|
+
isFullscreen: I.value,
|
|
183
|
+
titles: { ...t.value.userOptions.buttonTitles },
|
|
184
|
+
chartElement: C.value,
|
|
185
|
+
position: t.value.userOptions.position,
|
|
186
|
+
callbacks: t.value.userOptions.callbacks,
|
|
187
|
+
printScale: t.value.userOptions.print.scale,
|
|
188
|
+
onToggleFullscreen: ie,
|
|
189
|
+
onGeneratePdf: i(E),
|
|
190
|
+
onGenerateCsv: z,
|
|
191
|
+
onGenerateImage: i(S),
|
|
192
|
+
style: y({
|
|
193
|
+
visibility: i(x) ? i($) ? "visible" : "hidden" : "visible"
|
|
194
|
+
})
|
|
195
|
+
}, me({ _: 2 }, [
|
|
196
|
+
e.$slots.menuIcon ? {
|
|
197
|
+
name: "menuIcon",
|
|
198
|
+
fn: h(({ isOpen: o, color: n }) => [
|
|
199
|
+
u(e.$slots, "menuIcon", B(D({ isOpen: o, color: n })), void 0, !0)
|
|
200
|
+
]),
|
|
201
|
+
key: "0"
|
|
202
|
+
} : void 0,
|
|
203
|
+
e.$slots.optionPdf ? {
|
|
204
|
+
name: "optionPdf",
|
|
205
|
+
fn: h(() => [
|
|
206
|
+
u(e.$slots, "optionPdf", {}, void 0, !0)
|
|
207
|
+
]),
|
|
208
|
+
key: "1"
|
|
209
|
+
} : void 0,
|
|
210
|
+
e.$slots.optionCsv ? {
|
|
211
|
+
name: "optionCsv",
|
|
212
|
+
fn: h(() => [
|
|
213
|
+
u(e.$slots, "optionCsv", {}, void 0, !0)
|
|
214
|
+
]),
|
|
215
|
+
key: "2"
|
|
216
|
+
} : void 0,
|
|
217
|
+
e.$slots.optionImg ? {
|
|
218
|
+
name: "optionImg",
|
|
219
|
+
fn: h(() => [
|
|
220
|
+
u(e.$slots, "optionImg", {}, void 0, !0)
|
|
221
|
+
]),
|
|
222
|
+
key: "3"
|
|
223
|
+
} : void 0,
|
|
224
|
+
e.$slots.optionFullscreen ? {
|
|
225
|
+
name: "optionFullscreen",
|
|
226
|
+
fn: h(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
227
|
+
u(e.$slots, "optionFullscreen", B(D({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
228
|
+
]),
|
|
229
|
+
key: "4"
|
|
230
|
+
} : void 0
|
|
231
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
232
|
+
g("table", {
|
|
233
|
+
class: U({ "vue-ui-table-heatmap": !0 }),
|
|
234
|
+
style: y(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor};`)
|
|
235
|
+
}, [
|
|
236
|
+
g("caption", null, [
|
|
237
|
+
u(e.$slots, "caption", {}, void 0, !0)
|
|
238
|
+
]),
|
|
239
|
+
g("thead", null, [
|
|
240
|
+
g("tr", {
|
|
241
|
+
role: "row",
|
|
242
|
+
style: y(`background:${t.value.table.head.backgroundColor};color:${t.value.table.head.color}`)
|
|
243
|
+
}, [
|
|
244
|
+
(s(!0), r(k, null, F(t.value.table.head.values, (o, n) => (s(), r("th", Se, [
|
|
245
|
+
u(e.$slots, "head", m({ ref_for: !0 }, { value: o, rowIndex: n, type: typeof o, isResponsive: d.value }), void 0, !0)
|
|
246
|
+
]))), 256))
|
|
247
|
+
], 4)
|
|
248
|
+
]),
|
|
249
|
+
g("tbody", null, [
|
|
250
|
+
(s(!0), r(k, null, F(M.value, (o, n) => (s(), r("tr", Te, [
|
|
251
|
+
(s(!0), r(k, null, F(o.displayValues, (l, c) => (s(), r("td", {
|
|
252
|
+
role: "cell",
|
|
253
|
+
"data-cell": t.value.table.head.values[c]
|
|
254
|
+
}, [
|
|
255
|
+
o.color && c === 0 ? (s(), r("div", Ve, [
|
|
256
|
+
o.color ? (s(), r("svg", {
|
|
257
|
+
key: 0,
|
|
258
|
+
height: t.value.style.shapeSize,
|
|
259
|
+
width: t.value.style.shapeSize,
|
|
260
|
+
viewBox: "0 0 20 20",
|
|
261
|
+
style: { background: "none", overflow: "visible" }
|
|
262
|
+
}, [
|
|
263
|
+
be(xe, {
|
|
264
|
+
plot: { x: 10, y: 10 },
|
|
265
|
+
color: o.color,
|
|
266
|
+
radius: 9,
|
|
267
|
+
shape: o.shape || "circle"
|
|
268
|
+
}, null, 8, ["color", "shape"])
|
|
269
|
+
], 8, Me)) : f("", !0),
|
|
270
|
+
u(e.$slots, "rowTitle", m({ ref_for: !0 }, { value: l, rowIndex: n, colIndex: c, type: typeof l, isResponsive: d.value }), void 0, !0)
|
|
271
|
+
])) : (s(), r(k, { key: 1 }, [
|
|
272
|
+
c === 0 ? u(e.$slots, "rowTitle", m({
|
|
273
|
+
key: 0,
|
|
274
|
+
ref_for: !0
|
|
275
|
+
}, { value: l, rowIndex: n, colIndex: c, type: typeof l, isResponsive: d.value }), void 0, !0) : f("", !0),
|
|
276
|
+
c > 0 ? u(e.$slots, "cell", m({
|
|
277
|
+
key: 1,
|
|
278
|
+
ref_for: !0
|
|
279
|
+
}, { value: l, rowIndex: n, colIndex: c, type: typeof l, isResponsive: d.value, color: o.colors[c], textColor: i(ke)(o.colors[c]) }), void 0, !0) : f("", !0)
|
|
280
|
+
], 64))
|
|
281
|
+
], 8, Ne))), 256)),
|
|
282
|
+
t.value.table.showSum ? (s(), r("td", ze, [
|
|
283
|
+
u(e.$slots, "sum", m({ ref_for: !0 }, { value: o.sum, rowIndex: n, isResponsive: d.value }), void 0, !0)
|
|
284
|
+
])) : f("", !0),
|
|
285
|
+
t.value.table.showAverage ? (s(), r("td", Re, [
|
|
286
|
+
u(e.$slots, "average", m({ ref_for: !0 }, { value: o.average, rowIndex: n, isResponsive: d.value }), void 0, !0)
|
|
287
|
+
])) : f("", !0),
|
|
288
|
+
t.value.table.showMedian ? (s(), r("td", Ue, [
|
|
289
|
+
u(e.$slots, "median", m({ ref_for: !0 }, { value: o.median, rowIndex: n, isResponsive: d.value }), void 0, !0)
|
|
290
|
+
])) : f("", !0)
|
|
291
|
+
]))), 256))
|
|
292
|
+
])
|
|
293
|
+
], 4),
|
|
294
|
+
e.$slots.source ? (s(), r("div", Be, [
|
|
295
|
+
u(e.$slots, "source", {}, void 0, !0)
|
|
296
|
+
], 512)) : f("", !0)
|
|
297
|
+
], 46, Ee));
|
|
298
|
+
}
|
|
299
|
+
}, Ge = /* @__PURE__ */ Pe(De, [["__scopeId", "data-v-9de1ab93"]]), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
300
|
+
__proto__: null,
|
|
301
|
+
default: Ge
|
|
302
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
303
|
+
export {
|
|
304
|
+
Ye as a,
|
|
305
|
+
Ze as b,
|
|
306
|
+
Ge as v
|
|
307
|
+
};
|