@ui-tool/core
Version:
42 lines • 2.22 kB
TypeScript
import { AfterViewInit, ChangeDetectorRef, ComponentRef, Injector, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
import { Subscription } from 'rxjs';
import { ISpinnerService } from '../../services/interfaces/spinner-service.interface';
import { DisplaySpinnerCommand } from '../../models/implementations/spinners/display-spinner-command';
import { ISpinnerCommand } from '../../models';
import * as i0 from "@angular/core";
declare type SpinnerCommandContext = {
command: DisplaySpinnerCommand;
componentRef: ComponentRef<any> | null;
};
export declare class SpinnerContainerComponent implements OnInit, AfterViewInit, OnDestroy {
protected readonly _spinnerService: ISpinnerService;
protected readonly _viewContainerRef: ViewContainerRef;
protected readonly _changeDetectorRef: ChangeDetectorRef;
private readonly __injector;
private __id;
private __preserveLatestRequest;
private __hostClass;
private readonly _visibilityEvent$;
private readonly __contexts;
private __localVisibilityRequestHandleSubscription;
protected _visibilityChangedSubscription: Subscription | undefined;
set id(value: string);
get id(): string;
set preserveLatestRequest(value: boolean);
get preserveLatestRequest(): boolean;
constructor(_spinnerService: ISpinnerService, _viewContainerRef: ViewContainerRef, _changeDetectorRef: ChangeDetectorRef, __injector: Injector);
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
protected _handleVisibilityChangedEvent(command: ISpinnerCommand | null): void;
protected _displaySpinner(displaySpinnerRequest: DisplaySpinnerCommand, index: number): void;
protected _dismissByRequestId(requestId: string, force?: boolean): void;
protected _getLatestContext(): {
context: SpinnerCommandContext | null;
index: number;
};
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerContainerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerContainerComponent, "cms-spinner-container", never, { "id": "id"; "preserveLatestRequest": "preserveLatestRequest"; }, {}, never, never>;
}
export {};
//# sourceMappingURL=spinner-container.component.d.ts.map