import * as i0 from '@angular/core'; import { AfterContentInit, OnChanges, OnDestroy, SimpleChanges, ChangeDetectorRef, ViewContainerRef, InjectionToken, AfterViewInit, ElementRef, TemplateRef } from '@angular/core'; import { CdkAccordionItem, CdkAccordion } from '@angular/cdk/accordion'; import { BooleanInput } from '@angular/cdk/coercion'; import { AnimationEvent } from '@angular/animations'; import { UniqueSelectionDispatcher } from '@angular/cdk/collections'; import * as i2 from '@angular/cdk/portal'; import { TemplatePortal } from '@angular/cdk/portal'; import { Subject } from 'rxjs'; import * as i1 from '@angular/common'; import * as i3 from '@aposin/ng-aquila/icon'; import { FocusMonitor } from '@angular/cdk/a11y'; /** The styling of the accordion. */ type AccordionStyle = 'regular' | 'light' | 'extra-light'; /** * This interface defines the default options of the expansion-panel. */ interface ExpansionPanelDefaultOptions { scrollIntoViewActive: boolean; scrollIntoViewOptions?: ScrollIntoViewOptions; } /** Injection token that determines whether and how the body should scroll into view. */ declare const EXPANSION_PANEL_DEFAULT_OPTIONS: InjectionToken; declare class NxExpansionPanelComponent extends CdkAccordionItem implements AfterContentInit, OnChanges, OnDestroy { /** @docs-private */ readonly accordion: NxAccordionDirective; private readonly _viewContainerRef; private readonly _defaultOptions; /** Whether the negative set of styles should be used. */ set negative(value: BooleanInput); get negative(): boolean; private _negative; _accordionStyle: AccordionStyle; /** * Value for the styling that should be chosen. * Default: `'regular'`. */ set style(value: AccordionStyle); get style(): AccordionStyle; private _style; /** * Setting flush alignment style: no left/right padding in expansion panel header and body */ set flushAlignment(flushAligned: boolean); get flushAlignment(): boolean; private readonly _flushAlignment; private readonly isFlushAligned; /** Whether scrollIntoView should be enabled. */ scrollIntoViewActive?: boolean | undefined; /** Configuration for the scrollIntoView behaviour after the expand animation is done. */ scrollIntoViewOptions?: ScrollIntoViewOptions | undefined; /** @docs-private */ lazyContent: any; private _portal; /** @docs-private */ get portal(): TemplatePortal; _headerId: string; /** Stream that emits for changes in `@Input` properties. */ readonly _inputChanges: Subject; constructor( /** @docs-private */ accordion: NxAccordionDirective, // not typed as nullable: super class does not support `null` _cdr: ChangeDetectorRef, _expansionDispatcher: UniqueSelectionDispatcher, _viewContainerRef: ViewContainerRef, _defaultOptions: ExpansionPanelDefaultOptions); ngAfterContentInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; /** @docs-private */ getOpenState(): "closed" | "open"; /** @docs-private */ bodyExpansionDone(event: AnimationEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_flushAlignment: unknown; } declare class NxAccordionDirective extends CdkAccordion { /** * Value for the styling that should be chosen. * * Default: `'regular'`. */ set style(value: AccordionStyle); get style(): AccordionStyle; private _style; /** Whether the negative set of styles should be used. */ set negative(value: BooleanInput); get negative(): boolean; private _negative?; set flushAlignment(flushAligned: boolean); get flushAlignment(): boolean; readonly flushAlignmentSignal: i0.WritableSignal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_flushAlignment: unknown; } declare class NxExpansionPanelHeaderComponent implements OnDestroy, AfterViewInit { /** @docs-private */ readonly panel: NxExpansionPanelComponent; private readonly _cdr; private readonly _elementRef; private readonly _focusMonitor; private readonly _destroyed; constructor( /** @docs-private */ panel: NxExpansionPanelComponent, _cdr: ChangeDetectorRef, _elementRef: ElementRef, _focusMonitor: FocusMonitor); ngAfterViewInit(): void; ngOnDestroy(): void; /** @docs-private */ isExpanded(): boolean; /** @docs-private */ getOpenState(): string; _getPanelId(): string; /** * Toggle the expansion panel. */ toggle(): void; /** @docs-private */ keydown(event: KeyboardEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * This directive is to be used inside of the NxExpansionPanelHeader component. */ declare class NxExpansionPanelDescriptionDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * This directive is to be used inside of the NxExpansionPanelHeader component. */ declare class NxExpansionPanelTitleDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NxExpansionPanelBodyDirective { readonly _template: TemplateRef; constructor(_template: TemplateRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NxAccordionModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { EXPANSION_PANEL_DEFAULT_OPTIONS, NxAccordionDirective, NxAccordionModule, NxExpansionPanelBodyDirective, NxExpansionPanelComponent, NxExpansionPanelDescriptionDirective, NxExpansionPanelHeaderComponent, NxExpansionPanelTitleDirective }; export type { AccordionStyle, ExpansionPanelDefaultOptions };