vue-data-ui 2.3.8 → 2.3.9

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 (138) hide show
  1. package/dist/{Arrow-CS3h3CsG.js → Arrow-CyqlT0ih.js} +1 -1
  2. package/dist/{Arrow-DUJvJpMd.cjs → Arrow-Xy7TAWLU.cjs} +1 -1
  3. package/dist/{BaseIcon-ByV6y3w8.cjs → BaseIcon-DpzJwh5Z.cjs} +1 -1
  4. package/dist/{BaseIcon-CVk_WG9x.js → BaseIcon-vF6zgXvp.js} +1 -1
  5. package/dist/{DataTable-C4CMZu2s.cjs → DataTable-DZ7GOCVh.cjs} +1 -1
  6. package/dist/{DataTable-B-LJlgjS.js → DataTable-Dj8KLJHc.js} +2 -2
  7. package/dist/{Legend-DWBU0qDC.cjs → Legend-BNUo8JKO.cjs} +1 -1
  8. package/dist/{Legend-DVsCAbZS.js → Legend-MfrOhwon.js} +1 -1
  9. package/dist/{Shape-CcbBblwI.cjs → Shape-DBYznwuk.cjs} +1 -1
  10. package/dist/{Shape-w47nQzLj.js → Shape-fssaGSn1.js} +1 -1
  11. package/dist/{Slicer-CY-QTbH4.cjs → Slicer-B8qDEiI2.cjs} +1 -1
  12. package/dist/{Slicer-2MG0k2PP.js → Slicer-C2VIWW3F.js} +1 -1
  13. package/dist/{Title-D6zeMzr0.cjs → Title--kLbBq-N.cjs} +1 -1
  14. package/dist/{Title-D_FeWJsx.js → Title-DM6fKrUI.js} +1 -1
  15. package/dist/{Tooltip-BY94WbUk.js → Tooltip-CAmd4pzg.js} +1 -1
  16. package/dist/{Tooltip-2d9jRdHk.cjs → Tooltip-Dwh7A0L5.cjs} +1 -1
  17. package/dist/{index-BQbaKiSm.cjs → index-CSlObCMJ.cjs} +1 -1
  18. package/dist/{index-DLi6mPet.js → index-D0PI50d6.js} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-DmMzRJ1O.js → useNestedProp-BNV_Y29K.js} +1 -1
  21. package/dist/{useNestedProp-B6CpIX-3.cjs → useNestedProp-DUXlSjg2.cjs} +1 -1
  22. package/dist/{usePrinter-BANjHBXe.cjs → usePrinter-ClpmcbPy.cjs} +1 -1
  23. package/dist/{usePrinter-BnaEziDF.js → usePrinter-DJnJEVGy.js} +1 -1
  24. package/dist/{vue-data-ui-DWSz421j.cjs → vue-data-ui-B5epGKMS.cjs} +1 -1
  25. package/dist/{vue-data-ui-Br12h04t.js → vue-data-ui-DLhyTmG3.js} +55 -55
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BFu2IXOP.cjs → vue-ui-3d-bar-Dv5Nu-Kz.cjs} +1 -1
  29. package/dist/{vue-ui-3d-bar-CNpZvjQ1.js → vue-ui-3d-bar-JeMsTT6R.js} +7 -7
  30. package/dist/{vue-ui-accordion-DzCdp527.js → vue-ui-accordion-C1dTIdYg.js} +3 -3
  31. package/dist/{vue-ui-accordion-CHVCSgY3.cjs → vue-ui-accordion-IPISean4.cjs} +1 -1
  32. package/dist/{vue-ui-age-pyramid-CCezvPxx.js → vue-ui-age-pyramid-BPrB-Srk.js} +8 -8
  33. package/dist/{vue-ui-age-pyramid-DaUZgLYc.cjs → vue-ui-age-pyramid-ytOUpNe5.cjs} +1 -1
  34. package/dist/{vue-ui-annotator-CZ3Lk0Ky.cjs → vue-ui-annotator-Bp2ylQ-N.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-QPK7ARtK.js → vue-ui-annotator-DpY8JI03.js} +1 -1
  36. package/dist/{vue-ui-candlestick-CaofVEg_.cjs → vue-ui-candlestick-BoDWcJYz.cjs} +1 -1
  37. package/dist/{vue-ui-candlestick-kh_Ft3mr.js → vue-ui-candlestick-D_KnLwpq.js} +9 -9
  38. package/dist/vue-ui-carousel-table-DWUmj6NW.js +330 -0
  39. package/dist/vue-ui-carousel-table-tPbrubLn.cjs +1 -0
  40. package/dist/{vue-ui-chestnut-joiWg5ii.cjs → vue-ui-chestnut-BltZicnq.cjs} +1 -1
  41. package/dist/{vue-ui-chestnut-BypPYKEQ.js → vue-ui-chestnut-gUPyB2F7.js} +6 -6
  42. package/dist/{vue-ui-cursor-CVwqSrVu.js → vue-ui-cursor-CBrYcHgg.js} +2 -2
  43. package/dist/{vue-ui-cursor-CaxdcYVa.cjs → vue-ui-cursor-Mi9mivGV.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-C7roqJdv.js → vue-ui-dashboard-BvJccz-l.js} +2 -2
  45. package/dist/{vue-ui-dashboard-B12glgQZ.cjs → vue-ui-dashboard-DKJRkuMC.cjs} +1 -1
  46. package/dist/{vue-ui-digits-DZBXECIq.js → vue-ui-digits-PvPOOZTT.js} +2 -2
  47. package/dist/{vue-ui-digits-BeGGrWds.cjs → vue-ui-digits-UvPWZIkN.cjs} +1 -1
  48. package/dist/{vue-ui-donut-DoMzPJHF.js → vue-ui-donut-CCnmksR_.js} +9 -9
  49. package/dist/{vue-ui-donut-diN8RiYm.cjs → vue-ui-donut-DBD9IyRA.cjs} +1 -1
  50. package/dist/{vue-ui-donut-evolution-CTgTqsih.cjs → vue-ui-donut-evolution-C2mbsaP5.cjs} +1 -1
  51. package/dist/{vue-ui-donut-evolution-CXT7c3_C.js → vue-ui-donut-evolution-DWz0XIkn.js} +9 -9
  52. package/dist/{vue-ui-dumbbell-B6th1M9b.cjs → vue-ui-dumbbell-CdQ1eQN_.cjs} +1 -1
  53. package/dist/{vue-ui-dumbbell-1StMWJ5B.js → vue-ui-dumbbell-DnhWlDqn.js} +8 -8
  54. package/dist/{vue-ui-flow-Bux2O68S.cjs → vue-ui-flow-CXeTBawu.cjs} +1 -1
  55. package/dist/{vue-ui-flow-ynx-run3.js → vue-ui-flow-zTfYWLOo.js} +7 -7
  56. package/dist/{vue-ui-galaxy-D9QnmX0M.cjs → vue-ui-galaxy-Cr1TLsZ-.cjs} +1 -1
  57. package/dist/{vue-ui-galaxy-C7GEYMQB.js → vue-ui-galaxy-CviL0-9-.js} +9 -9
  58. package/dist/{vue-ui-gauge-DU8VU1m7.js → vue-ui-gauge-0wjKwTcJ.js} +4 -4
  59. package/dist/{vue-ui-gauge-DrgKJTGw.cjs → vue-ui-gauge-C8cqiuMs.cjs} +1 -1
  60. package/dist/{vue-ui-heatmap-BIBsrwjz.cjs → vue-ui-heatmap-BempgzJY.cjs} +1 -1
  61. package/dist/{vue-ui-heatmap-DUuN0fGR.js → vue-ui-heatmap-BjX35pDk.js} +8 -8
  62. package/dist/{vue-ui-kpi-CLEQSt4V.cjs → vue-ui-kpi-Cwoq-OQZ.cjs} +1 -1
  63. package/dist/{vue-ui-kpi-BoGsykfq.js → vue-ui-kpi-DKPUNPyD.js} +2 -2
  64. package/dist/{vue-ui-mini-loader-CIPfR_lB.cjs → vue-ui-mini-loader-DYmuLkr_.cjs} +1 -1
  65. package/dist/{vue-ui-mini-loader-CNCZkUvI.js → vue-ui-mini-loader-umbgz-jE.js} +2 -2
  66. package/dist/{vue-ui-molecule-Da19KH5g.cjs → vue-ui-molecule-D04xU1nK.cjs} +1 -1
  67. package/dist/{vue-ui-molecule-Brw0qOjw.js → vue-ui-molecule-DnTFVeGw.js} +9 -9
  68. package/dist/{vue-ui-mood-radar-hIUOJ8Cd.js → vue-ui-mood-radar-BdsUM6EW.js} +9 -9
  69. package/dist/{vue-ui-mood-radar-BktJHBX_.cjs → vue-ui-mood-radar-wHCxSeNT.cjs} +1 -1
  70. package/dist/{vue-ui-nested-donuts-2GqE8lhb.cjs → vue-ui-nested-donuts--34k7AUI.cjs} +1 -1
  71. package/dist/{vue-ui-nested-donuts-DXZXCu5s.js → vue-ui-nested-donuts-CX_V9UIk.js} +9 -9
  72. package/dist/{vue-ui-onion-Bx2_3hmi.js → vue-ui-onion-C3scIn1m.js} +9 -9
  73. package/dist/{vue-ui-onion-DqnFyhwy.cjs → vue-ui-onion-ot5UiFnD.cjs} +1 -1
  74. package/dist/{vue-ui-parallel-coordinate-plot-DgjecbC2.js → vue-ui-parallel-coordinate-plot-BrtFu6_R.js} +10 -10
  75. package/dist/{vue-ui-parallel-coordinate-plot-CIkVq6XI.cjs → vue-ui-parallel-coordinate-plot-CLYNauuG.cjs} +1 -1
  76. package/dist/{vue-ui-quadrant-DlSMixki.js → vue-ui-quadrant-CZQnq031.js} +10 -10
  77. package/dist/{vue-ui-quadrant-DUNTLV5w.cjs → vue-ui-quadrant-b3C38Y-z.cjs} +1 -1
  78. package/dist/{vue-ui-quick-chart-_ysWkoF7.js → vue-ui-quick-chart-CQ_m8VuI.js} +6 -6
  79. package/dist/{vue-ui-quick-chart-CpdxM7qN.cjs → vue-ui-quick-chart-CS1XKyME.cjs} +1 -1
  80. package/dist/{vue-ui-radar-Fh5UQO5Z.js → vue-ui-radar-Bk_bQCIc.js} +10 -10
  81. package/dist/{vue-ui-radar-B8fTGb35.cjs → vue-ui-radar-ayBCV2nl.cjs} +1 -1
  82. package/dist/{vue-ui-rating-BTbg-bNd.cjs → vue-ui-rating-BNAFeqKV.cjs} +1 -1
  83. package/dist/{vue-ui-rating-CwV_45UQ.js → vue-ui-rating-CwmqAW6j.js} +2 -2
  84. package/dist/{vue-ui-relation-circle-B61AGVtF.js → vue-ui-relation-circle-B19oCBsQ.js} +5 -5
  85. package/dist/{vue-ui-relation-circle-BrHBPn8C.cjs → vue-ui-relation-circle-D__4tmLy.cjs} +1 -1
  86. package/dist/{vue-ui-rings-BSbFTwmB.cjs → vue-ui-rings-DWv1YjLY.cjs} +1 -1
  87. package/dist/{vue-ui-rings-DwtqKTGk.js → vue-ui-rings-Ekq8eld0.js} +9 -9
  88. package/dist/{vue-ui-scatter-CFXQQZQr.js → vue-ui-scatter-B5lq6TQb.js} +10 -10
  89. package/dist/{vue-ui-scatter-BdphtRDE.cjs → vue-ui-scatter-Djt3w_7K.cjs} +1 -1
  90. package/dist/{vue-ui-screenshot-ChP1r5WI.cjs → vue-ui-screenshot-BBTScesQ.cjs} +1 -1
  91. package/dist/{vue-ui-screenshot-CkI4Gtys.js → vue-ui-screenshot-BGEu-1aK.js} +1 -1
  92. package/dist/{vue-ui-skeleton-CmXMTbOC.js → vue-ui-skeleton-CDB2sB2S.js} +2 -2
  93. package/dist/{vue-ui-skeleton-DIm7kxhc.cjs → vue-ui-skeleton-aEAr9fnx.cjs} +1 -1
  94. package/dist/{vue-ui-smiley-BQJ6XX_L.js → vue-ui-smiley-5sY2rtTd.js} +2 -2
  95. package/dist/{vue-ui-smiley-BQ1_0eFh.cjs → vue-ui-smiley-pHCa1uHj.cjs} +1 -1
  96. package/dist/{vue-ui-spark-trend-COUBPV4j.cjs → vue-ui-spark-trend-BLYjicGH.cjs} +1 -1
  97. package/dist/{vue-ui-spark-trend-Dx4w74bw.js → vue-ui-spark-trend-C6U8pRYP.js} +4 -4
  98. package/dist/{vue-ui-sparkbar-CxKIVunV.js → vue-ui-sparkbar-DdEDQOc8.js} +3 -3
  99. package/dist/{vue-ui-sparkbar-Cdcndp7Q.cjs → vue-ui-sparkbar-e9mZh74f.cjs} +1 -1
  100. package/dist/{vue-ui-sparkgauge-BhVgI98W.js → vue-ui-sparkgauge-CV0OpVGr.js} +3 -3
  101. package/dist/{vue-ui-sparkgauge-Bd2F7zw1.cjs → vue-ui-sparkgauge-S9QibidM.cjs} +1 -1
  102. package/dist/{vue-ui-sparkhistogram-CKw6tZnv.js → vue-ui-sparkhistogram-BCcYAQYV.js} +4 -4
  103. package/dist/{vue-ui-sparkhistogram-B1Txwx4N.cjs → vue-ui-sparkhistogram-DVc-tjMC.cjs} +1 -1
  104. package/dist/{vue-ui-sparkline-CSEByr6z.js → vue-ui-sparkline-C6emienJ.js} +3 -3
  105. package/dist/{vue-ui-sparkline-CrXPLabK.cjs → vue-ui-sparkline-WkYNaf-r.cjs} +1 -1
  106. package/dist/{vue-ui-sparkstackbar-CQLWpdxG.js → vue-ui-sparkstackbar-CptWawfp.js} +3 -3
  107. package/dist/{vue-ui-sparkstackbar-BfP1wyyg.cjs → vue-ui-sparkstackbar-oB0fsXWO.cjs} +1 -1
  108. package/dist/{vue-ui-strip-plot-N-_mlbwb.cjs → vue-ui-strip-plot-D30zeVfM.cjs} +1 -1
  109. package/dist/{vue-ui-strip-plot-DAJ0qjKU.js → vue-ui-strip-plot-Kb7Kk-C8.js} +9 -9
  110. package/dist/{vue-ui-table-DFe98urD.js → vue-ui-table-Dqyr1Go9.js} +1 -1
  111. package/dist/{vue-ui-table-t1jDOoJW.cjs → vue-ui-table-FUX1jbtH.cjs} +1 -1
  112. package/dist/{vue-ui-table-heatmap-oEi-vxRg.cjs → vue-ui-table-heatmap-Cqd_rPSG.cjs} +1 -1
  113. package/dist/{vue-ui-table-heatmap-DUonA4jJ.js → vue-ui-table-heatmap-DAWzPS1D.js} +4 -4
  114. package/dist/{vue-ui-table-sparkline-DKoH5PeD.cjs → vue-ui-table-sparkline-CWSL5RtX.cjs} +1 -1
  115. package/dist/{vue-ui-table-sparkline-BIY7GWik.js → vue-ui-table-sparkline-DgUpsNVO.js} +5 -5
  116. package/dist/{vue-ui-thermometer-ZgNA47Fv.cjs → vue-ui-thermometer-DDpxHZhQ.cjs} +1 -1
  117. package/dist/{vue-ui-thermometer-BiWx3ujG.js → vue-ui-thermometer-UZFTkdJs.js} +5 -5
  118. package/dist/{vue-ui-timer-BmThVcD0.cjs → vue-ui-timer-CXonfhMU.cjs} +1 -1
  119. package/dist/{vue-ui-timer-BFKnN8tS.js → vue-ui-timer-DCexI32t.js} +4 -4
  120. package/dist/{vue-ui-tiremarks-D9ClW4XX.cjs → vue-ui-tiremarks-DByzjHco.cjs} +1 -1
  121. package/dist/{vue-ui-tiremarks-BO_X27nw.js → vue-ui-tiremarks-UtTUbZUt.js} +5 -5
  122. package/dist/{vue-ui-treemap-BVV-tfRq.cjs → vue-ui-treemap-BT9zMgOs.cjs} +1 -1
  123. package/dist/{vue-ui-treemap-Crrd_rpP.js → vue-ui-treemap-DpLJGsie.js} +9 -9
  124. package/dist/{vue-ui-vertical-bar-CyuImTrh.js → vue-ui-vertical-bar-B9poCwqT.js} +9 -9
  125. package/dist/{vue-ui-vertical-bar-k9KkT9mN.cjs → vue-ui-vertical-bar-BWWvfTkx.cjs} +1 -1
  126. package/dist/{vue-ui-waffle-CYSDDS3-.js → vue-ui-waffle-BGnyyHVp.js} +83 -83
  127. package/dist/{vue-ui-waffle-DenwQo8B.cjs → vue-ui-waffle-fRaiL6eW.cjs} +1 -1
  128. package/dist/{vue-ui-wheel-C8-f39P2.js → vue-ui-wheel-7JdR9vyK.js} +5 -5
  129. package/dist/{vue-ui-wheel-Cx7SBWWF.cjs → vue-ui-wheel-C0BVez2R.cjs} +1 -1
  130. package/dist/{vue-ui-word-cloud-CMsakywD.cjs → vue-ui-word-cloud-CDDYvCP9.cjs} +1 -1
  131. package/dist/{vue-ui-word-cloud-D9y9Iht6.js → vue-ui-word-cloud-S1x3FJQ6.js} +6 -6
  132. package/dist/{vue-ui-xy-Dhpahzod.js → vue-ui-xy-DBC1QS_G.js} +12 -12
  133. package/dist/{vue-ui-xy-BxCALt6U.cjs → vue-ui-xy-DMkykmZN.cjs} +1 -1
  134. package/dist/{vue-ui-xy-canvas-COwqkdZB.js → vue-ui-xy-canvas-1yb0nuDg.js} +10 -10
  135. package/dist/{vue-ui-xy-canvas-B_Fi2be0.cjs → vue-ui-xy-canvas-B4xzjjjm.cjs} +1 -1
  136. package/package.json +1 -1
  137. package/dist/vue-ui-carousel-table-Cti_GQvV.cjs +0 -1
  138. package/dist/vue-ui-carousel-table-CxTbe6SP.js +0 -314
