mirror of https://github.com/ColorlibHQ/AdminLTE
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.
1 line
24 KiB
1 line
24 KiB
{"version":3,"sources":["../../build/js/src/AdminLTE.js"],"names":["Layout","$","NAME","DATA_KEY","EVENT_KEY","JQUERY_NO_CONFLICT","fn","Event","SIDEBAR","Selector","HEADER","CONTENT","CONTENT_HEADER","WRAPPER","CONTROL_SIDEBAR","LAYOUT_FIXED","FOOTER","ClassName","HOLD","element","_element","_init","heights","window","height","outerHeight","max","_max","css","removeClass","fixLayoutHeight","on","resize","numbers","forEach","v","operation","each","data","_jQueryInterface","Constructor","noConflict","jQuery","Treeview","SELECTED","EXPANDED","COLLAPSED","LOAD_DATA_API","LI","LINK","TREEVIEW_MENU","OPEN","DATA_WIDGET","Default","trigger","animationSpeed","accordion","config","_config","_setupListeners","treeviewMenu","parentLi","expandedEvent","openMenuLi","siblings","first","openTreeview","find","collapse","slideDown","addClass","collapsedEvent","slideUp","event","$relativeTarget","currentTarget","next","is","preventDefault","parents","isOpen","hasClass","expand","document","toggle","extend","$treeview","call","PushMenu","SHOWN","TOGGLE_BUTTON","_isShown","shownEvent","show","button","closest","Widget","$this","ControlSidebar","DATA_API_KEY","CLICK_DATA_API","DATA_TOGGLE","CONTROL_SIDEBAR_OPEN","CONTROL_SIDEBAR_SLIDE","slide","_getConfig","console","log","undefined","Error"],"mappings":";;;;;;AAAA;;;;;;AAMA,IAAMA,SAAU,UAACC,CAAD,EAAO;AACrB;;AAEA;;;;;AAKA,MAAMC,OAAO,QAAb;AACA,MAAMC,WAAW,YAAjB;AACA,MAAMC,kBAAgBD,QAAtB;AACA,MAAME,qBAAqBJ,EAAEK,EAAF,CAAKJ,IAAL,CAA3B;;AAEA,MAAMK,QAAQ;AACZC,aAAS;AADG,GAAd;;AAIA,MAAMC,WAAW;AACfD,aAAS,eADM;AAEfE,YAAQ,cAFO;AAGfC,aAAS,kBAHM;AAIfC,oBAAgB,iBAJD;A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BwE,SAAvB,EAAkC;AAChC,kBAAM,IAAIC,KAAJ,CAAazE,SAAb,wBAAN;AACD;;AAEDE,eAAKF,SAAL;AACD,SAbM,CAAP;AAcD;AAlG0B;;AAAA;AAAA;;AAqG7B;;;;;;AAMAnC,IAAEkF,QAAF,EAAYpD,EAAZ,CAAe,OAAf,EAAwBtB,SAAS4F,WAAjC,EAA8C,UAAU5B,KAAV,EAAiB;AAC7DA,UAAMK,cAAN;;AAEAoB,mBAAe3D,gBAAf,CAAgCgD,IAAhC,CAAqCtF,EAAE,IAAF,CAArC,EAA8C,QAA9C;AACD,GAJD;;AAMA;;;;;AAKAA,IAAEK,EAAF,CAAKJ,IAAL,IAAagG,eAAe3D,gBAA5B;AACAtC,IAAEK,EAAF,CAAKJ,IAAL,EAAWsC,WAAX,GAAyB0D,cAAzB;AACAjG,IAAEK,EAAF,CAAKJ,IAAL,EAAWuC,UAAX,GAAyB,YAAY;AACnCxC,MAAEK,EAAF,CAAKJ,IAAL,IAAaG,kBAAb;AACA,WAAO6F,eAAe3D,gBAAtB;AACD,GAHD;;AAKA,SAAO2D,cAAP;AAED,CA/HsB,CA+HpBxD,MA/HoB,CAAvB","file":"adminlte.js","sourcesContent":["/*!\n * AdminLTE v3.0.0-alpha (https://almsaeedstudio.com)\n * Copyright 2014-2016 Abdullah Almsaeed <abdullah@almsaeedstudio.com>\n * Project website Almsaeed Studio (https://almsaeedstudio.com)\n * Licensed under MIT (https://github.com/almasaeed2010/AdminLTE/blob/master/LICENSE)\n */\nconst Layout = (($) => {\n 'use strict'\n\n /**\n * Constants\n * ====================================================\n */\n\n const NAME = 'Layout'\n const DATA_KEY = 'lte.layout'\n const EVENT_KEY = `.${DATA_KEY}`\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n\n const Event = {\n SIDEBAR: 'sidebar'\n }\n\n const Selector = {\n SIDEBAR: '.main-sidebar',\n HEADER: '.main-header',\n CONTENT: '.content-wrapper',\n CONTENT_HEADER: '.content-header',\n WRAPPER: '.wrapper',\n CONTROL_SIDEBAR: '.control-sidebar',\n LAYOUT_FIXED: '.layout-fixed',\n FOOTER: '.main-footer'\n }\n\n const ClassName = {\n HOLD: 'hold-transition',\n SIDEBAR: 'main-sidebar',\n LAYOUT_FIXED: 'layout-fixed'\n }\n\n /**\n * Class Definition\n * ====================================================\n */\n\n class Layout {\n\n constructor(element) {\n this._element = element\n\n this._init()\n }\n\n // Public\n\n fixLayoutHeight() {\n let heights = [\n $(window).height(),\n $(Selector.HEADER).outerHeight(),\n $(Selector.FOOTER).outerHeight(),\n $(Selector.SIDEBAR).height()\n ],\n max = this._max(heights)\n\n $(Selector.CONTENT).css('min-height', max - (heights[1] + heights[2]))\n }\n\n // Private\n\n _init() {\n // Enable transitions\n $('body').removeClass(ClassName.HOLD)\n\n // Activate layout height watcher\n this.fixLayoutHeight()\n $(Selector.SIDEBAR).on('collapsed.lte.treeview expanded.lte.treeview collapsed.lte.pushmenu expanded.lte.pushmenu', () => {\n this.fixLayoutHeight()\n })\n $(window).resize(() => {\n this.fixLayoutHeight()\n })\n }\n\n _max(numbers) {\n // Calculate the maximum number in a list\n let max = 0\n\n numbers.forEach((v) => {\n if (v > max) {\n max = v\n }\n })\n\n return max\n }\n\n\n // Static\n\n static _jQueryInterface(operation) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n\n if (!data) {\n data = new Layout(this)\n $(this).data(DATA_KEY, data)\n }\n\n if (operation) {\n data[operation]()\n }\n })\n }\n }\n\n /**\n * jQuery API\n * ====================================================\n */\n\n $.fn[NAME] = Layout._jQueryInterface\n $.fn[NAME].Constructor = Layout\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Layout._jQueryInterface\n }\n\n return Layout\n\n})(jQuery)\n\nconst Treeview = (($) => {\n\n /**\n * Constants\n * ====================================================\n */\n\n const NAME = 'Treeview'\n const DATA_KEY = 'lte.treeview'\n const EVENT_KEY = `.${DATA_KEY}`\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n\n const Event = {\n SELECTED: `selected${EVENT_KEY}`,\n EXPANDED: `expanded${EVENT_KEY}`,\n COLLAPSED: `collapsed${EVENT_KEY}`,\n LOAD_DATA_API: `load${EVENT_KEY}`\n }\n\n const Selector = {\n LI: '.nav-item',\n LINK: '.nav-link',\n TREEVIEW_MENU: '.nav-treeview',\n OPEN: '.menu-open',\n DATA_WIDGET: '[data-widget=\"treeview\"]'\n }\n\n const ClassName = {\n LI: 'nav-item',\n LINK: 'nav-link',\n TREEVIEW_MENU: 'nav-treeview',\n OPEN: 'menu-open'\n }\n\n const Default = {\n trigger: `${Selector.DATA_WIDGET} ${Selector.LINK}`,\n animationSpeed: 300,\n accordion: true\n }\n\n /**\n * Class Definition\n * ====================================================\n */\n class Treeview {\n\n constructor(element, config) {\n this._config = config\n this._element = element\n }\n\n // Public\n\n init() {\n this._setupListeners()\n }\n\n expand(treeviewMenu, parentLi) {\n let expandedEvent = $.Event(Event.EXPANDED)\n\n if (this._config.accordion) {\n let openMenuLi = parentLi.siblings(Selector.OPEN).first()\n let openTreeview = openMenuLi.find(Selector.TREEVIEW_MENU).first()\n this.collapse(openTreeview, openMenuLi)\n }\n\n treeviewMenu.slideDown(this._config.animationSpeed, () => {\n parentLi.addClass(ClassName.OPEN)\n $(this._element).trigger(expandedEvent)\n })\n }\n\n collapse(treeviewMenu, parentLi) {\n let collapsedEvent = $.Event(Event.COLLAPSED)\n\n treeviewMenu.slideUp(this._config.animationSpeed, () => {\n parentLi.removeClass(ClassName.OPEN)\n $(this._element).trigger(collapsedEvent)\n treeviewMenu.find(`${Selector.OPEN} > ${Selector.TREEVIEW_MENU}`).slideUp()\n treeviewMenu.find(Selector.OPEN).removeClass(ClassName.OPEN)\n })\n }\n\n collapseAll() {\n\n }\n\n expandAll() {\n\n }\n\n toggle(event) {\n let $relativeTarget = $(event.currentTarget)\n let treeviewMenu = $relativeTarget.next()\n\n if (!treeviewMenu.is(Selector.TREEVIEW_MENU)) {\n return\n }\n\n event.preventDefault()\n\n let parentLi = $relativeTarget.parents(Selector.LI).first()\n let isOpen = parentLi.hasClass(ClassName.OPEN)\n\n if (isOpen) {\n this.collapse($(treeviewMenu), parentLi)\n } else {\n this.expand($(treeviewMenu), parentLi)\n }\n }\n\n // Private\n\n _setupListeners() {\n $(document).on('click', this._config.trigger, (event) => {\n this.toggle(event)\n })\n }\n\n // Static\n\n static _jQueryInterface(config) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n let _config = $.extend({}, Default, $(this).data())\n\n if (!data) {\n data = new Treeview($(this), _config)\n $(this).data(DATA_KEY, data)\n }\n\n if (config === 'init') {\n data[config]()\n }\n })\n }\n\n }\n\n /**\n * Data API\n * ====================================================\n */\n\n $(window).on(Event.LOAD_DATA_API, () => {\n $(Selector.DATA_WIDGET).each(function () {\n let $treeview = $(this)\n Treeview._jQueryInterface.call($treeview, 'init')\n })\n })\n\n /**\n * jQuery API\n * ====================================================\n */\n\n $.fn[NAME] = Treeview._jQueryInterface\n $.fn[NAME].Constructor = Treeview\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Treeview._jQueryInterface\n }\n\n return Treeview\n\n})(jQuery)\n\nconst PushMenu = (($) => {\n 'use strict'\n\n /**\n * Constants\n * ====================================================\n */\n\n const NAME = 'PushMenu'\n const DATA_KEY = 'lte.pushmenu'\n const EVENT_KEY = `.${DATA_KEY}`\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n\n const Event = {\n COLLAPSED: `collapsed${EVENT_KEY}`,\n SHOWN: `shown${EVENT_KEY}`\n }\n\n const Selector = {\n COLLAPSED: 'sidebar-collapse',\n TOGGLE_BUTTON: '[data-widget=\"pushmenu\"]'\n }\n\n /**\n * Class Definition\n * ====================================================\n */\n\n class PushMenu {\n\n constructor(element) {\n this._element = element\n this._isShown = !$('body').hasClass(Selector.COLLAPSED) || $('body').hasClass('sidebar-open')\n }\n\n // Public\n\n show() {\n $('body').addClass('sidebar-open')\n .removeClass(Selector.COLLAPSED)\n\n this._isShown = true\n\n let shownEvent = $.Event(Event.SHOWN)\n $(this._element).trigger(shownEvent)\n }\n\n collapse() {\n $('body').removeClass('sidebar-open')\n .addClass(Selector.COLLAPSED)\n\n this._isShown = false\n\n let collapsedEvent = $.Event(Event.COLLAPSED)\n $(this._element).trigger(collapsedEvent)\n }\n\n toggle() {\n\n if (typeof this._isShown === 'undefined') {\n this._isShown = !$('body').hasClass(Selector.COLLAPSED) || $('body').hasClass('sidebar-open')\n }\n\n if (this._isShown) {\n this.collapse()\n } else {\n this.show()\n }\n }\n\n // Static\n\n static _jQueryInterface(operation) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n\n if (!data) {\n data = new PushMenu(this)\n $(this).data(DATA_KEY, data)\n }\n\n if (operation) {\n data[operation]()\n }\n })\n }\n }\n\n /**\n * Data API\n * ====================================================\n */\n\n $(document).on('click', Selector.TOGGLE_BUTTON, (event) => {\n event.preventDefault()\n\n let button = event.currentTarget\n\n if ($(button).data('widget') !== 'pushmenu') {\n button = $(button).closest(Selector.TOGGLE_BUTTON)\n }\n\n PushMenu._jQueryInterface.call($(button), 'toggle')\n })\n\n /**\n * jQuery API\n * ====================================================\n */\n\n $.fn[NAME] = PushMenu._jQueryInterface\n $.fn[NAME].Constructor = PushMenu\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return PushMenu._jQueryInterface\n }\n\n return PushMenu\n\n})(jQuery)\n\nconst Widget = (($) => {\n 'use strict'\n\n class Widget {\n\n constructor(element) {\n this._element = element\n }\n\n static _jQueryInterface(element) {\n let $this = $(element)\n $this.show()\n }\n }\n\n return Widget\n\n})(jQuery)\n\nconst ControlSidebar = (($) => {\n 'use strict'\n\n /**\n * Constants\n * ====================================================\n */\n\n const NAME = 'ControlSidebar'\n const DATA_KEY = 'lte.control.sidebar'\n const EVENT_KEY = `.${DATA_KEY}`\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const DATA_API_KEY = '.data-api'\n\n const Event = {\n CLICK_DATA_API: `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const Selector = {\n CONTROL_SIDEBAR: '.control-sidebar',\n DATA_TOGGLE : '[data-widget=\"control-sidebar\"]'\n }\n\n const ClassName = {\n CONTROL_SIDEBAR_OPEN : 'control-sidebar-open',\n CONTROL_SIDEBAR_SLIDE: 'control-sidebar-slide-open'\n }\n\n const Default = {\n slide: true\n }\n\n /**\n * Class Definition\n * ====================================================\n */\n\n class ControlSidebar {\n\n constructor(element, config) {\n this._element = element\n this._config = this._getConfig(config);\n }\n\n // Public\n\n show() {\n console.log('showing', this._config.slide)\n // Show the control sidebar\n if (this._config.slide) {\n $('body').removeClass(ClassName.CONTROL_SIDEBAR_SLIDE)\n } else {\n $('body').removeClass(ClassName.CONTROL_SIDEBAR_OPEN)\n }\n }\n\n collapse() {\n // Collapse the control sidebar\n if (this._config.slide) {\n $('body').addClass(ClassName.CONTROL_SIDEBAR_SLIDE)\n } else {\n $('body').addClass(ClassName.CONTROL_SIDEBAR_OPEN)\n }\n }\n\n toggle() {\n if ($('body').hasClass(ClassName.CONTROL_SIDEBAR_OPEN) || $('body').hasClass(ClassName.CONTROL_SIDEBAR_SLIDE)) {\n // Open the control sidebar\n this.show()\n } else {\n // Close the control sidebar\n this.collapse()\n }\n }\n\n // Private\n\n _getConfig(config) {\n return $.extend({}, Default, config)\n }\n\n // Static\n\n static _jQueryInterface(operation) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n\n if (!data) {\n data = new ControlSidebar(this, $(this).data())\n $(this).data(DATA_KEY, data)\n }\n\n if(data[operation] === undefined) {\n throw new Error(`${operation} is not a function`)\n }\n\n data[operation]();\n })\n }\n }\n\n /**\n *\n * Data Api implementation\n * ====================================================\n */\n\n $(document).on('click', Selector.DATA_TOGGLE, function (event) {\n event.preventDefault()\n\n ControlSidebar._jQueryInterface.call($(this), 'toggle')\n })\n\n /**\n * jQuery API\n * ====================================================\n */\n\n $.fn[NAME] = ControlSidebar._jQueryInterface\n $.fn[NAME].Constructor = ControlSidebar\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return ControlSidebar._jQueryInterface\n }\n\n return ControlSidebar\n\n})(jQuery)\n"]} |