vue-data-ui 3.23.1 → 3.23.2

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 (171) hide show
  1. package/dist/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-accordion.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-annotator.js +1 -1
  6. package/dist/components/vue-ui-bullet.js +1 -1
  7. package/dist/components/vue-ui-bump.js +1 -1
  8. package/dist/components/vue-ui-candlestick.js +1 -1
  9. package/dist/components/vue-ui-carousel-table.js +1 -1
  10. package/dist/components/vue-ui-chestnut.js +1 -1
  11. package/dist/components/vue-ui-chord.js +1 -1
  12. package/dist/components/vue-ui-circle-pack.js +1 -1
  13. package/dist/components/vue-ui-cursor.js +1 -1
  14. package/dist/components/vue-ui-dag.js +1 -1
  15. package/dist/components/vue-ui-dashboard.js +1 -1
  16. package/dist/components/vue-ui-digits.js +1 -1
  17. package/dist/components/vue-ui-donut-evolution.js +1 -1
  18. package/dist/components/vue-ui-donut.js +1 -1
  19. package/dist/components/vue-ui-dumbbell.js +1 -1
  20. package/dist/components/vue-ui-flow.js +1 -1
  21. package/dist/components/vue-ui-funnel.js +1 -1
  22. package/dist/components/vue-ui-galaxy.js +1 -1
  23. package/dist/components/vue-ui-gauge.js +1 -1
  24. package/dist/components/vue-ui-geo.js +1 -1
  25. package/dist/components/vue-ui-gizmo.js +1 -1
  26. package/dist/components/vue-ui-heatmap.js +1 -1
  27. package/dist/components/vue-ui-hill.js +1 -1
  28. package/dist/components/vue-ui-history-plot.js +1 -1
  29. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  30. package/dist/components/vue-ui-kpi.js +1 -1
  31. package/dist/components/vue-ui-mini-loader.js +1 -1
  32. package/dist/components/vue-ui-molecule.js +1 -1
  33. package/dist/components/vue-ui-mood-radar.js +1 -1
  34. package/dist/components/vue-ui-nested-donuts.js +1 -1
  35. package/dist/components/vue-ui-onion.js +1 -1
  36. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  37. package/dist/components/vue-ui-quadrant.js +1 -1
  38. package/dist/components/vue-ui-quick-chart.js +1 -1
  39. package/dist/components/vue-ui-radar.js +1 -1
  40. package/dist/components/vue-ui-rating.js +1 -1
  41. package/dist/components/vue-ui-relation-circle.js +1 -1
  42. package/dist/components/vue-ui-ridgeline.js +1 -1
  43. package/dist/components/vue-ui-rings.js +1 -1
  44. package/dist/components/vue-ui-scatter.js +1 -1
  45. package/dist/components/vue-ui-skeleton.js +1 -1
  46. package/dist/components/vue-ui-smiley.js +1 -1
  47. package/dist/components/vue-ui-spark-trend.js +1 -1
  48. package/dist/components/vue-ui-sparkbar.js +1 -1
  49. package/dist/components/vue-ui-sparkgauge.js +1 -1
  50. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  51. package/dist/components/vue-ui-sparkline.js +1 -1
  52. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  53. package/dist/components/vue-ui-stackbar.js +1 -1
  54. package/dist/components/vue-ui-stackline.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
  71. package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
  72. package/dist/ssr/vue-ui-donut.js +1 -1
  73. package/dist/ssr/vue-ui-xy.js +1 -1
  74. package/dist/ssr.js +2 -2
  75. package/dist/style.css +1 -1
  76. package/dist/types/vue-data-ui.d.ts +6 -0
  77. package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
  78. package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
  79. package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
  80. package/dist/utils.js +1 -1
  81. package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
  82. package/dist/vue-data-ui.js +69 -69
  83. package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
  84. package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
  85. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  86. package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
  87. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  88. package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
  89. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  90. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  91. package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
  92. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  93. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  94. package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
  95. package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
  96. package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
  97. package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
  98. package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
  99. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  100. package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
  101. package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
  102. package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
  103. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  104. package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
  105. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  106. package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
  107. package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
  108. package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
  109. package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
  110. package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
  111. package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
  112. package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
  113. package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
  114. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  115. package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
  116. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  117. package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
  118. package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
  119. package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
  120. package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
  121. package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
  122. package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
  123. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  124. package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
  125. package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
  126. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  127. package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
  128. package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
  129. package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
  130. package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  131. package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
  132. package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
  133. package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
  134. package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
  135. package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
  136. package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
  137. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  138. package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
  139. package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
  140. package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
  141. package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  142. package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
  143. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  144. package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
  145. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  146. package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
  147. package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
  148. package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
  149. package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
  150. package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
  151. package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
  152. package/package.json +1 -1
  153. package/dist/Slicer-CIk57nL4.js +0 -1163
  154. package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
  155. package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
  156. package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
  157. package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
  158. package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
  159. package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
  160. package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
  161. package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
  162. package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
  163. package/dist/vue-ui-gauge-ByE_txav.js +0 -953
  164. package/dist/vue-ui-hill-BT183G-_.js +0 -1768
  165. package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
  166. package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
  167. package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
  168. package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
  169. package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
  170. package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
  171. package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
