igniteui-angular 19.2.23 → 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.
@@ -9908,6 +9908,9 @@ class IgxInputDirective {
9908
9908
  */
9909
9909
  onBlur() {
9910
9910
  this.inputGroup.isFocused = false;
9911
+ if (this.ngControl?.control) {
9912
+ this.ngControl.control.markAsTouched();
9913
+ }
9911
9914
  this.updateValidityState();
9912
9915
  }
9913
9916
  /** @hidden @internal */
@@ -54751,11 +54754,12 @@ class IgxTreeComponent {
54751
54754
  get rootNodes() {
54752
54755
  return this.nodes?.filter(node => node.level === 0);
54753
54756
  }
54754
- constructor(navService, selectionService, treeService, element) {
54757
+ constructor(navService, selectionService, treeService, element, platform) {
54755
54758
  this.navService = navService;
54756
54759
  this.selectionService = selectionService;
54757
54760
  this.treeService = treeService;
54758
54761
  this.element = element;
54762
+ this.platform = platform;
54759
54763
  this.cssClass = 'igx-tree';
54760
54764
  /** Get/Set how the tree should handle branch expansion.
54761
54765
  * If set to `true`, only a single branch can be expanded at a time, collapsing all others
@@ -55070,9 +55074,11 @@ class IgxTreeComponent {
55070
55074
  subToChanges() {
55071
55075
  this.unsubChildren$.next();
55072
55076
  const toBeSelected = [...this.forceSelect];
55073
- requestAnimationFrame(() => {
55074
- this.selectionService.selectNodesWithNoEvent(toBeSelected);
55075
- });
55077
+ if (this.platform.isBrowser) {
55078
+ requestAnimationFrame(() => {
55079
+ this.selectionService.selectNodesWithNoEvent(toBeSelected);
55080
+ });
55081
+ }
55076
55082
  this.forceSelect = [];
55077
55083
  this.nodes.forEach(node => {
55078
55084
  node.expandedChange.pipe(takeUntil(this.unsubChildren$)).subscribe(nodeState => {
@@ -55104,7 +55110,7 @@ class IgxTreeComponent {
55104
55110
  this.nativeElement.scrollTop + bottomOffset + topOffset + (topOffset ? -1 : +1) * nodeRect.height;
55105
55111
  }
55106
55112
  }
55107
- 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 }); }
55108
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: [
55109
55115
  IgxTreeService,
55110
55116
  IgxTreeSelectionService,
@@ -55120,7 +55126,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
55120
55126
  IgxTreeNavigationService,
55121
55127
  { provide: IGX_TREE_COMPONENT, useExisting: IgxTreeComponent },
55122
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" }]
55123
- }], 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: [{
55124
55130
  type: HostBinding,
55125
55131
  args: ['class.igx-tree']
55126
55132
  }], selection: [{