@colijnit/sharedcomponents 1.0.18 → 1.0.19
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/3rdpartylicenses.txt +1116 -0
- package/bundles/colijnit-sharedcomponents.umd.js +157 -96
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/layout-switcher/layout-switcher.component.js +74 -0
- package/esm2015/lib/components/layout-switcher/layout-switcher.module.js +21 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +10 -11
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +1 -1
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +29 -37
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +1 -1
- package/esm2015/lib/components/stock/stock.component.js +2 -2
- package/esm2015/lib/enum/icon.enum.js +4 -1
- package/esm2015/lib/model/icon-svg.js +4 -1
- package/esm2015/lib/service/ione-connector-adapter.service.js +18 -32
- package/esm2015/lib/service/stock.service.js +10 -22
- package/esm2015/public-api.js +3 -1
- package/favicon.ico +0 -0
- package/fesm2015/colijnit-sharedcomponents.js +161 -101
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/index.html +12 -0
- package/lib/components/layout-switcher/layout-switcher.component.d.ts +16 -0
- package/lib/components/layout-switcher/layout-switcher.module.d.ts +2 -0
- package/lib/components/layout-switcher/style/_layout.scss +96 -0
- package/lib/components/layout-switcher/style/_material-definition.scss +16 -0
- package/lib/components/layout-switcher/style/_theme.scss +6 -0
- package/lib/components/layout-switcher/style/material.scss +5 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +3 -3
- package/lib/components/stock/stock-information/stock-information.component.d.ts +1 -1
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +6 -6
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +1 -1
- package/lib/components/stock/stock.component.d.ts +1 -1
- package/lib/components/stock/style/_layout.scss +0 -6
- package/lib/enum/icon.enum.d.ts +3 -0
- package/lib/service/ione-connector-adapter.service.d.ts +2 -4
- package/lib/service/stock.service.d.ts +3 -7
- package/main.5240c1941fea0abc7a9c.js +1 -0
- package/package.json +1 -1
- package/polyfills.4a44032b137d291298c3.js +1 -0
- package/public-api.d.ts +2 -0
- package/runtime.f2046bab7c02026dc21f.js +1 -0
- package/styles.b3b98643e0f0f94bdd12.css +110 -0
|
@@ -24,21 +24,20 @@ import { BooleanTextDecorator as BooleanTextDecorator$1 } from '@colijnit/articl
|
|
|
24
24
|
import { JsonFieldFieldDecorator } from '@colijnit/articleapi/build/factory/decorators/json.decorator';
|
|
25
25
|
import { ComplexArrayDecorator as ComplexArrayDecorator$1 } from '@colijnit/articleapi/build/factory/decorators/complex-array.decorator';
|
|
26
26
|
import { PrintStockStickers } from '@colijnit/sharedapi/build/model/print-stock-stickers';
|
|
27
|
-
import {
|
|
27
|
+
import { ArticleStockBo } from '@colijnit/articleapi/build/model/article-stock.bo';
|
|
28
28
|
import { StockHistoryBo } from '@colijnit/articleapi/build/model/stock-history.bo';
|
|
29
29
|
import { StockStickersPrintLayoutsBo } from '@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo';
|
|
30
30
|
import { ArticleDetailsBo } from '@colijnit/articleapi/build/model/article-details.bo';
|
|
31
31
|
import { StockStatus } from '@colijnit/articleapi/build/model/stock-status.bo';
|
|
32
32
|
import { StockManagementWarehouses } from '@colijnit/articleapi/build/model/stock-management-warehouses.bo';
|
|
33
33
|
import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
|
|
34
|
-
import {
|
|
34
|
+
import { PrintStockStickers as PrintStockStickers$1 } from '@colijnit/articleapi/build/model/print-stock-stickers';
|
|
35
35
|
import { GetStockHistoryRequest } from '@colijnit/articleapi/build/model/get-stock-history-request';
|
|
36
|
-
import { ArticleStock
|
|
36
|
+
import { ArticleStock } from '@colijnit/articleapi/build/model/article-stock';
|
|
37
37
|
import { CoDialogPromptModule, InputCheckboxModule, InputComboBoxModule, IconModule, InputNumberPickerModule, CoDialogWizardModule, ButtonModule, CoGridModule, InputRadioButtonModule, DropDownModule, SimpleGridModule, ImageModule, InputTextModule, InputTextareaModule } from '@colijnit/corecomponents_v12';
|
|
38
38
|
import * as i1 from '@angular/platform-browser';
|
|
39
39
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
40
40
|
import { ArticleStockManagement } from '@colijnit/articleapi/build/model/article-stock-management';
|
|
41
|
-
import { ArticleTransaction as ArticleTransaction$1 } from '@colijnit/articleapi/build/model/article-transaction';
|
|
42
41
|
|
|
43
42
|
class DocsignComponent {
|
|
44
43
|
constructor() {
|
|
@@ -1100,19 +1099,22 @@ class IoneConnectorAdapterService {
|
|
|
1100
1099
|
});
|
|
1101
1100
|
});
|
|
1102
1101
|
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1102
|
+
getStockStickerPrintLayouts(stockStickersPrintLayoutsBo) {
|
|
1103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1104
|
+
return new Promise((resolve, reject) => {
|
|
1105
|
+
return this.sharedConnector.getStockStickerPrintLayouts(stockStickersPrintLayoutsBo).then((result) => {
|
|
1106
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1107
|
+
if (result.resultObject) {
|
|
1108
|
+
resolve(this._boFactory.makeWithRawBackendData(stockStickersPrintLayoutsBo, result.resultObject));
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
else {
|
|
1112
|
+
reject(result.validationMessagesAsString);
|
|
1113
|
+
}
|
|
1114
|
+
});
|
|
1115
|
+
});
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1116
1118
|
getArticleFullObject(goodId) {
|
|
1117
1119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1118
1120
|
return new Promise((resolve, reject) => {
|
|
@@ -1150,7 +1152,7 @@ class IoneConnectorAdapterService {
|
|
|
1150
1152
|
return this.connector.getStockInformation(data).then((result) => {
|
|
1151
1153
|
if (result.validationResult && result.validationResult.success) {
|
|
1152
1154
|
if (result.resultObjects) {
|
|
1153
|
-
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(
|
|
1155
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockBo, result.resultObjects));
|
|
1154
1156
|
}
|
|
1155
1157
|
}
|
|
1156
1158
|
else {
|
|
@@ -1270,22 +1272,6 @@ class IoneConnectorAdapterService {
|
|
|
1270
1272
|
});
|
|
1271
1273
|
});
|
|
1272
1274
|
}
|
|
1273
|
-
getArticleTransaction(data) {
|
|
1274
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1275
|
-
return new Promise((resolve, reject) => {
|
|
1276
|
-
return this.connector.getArticleTransaction(data).then((result) => {
|
|
1277
|
-
if (result.validationResult && result.validationResult.success) {
|
|
1278
|
-
if (result.resultObjects) {
|
|
1279
|
-
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleTransaction, result.resultObjects));
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
else {
|
|
1283
|
-
reject(result.validationMessagesAsString);
|
|
1284
|
-
}
|
|
1285
|
-
});
|
|
1286
|
-
});
|
|
1287
|
-
});
|
|
1288
|
-
}
|
|
1289
1275
|
commit() {
|
|
1290
1276
|
return this.connector.commit();
|
|
1291
1277
|
}
|
|
@@ -1301,16 +1287,13 @@ IoneConnectorAdapterService.ctorParameters = () => [];
|
|
|
1301
1287
|
class StockService {
|
|
1302
1288
|
constructor(_connector) {
|
|
1303
1289
|
this._connector = _connector;
|
|
1304
|
-
this.printSticker = new PrintStockStickers();
|
|
1305
1290
|
}
|
|
1306
1291
|
connectConnector(options) {
|
|
1307
1292
|
this._connector.connect(options);
|
|
1308
1293
|
}
|
|
1309
|
-
getPrintStockStickers(data) {
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
});
|
|
1313
|
-
}
|
|
1294
|
+
// public async getPrintStockStickers(data: PrintStockStickers): Promise<void> {
|
|
1295
|
+
// await this._connector.getPrintStockStickers(data);
|
|
1296
|
+
// }
|
|
1314
1297
|
getAllPrinters(showAll = true) {
|
|
1315
1298
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1316
1299
|
return yield this._connector.getAllPrinters(showAll);
|
|
@@ -1326,9 +1309,11 @@ class StockService {
|
|
|
1326
1309
|
return yield this._connector.getStockInformation(data);
|
|
1327
1310
|
});
|
|
1328
1311
|
}
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1312
|
+
getStockStickerPrintLayouts(data) {
|
|
1313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1314
|
+
return yield this._connector.getStockStickerPrintLayouts(data);
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1332
1317
|
getArticleDetails(data) {
|
|
1333
1318
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1334
1319
|
return yield this._connector.getArticleDetails(data);
|
|
@@ -1359,11 +1344,6 @@ class StockService {
|
|
|
1359
1344
|
return yield this._connector.getStockManagementLocations(warehouseNo);
|
|
1360
1345
|
});
|
|
1361
1346
|
}
|
|
1362
|
-
getArticleTransaction(data) {
|
|
1363
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1364
|
-
return yield this._connector.getArticleTransaction(data);
|
|
1365
|
-
});
|
|
1366
|
-
}
|
|
1367
1347
|
lockArticleDetails(data) {
|
|
1368
1348
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1369
1349
|
return yield this._connector.lockArticleDetails(data);
|
|
@@ -1373,11 +1353,8 @@ class StockService {
|
|
|
1373
1353
|
return this._connector.commit();
|
|
1374
1354
|
}
|
|
1375
1355
|
}
|
|
1376
|
-
StockService.ɵprov = i0.ɵɵdefineInjectable({ factory: function StockService_Factory() { return new StockService(i0.ɵɵinject(IoneConnectorAdapterService)); }, token: StockService, providedIn: "root" });
|
|
1377
1356
|
StockService.decorators = [
|
|
1378
|
-
{ type: Injectable
|
|
1379
|
-
providedIn: 'root',
|
|
1380
|
-
},] }
|
|
1357
|
+
{ type: Injectable }
|
|
1381
1358
|
];
|
|
1382
1359
|
StockService.ctorParameters = () => [
|
|
1383
1360
|
{ type: IoneConnectorAdapterService }
|
|
@@ -1412,7 +1389,7 @@ class StockComponent {
|
|
|
1412
1389
|
this.stockTransferArticleDetails = event;
|
|
1413
1390
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1414
1391
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1415
|
-
this.stockService.stockStickers = new PrintStockStickers();
|
|
1392
|
+
this.stockService.stockStickers = new PrintStockStickers$1();
|
|
1416
1393
|
}
|
|
1417
1394
|
backToStock() {
|
|
1418
1395
|
this.showStockTransfer = !this.showStockTransfer;
|
|
@@ -1428,7 +1405,7 @@ class StockComponent {
|
|
|
1428
1405
|
}
|
|
1429
1406
|
getStockInformation(data) {
|
|
1430
1407
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1431
|
-
const articleData = new ArticleStock
|
|
1408
|
+
const articleData = new ArticleStock();
|
|
1432
1409
|
articleData.goodId = data.goodId.toString();
|
|
1433
1410
|
articleData.viewKind = "M";
|
|
1434
1411
|
this.stockInformation = yield this.stockService.getStockInformation(articleData);
|
|
@@ -1544,8 +1521,11 @@ StockInformationComponent.propDecorators = {
|
|
|
1544
1521
|
|
|
1545
1522
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
1546
1523
|
const IconSvg = {
|
|
1524
|
+
"angle_left_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path fill=\"#183153\" d=\"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z\"/></svg>",
|
|
1525
|
+
"angle_right_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path fill=\"#183153\" d=\"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z\"/></svg>",
|
|
1547
1526
|
"arrow_fat_right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"37.5 25 25.2 12.7 25.2 20.35 12.5 20.35 12.5 29.66 25.2 29.66 25.2 37.3 37.5 25\" fill=\"#484f60\"/></svg>",
|
|
1548
1527
|
"arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\"><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
|
|
1528
|
+
"bring_forward_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"#183153\" d=\"M224 464H448C456.8 464 464 456.8 464 448V224C464 215.2 456.8 208 448 208H384V160H448C483.3 160 512 188.7 512 224V448C512 483.3 483.3 512 448 512H224C188.7 512 160 483.3 160 448V384H208V448C208 456.8 215.2 464 224 464zM64 352C28.65 352 0 323.3 0 288V64C0 28.65 28.65 0 64 0H288C323.3 0 352 28.65 352 64V288C352 323.3 323.3 352 288 352H64z\"/></svg>",
|
|
1549
1529
|
"delete_left_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z\"/></svg>",
|
|
1550
1530
|
"delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
|
|
1551
1531
|
"email": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.79,38.45A17.82,17.82,0,0,1,23.86,40,13.09,13.09,0,0,1,10.41,26.42C10.41,17.63,16.83,10,26.53,10c7.63,0,13.06,5.21,13.06,12.46,0,6.33-3.53,10.3-8.19,10.3a3.42,3.42,0,0,1-3.71-3.32h-.08A6.5,6.5,0,0,1,22,32.76c-2.75,0-4.82-2.11-4.82-5.65a9.85,9.85,0,0,1,10.13-10,12.89,12.89,0,0,1,5.13,1l-1.3,8c-.43,2.54-.13,3.71,1.08,3.75,1.85.09,4.18-2.28,4.18-7.28,0-5.65-3.62-10-10.3-10S13.73,17.76,13.73,26c0,7.25,4.57,11.3,11,11.3A14.81,14.81,0,0,0,31,36ZM28,20.65a5.34,5.34,0,0,0-1.33-.18c-2.85,0-5.09,2.81-5.09,6.12,0,1.64.73,2.68,2.16,2.68,1.59,0,3.27-2,3.66-4.53Z\" fill=\"#484f60\"/></svg>",
|
|
@@ -1604,8 +1584,11 @@ IconCacheService.ctorParameters = () => [
|
|
|
1604
1584
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
1605
1585
|
var Icon;
|
|
1606
1586
|
(function (Icon) {
|
|
1587
|
+
Icon["AngleLeftSolid"] = "angle_left_solid";
|
|
1588
|
+
Icon["AngleRightSolid"] = "angle_right_solid";
|
|
1607
1589
|
Icon["ArrowFatRight"] = "arrow_fat_right";
|
|
1608
1590
|
Icon["ArrowPointRight"] = "arrow_point_right";
|
|
1591
|
+
Icon["BringForwardRegular"] = "bring_forward_regular";
|
|
1609
1592
|
Icon["DeleteLeftRegular"] = "delete_left_regular";
|
|
1610
1593
|
Icon["DeliveryTruck"] = "delivery_truck";
|
|
1611
1594
|
Icon["Email"] = "email";
|
|
@@ -1628,7 +1611,7 @@ class StockInformationGridComponent {
|
|
|
1628
1611
|
this.showSendMethodDialog = false;
|
|
1629
1612
|
this.hideOrShowTabs = true;
|
|
1630
1613
|
this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNo" };
|
|
1631
|
-
this.articleStockSearchInfo = new ArticleStock
|
|
1614
|
+
this.articleStockSearchInfo = new ArticleStock();
|
|
1632
1615
|
this.showChangeStockDetails = false;
|
|
1633
1616
|
this.articleDetailsInformation = new ArticleStockManagement();
|
|
1634
1617
|
this.tabs = [
|
|
@@ -1664,13 +1647,13 @@ class StockInformationGridComponent {
|
|
|
1664
1647
|
this.articleStockSearchInfo.goodId = data.goodId.toString();
|
|
1665
1648
|
this.articleStockSearchInfo.wareHouseNo = data.warehouseNo.toString();
|
|
1666
1649
|
this.articleStockSearchInfo.viewKind = "D";
|
|
1667
|
-
this.selectedWarehouse = data.warehouseNo;
|
|
1668
1650
|
if (!this.dataWareHouseCode) {
|
|
1669
1651
|
this.getStockManagementWarehouses(data);
|
|
1670
1652
|
}
|
|
1671
1653
|
this.getArticleDetails(data);
|
|
1672
1654
|
this.hideOrShowTabs = false;
|
|
1673
1655
|
this.hideOrShowLocationTab = true;
|
|
1656
|
+
console.log(this.articleDetailsInformation);
|
|
1674
1657
|
this._stockService.lockArticleDetails(this.articleDetailsInformation);
|
|
1675
1658
|
}
|
|
1676
1659
|
handleHistoryClick() {
|
|
@@ -1692,16 +1675,15 @@ class StockInformationGridComponent {
|
|
|
1692
1675
|
this.activeTab = this.tabs[0];
|
|
1693
1676
|
this.hideOrShowTabs = true;
|
|
1694
1677
|
this.hideOrShowLocationTab = false;
|
|
1695
|
-
this.articleDetails = undefined;
|
|
1696
1678
|
});
|
|
1697
1679
|
}
|
|
1698
|
-
openSendMethodDialog(
|
|
1699
|
-
this._stockService.printSticker.goodId = data.goodId;
|
|
1700
|
-
this._stockService.printSticker.warehouse = data.warehouseNo;
|
|
1680
|
+
openSendMethodDialog() {
|
|
1701
1681
|
this.showSendMethodDialog = !this.showSendMethodDialog;
|
|
1702
1682
|
}
|
|
1703
1683
|
printStockStickers() {
|
|
1704
|
-
this.
|
|
1684
|
+
this.printSticker = new PrintStockStickers();
|
|
1685
|
+
this.printSticker.goodId = 10;
|
|
1686
|
+
// this._stockService.getPrintStockStickers(this.printSticker);
|
|
1705
1687
|
}
|
|
1706
1688
|
onOkClick() {
|
|
1707
1689
|
}
|
|
@@ -1728,7 +1710,8 @@ class StockInformationGridComponent {
|
|
|
1728
1710
|
}
|
|
1729
1711
|
onSelectWarehouse(event) {
|
|
1730
1712
|
this.articleDetailsInformation.warehouseNumber = event;
|
|
1731
|
-
|
|
1713
|
+
console.log(event);
|
|
1714
|
+
if (this.dataWareHouseCode != null) {
|
|
1732
1715
|
this._stockService.getArticleDetails(this.articleDetailsInformation).then((details) => {
|
|
1733
1716
|
this.articleDetails = details;
|
|
1734
1717
|
});
|
|
@@ -1736,23 +1719,22 @@ class StockInformationGridComponent {
|
|
|
1736
1719
|
}
|
|
1737
1720
|
getInOrderData() {
|
|
1738
1721
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1739
|
-
const inOrderData = new
|
|
1740
|
-
inOrderData.type = "
|
|
1722
|
+
const inOrderData = new GetStockHistoryRequest();
|
|
1723
|
+
inOrderData.type = "O";
|
|
1741
1724
|
inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
1742
|
-
|
|
1743
|
-
|
|
1725
|
+
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
1726
|
+
this.inOrderInformation = yield this._stockService.getStockHistory(inOrderData);
|
|
1744
1727
|
});
|
|
1745
1728
|
}
|
|
1746
1729
|
getOrderData() {
|
|
1747
1730
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1748
|
-
const
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1731
|
+
const inOrderData = new GetStockHistoryRequest();
|
|
1732
|
+
inOrderData.type = "B";
|
|
1733
|
+
inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
1734
|
+
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
1735
|
+
this.orderInformation = yield this._stockService.getStockHistory(inOrderData);
|
|
1752
1736
|
});
|
|
1753
1737
|
}
|
|
1754
|
-
addNewRow() {
|
|
1755
|
-
}
|
|
1756
1738
|
}
|
|
1757
1739
|
StockInformationGridComponent.decorators = [
|
|
1758
1740
|
{ type: Component, args: [{
|
|
@@ -1775,11 +1757,6 @@ StockInformationGridComponent.decorators = [
|
|
|
1775
1757
|
<div class="stock-grid">
|
|
1776
1758
|
<co-simple-grid *ngIf="activeTab === tabs[0] && hideOrShowTabs"
|
|
1777
1759
|
[data]="articleStockInformation"
|
|
1778
|
-
class="simple-grid"
|
|
1779
|
-
[showAdd]="true"
|
|
1780
|
-
[showToolbar]="true"
|
|
1781
|
-
(addRow)="addNewRow()"
|
|
1782
|
-
[inlineEdit]="true"
|
|
1783
1760
|
>
|
|
1784
1761
|
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseNo'" [order]="10"></co-simple-grid-column>
|
|
1785
1762
|
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'warehouseName'" [order]="11"></co-simple-grid-column>
|
|
@@ -1795,15 +1772,15 @@ StockInformationGridComponent.decorators = [
|
|
|
1795
1772
|
|
|
1796
1773
|
<co-simple-grid *ngIf="activeTab === tabs[1]"
|
|
1797
1774
|
[data]="inOrderInformation"
|
|
1798
|
-
class="simple-grid"
|
|
1799
1775
|
>
|
|
1800
|
-
<co-simple-grid-column [headerText]="'IN_ORDER2'" [field]="'
|
|
1776
|
+
<co-simple-grid-column [headerText]="'IN_ORDER2'" [field]="'amount'"></co-simple-grid-column>
|
|
1801
1777
|
<co-simple-grid-column [headerText]="'CUSTOMER'" [field]="'user'"></co-simple-grid-column>
|
|
1802
|
-
<co-simple-grid-column [headerText]="'DATE'" [field]="'
|
|
1803
|
-
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'
|
|
1778
|
+
<co-simple-grid-column [headerText]="'DATE'" [field]="'mutationDate'"></co-simple-grid-column>
|
|
1779
|
+
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
|
|
1804
1780
|
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'wareHouseNr'"></co-simple-grid-column>
|
|
1805
1781
|
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'locationNr'"></co-simple-grid-column>
|
|
1806
1782
|
<co-simple-grid-column [headerText]="'STOCK'" [field]="'amountInStock'"></co-simple-grid-column>
|
|
1783
|
+
<co-simple-grid-column [headerText]="'COMMISSION2'" [field]="'commission'"></co-simple-grid-column>
|
|
1807
1784
|
<co-simple-grid-column [headerText]="'TRANSFER'" [field]="'transfer'">
|
|
1808
1785
|
<ng-template #template let-row="row">
|
|
1809
1786
|
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.DeliveryTruck)" (click)="handleStockTransferClick($event)"></co-icon>
|
|
@@ -1811,18 +1788,17 @@ StockInformationGridComponent.decorators = [
|
|
|
1811
1788
|
</co-simple-grid-column>
|
|
1812
1789
|
<co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
|
|
1813
1790
|
<ng-template #template let-row="row">
|
|
1814
|
-
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog(
|
|
1791
|
+
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog()"></co-icon>
|
|
1815
1792
|
</ng-template>
|
|
1816
1793
|
</co-simple-grid-column>
|
|
1817
1794
|
</co-simple-grid>
|
|
1818
1795
|
|
|
1819
1796
|
<co-simple-grid *ngIf="activeTab === tabs[2]"
|
|
1820
1797
|
[data]="orderInformation"
|
|
1821
|
-
class="simple-grid"
|
|
1822
1798
|
>
|
|
1823
|
-
<co-simple-grid-column [headerText]="'PURCHASE_ORDER_NR'" [field]="'
|
|
1824
|
-
<co-simple-grid-column [headerText]="'DATE'" [field]="'
|
|
1825
|
-
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'
|
|
1799
|
+
<co-simple-grid-column [headerText]="'PURCHASE_ORDER_NR'" [field]="'seriesNr'"></co-simple-grid-column>
|
|
1800
|
+
<co-simple-grid-column [headerText]="'DATE'" [field]="'mutationDate'"></co-simple-grid-column>
|
|
1801
|
+
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
|
|
1826
1802
|
<co-simple-grid-column [headerText]="'RESERVED'" [field]="'reserved'"></co-simple-grid-column>
|
|
1827
1803
|
<co-simple-grid-column [headerText]="'FREE_STOCK'" [field]="'freeStock'"></co-simple-grid-column>
|
|
1828
1804
|
<co-simple-grid-column [headerText]="'DELIVERY_DATE1'" [field]="'deliveryDate'"></co-simple-grid-column>
|
|
@@ -1848,7 +1824,6 @@ StockInformationGridComponent.decorators = [
|
|
|
1848
1824
|
|
|
1849
1825
|
<!-- TODO move to own component stock-location-->
|
|
1850
1826
|
<co-simple-grid [data]="articleDetails"
|
|
1851
|
-
class="simple-grid"
|
|
1852
1827
|
>
|
|
1853
1828
|
<div class="stock-location-group">
|
|
1854
1829
|
<div class="stock-location-left-group">
|
|
@@ -1878,7 +1853,7 @@ StockInformationGridComponent.decorators = [
|
|
|
1878
1853
|
</co-simple-grid-column>
|
|
1879
1854
|
<co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
|
|
1880
1855
|
<ng-template #template let-row="row">
|
|
1881
|
-
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog(
|
|
1856
|
+
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog()"></co-icon>
|
|
1882
1857
|
</ng-template>
|
|
1883
1858
|
</co-simple-grid-column>
|
|
1884
1859
|
</co-simple-grid>
|
|
@@ -1895,7 +1870,6 @@ StockInformationGridComponent.decorators = [
|
|
|
1895
1870
|
<span class="stock-button-back" [textContent]="'BACK_TO_STOCK_LINES'" (click)="backToStockInformation()"></span>
|
|
1896
1871
|
</div>
|
|
1897
1872
|
<co-simple-grid [data]="stockHistoryInformation"
|
|
1898
|
-
class="simple-grid"
|
|
1899
1873
|
>
|
|
1900
1874
|
<co-simple-grid-column [headerText]="'MUTATION_DATE'" [field]="'mutationDate'"></co-simple-grid-column>
|
|
1901
1875
|
<co-simple-grid-column [headerText]="'MUTATION_TIME'" [field]="'mutationTime'"></co-simple-grid-column>
|
|
@@ -1913,7 +1887,7 @@ StockInformationGridComponent.decorators = [
|
|
|
1913
1887
|
<co-simple-grid-column [headerText]="'MUTATION_TYPE'" [field]="'mutationType'"></co-simple-grid-column>
|
|
1914
1888
|
<co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
|
|
1915
1889
|
<ng-template #template let-row="row">
|
|
1916
|
-
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog(
|
|
1890
|
+
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog()"></co-icon>
|
|
1917
1891
|
</ng-template>
|
|
1918
1892
|
</co-simple-grid-column>
|
|
1919
1893
|
</co-simple-grid>
|
|
@@ -2150,9 +2124,9 @@ var SendOption;
|
|
|
2150
2124
|
})(SendOption || (SendOption = {}));
|
|
2151
2125
|
|
|
2152
2126
|
class SendMethodDialogComponent {
|
|
2153
|
-
constructor(iconCacheService,
|
|
2127
|
+
constructor(iconCacheService, _stockService) {
|
|
2154
2128
|
this.iconCacheService = iconCacheService;
|
|
2155
|
-
this.
|
|
2129
|
+
this._stockService = _stockService;
|
|
2156
2130
|
this.icons = Icon;
|
|
2157
2131
|
this.sendOption = SendOption;
|
|
2158
2132
|
this.sendOptions = [
|
|
@@ -2166,10 +2140,11 @@ class SendMethodDialogComponent {
|
|
|
2166
2140
|
iconName: this.icons.Xml }
|
|
2167
2141
|
];
|
|
2168
2142
|
this.activeSendOption = SendOption.Email;
|
|
2143
|
+
this.amountToPrint = 1;
|
|
2169
2144
|
this.showStandardPrinterOptions = false;
|
|
2170
2145
|
this.showPrinterSelections = false;
|
|
2171
2146
|
this.showExitButton = true;
|
|
2172
|
-
this.printTemplatesField = { text: "name", value: "
|
|
2147
|
+
this.printTemplatesField = { text: "name", value: "name" };
|
|
2173
2148
|
this.emails = ['lars.vdv@colijn-it.nl', 'david@colijn-it.nl', 'ruben@colijn-it.nl'];
|
|
2174
2149
|
this.models = [false, false, true];
|
|
2175
2150
|
this.layouts = ['Layout 1', 'Layout 2', 'Layout 3'];
|
|
@@ -2178,7 +2153,7 @@ class SendMethodDialogComponent {
|
|
|
2178
2153
|
this.printButtonClicked = new EventEmitter();
|
|
2179
2154
|
}
|
|
2180
2155
|
set options(value) {
|
|
2181
|
-
this.
|
|
2156
|
+
this._stockService.connectConnector(value);
|
|
2182
2157
|
}
|
|
2183
2158
|
showClass() {
|
|
2184
2159
|
return true;
|
|
@@ -2188,7 +2163,7 @@ class SendMethodDialogComponent {
|
|
|
2188
2163
|
}
|
|
2189
2164
|
getPrinters() {
|
|
2190
2165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2191
|
-
return this.
|
|
2166
|
+
return this._stockService.getAllPrinters(true).then((list) => {
|
|
2192
2167
|
this.printerList = list;
|
|
2193
2168
|
});
|
|
2194
2169
|
});
|
|
@@ -2215,12 +2190,11 @@ class SendMethodDialogComponent {
|
|
|
2215
2190
|
}
|
|
2216
2191
|
onPrinterClicked(printer) {
|
|
2217
2192
|
this.defaultPrinter = printer.name;
|
|
2218
|
-
this.stockService.printSticker.printerName = printer.name;
|
|
2219
2193
|
this.showPrinterSelections = !this.showPrinterSelections;
|
|
2220
2194
|
}
|
|
2221
2195
|
getPrintTemplates() {
|
|
2222
2196
|
const data = new StockStickersPrintLayoutsBo();
|
|
2223
|
-
this.
|
|
2197
|
+
this._stockService.getStockStickerTemplates(data).then((templates) => {
|
|
2224
2198
|
this.printTemplates = templates;
|
|
2225
2199
|
});
|
|
2226
2200
|
}
|
|
@@ -2274,7 +2248,7 @@ SendMethodDialogComponent.decorators = [
|
|
|
2274
2248
|
<div class="email-option-content" *ngIf="activeSendOption === sendOption.Print">
|
|
2275
2249
|
<div class="lov-wrapper">
|
|
2276
2250
|
<co-input-combo-box
|
|
2277
|
-
[(model)]="
|
|
2251
|
+
[(model)]="selectedLayout"
|
|
2278
2252
|
[collection]="printTemplates"
|
|
2279
2253
|
[fields]="printTemplatesField"
|
|
2280
2254
|
[forceReadonly]="true"
|
|
@@ -2318,7 +2292,7 @@ SendMethodDialogComponent.decorators = [
|
|
|
2318
2292
|
<div class="print-footer-wrapper">
|
|
2319
2293
|
<div class="input-number-wrapper">
|
|
2320
2294
|
<co-input-number-picker class="number-picker"
|
|
2321
|
-
[step]="1" [(model)]="
|
|
2295
|
+
[step]="1" [(model)]="amountToPrint" [min]="1"
|
|
2322
2296
|
[ngModelOptions]="{debounce: 1}">
|
|
2323
2297
|
</co-input-number-picker>
|
|
2324
2298
|
</div>
|
|
@@ -2368,7 +2342,6 @@ SendMethodDialogComponent.propDecorators = {
|
|
|
2368
2342
|
showDialog: [{ type: Input }],
|
|
2369
2343
|
headerTitle: [{ type: Input }],
|
|
2370
2344
|
printerList: [{ type: Input }],
|
|
2371
|
-
articleData: [{ type: Input }],
|
|
2372
2345
|
startSignatureClicked: [{ type: Output }],
|
|
2373
2346
|
printButtonClicked: [{ type: Output }],
|
|
2374
2347
|
showClass: [{ type: HostBinding, args: ["class.ione-send-method-dialog",] }]
|
|
@@ -2739,6 +2712,93 @@ KeyPadModule.decorators = [
|
|
|
2739
2712
|
},] }
|
|
2740
2713
|
];
|
|
2741
2714
|
|
|
2715
|
+
class LayoutSwitcherComponent {
|
|
2716
|
+
constructor(iconCacheService) {
|
|
2717
|
+
this.iconCacheService = iconCacheService;
|
|
2718
|
+
this.icon = Icon;
|
|
2719
|
+
this.layoutItems = [];
|
|
2720
|
+
this.layoutSwitchEmit = new EventEmitter();
|
|
2721
|
+
this.showMaskSidebar = false;
|
|
2722
|
+
this._activeIndex = 0;
|
|
2723
|
+
}
|
|
2724
|
+
showClass() {
|
|
2725
|
+
return true;
|
|
2726
|
+
}
|
|
2727
|
+
get activeIndex() {
|
|
2728
|
+
return this._activeIndex;
|
|
2729
|
+
}
|
|
2730
|
+
set activeIndex(index) {
|
|
2731
|
+
this._activeIndex = index;
|
|
2732
|
+
this.toggleMaskSidebar();
|
|
2733
|
+
this.layoutSwitchEmit.emit(this.layoutItems[index]);
|
|
2734
|
+
}
|
|
2735
|
+
toggleMaskSidebar() {
|
|
2736
|
+
this.showMaskSidebar = !this.showMaskSidebar;
|
|
2737
|
+
}
|
|
2738
|
+
}
|
|
2739
|
+
LayoutSwitcherComponent.decorators = [
|
|
2740
|
+
{ type: Component, args: [{
|
|
2741
|
+
selector: "layout-switcher",
|
|
2742
|
+
template: `
|
|
2743
|
+
<div class="mask-wrapper" [class.mask-wrapper-active]='showMaskSidebar' @showHideSidebar>
|
|
2744
|
+
<div class="icon-wrapper" (click)="toggleMaskSidebar()">
|
|
2745
|
+
<co-icon class="icon-mask" [iconData]="iconCacheService.getIcon(icon.BringForwardRegular)" [@positionIcon]="showMaskSidebar"></co-icon>
|
|
2746
|
+
|
|
2747
|
+
<co-icon class='icon-mask-sidebar-handle' [@positionHandle]='showMaskSidebar' [iconData]="showMaskSidebar ? iconCacheService.getIcon(this.icon.AngleLeftSolid) : iconCacheService.getIcon(this.icon.AngleRightSolid)"></co-icon>
|
|
2748
|
+
</div>
|
|
2749
|
+
|
|
2750
|
+
<div class="mask-content" *ngIf="showMaskSidebar" @showHideSidebar>
|
|
2751
|
+
<span *ngFor='let item of this.layoutItems' [class.active]="this.activeIndex === this.layoutItems.indexOf(item)" [textContent]="item" (click)='activeIndex = this.layoutItems.indexOf(item)' ></span>
|
|
2752
|
+
</div>
|
|
2753
|
+
</div>
|
|
2754
|
+
|
|
2755
|
+
`,
|
|
2756
|
+
animations: [
|
|
2757
|
+
trigger("showHideSidebar", [
|
|
2758
|
+
state("void", style({ "width": "0" })),
|
|
2759
|
+
state("*", style({ "width": "*" })),
|
|
2760
|
+
transition("void <=> *", animate(200))
|
|
2761
|
+
]),
|
|
2762
|
+
trigger("positionIcon", [
|
|
2763
|
+
state("true", style({ "left": "70px" })),
|
|
2764
|
+
state("false", style({ "left": "10px" })),
|
|
2765
|
+
transition("true <=> false", animate(200))
|
|
2766
|
+
]),
|
|
2767
|
+
trigger("positionHandle", [
|
|
2768
|
+
state("true", style({ "left": "15px" })),
|
|
2769
|
+
state("false", style({ "left": "75px" })),
|
|
2770
|
+
transition("true <=> false", animate(200))
|
|
2771
|
+
])
|
|
2772
|
+
],
|
|
2773
|
+
encapsulation: ViewEncapsulation.None
|
|
2774
|
+
},] }
|
|
2775
|
+
];
|
|
2776
|
+
LayoutSwitcherComponent.ctorParameters = () => [
|
|
2777
|
+
{ type: IconCacheService }
|
|
2778
|
+
];
|
|
2779
|
+
LayoutSwitcherComponent.propDecorators = {
|
|
2780
|
+
showClass: [{ type: HostBinding, args: ['class.layout-switcher',] }],
|
|
2781
|
+
layoutItems: [{ type: Input }],
|
|
2782
|
+
layoutSwitchEmit: [{ type: Output }]
|
|
2783
|
+
};
|
|
2784
|
+
|
|
2785
|
+
class LayoutSwitcherModule {
|
|
2786
|
+
}
|
|
2787
|
+
LayoutSwitcherModule.decorators = [
|
|
2788
|
+
{ type: NgModule, args: [{
|
|
2789
|
+
imports: [
|
|
2790
|
+
CommonModule,
|
|
2791
|
+
IconModule
|
|
2792
|
+
],
|
|
2793
|
+
declarations: [
|
|
2794
|
+
LayoutSwitcherComponent,
|
|
2795
|
+
],
|
|
2796
|
+
exports: [
|
|
2797
|
+
LayoutSwitcherComponent
|
|
2798
|
+
]
|
|
2799
|
+
},] }
|
|
2800
|
+
];
|
|
2801
|
+
|
|
2742
2802
|
/*
|
|
2743
2803
|
* Public API Surface of sharedcomponents
|
|
2744
2804
|
*/
|
|
@@ -2747,5 +2807,5 @@ KeyPadModule.decorators = [
|
|
|
2747
2807
|
* Generated bundle index. Do not edit.
|
|
2748
2808
|
*/
|
|
2749
2809
|
|
|
2750
|
-
export { DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, SendMethodDialogComponent, SendMethodDialogModule, StockComponent, StockModule, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockService as ɵc, IoneConnectorAdapterService as ɵd, IconCacheService as ɵe, StockInformationComponent as ɵf, StockInformationGridComponent as ɵg, StockLocationComponent as ɵh, StockTransferComponent as ɵi, StockChangeAmountComponent as ɵj };
|
|
2810
|
+
export { DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, StockComponent, StockModule, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockService as ɵc, IoneConnectorAdapterService as ɵd, IconCacheService as ɵe, StockInformationComponent as ɵf, StockInformationGridComponent as ɵg, StockLocationComponent as ɵh, StockTransferComponent as ɵi, StockChangeAmountComponent as ɵj };
|
|
2751
2811
|
//# sourceMappingURL=colijnit-sharedcomponents.js.map
|