vue-data-ui 3.22.6 → 3.22.8

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 (203) hide show
  1. package/dist/{Arrow-Ds4xmpiQ.js → Arrow-DdymhUfY.js} +1 -1
  2. package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
  3. package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-C2qlyHc7.js} +1 -1
  4. package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
  5. package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C6zonwhr.js} +2 -2
  6. package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-CK2-h611.js} +2 -2
  7. package/dist/{DataTable-CXfvIulC.js → DataTable-D9NvewTT.js} +2 -2
  8. package/dist/{Legend-D-635Kag.js → Legend-ROt6ugzW.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-BHHNsVVP.js} +29 -29
  10. package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-DW7zwRcm.js} +1 -1
  11. package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-pcgwlYr2.js} +18 -18
  12. package/dist/{Shape-BSetplwm.js → Shape-UpH0a4Ur.js} +3 -3
  13. package/dist/{Slicer-ClIGOuoX.js → Slicer-BZ5VnOOS.js} +19 -19
  14. package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-BQFeCw0m.js} +351 -351
  15. package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-BTLN-Kex.js} +6 -6
  16. package/dist/{Title-C-p0ilWB.js → Title-CcNiYzEo.js} +1 -1
  17. package/dist/{Tooltip-YabpoXo1.js → Tooltip-CxOrWlFy.js} +1 -1
  18. package/dist/{UserOptions-BO4VFL8O.js → UserOptions-16uF1ayB.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-CVJfsfwL.js → dom-to-png-BbwhsRIr.js} +1 -1
  89. package/dist/exposedLib-VXFp3Z2c.js +19 -0
  90. package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
  91. package/dist/{img-B_y5qDdm.js → img-DnP3eXuv.js} +1 -1
  92. package/dist/{labelUtils-CyVwqXSh.js → labelUtils-DBEh078l.js} +1 -1
  93. package/dist/{lib-DRBJCmHW.js → lib-JqW18y5I.js} +49 -30
  94. package/dist/{package-DyQ_PQis.js → package-gp9pYCfN.js} +1 -1
  95. package/dist/{pdf-CG02qhAH.js → pdf-hj3gzrE7.js} +1 -1
  96. package/dist/{render-common-CUAlQvAQ.js → render-common-CLn1VXJ9.js} +20 -20
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +18 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
  103. package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-DIuuzG1r.js} +1 -1
  104. package/dist/{usePrinter-CRp5IW3v.js → usePrinter-CqqHmnBI.js} +2 -2
  105. package/dist/utils.js +23 -23
  106. package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
  107. package/dist/vue-data-ui.js +77 -77
  108. package/dist/{vue-ui-3d-bar-BAH0jNtT.js → vue-ui-3d-bar-B3HxJmDI.js} +124 -124
  109. package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-YyosvEPo.js} +3 -3
  110. package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
  111. package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-CfJXeAOE.js} +6 -6
  112. package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
  113. package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
  114. package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
  115. package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
  116. package/dist/{vue-ui-chestnut-Cx8T3NEl.js → vue-ui-chestnut-RfWMGUD-.js} +114 -114
  117. package/dist/{vue-ui-chord-B-sauvLo.js → vue-ui-chord-Db1O_diJ.js} +57 -57
  118. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
  119. package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
  120. package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DL3zq0F2.js} +37 -37
  121. package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
  122. package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-ThFVNO3l.js} +3 -3
  123. package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-BuTd6dt4.js} +224 -224
  124. package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-C3Rt6j-I.js} +458 -458
  125. package/dist/vue-ui-donut-evolution-DY46UPF_.js +1510 -0
  126. package/dist/vue-ui-dumbbell-wK7vUB0x.js +1530 -0
  127. package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-BTUNfWb7.js} +122 -122
  128. package/dist/vue-ui-funnel-BhoHzyHa.js +777 -0
  129. package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DJ2uNYcN.js} +263 -263
  130. package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-Cf4NqvrO.js} +226 -226
  131. package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-ovHu_Sc9.js} +21 -21
  132. package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-DDxEj-qe.js} +7 -7
  133. package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-Npqnvb1r.js} +282 -282
  134. package/dist/vue-ui-history-plot-C3Kjy2tc.js +1715 -0
  135. package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
  136. package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
  137. package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
  138. package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
  139. package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-DlVh6hwx.js} +27 -27
  140. package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
  141. package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
  142. package/dist/{vue-ui-parallel-coordinate-plot-DBpHCFxa.js → vue-ui-parallel-coordinate-plot-DSp_cwU-.js} +57 -57
  143. package/dist/vue-ui-quadrant-ByVg-NBs.js +1978 -0
  144. package/dist/{vue-ui-quick-chart-so_8PzvS.js → vue-ui-quick-chart-WMzSJxGZ.js} +188 -188
  145. package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-DE-me6OC.js} +64 -64
  146. package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
  147. package/dist/vue-ui-relation-circle-L7-dTqet.js +924 -0
  148. package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
  149. package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
  150. package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
  151. package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
  152. package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-D4NnZ1mg.js} +17 -17
  153. package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-C38ysZ-c.js} +21 -21
  154. package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-B03ndcUe.js} +80 -80
  155. package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DgPc4vPT.js} +7 -7
  156. package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-D02ff7ZI.js} +115 -115
  157. package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-DlTfNQj8.js} +464 -464
  158. package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +662 -0
  159. package/dist/vue-ui-stackbar-BVdApDnY.js +2332 -0
  160. package/dist/vue-ui-stackline-QzQQ7lTy.js +2419 -0
  161. package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
  162. package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Q3brrivC.js} +68 -68
  163. package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
  164. package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-Q6BHPKUn.js} +199 -199
  165. package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-Bg0RR6m4.js} +26 -26
  166. package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-BdzKpoRj.js} +29 -29
  167. package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-DWb69ofh.js} +17 -17
  168. package/dist/{vue-ui-treemap-B03c4RIy.js → vue-ui-treemap-uUz07Prw.js} +401 -401
  169. package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
  170. package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-DTfvWYA7.js} +137 -137
  171. package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-DqfljAqH.js} +40 -40
  172. package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
  173. package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-Bvgy2do1.js} +1598 -1596
  174. package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-D5KsuNR2.js} +259 -259
  175. package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-BfgeE3TW.js} +440 -437
  176. package/package.json +1 -1
  177. package/dist/exposedLib-CjwriUaG.js +0 -19
  178. package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +0 -1238
  179. package/dist/vue-ui-bullet-C_oBS1cr.js +0 -710
  180. package/dist/vue-ui-bump-BZB1Na8h.js +0 -1249
  181. package/dist/vue-ui-candlestick-8d_1xO8X.js +0 -1826
  182. package/dist/vue-ui-carousel-table-BfZNcwmY.js +0 -455
  183. package/dist/vue-ui-circle-pack-BLh8HnGK.js +0 -1608
  184. package/dist/vue-ui-donut-evolution-D1k4u6cA.js +0 -1510
  185. package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
  186. package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
  187. package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
  188. package/dist/vue-ui-horizontal-bar-CwB4sc6M.js +0 -1683
  189. package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
  190. package/dist/vue-ui-nested-donuts-wfesrzle.js +0 -1487
  191. package/dist/vue-ui-onion-B8-psLbF.js +0 -1200
  192. package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
  193. package/dist/vue-ui-rating-CKWHDKOT.js +0 -343
  194. package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
  195. package/dist/vue-ui-ridgeline-DVbYznRz.js +0 -1622
  196. package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
  197. package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
  198. package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
  199. package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
  200. package/dist/vue-ui-stackline-C0NHBUaE.js +0 -2416
  201. package/dist/vue-ui-strip-plot-_6LL45i9.js +0 -1729
  202. package/dist/vue-ui-waffle-afa8HSxz.js +0 -1362
  203. package/dist/vue-ui-world-CqS-HhZl.js +0 -14264
