vue-data-ui 2.3.22 → 2.3.24

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.
Files changed (142) hide show
  1. package/dist/{Arrow-DxXzMXB1.js → Arrow-BzYehwRw.js} +1 -1
  2. package/dist/{Arrow-BOSHa3Ag.cjs → Arrow-DfxwtZYG.cjs} +1 -1
  3. package/dist/{BaseIcon-C-k_mqXL.cjs → BaseIcon-eEUOqFAE.cjs} +1 -1
  4. package/dist/{BaseIcon-DuMfKUDs.js → BaseIcon-y4nt-SIh.js} +1 -1
  5. package/dist/{DataTable-CHXdpx94.cjs → DataTable-Ckvkqg78.cjs} +1 -1
  6. package/dist/{DataTable-DKHF_NH2.js → DataTable-DVpbqbwp.js} +2 -2
  7. package/dist/{Legend-BqqpwXbu.js → Legend-Crc6SgWK.js} +1 -1
  8. package/dist/{Legend-BwrzHxLy.cjs → Legend-DA1uCuos.cjs} +1 -1
  9. package/dist/{Shape-DW18-C9f.cjs → Shape-DaECX0MP.cjs} +1 -1
  10. package/dist/{Shape-Ccky9omb.js → Shape-_K1DD00e.js} +1 -1
  11. package/dist/{Slicer-BDsv196Y.js → Slicer-BL7ysGrk.js} +1 -1
  12. package/dist/{Slicer-xKlzke1v.cjs → Slicer-BeTiFzmi.cjs} +1 -1
  13. package/dist/{Title-Bx2ibobQ.js → Title-CMEhX9eJ.js} +1 -1
  14. package/dist/{Title-DxNugmhI.cjs → Title-D9E4eBNp.cjs} +1 -1
  15. package/dist/{Tooltip-DOEMrisX.js → Tooltip-B2XPbRE_.js} +1 -1
  16. package/dist/{Tooltip-BC2Wlz7P.cjs → Tooltip-C6EZFw-G.cjs} +1 -1
  17. package/dist/{index-BvjCO-wv.js → index-BbBCE1pM.js} +1 -1
  18. package/dist/{index-oufiZvaS.cjs → index-BcLWKvbg.cjs} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/types/vue-data-ui.d.cts +1 -1
  21. package/dist/types/vue-data-ui.d.ts +1 -1
  22. package/dist/{useNestedProp-CmTItGss.cjs → useNestedProp-BcuQPNiW.cjs} +1 -1
  23. package/dist/{useNestedProp-2KJaYPfM.js → useNestedProp-QJwLGaK5.js} +1 -1
  24. package/dist/{usePrinter-Cc8ufBvU.cjs → usePrinter-BWCvrSz2.cjs} +1 -1
  25. package/dist/{usePrinter-CaKXrCiB.js → usePrinter-CnT0_Cbi.js} +1 -1
  26. package/dist/{vue-data-ui-DnlOZVL-.js → vue-data-ui-DfTF5XN4.js} +56 -56
  27. package/dist/{vue-data-ui-D5LrE3dP.cjs → vue-data-ui-JnBZ4O4G.cjs} +1 -1
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/{vue-ui-3d-bar-Cma1NB-u.cjs → vue-ui-3d-bar-Cmj5FUss.cjs} +1 -1
  31. package/dist/{vue-ui-3d-bar-qegO2SzJ.js → vue-ui-3d-bar-qtJF55BB.js} +7 -7
  32. package/dist/{vue-ui-accordion-DiR0dVog.cjs → vue-ui-accordion-BOEIWXgn.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-q-bLDiD3.js → vue-ui-accordion-CM8Lp-MV.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-vQvy7rWY.js → vue-ui-age-pyramid-CVELozuZ.js} +8 -8
  35. package/dist/{vue-ui-age-pyramid-xk6Gt1LJ.cjs → vue-ui-age-pyramid-ZTUAsVJ3.cjs} +1 -1
  36. package/dist/{vue-ui-annotator-LwO1PGoN.cjs → vue-ui-annotator-BN1e8QBk.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-BYT8v1SY.js → vue-ui-annotator-Cfl6lVxC.js} +1 -1
  38. package/dist/{vue-ui-candlestick-zvv6_kwp.js → vue-ui-candlestick-BhfanGOK.js} +9 -9
  39. package/dist/{vue-ui-candlestick-CmM0kwJR.cjs → vue-ui-candlestick-g0uWwqCg.cjs} +1 -1
  40. package/dist/vue-ui-carousel-table-CXmHksHV.js +346 -0
  41. package/dist/vue-ui-carousel-table-Ccc8TeFs.cjs +1 -0
  42. package/dist/{vue-ui-chestnut-A9asY_42.js → vue-ui-chestnut-Bw6l763j.js} +6 -6
  43. package/dist/{vue-ui-chestnut-4MvRD28_.cjs → vue-ui-chestnut-DHa1RSdI.cjs} +1 -1
  44. package/dist/{vue-ui-cursor-DusWgM7W.cjs → vue-ui-cursor-BGv7dDr-.cjs} +1 -1
  45. package/dist/{vue-ui-cursor-CPPPIH2W.js → vue-ui-cursor-BK77V_9W.js} +2 -2
  46. package/dist/{vue-ui-dashboard-CuQ81BKN.js → vue-ui-dashboard-CshdP-o6.js} +2 -2
  47. package/dist/{vue-ui-dashboard-ZTzEd521.cjs → vue-ui-dashboard-fqSrgnC8.cjs} +1 -1
  48. package/dist/{vue-ui-digits-DlupvOo-.cjs → vue-ui-digits-BFiCPsVU.cjs} +1 -1
  49. package/dist/{vue-ui-digits-Czkbi2AR.js → vue-ui-digits-tFHIZZ9N.js} +2 -2
  50. package/dist/{vue-ui-donut-DA5YfWlL.cjs → vue-ui-donut-BOq5T2_k.cjs} +1 -1
  51. package/dist/{vue-ui-donut-Cis7kzDB.js → vue-ui-donut-DwCC5FLx.js} +9 -9
  52. package/dist/{vue-ui-donut-evolution-BigmUCTm.cjs → vue-ui-donut-evolution-Bg70zsf9.cjs} +1 -1
  53. package/dist/{vue-ui-donut-evolution-D2I4ZD5a.js → vue-ui-donut-evolution-CysSbRMg.js} +9 -9
  54. package/dist/{vue-ui-dumbbell-D8ZSCX0H.cjs → vue-ui-dumbbell-DIbbkhZs.cjs} +1 -1
  55. package/dist/{vue-ui-dumbbell-fdV94xQB.js → vue-ui-dumbbell-Df9_opHf.js} +8 -8
  56. package/dist/{vue-ui-flow-CH6PmIBT.cjs → vue-ui-flow-BYvtiYei.cjs} +1 -1
  57. package/dist/{vue-ui-flow-C1PVwgKX.js → vue-ui-flow-DtZGgvJy.js} +7 -7
  58. package/dist/{vue-ui-galaxy-IFmqHh3R.cjs → vue-ui-galaxy-B2fbFVWs.cjs} +1 -1
  59. package/dist/{vue-ui-galaxy-DzWOfvyj.js → vue-ui-galaxy-DqiIk9DH.js} +9 -9
  60. package/dist/{vue-ui-gauge-Bbda2H3b.cjs → vue-ui-gauge-Ce80Waly.cjs} +1 -1
  61. package/dist/{vue-ui-gauge-CeGa1oMf.js → vue-ui-gauge-CkWosWjO.js} +5 -5
  62. package/dist/{vue-ui-gizmo-DyJngE0E.cjs → vue-ui-gizmo-Clsm9g4j.cjs} +1 -1
  63. package/dist/{vue-ui-gizmo-BILyJylm.js → vue-ui-gizmo-Cz_vLQob.js} +2 -2
  64. package/dist/{vue-ui-heatmap-Dp68UbGB.cjs → vue-ui-heatmap-C5C46dEp.cjs} +1 -1
  65. package/dist/{vue-ui-heatmap-DRk0VXaJ.js → vue-ui-heatmap-DPIUcnuz.js} +8 -8
  66. package/dist/{vue-ui-kpi-Mbre-_3M.cjs → vue-ui-kpi-D1ViyJSz.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-u5GBFKBR.js → vue-ui-kpi-DUDYmxGM.js} +2 -2
  68. package/dist/{vue-ui-mini-loader-DLXv9Seq.js → vue-ui-mini-loader-WhdcL_Ka.js} +2 -2
  69. package/dist/{vue-ui-mini-loader-CXiMb5pi.cjs → vue-ui-mini-loader-ggvINlYv.cjs} +1 -1
  70. package/dist/{vue-ui-molecule-JlPbVJ8I.js → vue-ui-molecule-DJvkH7pt.js} +9 -9
  71. package/dist/{vue-ui-molecule-DOwGWqSR.cjs → vue-ui-molecule-fzhl4bdu.cjs} +1 -1
  72. package/dist/{vue-ui-mood-radar-C3Boyr96.js → vue-ui-mood-radar-D_5uqQQu.js} +9 -9
  73. package/dist/{vue-ui-mood-radar-BF3WqcyN.cjs → vue-ui-mood-radar-Dtk9oVC5.cjs} +1 -1
  74. package/dist/{vue-ui-nested-donuts-DkGXmwTg.cjs → vue-ui-nested-donuts-Ds13H5z7.cjs} +1 -1
  75. package/dist/{vue-ui-nested-donuts-C9CFBzvj.js → vue-ui-nested-donuts-XAlzU4h6.js} +9 -9
  76. package/dist/{vue-ui-onion-COYhqrEx.cjs → vue-ui-onion-DbkWcknp.cjs} +1 -1
  77. package/dist/{vue-ui-onion-BqzUINBq.js → vue-ui-onion-Dkg0bF7v.js} +9 -9
  78. package/dist/{vue-ui-parallel-coordinate-plot-BE8Bf0MQ.cjs → vue-ui-parallel-coordinate-plot-GFBhsvzT.cjs} +1 -1
  79. package/dist/{vue-ui-parallel-coordinate-plot-DtXx6zpM.js → vue-ui-parallel-coordinate-plot-VSLNUybk.js} +10 -10
  80. package/dist/{vue-ui-quadrant-g34Ky2Hq.cjs → vue-ui-quadrant-ByC7oL_6.cjs} +1 -1
  81. package/dist/{vue-ui-quadrant-Cr2jm-2w.js → vue-ui-quadrant-Dd6rn_Pi.js} +10 -10
  82. package/dist/{vue-ui-quick-chart-gurflOrc.js → vue-ui-quick-chart-Bu6exyaS.js} +6 -6
  83. package/dist/{vue-ui-quick-chart-BEXF1YLk.cjs → vue-ui-quick-chart-Dc71ePSN.cjs} +1 -1
  84. package/dist/{vue-ui-radar-DGXj7kOe.js → vue-ui-radar-CxJWvM3Y.js} +10 -10
  85. package/dist/{vue-ui-radar-B77sXFJD.cjs → vue-ui-radar-D8CnwaFE.cjs} +1 -1
  86. package/dist/{vue-ui-rating-J4wpjGDw.cjs → vue-ui-rating-CESNVfXP.cjs} +1 -1
  87. package/dist/{vue-ui-rating-D2wmEDux.js → vue-ui-rating-DS1AG6Jp.js} +2 -2
  88. package/dist/{vue-ui-relation-circle-8hDVUqzX.js → vue-ui-relation-circle-CDCF4oQw.js} +5 -5
  89. package/dist/{vue-ui-relation-circle-CkO4PvuL.cjs → vue-ui-relation-circle-DVhnxuiU.cjs} +1 -1
  90. package/dist/{vue-ui-rings-Bt4lsykR.cjs → vue-ui-rings-BfUQSnuu.cjs} +1 -1
  91. package/dist/{vue-ui-rings-Bs4I_DFj.js → vue-ui-rings-DluO88_f.js} +9 -9
  92. package/dist/{vue-ui-scatter-pnVV0nUg.cjs → vue-ui-scatter-CI0FcEEN.cjs} +1 -1
  93. package/dist/{vue-ui-scatter-BcuxFe_0.js → vue-ui-scatter-DWutde89.js} +10 -10
  94. package/dist/{vue-ui-screenshot-Q4jzniKW.cjs → vue-ui-screenshot-B3nuvgoB.cjs} +1 -1
  95. package/dist/{vue-ui-screenshot-CkunIVDh.js → vue-ui-screenshot-QZKcfcQz.js} +1 -1
  96. package/dist/{vue-ui-skeleton-Fsru0dbb.cjs → vue-ui-skeleton-BG428rdQ.cjs} +1 -1
  97. package/dist/{vue-ui-skeleton-jYHncdu5.js → vue-ui-skeleton-BYBsAUyH.js} +2 -2
  98. package/dist/{vue-ui-smiley-B3gIeKih.js → vue-ui-smiley-DlM_vi6f.js} +2 -2
  99. package/dist/{vue-ui-smiley-Bd3lgUj_.cjs → vue-ui-smiley-rIdwAdX9.cjs} +1 -1
  100. package/dist/{vue-ui-spark-trend-DfD8Q9Zl.cjs → vue-ui-spark-trend-vKIobiEO.cjs} +1 -1
  101. package/dist/{vue-ui-spark-trend-CgEi2LBP.js → vue-ui-spark-trend-z0SJASPo.js} +4 -4
  102. package/dist/{vue-ui-sparkbar-Bu_TX-tQ.js → vue-ui-sparkbar-8UFAzq_D.js} +3 -3
  103. package/dist/{vue-ui-sparkbar-BCmLvKvU.cjs → vue-ui-sparkbar-nRQoMePg.cjs} +1 -1
  104. package/dist/{vue-ui-sparkgauge-Cml4o6Bs.js → vue-ui-sparkgauge-Dek8oWQO.js} +3 -3
  105. package/dist/{vue-ui-sparkgauge-C_DSQGId.cjs → vue-ui-sparkgauge-JqAOrMu8.cjs} +1 -1
  106. package/dist/{vue-ui-sparkhistogram-BsyOeGbq.js → vue-ui-sparkhistogram-T-HHiCJz.js} +4 -4
  107. package/dist/{vue-ui-sparkhistogram-BZDofxtq.cjs → vue-ui-sparkhistogram-hffqVDLl.cjs} +1 -1
  108. package/dist/{vue-ui-sparkline-DOsWIDug.js → vue-ui-sparkline-5f5eFY-F.js} +3 -3
  109. package/dist/{vue-ui-sparkline-twqIgYC3.cjs → vue-ui-sparkline-CJpMZzGq.cjs} +1 -1
  110. package/dist/{vue-ui-sparkstackbar-DTgoeXjb.cjs → vue-ui-sparkstackbar-B__Fucjz.cjs} +1 -1
  111. package/dist/{vue-ui-sparkstackbar-DeWgfL12.js → vue-ui-sparkstackbar-OLeLCAfa.js} +3 -3
  112. package/dist/{vue-ui-strip-plot-BV27VHWB.cjs → vue-ui-strip-plot-DaIXrnMv.cjs} +1 -1
  113. package/dist/{vue-ui-strip-plot-Ci-hICkJ.js → vue-ui-strip-plot-ozTKwGJu.js} +9 -9
  114. package/dist/{vue-ui-table-R_KFQoq4.js → vue-ui-table-CSd6SuV6.js} +1 -1
  115. package/dist/{vue-ui-table-Bd9ddVGy.cjs → vue-ui-table-DEjTd9bz.cjs} +1 -1
  116. package/dist/{vue-ui-table-heatmap-TYLCpM_Y.js → vue-ui-table-heatmap-BCwbIRjJ.js} +4 -4
  117. package/dist/{vue-ui-table-heatmap-CPOETxT8.cjs → vue-ui-table-heatmap-Ch3DNTwB.cjs} +1 -1
  118. package/dist/{vue-ui-table-sparkline-H_qcrFc0.cjs → vue-ui-table-sparkline-BamEvqqU.cjs} +1 -1
  119. package/dist/{vue-ui-table-sparkline-B-qJP3Yr.js → vue-ui-table-sparkline-pqkWVgDE.js} +5 -5
  120. package/dist/{vue-ui-thermometer-fV6P7B8U.js → vue-ui-thermometer-BNKjEKa5.js} +5 -5
  121. package/dist/{vue-ui-thermometer-CBybvctJ.cjs → vue-ui-thermometer-j0imZL11.cjs} +1 -1
  122. package/dist/{vue-ui-timer-CU-tJV53.js → vue-ui-timer-UN1HRKqX.js} +4 -4
  123. package/dist/{vue-ui-timer-CwQteT9E.cjs → vue-ui-timer-y8-BpbDO.cjs} +1 -1
  124. package/dist/{vue-ui-tiremarks-Dxy0W8kp.js → vue-ui-tiremarks-BgPY-Xdg.js} +5 -5
  125. package/dist/{vue-ui-tiremarks-Ba1Er97s.cjs → vue-ui-tiremarks-Br8VFETW.cjs} +1 -1
  126. package/dist/{vue-ui-treemap-CFqf6BUd.js → vue-ui-treemap-DarcNBcD.js} +9 -9
  127. package/dist/{vue-ui-treemap-CpPqA91r.cjs → vue-ui-treemap-eOm05Tfs.cjs} +1 -1
  128. package/dist/{vue-ui-vertical-bar-Px2OPOQp.cjs → vue-ui-vertical-bar-BcM0OUyM.cjs} +1 -1
  129. package/dist/{vue-ui-vertical-bar-CpIgWUoF.js → vue-ui-vertical-bar-eHmn-md4.js} +9 -9
  130. package/dist/{vue-ui-waffle-DbR7pPaP.js → vue-ui-waffle-DWLU2K8D.js} +9 -9
  131. package/dist/{vue-ui-waffle-BEOhRYhC.cjs → vue-ui-waffle-rTt5NUn9.cjs} +1 -1
  132. package/dist/{vue-ui-wheel-BkbAV9mu.js → vue-ui-wheel-DDLbFhWQ.js} +5 -5
  133. package/dist/{vue-ui-wheel-C4H-fBbx.cjs → vue-ui-wheel-hSoxrrRg.cjs} +1 -1
  134. package/dist/{vue-ui-word-cloud-704bFMO3.js → vue-ui-word-cloud-Cxbw7xOK.js} +6 -6
  135. package/dist/{vue-ui-word-cloud-B8vX27Pz.cjs → vue-ui-word-cloud-FbXg9B5l.cjs} +1 -1
  136. package/dist/{vue-ui-xy-kFskWWiT.js → vue-ui-xy-B5D5L9TB.js} +12 -12
  137. package/dist/{vue-ui-xy-B8qzx04X.cjs → vue-ui-xy-BZrKDy2O.cjs} +1 -1
  138. package/dist/{vue-ui-xy-canvas-CJO0hp3z.js → vue-ui-xy-canvas-BZ3uoI37.js} +10 -10
  139. package/dist/{vue-ui-xy-canvas-BVhRHPYN.cjs → vue-ui-xy-canvas-BmaDU5gm.cjs} +1 -1
  140. package/package.json +1 -1
  141. package/dist/vue-ui-carousel-table-FMfXIF7s.cjs +0 -1
  142. package/dist/vue-ui-carousel-table-S3daEHYR.js +0 -330
