UNPKG

jqwidgets-scripts-custom

Version:

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

4 lines (3 loc) 8.64 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxnavigationbar'); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxnavigationbar",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxnavigationbar={}),t.ng.core)}(this,function(t,e){"use strict";function a(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,a=i.call(t),r=[];try{for(;(void 0===e||0<e--)&&!(n=a.next()).done;)r.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(i=a["return"])&&i.call(a)}finally{if(o)throw o.error}}return r}var i=function(){function t(t){this.autoCreate=!0,this.properties=["animationType","arrowPosition","collapseAnimationDuration","disabled","expandAnimationDuration","expandMode","expandedIndexes","height","initContent","rtl","showArrow","theme","toggleMode","width"],this.onCollapsingItem=new e.EventEmitter,this.onCollapsedItem=new e.EventEmitter,this.onExpandingItem=new e.EventEmitter,this.onExpandedItem=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 i="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),n=!1;if(this[i]!==undefined){if("object"==typeof this[i]){if(this[i]instanceof Array&&(n=this.arraysEqual(this[i],this.host.jqxNavigationBar(this.properties[e]))),n)return!1;this.host.jqxNavigationBar(this.properties[e],this[i]);continue}this[i]!==this.host.jqxNavigationBar(this.properties[e])&&this.host.jqxNavigationBar(this.properties[e],this[i])}}},t.prototype.arraysEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},e=0;e<this.properties.length;e++){var i="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);this[i]!==undefined&&(t[this.properties[e]]=this[i])}return t},t.prototype.moveClasses=function(t,e){var i,n=t.classList;0<n.length&&(i=e.classList).add.apply(i,function o(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t}(n)),t.className=""},t.prototype.moveStyles=function(t,e){var i=t.style.cssText;e.style.cssText=i,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,"jqxNavigationBar",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.jqxNavigationBar("setOptions",t)},t.prototype.animationType=function(t){if(t===undefined)return this.host.jqxNavigationBar("animationType");this.host.jqxNavigationBar("animationType",t)},t.prototype.arrowPosition=function(t){if(t===undefined)return this.host.jqxNavigationBar("arrowPosition");this.host.jqxNavigationBar("arrowPosition",t)},t.prototype.collapseAnimationDuration=function(t){if(t===undefined)return this.host.jqxNavigationBar("collapseAnimationDuration");this.host.jqxNavigationBar("collapseAnimationDuration",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxNavigationBar("disabled");this.host.jqxNavigationBar("disabled",t)},t.prototype.expandAnimationDuration=function(t){if(t===undefined)return this.host.jqxNavigationBar("expandAnimationDuration");this.host.jqxNavigationBar("expandAnimationDuration",t)},t.prototype.expandMode=function(t){if(t===undefined)return this.host.jqxNavigationBar("expandMode");this.host.jqxNavigationBar("expandMode",t)},t.prototype.expandedIndexes=function(t){if(t===undefined)return this.host.jqxNavigationBar("expandedIndexes");this.host.jqxNavigationBar("expandedIndexes",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxNavigationBar("height");this.host.jqxNavigationBar("height",t)},t.prototype.initContent=function(t){if(t===undefined)return this.host.jqxNavigationBar("initContent");this.host.jqxNavigationBar("initContent",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxNavigationBar("rtl");this.host.jqxNavigationBar("rtl",t)},t.prototype.showArrow=function(t){if(t===undefined)return this.host.jqxNavigationBar("showArrow");this.host.jqxNavigationBar("showArrow",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxNavigationBar("theme");this.host.jqxNavigationBar("theme",t)},t.prototype.toggleMode=function(t){if(t===undefined)return this.host.jqxNavigationBar("toggleMode");this.host.jqxNavigationBar("toggleMode",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxNavigationBar("width");this.host.jqxNavigationBar("width",t)},t.prototype.add=function(t,e){this.host.jqxNavigationBar("add",t,e)},t.prototype.collapseAt=function(t){this.host.jqxNavigationBar("collapseAt",t)},t.prototype.disableAt=function(t){this.host.jqxNavigationBar("disableAt",t)},t.prototype.disable=function(){this.host.jqxNavigationBar("disable")},t.prototype.destroy=function(){this.host.jqxNavigationBar("destroy")},t.prototype.expandAt=function(t){this.host.jqxNavigationBar("expandAt",t)},t.prototype.enableAt=function(t){this.host.jqxNavigationBar("enableAt",t)},t.prototype.enable=function(){this.host.jqxNavigationBar("enable")},t.prototype.focus=function(){this.host.jqxNavigationBar("focus")},t.prototype.getHeaderContentAt=function(t){return this.host.jqxNavigationBar("getHeaderContentAt",t)},t.prototype.getContentAt=function(t){return this.host.jqxNavigationBar("getContentAt",t)},t.prototype.hideArrowAt=function(t){this.host.jqxNavigationBar("hideArrowAt",t)},t.prototype.invalidate=function(){this.host.jqxNavigationBar("invalidate")},t.prototype.insert=function(t,e,i){this.host.jqxNavigationBar("insert",t,e,i)},t.prototype.refresh=function(){this.host.jqxNavigationBar("refresh")},t.prototype.render=function(){this.host.jqxNavigationBar("render")},t.prototype.remove=function(t){this.host.jqxNavigationBar("remove",t)},t.prototype.setContentAt=function(t,e){this.host.jqxNavigationBar("setContentAt",t,e)},t.prototype.setHeaderContentAt=function(t,e){this.host.jqxNavigationBar("setHeaderContentAt",t,e)},t.prototype.showArrowAt=function(t){this.host.jqxNavigationBar("showArrowAt",t)},t.prototype.update=function(t,e,i){this.host.jqxNavigationBar("update",t,e,i)},t.prototype.val=function(t){return t!==undefined?this.host.jqxNavigationBar("val",t):this.host.jqxNavigationBar("val")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("collapsingItem",function(t){e.onCollapsingItem.emit(t)}),this.host.on("collapsedItem",function(t){e.onCollapsedItem.emit(t)}),this.host.on("expandingItem",function(t){e.onExpandingItem.emit(t)}),this.host.on("expandedItem",function(t){e.onExpandedItem.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxNavigationBar",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAnimationType:[{type:e.Input,args:["animationType"]}],attrArrowPosition:[{type:e.Input,args:["arrowPosition"]}],attrCollapseAnimationDuration:[{type:e.Input,args:["collapseAnimationDuration"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrExpandAnimationDuration:[{type:e.Input,args:["expandAnimationDuration"]}],attrExpandMode:[{type:e.Input,args:["expandMode"]}],attrExpandedIndexes:[{type:e.Input,args:["expandedIndexes"]}],attrInitContent:[{type:e.Input,args:["initContent"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrShowArrow:[{type:e.Input,args:["showArrow"]}],attrTheme:[{type:e.Input,args:["theme"]}],attrToggleMode:[{type:e.Input,args:["toggleMode"]}],attrWidth:[{type:e.Input,args:["width"]}],attrHeight:[{type:e.Input,args:["height"]}],autoCreate:[{type:e.Input,args:["auto-create"]}],onCollapsingItem:[{type:e.Output}],onCollapsedItem:[{type:e.Output}],onExpandingItem:[{type:e.Output}],onExpandedItem:[{type:e.Output}]},t}(),n=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[i],exports:[i]}]}],t}();t.jqxNavigationBarComponent=i,t.jqxNavigationBarModule=n,Object.defineProperty(t,"__esModule",{value:!0})});