This commit is contained in:
CHEVALLIER Abel
2025-11-13 16:23:22 +01:00
parent de9c515a47
commit cb235644dc
34924 changed files with 3811102 additions and 0 deletions

174
node_modules/ng-zorro-antd/tree-select/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,174 @@
import * as i0 from '@angular/core';
import { OnInit, OnChanges, TemplateRef, EventEmitter, SimpleChanges } from '@angular/core';
import { Direction } from '@angular/cdk/bidi';
import { CdkOverlayOrigin, CdkConnectedOverlay, ConnectionPositionPair, ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
import { ControlValueAccessor } from '@angular/forms';
import { NzConfigKey } from 'ng-zorro-antd/core/config';
import { NzFormStatusService } from 'ng-zorro-antd/core/form';
import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';
import { NzTreeBase, NzTreeNode, NzTreeNodeOptions, NzFormatEmitEvent, NzTreeBaseService } from 'ng-zorro-antd/core/tree';
import { NzSizeLDSType, NzVariant, NgStyleInterface, NzStatus, NzSafeAny, NgClassInterface, NzValidateStatus, 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';
type NzPlacementType = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight' | '';
declare class NzTreeSelectComponent extends NzTreeBase implements ControlValueAccessor, OnInit, OnChanges {
readonly _nzModuleName: NzConfigKey;
private renderer;
private cdr;
private elementRef;
private directionality;
private focusMonitor;
private destroyRef;
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;
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;
dropdownPosition: 'top' | 'center' | 'bottom';
selectedNodes: NzTreeNode[];
expandedKeys: string[];
value: string[];
dir: Direction;
positions: ConnectionPositionPair[];
protected finalSize: i0.Signal<NzSizeLDSType>;
private size;
private compactSize;
private isNzDisableFirstChange;
private isComposingChange$;
private searchValueChange$;
onChange: OnChangeType;
onTouched: OnTouchedType;
get placeHolderDisplay(): string;
get isMultiple(): boolean;
noAnimation: NzNoAnimationDirective | null;
nzFormStatusService: NzFormStatusService | null;
private nzFormNoStatusService;
constructor();
ngOnInit(): void;
isComposingChange(isComposing: boolean): void;
setDisabledState(isDisabled: boolean): void;
private setStatusStyles;
ngOnChanges({ nzNodes, nzDropdownClassName, nzStatus, nzPlacement, nzSize }: 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;
}
declare class NzTreeSelectModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeSelectModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzTreeSelectModule, never, [typeof NzTreeSelectComponent], [typeof NzTreeSelectComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzTreeSelectModule>;
}
declare class NzTreeSelectService extends NzTreeBaseService {
static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeSelectService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NzTreeSelectService>;
}
export { NzTreeSelectComponent, NzTreeSelectModule, NzTreeSelectService };
export type { NzPlacementType };

3
node_modules/ng-zorro-antd/tree-select/package.json generated vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"module": "../fesm2022/ng-zorro-antd-tree-select.mjs"
}

View File

@@ -0,0 +1,7 @@
@import './index.less';
// style dependencies
// deps-lint-skip: select
@import '../../tree/style/entry.less';
@import '../../select/style/entry.less';
@import '../../empty/style/entry.less';
@import "./patch.less";

2302
node_modules/ng-zorro-antd/tree-select/style/index.css generated vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,57 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@import '../../tree/style/mixin';
@import '../../checkbox/style/mixin';
@tree-select-prefix-cls: ~'@{ant-prefix}-tree-select';
@select-tree-prefix-cls: ~'@{ant-prefix}-select-tree';
.antCheckboxFn(@checkbox-prefix-cls: ~'@{select-tree-prefix-cls}-checkbox');
.@{tree-select-prefix-cls} {
// ======================= Dropdown =======================
&-dropdown {
padding: @padding-xs (@padding-xs / 2);
&-rtl {
direction: rtl;
}
// ======================== Tree ========================
.@{select-tree-prefix-cls} {
border-radius: 0;
&-list-holder-inner {
align-items: stretch;
.@{select-tree-prefix-cls}-treenode {
.@{select-tree-prefix-cls}-node-content-wrapper {
flex: auto;
}
}
}
}
}
}
.@{select-tree-prefix-cls} {
.antTreeFn(@select-tree-prefix-cls);
// change switcher icon rotation in rtl direction
& &-switcher {
&_close {
.@{select-tree-prefix-cls}-switcher-icon {
svg {
.@{tree-select-prefix-cls}-dropdown-rtl & {
transform: rotate(90deg);
}
}
}
}
&-loading-icon {
.@{tree-select-prefix-cls}-dropdown-rtl & {
transform: scaleY(-1);
}
}
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,23 @@
.ant-tree.ant-select-tree.ant-tree-show-line nz-tree-node[builtin]:not(:last-child) > li::before {
position: absolute;
left: 12px;
width: 1px;
height: calc(100% - 16px);
margin: 26px 0;
border-left: 1px solid #d9d9d9;
content: ' ';
}
.ant-select-dropdown.ant-select-tree-dropdown {
position: relative;
top: 100%;
left: 0;
width: 100%;
margin-top: 4px;
margin-bottom: 4px;
overflow: auto;
.cdk-virtual-scroll-content-wrapper {
overflow: auto;
}
}