@colijnit/corecomponents_v12 260.1.6 → 260.1.7
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 +17 -13
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12-260.1.6.tgz +0 -0
- 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-values/list-of-values.component.js +9 -3
- package/fesm2015/colijnit-corecomponents_v12.js +16 -12
- 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
|
@@ -12052,6 +12052,7 @@
|
|
|
12052
12052
|
var _a, _b, _c;
|
|
12053
12053
|
return __awaiter(this, void 0, void 0, function () {
|
|
12054
12054
|
var _d;
|
|
12055
|
+
var _this = this;
|
|
12055
12056
|
return __generator(this, function (_e) {
|
|
12056
12057
|
switch (_e.label) {
|
|
12057
12058
|
case 0:
|
|
@@ -12076,8 +12077,13 @@
|
|
|
12076
12077
|
this.isLoading = false;
|
|
12077
12078
|
return [2 /*return*/, []];
|
|
12078
12079
|
}
|
|
12079
|
-
this.filteredCollection = (_a = this.collection) === null || _a === void 0 ? void 0 : _a.filter(function () {
|
|
12080
|
-
|
|
12080
|
+
this.filteredCollection = (_a = this.collection) === null || _a === void 0 ? void 0 : _a.filter(function (item) {
|
|
12081
|
+
if (_this.collectionLoadFnProp && _this.collectionLoadFnProp.length > 0) {
|
|
12082
|
+
return item[_this.collectionLoadFnProp] && item[_this.collectionLoadFnProp].toLowerCase().includes(text.toLowerCase());
|
|
12083
|
+
}
|
|
12084
|
+
else {
|
|
12085
|
+
return true;
|
|
12086
|
+
}
|
|
12081
12087
|
});
|
|
12082
12088
|
(((_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();
|
|
12083
12089
|
this.isLoading = false;
|
|
@@ -12255,6 +12261,7 @@
|
|
|
12255
12261
|
optionIcon: [{ type: i0.Input }],
|
|
12256
12262
|
collection: [{ type: i0.Input }],
|
|
12257
12263
|
collectionLoadFn: [{ type: i0.Input }],
|
|
12264
|
+
collectionLoadFnProp: [{ type: i0.Input }],
|
|
12258
12265
|
leftIconData: [{ type: i0.Input }],
|
|
12259
12266
|
searchPlaceholder: [{ type: i0.Input }],
|
|
12260
12267
|
label: [{ type: i0.Input }],
|
|
@@ -14020,17 +14027,14 @@
|
|
|
14020
14027
|
this._clearTimeout();
|
|
14021
14028
|
};
|
|
14022
14029
|
InputScannerComponent.prototype.handleKeyDown = function (event) {
|
|
14023
|
-
var
|
|
14024
|
-
|
|
14025
|
-
|
|
14026
|
-
|
|
14027
|
-
|
|
14028
|
-
|
|
14029
|
-
|
|
14030
|
-
|
|
14031
|
-
_this.search.next(_this.model);
|
|
14032
|
-
}
|
|
14033
|
-
}, 200);
|
|
14030
|
+
var enterKeys = ['Enter', 'NumpadEnter', 'Go'];
|
|
14031
|
+
if (enterKeys.includes(event.key) && !this._blockEnterKeydown) {
|
|
14032
|
+
event.preventDefault();
|
|
14033
|
+
event.stopPropagation();
|
|
14034
|
+
// Immediately emit before DOM resets or reflows
|
|
14035
|
+
var currentValue = this.model;
|
|
14036
|
+
this.search.next(currentValue);
|
|
14037
|
+
}
|
|
14034
14038
|
};
|
|
14035
14039
|
InputScannerComponent.prototype.triggerCodeScanned = function (code) {
|
|
14036
14040
|
this._clearTimeout();
|