@dangl/angular-ava 1.5.2-beta0066 → 1.5.2-beta0077

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dangl/angular-ava",
3
- "version": "1.5.2-beta0066",
3
+ "version": "1.5.2-beta0077",
4
4
  "keywords": [
5
5
  "angular",
6
6
  "ava",
@@ -1,5 +1,5 @@
1
1
  import * as _dangl_ava_model from '@dangl/ava-model';
2
- import { IElementDto, ProjectDto } from '@dangl/ava-model';
2
+ import { IElementDto, IPositionDto, IServiceSpecificationGroupDto, ProjectDto } from '@dangl/ava-model';
3
3
  export { ExchangePhaseDto, ExecutionDescriptionDto, IElementDto, ItemNumberDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, NoteTextDto, OriginDto, PositionDto, PriceRoundingModeDto, PriceTypeDto, ProjectDto, ServiceSpecificationDto, ServiceSpecificationGroupDto } from '@dangl/ava-model';
4
4
  import * as _angular_core from '@angular/core';
5
5
  import { OnInit, OnDestroy, AfterViewInit, ElementRef } from '@angular/core';
@@ -1275,6 +1275,8 @@ interface ITextWordInvoice {
1275
1275
  detailsInvoiceNumber: string;
1276
1276
  detailsInvoiceDate: string;
1277
1277
  detailsPaymentDueDate: string;
1278
+ detailsInvoicePeriod: string;
1279
+ detailsInvoicePeriodSingle: string;
1278
1280
  detailsCurrencyCode: string;
1279
1281
  detailsPaymentTerms: string;
1280
1282
  referencesTopic: string;
@@ -1510,6 +1512,14 @@ type ContextMenuDataType = {
1510
1512
  node: IElementDto;
1511
1513
  };
1512
1514
 
1515
+ /**
1516
+ * Represents an update to an element in the tree.
1517
+ */
1518
+ interface IElementUpdate {
1519
+ id: string;
1520
+ updates: Partial<IPositionDto> | Partial<IServiceSpecificationGroupDto>;
1521
+ }
1522
+
1513
1523
  declare enum ModeViewType {
1514
1524
  Tree = "Tree",
1515
1525
  List = "List",
@@ -1558,6 +1568,22 @@ declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewInit {
1558
1568
  * ModeViewType.List or ModeViewType.Table.
1559
1569
  */
1560
1570
  readonly modeview: _angular_core.InputSignal<ModeViewType>;
1571
+ /**
1572
+ * Input to update a specific element in the tree by its ID.
1573
+ * When you set this input with a new value, the tree will find the element
1574
+ * and update its properties, then refresh the view.
1575
+ *
1576
+ * @example
1577
+ * // In parent component
1578
+ * elementUpdate = signal<IElementUpdate | null>(null);
1579
+ *
1580
+ * // In template
1581
+ * <ava-tree [elementUpdate]="elementUpdate()"></ava-tree>
1582
+ *
1583
+ * // To trigger update
1584
+ * this.elementUpdate.set({ id: 'element-123', updates: { shortText: 'New text' } });
1585
+ */
1586
+ readonly elementUpdate: _angular_core.InputSignalWithTransform<IElementUpdate | null, IElementUpdate | null | undefined>;
1561
1587
  /**
1562
1588
  * You can optionally supply a list of elements that should be selected initially. This is only used if
1563
1589
  * isSelectionMode is true.
@@ -1616,7 +1642,6 @@ declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewInit {
1616
1642
  private selectedElement;
1617
1643
  private previousServiceSpecificationId;
1618
1644
  serviceSpecification: _angular_core.WritableSignal<_dangl_ava_model.ServiceSpecificationDto | null>;
1619
- elements: _angular_core.WritableSignal<IElementDto[]>;
1620
1645
  private isEmiteSelectedElements;
1621
1646
  private selectingElementsTreeData;
1622
1647
  flatElements: IElementDto[] | null;
@@ -1644,7 +1669,7 @@ declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewInit {
1644
1669
  private initializeEventListeners;
1645
1670
  private selectElementById;
1646
1671
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AvaTreeComponent, never>;
1647
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AvaTreeComponent, "ava-tree", never, { "project": { "alias": "project"; "required": true; "isSignal": true; }; "expansionstate": { "alias": "expansionstate"; "required": false; "isSignal": true; }; "selectednodeid": { "alias": "selectednodeid"; "required": false; "isSignal": true; }; "modeview": { "alias": "modeview"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "selectClick": "selectClick"; "selectDblClick": "selectDblClick"; "contextMenuEvent": "contextMenuEvent"; "selectedElementsChanged": "selectedElementsChanged"; }, never, never, true, never>;
1672
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AvaTreeComponent, "ava-tree", never, { "project": { "alias": "project"; "required": true; "isSignal": true; }; "expansionstate": { "alias": "expansionstate"; "required": false; "isSignal": true; }; "selectednodeid": { "alias": "selectednodeid"; "required": false; "isSignal": true; }; "modeview": { "alias": "modeview"; "required": false; "isSignal": true; }; "elementUpdate": { "alias": "elementUpdate"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "selectClick": "selectClick"; "selectDblClick": "selectDblClick"; "contextMenuEvent": "contextMenuEvent"; "selectedElementsChanged": "selectedElementsChanged"; }, never, never, true, never>;
1648
1673
  }
1649
1674
 
1650
1675
  declare const DEFAULT_FILTERS: FilterFunction[];
@@ -1761,4 +1786,4 @@ declare const localeTypes: {
1761
1786
  };
1762
1787
 
1763
1788
  export { AttachmentMimeType, AvaTreeComponent, DEFAULT_CURRENCY_CODE, DEFAULT_DIGITS_INFO, DEFAULT_FILTERS, DEFAULT_LANGUAGE, DEFAULT_TEXT_WORDS, DEFAULT_TEXT_WORD_INVOICE, InvoiceDisplayComponent, InvoiceType, ModeViewType, VatCategory, defaults, germanTextsAva, germanTextsInvoice, localeTypes, version };
1764
- export type { ContextMenuDataType, IConfigurationInvoice, IConfigurationTree, IFunctionViewLine, ITextWordInvoice, IViewLine, Invoice, InvoiceAllowance, InvoiceCharge, InvoiceLineItem, InvoiceNote, InvoicePeriod, InvoiceTotals, LanguageType, LineItemAllowance, LineItemAttribute, LineItemCharge, LineItemInformation, LineItemPriceDetail, LineItemVatInformation, Organization, Payee, PaymentInstructions, PaymentMeans, PreviousInvoice, References, SelectedElement, SupportingDocument, TableColumnType, VatBreakdown };
1789
+ export type { ContextMenuDataType, IConfigurationInvoice, IConfigurationTree, IElementUpdate, IFunctionViewLine, ITextWordInvoice, IViewLine, Invoice, InvoiceAllowance, InvoiceCharge, InvoiceLineItem, InvoiceNote, InvoicePeriod, InvoiceTotals, LanguageType, LineItemAllowance, LineItemAttribute, LineItemCharge, LineItemInformation, LineItemPriceDetail, LineItemVatInformation, Organization, Payee, PaymentInstructions, PaymentMeans, PreviousInvoice, References, SelectedElement, SupportingDocument, TableColumnType, VatBreakdown };