vue-data-ui 2.12.6 → 2.12.7-beta.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/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
- package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
- package/dist/PackageVersion-DaWGaZxE.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/SparkTooltip-DcdMxgqn.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
- package/dist/Tooltip-B07vY6jm.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-C8URL2IU.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
- package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
- package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
- package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
- package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
- package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
- package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
- package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
- package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import q from "./vue-ui-xy-
|
|
3
|
-
import Q from "./vue-ui-donut-
|
|
1
|
+
import { a4 as z, A as P, l as T, r as U, f as V, h as X, q as j, z as Y, d as W, G as J, u as K, p as Z } from "./index-BHEd2dgu.js";
|
|
2
|
+
import q from "./vue-ui-xy-D1luVUXJ.js";
|
|
3
|
+
import Q from "./vue-ui-donut-BIFf4SLq.js";
|
|
4
4
|
import { resolveComponent as x, createElementBlock as u, openBlock as c, normalizeStyle as g, createElementVNode as a, createCommentVNode as b, toDisplayString as d, Fragment as I, renderList as _, normalizeClass as p, createTextVNode as w, withDirectives as O, vModelText as S, withKeys as L, withModifiers as A, vModelSelect as $, createBlock as E, createVNode as ee } from "vue";
|
|
5
5
|
import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const se = {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { _ as ye } from "./Shape-C69a0f29.js";
|
|
1
|
+
import { useCssVars as oe, computed as c, defineAsyncComponent as ae, ref as h, useSlots as se, onMounted as z, watch as ne, createElementBlock as l, openBlock as n, unref as u, normalizeClass as E, normalizeStyle as C, createBlock as le, createCommentVNode as v, createElementVNode as g, createSlots as re, withCtx as b, renderSlot as r, 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 { u as de, c as A, a as pe, o as ce, e as ve, a5 as me, G as fe, O as he, q as ge, r as be } from "./index-BHEd2dgu.js";
|
|
3
|
+
import { u as H } from "./useNestedProp-CZztHZIm.js";
|
|
4
|
+
import { u as ye } from "./usePrinter-C8URL2IU.js";
|
|
6
5
|
import { u as Ce } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import
|
|
8
|
-
|
|
6
|
+
import ke from "./Shape-B6kIkp2s.js";
|
|
7
|
+
import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell"], xe = {
|
|
9
9
|
key: 0,
|
|
10
10
|
style: { display: "flex", "flex-direction": "row", gap: "2px", "align-items": "center" }
|
|
11
|
-
},
|
|
11
|
+
}, Fe = ["height", "width"], Pe = {
|
|
12
12
|
key: 0,
|
|
13
13
|
role: "cell",
|
|
14
14
|
"data-cell": "sum"
|
|
15
|
-
},
|
|
15
|
+
}, Ne = {
|
|
16
16
|
key: 1,
|
|
17
17
|
role: "cell",
|
|
18
18
|
"data-cell": "average"
|
|
19
|
-
},
|
|
19
|
+
}, Ve = {
|
|
20
20
|
key: 2,
|
|
21
21
|
role: "cell",
|
|
22
22
|
"data-cell": "median"
|
|
23
|
-
},
|
|
23
|
+
}, Re = {
|
|
24
24
|
key: 1,
|
|
25
25
|
ref: "source",
|
|
26
26
|
dir: "auto"
|
|
27
|
-
},
|
|
27
|
+
}, Me = {
|
|
28
28
|
__name: "vue-ui-table-heatmap",
|
|
29
29
|
props: {
|
|
30
30
|
config: {
|
|
@@ -41,118 +41,118 @@ const _e = ["id"], Ie = { role: "cell" }, $e = { role: "row" }, we = ["data-cell
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
setup(D, { expose: L }) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
44
|
+
oe((e) => ({
|
|
45
|
+
bf477d1e: ee.value,
|
|
46
|
+
"71369fcc": j.value
|
|
47
47
|
}));
|
|
48
|
-
const { vue_ui_table_heatmap:
|
|
48
|
+
const X = ae(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_table_heatmap: W } = de(), m = D, _ = h(A()), i = h(!1), y = h(null), I = h(!1), O = h(0), q = se();
|
|
49
49
|
z(() => {
|
|
50
|
-
|
|
50
|
+
q["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
|
|
51
51
|
});
|
|
52
|
-
const t =
|
|
52
|
+
const t = c({
|
|
53
53
|
get: () => P(),
|
|
54
54
|
set: (e) => e
|
|
55
55
|
}), { userOptionsVisible: $, setUserOptionsVisibility: x, keepUserOptionState: F } = Ce({ config: t.value });
|
|
56
56
|
function P() {
|
|
57
|
-
const e =
|
|
57
|
+
const e = H({
|
|
58
58
|
userConfig: m.config,
|
|
59
|
-
defaultConfig:
|
|
59
|
+
defaultConfig: W
|
|
60
60
|
});
|
|
61
61
|
return e.theme ? {
|
|
62
|
-
...
|
|
63
|
-
userConfig:
|
|
62
|
+
...H({
|
|
63
|
+
userConfig: pe.vue_ui_table_heatmap[e.theme] || m.config,
|
|
64
64
|
defaultConfig: e
|
|
65
65
|
})
|
|
66
66
|
} : e;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
ne(() => m.config, (e) => {
|
|
69
69
|
t.value = P(), $.value = !t.value.userOptions.showOnChartHover, R();
|
|
70
70
|
}, { deep: !0 });
|
|
71
|
-
const { isPrinting:
|
|
71
|
+
const { isPrinting: J, isImaging: K, generatePdf: N, generateImage: V } = ye({
|
|
72
72
|
elementId: `table_heatmap_${_.value}`,
|
|
73
73
|
fileName: "vue-ui-table-heatmap",
|
|
74
74
|
options: t.value.userOptions.print
|
|
75
|
-
}),
|
|
75
|
+
}), Q = c(() => t.value.table.responsiveBreakpoint), Y = c(() => !!m.dataset && m.dataset.length);
|
|
76
76
|
z(() => {
|
|
77
77
|
R();
|
|
78
78
|
});
|
|
79
79
|
function R() {
|
|
80
|
-
|
|
80
|
+
ce(m.dataset) && ve({
|
|
81
81
|
componentName: "VueUiTableHeatmap",
|
|
82
82
|
type: "dataset"
|
|
83
83
|
});
|
|
84
|
-
const e = new ResizeObserver((
|
|
85
|
-
|
|
86
|
-
i.value =
|
|
84
|
+
const e = new ResizeObserver((a) => {
|
|
85
|
+
a.forEach((o) => {
|
|
86
|
+
i.value = o.contentRect.width < Q.value;
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
y.value && e.observe(y.value);
|
|
90
90
|
}
|
|
91
|
-
const M =
|
|
92
|
-
const
|
|
91
|
+
const M = c(() => m.dataset.map((e) => {
|
|
92
|
+
const a = e.values.map((s) => isNaN(s) ? 0 : s), o = a.reduce((s, p) => s + p, 0);
|
|
93
93
|
return {
|
|
94
94
|
...e,
|
|
95
|
-
values:
|
|
95
|
+
values: a,
|
|
96
96
|
serieExtremes: {
|
|
97
|
-
max: Math.max(...
|
|
98
|
-
min: Math.min(...
|
|
97
|
+
max: Math.max(...a),
|
|
98
|
+
min: Math.min(...a)
|
|
99
99
|
},
|
|
100
|
-
sum:
|
|
101
|
-
average:
|
|
102
|
-
median:
|
|
100
|
+
sum: o,
|
|
101
|
+
average: o / a.length,
|
|
102
|
+
median: me(a),
|
|
103
103
|
displayValues: [e.name, ...e.values],
|
|
104
|
-
id:
|
|
104
|
+
id: A()
|
|
105
105
|
};
|
|
106
|
-
})), S =
|
|
107
|
-
const e = M.value.flatMap((
|
|
106
|
+
})), S = c(() => {
|
|
107
|
+
const e = M.value.flatMap((a) => a.values);
|
|
108
108
|
return {
|
|
109
109
|
min: Math.min(...e),
|
|
110
110
|
max: Math.max(...e)
|
|
111
111
|
};
|
|
112
112
|
});
|
|
113
|
-
function
|
|
114
|
-
const
|
|
115
|
-
return
|
|
113
|
+
function Z(e, a) {
|
|
114
|
+
const o = t.value.style.heatmapColors.useIndividualScale;
|
|
115
|
+
return he(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max, o ? a.min : S.value.min, o ? a.max : S.value.max, e);
|
|
116
116
|
}
|
|
117
|
-
const T =
|
|
117
|
+
const T = c(() => M.value.map((e) => ({
|
|
118
118
|
...e,
|
|
119
|
-
colors: e.displayValues.map((
|
|
120
|
-
}))),
|
|
119
|
+
colors: e.displayValues.map((a) => isNaN(a) ? t.value.style.backgroundColor : Z(a, e.serieExtremes))
|
|
120
|
+
}))), j = c(() => t.value.style.backgroundColor), ee = c(() => `${t.value.table.borderWidth}px`);
|
|
121
121
|
function U() {
|
|
122
|
-
|
|
122
|
+
ie(() => {
|
|
123
123
|
const e = T.value.map((s) => [
|
|
124
124
|
[s.name],
|
|
125
125
|
s.displayValues,
|
|
126
126
|
[s.sum],
|
|
127
127
|
[s.average],
|
|
128
128
|
[s.median]
|
|
129
|
-
]),
|
|
130
|
-
|
|
129
|
+
]), a = [[[""], t.value.table.head.values, ["sum"], ["average"], ["median"]]].concat(e), o = ge(a);
|
|
130
|
+
be({ csvContent: o, title: "vue-ui-table-heatmap" });
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function te(e) {
|
|
134
134
|
I.value = e, O.value += 1;
|
|
135
135
|
}
|
|
136
136
|
return L({
|
|
137
137
|
generatePdf: N,
|
|
138
138
|
generateCsv: U,
|
|
139
139
|
generateImage: V
|
|
140
|
-
}), (e,
|
|
140
|
+
}), (e, a) => (n(), l("div", {
|
|
141
141
|
ref_key: "tableContainer",
|
|
142
142
|
ref: y,
|
|
143
143
|
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;`),
|
|
144
144
|
class: E({ "vue-ui-responsive": i.value }),
|
|
145
145
|
id: `table_heatmap_${_.value}`,
|
|
146
|
-
onMouseenter:
|
|
147
|
-
onMouseleave:
|
|
146
|
+
onMouseenter: a[0] || (a[0] = () => u(x)(!0)),
|
|
147
|
+
onMouseleave: a[1] || (a[1] = () => u(x)(!1))
|
|
148
148
|
}, [
|
|
149
|
-
t.value.userOptions.show &&
|
|
149
|
+
t.value.userOptions.show && Y.value && (u(F) || u($)) ? (n(), le(u(X), {
|
|
150
150
|
ref: "details",
|
|
151
151
|
key: `user_option_${O.value}`,
|
|
152
152
|
backgroundColor: t.value.style.backgroundColor,
|
|
153
153
|
color: t.value.style.color,
|
|
154
|
-
isPrinting: u(
|
|
155
|
-
isImaging: u(
|
|
154
|
+
isPrinting: u(J),
|
|
155
|
+
isImaging: u(K),
|
|
156
156
|
uid: _.value,
|
|
157
157
|
hasPdf: t.value.userOptions.buttons.pdf,
|
|
158
158
|
hasXls: t.value.userOptions.buttons.csv,
|
|
@@ -162,18 +162,18 @@ const _e = ["id"], Ie = { role: "cell" }, $e = { role: "row" }, we = ["data-cell
|
|
|
162
162
|
titles: { ...t.value.userOptions.buttonTitles },
|
|
163
163
|
chartElement: y.value,
|
|
164
164
|
position: t.value.userOptions.position,
|
|
165
|
-
onToggleFullscreen:
|
|
165
|
+
onToggleFullscreen: te,
|
|
166
166
|
onGeneratePdf: u(N),
|
|
167
167
|
onGenerateCsv: U,
|
|
168
168
|
onGenerateImage: u(V),
|
|
169
169
|
style: C({
|
|
170
170
|
visibility: u(F) ? u($) ? "visible" : "hidden" : "visible"
|
|
171
171
|
})
|
|
172
|
-
},
|
|
172
|
+
}, re({ _: 2 }, [
|
|
173
173
|
e.$slots.menuIcon ? {
|
|
174
174
|
name: "menuIcon",
|
|
175
|
-
fn: b(({ isOpen:
|
|
176
|
-
r(e.$slots, "menuIcon", G(B({ isOpen:
|
|
175
|
+
fn: b(({ isOpen: o, color: s }) => [
|
|
176
|
+
r(e.$slots, "menuIcon", G(B({ isOpen: o, color: s })), void 0, !0)
|
|
177
177
|
]),
|
|
178
178
|
key: "0"
|
|
179
179
|
} : void 0,
|
|
@@ -200,12 +200,12 @@ const _e = ["id"], Ie = { role: "cell" }, $e = { role: "row" }, we = ["data-cell
|
|
|
200
200
|
} : void 0,
|
|
201
201
|
e.$slots.optionFullscreen ? {
|
|
202
202
|
name: "optionFullscreen",
|
|
203
|
-
fn: b(({ toggleFullscreen:
|
|
204
|
-
r(e.$slots, "optionFullscreen", G(B({ toggleFullscreen:
|
|
203
|
+
fn: b(({ toggleFullscreen: o, isFullscreen: s }) => [
|
|
204
|
+
r(e.$slots, "optionFullscreen", G(B({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
|
|
205
205
|
]),
|
|
206
206
|
key: "4"
|
|
207
207
|
} : void 0
|
|
208
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
208
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
209
209
|
g("table", {
|
|
210
210
|
class: E({ "vue-ui-table-heatmap": !0 }),
|
|
211
211
|
style: C(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor};`)
|
|
@@ -218,62 +218,62 @@ const _e = ["id"], Ie = { role: "cell" }, $e = { role: "row" }, we = ["data-cell
|
|
|
218
218
|
role: "row",
|
|
219
219
|
style: C(`background:${t.value.table.head.backgroundColor};color:${t.value.table.head.color}`)
|
|
220
220
|
}, [
|
|
221
|
-
(n(!0), l(k, null, w(t.value.table.head.values, (
|
|
222
|
-
r(e.$slots, "head", f({ ref_for: !0 }, { value:
|
|
221
|
+
(n(!0), l(k, null, w(t.value.table.head.values, (o, s) => (n(), l("th", $e, [
|
|
222
|
+
r(e.$slots, "head", f({ ref_for: !0 }, { value: o, rowIndex: s, type: typeof o, isResponsive: i.value }), void 0, !0)
|
|
223
223
|
]))), 256))
|
|
224
224
|
], 4)
|
|
225
225
|
]),
|
|
226
226
|
g("tbody", null, [
|
|
227
|
-
(n(!0), l(k, null, w(T.value, (
|
|
228
|
-
(n(!0), l(k, null, w(
|
|
227
|
+
(n(!0), l(k, null, w(T.value, (o, s) => (n(), l("tr", we, [
|
|
228
|
+
(n(!0), l(k, null, w(o.displayValues, (p, d) => (n(), l("td", {
|
|
229
229
|
role: "cell",
|
|
230
230
|
"data-cell": t.value.table.head.values[d]
|
|
231
231
|
}, [
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
o.color && d === 0 ? (n(), l("div", xe, [
|
|
233
|
+
o.color ? (n(), l("svg", {
|
|
234
234
|
key: 0,
|
|
235
235
|
height: t.value.style.shapeSize,
|
|
236
236
|
width: t.value.style.shapeSize,
|
|
237
237
|
viewBox: "0 0 20 20",
|
|
238
238
|
style: { background: "none", overflow: "visible" }
|
|
239
239
|
}, [
|
|
240
|
-
|
|
240
|
+
ue(ke, {
|
|
241
241
|
plot: { x: 10, y: 10 },
|
|
242
|
-
color:
|
|
242
|
+
color: o.color,
|
|
243
243
|
radius: 9,
|
|
244
|
-
shape:
|
|
244
|
+
shape: o.shape || "circle"
|
|
245
245
|
}, null, 8, ["color", "shape"])
|
|
246
|
-
], 8,
|
|
246
|
+
], 8, Fe)) : v("", !0),
|
|
247
247
|
r(e.$slots, "rowTitle", f({ ref_for: !0 }, { value: p, rowIndex: s, colIndex: d, type: typeof p, isResponsive: i.value }), void 0, !0)
|
|
248
248
|
])) : (n(), l(k, { key: 1 }, [
|
|
249
249
|
d === 0 ? r(e.$slots, "rowTitle", f({
|
|
250
250
|
key: 0,
|
|
251
251
|
ref_for: !0
|
|
252
|
-
}, { value: p, rowIndex: s, colIndex: d, type: typeof p, isResponsive: i.value }), void 0, !0) :
|
|
252
|
+
}, { value: p, rowIndex: s, colIndex: d, type: typeof p, isResponsive: i.value }), void 0, !0) : v("", !0),
|
|
253
253
|
d > 0 ? r(e.$slots, "cell", f({
|
|
254
254
|
key: 1,
|
|
255
255
|
ref_for: !0
|
|
256
|
-
}, { value: p, rowIndex: s, colIndex: d, type: typeof p, isResponsive: i.value, color:
|
|
256
|
+
}, { value: p, rowIndex: s, colIndex: d, type: typeof p, isResponsive: i.value, color: o.colors[d], textColor: u(fe)(o.colors[d]) }), void 0, !0) : v("", !0)
|
|
257
257
|
], 64))
|
|
258
|
-
], 8,
|
|
259
|
-
t.value.table.showSum ? (n(), l("td",
|
|
260
|
-
r(e.$slots, "sum", f({ ref_for: !0 }, { value:
|
|
261
|
-
])) :
|
|
262
|
-
t.value.table.showAverage ? (n(), l("td",
|
|
263
|
-
r(e.$slots, "average", f({ ref_for: !0 }, { value:
|
|
264
|
-
])) :
|
|
265
|
-
t.value.table.showMedian ? (n(), l("td",
|
|
266
|
-
r(e.$slots, "median", f({ ref_for: !0 }, { value:
|
|
267
|
-
])) :
|
|
258
|
+
], 8, Oe))), 256)),
|
|
259
|
+
t.value.table.showSum ? (n(), l("td", Pe, [
|
|
260
|
+
r(e.$slots, "sum", f({ ref_for: !0 }, { value: o.sum, rowIndex: s, isResponsive: i.value }), void 0, !0)
|
|
261
|
+
])) : v("", !0),
|
|
262
|
+
t.value.table.showAverage ? (n(), l("td", Ne, [
|
|
263
|
+
r(e.$slots, "average", f({ ref_for: !0 }, { value: o.average, rowIndex: s, isResponsive: i.value }), void 0, !0)
|
|
264
|
+
])) : v("", !0),
|
|
265
|
+
t.value.table.showMedian ? (n(), l("td", Ve, [
|
|
266
|
+
r(e.$slots, "median", f({ ref_for: !0 }, { value: o.median, rowIndex: s, isResponsive: i.value }), void 0, !0)
|
|
267
|
+
])) : v("", !0)
|
|
268
268
|
]))), 256))
|
|
269
269
|
])
|
|
270
270
|
], 4),
|
|
271
|
-
e.$slots.source ? (n(), l("div",
|
|
271
|
+
e.$slots.source ? (n(), l("div", Re, [
|
|
272
272
|
r(e.$slots, "source", {}, void 0, !0)
|
|
273
|
-
], 512)) :
|
|
274
|
-
], 46,
|
|
273
|
+
], 512)) : v("", !0)
|
|
274
|
+
], 46, Ie));
|
|
275
275
|
}
|
|
276
|
-
},
|
|
276
|
+
}, Ae = /* @__PURE__ */ _e(Me, [["__scopeId", "data-v-5fd02fac"]]);
|
|
277
277
|
export {
|
|
278
|
-
|
|
278
|
+
Ae as default
|
|
279
279
|
};
|