vue-data-ui 2.4.33 → 2.4.34

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 (151) hide show
  1. package/dist/{Arrow-Bzg2ks--.cjs → Arrow-BWaR2mlv.cjs} +1 -1
  2. package/dist/{Arrow-DRF1p6kV.js → Arrow-BuezaXvL.js} +1 -1
  3. package/dist/{BaseIcon-3xDACS8B.cjs → BaseIcon-D_2AVea5.cjs} +1 -1
  4. package/dist/{BaseIcon-XaP3Hk56.js → BaseIcon-Dr_DIMeA.js} +1 -1
  5. package/dist/{DataTable-Cll4zG8o.cjs → DataTable--bM06mln.cjs} +1 -1
  6. package/dist/{DataTable-CkKLsY_o.js → DataTable-VgAML4lp.js} +2 -2
  7. package/dist/{Legend-5UAFPg6D.cjs → Legend-BCOCP8PE.cjs} +1 -1
  8. package/dist/{Legend-Gsy5kJ0j.js → Legend-CySxfdFz.js} +1 -1
  9. package/dist/{PackageVersion-wA829kRV.js → PackageVersion-Br64Mym2.js} +1 -1
  10. package/dist/{PackageVersion-BZp3eHb6.cjs → PackageVersion-XAKkfWzS.cjs} +1 -1
  11. package/dist/{PenAndPaper-DnqCDEdR.cjs → PenAndPaper-D8M7psAi.cjs} +1 -1
  12. package/dist/{PenAndPaper-XIxRCYAM.js → PenAndPaper-Xjz8xzgj.js} +3 -3
  13. package/dist/{Shape-BwcrSh9E.js → Shape-CJG8X4xW.js} +1 -1
  14. package/dist/{Shape-sERb_Nv-.cjs → Shape-DcSrHAF4.cjs} +1 -1
  15. package/dist/{Slicer-Cm1QQUOg.js → Slicer-DFN5QvM5.js} +2 -2
  16. package/dist/{Slicer-DRdHs4y6.cjs → Slicer-iRT1IRDv.cjs} +1 -1
  17. package/dist/{Title-Ct3mhgnX.js → Title-C-TBUf-X.js} +1 -1
  18. package/dist/{Title-CoSFflCR.cjs → Title-DzXs2Yc7.cjs} +1 -1
  19. package/dist/{Tooltip-D_b68VAv.cjs → Tooltip-B9htW4Zh.cjs} +1 -1
  20. package/dist/{Tooltip-CGk7wvwa.js → Tooltip-jhv5Trzb.js} +1 -1
  21. package/dist/{index-Co2zPDEB.js → index-CBrvip7f.js} +1 -1
  22. package/dist/{index-fB2mCMUt.cjs → index-zUb8kR1J.cjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-CDvfZhwh.cjs → useNestedProp--dgI0yN_.cjs} +1 -1
  25. package/dist/{useNestedProp-BkJbU8lx.js → useNestedProp-BTqkOQhK.js} +1 -1
  26. package/dist/{usePrinter-W2oPzMDl.cjs → usePrinter-5cM3APqp.cjs} +1 -1
  27. package/dist/{usePrinter-B9fZzpeu.js → usePrinter-vaejWdsw.js} +1 -1
  28. package/dist/{vue-data-ui-BhNt4slR.cjs → vue-data-ui-CWYO59iF.cjs} +1 -1
  29. package/dist/{vue-data-ui-DlKkq-EC.js → vue-data-ui-Dg60kfd2.js} +60 -60
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-DIAITaxg.js → vue-ui-3d-bar-4-ytHuzj.js} +9 -9
  33. package/dist/{vue-ui-3d-bar-CnzqdJ9a.cjs → vue-ui-3d-bar-Cpk-_EL5.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-xaJlG5z1.js → vue-ui-accordion-BBxEpX99.js} +3 -3
  35. package/dist/{vue-ui-accordion-29kvjTJJ.cjs → vue-ui-accordion-Cl2Nv8Hj.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-DkzK0gH6.cjs → vue-ui-age-pyramid-BkbxFw8C.cjs} +1 -1
  37. package/dist/{vue-ui-age-pyramid-j7t7zeYE.js → vue-ui-age-pyramid-qRlB6uAw.js} +10 -10
  38. package/dist/{vue-ui-annotator-CmHA4R-i.js → vue-ui-annotator-CDTjWMB0.js} +1 -1
  39. package/dist/{vue-ui-annotator-CBSPKhr8.cjs → vue-ui-annotator-CJhZqzyV.cjs} +1 -1
  40. package/dist/{vue-ui-bullet-B4hT8f51.cjs → vue-ui-bullet-Dbp-Vqe-.cjs} +1 -1
  41. package/dist/{vue-ui-bullet-D1salOiB.js → vue-ui-bullet-DtG-Vt_C.js} +8 -8
  42. package/dist/{vue-ui-candlestick-3cMAjKZi.cjs → vue-ui-candlestick-BQ0okrc_.cjs} +1 -1
  43. package/dist/{vue-ui-candlestick-DHdic7zB.js → vue-ui-candlestick-zNokRMVi.js} +11 -11
  44. package/dist/{vue-ui-carousel-table-BvbeZJ0S.cjs → vue-ui-carousel-table-CgSe3nCS.cjs} +1 -1
  45. package/dist/{vue-ui-carousel-table-DnBNBeew.js → vue-ui-carousel-table-_PPXkjqq.js} +4 -4
  46. package/dist/{vue-ui-chestnut-U5utc6Qh.js → vue-ui-chestnut-B3PRjay7.js} +8 -8
  47. package/dist/{vue-ui-chestnut-CJqaXffU.cjs → vue-ui-chestnut-DA_Lwom0.cjs} +1 -1
  48. package/dist/{vue-ui-cursor-C8gxyozM.js → vue-ui-cursor-DHJm-rme.js} +2 -2
  49. package/dist/{vue-ui-cursor-D9-VsL48.cjs → vue-ui-cursor-DR9l3CwC.cjs} +1 -1
  50. package/dist/{vue-ui-dashboard-CxA5Q4PE.js → vue-ui-dashboard-C1hunabL.js} +2 -2
  51. package/dist/{vue-ui-dashboard-CMrXGPG0.cjs → vue-ui-dashboard-DhljTlst.cjs} +1 -1
  52. package/dist/{vue-ui-digits-D5GezzM_.js → vue-ui-digits-BLRTNzTZ.js} +2 -2
  53. package/dist/{vue-ui-digits-Cjf1g9lf.cjs → vue-ui-digits-SvVEmvwL.cjs} +1 -1
  54. package/dist/{vue-ui-donut-Shy2OalK.cjs → vue-ui-donut-D8Hb1sxc.cjs} +1 -1
  55. package/dist/{vue-ui-donut-C3LAAfJE.js → vue-ui-donut-e0MnNQI7.js} +11 -11
  56. package/dist/{vue-ui-donut-evolution-CyL5FJ4W.js → vue-ui-donut-evolution-BVmekse3.js} +11 -11
  57. package/dist/{vue-ui-donut-evolution-CQbhgiYh.cjs → vue-ui-donut-evolution-CIun7Doj.cjs} +1 -1
  58. package/dist/{vue-ui-dumbbell-CrA_i8KT.cjs → vue-ui-dumbbell-RpEh1FNm.cjs} +1 -1
  59. package/dist/{vue-ui-dumbbell-BLm9pkV4.js → vue-ui-dumbbell-n9cxnWpb.js} +10 -10
  60. package/dist/{vue-ui-flow-Com35BYP.js → vue-ui-flow-Ceg0rWiM.js} +9 -9
  61. package/dist/{vue-ui-flow-CdF4Xand.cjs → vue-ui-flow-D00C5TPY.cjs} +1 -1
  62. package/dist/{vue-ui-funnel-DPndJyyn.cjs → vue-ui-funnel-Cu-s9g9M.cjs} +1 -1
  63. package/dist/{vue-ui-funnel-D7L_RxLH.js → vue-ui-funnel-D2m0kGRH.js} +8 -8
  64. package/dist/{vue-ui-galaxy-DtHxtMp3.cjs → vue-ui-galaxy-BqP6r5ZU.cjs} +1 -1
  65. package/dist/{vue-ui-galaxy-Bl4EhL_u.js → vue-ui-galaxy-Ddx3Nn1X.js} +11 -11
  66. package/dist/{vue-ui-gauge-z1MVzS2I.cjs → vue-ui-gauge-1QS633xJ.cjs} +1 -1
  67. package/dist/{vue-ui-gauge-yxKIfu9v.js → vue-ui-gauge-gUbMlIT_.js} +7 -7
  68. package/dist/{vue-ui-gizmo-BLupOXIs.js → vue-ui-gizmo-Ccy4RhPb.js} +3 -3
  69. package/dist/{vue-ui-gizmo-CV5rKWIV.cjs → vue-ui-gizmo-CrvIGfpZ.cjs} +1 -1
  70. package/dist/{vue-ui-heatmap-BbwiuaOa.cjs → vue-ui-heatmap-C4Iwav3i.cjs} +1 -1
  71. package/dist/{vue-ui-heatmap-HuV7wqhm.js → vue-ui-heatmap-CWBmESQe.js} +10 -10
  72. package/dist/{vue-ui-history-plot-DMsTIaSb.js → vue-ui-history-plot-TAWfu5kj.js} +11 -11
  73. package/dist/{vue-ui-history-plot-pUSzj9Od.cjs → vue-ui-history-plot-kGJRgK9m.cjs} +1 -1
  74. package/dist/{vue-ui-kpi-CjZRMah7.js → vue-ui-kpi-BAcqK-Ms.js} +3 -3
  75. package/dist/{vue-ui-kpi-XLVcLQb7.cjs → vue-ui-kpi-P6g2ZVF8.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-CAhBsjdT.js → vue-ui-mini-loader-CGEQXp1h.js} +2 -2
  77. package/dist/{vue-ui-mini-loader-DC5oUwQF.cjs → vue-ui-mini-loader-CJ25Fm3D.cjs} +1 -1
  78. package/dist/{vue-ui-molecule-Wc8E3qBs.js → vue-ui-molecule-BZpxkcTu.js} +11 -11
  79. package/dist/{vue-ui-molecule-CDbCVef-.cjs → vue-ui-molecule-DAx9be53.cjs} +1 -1
  80. package/dist/{vue-ui-mood-radar-GBphv5aP.cjs → vue-ui-mood-radar-CcJvyzwi.cjs} +1 -1
  81. package/dist/{vue-ui-mood-radar-D3iqnLaw.js → vue-ui-mood-radar-DUEfbeCB.js} +11 -11
  82. package/dist/{vue-ui-nested-donuts-BXnr_Yqc.cjs → vue-ui-nested-donuts-B0d0Fsba.cjs} +1 -1
  83. package/dist/{vue-ui-nested-donuts-Sl4mJ7VV.js → vue-ui-nested-donuts-BMo1hfcS.js} +11 -11
  84. package/dist/{vue-ui-onion-BngFuJvf.js → vue-ui-onion-Cg3YeU97.js} +11 -11
  85. package/dist/{vue-ui-onion-jMgdOu_M.cjs → vue-ui-onion-D6nGZNLZ.cjs} +1 -1
  86. package/dist/{vue-ui-parallel-coordinate-plot-B6ilIkZB.js → vue-ui-parallel-coordinate-plot-DQjmpJb9.js} +12 -12
  87. package/dist/{vue-ui-parallel-coordinate-plot-Bu-P902n.cjs → vue-ui-parallel-coordinate-plot-KPYYnVuw.cjs} +1 -1
  88. package/dist/{vue-ui-quadrant-BRhI3kKr.cjs → vue-ui-quadrant-RLnuuwag.cjs} +1 -1
  89. package/dist/{vue-ui-quadrant-BizizlnH.js → vue-ui-quadrant-bHKg2t93.js} +12 -12
  90. package/dist/{vue-ui-quick-chart-D53rNf6f.cjs → vue-ui-quick-chart-BxDxUw3M.cjs} +1 -1
  91. package/dist/{vue-ui-quick-chart-BARDSG0g.js → vue-ui-quick-chart-Ced1YqrH.js} +9 -9
  92. package/dist/{vue-ui-radar-Ir6pCaOh.js → vue-ui-radar-BAkv6JbI.js} +12 -12
  93. package/dist/{vue-ui-radar-KYWEGL8E.cjs → vue-ui-radar-xgwBIuVW.cjs} +1 -1
  94. package/dist/{vue-ui-rating-CKPgNZj2.cjs → vue-ui-rating-BHAce6-0.cjs} +1 -1
  95. package/dist/{vue-ui-rating-DG4tijGO.js → vue-ui-rating-CFtTpqZI.js} +2 -2
  96. package/dist/{vue-ui-relation-circle-CDdmcxdV.cjs → vue-ui-relation-circle-BcI0yRKV.cjs} +1 -1
  97. package/dist/{vue-ui-relation-circle-BhVXvwqL.js → vue-ui-relation-circle-CheNKkkq.js} +7 -7
  98. package/dist/{vue-ui-rings-q4L8cZ8K.cjs → vue-ui-rings-Co3tJ729.cjs} +1 -1
  99. package/dist/{vue-ui-rings-1Efm4FOm.js → vue-ui-rings-Os9UnWcS.js} +11 -11
  100. package/dist/{vue-ui-scatter-B5UURkz7.js → vue-ui-scatter-B2c7CY0M.js} +12 -12
  101. package/dist/{vue-ui-scatter-DRKjRK93.cjs → vue-ui-scatter-LJUz3T1w.cjs} +1 -1
  102. package/dist/{vue-ui-screenshot-RezXzAk5.js → vue-ui-screenshot-BCulOhVr.js} +1 -1
  103. package/dist/{vue-ui-screenshot-BcZetsYU.cjs → vue-ui-screenshot-ChWMxEAe.cjs} +1 -1
  104. package/dist/{vue-ui-skeleton-b4tBZg2k.cjs → vue-ui-skeleton-BeHnq9mY.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-fxdPT2Rk.js → vue-ui-skeleton-f6rHKS81.js} +3 -3
  106. package/dist/{vue-ui-smiley-CM5UYHhu.js → vue-ui-smiley-Dj0RHsT0.js} +2 -2
  107. package/dist/{vue-ui-smiley-BewQIKVt.cjs → vue-ui-smiley-ua_0fiQ9.cjs} +1 -1
  108. package/dist/{vue-ui-spark-trend-B1WYpVZM.cjs → vue-ui-spark-trend-BuvXw2ir.cjs} +1 -1
  109. package/dist/{vue-ui-spark-trend-DCZAmpRD.js → vue-ui-spark-trend-jR98EW8D.js} +5 -5
  110. package/dist/{vue-ui-sparkbar-CVUQjIRg.js → vue-ui-sparkbar-BpzItjCF.js} +4 -4
  111. package/dist/{vue-ui-sparkbar-YFkRQH5G.cjs → vue-ui-sparkbar-l9PlnU8-.cjs} +1 -1
  112. package/dist/{vue-ui-sparkgauge-nnX6t1mG.js → vue-ui-sparkgauge-D-_mvaIn.js} +4 -4
  113. package/dist/{vue-ui-sparkgauge-BMVq0NQr.cjs → vue-ui-sparkgauge-FUzsytfC.cjs} +1 -1
  114. package/dist/{vue-ui-sparkhistogram-B4ZQxmhW.js → vue-ui-sparkhistogram-C3noaoQj.js} +5 -5
  115. package/dist/{vue-ui-sparkhistogram-CjtarRLH.cjs → vue-ui-sparkhistogram-pbHDgg7j.cjs} +1 -1
  116. package/dist/{vue-ui-sparkline-nLSK___A.js → vue-ui-sparkline-Dk-hrbv9.js} +4 -4
  117. package/dist/{vue-ui-sparkline-DQnpVWEQ.cjs → vue-ui-sparkline-dXI8E5Ri.cjs} +1 -1
  118. package/dist/{vue-ui-sparkstackbar-BqYKjHrz.cjs → vue-ui-sparkstackbar-4LGerraX.cjs} +1 -1
  119. package/dist/{vue-ui-sparkstackbar-D1nnT8IP.js → vue-ui-sparkstackbar-jPEUYlp-.js} +5 -5
  120. package/dist/{vue-ui-stackbar-BYdK1jKI.cjs → vue-ui-stackbar-CeAoEjId.cjs} +1 -1
  121. package/dist/{vue-ui-stackbar-K3blFJl0.js → vue-ui-stackbar-CuaEoRxi.js} +12 -12
  122. package/dist/{vue-ui-strip-plot-hKZAvMpv.cjs → vue-ui-strip-plot-BOHgyVJn.cjs} +1 -1
  123. package/dist/{vue-ui-strip-plot-BhBgCIIz.js → vue-ui-strip-plot-Cqy3-3nu.js} +11 -11
  124. package/dist/{vue-ui-table-Chu0vYdl.cjs → vue-ui-table-BZytxZb2.cjs} +1 -1
  125. package/dist/{vue-ui-table-J5egaqc5.js → vue-ui-table-CbC1hwJL.js} +1 -1
  126. package/dist/{vue-ui-table-heatmap-S_JAZAEK.cjs → vue-ui-table-heatmap-CWkJOfck.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-Ceegshvy.js → vue-ui-table-heatmap-D165ROz2.js} +4 -4
  128. package/dist/{vue-ui-table-sparkline-BM3Shv9L.js → vue-ui-table-sparkline-Bnz8P4JY.js} +159 -150
  129. package/dist/vue-ui-table-sparkline-DHsVnkV_.cjs +1 -0
  130. package/dist/{vue-ui-thermometer-4DZvIXOs.js → vue-ui-thermometer-B661qJ8Y.js} +7 -7
  131. package/dist/{vue-ui-thermometer-D7vkIb-i.cjs → vue-ui-thermometer-MeP1cDnD.cjs} +1 -1
  132. package/dist/{vue-ui-timer-KYV-pqhA.cjs → vue-ui-timer-NcWJbMoB.cjs} +1 -1
  133. package/dist/{vue-ui-timer-D2FIOD4-.js → vue-ui-timer-nRc9UBxy.js} +5 -5
  134. package/dist/{vue-ui-tiremarks-ChmnbREd.cjs → vue-ui-tiremarks-CW12JLiP.cjs} +1 -1
  135. package/dist/{vue-ui-tiremarks-Dg9V4v6a.js → vue-ui-tiremarks-DvpCQsEM.js} +7 -7
  136. package/dist/{vue-ui-treemap-FXQTgC6b.js → vue-ui-treemap-BnqW2Ylb.js} +11 -11
  137. package/dist/{vue-ui-treemap-DKqkKx4D.cjs → vue-ui-treemap-wk1EjoJU.cjs} +1 -1
  138. package/dist/{vue-ui-vertical-bar-CDXUVsC_.cjs → vue-ui-vertical-bar-BtgP6dAC.cjs} +1 -1
  139. package/dist/{vue-ui-vertical-bar-CZQIBXeq.js → vue-ui-vertical-bar-DtXSpngC.js} +11 -11
  140. package/dist/{vue-ui-waffle-D08MN7on.cjs → vue-ui-waffle-C7l2XSVp.cjs} +1 -1
  141. package/dist/{vue-ui-waffle-DhW1bypD.js → vue-ui-waffle-D-mI4tne.js} +11 -11
  142. package/dist/{vue-ui-wheel-CJVpdlwd.js → vue-ui-wheel-C8pv5llp.js} +7 -7
  143. package/dist/{vue-ui-wheel-CqE00fj1.cjs → vue-ui-wheel-CNVqc2Ef.cjs} +1 -1
  144. package/dist/{vue-ui-word-cloud-BZUett5Z.js → vue-ui-word-cloud-B6e7sxGq.js} +10 -10
  145. package/dist/{vue-ui-word-cloud-CxSoDf0-.cjs → vue-ui-word-cloud-CPrnRtuR.cjs} +1 -1
  146. package/dist/{vue-ui-xy-C5bUXDgI.cjs → vue-ui-xy-DQdxFY5B.cjs} +1 -1
  147. package/dist/{vue-ui-xy-CuMc0JMX.js → vue-ui-xy-DwBbSO-T.js} +14 -14
  148. package/dist/{vue-ui-xy-canvas-DWLRsM27.cjs → vue-ui-xy-canvas-BS8D_TrE.cjs} +1 -1
  149. package/dist/{vue-ui-xy-canvas-C7aEJ-9U.js → vue-ui-xy-canvas-BkUF0V5N.js} +11 -11
  150. package/package.json +1 -1
  151. package/dist/vue-ui-table-sparkline-CuR2vtzp.cjs +0 -1
