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

@tinkoff/ng-polymorpheus

Package Overview
Dependencies
Maintainers
15
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinkoff/ng-polymorpheus - npm Package Compare versions

Comparing version 3.1.8 to 3.1.9

62

bundles/tinkoff-ng-polymorpheus.umd.js

@@ -149,3 +149,7 @@ (function (global, factory) {

function PolymorpheusOutletComponent() {
var _this = this;
this.template = null;
this.proxy = new Proxy({}, {
get: function (_, key) { return _this.context[(/** @type {?} */ (key))]; },
});
this.content = null;

@@ -240,3 +244,3 @@ }

selector: '[polymorpheus-outlet]',
template: "<ng-container\r\n *ngIf=\"isAdvanced(content)\"\r\n #mutableContext=\"context\"\r\n context\r\n [ngTemplateOutlet]=\"getTemplate(content, component)\"\r\n [ngTemplateOutletContext]=\"context\"\r\n>\r\n <ng-template #component>\r\n <ng-container\r\n *ngIf=\"guard(content)\"\r\n [ngComponentOutlet]=\"content.component\"\r\n [ngComponentOutletInjector]=\"content | injector : mutableContext.context\"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n<ng-container *ngIf=\"primitive\">\r\n <ng-container *ngIf=\"!template; else child\">{{primitive}}</ng-container>\r\n <ng-template #child>\r\n <ng-container\r\n [ngTemplateOutlet]=\"template\"\r\n [ngTemplateOutletContext]=\"{$implicit: primitive}\"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n",
template: "<ng-container\n *ngIf=\"isAdvanced(content)\"\n [ngTemplateOutlet]=\"getTemplate(content, component)\"\n [ngTemplateOutletContext]=\"context\"\n>\n <ng-template #component>\n <ng-container\n *ngIf=\"guard(content)\"\n [ngComponentOutlet]=\"content.component\"\n [ngComponentOutletInjector]=\"content | injector : proxy\"\n ></ng-container>\n </ng-template>\n</ng-container>\n<ng-container *ngIf=\"primitive\">\n <ng-container *ngIf=\"!template; else child\">{{primitive}}</ng-container>\n <ng-template #child>\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{$implicit: primitive}\"\n ></ng-container>\n </ng-template>\n</ng-container>\n",
changeDetection: core.ChangeDetectionStrategy.OnPush

@@ -259,2 +263,4 @@ }] }

/** @type {?} */
PolymorpheusOutletComponent.prototype.proxy;
/** @type {?} */
PolymorpheusOutletComponent.prototype.content;

@@ -309,46 +315,2 @@ /** @type {?} */

/**
* Helper directive, extracting first {\@link EmbeddedViewRef} context if it's present
* @template C
*/
var ContextDirective = /** @class */ (function () {
function ContextDirective(viewContainerRef) {
this.viewContainerRef = viewContainerRef;
}
Object.defineProperty(ContextDirective.prototype, "context", {
get: /**
* @return {?}
*/
function () {
/** @type {?} */
var viewRef = (/** @type {?} */ (this.viewContainerRef.get(0)));
return viewRef && viewRef.context;
},
enumerable: true,
configurable: true
});
ContextDirective.decorators = [
{ type: core.Directive, args: [{
selector: '[context]',
exportAs: 'context',
},] }
];
/** @nocollapse */
ContextDirective.ctorParameters = function () { return [
{ type: core.ViewContainerRef, decorators: [{ type: core.Inject, args: [core.ViewContainerRef,] }] }
]; };
return ContextDirective;
}());
if (false) {
/**
* @type {?}
* @private
*/
ContextDirective.prototype.viewContainerRef;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Internal use {\@link Pipe} to create {\@link Injector}

@@ -404,8 +366,3 @@ * only when either content or context change

imports: [common.CommonModule],
declarations: [
PolymorpheusOutletComponent,
PolymorpheusTemplate,
ContextDirective,
InjectorPipe,
],
declarations: [PolymorpheusOutletComponent, PolymorpheusTemplate, InjectorPipe],
exports: [PolymorpheusOutletComponent, PolymorpheusTemplate],

@@ -422,4 +379,3 @@ },] }

exports.PolymorpheusTemplate = PolymorpheusTemplate;
exports.ɵa = ContextDirective;
exports.ɵb = InjectorPipe;
exports.ɵa = InjectorPipe;

@@ -426,0 +382,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

2

