vue-data-ui 3.22.8 → 3.22.10

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 (209) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/BaseIcon-CDTIUIKV.js +483 -0
  4. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/DefGrad-DVBqDjhO.js +48 -0
  9. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  11. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
  12. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
  13. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  14. package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
  15. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
  16. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  17. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  18. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  19. package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.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-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  90. package/dist/exposedLib-CZbtc2a6.js +25 -0
  91. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  94. package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  96. package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
  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 +40 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  103. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  104. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  105. package/dist/utils.js +26 -24
  106. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  107. package/dist/vue-data-ui.js +77 -77
  108. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  109. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  110. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  111. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  112. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  113. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  114. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
  115. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  116. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  117. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  118. package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
  119. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  120. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
  121. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  122. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
  123. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  124. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  125. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  126. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  127. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  128. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  129. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  130. package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
  131. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  132. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
  133. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  134. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
  135. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  136. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
  137. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  138. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  139. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
  140. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  141. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  142. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  143. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  144. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  145. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  146. package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
  147. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  148. package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
  149. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  150. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  151. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
  152. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
  153. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
  154. package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
  155. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
  156. package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
  157. package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
  158. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  159. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
  160. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  161. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
  162. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  163. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  164. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  165. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  166. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
  167. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  168. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
  169. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  170. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  171. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  172. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
  173. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
  174. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
  175. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  176. package/package.json +1 -1
  177. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  178. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  179. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  180. package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
  181. package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
  182. package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
  183. package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
  184. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  185. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  186. package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
  187. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  188. package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
  189. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  190. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  191. package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
  192. package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
  193. package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
  194. package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
  195. package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
  196. package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
  197. package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
  198. package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
  199. package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
  200. package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
  201. package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
  202. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  203. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  204. package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
  205. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  206. package/dist/vue-ui-table-Q3brrivC.js +0 -1338
  207. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
  208. package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
  209. package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
