import { FocusMonitor } from '@angular/cdk/a11y'; import { BooleanInput } from '@angular/cdk/coercion'; import * as i0 from '@angular/core'; import { OnDestroy, AfterViewInit, ElementRef, ChangeDetectorRef, DoCheck, AfterContentInit, QueryList, EventEmitter, InjectionToken } from '@angular/core'; import * as i1 from '@angular/common'; import * as i2 from '@aposin/ng-aquila/icon'; import * as i3 from '@aposin/ng-aquila/base'; import { NxErrorComponent } from '@aposin/ng-aquila/base'; import * as i4 from '@aposin/ng-aquila/checkbox'; import { ControlValueAccessor, NgControl, NgForm, FormGroupDirective } from '@angular/forms'; import { ErrorStateMatcher } from '@aposin/ng-aquila/utils'; declare class NxCardComponent implements OnDestroy, AfterViewInit { private readonly _elementRef; private readonly _focusMonitor; private readonly _cdr; constructor(_elementRef: ElementRef, _focusMonitor: FocusMonitor, _cdr: ChangeDetectorRef); private _highlight; ngAfterViewInit(): void; ngOnDestroy(): void; /** Whether the card is highlight. */ set highlight(value: BooleanInput); get highlight(): boolean; clickable: boolean; disabled: boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_clickable: unknown; static ngAcceptInputType_disabled: unknown; } declare class NxCardMainLinkDirective { private readonly card; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NxCardSecondaryInfoDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NxSelectableCardChangeEvent { /** The checked value of the selectable card. */ readonly checked: boolean; /** The value of the selectable card. */ readonly value: string; /** The component instance of the selectable card which emitted the change event. */ readonly card: NxSelectableCardComponent; constructor( /** The checked value of the selectable card. */ checked: boolean, /** The value of the selectable card. */ value: string, /** The component instance of the selectable card which emitted the change event. */ card: NxSelectableCardComponent); } type NxSelectableCardAppearance = 'expert' | 'default'; /** * Represents the default options for the selectable card. * It can be configured using the `NX_SELECTABLE_CARD_DEFAULT_OPTIONS` injection token. */ interface SelectableCardDefaultOptions { /** * Sets the default appearance (optional). */ appearance?: NxSelectableCardAppearance; } declare const SELECTABLE_CARD_DEFAULT_OPTIONS: InjectionToken; declare class NxSelectableCardGroupComponent implements ControlValueAccessor, AfterContentInit, DoCheck { private readonly _cdr; readonly ngControl: NgControl | null; readonly _parentForm: NgForm | null; readonly _parentFormGroup: FormGroupDirective | null; readonly _errorStateMatcher: ErrorStateMatcher; _cards: QueryList; _selected: NxSelectableCardComponent | null; errorState: boolean; ngAfterContentInit(): void; change(value: any): void; private _value; set value(newValue: any); get value(): any; private _onChange; private _onTouched; constructor(_cdr: ChangeDetectorRef, ngControl: NgControl | null, _parentForm: NgForm | null, _parentFormGroup: FormGroupDirective | null, _errorStateMatcher: ErrorStateMatcher); writeValue(value: any): void; registerOnChange(fn: (value: any) => void): void; registerOnTouched(fn: () => void): void; private _updateSelectedRadioFromValue; _checkSelectedRadioButton(): void; ngDoCheck(): void; updateErrorState(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NxSelectableCardComponent implements ControlValueAccessor, DoCheck, AfterContentInit, OnDestroy, AfterViewInit { private readonly _cdr; private readonly _errorStateMatcher; readonly ngControl: NgControl | null; private readonly _parentForm; private readonly _parentFormGroup; private readonly _focusMonitor; private readonly _defaultOptions; readonly cardGroup: NxSelectableCardGroupComponent | null; _errorListIds: string; inputType: 'checkbox' | 'radio'; _errorList: QueryList; _nativeInput: ElementRef; _errorState: boolean; /** An event is dispatched each time the selectable card value is changed */ readonly selectionChange: EventEmitter; /** An event is dispatched each time the selectable card value is changed */ readonly checkedChange: EventEmitter; /** * **Expert option** * * Sets the appearance of the small stage. Default: 'default'. */ set appearance(value: NxSelectableCardAppearance); get appearance(): NxSelectableCardAppearance; private _appearance?; /** * Id of the selectable card. * * If not set, the selectable card gets an incremented value by default. */ set id(value: string); get id(): string; private _id; /** Whether the selectable card is checked. */ set checked(value: BooleanInput); get checked(): boolean; private _checked; /** The value attribute of the native input element */ set value(value: string); get value(): string; private _value; /** Whether the selectable card is disabled. */ set disabled(value: BooleanInput); get disabled(): boolean; private _disabled; /** * Whether the selectable card is negative. * @deprecated Obsolete as negative state is not implemented. * @deletion-target 12.0.0 */ set negative(value: BooleanInput); get negative(): boolean; private _negative; /** Whether the selectable card is required. */ set required(value: BooleanInput); get required(): boolean; private _required?; /** Name of the selectable card. */ set name(value: string); get name(): string; private _name; /** The tabindex of the selectable card. */ set tabindex(value: string); get tabindex(): string; private _tabindex; /** Whether the selectable card is highlight. */ set highlight(value: BooleanInput); get highlight(): boolean; private _highlight; get _isExpert(): boolean; private readonly _destroyed; constructor(_cdr: ChangeDetectorRef, _errorStateMatcher: ErrorStateMatcher, ngControl: NgControl | null, _parentForm: NgForm | null, _parentFormGroup: FormGroupDirective | null, _focusMonitor: FocusMonitor, _defaultOptions: SelectableCardDefaultOptions | null, cardGroup: NxSelectableCardGroupComponent | null); ngAfterViewInit(): void; ngAfterContentInit(): void; ngOnDestroy(): void; /** @docs-private */ onChangeCallback: (_: any) => void; registerOnChange(fn: any): void; onTouchedCallback: (_: any) => void; registerOnTouched(onTouched: any): void; setDisabledState?(isDisabled: boolean): void; writeValue(value: any): void; ngDoCheck(): void; _updateErrorState(): void; /** Toggles the checked state of the selectable card . */ toggle(): void; _onInputClick(event: Event): void; _onInteractionEvent(event: Event): void; private _emitChangeEvent; private _getErrorListIds; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @deprecated Place all your content directly into the or instead. * @deletion-target 13.0.0 */ declare class NxCardHeaderComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @deprecated Place all your content directly into the or instead. * @deletion-target 13.0.0 */ declare class NxCardFooterComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NxCardModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NxCardComponent, NxCardFooterComponent, NxCardHeaderComponent, NxCardMainLinkDirective, NxCardModule, NxCardSecondaryInfoDirective, NxSelectableCardChangeEvent, NxSelectableCardComponent, NxSelectableCardGroupComponent, SELECTABLE_CARD_DEFAULT_OPTIONS }; export type { NxSelectableCardAppearance, SelectableCardDefaultOptions };