@dangl/angular-ava 1.1.2-beta0131 → 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.
@@ -1,14 +1,12 @@
1
- import { AfterViewInit, ApplicationRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ITextWords } from '../../constants/defaultTextWords';
3
3
  import { ContextMenuDataType, IConfigurationTreeType, IElementDto, IFunctionViewLine, ModeViewType, ProjectDto, SelectedElement, ServiceSpecificationDto, TableColumnType } from '../../model';
4
- import { DynamicComponentService } from '../../services/dynamic-component.service';
5
4
  import { ExpandParentGroupService } from '../../services/expand-parent-group.service';
6
5
  import { FlatElementsService } from '../../services/flat-elements.service';
7
6
  import { IKeyboardOperationConfig, KeyboardOperationService } from '../../services/keyboard-operation.service';
8
7
  import { SelectElementService } from '../../services/select-element.service';
9
8
  import { TreeNodeSelectionService } from '../../services/tree-node-selection.service';
10
9
  import { TreeWordsService } from '../../services/tree-words.service';
11
- import { TreeHoverTooltipComponent } from '../tree-hover-tooltip/tree-hover-tooltip.component';
12
10
  import * as i0 from "@angular/core";
13
11
  export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
14
12
  private flatElementsService;
@@ -18,8 +16,6 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
18
16
  private keyboardOperationService;
19
17
  private ngZone;
20
18
  private treeWordsService;
