Socket
Socket
Sign inDemoInstall

@rohmer/ng-portal

Package Overview
Dependencies
7
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

1

bundles/rohmer-ng-portal.umd.js

@@ -361,3 +361,2 @@ (function (global, factory) {

PortalService.prototype.detach = function (slot) {
console.log('detach');
var slots = Object.entries(this.slots$.value)

@@ -364,0 +363,0 @@ .filter(function (_a) {

4

bundles/rohmer-ng-portal.umd.min.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/cdk/portal"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@rohmer/ng-portal",["exports","@angular/core","@angular/cdk/portal","rxjs","rxjs/operators"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).rohmer=t.rohmer||{},t.rohmer["ng-portal"]={}),t.ng.core,t.ng.cdk.portal,t.rxjs,t.rxjs.operators)}(this,(function(t,e,o,r,n){"use strict";
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/cdk/portal"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@rohmer/ng-portal",["exports","@angular/core","@angular/cdk/portal","rxjs","rxjs/operators"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).rohmer=t.rohmer||{},t.rohmer["ng-portal"]={}),t.ng.core,t.ng.cdk.portal,t.rxjs,t.rxjs.operators)}(this,(function(t,e,r,o,n){"use strict";
/*! *****************************************************************************

@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation.

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)};function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}Object.create;function a(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return s}Object.create;var p=function(){function t(t,e,o,n,i){this.hostRef=t,this.portalService=e,this.componentFactoryResolver=o,this.injector=n,this.appRef=i,this.destroyed$=new r.Subject,this.portalOutlet=null,this.slot$=new r.ReplaySubject,this.attached=!1}return t.prototype.afterViewInit=function(){var t=this;this.portalOutlet=new o.DomPortalOutlet(this.hostRef.nativeElement,this.componentFactoryResolver,this.appRef,this.injector),this.slot$.pipe(n.distinctUntilChanged(),n.tap((function(){return t.updateContentAttachment(null)})),n.switchMap((function(e){return t.portalService.getSlotListener(e)})),n.takeUntil(this.destroyed$)).subscribe((function(e){return t.updateContentAttachment(e)}),(function(){}),(function(){return t.updateContentAttachment(null)}))},t.prototype.onDestroy=function(){this.destroyed$.next()},t.prototype.updateContentAttachment=function(t){var e,o,r,n;(null===(e=this.portalOutlet)||void 0===e?void 0:e.hasAttached())&&this.portalOutlet.detach(),t&&(null===(o=this.portalOutlet)||void 0===o||o.attach(t)),this.attached=null!==(n=null===(r=this.portalOutlet)||void 0===r?void 0:r.hasAttached())&&void 0!==n&&n},t}(),c=function(){function t(){this.slots$=new r.BehaviorSubject({})}return t.prototype.attach=function(t,e){var o;this.slots$.next(Object.assign(Object.assign({},this.slots$.value),((o={})[t]=e,o)))},t.prototype.detach=function(t){console.log("detach");var e=Object.entries(this.slots$.value).filter((function(e){return a(e,1)[0]!==t})).reduce((function(t,e){var o,r=a(e,2),n=r[0],i=r[1];return(o={})[n]=i,o}),{});this.slots$.next(e)},t.prototype.getSlotListener=function(t){return this.slots$.pipe(n.pluck(t))},t}();c.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new c},token:c,providedIn:"root"}),c.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}];var l=function(t){function e(e,o,r,n,i){return t.call(this,e,o,r,n,i)||this}return s(e,t),Object.defineProperty(e.prototype,"rpPortalHost",{set:function(t){this.slot$.next(t)},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.afterViewInit()},e.prototype.ngOnDestroy=function(){this.onDestroy()},e}(p);l.decorators=[{type:e.Directive,args:[{selector:"[rpPortalHost]",exportAs:"rpPortalHost"}]}],l.ctorParameters=function(){return[{type:e.ElementRef,decorators:[{type:e.Host}]},{type:c},{type:e.ComponentFactoryResolver},{type:e.Injector},{type:e.ApplicationRef}]},l.propDecorators={rpPortalHost:[{type:e.Input}]};var u=function(){function t(t,e,o){this.templateRef=t,this.portalService=e,this.viewContainerRef=o,this.destroyed$=new r.Subject,this.slot$=new r.ReplaySubject}return Object.defineProperty(t.prototype,"rpPortalSlot",{set:function(t){this.slot$.next(t)},enumerable:!1,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this,e=new o.TemplatePortal(this.templateRef,this.viewContainerRef);this.slot$.pipe(n.takeUntil(this.destroyed$),n.startWith(void 0),n.distinctUntilChanged(),n.pairwise()).subscribe((function(o){var r=a(o,2),n=r[0],i=r[1];n&&t.portalService.detach(n),i&&t.portalService.attach(i,e)}))},t.prototype.ngOnDestroy=function(){var t=this;this.slot$.pipe(n.take(1),n.takeUntil(this.destroyed$)).subscribe((function(e){return e&&t.portalService.detach(e)})),this.destroyed$.next()},t}();u.decorators=[{type:e.Directive,args:[{selector:"ng-template[rpPortalSlot]",exportAs:"rpPortalSlot"}]}],u.ctorParameters=function(){return[{type:e.TemplateRef,decorators:[{type:e.Host}]},{type:c},{type:e.ViewContainerRef}]},u.propDecorators={rpPortalSlot:[{type:e.Input}]};var f=function(t){function e(e,o,r,n,i){return t.call(this,e,o,r,n,i)||this}return s(e,t),Object.defineProperty(e.prototype,"slot",{set:function(t){this.slot$.next(t)},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.afterViewInit()},e.prototype.ngOnDestroy=function(){this.onDestroy()},e}(p);f.decorators=[{type:e.Directive,args:[{selector:"rp-portal-host",providers:[{provide:l,useExisting:f}],exportAs:"rpPortalHost"}]}],f.ctorParameters=function(){return[{type:e.ElementRef,decorators:[{type:e.Host}]},{type:c},{type:e.ComponentFactoryResolver},{type:e.Injector},{type:e.ApplicationRef}]},f.propDecorators={slot:[{type:e.Input}]};var h=function(){};h.decorators=[{type:e.NgModule,args:[{declarations:[l,u,f],exports:[l,u,f]}]}],t.PortalHostComponentStyleDirective=f,t.PortalHostDirective=l,t.PortalModule=h,t.PortalSlotDirective=u,t.ɵa=p,t.ɵb=c,Object.defineProperty(t,"__esModule",{value:!0})}));
***************************************************************************** */var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}Object.create;function a(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}Object.create;var p=function(){function t(t,e,r,n,i){this.hostRef=t,this.portalService=e,this.componentFactoryResolver=r,this.injector=n,this.appRef=i,this.destroyed$=new o.Subject,this.portalOutlet=null,this.slot$=new o.ReplaySubject,this.attached=!1}return t.prototype.afterViewInit=function(){var t=this;this.portalOutlet=new r.DomPortalOutlet(this.hostRef.nativeElement,this.componentFactoryResolver,this.appRef,this.injector),this.slot$.pipe(n.distinctUntilChanged(),n.tap((function(){return t.updateContentAttachment(null)})),n.switchMap((function(e){return t.portalService.getSlotListener(e)})),n.takeUntil(this.destroyed$)).subscribe((function(e){return t.updateContentAttachment(e)}),(function(){}),(function(){return t.updateContentAttachment(null)}))},t.prototype.onDestroy=function(){this.destroyed$.next()},t.prototype.updateContentAttachment=function(t){var e,r,o,n;(null===(e=this.portalOutlet)||void 0===e?void 0:e.hasAttached())&&this.portalOutlet.detach(),t&&(null===(r=this.portalOutlet)||void 0===r||r.attach(t)),this.attached=null!==(n=null===(o=this.portalOutlet)||void 0===o?void 0:o.hasAttached())&&void 0!==n&&n},t}(),c=function(){function t(){this.slots$=new o.BehaviorSubject({})}return t.prototype.attach=function(t,e){var r;this.slots$.next(Object.assign(Object.assign({},this.slots$.value),((r={})[t]=e,r)))},t.prototype.detach=function(t){var e=Object.entries(this.slots$.value).filter((function(e){return a(e,1)[0]!==t})).reduce((function(t,e){var r,o=a(e,2),n=o[0],i=o[1];return(r={})[n]=i,r}),{});this.slots$.next(e)},t.prototype.getSlotListener=function(t){return this.slots$.pipe(n.pluck(t))},t}();c.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new c},token:c,providedIn:"root"}),c.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}];var l=function(t){function e(e,r,o,n,i){return t.call(this,e,r,o,n,i)||this}return s(e,t),Object.defineProperty(e.prototype,"rpPortalHost",{set:function(t){this.slot$.next(t)},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.afterViewInit()},e.prototype.ngOnDestroy=function(){this.onDestroy()},e}(p);l.decorators=[{type:e.Directive,args:[{selector:"[rpPortalHost]",exportAs:"rpPortalHost"}]}],l.ctorParameters=function(){return[{type:e.ElementRef,decorators:[{type:e.Host}]},{type:c},{type:e.ComponentFactoryResolver},{type:e.Injector},{type:e.ApplicationRef}]},l.propDecorators={rpPortalHost:[{type:e.Input}]};var u=function(){function t(t,e,r){this.templateRef=t,this.portalService=e,this.viewContainerRef=r,this.destroyed$=new o.Subject,this.slot$=new o.ReplaySubject}return Object.defineProperty(t.prototype,"rpPortalSlot",{set:function(t){this.slot$.next(t)},enumerable:!1,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this,e=new r.TemplatePortal(this.templateRef,this.viewContainerRef);this.slot$.pipe(n.takeUntil(this.destroyed$),n.startWith(void 0),n.distinctUntilChanged(),n.pairwise()).subscribe((function(r){var o=a(r,2),n=o[0],i=o[1];n&&t.portalService.detach(n),i&&t.portalService.attach(i,e)}))},t.prototype.ngOnDestroy=function(){var t=this;this.slot$.pipe(n.take(1),n.takeUntil(this.destroyed$)).subscribe((function(e){return e&&t.portalService.detach(e)})),this.destroyed$.next()},t}();u.decorators=[{type:e.Directive,args:[{selector:"ng-template[rpPortalSlot]",exportAs:"rpPortalSlot"}]}],u.ctorParameters=function(){return[{type:e.TemplateRef,decorators:[{type:e.Host}]},{type:c},{type:e.ViewContainerRef}]},u.propDecorators={rpPortalSlot:[{type:e.Input}]};var f=function(t){function e(e,r,o,n,i){return t.call(this,e,r,o,n,i)||this}return s(e,t),Object.defineProperty(e.prototype,"slot",{set:function(t){this.slot$.next(t)},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.afterViewInit()},e.prototype.ngOnDestroy=function(){this.onDestroy()},e}(p);f.decorators=[{type:e.Directive,args:[{selector:"rp-portal-host",providers:[{provide:l,useExisting:f}],exportAs:"rpPortalHost"}]}],f.ctorParameters=function(){return[{type:e.ElementRef,decorators:[{type:e.Host}]},{type:c},{type:e.ComponentFactoryResolver},{type:e.Injector},{type:e.ApplicationRef}]},f.propDecorators={slot:[{type:e.Input}]};var h=function(){};h.decorators=[{type:e.NgModule,args:[{declarations:[l,u,f],exports:[l,u,f]}]}],t.PortalHostComponentStyleDirective=f,t.PortalHostDirective=l,t.PortalModule=h,t.PortalSlotDirective=u,t.ɵa=p,t.ɵb=c,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=rohmer-ng-portal.umd.min.js.map

@@ -13,3 +13,2 @@ import { Injectable } from '@angular/core';

detach(slot) {
console.log('detach');
const slots = Object.entries(this.slots$.value)

@@ -33,2 +32,2 @@ .filter(([key]) => key !== slot)

];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9ydGFsLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9yb2htZXIvbmctcG9ydGFsL3NyYy9saWIvc2VydmljZXMvcG9ydGFsLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUMsZUFBZSxFQUFhLE1BQU0sTUFBTSxDQUFDO0FBRWpELE9BQU8sRUFBQyxLQUFLLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQzs7QUFLckMsTUFBTSxPQUFPLGFBQWE7SUFIMUI7UUFLVSxXQUFNLEdBQUcsSUFBSSxlQUFlLENBQTRCLEVBQUUsQ0FBQyxDQUFDO0tBMkJyRTtJQXpCQyxNQUFNLENBQUMsSUFBWSxFQUFFLE1BQWlCO1FBQ3BDLElBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxpQ0FDWCxJQUFJLENBQUMsTUFBTSxDQUFDLEtBQUssS0FDcEIsQ0FBQyxJQUFJLENBQUMsRUFBRSxNQUFNLElBQ2QsQ0FBQztJQUNMLENBQUM7SUFDRCxNQUFNLENBQUMsSUFBWTtRQUNqQixPQUFPLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ3RCLE1BQU0sS0FBSyxHQUFHLE1BQU0sQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUM7YUFDNUMsTUFBTSxDQUFDL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HRoaXMuc2xvdHMkLm5leHQoe1xuICAgICAgLi4udGhpcy5zbG90cyQudmFsdWUsXG4gICAgICBbc2xvdF06IHBvcnRhbCxcbiAgICB9KTtcbiAgfVxuICBkZXRhY2goc2xvdDogc3RyaW5nKTogdm9pZCB7XG4gICAgY29uc29sZS5sb2coJ2RldGFjaCcpO1xuICAgIGNvbnN0IHNsb3RzID0gT2JqZWN0LmVudHJpZXModGhpcy5zbG90cyQudmFsdWUpXG4gICAgICAuZmlsdGVyKChba2V5XSkgPT4ga2V5ICE9PSBzbG90KVxuICAgICAgLnJlZHVjZShcbiAgICAgICAgKHByZXYsIFtrZXksIHZhbHVlXSkgPT4gKHtcbiAgICAgICAgICBba2V5XTogdmFsdWUsXG4gICAgICAgIH0pLFxuICAgICAgICB7fVxuICAgICAgKTtcblxuICAgIHRoaXMuc2xvdHMkLm5leHQoc2xvdHMpO1xuICB9XG4gIGdldFNsb3RMaXN0ZW5lcihzbG90OiBzdHJpbmcpOiBPYnNlcnZhYmxlPENka1BvcnRhbD4ge1xuICAgIHJldHVybiB0aGlzLnNsb3RzJFxuICAgICAgLnBpcGUoXG4gICAgICAgIHBsdWNrKHNsb3QpLFxuICAgICAgKTtcbiAgfVxufVxuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9ydGFsLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9yb2htZXIvbmctcG9ydGFsL3NyYy9saWIvc2VydmljZXMvcG9ydGFsLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUMsZUFBZSxFQUFhLE1BQU0sTUFBTSxDQUFDO0FBRWpELE9BQU8sRUFBQyxLQUFLLEVBQUMsTUFBTSxnQkF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LnBpcGUoXG4gICAgICAgIHBsdWNrKHNsb3QpLFxuICAgICAgKTtcbiAgfVxufVxuIl19

@@ -48,3 +48,2 @@ import { ɵɵdefineInjectable, Injectable, Directive, ElementRef, Host, ComponentFactoryResolver, Injector, ApplicationRef, Input, TemplateRef, ViewContainerRef, NgModule } from '@angular/core';

detach(slot) {
console.log('detach');
const slots = Object.entries(this.slots$.value)

@@ -51,0 +50,0 @@ .filter(([key]) => key !== slot)

{
"name": "@rohmer/ng-portal",
"version": "1.0.1",
"version": "1.0.2",
"author": {

@@ -5,0 +5,0 @@ "name": "Matthias Rohmer",

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc