diff --git a/build/js/dist/PushMenu.js.map b/build/js/dist/PushMenu.js.map index 5122b64f3..5003dccc2 100644 --- a/build/js/dist/PushMenu.js.map +++ b/build/js/dist/PushMenu.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/PushMenu.js"],"names":[],"mappings":";;;;;;;;;;;;;AAOA,IAAM,WAAY,UAAC,CAAD,EAAO;AACvB;;;;;;;AAOA,MAAM,OAAqB,UAA3B;AACA,MAAM,WAAqB,cAA3B;AACA,MAAM,kBAAyB,QAA/B;AACA,MAAM,qBAAqB,EAAE,EAAF,CAAK,IAAL,CAA3B;;AAEA,MAAM,QAAQ;AACZ,6BAAuB,SADX;AAEZ,qBAAe;AAFH,GAAd;;AAKA,MAAM,WAAW;AACf,eAAW,kBADI;AAEf,mBAAe;AAFA,GAAjB;;;;;;;AAlBuB,MA4BjB,QA5BiB;AA8BrB,sBAAY,OAAZ,EAAqB;AAAA;;AACnB,WAAK,QAAL,GAAgB,OAAhB;AACA,WAAK,QAAL,GAAgB,CAAC,EAAE,MAAF,EAAU,QAAV,CAAmB,SAAS,SAA5B,CAAD,IAA2C,EAAE,MAAF,EAAU,QAAV,CAAmB,cAAnB,CAA3D;AACD;;;;AAjCoB;AAAA;AAAA,6BAqCd;AACL,UAAE,MAAF,EAAU,QAAV,CAAmB,cAAnB,EACK,WADL,CACiB,SAAS,SAD1B;;AAGA,aAAK,QAAL,GAAgB,IAAhB;;AAEA,YAAI,aAAa,EAAE,KAAF,CAAQ,MAAM,KAAd,CAAjB;AACA,UAAE,KAAK,QAAP,EAAiB,OAAjB,CAAyB,UAAzB;AACD;AA7CoB;AAAA;AAAA,iCA+CV;AACT,UAAE,MAAF,EAAU,WAAV,CAAsB,cAAtB,EACK,QADL,CACc,SAAS,SADvB;;AAGA,aAAK,QAAL,GAAgB,KAAhB;;AAEA,YAAI,iBAAiB,EAAE,KAAF,CAAQ,MAAM,SAAd,CAArB;AACA,UAAE,KAAK,QAAP,EAAiB,OAAjB,CAAyB,cAAz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YAAY;AACnC,MAAE,EAAF,CAAK,IAAL,IAAa,kBAAb;AACA,WAAO,SAAS,gBAAhB;AACD,GAHD;;AAKA,SAAO,QAAP;AAED,CAvHgB,CAuHd,MAvHc,CAAjB","file":"PushMenu.js","sourcesContent":["/**\n * --------------------------------------------\n * AdminLTE PushMenu.js\n * License MIT\n * --------------------------------------------\n */\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"]} \ No newline at end of file +{"version":3,"sources":["../src/PushMenu.js"],"names":["PushMenu","$","NAME","DATA_KEY","EVENT_KEY","JQUERY_NO_CONFLICT","fn","Event","COLLAPSED","SHOWN","Selector","TOGGLE_BUTTON","element","_element","_isShown","hasClass","addClass","removeClass","shownEvent","trigger","collapsedEvent","collapse","show","operation","each","data","document","on","event","preventDefault","button","currentTarget","closest","_jQueryInterface","call","Constructor","noConflict","jQuery"],"mappings":";;;;;;AAAA;;;;;;;AAOA,IAAMA,WAAY,UAACC,CAAD,EAAO;AACvB;;AAEA;;;;;AAKA,MAAMC,OAAO,UAAb;AACA,MAAMC,WAAW,cAAjB;AACA,MAAMC,kBAAgBD,QAAtB;AACA,MAAME,qBAAqBJ,EAAEK,EAAF,CAAKJ,IAAL,CAA3B;;AAEA,MAAMK,QAAQ;AACZC,6BAAuBJ,SADX;AAEZK,qBAAeL;AAFH,GAAd;;AAKA,MAAMM,WAAW;AACfF,eAAW,kBADI;AAEfG,mBAAe;AAFA,GAAjB;;AAKA;;;;;AAvBuB,MA4BjBX,QA5BiB;AA8BrB,sBAAYY,OAAZ,EAAqB;AAAA;;AACnB,WAAKC,QAAL,GAAgBD,OAAhB;AACA,WAAKE,QAAL,GAAgB,CAACb,EAAE,MAAF,EAAUc,QAAV,CAAmBL,SAASF,SAA5B,CAAD,IAA2CP,EAAE,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EAAe;AACbE,iBAAKF,SAAL;AACD;AACF,SAXM,CAAP;AAYD;AArFoB;;AAAA;AAAA;;AAwFvB;;;;;AAKAtB,IAAEyB,QAAF,EAAYC,EAAZ,CAAe,OAAf,EAAwBjB,SAASC,aAAjC,EAAgD,UAACiB,KAAD,EAAW;AACzDA,UAAMC,cAAN;;AAEA,QAAIC,SAASF,MAAMG,aAAnB;;AAEA,QAAI9B,EAAE6B,MAAF,EAAUL,IAAV,CAAe,QAAf,MAA6B,UAAjC,EAA6C;AAC3CK,eAAS7B,EAAE6B,MAAF,EAAUE,OAAV,CAAkBtB,SAASC,aAA3B,CAAT;AACD;;AAEDX,aAASiC,gBAAT,CAA0BC,IAA1B,CAA+BjC,EAAE6B,MAAF,CAA/B,EAA0C,QAA1C;AACD,GAVD;;AAYA;;;;;AAKA7B,IAAEK,EAAF,CAAKJ,IAAL,IAAaF,SAASiC,gBAAtB;AACAhC,IAAEK,EAAF,CAAKJ,IAAL,EAAWiC,WAAX,GAAyBnC,QAAzB;AACAC,IAAEK,EAAF,CAAKJ,IAAL,EAAWkC,UAAX,GAAwB,YAAY;AAClCnC,MAAEK,EAAF,CAAKJ,IAAL,IAAaG,kBAAb;AACA,WAAOL,SAASiC,gBAAhB;AACD,GAHD;;AAKA,SAAOjC,QAAP;AAED,CAvHgB,CAuHdqC,MAvHc,CAAjB","file":"PushMenu.js","sourcesContent":["/**\n * --------------------------------------------\n * AdminLTE PushMenu.js\n * License MIT\n * --------------------------------------------\n */\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"]} \ No newline at end of file diff --git a/build/js/dist/Treeview.js b/build/js/dist/Treeview.js index ea9ef9282..020cf5229 100644 --- a/build/js/dist/Treeview.js +++ b/build/js/dist/Treeview.js @@ -48,7 +48,7 @@ var Treeview = function ($) { var Default = { trigger: Selector.DATA_WIDGET + ' ' + Selector.LINK, animationSpeed: 300, - accordion: false + accordion: true }; /** diff --git a/build/js/dist/Treeview.js.map b/build/js/dist/Treeview.js.map index a0a73f248..8a5e365a9 100644 --- a/build/js/dist/Treeview.js.map +++ b/build/js/dist/Treeview.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/Treeview.js"],"names":[],"mappings":";;;;;;;;;;;;;AAOA,IAAM,WAAY,UAAC,CAAD,EAAO;;;;;;;AAOvB,MAAM,OAAqB,UAA3B;AACA,MAAM,WAAqB,cAA3B;AACA,MAAM,kBAAyB,QAA/B;AACA,MAAM,qBAAqB,EAAE,EAAF,CAAK,IAAL,CAA3B;;AAEA,MAAM,QAAQ;AACZ,2BAAqB,SADT;AAEZ,2BAAqB,SAFT;AAGZ,6BAAuB,SAHX;AAIZ,4BAAsB;AAJV,GAAd;;AAOA,MAAM,WAAW;AACf,QAAI,WADW;AAEf,UAAM,WAFS;AAGf,mBAAe,eAHA;AAIf,UAAM,YAJS;AAKf,iBAAa;AALE,GAAjB;;AAQA,MAAM,YAAY;AAChB,QAAI,UADY;AAEhB,UAAM,UAFU;AAGhB,mBAAe,cAHC;AAIhB,UAAM;AAJU,GAAlB;;AAOA,MAAM,UAAU;AACd,aAAY,SAAS,WAArB,SAAoC,SAAS,IAD/B;AAEd,oBAAgB,GAFF;AAGd,eAAW;AAHG,GAAhB;;;;;;;AAlCuB,MA4CjB,QA5CiB;AA8CrB,sBAAY,OAAZ,EAAqB,MAArB,EAA6B;AAAA;;AAC3B,WAAK,OAAL,GAAgB,MAAhB;AACA,WAAK,QAAL,GAAgB,OAAhB;AACD;;;;AAjDoB;AAAA;AAAA,6BAqDd;AACL,aAAK,eAAL;AACD;AAvDoB;AAAA;AAAA,6BAyDd,YAzDc,EAyDA,QAzDA,EAyDU;AAAA;;AAC7B,YAAI,gBAAgB,EAAE,KAAF,CAAQ,MAAM,QAAd,CAApB;;AAEA,YAAI,KAAK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GAAyB,QAAzB;AACA,IAAE,EAAF,CAAK,IAAL,EAAW,UAAX,GAAyB,YAAY;AACnC,MAAE,EAAF,CAAK,IAAL,IAAa,kBAAb;AACA,WAAO,SAAS,gBAAhB;AACD,GAHD;;AAKA,SAAO,QAAP;AAED,CArKgB,CAqKd,MArKc,CAAjB","file":"Treeview.js","sourcesContent":["/**\n * --------------------------------------------\n * AdminLTE Treeview.js\n * License MIT\n * --------------------------------------------\n */\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: false\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"]} \ No newline at end of file +{"version":3,"sources":["../src/Treeview.js"],"names":["Treeview","$","NAME","DATA_KEY","EVENT_KEY","JQUERY_NO_CONFLICT","fn","Event","SELECTED","EXPANDED","COLLAPSED","LOAD_DATA_API","Selector","LI","LINK","TREEVIEW_MENU","OPEN","DATA_WIDGET","ClassName","Default","trigger","animationSpeed","accordion","element","config","_config","_element","_setupListeners","treeviewMenu","parentLi","expandedEvent","openMenuLi","siblings","first","openTreeview","find","collapse","slideDown","addClass","collapsedEvent","slideUp","removeClass","event","$relativeTarget","currentTarget","next","is","preventDefault","parents","isOpen","hasClass","expand","document","on","toggle","each","data","extend","window","$treeview","_jQueryInterface","call","Constructor","noConflict","jQuery"],"mappings":";;;;;;AAAA;;;;;;;AAOA,IAAMA,WAAY,UAACC,CAAD,EAAO;;AAEvB;;;;;AAKA,MAAMC,OAAqB,UAA3B;AACA,MAAMC,WAAqB,cAA3B;AACA,MAAMC,kBAAyBD,QAA/B;AACA,MAAME,qBAAqBJ,EAAEK,EAAF,CAAKJ,IAAL,CAA3B;;AAEA,MAAMK,QAAQ;AACZC,2BAAqBJ,SADT;AAEZK,2BAAqBL,SAFT;AAGZM,6BAAuBN,SAHX;AAIZO,4BAAsBP;AAJV,GAAd;;AAOA,MAAMQ,WAAW;AACfC,QAAI,WADW;AAEfC,UAAM,WAFS;AAGfC,mBAAe,eAHA;AAIfC,UAAM,YAJS;AAKfC,iBAAa;AALE,GAAjB;;AAQA,MAAMC,YAAY;AAChBL,QAAI,UADY;AAEhBC,UAAM,UAFU;AAGhBC,mBAAe,cAHC;AAIhBC,UAAM;AAJU,GAAlB;;AAOA,MAAMG,UAAU;AACdC,aAAYR,SAASK,WAArB,SAAoCL,SAASE,IAD/B;AAEdO,oBAAgB,GAFF;AAGdC,eAAW;AAHG,GAAhB;;AAMA;;;;;AAxCuB,MA4CjBtB,QA5CiB;AA8CrB,sBAAYuB,OAAZ,EAAqBC,MAArB,EAA6B;AAAA;;AAC3B,WAAKC,OAAL,GAAgBD,MAAhB;AACA,WAAKE,QAAL,GAAgBH,OAAhB;AACD;;AAED;;A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uB;AACrBgC,iBAAKhC,MAAL;AACD;AACF,SAZM,CAAP;AAaD;AAvIoB;;AAAA;AAAA;;AA2IvB;;;;;AAKAvB,IAAEyD,MAAF,EAAUL,EAAV,CAAa9C,MAAMI,aAAnB,EAAkC,YAAM;AACtCV,MAAEW,SAASK,WAAX,EAAwBsC,IAAxB,CAA6B,YAAY;AACvC,UAAII,YAAY1D,EAAE,IAAF,CAAhB;AACAD,eAAS4D,gBAAT,CAA0BC,IAA1B,CAA+BF,SAA/B,EAA0C,MAA1C;AACD,KAHD;AAID,GALD;;AAOA;;;;;AAKA1D,IAAEK,EAAF,CAAKJ,IAAL,IAAaF,SAAS4D,gBAAtB;AACA3D,IAAEK,EAAF,CAAKJ,IAAL,EAAW4D,WAAX,GAAyB9D,QAAzB;AACAC,IAAEK,EAAF,CAAKJ,IAAL,EAAW6D,UAAX,GAAyB,YAAY;AACnC9D,MAAEK,EAAF,CAAKJ,IAAL,IAAaG,kBAAb;AACA,WAAOL,SAAS4D,gBAAhB;AACD,GAHD;;AAKA,SAAO5D,QAAP;AAED,CArKgB,CAqKdgE,MArKc,CAAjB","file":"Treeview.js","sourcesContent":["/**\n * --------------------------------------------\n * AdminLTE Treeview.js\n * License MIT\n * --------------------------------------------\n */\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"]} \ No newline at end of file diff --git a/build/js/dist/Widget.js.map b/build/js/dist/Widget.js.map index b6e98be26..8ba82e532 100644 --- a/build/js/dist/Widget.js.map +++ b/build/js/dist/Widget.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/Widget.js"],"names":[],"mappings":";;;;;;;;;;;;;AAOA,IAAM,SAAU,UAAC,CAAD,EAAO;AACrB;;AADqB,MAGf,MAHe;AAKnB,oBAAY,OAAZ,EAAqB;AAAA;;AACnB,WAAK,QAAL,GAAgB,OAAhB;AACD;;AAPkB;AAAA;AAAA,uCASK,OATL,EASc;AAC/B,YAAI,QAAQ,EAAE,OAAF,CAAZ;AACA,cAAM,IAAN;AACD;AAZkB;;AAAA;AAAA;;AAerB,SAAO,MAAP;AAED,CAjBc,CAiBZ,MAjBY,CAAf","file":"Widget.js","sourcesContent":["/**\n * --------------------------------------------\n * AdminLTE Widget.js\n * License MIT\n * --------------------------------------------\n */\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"]} \ No newline at end of file +{"version":3,"sources":["../src/Widget.js"],"names":["Widget","$","element","_element","$this","show","jQuery"],"mappings":";;;;;;AAAA;;;;;;;AAOA,IAAMA,SAAU,UAACC,CAAD,EAAO;AACrB;;AADqB,MAGfD,MAHe;AAKnB,oBAAYE,OAAZ,EAAqB;AAAA;;AACnB,WAAKC,QAAL,GAAgBD,OAAhB;AACD;;AAPkB;AAAA;AAAA,uCASKA,OATL,EASc;AAC/B,YAAIE,QAAQH,EAAEC,OAAF,CAAZ;AACAE,cAAMC,IAAN;AACD;AAZkB;;AAAA;AAAA;;AAerB,SAAOL,MAAP;AAED,CAjBc,CAiBZM,MAjBY,CAAf","file":"Widget.js","sourcesContent":["/**\n * --------------------------------------------\n * AdminLTE Widget.js\n * License MIT\n * --------------------------------------------\n */\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"]} \ No newline at end of file diff --git a/build/js/src/AdminLTE.js b/build/js/src/AdminLTE.js index 9ae9aaa85..1235a7294 100644 --- a/build/js/src/AdminLTE.js +++ b/build/js/src/AdminLTE.js @@ -12,9 +12,9 @@ const Layout = (($) => { * ==================================================== */ - const NAME = 'Layout' - const DATA_KEY = 'lte.layout' - const EVENT_KEY = `.${DATA_KEY}` + const NAME = 'Layout' + const DATA_KEY = 'lte.layout' + const EVENT_KEY = `.${DATA_KEY}` const JQUERY_NO_CONFLICT = $.fn[NAME] const Event = { @@ -55,13 +55,14 @@ const Layout = (($) => { fixLayoutHeight() { let heights = [ - $(window).height(), - $(Selector.HEADER).outerHeight(), - $(Selector.FOOTER).outerHeight() - ] - - $(Selector.CONTENT).css('min-height', heights[0] - (heights[1] + heights[2])) - console.log(heights[0] - (heights[1] + heights[2])) + $(window).height(), + $(Selector.HEADER).outerHeight(), + $(Selector.FOOTER).outerHeight(), + $(Selector.SIDEBAR).height() + ], + max = this._max(heights) + + $(Selector.CONTENT).css('min-height', max - (heights[1] + heights[2])) } // Private @@ -70,7 +71,7 @@ const Layout = (($) => { $('body').removeClass(ClassName.HOLD) this.fixLayoutHeight() - $(Selector.SIDEBAR).on('collapsed.lte.treeview expanded.lte.treeview', () => { + $(Selector.SIDEBAR).on('collapsed.lte.treeview expanded.lte.treeview collapsed.lte.pushmenu expanded.lte.pushmenu', () => { this.fixLayoutHeight() }) $(window).resize(() => { @@ -115,7 +116,7 @@ const Layout = (($) => { $.fn[NAME] = Layout._jQueryInterface $.fn[NAME].Constructor = Layout - $.fn[NAME].noConflict = function () { + $.fn[NAME].noConflict = function () { $.fn[NAME] = JQUERY_NO_CONFLICT return Layout._jQueryInterface } @@ -161,7 +162,7 @@ const Treeview = (($) => { const Default = { trigger: `${Selector.DATA_WIDGET} ${Selector.LINK}`, animationSpeed: 300, - accordion: false + accordion: true } /** @@ -299,9 +300,9 @@ const PushMenu = (($) => { * ==================================================== */ - const NAME = 'PushMenu' - const DATA_KEY = 'lte.pushmenu' - const EVENT_KEY = `.${DATA_KEY}` + const NAME = 'PushMenu' + const DATA_KEY = 'lte.pushmenu' + const EVENT_KEY = `.${DATA_KEY}` const JQUERY_NO_CONFLICT = $.fn[NAME] const Event = { @@ -330,7 +331,7 @@ const PushMenu = (($) => { show() { $('body').addClass('sidebar-open') - .removeClass(Selector.COLLAPSED) + .removeClass(Selector.COLLAPSED) this._isShown = true @@ -340,7 +341,7 @@ const PushMenu = (($) => { collapse() { $('body').removeClass('sidebar-open') - .addClass(Selector.COLLAPSED) + .addClass(Selector.COLLAPSED) this._isShown = false @@ -403,7 +404,7 @@ const PushMenu = (($) => { $.fn[NAME] = PushMenu._jQueryInterface $.fn[NAME].Constructor = PushMenu - $.fn[NAME].noConflict = function () { + $.fn[NAME].noConflict = function () { $.fn[NAME] = JQUERY_NO_CONFLICT return PushMenu._jQueryInterface } diff --git a/build/js/src/PushMenu.js b/build/js/src/PushMenu.js index f095f1b40..2bbbeab9f 100644 --- a/build/js/src/PushMenu.js +++ b/build/js/src/PushMenu.js @@ -13,9 +13,9 @@ const PushMenu = (($) => { * ==================================================== */ - const NAME = 'PushMenu' - const DATA_KEY = 'lte.pushmenu' - const EVENT_KEY = `.${DATA_KEY}` + const NAME = 'PushMenu' + const DATA_KEY = 'lte.pushmenu' + const EVENT_KEY = `.${DATA_KEY}` const JQUERY_NO_CONFLICT = $.fn[NAME] const Event = { @@ -44,7 +44,7 @@ const PushMenu = (($) => { show() { $('body').addClass('sidebar-open') - .removeClass(Selector.COLLAPSED) + .removeClass(Selector.COLLAPSED) this._isShown = true @@ -54,7 +54,7 @@ const PushMenu = (($) => { collapse() { $('body').removeClass('sidebar-open') - .addClass(Selector.COLLAPSED) + .addClass(Selector.COLLAPSED) this._isShown = false @@ -117,7 +117,7 @@ const PushMenu = (($) => { $.fn[NAME] = PushMenu._jQueryInterface $.fn[NAME].Constructor = PushMenu - $.fn[NAME].noConflict = function () { + $.fn[NAME].noConflict = function () { $.fn[NAME] = JQUERY_NO_CONFLICT return PushMenu._jQueryInterface } diff --git a/build/js/src/Treeview.js b/build/js/src/Treeview.js index a80aeb402..4e45647c6 100644 --- a/build/js/src/Treeview.js +++ b/build/js/src/Treeview.js @@ -42,7 +42,7 @@ const Treeview = (($) => { const Default = { trigger: `${Selector.DATA_WIDGET} ${Selector.LINK}`, animationSpeed: 300, - accordion: false + accordion: true } /**