vue-data-ui 2.3.8 → 2.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/{Arrow-CS3h3CsG.js → Arrow-BO8QA2_F.js} +1 -1
  2. package/dist/{Arrow-DUJvJpMd.cjs → Arrow-f4c5AEIv.cjs} +1 -1
  3. package/dist/{BaseIcon-ByV6y3w8.cjs → BaseIcon-BGeIE3vn.cjs} +1 -1
  4. package/dist/{BaseIcon-CVk_WG9x.js → BaseIcon-NaAlKaAM.js} +1 -1
  5. package/dist/{DataTable-C4CMZu2s.cjs → DataTable-CXkMZ3ja.cjs} +1 -1
  6. package/dist/{DataTable-B-LJlgjS.js → DataTable-R7hmQ0wl.js} +2 -2
  7. package/dist/{Legend-DVsCAbZS.js → Legend-BKBuWgj8.js} +1 -1
  8. package/dist/{Legend-DWBU0qDC.cjs → Legend-VoYDt_v5.cjs} +1 -1
  9. package/dist/{Shape-w47nQzLj.js → Shape-CCI8C_dI.js} +1 -1
  10. package/dist/{Shape-CcbBblwI.cjs → Shape-DH2ovwu7.cjs} +1 -1
  11. package/dist/{Slicer-2MG0k2PP.js → Slicer-C1zx1qMy.js} +1 -1
  12. package/dist/{Slicer-CY-QTbH4.cjs → Slicer-CPQW_sm_.cjs} +1 -1
  13. package/dist/{Title-D_FeWJsx.js → Title-DJ269q6H.js} +1 -1
  14. package/dist/{Title-D6zeMzr0.cjs → Title-gCBF7AU7.cjs} +1 -1
  15. package/dist/{Tooltip-BY94WbUk.js → Tooltip-CKKSlbSq.js} +1 -1
  16. package/dist/{Tooltip-2d9jRdHk.cjs → Tooltip-Qv4VexrA.cjs} +1 -1
  17. package/dist/{index-DLi6mPet.js → index-BK818aZo.js} +1 -1
  18. package/dist/{index-BQbaKiSm.cjs → index-Xau3hcRk.cjs} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-B6CpIX-3.cjs → useNestedProp-C_EQ-Kxy.cjs} +1 -1
  21. package/dist/{useNestedProp-DmMzRJ1O.js → useNestedProp-hi25rRoY.js} +1 -1
  22. package/dist/{usePrinter-BnaEziDF.js → usePrinter-C-2KAW2f.js} +1 -1
  23. package/dist/{usePrinter-BANjHBXe.cjs → usePrinter-Dhvmhwhf.cjs} +1 -1
  24. package/dist/{vue-data-ui-Br12h04t.js → vue-data-ui-DPu_2hNJ.js} +55 -55
  25. package/dist/{vue-data-ui-DWSz421j.cjs → vue-data-ui-ifINAh05.cjs} +1 -1
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CNpZvjQ1.js → vue-ui-3d-bar-BaR6gHYb.js} +7 -7
  29. package/dist/{vue-ui-3d-bar-BFu2IXOP.cjs → vue-ui-3d-bar-DPqaPUTZ.cjs} +1 -1
  30. package/dist/{vue-ui-accordion-CHVCSgY3.cjs → vue-ui-accordion-BjU8im6m.cjs} +1 -1
  31. package/dist/{vue-ui-accordion-DzCdp527.js → vue-ui-accordion-CH8K6f6J.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-CCezvPxx.js → vue-ui-age-pyramid-CDotLSiv.js} +8 -8
  33. package/dist/{vue-ui-age-pyramid-DaUZgLYc.cjs → vue-ui-age-pyramid-Dt9ILoAz.cjs} +1 -1
  34. package/dist/{vue-ui-annotator-CZ3Lk0Ky.cjs → vue-ui-annotator-C2bmdjLc.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-QPK7ARtK.js → vue-ui-annotator-CoH_aFJm.js} +1 -1
  36. package/dist/{vue-ui-candlestick-CaofVEg_.cjs → vue-ui-candlestick-C5SjZVYs.cjs} +1 -1
  37. package/dist/{vue-ui-candlestick-kh_Ft3mr.js → vue-ui-candlestick-G_90YTDo.js} +9 -9
  38. package/dist/vue-ui-carousel-table-CptU7uki.cjs +1 -0
  39. package/dist/vue-ui-carousel-table-DzxLQOiB.js +330 -0
  40. package/dist/{vue-ui-chestnut-BypPYKEQ.js → vue-ui-chestnut-Cj5fJhR5.js} +6 -6
  41. package/dist/{vue-ui-chestnut-joiWg5ii.cjs → vue-ui-chestnut-D8RaQMzo.cjs} +1 -1
  42. package/dist/{vue-ui-cursor-CVwqSrVu.js → vue-ui-cursor-G8ixOooh.js} +2 -2
  43. package/dist/{vue-ui-cursor-CaxdcYVa.cjs → vue-ui-cursor-pZEn4NtN.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-B12glgQZ.cjs → vue-ui-dashboard-C46M9Oob.cjs} +1 -1
  45. package/dist/{vue-ui-dashboard-C7roqJdv.js → vue-ui-dashboard-CaMDg3iT.js} +2 -2
  46. package/dist/{vue-ui-digits-BeGGrWds.cjs → vue-ui-digits-BnzhiKJT.cjs} +1 -1
  47. package/dist/{vue-ui-digits-DZBXECIq.js → vue-ui-digits-CXTC7Ypr.js} +2 -2
  48. package/dist/{vue-ui-donut-DoMzPJHF.js → vue-ui-donut-Caan2HEG.js} +9 -9
  49. package/dist/{vue-ui-donut-diN8RiYm.cjs → vue-ui-donut-De--4Msd.cjs} +1 -1
  50. package/dist/{vue-ui-donut-evolution-CXT7c3_C.js → vue-ui-donut-evolution-CUV7vE4C.js} +9 -9
  51. package/dist/{vue-ui-donut-evolution-CTgTqsih.cjs → vue-ui-donut-evolution-DwPXJh13.cjs} +1 -1
  52. package/dist/{vue-ui-dumbbell-1StMWJ5B.js → vue-ui-dumbbell-2D7NAlDu.js} +8 -8
  53. package/dist/{vue-ui-dumbbell-B6th1M9b.cjs → vue-ui-dumbbell-BzqRvxE9.cjs} +1 -1
  54. package/dist/{vue-ui-flow-Bux2O68S.cjs → vue-ui-flow-CSlnKCEh.cjs} +1 -1
  55. package/dist/{vue-ui-flow-ynx-run3.js → vue-ui-flow-DsqenwU_.js} +7 -7
  56. package/dist/{vue-ui-galaxy-C7GEYMQB.js → vue-ui-galaxy-CLXeRR9E.js} +9 -9
  57. package/dist/{vue-ui-galaxy-D9QnmX0M.cjs → vue-ui-galaxy-WwvhRAFa.cjs} +1 -1
  58. package/dist/{vue-ui-gauge-DrgKJTGw.cjs → vue-ui-gauge-B_5_uMiG.cjs} +1 -1
  59. package/dist/{vue-ui-gauge-DU8VU1m7.js → vue-ui-gauge-zoUBHBL2.js} +4 -4
  60. package/dist/{vue-ui-heatmap-DUuN0fGR.js → vue-ui-heatmap-D-oq-QFJ.js} +8 -8
  61. package/dist/{vue-ui-heatmap-BIBsrwjz.cjs → vue-ui-heatmap-Gv6Y0025.cjs} +1 -1
  62. package/dist/{vue-ui-kpi-CLEQSt4V.cjs → vue-ui-kpi-Bgxu139K.cjs} +1 -1
  63. package/dist/{vue-ui-kpi-BoGsykfq.js → vue-ui-kpi-CE3UnfLM.js} +2 -2
  64. package/dist/{vue-ui-mini-loader-CNCZkUvI.js → vue-ui-mini-loader-Fap6KDDb.js} +2 -2
  65. package/dist/{vue-ui-mini-loader-CIPfR_lB.cjs → vue-ui-mini-loader-KFiTgq0Z.cjs} +1 -1
  66. package/dist/{vue-ui-molecule-Da19KH5g.cjs → vue-ui-molecule-CaKXLDG3.cjs} +1 -1
  67. package/dist/{vue-ui-molecule-Brw0qOjw.js → vue-ui-molecule-QMshD0fQ.js} +9 -9
  68. package/dist/{vue-ui-mood-radar-BktJHBX_.cjs → vue-ui-mood-radar-BFKJ6-wI.cjs} +1 -1
  69. package/dist/{vue-ui-mood-radar-hIUOJ8Cd.js → vue-ui-mood-radar-woI18vdU.js} +9 -9
  70. package/dist/{vue-ui-nested-donuts-DXZXCu5s.js → vue-ui-nested-donuts-BH8pGgVI.js} +9 -9
  71. package/dist/{vue-ui-nested-donuts-2GqE8lhb.cjs → vue-ui-nested-donuts-Nb5Jg_SG.cjs} +1 -1
  72. package/dist/{vue-ui-onion-DqnFyhwy.cjs → vue-ui-onion-BBYwZtjh.cjs} +1 -1
  73. package/dist/{vue-ui-onion-Bx2_3hmi.js → vue-ui-onion-bofmS_kO.js} +9 -9
  74. package/dist/{vue-ui-parallel-coordinate-plot-CIkVq6XI.cjs → vue-ui-parallel-coordinate-plot-C-ZbQgN7.cjs} +1 -1
  75. package/dist/{vue-ui-parallel-coordinate-plot-DgjecbC2.js → vue-ui-parallel-coordinate-plot-DVW0LYp7.js} +10 -10
  76. package/dist/{vue-ui-quadrant-DUNTLV5w.cjs → vue-ui-quadrant-DFMVk5eC.cjs} +1 -1
  77. package/dist/{vue-ui-quadrant-DlSMixki.js → vue-ui-quadrant-fhx9NkrR.js} +10 -10
  78. package/dist/{vue-ui-quick-chart-_ysWkoF7.js → vue-ui-quick-chart-5rggkq9-.js} +6 -6
  79. package/dist/{vue-ui-quick-chart-CpdxM7qN.cjs → vue-ui-quick-chart-S6LEQLn7.cjs} +1 -1
  80. package/dist/{vue-ui-radar-Fh5UQO5Z.js → vue-ui-radar-B8RvpBi-.js} +10 -10
  81. package/dist/{vue-ui-radar-B8fTGb35.cjs → vue-ui-radar-CsR9V_Sl.cjs} +1 -1
  82. package/dist/{vue-ui-rating-BTbg-bNd.cjs → vue-ui-rating-CgzLPjlb.cjs} +1 -1
  83. package/dist/{vue-ui-rating-CwV_45UQ.js → vue-ui-rating-ClQkygLG.js} +2 -2
  84. package/dist/{vue-ui-relation-circle-B61AGVtF.js → vue-ui-relation-circle-B2hJDB7v.js} +5 -5
  85. package/dist/{vue-ui-relation-circle-BrHBPn8C.cjs → vue-ui-relation-circle-D0zllKLp.cjs} +1 -1
  86. package/dist/{vue-ui-rings-BSbFTwmB.cjs → vue-ui-rings-CLIeS7BN.cjs} +1 -1
  87. package/dist/{vue-ui-rings-DwtqKTGk.js → vue-ui-rings-D3nNsoiU.js} +9 -9
  88. package/dist/{vue-ui-scatter-CFXQQZQr.js → vue-ui-scatter-DitnL-sZ.js} +10 -10
  89. package/dist/{vue-ui-scatter-BdphtRDE.cjs → vue-ui-scatter-bPAA5OYI.cjs} +1 -1
  90. package/dist/{vue-ui-screenshot-ChP1r5WI.cjs → vue-ui-screenshot-C-uHRqZ7.cjs} +1 -1
  91. package/dist/{vue-ui-screenshot-CkI4Gtys.js → vue-ui-screenshot-DayBW_7b.js} +1 -1
  92. package/dist/{vue-ui-skeleton-DIm7kxhc.cjs → vue-ui-skeleton-CgYrDrh-.cjs} +1 -1
  93. package/dist/{vue-ui-skeleton-CmXMTbOC.js → vue-ui-skeleton-DJtTdfNg.js} +2 -2
  94. package/dist/{vue-ui-smiley-BQJ6XX_L.js → vue-ui-smiley-CZTyxQvT.js} +2 -2
  95. package/dist/{vue-ui-smiley-BQ1_0eFh.cjs → vue-ui-smiley-CvpPFDBL.cjs} +1 -1
  96. package/dist/{vue-ui-spark-trend-Dx4w74bw.js → vue-ui-spark-trend--aNEsQNW.js} +4 -4
  97. package/dist/{vue-ui-spark-trend-COUBPV4j.cjs → vue-ui-spark-trend-DZm9J_ZI.cjs} +1 -1
  98. package/dist/vue-ui-sparkbar-C43IyepC.cjs +1 -0
  99. package/dist/{vue-ui-sparkbar-CxKIVunV.js → vue-ui-sparkbar-uvq7AcMr.js} +86 -77
  100. package/dist/{vue-ui-sparkgauge-Bd2F7zw1.cjs → vue-ui-sparkgauge-BP11yMVn.cjs} +1 -1
  101. package/dist/{vue-ui-sparkgauge-BhVgI98W.js → vue-ui-sparkgauge-V1zC6qrt.js} +3 -3
  102. package/dist/{vue-ui-sparkhistogram-CKw6tZnv.js → vue-ui-sparkhistogram-BIUsoRQJ.js} +4 -4
  103. package/dist/{vue-ui-sparkhistogram-B1Txwx4N.cjs → vue-ui-sparkhistogram-Dipd391E.cjs} +1 -1
  104. package/dist/{vue-ui-sparkline-CrXPLabK.cjs → vue-ui-sparkline-C3C9heBc.cjs} +1 -1
  105. package/dist/{vue-ui-sparkline-CSEByr6z.js → vue-ui-sparkline-DOAhQCt5.js} +3 -3
  106. package/dist/{vue-ui-sparkstackbar-BfP1wyyg.cjs → vue-ui-sparkstackbar-Bk7nIBnD.cjs} +1 -1
  107. package/dist/{vue-ui-sparkstackbar-CQLWpdxG.js → vue-ui-sparkstackbar-ObA64D3E.js} +3 -3
  108. package/dist/{vue-ui-strip-plot-DAJ0qjKU.js → vue-ui-strip-plot-6eenEjje.js} +9 -9
  109. package/dist/{vue-ui-strip-plot-N-_mlbwb.cjs → vue-ui-strip-plot-CffrlZCk.cjs} +1 -1
  110. package/dist/{vue-ui-table-DFe98urD.js → vue-ui-table-BbMFv-oU.js} +1 -1
  111. package/dist/{vue-ui-table-t1jDOoJW.cjs → vue-ui-table-CzAWebM5.cjs} +1 -1
  112. package/dist/{vue-ui-table-heatmap-DUonA4jJ.js → vue-ui-table-heatmap-B9YVKhvr.js} +4 -4
  113. package/dist/{vue-ui-table-heatmap-oEi-vxRg.cjs → vue-ui-table-heatmap-CR4Z6gFJ.cjs} +1 -1
  114. package/dist/{vue-ui-table-sparkline-DKoH5PeD.cjs → vue-ui-table-sparkline-BZdfmaoe.cjs} +1 -1
  115. package/dist/{vue-ui-table-sparkline-BIY7GWik.js → vue-ui-table-sparkline-D7b-hkZg.js} +5 -5
  116. package/dist/{vue-ui-thermometer-BiWx3ujG.js → vue-ui-thermometer-CfGfCzz9.js} +5 -5
  117. package/dist/{vue-ui-thermometer-ZgNA47Fv.cjs → vue-ui-thermometer-DJw8iKSK.cjs} +1 -1
  118. package/dist/{vue-ui-timer-BmThVcD0.cjs → vue-ui-timer-DjSR1opQ.cjs} +1 -1
  119. package/dist/{vue-ui-timer-BFKnN8tS.js → vue-ui-timer-PdZYURw6.js} +4 -4
  120. package/dist/{vue-ui-tiremarks-BO_X27nw.js → vue-ui-tiremarks-9o6eS1Mc.js} +5 -5
  121. package/dist/{vue-ui-tiremarks-D9ClW4XX.cjs → vue-ui-tiremarks-DmQpv3n0.cjs} +1 -1
  122. package/dist/{vue-ui-treemap-BVV-tfRq.cjs → vue-ui-treemap-BQlEP4Wi.cjs} +1 -1
  123. package/dist/{vue-ui-treemap-Crrd_rpP.js → vue-ui-treemap-hdJRrv6w.js} +9 -9
  124. package/dist/{vue-ui-vertical-bar-CyuImTrh.js → vue-ui-vertical-bar-BRhV9I7i.js} +9 -9
  125. package/dist/{vue-ui-vertical-bar-k9KkT9mN.cjs → vue-ui-vertical-bar-CXn4FfOg.cjs} +1 -1
  126. package/dist/{vue-ui-waffle-CYSDDS3-.js → vue-ui-waffle-CXyoderQ.js} +83 -83
  127. package/dist/{vue-ui-waffle-DenwQo8B.cjs → vue-ui-waffle-CjAIw38i.cjs} +1 -1
  128. package/dist/{vue-ui-wheel-C8-f39P2.js → vue-ui-wheel-BU_90Fhv.js} +5 -5
  129. package/dist/{vue-ui-wheel-Cx7SBWWF.cjs → vue-ui-wheel-DLj-V4jn.cjs} +1 -1
  130. package/dist/{vue-ui-word-cloud-CMsakywD.cjs → vue-ui-word-cloud-CtBamLvE.cjs} +1 -1
  131. package/dist/{vue-ui-word-cloud-D9y9Iht6.js → vue-ui-word-cloud-DQ72J4Ro.js} +6 -6
  132. package/dist/{vue-ui-xy-BxCALt6U.cjs → vue-ui-xy-Bz15K-CC.cjs} +1 -1
  133. package/dist/{vue-ui-xy-Dhpahzod.js → vue-ui-xy-DYEsmppC.js} +12 -12
  134. package/dist/{vue-ui-xy-canvas-COwqkdZB.js → vue-ui-xy-canvas-BRWp_v0p.js} +10 -10
  135. package/dist/{vue-ui-xy-canvas-B_Fi2be0.cjs → vue-ui-xy-canvas-DLN-ipCw.cjs} +1 -1
  136. package/package.json +1 -1
  137. package/dist/vue-ui-carousel-table-Cti_GQvV.cjs +0 -1
  138. package/dist/vue-ui-carousel-table-CxTbe6SP.js +0 -314
  139. package/dist/vue-ui-sparkbar-Cdcndp7Q.cjs +0 -1
