HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1780863/root/usr/share/javascript/jquery-tablesorter/js/widgets/
Upload File :
Current File : //proc/1780863/root/usr/share/javascript/jquery-tablesorter/js/widgets/widget-uitheme.min.js
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){

/*! Widget: uitheme - updated 2018-03-18 (v2.30.0) */
!function(D){"use strict";var A=D.tablesorter||{};A.themes={bootstrap:{table:"table table-bordered table-striped",caption:"caption",header:"bootstrap-header",sortNone:"",sortAsc:"",sortDesc:"",active:"",hover:"",icons:"",iconSortNone:"bootstrap-icon-unsorted",iconSortAsc:"glyphicon glyphicon-chevron-up",iconSortDesc:"glyphicon glyphicon-chevron-down",filterRow:"",footerRow:"",footerCells:"",even:"",odd:""},jui:{table:"ui-widget ui-widget-content ui-corner-all",caption:"ui-widget-content",header:"ui-widget-header ui-corner-all ui-state-default",sortNone:"",sortAsc:"",sortDesc:"",active:"ui-state-active",hover:"ui-state-hover",icons:"ui-icon",iconSortNone:"ui-icon-carat-2-n-s ui-icon-caret-2-n-s",iconSortAsc:"ui-icon-carat-1-n ui-icon-caret-1-n",iconSortDesc:"ui-icon-carat-1-s ui-icon-caret-1-s",filterRow:"",footerRow:"",footerCells:"",even:"ui-widget-content",odd:"ui-state-default"}},D.extend(A.css,{wrapper:"tablesorter-wrapper"}),A.addWidget({id:"uitheme",priority:10,format:function(e,o,t){var s,r,i,a,n,c,l,d,h,m,u,p,v=A.themes,f=o.$table.add(D(o.namespace+"_extra_table")),b=o.$headers.add(D(o.namespace+"_extra_headers")),C=o.theme||"jui",w=v[C]||{},S=D.trim([w.sortNone,w.sortDesc,w.sortAsc,w.active].join(" ")),g=D.trim([w.iconSortNone,w.iconSortDesc,w.iconSortAsc].join(" ")),j=A.debug(o,"uitheme");for(j&&(n=new Date),f.hasClass("tablesorter-"+C)&&o.theme===o.appliedTheme&&t.uitheme_applied||(t.uitheme_applied=!0,h=v[o.appliedTheme]||{},m=(p=!D.isEmptyObject(h))?[h.sortNone,h.sortDesc,h.sortAsc,h.active].join(" "):"",u=p?[h.iconSortNone,h.iconSortDesc,h.iconSortAsc].join(" "):"",p&&(t.zebra[0]=D.trim(" "+t.zebra[0].replace(" "+h.even,"")),t.zebra[1]=D.trim(" "+t.zebra[1].replace(" "+h.odd,"")),o.$tbodies.children().removeClass([h.even,h.odd].join(" "))),w.even&&(t.zebra[0]+=" "+w.even),w.odd&&(t.zebra[1]+=" "+w.odd),f.children("caption").removeClass(h.caption||"").addClass(w.caption),v=f.removeClass((o.appliedTheme?"tablesorter-"+(o.appliedTheme||""):"")+" "+(h.table||"")).addClass("tablesorter-"+C+" "+(w.table||"")).children("tfoot"),o.appliedTheme=o.theme,v.length&&v.children("tr").removeClass(h.footerRow||"").addClass(w.footerRow).children("th, td").removeClass(h.footerCells||"").addClass(w.footerCells),b.removeClass((p?[h.header,h.hover,m].join(" "):"")||"").addClass(w.header).not(".sorter-false").unbind("mouseenter.tsuitheme mouseleave.tsuitheme").bind("mouseenter.tsuitheme mouseleave.tsuitheme",function(e){D(this)["mouseenter"===e.type?"addClass":"removeClass"](w.hover||"")}),b.each(function(){var e=D(this);e.find("."+A.css.wrapper).length||e.wrapInner('<div class="'+A.css.wrapper+'" style="position:relative;height:100%;width:100%"></div>')}),o.cssIcon&&b.find("."+A.css.icon).removeClass(p?[h.icons,u].join(" "):"").addClass(w.icons||""),A.hasWidget(o.table,"filter")&&(r=function(){f.children("thead").children("."+A.css.filterRow).removeClass(p&&h.filterRow||"").addClass(w.filterRow||"")},t.filter_initialized?r():f.one("filterInit",function(){r()}))),s=0;s<o.columns;s++)c=o.$headers.add(D(o.namespace+"_extra_headers")).not(".sorter-false").filter('[data-column="'+s+'"]'),l=A.css.icon?c.find("."+A.css.icon):D(),(d=b.not(".sorter-false").filter('[data-column="'+s+'"]:last')).length&&(c.removeClass(S),l.removeClass(g),d[0].sortDisabled?l.removeClass(w.icons||""):(i=w.sortNone,a=w.iconSortNone,d.hasClass(A.css.sortAsc)?(i=[w.sortAsc,w.active].join(" "),a=w.iconSortAsc):d.hasClass(A.css.sortDesc)&&(i=[w.sortDesc,w.active].join(" "),a=w.iconSortDesc),c.addClass(i),l.addClass(a||"")));j&&console.log("uitheme >> Applied "+C+" theme"+A.benchmark(n))},remove:function(e,o,t,s){var r,i,a,n,c;t.uitheme_applied&&(r=o.$table,i=o.appliedTheme||"jui",a=A.themes[i]||A.themes.jui,n=r.children("thead").children(),c=a.sortNone+" "+a.sortDesc+" "+a.sortAsc,o=a.iconSortNone+" "+a.iconSortDesc+" "+a.iconSortAsc,r.removeClass("tablesorter-"+i+" "+a.table),t.uitheme_applied=!1,s||(r.find(A.css.header).removeClass(a.header),n.unbind("mouseenter.tsuitheme mouseleave.tsuitheme").removeClass(a.hover+" "+c+" "+a.active).filter("."+A.css.filterRow).removeClass(a.filterRow),n.find("."+A.css.icon).removeClass(a.icons+" "+o)))}})}(jQuery);return jQuery;}));