vue-data-ui 3.25.3 → 3.25.4

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 (194) hide show
  1. package/dist/{Arrow-Bvx4_tSN.js → Arrow-DLn-pcrh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BCQY4Tir.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
  3. package/dist/{BaseIcon-CVrQHhw1.js → BaseIcon-t83PDe9k.js} +1 -1
  4. package/dist/{BaseLegendToggle-BF-thEu0.js → BaseLegendToggle-__JnV08B.js} +1 -1
  5. package/dist/{BaseZoomControls-BAHeLgV8.js → BaseZoomControls-Xo16vFa4.js} +2 -2
  6. package/dist/{ColorPicker-B0CMtFkc.js → ColorPicker-ZJrR3Olp.js} +2 -2
  7. package/dist/{DataTable-BBpTEQY5.js → DataTable-COIO9gi4.js} +2 -2
  8. package/dist/{HillActions-ChMsbYib.js → HillActions-Cl-dNBZR.js} +1 -1
  9. package/dist/{Legend-DmitJZi5.js → Legend-X4kF4PvW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DNIpZGOP.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
  11. package/dist/{PackageVersion-hRJtldYi.js → PackageVersion-5SWftabm.js} +1 -1
  12. package/dist/{PenAndPaper-DzM1vUXR.js → PenAndPaper-B_SdRSKH.js} +12 -12
  13. package/dist/{Shape-BBKymE00.js → Shape-CIqU-p2F.js} +1 -1
  14. package/dist/{SlicerPreview-W4PWXK69.js → SlicerPreview-GvsdvE-h.js} +27 -27
  15. package/dist/{SparkTooltip-9hXY74AD.js → SparkTooltip-C-Y-mDrc.js} +1 -1
  16. package/dist/{Title-DIf1lG-_.js → Title-CPHi-evi.js} +1 -1
  17. package/dist/{Tooltip-C3jBTIhR.js → Tooltip-hhrkQ3Lk.js} +1 -1
  18. package/dist/{UserOptions-m0uxKoiy.js → UserOptions-f3Q0nqrj.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-DPcw-QzB.js → dom-to-png-C6cQJ5Hq.js} +1 -1
  91. package/dist/{exposedLib-BGrCpxDo.js → exposedLib-CG3aXJ-v.js} +9 -9
  92. package/dist/{img-IjqD_xWl.js → img-DhGApYG0.js} +1 -1
  93. package/dist/{labelUtils-Bgt85NUY.js → labelUtils-BXX2NzRe.js} +1 -1
  94. package/dist/{lib-C7t_vY8w.js → lib-Dql7cqyA.js} +200 -177
  95. package/dist/{package-NccReU84.js → package-DmsdiyeS.js} +1 -1
  96. package/dist/{pdf-HBji623H.js → pdf-Di5yPEw9.js} +1 -1
  97. package/dist/{render-common-CHj9aLwI.js → render-common-zoPh9a78.js} +2 -2
  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/{useNestedProp-BfTgFMXF.js → useNestedProp-Chvyfpl-.js} +1 -1
  103. package/dist/{usePrinter-VVTuFI6H.js → usePrinter-DISD7q5m.js} +2 -2
  104. package/dist/utils.js +2 -2
  105. package/dist/{vue-data-ui-xQI9KcZd.js → vue-data-ui-DTj71yB7.js} +70 -70
  106. package/dist/vue-data-ui.js +73 -73
  107. package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
  108. package/dist/{vue-ui-accordion-DuARUUdY.js → vue-ui-accordion-D4zsdacF.js} +3 -3
  109. package/dist/{vue-ui-age-pyramid-D-ggLbES.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
  110. package/dist/{vue-ui-annotator-MvDwnq7k.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
  111. package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
  112. package/dist/{vue-ui-bump-DiH9-DLV.js → vue-ui-bump-BkOtQNWe.js} +54 -54
  113. package/dist/{vue-ui-candlestick-B486ChH8.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
  114. package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
  115. package/dist/{vue-ui-chestnut-DGESmviK.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
  116. package/dist/{vue-ui-chord-DQJ7RuvS.js → vue-ui-chord-DQRBgVOx.js} +31 -31
  117. package/dist/{vue-ui-circle-pack-YXuSpTIB.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
  118. package/dist/{vue-ui-cursor-Dju_nWZh.js → vue-ui-cursor-BHyXRadA.js} +3 -3
  119. package/dist/{vue-ui-dag-C2f1v-IC.js → vue-ui-dag-CyVqaLbF.js} +75 -75
  120. package/dist/{vue-ui-dashboard-pNI0se0n.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
  121. package/dist/{vue-ui-digits-C5Z_lpSZ.js → vue-ui-digits-BBL8uERO.js} +3 -3
  122. package/dist/{vue-ui-donut-DZXYGFJc.js → vue-ui-donut-DcgUuefk.js} +101 -101
  123. package/dist/vue-ui-donut-DfiocufT.js +2413 -0
  124. package/dist/{vue-ui-donut-evolution-DQn-87Ak.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
  125. package/dist/{vue-ui-dumbbell-CDtBLV2m.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
  126. package/dist/{vue-ui-flow-B0L2gQ3k.js → vue-ui-flow-CoylrfnO.js} +40 -40
  127. package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
  128. package/dist/{vue-ui-galaxy-yF4pKrlD.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
  129. package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
  130. package/dist/{vue-ui-geo-CFz30xe0.js → vue-ui-geo-jR4P4pbt.js} +36 -36
  131. package/dist/{vue-ui-gizmo-ys9jjs02.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
  132. package/dist/{vue-ui-heatmap-qigx4Z5I.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
  133. package/dist/{vue-ui-hill-K3JKKF1b.js → vue-ui-hill-fFq7pm-g.js} +9 -9
  134. package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
  135. package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
  136. package/dist/{vue-ui-kpi-0W2GpUBQ.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
  137. package/dist/{vue-ui-label-CBM2b0Aq.js → vue-ui-label-BSgLalWD.js} +64 -64
  138. package/dist/{vue-ui-mini-loader-C-2BQ3hi.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
  139. package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
  140. package/dist/{vue-ui-mood-radar-VCVoA-i7.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
  141. package/dist/{vue-ui-nested-donuts-CFPhvIy3.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
  142. package/dist/{vue-ui-onion-BMucjktR.js → vue-ui-onion-B7oFulsQ.js} +119 -119
  143. package/dist/{vue-ui-parallel-coordinate-plot-BhahYf50.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
  144. package/dist/{vue-ui-quadrant-77idomwS.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
  145. package/dist/{vue-ui-quick-chart-CNKuNur5.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
  146. package/dist/{vue-ui-radar-CuT1AXHF.js → vue-ui-radar-Bzx69q8f.js} +311 -311
  147. package/dist/{vue-ui-rating-CTuSylET.js → vue-ui-rating-CimC9FQ9.js} +2 -2
  148. package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
  149. package/dist/{vue-ui-ridgeline-CijnGJ6-.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
  150. package/dist/{vue-ui-rings-DDGKIiGT.js → vue-ui-rings-qPL5Iwji.js} +327 -327
  151. package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
  152. package/dist/{vue-ui-skeleton-Clzzx8hc.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
  153. package/dist/{vue-ui-smiley-DILPVI14.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
  154. package/dist/{vue-ui-spark-trend-CYIyrTQj.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
  155. package/dist/{vue-ui-sparkbar-C2HcYmPm.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
  156. package/dist/{vue-ui-sparkgauge-BLJ0mImj.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
  157. package/dist/{vue-ui-sparkhistogram-1FYy_qM3.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
  158. package/dist/{vue-ui-sparkline-C11KKbIn.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
  159. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
  160. package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
  161. package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
  162. package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
  163. package/dist/vue-ui-table-BQna1wL6.js +1352 -0
  164. package/dist/{vue-ui-table-heatmap-Dj06PSQK.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
  165. package/dist/{vue-ui-table-sparkline-1h7A5F1N.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
  166. package/dist/{vue-ui-thermometer-CVKlj7fU.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
  167. package/dist/{vue-ui-timer-BWz6K56E.js → vue-ui-timer-CvHP4HoW.js} +5 -5
  168. package/dist/{vue-ui-tiremarks-D26MLo5F.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
  169. package/dist/{vue-ui-treemap-33VL-HnF.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
  170. package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
  171. package/dist/{vue-ui-wheel-BPbR_-t8.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
  172. package/dist/{vue-ui-word-cloud-RFcpvswb.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
  173. package/dist/{vue-ui-world-CseHQjz7.js → vue-ui-world-D0_2upjg.js} +116 -116
  174. package/dist/{vue-ui-xy-D_biv7Wg.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
  175. package/dist/{vue-ui-xy-C3UI9YIM.js → vue-ui-xy-D_5FfaH-.js} +423 -422
  176. package/dist/{vue-ui-xy-canvas-R1I0sffy.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
  177. package/package.json +1 -1
  178. package/dist/vue-ui-3d-bar-Cf5mJEzr.js +0 -1829
  179. package/dist/vue-ui-bullet-DWe51l3b.js +0 -700
  180. package/dist/vue-ui-carousel-table-BPNQQVsu.js +0 -467
  181. package/dist/vue-ui-donut-CaMaNvIF.js +0 -2413
  182. package/dist/vue-ui-funnel-G5nO77o5.js +0 -747
  183. package/dist/vue-ui-gauge-DA92q6HZ.js +0 -932
  184. package/dist/vue-ui-history-plot-DUoXwHLn.js +0 -1696
  185. package/dist/vue-ui-horizontal-bar-C51hv9PU.js +0 -1709
  186. package/dist/vue-ui-molecule-B1ChvZql.js +0 -929
  187. package/dist/vue-ui-relation-circle-DxONGvTM.js +0 -903
  188. package/dist/vue-ui-scatter-Cwlhv9y6.js +0 -2403
  189. package/dist/vue-ui-sparkstackbar-B4H_cgzW.js +0 -738
  190. package/dist/vue-ui-stackbar-CBOAAVtS.js +0 -2349
  191. package/dist/vue-ui-stackline-24PeB3yN.js +0 -2463
  192. package/dist/vue-ui-strip-plot-C3Q1lECl.js +0 -1738
  193. package/dist/vue-ui-table-DMJWplCT.js +0 -1352
  194. package/dist/vue-ui-waffle-DIFpyE2V.js +0 -1619
@@ -1,467 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Ht as ee, Nt as r, nt as i, q as te } from "./lib-C7t_vY8w.js";
3
- import { n as ne, t as re } from "./useHints-Dq_w2E8B.js";
4
- import { t as ie } from "./useConfig-CyCVHo81.js";
5
- import { t as ae } from "./usePrinter-VVTuFI6H.js";
6
- import { t as oe } from "./useNestedProp-BfTgFMXF.js";
7
- import { t as se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
- import { t as ce } from "./useUserOptionState-DK-_1ddE.js";
9
- import { t as le } from "./usePrefersMotion-BC-CsqR1.js";
10
- import { Fragment as a, computed as o, createBlock as ue, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as de, createTextVNode as u, defineAsyncComponent as fe, guardReactiveProps as d, mergeProps as f, nextTick as pe, normalizeClass as me, 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 he, toDisplayString as x, unref as S, useSlots as ge, watch as C, withCtx as w } from "vue";
11
- //#region src/components/vue-ui-carousel-table.vue
12
- var _e = /* @__PURE__ */ e({ default: () => T }), ve = ["id"], ye = ["aria-labelledby"], be = ["id"], xe = ["height"], Se = ["id"], Ce = [
13
- "data-cell",
14
- "aria-label",
15
- "height"
16
- ], we = {
17
- key: 2,
18
- ref: "source",
19
- dir: "auto"
20
- }, T = /*#__PURE__*/ se({
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: se, emit: _e }) {
38
- let T = fe(() => import("./vue-ui-skeleton-Clzzx8hc.js").then((e) => e.n)), Te = fe(() => import("./UserOptions-m0uxKoiy.js").then((e) => e.n)), { vue_ui_carousel_table: Ee } = ie(), E = le(), D = e, De = _e, O = v(te()), Oe = v(!1), k = v(!!D.dataset), ke = ge();
39
- g(() => {
40
- Ae();
41
- });
42
- let A = o({
43
- get: () => Pe(),
44
- set: (e) => e
45
- }), j = o(() => A.value.debug);
46
- g(() => {
47
- ke["chart-background"] && j.value && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
48
- });
49
- function Ae() {
50
- r(D.dataset) ? i({
51
- componentName: "VueUiCarouselTable",
52
- type: "dataset",
53
- debug: j.value
54
- }) : ((!D.dataset.head || r(D.dataset.head)) && (i({
55
- componentName: "VueUiCarouselTable",
56
- type: "datasetAttribute",
57
- property: "head",
58
- debug: j.value
59
- }), k.value = !1), (!D.dataset.body || r(D.dataset.body)) && (i({
60
- componentName: "VueUiCarouselTable",
61
- type: "datasetAttribute",
62
- property: "body",
63
- debug: j.value
64
- }), k.value = !1)), E.value && (A.value.userOptions.buttons.animation = !1);
65
- }
66
- ne({
67
- config: () => A.value,
68
- dataset: () => D.dataset,
69
- component: "VueUiCarouselTable",
70
- rules: [re.noHint]
71
- });
72
- let je = o(() => A.value.userOptions.useCursorPointer), { userOptionsVisible: M, setUserOptionsVisibility: Me, keepUserOptionState: Ne } = ce({ config: A.value });
73
- function Pe() {
74
- return oe({
75
- userConfig: D.config,
76
- defaultConfig: Ee
77
- });
78
- }
79
- C(() => D.config, (e) => {
80
- A.value = Pe(), M.value = !A.value.userOptions.showOnChartHover, Ae();
81
- }, { deep: !0 }), C(() => D.dataset, (e) => {
82
- U();
83
- }, { deep: !0 });
84
- let { isPrinting: Fe, isImaging: Ie, generatePdf: Le, generateImage: Re } = ae({
85
- elementId: `carousel-table_${O.value}`,
86
- fileName: A.value.caption.text || "vue-ui-carousel-table",
87
- options: A.value.userOptions.print
88
- }), N = v({ showAnimation: A.value.animation.use }), P = v(null), ze = v(null), F = v(null), I = v(null), L = v(0), R = v(0), z = v(!1), B = v(null), V = v(null), H = v(0);
89
- function U() {
90
- B.value && (V.value = {
91
- elements: B.value.getElementsByTagName("tr"),
92
- heights: Array.from(B.value.getElementsByTagName("tr")).map((e) => e.getBoundingClientRect().height)
93
- });
94
- }
95
- g(U);
96
- let Be = o(() => !V.value || !V.value.heights.length ? 0 : Math.max(...V.value.heights) + L.value + R.value), Ve = o(() => D.dataset.body ? A.value.tbody.tr.visible <= D.dataset.body.length ? A.value.tbody.tr.visible : D.dataset.body.length : 0), He = o(() => (A.value.tbody.tr.height + A.value.tbody.tr.td.padding.top + A.value.tbody.tr.td.padding.bottom + A.value.tbody.tr.border.size * 2) * Ve.value + L.value + R.value), W = v(0), G = v(null), K = v(0), q = v(!1), Ue = v(0);
97
- g(() => {
98
- F.value && (L.value = F.value.getBoundingClientRect().height), I.value && (R.value = I.value.getBoundingClientRect().height), N.value.showAnimation && V.value && Ge();
99
- }), g(() => {
100
- if (P.value) {
101
- let e = P.value.querySelector("thead"), t = Array.from(B.value.querySelectorAll("tr"));
102
- function n() {
103
- let n = e.getBoundingClientRect().bottom;
104
- t.forEach((e) => {
105
- e.getBoundingClientRect().top < n ? e.style.visibility = "hidden" : e.style.visibility = "visible";
106
- });
107
- }
108
- P.value.addEventListener("scroll", n), n(), h(() => {
109
- P.value.removeEventListener("scroll", n);
110
- });
111
- }
112
- });
113
- function We(e) {
114
- Oe.value = e, Ue.value += 1;
115
- }
116
- function Ge() {
117
- E.value || !G.value && !q.value && (A.value.animation.type === "scroll" ? G.value = requestAnimationFrame(J) : G.value = requestAnimationFrame(qe));
118
- }
119
- function Ke() {
120
- if (!P.value) return !1;
121
- let { scrollTop: e, scrollHeight: t, clientHeight: n } = P.value;
122
- return e + n >= t;
123
- }
124
- function J(e) {
125
- q.value || (K.value ||= e, e - K.value >= A.value.animation.speedMs && (W.value += V.value.heights[H.value], (Ke() || H.value >= V.value.heights.length) && (W.value = 0, H.value = -1), H.value += 1, P.value && P.value.scrollTo({
126
- top: W.value,
127
- behavior: "smooth"
128
- }), K.value = e), G.value = requestAnimationFrame(J));
129
- }
130
- function qe(e) {
131
- if (q.value) return;
132
- K.value ||= e;
133
- let t = e - K.value, n = A.value.animation.speedMs / 4 / 1e3;
134
- t >= n && (W.value += n, W.value >= P.value.scrollHeight - P.value.clientHeight && (W.value = 0), P.value && P.value.scrollTo({
135
- top: W.value,
136
- behavior: "auto"
137
- }), K.value = e), G.value = requestAnimationFrame(qe);
138
- }
139
- function Y() {
140
- q.value = !0, cancelAnimationFrame(G.value), G.value = null;
141
- }
142
- h(Y);
143
- function X() {
144
- !q.value || !N.value.showAnimation || (q.value = !1, K.value = 0, Ge());
145
- }
146
- function Je() {
147
- A.value.animation.pauseOnHover && Y();
148
- }
149
- let Z = v(null);
150
- function Ye() {
151
- Y(), clearTimeout(Z.value);
152
- }
153
- function Xe() {
154
- clearTimeout(Z.value), Z.value = setTimeout(X, 1e3);
155
- }
156
- C(() => A.value.animation.use, (e) => {
157
- e ? (N.value.showAnimation = !0, X()) : (N.value.showAnimation = !1, Y());
158
- }), C(() => A.value.animation.type, (e) => {
159
- Y(), W.value = 0, H.value = 0, P.value.scrollTo({
160
- top: 0,
161
- behavior: "auto"
162
- }), X();
163
- });
164
- let Ze = o(() => A.value.responsiveBreakpoint), Q = he(null);
165
- g(() => {
166
- Q.value = new ResizeObserver((e) => {
167
- e.forEach((e) => {
168
- z.value = e.contentRect.width < Ze.value;
169
- }), L.value = F.value ? F.value.getBoundingClientRect().height : 0, R.value = I.value ? I.value.getBoundingClientRect().height : 0, H.value = 0, pe(() => {
170
- Y(), K.value = 0, W.value = 0, U(), X();
171
- });
172
- }), P.value && Q.value.observe(P.value);
173
- }), h(() => {
174
- Q.value && Q.value.disconnect();
175
- });
176
- function Qe() {
177
- Le();
178
- }
179
- function $e() {
180
- N.value.showAnimation = !N.value.showAnimation, N.value.showAnimation ? X() : Y();
181
- }
182
- function et(e = null) {
183
- pe(() => {
184
- let ee = D.dataset.head.map((e, t) => [[D.dataset.body[t]]]), r = [[A.value.caption.text], [D.dataset.head.map((e) => [e])]].concat(ee), i = n(r);
185
- e ? e(i) : t({
186
- csvContent: i,
187
- title: A.value.caption.text || "vue-ui-carousel-table"
188
- });
189
- });
190
- }
191
- async function $() {
192
- if (De("copyAlt", {
193
- config: A.value,
194
- dataset: D.dataset
195
- }), !A.value.userOptions.callbacks.altCopy) {
196
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
197
- return;
198
- }
199
- await Promise.resolve(A.value.userOptions.callbacks.altCopy({
200
- config: A.value,
201
- dataset: D.dataset
202
- }));
203
- }
204
- return se({
205
- pauseAnimation: Y,
206
- resumeAnimation: X,
207
- toggleAnimation: $e,
208
- generateCsv: et,
209
- generatePdf: Qe,
210
- generateImage: Re,
211
- copyAlt: $
212
- }), (t, n) => (_(), c("div", {
213
- class: "vue-data-ui-component vue-ui-carousel-table",
214
- style: {
215
- position: "relative",
216
- overflow: "visible"
217
- },
218
- ref_key: "chartContainer",
219
- ref: ze,
220
- onMouseenter: n[5] ||= () => S(Me)(!0),
221
- onMouseleave: n[6] ||= () => S(Me)(!1)
222
- }, [
223
- l("div", {
224
- ref_key: "tableContainer",
225
- ref: P,
226
- id: `carousel-table_${O.value}`,
227
- style: m({
228
- height: S(Fe) || S(Ie) ? "auto" : `${Math.max(He.value, Be.value)}px`,
229
- containerType: "inline-size",
230
- position: "relative",
231
- overflow: "auto",
232
- fontFamily: A.value.fontFamily
233
- }),
234
- class: me({
235
- "vue-ui-responsive": z.value,
236
- "is-playing": A.value.scrollbar.hide || !q.value && A.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
- }, [k.value ? (_(), c("table", {
244
- key: 0,
245
- class: "vue-data-ui-carousel-table",
246
- "aria-labelledby": `carousel-caption-${O.value}`,
247
- style: m({
248
- ...A.value.style,
249
- border: `${A.value.border.size}px solid ${A.value.border.color}`,
250
- width: "100%",
251
- borderCollapse: "collapse",
252
- backgroundColor: A.value.tbody.backgroundColor
253
- })
254
- }, [
255
- l("caption", {
256
- ref_key: "caption",
257
- ref: F,
258
- class: "vue-data-ui-carousel-table-caption",
259
- id: `carousel-caption-${O.value}`,
260
- style: m({
261
- ...A.value.caption.style,
262
- fontFamily: "inherit",
263
- position: "sticky",
264
- top: 0,
265
- zIndex: 2,
266
- paddingTop: A.value.caption.padding.top + "px",
267
- paddingRight: A.value.caption.padding.right + "px",
268
- paddingBottom: A.value.caption.padding.bottom + "px",
269
- paddingLeft: A.value.caption.padding.left + "px",
270
- boxShadow: z.value ? A.value.thead.tr.style.boxShadow : "none",
271
- minHeight: "36px",
272
- display: t.$slots.caption || A.value.caption.text || A.value.userOptions.show ? "" : "none"
273
- })
274
- }, [u(x(A.value.caption.text && !t.$slots.caption ? A.value.caption.text : "") + " ", 1), b(t.$slots, "caption", {}, void 0, !0)], 12, be),
275
- l("thead", {
276
- role: "rowgroup",
277
- style: m({
278
- ...A.value.thead.style,
279
- position: "sticky",
280
- top: `${t.$slots.caption || A.value.caption.text || A.value.userOptions.show ? L.value : 0}px`,
281
- zIndex: 1
282
- })
283
- }, [l("tr", {
284
- ref_key: "tableRow",
285
- ref: I,
286
- role: "row",
287
- style: m({
288
- ...A.value.thead.tr.style,
289
- border: A.value.thead.tr.border.size ? `${A.value.thead.tr.border.size}px solid ${A.value.thead.tr.border.color}` : "none",
290
- boxShadow: z.value ? "none" : A.value.thead.tr.style.boxShadow
291
- }),
292
- height: `${A.value.thead.tr.height}px`
293
- }, [(_(!0), c(a, null, y(e.dataset.head, (e, n) => (_(), c("th", {
294
- role: "cell",
295
- key: `th_${n}`,
296
- id: `col-${n}`,
297
- scope: "col",
298
- style: m({
299
- ...A.value.thead.tr.th.style,
300
- border: A.value.thead.tr.th.border.size ? `${A.value.thead.tr.th.border.size}px solid ${A.value.thead.tr.th.border.color}` : "none",
301
- paddingTop: A.value.thead.tr.th.padding.top + "px",
302
- paddingRight: A.value.thead.tr.th.padding.right + "px",
303
- paddingBottom: A.value.thead.tr.th.padding.bottom + "px",
304
- paddingLeft: A.value.thead.tr.th.padding.left + "px"
305
- })
306
- }, [u(x(t.$slots.th ? "" : e) + " ", 1), b(t.$slots, "th", f({ ref_for: !0 }, {
307
- th: e,
308
- colIndex: n
309
- }), void 0, !0)], 12, Se))), 128))], 12, xe)], 4),
310
- e.dataset.body && e.dataset.head ? (_(), c("tbody", {
311
- key: 0,
312
- ref_key: "tbody",
313
- ref: B,
314
- "aria-live": "polite",
315
- style: { clipPath: "inset(0,0,0,0)" }
316
- }, [(_(!0), c(a, null, y(e.dataset.body, (n, r) => (_(), c("tr", { style: m({
317
- ...A.value.tbody.tr.style,
318
- border: `${A.value.tbody.tr.border.size}px solid ${A.value.tbody.tr.border.color}`,
319
- verticalAlign: "middle"
320
- }) }, [(_(!0), c(a, null, y(n, (n, i) => (_(), c("td", {
321
- role: "cell",
322
- "data-cell": e.dataset.head[i] || "",
323
- "aria-label": `${e.dataset.head[i]}: ${n}`,
324
- style: m({
325
- ...A.value.tbody.tr.td.style,
326
- border: `${A.value.tbody.tr.td.border.size}px solid ${A.value.tbody.tr.td.border.color}`,
327
- backgroundColor: S(ee)(A.value.tbody.tr.td.style.backgroundColor, r % 2 == 0 && A.value.tbody.tr.td.alternateColor ? A.value.tbody.tr.td.alternateOpacity * 100 : 100),
328
- paddingTop: A.value.tbody.tr.td.padding.top + "px",
329
- paddingRight: A.value.tbody.tr.td.padding.right + "px",
330
- paddingBottom: A.value.tbody.tr.td.padding.bottom + "px",
331
- paddingLeft: A.value.tbody.tr.td.padding.left + "px",
332
- verticalAlign: "middle"
333
- }),
334
- height: `${A.value.tbody.tr.height}px`
335
- }, [u(x(t.$slots.td ? "" : n) + " ", 1), b(t.$slots, "td", f({ ref_for: !0 }, {
336
- td: n,
337
- rowIndex: r,
338
- colIndex: i
339
- }), void 0, !0)], 12, Ce))), 256))], 4))), 256))], 512)) : s("", !0)
340
- ], 12, ye)) : s("", !0)], 46, ve),
341
- k.value ? s("", !0) : (_(), ue(S(T), {
342
- key: 0,
343
- config: { type: "table" }
344
- })),
345
- A.value.userOptions.show && k.value && (S(Ne) || S(M)) ? (_(), ue(S(Te), {
346
- ref: "details",
347
- key: `user_option_${Ue.value}`,
348
- backgroundColor: A.value.style.backgroundColor,
349
- color: A.value.style.color,
350
- isPrinting: S(Fe),
351
- isImaging: S(Ie),
352
- uid: O.value,
353
- hasTooltip: !1,
354
- hasPdf: A.value.userOptions.buttons.pdf,
355
- hasImg: A.value.userOptions.buttons.img,
356
- hasXls: A.value.userOptions.buttons.csv,
357
- hasTable: !1,
358
- hasLabel: !1,
359
- hasAnimation: A.value.userOptions.buttons.animation,
360
- isAnimation: !N.value.showAnimation,
361
- hasFullscreen: A.value.userOptions.buttons.fullscreen,
362
- hasAltCopy: A.value.userOptions.buttons.altCopy,
363
- isFullscreen: Oe.value,
364
- chartElement: ze.value,
365
- position: A.value.userOptions.position,
366
- titles: { ...A.value.userOptions.buttonTitles },
367
- zIndex: 3,
368
- offsetX: 12,
369
- callbacks: A.value.userOptions.callbacks,
370
- printScale: A.value.userOptions.print.scale,
371
- isCursorPointer: je.value,
372
- onGeneratePdf: Qe,
373
- onGenerateCsv: et,
374
- onGenerateImage: S(Re),
375
- onToggleAnimation: $e,
376
- onToggleFullscreen: We,
377
- onCopyAlt: $,
378
- style: m({ visibility: S(Ne) ? S(M) ? "visible" : "hidden" : "visible" })
379
- }, de({ _: 2 }, [
380
- t.$slots.menuIcon ? {
381
- name: "menuIcon",
382
- fn: w(({ isOpen: e, color: n }) => [b(t.$slots, "menuIcon", p(d({
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: w(() => [b(t.$slots, "optionPdf", {}, void 0, !0)]),
391
- key: "1"
392
- } : void 0,
393
- t.$slots.optionCsv ? {
394
- name: "optionCsv",
395
- fn: w(() => [b(t.$slots, "optionCsv", {}, void 0, !0)]),
396
- key: "2"
397
- } : void 0,
398
- t.$slots.optionImg ? {
399
- name: "optionImg",
400
- fn: w(() => [b(t.$slots, "optionImg", {}, void 0, !0)]),
401
- key: "3"
402
- } : void 0,
403
- t.$slots.optionSvg ? {
404
- name: "optionSvg",
405
- fn: w(() => [b(t.$slots, "optionSvg", {}, void 0, !0)]),
406
- key: "4"
407
- } : void 0,
408
- t.$slots.optionAnimation ? {
409
- name: "optionAnimation",
410
- fn: w(({ toggleAnimation: e, isAnimated: n }) => [b(t.$slots, "optionAnimation", p(d({
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: w(({ toggleFullscreen: e, isFullscreen: n }) => [b(t.$slots, "optionFullscreen", p(d({
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: w(({ altCopy: e }) => [b(t.$slots, "optionAltCopy", p(d({ altCopy: e })), void 0, !0)]),
427
- key: "7"
428
- } : void 0,
429
- t.$slots["custom-menu-before"] ? {
430
- name: "custom-menu-before",
431
- fn: w(() => [b(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: w(() => [b(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
- ])) : s("", !0),
462
- t.$slots.source ? (_(), c("div", we, [b(t.$slots, "source", {}, void 0, !0)], 512)) : s("", !0)
463
- ], 544));
464
- }
465
- }, [["__scopeId", "data-v-42d3302a"]]);
466
- //#endregion
467
- export { _e as n, T as t };