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) • 6.42 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxnavbar');
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxnavbar",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxnavbar={}),t.ng.core)}(this,function(t,e){"use strict";function r(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,r=i.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=r.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(i=r["return"])&&i.call(r)}finally{if(o)throw o.error}}return s}var i=function(){function t(t){this.autoCreate=!0,this.properties=["columns","disabled","height","minimized","minimizeButtonPosition","minimizedHeight","minimizedTitle","orientation","popupAnimationDelay","rtl","selection","selectedItem","theme","width"],this.onChange=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.jqxNavBar(this.properties[e]))),n)return!1;this.host.jqxNavBar(this.properties[e],this[i]);continue}this[i]!==this.host.jqxNavBar(this.properties[e])&&this.host.jqxNavBar(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(r(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,"jqxNavBar",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.jqxNavBar("setOptions",t)},t.prototype.columns=function(t){if(t===undefined)return this.host.jqxNavBar("columns");this.host.jqxNavBar("columns",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxNavBar("disabled");this.host.jqxNavBar("disabled",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxNavBar("height");this.host.jqxNavBar("height",t)},t.prototype.minimized=function(t){if(t===undefined)return this.host.jqxNavBar("minimized");this.host.jqxNavBar("minimized",t)},t.prototype.minimizeButtonPosition=function(t){if(t===undefined)return this.host.jqxNavBar("minimizeButtonPosition");this.host.jqxNavBar("minimizeButtonPosition",t)},t.prototype.minimizedHeight=function(t){if(t===undefined)return this.host.jqxNavBar("minimizedHeight");this.host.jqxNavBar("minimizedHeight",t)},t.prototype.minimizedTitle=function(t){if(t===undefined)return this.host.jqxNavBar("minimizedTitle");this.host.jqxNavBar("minimizedTitle",t)},t.prototype.orientation=function(t){if(t===undefined)return this.host.jqxNavBar("orientation");this.host.jqxNavBar("orientation",t)},t.prototype.popupAnimationDelay=function(t){if(t===undefined)return this.host.jqxNavBar("popupAnimationDelay");this.host.jqxNavBar("popupAnimationDelay",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxNavBar("rtl");this.host.jqxNavBar("rtl",t)},t.prototype.selection=function(t){if(t===undefined)return this.host.jqxNavBar("selection");this.host.jqxNavBar("selection",t)},t.prototype.selectedItem=function(t){if(t===undefined)return this.host.jqxNavBar("selectedItem");this.host.jqxNavBar("selectedItem",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxNavBar("theme");this.host.jqxNavBar("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxNavBar("width");this.host.jqxNavBar("width",t)},t.prototype.close=function(){this.host.jqxNavBar("close")},t.prototype.destroy=function(){this.host.jqxNavBar("destroy")},t.prototype.getSelectedIndex=function(){return this.host.jqxNavBar("getSelectedIndex")},t.prototype.open=function(){this.host.jqxNavBar("open")},t.prototype.selectAt=function(t){this.host.jqxNavBar("selectAt",t)},t.prototype.__wireEvents__=function(){var e=this;this.host.on("change",function(t){e.onChange.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxNavBar",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrColumns:[{type:e.Input,args:["columns"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrMinimized:[{type:e.Input,args:["minimized"]}],attrMinimizeButtonPosition:[{type:e.Input,args:["minimizeButtonPosition"]}],attrMinimizedHeight:[{type:e.Input,args:["minimizedHeight"]}],attrMinimizedTitle:[{type:e.Input,args:["minimizedTitle"]}],attrOrientation:[{type:e.Input,args:["orientation"]}],attrPopupAnimationDelay:[{type:e.Input,args:["popupAnimationDelay"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrSelection:[{type:e.Input,args:["selection"]}],attrSelectedItem:[{type:e.Input,args:["selectedItem"]}],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"]}],onChange:[{type:e.Output}]},t}(),n=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[i],exports:[i]}]}],t}();t.jqxNavBarComponent=i,t.jqxNavBarModule=n,Object.defineProperty(t,"__esModule",{value:!0})});