/** * Generated bundle index. Do not edit. */ import { BooleanInput } from "@angular/cdk/coercion"; import * as i0 from "@angular/core"; import { ChangeDetectorRef, InjectionToken, OnDestroy } from "@angular/core"; import { Subject } from "rxjs"; import * as i1 from "@angular/common"; import * as i2 from "@allianz/ng-aquila/icon"; import * as i3 from "@allianz/ng-aquila/message"; export type ErrorStyleType = 'message' | 'text'; /** * Represents the default options for the error notification that can be configured * using the `ERROR_DEFAULT_OPTIONS` injection token. */ export declare class ErrorDefaultOptions { /** * Stream that emits whenever the default options are changed. Use this to notify * components if the default options have changed after initialization. */ changes?: Subject; /** Defines the style type of the error notification. */ appearance?: ErrorStyleType; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export declare const ERROR_DEFAULT_OPTIONS: InjectionToken; export declare class NxErrorComponent implements OnDestroy { private readonly _cdr; private readonly _defaultOptions; /** Whether an icon should be displayed. Only has an effect for type 'text' */ set showIcon(value: BooleanInput); get showIcon(): boolean; private _showIcon; /** * Id of the nx-error. * * If not set, the selectable card gets an incremented value by default. */ set id(value: string); get id(): string; private _id; private readonly _allianzOne; protected readonly _isAllianzOne: import("@angular/core").Signal; /** * Whether the error should have message or text styling. Can be changed for NDBX only. A1 enforces text appearance. * * Default: `'message'`. */ readonly appearanceInput: import("@angular/core").InputSignal<"" | ErrorStyleType | undefined>; readonly appearance: import("@angular/core").Signal; private readonly _defaultAppearance; /** * Whether the inverse set of styles, for use on a dark background, is applied. * When not set, it follows the surface the error is placed on (see `nxSurface`). */ readonly inverseInput: import("@angular/core").InputSignalWithTransform; private readonly _surface; /** * Resolved inverse: an explicit input wins, then the surface the component sits on. * Deliberately the same condition as `nx-status-icon`, so the projected icon and the * error text never disagree. */ readonly inverse: import("@angular/core").Signal; private readonly _destroyed; constructor(_cdr: ChangeDetectorRef, _defaultOptions: ErrorDefaultOptions | null); ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class NxErrorModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export interface LabelDefaultOptions { /** Sets the default appearance. (optional) */ size?: LABEL_SIZE_TYPE; } /** Options for sizing of the label. */ export type LABEL_SIZE_TYPE = 'small' | 'large'; export declare const LABEL_DEFAULT_OPTIONS: InjectionToken; export declare class NxLabelComponent { private readonly _defaultOptions; private readonly _cdr; readonly _stateChanges: Subject; /** Sets the label to disabled */ set disabled(value: BooleanInput); get disabled(): boolean; private _disabled; /** * Whether the inverse set of styles, for use on a dark background, is applied. * When not set, it follows the surface the label is placed on (see `nxSurface`). */ readonly inverseInput: import("@angular/core").InputSignalWithTransform; private readonly _surface; /** * Whether the style for a dark background is used. * @deprecated Use `inverse` instead. Kept for backwards compatibility. */ set negative(value: BooleanInput); get negative(): boolean; private readonly _negative; /** * Whether the inverse set of styles is applied. * * An explicit `inverse` wins, then the legacy `negative` input, then the surface the * label sits on — the same order as `nx-error`, so a label and the error under it * never disagree. */ readonly inverse: import("@angular/core").Signal; /** * Optional text shown after the label, e.g. to indicate that the associated form * control is not mandatory. Rendered wrapped in parentheses; pass the text without them. */ readonly optionalLabel: import("@angular/core").InputSignal; /** Hint text shown below the label. Automatically adjusts to the `inverse` and `disabled` states. */ readonly hint: import("@angular/core").InputSignal; /** Sets the Id of the label */ set id(value: string); get id(): string; private readonly _id; /** * Id of the rendered hint, or `null` when there is no hint. * * The label sits next to the control it describes rather than owning it, so the control * has to pick this up itself and merge it into its own `aria-describedby`. */ readonly hintId: import("@angular/core").Signal; /** * **Expert option** * * Sets the appearance of the label. */ set size(value: LABEL_SIZE_TYPE); get size(): LABEL_SIZE_TYPE; private _size?; /** * Sets the html `for` attribute on the label. */ set for(value: string | null); get for(): string | null; private _for; constructor(_defaultOptions: LabelDefaultOptions | null, _cdr: ChangeDetectorRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Marks projected content as the info icon of a label. * * Place any info-icon implementation (the standard `nx-info-icon` or an * entity-specific component) inside an `nx-label` or `nx-formfield` and mark it * with this directive to have it rendered next to the label text. The projected * component keeps full control over its own API (popover direction, width, * modal behaviour, etc.). * * ```html * * First name * Help text * * ``` */ export declare class NxLabelInfoDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class NxLabelModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }