@colijnit/sharedcomponents 1.0.37 → 1.0.39

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 (55) hide show
  1. package/3rdpartylicenses.txt +1198 -0
  2. package/bundles/colijnit-sharedcomponents.umd.js +618 -122
  3. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  4. package/colijnit-sharedcomponents.d.ts +43 -31
  5. package/colijnit-sharedcomponents.metadata.json +1 -1
  6. package/esm2015/colijnit-sharedcomponents.js +44 -32
  7. package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +46 -0
  8. package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +46 -0
  9. package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +46 -0
  10. package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +46 -0
  11. package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +46 -0
  12. package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +65 -0
  13. package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +51 -0
  14. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +170 -0
  15. package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +38 -0
  16. package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +34 -0
  17. package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +1 -2
  18. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +173 -0
  19. package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +9 -9
  20. package/esm2015/lib/components/stock/stock.component.js +26 -38
  21. package/esm2015/lib/components/stock/stock.module.js +29 -6
  22. package/esm2015/lib/components/tab-bar/tab-bar.component.js +45 -0
  23. package/esm2015/lib/components/tab-bar/tab-bar.module.js +19 -0
  24. package/esm2015/lib/components/tab-bar/tab.interface.js +2 -0
  25. package/favicon.ico +0 -0
  26. package/fesm2015/colijnit-sharedcomponents.js +832 -110
  27. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  28. package/index.html +12 -0
  29. package/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.d.ts +9 -0
  30. package/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.d.ts +9 -0
  31. package/lib/components/stock/components/order-stock-history/order-stock-history.component.d.ts +9 -0
  32. package/lib/components/stock/components/order-stock-tab/order-stock-tab.component.d.ts +11 -0
  33. package/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.d.ts +9 -0
  34. package/lib/components/stock/components/order-tab/order-tab.component.d.ts +20 -0
  35. package/lib/components/stock/components/stock-history/stock-history.component.d.ts +13 -0
  36. package/lib/components/stock/components/stock-location/stock-location.component.d.ts +38 -0
  37. package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +8 -0
  38. package/lib/components/stock/stock-history-tabs/stock-history-tabs.component.d.ts +8 -0
  39. package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +46 -0
  40. package/lib/components/stock/stock.component.d.ts +2 -4
  41. package/lib/components/stock/style/_layout.scss +4 -2
  42. package/lib/components/tab-bar/style/_layout.scss +60 -0
  43. package/lib/components/tab-bar/style/_material-definition.scss +0 -0
  44. package/lib/components/tab-bar/style/_theme.scss +0 -0
  45. package/lib/components/tab-bar/style/material.scss +4 -0
  46. package/lib/components/tab-bar/tab-bar.component.d.ts +9 -0
  47. package/lib/components/tab-bar/tab-bar.module.d.ts +2 -0
  48. package/lib/components/tab-bar/tab.interface.d.ts +5 -0
  49. package/main.87c7441f408aa46a818e.js +1 -0
  50. package/package.json +1 -1
  51. package/polyfills.4a44032b137d291298c3.js +1 -0
  52. package/runtime.8aac21847ed3d3829cca.js +1 -0
  53. package/styles.24f196f586ef43bbe450.css +110 -0
  54. package/esm2015/lib/components/stock/stock-location/stock-location.component.js +0 -62
  55. 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,530 @@
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.goodId;
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.goodId;
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.goodId;
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.goodId;
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.goodId;
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
+ return StockHistoryComponent;
3096
+ }());
3097
+ StockHistoryComponent.decorators = [
3098
+ { type: i0.Component, args: [{
3099
+ selector: "co-stock-history",
3100
+ 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 ",
3101
+ encapsulation: i0.ViewEncapsulation.None
3102
+ },] }
3103
+ ];
3104
+ StockHistoryComponent.ctorParameters = function () { return [
3105
+ { type: IconCacheService },
3106
+ { type: StockService }
3107
+ ]; };
3108
+ StockHistoryComponent.propDecorators = {
3109
+ stockHistoryInformation: [{ type: i0.Input }],
3110
+ articleGoodId: [{ type: i0.Input }],
3111
+ stockHistory: [{ type: i0.Input }]
3112
+ };
3113
+
3114
+ var TabBarComponent = /** @class */ (function () {
3115
+ function TabBarComponent() {
3116
+ this.ActivateSecondaryTabs = false;
3117
+ }
3118
+ TabBarComponent.prototype.selectTab = function (tab) {
3119
+ if (tab.clickHandler) {
3120
+ tab.clickHandler();
3121
+ }
3122
+ this.tabs.forEach(function (t) { return t.active = false; });
3123
+ tab.active = true;
3124
+ };
3125
+ TabBarComponent.prototype.selectSecondaryTab = function (secondaryTab) {
3126
+ if (secondaryTab.clickHandler) {
3127
+ secondaryTab.clickHandler();
3128
+ }
3129
+ this.secondaryTabs.forEach(function (t) { return t.active = false; });
3130
+ secondaryTab.active = true;
3131
+ };
3132
+ return TabBarComponent;
3133
+ }());
3134
+ TabBarComponent.decorators = [
3135
+ { type: i0.Component, args: [{
3136
+ selector: "co-tab-bar",
3137
+ 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 ",
3138
+ encapsulation: i0.ViewEncapsulation.None
3139
+ },] }
3140
+ ];
3141
+ TabBarComponent.ctorParameters = function () { return []; };
3142
+ TabBarComponent.propDecorators = {
3143
+ tabs: [{ type: i0.Input }],
3144
+ secondaryTabs: [{ type: i0.Input }],
3145
+ ActivateSecondaryTabs: [{ type: i0.Input }]
3146
+ };
3147
+
3148
+ var TabBarModule = /** @class */ (function () {
3149
+ function TabBarModule() {
3150
+ }
3151
+ return TabBarModule;
3152
+ }());
3153
+ TabBarModule.decorators = [
3154
+ { type: i0.NgModule, args: [{
3155
+ imports: [
3156
+ common.CommonModule,
3157
+ ],
3158
+ declarations: [
3159
+ TabBarComponent
3160
+ ],
3161
+ exports: [
3162
+ TabBarComponent
3163
+ ]
3164
+ },] }
3165
+ ];
3166
+
3167
+ var OrderSupplyStockHistoryComponent = /** @class */ (function () {
3168
+ function OrderSupplyStockHistoryComponent(iconCacheService) {
3169
+ this.iconCacheService = iconCacheService;
3170
+ this.icons = exports["ɵbi"];
3171
+ }
3172
+ return OrderSupplyStockHistoryComponent;
3173
+ }());
3174
+ OrderSupplyStockHistoryComponent.decorators = [
3175
+ { type: i0.Component, args: [{
3176
+ selector: "co-order-supply-stock-history",
3177
+ 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 ",
3178
+ encapsulation: i0.ViewEncapsulation.None
3179
+ },] }
3180
+ ];
3181
+ OrderSupplyStockHistoryComponent.ctorParameters = function () { return [
3182
+ { type: IconCacheService }
3183
+ ]; };
3184
+ OrderSupplyStockHistoryComponent.propDecorators = {
3185
+ orderSupplyStockHistory: [{ type: i0.Input }]
3186
+ };
3187
+
3188
+ var OrderCommissionStockHistoryComponent = /** @class */ (function () {
3189
+ function OrderCommissionStockHistoryComponent(iconCacheService) {
3190
+ this.iconCacheService = iconCacheService;
3191
+ this.icons = exports["ɵbi"];
3192
+ }
3193
+ return OrderCommissionStockHistoryComponent;
3194
+ }());
3195
+ OrderCommissionStockHistoryComponent.decorators = [
3196
+ { type: i0.Component, args: [{
3197
+ selector: "co-order-stock-commission-history",
3198
+ 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 ",
3199
+ encapsulation: i0.ViewEncapsulation.None
3200
+ },] }
3201
+ ];
3202
+ OrderCommissionStockHistoryComponent.ctorParameters = function () { return [
3203
+ { type: IconCacheService }
3204
+ ]; };
3205
+ OrderCommissionStockHistoryComponent.propDecorators = {
3206
+ orderStockCommissionHistory: [{ type: i0.Input }]
3207
+ };
3208
+
3209
+ var OrderStockHistoryComponent = /** @class */ (function () {
3210
+ function OrderStockHistoryComponent(iconCacheService) {
3211
+ this.iconCacheService = iconCacheService;
3212
+ this.icons = exports["ɵbi"];
3213
+ }
3214
+ return OrderStockHistoryComponent;
3215
+ }());
3216
+ OrderStockHistoryComponent.decorators = [
3217
+ { type: i0.Component, args: [{
3218
+ selector: "co-order-stock-history",
3219
+ 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 ",
3220
+ encapsulation: i0.ViewEncapsulation.None
3221
+ },] }
3222
+ ];
3223
+ OrderStockHistoryComponent.ctorParameters = function () { return [
3224
+ { type: IconCacheService }
3225
+ ]; };
3226
+ OrderStockHistoryComponent.propDecorators = {
3227
+ orderStockHistory: [{ type: i0.Input }]
3228
+ };
3229
+
3230
+ var AllocationStockHistoryComponent = /** @class */ (function () {
3231
+ function AllocationStockHistoryComponent(iconCacheService) {
3232
+ this.iconCacheService = iconCacheService;
3233
+ this.icons = exports["ɵbi"];
3234
+ }
3235
+ return AllocationStockHistoryComponent;
3236
+ }());
3237
+ AllocationStockHistoryComponent.decorators = [
3238
+ { type: i0.Component, args: [{
3239
+ selector: "co-allocation-stock-history",
3240
+ 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 ",
3241
+ encapsulation: i0.ViewEncapsulation.None
3242
+ },] }
3243
+ ];
3244
+ AllocationStockHistoryComponent.ctorParameters = function () { return [
3245
+ { type: IconCacheService }
3246
+ ]; };
3247
+ AllocationStockHistoryComponent.propDecorators = {
3248
+ allocationStockHistory: [{ type: i0.Input }]
3249
+ };
3250
+
2779
3251
  var StockModule = /** @class */ (function () {
2780
3252
  function StockModule() {
2781
3253
  }
@@ -2797,15 +3269,27 @@
2797
3269
  corecomponents_v12.IconModule,
2798
3270
  corecomponents_v12.InputNumberPickerModule,
2799
3271
  corecomponents_v12.CoDialogWizardModule,
2800
- corecomponents_v12.InputTextareaModule
3272
+ corecomponents_v12.InputTextareaModule,
3273
+ TabBarModule,
3274
+ corecomponents_v12.CoDialogModule
2801
3275
  ],
2802
3276
  declarations: [
2803
3277
  StockComponent,
2804
3278
  StockInformationComponent,
2805
3279
  StockInformationGridComponent,
2806
- StockLocationComponent,
2807
3280
  StockTransferComponent,
2808
- StockChangeAmountComponent
3281
+ StockChangeAmountComponent,
3282
+ StockTabComponent,
3283
+ OrderTabComponent,
3284
+ StockTabsComponent,
3285
+ StockHistoryTabsComponent,
3286
+ OrderStockTabComponent,
3287
+ StockLocationComponent,
3288
+ StockHistoryComponent,
3289
+ OrderSupplyStockHistoryComponent,
3290
+ OrderCommissionStockHistoryComponent,
3291
+ OrderStockHistoryComponent,
3292
+ AllocationStockHistoryComponent
2809
3293
  ],
2810
3294
  exports: [
2811
3295
  StockComponent
@@ -2851,7 +3335,7 @@
2851
3335
  var KeyPadComponent = /** @class */ (function () {
2852
3336
  function KeyPadComponent(iconCacheService) {
2853
3337
  this.iconCacheService = iconCacheService;
2854
- this.icons = exports["ɵw"];
3338
+ this.icons = exports["ɵbi"];
2855
3339
  this.showValue = true;
2856
3340
  this.emitModelChangeOnEnter = true;
2857
3341
  this.modelChange = new i0.EventEmitter();
@@ -3042,7 +3526,7 @@
3042
3526
  var LayoutSwitcherComponent = /** @class */ (function () {
3043
3527
  function LayoutSwitcherComponent(iconCacheService) {
3044
3528
  this.iconCacheService = iconCacheService;
3045
- this.icon = exports["ɵw"];
3529
+ this.icon = exports["ɵbi"];
3046
3530
  this.layoutItems = [];
3047
3531
  this.layoutSwitchEmit = new i0.EventEmitter();
3048
3532
  this.showMaskSidebar = false;
@@ -3626,7 +4110,7 @@
3626
4110
  this.iconCacheService = iconCacheService;
3627
4111
  this.selectedDate = new Date();
3628
4112
  this.selectedDateChange = new i0.EventEmitter();
3629
- this.icons = exports["ɵw"];
4113
+ this.icons = exports["ɵbi"];
3630
4114
  this.showMonthYearSelect = false;
3631
4115
  this.expanded = false;
3632
4116
  }
@@ -4187,7 +4671,7 @@
4187
4671
  },] }
4188
4672
  ];
4189
4673
  CalendarViewComponent.ctorParameters = function () { return [
4190
- { type: exports["ɵbc"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
4674
+ { type: exports["ɵbo"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
4191
4675
  ]; };
4192
4676
  CalendarViewComponent.propDecorators = {
4193
4677
  view: [{ type: i0.Input }],
@@ -4275,7 +4759,7 @@
4275
4759
  CalendarUtils.Locale = undefined;
4276
4760
  CalendarUtils.Now = new Date();
4277
4761
  CalendarUtils.ctorParameters = function () { return [
4278
- { type: exports["ɵbc"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
4762
+ { type: exports["ɵbo"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
4279
4763
  ]; };
4280
4764
 
4281
4765
  var AgendaEvent = /** @class */ (function () {
@@ -4332,7 +4816,7 @@
4332
4816
  this._renderer = _renderer;
4333
4817
  this._ngZone = _ngZone;
4334
4818
  this.iconCacheService = iconCacheService;
4335
- this.icons = exports["ɵw"];
4819
+ this.icons = exports["ɵbi"];
4336
4820
  this.viewTypes = CalendarView;
4337
4821
  this.scrollbarWidth = 15;
4338
4822
  this.view = CalendarView.WeekSelectView;
@@ -4508,7 +4992,7 @@
4508
4992
  },] }
4509
4993
  ];
4510
4994
  AgendaHeaderComponent.ctorParameters = function () { return [
4511
- { type: exports["ɵbc"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
4995
+ { type: exports["ɵbo"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
4512
4996
  { type: i0.ElementRef },
4513
4997
  { type: i0.Renderer2 },
4514
4998
  { type: i0.NgZone },
@@ -4608,7 +5092,7 @@
4608
5092
  { type: i0.Directive }
4609
5093
  ];
4610
5094
  AgendaBaseViewComponent.ctorParameters = function () { return [
4611
- { type: exports["ɵbc"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
5095
+ { type: exports["ɵbo"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
4612
5096
  { type: IconCacheService }
4613
5097
  ]; };
4614
5098
  AgendaBaseViewComponent.propDecorators = {
@@ -4724,7 +5208,7 @@
4724
5208
  var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
4725
5209
  _this.view = CalendarView.WeekSelectView;
4726
5210
  _this.week = NULL_WEEK;
4727
- _this.icons = exports["ɵw"];
5211
+ _this.icons = exports["ɵbi"];
4728
5212
  return _this;
4729
5213
  }
4730
5214
  AgendaWeekSelectViewComponent.prototype.prepareViewData = function () {
@@ -4969,7 +5453,7 @@
4969
5453
  this._elementRef = _elementRef;
4970
5454
  this._renderer = _renderer;
4971
5455
  this.iconCacheService = iconCacheService;
4972
- this.icons = exports["ɵw"];
5456
+ this.icons = exports["ɵbi"];
4973
5457
  this.event = NULL_AGENDA_EVENT;
4974
5458
  this.eventChecked = new i0.EventEmitter();
4975
5459
  }
@@ -5138,7 +5622,7 @@
5138
5622
  var AgendaSelectEventComponent = /** @class */ (function () {
5139
5623
  function AgendaSelectEventComponent(iconCacheService) {
5140
5624
  this.iconCacheService = iconCacheService;
5141
- this.icons = exports["ɵw"];
5625
+ this.icons = exports["ɵbi"];
5142
5626
  this.event = NULL_AGENDA_EVENT;
5143
5627
  this.eventChecked = new i0.EventEmitter();
5144
5628
  }
@@ -5234,27 +5718,38 @@
5234
5718
  exports.sendMethodsWithIcon = sendMethodsWithIcon;
5235
5719
  exports["ɵa"] = SignatureComponent;
5236
5720
  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;
5721
+ exports["ɵba"] = OrderStockTabComponent;
5722
+ exports["ɵbb"] = StockLocationComponent;
5723
+ exports["ɵbc"] = StockHistoryComponent;
5724
+ exports["ɵbd"] = OrderSupplyStockHistoryComponent;
5725
+ exports["ɵbe"] = OrderCommissionStockHistoryComponent;
5726
+ exports["ɵbf"] = OrderStockHistoryComponent;
5727
+ exports["ɵbg"] = AllocationStockHistoryComponent;
5728
+ exports["ɵbh"] = SendMethod;
5729
+ exports["ɵbj"] = CalendarAllYearsComponent;
5730
+ exports["ɵbk"] = CalendarAllMonthsComponent;
5731
+ exports["ɵbl"] = CalendarHeaderComponent;
5732
+ exports["ɵbm"] = CalendarComponent;
5733
+ exports["ɵbn"] = CalendarViewComponent;
5734
+ exports["ɵbp"] = AgendaHeaderComponent;
5735
+ exports["ɵbq"] = AgendaViewComponent;
5736
+ exports["ɵbr"] = AgendaMonthViewComponent;
5737
+ exports["ɵbs"] = AgendaBaseViewComponent;
5738
+ exports["ɵbt"] = AgendaDayViewComponent;
5739
+ exports["ɵbu"] = AgendaWeekViewComponent;
5740
+ exports["ɵbv"] = AgendaWeekSelectViewComponent;
5741
+ exports["ɵbw"] = AgendaHourViewComponent;
5742
+ exports["ɵbx"] = AgendaHourCellComponent;
5743
+ exports["ɵby"] = AgendaHourViewLabelsComponent;
5744
+ exports["ɵbz"] = AgendaHalfHourCellComponent;
5257
5745
  exports["ɵc"] = StockService;
5746
+ exports["ɵca"] = AgendaEventsComponent;
5747
+ exports["ɵcb"] = AgendaEventComponent;
5748
+ exports["ɵcc"] = ViewSelectComponent;
5749
+ exports["ɵcd"] = AgendaSelectEventComponent;
5750
+ exports["ɵce"] = MASTER_PIPES;
5751
+ exports["ɵcf"] = ArrayNumberPipe;
5752
+ exports["ɵcg"] = UCfirstPipe;
5258
5753
  exports["ɵd"] = SharedConnectorService;
5259
5754
  exports["ɵe"] = OptionsService;
5260
5755
  exports["ɵf"] = DictionaryService;
@@ -5268,15 +5763,16 @@
5268
5763
  exports["ɵn"] = PrinterSelectionModule;
5269
5764
  exports["ɵo"] = PrinterSelectionComponent;
5270
5765
  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;
5766
+ exports["ɵq"] = TabBarModule;
5767
+ exports["ɵr"] = TabBarComponent;
5768
+ exports["ɵs"] = StockInformationComponent;
5769
+ exports["ɵt"] = StockInformationGridComponent;
5770
+ exports["ɵu"] = StockTransferComponent;
5771
+ exports["ɵv"] = StockChangeAmountComponent;
5772
+ exports["ɵw"] = StockTabComponent;
5773
+ exports["ɵx"] = OrderTabComponent;
5774
+ exports["ɵy"] = StockTabsComponent;
5775
+ exports["ɵz"] = StockHistoryTabsComponent;
5280
5776
 
5281
5777
  Object.defineProperty(exports, '__esModule', { value: true });
5282
5778