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.25 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxresponsivepanel');
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxresponsivepanel",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxresponsivepanel={}),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(a){i={error:a}}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=["animationDirection","animationHideDelay","animationShowDelay","animationType","autoClose","collapseBreakpoint","collapseWidth","height","initContent","theme","toggleButton","toggleButtonSize","width"],this.onClose=new e.EventEmitter,this.onCollapse=new e.EventEmitter,this.onExpand=new e.EventEmitter,this.onOpen=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.jqxResponsivePanel(this.properties[e]))),o)return!1;this.host.jqxResponsivePanel(this.properties[e],this[n]);continue}this[n]!==this.host.jqxResponsivePanel(this.properties[e])&&this.host.jqxResponsivePanel(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,"jqxResponsivePanel",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.jqxResponsivePanel("setOptions",t)},t.prototype.animationDirection=function(t){if(t===undefined)return this.host.jqxResponsivePanel("animationDirection");this.host.jqxResponsivePanel("animationDirection",t)},t.prototype.animationHideDelay=function(t){if(t===undefined)return this.host.jqxResponsivePanel("animationHideDelay");this.host.jqxResponsivePanel("animationHideDelay",t)},t.prototype.animationShowDelay=function(t){if(t===undefined)return this.host.jqxResponsivePanel("animationShowDelay");this.host.jqxResponsivePanel("animationShowDelay",t)},t.prototype.animationType=function(t){if(t===undefined)return this.host.jqxResponsivePanel("animationType");this.host.jqxResponsivePanel("animationType",t)},t.prototype.autoClose=function(t){if(t===undefined)return this.host.jqxResponsivePanel("autoClose");this.host.jqxResponsivePanel("autoClose",t)},t.prototype.collapseBreakpoint=function(t){if(t===undefined)return this.host.jqxResponsivePanel("collapseBreakpoint");this.host.jqxResponsivePanel("collapseBreakpoint",t)},t.prototype.collapseWidth=function(t){if(t===undefined)return this.host.jqxResponsivePanel("collapseWidth");this.host.jqxResponsivePanel("collapseWidth",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxResponsivePanel("height");this.host.jqxResponsivePanel("height",t)},t.prototype.initContent=function(t){if(t===undefined)return this.host.jqxResponsivePanel("initContent");this.host.jqxResponsivePanel("initContent",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxResponsivePanel("theme");this.host.jqxResponsivePanel("theme",t)},t.prototype.toggleButton=function(t){if(t===undefined)return this.host.jqxResponsivePanel("toggleButton");this.host.jqxResponsivePanel("toggleButton",t)},t.prototype.toggleButtonSize=function(t){if(t===undefined)return this.host.jqxResponsivePanel("toggleButtonSize");this.host.jqxResponsivePanel("toggleButtonSize",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxResponsivePanel("width");this.host.jqxResponsivePanel("width",t)},t.prototype.close=function(){this.host.jqxResponsivePanel("close")},t.prototype.destroy=function(){this.host.jqxResponsivePanel("destroy")},t.prototype.isCollapsed=function(){return this.host.jqxResponsivePanel("isCollapsed")},t.prototype.isOpened=function(){return this.host.jqxResponsivePanel("isOpened")},t.prototype.open=function(){this.host.jqxResponsivePanel("open")},t.prototype.refresh=function(){this.host.jqxResponsivePanel("refresh")},t.prototype.render=function(){this.host.jqxResponsivePanel("render")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("close",function(t){e.onClose.emit(t)}),this.host.on("collapse",function(t){e.onCollapse.emit(t)}),this.host.on("expand",function(t){e.onExpand.emit(t)}),this.host.on("open",function(t){e.onOpen.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxResponsivePanel",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAnimationDirection:[{type:e.Input,args:["animationDirection"]}],attrAnimationHideDelay:[{type:e.Input,args:["animationHideDelay"]}],attrAnimationShowDelay:[{type:e.Input,args:["animationShowDelay"]}],attrAnimationType:[{type:e.Input,args:["animationType"]}],attrAutoClose:[{type:e.Input,args:["autoClose"]}],attrCollapseBreakpoint:[{type:e.Input,args:["collapseBreakpoint"]}],attrCollapseWidth:[{type:e.Input,args:["collapseWidth"]}],attrInitContent:[{type:e.Input,args:["initContent"]}],attrTheme:[{type:e.Input,args:["theme"]}],attrToggleButton:[{type:e.Input,args:["toggleButton"]}],attrToggleButtonSize:[{type:e.Input,args:["toggleButtonSize"]}],attrWidth:[{type:e.Input,args:["width"]}],attrHeight:[{type:e.Input,args:["height"]}],autoCreate:[{type:e.Input,args:["auto-create"]}],onClose:[{type:e.Output}],onCollapse:[{type:e.Output}],onExpand:[{type:e.Output}],onOpen:[{type:e.Output}]},t}(),o=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[n],exports:[n]}]}],t}();t.jqxResponsivePanelComponent=n,t.jqxResponsivePanelModule=o,Object.defineProperty(t,"__esModule",{value:!0})});