From 5d9dab9d944849c10c58c001275ab3fb8ff65dc9 Mon Sep 17 00:00:00 2001 From: Fabrizio Alessandro Date: Fri, 25 Oct 2024 18:20:13 +0200 Subject: [PATCH] Adds minified version of datatables.blazor.js --- DataTables.Blazor/wwwroot/datatables.blazor.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataTables.Blazor/wwwroot/datatables.blazor.min.js b/DataTables.Blazor/wwwroot/datatables.blazor.min.js index f3f597f..30395e8 100644 --- a/DataTables.Blazor/wwwroot/datatables.blazor.min.js +++ b/DataTables.Blazor/wwwroot/datatables.blazor.min.js @@ -1 +1 @@ -function addRowClickListener(a,b){$(a).on("click","tbody tr",function(...e){var c=$(a).DataTable().row(this),d={index:c.index(),id:String(c.id()),data:c.data()};return b.invokeMethodAsync("Invoke",d)})}function addCellClickListener(a,b){$(a).on("click","tbody td",function(...g){var d=$(a).DataTable(),c=d.cell(this),e=d.row($(this).closest("tr")),f={columnIndex:c.index().column,rowIndex:c.index().row,rowId:String(e.id()),data:c.data()};return b.invokeMethodAsync("Invoke",f)})}function addGenericListener(a,b,c){var d={};$(a).on(b,function(...f){if(d=argsToJson(f),isEqual(b,"page.dt")){var e=$(a).DataTable().page.info();d={page:e.page,pages:e.pages,start:e.start,end:e.end,length:e.length}}return c.invokeMethodAsync("Invoke",d)})}function argsToJson(a){var b=[],e=arguments;for(var c in a)b.push(c);var d={};return[].forEach.call(function(b){var a=[];for(var c in b)a.push(c);return a}(a),function(c,a){isEqual(b[a],"e")||isEqual(b[a],"settings")||isEqual(b[a],"dt")||isEqual(b[a],"datatable")||e[0][b[a]]instanceof Object!= !1||(d[b[a]]=e[0][b[a]])}),d}function isEqual(a,b){return a.normalize()===b.normalize()}window.datatablesInterop={initialiseDataTable:function(d,e){let a=JSON.parse(e);if(null!=a.columns)for(let c=0;c