vue-data-ui 2.3.85 → 2.3.86

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 (169) hide show
  1. package/dist/{Arrow-JwDgP3de.js → Arrow-CJ7hmWgf.js} +1 -1
  2. package/dist/{Arrow-CLOh6oi7.cjs → Arrow-CebZn6E4.cjs} +1 -1
  3. package/dist/{BaseIcon-BysUnfCR.js → BaseIcon-B9istAKo.js} +1 -1
  4. package/dist/{BaseIcon-BBQHz_Sf.cjs → BaseIcon-DnG75_Ol.cjs} +1 -1
  5. package/dist/{DataTable-pVXaNplZ.cjs → DataTable-BA_BCbHC.cjs} +1 -1
  6. package/dist/{DataTable-MkG5Dqrn.js → DataTable-tSDSY14n.js} +2 -2
  7. package/dist/{Legend-k2mcTp7z.cjs → Legend-BOY57qwA.cjs} +1 -1
  8. package/dist/{Legend-KW7sTwN3.js → Legend-D3hovFqM.js} +1 -1
  9. package/dist/{Shape-COoEWeGM.cjs → Shape-D6jrLLku.cjs} +1 -1
  10. package/dist/{Shape-BFiZBf3X.js → Shape-XiTBfhJM.js} +1 -1
  11. package/dist/{Slicer-CALc-Q4W.js → Slicer-BMvzmCKt.js} +2 -2
  12. package/dist/{Slicer-DCyxUSsn.cjs → Slicer-sZ-DArc4.cjs} +1 -1
  13. package/dist/{Title-BaKZYHEx.cjs → Title-Ahj4TYHa.cjs} +1 -1
  14. package/dist/{Title-ISDbzCH8.js → Title-DJ2FNrSN.js} +1 -1
  15. package/dist/{Tooltip-BHmMXOej.js → Tooltip-CQpXRqRC.js} +1 -1
  16. package/dist/{Tooltip-okAYzo5Y.cjs → Tooltip-XhevgJmm.cjs} +1 -1
  17. package/dist/index-CVgBMJU6.cjs +4 -0
  18. package/dist/{index-BiuHBtkZ.js → index-D2epy0rJ.js} +4 -1
  19. package/dist/style.css +1 -1
  20. package/dist/types/vue-data-ui.d.cts +3 -0
  21. package/dist/types/vue-data-ui.d.ts +3 -0
  22. package/dist/{useNestedProp-B9yDavuy.cjs → useNestedProp-B-NmF2LO.cjs} +1 -1
  23. package/dist/{useNestedProp-Ck5_RzLu.js → useNestedProp-C_ZrJBd9.js} +1 -1
  24. package/dist/usePrinter-B6qtXaHk.js +527 -0
  25. package/dist/usePrinter-DN-6Hoh5.cjs +1 -0
  26. package/dist/{vue-data-ui-CVYCyzY-.cjs → vue-data-ui-DlNasA0G.cjs} +1 -1
  27. package/dist/{vue-data-ui-CAl2KJv9.js → vue-data-ui-vegY0BJm.js} +57 -57
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-CqRRjlUU.cjs +19 -0
  31. package/dist/{vue-ui-3d-bar-CploAEkY.js → vue-ui-3d-bar-D-0SSMOt.js} +11 -10
  32. package/dist/{vue-ui-accordion-btKAUUTu.cjs → vue-ui-accordion-BaV9R6cy.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-D2fhyKpk.js → vue-ui-accordion-DzTB2FL0.js} +3 -3
  34. package/dist/vue-ui-age-pyramid-Bx4BuL3K.cjs +1 -0
  35. package/dist/{vue-ui-age-pyramid-DkaM5MrK.js → vue-ui-age-pyramid-_eo2DGen.js} +25 -24
  36. package/dist/{vue-ui-annotator-38FBI0Pn.js → vue-ui-annotator-8j2dJ0CU.js} +1 -1
  37. package/dist/{vue-ui-annotator-BMYk78DR.cjs → vue-ui-annotator-CDZtr6tp.cjs} +1 -1
  38. package/dist/{vue-ui-candlestick-CKsjq0Uw.js → vue-ui-candlestick-CsF7OSvJ.js} +12 -11
  39. package/dist/vue-ui-candlestick-NypxP0Uu.cjs +2 -0
  40. package/dist/{vue-ui-carousel-table-DjGaEuM7.js → vue-ui-carousel-table-CMHd2i-6.js} +7 -7
  41. package/dist/{vue-ui-carousel-table-Cx72LlTd.cjs → vue-ui-carousel-table-CV0eVeRd.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-DAiBfoPN.cjs → vue-ui-chestnut-B9miwyAN.cjs} +2 -2
  43. package/dist/{vue-ui-chestnut-TLyh4dIZ.js → vue-ui-chestnut-CVftKftk.js} +10 -9
  44. package/dist/{vue-ui-cursor-BunDuWpK.cjs → vue-ui-cursor-Bsrt107X.cjs} +1 -1
  45. package/dist/{vue-ui-cursor-B1xa5yua.js → vue-ui-cursor-wujy8n_T.js} +2 -2
  46. package/dist/{vue-ui-dashboard-CMZ736DL.cjs → vue-ui-dashboard-BCN0BhjL.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-DdcubzWu.js → vue-ui-dashboard-Cvy0gI52.js} +2 -2
  48. package/dist/{vue-ui-digits-z5g__gqs.cjs → vue-ui-digits-CnHgzHPI.cjs} +1 -1
  49. package/dist/{vue-ui-digits-BUpjWWnD.js → vue-ui-digits-J-WrKKHg.js} +2 -2
  50. package/dist/{vue-ui-donut-ZLpfm-XT.js → vue-ui-donut-BOhWcHY_.js} +34 -33
  51. package/dist/vue-ui-donut-CZ1iKZq6.cjs +1 -0
  52. package/dist/{vue-ui-donut-evolution-Bn4asQO3.js → vue-ui-donut-evolution-CSSYuoti.js} +12 -11
  53. package/dist/vue-ui-donut-evolution-DuY2883r.cjs +1 -0
  54. package/dist/{vue-ui-dumbbell-D2R9tJ99.js → vue-ui-dumbbell-Cm0Rp_6W.js} +11 -10
  55. package/dist/{vue-ui-dumbbell-CY6X8J1K.cjs → vue-ui-dumbbell-i9QcsSVO.cjs} +2 -2
  56. package/dist/{vue-ui-flow-Dd5uPNTQ.js → vue-ui-flow-0m7a1NP7.js} +10 -9
  57. package/dist/vue-ui-flow-DXCBGdQT.cjs +1 -0
  58. package/dist/vue-ui-galaxy-D6GyjAnX.cjs +1 -0
  59. package/dist/{vue-ui-galaxy-B7CoWLhj.js → vue-ui-galaxy-DCHEdZAl.js} +12 -11
  60. package/dist/{vue-ui-gauge-CGh_m922.js → vue-ui-gauge-HcM2JJpg.js} +29 -28
  61. package/dist/vue-ui-gauge-wbHQGQro.cjs +1 -0
  62. package/dist/{vue-ui-gizmo-D5Kn7w7L.cjs → vue-ui-gizmo-B-zMyi1m.cjs} +1 -1
  63. package/dist/{vue-ui-gizmo-BY3hnKSH.js → vue-ui-gizmo-Bfo_nUnZ.js} +2 -2
  64. package/dist/{vue-ui-heatmap-yYN0u0I6.js → vue-ui-heatmap-CxIHmv0t.js} +41 -40
  65. package/dist/vue-ui-heatmap-Du2vI5Ae.cjs +1 -0
  66. package/dist/{vue-ui-kpi-Q20yM3IP.cjs → vue-ui-kpi-BOe7-M9V.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-B4zr_geL.js → vue-ui-kpi-DibULfkp.js} +3 -3
  68. package/dist/{vue-ui-mini-loader-GFSZofpE.cjs → vue-ui-mini-loader-Bv7l-Kx3.cjs} +1 -1
  69. package/dist/{vue-ui-mini-loader-GImbaGsN.js → vue-ui-mini-loader-qFRhERid.js} +2 -2
  70. package/dist/{vue-ui-molecule-DmrB3kgA.js → vue-ui-molecule-4cIGPnWg.js} +290 -286
  71. package/dist/vue-ui-molecule-eOj3ZjvT.cjs +1 -0
  72. package/dist/{vue-ui-mood-radar-sEkQtzI2.js → vue-ui-mood-radar-BTe21WKk.js} +79 -78
  73. package/dist/vue-ui-mood-radar-tUFqqekd.cjs +1 -0
  74. package/dist/{vue-ui-nested-donuts-DvpZLcYd.js → vue-ui-nested-donuts-BVzabOga.js} +35 -34
  75. package/dist/vue-ui-nested-donuts-BigBLrFR.cjs +17 -0
  76. package/dist/{vue-ui-onion-DQMLPe3M.js → vue-ui-onion-C3TAKqro.js} +12 -11
  77. package/dist/vue-ui-onion-_ZC3vbIS.cjs +5 -0
  78. package/dist/{vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs → vue-ui-parallel-coordinate-plot-BiXGkfj7.cjs} +2 -2
  79. package/dist/{vue-ui-parallel-coordinate-plot-DN2LPNyS.js → vue-ui-parallel-coordinate-plot-CKoCQXqj.js} +13 -12
  80. package/dist/vue-ui-quadrant-B67wGTic.cjs +1 -0
  81. package/dist/{vue-ui-quadrant-D2GpeXI6.js → vue-ui-quadrant-CKnyfJoi.js} +13 -12
  82. package/dist/vue-ui-quick-chart-DEjdx0AB.cjs +15 -0
  83. package/dist/{vue-ui-quick-chart-C5K9DfUV.js → vue-ui-quick-chart-DZDYYnsI.js} +60 -59
  84. package/dist/vue-ui-radar-Cm_QkYGb.cjs +1 -0
  85. package/dist/{vue-ui-radar-B9TZPujK.js → vue-ui-radar-v9yayJxu.js} +13 -12
  86. package/dist/{vue-ui-rating-B0pNsmGB.js → vue-ui-rating-Cc_N7qbe.js} +2 -2
  87. package/dist/{vue-ui-rating-DpxzUDQq.cjs → vue-ui-rating-DV4cCZbB.cjs} +1 -1
  88. package/dist/{vue-ui-relation-circle-DSnlpLHt.js → vue-ui-relation-circle-Clqo4kkb.js} +46 -45
  89. package/dist/{vue-ui-relation-circle-D3B-lpdM.cjs → vue-ui-relation-circle-DcpIVbI6.cjs} +1 -1
  90. package/dist/{vue-ui-rings-BuvFDBXg.js → vue-ui-rings-D27xNq9q.js} +12 -11
  91. package/dist/{vue-ui-rings-cmeFVitd.cjs → vue-ui-rings-DTn3t8Ku.cjs} +2 -2
  92. package/dist/{vue-ui-scatter-D_chvOSJ.js → vue-ui-scatter-C07Mon-6.js} +13 -12
  93. package/dist/vue-ui-scatter-CXbrqLFm.cjs +1 -0
  94. package/dist/{vue-ui-screenshot-DSHeHshf.js → vue-ui-screenshot-CsxqbqlJ.js} +1 -1
  95. package/dist/{vue-ui-screenshot-CwrXLMru.cjs → vue-ui-screenshot-D8TAvQYN.cjs} +1 -1
  96. package/dist/{vue-ui-skeleton-Du4zw-c1.js → vue-ui-skeleton-BLiYyX95.js} +2 -2
  97. package/dist/{vue-ui-skeleton-DJhwv2oY.cjs → vue-ui-skeleton-Br1K3exH.cjs} +1 -1
  98. package/dist/{vue-ui-smiley-BtQLJ7rA.js → vue-ui-smiley-BUHatT3Z.js} +2 -2
  99. package/dist/{vue-ui-smiley-BNkk6suC.cjs → vue-ui-smiley-CR_TkSYT.cjs} +1 -1
  100. package/dist/{vue-ui-spark-trend-DFIjxBTY.cjs → vue-ui-spark-trend-CnUz6s1m.cjs} +1 -1
  101. package/dist/{vue-ui-spark-trend-BgA79g7a.js → vue-ui-spark-trend-GY2CfYRt.js} +4 -4
  102. package/dist/{vue-ui-sparkbar-BlwQfhlY.cjs → vue-ui-sparkbar-DaFwUA6Z.cjs} +1 -1
  103. package/dist/{vue-ui-sparkbar-DQAWZReF.js → vue-ui-sparkbar-tdgek1gv.js} +3 -3
  104. package/dist/{vue-ui-sparkgauge-CCApU38s.js → vue-ui-sparkgauge-1zu5KmTA.js} +3 -3
  105. package/dist/{vue-ui-sparkgauge-BCRSQDpt.cjs → vue-ui-sparkgauge-D8P01Hem.cjs} +1 -1
  106. package/dist/{vue-ui-sparkhistogram-PKTt4EmH.js → vue-ui-sparkhistogram-b68QStxA.js} +4 -4
  107. package/dist/{vue-ui-sparkhistogram-CTxG1Vtn.cjs → vue-ui-sparkhistogram-mg6yuwLH.cjs} +1 -1
  108. package/dist/{vue-ui-sparkline-BUaixngQ.cjs → vue-ui-sparkline-CAqav9Gn.cjs} +1 -1
  109. package/dist/{vue-ui-sparkline-EESAiZyt.js → vue-ui-sparkline-CMmtp8MK.js} +3 -3
  110. package/dist/{vue-ui-sparkstackbar-TnLNixdf.js → vue-ui-sparkstackbar-Cz8tOM3m.js} +3 -3
  111. package/dist/{vue-ui-sparkstackbar-iQnc0zcO.cjs → vue-ui-sparkstackbar-DOrquZvw.cjs} +1 -1
  112. package/dist/vue-ui-stackbar-DUa5F_Zl.cjs +6 -0
  113. package/dist/{vue-ui-stackbar-Ci04sup3.js → vue-ui-stackbar-DeQkP1dj.js} +13 -12
  114. package/dist/vue-ui-strip-plot-KNL9ToYG.cjs +1 -0
  115. package/dist/{vue-ui-strip-plot-DbvW0BuF.js → vue-ui-strip-plot-vqOCzdFV.js} +12 -11
  116. package/dist/{vue-ui-table-328De4vk.cjs → vue-ui-table-BCdHNku5.cjs} +1 -1
  117. package/dist/{vue-ui-table-CamkBCdL.js → vue-ui-table-DDdVqdHt.js} +1 -1
  118. package/dist/vue-ui-table-heatmap-BJDnZMZN.cjs +1 -0
  119. package/dist/{vue-ui-table-heatmap-D-YdrvGV.js → vue-ui-table-heatmap-DQg_jtYq.js} +27 -26
  120. package/dist/{vue-ui-table-sparkline-Dg2RKv6f.js → vue-ui-table-sparkline-Bg-VFq7X.js} +25 -24
  121. package/dist/{vue-ui-table-sparkline-Cmg7wnQ0.cjs → vue-ui-table-sparkline-D8DJxb5J.cjs} +1 -1
  122. package/dist/{vue-ui-thermometer-jWHbZTc2.js → vue-ui-thermometer-CajBbbYc.js} +51 -50
  123. package/dist/vue-ui-thermometer-eYM8DX7u.cjs +1 -0
  124. package/dist/{vue-ui-timer-BPepr5eV.js → vue-ui-timer-D3VRVK-8.js} +4 -4
  125. package/dist/{vue-ui-timer-B_FyRAU7.cjs → vue-ui-timer-RclP4Tql.cjs} +1 -1
  126. package/dist/{vue-ui-tiremarks-DW8Q2IBl.js → vue-ui-tiremarks-BT0k_3xi.js} +48 -47
  127. package/dist/{vue-ui-tiremarks-CaJWlyz8.cjs → vue-ui-tiremarks-Bc8bBBAw.cjs} +1 -1
  128. package/dist/{vue-ui-treemap-B9GpvA0k.cjs → vue-ui-treemap-BjWDt2b2.cjs} +1 -1
  129. package/dist/{vue-ui-treemap-CWu43qLo.js → vue-ui-treemap-DMhe3zCm.js} +13 -12
  130. package/dist/vue-ui-vertical-bar-DWzafNBH.cjs +4 -0
  131. package/dist/{vue-ui-vertical-bar-CndASePh.js → vue-ui-vertical-bar-hH9R9V-K.js} +13 -12
  132. package/dist/{vue-ui-waffle-c9ycdoKz.cjs → vue-ui-waffle-BvYE9hAY.cjs} +1 -1
  133. package/dist/{vue-ui-waffle-CdyqwJwN.js → vue-ui-waffle-DnNd6Iba.js} +46 -45
  134. package/dist/{vue-ui-wheel-Byq_BLhl.js → vue-ui-wheel-Bx9_m-7W.js} +34 -33
  135. package/dist/vue-ui-wheel-CVBmY6h7.cjs +1 -0
  136. package/dist/{vue-ui-word-cloud-BVOcsuMP.cjs → vue-ui-word-cloud-3R-mYkIW.cjs} +1 -1
  137. package/dist/{vue-ui-word-cloud-BRxN5uFD.js → vue-ui-word-cloud-DUk0Xt8q.js} +10 -9
  138. package/dist/{vue-ui-xy-DgEdZz0O.js → vue-ui-xy-FtaqoNK8.js} +161 -160
  139. package/dist/{vue-ui-xy-canvas-BI7jUOTn.js → vue-ui-xy-canvas-Bp4PTl_E.js} +54 -53
  140. package/dist/{vue-ui-xy-canvas-Td0WNYN0.cjs → vue-ui-xy-canvas-Ctw_3PzN.cjs} +2 -2
  141. package/dist/vue-ui-xy-rX-aml0b.cjs +3 -0
  142. package/package.json +1 -1
  143. package/dist/index-D-vy9N1v.cjs +0 -4
  144. package/dist/usePrinter-Do8KiK5h.js +0 -513
  145. package/dist/usePrinter-P4nLcXX-.cjs +0 -1
  146. package/dist/vue-ui-3d-bar-DlUqKETN.cjs +0 -19
  147. package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +0 -1
  148. package/dist/vue-ui-candlestick-BJulnyV3.cjs +0 -2
  149. package/dist/vue-ui-donut-TY2Z9Ljx.cjs +0 -1
  150. package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +0 -1
  151. package/dist/vue-ui-flow-DswsuPwy.cjs +0 -1
  152. package/dist/vue-ui-galaxy-Dxy6jzus.cjs +0 -1
  153. package/dist/vue-ui-gauge-CWd_ol6u.cjs +0 -1
  154. package/dist/vue-ui-heatmap-AUm42a1v.cjs +0 -1
  155. package/dist/vue-ui-molecule-C9FcDH4x.cjs +0 -1
  156. package/dist/vue-ui-mood-radar-CRwStVTV.cjs +0 -1
  157. package/dist/vue-ui-nested-donuts-BcOgxtZV.cjs +0 -17
  158. package/dist/vue-ui-onion-C9v9YjdJ.cjs +0 -5
  159. package/dist/vue-ui-quadrant-ulY-rCMI.cjs +0 -1
  160. package/dist/vue-ui-quick-chart-DFj17h6h.cjs +0 -15
  161. package/dist/vue-ui-radar-KA287Tp-.cjs +0 -1
  162. package/dist/vue-ui-scatter-BWPqoSUN.cjs +0 -1
  163. package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +0 -6
  164. package/dist/vue-ui-strip-plot-CowHumiU.cjs +0 -1
  165. package/dist/vue-ui-table-heatmap-CCHre3Gt.cjs +0 -1
  166. package/dist/vue-ui-thermometer-BDeKErC9.cjs +0 -1
  167. package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +0 -4
  168. package/dist/vue-ui-wheel-B3BMfKmd.cjs +0 -1
  169. package/dist/vue-ui-xy-CsS5ny0q.cjs +0 -3
