@colijnit/sharedcomponents 1.0.37 → 1.0.38

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.
Files changed (48) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +642 -122
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +43 -31
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +44 -32
  6. package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +46 -0
  7. package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +46 -0
  8. package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +46 -0
  9. package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +46 -0
  10. package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +46 -0
  11. package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +65 -0
  12. package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +68 -0
  13. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +170 -0
  14. package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +38 -0
  15. package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +34 -0
  16. package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +1 -2
  17. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +173 -0
  18. package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +9 -9
  19. package/esm2015/lib/components/stock/stock.component.js +26 -38
  20. package/esm2015/lib/components/stock/stock.module.js +29 -6
  21. package/esm2015/lib/components/tab-bar/tab-bar.component.js +45 -0
  22. package/esm2015/lib/components/tab-bar/tab-bar.module.js +19 -0
  23. package/esm2015/lib/components/tab-bar/tab.interface.js +2 -0
  24. package/fesm2015/colijnit-sharedcomponents.js +846 -110
  25. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  26. package/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.d.ts +9 -0
  27. package/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.d.ts +9 -0
  28. package/lib/components/stock/components/order-stock-history/order-stock-history.component.d.ts +9 -0
  29. package/lib/components/stock/components/order-stock-tab/order-stock-tab.component.d.ts +11 -0
  30. package/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.d.ts +9 -0
  31. package/lib/components/stock/components/order-tab/order-tab.component.d.ts +20 -0
  32. package/lib/components/stock/components/stock-history/stock-history.component.d.ts +15 -0
  33. package/lib/components/stock/components/stock-location/stock-location.component.d.ts +38 -0
  34. package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +8 -0
  35. package/lib/components/stock/stock-history-tabs/stock-history-tabs.component.d.ts +8 -0
  36. package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +46 -0
  37. package/lib/components/stock/stock.component.d.ts +2 -4
  38. package/lib/components/stock/style/_layout.scss +4 -2
  39. package/lib/components/tab-bar/style/_layout.scss +60 -0
  40. package/lib/components/tab-bar/style/_material-definition.scss +0 -0
  41. package/lib/components/tab-bar/style/_theme.scss +0 -0
  42. package/lib/components/tab-bar/style/material.scss +4 -0
  43. package/lib/components/tab-bar/tab-bar.component.d.ts +9 -0
  44. package/lib/components/tab-bar/tab-bar.module.d.ts +2 -0
  45. package/lib/components/tab-bar/tab.interface.d.ts +5 -0
  46. package/package.json +1 -1
  47. package/esm2015/lib/components/stock/stock-location/stock-location.component.js +0 -62
  48. package/lib/components/stock/stock-location/stock-location.component.d.ts +0 -15
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/articleapi/build/model/article-stock.bo'), require('@colijnit/articleapi/build/model/stock-history.bo'), require('@colijnit/articleapi/build/model/article-details.bo'), require('@colijnit/articleapi/build/model/stock-status.bo'), require('@colijnit/articleapi/build/model/stock-management-warehouses.bo'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/article-transaction.bo'), require('rxjs'), require('@colijnit/mainapi'), require('@colijnit/mainapi/build/model/printer.bo'), require('@colijnit/ioneconnector/build/factory/business-object-factory'), require('@colijnit/mainapi/build/model/send-method.bo'), require('@colijnit/sharedapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/get-stock-history-request'), require('@colijnit/articleapi/build/model/article-stock'), require('@colijnit/corecomponents_v12'), require('@angular/platform-browser'), require('@colijnit/articleapi/build/model/article-stock-management'), require('@colijnit/articleapi/build/model/article-transaction'), require('@colijnit/sharedapi/build/model/print-price-stickers.bo'), require('@colijnit/mainapi/build/model/reporting-document-print-base-request'), require('@colijnit/mainapi/build/model/reporting-document-email-base-request'), require('@colijnit/mainapi/build/model/reporting-document-pdf-base-request'), require('@colijnit/mainapi/build/enum/send-method-type.enum'), require('@syncfusion/ej2-angular-circulargauge'), require('moment')) :
3
- typeof define === 'function' && define.amd ? define('@colijnit/sharedcomponents', ['exports', '@angular/core', '@angular/animations', 'pdf-lib', 'pdfjs-dist/legacy/build/pdf', 'pdfjs-dist/build/pdf.worker.entry', '@angular/common', 'signature_pad', '@colijnit/articleapi/build/articles', '@colijnit/sharedapi/build/sharedapi', '@colijnit/articleapi/build/model/article-stock.bo', '@colijnit/articleapi/build/model/stock-history.bo', '@colijnit/articleapi/build/model/article-details.bo', '@colijnit/articleapi/build/model/stock-status.bo', '@colijnit/articleapi/build/model/stock-management-warehouses.bo', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/article-transaction.bo', 'rxjs', '@colijnit/mainapi', '@colijnit/mainapi/build/model/printer.bo', '@colijnit/ioneconnector/build/factory/business-object-factory', '@colijnit/mainapi/build/model/send-method.bo', '@colijnit/sharedapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/get-stock-history-request', '@colijnit/articleapi/build/model/article-stock', '@colijnit/corecomponents_v12', '@angular/platform-browser', '@colijnit/articleapi/build/model/article-stock-management', '@colijnit/articleapi/build/model/article-transaction', '@colijnit/sharedapi/build/model/print-price-stickers.bo', '@colijnit/mainapi/build/model/reporting-document-print-base-request', '@colijnit/mainapi/build/model/reporting-document-email-base-request', '@colijnit/mainapi/build/model/reporting-document-pdf-base-request', '@colijnit/mainapi/build/enum/send-method-type.enum', '@syncfusion/ej2-angular-circulargauge', 'moment'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.sharedcomponents = {}), global.ng.core, global.ng.animations, global.pdfLib, global.PDFJS, global.pdfjsWorker, global.ng.common, global.SignaturePad, global.articles, global.sharedapi, global.articleStock_bo, global.stockHistory_bo, global.articleDetails_bo, global.stockStatus_bo, global.stockManagementWarehouses_bo, global.stockLocation_bo, global.articleTransaction_bo, global.rxjs, global.mainapi, global.printer_bo, global.businessObjectFactory, global.sendMethod_bo, global.printStockStickers, global.getStockHistoryRequest, global.articleStock, global.corecomponents_v12, global.ng.platformBrowser, global.articleStockManagement, global.articleTransaction, global.printPriceStickers_bo, global.reportingDocumentPrintBaseRequest, global.reportingDocumentEmailBaseRequest, global.reportingDocumentPdfBaseRequest, global.sendMethodType_enum, global.ej2AngularCirculargauge, global.moment));
5
- })(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, articles, sharedapi, articleStock_bo, stockHistory_bo, articleDetails_bo, stockStatus_bo, stockManagementWarehouses_bo, stockLocation_bo, articleTransaction_bo, rxjs, mainapi, printer_bo, businessObjectFactory, sendMethod_bo, printStockStickers, getStockHistoryRequest, articleStock, corecomponents_v12, i1, articleStockManagement, articleTransaction, printPriceStickers_bo, reportingDocumentPrintBaseRequest, reportingDocumentEmailBaseRequest, reportingDocumentPdfBaseRequest, sendMethodType_enum, ej2AngularCirculargauge, moment) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/articleapi/build/model/article-stock.bo'), require('@colijnit/articleapi/build/model/stock-history.bo'), require('@colijnit/articleapi/build/model/article-details.bo'), require('@colijnit/articleapi/build/model/stock-status.bo'), require('@colijnit/articleapi/build/model/stock-management-warehouses.bo'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/article-transaction.bo'), require('rxjs'), require('@colijnit/mainapi'), require('@colijnit/mainapi/build/model/printer.bo'), require('@colijnit/ioneconnector/build/factory/business-object-factory'), require('@colijnit/mainapi/build/model/send-method.bo'), require('@colijnit/sharedapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/article-stock'), require('@colijnit/corecomponents_v12'), require('@angular/platform-browser'), require('@colijnit/articleapi/build/model/article-stock-management'), require('@colijnit/articleapi/build/model/article-transaction'), require('@colijnit/sharedapi/build/model/print-price-stickers.bo'), require('@colijnit/mainapi/build/model/reporting-document-print-base-request'), require('@colijnit/mainapi/build/model/reporting-document-email-base-request'), require('@colijnit/mainapi/build/model/reporting-document-pdf-base-request'), require('@colijnit/mainapi/build/enum/send-method-type.enum'), require('@colijnit/articleapi/build/model/get-stock-history-request'), require('@syncfusion/ej2-angular-circulargauge'), require('moment')) :
3
+ typeof define === 'function' && define.amd ? define('@colijnit/sharedcomponents', ['exports', '@angular/core', '@angular/animations', 'pdf-lib', 'pdfjs-dist/legacy/build/pdf', 'pdfjs-dist/build/pdf.worker.entry', '@angular/common', 'signature_pad', '@colijnit/articleapi/build/articles', '@colijnit/sharedapi/build/sharedapi', '@colijnit/articleapi/build/model/article-stock.bo', '@colijnit/articleapi/build/model/stock-history.bo', '@colijnit/articleapi/build/model/article-details.bo', '@colijnit/articleapi/build/model/stock-status.bo', '@colijnit/articleapi/build/model/stock-management-warehouses.bo', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/article-transaction.bo', 'rxjs', '@colijnit/mainapi', '@colijnit/mainapi/build/model/printer.bo', '@colijnit/ioneconnector/build/factory/business-object-factory', '@colijnit/mainapi/build/model/send-method.bo', '@colijnit/sharedapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/article-stock', '@colijnit/corecomponents_v12', '@angular/platform-browser', '@colijnit/articleapi/build/model/article-stock-management', '@colijnit/articleapi/build/model/article-transaction', '@colijnit/sharedapi/build/model/print-price-stickers.bo', '@colijnit/mainapi/build/model/reporting-document-print-base-request', '@colijnit/mainapi/build/model/reporting-document-email-base-request', '@colijnit/mainapi/build/model/reporting-document-pdf-base-request', '@colijnit/mainapi/build/enum/send-method-type.enum', '@colijnit/articleapi/build/model/get-stock-history-request', '@syncfusion/ej2-angular-circulargauge', 'moment'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.sharedcomponents = {}), global.ng.core, global.ng.animations, global.pdfLib, global.PDFJS, global.pdfjsWorker, global.ng.common, global.SignaturePad, global.articles, global.sharedapi, global.articleStock_bo, global.stockHistory_bo, global.articleDetails_bo, global.stockStatus_bo, global.stockManagementWarehouses_bo, global.stockLocation_bo, global.articleTransaction_bo, global.rxjs, global.mainapi, global.printer_bo, global.businessObjectFactory, global.sendMethod_bo, global.printStockStickers, global.articleStock, global.corecomponents_v12, global.ng.platformBrowser, global.articleStockManagement, global.articleTransaction, global.printPriceStickers_bo, global.reportingDocumentPrintBaseRequest, global.reportingDocumentEmailBaseRequest, global.reportingDocumentPdfBaseRequest, global.sendMethodType_enum, global.getStockHistoryRequest, global.ej2AngularCirculargauge, global.moment));
5
+ })(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, articles, sharedapi, articleStock_bo, stockHistory_bo, articleDetails_bo, stockStatus_bo, stockManagementWarehouses_bo, stockLocation_bo, articleTransaction_bo, rxjs, mainapi, printer_bo, businessObjectFactory, sendMethod_bo, printStockStickers, articleStock, corecomponents_v12, i1, articleStockManagement, articleTransaction, printPriceStickers_bo, reportingDocumentPrintBaseRequest, reportingDocumentEmailBaseRequest, reportingDocumentPdfBaseRequest, sendMethodType_enum, getStockHistoryRequest, ej2AngularCirculargauge, moment) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -730,13 +730,13 @@
730
730
  },] }
