vue-data-ui 2.4.55 → 2.4.56

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 (155) hide show
  1. package/dist/{Arrow-Lu-rJXGl.cjs → Arrow-CjIZFibK.cjs} +1 -1
  2. package/dist/{Arrow-D9oPJhO0.js → Arrow-jPjUEWgL.js} +1 -1
  3. package/dist/{BaseIcon-mHeKnX4-.js → BaseIcon-0DNmIdCs.js} +1 -1
  4. package/dist/{BaseIcon-DxRKjbz1.cjs → BaseIcon-DF2Lg0Ky.cjs} +1 -1
  5. package/dist/{DataTable-D8MTezlM.js → DataTable-CZSz7b1u.js} +2 -2
  6. package/dist/{DataTable-rMMvio1U.cjs → DataTable-osuWgmyP.cjs} +1 -1
  7. package/dist/{Legend-wr5XLSfL.js → Legend-CvXmxVoD.js} +1 -1
  8. package/dist/{Legend-Ba34oTdO.cjs → Legend-DecSHp0h.cjs} +1 -1
  9. package/dist/{PackageVersion-xnKIqody.js → PackageVersion-CEkiDR72.js} +1 -1
  10. package/dist/{PackageVersion-BJi2ywG9.cjs → PackageVersion-eTcMI7M3.cjs} +1 -1
  11. package/dist/{PenAndPaper-CX6N7FR7.cjs → PenAndPaper-BqcQLMi2.cjs} +1 -1
  12. package/dist/{PenAndPaper-iek0aH4r.js → PenAndPaper-GjypzQvI.js} +3 -3
  13. package/dist/{Shape-B_lWjwmP.js → Shape-BejfTDlL.js} +1 -1
  14. package/dist/{Shape-9v-w5i6N.cjs → Shape-Diaok0Bu.cjs} +1 -1
  15. package/dist/{Slicer-Bwg4WzZf.js → Slicer-9_ewSBRs.js} +2 -2
  16. package/dist/{Slicer--m1nOwbO.cjs → Slicer-DFT7ePZ_.cjs} +1 -1
  17. package/dist/{Title-BecmraNn.js → Title-BI9lg56g.js} +1 -1
  18. package/dist/{Title-BWhYDGb-.cjs → Title-Bw-FXFej.cjs} +1 -1
  19. package/dist/{Tooltip-cPxZzSgr.cjs → Tooltip-98ospYeV.cjs} +1 -1
  20. package/dist/{Tooltip-BZYApG0d.js → Tooltip-sBMzQa_B.js} +1 -1
  21. package/dist/{index-Dhlyke5j.js → index-ByVaKddw.js} +3 -1
  22. package/dist/index-Cvx5SntE.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +1 -0
  25. package/dist/types/vue-data-ui.d.ts +1 -0
  26. package/dist/{useNestedProp-C9KmUVBy.cjs → useNestedProp-CSIVZXvp.cjs} +1 -1
  27. package/dist/{useNestedProp-D9eTQKze.js → useNestedProp-GRBJXe5O.js} +1 -1
  28. package/dist/{usePrinter-BnBk8gnl.js → usePrinter-BsXVX7vh.js} +1 -1
  29. package/dist/{usePrinter-DpEuGyLP.cjs → usePrinter-BwruEydS.cjs} +1 -1
  30. package/dist/{vue-data-ui-aSR5-7gp.js → vue-data-ui-B7Y18Xdv.js} +60 -60
  31. package/dist/{vue-data-ui-CGGZHtx3.cjs → vue-data-ui-BqSfqfi4.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-Dm2wnS6e.cjs → vue-ui-3d-bar-CXv6h_8o.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-D9pXx9fJ.js → vue-ui-3d-bar-SA6SyIoT.js} +9 -9
  36. package/dist/{vue-ui-accordion-CGpOsWNN.js → vue-ui-accordion-Dcf8tHzr.js} +3 -3
  37. package/dist/{vue-ui-accordion-mtZIFAv9.cjs → vue-ui-accordion-DfqTc4ro.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-dbX4WaaY.js → vue-ui-age-pyramid-BetdioWW.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-BcMERmA5.cjs → vue-ui-age-pyramid-CG7IY2gE.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-CY-rCEDB.cjs → vue-ui-annotator-Bcg6d-GE.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-DfRkh1D_.js → vue-ui-annotator-Qf_gPjWZ.js} +1 -1
  42. package/dist/{vue-ui-bullet-CUoiQcb5.js → vue-ui-bullet-CLRHVfB8.js} +8 -8
  43. package/dist/{vue-ui-bullet-jsXAmYsX.cjs → vue-ui-bullet-CPHavcOd.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-BLIICgdz.js → vue-ui-candlestick-DBnrOltA.js} +11 -11
  45. package/dist/{vue-ui-candlestick-BD58hsql.cjs → vue-ui-candlestick-exLvYnf4.cjs} +1 -1
  46. package/dist/vue-ui-carousel-table-Bz2XZAC4.js +396 -0
  47. package/dist/vue-ui-carousel-table-CHlCmI-_.cjs +1 -0
  48. package/dist/{vue-ui-chestnut-vivMozHy.cjs → vue-ui-chestnut-BBhIDuhr.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-DIPBJ5D2.js → vue-ui-chestnut-BE6RQkXd.js} +8 -8
  50. package/dist/{vue-ui-cursor-Cgv_2p2T.cjs → vue-ui-cursor-CpIr7R3C.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-CzLtzn7N.js → vue-ui-cursor-DLQVTUyz.js} +2 -2
  52. package/dist/{vue-ui-dashboard-CtlrjFxl.cjs → vue-ui-dashboard-YWLsOufT.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-DqZVcLlQ.js → vue-ui-dashboard-rKdg3soO.js} +2 -2
  54. package/dist/{vue-ui-digits-e1HQVXb9.cjs → vue-ui-digits-DFNXL2VX.cjs} +1 -1
  55. package/dist/{vue-ui-digits-CGFznMkY.js → vue-ui-digits-XkrLdWX_.js} +2 -2
  56. package/dist/{vue-ui-donut-z2eOcEI5.cjs → vue-ui-donut-8rW9LlEF.cjs} +1 -1
  57. package/dist/{vue-ui-donut-DmLq2iWK.js → vue-ui-donut-CDVHpIvX.js} +11 -11
  58. package/dist/{vue-ui-donut-evolution-4odFZbUM.cjs → vue-ui-donut-evolution-B1ahKhHv.cjs} +1 -1
  59. package/dist/{vue-ui-donut-evolution-DpollzkH.js → vue-ui-donut-evolution-By2AYSZT.js} +11 -11
  60. package/dist/{vue-ui-dumbbell-DLr4Lh3u.js → vue-ui-dumbbell-D1Htb6-R.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-i7E-B6zN.cjs → vue-ui-dumbbell-DIHb9Grh.cjs} +1 -1
  62. package/dist/{vue-ui-flow-BuYhmRed.cjs → vue-ui-flow-41QVXQeK.cjs} +1 -1
  63. package/dist/{vue-ui-flow-CosxAYPJ.js → vue-ui-flow-CCYyDy6C.js} +9 -9
  64. package/dist/{vue-ui-funnel-C_2YAtFj.js → vue-ui-funnel-BJ43m1vH.js} +8 -8
  65. package/dist/{vue-ui-funnel-BNPISgC0.cjs → vue-ui-funnel-qPzrqllN.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-DMOx2Le7.cjs → vue-ui-galaxy-D6dtMQ2A.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-D1cWyHG9.js → vue-ui-galaxy-DMUq4sez.js} +11 -11
  68. package/dist/{vue-ui-gauge-Dw7QvZei.cjs → vue-ui-gauge-BdycQV3W.cjs} +1 -1
  69. package/dist/{vue-ui-gauge-Dnq0t_eH.js → vue-ui-gauge-KGflfPYM.js} +7 -7
  70. package/dist/{vue-ui-gizmo-vHQVGdpR.js → vue-ui-gizmo-CFRsYHo7.js} +3 -3
  71. package/dist/{vue-ui-gizmo-DcT9tTS-.cjs → vue-ui-gizmo-lKGGpbCe.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-D-r7qdj0.cjs → vue-ui-heatmap-DKxnmh08.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-CtxQI5Mq.js → vue-ui-heatmap-Dj0A6LjZ.js} +10 -10
  74. package/dist/{vue-ui-history-plot-BjcPvcaK.js → vue-ui-history-plot-ClNqlBER.js} +11 -11
  75. package/dist/{vue-ui-history-plot-B8pP20QN.cjs → vue-ui-history-plot-IWjqZb4c.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-BPwU5pay.cjs → vue-ui-kpi-BRVPBhAp.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-BjuKXuQM.js → vue-ui-kpi-BXRYqm31.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-DZYw7bD6.js → vue-ui-mini-loader-Bm_4G8gx.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-DE2NXywp.cjs → vue-ui-mini-loader-NicMq9t0.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-A3yHt8cl.js → vue-ui-molecule-BDFarbim.js} +11 -11
  81. package/dist/{vue-ui-molecule-B8I4iuBQ.cjs → vue-ui-molecule-Bi9RT7M4.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-Dh1qbcXz.js → vue-ui-mood-radar-DJnPeXpr.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-BKtVVOZz.cjs → vue-ui-mood-radar-DlXCkePO.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-B5ixdGsx.cjs → vue-ui-nested-donuts-CYNh2xAI.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-DPuIU4IX.js → vue-ui-nested-donuts-DLcFEPDy.js} +11 -11
  86. package/dist/{vue-ui-onion-BTMaTU2a.cjs → vue-ui-onion-UDlJJjud.cjs} +1 -1
  87. package/dist/{vue-ui-onion-BgcJBzxI.js → vue-ui-onion-jzYk1NeW.js} +11 -11
  88. package/dist/{vue-ui-parallel-coordinate-plot-Ksh3Tuvx.js → vue-ui-parallel-coordinate-plot-BLLYkQEr.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-Cye2V8MQ.cjs → vue-ui-parallel-coordinate-plot-BboIA_-E.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-DOet5Q47.cjs → vue-ui-quadrant-BSNtsyJ5.cjs} +1 -1
  91. package/dist/{vue-ui-quadrant-DGBXeeOe.js → vue-ui-quadrant-C94HXwr8.js} +12 -12
  92. package/dist/{vue-ui-quick-chart-DQcck_x6.js → vue-ui-quick-chart-6fxJ8oH3.js} +9 -9
  93. package/dist/{vue-ui-quick-chart-DhCA-7B5.cjs → vue-ui-quick-chart-B9Xbkibp.cjs} +1 -1
  94. package/dist/{vue-ui-radar-CI5egNer.js → vue-ui-radar-CQrWi1aN.js} +12 -12
  95. package/dist/{vue-ui-radar-qk20LKHr.cjs → vue-ui-radar-Q6izz-u2.cjs} +1 -1
  96. package/dist/{vue-ui-rating-Ch2PSMeW.js → vue-ui-rating-Ciyd3dSC.js} +2 -2
  97. package/dist/{vue-ui-rating-CYhvKLSi.cjs → vue-ui-rating-DgsUBjAC.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-G6KC4zs0.js → vue-ui-relation-circle-BVgfKoJY.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-t-WDgqtA.cjs → vue-ui-relation-circle-CAC4jUA7.cjs} +1 -1
  100. package/dist/{vue-ui-rings-NIIfGve4.js → vue-ui-rings-DuQmTRbW.js} +11 -11
  101. package/dist/{vue-ui-rings-DxpkXXwJ.cjs → vue-ui-rings-VNKEeLJq.cjs} +1 -1
  102. package/dist/{vue-ui-scatter-BqxcKjb2.js → vue-ui-scatter-BlLPdbYP.js} +12 -12
  103. package/dist/{vue-ui-scatter-DynxMn7l.cjs → vue-ui-scatter-CWTRMe0w.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-BUP9G_uK.cjs → vue-ui-screenshot-C3nAs5FY.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-DreZMmrO.js → vue-ui-screenshot-Cf9IZKQy.js} +1 -1
  106. package/dist/{vue-ui-skeleton-DQqwDUqP.js → vue-ui-skeleton--uwo2sCb.js} +3 -3
  107. package/dist/{vue-ui-skeleton-D_lU-hWK.cjs → vue-ui-skeleton-CcWKK9pd.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-AGwF1X7u.cjs → vue-ui-smiley-BI7CkEhi.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-CdmO39JE.js → vue-ui-smiley-Bc53TV0r.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-BUx5YwEZ.js → vue-ui-spark-trend-Byey6P0P.js} +5 -5
  111. package/dist/{vue-ui-spark-trend-DD1s6Thz.cjs → vue-ui-spark-trend-CKgcM09-.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-KZd6YQwQ.js → vue-ui-sparkbar-C2Y0Foie.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-mlrF_QEO.cjs → vue-ui-sparkbar-FBEE4RyI.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-Db-d9x9r.js → vue-ui-sparkgauge-Czf3xG6u.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-B4J8ZYzs.cjs → vue-ui-sparkgauge-DIQjrKUR.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-DzJ5NNi9.cjs → vue-ui-sparkhistogram-CNQrhEr4.cjs} +1 -1
  117. package/dist/{vue-ui-sparkhistogram-B61JDza9.js → vue-ui-sparkhistogram-MEdLzmyE.js} +5 -5
  118. package/dist/{vue-ui-sparkline-P6ubVgp0.js → vue-ui-sparkline-Cr2okEps.js} +4 -4
  119. package/dist/{vue-ui-sparkline-S6HehQ0a.cjs → vue-ui-sparkline-DNeX0Cst.cjs} +1 -1
  120. package/dist/{vue-ui-sparkstackbar-BDBqoeJQ.cjs → vue-ui-sparkstackbar-CyvjXdi9.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-DKtOqh-Y.js → vue-ui-sparkstackbar-Db83U8wn.js} +5 -5
  122. package/dist/{vue-ui-stackbar-WShCS9A1.js → vue-ui-stackbar-CQT1OJCn.js} +12 -12
  123. package/dist/{vue-ui-stackbar-DCCcEgQZ.cjs → vue-ui-stackbar-CfmbbZzJ.cjs} +1 -1
  124. package/dist/{vue-ui-strip-plot-Bq3u8k2l.js → vue-ui-strip-plot-DOzB5USx.js} +11 -11
  125. package/dist/{vue-ui-strip-plot-DH4LQTfB.cjs → vue-ui-strip-plot-T8_5JEzy.cjs} +1 -1
  126. package/dist/{vue-ui-table-aV4pHrWD.cjs → vue-ui-table-C3O3go3K.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CruECEYA.cjs → vue-ui-table-heatmap-iho4COZg.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-DsdyE14x.js → vue-ui-table-heatmap-lftME_w3.js} +4 -4
  129. package/dist/{vue-ui-table-sJN2rS51.js → vue-ui-table-ro63oB6Q.js} +1 -1
  130. package/dist/{vue-ui-table-sparkline-CcsNg6th.cjs → vue-ui-table-sparkline-Ce0sOUWt.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-BlUe2QFV.js → vue-ui-table-sparkline-P9DzADZw.js} +5 -5
  132. package/dist/{vue-ui-thermometer-ButIh820.cjs → vue-ui-thermometer-BRYN1bHx.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-80aa72_6.js → vue-ui-thermometer-DI4pKvnk.js} +7 -7
  134. package/dist/{vue-ui-timer-Dk4I7cRn.cjs → vue-ui-timer-CsV8Cuty.cjs} +1 -1
  135. package/dist/{vue-ui-timer-CuUSpISM.js → vue-ui-timer-DTsTsm_i.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-CQ98xHZ5.js → vue-ui-tiremarks-CjY3b9ph.js} +7 -7
  137. package/dist/{vue-ui-tiremarks-BsYfeNCN.cjs → vue-ui-tiremarks-od0aPD4a.cjs} +1 -1
  138. package/dist/{vue-ui-treemap-s1nZAhAS.js → vue-ui-treemap-B36BRS00.js} +11 -11
  139. package/dist/{vue-ui-treemap-CHXb8mBG.cjs → vue-ui-treemap-B69tqCDo.cjs} +1 -1
  140. package/dist/{vue-ui-vertical-bar-iZWowEik.cjs → vue-ui-vertical-bar-8QN9YXK-.cjs} +1 -1
  141. package/dist/{vue-ui-vertical-bar-Dd306Z10.js → vue-ui-vertical-bar-CK1dtsFn.js} +11 -11
  142. package/dist/{vue-ui-waffle-CQfOCZjf.js → vue-ui-waffle-CaJbFYrA.js} +11 -11
  143. package/dist/{vue-ui-waffle-BJgSuNVY.cjs → vue-ui-waffle-CpcyWKuc.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-s8UTbo9G.cjs → vue-ui-wheel-DJQeNqbc.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-DB-4Rn84.js → vue-ui-wheel-WoHPA2Fp.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-DvfOJe4M.cjs → vue-ui-word-cloud-BfqeiAU8.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-C-l2Z3Dd.js → vue-ui-word-cloud-D3h-mtSd.js} +10 -10
  148. package/dist/{vue-ui-xy-P_VLOaMg.js → vue-ui-xy-BTW5rwfL.js} +14 -14
  149. package/dist/{vue-ui-xy-canvas-BwNEs-cY.js → vue-ui-xy-canvas-DTySv5nX.js} +11 -11
  150. package/dist/{vue-ui-xy-canvas-CIKl9AXf.cjs → vue-ui-xy-canvas-DtnXa5hf.cjs} +1 -1
  151. package/dist/{vue-ui-xy-D1Nkk2Gp.cjs → vue-ui-xy-iL-McDRN.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/index-DGcOW0vL.cjs +0 -9
  154. package/dist/vue-ui-carousel-table-CCmB_BJ7.cjs +0 -1
  155. package/dist/vue-ui-carousel-table-NUliqwxA.js +0 -379
@@ -1,379 +0,0 @@
1
- import { ref as n, onMounted as I, computed as F, watch as M, onBeforeUnmount as pe, nextTick as ce, openBlock as s, createElementBlock as d, unref as u, createElementVNode as S, normalizeStyle as v, normalizeClass as xe, createTextVNode as G, toDisplayString as q, renderSlot as p, Fragment as D, renderList as X, normalizeProps as j, guardReactiveProps as J, createCommentVNode as B, createBlock as he, createSlots as Oe, withCtx as P } from "vue";
2
- import { u as Ie, c as Fe, o as K, e as Q, s as Be, q as Pe, r as Re } from "./index-Dhlyke5j.js";
3
- import { u as ze } from "./useNestedProp-D9eTQKze.js";
4
- import { u as Ee, U as Se } from "./usePrinter-BnBk8gnl.js";
5
- import Ne from "./vue-ui-skeleton-DQqwDUqP.js";
6
- import { u as Ue } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const Le = ["id"], Ve = ["height"], Me = ["data-cell", "height"], Ge = {
9
- key: 2,
10
- ref: "source",
11
- dir: "auto"
12
- }, qe = {
13
- __name: "vue-ui-carousel-table",
14
- props: {
15
- config: {
16
- type: Object,
17
- default() {
18
- return {};
19
- }
20
- },
21
- dataset: {
22
- type: Object,
23
- default() {
24
- return {};
25
- }
26
- }
27
- },
28
- setup(m, { expose: fe }) {
29
- const l = m, { vue_ui_carousel_table: ge } = Ie(), N = n(Fe()), W = n(!1), $ = n(!!l.dataset);
30
- I(() => {
31
- Y();
32
- });
33
- function Y() {
34
- K(l.dataset) ? Q({
35
- componentName: "VueUiCarouselTable",
36
- type: "dataset"
37
- }) : ((!l.dataset.head || K(l.dataset.head)) && (Q({
38
- componentName: "VueUiCarouselTable",
39
- type: "datasetAttribute",
40
- property: "head"
41
- }), $.value = !1), (!l.dataset.body || K(l.dataset.body)) && (Q({
42
- componentName: "VueUiCarouselTable",
43
- type: "datasetAttribute",
44
- property: "body"
45
- }), $.value = !1));
46
- }
47
- const e = F({
48
- get: () => ee(),
49
- set: (t) => t
50
- }), { userOptionsVisible: U, setUserOptionsVisibility: Z, keepUserOptionState: _ } = Ue({ config: e.value });
51
- function ee() {
52
- return ze({
53
- userConfig: l.config,
54
- defaultConfig: ge
55
- });
56
- }
57
- M(() => l.config, (t) => {
58
- e.value = ee(), U.value = !e.value.showOnChartHover, Y();
59
- }, { deep: !0 }), M(() => l.dataset, (t) => {
60
- H();
61
- }, { deep: !0 });
62
- const { isPrinting: te, isImaging: ae, generatePdf: me, generateImage: oe } = Ee({
63
- elementId: `carousel-table_${N.value}`,
64
- fileName: e.value.caption.text || "vue-ui-carousel-table"
65
- }), c = n({
66
- showAnimation: e.value.animation.use
67
- }), r = n(null), ne = n(null), T = n(null), k = n(null), A = n(0), R = n(0), z = n(!1), w = n(null), f = n(null), x = n(0);
68
- function H() {
69
- w.value && (f.value = {
70
- elements: w.value.getElementsByTagName("tr"),
71
- heights: Array.from(w.value.getElementsByTagName("tr")).map((t) => t.getBoundingClientRect().height)
72
- });
73
- }
74
- I(H);
75
- const be = F(() => !f.value || !f.value.heights.length ? 0 : Math.max(...f.value.heights) + A.value + R.value), ye = F(() => l.dataset.body ? e.value.tbody.tr.visible <= l.dataset.body.length ? e.value.tbody.tr.visible : l.dataset.body.length : 0), Ce = F(() => (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) * ye.value + A.value + R.value), E = n(0), O = n(null), b = n(0), y = n(!1), le = n(0);
76
- I(() => {
77
- T.value && (A.value = T.value.getBoundingClientRect().height), k.value && (R.value = k.value.getBoundingClientRect().height), c.value.showAnimation && f.value && ie();
78
- }), I(() => {
79
- if (r.value) {
80
- let o = function() {
81
- const i = t.getBoundingClientRect().bottom;
82
- a.forEach((h) => {
83
- h.getBoundingClientRect().top < i ? h.style.visibility = "hidden" : h.style.visibility = "visible";
84
- });
85
- };
86
- const t = r.value.querySelector("thead"), a = Array.from(w.value.querySelectorAll("tr"));
87
- r.value.addEventListener("scroll", o), o(), pe(() => {
88
- r.value.removeEventListener("scroll", o);
89
- });
90
- }
91
- });
92
- function $e(t) {
93
- W.value = t, le.value += 1;
94
- }
95
- function ie() {
96
- !O.value && !y.value && (O.value = requestAnimationFrame(se));
97
- }
98
- function Te() {
99
- if (!r.value) return !1;
100
- const { scrollTop: t, scrollHeight: a, clientHeight: o } = r.value;
101
- return t + o >= a;
102
- }
103
- function se(t) {
104
- if (y.value) return;
105
- b.value || (b.value = t), t - b.value >= e.value.animation.speedMs && (E.value += f.value.heights[x.value], (Te() || x.value >= f.value.heights.length) && (E.value = 0, x.value = -1), x.value += 1, r.value && r.value.scrollTo({
106
- top: E.value,
107
- behavior: "smooth"
108
- }), b.value = t), O.value = requestAnimationFrame(se);
109
- }
110
- function g() {
111
- y.value = !0, cancelAnimationFrame(O.value), O.value = null;
112
- }
113
- pe(g);
114
- function C() {
115
- !y.value || !c.value.showAnimation || (y.value = !1, b.value = 0, ie());
116
- }
117
- function ke() {
118
- e.value.animation.pauseOnHover && g();
119
- }
120
- const L = n(null);
121
- function Ae() {
122
- g(), clearTimeout(L.value);
123
- }
124
- function ue() {
125
- clearTimeout(L.value), L.value = setTimeout(C, 1e3);
126
- }
127
- M(
128
- () => e.value.animation.use,
129
- (t) => {
130
- t ? (c.value.showAnimation = !0, C()) : (c.value.showAnimation = !1, g());
131
- }
132
- );
133
- const we = F(() => e.value.responsiveBreakpoint);
134
- I(() => {
135
- const t = new ResizeObserver((a) => {
136
- a.forEach((o) => {
137
- z.value = o.contentRect.width < we.value;
138
- }), A.value = T.value ? T.value.getBoundingClientRect().height : 0, R.value = k.value ? k.value.getBoundingClientRect().height : 0, x.value = 0, ce(() => {
139
- g(), b.value = 0, E.value = 0, H(), C();
140
- });
141
- });
142
- r.value && t.observe(r.value);
143
- });
144
- function re() {
145
- me();
146
- }
147
- function de() {
148
- c.value.showAnimation = !c.value.showAnimation, c.value.showAnimation ? C() : g();
149
- }
150
- function ve() {
151
- ce(() => {
152
- const t = l.dataset.head.map((i, h) => [
153
- [l.dataset.body[h]]
154
- ]), a = [
155
- [e.value.caption.text],
156
- [l.dataset.head.map((i) => [i])]
157
- ].concat(t), o = Pe(a);
158
- Re({
159
- csvContent: o,
160
- title: e.value.caption.text || "vue-ui-carousel-table"
161
- });
162
- });
163
- }
164
- return fe({
165
- pauseAnimation: g,
166
- resumeAnimation: C,
167
- toggleAnimation: de,
168
- generateCsv: ve,
169
- generatePdf: re,
170
- generateImage: oe
171
- }), (t, a) => (s(), d("div", {
172
- style: { position: "relative", overflow: "visible" },
173
- ref_key: "chartContainer",
174
- ref: ne,
175
- onMouseenter: a[5] || (a[5] = () => u(Z)(!0)),
176
- onMouseleave: a[6] || (a[6] = () => u(Z)(!1))
177
- }, [
178
- S("div", {
179
- ref_key: "tableContainer",
180
- ref: r,
181
- id: `carousel-table_${N.value}`,
182
- style: v({
183
- height: u(te) || u(ae) ? "auto" : `${Math.max(Ce.value, be.value)}px`,
184
- containerType: "inline-size",
185
- position: "relative",
186
- overflow: "auto",
187
- fontFamily: e.value.fontFamily
188
- }),
189
- class: xe({ "vue-ui-responsive": z.value, "is-playing": e.value.scrollbar.hide || !y.value && e.value.scrollbar.showOnlyOnHover }),
190
- onMouseover: a[0] || (a[0] = (o) => ke()),
191
- onMouseleave: a[1] || (a[1] = (o) => C()),
192
- onTouchstart: a[2] || (a[2] = (o) => Ae()),
193
- onTouchend: a[3] || (a[3] = (o) => ue()),
194
- onTouchcancel: a[4] || (a[4] = (o) => ue())
195
- }, [
196
- $.value ? (s(), d("table", {
197
- key: 0,
198
- class: "vue-data-ui-carousel-table",
199
- style: v({
200
- ...e.value.style,
201
- border: `${e.value.border.size}px solid ${e.value.border.color}`,
202
- width: "100%",
203
- borderCollapse: "collapse",
204
- backgroundColor: e.value.tbody.backgroundColor
205
- })
206
- }, [
207
- S("caption", {
208
- ref_key: "caption",
209
- ref: T,
210
- class: "vue-data-ui-carousel-table-caption",
211
- style: v({
212
- ...e.value.caption.style,
213
- fontFamily: "inherit",
214
- position: "sticky",
215
- top: 0,
216
- zIndex: 2,
217
- paddingTop: e.value.caption.padding.top + "px",
218
- paddingRight: e.value.caption.padding.right + "px",
219
- paddingBottom: e.value.caption.padding.bottom + "px",
220
- paddingLeft: e.value.caption.padding.left + "px",
221
- boxShadow: z.value ? e.value.thead.tr.style.boxShadow : "none",
222
- minHeight: "36px",
223
- display: t.$slots.caption || e.value.caption.text || e.value.userOptions.show ? "" : "none"
224
- })
225
- }, [
226
- G(q(e.value.caption.text && !t.$slots.caption ? e.value.caption.text : "") + " ", 1),
227
- p(t.$slots, "caption", {}, void 0, !0)
228
- ], 4),
229
- S("thead", {
230
- style: v({ ...e.value.thead.style, position: "sticky", top: `${t.$slots.caption || e.value.caption.text || e.value.userOptions.show ? A.value : 0}px`, zIndex: 1 })
231
- }, [
232
- S("tr", {
233
- ref_key: "tableRow",
234
- ref: k,
235
- role: "row",
236
- style: v({
237
- ...e.value.thead.tr.style,
238
- border: e.value.thead.tr.border.size ? `${e.value.thead.tr.border.size}px solid ${e.value.thead.tr.border.color}` : "none",
239
- boxShadow: z.value ? "none" : e.value.thead.tr.style.boxShadow
240
- }),
241
- height: `${e.value.thead.tr.height}px`
242
- }, [
243
- (s(!0), d(D, null, X(m.dataset.head, (o, i) => (s(), d("th", {
244
- role: "cell",
245
- key: `th_${i}`,
246
- style: v({
247
- ...e.value.thead.tr.th.style,
248
- 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",
249
- paddingTop: e.value.thead.tr.th.padding.top + "px",
250
- paddingRight: e.value.thead.tr.th.padding.right + "px",
251
- paddingBottom: e.value.thead.tr.th.padding.bottom + "px",
252
- paddingLeft: e.value.thead.tr.th.padding.left + "px"
253
- })
254
- }, [
255
- G(q(t.$slots.th ? "" : o) + " ", 1),
256
- p(t.$slots, "th", j(J({ th: o, colIndex: i })), void 0, !0)
257
- ], 4))), 128))
258
- ], 12, Ve)
259
- ], 4),
260
- m.dataset.body && m.dataset.head ? (s(), d("tbody", {
261
- key: 0,
262
- ref_key: "tbody",
263
- ref: w,
264
- style: v({
265
- clipPath: "inset(0,0,0,0)"
266
- })
267
- }, [
268
- (s(!0), d(D, null, X(m.dataset.body, (o, i) => (s(), d("tr", {
269
- style: v({
270
- ...e.value.tbody.tr.style,
271
- border: `${e.value.tbody.tr.border.size}px solid ${e.value.tbody.tr.border.color}`,
272
- verticalAlign: "middle"
273
- })
274
- }, [
275
- (s(!0), d(D, null, X(o, (h, V) => (s(), d("td", {
276
- role: "cell",
277
- "data-cell": m.dataset.head[V] || "",
278
- style: v({
279
- ...e.value.tbody.tr.td.style,
280
- border: `${e.value.tbody.tr.td.border.size}px solid ${e.value.tbody.tr.td.border.color}`,
281
- backgroundColor: u(Be)(e.value.tbody.tr.td.style.backgroundColor, i % 2 === 0 && e.value.tbody.tr.td.alternateColor ? e.value.tbody.tr.td.alternateOpacity * 100 : 100),
282
- paddingTop: e.value.tbody.tr.td.padding.top + "px",
283
- paddingRight: e.value.tbody.tr.td.padding.right + "px",
284
- paddingBottom: e.value.tbody.tr.td.padding.bottom + "px",
285
- paddingLeft: e.value.tbody.tr.td.padding.left + "px",
286
- verticalAlign: "middle"
287
- }),
288
- height: `${e.value.tbody.tr.height}px`
289
- }, [
290
- G(q(t.$slots.td ? "" : h) + " ", 1),
291
- p(t.$slots, "td", j(J({ td: h, rowIndex: i, colIndex: V })), void 0, !0)
292
- ], 12, Me))), 256))
293
- ], 4))), 256))
294
- ], 4)) : B("", !0)
295
- ], 4)) : B("", !0)
296
- ], 46, Le),
297
- $.value ? B("", !0) : (s(), he(Ne, {
298
- key: 0,
299
- config: {
300
- type: "table"
301
- }
302
- })),
303
- e.value.userOptions.show && $.value && (u(_) || u(U)) ? (s(), he(Se, {
304
- ref: "details",
305
- key: `user_option_${le.value}`,
306
- backgroundColor: e.value.style.backgroundColor,
307
- color: e.value.style.color,
308
- isPrinting: u(te),
309
- isImaging: u(ae),
310
- uid: N.value,
311
- hasTooltip: !1,
312
- hasPdf: e.value.userOptions.buttons.pdf,
313
- hasImg: e.value.userOptions.buttons.img,
314
- hasXls: e.value.userOptions.buttons.csv,
315
- hasTable: !1,
316
- hasLabel: !1,
317
- hasAnimation: e.value.userOptions.buttons.animation,
318
- isAnimation: !c.value.showAnimation,
319
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
320
- isFullscreen: W.value,
321
- chartElement: ne.value,
322
- position: e.value.userOptions.position,
323
- titles: { ...e.value.userOptions.buttonTitles },
324
- zIndex: 3,
325
- offsetX: 12,
326
- onGeneratePdf: re,
327
- onGenerateCsv: ve,
328
- onGenerateImage: u(oe),
329
- onToggleAnimation: de,
330
- onToggleFullscreen: $e,
331
- style: v({
332
- visibility: u(_) ? u(U) ? "visible" : "hidden" : "visible"
333
- })
334
- }, Oe({ _: 2 }, [
335
- t.$slots.optionPdf ? {
336
- name: "optionPdf",
337
- fn: P(() => [
338
- p(t.$slots, "optionPdf", {}, void 0, !0)
339
- ]),
340
- key: "0"
341
- } : void 0,
342
- t.$slots.optionCsv ? {
343
- name: "optionCsv",
344
- fn: P(() => [
345
- p(t.$slots, "optionCsv", {}, void 0, !0)
346
- ]),
347
- key: "1"
348
- } : void 0,
349
- t.$slots.optionImg ? {
350
- name: "optionImg",
351
- fn: P(() => [
352
- p(t.$slots, "optionImg", {}, void 0, !0)
353
- ]),
354
- key: "2"
355
- } : void 0,
356
- t.$slots.optionAnimation ? {
357
- name: "optionAnimation",
358
- fn: P(() => [
359
- p(t.$slots, "optionAnimation", {}, void 0, !0)
360
- ]),
361
- key: "3"
362
- } : void 0,
363
- t.$slots.optionFullscreen ? {
364
- name: "optionFullscreen",
365
- fn: P(({ toggleFullscreen: o, isFullscreen: i }) => [
366
- p(t.$slots, "optionFullscreen", j(J({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
367
- ]),
368
- key: "4"
369
- } : void 0
370
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasAnimation", "isAnimation", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "onGenerateImage", "style"])) : B("", !0),
371
- t.$slots.source ? (s(), d("div", Ge, [
372
- p(t.$slots, "source", {}, void 0, !0)
373
- ], 512)) : B("", !0)
374
- ], 544));
375
- }
376
- }, Ye = /* @__PURE__ */ He(qe, [["__scopeId", "data-v-9d3c0699"]]);
377
- export {
378
- Ye as default
379
- };