@colijnit/sharedcomponents 1.0.21 → 1.0.22
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 +127 -119
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +3 -3
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +4 -4
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +1 -18
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +7 -2
- package/esm2015/lib/components/stock/stock.component.js +33 -18
- package/esm2015/lib/components/stock/stock.module.js +2 -4
- package/esm2015/lib/service/shared-connector.service.js +15 -14
- package/esm2015/lib/service/stock.service.js +24 -22
- package/fesm2015/colijnit-sharedcomponents.js +97 -92
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +0 -4
- package/lib/components/stock/stock.component.d.ts +10 -6
- package/lib/components/stock/style/_layout.scss +1 -2
- package/lib/components/stock/style/_material-definition.scss +1 -1
- package/lib/service/shared-connector.service.d.ts +1 -1
- package/lib/service/stock.service.d.ts +4 -2
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ import pdfjsWorker from 'pdfjs-dist/build/pdf.worker.entry';
|
|
|
8
8
|
import { CommonModule } from '@angular/common';
|
|
9
9
|
import SignaturePad from 'signature_pad';
|
|
10
10
|
import { PrintStockStickers } from '@colijnit/sharedapi/build/model/print-stock-stickers';
|
|
11
|
+
import { PrintPriceStickers } from '@colijnit/sharedapi/build/model/print-price-stickers.bo';
|
|
11
12
|
import { Articles } from '@colijnit/articleapi/build/articles';
|
|
12
13
|
import { Sharedapi } from '@colijnit/sharedapi/build/sharedapi';
|
|
13
14
|
import { Printer } from '@colijnit/sharedapi/build/model/report/printer.bo';
|
|
@@ -33,7 +34,6 @@ import { StockManagementWarehouses } from '@colijnit/articleapi/build/model/stoc
|
|
|
33
34
|
import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
|
|
34
35
|
import { ArticleTransaction } from '@colijnit/articleapi/build/model/article-transaction.bo';
|
|
35
36
|
import { BehaviorSubject } from 'rxjs';
|
|
36
|
-
import { PrintPriceStickers } from '@colijnit/sharedapi/build/model/print-price-stickers.bo';
|
|
37
37
|
import { GetStockHistoryRequest } from '@colijnit/articleapi/build/model/get-stock-history-request';
|
|
38
38
|
import { ArticleStock as ArticleStock$1 } from '@colijnit/articleapi/build/model/article-stock';
|
|
39
39
|
import { CoDialogPromptModule, InputCheckboxModule, InputComboBoxModule, IconModule, InputNumberPickerModule, CoDialogWizardModule, ButtonModule, CoGridModule, InputRadioButtonModule, DropDownModule, SimpleGridModule, ImageModule, InputTextModule, InputTextareaModule } from '@colijnit/corecomponents_v12';
|
|
@@ -1276,9 +1276,10 @@ class SharedConnectorService {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
connect() {
|
|
1278
1278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1279
|
-
this.
|
|
1279
|
+
this.articleConnector = new Articles(this._optionsService.options);
|
|
1280
1280
|
this.sharedConnector = new Sharedapi(this._optionsService.options);
|
|
1281
|
-
|
|
1281
|
+
console.log(this.articleConnector);
|
|
1282
|
+
console.log(this.sharedConnector);
|
|
1282
1283
|
});
|
|
1283
1284
|
}
|
|
1284
1285
|
getAllPrinters(showAll = true) {
|
|
@@ -1345,7 +1346,7 @@ class SharedConnectorService {
|
|
|
1345
1346
|
getArticleFullObject(goodId) {
|
|
1346
1347
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1347
1348
|
return new Promise((resolve, reject) => {
|
|
1348
|
-
return this.
|
|
1349
|
+
return this.articleConnector.getArticleFullObject(goodId).then((result) => {
|
|
1349
1350
|
// if (result.validationResult && result.validationResult.success) {
|
|
1350
1351
|
// if (result.resultObject) {
|
|
1351
1352
|
// resolve(this._boFactory.makeWithRawBackendData(ArticleExtended, result.resultObject));
|
|
@@ -1360,7 +1361,7 @@ class SharedConnectorService {
|
|
|
1360
1361
|
getStockHistory(request) {
|
|
1361
1362
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1362
1363
|
return new Promise((resolve, reject) => {
|
|
1363
|
-
return this.
|
|
1364
|
+
return this.articleConnector.getStockHistory(request).then((result) => {
|
|
1364
1365
|
if (result.validationResult && result.validationResult.success) {
|
|
1365
1366
|
if (result.resultObject && result.resultObject.hasOwnProperty("stockHistory")) {
|
|
1366
1367
|
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockHistoryBo, result.resultObject.stockHistory));
|
|
@@ -1376,7 +1377,7 @@ class SharedConnectorService {
|
|
|
1376
1377
|
getStockInformation(data) {
|
|
1377
1378
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1378
1379
|
return new Promise((resolve, reject) => {
|
|
1379
|
-
return this.
|
|
1380
|
+
return this.articleConnector.getStockInformation(data).then((result) => {
|
|
1380
1381
|
if (result.validationResult && result.validationResult.success) {
|
|
1381
1382
|
if (result.resultObjects) {
|
|
1382
1383
|
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStock, result.resultObjects));
|
|
@@ -1392,7 +1393,7 @@ class SharedConnectorService {
|
|
|
1392
1393
|
getStockManagementWarehouses() {
|
|
1393
1394
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1394
1395
|
return new Promise((resolve, reject) => {
|
|
1395
|
-
return this.
|
|
1396
|
+
return this.articleConnector.getStockManagementWarehouses().then((result) => {
|
|
1396
1397
|
if (result.validationResult && result.validationResult.success) {
|
|
1397
1398
|
if (result.resultObjects) {
|
|
1398
1399
|
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockManagementWarehouses, result.resultObjects));
|
|
@@ -1408,7 +1409,7 @@ class SharedConnectorService {
|
|
|
1408
1409
|
getStockManagementLocations(warehouseNo) {
|
|
1409
1410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1410
1411
|
return new Promise((resolve, reject) => {
|
|
1411
|
-
return this.
|
|
1412
|
+
return this.articleConnector.getStockManagementLocations(warehouseNo).then((result) => {
|
|
1412
1413
|
if (result.validationResult && result.validationResult.success) {
|
|
1413
1414
|
if (result.resultObjects) {
|
|
1414
1415
|
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockLocation, result.resultObjects));
|
|
@@ -1424,7 +1425,7 @@ class SharedConnectorService {
|
|
|
1424
1425
|
getArticleDetails(data) {
|
|
1425
1426
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1426
1427
|
return new Promise((resolve, reject) => {
|
|
1427
|
-
return this.
|
|
1428
|
+
return this.articleConnector.getArticleDetails(data).then((result) => {
|
|
1428
1429
|
if (result.validationResult && result.validationResult.success) {
|
|
1429
1430
|
if (result.resultObjects) {
|
|
1430
1431
|
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleDetailsBo, result.resultObjects));
|
|
@@ -1440,7 +1441,7 @@ class SharedConnectorService {
|
|
|
1440
1441
|
updateArticleDetails(data) {
|
|
1441
1442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1442
1443
|
return new Promise((resolve, reject) => {
|
|
1443
|
-
return this.
|
|
1444
|
+
return this.articleConnector.updateArticleDetails(data).then((result) => __awaiter(this, void 0, void 0, function* () {
|
|
1444
1445
|
if (result.validationResult && result.validationResult.success) {
|
|
1445
1446
|
yield this.commit();
|
|
1446
1447
|
resolve(true);
|
|
@@ -1455,7 +1456,7 @@ class SharedConnectorService {
|
|
|
1455
1456
|
lockArticleDetails(data) {
|
|
1456
1457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1457
1458
|
return new Promise((resolve, reject) => {
|
|
1458
|
-
return this.
|
|
1459
|
+
return this.articleConnector.lockArticleDetails(data).then((result) => __awaiter(this, void 0, void 0, function* () {
|
|
1459
1460
|
if (result.validationResult && result.validationResult.success) {
|
|
1460
1461
|
yield this.commit();
|
|
1461
1462
|
resolve(true);
|
|
@@ -1470,7 +1471,7 @@ class SharedConnectorService {
|
|
|
1470
1471
|
getStockStatus() {
|
|
1471
1472
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1472
1473
|
return new Promise((resolve, reject) => {
|
|
1473
|
-
return this.
|
|
1474
|
+
return this.articleConnector.getStockState().then((result) => {
|
|
1474
1475
|
if (result.validationResult && result.validationResult.success) {
|
|
1475
1476
|
if (result.resultObjects) {
|
|
1476
1477
|
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockStatus, result.resultObjects));
|
|
@@ -1502,7 +1503,7 @@ class SharedConnectorService {
|
|
|
1502
1503
|
getArticleTransaction(data) {
|
|
1503
1504
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1504
1505
|
return new Promise((resolve, reject) => {
|
|
1505
|
-
return this.
|
|
1506
|
+
return this.articleConnector.getArticleTransaction(data).then((result) => {
|
|
1506
1507
|
if (result.validationResult && result.validationResult.success) {
|
|
1507
1508
|
if (result.resultObjects) {
|
|
1508
1509
|
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleTransaction, result.resultObjects));
|
|
@@ -1516,7 +1517,7 @@ class SharedConnectorService {
|
|
|
1516
1517
|
});
|
|
1517
1518
|
}
|
|
1518
1519
|
commit() {
|
|
1519
|
-
return this.
|
|
1520
|
+
return this.articleConnector.commit();
|
|
1520
1521
|
}
|
|
1521
1522
|
}
|
|
1522
1523
|
SharedConnectorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SharedConnectorService_Factory() { return new SharedConnectorService(i0.ɵɵinject(OptionsService)); }, token: SharedConnectorService, providedIn: "root" });
|
|
@@ -1529,58 +1530,35 @@ SharedConnectorService.ctorParameters = () => [
|
|
|
1529
1530
|
{ type: OptionsService }
|
|
1530
1531
|
];
|
|
1531
1532
|
|
|
1532
|
-
class
|
|
1533
|
-
constructor(
|
|
1534
|
-
this.
|
|
1535
|
-
this.connector = connector;
|
|
1536
|
-
}
|
|
1537
|
-
init(options) {
|
|
1538
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1539
|
-
yield this.options.initialize(options);
|
|
1540
|
-
this.connector.connect();
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
SharedService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
|
|
1545
|
-
SharedService.decorators = [
|
|
1546
|
-
{ type: Injectable, args: [{
|
|
1547
|
-
providedIn: "root"
|
|
1548
|
-
},] }
|
|
1549
|
-
];
|
|
1550
|
-
SharedService.ctorParameters = () => [
|
|
1551
|
-
{ type: OptionsService },
|
|
1552
|
-
{ type: SharedConnectorService }
|
|
1553
|
-
];
|
|
1554
|
-
|
|
1555
|
-
class StockService extends SharedService {
|
|
1556
|
-
constructor() {
|
|
1557
|
-
super(...arguments);
|
|
1533
|
+
class StockService {
|
|
1534
|
+
constructor(_sharedService) {
|
|
1535
|
+
this._sharedService = _sharedService;
|
|
1558
1536
|
this.printSticker = new PrintStockStickers();
|
|
1559
1537
|
this.printPriceSticker = new PrintPriceStickers();
|
|
1560
1538
|
}
|
|
1561
1539
|
getPrintStockStickers(data) {
|
|
1562
1540
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1563
|
-
yield this.
|
|
1541
|
+
yield this._sharedService.getPrintStockStickers(data);
|
|
1564
1542
|
});
|
|
1565
1543
|
}
|
|
1566
1544
|
getPrintPriceStickers(data) {
|
|
1567
1545
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1568
|
-
yield this.
|
|
1546
|
+
yield this._sharedService.getPrintPriceStickers(data);
|
|
1569
1547
|
});
|
|
1570
1548
|
}
|
|
1571
1549
|
getAllPrinters(showAll = true) {
|
|
1572
1550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1573
|
-
return yield this.
|
|
1551
|
+
return yield this._sharedService.getAllPrinters(showAll);
|
|
1574
1552
|
});
|
|
1575
1553
|
}
|
|
1576
1554
|
getStockHistory(data) {
|
|
1577
1555
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1578
|
-
return yield this.
|
|
1556
|
+
return yield this._sharedService.getStockHistory(data);
|
|
1579
1557
|
});
|
|
1580
1558
|
}
|
|
1581
1559
|
getStockInformation(data) {
|
|
1582
1560
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1583
|
-
return yield this.
|
|
1561
|
+
return yield this._sharedService.getStockInformation(data);
|
|
1584
1562
|
});
|
|
1585
1563
|
}
|
|
1586
1564
|
// public async getStockStickerPrintLayouts(data: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]> {
|
|
@@ -1588,78 +1566,72 @@ class StockService extends SharedService {
|
|
|
1588
1566
|
// }
|
|
1589
1567
|
getArticleDetails(data) {
|
|
1590
1568
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1591
|
-
return yield this.
|
|
1569
|
+
return yield this._sharedService.getArticleDetails(data);
|
|
1592
1570
|
});
|
|
1593
1571
|
}
|
|
1594
1572
|
updateArticleDetails(data) {
|
|
1595
1573
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1596
|
-
return yield this.
|
|
1574
|
+
return yield this._sharedService.updateArticleDetails(data);
|
|
1597
1575
|
});
|
|
1598
1576
|
}
|
|
1599
1577
|
getStockState() {
|
|
1600
1578
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1601
|
-
return yield this.
|
|
1579
|
+
return yield this._sharedService.getStockStatus();
|
|
1602
1580
|
});
|
|
1603
1581
|
}
|
|
1604
1582
|
getStockStickerTemplates(data) {
|
|
1605
1583
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1606
|
-
return yield this.
|
|
1584
|
+
return yield this._sharedService.getStockStickerTemplates(data);
|
|
1607
1585
|
});
|
|
1608
1586
|
}
|
|
1609
1587
|
getStockManagementWarehouses() {
|
|
1610
1588
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1611
|
-
return yield this.
|
|
1589
|
+
return yield this._sharedService.getStockManagementWarehouses();
|
|
1612
1590
|
});
|
|
1613
1591
|
}
|
|
1614
1592
|
getStockManagementLocations(warehouseNo) {
|
|
1615
1593
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1616
|
-
return yield this.
|
|
1594
|
+
return yield this._sharedService.getStockManagementLocations(warehouseNo);
|
|
1617
1595
|
});
|
|
1618
1596
|
}
|
|
1619
1597
|
getArticleTransaction(data) {
|
|
1620
1598
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1621
|
-
return yield this.
|
|
1599
|
+
return yield this._sharedService.getArticleTransaction(data);
|
|
1622
1600
|
});
|
|
1623
1601
|
}
|
|
1624
1602
|
lockArticleDetails(data) {
|
|
1625
1603
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1626
|
-
return yield this.
|
|
1604
|
+
return yield this._sharedService.lockArticleDetails(data);
|
|
1627
1605
|
});
|
|
1628
1606
|
}
|
|
1629
1607
|
commit() {
|
|
1630
|
-
return this.
|
|
1608
|
+
return this._sharedService.commit();
|
|
1631
1609
|
}
|
|
1632
1610
|
}
|
|
1633
|
-
StockService.ɵprov = i0.ɵɵdefineInjectable({ factory: function StockService_Factory() { return new StockService(i0.ɵɵinject(
|
|
1611
|
+
StockService.ɵprov = i0.ɵɵdefineInjectable({ factory: function StockService_Factory() { return new StockService(i0.ɵɵinject(SharedConnectorService)); }, token: StockService, providedIn: "root" });
|
|
1634
1612
|
StockService.decorators = [
|
|
1635
1613
|
{ type: Injectable, args: [{
|
|
1636
1614
|
providedIn: 'root',
|
|
1637
1615
|
},] }
|
|
1616
|
+
];
|
|
1617
|
+
StockService.ctorParameters = () => [
|
|
1618
|
+
{ type: SharedConnectorService }
|
|
1638
1619
|
];
|
|
1639
1620
|
|
|
1640
1621
|
class StockComponent {
|
|
1641
|
-
constructor(stockService, _optionsService) {
|
|
1622
|
+
constructor(stockService, _optionsService, _dictionary, _changeDetector) {
|
|
1642
1623
|
this.stockService = stockService;
|
|
1643
1624
|
this._optionsService = _optionsService;
|
|
1625
|
+
this._dictionary = _dictionary;
|
|
1626
|
+
this._changeDetector = _changeDetector;
|
|
1644
1627
|
this.handleStickerClicked = new EventEmitter();
|
|
1645
1628
|
this.showStockInformationGrid = true;
|
|
1646
1629
|
this.showStockLocation = false;
|
|
1647
1630
|
this.showStockTransfer = false;
|
|
1648
1631
|
this.allAvailableStock = 0;
|
|
1649
1632
|
this.allTechnicalStock = 0;
|
|
1650
|
-
this.
|
|
1651
|
-
|
|
1652
|
-
set options(value) {
|
|
1653
|
-
if (value) {
|
|
1654
|
-
if (typeof value === "string") {
|
|
1655
|
-
this._options = JSON.parse(value);
|
|
1656
|
-
}
|
|
1657
|
-
else {
|
|
1658
|
-
this._options = value;
|
|
1659
|
-
}
|
|
1660
|
-
this._publicOptions = true;
|
|
1661
|
-
this._optionsService.initialize(this._options).then();
|
|
1662
|
-
}
|
|
1633
|
+
this._subscriptions = [];
|
|
1634
|
+
this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(loaded => this._handleSettingsLoaded(loaded)));
|
|
1663
1635
|
}
|
|
1664
1636
|
set article(article) {
|
|
1665
1637
|
this.articleExtended = article;
|
|
@@ -1669,6 +1641,9 @@ class StockComponent {
|
|
|
1669
1641
|
showClass() {
|
|
1670
1642
|
return true;
|
|
1671
1643
|
}
|
|
1644
|
+
ngOnDestroy() {
|
|
1645
|
+
this._subscriptions.forEach(subscription => subscription.unsubscribe());
|
|
1646
|
+
}
|
|
1672
1647
|
backToStockLinesClicked() {
|
|
1673
1648
|
this.showStockLocation = false;
|
|
1674
1649
|
this.showStockInformationGrid = true;
|
|
@@ -1701,6 +1676,25 @@ class StockComponent {
|
|
|
1701
1676
|
this.stockInformation.forEach((articleStock) => this.allTechnicalStock += articleStock.technicalStock);
|
|
1702
1677
|
});
|
|
1703
1678
|
}
|
|
1679
|
+
_handleSettingsLoaded(loaded) {
|
|
1680
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1681
|
+
if (loaded) {
|
|
1682
|
+
yield this._initConnection().then();
|
|
1683
|
+
}
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
_initConnection() {
|
|
1687
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1688
|
+
// await this._connector.connect(this._optionsService.options);
|
|
1689
|
+
if (this._optionsService.options.url) {
|
|
1690
|
+
this._dictionary.rootUrl = this._optionsService.options.url.replace("/ajaxservice", "");
|
|
1691
|
+
}
|
|
1692
|
+
yield this._dictionary.setDictionary(this._optionsService.options.languageCode);
|
|
1693
|
+
setTimeout(() => {
|
|
1694
|
+
this._changeDetector.detectChanges();
|
|
1695
|
+
});
|
|
1696
|
+
});
|
|
1697
|
+
}
|
|
1704
1698
|
}
|
|
1705
1699
|
StockComponent.decorators = [
|
|
1706
1700
|
{ type: Component, args: [{
|
|
@@ -1743,12 +1737,13 @@ StockComponent.decorators = [
|
|
|
1743
1737
|
];
|
|
1744
1738
|
StockComponent.ctorParameters = () => [
|
|
1745
1739
|
{ type: StockService },
|
|
1746
|
-
{ type: OptionsService }
|
|
1740
|
+
{ type: OptionsService },
|
|
1741
|
+
{ type: DictionaryService },
|
|
1742
|
+
{ type: ChangeDetectorRef }
|
|
1747
1743
|
];
|
|
1748
1744
|
StockComponent.propDecorators = {
|
|
1749
1745
|
stock: [{ type: ViewChild, args: [StockComponent,] }],
|
|
1750
1746
|
handleStickerClicked: [{ type: Output }],
|
|
1751
|
-
options: [{ type: Input }],
|
|
1752
1747
|
article: [{ type: Input }],
|
|
1753
1748
|
articleWarehouse: [{ type: Input }],
|
|
1754
1749
|
allWarehouses: [{ type: Input }],
|
|
@@ -2050,6 +2045,7 @@ StockInformationGridComponent.decorators = [
|
|
|
2050
2045
|
[showToolbar]="true"
|
|
2051
2046
|
(addRow)="addNewRow()"
|
|
2052
2047
|
[inlineEdit]="true"
|
|
2048
|
+
[rowsPerPage]="20"
|
|
2053
2049
|
>
|
|
2054
2050
|
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseNo'" [order]="10"></co-simple-grid-column>
|
|
2055
2051
|
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'warehouseName'" [order]="11"></co-simple-grid-column>
|
|
@@ -2066,6 +2062,7 @@ StockInformationGridComponent.decorators = [
|
|
|
2066
2062
|
<co-simple-grid *ngIf="activeTab === tabs[1]"
|
|
2067
2063
|
[data]="inOrderInformation"
|
|
2068
2064
|
class="simple-grid"
|
|
2065
|
+
[rowsPerPage]="20"
|
|
2069
2066
|
>
|
|
2070
2067
|
<co-simple-grid-column [headerText]="'IN_ORDER2'" [field]="'transactionNr'"></co-simple-grid-column>
|
|
2071
2068
|
<co-simple-grid-column [headerText]="'CUSTOMER'" [field]="'user'"></co-simple-grid-column>
|
|
@@ -2089,6 +2086,7 @@ StockInformationGridComponent.decorators = [
|
|
|
2089
2086
|
<co-simple-grid *ngIf="activeTab === tabs[2]"
|
|
2090
2087
|
[data]="orderInformation"
|
|
2091
2088
|
class="simple-grid"
|
|
2089
|
+
[rowsPerPage]="20"
|
|
2092
2090
|
>
|
|
2093
2091
|
<co-simple-grid-column [headerText]="'PURCHASE_ORDER_NR'" [field]="'transactionNr'"></co-simple-grid-column>
|
|
2094
2092
|
<co-simple-grid-column [headerText]="'DATE'" [field]="'transactionDate'"></co-simple-grid-column>
|
|
@@ -2119,6 +2117,7 @@ StockInformationGridComponent.decorators = [
|
|
|
2119
2117
|
<!-- TODO move to own component stock-location-->
|
|
2120
2118
|
<co-simple-grid [data]="articleDetails"
|
|
2121
2119
|
class="simple-grid"
|
|
2120
|
+
[rowsPerPage]="20"
|
|
2122
2121
|
>
|
|
2123
2122
|
<div class="stock-location-group">
|
|
2124
2123
|
<div class="stock-location-left-group">
|
|
@@ -2166,6 +2165,7 @@ StockInformationGridComponent.decorators = [
|
|
|
2166
2165
|
</div>
|
|
2167
2166
|
<co-simple-grid [data]="stockHistoryInformation"
|
|
2168
2167
|
class="simple-grid"
|
|
2168
|
+
[rowsPerPage]="20"
|
|
2169
2169
|
>
|
|
2170
2170
|
<co-simple-grid-column [headerText]="'MUTATION_DATE'" [field]="'mutationDate'"></co-simple-grid-column>
|
|
2171
2171
|
<co-simple-grid-column [headerText]="'MUTATION_TIME'" [field]="'mutationTime'"></co-simple-grid-column>
|
|
@@ -2191,7 +2191,7 @@ StockInformationGridComponent.decorators = [
|
|
|
2191
2191
|
|
|
2192
2192
|
<div class="stock-button-toolbar">
|
|
2193
2193
|
<div class="stock-button-left-group">
|
|
2194
|
-
<co-button [label]="'HISTORY'" (click)="handleHistoryClick()"></co-button>
|
|
2194
|
+
<co-button *ngIf="activeTab === tabs[0]" [label]="'HISTORY'" (click)="handleHistoryClick()"></co-button>
|
|
2195
2195
|
</div>
|
|
2196
2196
|
<div class="stock-button-middle-group">
|
|
2197
2197
|
<div class="button-left">
|
|
@@ -2462,24 +2462,8 @@ class SendMethodDialogComponent {
|
|
|
2462
2462
|
this.startSignatureClicked = new EventEmitter();
|
|
2463
2463
|
this.printButtonClicked = new EventEmitter();
|
|
2464
2464
|
this._subscriptions = [];
|
|
2465
|
-
this._publicOptions = true;
|
|
2466
2465
|
this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(loaded => this._handleSettingsLoaded(loaded)));
|
|
2467
2466
|
}
|
|
2468
|
-
set options(value) {
|
|
2469
|
-
if (value) {
|
|
2470
|
-
if (typeof value === "string") {
|
|
2471
|
-
this._options = JSON.parse(value);
|
|
2472
|
-
}
|
|
2473
|
-
else {
|
|
2474
|
-
this._options = value;
|
|
2475
|
-
}
|
|
2476
|
-
this._publicOptions = true;
|
|
2477
|
-
this._optionsService.initialize(this._options).then();
|
|
2478
|
-
}
|
|
2479
|
-
}
|
|
2480
|
-
get options() {
|
|
2481
|
-
return this._options;
|
|
2482
|
-
}
|
|
2483
2467
|
set articleData(data) {
|
|
2484
2468
|
this.stockService.printSticker.goodId = data.goodId;
|
|
2485
2469
|
this.stockService.printSticker.warehouse = data.warehouseNo;
|
|
@@ -2725,7 +2709,6 @@ SendMethodDialogComponent.propDecorators = {
|
|
|
2725
2709
|
showPrintPriceStickers: [{ type: Input }],
|
|
2726
2710
|
showPrintStockStickers: [{ type: Input }],
|
|
2727
2711
|
priceListCodeData: [{ type: Input }],
|
|
2728
|
-
options: [{ type: Input }],
|
|
2729
2712
|
showDialog: [{ type: Input }],
|
|
2730
2713
|
headerTitle: [{ type: Input }],
|
|
2731
2714
|
printerList: [{ type: Input }],
|
|
@@ -2858,8 +2841,7 @@ StockModule.decorators = [
|
|
|
2858
2841
|
StockComponent
|
|
2859
2842
|
],
|
|
2860
2843
|
providers: [
|
|
2861
|
-
StockService
|
|
2862
|
-
SharedConnectorService
|
|
2844
|
+
StockService
|
|
2863
2845
|
]
|
|
2864
2846
|
},] }
|
|
2865
2847
|
];
|
|
@@ -3187,6 +3169,29 @@ LayoutSwitcherModule.decorators = [
|
|
|
3187
3169
|
},] }
|
|
3188
3170
|
];
|
|
3189
3171
|
|
|
3172
|
+
class SharedService {
|
|
3173
|
+
constructor(options, connector) {
|
|
3174
|
+
this.options = options;
|
|
3175
|
+
this.connector = connector;
|
|
3176
|
+
}
|
|
3177
|
+
init(options) {
|
|
3178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3179
|
+
yield this.options.initialize(options);
|
|
3180
|
+
this.connector.connect();
|
|
3181
|
+
});
|
|
3182
|
+
}
|
|
3183
|
+
}
|
|
3184
|
+
SharedService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
|
|
3185
|
+
SharedService.decorators = [
|
|
3186
|
+
{ type: Injectable, args: [{
|
|
3187
|
+
providedIn: "root"
|
|
3188
|
+
},] }
|
|
3189
|
+
];
|
|
3190
|
+
SharedService.ctorParameters = () => [
|
|
3191
|
+
{ type: OptionsService },
|
|
3192
|
+
{ type: SharedConnectorService }
|
|
3193
|
+
];
|
|
3194
|
+
|
|
3190
3195
|
/*
|
|
3191
3196
|
* Public API Surface of sharedcomponents
|
|
3192
3197
|
*/
|
|
@@ -3195,5 +3200,5 @@ LayoutSwitcherModule.decorators = [
|
|
|
3195
3200
|
* Generated bundle index. Do not edit.
|
|
3196
3201
|
*/
|
|
3197
3202
|
|
|
3198
|
-
export { DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, StockComponent, StockModule, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockService as ɵc,
|
|
3203
|
+
export { DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, StockComponent, StockModule, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockService as ɵc, SharedConnectorService as ɵd, OptionsService as ɵe, DictionaryService as ɵf, IconCacheService as ɵg, StockInformationComponent as ɵh, StockInformationGridComponent as ɵi, StockLocationComponent as ɵj, StockTransferComponent as ɵk, StockChangeAmountComponent as ɵl };
|
|
3199
3204
|
//# sourceMappingURL=colijnit-sharedcomponents.js.map
|