AdminLTE/dist/js/adminlte.min.js

7 lines
10 KiB
JavaScript
Raw Normal View History

2018-03-17 17:07:55 +00:00
/*!
2019-06-26 12:37:24 +00:00
* AdminLTE v3.0.0-beta.2 (https://adminlte.io)
* Copyright 2014-2019 Colorlib <http://colorlib.com>
2018-03-17 17:07:55 +00:00
* 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,d,h,u,f,p,g,m,_,v,y,C,w,b,I,E,D,j,x,S,Q,A,L,M,O,z,P,T,H,k,q,N,X,U,W,Z,R,V,B,F,G,J,K,Y,$,ee,te,ne,ie,se,ae,oe,re,le,ce,de,he,ue,fe,pe,ge,me,_e,ve,ye,Ce,we,be,Ie,Ee=(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-animate",c="control-sidebar-open",d="control-sidebar-slide-open",h={slide:!0},u=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("html").addClass(l),i("body").removeClass(d).delay(300).queue(function(){i(a).hide(),i("html").removeClass(l),i(this).dequeue()})):i("body").removeClass(c)},e.collapse=function(){this._config.slide?(i("html").addClass(l),i(a).show().delay(100).queue(function(){i("body").addClass(d).delay(300).queue(function(){i("html").removeClass(l),i(this).dequeue()}),i(this).dequeue()})):i("body").addClass(c)},e.toggle=function(){this._setMargin(),i("body").hasClass(c)||i("body").hasClass(d)?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(),u._jQueryInterface.call(i(this),"toggle")}),i.fn[t]=u._jQueryInterface,i.fn[t].Constructor=u,i.fn[t].noConflict=function(){return i.fn[t]=n,u._jQueryInterface},u),De=(f=jQuery,p="Layout",g="lte.layout",m=f.fn[p],_=".main-header",v=".main-sidebar",y=".main-sidebar .sidebar",C=".content-wrapper",w=".control-sidebar",b=".main-footer",I="hold-transition",E="sidebar-focused",D="layout-fixed",j={scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l"},x=function(){function i(e,t){this._config=t,this._element=e,this._init()}var e=i.prototype;return e.fixLayoutHeight=function(){var e={window:f(window).height(),header:f(_).outerHeight(),footer:f(b).outerHeight(),sidebar:f(y).height()},t=this._max(e);f("body").hasClass(D)?(f(C).css("min-height",t-e.header-e.footer),f(w+" .control-sidebar-content").css("height",t-e.header),"undefined"!=typeof f.fn.overlayScrollbars&&(f(y).overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}),f(w+" .control-sidebar-content").overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}))):e.sidebar<e.window?f(C).css("min-height",e.window-e.header-e.footer):f(C).css("min-height",e.sidebar-e.header)},e._init=function(){var e=this;f("body").removeClass(I),this.fixLayoutHeight(),f(y).on("collapsed.lte.treeview expanded.lte.treeview collapsed.lte.pushmenu expanded.lte.pushmenu",function(){e.fixLayoutHeight()}),f(window).resize(function(){e.fixLayoutHeight()}),f("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=f(this).data(g),t=f.extend({},j,f(this).data());e||(e=new i(f(this),t),f(this).data(g,e)),"init"===n&&e[n]()})},i}(),f(window).on("load",function(){x._jQueryInterface.call(f("body"))}),f(y+" a").on("focusin",function(){f(v).addClass(E)}),f(y+" a").on("focusout",function(){f(v).removeClass(E)}),f.fn[p]=x._jQueryInterface,f.fn[p].Constructor=x,f.fn[p].noConflict=function(){return f.fn[p]=m,x._jQueryInterface},x),je=(S=jQuery,Q="PushMenu",L="."+(A="lte.pushmenu"),M=S.fn[Q],z={autoCollapseSize:!(O={COLLAPSED:"collapsed"+L,SHOWN:"shown"+L}),screenCollapseSize:768},P='[data-widget="pushmenu"]',T="body",H="#sidebar-overlay",k=".wrapper",q="sidebar-collapse",N="sidebar-open",X
2018-03-17 17:07:55 +00:00
//# sourceMappingURL=adminlte.min.js.map