Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@crystalui/angular-overlay

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crystalui/angular-overlay - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

18

bundles/crystalui-angular-overlay.umd.js

@@ -148,3 +148,3 @@ (function (global, factory) {

if (!this.elementRef.nativeElement.contains(event.target)) {
if (this.isInitial && this.hostShown) {
if (this.hostShown) {
this.closeOverlay();

@@ -163,3 +163,3 @@ }

function (event) {
if (event.target.tagName != "overlay") {
if (event.target.tagName.toLowerCase() != "overlay") {
return;

@@ -293,3 +293,2 @@ }

function () {
console.log('closeOverlay()');
this.hostOpacity = 0;

@@ -409,3 +408,4 @@ this.hostTransform = 'translateY(' + this.properties.animationTranslateY + ')';

.create(this.injector);
this.componentRefs[properties.id] = componentRef;
//this.componentRefs[properties.id] = componentRef;
this.componentRefs[0] = componentRef;
(( /** @type {?} */(componentRef.instance))).properties = properties;

@@ -523,3 +523,2 @@ this.appRef.attachView(componentRef.hostView);

function (event) {
console.log('event', event);
if (event.type === '[Overlay] Hide') {

@@ -536,7 +535,6 @@ this.handleCloseEvent();

function () {
/** @type {?} */
var id = 'lightbox';
this.appRef.detachView(this.componentRefs[id].hostView);
this.componentRefs[id].destroy();
delete this.componentRefs[id];
//const id = 'popover'; // Note: pass id in event
this.appRef.detachView(this.componentRefs[0].hostView);
this.componentRefs[0].destroy();
delete this.componentRefs[0];
};

@@ -543,0 +541,0 @@ Overlay.decorators = [

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("rxjs"),require("@angular/core")):"function"==typeof define&&define.amd?define("@crystalui/angular-overlay",["exports","@angular/common","rxjs","@angular/core"],e):e((t.crystalui=t.crystalui||{},t.crystalui["angular-overlay"]={}),t.ng.common,t.rxjs,t.ng.core)}(this,function(t,e,o,n){"use strict";var i=function(){function t(){this.emitter=new o.ReplaySubject(1)}return t.prototype.emitChangeEvent=function(t){this.emitter.next(t)},t.decorators=[{type:n.Injectable}],t}(),r=function(){function t(t){this.viewContainerRef=t}return t.decorators=[{type:n.Directive,args:[{selector:"[ad-host]"}]}],t.ctorParameters=function(){return[{type:n.ViewContainerRef}]},t}(),s=function(){function t(t,e,o){var n=this;this.componentFactoryResolver=t,this.elementRef=e,this.eventService=o,this.overlayBackdrop=!0,this.minTimeout=30,this._hostOpacity=0,this.globalEventsSubscription=this.eventService.emitter.subscribe(function(t){n.handleGlobalEvents(t)})}return Object.defineProperty(t.prototype,"hostOpacity",{get:function(){return this.properties.fadeIn?this._hostOpacity:1},set:function(t){this._hostOpacity=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostTransition",{get:function(){var t=this.properties.animationDuration+"ms ",e=this.properties.animationTimingFunction;return"opacity "+t+e+", transform "+t+e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostZIndex",{get:function(){return this.properties.zIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostWidth",{get:function(){return this.properties.wrapperWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostHeight",{get:function(){return this.properties.wrapperHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostPosition",{get:function(){return this.properties.position},enumerable:!0,configurable:!0}),t.prototype.onClick=function(t){this.elementRef.nativeElement.contains(t.target)||this.isInitial&&this.hostShown&&this.closeOverlay()},t.prototype.transitionEnd=function(t){"overlay"==t.target.tagName&&"opacity"==t.propertyName&&(this.hostShown?this.closeOverlayEnd():this.hostShown=!0)},Object.defineProperty(t.prototype,"popoverClass",{get:function(){if(this.properties.metadata)return this.properties.metadata.popoverClass},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.loadComponent(),this.initialOverlay(),setTimeout(function(){t.isInitial=!0},this.minTimeout)},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.showOverlayAnimation()},this.minTimeout)},t.prototype.ngOnDestroy=function(){this.globalEventsSubscription&&this.globalEventsSubscription.unsubscribe()},t.prototype.initialOverlay=function(){this.hostTransform="translateY("+this.properties.animationTranslateY+")"},t.prototype.showOverlayAnimation=function(){this.hostOpacity=1,this.hostTransform="translateY(0px)"},t.prototype.loadComponent=function(){var t=this.properties,e=this.componentFactoryResolver.resolveComponentFactory(t.mainComponent),o=this.adHost.viewContainerRef;o.clear();var n=o.createComponent(e),i=n.location.nativeElement;i.style.width=this.properties.width,i.style.height=this.properties.height,"string"==typeof this.popoverClass&&i.classList.add(this.popoverClass),"object"==typeof this.popoverClass&&this.popoverClass.forEach(function(t){i.classList.add(t)}),n.instance.overlayProperties=this.properties},t.prototype.closeOverlay=function(){console.log("closeOverlay()"),this.hostOpacity=0,this.hostTransform="translateY("+this.properties.animationTranslateY+")"},t.prototype.closeOverlayEnd=function(){this.hostShown=!1,this.eventService.emitChangeEvent({type:"[Overlay] Hide"})},t.prototype.handleGlobalEvents=function(t){"Hide"===t.type&&this.closeOverlay()},t.decorators=[{type:n.Component,args:[{selector:"overlay",template:'\x3c!--\n<div class="overlay-backdrop" \n\t*ngIf="properties.overlayBackdrop" \n\t(click)="onBackdropClick()" \n\t[ngClass]="properties.backdropClass"></div>\n--\x3e\n\x3c!--\n<div class="overlay-container"\n\t[ngStyle]="containerStyles" \n\t[ngClass]="properties.overlayClass">\n\n\t<ng-template ad-host></ng-template>\n</div>\n--\x3e\n\n<ng-template ad-host></ng-template>',styles:[":host{position:absolute;top:0;left:0}:host .overlay-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000;opacity:0;z-index:1000;pointer-events:auto}"]}]}],t.ctorParameters=function(){return[{type:n.ComponentFactoryResolver},{type:n.ElementRef},{type:i}]},t.propDecorators={adHost:[{type:n.ViewChild,args:[r]}],properties:[{type:n.Input}],hostOpacity:[{type:n.HostBinding,args:["style.opacity"]}],hostTransition:[{type:n.HostBinding,args:["style.transition"]}],hostTransform:[{type:n.HostBinding,args:["style.transform"]}],hostZIndex:[{type:n.HostBinding,args:["style.z-index"]}],hostWidth:[{type:n.HostBinding,args:["style.width"]}],hostHeight:[{type:n.HostBinding,args:["style.height"]}],hostPosition:[{type:n.HostBinding,args:["style.position"]}],hostShown:[{type:n.HostBinding,args:["class.overlay-shown"]}],onClick:[{type:n.HostListener,args:["document:click",["$event"]]}],transitionEnd:[{type:n.HostListener,args:["transitionend",["$event"]]}]},t}(),a={animationDuration:100,animationTimingFunction:"ease-in-out",position:"absolute",zIndex:1e3,fadeIn:!0},p=function(){function t(t,e,o,n){var i=this;this.componentFactoryResolver=t,this.appRef=e,this.injector=o,this.eventService=n,this.componentRefs={},this._properties={},this.globalEventsSubscription=this.eventService.emitter.subscribe(function(t){i.handleGlobalEvents(t)})}return t.prototype.appendComponentToBody=function(t,e){if(void 0===e&&(e=s),!this.componentRefs[t.id]){var o=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector);(this.componentRefs[t.id]=o).instance.properties=t,this.appRef.attachView(o.hostView);var n=o.hostView.rootNodes[0];document.body.appendChild(n)}},t.prototype.load=function(t){t=this.applyPropertieDefaults(a,t),this.appendComponentToBody(t)},t.prototype.close=function(t){void 0===t&&(t={})},t.prototype.applyPropertieDefaults=function(t,e){return e||(e={}),e.index||(e.index=0),this._defaultProperties=Object.assign({},t),Object.assign(this._defaultProperties,e)},t.prototype.objectLength=function(t){var e,o=0;for(e in t)t.hasOwnProperty(e)&&o++;return o},t.prototype.handleGlobalEvents=function(t){console.log("event",t),"[Overlay] Hide"===t.type&&this.handleCloseEvent()},t.prototype.handleCloseEvent=function(){var t="lightbox";this.appRef.detachView(this.componentRefs[t].hostView),this.componentRefs[t].destroy(),delete this.componentRefs[t]},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:n.ComponentFactoryResolver},{type:n.ApplicationRef},{type:n.Injector},{type:i}]},t}(),c=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{declarations:[s,r],imports:[e.CommonModule],exports:[],providers:[p,i],bootstrap:[],entryComponents:[s]}]}],t}();t.OverlayModule=c,t.Overlay=p,t.EventService=i,t.ɵb=r,t.ɵa=s,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("rxjs"),require("@angular/core")):"function"==typeof define&&define.amd?define("@crystalui/angular-overlay",["exports","@angular/common","rxjs","@angular/core"],e):e((t.crystalui=t.crystalui||{},t.crystalui["angular-overlay"]={}),t.ng.common,t.rxjs,t.ng.core)}(this,function(t,e,o,n){"use strict";var i=function(){function t(){this.emitter=new o.ReplaySubject(1)}return t.prototype.emitChangeEvent=function(t){this.emitter.next(t)},t.decorators=[{type:n.Injectable}],t}(),r=function(){function t(t){this.viewContainerRef=t}return t.decorators=[{type:n.Directive,args:[{selector:"[ad-host]"}]}],t.ctorParameters=function(){return[{type:n.ViewContainerRef}]},t}(),s=function(){function t(t,e,o){var n=this;this.componentFactoryResolver=t,this.elementRef=e,this.eventService=o,this.overlayBackdrop=!0,this.minTimeout=30,this._hostOpacity=0,this.globalEventsSubscription=this.eventService.emitter.subscribe(function(t){n.handleGlobalEvents(t)})}return Object.defineProperty(t.prototype,"hostOpacity",{get:function(){return this.properties.fadeIn?this._hostOpacity:1},set:function(t){this._hostOpacity=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostTransition",{get:function(){var t=this.properties.animationDuration+"ms ",e=this.properties.animationTimingFunction;return"opacity "+t+e+", transform "+t+e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostZIndex",{get:function(){return this.properties.zIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostWidth",{get:function(){return this.properties.wrapperWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostHeight",{get:function(){return this.properties.wrapperHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostPosition",{get:function(){return this.properties.position},enumerable:!0,configurable:!0}),t.prototype.onClick=function(t){this.elementRef.nativeElement.contains(t.target)||this.hostShown&&this.closeOverlay()},t.prototype.transitionEnd=function(t){"overlay"==t.target.tagName.toLowerCase()&&"opacity"==t.propertyName&&(this.hostShown?this.closeOverlayEnd():this.hostShown=!0)},Object.defineProperty(t.prototype,"popoverClass",{get:function(){if(this.properties.metadata)return this.properties.metadata.popoverClass},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.loadComponent(),this.initialOverlay(),setTimeout(function(){t.isInitial=!0},this.minTimeout)},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.showOverlayAnimation()},this.minTimeout)},t.prototype.ngOnDestroy=function(){this.globalEventsSubscription&&this.globalEventsSubscription.unsubscribe()},t.prototype.initialOverlay=function(){this.hostTransform="translateY("+this.properties.animationTranslateY+")"},t.prototype.showOverlayAnimation=function(){this.hostOpacity=1,this.hostTransform="translateY(0px)"},t.prototype.loadComponent=function(){var t=this.properties,e=this.componentFactoryResolver.resolveComponentFactory(t.mainComponent),o=this.adHost.viewContainerRef;o.clear();var n=o.createComponent(e),i=n.location.nativeElement;i.style.width=this.properties.width,i.style.height=this.properties.height,"string"==typeof this.popoverClass&&i.classList.add(this.popoverClass),"object"==typeof this.popoverClass&&this.popoverClass.forEach(function(t){i.classList.add(t)}),n.instance.overlayProperties=this.properties},t.prototype.closeOverlay=function(){this.hostOpacity=0,this.hostTransform="translateY("+this.properties.animationTranslateY+")"},t.prototype.closeOverlayEnd=function(){this.hostShown=!1,this.eventService.emitChangeEvent({type:"[Overlay] Hide"})},t.prototype.handleGlobalEvents=function(t){"Hide"===t.type&&this.closeOverlay()},t.decorators=[{type:n.Component,args:[{selector:"overlay",template:'\x3c!--\n<div class="overlay-backdrop" \n\t*ngIf="properties.overlayBackdrop" \n\t(click)="onBackdropClick()" \n\t[ngClass]="properties.backdropClass"></div>\n--\x3e\n\x3c!--\n<div class="overlay-container"\n\t[ngStyle]="containerStyles" \n\t[ngClass]="properties.overlayClass">\n\n\t<ng-template ad-host></ng-template>\n</div>\n--\x3e\n\n<ng-template ad-host></ng-template>',styles:[":host{position:absolute;top:0;left:0}:host .overlay-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000;opacity:0;z-index:1000;pointer-events:auto}"]}]}],t.ctorParameters=function(){return[{type:n.ComponentFactoryResolver},{type:n.ElementRef},{type:i}]},t.propDecorators={adHost:[{type:n.ViewChild,args:[r]}],properties:[{type:n.Input}],hostOpacity:[{type:n.HostBinding,args:["style.opacity"]}],hostTransition:[{type:n.HostBinding,args:["style.transition"]}],hostTransform:[{type:n.HostBinding,args:["style.transform"]}],hostZIndex:[{type:n.HostBinding,args:["style.z-index"]}],hostWidth:[{type:n.HostBinding,args:["style.width"]}],hostHeight:[{type:n.HostBinding,args:["style.height"]}],hostPosition:[{type:n.HostBinding,args:["style.position"]}],hostShown:[{type:n.HostBinding,args:["class.overlay-shown"]}],onClick:[{type:n.HostListener,args:["document:click",["$event"]]}],transitionEnd:[{type:n.HostListener,args:["transitionend",["$event"]]}]},t}(),a={animationDuration:100,animationTimingFunction:"ease-in-out",position:"absolute",zIndex:1e3,fadeIn:!0},p=function(){function t(t,e,o,n){var i=this;this.componentFactoryResolver=t,this.appRef=e,this.injector=o,this.eventService=n,this.componentRefs={},this._properties={},this.globalEventsSubscription=this.eventService.emitter.subscribe(function(t){i.handleGlobalEvents(t)})}return t.prototype.appendComponentToBody=function(t,e){if(void 0===e&&(e=s),!this.componentRefs[t.id]){var o=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector);(this.componentRefs[0]=o).instance.properties=t,this.appRef.attachView(o.hostView);var n=o.hostView.rootNodes[0];document.body.appendChild(n)}},t.prototype.load=function(t){t=this.applyPropertieDefaults(a,t),this.appendComponentToBody(t)},t.prototype.close=function(t){void 0===t&&(t={})},t.prototype.applyPropertieDefaults=function(t,e){return e||(e={}),e.index||(e.index=0),this._defaultProperties=Object.assign({},t),Object.assign(this._defaultProperties,e)},t.prototype.objectLength=function(t){var e,o=0;for(e in t)t.hasOwnProperty(e)&&o++;return o},t.prototype.handleGlobalEvents=function(t){"[Overlay] Hide"===t.type&&this.handleCloseEvent()},t.prototype.handleCloseEvent=function(){this.appRef.detachView(this.componentRefs[0].hostView),this.componentRefs[0].destroy(),delete this.componentRefs[0]},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:n.ComponentFactoryResolver},{type:n.ApplicationRef},{type:n.Injector},{type:i}]},t}(),c=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{declarations:[s,r],imports:[e.CommonModule],exports:[],providers:[p,i],bootstrap:[],entryComponents:[s]}]}],t}();t.OverlayModule=c,t.Overlay=p,t.EventService=i,t.ɵb=r,t.ɵa=s,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=crystalui-angular-overlay.umd.min.js.map

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"OverlayModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":8}],"exports":[],"providers":[{"__symbolic":"reference","name":"Overlay"},{"__symbolic":"reference","name":"EventService"}],"bootstrap":[],"entryComponents":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"Overlay":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":14,"character":42},{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":15,"character":24},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":16,"character":26},{"__symbolic":"reference","name":"EventService"}]}],"appendComponentToBody":[{"__symbolic":"method"}],"load":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"applyPropertieDefaults":[{"__symbolic":"method"}],"objectLength":[{"__symbolic":"method"}],"handleGlobalEvents":[{"__symbolic":"method"}],"handleCloseEvent":[{"__symbolic":"method"}]}},"EventService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"emitChangeEvent":[{"__symbolic":"method"}]}},"ContainerProperties":{"__symbolic":"interface"},"OverlayProperties":{"__symbolic":"interface"},"ComponentProperties":{"__symbolic":"interface"},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"overlay","template":"<!--\n<div class=\"overlay-backdrop\" \n\t*ngIf=\"properties.overlayBackdrop\" \n\t(click)=\"onBackdropClick()\" \n\t[ngClass]=\"properties.backdropClass\"></div>\n-->\n<!--\n<div class=\"overlay-container\"\n\t[ngStyle]=\"containerStyles\" \n\t[ngClass]=\"properties.overlayClass\">\n\n\t<ng-template ad-host></ng-template>\n</div>\n-->\n\n<ng-template ad-host></ng-template>","styles":[":host{position:absolute;top:0;left:0}:host .overlay-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000;opacity:0;z-index:1000;pointer-events:auto}"]}]}],"members":{"adHost":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":19,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]}],"properties":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":5}}]}],"hostOpacity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":23,"character":5},"arguments":["style.opacity"]}]}],"hostTransition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":31,"character":5},"arguments":["style.transition"]}]}],"hostTransform":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":38,"character":5},"arguments":["style.transform"]}]}],"hostZIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":39,"character":5},"arguments":["style.z-index"]}]}],"hostWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":44,"character":5},"arguments":["style.width"]}]}],"hostHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":48,"character":5},"arguments":["style.height"]}]}],"hostPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":53,"character":5},"arguments":["style.position"]}]}],"hostShown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":58,"character":5},"arguments":["class.overlay-shown"]}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":60,"character":5},"arguments":["document:click",["$event"]]}]}],"transitionEnd":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":69,"character":5},"arguments":["transitionend",["$event"]]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":95,"character":42},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":96,"character":27},{"__symbolic":"reference","name":"EventService"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"initialOverlay":[{"__symbolic":"method"}],"showOverlayAnimation":[{"__symbolic":"method"}],"loadComponent":[{"__symbolic":"method"}],"closeOverlay":[{"__symbolic":"method"}],"closeOverlayEnd":[{"__symbolic":"method"}],"handleGlobalEvents":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[ad-host]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":6,"character":39}]}]}}},"origins":{"OverlayModule":"./lib/overlay.module","Overlay":"./lib/overlay.service","EventService":"./lib/event.service","ContainerProperties":"./lib/interfaces","OverlayProperties":"./lib/interfaces","ComponentProperties":"./lib/interfaces","ɵa":"./lib/overlay-container.component","ɵb":"./lib/ad.directive"},"importAs":"@crystalui/angular-overlay"}
{"__symbolic":"module","version":4,"metadata":{"OverlayModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":8}],"exports":[],"providers":[{"__symbolic":"reference","name":"Overlay"},{"__symbolic":"reference","name":"EventService"}],"bootstrap":[],"entryComponents":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"Overlay":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":15,"character":42},{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":16,"character":24},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":17,"character":26},{"__symbolic":"reference","name":"EventService"}]}],"appendComponentToBody":[{"__symbolic":"method"}],"load":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"applyPropertieDefaults":[{"__symbolic":"method"}],"objectLength":[{"__symbolic":"method"}],"handleGlobalEvents":[{"__symbolic":"method"}],"handleCloseEvent":[{"__symbolic":"method"}]}},"EventService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"emitChangeEvent":[{"__symbolic":"method"}]}},"ContainerProperties":{"__symbolic":"interface"},"OverlayProperties":{"__symbolic":"interface"},"ComponentProperties":{"__symbolic":"interface"},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"overlay","template":"<!--\n<div class=\"overlay-backdrop\" \n\t*ngIf=\"properties.overlayBackdrop\" \n\t(click)=\"onBackdropClick()\" \n\t[ngClass]=\"properties.backdropClass\"></div>\n-->\n<!--\n<div class=\"overlay-container\"\n\t[ngStyle]=\"containerStyles\" \n\t[ngClass]=\"properties.overlayClass\">\n\n\t<ng-template ad-host></ng-template>\n</div>\n-->\n\n<ng-template ad-host></ng-template>","styles":[":host{position:absolute;top:0;left:0}:host .overlay-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000;opacity:0;z-index:1000;pointer-events:auto}"]}]}],"members":{"adHost":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":19,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]}],"properties":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":5}}]}],"hostOpacity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":23,"character":5},"arguments":["style.opacity"]}]}],"hostTransition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":31,"character":5},"arguments":["style.transition"]}]}],"hostTransform":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":38,"character":5},"arguments":["style.transform"]}]}],"hostZIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":39,"character":5},"arguments":["style.z-index"]}]}],"hostWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":44,"character":5},"arguments":["style.width"]}]}],"hostHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":48,"character":5},"arguments":["style.height"]}]}],"hostPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":53,"character":5},"arguments":["style.position"]}]}],"hostShown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":58,"character":5},"arguments":["class.overlay-shown"]}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":60,"character":5},"arguments":["document:click",["$event"]]}]}],"transitionEnd":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":69,"character":5},"arguments":["transitionend",["$event"]]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":95,"character":42},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":96,"character":27},{"__symbolic":"reference","name":"EventService"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"initialOverlay":[{"__symbolic":"method"}],"showOverlayAnimation":[{"__symbolic":"method"}],"loadComponent":[{"__symbolic":"method"}],"closeOverlay":[{"__symbolic":"method"}],"closeOverlayEnd":[{"__symbolic":"method"}],"handleGlobalEvents":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[ad-host]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":6,"character":39}]}]}}},"origins":{"OverlayModule":"./lib/overlay.module","Overlay":"./lib/overlay.service","EventService":"./lib/event.service","ContainerProperties":"./lib/interfaces","OverlayProperties":"./lib/interfaces","ComponentProperties":"./lib/interfaces","ɵa":"./lib/overlay-container.component","ɵb":"./lib/ad.directive"},"importAs":"@crystalui/angular-overlay"}