bundles/tinkoff-ng-polymorpheus.umd.min.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("@tinkoff/ng-polymorpheus",["exports","@angular/core","@angular/common"],e):e(((t=t||self).tinkoff=t.tinkoff||{},t.tinkoff["ng-polymorpheus"]={}),t.ng.core,t.ng.common)}(this,(function(t,e,n){"use strict";var o=new e.InjectionToken("Context from polymorpheus-outlet"),r=function(){function t(t,e){void 0===e&&(e=null),this.component=t,this.injector=e}return t.prototype.createInjector=function(t,n){return e.Injector.create({parent:this.injector||t,providers:[{provide:o,useValue:n}]})},t}();var c=function(){function t(t,e){this.template=t,this.changeDetectorRef=e,this.polymorpheus=""}return t.prototype.check=function(){this.changeDetectorRef.markForCheck()},t.ngTemplateContextGuard=function(t,e){return!0},t.decorators=[{type:e.Directive,args:[{selector:"ng-template[polymorpheus]",exportAs:"polymorpheus",inputs:["polymorpheus"]}]}],t.ctorParameters=function(){return[{type:e.TemplateRef,decorators:[{type:e.Inject,args:[e.TemplateRef]},{type:e.Self}]},{type:e.ChangeDetectorRef,decorators:[{type:e.Inject,args:[e.ChangeDetectorRef]}]}]},t}();var i=function(){function t(){this.template=null,this.content=null}return Object.defineProperty(t.prototype,"primitive",{get:function(){return!this.content||this.isAdvanced(this.content)?"":"function"==typeof this.content?this.content(this.context):this.content},enumerable:!0,configurable:!0}),t.prototype.isAdvanced=function(t){return function(t){return p(t)||t instanceof e.TemplateRef}(t)||a(t)},t.prototype.getTemplate=function(t,e){return a(t)?e:p(t)?t.template:t},t.prototype.guard=function(t){return a(t)},t.prototype.ngOnChanges=function(t){var n=t.content,o=t.context,r=!n&&o&&this.outlet&&this.outlet._componentRef;r&&r.injector.get(e.ChangeDetectorRef).markForCheck()},t.prototype.ngDoCheck=function(){p(this.content)&&this.content.check()},t.decorators=[{type:e.Component,args:[{selector:"[polymorpheus-outlet]",template:'<ng-container\r\n *ngIf="isAdvanced(content)"\r\n #mutableContext="context"\r\n context\r\n [ngTemplateOutlet]="getTemplate(content, component)"\r\n [ngTemplateOutletContext]="context"\r\n>\r\n <ng-template #component>\r\n <ng-container\r\n *ngIf="guard(content)"\r\n [ngComponentOutlet]="content.component"\r\n [ngComponentOutletInjector]="content | injector : mutableContext.context"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n<ng-container *ngIf="primitive">\r\n <ng-container *ngIf="!template; else child">{{primitive}}</ng-container>\r\n <ng-template #child>\r\n <ng-container\r\n [ngTemplateOutlet]="template"\r\n [ngTemplateOutletContext]="{$implicit: primitive}"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n',changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.propDecorators={template:[{type:e.ContentChild,args:[e.TemplateRef]}],outlet:[{type:e.ViewChild,args:[n.NgComponentOutlet]}],content:[{type:e.Input}],context:[{type:e.Input}]},t}();function p(t){return t instanceof c}function a(t){return t instanceof r}var u=function(){function t(t){this.viewContainerRef=t}return Object.defineProperty(t.prototype,"context",{get:function(){var t=this.viewContainerRef.get(0);return t&&t.context},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"[context]",exportAs:"context"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef,decorators:[{type:e.Inject,args:[e.ViewContainerRef]}]}]},t}();var s=function(){function t(t){this.injector=t}return t.prototype.transform=function(t,e){return t.createInjector(this.injector,e)},t.decorators=[{type:e.Pipe,args:[{name:"injector"}]}],t.ctorParameters=function(){return[{type:e.Injector,decorators:[{type:e.Inject,args:[e.Injector]}]}]},t}();var l=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule],declarations:[i,c,u,s],exports:[i,c]}]}],t}();t.POLYMORPHEUS_CONTEXT=o,t.PolymorpheusComponent=r,t.PolymorpheusModule=l,t.PolymorpheusOutletComponent=i,t.PolymorpheusTemplate=c,t.ɵa=u,t.ɵb=s,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("@tinkoff/ng-polymorpheus",["exports","@angular/core","@angular/common"],e):e(((t=t||self).tinkoff=t.tinkoff||{},t.tinkoff["ng-polymorpheus"]={}),t.ng.core,t.ng.common)}(this,(function(t,e,n){"use strict";var o=new e.InjectionToken("Context from polymorpheus-outlet"),r=function(){function t(t,e){void 0===e&&(e=null),this.component=t,this.injector=e}return t.prototype.createInjector=function(t,n){return e.Injector.create({parent:this.injector||t,providers:[{provide:o,useValue:n}]})},t}();var c=function(){function t(t,e){this.template=t,this.changeDetectorRef=e,this.polymorpheus=""}return t.prototype.check=function(){this.changeDetectorRef.markForCheck()},t.ngTemplateContextGuard=function(t,e){return!0},t.decorators=[{type:e.Directive,args:[{selector:"ng-template[polymorpheus]",exportAs:"polymorpheus",inputs:["polymorpheus"]}]}],t.ctorParameters=function(){return[{type:e.TemplateRef,decorators:[{type:e.Inject,args:[e.TemplateRef]},{type:e.Self}]},{type:e.ChangeDetectorRef,decorators:[{type:e.Inject,args:[e.ChangeDetectorRef]}]}]},t}();var i=function(){function t(){var t=this;this.template=null,this.proxy=new Proxy({},{get:function(e,n){return t.context[n]}}),this.content=null}return Object.defineProperty(t.prototype,"primitive",{get:function(){return!this.content||this.isAdvanced(this.content)?"":"function"==typeof this.content?this.content(this.context):this.content},enumerable:!0,configurable:!0}),t.prototype.isAdvanced=function(t){return function(t){return p(t)||t instanceof e.TemplateRef}(t)||a(t)},t.prototype.getTemplate=function(t,e){return a(t)?e:p(t)?t.template:t},t.prototype.guard=function(t){return a(t)},t.prototype.ngOnChanges=function(t){var n=t.content,o=t.context,r=!n&&o&&this.outlet&&this.outlet._componentRef;r&&r.injector.get(e.ChangeDetectorRef).markForCheck()},t.prototype.ngDoCheck=function(){p(this.content)&&this.content.check()},t.decorators=[{type:e.Component,args:[{selector:"[polymorpheus-outlet]",template:'<ng-container\n *ngIf="isAdvanced(content)"\n [ngTemplateOutlet]="getTemplate(content, component)"\n [ngTemplateOutletContext]="context"\n>\n <ng-template #component>\n <ng-container\n *ngIf="guard(content)"\n [ngComponentOutlet]="content.component"\n [ngComponentOutletInjector]="content | injector : proxy"\n ></ng-container>\n </ng-template>\n</ng-container>\n<ng-container *ngIf="primitive">\n <ng-container *ngIf="!template; else child">{{primitive}}</ng-container>\n <ng-template #child>\n <ng-container\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{$implicit: primitive}"\n ></ng-container>\n </ng-template>\n</ng-container>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.propDecorators={template:[{type:e.ContentChild,args:[e.TemplateRef]}],outlet:[{type:e.ViewChild,args:[n.NgComponentOutlet]}],content:[{type:e.Input}],context:[{type:e.Input}]},t}();function p(t){return t instanceof c}function a(t){return t instanceof r}var u=function(){function t(t){this.injector=t}return t.prototype.transform=function(t,e){return t.createInjector(this.injector,e)},t.decorators=[{type:e.Pipe,args:[{name:"injector"}]}],t.ctorParameters=function(){return[{type:e.Injector,decorators:[{type:e.Inject,args:[e.Injector]}]}]},t}();var s=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule],declarations:[i,c,u],exports:[i,c]}]}],t}();t.POLYMORPHEUS_CONTEXT=o,t.PolymorpheusComponent=r,t.PolymorpheusModule=s,t.PolymorpheusOutletComponent=i,t.PolymorpheusTemplate=c,t.ɵa=u,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=tinkoff-ng-polymorpheus.umd.min.js.map

@@ -16,2 +16,5 @@ /**

this.template = null;
this.proxy = new Proxy({}, {
get: (_, key) => this.context[(/** @type {?} */ (key))],
});
this.content = null;

@@ -82,3 +85,3 @@ }

selector: '[polymorpheus-outlet]',
template: "<ng-container\r\n *ngIf=\"isAdvanced(content)\"\r\n #mutableContext=\"context\"\r\n context\r\n [ngTemplateOutlet]=\"getTemplate(content, component)\"\r\n [ngTemplateOutletContext]=\"context\"\r\n>\r\n <ng-template #component>\r\n <ng-container\r\n *ngIf=\"guard(content)\"\r\n [ngComponentOutlet]=\"content.component\"\r\n [ngComponentOutletInjector]=\"content | injector : mutableContext.context\"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n<ng-container *ngIf=\"primitive\">\r\n <ng-container *ngIf=\"!template; else child\">{{primitive}}</ng-container>\r\n <ng-template #child>\r\n <ng-container\r\n [ngTemplateOutlet]=\"template\"\r\n [ngTemplateOutletContext]=\"{$implicit: primitive}\"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n",
template: "<ng-container\n *ngIf=\"isAdvanced(content)\"\n [ngTemplateOutlet]=\"getTemplate(content, component)\"\n [ngTemplateOutletContext]=\"context\"\n>\n <ng-template #component>\n <ng-container\n *ngIf=\"guard(content)\"\n [ngComponentOutlet]=\"content.component\"\n [ngComponentOutletInjector]=\"content | injector : proxy\"\n ></ng-container>\n </ng-template>\n</ng-container>\n<ng-container *ngIf=\"primitive\">\n <ng-container *ngIf=\"!template; else child\">{{primitive}}</ng-container>\n <ng-template #child>\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{$implicit: primitive}\"\n ></ng-container>\n </ng-template>\n</ng-container>\n",
changeDetection: ChangeDetectionStrategy.OnPush

@@ -99,2 +102,4 @@ }] }

