@rxap/tree 21.0.1-dev.1 → 22.0.0-dev.0

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/compodoc/changelog.html +37 -0
  3. package/compodoc/dependencies.html +13 -13
  4. package/compodoc/js/search/search_index.js +2 -2
  5. package/compodoc/properties.html +1 -1
  6. package/docs/documentation.json +232 -232
  7. package/docs/html/classes/DefaultTreeApplyFilterMethod.html +2 -2
  8. package/docs/html/classes/SearchForm.html +2 -2
  9. package/docs/html/classes/TreeComponent.html +2 -2
  10. package/docs/html/classes/TreeContentDirective.html +2 -2
  11. package/docs/html/classes/TreeDataSource.html +16 -16
  12. package/docs/html/functions/FormFactory.html +1 -1
  13. package/docs/html/functions/flatTree.html +1 -1
  14. package/docs/html/functions/isSelectionChange.html +1 -1
  15. package/docs/html/index.html +2 -2
  16. package/docs/html/interfaces/ISearchForm.html +2 -2
  17. package/docs/html/interfaces/TreeApplyFilterParameter.html +2 -2
  18. package/docs/html/interfaces/TreeDataSourceMetadata.html +3 -3
  19. package/docs/html/modules.html +1 -1
  20. package/docs/html/variables/RXAP_TREE_CONTENT_EDITABLE_METHOD.html +1 -1
  21. package/docs/html/variables/RXAP_TREE_DATA_SOURCE_APPLY_FILTER_METHOD.html +1 -1
  22. package/docs/html/variables/RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD.html +1 -1
  23. package/docs/html/variables/RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD.html +1 -1
  24. package/docs/html/variables/SearchFormProviders.html +1 -1
  25. package/docs/markdown/README.md +1 -1
  26. package/docs/markdown/classes/DefaultTreeApplyFilterMethod.md +5 -5
  27. package/docs/markdown/classes/SearchForm.md +5 -5
  28. package/docs/markdown/classes/TreeComponent.md +35 -35
  29. package/docs/markdown/classes/TreeContentDirective.md +3 -3
  30. package/docs/markdown/classes/TreeDataSource.md +87 -87
  31. package/docs/markdown/functions/FormFactory.md +2 -2
  32. package/docs/markdown/functions/flatTree.md +2 -2
  33. package/docs/markdown/functions/isSelectionChange.md +2 -2
  34. package/docs/markdown/globals.md +2 -2
  35. package/docs/markdown/interfaces/ISearchForm.md +4 -4
  36. package/docs/markdown/interfaces/TreeApplyFilterParameter.md +5 -5
  37. package/docs/markdown/interfaces/TreeDataSourceMetadata.md +8 -8
  38. package/docs/markdown/variables/RXAP_TREE_CONTENT_EDITABLE_METHOD.md +2 -2
  39. package/docs/markdown/variables/RXAP_TREE_DATA_SOURCE_APPLY_FILTER_METHOD.md +2 -2
  40. package/docs/markdown/variables/RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD.md +2 -2
  41. package/docs/markdown/variables/RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD.md +2 -2
  42. package/docs/markdown/variables/SearchFormProviders.md +2 -2
  43. package/docs/wiki/Class.DefaultTreeApplyFilterMethod.md +4 -4
  44. package/docs/wiki/Class.SearchForm.md +4 -4
  45. package/docs/wiki/Class.TreeComponent.md +34 -34
  46. package/docs/wiki/Class.TreeContentDirective.md +2 -2
  47. package/docs/wiki/Class.TreeDataSource.md +86 -86
  48. package/docs/wiki/Function.FormFactory.md +1 -1
  49. package/docs/wiki/Function.flatTree.md +1 -1
  50. package/docs/wiki/Function.isSelectionChange.md +1 -1
  51. package/docs/wiki/Interface.ISearchForm.md +3 -3
  52. package/docs/wiki/Interface.TreeApplyFilterParameter.md +4 -4
  53. package/docs/wiki/Interface.TreeDataSourceMetadata.md +7 -7
  54. package/docs/wiki/Variable.RXAP_TREE_CONTENT_EDITABLE_METHOD.md +1 -1
  55. package/docs/wiki/Variable.RXAP_TREE_DATA_SOURCE_APPLY_FILTER_METHOD.md +1 -1
  56. package/docs/wiki/Variable.RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD.md +1 -1
  57. package/docs/wiki/Variable.RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD.md +1 -1
  58. package/docs/wiki/Variable.SearchFormProviders.md +1 -1
  59. package/docs/wiki/globals.md +1 -1
  60. package/fesm2022/rxap-tree.mjs +1037 -762
  61. package/fesm2022/rxap-tree.mjs.map +1 -1
  62. package/package.json +37 -37
  63. package/types/rxap-tree.d.ts +235 -182
