vue-data-ui 3.22.8 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/BaseIcon-CDTIUIKV.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.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-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 +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-rating.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-smiley.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/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
- package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
- package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
- package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
- package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
- package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
- package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
- package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
- package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
- package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
- package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
- package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
- package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
- package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-table-Q3brrivC.js +0 -1338
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
- package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { At as t, E as n, K as r, Q as i, et as a, zt as ee } from "./lib-CnHx5WfV.js";
|
|
3
|
+
import { t as te } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as ne } from "./usePrinter-B-X_Pub0.js";
|
|
5
|
+
import { t as re } from "./useNestedProp-D8NuRneO.js";
|
|
6
|
+
import { t as ie } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
|
+
import { t as ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
8
|
+
import { t as oe } from "./usePrefersMotion-BC-CsqR1.js";
|
|
9
|
+
import { Fragment as o, computed as s, createBlock as c, 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__*/ ie({
|
|
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: ie, emit: me }) {
|
|
37
|
+
let E = ce(() => import("./vue-ui-skeleton-KeIPGp9U.js").then((e) => e.n)), Se = ce(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), { vue_ui_carousel_table: Ce } = te(), we = oe(), D = e, Te = me, O = y(r()), Ee = y(!1), k = y(!!D.dataset), De = pe();
|
|
38
|
+
_(() => {
|
|
39
|
+
Oe();
|
|
40
|
+
}), _(() => {
|
|
41
|
+
De["chart-background"] && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
|
|
42
|
+
});
|
|
43
|
+
function Oe() {
|
|
44
|
+
t(D.dataset) ? a({
|
|
45
|
+
componentName: "VueUiCarouselTable",
|
|
46
|
+
type: "dataset"
|
|
47
|
+
}) : ((!D.dataset.head || t(D.dataset.head)) && (a({
|
|
48
|
+
componentName: "VueUiCarouselTable",
|
|
49
|
+
type: "datasetAttribute",
|
|
50
|
+
property: "head"
|
|
51
|
+
}), k.value = !1), (!D.dataset.body || t(D.dataset.body)) && (a({
|
|
52
|
+
componentName: "VueUiCarouselTable",
|
|
53
|
+
type: "datasetAttribute",
|
|
54
|
+
property: "body"
|
|
55
|
+
}), k.value = !1)), we.value && (A.value.userOptions.buttons.animation = !1);
|
|
56
|
+
}
|
|
57
|
+
let A = s({
|
|
58
|
+
get: () => Me(),
|
|
59
|
+
set: (e) => e
|
|
60
|
+
}), ke = s(() => A.value.userOptions.useCursorPointer), { userOptionsVisible: j, setUserOptionsVisibility: Ae, keepUserOptionState: je } = ae({ config: A.value });
|
|
61
|
+
function Me() {
|
|
62
|
+
return re({
|
|
63
|
+
userConfig: D.config,
|
|
64
|
+
defaultConfig: Ce
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
w(() => D.config, (e) => {
|
|
68
|
+
A.value = Me(), j.value = !A.value.userOptions.showOnChartHover, Oe();
|
|
69
|
+
}, { deep: !0 }), w(() => D.dataset, (e) => {
|
|
70
|
+
W();
|
|
71
|
+
}, { deep: !0 });
|
|
72
|
+
let { isPrinting: Ne, isImaging: Pe, generatePdf: Fe, generateImage: M } = ne({
|
|
73
|
+
elementId: `carousel-table_${O.value}`,
|
|
74
|
+
fileName: A.value.caption.text || "vue-ui-carousel-table",
|
|
75
|
+
options: A.value.userOptions.print
|
|
76
|
+
}), N = y({ showAnimation: A.value.animation.use }), P = y(null), F = y(null), I = y(null), L = y(null), R = y(0), z = y(0), B = y(!1), V = y(null), H = y(null), U = y(0);
|
|
77
|
+
function W() {
|
|
78
|
+
V.value && (H.value = {
|
|
79
|
+
elements: V.value.getElementsByTagName("tr"),
|
|
80
|
+
heights: Array.from(V.value.getElementsByTagName("tr")).map((e) => e.getBoundingClientRect().height)
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
_(W);
|
|
84
|
+
let Ie = s(() => !H.value || !H.value.heights.length ? 0 : Math.max(...H.value.heights) + R.value + z.value), Le = s(() => D.dataset.body ? A.value.tbody.tr.visible <= D.dataset.body.length ? A.value.tbody.tr.visible : D.dataset.body.length : 0), Re = s(() => (A.value.tbody.tr.height + A.value.tbody.tr.td.padding.top + A.value.tbody.tr.td.padding.bottom + A.value.tbody.tr.border.size * 2) * Le.value + R.value + z.value), G = y(0), K = y(null), q = y(0), J = y(!1), ze = y(0);
|
|
85
|
+
_(() => {
|
|
86
|
+
I.value && (R.value = I.value.getBoundingClientRect().height), L.value && (z.value = L.value.getBoundingClientRect().height), N.value.showAnimation && H.value && Ve();
|
|
87
|
+
}), _(() => {
|
|
88
|
+
if (P.value) {
|
|
89
|
+
let e = P.value.querySelector("thead"), t = Array.from(V.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
|
+
P.value.addEventListener("scroll", n), n(), g(() => {
|
|
97
|
+
P.value.removeEventListener("scroll", n);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
function Be(e) {
|
|
102
|
+
Ee.value = e, ze.value += 1;
|
|
103
|
+
}
|
|
104
|
+
function Ve() {
|
|
105
|
+
we.value || !K.value && !J.value && (A.value.animation.type === "scroll" ? K.value = requestAnimationFrame(Ue) : K.value = requestAnimationFrame(We));
|
|
106
|
+
}
|
|
107
|
+
function He() {
|
|
108
|
+
if (!P.value) return !1;
|
|
109
|
+
let { scrollTop: e, scrollHeight: t, clientHeight: n } = P.value;
|
|
110
|
+
return e + n >= t;
|
|
111
|
+
}
|
|
112
|
+
function Ue(e) {
|
|
113
|
+
J.value || (q.value ||= e, e - q.value >= A.value.animation.speedMs && (G.value += H.value.heights[U.value], (He() || U.value >= H.value.heights.length) && (G.value = 0, U.value = -1), U.value += 1, P.value && P.value.scrollTo({
|
|
114
|
+
top: G.value,
|
|
115
|
+
behavior: "smooth"
|
|
116
|
+
}), q.value = e), K.value = requestAnimationFrame(Ue));
|
|
117
|
+
}
|
|
118
|
+
function We(e) {
|
|
119
|
+
if (J.value) return;
|
|
120
|
+
q.value ||= e;
|
|
121
|
+
let t = e - q.value, n = A.value.animation.speedMs / 4 / 1e3;
|
|
122
|
+
t >= n && (G.value += n, G.value >= P.value.scrollHeight - P.value.clientHeight && (G.value = 0), P.value && P.value.scrollTo({
|
|
123
|
+
top: G.value,
|
|
124
|
+
behavior: "auto"
|
|
125
|
+
}), q.value = e), K.value = requestAnimationFrame(We);
|
|
126
|
+
}
|
|
127
|
+
function Y() {
|
|
128
|
+
J.value = !0, cancelAnimationFrame(K.value), K.value = null;
|
|
129
|
+
}
|
|
130
|
+
g(Y);
|
|
131
|
+
function X() {
|
|
132
|
+
!J.value || !N.value.showAnimation || (J.value = !1, q.value = 0, Ve());
|
|
133
|
+
}
|
|
134
|
+
function Ge() {
|
|
135
|
+
A.value.animation.pauseOnHover && Y();
|
|
136
|
+
}
|
|
137
|
+
let Z = y(null);
|
|
138
|
+
function Ke() {
|
|
139
|
+
Y(), clearTimeout(Z.value);
|
|
140
|
+
}
|
|
141
|
+
function qe() {
|
|
142
|
+
clearTimeout(Z.value), Z.value = setTimeout(X, 1e3);
|
|
143
|
+
}
|
|
144
|
+
w(() => A.value.animation.use, (e) => {
|
|
145
|
+
e ? (N.value.showAnimation = !0, X()) : (N.value.showAnimation = !1, Y());
|
|
146
|
+
}), w(() => A.value.animation.type, (e) => {
|
|
147
|
+
Y(), G.value = 0, U.value = 0, P.value.scrollTo({
|
|
148
|
+
top: 0,
|
|
149
|
+
behavior: "auto"
|
|
150
|
+
}), X();
|
|
151
|
+
});
|
|
152
|
+
let Je = s(() => A.value.responsiveBreakpoint), Q = fe(null);
|
|
153
|
+
_(() => {
|
|
154
|
+
Q.value = new ResizeObserver((e) => {
|
|
155
|
+
e.forEach((e) => {
|
|
156
|
+
B.value = e.contentRect.width < Je.value;
|
|
157
|
+
}), R.value = I.value ? I.value.getBoundingClientRect().height : 0, z.value = L.value ? L.value.getBoundingClientRect().height : 0, U.value = 0, ue(() => {
|
|
158
|
+
Y(), q.value = 0, G.value = 0, W(), X();
|
|
159
|
+
});
|
|
160
|
+
}), P.value && Q.value.observe(P.value);
|
|
161
|
+
}), g(() => {
|
|
162
|
+
Q.value && Q.value.disconnect();
|
|
163
|
+
});
|
|
164
|
+
function Ye() {
|
|
165
|
+
Fe();
|
|
166
|
+
}
|
|
167
|
+
function Xe() {
|
|
168
|
+
N.value.showAnimation = !N.value.showAnimation, N.value.showAnimation ? X() : Y();
|
|
169
|
+
}
|
|
170
|
+
function Ze(e = null) {
|
|
171
|
+
ue(() => {
|
|
172
|
+
let t = D.dataset.head.map((e, t) => [[D.dataset.body[t]]]), r = n([[A.value.caption.text], [D.dataset.head.map((e) => [e])]].concat(t));
|
|
173
|
+
e ? e(r) : i({
|
|
174
|
+
csvContent: r,
|
|
175
|
+
title: A.value.caption.text || "vue-ui-carousel-table"
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
async function $() {
|
|
180
|
+
if (Te("copyAlt", {
|
|
181
|
+
config: A.value,
|
|
182
|
+
dataset: D.dataset
|
|
183
|
+
}), !A.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(A.value.userOptions.callbacks.altCopy({
|
|
188
|
+
config: A.value,
|
|
189
|
+
dataset: D.dataset
|
|
190
|
+
}));
|
|
191
|
+
}
|
|
192
|
+
return ie({
|
|
193
|
+
pauseAnimation: Y,
|
|
194
|
+
resumeAnimation: X,
|
|
195
|
+
toggleAnimation: Xe,
|
|
196
|
+
generateCsv: Ze,
|
|
197
|
+
generatePdf: Ye,
|
|
198
|
+
generateImage: M,
|
|
199
|
+
copyAlt: $
|
|
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: F,
|
|
208
|
+
onMouseenter: n[5] ||= () => C(Ae)(!0),
|
|
209
|
+
onMouseleave: n[6] ||= () => C(Ae)(!1)
|
|
210
|
+
}, [
|
|
211
|
+
d("div", {
|
|
212
|
+
ref_key: "tableContainer",
|
|
213
|
+
ref: P,
|
|
214
|
+
id: `carousel-table_${O.value}`,
|
|
215
|
+
style: h({
|
|
216
|
+
height: C(Ne) || C(Pe) ? "auto" : `${Math.max(Re.value, Ie.value)}px`,
|
|
217
|
+
containerType: "inline-size",
|
|
218
|
+
position: "relative",
|
|
219
|
+
overflow: "auto",
|
|
220
|
+
fontFamily: A.value.fontFamily
|
|
221
|
+
}),
|
|
222
|
+
class: de({
|
|
223
|
+
"vue-ui-responsive": B.value,
|
|
224
|
+
"is-playing": A.value.scrollbar.hide || !J.value && A.value.scrollbar.showOnlyOnHover
|
|
225
|
+
}),
|
|
226
|
+
onMouseover: n[0] ||= (e) => Ge(),
|
|
227
|
+
onMouseleave: n[1] ||= (e) => X(),
|
|
228
|
+
onTouchstart: n[2] ||= (e) => Ke(),
|
|
229
|
+
onTouchend: n[3] ||= (e) => qe(),
|
|
230
|
+
onTouchcancel: n[4] ||= (e) => qe()
|
|
231
|
+
}, [k.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
|
+
...A.value.style,
|
|
237
|
+
border: `${A.value.border.size}px solid ${A.value.border.color}`,
|
|
238
|
+
width: "100%",
|
|
239
|
+
borderCollapse: "collapse",
|
|
240
|
+
backgroundColor: A.value.tbody.backgroundColor
|
|
241
|
+
})
|
|
242
|
+
}, [
|
|
243
|
+
d("caption", {
|
|
244
|
+
ref_key: "caption",
|
|
245
|
+
ref: I,
|
|
246
|
+
class: "vue-data-ui-carousel-table-caption",
|
|
247
|
+
id: `carousel-caption-${O.value}`,
|
|
248
|
+
style: h({
|
|
249
|
+
...A.value.caption.style,
|
|
250
|
+
fontFamily: "inherit",
|
|
251
|
+
position: "sticky",
|
|
252
|
+
top: 0,
|
|
253
|
+
zIndex: 2,
|
|
254
|
+
paddingTop: A.value.caption.padding.top + "px",
|
|
255
|
+
paddingRight: A.value.caption.padding.right + "px",
|
|
256
|
+
paddingBottom: A.value.caption.padding.bottom + "px",
|
|
257
|
+
paddingLeft: A.value.caption.padding.left + "px",
|
|
258
|
+
boxShadow: B.value ? A.value.thead.tr.style.boxShadow : "none",
|
|
259
|
+
minHeight: "36px",
|
|
260
|
+
display: t.$slots.caption || A.value.caption.text || A.value.userOptions.show ? "" : "none"
|
|
261
|
+
})
|
|
262
|
+
}, [f(S(A.value.caption.text && !t.$slots.caption ? A.value.caption.text : "") + " ", 1), x(t.$slots, "caption", {}, void 0, !0)], 12, _e),
|
|
263
|
+
d("thead", {
|
|
264
|
+
role: "rowgroup",
|
|
265
|
+
style: h({
|
|
266
|
+
...A.value.thead.style,
|
|
267
|
+
position: "sticky",
|
|
268
|
+
top: `${t.$slots.caption || A.value.caption.text || A.value.userOptions.show ? R.value : 0}px`,
|
|
269
|
+
zIndex: 1
|
|
270
|
+
})
|
|
271
|
+
}, [d("tr", {
|
|
272
|
+
ref_key: "tableRow",
|
|
273
|
+
ref: L,
|
|
274
|
+
role: "row",
|
|
275
|
+
style: h({
|
|
276
|
+
...A.value.thead.tr.style,
|
|
277
|
+
border: A.value.thead.tr.border.size ? `${A.value.thead.tr.border.size}px solid ${A.value.thead.tr.border.color}` : "none",
|
|
278
|
+
boxShadow: B.value ? "none" : A.value.thead.tr.style.boxShadow
|
|
279
|
+
}),
|
|
280
|
+
height: `${A.value.thead.tr.height}px`
|
|
281
|
+
}, [(v(!0), u(o, 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
|
+
...A.value.thead.tr.th.style,
|
|
288
|
+
border: A.value.thead.tr.th.border.size ? `${A.value.thead.tr.th.border.size}px solid ${A.value.thead.tr.th.border.color}` : "none",
|
|
289
|
+
paddingTop: A.value.thead.tr.th.padding.top + "px",
|
|
290
|
+
paddingRight: A.value.thead.tr.th.padding.right + "px",
|
|
291
|
+
paddingBottom: A.value.thead.tr.th.padding.bottom + "px",
|
|
292
|
+
paddingLeft: A.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: V,
|
|
302
|
+
"aria-live": "polite",
|
|
303
|
+
style: { clipPath: "inset(0,0,0,0)" }
|
|
304
|
+
}, [(v(!0), u(o, null, b(e.dataset.body, (n, r) => (v(), u("tr", { style: h({
|
|
305
|
+
...A.value.tbody.tr.style,
|
|
306
|
+
border: `${A.value.tbody.tr.border.size}px solid ${A.value.tbody.tr.border.color}`,
|
|
307
|
+
verticalAlign: "middle"
|
|
308
|
+
}) }, [(v(!0), u(o, 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
|
+
...A.value.tbody.tr.td.style,
|
|
314
|
+
border: `${A.value.tbody.tr.td.border.size}px solid ${A.value.tbody.tr.td.border.color}`,
|
|
315
|
+
backgroundColor: C(ee)(A.value.tbody.tr.td.style.backgroundColor, r % 2 == 0 && A.value.tbody.tr.td.alternateColor ? A.value.tbody.tr.td.alternateOpacity * 100 : 100),
|
|
316
|
+
paddingTop: A.value.tbody.tr.td.padding.top + "px",
|
|
317
|
+
paddingRight: A.value.tbody.tr.td.padding.right + "px",
|
|
318
|
+
paddingBottom: A.value.tbody.tr.td.padding.bottom + "px",
|
|
319
|
+
paddingLeft: A.value.tbody.tr.td.padding.left + "px",
|
|
320
|
+
verticalAlign: "middle"
|
|
321
|
+
}),
|
|
322
|
+
height: `${A.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
|
+
k.value ? l("", !0) : (v(), c(C(E), {
|
|
330
|
+
key: 0,
|
|
331
|
+
config: { type: "table" }
|
|
332
|
+
})),
|
|
333
|
+
A.value.userOptions.show && k.value && (C(je) || C(j)) ? (v(), c(C(Se), {
|
|
334
|
+
ref: "details",
|
|
335
|
+
key: `user_option_${ze.value}`,
|
|
336
|
+
backgroundColor: A.value.style.backgroundColor,
|
|
337
|
+
color: A.value.style.color,
|
|
338
|
+
isPrinting: C(Ne),
|
|
339
|
+
isImaging: C(Pe),
|
|
340
|
+
uid: O.value,
|
|
341
|
+
hasTooltip: !1,
|
|
342
|
+
hasPdf: A.value.userOptions.buttons.pdf,
|
|
343
|
+
hasImg: A.value.userOptions.buttons.img,
|
|
344
|
+
hasXls: A.value.userOptions.buttons.csv,
|
|
345
|
+
hasTable: !1,
|
|
346
|
+
hasLabel: !1,
|
|
347
|
+
hasAnimation: A.value.userOptions.buttons.animation,
|
|
348
|
+
isAnimation: !N.value.showAnimation,
|
|
349
|
+
hasFullscreen: A.value.userOptions.buttons.fullscreen,
|
|
350
|
+
hasAltCopy: A.value.userOptions.buttons.altCopy,
|
|
351
|
+
isFullscreen: Ee.value,
|
|
352
|
+
chartElement: F.value,
|
|
353
|
+
position: A.value.userOptions.position,
|
|
354
|
+
titles: { ...A.value.userOptions.buttonTitles },
|
|
355
|
+
zIndex: 3,
|
|
356
|
+
offsetX: 12,
|
|
357
|
+
callbacks: A.value.userOptions.callbacks,
|
|
358
|
+
printScale: A.value.userOptions.print.scale,
|
|
359
|
+
isCursorPointer: ke.value,
|
|
360
|
+
onGeneratePdf: Ye,
|
|
361
|
+
onGenerateCsv: Ze,
|
|
362
|
+
onGenerateImage: C(M),
|
|
363
|
+
onToggleAnimation: Xe,
|
|
364
|
+
onToggleFullscreen: Be,
|
|
365
|
+
onCopyAlt: $,
|
|
366
|
+
style: h({ visibility: C(je) ? C(j) ? "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
|
+
t.$slots["custom-menu-before"] ? {
|
|
418
|
+
name: "custom-menu-before",
|
|
419
|
+
fn: T(() => [x(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
420
|
+
key: "8"
|
|
421
|
+
} : void 0,
|
|
422
|
+
t.$slots["custom-menu-after"] ? {
|
|
423
|
+
name: "custom-menu-after",
|
|
424
|
+
fn: T(() => [x(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
425
|
+
key: "9"
|
|
426
|
+
} : void 0
|
|
427
|
+
]), 1032, [
|
|
428
|
+
"backgroundColor",
|
|
429
|
+
"color",
|
|
430
|
+
"isPrinting",
|
|
431
|
+
"isImaging",
|
|
432
|
+
"uid",
|
|
433
|
+
"hasPdf",
|
|
434
|
+
"hasImg",
|
|
435
|
+
"hasXls",
|
|
436
|
+
"hasAnimation",
|
|
437
|
+
"isAnimation",
|
|
438
|
+
"hasFullscreen",
|
|
439
|
+
"hasAltCopy",
|
|
440
|
+
"isFullscreen",
|
|
441
|
+
"chartElement",
|
|
442
|
+
"position",
|
|
443
|
+
"titles",
|
|
444
|
+
"callbacks",
|
|
445
|
+
"printScale",
|
|
446
|
+
"isCursorPointer",
|
|
447
|
+
"onGenerateImage",
|
|
448
|
+
"style"
|
|
449
|
+
])) : l("", !0),
|
|
450
|
+
t.$slots.source ? (v(), u("div", xe, [x(t.$slots, "source", {}, void 0, !0)], 512)) : l("", !0)
|
|
451
|
+
], 544));
|
|
452
|
+
}
|
|
453
|
+
}, [["__scopeId", "data-v-0f07f0c9"]]);
|
|
454
|
+
//#endregion
|
|
455
|
+
export { me as n, E as t };
|