@dangl/angular-ava 1.5.2-beta0062 → 1.5.2-beta0066
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.
|
@@ -39,12 +39,12 @@ var ModeViewType;
|
|
|
39
39
|
|
|
40
40
|
// This file is automatically generated as part of the build process
|
|
41
41
|
const version = {
|
|
42
|
-
version: "1.5.2-
|
|
43
|
-
commitInfo: "Branch.develop.Sha.
|
|
44
|
-
commitDate: "2026-02-
|
|
45
|
-
commitHash: "
|
|
46
|
-
informationalVersion: "1.5.2-beta.
|
|
47
|
-
buildDateUtc: new Date(Date.UTC(2026, 1,
|
|
42
|
+
version: "1.5.2-beta0066",
|
|
43
|
+
commitInfo: "Branch.develop.Sha.af294a57a31bf511a811159b1c0d4a052ab021cf",
|
|
44
|
+
commitDate: "2026-02-20",
|
|
45
|
+
commitHash: "af294a57a31bf511a811159b1c0d4a052ab021cf",
|
|
46
|
+
informationalVersion: "1.5.2-beta.66+Branch.develop.Sha.af294a57a31bf511a811159b1c0d4a052ab021cf",
|
|
47
|
+
buildDateUtc: new Date(Date.UTC(2026, 1, 20, 19, 35, 35))
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
class TreeHoverTooltipService {
|
|
@@ -2205,10 +2205,10 @@ class TreeNodeComponent {
|
|
|
2205
2205
|
}
|
|
2206
2206
|
expand(element) {
|
|
2207
2207
|
const state = this.expansionState();
|
|
2208
|
-
|
|
2209
|
-
state
|
|
2210
|
-
|
|
2211
|
-
|
|
2208
|
+
this.expandParentGroupService.setExpansionState({
|
|
2209
|
+
...state,
|
|
2210
|
+
[element.id]: !state[element.id]
|
|
2211
|
+
});
|
|
2212
2212
|
}
|
|
2213
2213
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: TreeNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2214
2214
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: TreeNodeComponent, isStandalone: true, selector: "ava-tree-node", inputs: { _elementList: { classPropertyName: "_elementList", publicName: "elementList", isSignal: true, isRequired: false, transformFunction: null }, depth: { classPropertyName: "depth", publicName: "depth", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@for (element of elementList(); track element.id) {\n <ng-container>\n <div\n [id]=\"'hover-element-id-' + element.id\"\n class=\"tree-node-wrapper\"\n [class.select]=\"!isSelectionMode && element.id === selectedElement?.id\"\n [style.backgroundColor]=\"!isSelectionMode && element.id === selectedElement?.id ? (selectedColor$ | async) : ''\"\n [avaHoverEffect]=\"avaItem\"\n >\n <div class=\"tree-node-wrapper__content\">\n @if (element.elementTypeDiscriminator === 'ServiceSpecificationGroupDto') {\n <mat-icon\n matRipple\n (click)=\"expand(element)\"\n class=\"tree-node__icon\"\n >\n {{ expansionState()[element.id] ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n } @else {\n <mat-icon></mat-icon>\n }\n\n <ava-tree-item\n #avaItem\n [element]=\"element\"\n [depth]=\"depth()\"\n [isSelect]=\"!isSelectionMode && element.id === selectedElement?.id\"\n [backgroundColor]=\"!isSelectionMode && element.id === selectedElement?.id ? (selectedColor$ | async) : ''\"\n ></ava-tree-item>\n </div>\n </div>\n @if (element.elementTypeDiscriminator === 'ServiceSpecificationGroupDto' && expansionState()[element.id]) {\n <div [style.paddingLeft]=\"indent$ | async\">\n <ava-tree-node\n [elementList]=\"$any(elementsById()[element.id])?.elements || []\"\n [depth]=\"depth() + 1\"\n ></ava-tree-node>\n </div>\n }\n </ng-container>\n}\n", styles: [".tree-node-wrapper{display:flex;align-items:center}.tree-node-wrapper__content{flex:1 0 100%;display:flex}.tree-node__icon{flex-shrink:0}.select{background-color:var(--mat-form-field-filled-caret-color);color:#fff}.select *{color:#fff}\n"], dependencies: [{ kind: "component", type: TreeNodeComponent, selector: "ava-tree-node", inputs: ["elementList", "depth"] }, { kind: "component", type: TreeItemComponent, selector: "ava-tree-item", inputs: ["element", "depth", "isSelect", "backgroundColor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: HoverEffectDirective, selector: "[avaHoverEffect]", inputs: ["avaHoverEffect"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -2314,6 +2314,7 @@ class AvaTreeComponent {
|
|
|
2314
2314
|
this.avaMainWrapper = viewChild.required('avaMainWrapper');
|
|
2315
2315
|
this.avaTreeFilterInput = viewChild.required('avaTreeFilterInput');
|
|
2316
2316
|
this.selectedElement = null;
|
|
2317
|
+
this.previousServiceSpecificationId = null;
|
|
2317
2318
|
this.serviceSpecification = linkedSignal({ ...(ngDevMode ? { debugName: "serviceSpecification" } : {}), source: this.project,
|
|
2318
2319
|
computation: () => {
|
|
2319
2320
|
const s = this.project()?.serviceSpecifications?.[0] || null;
|
|
@@ -2388,10 +2389,15 @@ class AvaTreeComponent {
|
|
|
2388
2389
|
});
|
|
2389
2390
|
runInInjectionContext(this.injector, () => {
|
|
2390
2391
|
toObservable(this.serviceSpecification)
|
|
2391
|
-
.pipe(
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
this.
|
|
2392
|
+
.pipe(tap((serviceSpecification) => {
|
|
2393
|
+
const currentId = serviceSpecification?.id || null;
|
|
2394
|
+
const isNewServiceSpecification = currentId !== this.previousServiceSpecificationId;
|
|
2395
|
+
this.selectingElementsTreeData = this.treeNodeSelectionService.loadSelectingElements(serviceSpecification?.elements);
|
|
2396
|
+
// Only reset expansion state when loading a completely different service specification
|
|
2397
|
+
if (isNewServiceSpecification) {
|
|
2398
|
+
this.expandParentGroupService.setExpansionState({});
|
|
2399
|
+
this.previousServiceSpecificationId = currentId;
|
|
2400
|
+
}
|
|
2395
2401
|
}), takeUntil(this.$destroy))
|
|
2396
2402
|
.subscribe();
|
|
2397
2403
|
toObservable(this.selectednodeid)
|