@colijnit/corecomponents_v12 258.1.23 → 258.1.25
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 +21 -7
- 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 +15 -8
- package/esm2015/lib/components/list-of-icons/list-of-icons.module.js +4 -2
- package/esm2015/lib/components/simple-grid/simple-grid-cell.component.js +2 -2
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +2 -2
- package/esm2015/lib/core/enum/batch-delivery-category.enum.js +13 -0
- package/fesm2015/colijnit-corecomponents_v12.js +30 -10
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- 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
|
@@ -10125,7 +10125,7 @@ SimpleGridComponent.decorators = [
|
|
|
10125
10125
|
[ngClass]="column.textAlign ? column.textAlign : defaultTextAlign"
|
|
10126
10126
|
[class.with-menu]="showGridSettings"
|
|
10127
10127
|
[class.with-sort]="showColumnSort"
|
|
10128
|
-
[textContent]="column.headerText || ' '"
|
|
10128
|
+
[textContent]="column.headerText || ' '" [title]="column.headerText"
|
|
10129
10129
|
(click)="showColumnSort ? sortColumn(column, column.field) : toggleColumnMenu(column)">
|
|
10130
10130
|
</div>
|
|
10131
10131
|
|
|
@@ -10917,7 +10917,7 @@ SimpleGridCellComponent.decorators = [
|
|
|
10917
10917
|
[ngTemplateOutletContext]="{value: row[column.field], row: row}"></ng-container>
|
|
10918
10918
|
</ng-container>
|
|
10919
10919
|
<ng-template #noTemplate>
|
|
10920
|
-
<span [textContent]="column.getFieldValue(row[column.field])"></span>
|
|
10920
|
+
<span [textContent]="column.getFieldValue(row[column.field])" [title]="row[column.field]"></span>
|
|
10921
10921
|
</ng-template>
|
|
10922
10922
|
</div>
|
|
10923
10923
|
</ng-template>
|
|
@@ -11816,6 +11816,19 @@ ListOfValuesModule.decorators = [
|
|
|
11816
11816
|
},] }
|
|
11817
11817
|
];
|
|
11818
11818
|
|
|
11819
|
+
// Values are corresponding dictionary keys in text_nl.
|
|
11820
|
+
var BatchDeliveryCategory;
|
|
11821
|
+
(function (BatchDeliveryCategory) {
|
|
11822
|
+
BatchDeliveryCategory["Overview"] = "OVERVIEW";
|
|
11823
|
+
BatchDeliveryCategory["Purchase"] = "COST_OF_SALES";
|
|
11824
|
+
BatchDeliveryCategory["Allocate"] = "ALLOCATION";
|
|
11825
|
+
BatchDeliveryCategory["Logistics"] = "LOGISTICS";
|
|
11826
|
+
BatchDeliveryCategory["DeliveryOrder"] = "DELIVERY_ORDER";
|
|
11827
|
+
BatchDeliveryCategory["Invoice"] = "INVOICE";
|
|
11828
|
+
BatchDeliveryCategory["ToPick"] = "TO_PICK";
|
|
11829
|
+
BatchDeliveryCategory["Picked"] = "PICKED";
|
|
11830
|
+
})(BatchDeliveryCategory || (BatchDeliveryCategory = {}));
|
|
11831
|
+
|
|
11819
11832
|
class ListOfIconsComponent {
|
|
11820
11833
|
constructor(iconCacheService, icons) {
|
|
11821
11834
|
this.iconCacheService = iconCacheService;
|
|
@@ -11827,8 +11840,8 @@ class ListOfIconsComponent {
|
|
|
11827
11840
|
this.showSubCategories = false;
|
|
11828
11841
|
this._collection = [];
|
|
11829
11842
|
this.subCategories = [
|
|
11830
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label:
|
|
11831
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label:
|
|
11843
|
+
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label: BatchDeliveryCategory.ToPick },
|
|
11844
|
+
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label: BatchDeliveryCategory.Picked }
|
|
11832
11845
|
];
|
|
11833
11846
|
}
|
|
11834
11847
|
set collection(value) {
|
|
@@ -11849,7 +11862,7 @@ class ListOfIconsComponent {
|
|
|
11849
11862
|
this.showMenu = !this.showMenu;
|
|
11850
11863
|
}
|
|
11851
11864
|
selectItem(item) {
|
|
11852
|
-
if (item.label.toUpperCase() ===
|
|
11865
|
+
if (item.label.toUpperCase() === BatchDeliveryCategory.Logistics) {
|
|
11853
11866
|
this.showSubCategories = !this.showSubCategories;
|
|
11854
11867
|
return;
|
|
11855
11868
|
}
|
|
@@ -11873,18 +11886,24 @@ ListOfIconsComponent.decorators = [
|
|
|
11873
11886
|
template: `
|
|
11874
11887
|
<div class="icon-item active" [class.menu-opened]="showMenu" (click)="toggleMenu()">
|
|
11875
11888
|
<co-icon [iconData]="activeItem.icon" [style.width.px]="iconSize" [style.height.px]="iconSize"></co-icon>
|
|
11876
|
-
|
|
11889
|
+
<co-icon *ngIf="!showMenu" class="drop-arrow" [iconData]="icons.getIcon(Icon.CaretDownSolid)"></co-icon>
|
|
11890
|
+
<co-icon *ngIf="showMenu" class="drop-arrow" [iconData]="icons.getIcon(Icon.CaretUpSolid)"></co-icon>
|
|
11877
11891
|
</div>
|
|
11878
11892
|
<div class="dropdown-menu" *ngIf="showMenu" (clickOutside)="onClickOutside()">
|
|
11879
11893
|
<div class="icon-item" *ngFor="let item of collection" (click)="selectItem(item)"
|
|
11880
11894
|
[class.active]="item === activeItem">
|
|
11881
11895
|
<co-icon [iconData]="item.icon" [style.width.px]="iconSize" [style.height.px]="iconSize"></co-icon>
|
|
11882
|
-
|
|
11896
|
+
<div class="label" [textContent]="item.label | coreLocalize"></div>
|
|
11883
11897
|
</div>
|
|
11884
11898
|
<div class="picking-type-wrapper" *ngIf="showSubCategories">
|
|
11885
11899
|
<div class="button-wrapper" *ngFor="let subCategory of subCategories" (click)="handlePickingCategoryClicked(subCategory)">
|
|
11886
|
-
|
|
11887
|
-
|
|
11900
|
+
<co-icon
|
|
11901
|
+
class="co-transaction-button-bar-icon"
|
|
11902
|
+
[iconData]="subCategory.icon"
|
|
11903
|
+
[style.width.px]="iconSize"
|
|
11904
|
+
[style.height.px]="iconSize">
|
|
11905
|
+
</co-icon>
|
|
11906
|
+
<span class="button-title" [textContent]="subCategory.label | coreLocalize"></span>
|
|
11888
11907
|
</div>
|
|
11889
11908
|
</div>
|
|
11890
11909
|
</div>
|
|
@@ -11912,7 +11931,8 @@ ListOfIconsModule.decorators = [
|
|
|
11912
11931
|
CommonModule,
|
|
11913
11932
|
FormsModule,
|
|
11914
11933
|
IconModule,
|
|
11915
|
-
ClickoutsideModule
|
|
11934
|
+
ClickoutsideModule,
|
|
11935
|
+
CoreComponentsTranslationModule
|
|
11916
11936
|
],
|
|
11917
11937
|
declarations: [
|
|
11918
11938
|
ListOfIconsComponent
|