@@ -82,3 +82,3 @@ /**

if (!this.elementRef.nativeElement.contains(event.target)) {
if (this.isInitial && this.hostShown) {
if (this.hostShown) {
this.closeOverlay();

@@ -93,3 +93,3 @@ }

transitionEnd(event) {
if (event.target.tagName != "overlay") {
if (event.target.tagName.toLowerCase() != "overlay") {
return;

@@ -200,3 +200,2 @@ }

closeOverlay() {
console.log('closeOverlay()');
this.hostOpacity = 0;

@@ -283,2 +282,2 @@ this.hostTransform = 'translateY(' + this.properties.animationTranslateY + ')';

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS1jb250YWluZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNyeXN0YWx1aS9hbmd1bGFyLW92ZXJsYXkvIiwic291cmNlcyI6WyJsaWIvb3ZlcmxheS1jb250YWluZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxF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udC5jb250YWlucyhldmVudC50YXJnZXQpKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5pc0luaXRpYWwgJiYgdGhpcy5ob3N0U2hvd24pe1xuICAgICAgICAgICAgICAgIHRoaXMuY2xvc2VPdmVybGF5KCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBASG9zdExpc3RlbmVyKCd0cmFuc2l0aW9uZW5kJywgWyckZXZlbnQnXSlcbiAgICB0cmFuc2l0aW9uRW5kKGV2ZW50KSB7XG4gICAgICAgIGlmIChldmVudC50YXJnZXQudGFnTmFtZSAhPSBcIm92ZXJsYXlcIil7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoZXZlbnQucHJvcGVydHlOYW1lICE9IFwib3BhY2l0eVwiKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5ob3N0U2hvd24pIHtcbiAgICAgICAgICAgIHRoaXMuY2xvc2VPdmVybGF5RW5kKCk7XG4gICAgICAgICAgICAvL3RoaXMuc3RhdGVFdmVudHMuZW1pdChcInNob3duXCIpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5ob3N0U2hvd24gPSB0cnVlO1xuICAgICAgICAgICAgLy90aGlzLnN0YXRlRXZlbnRzLmVtaXQoXCJoaWRkZW5cIik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBnZXQgcG9wb3ZlckNsYXNzKCl7XG4gICAgICAgIGlmICh0aGlzLnByb3BlcnRpZXMubWV0YWRhdGEpe1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMucHJvcGVydGllcy5tZXRhZGF0YS5wb3BvdmVyQ2xhc3M7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgcHJpdmF0ZSBjb21wb25lbnRGYWN0b3J5UmVzb2x2ZXI6IENvbXBvbmVudEZhY3Rv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24nKSBcbiAgICBnZXQgaG9zdFBvc2l0aW9uKCl7XG4gICAgICAgIHJldHVybiB0aGlzLnByb3BlcnRpZXMucG9zaXRpb247XG4gICAgfVxuXG4gICAgQEhvc3RCaW5kaW5nKCdjbGFzcy5vdmVybGF5LXNob3duJykgaG9zdFNob3duOiBib29sZWFuO1xuXG4gICAgQEhvc3RMaXN0ZW5lcignZG9jdW1lbnQ6Y2xpY2snLCBbJyRldmVudCddKVxuICAgIG9uQ2xpY2soZXZlbnQpe1xuICAgICAgICBpZiAoIXRoaXMuZWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LmNvbnRhaW5zKGV2ZW50LnRhcmdldCkpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLmhvc3RTaG93bil7XG4gICAgICAgICAgICAgICAgdGhpcy5jbG9zZU92ZXJsYXkoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIEBIb3N0TGlzdGVuZXIoJ3RyYW5zaXRpb25lbmQnLCBbJyRldmVudCddKVxuICAgIHRyYW5zaXRpb25FbmQoZXZlbnQpIHtcbiAgICAgICAgaWYgKGV2ZW50LnRhcmdldC50YWdOYW1lLnRvTG93ZXJDYXNlKCkgIT0gXCJvdmVybGF5XCIpe1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKGV2ZW50LnByb3BlcnR5TmFtZSAhPSBcIm9wYWNpdHlcIikge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHRoaXMuaG9zdFNob3duKSB7XG4gICAgICAgICAgICB0aGlzLmNsb3NlT3ZlcmxheUVuZCgpO1xuICAgICAgICAgICAgLy90aGlzLnN0YXRlRXZlbnRzLmVtaXQoXCJzaG93blwiKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMuaG9zdFNob3duID0gdHJ1ZTtcbiAgICAgICAgICAgIC8vdGhpcy5zdGF0ZUV2ZW50cy5lbWl0KFwiaGlkZGVuXCIpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZ2V0IHBvcG92ZXJDbGFzcygpe1xuICAgICAgICBpZiAodGhpcy5wcm9wZXJ0aWVzLm1ldGFkYXRhKXtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnByb3BlcnRpZXMubWV0YWRhdGEucG9wb3ZlckNsYXNzO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgY29uc3RydWN0b3IoXG4gICAgICAgIHByaXZhdGUgY29tcG9uZW50RmFjdG9yeVJlc29sdmVyOiBDb21wb25lbnRGYWN0b3J5UmVzb2x2ZXIsXG4gICAgICAgIHB1YmxpYyBlbGVtZW50UmVmOiBFbGVtZW50UmVmLFxuICAgICAgICBwcml2YXRlIGV2ZW50U2VydmljZTogRXZlbnRTZXJ2aWNlKSB7XG4gICAgICAgIHRoaXMuZ2xvYmFsRXZlbnRzU3Vic2NyaXB0aW9uID0gdGhpcy5ldmVudFNlcnZpY2UuZW1pdHRlci5zdWJzY3JpYmUoXG4gICAgICAgICAgICAoZXZlbnQpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLmhhbmRsZUdsb2JhbEV2ZW50cyhldmVudCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgbmdPbkluaXQoKSB7XG4gICAgICAgIHRoaXMubG9hZENvbXBvbmVudCgpO1xuICAgICAgICB0aGlzLmluaXRpYWxPdmVybGF5KCk7XG5cbiAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICB0aGlzLmlzSW5pdGlhbCA9IHRydWU7XG4gICAgICAgIH0sIHRoaXMubWluVGltZW91dCk7IC8vIE5vdGU6IG5vdCBnb29kXG4gICAgfVxuXG4gICAgbmdBZnRlclZpZXdJbml0KCkge1xuICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuc2hvd092ZXJsYXlBbmltYXRpb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NsYXRlWSsnKSc7XG4gICAgfVxuXG4gICAgY2xvc2VPdmVybGF5RW5kKCkge1xuICAgICAgICB0aGlzLmhvc3RTaG93biA9IGZhbHNlO1xuICAgICAgICB0aGlzLmV2ZW50U2VydmljZS5lbWl0Q2hhbmdlRXZlbnQoe1xuICAgICAgICAgICAgdHlwZTogJ1tPdmVybGF5XSBIaWRlJ1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBoYW5kbGVHbG9iYWxFdmVudHMoZXZlbnQpe1xuICAgICAgICBpZiAoZXZlbnQudHlwZSA9PT0gJ0hpZGUnKXtcbiAgICAgICAgICAgIHRoaXMuY2xvc2VPdmVybGF5KCk7XG4gICAgICAgIH1cbiAgICB9XG59XG4iXX0=

@@ -44,3 +44,4 @@ /**

.create(this.injector);
this.componentRefs[properties.id] = componentRef;
//this.componentRefs[properties.id] = componentRef;
this.componentRefs[0] = componentRef;
((/** @type {?} */ (componentRef.instance))).properties = properties;

