@dangl/angular-ava 1.1.2-beta0113 → 1.1.2-beta0125

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.
Files changed (46) hide show
  1. package/fesm2022/dangl-angular-ava.mjs +242 -216
  2. package/fesm2022/dangl-angular-ava.mjs.map +1 -1
  3. package/lib/ava-tree/{tree/components → components}/ava-tree/ava-tree.component.d.ts +3 -3
  4. package/lib/ava-tree/constants/index.d.ts +4 -0
  5. package/lib/ava-tree/{tree/directives → directives}/save-changing-view.directive.d.ts +2 -2
  6. package/lib/ava-tree/model/config-tree.model.d.ts +25 -0
  7. package/lib/ava-tree/model/index.d.ts +8 -0
  8. package/lib/{ava-tree/invoice → invoice/components}/invoice-display/invoice-display.component.d.ts +4 -4
  9. package/lib/invoice/constants/index.d.ts +2 -0
  10. package/lib/invoice/model/configInvoice.model.d.ts +4 -0
  11. package/lib/invoice/model/index.d.ts +4 -0
  12. package/lib/{ava-tree/tree → invoice}/model/invoice-models.d.ts +1 -1
  13. package/package.json +1 -1
  14. package/public-api.d.ts +6 -4
  15. package/lib/ava-tree/tree/constants/index.d.ts +0 -5
  16. package/lib/ava-tree/tree/model/index.d.ts +0 -9
  17. /package/lib/ava-tree/{tree/components → components}/list-structure/list-structure.component.d.ts +0 -0
  18. /package/lib/ava-tree/{tree/components → components}/table-structure/table-structure.component.d.ts +0 -0
  19. /package/lib/ava-tree/{tree/components → components}/tree-hover-tooltip/tree-hover-tooltip.component.d.ts +0 -0
  20. /package/lib/ava-tree/{tree/components → components}/tree-item/tree-item.component.d.ts +0 -0
  21. /package/lib/ava-tree/{tree/components → components}/tree-node/tree-node.component.d.ts +0 -0
  22. /package/lib/ava-tree/{tree/components → components}/tree-structure/tree-structure.component.d.ts +0 -0
  23. /package/lib/ava-tree/{tree/constants → constants}/defaultFilters.d.ts +0 -0
  24. /package/lib/ava-tree/{tree/constants → constants}/defaultTextWords.d.ts +0 -0
  25. /package/lib/ava-tree/{tree/constants → constants}/defaults.d.ts +0 -0
  26. /package/lib/ava-tree/{tree/model → model}/ava-models.d.ts +0 -0
  27. /package/lib/ava-tree/{tree/model → model}/context-menu-data.model.d.ts +0 -0
  28. /package/lib/ava-tree/{tree/model → model}/function-view-line.model.d.ts +0 -0
  29. /package/lib/ava-tree/{tree/model → model}/selecting.model.d.ts +0 -0
  30. /package/lib/ava-tree/{tree/model → model}/tableColumnType.d.ts +0 -0
  31. /package/lib/ava-tree/{tree/model → model}/tree-mode.model.d.ts +0 -0
  32. /package/lib/ava-tree/{tree/pipes → pipes}/element-icon-name.pipe.d.ts +0 -0
  33. /package/lib/ava-tree/{tree/pipes → pipes}/element-item-number.pipe.d.ts +0 -0
  34. /package/lib/ava-tree/{tree/pipes → pipes}/element-text.pipe.d.ts +0 -0
  35. /package/lib/ava-tree/{tree/pipes → pipes}/group-child-elements.pipe.d.ts +0 -0
  36. /package/lib/ava-tree/{tree/services → services}/dynamic-component.service.d.ts +0 -0
  37. /package/lib/ava-tree/{tree/services → services}/expand-parent-group.service.d.ts +0 -0
  38. /package/lib/ava-tree/{tree/services → services}/flat-elements.service.d.ts +0 -0
  39. /package/lib/ava-tree/{tree/services → services}/keyboard-operation.service.d.ts +0 -0
  40. /package/lib/ava-tree/{tree/services → services}/select-element.service.d.ts +0 -0
  41. /package/lib/ava-tree/{tree/services → services}/tree-hover-tooltip.service.d.ts +0 -0
  42. /package/lib/ava-tree/{tree/services → services}/tree-node-selection.service.d.ts +0 -0
  43. /package/lib/ava-tree/{tree/services → services}/tree-words.service.d.ts +0 -0
  44. /package/lib/{ava-tree/tree → invoice}/constants/defaultTextWordInvoice.d.ts +0 -0
  45. /package/lib/{ava-tree/tree → invoice}/model/invoice-words.model.d.ts +0 -0
  46. /package/lib/{ava-tree/tree → invoice}/pipes/invoice-attachment-mime-type.pipe.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, ApplicationRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ITextWords } from '../../constants/defaultTextWords';
