vue-data-ui 3.25.11 → 3.25.13

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 (205) hide show
  1. package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
  3. package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
  4. package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
  5. package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
  6. package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
  7. package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
  8. package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
  9. package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
  11. package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
  12. package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
  13. package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
  14. package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
  15. package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
  16. package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
  17. package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
  18. package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
  91. package/dist/exposedLib-BBtjpydc.js +28 -0
  92. package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
  93. package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
  94. package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
  95. package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
  96. package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
  97. package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +6 -0
  103. package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
  104. package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
  105. package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
  106. package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
  107. package/dist/utils.js +13 -13
  108. package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
  109. package/dist/vue-data-ui.js +75 -75
  110. package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
  111. package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
  113. package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
  114. package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
  115. package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
  116. package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
  117. package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
  118. package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
  119. package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
  120. package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
  121. package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
  122. package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
  123. package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
  124. package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
  125. package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
  126. package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
  127. package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
  128. package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
  129. package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
  130. package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
  131. package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
  132. package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
  133. package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
  134. package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
  135. package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
  136. package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
  137. package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
  138. package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
  139. package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
  140. package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
  141. package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
  142. package/dist/vue-ui-molecule-_x232mMu.js +941 -0
  143. package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
  144. package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
  145. package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
  146. package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
  147. package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
  148. package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
  149. package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
  150. package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
  151. package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
  152. package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
  153. package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
  154. package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
  155. package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
  156. package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
  157. package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
  158. package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
  159. package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
  160. package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
  161. package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
  162. package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
  163. package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
  164. package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
  165. package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
  166. package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
  167. package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
  168. package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
  169. package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
  170. package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
  171. package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
  172. package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
  173. package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
  174. package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
  175. package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
  176. package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
  177. package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
  178. package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
  179. package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
  180. package/package.json +1 -1
  181. package/dist/exposedLib-CG3aXJ-v.js +0 -28
  182. package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
  183. package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
  184. package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
  185. package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
  186. package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
  187. package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
  188. package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
  189. package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
  190. package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
  191. package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
  192. package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
  193. package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
  194. package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
  195. package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
  196. package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
  197. package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
  198. package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
  199. package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
  200. package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
  201. package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
  202. package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
  203. package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
  204. package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
  205. package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
