@colijnit/corecomponents_v12 259.1.18 → 259.1.20
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.
- package/bundles/colijnit-corecomponents_v12.umd.js +20 -15
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/input-scanner/input-scanner.component.js +9 -11
- package/esm2015/lib/components/list-of-icons/list-of-icons.component.js +9 -8
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +9 -3
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +2 -2
- package/fesm2015/colijnit-corecomponents_v12.js +25 -20
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/list-of-values/list-of-values.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -10321,7 +10321,7 @@ SimpleGridComponent.decorators = [
|
|
|
10321
10321
|
(click)="cancelEditRow(); $event.stopPropagation() "></co-button>
|
|
10322
10322
|
</div>
|
|
10323
10323
|
</ng-container>
|
|
10324
|
-
<ng-container *ngIf="!(inlineEdit && showRowButtons)">
|
|
10324
|
+
<ng-container *ngIf="!(inlineEdit && showRowButtons) && showDelete">
|
|
10325
10325
|
<div class="icons-container">
|
|
10326
10326
|
<co-icon class="icon-item icon-delete"
|
|
10327
10327
|
[iconData]="icons.getIcon(Icons.TrashBin)" *ngIf="hoveredRowIndex === rowIndex"
|
|
@@ -11556,8 +11556,13 @@ class ListOfValuesComponent extends BaseInputComponent {
|
|
|
11556
11556
|
this.isLoading = false;
|
|
11557
11557
|
return [];
|
|
11558
11558
|
}
|
|
11559
|
-
this.filteredCollection = (_a = this.collection) === null || _a === void 0 ? void 0 : _a.filter(() => {
|
|
11560
|
-
|
|
11559
|
+
this.filteredCollection = (_a = this.collection) === null || _a === void 0 ? void 0 : _a.filter((item) => {
|
|
11560
|
+
if (this.collectionLoadFnProp && this.collectionLoadFnProp.length > 0) {
|
|
11561
|
+
return item[this.collectionLoadFnProp] && item[this.collectionLoadFnProp].toLowerCase().includes(text.toLowerCase());
|
|
11562
|
+
}
|
|
11563
|
+
else {
|
|
11564
|
+
return true;
|
|
11565
|
+
}
|
|
11561
11566
|
});
|
|
11562
11567
|
(((_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();
|
|
11563
11568
|
this.isLoading = false;
|
|
@@ -11777,6 +11782,7 @@ ListOfValuesComponent.propDecorators = {
|
|
|
11777
11782
|
optionIcon: [{ type: Input }],
|
|
11778
11783
|
collection: [{ type: Input }],
|
|
11779
11784
|
collectionLoadFn: [{ type: Input }],
|
|
11785
|
+
collectionLoadFnProp: [{ type: Input }],
|
|
11780
11786
|
leftIconData: [{ type: Input }],
|
|
11781
11787
|
searchPlaceholder: [{ type: Input }],
|
|
11782
11788
|
label: [{ type: Input }],
|
|
@@ -11950,6 +11956,7 @@ class ListOfIconsComponent {
|
|
|
11950
11956
|
}
|
|
11951
11957
|
set collection(value) {
|
|
11952
11958
|
this._collection = value || [];
|
|
11959
|
+
this.activeItem = this.collection[0];
|
|
11953
11960
|
}
|
|
11954
11961
|
get collection() {
|
|
11955
11962
|
return this._collection;
|
|
@@ -12001,13 +12008,13 @@ ListOfIconsComponent.decorators = [
|
|
|
12001
12008
|
</div>
|
|
12002
12009
|
<div class="picking-type-wrapper" *ngIf="showSubCategories">
|
|
12003
12010
|
<div class="button-wrapper" *ngFor="let subCategory of subCategories" (click)="handlePickingCategoryClicked(subCategory)">
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12007
|
-
|
|
12008
|
-
|
|
12009
|
-
|
|
12010
|
-
|
|
12011
|
+
<co-icon
|
|
12012
|
+
class="co-transaction-button-bar-icon"
|
|
12013
|
+
[iconData]="subCategory.icon"
|
|
12014
|
+
[style.width.px]="iconSize"
|
|
12015
|
+
[style.height.px]="iconSize">
|
|
12016
|
+
</co-icon>
|
|
12017
|
+
<span class="button-title" [textContent]="subCategory.label | coreLocalize"></span>
|
|
12011
12018
|
</div>
|
|
12012
12019
|
</div>
|
|
12013
12020
|
</div>
|
|
@@ -13433,16 +13440,14 @@ class InputScannerComponent {
|
|
|
13433
13440
|
this._clearTimeout();
|
|
13434
13441
|
}
|
|
13435
13442
|
handleKeyDown(event) {
|
|
13436
|
-
|
|
13437
|
-
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
|
|
13441
|
-
const
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
}
|
|
13445
|
-
}, 200);
|
|
13443
|
+
const enterKeys = ['Enter', 'NumpadEnter', 'Go'];
|
|
13444
|
+
if (enterKeys.includes(event.key) && !this._blockEnterKeydown) {
|
|
13445
|
+
event.preventDefault();
|
|
13446
|
+
event.stopPropagation();
|
|
13447
|
+
// Immediately emit before DOM resets or reflows
|
|
13448
|
+
const currentValue = this.model;
|
|
13449
|
+
this.search.next(currentValue);
|
|
13450
|
+
}
|
|
13446
13451
|
}
|
|
13447
13452
|
triggerCodeScanned(code) {
|
|
13448
13453
|
this._clearTimeout();
|