import { FocusMonitor } from '@angular/cdk/a11y'; import { BooleanInput } from '@angular/cdk/coercion'; import * as i0 from '@angular/core'; import { OnDestroy, AfterViewInit, ElementRef, ChangeDetectorRef, NgZone } from '@angular/core'; import { NxTriggerButton } from '@aposin/ng-aquila/overlay'; /** Type of a button. */ type NxButtonType = 'primary' | 'secondary' | 'tertiary' | 'cta' | 'emphasis' | 'attention'; /** Size of a button. */ type NxButtonSize = 'small' | 'small-medium' | 'medium' | 'large'; /** @docs-private */ declare class NxButtonBase implements NxTriggerButton, OnDestroy, AfterViewInit { private readonly _cdr; private readonly _elementRef; private readonly _focusMonitor; private _classNames; /** @docs-private */ get isPrimary(): boolean; /** @docs-private */ get isSecondary(): boolean; /** @docs-private */ get isTertiary(): boolean; /** @docs-private */ get isCta(): boolean; /** @docs-private */ get isEmphasis(): boolean; /** @docs-private */ get isAttention(): boolean; /** @docs-private */ get isLarge(): boolean; /** @docs-private */ get isMedium(): boolean; /** @docs-private */ get isSmallMedium(): boolean; /** @docs-private */ get isSmall(): boolean; /** @docs-private */ get isDanger(): boolean; /** @docs-private */ get isBlock(): boolean; /** @docs-private */ get isNegative(): boolean; /** @docs-private */ get isDisabled(): boolean | null; /** @docs-private */ get isAriaDisabled(): string; /** @docs-private */ type: NxButtonType; /** @docs-private */ size: NxButtonSize; danger: boolean; negative: boolean; block: boolean; active: boolean; set disabled(value: BooleanInput); get disabled(): boolean; private _disabled; set classNames(value: string); get classNames(): string; /** * Getter used for the modal component as a quickfix * since button got changed from directive to component the reference used by the ngOpenModelOnClick directive * for nxButtons is a reference to component instance instead of an element reference. As a workaround we need a * way to reach the elementRef of the component until the modal gets refactored. * @docs-private */ get elementRef(): ElementRef; constructor(_cdr: ChangeDetectorRef, _elementRef: ElementRef, _focusMonitor: FocusMonitor); ngAfterViewInit(): void; ngOnDestroy(): void; setTriggerActive(): void; setTriggerInactive(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** @docs-private **/ declare class NxAnchorButtonBase extends NxButtonBase implements OnDestroy { private _ngZone; constructor(_ngZone: NgZone, _cdr: ChangeDetectorRef, elementRef: ElementRef, focusMonitor: FocusMonitor); ngOnDestroy(): void; /** @docs-private */ private _checkEventsDisabled; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NxAnchorButtonComponent extends NxAnchorButtonBase { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NxAnchorIconButtonComponent extends NxAnchorButtonBase { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NxAnchorPlainButtonComponent extends NxAnchorButtonBase { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NxButtonComponent extends NxButtonBase { constructor(_cdr: ChangeDetectorRef, elementRef: ElementRef, focusMonitor: FocusMonitor); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NxIconButtonComponent extends NxButtonBase { constructor(_cdr: ChangeDetectorRef, elementRef: ElementRef, focusMonitor: FocusMonitor); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** Please note: small is only for meant for the One Allianz Design */ type NxPlainButtonSize = 'medium' | 'small'; /** Please note: secondary is only for meant for the One Allianz Design */ type NxPlainButtonVariant = 'primary' | 'secondary'; declare class NxPlainButtonComponent implements NxTriggerButton, OnDestroy, AfterViewInit { private readonly _cdr; private readonly _elementRef; private readonly _focusMonitor; /** @docs-private */ get isDisabled(): boolean | null; /** @docs-private */ get isAriaDisabled(): string; /** The plain button size. Please only use it for the One Allianz Design. */ size: NxPlainButtonSize; /** The plain button variant. Please only use it for the One Allianz Design. */ variant: NxPlainButtonVariant; /** Whether to show the critical/danger appearance */ set critical(value: BooleanInput); get critical(): BooleanInput; private _critical; /** Whether the button should be disabled. */ set disabled(value: BooleanInput); get disabled(): boolean; private _disabled; private _classNames; set classNames(value: string); get classNames(): string; constructor(_cdr: ChangeDetectorRef, _elementRef: ElementRef, _focusMonitor: FocusMonitor); ngAfterViewInit(): void; active: boolean; setTriggerActive(): void; setTriggerInactive(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NxButtonModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NxAnchorButtonBase, NxAnchorButtonComponent, NxAnchorIconButtonComponent, NxAnchorPlainButtonComponent, NxButtonBase, NxButtonComponent, NxButtonModule, NxIconButtonComponent, NxPlainButtonComponent }; export type { NxButtonSize, NxButtonType, NxPlainButtonSize, NxPlainButtonVariant };