21
- private dynamicComponentService;
22
- private appRef;
23
19
  /**
24
20
  * This is the main data element for the tree structure. You should supply a ProjectDto with
25
21
  * exactly one service specification in it.
@@ -165,7 +161,7 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
165
161
  filteredElementList: IElementDto[];
166
162
  private $destroy;
167
163
  private cdr;
168
- constructor(flatElementsService: FlatElementsService, selectElementService: SelectElementService, treeNodeSelectionService: TreeNodeSelectionService, expandParentGroupService: ExpandParentGroupService, keyboardOperationService: KeyboardOperationService, ngZone: NgZone, treeWordsService: TreeWordsService, dynamicComponentService: DynamicComponentService<TreeHoverTooltipComponent>, appRef: ApplicationRef);
164
+ constructor(flatElementsService: FlatElementsService, selectElementService: SelectElementService, treeNodeSelectionService: TreeNodeSelectionService, expandParentGroupService: ExpandParentGroupService, keyboardOperationService: KeyboardOperationService, ngZone: NgZone, treeWordsService: TreeWordsService);
169
165
  ngOnInit(): void;
170
166
  ngAfterViewInit(): void;
171
167
  ngOnChanges(changes: SimpleChanges): void;
@@ -183,6 +179,6 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
183
179
  selectOrDeselectAll(value: boolean): void;
184
180
  private getFilteredList;
185
181
  private initializeEventListeners;
186
- static ɵfac: i0.ɵɵFactoryDeclaration<AvaTreeComponent, [{ self: true; }, { self: true; }, { self: true; }, { self: true; }, { self: true; }, null, null, null, null]>;
182
+ static ɵfac: i0.ɵɵFactoryDeclaration<AvaTreeComponent, [{ self: true; }, { self: true; }, { self: true; }, { self: true; }, { self: true; }, null, null]>;
187
183
  static ɵcmp: i0.ɵɵComponentDeclaration<AvaTreeComponent, "ava-tree", never, { "project": { "alias": "project"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "selectClick": "selectClick"; "selectDblClick": "selectDblClick"; "contextMenuEvent": "contextMenuEvent"; "selectedElementsChanged": "selectedElementsChanged"; }, never, never, true, never>;
188
184
  }
@@ -1,29 +1,18 @@
1
- import { ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { IElementDto } from '../../model';
3
3
  import { SelectElementService } from '../../services/select-element.service';
4
4
  import * as i0 from "@angular/core";
5
- type TimeoutType = ReturnType<typeof setTimeout>;
6
5
  export declare class ListStructureComponent implements OnDestroy, OnInit {
7
6
  selectElementService: SelectElementService;
8
7
  filteredElementList: IElementDto[];
9
8
  isSelectionMode: boolean;
10
9
  selectedColor: string | null;
11
10
  allowDblClick: boolean;
12
- templates: QueryList<ElementRef<HTMLElement>>;
13
- onWindowScroll(): void;
14
11
  selectedElement: IElementDto | null;
15
12
  private $destroy;
16
- private treeHoverTooltipService;
17
- allowShow: TimeoutType | null;
18
- currentElement: HTMLElement | null;
19
13
  constructor(selectElementService: SelectElementService);
20
14
  ngOnInit(): void;
21
15
  ngOnDestroy(): void;
22
- onMouseEnter(event: MouseEvent): void;
23
- onMouseLeave(): void;
24
- onMouseUp(event: MouseEvent): void;
25
- onMouseMove(event: MouseEvent): void;
26
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ListStructureComponent, never>;
27
17
  static ɵcmp: i0.ɵɵComponentDeclaration<ListStructureComponent, "ava-list-structure", never, { "filteredElementList": { "alias": "filteredElementList"; "required": false; }; "isSelectionMode": { "alias": "isSelectionMode"; "required": false; }; "selectedColor": { "alias": "selectedColor"; "required": false; }; "allowDblClick": { "alias": "allowDblClick"; "required": false; }; }, {}, never, never, true, never>;
28
18
  }
29
- export {};
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { IElementDto } from '../../model';
3
3
  import { SelectingElementsType } from '../../model/selecting.model';
4
4
  import { SelectElementService } from '../../services/select-element.service';
@@ -14,6 +14,9 @@ export declare class TreeItemComponent implements OnInit, OnDestroy {
14
14
  };
15
15
  isSelectionMode: boolean;
16
16
  allowDblClick: boolean;
17
+ isSelect: boolean;
18
+ backgroundColor: string;
19
+ textElement: ElementRef<HTMLElement>;
17
20
  selectedElement: IElementDto | null;
18
21
  preselectedElement: IElementDto | null;
19
22
  private isAllowOneClick;
@@ -31,5 +34,5 @@ export declare class TreeItemComponent implements OnInit, OnDestroy {
31
34
  openContextMenu(event: MouseEvent): void;
32
35
  changeSelecting(element: IElementDto, isSelected: boolean): void;
33
36
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeItemComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<TreeItemComponent, "ava-tree-item", never, { "element": { "alias": "element"; "required": false; }; "expansionState": { "alias": "expansionState"; "required": false; }; "isSelectionMode": { "alias": "isSelectionMode"; "required": false; }; "allowDblClick": { "alias": "allowDblClick"; "required": false; }; }, {}, never, never, true, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<TreeItemComponent, "ava-tree-item", never, { "element": { "alias": "element"; "required": false; }; "expansionState": { "alias": "expansionState"; "required": false; }; "isSelectionMode": { "alias": "isSelectionMode"; "required": false; }; "allowDblClick": { "alias": "allowDblClick"; "required": false; }; "isSelect": { "alias": "isSelect"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; }, {}, never, never, true, never>;
35
38
  }
@@ -1,4 +1,4 @@
1
- import { ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { IElementDto } from '../../model';
3
3
  import { SelectElementService } from '../../services/select-element.service';
4
4
  import * as i0 from "@angular/core";
@@ -12,22 +12,12 @@ export declare class TreeNodeComponent implements OnDestroy, OnInit {
12
12
  isSelectionMode: boolean;
13
13
  selectedColor: string | null;
14
14
  allowDblClick: boolean;
15
- templates: QueryList<ElementRef<HTMLElement>>;
16
- onWindowScroll(): void;
17
- onCLick(): void;
18
- private treeHoverTooltipService;
19
15
  selectedElement: IElementDto | null;
20
16
  private $destroy;
21
- private allowShow;
22
- private currentElement;
23
17
  constructor(selectElementService: SelectElementService);
24
18
  ngOnInit(): void;
25
19
  ngOnDestroy(): void;
26
20
  expand(element: IElementDto): void;
27
- onMouseEnter(event: MouseEvent): void;
28
- onMouseLeave(): void;
29
- onMouseUp(event: MouseEvent): void;
30
- onMouseMove(event: MouseEvent): void;
31
21
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeNodeComponent, never>;
32
22
  static ɵcmp: i0.ɵɵComponentDeclaration<TreeNodeComponent, "ava-tree-node", never, { "elementList": { "alias": "elementList"; "required": false; }; "indent": { "alias": "indent"; "required": false; }; "expansionState": { "alias": "expansionState"; "required": false; }; "isSelectionMode": { "alias": "isSelectionMode"; "required": false; }; "selectedColor": { "alias": "selectedColor"; "required": false; }; "allowDblClick": { "alias": "allowDblClick"; "required": false; }; }, {}, never, never, true, never>;
33
23
  }
@@ -0,0 +1,18 @@
1
+ import { TreeItemComponent } from '../components/tree-item/tree-item.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class HoverEffectDirective {
4
+ itemText: TreeItemComponent;
5
+ private allowShow;
6
+ private treeHoverTooltipService;
7
+ onMouseEnter(): void;
8
+ onMouseUp(): void;
9
+ onWheel(): void;
10
+ onScroll(): void;
11
+ onMouseLeave(): void;
12
+ onKeyDown(): void;
13
+ onMouseOut(): void;
14
+ onMouseMove(event: MouseEvent): void;
15
+ private hide;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<HoverEffectDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HoverEffectDirective, "[avaHoverEffect]", never, { "itemText": { "alias": "avaHoverEffect"; "required": false; }; }, {}, never, never, true, never>;
18
+ }
@@ -1,15 +1,7 @@
1
- import { ElementRef } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class TreeHoverTooltipService {
4
- private templateSource;
5
- template$: import("rxjs").Observable<ElementRef<HTMLElement> | null>;
6
- private tooltipVisibleSource;
7
- tooltipVisible$: import("rxjs").Observable<boolean>;
8
- showTooltip(template: ElementRef<HTMLElement> | null): void;
9
- hideHoverTooltip(): void;
10
- private setTooltipVisable;
11
- showElementOver(element: HTMLElement | null): void;
12
- hideElementOver(element: HTMLElement | null): void;
3
+ showElementOver(text: HTMLElement | null): void;
4
+ hideElementOver(text: HTMLElement | null): void;
13
5
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeHoverTooltipService, never>;
14
6
  static ɵprov: i0.ɵɵInjectableDeclaration<TreeHoverTooltipService>;
15
7
  }
@@ -1,9 +1,11 @@
1
- import { IConfigurationInvoiceType, ITextWordInvoice } from '../../model';
2
- import { SupportingDocument } from '../../model';
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
- private _textWords;
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
- get textWords(): ITextWordInvoice;
59
- set config(configObject: IConfigurationInvoiceType);
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 IConfigurationInvoiceType {
3
- textWords?: ITextWordInvoice;
4
- isAttachmentDownload?: boolean;
2
+ export interface IConfigurationInvoice {
3
+ textWords?: ITextWordInvoice | null;
4
+ pdfViewEnabled?: boolean;
5
+ language?: 'en' | 'de';
5
6
  }
@@ -1,4 +1,4 @@
1
- import { IConfigurationInvoiceType } from './configInvoice.model';
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, IConfigurationInvoiceType };
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dangl/angular-ava",
3
- "version": "1.1.2-beta0131",
3
+ "version": "1.1.2-beta0146",
4
4
  "keywords": [
5
5
  "angular",
6
6
  "ava",
@@ -1,16 +0,0 @@
1
- import { ChangeDetectorRef, DestroyRef, ElementRef, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TreeHoverTooltipComponent implements OnInit {
4
- container: ElementRef;
5
- destroyRef: DestroyRef;
6
- cdr: ChangeDetectorRef;
7
- private treeHoverTooltipService;
8
- private renderer;
9
- positionY: number;
10
- positionX: number;
11
- tooltipVisible$: import("rxjs").Observable<boolean>;
12
- ngOnInit(): void;
13
- removeAllChildElements(): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<TreeHoverTooltipComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<TreeHoverTooltipComponent, "ava-tree-hover-tooltip", never, {}, {}, never, never, true, never>;
16
- }
@@ -1,11 +0,0 @@
1
- import { ApplicationRef, Type } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class DynamicComponentService<C> {
4
- private existingComponentRef;
5
- private appRef;
6
- constructor();
7
- createComponent(appRef: ApplicationRef, component: Type<C>): void;
8
- destroyExistingComponent(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentService<any>, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentService<any>>;
11
- }