@@ -1,8 +1,8 @@
1
- import { useCssVars as Q, ref as h, computed as c, watch as Y, onMounted as Z, openBlock as s, createElementBlock as l, normalizeStyle as $, normalizeClass as z, createBlock as j, unref as g, createSlots as ee, withCtx as C, renderSlot as r, normalizeProps as v, guardReactiveProps as f, createCommentVNode as m, createElementVNode as y, Fragment as _, renderList as w, createVNode as te, mergeProps as E, nextTick as ae } from "vue";
2
- import { u as oe, c as G, t as ne, o as se, e as le, V as re, F as ue, M as ie, q as de, r as ce } from "./index-BiuHBtkZ.js";
3
- import { u as S } from "./useNestedProp-Ck5_RzLu.js";
4
- import { u as ve, U as pe } from "./usePrinter-Do8KiK5h.js";
5
- import { _ as me } from "./Shape-BFiZBf3X.js";
1
+ import { useCssVars as Q, ref as h, computed as c, watch as Y, onMounted as Z, openBlock as s, createElementBlock as l, normalizeStyle as $, normalizeClass as z, createBlock as j, unref as g, createSlots as ee, withCtx as C, renderSlot as r, normalizeProps as p, guardReactiveProps as f, createCommentVNode as m, createElementVNode as y, Fragment as _, renderList as w, createVNode as te, mergeProps as E, nextTick as ae } from "vue";
2
+ import { u as oe, c as G, t as ne, o as se, e as le, V as re, F as ue, M as ie, q as de, r as ce } from "./index-D2epy0rJ.js";
3
+ import { u as S } from "./useNestedProp-C_ZrJBd9.js";
4
+ import { u as pe, U as ve } from "./usePrinter-B6qtXaHk.js";
5
+ import { _ as me } from "./Shape-XiTBfhJM.js";
6
6
  import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const he = ["id"], ge = { role: "cell" }, ye = { role: "row" }, be = ["data-cell"], Ce = {
8
8
  key: 0,
@@ -36,10 +36,10 @@ const he = ["id"], ge = { role: "cell" }, ye = { role: "row" }, be = ["data-cell
36
36
  }
37
37
  },
