mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-28 10:24:10 +01:00
Dev: Use search panes release number
This commit is contained in:
parent
c0071db866
commit
49c2ccf8c7
@ -1 +1 @@
|
||||
0d849de015cee79285028c1d910b206626b9ad7c
|
||||
649cb102e0ad7e006bb9287c4d4244b20ff20a41
|
||||
|
@ -95,7 +95,7 @@ $.fn.dataTable.pipeline = function ( opts ) {
|
||||
$.extend( request, conf.data );
|
||||
}
|
||||
|
||||
return $.ajax( {
|
||||
settings.jqXHR = $.ajax( {
|
||||
"type": conf.method,
|
||||
"url": conf.url,
|
||||
"data": request,
|
||||
@ -276,7 +276,7 @@ $.fn.dataTable.pipeline = function ( opts ) {
|
||||
$.extend( request, conf.data );
|
||||
}
|
||||
|
||||
return $.ajax( {
|
||||
settings.jqXHR = $.ajax( {
|
||||
"type": conf.method,
|
||||
"url": conf.url,
|
||||
"data": request,
|
||||
|
@ -5,7 +5,7 @@
|
||||
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, user-scalable=no">
|
||||
<title>DataTables example - Material Design (Tech. preview)</title>
|
||||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/material-components-web/4.0.0/material-components-web.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-lite/1.1.0/material.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../media/css/dataTables.material.css">
|
||||
<link rel="stylesheet" type="text/css" href="../resources/syntax/shCore.css">
|
||||
<link rel="stylesheet" type="text/css" href="../resources/demo.css">
|
||||
@ -21,11 +21,10 @@
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#example').DataTable( {
|
||||
autoWidth: false,
|
||||
columnDefs: [
|
||||
{
|
||||
targets: ['_all'],
|
||||
className: 'mdc-data-table__cell'
|
||||
targets: [ 0, 1, 2 ],
|
||||
className: 'mdl-data-table__cell--non-numeric'
|
||||
}
|
||||
]
|
||||
} );
|
||||
@ -536,11 +535,10 @@ $(document).ready(function() {
|
||||
<div class="js">
|
||||
<p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
|
||||
$('#example').DataTable( {
|
||||
autoWidth: false,
|
||||
columnDefs: [
|
||||
{
|
||||
targets: ['_all'],
|
||||
className: 'mdc-data-table__cell'
|
||||
targets: [ 0, 1, 2 ],
|
||||
className: 'mdl-data-table__cell--non-numeric'
|
||||
}
|
||||
]
|
||||
} );
|
||||
@ -570,7 +568,7 @@ $(document).ready(function() {
|
||||
<ul>
|
||||
<li>
|
||||
<a href=
|
||||
"https://cdnjs.cloudflare.com/ajax/libs/material-components-web/4.0.0/material-components-web.min.css">https://cdnjs.cloudflare.com/ajax/libs/material-components-web/4.0.0/material-components-web.min.css</a>
|
||||
"https://cdnjs.cloudflare.com/ajax/libs/material-design-lite/1.1.0/material.min.css">https://cdnjs.cloudflare.com/ajax/libs/material-design-lite/1.1.0/material.min.css</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="../../media/css/dataTables.material.css">../../media/css/dataTables.material.css</a>
|
||||
|
@ -19,53 +19,14 @@ div.dataTables_wrapper div.dataTables_processing {
|
||||
div.dataTables_wrapper div.dataTables_paginate {
|
||||
text-align: right;
|
||||
}
|
||||
div.dataTables_wrapper div.mdc-grid.dt-table {
|
||||
div.dataTables_wrapper div.mdl-grid.dt-table {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
div.dataTables_wrapper div.mdc-grid.dt-table > div.mdc-cell {
|
||||
div.dataTables_wrapper div.mdl-grid.dt-table > div.mdl-cell {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
div.dataTables_wrapper table.mdc-data-table__table {
|
||||
table-layout: auto;
|
||||
}
|
||||
div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc {
|
||||
padding-right: 30px;
|
||||
}
|
||||
div.dataTables_wrapper table.mdc-data-table__table thead tr th:active {
|
||||
outline: none;
|
||||
}
|
||||
div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting {
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
}
|
||||
div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc:before, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc:after, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc:before, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc:after, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting:before, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting:after {
|
||||
position: absolute;
|
||||
display: block;
|
||||
opacity: 0.3;
|
||||
right: 1em;
|
||||
line-height: 9px;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc:before, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc:before, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting:before {
|
||||
bottom: 50%;
|
||||
content: "\25B4";
|
||||
}
|
||||
div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc:after, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc:after, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting:after {
|
||||
top: 50%;
|
||||
content: "\25BE";
|
||||
}
|
||||
div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc:before, div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc:after {
|
||||
opacity: 0.8;
|
||||
}
|
||||
div.dataTables_wrapper .mdc-data-table__cell {
|
||||
border: 1px solid rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
div.dataTables_wrapper div.mdc-layout-grid {
|
||||
margin: 0px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
table.dataTable thead > tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_desc, table.dataTable thead > tr > th.sorting,
|
||||
table.dataTable thead > tr > td.sorting_asc,
|
||||
|
2
media/css/dataTables.material.min.css
vendored
2
media/css/dataTables.material.min.css
vendored
@ -1 +1 @@
|
||||
div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter input{margin-left:0.5em}div.dataTables_wrapper div.dataTables_info{padding-top:10px;white-space:nowrap}div.dataTables_wrapper div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;text-align:center}div.dataTables_wrapper div.dataTables_paginate{text-align:right}div.dataTables_wrapper div.mdc-grid.dt-table{padding-top:0;padding-bottom:0}div.dataTables_wrapper div.mdc-grid.dt-table>div.mdc-cell{margin-top:0;margin-bottom:0}div.dataTables_wrapper table.mdc-data-table__table{table-layout:auto}div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc{padding-right:30px}div.dataTables_wrapper table.mdc-data-table__table thead tr th:active{outline:none}div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting{cursor:pointer;position:relative}div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc:before,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc:after,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc:before,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc:after,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting:before,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting:after{position:absolute;display:block;opacity:0.3;right:1em;line-height:9px;font-size:0.9em}div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc:before,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc:before,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting:before{bottom:50%;content:"\25B4"}div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc:after,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc:after,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting:after{top:50%;content:"\25BE"}div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_asc:before,div.dataTables_wrapper table.mdc-data-table__table thead tr th.sorting_desc:after{opacity:0.8}div.dataTables_wrapper .mdc-data-table__cell{border:1px solid rgba(0,0,0,0.12)}div.dataTables_wrapper div.mdc-layout-grid{margin:0px;padding:5px}table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc,table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>td.sorting{padding-right:30px}table.dataTable thead>tr>th:active,table.dataTable thead>tr>td:active{outline:none}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable thead .sorting:before,table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:before,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:before,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_asc_disabled:before,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:before,table.dataTable thead .sorting_desc_disabled:after{position:absolute;bottom:11px;display:block;opacity:0.3;font-size:1.3em}table.dataTable thead .sorting:before,table.dataTable thead .sorting_asc:before,table.dataTable thead .sorting_desc:before,table.dataTable thead .sorting_asc_disabled:before,table.dataTable thead .sorting_desc_disabled:before{right:1em;content:"\2191"}table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{right:0.5em;content:"\2193"}table.dataTable thead .sorting_asc:before,table.dataTable thead .sorting_desc:after{opacity:1}table.dataTable thead .sorting_asc_disabled:before,table.dataTable thead .sorting_desc_disabled:after{opacity:0}
|
||||
div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter input{margin-left:0.5em}div.dataTables_wrapper div.dataTables_info{padding-top:10px;white-space:nowrap}div.dataTables_wrapper div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;text-align:center}div.dataTables_wrapper div.dataTables_paginate{text-align:right}div.dataTables_wrapper div.mdl-grid.dt-table{padding-top:0;padding-bottom:0}div.dataTables_wrapper div.mdl-grid.dt-table>div.mdl-cell{margin-top:0;margin-bottom:0}table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc,table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>td.sorting{padding-right:30px}table.dataTable thead>tr>th:active,table.dataTable thead>tr>td:active{outline:none}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable thead .sorting:before,table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:before,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:before,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_asc_disabled:before,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:before,table.dataTable thead .sorting_desc_disabled:after{position:absolute;bottom:11px;display:block;opacity:0.3;font-size:1.3em}table.dataTable thead .sorting:before,table.dataTable thead .sorting_asc:before,table.dataTable thead .sorting_desc:before,table.dataTable thead .sorting_asc_disabled:before,table.dataTable thead .sorting_desc_disabled:before{right:1em;content:"\2191"}table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{right:0.5em;content:"\2193"}table.dataTable thead .sorting_asc:before,table.dataTable thead .sorting_desc:after{opacity:1}table.dataTable thead .sorting_asc_disabled:before,table.dataTable thead .sorting_desc_disabled:after{opacity:0}
|
||||
|
@ -46,29 +46,27 @@ var DataTable = $.fn.dataTable;
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
dom:
|
||||
"<'mdc-layout-grid'<'mdc-layout-grid__inner'"+
|
||||
"<'mdc-cell mdc-layout-grid__cell--span-6'l>"+
|
||||
"<'mdc-cell mdc-layout-grid__cell--span-6'f>"+
|
||||
">>"+
|
||||
"<'mdc-layout-grid dt-table'<'mdc-layout-grid__inner'"+
|
||||
"<'mdc-cell mdc-layout-grid__cell--span-12'tr>"+
|
||||
">>"+
|
||||
"<'mdc-layout-grid'<'mdc-layout-grid__inner'"+
|
||||
"<'mdc-cell mdc-layout-grid__cell--span-4'i>"+
|
||||
"<'mdc-cell mdc-layout-grid__cell--span-8'p>"+
|
||||
">>",
|
||||
"<'mdl-grid'"+
|
||||
"<'mdl-cell mdl-cell--6-col'l>"+
|
||||
"<'mdl-cell mdl-cell--6-col'f>"+
|
||||
">"+
|
||||
"<'mdl-grid dt-table'"+
|
||||
"<'mdl-cell mdl-cell--12-col'tr>"+
|
||||
">"+
|
||||
"<'mdl-grid'"+
|
||||
"<'mdl-cell mdl-cell--4-col'i>"+
|
||||
"<'mdl-cell mdl-cell--8-col'p>"+
|
||||
">",
|
||||
renderer: 'material'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( DataTable.ext.classes, {
|
||||
sTable: "mdc-data-table__table",
|
||||
sHeaderTH: "mdc-data-table__header-row",
|
||||
sWrapper: "dataTables_wrapper form-inline dt-material mdc-data-table",
|
||||
sFilterInput: "form-control input-sm",
|
||||
sLengthSelect: "form-control input-sm",
|
||||
sProcessing: "dataTables_processing panel panel-default"
|
||||
sWrapper: "dataTables_wrapper form-inline dt-material",
|
||||
sFilterInput: "form-control input-sm",
|
||||
sLengthSelect: "form-control input-sm",
|
||||
sProcessing: "dataTables_processing panel panel-default"
|
||||
} );
|
||||
|
||||
|
||||
@ -137,12 +135,12 @@ DataTable.ext.renderer.pageButton.material = function ( settings, host, idx, but
|
||||
}
|
||||
|
||||
if ( active ) {
|
||||
btnClass += ' mdc-button--raised mdc-button--colored';
|
||||
btnClass += ' mdl-button--raised mdl-button--colored';
|
||||
}
|
||||
|
||||
if ( btnDisplay ) {
|
||||
node = $('<button>', {
|
||||
'class': 'mdc-button '+btnClass,
|
||||
'class': 'mdl-button '+btnClass,
|
||||
'id': idx === 0 && typeof button === 'string' ?
|
||||
settings.sTableId +'_'+ button :
|
||||
null,
|
||||
@ -188,63 +186,6 @@ DataTable.ext.renderer.pageButton.material = function ( settings, host, idx, but
|
||||
}
|
||||
};
|
||||
|
||||
$(document).on('init.dt', function(e, ctx) {
|
||||
if (e.namespace !== 'dt') {
|
||||
return;
|
||||
}
|
||||
|
||||
var api = new $.fn.dataTable.Api(ctx);
|
||||
|
||||
applyFormatting();
|
||||
})
|
||||
|
||||
$(document).on('draw.dt', function(e, ctx) {
|
||||
if (e.namespace !== 'dt') {
|
||||
return;
|
||||
}
|
||||
|
||||
var api = new $.fn.dataTable.Api(ctx);
|
||||
|
||||
applyFormatting();
|
||||
})
|
||||
|
||||
function applyFormatting(){
|
||||
var kid = $('table.mdc-data-table__table').children();
|
||||
for(var i = 0; i < kid.length; i++){
|
||||
if(kid[i].tagName === 'THEAD'){
|
||||
var rows = $(kid[i]).children();
|
||||
console.log(rows)
|
||||
for(var j = 0; j < rows.length; j++){
|
||||
if (rows[j].tagName === 'TR') {
|
||||
$(rows[j]).addClass('mdc-data-table__header-row')
|
||||
var ths = $(rows[j]).children();
|
||||
for(var k = 0; k < ths.length; k++) {
|
||||
if (ths[k].tagName === 'TH') {
|
||||
$(ths[k]).addClass('mdc-data-table__header-cell')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(kid[i].tagName === 'TBODY'){
|
||||
$(kid[i]).addClass('mdc-data-table__content')
|
||||
var rows = $(kid[i]).children();
|
||||
for(var j = 0; j < rows.length; j++){
|
||||
if (rows[j].tagName === 'TR') {
|
||||
$(rows[j]).addClass('mdc-data-table__row')
|
||||
var ths = $(rows[j]).children();
|
||||
for(var k = 0; k < ths.length; k++) {
|
||||
if (ths[k].tagName === 'TD') {
|
||||
$(ths[k]).addClass('mdc-data-table__cell')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log(kid)
|
||||
}
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
15
media/js/dataTables.material.min.js
vendored
15
media/js/dataTables.material.min.js
vendored
@ -2,13 +2,10 @@
|
||||
DataTables Bootstrap 3 integration
|
||||
©2011-2015 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var f=a.length,d=0;d<f;d++){var k=a[d];if(b.call(c,k,d,a))return{i:d,v:k}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d<e;d++){var k=a[d];if(b.call(c,k,d,a))return{i:d,v:k}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
|
||||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){a=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,a];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.polyfill=function(a,b,c,f){if(b){c=$jscomp.global;a=a.split(".");for(f=0;f<a.length-1;f++){var d=a[f];d in c||(c[d]={});c=c[d]}a=a[a.length-1];f=c[a];b=b(f);b!=f&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
|
||||
(function(a){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(b){return a(b,window,document)}):"object"===typeof exports?module.exports=function(b,c){b||(b=window);c&&c.fn.dataTable||(c=require("datatables.net")(b,c).$);return a(c,b,b.document)}:a(jQuery,window,document)})(function(a,b,c,f){function d(){for(var c=a("table.mdc-data-table__table").children(),b=0;b<c.length;b++)if("THEAD"===c[b].tagName){var d=a(c[b]).children();console.log(d);for(var e=0;e<d.length;e++)if("TR"===
|
||||
d[e].tagName){a(d[e]).addClass("mdc-data-table__header-row");for(var g=a(d[e]).children(),l=0;l<g.length;l++)"TH"===g[l].tagName&&a(g[l]).addClass("mdc-data-table__header-cell")}}else if("TBODY"===c[b].tagName)for(a(c[b]).addClass("mdc-data-table__content"),d=a(c[b]).children(),e=0;e<d.length;e++)if("TR"===d[e].tagName)for(a(d[e]).addClass("mdc-data-table__row"),g=a(d[e]).children(),l=0;l<g.length;l++)"TD"===g[l].tagName&&a(g[l]).addClass("mdc-data-table__cell");console.log(c)}var k=a.fn.dataTable;
|
||||
a.extend(!0,k.defaults,{dom:"<'mdc-layout-grid'<'mdc-layout-grid__inner'<'mdc-cell mdc-layout-grid__cell--span-6'l><'mdc-cell mdc-layout-grid__cell--span-6'f>>><'mdc-layout-grid dt-table'<'mdc-layout-grid__inner'<'mdc-cell mdc-layout-grid__cell--span-12'tr>>><'mdc-layout-grid'<'mdc-layout-grid__inner'<'mdc-cell mdc-layout-grid__cell--span-4'i><'mdc-cell mdc-layout-grid__cell--span-8'p>>>",renderer:"material"});a.extend(k.ext.classes,{sTable:"mdc-data-table__table",sHeaderTH:"mdc-data-table__header-row",
|
||||
sWrapper:"dataTables_wrapper form-inline dt-material mdc-data-table",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"});k.ext.renderer.pageButton.material=function(b,d,x,e,g,l){var r=new k.Api(b),p=b.oLanguage.oPaginate,w=b.oLanguage.oAria.paginate||{},m,n,t=0,u=function(c,d){var e,f=function(b){b.preventDefault();a(b.currentTarget).hasClass("disabled")||r.page()==b.data.action||r.page(b.data.action).draw("page")};var k=
|
||||
0;for(e=d.length;k<e;k++){var h=d[k];if(a.isArray(h))u(c,h);else{m="";var q=!1;switch(h){case "ellipsis":m="…";n="disabled";break;case "first":m=p.sFirst;n=h+(0<g?"":" disabled");break;case "previous":m=p.sPrevious;n=h+(0<g?"":" disabled");break;case "next":m=p.sNext;n=h+(g<l-1?"":" disabled");break;case "last":m=p.sLast;n=h+(g<l-1?"":" disabled");break;default:m=h+1,n="",q=g===h}q&&(n+=" mdc-button--raised mdc-button--colored");m&&(q=a("<button>",{"class":"mdc-button "+n,id:0===x&&"string"===
|
||||
typeof h?b.sTableId+"_"+h:null,"aria-controls":b.sTableId,"aria-label":w[h],"data-dt-idx":t,tabindex:b.iTabIndex,disabled:-1!==n.indexOf("disabled")}).html(m).appendTo(c),b.oApi._fnBindAction(q,{action:h},f),t++)}}};try{var v=a(d).find(c.activeElement).data("dt-idx")}catch(y){}u(a(d).empty().html('<div class="pagination"/>').children(),e);v!==f&&a(d).find("[data-dt-idx="+v+"]").focus()};a(c).on("init.dt",function(b,c){"dt"===b.namespace&&(new a.fn.dataTable.Api(c),d())});a(c).on("draw.dt",function(b,
|
||||
c){"dt"===b.namespace&&(new a.fn.dataTable.Api(c),d())});return k});
|
||||
$jscomp.polyfill=function(a,b,c,e){if(b){c=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var d=a[e];d in c||(c[d]={});c=c[d]}a=a[a.length-1];e=c[a];b=b(e);b!=e&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
|
||||
(function(a){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(b){return a(b,window,document)}):"object"===typeof exports?module.exports=function(b,c){b||(b=window);c&&c.fn.dataTable||(c=require("datatables.net")(b,c).$);return a(c,b,b.document)}:a(jQuery,window,document)})(function(a,b,c,e){var d=a.fn.dataTable;a.extend(!0,d.defaults,{dom:"<'mdl-grid'<'mdl-cell mdl-cell--6-col'l><'mdl-cell mdl-cell--6-col'f>><'mdl-grid dt-table'<'mdl-cell mdl-cell--12-col'tr>><'mdl-grid'<'mdl-cell mdl-cell--4-col'i><'mdl-cell mdl-cell--8-col'p>>",
|
||||
renderer:"material"});a.extend(d.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-material",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"});d.ext.renderer.pageButton.material=function(b,l,w,x,m,r){var k=new d.Api(b),n=b.oLanguage.oPaginate,y=b.oLanguage.oAria.paginate||{},g,h,t=0,u=function(c,d){var e,l=function(b){b.preventDefault();a(b.currentTarget).hasClass("disabled")||k.page()==b.data.action||k.page(b.data.action).draw("page")};
|
||||
var q=0;for(e=d.length;q<e;q++){var f=d[q];if(a.isArray(f))u(c,f);else{g="";var p=!1;switch(f){case "ellipsis":g="…";h="disabled";break;case "first":g=n.sFirst;h=f+(0<m?"":" disabled");break;case "previous":g=n.sPrevious;h=f+(0<m?"":" disabled");break;case "next":g=n.sNext;h=f+(m<r-1?"":" disabled");break;case "last":g=n.sLast;h=f+(m<r-1?"":" disabled");break;default:g=f+1,h="",p=m===f}p&&(h+=" mdl-button--raised mdl-button--colored");g&&(p=a("<button>",{"class":"mdl-button "+h,id:0===w&&"string"===
|
||||
typeof f?b.sTableId+"_"+f:null,"aria-controls":b.sTableId,"aria-label":y[f],"data-dt-idx":t,tabindex:b.iTabIndex,disabled:-1!==h.indexOf("disabled")}).html(g).appendTo(c),b.oApi._fnBindAction(p,{action:f},l),t++)}}};try{var v=a(l).find(c.activeElement).data("dt-idx")}catch(z){}u(a(l).empty().html('<div class="pagination"/>').children(),x);v!==e&&a(l).find("[data-dt-idx="+v+"]").focus()};return d});
|
||||
|
Loading…
Reference in New Issue
Block a user