import * as i0 from '@angular/core'; import { ElementRef, AfterViewInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; import * as rxjs from 'rxjs'; declare class SiAutoCollapsableListMeasurable { protected readonly elementRef: ElementRef; private readonly resizeObserverService; /** * Emits on element width changes. * * @defaultValue * ``` * this.resizeObserverService * .observe(this.elementRef.nativeElement, 0, true, true) * .pipe( * map(size => size.width), * distinctUntilChanged(), * takeUntilDestroyed(), * shareReplay({ bufferSize: 1, refCount: true }) * ) * ``` */ size$: rxjs.Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SiAutoCollapsableListItemDirective extends SiAutoCollapsableListMeasurable implements AfterViewInit { /** * Hide this item even if enough space is available. * When calculating the overall available size, this item is still considered when forceHide=true * * @defaultValue false */ readonly forceHide: i0.InputSignalWithTransform; /** * True if enough space is available for this item. * * @defaultValue false */ readonly canBeVisible: i0.WritableSignal; /** * True if this item is actually visible to the user */ readonly isVisible: i0.Signal; ngAfterViewInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SiAutoCollapsableListDirective implements AfterViewInit, OnChanges, OnDestroy { /** * The items which are displayed in the siAutoCollapsableList. */ readonly items: i0.Signal; private readonly overflowItem; private readonly additionalContent; /** * Enables the auto-collapsing behavior. When `true`, items that overflow the container * are hidden and an overflow indicator item is shown instead. * * @defaultValue true */ readonly siAutoCollapsableList: i0.InputSignalWithTransform; /** * The (flex) gap in pixels, will automatically be set if a pixel value is used in CSS. */ readonly gap: i0.InputSignal; /** * The element which size is available for the content of the siAutoCollapsableList. * * @defaultValue undefined */ readonly containerElement: i0.InputSignal; private resizeSubscription?; private disableInitSubscription?; private readonly elementRef; private readonly resizeObserverService; private readonly changeDetectorRef; private readonly containerElementSubject; /** * The same as {@link gap}, but automatically read from the computed styles. * Used if not set by user. */ private computedGap; private injector; ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; private setupResizeListener; private updateItemVisibility; private reset; private readGapSize; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SiAutoCollapsableListOverflowItemDirective extends SiAutoCollapsableListItemDirective { /** * Number of hidden items. * * @defaultValue 0 */ hiddenItemCount: number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SiAutoCollapsableListAdditionalContentDirective extends SiAutoCollapsableListMeasurable { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SiAutoCollapsableListModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { SiAutoCollapsableListAdditionalContentDirective, SiAutoCollapsableListDirective, SiAutoCollapsableListItemDirective, SiAutoCollapsableListMeasurable, SiAutoCollapsableListModule, SiAutoCollapsableListOverflowItemDirective };