@@ -117,3 +118,2 @@ this.appRef.attachView(componentRef.hostView);

handleGlobalEvents(event) {
console.log('event', event);
if (event.type === '[Overlay] Hide') {

@@ -127,7 +127,6 @@ this.handleCloseEvent();

handleCloseEvent() {
/** @type {?} */
const id = 'lightbox';
this.appRef.detachView(this.componentRefs[id].hostView);
this.componentRefs[id].destroy();
delete this.componentRefs[id];
//const id = 'popover'; // Note: pass id in event
this.appRef.detachView(this.componentRefs[0].hostView);
this.componentRefs[0].destroy();
delete this.componentRefs[0];
}

@@ -176,2 +175,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNyeXN0YWx1aS9hbmd1bGFyLW92ZXJsYXkvIiwic291cmNlcyI6WyJsaWIvb3ZlcmxheS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBV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lvblJlZixcbiAgICAgICAgcHJpdmF0ZSBpbmplY3RvcjogSW5qZWN0b3IsXG4gICAgICAgIHByaXZhdGUgZXZlbnRTZXJ2aWNlOiBFdmVudFNlcnZpY2UpIHtcbiAgICAgICAgdGhpcy5nbG9iYWxFdmVudHNTdWJzY3JpcHRpb24gPSB0aGlzLmV2ZW50U2VydmljZS5lbWl0dGVyLnN1YnNjcmliZShcbiAgICAgICAgICAgIChldmVudCkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMuaGFuZGxlR2xvYmFsRXZlbnRzKGV2ZW50KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICBhcHBlbmRDb21wb25lbnRUb0JvZHkocHJvcGVydGllczogYW55LCBjb21wb25lbnQ6IGFueSA9IE92ZXJsYXlDb250YWluZXJDb21wb25lbnQpOnZvaWQge1xuICAgICAgICBpZiAodGhpcy5jb21wb25lbnRSZWZzW3Byb3BlcnRpZXMuaWRdKXtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IGNvbXBvbmVudFJlZiA9IHRoaXMuY29tcG9uZW50RmFjdG9yeVJlc29sdmVyXG4gICAgICAgICAgICAucmVzb2x2ZUNvbXBvbmVudEZhY3RvcnkoY29tcG9uZW50KVxuICAgICAgICAgICAgLmNyZWF0ZSh0aGlzLmluamVjdG9yKTtcblxuICAgICAgICB0aGlzLmNvbXBvbmVudFJlZnNbcHJvcGVydGllcy5pZF0gPSBjb21wb25lbnRSZWY7XG5cbiAgICAgICAgKDxDb250YWluZXJQcm9wZXJ0aWVzPmNvbXBvbmVudFJlZi5pbnN0YW5jZSkucHJvcGVydGllcyA9IHByb3BlcnRpZXM7XG4gICAgICAgIHRoaXMuYXBwUmVmLmF0dGFjaFZpZXcoY29tcG9uZW50UmVmLmhvc3RWaWV3KTtcbiAgICAgICAgY29uc3QgZG9tRWxlbSA9IChjb21wb25lbnRSZWYuaG9zdFZpZXc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sdHMoZGVmYXVsdFByb3BlcnRpZXMsIHByb3BlcnRpZXMpe1xuICAgICAgICBpZiAoIXByb3BlcnRpZXMpIHtcbiAgICAgICAgICAgIHByb3BlcnRpZXMgPSB7fTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoIXByb3BlcnRpZXMuaW5kZXgpeyBcbiAgICAgICAgICAgIHByb3BlcnRpZXMuaW5kZXggPSAwO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuX2RlZmF1bHRQcm9wZXJ0aWVzID0gT2JqZWN0LmFzc2lnbih7fSwgZGVmYXVsdFByb3BlcnRpZXMpO1xuICAgICAgICByZXR1cm4gT2JqZWN0LmFzc2lnbih0aGlzLl9kZWZhdWx0UHJvcGVydGllcywgcHJvcGVydGllcyk7XG4gICAgfVxuXG4gICAgb2JqZWN0TGVuZ3RoKG9iaik6bnVtYmVyIHtcbiAgICAgICAgbGV0IGxlbmd0aCA9IDAsIGtleTtcbiAgICAgICAgZm9yIChrZXkgaW4gb2JqKSB7XG4gICAgICAgICAgICBpZiAob2JqLmhhc093blByb3BlcnR5KGtleSkpIGxlbmd0aCsrO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBsZW5ndGg7XG4gICAgfTtcblxuICAgIGhhbmRsZUdsb2JhbEV2ZW50cyhldmVudCl7XG4gICAgICAgIGNvbnNvbGUubG9nKCdldmVudCcsIGV2ZW50KTtcbiAgICAgICAgXG4gICAgICAgIGlmIChldmVudC50eXBlID09PSAnW092ZXJsYXldIEhpZGUnKXtcbiAgICAgICAgICAgIHRoaXMuaGFuZGxlQ2xvc2VFdmVudCgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgaGFuZGxlQ2xvc2VFdmVudCgpe1xuICAgICAgICBjb25zdCBpZCA9ICdsaWdodGJveCc7IC8vIE5vdGU6IHBhc3MgaWQgaW4gZXZlbnRcbiAgICAgICAgdGhpcy5hcHBSZWYuZGV0YWNoVmlldyh0aGlzLmNvbXBvbmVudFJlZnNbaWRdLm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1bHRQcm9wZXJ0aWVzLCBwcm9wZXJ0aWVzKTtcbiAgICAgICAgdGhpcy5hcHBlbmRDb21wb25lbnRUb0JvZHkocHJvcGVydGllcyk7XG4gICAgfVxuXG4gICAgcHVibGljIGNsb3NlKHByb3A6IGFueSA9IHt9KTp2b2lkIHtcbiAgICAgICAgLypcbiAgICAgICAgaWYgKHRoaXMuY29tcG9uZW50UmVmc1twcm9wLmlkXSl7XG4gICAgICAgICAgICAoPENvbnRhaW5lclByb3BlcnRpZXM+dGhpcy5jb21wb25lbnRSZWZzW3Byb3AuaWRdLmluc3RhbmNlKS5jbG9zZU92ZXJsYXkoKTtcbiAgICAgICAgfVxuICAgICAgICAqL1xuICAgIH1cblxuICAgIGFwcGx5UHJvcGVydGllRGVmYXVsdHMoZGVmYXVsdFByb3BlcnRpZXMsIHByb3BlcnRpZXMpe1xuICAgICAgICBpZiAoIXByb3BlcnRpZXMpIHtcbiAgICAgICAgICAgIHByb3BlcnRpZXMgPSB7fTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoIXByb3BlcnRpZXMuaW5kZXgpeyBcbiAgICAgICAgICAgIHByb3BlcnRpZXMuaW5kZXggPSAwO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuX2RlZmF1bHRQcm9wZXJ0aWVzID0gT2JqZWN0LmFzc2lnbih7fSwgZGVmYXVsdFByb3BlcnRpZXMpO1xuICAgICAgICByZXR1cm4gT2JqZWN0LmFzc2lnbih0aGlzLl9kZWZhdWx0UHJvcGVydGllcywgcHJvcGVydGllcyk7XG4gICAgfVxuXG4gICAgb2JqZWN0TGVuZ3RoKG9iaik6bnVtYmVyIHtcbiAgICAgICAgbGV0IGxlbmd0aCA9IDAsIGtleTtcbiAgICAgICAgZm9yIChrZXkgaW4gb2JqKSB7XG4gICAgICAgICAgICBpZiAob2JqLmhhc093blByb3BlcnR5KGtleSkpIGxlbmd0aCsrO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBsZW5ndGg7XG4gICAgfTtcblxuICAgIGhhbmRsZUdsb2JhbEV2ZW50cyhldmVudCl7XG4gICAgICAgIGlmIChldmVudC50eXBlID09PSAnW092ZXJsYXldIEhpZGUnKXtcbiAgICAgICAgICAgIHRoaXMuaGFuZGxlQ2xvc2VFdmVudCgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgaGFuZGxlQ2xvc2VFdmVudCgpe1xuICAgICAgICAvL2NvbnN0IGlkID0gJ3BvcG92ZXInOyAvLyBOb3RlOiBwYXNzIGlkIGluIGV2ZW50XG4gICAgICAgIHRoaXMuYXBwUmVmLmRldGFjaFZpZXcodGhpcy5jb21wb25lbnRSZWZzWzBdLmhvc3RWaWV3KTtcbiAgICAgICAgdGhpcy5jb21wb25lbnRSZWZzWzBdLmRlc3Ryb3koKTtcbiAgICAgICAgZGVsZXRlIHRoaXMuY29tcG9uZW50UmVmc1swXTtcbiAgICB9XG59Il19

@@ -106,3 +106,3 @@ /**

if (!this.elementRef.nativeElement.contains(event.target)) {
if (this.isInitial && this.hostShown) {
if (this.hostShown) {
this.closeOverlay();

@@ -121,3 +121,3 @@ }

function (event) {
if (event.target.tagName != "overlay") {
if (event.target.tagName.toLowerCase() != "overlay") {
return;

@@ -255,3 +255,2 @@ }

function () {
console.log('closeOverlay()');
this.hostOpacity = 0;

@@ -347,2 +346,2 @@ this.hostTransform = 'translateY(' + this.properties.animationTranslateY + ')';

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS1jb250YWluZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNyeXN0YWx1aS9hbmd1bGFyLW92ZXJsYXkvIiwic291cmNlcyI6WyJsaWIvb3ZlcmxheS1jb250YWluZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLFdBQVcsRUFBRSxZQUFZLEVBQUUsU0FBUy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blxuICAgIEBIb3N0QmluZGluZygnY2xhc3Mub3ZlcmxheS1zaG93bicpIGhvc3RTaG93bjogYm9vbGVhbjtcblxuICAgIEBIb3N0TGlzdGVuZXIoJ2RvY3VtZW50OmNsaWNrJywgWyckZXZlbnQnXSlcbiAgICBvbkNsaWNrKGV2ZW50KXtcbiAgICAgICAgaWYgKCF0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudC5jb250YWlucyhldmVudC50YXJnZXQpKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5pc0luaXRpYWwgJiYgdGhpcy5ob3N0U2hvd24pe1xuICAgICAgICAgICAgICAgIHRoaXMuY2xvc2VPdmVybGF5KCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBASG9zdExpc3RlbmVyKCd0cmFuc2l0aW9uZW5kJywgWyckZXZlbnQnXSlcbiAgICB0cmFuc2l0aW9uRW5kKGV2ZW50KSB7XG4gICAgICAgIGlmIChldmVudC50YXJnZXQudGFnTmFtZSAhPSBcIm92ZXJsYXlcIil7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoZXZlbnQucHJvcGVydHlOYW1lICE9IFwib3BhY2l0eVwiKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5ob3N0U2hvd24pIHtcbiAgICAgICAgICAgIHRoaXMuY2xvc2VPdmVybGF5RW5kKCk7XG4gICAgICAgICAgICAvL3RoaXMuc3RhdGVFdmVudHMuZW1pdChcInNob3duXCIpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5ob3N0U2hvd24gPSB0cnVlO1xuICAgICAgICAgICAgLy90aGlzLnN0YXRlRXZlbnRzLmVtaXQoXCJoaWRkZW5cIik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBnZXQgcG9wb3ZlckNsYXNzKCl7XG4gICAgICAgIGlmICh0aGlzLn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5mb3JFYWNoKGZ1bmN0aW9uKGNsYXNzTmFtZSkge1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudFJlZkVsZW1lbnQuY2xhc3NMaXN0LmFkZChjbGFzc05hbWUpO1xuICAgICAgICAgICAgfSk7IFxuICAgICAgICB9XG5cbiAgICAgICAgLy8gUGFzcyBwcm9wZXJ0aWVzXG4gICAgICAgICg8Q29tcG9uZW50UHJvcGVydGllcz5jb21wb25lbnRSZWYuaW5zdGFuY2UpLm92ZXJsYXlQcm9wZXJ0aWVzID0gdGhpcy5wcm9wZXJ0aWVzO1xuICAgIH1cblxuICAgIGNsb3NlT3ZlcmxheSgpe1xuICAgICAgICB0aGlzLmhvc3RPcGFjaXR5ID0gMDtcbiAgICAgICAgdGhpcy5ob3N0VHJhbnNmb3JtID0gJ3RyYW5zbGF0ZVkoJyt0aGlzLnByb3BlcnRpZXMuYW5pbWF0aW9uVHJhbnNsYXRlWSsnKSc7XG4gICAgfVxuXG4gICAgY2xvc2VPdmVybGF5RW5kKCkge1xuICAgICAgICB0aGlzLmhvc3RTaG93biA9IGZhbHNlO1xuICAgICAgICB0aGlzLmV2ZW50U2VydmljZS5lbWl0Q2hhbmdlRXZlbnQoe1xuICAgICAgICAgICAgdHlwZTogJ1tPdmVybGF5XSBIaWRlJ1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBoYW5kbGVHbG9iYWxFdmVudHMoZXZlbnQpe1xuICAgICAgICBpZiAoZXZlbnQudHlwZSA9PT0gJ0hpZGUnKXtcbiAgICAgICAgICAgIHRoaXMuY2xvc2VPdmVybGF5KCk7XG4gICAgICAgIH1cbiAgICB9XG59XG4iXX0=

@@ -45,3 +45,4 @@ /**

.create(this.injector);
this.componentRefs[properties.id] = componentRef;
//this.componentRefs[properties.id] = componentRef;
this.componentRefs[0] = componentRef;
((/** @type {?} */ (componentRef.instance))).properties = properties;

