jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
5 lines (4 loc) • 9.15 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxdata');
require('../../jqwidgets/jqxmenu');
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxmenu",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxmenu={}),t.ng.core)}(this,function(t,e){"use strict";function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,s=n.call(t),r=[];try{for(;(void 0===e||0<e--)&&!(o=s.next()).done;)r.push(o.value)}catch(u){i={error:u}}finally{try{o&&!o.done&&(n=s["return"])&&n.call(s)}finally{if(i)throw i.error}}return r}var n=function(){function t(t){this.autoCreate=!0,this.properties=["animationShowDuration","animationHideDuration","animationHideDelay","animationShowDelay","autoCloseInterval","autoSizeMainItems","autoCloseOnClick","autoOpenPopup","autoOpen","autoCloseOnMouseLeave","clickToOpen","disabled","enableHover","easing","height","keyboardNavigation","minimizeWidth","mode","popupZIndex","rtl","showTopLevelArrows","source","theme","width"],this.onClosed=new e.EventEmitter,this.onItemclick=new e.EventEmitter,this.onShown=new e.EventEmitter,this.elementRef=t}return t.prototype.ngOnInit=function(){this.autoCreate&&this.createComponent()},t.prototype.ngOnChanges=function(t){if(this.host)for(var e=0;e<this.properties.length;e++){var n="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),o=!1;if(this[n]!==undefined){if("object"==typeof this[n]){if(this[n]instanceof Array&&(o=this.arraysEqual(this[n],this.host.jqxMenu(this.properties[e]))),o)return!1;this.host.jqxMenu(this.properties[e],this[n]);continue}this[n]!==this.host.jqxMenu(this.properties[e])&&this.host.jqxMenu(this.properties[e],this[n])}}},t.prototype.arraysEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},e=0;e<this.properties.length;e++){var n="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);this[n]!==undefined&&(t[this.properties[e]]=this[n])}return t},t.prototype.moveClasses=function(t,e){var n,o=t.classList;0<o.length&&(n=e.classList).add.apply(n,function i(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}(o)),t.className=""},t.prototype.moveStyles=function(t,e){var n=t.style.cssText;e.style.cssText=n,t.style.cssText=""},t.prototype.createComponent=function(t){this.host||(t?JQXLite.extend(t,this.manageAttributes()):t=this.manageAttributes(),this.host=JQXLite(this.elementRef.nativeElement.firstChild),this.moveClasses(this.elementRef.nativeElement,this.host[0]),this.moveStyles(this.elementRef.nativeElement,this.host[0]),this.__wireEvents__(),this.widgetObject=jqwidgets.createInstance(this.host,"jqxMenu",t))},t.prototype.createWidget=function(t){this.createComponent(t)},t.prototype.__updateRect__=function(){this.host&&this.host.css({width:this.attrWidth,height:this.attrHeight})},t.prototype.setOptions=function(t){this.host.jqxMenu("setOptions",t)},t.prototype.animationShowDuration=function(t){if(t===undefined)return this.host.jqxMenu("animationShowDuration");this.host.jqxMenu("animationShowDuration",t)},t.prototype.animationHideDuration=function(t){if(t===undefined)return this.host.jqxMenu("animationHideDuration");this.host.jqxMenu("animationHideDuration",t)},t.prototype.animationHideDelay=function(t){if(t===undefined)return this.host.jqxMenu("animationHideDelay");this.host.jqxMenu("animationHideDelay",t)},t.prototype.animationShowDelay=function(t){if(t===undefined)return this.host.jqxMenu("animationShowDelay");this.host.jqxMenu("animationShowDelay",t)},t.prototype.autoCloseInterval=function(t){if(t===undefined)return this.host.jqxMenu("autoCloseInterval");this.host.jqxMenu("autoCloseInterval",t)},t.prototype.autoSizeMainItems=function(t){if(t===undefined)return this.host.jqxMenu("autoSizeMainItems");this.host.jqxMenu("autoSizeMainItems",t)},t.prototype.autoCloseOnClick=function(t){if(t===undefined)return this.host.jqxMenu("autoCloseOnClick");this.host.jqxMenu("autoCloseOnClick",t)},t.prototype.autoOpenPopup=function(t){if(t===undefined)return this.host.jqxMenu("autoOpenPopup");this.host.jqxMenu("autoOpenPopup",t)},t.prototype.autoOpen=function(t){if(t===undefined)return this.host.jqxMenu("autoOpen");this.host.jqxMenu("autoOpen",t)},t.prototype.autoCloseOnMouseLeave=function(t){if(t===undefined)return this.host.jqxMenu("autoCloseOnMouseLeave");this.host.jqxMenu("autoCloseOnMouseLeave",t)},t.prototype.clickToOpen=function(t){if(t===undefined)return this.host.jqxMenu("clickToOpen");this.host.jqxMenu("clickToOpen",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxMenu("disabled");this.host.jqxMenu("disabled",t)},t.prototype.enableHover=function(t){if(t===undefined)return this.host.jqxMenu("enableHover");this.host.jqxMenu("enableHover",t)},t.prototype.easing=function(t){if(t===undefined)return this.host.jqxMenu("easing");this.host.jqxMenu("easing",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxMenu("height");this.host.jqxMenu("height",t)},t.prototype.keyboardNavigation=function(t){if(t===undefined)return this.host.jqxMenu("keyboardNavigation");this.host.jqxMenu("keyboardNavigation",t)},t.prototype.minimizeWidth=function(t){if(t===undefined)return this.host.jqxMenu("minimizeWidth");this.host.jqxMenu("minimizeWidth",t)},t.prototype.mode=function(t){if(t===undefined)return this.host.jqxMenu("mode");this.host.jqxMenu("mode",t)},t.prototype.popupZIndex=function(t){if(t===undefined)return this.host.jqxMenu("popupZIndex");this.host.jqxMenu("popupZIndex",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxMenu("rtl");this.host.jqxMenu("rtl",t)},t.prototype.showTopLevelArrows=function(t){if(t===undefined)return this.host.jqxMenu("showTopLevelArrows");this.host.jqxMenu("showTopLevelArrows",t)},t.prototype.source=function(t){if(t===undefined)return this.host.jqxMenu("source");this.host.jqxMenu("source",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxMenu("theme");this.host.jqxMenu("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxMenu("width");this.host.jqxMenu("width",t)},t.prototype.closeItem=function(t){this.host.jqxMenu("closeItem",t)},t.prototype.close=function(){this.host.jqxMenu("close")},t.prototype.disable=function(t,e){this.host.jqxMenu("disable",t,e)},t.prototype.destroy=function(){this.host.jqxMenu("destroy")},t.prototype.focus=function(){this.host.jqxMenu("focus")},t.prototype.minimize=function(){this.host.jqxMenu("minimize")},t.prototype.open=function(t,e){this.host.jqxMenu("open",t,e)},t.prototype.openItem=function(t){this.host.jqxMenu("openItem",t)},t.prototype.restore=function(){this.host.jqxMenu("restore")},t.prototype.setItemOpenDirection=function(t,e,n){this.host.jqxMenu("setItemOpenDirection",t,e,n)},t.prototype.__wireEvents__=function(){var e=this;this.host.on("closed",function(t){e.onClosed.emit(t)}),this.host.on("itemclick",function(t){e.onItemclick.emit(t)}),this.host.on("shown",function(t){e.onShown.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxMenu",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAnimationShowDuration:[{type:e.Input,args:["animationShowDuration"]}],attrAnimationHideDuration:[{type:e.Input,args:["animationHideDuration"]}],attrAnimationHideDelay:[{type:e.Input,args:["animationHideDelay"]}],attrAnimationShowDelay:[{type:e.Input,args:["animationShowDelay"]}],attrAutoCloseInterval:[{type:e.Input,args:["autoCloseInterval"]}],attrAutoSizeMainItems:[{type:e.Input,args:["autoSizeMainItems"]}],attrAutoCloseOnClick:[{type:e.Input,args:["autoCloseOnClick"]}],attrAutoOpenPopup:[{type:e.Input,args:["autoOpenPopup"]}],attrAutoOpen:[{type:e.Input,args:["autoOpen"]}],attrAutoCloseOnMouseLeave:[{type:e.Input,args:["autoCloseOnMouseLeave"]}],attrClickToOpen:[{type:e.Input,args:["clickToOpen"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrEnableHover:[{type:e.Input,args:["enableHover"]}],attrEasing:[{type:e.Input,args:["easing"]}],attrKeyboardNavigation:[{type:e.Input,args:["keyboardNavigation"]}],attrMinimizeWidth:[{type:e.Input,args:["minimizeWidth"]}],attrMode:[{type:e.Input,args:["mode"]}],attrPopupZIndex:[{type:e.Input,args:["popupZIndex"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrShowTopLevelArrows:[{type:e.Input,args:["showTopLevelArrows"]}],attrSource:[{type:e.Input,args:["source"]}],attrTheme:[{type:e.Input,args:["theme"]}],attrWidth:[{type:e.Input,args:["width"]}],attrHeight:[{type:e.Input,args:["height"]}],autoCreate:[{type:e.Input,args:["auto-create"]}],onClosed:[{type:e.Output}],onItemclick:[{type:e.Output}],onShown:[{type:e.Output}]},t}(),o=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[n],exports:[n]}]}],t}();t.jqxMenuComponent=n,t.jqxMenuModule=o,Object.defineProperty(t,"__esModule",{value:!0})});