vue-data-ui 3.25.2 → 3.25.4

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 (194) hide show
  1. package/dist/{Arrow-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
  3. package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
  4. package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
  5. package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
  6. package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
  7. package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
  8. package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
  9. package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
  11. package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
  12. package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
  13. package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
  14. package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
  15. package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
  16. package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
  17. package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
  18. package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.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-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
  91. package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
  92. package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
  93. package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
  94. package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
  95. package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
  96. package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
  97. package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.js} +2 -2
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
  103. package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
  104. package/dist/utils.js +2 -2
  105. package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
  106. package/dist/vue-data-ui.js +73 -73
  107. package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
  108. package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
  109. package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
  110. package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
  111. package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
  112. package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
  113. package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
  114. package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
  115. package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
  116. package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
  117. package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
  118. package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
  119. package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
  120. package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
  121. package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
  122. package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
  123. package/dist/vue-ui-donut-DfiocufT.js +2413 -0
  124. package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
  125. package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
  126. package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
  127. package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
  128. package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
  129. package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
  130. package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
  131. package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
  132. package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
  133. package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
  134. package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
  135. package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
  136. package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
  137. package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
  138. package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
  139. package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
  140. package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
  141. package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
  142. package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
  143. package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
  144. package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
  145. package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
  146. package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
  147. package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
  148. package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
  149. package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
  150. package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
  151. package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
  152. package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
  153. package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
  154. package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
  155. package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
  156. package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
  157. package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
  158. package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
  159. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
  160. package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
  161. package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
  162. package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
  163. package/dist/vue-ui-table-BQna1wL6.js +1352 -0
  164. package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
  165. package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
  166. package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
  167. package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
  168. package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
  169. package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
  170. package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
  171. package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
  172. package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
  173. package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
  174. package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
  175. package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
  176. package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
  177. package/package.json +1 -1
  178. package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
  179. package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
  180. package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
  181. package/dist/vue-ui-donut-BfehCl28.js +0 -2413
  182. package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
  183. package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
  184. package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
  185. package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
  186. package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
  187. package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
  188. package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
  189. package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
  190. package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
  191. package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
  192. package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
  193. package/dist/vue-ui-table-CftOhYTO.js +0 -1352
  194. package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