3
- import { ContextMenuDataType, IElementDto, IFunctionViewLine, ModeViewType, ProjectDto, SelectedElement, ServiceSpecificationDto, TableColumnType } from '../../model';
3
+ import { ContextMenuDataType, IConfigurationTreeType, IElementDto, IFunctionViewLine, ModeViewType, ProjectDto, SelectedElement, ServiceSpecificationDto, TableColumnType } from '../../model';
4
4
  import { DynamicComponentService } from '../../services/dynamic-component.service';
5
5
  import { ExpandParentGroupService } from '../../services/expand-parent-group.service';
6
6
  import { FlatElementsService } from '../../services/flat-elements.service';
@@ -100,7 +100,6 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
100
100
  * You can supply custom filters that are processed when the filter input is changed. Default filters are used
101
101
  * that check for short text and item number matches, and you can either add custom filters or replace the default ones.
102
102
  */
103
- listFilterFunc: ((element: IElementDto, filter: string) => boolean | undefined)[];
104
103
  /**
105
104
  * Optional. For table views, this allows you to add custom columns to the table.
106
105
  * addTableColumns: Array of objects
@@ -129,6 +128,7 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
129
128
  * }
130
129
  */
131
130
  functionView: IFunctionViewLine[] | null;
131
+ set config(configObject: IConfigurationTreeType);
132
132
  /**
133
133
  * This is emitted when an element is selected by clicking on it. The selected element is emitted as the event value.
134
134
  */
@@ -184,5 +184,5 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
184
184
  private getFilteredList;
185
185
  private initializeEventListeners;
186
186
  static ɵfac: i0.ɵɵFactoryDeclaration<AvaTreeComponent, [{ self: true; }, { self: true; }, { self: true; }, { self: true; }, { self: true; }, null, null, null, null]>;
187
- static ɵcmp: i0.ɵɵComponentDeclaration<AvaTreeComponent, "ava-tree", never, { "project": { "alias": "project"; "required": false; }; "expansionState": { "alias": "expansionState"; "required": false; }; "selectedNodeId": { "alias": "selectedNodeId"; "required": false; }; "indent": { "alias": "indent"; "required": false; }; "selectedColor": { "alias": "selectedColor"; "required": false; }; "modeView": { "alias": "modeView"; "required": false; }; "allowDblClick": { "alias": "allowDblClick"; "required": false; }; "isSelectionMode": { "alias": "isSelectionMode"; "required": false; }; "initiallySelectedElements": { "alias": "initiallySelectedElements"; "required": false; }; "textWords": { "alias": "textWords"; "required": false; }; "mouseAwareKeyboardControl": { "alias": "mouseAwareKeyboardControl"; "required": false; }; "customKeyboardOperationConfig": { "alias": "customKeyboardOperationConfig"; "required": false; }; "listFilterFunc": { "alias": "listFilterFunc"; "required": false; }; "addTableColumns": { "alias": "addTableColumns"; "required": false; }; "functionView": { "alias": "functionView"; "required": false; }; }, { "selectClick": "selectClick"; "selectDblClick": "selectDblClick"; "contextMenuEvent": "contextMenuEvent"; "selectedElementsChanged": "selectedElementsChanged"; }, never, never, true, never>;
187
+ 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
188
  }
