ngx-golden-layout
Advanced tools
Comparing version 0.0.32 to 0.0.33
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("golden-layout"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-golden-layout",["exports","@angular/core","rxjs","golden-layout","rxjs/operators","@angular/common"],t):t((e=e||self)["ngx-golden-layout"]={},e.ng.core,e.rxjs,e.GoldenLayout,e.rxjs.operators,e.ng.common)}(this,function(e,t,n,o,i,r){"use strict";var a=function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(n=r["return"])&&n.call(r)}finally{if(i)throw i.error}}return a}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}var u=new t.InjectionToken("ComponentTypes"),d=new t.InjectionToken("Dependencies"),p=function(){return function(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}}();function f(){if(console.log("MultiWindowInit"),!window.opener&&!window.__services&&!window.__serviceConstructors&&(window.__services=new window.Map,window.__serviceConstructors=new window.Map,window.require)){var e=window.open.bind(window);window.open=function(t,n,o,i){var r=e(t,n,o,i);return r.require=window.require,r}}}function h(e){return f(),function(t){var n=t,o=window.opener||window,i=o===window;if(i){if(o.__serviceConstructors.has(e))throw new Error("MultiWindowService(): uniqueName "+e+" already taken.");o.__serviceConstructors.set(e,n)}var r=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];if(!o.__services.has(e)){var r=o.__serviceConstructors.get(e)||n;o.__services.set(e,new(r.bind.apply(r,c([void 0],t))))}return o.__services.get(e)};try{if(i){var a=Reflect.getMetadata("design:paramtypes",n);Reflect.metadata("design:paramtypes",a)(r)}}catch(s){}return r}}var m=function(){function e(){this.loadedURLs=new Map,this.loads=new n.Subject,this.unloads=new n.Subject}return e.prototype.loadRequests$=function(){return this.loads},e.prototype.unloadRequests$=function(){return this.unloads},e.prototype.allPlugins=function(){return c(this.loadedURLs.entries()).map(function(e){return{id:e[0],url:e[1]}})},e.prototype.requestLoad=function(e,t){var n=this.loadedURLs.get(e);if(n){if(n!==t)throw new Error("Plugin "+e+" is already loaded with another URL")}else this.loadedURLs.set(e,t),this.loads.next({id:e,url:t})},e.prototype.requestUnload=function(e){if(!this.loadedURLs.get(e))throw new Error("Plugin "+e+" is not loaded");this.loadedURLs["delete"](e),this.unloads.next(e)},e.decorators=[{type:t.Injectable}],e=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}([h("_gl__PluginURLProvider")],e)}(),g=function(){function e(e,t,o){var i=this;void 0===e&&(e=[]),this.urlProvider=t,this.injector=o,this.availableDependencies=new Map,this.loadedPlugins=new Map,this.pluginLoaded$=new n.Subject,this.pluginUnloaded$=new n.Subject,console.log("Creating PluginRegistry, got",e.length,"additional dependency modules"),e.forEach(function(e){return i.availableDependencies.set(e.name,e.loader)}),this.patchWindow(),this.urlProvider.loadRequests$().subscribe(function(e){return i.load(e)}),this.urlProvider.allPlugins().forEach(function(e){return i.load(e)})}return e.prototype.startLoadPlugin=function(e,t){this.urlProvider.requestLoad(e,t)},e.prototype.startUnloadPlugin=function(e){this.urlProvider.requestUnload(e)},e.prototype.waitForPlugin=function(e){var t=this.loadedPlugins.get(e);if(t)return t.module.promise;var n={id:e,module:new p,url:null,script:null,moduleRef:null};return this.loadedPlugins.set(e,n),n.module.promise},e.prototype.patchWindow=function(){var e=this;window.define=function(n,o,i){var r=e.loadedPlugins.get(n);if(r){var a=(o=o.slice(1)).map(function(t){var o=e.availableDependencies.get(t);return o?Promise.resolve(o)["catch"](function(e){return console.warn("Plugin",n,"dependency",t,"but load failed",e),undefined}):(console.warn("Plugin",n,"requested unknown dependency",t),Promise.resolve(undefined))});Promise.all(a).then(function(o){var a={};i.apply(void 0,c([a],o)),console.log("Plugin",n,"loaded.");var s=a.MODULE;if(!s)return Promise.reject("No MODULE export found");var l=new t.ɵNgModuleFactory(s);r.moduleRef=l.create(e.injector),r.module.resolve(a),e.pluginLoaded$.next({id:r.id,module:r.moduleRef})})["catch"](function(e){console.warn("Failed to load plugin",n,"error",e),r.module.reject(e)})}else console.warn("Unknown plugin called define():",n)},window.define.amd=!0,console.log("Window AMD shim established.")},e.prototype.load=function(e){var t=e.id,n=e.url,o=this.loadedPlugins.get(t);if(o&&o.url){if(o.url!==n)throw new Error("Plugin is already loaded with another URL")}else{o||(o={id:t,module:new p,url:null,moduleRef:null,script:null}),o.url=n,this.loadedPlugins.set(t,o);var i=document.createElement("script");i.onerror=function(e){return o.module.reject(e)},i.type="text/javascript",i.src=n,o.script=i,document.body.appendChild(i)}},e.prototype.unload=function(e){},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:t.Inject,args:[d]},{type:t.Optional}]},{type:m},{type:t.Injector}]},e}(),y=new t.InjectionToken("GoldenLayoutContainer"),v=new t.InjectionToken("GoldenLayoutComponentState"),w=new t.InjectionToken("GoldenLayoutEventHub"),_=new t.InjectionToken("GoldenLayoutComponentHost");function C(e){return"object"==typeof e&&"function"==typeof e.glOnResize}function b(e){return"object"==typeof e&&"function"==typeof e.glOnShow}function I(e){return"object"==typeof e&&"function"==typeof e.glOnHide}function L(e){return"object"==typeof e&&"function"==typeof e.glOnTab}var x=function(){function e(e,t,n){this.host=e,this.container=t,this.state=n,this.destroyed=!1,this.initialized=!1,this.originalComponent=this.host.getGoldenLayoutInstance()._getAllComponents()[this.state.originalId]}return Object.defineProperty(e.prototype,"headerComponent",{get:function(){return this.originalComponent&&this.originalComponent.instance?this.originalComponent.instance.then(function(e){return e.instance.headerComponent}):undefined},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"additionalTokens",{get:function(){return this.originalComponent&&this.originalComponent.instance?this.originalComponent.instance.then(function(e){return e.instance.additionalTokens}):undefined},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.originalComponent.instance.then(function(t){e.destroyed||e.initialized||(e.redock(t,e.container.getElement()),e.initialized=!0)})},e.prototype.ngOnDestroy=function(){var e=this;this.originalComponent.instance.then(function(t){e.initialized&&!e.destroyed&&(e.redock(t,e.originalComponent.container.getElement()),e.destroyed=!0)})},e.prototype.redock=function(e,t){var n=$(e.location.nativeElement);n.remove(),t.append(n),C(e.instance)&&e.instance.glOnResize()},e.prototype.glOnHide=function(){this.originalComponent.instance.then(function(e){I(e.instance)&&e.instance.glOnHide()})},e.prototype.glOnShow=function(){this.originalComponent.instance.then(function(e){b(e.instance)&&e.instance.glOnShow()})},e.prototype.glOnResize=function(){this.originalComponent.instance.then(function(e){C(e.instance)&&e.instance.glOnResize()})},e.prototype.glOnTab=function(e){var t=this;this.originalComponent.instance.then(function(e){L(e.instance)&&e.instance.glOnTab(t.originalComponent.tab)})},e.decorators=[{type:t.Component,args:[{selector:"gl-wrapper",encapsulation:t.ViewEncapsulation.None,template:'<div class="wrapper"></div>'}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:t.Inject,args:[_]}]},{type:undefined,decorators:[{type:t.Inject,args:[y]}]},{type:undefined,decorators:[{type:t.Inject,args:[v]}]}]},e}(),S=function(){function e(e,t){var n=this;this.pluginRegistry=t,this.components=new Map,this.awaitedComponents=new Map,(e||[]).forEach(function(e){return n.registerComponent(e)}),this.registerComponent({name:"gl-wrapper",type:x}),this.pluginRegistry.pluginLoaded$.subscribe(function(e){var t=e.id,o=e.module.injector.get(u,[]);console.log("Plugin",t,"wants to register",o.length,"components"),o.forEach(function(e){return n.registerComponent(a({},e,{plugin:t}))})})}return e.prototype.registeredComponents=function(){return c(this.components.entries()).map(function(e){return{name:e[0],type:e[1]}})},e.prototype.componentMap=function(){return this.components},e.prototype.registerComponent=function(e){var t=this.components.get(e.name);if(t&&t!==e.type)throw new Error("Failed to register component, "+e.name+" is already taken by another component: "+t);this.components.set(e.name,e.type);var n=this.awaitedComponents.get(e.name);n&&(this.awaitedComponents["delete"](e.name),n.resolve(e.type))},e.prototype.waitForComponent=function(e){var t=this.components.get(e);if(t)return Promise.resolve(t);var n=this.awaitedComponents.get(e);return n||(n=new p,this.awaitedComponents.set(e,n)),n.promise},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:t.Inject,args:[u]},{type:t.Optional}]},{type:g}]},e}(),j=new t.InjectionToken("fallback component"),P=new t.InjectionToken("failed component"),E=function(){function e(){}return e.prototype.isChildWindow=function(){try{return!!window.opener&&!!window.opener.location.href}catch(e){return!1}},e.prototype.getRootWindow=function(){return this.isChildWindow()?window.opener:window},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}(),O=function(){function e(e,t,n){var o=this;this.appref=e,this.rootService=t,this.injector=n,this.unloaded=!1,this.topWindow=this.rootService.getRootWindow(),this.isChildWindow=this.rootService.isChildWindow(),this.isChildWindow&&(window.document.title=window.document.URL,console.__log=console.log,console.log=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=o.topWindow.console).log.apply(e,c(["[CHILD] =>"],t))});var i=this.topWindow;this.isChildWindow||(i.__apprefs=[],i.__injector=this.injector),i.__apprefs.push(this.appref),this.appref.__tick=this.appref.tick,this.appref.tick=function(){var e,t,n=function(e){e._zone.run(function(){return e.__tick()})};try{for(var i=s(o.topWindow.__apprefs),r=i.next();!r.done;r=i.next()){n(r.value)}}catch(a){e={error:a}}finally{try{r&&!r.done&&(t=i["return"])&&t.call(i)}finally{if(e)throw e.error}}}}return e.prototype.onUnload=function(){if(!this.unloaded&&(this.unloaded=!0,this.isChildWindow)){var e=this.topWindow.__apprefs.indexOf(this.appref);e>=0&&this.topWindow.__apprefs.splice(e,1)}},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:t.ApplicationRef},{type:E},{type:t.Injector}]},e}(),k=o,R=function(e){return e.isComponent&&e.config&&e.config.componentState&&e.config.componentState.originalId},M=function(e,t){var n=e.root.getItemsById(t);return 1!==n.length?(console.warn("non unique ID found: "+t),undefined):n[0]},D=function(e){return M(e.layoutManager,e.config.componentState.originalId)},A=k.__lm.controls.Tab,U=function(e,t){var n=new A(e,t);return n.closeElement.off("click touchstart"),n.closeElement.on("click touchstart",function(e){if(e.stopPropagation(),R(n.contentItem)){var t=D(n.contentItem);t&&t.isComponent&&t.container.close()}else n.contentItem.container.close()}),n.element.on("mousedown touchstart",function(e){var t=n.contentItem;R(t)&&(t=D(n.contentItem)),t.layoutManager.emit("tabActivated",t)}),R(n.contentItem)&&!0===n._layoutManager.config.settings.reorderEnabled&&n.element.on("mousedown touchstart",function(t){var o,i,r=(o=n.contentItem,(i=D(o))?i.tab:undefined);if(r&&r._dragListener){var a=r._dragListener,s=function(){a.off("dragStart",s,a),e.layoutManager._maximisedItem===n.contentItem.parent&&n.contentItem.parent.toggleMaximise()};a.off("dragStart",r._onDragStart,r),a.on("dragStart",s,a),a.on("dragStart",r._onDragStart,r),a._fDown(t)}}),n};U._template='<li class="lm_tab"><i class="lm_left"></i><span class="lm_title"></span><div class="lm_close_tab"></div><i class="lm_right"></i></li>',k.__lm.controls.Tab=U;var T=k.__lm.controls.Header,W=function(e,t){var n=t._header.maximise,o=t._header.popout;n&&!0===e.config.settings.maximiseAllItems&&delete t._header.maximise,o&&!0===e.config.settings.maximiseAllItems&&delete t._header.popout;var i=new T(e,t);if(o&&!0===e.config.settings.maximiseAllItems&&(i.popoutButton=new k.__lm.controls.HeaderButton(i,o,"lm_popout",function(){var t=i.activeContentItem;R(t)?(t=D(t)).popout():!0===e.config.settings.popoutWholeStack?i.parent.popout():t.popout()})),n&&!0===e.config.settings.maximiseAllItems&&(i.maximiseButton=new k.__lm.controls.HeaderButton(i,n,"lm_maximise",function(){console.log("I should maximise all items."),e._maximisedItem===t?t.toggleMaximise():e.generateAndMaximiseDummyStack(t)})),i.closeButton){i.closeButton._$destroy();var r=i._getHeaderSetting("close");i.closeButton=new k.__lm.controls.HeaderButton(i,r,"lm_close",function(){i.parent.contentItems.forEach(function(e){e.container.close()})})}return i};W._template=['<div class="lm_header">','<ul class="lm_tabs"></ul>','<ul class="lm_controls"></ul>','<ul class="lm_tabdropdown_list"></ul>',"</div>"].join(""),k.__lm.controls.Header=W;var z=k.__lm.controls.DragProxy,H=function(e,t,n,o,i,r){return o.emit("itemDragged",i),console.log("new dragProxy",i),new z(e,t,n,o,i,r)};H._template=z._template,k.__lm.controls.DragProxy=H;var N=k.__lm.items.Stack;function q(e,t,o){var i=this;console.log(e,t,o,this),N.call(this,e,t,o),this.activeContentItem$=new n.BehaviorSubject(null);var r=function(e){i.activeContentItem$&&i.activeContentItem$.next(e)};this.on("activeContentItemChanged",r);var a=this._$destroy;return this.___destroyed=!1,this._$destroy=function(){i.___destroyed||(i.___destroyed=!0,i.off("activeContentItemChanged",r),i.activeContentItem$.complete(),i.activeContentItem$=null,a.call(i))},this}q.prototype=Object.create(N.prototype),q.prototype.addChild=function(e,t){var n=this;"stack"===e.type?((e.content||[]).forEach(function(e,o){return N.prototype.addChild.call(n,e,t+o)}),e.content.length&&this.setActiveContentItem(this.contentItems[t+e.activeItemIndex])):N.prototype.addChild.call(this,e,t)},q.prototype.setSize=function(){this.layoutManager._maximisedItem===this&&(this.element.width(this.layoutManager.container.width()),this.element.height(this.layoutManager.container.height())),N.prototype.setSize.call(this)},k.__lm.items.Stack=q;var G=k.__lm.controls.BrowserPopout;k.__lm.controls.BrowserPopout=function(e,t,n,o,i){return 1!==e.length?console.warn("This should not happen, permitting",e):"component"===e[0].type&&(e=[{type:"stack",title:e[0].title,content:[e[0]]}]),new G(e,t,n,o,i)};var F=function(){function e(e,o,i,r,a,s,l,c,u){var d=this;this.rootService=e,this.componentRegistry=o,this.viewContainer=i,this.appref=r,this.componentFactoryResolver=a,this.ngZone=s,this.injector=l,this.windowSync=c,this.fallbackComponent=u,this.stateChanged=new t.EventEmitter,this.tabActivated=new t.EventEmitter,this.goldenLayout=null,this.onUnloaded=new p,this.stateChangePaused=!1,this.stateChangeScheduled=!1,this.tabsList=new n.BehaviorSubject({}),this.pushStateChange=function(){d.tabsList.next(d.goldenLayout._getAllComponents()),d.stateChangePaused||d.stateChangeScheduled||(d.stateChangeScheduled=!0,window.requestAnimationFrame(function(){d.stateChangeScheduled=!1,d.stateChanged.emit()}))},this.resumeStateChange=function(){return d.stateChangePaused=!1},this.pauseStateChange=function(){return d.stateChangePaused=!0},this.pushTabActivated=function(e){d.tabActivated.emit(e)},this.fallbackType=null,this.openedComponents=[],this.poppedIn=!1,this._eventEmitter=new k.__lm.utils.EventEmitter,this.isChildWindow=this.rootService.isChildWindow(),this.fallbackComponent&&(this.fallbackType=this.buildConstructor(this.fallbackComponent)),t.isDevMode()&&console.log("Create@"+(this.isChildWindow?"child":"root")+"!")}return e.prototype.onResize=function(){this.goldenLayout&&this.goldenLayout.updateSize()},e.prototype.ngOnInit=function(){var e=this;t.isDevMode()&&console.log("Init@"+(this.isChildWindow?"child":"root")+"!"),this.layoutSubscription=this.layout.subscribe(function(t){e.destroyGoldenLayout(),e.initializeGoldenLayout(t)})},e.prototype.beforeUnload=function(){var e=this;this.poppedIn&&(this.onUnloaded.promise.then(function(){return e.ngOnDestroy()}),this.onUnloaded.resolve(),this.windowSync.onUnload())},e.prototype.pageHide=function(){var e=this;this.poppedIn||this.openedComponents.forEach(function(e){var t;"object"==typeof(t=e)&&"function"==typeof t.glOnUnload&&e.glOnUnload()}),this.onUnloaded.promise.then(function(){return e.ngOnDestroy()}),this.onUnloaded.resolve(),this.windowSync.onUnload()},e.prototype.ngOnDestroy=function(){var e;t.isDevMode()&&console.log("Destroy@"+(this.isChildWindow?"child":"root")+"!"),this.layoutSubscription.unsubscribe(),this.appref.tick=this.appref.__tick,this.destroyGoldenLayout(),this._eventEmitter._mSubscriptions=((e={})[k.__lm.utils.EventEmitter.ALL_EVENT]=[],e),this.isChildWindow&&(console.log=console.__log)},e.prototype.getGoldenLayoutInstance=function(){if(!this.goldenLayout)throw new Error("Component is not initialized yet");return this.goldenLayout},e.prototype.addEvent=function(e,t,n){this._eventEmitter.on(e,t,n)},e.prototype.getSerializableState=function(){if(this.goldenLayout){var e=this.goldenLayout.toConfig(),t=this.goldenLayout.__wrapperMaximisedItemId;if(t){e.maximisedItemId=t;var n=function(e){return("stack"!==e.type||!e.isDummy)&&("component"!==e.type&&(e.content=e.content.filter(n)),!0)};e.content=e.content.filter(n)}return e}return null},e.prototype.createNewComponent=function(e){if(!this.goldenLayout)throw new Error("golden layout is not initialized");var t=e,n=this.goldenLayout.root,o=null;if(n.contentItems&&0!==n.contentItems.length?o=this.findStack(n.contentItems):(o=n,t={type:"stack",content:[a({},t,{type:"component"})]}),null===o)throw new Error("this should never happen!");var i=this.goldenLayout.createContentItem(t);o.addChild(i)},e.prototype.findStack=function(e){var t,n;if(!e)return null;try{for(var o=s(e),i=o.next();!i.done;i=o.next()){var r=i.value;if(r.isStack){if(r.config.isDummy)continue;return r}var a=this.findStack(r.contentItems);if(null!==a)return a}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(t)throw t.error}}},e.prototype.destroyGoldenLayout=function(){this.goldenLayout&&(this.goldenLayout.off("stateChanged",this.pushStateChange),this.goldenLayout.off("itemDropped",this.resumeStateChange),this.goldenLayout.off("itemDragged",this.pauseStateChange),this.goldenLayout.off("tabActivated",this.pushTabActivated),this.goldenLayout.off("initialised"),this.goldenLayout.off(k.__lm.utils.EventEmitter.ALL_EVENT,this._eventEmitter.emit,this._eventEmitter),this.goldenLayout.destroy(),this.goldenLayout=null)},e.prototype.initializeGoldenLayout=function(e){var r=this;this.goldenLayout=new o(e,$(this.el.nativeElement));var u=this.goldenLayout.createPopout.bind(this.goldenLayout);this.goldenLayout.createPopout=function(e,t,n,o){for(var i,r=[e];r.length;){var a=r.shift();if(r.push.apply(r,c(a.contentItems)),a.isComponent){var s=a.container.__ngComponent;s&&("object"==typeof(i=s)&&"function"==typeof i.glOnPopout)&&s.glOnPopout()}console.log(a)}return console.log("beforepopout",e),u(e,t,n,o)};var d=function(e){var t,n,o={};try{for(var i=s(e.contentItems),r=i.next();!r.done;r=i.next()){var l=r.value;if(l.isComponent){if(l.config&&l.config.componentState&&l.config.componentState.originalId)continue;o[l.id]=l}else o=a({},o,d(l))}}catch(c){t={error:c}}finally{try{r&&!r.done&&(n=i["return"])&&n.call(i)}finally{if(t)throw t.error}}return o};this.goldenLayout._getAllComponents=function(){return d(r.goldenLayout.root)},this.goldenLayout.generateAndMaximiseDummyStack=function(e,t){var o=d(r.goldenLayout.root),l=Object.keys(o);if(0!==l.length){var c=r.goldenLayout.root.contentItems[0];if(c.isStack)c.toggleMaximise();else{var u={type:"stack",content:l.map(function(e){return{type:"component",componentName:"gl-wrapper",title:o[e].config.title,reorderEnabled:!1,componentState:{originalId:e}}}),isClosable:!1,isDummy:!0,state:"dummy",activeItemIndex:l.findIndex(function(n){return n===(t||e._activeContentItem.id)})};c.addChild(u,0);var p=c.contentItems[0],f=new n.Subject;r.goldenLayout.__wrapperMaximisedItemId=e._activeContentItem.id,p.activeContentItem$.subscribe(function(e){r.goldenLayout.__wrapperMaximisedItemId=e.config.componentState.originalId}),p.on("minimised",function(){console.log("minimised",p),r.goldenLayout.__wrapperMaximisedItemId=null,f.next(),f.complete(),p.remove()}),p.toggleMaximise(),r.tabsList.pipe(i.takeUntil(f),i.distinctUntilChanged(function(e,t){var n=Object.keys(e),o=new Set(Object.keys(t));return n.length===o.size&&n.every(function(e){return o.has(e)})})).subscribe(function(e){var t,n,o,i,r=a({},e),l=new Set(Object.keys(r)),c=new Set(p.contentItems.map(function(e){return e.config.componentState.originalId}));try{for(var u=s(l),d=u.next();!d.done;d=u.next()){var f=d.value;c.has(f)?c["delete"](f):p.addChild({type:"component",componentName:"gl-wrapper",title:e[f].config.title,reorderEnabled:!1,componentState:{originalId:f}})}}catch(y){t={error:y}}finally{try{d&&!d.done&&(n=u["return"])&&n.call(u)}finally{if(t)throw t.error}}var h=function(e){p.contentItems.find(function(t){return t.config.componentState.originalId===e}).remove()};try{for(var m=s(c),g=m.next();!g.done;g=m.next()){h(g.value)}}catch(v){o={error:v}}finally{try{g&&!g.done&&(i=m["return"])&&i.call(m)}finally{if(o)throw o.error}}})}}},this.goldenLayout.on("popIn",function(){console.log("popIn"),r.poppedIn=!0,r.openedComponents.forEach(function(e){var t;"object"==typeof(t=e)&&"function"==typeof t.glOnPopin&&e.glOnPopin()})}),this.goldenLayout.getComponent=function(e){return t.isDevMode()&&console.log("Resolving component "+e),r.buildConstructor(e)},this.goldenLayout.on("stackCreated",function(e){var o=document.createElement("li");o.classList.add("custom-header"),o.style.display="none";var a=e.header.controlsContainer[0],s=null;a.prepend(o);var c=function(){o.style.display="none",s&&(o.childNodes.forEach(function(e){return o.removeChild(e)}),s.destroy(),s=null)};e.activeContentItem$.pipe(i.switchMap(function(e){return e&&e.isComponent&&e.instance||n.of(null)}),i.switchMap(function(e){if(!e)return Promise.all([null,null,null]);var t=e.instance.headerComponent,n=e.instance.additionalTokens;return Promise.all([Promise.resolve(t),Promise.resolve(n),Promise.resolve(e)])})).subscribe(function(e){var n=l(e,3),i=n[0],a=n[1],u=n[2];i&&u?function(e,n,i){s&&c(),o.style.display="";var a=r.componentFactoryResolver.resolveComponentFactory(e),l=t.Injector.create(n,i);s=r.viewContainer.createComponent(a,undefined,l),o.prepend(s.location.nativeElement)}(i,a||[],u.injector):c()},c,c)}),this.goldenLayout.on("initialised",function(){window.requestAnimationFrame(function(){if(e.maximisedItemId){var t=M(r.goldenLayout,e.maximisedItemId);t&&r.goldenLayout.generateAndMaximiseDummyStack(t.parent,e.maximisedItemId)}})}),this.goldenLayout.init(),this.goldenLayout.on("stateChanged",this.pushStateChange),this.goldenLayout.on("itemDragged",this.pauseStateChange),this.goldenLayout.on("itemDropped",this.resumeStateChange),this.goldenLayout.on("tabActivated",this.pushTabActivated),this.goldenLayout.on(k.__lm.utils.EventEmitter.ALL_EVENT,this._eventEmitter.emit,this._eventEmitter)},e.prototype.buildConstructor=function(e){var t=this;return function(n,o){var i=n.parent;i.config.id?i.id=i.config.id:(i.id="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),i.config.id=i.id);var r=new p;return t.ngZone.run(function(){t.componentRegistry.waitForComponent(e).then(function(i){console.log("Component "+e+" returned from componentRegistry");var a=t.componentFactoryResolver.resolveComponentFactory(i),s=null;i===t.fallbackComponent&&(s=n._config.componentName);var l=t._createComponentInjector(n,o,s),c=t.viewContainer.createComponent(a,undefined,l);n.getElement().append($(c.location.nativeElement)),t._bindEventHooks(n,c.instance),n.__ngComponent=c.instance,t.openedComponents.push(c.instance);var u=!1,d=function(){u||(u=!0,t.openedComponents=t.openedComponents.filter(function(e){return e!==c.instance}),$(c.location.nativeElement).remove(),c.destroy())};n.on("destroy",d),t.onUnloaded.promise.then(d),r.resolve(c)})}),r.promise}},e.prototype._createComponentInjector=function(e,n,o){var i=[{provide:y,useValue:e},{provide:v,useValue:n},{provide:w,useValue:this.goldenLayout.eventHub},{provide:_,useValue:this}];return o&&i.push({provide:P,useValue:o}),t.Injector.create(i,this.injector)},e.prototype._bindEventHooks=function(e,t){if(C(t)&&e.on("resize",function(){t.glOnResize()}),b(t)&&e.on("show",function(){t.glOnShow()}),I(t)&&e.on("hide",function(){t.glOnHide()}),L(t)&&e.on("tab",function(e){t.glOnTab(e)}),"object"==typeof(o=t)&&"function"==typeof o.glOnClose){var n=e.close.bind(e);e.close=function(){if(!e._config.isClosable)return!1;t.glOnClose().then(function(){n()},function(){})}}var o},e.decorators=[{type:t.Component,args:[{selector:"golden-layout-root",template:'<div class="ng-golden-layout-root" #glroot></div>',styles:["\n .ng-golden-layout-root {\n width:100%;\n height:100%;\n }"]}]}],e.ctorParameters=function(){return[{type:E},{type:S},{type:t.ViewContainerRef},{type:t.ApplicationRef},{type:t.ComponentFactoryResolver},{type:t.NgZone},{type:t.Injector},{type:O},{type:undefined,decorators:[{type:t.Optional},{type:t.Inject,args:[j]}]}]},e.propDecorators={layout:[{type:t.Input}],stateChanged:[{type:t.Output}],tabActivated:[{type:t.Output}],el:[{type:t.ViewChild,args:["glroot",{"static":!0}]}],onResize:[{type:t.HostListener,args:["window:resize"]}],beforeUnload:[{type:t.HostListener,args:["window:beforeunload"]}],pageHide:[{type:t.HostListener,args:["window:pagehide"]}]},e}(),V=function(){function e(){}return e.forRoot=function(n,o,i){return{ngModule:e,providers:[S,E,g,m,O,{provide:t.APP_INITIALIZER,useValue:f,multi:!0},{provide:u,useValue:n},{provide:t.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:[n,o,x],multi:!0},{provide:d,useValue:i},{provide:j,useValue:o}]}},e.decorators=[{type:t.NgModule,args:[{declarations:[F,x],exports:[F],imports:[r.CommonModule]}]}],e}();e.ComponentRegistryService=S,e.FailedComponent=P,e.FallbackComponent=j,e.GoldenLayoutComponent=F,e.GoldenLayoutComponentHost=_,e.GoldenLayoutComponentState=v,e.GoldenLayoutComponents=u,e.GoldenLayoutContainer=y,e.GoldenLayoutEventHub=w,e.GoldenLayoutModule=V,e.GoldenLayoutPluginDependency=d,e.MultiWindowInit=f,e.MultiWindowService=h,e.PluginRegistryService=g,e.PluginURLProvider=m,e.RootWindowService=E,e.forChild=function(e){return[{provide:u,useValue:e},{provide:t.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:e,multi:!0}]},e.ɵa=O,e.ɵb=x,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs"),require("golden-layout"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-golden-layout",["exports","@angular/core","rxjs","golden-layout","rxjs/operators","@angular/common"],e):e((t=t||self)["ngx-golden-layout"]={},t.ng.core,t.rxjs,t.GoldenLayout,t.rxjs.operators,t.ng.common)}(this,function(t,e,n,o,i,r){"use strict";var a=function(){return(a=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function l(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(n=r["return"])&&n.call(r)}finally{if(i)throw i.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}var u=new e.InjectionToken("ComponentTypes"),d=new e.InjectionToken("Dependencies"),p=function(){return function(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}}();function f(){if(console.log("MultiWindowInit"),!window.opener&&!window.__services&&!window.__serviceConstructors&&(window.__services=new window.Map,window.__serviceConstructors=new window.Map,window.require)){var t=window.open.bind(window);window.open=function(e,n,o,i){var r=t(e,n,o,i);return r.require=window.require,r}}}function h(t){return f(),function(e){var n=e,o=window.opener||window,i=o===window;if(i){if(o.__serviceConstructors.has(t))throw new Error("MultiWindowService(): uniqueName "+t+" already taken.");o.__serviceConstructors.set(t,n)}var r=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];if(!o.__services.has(t)){var r=o.__serviceConstructors.get(t)||n;o.__services.set(t,new(r.bind.apply(r,c([void 0],e))))}return o.__services.get(t)};try{if(i){var a=Reflect.getMetadata("design:paramtypes",n);Reflect.metadata("design:paramtypes",a)(r)}}catch(s){}return r}}var m=function(){function t(){this.loadedURLs=new Map,this.loads=new n.Subject,this.unloads=new n.Subject}return t.prototype.loadRequests$=function(){return this.loads},t.prototype.unloadRequests$=function(){return this.unloads},t.prototype.allPlugins=function(){return c(this.loadedURLs.entries()).map(function(t){return{id:t[0],url:t[1]}})},t.prototype.requestLoad=function(t,e){var n=this.loadedURLs.get(t);if(n){if(n!==e)throw new Error("Plugin "+t+" is already loaded with another URL")}else this.loadedURLs.set(t,e),this.loads.next({id:t,url:e})},t.prototype.requestUnload=function(t){if(!this.loadedURLs.get(t))throw new Error("Plugin "+t+" is not loaded");this.loadedURLs["delete"](t),this.unloads.next(t)},t.decorators=[{type:e.Injectable}],t=function(t,e,n,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,n,a):i(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}([h("_gl__PluginURLProvider")],t)}(),g=function(){function t(t,e,o){var i=this;void 0===t&&(t=[]),this.urlProvider=e,this.injector=o,this.availableDependencies=new Map,this.loadedPlugins=new Map,this.pluginLoaded$=new n.Subject,this.pluginUnloaded$=new n.Subject,console.log("Creating PluginRegistry, got",t.length,"additional dependency modules"),t.forEach(function(t){return i.availableDependencies.set(t.name,t.loader)}),this.patchWindow(),this.urlProvider.loadRequests$().subscribe(function(t){return i.load(t)}),this.urlProvider.allPlugins().forEach(function(t){return i.load(t)})}return t.prototype.startLoadPlugin=function(t,e){this.urlProvider.requestLoad(t,e)},t.prototype.startUnloadPlugin=function(t){this.urlProvider.requestUnload(t)},t.prototype.waitForPlugin=function(t){var e=this.loadedPlugins.get(t);if(e)return e.module.promise;var n={id:t,module:new p,url:null,script:null,moduleRef:null};return this.loadedPlugins.set(t,n),n.module.promise},t.prototype.patchWindow=function(){var t=this;window.define=function(n,o,i){var r=t.loadedPlugins.get(n);if(r){var a=(o=o.slice(1)).map(function(e){var o=t.availableDependencies.get(e);return o?Promise.resolve(o)["catch"](function(t){return console.warn("Plugin",n,"dependency",e,"but load failed",t),undefined}):(console.warn("Plugin",n,"requested unknown dependency",e),Promise.resolve(undefined))});Promise.all(a).then(function(o){var a={};i.apply(void 0,c([a],o)),console.log("Plugin",n,"loaded.");var s=a.MODULE;if(!s)return Promise.reject("No MODULE export found");var l=new e.ɵNgModuleFactory(s);r.moduleRef=l.create(t.injector),r.module.resolve(a),t.pluginLoaded$.next({id:r.id,module:r.moduleRef})})["catch"](function(t){console.warn("Failed to load plugin",n,"error",t),r.module.reject(t)})}else console.warn("Unknown plugin called define():",n)},window.define.amd=!0,console.log("Window AMD shim established.")},t.prototype.load=function(t){var e=t.id,n=t.url,o=this.loadedPlugins.get(e);if(o&&o.url){if(o.url!==n)throw new Error("Plugin is already loaded with another URL")}else{o||(o={id:e,module:new p,url:null,moduleRef:null,script:null}),o.url=n,this.loadedPlugins.set(e,o);var i=document.createElement("script");i.onerror=function(t){return o.module.reject(t)},i.type="text/javascript",i.src=n,o.script=i,document.body.appendChild(i)}},t.prototype.unload=function(t){},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[d]},{type:e.Optional}]},{type:m},{type:e.Injector}]},t}(),y=new e.InjectionToken("GoldenLayoutContainer"),v=new e.InjectionToken("GoldenLayoutComponentState"),w=new e.InjectionToken("GoldenLayoutEventHub"),C=new e.InjectionToken("GoldenLayoutComponentHost");function _(t){return"object"==typeof t&&"function"==typeof t.glOnResize}function I(t){return"object"==typeof t&&"function"==typeof t.glOnShow}function b(t){return"object"==typeof t&&"function"==typeof t.glOnHide}function L(t){return"object"==typeof t&&"function"==typeof t.glOnTab}var x=function(){function t(t,e,n){this.host=t,this.container=e,this.state=n,this.destroyed=!1,this.initialized=!1,this.originalComponent=this.host.getGoldenLayoutInstance()._getAllComponents()[this.state.originalId]}return Object.defineProperty(t.prototype,"headerComponent",{get:function(){return this.originalComponent&&this.originalComponent.instance?this.originalComponent.instance.then(function(t){return t.instance.headerComponent}):undefined},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"additionalTokens",{get:function(){return this.originalComponent&&this.originalComponent.instance?this.originalComponent.instance.then(function(t){return t.instance.additionalTokens}):undefined},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.originalComponent.instance.then(function(e){t.destroyed||t.initialized||(t.redock(e,t.container.getElement()),t.initialized=!0)})},t.prototype.ngOnDestroy=function(){var t=this;this.originalComponent.instance.then(function(e){t.initialized&&!t.destroyed&&(t.redock(e,t.originalComponent.container.getElement()),t.destroyed=!0)})},t.prototype.redock=function(t,e){var n=$(t.location.nativeElement);n.remove(),e.append(n),_(t.instance)&&t.instance.glOnResize()},t.prototype.glOnHide=function(){this.originalComponent.instance.then(function(t){b(t.instance)&&t.instance.glOnHide()})},t.prototype.glOnShow=function(){this.originalComponent.instance.then(function(t){I(t.instance)&&t.instance.glOnShow()})},t.prototype.glOnResize=function(){this.originalComponent.instance.then(function(t){_(t.instance)&&t.instance.glOnResize()})},t.prototype.glOnTab=function(t){var e=this;this.originalComponent.instance.then(function(t){L(t.instance)&&t.instance.glOnTab(e.originalComponent.tab)})},t.decorators=[{type:e.Component,args:[{selector:"gl-wrapper",encapsulation:e.ViewEncapsulation.None,template:'<div class="wrapper"></div>'}]}],t.ctorParameters=function(){return[{type:undefined,decorators:[{type:e.Inject,args:[C]}]},{type:undefined,decorators:[{type:e.Inject,args:[y]}]},{type:undefined,decorators:[{type:e.Inject,args:[v]}]}]},t}(),S=function(){function t(t,e){var n=this;this.pluginRegistry=e,this.components=new Map,this.awaitedComponents=new Map,(t||[]).forEach(function(t){return n.registerComponent(t)}),this.registerComponent({name:"gl-wrapper",type:x}),this.pluginRegistry.pluginLoaded$.subscribe(function(t){var e=t.id,o=t.module.injector.get(u,[]);console.log("Plugin",e,"wants to register",o.length,"components"),o.forEach(function(t){return n.registerComponent(a({},t,{plugin:e}))})})}return t.prototype.registeredComponents=function(){return c(this.components.entries()).map(function(t){return{name:t[0],type:t[1]}})},t.prototype.componentMap=function(){return this.components},t.prototype.registerComponent=function(t){var e=this.components.get(t.name);if(e&&e!==t.type)throw new Error("Failed to register component, "+t.name+" is already taken by another component: "+e);this.components.set(t.name,t.type);var n=this.awaitedComponents.get(t.name);n&&(this.awaitedComponents["delete"](t.name),n.resolve(t.type))},t.prototype.waitForComponent=function(t){var e=this.components.get(t);if(e)return Promise.resolve(e);var n=this.awaitedComponents.get(t);return n||(n=new p,this.awaitedComponents.set(t,n)),n.promise},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[u]},{type:e.Optional}]},{type:g}]},t}(),j=new e.InjectionToken("fallback component"),E=new e.InjectionToken("failed component"),P=function(){function t(){}return t.prototype.isChildWindow=function(){try{return!!window.opener&&!!window.opener.location.href}catch(t){return!1}},t.prototype.getRootWindow=function(){return this.isChildWindow()?window.opener:window},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),k=function(){function t(t,e,n){var o=this;this.appref=t,this.rootService=e,this.injector=n,this.unloaded=!1,this.topWindow=this.rootService.getRootWindow(),this.isChildWindow=this.rootService.isChildWindow(),this.isChildWindow&&(window.document.title=window.document.URL,console.__log=console.log,console.log=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=o.topWindow.console).log.apply(t,c(["[CHILD] =>"],e))});var i=this.topWindow;this.isChildWindow||(i.__apprefs=[],i.__injector=this.injector),i.__apprefs.push(this.appref),this.appref.__tick=this.appref.tick,this.appref.tick=function(){var t,e,n=function(t){t._zone.run(function(){return t.__tick()})};try{for(var i=s(o.topWindow.__apprefs),r=i.next();!r.done;r=i.next()){n(r.value)}}catch(a){t={error:a}}finally{try{r&&!r.done&&(e=i["return"])&&e.call(i)}finally{if(t)throw t.error}}}}return t.prototype.onUnload=function(){if(!this.unloaded&&(this.unloaded=!0,this.isChildWindow)){var t=this.topWindow.__apprefs.indexOf(this.appref);t>=0&&this.topWindow.__apprefs.splice(t,1)}},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.ApplicationRef},{type:P},{type:e.Injector}]},t}(),O=o,R=function(t){return t.isComponent&&t.config&&t.config.componentState&&t.config.componentState.originalId},M=function(t,e){var n=t.root.getItemsById(e);return 1!==n.length?(console.warn("non unique ID found: "+e),undefined):n[0]},A=function(t){var e=M(t.layoutManager,t.config.componentState.originalId);if(!e.isComponent)throw new Error("Expected component");return e},D=O.__lm.controls.Tab,U=function(t,e){var n=new D(t,e);return n.closeElement.off("click touchstart"),n.closeElement.on("click touchstart",function(t){if(t.stopPropagation(),R(n.contentItem)){var e=A(n.contentItem);e&&e.isComponent&&e.container.close()}else n.contentItem.container.close()}),n.element.on("mousedown touchstart",function(t){var e=n.contentItem;R(e)&&(e=A(n.contentItem)),e.layoutManager.emit("tabActivated",e)}),R(n.contentItem)&&!0===n._layoutManager.config.settings.reorderEnabled&&n.element.on("mousedown touchstart",function(e){var o,i,r=(o=n.contentItem,(i=A(o))?i.tab:undefined);if(r&&r._dragListener){var a=r._dragListener,s=function(){a.off("dragStart",s,a),t.layoutManager._maximisedItem===n.contentItem.parent&&n.contentItem.parent.toggleMaximise()};a.off("dragStart",r._onDragStart,r),a.on("dragStart",s,a),a.on("dragStart",r._onDragStart,r),a._fDown(e)}}),n};U._template='<li class="lm_tab"><i class="lm_left"></i><span class="lm_title"></span><div class="lm_close_tab"></div><i class="lm_right"></i></li>',O.__lm.controls.Tab=U;var T=O.__lm.controls.Header,W=function(t,e){var n=e._header.maximise,o=e._header.popout;n&&!0===t.config.settings.maximiseAllItems&&delete e._header.maximise,o&&!0===t.config.settings.maximiseAllItems&&delete e._header.popout;var i=new T(t,e);if(o&&!0===t.config.settings.maximiseAllItems&&(i.popoutButton=new O.__lm.controls.HeaderButton(i,o,"lm_popout",function(){var e=i.activeContentItem;R(e)?(e=A(e)).popout():!0===t.config.settings.popoutWholeStack?i.parent.popout():e.popout()})),n&&!0===t.config.settings.maximiseAllItems&&(i.maximiseButton=new O.__lm.controls.HeaderButton(i,n,"lm_maximise",function(){console.log("I should maximise all items."),t._maximisedItem===e?e.toggleMaximise():t.generateAndMaximiseDummyStack(e)})),i.closeButton){i.closeButton._$destroy();var r=i._getHeaderSetting("close");i.closeButton=new O.__lm.controls.HeaderButton(i,r,"lm_close",function(){i.parent.contentItems.forEach(function(t){t.container.close()})})}return i};W._template=['<div class="lm_header">','<ul class="lm_tabs"></ul>','<ul class="lm_controls"></ul>','<ul class="lm_tabdropdown_list"></ul>',"</div>"].join(""),O.__lm.controls.Header=W;var z=O.__lm.controls.DragProxy,H=function(t,e,n,o,i,r){return o.emit("itemDragged",i),console.log("new dragProxy",i),new z(t,e,n,o,i,r)};H._template=z._template,O.__lm.controls.DragProxy=H;var N=O.__lm.items.Stack;function G(t,e,o){var i=this;console.log(t,e,o,this),N.call(this,t,e,o),this.activeContentItem$=new n.BehaviorSubject(null);var r=function(t){i.activeContentItem$&&i.activeContentItem$.next(t)};this.on("activeContentItemChanged",r);var a=this._$destroy;return this.___destroyed=!1,this._$destroy=function(){i.___destroyed||(i.___destroyed=!0,i.off("activeContentItemChanged",r),i.activeContentItem$.complete(),i.activeContentItem$=null,a.call(i))},this}G.prototype=Object.create(N.prototype),G.prototype.addChild=function(t,e){var n=this;"stack"===t.type?((t.content||[]).forEach(function(t,o){return N.prototype.addChild.call(n,t,e+o)}),t.content.length&&this.setActiveContentItem(this.contentItems[e+t.activeItemIndex])):N.prototype.addChild.call(this,t,e)},G.prototype.setSize=function(){this.layoutManager._maximisedItem===this&&!0===this.layoutManager.config.settings.maximiseAllItems&&(this.element.width(this.layoutManager.container.width()),this.element.height(this.layoutManager.container.height())),N.prototype.setSize.call(this)},O.__lm.items.Stack=G;var q=O.__lm.controls.BrowserPopout;O.__lm.controls.BrowserPopout=function(t,e,n,o,i){return 1!==t.length?console.warn("This should not happen, permitting",t):"component"===t[0].type&&(t=[{type:"stack",title:t[0].title,content:[t[0]]}]),new q(t,e,n,o,i)};var F=function(){function t(t,o,i,r,a,s,l,c,u){var d=this;this.rootService=t,this.componentRegistry=o,this.viewContainer=i,this.appref=r,this.componentFactoryResolver=a,this.ngZone=s,this.injector=l,this.windowSync=c,this.fallbackComponent=u,this.stateChanged=new e.EventEmitter,this.tabActivated=new e.EventEmitter,this.goldenLayout=null,this.onUnloaded=new p,this.stateChangePaused=!1,this.stateChangeScheduled=!1,this.tabsList=new n.BehaviorSubject({}),this.pushStateChange=function(){d.tabsList.next(d.goldenLayout._getAllComponents()),d.stateChangePaused||d.stateChangeScheduled||(d.stateChangeScheduled=!0,window.requestAnimationFrame(function(){d.stateChangeScheduled=!1,d.stateChanged.emit()}))},this.resumeStateChange=function(){return d.stateChangePaused=!1},this.pauseStateChange=function(){return d.stateChangePaused=!0},this.pushTabActivated=function(t){d.tabActivated.emit(t)},this.fallbackType=null,this.openedComponents=[],this.poppedIn=!1,this._eventEmitter=new O.__lm.utils.EventEmitter,this.isChildWindow=this.rootService.isChildWindow(),this.fallbackComponent&&(this.fallbackType=this.buildConstructor(this.fallbackComponent)),e.isDevMode()&&console.log("Create@"+(this.isChildWindow?"child":"root")+"!")}return t.prototype.onResize=function(){this.goldenLayout&&this.goldenLayout.updateSize()},t.prototype.ngOnInit=function(){var t=this;e.isDevMode()&&console.log("Init@"+(this.isChildWindow?"child":"root")+"!"),this.layoutSubscription=this.layout.subscribe(function(e){t.destroyGoldenLayout(),t.initializeGoldenLayout(e)})},t.prototype.beforeUnload=function(){var t=this;this.poppedIn&&(this.onUnloaded.promise.then(function(){return t.ngOnDestroy()}),this.onUnloaded.resolve(),this.windowSync.onUnload())},t.prototype.pageHide=function(){var t=this;this.poppedIn||this.openedComponents.forEach(function(t){var e;"object"==typeof(e=t)&&"function"==typeof e.glOnUnload&&t.glOnUnload()}),this.onUnloaded.promise.then(function(){return t.ngOnDestroy()}),this.onUnloaded.resolve(),this.windowSync.onUnload()},t.prototype.ngOnDestroy=function(){var t;e.isDevMode()&&console.log("Destroy@"+(this.isChildWindow?"child":"root")+"!"),this.layoutSubscription.unsubscribe(),this.appref.tick=this.appref.__tick,this.destroyGoldenLayout(),this._eventEmitter._mSubscriptions=((t={})[O.__lm.utils.EventEmitter.ALL_EVENT]=[],t),this.isChildWindow&&(console.log=console.__log)},t.prototype.getGoldenLayoutInstance=function(){if(!this.goldenLayout)throw new Error("Component is not initialized yet");return this.goldenLayout},t.prototype.addEvent=function(t,e,n){this._eventEmitter.on(t,e,n)},t.prototype.getSerializableState=function(){if(this.goldenLayout){var t=this.goldenLayout.toConfig(),e=this.goldenLayout.__wrapperMaximisedItemId;if(e){t.maximisedItemId=e;var n=function(t){return("stack"!==t.type||!t.isDummy)&&("component"!==t.type&&(t.content=t.content.filter(n)),!0)};t.content=t.content.filter(n)}return t}return null},t.prototype.getComponents=function(){return this.goldenLayout._getAllComponents()},t.prototype.closeComponent=function(t){var e=M(this.goldenLayout,t);e&&e.remove()},t.prototype.focusComponent=function(t){var e=M(this.goldenLayout,t);e&&e.parent.setActiveContentItem(e)},t.prototype.createNewComponent=function(t,e){if(!this.goldenLayout)throw new Error("golden layout is not initialized");var n=t,o=this.goldenLayout.root,i=null;if(e){var r=M(this.goldenLayout,e);if(r.parent.isStack)i=r.parent;else{var s=this.goldenLayout.createContentItem({type:"stack",width:r.parent.config.width,height:r.parent.config.height,content:[]});r.parent.replaceChild(r,s,!1),s.addChild(r),i=s}}else o.contentItems&&0!==o.contentItems.length?i=this.findStack(o.contentItems):(i=o,n={type:"stack",content:[a({},n,{type:"component"})]});if(null===i)throw new Error("this should never happen!");var l=this.goldenLayout.createContentItem(n);return i.addChild(l),l.isComponent?l.instance:l.isStack&&1===l.contentItems.length?l[0].instance:l},t.prototype.findStack=function(t){var e,n;if(!t)return null;try{for(var o=s(t),i=o.next();!i.done;i=o.next()){var r=i.value;if(r.isStack){if(r.config.isDummy)continue;return r}var a=this.findStack(r.contentItems);if(null!==a)return a}}catch(l){e={error:l}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(e)throw e.error}}},t.prototype.destroyGoldenLayout=function(){this.goldenLayout&&(this.goldenLayout.off("stateChanged",this.pushStateChange),this.goldenLayout.off("itemDropped",this.resumeStateChange),this.goldenLayout.off("itemDragged",this.pauseStateChange),this.goldenLayout.off("tabActivated",this.pushTabActivated),this.goldenLayout.off("initialised"),this.goldenLayout.off(O.__lm.utils.EventEmitter.ALL_EVENT,this._eventEmitter.emit,this._eventEmitter),this.goldenLayout.destroy(),this.goldenLayout=null)},t.prototype.initializeGoldenLayout=function(t){var r=this;this.goldenLayout=new o(t,$(this.el.nativeElement));var u=this.goldenLayout.createPopout.bind(this.goldenLayout);this.goldenLayout.createPopout=function(t,e,n,o){for(var i,r=[t];r.length;){var a=r.shift();if(a.contentItems&&a.contentItems.length>0&&r.push.apply(r,c(a.contentItems)),a.isComponent){var s=a.container.__ngComponent;s&&("object"==typeof(i=s)&&"function"==typeof i.glOnPopout)&&s.glOnPopout()}}return u(t,e,n,o)};var d=function(t){var e,n,o={};try{for(var i=s(t.contentItems),r=i.next();!r.done;r=i.next()){var l=r.value;if(l.isComponent){if(l.config&&l.config.componentState&&l.config.componentState.originalId)continue;o[l.id]=l}else o=a({},o,d(l))}}catch(c){e={error:c}}finally{try{r&&!r.done&&(n=i["return"])&&n.call(i)}finally{if(e)throw e.error}}return o};this.goldenLayout._getAllComponents=function(){return d(r.goldenLayout.root)},this.goldenLayout.generateAndMaximiseDummyStack=function(t,e){var o=d(r.goldenLayout.root),l=Object.keys(o);if(0!==l.length){var c=r.goldenLayout.root.contentItems[0];if(c.isStack)c.toggleMaximise();else{var u={type:"stack",content:l.map(function(t){return{type:"component",componentName:"gl-wrapper",title:o[t].config.title,reorderEnabled:!1,componentState:{originalId:t}}}),isClosable:!1,isDummy:!0,state:"dummy",activeItemIndex:l.findIndex(function(n){return n===(e||t._activeContentItem.id)})};c.addChild(u,0);var p=c.contentItems[0];r.goldenLayout.__wrapperMaximisedItemId=t._activeContentItem.id,p.activeContentItem$.subscribe(function(t){r.goldenLayout.__wrapperMaximisedItemId=t.config.componentState.originalId});var f=new n.Subject;p.on("minimised",function(){console.log("minimised",p),r.goldenLayout.__wrapperMaximisedItemId=null,f.next(),f.complete(),p.remove()}),p.toggleMaximise(),r.tabsList.pipe(i.takeUntil(f),i.distinctUntilChanged(function(t,e){var n=Object.keys(t),o=new Set(Object.keys(e));return n.length===o.size&&n.every(function(t){return o.has(t)})})).subscribe(function(t){var e,n,o,i,r=a({},t),l=new Set(Object.keys(r)),c=new Set(p.contentItems.map(function(t){return t.config.componentState.originalId}));try{for(var u=s(l),d=u.next();!d.done;d=u.next()){var f=d.value;c.has(f)?c["delete"](f):p.addChild({type:"component",componentName:"gl-wrapper",title:t[f].config.title,reorderEnabled:!1,componentState:{originalId:f}})}}catch(y){e={error:y}}finally{try{d&&!d.done&&(n=u["return"])&&n.call(u)}finally{if(e)throw e.error}}var h=function(t){p.contentItems.find(function(e){return e.config.componentState.originalId===t}).remove()};try{for(var m=s(c),g=m.next();!g.done;g=m.next()){h(g.value)}}catch(v){o={error:v}}finally{try{g&&!g.done&&(i=m["return"])&&i.call(m)}finally{if(o)throw o.error}}})}}},this.goldenLayout.on("popIn",function(){console.log("popIn"),r.poppedIn=!0,r.openedComponents.forEach(function(t){var e;"object"==typeof(e=t)&&"function"==typeof e.glOnPopin&&t.glOnPopin()})}),this.goldenLayout.getComponent=function(t){return e.isDevMode()&&console.log("Resolving component "+t),r.buildConstructor(t)},this.goldenLayout.on("stackCreated",function(t){var o=document.createElement("li");o.classList.add("custom-header"),o.style.display="none";var a=t.header.controlsContainer[0],s=null;a.prepend(o);var c=function(){o.style.display="none",s&&(o.childNodes.forEach(function(t){return o.removeChild(t)}),s.destroy(),s=null)};t.activeContentItem$.pipe(i.switchMap(function(t){return t&&t.isComponent&&t.instance||n.of(null)}),i.switchMap(function(t){if(!t)return Promise.all([null,null,null]);var e=t.instance.headerComponent,n=t.instance.additionalTokens;return Promise.all([Promise.resolve(e),Promise.resolve(n),Promise.resolve(t)])})).subscribe(function(t){var n=l(t,3),i=n[0],a=n[1],u=n[2];i&&u?function(t,n,i){s&&c(),o.style.display="";var a=r.componentFactoryResolver.resolveComponentFactory(t),l=e.Injector.create(n,i);s=r.viewContainer.createComponent(a,undefined,l),o.prepend(s.location.nativeElement)}(i,a||[],u.injector):c()},c,c)}),this.goldenLayout.on("initialised",function(){window.requestAnimationFrame(function(){if(t.maximisedItemId){var e=M(r.goldenLayout,t.maximisedItemId);e&&r.goldenLayout.generateAndMaximiseDummyStack(e.parent,t.maximisedItemId)}})}),this.goldenLayout.init(),this.goldenLayout.on("stateChanged",this.pushStateChange),this.goldenLayout.on("itemDragged",this.pauseStateChange),this.goldenLayout.on("itemDropped",this.resumeStateChange),this.goldenLayout.on("tabActivated",this.pushTabActivated),this.goldenLayout.on(O.__lm.utils.EventEmitter.ALL_EVENT,this._eventEmitter.emit,this._eventEmitter)},t.prototype.buildConstructor=function(t){var e=this;return function(n,o){var i=n.parent;i.config.id?i.id=i.config.id:(i.id="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}),i.config.id=i.id);var r=new p;return e.ngZone.run(function(){e.componentRegistry.waitForComponent(t).then(function(i){console.log("Component "+t+" returned from componentRegistry");var a=e.componentFactoryResolver.resolveComponentFactory(i),s=null;i===e.fallbackComponent&&(s=n._config.componentName);var l=e._createComponentInjector(n,o,s),c=e.viewContainer.createComponent(a,undefined,l);n.getElement().append($(c.location.nativeElement)),e._bindEventHooks(n,c.instance),n.__ngComponent=c.instance,e.openedComponents.push(c.instance);var u=!1,d=function(){u||(u=!0,e.openedComponents=e.openedComponents.filter(function(t){return t!==c.instance}),$(c.location.nativeElement).remove(),c.destroy())};n.on("destroy",d),e.onUnloaded.promise.then(d),r.resolve(c)})}),r.promise}},t.prototype._createComponentInjector=function(t,n,o){var i=[{provide:y,useValue:t},{provide:v,useValue:n},{provide:w,useValue:this.goldenLayout.eventHub},{provide:C,useValue:this}];return o&&i.push({provide:E,useValue:o}),e.Injector.create(i,this.injector)},t.prototype._bindEventHooks=function(t,e){if(_(e)&&t.on("resize",function(){e.glOnResize()}),I(e)&&t.on("show",function(){e.glOnShow()}),b(e)&&t.on("hide",function(){e.glOnHide()}),L(e)&&t.on("tab",function(t){e.glOnTab(t)}),"object"==typeof(o=e)&&"function"==typeof o.glOnClose){var n=t.close.bind(t);t.close=function(){if(!t._config.isClosable)return!1;e.glOnClose().then(function(){n()},function(){})}}var o},t.decorators=[{type:e.Component,args:[{selector:"golden-layout-root",template:'<div class="ng-golden-layout-root" #glroot></div>',styles:["\n .ng-golden-layout-root {\n width:100%;\n height:100%;\n }"]}]}],t.ctorParameters=function(){return[{type:P},{type:S},{type:e.ViewContainerRef},{type:e.ApplicationRef},{type:e.ComponentFactoryResolver},{type:e.NgZone},{type:e.Injector},{type:k},{type:undefined,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]},t.propDecorators={layout:[{type:e.Input}],stateChanged:[{type:e.Output}],tabActivated:[{type:e.Output}],el:[{type:e.ViewChild,args:["glroot",{"static":!0}]}],onResize:[{type:e.HostListener,args:["window:resize"]}],beforeUnload:[{type:e.HostListener,args:["window:beforeunload"]}],pageHide:[{type:e.HostListener,args:["window:pagehide"]}]},t}(),V=function(){function t(){}return t.forRoot=function(n,o,i){return{ngModule:t,providers:[S,P,g,m,k,{provide:e.APP_INITIALIZER,useValue:f,multi:!0},{provide:u,useValue:n},{provide:e.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:[n,o,x],multi:!0},{provide:d,useValue:i},{provide:j,useValue:o}]}},t.decorators=[{type:e.NgModule,args:[{declarations:[F,x],exports:[F],imports:[r.CommonModule]}]}],t}();t.ComponentRegistryService=S,t.FailedComponent=E,t.FallbackComponent=j,t.GetComponentFromLayoutManager=M,t.GoldenLayoutComponent=F,t.GoldenLayoutComponentHost=C,t.GoldenLayoutComponentState=v,t.GoldenLayoutComponents=u,t.GoldenLayoutContainer=y,t.GoldenLayoutEventHub=w,t.GoldenLayoutModule=V,t.GoldenLayoutPluginDependency=d,t.MultiWindowInit=f,t.MultiWindowService=h,t.PluginRegistryService=g,t.PluginURLProvider=m,t.RootWindowService=P,t.forChild=function(t){return[{provide:u,useValue:t},{provide:e.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:t,multi:!0}]},t.ɵa=k,t.ɵb=x,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ngx-golden-layout.umd.min.js.map |
@@ -8,5 +8,5 @@ /** | ||
*/ | ||
export { GoldenLayoutComponents, GoldenLayoutPluginDependency, ComponentRegistryService, GoldenLayoutComponent, PluginURLProvider, PluginRegistryService, RootWindowService, forChild, GoldenLayoutModule, MultiWindowInit, MultiWindowService, FallbackComponent, FailedComponent, GoldenLayoutContainer, GoldenLayoutComponentState, GoldenLayoutEventHub, GoldenLayoutComponentHost } from './public-api'; | ||
export { GoldenLayoutComponents, GoldenLayoutPluginDependency, ComponentRegistryService, GetComponentFromLayoutManager, GoldenLayoutComponent, PluginURLProvider, PluginRegistryService, RootWindowService, forChild, GoldenLayoutModule, MultiWindowInit, MultiWindowService, FallbackComponent, FailedComponent, GoldenLayoutContainer, GoldenLayoutComponentState, GoldenLayoutEventHub, GoldenLayoutComponentHost } from './public-api'; | ||
export { WindowSynchronizerService as ɵa } from './lib/window-sync.service'; | ||
export { WrapperComponent as ɵb } from './lib/wrapper.component'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWdvbGRlbi1sYXlvdXQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbIm5neC1nb2xkZW4tbGF5b3V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw4WEFBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLHlCQUF5QixJQUFJLEVBQUUsRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBQzFFLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtXaW5kb3dTeW5jaHJvbml6ZXJTZXJ2aWNlIGFzIMm1YX0gZnJvbSAnLi9saWIvd2luZG93LXN5bmMuc2VydmljZSc7XG5leHBvcnQge1dyYXBwZXJDb21wb25lbnQgYXMgybVifSBmcm9tICcuL2xpYi93cmFwcGVyLmNvbXBvbmVudCc7Il19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWdvbGRlbi1sYXlvdXQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbIm5neC1nb2xkZW4tbGF5b3V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw2WkFBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLHlCQUF5QixJQUFJLEVBQUUsRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBQzFFLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtXaW5kb3dTeW5jaHJvbml6ZXJTZXJ2aWNlIGFzIMm1YX0gZnJvbSAnLi9saWIvd2luZG93LXN5bmMuc2VydmljZSc7XG5leHBvcnQge1dyYXBwZXJDb21wb25lbnQgYXMgybVifSBmcm9tICcuL2xpYi93cmFwcGVyLmNvbXBvbmVudCc7Il19 |
@@ -7,3 +7,3 @@ /** | ||
export { ComponentRegistryService } from './lib/component-registry.service'; | ||
export { GoldenLayoutComponent } from './lib/golden-layout.component'; | ||
export { GetComponentFromLayoutManager, GoldenLayoutComponent } from './lib/golden-layout.component'; | ||
export { PluginURLProvider, PluginRegistryService } from './lib/plugin-registry.service'; | ||
@@ -16,2 +16,2 @@ export { RootWindowService } from './lib/root-window.service'; | ||
export { GoldenLayoutContainer, GoldenLayoutComponentState, GoldenLayoutEventHub, GoldenLayoutComponentHost } from './lib/tokens'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEscUVBQWMsY0FBYyxDQUFDO0FBQzdCLHlDQUFjLGtDQUFrQyxDQUFDO0FBQ2pELHNDQUFjLCtCQUErQixDQUFDO0FBQzlDLHlEQUFjLCtCQUErQixDQUFDO0FBQzlDLGtDQUFjLDJCQUEyQixDQUFDO0FBQzFDLGVBQWMsYUFBYSxDQUFDO0FBQzVCLDZDQUFjLGNBQWMsQ0FBQztBQUM3QixvREFBYywyQkFBMkIsQ0FBQztBQUMxQyxtREFBYyxnQkFBZ0IsQ0FBQztBQUMvQixtSEFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9jb25maWcnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50LXJlZ2lzdHJ5LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZ29sZGVuLWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcGx1Z2luLXJlZ2lzdHJ5LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcm9vdC13aW5kb3cuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9ob29rcyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbXVsdGl3aW5kb3ctc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9mYWxsYmFjayc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90b2tlbnMnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEscUVBQWMsY0FBYyxDQUFDO0FBQzdCLHlDQUFjLGtDQUFrQyxDQUFDO0FBQ2pELHFFQUFjLCtCQUErQixDQUFDO0FBQzlDLHlEQUFjLCtCQUErQixDQUFDO0FBQzlDLGtDQUFjLDJCQUEyQixDQUFDO0FBQzFDLGVBQWMsYUFBYSxDQUFDO0FBQzVCLDZDQUFjLGNBQWMsQ0FBQztBQUM3QixvREFBYywyQkFBMkIsQ0FBQztBQUMxQyxtREFBYyxnQkFBZ0IsQ0FBQztBQUMvQixtSEFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9jb25maWcnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50LXJlZ2lzdHJ5LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZ29sZGVuLWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcGx1Z2luLXJlZ2lzdHJ5LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcm9vdC13aW5kb3cuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9ob29rcyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbXVsdGl3aW5kb3ctc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9mYWxsYmFjayc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90b2tlbnMnO1xuIl19 |
@@ -8,5 +8,5 @@ /** | ||
*/ | ||
export { GoldenLayoutComponents, GoldenLayoutPluginDependency, ComponentRegistryService, GoldenLayoutComponent, PluginURLProvider, PluginRegistryService, RootWindowService, forChild, GoldenLayoutModule, MultiWindowInit, MultiWindowService, FallbackComponent, FailedComponent, GoldenLayoutContainer, GoldenLayoutComponentState, GoldenLayoutEventHub, GoldenLayoutComponentHost } from './public-api'; | ||
export { GoldenLayoutComponents, GoldenLayoutPluginDependency, ComponentRegistryService, GetComponentFromLayoutManager, GoldenLayoutComponent, PluginURLProvider, PluginRegistryService, RootWindowService, forChild, GoldenLayoutModule, MultiWindowInit, MultiWindowService, FallbackComponent, FailedComponent, GoldenLayoutContainer, GoldenLayoutComponentState, GoldenLayoutEventHub, GoldenLayoutComponentHost } from './public-api'; | ||
export { WindowSynchronizerService as ɵa } from './lib/window-sync.service'; | ||
export { WrapperComponent as ɵb } from './lib/wrapper.component'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWdvbGRlbi1sYXlvdXQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbIm5neC1nb2xkZW4tbGF5b3V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw4WEFBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLHlCQUF5QixJQUFJLEVBQUUsRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBQzFFLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtXaW5kb3dTeW5jaHJvbml6ZXJTZXJ2aWNlIGFzIMm1YX0gZnJvbSAnLi9saWIvd2luZG93LXN5bmMuc2VydmljZSc7XG5leHBvcnQge1dyYXBwZXJDb21wb25lbnQgYXMgybVifSBmcm9tICcuL2xpYi93cmFwcGVyLmNvbXBvbmVudCc7Il19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWdvbGRlbi1sYXlvdXQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbIm5neC1nb2xkZW4tbGF5b3V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw2WkFBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLHlCQUF5QixJQUFJLEVBQUUsRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBQzFFLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtXaW5kb3dTeW5jaHJvbml6ZXJTZXJ2aWNlIGFzIMm1YX0gZnJvbSAnLi9saWIvd2luZG93LXN5bmMuc2VydmljZSc7XG5leHBvcnQge1dyYXBwZXJDb21wb25lbnQgYXMgybVifSBmcm9tICcuL2xpYi93cmFwcGVyLmNvbXBvbmVudCc7Il19 |
@@ -7,3 +7,3 @@ /** | ||
export { ComponentRegistryService } from './lib/component-registry.service'; | ||
export { GoldenLayoutComponent } from './lib/golden-layout.component'; | ||
export { GetComponentFromLayoutManager, GoldenLayoutComponent } from './lib/golden-layout.component'; | ||
export { PluginURLProvider, PluginRegistryService } from './lib/plugin-registry.service'; | ||
@@ -16,2 +16,2 @@ export { RootWindowService } from './lib/root-window.service'; | ||
export { GoldenLayoutContainer, GoldenLayoutComponentState, GoldenLayoutEventHub, GoldenLayoutComponentHost } from './lib/tokens'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEscUVBQWMsY0FBYyxDQUFDO0FBQzdCLHlDQUFjLGtDQUFrQyxDQUFDO0FBQ2pELHNDQUFjLCtCQUErQixDQUFDO0FBQzlDLHlEQUFjLCtCQUErQixDQUFDO0FBQzlDLGtDQUFjLDJCQUEyQixDQUFDO0FBQzFDLGVBQWMsYUFBYSxDQUFDO0FBQzVCLDZDQUFjLGNBQWMsQ0FBQztBQUM3QixvREFBYywyQkFBMkIsQ0FBQztBQUMxQyxtREFBYyxnQkFBZ0IsQ0FBQztBQUMvQixtSEFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9jb25maWcnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50LXJlZ2lzdHJ5LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZ29sZGVuLWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcGx1Z2luLXJlZ2lzdHJ5LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcm9vdC13aW5kb3cuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9ob29rcyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbXVsdGl3aW5kb3ctc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9mYWxsYmFjayc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90b2tlbnMnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEscUVBQWMsY0FBYyxDQUFDO0FBQzdCLHlDQUFjLGtDQUFrQyxDQUFDO0FBQ2pELHFFQUFjLCtCQUErQixDQUFDO0FBQzlDLHlEQUFjLCtCQUErQixDQUFDO0FBQzlDLGtDQUFjLDJCQUEyQixDQUFDO0FBQzFDLGVBQWMsYUFBYSxDQUFDO0FBQzVCLDZDQUFjLGNBQWMsQ0FBQztBQUM3QixvREFBYywyQkFBMkIsQ0FBQztBQUMxQyxtREFBYyxnQkFBZ0IsQ0FBQztBQUMvQixtSEFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9jb25maWcnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50LXJlZ2lzdHJ5LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZ29sZGVuLWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcGx1Z2luLXJlZ2lzdHJ5LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcm9vdC13aW5kb3cuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9ob29rcyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbXVsdGl3aW5kb3ctc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9mYWxsYmFjayc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90b2tlbnMnO1xuIl19 |
@@ -1,2 +0,2 @@ | ||
import { ComponentFactoryResolver, ViewContainerRef, OnInit, OnDestroy, ApplicationRef, NgZone, Injector, EventEmitter } from '@angular/core'; | ||
import { ComponentFactoryResolver, ViewContainerRef, OnInit, OnDestroy, ApplicationRef, NgZone, Injector, EventEmitter, ComponentRef } from '@angular/core'; | ||
import * as GoldenLayout from 'golden-layout'; | ||
@@ -8,2 +8,3 @@ import { ComponentRegistryService } from './component-registry.service'; | ||
import { IExtendedGoldenLayoutConfig } from './config'; | ||
export declare const GetComponentFromLayoutManager: (lm: GoldenLayout, id: string) => GoldenLayout.ContentItem; | ||
export declare class GoldenLayoutComponent implements OnInit, OnDestroy { | ||
@@ -47,3 +48,8 @@ private rootService; | ||
getSerializableState(): any; | ||
createNewComponent(config: GoldenLayout.ComponentConfig): void; | ||
getComponents(): { | ||
[id: string]: GoldenLayout.ContentItem; | ||
}; | ||
closeComponent(component: string): void; | ||
focusComponent(component: string): void; | ||
createNewComponent(config: GoldenLayout.ComponentConfig, componentToDock?: string): Promise<ComponentRef<any>>; | ||
private findStack; | ||
@@ -50,0 +56,0 @@ private destroyGoldenLayout; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"ComponentType":{"__symbolic":"interface"},"PluginDependencyType":{"__symbolic":"interface"},"GoldenLayoutComponents":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":38,"character":42},"arguments":["ComponentTypes"]},"GoldenLayoutPluginDependency":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":44,"character":48},"arguments":["Dependencies"]},"IExtendedGoldenLayoutConfig":{"__symbolic":"interface"},"IExtendedGoldenLayoutContainer":{"__symbolic":"interface"},"ComponentRegistryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":12,"character":5},"arguments":[{"__symbolic":"reference","name":"GoldenLayoutComponents"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":12,"character":37}}],null],"parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"ComponentType"}]},{"__symbolic":"reference","name":"PluginRegistryService"}]}],"registeredComponents":[{"__symbolic":"method"}],"componentMap":[{"__symbolic":"method"}],"registerComponent":[{"__symbolic":"method"}],"waitForComponent":[{"__symbolic":"method"}]}},"GoldenLayoutComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":295,"character":1},"arguments":[{"selector":"golden-layout-root","styles":["\n .ng-golden-layout-root {\n width:100%;\n height:100%;\n }"],"template":"<div class=\"ng-golden-layout-root\" #glroot></div>"}]}],"members":{"layout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":307,"character":3}}]}],"stateChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":308,"character":3}}]}],"tabActivated":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":309,"character":3}}]}],"el":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":311,"character":3},"arguments":["glroot",{"static":true}]}]}],"onResize":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":345,"character":3},"arguments":["window:resize"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":361,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":361,"character":17},"arguments":[{"__symbolic":"reference","name":"FallbackComponent"}]}]],"parameters":[{"__symbolic":"reference","name":"RootWindowService"},{"__symbolic":"reference","name":"ComponentRegistryService"},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":355,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":356,"character":20},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":357,"character":38},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":358,"character":20},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":359,"character":31},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"any"}]}],"ngOnInit":[{"__symbolic":"method"}],"beforeUnload":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":381,"character":3},"arguments":["window:beforeunload"]}]}],"pageHide":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":391,"character":3},"arguments":["window:pagehide"]}]}],"ngOnDestroy":[{"__symbolic":"method"}],"getGoldenLayoutInstance":[{"__symbolic":"method"}],"addEvent":[{"__symbolic":"method"}],"getSerializableState":[{"__symbolic":"method"}],"createNewComponent":[{"__symbolic":"method"}],"findStack":[{"__symbolic":"method"}],"destroyGoldenLayout":[{"__symbolic":"method"}],"initializeGoldenLayout":[{"__symbolic":"method"}],"buildConstructor":[{"__symbolic":"method"}],"_createComponentInjector":[{"__symbolic":"method"}],"_bindEventHooks":[{"__symbolic":"method"}]}},"PluginURLProvider":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"MultiWindowService"},"arguments":["_gl__PluginURLProvider"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":25,"character":1}}],"members":{"loadRequests$":[{"__symbolic":"method"}],"unloadRequests$":[{"__symbolic":"method"}],"allPlugins":[{"__symbolic":"method"}],"requestLoad":[{"__symbolic":"method"}],"requestUnload":[{"__symbolic":"method"}]}},"PluginRegistryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":69,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":78,"character":5},"arguments":[{"__symbolic":"reference","name":"GoldenLayoutPluginDependency"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":78,"character":43}}],null,null],"parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"PluginDependencyType"}]},{"__symbolic":"reference","name":"PluginURLProvider"},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":80,"character":22}]}],"startLoadPlugin":[{"__symbolic":"method"}],"startUnloadPlugin":[{"__symbolic":"method"}],"waitForPlugin":[{"__symbolic":"method"}],"patchWindow":[{"__symbolic":"method"}],"load":[{"__symbolic":"method"}],"unload":[{"__symbolic":"method"}]}},"RootWindowService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"isChildWindow":[{"__symbolic":"method"}],"getRootWindow":[{"__symbolic":"method"}]}},"GlOnResize":{"__symbolic":"interface"},"GlOnShow":{"__symbolic":"interface"},"GlOnHide":{"__symbolic":"interface"},"GlOnTab":{"__symbolic":"interface"},"GlOnClose":{"__symbolic":"interface"},"GlOnPopin":{"__symbolic":"interface"},"GlOnPopout":{"__symbolic":"interface"},"GlOnUnload":{"__symbolic":"interface"},"GlHeaderItem":{"__symbolic":"interface"},"GoldenLayoutModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"GoldenLayoutComponent"},{"__symbolic":"reference","name":"ɵb"}],"exports":[{"__symbolic":"reference","name":"GoldenLayoutComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":15,"character":12}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["types","fallback","pluginDeps"],"value":{"ngModule":{"__symbolic":"reference","name":"GoldenLayoutModule"},"providers":[{"__symbolic":"reference","name":"ComponentRegistryService"},{"__symbolic":"reference","name":"RootWindowService"},{"__symbolic":"reference","name":"PluginRegistryService"},{"__symbolic":"reference","name":"PluginURLProvider"},{"__symbolic":"reference","name":"ɵa"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":27,"character":19},"useValue":{"__symbolic":"reference","name":"MultiWindowInit"},"multi":true},{"provide":{"__symbolic":"reference","name":"GoldenLayoutComponents"},"useValue":{"__symbolic":"reference","name":"types"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"ANALYZE_FOR_ENTRY_COMPONENTS","line":29,"character":19},"useValue":[{"__symbolic":"reference","name":"types"},{"__symbolic":"reference","name":"fallback"},{"__symbolic":"reference","name":"ɵb"}],"multi":true},{"provide":{"__symbolic":"reference","name":"GoldenLayoutPluginDependency"},"useValue":{"__symbolic":"reference","name":"pluginDeps"}},{"provide":{"__symbolic":"reference","name":"FallbackComponent"},"useValue":{"__symbolic":"reference","name":"fallback"}}]}}}},"forChild":{"__symbolic":"function","parameters":["types"],"value":[{"provide":{"__symbolic":"reference","name":"GoldenLayoutComponents"},"useValue":{"__symbolic":"reference","name":"types"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"ANALYZE_FOR_ENTRY_COMPONENTS","line":40,"character":15},"useValue":{"__symbolic":"reference","name":"types"},"multi":true}]},"MultiWindowInit":{"__symbolic":"function"},"Constructor":{"__symbolic":"interface"},"MultiWindowService":{"__symbolic":"function"},"FallbackComponent":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":8,"character":37},"arguments":["fallback component"]},"FailedComponent":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":14,"character":35},"arguments":["failed component"]},"GoldenLayoutContainer":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":41},"arguments":["GoldenLayoutContainer"]},"GoldenLayoutComponentState":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":46},"arguments":["GoldenLayoutComponentState"]},"GoldenLayoutEventHub":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":40},"arguments":["GoldenLayoutEventHub"]},"GoldenLayoutComponentHost":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":45},"arguments":["GoldenLayoutComponentHost"]},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":10,"character":20},{"__symbolic":"reference","name":"RootWindowService"},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":12,"character":22}]}],"onUnload":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"gl-wrapper","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":7,"character":17},"member":"None"},"template":"<div class=\"wrapper\"></div>"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":37,"character":5},"arguments":[{"__symbolic":"reference","name":"GoldenLayoutComponentHost"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":38,"character":5},"arguments":[{"__symbolic":"reference","name":"GoldenLayoutContainer"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":39,"character":5},"arguments":[{"__symbolic":"reference","name":"GoldenLayoutComponentState"}]}]],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"any"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"redock":[{"__symbolic":"method"}],"glOnHide":[{"__symbolic":"method"}],"glOnShow":[{"__symbolic":"method"}],"glOnResize":[{"__symbolic":"method"}],"glOnTab":[{"__symbolic":"method"}]}}},"origins":{"ComponentType":"./lib/config","PluginDependencyType":"./lib/config","GoldenLayoutComponents":"./lib/config","GoldenLayoutPluginDependency":"./lib/config","IExtendedGoldenLayoutConfig":"./lib/config","IExtendedGoldenLayoutContainer":"./lib/config","ComponentRegistryService":"./lib/component-registry.service","GoldenLayoutComponent":"./lib/golden-layout.component","PluginURLProvider":"./lib/plugin-registry.service","PluginRegistryService":"./lib/plugin-registry.service","RootWindowService":"./lib/root-window.service","GlOnResize":"./lib/hooks","GlOnShow":"./lib/hooks","GlOnHide":"./lib/hooks","GlOnTab":"./lib/hooks","GlOnClose":"./lib/hooks","GlOnPopin":"./lib/hooks","GlOnPopout":"./lib/hooks","GlOnUnload":"./lib/hooks","GlHeaderItem":"./lib/hooks","GoldenLayoutModule":"./lib/module","forChild":"./lib/module","MultiWindowInit":"./lib/multiwindow-service","Constructor":"./lib/multiwindow-service","MultiWindowService":"./lib/multiwindow-service","FallbackComponent":"./lib/fallback","FailedComponent":"./lib/fallback","GoldenLayoutContainer":"./lib/tokens","GoldenLayoutComponentState":"./lib/tokens","GoldenLayoutEventHub":"./lib/tokens","GoldenLayoutComponentHost":"./lib/tokens","ɵa":"./lib/window-sync.service","ɵb":"./lib/wrapper.component"},"importAs":"ngx-golden-layout"} | ||
{"__symbolic":"module","version":4,"metadata":{"ComponentType":{"__symbolic":"interface"},"PluginDependencyType":{"__symbolic":"interface"},"GoldenLayoutComponents":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":38,"character":42},"arguments":["ComponentTypes"]},"GoldenLayoutPluginDependency":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":44,"character":48},"arguments":["Dependencies"]},"IExtendedGoldenLayoutConfig":{"__symbolic":"interface"},"IExtendedGoldenLayoutContainer":{"__symbolic":"interface"},"ComponentRegistryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":12,"character":5},"arguments":[{"__symbolic":"reference","name":"GoldenLayoutComponents"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":12,"character":37}}],null],"parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"ComponentType"}]},{"__symbolic":"reference","name":"PluginRegistryService"}]}],"registeredComponents":[{"__symbolic":"method"}],"componentMap":[{"__symbolic":"method"}],"registerComponent":[{"__symbolic":"method"}],"waitForComponent":[{"__symbolic":"method"}]}},"GetComponentFromLayoutManager":{"__symbolic":"error","message":"Lambda not supported","line":61,"character":45,"module":"./lib/golden-layout.component"},"GoldenLayoutComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":301,"character":1},"arguments":[{"selector":"golden-layout-root","styles":["\n .ng-golden-layout-root {\n width:100%;\n height:100%;\n }"],"template":"<div class=\"ng-golden-layout-root\" #glroot></div>"}]}],"members":{"layout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":313,"character":3}}]}],"stateChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":314,"character":3}}]}],"tabActivated":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":315,"character":3}}]}],"el":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":317,"character":3},"arguments":["glroot",{"static":true}]}]}],"onResize":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":351,"character":3},"arguments":["window:resize"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":367,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":367,"character":17},"arguments":[{"__symbolic":"reference","name":"FallbackComponent"}]}]],"parameters":[{"__symbolic":"reference","name":"RootWindowService"},{"__symbolic":"reference","name":"ComponentRegistryService"},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":361,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":362,"character":20},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":363,"character":38},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":364,"character":20},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":365,"character":31},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"any"}]}],"ngOnInit":[{"__symbolic":"method"}],"beforeUnload":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":387,"character":3},"arguments":["window:beforeunload"]}]}],"pageHide":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":397,"character":3},"arguments":["window:pagehide"]}]}],"ngOnDestroy":[{"__symbolic":"method"}],"getGoldenLayoutInstance":[{"__symbolic":"method"}],"addEvent":[{"__symbolic":"method"}],"getSerializableState":[{"__symbolic":"method"}],"getComponents":[{"__symbolic":"method"}],"closeComponent":[{"__symbolic":"method"}],"focusComponent":[{"__symbolic":"method"}],"createNewComponent":[{"__symbolic":"method"}],"findStack":[{"__symbolic":"method"}],"destroyGoldenLayout":[{"__symbolic":"method"}],"initializeGoldenLayout":[{"__symbolic":"method"}],"buildConstructor":[{"__symbolic":"method"}],"_createComponentInjector":[{"__symbolic":"method"}],"_bindEventHooks":[{"__symbolic":"method"}]}},"PluginURLProvider":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"MultiWindowService"},"arguments":["_gl__PluginURLProvider"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":25,"character":1}}],"members":{"loadRequests$":[{"__symbolic":"method"}],"unloadRequests$":[{"__symbolic":"method"}],"allPlugins":[{"__symbolic":"method"}],"requestLoad":[{"__symbolic":"method"}],"requestUnload":[{"__symbolic":"method"}]}},"PluginRegistryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":69,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":78,"character":5},"arguments":[{"__symbolic":"reference","name":"GoldenLayoutPluginDependency"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":78,"character":43}}],null,null],"parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"PluginDependencyType"}]},{"__symbolic":"reference","name":"PluginURLProvider"},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":80,"character":22}]}],"startLoadPlugin":[{"__symbolic":"method"}],"startUnloadPlugin":[{"__symbolic":"method"}],"waitForPlugin":[{"__symbolic":"method"}],"patchWindow":[{"__symbolic":"method"}],"load":[{"__symbolic":"method"}],"unload":[{"__symbolic":"method"}]}},"RootWindowService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"isChildWindow":[{"__symbolic":"method"}],"getRootWindow":[{"__symbolic":"method"}]}},"GlOnResize":{"__symbolic":"interface"},"GlOnShow":{"__symbolic":"interface"},"GlOnHide":{"__symbolic":"interface"},"GlOnTab":{"__symbolic":"interface"},"GlOnClose":{"__symbolic":"interface"},"GlOnPopin":{"__symbolic":"interface"},"GlOnPopout":{"__symbolic":"interface"},"GlOnUnload":{"__symbolic":"interface"},"GlHeaderItem":{"__symbolic":"interface"},"GoldenLayoutModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"GoldenLayoutComponent"},{"__symbolic":"reference","name":"ɵb"}],"exports":[{"__symbolic":"reference","name":"GoldenLayoutComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":15,"character":12}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["types","fallback","pluginDeps"],"value":{"ngModule":{"__symbolic":"reference","name":"GoldenLayoutModule"},"providers":[{"__symbolic":"reference","name":"ComponentRegistryService"},{"__symbolic":"reference","name":"RootWindowService"},{"__symbolic":"reference","name":"PluginRegistryService"},{"__symbolic":"reference","name":"PluginURLProvider"},{"__symbolic":"reference","name":"ɵa"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":27,"character":19},"useValue":{"__symbolic":"reference","name":"MultiWindowInit"},"multi":true},{"provide":{"__symbolic":"reference","name":"GoldenLayoutComponents"},"useValue":{"__symbolic":"reference","name":"types"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"ANALYZE_FOR_ENTRY_COMPONENTS","line":29,"character":19},"useValue":[{"__symbolic":"reference","name":"types"},{"__symbolic":"reference","name":"fallback"},{"__symbolic":"reference","name":"ɵb"}],"multi":true},{"provide":{"__symbolic":"reference","name":"GoldenLayoutPluginDependency"},"useValue":{"__symbolic":"reference","name":"pluginDeps"}},{"provide":{"__symbolic":"reference","name":"FallbackComponent"},"useValue":{"__symbolic":"reference","name":"fallback"}}]}}}},"forChild":{"__symbolic":"function","parameters":["types"],"value":[{"provide":{"__symbolic":"reference","name":"GoldenLayoutComponents"},"useValue":{"__symbolic":"reference","name":"types"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"ANALYZE_FOR_ENTRY_COMPONENTS","line":40,"character":15},"useValue":{"__symbolic":"reference","name":"types"},"multi":true}]},"MultiWindowInit":{"__symbolic":"function"},"Constructor":{"__symbolic":"interface"},"MultiWindowService":{"__symbolic":"function"},"FallbackComponent":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":8,"character":37},"arguments":["fallback component"]},"FailedComponent":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":14,"character":35},"arguments":["failed component"]},"GoldenLayoutContainer":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":41},"arguments":["GoldenLayoutContainer"]},"GoldenLayoutComponentState":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":46},"arguments":["GoldenLayoutComponentState"]},"GoldenLayoutEventHub":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":40},"arguments":["GoldenLayoutEventHub"]},"GoldenLayoutComponentHost":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":45},"arguments":["GoldenLayoutComponentHost"]},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":10,"character":20},{"__symbolic":"reference","name":"RootWindowService"},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":12,"character":22}]}],"onUnload":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"gl-wrapper","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":7,"character":17},"member":"None"},"template":"<div class=\"wrapper\"></div>"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":37,"character":5},"arguments":[{"__symbolic":"reference","name":"GoldenLayoutComponentHost"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":38,"character":5},"arguments":[{"__symbolic":"reference","name":"GoldenLayoutContainer"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":39,"character":5},"arguments":[{"__symbolic":"reference","name":"GoldenLayoutComponentState"}]}]],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"any"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"redock":[{"__symbolic":"method"}],"glOnHide":[{"__symbolic":"method"}],"glOnShow":[{"__symbolic":"method"}],"glOnResize":[{"__symbolic":"method"}],"glOnTab":[{"__symbolic":"method"}]}}},"origins":{"ComponentType":"./lib/config","PluginDependencyType":"./lib/config","GoldenLayoutComponents":"./lib/config","GoldenLayoutPluginDependency":"./lib/config","IExtendedGoldenLayoutConfig":"./lib/config","IExtendedGoldenLayoutContainer":"./lib/config","ComponentRegistryService":"./lib/component-registry.service","GetComponentFromLayoutManager":"./lib/golden-layout.component","GoldenLayoutComponent":"./lib/golden-layout.component","PluginURLProvider":"./lib/plugin-registry.service","PluginRegistryService":"./lib/plugin-registry.service","RootWindowService":"./lib/root-window.service","GlOnResize":"./lib/hooks","GlOnShow":"./lib/hooks","GlOnHide":"./lib/hooks","GlOnTab":"./lib/hooks","GlOnClose":"./lib/hooks","GlOnPopin":"./lib/hooks","GlOnPopout":"./lib/hooks","GlOnUnload":"./lib/hooks","GlHeaderItem":"./lib/hooks","GoldenLayoutModule":"./lib/module","forChild":"./lib/module","MultiWindowInit":"./lib/multiwindow-service","Constructor":"./lib/multiwindow-service","MultiWindowService":"./lib/multiwindow-service","FallbackComponent":"./lib/fallback","FailedComponent":"./lib/fallback","GoldenLayoutContainer":"./lib/tokens","GoldenLayoutComponentState":"./lib/tokens","GoldenLayoutEventHub":"./lib/tokens","GoldenLayoutComponentHost":"./lib/tokens","ɵa":"./lib/window-sync.service","ɵb":"./lib/wrapper.component"},"importAs":"ngx-golden-layout"} |
{ | ||
"name": "ngx-golden-layout", | ||
"version": "0.0.32", | ||
"version": "0.0.33", | ||
"license": "BSD-3-Clause", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1253157
13767
154