import * as _angular_cdk_bidi from '@angular/cdk/bidi'; import { Directionality } from '@angular/cdk/bidi'; import * as _angular_core from '@angular/core'; import { TemplateRef, ElementRef } from '@angular/core'; import { NzResizeObserver } from 'ng-zorro-antd/cdk/resize-observer'; import { NzDestroyService } from 'ng-zorro-antd/core/services'; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ type NzSplitterLayout = 'horizontal' | 'vertical'; type NzSplitterCollapsible = boolean | NzSplitterCollapseOption; interface NzSplitterCollapseOption { start?: boolean; end?: boolean; } declare class NzSplitterPanelComponent { readonly nzDefaultSize: _angular_core.InputSignal; readonly nzMin: _angular_core.InputSignal; readonly nzMax: _angular_core.InputSignal; readonly nzSize: _angular_core.InputSignal; readonly nzCollapsible: _angular_core.InputSignal; readonly nzResizable: _angular_core.InputSignalWithTransform; readonly contentTemplate: _angular_core.Signal>; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } interface PanelSize { size: string | number | undefined; postPxSize: number; percentage: number; min: string | number | undefined; max: string | number | undefined; postPercentMinSize: number; postPercentMaxSize: number; } interface ResizableInfo { resizable: boolean; collapsible: Required; } declare class NzSplitterComponent { /** ------------------- Props ------------------- */ readonly nzLayout: _angular_core.InputSignal; readonly nzLazy: _angular_core.InputSignalWithTransform; readonly nzResizeStart: _angular_core.OutputEmitterRef; readonly nzResize: _angular_core.OutputEmitterRef; readonly nzResizeEnd: _angular_core.OutputEmitterRef; protected readonly destroy$: NzDestroyService; protected readonly elementRef: ElementRef; protected readonly directionality: Directionality; protected readonly resizeObserver: NzResizeObserver; protected readonly document: Document; protected readonly dir: _angular_core.Signal<_angular_cdk_bidi.Direction>; /** ------------------- Panels ------------------- */ protected readonly panels: _angular_core.Signal; protected readonly panelProps: _angular_core.Signal<{ defaultSize: string | number | undefined; size: string | number | undefined; min: string | number | undefined; max: string | number | undefined; resizable: boolean; collapsible: NzSplitterCollapseOption; contentTemplate: _angular_core.TemplateRef; }[]>; /** ------------------- Sizes ------------------- */ /** * Observe the size of the container. */ private readonly containerBox; /** * The size of the container, used to calculate the percentage size and flex basis of each panel. */ protected readonly containerSize: _angular_core.Signal; /** * Derived from defaultSize of each panel. * After that it will be updated by the resize event with **real** size in pixels. */ protected readonly innerSizes: _angular_core.WritableSignal<(string | number | undefined)[]>; /** * Calculate the size of each panel based on the container size and the percentage size. */ protected readonly sizes: _angular_core.Signal; protected readonly ariaInfos: _angular_core.Signal<{ ariaNow: number; ariaMin: number; ariaMax: number; }[]>; private getPxSizes; /** ------------------ Resize ------------------ */ /** * The index of the panel that is being resized. * @note Mark the moving splitter bar as activated to show the dragging effect even if the mouse is outside the * splitter container. */ protected readonly movingIndex: _angular_core.WritableSignal<{ index: number; confirmed: boolean; } | null>; /** * The offset of preview position (lazy mode) when dragging the splitter bar. * Constrained by the min and max size of the target panel. */ protected readonly constrainedOffset: _angular_core.WritableSignal; /** * The resizable information of each splitter bar. */ protected readonly resizableInfos: _angular_core.Signal; /** * Handle the resize start event for the specified panel. * @param index The index of the panel. * @param startPos The start position of the resize event. */ protected startResize(index: number, startPos: [x: number, y: number]): void; /** * Update the sizes of specified panels based on the move offset. * @param index The index of the panel. * @param offset The move offset in pixels. */ private updateOffset; /** ------------------ Resize ------------------ */ /** * Record the original size of the collapsed panel. * Used to restore the size when the panel is expanded back. */ private readonly cacheCollapsedSize; /** * Collapse the specified panel. * @param index The index of the panel to collapse. * @param type The type of collapse, either `start` or `end`. */ protected collapse(index: number, type: 'start' | 'end'): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class NzSplitterModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { NzSplitterComponent, NzSplitterModule, NzSplitterPanelComponent }; export type { NzSplitterCollapseOption, NzSplitterCollapsible, NzSplitterLayout };