@colijnit/corecomponents_v12 259.1.8 → 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.
@@ -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=\"text\"\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 ",
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; })
@@ -9130,7 +9130,8 @@
9130
9130
  PopupMessageDisplayComponent.decorators = [
9131
9131
  { type: i0.Component, args: [{
9132
9132
  selector: "co-popup-message-display",
9133
- template: "\n <span *ngIf=\"!image\" class=\"message\" [textContent]=\"message\"></span>\n <img *ngIf=\"image\" [src]=\"message\"/>\n <ng-container *ngIf=\"details\" label=\"DETAILS\">\n <div class=\"overflow-y-auto overflow-x-hidden details\">\n <span class=\"message wrap\" [textContent]=\"details\" style=\"overflow-wrap: break-word;\"></span>\n </div>\n <span class=\"details-link\" [textContent]=\"'COPY_MESSAGE_TO_CLIPBOARD'\" (click)=\"handleCopyClick()\"></span>\n </ng-container>\n "
9133
+ template: "\n <span *ngIf=\"!image\" class=\"message\" [textContent]=\"message\"></span>\n <img class=\"popup-image\" *ngIf=\"image\" [src]=\"message\"/>\n <ng-container *ngIf=\"details\" label=\"DETAILS\">\n <div class=\"overflow-y-auto overflow-x-hidden details\">\n <span class=\"message wrap\" [textContent]=\"details\" style=\"overflow-wrap: break-word;\"></span>\n </div>\n <span class=\"details-link\" [textContent]=\"'COPY_MESSAGE_TO_CLIPBOARD'\" (click)=\"handleCopyClick()\"></span>\n </ng-container>\n ",
9134
+ styles: [":host .popup-image{width:100%;height:100%;object-fit:contain}\n"]
9134
9135
  },] }
9135
9136
  ];
9136
9137
  PopupMessageDisplayComponent.ctorParameters = function () { return []; };
@@ -12675,6 +12676,7 @@
12675
12676
  this.sliderDefaultMin = 0;
12676
12677
  this.sliderDefaultMax = 100000;
12677
12678
  this.fullRangeIsNull = false;
12679
+ this.canFilterByCode = false;
12678
12680
  this.modelChange = new i0.EventEmitter();
12679
12681
  this.collectionChange = new i0.EventEmitter();
12680
12682
  this.filterButtonClicked = new i0.EventEmitter();
@@ -12845,6 +12847,7 @@
12845
12847
  var _a, _b;
12846
12848
  return __awaiter(this, void 0, void 0, function () {
12847
12849
  var _g, filterText, filteredItemCount;
12850
+ var _this = this;
12848
12851
  return __generator(this, function (_h) {
12849
12852
  switch (_h.label) {
12850
12853
  case 0:
@@ -12873,9 +12876,15 @@
12873
12876
  filterText = (_a = this.filterText) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
12874
12877
  filteredItemCount = 0;
12875
12878
  this.filteredCollection = (_b = this.collection) === null || _b === void 0 ? void 0 : _b.filter(function (item) {
12876
- var _a;
12879
+ var _a, _b;
12877
12880
  var labelText = (_a = item.description) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
12878
- var isHiddenByFilter = ((labelText === null || labelText === void 0 ? void 0 : labelText.indexOf(filterText)) === -1);
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;
12879
12888
  if (isHiddenByFilter) {
12880
12889
  return false;
12881
12890
  }
@@ -13293,6 +13302,7 @@
13293
13302
  sliderDefaultMin: [{ type: i0.Input }],
13294
13303
  sliderDefaultMax: [{ type: i0.Input }],
13295
13304
  fullRangeIsNull: [{ type: i0.Input }],
13305
+ canFilterByCode: [{ type: i0.Input }],
13296
13306
  model: [{ type: i0.Input }],
13297
13307
  modelChange: [{ type: i0.Output }],
13298
13308
  collectionChange: [{ type: i0.Output }],