@acorex/components 21.0.0-next.36 → 21.0.0-next.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-components-file-explorer.mjs +8 -8
- package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view-legacy.mjs +511 -0
- package/fesm2022/acorex-components-tree-view-legacy.mjs.map +1 -0
- package/fesm2022/acorex-components-tree-view.mjs +1123 -397
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/file-explorer/index.d.ts +6 -6
- package/package.json +6 -6
- package/tree-view/index.d.ts +499 -168
- package/tree-view-legacy/README.md +3 -0
- package/tree-view-legacy/index.d.ts +184 -0
- package/fesm2022/acorex-components-tree2.mjs +0 -730
- package/fesm2022/acorex-components-tree2.mjs.map +0 -1
- package/tree2/README.md +0 -3
- package/tree2/index.d.ts +0 -346
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
3
|
+
import * as i4 from '@acorex/cdk/common';
|
|
4
|
+
import { AXClickEvent, NXComponent, AXExpandToggleIcons, AXValueChangedEvent } from '@acorex/cdk/common';
|
|
5
|
+
import { AXPlatform } from '@acorex/core/platform';
|
|
6
|
+
import * as i3 from '@angular/common';
|
|
7
|
+
import * as i5 from '@acorex/components/decorators';
|
|
8
|
+
import * as i6 from '@acorex/components/check-box';
|
|
9
|
+
import * as i7 from '@acorex/components/form';
|
|
10
|
+
import * as i8 from '@angular/forms';
|
|
11
|
+
import * as i9 from '@acorex/components/tooltip';
|
|
12
|
+
import * as i10 from '@acorex/components/loading';
|
|
13
|
+
|
|
14
|
+
declare class AXTreeItemClickBaseEventLegacy extends AXClickEvent {
|
|
15
|
+
nativeElement: any;
|
|
16
|
+
}
|
|
17
|
+
type AXTreeViewSelectionBehaviorLegacy = 'autoExpand' | 'cascade' | 'indeterminate';
|
|
18
|
+
type AXTreeViewExpandBehaviorLegacy = 'click' | 'dbClick' | 'defult';
|
|
19
|
+
type AXTreeViewOperationMethodLegacy = 'expand' | 'active' | 'visible' | 'disabled';
|
|
20
|
+
type AXTreeViewLookLegacy = 'with-line' | 'defult';
|
|
21
|
+
type AXTreeViewSelectionScopeLegacy = 'all' | 'parent' | 'children';
|
|
22
|
+
declare abstract class AXTreeViewBaseLegacy {
|
|
23
|
+
abstract getChildren(item: unknown): unknown[];
|
|
24
|
+
abstract hasChildren(item: unknown): boolean;
|
|
25
|
+
abstract itemTemplate: any;
|
|
26
|
+
abstract disableField(): string;
|
|
27
|
+
abstract childrenField(): string;
|
|
28
|
+
abstract valueField(): string;
|
|
29
|
+
abstract activeField(): string;
|
|
30
|
+
abstract hasChildField(): string;
|
|
31
|
+
abstract tooltipField(): string;
|
|
32
|
+
abstract showEmptyNodeMassage(): boolean;
|
|
33
|
+
abstract expandOn(): AXTreeViewExpandBehaviorLegacy;
|
|
34
|
+
abstract focusNodeEnabled(): boolean;
|
|
35
|
+
abstract toggleIcons(): {
|
|
36
|
+
expanded: string;
|
|
37
|
+
collapsed: string;
|
|
38
|
+
} | null;
|
|
39
|
+
abstract itemsPromise: boolean;
|
|
40
|
+
abstract itemsSignal(): unknown[];
|
|
41
|
+
abstract fetchData(item: unknown): void;
|
|
42
|
+
abstract setNodeLoading(value: unknown, loading: boolean): void;
|
|
43
|
+
abstract handleUnActiveNode(items: unknown[]): void;
|
|
44
|
+
abstract onCollapsedChanged: EventEmitter<{
|
|
45
|
+
component: any;
|
|
46
|
+
data: unknown;
|
|
47
|
+
nativeElement: any;
|
|
48
|
+
}>;
|
|
49
|
+
abstract onNodeClick: EventEmitter<{
|
|
50
|
+
component: any;
|
|
51
|
+
data: unknown;
|
|
52
|
+
nativeElement: any;
|
|
53
|
+
}>;
|
|
54
|
+
abstract onNodedbClick: EventEmitter<{
|
|
55
|
+
component: any;
|
|
56
|
+
data: unknown;
|
|
57
|
+
nativeElement: any;
|
|
58
|
+
}>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare class AXTreeViewItemLegacyComponent extends NXComponent {
|
|
62
|
+
constructor();
|
|
63
|
+
treeView: AXTreeViewBaseLegacy;
|
|
64
|
+
item: _angular_core.InputSignal<unknown>;
|
|
65
|
+
isExpanded: _angular_core.ModelSignal<boolean>;
|
|
66
|
+
isActive: _angular_core.ModelSignal<boolean>;
|
|
67
|
+
isLoading: _angular_core.InputSignal<boolean>;
|
|
68
|
+
executorChanges: _angular_core.InputSignal<AXTreeViewOperationMethodLegacy>;
|
|
69
|
+
protected platformService: AXPlatform;
|
|
70
|
+
protected arrowIcon: _angular_core.Signal<string>;
|
|
71
|
+
protected handleArrowNodeClick(): void;
|
|
72
|
+
protected handleTextClick(): void;
|
|
73
|
+
protected handleTextDbClick(): void;
|
|
74
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTreeViewItemLegacyComponent, never>;
|
|
75
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTreeViewItemLegacyComponent, "ax-tree-view-item-legacy", never, { "item": { "alias": "item"; "required": false; "isSignal": true; }; "isExpanded": { "alias": "isExpanded"; "required": false; "isSignal": true; }; "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "executorChanges": { "alias": "executorChanges"; "required": false; "isSignal": true; }; }, { "isExpanded": "isExpandedChange"; "isActive": "isActiveChange"; }, never, ["ax-check-box", "ax-prefix", "ax-text", "ax-suffix", "*"], true, never>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare class AXTreeViewLegacyComponent extends NXComponent {
|
|
79
|
+
#private;
|
|
80
|
+
/** @ignore */
|
|
81
|
+
private get __hostClass();
|
|
82
|
+
itemsSignal: _angular_core.WritableSignal<unknown[]>;
|
|
83
|
+
itemsPromise: any;
|
|
84
|
+
items: _angular_core.InputSignal<unknown[] | ((selectedItemId?: string | number) => unknown[] | Promise<unknown[]>)>;
|
|
85
|
+
protected get resolvedItems(): unknown[];
|
|
86
|
+
showCheckbox: _angular_core.InputSignal<boolean>;
|
|
87
|
+
hasCheckboxField: _angular_core.InputSignal<string>;
|
|
88
|
+
selectionMode: _angular_core.InputSignal<"single" | "multiple">;
|
|
89
|
+
selectionBehavior: _angular_core.InputSignal<AXTreeViewSelectionBehaviorLegacy>;
|
|
90
|
+
selectionScope: _angular_core.InputSignal<AXTreeViewSelectionScopeLegacy>;
|
|
91
|
+
focusNodeEnabled: _angular_core.InputSignal<boolean>;
|
|
92
|
+
valueField: _angular_core.InputSignal<string>;
|
|
93
|
+
textField: _angular_core.InputSignal<string>;
|
|
94
|
+
visibleField: _angular_core.InputSignal<string>;
|
|
95
|
+
disableField: _angular_core.InputSignal<string>;
|
|
96
|
+
hasChildField: _angular_core.InputSignal<string>;
|
|
97
|
+
selectedField: _angular_core.InputSignal<string>;
|
|
98
|
+
expandedField: _angular_core.InputSignal<string>;
|
|
99
|
+
tooltipField: _angular_core.InputSignal<string>;
|
|
100
|
+
childrenField: _angular_core.InputSignal<string>;
|
|
101
|
+
activeField: _angular_core.InputSignal<string>;
|
|
102
|
+
indeterminateField: _angular_core.InputSignal<string>;
|
|
103
|
+
parentField: _angular_core.InputSignal<string>;
|
|
104
|
+
iconField: _angular_core.InputSignal<string>;
|
|
105
|
+
toggleIcons: _angular_core.InputSignal<AXExpandToggleIcons>;
|
|
106
|
+
look: _angular_core.InputSignal<AXTreeViewLookLegacy>;
|
|
107
|
+
showEmptyNodeMassage: _angular_core.InputSignal<boolean>;
|
|
108
|
+
onSelectionChanged: _angular_core.OutputEmitterRef<AXTreeItemClickBaseEventLegacy>;
|
|
109
|
+
onItemSelectedChanged: _angular_core.OutputEmitterRef<AXTreeItemClickBaseEventLegacy>;
|
|
110
|
+
onNodeClick: _angular_core.OutputEmitterRef<AXTreeItemClickBaseEventLegacy>;
|
|
111
|
+
onCollapsedChanged: _angular_core.OutputEmitterRef<AXTreeItemClickBaseEventLegacy>;
|
|
112
|
+
onNodedbClick: _angular_core.OutputEmitterRef<AXTreeItemClickBaseEventLegacy>;
|
|
113
|
+
executorChanges: _angular_core.WritableSignal<AXTreeViewOperationMethodLegacy>;
|
|
114
|
+
itemTemplate?: TemplateRef<unknown>;
|
|
115
|
+
emptyTemplate?: TemplateRef<unknown>;
|
|
116
|
+
protected platformService: AXPlatform;
|
|
117
|
+
expandOn: _angular_core.InputSignal<AXTreeViewExpandBehaviorLegacy>;
|
|
118
|
+
protected handleNodeSelectionClick(event: AXValueChangedEvent, item: unknown): void;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* auto expand
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
124
|
+
private toggleExpand;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* expand and change value parent change
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
private expandAndToggleSelection;
|
|
131
|
+
private applySelectionToChildren;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* indeterminate logic
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
private updateParentSelection;
|
|
138
|
+
private findParent;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* find node selected true for emit Selections
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
private findSelectedNodes;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* find for emit Selections single mode
|
|
148
|
+
*
|
|
149
|
+
*/
|
|
150
|
+
private handleUnSelectNode;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* lazy load logic
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
fetchData(selectedNode?: unknown): void;
|
|
157
|
+
private findNode;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* emit when arrow click
|
|
161
|
+
*
|
|
162
|
+
*/
|
|
163
|
+
protected handleNodeExpandClick(node: AXTreeItemClickBaseEventLegacy): void;
|
|
164
|
+
handleUnActiveNode(unActiveSource: unknown[]): void;
|
|
165
|
+
private loadingState;
|
|
166
|
+
protected isNodeLoading(nodeId: string | number): boolean;
|
|
167
|
+
setNodeLoading(nodeId: string | number, isLoading: boolean): void;
|
|
168
|
+
executeOnTreeNode(node: unknown, operation: AXTreeViewOperationMethodLegacy, value: boolean): void;
|
|
169
|
+
refresh(): void;
|
|
170
|
+
setNodeExpandAndChildren(valueFields: (number | string)[], value: boolean): Promise<void>;
|
|
171
|
+
private findNodesByValueField;
|
|
172
|
+
private expandNodeAndAllChildren;
|
|
173
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTreeViewLegacyComponent, never>;
|
|
174
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTreeViewLegacyComponent, "ax-tree-view-legacy", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; "isSignal": true; }; "hasCheckboxField": { "alias": "hasCheckboxField"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectionBehavior": { "alias": "selectionBehavior"; "required": false; "isSignal": true; }; "selectionScope": { "alias": "selectionScope"; "required": false; "isSignal": true; }; "focusNodeEnabled": { "alias": "focusNodeEnabled"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "visibleField": { "alias": "visibleField"; "required": false; "isSignal": true; }; "disableField": { "alias": "disableField"; "required": false; "isSignal": true; }; "hasChildField": { "alias": "hasChildField"; "required": false; "isSignal": true; }; "selectedField": { "alias": "selectedField"; "required": false; "isSignal": true; }; "expandedField": { "alias": "expandedField"; "required": false; "isSignal": true; }; "tooltipField": { "alias": "tooltipField"; "required": false; "isSignal": true; }; "childrenField": { "alias": "childrenField"; "required": false; "isSignal": true; }; "activeField": { "alias": "activeField"; "required": false; "isSignal": true; }; "indeterminateField": { "alias": "indeterminateField"; "required": false; "isSignal": true; }; "parentField": { "alias": "parentField"; "required": false; "isSignal": true; }; "iconField": { "alias": "iconField"; "required": false; "isSignal": true; }; "toggleIcons": { "alias": "toggleIcons"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "showEmptyNodeMassage": { "alias": "showEmptyNodeMassage"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "expandOn": { "alias": "expandOn"; "required": false; "isSignal": true; }; }, { "onSelectionChanged": "onSelectionChanged"; "onItemSelectedChanged": "onItemSelectedChanged"; "onNodeClick": "onNodeClick"; "onCollapsedChanged": "onCollapsedChanged"; "onNodedbClick": "onNodedbClick"; }, never, never, true, never>;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
declare class AXTreeViewLegacyModule {
|
|
178
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTreeViewLegacyModule, never>;
|
|
179
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXTreeViewLegacyModule, never, [typeof AXTreeViewLegacyComponent, typeof AXTreeViewItemLegacyComponent, typeof i3.CommonModule, typeof i4.AXCommonModule, typeof i5.AXDecoratorModule, typeof i6.AXCheckBoxModule, typeof i7.AXFormModule, typeof i8.FormsModule, typeof i9.AXTooltipModule, typeof i10.AXLoadingModule], [typeof AXTreeViewLegacyComponent, typeof AXTreeViewItemLegacyComponent]>;
|
|
180
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXTreeViewLegacyModule>;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export { AXTreeItemClickBaseEventLegacy, AXTreeViewBaseLegacy, AXTreeViewItemLegacyComponent, AXTreeViewLegacyComponent, AXTreeViewLegacyModule };
|
|
184
|
+
export type { AXTreeViewExpandBehaviorLegacy, AXTreeViewLookLegacy, AXTreeViewOperationMethodLegacy, AXTreeViewSelectionBehaviorLegacy, AXTreeViewSelectionScopeLegacy };
|