@@ -1,455 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Dt as t, It as n, Q as r, W as i, X as a, w as ee } from "./lib-DRBJCmHW.js";
3
- import { t as te } from "./useConfig-DYM3f6EI.js";
4
- import { t as ne } from "./usePrinter-CRp5IW3v.js";
5
- import { t as re } from "./useNestedProp-BEo2N1Db.js";
6
- import { t as ie } from "./_plugin-vue_export-helper-B3ysoDQm.js";
7
- import { t as ae } from "./useUserOptionState-DK-_1ddE.js";
8
- import { t as oe } from "./usePrefersMotion-BC-CsqR1.js";
9
- import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as se, createTextVNode as f, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as ce, nextTick as le, normalizeClass as ue, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as _, onMounted as v, openBlock as y, ref as b, renderList as x, renderSlot as S, shallowRef as de, toDisplayString as C, unref as w, useSlots as fe, watch as T, withCtx as E } from "vue";
10
- //#region src/components/vue-ui-carousel-table.vue
11
- var pe = /* @__PURE__ */ e({ default: () => D }), me = ["id"], he = ["aria-labelledby"], ge = ["id"], _e = ["height"], ve = ["id"], ye = [
12
- "data-cell",
13
- "aria-label",
14
- "height"
15
- ], be = {
16
- key: 2,
17
- ref: "source",
18
- dir: "auto"
19
- }, D = /*#__PURE__*/ ie({
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: ie, emit: pe }) {
37
- let D = p(() => import("./vue-ui-skeleton-BkxB6Dik.js").then((e) => e.n)), xe = p(() => import("./UserOptions-BO4VFL8O.js").then((e) => e.n)), { vue_ui_carousel_table: Se } = te(), Ce = oe(), O = e, we = pe, k = b(i()), A = b(!1), j = b(!!O.dataset), Te = fe();
38
- v(() => {
39
- Ee();
40
- }), v(() => {
41
- Te["chart-background"] && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
42
- });
43
- function Ee() {
44
- t(O.dataset) ? r({
45
- componentName: "VueUiCarouselTable",
46
- type: "dataset"
47
- }) : ((!O.dataset.head || t(O.dataset.head)) && (r({
48
- componentName: "VueUiCarouselTable",
49
- type: "datasetAttribute",
50
- property: "head"
51
- }), j.value = !1), (!O.dataset.body || t(O.dataset.body)) && (r({
52
- componentName: "VueUiCarouselTable",
53
- type: "datasetAttribute",
54
- property: "body"
55
- }), j.value = !1)), Ce.value && (M.value.userOptions.buttons.animation = !1);
56
- }
57
- let M = s({
58
- get: () => Ae(),
59
- set: (e) => e
60
- }), De = s(() => M.value.userOptions.useCursorPointer), { userOptionsVisible: N, setUserOptionsVisibility: Oe, keepUserOptionState: ke } = ae({ config: M.value });
61
- function Ae() {
62
- return re({
63
- userConfig: O.config,
64
- defaultConfig: Se
65
- });
66
- }
67
- T(() => O.config, (e) => {
68
- M.value = Ae(), N.value = !M.value.userOptions.showOnChartHover, Ee();
69
- }, { deep: !0 }), T(() => O.dataset, (e) => {
70
- W();
71
- }, { deep: !0 });
72
- let { isPrinting: je, isImaging: Me, generatePdf: Ne, generateImage: Pe } = ne({
73
- elementId: `carousel-table_${k.value}`,
74
- fileName: M.value.caption.text || "vue-ui-carousel-table",
75
- options: M.value.userOptions.print
76
- }), P = b({ showAnimation: M.value.animation.use }), F = b(null), Fe = b(null), I = b(null), L = b(null), R = b(0), z = b(0), B = b(!1), V = b(null), H = b(null), U = b(0);
77
- function W() {
78
- V.value && (H.value = {
79
- elements: V.value.getElementsByTagName("tr"),
80
- heights: Array.from(V.value.getElementsByTagName("tr")).map((e) => e.getBoundingClientRect().height)
81
- });
82
- }
83
- v(W);
84
- let Ie = s(() => !H.value || !H.value.heights.length ? 0 : Math.max(...H.value.heights) + R.value + z.value), Le = s(() => O.dataset.body ? M.value.tbody.tr.visible <= O.dataset.body.length ? M.value.tbody.tr.visible : O.dataset.body.length : 0), Re = s(() => (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) * Le.value + R.value + z.value), G = b(0), K = b(null), q = b(0), J = b(!1), ze = b(0);
85
- v(() => {
86
- I.value && (R.value = I.value.getBoundingClientRect().height), L.value && (z.value = L.value.getBoundingClientRect().height), P.value.showAnimation && H.value && Ve();
87
- }), v(() => {
88
- if (F.value) {
89
- let e = F.value.querySelector("thead"), t = Array.from(V.value.querySelectorAll("tr"));
90
- function n() {
91
- let n = e.getBoundingClientRect().bottom;
92
- t.forEach((e) => {
93
- e.getBoundingClientRect().top < n ? e.style.visibility = "hidden" : e.style.visibility = "visible";
94
- });
95
- }
96
- F.value.addEventListener("scroll", n), n(), _(() => {
97
- F.value.removeEventListener("scroll", n);
98
- });
99
- }
100
- });
101
- function Be(e) {
102
- A.value = e, ze.value += 1;
103
- }
104
- function Ve() {
105
- Ce.value || !K.value && !J.value && (M.value.animation.type === "scroll" ? K.value = requestAnimationFrame(Ue) : K.value = requestAnimationFrame(We));
106
- }
107
- function He() {
108
- if (!F.value) return !1;
109
- let { scrollTop: e, scrollHeight: t, clientHeight: n } = F.value;
110
- return e + n >= t;
111
- }
112
- function Ue(e) {
113
- J.value || (q.value ||= e, e - q.value >= M.value.animation.speedMs && (G.value += H.value.heights[U.value], (He() || U.value >= H.value.heights.length) && (G.value = 0, U.value = -1), U.value += 1, F.value && F.value.scrollTo({
114
- top: G.value,
115
- behavior: "smooth"
116
- }), q.value = e), K.value = requestAnimationFrame(Ue));
117
- }
118
- function We(e) {
119
- if (J.value) return;
120
- q.value ||= e;
121
- let t = e - q.value, n = M.value.animation.speedMs / 4 / 1e3;
122
- t >= n && (G.value += n, G.value >= F.value.scrollHeight - F.value.clientHeight && (G.value = 0), F.value && F.value.scrollTo({
123
- top: G.value,
124
- behavior: "auto"
125
- }), q.value = e), K.value = requestAnimationFrame(We);
126
- }
127
- function Y() {
128
- J.value = !0, cancelAnimationFrame(K.value), K.value = null;
129
- }
130
- _(Y);
131
- function X() {
132
- !J.value || !P.value.showAnimation || (J.value = !1, q.value = 0, Ve());
133
- }
134
- function Ge() {
135
- M.value.animation.pauseOnHover && Y();
136
- }
137
- let Z = b(null);
138
- function Ke() {
139
- Y(), clearTimeout(Z.value);
140
- }
141
- function qe() {
142
- clearTimeout(Z.value), Z.value = setTimeout(X, 1e3);
143
- }
144
- T(() => M.value.animation.use, (e) => {
145
- e ? (P.value.showAnimation = !0, X()) : (P.value.showAnimation = !1, Y());
146
- }), T(() => M.value.animation.type, (e) => {
147
- Y(), G.value = 0, U.value = 0, F.value.scrollTo({
148
- top: 0,
149
- behavior: "auto"
150
- }), X();
151
- });
152
- let Je = s(() => M.value.responsiveBreakpoint), Q = de(null);
153
- v(() => {
154
- Q.value = new ResizeObserver((e) => {
155
- e.forEach((e) => {
156
- B.value = e.contentRect.width < Je.value;
157
- }), R.value = I.value ? I.value.getBoundingClientRect().height : 0, z.value = L.value ? L.value.getBoundingClientRect().height : 0, U.value = 0, le(() => {
158
- Y(), q.value = 0, G.value = 0, W(), X();
159
- });
160
- }), F.value && Q.value.observe(F.value);
161
- }), _(() => {
162
- Q.value && Q.value.disconnect();
163
- });
164
- function Ye() {
165
- Ne();
166
- }
167
- function Xe() {
168
- P.value.showAnimation = !P.value.showAnimation, P.value.showAnimation ? X() : Y();
169
- }
170
- function Ze(e = null) {
171
- le(() => {
172
- let t = O.dataset.head.map((e, t) => [[O.dataset.body[t]]]), n = ee([[M.value.caption.text], [O.dataset.head.map((e) => [e])]].concat(t));
173
- e ? e(n) : a({
174
- csvContent: n,
175
- title: M.value.caption.text || "vue-ui-carousel-table"
176
- });
177
- });
178
- }
179
- async function $() {
180
- if (we("copyAlt", {
181
- config: M.value,
182
- dataset: O.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: O.dataset
190
- }));
191
- }
192
- return ie({
193
- pauseAnimation: Y,
194
- resumeAnimation: X,
195
- toggleAnimation: Xe,
196
- generateCsv: Ze,
197
- generatePdf: Ye,
198
- generateImage: Pe,
199
- copyAlt: $
200
- }), (t, r) => (y(), 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: Fe,
208
- onMouseenter: r[5] ||= () => w(Oe)(!0),
209
- onMouseleave: r[6] ||= () => w(Oe)(!1)
210
- }, [
211
- d("div", {
212
- ref_key: "tableContainer",
213
- ref: F,
214
- id: `carousel-table_${k.value}`,
215
- style: g({
216
- height: w(je) || w(Me) ? "auto" : `${Math.max(Re.value, Ie.value)}px`,
217
- containerType: "inline-size",
218
- position: "relative",
219
- overflow: "auto",
220
- fontFamily: M.value.fontFamily
221
- }),
222
- class: ue({
223
- "vue-ui-responsive": B.value,
224
- "is-playing": M.value.scrollbar.hide || !J.value && M.value.scrollbar.showOnlyOnHover
225
- }),
226
- onMouseover: r[0] ||= (e) => Ge(),
227
- onMouseleave: r[1] ||= (e) => X(),
228
- onTouchstart: r[2] ||= (e) => Ke(),
229
- onTouchend: r[3] ||= (e) => qe(),
230
- onTouchcancel: r[4] ||= (e) => qe()
231
- }, [j.value ? (y(), u("table", {
232
- key: 0,
233
- class: "vue-data-ui-carousel-table",
234
- "aria-labelledby": `carousel-caption-${k.value}`,
235
- style: g({
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: I,
246
- class: "vue-data-ui-carousel-table-caption",
247
- id: `carousel-caption-${k.value}`,
248
- style: g({
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: B.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(C(M.value.caption.text && !t.$slots.caption ? M.value.caption.text : "") + " ", 1), S(t.$slots, "caption", {}, void 0, !0)], 12, ge),
263
- d("thead", {
264
- role: "rowgroup",
265
- style: g({
266
- ...M.value.thead.style,
267
- position: "sticky",
268
- top: `${t.$slots.caption || M.value.caption.text || M.value.userOptions.show ? R.value : 0}px`,
269
- zIndex: 1
270
- })
271
- }, [d("tr", {
272
- ref_key: "tableRow",
273
- ref: L,
274
- role: "row",
275
- style: g({
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: B.value ? "none" : M.value.thead.tr.style.boxShadow
279
- }),
280
- height: `${M.value.thead.tr.height}px`
281
- }, [(y(!0), u(o, null, x(e.dataset.head, (e, n) => (y(), u("th", {
282
- role: "cell",
283
- key: `th_${n}`,
284
- id: `col-${n}`,
285
- scope: "col",
286
- style: g({
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(C(t.$slots.th ? "" : e) + " ", 1), S(t.$slots, "th", ce({ ref_for: !0 }, {
295
- th: e,
296
- colIndex: n
297
- }), void 0, !0)], 12, ve))), 128))], 12, _e)], 4),
298
- e.dataset.body && e.dataset.head ? (y(), u("tbody", {
299
- key: 0,
300
- ref_key: "tbody",
301
- ref: V,
302
- "aria-live": "polite",
303
- style: { clipPath: "inset(0,0,0,0)" }
304
- }, [(y(!0), u(o, null, x(e.dataset.body, (r, i) => (y(), u("tr", { style: g({
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
- }) }, [(y(!0), u(o, null, x(r, (r, a) => (y(), u("td", {
309
- role: "cell",
310
- "data-cell": e.dataset.head[a] || "",
311
- "aria-label": `${e.dataset.head[a]}: ${r}`,
312
- style: g({
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: w(n)(M.value.tbody.tr.td.style.backgroundColor, i % 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(C(t.$slots.td ? "" : r) + " ", 1), S(t.$slots, "td", ce({ ref_for: !0 }, {
324
- td: r,
325
- rowIndex: i,
326
- colIndex: a
327
- }), void 0, !0)], 12, ye))), 256))], 4))), 256))], 512)) : l("", !0)
328
- ], 12, he)) : l("", !0)], 46, me),
329
- j.value ? l("", !0) : (y(), c(w(D), {
330
- key: 0,
331
- config: { type: "table" }
332
- })),
333
- M.value.userOptions.show && j.value && (w(ke) || w(N)) ? (y(), c(w(xe), {
334
- ref: "details",
335
- key: `user_option_${ze.value}`,
336
- backgroundColor: M.value.style.backgroundColor,
337
- color: M.value.style.color,
338
- isPrinting: w(je),
339
- isImaging: w(Me),
340
- uid: k.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: !P.value.showAnimation,
349
- hasFullscreen: M.value.userOptions.buttons.fullscreen,
350
- hasAltCopy: M.value.userOptions.buttons.altCopy,
351
- isFullscreen: A.value,
352
- chartElement: Fe.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: Ye,
361
- onGenerateCsv: Ze,
362
- onGenerateImage: w(Pe),
363
- onToggleAnimation: Xe,
364
- onToggleFullscreen: Be,
365
- onCopyAlt: $,
366
- style: g({ visibility: w(ke) ? w(N) ? "visible" : "hidden" : "visible" })
367
- }, se({ _: 2 }, [
368
- t.$slots.menuIcon ? {
369
- name: "menuIcon",
370
- fn: E(({ isOpen: e, color: n }) => [S(t.$slots, "menuIcon", h(m({
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: E(() => [S(t.$slots, "optionPdf", {}, void 0, !0)]),
379
- key: "1"
380
- } : void 0,
381
- t.$slots.optionCsv ? {
382
- name: "optionCsv",
383
- fn: E(() => [S(t.$slots, "optionCsv", {}, void 0, !0)]),
384
- key: "2"
385
- } : void 0,
386
- t.$slots.optionImg ? {
387
- name: "optionImg",
388
- fn: E(() => [S(t.$slots, "optionImg", {}, void 0, !0)]),
389
- key: "3"
390
- } : void 0,
391
- t.$slots.optionSvg ? {
392
- name: "optionSvg",
393
- fn: E(() => [S(t.$slots, "optionSvg", {}, void 0, !0)]),
394
- key: "4"
395
- } : void 0,
396
- t.$slots.optionAnimation ? {
397
- name: "optionAnimation",
398
- fn: E(({ toggleAnimation: e, isAnimated: n }) => [S(t.$slots, "optionAnimation", h(m({
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: E(({ toggleFullscreen: e, isFullscreen: n }) => [S(t.$slots, "optionFullscreen", h(m({
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: E(({ altCopy: e }) => [S(t.$slots, "optionAltCopy", h(m({ altCopy: e })), void 0, !0)]),
415
- key: "7"
416
- } : void 0,
417
- t.$slots["custom-menu-before"] ? {
418
- name: "custom-menu-before",
419
- fn: E(() => [S(t.$slots, "custom-menu-before", {}, void 0, !0)]),
420
- key: "8"
421
- } : void 0,
422
- t.$slots["custom-menu-after"] ? {
423
- name: "custom-menu-after",
424
- fn: E(() => [S(t.$slots, "custom-menu-after", {}, void 0, !0)]),
425
- key: "9"
426
- } : void 0
427
- ]), 1032, [
428
- "backgroundColor",
429
- "color",
430
- "isPrinting",
431
- "isImaging",
432
- "uid",
433
- "hasPdf",
434
- "hasImg",
435
- "hasXls",
436
- "hasAnimation",
437
- "isAnimation",
438
- "hasFullscreen",
439
- "hasAltCopy",
440
- "isFullscreen",
441
- "chartElement",
442
- "position",
443
- "titles",
444
- "callbacks",
445
- "printScale",
446
- "isCursorPointer",
447
- "onGenerateImage",
448
- "style"
449
- ])) : l("", !0),
450
- t.$slots.source ? (y(), u("div", be, [S(t.$slots, "source", {}, void 0, !0)], 512)) : l("", !0)
451
- ], 544));
452
- }
453
- }, [["__scopeId", "data-v-0f07f0c9"]]);
454
- //#endregion
455
- export { pe as n, D as t };