/** @type {?} */
PolymorpheusOutletComponent.prototype.proxy;
/** @type {?} */
PolymorpheusOutletComponent.prototype.content;

@@ -128,2 +133,2 @@ /** @type {?} */

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0bGV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0aW5rb2ZmL25nLXBvbHltb3JwaGV1cy8iLCJzb3VyY2VzIjpbIm91dGxldC9vdXRsZXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs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gICByZXR1cm4gJyc7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gdHlwZW9mIHRoaXMuY29udGVudCA9PT0gJ2Z1bmN0aW9uJ1xyXG4gICAgICAgICAgICA/IHRoaXMuY29udGVudCh0aGlzLmNvbnRleHQpXHJcbiAgICAgICAgICAgIDogdGhpcy5jb250ZW50O1xyXG4gICAgfVxyXG5cclxuICAgIGlzQWR2YW5jZWQoXHJcbiAgICAgICAgY29udGVudDogUG9seW1vcnBoZXVzQ29udGVudDxDPiB8IG51bGwsXHJcbiAgICApOiBjb250ZW50IGlzXHJcbiAgICAgICAgfCBQb2x5bW9ycGhldXNUZW1wbGF0ZTxDPlxyXG4gICAgICAgIHwgVGVtcGxhdGVSZWY8Qz5cclxuICAgICAgICB8IFBvbHltb3JwaGV1c0NvbXBvbmVudDxvYmplY3QsIEM+IHtcclxuICAgICAgICByZXR1cm4gaXNUZW1wbGF0ZShjb250ZW50KSB8fCBpc0NvbXBvbmVudChjb250ZW50KTtcclxuICAgIH1cclxuXHJcbiAgICBnZXRUZW1wbGF0ZShcclxuICAgICAgICBjb250ZW50OlxyXG4gICAgICAgICAgICB8IFBvbHltb3JwaGV1c0NvbXBvbmVudDxvYmplY3QsIEM+XHJcbiAgICAgICAgICAgIHwgUG9seW1vcnBoZXVzVGVtcGxhdGU8Qz5cclxuICAgICAgICAgICAgfCBUZW1wbGF0ZVJlZjxDPixcclxuICAgICAgICBjb21wb25lbnRUbXA6IFRlbXBsYXRlUmVmPEM+LFxyXG4gICAgKTogVGVtcGxhdGVSZWY8Qz4ge1xyXG4gICAgICAgIGlmIChpc0NvbXBvbmVudChjb250ZW50KSkge1xyXG4gICAgICAgICAgICByZXR1cm4gY29tcG9uZW50VG1wO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIGlzRGlyZWN0aXZlKGNvbnRlbnQpID8gY29udGVudC50ZW1wbGF0ZSA6IGNvbnRlbnQ7XHJcbiAgICB9XHJcblxyXG4gICAgZ3VhcmQoXHJcbiAgICAgICAgY29udGVudDogUG9seW1vcnBoZXVzQ29udGVudDxDPiB8IG51bGwsXHJcbiAgICApOiBjb250ZW50IGlzIFBvbHltb3JwaGV1c0NvbXBvbmVudDxvYmplY3QsIEM+IHtcclxuICAgICAgICByZXR1cm4gaXNDb21wb25lbnQoY29udGVudCk7XHJcbiAgICB9XHJcblxyXG4gICAgbmdPbkNoYW5nZXMoe2NvbnRlbnQsIGNvbnRleHR9OiBTaW1wbGVDaGFuZ2VzKSB7XHJcbiAgICAgICAgLy8gVE9ETzogS2VlcCBhbiBleWUgb24gcHJpdmF0ZSBmaWVsZCwgbmFtZSBjYW4gY2hhbmdlXHJcbiAgICAgICAgY29uc3QgY29tcG9uZW50UmVmID0gKCFjb250ZW50ICYmXHJcbiAgICAgICAgICAgIGNvbnRleHQgJiZcclxuICAgICAgICAgICAgdGhpcy5vdXRsZXQgJiZcclxuICAgICAgICAgICAgdGhpcy5vdXRsZXRbJ19jb21wb25lbnRSZWYnXSkgYXMgQ29tcG9uZW50UmVmPG9iamVjdD4gfCBudWxsIHwgZmFsc2U7XHJcblxyXG4gICAgICAgIGlmIChjb21wb25lbnRSZWYpIHtcclxuICAgICAgICAgICAgY29tcG9uZW50UmVmLmluamVjdG9yLmdldChDaGFuZ2VEZXRlY3RvclJlZikubWFya0ZvckNoZWNrKCk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIG5nRG9DaGVjaygpIHtcclxuICAgICAgICBpZiAoaXNEaXJlY3RpdmUodGhpcy5jb250ZW50KSkge1xyXG4gICAgICAgICAgICB0aGlzLmNvbnRlbnQuY2hlY2soKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcbn1cclxuXHJcbmZ1bmN0aW9uIGlzRGlyZWN0aXZlPEMgZXh0ZW5kcyBvYmplY3Q+KFxyXG4gICAgY29udGVudDogUG9seW1vcnBoZXVzQ29udGVudDxDPiB8IG51bGwsXHJcbik6IGNvbn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E6IEM7XG5cbiAgICBnZXQgcHJpbWl0aXZlKCk6IFBvbHltb3JwaGV1c1ByaW1pdGl2ZSB7XG4gICAgICAgIGlmICghdGhpcy5jb250ZW50IHx8IHRoaXMuaXNBZHZhbmNlZCh0aGlzLmNvbnRlbnQpKSB7XG4gICAgICAgICAgICByZXR1cm4gJyc7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdHlwZW9mIHRoaXMuY29udGVudCA9PT0gJ2Z1bmN0aW9uJ1xuICAgICAgICAgICAgPyB0aGlzLmNvbnRlbnQodGhpcy5jb250ZXh0KVxuICAgICAgICAgICAgOiB0aGlzLmNvbnRlbnQ7XG4gICAgfVxuXG4gICAgaXNBZHZhbmNlZChcbiAgICAgICAgY29udGVudDogUG9seW1vcnBoZXVzQ29udGVudDxDPiB8IG51bGwsXG4gICAgKTogY29udGVudCBpc1xuICAgICAgICB8IFBvbHltb3JwaGV1c1RlbXBsYXRlPEM+XG4gICAgICAgIHwgVGVtcGxhdGVSZWY8Qz5cbiAgICAgICAgfCBQb2x5bW9ycGhldXNDb21wb25lbnQ8b2JqZWN0LCBDPiB7XG4gICAgICAgIHJldHVybiBpc1RlbXBsYXRlKGNvbnRlbnQpIHx8IGlzQ29tcG9uZW50KGNvbnRlbnQpO1xuICAgIH1cblxuICAgIGdldFRlbXBsYXRlKFxuICAgICAgICBjb250ZW50OlxuICAgICAgICAgICAgfCBQb2x5bW9ycGhldXNDb21wb25lbnQ8b2JqZWN0LCBDPlxuICAgICAgICAgICAgfCBQb2x5bW9ycGhldXNUZW1wbGF0ZTxDPlxuICAgICAgICAgICAgfCBUZW1wbGF0ZVJlZjxDPixcbiAgICAgICAgY29tcG9uZW50VG1wOiBUZW1wbGF0ZVJlZjxDPixcbiAgICApOiBUZW1wbGF0ZVJlZjxDPiB7XG4gICAgICAgIGlmIChpc0NvbXBvbmVudChjb250ZW50KSkge1xuICAgICAgICAgICAgcmV0dXJuIGNvbXBvbmVudFRtcDtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBpc0RpcmVjdGl2ZShjb250ZW50KSA/IGNvbnRlbnQudGVtcGxhdGUgOiBjb250ZW50O1xuICAgIH1cblxuICAgIGd1YXJkKFxuICAgICAgICBjb250ZW50OiBQb2x5bW9ycGhldXNDb250ZW50PEM+IHwgbnVsbCxcbiAgICApOiBjb250ZW50IGlzIFBvbHltb3JwaGV1c0NvbXBvbmVudDxvYmplY3QsIEM+IHtcbiAgICAgICAgcmV0dXJuIGlzQ29tcG9uZW50KGNvbnRlbnQpO1xuICAgIH1cblxuICAgIG5nT25DaGFuZ2VzKHtjb250ZW50LCBjb250ZXh0fTogU2ltcGxlQ2hhbmdlcykge1xuICAgICAgICAvLyBUT0RPOiBLZWVwIGFuIGV5ZSBvbiBwcml2YXRlIGZpZWxkLCBuYW1lIGNhbiBjaGFuZ2VcbiAgICAgICAgY29uc3QgY29tcG9uZW50UmVmID0gKCFjb250ZW50ICYmXG4gICAgICAgICAgICBjb250ZXh0ICYmXG4gICAgICAgICAgICB0aGlzLm91dGxldCAmJlxuICAgICAgICAgICAgdGhpcy5vdXRsZXRbJ19jb21wb25lbnRSZWYnXSkgYXMgQ29tcG9uZW50UmVmPG9iamVjdD4gfCBudWxsIHwgZmFsc2U7XG5cbiAgICAgICAgaWYgKGNvbXBvbmVudFJlZikge1xuICAgICAgICAgICAgY29tcG9uZW50UmVmLmluamVjdG9yLmdldChDaGFuZ2VEZXRlY3RvclJlZikubWFya0ZvckNoZWNrKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBuZ0RvQ2hlY2soKSB7XG4gICAgICAgIGlmIChpc0RpcmVjdGl2ZSh0aGlzLmNvbnRlbnQpKSB7XG4gICAgICAgICAgICB0aGlzLmNvbnRlbnQuY2hlY2soKTtcbiAgICAgICAgfVxuICAgIH1cbn1cblxuZnVuY3Rpb24gaXNEaXJlY3RpdmU8QyBleHRlbmRzIG9iamVjdD4oXG4gICAgY29udGVudDogUG9seW1vcnBoZXVzQ29udGVudDxDPiB8IG51bGwsXG4pOiBjb250ZW50IGlzIFBvbHltb3JwaGV1c1RlbXBsYXRlPEM+IHtcbiAgICByZXR1cm4gY29udGVudCBpbnN0YW5jZW9mIFBvbHltb3JwaGV1c1RlbXBsYXRlO1xufVxuXG5mdW5jdGlvbiBpc0NvbXBvbmVudDxDIGV4dGVuZHMgb2JqZWN0PihcbiAgICBjb250ZW50OiBQb2x5bW9ycGhldXNDb250ZW50PEM+IHwgbnVsbCxcbik6IGNvbnRlbnQgaXMgUG9seW1vcnBoZXVzQ29tcG9uZW50PG9iamVjdCwgQz4ge1xuICAgIHJldHVybiBjb250ZW50IGluc3RhbmNlb2YgUG9seW1vcnBoZXVzQ29tcG9uZW50O1xufVxuXG5mdW5jdGlvbiBpc1RlbXBsYXRlPEMgZXh0ZW5kcyBvYmplY3Q+KFxuICAgIGNvbnRlbnQ6IFBvbHltb3JwaGV1c0NvbnRlbnQ8Qz4gfCBudWxsLFxuKTogY29udGVudCBpcyBQb2x5bW9ycGhldXNUZW1wbGF0ZTxDPiB8IFRlbXBsYXRlUmVmPEM+IHtcbiAgICByZXR1cm4gaXNEaXJlY3RpdmUoY29udGVudCkgfHwgY29udGVudCBpbnN0YW5jZW9mIFRlbXBsYXRlUmVmO1xufVxuIl19

