@colijnit/corecomponents_v12 260.1.1 → 260.1.2
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 +19 -5
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- 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/core/enum/batch-delivery-category.enum.js +13 -0
- package/fesm2015/colijnit-corecomponents_v12.js +26 -7
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- 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
|
@@ -12360,6 +12360,19 @@
|
|
|
12360
12360
|
},] }
|
|
12361
12361
|
];
|
|
12362
12362
|
|
|
12363
|
+
// Values are corresponding dictionary keys in text_nl.
|
|
12364
|
+
var BatchDeliveryCategory;
|
|
12365
|
+
(function (BatchDeliveryCategory) {
|
|
12366
|
+
BatchDeliveryCategory["Overview"] = "OVERVIEW";
|
|
12367
|
+
BatchDeliveryCategory["Purchase"] = "COST_OF_SALES";
|
|
12368
|
+
BatchDeliveryCategory["Allocate"] = "ALLOCATION";
|
|
12369
|
+
BatchDeliveryCategory["Logistics"] = "LOGISTICS";
|
|
12370
|
+
BatchDeliveryCategory["DeliveryOrder"] = "DELIVERY_ORDER";
|
|
12371
|
+
BatchDeliveryCategory["Invoice"] = "INVOICE";
|
|
12372
|
+
BatchDeliveryCategory["ToPick"] = "TO_PICK";
|
|
12373
|
+
BatchDeliveryCategory["Picked"] = "PICKED";
|
|
12374
|
+
})(BatchDeliveryCategory || (BatchDeliveryCategory = {}));
|
|
12375
|
+
|
|
12363
12376
|
var ListOfIconsComponent = /** @class */ (function () {
|
|
12364
12377
|
function ListOfIconsComponent(iconCacheService, icons) {
|
|
12365
12378
|
this.iconCacheService = iconCacheService;
|
|
@@ -12371,8 +12384,8 @@
|
|
|
12371
12384
|
this.showSubCategories = false;
|
|
12372
12385
|
this._collection = [];
|
|
12373
12386
|
this.subCategories = [
|
|
12374
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label:
|
|
12375
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label:
|
|
12387
|
+
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label: BatchDeliveryCategory.ToPick },
|
|
12388
|
+
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label: BatchDeliveryCategory.Picked }
|
|
12376
12389
|
];
|
|
12377
12390
|
}
|
|
12378
12391
|
Object.defineProperty(ListOfIconsComponent.prototype, "collection", {
|
|
@@ -12397,7 +12410,7 @@
|
|
|
12397
12410
|
this.showMenu = !this.showMenu;
|
|
12398
12411
|
};
|
|
12399
12412
|
ListOfIconsComponent.prototype.selectItem = function (item) {
|
|
12400
|
-
if (item.label
|
|
12413
|
+
if (item.label === BatchDeliveryCategory.Logistics) {
|
|
12401
12414
|
this.showSubCategories = !this.showSubCategories;
|
|
12402
12415
|
return;
|
|
12403
12416
|
}
|
|
@@ -12419,7 +12432,7 @@
|
|
|
12419
12432
|
ListOfIconsComponent.decorators = [
|
|
12420
12433
|
{ type: i0.Component, args: [{
|
|
12421
12434
|
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\"
|
|
12435
|
+
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
12436
|
encapsulation: i0.ViewEncapsulation.None
|
|
12424
12437
|
},] }
|
|
12425
12438
|
];
|
|
@@ -12446,7 +12459,8 @@
|
|
|
12446
12459
|
common.CommonModule,
|
|
12447
12460
|
forms.FormsModule,
|
|
12448
12461
|
IconModule,
|
|
12449
|
-
ClickoutsideModule
|
|
12462
|
+
ClickoutsideModule,
|
|
12463
|
+
CoreComponentsTranslationModule
|
|
12450
12464
|
],
|
|
12451
12465
|
declarations: [
|
|
12452
12466
|
ListOfIconsComponent
|