vue-data-ui 2.9.2 → 2.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-KvKZ2SBJ.cjs → Arrow-CgYR3FXj.cjs} +1 -1
- package/dist/{Arrow-DIEvl571.js → Arrow-CyxG4Ftp.js} +1 -1
- package/dist/{BaseIcon-BH4bJe82.js → BaseIcon-CnzdK8aV.js} +1 -1
- package/dist/{BaseIcon-C6L3qbQ8.cjs → BaseIcon-DKFlmXEr.cjs} +1 -1
- package/dist/{ColorPicker-Dnjy6olA.js → ColorPicker-CYa3DFQB.js} +3 -3
- package/dist/{ColorPicker-BmVm6Lqe.cjs → ColorPicker-PNrzRxPw.cjs} +1 -1
- package/dist/{DataTable-Cz1SDtvT.cjs → DataTable-CW5aC-bf.cjs} +1 -1
- package/dist/{DataTable-CaUgku7o.js → DataTable-aPT7Gaka.js} +2 -2
- package/dist/{Legend-Bl_MrORk.cjs → Legend-CUqaARo5.cjs} +1 -1
- package/dist/{Legend-BxZxsJCp.js → Legend-Cfm0ctX6.js} +2 -2
- package/dist/{PackageVersion-BEE_4baV.js → PackageVersion-BEjIamIO.js} +1 -1
- package/dist/{PackageVersion-BrUdYdIC.cjs → PackageVersion-DDIH1bP5.cjs} +1 -1
- package/dist/{PenAndPaper-DyGcaflS.cjs → PenAndPaper-B8Lcd-xn.cjs} +1 -1
- package/dist/{PenAndPaper-B3WdOAcZ.js → PenAndPaper-hBDvj9b2.js} +3 -3
- package/dist/{Shape-DuVb3Mev.cjs → Shape-Ca8AZL7o.cjs} +1 -1
- package/dist/{Shape-Hrc-BQkc.js → Shape-WIhUvB3A.js} +1 -1
- package/dist/{Slicer-2ZyRAred.js → Slicer-YYOuyiYz.js} +2 -2
- package/dist/{Slicer-DVYmI2V1.cjs → Slicer-yLatG2Q8.cjs} +1 -1
- package/dist/{Title-BGh0hWb2.cjs → Title-D7uuc4dY.cjs} +1 -1
- package/dist/{Title-CGY0WlAI.js → Title-DBZSWCMO.js} +1 -1
- package/dist/{Tooltip-DckFFIYj.cjs → Tooltip-D--0gUVq.cjs} +1 -1
- package/dist/{Tooltip-BfEhZz9k.js → Tooltip-DokmjO-n.js} +1 -1
- package/dist/{dom-to-png-BgJJyI6M.js → dom-to-png-DsYwe1no.js} +1 -1
- package/dist/{dom-to-png-DnnnXKpR.cjs → dom-to-png-J1vxOmp_.cjs} +1 -1
- package/dist/{img-DkpJ0ciT.js → img-COrXIjCE.js} +1 -1
- package/dist/{img-DT7UDEPk.cjs → img-CU6TyX57.cjs} +1 -1
- package/dist/{index-9ZicrZWM.js → index-Ldu7K4PE.js} +47 -40
- package/dist/index-SCeiWj92.cjs +9 -0
- package/dist/{pdf-zqw8E-me.js → pdf-B9y2xWfS.js} +18 -18
- package/dist/pdf-BujZw1ZQ.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-BS9eJthK.cjs → useNestedProp-BV2kijyF.cjs} +1 -1
- package/dist/{useNestedProp-s1XZrtPS.js → useNestedProp-WCQEv2hV.js} +1 -1
- package/dist/{usePrinter-D7IXLE53.js → usePrinter-Bca_ZkY4.js} +3 -3
- package/dist/{usePrinter-vFXYgZiT.cjs → usePrinter-CWjBWUyP.cjs} +1 -1
- package/dist/{vue-data-ui-gEqI-hOT.js → vue-data-ui-BQay3z7m.js} +61 -61
- package/dist/{vue-data-ui-CNieT2ov.cjs → vue-data-ui-BmmN2NNv.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +18 -18
- package/dist/{vue-ui-3d-bar-DX5baNUz.cjs → vue-ui-3d-bar-BRTXPLII.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-Sbk5MT1S.js → vue-ui-3d-bar-CB7Pf9zo.js} +9 -9
- package/dist/{vue-ui-accordion-DIMalTE4.cjs → vue-ui-accordion-BL41vY_P.cjs} +1 -1
- package/dist/{vue-ui-accordion-62KnRfCb.js → vue-ui-accordion-BeqSE4u4.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DfuEC7WE.cjs → vue-ui-age-pyramid-Cyryx6dt.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BkhVyOTM.js → vue-ui-age-pyramid-DXOH1De2.js} +10 -10
- package/dist/vue-ui-annotator-47R4n6BM.cjs +371 -0
- package/dist/{vue-ui-annotator-CrwbL3rn.js → vue-ui-annotator-pqbJ1XeI.js} +43 -43
- package/dist/{vue-ui-bullet-BVr_zBo7.js → vue-ui-bullet-C4nINrVz.js} +8 -8
- package/dist/{vue-ui-bullet-TmXeLFPZ.cjs → vue-ui-bullet-CrWSjpKP.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BArypZ1A.js → vue-ui-candlestick-B7BBpXBZ.js} +11 -11
- package/dist/{vue-ui-candlestick-BFJ8I4sb.cjs → vue-ui-candlestick-CwCEV4Dk.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-B1i5b5xU.cjs → vue-ui-carousel-table-8pfD4UOc.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CqWp06Xz.js → vue-ui-carousel-table-Dmcbfq6Q.js} +4 -4
- package/dist/{vue-ui-chestnut-B8oiuRgc.cjs → vue-ui-chestnut-VcW4bYRK.cjs} +1 -1
- package/dist/{vue-ui-chestnut-EHo3sSMv.js → vue-ui-chestnut-nOXmtueI.js} +8 -8
- package/dist/{vue-ui-circle-pack-kx10AVM0.js → vue-ui-circle-pack-Dbqw_xRR.js} +9 -9
- package/dist/{vue-ui-circle-pack-BGLhSNyo.cjs → vue-ui-circle-pack-XI4kOOSC.cjs} +1 -1
- package/dist/{vue-ui-cursor-C8qofYJh.js → vue-ui-cursor-BXXcSCXO.js} +2 -2
- package/dist/{vue-ui-cursor-H77Z-m2e.cjs → vue-ui-cursor-DOZ1d1Gv.cjs} +1 -1
- package/dist/{vue-ui-dashboard-4YFqFygh.cjs → vue-ui-dashboard-CDWd7y-K.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Bn2slDQx.js → vue-ui-dashboard-Dj5UeEUe.js} +62 -62
- package/dist/{vue-ui-digits-DbSV0D-j.cjs → vue-ui-digits-CMBdp5dX.cjs} +1 -1
- package/dist/{vue-ui-digits-Cv__rzXF.js → vue-ui-digits-DOX9plTt.js} +2 -2
- package/dist/{vue-ui-donut-Bno5POxU.cjs → vue-ui-donut-DCjz_RJx.cjs} +1 -1
- package/dist/{vue-ui-donut-D_CLR29p.js → vue-ui-donut-V6slQS8W.js} +28 -28
- package/dist/{vue-ui-donut-evolution-BgNwQ1J8.js → vue-ui-donut-evolution-BHBEHaBz.js} +40 -40
- package/dist/{vue-ui-donut-evolution-Dg6laY3D.cjs → vue-ui-donut-evolution-DJQiBc2K.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C5Z8rSTk.js → vue-ui-dumbbell-c6ZUS2gn.js} +10 -10
- package/dist/{vue-ui-dumbbell-DWQl4sxh.cjs → vue-ui-dumbbell-qP17lDtS.cjs} +1 -1
- package/dist/{vue-ui-flow-DKS1oZHc.js → vue-ui-flow-BftL5SCF.js} +36 -36
- package/dist/{vue-ui-flow-D0t3MSCU.cjs → vue-ui-flow-NFVQYGwe.cjs} +1 -1
- package/dist/{vue-ui-funnel-CqhhBoYG.cjs → vue-ui-funnel-Bm78Fuif.cjs} +1 -1
- package/dist/{vue-ui-funnel-r57KM4Wi.js → vue-ui-funnel-BxnyO-cX.js} +9 -9
- package/dist/{vue-ui-galaxy-CLIAdqkr.js → vue-ui-galaxy-ErKBaW-Q.js} +35 -35
- package/dist/{vue-ui-galaxy-BeQSEKLG.cjs → vue-ui-galaxy-PqPqi1rL.cjs} +1 -1
- package/dist/{vue-ui-gauge-CcTneeaQ.cjs → vue-ui-gauge-5uNTa5st.cjs} +1 -1
- package/dist/{vue-ui-gauge-BQ4S55FH.js → vue-ui-gauge-CC4gRmiU.js} +19 -19
- package/dist/{vue-ui-gizmo-B_rVeweF.cjs → vue-ui-gizmo-Cke9n_3I.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DACB7BcV.js → vue-ui-gizmo-DeeQXNxB.js} +3 -3
- package/dist/{vue-ui-heatmap-DBtRfAWr.cjs → vue-ui-heatmap-DIkfrZTI.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DNvbR504.js → vue-ui-heatmap-DVmGDa29.js} +33 -33
- package/dist/{vue-ui-history-plot-MfnR_Gg0.js → vue-ui-history-plot-BdH6ipQR.js} +11 -11
- package/dist/{vue-ui-history-plot-B1zXFmOc.cjs → vue-ui-history-plot-Bg9LcJ-j.cjs} +1 -1
- package/dist/{vue-ui-kpi-DDMCa5qe.js → vue-ui-kpi-DZm8eIsy.js} +3 -3
- package/dist/{vue-ui-kpi-Dm71j1ZP.cjs → vue-ui-kpi-O8tB2EAC.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CROjVz1w.cjs → vue-ui-mini-loader-B74fpNsK.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-mMxdW73Y.js → vue-ui-mini-loader-CF9PEaSJ.js} +2 -2
- package/dist/{vue-ui-molecule-BHUWRS5i.js → vue-ui-molecule-BzTuiwZn.js} +22 -22
- package/dist/{vue-ui-molecule-BulwtJre.cjs → vue-ui-molecule-CWTtY72k.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CUWTjV4S.js → vue-ui-mood-radar-Dc_RBdIt.js} +11 -11
- package/dist/{vue-ui-mood-radar-BhS9UcqE.cjs → vue-ui-mood-radar-DqpXi_vx.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Db_lFOB1.cjs → vue-ui-nested-donuts-C9aOv8cV.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BQk9K-uM.js → vue-ui-nested-donuts-DRMKAx-K.js} +11 -11
- package/dist/{vue-ui-onion-C38MS0We.cjs → vue-ui-onion-CQlidixa.cjs} +1 -1
- package/dist/{vue-ui-onion-CEP_SVGa.js → vue-ui-onion-DIp0iWEm.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DOER4ePV.cjs → vue-ui-parallel-coordinate-plot-BEJ7Hjd_.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DlIPqsBr.js → vue-ui-parallel-coordinate-plot-D2gzzyV6.js} +12 -12
- package/dist/{vue-ui-quadrant-BzA3R8WL.cjs → vue-ui-quadrant-BOaaj6gv.cjs} +1 -1
- package/dist/{vue-ui-quadrant-hEW2euTx.js → vue-ui-quadrant-DHRPPQzH.js} +40 -40
- package/dist/{vue-ui-quick-chart-D43_sxe7.js → vue-ui-quick-chart-Nf2FEMS_.js} +37 -37
- package/dist/{vue-ui-quick-chart-vCYn3Ycg.cjs → vue-ui-quick-chart-qDpGCH4Q.cjs} +1 -1
- package/dist/{vue-ui-radar-ea-S6hNo.js → vue-ui-radar-BhLZ-5X_.js} +12 -12
- package/dist/{vue-ui-radar-CrPGLRgF.cjs → vue-ui-radar-D9u86iM_.cjs} +1 -1
- package/dist/{vue-ui-rating-Cr7OYhms.js → vue-ui-rating-B1kvbIOJ.js} +10 -10
- package/dist/{vue-ui-rating-DQhxPqnC.cjs → vue-ui-rating-hXwiZ658.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BD63yYPk.js → vue-ui-relation-circle-DlegAoHJ.js} +7 -7
- package/dist/{vue-ui-relation-circle-Ci_zTDv6.cjs → vue-ui-relation-circle-DvAO3fkO.cjs} +1 -1
- package/dist/{vue-ui-rings-Dup7cJhU.js → vue-ui-rings-DTILCifX.js} +22 -22
- package/dist/{vue-ui-rings-o_5TelyF.cjs → vue-ui-rings-ZsNoADO7.cjs} +1 -1
- package/dist/{vue-ui-scatter-CpUvuCj4.js → vue-ui-scatter-CVn7AqGT.js} +44 -44
- package/dist/{vue-ui-scatter-D1p3fd_k.cjs → vue-ui-scatter-DS8YLaTC.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BjminQzl.js → vue-ui-skeleton-CLrl96Gp.js} +57 -57
- package/dist/{vue-ui-skeleton-BGykkjYQ.cjs → vue-ui-skeleton-D4hXCz3m.cjs} +1 -1
- package/dist/{vue-ui-smiley-BtpjYEEP.cjs → vue-ui-smiley-BKEs5-OT.cjs} +1 -1
- package/dist/{vue-ui-smiley-CFKscwS7.js → vue-ui-smiley-CoyijT0I.js} +2 -2
- package/dist/{vue-ui-spark-trend-CRcDMTzh.cjs → vue-ui-spark-trend-DTwDre2O.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-wAANMLZ4.js → vue-ui-spark-trend-JmorBpIp.js} +5 -5
- package/dist/{vue-ui-sparkbar-BTUT-uco.js → vue-ui-sparkbar-BcwjiTbk.js} +4 -4
- package/dist/{vue-ui-sparkbar-BVh9AOEX.cjs → vue-ui-sparkbar-CV3V99Ed.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-B_N07sh6.cjs → vue-ui-sparkgauge-BZyFxTJ1.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DXxoZfG0.js → vue-ui-sparkgauge-CCMnqCx0.js} +9 -9
- package/dist/{vue-ui-sparkhistogram-cSUQzQ6o.js → vue-ui-sparkhistogram-BxpQOwco.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CHbsbOtx.cjs → vue-ui-sparkhistogram-vlx7Cb26.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Cr5KANZ_.cjs → vue-ui-sparkline-BHjhZFcb.cjs} +1 -1
- package/dist/{vue-ui-sparkline-_wbJMVVr.js → vue-ui-sparkline-CkEtaWH1.js} +15 -15
- package/dist/{vue-ui-sparkstackbar-SRvQImaw.cjs → vue-ui-sparkstackbar-BKXkw6NY.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-D93-i-tg.js → vue-ui-sparkstackbar-Eip-31FE.js} +5 -5
- package/dist/{vue-ui-stackbar-CnZsiebh.js → vue-ui-stackbar-B6taUxpU.js} +13 -13
- package/dist/{vue-ui-stackbar-D3KicC2k.cjs → vue-ui-stackbar-CYZcA9l8.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Dz8doRxV.cjs → vue-ui-strip-plot-Cz75jy3H.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Dv-C246v.js → vue-ui-strip-plot-h63h6xVb.js} +13 -14
- package/dist/vue-ui-table-BfACPcxW.cjs +14 -0
- package/dist/vue-ui-table-DF8MfQ59.js +1482 -0
- package/dist/{vue-ui-table-heatmap-C8Vi0yvC.cjs → vue-ui-table-heatmap-CDgDaJqX.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CYuY_cv8.js → vue-ui-table-heatmap-mEcSMZHP.js} +4 -4
- package/dist/{vue-ui-table-sparkline-C4REu4fs.cjs → vue-ui-table-sparkline-Heo61EuM.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-B76wcNNt.js → vue-ui-table-sparkline-hJtU88Q0.js} +5 -5
- package/dist/{vue-ui-thermometer-DvNlCnAL.cjs → vue-ui-thermometer-BbzxbL6e.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DiZILoae.js → vue-ui-thermometer-b_eOMDGK.js} +7 -7
- package/dist/{vue-ui-timer-DxYKc_c7.js → vue-ui-timer-CuXuiuA_.js} +5 -5
- package/dist/{vue-ui-timer-DUN6vOs9.cjs → vue-ui-timer-bfXj2Xo1.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-D52pzq2N.js → vue-ui-tiremarks-BRcnMsCk.js} +7 -7
- package/dist/{vue-ui-tiremarks-BV7MTnlS.cjs → vue-ui-tiremarks-_io5f_yy.cjs} +1 -1
- package/dist/{vue-ui-treemap-gQhTSE_P.cjs → vue-ui-treemap-6-kgqJkN.cjs} +1 -1
- package/dist/{vue-ui-treemap-CNbw7CLO.js → vue-ui-treemap-B1udyPJO.js} +12 -12
- package/dist/{vue-ui-vertical-bar-ClJttiMf.cjs → vue-ui-vertical-bar-BBiuT_QA.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-B_nsQpZa.js → vue-ui-vertical-bar-DdxNhCdC.js} +12 -12
- package/dist/{vue-ui-waffle-CLfNk30s.js → vue-ui-waffle-Bkvw0dyy.js} +37 -37
- package/dist/{vue-ui-waffle-BYBctA3T.cjs → vue-ui-waffle-Dqy7BytZ.cjs} +1 -1
- package/dist/{vue-ui-wheel-4Yit1iRJ.js → vue-ui-wheel-B5M90GQn.js} +7 -7
- package/dist/{vue-ui-wheel-Bj6lxA5M.cjs → vue-ui-wheel-DM6r0w_a.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-D94M5Lsf.js → vue-ui-word-cloud-B1u5uWI-.js} +10 -10
- package/dist/{vue-ui-word-cloud-AZ1OJrxo.cjs → vue-ui-word-cloud-BeLBUUGY.cjs} +1 -1
- package/dist/{vue-ui-world-rkzHCxBG.js → vue-ui-world-CdCSnlhK.js} +12 -12
- package/dist/{vue-ui-world-BwcOIaHG.cjs → vue-ui-world-UyenY3MD.cjs} +2 -2
- package/dist/{vue-ui-xy-DJiY5DSr.cjs → vue-ui-xy-B-NzV2X6.cjs} +2 -2
- package/dist/{vue-ui-xy-DXgpQ8zr.js → vue-ui-xy-CFq6SBzu.js} +34 -35
- package/dist/{vue-ui-xy-canvas-CAfAcJWj.js → vue-ui-xy-canvas-CWsJDLOK.js} +12 -12
- package/dist/{vue-ui-xy-canvas-DsuvSNM3.cjs → vue-ui-xy-canvas-Df-vG-MU.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-DjDcQ8pe.cjs +0 -9
- package/dist/pdf-DuohwkFu.cjs +0 -1
- package/dist/vue-ui-annotator-BGWZZUN7.cjs +0 -371
- package/dist/vue-ui-table-Dkoj_poY.js +0 -1466
- package/dist/vue-ui-table-iE1t-zP9.cjs +0 -14
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("./index-SCeiWj92.cjs"),S=require("./vue-ui-xy-B-NzV2X6.cjs"),w=require("./vue-ui-donut-DCjz_RJx.cjs"),e=require("vue"),_=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},components:{VueUiXy:S.default,VueUiDonut:w.default},data(){return{uid:`vue-ui-table-${Math.random()}`,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((n,r)=>({...n,absoluteIndex:r})),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,dragOffsetX:0,dragOffsetY:0,modalWidth:400,modalHeight:200,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((n,r)=>n-r),palette:N.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((n,r)=>({...n,absoluteIndex:r})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(n=>({average:Object.hasOwn(n,"average")?n.average:!1,decimals:Object.hasOwn(n,"decimals")?n.decimals:0,isMultiselect:Object.hasOwn(n,"isMultiselect")?n.isMultiselect:!1,isPercentage:Object.hasOwn(n,"isPercentage")?n.isPercentage:!1,isSearch:Object.hasOwn(n,"isSearch")?n.isSearch:!1,isSort:Object.hasOwn(n,"isSort")?n.isSort:!1,name:n.name,percentageTo:Object.hasOwn(n,"percentageTo")?n.percentageTo:void 0,prefix:Object.hasOwn(n,"prefix")?n.prefix:"",rangeFilter:Object.hasOwn(n,"rangeFilter")?n.rangeFilter:!1,suffix:Object.hasOwn(n,"suffix")?n.suffix:"",sum:Object.hasOwn(n,"sum")?n.sum:!1,type:n.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
|
|
2
|
+
Provide an array of objects of type:
|
|
3
|
+
{
|
|
4
|
+
name: string;
|
|
5
|
+
type: string; ('text' | 'numeric' | 'date')
|
|
6
|
+
average: boolean;
|
|
7
|
+
decimals: number | undefined;
|
|
8
|
+
sum: boolean;
|
|
9
|
+
isSort:boolean;
|
|
10
|
+
isSearch: boolean;
|
|
11
|
+
isMultiselect: boolean;
|
|
12
|
+
isPercentage: boolean;
|
|
13
|
+
percentageTo: string; (or '')
|
|
14
|
+
}`);if(this.dataset.body.length===0)throw new Error("vue-ui-table error: missing body data");this.isLoading=!0,this.promiseWithAsyncFunction(this.prepareBodyCopy,()=>{this.$forceUpdate(),this.isLoading=!1}),document.addEventListener("keydown",o=>{const n=document.activeElement;(n&&Array.from(n.classList).includes("td-focusable")&&o.key.includes("Arrow")||o.code==="Space")&&o.preventDefault()})},watch:{showChart:function(o){o&&this.$nextTick(()=>{this.closeDragElement()})},dataset:{handler(o){this.isLoading=!0,this.bodyCopy=JSON.parse(JSON.stringify(o.body)).map((n,r)=>({...n,absoluteIndex:r})),this.tableBody=JSON.parse(JSON.stringify(o.body)).map((n,r)=>({...n,absoluteIndex:r})),this.tableHead=JSON.parse(JSON.stringify(o.header)).map(n=>({average:Object.hasOwn(n,"average")?n.average:!1,decimals:Object.hasOwn(n,"decimals")?n.decimals:0,isMultiselect:Object.hasOwn(n,"isMultiselect")?n.isMultiselect:!1,isPercentage:Object.hasOwn(n,"isPercentage")?n.isPercentage:!1,isSearch:Object.hasOwn(n,"isSearch")?n.isSearch:!1,isSort:Object.hasOwn(n,"isSort")?n.isSort:!1,name:n.name,percentageTo:Object.hasOwn(n,"percentageTo")?n.percentageTo:void 0,prefix:Object.hasOwn(n,"prefix")?n.prefix:"",rangeFilter:Object.hasOwn(n,"rangeFilter")?n.rangeFilter:!1,suffix:Object.hasOwn(n,"suffix")?n.suffix:"",sum:Object.hasOwn(n,"sum")?n.sum:!1,type:n.type})),this.currentSelectionSpan={col:void 0,rows:[]},this.selectedColumn=void 0,this.itemsPerPage=this.config.rowsPerPage?this.config.rowsPerPage:25,this.percentages={},this.dates={},this.filteredDatesIndexes={},this.hasNaN={},this.immutableRangeFilters={},this.rangeFilters={},this.multiselects={},this.searches={},this.sorts={},this.showChart=!1,this.currentDonut=void 0,this.selectedDonutCategory=void 0,this.selectedPlot=void 0,this.showDonutOptions=!1,this.currentSelectionSpan.col=void 0,this.currentSelectionSpan.rows=[],this.promiseWithAsyncFunction(this.prepareBodyCopy,()=>{this.$forceUpdate(),this.updateCurrentPage(),this.isLoading=!1})},deep:!0,immediate:!1}},computed:{availableDonutCategories(){return Object.keys(this.multiselects).map(o=>({index:o,name:this.dataset.header[o].name,options:this.multiselects[o]}))},canChart(){return this.FINAL_CONFIG.useChart&&this.currentSelectionSpan.rows.length>1},chartData(){if(!this.canChart)return[];const o=316,n=512,r=this.currentSelectionSpan.rows.length,i=n/r,s=Math.max(...this.currentSelectionSpan.rows.map(p=>p.value)),t=Math.min(...this.currentSelectionSpan.rows.map(p=>p.value)),u=this.dataset.header[this.currentSelectionSpan.col].isPercentage&&this.dataset.header[this.currentSelectionSpan.col].percentageTo,h=this.chart.type===this.constants.DONUT&&this.selectedDonutCategory&&this.selectedDonutCategory.name,a=this.dataset.header[this.currentSelectionSpan.col].name+(u?` / ${this.dataset.header[this.percentages[this.currentSelectionSpan.col].referenceIndex].name}`:"")+(h?` ${this.FINAL_CONFIG.translations.by} ${this.selectedDonutCategory.name}`:""),l=this.dataset.header[this.currentSelectionSpan.col].prefix,c=this.dataset.header[this.currentSelectionSpan.col].suffix,d=[{name:a,series:this.currentSelectionSpan.rows.map(p=>p.value),type:"line",useProgression:!0,smooth:this.FINAL_CONFIG.style.chart.layout.line.smooth,color:this.FINAL_CONFIG.style.chart.layout.line.stroke,useArea:this.FINAL_CONFIG.style.chart.layout.line.useArea}],y=[{name:a,series:this.currentSelectionSpan.rows.map(p=>p.value),type:"bar",useProgression:!0,color:this.FINAL_CONFIG.style.chart.layout.bar.fill}],b=this.FINAL_CONFIG.style.chart.modal.backgroundColor,g=this.adaptColorToBackground(b),m=this.dataset.header[this.currentSelectionSpan.col].decimals,F={chart:{backgroundColor:b,color:g,labels:{fontSize:18,prefix:l,suffix:c},grid:{stroke:N.lightenHexColor(g,.5),labels:{color:g,xAxisLabels:{show:!1}}},highlighter:{color:g},legend:{color:g},padding:{left:72,bottom:24,top:36},title:{text:a,color:g,fontSize:18},tooltip:{showTimeLabel:!1,backgroundOpacity:30,color:g,backgroundColor:b,showPercentage:!1,roundingValue:m},userOptions:{position:"left",buttons:{pdf:!1,csv:!1,table:!1,annotator:!1}},zoom:{show:!1}},line:{labels:{show:!0,color:g,rounding:m},dot:{useSerieColor:!1,fill:this.FINAL_CONFIG.style.chart.layout.line.plot.fill,strokeWidth:this.FINAL_CONFIG.style.chart.layout.line.plot.strokeWidth}},bar:{useGradient:!1,border:{useSerieColor:!1,stroke:this.FINAL_CONFIG.style.chart.layout.bar.stroke,strokeWidth:this.FINAL_CONFIG.style.chart.layout.bar.strokeWidth},labels:{show:!0,color:g,rounding:m}}},f=t>=0?0:Math.abs(t),I=s+f,C=this.dataset.header[this.currentSelectionSpan.col].isPercentage,k=this.currentSelectionSpan.rows.map((p,v)=>({x:i*v+i/2,y:(1-(p.value+f)/I)*o,value:C?p.value*100:p.value,suffix:C?"%":this.dataset.header[this.currentSelectionSpan.col].suffix?this.dataset.header[this.currentSelectionSpan.col].suffix:"",prefix:this.dataset.header[this.currentSelectionSpan.col].prefix?this.dataset.header[this.currentSelectionSpan.col].prefix:"",index:p.index,absoluteValue:C?Math.abs(p.value)*100:Math.abs(p.value)}));return{donutConfig:{userOptions:{position:"left",buttons:{pdf:!1,csv:!1,table:!1,annotator:!1}},style:{chart:{backgroundColor:b,color:g,layout:{curvedMarkers:!0,donut:{strokeWidth:64},labels:{dataLabels:{suffix:C?"%":"",prefix:l},value:{rounding:m},percentage:{color:g,rounding:m},name:{color:g},hollow:{average:{color:g,text:this.FINAL_CONFIG.translations.average,value:{color:g}},total:{color:g,offsetY:-12,text:this.FINAL_CONFIG.translations.total,value:{color:g,offsetY:-12}}}}},legend:{backgroundColor:b,color:g,roundingValue:m,roundingPercentage:m},padding:{left:12,right:12},title:{text:a,color:g,fontSize:18},tooltip:{backgroundOpacity:30,color:g,backgroundColor:b,roundingValue:m,roundingValue:m}}}},xyConfig:F,xyDatasetLine:d,xyDatasetBar:y,progression:k.length>=2?this.calcLinearProgression(k):!1}},hasNumericTypes(){return this.dataset.header.map(o=>o.type).includes(this.constants.NUMERIC)},icons(){return{arrowSort:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 9l4 -4l4 4m-4 -4v14" /><path d="M21 15l-4 4l-4 -4m4 4v-14" /></svg>`,bar:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M4 20l14 0" /></svg>`,chart:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 19l16 0" /><path d="M4 15l4 -6l4 2l4 -5l4 4" /></svg>`,chevronDown:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 9l6 6l6 -6" /></svg>`,chevronLeft:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*1.6}" height="${this.iconSize*1.6}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 6l-6 6l6 6" /></svg>`,chevronRight:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*1.6}" height="${this.iconSize*1.6}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 6l6 6l-6 6" /></svg>`,donut:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*.8}" height="${this.iconSize*.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 3v5m4 4h5" /><path d="M8.929 14.582l-3.429 2.918" /><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /></svg>`,export:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12.5 21h-7.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7.5" /><path d="M3 10h18" /><path d="M10 3v18" /><path d="M16 19h6" /><path d="M19 16l3 3l-3 3" /></svg>`,fileDownload:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M12 17v-6" /><path d="M9.5 14.5l2.5 2.5l2.5 -2.5" /></svg>`,filter:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" /></svg>`,move:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 9l3 3l-3 3" /><path d="M15 12h6" /><path d="M6 9l-3 3l3 3" /><path d="M3 12h6" /><path d="M9 18l3 3l3 -3" /><path d="M12 15v6" /><path d="M15 6l-3 -3l-3 3" /><path d="M12 3v6" /></svg>`,sort09:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 3a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 16v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,sort90:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 14a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 5v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,sortAZ:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 10v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 21h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,sortZA:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 21v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 10h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,sum:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>`,table:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" fill="white" d="M 10 2, 21 2, 21 21, 10 21Z"/><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z" /><path d="M3 10h18" /><path d="M10 3v18" /></svg>`,warning:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*.8}" height="${this.iconSize*.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg>`,grip:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /></svg>`}},pages(){const o=[];if(this.bodyCopy.length)for(let n=0;n<this.bodyCopy.length;n+=this.itemsPerPage)o.push(this.bodyCopy.slice(n,n+this.itemsPerPage));return o},rows(){return this.bodyCopy.map(o=>o.td)},selectedCellsCalculations(){return{sumPercentage:Number((this.currentSelectionSpan.rows.map(o=>o.value).reduce((o,n)=>o+n,0)*100).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),sumRegular:Number(this.currentSelectionSpan.rows.map(o=>o.value).reduce((o,n)=>o+n,0).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),averagePercentage:Number((this.currentSelectionSpan.rows.map(o=>o.value).reduce((o,n)=>o+n,0)/this.currentSelectionSpan.rows.length*100).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),averageRegular:Number((this.currentSelectionSpan.rows.map(o=>o.value).reduce((o,n)=>o+n,0)/this.currentSelectionSpan.rows.length).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString()}},FINAL_CONFIG(){const{vue_ui_table:o}=N.useConfig();if(!Object.keys(this.config||{}).length)return o;const n=this.treeShake({defaultConfig:o,userConfig:this.config});return this.convertConfigColors(n)},visibleRows(){return this.pages[this.currentPage]}},methods:{adaptColorToBackground:N.adaptColorToBackground,convertColorToHex:N.convertColorToHex,convertConfigColors:N.convertConfigColors,createCsvContent:N.createCsvContent,darkenHexColor:N.darkenHexColor,dataLabel:N.dataLabel,downloadCsv:N.downloadCsv,lightenHexColor:N.lightenHexColor,treeShake:N.treeShake,applyDonutOption(){const o=this.selectedDonutCategory.options.map((n,r)=>({name:n,color:this.palette[r]||this.palette[r%this.palette.length],values:[this.visibleRows.filter((i,s)=>i.td[this.selectedDonutCategory.index]===n&&this.currentSelectionSpan.rows.map(t=>t.index).includes(s)).map(i=>i.td[this.currentSelectionSpan.col]).reduce((i,s)=>Math.abs(i)+Math.abs(s),0)],absoluteValue:this.visibleRows.filter((i,s)=>i.td[this.selectedDonutCategory.index]===n&&this.currentSelectionSpan.rows.map(t=>t.index).includes(s)).map(i=>i.td[this.currentSelectionSpan.col]).reduce((i,s)=>i+s,0)})).sort((n,r)=>r.value-n.value);this.currentDonut=o,this.$nextTick(()=>{this.chart.type=this.constants.DONUT,this.showDonutOptions=!1})},calcRectY(o,n){return o>=0?n:this.chartData.zero},canResetColumn(o,n){return!this.hasNaN[o]&&(n.isSort||n.isSearch||n.isMultiselect||n.rangeFilter)&&![this.constants.DATE].includes(n.type)},createXls(o="all"){const n=this.dataset.header.map(t=>t.name),r=o==="all"?this.bodyCopy.map(t=>t.td):this.visibleRows.map(t=>t.td),i=[n].concat(r),s=this.createCsvContent(i);this.downloadCsv({csvContent:s,title:"vue-ui-table"})},calcLinearProgression:N.calcLinearProgression,closeAllDropdowns(){const o=document.getElementsByClassName("th-dropdown");o.length&&Array.from(o).forEach(n=>{n.dataset.isOpen=!1})},debounce(o,n){let r;clearTimeout(r),r=setTimeout(o,n)},filterBody(){this.bodyCopy=this.tableBody.filter(o=>{for(const n in this.searches)if(!o.td[n].toUpperCase().includes(this.searches[n].toUpperCase()))return!1;for(const n in this.multiselects)if(!this.multiselects[n].some(i=>i===o.td[n]))return!1;for(const n in this.dates){const r=new Date(o.td[n]),i=new Date(this.dates[n].from),s=new Date(this.dates[n].to);if(r<i||r>s)return!1}return!0}),this.sortBody()},getAverage(o){return this.rows.map(n=>n[o]).map(n=>isNaN(Number(n))?0:n).reduce((n,r)=>n+r,0)/this.bodyCopy.length},getDatesRange(o){const n=this.dataset.body.map(y=>new Date(y.td[o])),r=new Date(Math.min(...n)),i=new Date(Math.max(...n)),s=r.getFullYear(),t=i.getFullYear(),u=String(r.getMonth()+1).padStart(2,"0"),h=String(i.getMonth()+1).padStart(2,"0"),a=String(r.getDate()).padStart(2,"0"),l=String(i.getDate()).padStart(2,"0"),c=`${s}-${u}-${a}`,d=`${t}-${h}-${l}`;return{from:c,to:d}},getDonutLegendValue(o){return Number((o*(this.dataset.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString()},getDropdownOptions(o){return[...new Set(this.dataset.body.map(n=>n.td[o]))]},getSum(o){return this.rows.map(n=>n[o]).map(n=>isNaN(Number(n))?0:n).reduce((n,r)=>n+r,0)},includesNaN(o){return o.includes(NaN)},isDropdownOptionSelected(o,n){return this.multiselects[n]?this.multiselects[n].includes(o):!0},isNumeric(o){return!isNaN(Number(String(o).replaceAll("%","")))},isResetDisabled(o,n){const r=n.isSort,i=n.isSearch,s=n.isMultiselect&&this.multiselects[o],t=n.rangeFilter,u=h=>{if(t&&this.rangeFilters[h])return Math.round(this.rangeFilters[h].min)===this.immutableRangeFilters[h].min&&Math.round(this.rangeFilters[h].max)===this.immutableRangeFilters[h].max};if(r&&i&&s&&t)return["",void 0].includes(this.searches[o])&&[void 0].includes(this.sorts[o])&&this.multiselects[o].length===this.getDropdownOptions(o).length&&u(o);if(r&&i&&s)return["",void 0].includes(this.searches[o])&&[void 0].includes(this.sorts[o])&&this.multiselects[o].length===this.getDropdownOptions(o).length;if(r&&i&&t)return["",void 0].includes(this.searches[o])&&[void 0].includes(this.sorts[o])&&u(o);if(r&&i)return["",void 0].includes(this.searches[o])&&[void 0].includes(this.sorts[o]);if(r&&s&&t)return[void 0].includes(this.sorts[o])&&this.multiselects[o].length===this.getDropdownOptions(o).length&&u(o);if(r&&s)return[void 0].includes(this.sorts[o])&&this.multiselects[o].length===this.getDropdownOptions(o).length;if(i&&s&&t)return["",void 0].includes(this.searches[o])&&this.multiselects[o].length===this.getDropdownOptions(o).length&&u(o);if(i&&s)return["",void 0].includes(this.searches[o])&&this.multiselects[o].length===this.getDropdownOptions(o).length;if(i&&t)return["",void 0].includes(this.searches[o])&&u(o);if(i)return["",void 0].includes(this.searches[o]);if(r&&t)return[void 0].includes(this.sorts[o])&&u(o);if(r)return[void 0].includes(this.sorts[o]);if(s&&t)return this.multiselects[o].length===this.getDropdownOptions(o).length&&u(o);if(s)return this.multiselects[o].length===this.getDropdownOptions(o).length},navigate(o){this.resetSelection(),o==="next"&&this.currentPage<this.pages.length?this.currentPage+=1:o==="previous"&&this.currentPage>=1?this.currentPage-=1:this.currentPage=o-1,this.$refs.tableWrapper.scrollTo({top:0,left:0,behavior:"smooth"})},navigateCell(o){o.preventDefault();const n=o.keyCode,r=38,i=40,s=37,t=39;if(![r,i,s,t].includes(n))return;const u=o.target.id,h=/cell_(\d+)_(\d+)_vue-ui-table-(\d+)/,a=u.match(h),l=parseInt(a[1]),c=parseInt(a[2]),d=document.getElementById(`cell_${l}_${c+1}_${this.uid}`),y=document.getElementById(`cell_${l}_${c-1}_${this.uid}`),b=document.getElementById(`cell_${l+1}_${c}_${this.uid}`),g=document.getElementById(`cell_${l-1}_${c}_${this.uid}`);let m;switch(!0){case n===t:m=d;break;case n===s:m=y;break;case n===r:m=g;break;case n===i:m=b;break;default:return}m&&(m.focus(),m.scrollIntoView({behavior:"smooth",block:"center"}))},openDonutOptions(){this.selectedDonutCategory=this.availableDonutCategories[0],this.showDonutOptions=!0},placeLabelOnTopOrBottom({previousPlot:o,currentPlot:n,nextPlot:r}){const i=n.y-38,s=n.y+16;return o&&r?o.value<n.value&&r.value<n.value?i:o.value>n.value&&r.value>n.value?s:(o.value>n.value&&r.value<n.value||o.value<n.value&&r.value>n.value,i):o&&!r?o.value>n.value?s:i:!o&&r&&r.value>n.value?s:i},async prepareBodyCopy(){return new Promise(o=>{const n=[];this.tableHead.forEach((r,i)=>{if(r.isSearch&&Object.assign(this.searches,{[i]:""}),r.isMultiselect&&Object.assign(this.multiselects,{[i]:this.getDropdownOptions(i)}),r.type===this.constants.DATE&&(Object.assign(this.dates,{[i]:this.getDatesRange(i)}),Object.assign(this.filteredDatesIndexes,{[i]:!1})),(r.isPercentage||r.percentageTo)&&Object.assign(this.percentages,{[i]:{reference:r.percentageTo,referenceIndex:this.dataset.header.map(s=>s.name).indexOf(r.percentageTo)}}),r.rangeFilter&&(Object.assign(this.rangeFilters,{[i]:{min:Math.round(Math.min(...this.dataset.body.map(s=>s.td).map(s=>s[i]))),max:Math.round(Math.max(...this.dataset.body.map(s=>s.td).map(s=>s[i])))}}),Object.assign(this.immutableRangeFilters,{[i]:{min:Math.round(Math.min(...this.dataset.body.map(s=>s.td).map(s=>s[i]))),max:Math.round(Math.max(...this.dataset.body.map(s=>s.td).map(s=>s[i])))}})),r.isPercentage){const s=this.dataset.header.map(u=>u.name).indexOf(r.percentageTo),t=this.dataset.body.map(u=>u.td[s]).reduce((u,h)=>u+h,0);n.push([i,s,t])}r.type===this.constants.NUMERIC&&!r.isPercentage&&Object.assign(this.hasNaN,{[i]:this.includesNaN(this.dataset.body.map(s=>Number(s.td[i])))})}),this.bodyCopy.forEach((r,i)=>{n.map(s=>{const[t,u,h]=s;r.td[t]=r.td[u]/h}),r.td.forEach((s,t)=>{this.dataset.header[t].type===this.constants.TEXT&&this.dataset.header[t].isSearch&&(r[t]=this.stringToNumber(s)),this.dataset.header[t].type===this.constants.DATE&&(r[t]=new Date(s).getTime()),this.dataset.header[t].type===this.constants.NUMERIC&&(r[t]=isNaN(Number(s))?t:s),this.tableBody[i][t]=r[t]})}),o(!0)})},promiseWithAsyncFunction(o,n){return new Promise((r,i)=>{o().then(s=>{try{const t=n(s);r(t)}catch(t){i(t)}}).catch(s=>{i(s)})})},resetDates(o){this.dates[o]={from:this.getDatesRange(o).from,to:this.getDatesRange(o).to},this.filteredDatesIndexes[o]=!1,this.$forceUpdate(),this.filterBody()},resetFilter(o,n,r){const i=r.currentTarget;clearTimeout(this.buttonTimeout),i.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{i.classList.remove("clicked")},200),this.currentFilter=void 0,n.rangeFilter&&(this.rangeFilters[o].min=this.immutableRangeFilters[o].min,this.rangeFilters[o].max=this.immutableRangeFilters[o].max),n.isMultiselect?(this.multiselects[o]=this.getDropdownOptions(o),n.type===this.constants.TEXT&&(this.sorts[o]=void 0),n.isSearch&&(this.searches[o]="")):n.type===this.constants.NUMERIC?this.sorts[o]=void 0:n.type===this.constants.TEXT?(this.sorts[o]=void 0,this.searches[o]=""):n.type===this.constants.DATE&&(this.sorts[o]=void 0),this.filterBody()},resetSelection(){const o=document.getElementsByClassName(`tr_${this.uid}`);Array.from(o).forEach(n=>{Array.from(n.getElementsByTagName("td")).forEach(r=>{r.dataset.row==="even"?(r.style.background=this.FINAL_CONFIG.style.rows.even.backgroundColor,r.style.color=this.FINAL_CONFIG.style.rows.even.color):(r.style.background=this.FINAL_CONFIG.style.rows.odd.backgroundColor,r.style.color=this.FINAL_CONFIG.style.rows.odd.color)})}),Array.from(o).forEach(n=>n.dataset.selected="false"),this.currentPage>this.pages.length-1&&(this.currentPage=this.pages.length-1),this.showChart=!1,this.currentDonut=void 0,this.selectedColumn=void 0,this.chart.type=this.constants.BAR,this.currentSelectionSpan={col:void 0,rows:[]},this.clientX=100,this.clientY=100},selectColumn(o){this.currentSelectionSpan.col!==o?(this.visibleRows.forEach((n,r)=>{this.selectTd({td:n.td[o],rowIndex:r,colIndex:o,headerType:this.constants.NUMERIC,event:{currentTarget:document.getElementById(`cell_${r}_${o}_${this.uid}`)}})}),this.selectedColumn=o):(this.selectedColumn=void 0,this.resetSelection())},selectDropdownOption(o,n){this.multiselects[n].includes(o)?this.multiselects[n]=this.multiselects[n].filter(r=>r!==o):this.multiselects[n].push(o),this.$forceUpdate(),this.filterBody()},selectTd({td:o,rowIndex:n,colIndex:r,headerType:i,event:s}){if(i!==this.constants.NUMERIC||isNaN(Number(o))){this.resetSelection();return}this.currentSelectionSpan.col!==r&&this.resetSelection();const t=s.currentTarget.parentNode;this.currentSelectionSpan.col=r,this.currentSelectionSpan.rows.map(u=>u.index).includes(n)?(t.dataset.selected="false",this.currentSelectionSpan.rows=this.currentSelectionSpan.rows.filter(u=>u.index!==n),s.currentTarget.classList.remove(this.cssClass.CELL),Array.from(t.children).forEach((u,h)=>{u.dataset.row==="even"?(u.style.background=this.FINAL_CONFIG.style.rows.even.backgroundColor,u.style.color=this.FINAL_CONFIG.style.rows.even.olor):(u.style.background=this.FINAL_CONFIG.style.rows.odd.backgroundColor,u.style.color=this.FINAL_CONFIG.style.rows.odd.color)}),s.currentTarget.dataset.row==="even"?(s.currentTarget.style.background=this.FINAL_CONFIG.style.rows.even.backgroundColor,s.currentTarget.style.color=this.FINAL_CONFIG.style.rows.even.color):(s.currentTarget.style.background=this.FINAL_CONFIG.style.rows.odd.backgroundColor,s.currentTarget.style.color=this.FINAL_CONFIG.style.rows.odd.color)):(t.dataset.selected="true",this.currentSelectionSpan.rows.push({index:n,value:o}),Array.from(t.children).forEach((u,h)=>{u.dataset.row==="even"?(u.style.background=this.FINAL_CONFIG.style.rows.even.selectedNeighbors.backgroundColor,u.style.color=this.FINAL_CONFIG.style.rows.even.selectedNeighbors.color):(u.style.background=this.FINAL_CONFIG.style.rows.odd.selectedNeighbors.backgroundColor,u.style.color=this.FINAL_CONFIG.style.rows.odd.selectedNeighbors.color)}),s.currentTarget.dataset.row==="odd"?(s.currentTarget.style.background=this.FINAL_CONFIG.style.rows.odd.selectedCell.backgroundColor,s.currentTarget.style.color=this.FINAL_CONFIG.style.rows.odd.selectedCell.color):(s.currentTarget.style.background=this.FINAL_CONFIG.style.rows.even.selectedCell.backgroundColor,s.currentTarget.style.color=this.FINAL_CONFIG.style.rows.even.selectedCell.color)),this.currentSelectionSpan.rows=this.currentSelectionSpan.rows.sort((u,h)=>u.index-h.index),this.chart.type===this.constants.DONUT&&this.currentSelectionSpan.rows.length>0&&this.applyDonutOption()},setFilterDatesIndexes(o){this.filteredDatesIndexes[o]=!(this.getDatesRange(o).from===this.dates[o].from&&this.getDatesRange(o).to===this.dates[o].to)},sortBody(){this.resetSelection(),Object.keys(this.rangeFilters).forEach(o=>{this.filterByRange(this.bodyCopy,o)}),Object.keys(this.sorts).forEach(o=>{this.sortByNumber(this.bodyCopy,o)}),this.currentFilter!==void 0&&this.sortByNumber(this.bodyCopy,this.currentFilter),this.dataset.header.forEach((o,n)=>{if(o.isPercentage){const r=this.percentages[n].referenceIndex,i=this.bodyCopy.map(s=>s.td[r]).reduce((s,t)=>s+t,0);this.bodyCopy.forEach(s=>{s.td[n]=s.td[r]/i})}}),this.currentPage>this.pages.length-1&&(this.currentPage=this.pages.length-1),[-1].includes(this.currentPage)&&(this.currentPage=0),this.$forceUpdate()},filterByRange(o,n){this.bodyCopy=o.filter(r=>r.td[n]>=this.rangeFilters[n].min&&r[n]<=this.rangeFilters[n].max)},sortByNumber(o,n){if(this.sorts[n]===this.constants.ASC&&(o=o.sort((r,i)=>r[n]-i[n])),this.sorts[n]===this.constants.DESC)o=o.sort((r,i)=>i[n]-r[n]);else return 0},sortTh(o,n){this.currentFilter=o;const r=n.currentTarget;clearTimeout(this.buttonTimeout),r.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{r.classList.remove("clicked")},200),this.sorts[o]===1?this.sorts[o]=this.constants.DESC:this.sorts[o]=this.constants.ASC,this.sortBody()},stringToNumber(o){let n=0;for(let r=0;r<o.length;r+=1)n+=o.charCodeAt(r);return n},toggleMultiselect(o,n,r){const i=r.currentTarget;clearTimeout(this.buttonTimeout),i.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{i.classList.remove("clicked")},200);const s=document.getElementById(`th_dropdown_${o}`);s.dataset.isOpen==="false"?s.dataset.isOpen="true":s.dataset.isOpen="false"},updateCurrentPage(o){this.resetSelection(),!o||!o.target.value?this.currentPage=0:this.currentPage=Number(o.target.value)},calcDonutMarkerConnectorColor(o){return o.proportion*100>3?o.color:"transparent"},calcDonutMarkerLabelPositionX(o){return o.center.endX+this.calcMarkerOffset(o,50)},calcMarkerOffset(o,n){return o.center.endX-n>=0?3:-2},displayArcPercentage(o,n){return isNaN(o.value/this.sumValues(n))?0:(o.value/this.sumValues(n)*100).toFixed(0)+"%"},isArcBigEnough(o){return o.proportion*100>3},sumValues(o){return[...o].map(n=>n.value).reduce((n,r)=>n+r,0)},closeDragElement(){document.onmouseup=null,document.onmousemove=null},dragMouseDown(o){o=o||window.event,o.preventDefault();const r=this.$refs.chartModal.getBoundingClientRect();this.dragOffsetX=o.clientX-r.left,this.dragOffsetY=o.clientY-r.top,this.modalWidth=r.width,this.modalHeight=r.height,document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag(o){if(this.rafId)return;const r=this.$refs.chartModal.getBoundingClientRect();this.clientX=o.clientX-this.dragOffsetX,this.clientY=o.clientY-this.dragOffsetY-40,this.clientX<0&&(this.clientX=0),this.clientX+r.width>window.innerWidth&&(this.clientX=window.innerWidth-r.width-48),this.clientY<0&&(this.clientY=0),this.clientY+r.height>window.innerHeight&&(this.clientY=window.innerHeight-r.height-24)}}},L={class:"vue-ui-table-export-hub"},E=["innerHTML"],D=["data-is-open"],B={class:"vue-ui-table-export-hub-options"},A={class:"vue-ui-table-export-hub-option-wrapper"},M={class:"label"},T=["innerHTML"],x={class:"vue-ui-table-export-hub-option-wrapper"},G={class:"label"},V=["innerHTML"],z={class:"vue-ui-table"},H={id:"tableHead"},P={key:0},R={key:0},U={key:1},X={key:0,style:{display:"flex","align-items":"center","justify-content":"flex-end"}},j=["innerHTML"],Y={key:0,style:{"margin-left":"3px"}},W={key:0},J={class:"th-filter"},K={key:0,class:"th-date"},q={class:"date-wrapper--inputs"},Z={class:"date-fieldset"},Q=["for"],$=["id","onUpdate:modelValue","onInput"],ee={class:"date-fieldset"},te=["for"],se=["id","onUpdate:modelValue","onInput"],ne={class:"date-wrapper--button"},oe=["onClick"],re=["innerHTML"],le=["innerHTML"],ae=["innerHTML"],ie=["onClick","disabled"],ce=["placeholder","onUpdate:modelValue","name"],ue=["onClick"],de=["innerHTML"],he=["innerHTML"],ge=["innerHTML"],me=["onClick","innerHTML"],ye=["innerHTML"],pe={key:5,class:"th-range-filter"},Ne=["for"],be=["id","max","min","onUpdate:modelValue"],Ce=["id","max","min","onUpdate:modelValue"],fe=["for"],ke=["onClick","disabled"],Fe=["id"],Ie=["onClick"],ve=["onClick","onKeyup"],Se=["innerHTML","onClick","onKeyup"],we=["data-row"],_e=["data-row"],Oe=["data-row","onClick","onKeyup","id"],Le=["innerHTML"],Ee={key:1},De={key:2},Be={key:5},Ae=["innerHTML"],Me={key:0},Te={style:{"margin-left":"12px"}},xe={class:"format-num"},Ge={style:{"margin-left":"12px"}},Ve={key:0,class:"format-num"},ze={key:1,class:"format-num"},He={key:2},Pe={style:{"margin-left":"12px"}},Re={key:0,class:"format-num"},Ue={key:1,class:"format-num"},Xe={key:2},je={key:0,class:"vue-ui-table-paginator format-num"},Ye={key:1,class:"vue-ui-table-size-warning"},We=["innerHTML"],Je={key:3,class:"vue-ui-table-pagination format-num"},Ke=["innerHTML","disabled"],qe=["disabled"],Ze={key:0,class:"vue-ui-table-page-scroller-wrapper"},Qe={for:"pageScroller",style:{"font-size":"14px"}},$e=["max","value"],et={key:1},tt=["disabled"],st=["innerHTML","disabled"],nt=["innerHTML"],ot={class:"chart-modal-options"},rt=["innerHTML"],lt=["innerHTML"],at=["innerHTML"],it={style:{width:"100%",height:"fit-content"},ref:"chartModal"},ct={class:"vue-ui-table-fieldset"},ut={class:"vue-ui-table-fieldset-wrapper"},dt=["name","id","checked","onInput"],ht=["for"],gt=["disabled"],mt=["innerHTML"],yt={style:{width:"100%","margin-bottom":"12px"}},pt={key:2,style:{width:"100%","margin-bottom":"32px"}};function Nt(o,n,r,i,s,t){const u=e.resolveComponent("VueUiXy"),h=e.resolveComponent("VueUiDonut");return e.openBlock(),e.createElementBlock("div",{class:"vue-ui-table-main",style:e.normalizeStyle(`font-family: ${t.FINAL_CONFIG.fontFamily}`)},[e.createElementVNode("div",L,[e.createElementVNode("button",{onClick:n[0]||(n[0]=a=>s.isExportRequest=!s.isExportRequest),innerHTML:t.icons.export,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.exportMenu.backgroundColor};color:${t.FINAL_CONFIG.style.exportMenu.color}`)},null,12,E),e.createElementVNode("div",{class:"vue-ui-table-export-hub-dropdown","data-is-open":s.isExportRequest||"false",style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.exportMenu.backgroundColor};color:${t.FINAL_CONFIG.style.exportMenu.color}`)},[n[25]||(n[25]=e.createElementVNode("b",{class:"vue-ui-table-export-hub-title"}," Export ",-1)),e.createElementVNode("button",{class:"close-dropdown",onClick:n[1]||(n[1]=a=>s.isExportRequest=!1),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${t.FINAL_CONFIG.style.closeButtons.color};border-radius:${t.FINAL_CONFIG.style.closeButtons.borderRadius}`)}," ✖ ",4),e.createElementVNode("div",B,[e.createElementVNode("div",A,[e.createElementVNode("div",M,e.toDisplayString(t.FINAL_CONFIG.translations.exportAllLabel)+" ("+e.toDisplayString(s.bodyCopy.length)+") ",1),e.createElementVNode("button",{id:"exportAll",onClick:n[2]||(n[2]=a=>t.createXls("all")),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.exportMenu.buttons.backgroundColor};color:${t.FINAL_CONFIG.style.exportMenu.buttons.color}`)},[e.createElementVNode("div",{innerHTML:t.icons.fileDownload},null,8,T),e.createElementVNode("span",null,e.toDisplayString(t.FINAL_CONFIG.translations.exportAllButton),1)],4)]),e.createElementVNode("div",x,[e.createElementVNode("div",G,e.toDisplayString(t.FINAL_CONFIG.translations.exportPageLabel),1),e.createElementVNode("button",{id:"exportPage",onClick:n[3]||(n[3]=a=>t.createXls("page")),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.exportMenu.buttons.backgroundColor};color:${t.FINAL_CONFIG.style.exportMenu.buttons.color}`)},[e.createElementVNode("div",{innerHTML:t.icons.fileDownload},null,8,V),e.createElementVNode("span",null,e.toDisplayString(t.FINAL_CONFIG.translations.exportPageButton),1)],4)])])],12,D)]),e.createElementVNode("div",{class:"vue-ui-table__wrapper",style:e.normalizeStyle(`max-height:${t.FINAL_CONFIG.maxHeight}px`),ref:"tableWrapper"},[e.createElementVNode("table",z,[e.createElementVNode("thead",H,[e.createElementVNode("tr",null,[n[26]||(n[26]=e.createElementVNode("th",{class:"invisible-cell"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tableHead,(a,l)=>(e.openBlock(),e.createElementBlock("th",{key:`thead_${l}`,style:e.normalizeStyle(`overflow: visible;background:${t.FINAL_CONFIG.style.th.backgroundColor};color:${t.FINAL_CONFIG.style.th.color};outline:${t.FINAL_CONFIG.style.th.outline}`),class:e.normalizeClass({"th-has-nan":s.hasNaN[l]})},[t.hasNumericTypes&&([s.constants.TEXT,s.constants.DATE].includes(a.type)||a.isPercentage)?(e.openBlock(),e.createElementBlock("span",P,[e.createTextVNode(e.toDisplayString(a.name)+" ",1),a.isPercentage?(e.openBlock(),e.createElementBlock("span",R," / "+e.toDisplayString(a.percentageTo),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",U,e.toDisplayString(a.name),1))],6))),128))]),t.hasNumericTypes?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("tr",null,[n[27]||(n[27]=e.createElementVNode("th",{class:"invisible-cell"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tableHead,(a,l)=>(e.openBlock(),e.createElementBlock("th",{key:`thead_${l}`,class:e.normalizeClass({"th-numeric":!0,"th-has-nan":s.hasNaN[l]}),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.th.backgroundColor};color:${t.FINAL_CONFIG.style.th.color};outline:${t.FINAL_CONFIG.style.th.outline}`)},[a.sum&&!s.hasNaN[l]?(e.openBlock(),e.createElementBlock("span",X,[e.createElementVNode("span",{innerHTML:t.icons.sum,style:{"margin-bottom":"-4px","margin-right":"3px"}},null,8,j),e.createTextVNode(" "+e.toDisplayString(t.dataLabel({p:a.prefix,v:Number(t.getSum(l)),s:a.suffix,r:a.decimals}))+" ",1),s.percentages[l]&&a.percentageTo&&!a.isPercentage?(e.openBlock(),e.createElementBlock("span",Y," ("+e.toDisplayString(isNaN(t.getSum(l)/t.getSum(s.percentages[l].referenceIndex))?"-":t.dataLabel({v:t.getSum(l)/t.getSum(s.percentages[l].referenceIndex)*100,s:"%",r:a.decimals}))+") ",1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128))]),e.createElementVNode("tr",null,[n[28]||(n[28]=e.createElementVNode("th",{class:"invisible-cell"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tableHead,(a,l)=>(e.openBlock(),e.createElementBlock("th",{key:`thead_${l}`,class:e.normalizeClass({"th-numeric":!0,"th-has-nan":s.hasNaN[l]}),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.th.backgroundColor};color:${t.FINAL_CONFIG.style.th.color};outline:${t.FINAL_CONFIG.style.th.outline}`)},[a.average&&!s.hasNaN[l]?(e.openBlock(),e.createElementBlock("span",W," ~ "+e.toDisplayString(isNaN(t.getAverage(l))?"":t.dataLabel({p:a.prefix,v:Number(t.getAverage(l)),s:a.suffix,r:a.decimals})),1)):e.createCommentVNode("",!0)],6))),128))]),e.createElementVNode("tr",null,[n[31]||(n[31]=e.createElementVNode("th",{class:"invisible-cell"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tableHead,(a,l)=>(e.openBlock(),e.createElementBlock("th",{key:`thead_${l}`,class:e.normalizeClass({"th-has-nan":s.hasNaN[l]}),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.th.backgroundColor};color:${t.FINAL_CONFIG.style.th.color};outline:${t.FINAL_CONFIG.style.th.outline}`)},[e.createElementVNode("div",J,[a.type===s.constants.DATE&&s.dates[l]?(e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("div",q,[e.createElementVNode("div",Z,[e.createElementVNode("label",{for:`from_${l}`},e.toDisplayString(t.FINAL_CONFIG.translations.from),9,Q),e.withDirectives(e.createElementVNode("input",{id:`from_${l}`,type:"date","onUpdate:modelValue":c=>s.dates[l].from=c,onInput:c=>{t.filterBody(),t.setFilterDatesIndexes(l)},style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border}`)},null,44,$),[[e.vModelText,s.dates[l].from]])]),e.createElementVNode("div",ee,[e.createElementVNode("label",{for:`to_${l}`},e.toDisplayString(t.FINAL_CONFIG.translations.to),9,te),e.withDirectives(e.createElementVNode("input",{id:`to_${l}`,type:"date","onUpdate:modelValue":c=>s.dates[l].to=c,onInput:c=>{t.filterBody(),t.setFilterDatesIndexes(l)},style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border}`)},null,44,se),[[e.vModelText,s.dates[l].to]])])]),e.createElementVNode("div",ne,[a.isSort?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:c=>t.sortTh(l,c),class:e.normalizeClass({"th-button-active":[s.constants.DESC,s.constants.ASC].includes(s.sorts[l])}),style:e.normalizeStyle(`background:${[s.constants.DESC,s.constants.ASC].includes(s.sorts[l])?"":t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${[s.constants.DESC,s.constants.ASC].includes(s.sorts[l])?"":t.FINAL_CONFIG.style.pagination.buttons.color}`)},[s.sorts[l]===s.constants.ASC?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:[s.constants.DATE].includes(a.type)?t.icons.sort09:t.icons.sortAZ},null,8,re)):s.sorts[l]===s.constants.DESC?(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:[s.constants.DATE].includes(a.type)?t.icons.sort90:t.icons.sortZA},null,8,le)):(e.openBlock(),e.createElementBlock("span",{key:2,innerHTML:t.icons.arrowSort},null,8,ae))],14,oe)):e.createCommentVNode("",!0),e.createElementVNode("button",{onClick:c=>{t.resetDates(l),t.resetFilter(l,a,c)},disabled:!s.filteredDatesIndexes[l]&&t.isResetDisabled(l,a),class:"th-reset"}," ✖ ",8,ie)])])):e.createCommentVNode("",!0),a.isSearch?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,placeholder:t.FINAL_CONFIG.translations.inputPlaceholder,"onUpdate:modelValue":c=>s.searches[l]=c,onInput:n[4]||(n[4]=c=>t.debounce(t.filterBody,400)),name:`search_${l}`,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border}`)},null,44,ce)),[[e.vModelText,s.searches[l]]]):e.createCommentVNode("",!0),!s.hasNaN[l]&&a.isSort&&a.type!==s.constants.DATE?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:c=>t.sortTh(l,c),class:e.normalizeClass({"th-button-active":[s.constants.DESC,s.constants.ASC].includes(s.sorts[l])}),style:e.normalizeStyle(`background:${[s.constants.DESC,s.constants.ASC].includes(s.sorts[l])?"":t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${[s.constants.DESC,s.constants.ASC].includes(s.sorts[l])?"":t.FINAL_CONFIG.style.pagination.buttons.color}`)},[s.sorts[l]===s.constants.ASC?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:[s.constants.NUMERIC].includes(a.type)?t.icons.sort09:t.icons.sortZA},null,8,de)):s.sorts[l]===s.constants.DESC?(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:[s.constants.NUMERIC].includes(a.type)?t.icons.sort90:t.icons.sortAZ},null,8,he)):(e.openBlock(),e.createElementBlock("span",{key:2,innerHTML:t.icons.arrowSort},null,8,ge))],14,ue)):e.createCommentVNode("",!0),a.isMultiselect?(e.openBlock(),e.createElementBlock("button",{key:3,onClick:c=>t.toggleMultiselect(l,a,c),innerHTML:t.icons.filter,class:e.normalizeClass({"th-button-active":s.multiselects[l]&&s.multiselects[l].length!==t.getDropdownOptions(l).length}),style:e.normalizeStyle(`background:${s.multiselects[l]&&s.multiselects[l].length!==t.getDropdownOptions(l).length?"":t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${s.multiselects[l]&&s.multiselects[l].length!==t.getDropdownOptions(l).length?"":t.FINAL_CONFIG.style.pagination.buttons.color}`)},null,14,me)):e.createCommentVNode("",!0),s.currentSelectionSpan.col===l&&t.canChart?(e.openBlock(),e.createElementBlock("button",{key:4,onClick:n[5]||(n[5]=c=>s.showChart=!s.showChart),innerHTML:t.icons.chart,class:e.normalizeClass({"th-button-active":s.showChart}),style:e.normalizeStyle(`background:${s.showChart?"":t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${s.showChart?"":t.FINAL_CONFIG.style.pagination.buttons.color}`)},null,14,ye)):e.createCommentVNode("",!0),a.rangeFilter&&s.rangeFilters[l]&&!s.hasNaN[l]?(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("label",{for:`rangeMin${l}`},n[29]||(n[29]=[e.createElementVNode("span",{style:{color:"grey"}},"ᒥ",-1),e.createTextVNode(" min "),e.createElementVNode("span",{style:{color:"grey"}},"ᒣ",-1)]),8,Ne),e.withDirectives(e.createElementVNode("input",{type:"number",id:`rangeMin${l}`,max:s.immutableRangeFilters[l].max,min:s.immutableRangeFilters[l].min,"onUpdate:modelValue":c=>s.rangeFilters[l].min=c,onInput:n[6]||(n[6]=c=>t.debounce(t.filterBody,400)),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border}`)},null,44,be),[[e.vModelText,s.rangeFilters[l].min,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("input",{type:"number",id:`rangeMax${l}`,max:s.immutableRangeFilters[l].max,min:s.immutableRangeFilters[l].min,"onUpdate:modelValue":c=>s.rangeFilters[l].max=c,onInput:n[7]||(n[7]=c=>t.debounce(t.filterBody,400)),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border}`)},null,44,Ce),[[e.vModelText,s.rangeFilters[l].max,void 0,{number:!0}]]),e.createElementVNode("label",{for:`rangeMax${l}`},n[30]||(n[30]=[e.createElementVNode("span",{style:{color:"grey"}},"ᒪ",-1),e.createTextVNode(" max "),e.createElementVNode("span",{style:{color:"grey"}},"ᒧ",-1)]),8,fe)])):e.createCommentVNode("",!0),t.canResetColumn(l,a)?(e.openBlock(),e.createElementBlock("button",{key:6,onClick:c=>t.resetFilter(l,a,c),disabled:t.isResetDisabled(l,a),class:"th-reset"}," ✖ ",8,ke)):e.createCommentVNode("",!0),a.isMultiselect?(e.openBlock(),e.createElementBlock("div",{key:7,class:"th-dropdown","data-is-open":"false",id:`th_dropdown_${l}`,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.dropdowns.backgroundColor};color:${t.FINAL_CONFIG.style.dropdowns.color}`)},[e.createElementVNode("button",{class:"close-dropdown",onClick:c=>t.toggleMultiselect(l,a,c),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${t.FINAL_CONFIG.style.closeButtons.color}`)}," ✖ ",12,Ie),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.getDropdownOptions(l),(c,d)=>(e.openBlock(),e.createElementBlock("span",{class:"th-option",key:`th_option_${l}_${d}`,onClick:y=>t.selectDropdownOption(c,l),onKeyup:[e.withKeys(y=>t.selectDropdownOption(c,l),["enter"]),e.withKeys(y=>t.selectDropdownOption(c,l),["space"])],style:e.normalizeStyle(`opacity:${t.isDropdownOptionSelected(c,l)?1:.5}`),tabindex:"0"},[t.isDropdownOptionSelected(c,l)?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`color:${t.FINAL_CONFIG.style.dropdowns.icons.selected.color};margin-right:5px`),class:"th-icon-green"},e.toDisplayString(t.FINAL_CONFIG.style.dropdowns.icons.selected.unicode),5)):(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`color:${t.FINAL_CONFIG.style.dropdowns.icons.unselected.color};margin-right:5px`),class:"th-icon-red"},e.toDisplayString(t.FINAL_CONFIG.style.dropdowns.icons.unselected.unicode),5)),e.createElementVNode("span",null,e.toDisplayString(c),1)],44,ve))),128))],12,Fe)):e.createCommentVNode("",!0)])],6))),128))])],64)):e.createCommentVNode("",!0),e.createElementVNode("tr",null,[n[32]||(n[32]=e.createElementVNode("th",{class:"invisible-cell"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tableHead,(a,l)=>(e.openBlock(),e.createElementBlock("th",{key:`col_selector_${l}`,class:e.normalizeClass({"vue-ui-table-col-selector":!s.hasNaN[l],"th-has-nan":s.hasNaN[l]}),style:e.normalizeStyle(`background:${l===s.selectedColumn&&!s.hasNaN[l]?t.FINAL_CONFIG.style.th.selected.backgroundColor:t.FINAL_CONFIG.style.th.backgroundColor};color:${l===s.selectedColumn&&!s.hasNaN[l]?t.FINAL_CONFIG.style.th.selected.color:t.FINAL_CONFIG.style.th.color};outline:${t.FINAL_CONFIG.style.th.outline}`)},[s.hasNaN[l]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:s.tableHead[l].type===s.constants.NUMERIC?t.icons.chevronDown:"",class:e.normalizeClass({"col-selector":s.tableHead[l].type===s.constants.NUMERIC}),tabindex:"0",onClick:e.withModifiers(c=>t.selectColumn(l),["stop"]),onKeyup:e.withKeys(c=>t.selectColumn(l),["enter"])},null,42,Se))],6))),128))])]),e.createElementVNode("tbody",{onClick:n[8]||(n[8]=(...a)=>t.closeAllDropdowns&&t.closeAllDropdowns(...a)),onKeydown:n[9]||(n[9]=a=>t.navigateCell(a))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.visibleRows,(a,l)=>(e.openBlock(),e.createElementBlock("tr",{key:`tbody_${l}`,"data-row":l%2===0?"odd":"even",class:e.normalizeClass(`tr_${s.uid}`),style:e.normalizeStyle(`${l%2===0?`background:${t.FINAL_CONFIG.style.rows.odd.backgroundColor};color:${t.FINAL_CONFIG.style.rows.odd.color}`:`background:${t.FINAL_CONFIG.style.rows.even.backgroundColor};color:${t.FINAL_CONFIG.style.rows.even.color}`}`)},[e.createElementVNode("td",{class:"vue-ui-table-td-iteration","data-row":l%2===0?"odd":"even"},e.toDisplayString(a.absoluteIndex+1),9,_e),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.td,(c,d)=>(e.openBlock(),e.createElementBlock("td",{"data-row":l%2===0?"odd":"even",key:`td_${l}_${d}`,style:e.normalizeStyle(t.isNumeric(c)||r.dataset.header[d].type===s.constants.DATE?"text-align:right;font-variant-numeric: tabular-nums;":""),onClick:y=>t.selectTd({td:c,rowIndex:l,colIndex:d,headerType:r.dataset.header[d].type,event:y}),onKeyup:[e.withKeys(y=>t.selectTd({td:c,rowIndex:l,colIndex:d,headerType:r.dataset.header[d].type,event:y}),["enter"]),e.withKeys(y=>t.selectTd({td:c,rowIndex:l,colIndex:d,headerType:r.dataset.header[d].type,event:y}),["space"])],class:e.normalizeClass({"td-numeric":r.dataset.header[d].type===s.constants.NUMERIC,"td-focusable":!0,"td-has-nan":s.hasNaN[d]}),id:`cell_${l}_${d}_${s.uid}`,tabindex:"0"},[a.meta&&a.meta.markerIndices.includes(d)&&a.meta.unicodeIcon?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`color:${a.meta.color};margin-right:3px`),innerHTML:a.meta.unicodeIcon},null,12,Le)):e.createCommentVNode("",!0),r.dataset.header[d].type===s.constants.DATE?(e.openBlock(),e.createElementBlock("span",Ee,e.toDisplayString(r.dataset.header[d].prefix)+" "+e.toDisplayString(new Date(c).toLocaleString().slice(0,10))+" "+e.toDisplayString(r.dataset.header[d].suffix),1)):r.dataset.header[d].isPercentage?(e.openBlock(),e.createElementBlock("span",De,e.toDisplayString(t.dataLabel({v:Number(c*100),s:"%",r:r.dataset.header[d].decimals})),1)):s.percentages[d]&&r.dataset.header[d].percentageTo&&!r.dataset.header[d].isPercentage?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass({"td-nan":isNaN(Number(c))})},e.toDisplayString(isNaN(Number(c))?`${c} is not ${s.constants.NUMERIC}`:t.dataLabel({p:r.dataset.header[d].prefix,v:Number(c),s:r.dataset.header[d].suffix,r:r.dataset.header[d].decimals}))+" ("+e.toDisplayString(isNaN(Number(c))?"":t.dataLabel({v:Number(c/t.getSum(s.percentages[d].referenceIndex)*100),s:"%",r:r.dataset.header[d].decimals}))+") ",3)):r.dataset.header[d].type===s.constants.NUMERIC?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass({"td-nan":isNaN(Number(c))})},e.toDisplayString(isNaN(Number(c))?`${c} is not ${s.constants.NUMERIC}`:t.dataLabel({p:r.dataset.header[d].prefix,v:Number(c.toFixed(r.dataset.header[d].decimals)),s:r.dataset.header[d].suffix,r:r.dataset.header[d].decimals})),3)):(e.openBlock(),e.createElementBlock("span",Be,e.toDisplayString(r.dataset.header[d].prefix)+" "+e.toDisplayString(c)+" "+e.toDisplayString(r.dataset.header[d].suffix),1))],46,Oe))),128))],14,we))),128))],32)])],4),e.createElementVNode("div",{class:e.normalizeClass({"td-selector-info":!0,"td-selector-info--active":s.currentSelectionSpan.col!==void 0&&s.currentSelectionSpan.rows.length}),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.infoBar.backgroundColor};color:${t.FINAL_CONFIG.style.infoBar.color}`)},[s.currentSelectionSpan.col!==void 0&&s.currentSelectionSpan.rows.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{innerHTML:t.icons.table,class:"td-selector-icon"},null,8,Ae),e.createElementVNode("span",null,[e.createElementVNode("b",null,[e.createTextVNode(e.toDisplayString(r.dataset.header[s.currentSelectionSpan.col].name)+" ",1),r.dataset.header[s.currentSelectionSpan.col].isPercentage?(e.openBlock(),e.createElementBlock("span",Me," / "+e.toDisplayString(r.dataset.header[s.percentages[s.currentSelectionSpan.col].referenceIndex].name),1)):e.createCommentVNode("",!0)]),e.createElementVNode("span",Te,[e.createTextVNode(e.toDisplayString(t.FINAL_CONFIG.translations.nb)+" : ",1),e.createElementVNode("b",xe,e.toDisplayString(s.currentSelectionSpan.rows.length),1)]),e.createElementVNode("span",Ge,[e.createTextVNode(e.toDisplayString(t.FINAL_CONFIG.translations.sum)+" : ",1),r.dataset.header[s.currentSelectionSpan.col].isPercentage?(e.openBlock(),e.createElementBlock("b",Ve,e.toDisplayString(t.selectedCellsCalculations.sumPercentage),1)):(e.openBlock(),e.createElementBlock("b",ze,e.toDisplayString(r.dataset.header[s.currentSelectionSpan.col].prefix)+" "+e.toDisplayString(t.selectedCellsCalculations.sumRegular)+" "+e.toDisplayString(r.dataset.header[s.currentSelectionSpan.col].suffix),1)),r.dataset.header[s.currentSelectionSpan.col].isPercentage?(e.openBlock(),e.createElementBlock("b",He,"%")):e.createCommentVNode("",!0)]),e.createElementVNode("span",Pe,[e.createTextVNode(e.toDisplayString(t.FINAL_CONFIG.translations.average)+" : ",1),r.dataset.header[s.currentSelectionSpan.col].isPercentage?(e.openBlock(),e.createElementBlock("b",Re,e.toDisplayString(t.selectedCellsCalculations.averagePercentage),1)):(e.openBlock(),e.createElementBlock("b",Ue,e.toDisplayString(r.dataset.header[s.currentSelectionSpan.col].prefix)+" "+e.toDisplayString(t.selectedCellsCalculations.averageRegular)+" "+e.toDisplayString(r.dataset.header[s.currentSelectionSpan.col].suffix),1)),r.dataset.header[s.currentSelectionSpan.col].isPercentage?(e.openBlock(),e.createElementBlock("b",Xe,"%")):e.createCommentVNode("",!0)])]),e.createElementVNode("button",{onClick:n[10]||(n[10]=(...a)=>t.resetSelection&&t.resetSelection(...a)),class:"td-selector-info-reset",style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${t.FINAL_CONFIG.style.closeButtons.color};border-radius:${t.FINAL_CONFIG.style.closeButtons.borderRadius}`)}," ✖ ",4)],64)):e.createCommentVNode("",!0)],6),s.bodyCopy.length>10?(e.openBlock(),e.createElementBlock("div",je,[e.createTextVNode(e.toDisplayString(t.FINAL_CONFIG.translations.totalRows)+" : "+e.toDisplayString(r.dataset.body.length)+" | "+e.toDisplayString(t.FINAL_CONFIG.translations.paginatorLabel)+" : ",1),s.bodyCopy.length>10?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:0,id:"paginatorSelector","onUpdate:modelValue":n[11]||(n[11]=a=>s.itemsPerPage=a),onChange:n[12]||(n[12]=(...a)=>t.resetSelection&&t.resetSelection(...a)),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.paginatorOptions,(a,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.bodyCopy.length>a||r.dataset.body.length===a?(e.openBlock(),e.createElementBlock("option",{key:`paginator_option_${l}`},e.toDisplayString(a),1)):e.createCommentVNode("",!0)],64))),256))],36)),[[e.vModelSelect,s.itemsPerPage,void 0,{number:!0}]]):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),s.itemsPerPage>=250?(e.openBlock(),e.createElementBlock("div",Ye,[e.createElementVNode("span",{innerHTML:t.icons.warning},null,8,We),e.createTextVNode(e.toDisplayString(t.FINAL_CONFIG.translations.sizeWarning),1)])):e.createCommentVNode("",!0),t.pages.length>1&&t.pages.length<=10?(e.openBlock(),e.createElementBlock("div",{key:2,class:"vue-ui-table-navigation-indicator",style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.pagination.navigationIndicator.backgroundColor};width:calc(${s.currentPage/(t.pages.length-1)*100}%)`)},null,4)):e.createCommentVNode("",!0),t.pages.length>1?(e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("button",{class:"vue-ui-table-navigation",onClick:n[13]||(n[13]=e.withModifiers(a=>t.navigate("previous"),["stop"])),innerHTML:t.icons.chevronLeft,disabled:s.currentPage===0,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${t.FINAL_CONFIG.style.pagination.buttons.color};opacity:${s.currentPage===0?t.FINAL_CONFIG.style.pagination.buttons.opacityDisabled:1}`)},null,12,Ke),t.pages.length>3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:"vue-ui-table-navigation",onClick:n[14]||(n[14]=e.withModifiers(a=>t.navigate(1),["stop"])),disabled:s.currentPage===0,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${t.FINAL_CONFIG.style.pagination.buttons.color};opacity:${s.currentPage===0?t.FINAL_CONFIG.style.pagination.buttons.opacityDisabled:1}`)}," 1 ",12,qe),t.pages.length>10?(e.openBlock(),e.createElementBlock("div",Ze,[e.createElementVNode("label",Qe,e.toDisplayString(t.FINAL_CONFIG.translations.page)+" "+e.toDisplayString(s.currentPage+1)+" / "+e.toDisplayString(t.pages.length),1),e.createElementVNode("input",{class:"vue-ui-table-page-scroller",id:"pageScroller",type:"range",step:"1",min:0,max:t.pages.length-1,onInput:n[15]||(n[15]=a=>t.updateCurrentPage(a)),value:s.currentPage,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border};accent-color:${t.FINAL_CONFIG.style.inputs.accentColor}`)},null,44,$e)])):(e.openBlock(),e.createElementBlock("span",et,e.toDisplayString(t.FINAL_CONFIG.translations.page)+" "+e.toDisplayString(s.currentPage+1)+" / "+e.toDisplayString(t.pages.length),1)),e.createElementVNode("button",{class:"vue-ui-table-navigation",onClick:n[16]||(n[16]=e.withModifiers(a=>t.navigate(t.pages.length),["stop"])),disabled:s.currentPage===t.pages.length-1,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${t.FINAL_CONFIG.style.pagination.buttons.color};opacity:${s.currentPage===t.pages.length-1?t.FINAL_CONFIG.style.pagination.buttons.opacityDisabled:1}`)},e.toDisplayString(t.pages.length),13,tt)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.FINAL_CONFIG.translations.page)+" "+e.toDisplayString(s.currentPage+1)+" / "+e.toDisplayString(t.pages.length),1)],64)),e.createElementVNode("button",{class:"vue-ui-table-navigation",onClick:n[17]||(n[17]=e.withModifiers(a=>t.navigate("next"),["stop"])),innerHTML:t.icons.chevronRight,disabled:s.currentPage===t.pages.length-1,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${t.FINAL_CONFIG.style.pagination.buttons.color};opacity:${s.currentPage===t.pages.length-1?t.FINAL_CONFIG.style.pagination.buttons.opacityDisabled:1}`)},null,12,st)])):e.createCommentVNode("",!0),s.showChart&&t.canChart?(e.openBlock(),e.createElementBlock("div",{key:4,class:"vue-ui-table-chart-modal",style:e.normalizeStyle(`width: ${s.modalWidth}px;top:${s.clientY}px; left:${s.clientX}px;background:${t.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${t.FINAL_CONFIG.style.chart.modal.color}`)},[e.createElementVNode("div",{class:"modal-drag-handle",onMousedown:n[19]||(n[19]=(...a)=>t.dragMouseDown&&t.dragMouseDown(...a))},[e.createElementVNode("span",{innerHTML:t.icons.grip},null,8,nt),e.createElementVNode("button",{class:"close-chart-modal",onClick:n[18]||(n[18]=a=>s.showChart=!1)},"✖")],32),e.createElementVNode("button",{style:e.normalizeStyle([{"z-index":"1"},`background:${t.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${t.FINAL_CONFIG.style.closeButtons.color};border-radius:${t.FINAL_CONFIG.style.closeButtons.borderRadius}`]),class:"close-chart-modal",onClick:n[20]||(n[20]=a=>s.showChart=!1)}," ✖ ",4),e.createElementVNode("div",ot,[t.availableDonutCategories.length?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[21]||(n[21]=a=>s.showDonutOptions=!0),innerHTML:t.icons.donut,class:e.normalizeClass({"is-active-chart":s.chart.type===s.constants.DONUT||s.showDonutOptions}),style:e.normalizeStyle(`background:${s.chart.type===s.constants.DONUT||s.showDonutOptions?t.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor:t.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${s.chart.type===s.constants.DONUT||s.showDonutOptions?t.FINAL_CONFIG.style.chart.modal.buttons.selected.color:t.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)},null,14,rt)):e.createCommentVNode("",!0),e.createElementVNode("button",{onClick:n[22]||(n[22]=a=>{s.chart.type=s.constants.LINE,s.showDonutOptions=!1}),innerHTML:t.icons.chart,class:e.normalizeClass({"is-active-chart":s.chart.type===s.constants.LINE&&!s.showDonutOptions}),style:e.normalizeStyle(`background:${s.chart.type===s.constants.LINE&&!s.showDonutOptions?t.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor:t.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${s.chart.type===s.constants.LINE&&!s.showDonutOptions?t.FINAL_CONFIG.style.chart.modal.buttons.selected.color:t.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)},null,14,lt),e.createElementVNode("button",{onClick:n[23]||(n[23]=a=>{s.chart.type=s.constants.BAR,s.showDonutOptions=!1}),innerHTML:t.icons.bar,class:e.normalizeClass({"is-active-chart":s.chart.type===s.constants.BAR&&!s.showDonutOptions}),style:e.normalizeStyle(`background:${s.chart.type===s.constants.BAR&&!s.showDonutOptions?t.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor:t.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${s.chart.type===s.constants.BAR&&!s.showDonutOptions?t.FINAL_CONFIG.style.chart.modal.buttons.selected.color:t.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)},null,14,at)]),e.createElementVNode("div",it,[s.showDonutOptions&&t.availableDonutCategories.length?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${t.FINAL_CONFIG.style.chart.modal.color}`)},[e.createElementVNode("fieldset",ct,[e.createElementVNode("legend",null,e.toDisplayString(t.FINAL_CONFIG.translations.chooseCategoryColumn),1),e.createElementVNode("div",ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availableDonutCategories,(a,l)=>(e.openBlock(),e.createElementBlock("div",{key:`donut_radio_${l}`,class:"vue-ui-table-fieldset-option"},[e.createElementVNode("input",{type:"radio",name:a.name,id:a.name,checked:s.selectedDonutCategory&&a.name===s.selectedDonutCategory.name,onInput:c=>s.selectedDonutCategory=t.availableDonutCategories[l],style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border};accent-color:${t.FINAL_CONFIG.style.inputs.accentColor}`)},null,44,dt),e.createElementVNode("label",{for:a.name},e.toDisplayString(a.name),9,ht)]))),128))]),e.createElementVNode("button",{class:"vue-ui-table-generate-donut",disabled:!s.selectedDonutCategory,onClick:n[24]||(n[24]=(...a)=>t.applyDonutOption&&t.applyDonutOption(...a)),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor};color:${t.FINAL_CONFIG.style.chart.modal.buttons.selected.color}`)},[e.createElementVNode("div",{style:{"margin-bottom":"-3px"},innerHTML:t.icons.donut},null,8,mt),e.createTextVNode(" "+e.toDisplayString(t.FINAL_CONFIG.translations.makeDonut),1)],12,gt)])],4)):e.createCommentVNode("",!0),[s.constants.BAR,s.constants.LINE].includes(s.chart.type)&&!s.showDonutOptions?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",yt,[s.chart.type===s.constants.LINE?(e.openBlock(),e.createBlock(u,{key:0,dataset:t.chartData.xyDatasetLine,config:t.chartData.xyConfig},null,8,["dataset","config"])):e.createCommentVNode("",!0),s.chart.type===s.constants.BAR?(e.openBlock(),e.createBlock(u,{key:1,dataset:t.chartData.xyDatasetBar,config:t.chartData.xyConfig},null,8,["dataset","config"])):e.createCommentVNode("",!0)]),s.currentSelectionSpan.rows.length>=2?(e.openBlock(),e.createElementBlock("div",{key:0,class:"chart-trend",style:e.normalizeStyle(`color:${t.FINAL_CONFIG.style.chart.modal.color}`)},[n[33]||(n[33]=e.createElementVNode("span",null,"---",-1)),e.createTextVNode(" Trend: "+e.toDisplayString((t.chartData.progression.trend*100).toFixed(1))+" % ",1)],4)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),[s.constants.DONUT].includes(s.chart.type)&&!s.showDonutOptions?(e.openBlock(),e.createElementBlock("div",pt,[e.createVNode(h,{dataset:s.currentDonut,config:t.chartData.donutConfig},null,8,["dataset","config"])])):e.createCommentVNode("",!0)],512)],4)):e.createCommentVNode("",!0)],4)}const bt=_._export_sfc(O,[["render",Nt],["__scopeId","data-v-03b16812"]]);exports.default=bt;
|