datatables.net-buttons
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -1,2 +0,2 @@ | ||
/*! Buttons for DataTables 2.0.2 | ||
/*! Buttons for DataTables 2.1.0 | ||
* ©2016-2021 SpryMedia Ltd - datatables.net/license | ||
@@ -1846,3 +1846,3 @@ */ | ||
*/ | ||
Buttons.version = '2.0.2'; | ||
Buttons.version = '2.1.0'; | ||
@@ -1849,0 +1849,0 @@ |
/*! | ||
Buttons for DataTables 2.0.2 | ||
Buttons for DataTables 2.1.0 | ||
©2016-2021 SpryMedia Ltd - datatables.net/license | ||
@@ -38,3 +38,3 @@ */ | ||
b.trim)a=a.replace(/^\s+|\s+$/g,"");if(!b||b.stripNewlines)a=a.replace(/\n/g," ");if(!b||b.decodeEntities)M.innerHTML=a,a=M.value;return a};v.defaults={buttons:["copy","excel","csv","pdf","print"],name:"main",tabIndex:0,dom:{container:{tag:"div",className:"dt-buttons"},collection:{tag:"div",className:""},button:{tag:"button",className:"dt-button",active:"active",disabled:"disabled",spacerClass:""},buttonLiner:{tag:"span",className:""},split:{tag:"div",className:"dt-button-split"},splitWrapper:{tag:"div", | ||
className:"dt-btn-split-wrapper"},splitDropdown:{tag:"button",text:"▼",className:"dt-btn-split-drop",align:"split-right",splitAlignClass:"dt-button-split-left"},splitDropdownButton:{tag:"button",className:"dt-btn-split-drop-button dt-button"},splitCollection:{tag:"div",className:"dt-button-split-collection"}}};v.version="2.0.2";f.extend(y,{collection:{text:function(a){return a.i18n("buttons.collection","Collection")},className:"buttons-collection",init:function(a,b,c){b.attr("aria-expanded", | ||
className:"dt-btn-split-wrapper"},splitDropdown:{tag:"button",text:"▼",className:"dt-btn-split-drop",align:"split-right",splitAlignClass:"dt-button-split-left"},splitDropdownButton:{tag:"button",className:"dt-btn-split-drop-button dt-button"},splitCollection:{tag:"div",className:"dt-button-split-collection"}}};v.version="2.1.0";f.extend(y,{collection:{text:function(a){return a.i18n("buttons.collection","Collection")},className:"buttons-collection",init:function(a,b,c){b.attr("aria-expanded", | ||
!1)},action:function(a,b,c,d){d._collection.parents("body").length?this.popover(!1,d):this.popover(d._collection,d)},attr:{"aria-haspopup":!0}},split:{text:function(a){return a.i18n("buttons.split","Split")},className:"buttons-split",init:function(a,b,c){return b.attr("aria-expanded",!1)},action:function(a,b,c,d){this.popover(d._collection,d)},attr:{"aria-haspopup":!0}},copy:function(a,b){if(y.copyHtml5)return"copyHtml5"},csv:function(a,b){if(y.csvHtml5&&y.csvHtml5.available(a,b))return"csvHtml5"}, | ||
@@ -41,0 +41,0 @@ excel:function(a,b){if(y.excelHtml5&&y.excelHtml5.available(a,b))return"excelHtml5"},pdf:function(a,b){if(y.pdfHtml5&&y.pdfHtml5.available(a,b))return"pdfHtml5"},pageLength:function(a){a=a.settings()[0].aLengthMenu;var b=[],c=[];if(Array.isArray(a[0]))b=a[0],c=a[1];else for(var d=0;d<a.length;d++){var k=a[d];f.isPlainObject(k)?(b.push(k.value),c.push(k.label)):(b.push(k),c.push(k))}return{extend:"collection",text:function(e){return e.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"}, |
@@ -6,3 +6,3 @@ { | ||
"types": "./types/types.d.ts", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"files": [ | ||
@@ -9,0 +9,0 @@ "js/**/*.js", |