@colijnit/corecomponents_v12 259.1.20 → 259.1.21
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 +5 -23
- 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 +29 -32
- package/esm2015/lib/model/icon-list-item.js +1 -1
- package/fesm2015/colijnit-corecomponents_v12.js +28 -43
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/list-of-icons/list-of-icons.component.d.ts +1 -3
- package/lib/components/list-of-icons/style/_layout.scss +3 -2
- package/lib/model/icon-list-item.d.ts +1 -0
- package/package.json +1 -1
- package/esm2015/lib/core/enum/batch-delivery-category.enum.js +0 -13
- package/lib/core/enum/batch-delivery-category.enum.d.ts +0 -10
|
@@ -12367,22 +12367,8 @@
|
|
|
12367
12367
|
},] }
|
|
12368
12368
|
];
|
|
12369
12369
|
|
|
12370
|
-
// Values are corresponding dictionary keys in text_nl.
|
|
12371
|
-
var BatchDeliveryCategory;
|
|
12372
|
-
(function (BatchDeliveryCategory) {
|
|
12373
|
-
BatchDeliveryCategory["Overview"] = "OVERVIEW";
|
|
12374
|
-
BatchDeliveryCategory["Purchase"] = "COST_OF_SALES";
|
|
12375
|
-
BatchDeliveryCategory["Allocate"] = "ALLOCATION";
|
|
12376
|
-
BatchDeliveryCategory["Logistics"] = "LOGISTICS";
|
|
12377
|
-
BatchDeliveryCategory["DeliveryOrder"] = "DELIVERY_ORDER";
|
|
12378
|
-
BatchDeliveryCategory["Invoice"] = "INVOICE";
|
|
12379
|
-
BatchDeliveryCategory["ToPick"] = "TO_PICK";
|
|
12380
|
-
BatchDeliveryCategory["Picked"] = "PICKED";
|
|
12381
|
-
})(BatchDeliveryCategory || (BatchDeliveryCategory = {}));
|
|
12382
|
-
|
|
12383
12370
|
var ListOfIconsComponent = /** @class */ (function () {
|
|
12384
|
-
function ListOfIconsComponent(
|
|
12385
|
-
this.iconCacheService = iconCacheService;
|
|
12371
|
+
function ListOfIconsComponent(icons) {
|
|
12386
12372
|
this.icons = icons;
|
|
12387
12373
|
this.iconSize = 25;
|
|
12388
12374
|
this.itemSelected = new i0.EventEmitter();
|
|
@@ -12390,10 +12376,6 @@
|
|
|
12390
12376
|
this.showMenu = false;
|
|
12391
12377
|
this.showSubCategories = false;
|
|
12392
12378
|
this._collection = [];
|
|
12393
|
-
this.subCategories = [
|
|
12394
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label: BatchDeliveryCategory.ToPick },
|
|
12395
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label: BatchDeliveryCategory.Picked }
|
|
12396
|
-
];
|
|
12397
12379
|
}
|
|
12398
12380
|
Object.defineProperty(ListOfIconsComponent.prototype, "collection", {
|
|
12399
12381
|
get: function () {
|
|
@@ -12418,7 +12400,7 @@
|
|
|
12418
12400
|
this.showMenu = !this.showMenu;
|
|
12419
12401
|
};
|
|
12420
12402
|
ListOfIconsComponent.prototype.selectItem = function (item) {
|
|
12421
|
-
if (item.
|
|
12403
|
+
if (item.children) {
|
|
12422
12404
|
this.showSubCategories = !this.showSubCategories;
|
|
12423
12405
|
return;
|
|
12424
12406
|
}
|
|
@@ -12427,8 +12409,9 @@
|
|
|
12427
12409
|
this.itemSelected.emit(this.activeItem);
|
|
12428
12410
|
};
|
|
12429
12411
|
ListOfIconsComponent.prototype.handlePickingCategoryClicked = function (subCategory) {
|
|
12430
|
-
this.
|
|
12412
|
+
this.activeItem = subCategory;
|
|
12431
12413
|
this.showMenu = false;
|
|
12414
|
+
this.itemSelected.emit(subCategory);
|
|
12432
12415
|
this.showSubCategories = false;
|
|
12433
12416
|
};
|
|
12434
12417
|
ListOfIconsComponent.prototype.onClickOutside = function () {
|
|
@@ -12440,12 +12423,11 @@
|
|
|
12440
12423
|
ListOfIconsComponent.decorators = [
|
|
12441
12424
|
{ type: i0.Component, args: [{
|
|
12442
12425
|
selector: 'co-list-of-icons',
|
|
12443
|
-
template: "\n
|
|
12426
|
+
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 class=\"picking-type-wrapper\" *ngIf=\"showSubCategories && item.children?.length > 0\">\n <div\n class=\"button-wrapper\"\n *ngFor=\"let subCategory of item.children\"\n (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 </div>\n ",
|
|
12444
12427
|
encapsulation: i0.ViewEncapsulation.None
|
|
12445
12428
|
},] }
|
|
12446
12429
|
];
|
|
12447
12430
|
ListOfIconsComponent.ctorParameters = function () { return [
|
|
12448
|
-
{ type: IconCacheService },
|
|
12449
12431
|
{ type: IconCacheService }
|
|
12450
12432
|
]; };
|
|
12451
12433
|
ListOfIconsComponent.propDecorators = {
|