@c10t/nice-component-library 0.0.20-b → 0.0.20-d

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.
@@ -4532,6 +4532,8 @@ class CvaLiveSearchingComponent {
4532
4532
  writeValue(obj) {
4533
4533
  if (!obj || typeof obj !== 'string') {
4534
4534
  this.selected = {};
4535
+ this.filteredOptions.length = 0;
4536
+ this.filteredOptions = [];
4535
4537
  this.textControl.setValue('', { emitEvent: false });
4536
4538
  this.updateRowOrFormGroup();
4537
4539
  return;
@@ -7473,7 +7475,7 @@ class CvaFlatTreeNodeLeftComponent {
7473
7475
  fxLayoutAlign="space-between center">
7474
7476
  <button type="button" mat-icon-button (click)="toggle.emit()"
7475
7477
  [attr.aria-label]="'toggle ' + node.displayValue">
7476
- <i class="fas {{treeControl?.isExpanded(node) ? 'fa-chevron-up' : 'fa-chevron-down'}}"></i>
7478
+ <i class="fas {{(treeControl && treeControl.isExpanded(node)) ? 'fa-chevron-up' : 'fa-chevron-down'}}"></i>
7477
7479
  </button>
7478
7480
  <span (click)="onParentNodeClick.emit()">{{ node.displayValue }}</span>
7479
7481
  </div>
@@ -7516,7 +7518,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
7516
7518
  fxLayoutAlign="space-between center">
7517
7519
  <button type="button" mat-icon-button (click)="toggle.emit()"
7518
7520
  [attr.aria-label]="'toggle ' + node.displayValue">
7519
- <i class="fas {{treeControl?.isExpanded(node) ? 'fa-chevron-up' : 'fa-chevron-down'}}"></i>
7521
+ <i class="fas {{(treeControl && treeControl.isExpanded(node)) ? 'fa-chevron-up' : 'fa-chevron-down'}}"></i>
7520
7522
  </button>
7521
7523
  <span (click)="onParentNodeClick.emit()">{{ node.displayValue }}</span>
7522
7524
  </div>
@@ -8082,9 +8084,7 @@ class CvaFlatTreeComponent {
8082
8084
  if (orgNode) {
8083
8085
  orgNode.isFilterExpanded = treeControl.isExpanded(node);
8084
8086
  }
8085
- if (this.chooseVirtualScroll) {
8086
- this.chooseVirtualScroll.checkViewportSize();
8087
- }
8087
+ this.setDataSourceOrigin();
8088
8088
  }
8089
8089
  toggleSelectedTree(node) {
8090
8090
  if (node) {
@@ -8293,6 +8293,7 @@ class CvaFlatTreeComponent {
8293
8293
  [ngStyle]="{height: viewHeight + 'px'}">
8294
8294
  <ng-container *cdkVirtualFor="let node of dataSource">
8295
8295
  <cva-flat-tree-node-left [style.padding-left]="node.level * paddingLeft + 'px'"
8296
+ [style.height]="itemSize + 'px'"
8296
8297
  [attr.aria-level]="node.level"
8297
8298
  [treeControl]="treeControl"
8298
8299
  [isHideCheckbox]="isHideCheckbox"
@@ -8322,6 +8323,7 @@ class CvaFlatTreeComponent {
8322
8323
  itemSize="{{itemSize}}" [ngStyle]="{height: viewHeight + 'px'}">
8323
8324
  <ng-container *cdkVirtualFor="let node of selectedDataSource">
8324
8325
  <cva-flat-tree-node-right [style.padding-left]="node.level * paddingLeft + 'px'"
8326
+ [style.height]="itemSize + 'px'"
8325
8327
  [attr.aria-level]="node.level"
8326
8328
  [treeControl]="selectedTreeControl"
8327
8329
  [node]="node"
@@ -8386,6 +8388,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
8386
8388
  [ngStyle]="{height: viewHeight + 'px'}">
8387
8389
  <ng-container *cdkVirtualFor="let node of dataSource">
8388
8390
  <cva-flat-tree-node-left [style.padding-left]="node.level * paddingLeft + 'px'"
8391
+ [style.height]="itemSize + 'px'"
8389
8392
  [attr.aria-level]="node.level"
8390
8393
  [treeControl]="treeControl"
8391
8394
  [isHideCheckbox]="isHideCheckbox"
@@ -8415,6 +8418,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
8415
8418
  itemSize="{{itemSize}}" [ngStyle]="{height: viewHeight + 'px'}">
8416
8419
  <ng-container *cdkVirtualFor="let node of selectedDataSource">
8417
8420
  <cva-flat-tree-node-right [style.padding-left]="node.level * paddingLeft + 'px'"
8421
+ [style.height]="itemSize + 'px'"
8418
8422
  [attr.aria-level]="node.level"
8419
8423
  [treeControl]="selectedTreeControl"
8420
8424
  [node]="node"