vue-data-ui 3.19.5 → 3.19.7

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 (207) hide show
  1. package/dist/{BaseDraggableDialog-BQcmQAK5.js → BaseDraggableDialog-DUUu2E2Q.js} +1 -1
  2. package/dist/{BaseIcon-CEmt3Ifx.js → BaseIcon-DM1x8hQF.js} +6 -3
  3. package/dist/{BaseLegendToggle-DUIqQmwM.js → BaseLegendToggle-CJTwLGXL.js} +1 -1
  4. package/dist/{BaseZoomControls-Ce1yqas1.js → BaseZoomControls-BkajQ8q9.js} +1 -1
  5. package/dist/{ColorPicker-DS_QkH3W.js → ColorPicker-DTQeqKUV.js} +1 -1
  6. package/dist/{DataTable-BvDJEAma.js → DataTable-DmE8Oo4i.js} +1 -1
  7. package/dist/{NonSvgPenAndPaper-D4Gh7O43.js → NonSvgPenAndPaper-tvWXeCsd.js} +2 -2
  8. package/dist/{PackageVersion-CGiidfDW.js → PackageVersion-DUU5Aku2.js} +1 -1
  9. package/dist/{PenAndPaper-DwpL8Z0l.js → PenAndPaper-DNgm6y3l.js} +2 -2
  10. package/dist/{Slicer-BlfyiHHD.js → Slicer-CPWGgGSp.js} +1 -1
  11. package/dist/{SlicerPreview-CG1jpZqZ.js → SlicerPreview-BU3ZeHjR.js} +1 -1
  12. package/dist/{UserOptions-DMw8EZEo.js → UserOptions-D7zR0tnR.js} +8 -4
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-history-plot.js +1 -1
  39. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  40. package/dist/components/vue-ui-icon.js +1 -1
  41. package/dist/components/vue-ui-kpi.js +1 -1
  42. package/dist/components/vue-ui-mini-loader.js +1 -1
  43. package/dist/components/vue-ui-molecule.js +1 -1
  44. package/dist/components/vue-ui-mood-radar.js +1 -1
  45. package/dist/components/vue-ui-nested-donuts.js +1 -1
  46. package/dist/components/vue-ui-onion.js +1 -1
  47. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  48. package/dist/components/vue-ui-quadrant.js +1 -1
  49. package/dist/components/vue-ui-quick-chart.js +1 -1
  50. package/dist/components/vue-ui-radar.js +1 -1
  51. package/dist/components/vue-ui-rating.js +1 -1
  52. package/dist/components/vue-ui-relation-circle.js +1 -1
  53. package/dist/components/vue-ui-ridgeline.js +1 -1
  54. package/dist/components/vue-ui-rings.js +1 -1
  55. package/dist/components/vue-ui-scatter.js +1 -1
  56. package/dist/components/vue-ui-skeleton.js +1 -1
  57. package/dist/components/vue-ui-smiley.js +1 -1
  58. package/dist/components/vue-ui-spark-trend.js +1 -1
  59. package/dist/components/vue-ui-sparkbar.js +1 -1
  60. package/dist/components/vue-ui-sparkgauge.js +1 -1
  61. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  62. package/dist/components/vue-ui-sparkline.js +1 -1
  63. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  64. package/dist/components/vue-ui-stackbar.js +1 -1
  65. package/dist/components/vue-ui-stackline.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/style.css +1 -1
  82. package/dist/types/vue-data-ui.d.ts +107 -0
  83. package/dist/types/vue-ui-3d-bar.d.ts +2 -0
  84. package/dist/types/vue-ui-age-pyramid.d.ts +2 -0
  85. package/dist/types/vue-ui-bullet.d.ts +2 -0
  86. package/dist/types/vue-ui-bump.d.ts +2 -0
  87. package/dist/types/vue-ui-candlestick.d.ts +2 -0
  88. package/dist/types/vue-ui-carousel-table.d.ts +2 -0
  89. package/dist/types/vue-ui-chestnut.d.ts +2 -0
  90. package/dist/types/vue-ui-chord.d.ts +2 -0
  91. package/dist/types/vue-ui-circle-pack.d.ts +2 -0
  92. package/dist/types/vue-ui-dag.d.ts +2 -0
  93. package/dist/types/vue-ui-dashboard.d.ts +2 -0
  94. package/dist/types/vue-ui-donut-evolution.d.ts +2 -0
  95. package/dist/types/vue-ui-donut.d.ts +2 -0
  96. package/dist/types/vue-ui-dumbbell.d.ts +2 -0
  97. package/dist/types/vue-ui-flow.d.ts +2 -0
  98. package/dist/types/vue-ui-funnel.d.ts +2 -0
  99. package/dist/types/vue-ui-galaxy.d.ts +2 -0
  100. package/dist/types/vue-ui-gauge.d.ts +2 -0
  101. package/dist/types/vue-ui-geo.d.ts +2 -0
  102. package/dist/types/vue-ui-heatmap.d.ts +2 -0
  103. package/dist/types/vue-ui-history-plot.d.ts +2 -0
  104. package/dist/types/vue-ui-horizontal-bar.d.ts +2 -0
  105. package/dist/types/vue-ui-molecule.d.ts +2 -0
  106. package/dist/types/vue-ui-mood-radar.d.ts +2 -0
  107. package/dist/types/vue-ui-nested-donuts.d.ts +2 -0
  108. package/dist/types/vue-ui-onion.d.ts +2 -0
  109. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +2 -0
  110. package/dist/types/vue-ui-quadrant.d.ts +2 -0
  111. package/dist/types/vue-ui-quick-chart.d.ts +2 -0
  112. package/dist/types/vue-ui-radar.d.ts +2 -0
  113. package/dist/types/vue-ui-relation-circle.d.ts +2 -0
  114. package/dist/types/vue-ui-ridgeline.d.ts +2 -0
  115. package/dist/types/vue-ui-rings.d.ts +2 -0
  116. package/dist/types/vue-ui-scatter.d.ts +2 -0
  117. package/dist/types/vue-ui-stackbar.d.ts +2 -0
  118. package/dist/types/vue-ui-stackline.d.ts +2 -0
  119. package/dist/types/vue-ui-strip-plot.d.ts +2 -0
  120. package/dist/types/vue-ui-table-heatmap.d.ts +2 -0
  121. package/dist/types/vue-ui-table-sparkline.d.ts +2 -0
  122. package/dist/types/vue-ui-thermometer.d.ts +2 -0
  123. package/dist/types/vue-ui-tiremarks.d.ts +2 -0
  124. package/dist/types/vue-ui-treemap.d.ts +2 -0
  125. package/dist/types/vue-ui-waffle.d.ts +2 -0
  126. package/dist/types/vue-ui-wheel.d.ts +2 -0
  127. package/dist/types/vue-ui-word-cloud.d.ts +2 -0
  128. package/dist/types/vue-ui-world.d.ts +2 -0
  129. package/dist/types/vue-ui-xy-canvas.d.ts +2 -0
  130. package/dist/types/vue-ui-xy.d.ts +2 -0
  131. package/dist/{useConfig-lKgU652n.js → useConfig-ByaaSKhz.js} +5 -0
  132. package/dist/{useObjectBindings-C3q0I8Zm.js → useObjectBindings-BR1sGimd.js} +1 -1
  133. package/dist/utils.js +1 -1
  134. package/dist/{vue-data-ui-DcI_rZFY.js → vue-data-ui-DBjj6t8B.js} +68 -68
  135. package/dist/vue-data-ui.js +69 -69
  136. package/dist/{vue-ui-3d-bar-DiV2fXyA.js → vue-ui-3d-bar-CmAc1xBL.js} +13 -3
  137. package/dist/{vue-ui-accordion-CNtzLReQ.js → vue-ui-accordion-BX9WL-QF.js} +2 -2
  138. package/dist/{vue-ui-age-pyramid-OeogBDSt.js → vue-ui-age-pyramid-CFvux3-S.js} +13 -3
  139. package/dist/{vue-ui-annotator-KPkeXw8q.js → vue-ui-annotator-Be3VpH8Z.js} +4 -4
  140. package/dist/{vue-ui-bullet-ChpUs3I8.js → vue-ui-bullet-C4xEb3fq.js} +13 -3
  141. package/dist/{vue-ui-bump-BkAshi4j.js → vue-ui-bump-BW76g7ep.js} +14 -4
  142. package/dist/vue-ui-candlestick-ShTn9uzH.js +1826 -0
  143. package/dist/vue-ui-carousel-table-DMan_IZb.js +455 -0
  144. package/dist/{vue-ui-chestnut-CSHDoJzC.js → vue-ui-chestnut-BIfaNOqy.js} +14 -4
  145. package/dist/{vue-ui-chord-DdwmuNQX.js → vue-ui-chord-GDJiAjfD.js} +14 -4
  146. package/dist/{vue-ui-circle-pack-DJQmSf72.js → vue-ui-circle-pack-Bo4ljiP_.js} +14 -4
  147. package/dist/{vue-ui-cursor-DFf_3h10.js → vue-ui-cursor-BuLoDOFw.js} +2 -2
  148. package/dist/{vue-ui-dag-CkO3Ax7d.js → vue-ui-dag-BmbwijZi.js} +14 -4
  149. package/dist/{vue-ui-dashboard--8Xk6LWT.js → vue-ui-dashboard-CyzIaw6M.js} +80 -70
  150. package/dist/{vue-ui-digits-Cs5EheDs.js → vue-ui-digits-B33dTRHj.js} +2 -2
  151. package/dist/{vue-ui-donut-DsNo3LIX.js → vue-ui-donut-BIgvjStd.js} +14 -4
  152. package/dist/{vue-ui-donut-evolution-_QyGlfxI.js → vue-ui-donut-evolution-DT5F88LK.js} +238 -218
  153. package/dist/{vue-ui-dumbbell-ChGtAAWt.js → vue-ui-dumbbell-SwLKpHuh.js} +13 -3
  154. package/dist/{vue-ui-flow-B5AzIgoc.js → vue-ui-flow-BqTUyRBS.js} +13 -3
  155. package/dist/{vue-ui-funnel-EDQSTDkg.js → vue-ui-funnel-GOx4FfhB.js} +14 -4
  156. package/dist/{vue-ui-galaxy-BD_RrBJE.js → vue-ui-galaxy-CTMyOfp7.js} +14 -4
  157. package/dist/{vue-ui-gauge-C9QMAGa9.js → vue-ui-gauge-Clz_TmiX.js} +13 -3
  158. package/dist/{vue-ui-geo-nR7niELP.js → vue-ui-geo-2kZK_UVF.js} +14 -4
  159. package/dist/{vue-ui-gizmo-Y1enSmyC.js → vue-ui-gizmo-BpNEwLo7.js} +2 -2
  160. package/dist/{vue-ui-heatmap-D2dBZY8v.js → vue-ui-heatmap-B6FLZij5.js} +15 -5
  161. package/dist/{vue-ui-history-plot-DEhOa4RX.js → vue-ui-history-plot-DpGwqYyg.js} +14 -4
  162. package/dist/{vue-ui-horizontal-bar-EoXn4UVd.js → vue-ui-horizontal-bar-BHFd966c.js} +16 -6
  163. package/dist/{vue-ui-kpi-DUKaYWpW.js → vue-ui-kpi-DyIqCISK.js} +2 -2
  164. package/dist/{vue-ui-mini-loader-BpLz9pDO.js → vue-ui-mini-loader-DDJUya9e.js} +1 -1
  165. package/dist/{vue-ui-molecule-MlVj-IXz.js → vue-ui-molecule-BtQOQ32e.js} +14 -4
  166. package/dist/{vue-ui-mood-radar-B8ILXAqP.js → vue-ui-mood-radar-CZSLnIMi.js} +13 -3
  167. package/dist/{vue-ui-nested-donuts-Jw8bQEo4.js → vue-ui-nested-donuts-Lhteboo1.js} +14 -4
  168. package/dist/{vue-ui-onion-D3ANYQG8.js → vue-ui-onion-uCUgmyF1.js} +14 -4
  169. package/dist/{vue-ui-parallel-coordinate-plot-DBUBo1uE.js → vue-ui-parallel-coordinate-plot-_u_VTAjF.js} +14 -4
  170. package/dist/{vue-ui-quadrant-CQ9eomPu.js → vue-ui-quadrant-CgalDMyS.js} +14 -4
  171. package/dist/{vue-ui-quick-chart-bAX-1W7U.js → vue-ui-quick-chart-BAWcSaDB.js} +15 -5
  172. package/dist/{vue-ui-radar-BrlQJKQ8.js → vue-ui-radar-64HPFASp.js} +14 -4
  173. package/dist/{vue-ui-rating-DBxf9Vwv.js → vue-ui-rating-D_QR_A3V.js} +1 -1
  174. package/dist/{vue-ui-relation-circle-53zRDuMv.js → vue-ui-relation-circle-DT4So4-6.js} +16 -6
  175. package/dist/{vue-ui-ridgeline-B80Je7Dl.js → vue-ui-ridgeline-5fZANTS9.js} +14 -4
  176. package/dist/{vue-ui-rings-q2Z9_I_C.js → vue-ui-rings-QFY794j3.js} +14 -4
  177. package/dist/{vue-ui-scatter-B2j49pZG.js → vue-ui-scatter-BPCY-u36.js} +14 -4
  178. package/dist/{vue-ui-skeleton-DBQVQjee.js → vue-ui-skeleton-Dj_ZVfSX.js} +2 -2
  179. package/dist/{vue-ui-smiley-2xc8AwPP.js → vue-ui-smiley-rFdGxZK6.js} +1 -1
  180. package/dist/{vue-ui-spark-trend-2A59xizI.js → vue-ui-spark-trend-DB0VHzm0.js} +2 -2
  181. package/dist/{vue-ui-sparkbar-ySB5tY6a.js → vue-ui-sparkbar-DVGRTFO5.js} +2 -2
  182. package/dist/{vue-ui-sparkgauge-1W1qaesz.js → vue-ui-sparkgauge-3UFZaDF9.js} +2 -2
  183. package/dist/{vue-ui-sparkhistogram-By0How3p.js → vue-ui-sparkhistogram-DRmBVef7.js} +2 -2
  184. package/dist/{vue-ui-sparkline-BqJ0MXbc.js → vue-ui-sparkline-vsqKnakQ.js} +2 -2
  185. package/dist/{vue-ui-sparkstackbar-CMVO2Tu-.js → vue-ui-sparkstackbar-BNUhunuQ.js} +3 -3
  186. package/dist/vue-ui-stackbar-9jP1s0MN.js +2267 -0
  187. package/dist/vue-ui-stackline-D1o_afno.js +2395 -0
  188. package/dist/{vue-ui-strip-plot-BkcKTTC6.js → vue-ui-strip-plot-CogQ8VSl.js} +13 -3
  189. package/dist/{vue-ui-table-CIgdj4R-.js → vue-ui-table-Bub1v0eM.js} +5 -5
  190. package/dist/{vue-ui-table-heatmap-CvHoeUmu.js → vue-ui-table-heatmap-BFKyJTr1.js} +15 -5
  191. package/dist/{vue-ui-table-sparkline-DReGOXrL.js → vue-ui-table-sparkline-BPts9wTR.js} +14 -4
  192. package/dist/{vue-ui-thermometer-Bmq8u98B.js → vue-ui-thermometer-CJJ4cVt0.js} +16 -6
  193. package/dist/{vue-ui-timer-cYpIWaiH.js → vue-ui-timer-BEPXWd20.js} +3 -3
  194. package/dist/{vue-ui-tiremarks-B01ayToa.js → vue-ui-tiremarks-BC7bLLQD.js} +13 -3
  195. package/dist/{vue-ui-treemap-CbqNfpkg.js → vue-ui-treemap-Cja-vZoa.js} +15 -5
  196. package/dist/{vue-ui-waffle-zz_nDVZ3.js → vue-ui-waffle-BRj-YBlz.js} +14 -4
  197. package/dist/{vue-ui-wheel--8hd9-06.js → vue-ui-wheel-AOTFpTWN.js} +16 -6
  198. package/dist/{vue-ui-word-cloud-BXyP8Qzx.js → vue-ui-word-cloud-dqfAdhW-.js} +14 -4
  199. package/dist/{vue-ui-world-hy7P8x_O.js → vue-ui-world-DqwsIYze.js} +14 -4
  200. package/dist/vue-ui-xy-Dhult6gR.js +4181 -0
  201. package/dist/{vue-ui-xy-canvas-BKUggHiV.js → vue-ui-xy-canvas-B06Rit63.js} +17 -7
  202. package/package.json +1 -1
  203. package/dist/vue-ui-candlestick-BwHP3icU.js +0 -1804
  204. package/dist/vue-ui-carousel-table-Bb5y_p3g.js +0 -445
  205. package/dist/vue-ui-stackbar-CRbyQwVz.js +0 -2243
  206. package/dist/vue-ui-stackline-CLlAhA0E.js +0 -2371
  207. package/dist/vue-ui-xy-3LB_mNPd.js +0 -4141
