igniteui-angular 19.2.24 → 19.2.25
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.
|
@@ -54754,11 +54754,12 @@ class IgxTreeComponent {
|
|
|
54754
54754
|
get rootNodes() {
|
|
54755
54755
|
return this.nodes?.filter(node => node.level === 0);
|
|
54756
54756
|
}
|
|
54757
|
-
constructor(navService, selectionService, treeService, element) {
|
|
54757
|
+
constructor(navService, selectionService, treeService, element, platform) {
|
|
54758
54758
|
this.navService = navService;
|
|
54759
54759
|
this.selectionService = selectionService;
|
|
54760
54760
|
this.treeService = treeService;
|
|
54761
54761
|
this.element = element;
|
|
54762
|
+
this.platform = platform;
|
|
54762
54763
|
this.cssClass = 'igx-tree';
|
|
54763
54764
|
/** Get/Set how the tree should handle branch expansion.
|
|
54764
54765
|
* If set to `true`, only a single branch can be expanded at a time, collapsing all others
|
|
@@ -55073,9 +55074,11 @@ class IgxTreeComponent {
|
|
|
55073
55074
|
subToChanges() {
|
|
55074
55075
|
this.unsubChildren$.next();
|
|
55075
55076
|
const toBeSelected = [...this.forceSelect];
|
|
55076
|
-
|
|
55077
|
-
|
|
55078
|
-
|
|
55077
|
+
if (this.platform.isBrowser) {
|
|
55078
|
+
requestAnimationFrame(() => {
|
|
55079
|
+
this.selectionService.selectNodesWithNoEvent(toBeSelected);
|
|
55080
|
+
});
|
|
55081
|
+
}
|
|
55079
55082
|
this.forceSelect = [];
|
|
55080
55083
|
this.nodes.forEach(node => {
|
|
55081
55084
|
node.expandedChange.pipe(takeUntil(this.unsubChildren$)).subscribe(nodeState => {
|
|
@@ -55107,7 +55110,7 @@ class IgxTreeComponent {
|
|
|
55107
55110
|
this.nativeElement.scrollTop + bottomOffset + topOffset + (topOffset ? -1 : +1) * nodeRect.height;
|
|
55108
55111
|
}
|
|
55109
55112
|
}
|
|
55110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: IgxTreeComponent, deps: [{ token: IgxTreeNavigationService }, { token: IgxTreeSelectionService }, { token: IgxTreeService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
55113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: IgxTreeComponent, deps: [{ token: IgxTreeNavigationService }, { token: IgxTreeSelectionService }, { token: IgxTreeService }, { token: i0.ElementRef }, { token: PlatformUtil }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
55111
55114
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.5", type: IgxTreeComponent, isStandalone: true, selector: "igx-tree", inputs: { selection: "selection", singleBranchExpand: ["singleBranchExpand", "singleBranchExpand", booleanAttribute], toggleNodeOnClick: ["toggleNodeOnClick", "toggleNodeOnClick", booleanAttribute], animationSettings: "animationSettings" }, outputs: { nodeSelection: "nodeSelection", nodeExpanding: "nodeExpanding", nodeExpanded: "nodeExpanded", nodeCollapsing: "nodeCollapsing", nodeCollapsed: "nodeCollapsed", activeNodeChanged: "activeNodeChanged" }, host: { properties: { "class.igx-tree": "this.cssClass" } }, providers: [
|
|
55112
55115
|
IgxTreeService,
|
|
55113
55116
|
IgxTreeSelectionService,
|
|
@@ -55123,7 +55126,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
55123
55126
|
IgxTreeNavigationService,
|
|
55124
55127
|
{ provide: IGX_TREE_COMPONENT, useExisting: IgxTreeComponent },
|
|
55125
55128
|
], standalone: true, template: "<div class=\"igx-tree__root\" role=\"tree\" (keydown)=\"handleKeydown($event)\">\n <ng-content select=\"igx-tree-node\"></ng-content>\n</div>\n" }]
|
|
55126
|
-
}], ctorParameters: () => [{ type: IgxTreeNavigationService }, { type: IgxTreeSelectionService }, { type: IgxTreeService }, { type: i0.ElementRef }], propDecorators: { cssClass: [{
|
|
55129
|
+
}], ctorParameters: () => [{ type: IgxTreeNavigationService }, { type: IgxTreeSelectionService }, { type: IgxTreeService }, { type: i0.ElementRef }, { type: PlatformUtil }], propDecorators: { cssClass: [{
|
|
55127
55130
|
type: HostBinding,
|
|
55128
55131
|
args: ['class.igx-tree']
|
|
55129
55132
|
}], selection: [{
|