@@ -1,18 +1,18 @@
1
- import { useCssVars as ce, ref as d, computed as h, watch as Y, onMounted as fe, openBlock as u, createElementBlock as r, normalizeClass as M, createElementVNode as c, normalizeStyle as i, toDisplayString as b, createCommentVNode as p, Fragment as V, renderList as E, createBlock as G, unref as v, createSlots as pe, withCtx as A, renderSlot as C, normalizeProps as be, guardReactiveProps as me, nextTick as ge } from "vue";
2
- import { u as he, c as ye, t as _e, a as ke, p as $, b as xe, o as Ce, e as Z, g as Ie, d as Se, $ as we, i as P, f as z, q as Ae, r as $e } from "./index-Co2zPDEB.js";
3
- import { u as j } from "./useNestedProp-BkJbU8lx.js";
4
- import Pe from "./vue-ui-sparkline-nLSK___A.js";
5
- import ze from "./BaseIcon-XaP3Hk56.js";
6
- import { u as Fe, U as Oe } from "./usePrinter-B9fZzpeu.js";
7
- import { _ as Ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } }, Te = ["onClick"], Me = { style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center" } }, Ve = ["data-cell"], Ee = {
1
+ import { useCssVars as fe, ref as d, computed as h, watch as ee, onMounted as pe, openBlock as u, createElementBlock as r, normalizeClass as V, createElementVNode as c, normalizeStyle as i, toDisplayString as b, createCommentVNode as p, withDirectives as be, Fragment as E, renderList as G, createBlock as L, unref as v, createSlots as me, withCtx as A, renderSlot as C, normalizeProps as ge, guardReactiveProps as he, nextTick as ye } from "vue";
2
+ import { u as ke, c as _e, t as xe, a as Ce, p as $, b as we, o as Ie, e as te, g as Se, d as Ae, $ as $e, i as P, f as z, q as Pe, r as ze } from "./index-CBrvip7f.js";
3
+ import { u as ae } from "./useNestedProp-BTqkOQhK.js";
4
+ import Oe from "./vue-ui-sparkline-Dk-hrbv9.js";
5
+ import Fe from "./BaseIcon-Dr_DIMeA.js";
6
+ import { u as Ne, U as We, v as De } from "./usePrinter-vaejWdsw.js";
7
+ import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const Me = ["id"], Ve = { style: { "z-index": "1", "padding-right": "24px" } }, Ee = ["onClick"], Ge = ["data-cell"], Le = {
9
9
  dir: "auto",
10
10
  style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "6px" }
11
- }, Ge = ["data-cell", "onPointerenter"], Le = ["data-cell"], Be = ["data-cell"], Re = ["data-cell"], Ue = ["data-cell"], He = {
11
+ }, Re = ["data-cell", "onPointerenter"], Be = ["data-cell"], Ue = ["data-cell"], He = ["data-cell"], qe = ["data-cell"], Xe = {
12
12
  key: 0,
13
13
  ref: "source",
14
14
  dir: "auto"
15
- }, qe = {
15
+ }, Je = {
16
16
  __name: "vue-ui-table-sparkline",
17
17
  props: {
18
18
  config: {
@@ -28,152 +28,155 @@ const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } },
28
28
  }
