@colijnit/corecomponents_v12 259.1.16 → 259.1.18
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 +25 -22
- 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 +50 -28
- 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 +10 -6
- package/lib/core/enum/batch-delivery-category.enum.d.ts +10 -0
- package/package.json +1 -1
|
@@ -5967,6 +5967,7 @@
|
|
|
5967
5967
|
_this.ngZoneWrapper = ngZoneWrapper;
|
|
5968
5968
|
_this.elementRef = elementRef;
|
|
5969
5969
|
_this.firstDayOfWeek = '';
|
|
5970
|
+
_this.showClearButton = true;
|
|
5970
5971
|
_super.prototype._markAsOnPush.call(_this);
|
|
5971
5972
|
return _this;
|
|
5972
5973
|
}
|
|
@@ -6046,7 +6047,7 @@
|
|
|
6046
6047
|
InputDatePickerComponent.decorators = [
|
|
6047
6048
|
{ type: i0.Component, args: [{
|
|
6048
6049
|
selector: 'co-input-date',
|
|
6049
|
-
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 [firstDayOfWeek]=\"firstDayOfWeek\"\n (keydown.enter)=\"finalizeDate()\"\n (keydown.tab)=\"finalizeDate()\"\n (blur)=\"finalizeDate()\"\n ></co-input-text>\n ",
|
|
6050
|
+
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 [firstDayOfWeek]=\"firstDayOfWeek\"\n (keydown.enter)=\"finalizeDate()\"\n (keydown.tab)=\"finalizeDate()\"\n (blur)=\"finalizeDate()\"\n ></co-input-text>\n ",
|
|
6050
6051
|
providers: [
|
|
6051
6052
|
OverlayService, {
|
|
6052
6053
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputDatePickerComponent; })
|
|
@@ -6069,6 +6070,7 @@
|
|
|
6069
6070
|
]; };
|
|
6070
6071
|
InputDatePickerComponent.propDecorators = {
|
|
6071
6072
|
firstDayOfWeek: [{ type: i0.Input }],
|
|
6073
|
+
showClearButton: [{ type: i0.Input }],
|
|
6072
6074
|
showClass: [{ type: i0.HostBinding, args: ['class.co-input-date',] }]
|
|
6073
6075
|
};
|
|
6074
6076
|
|
|
@@ -12358,6 +12360,19 @@
|
|
|
12358
12360
|
},] }
|
|
12359
12361
|
];
|
|
12360
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
|
+
|
|
12361
12376
|
var ListOfIconsComponent = /** @class */ (function () {
|
|
12362
12377
|
function ListOfIconsComponent(iconCacheService, icons) {
|
|
12363
12378
|
this.iconCacheService = iconCacheService;
|
|
@@ -12369,8 +12384,8 @@
|
|
|
12369
12384
|
this.showSubCategories = false;
|
|
12370
12385
|
this._collection = [];
|
|
12371
12386
|
this.subCategories = [
|
|
12372
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label:
|
|
12373
|
-
{ 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 }
|
|
12374
12389
|
];
|
|
12375
12390
|
}
|
|
12376
12391
|
Object.defineProperty(ListOfIconsComponent.prototype, "collection", {
|
|
@@ -12395,7 +12410,7 @@
|
|
|
12395
12410
|
this.showMenu = !this.showMenu;
|
|
12396
12411
|
};
|
|
12397
12412
|
ListOfIconsComponent.prototype.selectItem = function (item) {
|
|
12398
|
-
if (item.label.toUpperCase() ===
|
|
12413
|
+
if (item.label.toUpperCase() === BatchDeliveryCategory.Logistics) {
|
|
12399
12414
|
this.showSubCategories = !this.showSubCategories;
|
|
12400
12415
|
return;
|
|
12401
12416
|
}
|
|
@@ -12417,7 +12432,7 @@
|
|
|
12417
12432
|
ListOfIconsComponent.decorators = [
|
|
12418
12433
|
{ type: i0.Component, args: [{
|
|
12419
12434
|
selector: 'co-list-of-icons',
|
|
12420
|
-
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
|
|
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 ",
|
|
12421
12436
|
encapsulation: i0.ViewEncapsulation.None
|
|
12422
12437
|
},] }
|
|
12423
12438
|
];
|
|
@@ -12444,7 +12459,8 @@
|
|
|
12444
12459
|
common.CommonModule,
|
|
12445
12460
|
forms.FormsModule,
|
|
12446
12461
|
IconModule,
|
|
12447
|
-
ClickoutsideModule
|
|
12462
|
+
ClickoutsideModule,
|
|
12463
|
+
CoreComponentsTranslationModule
|
|
12448
12464
|
],
|
|
12449
12465
|
declarations: [
|
|
12450
12466
|
ListOfIconsComponent
|