@@ -1,330 +0,0 @@
1
- import { ref as a, onMounted as B, computed as w, onBeforeUnmount as be, watch as ye, openBlock as i, createElementBlock as s, createElementVNode as R, normalizeStyle as d, unref as m, normalizeClass as Ce, createTextVNode as U, toDisplayString as L, renderSlot as v, Fragment as G, renderList as M, normalizeProps as V, guardReactiveProps as D, createCommentVNode as N, createBlock as ie, createSlots as $e, withCtx as I, nextTick as Te } from "vue";
2
- import { u as xe, c as Ae, o as q, e as X, r as ke, n as we, q as Ie } from "./index-BvjCO-wv.js";
3
- import { u as Fe } from "./useNestedProp-2KJaYPfM.js";
4
- import { u as Oe, U as Pe } from "./usePrinter-CaKXrCiB.js";
5
- import ze from "./vue-ui-skeleton-jYHncdu5.js";
6
- import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- const Re = ["id"], Ne = ["height"], Ee = ["data-cell", "height"], Se = {
8
- __name: "vue-ui-carousel-table",
9
- props: {
10
- config: {
11
- type: Object,
12
- default() {
13
- return {};
14
- }
15
- },
16
- dataset: {
17
- type: Object,
18
- default() {
19
- return {};
20
- }
21
- }
22
- },
23
- setup(h, { expose: ue }) {
24
- const l = h, { vue_ui_carousel_table: se } = xe(), E = a(Ae()), j = a(!1), b = a(!!l.dataset);
25
- B(() => {
26
- q(l.dataset) ? X({
27
- componentName: "VueUiCarouselTable",
28
- type: "dataset"
29
- }) : ((!l.dataset.head || q(l.dataset.head)) && (X({
30
- componentName: "VueUiCarouselTable",
31
- type: "datasetAttribute",
32
- property: "head"
33
- }), b.value = !1), (!l.dataset.body || q(l.dataset.body)) && (X({
34
- componentName: "VueUiCarouselTable",
35
- type: "datasetAttribute",
36
- property: "body"
37
- }), b.value = !1));
38
- });
39
- const e = w(() => Fe({
40
- userConfig: l.config,
41
- defaultConfig: se
42
- })), { isPrinting: J, isImaging: K, generatePdf: re, generateImage: Q } = Oe({
43
- elementId: `carousel-table_${E.value}`,
44
- fileName: e.value.caption.text || "vue-ui-carousel-table"
45
- }), r = a({
46
- showAnimation: e.value.animation.use
47
- }), p = a(null), W = a(null), y = a(null), C = a(null), $ = a(0), F = a(0), O = a(!1), P = a(null), c = a(null), T = a(0);
48
- function Y() {
49
- P.value && (c.value = {
50
- elements: P.value.getElementsByTagName("tr"),
51
- heights: Array.from(P.value.getElementsByTagName("tr")).map((t) => t.getBoundingClientRect().height)
52
- });
53
- }
54
- B(Y);
55
- const de = w(() => !c.value || !c.value.heights.length ? 0 : Math.max(...c.value.heights) + $.value + F.value), ve = w(() => l.dataset.body ? e.value.tbody.tr.visible <= l.dataset.body.length ? e.value.tbody.tr.visible : l.dataset.body.length : 0), pe = w(() => (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2) * ve.value + $.value + F.value), S = a(0), x = a(null), A = a(0), f = a(!1), Z = a(0);
56
- B(() => {
57
- y.value && ($.value = y.value.getBoundingClientRect().height), C.value && (F.value = C.value.getBoundingClientRect().height), r.value.showAnimation && c.value && _();
58
- });
59
- function ce(t) {
60
- j.value = t, Z.value += 1;
61
- }
62
- function _() {
63
- !x.value && !f.value && (x.value = requestAnimationFrame(ee));
64
- }
65
- function he() {
66
- if (!p.value) return !1;
67
- const { scrollTop: t, scrollHeight: o, clientHeight: n } = p.value;
68
- return t + n >= o;
69
- }
70
- function ee(t) {
71
- if (f.value) return;
72
- A.value || (A.value = t), t - A.value >= e.value.animation.speedMs && (S.value += c.value.heights[T.value], (he() || T.value >= c.value.heights.length) && (S.value = 0, T.value = 0), p.value && (p.value.scrollTo({
73
- top: S.value,
74
- behavior: "smooth"
75
- }), T.value += 1), A.value = t), x.value = requestAnimationFrame(ee);
76
- }
77
- function g() {
78
- f.value = !0, cancelAnimationFrame(x.value), x.value = null;
79
- }
80
- be(g);
81
- function k() {
82
- !f.value || !r.value.showAnimation || (f.value = !1, A.value = 0, _());
83
- }
84
- function fe() {
85
- e.value.animation.pauseOnHover && g();
86
- }
87
- const H = a(null);
88
- function ge() {
89
- g(), clearTimeout(H.value);
90
- }
91
- function te() {
92
- clearTimeout(H.value), H.value = setTimeout(k, 1e3);
93
- }
94
- ye(
95
- () => e.value.animation.use,
96
- (t) => {
97
- t ? (r.value.showAnimation = !0, k()) : (r.value.showAnimation = !1, g());
98
- }
99
- );
100
- const me = w(() => e.value.responsiveBreakpoint);
101
- B(() => {
102
- const t = new ResizeObserver((o) => {
103
- o.forEach((n) => {
104
- O.value = n.contentRect.width < me.value;
105
- }), $.value = y.value ? y.value.getBoundingClientRect().height : 0, F.value = C.value ? C.value.getBoundingClientRect().height : 0, T.value = 0, Y();
106
- });
107
- p.value && t.observe(p.value);
108
- });
109
- function ae() {
110
- re();
111
- }
112
- function oe() {
113
- r.value.showAnimation = !r.value.showAnimation, r.value.showAnimation ? k() : g();
114
- }
115
- function ne() {
116
- Te(() => {
117
- const t = l.dataset.head.map((u, z) => [
118
- [l.dataset.body[z]]
119
- ]), o = [
120
- [e.value.caption.text],
121
- [l.dataset.head.map((u) => [u])]
122
- ].concat(t), n = we(o);
123
- Ie({
124
- csvContent: n,
125
- title: e.value.caption.text || "vue-ui-carousel-table"
126
- });
127
- });
128
- }
129
- return ue({
130
- pauseAnimation: g,
131
- resumeAnimation: k,
132
- toggleAnimation: oe,
133
- generateCsv: ne,
134
- generatePdf: ae,
135
- generateImage: Q
136
- }), (t, o) => (i(), s("div", {
137
- style: { position: "relative", overflow: "visible" },
138
- ref_key: "chartContainer",
139
- ref: W
140
- }, [
141
- R("div", {
142
- ref_key: "tableContainer",
143
- ref: p,
144
- id: `carousel-table_${E.value}`,
145
- style: d({
146
- height: m(J) || m(K) ? "auto" : `${Math.max(pe.value, de.value)}px`,
147
- containerType: "inline-size",
148
- position: "relative",
149
- overflow: "auto",
150
- fontFamily: e.value.fontFamily
151
- }),
152
- class: Ce({ "vue-ui-responsive": O.value, "is-playing": !f.value }),
153
- onMouseenter: o[0] || (o[0] = (n) => fe()),
154
- onMouseleave: o[1] || (o[1] = (n) => k()),
155
- onTouchstart: o[2] || (o[2] = (n) => ge()),
156
- onTouchend: o[3] || (o[3] = (n) => te()),
157
- onTouchcancel: o[4] || (o[4] = (n) => te())
158
- }, [
159
- b.value ? (i(), s("table", {
160
- key: 0,
161
- class: "vue-data-ui-carousel-table",
162
- style: d({
163
- ...e.value.style,
164
- border: `${e.value.border.size}px solid ${e.value.border.color}`,
165
- width: "100%",
166
- borderCollapse: "collapse"
167
- })
168
- }, [
169
- R("caption", {
170
- ref_key: "caption",
171
- ref: y,
172
- class: "vue-data-ui-carousel-table-caption",
173
- style: d({
174
- ...e.value.caption.style,
175
- fontFamily: "inherit",
176
- position: "sticky",
177
- top: 0,
178
- zIndex: 2,
179
- paddingTop: e.value.caption.padding.top + "px",
180
- paddingRight: e.value.caption.padding.right + "px",
181
- paddingBottom: e.value.caption.padding.bottom + "px",
182
- paddingLeft: e.value.caption.padding.left + "px",
183
- boxShadow: O.value ? e.value.thead.tr.style.boxShadow : "none",
184
- minHeight: "36px"
185
- })
186
- }, [
187
- U(L(e.value.caption.text && !t.$slots.caption ? e.value.caption.text : "") + " ", 1),
188
- v(t.$slots, "caption", {}, void 0, !0)
189
- ], 4),
190
- R("thead", {
191
- style: d({ ...e.value.thead.style, position: "sticky", top: `${$.value}px`, zIndex: 1 })
192
- }, [
193
- R("tr", {
194
- ref_key: "tableRow",
195
- ref: C,
196
- role: "row",
197
- style: d({
198
- ...e.value.thead.tr.style,
199
- border: e.value.thead.tr.border.size ? `${e.value.thead.tr.border.size}px solid ${e.value.thead.tr.border.color}` : "none",
200
- boxShadow: O.value ? "none" : e.value.thead.tr.style.boxShadow
201
- }),
202
- height: `${e.value.thead.tr.height}px`
203
- }, [
204
- (i(!0), s(G, null, M(h.dataset.head, (n, u) => (i(), s("th", {
205
- role: "cell",
206
- key: `th_${u}`,
207
- style: d({
208
- ...e.value.thead.tr.th.style,
209
- border: e.value.thead.tr.th.border.size ? `${e.value.thead.tr.th.border.size}px solid ${e.value.thead.tr.th.border.color}` : "none",
210
- paddingTop: e.value.thead.tr.th.padding.top + "px",
211
- paddingRight: e.value.thead.tr.th.padding.right + "px",
212
- paddingBottom: e.value.thead.tr.th.padding.bottom + "px",
213
- paddingLeft: e.value.thead.tr.th.padding.left + "px"
214
- })
215
- }, [
216
- U(L(t.$slots.th ? "" : n) + " ", 1),
217
- v(t.$slots, "th", V(D({ th: n, colIndex: u })), void 0, !0)
218
- ], 4))), 128))
219
- ], 12, Ne)
220
- ], 4),
221
- h.dataset.body && h.dataset.head ? (i(), s("tbody", {
222
- key: 0,
223
- ref_key: "tbody",
224
- ref: P
225
- }, [
226
- (i(!0), s(G, null, M(h.dataset.body, (n, u) => (i(), s("tr", {
227
- style: d({
228
- ...e.value.tbody.tr.style,
229
- border: `${e.value.tbody.tr.border.size}px solid ${e.value.tbody.tr.border.color}`,
230
- verticalAlign: "middle"
231
- })
232
- }, [
233
- (i(!0), s(G, null, M(n, (z, le) => (i(), s("td", {
234
- role: "cell",
235
- "data-cell": h.dataset.head[le] || "",
236
- style: d({
237
- ...e.value.tbody.tr.td.style,
238
- border: `${e.value.tbody.tr.td.border.size}px solid ${e.value.tbody.tr.td.border.color}`,
239
- backgroundColor: e.value.tbody.tr.td.style.backgroundColor + m(ke)[u % 2 === 0 && e.value.tbody.tr.td.alternateColor ? e.value.tbody.tr.td.alternateOpacity * 100 : 100],
240
- paddingTop: e.value.tbody.tr.td.padding.top + "px",
241
- paddingRight: e.value.tbody.tr.td.padding.right + "px",
242
- paddingBottom: e.value.tbody.tr.td.padding.bottom + "px",
243
- paddingLeft: e.value.tbody.tr.td.padding.left + "px",
244
- verticalAlign: "middle"
245
- }),
246
- height: `${e.value.tbody.tr.height}px`
247
- }, [
248
- U(L(t.$slots.td ? "" : z) + " ", 1),
249
- v(t.$slots, "td", V(D({ td: z, rowIndex: u, colIndex: le })), void 0, !0)
250
- ], 12, Ee))), 256))
251
- ], 4))), 256))
252
- ], 512)) : N("", !0)
253
- ], 4)) : N("", !0)
254
- ], 46, Re),
255
- b.value ? N("", !0) : (i(), ie(ze, {
256
- key: 0,
257
- config: {
258
- type: "table"
259
- }
260
- })),
261
- e.value.userOptions.show && b.value ? (i(), ie(Pe, {
262
- ref: "details",
263
- key: `user_option_${Z.value}`,
264
- backgroundColor: e.value.style.backgroundColor,
265
- color: e.value.style.color,
266
- isPrinting: m(J),
267
- isImaging: m(K),
268
- uid: E.value,
269
- hasTooltip: !1,
270
- hasPdf: e.value.userOptions.buttons.pdf,
271
- hasImg: e.value.userOptions.buttons.img,
272
- hasXls: e.value.userOptions.buttons.csv,
273
- hasTable: !1,
274
- hasLabel: !1,
275
- hasAnimation: e.value.userOptions.buttons.animation,
276
- isAnimation: !r.value.showAnimation,
277
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
278
- isFullscreen: j.value,
279
- chartElement: W.value,
280
- titles: { ...e.value.userOptions.buttonTitles },
281
- zIndex: 3,
282
- noOffset: "",
283
- onGeneratePdf: ae,
284
- onGenerateCsv: ne,
285
- onGenerateImage: m(Q),
286
- onToggleAnimation: oe,
287
- onToggleFullscreen: ce
288
- }, $e({ _: 2 }, [
289
- t.$slots.optionPdf ? {
290
- name: "optionPdf",
291
- fn: I(() => [
292
- v(t.$slots, "optionPdf", {}, void 0, !0)
293
- ]),
294
- key: "0"
295
- } : void 0,
296
- t.$slots.optionCsv ? {
297
- name: "optionCsv",
298
- fn: I(() => [
299
- v(t.$slots, "optionCsv", {}, void 0, !0)
300
- ]),
301
- key: "1"
302
- } : void 0,
303
- t.$slots.optionImg ? {
304
- name: "optionImg",
305
- fn: I(() => [
306
- v(t.$slots, "optionImg", {}, void 0, !0)
307
- ]),
308
- key: "2"
309
- } : void 0,
310
- t.$slots.optionAnimation ? {
311
- name: "optionAnimation",
312
- fn: I(() => [
313
- v(t.$slots, "optionAnimation", {}, void 0, !0)
314
- ]),
315
- key: "3"
316
- } : void 0,
317
- t.$slots.optionFullscreen ? {
318
- name: "optionFullscreen",
319
- fn: I(({ toggleFullscreen: n, isFullscreen: u }) => [
320
- v(t.$slots, "optionFullscreen", V(D({ toggleFullscreen: n, isFullscreen: u })), void 0, !0)
321
- ]),
322
- key: "4"
323
- } : void 0
324
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasAnimation", "isAnimation", "hasFullscreen", "isFullscreen", "chartElement", "titles", "onGenerateImage"])) : N("", !0)
325
- ], 512));
326
- }
327
- }, De = /* @__PURE__ */ Be(Se, [["__scopeId", "data-v-c06beec9"]]);
328
- export {
329
- De as default
330
- };