@colijnit/corecomponents_v12 258.1.26 → 258.1.27

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.
@@ -10237,6 +10237,14 @@ SimpleGridComponent.decorators = [
10237
10237
  (click)="cancelEditRow(); $event.stopPropagation() "></co-button>
10238
10238
  </div>
10239
10239
  </ng-container>
10240
+ <ng-container *ngIf="!(inlineEdit && showRowButtons) && showDelete">
10241
+ <div class="icons-container">
10242
+ <co-icon class="icon-item icon-delete"
10243
+ [iconData]="icons.getIcon(Icons.TrashBin)" *ngIf="hoveredRowIndex === rowIndex"
10244
+ (click)="selectTheRow(rowIndex); removeRow();">
10245
+ </co-icon>
10246
+ </div>
10247
+ </ng-container>
10240
10248
  </ng-container>
10241
10249
  </tr>
10242
10250
  </co-form>
@@ -11458,8 +11466,13 @@ class ListOfValuesComponent extends BaseInputComponent {
11458
11466
  this.isLoading = false;
11459
11467
  return [];
11460
11468
  }
11461
- this.filteredCollection = (_a = this.collection) === null || _a === void 0 ? void 0 : _a.filter(() => {
11462
- return true;
11469
+ this.filteredCollection = (_a = this.collection) === null || _a === void 0 ? void 0 : _a.filter((item) => {
11470
+ if (this.collectionLoadFnProp && this.collectionLoadFnProp.length > 0) {
11471
+ return item[this.collectionLoadFnProp] && item[this.collectionLoadFnProp].toLowerCase().includes(text.toLowerCase());
11472
+ }
11473
+ else {
11474
+ return true;
11475
+ }
11463
11476
  });
11464
11477
  (((_b = this.filteredCollection) === null || _b === void 0 ? void 0 : _b.length) > 0 && ((_c = this.filterText) === null || _c === void 0 ? void 0 : _c.length) > 2) ? this.openPopup() : this.closePopup();
11465
11478
  this.isLoading = false;
@@ -11676,6 +11689,7 @@ ListOfValuesComponent.propDecorators = {
11676
11689
  displayField: [{ type: Input }],
11677
11690
  collection: [{ type: Input }],
11678
11691
  collectionLoadFn: [{ type: Input }],
11692
+ collectionLoadFnProp: [{ type: Input }],
11679
11693
  leftIconData: [{ type: Input }],
11680
11694
  searchPlaceholder: [{ type: Input }],
11681
11695
  label: [{ type: Input }],
@@ -11849,6 +11863,7 @@ class ListOfIconsComponent {
11849
11863
  }
11850
11864
  set collection(value) {
11851
11865
  this._collection = value || [];
11866
+ this.activeItem = this.collection[0];
11852
11867
  }
11853
11868
  get collection() {
11854
11869
  return this._collection;
@@ -11886,30 +11901,30 @@ class ListOfIconsComponent {
11886
11901
  ListOfIconsComponent.decorators = [
11887
11902
  { type: Component, args: [{
11888
11903
  selector: 'co-list-of-icons',
11889
- template: `
11890
- <div class="icon-item active" [class.menu-opened]="showMenu" (click)="toggleMenu()">
11891
- <co-icon [iconData]="activeItem.icon" [style.width.px]="iconSize" [style.height.px]="iconSize"></co-icon>
11892
- <co-icon *ngIf="!showMenu" class="drop-arrow" [iconData]="icons.getIcon(Icon.CaretDownSolid)"></co-icon>
11893
- <co-icon *ngIf="showMenu" class="drop-arrow" [iconData]="icons.getIcon(Icon.CaretUpSolid)"></co-icon>
11894
- </div>
11895
- <div class="dropdown-menu" *ngIf="showMenu" (clickOutside)="onClickOutside()">
11896
- <div class="icon-item" *ngFor="let item of collection" (click)="selectItem(item)"
11897
- [class.active]="item === activeItem">
11898
- <co-icon [iconData]="item.icon" [style.width.px]="iconSize" [style.height.px]="iconSize"></co-icon>
11899
- <div class="label" [textContent]="item.label | coreLocalize"></div>
11900
- </div>
11901
- <div class="picking-type-wrapper" *ngIf="showSubCategories">
11902
- <div class="button-wrapper" *ngFor="let subCategory of subCategories" (click)="handlePickingCategoryClicked(subCategory)">
11903
- <co-icon
11904
- class="co-transaction-button-bar-icon"
11905
- [iconData]="subCategory.icon"
11906
- [style.width.px]="iconSize"
11907
- [style.height.px]="iconSize">
11908
- </co-icon>
11909
- <span class="button-title" [textContent]="subCategory.label | coreLocalize"></span>
11910
- </div>
11911
- </div>
11912
- </div>
11904
+ template: `
11905
+ <div class="icon-item active" [class.menu-opened]="showMenu" (click)="toggleMenu()">
11906
+ <co-icon [iconData]="activeItem.icon" [style.width.px]="iconSize" [style.height.px]="iconSize"></co-icon>
11907
+ <co-icon *ngIf="!showMenu" class="drop-arrow" [iconData]="icons.getIcon(Icon.CaretDownSolid)"></co-icon>
11908
+ <co-icon *ngIf="showMenu" class="drop-arrow" [iconData]="icons.getIcon(Icon.CaretUpSolid)"></co-icon>
11909
+ </div>
11910
+ <div class="dropdown-menu" *ngIf="showMenu" (clickOutside)="onClickOutside()">
11911
+ <div class="icon-item" *ngFor="let item of collection" (click)="selectItem(item)"
11912
+ [class.active]="item === activeItem">
11913
+ <co-icon [iconData]="item.icon" [style.width.px]="iconSize" [style.height.px]="iconSize"></co-icon>
11914
+ <div class="label" [textContent]="item.label | coreLocalize"></div>
11915
+ </div>
11916
+ <div class="picking-type-wrapper" *ngIf="showSubCategories">
11917
+ <div class="button-wrapper" *ngFor="let subCategory of subCategories" (click)="handlePickingCategoryClicked(subCategory)">
11918
+ <co-icon
11919
+ class="co-transaction-button-bar-icon"
11920
+ [iconData]="subCategory.icon"
11921
+ [style.width.px]="iconSize"
11922
+ [style.height.px]="iconSize">
11923
+ </co-icon>
11924
+ <span class="button-title" [textContent]="subCategory.label | coreLocalize"></span>
11925
+ </div>
11926
+ </div>
11927
+ </div>
11913
11928
  `,
11914
11929
  encapsulation: ViewEncapsulation.None
11915
11930
  },] }