@colijnit/sharedcomponents 1.0.38 → 1.0.40

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 (42) hide show
  1. package/README.md +24 -24
  2. package/bundles/colijnit-sharedcomponents.umd.js +738 -680
  3. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  4. package/colijnit-sharedcomponents.d.ts +43 -41
  5. package/colijnit-sharedcomponents.metadata.json +1 -1
  6. package/esm2015/colijnit-sharedcomponents.js +44 -42
  7. package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +9 -11
  8. package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +4 -2
  9. package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +22 -39
  10. package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +1 -1
  11. package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +1 -1
  12. package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +1 -18
  13. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +20 -3
  14. package/esm2015/lib/components/stock/stock-information/stock-information.component.js +3 -2
  15. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +9 -13
  16. package/esm2015/lib/components/stock/stock.component.js +17 -2
  17. package/esm2015/lib/components/stock/stock.module.js +6 -2
  18. package/esm2015/lib/components/stock-statusbar/stock-statusbar.component.js +23 -0
  19. package/esm2015/lib/components/stock-statusbar/stock-statusbar.module.js +19 -0
  20. package/esm2015/lib/enum/icon.enum.js +1 -1
  21. package/esm2015/lib/model/icon-svg.js +1 -1
  22. package/esm2015/lib/service/shared-connector.service.js +17 -1
  23. package/esm2015/lib/service/stock.service.js +6 -1
  24. package/fesm2015/colijnit-sharedcomponents.js +667 -606
  25. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  26. package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +1 -1
  27. package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +2 -0
  28. package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +4 -7
  29. package/lib/components/stock/components/stock-history/stock-history.component.d.ts +0 -2
  30. package/lib/components/stock/components/stock-location/stock-location.component.d.ts +3 -0
  31. package/lib/components/stock/stock-information/stock-information.component.d.ts +1 -2
  32. package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +1 -2
  33. package/lib/components/stock/stock.component.d.ts +8 -2
  34. package/lib/components/stock-statusbar/stock-statusbar.component.d.ts +4 -0
  35. package/lib/components/stock-statusbar/stock-statusbar.module.d.ts +2 -0
  36. package/lib/components/stock-statusbar/style/_layout.scss +25 -0
  37. package/lib/components/stock-statusbar/style/_material-definition.scss +0 -0
  38. package/lib/components/stock-statusbar/style/_theme.scss +0 -0
  39. package/lib/components/stock-statusbar/style/material.scss +4 -0
  40. package/lib/service/shared-connector.service.d.ts +1 -0
  41. package/lib/service/stock.service.d.ts +1 -0
  42. package/package.json +1 -1
@@ -730,13 +730,13 @@
730
730
  },] }
731
731
  ];
732
732
 
733
- exports["ɵbo"] = void 0;
733
+ exports["ɵbq"] = 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["ɵbo"] || (exports["ɵbo"] = {}));
739
+ })(exports["ɵbq"] || (exports["ɵbq"] = {}));
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["ɵbo"].Dutch;
853
+ this._language = language || exports["ɵbq"].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["ɵbo"].Dutch;
886
+ this._language = exports["ɵbq"].Dutch;
887
887
  this._loadDictionary();
888
888
  }
889
889
  var text = this._dictionaries.get(this.language)[key];
@@ -1109,6 +1109,25 @@
1109
1109
  });
1110
1110
  });
1111
1111
  };
1112
+ SharedConnectorService.prototype.getArtStockStatus = function (goodId, branchNo, requestedAmount, warehouseId) {
1113
+ return __awaiter(this, void 0, void 0, function () {
1114
+ var _this = this;
1115
+ return __generator(this, function (_a) {
1116
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1117
+ return _this.articleConnector.getArtStockStatus(goodId, branchNo, requestedAmount, warehouseId).then(function (result) {
1118
+ if (result.validationResult && result.validationResult.success) {
1119
+ if (result.resultObject) {
1120
+ resolve(result.resultObject);
1121
+ }
1122
+ }
1123
+ else {
1124
+ reject(result.validationMessagesAsString);
1125
+ }
1126
+ });
1127
+ })];
1128
+ });
1129
+ });
1130
+ };
1112
1131
  SharedConnectorService.prototype.getStockManagementWarehouses = function () {
1113
1132
  return __awaiter(this, void 0, void 0, function () {
1114
1133
  var _this = this;
@@ -1386,6 +1405,16 @@
1386
1405
  });
1387
1406
  });
1388
1407
  };
1408
+ StockService.prototype.getArtStockStatus = function (goodId, branchNo, requestedAmount, warehouseId) {
1409
+ return __awaiter(this, void 0, void 0, function () {
1410
+ return __generator(this, function (_a) {
1411
+ switch (_a.label) {
1412
+ case 0: return [4 /*yield*/, this._sharedService.getArtStockStatus(goodId, branchNo, requestedAmount, warehouseId)];
1413
+ case 1: return [2 /*return*/, _a.sent()];
1414
+ }
1415
+ });
1416
+ });
1417
+ };
1389
1418
  // public async getStockStickerTemplates(data: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]> {
1390
1419
  // return await this._sharedService.getStockStickerTemplates(data);
1391
1420
  // }
@@ -1486,6 +1515,10 @@
1486
1515
  StockComponent.prototype.ngOnDestroy = function () {
1487
1516
  this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
1488
1517
  };
1518
+ StockComponent.prototype.ngOnInit = function () {
1519
+ this.getArtStockStatus();
1520
+ this.getStockManagementWarehouses();
1521
+ };
1489
1522
  StockComponent.prototype.handleStockTransferClick = function (event) {
1490
1523
  this.stockTransferArticleDetails = event;
1491
1524
  this.showStockTransfer = !this.showStockTransfer;
@@ -1521,6 +1554,27 @@
1521
1554
  });
1522
1555
  });
1523
1556
  };
