@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.
- package/bundles/colijnit-corecomponents_v12.umd.js +44 -9
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.module.js +20 -0
- package/esm2015/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.component.js +2 -2
- package/esm2015/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.module.js +3 -4
- package/esm2015/lib/components/list-of-icons/list-of-icons.component.js +13 -7
- package/esm2015/lib/components/list-of-icons/list-of-icons.module.js +4 -2
- package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +3 -2
- package/esm2015/lib/core/enum/batch-delivery-category.enum.js +13 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/colijnit-corecomponents_v12.js +48 -12
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.module.d.ts +2 -0
- package/lib/components/list-of-icons/style/_layout.scss +10 -6
- package/lib/core/enum/batch-delivery-category.enum.d.ts +10 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -11784,12 +11784,13 @@
|
|
|
11784
11784
|
case KeyboardKey.Up:
|
|
11785
11785
|
this.selectNextOption(true);
|
|
11786
11786
|
return false;
|
|
11787
|
-
case KeyboardKey.
|
|
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:
|
|
12375
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label:
|
|
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
|
|
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\"
|
|
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
|
-
|
|
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;
|