@dangl/angular-ava 1.3.0-beta0046 → 1.3.0-beta0064
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 +24 -18
- package/fesm2022/dangl-angular-ava.mjs +121 -100
- package/fesm2022/dangl-angular-ava.mjs.map +1 -1
- package/lib/ava-tree/components/ava-tree/ava-tree.component.d.ts +5 -54
- package/lib/ava-tree/components/tree-item/tree-item.component.d.ts +1 -4
- package/lib/ava-tree/model/config-tree.model.d.ts +0 -18
- package/lib/invoice/components/invoice-line-item-additional-info/invoice-line-item-additional-info.component.d.ts +11 -0
- package/lib/invoice/components/invoice-line-items-table/invoice-line-items-table.component.d.ts +18 -0
- package/lib/invoice/model/invoice-words.model.d.ts +4 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { ITextWords } from '../../constants/defaultTextWords';
|
|
4
4
|
import { ContextMenuDataType, IConfigurationTree, IElementDto, ModeViewType, ProjectDto, SelectedElement } from '../../model';
|
|
5
5
|
import { ConfigurationTreeService } from '../../services/configuration-tree.service';
|
|
6
|
-
import { ExpandParentGroupService } from '../../services/expand-parent-group.service';
|
|
6
|
+
import { ExpandParentGroupService, IExpansionState } from '../../services/expand-parent-group.service';
|
|
7
7
|
import { FlatElementsService } from '../../services/flat-elements.service';
|
|
8
8
|
import { KeyboardOperationService } from '../../services/keyboard-operation.service';
|
|
9
9
|
import { SelectElementService } from '../../services/select-element.service';
|
|
@@ -29,35 +29,16 @@ export declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewIni
|
|
|
29
29
|
* id properties of the elements in the tree, and the values should be true if the element is
|
|
30
30
|
* expanded, and false if it is collapsed.
|
|
31
31
|
*/
|
|
32
|
-
|
|
33
|
-
[id: string]: boolean;
|
|
34
|
-
}>;
|
|
32
|
+
readonly expansionstate: import("@angular/core").InputSignalWithTransform<IExpansionState | null, IExpansionState>;
|
|
35
33
|
/**
|
|
36
34
|
* Optionally, you can supply the id of the node that should be selected in the tree initially.
|
|
37
35
|
*/
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Optional, defaults to 20px. If this is set, then the tree will be indented by the given value each level.
|
|
41
|
-
* This can be any valid CSS value for the padding-left property, such as 20px, 1em, or 5%.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
/**
|
|
45
|
-
* Optional, you can supply a color to be used as the background color for the selected line. Defaults to the primary
|
|
46
|
-
* color from the Material theme, which is #00acc1.
|
|
47
|
-
*/
|
|
36
|
+
readonly selectednodeid: import("@angular/core").InputSignal<string | null>;
|
|
48
37
|
/**
|
|
49
38
|
* You can specify which view type to use for the tree. The default is ModeViewType.Tree, but you can also use
|
|
50
39
|
* ModeViewType.List or ModeViewType.Table.
|
|
51
40
|
*/
|
|
52
|
-
|
|
53
|
-
/** Optional, defaults to true. If this is disabled, then the double click event for elements is not raised,
|
|
54
|
-
* and clicking on an elemt sends an immediate result since the component has not to wait and check if a double click event
|
|
55
|
-
* is fired.
|
|
56
|
-
*/
|
|
57
|
-
/**
|
|
58
|
-
* If this is set to true, then the tree will be in selection mode, and the user can select elements
|
|
59
|
-
* by clicking on them. The selected elements will be emitted in the selectedElementsChanged event.
|
|
60
|
-
*/
|
|
41
|
+
readonly modeview: import("@angular/core").InputSignal<ModeViewType>;
|
|
61
42
|
/**
|
|
62
43
|
* You can optionally supply a list of elements that should be selected initially. This is only used if
|
|
63
44
|
* isSelectionMode is true.
|
|
@@ -90,36 +71,6 @@ export declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewIni
|
|
|
90
71
|
* With this parameter, you can configure which keys will be listenend to switch the tree elements,
|
|
91
72
|
* and also to disable the functionality of the keys */
|
|
92
73
|
private set customKeyboardOperationConfig(value);
|
|
93
|
-
/**
|
|
94
|
-
* You can supply custom filters that are processed when the filter input is changed. Default filters are used
|
|
95
|
-
* that check for short text and item number matches, and you can either add custom filters or replace the default ones.
|
|
96
|
-
*/
|
|
97
|
-
/**
|
|
98
|
-
* Optional. For table views, this allows you to add custom columns to the table.
|
|
99
|
-
* addTableColumns: Array of objects
|
|
100
|
-
* {
|
|
101
|
-
* name: string, // name of column
|
|
102
|
-
* title: string, // showed title of column
|
|
103
|
-
* align?: string, // optional alight: left(default) / center / right
|
|
104
|
-
* numberFormat?: string // optional format of number value, example: '1.2-2'
|
|
105
|
-
* }
|
|
106
|
-
*/
|
|
107
|
-
/**
|
|
108
|
-
* This allows you to supply a list of functions that can be used to change the appearance of elements.
|
|
109
|
-
* They objects contain a predicate function that is evaluated, along with an option to configure the
|
|
110
|
-
* appearance of the element.
|
|
111
|
-
* functionView: Array of objects
|
|
112
|
-
* {
|
|
113
|
-
* name: string, // name of view part: you can add/remove it when it need
|
|
114
|
-
* func: (element: any, result?: any) => boolean, // this filter function calculate condition to change view
|
|
115
|
-
* view: {
|
|
116
|
-
* iconName?: string, // changed name of icon
|
|
117
|
-
* iconColor?: string, // changed color of icon
|
|
118
|
-
* textBold?: string, // changed weight of text
|
|
119
|
-
* textColor?: string // changed color of text
|
|
120
|
-
* }
|
|
121
|
-
* }
|
|
122
|
-
*/
|
|
123
74
|
readonly config: import("@angular/core").InputSignalWithTransform<IConfigurationTree | null, IConfigurationTree>;
|
|
124
75
|
/**
|
|
125
76
|
* This is emitted when an element is selected by clicking on it. The selected element is emitted as the event value.
|
|
@@ -176,5 +127,5 @@ export declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewIni
|
|
|
176
127
|
private initializeEventListeners;
|
|
177
128
|
private selectElementById;
|
|
178
129
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvaTreeComponent, [{ self: true; }, { self: true; }, { self: true; }, { self: true; }, { self: true; }, null, null]>;
|
|
179
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvaTreeComponent, "ava-tree", never, { "project": { "alias": "project"; "required": true; "isSignal": true; }; "
|
|
130
|
+
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>;
|
|
180
131
|
}
|
|
@@ -13,9 +13,6 @@ export declare class TreeItemComponent implements OnInit, OnDestroy {
|
|
|
13
13
|
private cdr;
|
|
14
14
|
private configurationTreeService;
|
|
15
15
|
element: import("@angular/core").InputSignal<IElementDto>;
|
|
16
|
-
expansionState: import("@angular/core").InputSignal<{
|
|
17
|
-
[id: string]: boolean;
|
|
18
|
-
}>;
|
|
19
16
|
isSelect: import("@angular/core").InputSignal<boolean>;
|
|
20
17
|
backgroundColor: import("@angular/core").InputSignal<string | null>;
|
|
21
18
|
textElement: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
@@ -39,5 +36,5 @@ export declare class TreeItemComponent implements OnInit, OnDestroy {
|
|
|
39
36
|
openContextMenu(event: MouseEvent): void;
|
|
40
37
|
changeSelecting(element: IElementDto, isSelected: boolean): void;
|
|
41
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeItemComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TreeItemComponent, "ava-tree-item", never, { "element": { "alias": "element"; "required": false; "isSignal": true; }; "
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeItemComponent, "ava-tree-item", never, { "element": { "alias": "element"; "required": false; "isSignal": true; }; "isSelect": { "alias": "isSelect"; "required": false; "isSignal": true; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
43
40
|
}
|
|
@@ -3,22 +3,9 @@ import { IElementDto } from './ava-models';
|
|
|
3
3
|
import { IFunctionViewLine } from './function-view-line.model';
|
|
4
4
|
import { SelectedElement } from './selecting.model';
|
|
5
5
|
import { TableColumnType } from './tableColumnType';
|
|
6
|
-
import { ModeViewType } from './tree-mode.model';
|
|
7
6
|
import { ITextWords } from '../constants/defaultTextWords';
|
|
8
7
|
import { IKeyboardOperationConfig } from '../services/keyboard-operation.service';
|
|
9
8
|
export interface IConfigurationTree {
|
|
10
|
-
/**
|
|
11
|
-
* Optionally, you can supply a map of expansion states for the tree. The keys should be the
|
|
12
|
-
* id properties of the elements in the tree, and the values should be true if the element is
|
|
13
|
-
* expanded, and false if it is collapsed.
|
|
14
|
-
*/
|
|
15
|
-
expansionState?: {
|
|
16
|
-
[id: string]: boolean;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Optionally, you can supply the id of the node that should be selected in the tree initially.
|
|
20
|
-
* */
|
|
21
|
-
selectedNodeId?: string;
|
|
22
9
|
/**
|
|
23
10
|
* Optional, defaults to 20px. If this is set, then the tree will be indented by the given value each level.
|
|
24
11
|
* This can be any valid CSS value for the padding-left property, such as 20px, 1em, or 5%.
|
|
@@ -29,11 +16,6 @@ export interface IConfigurationTree {
|
|
|
29
16
|
* color from the Material theme, which is #00acc1.
|
|
30
17
|
*/
|
|
31
18
|
selectedColor?: string;
|
|
32
|
-
/**
|
|
33
|
-
* You can specify which view type to use for the tree. The default is ModeViewType.Tree, but you can also use
|
|
34
|
-
* ModeViewType.List or ModeViewType.Table.
|
|
35
|
-
*/
|
|
36
|
-
modeView?: ModeViewType;
|
|
37
19
|
/**
|
|
38
20
|
* Optional, defaults to true. If this is disabled, then the double click event for elements is not raised, and clicking on an elemt sends an immediate result since the component has not to wait and check if a double click event is fired.
|
|
39
21
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { InvoiceLineItem } from '../../model/invoice-models';
|
|
3
|
+
import { ITextWordInvoice } from '../../model/invoice-words.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InvoiceLineItemAdditionalInfoComponent {
|
|
6
|
+
lineItem: InvoiceLineItem;
|
|
7
|
+
private configurationInvoiceService;
|
|
8
|
+
readonly textWords$: Observable<ITextWordInvoice | null>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceLineItemAdditionalInfoComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InvoiceLineItemAdditionalInfoComponent, "ava-invoice-line-item-additional-info", never, { "lineItem": { "alias": "lineItem"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
package/lib/invoice/components/invoice-line-items-table/invoice-line-items-table.component.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { InvoiceLineItem } from '../../model/invoice-models';
|
|
3
|
+
import { ITextWordInvoice } from '../../model/invoice-words.model';
|
|
4
|
+
import { IColorSettings } from 'projects/angular-ava/src/lib/invoice/model/configInvoice.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class InvoiceLineItemsTableComponent {
|
|
7
|
+
lineItems: import("@angular/core").InputSignal<InvoiceLineItem[]>;
|
|
8
|
+
private configurationInvoiceService;
|
|
9
|
+
readonly textWords$: Observable<ITextWordInvoice | null>;
|
|
10
|
+
readonly pdfViewEnabled$: Observable<boolean>;
|
|
11
|
+
readonly colorSettings$: Observable<IColorSettings | null>;
|
|
12
|
+
readonly displayedColumns: string[];
|
|
13
|
+
private expandedElements;
|
|
14
|
+
toggleRow(row: InvoiceLineItem): void;
|
|
15
|
+
isRowExpanded(row: InvoiceLineItem): boolean;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceLineItemsTableComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InvoiceLineItemsTableComponent, "ava-invoice-line-items-table", never, { "lineItems": { "alias": "lineItems"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -66,4 +66,8 @@ export interface ITextWordInvoice {
|
|
|
66
66
|
invoiceChargesTableHeaderVatRate: string;
|
|
67
67
|
invoiceChargesTableHeaderCharge: string;
|
|
68
68
|
invoiceChargesTableHeaderBase: string;
|
|
69
|
+
lineItemDiscount: string;
|
|
70
|
+
lineItemCharges: string;
|
|
71
|
+
lineItemAllowances: string;
|
|
72
|
+
lineItemReason: string;
|
|
69
73
|
}
|