@dangl/angular-ava 1.2.3-beta0010 → 1.3.0-beta0032

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.
@@ -11,7 +11,7 @@ export declare class TableStructureComponent implements OnInit, OnDestroy {
11
11
  selectElementService: SelectElementService;
12
12
  private treeNodeSelectionService;
13
13
  private cdr;
14
- private configurationTreeService;
14
+ configurationTreeService: ConfigurationTreeService;
15
15
  filteredElementList: IElementDto[];
16
16
  displayedColumns: string[];
17
17
  private isAllowOneClick;
@@ -1,4 +1,6 @@
1
+ import { LanguageType } from '../../invoice/model';
1
2
  export interface ITextWords {
3
+ language: LanguageType;
2
4
  textSearch: string;
3
5
  textNothing: string;
4
6
  textNothingFiltered: string;
@@ -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 | 'en' | 'de';
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,15 +1,16 @@
1
+ import { OnInit } from '@angular/core';
1
2
  import { Observable } from 'rxjs';
2
3
  import { IConfigurationInvoice, ITextWordInvoice } from '../../model';
3
4
  import { Invoice } from '../../model';
4
5
  import { ConfigurationInvoiceService } from '../../services/configuration-invoice.service';
5
6
  import * as i0 from "@angular/core";
6
- export type WindowPlus = Window & typeof globalThis & {
7
- InvoiceGlobalVariable: Invoice;
8
- };
9
- export declare class InvoiceDisplayComponent {
7
+ export declare class InvoiceDisplayComponent implements OnInit {
10
8
  private configurationInvoiceService;
11
- invoice: Invoice;
9
+ private transformFn;
10
+ readonly invoice: import("@angular/core").InputSignalWithTransform<Invoice | null, Invoice>;
12
11
  readonly textWords$: Observable<ITextWordInvoice | null>;
12
+ readonly pdfViewEnabled$: Observable<boolean>;
13
+ private readonly currencyCode;
13
14
  /**
14
15
  * You can supply a map of strings to be used for the text in the tree. This allows you to translate
15
16
  * the text in the tree to other languages.
@@ -61,8 +62,10 @@ export declare class InvoiceDisplayComponent {
61
62
  *
62
63
  * }
63
64
  */
64
- set config(configObject: IConfigurationInvoice);
65
+ readonly config: import("@angular/core").InputSignalWithTransform<IConfigurationInvoice | null, IConfigurationInvoice>;
66
+ private readonly linkedConfig;
65
67
  constructor(configurationInvoiceService: ConfigurationInvoiceService);
68
+ ngOnInit(): void;
66
69
  static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceDisplayComponent, never>;
67
- static ɵcmp: i0.ɵɵComponentDeclaration<InvoiceDisplayComponent, "ava-invoice-display", never, { "invoice": { "alias": "invoice"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<InvoiceDisplayComponent, "ava-invoice-display", never, { "invoice": { "alias": "invoice"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
68
71
  }
@@ -7,7 +7,7 @@ import { ConfigurationInvoiceService } from '../../services/configuration-invoic
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class InvoiceDocumentsComponent implements OnInit, AfterViewInit {
9
9
  private configurationInvoiceService;
10
- documents: SupportingDocument[];
10
+ documents: import("@angular/core").InputSignal<SupportingDocument[]>;
11
11
  documentsPanel: MatExpansionPanel | null;
12
12
  private destroyRef;
13
13
  readonly textWords$: Observable<ITextWordInvoice | null>;
@@ -20,5 +20,5 @@ export declare class InvoiceDocumentsComponent implements OnInit, AfterViewInit
20
20
  private downloadLink;
21
21
  private saveAs;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceDocumentsComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<InvoiceDocumentsComponent, "ava-invoice-documents", never, { "documents": { "alias": "documents"; "required": false; }; }, {}, never, never, true, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<InvoiceDocumentsComponent, "ava-invoice-documents", never, { "documents": { "alias": "documents"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
24
24
  }
@@ -1,2 +1,3 @@
1
1
  import { DEFAULT_TEXT_WORD_INVOICE, germanTextsInvoice } from './defaultTextWordInvoice';
2
- export { DEFAULT_TEXT_WORD_INVOICE, germanTextsInvoice };
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?: 'en' | 'de';
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/configInvoice.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 _language;
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
- getDefaulTextWords(language: 'en' | 'de'): ITextWordInvoice;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dangl/angular-ava",
3
- "version": "1.2.3-beta0010",
3
+ "version": "1.3.0-beta0032",
4
4
  "keywords": [
5
5
  "angular",
6
6
  "ava",