import { ChangeDetectorRef, ElementRef, OnInit, Renderer2, SimpleChange, TemplateRef } from "@angular/core"; import { Subject, Subscription } from "rxjs"; import * as i0 from "@angular/core"; /** * An overlay component typically hidden but when busy will show itself on top of the component it is added inside of. * This takes an array of boolean or boolean subjects as what is busy could be a combination of things. */ export declare class BusyComponent implements OnInit { private elementRef; private renderer; private changeDetectorRef; busy: boolean[]; busySubjects: Subject[]; getBusySubjects: () => Subject[]; busySubscriptions: Subscription[]; busyCount: number; parentSelector: string; rootClass: string; icon: string; iconSize: string; showIcon: boolean; mxAuto: boolean; myAuto: boolean; text: string; template: TemplateRef; config: any; constructor(elementRef: ElementRef, renderer: Renderer2, changeDetectorRef: ChangeDetectorRef); ngOnInit(): void; ngAfterViewInit(): void; /** * Listens to changes to the inputs and changes to the busy arrays. * * @param {{[p: string]: SimpleChange}} changes */ ngOnChanges(changes: { [propName: string]: SimpleChange; }): void; ngOnDestroy(): void; /** * If there is a subject boolean, this will listen to those subjects. There is a counter that is zero. When subjects * are busy the counter increments. When the subject becomes not busy, the counter decrements. When the counter arrives * back at zero, the overall busy is disabled. */ private listenToBusySubjects; /** * Listens to the window resize and adjusts its size. * * @param event */ windowResize(event: any): void; private resize; /** * Looks at the size of the parent of this component and makes its height and width match the parent. */ private resetSize; /** * Finds the margin in terms of a number by stripping off px, rem, or em. * * @param {string} margin * @returns {number} */ private getMargin; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }