@dangl/angular-ava 1.3.0-beta0038 → 1.3.0-beta0042

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.
@@ -2,12 +2,14 @@ import { OnInit } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { IConfigurationInvoice, ITextWordInvoice } from '../../model';
4
4
  import { Invoice } from '../../model';
5
+ import { IColorSettings } from '../../model/configInvoice.model';
5
6
  import { ConfigurationInvoiceService } from '../../services/configuration-invoice.service';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class InvoiceDisplayComponent implements OnInit {
8
9
  private configurationInvoiceService;
9
10
  private transformFn;
10
11
  readonly invoice: import("@angular/core").InputSignalWithTransform<Invoice | null, Invoice>;
12
+ readonly colorSettings$: Observable<IColorSettings | null>;
11
13
  readonly textWords$: Observable<ITextWordInvoice | null>;
12
14
  readonly pdfViewEnabled$: Observable<boolean>;
13
15
  private readonly currencyCode;
@@ -1,6 +1,7 @@
1
1
  import { AfterViewInit, OnInit } from '@angular/core';
2
2
  import { MatExpansionPanel } from '@angular/material/expansion';
3
3
  import { Observable } from 'rxjs';
4
+ import { IColorSettings } from '../../model/configInvoice.model';
4
5
  import { SupportingDocument } from '../../model/invoice-models';
5
6
  import { ITextWordInvoice } from '../../model/invoice-words.model';
6
7
  import { ConfigurationInvoiceService } from '../../services/configuration-invoice.service';
@@ -11,6 +12,7 @@ export declare class InvoiceDocumentsComponent implements OnInit, AfterViewInit
11
12
  documentsPanel: MatExpansionPanel | null;
12
13
  private destroyRef;
13
14
  readonly textWords$: Observable<ITextWordInvoice | null>;
15
+ readonly colorSettings$: Observable<IColorSettings | null>;
14
16
  pdfViewEnabled: boolean;
15
17
  constructor(configurationInvoiceService: ConfigurationInvoiceService);
16
18
  ngOnInit(): void;
@@ -4,5 +4,10 @@ export interface IConfigurationInvoice {
4
4
  pdfViewEnabled?: boolean;
5
5
  language?: LanguageType;
6
6
  quantityDecimalPlaces?: string;
7
+ colorSettings?: IColorSettings | null;
8
+ }
9
+ export interface IColorSettings {
10
+ backgroundColor: string;
11
+ textColor: string;
7
12
  }
8
13
  export type LanguageType = 'en' | 'de';
@@ -1,11 +1,13 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { IConfigurationInvoice, ITextWordInvoice, LanguageType } from '../model';
3
+ import { IColorSettings } from 'projects/angular-ava/src/lib/invoice/model/configInvoice.model';
3
4
  export declare class ConfigurationInvoiceService {
4
5
  private _language;
5
6
  private _textWords;
6
7
  private _pdfViewEnabled;
7
8
  private _quantityDecimalPlaces;
8
9
  private _currencyCode;
10
+ private _colorSettings;
9
11
  private invoiceConfigSource;
10
12
  invoiceConfig$: Observable<IConfigurationInvoice>;
11
13
  constructor();
@@ -14,6 +16,7 @@ export declare class ConfigurationInvoiceService {
14
16
  getTextWordsFromConfig(): Observable<ITextWordInvoice | null>;
15
17
  getPdfViewEnabledFromConfig(): Observable<boolean>;
16
18
  private getDefaultInvoiceConfiguration;
19
+ getColorSettingsFromConfig(): Observable<IColorSettings | null>;
17
20
  getDefaultTextWords(languageWord: LanguageType): ITextWordInvoice;
18
21
  get locale(): string;
19
22
  set quantityDecimalPlaces(value: string);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dangl/angular-ava",
3
- "version": "1.3.0-beta0038",
3
+ "version": "1.3.0-beta0042",
4
4
  "keywords": [
5
5
  "angular",
6
6
  "ava",