You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AdminLTE/dist/js/adminlte.min.js

7 lines
9.7 KiB

7 years ago
/*!
* AdminLTE v3.0.0-beta.1 (https://adminlte.io)
* Copyright 2014-2019 Abdullah Almsaeed <abdullah@almsaeedstudio.com>
7 years ago
* 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.adminlte={})}(this,function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i,t,o,s,r,a,l,c,d,f,h,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=(i=jQuery,t="ControlSidebar",o="lte.control.sidebar",s=i.fn[t],r=".control-sidebar",a='[data-widget="control-sidebar"]',l=".main-header",c="control-sidebar-open",d="control-sidebar-slide-open",f={slide:!0},g.prototype.show=function(){this._config.slide?i("body").removeClass(d):i("body").removeClass(c)},g.prototype.collapse=function(){this._config.slide?i("body").addClass(d):i("body").addClass(c)},g.prototype.toggle=function(){this._setMargin(),i("body").hasClass(c)||i("body").hasClass(d)?this.show():this.collapse()},g.prototype._getConfig=function(e){return i.extend({},f,e)},g.prototype._setMargin=function(){i(r).css({top:i(l).innerHeight()})},g._jQueryInterface=function(t){return this.each(function(){var e=i(this).data(o);if(e||(e=new g(this,i(this).data()),i(this).data(o,e)),"undefined"===e[t])throw new Error(t+" is not a function");e[t]()})},h=g,i(document).on("click",a,function(e){e.preventDefault(),h._jQueryInterface.call(i(this),"toggle")}),i.fn[t]=h._jQueryInterface,i.fn[t].Constructor=h,i.fn[t].noConflict=function(){return i.fn[t]=s,h._jQueryInterface},h);function g(e,t){n(this,g),this._element=e,this._config=this._getConfig(t)}var y,_,m,v,b,w,C,S,j,E,x,D,Q,I,A,L,O,P=(y=jQuery,_="Layout",m="lte.layout",v=y.fn[_],b=".main-header",w=".main-sidebar .sidebar",C=".content-wrapper",S=".brand-link",j=".control-sidebar",E=".main-footer",x="hold-transition",D="content-fixed",Q="layout-fixed",I="layout-navbar-fixed",A="layout-footer-fixed",L={scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l"},T.prototype.fixLayoutHeight=function(){var e={window:y(window).height(),header:y(b).outerHeight(),footer:y(E).outerHeight(),sidebar:y(w).height()},t=this._max(e);y("body").hasClass(Q)?(y(C).css("min-height",t-e.header-e.footer),y(j+" .control-sidebar-content").css("height",t-e.header),"undefined"!=typeof y.fn.overlayScrollbars&&(y(w).overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}),y(j+" .control-sidebar-content").overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}))):e.sidebar<e.window?y(C).css("min-height",e.window-e.header-e.footer):y(C).css("min-height",e.sidebar-e.header),y("body").hasClass(I)&&(y(S).css("height",e.header),y(w).css("margin-top",e.header),y(w).css("margin-top",e.header)),y("body").hasClass(A)&&y(C).css("margin-bottom",e.footer),y("body").hasClass(D)&&y(C).css("height",y(C).css("min-height"))},T.prototype._init=function(){var e=this;y("body").removeClass(x),this.fixLayoutHeight(),y(w).on("collapsed.lte.treeview expanded.lte.treeview collapsed.lte.pushmenu expanded.lte.pushmenu",function(){e.fixLayoutHeight()}),y(window).resize(function(){e.fixLayoutHeight()}),y("body, html").css("height","auto")},T.prototype._max=function(t){var n=0;return Object.keys(t).forEach(function(e){t[e]>n&&(n=t[e])}),n},T._jQueryInterface=function(n){return this.each(function(){var e=y(this).data(m),t=y.extend({},L,y(this).data());e||(e=new T(y(this),t),y(this).data(m,e)),"init"===n&&e[n]()})},O=T,y(window).on("load",function(){O._jQueryInterface.call(y("body"))}),y.fn[_]=O._jQueryInterface,y.fn[_].Constructor=O,y.fn[_].noConflict=function(){return y.fn[_]=v,O._jQueryInterface},O);function T(e,t){n(this,T),this._config=t,this._element=e,this._init()}var H,k,z,N,M,U,W,X,R,V,q,B,F,G,J=(H=jQuery,k="PushMenu",N="."+(z="lte.pushmenu"),M=H.fn[k],W={autoCollapseSize:!(U={COLLAPSED:"collapsed"+N,SHOWN:"shown"+N}),screenCollapseSize:768},X='[data-w
7 years ago
//# sourceMappingURL=adminlte.min.js.map