731
731
  ];
732
732
 
733
- exports["ɵbc"] = void 0;
733
+ exports["ɵbo"] = 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["ɵbc"] || (exports["ɵbc"] = {}));
739
+ })(exports["ɵbo"] || (exports["ɵbo"] = {}));
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["ɵbc"].Dutch;
853
+ this._language = language || exports["ɵbo"].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["ɵbc"].Dutch;
886
+ this._language = exports["ɵbo"].Dutch;
887
887
  this._loadDictionary();
888
888
  }
889
889
  var text = this._dictionaries.get(this.language)[key];
@@ -1464,10 +1464,10 @@
1464
1464
  this.okButtonClicked = new i0.EventEmitter();
1465
1465
  this.cancelButtonClicked = new i0.EventEmitter();
1466
1466
  this.showStockInformationGrid = true;
1467
- this.showStockLocation = false;
1468
1467
  this.showStockTransfer = false;
1469
1468
  this.allAvailableStock = 0;
1470
1469
  this.allTechnicalStock = 0;
1470
+ this.showSendMethodDialog = false;
1471
1471
  this._subscriptions = [];
1472
1472
  this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(function (loaded) { return _this._handleSettingsLoaded(loaded); }));
1473
1473
  }
@@ -1486,38 +1486,20 @@
1486
1486
  StockComponent.prototype.ngOnDestroy = function () {
1487
1487
  this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
1488
1488
  };
1489
- StockComponent.prototype.backToStockLinesClicked = function () {
1490
- this.showStockLocation = false;
1491
- this.showStockInformationGrid = true;
1492
- };
1493
1489
  StockComponent.prototype.handleStockTransferClick = function (event) {
1494
1490
  this.stockTransferArticleDetails = event;
1495
1491
  this.showStockTransfer = !this.showStockTransfer;
1496
1492
  this.showStockInformationGrid = !this.showStockInformationGrid;
1497
1493
  this.stockService.stockStickers = new printStockStickers.PrintStockStickers();
1498
1494
  };
1495
+ StockComponent.prototype.handleSendMethodClick = function (event) {
1496
+ this.showSendMethodDialog = true;
1497
+ console.log(event);
1498
+ };
1499
1499
  StockComponent.prototype.backToStock = function () {
1500
1500
  this.showStockTransfer = !this.showStockTransfer;
1501
1501
  this.showStockInformationGrid = !this.showStockInformationGrid;
1502
1502
  };
1503
- StockComponent.prototype.getStockHistory = function () {
1504
- return __awaiter(this, void 0, void 0, function () {
1505
- var stockHistoryInformation, _a;
1506
- return __generator(this, function (_b) {
1507
- switch (_b.label) {
1508
- case 0:
1509
- stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
1510
- stockHistoryInformation.type = "B";
1511
- stockHistoryInformation.goodId = this.articleExtended.goodId.toString();
1512
- _a = this;
1513
- return [4 /*yield*/, this.stockService.getStockHistory(stockHistoryInformation)];
1514
- case 1:
1515
- _a.stockHistory = _b.sent();
1516
- return [2 /*return*/];
1517
- }
1518
- });
1519
- });
1520
- };
1521
1503
  StockComponent.prototype.getStockInformation = function (data) {
1522
1504
  return __awaiter(this, void 0, void 0, function () {
1523
1505
  var articleData, _a;
@@ -1580,7 +1562,7 @@
1580
1562
  StockComponent.decorators = [
1581
1563
  { type: i0.Component, args: [{
1582
1564
  selector: "co-stock",
1583
- template: "\n <div class=\"stock-info-container\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStock]=\"\"\n [allAvailableStockInformation]=\"allAvailableStock\"\n [allTechnicalStockInformation]=\"allTechnicalStock\"\n >\n </co-stock-information>\n <hr>\n <co-stock-information-grid *ngIf=\"showStockInformationGrid\"\n [article]=\"articleExtended\"\n [stockLocationData]=\"stockLocationInformation\"\n [articleStockInformation]=\"stockInformation\"\n (transferIconClicked)=\"handleStockTransferClick($event)\"\n (historyClicked)=\"getStockHistory()\"\n [stockHistoryInformation]=\"stockHistory\"\n (okButtonClicked)=\"okButtonClicked.emit()\"\n (cancelButtonClicked)=\"cancelButtonClicked.emit()\"\n >\n </co-stock-information-grid>\n <co-stock-location *ngIf=\"showStockLocation\"\n (backToStockLines)=\"backToStockLinesClicked()\">\n\n </co-stock-location>\n <co-stock-transfer *ngIf=\"showStockTransfer\"\n (handleClick)=\"backToStock()\"\n [article]=\"stockTransferArticle\"\n [articleToTransfer]=\"stockTransferArticleDetails\"\n (handleStickerClicked)=\"handleStickerClicked.emit($event)\"\n [articleWarehouse]=\"articleWarehouse\"\n [allWarehouses]=\"allWarehouses\"\n >\n </co-stock-transfer>\n </div>\n ",
1565
+ template: "\n <div class=\"stock-info-container\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStock]=\"\"\n [allAvailableStockInformation]=\"allAvailableStock\"\n [allTechnicalStockInformation]=\"allTechnicalStock\"\n >\n </co-stock-information>\n <hr>\n <co-stock-tabs [stockInformation]=\"stockInformation\"\n [article]=\"articleExtended\"\n (transferIconClicked)=\"handleStockTransferClick($event)\"\n (sendMethodDialogClicked)=\"handleSendMethodClick($event)\"\n ></co-stock-tabs>\n\n <co-dialog *ngIf=\"showStockTransfer\">\n <co-stock-transfer (handleClick)=\"backToStock()\"\n class=\"stock-transfer-dialog\"\n [article]=\"stockTransferArticle\"\n [articleToTransfer]=\"stockTransferArticleDetails\"\n (handleStickerClicked)=\"handleStickerClicked.emit($event)\"\n [articleWarehouse]=\"articleWarehouse\"\n [allWarehouses]=\"allWarehouses\"\n >\n </co-stock-transfer>\n </co-dialog>\n\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\">\n\n </co-send-method-dialog>\n </div>\n ",
1584
1566
  encapsulation: i0.ViewEncapsulation.None
1585
1567
  },] }
1586
1568
  ];
@@ -1701,7 +1683,7 @@
1701
1683
  ]; };
1702
1684
 
1703
1685
  /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
1704
- exports["ɵw"] = void 0;
1686
+ exports["ɵbi"] = void 0;
1705
1687
  (function (Icon) {
1706
1688
  Icon["AngleLeftSolid"] = "angle_left_solid";
1707
1689
  Icon["AngleRightSolid"] = "angle_right_solid";
@@ -1727,13 +1709,13 @@
1727
1709
  Icon["PrintSolid"] = "print_solid";
1728
1710
  Icon["SignatureField"] = "signature_field";
1729
1711
  Icon["Xml"] = "xml";
1730
- })(exports["ɵw"] || (exports["ɵw"] = {}));
1712
+ })(exports["ɵbi"] || (exports["ɵbi"] = {}));
1731
1713
 