@@ -1,455 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, G as n, Rt as ee, T as r, Z as i, kt as a } from "./lib-JqW18y5I.js";
3
- import { t as te } from "./useConfig-DYM3f6EI.js";
4
- import { t as ne } from "./usePrinter-CqqHmnBI.js";
5
- import { t as re } from "./useNestedProp-DIuuzG1r.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 se, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as ce, createTextVNode as d, defineAsyncComponent as le, guardReactiveProps as f, mergeProps as ue, nextTick as de, normalizeClass as fe, normalizeProps as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, renderList as y, renderSlot as b, shallowRef as pe, toDisplayString as x, unref as S, useSlots as me, watch as C, withCtx as w } from "vue";
10
- //#region src/components/vue-ui-carousel-table.vue
11
- var he = /* @__PURE__ */ e({ default: () => T }), ge = ["id"], _e = ["aria-labelledby"], ve = ["id"], ye = ["height"], be = ["id"], xe = [
12
- "data-cell",
13
- "aria-label",
14
- "height"
15
- ], Se = {
16
- key: 2,
17
- ref: "source",
18
- dir: "auto"
19
- }, T = /*#__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: he }) {
37
- let T = le(() => import("./vue-ui-skeleton-CuFm4PtB.js").then((e) => e.n)), Ce = le(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), { vue_ui_carousel_table: we } = te(), Te = oe(), E = e, Ee = he, D = v(n()), De = v(!1), O = v(!!E.dataset), Oe = me();
38
- g(() => {
39
- ke();
40
- }), g(() => {
41
- Oe["chart-background"] && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
42
- });
43
- function ke() {
44
- a(E.dataset) ? t({
45
- componentName: "VueUiCarouselTable",
46
- type: "dataset"
47
- }) : ((!E.dataset.head || a(E.dataset.head)) && (t({
48
- componentName: "VueUiCarouselTable",
49
- type: "datasetAttribute",
50
- property: "head"
51
- }), O.value = !1), (!E.dataset.body || a(E.dataset.body)) && (t({
52
- componentName: "VueUiCarouselTable",
53
- type: "datasetAttribute",
54
- property: "body"
55
- }), O.value = !1)), Te.value && (k.value.userOptions.buttons.animation = !1);
56
- }
57
- let k = s({
58
- get: () => Ne(),
59
- set: (e) => e
60
- }), Ae = s(() => k.value.userOptions.useCursorPointer), { userOptionsVisible: A, setUserOptionsVisibility: je, keepUserOptionState: Me } = ae({ config: k.value });
61
- function Ne() {
62
- return re({
63
- userConfig: E.config,
64
- defaultConfig: we
65
- });
66
- }
67
- C(() => E.config, (e) => {
68
- k.value = Ne(), A.value = !k.value.userOptions.showOnChartHover, ke();
69
- }, { deep: !0 }), C(() => E.dataset, (e) => {
70
- G();
71
- }, { deep: !0 });
72
- let { isPrinting: j, isImaging: M, generatePdf: Pe, generateImage: N } = ne({
73
- elementId: `carousel-table_${D.value}`,
74
- fileName: k.value.caption.text || "vue-ui-carousel-table",
75
- options: k.value.userOptions.print
76
- }), P = v({ showAnimation: k.value.animation.use }), F = v(null), I = v(null), L = v(null), R = v(null), z = v(0), B = v(0), V = v(!1), H = v(null), U = v(null), W = v(0);
77
- function G() {
78
- H.value && (U.value = {
79
- elements: H.value.getElementsByTagName("tr"),
80
- heights: Array.from(H.value.getElementsByTagName("tr")).map((e) => e.getBoundingClientRect().height)
81
- });
82
- }
83
- g(G);
84
- let Fe = s(() => !U.value || !U.value.heights.length ? 0 : Math.max(...U.value.heights) + z.value + B.value), Ie = s(() => E.dataset.body ? k.value.tbody.tr.visible <= E.dataset.body.length ? k.value.tbody.tr.visible : E.dataset.body.length : 0), Le = s(() => (k.value.tbody.tr.height + k.value.tbody.tr.td.padding.top + k.value.tbody.tr.td.padding.bottom + k.value.tbody.tr.border.size * 2) * Ie.value + z.value + B.value), K = v(0), q = v(null), J = v(0), Y = v(!1), Re = v(0);
85
- g(() => {
86
- L.value && (z.value = L.value.getBoundingClientRect().height), R.value && (B.value = R.value.getBoundingClientRect().height), P.value.showAnimation && U.value && Be();
87
- }), g(() => {
88
- if (F.value) {
89
- let e = F.value.querySelector("thead"), t = Array.from(H.value.querySelectorAll("tr"));
90
- function n() {
91
- let n = e.getBoundingClientRect().bottom;
92
- t.forEach((e) => {
93
- e.getBoundingClientRect().top < n ? e.style.visibility = "hidden" : e.style.visibility = "visible";
94
- });
95
- }
96
- F.value.addEventListener("scroll", n), n(), h(() => {
97
- F.value.removeEventListener("scroll", n);
98
- });
99
- }
100
- });
101
- function ze(e) {
102
- De.value = e, Re.value += 1;
103
- }
104
- function Be() {
105
- Te.value || !q.value && !Y.value && (k.value.animation.type === "scroll" ? q.value = requestAnimationFrame(He) : q.value = requestAnimationFrame(Ue));
106
- }
107
- function Ve() {
108
- if (!F.value) return !1;
109
- let { scrollTop: e, scrollHeight: t, clientHeight: n } = F.value;
110
- return e + n >= t;
111
- }
112
- function He(e) {
113
- Y.value || (J.value ||= e, e - J.value >= k.value.animation.speedMs && (K.value += U.value.heights[W.value], (Ve() || W.value >= U.value.heights.length) && (K.value = 0, W.value = -1), W.value += 1, F.value && F.value.scrollTo({
114
- top: K.value,
115
- behavior: "smooth"
116
- }), J.value = e), q.value = requestAnimationFrame(He));
117
- }
118
- function Ue(e) {
119
- if (Y.value) return;
120
- J.value ||= e;
121
- let t = e - J.value, n = k.value.animation.speedMs / 4 / 1e3;
122
- t >= n && (K.value += n, K.value >= F.value.scrollHeight - F.value.clientHeight && (K.value = 0), F.value && F.value.scrollTo({
123
- top: K.value,
124
- behavior: "auto"
125
- }), J.value = e), q.value = requestAnimationFrame(Ue);
126
- }
127
- function X() {
128
- Y.value = !0, cancelAnimationFrame(q.value), q.value = null;
129
- }
130
- h(X);
131
- function Z() {
132
- !Y.value || !P.value.showAnimation || (Y.value = !1, J.value = 0, Be());
133
- }
134
- function We() {
135
- k.value.animation.pauseOnHover && X();
136
- }
137
- let Q = v(null);
138
- function Ge() {
139
- X(), clearTimeout(Q.value);
140
- }
141
- function Ke() {
142
- clearTimeout(Q.value), Q.value = setTimeout(Z, 1e3);
143
- }
144
- C(() => k.value.animation.use, (e) => {
145
- e ? (P.value.showAnimation = !0, Z()) : (P.value.showAnimation = !1, X());
146
- }), C(() => k.value.animation.type, (e) => {
147
- X(), K.value = 0, W.value = 0, F.value.scrollTo({
148
- top: 0,
149
- behavior: "auto"
150
- }), Z();
151
- });
152
- let qe = s(() => k.value.responsiveBreakpoint), $ = pe(null);
153
- g(() => {
154
- $.value = new ResizeObserver((e) => {
155
- e.forEach((e) => {
156
- V.value = e.contentRect.width < qe.value;
157
- }), z.value = L.value ? L.value.getBoundingClientRect().height : 0, B.value = R.value ? R.value.getBoundingClientRect().height : 0, W.value = 0, de(() => {
158
- X(), J.value = 0, K.value = 0, G(), Z();
159
- });
160
- }), F.value && $.value.observe(F.value);
161
- }), h(() => {
162
- $.value && $.value.disconnect();
163
- });
164
- function Je() {
165
- Pe();
166
- }
167
- function Ye() {
168
- P.value.showAnimation = !P.value.showAnimation, P.value.showAnimation ? Z() : X();
169
- }
170
- function Xe(e = null) {
171
- de(() => {
172
- let t = E.dataset.head.map((e, t) => [[E.dataset.body[t]]]), n = r([[k.value.caption.text], [E.dataset.head.map((e) => [e])]].concat(t));
173
- e ? e(n) : i({
174
- csvContent: n,
175
- title: k.value.caption.text || "vue-ui-carousel-table"
176
- });
177
- });
178
- }
179
- async function Ze() {
180
- if (Ee("copyAlt", {
181
- config: k.value,
182
- dataset: E.dataset
183
- }), !k.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(k.value.userOptions.callbacks.altCopy({
188
- config: k.value,
189
- dataset: E.dataset
190
- }));
191
- }
192
- return ie({
193
- pauseAnimation: X,
194
- resumeAnimation: Z,
195
- toggleAnimation: Ye,
196
- generateCsv: Xe,
197
- generatePdf: Je,
198
- generateImage: N,
199
- copyAlt: Ze
200
- }), (t, n) => (_(), l("div", {
201
- class: "vue-data-ui-component vue-ui-carousel-table",
202
- style: {
203
- position: "relative",
204
- overflow: "visible"
205
- },
206
- ref_key: "chartContainer",
207
- ref: I,
208
- onMouseenter: n[5] ||= () => S(je)(!0),
209
- onMouseleave: n[6] ||= () => S(je)(!1)
210
- }, [
211
- u("div", {
212
- ref_key: "tableContainer",
213
- ref: F,
214
- id: `carousel-table_${D.value}`,
215
- style: m({
216
- height: S(j) || S(M) ? "auto" : `${Math.max(Le.value, Fe.value)}px`,
217
- containerType: "inline-size",
218
- position: "relative",
219
- overflow: "auto",
220
- fontFamily: k.value.fontFamily
221
- }),
222
- class: fe({
223
- "vue-ui-responsive": V.value,
224
- "is-playing": k.value.scrollbar.hide || !Y.value && k.value.scrollbar.showOnlyOnHover
225
- }),
226
- onMouseover: n[0] ||= (e) => We(),
227
- onMouseleave: n[1] ||= (e) => Z(),
228
- onTouchstart: n[2] ||= (e) => Ge(),
229
- onTouchend: n[3] ||= (e) => Ke(),
230
- onTouchcancel: n[4] ||= (e) => Ke()
231
- }, [O.value ? (_(), l("table", {
232
- key: 0,
233
- class: "vue-data-ui-carousel-table",
234
- "aria-labelledby": `carousel-caption-${D.value}`,
235
- style: m({
236
- ...k.value.style,
237
- border: `${k.value.border.size}px solid ${k.value.border.color}`,
238
- width: "100%",
239
- borderCollapse: "collapse",
240
- backgroundColor: k.value.tbody.backgroundColor
241
- })
242
- }, [
243
- u("caption", {
244
- ref_key: "caption",
245
- ref: L,
246
- class: "vue-data-ui-carousel-table-caption",
247
- id: `carousel-caption-${D.value}`,
248
- style: m({
249
- ...k.value.caption.style,
250
- fontFamily: "inherit",
251
- position: "sticky",
252
- top: 0,
253
- zIndex: 2,
254
- paddingTop: k.value.caption.padding.top + "px",
255
- paddingRight: k.value.caption.padding.right + "px",
256
- paddingBottom: k.value.caption.padding.bottom + "px",
257
- paddingLeft: k.value.caption.padding.left + "px",
258
- boxShadow: V.value ? k.value.thead.tr.style.boxShadow : "none",
259
- minHeight: "36px",
260
- display: t.$slots.caption || k.value.caption.text || k.value.userOptions.show ? "" : "none"
261
- })
262
- }, [d(x(k.value.caption.text && !t.$slots.caption ? k.value.caption.text : "") + " ", 1), b(t.$slots, "caption", {}, void 0, !0)], 12, ve),
263
- u("thead", {
264
- role: "rowgroup",
265
- style: m({
266
- ...k.value.thead.style,
267
- position: "sticky",
268
- top: `${t.$slots.caption || k.value.caption.text || k.value.userOptions.show ? z.value : 0}px`,
269
- zIndex: 1
270
- })
271
- }, [u("tr", {
272
- ref_key: "tableRow",
273
- ref: R,
274
- role: "row",
275
- style: m({
276
- ...k.value.thead.tr.style,
277
- border: k.value.thead.tr.border.size ? `${k.value.thead.tr.border.size}px solid ${k.value.thead.tr.border.color}` : "none",
278
- boxShadow: V.value ? "none" : k.value.thead.tr.style.boxShadow
279
- }),
280
- height: `${k.value.thead.tr.height}px`
281
- }, [(_(!0), l(o, null, y(e.dataset.head, (e, n) => (_(), l("th", {
282
- role: "cell",
283
- key: `th_${n}`,
284
- id: `col-${n}`,
285
- scope: "col",
286
- style: m({
287
- ...k.value.thead.tr.th.style,
288
- border: k.value.thead.tr.th.border.size ? `${k.value.thead.tr.th.border.size}px solid ${k.value.thead.tr.th.border.color}` : "none",
289
- paddingTop: k.value.thead.tr.th.padding.top + "px",
290
- paddingRight: k.value.thead.tr.th.padding.right + "px",
291
- paddingBottom: k.value.thead.tr.th.padding.bottom + "px",
292
- paddingLeft: k.value.thead.tr.th.padding.left + "px"
293
- })
294
- }, [d(x(t.$slots.th ? "" : e) + " ", 1), b(t.$slots, "th", ue({ ref_for: !0 }, {
295
- th: e,
296
- colIndex: n
297
- }), void 0, !0)], 12, be))), 128))], 12, ye)], 4),
298
- e.dataset.body && e.dataset.head ? (_(), l("tbody", {
299
- key: 0,
300
- ref_key: "tbody",
301
- ref: H,
302
- "aria-live": "polite",
303
- style: { clipPath: "inset(0,0,0,0)" }
304
- }, [(_(!0), l(o, null, y(e.dataset.body, (n, r) => (_(), l("tr", { style: m({
305
- ...k.value.tbody.tr.style,
306
- border: `${k.value.tbody.tr.border.size}px solid ${k.value.tbody.tr.border.color}`,
307
- verticalAlign: "middle"
308
- }) }, [(_(!0), l(o, null, y(n, (n, i) => (_(), l("td", {
309
- role: "cell",
310
- "data-cell": e.dataset.head[i] || "",
311
- "aria-label": `${e.dataset.head[i]}: ${n}`,
312
- style: m({
313
- ...k.value.tbody.tr.td.style,
314
- border: `${k.value.tbody.tr.td.border.size}px solid ${k.value.tbody.tr.td.border.color}`,
315
- backgroundColor: S(ee)(k.value.tbody.tr.td.style.backgroundColor, r % 2 == 0 && k.value.tbody.tr.td.alternateColor ? k.value.tbody.tr.td.alternateOpacity * 100 : 100),
316
- paddingTop: k.value.tbody.tr.td.padding.top + "px",
317
- paddingRight: k.value.tbody.tr.td.padding.right + "px",
318
- paddingBottom: k.value.tbody.tr.td.padding.bottom + "px",
319
- paddingLeft: k.value.tbody.tr.td.padding.left + "px",
320
- verticalAlign: "middle"
321
- }),
322
- height: `${k.value.tbody.tr.height}px`
323
- }, [d(x(t.$slots.td ? "" : n) + " ", 1), b(t.$slots, "td", ue({ ref_for: !0 }, {
324
- td: n,
325
- rowIndex: r,
326
- colIndex: i
327
- }), void 0, !0)], 12, xe))), 256))], 4))), 256))], 512)) : c("", !0)
328
- ], 12, _e)) : c("", !0)], 46, ge),
329
- O.value ? c("", !0) : (_(), se(S(T), {
330
- key: 0,
331
- config: { type: "table" }
332
- })),
333
- k.value.userOptions.show && O.value && (S(Me) || S(A)) ? (_(), se(S(Ce), {
334
- ref: "details",
335
- key: `user_option_${Re.value}`,
336
- backgroundColor: k.value.style.backgroundColor,
337
- color: k.value.style.color,
338
- isPrinting: S(j),
339
- isImaging: S(M),
340
- uid: D.value,
341
- hasTooltip: !1,
342
- hasPdf: k.value.userOptions.buttons.pdf,
343
- hasImg: k.value.userOptions.buttons.img,
344
- hasXls: k.value.userOptions.buttons.csv,
345
- hasTable: !1,
346
- hasLabel: !1,
347
- hasAnimation: k.value.userOptions.buttons.animation,
348
- isAnimation: !P.value.showAnimation,
349
- hasFullscreen: k.value.userOptions.buttons.fullscreen,
350
- hasAltCopy: k.value.userOptions.buttons.altCopy,
351
- isFullscreen: De.value,
352
- chartElement: I.value,
353
- position: k.value.userOptions.position,
354
- titles: { ...k.value.userOptions.buttonTitles },
355
- zIndex: 3,
356
- offsetX: 12,
357
- callbacks: k.value.userOptions.callbacks,
358
- printScale: k.value.userOptions.print.scale,
359
- isCursorPointer: Ae.value,
360
- onGeneratePdf: Je,
361
- onGenerateCsv: Xe,
362
- onGenerateImage: S(N),
363
- onToggleAnimation: Ye,
364
- onToggleFullscreen: ze,
365
- onCopyAlt: Ze,
366
- style: m({ visibility: S(Me) ? S(A) ? "visible" : "hidden" : "visible" })
367
- }, ce({ _: 2 }, [
368
- t.$slots.menuIcon ? {
369
- name: "menuIcon",
370
- fn: w(({ isOpen: e, color: n }) => [b(t.$slots, "menuIcon", p(f({
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: w(() => [b(t.$slots, "optionPdf", {}, void 0, !0)]),
379
- key: "1"
380
- } : void 0,
381
- t.$slots.optionCsv ? {
382
- name: "optionCsv",
383
- fn: w(() => [b(t.$slots, "optionCsv", {}, void 0, !0)]),
384
- key: "2"
385
- } : void 0,
386
- t.$slots.optionImg ? {
387
- name: "optionImg",
388
- fn: w(() => [b(t.$slots, "optionImg", {}, void 0, !0)]),
389
- key: "3"
390
- } : void 0,
391
- t.$slots.optionSvg ? {
392
- name: "optionSvg",
393
- fn: w(() => [b(t.$slots, "optionSvg", {}, void 0, !0)]),
394
- key: "4"
395
- } : void 0,
396
- t.$slots.optionAnimation ? {
397
- name: "optionAnimation",
398
- fn: w(({ toggleAnimation: e, isAnimated: n }) => [b(t.$slots, "optionAnimation", p(f({
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: w(({ toggleFullscreen: e, isFullscreen: n }) => [b(t.$slots, "optionFullscreen", p(f({
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: w(({ altCopy: e }) => [b(t.$slots, "optionAltCopy", p(f({ altCopy: e })), void 0, !0)]),
415
- key: "7"
416
- } : void 0,
417
- t.$slots["custom-menu-before"] ? {
418
- name: "custom-menu-before",
419
- fn: w(() => [b(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: w(() => [b(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
- ])) : c("", !0),
450
- t.$slots.source ? (_(), l("div", Se, [b(t.$slots, "source", {}, void 0, !0)], 512)) : c("", !0)
451
- ], 544));
452
- }
453
- }, [["__scopeId", "data-v-0f07f0c9"]]);
454
- //#endregion
455
- export { he as n, T as t };