@colijnit/catalog 255.1.2 → 255.1.4
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-catalog.umd.js +124 -24
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +29 -15
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +178 -27
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +1 -1
- package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.component.js +1 -1
- package/esm2015/lib/service/catalog-connector-adapter.service.js +25 -5
- package/esm2015/lib/service/catalog-connector.service.js +13 -3
- package/esm2015/lib/service/catalog-stock-comparison.service.js +7 -1
- package/esm2015/lib/service/catalog-stock-transfer.service.js +7 -1
- package/esm2015/lib/service/catalog-stock.service.js +1 -2
- package/esm2015/lib/service/catalog.service.js +13 -1
- package/fesm2015/colijnit-catalog.js +267 -51
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-filter/catalog-filter.component.d.ts +10 -6
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +9 -2
- package/lib/service/catalog-connector-adapter.service.d.ts +3 -1
- package/lib/service/catalog-connector.service.d.ts +3 -1
- package/lib/service/catalog-stock-comparison.service.d.ts +1 -0
- package/lib/service/catalog-stock-transfer.service.d.ts +1 -0
- package/lib/service/catalog-stock.service.d.ts +0 -2
- package/lib/service/catalog.service.d.ts +10 -1
- package/package.json +2 -2
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
function Version() {
|
|
31
31
|
this.name = "@colijnit/catalog";
|
|
32
32
|
this.description = "iOne Catalog module based on Angular 12";
|
|
33
|
-
this.symVer = "255.1.
|
|
34
|
-
this.publishDate = "
|
|
33
|
+
this.symVer = "255.1.4";
|
|
34
|
+
this.publishDate = "23/08/2024, 12:48:49";
|
|
35
35
|
}
|
|
36
36
|
return Version;
|
|
37
37
|
}());
|
|
@@ -1024,7 +1024,6 @@
|
|
|
1024
1024
|
result.count = response.pagingParameters.resultCount;
|
|
1025
1025
|
result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockSearchTileSelection, response.resultObjects);
|
|
1026
1026
|
return [2 /*return*/, result];
|
|
1027
|
-
// return <unknown>this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockSearchTileSelection, response.resultObjects) as ArticleStockSearchTileSelection[];
|
|
1028
1027
|
}
|
|
1029
1028
|
else {
|
|
1030
1029
|
console.error(response.validationMessagesAsString);
|
|
@@ -1048,7 +1047,26 @@
|
|
|
1048
1047
|
result.count = response.pagingParameters.resultCount;
|
|
1049
1048
|
result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockSearchGridSelection, response.resultObjects);
|
|
1050
1049
|
return [2 /*return*/, result];
|
|
1051
|
-
|
|
1050
|
+
}
|
|
1051
|
+
else {
|
|
1052
|
+
console.error(response.validationMessagesAsString);
|
|
1053
|
+
}
|
|
1054
|
+
return [2 /*return*/];
|
|
1055
|
+
}
|
|
1056
|
+
});
|
|
1057
|
+
});
|
|
1058
|
+
};
|
|
1059
|
+
CatalogConnectorAdapterService.prototype.getArticleGridViewExcelFile = function (params, showLoader) {
|
|
1060
|
+
if (showLoader === void 0) { showLoader = true; }
|
|
1061
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1062
|
+
var response;
|
|
1063
|
+
return __generator(this, function (_a) {
|
|
1064
|
+
switch (_a.label) {
|
|
1065
|
+
case 0: return [4 /*yield*/, this.connector.getArticleGridViewExcelFile(params, showLoader)];
|
|
1066
|
+
case 1:
|
|
1067
|
+
response = _a.sent();
|
|
1068
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
1069
|
+
return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray([], response.resultObjects)];
|
|
1052
1070
|
}
|
|
1053
1071
|
else {
|
|
1054
1072
|
console.error(response.validationMessagesAsString);
|
|
@@ -1104,6 +1122,26 @@
|
|
|
1104
1122
|
});
|
|
1105
1123
|
});
|
|
1106
1124
|
};
|
|
1125
|
+
CatalogConnectorAdapterService.prototype.getTransferArticleGridViewExcelFile = function (params, showLoader) {
|
|
1126
|
+
if (showLoader === void 0) { showLoader = true; }
|
|
1127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1128
|
+
var response;
|
|
1129
|
+
return __generator(this, function (_a) {
|
|
1130
|
+
switch (_a.label) {
|
|
1131
|
+
case 0: return [4 /*yield*/, this.connector.getTransferArticleGridViewExcelFile(params, showLoader)];
|
|
1132
|
+
case 1:
|
|
1133
|
+
response = _a.sent();
|
|
1134
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
1135
|
+
return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray([], response.resultObjects)];
|
|
1136
|
+
}
|
|
1137
|
+
else {
|
|
1138
|
+
console.error(response.validationMessagesAsString);
|
|
1139
|
+
}
|
|
1140
|
+
return [2 /*return*/];
|
|
1141
|
+
}
|
|
1142
|
+
});
|
|
1143
|
+
});
|
|
1144
|
+
};
|
|
1107
1145
|
CatalogConnectorAdapterService.prototype.getArticlesForStockComparisonSearchTile = function (params, showLoader) {
|
|
1108
1146
|
if (showLoader === void 0) { showLoader = true; }
|
|
1109
1147
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1150,13 +1188,13 @@
|
|
|
1150
1188
|
});
|
|
1151
1189
|
});
|
|
1152
1190
|
};
|
|
1153
|
-
CatalogConnectorAdapterService.prototype.
|
|
1191
|
+
CatalogConnectorAdapterService.prototype.getComparisonArticleGridViewExcelFile = function (params, showLoader) {
|
|
1154
1192
|
if (showLoader === void 0) { showLoader = true; }
|
|
1155
1193
|
return __awaiter(this, void 0, void 0, function () {
|
|
1156
1194
|
var response;
|
|
1157
1195
|
return __generator(this, function (_a) {
|
|
1158
1196
|
switch (_a.label) {
|
|
1159
|
-
case 0: return [4 /*yield*/, this.connector.
|
|
1197
|
+
case 0: return [4 /*yield*/, this.connector.getComparisonArticleGridViewExcelFile(params, showLoader)];
|
|
1160
1198
|
case 1:
|
|
1161
1199
|
response = _a.sent();
|
|
1162
1200
|
if (response && response.validationResult && response.validationResult.success) {
|
|
@@ -2372,6 +2410,14 @@
|
|
|
2372
2410
|
});
|
|
2373
2411
|
});
|
|
2374
2412
|
};
|
|
2413
|
+
CatalogConnectorService.prototype.getArticleGridViewExcelFile = function (params, showLoader) {
|
|
2414
|
+
if (showLoader === void 0) { showLoader = true; }
|
|
2415
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2416
|
+
return __generator(this, function (_a) {
|
|
2417
|
+
return [2 /*return*/, this._adapterService.getArticleGridViewExcelFile(params, showLoader)];
|
|
2418
|
+
});
|
|
2419
|
+
});
|
|
2420
|
+
};
|
|
2375
2421
|
CatalogConnectorService.prototype.getArticlesForStockTransferSearchTile = function (params, showLoader) {
|
|
2376
2422
|
if (showLoader === void 0) { showLoader = true; }
|
|
2377
2423
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -2388,6 +2434,14 @@
|
|
|
2388
2434
|
});
|
|
2389
2435
|
});
|
|
2390
2436
|
};
|
|
2437
|
+
CatalogConnectorService.prototype.getTransferArticleGridViewExcelFile = function (params, showLoader) {
|
|
2438
|
+
if (showLoader === void 0) { showLoader = true; }
|
|
2439
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2440
|
+
return __generator(this, function (_a) {
|
|
2441
|
+
return [2 /*return*/, this._adapterService.getTransferArticleGridViewExcelFile(params, showLoader)];
|
|
2442
|
+
});
|
|
2443
|
+
});
|
|
2444
|
+
};
|
|
2391
2445
|
CatalogConnectorService.prototype.getArticlesForStockComparisonSearchTile = function (params, showLoader) {
|
|
2392
2446
|
if (showLoader === void 0) { showLoader = true; }
|
|
2393
2447
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -2404,11 +2458,11 @@
|
|
|
2404
2458
|
});
|
|
2405
2459
|
});
|
|
2406
2460
|
};
|
|
2407
|
-
CatalogConnectorService.prototype.
|
|
2461
|
+
CatalogConnectorService.prototype.getComparisonArticleGridViewExcelFile = function (params, showLoader) {
|
|
2408
2462
|
if (showLoader === void 0) { showLoader = true; }
|
|
2409
2463
|
return __awaiter(this, void 0, void 0, function () {
|
|
2410
2464
|
return __generator(this, function (_a) {
|
|
2411
|
-
return [2 /*return*/, this._adapterService.
|
|
2465
|
+
return [2 /*return*/, this._adapterService.getComparisonArticleGridViewExcelFile(params, showLoader)];
|
|
2412
2466
|
});
|
|
2413
2467
|
});
|
|
2414
2468
|
};
|
|
@@ -3265,6 +3319,8 @@
|
|
|
3265
3319
|
this.searchTextChanged = new rxjs.Subject();
|
|
3266
3320
|
this.showPageChanged = new rxjs.Subject();
|
|
3267
3321
|
this.onResetFilters = new rxjs.Subject();
|
|
3322
|
+
this.activeStockViewSubject = new rxjs.BehaviorSubject(undefined);
|
|
3323
|
+
this.activeStockView = this.activeStockViewSubject.asObservable();
|
|
3268
3324
|
this._currentPage = 1;
|
|
3269
3325
|
this._filterText = [];
|
|
3270
3326
|
this.minMillisBetweenArticleSearches = 400;
|
|
@@ -3440,6 +3496,9 @@
|
|
|
3440
3496
|
this.showCatOrTurnoverGroupArticles = false;
|
|
3441
3497
|
this.showExternalSource = false;
|
|
3442
3498
|
};
|
|
3499
|
+
CatalogService.prototype.setActiveStockView = function (value) {
|
|
3500
|
+
this.activeStockViewSubject.next(value);
|
|
3501
|
+
};
|
|
3443
3502
|
return CatalogService;
|
|
3444
3503
|
}());
|
|
3445
3504
|
CatalogService.decorators = [
|
|
@@ -3453,7 +3512,14 @@
|
|
|
3453
3512
|
{ type: CatalogImageService },
|
|
3454
3513
|
{ type: CatalogFilterService },
|
|
3455
3514
|
{ type: CatalogSearchService }
|
|
3456
|
-
]; };
|
|
3515
|
+
]; };
|
|
3516
|
+
exports.StockView = void 0;
|
|
3517
|
+
(function (StockView) {
|
|
3518
|
+
StockView["PriceCards"] = "PriceCards";
|
|
3519
|
+
StockView["StockOverview"] = "StockOverview";
|
|
3520
|
+
StockView["WarehouseTransfers"] = "WarehouseTransfers";
|
|
3521
|
+
StockView["StockComparison"] = "StockComparison";
|
|
3522
|
+
})(exports.StockView || (exports.StockView = {}));
|
|
3457
3523
|
|
|
3458
3524
|
var CatalogCategoriesComponent = /** @class */ (function () {
|
|
3459
3525
|
function CatalogCategoriesComponent(_catalogService, _adapterService) {
|
|
@@ -3633,14 +3699,15 @@
|
|
|
3633
3699
|
]; };
|
|
3634
3700
|
|
|
3635
3701
|
var CatalogFilterComponent = /** @class */ (function () {
|
|
3636
|
-
function CatalogFilterComponent(iconCache, _settingsService, changeDetector, _catalogConnectorService, _adapterService
|
|
3702
|
+
function CatalogFilterComponent(iconCache, catalogService, searchService, _settingsService, changeDetector, _catalogConnectorService, _adapterService) {
|
|
3637
3703
|
var _this = this;
|
|
3638
3704
|
this.iconCache = iconCache;
|
|
3705
|
+
this.catalogService = catalogService;
|
|
3706
|
+
this.searchService = searchService;
|
|
3639
3707
|
this._settingsService = _settingsService;
|
|
3640
3708
|
this.changeDetector = changeDetector;
|
|
3641
3709
|
this._catalogConnectorService = _catalogConnectorService;
|
|
3642
3710
|
this._adapterService = _adapterService;
|
|
3643
|
-
this.searchService = searchService;
|
|
3644
3711
|
this.icons = IconEnum;
|
|
3645
3712
|
this.updatePreset = false;
|
|
3646
3713
|
this.showResetFilter = true;
|
|
@@ -3655,6 +3722,9 @@
|
|
|
3655
3722
|
if (initialized) {
|
|
3656
3723
|
_this.getUserGroups();
|
|
3657
3724
|
}
|
|
3725
|
+
}), this.catalogService.activeStockView.subscribe(function (value) {
|
|
3726
|
+
_this.activeStockView = value;
|
|
3727
|
+
_this._showActiveCategory();
|
|
3658
3728
|
}));
|
|
3659
3729
|
}
|
|
3660
3730
|
CatalogFilterComponent.prototype.showClass = function () {
|
|
@@ -3671,12 +3741,6 @@
|
|
|
3671
3741
|
x.unsubscribe();
|
|
3672
3742
|
});
|
|
3673
3743
|
};
|
|
3674
|
-
CatalogFilterComponent.prototype.getUserGroups = function () {
|
|
3675
|
-
var _this = this;
|
|
3676
|
-
this._catalogConnectorService.getUserGroups().then(function (userGroups) {
|
|
3677
|
-
_this.userGroupCollection = userGroups;
|
|
3678
|
-
});
|
|
3679
|
-
};
|
|
3680
3744
|
CatalogFilterComponent.prototype.handleCategoryClick = function (cat) {
|
|
3681
3745
|
if (cat === 'Algemeen') {
|
|
3682
3746
|
this.filterItems.nativeElement.scrollLeft = this.generalFilter.nativeElement.offsetLeft - this.filterItems.nativeElement.offsetLeft;
|
|
@@ -3688,6 +3752,17 @@
|
|
|
3688
3752
|
this.filterItems.nativeElement.scrollLeft = this.logisticsFilter.nativeElement.offsetLeft - this.filterItems.nativeElement.offsetLeft;
|
|
3689
3753
|
}
|
|
3690
3754
|
};
|
|
3755
|
+
CatalogFilterComponent.prototype.getUserGroups = function () {
|
|
3756
|
+
var _this = this;
|
|
3757
|
+
this._catalogConnectorService.getUserGroups().then(function (userGroups) {
|
|
3758
|
+
_this.userGroupCollection = userGroups;
|
|
3759
|
+
});
|
|
3760
|
+
};
|
|
3761
|
+
CatalogFilterComponent.prototype._showActiveCategory = function () {
|
|
3762
|
+
if (this.filterItems && this.activeStockView !== undefined) {
|
|
3763
|
+
this.filterItems.nativeElement.scrollLeft = this.logisticsFilter.nativeElement.offsetLeft - this.filterItems.nativeElement.offsetLeft;
|
|
3764
|
+
}
|
|
3765
|
+
};
|
|
3691
3766
|
CatalogFilterComponent.prototype.detectChanges = function () {
|
|
3692
3767
|
if (!this._destroyed) {
|
|
3693
3768
|
this.changeDetector.detectChanges();
|
|
@@ -3698,7 +3773,7 @@
|
|
|
3698
3773
|
CatalogFilterComponent.decorators = [
|
|
3699
3774
|
{ type: i0.Component, args: [{
|
|
3700
3775
|
selector: 'co-catalog-filter',
|
|
3701
|
-
template: "\n <!--<div class=\"preset-button\">\n <co-button [iconData]=\"iconCache.getIcon(icons.MagicWand)\"\n (onClick)=\"loadSelectedPreset()\">\n </co-button>\n <co-button [iconData]=\"iconCache.getIcon(icons.Check)\"\n (onClick)=\"showSavePresetPopup()\">\n </co-button>\n </div>-->\n <div class=\"catalog-filter-categories\">\n <co-catalog-filter-categories
|
|
3776
|
+
template: "\n <!--<div class=\"preset-button\">\n <co-button [iconData]=\"iconCache.getIcon(icons.MagicWand)\"\n (onClick)=\"loadSelectedPreset()\">\n </co-button>\n <co-button [iconData]=\"iconCache.getIcon(icons.Check)\"\n (onClick)=\"showSavePresetPopup()\">\n </co-button>\n </div>-->\n <div class=\"catalog-filter-categories\">\n <co-catalog-filter-categories\n [categories]=\"filterCategories\"\n (categoryClick)=\"handleCategoryClick($event)\">\n </co-catalog-filter-categories>\n </div>\n \n <div #filterItems class=\"catalog-category-filter-wrapper\" data-ride=\"carousel\">\n <div #generalFilter class=\"catalog-filter-category-content\">\n <co-catalog-filter-content-general></co-catalog-filter-content-general>\n </div>\n <div #purchaseFilter class=\"catalog-filter-category-content\">\n <co-catalog-filter-content-purchase></co-catalog-filter-content-purchase>\n </div>\n <div #logisticsFilter class=\"catalog-filter-category-content\">\n <co-catalog-filter-content-logistics></co-catalog-filter-content-logistics>\n </div>\n </div>\n\n <!--<co-dialog *ngIf=\"showSavePopup\" [headerTemplate]=\"headerTemplate\" [footerTemplate]=\"footerTemplate\" (closeClick)=\"cancelClicked()\">\n <ng-template #headerTemplate>\n <span class=\"header\" [textContent]=\"'SAVE_PRESET' | localize\"></span>\n </ng-template>\n \n <div class=\"save-dialog-contents\">\n <co-input-text \n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [(model)]=\"searchService.currentPreset.name\"\n [label]=\"'PRESET_NAME' | localize\"\n [placeholder]=\"'PRESET_NAME' | localize\"\n ></co-input-text>\n <co-list-of-values [collection]=\"userGroupCollection\" \n [displayField]=\"'description'\"\n [label]=\"'USERGROUPS'| localize\"\n [(model)]=\"userGroupsChosen\"\n (modelChange)=\"userGroupsChanged()\"\n [multiselect]=\"true\"\n ></co-list-of-values>\n <!–<co-input-checkbox *ngIf=\"updatePreset\"\n [(model)]=\"searchService.currentPreset.default\"\n [label]=\"'SAVE_AS_NEW' | localize\"\n ></co-input-checkbox> –>\n </div>\n \n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <ng-container >\n <co-button [label]=\"'SAVE' | localize\" (click)=\"saveClicked()\"></co-button>\n <co-button [label]=\"'CANCEL' | localize\" (click)=\"cancelClicked()\"></co-button>\n </ng-container>\n </div>\n </ng-template>\n </co-dialog> -->\n ",
|
|
3702
3777
|
animations: [
|
|
3703
3778
|
animations.trigger('showFilterItem', [
|
|
3704
3779
|
animations.state('closed', animations.style({ height: '80px' })),
|
|
@@ -3711,11 +3786,12 @@
|
|
|
3711
3786
|
];
|
|
3712
3787
|
CatalogFilterComponent.ctorParameters = function () { return [
|
|
3713
3788
|
{ type: IconCacheService },
|
|
3789
|
+
{ type: CatalogService },
|
|
3790
|
+
{ type: CatalogSearchService },
|
|
3714
3791
|
{ type: CatalogSettingsService },
|
|
3715
3792
|
{ type: i0.ChangeDetectorRef },
|
|
3716
3793
|
{ type: CatalogConnectorService },
|
|
3717
|
-
{ type: CatalogConnectorAdapterService }
|
|
3718
|
-
{ type: CatalogSearchService }
|
|
3794
|
+
{ type: CatalogConnectorAdapterService }
|
|
3719
3795
|
]; };
|
|
3720
3796
|
CatalogFilterComponent.propDecorators = {
|
|
3721
3797
|
filterItems: [{ type: i0.ViewChild, args: ['filterItems', { read: i0.ElementRef },] }],
|
|
@@ -4158,28 +4234,41 @@
|
|
|
4158
4234
|
];
|
|
4159
4235
|
|
|
4160
4236
|
var CatalogFilterContentLogisticsComponent = /** @class */ (function () {
|
|
4161
|
-
function CatalogFilterContentLogisticsComponent(catalogSearchService, iconCache) {
|
|
4237
|
+
function CatalogFilterContentLogisticsComponent(catalogSearchService, iconCache, catalogService) {
|
|
4162
4238
|
this.catalogSearchService = catalogSearchService;
|
|
4163
4239
|
this.iconCache = iconCache;
|
|
4240
|
+
this.catalogService = catalogService;
|
|
4164
4241
|
this.modes = corecomponents_v12.FilterItemMode;
|
|
4165
4242
|
this.icons = IconEnum;
|
|
4243
|
+
this.StockView = exports.StockView;
|
|
4244
|
+
this._subs = [];
|
|
4166
4245
|
}
|
|
4167
4246
|
CatalogFilterContentLogisticsComponent.prototype.showClass = function () {
|
|
4168
4247
|
return true;
|
|
4169
4248
|
};
|
|
4170
4249
|
CatalogFilterContentLogisticsComponent.prototype.ngOnInit = function () {
|
|
4250
|
+
var _this = this;
|
|
4251
|
+
this._subs.push(this.catalogService.activeStockView.subscribe(function (value) {
|
|
4252
|
+
_this.activeStockView = value;
|
|
4253
|
+
}));
|
|
4254
|
+
};
|
|
4255
|
+
CatalogFilterContentLogisticsComponent.prototype.ngOnDestroy = function () {
|
|
4256
|
+
this._subs.forEach(function (x) {
|
|
4257
|
+
x.unsubscribe();
|
|
4258
|
+
});
|
|
4171
4259
|
};
|
|
4172
4260
|
return CatalogFilterContentLogisticsComponent;
|
|
4173
4261
|
}());
|
|
4174
4262
|
CatalogFilterContentLogisticsComponent.decorators = [
|
|
4175
4263
|
{ type: i0.Component, args: [{
|
|
4176
4264
|
selector: 'co-catalog-filter-content-logistics',
|
|
4177
|
-
template: "\n
|
|
4265
|
+
template: "\n <div class=\"catalog-filter-content-logistics-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'SERIALNUMBER'\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.serialNumber\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'BATCH_NUMBER'\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.batchNumber\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'MUTATION_DATE'\"\n [mode]=\"modes.DateField\"\n [(model)]=\"catalogSearchService.searchRequest.dateModified\">\n </co-catalog-filter-item>\n </div>\n\n <ng-container *ngIf=\"activeStockView === StockView.PriceCards\">\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'UPDATE_DATE'\"\n [mode]=\"modes.DateRangeField\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'STOCK_MUTATION_DATE'\"\n [mode]=\"modes.DateRangeField\">\n </co-catalog-filter-item>\n </div>\n </ng-container>\n <ng-container *ngIf=\"activeStockView === StockView.StockOverview\">\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'UPDATE_DATE'\"\n [mode]=\"modes.DateRangeField\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'STOCK_MUTATION_DATE'\"\n [mode]=\"modes.DateRangeField\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'WAREHOUSE'\"\n [mode]=\"modes.Filterlist\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'STOCK_STATUS'\"\n [mode]=\"modes.Filterlist\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'SERIAL_NUMBER'\"\n [mode]=\"modes.TextField\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'BATCH_NO'\"\n [mode]=\"modes.TextField\">\n </co-catalog-filter-item>\n </div>\n </ng-container>\n <ng-container *ngIf=\"activeStockView === StockView.WarehouseTransfers\">\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'UPDATE_DATE'\"\n [mode]=\"modes.DateRangeField\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'STOCK_MUTATION_DATE'\"\n [mode]=\"modes.DateRangeField\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'STOCK_STATUS'\"\n [mode]=\"modes.Filterlist\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'SERIAL_NUMBER'\"\n [mode]=\"modes.TextField\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'BATCH_NO'\"\n [mode]=\"modes.TextField\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'SOURCE_WAREHOUSE'\"\n [mode]=\"modes.Filterlist\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'TARGET_WAREHOUSE'\"\n [mode]=\"modes.Filterlist\">\n </co-catalog-filter-item>\n </div>\n </ng-container>\n <ng-container *ngIf=\"activeStockView === StockView.StockComparison\">\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'UPDATE_DATE'\"\n [mode]=\"modes.DateRangeField\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'STOCK_STATUS'\"\n [mode]=\"modes.Filterlist\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'SERIAL_NUMBER'\"\n [mode]=\"modes.TextField\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'BATCH_NO'\"\n [mode]=\"modes.TextField\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'SOURCE_WAREHOUSE'\"\n [mode]=\"modes.Filterlist\">\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'TARGET_WAREHOUSE'\"\n [mode]=\"modes.Filterlist\">\n </co-catalog-filter-item>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n "
|
|
4178
4266
|
},] }
|
|
4179
4267
|
];
|
|
4180
4268
|
CatalogFilterContentLogisticsComponent.ctorParameters = function () { return [
|
|
4181
4269
|
{ type: CatalogSearchService },
|
|
4182
|
-
{ type: IconCacheService }
|
|
4270
|
+
{ type: IconCacheService },
|
|
4271
|
+
{ type: CatalogService }
|
|
4183
4272
|
]; };
|
|
4184
4273
|
CatalogFilterContentLogisticsComponent.propDecorators = {
|
|
4185
4274
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }],
|
|
@@ -4666,7 +4755,6 @@
|
|
|
4666
4755
|
this.articlesPerPage = 20;
|
|
4667
4756
|
this.tileArticles = [];
|
|
4668
4757
|
this.gridArticles = [];
|
|
4669
|
-
this.transferTileArticles = [];
|
|
4670
4758
|
this._currentPage = 1;
|
|
4671
4759
|
this._subs = [];
|
|
4672
4760
|
this._subs.push(this._optionService.parametersSet.subscribe(function (isSet) {
|
|
@@ -4825,6 +4913,12 @@
|
|
|
4825
4913
|
_this._filterService.getFilters(_this.searchRequest);
|
|
4826
4914
|
});
|
|
4827
4915
|
};
|
|
4916
|
+
CatalogStockTransferService.prototype.getArticleGridViewExcelFile = function () {
|
|
4917
|
+
this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeStockStatus: '', rangeSourceWarehouse: '', rangeTargetWarehouse: '' });
|
|
4918
|
+
this._catalogConnectorService.getTransferArticleGridViewExcelFile(this.stockSearchRequest).then(function (result) {
|
|
4919
|
+
console.log('export: ', result);
|
|
4920
|
+
});
|
|
4921
|
+
};
|
|
4828
4922
|
return CatalogStockTransferService;
|
|
4829
4923
|
}());
|
|
4830
4924
|
CatalogStockTransferService.decorators = [
|
|
@@ -4984,6 +5078,12 @@
|
|
|
4984
5078
|
_this._filterService.getFilters(_this.searchRequest);
|
|
4985
5079
|
});
|
|
4986
5080
|
};
|
|
5081
|
+
CatalogStockComparisonService.prototype.getArticleGridViewExcelFile = function () {
|
|
5082
|
+
this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { sourceWarehouse: 0, targetWarehouse: 0 });
|
|
5083
|
+
this._catalogConnectorService.getComparisonArticleGridViewExcelFile(this.stockSearchRequest).then(function (result) {
|
|
5084
|
+
console.log('export: ', result);
|
|
5085
|
+
});
|
|
5086
|
+
};
|
|
4987
5087
|
return CatalogStockComparisonService;
|
|
4988
5088
|
}());
|
|
4989
5089
|
CatalogStockComparisonService.decorators = [
|