import { BehaviorSubject, Observable, ReplaySubject, Subject } from 'rxjs'; import * as i0 from '@angular/core'; import { OnInit, ElementRef, EventEmitter, ViewRef, DestroyRef, Type, WritableSignal, ViewContainerRef, OnDestroy } from '@angular/core'; import { HsLayoutService } from 'hslayers-ng/services/layout'; import { KeyNumberDict } from 'hslayers-ng/config'; declare function toArray(panels: string): string[]; declare class HsPanelHeaderComponent implements OnInit { hsLayoutService: HsLayoutService; private hsLanguageService; private elementRef; private cdr; extraButtons: ElementRef; active: string; private destroyRef; name: string; /** * Part of translation string which exists on 'translationModule' module * eg. COMPOSITIONS --\> which will be used for translation as 'translationModule'.COMPOSITIONS */ panelTabs: string[]; translationModule: string; tabSelected: EventEmitter; selectedTab$: BehaviorSubject; ngOnInit(): void; /** * Check if there is some extra content */ hasExtraButtons(): boolean; /** * Next value of activated tab to the BehaviorSubject */ tabClicked(tab: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_panelTabs: string; } interface HsPanelComponent { unpinned?: boolean; viewRef: ViewRef; data: any; name: string; isVisible$: Observable; /** * Optional function so panel can clean up * after itself (delete data, related components etc.) * when destroyed manually by HsPanelContainerService.destroy */ cleanup?(): void; } declare class HsPanelBaseComponent implements HsPanelComponent, OnInit { name: string; viewRef: ViewRef; data: any; isVisible$: Observable; panelWidthClass: string; /** * Control to make sure HsPanelBaseComponent ngOnInit was run eg. * was called from parent ngOnInit or when parents ngOnInit is not defined */ private baseComponentInitRun; hsLayoutService: HsLayoutService; destroyRef: DestroyRef; constructor(); ngOnInit(): void; /** * Set panelWidthClass */ private getPanelWidthClass; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HsGuiOverlayBaseComponent implements HsPanelComponent, OnInit { name: string; viewRef: ViewRef; data: any; isVisible$: Observable; /** * Control to make sure HsGuiOverlayBaseComponent ngOnInit was run eg. * was called from parent ngOnInit or when parents ngOnInit is not defined */ private baseComponentInitRun; hsLayoutService: HsLayoutService; destroyRef: DestroyRef; constructor(); ngOnInit(): void; /** * Determine component visibility */ componentEnabled(): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HsPanelItem { component: Type; data: any; constructor(component: Type, data: any); } interface HsPanelContainerServiceInterface { panels: WritableSignal; panelObserver: ReplaySubject; panelDestroyObserver: Subject; setPanelWidth?(panelWidths: KeyNumberDict, componentRefInstance: HsPanelComponent): any; create(component: Type, data: any): void; destroy(component: HsPanelComponent): void; } declare class HsPanelHostDirective { viewContainerRef: ViewContainerRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class HsPanelContainerComponent implements OnInit, OnDestroy { private hsConfig; private hsLog; panelHost: HsPanelHostDirective; /** Service which manages the list of panels */ service: HsPanelContainerServiceInterface; /** * Miscellaneous data object to set to each of the panels inside this container. * This is used if undefined value is passed to the create functions data parameter. */ data: any; /** * Set this to true to not clear the ReplaySubject on container destruction because * panels are added to ReplaySubject from app component and we cant re-add them. */ reusePanelObserver?: boolean; panelObserver?: ReplaySubject; init: EventEmitter; interval: any; private destroyRef; ngOnDestroy(): void; ngOnInit(): void; destroyPanel(panel: HsPanelComponent): void; loadPanel(panelItem: HsPanelItem): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HsPanelHelpersModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { HsGuiOverlayBaseComponent, HsPanelBaseComponent, HsPanelContainerComponent, HsPanelHeaderComponent, HsPanelHelpersModule, HsPanelHostDirective, HsPanelItem, toArray }; export type { HsPanelComponent, HsPanelContainerServiceInterface };