@colijnit/corecomponents_v12 258.1.26 → 258.1.28
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 +16 -26
- 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 +30 -32
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +9 -3
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +9 -1
- package/esm2015/lib/model/icon-list-item.js +1 -1
- package/fesm2015/colijnit-corecomponents_v12.js +45 -45
- 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/components/list-of-values/list-of-values.component.d.ts +1 -0
- 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
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi1saXN0LWl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlY29tcG9uZW50cy9zcmMvbGliL21vZGVsL2ljb24tbGlzdC1pdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1NhZmVIdG1sfSBmcm9tIFwiQGFuZ3VsYXIvcGxhdGZvcm0tYnJvd3NlclwiO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJY29uTGlzdEl0ZW0ge1xyXG4gIGlkPzogbnVtYmVyO1xyXG4gIGljb246IFNhZmVIdG1sO1xyXG4gIGxhYmVsOiBzdHJpbmc7XHJcbiAgY2hpbGRyZW4/OiBJY29uTGlzdEl0ZW1bXTtcclxufVxyXG4iXX0=
|
|
@@ -10237,6 +10237,14 @@ SimpleGridComponent.decorators = [
|
|
|
10237
10237
|
(click)="cancelEditRow(); $event.stopPropagation() "></co-button>
|
|
10238
10238
|
</div>
|
|
10239
10239
|
</ng-container>
|
|
10240
|
+
<ng-container *ngIf="!(inlineEdit && showRowButtons) && showDelete">
|
|
10241
|
+
<div class="icons-container">
|
|
10242
|
+
<co-icon class="icon-item icon-delete"
|
|
10243
|
+
[iconData]="icons.getIcon(Icons.TrashBin)" *ngIf="hoveredRowIndex === rowIndex"
|
|
10244
|
+
(click)="selectTheRow(rowIndex); removeRow();">
|
|
10245
|
+
</co-icon>
|
|
10246
|
+
</div>
|
|
10247
|
+
</ng-container>
|
|
10240
10248
|
</ng-container>
|
|
10241
10249
|
</tr>
|
|
10242
10250
|
</co-form>
|
|
@@ -11458,8 +11466,13 @@ class ListOfValuesComponent extends BaseInputComponent {
|
|
|
11458
11466
|
this.isLoading = false;
|
|
11459
11467
|
return [];
|
|
11460
11468
|
}
|
|
11461
|
-
this.filteredCollection = (_a = this.collection) === null || _a === void 0 ? void 0 : _a.filter(() => {
|
|
11462
|
-
|
|
11469
|
+
this.filteredCollection = (_a = this.collection) === null || _a === void 0 ? void 0 : _a.filter((item) => {
|
|
11470
|
+
if (this.collectionLoadFnProp && this.collectionLoadFnProp.length > 0) {
|
|
11471
|
+
return item[this.collectionLoadFnProp] && item[this.collectionLoadFnProp].toLowerCase().includes(text.toLowerCase());
|
|
11472
|
+
}
|
|
11473
|
+
else {
|
|
11474
|
+
return true;
|
|
11475
|
+
}
|
|
11463
11476
|
});
|
|
11464
11477
|
(((_b = this.filteredCollection) === null || _b === void 0 ? void 0 : _b.length) > 0 && ((_c = this.filterText) === null || _c === void 0 ? void 0 : _c.length) > 2) ? this.openPopup() : this.closePopup();
|
|
11465
11478
|
this.isLoading = false;
|
|
@@ -11676,6 +11689,7 @@ ListOfValuesComponent.propDecorators = {
|
|
|
11676
11689
|
displayField: [{ type: Input }],
|
|
11677
11690
|
collection: [{ type: Input }],
|
|
11678
11691
|
collectionLoadFn: [{ type: Input }],
|
|
11692
|
+
collectionLoadFnProp: [{ type: Input }],
|
|
11679
11693
|
leftIconData: [{ type: Input }],
|
|
11680
11694
|
searchPlaceholder: [{ type: Input }],
|
|
11681
11695
|
label: [{ type: Input }],
|
|
@@ -11819,22 +11833,8 @@ ListOfValuesModule.decorators = [
|
|
|
11819
11833
|
},] }
|
|
11820
11834
|
];
|
|
11821
11835
|
|
|
11822
|
-
// Values are corresponding dictionary keys in text_nl.
|
|
11823
|
-
var BatchDeliveryCategory;
|
|
11824
|
-
(function (BatchDeliveryCategory) {
|
|
11825
|
-
BatchDeliveryCategory["Overview"] = "OVERVIEW";
|
|
11826
|
-
BatchDeliveryCategory["Purchase"] = "COST_OF_SALES";
|
|
11827
|
-
BatchDeliveryCategory["Allocate"] = "ALLOCATION";
|
|
11828
|
-
BatchDeliveryCategory["Logistics"] = "LOGISTICS";
|
|
11829
|
-
BatchDeliveryCategory["DeliveryOrder"] = "DELIVERY_ORDER";
|
|
11830
|
-
BatchDeliveryCategory["Invoice"] = "INVOICE";
|
|
11831
|
-
BatchDeliveryCategory["ToPick"] = "TO_PICK";
|
|
11832
|
-
BatchDeliveryCategory["Picked"] = "PICKED";
|
|
11833
|
-
})(BatchDeliveryCategory || (BatchDeliveryCategory = {}));
|
|
11834
|
-
|
|
11835
11836
|
class ListOfIconsComponent {
|
|
11836
|
-
constructor(
|
|
11837
|
-
this.iconCacheService = iconCacheService;
|
|
11837
|
+
constructor(icons) {
|
|
11838
11838
|
this.icons = icons;
|
|
11839
11839
|
this.iconSize = 25;
|
|
11840
11840
|
this.itemSelected = new EventEmitter();
|
|
@@ -11842,13 +11842,10 @@ class ListOfIconsComponent {
|
|
|
11842
11842
|
this.showMenu = false;
|
|
11843
11843
|
this.showSubCategories = false;
|
|
11844
11844
|
this._collection = [];
|
|
11845
|
-
this.subCategories = [
|
|
11846
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label: BatchDeliveryCategory.ToPick },
|
|
11847
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label: BatchDeliveryCategory.Picked }
|
|
11848
|
-
];
|
|
11849
11845
|
}
|
|
11850
11846
|
set collection(value) {
|
|
11851
11847
|
this._collection = value || [];
|
|
11848
|
+
this.activeItem = this.collection[0];
|
|
11852
11849
|
}
|
|
11853
11850
|
get collection() {
|
|
11854
11851
|
return this._collection;
|
|
@@ -11865,7 +11862,7 @@ class ListOfIconsComponent {
|
|
|
11865
11862
|
this.showMenu = !this.showMenu;
|
|
11866
11863
|
}
|
|
11867
11864
|
selectItem(item) {
|
|
11868
|
-
if (item.
|
|
11865
|
+
if (item.children) {
|
|
11869
11866
|
this.showSubCategories = !this.showSubCategories;
|
|
11870
11867
|
return;
|
|
11871
11868
|
}
|
|
@@ -11874,8 +11871,9 @@ class ListOfIconsComponent {
|
|
|
11874
11871
|
this.itemSelected.emit(this.activeItem);
|
|
11875
11872
|
}
|
|
11876
11873
|
handlePickingCategoryClicked(subCategory) {
|
|
11877
|
-
this.
|
|
11874
|
+
this.activeItem = subCategory;
|
|
11878
11875
|
this.showMenu = false;
|
|
11876
|
+
this.itemSelected.emit(subCategory);
|
|
11879
11877
|
this.showSubCategories = false;
|
|
11880
11878
|
}
|
|
11881
11879
|
onClickOutside() {
|
|
@@ -11887,35 +11885,37 @@ ListOfIconsComponent.decorators = [
|
|
|
11887
11885
|
{ type: Component, args: [{
|
|
11888
11886
|
selector: 'co-list-of-icons',
|
|
11889
11887
|
template: `
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
</div>
|
|
11895
|
-
<div class="dropdown-menu" *ngIf="showMenu" (clickOutside)="onClickOutside()">
|
|
11896
|
-
<div class="icon-item" *ngFor="let item of collection" (click)="selectItem(item)"
|
|
11897
|
-
[class.active]="item === activeItem">
|
|
11898
|
-
<co-icon [iconData]="item.icon" [style.width.px]="iconSize" [style.height.px]="iconSize"></co-icon>
|
|
11899
|
-
<div class="label" [textContent]="item.label | coreLocalize"></div>
|
|
11888
|
+
<div class="icon-item active" [class.menu-opened]="showMenu" (click)="toggleMenu()">
|
|
11889
|
+
<co-icon [iconData]="activeItem.icon" [style.width.px]="iconSize" [style.height.px]="iconSize"></co-icon>
|
|
11890
|
+
<co-icon *ngIf="!showMenu" class="drop-arrow" [iconData]="icons.getIcon(Icon.CaretDownSolid)"></co-icon>
|
|
11891
|
+
<co-icon *ngIf="showMenu" class="drop-arrow" [iconData]="icons.getIcon(Icon.CaretUpSolid)"></co-icon>
|
|
11900
11892
|
</div>
|
|
11901
|
-
<div class="
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11910
|
-
|
|
11893
|
+
<div class="dropdown-menu" *ngIf="showMenu" (clickOutside)="onClickOutside()">
|
|
11894
|
+
<div class="icon-item" *ngFor="let item of collection" (click)="selectItem(item)"
|
|
11895
|
+
[class.active]="item === activeItem">
|
|
11896
|
+
<co-icon [iconData]="item.icon" [style.width.px]="iconSize" [style.height.px]="iconSize"></co-icon>
|
|
11897
|
+
<div class="label" [textContent]="item.label | coreLocalize"></div>
|
|
11898
|
+
<div class="picking-type-wrapper" *ngIf="showSubCategories && item.children?.length > 0">
|
|
11899
|
+
<div
|
|
11900
|
+
class="button-wrapper"
|
|
11901
|
+
*ngFor="let subCategory of item.children"
|
|
11902
|
+
(click)="handlePickingCategoryClicked(subCategory)">
|
|
11903
|
+
<co-icon
|
|
11904
|
+
class="co-transaction-button-bar-icon"
|
|
11905
|
+
[iconData]="subCategory.icon"
|
|
11906
|
+
[style.width.px]="iconSize"
|
|
11907
|
+
[style.height.px]="iconSize">
|
|
11908
|
+
</co-icon>
|
|
11909
|
+
<span class="button-title" [textContent]="subCategory.label | coreLocalize"></span>
|
|
11910
|
+
</div>
|
|
11911
|
+
</div>
|
|
11912
|
+
</div>
|
|
11911
11913
|
</div>
|
|
11912
|
-
</div>
|
|
11913
11914
|
`,
|
|
11914
11915
|
encapsulation: ViewEncapsulation.None
|
|
11915
11916
|
},] }
|
|
11916
11917
|
];
|
|
11917
11918
|
ListOfIconsComponent.ctorParameters = () => [
|
|
11918
|
-
{ type: IconCacheService },
|
|
11919
11919
|
{ type: IconCacheService }
|
|
11920
11920
|
];
|
|
11921
11921
|
ListOfIconsComponent.propDecorators = {
|