vue-data-ui 3.25.11 → 3.25.13
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-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
- package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
- package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
- package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
- package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
- package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
- package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
- package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
- package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
- package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
- package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
- package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
- package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
- package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
- package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
- package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
- package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.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-hill.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-label.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-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
- package/dist/exposedLib-BBtjpydc.js +28 -0
- package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
- package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
- package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
- package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
- package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
- package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
- 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 +6 -0
- package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
- package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
- package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
- package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
- package/dist/utils.js +13 -13
- package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
- package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
- package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
- package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
- package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
- package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
- package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
- package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
- package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
- package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
- package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
- package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
- package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
- package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
- package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
- package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
- package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
- package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
- package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
- package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
- package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
- package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
- package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
- package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
- package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
- package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
- package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
- package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
- package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
- package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
- package/dist/vue-ui-molecule-_x232mMu.js +941 -0
- package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
- package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
- package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
- package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
- package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
- package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
- package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
- package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
- package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
- package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
- package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
- package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
- package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
- package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
- package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
- package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
- package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
- package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
- package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
- package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
- package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
- package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
- package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
- package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
- package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
- package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
- package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
- package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
- package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
- package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
- package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
- package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
- package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
- package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
- package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
- package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
- package/package.json +1 -1
- package/dist/exposedLib-CG3aXJ-v.js +0 -28
- package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
- package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
- package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
- package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
- package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
- package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
- package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
- package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
- package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
- package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
- package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
- package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
- package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
- package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
- package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
- package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
- package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
- package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
- package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
- package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
- package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
- package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
- package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { D as t, Rt as n, X as r, at as i, nt as ee, qt as te } from "./lib-DOpaUOQx.js";
|
|
3
|
+
import { n as ne, t as re } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ie } from "./useConfig-C2uy4ltq.js";
|
|
5
|
+
import { t as ae } from "./usePrinter-BBBooAGP.js";
|
|
6
|
+
import { t as oe } from "./useNestedProp-Bux0f4iY.js";
|
|
7
|
+
import { t as se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
+
import { t as ce } from "./useUserOptionState-DK-_1ddE.js";
|
|
9
|
+
import { t as le } from "./usePrefersMotion-BC-CsqR1.js";
|
|
10
|
+
import { Fragment as a, computed as o, createBlock as ue, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as de, createTextVNode as u, defineAsyncComponent as fe, guardReactiveProps as d, mergeProps as f, nextTick as pe, normalizeClass as me, normalizeProps as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, renderList as y, renderSlot as b, shallowRef as he, toDisplayString as x, unref as S, useSlots as ge, watch as C, withCtx as w } from "vue";
|
|
11
|
+
//#region src/components/vue-ui-carousel-table.vue
|
|
12
|
+
var _e = /* @__PURE__ */ e({ default: () => T }), ve = ["id"], ye = ["aria-labelledby"], be = ["id"], xe = ["height"], Se = ["id"], Ce = [
|
|
13
|
+
"data-cell",
|
|
14
|
+
"aria-label",
|
|
15
|
+
"height"
|
|
16
|
+
], we = {
|
|
17
|
+
key: 2,
|
|
18
|
+
ref: "source",
|
|
19
|
+
dir: "auto"
|
|
20
|
+
}, T = /*#__PURE__*/ se({
|
|
21
|
+
__name: "vue-ui-carousel-table",
|
|
22
|
+
props: {
|
|
23
|
+
config: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default() {
|
|
26
|
+
return {};
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
dataset: {
|
|
30
|
+
type: Object,
|
|
31
|
+
default() {
|
|
32
|
+
return {};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
emits: ["copyAlt"],
|
|
37
|
+
setup(e, { expose: se, emit: _e }) {
|
|
38
|
+
let T = fe(() => import("./vue-ui-skeleton-CeKjW4MX.js").then((e) => e.n)), Te = fe(() => import("./UserOptions-wFD9vo9g.js").then((e) => e.n)), { vue_ui_carousel_table: Ee } = ie(), E = le(), D = e, De = _e, O = v(r()), Oe = v(!1), k = v(!!D.dataset), ke = ge();
|
|
39
|
+
g(() => {
|
|
40
|
+
Ae();
|
|
41
|
+
});
|
|
42
|
+
let A = o({
|
|
43
|
+
get: () => Pe(),
|
|
44
|
+
set: (e) => e
|
|
45
|
+
}), j = o(() => A.value.debug);
|
|
46
|
+
g(() => {
|
|
47
|
+
ke["chart-background"] && j.value && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
|
|
48
|
+
});
|
|
49
|
+
function Ae() {
|
|
50
|
+
n(D.dataset) ? i({
|
|
51
|
+
componentName: "VueUiCarouselTable",
|
|
52
|
+
type: "dataset",
|
|
53
|
+
debug: j.value
|
|
54
|
+
}) : ((!D.dataset.head || n(D.dataset.head)) && (i({
|
|
55
|
+
componentName: "VueUiCarouselTable",
|
|
56
|
+
type: "datasetAttribute",
|
|
57
|
+
property: "head",
|
|
58
|
+
debug: j.value
|
|
59
|
+
}), k.value = !1), (!D.dataset.body || n(D.dataset.body)) && (i({
|
|
60
|
+
componentName: "VueUiCarouselTable",
|
|
61
|
+
type: "datasetAttribute",
|
|
62
|
+
property: "body",
|
|
63
|
+
debug: j.value
|
|
64
|
+
}), k.value = !1)), E.value && (A.value.userOptions.buttons.animation = !1);
|
|
65
|
+
}
|
|
66
|
+
ne({
|
|
67
|
+
config: () => A.value,
|
|
68
|
+
dataset: () => D.dataset,
|
|
69
|
+
component: "VueUiCarouselTable",
|
|
70
|
+
rules: [re.noHint]
|
|
71
|
+
});
|
|
72
|
+
let je = o(() => A.value.userOptions.useCursorPointer), { userOptionsVisible: M, setUserOptionsVisibility: Me, keepUserOptionState: Ne } = ce({ config: A.value });
|
|
73
|
+
function Pe() {
|
|
74
|
+
return oe({
|
|
75
|
+
userConfig: D.config,
|
|
76
|
+
defaultConfig: Ee
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
C(() => D.config, (e) => {
|
|
80
|
+
A.value = Pe(), M.value = !A.value.userOptions.showOnChartHover, Ae();
|
|
81
|
+
}, { deep: !0 }), C(() => D.dataset, (e) => {
|
|
82
|
+
U();
|
|
83
|
+
}, { deep: !0 });
|
|
84
|
+
let { isPrinting: Fe, isImaging: Ie, generatePdf: Le, generateImage: Re } = ae({
|
|
85
|
+
elementId: `carousel-table_${O.value}`,
|
|
86
|
+
fileName: A.value.caption.text || "vue-ui-carousel-table",
|
|
87
|
+
options: A.value.userOptions.print
|
|
88
|
+
}), N = v({ showAnimation: A.value.animation.use }), P = v(null), ze = v(null), F = v(null), I = v(null), L = v(0), R = v(0), z = v(!1), B = v(null), V = v(null), H = v(0);
|
|
89
|
+
function U() {
|
|
90
|
+
B.value && (V.value = {
|
|
91
|
+
elements: B.value.getElementsByTagName("tr"),
|
|
92
|
+
heights: Array.from(B.value.getElementsByTagName("tr")).map((e) => e.getBoundingClientRect().height)
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
g(U);
|
|
96
|
+
let Be = o(() => !V.value || !V.value.heights.length ? 0 : Math.max(...V.value.heights) + L.value + R.value), Ve = o(() => D.dataset.body ? A.value.tbody.tr.visible <= D.dataset.body.length ? A.value.tbody.tr.visible : D.dataset.body.length : 0), He = o(() => (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) * Ve.value + L.value + R.value), W = v(0), G = v(null), K = v(0), q = v(!1), Ue = v(0);
|
|
97
|
+
g(() => {
|
|
98
|
+
F.value && (L.value = F.value.getBoundingClientRect().height), I.value && (R.value = I.value.getBoundingClientRect().height), N.value.showAnimation && V.value && Ge();
|
|
99
|
+
}), g(() => {
|
|
100
|
+
if (P.value) {
|
|
101
|
+
let e = P.value.querySelector("thead"), t = Array.from(B.value.querySelectorAll("tr"));
|
|
102
|
+
function n() {
|
|
103
|
+
let n = e.getBoundingClientRect().bottom;
|
|
104
|
+
t.forEach((e) => {
|
|
105
|
+
e.getBoundingClientRect().top < n ? e.style.visibility = "hidden" : e.style.visibility = "visible";
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
P.value.addEventListener("scroll", n), n(), h(() => {
|
|
109
|
+
P.value.removeEventListener("scroll", n);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
function We(e) {
|
|
114
|
+
Oe.value = e, Ue.value += 1;
|
|
115
|
+
}
|
|
116
|
+
function Ge() {
|
|
117
|
+
E.value || !G.value && !q.value && (A.value.animation.type === "scroll" ? G.value = requestAnimationFrame(J) : G.value = requestAnimationFrame(qe));
|
|
118
|
+
}
|
|
119
|
+
function Ke() {
|
|
120
|
+
if (!P.value) return !1;
|
|
121
|
+
let { scrollTop: e, scrollHeight: t, clientHeight: n } = P.value;
|
|
122
|
+
return e + n >= t;
|
|
123
|
+
}
|
|
124
|
+
function J(e) {
|
|
125
|
+
q.value || (K.value ||= e, e - K.value >= A.value.animation.speedMs && (W.value += V.value.heights[H.value], (Ke() || H.value >= V.value.heights.length) && (W.value = 0, H.value = -1), H.value += 1, P.value && P.value.scrollTo({
|
|
126
|
+
top: W.value,
|
|
127
|
+
behavior: "smooth"
|
|
128
|
+
}), K.value = e), G.value = requestAnimationFrame(J));
|
|
129
|
+
}
|
|
130
|
+
function qe(e) {
|
|
131
|
+
if (q.value) return;
|
|
132
|
+
K.value ||= e;
|
|
133
|
+
let t = e - K.value, n = A.value.animation.speedMs / 4 / 1e3;
|
|
134
|
+
t >= n && (W.value += n, W.value >= P.value.scrollHeight - P.value.clientHeight && (W.value = 0), P.value && P.value.scrollTo({
|
|
135
|
+
top: W.value,
|
|
136
|
+
behavior: "auto"
|
|
137
|
+
}), K.value = e), G.value = requestAnimationFrame(qe);
|
|
138
|
+
}
|
|
139
|
+
function Y() {
|
|
140
|
+
q.value = !0, cancelAnimationFrame(G.value), G.value = null;
|
|
141
|
+
}
|
|
142
|
+
h(Y);
|
|
143
|
+
function X() {
|
|
144
|
+
q.value && N.value.showAnimation && (q.value = !1, K.value = 0, Ge());
|
|
145
|
+
}
|
|
146
|
+
function Je() {
|
|
147
|
+
A.value.animation.pauseOnHover && Y();
|
|
148
|
+
}
|
|
149
|
+
let Z = v(null);
|
|
150
|
+
function Ye() {
|
|
151
|
+
Y(), clearTimeout(Z.value);
|
|
152
|
+
}
|
|
153
|
+
function Xe() {
|
|
154
|
+
clearTimeout(Z.value), Z.value = setTimeout(X, 1e3);
|
|
155
|
+
}
|
|
156
|
+
C(() => A.value.animation.use, (e) => {
|
|
157
|
+
e ? (N.value.showAnimation = !0, X()) : (N.value.showAnimation = !1, Y());
|
|
158
|
+
}), C(() => A.value.animation.type, (e) => {
|
|
159
|
+
Y(), W.value = 0, H.value = 0, P.value.scrollTo({
|
|
160
|
+
top: 0,
|
|
161
|
+
behavior: "auto"
|
|
162
|
+
}), X();
|
|
163
|
+
});
|
|
164
|
+
let Ze = o(() => A.value.responsiveBreakpoint), Q = he(null);
|
|
165
|
+
g(() => {
|
|
166
|
+
Q.value = new ResizeObserver((e) => {
|
|
167
|
+
e.forEach((e) => {
|
|
168
|
+
z.value = e.contentRect.width < Ze.value;
|
|
169
|
+
}), L.value = F.value ? F.value.getBoundingClientRect().height : 0, R.value = I.value ? I.value.getBoundingClientRect().height : 0, H.value = 0, pe(() => {
|
|
170
|
+
Y(), K.value = 0, W.value = 0, U(), X();
|
|
171
|
+
});
|
|
172
|
+
}), P.value && Q.value.observe(P.value);
|
|
173
|
+
}), h(() => {
|
|
174
|
+
Q.value && Q.value.disconnect();
|
|
175
|
+
});
|
|
176
|
+
function Qe() {
|
|
177
|
+
Le();
|
|
178
|
+
}
|
|
179
|
+
function $e() {
|
|
180
|
+
N.value.showAnimation = !N.value.showAnimation, N.value.showAnimation ? X() : Y();
|
|
181
|
+
}
|
|
182
|
+
function et(e = null) {
|
|
183
|
+
pe(() => {
|
|
184
|
+
let n = D.dataset.head.map((e, t) => [[D.dataset.body[t]]]), r = [[A.value.caption.text], [D.dataset.head.map((e) => [e])]].concat(n), i = t(r);
|
|
185
|
+
e ? e(i) : ee({
|
|
186
|
+
csvContent: i,
|
|
187
|
+
title: A.value.caption.text || "vue-ui-carousel-table"
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
async function $() {
|
|
192
|
+
if (De("copyAlt", {
|
|
193
|
+
config: A.value,
|
|
194
|
+
dataset: D.dataset
|
|
195
|
+
}), !A.value.userOptions.callbacks.altCopy) {
|
|
196
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
await Promise.resolve(A.value.userOptions.callbacks.altCopy({
|
|
200
|
+
config: A.value,
|
|
201
|
+
dataset: D.dataset
|
|
202
|
+
}));
|
|
203
|
+
}
|
|
204
|
+
return se({
|
|
205
|
+
pauseAnimation: Y,
|
|
206
|
+
resumeAnimation: X,
|
|
207
|
+
toggleAnimation: $e,
|
|
208
|
+
generateCsv: et,
|
|
209
|
+
generatePdf: Qe,
|
|
210
|
+
generateImage: Re,
|
|
211
|
+
copyAlt: $
|
|
212
|
+
}), (t, n) => (_(), c("div", {
|
|
213
|
+
class: "vue-data-ui-component vue-ui-carousel-table",
|
|
214
|
+
style: {
|
|
215
|
+
position: "relative",
|
|
216
|
+
overflow: "visible"
|
|
217
|
+
},
|
|
218
|
+
ref_key: "chartContainer",
|
|
219
|
+
ref: ze,
|
|
220
|
+
onMouseenter: n[5] ||= () => S(Me)(!0),
|
|
221
|
+
onMouseleave: n[6] ||= () => S(Me)(!1)
|
|
222
|
+
}, [
|
|
223
|
+
l("div", {
|
|
224
|
+
ref_key: "tableContainer",
|
|
225
|
+
ref: P,
|
|
226
|
+
id: `carousel-table_${O.value}`,
|
|
227
|
+
style: m({
|
|
228
|
+
height: S(Fe) || S(Ie) ? "auto" : `${Math.max(He.value, Be.value)}px`,
|
|
229
|
+
containerType: "inline-size",
|
|
230
|
+
position: "relative",
|
|
231
|
+
overflow: "auto",
|
|
232
|
+
fontFamily: A.value.fontFamily
|
|
233
|
+
}),
|
|
234
|
+
class: me({
|
|
235
|
+
"vue-ui-responsive": z.value,
|
|
236
|
+
"is-playing": A.value.scrollbar.hide || !q.value && A.value.scrollbar.showOnlyOnHover
|
|
237
|
+
}),
|
|
238
|
+
onMouseover: n[0] ||= (e) => Je(),
|
|
239
|
+
onMouseleave: n[1] ||= (e) => X(),
|
|
240
|
+
onTouchstart: n[2] ||= (e) => Ye(),
|
|
241
|
+
onTouchend: n[3] ||= (e) => Xe(),
|
|
242
|
+
onTouchcancel: n[4] ||= (e) => Xe()
|
|
243
|
+
}, [k.value ? (_(), c("table", {
|
|
244
|
+
key: 0,
|
|
245
|
+
class: "vue-data-ui-carousel-table",
|
|
246
|
+
"aria-labelledby": `carousel-caption-${O.value}`,
|
|
247
|
+
style: m({
|
|
248
|
+
...A.value.style,
|
|
249
|
+
border: `${A.value.border.size}px solid ${A.value.border.color}`,
|
|
250
|
+
width: "100%",
|
|
251
|
+
borderCollapse: "collapse",
|
|
252
|
+
backgroundColor: A.value.tbody.backgroundColor
|
|
253
|
+
})
|
|
254
|
+
}, [
|
|
255
|
+
l("caption", {
|
|
256
|
+
ref_key: "caption",
|
|
257
|
+
ref: F,
|
|
258
|
+
class: "vue-data-ui-carousel-table-caption",
|
|
259
|
+
id: `carousel-caption-${O.value}`,
|
|
260
|
+
style: m({
|
|
261
|
+
...A.value.caption.style,
|
|
262
|
+
fontFamily: "inherit",
|
|
263
|
+
position: "sticky",
|
|
264
|
+
top: 0,
|
|
265
|
+
zIndex: 2,
|
|
266
|
+
paddingTop: A.value.caption.padding.top + "px",
|
|
267
|
+
paddingRight: A.value.caption.padding.right + "px",
|
|
268
|
+
paddingBottom: A.value.caption.padding.bottom + "px",
|
|
269
|
+
paddingLeft: A.value.caption.padding.left + "px",
|
|
270
|
+
boxShadow: z.value ? A.value.thead.tr.style.boxShadow : "none",
|
|
271
|
+
minHeight: "36px",
|
|
272
|
+
display: t.$slots.caption || A.value.caption.text || A.value.userOptions.show ? "" : "none"
|
|
273
|
+
})
|
|
274
|
+
}, [u(x(A.value.caption.text && !t.$slots.caption ? A.value.caption.text : "") + " ", 1), b(t.$slots, "caption", {}, void 0, !0)], 12, be),
|
|
275
|
+
l("thead", {
|
|
276
|
+
role: "rowgroup",
|
|
277
|
+
style: m({
|
|
278
|
+
...A.value.thead.style,
|
|
279
|
+
position: "sticky",
|
|
280
|
+
top: `${t.$slots.caption || A.value.caption.text || A.value.userOptions.show ? L.value : 0}px`,
|
|
281
|
+
zIndex: 1
|
|
282
|
+
})
|
|
283
|
+
}, [l("tr", {
|
|
284
|
+
ref_key: "tableRow",
|
|
285
|
+
ref: I,
|
|
286
|
+
role: "row",
|
|
287
|
+
style: m({
|
|
288
|
+
...A.value.thead.tr.style,
|
|
289
|
+
border: A.value.thead.tr.border.size ? `${A.value.thead.tr.border.size}px solid ${A.value.thead.tr.border.color}` : "none",
|
|
290
|
+
boxShadow: z.value ? "none" : A.value.thead.tr.style.boxShadow
|
|
291
|
+
}),
|
|
292
|
+
height: `${A.value.thead.tr.height}px`
|
|
293
|
+
}, [(_(!0), c(a, null, y(e.dataset.head, (e, n) => (_(), c("th", {
|
|
294
|
+
role: "cell",
|
|
295
|
+
key: `th_${n}`,
|
|
296
|
+
id: `col-${n}`,
|
|
297
|
+
scope: "col",
|
|
298
|
+
style: m({
|
|
299
|
+
...A.value.thead.tr.th.style,
|
|
300
|
+
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",
|
|
301
|
+
paddingTop: A.value.thead.tr.th.padding.top + "px",
|
|
302
|
+
paddingRight: A.value.thead.tr.th.padding.right + "px",
|
|
303
|
+
paddingBottom: A.value.thead.tr.th.padding.bottom + "px",
|
|
304
|
+
paddingLeft: A.value.thead.tr.th.padding.left + "px"
|
|
305
|
+
})
|
|
306
|
+
}, [u(x(t.$slots.th ? "" : e) + " ", 1), b(t.$slots, "th", f({ ref_for: !0 }, {
|
|
307
|
+
th: e,
|
|
308
|
+
colIndex: n
|
|
309
|
+
}), void 0, !0)], 12, Se))), 128))], 12, xe)], 4),
|
|
310
|
+
e.dataset.body && e.dataset.head ? (_(), c("tbody", {
|
|
311
|
+
key: 0,
|
|
312
|
+
ref_key: "tbody",
|
|
313
|
+
ref: B,
|
|
314
|
+
"aria-live": "polite",
|
|
315
|
+
style: { clipPath: "inset(0,0,0,0)" }
|
|
316
|
+
}, [(_(!0), c(a, null, y(e.dataset.body, (n, r) => (_(), c("tr", { style: m({
|
|
317
|
+
...A.value.tbody.tr.style,
|
|
318
|
+
border: `${A.value.tbody.tr.border.size}px solid ${A.value.tbody.tr.border.color}`,
|
|
319
|
+
verticalAlign: "middle"
|
|
320
|
+
}) }, [(_(!0), c(a, null, y(n, (n, i) => (_(), c("td", {
|
|
321
|
+
role: "cell",
|
|
322
|
+
"data-cell": e.dataset.head[i] || "",
|
|
323
|
+
"aria-label": `${e.dataset.head[i]}: ${n}`,
|
|
324
|
+
style: m({
|
|
325
|
+
...A.value.tbody.tr.td.style,
|
|
326
|
+
border: `${A.value.tbody.tr.td.border.size}px solid ${A.value.tbody.tr.td.border.color}`,
|
|
327
|
+
backgroundColor: S(te)(A.value.tbody.tr.td.style.backgroundColor, r % 2 == 0 && A.value.tbody.tr.td.alternateColor ? A.value.tbody.tr.td.alternateOpacity * 100 : 100),
|
|
328
|
+
paddingTop: A.value.tbody.tr.td.padding.top + "px",
|
|
329
|
+
paddingRight: A.value.tbody.tr.td.padding.right + "px",
|
|
330
|
+
paddingBottom: A.value.tbody.tr.td.padding.bottom + "px",
|
|
331
|
+
paddingLeft: A.value.tbody.tr.td.padding.left + "px",
|
|
332
|
+
verticalAlign: "middle"
|
|
333
|
+
}),
|
|
334
|
+
height: `${A.value.tbody.tr.height}px`
|
|
335
|
+
}, [u(x(t.$slots.td ? "" : n) + " ", 1), b(t.$slots, "td", f({ ref_for: !0 }, {
|
|
336
|
+
td: n,
|
|
337
|
+
rowIndex: r,
|
|
338
|
+
colIndex: i
|
|
339
|
+
}), void 0, !0)], 12, Ce))), 256))], 4))), 256))], 512)) : s("", !0)
|
|
340
|
+
], 12, ye)) : s("", !0)], 46, ve),
|
|
341
|
+
k.value ? s("", !0) : (_(), ue(S(T), {
|
|
342
|
+
key: 0,
|
|
343
|
+
config: { type: "table" }
|
|
344
|
+
})),
|
|
345
|
+
A.value.userOptions.show && k.value && (S(Ne) || S(M)) ? (_(), ue(S(Te), {
|
|
346
|
+
ref: "details",
|
|
347
|
+
key: `user_option_${Ue.value}`,
|
|
348
|
+
backgroundColor: A.value.style.backgroundColor,
|
|
349
|
+
color: A.value.style.color,
|
|
350
|
+
isPrinting: S(Fe),
|
|
351
|
+
isImaging: S(Ie),
|
|
352
|
+
uid: O.value,
|
|
353
|
+
hasTooltip: !1,
|
|
354
|
+
hasPdf: A.value.userOptions.buttons.pdf,
|
|
355
|
+
hasImg: A.value.userOptions.buttons.img,
|
|
356
|
+
hasXls: A.value.userOptions.buttons.csv,
|
|
357
|
+
hasTable: !1,
|
|
358
|
+
hasLabel: !1,
|
|
359
|
+
hasAnimation: A.value.userOptions.buttons.animation,
|
|
360
|
+
isAnimation: !N.value.showAnimation,
|
|
361
|
+
hasFullscreen: A.value.userOptions.buttons.fullscreen,
|
|
362
|
+
hasAltCopy: A.value.userOptions.buttons.altCopy,
|
|
363
|
+
isFullscreen: Oe.value,
|
|
364
|
+
chartElement: ze.value,
|
|
365
|
+
position: A.value.userOptions.position,
|
|
366
|
+
titles: { ...A.value.userOptions.buttonTitles },
|
|
367
|
+
zIndex: 3,
|
|
368
|
+
offsetX: 12,
|
|
369
|
+
callbacks: A.value.userOptions.callbacks,
|
|
370
|
+
printScale: A.value.userOptions.print.scale,
|
|
371
|
+
isCursorPointer: je.value,
|
|
372
|
+
onGeneratePdf: Qe,
|
|
373
|
+
onGenerateCsv: et,
|
|
374
|
+
onGenerateImage: S(Re),
|
|
375
|
+
onToggleAnimation: $e,
|
|
376
|
+
onToggleFullscreen: We,
|
|
377
|
+
onCopyAlt: $,
|
|
378
|
+
style: m({ visibility: S(Ne) ? S(M) ? "visible" : "hidden" : "visible" })
|
|
379
|
+
}, de({ _: 2 }, [
|
|
380
|
+
t.$slots.menuIcon ? {
|
|
381
|
+
name: "menuIcon",
|
|
382
|
+
fn: w(({ isOpen: e, color: n }) => [b(t.$slots, "menuIcon", p(d({
|
|
383
|
+
isOpen: e,
|
|
384
|
+
color: n
|
|
385
|
+
})), void 0, !0)]),
|
|
386
|
+
key: "0"
|
|
387
|
+
} : void 0,
|
|
388
|
+
t.$slots.optionPdf ? {
|
|
389
|
+
name: "optionPdf",
|
|
390
|
+
fn: w(() => [b(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
391
|
+
key: "1"
|
|
392
|
+
} : void 0,
|
|
393
|
+
t.$slots.optionCsv ? {
|
|
394
|
+
name: "optionCsv",
|
|
395
|
+
fn: w(() => [b(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
396
|
+
key: "2"
|
|
397
|
+
} : void 0,
|
|
398
|
+
t.$slots.optionImg ? {
|
|
399
|
+
name: "optionImg",
|
|
400
|
+
fn: w(() => [b(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
401
|
+
key: "3"
|
|
402
|
+
} : void 0,
|
|
403
|
+
t.$slots.optionSvg ? {
|
|
404
|
+
name: "optionSvg",
|
|
405
|
+
fn: w(() => [b(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
406
|
+
key: "4"
|
|
407
|
+
} : void 0,
|
|
408
|
+
t.$slots.optionAnimation ? {
|
|
409
|
+
name: "optionAnimation",
|
|
410
|
+
fn: w(({ toggleAnimation: e, isAnimated: n }) => [b(t.$slots, "optionAnimation", p(d({
|
|
411
|
+
toggleAnimation: e,
|
|
412
|
+
isAnimated: n
|
|
413
|
+
})), void 0, !0)]),
|
|
414
|
+
key: "5"
|
|
415
|
+
} : void 0,
|
|
416
|
+
t.$slots.optionFullscreen ? {
|
|
417
|
+
name: "optionFullscreen",
|
|
418
|
+
fn: w(({ toggleFullscreen: e, isFullscreen: n }) => [b(t.$slots, "optionFullscreen", p(d({
|
|
419
|
+
toggleFullscreen: e,
|
|
420
|
+
isFullscreen: n
|
|
421
|
+
})), void 0, !0)]),
|
|
422
|
+
key: "6"
|
|
423
|
+
} : void 0,
|
|
424
|
+
t.$slots.optionAltCopy ? {
|
|
425
|
+
name: "optionAltCopy",
|
|
426
|
+
fn: w(({ altCopy: e }) => [b(t.$slots, "optionAltCopy", p(d({ altCopy: e })), void 0, !0)]),
|
|
427
|
+
key: "7"
|
|
428
|
+
} : void 0,
|
|
429
|
+
t.$slots["custom-menu-before"] ? {
|
|
430
|
+
name: "custom-menu-before",
|
|
431
|
+
fn: w(() => [b(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
432
|
+
key: "8"
|
|
433
|
+
} : void 0,
|
|
434
|
+
t.$slots["custom-menu-after"] ? {
|
|
435
|
+
name: "custom-menu-after",
|
|
436
|
+
fn: w(() => [b(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
437
|
+
key: "9"
|
|
438
|
+
} : void 0
|
|
439
|
+
]), 1032, [
|
|
440
|
+
"backgroundColor",
|
|
441
|
+
"color",
|
|
442
|
+
"isPrinting",
|
|
443
|
+
"isImaging",
|
|
444
|
+
"uid",
|
|
445
|
+
"hasPdf",
|
|
446
|
+
"hasImg",
|
|
447
|
+
"hasXls",
|
|
448
|
+
"hasAnimation",
|
|
449
|
+
"isAnimation",
|
|
450
|
+
"hasFullscreen",
|
|
451
|
+
"hasAltCopy",
|
|
452
|
+
"isFullscreen",
|
|
453
|
+
"chartElement",
|
|
454
|
+
"position",
|
|
455
|
+
"titles",
|
|
456
|
+
"callbacks",
|
|
457
|
+
"printScale",
|
|
458
|
+
"isCursorPointer",
|
|
459
|
+
"onGenerateImage",
|
|
460
|
+
"style"
|
|
461
|
+
])) : s("", !0),
|
|
462
|
+
t.$slots.source ? (_(), c("div", we, [b(t.$slots, "source", {}, void 0, !0)], 512)) : s("", !0)
|
|
463
|
+
], 544));
|
|
464
|
+
}
|
|
465
|
+
}, [["__scopeId", "data-v-42d3302a"]]);
|
|
466
|
+
//#endregion
|
|
467
|
+
export { _e as n, T as t };
|