import * as _angular_core from '@angular/core'; import { OnInit, OnChanges, SimpleChanges } from '@angular/core'; import { SplitUnit } from '@siemens/element-ng/split'; import { TranslatableString } from '@siemens/element-translate-ng/translate'; declare class SiMainDetailContainerComponent implements OnInit, OnChanges { protected readonly icons: Record<"elementBack", string>; private readonly animationDuration; private readonly elementRef; private readonly resizeObserver; private readonly changeDetectorRef; private readonly destroyRef; private readonly splitElement; private readonly mainSplitPart; /** * A numeric value defining the minimum width in px, which the container needs * to be displayed in its large layout. Whenever smaller than * this threshold, the small layout will be used. Default is * value is BOOTSTRAP_BREAKPOINTS.mdMinimum. * * @defaultValue BOOTSTRAP_BREAKPOINTS.mdMinimum */ readonly largeLayoutBreakpoint: _angular_core.InputSignal; /** * Whether the main-detail layout component has a large size or not, * `true` if the container´s width matches or exceeds the `largeLayoutBreakpoint`. */ hasLargeSize: boolean; /** * Emits whether the components size is large enough to display * main and details views next to each other or not. */ readonly hasLargeSizeChange: _angular_core.OutputEmitterRef; /** * Whether the details are currently active or not, mostly relevant in the * responsive scenario when the viewport only shows either the main or the detail. * * @defaultValue false */ readonly detailsActive: _angular_core.ModelSignal; /** * The heading of the main-detail layout component, usually a page heading. * * @defaultValue '' */ readonly heading: _angular_core.InputSignal; /** * Whether the heading should be truncated (single line) or not. * Default value is `false`. * * @defaultValue false */ readonly truncateHeading: _angular_core.InputSignalWithTransform; /** * The heading of the detail area. * * @defaultValue '' */ readonly detailsHeading: _angular_core.InputSignal; /** * Whether the main and detail parts should be resizable by a splitter or not. * This is only supported in the 'large' scenario (when `hasLargeSize` is `true`). * Default value is `false`. * * @defaultValue false */ readonly resizableParts: _angular_core.InputSignalWithTransform; /** * You can hide the back button in the mobile view by setting true. Required * in add, edit workflows on mobile sizes. During add or edit, the back button * should be hidden. Default value is `false`. * * @defaultValue false */ readonly hideBackButton: _angular_core.InputSignalWithTransform; /** * Details back button text. Required for a11y. * * @defaultValue * ``` * t(() => $localize`:@@SI_MAIN_DETAIL_CONTAINER.BACK:Back`) * ``` */ readonly detailsBackButtonText: _angular_core.InputSignal; /** * CSS class(es) applied to the outermost container. Per default, Bootstrap classes * to handle responsive paddings are applied: `px-6 pt-6 px-md-9`. * * @defaultValue 'px-6 pt-6 px-md-9' */ readonly containerClass: _angular_core.InputSignal; /** * CSS class(es) applied to the main container. In combination with `containerClass`, * this allows for settings individual padding and margin values on the individual containers. * * @defaultValue 'pb-6' */ readonly mainContainerClass: _angular_core.InputSignal; /** * CSS class(es) applied to the detail container. In combination with `containerClass`, * this allows for settings individual padding and margin values on the individual containers. * * @defaultValue 'pb-6' */ readonly detailContainerClass: _angular_core.InputSignal; /** * Unit used for the main split part when {@link resizableParts} is enabled. * * @defaultValue 'px' */ readonly mainContainerWidthUnit: _angular_core.InputSignal; /** * The size of the main container. When {@link resizableParts} is enabled, * the value is interpreted using {@link mainContainerWidthUnit} and updates as the splitter is moved. * With `mainContainerWidthUnit="fr"`, numeric values must be from `0` to `100` (inclusive). * The main and detail fractional weights are the value and `100 - value`; * out-of-range values fall back to `32` and `68`. * In the static layout, numeric values represent a percentage from `0` to `100` * (inclusive); out-of-range values leave both containers without max-size constraints. * Pixel widths are not limited to the `0` to `100` range. * * With `'default'`, resizable pixel layouts use {@link minMainSize}, resizable fractional * layouts use main and detail weights of `32` and `68`, and static layouts use `50%`. * * @defaultValue 'default' */ readonly mainContainerWidth: _angular_core.ModelSignal; /** * Sets the minimal width of the main container in pixel. * * @defaultValue 300 */ readonly minMainSize: _angular_core.InputSignal; /** * Sets the minimal width of the detail container in pixel. * * @defaultValue 300 */ readonly minDetailSize: _angular_core.InputSignal; /** * An optional stateId to uniquely identify a component instance. * Required for persistence of ui state. */ readonly stateId: _angular_core.InputSignal; /** * The attribute is set to true when the detail area is not visible to ensure that the user * can't tab to details area when it is hidden. */ protected preventFocusDetails: boolean; private readonly actualMainContainerWidth; protected splitSizes: [number, number]; protected maxMainSize: string; protected maxDetailSize: string; protected readonly mainStateId: _angular_core.Signal; protected readonly detailStateId: _angular_core.Signal; protected readonly animate: _angular_core.WritableSignal; protected readonly opacity: _angular_core.WritableSignal; ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; protected onSplitSizesChange(sizes: number[]): void; protected detailsBackClicked(): void; /** * Get the max size to limit in the static flex layout (if less than 50%), otherwise not set */ private getMaxSize; private getSplitSizes; private getMainSizePx; private determineLayout; private doAnimation; private updateDetailsFocusable; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class SiMainDetailContainerModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { SiMainDetailContainerComponent, SiMainDetailContainerModule };