Files
CHEVALLIER Abel cb235644dc init
2025-11-13 16:23:22 +01:00

353 lines
22 KiB
TypeScript

import * as _angular_core from '@angular/core';
import { AfterViewInit, DoCheck, TemplateRef, OnInit, ViewContainerRef, ComponentRef, ElementRef, AfterContentInit, OnChanges, QueryList, SimpleChanges, InjectionToken } from '@angular/core';
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
import { Direction } from '@angular/cdk/bidi';
import * as ng_zorro_antd_core_types from 'ng-zorro-antd/core/types';
import { NzVariant, NzSizeLDSType, NzStatus, NgClassInterface, NzValidateStatus, OnTouchedType } from 'ng-zorro-antd/core/types';
import * as rxjs from 'rxjs';
import { NgControl, ControlValueAccessor, FormArray, FormControl } from '@angular/forms';
import { NzFormItemFeedbackIconComponent } from 'ng-zorro-antd/core/form';
import * as i1 from 'ng-zorro-antd/space';
interface AutoSizeType {
minRows?: number;
maxRows?: number;
}
declare class NzAutosizeDirective implements AfterViewInit, DoCheck {
private ngZone;
private platform;
private destroyRef;
private resizeService;
private el;
private autosize;
private cachedLineHeight;
private previousValue;
private previousMinRows;
private minRows;
private maxRows;
private maxHeight;
private minHeight;
private inputGap;
private destroyed;
constructor();
set nzAutosize(value: string | boolean | AutoSizeType);
resizeToFitContent(force?: boolean): void;
private cacheTextareaLineHeight;
setMinHeight(): number | null;
setMaxHeight(): number | null;
noopInputHandler(): void;
ngAfterViewInit(): void;
ngDoCheck(): void;
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzAutosizeDirective, never>;
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NzAutosizeDirective, "textarea[nzAutosize]", ["nzAutosize"], { "nzAutosize": { "alias": "nzAutosize"; "required": false; }; }, {}, never, never, true, never>;
}
declare class NzInputAddonBeforeDirective {
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputAddonBeforeDirective, never>;
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NzInputAddonBeforeDirective, "[nzInputAddonBefore]", never, {}, {}, never, never, true, never>;
}
declare class NzInputAddonAfterDirective {
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputAddonAfterDirective, never>;
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NzInputAddonAfterDirective, "[nzInputAddonAfter]", never, {}, {}, never, never, true, never>;
}
declare class NzInputPrefixDirective {
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputPrefixDirective, never>;
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NzInputPrefixDirective, "[nzInputPrefix]", never, {}, {}, never, never, true, never>;
}
declare class NzInputSuffixDirective {
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputSuffixDirective, never>;
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NzInputSuffixDirective, "[nzInputSuffix]", never, {}, {}, never, never, true, never>;
}
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
/**
* @deprecated Will be removed in v22.0.0. This component will be removed along with input-group.
*/
declare class NzInputGroupSlotComponent {
icon?: string | null;
type: 'addon' | 'prefix' | 'suffix' | null;
template?: string | TemplateRef<void> | null;
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputGroupSlotComponent, never>;
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NzInputGroupSlotComponent, "[nz-input-group-slot]", never, { "icon": { "alias": "icon"; "required": false; }; "type": { "alias": "type"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, {}, never, ["*"], true, never>;
}
declare class NzInputPasswordDirective {
readonly nzVisibilityToggle: _angular_core.InputSignal<boolean>;
readonly nzVisible: _angular_core.ModelSignal<boolean>;
toggleVisible(): void;
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputPasswordDirective, never>;
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NzInputPasswordDirective, "nz-input-password", ["nzInputPassword"], { "nzVisibilityToggle": { "alias": "nzVisibilityToggle"; "required": false; "isSignal": true; }; "nzVisible": { "alias": "nzVisible"; "required": false; "isSignal": true; }; }, { "nzVisible": "nzVisibleChange"; }, never, never, true, never>;
}
declare class NzInputPasswordIconDirective {
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputPasswordIconDirective, never>;
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NzInputPasswordIconDirective, "[nzInputPasswordIcon]", never, {}, {}, never, never, true, never>;
}
declare class NzInputSearchDirective {
private readonly inputDir;
private readonly inputRef;
readonly nzEnterButton: _angular_core.InputSignal<string | boolean>;
readonly nzLoading: _angular_core.InputSignalWithTransform<boolean, unknown>;
readonly nzSearch: _angular_core.OutputEmitterRef<NzInputSearchEvent>;
readonly size: _angular_core.Signal<ng_zorro_antd_core_types.NzSizeLDSType>;
search(event: Event, source?: 'input' | 'clear'): void;
onEnter(event: KeyboardEvent): void;
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputSearchDirective, never>;
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NzInputSearchDirective, "nz-input-search", ["nzInputSearch"], { "nzEnterButton": { "alias": "nzEnterButton"; "required": false; "isSignal": true; }; "nzLoading": { "alias": "nzLoading"; "required": false; "isSignal": true; }; }, { "nzSearch": "nzSearch"; }, ["inputDir", "inputRef"], never, true, never>;
}
declare class NzInputSearchEnterButtonDirective {
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputSearchEnterButtonDirective, never>;
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NzInputSearchEnterButtonDirective, "[nzInputSearchEnterButton]", never, {}, {}, never, never, true, never>;
}
interface NzInputSearchEvent {
value: string;
event: Event;
source: 'clear' | 'input';
}
declare class NzInputDirective implements OnInit {
private elementRef;
private compactSize;
private destroyRef;
private nzFormStatusService;
private nzFormNoStatusService;
private inputWrapper;
private focusMonitor;
protected hostView: ViewContainerRef;
protected readonly inputPasswordDir: NzInputPasswordDirective | null;
protected readonly inputSearchDir: NzInputSearchDirective | null;
readonly ngControl: NgControl | null;
readonly value: _angular_core.WritableSignal<string>;
/**
* @deprecated Will be removed in v21. It is recommended to use `nzVariant` instead.
*/
readonly nzBorderless: _angular_core.InputSignalWithTransform<boolean, unknown>;
readonly nzVariant: _angular_core.InputSignal<NzVariant>;
readonly nzSize: _angular_core.InputSignal<NzSizeLDSType>;
/**
* @deprecated Will be removed in v22.
*/
readonly nzStepperless: _angular_core.InputSignalWithTransform<boolean, unknown>;
readonly nzStatus: _angular_core.InputSignal<NzStatus>;
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
readonly controlDisabled: _angular_core.WritableSignal<boolean>;
readonly finalDisabled: _angular_core.WritableSignal<boolean> | _angular_core.InputSignalWithTransform<boolean, unknown>;
readonly dir: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
readonly size: _angular_core.WritableSignal<NzSizeLDSType>;
readonly status: _angular_core.Signal<ng_zorro_antd_core_types.NzValidateStatus>;
readonly hasFeedback: _angular_core.Signal<boolean>;
readonly classes: _angular_core.Signal<ng_zorro_antd_core_types.NgClassInterface>;
readonly type: _angular_core.Signal<any>;
protected readonly focused: _angular_core.WritableSignal<boolean>;
protected readonly finalSize: _angular_core.Signal<NzSizeLDSType>;
feedbackRef: ComponentRef<NzFormItemFeedbackIconComponent> | null;
disabled$: rxjs.Observable<boolean>;
constructor();
ngOnInit(): void;
private renderFeedbackIcon;
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputDirective, never>;
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NzInputDirective, "input[nz-input],textarea[nz-input]", ["nzInput"], { "nzBorderless": { "alias": "nzBorderless"; "required": false; "isSignal": true; }; "nzVariant": { "alias": "nzVariant"; "required": false; "isSignal": true; }; "nzSize": { "alias": "nzSize"; "required": false; "isSignal": true; }; "nzStepperless": { "alias": "nzStepperless"; "required": false; "isSignal": true; }; "nzStatus": { "alias": "nzStatus"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NzSpaceCompactItemDirective; inputs: {}; outputs: {}; }]>;
}
/**
* @deprecated Will be removed in v22.0.0. This component will be removed along with input-group.
*/
declare class NzInputGroupWhitSuffixOrPrefixDirective {
readonly elementRef: ElementRef<any>;
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputGroupWhitSuffixOrPrefixDirective, never>;
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NzInputGroupWhitSuffixOrPrefixDirective, "nz-input-group[nzSuffix], nz-input-group[nzPrefix]", never, {}, {}, never, never, true, never>;
}
/**
* @deprecated Will be removed in v22. It is recommended to use `<nz-input-wrapper>` instead.
*/
declare class NzInputGroupComponent implements AfterContentInit, OnChanges, OnInit {
private focusMonitor;
private elementRef;
private renderer;
private cdr;
private directionality;
private destroyRef;
private nzFormStatusService;
private nzFormNoStatusService;
listOfNzInputDirective: QueryList<NzInputDirective>;
nzAddOnBeforeIcon?: string | null;
nzAddOnAfterIcon?: string | null;
nzPrefixIcon?: string | null;
nzSuffixIcon?: string | null;
nzAddOnBefore?: string | TemplateRef<void>;
nzAddOnAfter?: string | TemplateRef<void>;
nzPrefix?: string | TemplateRef<void>;
nzStatus: NzStatus;
nzSuffix?: string | TemplateRef<void>;
nzSize: NzSizeLDSType;
nzSearch: boolean;
isLarge: boolean;
isSmall: boolean;
isAffix: boolean;
isAddOn: boolean;
isFeedback: boolean;
focused: boolean;
disabled: boolean;
dir: Direction;
prefixCls: string;
affixStatusCls: NgClassInterface;
groupStatusCls: NgClassInterface;
affixInGroupStatusCls: NgClassInterface;
status: NzValidateStatus;
hasFeedback: boolean;
constructor();
updateChildrenInputSize(): void;
ngOnInit(): void;
ngAfterContentInit(): void;
ngOnChanges(changes: SimpleChanges): void;
private setStatusStyles;
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputGroupComponent, never>;
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NzInputGroupComponent, "nz-input-group", ["nzInputGroup"], { "nzAddOnBeforeIcon": { "alias": "nzAddOnBeforeIcon"; "required": false; }; "nzAddOnAfterIcon": { "alias": "nzAddOnAfterIcon"; "required": false; }; "nzPrefixIcon": { "alias": "nzPrefixIcon"; "required": false; }; "nzSuffixIcon": { "alias": "nzSuffixIcon"; "required": false; }; "nzAddOnBefore": { "alias": "nzAddOnBefore"; "required": false; }; "nzAddOnAfter": { "alias": "nzAddOnAfter"; "required": false; }; "nzPrefix": { "alias": "nzPrefix"; "required": false; }; "nzStatus": { "alias": "nzStatus"; "required": false; }; "nzSuffix": { "alias": "nzSuffix"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; "nzSearch": { "alias": "nzSearch"; "required": false; }; }, {}, ["listOfNzInputDirective"], ["*"], true, [{ directive: typeof i1.NzSpaceCompactItemDirective; inputs: {}; outputs: {}; }]>;
static ngAcceptInputType_nzSearch: unknown;
}
declare class NzInputOtpComponent implements ControlValueAccessor, OnChanges {
private formBuilder;
private destroyRef;
otpInputs: QueryList<ElementRef>;
nzLength: number;
nzSize: NzSizeLDSType;
disabled: boolean;
nzStatus: NzStatus;
nzFormatter: (value: string) => string;
nzMask: string | null;
protected otpArray: FormArray<FormControl<string>>;
private internalValue;
private onChangeCallback?;
onTouched: OnTouchedType;
constructor();
ngOnChanges(changes: SimpleChanges): void;
onInput(index: number, event: Event): void;
onFocus(event: FocusEvent): void;
onKeyDown(index: number, event: KeyboardEvent): void;
writeValue(value: string): void;
registerOnChange(fn: (value: string) => void): void;
registerOnTouched(fn: () => {}): void;
setDisabledState(isDisabled: boolean): void;
onPaste(index: number, event: ClipboardEvent): void;
private createFormArray;
private emitValue;
private selectInputBox;
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputOtpComponent, never>;
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NzInputOtpComponent, "nz-input-otp", ["nzInputOtp"], { "nzLength": { "alias": "nzLength"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "nzStatus": { "alias": "nzStatus"; "required": false; }; "nzFormatter": { "alias": "nzFormatter"; "required": false; }; "nzMask": { "alias": "nzMask"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_nzLength: unknown;
static ngAcceptInputType_disabled: unknown;
}
declare class NzInputWrapperComponent {
private readonly focusMonitor;
protected readonly inputPasswordDir: NzInputPasswordDirective | null;
protected readonly inputSearchDir: NzInputSearchDirective | null;
protected readonly inputRef: _angular_core.Signal<ElementRef<any>>;
protected readonly inputDir: _angular_core.Signal<NzInputDirective>;
protected readonly prefix: _angular_core.Signal<NzInputPrefixDirective | undefined>;
protected readonly suffix: _angular_core.Signal<NzInputSuffixDirective | undefined>;
protected readonly addonBefore: _angular_core.Signal<NzInputAddonBeforeDirective | undefined>;
protected readonly addonAfter: _angular_core.Signal<NzInputAddonAfterDirective | undefined>;
protected readonly inputPasswordIconTmpl: _angular_core.Signal<TemplateRef<any> | undefined>;
protected readonly inputSearchEnterButton: _angular_core.Signal<NzInputSearchEnterButtonDirective | undefined>;
readonly nzAllowClear: _angular_core.InputSignalWithTransform<boolean, unknown>;
readonly nzPrefix: _angular_core.InputSignal<string | undefined>;
readonly nzSuffix: _angular_core.InputSignal<string | undefined>;
readonly nzAddonBefore: _angular_core.InputSignal<string | undefined>;
readonly nzAddonAfter: _angular_core.InputSignal<string | undefined>;
readonly nzClear: _angular_core.OutputEmitterRef<void>;
readonly size: _angular_core.Signal<ng_zorro_antd_core_types.NzSizeLDSType>;
readonly variant: _angular_core.Signal<ng_zorro_antd_core_types.NzVariant>;
readonly disabled: _angular_core.Signal<boolean>;
readonly readOnly: _angular_core.Signal<boolean>;
readonly status: _angular_core.Signal<ng_zorro_antd_core_types.NzValidateStatus>;
readonly hasFeedback: _angular_core.Signal<boolean>;
protected readonly hasPrefix: _angular_core.Signal<boolean>;
protected readonly hasSuffix: _angular_core.Signal<true | NzInputPasswordDirective | null>;
protected readonly hasAffix: _angular_core.Signal<true | NzInputPasswordDirective | null>;
protected readonly hasAddonBefore: _angular_core.Signal<boolean>;
protected readonly hasAddonAfter: _angular_core.Signal<boolean>;
protected readonly hasAddon: _angular_core.Signal<boolean>;
private readonly compactSize;
protected readonly dir: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
protected readonly focused: _angular_core.WritableSignal<boolean>;
protected readonly isTextarea: _angular_core.Signal<boolean>;
protected readonly finalSize: _angular_core.Signal<ng_zorro_antd_core_types.NzSizeLDSType>;
protected readonly class: _angular_core.Signal<{
'ant-input-group-wrapper': boolean;
'ant-input-group-wrapper-sm': boolean;
'ant-input-group-wrapper-lg': boolean;
'ant-input-group-wrapper-rtl': boolean;
} | {
'ant-input-affix-wrapper': boolean;
'ant-input-affix-wrapper-lg': boolean;
'ant-input-affix-wrapper-sm': boolean;
'ant-input-affix-wrapper-disabled': boolean;
'ant-input-affix-wrapper-readonly': boolean;
'ant-input-affix-wrapper-focused': boolean;
'ant-input-affix-wrapper-rtl': boolean;
} | null>;
protected readonly affixWrapperClass: _angular_core.Signal<{
'ant-input-affix-wrapper': boolean;
'ant-input-affix-wrapper-lg': boolean;
'ant-input-affix-wrapper-sm': boolean;
'ant-input-affix-wrapper-disabled': boolean;
'ant-input-affix-wrapper-readonly': boolean;
'ant-input-affix-wrapper-focused': boolean;
'ant-input-affix-wrapper-rtl': boolean;
}>;
protected readonly groupWrapperClass: _angular_core.Signal<{
'ant-input-group-wrapper': boolean;
'ant-input-group-wrapper-sm': boolean;
'ant-input-group-wrapper-lg': boolean;
'ant-input-group-wrapper-rtl': boolean;
}>;
constructor();
clear(): void;
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputWrapperComponent, never>;
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NzInputWrapperComponent, "nz-input-wrapper,nz-input-password,nz-input-search", ["nzInputWrapper"], { "nzAllowClear": { "alias": "nzAllowClear"; "required": false; "isSignal": true; }; "nzPrefix": { "alias": "nzPrefix"; "required": false; "isSignal": true; }; "nzSuffix": { "alias": "nzSuffix"; "required": false; "isSignal": true; }; "nzAddonBefore": { "alias": "nzAddonBefore"; "required": false; "isSignal": true; }; "nzAddonAfter": { "alias": "nzAddonAfter"; "required": false; "isSignal": true; }; }, { "nzClear": "nzClear"; }, ["inputRef", "inputDir", "prefix", "suffix", "addonBefore", "addonAfter", "inputPasswordIconTmpl", "inputSearchEnterButton"], ["[nzInputAddonBefore]", "[nzInputSearchEnterButton]", "[nzInputAddonAfter]", "[nzInputPrefix]", "[nzInputClearIcon]", "[nzInputSuffix]", "[nz-input]"], true, [{ directive: typeof i1.NzSpaceCompactItemDirective; inputs: {}; outputs: {}; }]>;
}
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
declare class NzTextareaCountComponent implements AfterContentInit {
private renderer;
private destroyRef;
private elementRef;
nzInputDirective: NzInputDirective;
nzMaxCharacterCount: number;
nzComputeCharacterCount: (v: string) => number;
nzFormatter: (cur: number, max: number) => string;
ngAfterContentInit(): void;
setDataCount(value: string): void;
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzTextareaCountComponent, never>;
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NzTextareaCountComponent, "nz-textarea-count", never, { "nzMaxCharacterCount": { "alias": "nzMaxCharacterCount"; "required": false; }; "nzComputeCharacterCount": { "alias": "nzComputeCharacterCount"; "required": false; }; "nzFormatter": { "alias": "nzFormatter"; "required": false; }; }, {}, ["nzInputDirective"], ["textarea[nz-input]"], true, never>;
static ngAcceptInputType_nzMaxCharacterCount: unknown;
}
declare class NzInputModule {
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NzInputModule, never>;
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<NzInputModule, never, [typeof NzTextareaCountComponent, typeof NzInputDirective, typeof NzInputWrapperComponent, typeof NzInputPasswordDirective, typeof NzInputPasswordIconDirective, typeof NzInputSearchDirective, typeof NzInputSearchEnterButtonDirective, typeof NzInputAddonBeforeDirective, typeof NzInputAddonAfterDirective, typeof NzInputPrefixDirective, typeof NzInputSuffixDirective, typeof NzInputGroupComponent, typeof NzAutosizeDirective, typeof NzInputGroupSlotComponent, typeof NzInputGroupWhitSuffixOrPrefixDirective, typeof NzInputOtpComponent], [typeof NzTextareaCountComponent, typeof NzInputDirective, typeof NzInputWrapperComponent, typeof NzInputPasswordDirective, typeof NzInputPasswordIconDirective, typeof NzInputSearchDirective, typeof NzInputSearchEnterButtonDirective, typeof NzInputAddonBeforeDirective, typeof NzInputAddonAfterDirective, typeof NzInputPrefixDirective, typeof NzInputSuffixDirective, typeof NzInputGroupComponent, typeof NzAutosizeDirective, typeof NzInputGroupWhitSuffixOrPrefixDirective, typeof NzInputOtpComponent]>;
static ɵinj: _angular_core.ɵɵInjectorDeclaration<NzInputModule>;
}
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
declare const NZ_INPUT_WRAPPER: InjectionToken<NzInputWrapperComponent>;
export { NZ_INPUT_WRAPPER, NzAutosizeDirective, NzInputAddonAfterDirective, NzInputAddonBeforeDirective, NzInputDirective, NzInputGroupComponent, NzInputGroupSlotComponent, NzInputGroupWhitSuffixOrPrefixDirective, NzInputModule, NzInputOtpComponent, NzInputPasswordDirective, NzInputPasswordIconDirective, NzInputPrefixDirective, NzInputSearchDirective, NzInputSearchEnterButtonDirective, NzInputSuffixDirective, NzInputWrapperComponent, NzTextareaCountComponent };
export type { AutoSizeType, NzInputSearchEvent };