1732
1714
  var StockInformationGridComponent = /** @class */ (function () {
1733
1715
  function StockInformationGridComponent(iconCacheService, _stockService) {
1734
1716
  this.iconCacheService = iconCacheService;
1735
1717
  this._stockService = _stockService;
1736
- this.icons = exports["ɵw"];
1718
+ this.icons = exports["ɵbi"];
1737
1719
  this.transferIconClicked = new i0.EventEmitter();
1738
1720
  this.historyClicked = new i0.EventEmitter();
1739
1721
  this.cancelButtonClicked = new i0.EventEmitter();
@@ -1915,7 +1897,6 @@
1915
1897
  return __generator(this, function (_a) {
1916
1898
  switch (_a.label) {
1917
1899
  case 0:
1918
- console.log(this.article);
1919
1900
  this.selectedArticleDetailsData.selected = true;
1920
1901
  this.selectedArticleDetailsData.goodId = this.article.goodId;
1921
1902
  this.selectedArticleDetailsData.entryDate = new Date();
@@ -1966,39 +1947,6 @@
1966
1947
  okButtonClicked: [{ type: i0.Output }]
1967
1948
  };
1968
1949
 
1969
- var StockLocationComponent = /** @class */ (function () {
1970
- function StockLocationComponent(_stockService) {
1971
- this._stockService = _stockService;
1972
- this.backToStockLines = new i0.EventEmitter();
1973
- this.stockLocationColumns = [];
1974
- this.stockLocationColumns.push({ field: "location", headerText: "WAREHOUSE", editType: "none" }, { field: "batch", headerText: "BATCH" }, { field: "serieNo", headerText: "SERIAL_NO" }, { field: "amountInStock", headerText: "STOCK", textAlign: "Right", editType: "numericEdit" }, { field: "allocated", headerText: "ALLOCATED", textAlign: "Right" }, { field: "amountAvailable", headerText: "AVAILABLE_STOCK", textAlign: "Right" }, { field: "PhysicalStock", headerText: "PHYSICAL_STOCK", textAlign: "Right" }, { field: "Valuta", headerText: "VALUTA", textAlign: "Right" }, { field: "PurchasePrice", headerText: "PURSCHASE_PRICE", textAlign: "Right" }, { field: "SupplierNo", headerText: "SUPPLIER_NO", textAlign: "Right" }, { field: "Transfer", headerText: "TRANSFER" }, { field: "sticker", headerText: "STICKER" });
1975
- }
1976
- StockLocationComponent.prototype.backToStockInformation = function () {
1977
- this.backToStockLines.emit();
1978
- };
1979
- StockLocationComponent.prototype.onOkClick = function () {
1980
- };
1981
- StockLocationComponent.prototype.onCancelClick = function () {
1982
- };
1983
- StockLocationComponent.prototype.onSelectWarehouse = function (event) {
1984
- };
1985
- return StockLocationComponent;
1986
- }());
1987
- StockLocationComponent.decorators = [
1988
- { type: i0.Component, args: [{
1989
- selector: "co-stock-location",
1990
- template: "\n <div class=\"stock-location-wrapper\">\n <div class=\"buttons-wrapper\">\n <div class=\"stock-button-left-group\">\n <span class=\"stock-button-back\" [textContent]=\"'BACK_TO_STOCK_LINES'\" (click)=\"backToStockInformation()\"></span>\n </div>\n <div class=\"dropdown-wrapper\">\n <co-drop-down-list\n [collection]=\"allWarehouses\"\n [placeholder]=\"'WAREHOUSES'\"\n (modelChange)=\"onSelectWarehouse($event)\"\n ></co-drop-down-list>\n </div>\n </div>\n\n <div class=\"stock-grid\">\n\n </div>\n <div class=\"button-wrapper\">\n <div class=\"button-left\">\n <co-button (click)=\"onOkClick()\"></co-button>\n </div>\n <div class=\"button-right\">\n <co-button (click)=\"onCancelClick()\"></co-button>\n </div>\n </div>\n </div>\n\n ",
1991
- encapsulation: i0.ViewEncapsulation.None
1992
- },] }
1993
- ];
1994
- StockLocationComponent.ctorParameters = function () { return [
1995
- { type: StockService }
1996
- ]; };
1997
- StockLocationComponent.propDecorators = {
1998
- stockLocationInformation: [{ type: i0.Input }],
1999
- backToStockLines: [{ type: i0.Output }]
2000
- };
2001
-
2002
1950
  var StockTransferComponent = /** @class */ (function () {
2003
1951
  function StockTransferComponent(_stockService) {
2004
1952
  this._stockService = _stockService;
@@ -2069,7 +2017,7 @@
2069
2017
  StockTransferComponent.decorators = [
2070
2018
  { type: i0.Component, args: [{
2071
2019
  selector: "co-stock-transfer",
2072
- template: "\n <div class=\"stock-transfer\">\n <div class=\"stock-transfer-columns\">\n <div *ngIf=\"articleToTransfer\" class=\"stock-transfer-left-column\">\n <co-input-text disabled\n [label]=\"'Standaard magazijn'\"\n [(model)]=\"articleToTransfer.warehouseDescription\"\n [textContent]=\"articleToTransfer.warehouseDescription\"\n [placeholder]=\"'Standaard magazijn'\"\n >\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"articleToTransfer.locationNo\"\n [textContent]=\"articleToTransfer.locationNo\"\n [placeholder]=\"'Standaard locatie'\">\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"stockSticker.batch\"\n [placeholder]=\"'Batch'\">\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"stockSticker.serial\"\n [placeholder]=\"'Serie'\">\n </co-input-text>\n <co-input-text\n [(model)]=\"articleToTransfer.amountTransfer\"\n [placeholder]=\"'Aantal'\">\n </co-input-text>\n </div>\n\n <div class=\"stock-transfer-right-column\">\n <co-drop-down-list [collection]=\"warehouses\"\n [fields]=\"allWarehousesDropdownFields\"\n (modelChange)=\"handleSelectedWarehouse($event)\"\n [placeholder]=\"'Magazijn'\"\n [(model)]=\"articleToTransfer.targetWarehouse\">\n </co-drop-down-list>\n <co-drop-down-list [collection]=\"locations\"\n [fields]=\"allLocationDropdownFields\"\n [(model)]=\"articleToTransfer.targetLocation\"\n [placeholder]=\"'Locatie'\"\n >\n </co-drop-down-list>\n <co-drop-down-list [collection]=\"stockState\"\n [fields]=\"stockStateDropdownField\"\n [placeholder]=\"'Voorraadstatus'\"\n [(model)]=\"articleToTransfer.stockStateId\"\n >\n </co-drop-down-list>\n <co-input-text [placeholder]=\"'Omschrijving'\"\n [(model)]=\"articleToTransfer.stockStateRemark\">\n </co-input-text>\n </div>\n </div>\n\n <div class=\"ok-cancel-buttons\">\n <co-button [textContent]=\"'Ok'\" (click)=\"handleOkClick(articleToTransfer)\"></co-button>\n <co-button [textContent]=\"'Annuleren'\" (click)=\"handleCancelClick()\"></co-button>\n <co-button [textContent]=\"'Sticker'\" (click)=\"handleStickerClick()\"></co-button>\n </div>\n </div>\n ",
2020
+ template: "\n <div class=\"stock-transfer\">\n <div class=\"stock-transfer-columns\">\n <div *ngIf=\"articleToTransfer\" class=\"stock-transfer-left-column\">\n <co-input-text disabled\n [label]=\"'Standaard magazijn'\"\n [(model)]=\"articleToTransfer.warehouseDescription\"\n [textContent]=\"articleToTransfer.warehouseDescription\"\n [placeholder]=\"'Standaard magazijn'\"\n >\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"articleToTransfer.locationNo\"\n [textContent]=\"articleToTransfer.locationNo\"\n [placeholder]=\"'Standaard locatie'\">\n </co-input-text>\n<!-- <co-input-text disabled-->\n<!-- [(model)]=\"stockSticker.batch\"-->\n<!-- [placeholder]=\"'Batch'\">-->\n<!-- </co-input-text>-->\n<!-- <co-input-text disabled-->\n<!-- [(model)]=\"stockSticker.serial\"-->\n<!-- [placeholder]=\"'Serie'\">-->\n<!-- </co-input-text>-->\n <co-input-text\n [(model)]=\"articleToTransfer.amountTransfer\"\n [placeholder]=\"'Aantal'\">\n </co-input-text>\n </div>\n\n <div class=\"stock-transfer-right-column\">\n <co-drop-down-list [collection]=\"warehouses\"\n [fields]=\"allWarehousesDropdownFields\"\n (modelChange)=\"handleSelectedWarehouse($event)\"\n [placeholder]=\"'Magazijn'\"\n [(model)]=\"articleToTransfer.targetWarehouse\">\n </co-drop-down-list>\n <co-drop-down-list [collection]=\"locations\"\n [fields]=\"allLocationDropdownFields\"\n [(model)]=\"articleToTransfer.targetLocation\"\n [placeholder]=\"'Locatie'\"\n >\n </co-drop-down-list>\n <co-drop-down-list [collection]=\"stockState\"\n [fields]=\"stockStateDropdownField\"\n [placeholder]=\"'Voorraadstatus'\"\n [(model)]=\"articleToTransfer.stockStateId\"\n >\n </co-drop-down-list>\n <co-input-text [placeholder]=\"'Omschrijving'\"\n [(model)]=\"articleToTransfer.stockStateRemark\">\n </co-input-text>\n </div>\n </div>\n\n <div class=\"ok-cancel-buttons\">\n <co-button [textContent]=\"'Ok'\" (click)=\"handleOkClick(articleToTransfer)\"></co-button>\n <co-button [textContent]=\"'Annuleren'\" (click)=\"handleCancelClick()\"></co-button>\n <co-button [textContent]=\"'Sticker'\" (click)=\"handleStickerClick()\"></co-button>\n </div>\n </div>\n ",
2073
2021
  encapsulation: i0.ViewEncapsulation.None
2074
2022
  },] }
2075
2023
  ];
@@ -2214,13 +2162,13 @@
2214
2162
  }());
2215
2163
 
2216
2164
  var sendMethodsWithIcon = [
2217
- new SendMethod(sendMethodType_enum.SendMethodType.Fax, "Fax", exports["ɵw"].PrintRegular),
2218
- new SendMethod(sendMethodType_enum.SendMethodType.Print, "Print", exports["ɵw"].PrintSolid),
2219
- new SendMethod(sendMethodType_enum.SendMethodType.Email, "Email", exports["ɵw"].AtSolid),
2220
- new SendMethod(sendMethodType_enum.SendMethodType.Edi, "Edi", exports["ɵw"].FileExportSolid),
2221
- new SendMethod(sendMethodType_enum.SendMethodType.EmailTemplate, "Email template", exports["ɵw"].EnvelopeRegular),
2222
- new SendMethod(sendMethodType_enum.SendMethodType.Sms, "Sms", exports["ɵw"].MessageSmsSolid),
2223
- new SendMethod(sendMethodType_enum.SendMethodType.WebService, "Webservice", exports["ɵw"].PrintRegular)
2165
+ new SendMethod(sendMethodType_enum.SendMethodType.Fax, "Fax", exports["ɵbi"].PrintRegular),
2166
+ new SendMethod(sendMethodType_enum.SendMethodType.Print, "Print", exports["ɵbi"].PrintSolid),
2167
+ new SendMethod(sendMethodType_enum.SendMethodType.Email, "Email", exports["ɵbi"].AtSolid),
2168
+ new SendMethod(sendMethodType_enum.SendMethodType.Edi, "Edi", exports["ɵbi"].FileExportSolid),
2169
+ new SendMethod(sendMethodType_enum.SendMethodType.EmailTemplate, "Email template", exports["ɵbi"].EnvelopeRegular),
2170
+ new SendMethod(sendMethodType_enum.SendMethodType.Sms, "Sms", exports["ɵbi"].MessageSmsSolid),
2171
+ new SendMethod(sendMethodType_enum.SendMethodType.WebService, "Webservice", exports["ɵbi"].PrintRegular)
2224
2172
  ];
2225
2173
  var SendMethodDialogComponent = /** @class */ (function () {
2226
2174
  function SendMethodDialogComponent(iconCacheService, _optionsService, _dictionary, _changeDetector, _sharedService, _sendMethodService) {
@@ -2231,7 +2179,7 @@
2231
2179
  this._changeDetector = _changeDetector;
2232
2180
  this._sharedService = _sharedService;
2233
2181
  this._sendMethodService = _sendMethodService;
2234
- this.icons = exports["ɵw"];
2182
+ this.icons = exports["ɵbi"];
2235
2183
  this.emailLayouts = [];
2236
2184
  this.printLayouts = [];
2237
2185
  this.emailAddresses = [];
@@ -2600,7 +2548,7 @@
2600
2548
  this.sendMethodService = sendMethodService;
2601
2549
  this.iconService = iconService;
2602
2550
  this._service = _service;
2603
- this.icons = exports["ɵw"];
2551
+ this.icons = exports["ɵbi"];
2604
2552
  this.printers = [];
2605
2553
  this.showPrinterList = false;
2606
2554
  }
@@ -2776,6 +2724,554 @@
2776
2724
  closeStockChangeAmount: [{ type: i0.Output }]
2777
2725
  };
2778
2726
 
2727
+ var StockTabComponent = /** @class */ (function () {
2728
+ function StockTabComponent() {
2729
+ this.locationClicked = new i0.EventEmitter();
2730
+ }
2731
+ StockTabComponent.prototype.onLocationClick = function (data) {
2732
+ this.locationClicked.emit(data);
2733
+ };
2734
+ return StockTabComponent;
2735
+ }());
2736
+ StockTabComponent.decorators = [
2737
+ { type: i0.Component, args: [{
2738
+ selector: "co-stock-tab",
2739
+ template: "\n <co-simple-grid [data]=\"articleStockInformation\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n >\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'warehouseNo'\" [order]=\"10\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DESCRIPTION'\" [field]=\"'warehouseName'\" [order]=\"11\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'technicalStock'\" [order]=\"12\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK'\" [field]=\"'availableStock'\" [order]=\"13\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ECONOMICAL_STOCK'\" [field]=\"'economicalStock'\" [order]=\"14\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNo'\" [order]=\"15\">\n <ng-template #template let-row=\"row\">\n <span class=\"location-link\" [textContent]=\"'Bekijken'\" (click)=\"onLocationClick(row)\"></span>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n ",
2740
+ encapsulation: i0.ViewEncapsulation.None
2741
+ },] }
2742
+ ];
2743
+ StockTabComponent.ctorParameters = function () { return []; };
2744
+ StockTabComponent.propDecorators = {
2745
+ articleStockInformation: [{ type: i0.Input }],
2746
+ locationClicked: [{ type: i0.Output }]
2747
+ };
2748
+
2749
+ var OrderTabComponent = /** @class */ (function () {
2750
+ function OrderTabComponent(iconCacheService, _stockService) {
2751
+ this.iconCacheService = iconCacheService;
2752
+ this._stockService = _stockService;
2753
+ this.icons = exports["ɵbi"];
2754
+ this.locationClicked = new i0.EventEmitter();
2755
+ this.transferIconClicked = new i0.EventEmitter();
2756
+ this.sendMethodDialogClicked = new i0.EventEmitter();
2757
+ }
2758
+ OrderTabComponent.prototype.openSendMethodDialog = function (data) {
2759
+ this.sendMethodDialogClicked.emit(data);
2760
+ };
2761
+ OrderTabComponent.prototype.handleStockTransferClick = function (event) {
2762
+ this.transferIconClicked.emit(event);
2763
+ };
2764
+ return OrderTabComponent;
2765
+ }());
2766
+ OrderTabComponent.decorators = [
2767
+ { type: i0.Component, args: [{
2768
+ selector: "co-order-tab",
2769
+ template: "\n <co-simple-grid [data]=\"inOrderInformation\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n >\n <co-simple-grid-column [headerText]=\"'IN_ORDER2'\" [field]=\"'transactionNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'CUSTOMER'\" [field]=\"'customerName'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE'\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.transactionDate | date:'dd-MM-yyyy'\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amountInOrder'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'warehouseNumber'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DESCRIPTION'\" [field]=\"'warehouseDescription'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSFER'\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\" (click)=\"handleStockTransferClick(row)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog(row)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n ",
2770
+ encapsulation: i0.ViewEncapsulation.None
2771
+ },] }
2772
+ ];
2773
+ OrderTabComponent.ctorParameters = function () { return [
2774
+ { type: IconCacheService },
2775
+ { type: StockService }
2776
+ ]; };
2777
+ OrderTabComponent.propDecorators = {
2778
+ articleStockInformation: [{ type: i0.Input }],
2779
+ inOrderInformation: [{ type: i0.Input }],
2780
+ locationClicked: [{ type: i0.Output }],
2781
+ transferIconClicked: [{ type: i0.Output }],
2782
+ sendMethodDialogClicked: [{ type: i0.Output }]
2783
+ };
2784
+
2785
+ var StockTabsComponent = /** @class */ (function () {
2786
+ function StockTabsComponent(_stockService) {
2787
+ this._stockService = _stockService;
2788
+ this.icons = exports["ɵbi"];
2789
+ this.transferIconClicked = new i0.EventEmitter();
2790
+ this.sendMethodDialogClicked = new i0.EventEmitter();
2791
+ this.tabs = [
2792
+ { title: 'Overzicht', active: true },
2793
+ { title: 'Voorraaddetails', active: false, clickHandler: this.getStockManagementWarehouses.bind(this) },
2794
+ { title: 'In order', active: false, clickHandler: this.getInOrderData.bind(this) },
2795
+ { title: 'In bestelling', active: false, clickHandler: this.getOrderData.bind(this) },
2796
+ { title: 'Historie', active: false },
2797
+ ];
2798
+ this.historyTabs = [
2799
+ { title: 'Voorraad', active: false, clickHandler: this.getStockHistory.bind(this) },
2800
+ { title: 'Order voorraad', active: false, clickHandler: this.getOrderSupplyStockHistory.bind(this) },
2801
+ { title: 'Order commissie', active: false, clickHandler: this.getOrderCommissionStockHistory.bind(this) },
2802
+ { title: 'Bestelling', active: false, clickHandler: this.getOrderStockHistory.bind(this) },
2803
+ { title: 'Toewijzing', active: false, clickHandler: this.getAllocationStockHistory.bind(this) },
2804
+ ];
2805
+ }
2806
+ StockTabsComponent.prototype.handleLocationClicked = function (data) {
2807
+ this.clickedLocation = data.warehouseNo;
2808
+ this.tabs[0].active = false;
2809
+ this.tabs[1].active = true;
2810
+ };
2811
+ StockTabsComponent.prototype.getStockHistory = function () {
2812
+ return __awaiter(this, void 0, void 0, function () {
2813
+ var stockHistoryInformation, _a;
2814
+ return __generator(this, function (_b) {
2815
+ switch (_b.label) {
2816
+ case 0:
2817
+ if (!!this.stockHistory) return [3 /*break*/, 2];
2818
+ stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
2819
+ stockHistoryInformation.type = "V";
2820
+ stockHistoryInformation.goodId = this.article;
2821
+ _a = this;
2822
+ return [4 /*yield*/, this._stockService.getStockHistory(stockHistoryInformation)];
2823
+ case 1:
2824
+ _a.stockHistory = _b.sent();
2825
+ _b.label = 2;
2826
+ case 2: return [2 /*return*/];
2827
+ }
2828
+ });
2829
+ });
2830
+ };
2831
+ StockTabsComponent.prototype.getOrderSupplyStockHistory = function () {
2832
+ return __awaiter(this, void 0, void 0, function () {
2833
+ var stockHistoryInformation, _a;
2834
+ return __generator(this, function (_b) {
2835
+ switch (_b.label) {
2836
+ case 0:
2837
+ if (!!this.orderSupplyStockHistory) return [3 /*break*/, 2];
2838
+ stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
2839
+ stockHistoryInformation.type = "O";
2840
+ stockHistoryInformation.goodId = this.article;
2841
+ _a = this;
2842
+ return [4 /*yield*/, this._stockService.getStockHistory(stockHistoryInformation)];
2843
+ case 1:
2844
+ _a.orderSupplyStockHistory = _b.sent();
2845
+ _b.label = 2;
2846
+ case 2: return [2 /*return*/];
2847
+ }
2848
+ });
2849
+ });
2850
+ };
2851
+ StockTabsComponent.prototype.getOrderCommissionStockHistory = function () {
2852
+ return __awaiter(this, void 0, void 0, function () {
2853
+ var stockHistoryInformation, _a;
2854
+ return __generator(this, function (_b) {
2855
+ switch (_b.label) {
2856
+ case 0:
2857
+ if (!!this.orderCommissionStockHistory) return [3 /*break*/, 2];
2858
+ stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
2859
+ stockHistoryInformation.type = "C";
2860
+ stockHistoryInformation.goodId = this.article;
2861
+ _a = this;
2862
+ return [4 /*yield*/, this._stockService.getStockHistory(stockHistoryInformation)];
2863
+ case 1:
2864
+ _a.orderCommissionStockHistory = _b.sent();
2865
+ _b.label = 2;
2866
+ case 2: return [2 /*return*/];
2867
+ }
2868
+ });
2869
+ });
2870
+ };
2871
+ StockTabsComponent.prototype.getOrderStockHistory = function () {
2872
+ return __awaiter(this, void 0, void 0, function () {
2873
+ var stockHistoryInformation, _a;
2874
+ return __generator(this, function (_b) {
2875
+ switch (_b.label) {
2876
+ case 0:
2877
+ if (!!this.orderStockHistory) return [3 /*break*/, 2];
2878
+ stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
2879
+ stockHistoryInformation.type = "B";
2880
+ stockHistoryInformation.goodId = this.article;
2881
+ _a = this;
2882
+ return [4 /*yield*/, this._stockService.getStockHistory(stockHistoryInformation)];
2883
+ case 1:
2884
+ _a.orderStockHistory = _b.sent();
2885
+ _b.label = 2;
2886
+ case 2: return [2 /*return*/];
2887
+ }
2888
+ });
2889
+ });
2890
+ };
2891
+ StockTabsComponent.prototype.getAllocationStockHistory = function () {
2892
+ return __awaiter(this, void 0, void 0, function () {
2893
+ var stockHistoryInformation, _a;
2894
+ return __generator(this, function (_b) {
2895
+ switch (_b.label) {
2896
+ case 0:
2897
+ if (!!this.orderAllocationStockHistory) return [3 /*break*/, 2];
2898
+ stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
2899
+ stockHistoryInformation.type = "T";
2900
+ stockHistoryInformation.goodId = this.article;
2901
+ _a = this;
2902
+ return [4 /*yield*/, this._stockService.getStockHistory(stockHistoryInformation)];
2903
+ case 1:
2904
+ _a.orderAllocationStockHistory = _b.sent();
2905
+ _b.label = 2;
2906
+ case 2: return [2 /*return*/];
2907
+ }
2908
+ });
2909
+ });
2910
+ };
2911
+ StockTabsComponent.prototype.getInOrderData = function () {
2912
+ return __awaiter(this, void 0, void 0, function () {
2913
+ var inOrderData, _a;
2914
+ return __generator(this, function (_b) {
2915
+ switch (_b.label) {
2916
+ case 0:
2917
+ if (!!this.inOrderInformation) return [3 /*break*/, 2];
2918
+ inOrderData = new articleTransaction.ArticleTransaction();
2919
+ inOrderData.type = "V";
2920
+ inOrderData.goodId = this.stockInformation[0].goodId.toString();
2921
+ _a = this;
2922
+ return [4 /*yield*/, this._stockService.getArticleTransaction(inOrderData)];
2923
+ case 1:
2924
+ _a.inOrderInformation = _b.sent();
2925
+ _b.label = 2;
2926
+ case 2: return [2 /*return*/];
2927
+ }
2928
+ });
2929
+ });
2930
+ };
2931
+ StockTabsComponent.prototype.getStockManagementWarehouses = function () {
2932
+ var _this = this;
2933
+ this._stockService.getStockManagementWarehouses().then(function (warehouses) {
2934
+ _this.warehouses = warehouses;
2935
+ });
2936
+ };
2937
+ StockTabsComponent.prototype.getOrderData = function () {
2938
+ return __awaiter(this, void 0, void 0, function () {
2939
+ var orderData, _a;
2940
+ return __generator(this, function (_b) {
2941
+ switch (_b.label) {
2942
+ case 0:
2943
+ if (!!this.orderInformation) return [3 /*break*/, 2];
2944
+ orderData = new articleTransaction.ArticleTransaction();
2945
+ orderData.type = "I";
2946
+ orderData.goodId = this.stockInformation[0].goodId.toString();
2947
+ _a = this;
2948
+ return [4 /*yield*/, this._stockService.getArticleTransaction(orderData)];
2949
+ case 1:
2950
+ _a.orderInformation = _b.sent();
2951
+ _b.label = 2;
2952
+ case 2: return [2 /*return*/];
2953
+ }
2954
+ });
2955
+ });
2956
+ };
2957
+ return StockTabsComponent;
2958
+ }());
2959
+ StockTabsComponent.decorators = [
2960
+ { type: i0.Component, args: [{
2961
+ selector: "co-stock-tabs",
2962
+ template: "\n <co-tab-bar [tabs]=\"tabs\" [secondaryTabs]=\"historyTabs\" [ActivateSecondaryTabs]=\"tabs[4].active\"></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-location *ngIf=\"tabs[1].active\"\n [articleStockInformation]=\"stockInformation\"\n [article]=\"article\"\n [clickedLocation]=\"clickedLocation\"\n [dataWareHouseCode]=\"warehouses\"\n (transferIconClicked)=\"transferIconClicked.emit($event)\"\n (sendMethodDialogClicked)=\"sendMethodDialogClicked.emit($event)\"\n ></co-stock-location>\n\n <co-order-tab *ngIf=\"tabs[2].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[3].active\"\n [orderInformation]=\"orderInformation\"\n ></co-order-stock-tab>\n\n <co-stock-history *ngIf=\"historyTabs[0].active && tabs[4].active\"\n [stockHistory]=\"stockHistory\"\n ></co-stock-history>\n\n <co-order-supply-stock-history *ngIf=\"historyTabs[1].active && tabs[4].active\"\n [orderSupplyStockHistory]=\"orderSupplyStockHistory\"\n ></co-order-supply-stock-history>\n\n <co-order-stock-commission-history *ngIf=\"historyTabs[2].active && tabs[4].active\"\n [orderStockCommissionHistory]=\"orderCommissionStockHistory\"\n ></co-order-stock-commission-history>\n\n <co-order-stock-history *ngIf=\"historyTabs[3].active && tabs[4].active\"\n [orderStockHistory]=\"orderStockHistory\"\n ></co-order-stock-history>\n\n <co-allocation-stock-history *ngIf=\"historyTabs[4].active && tabs[4].active\"\n [allocationStockHistory]=\"orderAllocationStockHistory\"\n ></co-allocation-stock-history>\n\n ",
2963
+ encapsulation: i0.ViewEncapsulation.None
2964
+ },] }
2965
+ ];
2966
+ StockTabsComponent.ctorParameters = function () { return [
2967
+ { type: StockService }
2968
+ ]; };
2969
+ StockTabsComponent.propDecorators = {
2970
+ stockInformation: [{ type: i0.Input }],
2971
+ article: [{ type: i0.Input }],
2972
+ transferIconClicked: [{ type: i0.Output }],
2973
+ sendMethodDialogClicked: [{ type: i0.Output }]
2974
+ };
2975
+
2976
+ var StockHistoryTabsComponent = /** @class */ (function () {
2977
+ function StockHistoryTabsComponent() {
2978
+ this.icons = exports["ɵbi"];
2979
+ this.selectedTab = 0;
2980
+ }
2981
+ return StockHistoryTabsComponent;
2982
+ }());
2983
+ StockHistoryTabsComponent.decorators = [
2984
+ { type: i0.Component, args: [{
2985
+ selector: "co-stock-history-tabs",
2986
+ template: "\n <div class=\"stock-history-tabs-wrapper\">\n <div class=\"tab-container\">\n <div class=\"tab-header\">\n <button class=\"tab-button\" (click)=\"selectedTab = 0\" [class.active]=\"selectedTab === 0\">Voorraad</button>\n <button class=\"tab-button\" (click)=\"selectedTab = 1\" [class.active]=\"selectedTab === 1\">Order voorraad</button>\n <button class=\"tab-button\" (click)=\"selectedTab = 2\" [class.active]=\"selectedTab === 2\">Order commissie</button>\n <button class=\"tab-button\" (click)=\"selectedTab = 3\" [class.active]=\"selectedTab === 3\">Bestelling</button>\n <button class=\"tab-button\" (click)=\"selectedTab = 4\" [class.active]=\"selectedTab === 4\">Toewijzing</button>\n </div>\n </div>\n </div>\n\n\n ",
2987
+ encapsulation: i0.ViewEncapsulation.None
2988
+ },] }
2989
+ ];
2990
+ StockHistoryTabsComponent.ctorParameters = function () { return []; };
2991
+ StockHistoryTabsComponent.propDecorators = {
2992
+ stockInformation: [{ type: i0.Input }]
2993
+ };
2994
+
2995
+ var OrderStockTabComponent = /** @class */ (function () {
2996
+ function OrderStockTabComponent(iconCacheService, _stockService) {
2997
+ this.iconCacheService = iconCacheService;
2998
+ this._stockService = _stockService;
2999
+ this.icons = exports["ɵbi"];
3000
+ }
3001
+ return OrderStockTabComponent;
3002
+ }());
3003
+ OrderStockTabComponent.decorators = [
3004
+ { type: i0.Component, args: [{
3005
+ selector: "co-order-stock-tab",
3006
+ template: "\n <co-simple-grid [data]=\"orderInformation\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n >\n <co-simple-grid-column [headerText]=\"'PURCHASE_ORDER_NR'\" [field]=\"'transactionNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE'\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.transactionDate | date:'dd-MM-yyyy'\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amountInOrder'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RESERVED'\" [field]=\"'reserved'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'FREE_STOCK'\" [field]=\"'InOrderForStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE1'\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.deliveryDate | date:'dd-MM-yyyy'\"></span>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n ",
3007
+ encapsulation: i0.ViewEncapsulation.None
3008
+ },] }
3009
+ ];
3010
+ OrderStockTabComponent.ctorParameters = function () { return [
3011
+ { type: IconCacheService },
3012
+ { type: StockService }
3013
+ ]; };
3014
+ OrderStockTabComponent.propDecorators = {
3015
+ orderInformation: [{ type: i0.Input }]
3016
+ };
3017
+
3018
+ var StockLocationComponent = /** @class */ (function () {
3019
+ function StockLocationComponent(iconCacheService, _stockService, _changeDetector) {
3020
+ this.iconCacheService = iconCacheService;
3021
+ this._stockService = _stockService;
3022
+ this._changeDetector = _changeDetector;
3023
+ this.icons = exports["ɵbi"];
3024
+ this.transferIconClicked = new i0.EventEmitter();
3025
+ this.sendMethodDialogClicked = new i0.EventEmitter();
3026
+ this.selectedWarehouse = 0;
3027
+ this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNo" };
3028
+ this.dataLocationFields = { text: "locationNo", value: "locationNo" };
3029
+ this.articleDetailsInformation = new articleStockManagement.ArticleStockManagement();
3030
+ this.selectedArticleDetailsData = new articleDetails_bo.ArticleDetailsBo();
3031
+ }
3032
+ StockLocationComponent.prototype.ngOnInit = function () {
3033
+ if (this.clickedLocation) {
3034
+ this.selectedWarehouse = this.clickedLocation;
3035
+ this.onSelectWarehouse(this.selectedWarehouse);
3036
+ }
3037
+ };
3038
+ StockLocationComponent.prototype.onSelectWarehouse = function (event) {
3039
+ var _this = this;
3040
+ this.articleDetailsInformation.warehouseNumber = event;
3041
+ this.articleDetailsInformation.goodId = this.article.goodId;
3042
+ if (this.selectedWarehouse || this.selectedWarehouse === 0) {
3043
+ this._stockService.getArticleDetails(this.articleDetailsInformation).then(function (details) {
3044
+ _this.articleDetails = details;
3045
+ });
3046
+ }
3047
+ };
3048
+ StockLocationComponent.prototype.lockSelectedRow = function (row) {
3049
+ this._stockService.lockArticleDetails(row);
3050
+ };
3051
+ StockLocationComponent.prototype.onLocationDropdownClick = function () {
3052
+ var _this = this;
3053
+ this._stockService.getStockManagementLocations(this.selectedWarehouse).then(function (locations) {
3054
+ _this.stockLocations = locations;
3055
+ });
3056
+ };
3057
+ StockLocationComponent.prototype.amountInStockChanged = function (data) {
3058
+ this.selectedArticleDetailsData.amountInStock = data;
3059
+ };
3060
+ StockLocationComponent.prototype.openSendMethodDialog = function (data) {
3061
+ this.sendMethodDialogClicked.emit(data);
3062
+ };
3063
+ StockLocationComponent.prototype.handleStockTransferClick = function (event) {
3064
+ this.transferIconClicked.emit(event);
3065
+ };
3066
+ return StockLocationComponent;
3067
+ }());
3068
+ StockLocationComponent.decorators = [
3069
+ { type: i0.Component, args: [{
3070
+ selector: "co-stock-location",
3071
+ template: "\n <div class=\"stock-grid\">\n <div class=\"stock-location-group\">\n <div class=\"stock-location-right-group\">\n <co-drop-down-list [(model)]=\"selectedWarehouse\"\n [collection]=\"dataWareHouseCode\"\n [fields]=\"dataWareHouseFields\"\n [placeholder]=\"'WAREHOUSE'\"\n (modelChange)=\"onSelectWarehouse($event)\"\n [required]=\"true\"\n ></co-drop-down-list>\n </div>\n </div>\n\n <co-simple-grid [data]=\"articleDetails\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n [showAdd]=\"true\"\n [showDelete]=\"true\"\n [inlineEdit]=\"true\"\n (dblClickRow)=\"lockSelectedRow($event)\"\n [rightToolbar]=\"true\"\n [showToolbar]=\"true\"\n >\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [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'\"\n (click)=\"onLocationDropdownClick()\"\n [required]=\"true\"\n ></co-drop-down-list>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleDetails\" [headerText]=\"'BATCH'\" [field]=\"'batchNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [(model)]=\"row.batchNo\"\n [placeholder]=\"'BATCH'\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleDetails\" [headerText]=\"'SERIAL_NO'\" [field]=\"'serialNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [(model)]=\"row.serialNo\"\n [placeholder]=\"'SERIAL_NO'\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'amountInStock'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [(model)]=\"row.amountInStock\"\n [label]=\"'STOCK'\"\n (modelChange)=\"amountInStockChanged($event)\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED'\" [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'\" [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'\" [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'\" [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'\" [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'\" [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'\" [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 ",
3072
+ encapsulation: i0.ViewEncapsulation.None
3073
+ },] }
3074
+ ];
3075
+ StockLocationComponent.ctorParameters = function () { return [
3076
+ { type: IconCacheService },
3077
+ { type: StockService },
3078
+ { type: i0.ChangeDetectorRef }
3079
+ ]; };
3080
+ StockLocationComponent.propDecorators = {
3081
+ articleStockInformation: [{ type: i0.Input }],
3082
+ article: [{ type: i0.Input }],
3083
+ clickedLocation: [{ type: i0.Input }],
3084
+ dataWareHouseCode: [{ type: i0.Input }],
3085
+ transferIconClicked: [{ type: i0.Output }],
3086
+ sendMethodDialogClicked: [{ type: i0.Output }]
3087
+ };
3088
+
3089
+ var StockHistoryComponent = /** @class */ (function () {
3090
+ function StockHistoryComponent(iconCacheService, _stockService) {
3091
+ this.iconCacheService = iconCacheService;
3092
+ this._stockService = _stockService;
3093
+ this.icons = exports["ɵbi"];
3094
+ }
3095
+ StockHistoryComponent.prototype.openSendMethodDialog = function (data) {
3096
+ if (!(this._stockService.printLayoutParams instanceof printPriceStickers_bo.PrintPriceStickers)) {
3097
+ this._stockService.printLayoutParams.goodId = data.goodId;
3098
+ this._stockService.printLayoutParams.warehouse = data.warehouseNo;
3099
+ }
3100
+ };
3101
+ StockHistoryComponent.prototype.getStockHistory = function () {
3102
+ return __awaiter(this, void 0, void 0, function () {
3103
+ var stockHistoryInformation, _a;
3104
+ return __generator(this, function (_b) {
3105
+ switch (_b.label) {
3106
+ case 0:
3107
+ stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
3108
+ stockHistoryInformation.type = "B";
3109
+ stockHistoryInformation.goodId = this.articleGoodId;
3110
+ _a = this;
3111
+ return [4 /*yield*/, this._stockService.getStockHistory(stockHistoryInformation)];
3112
+ case 1:
3113
+ _a.stockHistory = _b.sent();
3114
+ return [2 /*return*/];
3115
+ }
3116
+ });
3117
+ });
3118
+ };
3119
+ return StockHistoryComponent;
3120
+ }());
3121
+ StockHistoryComponent.decorators = [
3122
+ { type: i0.Component, args: [{
3123
+ selector: "co-stock-history",
3124
+ template: "\n <co-simple-grid [data]=\"stockHistory\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n >\n <co-simple-grid-column [headerText]=\"'MUTATION_DATE'\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.mutationDate | date:'dd-MM-yyyy'\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TIME'\" [field]=\"'mutationTime'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'wareHouseNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DOCUMENT_NUMBER'\" [field]=\"'docNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LINE'\" [field]=\"'transLineNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_STATE'\" [field]=\"'stockStateId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_REMARK'\" [field]=\"'stockStateRemarkId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA'\" [field]=\"'currencyCode'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RELATION_NR'\" [field]=\"'relationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'USER'\" [field]=\"'user'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TYPE'\" [field]=\"'mutationType'\"></co-simple-grid-column>\n </co-simple-grid>\n ",
3125
+ encapsulation: i0.ViewEncapsulation.None
3126
+ },] }
3127
+ ];
3128
+ StockHistoryComponent.ctorParameters = function () { return [
3129
+ { type: IconCacheService },
3130
+ { type: StockService }
3131
+ ]; };
3132
+ StockHistoryComponent.propDecorators = {
3133
+ stockHistoryInformation: [{ type: i0.Input }],
3134
+ articleGoodId: [{ type: i0.Input }],
3135
+ stockHistory: [{ type: i0.Input }]
3136
+ };
3137
+
3138
+ var TabBarComponent = /** @class */ (function () {
3139
+ function TabBarComponent() {
3140
+ this.ActivateSecondaryTabs = false;
3141
+ }
3142
+ TabBarComponent.prototype.selectTab = function (tab) {
3143
+ if (tab.clickHandler) {
3144
+ tab.clickHandler();
3145
+ }
3146
+ this.tabs.forEach(function (t) { return t.active = false; });
3147
+ tab.active = true;
3148
+ };
3149
+ TabBarComponent.prototype.selectSecondaryTab = function (secondaryTab) {
3150
+ if (secondaryTab.clickHandler) {
3151
+ secondaryTab.clickHandler();
3152
+ }
3153
+ this.secondaryTabs.forEach(function (t) { return t.active = false; });
3154
+ secondaryTab.active = true;
3155
+ };
3156
+ return TabBarComponent;
3157
+ }());
3158
+ TabBarComponent.decorators = [
3159
+ { type: i0.Component, args: [{
3160
+ selector: "co-tab-bar",
3161
+ template: "\n <div class=\"tab-bar\">\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 ",
3162
+ encapsulation: i0.ViewEncapsulation.None
3163
+ },] }
3164
+ ];
3165
+ TabBarComponent.ctorParameters = function () { return []; };
3166
+ TabBarComponent.propDecorators = {
3167
+ tabs: [{ type: i0.Input }],
3168
+ secondaryTabs: [{ type: i0.Input }],
3169
+ ActivateSecondaryTabs: [{ type: i0.Input }]
3170
+ };
3171
+
3172
+ var TabBarModule = /** @class */ (function () {
3173
+ function TabBarModule() {
3174
+ }
3175
+ return TabBarModule;
3176
+ }());
3177
+ TabBarModule.decorators = [
3178
+ { type: i0.NgModule, args: [{
3179
+ imports: [
3180
+ common.CommonModule,
3181
+ ],
3182
+ declarations: [
3183
+ TabBarComponent
3184
+ ],
3185
+ exports: [
3186
+ TabBarComponent
3187
+ ]
3188
+ },] }
3189
+ ];
3190
+
3191
+ var OrderSupplyStockHistoryComponent = /** @class */ (function () {
3192
+ function OrderSupplyStockHistoryComponent(iconCacheService) {
3193
+ this.iconCacheService = iconCacheService;
3194
+ this.icons = exports["ɵbi"];
3195
+ }
3196
+ return OrderSupplyStockHistoryComponent;
3197
+ }());
3198
+ OrderSupplyStockHistoryComponent.decorators = [
3199
+ { type: i0.Component, args: [{
3200
+ selector: "co-order-supply-stock-history",
3201
+ template: "\n <co-simple-grid [data]=\"orderSupplyStockHistory\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n >\n <co-simple-grid-column [headerText]=\"'MUTATION_DATE'\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.mutationDate | date:'dd-MM-yyyy'\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TIME'\" [field]=\"'mutationTime'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'wareHouseNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DOCUMENT_NUMBER'\" [field]=\"'docNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LINE'\" [field]=\"'transLineNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_STATE'\" [field]=\"'stockStateId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_REMARK'\" [field]=\"'stockStateRemarkId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA'\" [field]=\"'currencyCode'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RELATION_NR'\" [field]=\"'relationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'USER'\" [field]=\"'user'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TYPE'\" [field]=\"'mutationType'\"></co-simple-grid-column>\n </co-simple-grid>\n ",
3202
+ encapsulation: i0.ViewEncapsulation.None
3203
+ },] }
3204
+ ];
3205
+ OrderSupplyStockHistoryComponent.ctorParameters = function () { return [
3206
+ { type: IconCacheService }
3207
+ ]; };
3208
+ OrderSupplyStockHistoryComponent.propDecorators = {
3209
+ orderSupplyStockHistory: [{ type: i0.Input }]
3210
+ };
3211
+
3212
+ var OrderCommissionStockHistoryComponent = /** @class */ (function () {
3213
+ function OrderCommissionStockHistoryComponent(iconCacheService) {
3214
+ this.iconCacheService = iconCacheService;
3215
+ this.icons = exports["ɵbi"];
3216
+ }
3217
+ return OrderCommissionStockHistoryComponent;
3218
+ }());
3219
+ OrderCommissionStockHistoryComponent.decorators = [
3220
+ { type: i0.Component, args: [{
3221
+ selector: "co-order-stock-commission-history",
3222
+ template: "\n <co-simple-grid [data]=\"orderStockCommissionHistory\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n >\n <co-simple-grid-column [headerText]=\"'MUTATION_DATE'\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.mutationDate | date:'dd-MM-yyyy'\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TIME'\" [field]=\"'mutationTime'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'wareHouseNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DOCUMENT_NUMBER'\" [field]=\"'docNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LINE'\" [field]=\"'transLineNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_STATE'\" [field]=\"'stockStateId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_REMARK'\" [field]=\"'stockStateRemarkId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA'\" [field]=\"'currencyCode'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RELATION_NR'\" [field]=\"'relationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'USER'\" [field]=\"'user'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TYPE'\" [field]=\"'mutationType'\"></co-simple-grid-column>\n </co-simple-grid>\n ",
3223
+ encapsulation: i0.ViewEncapsulation.None
3224
+ },] }
3225
+ ];
3226
+ OrderCommissionStockHistoryComponent.ctorParameters = function () { return [
3227
+ { type: IconCacheService }
3228
+ ]; };
3229
+ OrderCommissionStockHistoryComponent.propDecorators = {
3230
+ orderStockCommissionHistory: [{ type: i0.Input }]
3231
+ };
3232
+
3233
+ var OrderStockHistoryComponent = /** @class */ (function () {
3234
+ function OrderStockHistoryComponent(iconCacheService) {
3235
+ this.iconCacheService = iconCacheService;
3236
+ this.icons = exports["ɵbi"];
3237
+ }
3238
+ return OrderStockHistoryComponent;
3239
+ }());
3240
+ OrderStockHistoryComponent.decorators = [
3241
+ { type: i0.Component, args: [{
3242
+ selector: "co-order-stock-history",
3243
+ template: "\n <co-simple-grid [data]=\"orderStockHistory\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n >\n <co-simple-grid-column [headerText]=\"'MUTATION_DATE'\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.mutationDate | date:'dd-MM-yyyy'\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TIME'\" [field]=\"'mutationTime'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'wareHouseNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DOCUMENT_NUMBER'\" [field]=\"'docNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LINE'\" [field]=\"'transLineNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_STATE'\" [field]=\"'stockStateId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_REMARK'\" [field]=\"'stockStateRemarkId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA'\" [field]=\"'currencyCode'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RELATION_NR'\" [field]=\"'relationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'USER'\" [field]=\"'user'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TYPE'\" [field]=\"'mutationType'\"></co-simple-grid-column>\n </co-simple-grid>\n ",
3244
+ encapsulation: i0.ViewEncapsulation.None
3245
+ },] }
3246
+ ];
3247
+ OrderStockHistoryComponent.ctorParameters = function () { return [
3248
+ { type: IconCacheService }
3249
+ ]; };
3250
+ OrderStockHistoryComponent.propDecorators = {
3251
+ orderStockHistory: [{ type: i0.Input }]
3252
+ };
3253
+
3254
+ var AllocationStockHistoryComponent = /** @class */ (function () {
3255
+ function AllocationStockHistoryComponent(iconCacheService) {
3256
+ this.iconCacheService = iconCacheService;
3257
+ this.icons = exports["ɵbi"];
3258
+ }
3259
+ return AllocationStockHistoryComponent;
3260
+ }());
3261
+ AllocationStockHistoryComponent.decorators = [
3262
+ { type: i0.Component, args: [{
3263
+ selector: "co-allocation-stock-history",
3264
+ template: "\n <co-simple-grid [data]=\"allocationStockHistory\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n >\n <co-simple-grid-column [headerText]=\"'MUTATION_DATE'\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.mutationDate | date:'dd-MM-yyyy'\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TIME'\" [field]=\"'mutationTime'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'wareHouseNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DOCUMENT_NUMBER'\" [field]=\"'docNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LINE'\" [field]=\"'transLineNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_STATE'\" [field]=\"'stockStateId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_REMARK'\" [field]=\"'stockStateRemarkId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA'\" [field]=\"'currencyCode'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RELATION_NR'\" [field]=\"'relationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'USER'\" [field]=\"'user'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TYPE'\" [field]=\"'mutationType'\"></co-simple-grid-column>\n </co-simple-grid>\n ",
3265
+ encapsulation: i0.ViewEncapsulation.None
3266
+ },] }
3267
+ ];
3268
+ AllocationStockHistoryComponent.ctorParameters = function () { return [
3269
+ { type: IconCacheService }
3270
+ ]; };
3271
+ AllocationStockHistoryComponent.propDecorators = {
3272
+ allocationStockHistory: [{ type: i0.Input }]
3273
+ };
3274
+
2779
3275
  var StockModule = /** @class */ (function () {
2780
3276
  function StockModule() {
2781
3277
  }
@@ -2797,15 +3293,27 @@
2797
3293
  corecomponents_v12.IconModule,
2798
3294
  corecomponents_v12.InputNumberPickerModule,
2799
3295
  corecomponents_v12.CoDialogWizardModule,
2800
- corecomponents_v12.InputTextareaModule
3296
+ corecomponents_v12.InputTextareaModule,
3297
+ TabBarModule,
3298
+ corecomponents_v12.CoDialogModule
2801
3299
  ],
2802
3300
  declarations: [
2803
3301
  StockComponent,
2804
3302
  StockInformationComponent,
2805
3303
  StockInformationGridComponent,
2806
- StockLocationComponent,
2807
3304
  StockTransferComponent,
2808
- StockChangeAmountComponent
3305
+ StockChangeAmountComponent,
3306
+ StockTabComponent,
3307
+ OrderTabComponent,
3308
+ StockTabsComponent,
3309
+ StockHistoryTabsComponent,
3310
+ OrderStockTabComponent,
3311
+ StockLocationComponent,
3312
+ StockHistoryComponent,
3313
+ OrderSupplyStockHistoryComponent,
3314
+ OrderCommissionStockHistoryComponent,
3315
+ OrderStockHistoryComponent,
3316
+ AllocationStockHistoryComponent
2809
3317
  ],
2810
3318
  exports: [
2811
3319
  StockComponent
@@ -2851,7 +3359,7 @@
2851
3359
  var KeyPadComponent = /** @class */ (function () {
2852
3360
  function KeyPadComponent(iconCacheService) {
2853
3361
  this.iconCacheService = iconCacheService;
2854
- this.icons = exports["ɵw"];
3362
+ this.icons = exports["ɵbi"];
2855
3363
  this.showValue = true;
2856
3364
  this.emitModelChangeOnEnter = true;
2857
3365
  this.modelChange = new i0.EventEmitter();
@@ -3042,7 +3550,7 @@
3042
3550
  var LayoutSwitcherComponent = /** @class */ (function () {
3043
3551
  function LayoutSwitcherComponent(iconCacheService) {
3044
3552
  this.iconCacheService = iconCacheService;
3045
- this.icon = exports["ɵw"];
3553
+ this.icon = exports["ɵbi"];
3046
3554
  this.layoutItems = [];
3047
3555
  this.layoutSwitchEmit = new i0.EventEmitter();
3048
3556
  this.showMaskSidebar = false;
@@ -3626,7 +4134,7 @@
3626
4134
  this.iconCacheService = iconCacheService;
3627
4135
  this.selectedDate = new Date();
3628
4136
  this.selectedDateChange = new i0.EventEmitter();
3629
- this.icons = exports["ɵw"];
4137
+ this.icons = exports["ɵbi"];
3630
4138
  this.showMonthYearSelect = false;
3631
4139
  this.expanded = false;
3632
4140
  }
@@ -4187,7 +4695,7 @@
4187
4695
  },] }
4188
4696
  ];
4189
4697
  CalendarViewComponent.ctorParameters = function () { return [
4190
- { type: exports["ɵbc"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
4698
+ { type: exports["ɵbo"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
4191
4699
  ]; };
4192
4700
  CalendarViewComponent.propDecorators = {
4193
4701
  view: [{ type: i0.Input }],
@@ -4275,7 +4783,7 @@
4275
4783
  CalendarUtils.Locale = undefined;
4276
4784
  CalendarUtils.Now = new Date();
4277
4785
  CalendarUtils.ctorParameters = function () { return [
4278
- { type: exports["ɵbc"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
4786
+ { type: exports["ɵbo"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
4279
4787
  ]; };
4280
4788
 
4281
4789
  var AgendaEvent = /** @class */ (function () {
@@ -4332,7 +4840,7 @@
4332
4840
  this._renderer = _renderer;
4333
4841
  this._ngZone = _ngZone;
4334
4842
  this.iconCacheService = iconCacheService;
4335
- this.icons = exports["ɵw"];
4843
+ this.icons = exports["ɵbi"];
4336
4844
  this.viewTypes = CalendarView;
4337
4845
  this.scrollbarWidth = 15;
4338
4846
  this.view = CalendarView.WeekSelectView;
@@ -4508,7 +5016,7 @@
4508
5016
  },] }
4509
5017
  ];
4510
5018
  AgendaHeaderComponent.ctorParameters = function () { return [
4511
- { type: exports["ɵbc"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
5019
+ { type: exports["ɵbo"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
4512
5020
  { type: i0.ElementRef },
4513
5021
  { type: i0.Renderer2 },
4514
5022
  { type: i0.NgZone },
@@ -4608,7 +5116,7 @@
4608
5116
  { type: i0.Directive }
4609
5117
  ];
4610
5118
  AgendaBaseViewComponent.ctorParameters = function () { return [
4611
- { type: exports["ɵbc"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
5119
+ { type: exports["ɵbo"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
4612
5120
  { type: IconCacheService }
4613
5121
  ]; };
4614
5122
  AgendaBaseViewComponent.propDecorators = {
@@ -4724,7 +5232,7 @@
4724
5232
  var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
4725
5233
  _this.view = CalendarView.WeekSelectView;
4726
5234
  _this.week = NULL_WEEK;
4727
- _this.icons = exports["ɵw"];
5235
+ _this.icons = exports["ɵbi"];
4728
5236
  return _this;
4729
5237
  }
4730
5238
  AgendaWeekSelectViewComponent.prototype.prepareViewData = function () {
@@ -4969,7 +5477,7 @@
4969
5477
  this._elementRef = _elementRef;
4970
5478
  this._renderer = _renderer;
4971
5479
  this.iconCacheService = iconCacheService;
4972
- this.icons = exports["ɵw"];
5480
+ this.icons = exports["ɵbi"];
4973
5481
  this.event = NULL_AGENDA_EVENT;
4974
5482
  this.eventChecked = new i0.EventEmitter();
4975
5483
  }
@@ -5138,7 +5646,7 @@
5138
5646
  var AgendaSelectEventComponent = /** @class */ (function () {
5139
5647
  function AgendaSelectEventComponent(iconCacheService) {
5140
5648
  this.iconCacheService = iconCacheService;
5141
- this.icons = exports["ɵw"];
5649
+ this.icons = exports["ɵbi"];
5142
5650
  this.event = NULL_AGENDA_EVENT;
5143
5651
  this.eventChecked = new i0.EventEmitter();
5144
5652
  }
@@ -5234,27 +5742,38 @@
5234
5742
  exports.sendMethodsWithIcon = sendMethodsWithIcon;
5235
5743
  exports["ɵa"] = SignatureComponent;
5236
5744
  exports["ɵb"] = SignaturesComponent;
5237
- exports["ɵba"] = CalendarComponent;
5238
- exports["ɵbb"] = CalendarViewComponent;
5239
- exports["ɵbd"] = AgendaHeaderComponent;
5240
- exports["ɵbe"] = AgendaViewComponent;
5241
- exports["ɵbf"] = AgendaMonthViewComponent;
5242
- exports["ɵbg"] = AgendaBaseViewComponent;
5243
- exports["ɵbh"] = AgendaDayViewComponent;
5244
- exports["ɵbi"] = AgendaWeekViewComponent;
5245
- exports["ɵbj"] = AgendaWeekSelectViewComponent;
5246
- exports["ɵbk"] = AgendaHourViewComponent;
5247
- exports["ɵbl"] = AgendaHourCellComponent;
5248
- exports["ɵbm"] = AgendaHourViewLabelsComponent;
5249
- exports["ɵbn"] = AgendaHalfHourCellComponent;
5250
- exports["ɵbo"] = AgendaEventsComponent;
5251
- exports["ɵbp"] = AgendaEventComponent;
5252
- exports["ɵbq"] = ViewSelectComponent;
5253
- exports["ɵbr"] = AgendaSelectEventComponent;
5254
- exports["ɵbs"] = MASTER_PIPES;
5255
- exports["ɵbt"] = ArrayNumberPipe;
5256
- exports["ɵbu"] = UCfirstPipe;
5745
+ exports["ɵba"] = OrderStockTabComponent;
5746
+ exports["ɵbb"] = StockLocationComponent;
5747
+ exports["ɵbc"] = StockHistoryComponent;
5748
+ exports["ɵbd"] = OrderSupplyStockHistoryComponent;
5749
+ exports["ɵbe"] = OrderCommissionStockHistoryComponent;
5750
+ exports["ɵbf"] = OrderStockHistoryComponent;
5751
+ exports["ɵbg"] = AllocationStockHistoryComponent;
5752
+ exports["ɵbh"] = SendMethod;
5753
+ exports["ɵbj"] = CalendarAllYearsComponent;
5754
+ exports["ɵbk"] = CalendarAllMonthsComponent;
5755
+ exports["ɵbl"] = CalendarHeaderComponent;
5756
+ exports["ɵbm"] = CalendarComponent;
5757
+ exports["ɵbn"] = CalendarViewComponent;
5758
+ exports["ɵbp"] = AgendaHeaderComponent;
5759
+ exports["ɵbq"] = AgendaViewComponent;
5760
+ exports["ɵbr"] = AgendaMonthViewComponent;
5761
+ exports["ɵbs"] = AgendaBaseViewComponent;
5762
+ exports["ɵbt"] = AgendaDayViewComponent;
5763
+ exports["ɵbu"] = AgendaWeekViewComponent;
5764
+ exports["ɵbv"] = AgendaWeekSelectViewComponent;
5765
+ exports["ɵbw"] = AgendaHourViewComponent;
5766
+ exports["ɵbx"] = AgendaHourCellComponent;
5767
+ exports["ɵby"] = AgendaHourViewLabelsComponent;
5768
+ exports["ɵbz"] = AgendaHalfHourCellComponent;
5257
5769
  exports["ɵc"] = StockService;
5770
+ exports["ɵca"] = AgendaEventsComponent;
5771
+ exports["ɵcb"] = AgendaEventComponent;
5772
+ exports["ɵcc"] = ViewSelectComponent;
5773
+ exports["ɵcd"] = AgendaSelectEventComponent;
5774
+ exports["ɵce"] = MASTER_PIPES;
5775
+ exports["ɵcf"] = ArrayNumberPipe;
5776
+ exports["ɵcg"] = UCfirstPipe;
5258
5777
  exports["ɵd"] = SharedConnectorService;
5259
5778
  exports["ɵe"] = OptionsService;
5260
5779
  exports["ɵf"] = DictionaryService;
@@ -5268,15 +5787,16 @@
5268
5787
  exports["ɵn"] = PrinterSelectionModule;
5269
5788
  exports["ɵo"] = PrinterSelectionComponent;
5270
5789
  exports["ɵp"] = SendMethodPrinterComponent;
5271
- exports["ɵq"] = StockInformationComponent;
5272
- exports["ɵr"] = StockInformationGridComponent;
5273
- exports["ɵs"] = StockLocationComponent;
5274
- exports["ɵt"] = StockTransferComponent;
5275
- exports["ɵu"] = StockChangeAmountComponent;
5276
- exports["ɵv"] = SendMethod;
5277
- exports["ɵx"] = CalendarAllYearsComponent;
5278
- exports["ɵy"] = CalendarAllMonthsComponent;
5279
- exports["ɵz"] = CalendarHeaderComponent;
5790
+ exports["ɵq"] = TabBarModule;
5791
+ exports["ɵr"] = TabBarComponent;
5792
+ exports["ɵs"] = StockInformationComponent;
5793
+ exports["ɵt"] = StockInformationGridComponent;
5794
+ exports["ɵu"] = StockTransferComponent;
5795
+ exports["ɵv"] = StockChangeAmountComponent;
5796
+ exports["ɵw"] = StockTabComponent;
5797
+ exports["ɵx"] = OrderTabComponent;
5798
+ exports["ɵy"] = StockTabsComponent;
5799
+ exports["ɵz"] = StockHistoryTabsComponent;
5280
5800
 
5281
5801
  Object.defineProperty(exports, '__esModule', { value: true });
5282
5802