38
38
  setup(B, { expose: U }) {
39
- const p = B;
39
+ const v = B;
40
40
  Q((e) => ({
41
- "14b82aea": J.value,
42
- "1a1f24c5": q.value
41
+ "67436fce": J.value,
42
+ "0c1550ae": q.value
43
43
  }));
44
44
  const { vue_ui_table_heatmap: A } = oe(), k = h(G()), u = h(!1), b = h(null), I = h(!1), x = h(0), t = c({
45
45
  get: () => F(),
@@ -47,28 +47,28 @@ const he = ["id"], ge = { role: "cell" }, ye = { role: "row" }, be = ["data-cell
47
47
  });
48
48
  function F() {
49
49
  const e = S({
50
- userConfig: p.config,
50
+ userConfig: v.config,
51
51
  defaultConfig: A
52
52
  });
53
53
  return e.theme ? {
54
54
  ...S({
55
- userConfig: ne.vue_ui_table_heatmap[e.theme] || p.config,
55
+ userConfig: ne.vue_ui_table_heatmap[e.theme] || v.config,
56
56
  defaultConfig: e
57
57
  })
58
58
  } : e;
59
59
  }
60
- Y(() => p.config, (e) => {
60
+ Y(() => v.config, (e) => {
61
61
  t.value = F(), O();
62
62
  }, { deep: !0 });
63
- const { isPrinting: D, isImaging: H, generatePdf: P, generateImage: N } = ve({
63
+ const { isPrinting: D, isImaging: H, generatePdf: P, generateImage: N } = pe({
64
64
  elementId: `table_heatmap_${k.value}`,
65
65
  fileName: "vue-ui-table-heatmap"
66
- }), L = c(() => t.value.table.responsiveBreakpoint), X = c(() => !!p.dataset && p.dataset.length);
66
+ }), L = c(() => t.value.table.responsiveBreakpoint), X = c(() => !!v.dataset && v.dataset.length);
67
67
  Z(() => {
68
68
  O();
69
69
  });
70
70
  function O() {
71
- se(p.dataset) && le({
71
+ se(v.dataset) && le({
72
72
  componentName: "VueUiTableHeatmap",
73
73
  type: "dataset"
74
74
  });
@@ -79,7 +79,7 @@ const he = ["id"], ge = { role: "cell" }, ye = { role: "row" }, be = ["data-cell
79
79
  });
80
80
  b.value && e.observe(b.value);
81
81
  }
82
- const R = c(() => p.dataset.map((e) => {
82
+ const R = c(() => v.dataset.map((e) => {
83
83
  const n = e.values.map((o) => isNaN(o) ? 0 : o), a = n.reduce((o, d) => o + d, 0);
84
84
  return {
85
85
  ...e,
@@ -135,7 +135,7 @@ const he = ["id"], ge = { role: "cell" }, ye = { role: "row" }, be = ["data-cell
135
135
  class: z({ "vue-ui-responsive": u.value }),
136
136
  id: `table_heatmap_${k.value}`
137
137
  }, [
138
- t.value.userOptions.show && X.value ? (s(), j(pe, {
138
+ t.value.userOptions.show && X.value ? (s(), j(ve, {
139
139
  ref: "details",
140
140
  key: `user_option_${x.value}`,
141
141
  backgroundColor: t.value.style.backgroundColor,
@@ -150,6 +150,7 @@ const he = ["id"], ge = { role: "cell" }, ye = { role: "row" }, be = ["data-cell
150
150
  isFullscreen: I.value,
151
151
  titles: { ...t.value.userOptions.buttonTitles },
152
152
  chartElement: b.value,
153
+ position: t.value.userOptions.position,
153
154
  onToggleFullscreen: K,
154
155
  onGeneratePdf: g(P),
155
156
  onGenerateCsv: T,
@@ -179,11 +180,11 @@ const he = ["id"], ge = { role: "cell" }, ye = { role: "row" }, be = ["data-cell
179
180
  e.$slots.optionFullscreen ? {
180
181
  name: "optionFullscreen",
181
182
  fn: C(({ toggleFullscreen: a, isFullscreen: o }) => [
182
- r(e.$slots, "optionFullscreen", v(f({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
183
+ r(e.$slots, "optionFullscreen", p(f({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
183
184
  ]),
184
185
  key: "3"
185
186
  } : void 0
186
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : m("", !0),
187
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : m("", !0),
187
188
  y("table", {
188
189
  class: z({ "vue-ui-table-heatmap": !0 }),
189
190
  style: $(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor};`)
@@ -197,7 +198,7 @@ const he = ["id"], ge = { role: "cell" }, ye = { role: "row" }, be = ["data-cell
197
198
  style: $(`background:${t.value.table.head.backgroundColor};color:${t.value.table.head.color}`)
198
199
  }, [
199
200
  (s(!0), l(_, null, w(t.value.table.head.values, (a, o) => (s(), l("th", ge, [
200
- r(e.$slots, "head", v(f({ value: a, rowIndex: o, type: typeof a, isResponsive: u.value })), void 0, !0)
201
+ r(e.$slots, "head", p(f({ value: a, rowIndex: o, type: typeof a, isResponsive: u.value })), void 0, !0)
201
202
  ]))), 256))
202
203
  ], 4)
203
204
  ]),
@@ -222,27 +223,27 @@ const he = ["id"], ge = { role: "cell" }, ye = { role: "row" }, be = ["data-cell
222
223
  shape: a.shape || "circle"
223
224
  }, null, 8, ["color", "shape"])
224
225
  ], 8, _e)) : m("", !0),
225
- r(e.$slots, "rowTitle", v(f({ value: d, rowIndex: o, colIndex: i, type: typeof d, isResponsive: u.value })), void 0, !0)
226
+ r(e.$slots, "rowTitle", p(f({ value: d, rowIndex: o, colIndex: i, type: typeof d, isResponsive: u.value })), void 0, !0)
226
227
  ])) : (s(), l(_, { key: 1 }, [
227
- i === 0 ? r(e.$slots, "rowTitle", v(E({ key: 0 }, { value: d, rowIndex: o, colIndex: i, type: typeof d, isResponsive: u.value })), void 0, !0) : m("", !0),
228
- i > 0 ? r(e.$slots, "cell", v(E({ key: 1 }, { value: d, rowIndex: o, colIndex: i, type: typeof d, isResponsive: u.value, color: a.colors[i], textColor: g(ue)(a.colors[i]) })), void 0, !0) : m("", !0)
228
+ i === 0 ? r(e.$slots, "rowTitle", p(E({ key: 0 }, { value: d, rowIndex: o, colIndex: i, type: typeof d, isResponsive: u.value })), void 0, !0) : m("", !0),
229
+ i > 0 ? r(e.$slots, "cell", p(E({ key: 1 }, { value: d, rowIndex: o, colIndex: i, type: typeof d, isResponsive: u.value, color: a.colors[i], textColor: g(ue)(a.colors[i]) })), void 0, !0) : m("", !0)
229
230
  ], 64))
230
231
  ], 8, be))), 256)),
231
232
  t.value.table.showSum ? (s(), l("td", ke, [
232
- r(e.$slots, "sum", v(f({ value: a.sum, rowIndex: o, isResponsive: u.value })), void 0, !0)
233
+ r(e.$slots, "sum", p(f({ value: a.sum, rowIndex: o, isResponsive: u.value })), void 0, !0)
233
234
  ])) : m("", !0),
234
235
  t.value.table.showAverage ? (s(), l("td", Ie, [
235
- r(e.$slots, "average", v(f({ value: a.average, rowIndex: o, isResponsive: u.value })), void 0, !0)
236
+ r(e.$slots, "average", p(f({ value: a.average, rowIndex: o, isResponsive: u.value })), void 0, !0)
236
237
  ])) : m("", !0),
237
238
  t.value.table.showMedian ? (s(), l("td", $e, [
238
- r(e.$slots, "median", v(f({ value: a.median, rowIndex: o, isResponsive: u.value })), void 0, !0)
239
+ r(e.$slots, "median", p(f({ value: a.median, rowIndex: o, isResponsive: u.value })), void 0, !0)
239
240
  ])) : m("", !0)
240
241
  ]))), 256))
241
242
  ])
242
243
  ], 4)
243
244
  ], 14, he));
244
245
  }
245
- }, Ve = /* @__PURE__ */ fe(we, [["__scopeId", "data-v-2371a39f"]]);
246
+ }, Ve = /* @__PURE__ */ fe(we, [["__scopeId", "data-v-2bd72dde"]]);
246
247
  export {
247
248
  Ve as default
248
249
  };
@@ -1,9 +1,9 @@
1
- import { useCssVars as ve, ref as d, computed as g, watch as Q, onMounted as ce, openBlock as s, createElementBlock as v, normalizeClass as D, createElementVNode as c, normalizeStyle as r, toDisplayString as p, createCommentVNode as h, Fragment as T, renderList as V, createBlock as M, unref as i, createSlots as fe, withCtx as w, renderSlot as A, normalizeProps as pe, guardReactiveProps as be, nextTick as me } from "vue";
2
- import { u as ge, c as he, t as ye, a as _e, p as $, b as ke, o as xe, e as Y, g as Ce, d as Ie, V as Se, i as P, f as z, q as we, r as Ae } from "./index-BiuHBtkZ.js";
3
- import { u as Z } from "./useNestedProp-Ck5_RzLu.js";
4
- import $e from "./vue-ui-sparkline-EESAiZyt.js";
5
- import Pe from "./BaseIcon-BysUnfCR.js";
6
- import { u as ze, U as Fe } from "./usePrinter-Do8KiK5h.js";
1
+ import { useCssVars as ve, ref as d, computed as g, watch as Q, onMounted as ce, openBlock as s, createElementBlock as v, normalizeClass as D, createElementVNode as c, normalizeStyle as r, toDisplayString as f, createCommentVNode as h, Fragment as T, renderList as V, createBlock as M, unref as i, createSlots as pe, withCtx as w, renderSlot as A, normalizeProps as fe, guardReactiveProps as be, nextTick as me } from "vue";
2
+ import { u as ge, c as he, t as ye, a as _e, p as $, b as ke, o as xe, e as Y, g as Ce, d as Ie, V as Se, i as P, f as z, q as we, r as Ae } from "./index-D2epy0rJ.js";
3
+ import { u as Z } from "./useNestedProp-C_ZrJBd9.js";
4
+ import $e from "./vue-ui-sparkline-CMmtp8MK.js";
5
+ import Pe from "./BaseIcon-B9istAKo.js";
6
+ import { u as ze, U as Fe } from "./usePrinter-B6qtXaHk.js";
7
7
  import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } }, De = ["onClick"], Te = { style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center" } }, Ve = ["data-cell"], Me = {
9
9
  dir: "auto",
@@ -27,7 +27,7 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
27
27
  setup(j, { expose: ee }) {
28
28
  const b = j;
29
29
  ve((t) => ({
30
- "470f7d5c": t.tdo
30
+ "6ca111be": t.tdo
31
31
  }));
32
32
  const { vue_ui_table_sparkline: te } = ge(), F = d(he()), E = d(0), C = d(0), e = g({
33
33
  get: () => G(),
@@ -99,9 +99,9 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
99
99
  })));
100
100
  function oe(t) {
101
101
  const a = (t[0].values || []).map(
102
- (n, l) => t.map((f) => f.values[l] || [])
102
+ (n, l) => t.map((p) => p.values[l] || [])
103
103
  ).map(
104
- (n) => n.map((l, f) => [l, f]).sort((l, f) => f[0] - l[0]).map((l) => l[1])
104
+ (n) => n.map((l, p) => [l, p]).sort((l, p) => p[0] - l[0]).map((l) => l[1])
105
105
  );
106
106
  return t.map((n, l) => ({
107
107
  ...n,
@@ -117,7 +117,7 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
117
117
  O.value = !0, N.value = t;
118
118
  const u = y.value.map((l) => l.values[t] || []), a = S.value === t ? 1 : -1;
119
119
  W.value = a, t === S.value ? S.value = void 0 : S.value = t;
120
- const n = u.map((l, f) => [f, l]).sort((l, f) => a * (f[1] - l[1])).map((l) => l[0]).map((l) => y.value[l]);
120
+ const n = u.map((l, p) => [p, l]).sort((l, p) => a * (p[1] - l[1])).map((l) => l[0]).map((l) => y.value[l]);
121
121
  x.value = n, C.value += 1;
122
122
  }
123
123
  const re = g(() => Math.max(...b.dataset.map((t) => (t.values || []).length))), k = g(() => {
@@ -188,7 +188,7 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
188
188
  color: e.value.title.color,
189
189
  textAlign: e.value.title.textAlign
190
190
  })
191
- }, p(e.value.title.text), 5),
191
+ }, f(e.value.title.text), 5),
192
192
  e.value.title.subtitle.text ? (s(), v("div", {
193
193
  key: 0,
194
194
  style: r({
@@ -197,7 +197,7 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
197
197
  color: e.value.title.subtitle.color,
198
198
  textAlign: e.value.title.textAlign
199
199
  })
200
- }, p(e.value.title.subtitle.text), 5)) : h("", !0)
200
+ }, f(e.value.title.subtitle.text), 5)) : h("", !0)
201
201
  ], 4)) : h("", !0),
202
202
  c("thead", We, [
203
203
  c("tr", {
@@ -217,7 +217,7 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
217
217
  fontWeight: e.value.thead.bold ? "bold" : "normal"
218
218
  }),
219
219
  class: "sticky-col-first"
220
- }, p(e.value.translations.serie), 5),
220
+ }, f(e.value.translations.serie), 5),
221
221
  (s(!0), v(T, null, V(k.value, (a, o) => (s(), v("th", {
222
222
  role: "cell",
223
223
  style: r({
@@ -232,7 +232,7 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
232
232
  class: D({ "sticky-col": o === k.value.length - 1 && e.value.showSparklines })
233
233
  }, [
234
234
  c("div", Te, [
235
- c("span", null, p(a), 1),
235
+ c("span", null, f(a), 1),
236
236
  O.value && o === N.value && y.value[0].values[o] !== void 0 ? (s(), M(Pe, {
237
237
  key: 0,
238
238
  size: 18,
@@ -256,11 +256,12 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
256
256
  isFullscreen: J.value,
257
257
  titles: { ...e.value.userOptions.buttonTitles },
258
258
  chartElement: I.value,
259
+ position: e.value.userOptions.position,
259
260
  onToggleFullscreen: de,
260
261
  onGeneratePdf: i(R),
261
262
  onGenerateImage: i(U),
262
263
  onGenerateCsv: K
263
- }, fe({ _: 2 }, [
264
+ }, pe({ _: 2 }, [
264
265
  t.$slots.optionPdf ? {
265
266
  name: "optionPdf",
266
267
  fn: w(() => [
@@ -285,11 +286,11 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
285
286
  t.$slots.optionFullscreen ? {
286
287
  name: "optionFullscreen",
287
288
  fn: w(({ toggleFullscreen: n, isFullscreen: l }) => [
288
- A(t.$slots, "optionFullscreen", pe(be({ toggleFullscreen: n, isFullscreen: l })), void 0, !0)
289
+ A(t.$slots, "optionFullscreen", fe(be({ toggleFullscreen: n, isFullscreen: l })), void 0, !0)
289
290
  ]),
290
291
  key: "3"
291
292
  } : void 0
292
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : h("", !0)
293
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : h("", !0)
293
294
  ], 14, De))), 256))
294
295
  ], 4)
295
296
  ]),
@@ -318,7 +319,7 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
318
319
  c("span", {
319
320
  style: r({ color: a.color })
320
321
  }, "⬤", 4),
321
- c("span", null, p(a.name ?? "-"), 1)
322
+ c("span", null, f(a.name ?? "-"), 1)
322
323
  ])
323
324
  ], 12, Ve),
324
325
  (s(!0), v(T, null, V(ne.value, (n, l) => (s(), v("td", {
@@ -334,10 +335,10 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
334
335
  }),
335
336
  "data-cell": k.value[l],
336
337
  class: "vue-ui-data-table__tbody__td",
337
- onPointerenter: (f) => {
338
+ onPointerenter: (p) => {
338
339
  _.value = o, m.value = l;
339
340
  }
340
- }, p([null, void 0].includes(a.values[l]) ? "-" : i(P)(
341
+ }, f([null, void 0].includes(a.values[l]) ? "-" : i(P)(
341
342
  e.value.formatter,
342
343
  Number(a.values[l]),
343
344
  i(z)({
@@ -360,7 +361,7 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
360
361
  }),
361
362
  "data-cell": e.value.translations.total,
362
363
  class: "vue-ui-data-table__tbody__td"
363
- }, p(i(P)(
364
+ }, f(i(P)(
364
365
  e.value.formatter,
365
366
  a.sum,
366
367
  i(z)({
@@ -383,7 +384,7 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
383
384
  }),
384
385
  "data-cell": e.value.translations.average,
385
386
  class: "vue-ui-data-table__tbody__td"
386
- }, p(i(P)(
387
+ }, f(i(P)(
387
388
  e.value.formatter,
388
389
  a.average,
389
390
  i(z)({
@@ -406,7 +407,7 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
406
407
  }),
407
408
  "data-cell": e.value.translations.median,
408
409
  class: "vue-ui-data-table__tbody__td"
409
- }, p(i(P)(
410
+ }, f(i(P)(
410
411
  e.value.formatter,
411
412
  a.median,
412
413
  i(z)({
@@ -474,7 +475,7 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
474
475
  ], 32)
475
476
  ], 10, Ne));
476
477
  }
477
- }, Ze = /* @__PURE__ */ Oe(Ue, [["__scopeId", "data-v-7094f9b2"]]);
478
+ }, Ze = /* @__PURE__ */ Oe(Ue, [["__scopeId", "data-v-26b54f10"]]);
478
479
  export {
479
480
  Ze as default
480
481
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-D-vy9N1v.cjs"),$=require("./useNestedProp-B9yDavuy.cjs"),J=require("./vue-ui-sparkline-BUaixngQ.cjs"),K=require("./BaseIcon-BBQHz_Sf.cjs"),D=require("./usePrinter-P4nLcXX-.cjs"),Q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=["id"],Z={style:{"z-index":"1","padding-right":"24px"}},j=["onClick"],ee={style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center"}},te=["data-cell"],le={dir:"auto",style:{display:"flex","flex-direction":"row","align-items":"center",gap:"6px"}},ae=["data-cell","onPointerenter"],oe=["data-cell"],ne=["data-cell"],re=["data-cell"],ue=["data-cell"],se={__name:"vue-ui-table-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(F,{expose:O}){const d=F;e.useCssVars(l=>({"470f7d5c":l.tdo}));const{vue_ui_table_sparkline:W}=u.useConfig(),h=e.ref(u.createUid()),S=e.ref(0),b=e.ref(0),t=e.computed({get:()=>C(),set:l=>l});function C(){const l=$.useNestedProp({userConfig:d.config,defaultConfig:W});return l.theme?{...$.useNestedProp({userConfig:u.themes.vue_ui_table_sparkline[l.theme]||d.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:l}e.watch(()=>d.config,l=>{t.value=C(),A(),b.value+=1},{deep:!0}),e.watch(()=>d.dataset,l=>{f.value=v.value,b.value+=1},{deep:!0});const{isPrinting:w,isImaging:z,generatePdf:I,generateImage:N}=D.usePrinter({elementId:`table_${h.value}`,fileName:t.value.title.text||"vue-ui-table-sparkline"}),L=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),g=e.ref(null),B=e.ref(!1),T=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{A()});function A(){u.objectIsEmpty(d.dataset)&&u.error({componentName:"VueUiTableSparkline",type:"dataset"});const l=new ResizeObserver(s=>{s.forEach(a=>{B.value=a.contentRect.width<T.value})});g.value&&l.observe(g.value)}const E=e.computed(()=>(d.dataset.forEach((l,s)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{u.error({componentName:"VueUiTableSparkline",type:"datasetSerieAttribute",property:a,index:s})})}),d.dataset.map((l,s)=>{const a=(l.values||[]).map(r=>isNaN(r)?0:r??0),n=a.reduce((r,o)=>r+o,0);return{...l,values:l.values||[],color:u.convertColorToHex(l.color)||L.value[s]||u.palette[s]||u.palette[s%u.palette.length],sum:n,average:n/a.length,median:u.calcMedian(a),sparklineDataset:a.map((r,o)=>({period:t.value.colNames[o]||`col ${o}`,value:r||0}))}})));function M(l){const a=(l[0].values||[]).map((r,o)=>l.map(i=>i.values[o]||[])).map(r=>r.map((o,i)=>[o,i]).sort((o,i)=>i[0]-o[0]).map(o=>o[1]));return l.map((r,o)=>({...r,values:r.values||[],orders:a[o]}))}const v=e.computed(()=>M(E.value)),f=e.ref(v.value),G=e.computed(()=>Math.max(...f.value.map(l=>(l.values||[]).length))),y=e.ref(void 0),k=e.ref(!1),_=e.ref(void 0),x=e.ref(-1);function q(){k.value=!1,_.value=void 0,x.value=-1,f.value=v.value}function R(l){k.value=!0,_.value=l;const s=v.value.map(o=>o.values[l]||[]),a=y.value===l?1:-1;x.value=a,l===y.value?y.value=void 0:y.value=l;const r=s.map((o,i)=>[i,o]).sort((o,i)=>a*(i[1]-o[1])).map(o=>o[0]).map(o=>v.value[o]);f.value=r,b.value+=1}const U=e.computed(()=>Math.max(...d.dataset.map(l=>(l.values||[]).length))),m=e.computed(()=>{let l=t.value.colNames;if(!l.length)for(let a=0;a<U.value;a+=1)l.push(`col ${a+1}`);t.value.showTotal&&(l=[...l,t.value.translations.total]);let s;return t.value.showAverage&&t.value.showMedian?s=[...l,t.value.translations.average,t.value.translations.median]:t.value.showAverage&&!t.value.showMedian?s=[...l,t.value.translations.average]:!t.value.showAverage&&t.value.showMedian?s=[...l,t.value.translations.median]:s=l,t.value.showSparklines?[...s,t.value.translations.chart]:s}),c=e.ref(void 0),p=e.ref(void 0);function H({dataIndex:l,serieIndex:s}){c.value=l,p.value=s}const V=e.ref(!1);function X(l){V.value=l,S.value+=1}function P(){e.nextTick(()=>{const l=[t.value.translations.serie].concat(m.value),s=E.value.map((r,o)=>[[r.name],r.values,[r.sum],[r.average],[r.median]]),a=[l].concat(s),n=u.createCsvContent(a);u.downloadCsv({csvContent:n,title:t.value.title.text||"vue-ui-table-sparkline"})})}return O({generatePdf:I,generateImage:N,generateCsv:P,restoreOrder:q}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:g,class:e.normalizeClass({"vue-ui-responsive":B.value}),style:{overflow:"hidden"},id:`table_${h.value}`},[e.createElementVNode("div",{style:{overflow:"auto"},onPointerleave:s[0]||(s[0]=a=>{p.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",Z,[e.createElementVNode("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,outline: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(m.value,(a,n)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",style:e.normalizeStyle({background:t.value.thead.backgroundColor,outline:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal",minWidth:n===m.value.length-1?"150px":"",cursor:v.value[0].values[n]!==void 0?"pointer":"default"}),onClick:()=>R(n),class:e.normalizeClass({"sticky-col":n===m.value.length-1&&t.value.showSparklines})},[e.createElementVNode("div",ee,[e.createElementVNode("span",null,e.toDisplayString(a),1),k.value&&n===_.value&&v.value[0].values[n]!==void 0?(e.openBlock(),e.createBlock(K.default,{key:0,size:18,name:x.value===1?"sort":"sortReverse",stroke:t.value.thead.color},null,8,["name","stroke"])):e.createCommentVNode("",!0)]),t.value.userOptions.show&&n===m.value.length-1?(e.openBlock(),e.createBlock(D.UserOptions,{ref_for:!0,ref:"details",key:`user_option_${S.value}`,backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color,isPrinting:e.unref(w),isImaging:e.unref(z),uid:h.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:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,onToggleFullscreen:X,onGeneratePdf:e.unref(I),onGenerateImage:e.unref(N),onGenerateCsv:P},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:r,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:r,isFullscreen:o})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0)],14,j))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(a,n)=>(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":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0})},[e.createElementVNode("td",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,outline: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",le,[e.createElementVNode("span",{style:e.normalizeStyle({color:a.color})},"⬤",4),e.createElementVNode("span",null,e.toDisplayString(a.name??"-"),1)])],12,te),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,(r,o)=>(e.openBlock(),e.createElementBlock("td",{dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign,backgroundColor:c.value!==void 0&&p.value!==void 0&&o===c.value&&p.value===n?`${a.color}33`:"",borderRadius:c.value!==void 0&&p.value!==void 0&&o===c.value&&p.value===n?"3px":""}),"data-cell":m.value[o],class:"vue-ui-data-table__tbody__td",onPointerenter:i=>{p.value=n,c.value=o}},e.toDisplayString([null,void 0].includes(a.values[o])?"-":e.unref(u.applyDataLabel)(t.value.formatter,Number(a.values[o]),e.unref(u.dataLabel)({p:t.value.prefix,v:Number(a.values[o]),s:t.value.suffix,r:t.value.roundingValues}),{datapoint:a,seriesIndex:n,datapointIndex:o})),45,ae))),256)),t.value.showTotal?(e.openBlock(),e.createElementBlock("td",{key:0,dir:"auto",role:"cell",style:e.normalizeStyle({outline: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(u.applyDataLabel)(t.value.formatter,a.sum,e.unref(u.dataLabel)({p:t.value.prefix,v:a.sum,s:t.value.suffix,r:t.value.roundingTotal}),{datapoint:a.sum,seriesIndex:n})),13,oe)):e.createCommentVNode("",!0),t.value.showAverage?(e.openBlock(),e.createElementBlock("td",{key:1,dir:"auto",role:"cell",style:e.normalizeStyle({outline: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(u.applyDataLabel)(t.value.formatter,a.average,e.unref(u.dataLabel)({p:t.value.prefix,v:a.average,s:t.value.suffix,r:t.value.roundingAverage}),{datapoint:a.average,seriesIndex:n})),13,ne)):e.createCommentVNode("",!0),t.value.showMedian?(e.openBlock(),e.createElementBlock("td",{key:2,dir:"auto",role:"cell",style:e.normalizeStyle({outline: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(u.applyDataLabel)(t.value.formatter,a.median,e.unref(u.dataLabel)({p:t.value.prefix,v:a.median,s:t.value.suffix,r:t.value.roundingMedian}),{datapoint:a.median,seriesIndex:n})),13,re)):e.createCommentVNode("",!0),t.value.showSparklines?(e.openBlock(),e.createElementBlock("td",{key:3,role:"cell","data-cell":t.value.translations.chart,style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),class:"vue-ui-data-table__tbody__td sticky-col"},[(e.openBlock(),e.createBlock(J.default,{key:`sparkline_${n}_${b.value}`,onHoverIndex:({index:r})=>H({dataIndex:r,serieIndex:n}),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(w)&&!e.unref(z),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,ue)):e.createCommentVNode("",!0)],6))),256))])],4)],32)],10,Y))}},ie=Q._export_sfc(se,[["__scopeId","data-v-7094f9b2"]]);exports.default=ie;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-CVgBMJU6.cjs"),$=require("./useNestedProp-B-NmF2LO.cjs"),J=require("./vue-ui-sparkline-CAqav9Gn.cjs"),K=require("./BaseIcon-DnG75_Ol.cjs"),D=require("./usePrinter-DN-6Hoh5.cjs"),Q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=["id"],Z={style:{"z-index":"1","padding-right":"24px"}},j=["onClick"],ee={style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center"}},te=["data-cell"],le={dir:"auto",style:{display:"flex","flex-direction":"row","align-items":"center",gap:"6px"}},ae=["data-cell","onPointerenter"],oe=["data-cell"],ne=["data-cell"],re=["data-cell"],ue=["data-cell"],se={__name:"vue-ui-table-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(F,{expose:O}){const d=F;e.useCssVars(l=>({"6ca111be":l.tdo}));const{vue_ui_table_sparkline:W}=u.useConfig(),h=e.ref(u.createUid()),S=e.ref(0),b=e.ref(0),t=e.computed({get:()=>C(),set:l=>l});function C(){const l=$.useNestedProp({userConfig:d.config,defaultConfig:W});return l.theme?{...$.useNestedProp({userConfig:u.themes.vue_ui_table_sparkline[l.theme]||d.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:l}e.watch(()=>d.config,l=>{t.value=C(),A(),b.value+=1},{deep:!0}),e.watch(()=>d.dataset,l=>{f.value=v.value,b.value+=1},{deep:!0});const{isPrinting:w,isImaging:z,generatePdf:I,generateImage:N}=D.usePrinter({elementId:`table_${h.value}`,fileName:t.value.title.text||"vue-ui-table-sparkline"}),L=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),g=e.ref(null),B=e.ref(!1),T=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{A()});function A(){u.objectIsEmpty(d.dataset)&&u.error({componentName:"VueUiTableSparkline",type:"dataset"});const l=new ResizeObserver(s=>{s.forEach(a=>{B.value=a.contentRect.width<T.value})});g.value&&l.observe(g.value)}const E=e.computed(()=>(d.dataset.forEach((l,s)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{u.error({componentName:"VueUiTableSparkline",type:"datasetSerieAttribute",property:a,index:s})})}),d.dataset.map((l,s)=>{const a=(l.values||[]).map(r=>isNaN(r)?0:r??0),n=a.reduce((r,o)=>r+o,0);return{...l,values:l.values||[],color:u.convertColorToHex(l.color)||L.value[s]||u.palette[s]||u.palette[s%u.palette.length],sum:n,average:n/a.length,median:u.calcMedian(a),sparklineDataset:a.map((r,o)=>({period:t.value.colNames[o]||`col ${o}`,value:r||0}))}})));function M(l){const a=(l[0].values||[]).map((r,o)=>l.map(i=>i.values[o]||[])).map(r=>r.map((o,i)=>[o,i]).sort((o,i)=>i[0]-o[0]).map(o=>o[1]));return l.map((r,o)=>({...r,values:r.values||[],orders:a[o]}))}const v=e.computed(()=>M(E.value)),f=e.ref(v.value),G=e.computed(()=>Math.max(...f.value.map(l=>(l.values||[]).length))),y=e.ref(void 0),k=e.ref(!1),_=e.ref(void 0),x=e.ref(-1);function q(){k.value=!1,_.value=void 0,x.value=-1,f.value=v.value}function R(l){k.value=!0,_.value=l;const s=v.value.map(o=>o.values[l]||[]),a=y.value===l?1:-1;x.value=a,l===y.value?y.value=void 0:y.value=l;const r=s.map((o,i)=>[i,o]).sort((o,i)=>a*(i[1]-o[1])).map(o=>o[0]).map(o=>v.value[o]);f.value=r,b.value+=1}const U=e.computed(()=>Math.max(...d.dataset.map(l=>(l.values||[]).length))),m=e.computed(()=>{let l=t.value.colNames;if(!l.length)for(let a=0;a<U.value;a+=1)l.push(`col ${a+1}`);t.value.showTotal&&(l=[...l,t.value.translations.total]);let s;return t.value.showAverage&&t.value.showMedian?s=[...l,t.value.translations.average,t.value.translations.median]:t.value.showAverage&&!t.value.showMedian?s=[...l,t.value.translations.average]:!t.value.showAverage&&t.value.showMedian?s=[...l,t.value.translations.median]:s=l,t.value.showSparklines?[...s,t.value.translations.chart]:s}),c=e.ref(void 0),p=e.ref(void 0);function H({dataIndex:l,serieIndex:s}){c.value=l,p.value=s}const V=e.ref(!1);function X(l){V.value=l,S.value+=1}function P(){e.nextTick(()=>{const l=[t.value.translations.serie].concat(m.value),s=E.value.map((r,o)=>[[r.name],r.values,[r.sum],[r.average],[r.median]]),a=[l].concat(s),n=u.createCsvContent(a);u.downloadCsv({csvContent:n,title:t.value.title.text||"vue-ui-table-sparkline"})})}return O({generatePdf:I,generateImage:N,generateCsv:P,restoreOrder:q}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:g,class:e.normalizeClass({"vue-ui-responsive":B.value}),style:{overflow:"hidden"},id:`table_${h.value}`},[e.createElementVNode("div",{style:{overflow:"auto"},onPointerleave:s[0]||(s[0]=a=>{p.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",Z,[e.createElementVNode("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,outline: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(m.value,(a,n)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",style:e.normalizeStyle({background:t.value.thead.backgroundColor,outline:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal",minWidth:n===m.value.length-1?"150px":"",cursor:v.value[0].values[n]!==void 0?"pointer":"default"}),onClick:()=>R(n),class:e.normalizeClass({"sticky-col":n===m.value.length-1&&t.value.showSparklines})},[e.createElementVNode("div",ee,[e.createElementVNode("span",null,e.toDisplayString(a),1),k.value&&n===_.value&&v.value[0].values[n]!==void 0?(e.openBlock(),e.createBlock(K.default,{key:0,size:18,name:x.value===1?"sort":"sortReverse",stroke:t.value.thead.color},null,8,["name","stroke"])):e.createCommentVNode("",!0)]),t.value.userOptions.show&&n===m.value.length-1?(e.openBlock(),e.createBlock(D.UserOptions,{ref_for:!0,ref:"details",key:`user_option_${S.value}`,backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color,isPrinting:e.unref(w),isImaging:e.unref(z),uid:h.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:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,onToggleFullscreen:X,onGeneratePdf:e.unref(I),onGenerateImage:e.unref(N),onGenerateCsv:P},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:r,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:r,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,j))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(a,n)=>(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":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0})},[e.createElementVNode("td",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,outline: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",le,[e.createElementVNode("span",{style:e.normalizeStyle({color:a.color})},"⬤",4),e.createElementVNode("span",null,e.toDisplayString(a.name??"-"),1)])],12,te),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,(r,o)=>(e.openBlock(),e.createElementBlock("td",{dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign,backgroundColor:c.value!==void 0&&p.value!==void 0&&o===c.value&&p.value===n?`${a.color}33`:"",borderRadius:c.value!==void 0&&p.value!==void 0&&o===c.value&&p.value===n?"3px":""}),"data-cell":m.value[o],class:"vue-ui-data-table__tbody__td",onPointerenter:i=>{p.value=n,c.value=o}},e.toDisplayString([null,void 0].includes(a.values[o])?"-":e.unref(u.applyDataLabel)(t.value.formatter,Number(a.values[o]),e.unref(u.dataLabel)({p:t.value.prefix,v:Number(a.values[o]),s:t.value.suffix,r:t.value.roundingValues}),{datapoint:a,seriesIndex:n,datapointIndex:o})),45,ae))),256)),t.value.showTotal?(e.openBlock(),e.createElementBlock("td",{key:0,dir:"auto",role:"cell",style:e.normalizeStyle({outline: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(u.applyDataLabel)(t.value.formatter,a.sum,e.unref(u.dataLabel)({p:t.value.prefix,v:a.sum,s:t.value.suffix,r:t.value.roundingTotal}),{datapoint:a.sum,seriesIndex:n})),13,oe)):e.createCommentVNode("",!0),t.value.showAverage?(e.openBlock(),e.createElementBlock("td",{key:1,dir:"auto",role:"cell",style:e.normalizeStyle({outline: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(u.applyDataLabel)(t.value.formatter,a.average,e.unref(u.dataLabel)({p:t.value.prefix,v:a.average,s:t.value.suffix,r:t.value.roundingAverage}),{datapoint:a.average,seriesIndex:n})),13,ne)):e.createCommentVNode("",!0),t.value.showMedian?(e.openBlock(),e.createElementBlock("td",{key:2,dir:"auto",role:"cell",style:e.normalizeStyle({outline: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(u.applyDataLabel)(t.value.formatter,a.median,e.unref(u.dataLabel)({p:t.value.prefix,v:a.median,s:t.value.suffix,r:t.value.roundingMedian}),{datapoint:a.median,seriesIndex:n})),13,re)):e.createCommentVNode("",!0),t.value.showSparklines?(e.openBlock(),e.createElementBlock("td",{key:3,role:"cell","data-cell":t.value.translations.chart,style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),class:"vue-ui-data-table__tbody__td sticky-col"},[(e.openBlock(),e.createBlock(J.default,{key:`sparkline_${n}_${b.value}`,onHoverIndex:({index:r})=>H({dataIndex:r,serieIndex:n}),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(w)&&!e.unref(z),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,ue)):e.createCommentVNode("",!0)],6))),256))])],4)],32)],10,Y))}},ie=Q._export_sfc(se,[["__scopeId","data-v-26b54f10"]]);exports.default=ie;