@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.
@@ -7811,7 +7811,7 @@ InputNumberPickerComponent.decorators = [
7811
7811
  </div>
7812
7812
  <div class="input-wrapper">
7813
7813
  <span class='permanent-label' [textContent]="label" *ngIf="showPermanentLabel"></span>
7814
- <input type="text"
7814
+ <input type="number"
7815
7815
  [tabIndex]="readonly ? -1 : 0"
7816
7816
  [ngModel]="model"
7817
7817
  [readonly]="readonly"
@@ -8635,14 +8635,15 @@ PopupMessageDisplayComponent.decorators = [
8635
8635
  selector: "co-popup-message-display",
8636
8636
  template: `
8637
8637
  <span *ngIf="!image" class="message" [textContent]="message"></span>
8638
- <img *ngIf="image" [src]="message"/>
8638
+ <img class="popup-image" *ngIf="image" [src]="message"/>
8639
8639
  <ng-container *ngIf="details" label="DETAILS">
8640
8640
  <div class="overflow-y-auto overflow-x-hidden details">
8641
8641
  <span class="message wrap" [textContent]="details" style="overflow-wrap: break-word;"></span>
8642
8642
  </div>
8643
8643
  <span class="details-link" [textContent]="'COPY_MESSAGE_TO_CLIPBOARD'" (click)="handleCopyClick()"></span>
8644
8644
  </ng-container>
8645
- `
8645
+ `,
8646
+ styles: [":host .popup-image{width:100%;height:100%;object-fit:contain}\n"]
8646
8647
  },] }
8647
8648
  ];
8648
8649
  PopupMessageDisplayComponent.ctorParameters = () => [];
@@ -12279,6 +12280,7 @@ class FilterItemComponent {
12279
12280
  this.sliderDefaultMin = 0;
12280
12281
  this.sliderDefaultMax = 100000;
12281
12282
  this.fullRangeIsNull = false;
12283
+ this.canFilterByCode = false;
12282
12284
  this.modelChange = new EventEmitter();
12283
12285
  this.collectionChange = new EventEmitter();
12284
12286
  this.filterButtonClicked = new EventEmitter();
@@ -12446,9 +12448,15 @@ class FilterItemComponent {
12446
12448
  const filterText = (_a = this.filterText) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
12447
12449
  let filteredItemCount = 0;
12448
12450
  this.filteredCollection = (_b = this.collection) === null || _b === void 0 ? void 0 : _b.filter((item) => {
12449
- var _a;
12451
+ var _a, _b;
12450
12452
  const labelText = (_a = item.description) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
12451
- const isHiddenByFilter = ((labelText === null || labelText === void 0 ? void 0 : labelText.indexOf(filterText)) === -1);
12453
+ const matchesDescription = (labelText === null || labelText === void 0 ? void 0 : labelText.indexOf(filterText)) !== -1;
12454
+ let matchesCode = false;
12455
+ if (this.canFilterByCode) {
12456
+ const codeText = (_b = item.code) === null || _b === void 0 ? void 0 : _b.toString().toLowerCase();
12457
+ matchesCode = (codeText === null || codeText === void 0 ? void 0 : codeText.indexOf(filterText)) !== -1;
12458
+ }
12459
+ const isHiddenByFilter = !matchesDescription && !matchesCode;
12452
12460
  if (isHiddenByFilter) {
12453
12461
  return false;
12454
12462
  }
@@ -12989,6 +12997,7 @@ FilterItemComponent.propDecorators = {
12989
12997
  sliderDefaultMin: [{ type: Input }],
12990
12998
  sliderDefaultMax: [{ type: Input }],
12991
12999
  fullRangeIsNull: [{ type: Input }],
13000
+ canFilterByCode: [{ type: Input }],
12992
13001
  model: [{ type: Input }],
12993
13002
  modelChange: [{ type: Output }],
12994
13003
  collectionChange: [{ type: Output }],