import * as i0 from '@angular/core'; import { OnInit, AfterViewInit, EventEmitter, TemplateRef, ViewContainerRef, QueryList, PipeTransform, AfterContentInit, OnDestroy, DestroyRef, ChangeDetectorRef, ElementRef } from '@angular/core'; import { Subject } from 'rxjs'; import { TemplatePortal } from '@angular/cdk/portal'; import { ViewportRuler } from '@angular/cdk/scrolling'; import { Nullable } from '@fundamental-ngx/cdk/utils'; interface SplitterPaneResizeEvent { paneId: string; oldSize: string; newSize: string; } /** @dynamic */ declare class SplitterSplitPaneComponent implements OnInit, AfterViewInit { private readonly _viewContainerRef; private readonly _viewportRuler; private readonly _document; /** Size (height in vertical orientation, width in horizontal orientation) of the pane. */ set size(size: string); get size(): string; /** Id of the split pane. Generated if not provided. */ id: string; /** Required browser's window width in pixels when the panel will be shown. */ requiredParentWidth: number; /** Whether pane is reachable using pagination bar when is off-canvas. */ demandPane: boolean; /** Event emitted when the pane appears on/disappears out of canvas. */ readonly toggleOnCanvas: EventEmitter; /** Event emitted when the size is changed via the input property. */ readonly sizeChange: EventEmitter; /** @hidden */ _templateRef: TemplateRef; /** @hidden */ _actualSize: string; /** @hidden */ private _size; /** @hidden */ private _contentPortal; /** @hidden */ private _isOnCanvas; /** @hidden */ private _destroyRef; /** Returns if the pane is on canvas. */ get isOnCanvas(): boolean; /** @hidden */ get _content(): TemplatePortal | null; /** @hidden */ private get _window(); /** @hidden */ constructor(_viewContainerRef: ViewContainerRef, _viewportRuler: ViewportRuler, _document: Document | null); /** @hidden */ ngOnInit(): void; /** @hidden */ ngAfterViewInit(): void; /** Hide pane from the canvas. */ hideFromCanvas(): void; /** Show pane on the canvas. */ showOnCanvas(): void; /** @hidden */ private _listenToResize; /** @hidden */ private _processPaneOnCanvas; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SplitterComponent { /** @hidden */ _panes: QueryList; /** Id of the main pane. */ set defaultPaneId(value: string); get defaultPaneId(): string; /** @hidden */ _defaultPaneId$: Subject; /** @hidden */ private _defaultPaneId; /** Check whether certain pane is on canvas. */ isPaneOnCanvas(paneId: string): boolean; /** Hide certain pane from the canvas. */ hidePaneFromCanvas(paneId: string): void; /** Show certain pane from the canvas. */ showPaneOnCanvas(paneId: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SplitterPaginationComponent { private readonly _splitter; /** Array of pages ids. */ pages: string[]; /** Current page id. */ currentPage: string; /** Event emitted on page change. */ onPageChange: EventEmitter; /** @Hidden */ constructor(_splitter: SplitterComponent); /** @hidden */ _changePage(page: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NoDefaultPanePipe implements PipeTransform { private readonly _splitterPaneContainer; /** @hidden */ transform(value: SplitterSplitPaneComponent[], excludingCondition?: boolean): SplitterSplitPaneComponent[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare enum SplitterPaneContainerOrientation { vertical = "vertical", horizontal = "horizontal" } type SplitterPaneContainerOrientationType = keyof typeof SplitterPaneContainerOrientation | SplitterPaneContainerOrientation; interface SplitterPaneContainer { orientation: SplitterPaneContainerOrientationType; resizerType: Nullable; paneType: Nullable; resize: EventEmitter; _panes: QueryList; _directPanes: QueryList; _defaultPane: Nullable; _pages: string[]; _currentPage: string; } /** Splitter pane available types */ type PaneType = 'translucent' | 'solid'; /** Splitter pane deprecated types */ type DeprecatedPaneType = 'default' | 'transparent'; /** Splitter pane type input */ type PaneTypeInput = PaneType | DeprecatedPaneType; /** * Transforms pane type input to pane type * and logs deprecation warning if needed * @param paneType */ declare function transformPaneTypeInput(paneType: PaneTypeInput): Nullable; declare class SplitterPaneContainerComponent implements SplitterPaneContainer, AfterContentInit, AfterViewInit, OnDestroy { private readonly _cdr; private readonly _elementRef; private readonly _splitter; private readonly _viewportRuler; /** Pane type - vertical (default) or horizontal. */ orientation: SplitterPaneContainerOrientationType; /** * Style of the resizer. */ resizerType: Nullable; /** * Style of the pane */ paneType: Nullable; /** Event emitted after container's panes has resized. */ readonly resize: EventEmitter; /** @hidden */ _panes: QueryList; /** @hidden */ _directPanes: QueryList; /** @hidden */ _defaultPane: Nullable; /** @hidden */ _pages: string[]; /** @hidden */ _currentPage: string; /** @hidden */ _destroyRef: DestroyRef; /** @hidden */ private _paneSizes; /** @hidden */ private _wantedPanesSizes; /** @hidden */ private _initialPaneSizes; /** @hidden */ private _directPaneSubscription$; /** @hidden */ private _subscription$; /** @hidden */ get _isHorizontal(): boolean; /** @hidden */ get _isVertical(): boolean; /** @hidden */ get _isRootContainer(): boolean; /** @hidden */ get _panesOnCanvas(): SplitterSplitPaneComponent[]; /** @hidden */ get _activePanes(): SplitterSplitPaneComponent[]; /** @hidden */ private get _panesInRightOrderForResize(); /** @hidden */ private readonly _rtlService; /** @hidden */ private readonly _parentSplitterPaneContainer; /** @hidden */ constructor(_cdr: ChangeDetectorRef, _elementRef: ElementRef, _splitter: SplitterComponent, _viewportRuler: ViewportRuler); /** @hidden */ ngAfterContentInit(): void; /** @hidden */ ngAfterViewInit(): void; /** @hidden */ ngOnDestroy(): void; /** @hidden */ _getPaneStyles(pane: SplitterSplitPaneComponent): { [klass: string]: string; }; /** @hidden */ _startResize(): void; /** @hidden */ _endResize(): void; /** @hidden */ _onResize(paneId: string, diff: number): void; /** @hidden */ _onPageChange(page?: string): void; /** @hidden */ protected _SplitterSplitPaneComponent: (p: unknown) => SplitterSplitPaneComponent[]; /** @hidden */ private _updatePages; /** @hidden */ private _setPanes; /** @hidden */ private _setDefaultPane; /** @hidden */ private _resizePanesToFitInContainer; /** @hidden */ private _getPaneElementSizePx; /** @hidden */ private _getPaneElement; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_resizerType: PaneTypeInput; static ngAcceptInputType_paneType: PaneTypeInput; } /** @dynamic */ declare class SplitterResizerComponent implements OnDestroy { private readonly _elementRef; private readonly _cdr; private readonly _document; /** Orientation of the splitter's host pane container. */ orientation: SplitterPaneContainerOrientationType; /** Event emitted after resizing has started. */ startResize: EventEmitter; /** Event emitted after resizing has ended. */ endResize: EventEmitter; /** Event emitted while resizing. */ resize: EventEmitter; /** @hidden */ _start: number | null; /** @hidden */ _isInFocus: boolean; /** @hidden */ get _role(): string; /** @hidden */ get _ariaOrientation(): string; /** @hidden */ get _isHorizontal(): boolean; /** @hidden */ get _isVertical(): boolean; /** @hidden */ private _prevDiff; /** @hidden */ private _pointerMoveListener; /** @hidden */ constructor(_elementRef: ElementRef, _cdr: ChangeDetectorRef, _document: Document); /** @hidden */ _onMouseDown(event: MouseEvent): void; /** @hidden */ _onKeydown(event: KeyboardEvent): void; /** @hidden */ _onFocus(): void; /** @hidden */ _onBlur(): void; /** @hidden */ ngOnDestroy(): void; /** @hidden */ private _listenToPointerMove; /** @hidden */ private _emitResize; /** @hidden */ private _unsubscribe; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @deprecated * Use individual component imports. */ declare class SplitterModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NoDefaultPanePipe, SplitterComponent, SplitterModule, SplitterPaginationComponent, SplitterPaneContainerComponent, SplitterPaneContainerOrientation, SplitterResizerComponent, SplitterSplitPaneComponent, transformPaneTypeInput }; export type { DeprecatedPaneType, PaneType, PaneTypeInput, SplitterPaneContainer, SplitterPaneContainerOrientationType, SplitterPaneResizeEvent };