vue-data-ui 2.12.8-beta.3 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -4
- package/dist/{Arrow-kQyQXUUg.js → Arrow-B2y3GYgv.js} +1 -1
- package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-B3CZVeze.js} +2 -2
- package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-P7wV92Er.js} +1 -1
- package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-C7b6TR_9.js} +2 -2
- package/dist/{DataTable-BBqbcutV.js → DataTable-DBkfb6pd.js} +2 -2
- package/dist/{Legend-DRqzYrP9.js → Legend-DcDRW3Xd.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-DYA_rF1x.js} +3 -3
- package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-C5fpg4GN.js} +2 -2
- package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BRkuVFb4.js} +3 -3
- package/dist/{Shape-DEWxbZ-l.js → Shape-CnD-h_98.js} +1 -1
- package/dist/{Slicer-o6jJH5bw.js → Slicer-CxdgZOQ7.js} +2 -2
- package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BIAMOmfJ.js} +1 -1
- package/dist/{Title-apr_T9tg.js → Title-DoWqzga-.js} +1 -1
- package/dist/{Tooltip-BuHsMAfp.js → Tooltip-DYCBNM-_.js} +1 -1
- package/dist/{UserOptions-OVNxxnq5.js → UserOptions-B3q-xfQV.js} +16 -11
- package/dist/dom-to-png-4VVH9Qna.js +247 -0
- package/dist/img-Dy6IrSzX.js +20 -0
- package/dist/{index-CH_mJIWj.js → index-BXbyT0Qn.js} +6 -2
- package/dist/{pdf-Jun3ogRn.js → pdf-ZrUvUcH9.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-DVZpeH84.js} +1 -1
- package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-aKh5-HcK.js} +2 -2
- package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-DUHiuRmY.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-C3cqHCNp.js} +173 -173
- package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-CXsjHe1y.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-B2EpIzV9.js} +179 -179
- package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-Czvbjx_j.js} +2 -2
- package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-ClY1tgTT.js} +6 -6
- package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BQ1RVdoH.js} +113 -113
- package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-UQjCOJJV.js} +94 -94
- package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-DmEa8kef.js} +452 -452
- package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CEDZ-UcP.js} +17 -17
- package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Bx_mLhCR.js} +116 -116
- package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-D27qwk90.js} +2 -2
- package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-DKsYxh6J.js} +62 -62
- package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-CdDTbIAN.js} +2 -2
- package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DS-DfHIm.js} +149 -149
- package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-XMEmv1DK.js} +109 -109
- package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-DAm5A4u3.js} +65 -65
- package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-CTbmqqmV.js} +12 -12
- package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-CihunDsZ.js} +65 -65
- package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-CJHycmpt.js} +82 -82
- package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-Bsc9wIKK.js} +5 -5
- package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-D6AciZZe.js} +3 -3
- package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-in5WwNRr.js} +221 -221
- package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-C9IEmAmm.js} +232 -232
- package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-fDPWRpRZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-BeJRaP7N.js} +2 -2
- package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-BJbwA0F6.js} +30 -30
- package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar--YEOJ6q6.js} +75 -75
- package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-BswKH0D6.js} +16 -16
- package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-BAw8X4iu.js} +70 -70
- package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-CYkzOe_Q.js} +11 -11
- package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-BupqUnMn.js} +11 -11
- package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-BzpDL6CR.js} +5 -5
- package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-zPrbIZv5.js} +283 -282
- package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-DqCOz2LB.js} +2 -2
- package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-DQp_zboM.js} +5 -5
- package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-DoJfX7Ii.js} +100 -100
- package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-Bk4QJYsW.js} +96 -96
- package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-RxF0N8Zj.js} +164 -164
- package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-Fxr752Oi.js} +3 -3
- package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-CNScIHKI.js} +2 -2
- package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-CyMzdoJ9.js} +3 -3
- package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DMTRPWwC.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-itAGdTj_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-CZx5cF_r.js} +4 -4
- package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-POYMl6cO.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-C0EE8xrA.js} +3 -3
- package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-B6ytrTFL.js} +37 -37
- package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-u39z36tT.js} +80 -80
- package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Cvmrm0sZ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-BOFRFilm.js} +57 -57
- package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-CMhk8rpj.js} +72 -72
- package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-Cxznchnu.js} +5 -5
- package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-Du0Cskiy.js} +5 -5
- package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-BzC40iBw.js} +5 -5
- package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-D5Nk7usb.js} +297 -297
- package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-BivMp4WH.js} +81 -81
- package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-DI0Ul1Tb.js} +50 -50
- package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BfHsxhQq.js} +5 -5
- package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-ytYbdQKa.js} +67 -67
- package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CiYvMEKb.js} +55 -55
- package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-DxgCkZEV.js} +201 -182
- package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-R0tICTKy.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,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as Ne, c as Ue, o as K, e as Q, s as Ve, q as Me, r as qe } from "./index-
|
|
3
|
-
import { u as Le } from "./useNestedProp-
|
|
4
|
-
import { u as Ge } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as ce, ref as n, useSlots as ze, onMounted as A, computed as R, watch as N, onBeforeUnmount as G, shallowRef as Se, nextTick as fe, createElementBlock as v, openBlock as r, unref as u, createElementVNode as U, createBlock as he, createCommentVNode as z, normalizeClass as Ee, normalizeStyle as h, createTextVNode as D, renderSlot as p, toDisplayString as X, Fragment as j, renderList as J, mergeProps as me, createSlots as He, withCtx as w, normalizeProps as ge, guardReactiveProps as be } from "vue";
|
|
2
|
+
import { u as Ne, c as Ue, o as K, e as Q, s as Ve, q as Me, r as qe } from "./index-BXbyT0Qn.js";
|
|
3
|
+
import { u as Le } from "./useNestedProp-DVZpeH84.js";
|
|
4
|
+
import { u as Ge } from "./usePrinter-aKh5-HcK.js";
|
|
5
5
|
import { u as De } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
@@ -25,7 +25,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
setup(T, { expose: ye }) {
|
|
28
|
-
const Ce =
|
|
28
|
+
const Ce = ce(() => import("./vue-ui-skeleton-Fxr752Oi.js")), $e = ce(() => import("./UserOptions-B3q-xfQV.js")), { vue_ui_carousel_table: Te } = Ne(), i = T, V = n(Ue()), W = n(!1), O = n(!!i.dataset), ke = ze();
|
|
29
29
|
A(() => {
|
|
30
30
|
Y();
|
|
31
31
|
}), A(() => {
|
|
@@ -45,44 +45,44 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
45
45
|
property: "body"
|
|
46
46
|
}), O.value = !1));
|
|
47
47
|
}
|
|
48
|
-
const e =
|
|
48
|
+
const e = R({
|
|
49
49
|
get: () => ee(),
|
|
50
50
|
set: (t) => t
|
|
51
|
-
}), { userOptionsVisible:
|
|
51
|
+
}), { userOptionsVisible: M, setUserOptionsVisibility: Z, keepUserOptionState: _ } = De({ config: e.value });
|
|
52
52
|
function ee() {
|
|
53
53
|
return Le({
|
|
54
54
|
userConfig: i.config,
|
|
55
55
|
defaultConfig: Te
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
e.value = ee(),
|
|
60
|
-
}, { deep: !0 }),
|
|
61
|
-
|
|
58
|
+
N(() => i.config, (t) => {
|
|
59
|
+
e.value = ee(), M.value = !e.value.userOptions.showOnChartHover, Y();
|
|
60
|
+
}, { deep: !0 }), N(() => i.dataset, (t) => {
|
|
61
|
+
q();
|
|
62
62
|
}, { deep: !0 });
|
|
63
63
|
const { isPrinting: te, isImaging: ae, generatePdf: Ae, generateImage: oe } = Ge({
|
|
64
|
-
elementId: `carousel-table_${
|
|
64
|
+
elementId: `carousel-table_${V.value}`,
|
|
65
65
|
fileName: e.value.caption.text || "vue-ui-carousel-table",
|
|
66
66
|
options: e.value.userOptions.print
|
|
67
|
-
}),
|
|
67
|
+
}), m = n({
|
|
68
68
|
showAnimation: e.value.animation.use
|
|
69
|
-
}), l = n(null), ne = n(null), x = n(null), I = n(null), F = n(0),
|
|
70
|
-
function
|
|
69
|
+
}), l = n(null), ne = n(null), x = n(null), I = n(null), F = n(0), S = n(0), E = n(!1), B = n(null), b = n(null), k = n(0);
|
|
70
|
+
function q() {
|
|
71
71
|
B.value && (b.value = {
|
|
72
72
|
elements: B.value.getElementsByTagName("tr"),
|
|
73
73
|
heights: Array.from(B.value.getElementsByTagName("tr")).map((t) => t.getBoundingClientRect().height)
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
A(
|
|
77
|
-
const we =
|
|
76
|
+
A(q);
|
|
77
|
+
const we = R(() => !b.value || !b.value.heights.length ? 0 : Math.max(...b.value.heights) + F.value + S.value), Oe = R(() => i.dataset.body ? e.value.tbody.tr.visible <= i.dataset.body.length ? e.value.tbody.tr.visible : i.dataset.body.length : 0), xe = R(() => (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2) * Oe.value + F.value + S.value), c = n(0), y = n(null), d = n(0), C = n(!1), le = n(0);
|
|
78
78
|
A(() => {
|
|
79
|
-
x.value && (F.value = x.value.getBoundingClientRect().height), I.value && (
|
|
79
|
+
x.value && (F.value = x.value.getBoundingClientRect().height), I.value && (S.value = I.value.getBoundingClientRect().height), m.value.showAnimation && b.value && ie();
|
|
80
80
|
}), A(() => {
|
|
81
81
|
if (l.value) {
|
|
82
82
|
let o = function() {
|
|
83
83
|
const s = t.getBoundingClientRect().bottom;
|
|
84
|
-
a.forEach((
|
|
85
|
-
|
|
84
|
+
a.forEach((f) => {
|
|
85
|
+
f.getBoundingClientRect().top < s ? f.style.visibility = "hidden" : f.style.visibility = "visible";
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
88
|
const t = l.value.querySelector("thead"), a = Array.from(B.value.querySelectorAll("tr"));
|
|
@@ -104,8 +104,8 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
104
104
|
}
|
|
105
105
|
function se(t) {
|
|
106
106
|
if (C.value) return;
|
|
107
|
-
d.value || (d.value = t), t - d.value >= e.value.animation.speedMs && (
|
|
108
|
-
top:
|
|
107
|
+
d.value || (d.value = t), t - d.value >= e.value.animation.speedMs && (c.value += b.value.heights[k.value], (Fe() || k.value >= b.value.heights.length) && (c.value = 0, k.value = -1), k.value += 1, l.value && l.value.scrollTo({
|
|
108
|
+
top: c.value,
|
|
109
109
|
behavior: "smooth"
|
|
110
110
|
}), d.value = t), y.value = requestAnimationFrame(se);
|
|
111
111
|
}
|
|
@@ -113,79 +113,79 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
113
113
|
if (C.value) return;
|
|
114
114
|
d.value || (d.value = t);
|
|
115
115
|
const a = t - d.value, o = e.value.animation.speedMs / 4 / 1e3;
|
|
116
|
-
a >= o && (
|
|
117
|
-
top:
|
|
116
|
+
a >= o && (c.value += o, c.value >= l.value.scrollHeight - l.value.clientHeight && (c.value = 0), l.value && l.value.scrollTo({
|
|
117
|
+
top: c.value,
|
|
118
118
|
behavior: "auto"
|
|
119
119
|
}), d.value = t), y.value = requestAnimationFrame(ue);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function g() {
|
|
122
122
|
C.value = !0, cancelAnimationFrame(y.value), y.value = null;
|
|
123
123
|
}
|
|
124
|
-
G(
|
|
124
|
+
G(g);
|
|
125
125
|
function $() {
|
|
126
|
-
!C.value || !
|
|
126
|
+
!C.value || !m.value.showAnimation || (C.value = !1, d.value = 0, ie());
|
|
127
127
|
}
|
|
128
128
|
function Be() {
|
|
129
|
-
e.value.animation.pauseOnHover &&
|
|
129
|
+
e.value.animation.pauseOnHover && g();
|
|
130
130
|
}
|
|
131
|
-
const
|
|
131
|
+
const L = n(null);
|
|
132
132
|
function Pe() {
|
|
133
|
-
|
|
133
|
+
g(), clearTimeout(L.value);
|
|
134
134
|
}
|
|
135
135
|
function re() {
|
|
136
|
-
clearTimeout(
|
|
136
|
+
clearTimeout(L.value), L.value = setTimeout($, 1e3);
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
N(
|
|
139
139
|
() => e.value.animation.use,
|
|
140
140
|
(t) => {
|
|
141
|
-
t ? (
|
|
141
|
+
t ? (m.value.showAnimation = !0, $()) : (m.value.showAnimation = !1, g());
|
|
142
142
|
}
|
|
143
|
-
),
|
|
143
|
+
), N(
|
|
144
144
|
() => e.value.animation.type,
|
|
145
145
|
(t) => {
|
|
146
|
-
|
|
146
|
+
g(), c.value = 0, k.value = 0, l.value.scrollTo({
|
|
147
147
|
top: 0,
|
|
148
148
|
behavior: "auto"
|
|
149
149
|
}), $();
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
|
-
const Re =
|
|
152
|
+
const Re = R(() => e.value.responsiveBreakpoint), H = Se(null);
|
|
153
153
|
A(() => {
|
|
154
|
-
|
|
154
|
+
H.value = new ResizeObserver((t) => {
|
|
155
155
|
t.forEach((a) => {
|
|
156
|
-
|
|
157
|
-
}), F.value = x.value ? x.value.getBoundingClientRect().height : 0,
|
|
158
|
-
|
|
156
|
+
E.value = a.contentRect.width < Re.value;
|
|
157
|
+
}), F.value = x.value ? x.value.getBoundingClientRect().height : 0, S.value = I.value ? I.value.getBoundingClientRect().height : 0, k.value = 0, fe(() => {
|
|
158
|
+
g(), d.value = 0, c.value = 0, q(), $();
|
|
159
159
|
});
|
|
160
|
-
}), l.value &&
|
|
160
|
+
}), l.value && H.value.observe(l.value);
|
|
161
161
|
}), G(() => {
|
|
162
|
-
|
|
162
|
+
H.value && H.value.disconnect();
|
|
163
163
|
});
|
|
164
164
|
function de() {
|
|
165
165
|
Ae();
|
|
166
166
|
}
|
|
167
167
|
function ve() {
|
|
168
|
-
|
|
168
|
+
m.value.showAnimation = !m.value.showAnimation, m.value.showAnimation ? $() : g();
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function pe(t = null) {
|
|
171
171
|
fe(() => {
|
|
172
|
-
const
|
|
173
|
-
[i.dataset.body[
|
|
174
|
-
]),
|
|
172
|
+
const a = i.dataset.head.map((f, P) => [
|
|
173
|
+
[i.dataset.body[P]]
|
|
174
|
+
]), o = [
|
|
175
175
|
[e.value.caption.text],
|
|
176
|
-
[i.dataset.head.map((
|
|
177
|
-
].concat(
|
|
178
|
-
qe({
|
|
179
|
-
csvContent:
|
|
176
|
+
[i.dataset.head.map((f) => [f])]
|
|
177
|
+
].concat(a), s = Me(o);
|
|
178
|
+
t ? t(s) : qe({
|
|
179
|
+
csvContent: s,
|
|
180
180
|
title: e.value.caption.text || "vue-ui-carousel-table"
|
|
181
181
|
});
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
return ye({
|
|
185
|
-
pauseAnimation:
|
|
185
|
+
pauseAnimation: g,
|
|
186
186
|
resumeAnimation: $,
|
|
187
187
|
toggleAnimation: ve,
|
|
188
|
-
generateCsv:
|
|
188
|
+
generateCsv: pe,
|
|
189
189
|
generatePdf: de,
|
|
190
190
|
generateImage: oe
|
|
191
191
|
}), (t, a) => (r(), v("div", {
|
|
@@ -196,18 +196,18 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
196
196
|
onMouseenter: a[5] || (a[5] = () => u(Z)(!0)),
|
|
197
197
|
onMouseleave: a[6] || (a[6] = () => u(Z)(!1))
|
|
198
198
|
}, [
|
|
199
|
-
|
|
199
|
+
U("div", {
|
|
200
200
|
ref_key: "tableContainer",
|
|
201
201
|
ref: l,
|
|
202
|
-
id: `carousel-table_${
|
|
203
|
-
style:
|
|
202
|
+
id: `carousel-table_${V.value}`,
|
|
203
|
+
style: h({
|
|
204
204
|
height: u(te) || u(ae) ? "auto" : `${Math.max(xe.value, we.value)}px`,
|
|
205
205
|
containerType: "inline-size",
|
|
206
206
|
position: "relative",
|
|
207
207
|
overflow: "auto",
|
|
208
208
|
fontFamily: e.value.fontFamily
|
|
209
209
|
}),
|
|
210
|
-
class: Ee({ "vue-ui-responsive":
|
|
210
|
+
class: Ee({ "vue-ui-responsive": E.value, "is-playing": e.value.scrollbar.hide || !C.value && e.value.scrollbar.showOnlyOnHover }),
|
|
211
211
|
onMouseover: a[0] || (a[0] = (o) => Be()),
|
|
212
212
|
onMouseleave: a[1] || (a[1] = (o) => $()),
|
|
213
213
|
onTouchstart: a[2] || (a[2] = (o) => Pe()),
|
|
@@ -217,7 +217,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
217
217
|
O.value ? (r(), v("table", {
|
|
218
218
|
key: 0,
|
|
219
219
|
class: "vue-data-ui-carousel-table",
|
|
220
|
-
style:
|
|
220
|
+
style: h({
|
|
221
221
|
...e.value.style,
|
|
222
222
|
border: `${e.value.border.size}px solid ${e.value.border.color}`,
|
|
223
223
|
width: "100%",
|
|
@@ -225,11 +225,11 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
225
225
|
backgroundColor: e.value.tbody.backgroundColor
|
|
226
226
|
})
|
|
227
227
|
}, [
|
|
228
|
-
|
|
228
|
+
U("caption", {
|
|
229
229
|
ref_key: "caption",
|
|
230
230
|
ref: x,
|
|
231
231
|
class: "vue-data-ui-carousel-table-caption",
|
|
232
|
-
style:
|
|
232
|
+
style: h({
|
|
233
233
|
...e.value.caption.style,
|
|
234
234
|
fontFamily: "inherit",
|
|
235
235
|
position: "sticky",
|
|
@@ -239,32 +239,32 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
239
239
|
paddingRight: e.value.caption.padding.right + "px",
|
|
240
240
|
paddingBottom: e.value.caption.padding.bottom + "px",
|
|
241
241
|
paddingLeft: e.value.caption.padding.left + "px",
|
|
242
|
-
boxShadow:
|
|
242
|
+
boxShadow: E.value ? e.value.thead.tr.style.boxShadow : "none",
|
|
243
243
|
minHeight: "36px",
|
|
244
244
|
display: t.$slots.caption || e.value.caption.text || e.value.userOptions.show ? "" : "none"
|
|
245
245
|
})
|
|
246
246
|
}, [
|
|
247
247
|
D(X(e.value.caption.text && !t.$slots.caption ? e.value.caption.text : "") + " ", 1),
|
|
248
|
-
|
|
248
|
+
p(t.$slots, "caption", {}, void 0, !0)
|
|
249
249
|
], 4),
|
|
250
|
-
|
|
251
|
-
style:
|
|
250
|
+
U("thead", {
|
|
251
|
+
style: h({ ...e.value.thead.style, position: "sticky", top: `${t.$slots.caption || e.value.caption.text || e.value.userOptions.show ? F.value : 0}px`, zIndex: 1 })
|
|
252
252
|
}, [
|
|
253
|
-
|
|
253
|
+
U("tr", {
|
|
254
254
|
ref_key: "tableRow",
|
|
255
255
|
ref: I,
|
|
256
256
|
role: "row",
|
|
257
|
-
style:
|
|
257
|
+
style: h({
|
|
258
258
|
...e.value.thead.tr.style,
|
|
259
259
|
border: e.value.thead.tr.border.size ? `${e.value.thead.tr.border.size}px solid ${e.value.thead.tr.border.color}` : "none",
|
|
260
|
-
boxShadow:
|
|
260
|
+
boxShadow: E.value ? "none" : e.value.thead.tr.style.boxShadow
|
|
261
261
|
}),
|
|
262
262
|
height: `${e.value.thead.tr.height}px`
|
|
263
263
|
}, [
|
|
264
264
|
(r(!0), v(j, null, J(T.dataset.head, (o, s) => (r(), v("th", {
|
|
265
265
|
role: "cell",
|
|
266
266
|
key: `th_${s}`,
|
|
267
|
-
style:
|
|
267
|
+
style: h({
|
|
268
268
|
...e.value.thead.tr.th.style,
|
|
269
269
|
border: e.value.thead.tr.th.border.size ? `${e.value.thead.tr.th.border.size}px solid ${e.value.thead.tr.th.border.color}` : "none",
|
|
270
270
|
paddingTop: e.value.thead.tr.th.padding.top + "px",
|
|
@@ -274,7 +274,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
274
274
|
})
|
|
275
275
|
}, [
|
|
276
276
|
D(X(t.$slots.th ? "" : o) + " ", 1),
|
|
277
|
-
|
|
277
|
+
p(t.$slots, "th", me({ ref_for: !0 }, { th: o, colIndex: s }), void 0, !0)
|
|
278
278
|
], 4))), 128))
|
|
279
279
|
], 12, Je)
|
|
280
280
|
], 4),
|
|
@@ -287,16 +287,16 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
287
287
|
}
|
|
288
288
|
}, [
|
|
289
289
|
(r(!0), v(j, null, J(T.dataset.body, (o, s) => (r(), v("tr", {
|
|
290
|
-
style:
|
|
290
|
+
style: h({
|
|
291
291
|
...e.value.tbody.tr.style,
|
|
292
292
|
border: `${e.value.tbody.tr.border.size}px solid ${e.value.tbody.tr.border.color}`,
|
|
293
293
|
verticalAlign: "middle"
|
|
294
294
|
})
|
|
295
295
|
}, [
|
|
296
|
-
(r(!0), v(j, null, J(o, (
|
|
296
|
+
(r(!0), v(j, null, J(o, (f, P) => (r(), v("td", {
|
|
297
297
|
role: "cell",
|
|
298
|
-
"data-cell": T.dataset.head[
|
|
299
|
-
style:
|
|
298
|
+
"data-cell": T.dataset.head[P] || "",
|
|
299
|
+
style: h({
|
|
300
300
|
...e.value.tbody.tr.td.style,
|
|
301
301
|
border: `${e.value.tbody.tr.td.border.size}px solid ${e.value.tbody.tr.td.border.color}`,
|
|
302
302
|
backgroundColor: u(Ve)(e.value.tbody.tr.td.style.backgroundColor, s % 2 === 0 && e.value.tbody.tr.td.alternateColor ? e.value.tbody.tr.td.alternateOpacity * 100 : 100),
|
|
@@ -308,27 +308,27 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
308
308
|
}),
|
|
309
309
|
height: `${e.value.tbody.tr.height}px`
|
|
310
310
|
}, [
|
|
311
|
-
D(X(t.$slots.td ? "" :
|
|
312
|
-
|
|
311
|
+
D(X(t.$slots.td ? "" : f) + " ", 1),
|
|
312
|
+
p(t.$slots, "td", me({ ref_for: !0 }, { td: f, rowIndex: s, colIndex: P }), void 0, !0)
|
|
313
313
|
], 12, Ke))), 256))
|
|
314
314
|
], 4))), 256))
|
|
315
|
-
], 512)) :
|
|
316
|
-
], 4)) :
|
|
315
|
+
], 512)) : z("", !0)
|
|
316
|
+
], 4)) : z("", !0)
|
|
317
317
|
], 46, je),
|
|
318
|
-
O.value ?
|
|
318
|
+
O.value ? z("", !0) : (r(), he(u(Ce), {
|
|
319
319
|
key: 0,
|
|
320
320
|
config: {
|
|
321
321
|
type: "table"
|
|
322
322
|
}
|
|
323
323
|
})),
|
|
324
|
-
e.value.userOptions.show && O.value && (u(_) || u(
|
|
324
|
+
e.value.userOptions.show && O.value && (u(_) || u(M)) ? (r(), he(u($e), {
|
|
325
325
|
ref: "details",
|
|
326
326
|
key: `user_option_${le.value}`,
|
|
327
327
|
backgroundColor: e.value.style.backgroundColor,
|
|
328
328
|
color: e.value.style.color,
|
|
329
329
|
isPrinting: u(te),
|
|
330
330
|
isImaging: u(ae),
|
|
331
|
-
uid:
|
|
331
|
+
uid: V.value,
|
|
332
332
|
hasTooltip: !1,
|
|
333
333
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
334
334
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -336,7 +336,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
336
336
|
hasTable: !1,
|
|
337
337
|
hasLabel: !1,
|
|
338
338
|
hasAnimation: e.value.userOptions.buttons.animation,
|
|
339
|
-
isAnimation: !
|
|
339
|
+
isAnimation: !m.value.showAnimation,
|
|
340
340
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
341
341
|
isFullscreen: W.value,
|
|
342
342
|
chartElement: ne.value,
|
|
@@ -346,63 +346,63 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
346
346
|
offsetX: 12,
|
|
347
347
|
callbacks: e.value.userOptions.callbacks,
|
|
348
348
|
onGeneratePdf: de,
|
|
349
|
-
onGenerateCsv:
|
|
349
|
+
onGenerateCsv: pe,
|
|
350
350
|
onGenerateImage: u(oe),
|
|
351
351
|
onToggleAnimation: ve,
|
|
352
352
|
onToggleFullscreen: Ie,
|
|
353
|
-
style:
|
|
354
|
-
visibility: u(_) ? u(
|
|
353
|
+
style: h({
|
|
354
|
+
visibility: u(_) ? u(M) ? "visible" : "hidden" : "visible"
|
|
355
355
|
})
|
|
356
356
|
}, He({ _: 2 }, [
|
|
357
357
|
t.$slots.menuIcon ? {
|
|
358
358
|
name: "menuIcon",
|
|
359
359
|
fn: w(({ isOpen: o, color: s }) => [
|
|
360
|
-
|
|
360
|
+
p(t.$slots, "menuIcon", ge(be({ isOpen: o, color: s })), void 0, !0)
|
|
361
361
|
]),
|
|
362
362
|
key: "0"
|
|
363
363
|
} : void 0,
|
|
364
364
|
t.$slots.optionPdf ? {
|
|
365
365
|
name: "optionPdf",
|
|
366
366
|
fn: w(() => [
|
|
367
|
-
|
|
367
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
368
368
|
]),
|
|
369
369
|
key: "1"
|
|
370
370
|
} : void 0,
|
|
371
371
|
t.$slots.optionCsv ? {
|
|
372
372
|
name: "optionCsv",
|
|
373
373
|
fn: w(() => [
|
|
374
|
-
|
|
374
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
375
375
|
]),
|
|
376
376
|
key: "2"
|
|
377
377
|
} : void 0,
|
|
378
378
|
t.$slots.optionImg ? {
|
|
379
379
|
name: "optionImg",
|
|
380
380
|
fn: w(() => [
|
|
381
|
-
|
|
381
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
382
382
|
]),
|
|
383
383
|
key: "3"
|
|
384
384
|
} : void 0,
|
|
385
385
|
t.$slots.optionAnimation ? {
|
|
386
386
|
name: "optionAnimation",
|
|
387
387
|
fn: w(() => [
|
|
388
|
-
|
|
388
|
+
p(t.$slots, "optionAnimation", {}, void 0, !0)
|
|
389
389
|
]),
|
|
390
390
|
key: "4"
|
|
391
391
|
} : void 0,
|
|
392
392
|
t.$slots.optionFullscreen ? {
|
|
393
393
|
name: "optionFullscreen",
|
|
394
394
|
fn: w(({ toggleFullscreen: o, isFullscreen: s }) => [
|
|
395
|
-
|
|
395
|
+
p(t.$slots, "optionFullscreen", ge(be({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
|
|
396
396
|
]),
|
|
397
397
|
key: "5"
|
|
398
398
|
} : void 0
|
|
399
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasAnimation", "isAnimation", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "callbacks", "onGenerateImage", "style"])) :
|
|
399
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasAnimation", "isAnimation", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "callbacks", "onGenerateImage", "style"])) : z("", !0),
|
|
400
400
|
t.$slots.source ? (r(), v("div", Qe, [
|
|
401
|
-
|
|
402
|
-
], 512)) :
|
|
401
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
402
|
+
], 512)) : z("", !0)
|
|
403
403
|
], 544));
|
|
404
404
|
}
|
|
405
|
-
}, ot = /* @__PURE__ */ Xe(We, [["__scopeId", "data-v-
|
|
405
|
+
}, ot = /* @__PURE__ */ Xe(We, [["__scopeId", "data-v-5b513ee8"]]);
|
|
406
406
|
export {
|
|
407
407
|
ot as default
|
|
408
408
|
};
|