@@ -0,0 +1,4 @@
1
+ import { DEFAULT_FILTERS } from './defaultFilters';
2
+ import { DEFAULT_TEXT_WORDS, germanTextsAva } from './defaultTextWords';
3
+ import { defaults } from './defaults';
4
+ export { DEFAULT_FILTERS, DEFAULT_TEXT_WORDS, defaults, germanTextsAva };
@@ -5,9 +5,9 @@ export declare class SaveChangingViewDirective implements AfterViewInit {
5
5
  private el;
6
6
  private renderer;
7
7
  private flatElementsService;
8
- attributeValue: string;
8
+ saveChangingView: string;
9
9
  constructor(el: ElementRef, renderer: Renderer2, flatElementsService: FlatElementsService);
10
10
  ngAfterViewInit(): void;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SaveChangingViewDirective, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<SaveChangingViewDirective, "[saveChangingView]", never, { "attributeValue": { "alias": "attributeValue"; "required": false; }; }, {}, never, never, true, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SaveChangingViewDirective, "[saveChangingView]", never, { "saveChangingView": { "alias": "saveChangingView"; "required": false; }; }, {}, never, never, true, never>;
13
13
  }
@@ -0,0 +1,25 @@
1
+ import { IElementDto } from './ava-models';
2
+ import { IFunctionViewLine } from './function-view-line.model';
3
+ import { SelectedElement } from './selecting.model';
4
+ import { TableColumnType } from './tableColumnType';
5
+ import { ModeViewType } from './tree-mode.model';
6
+ import { ITextWords } from '../constants/defaultTextWords';
7
+ import { IKeyboardOperationConfig } from '../services/keyboard-operation.service';
8
+ export interface IConfigurationTreeType {
9
+ expansionState?: {
10
+ [id: string]: boolean;
11
+ };
12
+ selectedNodeId?: string;
13
+ indent?: string;
14
+ selectedColor?: string;
15
+ modeView?: ModeViewType;
16
+ allowDblClick?: boolean;
17
+ isSelectionMode?: boolean;
18
+ initiallySelectedElements?: SelectedElement[];
19
+ textWords?: ITextWords;
20
+ mouseAwareKeyboardControl?: boolean;
21
+ customKeyboardOperationConfig?: IKeyboardOperationConfig;
22
+ listFilterFunc?: ((element: IElementDto, filter: string) => boolean)[];
23
+ addTableColumns?: TableColumnType[];
24
+ functionView?: IFunctionViewLine[];
25
+ }
@@ -0,0 +1,8 @@
1
+ import { ExchangePhaseDto, ExecutionDescriptionDto, IElementDto, ItemNumberDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, NoteTextDto, OriginDto, PositionDto, PriceRoundingModeDto, PriceTypeDto, ProjectDto, ServiceSpecificationDto, ServiceSpecificationGroupDto } from './ava-models';
2
+ import { IConfigurationTreeType } from './config-tree.model';
3
+ import { ContextMenuDataType } from './context-menu-data.model';
4
+ import { IFunctionViewLine, IViewLine } from './function-view-line.model';
5
+ import { SelectedElement } from './selecting.model';
6
+ import { TableColumnType } from './tableColumnType';
7
+ import { ModeViewType } from './tree-mode.model';
8
+ export { ProjectDto, ServiceSpecificationDto, IElementDto, PositionDto, ExecutionDescriptionDto, NoteTextDto, ServiceSpecificationGroupDto, ItemNumberDto, SelectedElement, ModeViewType, TableColumnType, IFunctionViewLine, IViewLine, ContextMenuDataType, ExchangePhaseDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, OriginDto, PriceRoundingModeDto, PriceTypeDto, IConfigurationTreeType };
@@ -1,5 +1,5 @@
1
- import { ITextWordInvoice } from '../../tree/model';
2
- import { SupportingDocument } from '../../tree/model/invoice-models';
1
+ import { IConfigurationInvoiceType, ITextWordInvoice } from '../../model';
2
+ import { SupportingDocument } from '../../model';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class InvoiceDisplayComponent {
5
5
  invoice: any;
@@ -55,13 +55,13 @@ export declare class InvoiceDisplayComponent {
55
55
  *
56
56
  * }
57
57
  */
58
- set textWords(words: ITextWordInvoice);
59
58
  get textWords(): ITextWordInvoice;
59
+ set config(configObject: IConfigurationInvoiceType);
60
60
  constructor();
61
61
  download(documentValue: SupportingDocument): void;
62
62
  downloadAny(documentValue: SupportingDocument): void;
63
63
  downloadLink(documentValue: SupportingDocument): Promise<void>;
64
64
  saveAs(blob: Blob, fileName: string): void;
65
65
  static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceDisplayComponent, never>;
66
- static ɵcmp: i0.ɵɵComponentDeclaration<InvoiceDisplayComponent, "ava-invoice-display", never, { "invoice": { "alias": "invoice"; "required": true; "isSignal": true; }; "textWords": { "alias": "textWords"; "required": false; }; }, {}, never, never, true, never>;
66
+ 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>;
67
67
  }
