@dangl/angular-ava 1.5.1 → 1.5.2-beta0039
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 +195 -217
- package/fesm2022/dangl-angular-ava.mjs.map +1 -1
- package/package.json +12 -11
- package/{index.d.ts → types/dangl-angular-ava.d.ts} +10 -148
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dangl/angular-ava",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2-beta0039",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"angular",
|
|
6
6
|
"ava",
|
|
@@ -10,27 +10,28 @@
|
|
|
10
10
|
"AEC"
|
|
11
11
|
],
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@angular/animations": ">=
|
|
14
|
-
"@angular/cdk": ">=
|
|
15
|
-
"@angular/common": ">=
|
|
16
|
-
"@angular/compiler": ">=
|
|
17
|
-
"@angular/core": ">=
|
|
18
|
-
"@angular/forms": ">=
|
|
19
|
-
"@angular/material": ">=
|
|
20
|
-
"rxjs": "~7.8.1"
|
|
13
|
+
"@angular/animations": ">=20.1.1",
|
|
14
|
+
"@angular/cdk": ">=20.1.1",
|
|
15
|
+
"@angular/common": ">=20.1.1",
|
|
16
|
+
"@angular/compiler": ">=20.1.1",
|
|
17
|
+
"@angular/core": ">=20.1.1",
|
|
18
|
+
"@angular/forms": ">=20.1.1",
|
|
19
|
+
"@angular/material": ">=20.1.1",
|
|
20
|
+
"rxjs": "~7.8.1",
|
|
21
|
+
"typescript": ">=5.8"
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
24
|
"tslib": "^2.6.2"
|
|
24
25
|
},
|
|
25
26
|
"sideEffects": false,
|
|
26
27
|
"module": "fesm2022/dangl-angular-ava.mjs",
|
|
27
|
-
"typings": "
|
|
28
|
+
"typings": "types/dangl-angular-ava.d.ts",
|
|
28
29
|
"exports": {
|
|
29
30
|
"./package.json": {
|
|
30
31
|
"default": "./package.json"
|
|
31
32
|
},
|
|
32
33
|
".": {
|
|
33
|
-
"types": "./
|
|
34
|
+
"types": "./types/dangl-angular-ava.d.ts",
|
|
34
35
|
"default": "./fesm2022/dangl-angular-ava.mjs"
|
|
35
36
|
}
|
|
36
37
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _dangl_angular_ava from '@dangl/angular-ava';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import * as rxjs from 'rxjs';
|
|
3
|
+
import { OnInit, OnDestroy, AfterViewInit, ElementRef } from '@angular/core';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
|
|
7
6
|
/** This enum configures rounding modes for price calculations in projects */
|
|
@@ -2385,6 +2384,10 @@ interface IConfigurationInvoice {
|
|
|
2385
2384
|
language?: LanguageType;
|
|
2386
2385
|
quantityDecimalPlaces?: string;
|
|
2387
2386
|
colorSettings?: IColorSettings | null;
|
|
2387
|
+
alignmentOptions?: IAlignmentOptions;
|
|
2388
|
+
}
|
|
2389
|
+
interface IAlignmentOptions {
|
|
2390
|
+
previousInvoiceAlignment: 'left' | 'center' | 'right';
|
|
2388
2391
|
}
|
|
2389
2392
|
interface IColorSettings {
|
|
2390
2393
|
backgroundColor: string;
|
|
@@ -2408,13 +2411,6 @@ interface SelectedElement {
|
|
|
2408
2411
|
elementId: string;
|
|
2409
2412
|
children?: SelectedElement[] | null;
|
|
2410
2413
|
}
|
|
2411
|
-
type SelectingElementsType = {
|
|
2412
|
-
elementId: string;
|
|
2413
|
-
children?: SelectingElementsType[];
|
|
2414
|
-
parent?: SelectingElementsType | null;
|
|
2415
|
-
checked?: boolean;
|
|
2416
|
-
indeterminate?: boolean;
|
|
2417
|
-
};
|
|
2418
2414
|
|
|
2419
2415
|
type TableColumnType = {
|
|
2420
2416
|
name: string;
|
|
@@ -2459,22 +2455,6 @@ interface IKeyboardOperation {
|
|
|
2459
2455
|
disabled?: boolean;
|
|
2460
2456
|
keyEvent?: string;
|
|
2461
2457
|
}
|
|
2462
|
-
declare class KeyboardOperationService {
|
|
2463
|
-
private defaultKeyboardOperationConfig;
|
|
2464
|
-
private flatElementsService;
|
|
2465
|
-
private selectElementService;
|
|
2466
|
-
private currentConfig;
|
|
2467
|
-
constructor();
|
|
2468
|
-
getConfig(): {
|
|
2469
|
-
operations: IKeyboardOperations;
|
|
2470
|
-
};
|
|
2471
|
-
mergeConfigOperation(config: IKeyboardOperationConfig): void;
|
|
2472
|
-
private deepMerge;
|
|
2473
|
-
handleKeyboardEvent(keyEvent: KeyboardEvent, element: IElementDto | null): {
|
|
2474
|
-
operation: KeyboardOperationType;
|
|
2475
|
-
nextElement: IElementDto | null;
|
|
2476
|
-
} | null;
|
|
2477
|
-
}
|
|
2478
2458
|
|
|
2479
2459
|
interface IConfigurationTree {
|
|
2480
2460
|
/**
|
|
@@ -2568,129 +2548,9 @@ declare const version: {
|
|
|
2568
2548
|
buildDateUtc: Date;
|
|
2569
2549
|
};
|
|
2570
2550
|
|
|
2571
|
-
declare class ConfigurationTreeService {
|
|
2572
|
-
private _language;
|
|
2573
|
-
private _textWords;
|
|
2574
|
-
private _indent;
|
|
2575
|
-
private _functionView;
|
|
2576
|
-
private _selectedColor;
|
|
2577
|
-
private _allowDblClick;
|
|
2578
|
-
private _mouseAwareKeyboardControl;
|
|
2579
|
-
private _addTableColumns;
|
|
2580
|
-
private _isSelectionMode;
|
|
2581
|
-
private _initiallySelectedElements;
|
|
2582
|
-
private _customKeyboardOperationConfig;
|
|
2583
|
-
private _listFilterFunc;
|
|
2584
|
-
private treeConfigSource;
|
|
2585
|
-
treeConfig$: Observable<IConfigurationTree>;
|
|
2586
|
-
constructor();
|
|
2587
|
-
setTreeConfig(value: IConfigurationTree): void;
|
|
2588
|
-
getCurrentTreeConfig(): IConfigurationTree | null;
|
|
2589
|
-
getTextWordsFromConfig(): Observable<ITextWords | null>;
|
|
2590
|
-
private selectTextWords;
|
|
2591
|
-
getIndentFromConfig(): Observable<string>;
|
|
2592
|
-
getFunctionViewFromConfig(): Observable<IFunctionViewLine[]>;
|
|
2593
|
-
getSelectedColorFromConfig(): Observable<string>;
|
|
2594
|
-
getAllowDblClickFromConfig(): Observable<boolean>;
|
|
2595
|
-
getAddTableColumnsFromConfig(): Observable<TableColumnType[]>;
|
|
2596
|
-
getIsSelectionModeFromConfig(): Observable<boolean>;
|
|
2597
|
-
getInitiallySelectedElementsViewFromConfig(): Observable<SelectedElement[]>;
|
|
2598
|
-
getMouseAwareKeyboardControlFromConfig(): Observable<boolean>;
|
|
2599
|
-
getCustomKeyboardOperationConfigFromConfig(): Observable<IKeyboardOperationConfig | null>;
|
|
2600
|
-
getListFilterFuncFromConfig(): Observable<FilterFunction[]>;
|
|
2601
|
-
private getDefaultConfiguration;
|
|
2602
|
-
get locale(): string;
|
|
2603
|
-
}
|
|
2604
|
-
|
|
2605
2551
|
interface IExpansionState {
|
|
2606
2552
|
[id: string]: boolean;
|
|
2607
2553
|
}
|
|
2608
|
-
declare class ExpandParentGroupService {
|
|
2609
|
-
private expansionState;
|
|
2610
|
-
constructor();
|
|
2611
|
-
expandParentGroups(element: IElementDto, flatElements: IElementDto[] | null, expansionState: {
|
|
2612
|
-
[id: string]: boolean;
|
|
2613
|
-
}): void;
|
|
2614
|
-
setExpansionState(state: IExpansionState): void;
|
|
2615
|
-
getExpansionState(): WritableSignal<IExpansionState>;
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
|
-
declare class FlatElementsService {
|
|
2619
|
-
private _flatElementsDto;
|
|
2620
|
-
private flatElementsDtoSource;
|
|
2621
|
-
flatElementsDto: Observable<IElementDto[]>;
|
|
2622
|
-
private objectElementsDto;
|
|
2623
|
-
listFilterFunc: FilterFunction[];
|
|
2624
|
-
constructor();
|
|
2625
|
-
setElementsDto(elementsDto: ServiceSpecificationDto): void;
|
|
2626
|
-
static getFlatElements(container: {
|
|
2627
|
-
elements?: IElementDto[] | null;
|
|
2628
|
-
}): IElementDto[];
|
|
2629
|
-
static getObjectElements(elements: IElementDto[]): {
|
|
2630
|
-
[id: string]: IElementDto;
|
|
2631
|
-
};
|
|
2632
|
-
getOneElementById(id: string | null): Observable<IElementDto | null>;
|
|
2633
|
-
checkFilterValue(element: IElementDto, filterValue: string): boolean;
|
|
2634
|
-
jumpNextNode(delta: number, currentElement: IElementDto | null, conditionFunc?: (e: IElementDto) => boolean): IElementDto | null;
|
|
2635
|
-
private getNextIndex;
|
|
2636
|
-
getObjectElementsDto(): {
|
|
2637
|
-
[id: string]: IElementDto;
|
|
2638
|
-
};
|
|
2639
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FlatElementsService, never>;
|
|
2640
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FlatElementsService>;
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2643
|
-
declare class SelectElementService {
|
|
2644
|
-
private preselectedElementSource;
|
|
2645
|
-
private preselectedElementWasNull;
|
|
2646
|
-
preselectedElement: rxjs.Observable<IElementDto | null>;
|
|
2647
|
-
private selectClickElementSource;
|
|
2648
|
-
selectClickElement: rxjs.Observable<IElementDto | null>;
|
|
2649
|
-
private selectDblClickElementSource;
|
|
2650
|
-
selectDblClickElement: rxjs.Observable<IElementDto>;
|
|
2651
|
-
private selectContextMenuElementSource;
|
|
2652
|
-
selectContextMenuElement: rxjs.Observable<{
|
|
2653
|
-
position: {
|
|
2654
|
-
x: string;
|
|
2655
|
-
y: string;
|
|
2656
|
-
};
|
|
2657
|
-
node: IElementDto;
|
|
2658
|
-
}>;
|
|
2659
|
-
setPreselectedElement(element: IElementDto | null): void;
|
|
2660
|
-
setClickElement(element: IElementDto | null): void;
|
|
2661
|
-
setDblClickElement(element: IElementDto): void;
|
|
2662
|
-
setContextMenuElement(data: {
|
|
2663
|
-
position: {
|
|
2664
|
-
x: string;
|
|
2665
|
-
y: string;
|
|
2666
|
-
};
|
|
2667
|
-
node: IElementDto;
|
|
2668
|
-
}): void;
|
|
2669
|
-
}
|
|
2670
|
-
|
|
2671
|
-
declare class TreeNodeSelectionService {
|
|
2672
|
-
private treeNodeSelectingSource;
|
|
2673
|
-
treeNodeSelecting: rxjs.Observable<{
|
|
2674
|
-
[elementId: string]: SelectingElementsType;
|
|
2675
|
-
}>;
|
|
2676
|
-
private _selectingElementsTreeData;
|
|
2677
|
-
private selectingChangedSource;
|
|
2678
|
-
selectingChanged: rxjs.Observable<SelectingElementsType[]>;
|
|
2679
|
-
flatSelectedListId: string[];
|
|
2680
|
-
constructor();
|
|
2681
|
-
setSelectingChanged(selectingChanged: SelectingElementsType[]): void;
|
|
2682
|
-
loadSelectingElements(elements: IElementDto[] | null | undefined, parent?: SelectingElementsType | null | undefined): SelectingElementsType[];
|
|
2683
|
-
getTreeData(): SelectingElementsType[] | null;
|
|
2684
|
-
private changeAllChild;
|
|
2685
|
-
private changeAllParent;
|
|
2686
|
-
changeSelecting(value: boolean, id: string, isUserChanged?: boolean): void;
|
|
2687
|
-
private getIndeterminate;
|
|
2688
|
-
changeAll(value: boolean): void;
|
|
2689
|
-
getFlatSelectedListId(selectedElements: SelectedElement[]): void;
|
|
2690
|
-
getTreeRoot(treeRoot: SelectingElementsType[]): SelectingElementsType[];
|
|
2691
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNodeSelectionService, never>;
|
|
2692
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TreeNodeSelectionService>;
|
|
2693
|
-
}
|
|
2694
2554
|
|
|
2695
2555
|
declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
2696
2556
|
private flatElementsService;
|
|
@@ -2789,7 +2649,6 @@ declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
2789
2649
|
filteredElementList: IElementDto[];
|
|
2790
2650
|
private $destroy;
|
|
2791
2651
|
private cdr;
|
|
2792
|
-
constructor(flatElementsService: FlatElementsService, selectElementService: SelectElementService, treeNodeSelectionService: TreeNodeSelectionService, expandParentGroupService: ExpandParentGroupService, keyboardOperationService: KeyboardOperationService, configurationTreeService: ConfigurationTreeService);
|
|
2793
2652
|
ngOnInit(): void;
|
|
2794
2653
|
ngAfterViewInit(): void;
|
|
2795
2654
|
ngOnDestroy(): void;
|
|
@@ -2805,7 +2664,7 @@ declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
2805
2664
|
private getFilteredList;
|
|
2806
2665
|
private initializeEventListeners;
|
|
2807
2666
|
private selectElementById;
|
|
2808
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AvaTreeComponent,
|
|
2667
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AvaTreeComponent, never>;
|
|
2809
2668
|
static ɵcmp: _angular_core.ɵɵ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>;
|
|
2810
2669
|
}
|
|
2811
2670
|
|
|
@@ -2822,6 +2681,7 @@ declare class ConfigurationInvoiceService {
|
|
|
2822
2681
|
private _quantityDecimalPlaces;
|
|
2823
2682
|
private _currencyCode;
|
|
2824
2683
|
private _colorSettings;
|
|
2684
|
+
private _alignmentOptions;
|
|
2825
2685
|
private invoiceConfigSource;
|
|
2826
2686
|
invoiceConfig$: Observable<IConfigurationInvoice>;
|
|
2827
2687
|
constructor();
|
|
@@ -2829,6 +2689,7 @@ declare class ConfigurationInvoiceService {
|
|
|
2829
2689
|
getCurrentInvoiceConfig(): IConfigurationInvoice;
|
|
2830
2690
|
getTextWordsFromConfig(): Observable<ITextWordInvoice | null>;
|
|
2831
2691
|
getPdfViewEnabledFromConfig(): Observable<boolean>;
|
|
2692
|
+
getAlignmentOptionsFromConfig(): Observable<IAlignmentOptions | null>;
|
|
2832
2693
|
private getDefaultInvoiceConfiguration;
|
|
2833
2694
|
getColorSettingsFromConfig(): Observable<IColorSettings | null>;
|
|
2834
2695
|
getDefaultTextWords(languageWord: LanguageType): ITextWordInvoice;
|
|
@@ -2846,6 +2707,7 @@ declare class InvoiceDisplayComponent implements OnInit {
|
|
|
2846
2707
|
readonly colorSettings$: Observable<IColorSettings | null>;
|
|
2847
2708
|
readonly textWords$: Observable<ITextWordInvoice | null>;
|
|
2848
2709
|
readonly pdfViewEnabled$: Observable<boolean>;
|
|
2710
|
+
readonly alignmentOptions$: Observable<IAlignmentOptions | null>;
|
|
2849
2711
|
private readonly currencyCode;
|
|
2850
2712
|
/**
|
|
2851
2713
|
* You can supply a map of strings to be used for the text in the tree. This allows you to translate
|
|
@@ -2902,7 +2764,7 @@ declare class InvoiceDisplayComponent implements OnInit {
|
|
|
2902
2764
|
private readonly linkedConfig;
|
|
2903
2765
|
invoiceTitle: _angular_core.WritableSignal<string>;
|
|
2904
2766
|
private destroyRef;
|
|
2905
|
-
constructor(
|
|
2767
|
+
constructor();
|
|
2906
2768
|
ngOnInit(): void;
|
|
2907
2769
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InvoiceDisplayComponent, never>;
|
|
2908
2770
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InvoiceDisplayComponent, "ava-invoice-display", never, { "invoice": { "alias": "invoice"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|