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) 7.52 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxexpander'); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxexpander",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxexpander={}),t.ng.core)}(this,function(t,e){"use strict";function r(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=r.next()).done;)s.push(o.value)}catch(a){i={error:a}}finally{try{o&&!o.done&&(n=r["return"])&&n.call(r)}finally{if(i)throw i.error}}return s}var n=function(){function t(t){this.autoCreate=!0,this.properties=["animationType","arrowPosition","collapseAnimationDuration","disabled","expanded","expandAnimationDuration","height","headerPosition","initContent","rtl","showArrow","theme","toggleMode","width"],this.onCollapsing=new e.EventEmitter,this.onCollapsed=new e.EventEmitter,this.onExpanding=new e.EventEmitter,this.onExpanded=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.jqxExpander(this.properties[e]))),o)return!1;this.host.jqxExpander(this.properties[e],this[n]);continue}this[n]!==this.host.jqxExpander(this.properties[e])&&this.host.jqxExpander(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(r(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,"jqxExpander",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.jqxExpander("setOptions",t)},t.prototype.animationType=function(t){if(t===undefined)return this.host.jqxExpander("animationType");this.host.jqxExpander("animationType",t)},t.prototype.arrowPosition=function(t){if(t===undefined)return this.host.jqxExpander("arrowPosition");this.host.jqxExpander("arrowPosition",t)},t.prototype.collapseAnimationDuration=function(t){if(t===undefined)return this.host.jqxExpander("collapseAnimationDuration");this.host.jqxExpander("collapseAnimationDuration",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxExpander("disabled");this.host.jqxExpander("disabled",t)},t.prototype.expanded=function(t){if(t===undefined)return this.host.jqxExpander("expanded");this.host.jqxExpander("expanded",t)},t.prototype.expandAnimationDuration=function(t){if(t===undefined)return this.host.jqxExpander("expandAnimationDuration");this.host.jqxExpander("expandAnimationDuration",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxExpander("height");this.host.jqxExpander("height",t)},t.prototype.headerPosition=function(t){if(t===undefined)return this.host.jqxExpander("headerPosition");this.host.jqxExpander("headerPosition",t)},t.prototype.initContent=function(t){if(t===undefined)return this.host.jqxExpander("initContent");this.host.jqxExpander("initContent",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxExpander("rtl");this.host.jqxExpander("rtl",t)},t.prototype.showArrow=function(t){if(t===undefined)return this.host.jqxExpander("showArrow");this.host.jqxExpander("showArrow",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxExpander("theme");this.host.jqxExpander("theme",t)},t.prototype.toggleMode=function(t){if(t===undefined)return this.host.jqxExpander("toggleMode");this.host.jqxExpander("toggleMode",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxExpander("width");this.host.jqxExpander("width",t)},t.prototype.collapse=function(){this.host.jqxExpander("collapse")},t.prototype.disable=function(){this.host.jqxExpander("disable")},t.prototype.destroy=function(){this.host.jqxExpander("destroy")},t.prototype.enable=function(){this.host.jqxExpander("enable")},t.prototype.expand=function(){this.host.jqxExpander("expand")},t.prototype.focus=function(){this.host.jqxExpander("focus")},t.prototype.getContent=function(){return this.host.jqxExpander("getContent")},t.prototype.getHeaderContent=function(){return this.host.jqxExpander("getHeaderContent")},t.prototype.invalidate=function(){this.host.jqxExpander("invalidate")},t.prototype.refresh=function(){this.host.jqxExpander("refresh")},t.prototype.render=function(){this.host.jqxExpander("render")},t.prototype.setHeaderContent=function(t){this.host.jqxExpander("setHeaderContent",t)},t.prototype.setContent=function(t){this.host.jqxExpander("setContent",t)},t.prototype.__wireEvents__=function(){var e=this;this.host.on("collapsing",function(t){e.onCollapsing.emit(t)}),this.host.on("collapsed",function(t){e.onCollapsed.emit(t)}),this.host.on("expanding",function(t){e.onExpanding.emit(t)}),this.host.on("expanded",function(t){e.onExpanded.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxExpander",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"]}],attrExpanded:[{type:e.Input,args:["expanded"]}],attrExpandAnimationDuration:[{type:e.Input,args:["expandAnimationDuration"]}],attrHeaderPosition:[{type:e.Input,args:["headerPosition"]}],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"]}],onCollapsing:[{type:e.Output}],onCollapsed:[{type:e.Output}],onExpanding:[{type:e.Output}],onExpanded:[{type:e.Output}]},t}(),o=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[n],exports:[n]}]}],t}();t.jqxExpanderComponent=n,t.jqxExpanderModule=o,Object.defineProperty(t,"__esModule",{value:!0})});