@@ -0,0 +1,2 @@
1
+ import { DEFAULT_TEXT_WORD_INVOICE, germanTextsInvoice } from './defaultTextWordInvoice';
2
+ export { DEFAULT_TEXT_WORD_INVOICE, germanTextsInvoice };
@@ -0,0 +1,4 @@
1
+ import { ITextWordInvoice } from './invoice-words.model';
2
+ export interface IConfigurationInvoiceType {
3
+ textWords?: ITextWordInvoice;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { IConfigurationInvoiceType } from './configInvoice.model';
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
+ 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 };
@@ -1,4 +1,4 @@
1
- import { ProjectDto } from './ava-models';
1
+ import { ProjectDto } from '../../ava-tree/model';
2
2
  /** This class represents an invoice */
3
3
  export interface Invoice {
4
4
  /** The number of the invoice */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dangl/angular-ava",
3
- "version": "1.1.2-beta0113",
3
+ "version": "1.1.2-beta0125",
4
4
  "keywords": [
5
5
  "angular",
6
6
  "ava",
package/public-api.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- export * from './lib/ava-tree/tree/model';
1
+ export * from './lib/ava-tree/model';
2
2
  export * from './lib/version';
3
- export * from './lib/ava-tree/tree/components/ava-tree/ava-tree.component';
4
- export * from './lib/ava-tree/tree/constants';
5
- export * from './lib/ava-tree/invoice/invoice-display/invoice-display.component';
3
+ export * from './lib/ava-tree/components/ava-tree/ava-tree.component';
4
+ export * from './lib/ava-tree/constants';
5
+ export * from './lib/invoice/components/invoice-display/invoice-display.component';
6
+ export * from './lib/invoice/constants';
7
+ export * from './lib/invoice/model';
@@ -1,5 +0,0 @@
1
- import { DEFAULT_FILTERS } from './defaultFilters';
2
- import { DEFAULT_TEXT_WORD_INVOICE, germanTextsInvoice } from './defaultTextWordInvoice';
3
- import { DEFAULT_TEXT_WORDS, germanTextsAva } from './defaultTextWords';
4
- import { defaults } from './defaults';
5
- export { DEFAULT_FILTERS, DEFAULT_TEXT_WORDS, defaults, DEFAULT_TEXT_WORD_INVOICE, germanTextsInvoice, germanTextsAva };
@@ -1,9 +0,0 @@
1
- import { ExchangePhaseDto, ExecutionDescriptionDto, IElementDto, ItemNumberDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, NoteTextDto, OriginDto, PositionDto, PriceRoundingModeDto, PriceTypeDto, ProjectDto, ServiceSpecificationDto, ServiceSpecificationGroupDto } from './ava-models';
2
- import { ContextMenuDataType } from './context-menu-data.model';
3
- import { IFunctionViewLine, IViewLine } from './function-view-line.model';
4
- 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';
5
- import { ITextWordInvoice } from './invoice-words.model';
6
- import { SelectedElement } from './selecting.model';
7
- import { TableColumnType } from './tableColumnType';
8
- import { ModeViewType } from './tree-mode.model';
9
- export { ProjectDto, ServiceSpecificationDto, IElementDto, PositionDto, ExecutionDescriptionDto, NoteTextDto, ServiceSpecificationGroupDto, ItemNumberDto, SelectedElement, ModeViewType, TableColumnType, IFunctionViewLine, IViewLine, ContextMenuDataType, ExchangePhaseDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, OriginDto, PriceRoundingModeDto, PriceTypeDto, 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 };