29
29
  }
30
30
  },
31
- setup(ee, { expose: te }) {
32
- const m = ee;
33
- ce((t) => ({
34
- "2e20cf3e": t.tdo
31
+ setup(le, { expose: oe }) {
32
+ const m = le;
33
+ fe((t) => ({
34
+ "7dcc964a": t.tdo
35
35
  }));
36
- const { vue_ui_table_sparkline: ae } = he(), F = d(ye()), L = d(0), I = d(0), O = d(null), e = h({
36
+ const { vue_ui_table_sparkline: ne } = ke(), O = d(_e()), R = d(0), w = d(0), F = d(null), e = h({
37
37
  get: () => B(),
38
38
  set: (t) => t
39
39
  });
40
40
  function B() {
41
- const t = j({
41
+ const t = ae({
42
42
  userConfig: m.config,
43
- defaultConfig: ae
43
+ defaultConfig: ne
44
44
  });
45
45
  return t.theme ? {
46
- ...j({
47
- userConfig: _e.vue_ui_table_sparkline[t.theme] || m.config,
46
+ ...ae({
47
+ userConfig: xe.vue_ui_table_sparkline[t.theme] || m.config,
48
48
  defaultConfig: t
49
49
  }),
50
- customPalette: ke[t.theme] || $
50
+ customPalette: Ce[t.theme] || $
51
51
  } : t;
52
52
  }
53
- Y(() => m.config, (t) => {
54
- e.value = B(), X(), I.value += 1;
55
- }, { deep: !0 }), Y(() => m.dataset, (t) => {
56
- k.value = y.value, I.value += 1;
53
+ ee(() => m.config, (t) => {
54
+ e.value = B(), J(), w.value += 1;
55
+ }, { deep: !0 }), ee(() => m.dataset, (t) => {
56
+ _.value = y.value, w.value += 1;
57
57
  }, { deep: !0 });
58
- const { isPrinting: R, isImaging: U, generatePdf: H, generateImage: q } = Fe({
59
- elementId: `table_${F.value}`,
58
+ const { isPrinting: U, isImaging: H, generatePdf: q, generateImage: X } = Ne({
59
+ elementId: `table_${O.value}`,
60
60
  fileName: e.value.title.text || "vue-ui-table-sparkline"
61
- }), le = h(() => xe(e.value.customPalette)), S = d(null), N = d(!1), oe = h(() => e.value.responsiveBreakpoint);
62
- fe(() => {
63
- X();
61
+ }), se = h(() => we(e.value.customPalette)), I = d(null), N = d(!1), ue = h(() => e.value.responsiveBreakpoint);
62
+ pe(() => {
63
+ J();
64
64
  });
65
- function X() {
66
- Ce(m.dataset) && Z({
65
+ const W = d(e.value.colNames);
66
+ function J() {
67
+ Ie(m.dataset) && te({
67
68
  componentName: "VueUiTableSparkline",
68
69
  type: "dataset"
69
70
  });
70
- const t = new ResizeObserver((s) => {
71
- s.forEach((a) => {
72
- N.value = a.contentRect.width < oe.value;
71
+ const t = new ResizeObserver((o) => {
72
+ o.forEach((a) => {
73
+ N.value = a.contentRect.width < ue.value;
73
74
  });
74
75
  });
75
- S.value && t.observe(S.value);
76
+ I.value && t.observe(I.value), W.value = [];
77
+ for (let o = 0; o < Y.value; o += 1)
78
+ W.value.push(e.value.colNames[o] || `col ${o}`);
76
79
  }
77
- const J = h(() => (m.dataset.forEach((t, s) => {
78
- Ie({
80
+ const K = h(() => (m.dataset.forEach((t, o) => {
81
+ Se({
79
82
  datasetObject: t,
80
83
  requiredAttributes: ["name", "values"]
81
84
  }).forEach((a) => {
82
- Z({
85
+ te({
83
86
  componentName: "VueUiTableSparkline",
84
87
  type: "datasetSerieAttribute",
85
88
  property: a,
86
- index: s
89
+ index: o
87
90
  });
88
91
  });
89
- }), m.dataset.map((t, s) => {
90
- const a = (t.values || []).map((n) => isNaN(n) ? 0 : n ?? 0), o = a.reduce((n, l) => n + l, 0);
92
+ }), m.dataset.map((t, o) => {
93
+ const a = (t.values || []).map((s) => isNaN(s) ? 0 : s ?? 0), n = a.reduce((s, l) => s + l, 0);
91
94
  return {
92
95
  ...t,
93
96
  values: t.values || [],
94
- color: Se(t.color) || le.value[s] || $[s] || $[s % $.length],
95
- sum: o,
96
- average: o / a.length,
97
- median: we(a),
98
- sparklineDataset: a.map((n, l) => ({
97
+ color: Ae(t.color) || se.value[o] || $[o] || $[o % $.length],
98
+ sum: n,
99
+ average: n / a.length,
100
+ median: $e(a),
101
+ sparklineDataset: a.map((s, l) => ({
99
102
  period: e.value.colNames[l] || `col ${l}`,
100
- value: n || 0
103
+ value: s || 0
101
104
  }))
102
105
  };
103
106
  })));
104
- function ne(t) {
107
+ function re(t) {
105
108
  const a = (t[0].values || []).map(
106
- (n, l) => t.map((f) => f.values[l] || [])
109
+ (s, l) => t.map((f) => f.values[l] || [])
107
110
  ).map(
108
- (n) => n.map((l, f) => [l, f]).sort((l, f) => f[0] - l[0]).map((l) => l[1])
111
+ (s) => s.map((l, f) => [l, f]).sort((l, f) => f[0] - l[0]).map((l) => l[1])
109
112
  );
110
- return t.map((n, l) => ({
111
- ...n,
112
- values: n.values || [],
113
+ return t.map((s, l) => ({
114
+ ...s,
115
+ values: s.values || [],
113
116
  orders: a[l]
114
117
  }));
115
118
  }
116
- const y = h(() => ne(J.value)), k = d(y.value), se = h(() => Math.max(...k.value.map((t) => (t.values || []).length))), w = d(void 0), W = d(!1), D = d(void 0), T = d(-1);
117
- function ue() {
118
- W.value = !1, D.value = void 0, T.value = -1, k.value = y.value;
119
+ const y = h(() => re(K.value)), _ = d(y.value), ie = h(() => Math.max(..._.value.map((t) => (t.values || []).length))), S = d(void 0), D = d(!1), T = d(void 0), M = d(-1);
120
+ function Q() {
121
+ D.value = !1, T.value = void 0, M.value = -1, _.value = y.value;
119
122
  }
120
- function re(t) {
121
- W.value = !0, D.value = t;
122
- const s = y.value.map((l) => l.values[t] || []), a = w.value === t ? 1 : -1;
123
- T.value = a, t === w.value ? w.value = void 0 : w.value = t;
124
- const n = s.map((l, f) => [f, l]).sort((l, f) => a * (f[1] - l[1])).map((l) => l[0]).map((l) => y.value[l]);
125
- k.value = n, I.value += 1;
123
+ function de(t) {
124
+ D.value = !0, T.value = t;
125
+ const o = y.value.map((l) => l.values[t] || []), a = S.value === t ? 1 : -1;
126
+ M.value = a, t === S.value ? S.value = void 0 : S.value = t;
127
+ const s = o.map((l, f) => [f, l]).sort((l, f) => a * (f[1] - l[1])).map((l) => l[0]).map((l) => y.value[l]);
128
+ _.value = s, w.value += 1;
126
129
  }
127
- const ie = h(() => Math.max(...m.dataset.map((t) => (t.values || []).length))), _ = h(() => {
128
- let t = e.value.colNames;
130
+ const Y = h(() => Math.max(...m.dataset.map((t) => (t.values || []).length))), k = h(() => {
131
+ let t = W.value;
129
132
  if (!t.length)
130
- for (let a = 0; a < ie.value; a += 1)
133
+ for (let a = 0; a < Y.value; a += 1)
131
134
  t.push(`col ${a + 1}`);
132
135
  e.value.showTotal && (t = [...t, e.value.translations.total]);
133
- let s;
134
- return e.value.showAverage && e.value.showMedian ? s = [
136
+ let o;
137
+ return e.value.showAverage && e.value.showMedian ? o = [
135
138
  ...t,
136
139
  e.value.translations.average,
137
140
  e.value.translations.median
138
- ] : e.value.showAverage && !e.value.showMedian ? s = [...t, e.value.translations.average] : !e.value.showAverage && e.value.showMedian ? s = [...t, e.value.translations.median] : s = t, e.value.showSparklines ? [...s, e.value.translations.chart] : s;
141
+ ] : e.value.showAverage && !e.value.showMedian ? o = [...t, e.value.translations.average] : !e.value.showAverage && e.value.showMedian ? o = [...t, e.value.translations.median] : o = t, e.value.showSparklines ? [...o, e.value.translations.chart] : o;
139
142
  }), g = d(void 0), x = d(void 0);
140
- function de({ dataIndex: t, serieIndex: s }) {
141
- g.value = t, x.value = s, O.value[t] && !N.value && O.value[t].scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
143
+ function ve({ dataIndex: t, serieIndex: o }) {
144
+ g.value = t, x.value = o, F.value[t] && !N.value && F.value[t].scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
142
145
  }
143
- const K = d(!1);
144
- function ve(t) {
145
- K.value = t, L.value += 1;
146
+ const Z = d(!1);
147
+ function ce(t) {
148
+ Z.value = t, R.value += 1;
146
149
  }
147
- function Q() {
148
- ge(() => {
149
- const t = [e.value.translations.serie].concat(_.value), s = J.value.map((n, l) => [
150
- [n.name],
151
- n.values,
152
- [n.sum],
153
- [n.average],
154
- [n.median]
155
- ]), a = [t].concat(s), o = Ae(a);
156
- $e({
157
- csvContent: o,
150
+ function j() {
151
+ ye(() => {
152
+ const t = [e.value.translations.serie].concat(k.value), o = K.value.map((s, l) => [
153
+ [s.name],
154
+ s.values,
155
+ [s.sum],
156
+ [s.average],
157
+ [s.median]
158
+ ]), a = [t].concat(o), n = Pe(a);
159
+ ze({
160
+ csvContent: n,
158
161
  title: e.value.title.text || "vue-ui-table-sparkline"
159
162
  });
160
163
  });
161
164
  }
162
- return te({
163
- generatePdf: H,
164
- generateImage: q,
165
- generateCsv: Q,
166
- restoreOrder: ue
167
- }), (t, s) => (u(), r("div", {
165
+ return oe({
166
+ generatePdf: q,
167
+ generateImage: X,
168
+ generateCsv: j,
169
+ restoreOrder: Q
170
+ }), (t, o) => (u(), r("div", {
168
171
  ref_key: "tableContainer",
169
- ref: S,
170
- class: M({ "vue-ui-responsive": N.value }),
172
+ ref: I,
173
+ class: V({ "vue-ui-responsive": N.value }),
171
174
  style: { overflow: "hidden" },
172
- id: `table_${F.value}`
175
+ id: `table_${O.value}`
173
176
  }, [
174
177
  c("div", {
175
178
  style: { overflow: "auto" },
176
- onPointerleave: s[0] || (s[0] = (a) => {
179
+ onPointerleave: o[0] || (o[0] = (a) => {
177
180
  x.value = void 0, g.value = void 0;
178
181
  })
179
182
  }, [
@@ -203,8 +206,8 @@ const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } },
203
206
  })
204
207
  }, b(e.value.title.subtitle.text), 5)) : p("", !0)
205
208
  ], 4)) : p("", !0),
206
- c("thead", De, [
207
- c("tr", {
209
+ c("thead", Ve, [
210
+ be((u(), r("tr", {
208
211
  role: "row",
209
212
  class: "vue-ui-data-table__thead-row",
210
213
  style: i({
@@ -216,56 +219,59 @@ const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } },
216
219
  role: "cell",
217
220
  style: i({
218
221
  backgroundColor: e.value.thead.backgroundColor,
219
- outline: e.value.thead.outline,
222
+ border: e.value.thead.outline,
220
223
  textAlign: e.value.thead.textAlign,
221
224
  fontWeight: e.value.thead.bold ? "bold" : "normal"
222
225
  }),
223
226
  class: "sticky-col-first"
224
227
  }, b(e.value.translations.serie), 5),
225
- (u(!0), r(V, null, E(_.value, (a, o) => (u(), r("th", {
228
+ (u(!0), r(E, null, G(k.value, (a, n) => (u(), r("th", {
226
229
  role: "cell",
227
230
  style: i({
228
231
  background: e.value.thead.backgroundColor,
229
- outline: e.value.thead.outline,
232
+ border: e.value.thead.outline,
230
233
  textAlign: e.value.thead.textAlign,
231
234
  fontWeight: e.value.thead.bold ? "bold" : "normal",
232
- minWidth: o === _.value.length - 1 ? "150px" : "",
233
- cursor: y.value[0].values[o] !== void 0 ? "pointer" : "default"
235
+ minWidth: n === k.value.length - 1 ? "150px" : "48px",
236
+ cursor: y.value[0].values[n] !== void 0 ? "pointer" : "default",
237
+ paddingRight: n === k.value.length - 1 && e.value.userOptions.show ? "36px" : ""
234
238
  }),
235
- onClick: () => re(o),
236
- class: M({ "sticky-col": o === _.value.length - 1 && e.value.showSparklines })
239
+ onClick: () => de(n),
240
+ class: V({ "sticky-col": n === k.value.length - 1 && e.value.showSparklines })
237
241
  }, [
238
- c("div", Me, [
239
- c("span", null, b(a), 1),
240
- W.value && o === D.value && y.value[0].values[o] !== void 0 ? (u(), G(ze, {
242
+ c("div", null, [
243
+ c("span", {
244
+ style: i({ textAlign: e.value.thead.textAlign })
245
+ }, b(a), 5),
246
+ D.value && n === T.value && y.value[0].values[n] !== void 0 ? (u(), L(Fe, {
241
247
  key: 0,
242
248
  size: 18,
243
- name: T.value === 1 ? "sort" : "sortReverse",
249
+ name: M.value === 1 ? "sort" : "sortReverse",
244
250
  stroke: e.value.thead.color
245
251
  }, null, 8, ["name", "stroke"])) : p("", !0)
246
252
  ]),
247
- e.value.userOptions.show && o === _.value.length - 1 ? (u(), G(Oe, {
253
+ e.value.userOptions.show && n === k.value.length - 1 ? (u(), L(We, {
248
254
  ref_for: !0,
249
255
  ref: "details",
250
- key: `user_option_${L.value}`,
256
+ key: `user_option_${R.value}`,
251
257
  backgroundColor: e.value.thead.backgroundColor,
252
258
  color: e.value.thead.color,
253
- isPrinting: v(R),
254
- isImaging: v(U),
255
- uid: F.value,
259
+ isPrinting: v(U),
260
+ isImaging: v(H),
261
+ uid: O.value,
256
262
  hasPdf: e.value.userOptions.buttons.pdf,
257
263
  hasXls: e.value.userOptions.buttons.csv,
258
264
  hasImg: e.value.userOptions.buttons.img,
259
265
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
260
- isFullscreen: K.value,
266
+ isFullscreen: Z.value,
261
267
  titles: { ...e.value.userOptions.buttonTitles },
262
- chartElement: S.value,
268
+ chartElement: I.value,
263
269
  position: e.value.userOptions.position,
264
- onToggleFullscreen: ve,
265
- onGeneratePdf: v(H),
266
- onGenerateImage: v(q),
267
- onGenerateCsv: Q
268
- }, pe({ _: 2 }, [
270
+ onToggleFullscreen: ce,
271
+ onGeneratePdf: v(q),
272
+ onGenerateImage: v(X),
273
+ onGenerateCsv: j
274
+ }, me({ _: 2 }, [
269
275
  t.$slots.optionPdf ? {
270
276
  name: "optionPdf",
271
277
  fn: A(() => [
@@ -289,23 +295,25 @@ const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } },
289
295
  } : void 0,
290
296
  t.$slots.optionFullscreen ? {
291
297
  name: "optionFullscreen",
292
- fn: A(({ toggleFullscreen: n, isFullscreen: l }) => [
293
- C(t.$slots, "optionFullscreen", be(me({ toggleFullscreen: n, isFullscreen: l })), void 0, !0)
298
+ fn: A(({ toggleFullscreen: s, isFullscreen: l }) => [
299
+ C(t.$slots, "optionFullscreen", ge(he({ toggleFullscreen: s, isFullscreen: l })), void 0, !0)
294
300
  ]),
295
301
  key: "3"
296
302
  } : void 0
297
303
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : p("", !0)
298
- ], 14, Te))), 256))
299
- ], 4)
304
+ ], 14, Ee))), 256))
305
+ ], 4)), [
306
+ [v(De), Q]
307
+ ])
300
308
  ]),
301
309
  c("tbody", null, [
302
- (u(!0), r(V, null, E(k.value, (a, o) => (u(), r("tr", {
310
+ (u(!0), r(E, null, G(_.value, (a, n) => (u(), r("tr", {
303
311
  role: "row",
304
312
  style: i({
305
313
  backgroundColor: e.value.tbody.backgroundColor,
306
314
  color: e.value.tbody.color
307
315
  }),
308
- class: M({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 })
316
+ class: V({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": n % 2 === 0, "vue-ui-data-table__tbody__row-odd": n % 2 !== 0 })
309
317
  }, [
310
318
  c("td", {
311
319
  role: "cell",
@@ -319,32 +327,32 @@ const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } },
319
327
  "data-cell": e.value.translations.serie,
320
328
  class: "vue-ui-data-table__tbody__td sticky-col-first"
321
329
  }, [
322
- c("div", Ee, [
330
+ c("div", Le, [
323
331
  e.value.tbody.showColorMarker ? (u(), r("span", {
324
332
  key: 0,
325
333
  style: i({ color: a.color })
326
334
  }, "⬤", 4)) : p("", !0),
327
335
  c("span", null, b(a.name ?? "-"), 1)
328
336
  ])
329
- ], 12, Ve),
330
- (u(!0), r(V, null, E(se.value, (n, l) => (u(), r("td", {
337
+ ], 12, Ge),
338
+ (u(!0), r(E, null, G(ie.value, (s, l) => (u(), r("td", {
331
339
  dir: "auto",
332
340
  role: "cell",
333
341
  ref_for: !0,
334
342
  ref_key: "TD",
335
- ref: O,
343
+ ref: F,
336
344
  style: i({
337
345
  border: e.value.tbody.outline,
338
346
  fontSize: `${e.value.tbody.fontSize}px`,
339
347
  fontWeight: e.value.tbody.bold ? "bold" : "normal",
340
348
  textAlign: e.value.tbody.textAlign,
341
349
  background: g.value !== void 0 && l === g.value ? e.value.tbody.selectedColor.useSerieColor ? `${a.color.length > 7 ? a.color.slice(0, -2) : a.color}33` : e.value.tbody.selectedColor.fallback : "",
342
- borderRadius: g.value !== void 0 && x.value !== void 0 && l === g.value && x.value === o ? "3px" : ""
350
+ borderRadius: g.value !== void 0 && x.value !== void 0 && l === g.value && x.value === n ? "3px" : ""
343
351
  }),
344
- "data-cell": _.value[l],
352
+ "data-cell": k.value[l],
345
353
  class: "vue-ui-data-table__tbody__td",
346
354
  onPointerenter: (f) => {
347
- x.value = o, g.value = l;
355
+ x.value = n, g.value = l;
348
356
  }
349
357
  }, b([null, void 0].includes(a.values[l]) ? "-" : v(P)(
350
358
  e.value.formatter,
@@ -355,8 +363,8 @@ const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } },
355
363
  s: e.value.suffix,
356
364
  r: e.value.roundingValues
357
365
  }),
358
- { datapoint: a, seriesIndex: o, datapointIndex: l }
359
- )), 45, Ge))), 256)),
366
+ { datapoint: a, seriesIndex: n, datapointIndex: l }
367
+ )), 45, Re))), 256)),
360
368
  e.value.showTotal ? (u(), r("td", {
361
369
  key: 0,
362
370
  dir: "auto",
@@ -378,8 +386,8 @@ const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } },
378
386
  s: e.value.suffix,
379
387
  r: e.value.roundingTotal
380
388
  }),
381
- { datapoint: a.sum, seriesIndex: o }
382
- )), 13, Le)) : p("", !0),
389
+ { datapoint: a.sum, seriesIndex: n }
390
+ )), 13, Be)) : p("", !0),
383
391
  e.value.showAverage ? (u(), r("td", {
384
392
  key: 1,
385
393
  dir: "auto",
@@ -401,8 +409,8 @@ const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } },
401
409
  s: e.value.suffix,
402
410
  r: e.value.roundingAverage
403
411
  }),
404
- { datapoint: a.average, seriesIndex: o }
405
- )), 13, Be)) : p("", !0),
412
+ { datapoint: a.average, seriesIndex: n }
413
+ )), 13, Ue)) : p("", !0),
406
414
  e.value.showMedian ? (u(), r("td", {
407
415
  key: 2,
408
416
  dir: "auto",
@@ -424,8 +432,8 @@ const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } },
424
432
  s: e.value.suffix,
425
433
  r: e.value.roundingMedian
426
434
  }),
427
- { datapoint: a.median, seriesIndex: o }
428
- )), 13, Re)) : p("", !0),
435
+ { datapoint: a.median, seriesIndex: n }
436
+ )), 13, He)) : p("", !0),
429
437
  e.value.showSparklines ? (u(), r("td", {
430
438
  key: 3,
431
439
  role: "cell",
@@ -435,13 +443,14 @@ const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } },
435
443
  fontSize: `${e.value.tbody.fontSize}px`,
436
444
  fontWeight: e.value.tbody.bold ? "bold" : "normal",
437
445
  textAlign: e.value.tbody.textAlign,
438
- backgroundColor: e.value.tbody.backgroundColor
446
+ backgroundColor: e.value.tbody.backgroundColor,
447
+ padding: "0"
439
448
  }),
440
449
  class: "vue-ui-data-table__tbody__td sticky-col"
441
450
  }, [
442
- (u(), G(Pe, {
443
- key: `sparkline_${o}_${I.value}`,
444
- onHoverIndex: ({ index: n }) => de({ dataIndex: n, serieIndex: o }),
451
+ (u(), L(Oe, {
452
+ key: `sparkline_${n}_${w.value}`,
453
+ onHoverIndex: ({ index: s }) => ve({ dataIndex: s, serieIndex: n }),
445
454
  dataset: a.sparklineDataset,
446
455
  showInfo: !1,
447
456
  selectedIndex: g.value,
@@ -450,7 +459,7 @@ const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } },
450
459
  style: {
451
460
  backgroundColor: e.value.tbody.backgroundColor,
452
461
  animation: {
453
- show: e.value.sparkline.animation.show && !v(R) && !v(U),
462
+ show: e.value.sparkline.animation.show && !v(U) && !v(H),
454
463
  animationFrames: e.value.sparkline.animation.animationFrames
455
464
  },
456
465
  line: {
@@ -477,17 +486,17 @@ const We = ["id"], De = { style: { "z-index": "1", "padding-right": "24px" } },
477
486
  }
478
487
  }
479
488
  }, null, 8, ["onHoverIndex", "dataset", "selectedIndex", "config"]))
480
- ], 12, Ue)) : p("", !0)
489
+ ], 12, qe)) : p("", !0)
481
490
  ], 6))), 256))
482
491
  ])
483
492
  ], 4)
484
493
  ], 32),
485
- t.$slots.source ? (u(), r("div", He, [
494
+ t.$slots.source ? (u(), r("div", Xe, [
486
495
  C(t.$slots, "source", {}, void 0, !0)
487
496
  ], 512)) : p("", !0)
488
- ], 10, We));
497
+ ], 10, Me));
489
498
  }
490
- }, et = /* @__PURE__ */ Ne(qe, [["__scopeId", "data-v-b0a2f2ee"]]);
499
+ }, at = /* @__PURE__ */ Te(Je, [["__scopeId", "data-v-cb98a9a9"]]);
491
500
  export {
492
- et as default
501
+ at as default
493
502
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-zUb8kR1J.cjs"),L=require("./useNestedProp--dgI0yN_.cjs"),Q=require("./vue-ui-sparkline-dXI8E5Ri.cjs"),Y=require("./BaseIcon-D_2AVea5.cjs"),B=require("./usePrinter-5cM3APqp.cjs"),Z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),j=["id"],ee={style:{"z-index":"1","padding-right":"24px"}},te=["onClick"],le=["data-cell"],ae={dir:"auto",style:{display:"flex","flex-direction":"row","align-items":"center",gap:"6px"}},oe=["data-cell","onPointerenter"],ne=["data-cell"],re=["data-cell"],ue=["data-cell"],se=["data-cell"],ie={key:0,ref:"source",dir:"auto"},de={__name:"vue-ui-table-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:M}){const d=T;e.useCssVars(l=>({"7dcc964a":l.tdo}));const{vue_ui_table_sparkline:G}=s.useConfig(),k=e.ref(s.createUid()),z=e.ref(0),b=e.ref(0),h=e.ref(null),t=e.computed({get:()=>N(),set:l=>l});function N(){const l=L.useNestedProp({userConfig:d.config,defaultConfig:G});return l.theme?{...L.useNestedProp({userConfig:s.themes.vue_ui_table_sparkline[l.theme]||d.config,defaultConfig:l}),customPalette:s.themePalettes[l.theme]||s.palette}:l}e.watch(()=>d.config,l=>{t.value=N(),$(),b.value+=1},{deep:!0}),e.watch(()=>d.dataset,l=>{m.value=v.value,b.value+=1},{deep:!0});const{isPrinting:I,isImaging:A,generatePdf:E,generateImage:V}=B.usePrinter({elementId:`table_${k.value}`,fileName:t.value.title.text||"vue-ui-table-sparkline"}),q=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),g=e.ref(null),_=e.ref(!1),R=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{$()});const x=e.ref(t.value.colNames);function $(){s.objectIsEmpty(d.dataset)&&s.error({componentName:"VueUiTableSparkline",type:"dataset"});const l=new ResizeObserver(n=>{n.forEach(a=>{_.value=a.contentRect.width<R.value})});g.value&&l.observe(g.value),x.value=[];for(let n=0;n<F.value;n+=1)x.value.push(t.value.colNames[n]||`col ${n}`)}const P=e.computed(()=>(d.dataset.forEach((l,n)=>{s.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{s.error({componentName:"VueUiTableSparkline",type:"datasetSerieAttribute",property:a,index:n})})}),d.dataset.map((l,n)=>{const a=(l.values||[]).map(u=>isNaN(u)?0:u??0),r=a.reduce((u,o)=>u+o,0);return{...l,values:l.values||[],color:s.convertColorToHex(l.color)||q.value[n]||s.palette[n]||s.palette[n%s.palette.length],sum:r,average:r/a.length,median:s.calcMedian(a),sparklineDataset:a.map((u,o)=>({period:t.value.colNames[o]||`col ${o}`,value:u||0}))}})));function U(l){const a=(l[0].values||[]).map((u,o)=>l.map(i=>i.values[o]||[])).map(u=>u.map((o,i)=>[o,i]).sort((o,i)=>i[0]-o[0]).map(o=>o[1]));return l.map((u,o)=>({...u,values:u.values||[],orders:a[o]}))}const v=e.computed(()=>U(P.value)),m=e.ref(v.value),H=e.computed(()=>Math.max(...m.value.map(l=>(l.values||[]).length))),y=e.ref(void 0),C=e.ref(!1),S=e.ref(void 0),w=e.ref(-1);function D(){C.value=!1,S.value=void 0,w.value=-1,m.value=v.value}function X(l){C.value=!0,S.value=l;const n=v.value.map(o=>o.values[l]||[]),a=y.value===l?1:-1;w.value=a,l===y.value?y.value=void 0:y.value=l;const u=n.map((o,i)=>[i,o]).sort((o,i)=>a*(i[1]-o[1])).map(o=>o[0]).map(o=>v.value[o]);m.value=u,b.value+=1}const F=e.computed(()=>Math.max(...d.dataset.map(l=>(l.values||[]).length))),p=e.computed(()=>{let l=x.value;if(!l.length)for(let a=0;a<F.value;a+=1)l.push(`col ${a+1}`);t.value.showTotal&&(l=[...l,t.value.translations.total]);let n;return t.value.showAverage&&t.value.showMedian?n=[...l,t.value.translations.average,t.value.translations.median]:t.value.showAverage&&!t.value.showMedian?n=[...l,t.value.translations.average]:!t.value.showAverage&&t.value.showMedian?n=[...l,t.value.translations.median]:n=l,t.value.showSparklines?[...n,t.value.translations.chart]:n}),c=e.ref(void 0),f=e.ref(void 0);function J({dataIndex:l,serieIndex:n}){c.value=l,f.value=n,h.value[l]&&!_.value&&h.value[l].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}const O=e.ref(!1);function K(l){O.value=l,z.value+=1}function W(){e.nextTick(()=>{const l=[t.value.translations.serie].concat(p.value),n=P.value.map((u,o)=>[[u.name],u.values,[u.sum],[u.average],[u.median]]),a=[l].concat(n),r=s.createCsvContent(a);s.downloadCsv({csvContent:r,title:t.value.title.text||"vue-ui-table-sparkline"})})}return M({generatePdf:E,generateImage:V,generateCsv:W,restoreOrder:D}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:g,class:e.normalizeClass({"vue-ui-responsive":_.value}),style:{overflow:"hidden"},id:`table_${k.value}`},[e.createElementVNode("div",{style:{overflow:"auto"},onPointerleave:n[0]||(n[0]=a=>{f.value=void 0,c.value=void 0})},[e.createElementVNode("table",{class:"vue-ui-data-table",style:e.normalizeStyle({fontFamily:t.value.fontFamily,position:"relative"})},[t.value.title.text?(e.openBlock(),e.createElementBlock("caption",{key:0,style:e.normalizeStyle({backgroundColor:t.value.title.backgroundColor})},[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:`${t.value.title.fontSize}px`,fontWeight:t.value.title.bold?"bold":"normal",color:t.value.title.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.text),5),t.value.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({fontSize:`${t.value.title.subtitle.fontSize}px`,fontWeight:t.value.title.subtitle.bold?"bold":"normal",color:t.value.title.subtitle.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("thead",ee,[e.withDirectives((e.openBlock(),e.createElementBlock("tr",{role:"row",class:"vue-ui-data-table__thead-row",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color})},[e.createElementVNode("th",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,border:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal"}),class:"sticky-col-first"},e.toDisplayString(t.value.translations.serie),5),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(a,r)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",style:e.normalizeStyle({background:t.value.thead.backgroundColor,border:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal",minWidth:r===p.value.length-1?"150px":"48px",cursor:v.value[0].values[r]!==void 0?"pointer":"default",paddingRight:r===p.value.length-1&&t.value.userOptions.show?"36px":""}),onClick:()=>X(r),class:e.normalizeClass({"sticky-col":r===p.value.length-1&&t.value.showSparklines})},[e.createElementVNode("div",null,[e.createElementVNode("span",{style:e.normalizeStyle({textAlign:t.value.thead.textAlign})},e.toDisplayString(a),5),C.value&&r===S.value&&v.value[0].values[r]!==void 0?(e.openBlock(),e.createBlock(Y.default,{key:0,size:18,name:w.value===1?"sort":"sortReverse",stroke:t.value.thead.color},null,8,["name","stroke"])):e.createCommentVNode("",!0)]),t.value.userOptions.show&&r===p.value.length-1?(e.openBlock(),e.createBlock(B.UserOptions,{ref_for:!0,ref:"details",key:`user_option_${z.value}`,backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color,isPrinting:e.unref(I),isImaging:e.unref(A),uid:k.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:O.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,onToggleFullscreen:K,onGeneratePdf:e.unref(E),onGenerateImage:e.unref(V),onGenerateCsv:W},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:u,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:u,isFullscreen:o})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0)],14,te))),256))],4)),[[e.unref(B.vClickOutside),D]])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(a,r)=>(e.openBlock(),e.createElementBlock("tr",{role:"row",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,color:t.value.tbody.color}),class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":r%2===0,"vue-ui-data-table__tbody__row-odd":r%2!==0})},[e.createElementVNode("td",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.serie,class:"vue-ui-data-table__tbody__td sticky-col-first"},[e.createElementVNode("div",ae,[t.value.tbody.showColorMarker?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle({color:a.color})},"⬤",4)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(a.name??"-"),1)])],12,le),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(u,o)=>(e.openBlock(),e.createElementBlock("td",{dir:"auto",role:"cell",ref_for:!0,ref_key:"TD",ref:h,style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign,background:c.value!==void 0&&o===c.value?t.value.tbody.selectedColor.useSerieColor?`${a.color.length>7?a.color.slice(0,-2):a.color}33`:t.value.tbody.selectedColor.fallback:"",borderRadius:c.value!==void 0&&f.value!==void 0&&o===c.value&&f.value===r?"3px":""}),"data-cell":p.value[o],class:"vue-ui-data-table__tbody__td",onPointerenter:i=>{f.value=r,c.value=o}},e.toDisplayString([null,void 0].includes(a.values[o])?"-":e.unref(s.applyDataLabel)(t.value.formatter,Number(a.values[o]),e.unref(s.dataLabel)({p:t.value.prefix,v:Number(a.values[o]),s:t.value.suffix,r:t.value.roundingValues}),{datapoint:a,seriesIndex:r,datapointIndex:o})),45,oe))),256)),t.value.showTotal?(e.openBlock(),e.createElementBlock("td",{key:0,dir:"auto",role:"cell",style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.total,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.formatter,a.sum,e.unref(s.dataLabel)({p:t.value.prefix,v:a.sum,s:t.value.suffix,r:t.value.roundingTotal}),{datapoint:a.sum,seriesIndex:r})),13,ne)):e.createCommentVNode("",!0),t.value.showAverage?(e.openBlock(),e.createElementBlock("td",{key:1,dir:"auto",role:"cell",style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.average,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.formatter,a.average,e.unref(s.dataLabel)({p:t.value.prefix,v:a.average,s:t.value.suffix,r:t.value.roundingAverage}),{datapoint:a.average,seriesIndex:r})),13,re)):e.createCommentVNode("",!0),t.value.showMedian?(e.openBlock(),e.createElementBlock("td",{key:2,dir:"auto",role:"cell",style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.median,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.formatter,a.median,e.unref(s.dataLabel)({p:t.value.prefix,v:a.median,s:t.value.suffix,r:t.value.roundingMedian}),{datapoint:a.median,seriesIndex:r})),13,ue)):e.createCommentVNode("",!0),t.value.showSparklines?(e.openBlock(),e.createElementBlock("td",{key:3,role:"cell","data-cell":t.value.translations.chart,style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign,backgroundColor:t.value.tbody.backgroundColor,padding:"0"}),class:"vue-ui-data-table__tbody__td sticky-col"},[(e.openBlock(),e.createBlock(Q.default,{key:`sparkline_${r}_${b.value}`,onHoverIndex:({index:u})=>J({dataIndex:u,serieIndex:r}),dataset:a.sparklineDataset,showInfo:!1,selectedIndex:c.value,config:{type:t.value.sparkline.type,style:{backgroundColor:t.value.tbody.backgroundColor,animation:{show:t.value.sparkline.animation.show&&!e.unref(I)&&!e.unref(A),animationFrames:t.value.sparkline.animation.animationFrames},line:{color:a.color,smooth:t.value.sparkline.smooth,strokeWidth:t.value.sparkline.strokeWidth},bar:{color:a.color},area:{color:a.color,opacity:t.value.sparkline.showArea?16:0,useGradient:t.value.sparkline.useGradient},verticalIndicator:{color:a.color},plot:{radius:9,stroke:t.value.tbody.backgroundColor,strokeWidth:3}}}},null,8,["onHoverIndex","dataset","selectedIndex","config"]))],12,se)):e.createCommentVNode("",!0)],6))),256))])],4)],32),l.$slots.source?(e.openBlock(),e.createElementBlock("div",ie,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],10,j))}},ce=Z._export_sfc(de,[["__scopeId","data-v-cb98a9a9"]]);exports.default=ce;
@@ -1,11 +1,11 @@
1
1
  import { useCssVars as ye, computed as h, onMounted as fe, ref as g, watch as ge, openBlock as l, createElementBlock as u, normalizeClass as P, normalizeStyle as me, createBlock as F, createCommentVNode as i, unref as v, createSlots as pe, withCtx as I, renderSlot as m, normalizeProps as G, guardReactiveProps as V, createVNode as ke, createElementVNode as d, Fragment as O, renderList as K, toDisplayString as be } from "vue";
2
- import { u as _e, o as xe, e as Q, g as we, c as Ce, t as $e, a as Pe, p as _, b as Fe, v as f, d as A, X as Ie, s as Oe, i as Ae, f as Ye } from "./index-Co2zPDEB.js";
3
- import { _ as Ne } from "./Title-Ct3mhgnX.js";
4
- import { u as Me, U as Te } from "./usePrinter-B9fZzpeu.js";
5
- import Se from "./vue-ui-skeleton-fxdPT2Rk.js";
6
- import { u as Z } from "./useNestedProp-BkJbU8lx.js";
7
- import { _ as Ue } from "./PackageVersion-wA829kRV.js";
8
- import { P as qe } from "./PenAndPaper-XIxRCYAM.js";
2
+ import { u as _e, o as xe, e as Q, g as we, c as Ce, t as $e, a as Pe, p as _, b as Fe, v as f, d as A, X as Ie, s as Oe, i as Ae, f as Ye } from "./index-CBrvip7f.js";
3
+ import { _ as Ne } from "./Title-C-TBUf-X.js";
4
+ import { u as Me, U as Te } from "./usePrinter-vaejWdsw.js";
5
+ import Se from "./vue-ui-skeleton-f6rHKS81.js";
6
+ import { u as Z } from "./useNestedProp-BTqkOQhK.js";
7
+ import { _ as Ue } from "./PackageVersion-Br64Mym2.js";
8
+ import { P as qe } from "./PenAndPaper-Xjz8xzgj.js";
9
9
  import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const Ge = ["id"], Ve = {
11
11
  key: 1,