1557
+ StockComponent.prototype.getArtStockStatus = function () {
1558
+ return __awaiter(this, void 0, void 0, function () {
1559
+ var _a;
1560
+ return __generator(this, function (_b) {
1561
+ switch (_b.label) {
1562
+ case 0:
1563
+ _a = this;
1564
+ return [4 /*yield*/, this.stockService.getArtStockStatus(this.articleExtended.goodId)];
1565
+ case 1:
1566
+ _a.articleStockState = _b.sent();
1567
+ return [2 /*return*/];
1568
+ }
1569
+ });
1570
+ });
1571
+ };
1572
+ StockComponent.prototype.getStockManagementWarehouses = function () {
1573
+ var _this = this;
1574
+ this.stockService.getStockManagementWarehouses().then(function (warehouses) {
1575
+ _this.warehouses = warehouses;
1576
+ });
1577
+ };
1524
1578
  StockComponent.prototype._handleSettingsLoaded = function (loaded) {
1525
1579
  return __awaiter(this, void 0, void 0, function () {
1526
1580
  return __generator(this, function (_a) {
@@ -1562,7 +1616,7 @@
1562
1616
  StockComponent.decorators = [
1563
1617
  { type: i0.Component, args: [{
1564
1618
  selector: "co-stock",
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 ",
1619
+ template: "\n <div class=\"stock-info-container\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStockState]=\"articleStockState\"\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 [warehouses]=\"warehouses\"\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 ",
1566
1620
  encapsulation: i0.ViewEncapsulation.None
1567
1621
  },] }
1568
1622
  ];
@@ -1591,14 +1645,14 @@
1591
1645
  StockInformationComponent.decorators = [
1592
1646
  { type: i0.Component, args: [{
1593
1647
  selector: "co-stock-information",
1594
- template: "\n <div class=\"stock-info\" *ngIf=\"article\">\n <div class=\"stock-info-row\" >\n <div class=\"stock-info-row-image\">\n <div class=\"stock-image\">\n <co-image class=\"stock-image\" [source]=\"article.imageData\"></co-image>\n </div>\n </div>\n <div class=\"stock-good-info\">\n <div>\n <span [textContent]=\"article.description\"></span>\n </div>\n <div>\n <span [textContent]=\"article.articleNumber\"></span>\n </div>\n </div>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'STOCK_STATUS'\"></label>\n <span [textContent]=\"article.stockStatus\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_IN_STOCK'\"></label>\n <span [textContent]=\"allTechnicalStockInformation\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_AVAILABLE'\"></label>\n <span [textContent]=\"allAvailableStockInformation\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_LATER_AVAILABLE'\"></label>\n <span [textContent]=\"\"></span>\n </div>\n </div>\n ",
1648
+ template: "\n <div class=\"stock-info\" *ngIf=\"article\">\n <div class=\"stock-info-row\" >\n <div class=\"stock-info-row-image\">\n <div class=\"stock-image\">\n <co-image class=\"stock-image\" [source]=\"article.imageData\"></co-image>\n </div>\n </div>\n <div class=\"stock-good-info\">\n <div>\n <span [textContent]=\"article.description\"></span>\n </div>\n <div>\n <span [textContent]=\"article.articleNumber\"></span>\n </div>\n </div>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'STOCK_STATUS'\"></label>\n <span [textContent]=\"article.stockStatus\"></span>\n <co-stock-statusbar [value]=\"articleStockState\"></co-stock-statusbar>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_IN_STOCK'\"></label>\n <span [textContent]=\"allTechnicalStockInformation\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_AVAILABLE'\"></label>\n <span [textContent]=\"allAvailableStockInformation\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_LATER_AVAILABLE'\"></label>\n <span [textContent]=\"\"></span>\n </div>\n </div>\n ",
1595
1649
  encapsulation: i0.ViewEncapsulation.None
1596
1650
  },] }
1597
1651
  ];
1598
1652
  StockInformationComponent.ctorParameters = function () { return []; };
1599
1653
  StockInformationComponent.propDecorators = {
1600
1654
  article: [{ type: i0.Input }],
1601
- articleStock: [{ type: i0.Input }],
1655
+ articleStockState: [{ type: i0.Input }],
1602
1656
  allAvailableStockInformation: [{ type: i0.Input }],
1603
1657
  allTechnicalStockInformation: [{ type: i0.Input }]
1604
1658
  };
@@ -1683,7 +1737,7 @@
1683
1737
  ]; };
1684
1738
 
1685
1739
  /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
1686
- exports["ɵbi"] = void 0;
1740
+ exports["ɵbk"] = void 0;
1687
1741
  (function (Icon) {
1688
1742
  Icon["AngleLeftSolid"] = "angle_left_solid";
1689
1743
  Icon["AngleRightSolid"] = "angle_right_solid";
@@ -1709,13 +1763,13 @@
1709
1763
  Icon["PrintSolid"] = "print_solid";
1710
1764
  Icon["SignatureField"] = "signature_field";
1711
1765
  Icon["Xml"] = "xml";
1712
- })(exports["ɵbi"] || (exports["ɵbi"] = {}));
1766
+ })(exports["ɵbk"] || (exports["ɵbk"] = {}));
1713
1767
 
1714
1768
  var StockInformationGridComponent = /** @class */ (function () {
1715
1769
  function StockInformationGridComponent(iconCacheService, _stockService) {
1716
1770
  this.iconCacheService = iconCacheService;
1717
1771
  this._stockService = _stockService;
1718
- this.icons = exports["ɵbi"];
1772
+ this.icons = exports["ɵbk"];
1719
1773
  this.transferIconClicked = new i0.EventEmitter();
1720
1774
  this.historyClicked = new i0.EventEmitter();
1721
1775
  this.cancelButtonClicked = new i0.EventEmitter();
@@ -2162,24 +2216,23 @@
2162
2216
  }());
2163
2217
 
2164
2218
  var sendMethodsWithIcon = [
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)
2219
+ new SendMethod(sendMethodType_enum.SendMethodType.Fax, "Fax", exports["ɵbk"].PrintRegular),
2220
+ new SendMethod(sendMethodType_enum.SendMethodType.Print, "Print", exports["ɵbk"].PrintSolid),
2221
+ new SendMethod(sendMethodType_enum.SendMethodType.Email, "Email", exports["ɵbk"].AtSolid),
2222
+ new SendMethod(sendMethodType_enum.SendMethodType.Edi, "Edi", exports["ɵbk"].FileExportSolid),
2223
+ new SendMethod(sendMethodType_enum.SendMethodType.EmailTemplate, "Email template", exports["ɵbk"].EnvelopeRegular),
2224
+ new SendMethod(sendMethodType_enum.SendMethodType.Sms, "Sms", exports["ɵbk"].MessageSmsSolid),
2225
+ new SendMethod(sendMethodType_enum.SendMethodType.WebService, "Webservice", exports["ɵbk"].PrintRegular)
2172
2226
  ];
2173
2227
  var SendMethodDialogComponent = /** @class */ (function () {
2174
- function SendMethodDialogComponent(iconCacheService, _optionsService, _dictionary, _changeDetector, _sharedService, _sendMethodService) {
2228
+ function SendMethodDialogComponent(iconCacheService, _changeDetector, _sharedService, _sendMethodService) {
2175
2229
  var _this = this;
2176
2230
  this.iconCacheService = iconCacheService;
2177
- this._optionsService = _optionsService;
2178
- this._dictionary = _dictionary;
2179
2231
  this._changeDetector = _changeDetector;
2180
2232
  this._sharedService = _sharedService;
2181
2233
  this._sendMethodService = _sendMethodService;
2182
- this.icons = exports["ɵbi"];
2234
+ this.icons = exports["ɵbk"];
2235
+ this.printerList = [];
2183
2236
  this.emailLayouts = [];
2184
2237
  this.printLayouts = [];
2185
2238
  this.emailAddresses = [];
@@ -2203,7 +2256,7 @@
2203
2256
  this.showEmailTemplate = true;
2204
2257
  this.showWebservice = true;
2205
2258
  this._subscriptions = [];
2206
- this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(function (loaded) { return _this._handleSettingsLoaded(loaded); }), this._sendMethodService.reportingDocumentPrintBaseRequestChanged.subscribe(function (value) { return _this.reportingDocumentPrintRequestChange.next(value); }), this._sendMethodService.reportingDocumentEmailBaseRequestChanged.subscribe(function (value) { return _this.reportingDocumentEmailRequestChange.next(value); }), this._sendMethodService.reportingDocumentPdfBaseRequestChanged.subscribe(function (value) { return _this.reportingDocumentPdfRequestChange.next(value); }));
2259
+ this._subscriptions.push(this._sendMethodService.reportingDocumentPrintBaseRequestChanged.subscribe(function (value) { return _this.reportingDocumentPrintRequestChange.next(value); }), this._sendMethodService.reportingDocumentEmailBaseRequestChanged.subscribe(function (value) { return _this.reportingDocumentEmailRequestChange.next(value); }), this._sendMethodService.reportingDocumentPdfBaseRequestChanged.subscribe(function (value) { return _this.reportingDocumentPdfRequestChange.next(value); }));
2207
2260
  }
2208
2261
  SendMethodDialogComponent.prototype.showClass = function () {
2209
2262
  return true;
@@ -2218,7 +2271,7 @@
2218
2271
  if (this.reportingDocumentPdfRequest) {
2219
2272
  this._sendMethodService.reportingDocumentPdfBaseRequest = this.reportingDocumentPdfRequest;
2220
2273
  }
2221
- this._selectDefaultSendMethod();
2274
+ this._initDefaultSendMethod();
2222
2275
  this._prepareVisibleMethods();
2223
2276
  };
2224
2277
  SendMethodDialogComponent.prototype.ngOnDestroy = function () {
@@ -2252,21 +2305,28 @@
2252
2305
  this.navigationItems.nativeElement.scrollLeft = this.webServiceItems.nativeElement.offsetLeft - this.navigationItems.nativeElement.offsetLeft;
2253
2306
  }
2254
2307
  };
2255
- SendMethodDialogComponent.prototype._selectDefaultSendMethod = function () {
2256
- var _this = this;
2308
+ SendMethodDialogComponent.prototype._initDefaultSendMethod = function () {
2257
2309
  if (this.defaultSendMethod) {
2258
- var sendMethod_1 = this.sendMethods.find(function (sm) { return sm.code === _this.defaultSendMethod; });
2259
- if (sendMethod_1) {
2260
- setTimeout(function () {
2261
- _this.handleSendMethodClick(sendMethod_1);
2262
- _this.startUp = false;
2263
- });
2264
- }
2310
+ this._selectDefaultSendMethod();
2265
2311
  }
2266
2312
  else {
2313
+ if (this.visibleMethods && this.visibleMethods.length === 1) {
2314
+ this.defaultSendMethod = this.visibleMethods[0];
2315
+ this._selectDefaultSendMethod();
2316
+ }
2267
2317
  this.startUp = false;
2268
2318
  }
2269
2319
  };
2320
+ SendMethodDialogComponent.prototype._selectDefaultSendMethod = function () {
2321
+ var _this = this;
2322
+ var sendMethod = this.sendMethods.find(function (sm) { return sm.code === _this.defaultSendMethod; });
2323
+ if (sendMethod) {
2324
+ setTimeout(function () {
2325
+ _this.handleSendMethodClick(sendMethod);
2326
+ _this.startUp = false;
2327
+ });
2328
+ }
2329
+ };
2270
2330
  SendMethodDialogComponent.prototype._prepareVisibleMethods = function () {
2271
2331
  var _this = this;
2272
2332
  if (this.visibleMethods && this.visibleMethods.length > 0) {
@@ -2280,49 +2340,12 @@
2280
2340
  this.showSms = this.sendMethods.find(function (sm) { return sm.code === sendMethodType_enum.SendMethodType.Sms; }) !== undefined;
2281
2341
  this.showWebservice = this.sendMethods.find(function (sm) { return sm.code === sendMethodType_enum.SendMethodType.WebService; }) !== undefined;
2282
2342
  };
2283
- SendMethodDialogComponent.prototype._handleSettingsLoaded = function (loaded) {
2284
- return __awaiter(this, void 0, void 0, function () {
2285
- return __generator(this, function (_a) {
2286
- switch (_a.label) {
2287
- case 0:
2288
- if (!loaded) return [3 /*break*/, 2];
2289
- return [4 /*yield*/, this._initConnection().then()];
2290
- case 1:
2291
- _a.sent();
2292
- this.upAndLoaded = true;
2293
- _a.label = 2;
2294
- case 2: return [2 /*return*/];
2295
- }
2296
- });
2297
- });
2298
- };
2299
- SendMethodDialogComponent.prototype._initConnection = function () {
2300
- return __awaiter(this, void 0, void 0, function () {
2301
- var _this = this;
2302
- return __generator(this, function (_a) {
2303
- switch (_a.label) {
2304
- case 0:
2305
- // await this._connector.connect(this._optionsService.options);
2306
- if (this._optionsService.options.url) {
2307
- this._dictionary.rootUrl = this._optionsService.options.url.replace('/ajaxservice', '');
2308
- }
2309
- return [4 /*yield*/, this._dictionary.setDictionary(this._optionsService.options.languageCode)];
2310
- case 1:
2311
- _a.sent();
2312
- setTimeout(function () {
2313
- _this._changeDetector.detectChanges();
2314
- });
2315
- return [2 /*return*/];
2316
- }
2317
- });
2318
- });
2319
- };
2320
2343
  return SendMethodDialogComponent;
2321
2344
  }());
2322
2345
  SendMethodDialogComponent.decorators = [
2323
2346
  { type: i0.Component, args: [{
2324
2347
  selector: 'co-send-method-dialog',
2325
- template: "\n <co-dialog id=\"sendOptionsDialog\" [headerTemplate]=\"headerTemplate\" [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"closeClick.emit($event)\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"headerTitle\"></div>\n </ng-template>\n <div class=\"dialog-content-wrapper\">\n <div class=\"send-methods-wrapper\">\n <div class=\"send-button-wrapper\" *ngFor=\"let sendMethod of sendMethods; let index = index\"\n [class.selected]=\"activeSendMethod ? sendMethod.code === activeSendMethod.code : index === 0\"\n (click)=\"handleSendMethodClick(sendMethod)\">\n <co-icon class=\"custom-button-icon\" [iconData]=\"iconCacheService.getIcon(sendMethod.icon)\"></co-icon>\n <div class=\"custom-button-title\" [textContent]=\"sendMethod.description\"></div>\n </div>\n </div>\n <div #navigationItems class=\"send-method-navigation-wrapper\" [class.smooth-scrolling]=\"!startUp\">\n <div #faxItems class=\"send-method-navigation-content co-small-scrollbar\">\n\n </div>\n <div #printItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showPrint\">\n <co-send-method-printer\n [layouts]=\"printLayouts\"\n ></co-send-method-printer>\n </div>\n <div #emailItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showEmail\">\n <co-send-method-email\n [emailAddresses]=\"emailAddresses\"\n [layouts]=\"emailLayouts\"\n ></co-send-method-email>\n </div>\n <div #ediItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showEdi\">\n\n </div>\n <div #emailTemplateItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showEmailTemplate\">\n\n </div>\n <div #smsItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showSms\">\n\n </div>\n <div #webServiceItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showWebservice\">\n\n </div>\n </div>\n </div>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button [label]=\"'Ok'\" (click)=\"okClick.emit(activeSendMethod ? activeSendMethod.code : '0')\"></co-button>\n </div>\n </ng-template>\n </co-dialog>\n ",
2348
+ template: "\n <co-dialog id=\"sendOptionsDialog\" [headerTemplate]=\"headerTemplate\" [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"closeClick.emit($event)\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"headerTitle\"></div>\n </ng-template>\n <div class=\"dialog-content-wrapper\">\n <div class=\"send-methods-wrapper\">\n <div class=\"send-button-wrapper\" *ngFor=\"let sendMethod of sendMethods; let index = index\"\n [class.selected]=\"activeSendMethod ? sendMethod.code === activeSendMethod.code : index === 0\"\n (click)=\"handleSendMethodClick(sendMethod)\">\n <co-icon class=\"custom-button-icon\" [iconData]=\"iconCacheService.getIcon(sendMethod.icon)\"></co-icon>\n <div class=\"custom-button-title\" [textContent]=\"sendMethod.description\"></div>\n </div>\n </div>\n <div #navigationItems class=\"send-method-navigation-wrapper\" [class.smooth-scrolling]=\"!startUp\">\n <div #faxItems class=\"send-method-navigation-content co-small-scrollbar\">\n\n </div>\n <div #printItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showPrint\">\n <co-send-method-printer\n [printerList]=\"printerList\"\n [layouts]=\"printLayouts\"\n ></co-send-method-printer>\n </div>\n <div #emailItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showEmail\">\n <co-send-method-email\n [emailAddresses]=\"emailAddresses\"\n [layouts]=\"emailLayouts\"\n ></co-send-method-email>\n </div>\n <div #ediItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showEdi\">\n\n </div>\n <div #emailTemplateItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showEmailTemplate\">\n\n </div>\n <div #smsItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showSms\">\n\n </div>\n <div #webServiceItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showWebservice\">\n\n </div>\n </div>\n </div>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button [label]=\"'Ok'\" (click)=\"okClick.emit(activeSendMethod ? activeSendMethod.code : '0')\"></co-button>\n </div>\n </ng-template>\n </co-dialog>\n ",
2326
2349
  encapsulation: i0.ViewEncapsulation.None,
2327
2350
  animations: [
2328
2351
  animations.trigger('slideInOut', [
@@ -2335,8 +2358,6 @@
2335
2358
  ];
2336
2359
  SendMethodDialogComponent.ctorParameters = function () { return [
2337
2360
  { type: IconCacheService },
2338
- { type: OptionsService },
2339
- { type: DictionaryService },
2340
2361
  { type: i0.ChangeDetectorRef },
2341
2362
  { type: SharedService },
2342
2363
  { type: SendMethodService }
@@ -2350,6 +2371,7 @@
2350
2371
  emailTemplateItems: [{ type: i0.ViewChild, args: ['emailTemplateItems', { read: i0.ElementRef },] }],
2351
2372
  smsItems: [{ type: i0.ViewChild, args: ['smsItems', { read: i0.ElementRef },] }],
2352
2373
  webServiceItems: [{ type: i0.ViewChild, args: ['webServiceItems', { read: i0.ElementRef },] }],
2374
+ printerList: [{ type: i0.Input }],
2353
2375
  reportingDocumentPrintRequest: [{ type: i0.Input }],
2354
2376
  reportingDocumentEmailRequest: [{ type: i0.Input }],
2355
2377
  reportingDocumentPdfRequest: [{ type: i0.Input }],
@@ -2513,6 +2535,7 @@
2513
2535
  var SendMethodPrinterComponent = /** @class */ (function () {
2514
2536
  function SendMethodPrinterComponent(sendMethodService) {
2515
2537
  this.sendMethodService = sendMethodService;
2538
+ this.printerList = [];
2516
2539
  this.layouts = [];
2517
2540
  }
2518
2541
  SendMethodPrinterComponent.prototype.showClass = function () {
@@ -2531,7 +2554,7 @@
2531
2554
  SendMethodPrinterComponent.decorators = [
2532
2555
  { type: i0.Component, args: [{
2533
2556
  selector: 'co-send-method-printer',
2534
- template: "\n <co-printer-selection></co-printer-selection>\n <co-layout-selection\n [(request)]=\"sendMethodService.reportingDocumentPrintBaseRequest\"\n [layouts]=\"layouts\"\n ></co-layout-selection>\n <co-input-checkbox\n [model]=\"sendMethodService.reportingDocumentPrintBaseRequest.saveDefaultPrinterForUser\"\n [label]=\"'Koppeling onthouden'\"\n (modelChange)=\"handleDefaultPrinterUserChange($event)\"\n ></co-input-checkbox>\n <co-input-checkbox\n [model]=\"sendMethodService.reportingDocumentPrintBaseRequest.saveDefaultPrinterForAllUsers\"\n [label]=\"'Alle gebruikers'\"\n (modelChange)=\"handleDefaultPrinterAllUsersChange($event)\"\n ></co-input-checkbox>\n ",
2557
+ template: "\n <co-printer-selection [printers]=\"printerList\"></co-printer-selection>\n <co-layout-selection\n [(request)]=\"sendMethodService.reportingDocumentPrintBaseRequest\"\n [layouts]=\"layouts\"\n ></co-layout-selection>\n <co-input-checkbox\n [model]=\"sendMethodService.reportingDocumentPrintBaseRequest.saveDefaultPrinterForUser\"\n [label]=\"'Koppeling onthouden'\"\n (modelChange)=\"handleDefaultPrinterUserChange($event)\"\n ></co-input-checkbox>\n <co-input-checkbox\n [model]=\"sendMethodService.reportingDocumentPrintBaseRequest.saveDefaultPrinterForAllUsers\"\n [label]=\"'Alle gebruikers'\"\n (modelChange)=\"handleDefaultPrinterAllUsersChange($event)\"\n ></co-input-checkbox>\n ",
2535
2558
  encapsulation: i0.ViewEncapsulation.None
2536
2559
  },] }
2537
2560
  ];
@@ -2539,6 +2562,7 @@
2539
2562
  { type: SendMethodService }
2540
2563
  ]; };
2541
2564
  SendMethodPrinterComponent.propDecorators = {
2565
+ printerList: [{ type: i0.Input }],
2542
2566
  layouts: [{ type: i0.Input }],
2543
2567
  showClass: [{ type: i0.HostBinding, args: ['class.co-send-method-printer',] }]
2544
2568
  };
@@ -2548,7 +2572,7 @@
2548
2572
  this.sendMethodService = sendMethodService;
2549
2573
  this.iconService = iconService;
2550
2574
  this._service = _service;
2551
- this.icons = exports["ɵbi"];
2575
+ this.icons = exports["ɵbk"];
2552
2576
  this.printers = [];
2553
2577
  this.showPrinterList = false;
2554
2578
  }
@@ -2556,17 +2580,13 @@
2556
2580
  return true;
2557
2581
  };
2558
2582
  PrinterSelectionComponent.prototype.ngOnInit = function () {
2559
- var _this = this;
2560
- this._service.getAllPrinters().then(function (printers) {
2561
- _this.printers = printers;
2562
- if (!_this.sendMethodService.reportingDocumentPrintBaseRequest.printerName) {
2563
- var defaultPrinter = _this.printers.find(function (p) { return p.isDefault; });
2564
- if (defaultPrinter) {
2565
- _this.sendMethodService.reportingDocumentPrintBaseRequest.printerName = defaultPrinter.name;
2566
- _this.sendMethodService.reportingDocumentPrintBaseRequestChanged.next(_this.sendMethodService.reportingDocumentPrintBaseRequest);
2567
- }
2583
+ if (!this.sendMethodService.reportingDocumentPrintBaseRequest.printerName && this.printers && this.printers.length > 0) {
2584
+ var defaultPrinter = this.printers.find(function (p) { return p.isDefault; });
2585
+ if (defaultPrinter) {
2586
+ this.sendMethodService.reportingDocumentPrintBaseRequest.printerName = defaultPrinter.name;
2587
+ this.sendMethodService.reportingDocumentPrintBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintBaseRequest);
2568
2588
  }
2569
- });
2589
+ }
2570
2590
  };
2571
2591
  PrinterSelectionComponent.prototype.handlePrinterClicked = function (printer) {
2572
2592
  this.sendMethodService.reportingDocumentPrintBaseRequest.printerName = printer.name;
@@ -2596,6 +2616,7 @@
2596
2616
  { type: SharedService }
2597
2617
  ]; };
2598
2618
  PrinterSelectionComponent.propDecorators = {
2619
+ printers: [{ type: i0.Input }],
2599
2620
  showClass: [{ type: i0.HostBinding, args: ['class.co-printer-selection',] }]
2600
2621
  };
2601
2622
 
@@ -2750,7 +2771,7 @@
2750
2771
  function OrderTabComponent(iconCacheService, _stockService) {
2751
2772
  this.iconCacheService = iconCacheService;
2752
2773
  this._stockService = _stockService;
2753
- this.icons = exports["ɵbi"];
2774
+ this.icons = exports["ɵbk"];
2754
2775
  this.locationClicked = new i0.EventEmitter();
2755
2776
  this.transferIconClicked = new i0.EventEmitter();
2756
2777
  this.sendMethodDialogClicked = new i0.EventEmitter();
@@ -2785,18 +2806,18 @@
2785
2806
  var StockTabsComponent = /** @class */ (function () {
2786
2807
  function StockTabsComponent(_stockService) {
2787
2808
  this._stockService = _stockService;
2788
- this.icons = exports["ɵbi"];
2809
+ this.icons = exports["ɵbk"];
2789
2810
  this.transferIconClicked = new i0.EventEmitter();
2790
2811
  this.sendMethodDialogClicked = new i0.EventEmitter();
2791
2812
  this.tabs = [
2792
2813
  { title: 'Overzicht', active: true },
2793
- { title: 'Voorraaddetails', active: false, clickHandler: this.getStockManagementWarehouses.bind(this) },
2814
+ { title: 'Voorraaddetails', active: false },
2794
2815
  { title: 'In order', active: false, clickHandler: this.getInOrderData.bind(this) },
2795
2816
  { title: 'In bestelling', active: false, clickHandler: this.getOrderData.bind(this) },
2796
2817
  { title: 'Historie', active: false },
2797
2818
  ];
2798
2819
  this.historyTabs = [
2799
- { title: 'Voorraad', active: false, clickHandler: this.getStockHistory.bind(this) },
2820
+ { title: 'Voorraad', active: true, clickHandler: this.getStockHistory.bind(this) },
2800
2821
  { title: 'Order voorraad', active: false, clickHandler: this.getOrderSupplyStockHistory.bind(this) },
2801
2822
  { title: 'Order commissie', active: false, clickHandler: this.getOrderCommissionStockHistory.bind(this) },
2802
2823
  { title: 'Bestelling', active: false, clickHandler: this.getOrderStockHistory.bind(this) },
@@ -2817,7 +2838,7 @@
2817
2838
  if (!!this.stockHistory) return [3 /*break*/, 2];
2818
2839
  stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
2819
2840
  stockHistoryInformation.type = "V";
2820
- stockHistoryInformation.goodId = this.article;
2841
+ stockHistoryInformation.goodId = this.article.goodId;
2821
2842
  _a = this;
2822
2843
  return [4 /*yield*/, this._stockService.getStockHistory(stockHistoryInformation)];
2823
2844
  case 1:
@@ -2837,7 +2858,7 @@
2837
2858
  if (!!this.orderSupplyStockHistory) return [3 /*break*/, 2];
2838
2859
  stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
2839
2860
  stockHistoryInformation.type = "O";
2840
- stockHistoryInformation.goodId = this.article;
2861
+ stockHistoryInformation.goodId = this.article.goodId;
2841
2862
  _a = this;
2842
2863
  return [4 /*yield*/, this._stockService.getStockHistory(stockHistoryInformation)];
2843
2864
  case 1:
@@ -2857,7 +2878,7 @@
2857
2878
  if (!!this.orderCommissionStockHistory) return [3 /*break*/, 2];
2858
2879
  stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
2859
2880
  stockHistoryInformation.type = "C";
2860
- stockHistoryInformation.goodId = this.article;
2881
+ stockHistoryInformation.goodId = this.article.goodId;
2861
2882
  _a = this;
2862
2883
  return [4 /*yield*/, this._stockService.getStockHistory(stockHistoryInformation)];
2863
2884
  case 1:
@@ -2877,7 +2898,7 @@
2877
2898
  if (!!this.orderStockHistory) return [3 /*break*/, 2];
2878
2899
  stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
2879
2900
  stockHistoryInformation.type = "B";
2880
- stockHistoryInformation.goodId = this.article;
2901
+ stockHistoryInformation.goodId = this.article.goodId;
2881
2902
  _a = this;
2882
2903
  return [4 /*yield*/, this._stockService.getStockHistory(stockHistoryInformation)];
2883
2904
  case 1:
@@ -2897,7 +2918,7 @@
2897
2918
  if (!!this.orderAllocationStockHistory) return [3 /*break*/, 2];
2898
2919
  stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
2899
2920
  stockHistoryInformation.type = "T";
2900
- stockHistoryInformation.goodId = this.article;
2921
+ stockHistoryInformation.goodId = this.article.goodId;
2901
2922
  _a = this;
2902
2923
  return [4 /*yield*/, this._stockService.getStockHistory(stockHistoryInformation)];
2903
2924
  case 1:
@@ -2928,12 +2949,6 @@
2928
2949
  });
2929
2950
  });
2930
2951
  };
2931
- StockTabsComponent.prototype.getStockManagementWarehouses = function () {
2932
- var _this = this;
2933
- this._stockService.getStockManagementWarehouses().then(function (warehouses) {
2934
- _this.warehouses = warehouses;
2935
- });
2936
- };
2937
2952
  StockTabsComponent.prototype.getOrderData = function () {
2938
2953
  return __awaiter(this, void 0, void 0, function () {
2939
2954
  var orderData, _a;
@@ -2969,13 +2984,14 @@
2969
2984
  StockTabsComponent.propDecorators = {
2970
2985
  stockInformation: [{ type: i0.Input }],
2971
2986
  article: [{ type: i0.Input }],
2987
+ warehouses: [{ type: i0.Input }],
2972
2988
  transferIconClicked: [{ type: i0.Output }],
2973
2989
  sendMethodDialogClicked: [{ type: i0.Output }]
2974
2990
  };
2975
2991
 
2976
2992
  var StockHistoryTabsComponent = /** @class */ (function () {
2977
2993
  function StockHistoryTabsComponent() {
2978
- this.icons = exports["ɵbi"];
2994
+ this.icons = exports["ɵbk"];
2979
2995
  this.selectedTab = 0;
2980
2996
  }
2981
2997
  return StockHistoryTabsComponent;
@@ -2996,7 +3012,7 @@
2996
3012
  function OrderStockTabComponent(iconCacheService, _stockService) {
2997
3013
  this.iconCacheService = iconCacheService;
2998
3014
  this._stockService = _stockService;
2999
- this.icons = exports["ɵbi"];
3015
+ this.icons = exports["ɵbk"];
3000
3016
  }
3001
3017
  return OrderStockTabComponent;
3002
3018
  }());
@@ -3020,10 +3036,9 @@
3020
3036
  this.iconCacheService = iconCacheService;
3021
3037
  this._stockService = _stockService;
3022
3038
  this._changeDetector = _changeDetector;
3023
- this.icons = exports["ɵbi"];
3039
+ this.icons = exports["ɵbk"];
3024
3040
  this.transferIconClicked = new i0.EventEmitter();
3025
3041
  this.sendMethodDialogClicked = new i0.EventEmitter();
3026
- this.selectedWarehouse = 0;
3027
3042
  this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNo" };
3028
3043
  this.dataLocationFields = { text: "locationNo", value: "locationNo" };
3029
3044
  this.articleDetailsInformation = new articleStockManagement.ArticleStockManagement();
@@ -3054,6 +3069,9 @@
3054
3069
  _this.stockLocations = locations;
3055
3070
  });
3056
3071
  };
3072
+ StockLocationComponent.prototype.locationChanged = function (event) {
3073
+ this.selectedLocation = event;
3074
+ };
3057
3075
  StockLocationComponent.prototype.amountInStockChanged = function (data) {
3058
3076
  this.selectedArticleDetailsData.amountInStock = data;
3059
3077
  };
@@ -3063,12 +3081,36 @@
3063
3081
  StockLocationComponent.prototype.handleStockTransferClick = function (event) {
3064
3082
  this.transferIconClicked.emit(event);
3065
3083
  };
3084
+ StockLocationComponent.prototype.onOkClickSendLocations = function () {
3085
+ return __awaiter(this, void 0, void 0, function () {
3086
+ var _this = this;
3087
+ return __generator(this, function (_a) {
3088
+ switch (_a.label) {
3089
+ case 0:
3090
+ this.selectedArticleDetailsData.selected = true;
3091
+ this.selectedArticleDetailsData.goodId = this.article.goodId;
3092
+ this.selectedArticleDetailsData.entryDate = new Date();
3093
+ this.selectedArticleDetailsData.warehouseNo = this.selectedWarehouse;
3094
+ this.selectedArticleDetailsData.locationNo = this.selectedLocation;
3095
+ return [4 /*yield*/, this._stockService.updateArticleDetails(this.selectedArticleDetailsData)];
3096
+ case 1:
3097
+ _a.sent();
3098
+ return [4 /*yield*/, this._stockService.getArticleDetails(this.articleDetailsInformation).then(function (details) {
3099
+ _this.articleDetails = details;
3100
+ })];
3101
+ case 2:
3102
+ _a.sent();
3103
+ return [2 /*return*/];
3104
+ }
3105
+ });
3106
+ });
3107
+ };
3066
3108
  return StockLocationComponent;
3067
3109
  }());
3068
3110
  StockLocationComponent.decorators = [
3069
3111
  { type: i0.Component, args: [{
3070
3112
  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 ",
3113
+ 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 [inlineEdit]=\"true\"\n (dblClickRow)=\"lockSelectedRow($event)\"\n [rightToolbar]=\"true\"\n [showToolbar]=\"true\"\n (keydown.enter)=\"onOkClickSendLocations()\"\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 (modelChange)=\"locationChanged($event)\"\n ></co-drop-down-list>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleDetails\" [headerText]=\"'BATCH'\" [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
3114
  encapsulation: i0.ViewEncapsulation.None
3073
3115
  },] }
3074
3116
  ];
@@ -3090,32 +3132,8 @@
3090
3132
  function StockHistoryComponent(iconCacheService, _stockService) {
3091
3133
  this.iconCacheService = iconCacheService;
3092
3134
  this._stockService = _stockService;
3093
- this.icons = exports["ɵbi"];
3135
+ this.icons = exports["ɵbk"];
3094
3136
  }
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
3137
  return StockHistoryComponent;
3120
3138
  }());
3121
3139
  StockHistoryComponent.decorators = [
@@ -3191,7 +3209,7 @@
3191
3209
  var OrderSupplyStockHistoryComponent = /** @class */ (function () {
3192
3210
  function OrderSupplyStockHistoryComponent(iconCacheService) {
3193
3211
  this.iconCacheService = iconCacheService;
3194
- this.icons = exports["ɵbi"];
3212
+ this.icons = exports["ɵbk"];
3195
3213
  }
3196
3214
  return OrderSupplyStockHistoryComponent;
3197
3215
  }());
@@ -3212,7 +3230,7 @@
3212
3230
  var OrderCommissionStockHistoryComponent = /** @class */ (function () {
3213
3231
  function OrderCommissionStockHistoryComponent(iconCacheService) {
3214
3232
  this.iconCacheService = iconCacheService;
3215
- this.icons = exports["ɵbi"];
3233
+ this.icons = exports["ɵbk"];
3216
3234
  }
3217
3235
  return OrderCommissionStockHistoryComponent;
3218
3236
  }());
@@ -3233,7 +3251,7 @@
3233
3251
  var OrderStockHistoryComponent = /** @class */ (function () {
3234
3252
  function OrderStockHistoryComponent(iconCacheService) {
3235
3253
  this.iconCacheService = iconCacheService;
3236
- this.icons = exports["ɵbi"];
3254
+ this.icons = exports["ɵbk"];
3237
3255
  }
3238
3256
  return OrderStockHistoryComponent;
3239
3257
  }());
@@ -3254,7 +3272,7 @@
3254
3272
  var AllocationStockHistoryComponent = /** @class */ (function () {
3255
3273
  function AllocationStockHistoryComponent(iconCacheService) {
3256
3274
  this.iconCacheService = iconCacheService;
3257
- this.icons = exports["ɵbi"];
3275
+ this.icons = exports["ɵbk"];
3258
3276
  }
3259
3277
  return AllocationStockHistoryComponent;
3260
3278
  }());
@@ -3272,678 +3290,716 @@
3272
3290
  allocationStockHistory: [{ type: i0.Input }]
3273
3291
  };
3274
3292
 
3275
- var StockModule = /** @class */ (function () {
3276
- function StockModule() {
3277
- }
3278
- return StockModule;
3279
- }());
3280
- StockModule.decorators = [
3281
- { type: i0.NgModule, args: [{
3282
- imports: [
3283
- corecomponents_v12.InputComboBoxModule,
3284
- corecomponents_v12.CoGridModule,
3285
- corecomponents_v12.ButtonModule,
3286
- common.CommonModule,
3287
- corecomponents_v12.InputRadioButtonModule,
3288
- corecomponents_v12.DropDownModule,
3289
- corecomponents_v12.SimpleGridModule,
3290
- corecomponents_v12.ImageModule,
3291
- corecomponents_v12.InputTextModule,
3292
- SendMethodDialogModule,
3293
- corecomponents_v12.IconModule,
3294
- corecomponents_v12.InputNumberPickerModule,
3295
- corecomponents_v12.CoDialogWizardModule,
3296
- corecomponents_v12.InputTextareaModule,
3297
- TabBarModule,
3298
- corecomponents_v12.CoDialogModule
3299
- ],
3300
- declarations: [
3301
- StockComponent,
3302
- StockInformationComponent,
3303
- StockInformationGridComponent,
3304
- StockTransferComponent,
3305
- StockChangeAmountComponent,
3306
- StockTabComponent,
3307
- OrderTabComponent,
3308
- StockTabsComponent,
3309
- StockHistoryTabsComponent,
3310
- OrderStockTabComponent,
3311
- StockLocationComponent,
3312
- StockHistoryComponent,
3313
- OrderSupplyStockHistoryComponent,
3314
- OrderCommissionStockHistoryComponent,
3315
- OrderStockHistoryComponent,
3316
- AllocationStockHistoryComponent
3317
- ],
3318
- exports: [
3319
- StockComponent
3320
- ],
3321
- providers: [
3322
- StockService
3323
- ]
3324
- },] }
3325
- ];
3326
-
3327
- var KeyboardCode;
3328
- (function (KeyboardCode) {
3329
- KeyboardCode["Backspace"] = "Backspace";
3330
- KeyboardCode["Digit0"] = "Digit0";
3331
- KeyboardCode["Digit1"] = "Digit1";
3332
- KeyboardCode["Digit2"] = "Digit2";
3333
- KeyboardCode["Digit3"] = "Digit3";
3334
- KeyboardCode["Digit4"] = "Digit4";
3335
- KeyboardCode["Digit5"] = "Digit5";
3336
- KeyboardCode["Digit6"] = "Digit6";
3337
- KeyboardCode["Digit7"] = "Digit7";
3338
- KeyboardCode["Digit8"] = "Digit8";
3339
- KeyboardCode["Digit9"] = "Digit9";
3340
- KeyboardCode["Enter"] = "Enter";
3341
- KeyboardCode["Escape"] = "Escape";
3342
- KeyboardCode["Minus"] = "Minus";
3343
- KeyboardCode["Numpad0"] = "Numpad0";
3344
- KeyboardCode["Numpad1"] = "Numpad1";
3345
- KeyboardCode["Numpad2"] = "Numpad2";
3346
- KeyboardCode["Numpad3"] = "Numpad3";
3347
- KeyboardCode["Numpad4"] = "Numpad4";
3348
- KeyboardCode["Numpad5"] = "Numpad5";
3349
- KeyboardCode["Numpad6"] = "Numpad6";
3350
- KeyboardCode["Numpad7"] = "Numpad7";
3351
- KeyboardCode["Numpad8"] = "Numpad8";
3352
- KeyboardCode["Numpad9"] = "Numpad9";
3353
- KeyboardCode["NumpadDecimal"] = "NumpadDecimal";
3354
- KeyboardCode["NumpadEnter"] = "NumpadEnter";
3355
- KeyboardCode["NumpadSubtract"] = "NumpadSubtract";
3356
- KeyboardCode["Period"] = "Period";
3357
- })(KeyboardCode || (KeyboardCode = {}));
3293
+ var GaugeColor;
3294
+ (function (GaugeColor) {
3295
+ GaugeColor["Lowest"] = "#E0E0E0";
3296
+ GaugeColor["Low"] = "#fff7b8";
3297
+ GaugeColor["MediumLow"] = "#ffe367";
3298
+ GaugeColor["MediumHigh"] = "#ffc15b";
3299
+ GaugeColor["High"] = "#F88952";
3300
+ GaugeColor["Highest"] = "#5FDCB3";
3301
+ })(GaugeColor || (GaugeColor = {}));
3358
3302
 
3359
- var KeyPadComponent = /** @class */ (function () {
3360
- function KeyPadComponent(iconCacheService) {
3361
- this.iconCacheService = iconCacheService;
3362
- this.icons = exports["ɵbi"];
3363
- this.showValue = true;
3364
- this.emitModelChangeOnEnter = true;
3365
- this.modelChange = new i0.EventEmitter();
3366
- this.internalModelChange = new i0.EventEmitter();
3367
- this.enterClick = new i0.EventEmitter();
3368
- this._validKeyMap = new Map([
3369
- [KeyboardCode.Digit0, "0"],
3370
- [KeyboardCode.Digit1, "1"],
3371
- [KeyboardCode.Digit2, "2"],
3372
- [KeyboardCode.Digit3, "3"],
3373
- [KeyboardCode.Digit4, "4"],
3374
- [KeyboardCode.Digit5, "5"],
3375
- [KeyboardCode.Digit6, "6"],
3376
- [KeyboardCode.Digit7, "7"],
3377
- [KeyboardCode.Digit8, "8"],
3378
- [KeyboardCode.Digit9, "9"],
3379
- [KeyboardCode.Numpad0, "0"],
3380
- [KeyboardCode.Numpad1, "1"],
3381
- [KeyboardCode.Numpad2, "2"],
3382
- [KeyboardCode.Numpad3, "3"],
3383
- [KeyboardCode.Numpad4, "4"],
3384
- [KeyboardCode.Numpad5, "5"],
3385
- [KeyboardCode.Numpad6, "6"],
3386
- [KeyboardCode.Numpad7, "7"],
3387
- [KeyboardCode.Numpad8, "8"],
3388
- [KeyboardCode.Numpad9, "9"],
3389
- [KeyboardCode.NumpadDecimal, "."],
3390
- [KeyboardCode.Period, "."]
3391
- ]);
3392
- this.isNegative = false;
3393
- this._model = 0;
3394
- this._internalModel = "0";
3395
- this._maxCharacters = 11;
3303
+ var CoCircularGaugeComponent = /** @class */ (function () {
3304
+ function CoCircularGaugeComponent() {
3305
+ this._color = GaugeColor.Low;
3306
+ this.majorTicks = {
3307
+ height: 0,
3308
+ };
3309
+ this.minorTicks = {
3310
+ height: 0
3311
+ };
3312
+ this.labelStyle = {
3313
+ position: 'Inside', useRangeColor: true,
3314
+ font: { size: '0px', fontFamily: 'inherit' }
3315
+ };
3316
+ this.lineStyle = {
3317
+ width: 0
3318
+ };
3319
+ this.ranges = [
3320
+ {
3321
+ start: 1, end: 100,
3322
+ radius: '13px',
3323
+ startWidth: 3, endWidth: 3,
3324
+ color: '#E0E0E0',
3325
+ roundedCornerRadius: 0
3326
+ },
3327
+ ];
3396
3328
  }
3397
- Object.defineProperty(KeyPadComponent.prototype, "model", {
3329
+ Object.defineProperty(CoCircularGaugeComponent.prototype, "value", {
3398
3330
  get: function () {
3399
- return this._model;
3331
+ return this._value;
3400
3332
  },
3401
3333
  set: function (value) {
3402
- this._model = value;
3403
- this._internalModel = this._model + "";
3334
+ this._value = value;
3335
+ this._setColor();
3404
3336
  },
3405
3337
  enumerable: false,
3406
3338
  configurable: true
3407
3339
  });
3408
- KeyPadComponent.prototype.showClass = function () {
3409
- return true;
3410
- };
3411
- KeyPadComponent.prototype.handleKeyDown = function (event) {
3412
- this._keyDown(event);
3413
- };
3414
- Object.defineProperty(KeyPadComponent.prototype, "internalModel", {
3340
+ Object.defineProperty(CoCircularGaugeComponent.prototype, "color", {
3415
3341
  get: function () {
3416
- return this._internalModel;
3417
- },
3418
- set: function (value) {
3419
- this._internalModel = value;
3420
- this.isNegative = parseFloat(this._internalModel) < 0;
3421
- this.internalModelChange.emit(this._internalModel);
3342
+ return this._color;
3422
3343
  },
3423
3344
  enumerable: false,
3424
3345
  configurable: true
3425
3346
  });
3426
- KeyPadComponent.prototype.handleMinusClick = function (event) {
3427
- var model = parseFloat(this.internalModel);
3428
- if (model !== 0) {
3429
- if (model < 0) {
3430
- this.internalModel = Math.abs(model) + "";
3431
- }
3432
- else {
3433
- this.internalModel = -model + "";
3434
- }
3435
- }
3436
- this._emitModelChange();
3347
+ CoCircularGaugeComponent.prototype.showClass = function () {
3348
+ return true;
3437
3349
  };
3438
- KeyPadComponent.prototype.handleClearClick = function (event) {
3439
- this.internalModel = "0";
3440
- this._emitModelChange();
3350
+ CoCircularGaugeComponent.prototype.getAxes = function () {
3351
+ return [{
3352
+ minimum: 0,
3353
+ maximum: 100,
3354
+ radius: '15px',
3355
+ startAngle: 1,
3356
+ endAngle: 360,
3357
+ majorTicks: this.majorTicks,
3358
+ minorTicks: this.minorTicks,
3359
+ labelStyle: this.labelStyle,
3360
+ lineStyle: this.lineStyle,
3361
+ ranges: this.ranges,
3362
+ pointers: this.getPointers(),
3363
+ annotations: this.getAnnotations(),
3364
+ }];
3441
3365
  };
3442
- KeyPadComponent.prototype.handleBsClick = function (event) {
3443
- var wish = this.internalModel;
3444
- wish = wish.slice(0, wish.length - 1) || "0";
3445
- if (!isNaN(parseFloat(wish))) {
3446
- this.internalModel = parseFloat(wish) + "";
3366
+ CoCircularGaugeComponent.prototype.getPointers = function () {
3367
+ if (this.value) {
3368
+ return [{
3369
+ roundedCornerRadius: 0,
3370
+ value: this.value,
3371
+ type: 'RangeBar',
3372
+ radius: '13px',
3373
+ color: this.color,
3374
+ border: {
3375
+ width: 0
3376
+ },
3377
+ animation: {
3378
+ enable: false
3379
+ },
3380
+ pointerWidth: 3
3381
+ }];
3447
3382
  }
3448
- this._emitModelChange();
3449
- };
3450
- KeyPadComponent.prototype.handleButtonClick = function (chr) {
3451
- this._updateModel(chr);
3452
- };
3453
- KeyPadComponent.prototype.handleEnterClick = function (event) {
3454
- this._emitModelChange(true);
3455
- this.enterClick.emit();
3456
3383
  };
3457
- KeyPadComponent.prototype._updateModel = function (value) {
3458
- if (value === undefined || value === null ||
3459
- (value === '.' && this.internalModel.indexOf('.') > -1) ||
3460
- this.internalModel.length >= this._maxCharacters) {
3461
- return;
3384
+ ;
3385
+ CoCircularGaugeComponent.prototype.getAnnotations = function () {
3386
+ if (this.value !== undefined) {
3387
+ var label = this.value ? this.value + "%" : "0%";
3388
+ return [{
3389
+ content: '<div class="annotation" style="width:20px;height:20px;">' +
3390
+ '<div class="annotation-label">' + label + '</div></div>',
3391
+ zIndex: '10',
3392
+ }];
3462
3393
  }
3463
- this.internalModel = this.internalModel !== "0" ? this.internalModel + value : value;
3464
- this._emitModelChange();
3465
3394
  };
3466
- KeyPadComponent.prototype._keyDown = function (event) {
3467
- if (this._isEnter(event)) {
3468
- this.handleEnterClick(event);
3395
+ CoCircularGaugeComponent.prototype._setColor = function () {
3396
+ if (this.value <= 0) {
3397
+ this._color = GaugeColor.Lowest;
3469
3398
  }
3470
- else if (this._isMinus(event)) {
3471
- this.handleMinusClick(event);
3399
+ else if (this.value >= 1 && this.value < 25) {
3400
+ this._color = GaugeColor.Low;
3472
3401
  }
3473
- else if (this._isEscape(event)) {
3474
- this.handleClearClick(event);
3402
+ else if (this.value >= 25 && this.value < 50) {
3403
+ this._color = GaugeColor.MediumLow;
3475
3404
  }
3476
- else if (this._isBackspace(event)) {
3477
- this.handleBsClick(event);
3405
+ else if (this.value >= 50 && this.value < 75) {
3406
+ this._color = GaugeColor.MediumHigh;
3478
3407
  }
3479
- else {
3480
- this._updateModel(this._validKeyMap.get(event.code));
3408
+ else if (this.value >= 75 && this.value < 100) {
3409
+ this._color = GaugeColor.High;
3481
3410
  }
3482
- };
3483
- KeyPadComponent.prototype._isEnter = function (event) {
3484
- return event.code === KeyboardCode.Enter || event.code === KeyboardCode.NumpadEnter;
3485
- };
3486
- KeyPadComponent.prototype._isMinus = function (event) {
3487
- return event.code === KeyboardCode.Minus || event.code === KeyboardCode.NumpadSubtract;
3488
- };
3489
- KeyPadComponent.prototype._isEscape = function (event) {
3490
- return event.code === KeyboardCode.Escape;
3491
- };
3492
- KeyPadComponent.prototype._isBackspace = function (event) {
3493
- return event.code === KeyboardCode.Backspace;
3494
- };
3495
- KeyPadComponent.prototype._emitModelChange = function (enter) {
3496
- if (enter === void 0) { enter = false; }
3497
- if ((enter && this.emitModelChangeOnEnter) || (!enter && !this.emitModelChangeOnEnter)) {
3498
- var model = parseFloat(this.internalModel);
3499
- if (!isNaN(model)) {
3500
- if (enter && this.emitModelChangeOnEnter) {
3501
- this.model = model;
3502
- }
3503
- this.modelChange.emit(model);
3504
- }
3411
+ else if (this.value >= 100) {
3412
+ this._color = GaugeColor.Highest;
3505
3413
  }
3506
3414
  };
3507
- return KeyPadComponent;
3415
+ return CoCircularGaugeComponent;
3508
3416
  }());
3509
- KeyPadComponent.decorators = [
3417
+ CoCircularGaugeComponent.decorators = [
3510
3418
  { type: i0.Component, args: [{
3511
- selector: 'co-key-pad',
3512
- template: "\n <div class=\"key-pad-wrapper\">\n <div class=\"key-pad-model-wrapper\" *ngIf=\"showValue\">\n <div class=\"key-pad-model\" [textContent]=\"internalModel\" [class.negative]=\"isNegative\"></div>\n </div>\n <div class=\"key-pad-button-wrapper\">\n <div class=\"key-pad-button button-7\" [textContent]=\"'7'\" (click)=\"handleButtonClick('7')\"></div>\n <div class=\"key-pad-button button-8\" [textContent]=\"'8'\" (click)=\"handleButtonClick('8')\"></div>\n <div class=\"key-pad-button button-9\" [textContent]=\"'9'\" (click)=\"handleButtonClick('9')\"></div>\n <div class=\"key-pad-button button-bs\" (click)=\"handleBsClick($event)\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.DeleteLeftRegular)\"></co-icon>\n </div>\n <div class=\"key-pad-button button-4\" [textContent]=\"'4'\" (click)=\"handleButtonClick('4')\"></div>\n <div class=\"key-pad-button button-5\" [textContent]=\"'5'\" (click)=\"handleButtonClick('5')\"></div>\n <div class=\"key-pad-button button-6\" [textContent]=\"'6'\" (click)=\"handleButtonClick('6')\"></div>\n <div class=\"key-pad-button button-minus\" [textContent]=\"'-'\" (click)=\"handleMinusClick($event)\"></div>\n <div class=\"key-pad-button button-1\" [textContent]=\"'1'\" (click)=\"handleButtonClick('1')\"></div>\n <div class=\"key-pad-button button-2\" [textContent]=\"'2'\" (click)=\"handleButtonClick('2')\"></div>\n <div class=\"key-pad-button button-3\" [textContent]=\"'3'\" (click)=\"handleButtonClick('3')\"></div>\n <div class=\"key-pad-button button-enter\" (click)=\"handleEnterClick($event)\">\n <span [textContent]=\"'enter'\"></span>\n </div>\n <div class=\"key-pad-button button-0\" [textContent]=\"'0'\" (click)=\"handleButtonClick('0')\"></div>\n <div class=\"key-pad-button button-dot\" [textContent]=\"'.'\" (click)=\"handleButtonClick('.')\"></div>\n </div>\n </div>\n ",
3419
+ selector: "co-circular-gauge",
3420
+ template: "\n <div class=\"circular-gauge-wrapper\">\n <ejs-circulargauge\n class=\"circular-gauge\"\n [width]=\"'100%'\"\n [axes]=\"getAxes()\">\n </ejs-circulargauge>\n </div>\n ",
3513
3421
  encapsulation: i0.ViewEncapsulation.None
3514
3422
  },] }
3515
3423
  ];
3516
- KeyPadComponent.ctorParameters = function () { return [
3517
- { type: IconCacheService }
3518
- ]; };
3519
- KeyPadComponent.propDecorators = {
3520
- model: [{ type: i0.Input }],
3521
- showValue: [{ type: i0.Input }],
3522
- emitModelChangeOnEnter: [{ type: i0.Input }],
3523
- modelChange: [{ type: i0.Output }],
3524
- internalModelChange: [{ type: i0.Output }],
3525
- enterClick: [{ type: i0.Output }],
3526
- showClass: [{ type: i0.HostBinding, args: ['class.co-key-pad',] }],
3527
- handleKeyDown: [{ type: i0.HostListener, args: ['window:keydown', ['$event'],] }]
3424
+ CoCircularGaugeComponent.propDecorators = {
3425
+ circulargauge: [{ type: i0.ViewChild, args: ['circulargauge',] }],
3426
+ value: [{ type: i0.Input }],
3427
+ showClass: [{ type: i0.HostBinding, args: ["class.co-circular-gauge",] }]
3528
3428
  };
3529
3429
 
3530
- var KeyPadModule = /** @class */ (function () {
3531
- function KeyPadModule() {
3430
+ var CoCircularGaugeModule = /** @class */ (function () {
3431
+ function CoCircularGaugeModule() {
3532
3432
  }
3533
- return KeyPadModule;
3433
+ return CoCircularGaugeModule;
3534
3434
  }());
3535
- KeyPadModule.decorators = [
3435
+ CoCircularGaugeModule.decorators = [
3536
3436
  { type: i0.NgModule, args: [{
3537
3437
  imports: [
3538
3438
  common.CommonModule,
3539
- corecomponents_v12.IconModule
3439
+ ej2AngularCirculargauge.CircularGaugeModule
3540
3440
  ],
3541
3441
  declarations: [
3542
- KeyPadComponent
3442
+ CoCircularGaugeComponent
3543
3443
  ],
3544
3444
  exports: [
3545
- KeyPadComponent
3445
+ CoCircularGaugeComponent
3546
3446
  ]
3547
3447
  },] }
3548
3448
  ];
3549
3449
 
3550
- var LayoutSwitcherComponent = /** @class */ (function () {
3551
- function LayoutSwitcherComponent(iconCacheService) {
3552
- this.iconCacheService = iconCacheService;
3553
- this.icon = exports["ɵbi"];
3554
- this.layoutItems = [];
3555
- this.layoutSwitchEmit = new i0.EventEmitter();
3556
- this.showMaskSidebar = false;
3557
- this._activeIndex = 0;
3450
+ var CoLinearGaugeComponent = /** @class */ (function () {
3451
+ function CoLinearGaugeComponent() {
3452
+ this.color = GaugeColor.Low;
3558
3453
  }
3559
- LayoutSwitcherComponent.prototype.showClass = function () {
3560
- return true;
3561
- };
3562
- Object.defineProperty(LayoutSwitcherComponent.prototype, "activeIndex", {
3454
+ Object.defineProperty(CoLinearGaugeComponent.prototype, "value", {
3563
3455
  get: function () {
3564
- return this._activeIndex;
3456
+ return this._value;
3565
3457
  },
3566
- set: function (index) {
3567
- this._activeIndex = index;
3568
- this.toggleMaskSidebar();
3569
- this.layoutSwitchEmit.emit(this.layoutItems[index]);
3458
+ set: function (value) {
3459
+ this._value = value;
3460
+ this._setColor();
3570
3461
  },
3571
3462
  enumerable: false,
3572
3463
  configurable: true
3573
3464
  });
3574
- LayoutSwitcherComponent.prototype.toggleMaskSidebar = function () {
3575
- this.showMaskSidebar = !this.showMaskSidebar;
3465
+ CoLinearGaugeComponent.prototype.showClass = function () {
3466
+ return true;
3576
3467
  };
3577
- return LayoutSwitcherComponent;
3578
- }());
3579
- LayoutSwitcherComponent.decorators = [
3580
- { type: i0.Component, args: [{
3581
- selector: "co-layout-switcher",
3582
- template: "\n <div class=\"mask-wrapper\" [class.mask-wrapper-active]='showMaskSidebar' @showHideSidebar>\n <div class=\"icon-wrapper\" (click)=\"toggleMaskSidebar()\">\n <co-icon class=\"icon-mask\" [iconData]=\"iconCacheService.getIcon(icon.BringForwardRegular)\" [@positionIcon]=\"showMaskSidebar\"></co-icon>\n\n <co-icon class='icon-mask-sidebar-handle' [@positionHandle]='showMaskSidebar' [iconData]=\"showMaskSidebar ? iconCacheService.getIcon(this.icon.AngleLeftSolid) : iconCacheService.getIcon(this.icon.AngleRightSolid)\"></co-icon>\n </div>\n\n <div class=\"mask-content\" *ngIf=\"showMaskSidebar\" @showHideSidebar>\n <span *ngFor='let item of this.layoutItems' [class.active]=\"this.activeIndex === this.layoutItems.indexOf(item)\" [textContent]=\"item\" (click)='activeIndex = this.layoutItems.indexOf(item)' ></span>\n </div>\n </div>\n\n ",
3583
- animations: [
3584
- animations.trigger("showHideSidebar", [
3585
- animations.state("void", animations.style({ "width": "0" })),
3586
- animations.state("*", animations.style({ "width": "*" })),
3587
- animations.transition("void <=> *", animations.animate(200))
3588
- ]),
3589
- animations.trigger("positionIcon", [
3590
- animations.state("true", animations.style({ "left": "70px" })),
3591
- animations.state("false", animations.style({ "left": "10px" })),
3592
- animations.transition("true <=> false", animations.animate(200))
3593
- ]),
3594
- animations.trigger("positionHandle", [
3595
- animations.state("true", animations.style({ "left": "15px" })),
3596
- animations.state("false", animations.style({ "left": "75px" })),
3597
- animations.transition("true <=> false", animations.animate(200))
3598
- ])
3599
- ],
3468
+ CoLinearGaugeComponent.prototype.getStyle = function () {
3469
+ return "linear-gradient(90deg, " + this.color + " 0 " + this.value + "%, white " + this.value + "% 100%";
3470
+ };
3471
+ CoLinearGaugeComponent.prototype._setColor = function () {
3472
+ if (this.value <= 0) {
3473
+ this.color = GaugeColor.Lowest;
3474
+ }
3475
+ else if (this.value >= 1 && this.value < 25) {
3476
+ this.color = GaugeColor.Low;
3477
+ }
3478
+ else if (this.value >= 25 && this.value < 50) {
3479
+ this.color = GaugeColor.MediumLow;
3480
+ }
3481
+ else if (this.value >= 50 && this.value < 75) {
3482
+ this.color = GaugeColor.MediumHigh;
3483
+ }
3484
+ else if (this.value >= 75 && this.value < 100) {
3485
+ this.color = GaugeColor.High;
3486
+ }
3487
+ else if (this.value >= 100) {
3488
+ this.color = GaugeColor.Highest;
3489
+ }
3490
+ };
3491
+ return CoLinearGaugeComponent;
3492
+ }());
3493
+ CoLinearGaugeComponent.decorators = [
3494
+ { type: i0.Component, args: [{
3495
+ selector: "co-linear-gauge",
3496
+ template: "\n <div class=\"linear-gauge\"\n [style.background]=\"getStyle()\"\n [style.border-color]=\"color\"\n [textContent]=\"count ? count : ''\"\n ></div>\n ",
3600
3497
  encapsulation: i0.ViewEncapsulation.None
3601
3498
  },] }
3602
3499
  ];
3603
- LayoutSwitcherComponent.ctorParameters = function () { return [
3604
- { type: IconCacheService }
3605
- ]; };
3606
- LayoutSwitcherComponent.propDecorators = {
3607
- showClass: [{ type: i0.HostBinding, args: ['class.co-layout-switcher',] }],
3608
- layoutItems: [{ type: i0.Input }],
3609
- layoutSwitchEmit: [{ type: i0.Output }]
3500
+ CoLinearGaugeComponent.propDecorators = {
3501
+ value: [{ type: i0.Input }],
3502
+ count: [{ type: i0.Input }],
3503
+ showClass: [{ type: i0.HostBinding, args: ["class.co-linear-gauge",] }]
3610
3504
  };
3611
3505
 
3612
- var LayoutSwitcherModule = /** @class */ (function () {
3613
- function LayoutSwitcherModule() {
3506
+ var CoLinearGaugeModule = /** @class */ (function () {
3507
+ function CoLinearGaugeModule() {
3614
3508
  }
3615
- return LayoutSwitcherModule;
3509
+ return CoLinearGaugeModule;
3616
3510
  }());
3617
- LayoutSwitcherModule.decorators = [
3511
+ CoLinearGaugeModule.decorators = [
3618
3512
  { type: i0.NgModule, args: [{
3619
3513
  imports: [
3620
3514
  common.CommonModule,
3621
- corecomponents_v12.IconModule
3622
3515
  ],
3623
3516
  declarations: [
3624
- LayoutSwitcherComponent,
3517
+ CoLinearGaugeComponent
3625
3518
  ],
3626
3519
  exports: [
3627
- LayoutSwitcherComponent
3520
+ CoLinearGaugeComponent
3628
3521
  ]
3629
3522
  },] }
3630
3523
  ];
3631
3524
 
3632
- var GaugeColor;
3633
- (function (GaugeColor) {
3634
- GaugeColor["Lowest"] = "#E0E0E0";
3635
- GaugeColor["Low"] = "#fff7b8";
3636
- GaugeColor["MediumLow"] = "#ffe367";
3637
- GaugeColor["MediumHigh"] = "#ffc15b";
3638
- GaugeColor["High"] = "#F88952";
3639
- GaugeColor["Highest"] = "#5FDCB3";
3640
- })(GaugeColor || (GaugeColor = {}));
3641
-
3642
- var CoCircularGaugeComponent = /** @class */ (function () {
3643
- function CoCircularGaugeComponent() {
3644
- this._color = GaugeColor.Low;
3645
- this.majorTicks = {
3646
- height: 0,
3647
- };
3648
- this.minorTicks = {
3649
- height: 0
3650
- };
3651
- this.labelStyle = {
3652
- position: 'Inside', useRangeColor: true,
3653
- font: { size: '0px', fontFamily: 'inherit' }
3654
- };
3655
- this.lineStyle = {
3656
- width: 0
3657
- };
3658
- this.ranges = [
3659
- {
3660
- start: 1, end: 100,
3661
- radius: '13px',
3662
- startWidth: 3, endWidth: 3,
3663
- color: '#E0E0E0',
3664
- roundedCornerRadius: 0
3665
- },
3666
- ];
3525
+ var StatusbarComponent = /** @class */ (function () {
3526
+ function StatusbarComponent() {
3527
+ this.statusbarClick = new i0.EventEmitter();
3528
+ this.showPopup = false;
3529
+ this.popupClass = 'dropdown';
3667
3530
  }
3668
- Object.defineProperty(CoCircularGaugeComponent.prototype, "value", {
3531
+ Object.defineProperty(StatusbarComponent.prototype, "statusbarData", {
3669
3532
  get: function () {
3670
- return this._value;
3533
+ return this._statusbarData;
3671
3534
  },
3672
3535
  set: function (value) {
3673
- this._value = value;
3674
- this._setColor();
3675
- },
3676
- enumerable: false,
3677
- configurable: true
3678
- });
3679
- Object.defineProperty(CoCircularGaugeComponent.prototype, "color", {
3680
- get: function () {
3681
- return this._color;
3536
+ this._statusbarData = value;
3537
+ this.adjustTooHighPercentages();
3682
3538
  },
3683
3539
  enumerable: false,
3684
3540
  configurable: true
3685
3541
  });
3686
- CoCircularGaugeComponent.prototype.showClass = function () {
3542
+ StatusbarComponent.prototype.showClass = function () {
3687
3543
  return true;
3688
3544
  };
3689
- CoCircularGaugeComponent.prototype.getAxes = function () {
3690
- return [{
3691
- minimum: 0,
3692
- maximum: 100,
3693
- radius: '15px',
3694
- startAngle: 1,
3695
- endAngle: 360,
3696
- majorTicks: this.majorTicks,
3697
- minorTicks: this.minorTicks,
3698
- labelStyle: this.labelStyle,
3699
- lineStyle: this.lineStyle,
3700
- ranges: this.ranges,
3701
- pointers: this.getPointers(),
3702
- annotations: this.getAnnotations(),
3703
- }];
3704
- };
3705
- CoCircularGaugeComponent.prototype.getPointers = function () {
3706
- if (this.value) {
3707
- return [{
3708
- roundedCornerRadius: 0,
3709
- value: this.value,
3710
- type: 'RangeBar',
3711
- radius: '13px',
3712
- color: this.color,
3713
- border: {
3714
- width: 0
3715
- },
3716
- animation: {
3717
- enable: false
3718
- },
3719
- pointerWidth: 3
3720
- }];
3721
- }
3722
- };
3723
- ;
3724
- CoCircularGaugeComponent.prototype.getAnnotations = function () {
3725
- if (this.value !== undefined) {
3726
- var label = this.value ? this.value + "%" : "0%";
3727
- return [{
3728
- content: '<div class="annotation" style="width:20px;height:20px;">' +
3729
- '<div class="annotation-label">' + label + '</div></div>',
3730
- zIndex: '10',
3731
- }];
3545
+ StatusbarComponent.prototype.onStatusbarClick = function (event) {
3546
+ this.showPopup = !this.showPopup;
3547
+ if (this.showPopup) {
3548
+ this._mouseY = event.screenY;
3549
+ this._windowHeight = window.innerHeight;
3550
+ this.setPopupClass();
3732
3551
  }
3733
3552
  };
3734
- CoCircularGaugeComponent.prototype._setColor = function () {
3735
- if (this.value <= 0) {
3736
- this._color = GaugeColor.Lowest;
3737
- }
3738
- else if (this.value >= 1 && this.value < 25) {
3739
- this._color = GaugeColor.Low;
3740
- }
3741
- else if (this.value >= 25 && this.value < 50) {
3742
- this._color = GaugeColor.MediumLow;
3743
- }
3744
- else if (this.value >= 50 && this.value < 75) {
3745
- this._color = GaugeColor.MediumHigh;
3746
- }
3747
- else if (this.value >= 75 && this.value < 100) {
3748
- this._color = GaugeColor.High;
3553
+ StatusbarComponent.prototype.setPopupClass = function () {
3554
+ var popupHeight = this.statusbarData.length * 30;
3555
+ var dropdownInScreen = (this._mouseY + popupHeight) <= this._windowHeight;
3556
+ if (dropdownInScreen) {
3557
+ this.popupClass = 'dropdown';
3749
3558
  }
3750
- else if (this.value >= 100) {
3751
- this._color = GaugeColor.Highest;
3559
+ else {
3560
+ this.popupClass = 'dropup';
3752
3561
  }
3753
3562
  };
3754
- return CoCircularGaugeComponent;
3563
+ StatusbarComponent.prototype.adjustTooHighPercentages = function () {
3564
+ this._statusbarData.forEach(function (data) { return data.percentage > 100 ? data.percentage = 100 : false; });
3565
+ };
3566
+ return StatusbarComponent;
3755
3567
  }());
3756
- CoCircularGaugeComponent.decorators = [
3568
+ StatusbarComponent.decorators = [
3757
3569
  { type: i0.Component, args: [{
3758
- selector: "co-circular-gauge",
3759
- template: "\n <div class=\"circular-gauge-wrapper\">\n <ejs-circulargauge\n class=\"circular-gauge\"\n [width]=\"'100%'\"\n [axes]=\"getAxes()\">\n </ejs-circulargauge>\n </div>\n ",
3570
+ selector: "co-statusbar",
3571
+ template: "\n <div class=\"co-statusbar-wrapper\"\n *ngIf=\"statusbarData\"\n (click)=\"onStatusbarClick($event)\">\n <div class=\"statuses\">\n <div *ngFor=\"let data of statusbarData; let index = index\" class=\"status\">\n <co-linear-gauge [class.focused-status]=\"focusedStatusIndex !== undefined && focusedStatusIndex === index\"\n [value]=\"data.percentage\" [count]=\"data.count ? data.count : undefined\"></co-linear-gauge>\n </div>\n </div>\n <div class=status-description-popup *ngIf=\"showPopup\" @showHidePopup [ngClass]=\"popupClass\" clickOutside (clickOutside)=\"showPopup=false\">\n <div class=\"status-descriptions\">\n <div *ngFor=\"let data of statusbarData; let index = index\" class=\"status-description\">\n <co-circular-gauge [value]=\"data.percentage\"></co-circular-gauge>\n <span [textContent]=\"data.label\"></span>\n </div>\n </div>\n </div>\n </div>\n ",
3572
+ animations: [
3573
+ animations.trigger("showHidePopup", [
3574
+ animations.state("void", animations.style({ opacity: 0 })),
3575
+ animations.state("*", animations.style({ opacity: 1 })),
3576
+ animations.transition("void <=> *", animations.animate("250ms ease-in-out")),
3577
+ ])
3578
+ ],
3760
3579
  encapsulation: i0.ViewEncapsulation.None
3761
3580
  },] }
3762
3581
  ];
3763
- CoCircularGaugeComponent.propDecorators = {
3764
- circulargauge: [{ type: i0.ViewChild, args: ['circulargauge',] }],
3765
- value: [{ type: i0.Input }],
3766
- showClass: [{ type: i0.HostBinding, args: ["class.co-circular-gauge",] }]
3582
+ StatusbarComponent.ctorParameters = function () { return []; };
3583
+ StatusbarComponent.propDecorators = {
3584
+ statusbarData: [{ type: i0.Input }],
3585
+ focusedStatusIndex: [{ type: i0.Input }],
3586
+ statusbarClick: [{ type: i0.Output }],
3587
+ showClass: [{ type: i0.HostBinding, args: ["class.co-statusbar",] }]
3767
3588
  };
3768
3589
 
3769
- var CoCircularGaugeModule = /** @class */ (function () {
3770
- function CoCircularGaugeModule() {
3590
+ var StatusbarModule = /** @class */ (function () {
3591
+ function StatusbarModule() {
3771
3592
  }
3772
- return CoCircularGaugeModule;
3593
+ return StatusbarModule;
3773
3594
  }());
3774
- CoCircularGaugeModule.decorators = [
3595
+ StatusbarModule.decorators = [
3775
3596
  { type: i0.NgModule, args: [{
3776
3597
  imports: [
3777
3598
  common.CommonModule,
3778
- ej2AngularCirculargauge.CircularGaugeModule
3599
+ CoCircularGaugeModule,
3600
+ CoLinearGaugeModule,
3601
+ corecomponents_v12.ClickoutsideModule
3779
3602
  ],
3780
3603
  declarations: [
3781
- CoCircularGaugeComponent
3604
+ StatusbarComponent
3782
3605
  ],
3783
3606
  exports: [
3784
- CoCircularGaugeComponent
3607
+ StatusbarComponent
3785
3608
  ]
3786
3609
  },] }
3787
3610
  ];
3788
3611
 
3789
- var CoLinearGaugeComponent = /** @class */ (function () {
3790
- function CoLinearGaugeComponent() {
3791
- this.color = GaugeColor.Low;
3612
+ var StockStatusbarComponent = /** @class */ (function () {
3613
+ function StockStatusbarComponent() {
3614
+ }
3615
+ return StockStatusbarComponent;
3616
+ }());
3617
+ StockStatusbarComponent.decorators = [
3618
+ { type: i0.Component, args: [{
3619
+ selector: "co-stock-statusbar",
3620
+ template: "\n <div class=\"status-bar\">\n <div class=\"status-bar-block\" [ngClass]=\"{'red': value === 0, 'orange': value === 1, 'green': value === 2}\"></div>\n <div class=\"status-bar-block\" [ngClass]=\"{'orange': value === 1, 'green': value === 2}\"></div>\n <div class=\"status-bar-block\" [ngClass]=\"{'green': value === 2}\"></div>\n </div>\n ",
3621
+ encapsulation: i0.ViewEncapsulation.None
3622
+ },] }
3623
+ ];
3624
+ StockStatusbarComponent.ctorParameters = function () { return []; };
3625
+ StockStatusbarComponent.propDecorators = {
3626
+ value: [{ type: i0.Input }]
3627
+ };
3628
+
3629
+ var StockStatusbarModule = /** @class */ (function () {
3630
+ function StockStatusbarModule() {
3631
+ }
3632
+ return StockStatusbarModule;
3633
+ }());
3634
+ StockStatusbarModule.decorators = [
3635
+ { type: i0.NgModule, args: [{
3636
+ imports: [
3637
+ common.CommonModule,
3638
+ ],
3639
+ declarations: [
3640
+ StockStatusbarComponent
3641
+ ],
3642
+ exports: [
3643
+ StockStatusbarComponent
3644
+ ]
3645
+ },] }
3646
+ ];
3647
+
3648
+ var StockModule = /** @class */ (function () {
3649
+ function StockModule() {
3650
+ }
3651
+ return StockModule;
3652
+ }());
3653
+ StockModule.decorators = [
3654
+ { type: i0.NgModule, args: [{
3655
+ imports: [
3656
+ corecomponents_v12.InputComboBoxModule,
3657
+ corecomponents_v12.CoGridModule,
3658
+ corecomponents_v12.ButtonModule,
3659
+ common.CommonModule,
3660
+ corecomponents_v12.InputRadioButtonModule,
3661
+ corecomponents_v12.DropDownModule,
3662
+ corecomponents_v12.SimpleGridModule,
3663
+ corecomponents_v12.ImageModule,
3664
+ corecomponents_v12.InputTextModule,
3665
+ SendMethodDialogModule,
3666
+ corecomponents_v12.IconModule,
3667
+ corecomponents_v12.InputNumberPickerModule,
3668
+ corecomponents_v12.CoDialogWizardModule,
3669
+ corecomponents_v12.InputTextareaModule,
3670
+ TabBarModule,
3671
+ corecomponents_v12.CoDialogModule,
3672
+ StatusbarModule,
3673
+ StockStatusbarModule
3674
+ ],
3675
+ declarations: [
3676
+ StockComponent,
3677
+ StockInformationComponent,
3678
+ StockInformationGridComponent,
3679
+ StockTransferComponent,
3680
+ StockChangeAmountComponent,
3681
+ StockTabComponent,
3682
+ OrderTabComponent,
3683
+ StockTabsComponent,
3684
+ StockHistoryTabsComponent,
3685
+ OrderStockTabComponent,
3686
+ StockLocationComponent,
3687
+ StockHistoryComponent,
3688
+ OrderSupplyStockHistoryComponent,
3689
+ OrderCommissionStockHistoryComponent,
3690
+ OrderStockHistoryComponent,
3691
+ AllocationStockHistoryComponent
3692
+ ],
3693
+ exports: [
3694
+ StockComponent
3695
+ ],
3696
+ providers: [
3697
+ StockService
3698
+ ]
3699
+ },] }
3700
+ ];
3701
+
3702
+ var KeyboardCode;
3703
+ (function (KeyboardCode) {
3704
+ KeyboardCode["Backspace"] = "Backspace";
3705
+ KeyboardCode["Digit0"] = "Digit0";
3706
+ KeyboardCode["Digit1"] = "Digit1";
3707
+ KeyboardCode["Digit2"] = "Digit2";
3708
+ KeyboardCode["Digit3"] = "Digit3";
3709
+ KeyboardCode["Digit4"] = "Digit4";
3710
+ KeyboardCode["Digit5"] = "Digit5";
3711
+ KeyboardCode["Digit6"] = "Digit6";
3712
+ KeyboardCode["Digit7"] = "Digit7";
3713
+ KeyboardCode["Digit8"] = "Digit8";
3714
+ KeyboardCode["Digit9"] = "Digit9";
3715
+ KeyboardCode["Enter"] = "Enter";
3716
+ KeyboardCode["Escape"] = "Escape";
3717
+ KeyboardCode["Minus"] = "Minus";
3718
+ KeyboardCode["Numpad0"] = "Numpad0";
3719
+ KeyboardCode["Numpad1"] = "Numpad1";
3720
+ KeyboardCode["Numpad2"] = "Numpad2";
3721
+ KeyboardCode["Numpad3"] = "Numpad3";
3722
+ KeyboardCode["Numpad4"] = "Numpad4";
3723
+ KeyboardCode["Numpad5"] = "Numpad5";
3724
+ KeyboardCode["Numpad6"] = "Numpad6";
3725
+ KeyboardCode["Numpad7"] = "Numpad7";
3726
+ KeyboardCode["Numpad8"] = "Numpad8";
3727
+ KeyboardCode["Numpad9"] = "Numpad9";
3728
+ KeyboardCode["NumpadDecimal"] = "NumpadDecimal";
3729
+ KeyboardCode["NumpadEnter"] = "NumpadEnter";
3730
+ KeyboardCode["NumpadSubtract"] = "NumpadSubtract";
3731
+ KeyboardCode["Period"] = "Period";
3732
+ })(KeyboardCode || (KeyboardCode = {}));
3733
+
3734
+ var KeyPadComponent = /** @class */ (function () {
3735
+ function KeyPadComponent(iconCacheService) {
3736
+ this.iconCacheService = iconCacheService;
3737
+ this.icons = exports["ɵbk"];
3738
+ this.showValue = true;
3739
+ this.emitModelChangeOnEnter = true;
3740
+ this.modelChange = new i0.EventEmitter();
3741
+ this.internalModelChange = new i0.EventEmitter();
3742
+ this.enterClick = new i0.EventEmitter();
3743
+ this._validKeyMap = new Map([
3744
+ [KeyboardCode.Digit0, "0"],
3745
+ [KeyboardCode.Digit1, "1"],
3746
+ [KeyboardCode.Digit2, "2"],
3747
+ [KeyboardCode.Digit3, "3"],
3748
+ [KeyboardCode.Digit4, "4"],
3749
+ [KeyboardCode.Digit5, "5"],
3750
+ [KeyboardCode.Digit6, "6"],
3751
+ [KeyboardCode.Digit7, "7"],
3752
+ [KeyboardCode.Digit8, "8"],
3753
+ [KeyboardCode.Digit9, "9"],
3754
+ [KeyboardCode.Numpad0, "0"],
3755
+ [KeyboardCode.Numpad1, "1"],
3756
+ [KeyboardCode.Numpad2, "2"],
3757
+ [KeyboardCode.Numpad3, "3"],
3758
+ [KeyboardCode.Numpad4, "4"],
3759
+ [KeyboardCode.Numpad5, "5"],
3760
+ [KeyboardCode.Numpad6, "6"],
3761
+ [KeyboardCode.Numpad7, "7"],
3762
+ [KeyboardCode.Numpad8, "8"],
3763
+ [KeyboardCode.Numpad9, "9"],
3764
+ [KeyboardCode.NumpadDecimal, "."],
3765
+ [KeyboardCode.Period, "."]
3766
+ ]);
3767
+ this.isNegative = false;
3768
+ this._model = 0;
3769
+ this._internalModel = "0";
3770
+ this._maxCharacters = 11;
3792
3771
  }
3793
- Object.defineProperty(CoLinearGaugeComponent.prototype, "value", {
3772
+ Object.defineProperty(KeyPadComponent.prototype, "model", {
3794
3773
  get: function () {
3795
- return this._value;
3774
+ return this._model;
3796
3775
  },
3797
3776
  set: function (value) {
3798
- this._value = value;
3799
- this._setColor();
3777
+ this._model = value;
3778
+ this._internalModel = this._model + "";
3800
3779
  },
3801
3780
  enumerable: false,
3802
3781
  configurable: true
3803
3782
  });
3804
- CoLinearGaugeComponent.prototype.showClass = function () {
3783
+ KeyPadComponent.prototype.showClass = function () {
3805
3784
  return true;
3806
3785
  };
3807
- CoLinearGaugeComponent.prototype.getStyle = function () {
3808
- return "linear-gradient(90deg, " + this.color + " 0 " + this.value + "%, white " + this.value + "% 100%";
3786
+ KeyPadComponent.prototype.handleKeyDown = function (event) {
3787
+ this._keyDown(event);
3809
3788
  };
3810
- CoLinearGaugeComponent.prototype._setColor = function () {
3811
- if (this.value <= 0) {
3812
- this.color = GaugeColor.Lowest;
3789
+ Object.defineProperty(KeyPadComponent.prototype, "internalModel", {
3790
+ get: function () {
3791
+ return this._internalModel;
3792
+ },
3793
+ set: function (value) {
3794
+ this._internalModel = value;
3795
+ this.isNegative = parseFloat(this._internalModel) < 0;
3796
+ this.internalModelChange.emit(this._internalModel);
3797
+ },
3798
+ enumerable: false,
3799
+ configurable: true
3800
+ });
3801
+ KeyPadComponent.prototype.handleMinusClick = function (event) {
3802
+ var model = parseFloat(this.internalModel);
3803
+ if (model !== 0) {
3804
+ if (model < 0) {
3805
+ this.internalModel = Math.abs(model) + "";
3806
+ }
3807
+ else {
3808
+ this.internalModel = -model + "";
3809
+ }
3813
3810
  }
3814
- else if (this.value >= 1 && this.value < 25) {
3815
- this.color = GaugeColor.Low;
3811
+ this._emitModelChange();
3812
+ };
3813
+ KeyPadComponent.prototype.handleClearClick = function (event) {
3814
+ this.internalModel = "0";
3815
+ this._emitModelChange();
3816
+ };
3817
+ KeyPadComponent.prototype.handleBsClick = function (event) {
3818
+ var wish = this.internalModel;
3819
+ wish = wish.slice(0, wish.length - 1) || "0";
3820
+ if (!isNaN(parseFloat(wish))) {
3821
+ this.internalModel = parseFloat(wish) + "";
3816
3822
  }
3817
- else if (this.value >= 25 && this.value < 50) {
3818
- this.color = GaugeColor.MediumLow;
3823
+ this._emitModelChange();
3824
+ };
3825
+ KeyPadComponent.prototype.handleButtonClick = function (chr) {
3826
+ this._updateModel(chr);
3827
+ };
3828
+ KeyPadComponent.prototype.handleEnterClick = function (event) {
3829
+ this._emitModelChange(true);
3830
+ this.enterClick.emit();
3831
+ };
3832
+ KeyPadComponent.prototype._updateModel = function (value) {
3833
+ if (value === undefined || value === null ||
3834
+ (value === '.' && this.internalModel.indexOf('.') > -1) ||
3835
+ this.internalModel.length >= this._maxCharacters) {
3836
+ return;
3819
3837
  }
3820
- else if (this.value >= 50 && this.value < 75) {
3821
- this.color = GaugeColor.MediumHigh;
3838
+ this.internalModel = this.internalModel !== "0" ? this.internalModel + value : value;
3839
+ this._emitModelChange();
3840
+ };
3841
+ KeyPadComponent.prototype._keyDown = function (event) {
3842
+ if (this._isEnter(event)) {
3843
+ this.handleEnterClick(event);
3822
3844
  }
3823
- else if (this.value >= 75 && this.value < 100) {
3824
- this.color = GaugeColor.High;
3845
+ else if (this._isMinus(event)) {
3846
+ this.handleMinusClick(event);
3825
3847
  }
3826
- else if (this.value >= 100) {
3827
- this.color = GaugeColor.Highest;
3848
+ else if (this._isEscape(event)) {
3849
+ this.handleClearClick(event);
3850
+ }
3851
+ else if (this._isBackspace(event)) {
3852
+ this.handleBsClick(event);
3853
+ }
3854
+ else {
3855
+ this._updateModel(this._validKeyMap.get(event.code));
3828
3856
  }
3829
3857
  };
3830
- return CoLinearGaugeComponent;
3858
+ KeyPadComponent.prototype._isEnter = function (event) {
3859
+ return event.code === KeyboardCode.Enter || event.code === KeyboardCode.NumpadEnter;
3860
+ };
3861
+ KeyPadComponent.prototype._isMinus = function (event) {
3862
+ return event.code === KeyboardCode.Minus || event.code === KeyboardCode.NumpadSubtract;
3863
+ };
3864
+ KeyPadComponent.prototype._isEscape = function (event) {
3865
+ return event.code === KeyboardCode.Escape;
3866
+ };
3867
+ KeyPadComponent.prototype._isBackspace = function (event) {
3868
+ return event.code === KeyboardCode.Backspace;
3869
+ };
3870
+ KeyPadComponent.prototype._emitModelChange = function (enter) {
3871
+ if (enter === void 0) { enter = false; }
3872
+ if ((enter && this.emitModelChangeOnEnter) || (!enter && !this.emitModelChangeOnEnter)) {
3873
+ var model = parseFloat(this.internalModel);
3874
+ if (!isNaN(model)) {
3875
+ if (enter && this.emitModelChangeOnEnter) {
3876
+ this.model = model;
3877
+ }
3878
+ this.modelChange.emit(model);
3879
+ }
3880
+ }
3881
+ };
3882
+ return KeyPadComponent;
3831
3883
  }());
3832
- CoLinearGaugeComponent.decorators = [
3884
+ KeyPadComponent.decorators = [
3833
3885
  { type: i0.Component, args: [{
3834
- selector: "co-linear-gauge",
3835
- template: "\n <div class=\"linear-gauge\"\n [style.background]=\"getStyle()\"\n [style.border-color]=\"color\"\n [textContent]=\"count ? count : ''\"\n ></div>\n ",
3886
+ selector: 'co-key-pad',
3887
+ template: "\n <div class=\"key-pad-wrapper\">\n <div class=\"key-pad-model-wrapper\" *ngIf=\"showValue\">\n <div class=\"key-pad-model\" [textContent]=\"internalModel\" [class.negative]=\"isNegative\"></div>\n </div>\n <div class=\"key-pad-button-wrapper\">\n <div class=\"key-pad-button button-7\" [textContent]=\"'7'\" (click)=\"handleButtonClick('7')\"></div>\n <div class=\"key-pad-button button-8\" [textContent]=\"'8'\" (click)=\"handleButtonClick('8')\"></div>\n <div class=\"key-pad-button button-9\" [textContent]=\"'9'\" (click)=\"handleButtonClick('9')\"></div>\n <div class=\"key-pad-button button-bs\" (click)=\"handleBsClick($event)\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.DeleteLeftRegular)\"></co-icon>\n </div>\n <div class=\"key-pad-button button-4\" [textContent]=\"'4'\" (click)=\"handleButtonClick('4')\"></div>\n <div class=\"key-pad-button button-5\" [textContent]=\"'5'\" (click)=\"handleButtonClick('5')\"></div>\n <div class=\"key-pad-button button-6\" [textContent]=\"'6'\" (click)=\"handleButtonClick('6')\"></div>\n <div class=\"key-pad-button button-minus\" [textContent]=\"'-'\" (click)=\"handleMinusClick($event)\"></div>\n <div class=\"key-pad-button button-1\" [textContent]=\"'1'\" (click)=\"handleButtonClick('1')\"></div>\n <div class=\"key-pad-button button-2\" [textContent]=\"'2'\" (click)=\"handleButtonClick('2')\"></div>\n <div class=\"key-pad-button button-3\" [textContent]=\"'3'\" (click)=\"handleButtonClick('3')\"></div>\n <div class=\"key-pad-button button-enter\" (click)=\"handleEnterClick($event)\">\n <span [textContent]=\"'enter'\"></span>\n </div>\n <div class=\"key-pad-button button-0\" [textContent]=\"'0'\" (click)=\"handleButtonClick('0')\"></div>\n <div class=\"key-pad-button button-dot\" [textContent]=\"'.'\" (click)=\"handleButtonClick('.')\"></div>\n </div>\n </div>\n ",
3836
3888
  encapsulation: i0.ViewEncapsulation.None
3837
3889
  },] }
3838
3890
  ];
3839
- CoLinearGaugeComponent.propDecorators = {
3840
- value: [{ type: i0.Input }],
3841
- count: [{ type: i0.Input }],
3842
- showClass: [{ type: i0.HostBinding, args: ["class.co-linear-gauge",] }]
3891
+ KeyPadComponent.ctorParameters = function () { return [
3892
+ { type: IconCacheService }
3893
+ ]; };
3894
+ KeyPadComponent.propDecorators = {
3895
+ model: [{ type: i0.Input }],
3896
+ showValue: [{ type: i0.Input }],
3897
+ emitModelChangeOnEnter: [{ type: i0.Input }],
3898
+ modelChange: [{ type: i0.Output }],
3899
+ internalModelChange: [{ type: i0.Output }],
3900
+ enterClick: [{ type: i0.Output }],
3901
+ showClass: [{ type: i0.HostBinding, args: ['class.co-key-pad',] }],
3902
+ handleKeyDown: [{ type: i0.HostListener, args: ['window:keydown', ['$event'],] }]
3843
3903
  };
3844
3904
 
3845
- var CoLinearGaugeModule = /** @class */ (function () {
3846
- function CoLinearGaugeModule() {
3905
+ var KeyPadModule = /** @class */ (function () {
3906
+ function KeyPadModule() {
3847
3907
  }
3848
- return CoLinearGaugeModule;
3908
+ return KeyPadModule;
3849
3909
  }());
3850
- CoLinearGaugeModule.decorators = [
3910
+ KeyPadModule.decorators = [
3851
3911
  { type: i0.NgModule, args: [{
3852
3912
  imports: [
3853
3913
  common.CommonModule,
3914
+ corecomponents_v12.IconModule
3854
3915
  ],
3855
3916
  declarations: [
3856
- CoLinearGaugeComponent
3917
+ KeyPadComponent
3857
3918
  ],
3858
3919
  exports: [
3859
- CoLinearGaugeComponent
3920
+ KeyPadComponent
3860
3921
  ]
3861
3922
  },] }
3862
3923
  ];
3863
3924
 
3864
- var StatusbarComponent = /** @class */ (function () {
3865
- function StatusbarComponent() {
3866
- this.statusbarClick = new i0.EventEmitter();
3867
- this.showPopup = false;
3868
- this.popupClass = 'dropdown';
3925
+ var LayoutSwitcherComponent = /** @class */ (function () {
3926
+ function LayoutSwitcherComponent(iconCacheService) {
3927
+ this.iconCacheService = iconCacheService;
3928
+ this.icon = exports["ɵbk"];
3929
+ this.layoutItems = [];
3930
+ this.layoutSwitchEmit = new i0.EventEmitter();
3931
+ this.showMaskSidebar = false;
3932
+ this._activeIndex = 0;
3869
3933
  }
3870
- Object.defineProperty(StatusbarComponent.prototype, "statusbarData", {
3934
+ LayoutSwitcherComponent.prototype.showClass = function () {
3935
+ return true;
3936
+ };
3937
+ Object.defineProperty(LayoutSwitcherComponent.prototype, "activeIndex", {
3871
3938
  get: function () {
3872
- return this._statusbarData;
3939
+ return this._activeIndex;
3873
3940
  },
3874
- set: function (value) {
3875
- this._statusbarData = value;
3876
- this.adjustTooHighPercentages();
3941
+ set: function (index) {
3942
+ this._activeIndex = index;
3943
+ this.toggleMaskSidebar();
3944
+ this.layoutSwitchEmit.emit(this.layoutItems[index]);
3877
3945
  },
3878
3946
  enumerable: false,
3879
3947
  configurable: true
3880
3948
  });
3881
- StatusbarComponent.prototype.showClass = function () {
3882
- return true;
3883
- };
3884
- StatusbarComponent.prototype.onStatusbarClick = function (event) {
3885
- this.showPopup = !this.showPopup;
3886
- if (this.showPopup) {
3887
- this._mouseY = event.screenY;
3888
- this._windowHeight = window.innerHeight;
3889
- this.setPopupClass();
3890
- }
3891
- };
3892
- StatusbarComponent.prototype.setPopupClass = function () {
3893
- var popupHeight = this.statusbarData.length * 30;
3894
- var dropdownInScreen = (this._mouseY + popupHeight) <= this._windowHeight;
3895
- if (dropdownInScreen) {
3896
- this.popupClass = 'dropdown';
3897
- }
3898
- else {
3899
- this.popupClass = 'dropup';
3900
- }
3901
- };
3902
- StatusbarComponent.prototype.adjustTooHighPercentages = function () {
3903
- this._statusbarData.forEach(function (data) { return data.percentage > 100 ? data.percentage = 100 : false; });
3949
+ LayoutSwitcherComponent.prototype.toggleMaskSidebar = function () {
3950
+ this.showMaskSidebar = !this.showMaskSidebar;
3904
3951
  };
3905
- return StatusbarComponent;
3952
+ return LayoutSwitcherComponent;
3906
3953
  }());
3907
- StatusbarComponent.decorators = [
3954
+ LayoutSwitcherComponent.decorators = [
3908
3955
  { type: i0.Component, args: [{
3909
- selector: "co-statusbar",
3910
- template: "\n <div class=\"co-statusbar-wrapper\"\n *ngIf=\"statusbarData\"\n (click)=\"onStatusbarClick($event)\">\n <div class=\"statuses\">\n <div *ngFor=\"let data of statusbarData; let index = index\" class=\"status\">\n <co-linear-gauge [class.focused-status]=\"focusedStatusIndex !== undefined && focusedStatusIndex === index\"\n [value]=\"data.percentage\" [count]=\"data.count ? data.count : undefined\"></co-linear-gauge>\n </div>\n </div>\n <div class=status-description-popup *ngIf=\"showPopup\" @showHidePopup [ngClass]=\"popupClass\" clickOutside (clickOutside)=\"showPopup=false\">\n <div class=\"status-descriptions\">\n <div *ngFor=\"let data of statusbarData; let index = index\" class=\"status-description\">\n <co-circular-gauge [value]=\"data.percentage\"></co-circular-gauge>\n <span [textContent]=\"data.label\"></span>\n </div>\n </div>\n </div>\n </div>\n ",
3956
+ selector: "co-layout-switcher",
3957
+ template: "\n <div class=\"mask-wrapper\" [class.mask-wrapper-active]='showMaskSidebar' @showHideSidebar>\n <div class=\"icon-wrapper\" (click)=\"toggleMaskSidebar()\">\n <co-icon class=\"icon-mask\" [iconData]=\"iconCacheService.getIcon(icon.BringForwardRegular)\" [@positionIcon]=\"showMaskSidebar\"></co-icon>\n\n <co-icon class='icon-mask-sidebar-handle' [@positionHandle]='showMaskSidebar' [iconData]=\"showMaskSidebar ? iconCacheService.getIcon(this.icon.AngleLeftSolid) : iconCacheService.getIcon(this.icon.AngleRightSolid)\"></co-icon>\n </div>\n\n <div class=\"mask-content\" *ngIf=\"showMaskSidebar\" @showHideSidebar>\n <span *ngFor='let item of this.layoutItems' [class.active]=\"this.activeIndex === this.layoutItems.indexOf(item)\" [textContent]=\"item\" (click)='activeIndex = this.layoutItems.indexOf(item)' ></span>\n </div>\n </div>\n\n ",
3911
3958
  animations: [
3912
- animations.trigger("showHidePopup", [
3913
- animations.state("void", animations.style({ opacity: 0 })),
3914
- animations.state("*", animations.style({ opacity: 1 })),
3915
- animations.transition("void <=> *", animations.animate("250ms ease-in-out")),
3959
+ animations.trigger("showHideSidebar", [
3960
+ animations.state("void", animations.style({ "width": "0" })),
3961
+ animations.state("*", animations.style({ "width": "*" })),
3962
+ animations.transition("void <=> *", animations.animate(200))
3963
+ ]),
3964
+ animations.trigger("positionIcon", [
3965
+ animations.state("true", animations.style({ "left": "70px" })),
3966
+ animations.state("false", animations.style({ "left": "10px" })),
3967
+ animations.transition("true <=> false", animations.animate(200))
3968
+ ]),
3969
+ animations.trigger("positionHandle", [
3970
+ animations.state("true", animations.style({ "left": "15px" })),
3971
+ animations.state("false", animations.style({ "left": "75px" })),
3972
+ animations.transition("true <=> false", animations.animate(200))
3916
3973
  ])
3917
3974
  ],
3918
3975
  encapsulation: i0.ViewEncapsulation.None
3919
3976
  },] }
3920
3977
  ];
3921
- StatusbarComponent.ctorParameters = function () { return []; };
3922
- StatusbarComponent.propDecorators = {
3923
- statusbarData: [{ type: i0.Input }],
3924
- focusedStatusIndex: [{ type: i0.Input }],
3925
- statusbarClick: [{ type: i0.Output }],
3926
- showClass: [{ type: i0.HostBinding, args: ["class.co-statusbar",] }]
3978
+ LayoutSwitcherComponent.ctorParameters = function () { return [
3979
+ { type: IconCacheService }
3980
+ ]; };
3981
+ LayoutSwitcherComponent.propDecorators = {
3982
+ showClass: [{ type: i0.HostBinding, args: ['class.co-layout-switcher',] }],
3983
+ layoutItems: [{ type: i0.Input }],
3984
+ layoutSwitchEmit: [{ type: i0.Output }]
3927
3985
  };
3928
3986
 
3929
- var StatusbarModule = /** @class */ (function () {
3930
- function StatusbarModule() {
3987
+ var LayoutSwitcherModule = /** @class */ (function () {
3988
+ function LayoutSwitcherModule() {
3931
3989
  }
3932
- return StatusbarModule;
3990
+ return LayoutSwitcherModule;
3933
3991
  }());
3934
- StatusbarModule.decorators = [
3992
+ LayoutSwitcherModule.decorators = [
3935
3993
  { type: i0.NgModule, args: [{
3936
3994
  imports: [
3937
3995
  common.CommonModule,
3938
- CoCircularGaugeModule,
3939
- CoLinearGaugeModule,
3940
- corecomponents_v12.ClickoutsideModule
3996
+ corecomponents_v12.IconModule
3941
3997
  ],
3942
3998
  declarations: [
3943
- StatusbarComponent
3999
+ LayoutSwitcherComponent,
3944
4000
  ],
3945
4001
  exports: [
3946
- StatusbarComponent
4002
+ LayoutSwitcherComponent
3947
4003
  ]
3948
4004
  },] }
3949
4005
  ];
@@ -4134,7 +4190,7 @@
4134
4190
  this.iconCacheService = iconCacheService;
4135
4191
  this.selectedDate = new Date();
4136
4192
  this.selectedDateChange = new i0.EventEmitter();
4137
- this.icons = exports["ɵbi"];
4193
+ this.icons = exports["ɵbk"];
4138
4194
  this.showMonthYearSelect = false;
4139
4195
  this.expanded = false;
4140
4196
  }
@@ -4695,7 +4751,7 @@
4695
4751
  },] }
4696
4752
  ];
4697
4753
  CalendarViewComponent.ctorParameters = function () { return [
4698
- { type: exports["ɵbo"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
4754
+ { type: exports["ɵbq"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
4699
4755
  ]; };
4700
4756
  CalendarViewComponent.propDecorators = {
4701
4757
  view: [{ type: i0.Input }],
@@ -4783,7 +4839,7 @@
4783
4839
  CalendarUtils.Locale = undefined;
4784
4840
  CalendarUtils.Now = new Date();
4785
4841
  CalendarUtils.ctorParameters = function () { return [
4786
- { type: exports["ɵbo"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
4842
+ { type: exports["ɵbq"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
4787
4843
  ]; };
4788
4844
 
4789
4845
  var AgendaEvent = /** @class */ (function () {
@@ -4840,7 +4896,7 @@
4840
4896
  this._renderer = _renderer;
4841
4897
  this._ngZone = _ngZone;
4842
4898
  this.iconCacheService = iconCacheService;
4843
- this.icons = exports["ɵbi"];
4899
+ this.icons = exports["ɵbk"];
4844
4900
  this.viewTypes = CalendarView;
4845
4901
  this.scrollbarWidth = 15;
4846
4902
  this.view = CalendarView.WeekSelectView;
@@ -5016,7 +5072,7 @@
5016
5072
  },] }
5017
5073
  ];
5018
5074
  AgendaHeaderComponent.ctorParameters = function () { return [
5019
- { type: exports["ɵbo"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
5075
+ { type: exports["ɵbq"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
5020
5076
  { type: i0.ElementRef },
5021
5077
  { type: i0.Renderer2 },
5022
5078
  { type: i0.NgZone },
@@ -5116,7 +5172,7 @@
5116
5172
  { type: i0.Directive }
5117
5173
  ];
5118
5174
  AgendaBaseViewComponent.ctorParameters = function () { return [
5119
- { type: exports["ɵbo"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
5175
+ { type: exports["ɵbq"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
5120
5176
  { type: IconCacheService }
5121
5177
  ]; };
5122
5178
  AgendaBaseViewComponent.propDecorators = {
@@ -5232,7 +5288,7 @@
5232
5288
  var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
5233
5289
  _this.view = CalendarView.WeekSelectView;
5234
5290
  _this.week = NULL_WEEK;
5235
- _this.icons = exports["ɵbi"];
5291
+ _this.icons = exports["ɵbk"];
5236
5292
  return _this;
5237
5293
  }
5238
5294
  AgendaWeekSelectViewComponent.prototype.prepareViewData = function () {
@@ -5477,7 +5533,7 @@
5477
5533
  this._elementRef = _elementRef;
5478
5534
  this._renderer = _renderer;
5479
5535
  this.iconCacheService = iconCacheService;
5480
- this.icons = exports["ɵbi"];
5536
+ this.icons = exports["ɵbk"];
5481
5537
  this.event = NULL_AGENDA_EVENT;
5482
5538
  this.eventChecked = new i0.EventEmitter();
5483
5539
  }
@@ -5646,7 +5702,7 @@
5646
5702
  var AgendaSelectEventComponent = /** @class */ (function () {
5647
5703
  function AgendaSelectEventComponent(iconCacheService) {
5648
5704
  this.iconCacheService = iconCacheService;
5649
- this.icons = exports["ɵbi"];
5705
+ this.icons = exports["ɵbk"];
5650
5706
  this.event = NULL_AGENDA_EVENT;
5651
5707
  this.eventChecked = new i0.EventEmitter();
5652
5708
  }
@@ -5742,38 +5798,40 @@
5742
5798
  exports.sendMethodsWithIcon = sendMethodsWithIcon;
5743
5799
  exports["ɵa"] = SignatureComponent;
5744
5800
  exports["ɵb"] = SignaturesComponent;
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;
5801
+ exports["ɵba"] = StockTabsComponent;
5802
+ exports["ɵbb"] = StockHistoryTabsComponent;
5803
+ exports["ɵbc"] = OrderStockTabComponent;
5804
+ exports["ɵbd"] = StockLocationComponent;
5805
+ exports["ɵbe"] = StockHistoryComponent;
5806
+ exports["ɵbf"] = OrderSupplyStockHistoryComponent;
5807
+ exports["ɵbg"] = OrderCommissionStockHistoryComponent;
5808
+ exports["ɵbh"] = OrderStockHistoryComponent;
5809
+ exports["ɵbi"] = AllocationStockHistoryComponent;
5810
+ exports["ɵbj"] = SendMethod;
5811
+ exports["ɵbl"] = CalendarAllYearsComponent;
5812
+ exports["ɵbm"] = CalendarAllMonthsComponent;
5813
+ exports["ɵbn"] = CalendarHeaderComponent;
5814
+ exports["ɵbo"] = CalendarComponent;
5815
+ exports["ɵbp"] = CalendarViewComponent;
5816
+ exports["ɵbr"] = AgendaHeaderComponent;
5817
+ exports["ɵbs"] = AgendaViewComponent;
5818
+ exports["ɵbt"] = AgendaMonthViewComponent;
5819
+ exports["ɵbu"] = AgendaBaseViewComponent;
5820
+ exports["ɵbv"] = AgendaDayViewComponent;
5821
+ exports["ɵbw"] = AgendaWeekViewComponent;
5822
+ exports["ɵbx"] = AgendaWeekSelectViewComponent;
5823
+ exports["ɵby"] = AgendaHourViewComponent;
5824
+ exports["ɵbz"] = AgendaHourCellComponent;
5769
5825
  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;
5826
+ exports["ɵca"] = AgendaHourViewLabelsComponent;
5827
+ exports["ɵcb"] = AgendaHalfHourCellComponent;
5828
+ exports["ɵcc"] = AgendaEventsComponent;
5829
+ exports["ɵcd"] = AgendaEventComponent;
5830
+ exports["ɵce"] = ViewSelectComponent;
5831
+ exports["ɵcf"] = AgendaSelectEventComponent;
5832
+ exports["ɵcg"] = MASTER_PIPES;
5833
+ exports["ɵch"] = ArrayNumberPipe;
5834
+ exports["ɵci"] = UCfirstPipe;
5777
5835
  exports["ɵd"] = SharedConnectorService;
5778
5836
  exports["ɵe"] = OptionsService;
5779
5837
  exports["ɵf"] = DictionaryService;
@@ -5789,14 +5847,14 @@
5789
5847
  exports["ɵp"] = SendMethodPrinterComponent;
5790
5848
  exports["ɵq"] = TabBarModule;
5791
5849
  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;
5850
+ exports["ɵs"] = StockStatusbarModule;
5851
+ exports["ɵt"] = StockStatusbarComponent;
5852
+ exports["ɵu"] = StockInformationComponent;
5853
+ exports["ɵv"] = StockInformationGridComponent;
5854
+ exports["ɵw"] = StockTransferComponent;
5855
+ exports["ɵx"] = StockChangeAmountComponent;
5856
+ exports["ɵy"] = StockTabComponent;
5857
+ exports["ɵz"] = OrderTabComponent;
5800
5858
 
5801
5859
  Object.defineProperty(exports, '__esModule', { value: true });
5802
5860