@@ -158,3 +159,2 @@ this.appRef.attachView(componentRef.hostView);

function (event) {
console.log('event', event);
if (event.type === '[Overlay] Hide') {

@@ -171,7 +171,6 @@ this.handleCloseEvent();

function () {
/** @type {?} */
var id = 'lightbox';
this.appRef.detachView(this.componentRefs[id].hostView);
this.componentRefs[id].destroy();
delete this.componentRefs[id];
//const id = 'popover'; // Note: pass id in event
this.appRef.detachView(this.componentRefs[0].hostView);
this.componentRefs[0].destroy();
delete this.componentRefs[0];
};

@@ -222,2 +221,2 @@ Overlay.decorators = [

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNyeXN0YWx1aS9hbmd1bGFyLW92ZXJsYXkvIiwic291cmNlcyI6WyJsaWIvb3ZlcmxheS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSx3QkFBd0IsRUFBbUIsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2hILE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUUxRSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUV6RDtJQU9JLGlCQUNZLHdCQUFrRCxFQUNsRCxNQUFzQixFQUN0QixRQUFrQixFQUNsQixZQUEwQjtRQUp0QyxpQkFVQztRQVRXLDZCQUF3QixHQUF4Qix3QkFBd0IsQ0FBMEI7UUFDbEQsV0FBTSxHQUFOLE1BQU0sQ0FBZ0I7UUFDdEIsYUFBUSxHQUFSLFFBQVEsQ0FBVTtRQUNsQixpQkFBWSxHQUFaLFlBQVksQ0FBYztRQVJ0QyxrQkFBYSxHQUFHLEVBQUUsQ0FBQztRQUNuQixnQkFBVyxHQUFRLEVBQUUsQ0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bmRDb21wb25lbnRUb0JvZHkocHJvcGVydGllczogYW55LCBjb21wb25lbnQ6IGFueSA9IE92ZXJsYXlDb250YWluZXJDb21wb25lbnQpOnZvaWQge1xuICAgICAgICBpZiAodGhpcy5jb21wb25lbnRSZWZzW3Byb3BlcnRpZXMuaWRdKXtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IGNvbXBvbmVudFJlZiA9IHRoaXMuY29tcG9uZW50RmFjdG9yeVJlc29sdmVyXG4gICAgICAgICAgICAucmVzb2x2ZUNvbXBvbmVudEZhY3RvcnkoY29tcG9uZW50KVxuICAgICAgICAgICAgLmNyZWF0ZSh0aGlzLmluamVjdG9yKTtcblxuICAgICAgICB0aGlzLmNvbXBvbmVudFJlZnNbcHJvcGVydGllcy5pZF0gPSBjb21wb25lbnRSZWY7XG5cbiAgICAgICAgKDxDb250YWluZXJQcm9wZXJ0aWVzPmNvbXBvbmVudFJlZi5pbnN0YW5jZSkucHJvcGVydGllcyA9IHByb3BlcnRpZXM7XG4gICAgICAgIHRoaXMuYXBwUmVmLmF0dGFjaFZpZXcoY29tcG9uZW50UmVmLmhvc3RWaWV3KTtcbiAgICAgICAgY29uc3QgZG9tRWxlbSA9IChjb21wb25lbnRSZWYuaG9zdFZpZXcgYXMgRW1iZWRkZWRWaWV3UmVmPGFueT4pLnJvb3ROb2Rlc1swXSBhcyBIVE1MRWxlbWVudDtcblxuICAgICAgICAvLyBBZGQgdG8gYm9keVxuICAgICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGRvbUVsZW0pO1xuICAgIH1cblxuICAgIC8qXG4gICAgYXBwZW5kQ29tcG9uZW50VG9UYWcoZWxlbWVudDogYW55LCB0YWduYW1lOiBzdHJpbmcgPSAnJyk6dm9pZCB7XG4gICAgICAgIGlmICh0YWduYW1lKXtcbiAgICAgICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKHRhZ25hbWUpWzBdLmFwcGVuZENoaWxkKGVsZW1lbnQpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZChlbGVtZW50KTtcbiAgICAgICAgfVxuICAgIH1cbiAgICAqL1xuXG4gICAgcHVibGljIGxvYWQocHJvcGVydGllczogT3ZlcmxheVByb3BlcnRpZXMpOnZvaWQge1xuICAgICAgICBwcm9wZXJ0aWVzID0gdGhpcy5hcHBseVByb3BlcnRpZURlZmF1bHRzKGRlZmF1bHRQcm9wZXJ0aWVzLCBwcm9wZXJ0aWVzKTtcbiAgICAgICAgdGhpcy5hcHBlbmRDb21wb25lbnRUb0JvZHkocHJvcGVydGllcyk7XG4gICAgfVxuXG4gICAgcHVibGljIGNsb3NlKHByb3A6IGFueSA9IHt9KTp2b2lkIHtcbiAgICAgICAgLypcbiAgICAgICAgaWYgKHRoaXMuY29tcG9uZW50UmVmc1twcm9wLmlkXSl7XG4gICAgICAgICAgICAoPENvbnRhaW5lclByb3BlcnRpZXM+dGhpcy5jb21wb25lbnRSZWZzW3Byb3AuaWRdLmluc3RhbmNlKS5jbG9zZU92ZXJsYXkoKTtcbiAgICAgICAgfVxuICAgICAgICAqL1xuICAgIH1cblxuICAgIGFwcGx5UHJvcGVydGllRGVmYXVsdHMoZGVmYXVsdFByb3BlcnRpZXMsIHByb3BlcnRpZXMpe1xuICAgICAgICBpZiAoIXByb3BlcnRpZXMpIHtcbiAgICAgICAgICAgIHByb3BlcnRpZXMgPSB7fTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoIXByb3BlcnRpZXMuaW5kZXgpeyBcbiAgICAgICAgICAgIHByb3BlcnRpZXMuaW5kZXggPSAwO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuX2RlZmF1bHRQcm9wZXJ0aWVzID0gT2JqZWN0LmFzc2lnbih7fSwgZGVmYXVsdFByb3BlcnRpZXMpO1xuICAgICAgICByZXR1cm4gT2JqZWN0LmFzc2lnbih0aGlzLl9kZWZhdWx0UHJvcGVydGllcywgcHJvcGVydGllcyk7XG4gICAgfVxuXG4gICAgb2JqZWN0TGVuZ3RoKG9iaik6bnVtYmVyIHtcbiAgICAgICAgbGV0IGxlbmd0aCA9IDAsIGtleTtcbiAgICAgICAgZm9yIChrZXkgaW4gb2JqKSB7XG4gICAgICAgICAgICBpZiAob2JqLmhhc093blByb3BlcnR5KGtleSkpIGxlbmd0aCsrO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBsZW5ndGg7XG4gICAgfTtcblxuICAgIGhhbmRsZUdsb2JhbEV2ZW50cyhldmVudCl7XG4gICAgICAgIGNvbnNvbGUubG9nKCdldmVudCcsIGV2ZW50KTtcbiAgICAgICAgXG4gICAgICAgIGlmIChldmVudC50eXBlID09PSAnW092ZXJsYXldIEhpZGUnKXtcbiAgICAgICAgICAgIHRoaXMuaGFuZGxlQ2xvc2VFdmVudCgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgaGFuZGxlQ2xvc2VFdmVudCgpe1xuICAgICAgICBjb25zdCBpZCA9ICdsaWdodGJveCc7IC8vIE5vdGU6IHBhc3MgaWQgaW4gZXZlbnRcbiAgICAgICAgdGhpcy5hcHBSZWYuZGV0YWNoVmlldyh0aGlzLmNvbXBvbmVudFJlZnNbaWRdLmhvc3RWaWV3KTtcbiAgICAgICAgdGhpcy5jb21wb25lbnRSZWZzW2lkXS5kZXN0cm95KCk7XG4gICAgICAgIGRlbGV0ZSB0aGlzLmNvbXBvbmVudFJlZnNbaWRdO1xuICAgIH1cbn0iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNyeXN0YWx1aS9hbmd1bGFyLW92ZXJsYXkvIiwic291cmNlcyI6WyJsaWIvb3ZlcmxheS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7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2b2lkIHtcbiAgICAgICAgLypcbiAgICAgICAgaWYgKHRoaXMuY29tcG9uZW50UmVmc1twcm9wLmlkXSl7XG4gICAgICAgICAgICAoPENvbnRhaW5lclByb3BlcnRpZXM+dGhpcy5jb21wb25lbnRSZWZzW3Byb3AuaWRdLmluc3RhbmNlKS5jbG9zZU92ZXJsYXkoKTtcbiAgICAgICAgfVxuICAgICAgICAqL1xuICAgIH1cblxuICAgIGFwcGx5UHJvcGVydGllRGVmYXVsdHMoZGVmYXVsdFByb3BlcnRpZXMsIHByb3BlcnRpZXMpe1xuICAgICAgICBpZiAoIXByb3BlcnRpZXMpIHtcbiAgICAgICAgICAgIHByb3BlcnRpZXMgPSB7fTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoIXByb3BlcnRpZXMuaW5kZXgpeyBcbiAgICAgICAgICAgIHByb3BlcnRpZXMuaW5kZXggPSAwO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuX2RlZmF1bHRQcm9wZXJ0aWVzID0gT2JqZWN0LmFzc2lnbih7fSwgZGVmYXVsdFByb3BlcnRpZXMpO1xuICAgICAgICByZXR1cm4gT2JqZWN0LmFzc2lnbih0aGlzLl9kZWZhdWx0UHJvcGVydGllcywgcHJvcGVydGllcyk7XG4gICAgfVxuXG4gICAgb2JqZWN0TGVuZ3RoKG9iaik6bnVtYmVyIHtcbiAgICAgICAgbGV0IGxlbmd0aCA9IDAsIGtleTtcbiAgICAgICAgZm9yIChrZXkgaW4gb2JqKSB7XG4gICAgICAgICAgICBpZiAob2JqLmhhc093blByb3BlcnR5KGtleSkpIGxlbmd0aCsrO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBsZW5ndGg7XG4gICAgfTtcblxuICAgIGhhbmRsZUdsb2JhbEV2ZW50cyhldmVudCl7XG4gICAgICAgIGlmIChldmVudC50eXBlID09PSAnW092ZXJsYXldIEhpZGUnKXtcbiAgICAgICAgICAgIHRoaXMuaGFuZGxlQ2xvc2VFdmVudCgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgaGFuZGxlQ2xvc2VFdmVudCgpe1xuICAgICAgICAvL2NvbnN0IGlkID0gJ3BvcG92ZXInOyAvLyBOb3RlOiBwYXNzIGlkIGluIGV2ZW50XG4gICAgICAgIHRoaXMuYXBwUmVmLmRldGFjaFZpZXcodGhpcy5jb21wb25lbnRSZWZzWzBdLmhvc3RWaWV3KTtcbiAgICAgICAgdGhpcy5jb21wb25lbnRSZWZzWzBdLmRlc3Ryb3koKTtcbiAgICAgICAgZGVsZXRlIHRoaXMuY29tcG9uZW50UmVmc1swXTtcbiAgICB9XG59Il19

@@ -125,3 +125,3 @@ import { CommonModule } from '@angular/common';

if (!this.elementRef.nativeElement.contains(event.target)) {
if (this.isInitial && this.hostShown) {
if (this.hostShown) {
this.closeOverlay();

@@ -136,3 +136,3 @@ }

transitionEnd(event) {
if (event.target.tagName != "overlay") {
if (event.target.tagName.toLowerCase() != "overlay") {
return;

@@ -243,3 +243,2 @@ }

closeOverlay() {
console.log('closeOverlay()');
this.hostOpacity = 0;

@@ -347,3 +346,4 @@ this.hostTransform = 'translateY(' + this.properties.animationTranslateY + ')';

.create(this.injector);
this.componentRefs[properties.id] = componentRef;
//this.componentRefs[properties.id] = componentRef;
this.componentRefs[0] = componentRef;
((/** @type {?} */ (componentRef.instance))).properties = properties;

@@ -420,3 +420,2 @@ this.appRef.attachView(componentRef.hostView);

handleGlobalEvents(event) {
console.log('event', event);
if (event.type === '[Overlay] Hide') {

@@ -430,7 +429,6 @@ this.handleCloseEvent();

handleCloseEvent() {
/** @type {?} */
const id = 'lightbox';
this.appRef.detachView(this.componentRefs[id].hostView);
this.componentRefs[id].destroy();
delete this.componentRefs[id];
//const id = 'popover'; // Note: pass id in event
this.appRef.detachView(this.componentRefs[0].hostView);
this.componentRefs[0].destroy();
delete this.componentRefs[0];
}

@@ -437,0 +435,0 @@ }

@@ -152,3 +152,3 @@ import { CommonModule } from '@angular/common';

if (!this.elementRef.nativeElement.contains(event.target)) {
if (this.isInitial && this.hostShown) {
if (this.hostShown) {
this.closeOverlay();

@@ -167,3 +167,3 @@ }

function (event) {
if (event.target.tagName != "overlay") {
if (event.target.tagName.toLowerCase() != "overlay") {
return;

@@ -301,3 +301,2 @@ }

function () {
console.log('closeOverlay()');
this.hostOpacity = 0;

@@ -414,3 +413,4 @@ this.hostTransform = 'translateY(' + this.properties.animationTranslateY + ')';

.create(this.injector);
this.componentRefs[properties.id] = componentRef;
//this.componentRefs[properties.id] = componentRef;
this.componentRefs[0] = componentRef;
((/** @type {?} */ (componentRef.instance))).properties = properties;

@@ -526,3 +526,2 @@ this.appRef.attachView(componentRef.hostView);

function (event) {
console.log('event', event);
if (event.type === '[Overlay] Hide') {

@@ -539,7 +538,6 @@ this.handleCloseEvent();

function () {
/** @type {?} */
var id = 'lightbox';
this.appRef.detachView(this.componentRefs[id].hostView);
this.componentRefs[id].destroy();
delete this.componentRefs[id];
//const id = 'popover'; // Note: pass id in event
this.appRef.detachView(this.componentRefs[0].hostView);
this.componentRefs[0].destroy();
delete this.componentRefs[0];
};

@@ -546,0 +544,0 @@ Overlay.decorators = [

{
"name": "@crystalui/angular-overlay",
"version": "0.0.2",
"version": "0.0.3",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^7.2.0",

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 not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc