- rebuild table scss code to a correct scss/sass code (nesting) - added .table-head-fixed code for default table & dark table - removed unnecessary spaces in Layout.js
7 lines
No EOL
10 KiB
JavaScript
7 lines
No EOL
10 KiB
JavaScript
/*!
|
|
* AdminLTE v3.0.0-beta.2 (https://adminlte.io)
|
|
* Copyright 2014-2019 Colorlib <http://colorlib.com>
|
|
* Licensed under MIT (https://github.com/almasaeed2010/AdminLTE/blob/master/LICENSE)
|
|
*/
|
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).adminlte={})}(this,function(e){"use strict";var i,t,s,n,a,o,r,l,c,h,d,u,f,g,p,m,_,v,y,C,w,b,x,I,E,D,j,S,Q,A,L,M,O,z,P,T,k,H,N,X,q,U,W,Z,R,V,B,F,G,J,K,Y,$,ee,te,ne,ie,se,ae,oe,re,le,ce,he,de,ue,fe,ge,pe,me,_e,ve,ye,Ce,we,be,xe,Ie,Ee,De,je=(i=jQuery,t="ControlSidebar",s="lte.control.sidebar",n=i.fn[t],a=".control-sidebar",o='[data-widget="control-sidebar"]',r=".main-header",l="control-sidebar-open",c="control-sidebar-slide-open",h={slide:!0},d=function(){function n(e,t){this._element=e,this._config=this._getConfig(t)}var e=n.prototype;return e.show=function(){this._config.slide?i("body").removeClass(c):i("body").removeClass(l)},e.collapse=function(){this._config.slide?i("body").addClass(c):i("body").addClass(l)},e.toggle=function(){this._setMargin(),i("body").hasClass(l)||i("body").hasClass(c)?this.show():this.collapse()},e._getConfig=function(e){return i.extend({},h,e)},e._setMargin=function(){i(a).css({top:i(r).innerHeight()})},n._jQueryInterface=function(t){return this.each(function(){var e=i(this).data(s);if(e||(e=new n(this,i(this).data()),i(this).data(s,e)),"undefined"===e[t])throw new Error(t+" is not a function");e[t]()})},n}(),i(document).on("click",o,function(e){e.preventDefault(),d._jQueryInterface.call(i(this),"toggle")}),i.fn[t]=d._jQueryInterface,i.fn[t].Constructor=d,i.fn[t].noConflict=function(){return i.fn[t]=n,d._jQueryInterface},d),Se=(u=jQuery,f="Layout",g="lte.layout",p=u.fn[f],m=".main-header",_=".main-sidebar",v=".main-sidebar .sidebar",y=".content-wrapper",C=".brand-link",w=".control-sidebar",b=".main-footer",x="hold-transition",I="content-fixed",E="sidebar-focused",D="layout-fixed",j="layout-navbar-fixed",S="layout-footer-fixed",Q={scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l"},A=function(){function i(e,t){this._config=t,this._element=e,this._init()}var e=i.prototype;return e.fixLayoutHeight=function(){var e={window:u(window).height(),header:u(m).outerHeight(),footer:u(b).outerHeight(),sidebar:u(v).height()},t=this._max(e);u("body").hasClass(D)?(u(y).css("min-height",t-e.header-e.footer),u(w+" .control-sidebar-content").css("height",t-e.header),"undefined"!=typeof u.fn.overlayScrollbars&&(u(v).overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}),u(w+" .control-sidebar-content").overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}))):e.sidebar<e.window?u(y).css("min-height",e.window-e.header-e.footer):u(y).css("min-height",e.sidebar-e.header),u("body").hasClass(j)&&(u(C).css("height",e.header),u(v).css("margin-top",e.header),u(v).css("margin-top",e.header)),u("body").hasClass(S)&&u(y).css("margin-bottom",e.footer),u("body").hasClass(I)&&u(y).css("height",u(y).css("min-height"))},e._init=function(){var e=this;u("body").removeClass(x),this.fixLayoutHeight(),u(v).on("collapsed.lte.treeview expanded.lte.treeview collapsed.lte.pushmenu expanded.lte.pushmenu",function(){e.fixLayoutHeight()}),u(window).resize(function(){e.fixLayoutHeight()}),u("body, html").css("height","auto")},e._max=function(t){var n=0;return Object.keys(t).forEach(function(e){t[e]>n&&(n=t[e])}),n},i._jQueryInterface=function(n){return this.each(function(){var e=u(this).data(g),t=u.extend({},Q,u(this).data());e||(e=new i(u(this),t),u(this).data(g,e)),"init"===n&&e[n]()})},i}(),u(window).on("load",function(){A._jQueryInterface.call(u("body"))}),u(v+" a").on("focusin",function(){u(_).addClass(E)}),u(v+" a").on("focusout",function(){u(_).removeClass(E)}),u.fn[f]=A._jQueryInterface,u.fn[f].Constructor=A,u.fn[f].noConflict=function(){return u.fn[f]=p,A._jQueryInterface},A),Qe=(L=jQuery,M="PushMenu",z="."+(O="lte.pushmenu"),P=L.fn[M],k={autoCollapseSize:!(T={COLLAPSED:"collapsed"+z,SHOWN:"shown"+z}),screenCollapseSize:768},H='[data-widget="pushmenu"]',N="body",X="#sidebar-overlay",q=".wrapper",U="sidebar-collapse",W="sidebar-open",Z=function(){function i(e,t){this._element=e,this._options=L.extend({},k,t),this._init(),L(X).length||this._addOverlay()}var e=i.prototype;return e.show=function(){L(N).addClass(W).removeClass(U);var e=L.Event(T.SHOWN);L(this._element).trigger(e)},e.collapse=function(){L(N).removeClass(W).addClass(U);var e=L.Event(T.COLLAPSED);L(this._element).trigger(e)},e.isShown=function(){return L(window).width()>=this._options.screenCollapseSize?!L(N).hasClass(U):L(N).hasClass(W)},e.toggle=function(){this.isShown()?this.collapse():this.show()},e.autoCollapse=function(){this._options.autoCollapseSize&&(L(window).width()<=this._options.autoCollapseSize?this.isShown()&&this.toggle():this.isShown()||this.toggle())},e._init=function(){var e=this;this.autoCollapse(),L(window).resize(function(){e.autoCollapse()})},e._addOverlay=function(){var e=this,t=L("<div />",{id:"sidebar-overlay"});t.on("click",function(){e.collapse()}),L(q).append(t)},i._jQueryInterface=function(n){return this.each(function(){var e=L(this).data(O),t=L.extend({},k,L(this).data());e||(e=new i(this,t),L(this).data(O,e)),"toggle"===n&&e[n]()})},i}(),L(document).on("click",H,function(e){e.preventDefault();var t=e.currentTarget;"pushmenu"!==L(t).data("widget")&&(t=L(t).closest(H)),Z._jQueryInterface.call(L(t),"toggle")}),L(window).on("load",function(){Z._jQueryInterface.call(L(H))}),L.fn[M]=Z._jQueryInterface,L.fn[M].Constructor=Z,L.fn[M].noConflict=function(){return L.fn[M]=P,Z._jQueryInterface},Z),Ae=(R=jQuery,V="Treeview",F="."+(B="lte.treeview"),G=R.fn[V],J={SELECTED:"selected"+F,EXPANDED:"expanded"+F,COLLAPSED:"collapsed"+F,LOAD_DATA_API:"load"+F},K=".nav-item",Y=".nav-treeview",$=".menu-open",te="menu-open",ne={trigger:(ee='[data-widget="treeview"]')+" "+".nav-link",animationSpeed:300,accordion:!0},ie=function(){function i(e,t){this._config=t,this._element=e}var e=i.prototype;return e.init=function(){this._setupListeners()},e.expand=function(e,t){var n=this,i=R.Event(J.EXPANDED);if(this._config.accordion){var s=t.siblings($).first(),a=s.find(Y).first();this.collapse(a,s)}e.slideDown(this._config.animationSpeed,function(){t.addClass(te),R(n._element).trigger(i)})},e.collapse=function(e,t){var n=this,i=R.Event(J.COLLAPSED);e.slideUp(this._config.animationSpeed,function(){t.removeClass(te),R(n._element).trigger(i),e.find($+" > "+Y).slideUp(),e.find($).removeClass(te)})},e.toggle=function(e){var t=R(e.currentTarget),n=t.next();if(n.is(Y)){e.preventDefault();var i=t.parents(K).first();i.hasClass(te)?this.collapse(R(n),i):this.expand(R(n),i)}},e._setupListeners=function(){var t=this;R(document).on("click",this._config.trigger,function(e){t.toggle(e)})},i._jQueryInterface=function(n){return this.each(function(){var e=R(this).data(B),t=R.extend({},ne,R(this).data());e||(e=new i(R(this),t),R(this).data(B,e)),"init"===n&&e[n]()})},i}(),R(window).on(J.LOAD_DATA_API,function(){R(ee).each(function(){ie._jQueryInterface.call(R(this),"init")})}),R.fn[V]=ie._jQueryInterface,R.fn[V].Constructor=ie,R.fn[V].noConflict=function(){return R.fn[V]=G,ie._jQueryInterface},ie),Le=(se=jQuery,ae="Widget",re="."+(oe="lte.widget"),le=se.fn[ae],ce={EXPANDED:"expanded"+re,COLLAPSED:"collapsed"+re,MAXIMIZED:"maximized"+re,MINIMIZED:"minimized"+re,REMOVED:"removed"+re},ue='[data-widget="maximize"]',fe=".card",ge=".card-body",pe=".card-footer",me=".fa-minus",_e=".fa-plus",ve="collapsed-card",ye="was-collapsed",Ce="maximized-card",we="fa-minus",be="fa-plus",xe="fa-expand",Ie="fa-compress",Ee={animationSpeed:"normal",collapseTrigger:de='[data-widget="collapse"]',removeTrigger:he='[data-widget="remove"]'},De=function(){function n(e,t){this._element=e,this._parent=e.parents(fe).first(),this._settings=se.extend({},Ee,t)}var e=n.prototype;return e.collapse=function(){var e=this;this._parent.children(ge+", "+pe).slideUp(this._settings.animationSpeed,function(){e._parent.addClass(ve)}),this._element.children(me).addClass(be).removeClass(we);var t=se.Event(ce.COLLAPSED);this._element.trigger(t,this._parent)},e.expand=function(){var e=this;this._parent.children(ge+", "+pe).slideDown(this._settings.animationSpeed,function(){e._parent.removeClass(ve)}),this._element.children(_e).addClass(we).removeClass(be);var t=se.Event(ce.EXPANDED);this._element.trigger(t,this._parent)},e.remove=function(){this._parent.slideUp();var e=se.Event(ce.REMOVED);this._element.trigger(e,this._parent)},e.toggle=function(){this._parent.hasClass(ve)?this.expand():this.collapse()},e.toggleMaximize=function(){var e=this._element.find("i");this._parent.hasClass(Ce)?(e.addClass(xe).removeClass(Ie),this._parent.css("cssText","height:"+this._parent[0].style.height+" !important;width:"+this._parent[0].style.width+" !important; transition: all .15s;").delay(100).queue(function(){se(this).removeClass(Ce),se("html").removeClass(Ce),se(this).trigger(ce.MINIMIZED),se(this).css({height:"inherit",width:"inherit"}),se(this).hasClass(ye)&&se(this).removeClass(ye),se(this).dequeue()})):(e.addClass(Ie).removeClass(xe),this._parent.css({height:this._parent.height(),width:this._parent.width(),transition:"all .15s"}).delay(150).queue(function(){se(this).addClass(Ce),se("html").addClass(Ce),se(this).trigger(ce.MAXIMIZED),se(this).hasClass(ve)&&se(this).addClass(ye),se(this).dequeue()}))},e._init=function(e){var t=this;this._parent=e,se(this).find(this._settings.collapseTrigger).click(function(){t.toggle()}),se(this).find(this._settings.removeTrigger).click(function(){t.remove()})},n._jQueryInterface=function(t){return this.each(function(){var e=se(this).data(oe);e||(e=new n(se(this),e),se(this).data(oe,"string"==typeof t?e:t)),"string"==typeof t&&t.match(/remove|toggle/)?e[t]():"object"==typeof t&&e._init(se(this))})},n}(),se(document).on("click",de,function(e){e&&e.preventDefault(),De._jQueryInterface.call(se(this),"toggle")}),se(document).on("click",he,function(e){e&&e.preventDefault(),De._jQueryInterface.call(se(this),"remove")}),se(document).on("click",ue,function(e){e&&e.preventDefault(),De._jQueryInterface.call(se(this),"toggleMaximize")}),se.fn[ae]=De._jQueryInterface,se.fn[ae].Constructor=De,se.fn[ae].noConflict=function(){return se.fn[ae]=le,De._jQueryInterface},De);e.ControlSidebar=je,e.Layout=Se,e.PushMenu=Qe,e.Treeview=Ae,e.Widget=Le,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
//# sourceMappingURL=adminlte.min.js.map
|