igniteui-angular 20.0.16 → 20.0.17

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.
@@ -41733,7 +41733,7 @@ class IgxDialogComponent {
41733
41733
  /**
41734
41734
  * Set the position and animation settings used by the dialog.
41735
41735
  * ```typescript
41736
- * import { slideInLeft, slideOutRight } from 'igniteui-angular';
41736
+ * import { slideInLeft, slideOutRight } from 'igniteui-angular/animations';
41737
41737
  * ...
41738
41738
  * @ViewChild('alert', { static: true }) public alert: IgxDialogComponent;
41739
41739
  * public newPositionSettings: PositionSettings = {
@@ -54752,11 +54752,12 @@ class IgxTreeComponent {
54752
54752
  get rootNodes() {
54753
54753
  return this.nodes?.filter(node => node.level === 0);
54754
54754
  }
54755
- constructor(navService, selectionService, treeService, element) {
54755
+ constructor(navService, selectionService, treeService, element, platform) {
54756
54756
  this.navService = navService;
54757
54757
  this.selectionService = selectionService;
54758
54758
  this.treeService = treeService;
54759
54759
  this.element = element;
54760
+ this.platform = platform;
54760
54761
  this.cssClass = 'igx-tree';
54761
54762
  /** Get/Set how the tree should handle branch expansion.
54762
54763
  * If set to `true`, only a single branch can be expanded at a time, collapsing all others
@@ -55071,9 +55072,11 @@ class IgxTreeComponent {
55071
55072
  subToChanges() {
55072
55073
  this.unsubChildren$.next();
55073
55074
  const toBeSelected = [...this.forceSelect];
55074
- requestAnimationFrame(() => {
55075
- this.selectionService.selectNodesWithNoEvent(toBeSelected);
55076
- });
55075
+ if (this.platform.isBrowser) {
55076
+ requestAnimationFrame(() => {
55077
+ this.selectionService.selectNodesWithNoEvent(toBeSelected);
55078
+ });
55079
+ }
55077
55080
  this.forceSelect = [];
55078
55081
  this.nodes.forEach(node => {
55079
55082
  node.expandedChange.pipe(takeUntil(this.unsubChildren$)).subscribe(nodeState => {
@@ -55105,7 +55108,7 @@ class IgxTreeComponent {
55105
55108
  this.nativeElement.scrollTop + bottomOffset + topOffset + (topOffset ? -1 : +1) * nodeRect.height;
55106
55109
  }
55107
55110
  }
55108
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: IgxTreeComponent, deps: [{ token: IgxTreeNavigationService }, { token: IgxTreeSelectionService }, { token: IgxTreeService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
55111
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: IgxTreeComponent, deps: [{ token: IgxTreeNavigationService }, { token: IgxTreeSelectionService }, { token: IgxTreeService }, { token: i0.ElementRef }, { token: PlatformUtil }], target: i0.ɵɵFactoryTarget.Component }); }
55109
55112
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.0.0", 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: [
55110
55113
  IgxTreeService,
55111
55114
  IgxTreeSelectionService,
@@ -55121,7 +55124,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
55121
55124
  IgxTreeNavigationService,
55122
55125
  { provide: IGX_TREE_COMPONENT, useExisting: IgxTreeComponent },
55123
55126
  ], 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" }]
55124
- }], ctorParameters: () => [{ type: IgxTreeNavigationService }, { type: IgxTreeSelectionService }, { type: IgxTreeService }, { type: i0.ElementRef }], propDecorators: { cssClass: [{
55127
+ }], ctorParameters: () => [{ type: IgxTreeNavigationService }, { type: IgxTreeSelectionService }, { type: IgxTreeService }, { type: i0.ElementRef }, { type: PlatformUtil }], propDecorators: { cssClass: [{
55125
55128
  type: HostBinding,
55126
55129
  args: ['class.igx-tree']
55127
55130
  }], selection: [{