@@ -7,3 +7,2 @@ /**

import { NgModule } from '@angular/core';
import { ContextDirective } from './directives/context';
import { PolymorpheusTemplate } from './directives/template';

@@ -17,11 +16,6 @@ import { PolymorpheusOutletComponent } from './outlet/outlet.component';

imports: [CommonModule],
declarations: [
PolymorpheusOutletComponent,
PolymorpheusTemplate,
ContextDirective,
InjectorPipe,
],
declarations: [PolymorpheusOutletComponent, PolymorpheusTemplate, InjectorPipe],
exports: [PolymorpheusOutletComponent, PolymorpheusTemplate],
},] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9seW1vcnBoZXVzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0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ZQUFZLEVBQUMsTUFBTSxrQkFBa0IsQ0FBQztBQU85QyxNQUFNLE9BQU8sa0JBQWtCOzs7WUFMOUIsUUFBUSxTQUFDO2dCQUNOLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQztnQkFDdkIsWUFBWSxFQUFFLENBQUMsMkJBQTJCLEVBQUUsb0JBQW9CLEVBQUUsWUFBWSxDQUFDO2dCQUMvRSxPQUFPLEVBQUUsQ0FBQywyQkFBMkIsRUFBRSxvQkFBb0IsQ0FBQzthQUMvRCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7Q29tbW9uTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge1BvbHltb3JwaGV1c1RlbXBsYXRlfSBmcm9tICcuL2RpcmVjdGl2ZXMvdGVtcGxhdGUnO1xuaW1wb3J0IHtQb2x5bW9ycGhldXNPdXRsZXRDb21wb25lbnR9IGZyb20gJy4vb3V0bGV0L291dGxldC5jb21wb25lbnQnO1xuaW1wb3J0IHtJbmplY3RvclBpcGV9IGZyb20gJy4vcGlwZXMvaW5qZWN0b3InO1xuXG5ATmdNb2R1bGUoe1xuICAgIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxuICAgIGRlY2xhcmF0aW9uczogW1BvbHltb3JwaGV1c091dGxldENvbXBvbmVudCwgUG9seW1vcnBoZXVzVGVtcGxhdGUsIEluamVjdG9yUGlwZV0sXG4gICAgZXhwb3J0czogW1BvbHltb3JwaGV1c091dGxldENvbXBvbmVudCwgUG9seW1vcnBoZXVzVGVtcGxhdGVdLFxufSlcbmV4cG9ydCBjbGFzcyBQb2x5bW9ycGhldXNNb2R1bGUge31cbiJdfQ==

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

export { PolymorpheusComponent, PolymorpheusTemplate, PolymorpheusOutletComponent, POLYMORPHEUS_CONTEXT, PolymorpheusModule } from './public-api';
export { ContextDirective as ɵa } from './directives/context';
export { InjectorPipe as ɵb } from './pipes/injector';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlua29mZi1uZy1wb2x5bW9ycGhldXMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGlua29mZi9uZy1wb2x5bW9ycGhldXMvIiwic291cmNlcyI6WyJ0aW5rb2ZmLW5nLXBvbHltb3JwaGV1cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsbUlBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUM1RCxPQUFPLEVBQUMsWUFBWSxJQUFJLEVBQUUsRUFBQyxNQUFNLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge0NvbnRleHREaXJlY3RpdmUgYXMgybVhfSBmcm9tICcuL2RpcmVjdGl2ZXMvY29udGV4dCc7XG5leHBvcnQge0luamVjdG9yUGlwZSBhcyDJtWJ9IGZyb20gJy4vcGlwZXMvaW5qZWN0b3InOyJdfQ==
export { InjectorPipe as ɵa } from './pipes/injector';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlua29mZi1uZy1wb2x5bW9ycGhldXMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGlua29mZi9uZy1wb2x5bW9ycGhldXMvIiwic291cmNlcyI6WyJ0aW5rb2ZmLW5nLXBvbHltb3JwaGV1cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsbUlBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxZQUFZLElBQUksRUFBRSxFQUFDLE1BQU0sa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7SW5qZWN0b3JQaXBlIGFzIMm1YX0gZnJvbSAnLi9waXBlcy9pbmplY3Rvcic7Il19

@@ -15,3 +15,7 @@ /**

function PolymorpheusOutletComponent() {
var _this = this;
this.template = null;
this.proxy = new Proxy({}, {
get: function (_, key) { return _this.context[(/** @type {?} */ (key))]; },
});
this.content = null;

