jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
5 lines (4 loc) • 12.3 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxbuttons');
require('../../jqwidgets/jqxwindow');
!function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxwindow",["exports","@angular/core"],o):o((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxwindow={}),t.ng.core)}(this,function(t,o){"use strict";function s(t,o){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,e,s=n.call(t),r=[];try{for(;(void 0===o||0<o--)&&!(i=s.next()).done;)r.push(i.value)}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=s["return"])&&n.call(s)}finally{if(e)throw e.error}}return r}var n=function(){function t(t){this.autoCreate=!0,this.properties=["autoOpen","animationType","collapsed","collapseAnimationDuration","content","closeAnimationDuration","closeButtonSize","closeButtonAction","cancelButton","dragArea","draggable","disabled","height","initContent","isModal","keyboardCloseKey","keyboardNavigation","minHeight","maxHeight","minWidth","maxWidth","modalOpacity","modalZIndex","modalBackgroundZIndex","okButton","position","rtl","resizable","showAnimationDuration","showCloseButton","showCollapseButton","theme","title","width","zIndex"],this.onClose=new o.EventEmitter,this.onCollapse=new o.EventEmitter,this.onExpand=new o.EventEmitter,this.onMoving=new o.EventEmitter,this.onMoved=new o.EventEmitter,this.onOpen=new o.EventEmitter,this.onResizing=new o.EventEmitter,this.onResized=new o.EventEmitter,this.elementRef=t}return t.prototype.ngOnInit=function(){this.autoCreate&&this.createComponent()},t.prototype.ngOnChanges=function(t){if(this.host)for(var o=0;o<this.properties.length;o++){var n="attr"+this.properties[o].substring(0,1).toUpperCase()+this.properties[o].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.jqxWindow(this.properties[o]))),i)return!1;this.host.jqxWindow(this.properties[o],this[n]);continue}this[n]!==this.host.jqxWindow(this.properties[o])&&this.host.jqxWindow(this.properties[o],this[n])}}},t.prototype.arraysEqual=function(t,o){if(t&&!o||!t&&o)return!1;if(t.length!=o.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==o[n])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},o=0;o<this.properties.length;o++){var n="attr"+this.properties[o].substring(0,1).toUpperCase()+this.properties[o].substring(1);this[n]!==undefined&&(t[this.properties[o]]=this[n])}return t},t.prototype.moveClasses=function(t,o){var n,i=t.classList;0<i.length&&(n=o.classList).add.apply(n,function e(){for(var t=[],o=0;o<arguments.length;o++)t=t.concat(s(arguments[o]));return t}(i)),t.className=""},t.prototype.moveStyles=function(t,o){var n=t.style.cssText;o.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,"jqxWindow",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.jqxWindow("setOptions",t)},t.prototype.autoOpen=function(t){if(t===undefined)return this.host.jqxWindow("autoOpen");this.host.jqxWindow("autoOpen",t)},t.prototype.animationType=function(t){if(t===undefined)return this.host.jqxWindow("animationType");this.host.jqxWindow("animationType",t)},t.prototype.collapsed=function(t){if(t===undefined)return this.host.jqxWindow("collapsed");this.host.jqxWindow("collapsed",t)},t.prototype.collapseAnimationDuration=function(t){if(t===undefined)return this.host.jqxWindow("collapseAnimationDuration");this.host.jqxWindow("collapseAnimationDuration",t)},t.prototype.content=function(t){if(t===undefined)return this.host.jqxWindow("content");this.host.jqxWindow("content",t)},t.prototype.closeAnimationDuration=function(t){if(t===undefined)return this.host.jqxWindow("closeAnimationDuration");this.host.jqxWindow("closeAnimationDuration",t)},t.prototype.closeButtonSize=function(t){if(t===undefined)return this.host.jqxWindow("closeButtonSize");this.host.jqxWindow("closeButtonSize",t)},t.prototype.closeButtonAction=function(t){if(t===undefined)return this.host.jqxWindow("closeButtonAction");this.host.jqxWindow("closeButtonAction",t)},t.prototype.cancelButton=function(t){if(t===undefined)return this.host.jqxWindow("cancelButton");this.host.jqxWindow("cancelButton",t)},t.prototype.dragArea=function(t){if(t===undefined)return this.host.jqxWindow("dragArea");this.host.jqxWindow("dragArea",t)},t.prototype.draggable=function(t){if(t===undefined)return this.host.jqxWindow("draggable");this.host.jqxWindow("draggable",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxWindow("disabled");this.host.jqxWindow("disabled",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxWindow("height");this.host.jqxWindow("height",t)},t.prototype.initContent=function(t){if(t===undefined)return this.host.jqxWindow("initContent");this.host.jqxWindow("initContent",t)},t.prototype.isModal=function(t){if(t===undefined)return this.host.jqxWindow("isModal");this.host.jqxWindow("isModal",t)},t.prototype.keyboardCloseKey=function(t){if(t===undefined)return this.host.jqxWindow("keyboardCloseKey");this.host.jqxWindow("keyboardCloseKey",t)},t.prototype.keyboardNavigation=function(t){if(t===undefined)return this.host.jqxWindow("keyboardNavigation");this.host.jqxWindow("keyboardNavigation",t)},t.prototype.minHeight=function(t){if(t===undefined)return this.host.jqxWindow("minHeight");this.host.jqxWindow("minHeight",t)},t.prototype.maxHeight=function(t){if(t===undefined)return this.host.jqxWindow("maxHeight");this.host.jqxWindow("maxHeight",t)},t.prototype.minWidth=function(t){if(t===undefined)return this.host.jqxWindow("minWidth");this.host.jqxWindow("minWidth",t)},t.prototype.maxWidth=function(t){if(t===undefined)return this.host.jqxWindow("maxWidth");this.host.jqxWindow("maxWidth",t)},t.prototype.modalOpacity=function(t){if(t===undefined)return this.host.jqxWindow("modalOpacity");this.host.jqxWindow("modalOpacity",t)},t.prototype.modalZIndex=function(t){if(t===undefined)return this.host.jqxWindow("modalZIndex");this.host.jqxWindow("modalZIndex",t)},t.prototype.modalBackgroundZIndex=function(t){if(t===undefined)return this.host.jqxWindow("modalBackgroundZIndex");this.host.jqxWindow("modalBackgroundZIndex",t)},t.prototype.okButton=function(t){if(t===undefined)return this.host.jqxWindow("okButton");this.host.jqxWindow("okButton",t)},t.prototype.position=function(t){if(t===undefined)return this.host.jqxWindow("position");this.host.jqxWindow("position",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxWindow("rtl");this.host.jqxWindow("rtl",t)},t.prototype.resizable=function(t){if(t===undefined)return this.host.jqxWindow("resizable");this.host.jqxWindow("resizable",t)},t.prototype.showAnimationDuration=function(t){if(t===undefined)return this.host.jqxWindow("showAnimationDuration");this.host.jqxWindow("showAnimationDuration",t)},t.prototype.showCloseButton=function(t){if(t===undefined)return this.host.jqxWindow("showCloseButton");this.host.jqxWindow("showCloseButton",t)},t.prototype.showCollapseButton=function(t){if(t===undefined)return this.host.jqxWindow("showCollapseButton");this.host.jqxWindow("showCollapseButton",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxWindow("theme");this.host.jqxWindow("theme",t)},t.prototype.title=function(t){if(t===undefined)return this.host.jqxWindow("title");this.host.jqxWindow("title",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxWindow("width");this.host.jqxWindow("width",t)},t.prototype.zIndex=function(t){if(t===undefined)return this.host.jqxWindow("zIndex");this.host.jqxWindow("zIndex",t)},t.prototype.bringToFront=function(){this.host.jqxWindow("bringToFront")},t.prototype.close=function(){this.host.jqxWindow("close")},t.prototype.collapse=function(){this.host.jqxWindow("collapse")},t.prototype.closeAll=function(){this.host.jqxWindow("closeAll")},t.prototype.disable=function(){this.host.jqxWindow("disable")},t.prototype.destroy=function(){this.host.jqxWindow("destroy")},t.prototype.enable=function(){this.host.jqxWindow("enable")},t.prototype.expand=function(){this.host.jqxWindow("expand")},t.prototype.focus=function(){this.host.jqxWindow("focus")},t.prototype.isOpen=function(){return this.host.jqxWindow("isOpen")},t.prototype.move=function(t,o){this.host.jqxWindow("move",t,o)},t.prototype.open=function(){this.host.jqxWindow("open")},t.prototype.hide=function(){this.host.jqxWindow("hide")},t.prototype.resize=function(t,o){this.host.jqxWindow("resize",t,o)},t.prototype.setTitle=function(t){this.host.jqxWindow("setTitle",t)},t.prototype.setContent=function(t){this.host.jqxWindow("setContent",t)},t.prototype.__wireEvents__=function(){var o=this;this.host.on("close",function(t){o.onClose.emit(t)}),this.host.on("collapse",function(t){o.onCollapse.emit(t)}),this.host.on("expand",function(t){o.onExpand.emit(t)}),this.host.on("moving",function(t){o.onMoving.emit(t)}),this.host.on("moved",function(t){o.onMoved.emit(t)}),this.host.on("open",function(t){o.onOpen.emit(t)}),this.host.on("resizing",function(t){o.onResizing.emit(t)}),this.host.on("resized",function(t){o.onResized.emit(t)})},t.decorators=[{type:o.Component,args:[{selector:"jqxWindow",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:o.ElementRef}]},t.propDecorators={attrAutoOpen:[{type:o.Input,args:["autoOpen"]}],attrAnimationType:[{type:o.Input,args:["animationType"]}],attrCollapsed:[{type:o.Input,args:["collapsed"]}],attrCollapseAnimationDuration:[{type:o.Input,args:["collapseAnimationDuration"]}],attrContent:[{type:o.Input,args:["content"]}],attrCloseAnimationDuration:[{type:o.Input,args:["closeAnimationDuration"]}],attrCloseButtonSize:[{type:o.Input,args:["closeButtonSize"]}],attrCloseButtonAction:[{type:o.Input,args:["closeButtonAction"]}],attrCancelButton:[{type:o.Input,args:["cancelButton"]}],attrDragArea:[{type:o.Input,args:["dragArea"]}],attrDraggable:[{type:o.Input,args:["draggable"]}],attrDisabled:[{type:o.Input,args:["disabled"]}],attrInitContent:[{type:o.Input,args:["initContent"]}],attrIsModal:[{type:o.Input,args:["isModal"]}],attrKeyboardCloseKey:[{type:o.Input,args:["keyboardCloseKey"]}],attrKeyboardNavigation:[{type:o.Input,args:["keyboardNavigation"]}],attrMinHeight:[{type:o.Input,args:["minHeight"]}],attrMaxHeight:[{type:o.Input,args:["maxHeight"]}],attrMinWidth:[{type:o.Input,args:["minWidth"]}],attrMaxWidth:[{type:o.Input,args:["maxWidth"]}],attrModalOpacity:[{type:o.Input,args:["modalOpacity"]}],attrModalZIndex:[{type:o.Input,args:["modalZIndex"]}],attrModalBackgroundZIndex:[{type:o.Input,args:["modalBackgroundZIndex"]}],attrOkButton:[{type:o.Input,args:["okButton"]}],attrPosition:[{type:o.Input,args:["position"]}],attrRtl:[{type:o.Input,args:["rtl"]}],attrResizable:[{type:o.Input,args:["resizable"]}],attrShowAnimationDuration:[{type:o.Input,args:["showAnimationDuration"]}],attrShowCloseButton:[{type:o.Input,args:["showCloseButton"]}],attrShowCollapseButton:[{type:o.Input,args:["showCollapseButton"]}],attrTheme:[{type:o.Input,args:["theme"]}],attrTitle:[{type:o.Input,args:["title"]}],attrZIndex:[{type:o.Input,args:["zIndex"]}],attrWidth:[{type:o.Input,args:["width"]}],attrHeight:[{type:o.Input,args:["height"]}],autoCreate:[{type:o.Input,args:["auto-create"]}],onClose:[{type:o.Output}],onCollapse:[{type:o.Output}],onExpand:[{type:o.Output}],onMoving:[{type:o.Output}],onMoved:[{type:o.Output}],onOpen:[{type:o.Output}],onResizing:[{type:o.Output}],onResized:[{type:o.Output}]},t}(),i=function(){function t(){}return t.decorators=[{type:o.NgModule,args:[{imports:[],declarations:[n],exports:[n]}]}],t}();t.jqxWindowComponent=n,t.jqxWindowModule=i,Object.defineProperty(t,"__esModule",{value:!0})});