@dangl/angular-ava 1.1.2-beta0146 → 1.1.2-beta0159
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/dangl-angular-ava.mjs +395 -368
- package/fesm2022/dangl-angular-ava.mjs.map +1 -1
- package/lib/ava-tree/components/ava-tree/ava-tree.component.d.ts +18 -22
- package/lib/ava-tree/components/list-structure/list-structure.component.d.ts +9 -6
- package/lib/ava-tree/components/table-structure/table-structure.component.d.ts +11 -6
- package/lib/ava-tree/components/tree-item/tree-item.component.d.ts +9 -5
- package/lib/ava-tree/components/tree-node/tree-node.component.d.ts +8 -6
- package/lib/ava-tree/components/tree-structure/tree-structure.component.d.ts +1 -5
- package/lib/ava-tree/directives/save-changing-view.directive.d.ts +9 -3
- package/lib/ava-tree/model/config-tree.model.d.ts +4 -3
- package/lib/ava-tree/model/index.d.ts +2 -2
- package/lib/ava-tree/pipes/element-text.pipe.d.ts +3 -9
- package/lib/ava-tree/services/configuration-tree.service.d.ts +36 -0
- package/lib/ava-tree/services/flat-elements.service.d.ts +5 -6
- package/package.json +1 -1
- package/lib/ava-tree/services/tree-words.service.d.ts +0 -9
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import { ITextWords } from '../../constants/defaultTextWords';
|
|
3
|
-
import { ContextMenuDataType,
|
|
4
|
+
import { ContextMenuDataType, IElementDto, ModeViewType, ProjectDto, SelectedElement, ServiceSpecificationDto } from '../../model';
|
|
4
5
|
import { ExpandParentGroupService } from '../../services/expand-parent-group.service';
|
|
5
6
|
import { FlatElementsService } from '../../services/flat-elements.service';
|
|
6
|
-
import {
|
|
7
|
+
import { KeyboardOperationService } from '../../services/keyboard-operation.service';
|
|
7
8
|
import { SelectElementService } from '../../services/select-element.service';
|
|
8
9
|
import { TreeNodeSelectionService } from '../../services/tree-node-selection.service';
|
|
9
|
-
import {
|
|
10
|
+
import { IConfigurationTree } from 'projects/angular-ava/src/lib/ava-tree/model/config-tree.model';
|
|
11
|
+
import { ConfigurationTreeService } from 'projects/angular-ava/src/lib/ava-tree/services/configuration-tree.service';
|
|
10
12
|
import * as i0 from "@angular/core";
|
|
11
13
|
export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
|
|
12
14
|
private flatElementsService;
|
|
@@ -15,7 +17,7 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
15
17
|
private expandParentGroupService;
|
|
16
18
|
private keyboardOperationService;
|
|
17
19
|
private ngZone;
|
|
18
|
-
private
|
|
20
|
+
private configurationTreeService;
|
|
19
21
|
/**
|
|
20
22
|
* This is the main data element for the tree structure. You should supply a ProjectDto with
|
|
21
23
|
* exactly one service specification in it.
|
|
@@ -32,18 +34,17 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
32
34
|
/**
|
|
33
35
|
* Optionally, you can supply the id of the node that should be selected in the tree initially.
|
|
34
36
|
*/
|
|
35
|
-
selectedNodeId: string | null;
|
|
37
|
+
set selectedNodeId(id: string | null);
|
|
38
|
+
private _selectedNodeId;
|
|
36
39
|
/**
|
|
37
40
|
* Optional, defaults to 20px. If this is set, then the tree will be indented by the given value each level.
|
|
38
41
|
* This can be any valid CSS value for the padding-left property, such as 20px, 1em, or 5%.
|
|
39
42
|
*
|
|
40
43
|
*/
|
|
41
|
-
indent: string;
|
|
42
44
|
/**
|
|
43
45
|
* Optional, you can supply a color to be used as the background color for the selected line. Defaults to the primary
|
|
44
46
|
* color from the Material theme, which is #00acc1.
|
|
45
47
|
*/
|
|
46
|
-
selectedColor: string | null;
|
|
47
48
|
/**
|
|
48
49
|
* You can specify which view type to use for the tree. The default is ModeViewType.Tree, but you can also use
|
|
49
50
|
* ModeViewType.List or ModeViewType.Table.
|
|
@@ -53,17 +54,15 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
53
54
|
* and clicking on an elemt sends an immediate result since the component has not to wait and check if a double click event
|
|
54
55
|
* is fired.
|
|
55
56
|
*/
|
|
56
|
-
allowDblClick: boolean;
|
|
57
57
|
/**
|
|
58
58
|
* If this is set to true, then the tree will be in selection mode, and the user can select elements
|
|
59
59
|
* by clicking on them. The selected elements will be emitted in the selectedElementsChanged event.
|
|
60
60
|
*/
|
|
61
|
-
isSelectionMode: boolean;
|
|
62
61
|
/**
|
|
63
62
|
* You can optionally supply a list of elements that should be selected initially. This is only used if
|
|
64
63
|
* isSelectionMode is true.
|
|
65
64
|
*/
|
|
66
|
-
initiallySelectedElements
|
|
65
|
+
private initiallySelectedElements;
|
|
67
66
|
/**
|
|
68
67
|
* You can supply a map of strings to be used for the text in the tree. This allows you to translate
|
|
69
68
|
* the text in the tree to other languages.
|
|
@@ -78,20 +77,19 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
78
77
|
* tooltipAllRemove: string,
|
|
79
78
|
* }
|
|
80
79
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
private
|
|
84
|
-
setTreeWords(): void;
|
|
80
|
+
readonly textWords$: Observable<ITextWords | null>;
|
|
81
|
+
readonly isSelectionMode$: Observable<boolean>;
|
|
82
|
+
private isSelectionMode;
|
|
85
83
|
/**
|
|
86
84
|
* Defaults to true. If this is enabled, then navigating in the tree with the keyboard only works
|
|
87
85
|
* if the mouse is over the tree area. This limitation is useful if you have multiple trees or other components
|
|
88
86
|
* that might be using keyboard input.
|
|
89
87
|
*/
|
|
90
|
-
mouseAwareKeyboardControl
|
|
88
|
+
private mouseAwareKeyboardControl;
|
|
91
89
|
/**
|
|
92
|
-
* With this parameter, you can configure which keys will be listenend to
|
|
90
|
+
* With this parameter, you can configure which keys will be listenend to switch the tree elements,
|
|
93
91
|
* and also to disable the functionality of the keys */
|
|
94
|
-
set customKeyboardOperationConfig(
|
|
92
|
+
private set customKeyboardOperationConfig(value);
|
|
95
93
|
/**
|
|
96
94
|
* You can supply custom filters that are processed when the filter input is changed. Default filters are used
|
|
97
95
|
* that check for short text and item number matches, and you can either add custom filters or replace the default ones.
|
|
@@ -106,7 +104,6 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
106
104
|
* numberFormat?: string // optional format of number value, example: '1.2-2'
|
|
107
105
|
* }
|
|
108
106
|
*/
|
|
109
|
-
addTableColumns: TableColumnType[];
|
|
110
107
|
/**
|
|
111
108
|
* This allows you to supply a list of functions that can be used to change the appearance of elements.
|
|
112
109
|
* They objects contain a predicate function that is evaluated, along with an option to configure the
|
|
@@ -123,8 +120,7 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
123
120
|
* }
|
|
124
121
|
* }
|
|
125
122
|
*/
|
|
126
|
-
|
|
127
|
-
set config(configObject: IConfigurationTreeType);
|
|
123
|
+
set config(configObject: IConfigurationTree);
|
|
128
124
|
/**
|
|
129
125
|
* This is emitted when an element is selected by clicking on it. The selected element is emitted as the event value.
|
|
130
126
|
*/
|
|
@@ -161,7 +157,7 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
161
157
|
filteredElementList: IElementDto[];
|
|
162
158
|
private $destroy;
|
|
163
159
|
private cdr;
|
|
164
|
-
constructor(flatElementsService: FlatElementsService, selectElementService: SelectElementService, treeNodeSelectionService: TreeNodeSelectionService, expandParentGroupService: ExpandParentGroupService, keyboardOperationService: KeyboardOperationService, ngZone: NgZone,
|
|
160
|
+
constructor(flatElementsService: FlatElementsService, selectElementService: SelectElementService, treeNodeSelectionService: TreeNodeSelectionService, expandParentGroupService: ExpandParentGroupService, keyboardOperationService: KeyboardOperationService, ngZone: NgZone, configurationTreeService: ConfigurationTreeService);
|
|
165
161
|
ngOnInit(): void;
|
|
166
162
|
ngAfterViewInit(): void;
|
|
167
163
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -180,5 +176,5 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
180
176
|
private getFilteredList;
|
|
181
177
|
private initializeEventListeners;
|
|
182
178
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvaTreeComponent, [{ self: true; }, { self: true; }, { self: true; }, { self: true; }, { self: true; }, null, null]>;
|
|
183
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvaTreeComponent, "ava-tree", never, { "project": { "alias": "project"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "selectClick": "selectClick"; "selectDblClick": "selectDblClick"; "contextMenuEvent": "contextMenuEvent"; "selectedElementsChanged": "selectedElementsChanged"; }, never, never, true, never>;
|
|
179
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvaTreeComponent, "ava-tree", never, { "project": { "alias": "project"; "required": false; }; "expansionState": { "alias": "expansionState"; "required": false; }; "selectedNodeId": { "alias": "selectedNodeId"; "required": false; }; "modeView": { "alias": "modeView"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "selectClick": "selectClick"; "selectDblClick": "selectDblClick"; "contextMenuEvent": "contextMenuEvent"; "selectedElementsChanged": "selectedElementsChanged"; }, never, never, true, never>;
|
|
184
180
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import { IElementDto } from '../../model';
|
|
3
4
|
import { SelectElementService } from '../../services/select-element.service';
|
|
5
|
+
import { ConfigurationTreeService } from 'projects/angular-ava/src/lib/ava-tree/services/configuration-tree.service';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class ListStructureComponent implements OnDestroy, OnInit {
|
|
6
8
|
selectElementService: SelectElementService;
|
|
9
|
+
private configurationTreeService;
|
|
7
10
|
filteredElementList: IElementDto[];
|
|
8
|
-
|
|
9
|
-
selectedColor: string | null;
|
|
10
|
-
allowDblClick: boolean;
|
|
11
|
+
templates: QueryList<ElementRef<HTMLElement>>;
|
|
11
12
|
selectedElement: IElementDto | null;
|
|
12
13
|
private $destroy;
|
|
13
|
-
|
|
14
|
+
readonly selectedColor$: Observable<string>;
|
|
15
|
+
isSelectionMode: boolean;
|
|
16
|
+
constructor(selectElementService: SelectElementService, configurationTreeService: ConfigurationTreeService);
|
|
14
17
|
ngOnInit(): void;
|
|
15
18
|
ngOnDestroy(): void;
|
|
16
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListStructureComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListStructureComponent, "ava-list-structure", never, { "filteredElementList": { "alias": "filteredElementList"; "required": false; };
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListStructureComponent, "ava-list-structure", never, { "filteredElementList": { "alias": "filteredElementList"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
21
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import { IElementDto, TableColumnType } from '../../model';
|
|
3
4
|
import { SelectingElementsObjectType } from '../../model/selecting.model';
|
|
4
5
|
import { SelectElementService } from '../../services/select-element.service';
|
|
5
6
|
import { TreeNodeSelectionService } from '../../services/tree-node-selection.service';
|
|
7
|
+
import { ITextWords } from 'projects/angular-ava/src/lib/ava-tree/constants/defaultTextWords';
|
|
8
|
+
import { ConfigurationTreeService } from 'projects/angular-ava/src/lib/ava-tree/services/configuration-tree.service';
|
|
6
9
|
import * as i0 from "@angular/core";
|
|
7
10
|
export declare class TableStructureComponent implements OnInit, OnDestroy {
|
|
8
11
|
selectElementService: SelectElementService;
|
|
9
12
|
private treeNodeSelectionService;
|
|
10
13
|
private cdr;
|
|
14
|
+
private configurationTreeService;
|
|
11
15
|
filteredElementList: IElementDto[];
|
|
12
|
-
isSelectionMode: boolean;
|
|
13
|
-
addTableColumns: TableColumnType[];
|
|
14
|
-
selectedColor: string | null;
|
|
15
|
-
allowDblClick: boolean;
|
|
16
16
|
displayedColumns: string[];
|
|
17
17
|
private isAllowOneClick;
|
|
18
18
|
selectedElement: IElementDto | null;
|
|
@@ -20,13 +20,18 @@ export declare class TableStructureComponent implements OnInit, OnDestroy {
|
|
|
20
20
|
private timerStop;
|
|
21
21
|
checkedElements: SelectingElementsObjectType;
|
|
22
22
|
private $destroy;
|
|
23
|
-
|
|
23
|
+
readonly textWords$: Observable<ITextWords | null>;
|
|
24
|
+
readonly selectedColor$: Observable<string>;
|
|
25
|
+
readonly addTableColumns$: Observable<TableColumnType[]>;
|
|
26
|
+
isSelectionMode: boolean;
|
|
27
|
+
constructor(selectElementService: SelectElementService, treeNodeSelectionService: TreeNodeSelectionService, cdr: ChangeDetectorRef, configurationTreeService: ConfigurationTreeService);
|
|
24
28
|
ngOnInit(): void;
|
|
25
29
|
ngOnDestroy(): void;
|
|
26
30
|
select(row: IElementDto): void;
|
|
27
31
|
dblSelect(row: IElementDto): void;
|
|
28
32
|
openContextMenu(event: MouseEvent, row: IElementDto): void;
|
|
29
33
|
changeSelecting(element: IElementDto, event: boolean): void;
|
|
34
|
+
configureTableColumns(): void;
|
|
30
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableStructureComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableStructureComponent, "ava-table-structure", never, { "filteredElementList": { "alias": "filteredElementList"; "required": false; };
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableStructureComponent, "ava-table-structure", never, { "filteredElementList": { "alias": "filteredElementList"; "required": false; }; }, {}, never, never, true, never>;
|
|
32
37
|
}
|
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import { IElementDto } from '../../model';
|
|
3
4
|
import { SelectingElementsType } from '../../model/selecting.model';
|
|
4
5
|
import { SelectElementService } from '../../services/select-element.service';
|
|
5
6
|
import { TreeNodeSelectionService } from '../../services/tree-node-selection.service';
|
|
7
|
+
import { ITextWords } from 'projects/angular-ava/src/lib/ava-tree/constants/defaultTextWords';
|
|
8
|
+
import { ConfigurationTreeService } from 'projects/angular-ava/src/lib/ava-tree/services/configuration-tree.service';
|
|
6
9
|
import * as i0 from "@angular/core";
|
|
7
10
|
export declare class TreeItemComponent implements OnInit, OnDestroy {
|
|
8
11
|
selectElementService: SelectElementService;
|
|
9
12
|
private treeNodeSelectionService;
|
|
10
13
|
private cdr;
|
|
14
|
+
private configurationTreeService;
|
|
11
15
|
element: IElementDto;
|
|
12
16
|
expansionState: {
|
|
13
17
|
[id: string]: boolean;
|
|
14
18
|
};
|
|
15
|
-
isSelectionMode: boolean;
|
|
16
|
-
allowDblClick: boolean;
|
|
17
19
|
isSelect: boolean;
|
|
18
|
-
backgroundColor: string;
|
|
20
|
+
backgroundColor: string | null;
|
|
19
21
|
textElement: ElementRef<HTMLElement>;
|
|
20
22
|
selectedElement: IElementDto | null;
|
|
21
23
|
preselectedElement: IElementDto | null;
|
|
22
24
|
private isAllowOneClick;
|
|
23
25
|
private timerStop;
|
|
24
26
|
private $destroy;
|
|
27
|
+
readonly textWords$: Observable<ITextWords | null>;
|
|
28
|
+
isSelectionMode: boolean;
|
|
25
29
|
checkedElements: {
|
|
26
30
|
[elementId: string]: SelectingElementsType;
|
|
27
31
|
};
|
|
28
|
-
constructor(selectElementService: SelectElementService, treeNodeSelectionService: TreeNodeSelectionService, cdr: ChangeDetectorRef);
|
|
32
|
+
constructor(selectElementService: SelectElementService, treeNodeSelectionService: TreeNodeSelectionService, cdr: ChangeDetectorRef, configurationTreeService: ConfigurationTreeService);
|
|
29
33
|
ngOnInit(): void;
|
|
30
34
|
ngOnDestroy(): void;
|
|
31
35
|
private expand;
|
|
@@ -34,5 +38,5 @@ export declare class TreeItemComponent implements OnInit, OnDestroy {
|
|
|
34
38
|
openContextMenu(event: MouseEvent): void;
|
|
35
39
|
changeSelecting(element: IElementDto, isSelected: boolean): void;
|
|
36
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeItemComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TreeItemComponent, "ava-tree-item", never, { "element": { "alias": "element"; "required": false; }; "expansionState": { "alias": "expansionState"; "required": false; }; "
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeItemComponent, "ava-tree-item", never, { "element": { "alias": "element"; "required": false; }; "expansionState": { "alias": "expansionState"; "required": false; }; "isSelect": { "alias": "isSelect"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
38
42
|
}
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import { IElementDto } from '../../model';
|
|
3
4
|
import { SelectElementService } from '../../services/select-element.service';
|
|
5
|
+
import { ConfigurationTreeService } from 'projects/angular-ava/src/lib/ava-tree/services/configuration-tree.service';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class TreeNodeComponent implements OnDestroy, OnInit {
|
|
6
8
|
selectElementService: SelectElementService;
|
|
9
|
+
private configurationTreeService;
|
|
7
10
|
elementList?: IElementDto[] | null;
|
|
8
|
-
indent: string;
|
|
9
11
|
expansionState: {
|
|
10
12
|
[id: string]: boolean;
|
|
11
13
|
};
|
|
12
|
-
isSelectionMode: boolean;
|
|
13
|
-
selectedColor: string | null;
|
|
14
|
-
allowDblClick: boolean;
|
|
15
14
|
selectedElement: IElementDto | null;
|
|
16
15
|
private $destroy;
|
|
17
|
-
|
|
16
|
+
readonly indent$: Observable<string>;
|
|
17
|
+
readonly selectedColor$: Observable<string>;
|
|
18
|
+
isSelectionMode: boolean;
|
|
19
|
+
constructor(selectElementService: SelectElementService, configurationTreeService: ConfigurationTreeService);
|
|
18
20
|
ngOnInit(): void;
|
|
19
21
|
ngOnDestroy(): void;
|
|
20
22
|
expand(element: IElementDto): void;
|
|
21
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeNodeComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TreeNodeComponent, "ava-tree-node", never, { "elementList": { "alias": "elementList"; "required": false; }; "
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeNodeComponent, "ava-tree-node", never, { "elementList": { "alias": "elementList"; "required": false; }; "expansionState": { "alias": "expansionState"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
25
|
}
|
|
@@ -2,13 +2,9 @@ import { ServiceSpecificationDto } from '../../model';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class TreeStructureComponent {
|
|
4
4
|
serviceSpecification: ServiceSpecificationDto | null;
|
|
5
|
-
indent: string;
|
|
6
5
|
expansionState: {
|
|
7
6
|
[id: string]: boolean;
|
|
8
7
|
};
|
|
9
|
-
isSelectionMode: boolean;
|
|
10
|
-
selectedColor: string | null;
|
|
11
|
-
allowDblClick: boolean;
|
|
12
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeStructureComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TreeStructureComponent, "ava-tree-structure", never, { "serviceSpecification": { "alias": "serviceSpecification"; "required": false; }; "
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeStructureComponent, "ava-tree-structure", never, { "serviceSpecification": { "alias": "serviceSpecification"; "required": false; }; "expansionState": { "alias": "expansionState"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
10
|
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
2
|
import { FlatElementsService } from '../services/flat-elements.service';
|
|
3
|
+
import { ConfigurationTreeService } from 'projects/angular-ava/src/lib/ava-tree/services/configuration-tree.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SaveChangingViewDirective implements AfterViewInit {
|
|
5
|
+
export declare class SaveChangingViewDirective implements AfterViewInit, OnDestroy {
|
|
5
6
|
private el;
|
|
6
7
|
private renderer;
|
|
7
8
|
private flatElementsService;
|
|
9
|
+
private configurationTreeService;
|
|
8
10
|
saveChangingView: string;
|
|
9
|
-
|
|
11
|
+
private $destroy;
|
|
12
|
+
constructor(el: ElementRef<HTMLElement>, renderer: Renderer2, flatElementsService: FlatElementsService, configurationTreeService: ConfigurationTreeService);
|
|
13
|
+
ngOnDestroy(): void;
|
|
10
14
|
ngAfterViewInit(): void;
|
|
15
|
+
private updateElementStles;
|
|
16
|
+
private getChangedView;
|
|
11
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SaveChangingViewDirective, never>;
|
|
12
18
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SaveChangingViewDirective, "[saveChangingView]", never, { "saveChangingView": { "alias": "saveChangingView"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
19
|
}
|
|
@@ -5,7 +5,7 @@ import { TableColumnType } from './tableColumnType';
|
|
|
5
5
|
import { ModeViewType } from './tree-mode.model';
|
|
6
6
|
import { ITextWords } from '../constants/defaultTextWords';
|
|
7
7
|
import { IKeyboardOperationConfig } from '../services/keyboard-operation.service';
|
|
8
|
-
export interface
|
|
8
|
+
export interface IConfigurationTree {
|
|
9
9
|
expansionState?: {
|
|
10
10
|
[id: string]: boolean;
|
|
11
11
|
};
|
|
@@ -18,8 +18,9 @@ export interface IConfigurationTreeType {
|
|
|
18
18
|
initiallySelectedElements?: SelectedElement[];
|
|
19
19
|
textWords?: ITextWords;
|
|
20
20
|
mouseAwareKeyboardControl?: boolean;
|
|
21
|
-
customKeyboardOperationConfig?: IKeyboardOperationConfig;
|
|
22
|
-
listFilterFunc?:
|
|
21
|
+
customKeyboardOperationConfig?: IKeyboardOperationConfig | null;
|
|
22
|
+
listFilterFunc?: FilterFunction[];
|
|
23
23
|
addTableColumns?: TableColumnType[];
|
|
24
24
|
functionView?: IFunctionViewLine[];
|
|
25
25
|
}
|
|
26
|
+
export type FilterFunction = (element: IElementDto, filter: string) => boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ExchangePhaseDto, ExecutionDescriptionDto, IElementDto, ItemNumberDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, NoteTextDto, OriginDto, PositionDto, PriceRoundingModeDto, PriceTypeDto, ProjectDto, ServiceSpecificationDto, ServiceSpecificationGroupDto } from './ava-models';
|
|
2
|
-
import {
|
|
2
|
+
import { IConfigurationTree } from './config-tree.model';
|
|
3
3
|
import { ContextMenuDataType } from './context-menu-data.model';
|
|
4
4
|
import { IFunctionViewLine, IViewLine } from './function-view-line.model';
|
|
5
5
|
import { SelectedElement } from './selecting.model';
|
|
6
6
|
import { TableColumnType } from './tableColumnType';
|
|
7
7
|
import { ModeViewType } from './tree-mode.model';
|
|
8
|
-
export { ProjectDto, ServiceSpecificationDto, IElementDto, PositionDto, ExecutionDescriptionDto, NoteTextDto, ServiceSpecificationGroupDto, ItemNumberDto, SelectedElement, ModeViewType, TableColumnType, IFunctionViewLine, IViewLine, ContextMenuDataType, ExchangePhaseDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, OriginDto, PriceRoundingModeDto, PriceTypeDto,
|
|
8
|
+
export { ProjectDto, ServiceSpecificationDto, IElementDto, PositionDto, ExecutionDescriptionDto, NoteTextDto, ServiceSpecificationGroupDto, ItemNumberDto, SelectedElement, ModeViewType, TableColumnType, IFunctionViewLine, IViewLine, ContextMenuDataType, ExchangePhaseDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, OriginDto, PriceRoundingModeDto, PriceTypeDto, IConfigurationTree };
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { ITextWords } from '../constants/defaultTextWords';
|
|
3
3
|
import { IElementDto } from '../model';
|
|
4
|
-
import { TreeWordsService } from '../services/tree-words.service';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ElementTextPipe implements PipeTransform
|
|
7
|
-
|
|
8
|
-
treeWords: ITextWords;
|
|
9
|
-
private $destroy;
|
|
10
|
-
constructor(treeWordsService: TreeWordsService);
|
|
11
|
-
ngOnDestroy(): void;
|
|
12
|
-
transform(element: IElementDto): string;
|
|
5
|
+
export declare class ElementTextPipe implements PipeTransform {
|
|
6
|
+
transform(element: IElementDto, treeWords: ITextWords): string;
|
|
13
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementTextPipe, never>;
|
|
14
8
|
static ɵpipe: i0.ɵɵPipeDeclaration<ElementTextPipe, "elementText", true>;
|
|
15
9
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ITextWords } from 'projects/angular-ava/src/lib/ava-tree/constants/defaultTextWords';
|
|
3
|
+
import { SelectedElement, TableColumnType } from 'projects/angular-ava/src/lib/ava-tree/model';
|
|
4
|
+
import { FilterFunction, IConfigurationTree } from 'projects/angular-ava/src/lib/ava-tree/model/config-tree.model';
|
|
5
|
+
import { IFunctionViewLine } from 'projects/angular-ava/src/lib/ava-tree/model/function-view-line.model';
|
|
6
|
+
import { IKeyboardOperationConfig } from 'projects/angular-ava/src/lib/ava-tree/services/keyboard-operation.service';
|
|
7
|
+
export declare class ConfigurationTreeService {
|
|
8
|
+
private _textWords;
|
|
9
|
+
private _indent;
|
|
10
|
+
private _functionView;
|
|
11
|
+
private _selectedColor;
|
|
12
|
+
private _allowDblClick;
|
|
13
|
+
private _mouseAwareKeyboardControl;
|
|
14
|
+
private _addTableColumns;
|
|
15
|
+
private _isSelectionMode;
|
|
16
|
+
private _initiallySelectedElements;
|
|
17
|
+
private _customKeyboardOperationConfig;
|
|
18
|
+
private _listFilterFunc;
|
|
19
|
+
private treeConfigSource;
|
|
20
|
+
treeConfig$: Observable<IConfigurationTree>;
|
|
21
|
+
constructor();
|
|
22
|
+
setTreeConfig(value: IConfigurationTree): void;
|
|
23
|
+
getCurrentTreeConfig(): IConfigurationTree | null;
|
|
24
|
+
getTextWordsFromConfig(): Observable<ITextWords | null>;
|
|
25
|
+
getIndentFromConfig(): Observable<string>;
|
|
26
|
+
getFunctionViewFromConfig(): Observable<IFunctionViewLine[]>;
|
|
27
|
+
getSelectedColorFromConfig(): Observable<string>;
|
|
28
|
+
getAllowDblClickFromConfig(): Observable<boolean>;
|
|
29
|
+
getAddTableColumnsFromConfig(): Observable<TableColumnType[]>;
|
|
30
|
+
getIsSelectionModeFromConfig(): Observable<boolean>;
|
|
31
|
+
getInitiallySelectedElementsViewFromConfig(): Observable<SelectedElement[]>;
|
|
32
|
+
getMouseAwareKeyboardControlFromConfig(): Observable<boolean>;
|
|
33
|
+
getCustomKeyboardOperationConfigFromConfig(): Observable<IKeyboardOperationConfig | null>;
|
|
34
|
+
getListFilterFuncFromConfig(): Observable<FilterFunction[]>;
|
|
35
|
+
private getDefaultConfiguration;
|
|
36
|
+
}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { IElementDto,
|
|
2
|
+
import { IElementDto, ServiceSpecificationDto } from '../model';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FlatElementsService {
|
|
5
5
|
private _flatElementsDto;
|
|
6
6
|
private flatElementsDtoSource;
|
|
7
7
|
flatElementsDto: Observable<IElementDto[]>;
|
|
8
|
-
objectElementsDto
|
|
9
|
-
[id: string]: IElementDto;
|
|
10
|
-
};
|
|
11
|
-
functionView: IFunctionViewLine[] | null;
|
|
8
|
+
private objectElementsDto;
|
|
12
9
|
listFilterFunc: ((element: IElementDto, filter: string) => boolean | undefined)[];
|
|
13
10
|
constructor();
|
|
14
11
|
setElementsDto(elementsDto: ServiceSpecificationDto): void;
|
|
@@ -22,7 +19,9 @@ export declare class FlatElementsService {
|
|
|
22
19
|
checkFilterValue(element: IElementDto, filterValue: string): boolean;
|
|
23
20
|
jumpNextNode(delta: number, currentElement: IElementDto | null, conditionFunc?: (e: IElementDto) => boolean): IElementDto | null;
|
|
24
21
|
private getNextIndex;
|
|
25
|
-
|
|
22
|
+
getObjectElementsDto(): {
|
|
23
|
+
[id: string]: IElementDto;
|
|
24
|
+
};
|
|
26
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlatElementsService, never>;
|
|
27
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlatElementsService>;
|
|
28
27
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ITextWords } from '../constants/defaultTextWords';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TreeWordsService {
|
|
4
|
-
private treeWordsSource;
|
|
5
|
-
getTreeWords: import("rxjs").Observable<ITextWords>;
|
|
6
|
-
setTreeWords(words: ITextWords): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TreeWordsService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TreeWordsService>;
|
|
9
|
-
}
|