@@ -1,189 +1,242 @@
1
- import * as _angular_core from '@angular/core';
2
- import { Injector, Provider, InjectionToken, TemplateRef, OnInit, ElementRef } from '@angular/core';
3
- import { FormType, RxapFormGroup, RxapFormControl } from '@rxap/forms';
4
- import { TemplatePortal } from '@angular/cdk/portal';
5
- import { FlatTreeControl } from '@angular/cdk/tree';
6
- import { Node, NodeToDisplayFunction, NodeGetIconFunction, NodeGetTypeFunction, NodeGetStyleFunction, NodeHasDetailsFunction, EventOptions, ExpandNodeFunction } from '@rxap/data-structure-tree';
7
- import { Method } from '@rxap/pattern';
8
- import { WithIdentifier, WithChildren } from '@rxap/utilities';
9
- import { SelectionModel, SelectionChange } from '@angular/cdk/collections';
10
- import { BaseDataSource, BaseDataSourceMetadata, BaseDataSourceViewer } from '@rxap/data-source';
11
- import { ToggleSubject } from '@rxap/rxjs';
12
- import { BehaviorSubject, Observable } from 'rxjs';
13
-
14
- interface ISearchForm<Scope = unknown> {
15
- search: string;
16
- scope: Record<string, Scope[]>;
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { ElementRef, InjectionToken, Injector, OnInit, Provider, TemplateRef } from "@angular/core";
6
+ import { FormType, RxapFormControl, RxapFormGroup } from "@rxap/forms";
7
+ import { TemplatePortal } from "@angular/cdk/portal";
8
+ import { FlatTreeControl } from "@angular/cdk/tree";
9
+ import { EventOptions, ExpandNodeFunction, Node, NodeGetIconFunction, NodeGetStyleFunction, NodeGetTypeFunction, NodeHasDetailsFunction, NodeToDisplayFunction } from "@rxap/data-structure-tree";
10
+ import { Method } from "@rxap/pattern";
11
+ import { WithChildren, WithIdentifier } from "@rxap/utilities";
12
+ import { SelectionChange, SelectionModel } from "@angular/cdk/collections";
13
+ import { BaseDataSource, BaseDataSourceMetadata, BaseDataSourceViewer } from "@rxap/data-source";
14
+ import { ToggleSubject } from "@rxap/rxjs";
15
+ import { BehaviorSubject, Observable } from "rxjs";
16
+ export interface ISearchForm<Scope = unknown> {
17
+ search: string;
18
+ scope: Record<string, Scope[]>;
17
19
  }
18
- declare class SearchForm<Scope = unknown> implements FormType<ISearchForm<Scope>> {
19
- rxapFormGroup: RxapFormGroup<ISearchForm<Scope>>;
20
- search: RxapFormControl<string>;
21
- scope: RxapFormControl<ISearchForm<Scope>['scope']>;
22
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SearchForm<any>, never>;
23
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<SearchForm<any>>;
20
+ export declare class SearchForm<Scope = unknown> implements FormType<ISearchForm<Scope>> {
21
+ rxapFormGroup: RxapFormGroup<ISearchForm<Scope>>;
22
+ search: RxapFormControl<string>;
23
+ scope: RxapFormControl<ISearchForm<Scope>['scope']>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchForm<any>, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
24
26
  }
25
- declare function FormFactory(injector: Injector, state: ISearchForm | null, existingFormDefinition: SearchForm | null): SearchForm;
26
- declare const SearchFormProviders: Provider[];
27
-
28
- declare const RXAP_TREE_CONTENT_EDITABLE_METHOD: InjectionToken<unknown>;
29
-
30
- declare class TreeContentDirective {
31
- readonly template: TemplateRef<any>;
32
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeContentDirective, never>;
33
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeContentDirective, "ng-template[rxapTreeContent]", never, {}, {}, never, never, true, never>;
27
+ export declare function FormFactory(injector: Injector, state: ISearchForm | null, existingFormDefinition: SearchForm | null): SearchForm;
28
+ export declare const SearchFormProviders: Provider[];
29
+ export declare const RXAP_TREE_CONTENT_EDITABLE_METHOD: InjectionToken<unknown>;
30
+ export declare class TreeContentDirective {
31
+ readonly template: TemplateRef<any>;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<TreeContentDirective, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TreeContentDirective, "ng-template[rxapTreeContent]", never, {}, {}, never, never, true, never>;
34
34
  }
35
-
36
- declare function isSelectionChange<T>(obj: any): obj is SelectionChange<T>;
37
- interface TreeDataSourceMetadata extends BaseDataSourceMetadata {
38
- selectMultiple?: boolean;
39
- expandMultiple?: boolean;
40
- scopeTypes?: string[];
41
- /**
42
- * If true the tree will be refreshed with caching disbabled after the first load
43
- */
44
- autoRefreshWithoutCache?: boolean;
35
+ export declare function isSelectionChange<T>(obj: any): obj is SelectionChange<T>;
36
+ export interface TreeDataSourceMetadata extends BaseDataSourceMetadata {
37
+ selectMultiple?: boolean;
38
+ expandMultiple?: boolean;
39
+ scopeTypes?: string[];
40
+ /**
41
+ * If true the tree will be refreshed with caching disbabled after the first load
42
+ */
43
+ autoRefreshWithoutCache?: boolean;
45
44
  }
46
- declare const RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD: InjectionToken<unknown>;
47
- declare const RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD: InjectionToken<unknown>;
48
- declare const RXAP_TREE_DATA_SOURCE_APPLY_FILTER_METHOD: InjectionToken<unknown>;
49
- declare function flatTree<Data extends WithIdentifier & WithChildren = any>(tree: Node<Data> | Array<Node<Data>>, all?: boolean): Array<Node<Data>>;
50
- interface TreeApplyFilterParameter<Form extends ISearchForm = ISearchForm, Data extends WithIdentifier & WithChildren = any> {
51
- tree: Array<Node<Data>>;
52
- filter: Form;
53
- scopeTypes?: string[];
45
+ export declare const RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD: InjectionToken<unknown>;
46
+ export declare const RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD: InjectionToken<unknown>;
47
+ export declare const RXAP_TREE_DATA_SOURCE_APPLY_FILTER_METHOD: InjectionToken<unknown>;
48
+ export declare function flatTree<Data extends WithIdentifier & WithChildren = any>(tree: Node<Data> | Array<Node<Data>>, all?: boolean): Array<Node<Data>>;
49
+ export interface TreeApplyFilterParameter<Form extends ISearchForm = ISearchForm, Data extends WithIdentifier & WithChildren = any> {
50
+ tree: Array<Node<Data>>;
51
+ filter: Form;
52
+ scopeTypes?: string[];
54
53
  }
55
- declare class DefaultTreeApplyFilterMethod<Data extends WithIdentifier & WithChildren = any> implements Method<Array<Node<Data>>, TreeApplyFilterParameter> {
56
- protected lastFilter: ISearchForm | null;
57
- call({ tree, filter, scopeTypes }: TreeApplyFilterParameter): Array<Node<Data>> | Promise<Array<Node<Data>>>;
58
- protected isEqualToLastFilter(filter: ISearchForm): boolean;
59
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DefaultTreeApplyFilterMethod<any>, never>;
60
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<DefaultTreeApplyFilterMethod<any>>;
54
+ export declare class DefaultTreeApplyFilterMethod<Data extends WithIdentifier & WithChildren = any> implements Method<Array<Node<Data>>, TreeApplyFilterParameter> {
55
+ protected lastFilter: ISearchForm | null;
56
+ call({ tree, filter, scopeTypes }: TreeApplyFilterParameter): Array<Node<Data>> | Promise<Array<Node<Data>>>;
57
+ protected isEqualToLastFilter(filter: ISearchForm): boolean;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultTreeApplyFilterMethod<any>, never>;
59
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
61
60
  }
62
- declare class TreeDataSource<Data extends WithIdentifier & WithChildren = any, RootParameters = any, NodeParameters = any> extends BaseDataSource<Array<Node<Data>>, TreeDataSourceMetadata> implements OnInit {
63
- readonly rootRemoteMethod: Method<Data | Data[], RootParameters>;
64
- readonly childrenRemoteMethod: Method<Data[], Node<Data, any>> | null;
65
- tree$: BehaviorSubject<Node<Data, any>[]>;
66
- treeControl: FlatTreeControl<Node<Data>>;
67
- selected: SelectionModel<Node<Data>>;
68
- expanded: SelectionModel<string>;
69
- loading$: ToggleSubject;
70
- searchForm: SearchForm | null;
71
- protected _data$: BehaviorSubject<Node<Data, any>[]>;
72
- private _expandedLocalStorageSubscription;
73
- private _selectedLocalStorageSubscription;
74
- private _preSelected;
75
- private _refreshMatchFilter;
76
- private readonly applyFilterMethod;
77
- constructor();
78
- private _nodeParameters;
79
- get nodeParameters(): NodeParameters | null;
80
- set nodeParameters(nodeParameters: NodeParameters | null);
81
- ngOnInit(): void;
82
- toDisplay: NodeToDisplayFunction<Data>;
83
- getIcon: NodeGetIconFunction<Data>;
84
- getType: NodeGetTypeFunction<Data>;
85
- getStyle: NodeGetStyleFunction<Data>;
86
- hasDetails: NodeHasDetailsFunction<Data>;
87
- matchFilter: (node: Node<Data>) => boolean;
88
- getTreeRoot(options?: {
89
- cache?: boolean;
90
- }): Promise<Array<Node<Data>>>;
91
- selectNode(node: Node<Data>): Promise<void>;
92
- setTreeControl(treeControl: FlatTreeControl<Node<Data>>): void;
93
- setMatchFilter(matchFilter: (node: Node<Data>) => boolean): void;
94
- setToDisplay(toDisplay?: NodeToDisplayFunction<Data>): void;
95
- setGetIcon(getIcon?: NodeGetIconFunction<Data>): void;
96
- setHasDetails(hasDetails?: NodeHasDetailsFunction<Data>): void;
97
- deselectNode(node: Node<Data>): Promise<void>;
98
- expandNode(node: Node<Data>, options?: EventOptions): Promise<void>;
99
- getChildren(node: Node<Data>): Promise<Data[]>;
100
- getRoot(options?: {
101
- cache?: boolean;
102
- }): Promise<Data | Data[]>;
103
- getRootParameters(options?: {
104
- cache?: boolean;
105
- }): Promise<RootParameters>;
106
- getNodeById(id: string): Node<Data> | null;
107
- toNode(parent: Node<Data> | null, item: Data, depth?: number, onExpand?: ExpandNodeFunction<Data>, onCollapse?: ExpandNodeFunction<Data>, onSelect?: ExpandNodeFunction<Data>, onDeselect?: ExpandNodeFunction<Data>): Promise<Node<Data>>;
108
- collapseNode(node: Node<Data>, options?: EventOptions): Promise<void>;
109
- /**
110
- * Converts the tree structure into a list.
111
- *
112
- * @param tree
113
- * @param all true - include nodes children that are not expanded
114
- */
115
- flatTree(tree: Node<Data>, all?: boolean): Array<Node<Data>>;
116
- destroy(): void;
117
- refreshMatchFilter(): void;
118
- refresh(): Promise<any>;
119
- reset(): any;
120
- setGetStyle(getStyle?: NodeGetStyleFunction<any>): void;
121
- setGetType(getType?: NodeGetTypeFunction<any>): void;
122
- /**
123
- * recall the getStyle, getIcon and toDisplay methods
124
- * and update the node objects
125
- */
126
- updateNodes(): void;
127
- protected _connect(collectionViewer: Required<BaseDataSourceViewer>): Observable<Array<Node<Data>>>;
128
- private initSelected;
129
- private initExpanded;
130
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeDataSource<any, any, any>, never>;
131
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<TreeDataSource<any, any, any>>;
61
+ export declare class TreeDataSource<Data extends WithIdentifier & WithChildren = any, RootParameters = any, NodeParameters = any> extends BaseDataSource<Array<Node<Data>>, TreeDataSourceMetadata> implements OnInit {
62
+ readonly rootRemoteMethod: Method<Data | Data[], RootParameters>;
63
+ readonly childrenRemoteMethod: Method<Data[], Node<Data, any>> | null;
64
+ tree$: BehaviorSubject<Node<Data, any>[]>;
65
+ treeControl: FlatTreeControl<Node<Data>>;
66
+ selected: SelectionModel<Node<Data>>;
67
+ expanded: SelectionModel<string>;
68
+ loading$: ToggleSubject;
69
+ searchForm: SearchForm | null;
70
+ protected _data$: BehaviorSubject<Node<Data, any>[]>;
71
+ private _expandedLocalStorageSubscription;
72
+ private _selectedLocalStorageSubscription;
73
+ private _preSelected;
74
+ private _refreshMatchFilter;
75
+ private readonly applyFilterMethod;
76
+ constructor();
77
+ private _nodeParameters;
78
+ get nodeParameters(): NodeParameters | null;
79
+ set nodeParameters(nodeParameters: NodeParameters | null);
80
+ ngOnInit(): void;
81
+ toDisplay: NodeToDisplayFunction<Data>;
82
+ getIcon: NodeGetIconFunction<Data>;
83
+ getType: NodeGetTypeFunction<Data>;
84
+ getStyle: NodeGetStyleFunction<Data>;
85
+ hasDetails: NodeHasDetailsFunction<Data>;
86
+ matchFilter: (node: Node<Data>) => boolean;
87
+ getTreeRoot(options?: {
88
+ cache?: boolean;
89
+ }): Promise<Array<Node<Data>>>;
90
+ selectNode(node: Node<Data>): Promise<void>;
91
+ setTreeControl(treeControl: FlatTreeControl<Node<Data>>): void;
92
+ setMatchFilter(matchFilter: (node: Node<Data>) => boolean): void;
93
+ setToDisplay(toDisplay?: NodeToDisplayFunction<Data>): void;
94
+ setGetIcon(getIcon?: NodeGetIconFunction<Data>): void;
95
+ setHasDetails(hasDetails?: NodeHasDetailsFunction<Data>): void;
96
+ deselectNode(node: Node<Data>): Promise<void>;
97
+ expandNode(node: Node<Data>, options?: EventOptions): Promise<void>;
98
+ getChildren(node: Node<Data>): Promise<Data[]>;
99
+ getRoot(options?: {
100
+ cache?: boolean;
101
+ }): Promise<Data | Data[]>;
102
+ getRootParameters(options?: {
103
+ cache?: boolean;
104
+ }): Promise<RootParameters>;
105
+ getNodeById(id: string): Node<Data> | null;
106
+ toNode(parent: Node<Data> | null, item: Data, depth?: number, onExpand?: ExpandNodeFunction<Data>, onCollapse?: ExpandNodeFunction<Data>, onSelect?: ExpandNodeFunction<Data>, onDeselect?: ExpandNodeFunction<Data>): Promise<Node<Data>>;
107
+ collapseNode(node: Node<Data>, options?: EventOptions): Promise<void>;
108
+ /**
109
+ * Converts the tree structure into a list.
110
+ *
111
+ * @param tree
112
+ * @param all true - include nodes children that are not expanded
113
+ */
114
+ flatTree(tree: Node<Data>, all?: boolean): Array<Node<Data>>;
115
+ destroy(): void;
116
+ refreshMatchFilter(): void;
117
+ refresh(): Promise<any>;
118
+ reset(): any;
119
+ setGetStyle(getStyle?: NodeGetStyleFunction<any>): void;
120
+ setGetType(getType?: NodeGetTypeFunction<any>): void;
121
+ /**
122
+ * recall the getStyle, getIcon and toDisplay methods
123
+ * and update the node objects
124
+ */
125
+ updateNodes(): void;
126
+ protected _connect(collectionViewer: Required<BaseDataSourceViewer>): Observable<Array<Node<Data>>>;
127
+ private initSelected;
128
+ private initExpanded;
129
+ static ɵfac: i0.ɵɵFactoryDeclaration<TreeDataSource<any, any, any>, never>;
130
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
132
131
  }
133
-
134
- declare class TreeComponent<Data extends WithIdentifier & WithChildren = any> {
135
- private readonly viewContainerRef;
136
- private readonly elementRef;
137
- readonly searchForm: SearchForm<unknown> | null;
138
- treeControl: FlatTreeControl<Node<Data>>;
139
- readonly dataSource: _angular_core.InputSignal<TreeDataSource<Data, any, any>>;
140
- readonly contentEditableMethodInput: _angular_core.InputSignal<Method<any, string | null> | null>;
141
- private readonly injectedContentEditableMethod;
142
- readonly contentEditableMethod: _angular_core.Signal<Method<any, string | null> | null>;
143
- readonly toDisplay: _angular_core.InputSignal<NodeToDisplayFunction<any> | undefined>;
144
- readonly getIcon: _angular_core.InputSignal<NodeGetIconFunction<any> | undefined>;
145
- readonly getType: _angular_core.InputSignal<NodeGetTypeFunction<any> | undefined>;
146
- readonly getStyle: _angular_core.InputSignal<NodeGetStyleFunction<any> | undefined>;
147
- readonly multipleInput: _angular_core.InputSignal<boolean>;
148
- readonly multiple: _angular_core.Signal<boolean>;
149
- readonly hasDetails: _angular_core.InputSignal<NodeHasDetailsFunction<any> | undefined>;
150
- readonly content: _angular_core.Signal<TreeContentDirective | undefined>;
151
- readonly hideLeafIcon: _angular_core.InputSignal<boolean>;
152
- readonly id: _angular_core.InputSignal<string | undefined>;
153
- readonly details: _angular_core.OutputEmitterRef<void>;
154
- readonly dividerOffsetInput: _angular_core.InputSignal<string>;
155
- readonly dividerOffset: _angular_core.WritableSignal<string>;
156
- readonly portal: _angular_core.WritableSignal<TemplatePortal<any> | null>;
157
- readonly treeContainer: _angular_core.Signal<ElementRef<any>>;
158
- readonly showTreeNavigation: _angular_core.WritableSignal<boolean>;
159
- /**
160
- * Indicates that the divider is moved with mouse down
161
- * @private
162
- */
163
- private _moveDivider;
164
- /**
165
- * Holds the current tree container width.
166
- * If null the move divider feature was not yet used and the initial
167
- * container width is not calculated
168
- * @private
169
- */
170
- private _treeContainerWidth;
171
- constructor();
172
- get nodeDisplayEditable(): boolean;
173
- get cacheId(): string;
174
- getLevel: (node: Node<Data>) => number;
175
- isExpandable: (node: Node<Data>) => boolean;
176
- hasChild: (_: number, nodeData: Node<Data>) => boolean;
177
- openDetails(node: Node<Data>): void;
178
- onContentEditableChange(value: string | null, node: Node<Data>): any;
179
- onMousedown(): void;
180
- onMouseup(): void;
181
- onMousemove($event: MouseEvent): void;
182
- toggleTreeNavigation(): void;
183
- private setDividerOffset;
184
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeComponent<any>, never>;
185
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeComponent<any>, "rxap-tree", never, { "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "contentEditableMethodInput": { "alias": "contentEditableMethod"; "required": false; "isSignal": true; }; "toDisplay": { "alias": "toDisplay"; "required": false; "isSignal": true; }; "getIcon": { "alias": "getIcon"; "required": false; "isSignal": true; }; "getType": { "alias": "getType"; "required": false; "isSignal": true; }; "getStyle": { "alias": "getStyle"; "required": false; "isSignal": true; }; "multipleInput": { "alias": "multiple"; "required": false; "isSignal": true; }; "hasDetails": { "alias": "hasDetails"; "required": false; "isSignal": true; }; "hideLeafIcon": { "alias": "hideLeafIcon"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "dividerOffsetInput": { "alias": "dividerOffset"; "required": false; "isSignal": true; }; }, { "details": "details"; }, ["content"], ["[searchHeader]", "*"], true, never>;
186
- }
187
-
188
- export { DefaultTreeApplyFilterMethod, FormFactory, RXAP_TREE_CONTENT_EDITABLE_METHOD, RXAP_TREE_DATA_SOURCE_APPLY_FILTER_METHOD, RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD, RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD, SearchForm, SearchFormProviders, TreeComponent, TreeContentDirective, TreeDataSource, flatTree, isSelectionChange };
189
- export type { ISearchForm, TreeApplyFilterParameter, TreeDataSourceMetadata };
132
+ export declare class TreeComponent<Data extends WithIdentifier & WithChildren = any> {
133
+ private readonly viewContainerRef;
134
+ private readonly elementRef;
135
+ readonly searchForm: SearchForm<unknown> | null;
136
+ treeControl: FlatTreeControl<Node<Data>>;
137
+ readonly dataSource: import("@angular/core").InputSignal<TreeDataSource<Data, any, any>>;
138
+ readonly contentEditableMethodInput: import("@angular/core").InputSignal<Method<any, string | null> | null>;
139
+ private readonly injectedContentEditableMethod;
140
+ readonly contentEditableMethod: import("@angular/core").Signal<Method<any, string | null> | null>;
141
+ readonly toDisplay: import("@angular/core").InputSignal<NodeToDisplayFunction<any> | undefined>;
142
+ readonly getIcon: import("@angular/core").InputSignal<NodeGetIconFunction<any> | undefined>;
143
+ readonly getType: import("@angular/core").InputSignal<NodeGetTypeFunction<any> | undefined>;
144
+ readonly getStyle: import("@angular/core").InputSignal<NodeGetStyleFunction<any> | undefined>;
145
+ readonly multipleInput: import("@angular/core").InputSignal<boolean>;
146
+ readonly multiple: import("@angular/core").Signal<boolean>;
147
+ readonly hasDetails: import("@angular/core").InputSignal<NodeHasDetailsFunction<any> | undefined>;
148
+ readonly content: import("@angular/core").Signal<TreeContentDirective | undefined>;
149
+ readonly hideLeafIcon: import("@angular/core").InputSignal<boolean>;
150
+ readonly id: import("@angular/core").InputSignal<string | undefined>;
151
+ readonly details: import("@angular/core").OutputEmitterRef<void>;
152
+ readonly dividerOffsetInput: import("@angular/core").InputSignal<string>;
153
+ readonly dividerOffset: import("@angular/core").WritableSignal<string>;
154
+ readonly portal: import("@angular/core").WritableSignal<TemplatePortal<any> | null>;
155
+ readonly treeContainer: import("@angular/core").Signal<ElementRef<any>>;
156
+ readonly showTreeNavigation: import("@angular/core").WritableSignal<boolean>;
157
+ /**
158
+ * Indicates that the divider is moved with mouse down
159
+ * @private
160
+ */
161
+ private _moveDivider;
162
+ /**
163
+ * Holds the current tree container width.
164
+ * If null the move divider feature was not yet used and the initial
165
+ * container width is not calculated
166
+ * @private
167
+ */
168
+ private _treeContainerWidth;
169
+ constructor();
170
+ get nodeDisplayEditable(): boolean;
171
+ get cacheId(): string;
172
+ getLevel: (node: Node<Data>) => number;
173
+ isExpandable: (node: Node<Data>) => boolean;
174
+ hasChild: (_: number, nodeData: Node<Data>) => boolean;
175
+ openDetails(node: Node<Data>): void;
176
+ onContentEditableChange(value: string | null, node: Node<Data>): any;
177
+ onMousedown(): void;
178
+ onMouseup(): void;
179
+ onMousemove($event: MouseEvent): void;
180
+ toggleTreeNavigation(): void;
181
+ private setDividerOffset;
182
+ static ɵfac: i0.ɵɵFactoryDeclaration<TreeComponent<any>, never>;
183
+ static ɵcmp: i0.ɵɵComponentDeclaration<TreeComponent<any>, "rxap-tree", never, {
184
+ "dataSource": {
185
+ "alias": "dataSource";
186
+ "required": true;
187
+ "isSignal": true;
188
+ };
189
+ "contentEditableMethodInput": {
190
+ "alias": "contentEditableMethod";
191
+ "required": false;
192
+ "isSignal": true;
193
+ };
194
+ "toDisplay": {
195
+ "alias": "toDisplay";
196
+ "required": false;
197
+ "isSignal": true;
198
+ };
199
+ "getIcon": {
200
+ "alias": "getIcon";
201
+ "required": false;
202
+ "isSignal": true;
203
+ };
204
+ "getType": {
205
+ "alias": "getType";
206
+ "required": false;
207
+ "isSignal": true;
208
+ };
209
+ "getStyle": {
210
+ "alias": "getStyle";
211
+ "required": false;
212
+ "isSignal": true;
213
+ };
214
+ "multipleInput": {
215
+ "alias": "multiple";
216
+ "required": false;
217
+ "isSignal": true;
218
+ };
219
+ "hasDetails": {
220
+ "alias": "hasDetails";
221
+ "required": false;
222
+ "isSignal": true;
223
+ };
224
+ "hideLeafIcon": {
225
+ "alias": "hideLeafIcon";
226
+ "required": false;
227
+ "isSignal": true;
228
+ };
229
+ "id": {
230
+ "alias": "id";
231
+ "required": false;
232
+ "isSignal": true;
233
+ };
234
+ "dividerOffsetInput": {
235
+ "alias": "dividerOffset";
236
+ "required": false;
237
+ "isSignal": true;
238
+ };
239
+ }, {
240
+ "details": "details";
241
+ }, ["content"], ["[searchHeader]", "*"], true, never>;
242
+ }