ngx-golden-layout
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -1,2 +0,16 @@ | ||
!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 h(){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 f(t){return h(),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}([f("_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,T=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};T._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=T;var U=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 U(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 h=new n.Subject;p.on("minimised",function(){console.log("minimised",p),r.goldenLayout.__wrapperMaximisedItemId=null,h.next(),h.complete(),p.remove()}),p.toggleMaximise(),r.tabsList.pipe(i.takeUntil(h),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 h=d.value;c.has(h)?c["delete"](h):p.addChild({type:"component",componentName:"gl-wrapper",title:t[h].config.title,reorderEnabled:!1,componentState:{originalId:h}})}}catch(y){e={error:y}}finally{try{d&&!d.done&&(n=u["return"])&&n.call(u)}finally{if(e)throw e.error}}var f=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()){f(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.header._updateTabSizes())};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(n){var i=l(n,3),a=i[0],u=i[1],d=i[2];a&&d?function(n,i,a){s&&c(),o.style.display="";var l=r.componentFactoryResolver.resolveComponentFactory(n),u=e.Injector.create(i,a);s=r.viewContainer.createComponent(l,undefined,u),o.prepend(s.location.nativeElement),t.header._updateTabSizes()}(a,u||[],d.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:h,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=h,t.MultiWindowService=f,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})}); | ||
!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"; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */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,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}function l(t,e){return function(n,o){e(n,o,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(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 d(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(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function p(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}var m=new e.InjectionToken("ComponentTypes"),f=new e.InjectionToken("Dependencies"),h=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))};function g(){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 y(t){return g(),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];var r=o.__services.has(t);if(!r){var a=o.__serviceConstructors.get(t)||n;o.__services.set(t,new(a.bind.apply(a,p([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(t){}return r}}var v=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 p(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=s([y("_gl__PluginURLProvider"),e.Injectable()],t)}(),w=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 h,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){console.warn("Plugin",n,"dependency",e,"but load failed",t)})):(console.warn("Plugin",n,"requested unknown dependency",e),Promise.resolve(void 0))}));Promise.all(a).then((function(o){var a={};i.apply(void 0,p([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 h,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.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[f]},{type:e.Optional}]},{type:v},{type:e.Injector}]},t=s([e.Injectable(),l(0,e.Inject(f)),l(0,e.Optional()),c("design:paramtypes",[Array,v,e.Injector])],t)}(),C=new e.InjectionToken("GoldenLayoutContainer"),_=new e.InjectionToken("GoldenLayoutComponentState"),I=new e.InjectionToken("GoldenLayoutEventHub"),b=new e.InjectionToken("GoldenLayoutComponentHost");function L(t){return"object"==typeof t&&"function"==typeof t.glOnResize}function x(t){return"object"==typeof t&&"function"==typeof t.glOnShow}function j(t){return"object"==typeof t&&"function"==typeof t.glOnHide}function S(t){return"object"==typeof t&&"function"==typeof t.glOnTab}var E=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(){if(this.originalComponent&&this.originalComponent.instance)return this.originalComponent.instance.then((function(t){return t.instance.headerComponent}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"additionalTokens",{get:function(){if(this.originalComponent&&this.originalComponent.instance)return this.originalComponent.instance.then((function(t){return t.instance.additionalTokens}))},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),L(t.instance)&&t.instance.glOnResize()},t.prototype.glOnHide=function(){this.originalComponent.instance.then((function(t){j(t.instance)&&t.instance.glOnHide()}))},t.prototype.glOnShow=function(){this.originalComponent.instance.then((function(t){x(t.instance)&&t.instance.glOnShow()}))},t.prototype.glOnResize=function(){this.originalComponent.instance.then((function(t){L(t.instance)&&t.instance.glOnResize()}))},t.prototype.glOnTab=function(t){var e=this;this.originalComponent.instance.then((function(t){S(t.instance)&&t.instance.glOnTab(e.originalComponent.tab)}))},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[b]}]},{type:void 0,decorators:[{type:e.Inject,args:[C]}]},{type:void 0,decorators:[{type:e.Inject,args:[_]}]}]},t=s([e.Component({selector:"gl-wrapper",encapsulation:e.ViewEncapsulation.None,template:'<div class="wrapper"></div>'}),l(0,e.Inject(b)),l(1,e.Inject(C)),l(2,e.Inject(_)),c("design:paramtypes",[Object,Object,Object])],t)}(),P=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:E}),this.pluginRegistry.pluginLoaded$.subscribe((function(t){var e=t.id,o=t.module.injector.get(m,[]);console.log("Plugin",e,"wants to register",o.length,"components"),o.forEach((function(t){return n.registerComponent(a(a({},t),{plugin:e}))}))}))}return t.prototype.registeredComponents=function(){return p(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 h,this.awaitedComponents.set(t,n)),n.promise},t.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[m]},{type:e.Optional}]},{type:w}]},t=s([e.Injectable(),l(0,e.Inject(m)),l(0,e.Optional()),c("design:paramtypes",[Array,w])],t)}(),O=new e.InjectionToken("fallback component"),R=new e.InjectionToken("failed component"),k=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=s([e.Injectable(),c("design:paramtypes",[])],t)}(),M=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,p(["[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=u(o.topWindow.__apprefs),r=i.next();!r.done;r=i.next()){n(r.value)}}catch(e){t={error:e}}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.ctorParameters=function(){return[{type:e.ApplicationRef},{type:k},{type:e.Injector}]},t=s([e.Injectable(),c("design:paramtypes",[e.ApplicationRef,k,e.Injector])],t)}(),A=o,D=function(t){return t.isComponent&&t.config&&t.config.componentState&&t.config.componentState.originalId},T=D,U=function(t,e){var n=t.root.getItemsById(e);if(1===n.length)return n[0];console.warn("non unique ID found: "+e)},W=function(t){var e=U(t.layoutManager,t.config.componentState.originalId);if(!e.isComponent)throw new Error("Expected component");return e},z=W,N=function(t){var e=W(t);return e?e.tab:void 0},F=N,H=A.__lm.controls.Tab,G=function(t,e){var n=new H(t,e);return n.closeElement.off("click touchstart"),n.closeElement.on("click touchstart",(function(t){if(t.stopPropagation(),D(n.contentItem)){var e=W(n.contentItem);e&&e.isComponent&&e.container.close()}else n.contentItem.container.close()})),n.element.on("mousedown touchstart",(function(t){var e=n.contentItem;D(e)&&(e=W(n.contentItem)),e.layoutManager.emit("tabActivated",e)})),D(n.contentItem)&&!0===n._layoutManager.config.settings.reorderEnabled&&n.element.on("mousedown touchstart",(function(e){var o=N(n.contentItem);if(o&&o._dragListener){var i=o._dragListener,r=function(){i.off("dragStart",r,i),t.layoutManager._maximisedItem===n.contentItem.parent&&n.contentItem.parent.toggleMaximise()};i.off("dragStart",o._onDragStart,o),i.on("dragStart",r,i),i.on("dragStart",o._onDragStart,o),i._fDown(e)}})),n},q=G;G._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>',A.__lm.controls.Tab=G;var V=A.__lm.controls.Header,B=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 V(t,e);if(o&&!0===t.config.settings.maximiseAllItems&&(i.popoutButton=new A.__lm.controls.HeaderButton(i,o,"lm_popout",(function(){var e=i.activeContentItem;D(e)?(e=W(e)).popout():!0===t.config.settings.popoutWholeStack?i.parent.popout():e.popout()}))),n&&!0===t.config.settings.maximiseAllItems&&(i.maximiseButton=new A.__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 A.__lm.controls.HeaderButton(i,r,"lm_close",(function(){i.parent.contentItems.forEach((function(t){t.container.close()}))}))}return i},Z=B;B._template=['<div class="lm_header">','<ul class="lm_tabs"></ul>','<ul class="lm_controls"></ul>','<ul class="lm_tabdropdown_list"></ul>',"</div>"].join(""),A.__lm.controls.Header=B;var Y=A.__lm.controls.DragProxy,J=function(t,e,n,o,i,r){return o.emit("itemDragged",i),console.log("new dragProxy",i),new Y(t,e,n,o,i,r)},K=J;J._template=Y._template,A.__lm.controls.DragProxy=J;var Q=A.__lm.items.Stack;function X(t,e,o){var i=this;console.log(t,e,o,this),Q.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}X.prototype=Object.create(Q.prototype),X.prototype.addChild=function(t,e){var n=this;"stack"===t.type?((t.content||[]).forEach((function(t,o){return Q.prototype.addChild.call(n,t,e+o)})),t.content.length&&this.setActiveContentItem(this.contentItems[e+t.activeItemIndex])):Q.prototype.addChild.call(this,t,e)},X.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())),Q.prototype.setSize.call(this)},A.__lm.items.Stack=X;var tt=A.__lm.controls.BrowserPopout,et=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 tt(t,e,n,o,i)},nt=et;A.__lm.controls.BrowserPopout=et;var ot=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 h,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 A.__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={})[A.__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=U(this.goldenLayout,t);e&&e.remove()},t.prototype.focusComponent=function(t){var e=U(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=U(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(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=u(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(t){e={error:t}}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(A.__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 s=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,p(a.contentItems)),a.isComponent){var l=a.container.__ngComponent;l&&("object"==typeof(i=l)&&"function"==typeof i.glOnPopout)&&l.glOnPopout()}}return s(t,e,n,o)};var l=function(t){var e,n,o={};try{for(var i=u(t.contentItems),r=i.next();!r.done;r=i.next()){var s=r.value;if(s.isComponent){if(s.config&&s.config.componentState&&s.config.componentState.originalId)continue;o[s.id]=s}else o=a(a({},o),l(s))}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o};this.goldenLayout._getAllComponents=function(){return l(r.goldenLayout.root)},this.goldenLayout.generateAndMaximiseDummyStack=function(t,e){var o=l(r.goldenLayout.root),s=Object.keys(o);if(0!==s.length){var c=r.goldenLayout.root.contentItems[0];if(c.isStack)c.toggleMaximise();else{var d={type:"stack",content:s.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:s.findIndex((function(n){return n===(e||t._activeContentItem.id)}))};c.addChild(d,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 m=new n.Subject;p.on("minimised",(function(){console.log("minimised",p),r.goldenLayout.__wrapperMaximisedItemId=null,m.next(),m.complete(),p.remove()})),p.toggleMaximise(),r.tabsList.pipe(i.takeUntil(m),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),s=new Set(Object.keys(r)),l=new Set(p.contentItems.map((function(t){return t.config.componentState.originalId})));try{for(var c=u(s),d=c.next();!d.done;d=c.next()){var m=d.value;l.has(m)?l.delete(m):p.addChild({type:"component",componentName:"gl-wrapper",title:t[m].config.title,reorderEnabled:!1,componentState:{originalId:m}})}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}var f=function(t){p.contentItems.find((function(e){return e.config.componentState.originalId===t})).remove()};try{for(var h=u(l),g=h.next();!g.done;g=h.next()){f(g.value)}}catch(t){o={error:t}}finally{try{g&&!g.done&&(i=h.return)&&i.call(h)}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 l=function(){o.style.display="none",s&&(o.childNodes.forEach((function(t){return o.removeChild(t)})),s.destroy(),s=null,t.header._updateTabSizes())};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(n){var i=d(n,3),a=i[0],c=i[1],u=i[2];a&&u?function(n,i,a){s&&l(),o.style.display="";var c=r.componentFactoryResolver.resolveComponentFactory(n),u=e.Injector.create(i,a);s=r.viewContainer.createComponent(c,void 0,u),o.prepend(s.location.nativeElement),t.header._updateTabSizes()}(a,c||[],u.injector):l()}),l,l)})),this.goldenLayout.on("initialised",(function(){window.requestAnimationFrame((function(){if(t.maximisedItemId){var e=U(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(A.__lm.utils.EventEmitter.ALL_EVENT,this._eventEmitter.emit,this._eventEmitter),this._eventEmitter.emit("initialised")},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 h;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,void 0,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:C,useValue:t},{provide:_,useValue:n},{provide:I,useValue:this.goldenLayout.eventHub},{provide:b,useValue:this}];return o&&i.push({provide:R,useValue:o}),e.Injector.create(i,this.injector)},t.prototype._bindEventHooks=function(t,e){if(L(e)&&t.on("resize",(function(){e.glOnResize()})),x(e)&&t.on("show",(function(){e.glOnShow()})),j(e)&&t.on("hide",(function(){e.glOnHide()})),S(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.ctorParameters=function(){return[{type:k},{type:P},{type:e.ViewContainerRef},{type:e.ApplicationRef},{type:e.ComponentFactoryResolver},{type:e.NgZone},{type:e.Injector},{type:M},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[O]}]}]},s([e.Input(),c("design:type",n.Observable)],t.prototype,"layout",void 0),s([e.Output(),c("design:type",Object)],t.prototype,"stateChanged",void 0),s([e.Output(),c("design:type",Object)],t.prototype,"tabActivated",void 0),s([e.ViewChild("glroot",{static:!0}),c("design:type",e.ElementRef)],t.prototype,"el",void 0),s([e.HostListener("window:resize"),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",void 0)],t.prototype,"onResize",null),s([e.HostListener("window:beforeunload"),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",void 0)],t.prototype,"beforeUnload",null),s([e.HostListener("window:pagehide"),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",void 0)],t.prototype,"pageHide",null),t=s([e.Component({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 }"]}),l(8,e.Optional()),l(8,e.Inject(O)),c("design:paramtypes",[k,P,e.ViewContainerRef,e.ApplicationRef,e.ComponentFactoryResolver,e.NgZone,e.Injector,M,Object])],t)}(),it=function(){function t(){}var n;return n=t,t.forRoot=function(t,o,i){return{ngModule:n,providers:[P,k,w,v,M,{provide:e.APP_INITIALIZER,useValue:g,multi:!0},{provide:m,useValue:t},{provide:e.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:[t,o,E],multi:!0},{provide:f,useValue:i},{provide:O,useValue:o}]}},t=n=s([e.NgModule({declarations:[ot,E],exports:[ot],imports:[r.CommonModule]})],t)}();t.ComponentRegistryService=P,t.FailedComponent=R,t.FallbackComponent=O,t.GetComponentFromLayoutManager=U,t.GoldenLayoutComponent=ot,t.GoldenLayoutComponentHost=b,t.GoldenLayoutComponentState=_,t.GoldenLayoutComponents=m,t.GoldenLayoutContainer=C,t.GoldenLayoutEventHub=I,t.GoldenLayoutModule=it,t.GoldenLayoutPluginDependency=f,t.MultiWindowInit=g,t.MultiWindowService=y,t.PluginRegistryService=w,t.PluginURLProvider=v,t.RootWindowService=k,t.forChild=function(t){return[{provide:m,useValue:t},{provide:e.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:t,multi:!0}]},t.ɵ0=T,t.ɵ1=z,t.ɵ2=F,t.ɵ3=q,t.ɵ4=Z,t.ɵ5=K,t.ɵ6=nt,t.ɵa=M,t.ɵb=E,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-golden-layout.umd.min.js.map |
@@ -1,5 +0,2 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { __decorate, __metadata, __param } from "tslib"; | ||
import { Inject, Injectable, Optional } from '@angular/core'; | ||
@@ -10,7 +7,3 @@ import { GoldenLayoutComponents } from './config'; | ||
import { WrapperComponent } from './wrapper.component'; | ||
export class ComponentRegistryService { | ||
/** | ||
* @param {?} initialComponents | ||
* @param {?} pluginRegistry | ||
*/ | ||
let ComponentRegistryService = class ComponentRegistryService { | ||
constructor(initialComponents, pluginRegistry) { | ||
@@ -20,7 +13,3 @@ this.pluginRegistry = pluginRegistry; | ||
this.awaitedComponents = new Map(); | ||
(initialComponents || []).forEach((/** | ||
* @param {?} c | ||
* @return {?} | ||
*/ | ||
c => this.registerComponent(c))); | ||
(initialComponents || []).forEach(c => this.registerComponent(c)); | ||
this.registerComponent({ | ||
@@ -30,43 +19,18 @@ name: 'gl-wrapper', | ||
}); | ||
this.pluginRegistry.pluginLoaded$.subscribe((/** | ||
* @param {?} __0 | ||
* @return {?} | ||
*/ | ||
({ id, module }) => { | ||
/** @type {?} */ | ||
this.pluginRegistry.pluginLoaded$.subscribe(({ id, module }) => { | ||
const registeredTokens = module.injector.get(GoldenLayoutComponents, []); | ||
console.log('Plugin', id, 'wants to register', registeredTokens.length, 'components'); | ||
registeredTokens.forEach((/** | ||
* @param {?} c | ||
* @return {?} | ||
*/ | ||
c => this.registerComponent(Object.assign({}, c, { plugin: id })))); | ||
})); | ||
registeredTokens.forEach(c => this.registerComponent(Object.assign(Object.assign({}, c), { plugin: id }))); | ||
}); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
registeredComponents() { | ||
return [...this.components.entries()].map((/** | ||
* @param {?} e | ||
* @return {?} | ||
*/ | ||
(e) => ({ name: e[0], type: e[1] }))); | ||
return [...this.components.entries()].map((e) => ({ name: e[0], type: e[1] })); | ||
} | ||
// This is only for use by the GoldenLayoutComponent | ||
/** | ||
* @return {?} | ||
*/ | ||
componentMap() { | ||
return this.components; | ||
} | ||
/** | ||
* @param {?} component | ||
* @return {?} | ||
*/ | ||
registerComponent(component) { | ||
/** @type {?} */ | ||
const otherComponent = this.components.get(component.name); | ||
if (!!otherComponent && otherComponent !== component.type) { | ||
/** @type {?} */ | ||
const err = new Error(`Failed to register component, ${component.name} is already taken by another component: ${otherComponent}`); | ||
@@ -76,3 +40,2 @@ throw err; | ||
this.components.set(component.name, component.type); | ||
/** @type {?} */ | ||
const d = this.awaitedComponents.get(component.name); | ||
@@ -84,8 +47,3 @@ if (d) { | ||
} | ||
/** | ||
* @param {?} component | ||
* @return {?} | ||
*/ | ||
waitForComponent(component) { | ||
/** @type {?} */ | ||
const c = this.components.get(component); | ||
@@ -95,3 +53,2 @@ if (c) { | ||
} | ||
/** @type {?} */ | ||
let d = this.awaitedComponents.get(component); | ||
@@ -104,7 +61,3 @@ if (!d) { | ||
} | ||
} | ||
ComponentRegistryService.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
/** @nocollapse */ | ||
}; | ||
ComponentRegistryService.ctorParameters = () => [ | ||
@@ -114,19 +67,8 @@ { type: Array, decorators: [{ type: Inject, args: [GoldenLayoutComponents,] }, { type: Optional }] }, | ||
]; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
ComponentRegistryService.prototype.components; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
ComponentRegistryService.prototype.awaitedComponents; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
ComponentRegistryService.prototype.pluginRegistry; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LXJlZ2lzdHJ5LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnQtcmVnaXN0cnkuc2VydmljZS50c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XG4iXX0= | ||
ComponentRegistryService = __decorate([ | ||
Injectable(), | ||
__param(0, Inject(GoldenLayoutComponents)), __param(0, Optional()), | ||
__metadata("design:paramtypes", [Array, PluginRegistryService]) | ||
], ComponentRegistryService); | ||
export { ComponentRegistryService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LXJlZ2lzdHJ5LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnQtcmVnaXN0cnkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFRLE1BQU0sZUFBZSxDQUFDO0FBQ25FLE9BQU8sRUFBaUIsc0JBQXNCLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFDakUsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDbEUsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUN0QyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUd2RCxJQUFhLHdCQUF3QixHQUFyQyxNQUFhLHdCQUF3QjtJQUluQyxZQUM4QyxpQkFBa0MsRUFDdEUsY0FBcUM7UUFBckMsbUJBQWMsR0FBZCxjQUFjLENBQXVCO1FBTHZDLGVBQVUsR0FBRyxJQUFJLEdBQUcsRUFBcUIsQ0FBQztRQUMxQyxzQkFBaUIsR0FBRyxJQUFJLEdBQUcsRUFBK0IsQ0FBQztRQU1qRSxDQUFDLGlCQUFpQixJQUFJLEVBQUUsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxD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ucmVzb2x2ZShjb21wb25lbnQudHlwZSk7XG4gICAgfVxuICB9XG5cbiAgcHVibGljIHdhaXRGb3JDb21wb25lbnQoY29tcG9uZW50OiBzdHJpbmcpOiBQcm9taXNlPFR5cGU8YW55Pj4ge1xuICAgIGNvbnN0IGMgPSB0aGlzLmNvbXBvbmVudHMuZ2V0KGNvbXBvbmVudCk7XG4gICAgaWYgKGMpIHtcbiAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoYyk7XG4gICAgfVxuXG4gICAgbGV0IGQgPSB0aGlzLmF3YWl0ZWRDb21wb25lbnRzLmdldChjb21wb25lbnQpO1xuICAgIGlmICghZCkge1xuICAgICAgZCA9IG5ldyBEZWZlcnJlZDxUeXBlPGFueT4+KCk7XG4gICAgICB0aGlzLmF3YWl0ZWRDb21wb25lbnRzLnNldChjb21wb25lbnQsIGQpO1xuICAgIH1cbiAgICByZXR1cm4gZC5wcm9taXNlO1xuICB9XG59XG4iXX0= |
@@ -1,51 +0,5 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { InjectionToken } from '@angular/core'; | ||
/** | ||
* @record | ||
*/ | ||
export function ComponentType() { } | ||
if (false) { | ||
/** | ||
* Optional string indicating that this component type is handled by the plugin | ||
* specified in this field. | ||
* @type {?|undefined} | ||
*/ | ||
ComponentType.prototype.plugin; | ||
/** | ||
* Name used to register compoent with GoldenLayout. | ||
* Must be unique over all component types | ||
* @type {?} | ||
*/ | ||
ComponentType.prototype.name; | ||
/** | ||
* Angular component type. | ||
* Pass the class of the component to instantiate here. | ||
* @type {?} | ||
*/ | ||
ComponentType.prototype.type; | ||
} | ||
/** | ||
* @record | ||
*/ | ||
export function PluginDependencyType() { } | ||
if (false) { | ||
/** | ||
* Fully qualified module name of the dependency | ||
* @type {?} | ||
*/ | ||
PluginDependencyType.prototype.name; | ||
/** | ||
* Function that loads the dependency | ||
* Might return an object (direct load) OR a promise (deferred loading using import() syntax) | ||
* @type {?} | ||
*/ | ||
PluginDependencyType.prototype.loader; | ||
} | ||
/** | ||
* Inject an array of ComponentType into this token to | ||
* register those by default with the ComponentRegistry | ||
* @type {?} | ||
*/ | ||
@@ -56,24 +10,4 @@ export const GoldenLayoutComponents = new InjectionToken('ComponentTypes'); | ||
* This token can use multi: true | ||
* @type {?} | ||
*/ | ||
export const GoldenLayoutPluginDependency = new InjectionToken('Dependencies'); | ||
/** | ||
* @record | ||
*/ | ||
export function IExtendedGoldenLayoutConfig() { } | ||
if (false) { | ||
/** @type {?} */ | ||
IExtendedGoldenLayoutConfig.prototype.settings; | ||
} | ||
/** | ||
* @record | ||
*/ | ||
export function IExtendedGoldenLayoutContainer() { } | ||
if (false) { | ||
/** | ||
* Unique id for the container | ||
* @type {?} | ||
*/ | ||
IExtendedGoldenLayoutContainer.prototype.id; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWdvbGRlbi1sYXlvdXQvIiwic291cmNlcyI6WyJsaWIvY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFRLE1BQU0sZUFBZSxDQUFDOzs7O0FBR3JELG1DQWlCQzs7Ozs7OztJQVpDLCtCQUFnQjs7Ozs7O0lBS2hCLDZCQUFhOzs7Ozs7SUFNYiw2QkFBZ0I7Ozs7O0FBR2xCLDBDQVVDOzs7Ozs7SUFOQyxvQ0FBYTs7Ozs7O0lBS2Isc0NBQVk7Ozs7Ozs7QUFPZCxNQUFNLE9BQU8sc0JBQXNCLEdBQUcsSUFBSSxjQUFjLENBQWtCLGdCQUFnQixDQUFDOzs7Ozs7QUFNM0YsTUFBTSxPQUFPLDRCQUE0QixHQUFHLElBQUksY0FBYyxDQUF5QixjQUFjLEN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CB3aXRoIHRoZSBQbHVnaW5SZWdpc3RyeVxuICogVGhpcyB0b2tlbiBjYW4gdXNlIG11bHRpOiB0cnVlXG4gKi9cbmV4cG9ydCBjb25zdCBHb2xkZW5MYXlvdXRQbHVnaW5EZXBlbmRlbmN5ID0gbmV3IEluamVjdGlvblRva2VuPFBsdWdpbkRlcGVuZGVuY3lUeXBlW10+KCdEZXBlbmRlbmNpZXMnKTtcblxuZXhwb3J0IGludGVyZmFjZSBJRXh0ZW5kZWRHb2xkZW5MYXlvdXRDb25maWcgZXh0ZW5kcyBHb2xkZW5MYXlvdXQuQ29uZmlnIHtcbiAgc2V0dGluZ3M6IEdvbGRlbkxheW91dC5Db25maWdbJ3NldHRpbmdzJ10gJiB7XG4gICAgLyoqXG4gICAgICogVXNlIGFsdGVybmF0ZSBtYXhpbWlzZSBtZXRob2QgdGhhdCBtb3ZlcyAqYWxsKiB0YWJzIHRvIHRoZSBzaW5nbGUgcm9vdC5cbiAgICAgKi9cbiAgICBtYXhpbWlzZUFsbEl0ZW1zPzogYm9vbGVhbjtcbiAgfTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBJRXh0ZW5kZWRHb2xkZW5MYXlvdXRDb250YWluZXIgZXh0ZW5kcyBHb2xkZW5MYXlvdXQuQ29udGFpbmVyIHtcbiAgLyoqXG4gICAqIFVuaXF1ZSBpZCBmb3IgdGhlIGNvbnRhaW5lclxuICAgKi9cbiAgaWQ6IHN0cmluZztcbn1cbiJdfQ== |
@@ -1,29 +0,9 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @template T | ||
*/ | ||
export class Deferred { | ||
constructor() { | ||
this.promise = new Promise((/** | ||
* @param {?} resolve | ||
* @param {?} reject | ||
* @return {?} | ||
*/ | ||
(resolve, reject) => { | ||
this.promise = new Promise((resolve, reject) => { | ||
this.resolve = resolve; | ||
this.reject = reject; | ||
})); | ||
}); | ||
} | ||
} | ||
if (false) { | ||
/** @type {?} */ | ||
Deferred.prototype.promise; | ||
/** @type {?} */ | ||
Deferred.prototype.resolve; | ||
/** @type {?} */ | ||
Deferred.prototype.reject; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmZXJyZWQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi9kZWZlcnJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsTUFBTSxPQUFPLFFBQVE7SUFJbkI7UUFDRSxJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksT0FBTzs7Ozs7UUFBSSxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsRUFBRTtZQUNoRCxJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQztZQUN2QixJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztRQUN2QixDQUFDLEVBQUMsQ0FBQztJQUNMLENBQUM7Q0FDRjs7O0lBVEMsMkJBQTJCOztJQUMzQiwyQkFBaUM7O0lBQ2pDLDBCQUFnRCIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBEZWZlcnJlZDxUPiB7XG4gIHB1YmxpYyBwcm9taXNlOiBQcm9taXNlPFQ+O1xuICBwdWJsaWMgcmVzb2x2ZTogKHZhbDogVCkgPT4gdm9pZDtcbiAgcHVibGljIHJlamVjdDogKHJlYXNvbjogRXJyb3IgfCBzdHJpbmcpID0+IHZvaWQ7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHRoaXMucHJvbWlzZSA9IG5ldyBQcm9taXNlPFQ+KChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICAgIHRoaXMucmVzb2x2ZSA9IHJlc29sdmU7XG4gICAgICB0aGlzLnJlamVjdCA9IHJlamVjdDtcbiAgICB9KTtcbiAgfVxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmZXJyZWQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi9kZWZlcnJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLE9BQU8sUUFBUTtJQUluQjtRQUNFLElBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxPQUFPLENBQUksQ0FBQyxPQUFPLEVBQUUsTUFBTSxFQUFFLEVBQUU7WUFDaEQsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUM7WUFDdkIsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7UUFDdkIsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgRGVmZXJyZWQ8VD4ge1xuICBwdWJsaWMgcHJvbWlzZTogUHJvbWlzZTxUPjtcbiAgcHVibGljIHJlc29sdmU6ICh2YWw6IFQpID0+IHZvaWQ7XG4gIHB1YmxpYyByZWplY3Q6IChyZWFzb246IEVycm9yIHwgc3RyaW5nKSA9PiB2b2lkO1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICB0aGlzLnByb21pc2UgPSBuZXcgUHJvbWlzZTxUPigocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgICB0aGlzLnJlc29sdmUgPSByZXNvbHZlO1xuICAgICAgdGhpcy5yZWplY3QgPSByZWplY3Q7XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ== |
@@ -1,5 +0,1 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { InjectionToken } from '@angular/core'; | ||
@@ -11,3 +7,2 @@ /** | ||
* Errors could be exceptions thrown at construction time or a not-registered component. | ||
* @type {?} | ||
*/ | ||
@@ -18,5 +13,4 @@ export const FallbackComponent = new InjectionToken("fallback component"); | ||
* the name of the component that failed to initialize. | ||
* @type {?} | ||
*/ | ||
export const FailedComponent = new InjectionToken("failed component"); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFsbGJhY2suanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi9mYWxsYmFjay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLGNBQWMsRUFBUSxNQUFNLGVBQWUsQ0FBQzs7Ozs7Ozs7QUFRckQsTUFBTSxPQUFPLGlCQUFpQixHQUFHLElBQUksY0FBYyxDQUFZLG9CQUFvQixDQUFDOzs7Ozs7QUFNcEYsTUFBTSxPQUFPLGVBQWUsR0FBRyxJQUFJLGNBQWMsQ0FBUyxrQkFBa0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGlvblRva2VuLCBUeXBlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbi8qKlxuICogSW5qZWN0IGFuIGFuZ3VsYXIgY29tcG9uZW50IHVzaW5nIHRoaXMgdG9rZW4gdG8gaW5kaWNhdGVcbiAqIHRoYXQgdGhlIGNvbXBvbmVudCBzaG91bGQgYmUgcmVuZGVyZWQgd2hlbiB0aGVyZSBpcyBhbiBlcnJvciByZW5kZXJpbmdcbiAqIHRoZSBhY3R1YWwgY29tcG9uZW50LlxuICogRXJyb3JzIGNvdWxkIGJlIGV4Y2VwdGlvbnMgdGhyb3duIGF0IGNvbnN0cnVjdGlvbiB0aW1lIG9yIGEgbm90LXJlZ2lzdGVyZWQgY29tcG9uZW50LlxuICovXG5leHBvcnQgY29uc3Qg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IGNvbXBvbmVudCBzaG91bGQgYmUgcmVuZGVyZWQgd2hlbiB0aGVyZSBpcyBhbiBlcnJvciByZW5kZXJpbmdcbiAqIHRoZSBhY3R1YWwgY29tcG9uZW50LlxuICogRXJyb3JzIGNvdWxkIGJlIGV4Y2VwdGlvbnMgdGhyb3duIGF0IGNvbnN0cnVjdGlvbiB0aW1lIG9yIGEgbm90LXJlZ2lzdGVyZWQgY29tcG9uZW50LlxuICovXG5leHBvcnQgY29uc3QgRmFsbGJhY2tDb21wb25lbnQgPSBuZXcgSW5qZWN0aW9uVG9rZW48VHlwZTxhbnk+PihcImZhbGxiYWNrIGNvbXBvbmVudFwiKTtcblxuLyoqXG4gKiBUaGlzIHRva2VuIGlzIGluamVjdGVkIGludG8gdGhlIEZhbGxiYWNrQ29tcG9uZW50IHdoZW4gaXQgaXMgaW5zdGFudGlhdGVkIGFuZCBjb250YWluc1xuICogdGhlIG5hbWUgb2YgdGhlIGNvbXBvbmVudCB0aGF0IGZhaWxlZCB0byBpbml0aWFsaXplLlxuICovXG5leHBvcnQgY29uc3QgRmFpbGVkQ29tcG9uZW50ID0gbmV3IEluamVjdGlvblRva2VuPHN0cmluZz4oXCJmYWlsZWQgY29tcG9uZW50XCIpO1xuIl19 |
@@ -1,113 +0,1 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* Hook invoked after a component's container or the document has been resized. | ||
* @record | ||
*/ | ||
export function GlOnResize() { } | ||
if (false) { | ||
/** | ||
* Invoked when the 'resize' event fires on the component's parent GoldenLayout Container. | ||
* @return {?} | ||
*/ | ||
GlOnResize.prototype.glOnResize = function () { }; | ||
} | ||
/** | ||
* Hook invoked before a component's container is shown. | ||
* @record | ||
*/ | ||
export function GlOnShow() { } | ||
if (false) { | ||
/** | ||
* Invoked when the 'show' event fires on the component's parent GoldenLayout Container. | ||
* @return {?} | ||
*/ | ||
GlOnShow.prototype.glOnShow = function () { }; | ||
} | ||
/** | ||
* Hook invoked before a component's container is hidden. | ||
* @record | ||
*/ | ||
export function GlOnHide() { } | ||
if (false) { | ||
/** | ||
* Invoked when the 'hide' event fires on the component's parent GoldenLayout Container. | ||
* @return {?} | ||
*/ | ||
GlOnHide.prototype.glOnHide = function () { }; | ||
} | ||
/** | ||
* Hook invoked after component's container tab is shown | ||
* @record | ||
*/ | ||
export function GlOnTab() { } | ||
if (false) { | ||
/** | ||
* Invoked when the 'tab' event fires on the component's parent GoldenLayout Container. | ||
* @param {?} tab | ||
* @return {?} | ||
*/ | ||
GlOnTab.prototype.glOnTab = function (tab) { }; | ||
} | ||
/** | ||
* Hook invoked when a component is closed. | ||
* @record | ||
*/ | ||
export function GlOnClose() { } | ||
if (false) { | ||
/** | ||
* Invoked when the tab will be closed by the close button or stack close button. | ||
* Resolve the promise to actually close the component, reject to prevent the close operation. | ||
* @return {?} | ||
*/ | ||
GlOnClose.prototype.glOnClose = function () { }; | ||
} | ||
/** | ||
* Hook invoked when a component will be popped in | ||
* @record | ||
*/ | ||
export function GlOnPopin() { } | ||
if (false) { | ||
/** | ||
* Invoked when the component will be popped in. | ||
* @return {?} | ||
*/ | ||
GlOnPopin.prototype.glOnPopin = function () { }; | ||
} | ||
/** | ||
* Hook invoked when a component will be popped out | ||
* @record | ||
*/ | ||
export function GlOnPopout() { } | ||
if (false) { | ||
/** | ||
* Invoked when the tab will be popped out. | ||
* @return {?} | ||
*/ | ||
GlOnPopout.prototype.glOnPopout = function () { }; | ||
} | ||
/** | ||
* Hook invoked when the page is about to being unloaded (either popout window or root window) | ||
* @record | ||
*/ | ||
export function GlOnUnload() { } | ||
if (false) { | ||
/** | ||
* Invoked when the window is unloaded. | ||
* @return {?} | ||
*/ | ||
GlOnUnload.prototype.glOnUnload = function () { }; | ||
} | ||
/** | ||
* @record | ||
*/ | ||
export function GlHeaderItem() { } | ||
if (false) { | ||
/** @type {?} */ | ||
GlHeaderItem.prototype.headerComponent; | ||
/** @type {?|undefined} */ | ||
GlHeaderItem.prototype.additionalTokens; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9va3MuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi9ob29rcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQU1BLGdDQUtDOzs7Ozs7SUFEQyxrREFBbUI7Ozs7OztBQU1yQiw4QkFLQzs7Ozs7O0lBREMsOENBQWlCOzs7Ozs7QUFNbkIsOEJBS0M7Ozs7OztJQURDLDhDQUFpQjs7Ozs7O0FBTW5CLDZCQUtDOzs7Ozs7O0lBREMsK0NBQXdCOzs7Ozs7QUFNMUIsK0JBTUM7Ozs7Ozs7SUFERSxnREFBMkI7Ozs7OztBQU05QiwrQkFLQzs7Ozs7O0lBREUsZ0RBQWtCOzs7Ozs7QUFNckIsZ0NBS0M7Ozs7OztJQURFLGtEQUFtQjs7Ozs7O0FBTXRCLGdDQUtDOzs7Ozs7SUFERSxrREFBbUI7Ozs7O0FBR3RCLGtDQUdDOzs7SUFGQyx1Q0FBZ0Q7O0lBQ2hELHdDQUFnRSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFRhYiB9IGZyb20gJ2dvbGRlbi1sYXlvdXQnO1xuaW1wb3J0IHsgVHlwZSwgU3RhdGljUHJvdmlkZXIgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqXG4gKiBIb29rIGludm9rZWQgYWZ0ZXIgYSBjb21wb25lbnQncyBjb250YWluZXIgb3IgdGhlIGRvY3VtZW50IGhhcyBiZWVuIHJlc2l6ZWQuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgR2xPblJlc2l6ZSB7XG4gIC8qKlxuICAgKiBJbnZva2VkIHdoZW4gdGhlICdyZXNpemUnIGV2ZW50IGZp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bXT47XG59XG4iXX0= |
@@ -1,5 +0,3 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var GoldenLayoutModule_1; | ||
import { __decorate } from "tslib"; | ||
import { NgModule, APP_INITIALIZER, ANALYZE_FOR_ENTRY_COMPONENTS } from '@angular/core'; | ||
@@ -16,12 +14,6 @@ import { CommonModule } from '@angular/common'; | ||
import { WrapperComponent } from './wrapper.component'; | ||
export class GoldenLayoutModule { | ||
/** | ||
* @param {?} types | ||
* @param {?=} fallback | ||
* @param {?=} pluginDeps | ||
* @return {?} | ||
*/ | ||
let GoldenLayoutModule = GoldenLayoutModule_1 = class GoldenLayoutModule { | ||
static forRoot(types, fallback, pluginDeps) { | ||
return { | ||
ngModule: GoldenLayoutModule, | ||
ngModule: GoldenLayoutModule_1, | ||
providers: [ | ||
@@ -41,14 +33,11 @@ ComponentRegistryService, | ||
} | ||
} | ||
GoldenLayoutModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [GoldenLayoutComponent, WrapperComponent], | ||
exports: [GoldenLayoutComponent], | ||
imports: [CommonModule] | ||
},] } | ||
]; | ||
/** | ||
* @param {?} types | ||
* @return {?} | ||
*/ | ||
}; | ||
GoldenLayoutModule = GoldenLayoutModule_1 = __decorate([ | ||
NgModule({ | ||
declarations: [GoldenLayoutComponent, WrapperComponent], | ||
exports: [GoldenLayoutComponent], | ||
imports: [CommonModule] | ||
}) | ||
], GoldenLayoutModule); | ||
export { GoldenLayoutModule }; | ||
export function forChild(types) { | ||
@@ -60,2 +49,2 @@ return [ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWdvbGRlbi1sYXlvdXQvIiwic291cmNlcyI6WyJsaWIvbW9kdWxlLnRzIl0sIm5hbWVzIjpb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AgICBQbHVnaW5VUkxQcm92aWRlcixcbiAgICAgICAgV2luZG93U3luY2hyb25pemVyU2VydmljZSxcbiAgICAgICAgeyBwcm92aWRlOiBBUFBfSU5JVElBTElaRVIsIHVzZVZhbHVlOiBNdWx0aVdpbmRvd0luaXQsIG11bHRpOiB0cnVlIH0sXG4gICAgICAgIHsgcHJvdmlkZTogY29uZmlnLkdvbGRlbkxheW91dENvbXBvbmVudHMsIHVzZVZhbHVlOiB0eXBlcywgfSxcbiAgICAgICAgeyBwcm92aWRlOiBBTkFMWVpFX0ZPUl9FTlRSWV9DT01QT05FTlRTLCB1c2VWYWx1ZTogW3R5cGVzLCBmYWxsYmFjaywgV3JhcHBlckNvbXBvbmVudF0sIG11bHRpOiB0cnVlIH0sXG4gICAgICAgIHsgcHJvdmlkZTogY29uZmlnLkdvbGRlbkxheW91dFBsdWdpbkRlcGVuZGVuY3ksIHVzZVZhbHVlOiBwbHVnaW5EZXBzIH0sXG4gICAgICAgIHsgcHJvdmlkZTogRmFsbGJhY2tDb21wb25lbnQsIHVzZVZhbHVlOiBmYWxsYmFjayB9LFxuICAgICAgXSxcbiAgICB9O1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBmb3JDaGlsZCh0eXBlczogY29uZmlnLkNvbXBvbmVudFR5cGVbXSk6IFByb3ZpZGVyW10ge1xuICByZXR1cm4gW1xuICAgIHsgcHJvdmlkZTogY29uZmlnLkdvbGRlbkxheW91dENvbXBvbmVudHMsIHVzZVZhbHVlOiB0eXBlcyB9LFxuICAgIHsgcHJvdmlkZTogQU5BTFlaRV9GT1JfRU5UUllfQ09NUE9ORU5UUywgdXNlVmFsdWU6IHR5cGVzLCBtdWx0aTogdHJ1ZSB9LFxuICBdO1xufVxuIl19 |
@@ -1,31 +0,15 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @return {?} | ||
*/ | ||
export function MultiWindowInit() { | ||
console.log('MultiWindowInit'); | ||
if (!window.opener) { | ||
if (!((/** @type {?} */ (window))).__services && !((/** @type {?} */ (window))).__serviceConstructors) { | ||
((/** @type {?} */ (window))).__services = new ((/** @type {?} */ (window))).Map(); | ||
((/** @type {?} */ (window))).__serviceConstructors = new ((/** @type {?} */ (window))).Map(); | ||
if (!window.__services && !window.__serviceConstructors) { | ||
window.__services = new window.Map(); | ||
window.__serviceConstructors = new window.Map(); | ||
// Electron compatibility, when we have a global 'require' in our window, we throw it into the new window context | ||
if (((/** @type {?} */ (window))).require) { | ||
/** @type {?} */ | ||
if (window.require) { | ||
const originalWindowOpen = window.open.bind(window); | ||
window.open = (/** | ||
* @param {?=} url | ||
* @param {?=} target | ||
* @param {?=} features | ||
* @param {?=} replace | ||
* @return {?} | ||
*/ | ||
(url, target, features, replace) => { | ||
/** @type {?} */ | ||
window.open = (url, target, features, replace) => { | ||
const newWindow = originalWindowOpen(url, target, features, replace); | ||
newWindow.require = ((/** @type {?} */ (window))).require; | ||
newWindow.require = window.require; | ||
return newWindow; | ||
}); | ||
}; | ||
} | ||
@@ -35,19 +19,7 @@ } | ||
} | ||
/** | ||
* @template T | ||
* @param {?} uniqueName | ||
* @return {?} | ||
*/ | ||
export function MultiWindowService(uniqueName) { | ||
MultiWindowInit(); | ||
return (/** | ||
* @param {?} constructor | ||
* @return {?} | ||
*/ | ||
function (constructor) { | ||
/** @type {?} */ | ||
const constr = (/** @type {?} */ (constructor)); | ||
/** @type {?} */ | ||
const rootWindow = (/** @type {?} */ ((window.opener || window))); | ||
/** @type {?} */ | ||
return function (constructor) { | ||
const constr = constructor; | ||
const rootWindow = (window.opener || window); | ||
const rootWindowIsMyWindow = rootWindow === window; | ||
@@ -60,12 +32,5 @@ if (rootWindowIsMyWindow) { | ||
} | ||
/** @type {?} */ | ||
const newConstructor = (/** @type {?} */ (((/** | ||
* @param {...?} args | ||
* @return {?} | ||
*/ | ||
function (...args) { | ||
/** @type {?} */ | ||
const newConstructor = (function (...args) { | ||
const hasInstance = rootWindow.__services.has(uniqueName); | ||
if (!hasInstance) { | ||
/** @type {?} */ | ||
const storedConstr = rootWindow.__serviceConstructors.get(uniqueName) || constr; | ||
@@ -75,8 +40,7 @@ rootWindow.__services.set(uniqueName, new storedConstr(...args)); | ||
return rootWindow.__services.get(uniqueName); | ||
})))); | ||
}); | ||
try { | ||
if (rootWindowIsMyWindow) { | ||
/** @type {?} */ | ||
const metadata = ((/** @type {?} */ (Reflect))).getMetadata('design:paramtypes', constr); | ||
((/** @type {?} */ (Reflect))).metadata('design:paramtypes', metadata)(newConstructor); | ||
const metadata = Reflect.getMetadata('design:paramtypes', constr); | ||
Reflect.metadata('design:paramtypes', metadata)(newConstructor); | ||
} | ||
@@ -87,5 +51,5 @@ } | ||
} | ||
return (/** @type {?} */ (newConstructor)); | ||
}); | ||
return newConstructor; | ||
}; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGl3aW5kb3ctc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsibGliL211bHRpd2luZG93LXNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLE1BQU0sVUFBVSxlQUFlO0lBQzdCLE9BQU8sQ0FBQyxHQUFHLENBQUMsaUJBQWlCLENBQUMsQ0FBQztJQUMvQixJQUFJLENBQUMsTUFBTSxDQUFDLE1BQU0sRUFBRTtRQUNsQixJQUFJLENBQUMsQ0FBQyxtQkFBQSxNQUFNLEVBQU8sQ0FBQyxDQUFDLFVBQVUsSUFBSSxDQUFDLENBQUMsbUJBQUEsTUFBTSxFQUFPLENBQUMsQ0FBQyxxQkFBcUIsRUFBRTtZQUN6RSxDQUFDLG1CQUFBLE1BQU0sRUFBTyxDQUFDLENBQUMsVUFBVSxHQUFHLElBQUks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lvbiguLi5hcmdzOiBhbnlbXSk6IFQge1xuICAgICAgY29uc3QgaGFzSW5zdGFuY2UgPSByb290V2luZG93Ll9fc2VydmljZXMuaGFzKHVuaXF1ZU5hbWUpO1xuICAgICAgaWYgKCFoYXNJbnN0YW5jZSkge1xuICAgICAgICBjb25zdCBzdG9yZWRDb25zdHIgPSByb290V2luZG93Ll9fc2VydmljZUNvbnN0cnVjdG9ycy5nZXQodW5pcXVlTmFtZSkgfHwgY29uc3RyO1xuICAgICAgICByb290V2luZG93Ll9fc2VydmljZXMuc2V0KHVuaXF1ZU5hbWUsIG5ldyBzdG9yZWRDb25zdHIoLi4uYXJncykpO1xuICAgICAgfVxuICAgICAgcmV0dXJuIHJvb3RXaW5kb3cuX19zZXJ2aWNlcy5nZXQodW5pcXVlTmFtZSk7XG4gICAgfSkgYXMgYW55O1xuICAgIHRyeSB7XG4gICAgICBpZiAocm9vdFdpbmRvd0lzTXlXaW5kb3cpIHtcbiAgICAgICAgY29uc3QgbWV0YWRhdGEgPSAoUmVmbGVjdCBhcyBhbnkpLmdldE1ldGFkYXRhKCdkZXNpZ246cGFyYW10eXBlcycsIGNvbnN0cik7XG4gICAgICAgIChSZWZsZWN0IGFzIGFueSkubWV0YWRhdGEoJ2Rlc2lnbjpwYXJhbXR5cGVzJywgbWV0YWRhdGEpKG5ld0NvbnN0cnVjdG9yKTtcbiAgICAgIH1cbiAgICB9IGNhdGNoIHtcbiAgICAgIC8vIG9idmlvdXNseSwgd2UncmUgaW4gaXZ5LlxuICAgIH1cbiAgICByZXR1cm4gbmV3Q29uc3RydWN0b3IgYXMgQ29uc3RydWN0b3I8VD47XG4gIH07XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGl3aW5kb3ctc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsibGliL211bHRpd2luZG93LXNl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 -1,7 +0,3 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable, Inject, Optional, Injector, ɵNgModuleFactory } from '@angular/core'; | ||
import { __decorate, __metadata, __param } from "tslib"; | ||
import { Injectable, Inject, Optional, Injector, NgModuleRef, ɵNgModuleFactory } from '@angular/core'; | ||
import { GoldenLayoutPluginDependency } from './config'; | ||
@@ -11,29 +7,3 @@ import { Deferred } from './deferred'; | ||
import { MultiWindowService } from './multiwindow-service'; | ||
/** | ||
* @record | ||
*/ | ||
function IPluginState() { } | ||
if (false) { | ||
/** @type {?} */ | ||
IPluginState.prototype.id; | ||
/** @type {?} */ | ||
IPluginState.prototype.url; | ||
/** @type {?} */ | ||
IPluginState.prototype.module; | ||
/** @type {?} */ | ||
IPluginState.prototype.moduleRef; | ||
/** @type {?} */ | ||
IPluginState.prototype.script; | ||
} | ||
; | ||
/** | ||
* @record | ||
*/ | ||
function IPluginURL() { } | ||
if (false) { | ||
/** @type {?} */ | ||
IPluginURL.prototype.id; | ||
/** @type {?} */ | ||
IPluginURL.prototype.url; | ||
} | ||
; | ||
@@ -45,8 +15,3 @@ /** | ||
*/ | ||
let PluginURLProvider = /** | ||
* This class manages plugin load and unload requests across all windows. | ||
* Because we can't have progress reporting about all windows, we also don't | ||
* return any progress/success indicator here. | ||
*/ | ||
class PluginURLProvider { | ||
let PluginURLProvider = class PluginURLProvider { | ||
constructor() { | ||
@@ -57,31 +22,12 @@ this.loadedURLs = new Map(); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
loadRequests$() { | ||
return this.loads; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
unloadRequests$() { | ||
return this.unloads; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
allPlugins() { | ||
return [...this.loadedURLs.entries()].map((/** | ||
* @param {?} p | ||
* @return {?} | ||
*/ | ||
p => ({ id: p[0], url: p[1] }))); | ||
return [...this.loadedURLs.entries()].map(p => ({ id: p[0], url: p[1] })); | ||
} | ||
/** | ||
* @param {?} id | ||
* @param {?} url | ||
* @return {?} | ||
*/ | ||
requestLoad(id, url) { | ||
/** @type {?} */ | ||
const p = this.loadedURLs.get(id); | ||
@@ -97,8 +43,3 @@ if (p) { | ||
} | ||
/** | ||
* @param {?} id | ||
* @return {?} | ||
*/ | ||
requestUnload(id) { | ||
/** @type {?} */ | ||
const p = this.loadedURLs.get(id); | ||
@@ -112,31 +53,7 @@ if (!p) { | ||
}; | ||
PluginURLProvider.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
/** | ||
* This class manages plugin load and unload requests across all windows. | ||
* Because we can't have progress reporting about all windows, we also don't | ||
* return any progress/success indicator here. | ||
*/ | ||
PluginURLProvider = tslib_1.__decorate([ | ||
MultiWindowService('_gl__PluginURLProvider') | ||
PluginURLProvider = __decorate([ | ||
MultiWindowService('_gl__PluginURLProvider'), | ||
Injectable() | ||
], PluginURLProvider); | ||
export { PluginURLProvider }; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginURLProvider.prototype.loadedURLs; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginURLProvider.prototype.loads; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginURLProvider.prototype.unloads; | ||
} | ||
/** | ||
@@ -148,8 +65,3 @@ * This class automates the loading of bundles built with ng-packagr, | ||
*/ | ||
export class PluginRegistryService { | ||
/** | ||
* @param {?=} deps | ||
* @param {?=} urlProvider | ||
* @param {?=} injector | ||
*/ | ||
let PluginRegistryService = class PluginRegistryService { | ||
constructor(deps = [], urlProvider, injector) { | ||
@@ -163,41 +75,15 @@ this.urlProvider = urlProvider; | ||
console.log('Creating PluginRegistry, got', deps.length, 'additional dependency modules'); | ||
deps.forEach((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
x => this.availableDependencies.set(x.name, x.loader))); | ||
deps.forEach(x => this.availableDependencies.set(x.name, x.loader)); | ||
this.patchWindow(); | ||
this.urlProvider.loadRequests$().subscribe((/** | ||
* @param {?} p | ||
* @return {?} | ||
*/ | ||
p => this.load(p))); | ||
this.urlProvider.loadRequests$().subscribe(p => this.load(p)); | ||
// Load all previously loaded plugins | ||
this.urlProvider.allPlugins().forEach((/** | ||
* @param {?} p | ||
* @return {?} | ||
*/ | ||
p => this.load(p))); | ||
this.urlProvider.allPlugins().forEach(p => this.load(p)); | ||
} | ||
/** | ||
* @param {?} id | ||
* @param {?} url | ||
* @return {?} | ||
*/ | ||
startLoadPlugin(id, url) { | ||
this.urlProvider.requestLoad(id, url); | ||
} | ||
/** | ||
* @param {?} id | ||
* @return {?} | ||
*/ | ||
startUnloadPlugin(id) { | ||
this.urlProvider.requestUnload(id); | ||
} | ||
/** | ||
* @param {?} id | ||
* @return {?} | ||
*/ | ||
waitForPlugin(id) { | ||
/** @type {?} */ | ||
const p = this.loadedPlugins.get(id); | ||
@@ -207,3 +93,2 @@ if (p) { | ||
} | ||
/** @type {?} */ | ||
const newPlugin = { | ||
@@ -219,15 +104,4 @@ id: id, | ||
} | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
patchWindow() { | ||
((/** @type {?} */ (window))).define = (/** | ||
* @param {?} moduleId | ||
* @param {?} deps | ||
* @param {?} factory | ||
* @return {?} | ||
*/ | ||
(moduleId, deps, factory) => { | ||
/** @type {?} */ | ||
window.define = (moduleId, deps, factory) => { | ||
const x = this.loadedPlugins.get(moduleId); | ||
@@ -240,9 +114,3 @@ if (!x) { | ||
deps = deps.slice(1); | ||
/** @type {?} */ | ||
const depsExports = deps.map((/** | ||
* @param {?} d | ||
* @return {?} | ||
*/ | ||
d => { | ||
/** @type {?} */ | ||
const depsExports = deps.map(d => { | ||
const p = this.availableDependencies.get(d); | ||
@@ -253,23 +121,12 @@ if (!p) { | ||
} | ||
/** @type {?} */ | ||
const promisifiedP = Promise.resolve(p); | ||
return promisifiedP.catch((/** | ||
* @param {?} err | ||
* @return {?} | ||
*/ | ||
err => { | ||
return promisifiedP.catch(err => { | ||
console.warn('Plugin', moduleId, 'dependency', d, 'but load failed', err); | ||
return undefined; | ||
})); | ||
})); | ||
Promise.all(depsExports).then((/** | ||
* @param {?} deps | ||
* @return {?} | ||
*/ | ||
deps => { | ||
/** @type {?} */ | ||
}); | ||
}); | ||
Promise.all(depsExports).then(deps => { | ||
const exports = {}; | ||
factory(exports, ...deps); | ||
console.log('Plugin', moduleId, 'loaded.'); | ||
/** @type {?} */ | ||
const moduleKlass = exports.MODULE; | ||
@@ -279,26 +136,15 @@ if (!moduleKlass) { | ||
} | ||
/** @type {?} */ | ||
const moduleFactory = new ɵNgModuleFactory(moduleKlass); | ||
x.moduleRef = moduleFactory.create(this.injector); | ||
x.module.resolve((/** @type {?} */ (exports))); | ||
x.module.resolve(exports); | ||
this.pluginLoaded$.next({ id: x.id, module: x.moduleRef }); | ||
})).catch((/** | ||
* @param {?} err | ||
* @return {?} | ||
*/ | ||
err => { | ||
}).catch(err => { | ||
console.warn('Failed to load plugin', moduleId, 'error', err); | ||
x.module.reject(err); | ||
})); | ||
}); | ||
((/** @type {?} */ (window))).define.amd = true; | ||
}); | ||
}; | ||
window.define.amd = true; | ||
console.log('Window AMD shim established.'); | ||
} | ||
/** | ||
* @private | ||
* @param {?} __0 | ||
* @return {?} | ||
*/ | ||
load({ id, url }) { | ||
/** @type {?} */ | ||
let p = this.loadedPlugins.get(id); | ||
@@ -328,9 +174,4 @@ // plugin is already loaded or in progress. | ||
this.loadedPlugins.set(id, p); | ||
/** @type {?} */ | ||
const script = document.createElement('script'); | ||
script.onerror = (/** | ||
* @param {?} e | ||
* @return {?} | ||
*/ | ||
(e) => p.module.reject((/** @type {?} */ (e)))); | ||
script.onerror = (e) => p.module.reject(e); | ||
script.type = 'text/javascript'; | ||
@@ -341,15 +182,6 @@ script.src = url; | ||
} | ||
/** | ||
* @private | ||
* @param {?} id | ||
* @return {?} | ||
*/ | ||
unload(id) { | ||
// TBD | ||
} | ||
} | ||
PluginRegistryService.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
/** @nocollapse */ | ||
}; | ||
PluginRegistryService.ctorParameters = () => [ | ||
@@ -360,28 +192,9 @@ { type: Array, decorators: [{ type: Inject, args: [GoldenLayoutPluginDependency,] }, { type: Optional }] }, | ||
]; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginRegistryService.prototype.availableDependencies; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginRegistryService.prototype.loadedPlugins; | ||
/** @type {?} */ | ||
PluginRegistryService.prototype.pluginLoaded$; | ||
/** @type {?} */ | ||
PluginRegistryService.prototype.pluginUnloaded$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginRegistryService.prototype.urlProvider; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginRegistryService.prototype.injector; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2luLXJlZ2lzdHJ5LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi9wbHVnaW4tcmVnaXN0cnkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBRSxRQUFRLEVBQWUsZ0JBQWdCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdEcsT0FBTyxFQUFFLDRCQUE0QixFQUF3QixNQUFNLFVBQVUsQ0FBQztBQUM5RSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQ3RDLE9BQU8sRUFBRSxPQUFPLEVBQWMsTUFBTSxNQUFNLENBQUM7QUF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4gICAgICBjb25zdCB4ID0gdGhpcy5sb2FkZWRQbHVnaW5zLmdldChtb2R1bGVJZCk7XG4gICAgICBpZiAoIXgpIHtcbiAgICAgICAgY29uc29sZS53YXJuKCdVbmtub3duIHBsdWdpbiBjYWxsZWQgZGVmaW5lKCk6JywgbW9kdWxlSWQpO1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIC8vIGZpcnN0IHBhcmFtIGlzIGV4cG9ydHNcbiAgICAgIGRlcHMgPSBkZXBzLnNsaWNlKDEpO1xuXG4gICAgICBjb25zdCBkZXBzRXhwb3J0cyA9IGRlcHMubWFwKGQgPT4ge1xuICAgICAgICBjb25zdCBwID0gdGhpcy5hdmFpbGFibGVEZXBlbmRlbmNpZXMuZ2V0KGQpO1xuICAgICAgICBpZiAoIXApIHtcbiAgICAgICAgICBjb25zb2xlLndhcm4oJ1BsdWdpbicsIG1vZHVsZUlkLCAncmVxdWVzdGVkIHVua25vd24gZGVwZW5kZW5jeScsIGQpO1xuICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUodW5kZWZpbmVkKTtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBwcm9taXNpZmllZFAgPSBQcm9taXNlLnJlc29sdmUocCk7XG4gICAgICAgIHJldHVybiBwcm9taXNpZmllZFAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICBjb25zb2xlLndhcm4oJ1BsdWdpbicsIG1vZHVsZUlkLCAnZGVwZW5kZW5jeScsIGQsICdidXQgbG9hZCBmYWlsZWQnLCBlcnIpO1xuICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgICAgIH0pO1xuICAgICAgfSk7XG4gICAgICBQcm9taXNlLmFsbChkZXBzRXhwb3J0cykudGhlbihkZXBzID0+IHtcbiAgICAgICAgY29uc3QgZXhwb3J0czogYW55ID0ge307XG4gICAgICAgIGZhY3RvcnkoZXhwb3J0cywgLi4uZGVwcyk7XG4gICAgICAgIGNvbnNvbGUubG9nKC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B1cmw7XG4gICAgcC5zY3JpcHQgPSBzY3JpcHQ7XG5cbiAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKHNjcmlwdCk7XG4gIH1cblxuICBwcml2YXRlIHVubG9hZChpZDogc3RyaW5nKSB7XG4gICAgLy8gVEJEXG4gIH1cbn1cbiJdfQ== | ||
PluginRegistryService = __decorate([ | ||
Injectable(), | ||
__param(0, Inject(GoldenLayoutPluginDependency)), __param(0, Optional()), | ||
__metadata("design:paramtypes", [Array, PluginURLProvider, | ||
Injector]) | ||
], PluginRegistryService); | ||
export { PluginRegistryService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2luLXJlZ2lzdHJ5LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi9wbHVnaW4tcmVnaXN0cnkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxXQUFXLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdEcsT0FBTyxFQUFFLDRCQUE0QixFQUF3QixNQUFNLFVBQVUsQ0FBQztBQUM5RSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQ3RDLE9BQU8sRUFBRSxPQUFPLEVBQWMsTUFBTSxNQUFNLENBQUM7QUFDM0MsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFRMUQsQ0FBQztBQUtELENBQUM7QUFFRjs7OztHQUlHO0FBR0gsSUFBYSxpQkFBaUIsR0FBOUIsTUFBYSxpQkFBaUI7SUFBOUI7UUFDVSxlQUFVLEdBQUcsSUFBSSxHQUFHLEVBQWtCLENBQ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B3ZSBkb24ndCBuZWVkIHRvIHJlY3JlYXRlXG4gICAgLy8gdGhlIHN0cnVjdHVyZSBoZXJlLlxuICAgIGlmICghcCkge1xuICAgICAgcCA9IHtcbiAgICAgICAgaWQ6IGlkLFxuICAgICAgICBtb2R1bGU6IG5ldyBEZWZlcnJlZDxhbnk+KCksXG4gICAgICAgIHVybDogbnVsbCxcbiAgICAgICAgbW9kdWxlUmVmOiBudWxsLFxuICAgICAgICBzY3JpcHQ6IG51bGwsXG4gICAgICB9O1xuICAgIH1cblxuICAgIC8vIFN0YXJ0IHRoZSBhY3R1YWwgbG9hZGluZyBwcm9jZXNzXG4gICAgcC51cmwgPSB1cmw7XG4gICAgdGhpcy5sb2FkZWRQbHVnaW5zLnNldChpZCwgcCk7XG5cbiAgICBjb25zdCBzY3JpcHQgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdzY3JpcHQnKTtcbiAgICBzY3JpcHQub25lcnJvciA9IChlKSA9PiBwLm1vZHVsZS5yZWplY3QoZSBhcyBhbnkpO1xuICAgIHNjcmlwdC50eXBlID0gJ3RleHQvamF2YXNjcmlwdCc7XG4gICAgc2NyaXB0LnNyYyA9IHVybDtcbiAgICBwLnNjcmlwdCA9IHNjcmlwdDtcblxuICAgIGRvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoc2NyaXB0KTtcbiAgfVxuXG4gIHByaXZhdGUgdW5sb2FkKGlkOiBzdHJpbmcpIHtcbiAgICAvLyBUQkRcbiAgfVxufVxuIl19 |
@@ -1,11 +0,5 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { __decorate, __metadata } from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
export class RootWindowService { | ||
let RootWindowService = class RootWindowService { | ||
constructor() { } | ||
/** | ||
* @return {?} | ||
*/ | ||
isChildWindow() { | ||
@@ -19,14 +13,11 @@ try { | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
getRootWindow() { | ||
return this.isChildWindow() ? window.opener : window; | ||
} | ||
} | ||
RootWindowService.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
/** @nocollapse */ | ||
RootWindowService.ctorParameters = () => []; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9vdC13aW5kb3cuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsibGliL3Jvb3Qtd2luZG93LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHM0MsTUFBTSxPQUFPLGlCQUFpQjtJQUU1QixnQkFBZSxDQUFDOzs7O0lBRVQsYUFBYTtRQUNsQixJQUFJO1lBQ0YsT0FBTyxDQUFDLENBQUMsTUFBTSxDQUFDLE1BQU0sSUFBSSxDQUFDLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDO1NBQ3pEO1FBQUMsT0FBTyxDQUFDLEVBQUU7WUFDVixPQUFPLEtBQUssQ0FBQztTQUNkO0lBQ0gsQ0FBQzs7OztJQUVNLGFBQWE7UUFDbEIsT0FBTyxJQUFJLENBQUMsYUFBYSxFQUFFLENBQUMsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLE1BQU0sQ0FBQztJQUN2RCxDQUFDOzs7WUFmRixVQUFVIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0YWJsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgUm9vdFdpbmRvd1NlcnZpY2Uge1xuXG4gIGNvbnN0cnVjdG9yKCkge31cblxuICBwdWJsaWMgaXNDaGlsZFdpbmRvdygpOiBib29sZWFuIHtcbiAgICB0cnkge1xuICAgICAgcmV0dXJuICEhd2luZG93Lm9wZW5lciAmJiAhIXdpbmRvdy5vcGVuZXIubG9jYXRpb24uaHJlZjtcbiAgICB9IGNhdGNoIChlKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuICB9XG5cbiAgcHVibGljIGdldFJvb3RXaW5kb3coKTogV2luZG93IHtcbiAgICByZXR1cm4gdGhpcy5pc0NoaWxkV2luZG93KCkgPyB3aW5kb3cub3BlbmVyIDogd2luZG93O1xuICB9XG59XG4iXX0= | ||
}; | ||
RootWindowService = __decorate([ | ||
Injectable(), | ||
__metadata("design:paramtypes", []) | ||
], RootWindowService); | ||
export { RootWindowService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9vdC13aW5kb3cuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsibGliL3Jvb3Qtd2luZG93LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHM0MsSUFBYSxpQkFBaUIsR0FBOUIsTUFBYSxpQkFBaUI7SUFFNUIsZ0JBQWUsQ0FBQztJQUVULGFBQWE7UUFDbEIsSUFBSTtZQUNGLE9BQU8sQ0FBQyxDQUFDLE1BQU0sQ0FBQyxNQUFNLElBQUksQ0FBQyxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQztTQUN6RDtRQUFDLE9BQU8sQ0FBQyxFQUFFO1lBQ1YsT0FBTyxLQUFLLENBQUM7U0FDZDtJQUNILENBQUM7SUFFTSxhQUFhO1FBQ2xCLE9BQU8sSUFBSSxDQUFDLGFBQWEsRUFBRSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUM7SUFDdkQsQ0FBQztDQUNGLENBQUE7QUFmWSxpQkFBaUI7SUFEN0IsVUFBVSxFQUFFOztHQUNBLGlCQUFpQixDQWU3QjtTQWZZLGlCQUFpQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIFJvb3RXaW5kb3dTZXJ2aWNlIHtcblxuICBjb25zdHJ1Y3RvcigpIHt9XG5cbiAgcHVibGljIGlzQ2hpbGRXaW5kb3coKTogYm9vbGVhbiB7XG4gICAgdHJ5IHtcbiAgICAgIHJldHVybiAhIXdpbmRvdy5vcGVuZXIgJiYgISF3aW5kb3cub3BlbmVyLmxvY2F0aW9uLmhyZWY7XG4gICAgfSBjYXRjaCAoZSkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cbiAgfVxuXG4gIHB1YmxpYyBnZXRSb290V2luZG93KCk6IFdpbmRvdyB7XG4gICAgcmV0dXJuIHRoaXMuaXNDaGlsZFdpbmRvdygpID8gd2luZG93Lm9wZW5lciA6IHdpbmRvdztcbiAgfVxufVxuIl19 |
@@ -1,14 +0,6 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { InjectionToken } from '@angular/core'; | ||
/** @type {?} */ | ||
export const GoldenLayoutContainer = new InjectionToken('GoldenLayoutContainer'); | ||
/** @type {?} */ | ||
export const GoldenLayoutComponentState = new InjectionToken('GoldenLayoutComponentState'); | ||
/** @type {?} */ | ||
export const GoldenLayoutEventHub = new InjectionToken('GoldenLayoutEventHub'); | ||
/** @type {?} */ | ||
export const GoldenLayoutComponentHost = new InjectionToken('Go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0IGNvbnN0IEdvbGRlbkxheW91dENvbXBvbmVudEhvc3QgPSBuZXcgSW5qZWN0aW9uVG9rZW4oJ0dvbGRlbkxheW91dENvbXBvbmVudEhvc3QnKTtcbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* Type guard which determines if a component implements the GlOnResize interface. | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
@@ -15,4 +9,2 @@ export function implementsGlOnResize(obj) { | ||
* Type guard which determines if a component implements the GlOnShow interface. | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
@@ -24,4 +16,2 @@ export function implementsGlOnShow(obj) { | ||
* Type guard which determines if a component implements the GlOnHide interface. | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
@@ -33,4 +23,2 @@ export function implementsGlOnHide(obj) { | ||
* Type guard which determines if a component implements the GlOnTab interface. | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
@@ -42,4 +30,2 @@ export function implementsGlOnTab(obj) { | ||
* Type guard which determines if a component implements the GlOnClose interface. | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
@@ -49,47 +35,20 @@ export function implementsGlOnClose(obj) { | ||
} | ||
/** | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
export function implementsGlOnPopin(obj) { | ||
return typeof obj === 'object' && typeof obj.glOnPopin === 'function'; | ||
} | ||
/** | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
export function implementsGlOnUnload(obj) { | ||
return typeof obj === 'object' && typeof obj.glOnUnload === 'function'; | ||
} | ||
/** | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
export function implementsGlOnPopout(obj) { | ||
return typeof obj === 'object' && typeof obj.glOnPopout === 'function'; | ||
} | ||
/** | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
export function implementsGlHeaderItem(obj) { | ||
return typeof obj === 'object' && typeof obj.headerComponent === 'function'; | ||
} | ||
/** @type {?} */ | ||
export const uuid = (/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (/** | ||
* @param {?} c | ||
* @return {?} | ||
*/ | ||
(c) => { | ||
/** @type {?} */ | ||
var r = Math.random() * 16 | 0; | ||
/** @type {?} */ | ||
var v = c == 'x' ? r : (r & 0x3 | 0x8); | ||
export const uuid = () => { | ||
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { | ||
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); | ||
return v.toString(16); | ||
})); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZS1ndWFyZHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi90eXBlLWd1YXJkcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFLQSxNQUFNLFVBQVUsb0JBQW9CLENBQUMsR0FBUTtJQUMzQyxPQUFPLE9BQU8sR0FBRyxLQUFLLFFBQVEsSUFBSSxPQUFPLEdBQUcsQ0FBQyxVQUFVLEtBQUssVUFBVSxDQUFDO0FBQ3pFLENBQUM7Ozs7OztBQUtELE1BQU0sVUFBVSxrQkFBa0IsQ0FBQyxHQUFRO0lBQ3pDLE9BQU8sT0FBTyxHQUFHLEtBQUssUUFBUSxJQUFJLE9BQU8sR0FBRyxDQUFDLFFBQVEsS0FBSyxVQUFVLENBQUM7QUFDdkUsQ0FBQzs7Ozs7O0FBS0QsTUFBTSxVQUFVLGtCQUFrQixDQUFDLEdBQVE7SUFDekMsT0FBTyxPQUFPLEdBQUcsS0FBSyxRQUFRLElBQUksT0FBTyxHQUFHLENBQUMsU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cGVvZiBvYmogPT09ICdvYmplY3QnICYmIHR5cGVvZiBvYmouZ2xPblVubG9hZCA9PT0gJ2Z1bmN0aW9uJztcbn1cbmV4cG9ydCBmdW5jdGlvbiBpbXBsZW1lbnRzR2xPblBvcG91dChvYmo6IGFueSk6IG9iaiBpcyBHbE9uUG9wb3V0IHtcbiAgcmV0dXJuIHR5cGVvZiBvYmogPT09ICdvYmplY3QnICYmIHR5cGVvZiBvYmouZ2xPblBvcG91dCA9PT0gJ2Z1bmN0aW9uJztcbn1cbmV4cG9ydCBmdW5jdGlvbiBpbXBsZW1lbnRzR2xIZWFkZXJJdGVtKG9iajogYW55KTogb2JqIGlzIEdsSGVhZGVySXRlbSB7XG4gIHJldHVybiB0eXBlb2Ygb2JqID09PSAnb2JqZWN0JyAmJiB0eXBlb2Ygb2JqLmhlYWRlckNvbXBvbmVudCA9PT0gJ2Z1bmN0aW9uJztcbn1cblxuZXhwb3J0IGNvbnN0IHV1aWQgPSAoKSA9PiB7XG4gIHJldHVybiAneHh4eHh4eHgteHh4eC00eHh4LXl4eHgteHh4eHh4eHh4eHh4Jy5yZXBsYWNlKC9beHldL2csIChjKSA9PiB7XG4gICAgdmFyIHIgPSBNYXRoLnJhbmRvbSgpICogMTYgfCAwLCB2ID0gYyA9PSAneCcgPyByIDogKHIgJiAweDMgfCAweDgpO1xuICAgIHJldHVybiB2LnRvU3RyaW5nKDE2KTtcbiAgfSk7XG59XG4iXX0= |
@@ -1,13 +0,5 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { __decorate, __metadata } from "tslib"; | ||
import { Injectable, ApplicationRef, Injector } from '@angular/core'; | ||
import { RootWindowService } from './root-window.service'; | ||
export class WindowSynchronizerService { | ||
/** | ||
* @param {?} appref | ||
* @param {?} rootService | ||
* @param {?} injector | ||
*/ | ||
let WindowSynchronizerService = class WindowSynchronizerService { | ||
constructor(appref, rootService, injector) { | ||
@@ -22,8 +14,4 @@ this.appref = appref; | ||
window.document.title = window.document.URL; | ||
((/** @type {?} */ (console))).__log = console.log; | ||
console.log = (/** | ||
* @param {...?} args | ||
* @return {?} | ||
*/ | ||
(...args) => this.topWindow.console.log('[CHILD] =>', ...args)); | ||
console.__log = console.log; | ||
console.log = (...args) => this.topWindow.console.log('[CHILD] =>', ...args); | ||
} | ||
@@ -33,4 +21,3 @@ // Multi-Window compatibility. | ||
// Store them in a global array and also overwrite the injector using the injector from the main window. | ||
/** @type {?} */ | ||
let anyWin = (/** @type {?} */ (this.topWindow)); | ||
let anyWin = this.topWindow; | ||
if (!this.isChildWindow) { | ||
@@ -42,19 +29,10 @@ anyWin.__apprefs = []; | ||
anyWin.__apprefs.push(this.appref); | ||
((/** @type {?} */ (this.appref))).__tick = this.appref.tick; | ||
this.appref.__tick = this.appref.tick; | ||
// Overwrite the tick method running all apprefs in their zones. | ||
this.appref.tick = (/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
for (const ar of ((/** @type {?} */ (this.topWindow))).__apprefs) { | ||
ar._zone.run((/** | ||
* @return {?} | ||
*/ | ||
() => ar.__tick())); | ||
this.appref.tick = () => { | ||
for (const ar of this.topWindow.__apprefs) { | ||
ar._zone.run(() => ar.__tick()); | ||
} | ||
}); | ||
}; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
onUnload() { | ||
@@ -66,14 +44,9 @@ if (this.unloaded) { | ||
if (this.isChildWindow) { | ||
/** @type {?} */ | ||
const index = ((/** @type {?} */ (this.topWindow))).__apprefs.indexOf(this.appref); | ||
const index = this.topWindow.__apprefs.indexOf(this.appref); | ||
if (index >= 0) { | ||
((/** @type {?} */ (this.topWindow))).__apprefs.splice(index, 1); | ||
this.topWindow.__apprefs.splice(index, 1); | ||
} | ||
} | ||
} | ||
} | ||
WindowSynchronizerService.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
/** @nocollapse */ | ||
}; | ||
WindowSynchronizerService.ctorParameters = () => [ | ||
@@ -84,34 +57,9 @@ { type: ApplicationRef }, | ||
]; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WindowSynchronizerService.prototype.topWindow; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WindowSynchronizerService.prototype.isChildWindow; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WindowSynchronizerService.prototype.unloaded; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WindowSynchronizerService.prototype.appref; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WindowSynchronizerService.prototype.rootService; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WindowSynchronizerService.prototype.injector; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2luZG93LXN5bmMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsibGliL3dpbmRvdy1zeW5jLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsY0FBYyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNyRSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUcxRCxNQUFNLE9BQU8seUJBQXlCOzs7Ozs7SUFLcEMsWUFDVSxNQUFzQixFQUN0QixXQUE4QixFQUM5QixRQUFrQjtRQUZsQixXQUFNLEdBQU4sTUFBTSxDQUFnQjtRQUN0QixnQkFBVyxHQUFYLFdBQVcsQ0FBbUI7UUFDOUIsYUFBUSxHQUFSLFFBQVEsQ0FBVTtRQUxwQixhQUFRLEdBQUcsS0FBSyxDQUFDO1FBT3ZCLElBQUksQ0FBQyxTQUFTLEdBQUcsSUFBSSxDQUFDLFdBQVcsQ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zLnRvcFdpbmRvdyBhcyBhbnkpLl9fYXBwcmVmcy5pbmRleE9mKHRoaXMuYXBwcmVmKTtcbiAgICAgIGlmIChpbmRleCA+PSAwKSB7XG4gICAgICAgICh0aGlzLnRvcFdpbmRvdyBhcyBhbnkpLl9fYXBwcmVmcy5zcGxpY2UoaW5kZXgsIDEpO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIl19 | ||
WindowSynchronizerService = __decorate([ | ||
Injectable(), | ||
__metadata("design:paramtypes", [ApplicationRef, | ||
RootWindowService, | ||
Injector]) | ||
], WindowSynchronizerService); | ||
export { WindowSynchronizerService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2luZG93LXN5bmMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsibGliL3dpbmRvdy1zeW5jLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsY0FBYyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNyRSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUcxRCxJQUFhLHlCQUF5QixHQUF0QyxNQUFhLHlCQUF5QjtJQUtwQyxZQUNVLE1BQXNCLEVBQ3RCLFdBQThCLEVBQzlCLFFBQWtCO1FBRmxCLFdBQU0sR0FBTixNQUFNLENBQWdCO1FBQ3RCLGdCQUFXLEdBQVgsV0FBVyxDQUFtQjtRQUM5QixhQUFRLEdBQVIsUUFBUSxDQUFVO1FBTHBCLGFBQVEsR0FBRyxLQUFLLENBQUM7UUFPdkIsSUFBSSxDQUFDLFNBQVMsR0FBRyxJQUFJLENBQUMsV0FBVyxDQUFDLGFBQWEsRUFBRSxDQUFDO1FBQ2xELElBQUksQ0FBQyxhQUFhLEdBQUc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FueTtcbiAgICBpZiAoIXRoaXMuaXNDaGlsZFdpbmRvdykge1xuICAgICAgYW55V2luLl9fYXBwcmVmcyA9IFtdO1xuICAgICAgYW55V2luLl9faW5qZWN0b3IgPSB0aGlzLmluamVjdG9yO1xuICAgIH1cblxuICAgIC8vIGF0dGFjaCB0aGUgYXBwbGljYXRpb24gcmVmZXJlbmNlIHRvIHRoZSByb290IHdpbmRvdywgc2F2ZSB0aGUgb3JpZ2luYWwgJ3RpY2snIG1ldGhvZFxuICAgIGFueVdpbi5fX2FwcHJlZnMucHVzaCh0aGlzLmFwcHJlZik7XG4gICAgKHRoaXMuYXBwcmVmIGFzIGFueSkuX190aWNrID0gdGhpcy5hcHByZWYudGljaztcblxuICAgIC8vIE92ZXJ3cml0ZSB0aGUgdGljayBtZXRob2QgcnVubmluZyBhbGwgYXBwcmVmcyBpbiB0aGVpciB6b25lcy5cbiAgICB0aGlzLmFwcHJlZi50aWNrID0gKCk6IHZvaWQgPT4ge1xuICAgICAgZm9yIChjb25zdCBhciBvZiAodGhpcy50b3BXaW5kb3cgYXMgYW55KS5fX2FwcHJlZnMpIHtcbiAgICAgICAgYXIuX3pvbmUucnVuKCgpID0+IGFyLl9fdGljaygpKTtcbiAgICAgIH1cbiAgICB9O1xuICB9XG5cbiAgcHVibGljIG9uVW5sb2FkKCkge1xuICAgIGlmICh0aGlzLnVubG9hZGVkKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIHRoaXMudW5sb2FkZWQgPSB0cnVlO1xuICAgIGlmICh0aGlzLmlzQ2hpbGRXaW5kb3cpIHtcbiAgICAgIGNvbnN0IGluZGV4ID0gKHRoaXMudG9wV2luZG93IGFzIGFueSkuX19hcHByZWZzLmluZGV4T2YodGhpcy5hcHByZWYpO1xuICAgICAgaWYgKGluZGV4ID49IDApIHtcbiAgICAgICAgKHRoaXMudG9wV2luZG93IGFzIGFueSkuX19hcHByZWZzLnNwbGljZShpbmRleCwgMSk7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= |
@@ -1,14 +0,6 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { __decorate, __metadata, __param } from "tslib"; | ||
import { Component, ViewEncapsulation, Inject } from '@angular/core'; | ||
import { GoldenLayoutComponentHost, GoldenLayoutComponentState, GoldenLayoutContainer } from './tokens'; | ||
import { implementsGlOnResize, implementsGlOnHide, implementsGlOnShow, implementsGlOnTab } from './type-guards'; | ||
export class WrapperComponent { | ||
/** | ||
* @param {?} host | ||
* @param {?} container | ||
* @param {?} state | ||
*/ | ||
let WrapperComponent = class WrapperComponent { | ||
constructor(host, container, state) { | ||
@@ -20,7 +12,4 @@ this.host = host; | ||
this.initialized = false; | ||
this.originalComponent = ((/** @type {?} */ (this.host.getGoldenLayoutInstance())))._getAllComponents()[this.state.originalId]; | ||
this.originalComponent = this.host.getGoldenLayoutInstance()._getAllComponents()[this.state.originalId]; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
get headerComponent() { | ||
@@ -30,11 +19,4 @@ if (!this.originalComponent || !this.originalComponent.instance) { | ||
} | ||
return this.originalComponent.instance.then((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
x => x.instance.headerComponent)); | ||
return this.originalComponent.instance.then(x => x.instance.headerComponent); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
get additionalTokens() { | ||
@@ -44,17 +26,6 @@ if (!this.originalComponent || !this.originalComponent.instance) { | ||
} | ||
return this.originalComponent.instance.then((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
x => x.instance.additionalTokens)); | ||
return this.originalComponent.instance.then(x => x.instance.additionalTokens); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
ngOnInit() { | ||
this.originalComponent.instance.then((/** | ||
* @param {?} componentRef | ||
* @return {?} | ||
*/ | ||
(componentRef) => { | ||
this.originalComponent.instance.then((componentRef) => { | ||
if (this.destroyed || this.initialized) { | ||
@@ -65,13 +36,6 @@ return; | ||
this.initialized = true; | ||
})); | ||
}); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
ngOnDestroy() { | ||
this.originalComponent.instance.then((/** | ||
* @param {?} cr | ||
* @return {?} | ||
*/ | ||
(cr) => { | ||
this.originalComponent.instance.then((cr) => { | ||
if (!this.initialized || this.destroyed) { | ||
@@ -82,12 +46,5 @@ return; | ||
this.destroyed = true; | ||
})); | ||
}); | ||
} | ||
/** | ||
* @private | ||
* @param {?} componentRef | ||
* @param {?} to | ||
* @return {?} | ||
*/ | ||
redock(componentRef, to) { | ||
/** @type {?} */ | ||
const el = $(componentRef.location.nativeElement); | ||
@@ -100,54 +57,25 @@ el.remove(); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
glOnHide() { | ||
this.originalComponent.instance.then((/** | ||
* @param {?} cr | ||
* @return {?} | ||
*/ | ||
(cr) => { | ||
this.originalComponent.instance.then((cr) => { | ||
if (implementsGlOnHide(cr.instance)) { | ||
cr.instance.glOnHide(); | ||
} | ||
})); | ||
}); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
glOnShow() { | ||
this.originalComponent.instance.then((/** | ||
* @param {?} cr | ||
* @return {?} | ||
*/ | ||
(cr) => { | ||
this.originalComponent.instance.then((cr) => { | ||
if (implementsGlOnShow(cr.instance)) { | ||
cr.instance.glOnShow(); | ||
} | ||
})); | ||
}); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
glOnResize() { | ||
this.originalComponent.instance.then((/** | ||
* @param {?} cr | ||
* @return {?} | ||
*/ | ||
(cr) => { | ||
this.originalComponent.instance.then((cr) => { | ||
if (implementsGlOnResize(cr.instance)) { | ||
cr.instance.glOnResize(); | ||
} | ||
})); | ||
}); | ||
} | ||
/** | ||
* @param {?} tab | ||
* @return {?} | ||
*/ | ||
glOnTab(tab) { | ||
this.originalComponent.instance.then((/** | ||
* @param {?} cr | ||
* @return {?} | ||
*/ | ||
(cr) => { | ||
this.originalComponent.instance.then((cr) => { | ||
if (implementsGlOnTab(cr.instance)) { | ||
@@ -157,13 +85,5 @@ debugger; | ||
} | ||
})); | ||
}); | ||
} | ||
} | ||
WrapperComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'gl-wrapper', | ||
encapsulation: ViewEncapsulation.None, | ||
template: `<div class="wrapper"></div>` | ||
}] } | ||
]; | ||
/** @nocollapse */ | ||
}; | ||
WrapperComponent.ctorParameters = () => [ | ||
@@ -174,34 +94,14 @@ { type: undefined, decorators: [{ type: Inject, args: [GoldenLayoutComponentHost,] }] }, | ||
]; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WrapperComponent.prototype.originalComponent; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WrapperComponent.prototype.destroyed; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WrapperComponent.prototype.initialized; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WrapperComponent.prototype.host; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WrapperComponent.prototype.container; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WrapperComponent.prototype.state; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JhcHBlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi93cmFwcGVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLEVBQW1DLE1BQU0sZUFBZSxDQUFDO0FBRXRHLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSwwQkFBMEIsRUFBRSxxQkFBcUIsRUFBRSxNQUFNLFVBQVUsQ0FBQzt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bnN0YW5jZS50aGVuKChjcjogQ29tcG9uZW50UmVmPGFueT4pID0+IHtcbiAgICAgIGlmIChpbXBsZW1lbnRzR2xPblNob3coY3IuaW5zdGFuY2UpKSB7XG4gICAgICAgIGNyLmluc3RhbmNlLmdsT25TaG93KCk7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cbiAgZ2xPblJlc2l6ZSgpIHtcbiAgICB0aGlzLm9yaWdpbmFsQ29tcG9uZW50Lmluc3RhbmNlLnRoZW4oKGNyOiBDb21wb25lbnRSZWY8YW55PikgPT4ge1xuICAgICAgaWYgKGltcGxlbWVudHNHbE9uUmVzaXplKGNyLmluc3RhbmNlKSkge1xuICAgICAgICBjci5pbnN0YW5jZS5nbE9uUmVzaXplKCk7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cbiAgZ2xPblRhYih0YWI6IGFueSkge1xuICAgIHRoaXMub3JpZ2luYWxDb21wb25lbnQuaW5zdGFuY2UudGhlbigoY3I6IENvbXBvbmVudFJlZjxhbnk+KSA9PiB7XG4gICAgICBpZiAoaW1wbGVtZW50c0dsT25UYWIoY3IuaW5zdGFuY2UpKSB7XG4gICAgICAgIGRlYnVnZ2VyO1xuICAgICAgICBjci5pbnN0YW5jZS5nbE9uVGFiKHRoaXMub3JpZ2luYWxDb21wb25lbnQudGFiKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxufVxuIl19 | ||
WrapperComponent = __decorate([ | ||
Component({ | ||
selector: 'gl-wrapper', | ||
encapsulation: ViewEncapsulation.None, | ||
template: `<div class="wrapper"></div>` | ||
}), | ||
__param(0, Inject(GoldenLayoutComponentHost)), | ||
__param(1, Inject(GoldenLayoutContainer)), | ||
__param(2, Inject(GoldenLayoutComponentState)), | ||
__metadata("design:paramtypes", [Object, Object, Object]) | ||
], WrapperComponent); | ||
export { WrapperComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JhcHBlci5jb21wb25lbnQuanMiLCJzb3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Z2xPbkhpZGUoKSB7XG4gICAgdGhpcy5vcmlnaW5hbENvbXBvbmVudC5pbnN0YW5jZS50aGVuKChjcjogQ29tcG9uZW50UmVmPGFueT4pID0+IHtcbiAgICAgIGlmIChpbXBsZW1lbnRzR2xPbkhpZGUoY3IuaW5zdGFuY2UpKSB7XG4gICAgICAgIGNyLmluc3RhbmNlLmdsT25IaWRlKCk7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cbiAgZ2xPblNob3coKSB7XG4gICAgdGhpcy5vcmlnaW5hbENvbXBvbmVudC5pbnN0YW5jZS50aGVuKChjcjogQ29tcG9uZW50UmVmPGFueT4pID0+IHtcbiAgICAgIGlmIChpbXBsZW1lbnRzR2xPblNob3coY3IuaW5zdGFuY2UpKSB7XG4gICAgICAgIGNyLmluc3RhbmNlLmdsT25TaG93KCk7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cbiAgZ2xPblJlc2l6ZSgpIHtcbiAgICB0aGlzLm9yaWdpbmFsQ29tcG9uZW50Lmluc3RhbmNlLnRoZW4oKGNyOiBDb21wb25lbnRSZWY8YW55PikgPT4ge1xuICAgICAgaWYgKGltcGxlbWVudHNHbE9uUmVzaXplKGNyLmluc3RhbmNlKSkge1xuICAgICAgICBjci5pbnN0YW5jZS5nbE9uUmVzaXplKCk7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cbiAgZ2xPblRhYih0YWI6IGFueSkge1xuICAgIHRoaXMub3JpZ2luYWxDb21wb25lbnQuaW5zdGFuY2UudGhlbigoY3I6IENvbXBvbmVudFJlZjxhbnk+KSA9PiB7XG4gICAgICBpZiAoaW1wbGVtZW50c0dsT25UYWIoY3IuaW5zdGFuY2UpKSB7XG4gICAgICAgIGRlYnVnZ2VyO1xuICAgICAgICBjci5pbnN0YW5jZS5nbE9uVGFiKHRoaXMub3JpZ2luYWxDb21wb25lbnQudGFiKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxufVxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export { GoldenLayoutComponents, GoldenLayoutPluginDependency, ComponentRegistryService, GetComponentFromLayoutManager, GoldenLayoutComponent, PluginURLProvider, PluginRegistryService, RootWindowService, forChild, GoldenLayoutModule, MultiWindowInit, MultiWindowService, FallbackComponent, FailedComponent, GoldenLayoutContainer, GoldenLayoutComponentState, GoldenLayoutEventHub, GoldenLayoutComponentHost } from './public-api'; | ||
export * 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWdvbGRlbi1sYXlvdXQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbIm5neC1nb2xkZW4tbGF5b3V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw2WkFBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLHlCQUF5QixJQUFJLEVBQUUsRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBQzFFLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtXaW5kb3dTeW5jaHJvbml6ZXJTZXJ2aWNlIGFzIMm1YX0gZnJvbSAnLi9saWIvd2luZG93LXN5bmMuc2VydmljZSc7XG5leHBvcnQge1dyYXBwZXJDb21wb25lbnQgYXMgybVifSBmcm9tICcuL2xpYi93cmFwcGVyLmNvbXBvbmVudCc7Il19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWdvbGRlbi1sYXlvdXQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbIm5neC1nb2xkZW4tbGF5b3V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLHlCQUF5QixJQUFJLEVBQUUsRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBQzFFLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtXaW5kb3dTeW5jaHJvbml6ZXJTZXJ2aWNlIGFzIMm1YX0gZnJvbSAnLi9saWIvd2luZG93LXN5bmMuc2VydmljZSc7XG5leHBvcnQge1dyYXBwZXJDb21wb25lbnQgYXMgybVifSBmcm9tICcuL2xpYi93cmFwcGVyLmNvbXBvbmVudCc7Il19 |
@@ -1,15 +0,10 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { GoldenLayoutComponents, GoldenLayoutPluginDependency } from './lib/config'; | ||
export { ComponentRegistryService } from './lib/component-registry.service'; | ||
export { GetComponentFromLayoutManager, GoldenLayoutComponent } from './lib/golden-layout.component'; | ||
export { PluginURLProvider, PluginRegistryService } from './lib/plugin-registry.service'; | ||
export { RootWindowService } from './lib/root-window.service'; | ||
export {} from './lib/hooks'; | ||
export { forChild, GoldenLayoutModule } from './lib/module'; | ||
export { MultiWindowInit, MultiWindowService } from './lib/multiwindow-service'; | ||
export { FallbackComponent, FailedComponent } from './lib/fallback'; | ||
export { GoldenLayoutContainer, GoldenLayoutComponentState, GoldenLayoutEventHub, GoldenLayoutComponentHost } from './lib/tokens'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEscUVBQWMsY0FBYyxDQUFDO0FBQzdCLHlDQUFjLGtDQUFrQyxDQUFDO0FBQ2pELHFFQUFjLCtCQUErQixDQUFDO0FBQzlDLHlEQUFjLCtCQUErQixDQUFDO0FBQzlDLGtDQUFjLDJCQUEyQixDQUFDO0FBQzFDLGVBQWMsYUFBYSxDQUFDO0FBQzVCLDZDQUFjLGNBQWMsQ0FBQztBQUM3QixvREFBYywyQkFBMkIsQ0FBQztBQUMxQyxtREFBYyxnQkFBZ0IsQ0FBQztBQUMvQixtSEFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9jb25maWcnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50LXJlZ2lzdHJ5LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZ29sZGVuLWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcGx1Z2luLXJlZ2lzdHJ5LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcm9vdC13aW5kb3cuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9ob29rcyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbXVsdGl3aW5kb3ctc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9mYWxsYmFjayc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90b2tlbnMnO1xuIl19 | ||
export * from './lib/config'; | ||
export * from './lib/component-registry.service'; | ||
export * from './lib/golden-layout.component'; | ||
export * from './lib/plugin-registry.service'; | ||
export * from './lib/root-window.service'; | ||
export * from './lib/module'; | ||
export * from './lib/multiwindow-service'; | ||
export * from './lib/fallback'; | ||
export * from './lib/tokens'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGtDQUFrQyxDQUFDO0FBQ2pELGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLDJCQUEyQixDQUFDO0FBRTFDLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL2NvbmZpZyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnQtcmVnaXN0cnkuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9nb2xkZW4tbGF5b3V0LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9wbHVnaW4tcmVnaXN0cnkuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9yb290LXdpbmRvdy5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2hvb2tzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tdWx0aXdpbmRvdy1zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2ZhbGxiYWNrJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3Rva2Vucyc7XG4iXX0= |
@@ -1,6 +0,2 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import * as tslib_1 from "tslib"; | ||
import { __assign, __decorate, __metadata, __param, __read, __spread } from "tslib"; | ||
import { Inject, Injectable, Optional } from '@angular/core'; | ||
@@ -17,7 +13,3 @@ import { GoldenLayoutComponents } from './config'; | ||
this.awaitedComponents = new Map(); | ||
(initialComponents || []).forEach((/** | ||
* @param {?} c | ||
* @return {?} | ||
*/ | ||
function (c) { return _this.registerComponent(c); })); | ||
(initialComponents || []).forEach(function (c) { return _this.registerComponent(c); }); | ||
this.registerComponent({ | ||
@@ -27,57 +19,19 @@ name: 'gl-wrapper', | ||
}); | ||
this.pluginRegistry.pluginLoaded$.subscribe((/** | ||
* @param {?} __0 | ||
* @return {?} | ||
*/ | ||
function (_a) { | ||
this.pluginRegistry.pluginLoaded$.subscribe(function (_a) { | ||
var id = _a.id, module = _a.module; | ||
/** @type {?} */ | ||
var registeredTokens = module.injector.get(GoldenLayoutComponents, []); | ||
console.log('Plugin', id, 'wants to register', registeredTokens.length, 'components'); | ||
registeredTokens.forEach((/** | ||
* @param {?} c | ||
* @return {?} | ||
*/ | ||
function (c) { return _this.registerComponent(tslib_1.__assign({}, c, { plugin: id })); })); | ||
})); | ||
registeredTokens.forEach(function (c) { return _this.registerComponent(__assign(__assign({}, c), { plugin: id })); }); | ||
}); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
ComponentRegistryService.prototype.registeredComponents = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
return tslib_1.__spread(this.components.entries()).map((/** | ||
* @param {?} e | ||
* @return {?} | ||
*/ | ||
function (e) { return ({ name: e[0], type: e[1] }); })); | ||
ComponentRegistryService.prototype.registeredComponents = function () { | ||
return __spread(this.components.entries()).map(function (e) { return ({ name: e[0], type: e[1] }); }); | ||
}; | ||
// This is only for use by the GoldenLayoutComponent | ||
// This is only for use by the GoldenLayoutComponent | ||
/** | ||
* @return {?} | ||
*/ | ||
ComponentRegistryService.prototype.componentMap = | ||
// This is only for use by the GoldenLayoutComponent | ||
/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
ComponentRegistryService.prototype.componentMap = function () { | ||
return this.components; | ||
}; | ||
/** | ||
* @param {?} component | ||
* @return {?} | ||
*/ | ||
ComponentRegistryService.prototype.registerComponent = /** | ||
* @param {?} component | ||
* @return {?} | ||
*/ | ||
function (component) { | ||
/** @type {?} */ | ||
ComponentRegistryService.prototype.registerComponent = function (component) { | ||
var otherComponent = this.components.get(component.name); | ||
if (!!otherComponent && otherComponent !== component.type) { | ||
/** @type {?} */ | ||
var err = new Error("Failed to register component, " + component.name + " is already taken by another component: " + otherComponent); | ||
@@ -87,3 +41,2 @@ throw err; | ||
this.components.set(component.name, component.type); | ||
/** @type {?} */ | ||
var d = this.awaitedComponents.get(component.name); | ||
@@ -95,12 +48,3 @@ if (d) { | ||
}; | ||
/** | ||
* @param {?} component | ||
* @return {?} | ||
*/ | ||
ComponentRegistryService.prototype.waitForComponent = /** | ||
* @param {?} component | ||
* @return {?} | ||
*/ | ||
function (component) { | ||
/** @type {?} */ | ||
ComponentRegistryService.prototype.waitForComponent = function (component) { | ||
var c = this.components.get(component); | ||
@@ -110,3 +54,2 @@ if (c) { | ||
} | ||
/** @type {?} */ | ||
var d = this.awaitedComponents.get(component); | ||
@@ -119,6 +62,2 @@ if (!d) { | ||
}; | ||
ComponentRegistryService.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
/** @nocollapse */ | ||
ComponentRegistryService.ctorParameters = function () { return [ | ||
@@ -128,22 +67,10 @@ { type: Array, decorators: [{ type: Inject, args: [GoldenLayoutComponents,] }, { type: Optional }] }, | ||
]; }; | ||
ComponentRegistryService = __decorate([ | ||
Injectable(), | ||
__param(0, Inject(GoldenLayoutComponents)), __param(0, Optional()), | ||
__metadata("design:paramtypes", [Array, PluginRegistryService]) | ||
], ComponentRegistryService); | ||
return ComponentRegistryService; | ||
}()); | ||
export { ComponentRegistryService }; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
ComponentRegistryService.prototype.components; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
ComponentRegistryService.prototype.awaitedComponents; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
ComponentRegistryService.prototype.pluginRegistry; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LXJlZ2lzdHJ5LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnQtcmVnaXN0cnkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBUSxNQUFNLGVBQWUsQ0FBQztBQUNuRSxPQUFPLEVBQWlCLHNCQUFzQixFQUFFLE1BQU0sVUFBVSxDQUFDO0FBQ2pFLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDdEMsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUJBQ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biBieSBhbm90aGVyIGNvbXBvbmVudDogJHtvdGhlckNvbXBvbmVudH1gKTtcbiAgICAgIHRocm93IGVycjtcbiAgICB9XG4gICAgdGhpcy5jb21wb25lbnRzLnNldChjb21wb25lbnQubmFtZSwgY29tcG9uZW50LnR5cGUpO1xuICAgIGNvbnN0IGQgPSB0aGlzLmF3YWl0ZWRDb21wb25lbnRzLmdldChjb21wb25lbnQubmFtZSk7XG4gICAgaWYgKGQpIHtcbiAgICAgIHRoaXMuYXdhaXRlZENvbXBvbmVudHMuZGVsZXRlKGNvbXBvbmVudC5uYW1lKTtcbiAgICAgIGQucmVzb2x2ZShjb21wb25lbnQudHlwZSk7XG4gICAgfVxuICB9XG5cbiAgcHVibGljIHdhaXRGb3JDb21wb25lbnQoY29tcG9uZW50OiBzdHJpbmcpOiBQcm9taXNlPFR5cGU8YW55Pj4ge1xuICAgIGNvbnN0IGMgPSB0aGlzLmNvbXBvbmVudHMuZ2V0KGNvbXBvbmVudCk7XG4gICAgaWYgKGMpIHtcbiAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoYyk7XG4gICAgfVxuXG4gICAgbGV0IGQgPSB0aGlzLmF3YWl0ZWRDb21wb25lbnRzLmdldChjb21wb25lbnQpO1xuICAgIGlmICghZCkge1xuICAgICAgZCA9IG5ldyBEZWZlcnJlZDxUeXBlPGFueT4+KCk7XG4gICAgICB0aGlzLmF3YWl0ZWRDb21wb25lbnRzLnNldChjb21wb25lbnQsIGQpO1xuICAgIH1cbiAgICByZXR1cm4gZC5wcm9taXNlO1xuICB9XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LXJlZ2lzdHJ5LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnQtcmVnaXN0cnkuc2VydmljZS50cyJdLCJuYW1lcy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gKCFkKSB7XG4gICAgICBkID0gbmV3IERlZmVycmVkPFR5cGU8YW55Pj4oKTtcbiAgICAgIHRoaXMuYXdhaXRlZENvbXBvbmVudHMuc2V0KGNvbXBvbmVudCwgZCk7XG4gICAgfVxuICAgIHJldHVybiBkLnByb21pc2U7XG4gIH1cbn1cbiJdfQ== |
@@ -1,51 +0,5 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { InjectionToken } from '@angular/core'; | ||
/** | ||
* @record | ||
*/ | ||
export function ComponentType() { } | ||
if (false) { | ||
/** | ||
* Optional string indicating that this component type is handled by the plugin | ||
* specified in this field. | ||
* @type {?|undefined} | ||
*/ | ||
ComponentType.prototype.plugin; | ||
/** | ||
* Name used to register compoent with GoldenLayout. | ||
* Must be unique over all component types | ||
* @type {?} | ||
*/ | ||
ComponentType.prototype.name; | ||
/** | ||
* Angular component type. | ||
* Pass the class of the component to instantiate here. | ||
* @type {?} | ||
*/ | ||
ComponentType.prototype.type; | ||
} | ||
/** | ||
* @record | ||
*/ | ||
export function PluginDependencyType() { } | ||
if (false) { | ||
/** | ||
* Fully qualified module name of the dependency | ||
* @type {?} | ||
*/ | ||
PluginDependencyType.prototype.name; | ||
/** | ||
* Function that loads the dependency | ||
* Might return an object (direct load) OR a promise (deferred loading using import() syntax) | ||
* @type {?} | ||
*/ | ||
PluginDependencyType.prototype.loader; | ||
} | ||
/** | ||
* Inject an array of ComponentType into this token to | ||
* register those by default with the ComponentRegistry | ||
* @type {?} | ||
*/ | ||
@@ -56,24 +10,4 @@ export var GoldenLayoutComponents = new InjectionToken('ComponentTypes'); | ||
* This token can use multi: true | ||
* @type {?} | ||
*/ | ||
export var GoldenLayoutPluginDependency = new InjectionToken('Dependencies'); | ||
/** | ||
* @record | ||
*/ | ||
export function IExtendedGoldenLayoutConfig() { } | ||
if (false) { | ||
/** @type {?} */ | ||
IExtendedGoldenLayoutConfig.prototype.settings; | ||
} | ||
/** | ||
* @record | ||
*/ | ||
export function IExtendedGoldenLayoutContainer() { } | ||
if (false) { | ||
/** | ||
* Unique id for the container | ||
* @type {?} | ||
*/ | ||
IExtendedGoldenLayoutContainer.prototype.id; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWdvbGRlbi1sYXlvdXQvIiwic291cmNlcyI6WyJsaWIvY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFRLE1BQU0sZUFBZSxDQUFDOzs7O0FBR3JELG1DQWlCQzs7Ozs7OztJQVpDLCtCQUFnQjs7Ozs7O0lBS2hCLDZCQUFhOzs7Ozs7SUFNYiw2QkFBZ0I7Ozs7O0FBR2xCLDBDQVVDOzs7Ozs7SUFOQyxvQ0FBYTs7Ozs7O0lBS2Isc0NBQVk7Ozs7Ozs7QUFPZCxNQUFNLEtBQU8sc0JBQXNCLEdBQUcsSUFBSSxjQUFjLENBQWtCLGdCQUFnQixDQUFDOzs7Ozs7QUFNM0YsTUFBTSxLQUFPLDRCQUE0QixHQUFHLElBQUksY0FBYyxDQUF5QixjQUFjLENBQUM7Ozs7QUFFdEcsaURBT0M7OztJQU5DLCtDQUtFOzs7OztBQUdKLG9EQUtDOzs7Ozs7SUFEQyw0Q0FBVyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGlvblRva2VuLCBUeXBlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgKiBhcyBHb2xkZW5MYXlvdXQgZnJvbSAnZ29sZGVuLWxheW91dCc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQ29tcG9uZW50VHlwZSB7XG4gIC8qKlxuICAgKiBPcHRpb25hbCBzdHJpbmcgaW5kaWNh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dGluZ3M6IEdvbGRlbkxheW91dC5Db25maWdbJ3NldHRpbmdzJ10gJiB7XG4gICAgLyoqXG4gICAgICogVXNlIGFsdGVybmF0ZSBtYXhpbWlzZSBtZXRob2QgdGhhdCBtb3ZlcyAqYWxsKiB0YWJzIHRvIHRoZSBzaW5nbGUgcm9vdC5cbiAgICAgKi9cbiAgICBtYXhpbWlzZUFsbEl0ZW1zPzogYm9vbGVhbjtcbiAgfTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBJRXh0ZW5kZWRHb2xkZW5MYXlvdXRDb250YWluZXIgZXh0ZW5kcyBHb2xkZW5MYXlvdXQuQ29udGFpbmVyIHtcbiAgLyoqXG4gICAqIFVuaXF1ZSBpZCBmb3IgdGhlIGNvbnRhaW5lclxuICAgKi9cbiAgaWQ6IHN0cmluZztcbn1cbiJdfQ== |
@@ -1,38 +0,12 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @template T | ||
*/ | ||
var /** | ||
* @template T | ||
*/ | ||
Deferred = /** @class */ (function () { | ||
var Deferred = /** @class */ (function () { | ||
function Deferred() { | ||
var _this = this; | ||
this.promise = new Promise((/** | ||
* @param {?} resolve | ||
* @param {?} reject | ||
* @return {?} | ||
*/ | ||
function (resolve, reject) { | ||
this.promise = new Promise(function (resolve, reject) { | ||
_this.resolve = resolve; | ||
_this.reject = reject; | ||
})); | ||
}); | ||
} | ||
return Deferred; | ||
}()); | ||
/** | ||
* @template T | ||
*/ | ||
export { Deferred }; | ||
if (false) { | ||
/** @type {?} */ | ||
Deferred.prototype.promise; | ||
/** @type {?} */ | ||
Deferred.prototype.resolve; | ||
/** @type {?} */ | ||
Deferred.prototype.reject; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmZXJyZWQuanMiLCJzb3VyY2VSb290Ijoibmc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I6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUlFO1FBQUEsaUJBS0M7UUFKQyxJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksT0FBTyxDQUFJLFVBQUMsT0FBTyxFQUFFLE1BQU07WUFDNUMsS0FBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUM7WUFDdkIsS0FBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7UUFDdkIsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDO0lBQ0gsZUFBQztBQUFELENBQUMsQUFWRCxJQVVDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIERlZmVycmVkPFQ+IHtcbiAgcHVibGljIHByb21pc2U6IFByb21pc2U8VD47XG4gIHB1YmxpYyByZXNvbHZlOiAodmFsOiBUKSA9PiB2b2lkO1xuICBwdWJsaWMgcmVqZWN0OiAocmVhc29uOiBFcnJvciB8IHN0cmluZykgPT4gdm9pZDtcbiAgY29uc3RydWN0b3IoKSB7XG4gICAgdGhpcy5wcm9taXNlID0gbmV3IFByb21pc2U8VD4oKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgdGhpcy5yZXNvbHZlID0gcmVzb2x2ZTtcbiAgICAgIHRoaXMucmVqZWN0ID0gcmVqZWN0O1xuICAgIH0pO1xuICB9XG59XG4iXX0= |
@@ -1,5 +0,1 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { InjectionToken } from '@angular/core'; | ||
@@ -11,3 +7,2 @@ /** | ||
* Errors could be exceptions thrown at construction time or a not-registered component. | ||
* @type {?} | ||
*/ | ||
@@ -18,5 +13,4 @@ export var FallbackComponent = new InjectionToken("fallback component"); | ||
* the name of the component that failed to initialize. | ||
* @type {?} | ||
*/ | ||
export var FailedComponent = new InjectionToken("failed component"); | ||
//# sourceMappingURL=data:application/json;base64,ey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Z2lzdGVyZWQgY29tcG9uZW50LlxuICovXG5leHBvcnQgY29uc3QgRmFsbGJhY2tDb21wb25lbnQgPSBuZXcgSW5qZWN0aW9uVG9rZW48VHlwZTxhbnk+PihcImZhbGxiYWNrIGNvbXBvbmVudFwiKTtcblxuLyoqXG4gKiBUaGlzIHRva2VuIGlzIGluamVjdGVkIGludG8gdGhlIEZhbGxiYWNrQ29tcG9uZW50IHdoZW4gaXQgaXMgaW5zdGFudGlhdGVkIGFuZCBjb250YWluc1xuICogdGhlIG5hbWUgb2YgdGhlIGNvbXBvbmVudCB0aGF0IGZhaWxlZCB0byBpbml0aWFsaXplLlxuICovXG5leHBvcnQgY29uc3QgRmFpbGVkQ29tcG9uZW50ID0gbmV3IEluamVjdGlvblRva2VuPHN0cmluZz4oXCJmYWlsZWQgY29tcG9uZW50XCIpO1xuIl19 |
@@ -1,113 +0,1 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* Hook invoked after a component's container or the document has been resized. | ||
* @record | ||
*/ | ||
export function GlOnResize() { } | ||
if (false) { | ||
/** | ||
* Invoked when the 'resize' event fires on the component's parent GoldenLayout Container. | ||
* @return {?} | ||
*/ | ||
GlOnResize.prototype.glOnResize = function () { }; | ||
} | ||
/** | ||
* Hook invoked before a component's container is shown. | ||
* @record | ||
*/ | ||
export function GlOnShow() { } | ||
if (false) { | ||
/** | ||
* Invoked when the 'show' event fires on the component's parent GoldenLayout Container. | ||
* @return {?} | ||
*/ | ||
GlOnShow.prototype.glOnShow = function () { }; | ||
} | ||
/** | ||
* Hook invoked before a component's container is hidden. | ||
* @record | ||
*/ | ||
export function GlOnHide() { } | ||
if (false) { | ||
/** | ||
* Invoked when the 'hide' event fires on the component's parent GoldenLayout Container. | ||
* @return {?} | ||
*/ | ||
GlOnHide.prototype.glOnHide = function () { }; | ||
} | ||
/** | ||
* Hook invoked after component's container tab is shown | ||
* @record | ||
*/ | ||
export function GlOnTab() { } | ||
if (false) { | ||
/** | ||
* Invoked when the 'tab' event fires on the component's parent GoldenLayout Container. | ||
* @param {?} tab | ||
* @return {?} | ||
*/ | ||
GlOnTab.prototype.glOnTab = function (tab) { }; | ||
} | ||
/** | ||
* Hook invoked when a component is closed. | ||
* @record | ||
*/ | ||
export function GlOnClose() { } | ||
if (false) { | ||
/** | ||
* Invoked when the tab will be closed by the close button or stack close button. | ||
* Resolve the promise to actually close the component, reject to prevent the close operation. | ||
* @return {?} | ||
*/ | ||
GlOnClose.prototype.glOnClose = function () { }; | ||
} | ||
/** | ||
* Hook invoked when a component will be popped in | ||
* @record | ||
*/ | ||
export function GlOnPopin() { } | ||
if (false) { | ||
/** | ||
* Invoked when the component will be popped in. | ||
* @return {?} | ||
*/ | ||
GlOnPopin.prototype.glOnPopin = function () { }; | ||
} | ||
/** | ||
* Hook invoked when a component will be popped out | ||
* @record | ||
*/ | ||
export function GlOnPopout() { } | ||
if (false) { | ||
/** | ||
* Invoked when the tab will be popped out. | ||
* @return {?} | ||
*/ | ||
GlOnPopout.prototype.glOnPopout = function () { }; | ||
} | ||
/** | ||
* Hook invoked when the page is about to being unloaded (either popout window or root window) | ||
* @record | ||
*/ | ||
export function GlOnUnload() { } | ||
if (false) { | ||
/** | ||
* Invoked when the window is unloaded. | ||
* @return {?} | ||
*/ | ||
GlOnUnload.prototype.glOnUnload = function () { }; | ||
} | ||
/** | ||
* @record | ||
*/ | ||
export function GlHeaderItem() { } | ||
if (false) { | ||
/** @type {?} */ | ||
GlHeaderItem.prototype.headerComponent; | ||
/** @type {?|undefined} */ | ||
GlHeaderItem.prototype.additionalTokens; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9va3MuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi9ob29rcy50cy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qb3BpbiB7XG4gIC8qKlxuICAgKiBJbnZva2VkIHdoZW4gdGhlIGNvbXBvbmVudCB3aWxsIGJlIHBvcHBlZCBpbi5cbiAgICovXG4gICBnbE9uUG9waW4oKTogdm9pZDtcbn1cblxuLyoqXG4gKiBIb29rIGludm9rZWQgd2hlbiBhIGNvbXBvbmVudCB3aWxsIGJlIHBvcHBlZCBvdXRcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBHbE9uUG9wb3V0IHtcbiAgLyoqXG4gICAqIEludm9rZWQgd2hlbiB0aGUgdGFiIHdpbGwgYmUgcG9wcGVkIG91dC5cbiAgICovXG4gICBnbE9uUG9wb3V0KCk6IHZvaWQ7XG59XG5cbi8qKlxuICogSG9vayBpbnZva2VkIHdoZW4gdGhlIHBhZ2UgaXMgYWJvdXQgdG8gYmVpbmcgdW5sb2FkZWQgKGVpdGhlciBwb3BvdXQgd2luZG93IG9yIHJvb3Qgd2luZG93KVxuICovXG5leHBvcnQgaW50ZXJmYWNlIEdsT25VbmxvYWQge1xuICAvKipcbiAgICogSW52b2tlZCB3aGVuIHRoZSB3aW5kb3cgaXMgdW5sb2FkZWQuXG4gICAqL1xuICAgZ2xPblVubG9hZCgpOiB2b2lkO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEdsSGVhZGVySXRlbSB7XG4gIGhlYWRlckNvbXBvbmVudDogVHlwZTxhbnk+IHwgUHJvbWlzZTxUeXBlPGFueT4+O1xuICBhZGRpdGlvbmFsVG9rZW5zPzogU3RhdGljUHJvdmlkZXJbXSB8IFByb21pc2U8U3RhdGljUHJvdmlkZXJbXT47XG59XG4iXX0= |
@@ -1,5 +0,2 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { __decorate } from "tslib"; | ||
import { NgModule, APP_INITIALIZER, ANALYZE_FOR_ENTRY_COMPONENTS } from '@angular/core'; | ||
@@ -19,17 +16,6 @@ import { CommonModule } from '@angular/common'; | ||
} | ||
/** | ||
* @param {?} types | ||
* @param {?=} fallback | ||
* @param {?=} pluginDeps | ||
* @return {?} | ||
*/ | ||
GoldenLayoutModule.forRoot = /** | ||
* @param {?} types | ||
* @param {?=} fallback | ||
* @param {?=} pluginDeps | ||
* @return {?} | ||
*/ | ||
function (types, fallback, pluginDeps) { | ||
GoldenLayoutModule_1 = GoldenLayoutModule; | ||
GoldenLayoutModule.forRoot = function (types, fallback, pluginDeps) { | ||
return { | ||
ngModule: GoldenLayoutModule, | ||
ngModule: GoldenLayoutModule_1, | ||
providers: [ | ||
@@ -49,16 +35,13 @@ ComponentRegistryService, | ||
}; | ||
GoldenLayoutModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [GoldenLayoutComponent, WrapperComponent], | ||
exports: [GoldenLayoutComponent], | ||
imports: [CommonModule] | ||
},] } | ||
]; | ||
var GoldenLayoutModule_1; | ||
GoldenLayoutModule = GoldenLayoutModule_1 = __decorate([ | ||
NgModule({ | ||
declarations: [GoldenLayoutComponent, WrapperComponent], | ||
exports: [GoldenLayoutComponent], | ||
imports: [CommonModule] | ||
}) | ||
], GoldenLayoutModule); | ||
return GoldenLayoutModule; | ||
}()); | ||
export { GoldenLayoutModule }; | ||
/** | ||
* @param {?} types | ||
* @return {?} | ||
*/ | ||
export function forChild(types) { | ||
@@ -70,2 +53,2 @@ return [ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWdvbGRlbi1sYXlvdXQvIiwic291cmNlcyI6WyJsaWIvbW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUF1QixlQUFlLEVBQUUsNEJBQTRCLEVBQWtCLE1BQU0sZUFBZSxDQUFDO0FBQzdILE9BQU8sRUFB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gICB7IHByb3ZpZGU6IEFQUF9JTklUSUFMSVpFUiwgdXNlVmFsdWU6IE11bHRpV2luZG93SW5pdCwgbXVsdGk6IHRydWUgfSxcbiAgICAgICAgeyBwcm92aWRlOiBjb25maWcuR29sZGVuTGF5b3V0Q29tcG9uZW50cywgdXNlVmFsdWU6IHR5cGVzLCB9LFxuICAgICAgICB7IHByb3ZpZGU6IEFOQUxZWkVfRk9SX0VOVFJZX0NPTVBPTkVOVFMsIHVzZVZhbHVlOiBbdHlwZXMsIGZhbGxiYWNrLCBXcmFwcGVyQ29tcG9uZW50XSwgbXVsdGk6IHRydWUgfSxcbiAgICAgICAgeyBwcm92aWRlOiBjb25maWcuR29sZGVuTGF5b3V0UGx1Z2luRGVwZW5kZW5jeSwgdXNlVmFsdWU6IHBsdWdpbkRlcHMgfSxcbiAgICAgICAgeyBwcm92aWRlOiBGYWxsYmFja0NvbXBvbmVudCwgdXNlVmFsdWU6IGZhbGxiYWNrIH0sXG4gICAgICBdLFxuICAgIH07XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGZvckNoaWxkKHR5cGVzOiBjb25maWcuQ29tcG9uZW50VHlwZVtdKTogUHJvdmlkZXJbXSB7XG4gIHJldHVybiBbXG4gICAgeyBwcm92aWRlOiBjb25maWcuR29sZGVuTGF5b3V0Q29tcG9uZW50cywgdXNlVmFsdWU6IHR5cGVzIH0sXG4gICAgeyBwcm92aWRlOiBBTkFMWVpFX0ZPUl9FTlRSWV9DT01QT05FTlRTLCB1c2VWYWx1ZTogdHlwZXMsIG11bHRpOiB0cnVlIH0sXG4gIF07XG59XG4iXX0= |
@@ -1,32 +0,16 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import * as tslib_1 from "tslib"; | ||
/** | ||
* @return {?} | ||
*/ | ||
import { __read, __spread } from "tslib"; | ||
export function MultiWindowInit() { | ||
console.log('MultiWindowInit'); | ||
if (!window.opener) { | ||
if (!((/** @type {?} */ (window))).__services && !((/** @type {?} */ (window))).__serviceConstructors) { | ||
((/** @type {?} */ (window))).__services = new ((/** @type {?} */ (window))).Map(); | ||
((/** @type {?} */ (window))).__serviceConstructors = new ((/** @type {?} */ (window))).Map(); | ||
if (!window.__services && !window.__serviceConstructors) { | ||
window.__services = new window.Map(); | ||
window.__serviceConstructors = new window.Map(); | ||
// Electron compatibility, when we have a global 'require' in our window, we throw it into the new window context | ||
if (((/** @type {?} */ (window))).require) { | ||
/** @type {?} */ | ||
if (window.require) { | ||
var originalWindowOpen_1 = window.open.bind(window); | ||
window.open = (/** | ||
* @param {?=} url | ||
* @param {?=} target | ||
* @param {?=} features | ||
* @param {?=} replace | ||
* @return {?} | ||
*/ | ||
function (url, target, features, replace) { | ||
/** @type {?} */ | ||
window.open = function (url, target, features, replace) { | ||
var newWindow = originalWindowOpen_1(url, target, features, replace); | ||
newWindow.require = ((/** @type {?} */ (window))).require; | ||
newWindow.require = window.require; | ||
return newWindow; | ||
}); | ||
}; | ||
} | ||
@@ -36,19 +20,7 @@ } | ||
} | ||
/** | ||
* @template T | ||
* @param {?} uniqueName | ||
* @return {?} | ||
*/ | ||
export function MultiWindowService(uniqueName) { | ||
MultiWindowInit(); | ||
return (/** | ||
* @param {?} constructor | ||
* @return {?} | ||
*/ | ||
function (constructor) { | ||
/** @type {?} */ | ||
var constr = (/** @type {?} */ (constructor)); | ||
/** @type {?} */ | ||
var rootWindow = (/** @type {?} */ ((window.opener || window))); | ||
/** @type {?} */ | ||
return function (constructor) { | ||
var constr = constructor; | ||
var rootWindow = (window.opener || window); | ||
var rootWindowIsMyWindow = rootWindow === window; | ||
@@ -61,8 +33,3 @@ if (rootWindowIsMyWindow) { | ||
} | ||
/** @type {?} */ | ||
var newConstructor = (/** @type {?} */ (((/** | ||
* @param {...?} args | ||
* @return {?} | ||
*/ | ||
function () { | ||
var newConstructor = (function () { | ||
var args = []; | ||
@@ -72,16 +39,13 @@ for (var _i = 0; _i < arguments.length; _i++) { | ||
} | ||
/** @type {?} */ | ||
var hasInstance = rootWindow.__services.has(uniqueName); | ||
if (!hasInstance) { | ||
/** @type {?} */ | ||
var storedConstr = rootWindow.__serviceConstructors.get(uniqueName) || constr; | ||
rootWindow.__services.set(uniqueName, new (storedConstr.bind.apply(storedConstr, tslib_1.__spread([void 0], args)))()); | ||
rootWindow.__services.set(uniqueName, new (storedConstr.bind.apply(storedConstr, __spread([void 0], args)))()); | ||
} | ||
return rootWindow.__services.get(uniqueName); | ||
})))); | ||
}); | ||
try { | ||
if (rootWindowIsMyWindow) { | ||
/** @type {?} */ | ||
var metadata = ((/** @type {?} */ (Reflect))).getMetadata('design:paramtypes', constr); | ||
((/** @type {?} */ (Reflect))).metadata('design:paramtypes', metadata)(newConstructor); | ||
var metadata = Reflect.getMetadata('design:paramtypes', constr); | ||
Reflect.metadata('design:paramtypes', metadata)(newConstructor); | ||
} | ||
@@ -92,5 +56,5 @@ } | ||
} | ||
return (/** @type {?} */ (newConstructor)); | ||
}); | ||
return newConstructor; | ||
}; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGl3aW5kb3ctc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsibGliL211bHRpd2luZG93LXNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQSxNQUFNLFVBQVUsZUFBZTtJQUM3QixPQUFPLENBQUMsR0FBRyxDQUFDLGlCQUFpQixDQUFDLENBQUM7SUFDL0IsSUFBSSxDQUFDLE1BQU0sQ0FBQyxNQUFNLEVBQUU7UUFDbEIsSUFBSSxDQUFDLENBQUMsbUJBQUEsTUFBTSxFQUFPLENBQUMsQ0FBQyxVQUFVLElBQUksQ0FBQyxDQUFDLG1CQUFBLE1BQU0s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gIH1cbiAgICAgIHJvb3RXaW5kb3cuX19zZXJ2aWNlQ29uc3RydWN0b3JzLnNldCh1bmlxdWVOYW1lLCBjb25zdHIpO1xuICAgIH1cbiAgICBjb25zdCBuZXdDb25zdHJ1Y3RvciA9IChmdW5jdGlvbiguLi5hcmdzOiBhbnlbXSk6IFQge1xuICAgICAgY29uc3QgaGFzSW5zdGFuY2UgPSByb290V2luZG93Ll9fc2VydmljZXMuaGFzKHVuaXF1ZU5hbWUpO1xuICAgICAgaWYgKCFoYXNJbnN0YW5jZSkge1xuICAgICAgICBjb25zdCBzdG9yZWRDb25zdHIgPSByb290V2luZG93Ll9fc2VydmljZUNvbnN0cnVjdG9ycy5nZXQodW5pcXVlTmFtZSkgfHwgY29uc3RyO1xuICAgICAgICByb290V2luZG93Ll9fc2VydmljZXMuc2V0KHVuaXF1ZU5hbWUsIG5ldyBzdG9yZWRDb25zdHIoLi4uYXJncykpO1xuICAgICAgfVxuICAgICAgcmV0dXJuIHJvb3RXaW5kb3cuX19zZXJ2aWNlcy5nZXQodW5pcXVlTmFtZSk7XG4gICAgfSkgYXMgYW55O1xuICAgIHRyeSB7XG4gICAgICBpZiAocm9vdFdpbmRvd0lzTXlXaW5kb3cpIHtcbiAgICAgICAgY29uc3QgbWV0YWRhdGEgPSAoUmVmbGVjdCBhcyBhbnkpLmdldE1ldGFkYXRhKCdkZXNpZ246cGFyYW10eXBlcycsIGNvbnN0cik7XG4gICAgICAgIChSZWZsZWN0IGFzIGFueSkubWV0YWRhdGEoJ2Rlc2lnbjpwYXJhbXR5cGVzJywgbWV0YWRhdGEpKG5ld0NvbnN0cnVjdG9yKTtcbiAgICAgIH1cbiAgICB9IGNhdGNoIHtcbiAgICAgIC8vIG9idmlvdXNseSwgd2UncmUgaW4gaXZ5LlxuICAgIH1cbiAgICByZXR1cm4gbmV3Q29uc3RydWN0b3IgYXMgQ29uc3RydWN0b3I8VD47XG4gIH07XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,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ICAgICAgfVxuICAgIH0gY2F0Y2gge1xuICAgICAgLy8gb2J2aW91c2x5LCB3ZSdyZSBpbiBpdnkuXG4gICAgfVxuICAgIHJldHVybiBuZXdDb25zdHJ1Y3RvciBhcyBDb25zdHJ1Y3RvcjxUPjtcbiAgfTtcbn1cbiJdfQ== |
@@ -1,7 +0,3 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable, Inject, Optional, Injector, ɵNgModuleFactory } from '@angular/core'; | ||
import { __decorate, __metadata, __param, __read, __spread } from "tslib"; | ||
import { Injectable, Inject, Optional, Injector, NgModuleRef, ɵNgModuleFactory } from '@angular/core'; | ||
import { GoldenLayoutPluginDependency } from './config'; | ||
@@ -11,29 +7,3 @@ import { Deferred } from './deferred'; | ||
import { MultiWindowService } from './multiwindow-service'; | ||
/** | ||
* @record | ||
*/ | ||
function IPluginState() { } | ||
if (false) { | ||
/** @type {?} */ | ||
IPluginState.prototype.id; | ||
/** @type {?} */ | ||
IPluginState.prototype.url; | ||
/** @type {?} */ | ||
IPluginState.prototype.module; | ||
/** @type {?} */ | ||
IPluginState.prototype.moduleRef; | ||
/** @type {?} */ | ||
IPluginState.prototype.script; | ||
} | ||
; | ||
/** | ||
* @record | ||
*/ | ||
function IPluginURL() { } | ||
if (false) { | ||
/** @type {?} */ | ||
IPluginURL.prototype.id; | ||
/** @type {?} */ | ||
IPluginURL.prototype.url; | ||
} | ||
; | ||
@@ -51,45 +21,12 @@ /** | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
PluginURLProvider.prototype.loadRequests$ = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
PluginURLProvider.prototype.loadRequests$ = function () { | ||
return this.loads; | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
PluginURLProvider.prototype.unloadRequests$ = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
PluginURLProvider.prototype.unloadRequests$ = function () { | ||
return this.unloads; | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
PluginURLProvider.prototype.allPlugins = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
return tslib_1.__spread(this.loadedURLs.entries()).map((/** | ||
* @param {?} p | ||
* @return {?} | ||
*/ | ||
function (p) { return ({ id: p[0], url: p[1] }); })); | ||
PluginURLProvider.prototype.allPlugins = function () { | ||
return __spread(this.loadedURLs.entries()).map(function (p) { return ({ id: p[0], url: p[1] }); }); | ||
}; | ||
/** | ||
* @param {?} id | ||
* @param {?} url | ||
* @return {?} | ||
*/ | ||
PluginURLProvider.prototype.requestLoad = /** | ||
* @param {?} id | ||
* @param {?} url | ||
* @return {?} | ||
*/ | ||
function (id, url) { | ||
/** @type {?} */ | ||
PluginURLProvider.prototype.requestLoad = function (id, url) { | ||
var p = this.loadedURLs.get(id); | ||
@@ -105,12 +42,3 @@ if (p) { | ||
}; | ||
/** | ||
* @param {?} id | ||
* @return {?} | ||
*/ | ||
PluginURLProvider.prototype.requestUnload = /** | ||
* @param {?} id | ||
* @return {?} | ||
*/ | ||
function (id) { | ||
/** @type {?} */ | ||
PluginURLProvider.prototype.requestUnload = function (id) { | ||
var p = this.loadedURLs.get(id); | ||
@@ -123,12 +51,5 @@ if (!p) { | ||
}; | ||
PluginURLProvider.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
/** | ||
* This class manages plugin load and unload requests across all windows. | ||
* Because we can't have progress reporting about all windows, we also don't | ||
* return any progress/success indicator here. | ||
*/ | ||
PluginURLProvider = tslib_1.__decorate([ | ||
MultiWindowService('_gl__PluginURLProvider') | ||
PluginURLProvider = __decorate([ | ||
MultiWindowService('_gl__PluginURLProvider'), | ||
Injectable() | ||
], PluginURLProvider); | ||
@@ -138,19 +59,2 @@ return PluginURLProvider; | ||
export { PluginURLProvider }; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginURLProvider.prototype.loadedURLs; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginURLProvider.prototype.loads; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginURLProvider.prototype.unloads; | ||
} | ||
/** | ||
@@ -173,54 +77,15 @@ * This class automates the loading of bundles built with ng-packagr, | ||
console.log('Creating PluginRegistry, got', deps.length, 'additional dependency modules'); | ||
deps.forEach((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
function (x) { return _this.availableDependencies.set(x.name, x.loader); })); | ||
deps.forEach(function (x) { return _this.availableDependencies.set(x.name, x.loader); }); | ||
this.patchWindow(); | ||
this.urlProvider.loadRequests$().subscribe((/** | ||
* @param {?} p | ||
* @return {?} | ||
*/ | ||
function (p) { return _this.load(p); })); | ||
this.urlProvider.loadRequests$().subscribe(function (p) { return _this.load(p); }); | ||
// Load all previously loaded plugins | ||
this.urlProvider.allPlugins().forEach((/** | ||
* @param {?} p | ||
* @return {?} | ||
*/ | ||
function (p) { return _this.load(p); })); | ||
this.urlProvider.allPlugins().forEach(function (p) { return _this.load(p); }); | ||
} | ||
/** | ||
* @param {?} id | ||
* @param {?} url | ||
* @return {?} | ||
*/ | ||
PluginRegistryService.prototype.startLoadPlugin = /** | ||
* @param {?} id | ||
* @param {?} url | ||
* @return {?} | ||
*/ | ||
function (id, url) { | ||
PluginRegistryService.prototype.startLoadPlugin = function (id, url) { | ||
this.urlProvider.requestLoad(id, url); | ||
}; | ||
/** | ||
* @param {?} id | ||
* @return {?} | ||
*/ | ||
PluginRegistryService.prototype.startUnloadPlugin = /** | ||
* @param {?} id | ||
* @return {?} | ||
*/ | ||
function (id) { | ||
PluginRegistryService.prototype.startUnloadPlugin = function (id) { | ||
this.urlProvider.requestUnload(id); | ||
}; | ||
/** | ||
* @param {?} id | ||
* @return {?} | ||
*/ | ||
PluginRegistryService.prototype.waitForPlugin = /** | ||
* @param {?} id | ||
* @return {?} | ||
*/ | ||
function (id) { | ||
/** @type {?} */ | ||
PluginRegistryService.prototype.waitForPlugin = function (id) { | ||
var p = this.loadedPlugins.get(id); | ||
@@ -230,3 +95,2 @@ if (p) { | ||
} | ||
/** @type {?} */ | ||
var newPlugin = { | ||
@@ -242,20 +106,5 @@ id: id, | ||
}; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
PluginRegistryService.prototype.patchWindow = /** | ||
* @private | ||
* @return {?} | ||
*/ | ||
function () { | ||
PluginRegistryService.prototype.patchWindow = function () { | ||
var _this = this; | ||
((/** @type {?} */ (window))).define = (/** | ||
* @param {?} moduleId | ||
* @param {?} deps | ||
* @param {?} factory | ||
* @return {?} | ||
*/ | ||
function (moduleId, deps, factory) { | ||
/** @type {?} */ | ||
window.define = function (moduleId, deps, factory) { | ||
var x = _this.loadedPlugins.get(moduleId); | ||
@@ -268,9 +117,3 @@ if (!x) { | ||
deps = deps.slice(1); | ||
/** @type {?} */ | ||
var depsExports = deps.map((/** | ||
* @param {?} d | ||
* @return {?} | ||
*/ | ||
function (d) { | ||
/** @type {?} */ | ||
var depsExports = deps.map(function (d) { | ||
var p = _this.availableDependencies.get(d); | ||
@@ -281,23 +124,12 @@ if (!p) { | ||
} | ||
/** @type {?} */ | ||
var promisifiedP = Promise.resolve(p); | ||
return promisifiedP.catch((/** | ||
* @param {?} err | ||
* @return {?} | ||
*/ | ||
function (err) { | ||
return promisifiedP.catch(function (err) { | ||
console.warn('Plugin', moduleId, 'dependency', d, 'but load failed', err); | ||
return undefined; | ||
})); | ||
})); | ||
Promise.all(depsExports).then((/** | ||
* @param {?} deps | ||
* @return {?} | ||
*/ | ||
function (deps) { | ||
/** @type {?} */ | ||
}); | ||
}); | ||
Promise.all(depsExports).then(function (deps) { | ||
var exports = {}; | ||
factory.apply(void 0, tslib_1.__spread([exports], deps)); | ||
factory.apply(void 0, __spread([exports], deps)); | ||
console.log('Plugin', moduleId, 'loaded.'); | ||
/** @type {?} */ | ||
var moduleKlass = exports.MODULE; | ||
@@ -307,32 +139,16 @@ if (!moduleKlass) { | ||
} | ||
/** @type {?} */ | ||
var moduleFactory = new ɵNgModuleFactory(moduleKlass); | ||
x.moduleRef = moduleFactory.create(_this.injector); | ||
x.module.resolve((/** @type {?} */ (exports))); | ||
x.module.resolve(exports); | ||
_this.pluginLoaded$.next({ id: x.id, module: x.moduleRef }); | ||
})).catch((/** | ||
* @param {?} err | ||
* @return {?} | ||
*/ | ||
function (err) { | ||
}).catch(function (err) { | ||
console.warn('Failed to load plugin', moduleId, 'error', err); | ||
x.module.reject(err); | ||
})); | ||
}); | ||
((/** @type {?} */ (window))).define.amd = true; | ||
}); | ||
}; | ||
window.define.amd = true; | ||
console.log('Window AMD shim established.'); | ||
}; | ||
/** | ||
* @private | ||
* @param {?} __0 | ||
* @return {?} | ||
*/ | ||
PluginRegistryService.prototype.load = /** | ||
* @private | ||
* @param {?} __0 | ||
* @return {?} | ||
*/ | ||
function (_a) { | ||
PluginRegistryService.prototype.load = function (_a) { | ||
var id = _a.id, url = _a.url; | ||
/** @type {?} */ | ||
var p = this.loadedPlugins.get(id); | ||
@@ -362,9 +178,4 @@ // plugin is already loaded or in progress. | ||
this.loadedPlugins.set(id, p); | ||
/** @type {?} */ | ||
var script = document.createElement('script'); | ||
script.onerror = (/** | ||
* @param {?} e | ||
* @return {?} | ||
*/ | ||
function (e) { return p.module.reject((/** @type {?} */ (e))); }); | ||
script.onerror = function (e) { return p.module.reject(e); }; | ||
script.type = 'text/javascript'; | ||
@@ -375,19 +186,5 @@ script.src = url; | ||
}; | ||
/** | ||
* @private | ||
* @param {?} id | ||
* @return {?} | ||
*/ | ||
PluginRegistryService.prototype.unload = /** | ||
* @private | ||
* @param {?} id | ||
* @return {?} | ||
*/ | ||
function (id) { | ||
PluginRegistryService.prototype.unload = function (id) { | ||
// TBD | ||
}; | ||
PluginRegistryService.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
/** @nocollapse */ | ||
PluginRegistryService.ctorParameters = function () { return [ | ||
@@ -398,31 +195,11 @@ { type: Array, decorators: [{ type: Inject, args: [GoldenLayoutPluginDependency,] }, { type: Optional }] }, | ||
]; }; | ||
PluginRegistryService = __decorate([ | ||
Injectable(), | ||
__param(0, Inject(GoldenLayoutPluginDependency)), __param(0, Optional()), | ||
__metadata("design:paramtypes", [Array, PluginURLProvider, | ||
Injector]) | ||
], PluginRegistryService); | ||
return PluginRegistryService; | ||
}()); | ||
export { PluginRegistryService }; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginRegistryService.prototype.availableDependencies; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginRegistryService.prototype.loadedPlugins; | ||
/** @type {?} */ | ||
PluginRegistryService.prototype.pluginLoaded$; | ||
/** @type {?} */ | ||
PluginRegistryService.prototype.pluginUnloaded$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginRegistryService.prototype.urlProvider; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
PluginRegistryService.prototype.injector; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2luLXJlZ2lzdHJ5LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi9wbHVnaW4tcmVnaXN0cnkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBRSxRQUFRLEVBQWUsZ0JBQWdCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdEcsT0FBTyxFQUFFLDRCQUE0QixFQUF3QixNQUFNLFVBQVUsQ0FBQztBQUM5RSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQ3RDLE9BQU8sRUFBRSxPQUFPLEVBQWMsTUFBTSxNQUFN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,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { __decorate, __metadata } from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
@@ -9,9 +6,3 @@ var RootWindowService = /** @class */ (function () { | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
RootWindowService.prototype.isChildWindow = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
RootWindowService.prototype.isChildWindow = function () { | ||
try { | ||
@@ -24,19 +15,12 @@ return !!window.opener && !!window.opener.location.href; | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
RootWindowService.prototype.getRootWindow = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
RootWindowService.prototype.getRootWindow = function () { | ||
return this.isChildWindow() ? window.opener : window; | ||
}; | ||
RootWindowService.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
/** @nocollapse */ | ||
RootWindowService.ctorParameters = function () { return []; }; | ||
RootWindowService = __decorate([ | ||
Injectable(), | ||
__metadata("design:paramtypes", []) | ||
], RootWindowService); | ||
return RootWindowService; | ||
}()); | ||
export { RootWindowService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9vdC13aW5kb3cuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsibGliL3Jvb3Qtd2luZG93LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0M7SUFHRTtJQUFlLENBQUM7Ozs7SUFFVCx5Q0FBYTs7O0lBQXBCO1FBQ0UsSUFBSTtZQUNGLE9BQU8sQ0FBQyxDQUFDLE1BQU0sQ0FBQyxNQUFNLElBQUksQ0FBQyxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLElBQU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ByZXR1cm4gdGhpcy5pc0NoaWxkV2luZG93KCkgPyB3aW5kb3cub3BlbmVyIDogd2luZG93O1xuICB9XG59XG4iXX0= |
@@ -1,14 +0,6 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { InjectionToken } from '@angular/core'; | ||
/** @type {?} */ | ||
export var GoldenLayoutContainer = new InjectionToken('GoldenLayoutContainer'); | ||
/** @type {?} */ | ||
export var GoldenLayoutComponentState = new InjectionToken('GoldenLayoutComponentState'); | ||
/** @type {?} */ | ||
export var GoldenLayoutEventHub = new InjectionToken('GoldenLayoutEventHub'); | ||
/** @type {?} */ | ||
export var GoldenLayoutComponentHost = new InjectionToken('GoldenLayoutComponentHost'); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW5zLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWdvbGRlbi1sYXlvdXQvIiwic291cmNlcyI6WyJsaWIvdG9rZW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUUvQyxNQUFNLEtBQU8scUJBQXFCLEdBQUcsSUFBSSxjQUFjLENBQUMsdUJBQXVCLENBQUM7O0FBQ2hGLE1BQU0sS0FBTywwQkFBMEIsR0FBRyxJQUFJLGNBQWMsQ0FBQyw0QkFBNEIsQ0FBQzs7QUFDMUYsTUFBTSxLQUFPLG9CQUFvQixHQUFHLElBQUksY0FBYyxDQUFDLHNCQUFzQixDQUFDOztBQUM5RSxNQUFNLEtBQU8seUJBQXlCLEdBQUcsSUFBSSxjQUFjLENBQUMsMkJBQTJCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3Rpb25Ub2tlbiB9IGZyb20gJ0Bhb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yIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGlvblRva2VuIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBjb25zdCBHb2xkZW5MYXlvdXRDb250YWluZXIgPSBuZXcgSW5qZWN0aW9uVG9rZW4oJ0dvbGRlbkxheW91dENvbnRhaW5lcicpO1xuZXhwb3J0IGNvbnN0IEdvbGRlbkxheW91dENvbXBvbmVudFN0YXRlID0gbmV3IEluamVjdGlvblRva2VuKCdHb2xkZW5MYXlvdXRDb21wb25lbnRTdGF0ZScpO1xuZXhwb3J0IGNvbnN0IEdvbGRlbkxheW91dEV2ZW50SHViID0gbmV3IEluamVjdGlvblRva2VuKCdHb2xkZW5MYXlvdXRFdmVudEh1YicpO1xuZXhwb3J0IGNvbnN0IEdvbGRlbkxheW91dENvbXBvbmVudEhvc3QgPSBuZXcgSW5qZWN0aW9uVG9rZW4oJ0dvbGRlbkxheW91dENvbXBvbmVudEhvc3QnKTtcbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* Type guard which determines if a component implements the GlOnResize interface. | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
@@ -15,4 +9,2 @@ export function implementsGlOnResize(obj) { | ||
* Type guard which determines if a component implements the GlOnShow interface. | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
@@ -24,4 +16,2 @@ export function implementsGlOnShow(obj) { | ||
* Type guard which determines if a component implements the GlOnHide interface. | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
@@ -33,4 +23,2 @@ export function implementsGlOnHide(obj) { | ||
* Type guard which determines if a component implements the GlOnTab interface. | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
@@ -42,4 +30,2 @@ export function implementsGlOnTab(obj) { | ||
* Type guard which determines if a component implements the GlOnClose interface. | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
@@ -49,47 +35,20 @@ export function implementsGlOnClose(obj) { | ||
} | ||
/** | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
export function implementsGlOnPopin(obj) { | ||
return typeof obj === 'object' && typeof obj.glOnPopin === 'function'; | ||
} | ||
/** | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
export function implementsGlOnUnload(obj) { | ||
return typeof obj === 'object' && typeof obj.glOnUnload === 'function'; | ||
} | ||
/** | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
export function implementsGlOnPopout(obj) { | ||
return typeof obj === 'object' && typeof obj.glOnPopout === 'function'; | ||
} | ||
/** | ||
* @param {?} obj | ||
* @return {?} | ||
*/ | ||
export function implementsGlHeaderItem(obj) { | ||
return typeof obj === 'object' && typeof obj.headerComponent === 'function'; | ||
} | ||
/** @type {?} */ | ||
export var uuid = (/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (/** | ||
* @param {?} c | ||
* @return {?} | ||
*/ | ||
function (c) { | ||
/** @type {?} */ | ||
var r = Math.random() * 16 | 0; | ||
/** @type {?} */ | ||
var v = c == 'x' ? r : (r & 0x3 | 0x8); | ||
export var uuid = function () { | ||
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { | ||
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); | ||
return v.toString(16); | ||
})); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZS1ndWFyZHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi90eXBlLWd1YXJkcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFLQSxNQUFNLFV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gICByZXR1cm4gdi50b1N0cmluZygxNik7XG4gIH0pO1xufVxuIl19 |
@@ -1,6 +0,2 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import * as tslib_1 from "tslib"; | ||
import { __decorate, __metadata, __read, __spread, __values } from "tslib"; | ||
import { Injectable, ApplicationRef, Injector } from '@angular/core'; | ||
@@ -19,8 +15,4 @@ import { RootWindowService } from './root-window.service'; | ||
window.document.title = window.document.URL; | ||
((/** @type {?} */ (console))).__log = console.log; | ||
console.log = (/** | ||
* @param {...?} args | ||
* @return {?} | ||
*/ | ||
function () { | ||
console.__log = console.log; | ||
console.log = function () { | ||
var _a; | ||
@@ -31,4 +23,4 @@ var args = []; | ||
} | ||
return (_a = _this.topWindow.console).log.apply(_a, tslib_1.__spread(['[CHILD] =>'], args)); | ||
}); | ||
return (_a = _this.topWindow.console).log.apply(_a, __spread(['[CHILD] =>'], args)); | ||
}; | ||
} | ||
@@ -38,4 +30,3 @@ // Multi-Window compatibility. | ||
// Store them in a global array and also overwrite the injector using the injector from the main window. | ||
/** @type {?} */ | ||
var anyWin = (/** @type {?} */ (this.topWindow)); | ||
var anyWin = this.topWindow; | ||
if (!this.isChildWindow) { | ||
@@ -47,17 +38,11 @@ anyWin.__apprefs = []; | ||
anyWin.__apprefs.push(this.appref); | ||
((/** @type {?} */ (this.appref))).__tick = this.appref.tick; | ||
this.appref.__tick = this.appref.tick; | ||
// Overwrite the tick method running all apprefs in their zones. | ||
this.appref.tick = (/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
this.appref.tick = function () { | ||
var e_1, _a; | ||
var _loop_1 = function (ar) { | ||
ar._zone.run((/** | ||
* @return {?} | ||
*/ | ||
function () { return ar.__tick(); })); | ||
ar._zone.run(function () { return ar.__tick(); }); | ||
}; | ||
try { | ||
for (var _b = tslib_1.__values(((/** @type {?} */ (_this.topWindow))).__apprefs), _c = _b.next(); !_c.done; _c = _b.next()) { | ||
for (var _b = __values(_this.topWindow.__apprefs), _c = _b.next(); !_c.done; _c = _b.next()) { | ||
var ar = _c.value; | ||
@@ -74,11 +59,5 @@ _loop_1(ar); | ||
} | ||
}); | ||
}; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
WindowSynchronizerService.prototype.onUnload = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
WindowSynchronizerService.prototype.onUnload = function () { | ||
if (this.unloaded) { | ||
@@ -89,13 +68,8 @@ return; | ||
if (this.isChildWindow) { | ||
/** @type {?} */ | ||
var index = ((/** @type {?} */ (this.topWindow))).__apprefs.indexOf(this.appref); | ||
var index = this.topWindow.__apprefs.indexOf(this.appref); | ||
if (index >= 0) { | ||
((/** @type {?} */ (this.topWindow))).__apprefs.splice(index, 1); | ||
this.topWindow.__apprefs.splice(index, 1); | ||
} | ||
} | ||
}; | ||
WindowSynchronizerService.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
/** @nocollapse */ | ||
WindowSynchronizerService.ctorParameters = function () { return [ | ||
@@ -106,37 +80,11 @@ { type: ApplicationRef }, | ||
]; }; | ||
WindowSynchronizerService = __decorate([ | ||
Injectable(), | ||
__metadata("design:paramtypes", [ApplicationRef, | ||
RootWindowService, | ||
Injector]) | ||
], WindowSynchronizerService); | ||
return WindowSynchronizerService; | ||
}()); | ||
export { WindowSynchronizerService }; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WindowSynchronizerService.prototype.topWindow; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WindowSynchronizerService.prototype.isChildWindow; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WindowSynchronizerService.prototype.unloaded; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WindowSynchronizerService.prototype.appref; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WindowSynchronizerService.prototype.rootService; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WindowSynchronizerService.prototype.injector; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2luZG93LXN5bmMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsibGliL3dpbmRvdy1zeW5jLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLGNBQWMsRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDckUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFFMUQ7SUFNRSxtQ0FDVSxNQUFzQixFQUN0QixXQUE4QixFQUM5QixRQUFrQjtRQUg1QixpQkFpQ0M7UUFoQ1MsV0FBTSxHQUFOLE1BQU0sQ0FBZ0I7UUFDdEIsZ0JBQVcsR0FBWCxXQUFXLENBQW1CO1FBQzlCLGFBQVEsR0FBUixRQUFRLENBQVU7UUFMcEIsYUFBUSxHQUFHLEtBQUssQ0FBQztRQU92QixJQUFJLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQyxXQUFXLENBQUMsYUFBYSxFQUFFLENBQUM7UUFDbEQsSUFBSSxDQUFDLGFBQWEsR0FBRyxJQUFJLENBQUMsV0FBVyxDQUFDLGFBQWEsRUFBRSxDQUFDO1FBRXRELElBQUksSUFBSSxDQUFDLGFBQWEsRUFBRTtZQUN0QixNQUFNLENBQUMsUUFBUSxDQUFDLEtBQUssR0FBRyxNQUFNLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQztZQUM1QyxDQUFDLG1CQUFBLE9BQU8sRUFBTyxDQUFDLENBQUMsS0FBSyxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUM7WUFDckMsT0FBTyxDQUFDLEdBQUc7Ozs7WUFBRzs7Z0JBQ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O1xuICAgICAgYW55V2luLl9faW5qZWN0b3IgPSB0aGlzLmluamVjdG9yO1xuICAgIH1cblxuICAgIC8vIGF0dGFjaCB0aGUgYXBwbGljYXRpb24gcmVmZXJlbmNlIHRvIHRoZSByb290IHdpbmRvdywgc2F2ZSB0aGUgb3JpZ2luYWwgJ3RpY2snIG1ldGhvZFxuICAgIGFueVdpbi5fX2FwcHJlZnMucHVzaCh0aGlzLmFwcHJlZik7XG4gICAgKHRoaXMuYXBwcmVmIGFzIGFueSkuX190aWNrID0gdGhpcy5hcHByZWYudGljaztcblxuICAgIC8vIE92ZXJ3cml0ZSB0aGUgdGljayBtZXRob2QgcnVubmluZyBhbGwgYXBwcmVmcyBpbiB0aGVpciB6b25lcy5cbiAgICB0aGlzLmFwcHJlZi50aWNrID0gKCk6IHZvaWQgPT4ge1xuICAgICAgZm9yIChjb25zdCBhciBvZiAodGhpcy50b3BXaW5kb3cgYXMgYW55KS5fX2FwcHJlZnMpIHtcbiAgICAgICAgYXIuX3pvbmUucnVuKCgpID0+IGFyLl9fdGljaygpKTtcbiAgICAgIH1cbiAgICB9O1xuICB9XG5cbiAgcHVibGljIG9uVW5sb2FkKCkge1xuICAgIGlmICh0aGlzLnVubG9hZGVkKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIHRoaXMudW5sb2FkZWQgPSB0cnVlO1xuICAgIGlmICh0aGlzLmlzQ2hpbGRXaW5kb3cpIHtcbiAgICAgIGNvbnN0IGluZGV4ID0gKHRoaXMudG9wV2luZG93IGFzIGFueSkuX19hcHByZWZzLmluZGV4T2YodGhpcy5hcHByZWYpO1xuICAgICAgaWYgKGluZGV4ID49IDApIHtcbiAgICAgICAgKHRoaXMudG9wV2luZG93IGFzIGFueSkuX19hcHByZWZzLnNwbGljZShpbmRleCwgMSk7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= |
@@ -1,5 +0,2 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { __decorate, __metadata, __param } from "tslib"; | ||
import { Component, ViewEncapsulation, Inject } from '@angular/core'; | ||
@@ -15,17 +12,10 @@ import { GoldenLayoutComponentHost, GoldenLayoutComponentState, GoldenLayoutContainer } from './tokens'; | ||
this.initialized = false; | ||
this.originalComponent = ((/** @type {?} */ (this.host.getGoldenLayoutInstance())))._getAllComponents()[this.state.originalId]; | ||
this.originalComponent = this.host.getGoldenLayoutInstance()._getAllComponents()[this.state.originalId]; | ||
} | ||
Object.defineProperty(WrapperComponent.prototype, "headerComponent", { | ||
get: /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
get: function () { | ||
if (!this.originalComponent || !this.originalComponent.instance) { | ||
return undefined; | ||
} | ||
return this.originalComponent.instance.then((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
function (x) { return x.instance.headerComponent; })); | ||
return this.originalComponent.instance.then(function (x) { return x.instance.headerComponent; }); | ||
}, | ||
@@ -36,14 +26,7 @@ enumerable: true, | ||
Object.defineProperty(WrapperComponent.prototype, "additionalTokens", { | ||
get: /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
get: function () { | ||
if (!this.originalComponent || !this.originalComponent.instance) { | ||
return undefined; | ||
} | ||
return this.originalComponent.instance.then((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
function (x) { return x.instance.additionalTokens; })); | ||
return this.originalComponent.instance.then(function (x) { return x.instance.additionalTokens; }); | ||
}, | ||
@@ -53,15 +36,5 @@ enumerable: true, | ||
}); | ||
/** | ||
* @return {?} | ||
*/ | ||
WrapperComponent.prototype.ngOnInit = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
WrapperComponent.prototype.ngOnInit = function () { | ||
var _this = this; | ||
this.originalComponent.instance.then((/** | ||
* @param {?} componentRef | ||
* @return {?} | ||
*/ | ||
function (componentRef) { | ||
this.originalComponent.instance.then(function (componentRef) { | ||
if (_this.destroyed || _this.initialized) { | ||
@@ -72,17 +45,7 @@ return; | ||
_this.initialized = true; | ||
})); | ||
}); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
WrapperComponent.prototype.ngOnDestroy = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
WrapperComponent.prototype.ngOnDestroy = function () { | ||
var _this = this; | ||
this.originalComponent.instance.then((/** | ||
* @param {?} cr | ||
* @return {?} | ||
*/ | ||
function (cr) { | ||
this.originalComponent.instance.then(function (cr) { | ||
if (!_this.initialized || _this.destroyed) { | ||
@@ -93,18 +56,5 @@ return; | ||
_this.destroyed = true; | ||
})); | ||
}); | ||
}; | ||
/** | ||
* @private | ||
* @param {?} componentRef | ||
* @param {?} to | ||
* @return {?} | ||
*/ | ||
WrapperComponent.prototype.redock = /** | ||
* @private | ||
* @param {?} componentRef | ||
* @param {?} to | ||
* @return {?} | ||
*/ | ||
function (componentRef, to) { | ||
/** @type {?} */ | ||
WrapperComponent.prototype.redock = function (componentRef, to) { | ||
var el = $(componentRef.location.nativeElement); | ||
@@ -117,68 +67,26 @@ el.remove(); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
WrapperComponent.prototype.glOnHide = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
this.originalComponent.instance.then((/** | ||
* @param {?} cr | ||
* @return {?} | ||
*/ | ||
function (cr) { | ||
WrapperComponent.prototype.glOnHide = function () { | ||
this.originalComponent.instance.then(function (cr) { | ||
if (implementsGlOnHide(cr.instance)) { | ||
cr.instance.glOnHide(); | ||
} | ||
})); | ||
}); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
WrapperComponent.prototype.glOnShow = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
this.originalComponent.instance.then((/** | ||
* @param {?} cr | ||
* @return {?} | ||
*/ | ||
function (cr) { | ||
WrapperComponent.prototype.glOnShow = function () { | ||
this.originalComponent.instance.then(function (cr) { | ||
if (implementsGlOnShow(cr.instance)) { | ||
cr.instance.glOnShow(); | ||
} | ||
})); | ||
}); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
WrapperComponent.prototype.glOnResize = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
this.originalComponent.instance.then((/** | ||
* @param {?} cr | ||
* @return {?} | ||
*/ | ||
function (cr) { | ||
WrapperComponent.prototype.glOnResize = function () { | ||
this.originalComponent.instance.then(function (cr) { | ||
if (implementsGlOnResize(cr.instance)) { | ||
cr.instance.glOnResize(); | ||
} | ||
})); | ||
}); | ||
}; | ||
/** | ||
* @param {?} tab | ||
* @return {?} | ||
*/ | ||
WrapperComponent.prototype.glOnTab = /** | ||
* @param {?} tab | ||
* @return {?} | ||
*/ | ||
function (tab) { | ||
WrapperComponent.prototype.glOnTab = function (tab) { | ||
var _this = this; | ||
this.originalComponent.instance.then((/** | ||
* @param {?} cr | ||
* @return {?} | ||
*/ | ||
function (cr) { | ||
this.originalComponent.instance.then(function (cr) { | ||
if (implementsGlOnTab(cr.instance)) { | ||
@@ -188,12 +96,4 @@ debugger; | ||
} | ||
})); | ||
}); | ||
}; | ||
WrapperComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'gl-wrapper', | ||
encapsulation: ViewEncapsulation.None, | ||
template: "<div class=\"wrapper\"></div>" | ||
}] } | ||
]; | ||
/** @nocollapse */ | ||
WrapperComponent.ctorParameters = function () { return [ | ||
@@ -204,37 +104,16 @@ { type: undefined, decorators: [{ type: Inject, args: [GoldenLayoutComponentHost,] }] }, | ||
]; }; | ||
WrapperComponent = __decorate([ | ||
Component({ | ||
selector: 'gl-wrapper', | ||
encapsulation: ViewEncapsulation.None, | ||
template: "<div class=\"wrapper\"></div>" | ||
}), | ||
__param(0, Inject(GoldenLayoutComponentHost)), | ||
__param(1, Inject(GoldenLayoutContainer)), | ||
__param(2, Inject(GoldenLayoutComponentState)), | ||
__metadata("design:paramtypes", [Object, Object, Object]) | ||
], WrapperComponent); | ||
return WrapperComponent; | ||
}()); | ||
export { WrapperComponent }; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WrapperComponent.prototype.originalComponent; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WrapperComponent.prototype.destroyed; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WrapperComponent.prototype.initialized; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WrapperComponent.prototype.host; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WrapperComponent.prototype.container; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
WrapperComponent.prototype.state; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JhcHBlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbImxpYi93cmFwcGVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLEVBQW1DLE1BQU0sZUFBZSxDQUFDO0FBRXRHLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSwwQkFBMEIsRUFBRSxxQkFBcUIsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUN4RyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsa0JBQWtCLEVBQUUsa0JBQWtCLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFaEg7SUErQkUsMEJBQzZDLElBQVMsRUFDYixTQUFjLEVBQ1QsS0FBVTtRQUZYLFNBQUksR0FBSixJQUFJLENBQUs7UUFDYixjQUFTLEdBQVQsU0FBUyxDQUFLO1FBQ1QsVUFBSyxHQUFMLEtBQUssQ0FBSztRQU5oRCxjQUFTLEdBQUcsS0FBSyxDQUFDO1FBQ2xCLGdCQUFXLEdBQUcsS0FBSyxDQUFDO1F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ICAgIGlmIChpbXBsZW1lbnRzR2xPblNob3coY3IuaW5zdGFuY2UpKSB7XG4gICAgICAgIGNyLmluc3RhbmNlLmdsT25TaG93KCk7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cbiAgZ2xPblJlc2l6ZSgpIHtcbiAgICB0aGlzLm9yaWdpbmFsQ29tcG9uZW50Lmluc3RhbmNlLnRoZW4oKGNyOiBDb21wb25lbnRSZWY8YW55PikgPT4ge1xuICAgICAgaWYgKGltcGxlbWVudHNHbE9uUmVzaXplKGNyLmluc3RhbmNlKSkge1xuICAgICAgICBjci5pbnN0YW5jZS5nbE9uUmVzaXplKCk7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cbiAgZ2xPblRhYih0YWI6IGFueSkge1xuICAgIHRoaXMub3JpZ2luYWxDb21wb25lbnQuaW5zdGFuY2UudGhlbigoY3I6IENvbXBvbmVudFJlZjxhbnk+KSA9PiB7XG4gICAgICBpZiAoaW1wbGVtZW50c0dsT25UYWIoY3IuaW5zdGFuY2UpKSB7XG4gICAgICAgIGRlYnVnZ2VyO1xuICAgICAgICBjci5pbnN0YW5jZS5nbE9uVGFiKHRoaXMub3JpZ2luYWxDb21wb25lbnQudGFiKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxufVxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export { GoldenLayoutComponents, GoldenLayoutPluginDependency, ComponentRegistryService, GetComponentFromLayoutManager, GoldenLayoutComponent, PluginURLProvider, PluginRegistryService, RootWindowService, forChild, GoldenLayoutModule, MultiWindowInit, MultiWindowService, FallbackComponent, FailedComponent, GoldenLayoutContainer, GoldenLayoutComponentState, GoldenLayoutEventHub, GoldenLayoutComponentHost } from './public-api'; | ||
export * 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWdvbGRlbi1sYXlvdXQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbIm5neC1nb2xkZW4tbGF5b3V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw2WkFBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLHlCQUF5QixJQUFJLEVBQUUsRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBQzFFLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtXaW5kb3dTeW5jaHJvbml6ZXJTZXJ2aWNlIGFzIMm1YX0gZnJvbSAnLi9saWIvd2luZG93LXN5bmMuc2VydmljZSc7XG5leHBvcnQge1dyYXBwZXJDb21wb25lbnQgYXMgybVifSBmcm9tICcuL2xpYi93cmFwcGVyLmNvbXBvbmVudCc7Il19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWdvbGRlbi1sYXlvdXQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZ29sZGVuLWxheW91dC8iLCJzb3VyY2VzIjpbIm5neC1nb2xkZW4tbGF5b3V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLHlCQUF5QixJQUFJLEVBQUUsRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBQzFFLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtXaW5kb3dTeW5jaHJvbml6ZXJTZXJ2aWNlIGFzIMm1YX0gZnJvbSAnLi9saWIvd2luZG93LXN5bmMuc2VydmljZSc7XG5leHBvcnQge1dyYXBwZXJDb21wb25lbnQgYXMgybVifSBmcm9tICcuL2xpYi93cmFwcGVyLmNvbXBvbmVudCc7Il19 |
@@ -1,15 +0,10 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { GoldenLayoutComponents, GoldenLayoutPluginDependency } from './lib/config'; | ||
export { ComponentRegistryService } from './lib/component-registry.service'; | ||
export { GetComponentFromLayoutManager, GoldenLayoutComponent } from './lib/golden-layout.component'; | ||
export { PluginURLProvider, PluginRegistryService } from './lib/plugin-registry.service'; | ||
export { RootWindowService } from './lib/root-window.service'; | ||
export {} from './lib/hooks'; | ||
export { forChild, GoldenLayoutModule } from './lib/module'; | ||
export { MultiWindowInit, MultiWindowService } from './lib/multiwindow-service'; | ||
export { FallbackComponent, FailedComponent } from './lib/fallback'; | ||
export { GoldenLayoutContainer, GoldenLayoutComponentState, GoldenLayoutEventHub, GoldenLayoutComponentHost } from './lib/tokens'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEscUVBQWMsY0FBYyxDQUFDO0FBQzdCLHlDQUFjLGtDQUFrQyxDQUFDO0FBQ2pELHFFQUFjLCtCQUErQixDQUFDO0FBQzlDLHlEQUFjLCtCQUErQixDQUFDO0FBQzlDLGtDQUFjLDJCQUEyQixDQUFDO0FBQzFDLGVBQWMsYUFBYSxDQUFDO0FBQzVCLDZDQUFjLGNBQWMsQ0FBQztBQUM3QixvREFBYywyQkFBMkIsQ0FBQztBQUMxQyxtREFBYyxnQkFBZ0IsQ0FBQztBQUMvQixtSEFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9jb25maWcnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50LXJlZ2lzdHJ5LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZ29sZGVuLWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcGx1Z2luLXJlZ2lzdHJ5LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcm9vdC13aW5kb3cuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9ob29rcyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbXVsdGl3aW5kb3ctc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9mYWxsYmFjayc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90b2tlbnMnO1xuIl19 | ||
export * from './lib/config'; | ||
export * from './lib/component-registry.service'; | ||
export * from './lib/golden-layout.component'; | ||
export * from './lib/plugin-registry.service'; | ||
export * from './lib/root-window.service'; | ||
export * from './lib/module'; | ||
export * from './lib/multiwindow-service'; | ||
export * from './lib/fallback'; | ||
export * from './lib/tokens'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1nb2xkZW4tbGF5b3V0LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGtDQUFrQyxDQUFDO0FBQ2pELGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLDJCQUEyQixDQUFDO0FBRTFDLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL2NvbmZpZyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnQtcmVnaXN0cnkuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9nb2xkZW4tbGF5b3V0LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9wbHVnaW4tcmVnaXN0cnkuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9yb290LXdpbmRvdy5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2hvb2tzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tdWx0aXdpbmRvdy1zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2ZhbGxiYWNrJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3Rva2Vucyc7XG4iXX0= |
import { ModuleWithProviders, Type, Provider } from '@angular/core'; | ||
import * as config from './config'; | ||
export declare class GoldenLayoutModule { | ||
static forRoot(types: config.ComponentType[], fallback?: Type<any>, pluginDeps?: config.PluginDependencyType[]): ModuleWithProviders; | ||
static forRoot(types: config.ComponentType[], fallback?: Type<any>, pluginDeps?: config.PluginDependencyType[]): ModuleWithProviders<GoldenLayoutModule>; | ||
} | ||
export declare function forChild(types: config.ComponentType[]): Provider[]; |
import { InjectionToken } from '@angular/core'; | ||
export declare const GoldenLayoutContainer: InjectionToken<{}>; | ||
export declare const GoldenLayoutComponentState: InjectionToken<{}>; | ||
export declare const GoldenLayoutEventHub: InjectionToken<{}>; | ||
export declare const GoldenLayoutComponentHost: InjectionToken<{}>; | ||
export declare const GoldenLayoutContainer: InjectionToken<unknown>; | ||
export declare const GoldenLayoutComponentState: InjectionToken<unknown>; | ||
export declare const GoldenLayoutEventHub: InjectionToken<unknown>; | ||
export declare const GoldenLayoutComponentHost: InjectionToken<unknown>; |
@@ -7,4 +7,4 @@ import { OnInit, OnDestroy } from '@angular/core'; | ||
private state; | ||
readonly headerComponent: any; | ||
readonly additionalTokens: any; | ||
get headerComponent(): any; | ||
get additionalTokens(): any; | ||
private originalComponent; | ||
@@ -11,0 +11,0 @@ private destroyed; |
{ | ||
"name": "ngx-golden-layout", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"license": "BSD-3-Clause", | ||
@@ -14,3 +14,4 @@ "author": { | ||
"jquery": "3.4.1", | ||
"golden-layout": "1.5.9" | ||
"golden-layout": "1.5.9", | ||
"tslib": "^1.10.0" | ||
}, | ||
@@ -26,6 +27,3 @@ "main": "bundles/ngx-golden-layout.umd.js", | ||
"metadata": "ngx-golden-layout.metadata.json", | ||
"sideEffects": false, | ||
"dependencies": { | ||
"tslib": "^1.9.0" | ||
} | ||
"sideEffects": false | ||
} |
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
1159115
8560
- Removedtslib@^1.9.0