@@ -0,0 +1,467 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, Bt as n, D as r, jt as i, q as a, tt as o } from "./lib-Bttd6u5E.js";
3
+ import { n as ee, t as te } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ne } from "./useConfig-DlNpz6P8.js";
5
+ import { t as re } from "./usePrinter-DN5bYhTG.js";
6
+ import { t as ie } from "./useNestedProp-vPNvh7rV.js";
7
+ import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
+ import { t as oe } from "./useUserOptionState-DK-_1ddE.js";
9
+ import { t as se } from "./usePrefersMotion-BC-CsqR1.js";
10
+ import { Fragment as s, computed as c, createBlock as ce, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as le, createTextVNode as f, defineAsyncComponent as ue, guardReactiveProps as p, mergeProps as de, nextTick as fe, 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__*/ ae({
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: ae, emit: ge }) {
38
+ let E = ue(() => import("./vue-ui-skeleton-DwKxd7fk.js").then((e) => e.n)), we = ue(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), { vue_ui_carousel_table: Te } = ne(), Ee = se(), D = e, De = ge, O = y(a()), Oe = y(!1), k = y(!!D.dataset), ke = he();
39
+ _(() => {
40
+ Ae();
41
+ });
42
+ let A = c({
43
+ get: () => Pe(),
44
+ set: (e) => e
45
+ }), j = c(() => A.value.debug);
46
+ _(() => {
47
+ ke["chart-background"] && j.value && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
48
+ });
49
+ function Ae() {
50
+ i(D.dataset) ? o({
51
+ componentName: "VueUiCarouselTable",
52
+ type: "dataset",
53
+ debug: j.value
54
+ }) : ((!D.dataset.head || i(D.dataset.head)) && (o({
55
+ componentName: "VueUiCarouselTable",
56
+ type: "datasetAttribute",
57
+ property: "head",
58
+ debug: j.value
59
+ }), k.value = !1), (!D.dataset.body || i(D.dataset.body)) && (o({
60
+ componentName: "VueUiCarouselTable",
61
+ type: "datasetAttribute",
62
+ property: "body",
63
+ debug: j.value
64
+ }), k.value = !1)), Ee.value && (A.value.userOptions.buttons.animation = !1);
65
+ }
66
+ ee({
67
+ config: () => A.value,
68
+ dataset: () => D.dataset,
69
+ component: "VueUiCarouselTable",
70
+ rules: [te.noHint]
71
+ });
72
+ let je = c(() => A.value.userOptions.useCursorPointer), { userOptionsVisible: M, setUserOptionsVisibility: Me, keepUserOptionState: Ne } = oe({ config: A.value });
73
+ function Pe() {
74
+ return ie({
75
+ userConfig: D.config,
76
+ defaultConfig: Te
77
+ });
78
+ }
79
+ w(() => D.config, (e) => {
80
+ A.value = Pe(), M.value = !A.value.userOptions.showOnChartHover, Ae();
81
+ }, { deep: !0 }), w(() => D.dataset, (e) => {
82
+ U();
83
+ }, { deep: !0 });
84
+ let { isPrinting: Fe, isImaging: Ie, generatePdf: Le, generateImage: Re } = re({
85
+ elementId: `carousel-table_${O.value}`,
86
+ fileName: A.value.caption.text || "vue-ui-carousel-table",
87
+ options: A.value.userOptions.print
88
+ }), N = y({ showAnimation: A.value.animation.use }), P = y(null), ze = y(null), F = y(null), I = y(null), L = y(0), R = y(0), z = y(!1), B = y(null), V = y(null), H = y(0);
89
+ function U() {
90
+ B.value && (V.value = {
91
+ elements: B.value.getElementsByTagName("tr"),
92
+ heights: Array.from(B.value.getElementsByTagName("tr")).map((e) => e.getBoundingClientRect().height)
93
+ });
94
+ }
95
+ _(U);
96
+ let Be = c(() => !V.value || !V.value.heights.length ? 0 : Math.max(...V.value.heights) + L.value + R.value), Ve = c(() => D.dataset.body ? A.value.tbody.tr.visible <= D.dataset.body.length ? A.value.tbody.tr.visible : D.dataset.body.length : 0), He = 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) * Ve.value + L.value + R.value), W = y(0), G = y(null), K = y(0), q = y(!1), Ue = y(0);
97
+ _(() => {
98
+ F.value && (L.value = F.value.getBoundingClientRect().height), I.value && (R.value = I.value.getBoundingClientRect().height), N.value.showAnimation && V.value && Ge();
99
+ }), _(() => {
100
+ if (P.value) {
101
+ let e = P.value.querySelector("thead"), t = Array.from(B.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
+ P.value.addEventListener("scroll", n), n(), g(() => {
109
+ P.value.removeEventListener("scroll", n);
110
+ });
111
+ }
112
+ });
113
+ function We(e) {
114
+ Oe.value = e, Ue.value += 1;
115
+ }
116
+ function Ge() {
117
+ Ee.value || !G.value && !q.value && (A.value.animation.type === "scroll" ? G.value = requestAnimationFrame(J) : G.value = requestAnimationFrame(qe));
118
+ }
119
+ function Ke() {
120
+ if (!P.value) return !1;
121
+ let { scrollTop: e, scrollHeight: t, clientHeight: n } = P.value;
122
+ return e + n >= t;
123
+ }
124
+ function J(e) {
125
+ q.value || (K.value ||= e, e - K.value >= A.value.animation.speedMs && (W.value += V.value.heights[H.value], (Ke() || H.value >= V.value.heights.length) && (W.value = 0, H.value = -1), H.value += 1, P.value && P.value.scrollTo({
126
+ top: W.value,
127
+ behavior: "smooth"
128
+ }), K.value = e), G.value = requestAnimationFrame(J));
129
+ }
130
+ function qe(e) {
131
+ if (q.value) return;
132
+ K.value ||= e;
133
+ let t = e - K.value, n = A.value.animation.speedMs / 4 / 1e3;
134
+ t >= n && (W.value += n, W.value >= P.value.scrollHeight - P.value.clientHeight && (W.value = 0), P.value && P.value.scrollTo({
135
+ top: W.value,
136
+ behavior: "auto"
137
+ }), K.value = e), G.value = requestAnimationFrame(qe);
138
+ }
139
+ function Y() {
140
+ q.value = !0, cancelAnimationFrame(G.value), G.value = null;
141
+ }
142
+ g(Y);
143
+ function X() {
144
+ !q.value || !N.value.showAnimation || (q.value = !1, K.value = 0, Ge());
145
+ }
146
+ function Je() {
147
+ A.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(() => A.value.animation.use, (e) => {
157
+ e ? (N.value.showAnimation = !0, X()) : (N.value.showAnimation = !1, Y());
158
+ }), w(() => A.value.animation.type, (e) => {
159
+ Y(), W.value = 0, H.value = 0, P.value.scrollTo({
160
+ top: 0,
161
+ behavior: "auto"
162
+ }), X();
163
+ });
164
+ let Ze = c(() => A.value.responsiveBreakpoint), Q = me(null);
165
+ _(() => {
166
+ Q.value = new ResizeObserver((e) => {
167
+ e.forEach((e) => {
168
+ z.value = e.contentRect.width < Ze.value;
169
+ }), L.value = F.value ? F.value.getBoundingClientRect().height : 0, R.value = I.value ? I.value.getBoundingClientRect().height : 0, H.value = 0, fe(() => {
170
+ Y(), K.value = 0, W.value = 0, U(), X();
171
+ });
172
+ }), P.value && Q.value.observe(P.value);
173
+ }), g(() => {
174
+ Q.value && Q.value.disconnect();
175
+ });
176
+ function Qe() {
177
+ Le();
178
+ }
179
+ function $e() {
180
+ N.value.showAnimation = !N.value.showAnimation, N.value.showAnimation ? X() : Y();
181
+ }
182
+ function et(e = null) {
183
+ fe(() => {
184
+ let n = D.dataset.head.map((e, t) => [[D.dataset.body[t]]]), i = [[A.value.caption.text], [D.dataset.head.map((e) => [e])]].concat(n), a = r(i);
185
+ e ? e(a) : t({
186
+ csvContent: a,
187
+ title: A.value.caption.text || "vue-ui-carousel-table"
188
+ });
189
+ });
190
+ }
191
+ async function $() {
192
+ if (De("copyAlt", {
193
+ config: A.value,
194
+ dataset: D.dataset
195
+ }), !A.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(A.value.userOptions.callbacks.altCopy({
200
+ config: A.value,
201
+ dataset: D.dataset
202
+ }));
203
+ }
204
+ return ae({
205
+ pauseAnimation: Y,
206
+ resumeAnimation: X,
207
+ toggleAnimation: $e,
208
+ generateCsv: et,
209
+ generatePdf: Qe,
210
+ generateImage: Re,
211
+ copyAlt: $
212
+ }), (t, r) => (v(), u("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: ze,
220
+ onMouseenter: r[5] ||= () => C(Me)(!0),
221
+ onMouseleave: r[6] ||= () => C(Me)(!1)
222
+ }, [
223
+ d("div", {
224
+ ref_key: "tableContainer",
225
+ ref: P,
226
+ id: `carousel-table_${O.value}`,
227
+ style: h({
228
+ height: C(Fe) || C(Ie) ? "auto" : `${Math.max(He.value, Be.value)}px`,
229
+ containerType: "inline-size",
230
+ position: "relative",
231
+ overflow: "auto",
232
+ fontFamily: A.value.fontFamily
233
+ }),
234
+ class: pe({
235
+ "vue-ui-responsive": z.value,
236
+ "is-playing": A.value.scrollbar.hide || !q.value && A.value.scrollbar.showOnlyOnHover
237
+ }),
238
+ onMouseover: r[0] ||= (e) => Je(),
239
+ onMouseleave: r[1] ||= (e) => X(),
240
+ onTouchstart: r[2] ||= (e) => Ye(),
241
+ onTouchend: r[3] ||= (e) => Xe(),
242
+ onTouchcancel: r[4] ||= (e) => Xe()
243
+ }, [k.value ? (v(), u("table", {
244
+ key: 0,
245
+ class: "vue-data-ui-carousel-table",
246
+ "aria-labelledby": `carousel-caption-${O.value}`,
247
+ style: h({
248
+ ...A.value.style,
249
+ border: `${A.value.border.size}px solid ${A.value.border.color}`,
250
+ width: "100%",
251
+ borderCollapse: "collapse",
252
+ backgroundColor: A.value.tbody.backgroundColor
253
+ })
254
+ }, [
255
+ d("caption", {
256
+ ref_key: "caption",
257
+ ref: F,
258
+ class: "vue-data-ui-carousel-table-caption",
259
+ id: `carousel-caption-${O.value}`,
260
+ style: h({
261
+ ...A.value.caption.style,
262
+ fontFamily: "inherit",
263
+ position: "sticky",
264
+ top: 0,
265
+ zIndex: 2,
266
+ paddingTop: A.value.caption.padding.top + "px",
267
+ paddingRight: A.value.caption.padding.right + "px",
268
+ paddingBottom: A.value.caption.padding.bottom + "px",
269
+ paddingLeft: A.value.caption.padding.left + "px",
270
+ boxShadow: z.value ? A.value.thead.tr.style.boxShadow : "none",
271
+ minHeight: "36px",
272
+ display: t.$slots.caption || A.value.caption.text || A.value.userOptions.show ? "" : "none"
273
+ })
274
+ }, [f(S(A.value.caption.text && !t.$slots.caption ? A.value.caption.text : "") + " ", 1), x(t.$slots, "caption", {}, void 0, !0)], 12, ye),
275
+ d("thead", {
276
+ role: "rowgroup",
277
+ style: h({
278
+ ...A.value.thead.style,
279
+ position: "sticky",
280
+ top: `${t.$slots.caption || A.value.caption.text || A.value.userOptions.show ? L.value : 0}px`,
281
+ zIndex: 1
282
+ })
283
+ }, [d("tr", {
284
+ ref_key: "tableRow",
285
+ ref: I,
286
+ role: "row",
287
+ style: h({
288
+ ...A.value.thead.tr.style,
289
+ border: A.value.thead.tr.border.size ? `${A.value.thead.tr.border.size}px solid ${A.value.thead.tr.border.color}` : "none",
290
+ boxShadow: z.value ? "none" : A.value.thead.tr.style.boxShadow
291
+ }),
292
+ height: `${A.value.thead.tr.height}px`
293
+ }, [(v(!0), u(s, null, b(e.dataset.head, (e, n) => (v(), u("th", {
294
+ role: "cell",
295
+ key: `th_${n}`,
296
+ id: `col-${n}`,
297
+ scope: "col",
298
+ style: h({
299
+ ...A.value.thead.tr.th.style,
300
+ 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",
301
+ paddingTop: A.value.thead.tr.th.padding.top + "px",
302
+ paddingRight: A.value.thead.tr.th.padding.right + "px",
303
+ paddingBottom: A.value.thead.tr.th.padding.bottom + "px",
304
+ paddingLeft: A.value.thead.tr.th.padding.left + "px"
305
+ })
306
+ }, [f(S(t.$slots.th ? "" : e) + " ", 1), x(t.$slots, "th", de({ 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(), u("tbody", {
311
+ key: 0,
312
+ ref_key: "tbody",
313
+ ref: B,
314
+ "aria-live": "polite",
315
+ style: { clipPath: "inset(0,0,0,0)" }
316
+ }, [(v(!0), u(s, null, b(e.dataset.body, (r, i) => (v(), u("tr", { style: h({
317
+ ...A.value.tbody.tr.style,
318
+ border: `${A.value.tbody.tr.border.size}px solid ${A.value.tbody.tr.border.color}`,
319
+ verticalAlign: "middle"
320
+ }) }, [(v(!0), u(s, null, b(r, (r, a) => (v(), u("td", {
321
+ role: "cell",
322
+ "data-cell": e.dataset.head[a] || "",
323
+ "aria-label": `${e.dataset.head[a]}: ${r}`,
324
+ style: h({
325
+ ...A.value.tbody.tr.td.style,
326
+ border: `${A.value.tbody.tr.td.border.size}px solid ${A.value.tbody.tr.td.border.color}`,
327
+ backgroundColor: C(n)(A.value.tbody.tr.td.style.backgroundColor, i % 2 == 0 && A.value.tbody.tr.td.alternateColor ? A.value.tbody.tr.td.alternateOpacity * 100 : 100),
328
+ paddingTop: A.value.tbody.tr.td.padding.top + "px",
329
+ paddingRight: A.value.tbody.tr.td.padding.right + "px",
330
+ paddingBottom: A.value.tbody.tr.td.padding.bottom + "px",
331
+ paddingLeft: A.value.tbody.tr.td.padding.left + "px",
332
+ verticalAlign: "middle"
333
+ }),
334
+ height: `${A.value.tbody.tr.height}px`
335
+ }, [f(S(t.$slots.td ? "" : r) + " ", 1), x(t.$slots, "td", de({ ref_for: !0 }, {
336
+ td: r,
337
+ rowIndex: i,
338
+ colIndex: a
339
+ }), void 0, !0)], 12, Se))), 256))], 4))), 256))], 512)) : l("", !0)
340
+ ], 12, ve)) : l("", !0)], 46, _e),
341
+ k.value ? l("", !0) : (v(), ce(C(E), {
342
+ key: 0,
343
+ config: { type: "table" }
344
+ })),
345
+ A.value.userOptions.show && k.value && (C(Ne) || C(M)) ? (v(), ce(C(we), {
346
+ ref: "details",
347
+ key: `user_option_${Ue.value}`,
348
+ backgroundColor: A.value.style.backgroundColor,
349
+ color: A.value.style.color,
350
+ isPrinting: C(Fe),
351
+ isImaging: C(Ie),
352
+ uid: O.value,
353
+ hasTooltip: !1,
354
+ hasPdf: A.value.userOptions.buttons.pdf,
355
+ hasImg: A.value.userOptions.buttons.img,
356
+ hasXls: A.value.userOptions.buttons.csv,
357
+ hasTable: !1,
358
+ hasLabel: !1,
359
+ hasAnimation: A.value.userOptions.buttons.animation,
360
+ isAnimation: !N.value.showAnimation,
361
+ hasFullscreen: A.value.userOptions.buttons.fullscreen,
362
+ hasAltCopy: A.value.userOptions.buttons.altCopy,
363
+ isFullscreen: Oe.value,
364
+ chartElement: ze.value,
365
+ position: A.value.userOptions.position,
366
+ titles: { ...A.value.userOptions.buttonTitles },
367
+ zIndex: 3,
368
+ offsetX: 12,
369
+ callbacks: A.value.userOptions.callbacks,
370
+ printScale: A.value.userOptions.print.scale,
371
+ isCursorPointer: je.value,
372
+ onGeneratePdf: Qe,
373
+ onGenerateCsv: et,
374
+ onGenerateImage: C(Re),
375
+ onToggleAnimation: $e,
376
+ onToggleFullscreen: We,
377
+ onCopyAlt: $,
378
+ style: h({ visibility: C(Ne) ? C(M) ? "visible" : "hidden" : "visible" })
379
+ }, le({ _: 2 }, [
380
+ t.$slots.menuIcon ? {
381
+ name: "menuIcon",
382
+ fn: T(({ isOpen: e, color: n }) => [x(t.$slots, "menuIcon", m(p({
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(p({
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(p({
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(p({ 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
+ ])) : l("", !0),
462
+ t.$slots.source ? (v(), u("div", Ce, [x(t.$slots, "source", {}, void 0, !0)], 512)) : l("", !0)
463
+ ], 544));
464
+ }
465
+ }, [["__scopeId", "data-v-42d3302a"]]);
466
+ //#endregion
467
+ export { ge as n, E as t };