@colijnit/sharedcomponents 1.0.43 → 1.0.44
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-sharedcomponents.umd.js +161 -78
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +27 -26
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +28 -27
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +2 -25
- package/esm2015/lib/components/stock/components/stock-prognose/stock-prognose.component.js +42 -0
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +49 -13
- package/esm2015/lib/components/stock/stock.component.js +1 -2
- package/esm2015/lib/components/stock/stock.module.js +4 -2
- package/esm2015/lib/components/tab-bar/tab-bar.component.js +12 -15
- package/esm2015/lib/service/shared-connector.service.js +17 -1
- package/esm2015/lib/service/stock.service.js +6 -1
- package/fesm2015/colijnit-sharedcomponents.js +120 -51
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/stock/components/stock-location/stock-location.component.d.ts +2 -1
- package/lib/components/stock/components/stock-prognose/stock-prognose.component.d.ts +11 -0
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +10 -0
- package/lib/components/tab-bar/tab-bar.component.d.ts +3 -6
- package/lib/service/shared-connector.service.d.ts +2 -0
- package/lib/service/stock.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -730,13 +730,13 @@
|
|
|
730
730
|
},] }
|
|
731
731
|
];
|
|
732
732
|
|
|
733
|
-
exports["
|
|
733
|
+
exports["ɵbu"] = void 0;
|
|
734
734
|
(function (LanguageCode) {
|
|
735
735
|
LanguageCode["Dutch"] = "nl-NL";
|
|
736
736
|
LanguageCode["English"] = "en-GB";
|
|
737
737
|
LanguageCode["German"] = "de-DE";
|
|
738
738
|
LanguageCode["French"] = "fr-FR";
|
|
739
|
-
})(exports["
|
|
739
|
+
})(exports["ɵbu"] || (exports["ɵbu"] = {}));
|
|
740
740
|
|
|
741
741
|
// Static utility functions holder related to strings.
|
|
742
742
|
var StringUtils = /** @class */ (function () {
|
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
DictionaryService.prototype.setDictionary = function (language) {
|
|
851
851
|
return __awaiter(this, void 0, void 0, function () {
|
|
852
852
|
return __generator(this, function (_a) {
|
|
853
|
-
this._language = language || exports["
|
|
853
|
+
this._language = language || exports["ɵbu"].Dutch;
|
|
854
854
|
this._loadDictionary();
|
|
855
855
|
return [2 /*return*/];
|
|
856
856
|
});
|
|
@@ -883,7 +883,7 @@
|
|
|
883
883
|
return key || "";
|
|
884
884
|
}
|
|
885
885
|
if (this.language === undefined) {
|
|
886
|
-
this._language = exports["
|
|
886
|
+
this._language = exports["ɵbu"].Dutch;
|
|
887
887
|
this._loadDictionary();
|
|
888
888
|
}
|
|
889
889
|
var text = this._dictionaries.get(this.language)[key];
|
|
@@ -1327,6 +1327,25 @@
|
|
|
1327
1327
|
});
|
|
1328
1328
|
});
|
|
1329
1329
|
};
|
|
1330
|
+
SharedConnectorService.prototype.getStockPrognose = function (goodId, warehouseNumber) {
|
|
1331
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1332
|
+
var _this = this;
|
|
1333
|
+
return __generator(this, function (_a) {
|
|
1334
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1335
|
+
return _this.articleConnector.getStockForecast(goodId, warehouseNumber).then(function (result) {
|
|
1336
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1337
|
+
if (result.resultObjects) {
|
|
1338
|
+
resolve(result.resultObjects);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
else {
|
|
1342
|
+
reject(result.validationMessagesAsString);
|
|
1343
|
+
}
|
|
1344
|
+
});
|
|
1345
|
+
})];
|
|
1346
|
+
});
|
|
1347
|
+
});
|
|
1348
|
+
};
|
|
1330
1349
|
SharedConnectorService.prototype.commit = function () {
|
|
1331
1350
|
return this.articleConnector.commit();
|
|
1332
1351
|
};
|
|
@@ -1457,6 +1476,16 @@
|
|
|
1457
1476
|
});
|
|
1458
1477
|
});
|
|
1459
1478
|
};
|
|
1479
|
+
StockService.prototype.stockPrognose = function (goodId, warehouseNumber) {
|
|
1480
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1481
|
+
return __generator(this, function (_a) {
|
|
1482
|
+
switch (_a.label) {
|
|
1483
|
+
case 0: return [4 /*yield*/, this._sharedService.getStockPrognose(goodId, warehouseNumber)];
|
|
1484
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1485
|
+
}
|
|
1486
|
+
});
|
|
1487
|
+
});
|
|
1488
|
+
};
|
|
1460
1489
|
StockService.prototype.lockArticleDetails = function (data) {
|
|
1461
1490
|
return __awaiter(this, void 0, void 0, function () {
|
|
1462
1491
|
return __generator(this, function (_a) {
|
|
@@ -1630,7 +1659,6 @@
|
|
|
1630
1659
|
};
|
|
1631
1660
|
StockComponent.prototype.handleSendMethodClick = function (event) {
|
|
1632
1661
|
this.showSendMethodDialog = true;
|
|
1633
|
-
console.log(event);
|
|
1634
1662
|
};
|
|
1635
1663
|
StockComponent.prototype.backToStock = function () {
|
|
1636
1664
|
this.showStockTransfer = !this.showStockTransfer;
|
|
@@ -1841,7 +1869,7 @@
|
|
|
1841
1869
|
]; };
|
|
1842
1870
|
|
|
1843
1871
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
1844
|
-
exports["
|
|
1872
|
+
exports["ɵbo"] = void 0;
|
|
1845
1873
|
(function (Icon) {
|
|
1846
1874
|
Icon["AngleLeftSolid"] = "angle_left_solid";
|
|
1847
1875
|
Icon["AngleRightSolid"] = "angle_right_solid";
|
|
@@ -1867,13 +1895,13 @@
|
|
|
1867
1895
|
Icon["PrintSolid"] = "print_solid";
|
|
1868
1896
|
Icon["SignatureField"] = "signature_field";
|
|
1869
1897
|
Icon["Xml"] = "xml";
|
|
1870
|
-
})(exports["
|
|
1898
|
+
})(exports["ɵbo"] || (exports["ɵbo"] = {}));
|
|
1871
1899
|
|
|
1872
1900
|
var StockInformationGridComponent = /** @class */ (function () {
|
|
1873
1901
|
function StockInformationGridComponent(iconCacheService, _stockService) {
|
|
1874
1902
|
this.iconCacheService = iconCacheService;
|
|
1875
1903
|
this._stockService = _stockService;
|
|
1876
|
-
this.icons = exports["
|
|
1904
|
+
this.icons = exports["ɵbo"];
|
|
1877
1905
|
this.transferIconClicked = new i0.EventEmitter();
|
|
1878
1906
|
this.historyClicked = new i0.EventEmitter();
|
|
1879
1907
|
this.cancelButtonClicked = new i0.EventEmitter();
|
|
@@ -2320,13 +2348,13 @@
|
|
|
2320
2348
|
}());
|
|
2321
2349
|
|
|
2322
2350
|
var sendMethodsWithIcon = [
|
|
2323
|
-
new SendMethod(sendMethodType_enum.SendMethodType.Fax, "Fax", exports["
|
|
2324
|
-
new SendMethod(sendMethodType_enum.SendMethodType.Print, "Print", exports["
|
|
2325
|
-
new SendMethod(sendMethodType_enum.SendMethodType.Email, "Email", exports["
|
|
2326
|
-
new SendMethod(sendMethodType_enum.SendMethodType.Edi, "Edi", exports["
|
|
2327
|
-
new SendMethod(sendMethodType_enum.SendMethodType.EmailTemplate, "Email template", exports["
|
|
2328
|
-
new SendMethod(sendMethodType_enum.SendMethodType.Sms, "Sms", exports["
|
|
2329
|
-
new SendMethod(sendMethodType_enum.SendMethodType.WebService, "Webservice", exports["
|
|
2351
|
+
new SendMethod(sendMethodType_enum.SendMethodType.Fax, "Fax", exports["ɵbo"].PrintRegular),
|
|
2352
|
+
new SendMethod(sendMethodType_enum.SendMethodType.Print, "Print", exports["ɵbo"].PrintSolid),
|
|
2353
|
+
new SendMethod(sendMethodType_enum.SendMethodType.Email, "Email", exports["ɵbo"].AtSolid),
|
|
2354
|
+
new SendMethod(sendMethodType_enum.SendMethodType.Edi, "Edi", exports["ɵbo"].FileExportSolid),
|
|
2355
|
+
new SendMethod(sendMethodType_enum.SendMethodType.EmailTemplate, "Email template", exports["ɵbo"].EnvelopeRegular),
|
|
2356
|
+
new SendMethod(sendMethodType_enum.SendMethodType.Sms, "Sms", exports["ɵbo"].MessageSmsSolid),
|
|
2357
|
+
new SendMethod(sendMethodType_enum.SendMethodType.WebService, "Webservice", exports["ɵbo"].PrintRegular)
|
|
2330
2358
|
];
|
|
2331
2359
|
var SendMethodDialogComponent = /** @class */ (function () {
|
|
2332
2360
|
function SendMethodDialogComponent(iconCacheService, _changeDetector, _sharedService, _sendMethodService) {
|
|
@@ -2335,7 +2363,7 @@
|
|
|
2335
2363
|
this._changeDetector = _changeDetector;
|
|
2336
2364
|
this._sharedService = _sharedService;
|
|
2337
2365
|
this._sendMethodService = _sendMethodService;
|
|
2338
|
-
this.icons = exports["
|
|
2366
|
+
this.icons = exports["ɵbo"];
|
|
2339
2367
|
this.printerList = [];
|
|
2340
2368
|
this.emailLayouts = [];
|
|
2341
2369
|
this.printLayouts = [];
|
|
@@ -2676,7 +2704,7 @@
|
|
|
2676
2704
|
this.sendMethodService = sendMethodService;
|
|
2677
2705
|
this.iconService = iconService;
|
|
2678
2706
|
this._service = _service;
|
|
2679
|
-
this.icons = exports["
|
|
2707
|
+
this.icons = exports["ɵbo"];
|
|
2680
2708
|
this.printers = [];
|
|
2681
2709
|
this.showPrinterList = false;
|
|
2682
2710
|
}
|
|
@@ -2874,7 +2902,7 @@
|
|
|
2874
2902
|
function OrderTabComponent(iconCacheService, _stockService) {
|
|
2875
2903
|
this.iconCacheService = iconCacheService;
|
|
2876
2904
|
this._stockService = _stockService;
|
|
2877
|
-
this.icons = exports["
|
|
2905
|
+
this.icons = exports["ɵbo"];
|
|
2878
2906
|
this.locationClicked = new i0.EventEmitter();
|
|
2879
2907
|
this.transferIconClicked = new i0.EventEmitter();
|
|
2880
2908
|
this.sendMethodDialogClicked = new i0.EventEmitter();
|
|
@@ -2910,9 +2938,11 @@
|
|
|
2910
2938
|
function StockTabsComponent(_stockService, _localizeService) {
|
|
2911
2939
|
this._stockService = _stockService;
|
|
2912
2940
|
this._localizeService = _localizeService;
|
|
2913
|
-
this.icons = exports["
|
|
2941
|
+
this.icons = exports["ɵbo"];
|
|
2914
2942
|
this.transferIconClicked = new i0.EventEmitter();
|
|
2915
2943
|
this.sendMethodDialogClicked = new i0.EventEmitter();
|
|
2944
|
+
this.articleDetailsInformation = new articleStockManagement.ArticleStockManagement();
|
|
2945
|
+
this.showWarehouseSelection = false;
|
|
2916
2946
|
this.tabs = [];
|
|
2917
2947
|
this.historyTabs = [];
|
|
2918
2948
|
}
|
|
@@ -2920,6 +2950,7 @@
|
|
|
2920
2950
|
var _this = this;
|
|
2921
2951
|
this.tabs = [
|
|
2922
2952
|
{ title: this._localizeService.get('OVERVIEW'), active: true },
|
|
2953
|
+
{ title: this._localizeService.get('STOCK_FORECAST'), active: false },
|
|
2923
2954
|
{ title: this._localizeService.get('STOCK_DETAILS'), active: false },
|
|
2924
2955
|
{ title: this._localizeService.get('ALREADY_IN_ORDER'), active: false, clickHandler: function () { return _this.getInOrderData(); } },
|
|
2925
2956
|
{ title: this._localizeService.get('IN_ORDER'), active: false, clickHandler: function () { return _this.getOrderData(); } },
|
|
@@ -2932,11 +2963,13 @@
|
|
|
2932
2963
|
{ title: this._localizeService.get('ORDER'), active: false, clickHandler: function () { return _this.getOrderStockHistory(); } },
|
|
2933
2964
|
{ title: this._localizeService.get('ALLOCATION'), active: false, clickHandler: function () { return _this.getAllocationStockHistory(); } },
|
|
2934
2965
|
];
|
|
2966
|
+
console.log(this.tabs[0]);
|
|
2967
|
+
console.log(this.historyTabs[5]);
|
|
2935
2968
|
};
|
|
2936
2969
|
StockTabsComponent.prototype.handleLocationClicked = function (data) {
|
|
2937
2970
|
this.selectedLocation = data.warehouseNo;
|
|
2938
2971
|
this.tabs[0].active = false;
|
|
2939
|
-
this.tabs[
|
|
2972
|
+
this.tabs[2].active = true;
|
|
2940
2973
|
};
|
|
2941
2974
|
StockTabsComponent.prototype.getStockHistory = function () {
|
|
2942
2975
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -3078,12 +3111,41 @@
|
|
|
3078
3111
|
});
|
|
3079
3112
|
});
|
|
3080
3113
|
};
|
|
3114
|
+
StockTabsComponent.prototype.getStockPrognose = function (warehouseNo) {
|
|
3115
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3116
|
+
var _a;
|
|
3117
|
+
return __generator(this, function (_b) {
|
|
3118
|
+
switch (_b.label) {
|
|
3119
|
+
case 0:
|
|
3120
|
+
_a = this;
|
|
3121
|
+
return [4 /*yield*/, this._stockService.stockPrognose(this.article.goodId, warehouseNo)];
|
|
3122
|
+
case 1:
|
|
3123
|
+
_a.stockPrognose = _b.sent();
|
|
3124
|
+
return [2 /*return*/];
|
|
3125
|
+
}
|
|
3126
|
+
});
|
|
3127
|
+
});
|
|
3128
|
+
};
|
|
3129
|
+
StockTabsComponent.prototype.handleWarehouseSelected = function (event) {
|
|
3130
|
+
var _this = this;
|
|
3131
|
+
this.selectedWarehouse = event;
|
|
3132
|
+
if (this.tabs[1].active) {
|
|
3133
|
+
this.getStockPrognose(this.selectedWarehouse.warehouseNo);
|
|
3134
|
+
}
|
|
3135
|
+
if (this.tabs[2].active) {
|
|
3136
|
+
this.articleDetailsInformation.warehouseNumber = event.warehouseNo;
|
|
3137
|
+
this.articleDetailsInformation.goodId = this.article.goodId;
|
|
3138
|
+
this._stockService.getArticleDetails(this.articleDetailsInformation).then(function (details) {
|
|
3139
|
+
_this.articleDetails = details;
|
|
3140
|
+
});
|
|
3141
|
+
}
|
|
3142
|
+
};
|
|
3081
3143
|
return StockTabsComponent;
|
|
3082
3144
|
}());
|
|
3083
3145
|
StockTabsComponent.decorators = [
|
|
3084
3146
|
{ type: i0.Component, args: [{
|
|
3085
3147
|
selector: "co-stock-tabs",
|
|
3086
|
-
template: "\n <co-tab-bar [wareHouseLabel]=\"'CHOICES' | localize\"
|
|
3148
|
+
template: "\n <co-tab-bar [wareHouseLabel]=\"'CHOICES' | localize\"\n [wareHouseSearchLabel]=\"'SEARCH' | localize\"\n [tabs]=\"tabs\"\n [dataWareHouseCode]=\"warehouses\"\n [secondaryTabs]=\"historyTabs\"\n [ActivateSecondaryTabs]=\"tabs[5].active\"\n [showWarehouseSelection]=\"tabs[1].active || tabs[2].active\"\n (warehouseSelected)=\"handleWarehouseSelected($event)\"\n ></co-tab-bar>\n\n <co-stock-tab *ngIf=\"tabs[0].active\"\n [articleStockInformation]=\"stockInformation\"\n (locationClicked)=\"handleLocationClicked($event)\"\n ></co-stock-tab>\n\n <co-stock-prognose *ngIf=\"tabs[1].active\"\n [stockPrognose]=\"stockPrognose\"\n ></co-stock-prognose>\n\n <co-stock-location *ngIf=\"tabs[2].active\"\n [articleStockInfo]=\"articleDetails\"\n [articleStockInformation]=\"stockInformation\"\n [article]=\"article\"\n [clickedLocation]=\"selectedLocation\"\n [dataWareHouseCode]=\"warehouses\"\n (transferIconClicked)=\"transferIconClicked.emit($event)\"\n (sendMethodDialogClicked)=\"sendMethodDialogClicked.emit($event)\"\n ></co-stock-location>\n\n <co-order-tab *ngIf=\"tabs[3].active\"\n [articleStockInformation]=\"stockInformation\"\n [inOrderInformation]=\"inOrderInformation\"\n (transferIconClicked)=\"transferIconClicked.emit($event)\"\n (sendMethodDialogClicked)=\"sendMethodDialogClicked.emit($event)\"\n ></co-order-tab>\n\n <co-order-stock-tab *ngIf=\"tabs[4].active\"\n [orderInformation]=\"orderInformation\"\n ></co-order-stock-tab>\n\n <co-stock-history *ngIf=\"historyTabs[0].active && tabs[5].active\"\n [stockHistory]=\"stockHistory\"\n ></co-stock-history>\n\n <co-order-supply-stock-history *ngIf=\"historyTabs[1].active && tabs[5].active\"\n [orderSupplyStockHistory]=\"orderSupplyStockHistory\"\n ></co-order-supply-stock-history>\n\n <co-order-stock-commission-history *ngIf=\"historyTabs[2].active && tabs[5].active\"\n [orderStockCommissionHistory]=\"orderCommissionStockHistory\"\n ></co-order-stock-commission-history>\n\n <co-order-stock-history *ngIf=\"historyTabs[3].active && tabs[5].active\"\n [orderStockHistory]=\"orderStockHistory\"\n ></co-order-stock-history>\n\n <co-allocation-stock-history *ngIf=\"historyTabs[4].active && tabs[5].active\"\n [allocationStockHistory]=\"orderAllocationStockHistory\"\n ></co-allocation-stock-history>\n\n ",
|
|
3087
3149
|
encapsulation: i0.ViewEncapsulation.None
|
|
3088
3150
|
},] }
|
|
3089
3151
|
];
|
|
@@ -3101,7 +3163,7 @@
|
|
|
3101
3163
|
|
|
3102
3164
|
var StockHistoryTabsComponent = /** @class */ (function () {
|
|
3103
3165
|
function StockHistoryTabsComponent() {
|
|
3104
|
-
this.icons = exports["
|
|
3166
|
+
this.icons = exports["ɵbo"];
|
|
3105
3167
|
this.selectedTab = 0;
|
|
3106
3168
|
}
|
|
3107
3169
|
return StockHistoryTabsComponent;
|
|
@@ -3121,7 +3183,7 @@
|
|
|
3121
3183
|
function OrderStockTabComponent(iconCacheService, _stockService) {
|
|
3122
3184
|
this.iconCacheService = iconCacheService;
|
|
3123
3185
|
this._stockService = _stockService;
|
|
3124
|
-
this.icons = exports["
|
|
3186
|
+
this.icons = exports["ɵbo"];
|
|
3125
3187
|
}
|
|
3126
3188
|
return OrderStockTabComponent;
|
|
3127
3189
|
}());
|
|
@@ -3145,7 +3207,7 @@
|
|
|
3145
3207
|
this.iconCacheService = iconCacheService;
|
|
3146
3208
|
this._stockService = _stockService;
|
|
3147
3209
|
this._changeDetector = _changeDetector;
|
|
3148
|
-
this.icons = exports["
|
|
3210
|
+
this.icons = exports["ɵbo"];
|
|
3149
3211
|
this.transferIconClicked = new i0.EventEmitter();
|
|
3150
3212
|
this.sendMethodDialogClicked = new i0.EventEmitter();
|
|
3151
3213
|
this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNo" };
|
|
@@ -3219,7 +3281,7 @@
|
|
|
3219
3281
|
StockLocationComponent.decorators = [
|
|
3220
3282
|
{ type: i0.Component, args: [{
|
|
3221
3283
|
selector: "co-stock-location",
|
|
3222
|
-
template: "\n <div class=\"stock-grid\">\n <
|
|
3284
|
+
template: "\n <div class=\"stock-grid\">\n <co-simple-grid [data]=\"articleDetails\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n [showAdd]=\"true\"\n [inlineEdit]=\"true\"\n (dblClickRow)=\"lockSelectedRow($event)\"\n [showToolbar]=\"true\"\n (keydown.enter)=\"onOkClickSendLocations()\"\n >\n <co-simple-grid-column [headerText]=\"'LOCATION' | localize\" [field]=\"'locationNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-drop-down-list [(model)]=\"row.locationNo\"\n [collection]=\"stockLocations\"\n [fields]=\"dataLocationFields\"\n [placeholder]=\"'LOCATION' | localize\"\n (click)=\"onLocationDropdownClick()\"\n [required]=\"true\"\n (modelChange)=\"locationChanged($event)\"\n ></co-drop-down-list>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleDetails\" [headerText]=\"'BATCH' | localize\" [field]=\"'batchNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [(model)]=\"row.batchNo\"\n [placeholder]=\"'BATCH' | localize\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleDetails\" [headerText]=\"'SERIAL_NO' | localize\" [field]=\"'serialNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [(model)]=\"row.serialNo\"\n [placeholder]=\"'SERIAL_NO' | localize\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK' | localize\" [field]=\"'amountInStock'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [(model)]=\"row.amountInStock\"\n [label]=\"'STOCK' | localize\"\n (modelChange)=\"amountInStockChanged($event)\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED' | localize\" [field]=\"'stockAssigned'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row.stockAssigned\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK' | localize\" [field]=\"'amountInStockFree'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row.amountInStockFree\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA' | localize\" [field]=\"'currency'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row.currency\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PURCHASE_PRICE' | localize\" [field]=\"'purchasePrice'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row.purchasePrice\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SUPPLIER_NUMBER' | localize\" [field]=\"'supplierNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row.supplierNo\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSFER' | localize\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\"\n (click)=\"handleStockTransferClick(row)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER' | localize\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"\n (click)=\"openSendMethodDialog(row)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
|
|
3223
3285
|
encapsulation: i0.ViewEncapsulation.None
|
|
3224
3286
|
},] }
|
|
3225
3287
|
];
|
|
@@ -3229,6 +3291,7 @@
|
|
|
3229
3291
|
{ type: i0.ChangeDetectorRef }
|
|
3230
3292
|
]; };
|
|
3231
3293
|
StockLocationComponent.propDecorators = {
|
|
3294
|
+
articleStockInfo: [{ type: i0.Input }],
|
|
3232
3295
|
articleStockInformation: [{ type: i0.Input }],
|
|
3233
3296
|
article: [{ type: i0.Input }],
|
|
3234
3297
|
clickedLocation: [{ type: i0.Input }],
|
|
@@ -3241,7 +3304,7 @@
|
|
|
3241
3304
|
function StockHistoryComponent(iconCacheService, _stockService) {
|
|
3242
3305
|
this.iconCacheService = iconCacheService;
|
|
3243
3306
|
this._stockService = _stockService;
|
|
3244
|
-
this.icons = exports["
|
|
3307
|
+
this.icons = exports["ɵbo"];
|
|
3245
3308
|
}
|
|
3246
3309
|
return StockHistoryComponent;
|
|
3247
3310
|
}());
|
|
@@ -3266,8 +3329,8 @@
|
|
|
3266
3329
|
function TabBarComponent(_stockService) {
|
|
3267
3330
|
this._stockService = _stockService;
|
|
3268
3331
|
this.ActivateSecondaryTabs = false;
|
|
3269
|
-
this.
|
|
3270
|
-
this.
|
|
3332
|
+
this.showWarehouseSelection = false;
|
|
3333
|
+
this.warehouseSelected = new i0.EventEmitter();
|
|
3271
3334
|
}
|
|
3272
3335
|
TabBarComponent.prototype.selectTab = function (tab) {
|
|
3273
3336
|
if (tab.clickHandler) {
|
|
@@ -3284,21 +3347,14 @@
|
|
|
3284
3347
|
secondaryTab.active = true;
|
|
3285
3348
|
};
|
|
3286
3349
|
TabBarComponent.prototype.onSelectWarehouse = function (event) {
|
|
3287
|
-
|
|
3288
|
-
this.articleDetailsInformation.warehouseNumber = event;
|
|
3289
|
-
this.articleDetailsInformation.goodId = this.article.goodId;
|
|
3290
|
-
if (this.selectedWarehouse || this.selectedWarehouse === 0) {
|
|
3291
|
-
this._stockService.getArticleDetails(this.articleDetailsInformation).then(function (details) {
|
|
3292
|
-
_this.articleDetails = details;
|
|
3293
|
-
});
|
|
3294
|
-
}
|
|
3350
|
+
this.warehouseSelected.emit(event);
|
|
3295
3351
|
};
|
|
3296
3352
|
return TabBarComponent;
|
|
3297
3353
|
}());
|
|
3298
3354
|
TabBarComponent.decorators = [
|
|
3299
3355
|
{ type: i0.Component, args: [{
|
|
3300
3356
|
selector: "co-tab-bar",
|
|
3301
|
-
template: "\n <div class=\"tab-bar-wrapper\">\n <div class=\"tab-bar-warehouse-wrapper\">\n <div class=\"stock-location-group\">\n <div class=\"stock-location-right-group\">\n <co-list-of-values [label]=\"wareHouseLabel\"\n [displayField]=\"'warehouseDescription'\"\n [collection]=\"dataWareHouseCode\"\n [multiselect]=\"false\"\n [required]=\"false\"\n [readonly]=\"
|
|
3357
|
+
template: "\n <div class=\"tab-bar-wrapper\">\n <div class=\"tab-bar-warehouse-wrapper\">\n <div class=\"stock-location-group\">\n <div class=\"stock-location-right-group\">\n <co-list-of-values *ngIf=\"showWarehouseSelection\"\n [label]=\"wareHouseLabel\"\n [displayField]=\"'warehouseDescription'\"\n [collection]=\"dataWareHouseCode\"\n [multiselect]=\"false\"\n [required]=\"false\"\n [readonly]=\"false\"\n [customCssClass]=\"'mini-scrollbar'\"\n [searchPlaceholder]=\"wareHouseSearchLabel\"\n [model]=\"selectedWarehouse\"\n (modelChange)=\"onSelectWarehouse($event)\"\n >\n </co-list-of-values>\n </div>\n </div>\n </div>\n <div class=\"tab-bar\">\n <div class=\"tab-bar-primary\">\n <button *ngFor=\"let tab of tabs\" [class.active]=\"tab.active\" (click)=\"selectTab(tab)\">\n {{tab.title}}\n </button>\n </div>\n <div class=\"secondary-tab-bar\" *ngIf=\"ActivateSecondaryTabs\">\n <button *ngFor=\"let tab of secondaryTabs\" [class.active]=\"tab.active\" (click)=\"selectSecondaryTab(tab)\">\n {{tab.title}}\n </button>\n </div>\n </div>\n </div>\n ",
|
|
3302
3358
|
encapsulation: i0.ViewEncapsulation.None
|
|
3303
3359
|
},] }
|
|
3304
3360
|
];
|
|
@@ -3312,7 +3368,9 @@
|
|
|
3312
3368
|
secondaryTabs: [{ type: i0.Input }],
|
|
3313
3369
|
ActivateSecondaryTabs: [{ type: i0.Input }],
|
|
3314
3370
|
dataWareHouseCode: [{ type: i0.Input }],
|
|
3315
|
-
article: [{ type: i0.Input }]
|
|
3371
|
+
article: [{ type: i0.Input }],
|
|
3372
|
+
showWarehouseSelection: [{ type: i0.Input }],
|
|
3373
|
+
warehouseSelected: [{ type: i0.Output }]
|
|
3316
3374
|
};
|
|
3317
3375
|
|
|
3318
3376
|
var TabBarModule = /** @class */ (function () {
|
|
@@ -3339,7 +3397,7 @@
|
|
|
3339
3397
|
var OrderSupplyStockHistoryComponent = /** @class */ (function () {
|
|
3340
3398
|
function OrderSupplyStockHistoryComponent(iconCacheService) {
|
|
3341
3399
|
this.iconCacheService = iconCacheService;
|
|
3342
|
-
this.icons = exports["
|
|
3400
|
+
this.icons = exports["ɵbo"];
|
|
3343
3401
|
}
|
|
3344
3402
|
return OrderSupplyStockHistoryComponent;
|
|
3345
3403
|
}());
|
|
@@ -3360,7 +3418,7 @@
|
|
|
3360
3418
|
var OrderCommissionStockHistoryComponent = /** @class */ (function () {
|
|
3361
3419
|
function OrderCommissionStockHistoryComponent(iconCacheService) {
|
|
3362
3420
|
this.iconCacheService = iconCacheService;
|
|
3363
|
-
this.icons = exports["
|
|
3421
|
+
this.icons = exports["ɵbo"];
|
|
3364
3422
|
}
|
|
3365
3423
|
return OrderCommissionStockHistoryComponent;
|
|
3366
3424
|
}());
|
|
@@ -3381,7 +3439,7 @@
|
|
|
3381
3439
|
var OrderStockHistoryComponent = /** @class */ (function () {
|
|
3382
3440
|
function OrderStockHistoryComponent(iconCacheService) {
|
|
3383
3441
|
this.iconCacheService = iconCacheService;
|
|
3384
|
-
this.icons = exports["
|
|
3442
|
+
this.icons = exports["ɵbo"];
|
|
3385
3443
|
}
|
|
3386
3444
|
return OrderStockHistoryComponent;
|
|
3387
3445
|
}());
|
|
@@ -3402,7 +3460,7 @@
|
|
|
3402
3460
|
var AllocationStockHistoryComponent = /** @class */ (function () {
|
|
3403
3461
|
function AllocationStockHistoryComponent(iconCacheService) {
|
|
3404
3462
|
this.iconCacheService = iconCacheService;
|
|
3405
|
-
this.icons = exports["
|
|
3463
|
+
this.icons = exports["ɵbo"];
|
|
3406
3464
|
}
|
|
3407
3465
|
return AllocationStockHistoryComponent;
|
|
3408
3466
|
}());
|
|
@@ -3804,6 +3862,29 @@
|
|
|
3804
3862
|
},] }
|
|
3805
3863
|
];
|
|
3806
3864
|
|
|
3865
|
+
var StockPrognoseComponent = /** @class */ (function () {
|
|
3866
|
+
function StockPrognoseComponent(iconCacheService, _stockService) {
|
|
3867
|
+
this.iconCacheService = iconCacheService;
|
|
3868
|
+
this._stockService = _stockService;
|
|
3869
|
+
this.icons = exports["ɵbo"];
|
|
3870
|
+
}
|
|
3871
|
+
return StockPrognoseComponent;
|
|
3872
|
+
}());
|
|
3873
|
+
StockPrognoseComponent.decorators = [
|
|
3874
|
+
{ type: i0.Component, args: [{
|
|
3875
|
+
selector: "co-stock-prognose",
|
|
3876
|
+
template: "\n <co-simple-grid [data]=\"stockPrognose\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n >\n <co-simple-grid-column [headerText]=\"'AVAILABILITY'\" [field]=\"'available'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'FREE_STOCK'\" [field]=\"'freeStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'IN_ORDER'\" [field]=\"'inOrder'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PURCHASE_ORDER'\" [field]=\"'transNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PURCHASE_ORDER_DATE'\" [field]=\"'transactionDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE'\" [field]=\"'docNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'REFERENCE'\" [field]=\"'reference'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE_CONFIRMED'\" [field]=\"'transConfirmedDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE_DELIVERED'\" [field]=\"'transDeliveryDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'FUTURE_FREE_STOCK'\" [field]=\"'laterAvailable'\"></co-simple-grid-column>\n </co-simple-grid>\n ",
|
|
3877
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
3878
|
+
},] }
|
|
3879
|
+
];
|
|
3880
|
+
StockPrognoseComponent.ctorParameters = function () { return [
|
|
3881
|
+
{ type: IconCacheService },
|
|
3882
|
+
{ type: StockService }
|
|
3883
|
+
]; };
|
|
3884
|
+
StockPrognoseComponent.propDecorators = {
|
|
3885
|
+
stockPrognose: [{ type: i0.Input }]
|
|
3886
|
+
};
|
|
3887
|
+
|
|
3807
3888
|
var LocalizePipe = /** @class */ (function () {
|
|
3808
3889
|
function LocalizePipe(_localizeService) {
|
|
3809
3890
|
this._localizeService = _localizeService;
|
|
@@ -3877,7 +3958,8 @@
|
|
|
3877
3958
|
OrderCommissionStockHistoryComponent,
|
|
3878
3959
|
OrderStockHistoryComponent,
|
|
3879
3960
|
AllocationStockHistoryComponent,
|
|
3880
|
-
LocalizePipe
|
|
3961
|
+
LocalizePipe,
|
|
3962
|
+
StockPrognoseComponent
|
|
3881
3963
|
],
|
|
3882
3964
|
exports: [
|
|
3883
3965
|
StockComponent
|
|
@@ -3924,7 +4006,7 @@
|
|
|
3924
4006
|
var KeyPadComponent = /** @class */ (function () {
|
|
3925
4007
|
function KeyPadComponent(iconCacheService) {
|
|
3926
4008
|
this.iconCacheService = iconCacheService;
|
|
3927
|
-
this.icons = exports["
|
|
4009
|
+
this.icons = exports["ɵbo"];
|
|
3928
4010
|
this.showValue = true;
|
|
3929
4011
|
this.emitModelChangeOnEnter = true;
|
|
3930
4012
|
this.modelChange = new i0.EventEmitter();
|
|
@@ -4115,7 +4197,7 @@
|
|
|
4115
4197
|
var LayoutSwitcherComponent = /** @class */ (function () {
|
|
4116
4198
|
function LayoutSwitcherComponent(iconCacheService) {
|
|
4117
4199
|
this.iconCacheService = iconCacheService;
|
|
4118
|
-
this.icon = exports["
|
|
4200
|
+
this.icon = exports["ɵbo"];
|
|
4119
4201
|
this.layoutItems = [];
|
|
4120
4202
|
this.layoutSwitchEmit = new i0.EventEmitter();
|
|
4121
4203
|
this.showMaskSidebar = false;
|
|
@@ -4380,7 +4462,7 @@
|
|
|
4380
4462
|
this.iconCacheService = iconCacheService;
|
|
4381
4463
|
this.selectedDate = new Date();
|
|
4382
4464
|
this.selectedDateChange = new i0.EventEmitter();
|
|
4383
|
-
this.icons = exports["
|
|
4465
|
+
this.icons = exports["ɵbo"];
|
|
4384
4466
|
this.showMonthYearSelect = false;
|
|
4385
4467
|
this.expanded = false;
|
|
4386
4468
|
}
|
|
@@ -4941,7 +5023,7 @@
|
|
|
4941
5023
|
},] }
|
|
4942
5024
|
];
|
|
4943
5025
|
CalendarViewComponent.ctorParameters = function () { return [
|
|
4944
|
-
{ type: exports["
|
|
5026
|
+
{ type: exports["ɵbu"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
|
|
4945
5027
|
]; };
|
|
4946
5028
|
CalendarViewComponent.propDecorators = {
|
|
4947
5029
|
view: [{ type: i0.Input }],
|
|
@@ -5029,7 +5111,7 @@
|
|
|
5029
5111
|
CalendarUtils.Locale = undefined;
|
|
5030
5112
|
CalendarUtils.Now = new Date();
|
|
5031
5113
|
CalendarUtils.ctorParameters = function () { return [
|
|
5032
|
-
{ type: exports["
|
|
5114
|
+
{ type: exports["ɵbu"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
|
|
5033
5115
|
]; };
|
|
5034
5116
|
|
|
5035
5117
|
var AgendaEvent = /** @class */ (function () {
|
|
@@ -5086,7 +5168,7 @@
|
|
|
5086
5168
|
this._renderer = _renderer;
|
|
5087
5169
|
this._ngZone = _ngZone;
|
|
5088
5170
|
this.iconCacheService = iconCacheService;
|
|
5089
|
-
this.icons = exports["
|
|
5171
|
+
this.icons = exports["ɵbo"];
|
|
5090
5172
|
this.viewTypes = CalendarView;
|
|
5091
5173
|
this.scrollbarWidth = 15;
|
|
5092
5174
|
this.view = CalendarView.WeekSelectView;
|
|
@@ -5262,7 +5344,7 @@
|
|
|
5262
5344
|
},] }
|
|
5263
5345
|
];
|
|
5264
5346
|
AgendaHeaderComponent.ctorParameters = function () { return [
|
|
5265
|
-
{ type: exports["
|
|
5347
|
+
{ type: exports["ɵbu"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
|
|
5266
5348
|
{ type: i0.ElementRef },
|
|
5267
5349
|
{ type: i0.Renderer2 },
|
|
5268
5350
|
{ type: i0.NgZone },
|
|
@@ -5362,7 +5444,7 @@
|
|
|
5362
5444
|
{ type: i0.Directive }
|
|
5363
5445
|
];
|
|
5364
5446
|
AgendaBaseViewComponent.ctorParameters = function () { return [
|
|
5365
|
-
{ type: exports["
|
|
5447
|
+
{ type: exports["ɵbu"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
|
|
5366
5448
|
{ type: IconCacheService }
|
|
5367
5449
|
]; };
|
|
5368
5450
|
AgendaBaseViewComponent.propDecorators = {
|
|
@@ -5478,7 +5560,7 @@
|
|
|
5478
5560
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
5479
5561
|
_this.view = CalendarView.WeekSelectView;
|
|
5480
5562
|
_this.week = NULL_WEEK;
|
|
5481
|
-
_this.icons = exports["
|
|
5563
|
+
_this.icons = exports["ɵbo"];
|
|
5482
5564
|
return _this;
|
|
5483
5565
|
}
|
|
5484
5566
|
AgendaWeekSelectViewComponent.prototype.prepareViewData = function () {
|
|
@@ -5723,7 +5805,7 @@
|
|
|
5723
5805
|
this._elementRef = _elementRef;
|
|
5724
5806
|
this._renderer = _renderer;
|
|
5725
5807
|
this.iconCacheService = iconCacheService;
|
|
5726
|
-
this.icons = exports["
|
|
5808
|
+
this.icons = exports["ɵbo"];
|
|
5727
5809
|
this.event = NULL_AGENDA_EVENT;
|
|
5728
5810
|
this.eventChecked = new i0.EventEmitter();
|
|
5729
5811
|
}
|
|
@@ -5892,7 +5974,7 @@
|
|
|
5892
5974
|
var AgendaSelectEventComponent = /** @class */ (function () {
|
|
5893
5975
|
function AgendaSelectEventComponent(iconCacheService) {
|
|
5894
5976
|
this.iconCacheService = iconCacheService;
|
|
5895
|
-
this.icons = exports["
|
|
5977
|
+
this.icons = exports["ɵbo"];
|
|
5896
5978
|
this.event = NULL_AGENDA_EVENT;
|
|
5897
5979
|
this.eventChecked = new i0.EventEmitter();
|
|
5898
5980
|
}
|
|
@@ -6001,31 +6083,32 @@
|
|
|
6001
6083
|
exports["ɵbj"] = OrderStockHistoryComponent;
|
|
6002
6084
|
exports["ɵbk"] = AllocationStockHistoryComponent;
|
|
6003
6085
|
exports["ɵbl"] = LocalizePipe;
|
|
6004
|
-
exports["ɵbm"] =
|
|
6005
|
-
exports["
|
|
6006
|
-
exports["ɵbp"] =
|
|
6007
|
-
exports["ɵbq"] =
|
|
6008
|
-
exports["ɵbr"] =
|
|
6009
|
-
exports["ɵbs"] =
|
|
6010
|
-
exports["
|
|
6011
|
-
exports["ɵbv"] =
|
|
6012
|
-
exports["ɵbw"] =
|
|
6013
|
-
exports["ɵbx"] =
|
|
6014
|
-
exports["ɵby"] =
|
|
6015
|
-
exports["ɵbz"] =
|
|
6086
|
+
exports["ɵbm"] = StockPrognoseComponent;
|
|
6087
|
+
exports["ɵbn"] = SendMethod;
|
|
6088
|
+
exports["ɵbp"] = CalendarAllYearsComponent;
|
|
6089
|
+
exports["ɵbq"] = CalendarAllMonthsComponent;
|
|
6090
|
+
exports["ɵbr"] = CalendarHeaderComponent;
|
|
6091
|
+
exports["ɵbs"] = CalendarComponent;
|
|
6092
|
+
exports["ɵbt"] = CalendarViewComponent;
|
|
6093
|
+
exports["ɵbv"] = AgendaHeaderComponent;
|
|
6094
|
+
exports["ɵbw"] = AgendaViewComponent;
|
|
6095
|
+
exports["ɵbx"] = AgendaMonthViewComponent;
|
|
6096
|
+
exports["ɵby"] = AgendaBaseViewComponent;
|
|
6097
|
+
exports["ɵbz"] = AgendaDayViewComponent;
|
|
6016
6098
|
exports["ɵc"] = StockService;
|
|
6017
|
-
exports["ɵca"] =
|
|
6018
|
-
exports["ɵcb"] =
|
|
6019
|
-
exports["ɵcc"] =
|
|
6020
|
-
exports["ɵcd"] =
|
|
6021
|
-
exports["ɵce"] =
|
|
6022
|
-
exports["ɵcf"] =
|
|
6023
|
-
exports["ɵcg"] =
|
|
6024
|
-
exports["ɵch"] =
|
|
6025
|
-
exports["ɵci"] =
|
|
6026
|
-
exports["ɵcj"] =
|
|
6027
|
-
exports["ɵck"] =
|
|
6028
|
-
exports["ɵcl"] =
|
|
6099
|
+
exports["ɵca"] = AgendaWeekViewComponent;
|
|
6100
|
+
exports["ɵcb"] = AgendaWeekSelectViewComponent;
|
|
6101
|
+
exports["ɵcc"] = AgendaHourViewComponent;
|
|
6102
|
+
exports["ɵcd"] = AgendaHourCellComponent;
|
|
6103
|
+
exports["ɵce"] = AgendaHourViewLabelsComponent;
|
|
6104
|
+
exports["ɵcf"] = AgendaHalfHourCellComponent;
|
|
6105
|
+
exports["ɵcg"] = AgendaEventsComponent;
|
|
6106
|
+
exports["ɵch"] = AgendaEventComponent;
|
|
6107
|
+
exports["ɵci"] = ViewSelectComponent;
|
|
6108
|
+
exports["ɵcj"] = AgendaSelectEventComponent;
|
|
6109
|
+
exports["ɵck"] = MASTER_PIPES;
|
|
6110
|
+
exports["ɵcl"] = ArrayNumberPipe;
|
|
6111
|
+
exports["ɵcm"] = UCfirstPipe;
|
|
6029
6112
|
exports["ɵd"] = SharedConnectorService;
|
|
6030
6113
|
exports["ɵe"] = OptionsService;
|
|
6031
6114
|
exports["ɵf"] = DictionaryService;
|