vue-data-ui 2.4.50 → 2.4.52

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 (200) hide show
  1. package/README.md +12 -0
  2. package/dist/{Arrow-D1z9KkQN.js → Arrow-BuBoE64l.js} +1 -1
  3. package/dist/{Arrow-DuuEh1Nr.cjs → Arrow-CFlFdPC5.cjs} +1 -1
  4. package/dist/{BaseIcon-DemqZ_13.cjs → BaseIcon-CfhoS_qC.cjs} +1 -1
  5. package/dist/{BaseIcon-BHwqOTt4.js → BaseIcon-zmxwsaLW.js} +1 -1
  6. package/dist/{DataTable-CQ8fQnex.js → DataTable-COkA4Nyz.js} +2 -2
  7. package/dist/{DataTable-CovKV5Yy.cjs → DataTable-CwAdpLng.cjs} +1 -1
  8. package/dist/{Legend-Bbz-hKDf.cjs → Legend-CR9ydX8N.cjs} +1 -1
  9. package/dist/{Legend-Br7MWNDo.js → Legend-bYlSC7I7.js} +1 -1
  10. package/dist/{PackageVersion-BEtuCME5.cjs → PackageVersion-C1F3QLoY.cjs} +1 -1
  11. package/dist/{PackageVersion-BV3fHO46.js → PackageVersion-Dz3KcTL4.js} +1 -1
  12. package/dist/{PenAndPaper-CCOywdmm.js → PenAndPaper-BycdTwSP.js} +3 -3
  13. package/dist/{PenAndPaper-BIcmfBvD.cjs → PenAndPaper-DDheVRNG.cjs} +1 -1
  14. package/dist/{Shape-BD37ZaX9.cjs → Shape-BBp5EwJH.cjs} +1 -1
  15. package/dist/{Shape-B7Mekpyf.js → Shape-BDJJ38uM.js} +1 -1
  16. package/dist/{Slicer-CWvkt-8k.cjs → Slicer-7oTpm-cZ.cjs} +1 -1
  17. package/dist/{Slicer-ahFReg7h.js → Slicer-D_DaIThC.js} +2 -2
  18. package/dist/{Title-C2siG5N2.cjs → Title-B7ruS8yl.cjs} +1 -1
  19. package/dist/{Title-CIsKiWgN.js → Title-aMb2ETf7.js} +1 -1
  20. package/dist/{Tooltip-B1LgrF9R.js → Tooltip-BRZ3DT4p.js} +1 -1
  21. package/dist/{Tooltip-CS4C58T7.cjs → Tooltip-BqSN71SL.cjs} +1 -1
  22. package/dist/index-BkXYJDpD.cjs +9 -0
  23. package/dist/{index-BtL_cLa8.js → index-K5uyh1gA.js} +5 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +5 -1
  26. package/dist/types/vue-data-ui.d.ts +5 -1
  27. package/dist/{useNestedProp-D_feh7A_.cjs → useNestedProp-C6IvqE-r.cjs} +1 -1
  28. package/dist/{useNestedProp-CEAfm1tu.js → useNestedProp-DifqJZAs.js} +1 -1
  29. package/dist/{usePrinter-B4xDG31F.cjs → usePrinter-DHv-BwME.cjs} +1 -1
  30. package/dist/{usePrinter-sRt2SKr2.js → usePrinter-p_ZZlGc9.js} +1 -1
  31. package/dist/useUserOptionState-BIvW1Kz7.js +17 -0
  32. package/dist/useUserOptionState-BgepsfED.cjs +1 -0
  33. package/dist/{vue-data-ui-NkhaiK6y.js → vue-data-ui-3PlAeIlX.js} +60 -60
  34. package/dist/{vue-data-ui-CuEYAddV.cjs → vue-data-ui-M0E2b8Dw.cjs} +1 -1
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/{vue-ui-3d-bar-BeXYzdzu.js → vue-ui-3d-bar-PrijRaoI.js} +355 -349
  38. package/dist/vue-ui-3d-bar-VQyMytda.cjs +19 -0
  39. package/dist/{vue-ui-accordion-Cjc683tN.js → vue-ui-accordion-CsJT7Az3.js} +3 -3
  40. package/dist/{vue-ui-accordion-CBxsUoGb.cjs → vue-ui-accordion-kr18wKfc.cjs} +1 -1
  41. package/dist/vue-ui-age-pyramid-BV1MgH8J.cjs +1 -0
  42. package/dist/{vue-ui-age-pyramid-rnt8M-Qz.js → vue-ui-age-pyramid-DFYykOow.js} +260 -254
  43. package/dist/{vue-ui-annotator-CFU5Zyfk.js → vue-ui-annotator-Blg3LdqF.js} +1 -1
  44. package/dist/{vue-ui-annotator-Yu-mHS2N.cjs → vue-ui-annotator-DffUZR4a.cjs} +1 -1
  45. package/dist/vue-ui-bullet-DSampkai.cjs +34 -0
  46. package/dist/{vue-ui-bullet-CRbW1ON6.js → vue-ui-bullet-Ybz4qPWl.js} +147 -141
  47. package/dist/vue-ui-candlestick-BxcwK8UI.cjs +2 -0
  48. package/dist/{vue-ui-candlestick-D-ERLtI1.js → vue-ui-candlestick-DsVBdCz_.js} +231 -225
  49. package/dist/vue-ui-carousel-table-C2ThrWYt.js +379 -0
  50. package/dist/vue-ui-carousel-table-DkWNe0mJ.cjs +1 -0
  51. package/dist/{vue-ui-chestnut-CqJRKECX.js → vue-ui-chestnut-BacH0ZYK.js} +258 -252
  52. package/dist/vue-ui-chestnut-Cw8LKuZG.cjs +6 -0
  53. package/dist/{vue-ui-cursor-jrrdh8Lf.js → vue-ui-cursor-CMKSCQ-v.js} +2 -2
  54. package/dist/{vue-ui-cursor-S83QIsxQ.cjs → vue-ui-cursor-D2kQNFWy.cjs} +1 -1
  55. package/dist/{vue-ui-dashboard-DR_Bhwa3.js → vue-ui-dashboard-9PYl4mWC.js} +2 -2
  56. package/dist/{vue-ui-dashboard-DW1mIInG.cjs → vue-ui-dashboard-BHwlhK33.cjs} +1 -1
  57. package/dist/{vue-ui-digits-s5f9eFtW.cjs → vue-ui-digits-2yacgzrJ.cjs} +1 -1
  58. package/dist/{vue-ui-digits-1jZdiwHJ.js → vue-ui-digits-CyTjq_oN.js} +2 -2
  59. package/dist/vue-ui-donut-BNv1eGiu.cjs +1 -0
  60. package/dist/{vue-ui-donut-BAYiPsxp.js → vue-ui-donut-BxLlCBhU.js} +402 -396
  61. package/dist/{vue-ui-donut-evolution-DsHTZ9T2.js → vue-ui-donut-evolution-Bw9hfwuO.js} +320 -314
  62. package/dist/vue-ui-donut-evolution-DGjHfyq8.cjs +1 -0
  63. package/dist/vue-ui-dumbbell-CjHcgzti.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-DcMmBxLy.js → vue-ui-dumbbell-D0PjpD19.js} +267 -261
  65. package/dist/{vue-ui-flow-BTXEmIQG.js → vue-ui-flow-BuTJcn6b.js} +174 -168
  66. package/dist/vue-ui-flow-Dc-KV4a3.cjs +1 -0
  67. package/dist/{vue-ui-funnel-BB_h0FKg.js → vue-ui-funnel-CxO1aav3.js} +190 -184
  68. package/dist/vue-ui-funnel-QQGqK4OD.cjs +1 -0
  69. package/dist/{vue-ui-galaxy-DlBk1FUz.js → vue-ui-galaxy-B2uwYVgz.js} +199 -193
  70. package/dist/vue-ui-galaxy-CABgAX76.cjs +1 -0
  71. package/dist/vue-ui-gauge-CTEPbzWe.cjs +1 -0
  72. package/dist/{vue-ui-gauge-1SFhSMfU.js → vue-ui-gauge-CqhJx__t.js} +213 -207
  73. package/dist/{vue-ui-gizmo-CtX6KFN2.js → vue-ui-gizmo-D7G-8Al-.js} +3 -3
  74. package/dist/{vue-ui-gizmo-C8rLR4n5.cjs → vue-ui-gizmo-DlQOItIS.cjs} +1 -1
  75. package/dist/vue-ui-heatmap-BOwY6qNR.cjs +1 -0
  76. package/dist/{vue-ui-heatmap-BzyvTePn.js → vue-ui-heatmap-DLNzJh--.js} +291 -285
  77. package/dist/{vue-ui-history-plot-BEoHuZ3N.js → vue-ui-history-plot-CH2mN74k.js} +258 -252
  78. package/dist/vue-ui-history-plot-EiYWpITj.cjs +1 -0
  79. package/dist/{vue-ui-kpi-BYOyJjYg.js → vue-ui-kpi-Cb3fLQlS.js} +3 -3
  80. package/dist/{vue-ui-kpi-LO4KKRR9.cjs → vue-ui-kpi-DB00TrXv.cjs} +1 -1
  81. package/dist/{vue-ui-mini-loader-ChHdx5me.js → vue-ui-mini-loader-Czn2u6m3.js} +2 -2
  82. package/dist/{vue-ui-mini-loader-wlUD77O6.cjs → vue-ui-mini-loader-DAaZwOTE.cjs} +1 -1
  83. package/dist/{vue-ui-molecule-Bo7XYpf-.js → vue-ui-molecule-BAwzIU19.js} +300 -295
  84. package/dist/vue-ui-molecule-DZ6Z4eru.cjs +1 -0
  85. package/dist/vue-ui-mood-radar-BL3vQzMq.cjs +1 -0
  86. package/dist/{vue-ui-mood-radar-DXj4Ce6l.js → vue-ui-mood-radar-BXOWHB57.js} +202 -196
  87. package/dist/vue-ui-nested-donuts-D1EF5IEw.cjs +17 -0
  88. package/dist/{vue-ui-nested-donuts-BBLpNVwF.js → vue-ui-nested-donuts-F1pwFa1Y.js} +298 -292
  89. package/dist/{vue-ui-onion-DC8VIInA.js → vue-ui-onion-C9dEaRbc.js} +214 -208
  90. package/dist/vue-ui-onion-nA8sXxh-.cjs +5 -0
  91. package/dist/{vue-ui-parallel-coordinate-plot-Cl1wiHsK.js → vue-ui-parallel-coordinate-plot-Cgc8JHMy.js} +260 -254
  92. package/dist/vue-ui-parallel-coordinate-plot-DL4DOhyh.cjs +8 -0
  93. package/dist/{vue-ui-quadrant-b5cuEH9z.js → vue-ui-quadrant-C_hJHr9T.js} +278 -272
  94. package/dist/vue-ui-quadrant-DJGxKeBq.cjs +1 -0
  95. package/dist/vue-ui-quick-chart-C5v_8Kpw.cjs +15 -0
  96. package/dist/{vue-ui-quick-chart-CFBPYw2J.js → vue-ui-quick-chart-D4k-zSan.js} +474 -466
  97. package/dist/vue-ui-radar-BeGVGueh.cjs +1 -0
  98. package/dist/{vue-ui-radar-DP8360kx.js → vue-ui-radar-WKQ-TavD.js} +265 -259
  99. package/dist/{vue-ui-rating-DIthBSp_.js → vue-ui-rating-BrSnMkzF.js} +2 -2
  100. package/dist/{vue-ui-rating-D7b-kfyp.cjs → vue-ui-rating-DI3L8UYN.cjs} +1 -1
  101. package/dist/vue-ui-relation-circle-BJ_TOhIp.cjs +1 -0
  102. package/dist/vue-ui-relation-circle-DzZ5H4og.js +498 -0
  103. package/dist/vue-ui-rings-1qwg2E0O.cjs +2 -0
  104. package/dist/{vue-ui-rings-y9Zx-DaI.js → vue-ui-rings-43dY-4_7.js} +206 -201
  105. package/dist/vue-ui-scatter-cTK10i0K.cjs +1 -0
  106. package/dist/{vue-ui-scatter-Cbu5GDc1.js → vue-ui-scatter-q6Sfqa4W.js} +330 -324
  107. package/dist/{vue-ui-screenshot-BZh_sgjP.js → vue-ui-screenshot-CEy169Mc.js} +1 -1
  108. package/dist/{vue-ui-screenshot-oH-YnZBE.cjs → vue-ui-screenshot-gOGGT_ti.cjs} +1 -1
  109. package/dist/{vue-ui-skeleton-Nuju6X7l.cjs → vue-ui-skeleton-BTN1PKkz.cjs} +1 -1
  110. package/dist/{vue-ui-skeleton-DjFU2X3P.js → vue-ui-skeleton-BhA2lIT6.js} +3 -3
  111. package/dist/{vue-ui-smiley-DdnzzEYS.js → vue-ui-smiley-BAFdctGJ.js} +2 -2
  112. package/dist/{vue-ui-smiley-DtQVEc4B.cjs → vue-ui-smiley-BIEXWWWa.cjs} +1 -1
  113. package/dist/{vue-ui-spark-trend-CaIGk_53.js → vue-ui-spark-trend-Deg6oJxD.js} +5 -5
  114. package/dist/{vue-ui-spark-trend-B36zW41F.cjs → vue-ui-spark-trend-LqnAP3mZ.cjs} +1 -1
  115. package/dist/{vue-ui-sparkbar-iQKGtxo8.cjs → vue-ui-sparkbar-CJR8pSqp.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-DixeozKp.js → vue-ui-sparkbar-Dm393iij.js} +4 -4
  117. package/dist/{vue-ui-sparkgauge-DEvgucF7.cjs → vue-ui-sparkgauge-DpP1XF6C.cjs} +1 -1
  118. package/dist/{vue-ui-sparkgauge-C01VB6KP.js → vue-ui-sparkgauge-WTo7H8eC.js} +4 -4
  119. package/dist/{vue-ui-sparkhistogram-CTUuxOma.cjs → vue-ui-sparkhistogram-CEvdVaLZ.cjs} +1 -1
  120. package/dist/{vue-ui-sparkhistogram-C_6lHF3O.js → vue-ui-sparkhistogram-DNVBeCU9.js} +5 -5
  121. package/dist/{vue-ui-sparkline-DrZWPGOG.cjs → vue-ui-sparkline-B87AKRMY.cjs} +1 -1
  122. package/dist/{vue-ui-sparkline-Btm4HVgi.js → vue-ui-sparkline-Bcn_JAfC.js} +4 -4
  123. package/dist/{vue-ui-sparkstackbar-7pcfCNMr.cjs → vue-ui-sparkstackbar-Cmafq74u.cjs} +1 -1
  124. package/dist/{vue-ui-sparkstackbar-D0UGUm-1.js → vue-ui-sparkstackbar-DPPTp1Tm.js} +5 -5
  125. package/dist/{vue-ui-stackbar-BPMDmY04.js → vue-ui-stackbar-BeXW23yH.js} +382 -376
  126. package/dist/vue-ui-stackbar-DeFiDh8a.cjs +6 -0
  127. package/dist/vue-ui-strip-plot-5n6Om5PH.cjs +1 -0
  128. package/dist/{vue-ui-strip-plot-BfWQMGXy.js → vue-ui-strip-plot-CG-wp65N.js} +261 -255
  129. package/dist/{vue-ui-table-Cdo265Yt.cjs → vue-ui-table-Bbfdq7B8.cjs} +1 -1
  130. package/dist/{vue-ui-table-D8GaLhM9.js → vue-ui-table-BzuWkWse.js} +1 -1
  131. package/dist/vue-ui-table-heatmap--Uj5nFcF.cjs +1 -0
  132. package/dist/vue-ui-table-heatmap-obAYC2HB.js +262 -0
  133. package/dist/vue-ui-table-sparkline-Buh41Ovt.cjs +1 -0
  134. package/dist/{vue-ui-table-sparkline-DMHf03C9.js → vue-ui-table-sparkline-CW0-ubzl.js} +288 -236
  135. package/dist/{vue-ui-thermometer-BCVqil7E.js → vue-ui-thermometer-BmgPuIr6.js} +187 -181
  136. package/dist/vue-ui-thermometer-DW10BlzG.cjs +1 -0
  137. package/dist/{vue-ui-timer-DF5HkeeS.js → vue-ui-timer-6eWSNYld.js} +5 -5
  138. package/dist/{vue-ui-timer-gxiLCP1n.cjs → vue-ui-timer-CKp_yNVJ.cjs} +1 -1
  139. package/dist/vue-ui-tiremarks-DeEI5TAa.js +323 -0
  140. package/dist/vue-ui-tiremarks-nb8r7akm.cjs +1 -0
  141. package/dist/vue-ui-treemap-B54QUZ46.cjs +1 -0
  142. package/dist/{vue-ui-treemap-CIZaPmbi.js → vue-ui-treemap-tlPZye6M.js} +261 -255
  143. package/dist/{vue-ui-vertical-bar-dQoTddqU.js → vue-ui-vertical-bar-BIst1a32.js} +251 -245
  144. package/dist/vue-ui-vertical-bar-CCXF79YU.cjs +4 -0
  145. package/dist/vue-ui-waffle-Dctw-uNI.cjs +1 -0
  146. package/dist/{vue-ui-waffle-CnvWOEVU.js → vue-ui-waffle-iJT4g4Ht.js} +333 -327
  147. package/dist/vue-ui-wheel-DnCpgZZo.cjs +1 -0
  148. package/dist/vue-ui-wheel-v1_jsNWp.js +305 -0
  149. package/dist/vue-ui-word-cloud-BXa6XzUJ.cjs +1 -0
  150. package/dist/{vue-ui-word-cloud-o3zU6r0-.js → vue-ui-word-cloud-DR8E1ArH.js} +247 -241
  151. package/dist/{vue-ui-xy-GR4PGBDy.js → vue-ui-xy-BZ3lbw6i.js} +708 -697
  152. package/dist/vue-ui-xy-CvFWhRR-.cjs +3 -0
  153. package/dist/vue-ui-xy-canvas-BVw3zOIC.cjs +9 -0
  154. package/dist/{vue-ui-xy-canvas-BKGOnjut.js → vue-ui-xy-canvas-hPcU2SBK.js} +344 -338
  155. package/package.json +1 -1
  156. package/dist/index-DoD-GxZR.cjs +0 -9
  157. package/dist/vue-ui-3d-bar-RduHvzwG.cjs +0 -19
  158. package/dist/vue-ui-age-pyramid-DVtbyRJw.cjs +0 -1
  159. package/dist/vue-ui-bullet-Be5aYhtp.cjs +0 -34
  160. package/dist/vue-ui-candlestick-B6wSs-JC.cjs +0 -2
  161. package/dist/vue-ui-carousel-table-7reErH8M.cjs +0 -1
  162. package/dist/vue-ui-carousel-table-I1m4HMWf.js +0 -373
  163. package/dist/vue-ui-chestnut-D-WzX16q.cjs +0 -6
  164. package/dist/vue-ui-donut-Ce1SaXNu.cjs +0 -1
  165. package/dist/vue-ui-donut-evolution-DI8yeIa4.cjs +0 -1
  166. package/dist/vue-ui-dumbbell-CFJkwtM8.cjs +0 -9
  167. package/dist/vue-ui-flow-B4MtorhO.cjs +0 -1
  168. package/dist/vue-ui-funnel-DNL12vLQ.cjs +0 -1
  169. package/dist/vue-ui-galaxy-CmCZGOKz.cjs +0 -1
  170. package/dist/vue-ui-gauge-B7ieQMud.cjs +0 -1
  171. package/dist/vue-ui-heatmap-Bfi3KJwS.cjs +0 -1
  172. package/dist/vue-ui-history-plot-5kZ54hgy.cjs +0 -1
  173. package/dist/vue-ui-molecule-D-4cRS5w.cjs +0 -1
  174. package/dist/vue-ui-mood-radar-C3x_LH7Q.cjs +0 -1
  175. package/dist/vue-ui-nested-donuts-DrL7-SUd.cjs +0 -17
  176. package/dist/vue-ui-onion-8Vz3lPbn.cjs +0 -5
  177. package/dist/vue-ui-parallel-coordinate-plot-D6q4WQ0B.cjs +0 -8
  178. package/dist/vue-ui-quadrant-DBZS5jFQ.cjs +0 -1
  179. package/dist/vue-ui-quick-chart-Cno_1mzu.cjs +0 -15
  180. package/dist/vue-ui-radar-ChcBO21S.cjs +0 -1
  181. package/dist/vue-ui-relation-circle-C5pO0iHY.cjs +0 -1
  182. package/dist/vue-ui-relation-circle-D2iwmChn.js +0 -492
  183. package/dist/vue-ui-rings-C_NLJYs8.cjs +0 -2
  184. package/dist/vue-ui-scatter-BNeMGDNk.cjs +0 -1
  185. package/dist/vue-ui-stackbar-BwRdmPvB.cjs +0 -6
  186. package/dist/vue-ui-strip-plot-CLN9LikJ.cjs +0 -1
  187. package/dist/vue-ui-table-heatmap-C4DRSfsE.js +0 -256
  188. package/dist/vue-ui-table-heatmap-CDAf1IIk.cjs +0 -1
  189. package/dist/vue-ui-table-sparkline-Cw7NOiYx.cjs +0 -1
  190. package/dist/vue-ui-thermometer-7BORZJjd.cjs +0 -1
  191. package/dist/vue-ui-tiremarks-CwGnFx4f.cjs +0 -1
  192. package/dist/vue-ui-tiremarks-lidhcJsi.js +0 -317
  193. package/dist/vue-ui-treemap-BZ_LmiBK.cjs +0 -1
  194. package/dist/vue-ui-vertical-bar-venrkqjM.cjs +0 -4
  195. package/dist/vue-ui-waffle-oR54BbIg.cjs +0 -1
  196. package/dist/vue-ui-wheel-BUHZEzPr.cjs +0 -1
  197. package/dist/vue-ui-wheel-D3itrMku.js +0 -299
  198. package/dist/vue-ui-word-cloud-87gwksmM.cjs +0 -1
  199. package/dist/vue-ui-xy-D56pm4L0.cjs +0 -3
  200. package/dist/vue-ui-xy-canvas-uikeVe72.cjs +0 -9
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-DoD-GxZR.cjs"),e=require("vue"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((l,o)=>l-o),palette:g.palette,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(l=>({average:Object.hasOwn(l,"average")?l.average:!1,decimals:Object.hasOwn(l,"decimals")?l.decimals:0,isMultiselect:Object.hasOwn(l,"isMultiselect")?l.isMultiselect:!1,isPercentage:Object.hasOwn(l,"isPercentage")?l.isPercentage:!1,isSearch:Object.hasOwn(l,"isSearch")?l.isSearch:!1,isSort:Object.hasOwn(l,"isSort")?l.isSort:!1,name:l.name,percentageTo:Object.hasOwn(l,"percentageTo")?l.percentageTo:void 0,prefix:Object.hasOwn(l,"prefix")?l.prefix:"",rangeFilter:Object.hasOwn(l,"rangeFilter")?l.rangeFilter:!1,suffix:Object.hasOwn(l,"suffix")?l.suffix:"",sum:Object.hasOwn(l,"sum")?l.sum:!1,type:l.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-BkXYJDpD.cjs"),e=require("vue"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((l,o)=>l-o),palette:g.palette,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(l=>({average:Object.hasOwn(l,"average")?l.average:!1,decimals:Object.hasOwn(l,"decimals")?l.decimals:0,isMultiselect:Object.hasOwn(l,"isMultiselect")?l.isMultiselect:!1,isPercentage:Object.hasOwn(l,"isPercentage")?l.isPercentage:!1,isSearch:Object.hasOwn(l,"isSearch")?l.isSearch:!1,isSort:Object.hasOwn(l,"isSort")?l.isSort:!1,name:l.name,percentageTo:Object.hasOwn(l,"percentageTo")?l.percentageTo:void 0,prefix:Object.hasOwn(l,"prefix")?l.prefix:"",rangeFilter:Object.hasOwn(l,"rangeFilter")?l.rangeFilter:!1,suffix:Object.hasOwn(l,"suffix")?l.suffix:"",sum:Object.hasOwn(l,"sum")?l.sum:!1,type:l.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
2
2
  Provide an array of objects of type:
3
3
  {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { p as D, u as x, A as G, m as M, d as T, B as E, q as z, r as B, a0 as H } from "./index-BtL_cLa8.js";
1
+ import { p as D, u as x, A as G, m as M, d as T, B as E, q as z, r as B, a0 as H } from "./index-K5uyh1gA.js";
2
2
  import { openBlock as i, createElementBlock as c, normalizeStyle as g, createElementVNode as a, toDisplayString as u, Fragment as b, renderList as _, normalizeClass as f, createTextVNode as I, createCommentVNode as N, withDirectives as k, vModelText as w, withKeys as S, withModifiers as O, vModelSelect as P, createStaticVNode as R, pushScopeId as U, popScopeId as V } from "vue";
3
3
  import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const X = {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-BkXYJDpD.cjs"),S=require("./useNestedProp-C6IvqE-r.cjs"),$=require("./usePrinter-DHv-BwME.cjs"),U=require("./Shape-BBp5EwJH.cjs"),q=require("./useUserOptionState-BgepsfED.cjs"),G=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=["id"],L={role:"cell"},A={role:"row"},D=["data-cell"],X={key:0,style:{display:"flex","flex-direction":"row",gap:"2px","align-items":"center"}},W=["height","width"],J={key:0,role:"cell","data-cell":"sum"},K={key:1,role:"cell","data-cell":"average"},Q={key:2,role:"cell","data-cell":"median"},Y={key:1,ref:"source",dir:"auto"},Z={__name:"vue-ui-table-heatmap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(w,{expose:N}){const d=w;e.useCssVars(t=>({"71b0617e":M.value,"08e6c59c":R.value}));const{vue_ui_table_heatmap:E}=l.useConfig(),p=e.ref(l.createUid()),s=e.ref(!1),c=e.ref(null),m=e.ref(!1),f=e.ref(0),o=e.computed({get:()=>y(),set:t=>t}),{userOptionsVisible:v,setUserOptionsVisibility:g,keepUserOptionState:h}=q.useUserOptionState({config:o.value});function y(){const t=S.useNestedProp({userConfig:d.config,defaultConfig:E});return t.theme?{...S.useNestedProp({userConfig:l.themes.vue_ui_table_heatmap[t.theme]||d.config,defaultConfig:t})}:t}e.watch(()=>d.config,t=>{o.value=y(),v.value=!o.value.showOnChartHover,C()},{deep:!0});const{isPrinting:V,isImaging:x,generatePdf:k,generateImage:b}=$.usePrinter({elementId:`table_heatmap_${p.value}`,fileName:"vue-ui-table-heatmap"}),O=e.computed(()=>o.value.table.responsiveBreakpoint),z=e.computed(()=>!!d.dataset&&d.dataset.length);e.onMounted(()=>{C()});function C(){l.objectIsEmpty(d.dataset)&&l.error({componentName:"VueUiTableHeatmap",type:"dataset"});const t=new ResizeObserver(a=>{a.forEach(n=>{s.value=n.contentRect.width<O.value})});c.value&&t.observe(c.value)}const B=e.computed(()=>d.dataset.map(t=>{const a=t.values.map(r=>isNaN(r)?0:r),n=a.reduce((r,i)=>r+i,0);return{...t,values:a,serieExtremes:{max:Math.max(...a),min:Math.min(...a)},sum:n,average:n/a.length,median:l.calcMedian(a),displayValues:[t.name,...t.values],id:l.createUid()}})),P=e.computed(()=>{const t=B.value.flatMap(a=>a.values);return{min:Math.min(...t),max:Math.max(...t)}});function F(t,a){const n=o.value.style.heatmapColors.useIndividualScale;return l.interpolateColorHex(o.value.style.heatmapColors.min,o.value.style.heatmapColors.max,n?a.min:P.value.min,n?a.max:P.value.max,t)}const _=e.computed(()=>B.value.map(t=>({...t,colors:t.displayValues.map(a=>isNaN(a)?o.value.style.backgroundColor:F(a,t.serieExtremes))}))),R=e.computed(()=>o.value.style.backgroundColor),M=e.computed(()=>`${o.value.table.borderWidth}px`);function I(){e.nextTick(()=>{const t=_.value.map(r=>[[r.name],r.displayValues,[r.sum],[r.average],[r.median]]),a=[[[""],o.value.table.head.values,["sum"],["average"],["median"]]].concat(t),n=l.createCsvContent(a);l.downloadCsv({csvContent:n,title:"vue-ui-table-heatmap"})})}function T(t){m.value=t,f.value+=1}return N({generatePdf:k,generateCsv:I,generateImage:b}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:c,style:e.normalizeStyle(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${o.value.userOptions.show?"36px":""}; ${m.value?"vue-data-ui-wrapper-fullscreen":""}; position:relative;`),class:e.normalizeClass({"vue-ui-responsive":s.value}),id:`table_heatmap_${p.value}`,onMouseenter:a[0]||(a[0]=()=>e.unref(g)(!0)),onMouseleave:a[1]||(a[1]=()=>e.unref(g)(!1))},[o.value.userOptions.show&&z.value&&(e.unref(h)||e.unref(v))?(e.openBlock(),e.createBlock($.UserOptions,{ref:"details",key:`user_option_${f.value}`,backgroundColor:o.value.style.backgroundColor,color:o.value.style.color,isPrinting:e.unref(V),isImaging:e.unref(x),uid:p.value,hasPdf:o.value.userOptions.buttons.pdf,hasXls:o.value.userOptions.buttons.csv,hasImg:o.value.userOptions.buttons.img,hasFullscreen:o.value.userOptions.buttons.fullscreen,isFullscreen:m.value,titles:{...o.value.userOptions.buttonTitles},chartElement:c.value,position:o.value.userOptions.position,onToggleFullscreen:T,onGeneratePdf:e.unref(k),onGenerateCsv:I,onGenerateImage:e.unref(b),style:e.normalizeStyle({visibility:e.unref(h)?e.unref(v)?"visible":"hidden":"visible"})},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:r})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:r})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),e.createElementVNode("table",{class:e.normalizeClass({"vue-ui-table-heatmap":!0}),style:e.normalizeStyle(`width:100%;font-family:${o.value.style.fontFamily};background:${o.value.style.backgroundColor};`)},[e.createElementVNode("caption",null,[e.renderSlot(t.$slots,"caption",{},void 0,!0)]),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${o.value.table.head.backgroundColor};color:${o.value.table.head.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.table.head.values,(n,r)=>(e.openBlock(),e.createElementBlock("th",L,[e.renderSlot(t.$slots,"head",e.normalizeProps(e.guardReactiveProps({value:n,rowIndex:r,type:typeof n,isResponsive:s.value})),void 0,!0)]))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(n,r)=>(e.openBlock(),e.createElementBlock("tr",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.displayValues,(i,u)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":o.value.table.head.values[u]},[n.color&&u===0?(e.openBlock(),e.createElementBlock("div",X,[n.color?(e.openBlock(),e.createElementBlock("svg",{key:0,height:o.value.style.shapeSize,width:o.value.style.shapeSize,viewBox:"0 0 20 20",style:{background:"none",overflow:"visible"}},[e.createVNode(U._sfc_main,{plot:{x:10,y:10},color:n.color,radius:9,shape:n.shape||"circle"},null,8,["color","shape"])],8,W)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.guardReactiveProps({value:i,rowIndex:r,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[u===0?e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.mergeProps({key:0},{value:i,rowIndex:r,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0):e.createCommentVNode("",!0),u>0?e.renderSlot(t.$slots,"cell",e.normalizeProps(e.mergeProps({key:1},{value:i,rowIndex:r,colIndex:u,type:typeof i,isResponsive:s.value,color:n.colors[u],textColor:e.unref(l.adaptColorToBackground)(n.colors[u])})),void 0,!0):e.createCommentVNode("",!0)],64))],8,D))),256)),o.value.table.showSum?(e.openBlock(),e.createElementBlock("td",J,[e.renderSlot(t.$slots,"sum",e.normalizeProps(e.guardReactiveProps({value:n.sum,rowIndex:r,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showAverage?(e.openBlock(),e.createElementBlock("td",K,[e.renderSlot(t.$slots,"average",e.normalizeProps(e.guardReactiveProps({value:n.average,rowIndex:r,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showMedian?(e.openBlock(),e.createElementBlock("td",Q,[e.renderSlot(t.$slots,"median",e.normalizeProps(e.guardReactiveProps({value:n.median,rowIndex:r,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0)]))),256))])],4),t.$slots.source?(e.openBlock(),e.createElementBlock("div",Y,[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,H))}},j=G._export_sfc(Z,[["__scopeId","data-v-d7c8a9cf"]]);exports.default=j;
@@ -0,0 +1,262 @@
1
+ import { useCssVars as j, ref as g, computed as p, watch as ee, onMounted as te, openBlock as n, createElementBlock as l, normalizeStyle as C, normalizeClass as E, unref as u, createBlock as ae, createSlots as oe, withCtx as k, renderSlot as r, normalizeProps as c, guardReactiveProps as h, createCommentVNode as m, createElementVNode as y, Fragment as _, renderList as x, createVNode as se, mergeProps as G, nextTick as ne } from "vue";
2
+ import { u as le, c as B, t as re, o as ue, e as ie, $ as de, G as ve, N as pe, q as ce, r as me } from "./index-K5uyh1gA.js";
3
+ import { u as A } from "./useNestedProp-DifqJZAs.js";
4
+ import { u as fe, U as he } from "./usePrinter-p_ZZlGc9.js";
5
+ import { _ as ge } from "./Shape-BDJJ38uM.js";
6
+ import { u as ye } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { _ as be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const Ce = ["id"], ke = { role: "cell" }, _e = { role: "row" }, $e = ["data-cell"], Ie = {
9
+ key: 0,
10
+ style: { display: "flex", "flex-direction": "row", gap: "2px", "align-items": "center" }
11
+ }, we = ["height", "width"], xe = {
12
+ key: 0,
13
+ role: "cell",
14
+ "data-cell": "sum"
15
+ }, Oe = {
16
+ key: 1,
17
+ role: "cell",
18
+ "data-cell": "average"
19
+ }, Fe = {
20
+ key: 2,
21
+ role: "cell",
22
+ "data-cell": "median"
23
+ }, Pe = {
24
+ key: 1,
25
+ ref: "source",
26
+ dir: "auto"
27
+ }, Ne = {
28
+ __name: "vue-ui-table-heatmap",
29
+ props: {
30
+ config: {
31
+ type: Object,
32
+ default() {
33
+ return {};
34
+ }
35
+ },
36
+ dataset: {
37
+ type: Array,
38
+ default() {
39
+ return [];
40
+ }
41
+ }
42
+ },
43
+ setup(D, { expose: H }) {
44
+ const f = D;
45
+ j((e) => ({
46
+ "71b0617e": Y.value,
47
+ "08e6c59c": Q.value
48
+ }));
49
+ const { vue_ui_table_heatmap: L } = le(), $ = g(B()), i = g(!1), b = g(null), I = g(!1), O = g(0), t = p({
50
+ get: () => N(),
51
+ set: (e) => e
52
+ }), { userOptionsVisible: w, setUserOptionsVisibility: F, keepUserOptionState: P } = ye({ config: t.value });
53
+ function N() {
54
+ const e = A({
55
+ userConfig: f.config,
56
+ defaultConfig: L
57
+ });
58
+ return e.theme ? {
59
+ ...A({
60
+ userConfig: re.vue_ui_table_heatmap[e.theme] || f.config,
61
+ defaultConfig: e
62
+ })
63
+ } : e;
64
+ }
65
+ ee(() => f.config, (e) => {
66
+ t.value = N(), w.value = !t.value.showOnChartHover, M();
67
+ }, { deep: !0 });
68
+ const { isPrinting: X, isImaging: W, generatePdf: R, generateImage: V } = fe({
69
+ elementId: `table_heatmap_${$.value}`,
70
+ fileName: "vue-ui-table-heatmap"
71
+ }), q = p(() => t.value.table.responsiveBreakpoint), J = p(() => !!f.dataset && f.dataset.length);
72
+ te(() => {
73
+ M();
74
+ });
75
+ function M() {
76
+ ue(f.dataset) && ie({
77
+ componentName: "VueUiTableHeatmap",
78
+ type: "dataset"
79
+ });
80
+ const e = new ResizeObserver((o) => {
81
+ o.forEach((a) => {
82
+ i.value = a.contentRect.width < q.value;
83
+ });
84
+ });
85
+ b.value && e.observe(b.value);
86
+ }
87
+ const S = p(() => f.dataset.map((e) => {
88
+ const o = e.values.map((s) => isNaN(s) ? 0 : s), a = o.reduce((s, v) => s + v, 0);
89
+ return {
90
+ ...e,
91
+ values: o,
92
+ serieExtremes: {
93
+ max: Math.max(...o),
94
+ min: Math.min(...o)
95
+ },
96
+ sum: a,
97
+ average: a / o.length,
98
+ median: de(o),
99
+ displayValues: [e.name, ...e.values],
100
+ id: B()
101
+ };
102
+ })), T = p(() => {
103
+ const e = S.value.flatMap((o) => o.values);
104
+ return {
105
+ min: Math.min(...e),
106
+ max: Math.max(...e)
107
+ };
108
+ });
109
+ function K(e, o) {
110
+ const a = t.value.style.heatmapColors.useIndividualScale;
111
+ return pe(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max, a ? o.min : T.value.min, a ? o.max : T.value.max, e);
112
+ }
113
+ const U = p(() => S.value.map((e) => ({
114
+ ...e,
115
+ colors: e.displayValues.map((o) => isNaN(o) ? t.value.style.backgroundColor : K(o, e.serieExtremes))
116
+ }))), Q = p(() => t.value.style.backgroundColor), Y = p(() => `${t.value.table.borderWidth}px`);
117
+ function z() {
118
+ ne(() => {
119
+ const e = U.value.map((s) => [
120
+ [s.name],
121
+ s.displayValues,
122
+ [s.sum],
123
+ [s.average],
124
+ [s.median]
125
+ ]), o = [[[""], t.value.table.head.values, ["sum"], ["average"], ["median"]]].concat(e), a = ce(o);
126
+ me({ csvContent: a, title: "vue-ui-table-heatmap" });
127
+ });
128
+ }
129
+ function Z(e) {
130
+ I.value = e, O.value += 1;
131
+ }
132
+ return H({
133
+ generatePdf: R,
134
+ generateCsv: z,
135
+ generateImage: V
136
+ }), (e, o) => (n(), l("div", {
137
+ ref_key: "tableContainer",
138
+ ref: b,
139
+ style: C(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${t.value.userOptions.show ? "36px" : ""}; ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}; position:relative;`),
140
+ class: E({ "vue-ui-responsive": i.value }),
141
+ id: `table_heatmap_${$.value}`,
142
+ onMouseenter: o[0] || (o[0] = () => u(F)(!0)),
143
+ onMouseleave: o[1] || (o[1] = () => u(F)(!1))
144
+ }, [
145
+ t.value.userOptions.show && J.value && (u(P) || u(w)) ? (n(), ae(he, {
146
+ ref: "details",
147
+ key: `user_option_${O.value}`,
148
+ backgroundColor: t.value.style.backgroundColor,
149
+ color: t.value.style.color,
150
+ isPrinting: u(X),
151
+ isImaging: u(W),
152
+ uid: $.value,
153
+ hasPdf: t.value.userOptions.buttons.pdf,
154
+ hasXls: t.value.userOptions.buttons.csv,
155
+ hasImg: t.value.userOptions.buttons.img,
156
+ hasFullscreen: t.value.userOptions.buttons.fullscreen,
157
+ isFullscreen: I.value,
158
+ titles: { ...t.value.userOptions.buttonTitles },
159
+ chartElement: b.value,
160
+ position: t.value.userOptions.position,
161
+ onToggleFullscreen: Z,
162
+ onGeneratePdf: u(R),
163
+ onGenerateCsv: z,
164
+ onGenerateImage: u(V),
165
+ style: C({
166
+ visibility: u(P) ? u(w) ? "visible" : "hidden" : "visible"
167
+ })
168
+ }, oe({ _: 2 }, [
169
+ e.$slots.optionPdf ? {
170
+ name: "optionPdf",
171
+ fn: k(() => [
172
+ r(e.$slots, "optionPdf", {}, void 0, !0)
173
+ ]),
174
+ key: "0"
175
+ } : void 0,
176
+ e.$slots.optionCsv ? {
177
+ name: "optionCsv",
178
+ fn: k(() => [
179
+ r(e.$slots, "optionCsv", {}, void 0, !0)
180
+ ]),
181
+ key: "1"
182
+ } : void 0,
183
+ e.$slots.optionImg ? {
184
+ name: "optionImg",
185
+ fn: k(() => [
186
+ r(e.$slots, "optionImg", {}, void 0, !0)
187
+ ]),
188
+ key: "2"
189
+ } : void 0,
190
+ e.$slots.optionFullscreen ? {
191
+ name: "optionFullscreen",
192
+ fn: k(({ toggleFullscreen: a, isFullscreen: s }) => [
193
+ r(e.$slots, "optionFullscreen", c(h({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
194
+ ]),
195
+ key: "3"
196
+ } : void 0
197
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
198
+ y("table", {
199
+ class: E({ "vue-ui-table-heatmap": !0 }),
200
+ style: C(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor};`)
201
+ }, [
202
+ y("caption", null, [
203
+ r(e.$slots, "caption", {}, void 0, !0)
204
+ ]),
205
+ y("thead", null, [
206
+ y("tr", {
207
+ role: "row",
208
+ style: C(`background:${t.value.table.head.backgroundColor};color:${t.value.table.head.color}`)
209
+ }, [
210
+ (n(!0), l(_, null, x(t.value.table.head.values, (a, s) => (n(), l("th", ke, [
211
+ r(e.$slots, "head", c(h({ value: a, rowIndex: s, type: typeof a, isResponsive: i.value })), void 0, !0)
212
+ ]))), 256))
213
+ ], 4)
214
+ ]),
215
+ y("tbody", null, [
216
+ (n(!0), l(_, null, x(U.value, (a, s) => (n(), l("tr", _e, [
217
+ (n(!0), l(_, null, x(a.displayValues, (v, d) => (n(), l("td", {
218
+ role: "cell",
219
+ "data-cell": t.value.table.head.values[d]
220
+ }, [
221
+ a.color && d === 0 ? (n(), l("div", Ie, [
222
+ a.color ? (n(), l("svg", {
223
+ key: 0,
224
+ height: t.value.style.shapeSize,
225
+ width: t.value.style.shapeSize,
226
+ viewBox: "0 0 20 20",
227
+ style: { background: "none", overflow: "visible" }
228
+ }, [
229
+ se(ge, {
230
+ plot: { x: 10, y: 10 },
231
+ color: a.color,
232
+ radius: 9,
233
+ shape: a.shape || "circle"
234
+ }, null, 8, ["color", "shape"])
235
+ ], 8, we)) : m("", !0),
236
+ r(e.$slots, "rowTitle", c(h({ value: v, rowIndex: s, colIndex: d, type: typeof v, isResponsive: i.value })), void 0, !0)
237
+ ])) : (n(), l(_, { key: 1 }, [
238
+ d === 0 ? r(e.$slots, "rowTitle", c(G({ key: 0 }, { value: v, rowIndex: s, colIndex: d, type: typeof v, isResponsive: i.value })), void 0, !0) : m("", !0),
239
+ d > 0 ? r(e.$slots, "cell", c(G({ key: 1 }, { value: v, rowIndex: s, colIndex: d, type: typeof v, isResponsive: i.value, color: a.colors[d], textColor: u(ve)(a.colors[d]) })), void 0, !0) : m("", !0)
240
+ ], 64))
241
+ ], 8, $e))), 256)),
242
+ t.value.table.showSum ? (n(), l("td", xe, [
243
+ r(e.$slots, "sum", c(h({ value: a.sum, rowIndex: s, isResponsive: i.value })), void 0, !0)
244
+ ])) : m("", !0),
245
+ t.value.table.showAverage ? (n(), l("td", Oe, [
246
+ r(e.$slots, "average", c(h({ value: a.average, rowIndex: s, isResponsive: i.value })), void 0, !0)
247
+ ])) : m("", !0),
248
+ t.value.table.showMedian ? (n(), l("td", Fe, [
249
+ r(e.$slots, "median", c(h({ value: a.median, rowIndex: s, isResponsive: i.value })), void 0, !0)
250
+ ])) : m("", !0)
251
+ ]))), 256))
252
+ ])
253
+ ], 4),
254
+ e.$slots.source ? (n(), l("div", Pe, [
255
+ r(e.$slots, "source", {}, void 0, !0)
256
+ ], 512)) : m("", !0)
257
+ ], 46, Ce));
258
+ }
259
+ }, Ee = /* @__PURE__ */ be(Ne, [["__scopeId", "data-v-d7c8a9cf"]]);
260
+ export {
261
+ Ee as default
262
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-BkXYJDpD.cjs"),Y=require("./useNestedProp-C6IvqE-r.cjs"),de=require("./vue-ui-sparkline-B87AKRMY.cjs"),x=require("./BaseIcon-CfhoS_qC.cjs"),D=require("./usePrinter-DHv-BwME.cjs"),ce=require("./useUserOptionState-BgepsfED.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),pe=["id"],me={style:{"z-index":"1","padding-right":"24px"}},fe={key:0,style:{display:"flex",flexDirection:"row",alignItems:"center"}},ye={key:0,style:{display:"flex",flexDirection:"row",alignItems:"center"}},ge=["onClick"],be=["onClick"],ke=["data-cell"],he=["data-cell","onPointerenter"],Se=["data-cell"],Ce=["data-cell"],_e=["data-cell"],xe=["data-cell"],we={key:0,ref:"source",dir:"auto"},Ne={__name:"vue-ui-table-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(Z,{expose:ee}){const f=Z;e.useCssVars(l=>({"617873c4":l.tdo}));const{vue_ui_table_sparkline:te}=u.useConfig(),w=e.ref(u.createUid()),$=e.ref(0),N=e.ref(0),z=e.ref(null),t=e.computed({get:()=>T(),set:l=>l}),{userOptionsVisible:V,setUserOptionsVisibility:P,keepUserOptionState:F}=ce.useUserOptionState({config:t.value});function T(){const l=Y.useNestedProp({userConfig:f.config,defaultConfig:te});return l.theme?{...Y.useNestedProp({userConfig:u.themes.vue_ui_table_sparkline[l.theme]||f.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:l}e.watch(()=>f.config,l=>{t.value=T(),V.value=!t.value.showOnChartHover,q(),N.value+=1},{deep:!0}),e.watch(()=>f.dataset,l=>{c.value=h.value,N.value+=1},{deep:!0});const{isPrinting:M,isImaging:W,generatePdf:L,generateImage:U}=D.usePrinter({elementId:`table_${w.value}`,fileName:t.value.title.text||"vue-ui-table-sparkline"}),le=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),C=e.ref(null),B=e.ref(!1),ae=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{q()});const E=e.ref(t.value.colNames);function q(){u.objectIsEmpty(f.dataset)&&u.error({componentName:"VueUiTableSparkline",type:"dataset"});const l=new ResizeObserver(o=>{o.forEach(a=>{B.value=a.contentRect.width<ae.value})});C.value&&l.observe(C.value),E.value=[];for(let o=0;o<H.value;o+=1)E.value.push(t.value.colNames[o]||`col ${o}`)}const G=e.computed(()=>(f.dataset.forEach((l,o)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{u.error({componentName:"VueUiTableSparkline",type:"datasetSerieAttribute",property:a,index:o})})}),f.dataset.map((l,o)=>{const a=(l.values||[]).map(d=>isNaN(d)?0:d??0),n=a.reduce((d,i)=>d+i,0),s=n/a.length,r=u.calcMedian(a);return{...l,values:l.values||[],color:u.convertColorToHex(l.color)||le.value[o]||u.palette[o]||u.palette[o%u.palette.length],sum:n,average:s,median:r,sparklineDataset:a.map((d,i)=>({period:t.value.colNames[i]||`col ${i}`,value:d||0}))}})));function oe(l){const a=(l[0].values||[]).map((s,r)=>l.map(d=>d.values[r]||[])).map(s=>s.map((r,d)=>[r,d]).sort((r,d)=>d[0]-r[0]).map(r=>r[1]));return l.map((s,r)=>({...s,values:s.values||[],orders:a[r]}))}const h=e.computed(()=>oe(G.value)),c=e.ref(h.value),ne=e.computed(()=>Math.max(...c.value.map(l=>(l.values||[]).length))),I=e.ref(void 0),A=e.ref(!1),v=e.ref(void 0),R=e.ref(1);function k(){A.value=!1,v.value=void 0,p.value=void 0,R.value=1,S.value.forEach(l=>l.state=1),g.value={name:1,sum:1,average:1,median:1},c.value=h.value}function _(l,o,a){if(["name","sum","average","median"].includes(l.type)){re(l.type,o,a);return}if(!J(o))return;if(b.value=o,p.value=void 0,![null,void 0].includes(v.value)&&o!==v.value&&(v.value=void 0,k()),S.value[o].state===a&&v.value===o){v.value=void 0,k();return}A.value=!0,v.value=o;const n=h.value.map(i=>i.values[o]||[]),s=a;S.value[o].state=s,R.value=s,o===I.value?I.value=void 0:I.value=o;const d=n.map((i,m)=>[m,i]).sort((i,m)=>s*(m[1]-i[1])).map(i=>i[0]).map(i=>h.value[i]);c.value=d,N.value+=1}const H=e.computed(()=>Math.max(...f.dataset.map(l=>(l.values||[]).length))),y=e.computed(()=>{let l=E.value.map(a=>({type:"reg",value:a}));if(!l.length)for(let a=0;a<H.value;a+=1)l.push({type:"reg",value:`col ${a+1}`});t.value.showTotal&&(l=[...l,{type:"sum",value:t.value.translations.total}]);let o;return t.value.showAverage&&t.value.showMedian?o=[...l,{type:"average",value:t.value.translations.average},{type:"median",value:t.value.translations.median}]:t.value.showAverage&&!t.value.showMedian?o=[...l,{type:"average",value:t.value.translations.average}]:!t.value.showAverage&&t.value.showMedian?o=[...l,{type:"median",value:t.value.translations.median}]:o=l,t.value.showSparklines?[...o,{type:"chart",value:t.value.translations.chart}]:o}),g=e.ref({name:1,sum:1,average:1,median:1}),p=e.ref(void 0);function re(l,o,a){if(!c.value||c.value.length===0||!K(l))return;if(p.value!==l&&(p.value=void 0),![null,void 0].includes(v.value)&&o!==v.value&&k(),v.value=void 0,g.value[l]===a&&p.value){p.value=void 0,k();return}p.value=l,A.value=!0,g.value[l]=a,[null,void 0].includes(o)||(S.value[o].state=g.value[l]);const n=g.value[l],s=[...c.value].sort((r,d)=>{const i=r[l]??(typeof r[l]=="number"?0:""),m=d[l]??(typeof d[l]=="number"?0:"");return typeof i=="string"&&typeof m=="string"?n===-1?i.localeCompare(m):m.localeCompare(i):typeof i=="number"&&typeof m=="number"?n===-1?i-m:m-i:0});c.value=s}const b=e.ref(void 0),O=e.ref(void 0);function ue({dataIndex:l,serieIndex:o}){b.value=l,O.value=o,z.value[l]&&!B.value&&z.value[l].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}const X=e.ref(!1);function se(l){X.value=l,$.value+=1}function j(){e.nextTick(()=>{const l=[t.value.translations.serie].concat(y.value),o=G.value.map((s,r)=>[[s.name],s.values,[s.sum],[s.average],[s.median]]),a=[l].concat(o),n=u.createCsvContent(a);u.downloadCsv({csvContent:n,title:t.value.title.text||"vue-ui-table-sparkline"})})}function J(l){return t.value.sortedDataColumnIndices.includes(l)}function K(l){return l.type==="name"||l==="name"?t.value.sortedSeriesName:l.type==="sum"||l==="sum"?t.value.sortedSum:l.type==="average"||l==="average"?t.value.sortedAverage:l.type==="median"||l==="median"?t.value.sortedMedian:!1}function Q(l,o,a){return["sum","average","median"].includes(o.type)?p.value===o.type&&g.value[o.type]===a?1:.3:l===v.value&&S.value[l].state===a?1:.3}function ie(){t.value.resetSortOnClickOutside&&k()}const S=e.computed({get:()=>y.value.map(l=>({state:1})),set:l=>l});return ee({generatePdf:L,generateImage:U,generateCsv:j,restoreOrder:k}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:C,class:e.normalizeClass({"vue-ui-responsive":B.value}),style:{overflow:"hidden"},id:`table_${w.value}`,onMouseenter:o[3]||(o[3]=()=>e.unref(P)(!0)),onMouseleave:o[4]||(o[4]=()=>e.unref(P)(!1))},[e.createElementVNode("div",{style:{overflow:"auto"},onPointerleave:o[2]||(o[2]=a=>{O.value=void 0,b.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",me,[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.createElementVNode("div",{style:e.normalizeStyle({display:"flex",flexDirection:"row",alignItems:"center",gap:"3px",justifyContent:t.value.thead.textAlign})},[e.createElementVNode("span",null,e.toDisplayString(t.value.translations.serie),1),c.value.length>1&&t.value.sortedSeriesName?(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("button",{class:"vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",onClick:o[0]||(o[0]=a=>_({type:"name"},null,-1))},[e.createVNode(x.default,{size:12,name:"arrowBottom",stroke:t.value.thead.color,style:e.normalizeStyle({opacity:p.value==="name"&&g.value.name===-1?1:.3})},null,8,["stroke","style"])]),e.createElementVNode("button",{class:"vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",onClick:o[1]||(o[1]=a=>_({type:"name"},null,1))},[e.createVNode(x.default,{size:12,name:"arrowTop",stroke:t.value.thead.color,style:e.normalizeStyle({opacity:p.value==="name"&&g.value.name===1?1:.3})},null,8,["stroke","style"])])])):e.createCommentVNode("",!0)],4)],4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(a,n)=>(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:n===y.value.length-1?`${t.value.sparkline.dimensions.width}px`:"48px",paddingRight:n===y.value.length-1&&t.value.userOptions.show?"36px":""}),class:e.normalizeClass({"sticky-col":n===y.value.length-1&&t.value.showSparklines})},[e.createElementVNode("div",{style:e.normalizeStyle({display:"flex",flexDirection:"row",alignItems:"center",gap:"3px",justifyContent:t.value.thead.textAlign})},[e.createElementVNode("span",null,e.toDisplayString(a.value),1),c.value.length>1&&(J(n)||K(a))?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("button",{class:"vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",onClick:()=>_(a,n,-1)},[e.createVNode(x.default,{size:12,name:"arrowBottom",stroke:t.value.thead.color,style:e.normalizeStyle({opacity:Q(n,a,-1)})},null,8,["stroke","style"])],8,ge),e.createElementVNode("button",{class:"vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",onClick:()=>_(a,n,1)},[e.createVNode(x.default,{size:12,name:"arrowTop",stroke:t.value.thead.color,style:e.normalizeStyle({opacity:Q(n,a,1)})},null,8,["stroke","style"])],8,be)])):e.createCommentVNode("",!0)],4),t.value.userOptions.show&&n===y.value.length-1&&(e.unref(F)||e.unref(V))?(e.openBlock(),e.createBlock(D.UserOptions,{ref_for:!0,ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color,isPrinting:e.unref(M),isImaging:e.unref(W),uid:w.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:X.value,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,position:t.value.userOptions.position,onToggleFullscreen:se,onGeneratePdf:e.unref(L),onGenerateImage:e.unref(U),onGenerateCsv:j,style:e.normalizeStyle({visibility:e.unref(F)?e.unref(V)?"visible":"hidden":"visible"})},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:s,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:s,isFullscreen:r})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0)],6))),256))],4)),[[e.unref(D.vClickOutside),ie]])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.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,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",{dir:"auto",style:e.normalizeStyle({display:"flex",flexDirection:"row",alignItems:"center",gap:"6px",justifyContent:t.value.tbody.textAlign})},[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)],4)],12,ke),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.value,(s,r)=>(e.openBlock(),e.createElementBlock("td",{dir:"auto",role:"cell",ref_for:!0,ref_key:"TD",ref:z,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:b.value!==void 0&&r===b.value?t.value.tbody.selectedColor.useSerieColor?`${a.color.length>7?a.color.slice(0,-2):a.color}33`:t.value.tbody.selectedColor.fallback:""}),"data-cell":y.value[r],class:"vue-ui-data-table__tbody__td",onPointerenter:d=>{O.value=n,b.value=r}},e.toDisplayString([null,void 0].includes(a.values[r])?"-":e.unref(u.applyDataLabel)(t.value.formatter,Number(a.values[r]),e.unref(u.dataLabel)({p:t.value.prefix,v:Number(a.values[r]),s:t.value.suffix,r:t.value.roundingValues}),{datapoint:a,seriesIndex:n,datapointIndex:r})),45,he))),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(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,Se)):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(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,Ce)):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(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,_e)):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.createVNode(de.default,{onHoverIndex:({index:s})=>ue({dataIndex:s,serieIndex:n}),"height-ratio":t.value.sparkline.dimensions.heightRatio,"forced-padding":30,dataset:a.sparklineDataset,showInfo:!1,selectedIndex:b.value,config:{type:t.value.sparkline.type,style:{backgroundColor:"transparent",animation:{show:t.value.sparkline.animation.show&&!e.unref(M)&&!e.unref(W),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","height-ratio","dataset","selectedIndex","config"])],12,xe)):e.createCommentVNode("",!0)],6))),256))])],4)],32),l.$slots.source?(e.openBlock(),e.createElementBlock("div",we,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],42,pe))}},ze=ve._export_sfc(Ne,[["__scopeId","data-v-2264986d"]]);exports.default=ze;