diff --git a/ajax/libs/datatables-colvis/1.1.0/css/datatables.colvis.jqueryui.min.css b/ajax/libs/datatables-colvis/1.1.0/css/datatables.colvis.jqueryui.min.css new file mode 100644 index 000000000..e67b5ff7c --- /dev/null +++ b/ajax/libs/datatables-colvis/1.1.0/css/datatables.colvis.jqueryui.min.css @@ -0,0 +1 @@ +button.ColVis_Button,ul.ColVis_collection li{padding:.5em}ul.ColVis_collection{margin:0;padding:0}ul.ColVis_collection li{clear:both;display:block;text-align:left;margin:-1px 0 0 0}ul.ColVis_collection li span{display:inline-block;padding-left:.5em;cursor:pointer} \ No newline at end of file diff --git a/ajax/libs/datatables-colvis/1.1.0/css/datatables.colvis.min.css b/ajax/libs/datatables-colvis/1.1.0/css/datatables.colvis.min.css new file mode 100644 index 000000000..993fda2f5 --- /dev/null +++ b/ajax/libs/datatables-colvis/1.1.0/css/datatables.colvis.min.css @@ -0,0 +1 @@ +div.ColVis{float:right;margin-bottom:1em}button.ColVis_Button,ul.ColVis_collection li{position:relative;float:left;margin-right:3px;padding:5px 8px;border:1px solid #999;cursor:pointer;*cursor:hand;font-size:.88em;color:#000!important;white-space:nowrap;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;-webkit-box-shadow:1px 1px 3px #ccc;-moz-box-shadow:1px 1px 3px #ccc;-ms-box-shadow:1px 1px 3px #ccc;-o-box-shadow:1px 1px 3px #ccc;box-shadow:1px 1px 3px #ccc;background:#fff;background:-webkit-linear-gradient(top,#fff 0,#f3f3f3 89%,#f9f9f9 100%);background:-moz-linear-gradient(top,#fff 0,#f3f3f3 89%,#f9f9f9 100%);background:-ms-linear-gradient(top,#fff 0,#f3f3f3 89%,#f9f9f9 100%);background:-o-linear-gradient(top,#fff 0,#f3f3f3 89%,#f9f9f9 100%);background:linear-gradient(top,#fff 0,#f3f3f3 89%,#f9f9f9 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f9f9f9', GradientType=0)}.ColVis_Button:hover,ul.ColVis_collection li:hover{border:1px solid #666;text-decoration:none!important;-webkit-box-shadow:1px 1px 3px #999;-moz-box-shadow:1px 1px 3px #999;-ms-box-shadow:1px 1px 3px #999;-o-box-shadow:1px 1px 3px #999;box-shadow:1px 1px 3px #999;background:#f3f3f3;background:-webkit-linear-gradient(top,#f3f3f3 0,#e2e2e2 89%,#f4f4f4 100%);background:-moz-linear-gradient(top,#f3f3f3 0,#e2e2e2 89%,#f4f4f4 100%);background:-ms-linear-gradient(top,#f3f3f3 0,#e2e2e2 89%,#f4f4f4 100%);background:-o-linear-gradient(top,#f3f3f3 0,#e2e2e2 89%,#f4f4f4 100%);background:linear-gradient(top,#f3f3f3 0,#e2e2e2 89%,#f4f4f4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3f3f3', endColorstr='#f4f4f4', GradientType=0)}button.ColVis_Button{height:30px;padding:3px 8px}button.ColVis_Button::-moz-focus-inner{border:0!important;padding:0}button.ColVis_Button:active{outline:0}div.ColVis_collectionBackground{position:fixed;top:0;left:0;height:100%;width:100%;background-color:#000;z-index:1100}ul.ColVis_collection{width:150px;padding:8px 8px 4px;margin:0;border:1px solid #ccc;border:1px solid rgba(0,0,0,.4);background-color:#f3f3f3;background-color:rgba(255,255,255,.3);overflow:hidden;z-index:2002;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;-webkit-box-shadow:3px 3px 5px rgba(0,0,0,.3);-moz-box-shadow:3px 3px 5px rgba(0,0,0,.3);-ms-box-shadow:3px 3px 5px rgba(0,0,0,.3);-o-box-shadow:3px 3px 5px rgba(0,0,0,.3);box-shadow:3px 3px 5px rgba(0,0,0,.3)}ul.ColVis_collection li{position:relative;height:auto;left:0;right:0;padding:.5em;display:block;float:none;margin-bottom:4px;-webkit-box-shadow:1px 1px 3px #999;-moz-box-shadow:1px 1px 3px #999;-ms-box-shadow:1px 1px 3px #999;-o-box-shadow:1px 1px 3px #999;box-shadow:1px 1px 3px #999;text-align:left}ul.ColVis_collection li.ColVis_Button:hover{border:1px solid #999;background-color:#f0f0f0}ul.ColVis_collection li span{display:inline-block;padding-left:.5em;cursor:pointer}ul.ColVis_collection li.ColVis_Special{border-color:#555;background:#ededed;background:-webkit-linear-gradient(top,rgba(237,237,237,1) 0,rgba(214,214,214,1) 77%,rgba(232,232,232,1) 100%);background:-moz-linear-gradient(top,rgba(237,237,237,1) 0,rgba(214,214,214,1) 77%,rgba(232,232,232,1) 100%);background:-ms-linear-gradient(top,rgba(237,237,237,1) 0,rgba(214,214,214,1) 77%,rgba(232,232,232,1) 100%);background:-o-linear-gradient(top,rgba(237,237,237,1) 0,rgba(214,214,214,1) 77%,rgba(232,232,232,1) 100%);background:linear-gradient(to bottom,rgba(237,237,237,1) 0,rgba(214,214,214,1) 77%,rgba(232,232,232,1) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#e8e8e8', GradientType=0)}ul.ColVis_collection li.ColVis_Special:hover{background:#e2e2e2;background:-webkit-linear-gradient(top,#d0d0d0 0,#d5d5d5 89%,#e2e2e2 100%);background:-moz-linear-gradient(top,#d0d0d0 0,#d5d5d5 89%,#e2e2e2 100%);background:-ms-linear-gradient(top,#d0d0d0 0,#d5d5d5 89%,#e2e2e2 100%);background:-o-linear-gradient(top,#d0d0d0 0,#d5d5d5 89%,#e2e2e2 100%);background:linear-gradient(top,#d0d0d0 0,#d5d5d5 89%,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3f3f3', endColorstr='#e2e2e2', GradientType=0)}span.ColVis_radio{display:inline-block;width:20px}div.ColVis_catcher{position:absolute;z-index:1101}.disabled{color:#999} \ No newline at end of file diff --git a/ajax/libs/datatables-colvis/1.1.0/js/datatables.colvis.min.js b/ajax/libs/datatables-colvis/1.1.0/js/datatables.colvis.min.js new file mode 100644 index 000000000..ab2bd8f4f --- /dev/null +++ b/ajax/libs/datatables-colvis/1.1.0/js/datatables.colvis.min.js @@ -0,0 +1 @@ +!function(a,b,c){var d=function(a){"use strict";var e=function(b,c){return this.CLASS&&"ColVis"==this.CLASS||alert("Warning: ColVis must be initialised with the keyword 'new'"),"undefined"==typeof c&&(c={}),a.fn.dataTable.camelToHungarian&&a.fn.dataTable.camelToHungarian(e.defaults,c),this.s={dt:null,oInit:c,hidden:!0,abOriginal:[]},this.dom={wrapper:null,button:null,collection:null,background:null,catcher:null,buttons:[],groupButtons:[],restore:null},e.aInstances.push(this),this.s.dt=a.fn.dataTable.Api?new a.fn.dataTable.Api(b).settings()[0]:b,this._fnConstruct(c),this};return e.prototype={button:function(){return this.dom.wrapper},fnRebuild:function(){this.rebuild()},rebuild:function(){for(var a=this.dom.buttons.length-1;a>=0;a--)this.dom.collection.removeChild(this.dom.buttons[a]);this.dom.buttons.splice(0,this.dom.buttons.length),this.dom.restore&&this.dom.restore.parentNode(this.dom.restore),this._fnAddGroups(),this._fnAddButtons(),this._fnDrawCallback()},_fnConstruct:function(c){this._fnApplyCustomisation(c);var e,f,d=this;for(this.dom.wrapper=b.createElement("div"),this.dom.wrapper.className="ColVis",this.dom.button=a("",{"class":this.s.dt.bJUI?"ColVis_Button ColVis_MasterButton ui-button ui-state-default":"ColVis_Button ColVis_MasterButton"}).append(""+this.s.buttonText+"").bind("mouseover"==this.s.activate?"mouseover":"click",function(a){a.preventDefault(),d._fnCollectionShow()}).appendTo(this.dom.wrapper)[0],this.dom.catcher=this._fnDomCatcher(),this.dom.collection=this._fnDomCollection(),this.dom.background=this._fnDomBackground(),this._fnAddGroups(),this._fnAddButtons(),e=0,f=this.s.dt.aoColumns.length;f>e;e++)this.s.abOriginal.push(this.s.dt.aoColumns[e].bVisible);this.s.dt.aoDrawCallback.push({fn:function(){d._fnDrawCallback.call(d)},sName:"ColVis"}),a(this.s.dt.oInstance).bind("column-reorder",function(a,b,c){for(e=0,f=d.s.aiExclude.length;f>e;e++)d.s.aiExclude[e]=c.aiInvertMapping[d.s.aiExclude[e]];var g=d.s.abOriginal.splice(c.iFrom,1)[0];d.s.abOriginal.splice(c.iTo,0,g),d.fnRebuild()}),this._fnDrawCallback()},_fnApplyCustomisation:function(b){a.extend(!0,this.s,e.defaults,b),!this.s.showAll&&this.s.bShowAll&&(this.s.showAll=this.s.sShowAll),!this.s.restore&&this.s.bRestore&&(this.s.restore=this.s.sRestore);var c=this.s.groups,d=this.s.aoGroups;if(c)for(var f=0,g=c.length;g>f;f++)c[f].title&&(d[f].sTitle=c[f].title),c[f].columns&&(d[f].aiColumns=c[f].columns)},_fnDrawCallback:function(){for(var f,b=this.s.dt.aoColumns,d=this.dom.buttons,e=this.s.aoGroups,g=0,h=d.length;h>g;g++)f=d[g],f.__columnIdx!==c&&a("input",f).prop("checked",b[f.__columnIdx].bVisible);for(var i=function(a){for(var c=0,d=a.length;d>c;c++)if(b[a[c]].bVisible===!1)return!1;return!0},j=function(a){for(var c=0,d=a.length;d>c;c++)if(b[a[c]].bVisible===!0)return!1;return!0},k=0,l=e.length;l>k;k++)i(e[k].aiColumns)?(a("input",this.dom.groupButtons[k]).prop("checked",!0),a("input",this.dom.groupButtons[k]).prop("indeterminate",!1)):j(e[k].aiColumns)?(a("input",this.dom.groupButtons[k]).prop("checked",!1),a("input",this.dom.groupButtons[k]).prop("indeterminate",!1)):a("input",this.dom.groupButtons[k]).prop("indeterminate",!0)},_fnAddGroups:function(){var a;if("undefined"!=typeof this.s.aoGroups)for(var b=0,c=this.s.aoGroups.length;c>b;b++)a=this._fnDomGroupButton(b),this.dom.groupButtons.push(a),this.dom.buttons.push(a),this.dom.collection.appendChild(a)},_fnAddButtons:function(){var b,c=this.s.dt.aoColumns;if(-1===a.inArray("all",this.s.aiExclude))for(var d=0,e=c.length;e>d;d++)-1===a.inArray(d,this.s.aiExclude)&&(b=this._fnDomColumnButton(d),b.__columnIdx=d,this.dom.buttons.push(b));"alpha"===this.s.order&&this.dom.buttons.sort(function(a,b){var d=c[a.__columnIdx].sTitle,e=c[b.__columnIdx].sTitle;return d===e?0:e>d?-1:1}),this.s.restore&&(b=this._fnDomRestoreButton(),b.className+=" ColVis_Restore",this.dom.buttons.push(b)),this.s.showAll&&(b=this._fnDomShowAllButton(),b.className+=" ColVis_ShowAll",this.dom.buttons.push(b)),a(this.dom.collection).append(this.dom.buttons)},_fnDomRestoreButton:function(){var b=this,c=this.s.dt;return a('