@tinkoff/ng-polymorpheus
Advanced tools
Comparing version 4.0.10 to 4.0.11
@@ -40,6 +40,7 @@ (function (global, factory) { | ||
* @param injector — optional {@link Injector} for lazy loaded module case | ||
* | ||
* TODO: Remove `Type` generic as it is irrelevant, remove `null` from injector type | ||
*/ | ||
var PolymorpheusComponent = /** @class */ (function () { | ||
function PolymorpheusComponent(component, injector) { | ||
if (injector === void 0) { injector = null; } | ||
this.component = component; | ||
@@ -46,0 +47,0 @@ this.injector = injector; |
@@ -7,8 +7,10 @@ import { Injector, Type } from '@angular/core'; | ||
* @param injector — optional {@link Injector} for lazy loaded module case | ||
* | ||
* TODO: Remove `Type` generic as it is irrelevant, remove `null` from injector type | ||
*/ | ||
export declare class PolymorpheusComponent<T, C> { | ||
export declare class PolymorpheusComponent<T, C = any> { | ||
readonly component: Type<T>; | ||
private readonly injector; | ||
constructor(component: Type<T>, injector?: Injector | null); | ||
private readonly injector?; | ||
constructor(component: Type<T>, injector?: Injector | null | undefined); | ||
createInjector(injector: Injector, useValue?: C): Injector; | ||
} |
@@ -9,8 +9,8 @@ import { ChangeDetectorRef, TemplateRef } from '@angular/core'; | ||
private readonly changeDetectorRef; | ||
polymorpheus: C | string; | ||
polymorpheus: C | ''; | ||
constructor(template: TemplateRef<C>, changeDetectorRef: ChangeDetectorRef); | ||
check(): void; | ||
static ngTemplateContextGuard<T>(_dir: PolymorpheusTemplate<T>, _ctx: any): _ctx is T extends string ? any : T; | ||
static ngTemplateContextGuard<T>(_dir: PolymorpheusTemplate<T>, _ctx: any): _ctx is T extends '' ? any : T; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<PolymorpheusTemplate<any>, [{ self: true; }, null]>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<PolymorpheusTemplate<any>, "ng-template[polymorpheus]", ["polymorpheus"], { "polymorpheus": "polymorpheus"; }, {}, never>; | ||
} |
@@ -8,5 +8,7 @@ import { Injector } from '@angular/core'; | ||
* @param injector — optional {@link Injector} for lazy loaded module case | ||
* | ||
* TODO: Remove `Type` generic as it is irrelevant, remove `null` from injector type | ||
*/ | ||
export class PolymorpheusComponent { | ||
constructor(component, injector = null) { | ||
constructor(component, injector) { | ||
this.component = component; | ||
@@ -27,2 +29,2 @@ this.injector = injector; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctcG9seW1vcnBoZXVzL3NyYy9jbGFzc2VzL2NvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFPLE1BQU0sZUFBZSxDQUFDO0FBQzdDLE9BQU8sRUFBQyxvQkFBb0IsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBRXZEOzs7OztHQUtHO0FBQ0gsTUFBTSxPQUFPLHFCQUFxQjtJQUM5QixZQUNhLFNBQWtCLEVBQ1YsV0FBNEIsSUFBSTtRQUR4QyxjQUFTLEdBQVQsU0FBUyxDQUFTO1FBQ1YsYUFBUSxHQUFSLFFBQVEsQ0FBd0I7SUFDbEQsQ0FBQztJQUVKLGNBQWMsQ0FBQyxRQUFrQixFQUFFLFFBQVk7UUFDM0MsT0FBTyxRQUFRLENBQUMsTUFBTSxDQUFDO1lBQ25CLE1BQU0sRUFBRSxJQUFJLENBQUMsUUFBUSxJQUFJLFFBQVE7WUFDakMsU0FBUyxFQUFFO2dCQUNQO29CQUNJLE9BQU8sRUFBRSxvQkFBb0I7b0JBQzdCLFFBQVE7aUJBQ1g7YUFDSjtTQUNKLENBQUMsQ0FBQztJQUNQLENBQUM7Q0FDSiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7SW5qZWN0b3IsIFR5cGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5pbXBvcnQge1BPTFlNT1JQSEVVU19DT05URVhUfSBmcm9tICcuLi90b2tlbnMvY29udGV4dCc7XHJcblxyXG4vKipcclxuICogV3JhcHBlciBjbGFzcyBmb3IgYSBjb21wb25lbnQgdGhhdCB3aWxsIGJlIHVzZWQgYXMgY29udGVudCBmb3Ige0BsaW5rIFBvbHltb3JwaGV1c091dGxldERpcmVjdGl2ZX1cclxuICpcclxuICogQHBhcmFtIGNvbXBvbmVudCDigJQgYW4gQW5ndWxhciBjb21wb25lbnQgdG8gYmUgZHluYW1pY2FsbHkgY3JlYXRlZFxyXG4gKiBAcGFyYW0gaW5qZWN0b3Ig4oCUIG9wdGlvbmFsIHtAbGluayBJbmplY3Rvcn0gZm9yIGxhenkgbG9hZGVkIG1vZHVsZSBjYXNlXHJcbiAqL1xyXG5leHBvcnQgY2xhc3MgUG9seW1vcnBoZXVzQ29tcG9uZW50PFQsIEM+IHtcclxuICAgIGNvbnN0cnVjdG9yKFxyXG4gICAgICAgIHJlYWRvbmx5IGNvbXBvbmVudDogVHlwZTxUPixcclxuICAgICAgICBwcml2YXRlIHJlYWRvbmx5IGluamVjdG9yOiBJbmplY3RvciB8IG51bGwgPSBudWxsLFxyXG4gICAgKSB7fVxyXG5cclxuICAgIGNyZWF0ZUluamVjdG9yKGluamVjdG9yOiBJbmplY3RvciwgdXNlVmFsdWU/OiBDKTogSW5qZWN0b3Ige1xyXG4gICAgICAgIHJldHVybiBJbmplY3Rvci5jcmVhdGUoe1xyXG4gICAgICAgICAgICBwYXJlbnQ6IHRoaXMuaW5qZWN0b3IgfHwgaW5qZWN0b3IsXHJcbiAgICAgICAgICAgIHByb3ZpZGVyczogW1xyXG4gICAgICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgICAgIHByb3ZpZGU6IFBPTFlNT1JQSEVVU19DT05URVhULFxyXG4gICAgICAgICAgICAgICAgICAgIHVzZVZhbHVlLFxyXG4gICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgXSxcclxuICAgICAgICB9KTtcclxuICAgIH1ccl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3Ige0BsaW5rIFBvbHltb3JwaGV1c091dGxldERpcmVjdGl2ZX1cclxuICpcclxuICogQHBhcmFtIGNvbXBvbmVudCDigJQgYW4gQW5ndWxhciBjb21wb25lbnQgdG8gYmUgZHluYW1pY2FsbHkgY3JlYXRlZFxyXG4gKiBAcGFyYW0gaW5qZWN0b3Ig4oCUIG9wdGlvbmFsIHtAbGluayBJbmplY3Rvcn0gZm9yIGxhenkgbG9hZGVkIG1vZHVsZSBjYXNlXHJcbiAqXHJcbiAqIFRPRE86IFJlbW92ZSBgVHlwZWAgZ2VuZXJpYyBhcyBpdCBpcyBpcnJlbGV2YW50LCByZW1vdmUgYG51bGxgIGZyb20gaW5qZWN0b3IgdHlwZVxyXG4gKi9cclxuZXhwb3J0IGNsYXNzIFBvbHltb3JwaGV1c0NvbXBvbmVudDxULCBDID0gYW55PiB7XHJcbiAgICBjb25zdHJ1Y3RvcihcclxuICAgICAgICByZWFkb25seSBjb21wb25lbnQ6IFR5cGU8VD4sXHJcbiAgICAgICAgcHJpdmF0ZSByZWFkb25seSBpbmplY3Rvcj86IEluamVjdG9yIHwgbnVsbCxcclxuICAgICkge31cclxuXHJcbiAgICBjcmVhdGVJbmplY3RvcihpbmplY3RvcjogSW5qZWN0b3IsIHVzZVZhbHVlPzogQyk6IEluamVjdG9yIHtcclxuICAgICAgICByZXR1cm4gSW5qZWN0b3IuY3JlYXRlKHtcclxuICAgICAgICAgICAgcGFyZW50OiB0aGlzLmluamVjdG9yIHx8IGluamVjdG9yLFxyXG4gICAgICAgICAgICBwcm92aWRlcnM6IFtcclxuICAgICAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICAgICAgICBwcm92aWRlOiBQT0xZTU9SUEhFVVNfQ09OVEVYVCxcclxuICAgICAgICAgICAgICAgICAgICB1c2VWYWx1ZSxcclxuICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIF0sXHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcbn1cclxuIl19 |
@@ -37,2 +37,2 @@ import { ChangeDetectorRef, Directive, Inject, Self, TemplateRef } from '@angular/core'; | ||
}] }]; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1wb2x5bW9ycGhldXMvc3JjL2RpcmVjdGl2ZXMvdGVtcGxhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLGlCQUFpQixFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQUUsSUFBSSxFQUFFLFdBQVcsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFFdEY7O0dBRUc7QUFNSCxNQUFNLE9BQU8sb0JBQW9CO0lBRzdCLFlBR2EsUUFBd0IsRUFDVyxpQkFBb0M7UUFEdkUsYUFBUSxHQUFSLFFBQVEsQ0FBZ0I7UUFDVyxzQkFBaUIsR0FBakIsaUJBQWlCLENBQW1CO1FBTnBGLGlCQUFZLEdBQWUsRUFBRSxDQUFDO0lBTzNCLENBQUM7SUFFSixLQUFLO1FBQ0QsSUFBSSxDQUFDLGlCQUFpQixDQUFDLFlBQVksRUFBRSxDQUFDO0lBQzFDLENBQUM7SUFFRCxNQUFNLENBQUMsc0JBQXNCLENBQ3pCLElBQTZCLEVBQzdCLElBQVM7UUFFVCxPQUFPLElBQUksQ0FBQztJQUNoQixDQUFDOztvSUFuQlEsb0JBQW9CLGtCQUlqQixXQUFXLHlCQUdYLGlCQUFpQjt3SEFQcEIsb0JBQW9COzJGQUFwQixvQkFBb0I7a0JBTGhDLFNBQVM7bUJBQUM7b0JBQ1AsUUFBUSxFQUFFLDJCQUEyQjtvQkFDckMsUUFBUSxFQUFFLGNBQWM7b0JBQ3hCLE1BQU0sRUFBRSxDQUFDLGNBQWMsQ0FBQztpQkFDM0I7OzBCQUtRLE1BQU07MkJBQU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b250ZW50PEMgPSBhbnk+ID1cclxuICAgIHwgVGVtcGxhdGVSZWY8UGFydGlhbDxDPj5cclxuICAgIHwgUG9seW1vcnBoZXVzVGVtcGxhdGU8UGFydGlhbDxDPiB8ICcnPiAvLyBzdHJpbmcgaXMgdW50eXBlZCwgZS5nLiAnYW55J1xyXG4gICAgfCBQb2x5bW9ycGhldXNDb21wb25lbnQ8YW55LCBDPlxyXG4gICAgfCBQb2x5bW9ycGhldXNIYW5kbGVyPEM+XHJcbiAgICB8IHN0cmluZ1xyXG4gICAgfCBudW1iZXJcclxuICAgIHwgbnVsbFxyXG4gICAgfCB1bmRlZmluZWQ7XHJcbiJdfQ== |
@@ -15,5 +15,7 @@ import * as i0 from '@angular/core'; | ||
* @param injector — optional {@link Injector} for lazy loaded module case | ||
* | ||
* TODO: Remove `Type` generic as it is irrelevant, remove `null` from injector type | ||
*/ | ||
class PolymorpheusComponent { | ||
constructor(component, injector = null) { | ||
constructor(component, injector) { | ||
this.component = component; | ||
@@ -20,0 +22,0 @@ this.injector = injector; |
{ | ||
"name": "@tinkoff/ng-polymorpheus", | ||
"version": "4.0.10", | ||
"version": "4.0.11", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/core": ">=12.0.0" |
@@ -8,2 +8,2 @@ import { TemplateRef } from '@angular/core'; | ||
*/ | ||
export declare type PolymorpheusContent<C = any> = TemplateRef<Partial<C>> | PolymorpheusTemplate<Partial<C> | string> | PolymorpheusComponent<any, C> | PolymorpheusHandler<C> | string | number | null | undefined; | ||
export declare type PolymorpheusContent<C = any> = TemplateRef<Partial<C>> | PolymorpheusTemplate<Partial<C> | ''> | PolymorpheusComponent<any, C> | PolymorpheusHandler<C> | string | number | null | undefined; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100260
765