@dangl/angular-ava 1.1.2-beta0137 → 1.1.2-beta0146
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/fesm2022/dangl-angular-ava.mjs +100 -171
- package/fesm2022/dangl-angular-ava.mjs.map +1 -1
- package/lib/invoice/components/invoice-display/invoice-display.component.d.ts +7 -11
- package/lib/invoice/components/invoice-documents/invoice-documents.component.d.ts +21 -0
- package/lib/invoice/model/configInvoice.model.d.ts +4 -3
- package/lib/invoice/model/index.d.ts +2 -2
- package/lib/invoice/services/configuration-invoice.service.d.ts +18 -0
- package/package.json +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { IConfigurationInvoice, ITextWordInvoice } from '../../model';
|
|
3
|
+
import { ConfigurationInvoiceService } from 'projects/angular-ava/src/lib/invoice/services/configuration-invoice.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class InvoiceDisplayComponent {
|
|
6
|
+
private configurationInvoiceService;
|
|
5
7
|
invoice: any;
|
|
6
|
-
|
|
8
|
+
readonly textWords$: Observable<ITextWordInvoice | null>;
|
|
7
9
|
/**
|
|
8
10
|
* You can supply a map of strings to be used for the text in the tree. This allows you to translate
|
|
9
11
|
* the text in the tree to other languages.
|
|
@@ -55,14 +57,8 @@ export declare class InvoiceDisplayComponent {
|
|
|
55
57
|
*
|
|
56
58
|
* }
|
|
57
59
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
isAttachmentDownload: boolean;
|
|
61
|
-
constructor();
|
|
62
|
-
download(documentValue: SupportingDocument): void;
|
|
63
|
-
downloadAny(documentValue: SupportingDocument): void;
|
|
64
|
-
downloadLink(documentValue: SupportingDocument): Promise<void>;
|
|
65
|
-
saveAs(blob: Blob, fileName: string): void;
|
|
60
|
+
set config(configObject: IConfigurationInvoice);
|
|
61
|
+
constructor(configurationInvoiceService: ConfigurationInvoiceService);
|
|
66
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceDisplayComponent, never>;
|
|
67
63
|
static ɵcmp: i0.ɵɵComponentDeclaration<InvoiceDisplayComponent, "ava-invoice-display", never, { "invoice": { "alias": "invoice"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
68
64
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { SupportingDocument } from 'projects/angular-ava/src/lib/invoice/model/invoice-models';
|
|
4
|
+
import { ITextWordInvoice } from 'projects/angular-ava/src/lib/invoice/model/invoice-words.model';
|
|
5
|
+
import { ConfigurationInvoiceService } from 'projects/angular-ava/src/lib/invoice/services/configuration-invoice.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class InvoiceDocumentsComponent implements OnInit {
|
|
8
|
+
private configurationInvoiceService;
|
|
9
|
+
documents: SupportingDocument[];
|
|
10
|
+
private destroyRef;
|
|
11
|
+
readonly textWords$: Observable<ITextWordInvoice | null>;
|
|
12
|
+
pdfViewEnabled: boolean;
|
|
13
|
+
constructor(configurationInvoiceService: ConfigurationInvoiceService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
download(documentValue: SupportingDocument): void;
|
|
16
|
+
private downloadAny;
|
|
17
|
+
private downloadLink;
|
|
18
|
+
private saveAs;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceDocumentsComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InvoiceDocumentsComponent, "ava-invoice-documents", never, { "documents": { "alias": "documents"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ITextWordInvoice } from './invoice-words.model';
|
|
2
|
-
export interface
|
|
3
|
-
textWords?: ITextWordInvoice;
|
|
4
|
-
|
|
2
|
+
export interface IConfigurationInvoice {
|
|
3
|
+
textWords?: ITextWordInvoice | null;
|
|
4
|
+
pdfViewEnabled?: boolean;
|
|
5
|
+
language?: 'en' | 'de';
|
|
5
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IConfigurationInvoice } 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,
|
|
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 };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { IConfigurationInvoice } from 'projects/angular-ava/src/lib/invoice/model/configInvoice.model';
|
|
3
|
+
import { ITextWordInvoice } from 'projects/angular-ava/src/public-api';
|
|
4
|
+
export declare class ConfigurationInvoiceService {
|
|
5
|
+
private _textWords;
|
|
6
|
+
private _pdfViewEnabled;
|
|
7
|
+
private _language;
|
|
8
|
+
private invoiceConfigSource;
|
|
9
|
+
invoiceConfig$: Observable<IConfigurationInvoice>;
|
|
10
|
+
constructor();
|
|
11
|
+
setInvoiceConfig(value: IConfigurationInvoice): void;
|
|
12
|
+
getCurrentInvoiceConfig(): IConfigurationInvoice;
|
|
13
|
+
getTextWordsFromConfig(): Observable<ITextWordInvoice | null>;
|
|
14
|
+
getPdfViewEnabledFromConfig(): Observable<boolean>;
|
|
15
|
+
getLanguageFromConfig(): Observable<'en' | 'de'>;
|
|
16
|
+
private getDefaultInvoiceConfiguration;
|
|
17
|
+
getDefaulTextWords(language: 'en' | 'de'): ITextWordInvoice;
|
|
18
|
+
}
|