vue-data-ui 3.19.4 → 3.19.6
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/{PackageVersion-DvDLFw4Z.js → PackageVersion-C7CvErYQ.js} +1 -1
- package/dist/{SlicerPreview-7pKvVSTr.js → SlicerPreview-CG1jpZqZ.js} +7 -7
- package/dist/{UserOptions-DMw8EZEo.js → UserOptions-B57xo6D2.js} +7 -3
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.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 +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.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 +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +96 -0
- package/dist/types/vue-ui-3d-bar.d.ts +2 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +2 -0
- package/dist/types/vue-ui-bullet.d.ts +2 -0
- package/dist/types/vue-ui-bump.d.ts +2 -0
- package/dist/types/vue-ui-candlestick.d.ts +2 -0
- package/dist/types/vue-ui-carousel-table.d.ts +2 -0
- package/dist/types/vue-ui-chestnut.d.ts +2 -0
- package/dist/types/vue-ui-chord.d.ts +2 -0
- package/dist/types/vue-ui-circle-pack.d.ts +2 -0
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/types/vue-ui-dashboard.d.ts +2 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +2 -0
- package/dist/types/vue-ui-donut.d.ts +2 -0
- package/dist/types/vue-ui-dumbbell.d.ts +2 -0
- package/dist/types/vue-ui-flow.d.ts +2 -0
- package/dist/types/vue-ui-funnel.d.ts +2 -0
- package/dist/types/vue-ui-galaxy.d.ts +2 -0
- package/dist/types/vue-ui-gauge.d.ts +2 -0
- package/dist/types/vue-ui-geo.d.ts +2 -0
- package/dist/types/vue-ui-heatmap.d.ts +2 -0
- package/dist/types/vue-ui-history-plot.d.ts +2 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +2 -0
- package/dist/types/vue-ui-molecule.d.ts +2 -0
- package/dist/types/vue-ui-mood-radar.d.ts +2 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +2 -0
- package/dist/types/vue-ui-onion.d.ts +2 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +2 -0
- package/dist/types/vue-ui-quadrant.d.ts +2 -0
- package/dist/types/vue-ui-quick-chart.d.ts +2 -0
- package/dist/types/vue-ui-radar.d.ts +2 -0
- package/dist/types/vue-ui-relation-circle.d.ts +2 -0
- package/dist/types/vue-ui-ridgeline.d.ts +2 -0
- package/dist/types/vue-ui-rings.d.ts +2 -0
- package/dist/types/vue-ui-scatter.d.ts +2 -0
- package/dist/types/vue-ui-stackbar.d.ts +2 -0
- package/dist/types/vue-ui-stackline.d.ts +2 -0
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +2 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +2 -0
- package/dist/types/vue-ui-thermometer.d.ts +2 -0
- package/dist/types/vue-ui-tiremarks.d.ts +2 -0
- package/dist/types/vue-ui-treemap.d.ts +2 -0
- package/dist/types/vue-ui-waffle.d.ts +2 -0
- package/dist/types/vue-ui-wheel.d.ts +2 -0
- package/dist/types/vue-ui-word-cloud.d.ts +2 -0
- package/dist/types/vue-ui-world.d.ts +2 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +2 -0
- package/dist/types/vue-ui-xy.d.ts +2 -0
- package/dist/{vue-data-ui-Dwrs581h.js → vue-data-ui-BBnKbdCT.js} +62 -62
- package/dist/vue-data-ui.js +62 -62
- package/dist/{vue-ui-3d-bar-Dzul1YtG.js → vue-ui-3d-bar-gMuK6OMP.js} +12 -2
- package/dist/{vue-ui-age-pyramid-CnJpG89s.js → vue-ui-age-pyramid-B_D1wPY4.js} +12 -2
- package/dist/{vue-ui-bullet-DOw-FBkt.js → vue-ui-bullet-Ci3tqx6A.js} +12 -2
- package/dist/{vue-ui-bump-1296K-_D.js → vue-ui-bump-31Kryh02.js} +12 -2
- package/dist/{vue-ui-candlestick-CI90c-dv.js → vue-ui-candlestick-DU0MXtKT.js} +13 -3
- package/dist/vue-ui-carousel-table-D3j0UTQ1.js +455 -0
- package/dist/{vue-ui-chestnut-DkY3aAza.js → vue-ui-chestnut-Cgf0vAxo.js} +13 -3
- package/dist/{vue-ui-chord-Cg7dZhyY.js → vue-ui-chord-DGma5NsS.js} +13 -3
- package/dist/{vue-ui-circle-pack-37xBIDxu.js → vue-ui-circle-pack-EvRfcXnZ.js} +13 -3
- package/dist/{vue-ui-cursor-CxWjtVO8.js → vue-ui-cursor-BX8kHXVE.js} +1 -1
- package/dist/{vue-ui-dag-DR7C6gpM.js → vue-ui-dag-DuOokTx4.js} +12 -2
- package/dist/{vue-ui-dashboard-DnIT0CqG.js → vue-ui-dashboard-BeZCujZv.js} +73 -63
- package/dist/{vue-ui-digits-D5q58aw1.js → vue-ui-digits-nIgbeL-K.js} +1 -1
- package/dist/{vue-ui-donut-Cpb7TZkJ.js → vue-ui-donut-FzQwgIbN.js} +12 -2
- package/dist/{vue-ui-donut-evolution-BBI4VfQj.js → vue-ui-donut-evolution-CwLYRDws.js} +12 -2
- package/dist/{vue-ui-dumbbell-C9x0-rY8.js → vue-ui-dumbbell-BmujSKH2.js} +12 -2
- package/dist/{vue-ui-flow-CxDcHmcp.js → vue-ui-flow-D4jeyY5a.js} +12 -2
- package/dist/{vue-ui-funnel-Cw0bqpEh.js → vue-ui-funnel-DQ1fOfXW.js} +13 -3
- package/dist/{vue-ui-galaxy-CRM_RYNS.js → vue-ui-galaxy-Wldw6HHG.js} +12 -2
- package/dist/{vue-ui-gauge-Bb41G91j.js → vue-ui-gauge-BzV3y_h3.js} +12 -2
- package/dist/{vue-ui-geo-C1yboyh7.js → vue-ui-geo-WLEkf2a9.js} +12 -2
- package/dist/{vue-ui-gizmo-ByZeWi5a.js → vue-ui-gizmo-C0vr-wLL.js} +1 -1
- package/dist/{vue-ui-heatmap-81urWl8N.js → vue-ui-heatmap-RmaAnr9m.js} +13 -3
- package/dist/{vue-ui-history-plot-jY_t-j8l.js → vue-ui-history-plot-Dyf2Atb2.js} +12 -2
- package/dist/{vue-ui-horizontal-bar-DPz36eo8.js → vue-ui-horizontal-bar-DG4paRTj.js} +13 -3
- package/dist/{vue-ui-kpi-D3B6aH4f.js → vue-ui-kpi-TBQhSM0a.js} +1 -1
- package/dist/{vue-ui-molecule-DSrL2Xud.js → vue-ui-molecule-Df4zCHL5.js} +13 -3
- package/dist/{vue-ui-mood-radar-B0eX1hbk.js → vue-ui-mood-radar-RQqmJU_9.js} +12 -2
- package/dist/{vue-ui-nested-donuts-5krUsJOl.js → vue-ui-nested-donuts-C7VIp7mz.js} +12 -2
- package/dist/{vue-ui-onion-BCAkjL1C.js → vue-ui-onion-DP4NWU3Y.js} +12 -2
- package/dist/{vue-ui-parallel-coordinate-plot-TyRTDqCv.js → vue-ui-parallel-coordinate-plot-a7OvbsVh.js} +12 -2
- package/dist/{vue-ui-quadrant-BZ2xUGmX.js → vue-ui-quadrant-C4GxyyE3.js} +12 -2
- package/dist/{vue-ui-quick-chart-BfqPcddN.js → vue-ui-quick-chart-BNCkZiiG.js} +12 -2
- package/dist/{vue-ui-radar-DMN97Hh0.js → vue-ui-radar-Dcq3bWA4.js} +12 -2
- package/dist/{vue-ui-relation-circle-BLXtfPaW.js → vue-ui-relation-circle-CZ1UtEIM.js} +15 -5
- package/dist/{vue-ui-ridgeline-BI95AwXT.js → vue-ui-ridgeline-CsNDB48W.js} +12 -2
- package/dist/{vue-ui-rings-DPkUAULM.js → vue-ui-rings-Bwd_i2eo.js} +12 -2
- package/dist/{vue-ui-scatter-B7TJLai5.js → vue-ui-scatter-DAa8MnhH.js} +12 -2
- package/dist/{vue-ui-skeleton-DfmwfoiV.js → vue-ui-skeleton-CPy9DsSC.js} +1 -1
- package/dist/{vue-ui-spark-trend-yuTWmJP1.js → vue-ui-spark-trend-CM06cEvG.js} +1 -1
- package/dist/{vue-ui-sparkbar-ybtZMa0p.js → vue-ui-sparkbar-CSDRWMhb.js} +1 -1
- package/dist/{vue-ui-sparkgauge-B7Hqa_80.js → vue-ui-sparkgauge-CKeKTyBH.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-CEQ7Pm3F.js → vue-ui-sparkhistogram-BSnU2_Q0.js} +1 -1
- package/dist/{vue-ui-sparkline-D8cWq4uX.js → vue-ui-sparkline-DhkrfLYf.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-D9gswj7E.js → vue-ui-sparkstackbar-D3vn49rn.js} +1 -1
- package/dist/{vue-ui-stackbar-D-3efid2.js → vue-ui-stackbar-BR7tZmWR.js} +35 -19
- package/dist/{vue-ui-stackline-CKYIzXwW.js → vue-ui-stackline-Dj9N60Js.js} +202 -185
- package/dist/{vue-ui-strip-plot-HslKryIg.js → vue-ui-strip-plot-DLH2Jc91.js} +12 -2
- package/dist/{vue-ui-table-DLkjqaWN.js → vue-ui-table-DBWGRgw6.js} +2 -2
- package/dist/{vue-ui-table-heatmap-CvHoeUmu.js → vue-ui-table-heatmap-D0SM6A1L.js} +14 -4
- package/dist/{vue-ui-table-sparkline-Br_TS18u.js → vue-ui-table-sparkline-BShpt1UR.js} +13 -3
- package/dist/{vue-ui-thermometer-BbDER4uz.js → vue-ui-thermometer-BIH00QYu.js} +15 -5
- package/dist/{vue-ui-timer-BRLnG2PT.js → vue-ui-timer-vcaC2CGp.js} +1 -1
- package/dist/{vue-ui-tiremarks-CyxBpd-s.js → vue-ui-tiremarks-BmhvsqeP.js} +12 -2
- package/dist/{vue-ui-treemap-C4xT6aQB.js → vue-ui-treemap-C-M5PHTS.js} +12 -2
- package/dist/{vue-ui-waffle-C6EUywI5.js → vue-ui-waffle-DnpUe9aj.js} +12 -2
- package/dist/{vue-ui-wheel-6L2JNsHt.js → vue-ui-wheel-D21hTOn0.js} +15 -5
- package/dist/{vue-ui-word-cloud-CCvNo143.js → vue-ui-word-cloud-C4SPxSlX.js} +12 -2
- package/dist/{vue-ui-world-DLXGPAHr.js → vue-ui-world-DSq_cPCv.js} +12 -2
- package/dist/{vue-ui-xy-D2KUL-zN.js → vue-ui-xy-Iep0AjyV.js} +13 -3
- package/dist/{vue-ui-xy-canvas-DmZd3f1x.js → vue-ui-xy-canvas-DjTurM4m.js} +13 -3
- package/package.json +1 -1
- package/dist/vue-ui-carousel-table-ebgWqQoO.js +0 -445
|
@@ -1,445 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { H as t, J as n, S as r, St as i, X as a, jt as ee } from "./lib-BkiwukKO.js";
|
|
3
|
-
import { t as te } from "./useConfig-lKgU652n.js";
|
|
4
|
-
import { t as ne } from "./usePrinter-X0yWOynH.js";
|
|
5
|
-
import { t as re } from "./useNestedProp-Ck4hsrpu.js";
|
|
6
|
-
import { t as o } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
7
|
-
import { t as ie } from "./useUserOptionState-CjPJPTg2.js";
|
|
8
|
-
import { t as ae } from "./usePrefersMotion-BywLbIko.js";
|
|
9
|
-
import { Fragment as s, computed as c, createBlock as oe, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as se, createTextVNode as f, defineAsyncComponent as ce, guardReactiveProps as p, mergeProps as le, nextTick as ue, normalizeClass as de, normalizeProps as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, shallowRef as fe, toDisplayString as S, unref as C, useSlots as pe, watch as w, withCtx as T } from "vue";
|
|
10
|
-
//#region src/components/vue-ui-carousel-table.vue
|
|
11
|
-
var me = /* @__PURE__ */ e({ default: () => E }), he = ["id"], ge = ["aria-labelledby"], _e = ["id"], ve = ["height"], ye = ["id"], be = [
|
|
12
|
-
"data-cell",
|
|
13
|
-
"aria-label",
|
|
14
|
-
"height"
|
|
15
|
-
], xe = {
|
|
16
|
-
key: 2,
|
|
17
|
-
ref: "source",
|
|
18
|
-
dir: "auto"
|
|
19
|
-
}, E = /* @__PURE__ */ o({
|
|
20
|
-
__name: "vue-ui-carousel-table",
|
|
21
|
-
props: {
|
|
22
|
-
config: {
|
|
23
|
-
type: Object,
|
|
24
|
-
default() {
|
|
25
|
-
return {};
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
dataset: {
|
|
29
|
-
type: Object,
|
|
30
|
-
default() {
|
|
31
|
-
return {};
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
emits: ["copyAlt"],
|
|
36
|
-
setup(e, { expose: o, emit: me }) {
|
|
37
|
-
let E = ce(() => import("./vue-ui-skeleton-DfmwfoiV.js").then((e) => e.n)), Se = ce(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), { vue_ui_carousel_table: Ce } = te(), we = ae(), D = e, Te = me, O = y(t()), k = y(!1), A = y(!!D.dataset), Ee = pe();
|
|
38
|
-
_(() => {
|
|
39
|
-
j();
|
|
40
|
-
}), _(() => {
|
|
41
|
-
Ee["chart-background"] && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
|
|
42
|
-
});
|
|
43
|
-
function j() {
|
|
44
|
-
i(D.dataset) ? a({
|
|
45
|
-
componentName: "VueUiCarouselTable",
|
|
46
|
-
type: "dataset"
|
|
47
|
-
}) : ((!D.dataset.head || i(D.dataset.head)) && (a({
|
|
48
|
-
componentName: "VueUiCarouselTable",
|
|
49
|
-
type: "datasetAttribute",
|
|
50
|
-
property: "head"
|
|
51
|
-
}), A.value = !1), (!D.dataset.body || i(D.dataset.body)) && (a({
|
|
52
|
-
componentName: "VueUiCarouselTable",
|
|
53
|
-
type: "datasetAttribute",
|
|
54
|
-
property: "body"
|
|
55
|
-
}), A.value = !1)), we.value && (M.value.userOptions.buttons.animation = !1);
|
|
56
|
-
}
|
|
57
|
-
let M = c({
|
|
58
|
-
get: () => ke(),
|
|
59
|
-
set: (e) => e
|
|
60
|
-
}), De = c(() => M.value.userOptions.useCursorPointer), { userOptionsVisible: N, setUserOptionsVisibility: P, keepUserOptionState: Oe } = ie({ config: M.value });
|
|
61
|
-
function ke() {
|
|
62
|
-
return re({
|
|
63
|
-
userConfig: D.config,
|
|
64
|
-
defaultConfig: Ce
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
w(() => D.config, (e) => {
|
|
68
|
-
M.value = ke(), N.value = !M.value.userOptions.showOnChartHover, j();
|
|
69
|
-
}, { deep: !0 }), w(() => D.dataset, (e) => {
|
|
70
|
-
G();
|
|
71
|
-
}, { deep: !0 });
|
|
72
|
-
let { isPrinting: Ae, isImaging: je, generatePdf: Me, generateImage: Ne } = ne({
|
|
73
|
-
elementId: `carousel-table_${O.value}`,
|
|
74
|
-
fileName: M.value.caption.text || "vue-ui-carousel-table",
|
|
75
|
-
options: M.value.userOptions.print
|
|
76
|
-
}), F = y({ showAnimation: M.value.animation.use }), I = y(null), Pe = y(null), L = y(null), R = y(null), z = y(0), B = y(0), V = y(!1), H = y(null), U = y(null), W = y(0);
|
|
77
|
-
function G() {
|
|
78
|
-
H.value && (U.value = {
|
|
79
|
-
elements: H.value.getElementsByTagName("tr"),
|
|
80
|
-
heights: Array.from(H.value.getElementsByTagName("tr")).map((e) => e.getBoundingClientRect().height)
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
_(G);
|
|
84
|
-
let Fe = c(() => !U.value || !U.value.heights.length ? 0 : Math.max(...U.value.heights) + z.value + B.value), Ie = c(() => D.dataset.body ? M.value.tbody.tr.visible <= D.dataset.body.length ? M.value.tbody.tr.visible : D.dataset.body.length : 0), Le = c(() => (M.value.tbody.tr.height + M.value.tbody.tr.td.padding.top + M.value.tbody.tr.td.padding.bottom + M.value.tbody.tr.border.size * 2) * Ie.value + z.value + B.value), K = y(0), q = y(null), J = y(0), Y = y(!1), Re = y(0);
|
|
85
|
-
_(() => {
|
|
86
|
-
L.value && (z.value = L.value.getBoundingClientRect().height), R.value && (B.value = R.value.getBoundingClientRect().height), F.value.showAnimation && U.value && Be();
|
|
87
|
-
}), _(() => {
|
|
88
|
-
if (I.value) {
|
|
89
|
-
let e = I.value.querySelector("thead"), t = Array.from(H.value.querySelectorAll("tr"));
|
|
90
|
-
function n() {
|
|
91
|
-
let n = e.getBoundingClientRect().bottom;
|
|
92
|
-
t.forEach((e) => {
|
|
93
|
-
e.getBoundingClientRect().top < n ? e.style.visibility = "hidden" : e.style.visibility = "visible";
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
I.value.addEventListener("scroll", n), n(), g(() => {
|
|
97
|
-
I.value.removeEventListener("scroll", n);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
function ze(e) {
|
|
102
|
-
k.value = e, Re.value += 1;
|
|
103
|
-
}
|
|
104
|
-
function Be() {
|
|
105
|
-
we.value || !q.value && !Y.value && (M.value.animation.type === "scroll" ? q.value = requestAnimationFrame(He) : q.value = requestAnimationFrame(Ue));
|
|
106
|
-
}
|
|
107
|
-
function Ve() {
|
|
108
|
-
if (!I.value) return !1;
|
|
109
|
-
let { scrollTop: e, scrollHeight: t, clientHeight: n } = I.value;
|
|
110
|
-
return e + n >= t;
|
|
111
|
-
}
|
|
112
|
-
function He(e) {
|
|
113
|
-
Y.value || (J.value ||= e, e - J.value >= M.value.animation.speedMs && (K.value += U.value.heights[W.value], (Ve() || W.value >= U.value.heights.length) && (K.value = 0, W.value = -1), W.value += 1, I.value && I.value.scrollTo({
|
|
114
|
-
top: K.value,
|
|
115
|
-
behavior: "smooth"
|
|
116
|
-
}), J.value = e), q.value = requestAnimationFrame(He));
|
|
117
|
-
}
|
|
118
|
-
function Ue(e) {
|
|
119
|
-
if (Y.value) return;
|
|
120
|
-
J.value ||= e;
|
|
121
|
-
let t = e - J.value, n = M.value.animation.speedMs / 4 / 1e3;
|
|
122
|
-
t >= n && (K.value += n, K.value >= I.value.scrollHeight - I.value.clientHeight && (K.value = 0), I.value && I.value.scrollTo({
|
|
123
|
-
top: K.value,
|
|
124
|
-
behavior: "auto"
|
|
125
|
-
}), J.value = e), q.value = requestAnimationFrame(Ue);
|
|
126
|
-
}
|
|
127
|
-
function X() {
|
|
128
|
-
Y.value = !0, cancelAnimationFrame(q.value), q.value = null;
|
|
129
|
-
}
|
|
130
|
-
g(X);
|
|
131
|
-
function Z() {
|
|
132
|
-
!Y.value || !F.value.showAnimation || (Y.value = !1, J.value = 0, Be());
|
|
133
|
-
}
|
|
134
|
-
function We() {
|
|
135
|
-
M.value.animation.pauseOnHover && X();
|
|
136
|
-
}
|
|
137
|
-
let Q = y(null);
|
|
138
|
-
function Ge() {
|
|
139
|
-
X(), clearTimeout(Q.value);
|
|
140
|
-
}
|
|
141
|
-
function Ke() {
|
|
142
|
-
clearTimeout(Q.value), Q.value = setTimeout(Z, 1e3);
|
|
143
|
-
}
|
|
144
|
-
w(() => M.value.animation.use, (e) => {
|
|
145
|
-
e ? (F.value.showAnimation = !0, Z()) : (F.value.showAnimation = !1, X());
|
|
146
|
-
}), w(() => M.value.animation.type, (e) => {
|
|
147
|
-
X(), K.value = 0, W.value = 0, I.value.scrollTo({
|
|
148
|
-
top: 0,
|
|
149
|
-
behavior: "auto"
|
|
150
|
-
}), Z();
|
|
151
|
-
});
|
|
152
|
-
let qe = c(() => M.value.responsiveBreakpoint), $ = fe(null);
|
|
153
|
-
_(() => {
|
|
154
|
-
$.value = new ResizeObserver((e) => {
|
|
155
|
-
e.forEach((e) => {
|
|
156
|
-
V.value = e.contentRect.width < qe.value;
|
|
157
|
-
}), z.value = L.value ? L.value.getBoundingClientRect().height : 0, B.value = R.value ? R.value.getBoundingClientRect().height : 0, W.value = 0, ue(() => {
|
|
158
|
-
X(), J.value = 0, K.value = 0, G(), Z();
|
|
159
|
-
});
|
|
160
|
-
}), I.value && $.value.observe(I.value);
|
|
161
|
-
}), g(() => {
|
|
162
|
-
$.value && $.value.disconnect();
|
|
163
|
-
});
|
|
164
|
-
function Je() {
|
|
165
|
-
Me();
|
|
166
|
-
}
|
|
167
|
-
function Ye() {
|
|
168
|
-
F.value.showAnimation = !F.value.showAnimation, F.value.showAnimation ? Z() : X();
|
|
169
|
-
}
|
|
170
|
-
function Xe(e = null) {
|
|
171
|
-
ue(() => {
|
|
172
|
-
let t = D.dataset.head.map((e, t) => [[D.dataset.body[t]]]), i = r([[M.value.caption.text], [D.dataset.head.map((e) => [e])]].concat(t));
|
|
173
|
-
e ? e(i) : n({
|
|
174
|
-
csvContent: i,
|
|
175
|
-
title: M.value.caption.text || "vue-ui-carousel-table"
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
async function Ze() {
|
|
180
|
-
if (Te("copyAlt", {
|
|
181
|
-
config: M.value,
|
|
182
|
-
dataset: D.dataset
|
|
183
|
-
}), !M.value.userOptions.callbacks.altCopy) {
|
|
184
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
188
|
-
config: M.value,
|
|
189
|
-
dataset: D.dataset
|
|
190
|
-
}));
|
|
191
|
-
}
|
|
192
|
-
return o({
|
|
193
|
-
pauseAnimation: X,
|
|
194
|
-
resumeAnimation: Z,
|
|
195
|
-
toggleAnimation: Ye,
|
|
196
|
-
generateCsv: Xe,
|
|
197
|
-
generatePdf: Je,
|
|
198
|
-
generateImage: Ne,
|
|
199
|
-
copyAlt: Ze
|
|
200
|
-
}), (t, n) => (v(), u("div", {
|
|
201
|
-
class: "vue-data-ui-component vue-ui-carousel-table",
|
|
202
|
-
style: {
|
|
203
|
-
position: "relative",
|
|
204
|
-
overflow: "visible"
|
|
205
|
-
},
|
|
206
|
-
ref_key: "chartContainer",
|
|
207
|
-
ref: Pe,
|
|
208
|
-
onMouseenter: n[5] ||= () => C(P)(!0),
|
|
209
|
-
onMouseleave: n[6] ||= () => C(P)(!1)
|
|
210
|
-
}, [
|
|
211
|
-
d("div", {
|
|
212
|
-
ref_key: "tableContainer",
|
|
213
|
-
ref: I,
|
|
214
|
-
id: `carousel-table_${O.value}`,
|
|
215
|
-
style: h({
|
|
216
|
-
height: C(Ae) || C(je) ? "auto" : `${Math.max(Le.value, Fe.value)}px`,
|
|
217
|
-
containerType: "inline-size",
|
|
218
|
-
position: "relative",
|
|
219
|
-
overflow: "auto",
|
|
220
|
-
fontFamily: M.value.fontFamily
|
|
221
|
-
}),
|
|
222
|
-
class: de({
|
|
223
|
-
"vue-ui-responsive": V.value,
|
|
224
|
-
"is-playing": M.value.scrollbar.hide || !Y.value && M.value.scrollbar.showOnlyOnHover
|
|
225
|
-
}),
|
|
226
|
-
onMouseover: n[0] ||= (e) => We(),
|
|
227
|
-
onMouseleave: n[1] ||= (e) => Z(),
|
|
228
|
-
onTouchstart: n[2] ||= (e) => Ge(),
|
|
229
|
-
onTouchend: n[3] ||= (e) => Ke(),
|
|
230
|
-
onTouchcancel: n[4] ||= (e) => Ke()
|
|
231
|
-
}, [A.value ? (v(), u("table", {
|
|
232
|
-
key: 0,
|
|
233
|
-
class: "vue-data-ui-carousel-table",
|
|
234
|
-
"aria-labelledby": `carousel-caption-${O.value}`,
|
|
235
|
-
style: h({
|
|
236
|
-
...M.value.style,
|
|
237
|
-
border: `${M.value.border.size}px solid ${M.value.border.color}`,
|
|
238
|
-
width: "100%",
|
|
239
|
-
borderCollapse: "collapse",
|
|
240
|
-
backgroundColor: M.value.tbody.backgroundColor
|
|
241
|
-
})
|
|
242
|
-
}, [
|
|
243
|
-
d("caption", {
|
|
244
|
-
ref_key: "caption",
|
|
245
|
-
ref: L,
|
|
246
|
-
class: "vue-data-ui-carousel-table-caption",
|
|
247
|
-
id: `carousel-caption-${O.value}`,
|
|
248
|
-
style: h({
|
|
249
|
-
...M.value.caption.style,
|
|
250
|
-
fontFamily: "inherit",
|
|
251
|
-
position: "sticky",
|
|
252
|
-
top: 0,
|
|
253
|
-
zIndex: 2,
|
|
254
|
-
paddingTop: M.value.caption.padding.top + "px",
|
|
255
|
-
paddingRight: M.value.caption.padding.right + "px",
|
|
256
|
-
paddingBottom: M.value.caption.padding.bottom + "px",
|
|
257
|
-
paddingLeft: M.value.caption.padding.left + "px",
|
|
258
|
-
boxShadow: V.value ? M.value.thead.tr.style.boxShadow : "none",
|
|
259
|
-
minHeight: "36px",
|
|
260
|
-
display: t.$slots.caption || M.value.caption.text || M.value.userOptions.show ? "" : "none"
|
|
261
|
-
})
|
|
262
|
-
}, [f(S(M.value.caption.text && !t.$slots.caption ? M.value.caption.text : "") + " ", 1), x(t.$slots, "caption", {}, void 0, !0)], 12, _e),
|
|
263
|
-
d("thead", {
|
|
264
|
-
role: "rowgroup",
|
|
265
|
-
style: h({
|
|
266
|
-
...M.value.thead.style,
|
|
267
|
-
position: "sticky",
|
|
268
|
-
top: `${t.$slots.caption || M.value.caption.text || M.value.userOptions.show ? z.value : 0}px`,
|
|
269
|
-
zIndex: 1
|
|
270
|
-
})
|
|
271
|
-
}, [d("tr", {
|
|
272
|
-
ref_key: "tableRow",
|
|
273
|
-
ref: R,
|
|
274
|
-
role: "row",
|
|
275
|
-
style: h({
|
|
276
|
-
...M.value.thead.tr.style,
|
|
277
|
-
border: M.value.thead.tr.border.size ? `${M.value.thead.tr.border.size}px solid ${M.value.thead.tr.border.color}` : "none",
|
|
278
|
-
boxShadow: V.value ? "none" : M.value.thead.tr.style.boxShadow
|
|
279
|
-
}),
|
|
280
|
-
height: `${M.value.thead.tr.height}px`
|
|
281
|
-
}, [(v(!0), u(s, null, b(e.dataset.head, (e, n) => (v(), u("th", {
|
|
282
|
-
role: "cell",
|
|
283
|
-
key: `th_${n}`,
|
|
284
|
-
id: `col-${n}`,
|
|
285
|
-
scope: "col",
|
|
286
|
-
style: h({
|
|
287
|
-
...M.value.thead.tr.th.style,
|
|
288
|
-
border: M.value.thead.tr.th.border.size ? `${M.value.thead.tr.th.border.size}px solid ${M.value.thead.tr.th.border.color}` : "none",
|
|
289
|
-
paddingTop: M.value.thead.tr.th.padding.top + "px",
|
|
290
|
-
paddingRight: M.value.thead.tr.th.padding.right + "px",
|
|
291
|
-
paddingBottom: M.value.thead.tr.th.padding.bottom + "px",
|
|
292
|
-
paddingLeft: M.value.thead.tr.th.padding.left + "px"
|
|
293
|
-
})
|
|
294
|
-
}, [f(S(t.$slots.th ? "" : e) + " ", 1), x(t.$slots, "th", le({ ref_for: !0 }, {
|
|
295
|
-
th: e,
|
|
296
|
-
colIndex: n
|
|
297
|
-
}), void 0, !0)], 12, ye))), 128))], 12, ve)], 4),
|
|
298
|
-
e.dataset.body && e.dataset.head ? (v(), u("tbody", {
|
|
299
|
-
key: 0,
|
|
300
|
-
ref_key: "tbody",
|
|
301
|
-
ref: H,
|
|
302
|
-
"aria-live": "polite",
|
|
303
|
-
style: { clipPath: "inset(0,0,0,0)" }
|
|
304
|
-
}, [(v(!0), u(s, null, b(e.dataset.body, (n, r) => (v(), u("tr", { style: h({
|
|
305
|
-
...M.value.tbody.tr.style,
|
|
306
|
-
border: `${M.value.tbody.tr.border.size}px solid ${M.value.tbody.tr.border.color}`,
|
|
307
|
-
verticalAlign: "middle"
|
|
308
|
-
}) }, [(v(!0), u(s, null, b(n, (n, i) => (v(), u("td", {
|
|
309
|
-
role: "cell",
|
|
310
|
-
"data-cell": e.dataset.head[i] || "",
|
|
311
|
-
"aria-label": `${e.dataset.head[i]}: ${n}`,
|
|
312
|
-
style: h({
|
|
313
|
-
...M.value.tbody.tr.td.style,
|
|
314
|
-
border: `${M.value.tbody.tr.td.border.size}px solid ${M.value.tbody.tr.td.border.color}`,
|
|
315
|
-
backgroundColor: C(ee)(M.value.tbody.tr.td.style.backgroundColor, r % 2 == 0 && M.value.tbody.tr.td.alternateColor ? M.value.tbody.tr.td.alternateOpacity * 100 : 100),
|
|
316
|
-
paddingTop: M.value.tbody.tr.td.padding.top + "px",
|
|
317
|
-
paddingRight: M.value.tbody.tr.td.padding.right + "px",
|
|
318
|
-
paddingBottom: M.value.tbody.tr.td.padding.bottom + "px",
|
|
319
|
-
paddingLeft: M.value.tbody.tr.td.padding.left + "px",
|
|
320
|
-
verticalAlign: "middle"
|
|
321
|
-
}),
|
|
322
|
-
height: `${M.value.tbody.tr.height}px`
|
|
323
|
-
}, [f(S(t.$slots.td ? "" : n) + " ", 1), x(t.$slots, "td", le({ ref_for: !0 }, {
|
|
324
|
-
td: n,
|
|
325
|
-
rowIndex: r,
|
|
326
|
-
colIndex: i
|
|
327
|
-
}), void 0, !0)], 12, be))), 256))], 4))), 256))], 512)) : l("", !0)
|
|
328
|
-
], 12, ge)) : l("", !0)], 46, he),
|
|
329
|
-
A.value ? l("", !0) : (v(), oe(C(E), {
|
|
330
|
-
key: 0,
|
|
331
|
-
config: { type: "table" }
|
|
332
|
-
})),
|
|
333
|
-
M.value.userOptions.show && A.value && (C(Oe) || C(N)) ? (v(), oe(C(Se), {
|
|
334
|
-
ref: "details",
|
|
335
|
-
key: `user_option_${Re.value}`,
|
|
336
|
-
backgroundColor: M.value.style.backgroundColor,
|
|
337
|
-
color: M.value.style.color,
|
|
338
|
-
isPrinting: C(Ae),
|
|
339
|
-
isImaging: C(je),
|
|
340
|
-
uid: O.value,
|
|
341
|
-
hasTooltip: !1,
|
|
342
|
-
hasPdf: M.value.userOptions.buttons.pdf,
|
|
343
|
-
hasImg: M.value.userOptions.buttons.img,
|
|
344
|
-
hasXls: M.value.userOptions.buttons.csv,
|
|
345
|
-
hasTable: !1,
|
|
346
|
-
hasLabel: !1,
|
|
347
|
-
hasAnimation: M.value.userOptions.buttons.animation,
|
|
348
|
-
isAnimation: !F.value.showAnimation,
|
|
349
|
-
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
350
|
-
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
351
|
-
isFullscreen: k.value,
|
|
352
|
-
chartElement: Pe.value,
|
|
353
|
-
position: M.value.userOptions.position,
|
|
354
|
-
titles: { ...M.value.userOptions.buttonTitles },
|
|
355
|
-
zIndex: 3,
|
|
356
|
-
offsetX: 12,
|
|
357
|
-
callbacks: M.value.userOptions.callbacks,
|
|
358
|
-
printScale: M.value.userOptions.print.scale,
|
|
359
|
-
isCursorPointer: De.value,
|
|
360
|
-
onGeneratePdf: Je,
|
|
361
|
-
onGenerateCsv: Xe,
|
|
362
|
-
onGenerateImage: C(Ne),
|
|
363
|
-
onToggleAnimation: Ye,
|
|
364
|
-
onToggleFullscreen: ze,
|
|
365
|
-
onCopyAlt: Ze,
|
|
366
|
-
style: h({ visibility: C(Oe) ? C(N) ? "visible" : "hidden" : "visible" })
|
|
367
|
-
}, se({ _: 2 }, [
|
|
368
|
-
t.$slots.menuIcon ? {
|
|
369
|
-
name: "menuIcon",
|
|
370
|
-
fn: T(({ isOpen: e, color: n }) => [x(t.$slots, "menuIcon", m(p({
|
|
371
|
-
isOpen: e,
|
|
372
|
-
color: n
|
|
373
|
-
})), void 0, !0)]),
|
|
374
|
-
key: "0"
|
|
375
|
-
} : void 0,
|
|
376
|
-
t.$slots.optionPdf ? {
|
|
377
|
-
name: "optionPdf",
|
|
378
|
-
fn: T(() => [x(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
379
|
-
key: "1"
|
|
380
|
-
} : void 0,
|
|
381
|
-
t.$slots.optionCsv ? {
|
|
382
|
-
name: "optionCsv",
|
|
383
|
-
fn: T(() => [x(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
384
|
-
key: "2"
|
|
385
|
-
} : void 0,
|
|
386
|
-
t.$slots.optionImg ? {
|
|
387
|
-
name: "optionImg",
|
|
388
|
-
fn: T(() => [x(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
389
|
-
key: "3"
|
|
390
|
-
} : void 0,
|
|
391
|
-
t.$slots.optionSvg ? {
|
|
392
|
-
name: "optionSvg",
|
|
393
|
-
fn: T(() => [x(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
394
|
-
key: "4"
|
|
395
|
-
} : void 0,
|
|
396
|
-
t.$slots.optionAnimation ? {
|
|
397
|
-
name: "optionAnimation",
|
|
398
|
-
fn: T(({ toggleAnimation: e, isAnimated: n }) => [x(t.$slots, "optionAnimation", m(p({
|
|
399
|
-
toggleAnimation: e,
|
|
400
|
-
isAnimated: n
|
|
401
|
-
})), void 0, !0)]),
|
|
402
|
-
key: "5"
|
|
403
|
-
} : void 0,
|
|
404
|
-
t.$slots.optionFullscreen ? {
|
|
405
|
-
name: "optionFullscreen",
|
|
406
|
-
fn: T(({ toggleFullscreen: e, isFullscreen: n }) => [x(t.$slots, "optionFullscreen", m(p({
|
|
407
|
-
toggleFullscreen: e,
|
|
408
|
-
isFullscreen: n
|
|
409
|
-
})), void 0, !0)]),
|
|
410
|
-
key: "6"
|
|
411
|
-
} : void 0,
|
|
412
|
-
t.$slots.optionAltCopy ? {
|
|
413
|
-
name: "optionAltCopy",
|
|
414
|
-
fn: T(({ altCopy: e }) => [x(t.$slots, "optionAltCopy", m(p({ altCopy: e })), void 0, !0)]),
|
|
415
|
-
key: "7"
|
|
416
|
-
} : void 0
|
|
417
|
-
]), 1032, [
|
|
418
|
-
"backgroundColor",
|
|
419
|
-
"color",
|
|
420
|
-
"isPrinting",
|
|
421
|
-
"isImaging",
|
|
422
|
-
"uid",
|
|
423
|
-
"hasPdf",
|
|
424
|
-
"hasImg",
|
|
425
|
-
"hasXls",
|
|
426
|
-
"hasAnimation",
|
|
427
|
-
"isAnimation",
|
|
428
|
-
"hasFullscreen",
|
|
429
|
-
"hasAltCopy",
|
|
430
|
-
"isFullscreen",
|
|
431
|
-
"chartElement",
|
|
432
|
-
"position",
|
|
433
|
-
"titles",
|
|
434
|
-
"callbacks",
|
|
435
|
-
"printScale",
|
|
436
|
-
"isCursorPointer",
|
|
437
|
-
"onGenerateImage",
|
|
438
|
-
"style"
|
|
439
|
-
])) : l("", !0),
|
|
440
|
-
t.$slots.source ? (v(), u("div", xe, [x(t.$slots, "source", {}, void 0, !0)], 512)) : l("", !0)
|
|
441
|
-
], 544));
|
|
442
|
-
}
|
|
443
|
-
}, [["__scopeId", "data-v-e55be8b8"]]);
|
|
444
|
-
//#endregion
|
|
445
|
-
export { me as n, E as t };
|