@colijnit/corecomponents_v12 260.1.1 → 260.1.3

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.
@@ -11784,12 +11784,13 @@
11784
11784
  case KeyboardKey.Up:
11785
11785
  this.selectNextOption(true);
11786
11786
  return false;
11787
- case KeyboardKey.SpaceBar:
11787
+ case KeyboardKey.Enter:
11788
11788
  if (this.highLightModel) {
11789
11789
  this.selectViewModel(this.highLightModel, false);
11790
11790
  }
11791
11791
  else {
11792
11792
  this.keyDown.next(event);
11793
+ return true;
11793
11794
  }
11794
11795
  return false;
11795
11796
  default:
@@ -12360,6 +12361,19 @@
12360
12361
  },] }
12361
12362
  ];
12362
12363
 
12364
+ // Values are corresponding dictionary keys in text_nl.
12365
+ var BatchDeliveryCategory;
12366
+ (function (BatchDeliveryCategory) {
12367
+ BatchDeliveryCategory["Overview"] = "OVERVIEW";
12368
+ BatchDeliveryCategory["Purchase"] = "COST_OF_SALES";
12369
+ BatchDeliveryCategory["Allocate"] = "ALLOCATION";
12370
+ BatchDeliveryCategory["Logistics"] = "LOGISTICS";
12371
+ BatchDeliveryCategory["DeliveryOrder"] = "DELIVERY_ORDER";
12372
+ BatchDeliveryCategory["Invoice"] = "INVOICE";
12373
+ BatchDeliveryCategory["ToPick"] = "TO_PICK";
12374
+ BatchDeliveryCategory["Picked"] = "PICKED";
12375
+ })(BatchDeliveryCategory || (BatchDeliveryCategory = {}));
12376
+
12363
12377
  var ListOfIconsComponent = /** @class */ (function () {
12364
12378
  function ListOfIconsComponent(iconCacheService, icons) {
12365
12379
  this.iconCacheService = iconCacheService;
@@ -12371,8 +12385,8 @@
12371
12385
  this.showSubCategories = false;
12372
12386
  this._collection = [];
12373
12387
  this.subCategories = [
12374
- { icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label: 'To be picked' },
12375
- { icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label: 'Picked' }
12388
+ { icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label: BatchDeliveryCategory.ToPick },
12389
+ { icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label: BatchDeliveryCategory.Picked }
12376
12390
  ];
12377
12391
  }
12378
12392
  Object.defineProperty(ListOfIconsComponent.prototype, "collection", {
@@ -12397,7 +12411,7 @@
12397
12411
  this.showMenu = !this.showMenu;
12398
12412
  };
12399
12413
  ListOfIconsComponent.prototype.selectItem = function (item) {
12400
- if (item.label.toUpperCase() === 'LOGISTICS' || item.label.toUpperCase() === 'LOGISTIEK') {
12414
+ if (item.label === BatchDeliveryCategory.Logistics) {
12401
12415
  this.showSubCategories = !this.showSubCategories;
12402
12416
  return;
12403
12417
  }
@@ -12419,7 +12433,7 @@
12419
12433
  ListOfIconsComponent.decorators = [
12420
12434
  { type: i0.Component, args: [{
12421
12435
  selector: 'co-list-of-icons',
12422
- 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 ",
12436
+ 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 ",
12423
12437
  encapsulation: i0.ViewEncapsulation.None
12424
12438
  },] }
12425
12439
  ];
@@ -12446,7 +12460,8 @@
12446
12460
  common.CommonModule,
12447
12461
  forms.FormsModule,
12448
12462
  IconModule,
12449
- ClickoutsideModule
12463
+ ClickoutsideModule,
12464
+ CoreComponentsTranslationModule
12450
12465
  ],
12451
12466
  declarations: [
12452
12467
  ListOfIconsComponent
@@ -15375,7 +15390,7 @@
15375
15390
  return;
15376
15391
  }
15377
15392
  //Move between calendars is still too buggy
15378
- // this.moveBetweenCalendarsEvent.emit({hour: hour, data: parsed});
15393
+ this.moveBetweenCalendarsEvent.emit({ hour: hour, data: parsed });
15379
15394
  }
15380
15395
  };
15381
15396
  HourSchedulingExpandableComponent.prototype.allowDrop = function (event, hour) {
@@ -15626,6 +15641,26 @@
15626
15641
  showClass: [{ type: i0.HostBinding, args: ["class.co-hour-scheduling-expandable-template",] }]
15627
15642
  };
15628
15643
 
15644
+ var HourSchedulingExpandableTemplateModule = /** @class */ (function () {
15645
+ function HourSchedulingExpandableTemplateModule() {
15646
+ }
15647
+ return HourSchedulingExpandableTemplateModule;
15648
+ }());
15649
+ HourSchedulingExpandableTemplateModule.decorators = [
15650
+ { type: i0.NgModule, args: [{
15651
+ imports: [
15652
+ common.CommonModule,
15653
+ ],
15654
+ declarations: [
15655
+ HourSchedulingExpandableTemplateComponent
15656
+ ],
15657
+ exports: [
15658
+ HourSchedulingExpandableTemplateComponent
15659
+ ],
15660
+ providers: [common.DatePipe]
15661
+ },] }
15662
+ ];
15663
+
15629
15664
  var HourSchedulingTestObjectComponent = /** @class */ (function () {
15630
15665
  function HourSchedulingTestObjectComponent() {
15631
15666
  }
@@ -15679,14 +15714,13 @@
15679
15714
  imports: [
15680
15715
  common.CommonModule,
15681
15716
  HourSchedulingComponentModule,
15717
+ HourSchedulingExpandableTemplateModule
15682
15718
  ],
15683
15719
  declarations: [
15684
15720
  HourSchedulingExpandableComponent,
15685
- HourSchedulingExpandableTemplateComponent
15686
15721
  ],
15687
15722
  exports: [
15688
15723
  HourSchedulingExpandableComponent,
15689
- HourSchedulingExpandableTemplateComponent
15690
15724
  ],
15691
15725
  providers: [common.DatePipe]
15692
15726
  },] }
@@ -15753,6 +15787,7 @@
15753
15787
  exports.HourSchedulingExpandableComponent = HourSchedulingExpandableComponent;
15754
15788
  exports.HourSchedulingExpandableComponentModule = HourSchedulingExpandableComponentModule;
15755
15789
  exports.HourSchedulingExpandableTemplateComponent = HourSchedulingExpandableTemplateComponent;
15790
+ exports.HourSchedulingExpandableTemplateModule = HourSchedulingExpandableTemplateModule;
15756
15791
  exports.IconCacheService = IconCacheService;
15757
15792
  exports.IconCollapseHandleComponent = IconCollapseHandleComponent;
15758
15793
  exports.IconCollapseHandleModule = IconCollapseHandleModule;