@tinkoff/ng-polymorpheus
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -8,3 +8,3 @@ import { Injector, Type } from '@angular/core'; | ||
*/ | ||
export declare class PolymorpheusComponent<T extends object, C extends object> { | ||
export declare class PolymorpheusComponent<T, C extends Record<any, any>> { | ||
readonly component: Type<T>; | ||
@@ -11,0 +11,0 @@ private readonly injector; |
@@ -5,3 +5,3 @@ import { DoCheck, Injector, OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; | ||
import * as i0 from "@angular/core"; | ||
export declare class PolymorpheusOutletDirective<C extends object> implements OnChanges, DoCheck { | ||
export declare class PolymorpheusOutletDirective<C extends Record<any, any>> implements OnChanges, DoCheck { | ||
private readonly viewContainerRef; | ||
@@ -8,0 +8,0 @@ private readonly injector; |
@@ -26,2 +26,2 @@ import { Injector } from '@angular/core'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctcG9seW1vcnBoZXVzL3NyYy9jbGFzc2VzL2NvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFPLE1BQU0sZUFBZSxDQUFDO0FBQzdDLE9BQU8sRUFBQyxvQkFBb0IsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBRXZEOzs7OztHQUtHO0FBQ0gsTUFBTSxPQUFPLHFCQUFxQjtJQUM5QixZQUNhLFNBQWtCLEVBQ1YsV0FBNEIsSUFBSTtRQUR4QyxjQUFTLEdBQVQsU0FBUyxDQUFTO1FBQ1YsYUFBUSxHQUFSLFFBQVEsQ0FBd0I7SUFDbEQsQ0FBQztJQUVKLGNBQWMsQ0FBQyxRQUFrQixFQUFFLE9BQVU7UUFDekMsT0FBTyxRQUFRLENBQUMsTUFBT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IEluamVjdG9yLCBjb250ZXh0OiBDKTogSW5qZWN0b3Ige1xyXG4gICAgICAgIHJldHVybiBJbmplY3Rvci5jcmVhdGUoe1xyXG4gICAgICAgICAgICBwYXJlbnQ6IHRoaXMuaW5qZWN0b3IgfHwgaW5qZWN0b3IsXHJcbiAgICAgICAgICAgIHByb3ZpZGVyczogW1xyXG4gICAgICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgICAgIHByb3ZpZGU6IFBPTFlNT1JQSEVVU19DT05URVhULFxyXG4gICAgICAgICAgICAgICAgICAgIHVzZVZhbHVlOiBjb250ZXh0LFxyXG4gICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgXSxcclxuICAgICAgICB9KTtcclxuICAgIH1cclxufVxyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctcG9seW1vcnBoZXVzL3NyYy9jbGFzc2VzL2NvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFPLE1BQU0sZUFBZSxDQUFDO0FBQzdDLE9BQU8sRUFBQyxvQkFBb0IsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBRXZEOzs7OztHQUtHO0FBQ0gsTUFBTSxPQUFPLHFCQUFxQjtJQUM5QixZQUNhLFNBQWtCLEVBQ1YsV0FBNEIsSUFBSTtRQUR4QyxjQUFTLEdBQVQsU0FBUyxDQUFTO1FBQ1YsYUFBUSxHQUFSLFFBQVEsQ0FBd0I7SUFDbEQsQ0FBQztJQUVKLGNBQWMsQ0FBQyxRQUFrQixFQUFFLE9BQVU7UUFDekMsT0FBTyxRQUFRLENBQUMsTUFBTSxDQUFDO1lBQ25CLE1BQU0sRUFBRSxJQUFJLENBQUMsUUFBUSx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WN0b3IuY3JlYXRlKHtcclxuICAgICAgICAgICAgcGFyZW50OiB0aGlzLmluamVjdG9yIHx8IGluamVjdG9yLFxyXG4gICAgICAgICAgICBwcm92aWRlcnM6IFtcclxuICAgICAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICAgICAgICBwcm92aWRlOiBQT0xZTU9SUEhFVVNfQ09OVEVYVCxcclxuICAgICAgICAgICAgICAgICAgICB1c2VWYWx1ZTogY29udGV4dCxcclxuICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIF0sXHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcbn1cclxuIl19 |
@@ -80,2 +80,2 @@ import { ChangeDetectorRef, ComponentFactoryResolver, Directive, Input, TemplateRef, } from '@angular/core'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0bGV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctcG9seW1vcnBoZXVzL3NyYy9kaXJlY3RpdmVzL291dGxldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0gsaUJBQWlCLEVBQ2pCLHdCQUF3QixFQUV4QixTQUFTLEVBSVQsS0FBSyxFQUdMLFdBQVcsR0FFZCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUMscUJBQXFCLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUMzRCxPQUFPLEVBQUMsZ0JBQWdCLEVBQUMsTUFBTSw4QkFBOEIsQ0FBQztBQUU5RCxPQUFPLEVBQUMsb0JBQW9CLEVBQUMsTUFBTSxZQUFZLENBQUM7O0FBS2hELE1BQU0sT0FBTywyQkFBMkI7SUFXcEMsWUFDcUIsZ0JBQWtDLEVBQ2xDLFFBQWtCLEVBQ2xCLFdBQTBDO1FBRjFDLHFCQUFnQixHQUFoQixnQkFBZ0IsQ0F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clxuICAgICkge31cclxuXHJcbiAgICBwcml2YXRlIGdldCB0ZW1wbGF0ZSgpOiBUZW1wbGF0ZVJlZjx1bmtub3duPiB7XHJcbiAgICAgICAgaWYgKGlzRGlyZWN0aXZlKHRoaXMuY29udGVudCkpIHtcclxuICAgICAgICAgICAgcmV0dXJuIHRoaXMuY29udGVudC50ZW1wbGF0ZTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiB0aGlzLmNvbnRlbnQgaW5zdGFuY2VvZiBUZW1wbGF0ZVJlZiA/IHRoaXMuY29udGVudCA6IHRoaXMudGVtcGxhdGVSZWY7XHJcbiAgICB9XHJcblxyXG4gICAgbmdPbkNoYW5nZXMoe2NvbnRlbnR9OiBTaW1wbGVDaGFuZ2VzKSB7XHJcbiAgICAgICAgaWYgKHRoaXMudmlld1JlZikge1xyXG4gICAgICAgICAgICB0aGlzLnZpZXdSZWYuY29udGV4dCA9IHRoaXMuZ2V0Q29udGV4dCgpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgaWYgKHRoaXMuY29tcG9uZW50UmVmKSB7XHJcbiAgICAgICAgICAgIHRoaXMuY29tcG9uZW50UmVmLmluamVjdG9yLmdldChDaGFuZ2VEZXRlY3RvclJlZikubWFya0ZvckNoZWNrKCk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZiAoIWNvbnRlbnQpIHtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgdGhpcy52aWV3Q29udGFpbmVyUmVmLmNsZWFyKCk7XHJcblxyXG4gICAgICAgIGlmIChpc0NvbXBvbmVudCh0aGlzLmNvbnRlbnQpKSB7XHJcbiAgICAgICAgICAgIGNvbnN0IHByb3h5ID0gbmV3IFByb3h5KHRoaXMuY29udGV4dCwge1xyXG4gICAgICAgICAgICAgICAgZ2V0OiAoXywga2V5KSA9PiB0aGlzLmNvbnRleHRba2V5IGFzIGtleW9mIENdLFxyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgY29uc3QgaW5qZWN0b3IgPSB0aGlzLmNvbnRlbnQuY3JlYXRlSW5qZWN0b3IodGhpcy5pbmplY3RvciwgcHJveHkpO1xyXG4gICAgICAgICAgICBjb25zdCBjb21wb25lbnRGYWN0b3J5ID0gaW5qZWN0b3JcclxuICAgICAgICAgICAgICAgIC5nZXQoQ29tcG9uZW50RmFjdG9yeVJlc29sdmVyKVxyXG4gICAgICAgICAgICAgICAgLnJlc29sdmVDb21wb25lbnRGYWN0b3J5KHRoaXMuY29udGVudC5jb21wb25lbnQpO1xyXG5cclxuICAgICAgICAgICAgdGhpcy5jb21wb25lbnRSZWYgPSB0aGlzLnZpZXdDb250YWluZXJSZWYuY3JlYXRlQ29tcG9uZW50KFxyXG4gICAgICAgICAgICAgICAgY29tcG9uZW50RmFjdG9yeSxcclxuICAgICAgICAgICAgICAgIDAsXHJcbiAgICAgICAgICAgICAgICBpbmplY3RvcixcclxuICAgICAgICAgICAgKTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLnZpZXdSZWYgPSB0aGlzLnZpZXdDb250YWluZXJSZWYuY3JlYXRlRW1iZWRkZWRWaWV3KFxyXG4gICAgICAgICAgICAgICAgdGhpcy50ZW1wbGF0ZSxcclxuICAgICAgICAgICAgICAgIHRoaXMuZ2V0Q29udGV4dCgpLFxyXG4gICAgICAgICAgICApO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBuZ0RvQ2hlY2soKSB7XHJcbiAgICAgICAgaWYgKGlzRGlyZWN0aXZlKHRoaXMuY29udGVudCkpIHtcclxuICAgICAgICAgICAgdGhpcy5jb250ZW50LmNoZWNrKCk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgZ2V0Q29udGV4dCgpOiB1bmtub3duIHtcclxuICAgICAgICByZXR1cm4gaXNUZW1wbGF0ZSh0aGlzLmNvbnRlbnQpXHJ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250ZW50IDogdGhpcy50ZW1wbGF0ZVJlZjtcclxuICAgIH1cclxuXHJcbiAgICBuZ09uQ2hhbmdlcyh7Y29udGVudH06IFNpbXBsZUNoYW5nZXMpIHtcclxuICAgICAgICBpZiAodGhpcy52aWV3UmVmKSB7XHJcbiAgICAgICAgICAgIHRoaXMudmlld1JlZi5jb250ZXh0ID0gdGhpcy5nZXRDb250ZXh0KCk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZiAodGhpcy5jb21wb25lbnRSZWYpIHtcclxuICAgICAgICAgICAgdGhpcy5jb21wb25lbnRSZWYuaW5qZWN0b3IuZ2V0KENoYW5nZURldGVjdG9yUmVmKS5tYXJrRm9yQ2hlY2soKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGlmICghY29udGVudCkge1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICB0aGlzLnZpZXdDb250YWluZXJSZWYuY2xlYXIoKTtcclxuXHJcbiAgICAgICAgaWYgKGlzQ29tcG9uZW50KHRoaXMuY29udGVudCkpIHtcclxuICAgICAgICAgICAgY29uc3QgcHJveHkgPSBuZXcgUHJveHkodGhpcy5jb250ZXh0LCB7XHJcbiAgICAgICAgICAgICAgICBnZXQ6IChfLCBrZXkpID0+IHRoaXMuY29udGV4dFtrZXkgYXMga2V5b2YgQ10sXHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICBjb25zdCBpbmplY3RvciA9IHRoaXMuY29udGVudC5jcmVhdGVJbmplY3Rvcih0aGlzLmluamVjdG9yLCBwcm94eSk7XHJcbiAgICAgICAgICAgIGNvbnN0IGNvbXBvbmVudEZhY3RvcnkgPSBpbmplY3RvclxyXG4gICAgICAgICAgICAgICAgLmdldChDb21wb25lbnRGYWN0b3J5UmVzb2x2ZXIpXHJcbiAgICAgICAgICAgICAgICAucmVzb2x2ZUNvbXBvbmVudEZhY3RvcnkodGhpcy5jb250ZW50LmNvbXBvbmVudCk7XHJcblxyXG4gICAgICAgICAgICB0aGlzLmNvbXBvbmVudFJlZiA9IHRoaXMudmlld0NvbnRhaW5lclJlZi5jcmVhdGVDb21wb25lbnQoXHJcbiAgICAgICAgICAgICAgICBjb21wb25lbnRGYWN0b3J5LFxyXG4gICAgICAgICAgICAgICAgMCxcclxuICAgICAgICAgICAgICAgIGluamVjdG9yLFxyXG4gICAgICAgICAgICApO1xyXG4gICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgIHRoaXMudmlld1JlZiA9IHRoaXMudmlld0NvbnRhaW5lclJlZi5jcmVhdGVFbWJlZGRlZFZpZXcoXHJcbiAgICAgICAgICAgICAgICB0aGlzLnRlbXBsYXRlLFxyXG4gICAgICAgICAgICAgICAgdGhpcy5nZXRDb250ZXh0KCksXHJcbiAgICAgICAgICAgICk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIG5nRG9DaGVjaygpIHtcclxuICAgICAgICBpZiAoaXNEaXJlY3RpdmUodGhpcy5jb250ZW50KSkge1xyXG4gICAgICAgICAgICB0aGlzLmNvbnRlbnQuY2hlY2soKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBnZXRDb250ZXh0KCk6IHVua25vd24ge1xyXG4gICAgICAgIHJldHVybiBpc1RlbXBsYXRlKHRoaXMuY29udGVudClcclxuICAgICAgICAgICAgPyB0aGlzLmNvbnRleHRcclxuICAgICAgICAgICAgOiBuZXcgUHJpbWl0aXZlQ29udGV4dChcclxuICAgICAgICAgICAgICAgICAgdHlwZW9mIHRoaXMuY29udGVudCA9PT0gJ2Z1bmN0aW9uJ1xyXG4gICAgICAgICAgICAgICAgICAgICAgPyB0aGlzLmNvbnRlbnQodGhpcy5jb250ZXh0KVxyXG4gICAgICAgICAgICAgICAgICAgICAgOiB0aGlzLmNvbnRlbnQsXHJcbiAgICAgICAgICAgICAgKTtcclxuICAgIH1cclxufVxyXG5cclxuZnVuY3Rpb24gaXNEaXJlY3RpdmU8QyBleHRlbmRzIFJlY29yZDxhbnksIGFueT4+KFxyXG4gICAgY29udGVudDogUG9seW1vcnBoZXVzQ29udGVudDxDPixcclxuKTogY29udGVudCBpcyBQb2x5bW9ycGhldXNUZW1wbGF0ZTxDPiB7XHJcbiAgICByZXR1cm4gY29udGVudCBpbnN0YW5jZW9mIFBvbHltb3JwaGV1c1RlbXBsYXRlO1xyXG59XHJcblxyXG5mdW5jdGlvbiBpc0NvbXBvbmVudDxDIGV4dGVuZHMgUmVjb3JkPGFueSwgYW55Pj4oXHJcbiAgICBjb250ZW50OiBQb2x5bW9ycGhldXNDb250ZW50PEM+LFxyXG4pOiBjb250ZW50IGlzIFBvbHltb3JwaGV1c0NvbXBvbmVudDxhbnksIEM+IHtcclxuICAgIHJldHVybiBjb250ZW50IGluc3RhbmNlb2YgUG9seW1vcnBoZXVzQ29tcG9uZW50O1xyXG59XHJcblxyXG5mdW5jdGlvbiBpc1RlbXBsYXRlPEMgZXh0ZW5kcyBSZWNvcmQ8YW55LCBhbnk+PihcclxuICAgIGNvbnRlbnQ6IFBvbHltb3JwaGV1c0NvbnRlbnQ8Qz4sXHJcbik6IGNvbnRlbnQgaXMgUG9seW1vcnBoZXVzVGVtcGxhdGU8Qz4gfCBUZW1wbGF0ZVJlZjxDPiB7XHJcbiAgICByZXR1cm4gaXNEaXJlY3RpdmUoY29udGVudCkgfHwgY29udGVudCBpbnN0YW5jZW9mIFRlbXBsYXRlUmVmO1xyXG59XHJcbiJdfQ== |
@@ -7,2 +7,2 @@ import { InjectionToken } from '@angular/core'; | ||
export const POLYMORPHEUS_CONTEXT = new InjectionToken('Context from *polymorpheusOutlet'); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXBvbHltb3JwaGV1cy9zcmMvdG9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vcnQge0luamVjdGlvblRva2VufSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbi8qKlxyXG4gKiBVc2UgdGhpcyB0b2tlbiB0byBhY2Nlc3MgY29udGV4dCB3aXRoaW4geW91ciBjb21wb25lbnRzIHdoZW5cclxuICogaW5zdGFudGlhdGluZyB0aGVtIHRocm91Z2gge0BsaW5rIFBvbHltb3JwaGV1c091dGxldERpcmVjdGl2ZX1cclxuICovXHJcbmV4cG9ydCBjb25zdCBQT0xZTU9SUEhFVVNfQ09OVEVYVCA9IG5ldyBJbmplY3Rpb25Ub2tlbjxSZWNvcmQ8YW55LCBhbnk+PihcclxuICAgICdDb250ZXh0IGZyb20gKnBvbHltb3JwaGV1c091dGxldCcsXHJcbik7XHJcbiJdfQ== |
export {}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXBvbHltb3JwaGV1cy9zcmMvdHlwZXMvY29udGVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtUZW1wbGF0ZVJlZn0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcbmltcG9ydCB7UG9seW1vcnBoZXVzQ29tcG9uZW50fSBmcm9tICcuLi9jbGFzc2VzL2NvbXBvbmVudCc7XHJcbmltcG9ydCB7UG9seW1vcnBoZXVzVGVtcGxhdGV9IGZyb20gJy4uL2RpcmVjdGl2ZXMvdGVtcGxhdGUnO1xyXG5pbXBvcnQge1BvbHltb3JwaGV1c0hhbmRsZXJ9IGZyb20gJy4vaGFuZGxlcic7XHJcbmltcG9ydCB7UG9seW1vcnBoZXVzUHJpbWl0aXZlfSBmcm9tICcuL3ByaW1pdGl2ZSc7XHJcblxyXG4vKipcclxuICogQWxsIGNvbnRlbnQgd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bW9ycGhldXNDb250ZW50PEMgZXh0ZW5kcyBSZWNvcmQ8YW55LCBhbnk+ID0ge30+ID1cclxuICAgIHwgVGVtcGxhdGVSZWY8Qz5cclxuICAgIHwgUG9seW1vcnBoZXVzVGVtcGxhdGU8Qz5cclxuICAgIHwgUG9seW1vcnBoZXVzQ29tcG9uZW50PGFueSwgQz5cclxuICAgIHwgUG9seW1vcnBoZXVzSGFuZGxlcjxDPlxyXG4gICAgfCBzdHJpbmdcclxuICAgIHwgbnVtYmVyXHJcbiAgICB8IG51bGxcclxuICAgIHwgdW5kZWZpbmVkO1xyXG4iXX0= |
export {}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXBvbHltb3JwaGV1cy9zcmMvdHlwZXMvaGFuZGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXHJcbiAqIEEgaGFuZGxlciBmdW5jdGlvbiByZWNlaXZpbmcgY29udGV4dCBhcyBpbnB1dCBhbmQgcmV0dXJuaW5nIGEgcHJpbWl0aXZlXHJcbiAqL1xyXG5leHBvcnQgdHlwZSBQb2x5bW9ycGhldXNIYW5kbGVyPEMgZXh0ZW5kcyBvYmplY3Q+ID0gKGNvbnRleHQ6IEMpID0+IHN0cmluZyB8IG51bWJlcjtcclxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXBvbHltb3JwaGV1cy9zcmMvdHlwZXMvaGFuZGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXHJcbiAqIEEgaGFuZGxlciBmdW5jdGlvbiByZWNlaXZpbmcgY29udGV4dCBhcyBpbnB1dCBhbmQgcmV0dXJuaW5nIGEgcHJpbWl0aXZlXHJcbiAqL1xyXG5leHBvcnQgdHlwZSBQb2x5bW9ycGhldXNIYW5kbGVyPEMgZXh0ZW5kcyBSZWNvcmQ8YW55LCBhbnk+PiA9IChcclxuICAgIGNvbnRleHQ6IEMsXHJcbikgPT4gc3RyaW5nIHwgbnVtYmVyO1xyXG4iXX0= |
export {}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpbWl0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctcG9seW1vcnBoZXVzL3NyYy90eXBlcy9wcmltaXRpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxyXG4gKiBQcmltaXRpdmUgdHlwZXMgdXNlZCBhcyBjb250ZW50IGJ5IHtAbGluayBQb2x5bW9ycGhldXNPdXRsZXREaXJlY3RpdmV9XHJcbiAqL1xyXG5leHBvcnQgdHlwZSBQb2x5bW9ycGhldXNQcmltaXRpdmUgPSBzdHJpbmcgfCBudW1iZXI7XHJcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpbWl0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctcG9seW1vcnBoZXVzL3NyYy90eXBlcy9wcmltaXRpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxyXG4gKiBAZGVwcmVjYXRlZDogdXNlIGBzdHJpbmcgfCBudW1iZXJgIGluc3RlYWRcclxuICogUHJpbWl0aXZlIHR5cGVzIHVzZWQgYXMgY29udGVudCBieSB7QGxpbmsgUG9seW1vcnBoZXVzT3V0bGV0RGlyZWN0aXZlfVxyXG4gKi9cclxuZXhwb3J0IHR5cGUgUG9seW1vcnBoZXVzUHJpbWl0aXZlID0gc3RyaW5nIHwgbnVtYmVyO1xyXG4iXX0= |
{ | ||
"name": "@tinkoff/ng-polymorpheus", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/core": ">=12.0.0" |
@@ -40,6 +40,24 @@ # Polymorpheus | ||
Please see [extensive demo](https://codesandbox.io/s/github/TinkoffCreditSystems/ng-polymorpheus/tree/master/projects/demo). | ||
Please see [extensive demo](https://stackblitz.com/edit/polymorpheus-demo) (wait for packages to install and run `npm start`). | ||
You can also [read about this concept in detail](https://medium.com/angular-in-depth/agnostic-components-in-angular-2427923b742d). | ||
### Accessing context in dynamic component | ||
If you use component content you can inject context with `POLYMORPHEUS_CONTEXT` token. | ||
**Important!** This object is _live_ so if you change it, your component will not be recreated: | ||
```ts | ||
@Component({ | ||
template: '{{context.active}}`, // <-- this will automatically update | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class MyComponent { | ||
constructor( | ||
@Inject(POLYMORPHEUS_CONTEXT) readonly context: { active: boolean } | ||
) {} | ||
} | ||
``` | ||
### Adding type to template context | ||
@@ -54,3 +72,3 @@ | ||
```html | ||
<ng-template #temlate="polymorpheus" [polymorpheus]="context" let-item> | ||
<ng-template #template="polymorpheus" [polymorpheus]="context" let-item> | ||
{{ item.toFixed(2) }} <-- type 'number' | ||
@@ -86,3 +104,3 @@ </ng-template> | ||
width="16" | ||
src="https://raw.githubusercontent.com/feathericons/feather/master/icons/twitter.svg" | ||
src="https://raw.githubusercontent.com/MarsiBarsi/readme-icons/main/twitter.svg" | ||
/></a> | ||
@@ -92,3 +110,3 @@ <a href="https://github.com/waterplea" title="Github" | ||
width="16" | ||
src="https://raw.githubusercontent.com/feathericons/feather/master/icons/github.svg" | ||
src="https://raw.githubusercontent.com/MarsiBarsi/readme-icons/main/github.svg" | ||
/></a> | ||
@@ -100,3 +118,3 @@ <a | ||
width="16" | ||
src="https://raw.githubusercontent.com/feathericons/feather/master/icons/send.svg" | ||
src="https://raw.githubusercontent.com/MarsiBarsi/readme-icons/main/send.svg" | ||
/></a> | ||
@@ -120,3 +138,3 @@ </div> | ||
width="16" | ||
src="https://raw.githubusercontent.com/feathericons/feather/master/icons/twitter.svg" | ||
src="https://raw.githubusercontent.com/MarsiBarsi/readme-icons/main/twitter.svg" | ||
/></a> | ||
@@ -128,3 +146,3 @@ <a | ||
width="16" | ||
src="https://raw.githubusercontent.com/feathericons/feather/master/icons/github.svg" | ||
src="https://raw.githubusercontent.com/MarsiBarsi/readme-icons/main/github.svg" | ||
/></a> | ||
@@ -136,3 +154,3 @@ <a | ||
width="16" | ||
src="https://raw.githubusercontent.com/feathericons/feather/master/icons/send.svg" | ||
src="https://raw.githubusercontent.com/MarsiBarsi/readme-icons/main/send.svg" | ||
/></a> | ||
@@ -139,0 +157,0 @@ </div> |
@@ -6,2 +6,2 @@ import { InjectionToken } from '@angular/core'; | ||
*/ | ||
export declare const POLYMORPHEUS_CONTEXT: InjectionToken<object>; | ||
export declare const POLYMORPHEUS_CONTEXT: InjectionToken<Record<any, any>>; |
@@ -5,6 +5,5 @@ import { TemplateRef } from '@angular/core'; | ||
import { PolymorpheusHandler } from './handler'; | ||
import { PolymorpheusPrimitive } from './primitive'; | ||
/** | ||
* All content types supported by {@link PolymorpheusOutletDirective} | ||
*/ | ||
export declare type PolymorpheusContent<C extends object = {}> = TemplateRef<C> | PolymorpheusTemplate<C> | PolymorpheusComponent<object, C> | PolymorpheusHandler<C> | PolymorpheusPrimitive; | ||
export declare type PolymorpheusContent<C extends Record<any, any> = {}> = TemplateRef<C> | PolymorpheusTemplate<C> | PolymorpheusComponent<any, C> | PolymorpheusHandler<C> | string | number | null | undefined; |
/** | ||
* A handler function receiving context as input and returning a primitive | ||
*/ | ||
export declare type PolymorpheusHandler<C extends object> = (context: C) => string | number; | ||
export declare type PolymorpheusHandler<C extends Record<any, any>> = (context: C) => string | number; |
/** | ||
* @deprecated: use `string | number` instead | ||
* Primitive types used as content by {@link PolymorpheusOutletDirective} | ||
*/ | ||
export declare type PolymorpheusPrimitive = string | number; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
92571
153
0