@colijnit/corecomponents_v12 258.1.24 → 258.1.26
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 +22 -6
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +24 -21
- 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 +50 -27
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/input-date-picker/input-date-picker.component.d.ts +1 -0
- 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
|
@@ -5960,6 +5960,7 @@
|
|
|
5960
5960
|
_this.formUserChangeListener = formUserChangeListener;
|
|
5961
5961
|
_this.ngZoneWrapper = ngZoneWrapper;
|
|
5962
5962
|
_this.elementRef = elementRef;
|
|
5963
|
+
_this.showClearButton = true;
|
|
5963
5964
|
_super.prototype._markAsOnPush.call(_this);
|
|
5964
5965
|
return _this;
|
|
5965
5966
|
}
|
|
@@ -6039,7 +6040,7 @@
|
|
|
6039
6040
|
InputDatePickerComponent.decorators = [
|
|
6040
6041
|
{ type: i0.Component, args: [{
|
|
6041
6042
|
selector: 'co-input-date',
|
|
6042
|
-
template: "\n <co-input-text (clickOutside)=\"toggleCalendar(false)\" overlayParent #parentForOverlay=\"overlayParent\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly\"\n [(model)]=\"modelAsString\"\n [rightIcon]=\"rightIcon\"\n [leftIcon]=\"leftIcon\"\n [leftIconData]=\"leftIconData\"\n [pattern]=\"'yyyy-MM-dd'\"\n [type]=\"'date'\"\n [placeholder]=\"placeholder\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"toggleCalendar(true)\"\n (modelChange)=\"modelAsString = $event\"\n (clearIconClick)=\"handleClearIconClicked()\"\n [emptyPlace]=\"true\"\n (keyup.enter)=\"finalizeDate()\"\n (blur)=\"finalizeDate()\"\n ></co-input-text>\n ",
|
|
6043
|
+
template: "\n <co-input-text (clickOutside)=\"toggleCalendar(false)\" overlayParent #parentForOverlay=\"overlayParent\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly\"\n [(model)]=\"modelAsString\"\n [rightIcon]=\"rightIcon\"\n [leftIcon]=\"leftIcon\"\n [leftIconData]=\"leftIconData\"\n [pattern]=\"'yyyy-MM-dd'\"\n [type]=\"'date'\"\n [placeholder]=\"placeholder\"\n [showClearButton]=\"showClearButton\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"toggleCalendar(true)\"\n (modelChange)=\"modelAsString = $event\"\n (clearIconClick)=\"handleClearIconClicked()\"\n [emptyPlace]=\"true\"\n (keyup.enter)=\"finalizeDate()\"\n (blur)=\"finalizeDate()\"\n ></co-input-text>\n ",
|
|
6043
6044
|
providers: [
|
|
6044
6045
|
OverlayService, {
|
|
6045
6046
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputDatePickerComponent; })
|
|
@@ -6061,6 +6062,7 @@
|
|
|
6061
6062
|
{ type: i0.ElementRef }
|
|
6062
6063
|
]; };
|
|
6063
6064
|
InputDatePickerComponent.propDecorators = {
|
|
6065
|
+
showClearButton: [{ type: i0.Input }],
|
|
6064
6066
|
showClass: [{ type: i0.HostBinding, args: ['class.co-input-date',] }]
|
|
6065
6067
|
};
|
|
6066
6068
|
|
|
@@ -12311,6 +12313,19 @@
|
|
|
12311
12313
|
},] }
|
|
12312
12314
|
];
|
|
12313
12315
|
|
|
12316
|
+
// Values are corresponding dictionary keys in text_nl.
|
|
12317
|
+
var BatchDeliveryCategory;
|
|
12318
|
+
(function (BatchDeliveryCategory) {
|
|
12319
|
+
BatchDeliveryCategory["Overview"] = "OVERVIEW";
|
|
12320
|
+
BatchDeliveryCategory["Purchase"] = "COST_OF_SALES";
|
|
12321
|
+
BatchDeliveryCategory["Allocate"] = "ALLOCATION";
|
|
12322
|
+
BatchDeliveryCategory["Logistics"] = "LOGISTICS";
|
|
12323
|
+
BatchDeliveryCategory["DeliveryOrder"] = "DELIVERY_ORDER";
|
|
12324
|
+
BatchDeliveryCategory["Invoice"] = "INVOICE";
|
|
12325
|
+
BatchDeliveryCategory["ToPick"] = "TO_PICK";
|
|
12326
|
+
BatchDeliveryCategory["Picked"] = "PICKED";
|
|
12327
|
+
})(BatchDeliveryCategory || (BatchDeliveryCategory = {}));
|
|
12328
|
+
|
|
12314
12329
|
var ListOfIconsComponent = /** @class */ (function () {
|
|
12315
12330
|
function ListOfIconsComponent(iconCacheService, icons) {
|
|
12316
12331
|
this.iconCacheService = iconCacheService;
|
|
@@ -12322,8 +12337,8 @@
|
|
|
12322
12337
|
this.showSubCategories = false;
|
|
12323
12338
|
this._collection = [];
|
|
12324
12339
|
this.subCategories = [
|
|
12325
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label:
|
|
12326
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label:
|
|
12340
|
+
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label: BatchDeliveryCategory.ToPick },
|
|
12341
|
+
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label: BatchDeliveryCategory.Picked }
|
|
12327
12342
|
];
|
|
12328
12343
|
}
|
|
12329
12344
|
Object.defineProperty(ListOfIconsComponent.prototype, "collection", {
|
|
@@ -12348,7 +12363,7 @@
|
|
|
12348
12363
|
this.showMenu = !this.showMenu;
|
|
12349
12364
|
};
|
|
12350
12365
|
ListOfIconsComponent.prototype.selectItem = function (item) {
|
|
12351
|
-
if (item.label.toUpperCase() ===
|
|
12366
|
+
if (item.label.toUpperCase() === BatchDeliveryCategory.Logistics) {
|
|
12352
12367
|
this.showSubCategories = !this.showSubCategories;
|
|
12353
12368
|
return;
|
|
12354
12369
|
}
|
|
@@ -12370,7 +12385,7 @@
|
|
|
12370
12385
|
ListOfIconsComponent.decorators = [
|
|
12371
12386
|
{ type: i0.Component, args: [{
|
|
12372
12387
|
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
|
|
12388
|
+
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
12389
|
encapsulation: i0.ViewEncapsulation.None
|
|
12375
12390
|
},] }
|
|
12376
12391
|
];
|
|
@@ -12397,7 +12412,8 @@
|
|
|
12397
12412
|
common.CommonModule,
|
|
12398
12413
|
forms.FormsModule,
|
|
12399
12414
|
IconModule,
|
|
12400
|
-
ClickoutsideModule
|
|
12415
|
+
ClickoutsideModule,
|
|
12416
|
+
CoreComponentsTranslationModule
|
|
12401
12417
|
],
|
|
12402
12418
|
declarations: [
|
|
12403
12419
|
ListOfIconsComponent
|