/** * Generated bundle index. Do not edit. */ import { BooleanInput, NumberInput } from "@angular/cdk/coercion"; import * as i0 from "@angular/core"; import { AfterViewInit, ElementRef } from "@angular/core"; import { NxTriggerButton } from "@allianz/ng-aquila/overlay"; /** Type of a button. */ export type NxButtonType = 'primary' | 'secondary' | 'tertiary' | 'cta' | 'emphasis' | 'attention'; export type NxButtonSize = 'small' | 'small-medium' | 'medium' | 'large' | 's' | 'm'; export type NxButtonColorScheme = 'default' | 'accent-attention' | 'on-accent-attention'; /** * Accent color of a button. Only takes effect when `colorScheme` is * `accent-attention` or `on-accent-attention`. Only relevant for the A1 Design. */ export type NxButtonAccentColor = 'yellow' | 'orange' | 'red' | 'purple' | 'aqua' | 'blue' | 'teal' | 'green' | 'gray'; /** @docs-private */ export declare class NxButtonBase implements AfterViewInit { private readonly _elementRef; private readonly _focusMonitor; private readonly _destroyRef; private readonly _renderer; private readonly _ngZone; private readonly _allianzOneOptions; protected readonly _isA1: import("@angular/core").Signal; private readonly _isAnchor; protected get _ariaDisabled(): true | null; protected get _tabIndex(): number | undefined; protected get appearance(): NxButtonType; get type(): NxButtonType; sizeInput: import("@angular/core").InputSignal; get size(): NxButtonSize; /** * The color scheme of the button. Only relevant for the A1 Design. * * When not set, an `accent-attention` surface resolves it to * `on-accent-attention` (see `nxSurface`). The `attention` surface is handled * through `negative` instead, since the button has no brand palette. */ readonly colorSchemeInput: import("@angular/core").InputSignal; /** Resolved color scheme: an explicit input wins, then the surface, then 'default'. */ readonly colorScheme: import("@angular/core").Signal; /** * The accent color of the button. Only takes effect together with an * `accent-attention` or `on-accent-attention` color scheme. Only relevant for * the A1 Design. */ readonly accentColorInput: import("@angular/core").InputSignal; get accentColor(): NxButtonAccentColor | null; /** * Whether the button performs a critical action. * * Formerly called 'danger' */ criticalInput: import("@angular/core").InputSignalWithTransform; protected get critical(): boolean | undefined; get danger(): boolean; negativeInput: import("@angular/core").InputSignalWithTransform; /** * Whether the button uses the inverse colors, for use on dark or colored * backgrounds. This is the A1 Design name for `negative`; the two are * interchangeable. */ inverseInput: import("@angular/core").InputSignalWithTransform; private readonly _surface; private readonly _surfaceAccentColor; get negative(): boolean; blockInput: import("@angular/core").InputSignalWithTransform; get block(): boolean; readonly disabled: import("@angular/core").InputSignalWithTransform; readonly tabIndex: import("@angular/core").InputSignalWithTransform; /** * Use 'tabindex' to handle existing usages of `[tabindex]` bindings on button elements * @docs-private */ readonly _tabindexAttribute: import("@angular/core").InputSignalWithTransform; /** Whether the button should be in a loading state. */ readonly loading: import("@angular/core").InputSignalWithTransform; protected get spinnerNegative(): boolean; set classNames(v: NxButtonType | '' | ({} & string) | undefined); get classNames(): NxButtonType | "" | ({} & string) | undefined; _classNames: import("@angular/core").WritableSignal<"" | NxButtonType | ({} & string) | undefined>; protected readonly properties: import("@angular/core").Signal<{ appearance: NxButtonType; size: NxButtonSize; danger: boolean; negative: boolean; block: boolean; }>; /** * 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(...args: unknown[]); ngAfterViewInit(): void; set active(v: boolean); get active(): boolean; protected _active: import("@angular/core").WritableSignal; setTriggerActive(): void; setTriggerInactive(): void; private setupFocusMonitor; private setupHaltDisabledEvents; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * @description * The `nxButton` attribute applies button styles based on the provided type. * @required type: 'primary' | 'secondary' | 'tertiary' | 'cta' | 'emphasis' | 'attention' * @example * ```html * * * ``` */ export declare class NxButtonComponent extends NxButtonBase { constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class NxIconButtonComponent extends NxButtonBase { constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Please note: small is only meant for the A1 Design. * * `s` and `m` are the A1 shirt sizes and are treated as aliases of * `small` and `medium` respectively. */ export type NxPlainButtonSize = 'medium' | 'small' | 's' | 'm'; /** Please note: secondary is only for meant for the A1 Design */ export type NxPlainButtonVariant = 'primary' | 'secondary'; /** * Color scheme of a plain button. Only relevant for the A1 Design. * * The plain button has no accent colors. * * - `default` – the regular action-colored plain button * - `on-accent-attention` – for use on an accent-attention surface * - `on-brand` – for use on a brand-colored surface */ export type NxPlainButtonColorScheme = 'default' | 'on-accent-attention' | 'on-brand'; export declare class NxPlainButtonComponent implements NxTriggerButton, AfterViewInit { private readonly _elementRef; private readonly _focusMonitor; private readonly _renderer; private readonly _ngZone; private readonly _destroyRef; protected _isAnchor: boolean; protected get _ariaDisabled(): true | null; protected get _tabIndex(): number | undefined; /** The plain button size. Please only use it for the A1 Design. */ readonly size: import("@angular/core").InputSignal; /** The size with the A1 shirt-size aliases resolved to the existing steps. */ protected readonly _size: import("@angular/core").Signal; /** The plain button variant. Please only use it for the A1 Design. */ readonly variant: import("@angular/core").InputSignal; /** * The plain button color scheme. Please only use it for the A1 Design. * * When not set, an `accent-attention` surface resolves it to * `on-accent-attention` (see `nxSurface`). The `attention` surface goes through * `inverse` instead, since `on-brand` pairs with a brand-colored background. */ readonly colorSchemeInput: import("@angular/core").InputSignal; private readonly _surface; /** Resolved color scheme: an explicit input wins, then the surface, then 'default'. */ readonly colorScheme: import("@angular/core").Signal; /** Whether to show the critical/danger appearance */ readonly critical: import("@angular/core").InputSignalWithTransform; /** Whether the button should be disabled. */ readonly disabled: import("@angular/core").InputSignalWithTransform; /** * Whether the button should use the inverse color (for use on dark/colored * backgrounds). When not set, it follows the surface (see `nxSurface`). */ readonly inverseInput: import("@angular/core").InputSignalWithTransform; /** Resolved inverse: an explicit input wins, then the surface the button sits on. */ readonly inverse: import("@angular/core").Signal; protected readonly _spinnerInverse: import("@angular/core").Signal; tabIndex: import("@angular/core").InputSignalWithTransform; /** * Use 'tabindex' to handle existing usages of `[tabindex]` bindings on button elements * @docs-private */ _tabindexAttribute: import("@angular/core").InputSignalWithTransform; /** Whether the button should be in a loading state. */ loading: import("@angular/core").InputSignalWithTransform; classNames: import("@angular/core").InputSignal; constructor(); ngAfterViewInit(): void; set active(v: boolean); get active(): boolean; protected _active: import("@angular/core").WritableSignal; setTriggerActive(): void; setTriggerInactive(): void; private setupFocusMonitor; private setupHaltDisabledEvents; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class NxButtonModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NxButtonBase as NxAnchorButtonBase, NxButtonComponent as NxAnchorButtonComponent, NxIconButtonComponent as NxAnchorIconButtonComponent, NxPlainButtonComponent as NxAnchorPlainButtonComponent };