vue-data-ui 3.20.11 → 3.21.0

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 (188) hide show
  1. package/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
  2. package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
  3. package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
  4. package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
  5. package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
  6. package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
  7. package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
  8. package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
  10. package/dist/{PackageVersion-eS823iMF.js → PackageVersion-DYLo3MRd.js} +1 -1
  11. package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
  12. package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
  13. package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
  14. package/dist/{SlicerPreview-By4kBVCY.js → SlicerPreview-CXLgqXX8.js} +6 -6
  15. package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
  16. package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
  17. package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
  18. package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
  89. package/dist/exposedLib-BJbE_A8E.js +19 -0
  90. package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
  91. package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
  92. package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
  93. package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
  94. package/dist/ssr.js +1366 -0
  95. package/dist/types/ssr.d.ts +128 -0
  96. package/dist/types/vue-data-ui.d.ts +135 -1
  97. package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
  98. package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
  99. package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
  100. package/dist/utils.js +8 -8
  101. package/dist/{vue-data-ui-0t8DsSSW.js → vue-data-ui-D2dM3IQZ.js} +68 -68
  102. package/dist/vue-data-ui.js +72 -72
  103. package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
  104. package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
  105. package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
  106. package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
  107. package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
  108. package/dist/{vue-ui-bump-CE8VRCs2.js → vue-ui-bump-BVCYywuS.js} +253 -253
  109. package/dist/{vue-ui-candlestick-B4tkLoQe.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
  110. package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
  111. package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
  112. package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
  113. package/dist/{vue-ui-circle-pack-SCxS2mrl.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
  114. package/dist/{vue-ui-cursor-DT8uNrQa.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
  115. package/dist/{vue-ui-dag-CK30vhll.js → vue-ui-dag-lL0juBzN.js} +20 -20
  116. package/dist/{vue-ui-dashboard-Cf21Q0H0.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
  117. package/dist/{vue-ui-digits-DiapBzIK.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
  118. package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
  119. package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
  120. package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
  121. package/dist/{vue-ui-flow-uPuvDSxv.js → vue-ui-flow-BXfzMTXx.js} +57 -57
  122. package/dist/{vue-ui-funnel-CCy9NFKa.js → vue-ui-funnel-BpnC82m0.js} +32 -32
  123. package/dist/{vue-ui-galaxy-BjoOO1lq.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
  124. package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
  125. package/dist/{vue-ui-geo-C8FXD9it.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
  126. package/dist/{vue-ui-gizmo-BiLdRUEw.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
  127. package/dist/{vue-ui-heatmap-D3ewCJX6.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
  128. package/dist/{vue-ui-history-plot-BpyvvMPA.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
  129. package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
  130. package/dist/{vue-ui-kpi-YCPfpGty.js → vue-ui-kpi-B9bdicir.js} +3 -3
  131. package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
  132. package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
  133. package/dist/{vue-ui-mood-radar-81X63j-D.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
  134. package/dist/{vue-ui-nested-donuts-C1j-h8RW.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
  135. package/dist/{vue-ui-onion-CZLJxedN.js → vue-ui-onion-3fJB4mfC.js} +45 -45
  136. package/dist/{vue-ui-parallel-coordinate-plot-Czndz3oA.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
  137. package/dist/{vue-ui-quadrant-LwMr7DKL.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
  138. package/dist/{vue-ui-quick-chart-C20W7LNY.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
  139. package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
  140. package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
  141. package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
  142. package/dist/{vue-ui-ridgeline-B5BRKUoc.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
  143. package/dist/{vue-ui-rings-DVA3hiUL.js → vue-ui-rings-BgFO7NYF.js} +81 -81
  144. package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
  145. package/dist/{vue-ui-skeleton-DxXA3XSP.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
  146. package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
  147. package/dist/{vue-ui-spark-trend-B3mkyeZ3.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
  148. package/dist/{vue-ui-sparkbar-BlmV-ndv.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
  149. package/dist/{vue-ui-sparkgauge-DKRJDqAS.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
  150. package/dist/{vue-ui-sparkhistogram-BNiXxI65.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
  151. package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
  152. package/dist/{vue-ui-sparkstackbar-C6qMimoL.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
  153. package/dist/{vue-ui-stackbar-C7jTnGyT.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
  154. package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
  155. package/dist/{vue-ui-strip-plot-CvjdxEOT.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
  156. package/dist/{vue-ui-table-B0zkvlw5.js → vue-ui-table-R-aXpHvF.js} +78 -78
  157. package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
  158. package/dist/{vue-ui-table-sparkline-BQjo2sbB.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
  159. package/dist/{vue-ui-thermometer-CVhxnkN-.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
  160. package/dist/{vue-ui-timer-Cimuw9rF.js → vue-ui-timer-AlYvthQ6.js} +23 -23
  161. package/dist/{vue-ui-tiremarks-CSPL1oli.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
  162. package/dist/{vue-ui-treemap-BWivpffU.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
  163. package/dist/{vue-ui-waffle-FmLPDL2g.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
  164. package/dist/{vue-ui-wheel-BjdVO5f4.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
  165. package/dist/{vue-ui-word-cloud-hhjEM6ee.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
  166. package/dist/{vue-ui-world-H9HX6smc.js → vue-ui-world-B93iq1ZM.js} +445 -445
  167. package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
  168. package/dist/{vue-ui-xy-canvas-kbP-mjEo.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
  169. package/package.json +5 -1
  170. package/dist/exposedLib-CI8ji8G-.js +0 -19
  171. package/dist/vue-ui-3d-bar-D1dX4mDU.js +0 -1757
  172. package/dist/vue-ui-age-pyramid-BYIxO-rR.js +0 -1238
  173. package/dist/vue-ui-bullet-B65T4IyK.js +0 -710
  174. package/dist/vue-ui-carousel-table-DB1kG5AJ.js +0 -455
  175. package/dist/vue-ui-chestnut-CXzK4gsf.js +0 -2010
  176. package/dist/vue-ui-chord-BhuABwXT.js +0 -1391
  177. package/dist/vue-ui-donut-DrM628Ge.js +0 -2410
  178. package/dist/vue-ui-donut-evolution-CIXY4tKY.js +0 -1510
  179. package/dist/vue-ui-dumbbell-B8V84XkY.js +0 -1530
  180. package/dist/vue-ui-gauge-DbV0oQs3.js +0 -920
  181. package/dist/vue-ui-horizontal-bar-DoCvNzdC.js +0 -1681
  182. package/dist/vue-ui-molecule-IFNTvQdE.js +0 -925
  183. package/dist/vue-ui-radar-Dxopl3RI.js +0 -1229
  184. package/dist/vue-ui-relation-circle-CMRXow6X.js +0 -924
  185. package/dist/vue-ui-scatter-DcveiIfl.js +0 -2413
  186. package/dist/vue-ui-sparkline-C5EDZIAt.js +0 -1507
  187. package/dist/vue-ui-stackline-fdOF6lLn.js +0 -2398
  188. package/dist/vue-ui-xy-omDIF90L.js +0 -4744
@@ -0,0 +1,455 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { H as t, J as n, Pt as r, S as i, Tt as a, X as o } from "./lib-AJRHFE5U.js";
3
+ import { t as ee } from "./useConfig-DnH7Pf_2.js";
4
+ import { t as te } from "./usePrinter-6n2MzVyV.js";
5
+ import { t as ne } from "./useNestedProp-DtcXIg7n.js";
6
+ import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
7
+ import { t as ie } from "./useUserOptionState-DK-_1ddE.js";
8
+ import { t as ae } from "./usePrefersMotion-BC-CsqR1.js";
9
+ import { Fragment as s, computed as c, createBlock as oe, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as se, createTextVNode as f, defineAsyncComponent as ce, guardReactiveProps as p, mergeProps as le, nextTick as ue, normalizeClass as de, normalizeProps as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, shallowRef as fe, toDisplayString as S, unref as C, useSlots as pe, watch as w, withCtx as T } from "vue";
10
+ //#region src/components/vue-ui-carousel-table.vue
11
+ var me = /* @__PURE__ */ e({ default: () => E }), he = ["id"], ge = ["aria-labelledby"], _e = ["id"], ve = ["height"], ye = ["id"], be = [
12
+ "data-cell",
13
+ "aria-label",
14
+ "height"
15
+ ], xe = {
16
+ key: 2,
17
+ ref: "source",
18
+ dir: "auto"
19
+ }, E = /* @__PURE__ */ re({
20
+ __name: "vue-ui-carousel-table",
21
+ props: {
22
+ config: {
23
+ type: Object,
24
+ default() {
25
+ return {};
26
+ }
27
+ },
28
+ dataset: {
29
+ type: Object,
30
+ default() {
31
+ return {};
32
+ }
33
+ }
34
+ },
35
+ emits: ["copyAlt"],
36
+ setup(e, { expose: re, emit: me }) {
37
+ let E = ce(() => import("./vue-ui-skeleton-qpdvvWtx.js").then((e) => e.n)), Se = ce(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), { vue_ui_carousel_table: Ce } = ee(), we = ae(), D = e, Te = me, O = y(t()), Ee = y(!1), k = y(!!D.dataset), De = pe();
38
+ _(() => {
39
+ Oe();
40
+ }), _(() => {
41
+ De["chart-background"] && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
42
+ });
43
+ function Oe() {
44
+ a(D.dataset) ? o({
45
+ componentName: "VueUiCarouselTable",
46
+ type: "dataset"
47
+ }) : ((!D.dataset.head || a(D.dataset.head)) && (o({
48
+ componentName: "VueUiCarouselTable",
49
+ type: "datasetAttribute",
50
+ property: "head"
51
+ }), k.value = !1), (!D.dataset.body || a(D.dataset.body)) && (o({
52
+ componentName: "VueUiCarouselTable",
53
+ type: "datasetAttribute",
54
+ property: "body"
55
+ }), k.value = !1)), we.value && (A.value.userOptions.buttons.animation = !1);
56
+ }
57
+ let A = c({
58
+ get: () => Me(),
59
+ set: (e) => e
60
+ }), ke = c(() => A.value.userOptions.useCursorPointer), { userOptionsVisible: j, setUserOptionsVisibility: Ae, keepUserOptionState: je } = ie({ config: A.value });
61
+ function Me() {
62
+ return ne({
63
+ userConfig: D.config,
64
+ defaultConfig: Ce
65
+ });
66
+ }
67
+ w(() => D.config, (e) => {
68
+ A.value = Me(), j.value = !A.value.userOptions.showOnChartHover, Oe();
69
+ }, { deep: !0 }), w(() => D.dataset, (e) => {
70
+ G();
71
+ }, { deep: !0 });
72
+ let { isPrinting: Ne, isImaging: M, generatePdf: Pe, generateImage: N } = te({
73
+ elementId: `carousel-table_${O.value}`,
74
+ fileName: A.value.caption.text || "vue-ui-carousel-table",
75
+ options: A.value.userOptions.print
76
+ }), P = y({ showAnimation: A.value.animation.use }), F = y(null), I = y(null), L = y(null), R = y(null), z = y(0), B = y(0), V = y(!1), H = y(null), U = y(null), W = y(0);
77
+ function G() {
78
+ H.value && (U.value = {
79
+ elements: H.value.getElementsByTagName("tr"),
80
+ heights: Array.from(H.value.getElementsByTagName("tr")).map((e) => e.getBoundingClientRect().height)
81
+ });
82
+ }
83
+ _(G);
84
+ let Fe = c(() => !U.value || !U.value.heights.length ? 0 : Math.max(...U.value.heights) + z.value + B.value), Ie = c(() => D.dataset.body ? A.value.tbody.tr.visible <= D.dataset.body.length ? A.value.tbody.tr.visible : D.dataset.body.length : 0), Le = c(() => (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) * Ie.value + z.value + B.value), K = y(0), q = y(null), J = y(0), Y = y(!1), Re = y(0);
85
+ _(() => {
86
+ L.value && (z.value = L.value.getBoundingClientRect().height), R.value && (B.value = R.value.getBoundingClientRect().height), P.value.showAnimation && U.value && Be();
87
+ }), _(() => {
88
+ if (F.value) {
89
+ let e = F.value.querySelector("thead"), t = Array.from(H.value.querySelectorAll("tr"));
90
+ function n() {
91
+ let n = e.getBoundingClientRect().bottom;
92
+ t.forEach((e) => {
93
+ e.getBoundingClientRect().top < n ? e.style.visibility = "hidden" : e.style.visibility = "visible";
94
+ });
95
+ }
96
+ F.value.addEventListener("scroll", n), n(), g(() => {
97
+ F.value.removeEventListener("scroll", n);
98
+ });
99
+ }
100
+ });
101
+ function ze(e) {
102
+ Ee.value = e, Re.value += 1;
103
+ }
104
+ function Be() {
105
+ we.value || !q.value && !Y.value && (A.value.animation.type === "scroll" ? q.value = requestAnimationFrame(He) : q.value = requestAnimationFrame(Ue));
106
+ }
107
+ function Ve() {
108
+ if (!F.value) return !1;
109
+ let { scrollTop: e, scrollHeight: t, clientHeight: n } = F.value;
110
+ return e + n >= t;
111
+ }
112
+ function He(e) {
113
+ Y.value || (J.value ||= e, e - J.value >= A.value.animation.speedMs && (K.value += U.value.heights[W.value], (Ve() || W.value >= U.value.heights.length) && (K.value = 0, W.value = -1), W.value += 1, F.value && F.value.scrollTo({
114
+ top: K.value,
115
+ behavior: "smooth"
116
+ }), J.value = e), q.value = requestAnimationFrame(He));
117
+ }
118
+ function Ue(e) {
119
+ if (Y.value) return;
120
+ J.value ||= e;
121
+ let t = e - J.value, n = A.value.animation.speedMs / 4 / 1e3;
122
+ t >= n && (K.value += n, K.value >= F.value.scrollHeight - F.value.clientHeight && (K.value = 0), F.value && F.value.scrollTo({
123
+ top: K.value,
124
+ behavior: "auto"
125
+ }), J.value = e), q.value = requestAnimationFrame(Ue);
126
+ }
127
+ function X() {
128
+ Y.value = !0, cancelAnimationFrame(q.value), q.value = null;
129
+ }
130
+ g(X);
131
+ function Z() {
132
+ !Y.value || !P.value.showAnimation || (Y.value = !1, J.value = 0, Be());
133
+ }
134
+ function We() {
135
+ A.value.animation.pauseOnHover && X();
136
+ }
137
+ let Q = y(null);
138
+ function Ge() {
139
+ X(), clearTimeout(Q.value);
140
+ }
141
+ function Ke() {
142
+ clearTimeout(Q.value), Q.value = setTimeout(Z, 1e3);
143
+ }
144
+ w(() => A.value.animation.use, (e) => {
145
+ e ? (P.value.showAnimation = !0, Z()) : (P.value.showAnimation = !1, X());
146
+ }), w(() => A.value.animation.type, (e) => {
147
+ X(), K.value = 0, W.value = 0, F.value.scrollTo({
148
+ top: 0,
149
+ behavior: "auto"
150
+ }), Z();
151
+ });
152
+ let qe = c(() => A.value.responsiveBreakpoint), $ = fe(null);
153
+ _(() => {
154
+ $.value = new ResizeObserver((e) => {
155
+ e.forEach((e) => {
156
+ V.value = e.contentRect.width < qe.value;
157
+ }), z.value = L.value ? L.value.getBoundingClientRect().height : 0, B.value = R.value ? R.value.getBoundingClientRect().height : 0, W.value = 0, ue(() => {
158
+ X(), J.value = 0, K.value = 0, G(), Z();
159
+ });
160
+ }), F.value && $.value.observe(F.value);
161
+ }), g(() => {
162
+ $.value && $.value.disconnect();
163
+ });
164
+ function Je() {
165
+ Pe();
166
+ }
167
+ function Ye() {
168
+ P.value.showAnimation = !P.value.showAnimation, P.value.showAnimation ? Z() : X();
169
+ }
170
+ function Xe(e = null) {
171
+ ue(() => {
172
+ let t = D.dataset.head.map((e, t) => [[D.dataset.body[t]]]), r = i([[A.value.caption.text], [D.dataset.head.map((e) => [e])]].concat(t));
173
+ e ? e(r) : n({
174
+ csvContent: r,
175
+ title: A.value.caption.text || "vue-ui-carousel-table"
176
+ });
177
+ });
178
+ }
179
+ async function Ze() {
180
+ if (Te("copyAlt", {
181
+ config: A.value,
182
+ dataset: D.dataset
183
+ }), !A.value.userOptions.callbacks.altCopy) {
184
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
185
+ return;
186
+ }
187
+ await Promise.resolve(A.value.userOptions.callbacks.altCopy({
188
+ config: A.value,
189
+ dataset: D.dataset
190
+ }));
191
+ }
192
+ return re({
193
+ pauseAnimation: X,
194
+ resumeAnimation: Z,
195
+ toggleAnimation: Ye,
196
+ generateCsv: Xe,
197
+ generatePdf: Je,
198
+ generateImage: N,
199
+ copyAlt: Ze
200
+ }), (t, n) => (v(), u("div", {
201
+ class: "vue-data-ui-component vue-ui-carousel-table",
202
+ style: {
203
+ position: "relative",
204
+ overflow: "visible"
205
+ },
206
+ ref_key: "chartContainer",
207
+ ref: I,
208
+ onMouseenter: n[5] ||= () => C(Ae)(!0),
209
+ onMouseleave: n[6] ||= () => C(Ae)(!1)
210
+ }, [
211
+ d("div", {
212
+ ref_key: "tableContainer",
213
+ ref: F,
214
+ id: `carousel-table_${O.value}`,
215
+ style: h({
216
+ height: C(Ne) || C(M) ? "auto" : `${Math.max(Le.value, Fe.value)}px`,
217
+ containerType: "inline-size",
218
+ position: "relative",
219
+ overflow: "auto",
220
+ fontFamily: A.value.fontFamily
221
+ }),
222
+ class: de({
223
+ "vue-ui-responsive": V.value,
224
+ "is-playing": A.value.scrollbar.hide || !Y.value && A.value.scrollbar.showOnlyOnHover
225
+ }),
226
+ onMouseover: n[0] ||= (e) => We(),
227
+ onMouseleave: n[1] ||= (e) => Z(),
228
+ onTouchstart: n[2] ||= (e) => Ge(),
229
+ onTouchend: n[3] ||= (e) => Ke(),
230
+ onTouchcancel: n[4] ||= (e) => Ke()
231
+ }, [k.value ? (v(), u("table", {
232
+ key: 0,
233
+ class: "vue-data-ui-carousel-table",
234
+ "aria-labelledby": `carousel-caption-${O.value}`,
235
+ style: h({
236
+ ...A.value.style,
237
+ border: `${A.value.border.size}px solid ${A.value.border.color}`,
238
+ width: "100%",
239
+ borderCollapse: "collapse",
240
+ backgroundColor: A.value.tbody.backgroundColor
241
+ })
242
+ }, [
243
+ d("caption", {
244
+ ref_key: "caption",
245
+ ref: L,
246
+ class: "vue-data-ui-carousel-table-caption",
247
+ id: `carousel-caption-${O.value}`,
248
+ style: h({
249
+ ...A.value.caption.style,
250
+ fontFamily: "inherit",
251
+ position: "sticky",
252
+ top: 0,
253
+ zIndex: 2,
254
+ paddingTop: A.value.caption.padding.top + "px",
255
+ paddingRight: A.value.caption.padding.right + "px",
256
+ paddingBottom: A.value.caption.padding.bottom + "px",
257
+ paddingLeft: A.value.caption.padding.left + "px",
258
+ boxShadow: V.value ? A.value.thead.tr.style.boxShadow : "none",
259
+ minHeight: "36px",
260
+ display: t.$slots.caption || A.value.caption.text || A.value.userOptions.show ? "" : "none"
261
+ })
262
+ }, [f(S(A.value.caption.text && !t.$slots.caption ? A.value.caption.text : "") + " ", 1), x(t.$slots, "caption", {}, void 0, !0)], 12, _e),
263
+ d("thead", {
264
+ role: "rowgroup",
265
+ style: h({
266
+ ...A.value.thead.style,
267
+ position: "sticky",
268
+ top: `${t.$slots.caption || A.value.caption.text || A.value.userOptions.show ? z.value : 0}px`,
269
+ zIndex: 1
270
+ })
271
+ }, [d("tr", {
272
+ ref_key: "tableRow",
273
+ ref: R,
274
+ role: "row",
275
+ style: h({
276
+ ...A.value.thead.tr.style,
277
+ border: A.value.thead.tr.border.size ? `${A.value.thead.tr.border.size}px solid ${A.value.thead.tr.border.color}` : "none",
278
+ boxShadow: V.value ? "none" : A.value.thead.tr.style.boxShadow
279
+ }),
280
+ height: `${A.value.thead.tr.height}px`
281
+ }, [(v(!0), u(s, null, b(e.dataset.head, (e, n) => (v(), u("th", {
282
+ role: "cell",
283
+ key: `th_${n}`,
284
+ id: `col-${n}`,
285
+ scope: "col",
286
+ style: h({
287
+ ...A.value.thead.tr.th.style,
288
+ 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",
289
+ paddingTop: A.value.thead.tr.th.padding.top + "px",
290
+ paddingRight: A.value.thead.tr.th.padding.right + "px",
291
+ paddingBottom: A.value.thead.tr.th.padding.bottom + "px",
292
+ paddingLeft: A.value.thead.tr.th.padding.left + "px"
293
+ })
294
+ }, [f(S(t.$slots.th ? "" : e) + " ", 1), x(t.$slots, "th", le({ ref_for: !0 }, {
295
+ th: e,
296
+ colIndex: n
297
+ }), void 0, !0)], 12, ye))), 128))], 12, ve)], 4),
298
+ e.dataset.body && e.dataset.head ? (v(), u("tbody", {
299
+ key: 0,
300
+ ref_key: "tbody",
301
+ ref: H,
302
+ "aria-live": "polite",
303
+ style: { clipPath: "inset(0,0,0,0)" }
304
+ }, [(v(!0), u(s, null, b(e.dataset.body, (n, i) => (v(), u("tr", { style: h({
305
+ ...A.value.tbody.tr.style,
306
+ border: `${A.value.tbody.tr.border.size}px solid ${A.value.tbody.tr.border.color}`,
307
+ verticalAlign: "middle"
308
+ }) }, [(v(!0), u(s, null, b(n, (n, a) => (v(), u("td", {
309
+ role: "cell",
310
+ "data-cell": e.dataset.head[a] || "",
311
+ "aria-label": `${e.dataset.head[a]}: ${n}`,
312
+ style: h({
313
+ ...A.value.tbody.tr.td.style,
314
+ border: `${A.value.tbody.tr.td.border.size}px solid ${A.value.tbody.tr.td.border.color}`,
315
+ backgroundColor: C(r)(A.value.tbody.tr.td.style.backgroundColor, i % 2 == 0 && A.value.tbody.tr.td.alternateColor ? A.value.tbody.tr.td.alternateOpacity * 100 : 100),
316
+ paddingTop: A.value.tbody.tr.td.padding.top + "px",
317
+ paddingRight: A.value.tbody.tr.td.padding.right + "px",
318
+ paddingBottom: A.value.tbody.tr.td.padding.bottom + "px",
319
+ paddingLeft: A.value.tbody.tr.td.padding.left + "px",
320
+ verticalAlign: "middle"
321
+ }),
322
+ height: `${A.value.tbody.tr.height}px`
323
+ }, [f(S(t.$slots.td ? "" : n) + " ", 1), x(t.$slots, "td", le({ ref_for: !0 }, {
324
+ td: n,
325
+ rowIndex: i,
326
+ colIndex: a
327
+ }), void 0, !0)], 12, be))), 256))], 4))), 256))], 512)) : l("", !0)
328
+ ], 12, ge)) : l("", !0)], 46, he),
329
+ k.value ? l("", !0) : (v(), oe(C(E), {
330
+ key: 0,
331
+ config: { type: "table" }
332
+ })),
333
+ A.value.userOptions.show && k.value && (C(je) || C(j)) ? (v(), oe(C(Se), {
334
+ ref: "details",
335
+ key: `user_option_${Re.value}`,
336
+ backgroundColor: A.value.style.backgroundColor,
337
+ color: A.value.style.color,
338
+ isPrinting: C(Ne),
339
+ isImaging: C(M),
340
+ uid: O.value,
341
+ hasTooltip: !1,
342
+ hasPdf: A.value.userOptions.buttons.pdf,
343
+ hasImg: A.value.userOptions.buttons.img,
344
+ hasXls: A.value.userOptions.buttons.csv,
345
+ hasTable: !1,
346
+ hasLabel: !1,
347
+ hasAnimation: A.value.userOptions.buttons.animation,
348
+ isAnimation: !P.value.showAnimation,
349
+ hasFullscreen: A.value.userOptions.buttons.fullscreen,
350
+ hasAltCopy: A.value.userOptions.buttons.altCopy,
351
+ isFullscreen: Ee.value,
352
+ chartElement: I.value,
353
+ position: A.value.userOptions.position,
354
+ titles: { ...A.value.userOptions.buttonTitles },
355
+ zIndex: 3,
356
+ offsetX: 12,
357
+ callbacks: A.value.userOptions.callbacks,
358
+ printScale: A.value.userOptions.print.scale,
359
+ isCursorPointer: ke.value,
360
+ onGeneratePdf: Je,
361
+ onGenerateCsv: Xe,
362
+ onGenerateImage: C(N),
363
+ onToggleAnimation: Ye,
364
+ onToggleFullscreen: ze,
365
+ onCopyAlt: Ze,
366
+ style: h({ visibility: C(je) ? C(j) ? "visible" : "hidden" : "visible" })
367
+ }, se({ _: 2 }, [
368
+ t.$slots.menuIcon ? {
369
+ name: "menuIcon",
370
+ fn: T(({ isOpen: e, color: n }) => [x(t.$slots, "menuIcon", m(p({
371
+ isOpen: e,
372
+ color: n
373
+ })), void 0, !0)]),
374
+ key: "0"
375
+ } : void 0,
376
+ t.$slots.optionPdf ? {
377
+ name: "optionPdf",
378
+ fn: T(() => [x(t.$slots, "optionPdf", {}, void 0, !0)]),
379
+ key: "1"
380
+ } : void 0,
381
+ t.$slots.optionCsv ? {
382
+ name: "optionCsv",
383
+ fn: T(() => [x(t.$slots, "optionCsv", {}, void 0, !0)]),
384
+ key: "2"
385
+ } : void 0,
386
+ t.$slots.optionImg ? {
387
+ name: "optionImg",
388
+ fn: T(() => [x(t.$slots, "optionImg", {}, void 0, !0)]),
389
+ key: "3"
390
+ } : void 0,
391
+ t.$slots.optionSvg ? {
392
+ name: "optionSvg",
393
+ fn: T(() => [x(t.$slots, "optionSvg", {}, void 0, !0)]),
394
+ key: "4"
395
+ } : void 0,
396
+ t.$slots.optionAnimation ? {
397
+ name: "optionAnimation",
398
+ fn: T(({ toggleAnimation: e, isAnimated: n }) => [x(t.$slots, "optionAnimation", m(p({
399
+ toggleAnimation: e,
400
+ isAnimated: n
401
+ })), void 0, !0)]),
402
+ key: "5"
403
+ } : void 0,
404
+ t.$slots.optionFullscreen ? {
405
+ name: "optionFullscreen",
406
+ fn: T(({ toggleFullscreen: e, isFullscreen: n }) => [x(t.$slots, "optionFullscreen", m(p({
407
+ toggleFullscreen: e,
408
+ isFullscreen: n
409
+ })), void 0, !0)]),
410
+ key: "6"
411
+ } : void 0,
412
+ t.$slots.optionAltCopy ? {
413
+ name: "optionAltCopy",
414
+ fn: T(({ altCopy: e }) => [x(t.$slots, "optionAltCopy", m(p({ altCopy: e })), void 0, !0)]),
415
+ key: "7"
416
+ } : void 0,
417
+ t.$slots["custom-menu-before"] ? {
418
+ name: "custom-menu-before",
419
+ fn: T(() => [x(t.$slots, "custom-menu-before", {}, void 0, !0)]),
420
+ key: "8"
421
+ } : void 0,
422
+ t.$slots["custom-menu-after"] ? {
423
+ name: "custom-menu-after",
424
+ fn: T(() => [x(t.$slots, "custom-menu-after", {}, void 0, !0)]),
425
+ key: "9"
426
+ } : void 0
427
+ ]), 1032, [
428
+ "backgroundColor",
429
+ "color",
430
+ "isPrinting",
431
+ "isImaging",
432
+ "uid",
433
+ "hasPdf",
434
+ "hasImg",
435
+ "hasXls",
436
+ "hasAnimation",
437
+ "isAnimation",
438
+ "hasFullscreen",
439
+ "hasAltCopy",
440
+ "isFullscreen",
441
+ "chartElement",
442
+ "position",
443
+ "titles",
444
+ "callbacks",
445
+ "printScale",
446
+ "isCursorPointer",
447
+ "onGenerateImage",
448
+ "style"
449
+ ])) : l("", !0),
450
+ t.$slots.source ? (v(), u("div", xe, [x(t.$slots, "source", {}, void 0, !0)], 512)) : l("", !0)
451
+ ], 544));
452
+ }
453
+ }, [["__scopeId", "data-v-0f07f0c9"]]);
454
+ //#endregion
455
+ export { me as n, E as t };