@colijnit/sharedcomponents 1.0.12 → 1.0.13

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.
@@ -1415,12 +1415,10 @@
1415
1415
  IoneConnectorAdapterService.prototype.connect = function (options) {
1416
1416
  return __awaiter(this, void 0, void 0, function () {
1417
1417
  return __generator(this, function (_a) {
1418
- if (this.options === undefined) {
1419
- this.options = options;
1420
- this.connector = new articles.Articles(options);
1421
- this.sharedConnector = new sharedapi.Sharedapi(options);
1422
- this.options.session = this.connector.session && this.sharedConnector.session;
1423
- }
1418
+ this.options = options;
1419
+ this.connector = new articles.Articles(options);
1420
+ this.sharedConnector = new sharedapi.Sharedapi(options);
1421
+ this.options.session = this.connector.session && this.sharedConnector.session;
1424
1422
  return [2 /*return*/];
1425
1423
  });
1426
1424
  });
@@ -1668,14 +1666,23 @@
1668
1666
  enumerable: false,
1669
1667
  configurable: true
1670
1668
  });
1669
+ Object.defineProperty(StockComponent.prototype, "article", {
1670
+ set: function (article) {
1671
+ this.articleExtended = article;
1672
+ this.getStockInformation(article);
1673
+ },
1674
+ enumerable: false,
1675
+ configurable: true
1676
+ });
1677
+ ;
1671
1678
  StockComponent.prototype.showClass = function () {
1672
1679
  return true;
1673
1680
  };
1674
- StockComponent.prototype.ngAfterViewInit = function () {
1675
- if (this.article) {
1676
- this.getStockInformation(this.article);
1677
- }
1678
- };
1681
+ // ngAfterViewInit() {
1682
+ // if(this.article) {
1683
+ // this.getStockInformation(this.article as any);
1684
+ // }
1685
+ // }
1679
1686
  StockComponent.prototype.backToStockLinesClicked = function () {
1680
1687
  this.showStockLocation = false;
1681
1688
  this.showStockInformationGrid = true;
@@ -1734,7 +1741,7 @@
1734
1741
  StockComponent.decorators = [
1735
1742
  { type: i0.Component, args: [{
1736
1743
  selector: "co-stock",
1737
- template: "\n <div class=\"stock-info-container\">\n <co-stock-information [article]=\"article\"\n [articleStock]=\"\">\n\n </co-stock-information>\n <hr>\n <co-stock-information-grid *ngIf=\"showStockInformationGrid\"\n [stockLocationData]=\"stockLocationInformation\"\n (locationLineClicked)=\"getStockLocationInformation($event)\"\n [articleStockInformation]=\"stockInformation\"\n (transferIconClicked)=\"handleStockTransferClick($event)\">\n </co-stock-information-grid>\n <co-stock-location *ngIf=\"showStockLocation\"\n (backToStockLines)=\"backToStockLinesClicked()\">\n\n </co-stock-location>\n <co-stock-transfer *ngIf=\"showStockTransfer\"\n (handleCancelClicked)=\"backToStock()\"\n [article]=\"stockTransferArticle\"\n [stockSticker]=\"stockService.stockStickers\"\n (handleStickerClicked)=\"handleStickerClicked.emit($event)\"\n [articleWarehouse]=\"articleWarehouse\"\n [allWarehouses]=\"allWarehouses\"\n >\n </co-stock-transfer>\n <co-button (click)=\"buttonClick()\"></co-button>\n </div>\n ",
1744
+ template: "\n <div class=\"stock-info-container\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStock]=\"\">\n\n </co-stock-information>\n <hr>\n <co-stock-information-grid *ngIf=\"showStockInformationGrid\"\n [stockLocationData]=\"stockLocationInformation\"\n (locationLineClicked)=\"getStockLocationInformation($event)\"\n [articleStockInformation]=\"stockInformation\"\n (transferIconClicked)=\"handleStockTransferClick($event)\">\n </co-stock-information-grid>\n <co-stock-location *ngIf=\"showStockLocation\"\n (backToStockLines)=\"backToStockLinesClicked()\">\n\n </co-stock-location>\n <co-stock-transfer *ngIf=\"showStockTransfer\"\n (handleCancelClicked)=\"backToStock()\"\n [article]=\"stockTransferArticle\"\n [stockSticker]=\"stockService.stockStickers\"\n (handleStickerClicked)=\"handleStickerClicked.emit($event)\"\n [articleWarehouse]=\"articleWarehouse\"\n [allWarehouses]=\"allWarehouses\"\n >\n </co-stock-transfer>\n </div>\n ",
1738
1745
  encapsulation: i0.ViewEncapsulation.None
1739
1746
  },] }
1740
1747
  ];