primeng 16.9.5-lts → 16.9.7-lts

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.
@@ -439,7 +439,7 @@ class UITreeNode {
439
439
  }, 1);
440
440
  }
441
441
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: UITreeNode, deps: [{ token: forwardRef(() => Tree) }], target: i0.ɵɵFactoryTarget.Component });
442
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: UITreeNode, selector: "p-treeNode", inputs: { rowNode: "rowNode", node: "node", parentNode: "parentNode", root: "root", index: "index", firstChild: "firstChild", lastChild: "lastChild", level: "level", indentation: "indentation", itemSize: "itemSize" }, host: { properties: { "attr.role": "\"treeitem\"" }, classAttribute: "p-element" }, ngImport: i0, template: `
442
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: UITreeNode, selector: "p-treeNode", inputs: { rowNode: "rowNode", node: "node", parentNode: "parentNode", root: "root", index: "index", firstChild: "firstChild", lastChild: "lastChild", level: "level", indentation: "indentation", itemSize: "itemSize" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
443
443
  <ng-template [ngIf]="node">
444
444
  <li
445
445
  *ngIf="tree.droppableNodes"
@@ -461,7 +461,7 @@ class UITreeNode {
461
461
  [attr.aria-selected]="ariaSelected"
462
462
  [attr.aria-expanded]="node.expanded"
463
463
  [attr.aria-posinset]="index + 1"
464
- [attr.aria-level]="level"
464
+ [attr.aria-level]="level + 1"
465
465
  [attr.tabindex]="index === 0 ? 0 : -1"
466
466
  role="treeitem"
467
467
  (keydown)="onKeyDown($event)"
@@ -609,7 +609,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImpor
609
609
  [attr.aria-selected]="ariaSelected"
610
610
  [attr.aria-expanded]="node.expanded"
611
611
  [attr.aria-posinset]="index + 1"
612
- [attr.aria-level]="level"
612
+ [attr.aria-level]="level + 1"
613
613
  [attr.tabindex]="index === 0 ? 0 : -1"
614
614
  role="treeitem"
615
615
  (keydown)="onKeyDown($event)"
@@ -732,8 +732,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImpor
732
732
  `,
733
733
  encapsulation: ViewEncapsulation.None,
734
734
  host: {
735
- class: 'p-element',
736
- '[attr.role]': '"treeitem"'
735
+ class: 'p-element'
737
736
  }
738
737
  }]
739
738
  }], ctorParameters: function () { return [{ type: Tree, decorators: [{
@@ -1151,7 +1150,7 @@ class Tree {
1151
1150
  return;
1152
1151
  }
1153
1152
  if (this.hasFilteredNodes()) {
1154
- node = this.getNodeWithKey(node.key, this.value);
1153
+ node = this.getNodeWithKey(node.key, this.filteredNodes);
1155
1154
  if (!node) {
1156
1155
  return;
1157
1156
  }