@@ -1,445 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { H as t, J as n, S as r, St as i, X as a, jt as ee } from "./lib-BkiwukKO.js";
3
- import { t as te } from "./useConfig-lKgU652n.js";
4
- import { t as ne } from "./usePrinter-X0yWOynH.js";
5
- import { t as re } from "./useNestedProp-Ck4hsrpu.js";
6
- import { t as o } from "./_plugin-vue_export-helper-Dq1MygBL.js";
7
- import { t as ie } from "./useUserOptionState-CjPJPTg2.js";
8
- import { t as ae } from "./usePrefersMotion-BywLbIko.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__ */ o({
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: o, emit: me }) {
37
- let E = ce(() => import("./vue-ui-skeleton-DBQVQjee.js").then((e) => e.n)), Se = ce(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), { vue_ui_carousel_table: Ce } = te(), we = ae(), D = e, Te = me, O = y(t()), k = y(!1), A = y(!!D.dataset), Ee = pe();
38
- _(() => {
39
- j();
40
- }), _(() => {
41
- Ee["chart-background"] && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
42
- });
43
- function j() {
44
- i(D.dataset) ? a({
45
- componentName: "VueUiCarouselTable",
46
- type: "dataset"
47
- }) : ((!D.dataset.head || i(D.dataset.head)) && (a({
48
- componentName: "VueUiCarouselTable",
49
- type: "datasetAttribute",
50
- property: "head"
51
- }), A.value = !1), (!D.dataset.body || i(D.dataset.body)) && (a({
52
- componentName: "VueUiCarouselTable",
53
- type: "datasetAttribute",
54
- property: "body"
55
- }), A.value = !1)), we.value && (M.value.userOptions.buttons.animation = !1);
56
- }
57
- let M = c({
58
- get: () => ke(),
59
- set: (e) => e
60
- }), De = c(() => M.value.userOptions.useCursorPointer), { userOptionsVisible: N, setUserOptionsVisibility: P, keepUserOptionState: Oe } = ie({ config: M.value });
61
- function ke() {
62
- return re({
63
- userConfig: D.config,
64
- defaultConfig: Ce
65
- });
66
- }
67
- w(() => D.config, (e) => {
68
- M.value = ke(), N.value = !M.value.userOptions.showOnChartHover, j();
69
- }, { deep: !0 }), w(() => D.dataset, (e) => {
70
- G();
71
- }, { deep: !0 });
72
- let { isPrinting: Ae, isImaging: je, generatePdf: Me, generateImage: Ne } = ne({
73
- elementId: `carousel-table_${O.value}`,
74
- fileName: M.value.caption.text || "vue-ui-carousel-table",
75
- options: M.value.userOptions.print
76
- }), F = y({ showAnimation: M.value.animation.use }), I = y(null), Pe = 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 ? M.value.tbody.tr.visible <= D.dataset.body.length ? M.value.tbody.tr.visible : D.dataset.body.length : 0), Le = c(() => (M.value.tbody.tr.height + M.value.tbody.tr.td.padding.top + M.value.tbody.tr.td.padding.bottom + M.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), F.value.showAnimation && U.value && Be();
87
- }), _(() => {
88
- if (I.value) {
89
- let e = I.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
- I.value.addEventListener("scroll", n), n(), g(() => {
97
- I.value.removeEventListener("scroll", n);
98
- });
99
- }
100
- });
101
- function ze(e) {
102
- k.value = e, Re.value += 1;
103
- }
104
- function Be() {
105
- we.value || !q.value && !Y.value && (M.value.animation.type === "scroll" ? q.value = requestAnimationFrame(He) : q.value = requestAnimationFrame(Ue));
106
- }
107
- function Ve() {
108
- if (!I.value) return !1;
109
- let { scrollTop: e, scrollHeight: t, clientHeight: n } = I.value;
110
- return e + n >= t;
111
- }
112
- function He(e) {
113
- Y.value || (J.value ||= e, e - J.value >= M.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, I.value && I.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 = M.value.animation.speedMs / 4 / 1e3;
122
- t >= n && (K.value += n, K.value >= I.value.scrollHeight - I.value.clientHeight && (K.value = 0), I.value && I.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 || !F.value.showAnimation || (Y.value = !1, J.value = 0, Be());
133
- }
134
- function We() {
135
- M.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(() => M.value.animation.use, (e) => {
145
- e ? (F.value.showAnimation = !0, Z()) : (F.value.showAnimation = !1, X());
146
- }), w(() => M.value.animation.type, (e) => {
147
- X(), K.value = 0, W.value = 0, I.value.scrollTo({
148
- top: 0,
149
- behavior: "auto"
150
- }), Z();
151
- });
152
- let qe = c(() => M.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
- }), I.value && $.value.observe(I.value);
161
- }), g(() => {
162
- $.value && $.value.disconnect();
163
- });
164
- function Je() {
165
- Me();
166
- }
167
- function Ye() {
168
- F.value.showAnimation = !F.value.showAnimation, F.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]]]), i = r([[M.value.caption.text], [D.dataset.head.map((e) => [e])]].concat(t));
173
- e ? e(i) : n({
174
- csvContent: i,
175
- title: M.value.caption.text || "vue-ui-carousel-table"
176
- });
177
- });
178
- }
179
- async function Ze() {
180
- if (Te("copyAlt", {
181
- config: M.value,
182
- dataset: D.dataset
183
- }), !M.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(M.value.userOptions.callbacks.altCopy({
188
- config: M.value,
189
- dataset: D.dataset
190
- }));
191
- }
192
- return o({
193
- pauseAnimation: X,
194
- resumeAnimation: Z,
195
- toggleAnimation: Ye,
196
- generateCsv: Xe,
197
- generatePdf: Je,
198
- generateImage: Ne,
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: Pe,
208
- onMouseenter: n[5] ||= () => C(P)(!0),
209
- onMouseleave: n[6] ||= () => C(P)(!1)
210
- }, [
211
- d("div", {
212
- ref_key: "tableContainer",
213
- ref: I,
214
- id: `carousel-table_${O.value}`,
215
- style: h({
216
- height: C(Ae) || C(je) ? "auto" : `${Math.max(Le.value, Fe.value)}px`,
217
- containerType: "inline-size",
218
- position: "relative",
219
- overflow: "auto",
220
- fontFamily: M.value.fontFamily
221
- }),
222
- class: de({
223
- "vue-ui-responsive": V.value,
224
- "is-playing": M.value.scrollbar.hide || !Y.value && M.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
- }, [A.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
- ...M.value.style,
237
- border: `${M.value.border.size}px solid ${M.value.border.color}`,
238
- width: "100%",
239
- borderCollapse: "collapse",
240
- backgroundColor: M.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
- ...M.value.caption.style,
250
- fontFamily: "inherit",
251
- position: "sticky",
252
- top: 0,
253
- zIndex: 2,
254
- paddingTop: M.value.caption.padding.top + "px",
255
- paddingRight: M.value.caption.padding.right + "px",
256
- paddingBottom: M.value.caption.padding.bottom + "px",
257
- paddingLeft: M.value.caption.padding.left + "px",
258
- boxShadow: V.value ? M.value.thead.tr.style.boxShadow : "none",
259
- minHeight: "36px",
260
- display: t.$slots.caption || M.value.caption.text || M.value.userOptions.show ? "" : "none"
261
- })
262
- }, [f(S(M.value.caption.text && !t.$slots.caption ? M.value.caption.text : "") + " ", 1), x(t.$slots, "caption", {}, void 0, !0)], 12, _e),
263
- d("thead", {
264
- role: "rowgroup",
265
- style: h({
266
- ...M.value.thead.style,
267
- position: "sticky",
268
- top: `${t.$slots.caption || M.value.caption.text || M.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
- ...M.value.thead.tr.style,
277
- border: M.value.thead.tr.border.size ? `${M.value.thead.tr.border.size}px solid ${M.value.thead.tr.border.color}` : "none",
278
- boxShadow: V.value ? "none" : M.value.thead.tr.style.boxShadow
279
- }),
280
- height: `${M.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
- ...M.value.thead.tr.th.style,
288
- border: M.value.thead.tr.th.border.size ? `${M.value.thead.tr.th.border.size}px solid ${M.value.thead.tr.th.border.color}` : "none",
289
- paddingTop: M.value.thead.tr.th.padding.top + "px",
290
- paddingRight: M.value.thead.tr.th.padding.right + "px",
291
- paddingBottom: M.value.thead.tr.th.padding.bottom + "px",
292
- paddingLeft: M.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, r) => (v(), u("tr", { style: h({
305
- ...M.value.tbody.tr.style,
306
- border: `${M.value.tbody.tr.border.size}px solid ${M.value.tbody.tr.border.color}`,
307
- verticalAlign: "middle"
308
- }) }, [(v(!0), u(s, null, b(n, (n, i) => (v(), u("td", {
309
- role: "cell",
310
- "data-cell": e.dataset.head[i] || "",
311
- "aria-label": `${e.dataset.head[i]}: ${n}`,
312
- style: h({
313
- ...M.value.tbody.tr.td.style,
314
- border: `${M.value.tbody.tr.td.border.size}px solid ${M.value.tbody.tr.td.border.color}`,
315
- backgroundColor: C(ee)(M.value.tbody.tr.td.style.backgroundColor, r % 2 == 0 && M.value.tbody.tr.td.alternateColor ? M.value.tbody.tr.td.alternateOpacity * 100 : 100),
316
- paddingTop: M.value.tbody.tr.td.padding.top + "px",
317
- paddingRight: M.value.tbody.tr.td.padding.right + "px",
318
- paddingBottom: M.value.tbody.tr.td.padding.bottom + "px",
319
- paddingLeft: M.value.tbody.tr.td.padding.left + "px",
320
- verticalAlign: "middle"
321
- }),
322
- height: `${M.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: r,
326
- colIndex: i
327
- }), void 0, !0)], 12, be))), 256))], 4))), 256))], 512)) : l("", !0)
328
- ], 12, ge)) : l("", !0)], 46, he),
329
- A.value ? l("", !0) : (v(), oe(C(E), {
330
- key: 0,
331
- config: { type: "table" }
332
- })),
333
- M.value.userOptions.show && A.value && (C(Oe) || C(N)) ? (v(), oe(C(Se), {
334
- ref: "details",
335
- key: `user_option_${Re.value}`,
336
- backgroundColor: M.value.style.backgroundColor,
337
- color: M.value.style.color,
338
- isPrinting: C(Ae),
339
- isImaging: C(je),
340
- uid: O.value,
341
- hasTooltip: !1,
342
- hasPdf: M.value.userOptions.buttons.pdf,
343
- hasImg: M.value.userOptions.buttons.img,
344
- hasXls: M.value.userOptions.buttons.csv,
345
- hasTable: !1,
346
- hasLabel: !1,
347
- hasAnimation: M.value.userOptions.buttons.animation,
348
- isAnimation: !F.value.showAnimation,
349
- hasFullscreen: M.value.userOptions.buttons.fullscreen,
350
- hasAltCopy: M.value.userOptions.buttons.altCopy,
351
- isFullscreen: k.value,
352
- chartElement: Pe.value,
353
- position: M.value.userOptions.position,
354
- titles: { ...M.value.userOptions.buttonTitles },
355
- zIndex: 3,
356
- offsetX: 12,
357
- callbacks: M.value.userOptions.callbacks,
358
- printScale: M.value.userOptions.print.scale,
359
- isCursorPointer: De.value,
360
- onGeneratePdf: Je,
361
- onGenerateCsv: Xe,
362
- onGenerateImage: C(Ne),
363
- onToggleAnimation: Ye,
364
- onToggleFullscreen: ze,
365
- onCopyAlt: Ze,
366
- style: h({ visibility: C(Oe) ? C(N) ? "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
- ]), 1032, [
418
- "backgroundColor",
419
- "color",
420
- "isPrinting",
421
- "isImaging",
422
- "uid",
423
- "hasPdf",
424
- "hasImg",
425
- "hasXls",
426
- "hasAnimation",
427
- "isAnimation",
428
- "hasFullscreen",
429
- "hasAltCopy",
430
- "isFullscreen",
431
- "chartElement",
432
- "position",
433
- "titles",
434
- "callbacks",
435
- "printScale",
436
- "isCursorPointer",
437
- "onGenerateImage",
438
- "style"
439
- ])) : l("", !0),
440
- t.$slots.source ? (v(), u("div", xe, [x(t.$slots, "source", {}, void 0, !0)], 512)) : l("", !0)
441
- ], 544));
442
- }
443
- }, [["__scopeId", "data-v-e55be8b8"]]);
444
- //#endregion
445
- export { me as n, E as t };