UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

7 lines (6 loc) 7.79 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxdata'); require('../../jqwidgets/jqxbuttons'); require('../../jqwidgets/jqxscrollbar'); require('../../jqwidgets/jqxlistmenu'); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxlistmenu",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxlistmenu={}),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 i,o,s=n.call(t),r=[];try{for(;(void 0===e||0<e--)&&!(i=s.next()).done;)r.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=s["return"])&&n.call(s)}finally{if(o)throw o.error}}return r}var n=function(){function t(t){this.autoCreate=!0,this.properties=["alwaysShowNavigationArrows","animationType","animationDuration","autoSeparators","backLabel","disabled","enableScrolling","filterCallback","height","headerAnimationDuration","placeHolder","readOnly","rtl","roundedCorners","showNavigationArrows","showFilter","showHeader","showBackButton","theme","width"],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),i=!1;if(this[n]!==undefined){if("object"==typeof this[n]){if(this[n]instanceof Array&&(i=this.arraysEqual(this[n],this.host.jqxListMenu(this.properties[e]))),i)return!1;this.host.jqxListMenu(this.properties[e],this[n]);continue}this[n]!==this.host.jqxListMenu(this.properties[e])&&this.host.jqxListMenu(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,i=t.classList;0<i.length&&(n=e.classList).add.apply(n,function o(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}(i)),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,"jqxListMenu",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.jqxListMenu("setOptions",t)},t.prototype.alwaysShowNavigationArrows=function(t){if(t===undefined)return this.host.jqxListMenu("alwaysShowNavigationArrows");this.host.jqxListMenu("alwaysShowNavigationArrows",t)},t.prototype.animationType=function(t){if(t===undefined)return this.host.jqxListMenu("animationType");this.host.jqxListMenu("animationType",t)},t.prototype.animationDuration=function(t){if(t===undefined)return this.host.jqxListMenu("animationDuration");this.host.jqxListMenu("animationDuration",t)},t.prototype.autoSeparators=function(t){if(t===undefined)return this.host.jqxListMenu("autoSeparators");this.host.jqxListMenu("autoSeparators",t)},t.prototype.backLabel=function(t){if(t===undefined)return this.host.jqxListMenu("backLabel");this.host.jqxListMenu("backLabel",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxListMenu("disabled");this.host.jqxListMenu("disabled",t)},t.prototype.enableScrolling=function(t){if(t===undefined)return this.host.jqxListMenu("enableScrolling");this.host.jqxListMenu("enableScrolling",t)},t.prototype.filterCallback=function(t){if(t===undefined)return this.host.jqxListMenu("filterCallback");this.host.jqxListMenu("filterCallback",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxListMenu("height");this.host.jqxListMenu("height",t)},t.prototype.headerAnimationDuration=function(t){if(t===undefined)return this.host.jqxListMenu("headerAnimationDuration");this.host.jqxListMenu("headerAnimationDuration",t)},t.prototype.placeHolder=function(t){if(t===undefined)return this.host.jqxListMenu("placeHolder");this.host.jqxListMenu("placeHolder",t)},t.prototype.readOnly=function(t){if(t===undefined)return this.host.jqxListMenu("readOnly");this.host.jqxListMenu("readOnly",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxListMenu("rtl");this.host.jqxListMenu("rtl",t)},t.prototype.roundedCorners=function(t){if(t===undefined)return this.host.jqxListMenu("roundedCorners");this.host.jqxListMenu("roundedCorners",t)},t.prototype.showNavigationArrows=function(t){if(t===undefined)return this.host.jqxListMenu("showNavigationArrows");this.host.jqxListMenu("showNavigationArrows",t)},t.prototype.showFilter=function(t){if(t===undefined)return this.host.jqxListMenu("showFilter");this.host.jqxListMenu("showFilter",t)},t.prototype.showHeader=function(t){if(t===undefined)return this.host.jqxListMenu("showHeader");this.host.jqxListMenu("showHeader",t)},t.prototype.showBackButton=function(t){if(t===undefined)return this.host.jqxListMenu("showBackButton");this.host.jqxListMenu("showBackButton",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxListMenu("theme");this.host.jqxListMenu("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxListMenu("width");this.host.jqxListMenu("width",t)},t.prototype.back=function(){this.host.jqxListMenu("back")},t.prototype.changePage=function(t){this.host.jqxListMenu("changePage",t)},t.prototype.destroy=function(){this.host.jqxListMenu("destroy")},t.prototype.__wireEvents__=function(){},t.decorators=[{type:e.Component,args:[{selector:"jqxListMenu",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAlwaysShowNavigationArrows:[{type:e.Input,args:["alwaysShowNavigationArrows"]}],attrAnimationType:[{type:e.Input,args:["animationType"]}],attrAnimationDuration:[{type:e.Input,args:["animationDuration"]}],attrAutoSeparators:[{type:e.Input,args:["autoSeparators"]}],attrBackLabel:[{type:e.Input,args:["backLabel"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrEnableScrolling:[{type:e.Input,args:["enableScrolling"]}],attrFilterCallback:[{type:e.Input,args:["filterCallback"]}],attrHeaderAnimationDuration:[{type:e.Input,args:["headerAnimationDuration"]}],attrPlaceHolder:[{type:e.Input,args:["placeHolder"]}],attrReadOnly:[{type:e.Input,args:["readOnly"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrRoundedCorners:[{type:e.Input,args:["roundedCorners"]}],attrShowNavigationArrows:[{type:e.Input,args:["showNavigationArrows"]}],attrShowFilter:[{type:e.Input,args:["showFilter"]}],attrShowHeader:[{type:e.Input,args:["showHeader"]}],attrShowBackButton:[{type:e.Input,args:["showBackButton"]}],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"]}]},t}(),i=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[n],exports:[n]}]}],t}();t.jqxListMenuComponent=n,t.jqxListMenuModule=i,Object.defineProperty(t,"__esModule",{value:!0})});