@colijnit/corecomponents_v12 258.1.24 → 258.1.25
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 +15 -8
- 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 +28 -8
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/list-of-icons/style/_layout.scss +1 -0
- package/lib/core/enum/batch-delivery-category.enum.d.ts +10 -0
- package/package.json +1 -1
|
@@ -12311,6 +12311,19 @@
|
|
|
12311
12311
|
},] }
|
|
12312
12312
|
];
|
|
12313
12313
|
|
|
12314
|
+
// Values are corresponding dictionary keys in text_nl.
|
|
12315
|
+
var BatchDeliveryCategory;
|
|
12316
|
+
(function (BatchDeliveryCategory) {
|
|
12317
|
+
BatchDeliveryCategory["Overview"] = "OVERVIEW";
|
|
12318
|
+
BatchDeliveryCategory["Purchase"] = "COST_OF_SALES";
|
|
12319
|
+
BatchDeliveryCategory["Allocate"] = "ALLOCATION";
|
|
12320
|
+
BatchDeliveryCategory["Logistics"] = "LOGISTICS";
|
|
12321
|
+
BatchDeliveryCategory["DeliveryOrder"] = "DELIVERY_ORDER";
|
|
12322
|
+
BatchDeliveryCategory["Invoice"] = "INVOICE";
|
|
12323
|
+
BatchDeliveryCategory["ToPick"] = "TO_PICK";
|
|
12324
|
+
BatchDeliveryCategory["Picked"] = "PICKED";
|
|
12325
|
+
})(BatchDeliveryCategory || (BatchDeliveryCategory = {}));
|
|
12326
|
+
|
|
12314
12327
|
var ListOfIconsComponent = /** @class */ (function () {
|
|
12315
12328
|
function ListOfIconsComponent(iconCacheService, icons) {
|
|
12316
12329
|
this.iconCacheService = iconCacheService;
|
|
@@ -12322,8 +12335,8 @@
|
|
|
12322
12335
|
this.showSubCategories = false;
|
|
12323
12336
|
this._collection = [];
|
|
12324
12337
|
this.subCategories = [
|
|
12325
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label:
|
|
12326
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label:
|
|
12338
|
+
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label: BatchDeliveryCategory.ToPick },
|
|
12339
|
+
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label: BatchDeliveryCategory.Picked }
|
|
12327
12340
|
];
|
|
12328
12341
|
}
|
|
12329
12342
|
Object.defineProperty(ListOfIconsComponent.prototype, "collection", {
|
|
@@ -12348,7 +12361,7 @@
|
|
|
12348
12361
|
this.showMenu = !this.showMenu;
|
|
12349
12362
|
};
|
|
12350
12363
|
ListOfIconsComponent.prototype.selectItem = function (item) {
|
|
12351
|
-
if (item.label.toUpperCase() ===
|
|
12364
|
+
if (item.label.toUpperCase() === BatchDeliveryCategory.Logistics) {
|
|
12352
12365
|
this.showSubCategories = !this.showSubCategories;
|
|
12353
12366
|
return;
|
|
12354
12367
|
}
|
|
@@ -12370,7 +12383,7 @@
|
|
|
12370
12383
|
ListOfIconsComponent.decorators = [
|
|
12371
12384
|
{ type: i0.Component, args: [{
|
|
12372
12385
|
selector: 'co-list-of-icons',
|
|
12373
|
-
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
|
|
12386
|
+
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 ",
|
|
12374
12387
|
encapsulation: i0.ViewEncapsulation.None
|
|
12375
12388
|
},] }
|
|
12376
12389
|
];
|
|
@@ -12397,7 +12410,8 @@
|
|
|
12397
12410
|
common.CommonModule,
|
|
12398
12411
|
forms.FormsModule,
|
|
12399
12412
|
IconModule,
|
|
12400
|
-
ClickoutsideModule
|
|
12413
|
+
ClickoutsideModule,
|
|
12414
|
+
CoreComponentsTranslationModule
|
|
12401
12415
|
],
|
|
12402
12416
|
declarations: [
|
|
12403
12417
|
ListOfIconsComponent
|