diff --git a/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.css b/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.css index 76376c39..dbf8dea1 100644 --- a/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.css +++ b/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.css @@ -1,64 +1,143 @@ /* - * metismenu - v1.1.3 - * Easy menu jQuery plugin for Twitter Bootstrap 3 - * https://github.com/onokumus/metisMenu + * metismenu - v2.7.0 + * A jQuery menu plugin + * https://github.com/onokumus/metismenu#readme * - * Made by Osman Nuri Okumus + * Made by Osman Nuri Okumus (https://github.com/onokumus) * Under MIT License */ -.arrow { - float: right; - line-height: 1.42857; + +.metismenu .arrow { + float: right; + line-height: 1.42857; +} +*[dir="rtl"] .metismenu .arrow { + float: left; } -.glyphicon.arrow:before { - content: "\e079"; -} +/* + * Require Bootstrap 3.x + * https://github.com/twbs/bootstrap +*/ -.active > a > .glyphicon.arrow:before { - content: "\e114"; +.metismenu .glyphicon.arrow:before { + content: "\e079"; +} +.metismenu .active > a > .glyphicon.arrow:before { + content: "\e114"; } - /* * Require Font-Awesome * http://fortawesome.github.io/Font-Awesome/ */ - -.fa.arrow:before { - content: "\f104"; +.metismenu .fa.arrow:before { + content: "\f104"; +} +.metismenu .active > a > .fa.arrow:before { + content: "\f107"; } -.active > a > .fa.arrow:before { - content: "\f107"; +/* + * Require Ionicons + * http://ionicons.com/ +*/ + +.metismenu .ion.arrow:before { + content: "\f3d2" +} +.metismenu .active > a > .ion.arrow:before { + content: "\f3d0"; +} +.metismenu .plus-times { + float: right; +} +*[dir="rtl"] .metismenu .plus-times { + float: left; +} +.metismenu .fa.plus-times:before { + content: "\f067"; +} +.metismenu .active > a > .fa.plus-times { + -webkit-transform: rotate(45deg); + -ms-transform: rotate(45deg); + -o-transform: rotate(45deg); + transform: rotate(45deg); +} +.metismenu .plus-minus { + float: right; +} +*[dir="rtl"] .metismenu .plus-minus { + float: left; +} +.metismenu .fa.plus-minus:before { + content: "\f067"; +} +.metismenu .active > a > .fa.plus-minus:before { + content: "\f068"; +} +.metismenu .collapse { + display: none; +} +.metismenu .collapse.in { + display: block; +} +.metismenu .collapsing { + position: relative; + height: 0; + overflow: hidden; + -webkit-transition-timing-function: ease; + -o-transition-timing-function: ease; + transition-timing-function: ease; + -webkit-transition-duration: .35s; + -o-transition-duration: .35s; + transition-duration: .35s; + -webkit-transition-property: height, visibility; + -o-transition-property: height, visibility; + transition-property: height, visibility; } -.plus-times { - float: right; +.metismenu .has-arrow { + position: relative; } -.fa.plus-times:before { - content: "\f067"; +.metismenu .has-arrow::after { + position: absolute; + content: ''; + width: .5em; + height: .5em; + border-width: 1px 0 0 1px; + border-style: solid; + border-color: initial; + right: 1em; + -webkit-transform: rotate(-45deg) translate(0, -50%); + -ms-transform: rotate(-45deg) translate(0, -50%); + -o-transform: rotate(-45deg) translate(0, -50%); + transform: rotate(-45deg) translate(0, -50%); + -webkit-transform-origin: top; + -ms-transform-origin: top; + -o-transform-origin: top; + transform-origin: top; + top: 50%; + -webkit-transition: all .3s ease-out; + -o-transition: all .3s ease-out; + transition: all .3s ease-out; } -.active > a > .fa.plus-times { - filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); - -webkit-transform: rotate(45deg); - -moz-transform: rotate(45deg); - -ms-transform: rotate(45deg); - -o-transform: rotate(45deg); - transform: rotate(45deg); +*[dir="rtl"] .metismenu .has-arrow::after { + right: auto; + left: 1em; + -webkit-transform: rotate(135deg) translate(0, -50%); + -ms-transform: rotate(135deg) translate(0, -50%); + -o-transform: rotate(135deg) translate(0, -50%); + transform: rotate(135deg) translate(0, -50%); } -.plus-minus { - float: right; +.metismenu .active > .has-arrow::after, +.metismenu .has-arrow[aria-expanded="true"]::after { + -webkit-transform: rotate(-135deg) translate(0, -50%); + -ms-transform: rotate(-135deg) translate(0, -50%); + -o-transform: rotate(-135deg) translate(0, -50%); + transform: rotate(-135deg) translate(0, -50%); } - -.fa.plus-minus:before { - content: "\f067"; -} - -.active > a > .fa.plus-minus:before { - content: "\f068"; -} \ No newline at end of file diff --git a/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.js b/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.js index 37859045..09cee406 100644 --- a/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.js +++ b/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.js @@ -1,120 +1,345 @@ /* - * metismenu - v1.1.3 - * Easy menu jQuery plugin for Twitter Bootstrap 3 - * https://github.com/onokumus/metisMenu + * metismenu - v2.7.0 + * A jQuery menu plugin + * https://github.com/onokumus/metismenu#readme * - * Made by Osman Nuri Okumus + * Made by Osman Nuri Okumus (https://github.com/onokumus) * Under MIT License */ -;(function($, window, document, undefined) { - var pluginName = "metisMenu", - defaults = { - toggle: true, - doubleTapToGo: false - }; +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define(['jquery'], factory); + } else if (typeof exports !== "undefined") { + factory(require('jquery')); + } else { + var mod = { + exports: {} + }; + factory(global.jquery); + global.metisMenu = mod.exports; + } +})(this, function (_jquery) { + 'use strict'; - function Plugin(element, options) { - this.element = $(element); - this.settings = $.extend({}, defaults, options); - this._defaults = defaults; - this._name = pluginName; - this.init(); + var _jquery2 = _interopRequireDefault(_jquery); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + + var Util = function ($) { + var transition = false; + + var TransitionEndEvent = { + WebkitTransition: 'webkitTransitionEnd', + MozTransition: 'transitionend', + OTransition: 'oTransitionEnd otransitionend', + transition: 'transitionend' + }; + + function getSpecialTransitionEndEvent() { + return { + bindType: transition.end, + delegateType: transition.end, + handle: function handle(event) { + if ($(event.target).is(this)) { + return event.handleObj.handler.apply(this, arguments); + } + return undefined; + } + }; } - Plugin.prototype = { - init: function() { + function transitionEndTest() { + if (window.QUnit) { + return false; + } - var $this = this.element, - $toggle = this.settings.toggle, - obj = this; + var el = document.createElement('mm'); - if (this.isIE() <= 9) { - $this.find("li.active").has("ul").children("ul").collapse("show"); - $this.find("li").not(".active").has("ul").children("ul").collapse("hide"); - } else { - $this.find("li.active").has("ul").children("ul").addClass("collapse in"); - $this.find("li").not(".active").has("ul").children("ul").addClass("collapse"); + for (var name in TransitionEndEvent) { + if (el.style[name] !== undefined) { + return { + end: TransitionEndEvent[name] + }; + } + } + + return false; + } + + function transitionEndEmulator(duration) { + var _this2 = this; + + var called = false; + + $(this).one(Util.TRANSITION_END, function () { + called = true; + }); + + setTimeout(function () { + if (!called) { + Util.triggerTransitionEnd(_this2); + } + }, duration); + + return this; + } + + function setTransitionEndSupport() { + transition = transitionEndTest(); + $.fn.emulateTransitionEnd = transitionEndEmulator; + + if (Util.supportsTransitionEnd()) { + $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent(); + } + } + + var Util = { + TRANSITION_END: 'mmTransitionEnd', + + triggerTransitionEnd: function triggerTransitionEnd(element) { + $(element).trigger(transition.end); + }, + supportsTransitionEnd: function supportsTransitionEnd() { + return Boolean(transition); + } + }; + + setTransitionEndSupport(); + + return Util; + }(jQuery); + + var MetisMenu = function ($) { + + var NAME = 'metisMenu'; + var DATA_KEY = 'metisMenu'; + var EVENT_KEY = '.' + DATA_KEY; + var DATA_API_KEY = '.data-api'; + var JQUERY_NO_CONFLICT = $.fn[NAME]; + var TRANSITION_DURATION = 350; + + var Default = { + toggle: true, + preventDefault: true, + activeClass: 'active', + collapseClass: 'collapse', + collapseInClass: 'in', + collapsingClass: 'collapsing', + triggerElement: 'a', + parentTrigger: 'li', + subMenu: 'ul' + }; + + var Event = { + SHOW: 'show' + EVENT_KEY, + SHOWN: 'shown' + EVENT_KEY, + HIDE: 'hide' + EVENT_KEY, + HIDDEN: 'hidden' + EVENT_KEY, + CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY + }; + + var MetisMenu = function () { + function MetisMenu(element, config) { + _classCallCheck(this, MetisMenu); + + this._element = element; + this._config = this._getConfig(config); + this._transitioning = null; + + this.init(); + } + + MetisMenu.prototype.init = function init() { + var self = this; + $(this._element).find(this._config.parentTrigger + '.' + this._config.activeClass).has(this._config.subMenu).children(this._config.subMenu).attr('aria-expanded', true).addClass(this._config.collapseClass + ' ' + this._config.collapseInClass); + + $(this._element).find(this._config.parentTrigger).not('.' + this._config.activeClass).has(this._config.subMenu).children(this._config.subMenu).attr('aria-expanded', false).addClass(this._config.collapseClass); + + $(this._element).find(this._config.parentTrigger).has(this._config.subMenu).children(this._config.triggerElement).on(Event.CLICK_DATA_API, function (e) { + var _this = $(this); + var _parent = _this.parent(self._config.parentTrigger); + var _siblings = _parent.siblings(self._config.parentTrigger).children(self._config.triggerElement); + var _list = _parent.children(self._config.subMenu); + if (self._config.preventDefault) { + e.preventDefault(); + } + if (_this.attr('aria-disabled') === 'true') { + return; + } + if (_parent.hasClass(self._config.activeClass)) { + _this.attr('aria-expanded', false); + self._hide(_list); + } else { + self._show(_list); + _this.attr('aria-expanded', true); + if (self._config.toggle) { + _siblings.attr('aria-expanded', false); } + } - //add the "doubleTapToGo" class to active items if needed - if (obj.settings.doubleTapToGo) { - $this.find("li.active").has("ul").children("a").addClass("doubleTapToGo"); - } + if (self._config.onTransitionStart) { + self._config.onTransitionStart(e); + } + }); + }; - $this.find("li").has("ul").children("a").on("click" + "." + pluginName, function(e) { - e.preventDefault(); + MetisMenu.prototype._show = function _show(element) { + if (this._transitioning || $(element).hasClass(this._config.collapsingClass)) { + return; + } + var _this = this; + var _el = $(element); - //Do we need to enable the double tap - if (obj.settings.doubleTapToGo) { + var startEvent = $.Event(Event.SHOW); + _el.trigger(startEvent); - //if we hit a second time on the link and the href is valid, navigate to that url - if (obj.doubleTapToGo($(this)) && $(this).attr("href") !== "#" && $(this).attr("href") !== "") { - e.stopPropagation(); - document.location = $(this).attr("href"); - return; - } - } - - $(this).parent("li").toggleClass("active").children("ul").collapse("toggle"); - - if ($toggle) { - $(this).parent("li").siblings().removeClass("active").children("ul.in").collapse("hide"); - } - - }); - }, - - isIE: function() { //https://gist.github.com/padolsey/527683 - var undef, - v = 3, - div = document.createElement("div"), - all = div.getElementsByTagName("i"); - - while ( - div.innerHTML = "", - all[0] - ) { - return v > 4 ? v : undef; - } - }, - - //Enable the link on the second click. - doubleTapToGo: function(elem) { - var $this = this.element; - - //if the class "doubleTapToGo" exists, remove it and return - if (elem.hasClass("doubleTapToGo")) { - elem.removeClass("doubleTapToGo"); - return true; - } - - //does not exists, add a new class and return false - if (elem.parent().children("ul").length) { - //first remove all other class - $this.find(".doubleTapToGo").removeClass("doubleTapToGo"); - //add the class on the current element - elem.addClass("doubleTapToGo"); - return false; - } - }, - - remove: function() { - this.element.off("." + pluginName); - this.element.removeData(pluginName); + if (startEvent.isDefaultPrevented()) { + return; } - }; + _el.parent(this._config.parentTrigger).addClass(this._config.activeClass); - $.fn[pluginName] = function(options) { - this.each(function () { - var el = $(this); - if (el.data(pluginName)) { - el.data(pluginName).remove(); + if (this._config.toggle) { + this._hide(_el.parent(this._config.parentTrigger).siblings().children(this._config.subMenu + '.' + this._config.collapseInClass).attr('aria-expanded', false)); + } + + _el.removeClass(this._config.collapseClass).addClass(this._config.collapsingClass).height(0); + + this.setTransitioning(true); + + var complete = function complete() { + + _el.removeClass(_this._config.collapsingClass).addClass(_this._config.collapseClass + ' ' + _this._config.collapseInClass).height('').attr('aria-expanded', true); + + _this.setTransitioning(false); + + _el.trigger(Event.SHOWN); + }; + + if (!Util.supportsTransitionEnd()) { + complete(); + return; + } + + _el.height(_el[0].scrollHeight).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); + }; + + MetisMenu.prototype._hide = function _hide(element) { + + if (this._transitioning || !$(element).hasClass(this._config.collapseInClass)) { + return; + } + var _this = this; + var _el = $(element); + + var startEvent = $.Event(Event.HIDE); + _el.trigger(startEvent); + + if (startEvent.isDefaultPrevented()) { + return; + } + + _el.parent(this._config.parentTrigger).removeClass(this._config.activeClass); + _el.height(_el.height())[0].offsetHeight; + + _el.addClass(this._config.collapsingClass).removeClass(this._config.collapseClass).removeClass(this._config.collapseInClass); + + this.setTransitioning(true); + + var complete = function complete() { + if (_this._transitioning && _this._config.onTransitionEnd) { + _this._config.onTransitionEnd(); + } + + _this.setTransitioning(false); + _el.trigger(Event.HIDDEN); + + _el.removeClass(_this._config.collapsingClass).addClass(_this._config.collapseClass).attr('aria-expanded', false); + }; + + if (!Util.supportsTransitionEnd()) { + complete(); + return; + } + + _el.height() == 0 || _el.css('display') == 'none' ? complete() : _el.height(0).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); + }; + + MetisMenu.prototype.setTransitioning = function setTransitioning(isTransitioning) { + this._transitioning = isTransitioning; + }; + + MetisMenu.prototype.dispose = function dispose() { + $.removeData(this._element, DATA_KEY); + + $(this._element).find(this._config.parentTrigger).has(this._config.subMenu).children(this._config.triggerElement).off('click'); + + this._transitioning = null; + this._config = null; + this._element = null; + }; + + MetisMenu.prototype._getConfig = function _getConfig(config) { + config = $.extend({}, Default, config); + return config; + }; + + MetisMenu._jQueryInterface = function _jQueryInterface(config) { + return this.each(function () { + var $this = $(this); + var data = $this.data(DATA_KEY); + var _config = $.extend({}, Default, $this.data(), (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config); + + if (!data && /dispose/.test(config)) { + this.dispose(); + } + + if (!data) { + data = new MetisMenu(this, _config); + $this.data(DATA_KEY, data); + } + + if (typeof config === 'string') { + if (data[config] === undefined) { + throw new Error('No method named "' + config + '"'); } - el.data(pluginName, new Plugin(this, options)); + data[config](); + } }); - return this; - }; + }; -})(jQuery, window, document); \ No newline at end of file + return MetisMenu; + }(); + + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + $.fn[NAME] = MetisMenu._jQueryInterface; + $.fn[NAME].Constructor = MetisMenu; + $.fn[NAME].noConflict = function () { + $.fn[NAME] = JQUERY_NO_CONFLICT; + return MetisMenu._jQueryInterface; + }; + return MetisMenu; + }(jQuery); +}); diff --git a/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.js.map b/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.js.map new file mode 100644 index 00000000..c028cd0a --- /dev/null +++ b/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["metisMenu.js"],"names":["global","factory","define","amd","exports","require","mod","jquery","metisMenu","this","_jquery","_interopRequireDefault","obj","__esModule","default","_classCallCheck","instance","Constructor","TypeError","_typeof","Symbol","iterator","constructor","prototype","Util","$","getSpecialTransitionEndEvent","bindType","transition","end","delegateType","handle","event","target","is","handleObj","handler","apply","arguments","transitionEndTest","window","QUnit","el","document","createElement","name","TransitionEndEvent","undefined","style","transitionEndEmulator","duration","_this2","called","one","TRANSITION_END","setTimeout","triggerTransitionEnd","setTransitionEndSupport","fn","emulateTransitionEnd","supportsTransitionEnd","special","WebkitTransition","MozTransition","OTransition","element","trigger","Boolean","jQuery","NAME","DATA_KEY","EVENT_KEY","DATA_API_KEY","JQUERY_NO_CONFLICT","TRANSITION_DURATION","Default","toggle","preventDefault","activeClass","collapseClass","collapseInClass","collapsingClass","triggerElement","parentTrigger","subMenu","Event","SHOW","SHOWN","HIDE","HIDDEN","CLICK_DATA_API","MetisMenu","config","_element","_config","_getConfig","_transitioning","init","self","find","has","children","attr","addClass","not","on","e","_this","_parent","parent","_siblings","siblings","_list","hasClass","_hide","_show","onTransitionStart","_el","startEvent","isDefaultPrevented","removeClass","height","setTransitioning","complete","scrollHeight","offsetHeight","onTransitionEnd","css","isTransitioning","dispose","removeData","off","extend","_jQueryInterface","each","$this","data","test","Error","noConflict"],"mappings":"CA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AAGW,GAAMsE,WAAa,WAEtB,MADAlH,GAAEiC,GAAGW,GAAQI,EACNkB,EAAU0C,kBAEZ1C,IACPvB","file":"metisMenu.min.js"} \ No newline at end of file diff --git a/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.min.css b/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.min.css index a1d0ef39..34c0911f 100644 --- a/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.min.css +++ b/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.min.css @@ -1,10 +1,10 @@ /* - * metismenu - v1.1.3 - * Easy menu jQuery plugin for Twitter Bootstrap 3 - * https://github.com/onokumus/metisMenu + * metismenu - v2.7.0 + * A jQuery menu plugin + * https://github.com/onokumus/metismenu#readme * - * Made by Osman Nuri Okumus + * Made by Osman Nuri Okumus (https://github.com/onokumus) * Under MIT License */ -.arrow{float:right;line-height:1.42857}.glyphicon.arrow:before{content:"\e079"}.active>a>.glyphicon.arrow:before{content:"\e114"}.fa.arrow:before{content:"\f104"}.active>a>.fa.arrow:before{content:"\f107"}.plus-times{float:right}.fa.plus-times:before{content:"\f067"}.active>a>.fa.plus-times{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.plus-minus{float:right}.fa.plus-minus:before{content:"\f067"}.active>a>.fa.plus-minus:before{content:"\f068"} \ No newline at end of file +.metismenu .arrow{float:right;line-height:1.42857}[dir=rtl] .metismenu .arrow{float:left}.metismenu .glyphicon.arrow:before{content:"\e079"}.metismenu .active>a>.glyphicon.arrow:before{content:"\e114"}.metismenu .fa.arrow:before{content:"\f104"}.metismenu .active>a>.fa.arrow:before{content:"\f107"}.metismenu .ion.arrow:before{content:"\f3d2"}.metismenu .active>a>.ion.arrow:before{content:"\f3d0"}.metismenu .plus-times{float:right}[dir=rtl] .metismenu .plus-times{float:left}.metismenu .fa.plus-times:before{content:"\f067"}.metismenu .active>a>.fa.plus-times{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.metismenu .plus-minus{float:right}[dir=rtl] .metismenu .plus-minus{float:left}.metismenu .fa.plus-minus:before{content:"\f067"}.metismenu .active>a>.fa.plus-minus:before{content:"\f068"}.metismenu .collapse{display:none}.metismenu .collapse.in{display:block}.metismenu .collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.metismenu .has-arrow{position:relative}.metismenu .has-arrow:after{position:absolute;content:"";width:.5em;height:.5em;border-width:1px 0 0 1px;border-style:solid;border-color:initial;right:1em;-webkit-transform:rotate(-45deg) translateY(-50%);-ms-transform:rotate(-45deg) translateY(-50%);-o-transform:rotate(-45deg) translateY(-50%);transform:rotate(-45deg) translateY(-50%);-webkit-transform-origin:top;-ms-transform-origin:top;-o-transform-origin:top;transform-origin:top;top:50%;-webkit-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out}[dir=rtl] .metismenu .has-arrow:after{right:auto;left:1em;-webkit-transform:rotate(135deg) translateY(-50%);-ms-transform:rotate(135deg) translateY(-50%);-o-transform:rotate(135deg) translateY(-50%);transform:rotate(135deg) translateY(-50%)}.metismenu .active>.has-arrow:after,.metismenu .has-arrow[aria-expanded=true]:after{-webkit-transform:rotate(-135deg) translateY(-50%);-ms-transform:rotate(-135deg) translateY(-50%);-o-transform:rotate(-135deg) translateY(-50%);transform:rotate(-135deg) translateY(-50%)} \ No newline at end of file diff --git a/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.min.js b/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.min.js index 8a590e75..44076589 100644 --- a/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.min.js +++ b/helpdesk/static/helpdesk/vendor/metisMenu/metisMenu.min.js @@ -1,9 +1,11 @@ /* - * metismenu - v1.1.3 - * Easy menu jQuery plugin for Twitter Bootstrap 3 - * https://github.com/onokumus/metisMenu + * metismenu - v2.7.0 + * A jQuery menu plugin + * https://github.com/onokumus/metismenu#readme * - * Made by Osman Nuri Okumus + * Made by Osman Nuri Okumus (https://github.com/onokumus) * Under MIT License */ -!function(a,b,c){function d(b,c){this.element=a(b),this.settings=a.extend({},f,c),this._defaults=f,this._name=e,this.init()}var e="metisMenu",f={toggle:!0,doubleTapToGo:!1};d.prototype={init:function(){var b=this.element,d=this.settings.toggle,f=this;this.isIE()<=9?(b.find("li.active").has("ul").children("ul").collapse("show"),b.find("li").not(".active").has("ul").children("ul").collapse("hide")):(b.find("li.active").has("ul").children("ul").addClass("collapse in"),b.find("li").not(".active").has("ul").children("ul").addClass("collapse")),f.settings.doubleTapToGo&&b.find("li.active").has("ul").children("a").addClass("doubleTapToGo"),b.find("li").has("ul").children("a").on("click."+e,function(b){return b.preventDefault(),f.settings.doubleTapToGo&&f.doubleTapToGo(a(this))&&"#"!==a(this).attr("href")&&""!==a(this).attr("href")?(b.stopPropagation(),void(c.location=a(this).attr("href"))):(a(this).parent("li").toggleClass("active").children("ul").collapse("toggle"),void(d&&a(this).parent("li").siblings().removeClass("active").children("ul.in").collapse("hide")))})},isIE:function(){for(var a,b=3,d=c.createElement("div"),e=d.getElementsByTagName("i");d.innerHTML="",e[0];)return b>4?b:a},doubleTapToGo:function(a){var b=this.element;return a.hasClass("doubleTapToGo")?(a.removeClass("doubleTapToGo"),!0):a.parent().children("ul").length?(b.find(".doubleTapToGo").removeClass("doubleTapToGo"),a.addClass("doubleTapToGo"),!1):void 0},remove:function(){this.element.off("."+e),this.element.removeData(e)}},a.fn[e]=function(b){return this.each(function(){var c=a(this);c.data(e)&&c.data(e).remove(),c.data(e,new d(this,b))}),this}}(jQuery,window,document); \ No newline at end of file + +!function(a,b){if("function"==typeof define&&define.amd)define(["jquery"],b);else if("undefined"!=typeof exports)b(require("jquery"));else{var c={exports:{}};b(a.jquery),a.metisMenu=c.exports}}(this,function(a){"use strict";function b(a){return a&&a.__esModule?a:{default:a}}function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d=(b(a),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a}),e=function(a){function b(){return{bindType:f.end,delegateType:f.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}}}function c(){if(window.QUnit)return!1;var a=document.createElement("mm");for(var b in g)if(void 0!==a.style[b])return{end:g[b]};return!1}function d(b){var c=this,d=!1;return a(this).one(h.TRANSITION_END,function(){d=!0}),setTimeout(function(){d||h.triggerTransitionEnd(c)},b),this}function e(){f=c(),a.fn.emulateTransitionEnd=d,h.supportsTransitionEnd()&&(a.event.special[h.TRANSITION_END]=b())}var f=!1,g={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},h={TRANSITION_END:"mmTransitionEnd",triggerTransitionEnd:function(b){a(b).trigger(f.end)},supportsTransitionEnd:function(){return Boolean(f)}};return e(),h}(jQuery);(function(a){var b="metisMenu",f="metisMenu",g="."+f,h=".data-api",i=a.fn[b],j=350,k={toggle:!0,preventDefault:!0,activeClass:"active",collapseClass:"collapse",collapseInClass:"in",collapsingClass:"collapsing",triggerElement:"a",parentTrigger:"li",subMenu:"ul"},l={SHOW:"show"+g,SHOWN:"shown"+g,HIDE:"hide"+g,HIDDEN:"hidden"+g,CLICK_DATA_API:"click"+g+h},m=function(){function b(a,d){c(this,b),this._element=a,this._config=this._getConfig(d),this._transitioning=null,this.init()}return b.prototype.init=function(){var b=this;a(this._element).find(this._config.parentTrigger+"."+this._config.activeClass).has(this._config.subMenu).children(this._config.subMenu).attr("aria-expanded",!0).addClass(this._config.collapseClass+" "+this._config.collapseInClass),a(this._element).find(this._config.parentTrigger).not("."+this._config.activeClass).has(this._config.subMenu).children(this._config.subMenu).attr("aria-expanded",!1).addClass(this._config.collapseClass),a(this._element).find(this._config.parentTrigger).has(this._config.subMenu).children(this._config.triggerElement).on(l.CLICK_DATA_API,function(c){var d=a(this),e=d.parent(b._config.parentTrigger),f=e.siblings(b._config.parentTrigger).children(b._config.triggerElement),g=e.children(b._config.subMenu);b._config.preventDefault&&c.preventDefault(),"true"!==d.attr("aria-disabled")&&(e.hasClass(b._config.activeClass)?(d.attr("aria-expanded",!1),b._hide(g)):(b._show(g),d.attr("aria-expanded",!0),b._config.toggle&&f.attr("aria-expanded",!1)),b._config.onTransitionStart&&b._config.onTransitionStart(c))})},b.prototype._show=function(b){if(!this._transitioning&&!a(b).hasClass(this._config.collapsingClass)){var c=this,d=a(b),f=a.Event(l.SHOW);if(d.trigger(f),!f.isDefaultPrevented()){d.parent(this._config.parentTrigger).addClass(this._config.activeClass),this._config.toggle&&this._hide(d.parent(this._config.parentTrigger).siblings().children(this._config.subMenu+"."+this._config.collapseInClass).attr("aria-expanded",!1)),d.removeClass(this._config.collapseClass).addClass(this._config.collapsingClass).height(0),this.setTransitioning(!0);var g=function(){d.removeClass(c._config.collapsingClass).addClass(c._config.collapseClass+" "+c._config.collapseInClass).height("").attr("aria-expanded",!0),c.setTransitioning(!1),d.trigger(l.SHOWN)};return e.supportsTransitionEnd()?void d.height(d[0].scrollHeight).one(e.TRANSITION_END,g).emulateTransitionEnd(j):void g()}}},b.prototype._hide=function(b){if(!this._transitioning&&a(b).hasClass(this._config.collapseInClass)){var c=this,d=a(b),f=a.Event(l.HIDE);if(d.trigger(f),!f.isDefaultPrevented()){d.parent(this._config.parentTrigger).removeClass(this._config.activeClass),d.height(d.height())[0].offsetHeight,d.addClass(this._config.collapsingClass).removeClass(this._config.collapseClass).removeClass(this._config.collapseInClass),this.setTransitioning(!0);var g=function(){c._transitioning&&c._config.onTransitionEnd&&c._config.onTransitionEnd(),c.setTransitioning(!1),d.trigger(l.HIDDEN),d.removeClass(c._config.collapsingClass).addClass(c._config.collapseClass).attr("aria-expanded",!1)};return e.supportsTransitionEnd()?void(0==d.height()||"none"==d.css("display")?g():d.height(0).one(e.TRANSITION_END,g).emulateTransitionEnd(j)):void g()}}},b.prototype.setTransitioning=function(a){this._transitioning=a},b.prototype.dispose=function(){a.removeData(this._element,f),a(this._element).find(this._config.parentTrigger).has(this._config.subMenu).children(this._config.triggerElement).off("click"),this._transitioning=null,this._config=null,this._element=null},b.prototype._getConfig=function(b){return b=a.extend({},k,b)},b._jQueryInterface=function(c){return this.each(function(){var e=a(this),g=e.data(f),h=a.extend({},k,e.data(),"object"===("undefined"==typeof c?"undefined":d(c))&&c);if(!g&&/dispose/.test(c)&&this.dispose(),g||(g=new b(this,h),e.data(f,g)),"string"==typeof c){if(void 0===g[c])throw new Error('No method named "'+c+'"');g[c]()}})},b}();return a.fn[b]=m._jQueryInterface,a.fn[b].Constructor=m,a.fn[b].noConflict=function(){return a.fn[b]=i,m._jQueryInterface},m})(jQuery)}); +//# sourceMappingURL=metisMenu.js.map \ No newline at end of file