@dangl/angular-ava 1.5.2-beta0064 → 1.5.2-beta0076
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,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';
|
|
@@ -1510,6 +1510,14 @@ type ContextMenuDataType = {
|
|
|
1510
1510
|
node: IElementDto;
|
|
1511
1511
|
};
|
|
1512
1512
|
|
|
1513
|
+
/**
|
|
1514
|
+
* Represents an update to an element in the tree.
|
|
1515
|
+
*/
|
|
1516
|
+
interface IElementUpdate {
|
|
1517
|
+
id: string;
|
|
1518
|
+
updates: Partial<IPositionDto> | Partial<IServiceSpecificationGroupDto>;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1513
1521
|
declare enum ModeViewType {
|
|
1514
1522
|
Tree = "Tree",
|
|
1515
1523
|
List = "List",
|
|
@@ -1558,6 +1566,22 @@ declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
1558
1566
|
* ModeViewType.List or ModeViewType.Table.
|
|
1559
1567
|
*/
|
|
1560
1568
|
readonly modeview: _angular_core.InputSignal<ModeViewType>;
|
|
1569
|
+
/**
|
|
1570
|
+
* Input to update a specific element in the tree by its ID.
|
|
1571
|
+
* When you set this input with a new value, the tree will find the element
|
|
1572
|
+
* and update its properties, then refresh the view.
|
|
1573
|
+
*
|
|
1574
|
+
* @example
|
|
1575
|
+
* // In parent component
|
|
1576
|
+
* elementUpdate = signal<IElementUpdate | null>(null);
|
|
1577
|
+
*
|
|
1578
|
+
* // In template
|
|
1579
|
+
* <ava-tree [elementUpdate]="elementUpdate()"></ava-tree>
|
|
1580
|
+
*
|
|
1581
|
+
* // To trigger update
|
|
1582
|
+
* this.elementUpdate.set({ id: 'element-123', updates: { shortText: 'New text' } });
|
|
1583
|
+
*/
|
|
1584
|
+
readonly elementUpdate: _angular_core.InputSignalWithTransform<IElementUpdate | null, IElementUpdate | null | undefined>;
|
|
1561
1585
|
/**
|
|
1562
1586
|
* You can optionally supply a list of elements that should be selected initially. This is only used if
|
|
1563
1587
|
* isSelectionMode is true.
|
|
@@ -1614,8 +1638,8 @@ declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
1614
1638
|
avaMainWrapper: _angular_core.Signal<ElementRef<HTMLDivElement>>;
|
|
1615
1639
|
avaTreeFilterInput: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
1616
1640
|
private selectedElement;
|
|
1641
|
+
private previousServiceSpecificationId;
|
|
1617
1642
|
serviceSpecification: _angular_core.WritableSignal<_dangl_ava_model.ServiceSpecificationDto | null>;
|
|
1618
|
-
elements: _angular_core.WritableSignal<IElementDto[]>;
|
|
1619
1643
|
private isEmiteSelectedElements;
|
|
1620
1644
|
private selectingElementsTreeData;
|
|
1621
1645
|
flatElements: IElementDto[] | null;
|
|
@@ -1643,7 +1667,7 @@ declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
1643
1667
|
private initializeEventListeners;
|
|
1644
1668
|
private selectElementById;
|
|
1645
1669
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AvaTreeComponent, never>;
|
|
1646
|
-
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>;
|
|
1670
|
+
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>;
|
|
1647
1671
|
}
|
|
1648
1672
|
|
|
1649
1673
|
declare const DEFAULT_FILTERS: FilterFunction[];
|
|
@@ -1760,4 +1784,4 @@ declare const localeTypes: {
|
|
|
1760
1784
|
};
|
|
1761
1785
|
|
|
1762
1786
|
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 };
|
|
1763
|
-
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 };
|
|
1787
|
+
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 };
|