UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

336 lines • 11.1 kB
import { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectionPositionPair } from "@angular/cdk/overlay"; import * as i0 from "@angular/core"; import { EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from "@angular/core"; import { ControlValueAccessor } from "@angular/forms"; import { NzNoAnimationDirective } from "ng-zorro-antd/core/animation"; import { NzConfigKey } from "ng-zorro-antd/core/config"; import { NzFormStatusService } from "ng-zorro-antd/core/form"; import { NzFormatEmitEvent, NzTreeBase, NzTreeBaseService, NzTreeNode, NzTreeNodeOptions } from "ng-zorro-antd/core/tree"; import { NgClassInterface, NgStyleInterface, NzSafeAny, NzSizeLDSType, NzStatus, NzValidateStatus, NzVariant, OnChangeType, OnTouchedType } from "ng-zorro-antd/core/types"; import { NzSelectSearchComponent } from "ng-zorro-antd/select"; import { NzTreeComponent } from "ng-zorro-antd/tree"; import * as i1 from "ng-zorro-antd/space"; declare namespace tree_select_component_d_exports { export { NzPlacementType, NzTreeSelectComponent }; } export type NzPlacementType = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight' | ''; export declare class NzTreeSelectComponent extends NzTreeBase implements ControlValueAccessor, OnInit, OnChanges { readonly _nzModuleName: NzConfigKey; private readonly renderer; private readonly cdr; private readonly elementRef; private readonly focusMonitor; private readonly destroyRef; private readonly platform; protected readonly nzFormStatusService: NzFormStatusService | null; protected readonly noAnimation: NzNoAnimationDirective | null; private requestId; protected readonly slideAnimationEnter: import("@angular/core").Signal<string>; protected readonly slideAnimationLeave: import("@angular/core").Signal<string>; nzId: string | null; nzAllowClear: boolean; nzShowExpand: boolean; nzShowLine: boolean; nzDropdownMatchSelectWidth: boolean; nzCheckable: boolean; nzHideUnMatched: boolean; nzShowIcon: boolean; nzShowSearch: boolean; nzDisabled: boolean; nzAsyncData: boolean; nzMultiple: boolean; nzDefaultExpandAll: boolean; nzCheckStrictly: boolean; nzVirtualItemSize: number; nzVirtualMaxBufferPx: number; nzVirtualMinBufferPx: number; nzVirtualHeight: string | null; nzExpandedIcon?: TemplateRef<{ $implicit: NzTreeNode; origin: NzTreeNodeOptions; }>; nzNotFoundContent?: string | TemplateRef<void>; nzNodes: NzTreeNodeOptions[] | NzTreeNode[]; nzOpen: boolean; nzSize: NzSizeLDSType; nzVariant: NzVariant | undefined; nzPlaceHolder: string; nzDropdownStyle: NgStyleInterface | null; nzDropdownClassName?: string; nzBackdrop: boolean; nzStatus: NzStatus; nzPlacement: NzPlacementType; set nzExpandedKeys(value: string[]); get nzExpandedKeys(): string[]; nzPrefix: TemplateRef<NzSafeAny> | string | null; nzSuffixIcon: TemplateRef<NzSafeAny> | string | null; nzDisplayWith: (node: NzTreeNode) => string | undefined; nzMaxTagCount: number; nzMaxTagPlaceholder: TemplateRef<{ $implicit: NzTreeNode[]; }> | null; readonly nzOpenChange: EventEmitter<boolean>; readonly nzCleared: EventEmitter<void>; readonly nzRemoved: EventEmitter<NzTreeNode>; readonly nzExpandChange: EventEmitter<NzFormatEmitEvent>; readonly nzTreeClick: EventEmitter<NzFormatEmitEvent>; readonly nzTreeCheckboxChange: EventEmitter<NzFormatEmitEvent>; nzSelectSearchComponent: NzSelectSearchComponent; treeRef: NzTreeComponent; cdkOverlayOrigin: CdkOverlayOrigin; cdkConnectedOverlay: CdkConnectedOverlay; nzTreeTemplate: TemplateRef<{ $implicit: NzTreeNode; origin: NzTreeNodeOptions; }>; nzTreeTemplateChild: TemplateRef<{ $implicit: NzTreeNode; origin: NzTreeNodeOptions; }>; get treeTemplate(): TemplateRef<{ $implicit: NzTreeNode; origin: NzTreeNodeOptions; }>; prefixCls: string; statusCls: NgClassInterface; status: NzValidateStatus; hasFeedback: boolean; dropdownClassName: string; triggerWidth?: number; isComposing: boolean; isNotFound: boolean; focused: boolean; inputValue: string; selectedNodes: NzTreeNode[]; expandedKeys: string[]; value: string[]; protected readonly dir: import("@angular/core").WritableSignal<import("@angular/cdk/bidi").Direction>; positions: ConnectionPositionPair[]; protected finalSize: import("@angular/core").Signal<NzSizeLDSType | undefined>; protected readonly finalVariant: import("@angular/core").Signal<NzVariant>; protected readonly placement: import("@angular/core").WritableSignal<NzPlacementType>; private readonly size; private readonly variant; private readonly formSize; private readonly formVariant; private compactSize; private isNzDisableFirstChange; private isComposingChange$; private searchValueChange$; onChange: OnChangeType; onTouched: OnTouchedType; get placeHolderDisplay(): string; get isMultiple(): boolean; constructor(); ngOnInit(): void; isComposingChange(isComposing: boolean): void; setDisabledState(isDisabled: boolean): void; private setStatusStyles; ngOnChanges({ nzNodes, nzDropdownClassName, nzStatus, nzPlacement, nzSize, nzVariant }: SimpleChanges): void; writeValue(value: string[] | string): void; registerOnChange(fn: (_: string[] | string | null) => void): void; registerOnTouched(fn: () => void): void; onKeydown(event: KeyboardEvent): void; trigger(): void; openDropdown(): void; closeDropdown(): void; onKeyDownInput(e: KeyboardEvent): void; onExpandedKeysChange(value: NzFormatEmitEvent): void; setInputValue(value: string): void; removeSelected(node: NzTreeNode, emit?: boolean): void; focusOnInput(): void; subscribeSelectionChange(): void; updateSelectedNodes(init?: boolean): void; updatePosition(): void; onPositionChange(position: ConnectedOverlayPositionChange): void; onClearSelection(): void; onClickOutside(event: MouseEvent): void; setSearchValues($event: NzFormatEmitEvent): void; updateCdkConnectedOverlayStatus(): void; clearSelectedNodes(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeSelectComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NzTreeSelectComponent, "nz-tree-select", ["nzTreeSelect"], { "nzId": { "alias": "nzId"; "required": false; }; "nzAllowClear": { "alias": "nzAllowClear"; "required": false; }; "nzShowExpand": { "alias": "nzShowExpand"; "required": false; }; "nzShowLine": { "alias": "nzShowLine"; "required": false; }; "nzDropdownMatchSelectWidth": { "alias": "nzDropdownMatchSelectWidth"; "required": false; }; "nzCheckable": { "alias": "nzCheckable"; "required": false; }; "nzHideUnMatched": { "alias": "nzHideUnMatched"; "required": false; }; "nzShowIcon": { "alias": "nzShowIcon"; "required": false; }; "nzShowSearch": { "alias": "nzShowSearch"; "required": false; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; }; "nzAsyncData": { "alias": "nzAsyncData"; "required": false; }; "nzMultiple": { "alias": "nzMultiple"; "required": false; }; "nzDefaultExpandAll": { "alias": "nzDefaultExpandAll"; "required": false; }; "nzCheckStrictly": { "alias": "nzCheckStrictly"; "required": false; }; "nzVirtualItemSize": { "alias": "nzVirtualItemSize"; "required": false; }; "nzVirtualMaxBufferPx": { "alias": "nzVirtualMaxBufferPx"; "required": false; }; "nzVirtualMinBufferPx": { "alias": "nzVirtualMinBufferPx"; "required": false; }; "nzVirtualHeight": { "alias": "nzVirtualHeight"; "required": false; }; "nzExpandedIcon": { "alias": "nzExpandedIcon"; "required": false; }; "nzNotFoundContent": { "alias": "nzNotFoundContent"; "required": false; }; "nzNodes": { "alias": "nzNodes"; "required": false; }; "nzOpen": { "alias": "nzOpen"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; "nzVariant": { "alias": "nzVariant"; "required": false; }; "nzPlaceHolder": { "alias": "nzPlaceHolder"; "required": false; }; "nzDropdownStyle": { "alias": "nzDropdownStyle"; "required": false; }; "nzDropdownClassName": { "alias": "nzDropdownClassName"; "required": false; }; "nzBackdrop": { "alias": "nzBackdrop"; "required": false; }; "nzStatus": { "alias": "nzStatus"; "required": false; }; "nzPlacement": { "alias": "nzPlacement"; "required": false; }; "nzExpandedKeys": { "alias": "nzExpandedKeys"; "required": false; }; "nzPrefix": { "alias": "nzPrefix"; "required": false; }; "nzSuffixIcon": { "alias": "nzSuffixIcon"; "required": false; }; "nzDisplayWith": { "alias": "nzDisplayWith"; "required": false; }; "nzMaxTagCount": { "alias": "nzMaxTagCount"; "required": false; }; "nzMaxTagPlaceholder": { "alias": "nzMaxTagPlaceholder"; "required": false; }; "nzTreeTemplate": { "alias": "nzTreeTemplate"; "required": false; }; }, { "nzOpenChange": "nzOpenChange"; "nzCleared": "nzCleared"; "nzRemoved": "nzRemoved"; "nzExpandChange": "nzExpandChange"; "nzTreeClick": "nzTreeClick"; "nzTreeCheckboxChange": "nzTreeCheckboxChange"; }, ["nzTreeTemplateChild"], never, true, [{ directive: typeof i1.NzSpaceCompactItemDirective; inputs: {}; outputs: {}; }]>; static ngAcceptInputType_nzAllowClear: unknown; static ngAcceptInputType_nzShowExpand: unknown; static ngAcceptInputType_nzShowLine: unknown; static ngAcceptInputType_nzDropdownMatchSelectWidth: unknown; static ngAcceptInputType_nzCheckable: unknown; static ngAcceptInputType_nzHideUnMatched: unknown; static ngAcceptInputType_nzShowIcon: unknown; static ngAcceptInputType_nzShowSearch: unknown; static ngAcceptInputType_nzDisabled: unknown; static ngAcceptInputType_nzAsyncData: unknown; static ngAcceptInputType_nzMultiple: unknown; static ngAcceptInputType_nzDefaultExpandAll: unknown; static ngAcceptInputType_nzCheckStrictly: unknown; static ngAcceptInputType_nzMaxTagCount: unknown; } export declare class NzTreeSelectModule { static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeSelectModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<NzTreeSelectModule, never, [typeof NzTreeSelectComponent], [typeof NzTreeSelectComponent]>; static ɵinj: i0.ɵɵInjectorDeclaration<NzTreeSelectModule>; } export declare class NzTreeSelectService extends NzTreeBaseService { static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeSelectService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<any>; }