@@ -106,3 +110,3 @@ }

selector: '[polymorpheus-outlet]',
template: "<ng-container\r\n *ngIf=\"isAdvanced(content)\"\r\n #mutableContext=\"context\"\r\n context\r\n [ngTemplateOutlet]=\"getTemplate(content, component)\"\r\n [ngTemplateOutletContext]=\"context\"\r\n>\r\n <ng-template #component>\r\n <ng-container\r\n *ngIf=\"guard(content)\"\r\n [ngComponentOutlet]=\"content.component\"\r\n [ngComponentOutletInjector]=\"content | injector : mutableContext.context\"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n<ng-container *ngIf=\"primitive\">\r\n <ng-container *ngIf=\"!template; else child\">{{primitive}}</ng-container>\r\n <ng-template #child>\r\n <ng-container\r\n [ngTemplateOutlet]=\"template\"\r\n [ngTemplateOutletContext]=\"{$implicit: primitive}\"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n",
template: "<ng-container\n *ngIf=\"isAdvanced(content)\"\n [ngTemplateOutlet]=\"getTemplate(content, component)\"\n [ngTemplateOutletContext]=\"context\"\n>\n <ng-template #component>\n <ng-container\n *ngIf=\"guard(content)\"\n [ngComponentOutlet]=\"content.component\"\n [ngComponentOutletInjector]=\"content | injector : proxy\"\n ></ng-container>\n </ng-template>\n</ng-container>\n<ng-container *ngIf=\"primitive\">\n <ng-container *ngIf=\"!template; else child\">{{primitive}}</ng-container>\n <ng-template #child>\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{$implicit: primitive}\"\n ></ng-container>\n </ng-template>\n</ng-container>\n",
changeDetection: ChangeDetectionStrategy.OnPush

@@ -126,2 +130,4 @@ }] }

/** @type {?} */
PolymorpheusOutletComponent.prototype.proxy;
/** @type {?} */
PolymorpheusOutletComponent.prototype.content;

@@ -155,2 +161,2 @@ /** @type {?} */

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0bGV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0aW5rb2ZmL25nLXBvbHltb3JwaGV1cy8iLCJzb3VyY2VzIjpbIm91dGxldC9vdXRsZXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsaUJBQWlCLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUNsRCxPQUFPLEVBQ0gsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBRVQsWUFBWSxFQUVaLEtBQUssRUFHTCxXQUFXLEVBQ1gsU0FBUyxHQUNaLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBQyxxQkFBcUIsRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBQzNELE9BQU8sRUFBQyxvQkFBb0IsRUFBQyxNQUFNLHdCQUF3QixDQUFDOzs7OztBQU81RDtJQUFBO1FBT2EsYUFBUSxHQUEwQixJQUFJLENBQUM7UUFNaEQsWUFBTyxHQUFrQyxJQUFJLENBQUM7SUE2RGxELENBQUM7SUF4REcsc0JBQUksa0RBQVM7Ozs7UUFBYjtZQUNJLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxJQUFJLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLE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21wb25lbnQ8b2JqZWN0LCBDPiB7XHJcbiAgICAgICAgcmV0dXJuIGlzVGVtcGxhdGUoY29udGVudCkgfHwgaXNDb21wb25lbnQoY29udGVudCk7XHJcbiAgICB9XHJcblxyXG4gICAgZ2V0VGVtcGxhdGUoXHJcbiAgICAgICAgY29udGVudDpcclxuICAgICAgICAgICAgfCBQb2x5bW9ycGhldXNDb21wb25lbnQ8b2JqZWN0LCBDPlxyXG4gICAgICAgICAgICB8IFBvbHltb3JwaGV1c1RlbXBsYXRlPEM+XHJcbiAgICAgICAgICAgIHwgVGVtcGxhdGVSZWY8Qz4sXHJcbiAgICAgICAgY29tcG9uZW50VG1wOiBUZW1wbGF0ZVJlZjxDPixcclxuICAgICk6IFRlbXBsYXRlUmVmPEM+IHtcclxuICAgICAgICBpZiAoaXNDb21wb25lbnQoY29udGVudCkpIHtcclxuICAgICAgICAgICAgcmV0dXJuIGNvbXBvbmVudFRtcDtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiBpc0RpcmVjdGl2ZShjb250ZW50KSA/IGNvbnRlbnQudGVtcGxhdGUgOiBjb250ZW50O1xyXG4gICAgfVxyXG5cclxuICAgIGd1YXJkKFxyXG4gICAgICAgIGNvbnRlbnQ6IFBvbHltb3JwaGV1c0NvbnRlbnQ8Qz4gfCBudWxsLFxyXG4gICAgKTogY29udGVudCBpcyBQb2x5bW9ycGhldXNDb21wb25lbnQ8b2JqZWN0LCBDPiB7XHJcbiAgICAgICAgcmV0dXJuIGlzQ29tcG9uZW50KGNvbnRlbnQpO1xyXG4gICAgfVxyXG5cclxuICAgIG5nT25DaGFuZ2VzKHtjb250ZW50LCBjb250ZXh0fTogU2ltcGxlQ2hhbmdlcykge1xyXG4gICAgICAgIC8vIFRPRE86IEtlZXAgYW4gZXllIG9uIHByaXZhdGUgZmllbGQsIG5hbWUgY2FuIGNoYW5nZVxyXG4gICAgICAgIGNvbnN0IGNvbXBvbmVudFJlZiA9ICghY29udGVudCAmJlxy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bW9ycGhldXNDb21wb25lbnQ8b2JqZWN0LCBDPiB7XG4gICAgcmV0dXJuIGNvbnRlbnQgaW5zdGFuY2VvZiBQb2x5bW9ycGhldXNDb21wb25lbnQ7XG59XG5cbmZ1bmN0aW9uIGlzVGVtcGxhdGU8QyBleHRlbmRzIG9iamVjdD4oXG4gICAgY29udGVudDogUG9seW1vcnBoZXVzQ29udGVudDxDPiB8IG51bGwsXG4pOiBjb250ZW50IGlzIFBvbHltb3JwaGV1c1RlbXBsYXRlPEM+IHwgVGVtcGxhdGVSZWY8Qz4ge1xuICAgIHJldHVybiBpc0RpcmVjdGl2ZShjb250ZW50KSB8fCBjb250ZW50IGluc3RhbmNlb2YgVGVtcGxhdGVSZWY7XG59XG4iXX0=

