@dangl/angular-ava 1.3.0-beta0032 → 1.3.0-beta0042
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/README.md +3 -0
- package/fesm2022/dangl-angular-ava.mjs +346 -344
- package/fesm2022/dangl-angular-ava.mjs.map +1 -1
- package/lib/ava-tree/components/ava-tree/ava-tree.component.d.ts +23 -22
- package/lib/ava-tree/components/list-structure/list-structure.component.d.ts +3 -4
- package/lib/ava-tree/components/table-structure/table-structure.component.d.ts +2 -2
- package/lib/ava-tree/components/tree-item/tree-item.component.d.ts +8 -7
- package/lib/ava-tree/components/tree-node/tree-node.component.d.ts +5 -5
- package/lib/ava-tree/components/tree-structure/tree-structure.component.d.ts +2 -5
- package/lib/ava-tree/directives/hover-effect.directive.d.ts +2 -2
- package/lib/ava-tree/directives/save-changing-view.directive.d.ts +3 -2
- package/lib/ava-tree/services/expand-parent-group.service.d.ts +4 -0
- package/lib/ava-tree/services/select-element.service.d.ts +0 -3
- package/lib/ava-tree/services/tree-hover-tooltip.service.d.ts +0 -3
- package/lib/invoice/components/invoice-display/invoice-display.component.d.ts +2 -0
- package/lib/invoice/components/invoice-documents/invoice-documents.component.d.ts +2 -0
- package/lib/invoice/model/configInvoice.model.d.ts +5 -0
- package/lib/invoice/services/configuration-invoice.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef,
|
|
1
|
+
import { AfterViewInit, ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ITextWords } from '../../constants/defaultTextWords';
|
|
4
|
-
import { ContextMenuDataType, IConfigurationTree, IElementDto, ModeViewType, ProjectDto, SelectedElement
|
|
4
|
+
import { ContextMenuDataType, IConfigurationTree, IElementDto, ModeViewType, ProjectDto, SelectedElement } from '../../model';
|
|
5
5
|
import { ConfigurationTreeService } from '../../services/configuration-tree.service';
|
|
6
6
|
import { ExpandParentGroupService } from '../../services/expand-parent-group.service';
|
|
7
7
|
import { FlatElementsService } from '../../services/flat-elements.service';
|
|
@@ -9,7 +9,7 @@ import { KeyboardOperationService } from '../../services/keyboard-operation.serv
|
|
|
9
9
|
import { SelectElementService } from '../../services/select-element.service';
|
|
10
10
|
import { TreeNodeSelectionService } from '../../services/tree-node-selection.service';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class AvaTreeComponent implements OnInit,
|
|
12
|
+
export declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
13
13
|
private flatElementsService;
|
|
14
14
|
private selectElementService;
|
|
15
15
|
private treeNodeSelectionService;
|
|
@@ -17,24 +17,25 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
17
17
|
private keyboardOperationService;
|
|
18
18
|
private ngZone;
|
|
19
19
|
private configurationTreeService;
|
|
20
|
+
private readonly injector;
|
|
21
|
+
private transformFn;
|
|
20
22
|
/**
|
|
21
23
|
* This is the main data element for the tree structure. You should supply a ProjectDto with
|
|
22
24
|
* exactly one service specification in it.
|
|
23
25
|
*/
|
|
24
|
-
project: ProjectDto | null
|
|
26
|
+
project: import("@angular/core").InputSignalWithTransform<ProjectDto | null, ProjectDto>;
|
|
25
27
|
/**
|
|
26
28
|
* Optionally, you can supply a map of expansion states for the tree. The keys should be the
|
|
27
29
|
* id properties of the elements in the tree, and the values should be true if the element is
|
|
28
30
|
* expanded, and false if it is collapsed.
|
|
29
31
|
*/
|
|
30
|
-
expansionState: {
|
|
32
|
+
expansionState: import("@angular/core").InputSignal<{
|
|
31
33
|
[id: string]: boolean;
|
|
32
|
-
}
|
|
34
|
+
}>;
|
|
33
35
|
/**
|
|
34
36
|
* Optionally, you can supply the id of the node that should be selected in the tree initially.
|
|
35
37
|
*/
|
|
36
|
-
|
|
37
|
-
private _selectedNodeId;
|
|
38
|
+
selectedNodeId: import("@angular/core").InputSignal<string | null>;
|
|
38
39
|
/**
|
|
39
40
|
* Optional, defaults to 20px. If this is set, then the tree will be indented by the given value each level.
|
|
40
41
|
* This can be any valid CSS value for the padding-left property, such as 20px, 1em, or 5%.
|
|
@@ -48,7 +49,7 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
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.
|
|
50
51
|
*/
|
|
51
|
-
modeView: ModeViewType
|
|
52
|
+
modeView: import("@angular/core").InputSignal<ModeViewType>;
|
|
52
53
|
/** Optional, defaults to true. If this is disabled, then the double click event for elements is not raised,
|
|
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.
|
|
@@ -119,32 +120,32 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
119
120
|
* }
|
|
120
121
|
* }
|
|
121
122
|
*/
|
|
122
|
-
|
|
123
|
+
readonly config: import("@angular/core").InputSignalWithTransform<IConfigurationTree | null, IConfigurationTree>;
|
|
123
124
|
/**
|
|
124
125
|
* This is emitted when an element is selected by clicking on it. The selected element is emitted as the event value.
|
|
125
126
|
*/
|
|
126
|
-
selectClick:
|
|
127
|
+
selectClick: import("@angular/core").OutputEmitterRef<IElementDto | null>;
|
|
127
128
|
/**
|
|
128
129
|
* This is emitted when an element is selected by double clicking on it. The selected element is emitted as the event value.
|
|
129
130
|
*/
|
|
130
|
-
selectDblClick:
|
|
131
|
+
selectDblClick: import("@angular/core").OutputEmitterRef<IElementDto>;
|
|
131
132
|
/**
|
|
132
133
|
* This is emitted when an element is selected by right clicking on it. The selected element is emitted as the event value.
|
|
133
134
|
*/
|
|
134
|
-
contextMenuEvent:
|
|
135
|
+
contextMenuEvent: import("@angular/core").OutputEmitterRef<ContextMenuDataType>;
|
|
135
136
|
/**
|
|
136
137
|
* This is emitted when the selected elements in the tree are changed. The selected elements are emitted as the event value.
|
|
137
138
|
* Selected elements are elements whose checkboxes are checked, and are different than elements that are in an active selection state.
|
|
138
139
|
* Typcial use cases for this include e.g. selecting multiple elements within a service specification without
|
|
139
140
|
* actually focussing them, e.g. for further processing.
|
|
140
141
|
*/
|
|
141
|
-
selectedElementsChanged:
|
|
142
|
-
avaTreeWrapper: ElementRef<HTMLDivElement
|
|
143
|
-
avaMainWrapper: ElementRef<HTMLDivElement
|
|
144
|
-
avaTreeFilterInput: ElementRef<HTMLInputElement
|
|
145
|
-
selectedElement
|
|
146
|
-
serviceSpecification: ServiceSpecificationDto
|
|
147
|
-
isListenKeyboard
|
|
142
|
+
selectedElementsChanged: import("@angular/core").OutputEmitterRef<SelectedElement[]>;
|
|
143
|
+
avaTreeWrapper: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
|
|
144
|
+
avaMainWrapper: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
|
|
145
|
+
avaTreeFilterInput: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
146
|
+
private selectedElement;
|
|
147
|
+
serviceSpecification: import("@angular/core").WritableSignal<import("../../model").ServiceSpecificationDto | null>;
|
|
148
|
+
private isListenKeyboard;
|
|
148
149
|
private isEmiteSelectedElements;
|
|
149
150
|
private selectingElementsTreeData;
|
|
150
151
|
flatElements: IElementDto[] | null;
|
|
@@ -159,7 +160,6 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
159
160
|
constructor(flatElementsService: FlatElementsService, selectElementService: SelectElementService, treeNodeSelectionService: TreeNodeSelectionService, expandParentGroupService: ExpandParentGroupService, keyboardOperationService: KeyboardOperationService, ngZone: NgZone, configurationTreeService: ConfigurationTreeService);
|
|
160
161
|
ngOnInit(): void;
|
|
161
162
|
ngAfterViewInit(): void;
|
|
162
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
163
163
|
ngOnDestroy(): void;
|
|
164
164
|
private mouseOver;
|
|
165
165
|
private mouseOut;
|
|
@@ -174,6 +174,7 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
174
174
|
selectOrDeselectAll(value: boolean): void;
|
|
175
175
|
private getFilteredList;
|
|
176
176
|
private initializeEventListeners;
|
|
177
|
+
private selectElementById;
|
|
177
178
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvaTreeComponent, [{ self: true; }, { self: true; }, { self: true; }, { self: true; }, { self: true; }, null, null]>;
|
|
178
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvaTreeComponent, "ava-tree", never, { "project": { "alias": "project"; "required":
|
|
179
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvaTreeComponent, "ava-tree", never, { "project": { "alias": "project"; "required": true; "isSignal": true; }; "expansionState": { "alias": "expansionState"; "required": false; "isSignal": true; }; "selectedNodeId": { "alias": "selectedNodeId"; "required": false; "isSignal": true; }; "modeView": { "alias": "modeView"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "selectClick": "selectClick"; "selectDblClick": "selectDblClick"; "contextMenuEvent": "contextMenuEvent"; "selectedElementsChanged": "selectedElementsChanged"; }, never, never, true, never>;
|
|
179
180
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { IElementDto } from '../../model';
|
|
4
4
|
import { ConfigurationTreeService } from '../../services/configuration-tree.service';
|
|
@@ -7,8 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class ListStructureComponent implements OnDestroy, OnInit {
|
|
8
8
|
selectElementService: SelectElementService;
|
|
9
9
|
private configurationTreeService;
|
|
10
|
-
filteredElementList: IElementDto[]
|
|
11
|
-
templates: QueryList<ElementRef<HTMLElement>>;
|
|
10
|
+
filteredElementList: import("@angular/core").InputSignal<IElementDto[]>;
|
|
12
11
|
selectedElement: IElementDto | null;
|
|
13
12
|
private $destroy;
|
|
14
13
|
readonly selectedColor$: Observable<string>;
|
|
@@ -17,5 +16,5 @@ export declare class ListStructureComponent implements OnDestroy, OnInit {
|
|
|
17
16
|
ngOnInit(): void;
|
|
18
17
|
ngOnDestroy(): void;
|
|
19
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListStructureComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListStructureComponent, "ava-list-structure", never, { "filteredElementList": { "alias": "filteredElementList"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListStructureComponent, "ava-list-structure", never, { "filteredElementList": { "alias": "filteredElementList"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
20
|
}
|
|
@@ -12,7 +12,7 @@ export declare class TableStructureComponent implements OnInit, OnDestroy {
|
|
|
12
12
|
private treeNodeSelectionService;
|
|
13
13
|
private cdr;
|
|
14
14
|
configurationTreeService: ConfigurationTreeService;
|
|
15
|
-
filteredElementList: IElementDto[]
|
|
15
|
+
filteredElementList: import("@angular/core").InputSignal<IElementDto[]>;
|
|
16
16
|
displayedColumns: string[];
|
|
17
17
|
private isAllowOneClick;
|
|
18
18
|
selectedElement: IElementDto | null;
|
|
@@ -33,5 +33,5 @@ export declare class TableStructureComponent implements OnInit, OnDestroy {
|
|
|
33
33
|
changeSelecting(element: IElementDto, event: boolean): void;
|
|
34
34
|
configureTableColumns(): void;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableStructureComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableStructureComponent, "ava-table-structure", never, { "filteredElementList": { "alias": "filteredElementList"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableStructureComponent, "ava-table-structure", never, { "filteredElementList": { "alias": "filteredElementList"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
37
37
|
}
|
|
@@ -12,13 +12,13 @@ export declare class TreeItemComponent implements OnInit, OnDestroy {
|
|
|
12
12
|
private treeNodeSelectionService;
|
|
13
13
|
private cdr;
|
|
14
14
|
private configurationTreeService;
|
|
15
|
-
element: IElementDto
|
|
16
|
-
expansionState: {
|
|
15
|
+
element: import("@angular/core").InputSignal<IElementDto>;
|
|
16
|
+
expansionState: import("@angular/core").InputSignal<{
|
|
17
17
|
[id: string]: boolean;
|
|
18
|
-
}
|
|
19
|
-
isSelect: boolean
|
|
20
|
-
backgroundColor: string | null
|
|
21
|
-
textElement: ElementRef<HTMLElement
|
|
18
|
+
}>;
|
|
19
|
+
isSelect: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
backgroundColor: import("@angular/core").InputSignal<string | null>;
|
|
21
|
+
textElement: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
22
22
|
selectedElement: IElementDto | null;
|
|
23
23
|
preselectedElement: IElementDto | null;
|
|
24
24
|
private isAllowOneClick;
|
|
@@ -29,6 +29,7 @@ export declare class TreeItemComponent implements OnInit, OnDestroy {
|
|
|
29
29
|
checkedElements: {
|
|
30
30
|
[elementId: string]: SelectingElementsType;
|
|
31
31
|
};
|
|
32
|
+
private expandParentGroupService;
|
|
32
33
|
constructor(selectElementService: SelectElementService, treeNodeSelectionService: TreeNodeSelectionService, cdr: ChangeDetectorRef, configurationTreeService: ConfigurationTreeService);
|
|
33
34
|
ngOnInit(): void;
|
|
34
35
|
ngOnDestroy(): void;
|
|
@@ -38,5 +39,5 @@ export declare class TreeItemComponent implements OnInit, OnDestroy {
|
|
|
38
39
|
openContextMenu(event: MouseEvent): void;
|
|
39
40
|
changeSelecting(element: IElementDto, isSelected: boolean): void;
|
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeItemComponent, never>;
|
|
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>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeItemComponent, "ava-tree-item", never, { "element": { "alias": "element"; "required": false; "isSignal": true; }; "expansionState": { "alias": "expansionState"; "required": false; "isSignal": true; }; "isSelect": { "alias": "isSelect"; "required": false; "isSignal": true; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
42
43
|
}
|
|
@@ -2,24 +2,24 @@ import { OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { IElementDto } from '../../model';
|
|
4
4
|
import { ConfigurationTreeService } from '../../services/configuration-tree.service';
|
|
5
|
+
import { ExpandParentGroupService } from '../../services/expand-parent-group.service';
|
|
5
6
|
import { SelectElementService } from '../../services/select-element.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class TreeNodeComponent implements OnDestroy, OnInit {
|
|
8
9
|
selectElementService: SelectElementService;
|
|
9
10
|
private configurationTreeService;
|
|
10
|
-
elementList
|
|
11
|
-
expansionState: {
|
|
12
|
-
[id: string]: boolean;
|
|
13
|
-
};
|
|
11
|
+
elementList: import("@angular/core").InputSignal<IElementDto[] | null>;
|
|
14
12
|
selectedElement: IElementDto | null;
|
|
15
13
|
private $destroy;
|
|
16
14
|
readonly indent$: Observable<string>;
|
|
17
15
|
readonly selectedColor$: Observable<string>;
|
|
18
16
|
isSelectionMode: boolean;
|
|
17
|
+
private cdr;
|
|
18
|
+
expandParentGroupService: ExpandParentGroupService;
|
|
19
19
|
constructor(selectElementService: SelectElementService, configurationTreeService: ConfigurationTreeService);
|
|
20
20
|
ngOnInit(): void;
|
|
21
21
|
ngOnDestroy(): void;
|
|
22
22
|
expand(element: IElementDto): void;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeNodeComponent, never>;
|
|
24
|
-
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; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
25
25
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ServiceSpecificationDto } from '../../model';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class TreeStructureComponent {
|
|
4
|
-
serviceSpecification: ServiceSpecificationDto | null
|
|
5
|
-
expansionState: {
|
|
6
|
-
[id: string]: boolean;
|
|
7
|
-
};
|
|
4
|
+
serviceSpecification: import("@angular/core").InputSignal<ServiceSpecificationDto | null>;
|
|
8
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeStructureComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TreeStructureComponent, "ava-tree-structure", never, { "serviceSpecification": { "alias": "serviceSpecification"; "required": false;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeStructureComponent, "ava-tree-structure", never, { "serviceSpecification": { "alias": "serviceSpecification"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TreeItemComponent } from '../components/tree-item/tree-item.component';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class HoverEffectDirective {
|
|
4
|
-
itemText: TreeItemComponent
|
|
4
|
+
itemText: import("@angular/core").InputSignal<TreeItemComponent | null>;
|
|
5
5
|
private allowShow;
|
|
6
6
|
private treeHoverTooltipService;
|
|
7
7
|
onMouseEnter(): void;
|
|
@@ -14,5 +14,5 @@ export declare class HoverEffectDirective {
|
|
|
14
14
|
onMouseMove(event: MouseEvent): void;
|
|
15
15
|
private hide;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<HoverEffectDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HoverEffectDirective, "[avaHoverEffect]", never, { "itemText": { "alias": "avaHoverEffect"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HoverEffectDirective, "[avaHoverEffect]", never, { "itemText": { "alias": "avaHoverEffect"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
18
|
}
|
|
@@ -7,13 +7,14 @@ export declare class SaveChangingViewDirective implements AfterViewInit, OnDestr
|
|
|
7
7
|
private renderer;
|
|
8
8
|
private flatElementsService;
|
|
9
9
|
private configurationTreeService;
|
|
10
|
-
saveChangingView: string
|
|
10
|
+
saveChangingView: import("@angular/core").InputSignal<string>;
|
|
11
11
|
private $destroy;
|
|
12
|
+
private readonly injector;
|
|
12
13
|
constructor(el: ElementRef<HTMLElement>, renderer: Renderer2, flatElementsService: FlatElementsService, configurationTreeService: ConfigurationTreeService);
|
|
13
14
|
ngOnDestroy(): void;
|
|
14
15
|
ngAfterViewInit(): void;
|
|
15
16
|
private updateElementStles;
|
|
16
17
|
private getChangedView;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SaveChangingViewDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SaveChangingViewDirective, "[saveChangingView]", never, { "saveChangingView": { "alias": "saveChangingView"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SaveChangingViewDirective, "[saveChangingView]", never, { "saveChangingView": { "alias": "saveChangingView"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
20
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { IElementDto } from '../model/ava-models';
|
|
2
|
+
export interface IExpansionState {
|
|
3
|
+
[id: string]: boolean;
|
|
4
|
+
}
|
|
2
5
|
export declare class ExpandParentGroupService {
|
|
6
|
+
expansionState: import("@angular/core").WritableSignal<IExpansionState | null>;
|
|
3
7
|
constructor();
|
|
4
8
|
expandParentGroups(element: IElementDto, flatElements: IElementDto[] | null, expansionState: {
|
|
5
9
|
[id: string]: boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IElementDto } from '../model';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class SelectElementService {
|
|
4
3
|
private preselectedElementSource;
|
|
5
4
|
private preselectedElementWasNull;
|
|
@@ -26,6 +25,4 @@ export declare class SelectElementService {
|
|
|
26
25
|
};
|
|
27
26
|
node: IElementDto;
|
|
28
27
|
}): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectElementService, never>;
|
|
30
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SelectElementService>;
|
|
31
28
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
1
|
export declare class TreeHoverTooltipService {
|
|
3
2
|
showElementOver(text: HTMLElement | null): void;
|
|
4
3
|
hideElementOver(text: HTMLElement | null): void;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TreeHoverTooltipService, never>;
|
|
6
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TreeHoverTooltipService>;
|
|
7
4
|
}
|
|
@@ -2,12 +2,14 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { IConfigurationInvoice, ITextWordInvoice } from '../../model';
|
|
4
4
|
import { Invoice } from '../../model';
|
|
5
|
+
import { IColorSettings } from '../../model/configInvoice.model';
|
|
5
6
|
import { ConfigurationInvoiceService } from '../../services/configuration-invoice.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class InvoiceDisplayComponent implements OnInit {
|
|
8
9
|
private configurationInvoiceService;
|
|
9
10
|
private transformFn;
|
|
10
11
|
readonly invoice: import("@angular/core").InputSignalWithTransform<Invoice | null, Invoice>;
|
|
12
|
+
readonly colorSettings$: Observable<IColorSettings | null>;
|
|
11
13
|
readonly textWords$: Observable<ITextWordInvoice | null>;
|
|
12
14
|
readonly pdfViewEnabled$: Observable<boolean>;
|
|
13
15
|
private readonly currencyCode;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, OnInit } from '@angular/core';
|
|
2
2
|
import { MatExpansionPanel } from '@angular/material/expansion';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { IColorSettings } from '../../model/configInvoice.model';
|
|
4
5
|
import { SupportingDocument } from '../../model/invoice-models';
|
|
5
6
|
import { ITextWordInvoice } from '../../model/invoice-words.model';
|
|
6
7
|
import { ConfigurationInvoiceService } from '../../services/configuration-invoice.service';
|
|
@@ -11,6 +12,7 @@ export declare class InvoiceDocumentsComponent implements OnInit, AfterViewInit
|
|
|
11
12
|
documentsPanel: MatExpansionPanel | null;
|
|
12
13
|
private destroyRef;
|
|
13
14
|
readonly textWords$: Observable<ITextWordInvoice | null>;
|
|
15
|
+
readonly colorSettings$: Observable<IColorSettings | null>;
|
|
14
16
|
pdfViewEnabled: boolean;
|
|
15
17
|
constructor(configurationInvoiceService: ConfigurationInvoiceService);
|
|
16
18
|
ngOnInit(): void;
|
|
@@ -4,5 +4,10 @@ export interface IConfigurationInvoice {
|
|
|
4
4
|
pdfViewEnabled?: boolean;
|
|
5
5
|
language?: LanguageType;
|
|
6
6
|
quantityDecimalPlaces?: string;
|
|
7
|
+
colorSettings?: IColorSettings | null;
|
|
8
|
+
}
|
|
9
|
+
export interface IColorSettings {
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
textColor: string;
|
|
7
12
|
}
|
|
8
13
|
export type LanguageType = 'en' | 'de';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { IConfigurationInvoice, ITextWordInvoice, LanguageType } from '../model';
|
|
3
|
+
import { IColorSettings } from 'projects/angular-ava/src/lib/invoice/model/configInvoice.model';
|
|
3
4
|
export declare class ConfigurationInvoiceService {
|
|
4
5
|
private _language;
|
|
5
6
|
private _textWords;
|
|
6
7
|
private _pdfViewEnabled;
|
|
7
8
|
private _quantityDecimalPlaces;
|
|
8
9
|
private _currencyCode;
|
|
10
|
+
private _colorSettings;
|
|
9
11
|
private invoiceConfigSource;
|
|
10
12
|
invoiceConfig$: Observable<IConfigurationInvoice>;
|
|
11
13
|
constructor();
|
|
@@ -14,6 +16,7 @@ export declare class ConfigurationInvoiceService {
|
|
|
14
16
|
getTextWordsFromConfig(): Observable<ITextWordInvoice | null>;
|
|
15
17
|
getPdfViewEnabledFromConfig(): Observable<boolean>;
|
|
16
18
|
private getDefaultInvoiceConfiguration;
|
|
19
|
+
getColorSettingsFromConfig(): Observable<IColorSettings | null>;
|
|
17
20
|
getDefaultTextWords(languageWord: LanguageType): ITextWordInvoice;
|
|
18
21
|
get locale(): string;
|
|
19
22
|
set quantityDecimalPlaces(value: string);
|