@dangl/angular-ava 1.2.3-beta0010 → 1.2.3-beta0019
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 +4 -1
- package/fesm2022/dangl-angular-ava.mjs +269 -154
- package/fesm2022/dangl-angular-ava.mjs.map +1 -1
- package/lib/ava-tree/components/table-structure/table-structure.component.d.ts +1 -1
- package/lib/ava-tree/constants/defaultTextWords.d.ts +2 -0
- package/lib/ava-tree/model/config-tree.model.d.ts +2 -1
- package/lib/ava-tree/services/configuration-tree.service.d.ts +3 -0
- package/lib/invoice/components/invoice-display/invoice-display.component.d.ts +3 -0
- package/lib/invoice/constants/index.d.ts +2 -1
- package/lib/invoice/constants/language.d.ts +8 -0
- package/lib/invoice/model/configInvoice.model.d.ts +3 -1
- package/lib/invoice/model/index.d.ts +2 -2
- package/lib/invoice/pipes/currency-plus.pipe.d.ts +11 -0
- package/lib/invoice/pipes/number-plus.pipe.d.ts +11 -0
- package/lib/invoice/pipes/percent-plus.pipe.d.ts +11 -0
- package/lib/invoice/services/configuration-invoice.service.d.ts +10 -5
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ export declare class TableStructureComponent implements OnInit, OnDestroy {
|
|
|
11
11
|
selectElementService: SelectElementService;
|
|
12
12
|
private treeNodeSelectionService;
|
|
13
13
|
private cdr;
|
|
14
|
-
|
|
14
|
+
configurationTreeService: ConfigurationTreeService;
|
|
15
15
|
filteredElementList: IElementDto[];
|
|
16
16
|
displayedColumns: string[];
|
|
17
17
|
private isAllowOneClick;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LanguageType } from '../../invoice/model';
|
|
1
2
|
import { IElementDto } from './ava-models';
|
|
2
3
|
import { IFunctionViewLine } from './function-view-line.model';
|
|
3
4
|
import { SelectedElement } from './selecting.model';
|
|
@@ -48,7 +49,7 @@ export interface IConfigurationTree {
|
|
|
48
49
|
/**
|
|
49
50
|
* You can supply a map of strings to be used for the text in the tree. This allows you to translate the text in the tree to other languages. There are also 'DEFAULT_TEXT_WORDS' and 'germanTextsAva' supplied with the package. You may optionally just submit the string values 'en' or 'de' to use the default text words for English or German.
|
|
50
51
|
*/
|
|
51
|
-
textWords?: ITextWords |
|
|
52
|
+
textWords?: ITextWords | LanguageType;
|
|
52
53
|
/**
|
|
53
54
|
* Defaults to true. If this is enabled, then navigating in the tree with the keyboard only works if the mouse is over the tree area. This limitation is useful if you have multiple trees or other components that might be using keyboard input.
|
|
54
55
|
*/
|
|
@@ -6,6 +6,7 @@ import { SelectedElement } from '../model/selecting.model';
|
|
|
6
6
|
import { TableColumnType } from '../model/tableColumnType';
|
|
7
7
|
import { IKeyboardOperationConfig } from '../services/keyboard-operation.service';
|
|
8
8
|
export declare class ConfigurationTreeService {
|
|
9
|
+
private _language;
|
|
9
10
|
private _textWords;
|
|
10
11
|
private _indent;
|
|
11
12
|
private _functionView;
|
|
@@ -23,6 +24,7 @@ export declare class ConfigurationTreeService {
|
|
|
23
24
|
setTreeConfig(value: IConfigurationTree): void;
|
|
24
25
|
getCurrentTreeConfig(): IConfigurationTree | null;
|
|
25
26
|
getTextWordsFromConfig(): Observable<ITextWords | null>;
|
|
27
|
+
private selectTextWords;
|
|
26
28
|
getIndentFromConfig(): Observable<string>;
|
|
27
29
|
getFunctionViewFromConfig(): Observable<IFunctionViewLine[]>;
|
|
28
30
|
getSelectedColorFromConfig(): Observable<string>;
|
|
@@ -34,4 +36,5 @@ export declare class ConfigurationTreeService {
|
|
|
34
36
|
getCustomKeyboardOperationConfigFromConfig(): Observable<IKeyboardOperationConfig | null>;
|
|
35
37
|
getListFilterFuncFromConfig(): Observable<FilterFunction[]>;
|
|
36
38
|
private getDefaultConfiguration;
|
|
39
|
+
get locale(): string;
|
|
37
40
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SimpleChanges } from '@angular/core';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
3
|
import { IConfigurationInvoice, ITextWordInvoice } from '../../model';
|
|
3
4
|
import { Invoice } from '../../model';
|
|
@@ -63,6 +64,8 @@ export declare class InvoiceDisplayComponent {
|
|
|
63
64
|
*/
|
|
64
65
|
set config(configObject: IConfigurationInvoice);
|
|
65
66
|
constructor(configurationInvoiceService: ConfigurationInvoiceService);
|
|
67
|
+
ngOnChanges(change: SimpleChanges): void;
|
|
68
|
+
getCurrencyCode(): void;
|
|
66
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceDisplayComponent, never>;
|
|
67
70
|
static ɵcmp: i0.ɵɵComponentDeclaration<InvoiceDisplayComponent, "ava-invoice-display", never, { "invoice": { "alias": "invoice"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
68
71
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { DEFAULT_TEXT_WORD_INVOICE, germanTextsInvoice } from './defaultTextWordInvoice';
|
|
2
|
-
|
|
2
|
+
import { DEFAULT_CURRENCY_CODE, DEFAULT_DIGITS_INFO, DEFAULT_LANGUAGE, localeTypes } from './language';
|
|
3
|
+
export { DEFAULT_TEXT_WORD_INVOICE, germanTextsInvoice, DEFAULT_DIGITS_INFO, DEFAULT_CURRENCY_CODE, DEFAULT_LANGUAGE, localeTypes };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LanguageType } from '../model';
|
|
2
|
+
export declare const DEFAULT_DIGITS_INFO: string;
|
|
3
|
+
export declare const DEFAULT_CURRENCY_CODE: string;
|
|
4
|
+
export declare const DEFAULT_LANGUAGE: LanguageType;
|
|
5
|
+
export declare const localeTypes: {
|
|
6
|
+
en: string;
|
|
7
|
+
de: string;
|
|
8
|
+
};
|
|
@@ -2,5 +2,7 @@ import { ITextWordInvoice } from './invoice-words.model';
|
|
|
2
2
|
export interface IConfigurationInvoice {
|
|
3
3
|
textWords?: ITextWordInvoice | null;
|
|
4
4
|
pdfViewEnabled?: boolean;
|
|
5
|
-
language?:
|
|
5
|
+
language?: LanguageType;
|
|
6
|
+
quantityDecimalPlaces?: string;
|
|
6
7
|
}
|
|
8
|
+
export type LanguageType = 'en' | 'de';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IConfigurationInvoice } from './configInvoice.model';
|
|
1
|
+
import { IConfigurationInvoice, LanguageType } from './configInvoice.model';
|
|
2
2
|
import { InvoiceType, References, PreviousInvoice, Organization, Payee, InvoiceNote, InvoicePeriod, InvoiceTotals, PaymentInstructions, PaymentMeans, SupportingDocument, AttachmentMimeType, VatBreakdown, VatCategory, InvoiceAllowance, InvoiceCharge, InvoiceLineItem, LineItemAllowance, LineItemCharge, LineItemPriceDetail, LineItemVatInformation, LineItemInformation, LineItemAttribute, Invoice } from './invoice-models';
|
|
3
3
|
import { ITextWordInvoice } from './invoice-words.model';
|
|
4
|
-
export { ITextWordInvoice, InvoiceType, References, PreviousInvoice, Organization, Payee, InvoiceNote, InvoicePeriod, InvoiceTotals, PaymentInstructions, PaymentMeans, SupportingDocument, AttachmentMimeType, VatBreakdown, VatCategory, InvoiceAllowance, InvoiceCharge, InvoiceLineItem, LineItemAllowance, LineItemCharge, LineItemPriceDetail, LineItemVatInformation, LineItemInformation, LineItemAttribute, Invoice, IConfigurationInvoice };
|
|
4
|
+
export { ITextWordInvoice, InvoiceType, References, PreviousInvoice, Organization, Payee, InvoiceNote, InvoicePeriod, InvoiceTotals, PaymentInstructions, PaymentMeans, SupportingDocument, AttachmentMimeType, VatBreakdown, VatCategory, InvoiceAllowance, InvoiceCharge, InvoiceLineItem, LineItemAllowance, LineItemCharge, LineItemPriceDetail, LineItemVatInformation, LineItemInformation, LineItemAttribute, Invoice, IConfigurationInvoice, LanguageType };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CurrencyPipe } from '@angular/common';
|
|
2
|
+
import { PipeTransform } from '@angular/core';
|
|
3
|
+
import { ConfigurationInvoiceService } from '../services/configuration-invoice.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CurrencyPlusPipe implements PipeTransform {
|
|
6
|
+
currencyPipe: CurrencyPipe;
|
|
7
|
+
configurationInvoiceService: ConfigurationInvoiceService;
|
|
8
|
+
transform(money?: number): string | null;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyPlusPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CurrencyPlusPipe, "currencyPlus", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DecimalPipe } from '@angular/common';
|
|
2
|
+
import { PipeTransform } from '@angular/core';
|
|
3
|
+
import { ConfigurationInvoiceService } from '../services/configuration-invoice.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NumberPlusPipe implements PipeTransform {
|
|
6
|
+
currencyPipe: DecimalPipe;
|
|
7
|
+
configurationInvoiceService: ConfigurationInvoiceService;
|
|
8
|
+
transform(value?: number): string | null;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberPlusPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NumberPlusPipe, "numberPlus", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PercentPipe } from '@angular/common';
|
|
2
|
+
import { PipeTransform } from '@angular/core';
|
|
3
|
+
import { ConfigurationInvoiceService } from '../services/configuration-invoice.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PercentPlusPipe implements PipeTransform {
|
|
6
|
+
percentPipe: PercentPipe;
|
|
7
|
+
configurationInvoiceService: ConfigurationInvoiceService;
|
|
8
|
+
transform(value?: number, digitsInfo?: string): string | null;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PercentPlusPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PercentPlusPipe, "percentPlus", true>;
|
|
11
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { IConfigurationInvoice } from '../model
|
|
3
|
-
import { ITextWordInvoice } from '../model/invoice-words.model';
|
|
2
|
+
import { IConfigurationInvoice, ITextWordInvoice, LanguageType } from '../model';
|
|
4
3
|
export declare class ConfigurationInvoiceService {
|
|
4
|
+
private _language;
|
|
5
5
|
private _textWords;
|
|
6
6
|
private _pdfViewEnabled;
|
|
7
|
-
private
|
|
7
|
+
private _quantityDecimalPlaces;
|
|
8
|
+
private _currencyCode;
|
|
8
9
|
private invoiceConfigSource;
|
|
9
10
|
invoiceConfig$: Observable<IConfigurationInvoice>;
|
|
10
11
|
constructor();
|
|
@@ -12,7 +13,11 @@ export declare class ConfigurationInvoiceService {
|
|
|
12
13
|
getCurrentInvoiceConfig(): IConfigurationInvoice;
|
|
13
14
|
getTextWordsFromConfig(): Observable<ITextWordInvoice | null>;
|
|
14
15
|
getPdfViewEnabledFromConfig(): Observable<boolean>;
|
|
15
|
-
getLanguageFromConfig(): Observable<'en' | 'de'>;
|
|
16
16
|
private getDefaultInvoiceConfiguration;
|
|
17
|
-
|
|
17
|
+
getDefaultTextWords(languageWord: LanguageType): ITextWordInvoice;
|
|
18
|
+
get locale(): string;
|
|
19
|
+
set quantityDecimalPlaces(value: string);
|
|
20
|
+
get quantityDecimalPlaces(): string;
|
|
21
|
+
set currencyCode(value: string);
|
|
22
|
+
get currencyCode(): string;
|
|
18
23
|
}
|