@@ -7,3 +7,2 @@ /**

import { NgModule } from '@angular/core';
import { ContextDirective } from './directives/context';
import { PolymorpheusTemplate } from './directives/template';

@@ -18,8 +17,3 @@ import { PolymorpheusOutletComponent } from './outlet/outlet.component';

imports: [CommonModule],
declarations: [
PolymorpheusOutletComponent,
PolymorpheusTemplate,
ContextDirective,
InjectorPipe,
],
declarations: [PolymorpheusOutletComponent, PolymorpheusTemplate, InjectorPipe],
exports: [PolymorpheusOutletComponent, PolymorpheusTemplate],

@@ -31,2 +25,2 @@ },] }

export { PolymorpheusModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9seW1vcnBoZXVzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0aW5rb2ZmL25nLXBvbHltb3JwaGV1cy8iLCJzb3VyY2VzIjpbInBvbHltb3JwaGV1cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQy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QUM7b0JBQy9FLE9BQU8sRUFBRSxDQUFDLDJCQUEyQixFQUFFLG9CQUFvQixDQUFDO2lCQUMvRDs7SUFDZ0MseUJBQUM7Q0FBQSxBQUxsQyxJQUtrQztTQUFyQixrQkFBa0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0NvbW1vbk1vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtQb2x5bW9ycGhldXNUZW1wbGF0ZX0gZnJvbSAnLi9kaXJlY3RpdmVzL3RlbXBsYXRlJztcbmltcG9ydCB7UG9seW1vcnBoZXVzT3V0bGV0Q29tcG9uZW50fSBmcm9tICcuL291dGxldC9vdXRsZXQuY29tcG9uZW50JztcbmltcG9ydCB7SW5qZWN0b3JQaXBlfSBmcm9tICcuL3BpcGVzL2luamVjdG9yJztcblxuQE5nTW9kdWxlKHtcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcbiAgICBkZWNsYXJhdGlvbnM6IFtQb2x5bW9ycGhldXNPdXRsZXRDb21wb25lbnQsIFBvbHltb3JwaGV1c1RlbXBsYXRlLCBJbmplY3RvclBpcGVdLFxuICAgIGV4cG9ydHM6IFtQb2x5bW9ycGhldXNPdXRsZXRDb21wb25lbnQsIFBvbHltb3JwaGV1c1RlbXBsYXRlXSxcbn0pXG5leHBvcnQgY2xhc3MgUG9seW1vcnBoZXVzTW9kdWxlIHt9XG4iXX0=

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

export { PolymorpheusComponent, PolymorpheusTemplate, PolymorpheusOutletComponent, POLYMORPHEUS_CONTEXT, PolymorpheusModule } from './public-api';
export { ContextDirective as ɵa } from './directives/context';
export { InjectorPipe as ɵb } from './pipes/injector';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlua29mZi1uZy1wb2x5bW9ycGhldXMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGlua29mZi9uZy1wb2x5bW9ycGhldXMvIiwic291cmNlcyI6WyJ0aW5rb2ZmLW5nLXBvbHltb3JwaGV1cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsbUlBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUM1RCxPQUFPLEVBQUMsWUFBWSxJQUFJLEVBQUUsRUFBQyxNQUFNLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge0NvbnRleHREaXJlY3RpdmUgYXMgybVhfSBmcm9tICcuL2RpcmVjdGl2ZXMvY29udGV4dCc7XG5leHBvcnQge0luamVjdG9yUGlwZSBhcyDJtWJ9IGZyb20gJy4vcGlwZXMvaW5qZWN0b3InOyJdfQ==
export { InjectorPipe as ɵa } from './pipes/injector';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlua29mZi1uZy1wb2x5bW9ycGhldXMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGlua29mZi9uZy1wb2x5bW9ycGhldXMvIiwic291cmNlcyI6WyJ0aW5rb2ZmLW5nLXBvbHltb3JwaGV1cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsbUlBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxZQUFZLElBQUksRUFBRSxFQUFDLE1BQU0sa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7SW5qZWN0b3JQaXBlIGFzIMm1YX0gZnJvbSAnLi9waXBlcy9pbmplY3Rvcic7Il19

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

import { InjectionToken, Injector, Directive, TemplateRef, Inject, Self, ChangeDetectorRef, Component, ChangeDetectionStrategy, ContentChild, ViewChild, Input, ViewContainerRef, Pipe, NgModule } from '@angular/core';
import { InjectionToken, Injector, Directive, TemplateRef, Inject, Self, ChangeDetectorRef, Component, ChangeDetectionStrategy, ContentChild, ViewChild, Input, Pipe, NgModule } from '@angular/core';
import { NgComponentOutlet, CommonModule } from '@angular/common';

@@ -131,2 +131,5 @@

this.template = null;
this.proxy = new Proxy({}, {
get: (_, key) => this.context[(/** @type {?} */ (key))],
});
this.content = null;

@@ -197,3 +200,3 @@ }

selector: '[polymorpheus-outlet]',
template: "<ng-container\r\n *ngIf=\"isAdvanced(content)\"\r\n #mutableContext=\"context\"\r\n context\r\n [ngTemplateOutlet]=\"getTemplate(content, component)\"\r\n [ngTemplateOutletContext]=\"context\"\r\n>\r\n <ng-template #component>\r\n <ng-container\r\n *ngIf=\"guard(content)\"\r\n [ngComponentOutlet]=\"content.component\"\r\n [ngComponentOutletInjector]=\"content | injector : mutableContext.context\"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n<ng-container *ngIf=\"primitive\">\r\n <ng-container *ngIf=\"!template; else child\">{{primitive}}</ng-container>\r\n <ng-template #child>\r\n <ng-container\r\n [ngTemplateOutlet]=\"template\"\r\n [ngTemplateOutletContext]=\"{$implicit: primitive}\"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n",
template: "<ng-container\n *ngIf=\"isAdvanced(content)\"\n [ngTemplateOutlet]=\"getTemplate(content, component)\"\n [ngTemplateOutletContext]=\"context\"\n>\n <ng-template #component>\n <ng-container\n *ngIf=\"guard(content)\"\n [ngComponentOutlet]=\"content.component\"\n [ngComponentOutletInjector]=\"content | injector : proxy\"\n ></ng-container>\n </ng-template>\n</ng-container>\n<ng-container *ngIf=\"primitive\">\n <ng-container *ngIf=\"!template; else child\">{{primitive}}</ng-container>\n <ng-template #child>\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{$implicit: primitive}\"\n ></ng-container>\n </ng-template>\n</ng-container>\n",
changeDetection: ChangeDetectionStrategy.OnPush

@@ -214,2 +217,4 @@ }] }

/** @type {?} */
PolymorpheusOutletComponent.prototype.proxy;
/** @type {?} */
PolymorpheusOutletComponent.prototype.content;

