vue-data-ui 3.23.0 → 3.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-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/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -1,463 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Bt as n, D as r, jt as i, q as a, tt as o } from "./lib-BuMGJ_a0.js";
3
- import { n as ee, t as te } from "./useHints-Dq_w2E8B.js";
4
- import { t as ne } from "./useConfig-BilxnBNr.js";
5
- import { t as re } from "./usePrinter-BFvi4jVy.js";
6
- import { t as ie } from "./useNestedProp--NSEmhOH.js";
7
- import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
- import { t as oe } from "./useUserOptionState-DK-_1ddE.js";
9
- import { t as se } from "./usePrefersMotion-BC-CsqR1.js";
10
- import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as ce, createTextVNode as p, defineAsyncComponent as le, guardReactiveProps as m, mergeProps as ue, nextTick as de, normalizeClass as fe, 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 pe, toDisplayString as C, unref as w, useSlots as me, watch as T, withCtx as E } from "vue";
11
- //#region src/components/vue-ui-carousel-table.vue
12
- var he = /* @__PURE__ */ e({ default: () => D }), ge = ["id"], _e = ["aria-labelledby"], ve = ["id"], ye = ["height"], be = ["id"], xe = [
13
- "data-cell",
14
- "aria-label",
15
- "height"
16
- ], Se = {
17
- key: 2,
18
- ref: "source",
19
- dir: "auto"
20
- }, D = /*#__PURE__*/ ae({
21
- __name: "vue-ui-carousel-table",
22
- props: {
23
- config: {
24
- type: Object,
25
- default() {
26
- return {};
27
- }
28
- },
29
- dataset: {
30
- type: Object,
31
- default() {
32
- return {};
33
- }
34
- }
35
- },
36
- emits: ["copyAlt"],
37
- setup(e, { expose: ae, emit: he }) {
38
- let D = le(() => import("./vue-ui-skeleton-B9ZP1w-i.js").then((e) => e.n)), Ce = le(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), { vue_ui_carousel_table: we } = ne(), Te = se(), O = e, Ee = he, k = b(a()), De = b(!1), A = b(!!O.dataset), Oe = me();
39
- v(() => {
40
- j();
41
- }), v(() => {
42
- Oe["chart-background"] && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
43
- });
44
- function j() {
45
- i(O.dataset) ? o({
46
- componentName: "VueUiCarouselTable",
47
- type: "dataset"
48
- }) : ((!O.dataset.head || i(O.dataset.head)) && (o({
49
- componentName: "VueUiCarouselTable",
50
- type: "datasetAttribute",
51
- property: "head"
52
- }), A.value = !1), (!O.dataset.body || i(O.dataset.body)) && (o({
53
- componentName: "VueUiCarouselTable",
54
- type: "datasetAttribute",
55
- property: "body"
56
- }), A.value = !1)), Te.value && (M.value.userOptions.buttons.animation = !1);
57
- }
58
- let M = c({
59
- get: () => Me(),
60
- set: (e) => e
61
- });
62
- ee({
63
- config: () => M.value,
64
- dataset: () => O.dataset,
65
- component: "VueUiCarouselTable",
66
- rules: [te.noHint]
67
- });
68
- let ke = c(() => M.value.userOptions.useCursorPointer), { userOptionsVisible: N, setUserOptionsVisibility: Ae, keepUserOptionState: je } = oe({ config: M.value });
69
- function Me() {
70
- return ie({
71
- userConfig: O.config,
72
- defaultConfig: we
73
- });
74
- }
75
- T(() => O.config, (e) => {
76
- M.value = Me(), N.value = !M.value.userOptions.showOnChartHover, j();
77
- }, { deep: !0 }), T(() => O.dataset, (e) => {
78
- W();
79
- }, { deep: !0 });
80
- let { isPrinting: Ne, isImaging: Pe, generatePdf: Fe, generateImage: Ie } = re({
81
- elementId: `carousel-table_${k.value}`,
82
- fileName: M.value.caption.text || "vue-ui-carousel-table",
83
- options: M.value.userOptions.print
84
- }), P = b({ showAnimation: M.value.animation.use }), F = b(null), Le = 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);
85
- function W() {
86
- V.value && (H.value = {
87
- elements: V.value.getElementsByTagName("tr"),
88
- heights: Array.from(V.value.getElementsByTagName("tr")).map((e) => e.getBoundingClientRect().height)
89
- });
90
- }
91
- v(W);
92
- let Re = c(() => !H.value || !H.value.heights.length ? 0 : Math.max(...H.value.heights) + R.value + z.value), ze = c(() => O.dataset.body ? M.value.tbody.tr.visible <= O.dataset.body.length ? M.value.tbody.tr.visible : O.dataset.body.length : 0), Be = c(() => (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) * ze.value + R.value + z.value), G = b(0), K = b(null), q = b(0), J = b(!1), Ve = b(0);
93
- v(() => {
94
- I.value && (R.value = I.value.getBoundingClientRect().height), L.value && (z.value = L.value.getBoundingClientRect().height), P.value.showAnimation && H.value && Ue();
95
- }), v(() => {
96
- if (F.value) {
97
- let e = F.value.querySelector("thead"), t = Array.from(V.value.querySelectorAll("tr"));
98
- function n() {
99
- let n = e.getBoundingClientRect().bottom;
100
- t.forEach((e) => {
101
- e.getBoundingClientRect().top < n ? e.style.visibility = "hidden" : e.style.visibility = "visible";
102
- });
103
- }
104
- F.value.addEventListener("scroll", n), n(), _(() => {
105
- F.value.removeEventListener("scroll", n);
106
- });
107
- }
108
- });
109
- function He(e) {
110
- De.value = e, Ve.value += 1;
111
- }
112
- function Ue() {
113
- Te.value || !K.value && !J.value && (M.value.animation.type === "scroll" ? K.value = requestAnimationFrame(Ge) : K.value = requestAnimationFrame(Ke));
114
- }
115
- function We() {
116
- if (!F.value) return !1;
117
- let { scrollTop: e, scrollHeight: t, clientHeight: n } = F.value;
118
- return e + n >= t;
119
- }
120
- function Ge(e) {
121
- J.value || (q.value ||= e, e - q.value >= M.value.animation.speedMs && (G.value += H.value.heights[U.value], (We() || U.value >= H.value.heights.length) && (G.value = 0, U.value = -1), U.value += 1, F.value && F.value.scrollTo({
122
- top: G.value,
123
- behavior: "smooth"
124
- }), q.value = e), K.value = requestAnimationFrame(Ge));
125
- }
126
- function Ke(e) {
127
- if (J.value) return;
128
- q.value ||= e;
129
- let t = e - q.value, n = M.value.animation.speedMs / 4 / 1e3;
130
- t >= n && (G.value += n, G.value >= F.value.scrollHeight - F.value.clientHeight && (G.value = 0), F.value && F.value.scrollTo({
131
- top: G.value,
132
- behavior: "auto"
133
- }), q.value = e), K.value = requestAnimationFrame(Ke);
134
- }
135
- function Y() {
136
- J.value = !0, cancelAnimationFrame(K.value), K.value = null;
137
- }
138
- _(Y);
139
- function X() {
140
- !J.value || !P.value.showAnimation || (J.value = !1, q.value = 0, Ue());
141
- }
142
- function qe() {
143
- M.value.animation.pauseOnHover && Y();
144
- }
145
- let Z = b(null);
146
- function Je() {
147
- Y(), clearTimeout(Z.value);
148
- }
149
- function Q() {
150
- clearTimeout(Z.value), Z.value = setTimeout(X, 1e3);
151
- }
152
- T(() => M.value.animation.use, (e) => {
153
- e ? (P.value.showAnimation = !0, X()) : (P.value.showAnimation = !1, Y());
154
- }), T(() => M.value.animation.type, (e) => {
155
- Y(), G.value = 0, U.value = 0, F.value.scrollTo({
156
- top: 0,
157
- behavior: "auto"
158
- }), X();
159
- });
160
- let Ye = c(() => M.value.responsiveBreakpoint), $ = pe(null);
161
- v(() => {
162
- $.value = new ResizeObserver((e) => {
163
- e.forEach((e) => {
164
- B.value = e.contentRect.width < Ye.value;
165
- }), R.value = I.value ? I.value.getBoundingClientRect().height : 0, z.value = L.value ? L.value.getBoundingClientRect().height : 0, U.value = 0, de(() => {
166
- Y(), q.value = 0, G.value = 0, W(), X();
167
- });
168
- }), F.value && $.value.observe(F.value);
169
- }), _(() => {
170
- $.value && $.value.disconnect();
171
- });
172
- function Xe() {
173
- Fe();
174
- }
175
- function Ze() {
176
- P.value.showAnimation = !P.value.showAnimation, P.value.showAnimation ? X() : Y();
177
- }
178
- function Qe(e = null) {
179
- de(() => {
180
- let n = O.dataset.head.map((e, t) => [[O.dataset.body[t]]]), i = r([[M.value.caption.text], [O.dataset.head.map((e) => [e])]].concat(n));
181
- e ? e(i) : t({
182
- csvContent: i,
183
- title: M.value.caption.text || "vue-ui-carousel-table"
184
- });
185
- });
186
- }
187
- async function $e() {
188
- if (Ee("copyAlt", {
189
- config: M.value,
190
- dataset: O.dataset
191
- }), !M.value.userOptions.callbacks.altCopy) {
192
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
193
- return;
194
- }
195
- await Promise.resolve(M.value.userOptions.callbacks.altCopy({
196
- config: M.value,
197
- dataset: O.dataset
198
- }));
199
- }
200
- return ae({
201
- pauseAnimation: Y,
202
- resumeAnimation: X,
203
- toggleAnimation: Ze,
204
- generateCsv: Qe,
205
- generatePdf: Xe,
206
- generateImage: Ie,
207
- copyAlt: $e
208
- }), (t, r) => (y(), d("div", {
209
- class: "vue-data-ui-component vue-ui-carousel-table",
210
- style: {
211
- position: "relative",
212
- overflow: "visible"
213
- },
214
- ref_key: "chartContainer",
215
- ref: Le,
216
- onMouseenter: r[5] ||= () => w(Ae)(!0),
217
- onMouseleave: r[6] ||= () => w(Ae)(!1)
218
- }, [
219
- f("div", {
220
- ref_key: "tableContainer",
221
- ref: F,
222
- id: `carousel-table_${k.value}`,
223
- style: g({
224
- height: w(Ne) || w(Pe) ? "auto" : `${Math.max(Be.value, Re.value)}px`,
225
- containerType: "inline-size",
226
- position: "relative",
227
- overflow: "auto",
228
- fontFamily: M.value.fontFamily
229
- }),
230
- class: fe({
231
- "vue-ui-responsive": B.value,
232
- "is-playing": M.value.scrollbar.hide || !J.value && M.value.scrollbar.showOnlyOnHover
233
- }),
234
- onMouseover: r[0] ||= (e) => qe(),
235
- onMouseleave: r[1] ||= (e) => X(),
236
- onTouchstart: r[2] ||= (e) => Je(),
237
- onTouchend: r[3] ||= (e) => Q(),
238
- onTouchcancel: r[4] ||= (e) => Q()
239
- }, [A.value ? (y(), d("table", {
240
- key: 0,
241
- class: "vue-data-ui-carousel-table",
242
- "aria-labelledby": `carousel-caption-${k.value}`,
243
- style: g({
244
- ...M.value.style,
245
- border: `${M.value.border.size}px solid ${M.value.border.color}`,
246
- width: "100%",
247
- borderCollapse: "collapse",
248
- backgroundColor: M.value.tbody.backgroundColor
249
- })
250
- }, [
251
- f("caption", {
252
- ref_key: "caption",
253
- ref: I,
254
- class: "vue-data-ui-carousel-table-caption",
255
- id: `carousel-caption-${k.value}`,
256
- style: g({
257
- ...M.value.caption.style,
258
- fontFamily: "inherit",
259
- position: "sticky",
260
- top: 0,
261
- zIndex: 2,
262
- paddingTop: M.value.caption.padding.top + "px",
263
- paddingRight: M.value.caption.padding.right + "px",
264
- paddingBottom: M.value.caption.padding.bottom + "px",
265
- paddingLeft: M.value.caption.padding.left + "px",
266
- boxShadow: B.value ? M.value.thead.tr.style.boxShadow : "none",
267
- minHeight: "36px",
268
- display: t.$slots.caption || M.value.caption.text || M.value.userOptions.show ? "" : "none"
269
- })
270
- }, [p(C(M.value.caption.text && !t.$slots.caption ? M.value.caption.text : "") + " ", 1), S(t.$slots, "caption", {}, void 0, !0)], 12, ve),
271
- f("thead", {
272
- role: "rowgroup",
273
- style: g({
274
- ...M.value.thead.style,
275
- position: "sticky",
276
- top: `${t.$slots.caption || M.value.caption.text || M.value.userOptions.show ? R.value : 0}px`,
277
- zIndex: 1
278
- })
279
- }, [f("tr", {
280
- ref_key: "tableRow",
281
- ref: L,
282
- role: "row",
283
- style: g({
284
- ...M.value.thead.tr.style,
285
- border: M.value.thead.tr.border.size ? `${M.value.thead.tr.border.size}px solid ${M.value.thead.tr.border.color}` : "none",
286
- boxShadow: B.value ? "none" : M.value.thead.tr.style.boxShadow
287
- }),
288
- height: `${M.value.thead.tr.height}px`
289
- }, [(y(!0), d(s, null, x(e.dataset.head, (e, n) => (y(), d("th", {
290
- role: "cell",
291
- key: `th_${n}`,
292
- id: `col-${n}`,
293
- scope: "col",
294
- style: g({
295
- ...M.value.thead.tr.th.style,
296
- 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",
297
- paddingTop: M.value.thead.tr.th.padding.top + "px",
298
- paddingRight: M.value.thead.tr.th.padding.right + "px",
299
- paddingBottom: M.value.thead.tr.th.padding.bottom + "px",
300
- paddingLeft: M.value.thead.tr.th.padding.left + "px"
301
- })
302
- }, [p(C(t.$slots.th ? "" : e) + " ", 1), S(t.$slots, "th", ue({ ref_for: !0 }, {
303
- th: e,
304
- colIndex: n
305
- }), void 0, !0)], 12, be))), 128))], 12, ye)], 4),
306
- e.dataset.body && e.dataset.head ? (y(), d("tbody", {
307
- key: 0,
308
- ref_key: "tbody",
309
- ref: V,
310
- "aria-live": "polite",
311
- style: { clipPath: "inset(0,0,0,0)" }
312
- }, [(y(!0), d(s, null, x(e.dataset.body, (r, i) => (y(), d("tr", { style: g({
313
- ...M.value.tbody.tr.style,
314
- border: `${M.value.tbody.tr.border.size}px solid ${M.value.tbody.tr.border.color}`,
315
- verticalAlign: "middle"
316
- }) }, [(y(!0), d(s, null, x(r, (r, a) => (y(), d("td", {
317
- role: "cell",
318
- "data-cell": e.dataset.head[a] || "",
319
- "aria-label": `${e.dataset.head[a]}: ${r}`,
320
- style: g({
321
- ...M.value.tbody.tr.td.style,
322
- border: `${M.value.tbody.tr.td.border.size}px solid ${M.value.tbody.tr.td.border.color}`,
323
- 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),
324
- paddingTop: M.value.tbody.tr.td.padding.top + "px",
325
- paddingRight: M.value.tbody.tr.td.padding.right + "px",
326
- paddingBottom: M.value.tbody.tr.td.padding.bottom + "px",
327
- paddingLeft: M.value.tbody.tr.td.padding.left + "px",
328
- verticalAlign: "middle"
329
- }),
330
- height: `${M.value.tbody.tr.height}px`
331
- }, [p(C(t.$slots.td ? "" : r) + " ", 1), S(t.$slots, "td", ue({ ref_for: !0 }, {
332
- td: r,
333
- rowIndex: i,
334
- colIndex: a
335
- }), void 0, !0)], 12, xe))), 256))], 4))), 256))], 512)) : u("", !0)
336
- ], 12, _e)) : u("", !0)], 46, ge),
337
- A.value ? u("", !0) : (y(), l(w(D), {
338
- key: 0,
339
- config: { type: "table" }
340
- })),
341
- M.value.userOptions.show && A.value && (w(je) || w(N)) ? (y(), l(w(Ce), {
342
- ref: "details",
343
- key: `user_option_${Ve.value}`,
344
- backgroundColor: M.value.style.backgroundColor,
345
- color: M.value.style.color,
346
- isPrinting: w(Ne),
347
- isImaging: w(Pe),
348
- uid: k.value,
349
- hasTooltip: !1,
350
- hasPdf: M.value.userOptions.buttons.pdf,
351
- hasImg: M.value.userOptions.buttons.img,
352
- hasXls: M.value.userOptions.buttons.csv,
353
- hasTable: !1,
354
- hasLabel: !1,
355
- hasAnimation: M.value.userOptions.buttons.animation,
356
- isAnimation: !P.value.showAnimation,
357
- hasFullscreen: M.value.userOptions.buttons.fullscreen,
358
- hasAltCopy: M.value.userOptions.buttons.altCopy,
359
- isFullscreen: De.value,
360
- chartElement: Le.value,
361
- position: M.value.userOptions.position,
362
- titles: { ...M.value.userOptions.buttonTitles },
363
- zIndex: 3,
364
- offsetX: 12,
365
- callbacks: M.value.userOptions.callbacks,
366
- printScale: M.value.userOptions.print.scale,
367
- isCursorPointer: ke.value,
368
- onGeneratePdf: Xe,
369
- onGenerateCsv: Qe,
370
- onGenerateImage: w(Ie),
371
- onToggleAnimation: Ze,
372
- onToggleFullscreen: He,
373
- onCopyAlt: $e,
374
- style: g({ visibility: w(je) ? w(N) ? "visible" : "hidden" : "visible" })
375
- }, ce({ _: 2 }, [
376
- t.$slots.menuIcon ? {
377
- name: "menuIcon",
378
- fn: E(({ isOpen: e, color: n }) => [S(t.$slots, "menuIcon", h(m({
379
- isOpen: e,
380
- color: n
381
- })), void 0, !0)]),
382
- key: "0"
383
- } : void 0,
384
- t.$slots.optionPdf ? {
385
- name: "optionPdf",
386
- fn: E(() => [S(t.$slots, "optionPdf", {}, void 0, !0)]),
387
- key: "1"
388
- } : void 0,
389
- t.$slots.optionCsv ? {
390
- name: "optionCsv",
391
- fn: E(() => [S(t.$slots, "optionCsv", {}, void 0, !0)]),
392
- key: "2"
393
- } : void 0,
394
- t.$slots.optionImg ? {
395
- name: "optionImg",
396
- fn: E(() => [S(t.$slots, "optionImg", {}, void 0, !0)]),
397
- key: "3"
398
- } : void 0,
399
- t.$slots.optionSvg ? {
400
- name: "optionSvg",
401
- fn: E(() => [S(t.$slots, "optionSvg", {}, void 0, !0)]),
402
- key: "4"
403
- } : void 0,
404
- t.$slots.optionAnimation ? {
405
- name: "optionAnimation",
406
- fn: E(({ toggleAnimation: e, isAnimated: n }) => [S(t.$slots, "optionAnimation", h(m({
407
- toggleAnimation: e,
408
- isAnimated: n
409
- })), void 0, !0)]),
410
- key: "5"
411
- } : void 0,
412
- t.$slots.optionFullscreen ? {
413
- name: "optionFullscreen",
414
- fn: E(({ toggleFullscreen: e, isFullscreen: n }) => [S(t.$slots, "optionFullscreen", h(m({
415
- toggleFullscreen: e,
416
- isFullscreen: n
417
- })), void 0, !0)]),
418
- key: "6"
419
- } : void 0,
420
- t.$slots.optionAltCopy ? {
421
- name: "optionAltCopy",
422
- fn: E(({ altCopy: e }) => [S(t.$slots, "optionAltCopy", h(m({ altCopy: e })), void 0, !0)]),
423
- key: "7"
424
- } : void 0,
425
- t.$slots["custom-menu-before"] ? {
426
- name: "custom-menu-before",
427
- fn: E(() => [S(t.$slots, "custom-menu-before", {}, void 0, !0)]),
428
- key: "8"
429
- } : void 0,
430
- t.$slots["custom-menu-after"] ? {
431
- name: "custom-menu-after",
432
- fn: E(() => [S(t.$slots, "custom-menu-after", {}, void 0, !0)]),
433
- key: "9"
434
- } : void 0
435
- ]), 1032, [
436
- "backgroundColor",
437
- "color",
438
- "isPrinting",
439
- "isImaging",
440
- "uid",
441
- "hasPdf",
442
- "hasImg",
443
- "hasXls",
444
- "hasAnimation",
445
- "isAnimation",
446
- "hasFullscreen",
447
- "hasAltCopy",
448
- "isFullscreen",
449
- "chartElement",
450
- "position",
451
- "titles",
452
- "callbacks",
453
- "printScale",
454
- "isCursorPointer",
455
- "onGenerateImage",
456
- "style"
457
- ])) : u("", !0),
458
- t.$slots.source ? (y(), d("div", Se, [S(t.$slots, "source", {}, void 0, !0)], 512)) : u("", !0)
459
- ], 544));
460
- }
461
- }, [["__scopeId", "data-v-bf29943a"]]);
462
- //#endregion
463
- export { he as n, D as t };