@@ -0,0 +1,467 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, Pt as r, Ut as i, nt as a, q as ee } from "./lib-Dql7cqyA.js";
3
+ import { n as te, t as ne } from "./useHints-Dq_w2E8B.js";
4
+ import { t as re } from "./useConfig-CyCVHo81.js";
5
+ import { t as ie } from "./usePrinter-DISD7q5m.js";
6
+ import { t as ae } from "./useNestedProp-Chvyfpl-.js";
7
+ import { t as oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
+ import { t as se } from "./useUserOptionState-DK-_1ddE.js";
9
+ import { t as ce } from "./usePrefersMotion-BC-CsqR1.js";
10
+ import { Fragment as o, computed as s, createBlock as le, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as ue, createTextVNode as d, defineAsyncComponent as de, guardReactiveProps as f, mergeProps as fe, nextTick as p, normalizeClass as pe, 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 me, toDisplayString as S, unref as C, useSlots as he, watch as w, withCtx as T } from "vue";
11
+ //#region src/components/vue-ui-carousel-table.vue
12
+ var ge = /* @__PURE__ */ e({ default: () => E }), _e = ["id"], ve = ["aria-labelledby"], ye = ["id"], be = ["height"], xe = ["id"], Se = [
13
+ "data-cell",
14
+ "aria-label",
15
+ "height"
16
+ ], Ce = {
17
+ key: 2,
18
+ ref: "source",
19
+ dir: "auto"
20
+ }, E = /*#__PURE__*/ oe({
21
+ __name: "vue-ui-carousel-table",
22
+ props: {
23
+ config: {
24
+ type: Object,
25
+ default() {
26
+ return {};
27
+ }
28
+ },
29
+ dataset: {
30
+ type: Object,
31
+ default() {
32
+ return {};
33
+ }
34
+ }
35
+ },
36
+ emits: ["copyAlt"],
37
+ setup(e, { expose: oe, emit: ge }) {
38
+ let E = de(() => import("./vue-ui-skeleton-zmbcOVEf.js").then((e) => e.n)), we = de(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), { vue_ui_carousel_table: Te } = re(), D = ce(), O = e, Ee = ge, k = y(ee()), De = y(!1), A = y(!!O.dataset), Oe = he();
39
+ _(() => {
40
+ ke();
41
+ });
42
+ let j = s({
43
+ get: () => Ne(),
44
+ set: (e) => e
45
+ }), M = s(() => j.value.debug);
46
+ _(() => {
47
+ Oe["chart-background"] && M.value && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
48
+ });
49
+ function ke() {
50
+ r(O.dataset) ? a({
51
+ componentName: "VueUiCarouselTable",
52
+ type: "dataset",
53
+ debug: M.value
54
+ }) : ((!O.dataset.head || r(O.dataset.head)) && (a({
55
+ componentName: "VueUiCarouselTable",
56
+ type: "datasetAttribute",
57
+ property: "head",
58
+ debug: M.value
59
+ }), A.value = !1), (!O.dataset.body || r(O.dataset.body)) && (a({
60
+ componentName: "VueUiCarouselTable",
61
+ type: "datasetAttribute",
62
+ property: "body",
63
+ debug: M.value
64
+ }), A.value = !1)), D.value && (j.value.userOptions.buttons.animation = !1);
65
+ }
66
+ te({
67
+ config: () => j.value,
68
+ dataset: () => O.dataset,
69
+ component: "VueUiCarouselTable",
70
+ rules: [ne.noHint]
71
+ });
72
+ let Ae = s(() => j.value.userOptions.useCursorPointer), { userOptionsVisible: N, setUserOptionsVisibility: je, keepUserOptionState: Me } = se({ config: j.value });
73
+ function Ne() {
74
+ return ae({
75
+ userConfig: O.config,
76
+ defaultConfig: Te
77
+ });
78
+ }
79
+ w(() => O.config, (e) => {
80
+ j.value = Ne(), N.value = !j.value.userOptions.showOnChartHover, ke();
81
+ }, { deep: !0 }), w(() => O.dataset, (e) => {
82
+ W();
83
+ }, { deep: !0 });
84
+ let { isPrinting: Pe, isImaging: Fe, generatePdf: Ie, generateImage: Le } = ie({
85
+ elementId: `carousel-table_${k.value}`,
86
+ fileName: j.value.caption.text || "vue-ui-carousel-table",
87
+ options: j.value.userOptions.print
88
+ }), P = y({ showAnimation: j.value.animation.use }), F = y(null), Re = y(null), I = y(null), L = y(null), R = y(0), z = y(0), B = y(!1), V = y(null), H = y(null), U = y(0);
89
+ function W() {
90
+ V.value && (H.value = {
91
+ elements: V.value.getElementsByTagName("tr"),
92
+ heights: Array.from(V.value.getElementsByTagName("tr")).map((e) => e.getBoundingClientRect().height)
93
+ });
94
+ }
95
+ _(W);
96
+ let ze = s(() => !H.value || !H.value.heights.length ? 0 : Math.max(...H.value.heights) + R.value + z.value), Be = s(() => O.dataset.body ? j.value.tbody.tr.visible <= O.dataset.body.length ? j.value.tbody.tr.visible : O.dataset.body.length : 0), Ve = s(() => (j.value.tbody.tr.height + j.value.tbody.tr.td.padding.top + j.value.tbody.tr.td.padding.bottom + j.value.tbody.tr.border.size * 2) * Be.value + R.value + z.value), G = y(0), K = y(null), q = y(0), J = y(!1), He = y(0);
97
+ _(() => {
98
+ I.value && (R.value = I.value.getBoundingClientRect().height), L.value && (z.value = L.value.getBoundingClientRect().height), P.value.showAnimation && H.value && We();
99
+ }), _(() => {
100
+ if (F.value) {
101
+ let e = F.value.querySelector("thead"), t = Array.from(V.value.querySelectorAll("tr"));
102
+ function n() {
103
+ let n = e.getBoundingClientRect().bottom;
104
+ t.forEach((e) => {
105
+ e.getBoundingClientRect().top < n ? e.style.visibility = "hidden" : e.style.visibility = "visible";
106
+ });
107
+ }
108
+ F.value.addEventListener("scroll", n), n(), g(() => {
109
+ F.value.removeEventListener("scroll", n);
110
+ });
111
+ }
112
+ });
113
+ function Ue(e) {
114
+ De.value = e, He.value += 1;
115
+ }
116
+ function We() {
117
+ D.value || !K.value && !J.value && (j.value.animation.type === "scroll" ? K.value = requestAnimationFrame(Ke) : K.value = requestAnimationFrame(qe));
118
+ }
119
+ function Ge() {
120
+ if (!F.value) return !1;
121
+ let { scrollTop: e, scrollHeight: t, clientHeight: n } = F.value;
122
+ return e + n >= t;
123
+ }
124
+ function Ke(e) {
125
+ J.value || (q.value ||= e, e - q.value >= j.value.animation.speedMs && (G.value += H.value.heights[U.value], (Ge() || U.value >= H.value.heights.length) && (G.value = 0, U.value = -1), U.value += 1, F.value && F.value.scrollTo({
126
+ top: G.value,
127
+ behavior: "smooth"
128
+ }), q.value = e), K.value = requestAnimationFrame(Ke));
129
+ }
130
+ function qe(e) {
131
+ if (J.value) return;
132
+ q.value ||= e;
133
+ let t = e - q.value, n = j.value.animation.speedMs / 4 / 1e3;
134
+ t >= n && (G.value += n, G.value >= F.value.scrollHeight - F.value.clientHeight && (G.value = 0), F.value && F.value.scrollTo({
135
+ top: G.value,
136
+ behavior: "auto"
137
+ }), q.value = e), K.value = requestAnimationFrame(qe);
138
+ }
139
+ function Y() {
140
+ J.value = !0, cancelAnimationFrame(K.value), K.value = null;
141
+ }
142
+ g(Y);
143
+ function X() {
144
+ !J.value || !P.value.showAnimation || (J.value = !1, q.value = 0, We());
145
+ }
146
+ function Je() {
147
+ j.value.animation.pauseOnHover && Y();
148
+ }
149
+ let Z = y(null);
150
+ function Ye() {
151
+ Y(), clearTimeout(Z.value);
152
+ }
153
+ function Xe() {
154
+ clearTimeout(Z.value), Z.value = setTimeout(X, 1e3);
155
+ }
156
+ w(() => j.value.animation.use, (e) => {
157
+ e ? (P.value.showAnimation = !0, X()) : (P.value.showAnimation = !1, Y());
158
+ }), w(() => j.value.animation.type, (e) => {
159
+ Y(), G.value = 0, U.value = 0, F.value.scrollTo({
160
+ top: 0,
161
+ behavior: "auto"
162
+ }), X();
163
+ });
164
+ let Ze = s(() => j.value.responsiveBreakpoint), Q = me(null);
165
+ _(() => {
166
+ Q.value = new ResizeObserver((e) => {
167
+ e.forEach((e) => {
168
+ B.value = e.contentRect.width < Ze.value;
169
+ }), R.value = I.value ? I.value.getBoundingClientRect().height : 0, z.value = L.value ? L.value.getBoundingClientRect().height : 0, U.value = 0, p(() => {
170
+ Y(), q.value = 0, G.value = 0, W(), X();
171
+ });
172
+ }), F.value && Q.value.observe(F.value);
173
+ }), g(() => {
174
+ Q.value && Q.value.disconnect();
175
+ });
176
+ function Qe() {
177
+ Ie();
178
+ }
179
+ function $e() {
180
+ P.value.showAnimation = !P.value.showAnimation, P.value.showAnimation ? X() : Y();
181
+ }
182
+ function et(e = null) {
183
+ p(() => {
184
+ let r = O.dataset.head.map((e, t) => [[O.dataset.body[t]]]), i = [[j.value.caption.text], [O.dataset.head.map((e) => [e])]].concat(r), a = n(i);
185
+ e ? e(a) : t({
186
+ csvContent: a,
187
+ title: j.value.caption.text || "vue-ui-carousel-table"
188
+ });
189
+ });
190
+ }
191
+ async function $() {
192
+ if (Ee("copyAlt", {
193
+ config: j.value,
194
+ dataset: O.dataset
195
+ }), !j.value.userOptions.callbacks.altCopy) {
196
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
197
+ return;
198
+ }
199
+ await Promise.resolve(j.value.userOptions.callbacks.altCopy({
200
+ config: j.value,
201
+ dataset: O.dataset
202
+ }));
203
+ }
204
+ return oe({
205
+ pauseAnimation: Y,
206
+ resumeAnimation: X,
207
+ toggleAnimation: $e,
208
+ generateCsv: et,
209
+ generatePdf: Qe,
210
+ generateImage: Le,
211
+ copyAlt: $
212
+ }), (t, n) => (v(), l("div", {
213
+ class: "vue-data-ui-component vue-ui-carousel-table",
214
+ style: {
215
+ position: "relative",
216
+ overflow: "visible"
217
+ },
218
+ ref_key: "chartContainer",
219
+ ref: Re,
220
+ onMouseenter: n[5] ||= () => C(je)(!0),
221
+ onMouseleave: n[6] ||= () => C(je)(!1)
222
+ }, [
223
+ u("div", {
224
+ ref_key: "tableContainer",
225
+ ref: F,
226
+ id: `carousel-table_${k.value}`,
227
+ style: h({
228
+ height: C(Pe) || C(Fe) ? "auto" : `${Math.max(Ve.value, ze.value)}px`,
229
+ containerType: "inline-size",
230
+ position: "relative",
231
+ overflow: "auto",
232
+ fontFamily: j.value.fontFamily
233
+ }),
234
+ class: pe({
235
+ "vue-ui-responsive": B.value,
236
+ "is-playing": j.value.scrollbar.hide || !J.value && j.value.scrollbar.showOnlyOnHover
237
+ }),
238
+ onMouseover: n[0] ||= (e) => Je(),
239
+ onMouseleave: n[1] ||= (e) => X(),
240
+ onTouchstart: n[2] ||= (e) => Ye(),
241
+ onTouchend: n[3] ||= (e) => Xe(),
242
+ onTouchcancel: n[4] ||= (e) => Xe()
243
+ }, [A.value ? (v(), l("table", {
244
+ key: 0,
245
+ class: "vue-data-ui-carousel-table",
246
+ "aria-labelledby": `carousel-caption-${k.value}`,
247
+ style: h({
248
+ ...j.value.style,
249
+ border: `${j.value.border.size}px solid ${j.value.border.color}`,
250
+ width: "100%",
251
+ borderCollapse: "collapse",
252
+ backgroundColor: j.value.tbody.backgroundColor
253
+ })
254
+ }, [
255
+ u("caption", {
256
+ ref_key: "caption",
257
+ ref: I,
258
+ class: "vue-data-ui-carousel-table-caption",
259
+ id: `carousel-caption-${k.value}`,
260
+ style: h({
261
+ ...j.value.caption.style,
262
+ fontFamily: "inherit",
263
+ position: "sticky",
264
+ top: 0,
265
+ zIndex: 2,
266
+ paddingTop: j.value.caption.padding.top + "px",
267
+ paddingRight: j.value.caption.padding.right + "px",
268
+ paddingBottom: j.value.caption.padding.bottom + "px",
269
+ paddingLeft: j.value.caption.padding.left + "px",
270
+ boxShadow: B.value ? j.value.thead.tr.style.boxShadow : "none",
271
+ minHeight: "36px",
272
+ display: t.$slots.caption || j.value.caption.text || j.value.userOptions.show ? "" : "none"
273
+ })
274
+ }, [d(S(j.value.caption.text && !t.$slots.caption ? j.value.caption.text : "") + " ", 1), x(t.$slots, "caption", {}, void 0, !0)], 12, ye),
275
+ u("thead", {
276
+ role: "rowgroup",
277
+ style: h({
278
+ ...j.value.thead.style,
279
+ position: "sticky",
280
+ top: `${t.$slots.caption || j.value.caption.text || j.value.userOptions.show ? R.value : 0}px`,
281
+ zIndex: 1
282
+ })
283
+ }, [u("tr", {
284
+ ref_key: "tableRow",
285
+ ref: L,
286
+ role: "row",
287
+ style: h({
288
+ ...j.value.thead.tr.style,
289
+ border: j.value.thead.tr.border.size ? `${j.value.thead.tr.border.size}px solid ${j.value.thead.tr.border.color}` : "none",
290
+ boxShadow: B.value ? "none" : j.value.thead.tr.style.boxShadow
291
+ }),
292
+ height: `${j.value.thead.tr.height}px`
293
+ }, [(v(!0), l(o, null, b(e.dataset.head, (e, n) => (v(), l("th", {
294
+ role: "cell",
295
+ key: `th_${n}`,
296
+ id: `col-${n}`,
297
+ scope: "col",
298
+ style: h({
299
+ ...j.value.thead.tr.th.style,
300
+ border: j.value.thead.tr.th.border.size ? `${j.value.thead.tr.th.border.size}px solid ${j.value.thead.tr.th.border.color}` : "none",
301
+ paddingTop: j.value.thead.tr.th.padding.top + "px",
302
+ paddingRight: j.value.thead.tr.th.padding.right + "px",
303
+ paddingBottom: j.value.thead.tr.th.padding.bottom + "px",
304
+ paddingLeft: j.value.thead.tr.th.padding.left + "px"
305
+ })
306
+ }, [d(S(t.$slots.th ? "" : e) + " ", 1), x(t.$slots, "th", fe({ ref_for: !0 }, {
307
+ th: e,
308
+ colIndex: n
309
+ }), void 0, !0)], 12, xe))), 128))], 12, be)], 4),
310
+ e.dataset.body && e.dataset.head ? (v(), l("tbody", {
311
+ key: 0,
312
+ ref_key: "tbody",
313
+ ref: V,
314
+ "aria-live": "polite",
315
+ style: { clipPath: "inset(0,0,0,0)" }
316
+ }, [(v(!0), l(o, null, b(e.dataset.body, (n, r) => (v(), l("tr", { style: h({
317
+ ...j.value.tbody.tr.style,
318
+ border: `${j.value.tbody.tr.border.size}px solid ${j.value.tbody.tr.border.color}`,
319
+ verticalAlign: "middle"
320
+ }) }, [(v(!0), l(o, null, b(n, (n, a) => (v(), l("td", {
321
+ role: "cell",
322
+ "data-cell": e.dataset.head[a] || "",
323
+ "aria-label": `${e.dataset.head[a]}: ${n}`,
324
+ style: h({
325
+ ...j.value.tbody.tr.td.style,
326
+ border: `${j.value.tbody.tr.td.border.size}px solid ${j.value.tbody.tr.td.border.color}`,
327
+ backgroundColor: C(i)(j.value.tbody.tr.td.style.backgroundColor, r % 2 == 0 && j.value.tbody.tr.td.alternateColor ? j.value.tbody.tr.td.alternateOpacity * 100 : 100),
328
+ paddingTop: j.value.tbody.tr.td.padding.top + "px",
329
+ paddingRight: j.value.tbody.tr.td.padding.right + "px",
330
+ paddingBottom: j.value.tbody.tr.td.padding.bottom + "px",
331
+ paddingLeft: j.value.tbody.tr.td.padding.left + "px",
332
+ verticalAlign: "middle"
333
+ }),
334
+ height: `${j.value.tbody.tr.height}px`
335
+ }, [d(S(t.$slots.td ? "" : n) + " ", 1), x(t.$slots, "td", fe({ ref_for: !0 }, {
336
+ td: n,
337
+ rowIndex: r,
338
+ colIndex: a
339
+ }), void 0, !0)], 12, Se))), 256))], 4))), 256))], 512)) : c("", !0)
340
+ ], 12, ve)) : c("", !0)], 46, _e),
341
+ A.value ? c("", !0) : (v(), le(C(E), {
342
+ key: 0,
343
+ config: { type: "table" }
344
+ })),
345
+ j.value.userOptions.show && A.value && (C(Me) || C(N)) ? (v(), le(C(we), {
346
+ ref: "details",
347
+ key: `user_option_${He.value}`,
348
+ backgroundColor: j.value.style.backgroundColor,
349
+ color: j.value.style.color,
350
+ isPrinting: C(Pe),
351
+ isImaging: C(Fe),
352
+ uid: k.value,
353
+ hasTooltip: !1,
354
+ hasPdf: j.value.userOptions.buttons.pdf,
355
+ hasImg: j.value.userOptions.buttons.img,
356
+ hasXls: j.value.userOptions.buttons.csv,
357
+ hasTable: !1,
358
+ hasLabel: !1,
359
+ hasAnimation: j.value.userOptions.buttons.animation,
360
+ isAnimation: !P.value.showAnimation,
361
+ hasFullscreen: j.value.userOptions.buttons.fullscreen,
362
+ hasAltCopy: j.value.userOptions.buttons.altCopy,
363
+ isFullscreen: De.value,
364
+ chartElement: Re.value,
365
+ position: j.value.userOptions.position,
366
+ titles: { ...j.value.userOptions.buttonTitles },
367
+ zIndex: 3,
368
+ offsetX: 12,
369
+ callbacks: j.value.userOptions.callbacks,
370
+ printScale: j.value.userOptions.print.scale,
371
+ isCursorPointer: Ae.value,
372
+ onGeneratePdf: Qe,
373
+ onGenerateCsv: et,
374
+ onGenerateImage: C(Le),
375
+ onToggleAnimation: $e,
376
+ onToggleFullscreen: Ue,
377
+ onCopyAlt: $,
378
+ style: h({ visibility: C(Me) ? C(N) ? "visible" : "hidden" : "visible" })
379
+ }, ue({ _: 2 }, [
380
+ t.$slots.menuIcon ? {
381
+ name: "menuIcon",
382
+ fn: T(({ isOpen: e, color: n }) => [x(t.$slots, "menuIcon", m(f({
383
+ isOpen: e,
384
+ color: n
385
+ })), void 0, !0)]),
386
+ key: "0"
387
+ } : void 0,
388
+ t.$slots.optionPdf ? {
389
+ name: "optionPdf",
390
+ fn: T(() => [x(t.$slots, "optionPdf", {}, void 0, !0)]),
391
+ key: "1"
392
+ } : void 0,
393
+ t.$slots.optionCsv ? {
394
+ name: "optionCsv",
395
+ fn: T(() => [x(t.$slots, "optionCsv", {}, void 0, !0)]),
396
+ key: "2"
397
+ } : void 0,
398
+ t.$slots.optionImg ? {
399
+ name: "optionImg",
400
+ fn: T(() => [x(t.$slots, "optionImg", {}, void 0, !0)]),
401
+ key: "3"
402
+ } : void 0,
403
+ t.$slots.optionSvg ? {
404
+ name: "optionSvg",
405
+ fn: T(() => [x(t.$slots, "optionSvg", {}, void 0, !0)]),
406
+ key: "4"
407
+ } : void 0,
408
+ t.$slots.optionAnimation ? {
409
+ name: "optionAnimation",
410
+ fn: T(({ toggleAnimation: e, isAnimated: n }) => [x(t.$slots, "optionAnimation", m(f({
411
+ toggleAnimation: e,
412
+ isAnimated: n
413
+ })), void 0, !0)]),
414
+ key: "5"
415
+ } : void 0,
416
+ t.$slots.optionFullscreen ? {
417
+ name: "optionFullscreen",
418
+ fn: T(({ toggleFullscreen: e, isFullscreen: n }) => [x(t.$slots, "optionFullscreen", m(f({
419
+ toggleFullscreen: e,
420
+ isFullscreen: n
421
+ })), void 0, !0)]),
422
+ key: "6"
423
+ } : void 0,
424
+ t.$slots.optionAltCopy ? {
425
+ name: "optionAltCopy",
426
+ fn: T(({ altCopy: e }) => [x(t.$slots, "optionAltCopy", m(f({ altCopy: e })), void 0, !0)]),
427
+ key: "7"
428
+ } : void 0,
429
+ t.$slots["custom-menu-before"] ? {
430
+ name: "custom-menu-before",
431
+ fn: T(() => [x(t.$slots, "custom-menu-before", {}, void 0, !0)]),
432
+ key: "8"
433
+ } : void 0,
434
+ t.$slots["custom-menu-after"] ? {
435
+ name: "custom-menu-after",
436
+ fn: T(() => [x(t.$slots, "custom-menu-after", {}, void 0, !0)]),
437
+ key: "9"
438
+ } : void 0
439
+ ]), 1032, [
440
+ "backgroundColor",
441
+ "color",
442
+ "isPrinting",
443
+ "isImaging",
444
+ "uid",
445
+ "hasPdf",
446
+ "hasImg",
447
+ "hasXls",
448
+ "hasAnimation",
449
+ "isAnimation",
450
+ "hasFullscreen",
451
+ "hasAltCopy",
452
+ "isFullscreen",
453
+ "chartElement",
454
+ "position",
455
+ "titles",
456
+ "callbacks",
457
+ "printScale",
458
+ "isCursorPointer",
459
+ "onGenerateImage",
460
+ "style"
461
+ ])) : c("", !0),
462
+ t.$slots.source ? (v(), l("div", Ce, [x(t.$slots, "source", {}, void 0, !0)], 512)) : c("", !0)
463
+ ], 544));
464
+ }
465
+ }, [["__scopeId", "data-v-42d3302a"]]);
466
+ //#endregion
467
+ export { ge as n, E as t };