@@ -1,314 +0,0 @@
1
- import { useCssVars as ce, ref as o, onMounted as S, computed as T, watch as he, openBlock as i, createElementBlock as u, createElementVNode as O, normalizeStyle as v, unref as f, normalizeClass as be, createTextVNode as U, toDisplayString as E, renderSlot as p, Fragment as H, renderList as L, normalizeProps as V, guardReactiveProps as G, createCommentVNode as P, createBlock as oe, createSlots as fe, withCtx as w, nextTick as ge } from "vue";
2
- import { u as me, c as ye, o as D, e as M, r as Ce, n as $e, q as ke } from "./index-DLi6mPet.js";
3
- import { u as xe } from "./useNestedProp-DmMzRJ1O.js";
4
- import { u as Ae, U as Te } from "./usePrinter-BnaEziDF.js";
5
- import we from "./vue-ui-skeleton-CmXMTbOC.js";
6
- import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- const Fe = ["id"], ze = ["height"], Oe = { key: 0 }, Pe = ["data-cell", "height"], Re = {
8
- __name: "vue-ui-carousel-table",
9
- props: {
10
- config: {
11
- type: Object,
12
- default() {
13
- return {};
14
- }
15
- },
16
- dataset: {
17
- type: Object,
18
- default() {
19
- return {};
20
- }
21
- }
22
- },
23
- setup(r, { expose: ne }) {
24
- const a = r;
25
- ce((t) => ({
26
- "3b9147fd": t.tdo
27
- }));
28
- const { vue_ui_carousel_table: le } = me(), R = o(ye()), q = o(!1), g = o(!!a.dataset);
29
- S(() => {
30
- D(a.dataset) ? M({
31
- componentName: "VueUiCarouselTable",
32
- type: "dataset"
33
- }) : ((!a.dataset.head || D(a.dataset.head)) && (M({
34
- componentName: "VueUiCarouselTable",
35
- type: "datasetAttribute",
36
- property: "head"
37
- }), g.value = !1), (!a.dataset.body || D(a.dataset.body)) && (M({
38
- componentName: "VueUiCarouselTable",
39
- type: "datasetAttribute",
40
- property: "body"
41
- }), g.value = !1));
42
- });
43
- const e = T(() => xe({
44
- userConfig: a.config,
45
- defaultConfig: le
46
- })), { isPrinting: X, isImaging: j, generatePdf: ie, generateImage: J } = Ae({
47
- elementId: `carousel-table_${R.value}`,
48
- fileName: e.value.caption.text || "vue-ui-carousel-table"
49
- }), d = o({
50
- showAnimation: e.value.animation.use
51
- }), m = o(null), K = o(null), y = o(null), C = o(null), I = o(0), B = o(0), c = o(!1), Q = T(() => a.dataset.body ? e.value.tbody.tr.visible <= a.dataset.body.length ? e.value.tbody.tr.visible : a.dataset.body.length : 0), se = T(() => (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2) * Q.value + I.value + B.value), ue = T(() => !a.dataset || !a.dataset.body || !a.dataset.head ? 0 : (a.dataset.body.length * (c.value ? a.dataset.head.length : 1) - Q.value) * (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2)), F = o(0), $ = o(null), k = o(0), b = o(!1), W = o(0);
52
- S(() => {
53
- y.value && (I.value = y.value.getBoundingClientRect().height), C.value && (B.value = C.value.getBoundingClientRect().height), d.value.showAnimation && Y();
54
- });
55
- function re(t) {
56
- q.value = t, W.value += 1;
57
- }
58
- function Y() {
59
- !$.value && !b.value && ($.value = requestAnimationFrame(Z));
60
- }
61
- function Z(t) {
62
- if (b.value) return;
63
- k.value || (k.value = t), t - k.value >= e.value.animation.speedMs && (F.value += e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size, F.value > ue.value && (F.value = 0), m.value && m.value.scrollTo({
64
- top: F.value,
65
- behavior: "smooth"
66
- }), k.value = t), $.value = requestAnimationFrame(Z);
67
- }
68
- function x() {
69
- b.value = !0, cancelAnimationFrame($.value), $.value = null;
70
- }
71
- function A() {
72
- !b.value || !d.value.showAnimation || (b.value = !1, k.value = 0, Y());
73
- }
74
- function de() {
75
- e.value.animation.pauseOnHover && x();
76
- }
77
- const N = o(null);
78
- function ve() {
79
- x(), clearTimeout(N.value);
80
- }
81
- function _() {
82
- clearTimeout(N.value), N.value = setTimeout(A, 1e3);
83
- }
84
- he(
85
- () => e.value.animation.use,
86
- (t) => {
87
- t ? (d.value.showAnimation = !0, A()) : (d.value.showAnimation = !1, x());
88
- }
89
- );
90
- const pe = T(() => e.value.responsiveBreakpoint);
91
- S(() => {
92
- const t = new ResizeObserver((n) => {
93
- n.forEach((l) => {
94
- c.value = l.contentRect.width < pe.value;
95
- }), I.value = y.value ? y.value.getBoundingClientRect().height : 0, B.value = C.value ? C.value.getBoundingClientRect().height : 0;
96
- });
97
- m.value && t.observe(m.value);
98
- });
99
- function ee() {
100
- ie();
101
- }
102
- function te() {
103
- d.value.showAnimation = !d.value.showAnimation, d.value.showAnimation ? A() : x();
104
- }
105
- function ae() {
106
- ge(() => {
107
- const t = a.dataset.head.map((s, h) => [
108
- [a.dataset.body[h]]
109
- ]), n = [
110
- [e.value.caption.text],
111
- [a.dataset.head.map((s) => [s])]
112
- ].concat(t), l = $e(n);
113
- ke({
114
- csvContent: l,
115
- title: e.value.caption.text || "vue-ui-carousel-table"
116
- });
117
- });
118
- }
119
- return ne({
120
- pauseAnimation: x,
121
- resumeAnimation: A,
122
- toggleAnimation: te,
123
- generateCsv: ae,
124
- generatePdf: ee,
125
- generateImage: J
126
- }), (t, n) => (i(), u("div", {
127
- style: { position: "relative", overflow: "visible" },
128
- ref_key: "chartContainer",
129
- ref: K
130
- }, [
131
- O("div", {
132
- ref_key: "tableContainer",
133
- ref: m,
134
- id: `carousel-table_${R.value}`,
135
- style: v({
136
- height: f(X) || f(j) ? "auto" : `${se.value}px`,
137
- containerType: "inline-size",
138
- position: "relative",
139
- overflow: "auto",
140
- fontFamily: e.value.fontFamily
141
- }),
142
- class: be({ "vue-ui-responsive": c.value, "is-playing": !b.value }),
143
- onMouseenter: n[0] || (n[0] = (l) => de()),
144
- onMouseleave: n[1] || (n[1] = (l) => A()),
145
- onTouchstart: n[2] || (n[2] = (l) => ve()),
146
- onTouchend: n[3] || (n[3] = (l) => _()),
147
- onTouchcancel: n[4] || (n[4] = (l) => _())
148
- }, [
149
- g.value ? (i(), u("table", {
150
- key: 0,
151
- class: "vue-data-ui-carousel-table",
152
- style: v({
153
- ...e.value.style,
154
- border: `${e.value.border.size}px solid ${e.value.border.color}`,
155
- width: "100%",
156
- borderCollapse: "collapse"
157
- })
158
- }, [
159
- O("caption", {
160
- ref_key: "caption",
161
- ref: y,
162
- class: "vue-data-ui-carousel-table-caption",
163
- style: v({
164
- ...e.value.caption.style,
165
- fontFamily: "inherit",
166
- position: "sticky",
167
- top: 0,
168
- zIndex: 2,
169
- paddingTop: e.value.caption.padding.top + "px",
170
- paddingRight: e.value.caption.padding.right + "px",
171
- paddingBottom: e.value.caption.padding.bottom + "px",
172
- paddingLeft: e.value.caption.padding.left + "px",
173
- boxShadow: c.value ? e.value.thead.tr.style.boxShadow : "none",
174
- minHeight: "36px"
175
- })
176
- }, [
177
- U(E(e.value.caption.text && !t.$slots.caption ? e.value.caption.text : "") + " ", 1),
178
- p(t.$slots, "caption", {}, void 0, !0)
179
- ], 4),
180
- O("thead", {
181
- style: v({ ...e.value.thead.style, position: "sticky", top: `${I.value}px`, zIndex: 1 })
182
- }, [
183
- O("tr", {
184
- ref_key: "tableRow",
185
- ref: C,
186
- role: "row",
187
- style: v({
188
- ...e.value.thead.tr.style,
189
- border: e.value.thead.tr.border.size ? `${e.value.thead.tr.border.size}px solid ${e.value.thead.tr.border.color}` : "none",
190
- boxShadow: c.value ? "none" : e.value.thead.tr.style.boxShadow
191
- }),
192
- height: `${e.value.thead.tr.height}px`
193
- }, [
194
- (i(!0), u(H, null, L(r.dataset.head, (l, s) => (i(), u("th", {
195
- role: "cell",
196
- key: `th_${s}`,
197
- style: v({
198
- ...e.value.thead.tr.th.style,
199
- border: e.value.thead.tr.th.border.size ? `${e.value.thead.tr.th.border.size}px solid ${e.value.thead.tr.th.border.color}` : "none",
200
- paddingTop: e.value.thead.tr.th.padding.top + "px",
201
- paddingRight: e.value.thead.tr.th.padding.right + "px",
202
- paddingBottom: e.value.thead.tr.th.padding.bottom + "px",
203
- paddingLeft: e.value.thead.tr.th.padding.left + "px"
204
- })
205
- }, [
206
- U(E(t.$slots.th ? "" : l) + " ", 1),
207
- p(t.$slots, "th", V(G({ th: l, colIndex: s })), void 0, !0)
208
- ], 4))), 128))
209
- ], 12, ze)
210
- ], 4),
211
- r.dataset.body && r.dataset.head ? (i(), u("tbody", Oe, [
212
- (i(!0), u(H, null, L(r.dataset.body, (l, s) => (i(), u("tr", {
213
- style: v({
214
- ...e.value.tbody.tr.style,
215
- border: `${e.value.tbody.tr.border.size}px solid ${e.value.tbody.tr.border.color}`
216
- })
217
- }, [
218
- (i(!0), u(H, null, L(l, (h, z) => (i(), u("td", {
219
- role: "cell",
220
- "data-cell": c.value && r.dataset.head[z].length > 50 ? r.dataset.head[z].slice(0, 50) + "..." : r.dataset.head[z] || "",
221
- style: v({
222
- ...e.value.tbody.tr.td.style,
223
- border: `${e.value.tbody.tr.td.border.size}px solid ${e.value.tbody.tr.td.border.color}`,
224
- backgroundColor: e.value.tbody.tr.td.style.backgroundColor + f(Ce)[s % 2 === 0 && e.value.tbody.tr.td.alternateColor ? e.value.tbody.tr.td.alternateOpacity * 100 : 100],
225
- paddingTop: e.value.tbody.tr.td.padding.top + "px",
226
- paddingRight: e.value.tbody.tr.td.padding.right + "px",
227
- paddingBottom: e.value.tbody.tr.td.padding.bottom + "px",
228
- paddingLeft: e.value.tbody.tr.td.padding.left + "px"
229
- }),
230
- height: `${e.value.tbody.tr.height}px`
231
- }, [
232
- U(E(t.$slots.td ? "" : c.value && typeof h == "string" ? h.slice(0, 30) + "..." : h) + " ", 1),
233
- p(t.$slots, "td", V(G({ td: h, rowIndex: s, colIndex: z })), void 0, !0)
234
- ], 12, Pe))), 256))
235
- ], 4))), 256))
236
- ])) : P("", !0)
237
- ], 4)) : P("", !0)
238
- ], 46, Fe),
239
- g.value ? P("", !0) : (i(), oe(we, {
240
- key: 0,
241
- config: {
242
- type: "table"
243
- }
244
- })),
245
- e.value.userOptions.show && g.value ? (i(), oe(Te, {
246
- ref: "details",
247
- key: `user_option_${W.value}`,
248
- backgroundColor: e.value.style.backgroundColor,
249
- color: e.value.style.color,
250
- isPrinting: f(X),
251
- isImaging: f(j),
252
- uid: R.value,
253
- hasTooltip: !1,
254
- hasPdf: e.value.userOptions.buttons.pdf,
255
- hasImg: e.value.userOptions.buttons.img,
256
- hasXls: e.value.userOptions.buttons.csv,
257
- hasTable: !1,
258
- hasLabel: !1,
259
- hasAnimation: e.value.userOptions.buttons.animation,
260
- isAnimation: !d.value.showAnimation,
261
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
262
- isFullscreen: q.value,
263
- chartElement: K.value,
264
- titles: { ...e.value.userOptions.buttonTitles },
265
- zIndex: 3,
266
- noOffset: "",
267
- onGeneratePdf: ee,
268
- onGenerateCsv: ae,
269
- onGenerateImage: f(J),
270
- onToggleAnimation: te,
271
- onToggleFullscreen: re
272
- }, fe({ _: 2 }, [
273
- t.$slots.optionPdf ? {
274
- name: "optionPdf",
275
- fn: w(() => [
276
- p(t.$slots, "optionPdf", {}, void 0, !0)
277
- ]),
278
- key: "0"
279
- } : void 0,
280
- t.$slots.optionCsv ? {
281
- name: "optionCsv",
282
- fn: w(() => [
283
- p(t.$slots, "optionCsv", {}, void 0, !0)
284
- ]),
285
- key: "1"
286
- } : void 0,
287
- t.$slots.optionImg ? {
288
- name: "optionImg",
289
- fn: w(() => [
290
- p(t.$slots, "optionImg", {}, void 0, !0)
291
- ]),
292
- key: "2"
293
- } : void 0,
294
- t.$slots.optionAnimation ? {
295
- name: "optionAnimation",
296
- fn: w(() => [
297
- p(t.$slots, "optionAnimation", {}, void 0, !0)
298
- ]),
299
- key: "3"
300
- } : void 0,
301
- t.$slots.optionFullscreen ? {
302
- name: "optionFullscreen",
303
- fn: w(({ toggleFullscreen: l, isFullscreen: s }) => [
304
- p(t.$slots, "optionFullscreen", V(G({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
305
- ]),
306
- key: "4"
307
- } : void 0
308
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasAnimation", "isAnimation", "hasFullscreen", "isFullscreen", "chartElement", "titles", "onGenerateImage"])) : P("", !0)
309
- ], 512));
310
- }
311
- }, Le = /* @__PURE__ */ Ie(Re, [["__scopeId", "data-v-c5df50fc"]]);
312
- export {
313
- Le as default
314
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-BQbaKiSm.cjs"),h=require("./useNestedProp-B6CpIX-3.cjs"),_=require("./vue-ui-skeleton-DIm7kxhc.cjs"),$=["onClick"],B={key:1},E=["xmlns","viewBox"],V=["id"],z=["stop-color"],D=["stop-color"],P=["height","width","fill","rx"],F=["height","width","fill","rx"],L=["height","width","fill","rx"],A={__name:"vue-ui-sparkbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},backgroundOpacity:{type:Number,default:100}},emits:["selectDatapoint"],setup(m,{emit:k}){const n=m,{vue_ui_sparkbar:x}=o.useConfig(),p=e.computed(()=>!!n.dataset&&n.dataset.length),y=e.ref(o.createUid()),t=e.computed(()=>{const l=h.useNestedProp({userConfig:n.config,defaultConfig:x});return l.theme?{...h.useNestedProp({userConfig:o.themes.vue_ui_sparkbar[l.theme]||n.config,defaultConfig:l}),customPalette:o.themePalettes[l.theme]||o.palette}:l}),b=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),c=e.ref(n.dataset.map(l=>({...l,value:t.value.style.animation.show?0:l.value||0})));e.onMounted(()=>{if(o.objectIsEmpty(n.dataset)&&o.error({componentName:"VueUiSparkbar",type:"dataset"}),t.value.style.animation.show){let f=function(){s+=a/l,s<a?(c.value=c.value.map((i,d)=>({...i,value:i.value+=u[d]})),requestAnimationFrame(f)):c.value=n.dataset.map(i=>({...i,value:i.value||0}))};const l=t.value.style.animation.animationFrames,u=n.dataset.map((i,d)=>i.value/l),a=n.dataset.map(i=>i.value||0).reduce((i,d)=>i+d,0);let s=0;f()}});const r=e.ref({width:500,height:16}),C=e.computed(()=>Math.max(...n.dataset.map(l=>l.value))),S=e.computed(()=>(n.dataset.forEach((l,u)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(a=>{o.error({componentName:"VueUiSparkbar",type:"datasetSerieAttribute",property:a,index:u})})}),c.value.map((l,u)=>({...l,value:l.value||0,color:o.convertColorToHex(l.color)||b.value[u]||o.palette[u]||o.palette[u%o.palette.length]}))));function w(l){return l/C.value}function g(l){return t.value.style.layout.independant?l.target?l.value/l.target:t.value.style.layout.percentage?l.value/100:t.value.style.layout.target===0?1:l.value/t.value.style.layout.target:w(l.value)}function v(l){return t.value.style.layout.independant&&l.target||t.value.style.layout.target}function N(l,u){k("selectDatapoint",{datapoint:l,index:u})}return(l,u)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({width:"100%",fontFamily:t.value.style.fontFamily,background:t.value.style.backgroundColor+e.unref(o.opacity)[n.backgroundOpacity]})},[l.$slots.title?e.renderSlot(l.$slots,"title",e.normalizeProps(e.mergeProps({key:0},{title:{...l.title,title:t.value.style.title.text,subtitle:t.value.style.title.subtitle.text}}))):e.createCommentVNode("",!0),!l.$slots.title&&t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"vue-ui-sparkbar-title-container",style:e.normalizeStyle({background:t.value.style.title.backgroundColor,margin:t.value.style.title.margin,textAlign:t.value.style.title.textAlign})},[e.createElementVNode("div",{class:"vue-ui-sparkbar-title",style:e.normalizeStyle({fontSize:t.value.style.title.fontSize+"px",color:t.value.style.title.color,fontWeight:t.value.style.title.bold?"bold":"normal"})},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-sparkbar-subtitle",style:e.normalizeStyle({fontSize:t.value.style.title.subtitle.fontSize+"px",color:t.value.style.title.subtitle.color,fontWeight:t.value.style.title.subtitle.bold?"bold":"normal"})},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(a,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`display:flex !important;${["left","right"].includes(t.value.style.labels.name.position)?"flex-direction:row !important":"flex-direction:column !important"};gap:${t.value.style.gap}px !important;${t.value.style.labels.name.position==="right"?"row-reverse !important":""};align-items:center;${m.dataset.length>0&&s!==m.dataset.length-1?"margin-bottom:6px":""}`),onClick:()=>N(a,s)},[e.renderSlot(l.$slots,"data-label",e.normalizeProps(e.guardReactiveProps({bar:{...a,target:v(a),valueLabel:e.unref(o.dataLabel)({p:a.prefix||"",v:a.value,s:a.suffix||"",r:a.rounding||0}),targetLabel:e.unref(o.dataLabel)({p:a.prefix||"",v:v(a),s:a.suffix||"",r:a.rounding||0})}}))),l.$slots["data-label"]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:${t.value.style.labels.name.width};${["right","top"].includes(t.value.style.labels.name.position)?"text-align:left":"text-align:right"};color:${t.value.style.labels.name.color};font-size:${t.value.style.labels.fontSize}px;font-weight:${t.value.style.labels.name.bold?"bold":"normal"}`)},[e.createElementVNode("span",null,e.toDisplayString(a.name),1),t.value.style.labels.value.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${t.value.style.labels.value.bold?"bold":"normal"}`)},": "+e.toDisplayString(e.unref(o.dataLabel)({p:a.prefix||"",v:a.value,s:a.suffix||"",r:a.rounding||0})),5)):e.createCommentVNode("",!0),t.value.style.layout.showTargetValue?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(" "+t.value.style.layout.targetValueText)+" "+e.toDisplayString(e.unref(o.dataLabel)({p:a.prefix||"",v:v(a),s:a.suffix||"",r:a.rounding||0})),1)):e.createCommentVNode("",!0)],4)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(o.XMLNS),viewBox:`0 0 ${r.value.width} ${r.value.height}`,width:"100%"},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkbar_gradient_${s}_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(o.shiftHue)(a.color,.03)}${e.unref(o.opacity)[100-t.value.style.bar.gradient.intensity]}`},null,8,z),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,D)],8,V)]),e.createElementVNode("rect",{height:r.value.height,width:r.value.width,x:0,y:0,fill:`${t.value.style.gutter.backgroundColor}${e.unref(o.opacity)[t.value.style.gutter.opacity]}`,rx:r.value.height/2},null,8,P),e.createElementVNode("rect",{height:r.value.height,width:r.value.width*g(a),x:0,y:0,fill:t.value.style.bar.gradient.underlayerColor,rx:r.value.height/2},null,8,F),e.createElementVNode("rect",{height:r.value.height,width:r.value.width*g(a),x:0,y:0,fill:t.value.style.bar.gradient.show?`url(#sparkbar_gradient_${s}_${y.value})`:a.color,rx:r.value.height/2},null,8,L)],8,E))],12,$)):e.createCommentVNode("",!0)],64))),256)),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_.default,{key:2,config:{type:"sparkbar",style:{backgroundColor:t.value.style.backgroundColor,sparkbar:{color:"#CCCCCC"}}}},null,8,["config"]))],4))}};exports.default=A;