jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
10 lines (9 loc) • 6.48 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxbuttons');
require('../../jqwidgets/jqxwindow');
require('../../jqwidgets/jqxribbon');
require('../../jqwidgets/jqxlayout');
require('../../jqwidgets/jqxmenu');
require('../../jqwidgets/jqxscrollbar');
require('../../jqwidgets/jqxdockinglayout');
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxdockinglayout",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxdockinglayout={}),t.ng.core)}(this,function(t,e){"use strict";function r(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=r.next()).done;)s.push(n.value)}catch(u){i={error:u}}finally{try{n&&!n.done&&(o=r["return"])&&o.call(r)}finally{if(i)throw i.error}}return s}var o=function(){function t(t){this.autoCreate=!0,this.properties=["contextMenu","height","layout","minGroupHeight","minGroupWidth","resizable","rtl","theme","width"],this.onDock=new e.EventEmitter,this.onFloatGroupClosed=new e.EventEmitter,this.onFloat=new e.EventEmitter,this.onPin=new e.EventEmitter,this.onResize=new e.EventEmitter,this.onUnpin=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 o="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),n=!1;if(this[o]!==undefined){if("object"==typeof this[o]){if(this[o]instanceof Array&&(n=this.arraysEqual(this[o],this.host.jqxDockingLayout(this.properties[e]))),n)return!1;this.host.jqxDockingLayout(this.properties[e],this[o]);continue}this[o]!==this.host.jqxDockingLayout(this.properties[e])&&this.host.jqxDockingLayout(this.properties[e],this[o])}}},t.prototype.arraysEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(var o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},e=0;e<this.properties.length;e++){var o="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);this[o]!==undefined&&(t[this.properties[e]]=this[o])}return t},t.prototype.moveClasses=function(t,e){var o,n=t.classList;0<n.length&&(o=e.classList).add.apply(o,function i(){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 o=t.style.cssText;e.style.cssText=o,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,"jqxDockingLayout",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.jqxDockingLayout("setOptions",t)},t.prototype.contextMenu=function(t){if(t===undefined)return this.host.jqxDockingLayout("contextMenu");this.host.jqxDockingLayout("contextMenu",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxDockingLayout("height");this.host.jqxDockingLayout("height",t)},t.prototype.layout=function(t){if(t===undefined)return this.host.jqxDockingLayout("layout");this.host.jqxDockingLayout("layout",t)},t.prototype.minGroupHeight=function(t){if(t===undefined)return this.host.jqxDockingLayout("minGroupHeight");this.host.jqxDockingLayout("minGroupHeight",t)},t.prototype.minGroupWidth=function(t){if(t===undefined)return this.host.jqxDockingLayout("minGroupWidth");this.host.jqxDockingLayout("minGroupWidth",t)},t.prototype.resizable=function(t){if(t===undefined)return this.host.jqxDockingLayout("resizable");this.host.jqxDockingLayout("resizable",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxDockingLayout("rtl");this.host.jqxDockingLayout("rtl",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxDockingLayout("theme");this.host.jqxDockingLayout("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxDockingLayout("width");this.host.jqxDockingLayout("width",t)},t.prototype.addFloatGroup=function(t,e,o,n,i,r,s){this.host.jqxDockingLayout("addFloatGroup",t,e,o,n,i,r,s)},t.prototype.destroy=function(){this.host.jqxDockingLayout("destroy")},t.prototype.loadLayout=function(t){this.host.jqxDockingLayout("loadLayout",t)},t.prototype.refresh=function(){this.host.jqxDockingLayout("refresh")},t.prototype.render=function(){this.host.jqxDockingLayout("render")},t.prototype.saveLayout=function(){return this.host.jqxDockingLayout("saveLayout")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("dock",function(t){e.onDock.emit(t)}),this.host.on("floatGroupClosed",function(t){e.onFloatGroupClosed.emit(t)}),this.host.on("float",function(t){e.onFloat.emit(t)}),this.host.on("pin",function(t){e.onPin.emit(t)}),this.host.on("resize",function(t){e.onResize.emit(t)}),this.host.on("unpin",function(t){e.onUnpin.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxDockingLayout",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrContextMenu:[{type:e.Input,args:["contextMenu"]}],attrLayout:[{type:e.Input,args:["layout"]}],attrMinGroupHeight:[{type:e.Input,args:["minGroupHeight"]}],attrMinGroupWidth:[{type:e.Input,args:["minGroupWidth"]}],attrResizable:[{type:e.Input,args:["resizable"]}],attrRtl:[{type:e.Input,args:["rtl"]}],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"]}],onDock:[{type:e.Output}],onFloatGroupClosed:[{type:e.Output}],onFloat:[{type:e.Output}],onPin:[{type:e.Output}],onResize:[{type:e.Output}],onUnpin:[{type:e.Output}]},t}(),n=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[o],exports:[o]}]}],t}();t.jqxDockingLayoutComponent=o,t.jqxDockingLayoutModule=n,Object.defineProperty(t,"__esModule",{value:!0})});