@colijnit/sharedcomponents 259.1.13 → 259.1.14

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.
@@ -5307,7 +5307,7 @@
5307
5307
  StockTabComponent.decorators = [
5308
5308
  { type: i0.Component, args: [{
5309
5309
  selector: "co-stock-tab",
5310
- template: "\n <co-simple-grid [data]=\"articleStockInformation\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n >\n <co-simple-grid-column [width]=\"100\" [headerText]=\"'WAREHOUSE' | sharedLocalize\" [field]=\"'warehouseNo'\" [order]=\"10\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DESCRIPTION' | sharedLocalize\" [field]=\"'warehouseName'\" [order]=\"11\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK' | sharedLocalize\" [field]=\"'technicalStock'\" [order]=\"12\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK' | sharedLocalize\" [field]=\"'availableStock'\" [order]=\"13\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ECONOMICAL_STOCK' | sharedLocalize\" [field]=\"'economicalStock'\" [order]=\"14\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PERCEPTIBLE_STORAGE' | sharedLocalize\" [field]=\"'perceptibleStorage'\" [order]=\"15\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DETAILS' | sharedLocalize\" [field]=\"'locationNo'\" [order]=\"16\">\n <ng-template #template let-row=\"row\">\n <span class=\"location-link\" [textContent]=\"'OPEN_STOCK_DETAILS' | sharedLocalize\" (click)=\"onLocationClick(row)\"></span>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n ",
5310
+ template: "\n <co-simple-grid [data]=\"articleStockInformation\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n >\n <co-simple-grid-column [width]=\"100\" [headerText]=\"'WAREHOUSE' | sharedLocalize\" [field]=\"'warehouseNo'\" [order]=\"10\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DESCRIPTION' | sharedLocalize\" [field]=\"'warehouseName'\" [order]=\"11\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK' | sharedLocalize\" [field]=\"'technicalStock'\" [order]=\"12\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK' | sharedLocalize\" [field]=\"'availableStock'\" [order]=\"13\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ECONOMICAL_STOCK' | sharedLocalize\" [field]=\"'economicalStock'\" [order]=\"14\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PERCEPTIBLE_STORAGE' | sharedLocalize\" [field]=\"'perceptibleStorage'\" [order]=\"15\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DETAILS' | sharedLocalize\" [field]=\"'locationNo'\" [order]=\"16\">\n <ng-template #template let-row=\"row\">\n <co-button class=\"location-link\" [screenConfigurationObject]=\"sharedCfgName.InventoryDetails\" [label]=\"'OPEN_STOCK_DETAILS' | sharedLocalize\" (click)=\"onLocationClick(row)\"></co-button>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n ",
5311
5311
  encapsulation: i0.ViewEncapsulation.None
5312
5312
  },] }
5313
5313
  ];
@@ -5430,10 +5430,11 @@
5430
5430
  };
5431
5431
 
5432
5432
  var StockTabsComponent = /** @class */ (function () {
5433
- function StockTabsComponent(_stockService, _dictionaryService, _changeDetector) {
5433
+ function StockTabsComponent(_stockService, _dictionaryService, _changeDetector, _stockScreenConfigService) {
5434
5434
  this._stockService = _stockService;
5435
5435
  this._dictionaryService = _dictionaryService;
5436
5436
  this._changeDetector = _changeDetector;
5437
+ this._stockScreenConfigService = _stockScreenConfigService;
5437
5438
  this.icons = exports["ɵcf"];
5438
5439
  this.stockInformation = [];
5439
5440
  this.warehouses = [];
@@ -5445,6 +5446,7 @@
5445
5446
  this.historyTabs = [];
5446
5447
  }
5447
5448
  StockTabsComponent.prototype.ngOnInit = function () {
5449
+ var _this = this;
5448
5450
  this.tabs = [
5449
5451
  { title: this._dictionaryService.get('OVERVIEW'), active: true, cfg: SharedCfgName.Overview },
5450
5452
  { title: this._dictionaryService.get('STOCK_FORECAST'), active: false, cfg: SharedCfgName.InventoryForecast },
@@ -5453,6 +5455,10 @@
5453
5455
  { title: this._dictionaryService.get('IN_ORDER'), active: false, cfg: SharedCfgName.InOrder },
5454
5456
  { title: this._dictionaryService.get('HISTORY'), active: false, cfg: SharedCfgName.History },
5455
5457
  ];
5458
+ if (this._stockScreenConfigService.immediatelyHidden(this.tabs[0].cfg)) {
5459
+ this.tabs[0].active = false;
5460
+ this.tabs.find(function (tab) { return _this._stockScreenConfigService.immediatelyVisible(tab.cfg); }).active = true;
5461
+ }
5456
5462
  this.historyTabs = [
5457
5463
  { title: this._dictionaryService.get('STOCK'), active: true, cfg: SharedCfgName.HistoryStock },
5458
5464
  {
@@ -5472,6 +5478,10 @@
5472
5478
  cfg: SharedCfgName.HistoryAssign
5473
5479
  },
5474
5480
  ];
5481
+ if (this._stockScreenConfigService.immediatelyHidden(this.historyTabs[0].cfg)) {
5482
+ this.historyTabs[0].active = false;
5483
+ this.historyTabs.find(function (tab) { return _this._stockScreenConfigService.immediatelyVisible(tab.cfg); }).active = true;
5484
+ }
5475
5485
  };
5476
5486
  StockTabsComponent.prototype.onShowStockTransferChange = function (show) {
5477
5487
  this.showStockTransfer = show;
@@ -5507,7 +5517,8 @@
5507
5517
  StockTabsComponent.ctorParameters = function () { return [
5508
5518
  { type: StockService },
5509
5519
  { type: SharedComponentsDictionaryService },
5510
- { type: i0.ChangeDetectorRef }
5520
+ { type: i0.ChangeDetectorRef },
5521
+ { type: StockModuleScreenConfigService }
5511
5522
  ]; };
5512
5523
  StockTabsComponent.propDecorators = {
5513
5524
  stockInformation: [{ type: i0.Input }],