vue-data-ui 3.22.0 → 3.22.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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-_Dwp4NUr.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CfgH43C9.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-B_81qHQA.js} +2 -2
- 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/vue-data-ui.d.ts +3 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-C10cdg45.js} +2 -0
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-DSBOFB88.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DyFtIu5x.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BONLasZK.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Ck_u5Nro.js} +4 -4
- package/dist/vue-ui-age-pyramid-CESMhEwG.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-DvpCTv7j.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-qdXPXPxt.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-LMO0-JMK.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-ByWgbxR_.js} +50 -50
- package/dist/vue-ui-carousel-table-Clv65OZW.js +455 -0
- package/dist/vue-ui-chestnut-Dbxtt0EO.js +2010 -0
- package/dist/vue-ui-chord-DsCYzzLp.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DUn2l2nz.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-CElckzVJ.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag-B7a6P_58.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-CuYXrIHK.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-CiRRs9Yh.js} +4 -4
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-PedJo3bO.js} +474 -474
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-_EtEQwAW.js} +160 -160
- package/dist/vue-ui-donut-evolution-C9mV62bb.js +1510 -0
- package/dist/vue-ui-dumbbell-byV_cZ7p.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-DOLqQ6P4.js} +43 -43
- package/dist/vue-ui-funnel-CInvdUuT.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-DOeb6bP3.js} +301 -301
- package/dist/vue-ui-gauge-m2OemLTk.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-CGw4_HqU.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-CavNggei.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-BgBgDRa_.js} +95 -95
- package/dist/vue-ui-history-plot-jc1aVr7r.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-BkV41pJi.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DZAJA0gO.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-C29a9zHr.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-E7a7X-Tz.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-ww9uHX-0.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-BNvpHhXK.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-Cis7D9N3.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-BnVXfomm.js} +40 -40
- package/dist/vue-ui-quadrant-DQ8rrBHV.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-B1xUyqD7.js} +358 -358
- package/dist/vue-ui-radar-D0y4BN8E.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-DKurps0a.js} +34 -34
- package/dist/vue-ui-relation-circle-aanEwlBG.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-DS_llqb5.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-CILfFp-q.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-CQqdNOLR.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DpjFm7_n.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-BKQMu9Dw.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-xsg-hyHs.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-BwpOy0xT.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-DgTkRohs.js} +38 -38
- package/dist/vue-ui-sparkhistogram-D72VDOlh.js +560 -0
- package/dist/vue-ui-sparkline-WG-oYip8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BqAeq4Lb.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-CVIF37k7.js} +67 -67
- package/dist/vue-ui-stackline-DX1AYpur.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot--fR31p0x.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-DSE4d-Dx.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-DKE7y65s.js} +17 -17
- package/dist/vue-ui-table-sparkline-KOk0iH56.js +712 -0
- package/dist/vue-ui-thermometer-FQvSBV4T.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-BsSpuP2_.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-f85yEqZh.js} +19 -19
- package/dist/vue-ui-treemap-DdSJEMp-.js +1587 -0
- package/dist/vue-ui-waffle-BHsayx6v.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-DerItN6D.js} +51 -51
- package/dist/{vue-ui-word-cloud-BqsUdsCY.js → vue-ui-word-cloud-DV-qLV17.js} +27 -27
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-DhH-_2IC.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CuAsNLLv.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DMoj6Y3F.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CrzY1ni9.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Et as t, Ft as n, H as r, J as i, S as a, X as o } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as ee } from "./useConfig-C10cdg45.js";
|
|
4
|
+
import { t as te } from "./usePrinter-Dng0UK-G.js";
|
|
5
|
+
import { t as ne } from "./useNestedProp-APyFoLCQ.js";
|
|
6
|
+
import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
|
+
import { t as ie } from "./useUserOptionState-DK-_1ddE.js";
|
|
8
|
+
import { t as ae } from "./usePrefersMotion-BC-CsqR1.js";
|
|
9
|
+
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as oe, createTextVNode as p, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as se, nextTick as ce, normalizeClass as le, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x, renderList as S, renderSlot as C, shallowRef as ue, toDisplayString as w, unref as T, useSlots as de, watch as E, withCtx as D } from "vue";
|
|
10
|
+
//#region src/components/vue-ui-carousel-table.vue
|
|
11
|
+
var fe = /* @__PURE__ */ e({ default: () => O }), pe = ["id"], me = ["aria-labelledby"], he = ["id"], ge = ["height"], _e = ["id"], ve = [
|
|
12
|
+
"data-cell",
|
|
13
|
+
"aria-label",
|
|
14
|
+
"height"
|
|
15
|
+
], ye = {
|
|
16
|
+
key: 2,
|
|
17
|
+
ref: "source",
|
|
18
|
+
dir: "auto"
|
|
19
|
+
}, O = /*#__PURE__*/ re({
|
|
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: re, emit: fe }) {
|
|
37
|
+
let O = m(() => import("./vue-ui-skeleton-DpjFm7_n.js").then((e) => e.n)), be = m(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), { vue_ui_carousel_table: xe } = ee(), Se = ae(), k = e, Ce = fe, A = x(r()), we = x(!1), j = x(!!k.dataset), Te = de();
|
|
38
|
+
y(() => {
|
|
39
|
+
Ee();
|
|
40
|
+
}), y(() => {
|
|
41
|
+
Te["chart-background"] && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
|
|
42
|
+
});
|
|
43
|
+
function Ee() {
|
|
44
|
+
t(k.dataset) ? o({
|
|
45
|
+
componentName: "VueUiCarouselTable",
|
|
46
|
+
type: "dataset"
|
|
47
|
+
}) : ((!k.dataset.head || t(k.dataset.head)) && (o({
|
|
48
|
+
componentName: "VueUiCarouselTable",
|
|
49
|
+
type: "datasetAttribute",
|
|
50
|
+
property: "head"
|
|
51
|
+
}), j.value = !1), (!k.dataset.body || t(k.dataset.body)) && (o({
|
|
52
|
+
componentName: "VueUiCarouselTable",
|
|
53
|
+
type: "datasetAttribute",
|
|
54
|
+
property: "body"
|
|
55
|
+
}), j.value = !1)), Se.value && (M.value.userOptions.buttons.animation = !1);
|
|
56
|
+
}
|
|
57
|
+
let M = c({
|
|
58
|
+
get: () => Ae(),
|
|
59
|
+
set: (e) => e
|
|
60
|
+
}), De = c(() => M.value.userOptions.useCursorPointer), { userOptionsVisible: N, setUserOptionsVisibility: Oe, keepUserOptionState: ke } = ie({ config: M.value });
|
|
61
|
+
function Ae() {
|
|
62
|
+
return ne({
|
|
63
|
+
userConfig: k.config,
|
|
64
|
+
defaultConfig: xe
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
E(() => k.config, (e) => {
|
|
68
|
+
M.value = Ae(), N.value = !M.value.userOptions.showOnChartHover, Ee();
|
|
69
|
+
}, { deep: !0 }), E(() => k.dataset, (e) => {
|
|
70
|
+
W();
|
|
71
|
+
}, { deep: !0 });
|
|
72
|
+
let { isPrinting: je, isImaging: Me, generatePdf: Ne, generateImage: Pe } = te({
|
|
73
|
+
elementId: `carousel-table_${A.value}`,
|
|
74
|
+
fileName: M.value.caption.text || "vue-ui-carousel-table",
|
|
75
|
+
options: M.value.userOptions.print
|
|
76
|
+
}), P = x({ showAnimation: M.value.animation.use }), F = x(null), Fe = x(null), I = x(null), L = x(null), R = x(0), z = x(0), B = x(!1), V = x(null), H = x(null), U = x(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
|
+
y(W);
|
|
84
|
+
let Ie = c(() => !H.value || !H.value.heights.length ? 0 : Math.max(...H.value.heights) + R.value + z.value), Le = c(() => k.dataset.body ? M.value.tbody.tr.visible <= k.dataset.body.length ? M.value.tbody.tr.visible : k.dataset.body.length : 0), Re = 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) * Le.value + R.value + z.value), G = x(0), K = x(null), q = x(0), J = x(!1), ze = x(0);
|
|
85
|
+
y(() => {
|
|
86
|
+
I.value && (R.value = I.value.getBoundingClientRect().height), L.value && (z.value = L.value.getBoundingClientRect().height), P.value.showAnimation && H.value && Ve();
|
|
87
|
+
}), y(() => {
|
|
88
|
+
if (F.value) {
|
|
89
|
+
let e = F.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
|
+
F.value.addEventListener("scroll", n), n(), v(() => {
|
|
97
|
+
F.value.removeEventListener("scroll", n);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
function Be(e) {
|
|
102
|
+
we.value = e, ze.value += 1;
|
|
103
|
+
}
|
|
104
|
+
function Ve() {
|
|
105
|
+
Se.value || !K.value && !J.value && (M.value.animation.type === "scroll" ? K.value = requestAnimationFrame(Ue) : K.value = requestAnimationFrame(We));
|
|
106
|
+
}
|
|
107
|
+
function He() {
|
|
108
|
+
if (!F.value) return !1;
|
|
109
|
+
let { scrollTop: e, scrollHeight: t, clientHeight: n } = F.value;
|
|
110
|
+
return e + n >= t;
|
|
111
|
+
}
|
|
112
|
+
function Ue(e) {
|
|
113
|
+
J.value || (q.value ||= e, e - q.value >= M.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, F.value && F.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 = M.value.animation.speedMs / 4 / 1e3;
|
|
122
|
+
t >= n && (G.value += n, G.value >= F.value.scrollHeight - F.value.clientHeight && (G.value = 0), F.value && F.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
|
+
v(Y);
|
|
131
|
+
function X() {
|
|
132
|
+
!J.value || !P.value.showAnimation || (J.value = !1, q.value = 0, Ve());
|
|
133
|
+
}
|
|
134
|
+
function Ge() {
|
|
135
|
+
M.value.animation.pauseOnHover && Y();
|
|
136
|
+
}
|
|
137
|
+
let Z = x(null);
|
|
138
|
+
function Ke() {
|
|
139
|
+
Y(), clearTimeout(Z.value);
|
|
140
|
+
}
|
|
141
|
+
function qe() {
|
|
142
|
+
clearTimeout(Z.value), Z.value = setTimeout(X, 1e3);
|
|
143
|
+
}
|
|
144
|
+
E(() => M.value.animation.use, (e) => {
|
|
145
|
+
e ? (P.value.showAnimation = !0, X()) : (P.value.showAnimation = !1, Y());
|
|
146
|
+
}), E(() => M.value.animation.type, (e) => {
|
|
147
|
+
Y(), G.value = 0, U.value = 0, F.value.scrollTo({
|
|
148
|
+
top: 0,
|
|
149
|
+
behavior: "auto"
|
|
150
|
+
}), X();
|
|
151
|
+
});
|
|
152
|
+
let Je = c(() => M.value.responsiveBreakpoint), Q = ue(null);
|
|
153
|
+
y(() => {
|
|
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, ce(() => {
|
|
158
|
+
Y(), q.value = 0, G.value = 0, W(), X();
|
|
159
|
+
});
|
|
160
|
+
}), F.value && Q.value.observe(F.value);
|
|
161
|
+
}), v(() => {
|
|
162
|
+
Q.value && Q.value.disconnect();
|
|
163
|
+
});
|
|
164
|
+
function Ye() {
|
|
165
|
+
Ne();
|
|
166
|
+
}
|
|
167
|
+
function Xe() {
|
|
168
|
+
P.value.showAnimation = !P.value.showAnimation, P.value.showAnimation ? X() : Y();
|
|
169
|
+
}
|
|
170
|
+
function Ze(e = null) {
|
|
171
|
+
ce(() => {
|
|
172
|
+
let t = k.dataset.head.map((e, t) => [[k.dataset.body[t]]]), n = a([[M.value.caption.text], [k.dataset.head.map((e) => [e])]].concat(t));
|
|
173
|
+
e ? e(n) : i({
|
|
174
|
+
csvContent: n,
|
|
175
|
+
title: M.value.caption.text || "vue-ui-carousel-table"
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
async function $() {
|
|
180
|
+
if (Ce("copyAlt", {
|
|
181
|
+
config: M.value,
|
|
182
|
+
dataset: k.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: k.dataset
|
|
190
|
+
}));
|
|
191
|
+
}
|
|
192
|
+
return re({
|
|
193
|
+
pauseAnimation: Y,
|
|
194
|
+
resumeAnimation: X,
|
|
195
|
+
toggleAnimation: Xe,
|
|
196
|
+
generateCsv: Ze,
|
|
197
|
+
generatePdf: Ye,
|
|
198
|
+
generateImage: Pe,
|
|
199
|
+
copyAlt: $
|
|
200
|
+
}), (t, r) => (b(), d("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: Fe,
|
|
208
|
+
onMouseenter: r[5] ||= () => T(Oe)(!0),
|
|
209
|
+
onMouseleave: r[6] ||= () => T(Oe)(!1)
|
|
210
|
+
}, [
|
|
211
|
+
f("div", {
|
|
212
|
+
ref_key: "tableContainer",
|
|
213
|
+
ref: F,
|
|
214
|
+
id: `carousel-table_${A.value}`,
|
|
215
|
+
style: _({
|
|
216
|
+
height: T(je) || T(Me) ? "auto" : `${Math.max(Re.value, Ie.value)}px`,
|
|
217
|
+
containerType: "inline-size",
|
|
218
|
+
position: "relative",
|
|
219
|
+
overflow: "auto",
|
|
220
|
+
fontFamily: M.value.fontFamily
|
|
221
|
+
}),
|
|
222
|
+
class: le({
|
|
223
|
+
"vue-ui-responsive": B.value,
|
|
224
|
+
"is-playing": M.value.scrollbar.hide || !J.value && M.value.scrollbar.showOnlyOnHover
|
|
225
|
+
}),
|
|
226
|
+
onMouseover: r[0] ||= (e) => Ge(),
|
|
227
|
+
onMouseleave: r[1] ||= (e) => X(),
|
|
228
|
+
onTouchstart: r[2] ||= (e) => Ke(),
|
|
229
|
+
onTouchend: r[3] ||= (e) => qe(),
|
|
230
|
+
onTouchcancel: r[4] ||= (e) => qe()
|
|
231
|
+
}, [j.value ? (b(), d("table", {
|
|
232
|
+
key: 0,
|
|
233
|
+
class: "vue-data-ui-carousel-table",
|
|
234
|
+
"aria-labelledby": `carousel-caption-${A.value}`,
|
|
235
|
+
style: _({
|
|
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
|
+
f("caption", {
|
|
244
|
+
ref_key: "caption",
|
|
245
|
+
ref: I,
|
|
246
|
+
class: "vue-data-ui-carousel-table-caption",
|
|
247
|
+
id: `carousel-caption-${A.value}`,
|
|
248
|
+
style: _({
|
|
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: B.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
|
+
}, [p(w(M.value.caption.text && !t.$slots.caption ? M.value.caption.text : "") + " ", 1), C(t.$slots, "caption", {}, void 0, !0)], 12, he),
|
|
263
|
+
f("thead", {
|
|
264
|
+
role: "rowgroup",
|
|
265
|
+
style: _({
|
|
266
|
+
...M.value.thead.style,
|
|
267
|
+
position: "sticky",
|
|
268
|
+
top: `${t.$slots.caption || M.value.caption.text || M.value.userOptions.show ? R.value : 0}px`,
|
|
269
|
+
zIndex: 1
|
|
270
|
+
})
|
|
271
|
+
}, [f("tr", {
|
|
272
|
+
ref_key: "tableRow",
|
|
273
|
+
ref: L,
|
|
274
|
+
role: "row",
|
|
275
|
+
style: _({
|
|
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: B.value ? "none" : M.value.thead.tr.style.boxShadow
|
|
279
|
+
}),
|
|
280
|
+
height: `${M.value.thead.tr.height}px`
|
|
281
|
+
}, [(b(!0), d(s, null, S(e.dataset.head, (e, n) => (b(), d("th", {
|
|
282
|
+
role: "cell",
|
|
283
|
+
key: `th_${n}`,
|
|
284
|
+
id: `col-${n}`,
|
|
285
|
+
scope: "col",
|
|
286
|
+
style: _({
|
|
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
|
+
}, [p(w(t.$slots.th ? "" : e) + " ", 1), C(t.$slots, "th", se({ ref_for: !0 }, {
|
|
295
|
+
th: e,
|
|
296
|
+
colIndex: n
|
|
297
|
+
}), void 0, !0)], 12, _e))), 128))], 12, ge)], 4),
|
|
298
|
+
e.dataset.body && e.dataset.head ? (b(), d("tbody", {
|
|
299
|
+
key: 0,
|
|
300
|
+
ref_key: "tbody",
|
|
301
|
+
ref: V,
|
|
302
|
+
"aria-live": "polite",
|
|
303
|
+
style: { clipPath: "inset(0,0,0,0)" }
|
|
304
|
+
}, [(b(!0), d(s, null, S(e.dataset.body, (r, i) => (b(), d("tr", { style: _({
|
|
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
|
+
}) }, [(b(!0), d(s, null, S(r, (r, a) => (b(), d("td", {
|
|
309
|
+
role: "cell",
|
|
310
|
+
"data-cell": e.dataset.head[a] || "",
|
|
311
|
+
"aria-label": `${e.dataset.head[a]}: ${r}`,
|
|
312
|
+
style: _({
|
|
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: T(n)(M.value.tbody.tr.td.style.backgroundColor, i % 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
|
+
}, [p(w(t.$slots.td ? "" : r) + " ", 1), C(t.$slots, "td", se({ ref_for: !0 }, {
|
|
324
|
+
td: r,
|
|
325
|
+
rowIndex: i,
|
|
326
|
+
colIndex: a
|
|
327
|
+
}), void 0, !0)], 12, ve))), 256))], 4))), 256))], 512)) : u("", !0)
|
|
328
|
+
], 12, me)) : u("", !0)], 46, pe),
|
|
329
|
+
j.value ? u("", !0) : (b(), l(T(O), {
|
|
330
|
+
key: 0,
|
|
331
|
+
config: { type: "table" }
|
|
332
|
+
})),
|
|
333
|
+
M.value.userOptions.show && j.value && (T(ke) || T(N)) ? (b(), l(T(be), {
|
|
334
|
+
ref: "details",
|
|
335
|
+
key: `user_option_${ze.value}`,
|
|
336
|
+
backgroundColor: M.value.style.backgroundColor,
|
|
337
|
+
color: M.value.style.color,
|
|
338
|
+
isPrinting: T(je),
|
|
339
|
+
isImaging: T(Me),
|
|
340
|
+
uid: A.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: !P.value.showAnimation,
|
|
349
|
+
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
350
|
+
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
351
|
+
isFullscreen: we.value,
|
|
352
|
+
chartElement: Fe.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: Ye,
|
|
361
|
+
onGenerateCsv: Ze,
|
|
362
|
+
onGenerateImage: T(Pe),
|
|
363
|
+
onToggleAnimation: Xe,
|
|
364
|
+
onToggleFullscreen: Be,
|
|
365
|
+
onCopyAlt: $,
|
|
366
|
+
style: _({ visibility: T(ke) ? T(N) ? "visible" : "hidden" : "visible" })
|
|
367
|
+
}, oe({ _: 2 }, [
|
|
368
|
+
t.$slots.menuIcon ? {
|
|
369
|
+
name: "menuIcon",
|
|
370
|
+
fn: D(({ isOpen: e, color: n }) => [C(t.$slots, "menuIcon", g(h({
|
|
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: D(() => [C(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
379
|
+
key: "1"
|
|
380
|
+
} : void 0,
|
|
381
|
+
t.$slots.optionCsv ? {
|
|
382
|
+
name: "optionCsv",
|
|
383
|
+
fn: D(() => [C(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
384
|
+
key: "2"
|
|
385
|
+
} : void 0,
|
|
386
|
+
t.$slots.optionImg ? {
|
|
387
|
+
name: "optionImg",
|
|
388
|
+
fn: D(() => [C(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
389
|
+
key: "3"
|
|
390
|
+
} : void 0,
|
|
391
|
+
t.$slots.optionSvg ? {
|
|
392
|
+
name: "optionSvg",
|
|
393
|
+
fn: D(() => [C(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
394
|
+
key: "4"
|
|
395
|
+
} : void 0,
|
|
396
|
+
t.$slots.optionAnimation ? {
|
|
397
|
+
name: "optionAnimation",
|
|
398
|
+
fn: D(({ toggleAnimation: e, isAnimated: n }) => [C(t.$slots, "optionAnimation", g(h({
|
|
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: D(({ toggleFullscreen: e, isFullscreen: n }) => [C(t.$slots, "optionFullscreen", g(h({
|
|
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: D(({ altCopy: e }) => [C(t.$slots, "optionAltCopy", g(h({ altCopy: e })), void 0, !0)]),
|
|
415
|
+
key: "7"
|
|
416
|
+
} : void 0,
|
|
417
|
+
t.$slots["custom-menu-before"] ? {
|
|
418
|
+
name: "custom-menu-before",
|
|
419
|
+
fn: D(() => [C(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: D(() => [C(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
|
+
])) : u("", !0),
|
|
450
|
+
t.$slots.source ? (b(), d("div", ye, [C(t.$slots, "source", {}, void 0, !0)], 512)) : u("", !0)
|
|
451
|
+
], 544));
|
|
452
|
+
}
|
|
453
|
+
}, [["__scopeId", "data-v-0f07f0c9"]]);
|
|
454
|
+
//#endregion
|
|
455
|
+
export { fe as n, O as t };
|