@@ -1,467 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Pt as r, Ut as i, nt as a, q as ee } from "./lib-Dql7cqyA.js";
3
- import { n as te, t as ne } from "./useHints-Dq_w2E8B.js";
4
- import { t as re } from "./useConfig-D32D002m.js";
5
- import { t as ie } from "./usePrinter-hohanNCX.js";
6
- import { t as ae } from "./useNestedProp-Chvyfpl-.js";
7
- import { t as oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
- import { t as se } from "./useUserOptionState-DK-_1ddE.js";
9
- import { t as ce } from "./usePrefersMotion-BC-CsqR1.js";
10
- import { Fragment as o, computed as s, createBlock as le, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as ue, createTextVNode as d, defineAsyncComponent as de, guardReactiveProps as f, mergeProps as fe, nextTick as p, normalizeClass as pe, normalizeProps as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, shallowRef as me, toDisplayString as S, unref as C, useSlots as he, watch as w, withCtx as T } from "vue";
11
- //#region src/components/vue-ui-carousel-table.vue
12
- var ge = /* @__PURE__ */ e({ default: () => E }), _e = ["id"], ve = ["aria-labelledby"], ye = ["id"], be = ["height"], xe = ["id"], Se = [
13
- "data-cell",
14
- "aria-label",
15
- "height"
16
- ], Ce = {
17
- key: 2,
18
- ref: "source",
19
- dir: "auto"
20
- }, E = /*#__PURE__*/ oe({
21
- __name: "vue-ui-carousel-table",
22
- props: {
23
- config: {
24
- type: Object,
25
- default() {
26
- return {};
27
- }
28
- },
29
- dataset: {
30
- type: Object,
31
- default() {
32
- return {};
33
- }
34
- }
35
- },
36
- emits: ["copyAlt"],
37
- setup(e, { expose: oe, emit: ge }) {
38
- let E = de(() => import("./vue-ui-skeleton-C347nFnE.js").then((e) => e.n)), we = de(() => import("./UserOptions-qo_Tsqci.js").then((e) => e.n)), { vue_ui_carousel_table: Te } = re(), D = ce(), O = e, Ee = ge, k = y(ee()), De = y(!1), A = y(!!O.dataset), Oe = he();
39
- _(() => {
40
- ke();
41
- });
42
- let j = s({
43
- get: () => Ne(),
44
- set: (e) => e
45
- }), M = s(() => j.value.debug);
46
- _(() => {
47
- Oe["chart-background"] && M.value && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
48
- });
49
- function ke() {
50
- r(O.dataset) ? a({
51
- componentName: "VueUiCarouselTable",
52
- type: "dataset",
53
- debug: M.value
54
- }) : ((!O.dataset.head || r(O.dataset.head)) && (a({
55
- componentName: "VueUiCarouselTable",
56
- type: "datasetAttribute",
57
- property: "head",
58
- debug: M.value
59
- }), A.value = !1), (!O.dataset.body || r(O.dataset.body)) && (a({
60
- componentName: "VueUiCarouselTable",
61
- type: "datasetAttribute",
62
- property: "body",
63
- debug: M.value
64
- }), A.value = !1)), D.value && (j.value.userOptions.buttons.animation = !1);
65
- }
66
- te({
67
- config: () => j.value,
68
- dataset: () => O.dataset,
69
- component: "VueUiCarouselTable",
70
- rules: [ne.noHint]
71
- });
72
- let Ae = s(() => j.value.userOptions.useCursorPointer), { userOptionsVisible: N, setUserOptionsVisibility: je, keepUserOptionState: Me } = se({ config: j.value });
73
- function Ne() {
74
- return ae({
75
- userConfig: O.config,
76
- defaultConfig: Te
77
- });
78
- }
79
- w(() => O.config, (e) => {
80
- j.value = Ne(), N.value = !j.value.userOptions.showOnChartHover, ke();
81
- }, { deep: !0 }), w(() => O.dataset, (e) => {
82
- W();
83
- }, { deep: !0 });
84
- let { isPrinting: Pe, isImaging: Fe, generatePdf: Ie, generateImage: Le } = ie({
85
- elementId: `carousel-table_${k.value}`,
86
- fileName: j.value.caption.text || "vue-ui-carousel-table",
87
- options: j.value.userOptions.print
88
- }), P = y({ showAnimation: j.value.animation.use }), F = y(null), Re = y(null), I = y(null), L = y(null), R = y(0), z = y(0), B = y(!1), V = y(null), H = y(null), U = y(0);
89
- function W() {
90
- V.value && (H.value = {
91
- elements: V.value.getElementsByTagName("tr"),
92
- heights: Array.from(V.value.getElementsByTagName("tr")).map((e) => e.getBoundingClientRect().height)
93
- });
94
- }
95
- _(W);
96
- let ze = s(() => !H.value || !H.value.heights.length ? 0 : Math.max(...H.value.heights) + R.value + z.value), Be = s(() => O.dataset.body ? j.value.tbody.tr.visible <= O.dataset.body.length ? j.value.tbody.tr.visible : O.dataset.body.length : 0), Ve = s(() => (j.value.tbody.tr.height + j.value.tbody.tr.td.padding.top + j.value.tbody.tr.td.padding.bottom + j.value.tbody.tr.border.size * 2) * Be.value + R.value + z.value), G = y(0), K = y(null), q = y(0), J = y(!1), He = y(0);
97
- _(() => {
98
- I.value && (R.value = I.value.getBoundingClientRect().height), L.value && (z.value = L.value.getBoundingClientRect().height), P.value.showAnimation && H.value && We();
99
- }), _(() => {
100
- if (F.value) {
101
- let e = F.value.querySelector("thead"), t = Array.from(V.value.querySelectorAll("tr"));
102
- function n() {
103
- let n = e.getBoundingClientRect().bottom;
104
- t.forEach((e) => {
105
- e.getBoundingClientRect().top < n ? e.style.visibility = "hidden" : e.style.visibility = "visible";
106
- });
107
- }
108
- F.value.addEventListener("scroll", n), n(), g(() => {
109
- F.value.removeEventListener("scroll", n);
110
- });
111
- }
112
- });
113
- function Ue(e) {
114
- De.value = e, He.value += 1;
115
- }
116
- function We() {
117
- D.value || !K.value && !J.value && (j.value.animation.type === "scroll" ? K.value = requestAnimationFrame(Ke) : K.value = requestAnimationFrame(qe));
118
- }
119
- function Ge() {
120
- if (!F.value) return !1;
121
- let { scrollTop: e, scrollHeight: t, clientHeight: n } = F.value;
122
- return e + n >= t;
123
- }
124
- function Ke(e) {
125
- J.value || (q.value ||= e, e - q.value >= j.value.animation.speedMs && (G.value += H.value.heights[U.value], (Ge() || U.value >= H.value.heights.length) && (G.value = 0, U.value = -1), U.value += 1, F.value && F.value.scrollTo({
126
- top: G.value,
127
- behavior: "smooth"
128
- }), q.value = e), K.value = requestAnimationFrame(Ke));
129
- }
130
- function qe(e) {
131
- if (J.value) return;
132
- q.value ||= e;
133
- let t = e - q.value, n = j.value.animation.speedMs / 4 / 1e3;
134
- t >= n && (G.value += n, G.value >= F.value.scrollHeight - F.value.clientHeight && (G.value = 0), F.value && F.value.scrollTo({
135
- top: G.value,
136
- behavior: "auto"
137
- }), q.value = e), K.value = requestAnimationFrame(qe);
138
- }
139
- function Y() {
140
- J.value = !0, cancelAnimationFrame(K.value), K.value = null;
141
- }
142
- g(Y);
143
- function X() {
144
- J.value && P.value.showAnimation && (J.value = !1, q.value = 0, We());
145
- }
146
- function Je() {
147
- j.value.animation.pauseOnHover && Y();
148
- }
149
- let Z = y(null);
150
- function Ye() {
151
- Y(), clearTimeout(Z.value);
152
- }
153
- function Xe() {
154
- clearTimeout(Z.value), Z.value = setTimeout(X, 1e3);
155
- }
156
- w(() => j.value.animation.use, (e) => {
157
- e ? (P.value.showAnimation = !0, X()) : (P.value.showAnimation = !1, Y());
158
- }), w(() => j.value.animation.type, (e) => {
159
- Y(), G.value = 0, U.value = 0, F.value.scrollTo({
160
- top: 0,
161
- behavior: "auto"
162
- }), X();
163
- });
164
- let Ze = s(() => j.value.responsiveBreakpoint), Q = me(null);
165
- _(() => {
166
- Q.value = new ResizeObserver((e) => {
167
- e.forEach((e) => {
168
- B.value = e.contentRect.width < Ze.value;
169
- }), R.value = I.value ? I.value.getBoundingClientRect().height : 0, z.value = L.value ? L.value.getBoundingClientRect().height : 0, U.value = 0, p(() => {
170
- Y(), q.value = 0, G.value = 0, W(), X();
171
- });
172
- }), F.value && Q.value.observe(F.value);
173
- }), g(() => {
174
- Q.value && Q.value.disconnect();
175
- });
176
- function Qe() {
177
- Ie();
178
- }
179
- function $e() {
180
- P.value.showAnimation = !P.value.showAnimation, P.value.showAnimation ? X() : Y();
181
- }
182
- function et(e = null) {
183
- p(() => {
184
- let r = O.dataset.head.map((e, t) => [[O.dataset.body[t]]]), i = [[j.value.caption.text], [O.dataset.head.map((e) => [e])]].concat(r), a = n(i);
185
- e ? e(a) : t({
186
- csvContent: a,
187
- title: j.value.caption.text || "vue-ui-carousel-table"
188
- });
189
- });
190
- }
191
- async function $() {
192
- if (Ee("copyAlt", {
193
- config: j.value,
194
- dataset: O.dataset
195
- }), !j.value.userOptions.callbacks.altCopy) {
196
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
197
- return;
198
- }
199
- await Promise.resolve(j.value.userOptions.callbacks.altCopy({
200
- config: j.value,
201
- dataset: O.dataset
202
- }));
203
- }
204
- return oe({
205
- pauseAnimation: Y,
206
- resumeAnimation: X,
207
- toggleAnimation: $e,
208
- generateCsv: et,
209
- generatePdf: Qe,
210
- generateImage: Le,
211
- copyAlt: $
212
- }), (t, n) => (v(), l("div", {
213
- class: "vue-data-ui-component vue-ui-carousel-table",
214
- style: {
215
- position: "relative",
216
- overflow: "visible"
217
- },
218
- ref_key: "chartContainer",
219
- ref: Re,
220
- onMouseenter: n[5] ||= () => C(je)(!0),
221
- onMouseleave: n[6] ||= () => C(je)(!1)
222
- }, [
223
- u("div", {
224
- ref_key: "tableContainer",
225
- ref: F,
226
- id: `carousel-table_${k.value}`,
227
- style: h({
228
- height: C(Pe) || C(Fe) ? "auto" : `${Math.max(Ve.value, ze.value)}px`,
229
- containerType: "inline-size",
230
- position: "relative",
231
- overflow: "auto",
232
- fontFamily: j.value.fontFamily
233
- }),
234
- class: pe({
235
- "vue-ui-responsive": B.value,
236
- "is-playing": j.value.scrollbar.hide || !J.value && j.value.scrollbar.showOnlyOnHover
237
- }),
238
- onMouseover: n[0] ||= (e) => Je(),
239
- onMouseleave: n[1] ||= (e) => X(),
240
- onTouchstart: n[2] ||= (e) => Ye(),
241
- onTouchend: n[3] ||= (e) => Xe(),
242
- onTouchcancel: n[4] ||= (e) => Xe()
243
- }, [A.value ? (v(), l("table", {
244
- key: 0,
245
- class: "vue-data-ui-carousel-table",
246
- "aria-labelledby": `carousel-caption-${k.value}`,
247
- style: h({
248
- ...j.value.style,
249
- border: `${j.value.border.size}px solid ${j.value.border.color}`,
250
- width: "100%",
251
- borderCollapse: "collapse",
252
- backgroundColor: j.value.tbody.backgroundColor
253
- })
254
- }, [
255
- u("caption", {
256
- ref_key: "caption",
257
- ref: I,
258
- class: "vue-data-ui-carousel-table-caption",
259
- id: `carousel-caption-${k.value}`,
260
- style: h({
261
- ...j.value.caption.style,
262
- fontFamily: "inherit",
263
- position: "sticky",
264
- top: 0,
265
- zIndex: 2,
266
- paddingTop: j.value.caption.padding.top + "px",
267
- paddingRight: j.value.caption.padding.right + "px",
268
- paddingBottom: j.value.caption.padding.bottom + "px",
269
- paddingLeft: j.value.caption.padding.left + "px",
270
- boxShadow: B.value ? j.value.thead.tr.style.boxShadow : "none",
271
- minHeight: "36px",
272
- display: t.$slots.caption || j.value.caption.text || j.value.userOptions.show ? "" : "none"
273
- })
274
- }, [d(S(j.value.caption.text && !t.$slots.caption ? j.value.caption.text : "") + " ", 1), x(t.$slots, "caption", {}, void 0, !0)], 12, ye),
275
- u("thead", {
276
- role: "rowgroup",
277
- style: h({
278
- ...j.value.thead.style,
279
- position: "sticky",
280
- top: `${t.$slots.caption || j.value.caption.text || j.value.userOptions.show ? R.value : 0}px`,
281
- zIndex: 1
282
- })
283
- }, [u("tr", {
284
- ref_key: "tableRow",
285
- ref: L,
286
- role: "row",
287
- style: h({
288
- ...j.value.thead.tr.style,
289
- border: j.value.thead.tr.border.size ? `${j.value.thead.tr.border.size}px solid ${j.value.thead.tr.border.color}` : "none",
290
- boxShadow: B.value ? "none" : j.value.thead.tr.style.boxShadow
291
- }),
292
- height: `${j.value.thead.tr.height}px`
293
- }, [(v(!0), l(o, null, b(e.dataset.head, (e, n) => (v(), l("th", {
294
- role: "cell",
295
- key: `th_${n}`,
296
- id: `col-${n}`,
297
- scope: "col",
298
- style: h({
299
- ...j.value.thead.tr.th.style,
300
- border: j.value.thead.tr.th.border.size ? `${j.value.thead.tr.th.border.size}px solid ${j.value.thead.tr.th.border.color}` : "none",
301
- paddingTop: j.value.thead.tr.th.padding.top + "px",
302
- paddingRight: j.value.thead.tr.th.padding.right + "px",
303
- paddingBottom: j.value.thead.tr.th.padding.bottom + "px",
304
- paddingLeft: j.value.thead.tr.th.padding.left + "px"
305
- })
306
- }, [d(S(t.$slots.th ? "" : e) + " ", 1), x(t.$slots, "th", fe({ ref_for: !0 }, {
307
- th: e,
308
- colIndex: n
309
- }), void 0, !0)], 12, xe))), 128))], 12, be)], 4),
310
- e.dataset.body && e.dataset.head ? (v(), l("tbody", {
311
- key: 0,
312
- ref_key: "tbody",
313
- ref: V,
314
- "aria-live": "polite",
315
- style: { clipPath: "inset(0,0,0,0)" }
316
- }, [(v(!0), l(o, null, b(e.dataset.body, (n, r) => (v(), l("tr", { style: h({
317
- ...j.value.tbody.tr.style,
318
- border: `${j.value.tbody.tr.border.size}px solid ${j.value.tbody.tr.border.color}`,
319
- verticalAlign: "middle"
320
- }) }, [(v(!0), l(o, null, b(n, (n, a) => (v(), l("td", {
321
- role: "cell",
322
- "data-cell": e.dataset.head[a] || "",
323
- "aria-label": `${e.dataset.head[a]}: ${n}`,
324
- style: h({
325
- ...j.value.tbody.tr.td.style,
326
- border: `${j.value.tbody.tr.td.border.size}px solid ${j.value.tbody.tr.td.border.color}`,
327
- backgroundColor: C(i)(j.value.tbody.tr.td.style.backgroundColor, r % 2 == 0 && j.value.tbody.tr.td.alternateColor ? j.value.tbody.tr.td.alternateOpacity * 100 : 100),
328
- paddingTop: j.value.tbody.tr.td.padding.top + "px",
329
- paddingRight: j.value.tbody.tr.td.padding.right + "px",
330
- paddingBottom: j.value.tbody.tr.td.padding.bottom + "px",
331
- paddingLeft: j.value.tbody.tr.td.padding.left + "px",
332
- verticalAlign: "middle"
333
- }),
334
- height: `${j.value.tbody.tr.height}px`
335
- }, [d(S(t.$slots.td ? "" : n) + " ", 1), x(t.$slots, "td", fe({ ref_for: !0 }, {
336
- td: n,
337
- rowIndex: r,
338
- colIndex: a
339
- }), void 0, !0)], 12, Se))), 256))], 4))), 256))], 512)) : c("", !0)
340
- ], 12, ve)) : c("", !0)], 46, _e),
341
- A.value ? c("", !0) : (v(), le(C(E), {
342
- key: 0,
343
- config: { type: "table" }
344
- })),
345
- j.value.userOptions.show && A.value && (C(Me) || C(N)) ? (v(), le(C(we), {
346
- ref: "details",
347
- key: `user_option_${He.value}`,
348
- backgroundColor: j.value.style.backgroundColor,
349
- color: j.value.style.color,
350
- isPrinting: C(Pe),
351
- isImaging: C(Fe),
352
- uid: k.value,
353
- hasTooltip: !1,
354
- hasPdf: j.value.userOptions.buttons.pdf,
355
- hasImg: j.value.userOptions.buttons.img,
356
- hasXls: j.value.userOptions.buttons.csv,
357
- hasTable: !1,
358
- hasLabel: !1,
359
- hasAnimation: j.value.userOptions.buttons.animation,
360
- isAnimation: !P.value.showAnimation,
361
- hasFullscreen: j.value.userOptions.buttons.fullscreen,
362
- hasAltCopy: j.value.userOptions.buttons.altCopy,
363
- isFullscreen: De.value,
364
- chartElement: Re.value,
365
- position: j.value.userOptions.position,
366
- titles: { ...j.value.userOptions.buttonTitles },
367
- zIndex: 3,
368
- offsetX: 12,
369
- callbacks: j.value.userOptions.callbacks,
370
- printScale: j.value.userOptions.print.scale,
371
- isCursorPointer: Ae.value,
372
- onGeneratePdf: Qe,
373
- onGenerateCsv: et,
374
- onGenerateImage: C(Le),
375
- onToggleAnimation: $e,
376
- onToggleFullscreen: Ue,
377
- onCopyAlt: $,
378
- style: h({ visibility: C(Me) ? C(N) ? "visible" : "hidden" : "visible" })
379
- }, ue({ _: 2 }, [
380
- t.$slots.menuIcon ? {
381
- name: "menuIcon",
382
- fn: T(({ isOpen: e, color: n }) => [x(t.$slots, "menuIcon", m(f({
383
- isOpen: e,
384
- color: n
385
- })), void 0, !0)]),
386
- key: "0"
387
- } : void 0,
388
- t.$slots.optionPdf ? {
389
- name: "optionPdf",
390
- fn: T(() => [x(t.$slots, "optionPdf", {}, void 0, !0)]),
391
- key: "1"
392
- } : void 0,
393
- t.$slots.optionCsv ? {
394
- name: "optionCsv",
395
- fn: T(() => [x(t.$slots, "optionCsv", {}, void 0, !0)]),
396
- key: "2"
397
- } : void 0,
398
- t.$slots.optionImg ? {
399
- name: "optionImg",
400
- fn: T(() => [x(t.$slots, "optionImg", {}, void 0, !0)]),
401
- key: "3"
402
- } : void 0,
403
- t.$slots.optionSvg ? {
404
- name: "optionSvg",
405
- fn: T(() => [x(t.$slots, "optionSvg", {}, void 0, !0)]),
406
- key: "4"
407
- } : void 0,
408
- t.$slots.optionAnimation ? {
409
- name: "optionAnimation",
410
- fn: T(({ toggleAnimation: e, isAnimated: n }) => [x(t.$slots, "optionAnimation", m(f({
411
- toggleAnimation: e,
412
- isAnimated: n
413
- })), void 0, !0)]),
414
- key: "5"
415
- } : void 0,
416
- t.$slots.optionFullscreen ? {
417
- name: "optionFullscreen",
418
- fn: T(({ toggleFullscreen: e, isFullscreen: n }) => [x(t.$slots, "optionFullscreen", m(f({
419
- toggleFullscreen: e,
420
- isFullscreen: n
421
- })), void 0, !0)]),
422
- key: "6"
423
- } : void 0,
424
- t.$slots.optionAltCopy ? {
425
- name: "optionAltCopy",
426
- fn: T(({ altCopy: e }) => [x(t.$slots, "optionAltCopy", m(f({ altCopy: e })), void 0, !0)]),
427
- key: "7"
428
- } : void 0,
429
- t.$slots["custom-menu-before"] ? {
430
- name: "custom-menu-before",
431
- fn: T(() => [x(t.$slots, "custom-menu-before", {}, void 0, !0)]),
432
- key: "8"
433
- } : void 0,
434
- t.$slots["custom-menu-after"] ? {
435
- name: "custom-menu-after",
436
- fn: T(() => [x(t.$slots, "custom-menu-after", {}, void 0, !0)]),
437
- key: "9"
438
- } : void 0
439
- ]), 1032, [
440
- "backgroundColor",
441
- "color",
442
- "isPrinting",
443
- "isImaging",
444
- "uid",
445
- "hasPdf",
446
- "hasImg",
447
- "hasXls",
448
- "hasAnimation",
449
- "isAnimation",
450
- "hasFullscreen",
451
- "hasAltCopy",
452
- "isFullscreen",
453
- "chartElement",
454
- "position",
455
- "titles",
456
- "callbacks",
457
- "printScale",
458
- "isCursorPointer",
459
- "onGenerateImage",
460
- "style"
461
- ])) : c("", !0),
462
- t.$slots.source ? (v(), l("div", Ce, [x(t.$slots, "source", {}, void 0, !0)], 512)) : c("", !0)
463
- ], 544));
464
- }
465
- }, [["__scopeId", "data-v-42d3302a"]]);
466
- //#endregion
467
- export { ge as n, E as t };