@colijnit/corecomponents_v12 259.1.9 → 259.1.10
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 +12 -3
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/filter-item/filter-item.component.js +11 -3
- package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +2 -2
- package/fesm2015/colijnit-corecomponents_v12.js +11 -3
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/filter-item/filter-item.component.d.ts +1 -0
- package/package.json +1 -1
- package/colijnit-corecomponents_v12-259.1.8.tgz +0 -0
|
@@ -8323,7 +8323,7 @@
|
|
|
8323
8323
|
InputNumberPickerComponent.decorators = [
|
|
8324
8324
|
{ type: i0.Component, args: [{
|
|
8325
8325
|
selector: 'co-input-number-picker',
|
|
8326
|
-
template: "\n <div class=\"icon-wrapper\" *ngIf=\"leftIconData\">\n <co-icon class=\"input-number-picker-icon\" [iconData]=\"leftIconData\" (click)=\"iconClick.emit($event)\"></co-icon>\n <div class=\"spacer\"></div>\n </div>\n <div class=\"button-wrapper\">\n <co-button *ngIf=\"showButtons\" class=\"minus-operator\" [class.select]=\"minSelected\" tabindex=\"-1\"\n [disabled]=\"readonly\"\n [iconData]=\"iconCacheService.getIcon(minusIcon)\"\n (mousedown)=\"onMinusMouseDown($event)\"\n (mouseup)=\"stopAutoCounting()\" (mouseleave)=\"stopAutoCounting()\"></co-button>\n </div>\n <div class=\"input-wrapper\">\n <span class='permanent-label' [textContent]=\"label\" *ngIf=\"showPermanentLabel\"></span>\n <input type=\"
|
|
8326
|
+
template: "\n <div class=\"icon-wrapper\" *ngIf=\"leftIconData\">\n <co-icon class=\"input-number-picker-icon\" [iconData]=\"leftIconData\" (click)=\"iconClick.emit($event)\"></co-icon>\n <div class=\"spacer\"></div>\n </div>\n <div class=\"button-wrapper\">\n <co-button *ngIf=\"showButtons\" class=\"minus-operator\" [class.select]=\"minSelected\" tabindex=\"-1\"\n [disabled]=\"readonly\"\n [iconData]=\"iconCacheService.getIcon(minusIcon)\"\n (mousedown)=\"onMinusMouseDown($event)\"\n (mouseup)=\"stopAutoCounting()\" (mouseleave)=\"stopAutoCounting()\"></co-button>\n </div>\n <div class=\"input-wrapper\">\n <span class='permanent-label' [textContent]=\"label\" *ngIf=\"showPermanentLabel\"></span>\n <input type=\"number\"\n [tabIndex]=\"readonly ? -1 : 0\"\n [ngModel]=\"model\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [placeholder]=\"label\"\n (ngModelChange)=\"handleChangeModel($event)\"\n (keydown)=\"handleInputKeyDown($event)\"\n (blur)=\"handleBlur()\"/>\n </div>\n <div class=\"button-wrapper\">\n <co-button *ngIf=\"showButtons\" class=\"plus-operator\" [class.select]=\"plusSelected\" tabindex=\"-1\"\n [disabled]=\"readonly\"\n [iconData]=\"iconCacheService.getIcon(plusIcon)\"\n (mousedown)=\"onPlusMouseDown($event)\"\n (mouseup)=\"stopAutoCounting()\" (mouseleave)=\"stopAutoCounting()\"></co-button>\n </div>\n ",
|
|
8327
8327
|
providers: [
|
|
8328
8328
|
OverlayService, {
|
|
8329
8329
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputNumberPickerComponent; })
|
|
@@ -12676,6 +12676,7 @@
|
|
|
12676
12676
|
this.sliderDefaultMin = 0;
|
|
12677
12677
|
this.sliderDefaultMax = 100000;
|
|
12678
12678
|
this.fullRangeIsNull = false;
|
|
12679
|
+
this.canFilterByCode = false;
|
|
12679
12680
|
this.modelChange = new i0.EventEmitter();
|
|
12680
12681
|
this.collectionChange = new i0.EventEmitter();
|
|
12681
12682
|
this.filterButtonClicked = new i0.EventEmitter();
|
|
@@ -12846,6 +12847,7 @@
|
|
|
12846
12847
|
var _a, _b;
|
|
12847
12848
|
return __awaiter(this, void 0, void 0, function () {
|
|
12848
12849
|
var _g, filterText, filteredItemCount;
|
|
12850
|
+
var _this = this;
|
|
12849
12851
|
return __generator(this, function (_h) {
|
|
12850
12852
|
switch (_h.label) {
|
|
12851
12853
|
case 0:
|
|
@@ -12874,9 +12876,15 @@
|
|
|
12874
12876
|
filterText = (_a = this.filterText) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
|
|
12875
12877
|
filteredItemCount = 0;
|
|
12876
12878
|
this.filteredCollection = (_b = this.collection) === null || _b === void 0 ? void 0 : _b.filter(function (item) {
|
|
12877
|
-
var _a;
|
|
12879
|
+
var _a, _b;
|
|
12878
12880
|
var labelText = (_a = item.description) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
|
|
12879
|
-
var
|
|
12881
|
+
var matchesDescription = (labelText === null || labelText === void 0 ? void 0 : labelText.indexOf(filterText)) !== -1;
|
|
12882
|
+
var matchesCode = false;
|
|
12883
|
+
if (_this.canFilterByCode) {
|
|
12884
|
+
var codeText = (_b = item.code) === null || _b === void 0 ? void 0 : _b.toString().toLowerCase();
|
|
12885
|
+
matchesCode = (codeText === null || codeText === void 0 ? void 0 : codeText.indexOf(filterText)) !== -1;
|
|
12886
|
+
}
|
|
12887
|
+
var isHiddenByFilter = !matchesDescription && !matchesCode;
|
|
12880
12888
|
if (isHiddenByFilter) {
|
|
12881
12889
|
return false;
|
|
12882
12890
|
}
|
|
@@ -13294,6 +13302,7 @@
|
|
|
13294
13302
|
sliderDefaultMin: [{ type: i0.Input }],
|
|
13295
13303
|
sliderDefaultMax: [{ type: i0.Input }],
|
|
13296
13304
|
fullRangeIsNull: [{ type: i0.Input }],
|
|
13305
|
+
canFilterByCode: [{ type: i0.Input }],
|
|
13297
13306
|
model: [{ type: i0.Input }],
|
|
13298
13307
|
modelChange: [{ type: i0.Output }],
|
|
13299
13308
|
collectionChange: [{ type: i0.Output }],
|