@colijnit/corecomponents_v12 260.1.7 → 260.1.9
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 +6 -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 +32 -32
- package/esm2015/lib/model/icon-list-item.js +1 -1
- package/fesm2015/colijnit-corecomponents_v12.js +31 -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/colijnit-corecomponents_v12-260.1.6.tgz +0 -0
- package/esm2015/lib/core/enum/batch-delivery-category.enum.js +0 -13
- package/lib/core/enum/batch-delivery-category.enum.d.ts +0 -10
|
@@ -12398,22 +12398,8 @@
|
|
|
12398
12398
|
},] }
|
|
12399
12399
|
];
|
|
12400
12400
|
|
|
12401
|
-
// Values are corresponding dictionary keys in text_nl.
|
|
12402
|
-
var BatchDeliveryCategory;
|
|
12403
|
-
(function (BatchDeliveryCategory) {
|
|
12404
|
-
BatchDeliveryCategory["Overview"] = "OVERVIEW";
|
|
12405
|
-
BatchDeliveryCategory["Purchase"] = "COST_OF_SALES";
|
|
12406
|
-
BatchDeliveryCategory["Allocate"] = "ALLOCATION";
|
|
12407
|
-
BatchDeliveryCategory["Logistics"] = "LOGISTICS";
|
|
12408
|
-
BatchDeliveryCategory["DeliveryOrder"] = "DELIVERY_ORDER";
|
|
12409
|
-
BatchDeliveryCategory["Invoice"] = "INVOICE";
|
|
12410
|
-
BatchDeliveryCategory["ToPick"] = "TO_PICK";
|
|
12411
|
-
BatchDeliveryCategory["Picked"] = "PICKED";
|
|
12412
|
-
})(BatchDeliveryCategory || (BatchDeliveryCategory = {}));
|
|
12413
|
-
|
|
12414
12401
|
var ListOfIconsComponent = /** @class */ (function () {
|
|
12415
|
-
function ListOfIconsComponent(
|
|
12416
|
-
this.iconCacheService = iconCacheService;
|
|
12402
|
+
function ListOfIconsComponent(icons) {
|
|
12417
12403
|
this.icons = icons;
|
|
12418
12404
|
this.iconSize = 25;
|
|
12419
12405
|
this.itemSelected = new i0.EventEmitter();
|
|
@@ -12421,10 +12407,6 @@
|
|
|
12421
12407
|
this.showMenu = false;
|
|
12422
12408
|
this.showSubCategories = false;
|
|
12423
12409
|
this._collection = [];
|
|
12424
|
-
this.subCategories = [
|
|
12425
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label: BatchDeliveryCategory.ToPick },
|
|
12426
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label: BatchDeliveryCategory.Picked }
|
|
12427
|
-
];
|
|
12428
12410
|
}
|
|
12429
12411
|
Object.defineProperty(ListOfIconsComponent.prototype, "collection", {
|
|
12430
12412
|
get: function () {
|
|
@@ -12432,6 +12414,7 @@
|
|
|
12432
12414
|
},
|
|
12433
12415
|
set: function (value) {
|
|
12434
12416
|
this._collection = value || [];
|
|
12417
|
+
this.activeItem = this.collection[0];
|
|
12435
12418
|
},
|
|
12436
12419
|
enumerable: false,
|
|
12437
12420
|
configurable: true
|
|
@@ -12448,7 +12431,7 @@
|
|
|
12448
12431
|
this.showMenu = !this.showMenu;
|
|
12449
12432
|
};
|
|
12450
12433
|
ListOfIconsComponent.prototype.selectItem = function (item) {
|
|
12451
|
-
if (item.
|
|
12434
|
+
if (item.children) {
|
|
12452
12435
|
this.showSubCategories = !this.showSubCategories;
|
|
12453
12436
|
return;
|
|
12454
12437
|
}
|
|
@@ -12457,8 +12440,9 @@
|
|
|
12457
12440
|
this.itemSelected.emit(this.activeItem);
|
|
12458
12441
|
};
|
|
12459
12442
|
ListOfIconsComponent.prototype.handlePickingCategoryClicked = function (subCategory) {
|
|
12460
|
-
this.
|
|
12443
|
+
this.activeItem = subCategory;
|
|
12461
12444
|
this.showMenu = false;
|
|
12445
|
+
this.itemSelected.emit(subCategory);
|
|
12462
12446
|
this.showSubCategories = false;
|
|
12463
12447
|
};
|
|
12464
12448
|
ListOfIconsComponent.prototype.onClickOutside = function () {
|
|
@@ -12470,12 +12454,11 @@
|
|
|
12470
12454
|
ListOfIconsComponent.decorators = [
|
|
12471
12455
|
{ type: i0.Component, args: [{
|
|
12472
12456
|
selector: 'co-list-of-icons',
|
|
12473
|
-
template: "\n
|
|
12457
|
+
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\n class=\"icon-item\"\n [class.active]=\"item === activeItem\"\n *ngFor=\"let item of collection\" (click)=\"selectItem(item)\">\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 ",
|
|
12474
12458
|
encapsulation: i0.ViewEncapsulation.None
|
|
12475
12459
|
},] }
|
|
12476
12460
|
];
|
|
12477
12461
|
ListOfIconsComponent.ctorParameters = function () { return [
|
|
12478
|
-
{ type: IconCacheService },
|
|
12479
12462
|
{ type: IconCacheService }
|
|
12480
12463
|
]; };
|
|
12481
12464
|
ListOfIconsComponent.propDecorators = {
|