@colijnit/corecomponents_v12 259.1.16 → 259.1.17

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.
@@ -12358,6 +12358,19 @@
12358
12358
  },] }
12359
12359
  ];
12360
12360
 
12361
+ // Values are corresponding dictionary keys in text_nl.
12362
+ var BatchDeliveryCategory;
12363
+ (function (BatchDeliveryCategory) {
12364
+ BatchDeliveryCategory["Overview"] = "OVERVIEW";
12365
+ BatchDeliveryCategory["Purchase"] = "COST_OF_SALES";
12366
+ BatchDeliveryCategory["Allocate"] = "ALLOCATION";
12367
+ BatchDeliveryCategory["Logistics"] = "LOGISTICS";
12368
+ BatchDeliveryCategory["DeliveryOrder"] = "DELIVERY_ORDER";
12369
+ BatchDeliveryCategory["Invoice"] = "INVOICE";
12370
+ BatchDeliveryCategory["ToPick"] = "TO_PICK";
12371
+ BatchDeliveryCategory["Picked"] = "PICKED";
12372
+ })(BatchDeliveryCategory || (BatchDeliveryCategory = {}));
12373
+
12361
12374
  var ListOfIconsComponent = /** @class */ (function () {
12362
12375
  function ListOfIconsComponent(iconCacheService, icons) {
12363
12376
  this.iconCacheService = iconCacheService;
@@ -12369,8 +12382,8 @@
12369
12382
  this.showSubCategories = false;
12370
12383
  this._collection = [];
12371
12384
  this.subCategories = [
12372
- { icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label: 'To be picked' },
12373
- { icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label: 'Picked' }
12385
+ { icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label: BatchDeliveryCategory.ToPick },
12386
+ { icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label: BatchDeliveryCategory.Picked }
12374
12387
  ];
12375
12388
  }
12376
12389
  Object.defineProperty(ListOfIconsComponent.prototype, "collection", {
@@ -12395,7 +12408,7 @@
12395
12408
  this.showMenu = !this.showMenu;
12396
12409
  };
12397
12410
  ListOfIconsComponent.prototype.selectItem = function (item) {
12398
- if (item.label.toUpperCase() === 'LOGISTICS' || item.label.toUpperCase() === 'LOGISTIEK') {
12411
+ if (item.label.toUpperCase() === BatchDeliveryCategory.Logistics) {
12399
12412
  this.showSubCategories = !this.showSubCategories;
12400
12413
  return;
12401
12414
  }
@@ -12417,7 +12430,7 @@
12417
12430
  ListOfIconsComponent.decorators = [
12418
12431
  { type: i0.Component, args: [{
12419
12432
  selector: 'co-list-of-icons',
12420
- template: "\n <div class=\"icon-item active\" [class.menu-opened]=\"showMenu\" (click)=\"toggleMenu()\">\n <co-icon [iconData]=\"activeItem.icon\" [style.width.px]=\"iconSize\" [style.height.px]=\"iconSize\"></co-icon>\n <co-icon *ngIf=\"!showMenu\" class=\"drop-arrow\" [iconData]=\"icons.getIcon(Icon.CaretDownSolid)\"></co-icon>\n <co-icon *ngIf=\"showMenu\" class=\"drop-arrow\" [iconData]=\"icons.getIcon(Icon.CaretUpSolid)\"></co-icon>\n </div>\n <div class=\"dropdown-menu\" *ngIf=\"showMenu\" (clickOutside)=\"onClickOutside()\">\n <div class=\"icon-item\" *ngFor=\"let item of collection\" (click)=\"selectItem(item)\"\n [class.active]=\"item === activeItem\">\n <co-icon [iconData]=\"item.icon\" [style.width.px]=\"iconSize\" [style.height.px]=\"iconSize\"></co-icon>\n <div class=\"label\">{{ item.label }}</div>\n </div>\n <div class=\"picking-type-wrapper\" *ngIf=\"showSubCategories\">\n <div class=\"button-wrapper\" *ngFor=\"let subCategory of subCategories\" (click)=\"handlePickingCategoryClicked(subCategory)\">\n <co-icon class=\"co-transaction-button-bar-icon\" [iconData]=\"subCategory.icon\"></co-icon>\n <span class=\"button-title\">{{subCategory.label}}</span>\n </div>\n </div>\n </div>\n ",
12433
+ template: "\n <div class=\"icon-item active\" [class.menu-opened]=\"showMenu\" (click)=\"toggleMenu()\">\n <co-icon [iconData]=\"activeItem.icon\" [style.width.px]=\"iconSize\" [style.height.px]=\"iconSize\"></co-icon>\n <co-icon *ngIf=\"!showMenu\" class=\"drop-arrow\" [iconData]=\"icons.getIcon(Icon.CaretDownSolid)\"></co-icon>\n <co-icon *ngIf=\"showMenu\" class=\"drop-arrow\" [iconData]=\"icons.getIcon(Icon.CaretUpSolid)\"></co-icon>\n </div>\n <div class=\"dropdown-menu\" *ngIf=\"showMenu\" (clickOutside)=\"onClickOutside()\">\n <div class=\"icon-item\" *ngFor=\"let item of collection\" (click)=\"selectItem(item)\"\n [class.active]=\"item === activeItem\">\n <co-icon [iconData]=\"item.icon\" [style.width.px]=\"iconSize\" [style.height.px]=\"iconSize\"></co-icon>\n <div class=\"label\" [textContent]=\"item.label | coreLocalize\"></div>\n </div>\n <div class=\"picking-type-wrapper\" *ngIf=\"showSubCategories\">\n <div class=\"button-wrapper\" *ngFor=\"let subCategory of subCategories\" (click)=\"handlePickingCategoryClicked(subCategory)\">\n <co-icon\n class=\"co-transaction-button-bar-icon\"\n [iconData]=\"subCategory.icon\"\n [style.width.px]=\"iconSize\"\n [style.height.px]=\"iconSize\">\n </co-icon>\n <span class=\"button-title\" [textContent]=\"subCategory.label | coreLocalize\"></span>\n </div>\n </div>\n </div>\n ",
12421
12434
  encapsulation: i0.ViewEncapsulation.None
12422
12435
  },] }
12423
12436
  ];
@@ -12444,7 +12457,8 @@
12444
12457
  common.CommonModule,
12445
12458
  forms.FormsModule,
12446
12459
  IconModule,
12447
- ClickoutsideModule
12460
+ ClickoutsideModule,
12461
+ CoreComponentsTranslationModule
12448
12462
  ],
12449
12463
  declarations: [
12450
12464
  ListOfIconsComponent