/usr/share/javascript/jquery-datatables/dataTables.uikit.min.js is in libjs-jquery-datatables 1.10.16+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 | /*!
DataTables UIkit 3 integration
*/
(function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return b(a,window,document)}):"object"===typeof exports?module.exports=function(a,c){a||(a=window);if(!c||!c.fn.dataTable)c=require("datatables.net")(a,c).$;return b(c,a,a.document)}:b(jQuery,window,document)})(function(b,a,c,p){var g=b.fn.dataTable;b.extend(!0,g.defaults,{dom:"<'row uk-grid'<'uk-width-1-2'l><'uk-width-1-2'f>><'row uk-grid dt-merge-grid'<'uk-width-1-1'tr>><'row uk-grid dt-merge-grid'<'uk-width-2-5'i><'uk-width-3-5'p>>",
renderer:"uikit"});b.extend(g.ext.classes,{sWrapper:"dataTables_wrapper uk-form dt-uikit",sFilterInput:"uk-form-small",sLengthSelect:"uk-form-small",sProcessing:"dataTables_processing uk-panel"});g.ext.renderer.pageButton.uikit=function(a,h,u,v,l,q){var r=new g.Api(a),w=a.oClasses,m=a.oLanguage.oPaginate,x=a.oLanguage.oAria.paginate||{},f,d,s=0,t=function(c,g){var n,h,k,e,p=function(a){a.preventDefault();!b(a.currentTarget).hasClass("disabled")&&r.page()!=a.data.action&&r.page(a.data.action).draw("page")};
n=0;for(h=g.length;n<h;n++)if(e=g[n],b.isArray(e))t(c,e);else{d=f="";switch(e){case "ellipsis":f='<i class="uk-icon-ellipsis-h"></i>';d="uk-disabled disabled";break;case "first":f='<i class="uk-icon-angle-double-left"></i> '+m.sFirst;d=0<l?"":" uk-disabled disabled";break;case "previous":f='<i class="uk-icon-angle-left"></i> '+m.sPrevious;d=0<l?"":"uk-disabled disabled";break;case "next":f=m.sNext+' <i class="uk-icon-angle-right"></i>';d=l<q-1?"":"uk-disabled disabled";break;case "last":f=m.sLast+
' <i class="uk-icon-angle-double-right"></i>';d=l<q-1?"":" uk-disabled disabled";break;default:f=e+1,d=l===e?"uk-active":""}f&&(k=b("<li>",{"class":w.sPageButton+" "+d,id:0===u&&"string"===typeof e?a.sTableId+"_"+e:null}).append(b(-1!=d.indexOf("disabled")||-1!=d.indexOf("active")?"<span>":"<a>",{href:"#","aria-controls":a.sTableId,"aria-label":x[e],"data-dt-idx":s,tabindex:a.iTabIndex}).html(f)).appendTo(c),a.oApi._fnBindAction(k,{action:e},p),s++)}},k;try{k=b(h).find(c.activeElement).data("dt-idx")}catch(p){}t(b(h).empty().html('<ul class="uk-pagination uk-pagination-right"/>').children("ul"),
v);k&&b(h).find("[data-dt-idx="+k+"]").focus()};return g});
|