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

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

@@ -0,0 +1,411 @@
import * as i0 from '@angular/core';
import { OnInit, OnChanges, AfterViewInit, TemplateRef, EventEmitter, SimpleChanges } from '@angular/core';
import { Direction } from '@angular/cdk/bidi';
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
import { ControlValueAccessor } from '@angular/forms';
import { Observable, Subject } from 'rxjs';
import { NzConfigKey, NzConfigService } from 'ng-zorro-antd/core/config';
import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';
import { NzTreeBase, NzTreeNode, NzTreeNodeOptions, NzFormatBeforeDropEvent, NzTreeNodeKey, NzFormatEmitEvent, NzTreeBaseService } from 'ng-zorro-antd/core/tree';
export { NzFormatBeforeDropEvent, NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/core/tree';
import { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';
/**
* 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 function NzTreeServiceFactory(): NzTreeBaseService;
declare class NzTreeComponent extends NzTreeBase implements OnInit, ControlValueAccessor, OnChanges, AfterViewInit {
readonly _nzModuleName: NzConfigKey;
noAnimation: NzNoAnimationDirective | null;
nzConfigService: NzConfigService;
private cdr;
private directionality;
private destroyRef;
nzShowIcon: boolean;
nzHideUnMatched: boolean;
nzBlockNode: boolean;
nzExpandAll: boolean;
nzSelectMode: boolean;
nzCheckStrictly: boolean;
nzShowExpand: boolean;
nzShowLine: boolean;
nzCheckable: boolean;
nzAsyncData: boolean;
nzDraggable: boolean;
nzMultiple: boolean;
nzExpandedIcon?: TemplateRef<{
$implicit: NzTreeNode;
origin: NzTreeNodeOptions;
}>;
nzVirtualItemSize: number;
nzVirtualMaxBufferPx: number;
nzVirtualMinBufferPx: number;
nzVirtualHeight: string | null;
nzTreeTemplate?: TemplateRef<{
$implicit: NzTreeNode;
origin: NzTreeNodeOptions;
}>;
nzBeforeDrop?: (confirm: NzFormatBeforeDropEvent) => Observable<boolean>;
nzData: NzTreeNodeOptions[] | NzTreeNode[];
nzExpandedKeys: NzTreeNodeKey[];
nzSelectedKeys: NzTreeNodeKey[];
nzCheckedKeys: NzTreeNodeKey[];
nzSearchValue: string;
nzSearchFunc?: (node: NzTreeNodeOptions) => boolean;
nzTreeTemplateChild: TemplateRef<{
$implicit: NzTreeNode;
origin: NzTreeNodeOptions;
}>;
cdkVirtualScrollViewport: CdkVirtualScrollViewport;
nzFlattenNodes: NzTreeNode[];
beforeInit: boolean;
dir: Direction;
readonly nzExpandedKeysChange: EventEmitter<string[]>;
readonly nzSelectedKeysChange: EventEmitter<string[]>;
readonly nzCheckedKeysChange: EventEmitter<NzTreeNodeKey[]>;
readonly nzSearchValueChange: EventEmitter<NzFormatEmitEvent>;
readonly nzClick: EventEmitter<NzFormatEmitEvent>;
readonly nzDblClick: EventEmitter<NzFormatEmitEvent>;
readonly nzContextMenu: EventEmitter<NzFormatEmitEvent>;
readonly nzCheckboxChange: EventEmitter<NzFormatEmitEvent>;
readonly nzExpandChange: EventEmitter<NzFormatEmitEvent>;
readonly nzOnDragStart: EventEmitter<NzFormatEmitEvent>;
readonly nzOnDragEnter: EventEmitter<NzFormatEmitEvent>;
readonly nzOnDragOver: EventEmitter<NzFormatEmitEvent>;
readonly nzOnDragLeave: EventEmitter<NzFormatEmitEvent>;
readonly nzOnDrop: EventEmitter<NzFormatEmitEvent>;
readonly nzOnDragEnd: EventEmitter<NzFormatEmitEvent>;
HIDDEN_STYLE: {
width: number;
height: number;
display: string;
overflow: string;
opacity: number;
border: number;
padding: number;
margin: number;
};
HIDDEN_NODE_STYLE: {
position: string;
pointerEvents: string;
visibility: string;
height: number;
overflow: string;
};
onChange: (value: NzTreeNode[]) => void;
onTouched: () => void;
writeValue(value: NzTreeNode[]): void;
registerOnChange(fn: (_: NzTreeNode[]) => void): void;
registerOnTouched(fn: () => void): void;
/**
* Render all properties of nzTree
*
* @param changes all changes from @Input
*/
renderTreeProperties(changes: SimpleChanges): void;
trackByFlattenNode(_: number, node: NzTreeNode): string;
/**
* nzData
*
* @param value
*/
handleNzData(value: NzSafeAny[]): void;
handleFlattenNodes(data: NzTreeNode[], expandKeys?: NzTreeNodeKey[] | true): void;
handleCheckedKeys(keys: NzTreeNodeKey[] | null): void;
handleExpandedKeys(keys?: NzTreeNodeKey[] | true): void;
handleSelectedKeys(keys: NzTreeNodeKey[], isMulti: boolean): void;
handleSearchValue(value: string, searchFunc?: (node: NzTreeNodeOptions) => boolean): void;
/**
* Handle emit event
*
* @param event
* handle each event
*/
eventTriggerChanged(event: NzFormatEmitEvent): void;
/**
* Click expand icon
*/
renderTree(): void;
constructor();
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngAfterViewInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTreeComponent, "nz-tree", ["nzTree"], { "nzShowIcon": { "alias": "nzShowIcon"; "required": false; }; "nzHideUnMatched": { "alias": "nzHideUnMatched"; "required": false; }; "nzBlockNode": { "alias": "nzBlockNode"; "required": false; }; "nzExpandAll": { "alias": "nzExpandAll"; "required": false; }; "nzSelectMode": { "alias": "nzSelectMode"; "required": false; }; "nzCheckStrictly": { "alias": "nzCheckStrictly"; "required": false; }; "nzShowExpand": { "alias": "nzShowExpand"; "required": false; }; "nzShowLine": { "alias": "nzShowLine"; "required": false; }; "nzCheckable": { "alias": "nzCheckable"; "required": false; }; "nzAsyncData": { "alias": "nzAsyncData"; "required": false; }; "nzDraggable": { "alias": "nzDraggable"; "required": false; }; "nzMultiple": { "alias": "nzMultiple"; "required": false; }; "nzExpandedIcon": { "alias": "nzExpandedIcon"; "required": false; }; "nzVirtualItemSize": { "alias": "nzVirtualItemSize"; "required": false; }; "nzVirtualMaxBufferPx": { "alias": "nzVirtualMaxBufferPx"; "required": false; }; "nzVirtualMinBufferPx": { "alias": "nzVirtualMinBufferPx"; "required": false; }; "nzVirtualHeight": { "alias": "nzVirtualHeight"; "required": false; }; "nzTreeTemplate": { "alias": "nzTreeTemplate"; "required": false; }; "nzBeforeDrop": { "alias": "nzBeforeDrop"; "required": false; }; "nzData": { "alias": "nzData"; "required": false; }; "nzExpandedKeys": { "alias": "nzExpandedKeys"; "required": false; }; "nzSelectedKeys": { "alias": "nzSelectedKeys"; "required": false; }; "nzCheckedKeys": { "alias": "nzCheckedKeys"; "required": false; }; "nzSearchValue": { "alias": "nzSearchValue"; "required": false; }; "nzSearchFunc": { "alias": "nzSearchFunc"; "required": false; }; }, { "nzExpandedKeysChange": "nzExpandedKeysChange"; "nzSelectedKeysChange": "nzSelectedKeysChange"; "nzCheckedKeysChange": "nzCheckedKeysChange"; "nzSearchValueChange": "nzSearchValueChange"; "nzClick": "nzClick"; "nzDblClick": "nzDblClick"; "nzContextMenu": "nzContextMenu"; "nzCheckboxChange": "nzCheckboxChange"; "nzExpandChange": "nzExpandChange"; "nzOnDragStart": "nzOnDragStart"; "nzOnDragEnter": "nzOnDragEnter"; "nzOnDragOver": "nzOnDragOver"; "nzOnDragLeave": "nzOnDragLeave"; "nzOnDrop": "nzOnDrop"; "nzOnDragEnd": "nzOnDragEnd"; }, ["nzTreeTemplateChild"], never, true, never>;
static ngAcceptInputType_nzShowIcon: unknown;
static ngAcceptInputType_nzHideUnMatched: unknown;
static ngAcceptInputType_nzBlockNode: unknown;
static ngAcceptInputType_nzExpandAll: unknown;
static ngAcceptInputType_nzSelectMode: unknown;
static ngAcceptInputType_nzCheckStrictly: unknown;
static ngAcceptInputType_nzShowExpand: unknown;
static ngAcceptInputType_nzShowLine: unknown;
static ngAcceptInputType_nzCheckable: unknown;
static ngAcceptInputType_nzAsyncData: unknown;
static ngAcceptInputType_nzDraggable: unknown;
static ngAcceptInputType_nzMultiple: unknown;
}
/**
* 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 NzTreeNodeBuiltinComponent implements OnInit, OnChanges {
noAnimation: NzNoAnimationDirective | null;
nzTreeService: NzTreeBaseService;
private ngZone;
private renderer;
private el;
private cdr;
private destroyRef;
icon: string;
title: string;
isLoading: boolean;
isSelected: boolean;
isDisabled: boolean;
isMatched: boolean;
isExpanded: boolean;
isLeaf: boolean;
isChecked?: boolean;
isHalfChecked?: boolean;
isDisableCheckbox?: boolean;
isSelectable?: boolean;
canHide?: boolean;
isStart: boolean[];
isEnd: boolean[];
nzTreeNode: NzTreeNode;
nzShowLine?: boolean;
nzShowExpand?: boolean;
nzCheckable?: boolean;
nzAsyncData?: boolean;
nzHideUnMatched: boolean;
nzNoAnimation: boolean;
nzSelectMode: boolean;
nzShowIcon: boolean;
nzExpandedIcon?: TemplateRef<{
$implicit: NzTreeNode;
origin: NzTreeNodeOptions;
}>;
nzTreeTemplate: TemplateRef<{
$implicit: NzTreeNode;
origin: NzTreeNodeOptions;
}> | null;
nzBeforeDrop?: (confirm: NzFormatBeforeDropEvent) => Observable<boolean>;
nzSearchValue: string;
nzDraggable: boolean;
readonly nzClick: EventEmitter<NzFormatEmitEvent>;
readonly nzDblClick: EventEmitter<NzFormatEmitEvent>;
readonly nzContextMenu: EventEmitter<NzFormatEmitEvent>;
readonly nzCheckboxChange: EventEmitter<NzFormatEmitEvent>;
readonly nzExpandChange: EventEmitter<NzFormatEmitEvent>;
readonly nzOnDragStart: EventEmitter<NzFormatEmitEvent>;
readonly nzOnDragEnter: EventEmitter<NzFormatEmitEvent>;
readonly nzOnDragOver: EventEmitter<NzFormatEmitEvent>;
readonly nzOnDragLeave: EventEmitter<NzFormatEmitEvent>;
readonly nzOnDrop: EventEmitter<NzFormatEmitEvent>;
readonly nzOnDragEnd: EventEmitter<NzFormatEmitEvent>;
/**
* drag var
*/
destroy$: Subject<void>;
dragPos: number;
dragPosClass: Record<string, string>;
draggingKey: string | null;
showIndicator: boolean;
/**
* default set
*/
get displayStyle(): string;
get isSwitcherOpen(): boolean;
get isSwitcherClose(): boolean;
/**
* collapse node
*
* @param event
*/
clickExpand(event: MouseEvent): void;
clickSelect(event: MouseEvent): void;
dblClick(event: MouseEvent): void;
contextMenu(event: MouseEvent): void;
/**
* check node
*
* @param event
*/
clickCheckbox(event: MouseEvent): void;
clearDragClass(): void;
/**
* drag event
*
* @param e
*/
handleDragStart(e: DragEvent): void;
handleDragEnter(e: DragEvent): void;
handleDragOver(e: DragEvent): void;
handleDragLeave(e: DragEvent): void;
handleDragDrop(e: DragEvent): void;
handleDragEnd(e: DragEvent): void;
/**
* Listening to dragging events.
*/
handDragEvent(): void;
markForCheck(): void;
constructor();
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
private renderIndicator;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeNodeBuiltinComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTreeNodeBuiltinComponent, "nz-tree-node[builtin]", ["nzTreeBuiltinNode"], { "icon": { "alias": "icon"; "required": false; }; "title": { "alias": "title"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isMatched": { "alias": "isMatched"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "isLeaf": { "alias": "isLeaf"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "isHalfChecked": { "alias": "isHalfChecked"; "required": false; }; "isDisableCheckbox": { "alias": "isDisableCheckbox"; "required": false; }; "isSelectable": { "alias": "isSelectable"; "required": false; }; "canHide": { "alias": "canHide"; "required": false; }; "isStart": { "alias": "isStart"; "required": false; }; "isEnd": { "alias": "isEnd"; "required": false; }; "nzTreeNode": { "alias": "nzTreeNode"; "required": false; }; "nzShowLine": { "alias": "nzShowLine"; "required": false; }; "nzShowExpand": { "alias": "nzShowExpand"; "required": false; }; "nzCheckable": { "alias": "nzCheckable"; "required": false; }; "nzAsyncData": { "alias": "nzAsyncData"; "required": false; }; "nzHideUnMatched": { "alias": "nzHideUnMatched"; "required": false; }; "nzNoAnimation": { "alias": "nzNoAnimation"; "required": false; }; "nzSelectMode": { "alias": "nzSelectMode"; "required": false; }; "nzShowIcon": { "alias": "nzShowIcon"; "required": false; }; "nzExpandedIcon": { "alias": "nzExpandedIcon"; "required": false; }; "nzTreeTemplate": { "alias": "nzTreeTemplate"; "required": false; }; "nzBeforeDrop": { "alias": "nzBeforeDrop"; "required": false; }; "nzSearchValue": { "alias": "nzSearchValue"; "required": false; }; "nzDraggable": { "alias": "nzDraggable"; "required": false; }; }, { "nzClick": "nzClick"; "nzDblClick": "nzDblClick"; "nzContextMenu": "nzContextMenu"; "nzCheckboxChange": "nzCheckboxChange"; "nzExpandChange": "nzExpandChange"; "nzOnDragStart": "nzOnDragStart"; "nzOnDragEnter": "nzOnDragEnter"; "nzOnDragOver": "nzOnDragOver"; "nzOnDragLeave": "nzOnDragLeave"; "nzOnDrop": "nzOnDrop"; "nzOnDragEnd": "nzOnDragEnd"; }, never, never, true, never>;
static ngAcceptInputType_isLoading: unknown;
static ngAcceptInputType_isSelected: unknown;
static ngAcceptInputType_isDisabled: unknown;
static ngAcceptInputType_isMatched: unknown;
static ngAcceptInputType_isExpanded: unknown;
static ngAcceptInputType_isLeaf: unknown;
static ngAcceptInputType_isChecked: unknown;
static ngAcceptInputType_isHalfChecked: unknown;
static ngAcceptInputType_isDisableCheckbox: unknown;
static ngAcceptInputType_isSelectable: unknown;
static ngAcceptInputType_canHide: unknown;
static ngAcceptInputType_nzShowLine: unknown;
static ngAcceptInputType_nzShowExpand: unknown;
static ngAcceptInputType_nzCheckable: unknown;
static ngAcceptInputType_nzAsyncData: unknown;
static ngAcceptInputType_nzHideUnMatched: unknown;
static ngAcceptInputType_nzNoAnimation: unknown;
static ngAcceptInputType_nzSelectMode: unknown;
static ngAcceptInputType_nzShowIcon: unknown;
static ngAcceptInputType_nzDraggable: unknown;
}
/**
* 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 NzTreeIndentComponent implements OnChanges {
nzTreeLevel: number;
nzIsStart: boolean[];
nzIsEnd: boolean[];
nzSelectMode: boolean;
listOfUnit: number[];
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeIndentComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTreeIndentComponent, "nz-tree-indent", ["nzTreeIndent"], { "nzTreeLevel": { "alias": "nzTreeLevel"; "required": false; }; "nzIsStart": { "alias": "nzIsStart"; "required": false; }; "nzIsEnd": { "alias": "nzIsEnd"; "required": false; }; "nzSelectMode": { "alias": "nzSelectMode"; "required": false; }; }, {}, 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
*/
declare class NzTreeNodeSwitcherComponent {
nzShowExpand?: boolean;
nzShowLine?: boolean;
nzExpandedIcon?: TemplateRef<{
$implicit: NzTreeNode;
origin: NzTreeNodeOptions;
}>;
nzSelectMode: boolean;
context: NzTreeNode;
isLeaf?: boolean;
isLoading?: boolean;
isExpanded?: boolean;
get isShowLineIcon(): boolean;
get isShowSwitchIcon(): boolean;
get isSwitcherOpen(): boolean;
get isSwitcherClose(): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeNodeSwitcherComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTreeNodeSwitcherComponent, "nz-tree-node-switcher", never, { "nzShowExpand": { "alias": "nzShowExpand"; "required": false; }; "nzShowLine": { "alias": "nzShowLine"; "required": false; }; "nzExpandedIcon": { "alias": "nzExpandedIcon"; "required": false; }; "nzSelectMode": { "alias": "nzSelectMode"; "required": false; }; "context": { "alias": "context"; "required": false; }; "isLeaf": { "alias": "isLeaf"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_nzShowExpand: unknown;
static ngAcceptInputType_nzShowLine: unknown;
static ngAcceptInputType_isLeaf: unknown;
static ngAcceptInputType_isLoading: unknown;
static ngAcceptInputType_isExpanded: unknown;
}
declare class NzTreeNodeBuiltinCheckboxComponent {
nzSelectMode: boolean;
isChecked?: boolean;
isHalfChecked?: boolean;
isDisabled?: boolean;
isDisableCheckbox?: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeNodeBuiltinCheckboxComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTreeNodeBuiltinCheckboxComponent, "nz-tree-node-checkbox[builtin]", never, { "nzSelectMode": { "alias": "nzSelectMode"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "isHalfChecked": { "alias": "isHalfChecked"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isDisableCheckbox": { "alias": "isDisableCheckbox"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_isChecked: unknown;
static ngAcceptInputType_isHalfChecked: unknown;
static ngAcceptInputType_isDisabled: unknown;
static ngAcceptInputType_isDisableCheckbox: unknown;
}
declare class NzTreeNodeTitleComponent implements OnChanges {
private cdr;
searchValue: string;
treeTemplate: TemplateRef<{
$implicit: NzTreeNode;
origin: NzTreeNodeOptions;
}> | null;
draggable: boolean;
showIcon: boolean;
selectMode: boolean;
context: NzTreeNode;
icon: string;
title: string;
isLoading: boolean;
isSelected: boolean;
isDisabled: boolean;
isMatched: boolean;
isExpanded: boolean;
isLeaf: boolean;
showIndicator: boolean;
dragPosition?: number;
get canDraggable(): boolean | null;
get matchedValue(): string;
get isSwitcherOpen(): boolean;
get isSwitcherClose(): boolean;
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeNodeTitleComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTreeNodeTitleComponent, "nz-tree-node-title", never, { "searchValue": { "alias": "searchValue"; "required": false; }; "treeTemplate": { "alias": "treeTemplate"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; "context": { "alias": "context"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "title": { "alias": "title"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isMatched": { "alias": "isMatched"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "isLeaf": { "alias": "isLeaf"; "required": false; }; "showIndicator": { "alias": "showIndicator"; "required": false; }; "dragPosition": { "alias": "dragPosition"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_draggable: unknown;
static ngAcceptInputType_showIcon: unknown;
static ngAcceptInputType_isLoading: unknown;
static ngAcceptInputType_isSelected: unknown;
static ngAcceptInputType_isDisabled: unknown;
static ngAcceptInputType_isMatched: unknown;
static ngAcceptInputType_isExpanded: unknown;
static ngAcceptInputType_isLeaf: unknown;
}
/**
* 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 NzTreeDropIndicatorComponent implements OnChanges {
dropPosition?: number;
level: number;
direction: Direction;
style: NgStyleInterface;
private cdr;
ngOnChanges(): void;
renderIndicator(dropPosition: number, direction?: Direction): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeDropIndicatorComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTreeDropIndicatorComponent, "nz-tree-drop-indicator", ["nzTreeDropIndicator"], { "dropPosition": { "alias": "dropPosition"; "required": false; }; "level": { "alias": "level"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_level: unknown;
}
declare class NzTreeModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzTreeModule, never, [typeof NzTreeComponent, typeof NzTreeNodeBuiltinComponent, typeof NzTreeIndentComponent, typeof NzTreeNodeSwitcherComponent, typeof NzTreeNodeBuiltinCheckboxComponent, typeof NzTreeNodeTitleComponent, typeof NzTreeDropIndicatorComponent], [typeof NzTreeComponent, typeof NzTreeNodeBuiltinComponent, typeof NzTreeIndentComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzTreeModule>;
}
declare class NzTreeService extends NzTreeBaseService {
static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NzTreeService>;
}
export { NzTreeComponent, NzTreeIndentComponent, NzTreeModule, NzTreeNodeBuiltinCheckboxComponent, NzTreeNodeBuiltinComponent, NzTreeNodeSwitcherComponent, NzTreeNodeTitleComponent, NzTreeService, NzTreeServiceFactory };

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

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

72
node_modules/ng-zorro-antd/tree/style/directory.less generated vendored Normal file
View File

@@ -0,0 +1,72 @@
@import '../../style/themes/index';
@tree-prefix-cls: ~'@{ant-prefix}-tree';
.@{tree-prefix-cls}.@{tree-prefix-cls}-directory {
// ================== TreeNode ==================
.@{tree-prefix-cls}-treenode {
position: relative;
// Hover color
&::before {
position: absolute;
top: 0;
right: 0;
bottom: 4px;
left: 0;
transition: background-color 0.3s;
content: '';
pointer-events: none;
}
&:hover {
&::before {
background: @item-hover-bg;
}
}
// Elements
> * {
z-index: 1;
}
// >>> Switcher
.@{tree-prefix-cls}-switcher {
transition: color 0.3s;
}
// >>> Title
.@{tree-prefix-cls}-node-content-wrapper {
border-radius: 0;
user-select: none;
&:hover {
background: transparent;
}
&.@{tree-prefix-cls}-node-selected {
color: @tree-directory-selected-color;
background: transparent;
}
}
// ============= Selected =============
&-selected {
&:hover::before,
&::before {
background: @tree-directory-selected-bg;
}
// >>> Switcher
.@{tree-prefix-cls}-switcher {
color: @tree-directory-selected-color;
}
// >>> Title
.@{tree-prefix-cls}-node-content-wrapper {
color: @tree-directory-selected-color;
background: transparent;
}
}
}
}

2
node_modules/ng-zorro-antd/tree/style/entry.less generated vendored Normal file
View File

@@ -0,0 +1,2 @@
@import './index.less';
@import './patch.less';

531
node_modules/ng-zorro-antd/tree/style/index.css generated vendored Normal file
View File

@@ -0,0 +1,531 @@
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
@keyframes antCheckboxEffect {
0% {
transform: scale(1);
opacity: 0.5;
}
100% {
transform: scale(1.6);
opacity: 0;
}
}
@keyframes ant-tree-node-fx-do-not-use {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.ant-tree.ant-tree-directory .ant-tree-treenode {
position: relative;
}
.ant-tree.ant-tree-directory .ant-tree-treenode::before {
position: absolute;
top: 0;
right: 0;
bottom: 4px;
left: 0;
transition: background-color 0.3s;
content: '';
pointer-events: none;
}
.ant-tree.ant-tree-directory .ant-tree-treenode:hover::before {
background: #f5f5f5;
}
.ant-tree.ant-tree-directory .ant-tree-treenode > * {
z-index: 1;
}
.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-switcher {
transition: color 0.3s;
}
.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper {
border-radius: 0;
user-select: none;
}
.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper:hover {
background: transparent;
}
.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper.ant-tree-node-selected {
color: #fff;
background: transparent;
}
.ant-tree.ant-tree-directory .ant-tree-treenode-selected:hover::before,
.ant-tree.ant-tree-directory .ant-tree-treenode-selected::before {
background: #1890ff;
}
.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-switcher {
color: #fff;
}
.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-node-content-wrapper {
color: #fff;
background: transparent;
}
.ant-tree-checkbox {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum';
position: relative;
top: 0.2em;
line-height: 1;
white-space: nowrap;
outline: none;
cursor: pointer;
}
.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-inner,
.ant-tree-checkbox:hover .ant-tree-checkbox-inner,
.ant-tree-checkbox-input:focus + .ant-tree-checkbox-inner {
border-color: #1890ff;
}
.ant-tree-checkbox-checked::after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 1px solid #1890ff;
border-radius: 2px;
visibility: hidden;
animation: antCheckboxEffect 0.36s ease-in-out;
animation-fill-mode: backwards;
content: '';
}
.ant-tree-checkbox:hover::after,
.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox::after {
visibility: visible;
}
.ant-tree-checkbox-inner {
position: relative;
top: 0;
left: 0;
display: block;
width: 16px;
height: 16px;
direction: ltr;
background-color: #fff;
border: 1px solid #d9d9d9;
border-radius: 2px;
border-collapse: separate;
transition: all 0.3s;
}
.ant-tree-checkbox-inner::after {
position: absolute;
top: 50%;
left: 21.5%;
display: table;
width: 5.71428571px;
height: 9.14285714px;
border: 2px solid #fff;
border-top: 0;
border-left: 0;
transform: rotate(45deg) scale(0) translate(-50%, -50%);
opacity: 0;
transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
content: ' ';
}
.ant-tree-checkbox-input {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
width: 100%;
height: 100%;
cursor: pointer;
opacity: 0;
}
.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after {
position: absolute;
display: table;
border: 2px solid #fff;
border-top: 0;
border-left: 0;
transform: rotate(45deg) scale(1) translate(-50%, -50%);
opacity: 1;
transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
content: ' ';
}
.ant-tree-checkbox-checked .ant-tree-checkbox-inner {
background-color: #1890ff;
border-color: #1890ff;
}
.ant-tree-checkbox-disabled {
cursor: not-allowed;
}
.ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after {
border-color: rgba(0, 0, 0, 0.25);
animation-name: none;
}
.ant-tree-checkbox-disabled .ant-tree-checkbox-input {
cursor: not-allowed;
pointer-events: none;
}
.ant-tree-checkbox-disabled .ant-tree-checkbox-inner {
background-color: #f5f5f5;
border-color: #d9d9d9 !important;
}
.ant-tree-checkbox-disabled .ant-tree-checkbox-inner::after {
border-color: #f5f5f5;
border-collapse: separate;
animation-name: none;
}
.ant-tree-checkbox-disabled + span {
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
}
.ant-tree-checkbox-disabled:hover::after,
.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-disabled::after {
visibility: hidden;
}
.ant-tree-checkbox-wrapper {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum';
display: inline-flex;
align-items: baseline;
line-height: unset;
cursor: pointer;
}
.ant-tree-checkbox-wrapper::after {
display: inline-block;
width: 0;
overflow: hidden;
content: '\a0';
}
.ant-tree-checkbox-wrapper.ant-tree-checkbox-wrapper-disabled {
cursor: not-allowed;
}
.ant-tree-checkbox-wrapper + .ant-tree-checkbox-wrapper {
margin-left: 8px;
}
.ant-tree-checkbox-wrapper.ant-tree-checkbox-wrapper-in-form-item input[type='checkbox'] {
width: 14px;
height: 14px;
}
.ant-tree-checkbox + span {
padding-right: 8px;
padding-left: 8px;
}
.ant-tree-checkbox-group {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum';
display: inline-block;
}
.ant-tree-checkbox-group-item {
margin-right: 8px;
}
.ant-tree-checkbox-group-item:last-child {
margin-right: 0;
}
.ant-tree-checkbox-group-item + .ant-tree-checkbox-group-item {
margin-left: 0;
}
.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner {
background-color: #fff;
border-color: #d9d9d9;
}
.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner::after {
top: 50%;
left: 50%;
width: 8px;
height: 8px;
background-color: #1890ff;
border: 0;
transform: translate(-50%, -50%) scale(1);
opacity: 1;
content: ' ';
}
.ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner::after {
background-color: rgba(0, 0, 0, 0.25);
border-color: rgba(0, 0, 0, 0.25);
}
.ant-tree {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum';
background: #fff;
border-radius: 2px;
transition: background-color 0.3s;
}
.ant-tree-focused:not(:hover):not(.ant-tree-active-focused) {
background: #e6f7ff;
}
.ant-tree-list-holder-inner {
align-items: flex-start;
}
.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner {
align-items: stretch;
}
.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper {
flex: auto;
}
.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-treenode.dragging {
position: relative;
}
.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-treenode.dragging::after {
position: absolute;
top: 0;
right: 0;
bottom: 4px;
left: 0;
border: 1px solid #1890ff;
opacity: 0;
animation: ant-tree-node-fx-do-not-use 0.3s;
animation-play-state: running;
animation-fill-mode: forwards;
content: '';
pointer-events: none;
}
.ant-tree .ant-tree-treenode {
display: flex;
align-items: flex-start;
padding: 0 0 4px 0;
outline: none;
}
.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
}
.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper:hover {
background: transparent;
}
.ant-tree .ant-tree-treenode-active .ant-tree-node-content-wrapper {
background: #f5f5f5;
}
.ant-tree .ant-tree-treenode:not(.ant-tree .ant-tree-treenode-disabled).filter-node .ant-tree-title {
color: inherit;
font-weight: 500;
}
.ant-tree .ant-tree-treenode-draggable .ant-tree-draggable-icon {
width: 24px;
line-height: 24px;
text-align: center;
visibility: visible;
opacity: 0.2;
transition: opacity 0.3s;
}
.ant-tree-treenode:hover .ant-tree .ant-tree-treenode-draggable .ant-tree-draggable-icon {
opacity: 0.45;
}
.ant-tree .ant-tree-treenode-draggable.ant-tree-treenode-disabled .ant-tree-draggable-icon {
visibility: hidden;
}
.ant-tree-indent {
align-self: stretch;
white-space: nowrap;
user-select: none;
}
.ant-tree-indent-unit {
display: inline-block;
width: 24px;
}
.ant-tree-draggable-icon {
visibility: hidden;
}
.ant-tree-switcher {
position: relative;
flex: none;
align-self: stretch;
width: 24px;
margin: 0;
line-height: 24px;
text-align: center;
cursor: pointer;
user-select: none;
}
.ant-tree-switcher .ant-tree-switcher-icon,
.ant-tree-switcher .ant-select-tree-switcher-icon {
display: inline-block;
font-size: 10px;
vertical-align: baseline;
}
.ant-tree-switcher .ant-tree-switcher-icon svg,
.ant-tree-switcher .ant-select-tree-switcher-icon svg {
transition: transform 0.3s;
}
.ant-tree-switcher-noop {
cursor: default;
}
.ant-tree-switcher_close .ant-tree-switcher-icon svg {
transform: rotate(-90deg);
}
.ant-tree-switcher-loading-icon {
color: #1890ff;
}
.ant-tree-switcher-leaf-line {
position: relative;
z-index: 1;
display: inline-block;
width: 100%;
height: 100%;
}
.ant-tree-switcher-leaf-line::before {
position: absolute;
top: 0;
right: 12px;
bottom: -4px;
margin-left: -1px;
border-right: 1px solid #d9d9d9;
content: ' ';
}
.ant-tree-switcher-leaf-line::after {
position: absolute;
width: 10px;
height: 14px;
border-bottom: 1px solid #d9d9d9;
content: ' ';
}
.ant-tree-checkbox {
top: initial;
margin: 4px 8px 0 0;
}
.ant-tree .ant-tree-node-content-wrapper {
position: relative;
z-index: auto;
min-height: 24px;
margin: 0;
padding: 0 4px;
color: inherit;
line-height: 24px;
background: transparent;
border-radius: 2px;
cursor: pointer;
transition: all 0.3s, border 0s, line-height 0s, box-shadow 0s;
}
.ant-tree .ant-tree-node-content-wrapper:hover {
background-color: #f5f5f5;
}
.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
background-color: #bae7ff;
}
.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle {
display: inline-block;
width: 24px;
height: 24px;
line-height: 24px;
text-align: center;
vertical-align: top;
}
.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle:empty {
display: none;
}
.ant-tree-unselectable .ant-tree-node-content-wrapper:hover {
background-color: transparent;
}
.ant-tree-node-content-wrapper {
line-height: 24px;
user-select: none;
}
.ant-tree-node-content-wrapper .ant-tree-drop-indicator {
position: absolute;
z-index: 1;
height: 2px;
background-color: #1890ff;
border-radius: 1px;
pointer-events: none;
}
.ant-tree-node-content-wrapper .ant-tree-drop-indicator::after {
position: absolute;
top: -3px;
left: -6px;
width: 8px;
height: 8px;
background-color: transparent;
border: 2px solid #1890ff;
border-radius: 50%;
content: '';
}
.ant-tree .ant-tree-treenode.drop-container > [draggable] {
box-shadow: 0 0 0 2px #1890ff;
}
.ant-tree-show-line .ant-tree-indent-unit {
position: relative;
height: 100%;
}
.ant-tree-show-line .ant-tree-indent-unit::before {
position: absolute;
top: 0;
right: 12px;
bottom: -4px;
border-right: 1px solid #d9d9d9;
content: '';
}
.ant-tree-show-line .ant-tree-indent-unit-end::before {
display: none;
}
.ant-tree-show-line .ant-tree-switcher {
background: #fff;
}
.ant-tree-show-line .ant-tree-switcher-line-icon {
vertical-align: -0.15em;
}
.ant-tree .ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line::before {
top: auto !important;
bottom: auto !important;
height: 14px !important;
}
.ant-tree-rtl {
direction: rtl;
}
.ant-tree-rtl .ant-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator::after {
right: -6px;
left: unset;
}
.ant-tree .ant-tree-treenode-rtl {
direction: rtl;
}
.ant-tree-rtl .ant-tree-switcher_close .ant-tree-switcher-icon svg {
transform: rotate(90deg);
}
.ant-tree-rtl.ant-tree-show-line .ant-tree-indent-unit::before {
right: auto;
left: -13px;
border-right: none;
border-left: 1px solid #d9d9d9;
}
.ant-tree-rtl .ant-tree-checkbox {
margin: 4px 0 0 8px;
}
.ant-tree-select-dropdown-rtl .ant-select-tree-checkbox {
margin: 4px 0 0 8px;
}
/*
* 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
*/
.font-highlight {
color: #ff4d4f;
}
.ant-tree-child-tree {
overflow: hidden;
}
nz-tree {
display: block;
}

16
node_modules/ng-zorro-antd/tree/style/index.less generated vendored Normal file
View File

@@ -0,0 +1,16 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@import '../../checkbox/style/mixin';
@import './mixin';
@import './directory';
@tree-prefix-cls: ~'@{ant-prefix}-tree';
@tree-node-prefix-cls: ~'@{tree-prefix-cls}-treenode';
.antCheckboxFn(@checkbox-prefix-cls: ~'@{ant-prefix}-tree-checkbox');
.@{tree-prefix-cls} {
.antTreeFn(@tree-prefix-cls);
}
@import './rtl';

1
node_modules/ng-zorro-antd/tree/style/index.min.css generated vendored Normal file

File diff suppressed because one or more lines are too long

337
node_modules/ng-zorro-antd/tree/style/mixin.less generated vendored Normal file
View File

@@ -0,0 +1,337 @@
@import '../../style/mixins/index';
@tree-prefix-cls: ~'@{ant-prefix}-tree';
@select-tree-prefix-cls: ~'@{ant-prefix}-select-tree';
@tree-motion: ~'@{ant-prefix}-motion-collapse';
@tree-node-padding: (@padding-xs / 2);
// @deprecated: kept for customization usages, recommend using @tree-node-highlight-color instead.
@tree-node-hightlight-color: inherit;
@tree-node-highlight-color: @tree-node-hightlight-color;
.antTreeSwitcherIcon(@type: 'tree-default-open-icon') {
.@{tree-prefix-cls}-switcher-icon,
.@{select-tree-prefix-cls}-switcher-icon {
display: inline-block;
font-size: 10px;
vertical-align: baseline;
svg {
transition: transform 0.3s;
}
}
}
.drop-indicator() {
.@{tree-prefix-cls}-drop-indicator {
position: absolute;
// it should displayed over the following node
z-index: 1;
height: 2px;
background-color: @primary-color;
border-radius: 1px;
pointer-events: none;
&::after {
position: absolute;
top: -3px;
left: -6px;
width: 8px;
height: 8px;
background-color: transparent;
border: 2px solid @primary-color;
border-radius: 50%;
content: '';
}
}
}
.antTreeFn(@custom-tree-prefix-cls) {
@custom-tree-node-prefix-cls: ~'@{custom-tree-prefix-cls}-treenode';
.reset-component();
background: @tree-bg;
border-radius: @border-radius-base;
transition: background-color 0.3s;
&-focused:not(:hover):not(&-active-focused) {
background: @primary-1;
}
// =================== Virtual List ===================
&-list-holder-inner {
align-items: flex-start;
}
&.@{custom-tree-prefix-cls}-block-node {
.@{custom-tree-prefix-cls}-list-holder-inner {
align-items: stretch;
// >>> Title
.@{custom-tree-prefix-cls}-node-content-wrapper {
flex: auto;
}
// >>> Drag
.@{custom-tree-node-prefix-cls}.dragging {
position: relative;
&::after {
position: absolute;
top: 0;
right: 0;
bottom: @tree-node-padding;
left: 0;
border: 1px solid @primary-color;
opacity: 0;
animation: ant-tree-node-fx-do-not-use 0.3s;
animation-play-state: running;
animation-fill-mode: forwards;
content: '';
pointer-events: none;
}
}
}
}
// ===================== TreeNode =====================
.@{custom-tree-node-prefix-cls} {
display: flex;
align-items: flex-start;
padding: 0 0 @tree-node-padding 0;
outline: none;
// Disabled
&-disabled {
// >>> Title
.@{custom-tree-prefix-cls}-node-content-wrapper {
color: @disabled-color;
cursor: not-allowed;
&:hover {
background: transparent;
}
}
}
&-active .@{custom-tree-prefix-cls}-node-content-wrapper {
background: @tree-node-hover-bg;
}
&:not(&-disabled).filter-node .@{custom-tree-prefix-cls}-title {
color: @tree-node-highlight-color;
font-weight: 500;
}
&-draggable {
.@{custom-tree-prefix-cls}-draggable-icon {
width: @tree-title-height;
line-height: @tree-title-height;
text-align: center;
visibility: visible;
opacity: 0.2;
transition: opacity @animation-duration-slow;
.@{custom-tree-node-prefix-cls}:hover & {
opacity: 0.45;
}
}
&.@{custom-tree-node-prefix-cls}-disabled {
.@{custom-tree-prefix-cls}-draggable-icon {
visibility: hidden;
}
}
}
}
// >>> Indent
&-indent {
align-self: stretch;
white-space: nowrap;
user-select: none;
&-unit {
display: inline-block;
width: @tree-title-height;
}
}
// >>> Drag Handler
&-draggable-icon {
visibility: hidden;
}
// >>> Switcher
&-switcher {
.antTreeSwitcherIcon();
position: relative;
flex: none;
align-self: stretch;
width: @tree-title-height;
margin: 0;
line-height: @tree-title-height;
text-align: center;
cursor: pointer;
user-select: none;
&-noop {
cursor: default;
}
&_close {
.@{custom-tree-prefix-cls}-switcher-icon {
svg {
transform: rotate(-90deg);
}
}
}
&-loading-icon {
color: @primary-color;
}
&-leaf-line {
position: relative;
z-index: 1;
display: inline-block;
width: 100%;
height: 100%;
// https://github.com/ant-design/ant-design/issues/31884
&::before {
position: absolute;
top: 0;
right: 12px;
bottom: -@tree-node-padding;
margin-left: -1px;
border-right: 1px solid @normal-color;
content: ' ';
}
&::after {
position: absolute;
width: @tree-title-height - 14px;
height: @tree-title-height - 10px;
border-bottom: 1px solid @normal-color;
content: ' ';
}
}
}
// >>> Checkbox
&-checkbox {
top: initial;
margin: ((@tree-title-height - @checkbox-size) / 2) 8px 0 0;
}
// >>> Title
& &-node-content-wrapper {
position: relative;
z-index: auto;
min-height: @tree-title-height;
margin: 0;
padding: 0 4px;
color: inherit;
line-height: @tree-title-height;
background: transparent;
border-radius: @border-radius-base;
cursor: pointer;
transition: all 0.3s, border 0s, line-height 0s, box-shadow 0s;
&:hover {
background-color: @tree-node-hover-bg;
}
&.@{custom-tree-prefix-cls}-node-selected {
background-color: @tree-node-selected-bg;
}
// Icon
.@{custom-tree-prefix-cls}-iconEle {
display: inline-block;
width: @tree-title-height;
height: @tree-title-height;
line-height: @tree-title-height;
text-align: center;
vertical-align: top;
&:empty {
display: none;
}
}
}
// https://github.com/ant-design/ant-design/issues/28217
&-unselectable &-node-content-wrapper:hover {
background-color: transparent;
}
// ==================== Draggable =====================
&-node-content-wrapper {
line-height: @tree-title-height;
user-select: none;
.drop-indicator();
}
.@{custom-tree-node-prefix-cls}.drop-container {
> [draggable] {
box-shadow: 0 0 0 2px @primary-color;
}
}
// ==================== Show Line =====================
&-show-line {
// ================ Indent lines ================
.@{custom-tree-prefix-cls}-indent {
&-unit {
position: relative;
height: 100%;
&::before {
position: absolute;
top: 0;
right: (@tree-title-height / 2);
bottom: -@tree-node-padding;
border-right: 1px solid @border-color-base;
content: '';
}
&-end {
&::before {
display: none;
}
}
}
}
// ============== Cover Background ==============
.@{custom-tree-prefix-cls}-switcher {
background: @component-background;
&-line-icon {
// https://github.com/ant-design/ant-design/issues/32813
vertical-align: -0.15em;
}
}
}
.@{custom-tree-node-prefix-cls}-leaf-last {
.@{custom-tree-prefix-cls}-switcher {
&-leaf-line {
&::before {
top: auto !important;
bottom: auto !important;
height: @tree-title-height - 10px !important;
}
}
}
}
}
@keyframes ant-tree-node-fx-do-not-use {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

17
node_modules/ng-zorro-antd/tree/style/patch.less generated vendored Normal file
View File

@@ -0,0 +1,17 @@
/*
* 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
*/
.font-highlight {
color: @highlight-color;
}
.@{tree-prefix-cls}-child-tree {
// The overflow of the collapse animation in edge and IE is invalid
overflow: hidden;
}
nz-tree {
display: block;
}

72
node_modules/ng-zorro-antd/tree/style/rtl.less generated vendored Normal file
View File

@@ -0,0 +1,72 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@import '../../checkbox/style/mixin';
@tree-prefix-cls: ~'@{ant-prefix}-tree';
@select-tree-prefix-cls: ~'@{ant-prefix}-select-tree';
@tree-node-prefix-cls: ~'@{tree-prefix-cls}-treenode';
.@{tree-prefix-cls} {
&-rtl {
direction: rtl;
.@{tree-prefix-cls}-node-content-wrapper[draggable='true'] {
.@{tree-prefix-cls}-drop-indicator {
&::after {
right: -6px;
left: unset;
}
}
}
}
// ===================== TreeNode =====================
.@{tree-node-prefix-cls} {
&-rtl {
direction: rtl;
}
}
// >>> Switcher
&-switcher {
&_close {
.@{tree-prefix-cls}-switcher-icon {
svg {
.@{tree-prefix-cls}-rtl & {
transform: rotate(90deg);
}
}
}
}
}
// ==================== Show Line =====================
&-show-line {
// ================ Indent lines ================
.@{tree-prefix-cls}-indent {
&-unit {
&::before {
.@{tree-prefix-cls}-rtl& {
right: auto;
left: -(@tree-title-height / 2) - 1px;
border-right: none;
border-left: 1px solid @border-color-base;
}
}
}
}
}
// >>> Checkbox
&-checkbox {
.@{tree-prefix-cls}-rtl & {
margin: ((@tree-title-height - @checkbox-size) / 2) 0 0 8px;
}
}
}
.@{select-tree-prefix-cls} {
// >>> Checkbox
&-checkbox {
.@{tree-prefix-cls}-select-dropdown-rtl & {
margin: ((@tree-title-height - @checkbox-size) / 2) 0 0 8px;
}
}
}