@@ -264,44 +269,2 @@ /** @type {?} */

/**
* Helper directive, extracting first {\@link EmbeddedViewRef} context if it's present
* @template C
*/
class ContextDirective {
/**
* @param {?} viewContainerRef
*/
constructor(viewContainerRef) {
this.viewContainerRef = viewContainerRef;
}
/**
* @return {?}
*/
get context() {
/** @type {?} */
const viewRef = (/** @type {?} */ (this.viewContainerRef.get(0)));
return viewRef && viewRef.context;
}
}
ContextDirective.decorators = [
{ type: Directive, args: [{
selector: '[context]',
exportAs: 'context',
},] }
];
/** @nocollapse */
ContextDirective.ctorParameters = () => [
{ type: ViewContainerRef, decorators: [{ type: Inject, args: [ViewContainerRef,] }] }
];
if (false) {
/**
* @type {?}
* @private
*/
ContextDirective.prototype.viewContainerRef;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Internal use {\@link Pipe} to create {\@link Injector}

@@ -353,8 +316,3 @@ * only when either content or context change

imports: [CommonModule],
declarations: [
PolymorpheusOutletComponent,
PolymorpheusTemplate,
ContextDirective,
InjectorPipe,
],
declarations: [PolymorpheusOutletComponent, PolymorpheusTemplate, InjectorPipe],
exports: [PolymorpheusOutletComponent, PolymorpheusTemplate],

@@ -374,3 +332,3 @@ },] }

export { POLYMORPHEUS_CONTEXT, PolymorpheusComponent, PolymorpheusModule, PolymorpheusOutletComponent, PolymorpheusTemplate, ContextDirective as ɵa, InjectorPipe as ɵb };
export { POLYMORPHEUS_CONTEXT, PolymorpheusComponent, PolymorpheusModule, PolymorpheusOutletComponent, PolymorpheusTemplate, InjectorPipe as ɵa };
//# sourceMappingURL=tinkoff-ng-polymorpheus.js.map

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

import { InjectionToken, Injector, Directive, TemplateRef, Inject, Self, ChangeDetectorRef, Component, ChangeDetectionStrategy, ContentChild, ViewChild, Input, ViewContainerRef, Pipe, NgModule } from '@angular/core';
import { InjectionToken, Injector, Directive, TemplateRef, Inject, Self, ChangeDetectorRef, Component, ChangeDetectionStrategy, ContentChild, ViewChild, Input, Pipe, NgModule } from '@angular/core';
import { NgComponentOutlet, CommonModule } from '@angular/common';

@@ -146,3 +146,7 @@

function PolymorpheusOutletComponent() {
var _this = this;
this.template = null;
this.proxy = new Proxy({}, {
get: function (_, key) { return _this.context[(/** @type {?} */ (key))]; },
});
this.content = null;

@@ -237,3 +241,3 @@ }

selector: '[polymorpheus-outlet]',
template: "<ng-container\r\n *ngIf=\"isAdvanced(content)\"\r\n #mutableContext=\"context\"\r\n context\r\n [ngTemplateOutlet]=\"getTemplate(content, component)\"\r\n [ngTemplateOutletContext]=\"context\"\r\n>\r\n <ng-template #component>\r\n <ng-container\r\n *ngIf=\"guard(content)\"\r\n [ngComponentOutlet]=\"content.component\"\r\n [ngComponentOutletInjector]=\"content | injector : mutableContext.context\"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n<ng-container *ngIf=\"primitive\">\r\n <ng-container *ngIf=\"!template; else child\">{{primitive}}</ng-container>\r\n <ng-template #child>\r\n <ng-container\r\n [ngTemplateOutlet]=\"template\"\r\n [ngTemplateOutletContext]=\"{$implicit: primitive}\"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n",
template: "<ng-container\n *ngIf=\"isAdvanced(content)\"\n [ngTemplateOutlet]=\"getTemplate(content, component)\"\n [ngTemplateOutletContext]=\"context\"\n>\n <ng-template #component>\n <ng-container\n *ngIf=\"guard(content)\"\n [ngComponentOutlet]=\"content.component\"\n [ngComponentOutletInjector]=\"content | injector : proxy\"\n ></ng-container>\n </ng-template>\n</ng-container>\n<ng-container *ngIf=\"primitive\">\n <ng-container *ngIf=\"!template; else child\">{{primitive}}</ng-container>\n <ng-template #child>\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{$implicit: primitive}\"\n ></ng-container>\n </ng-template>\n</ng-container>\n",
changeDetection: ChangeDetectionStrategy.OnPush

@@ -256,2 +260,4 @@ }] }

/** @type {?} */
PolymorpheusOutletComponent.prototype.proxy;
/** @type {?} */
PolymorpheusOutletComponent.prototype.content;

@@ -306,46 +312,2 @@ /** @type {?} */

/**
* Helper directive, extracting first {\@link EmbeddedViewRef} context if it's present
* @template C
*/
var ContextDirective = /** @class */ (function () {
function ContextDirective(viewContainerRef) {
this.viewContainerRef = viewContainerRef;
}
Object.defineProperty(ContextDirective.prototype, "context", {
get: /**
* @return {?}
*/
function () {
/** @type {?} */
var viewRef = (/** @type {?} */ (this.viewContainerRef.get(0)));
return viewRef && viewRef.context;
},
enumerable: true,
configurable: true
});
ContextDirective.decorators = [
{ type: Directive, args: [{
selector: '[context]',
exportAs: 'context',
},] }
];
/** @nocollapse */
ContextDirective.ctorParameters = function () { return [
{ type: ViewContainerRef, decorators: [{ type: Inject, args: [ViewContainerRef,] }] }
]; };
return ContextDirective;
}());
if (false) {
/**
* @type {?}
* @private
*/
ContextDirective.prototype.viewContainerRef;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Internal use {\@link Pipe} to create {\@link Injector}

@@ -401,8 +363,3 @@ * only when either content or context change

imports: [CommonModule],
declarations: [
PolymorpheusOutletComponent,
PolymorpheusTemplate,
ContextDirective,
InjectorPipe,
],
declarations: [PolymorpheusOutletComponent, PolymorpheusTemplate, InjectorPipe],
exports: [PolymorpheusOutletComponent, PolymorpheusTemplate],

@@ -424,3 +381,3 @@ },] }

export { POLYMORPHEUS_CONTEXT, PolymorpheusComponent, PolymorpheusModule, PolymorpheusOutletComponent, PolymorpheusTemplate, ContextDirective as ɵa, InjectorPipe as ɵb };
export { POLYMORPHEUS_CONTEXT, PolymorpheusComponent, PolymorpheusModule, PolymorpheusOutletComponent, PolymorpheusTemplate, InjectorPipe as ɵa };
//# sourceMappingURL=tinkoff-ng-polymorpheus.js.map

@@ -13,2 +13,3 @@ import { NgComponentOutlet } from '@angular/common';

readonly outlet?: NgComponentOutlet;
readonly proxy: {};
content: PolymorpheusContent<C> | null;

@@ -15,0 +16,0 @@ context: C;

