@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.
- package/bundles/colijnit-sharedcomponents.umd.js +19 -12
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/stock/stock.component.js +12 -8
- package/esm2015/lib/service/ione-connector-adapter.service.js +5 -7
- package/fesm2015/colijnit-sharedcomponents.js +15 -13
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/stock/stock.component.d.ts +4 -4
- package/package.json +1 -1
|
@@ -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
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
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
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
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]=\"
|
|
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
|
];
|