@versatiledatakit/shared
Version:
Versatile Data Kit Shared library enables reusability of shared features like: NgRx Redux, Error Handlers, Utils, Generic Components, etc.
27 lines (26 loc) • 1.5 kB
TypeScript
import { ViewContainerRef } from '@angular/core';
import * as i0 from "@angular/core";
/**
* ** Confirmation Container Component is created only once upon {@link ConfirmationService} initialization
* and is container for all contextually created ViewContainerRef instances for every single confirmation ask.
*
* - It is created only once, and its populated field {@link ConfirmationContainerComponent.viewContainerRef}
* is stored as ViewContainerRef in {@link ConfirmationService} for lifetime of the service as singleton.
*/
export declare class ConfirmationContainerComponent {
/**
* ** ViewContainerRef reference that is used as point where {@link ConfirmationService} insert contextual {@link ConfirmationComponent}
* one for every single confirmation ask when invokers call {@link ConfirmationService.confirm}.
*
* - Reference is singleton, and it is retrieved only once upon {@link ConfirmationService} initialization.
*/
readonly viewContainerRef: ViewContainerRef;
/**
* ** Input parameter that instructs Component to open/close modal (visualize/hide) confirmation view/s.
*
* - State is managed from {@link ConfirmationService}
*/
open: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationContainerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationContainerComponent, "shared-confirmation-container", never, { "open": "open"; }, {}, never, never>;
}