{
"name": "@tinkoff/ng-polymorpheus",
"version": "3.1.8",
"version": "3.1.9",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": ">=5.0.0",

@@ -5,3 +5,2 @@ /**

export * from './public-api';
export { ContextDirective as ɵa } from './directives/context';
export { InjectorPipe as ɵb } from './pipes/injector';
export { InjectorPipe as ɵa } from './pipes/injector';

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

{"__symbolic":"module","version":4,"metadata":{"PolymorpheusComponent":{"__symbolic":"class","arity":2,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Type","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":11,"character":33,"context":{"typeName":"T"},"module":"./classes/component"}]},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":12,"character":35}]}],"createInjector":[{"__symbolic":"method"}]}},"PolymorpheusTemplate":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"ng-template[polymorpheus]","exportAs":"polymorpheus","inputs":["polymorpheus"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":14,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":14,"character":16}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":15,"character":9}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":17,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":17,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":16,"character":39,"context":{"typeName":"C"},"module":"./directives/template"}]},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":17,"character":71}]}],"check":[{"__symbolic":"method"}]},"statics":{"ngTemplateContextGuard":{"__symbolic":"function","parameters":["_dir","_ctx"],"value":true}}},"PolymorpheusOutletComponent":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"selector":"[polymorpheus-outlet]","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":25,"character":21},"member":"OnPush"},"template":"<ng-container\r\n *ngIf=\"isAdvanced(content)\"\r\n #mutableContext=\"context\"\r\n context\r\n [ngTemplateOutlet]=\"getTemplate(content, component)\"\r\n [ngTemplateOutletContext]=\"context\"\r\n>\r\n <ng-template #component>\r\n <ng-container\r\n *ngIf=\"guard(content)\"\r\n [ngComponentOutlet]=\"content.component\"\r\n [ngComponentOutletInjector]=\"content | injector : mutableContext.context\"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n<ng-container *ngIf=\"primitive\">\r\n <ng-container *ngIf=\"!template; else child\">{{primitive}}</ng-container>\r\n <ng-template #child>\r\n <ng-container\r\n [ngTemplateOutlet]=\"template\"\r\n [ngTemplateOutletContext]=\"{$implicit: primitive}\"\r\n ></ng-container>\r\n </ng-template>\r\n</ng-container>\r\n"}]}],"members":{"template":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":28,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":28,"character":18}]}]}],"outlet":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":31,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"NgComponentOutlet","line":31,"character":15}]}]}],"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":5}}]}],"context":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":5}}]}],"isAdvanced":[{"__symbolic":"method"}],"getTemplate":[{"__symbolic":"method"}],"guard":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngDoCheck":[{"__symbolic":"method"}]}},"POLYMORPHEUS_CONTEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":6,"character":40},"arguments":["Context from polymorpheus-outlet"]},"PolymorpheusContent":{"__symbolic":"interface"},"PolymorpheusHandler":{"__symbolic":"interface"},"PolymorpheusPrimitive":{"__symbolic":"interface"},"PolymorpheusModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":14}],"declarations":[{"__symbolic":"reference","name":"PolymorpheusOutletComponent"},{"__symbolic":"reference","name":"PolymorpheusTemplate"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"exports":[{"__symbolic":"reference","name":"PolymorpheusOutletComponent"},{"__symbolic":"reference","name":"PolymorpheusTemplate"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[context]","exportAs":"context"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":11,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":11,"character":16}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":11,"character":69}]}]}},"ɵb":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":7,"character":1},"arguments":[{"name":"injector"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":11,"character":17},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":11,"character":24}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":11,"character":61}]}],"transform":[{"__symbolic":"method"}]}}},"origins":{"PolymorpheusComponent":"./classes/component","PolymorpheusTemplate":"./directives/template","PolymorpheusOutletComponent":"./outlet/outlet.component","POLYMORPHEUS_CONTEXT":"./tokens/context","PolymorpheusContent":"./types/content","PolymorpheusHandler":"./types/handler","PolymorpheusPrimitive":"./types/primitive","PolymorpheusModule":"./polymorpheus.module","ɵa":"./directives/context","ɵb":"./pipes/injector"},"importAs":"@tinkoff/ng-polymorpheus"}
{"__symbolic":"module","version":4,"metadata":{"PolymorpheusComponent":{"__symbolic":"class","arity":2,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Type","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":11,"character":33,"context":{"typeName":"T"},"module":"./classes/component"}]},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":12,"character":35}]}],"createInjector":[{"__symbolic":"method"}]}},"PolymorpheusTemplate":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"ng-template[polymorpheus]","exportAs":"polymorpheus","inputs":["polymorpheus"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":14,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":14,"character":16}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":15,"character":9}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":17,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":17,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":16,"character":39,"context":{"typeName":"C"},"module":"./directives/template"}]},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":17,"character":71}]}],"check":[{"__symbolic":"method"}]},"statics":{"ngTemplateContextGuard":{"__symbolic":"function","parameters":["_dir","_ctx"],"value":true}}},"PolymorpheusOutletComponent":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"selector":"[polymorpheus-outlet]","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":25,"character":21},"member":"OnPush"},"template":"<ng-container\n *ngIf=\"isAdvanced(content)\"\n [ngTemplateOutlet]=\"getTemplate(content, component)\"\n [ngTemplateOutletContext]=\"context\"\n>\n <ng-template #component>\n <ng-container\n *ngIf=\"guard(content)\"\n [ngComponentOutlet]=\"content.component\"\n [ngComponentOutletInjector]=\"content | injector : proxy\"\n ></ng-container>\n </ng-template>\n</ng-container>\n<ng-container *ngIf=\"primitive\">\n <ng-container *ngIf=\"!template; else child\">{{primitive}}</ng-container>\n <ng-template #child>\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{$implicit: primitive}\"\n ></ng-container>\n </ng-template>\n</ng-container>\n"}]}],"members":{"template":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":28,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":28,"character":18}]}]}],"outlet":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":31,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"NgComponentOutlet","line":31,"character":15}]}]}],"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":5}}]}],"context":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":5}}]}],"isAdvanced":[{"__symbolic":"method"}],"getTemplate":[{"__symbolic":"method"}],"guard":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngDoCheck":[{"__symbolic":"method"}]}},"POLYMORPHEUS_CONTEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":6,"character":40},"arguments":["Context from polymorpheus-outlet"]},"PolymorpheusContent":{"__symbolic":"interface"},"PolymorpheusHandler":{"__symbolic":"interface"},"PolymorpheusPrimitive":{"__symbolic":"interface"},"PolymorpheusModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":14}],"declarations":[{"__symbolic":"reference","name":"PolymorpheusOutletComponent"},{"__symbolic":"reference","name":"PolymorpheusTemplate"},{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"PolymorpheusOutletComponent"},{"__symbolic":"reference","name":"PolymorpheusTemplate"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":7,"character":1},"arguments":[{"name":"injector"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":11,"character":17},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":11,"character":24}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":11,"character":61}]}],"transform":[{"__symbolic":"method"}]}}},"origins":{"PolymorpheusComponent":"./classes/component","PolymorpheusTemplate":"./directives/template","PolymorpheusOutletComponent":"./outlet/outlet.component","POLYMORPHEUS_CONTEXT":"./tokens/context","PolymorpheusContent":"./types/content","PolymorpheusHandler":"./types/handler","PolymorpheusPrimitive":"./types/primitive","PolymorpheusModule":"./polymorpheus.module","ɵa":"./pipes/injector"},"importAs":"@tinkoff/ng-polymorpheus"}

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