import * as _angular_core from '@angular/core'; import { TemplateRef, Signal } from '@angular/core'; import { TranslatableString } from '@siemens/element-translate-ng/translate'; /** * Copyright (c) Siemens 2016 - 2026 * SPDX-License-Identifier: MIT */ /** */ type CollapseTo = 'to-start' | 'to-end'; type SplitOrientation = 'horizontal' | 'vertical'; type SplitUnit = 'px' | 'fr'; interface Action { iconClass: string; tooltip: string; click: (evt: Event) => void; } interface PartState { expanded?: boolean; size?: number; } declare class SiSplitPartComponent { protected readonly icons: Record<"elementDoubleRight", string>; /** * Action buttons displayed in the split part header. * * @defaultValue [] */ readonly actions: _angular_core.InputSignal; /** * Defines whether and in which direction the split part can collapse. * When unset, the collapse button is hidden. * * @defaultValue undefined */ readonly collapsible: _angular_core.InputSignal; /** * Sets the icon class that is used in the buttons of split parts to * collapse and uncollapse the parts. */ readonly collapseIconClass: _angular_core.InputSignal; /** * Collapse only to the given min size. * * @defaultValue false */ readonly collapseToMinSize: _angular_core.InputSignalWithTransform; /** * Custom template for the split part header. The template receives the component instance as implicit context. */ readonly headerTemplate: _angular_core.InputSignal | undefined>; /** * Sets the title of the split part header. */ readonly heading: _angular_core.InputSignal; /** * Minimum size in px. * * @defaultValue 0 */ readonly minSize: _angular_core.InputSignalWithTransform; /** * When a split part is collapsed, the content gets hidden but it will * still remain within the DOM. If you want to remove and destroy the component * in collapsed mode and recreate it on un-collapse, set this property to * true. * * @defaultValue false */ readonly removeContentOnCollapse: _angular_core.InputSignalWithTransform; /** * Defines if the header of the split part is visible. Default is true. * * @defaultValue true */ readonly showHeader: _angular_core.InputSignalWithTransform; /** * Aria label for collapse button. Needed for a11y * * @defaultValue * ``` * t(() => $localize`:@@SI_SPLIT.COLLAPSE_LABEL:Collapse`) * ``` */ readonly collapseLabel: _angular_core.InputSignal; /** * An optional stateId to uniquely identify a component instance. * Required for persistence of ui state. */ readonly stateId: _angular_core.InputSignal; /** * Expanded size. */ readonly size: _angular_core.InputSignalWithTransform; /** * Unit for the configured {@link size}. */ readonly unit: _angular_core.InputSignal; /** * This toggles the behavior when collapsing this split part. * If enabled, all split parts between this one and the end of the split in the respective direction will be collapsed if this part is collapsed. * If disabled, only this split part will be collapsed. * * @defaultValue false */ readonly collapseOthers: _angular_core.InputSignalWithTransform; /** * Sets the initial expanded or collapsed state of the split part. * * @defaultValue true */ readonly expanded: _angular_core.InputSignalWithTransform; /** * Emits when the part is collapsed or expanded. */ readonly collapseChanged: _angular_core.OutputEmitterRef; /** * Emits the part's expanded state and size after it is toggled. */ readonly stateChange: _angular_core.OutputEmitterRef; /** @internal */ index: number; /** @internal */ readonly before: _angular_core.WritableSignal; /** @internal */ readonly after: _angular_core.WritableSignal; /** @internal */ readonly fractionalSize: _angular_core.WritableSignal; /** @internal */ readonly collapsedSize: _angular_core.Signal; /** * Internal, mutable collapsed state. Initialized from the {@link expanded} input but can be * overwritten while toggling, cascading to sibling parts or restoring the persisted ui state. * @internal */ readonly collapsedState: _angular_core.WritableSignal; /** * Internal, mutable collapse direction. Initialized from the {@link collapsible} * input but can be overwritten while cascading collapse state to sibling parts. * @internal */ readonly collapseDirectionState: _angular_core.WritableSignal; /** * Get collapsed state. * @returns True if the split part is collapsed, false is expanded. */ get collapsed(): boolean; /** @internal */ readonly expandedSize: _angular_core.WritableSignal; /** @internal */ readonly actualSize: _angular_core.Signal; /** @internal */ saveUIState: () => void; /** @internal */ readonly nextExpandedAfter: _angular_core.Signal; private readonly elementRef; protected headerContext: { $implicit: SiSplitPartComponent; }; constructor(); /** @internal */ refreshSizePx(orientation: SplitOrientation): void; /** * Toggles the collapsed or expanded state. */ toggleCollapse(): void; private refreshCollapsedToEnd; private refreshCollapseToStart; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } interface Gutter { before: SiSplitPartComponent; after: SiSplitPartComponent; visible: Signal; } declare class SiSplitComponent { /** * Size of the gutter (divider) between split parts in pixels. * * @defaultValue 16 */ readonly gutterSize: _angular_core.InputSignal; /** * Defines the split layout direction. * * @defaultValue 'horizontal' */ readonly orientation: _angular_core.InputSignal; /** * An optional stateId to uniquely identify a component instance. * Required for persistence of ui state. */ readonly stateId: _angular_core.InputSignal; /** * Emits the sizes of all parts as percentages when the user resizes a gutter. */ readonly sizesChange: _angular_core.OutputEmitterRef; protected readonly parts: Signal; protected readonly gutters: _angular_core.WritableSignal; private readonly gridTemplate; protected readonly gridTemplateRows: Signal; protected readonly gridTemplateColumns: Signal; protected readonly gridTemplateAreas: Signal; private readonly elementRef; private readonly ngZone; private readonly changeDetectorRef; private readonly document; private readonly uiStateService; private readonly destroyRef; private readonly fractionalSizeToExpandedSizeFactor; private readonly initialized; constructor(); private setupParts; private refreshAllPartSizes; protected resizeStart(gutter: Gutter, event: Event): void; private emitSizesChange; private measureContainerSize; private getPosition; private saveUIState; private restoreFromUIState; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class SiSplitModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { SiSplitComponent, SiSplitModule, SiSplitPartComponent }; export type { Action, CollapseTo, PartState, SplitOrientation, SplitUnit };