@@ -1,314 +0,0 @@
1
- import { useCssVars as ce, ref as o, onMounted as S, computed as T, watch as he, openBlock as i, createElementBlock as u, createElementVNode as O, normalizeStyle as v, unref as f, normalizeClass as be, createTextVNode as U, toDisplayString as E, renderSlot as p, Fragment as H, renderList as L, normalizeProps as V, guardReactiveProps as G, createCommentVNode as P, createBlock as oe, createSlots as fe, withCtx as w, nextTick as ge } from "vue";
2
- import { u as me, c as ye, o as D, e as M, r as Ce, n as $e, q as ke } from "./index-DLi6mPet.js";
3
- import { u as xe } from "./useNestedProp-DmMzRJ1O.js";
4
- import { u as Ae, U as Te } from "./usePrinter-BnaEziDF.js";
5
- import we from "./vue-ui-skeleton-CmXMTbOC.js";
6
- import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- const Fe = ["id"], ze = ["height"], Oe = { key: 0 }, Pe = ["data-cell", "height"], Re = {
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(r, { expose: ne }) {
24
- const a = r;
25
- ce((t) => ({
26
- "3b9147fd": t.tdo
27
- }));
28
- const { vue_ui_carousel_table: le } = me(), R = o(ye()), q = o(!1), g = o(!!a.dataset);
29
- S(() => {
30
- D(a.dataset) ? M({
31
- componentName: "VueUiCarouselTable",
32
- type: "dataset"
33
- }) : ((!a.dataset.head || D(a.dataset.head)) && (M({
34
- componentName: "VueUiCarouselTable",
35
- type: "datasetAttribute",
36
- property: "head"
37
- }), g.value = !1), (!a.dataset.body || D(a.dataset.body)) && (M({
38
- componentName: "VueUiCarouselTable",
39
- type: "datasetAttribute",
40
- property: "body"
41
- }), g.value = !1));
42
- });
43
- const e = T(() => xe({
44
- userConfig: a.config,
45
- defaultConfig: le
46
- })), { isPrinting: X, isImaging: j, generatePdf: ie, generateImage: J } = Ae({
47
- elementId: `carousel-table_${R.value}`,
48
- fileName: e.value.caption.text || "vue-ui-carousel-table"
49
- }), d = o({
50
- showAnimation: e.value.animation.use
51
- }), m = o(null), K = o(null), y = o(null), C = o(null), I = o(0), B = o(0), c = o(!1), Q = T(() => a.dataset.body ? e.value.tbody.tr.visible <= a.dataset.body.length ? e.value.tbody.tr.visible : a.dataset.body.length : 0), se = T(() => (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) * Q.value + I.value + B.value), ue = T(() => !a.dataset || !a.dataset.body || !a.dataset.head ? 0 : (a.dataset.body.length * (c.value ? a.dataset.head.length : 1) - Q.value) * (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)), F = o(0), $ = o(null), k = o(0), b = o(!1), W = o(0);
52
- S(() => {
53
- y.value && (I.value = y.value.getBoundingClientRect().height), C.value && (B.value = C.value.getBoundingClientRect().height), d.value.showAnimation && Y();
54
- });
55
- function re(t) {
56
- q.value = t, W.value += 1;
57
- }
58
- function Y() {
59
- !$.value && !b.value && ($.value = requestAnimationFrame(Z));
60
- }
61
- function Z(t) {
62
- if (b.value) return;
63
- k.value || (k.value = t), t - k.value >= e.value.animation.speedMs && (F.value += 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, F.value > ue.value && (F.value = 0), m.value && m.value.scrollTo({
64
- top: F.value,
65
- behavior: "smooth"
66
- }), k.value = t), $.value = requestAnimationFrame(Z);
67
- }
68
- function x() {
69
- b.value = !0, cancelAnimationFrame($.value), $.value = null;
70
- }
71
- function A() {
72
- !b.value || !d.value.showAnimation || (b.value = !1, k.value = 0, Y());
73
- }
74
- function de() {
75
- e.value.animation.pauseOnHover && x();
76
- }
77
- const N = o(null);
78
- function ve() {
79
- x(), clearTimeout(N.value);
80
- }
81
- function _() {
82
- clearTimeout(N.value), N.value = setTimeout(A, 1e3);
83
- }
84
- he(
85
- () => e.value.animation.use,
86
- (t) => {
87
- t ? (d.value.showAnimation = !0, A()) : (d.value.showAnimation = !1, x());
88
- }
89
- );
90
- const pe = T(() => e.value.responsiveBreakpoint);
91
- S(() => {
92
- const t = new ResizeObserver((n) => {
93
- n.forEach((l) => {
94
- c.value = l.contentRect.width < pe.value;
95
- }), I.value = y.value ? y.value.getBoundingClientRect().height : 0, B.value = C.value ? C.value.getBoundingClientRect().height : 0;
96
- });
97
- m.value && t.observe(m.value);
98
- });
99
- function ee() {
100
- ie();
101
- }
102
- function te() {
103
- d.value.showAnimation = !d.value.showAnimation, d.value.showAnimation ? A() : x();
104
- }
105
- function ae() {
106
- ge(() => {
107
- const t = a.dataset.head.map((s, h) => [
108
- [a.dataset.body[h]]
109
- ]), n = [
110
- [e.value.caption.text],
111
- [a.dataset.head.map((s) => [s])]
112
- ].concat(t), l = $e(n);
113
- ke({
114
- csvContent: l,
115
- title: e.value.caption.text || "vue-ui-carousel-table"
116
- });
117
- });
118
- }
119
- return ne({
120
- pauseAnimation: x,
121
- resumeAnimation: A,
122
- toggleAnimation: te,
123
- generateCsv: ae,
124
- generatePdf: ee,
125
- generateImage: J
126
- }), (t, n) => (i(), u("div", {
127
- style: { position: "relative", overflow: "visible" },
128
- ref_key: "chartContainer",
129
- ref: K
130
- }, [
131
- O("div", {
132
- ref_key: "tableContainer",
133
- ref: m,
134
- id: `carousel-table_${R.value}`,
135
- style: v({
136
- height: f(X) || f(j) ? "auto" : `${se.value}px`,
137
- containerType: "inline-size",
138
- position: "relative",
139
- overflow: "auto",
140
- fontFamily: e.value.fontFamily
141
- }),
142
- class: be({ "vue-ui-responsive": c.value, "is-playing": !b.value }),
143
- onMouseenter: n[0] || (n[0] = (l) => de()),
144
- onMouseleave: n[1] || (n[1] = (l) => A()),
145
- onTouchstart: n[2] || (n[2] = (l) => ve()),
146
- onTouchend: n[3] || (n[3] = (l) => _()),
147
- onTouchcancel: n[4] || (n[4] = (l) => _())
148
- }, [
149
- g.value ? (i(), u("table", {
150
- key: 0,
151
- class: "vue-data-ui-carousel-table",
152
- style: v({
153
- ...e.value.style,
154
- border: `${e.value.border.size}px solid ${e.value.border.color}`,
155
- width: "100%",
156
- borderCollapse: "collapse"
157
- })
158
- }, [
159
- O("caption", {
160
- ref_key: "caption",
161
- ref: y,
162
- class: "vue-data-ui-carousel-table-caption",
163
- style: v({
164
- ...e.value.caption.style,
165
- fontFamily: "inherit",
166
- position: "sticky",
167
- top: 0,
168
- zIndex: 2,
169
- paddingTop: e.value.caption.padding.top + "px",
170
- paddingRight: e.value.caption.padding.right + "px",
171
- paddingBottom: e.value.caption.padding.bottom + "px",
172
- paddingLeft: e.value.caption.padding.left + "px",
173
- boxShadow: c.value ? e.value.thead.tr.style.boxShadow : "none",
174
- minHeight: "36px"
175
- })
176
- }, [
177
- U(E(e.value.caption.text && !t.$slots.caption ? e.value.caption.text : "") + " ", 1),
178
- p(t.$slots, "caption", {}, void 0, !0)
179
- ], 4),
180
- O("thead", {
181
- style: v({ ...e.value.thead.style, position: "sticky", top: `${I.value}px`, zIndex: 1 })
182
- }, [
183
- O("tr", {
184
- ref_key: "tableRow",
185
- ref: C,
186
- role: "row",
187
- style: v({
188
- ...e.value.thead.tr.style,
189
- border: e.value.thead.tr.border.size ? `${e.value.thead.tr.border.size}px solid ${e.value.thead.tr.border.color}` : "none",
190
- boxShadow: c.value ? "none" : e.value.thead.tr.style.boxShadow
191
- }),
192
- height: `${e.value.thead.tr.height}px`
193
- }, [
194
- (i(!0), u(H, null, L(r.dataset.head, (l, s) => (i(), u("th", {
195
- role: "cell",
196
- key: `th_${s}`,
197
- style: v({
198
- ...e.value.thead.tr.th.style,
199
- 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",
200
- paddingTop: e.value.thead.tr.th.padding.top + "px",
201
- paddingRight: e.value.thead.tr.th.padding.right + "px",
202
- paddingBottom: e.value.thead.tr.th.padding.bottom + "px",
203
- paddingLeft: e.value.thead.tr.th.padding.left + "px"
204
- })
205
- }, [
206
- U(E(t.$slots.th ? "" : l) + " ", 1),
207
- p(t.$slots, "th", V(G({ th: l, colIndex: s })), void 0, !0)
208
- ], 4))), 128))
209
- ], 12, ze)
210
- ], 4),
211
- r.dataset.body && r.dataset.head ? (i(), u("tbody", Oe, [
212
- (i(!0), u(H, null, L(r.dataset.body, (l, s) => (i(), u("tr", {
213
- style: v({
214
- ...e.value.tbody.tr.style,
215
- border: `${e.value.tbody.tr.border.size}px solid ${e.value.tbody.tr.border.color}`
216
- })
217
- }, [
218
- (i(!0), u(H, null, L(l, (h, z) => (i(), u("td", {
219
- role: "cell",
220
- "data-cell": c.value && r.dataset.head[z].length > 50 ? r.dataset.head[z].slice(0, 50) + "..." : r.dataset.head[z] || "",
221
- style: v({
222
- ...e.value.tbody.tr.td.style,
223
- border: `${e.value.tbody.tr.td.border.size}px solid ${e.value.tbody.tr.td.border.color}`,
224
- backgroundColor: e.value.tbody.tr.td.style.backgroundColor + f(Ce)[s % 2 === 0 && e.value.tbody.tr.td.alternateColor ? e.value.tbody.tr.td.alternateOpacity * 100 : 100],
225
- paddingTop: e.value.tbody.tr.td.padding.top + "px",
226
- paddingRight: e.value.tbody.tr.td.padding.right + "px",
227
- paddingBottom: e.value.tbody.tr.td.padding.bottom + "px",
228
- paddingLeft: e.value.tbody.tr.td.padding.left + "px"
229
- }),
230
- height: `${e.value.tbody.tr.height}px`
231
- }, [
232
- U(E(t.$slots.td ? "" : c.value && typeof h == "string" ? h.slice(0, 30) + "..." : h) + " ", 1),
233
- p(t.$slots, "td", V(G({ td: h, rowIndex: s, colIndex: z })), void 0, !0)
234
- ], 12, Pe))), 256))
235
- ], 4))), 256))
236
- ])) : P("", !0)
237
- ], 4)) : P("", !0)
238
- ], 46, Fe),
239
- g.value ? P("", !0) : (i(), oe(we, {
240
- key: 0,
241
- config: {
242
- type: "table"
243
- }
244
- })),
245
- e.value.userOptions.show && g.value ? (i(), oe(Te, {
246
- ref: "details",
247
- key: `user_option_${W.value}`,
248
- backgroundColor: e.value.style.backgroundColor,
249
- color: e.value.style.color,
250
- isPrinting: f(X),
251
- isImaging: f(j),
252
- uid: R.value,
253
- hasTooltip: !1,
254
- hasPdf: e.value.userOptions.buttons.pdf,
255
- hasImg: e.value.userOptions.buttons.img,
256
- hasXls: e.value.userOptions.buttons.csv,
257
- hasTable: !1,
258
- hasLabel: !1,
259
- hasAnimation: e.value.userOptions.buttons.animation,
260
- isAnimation: !d.value.showAnimation,
261
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
262
- isFullscreen: q.value,
263
- chartElement: K.value,
264
- titles: { ...e.value.userOptions.buttonTitles },
265
- zIndex: 3,
266
- noOffset: "",
267
- onGeneratePdf: ee,
268
- onGenerateCsv: ae,
269
- onGenerateImage: f(J),
270
- onToggleAnimation: te,
271
- onToggleFullscreen: re
272
- }, fe({ _: 2 }, [
273
- t.$slots.optionPdf ? {
274
- name: "optionPdf",
275
- fn: w(() => [
276
- p(t.$slots, "optionPdf", {}, void 0, !0)
277
- ]),
278
- key: "0"
279
- } : void 0,
280
- t.$slots.optionCsv ? {
281
- name: "optionCsv",
282
- fn: w(() => [
283
- p(t.$slots, "optionCsv", {}, void 0, !0)
284
- ]),
285
- key: "1"
286
- } : void 0,
287
- t.$slots.optionImg ? {
288
- name: "optionImg",
289
- fn: w(() => [
290
- p(t.$slots, "optionImg", {}, void 0, !0)
291
- ]),
292
- key: "2"
293
- } : void 0,
294
- t.$slots.optionAnimation ? {
295
- name: "optionAnimation",
296
- fn: w(() => [
297
- p(t.$slots, "optionAnimation", {}, void 0, !0)
298
- ]),
299
- key: "3"
300
- } : void 0,
301
- t.$slots.optionFullscreen ? {
302
- name: "optionFullscreen",
303
- fn: w(({ toggleFullscreen: l, isFullscreen: s }) => [
304
- p(t.$slots, "optionFullscreen", V(G({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
305
- ]),
306
- key: "4"
307
- } : void 0
308
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasAnimation", "isAnimation", "hasFullscreen", "isFullscreen", "chartElement", "titles", "onGenerateImage"])) : P("", !0)
309
- ], 512));
310
- }
311
- }, Le = /* @__PURE__ */ Ie(Re, [["__scopeId", "data-v-c5df50fc"]]);
312
- export {
313
- Le as default
314
- };