@colijnit/catalog 255.1.1 → 255.1.3

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.
Files changed (103) hide show
  1. package/bundles/colijnit-catalog.umd.js +1157 -42
  2. package/bundles/colijnit-catalog.umd.js.map +1 -1
  3. package/colijnit-catalog.d.ts +8 -2
  4. package/colijnit-catalog.metadata.json +1 -1
  5. package/esm2015/colijnit-catalog.js +9 -3
  6. package/esm2015/lib/catalog-version.js +3 -3
  7. package/esm2015/lib/component/catalog-search/catalog-search.component.js +8 -2
  8. package/esm2015/lib/component/catalog-search/catalog-search.module.js +20 -2
  9. package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +1 -1
  10. package/esm2015/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.component.js +88 -0
  11. package/esm2015/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.module.js +24 -0
  12. package/esm2015/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.component.js +89 -0
  13. package/esm2015/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.module.js +27 -0
  14. package/esm2015/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.component.js +104 -0
  15. package/esm2015/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.module.js +24 -0
  16. package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.component.js +89 -0
  17. package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.module.js +27 -0
  18. package/esm2015/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.component.js +108 -0
  19. package/esm2015/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.module.js +24 -0
  20. package/esm2015/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.component.js +95 -0
  21. package/esm2015/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.module.js +27 -0
  22. package/esm2015/lib/model/article-stock-comparison-search-grid-result.js +3 -0
  23. package/esm2015/lib/model/article-stock-comparison-search-grid-selection.js +4 -0
  24. package/esm2015/lib/model/article-stock-comparison-search-tile-result.js +3 -0
  25. package/esm2015/lib/model/article-stock-comparison-search-tile-selection.js +4 -0
  26. package/esm2015/lib/model/article-stock-search-grid-selection.js +4 -0
  27. package/esm2015/lib/model/article-stock-search-tile-selection.js +4 -0
  28. package/esm2015/lib/model/article-stock-transfer-search-grid-result.js +3 -0
  29. package/esm2015/lib/model/article-stock-transfer-search-grid-selection.js +12 -0
  30. package/esm2015/lib/model/article-stock-transfer-search-tile-result.js +3 -0
  31. package/esm2015/lib/model/article-stock-transfer-search-tile-selection.js +4 -0
  32. package/esm2015/lib/model/articles-stock-search-grid-result.js +3 -0
  33. package/esm2015/lib/model/articles-stock-search-tile-result.js +3 -0
  34. package/esm2015/lib/service/catalog-connector-adapter.service.js +130 -1
  35. package/esm2015/lib/service/catalog-connector.service.js +46 -1
  36. package/esm2015/lib/service/catalog-search.service.js +1 -1
  37. package/esm2015/lib/service/catalog-stock-comparison.service.js +90 -0
  38. package/esm2015/lib/service/catalog-stock-transfer.service.js +90 -0
  39. package/esm2015/lib/service/catalog-stock.service.js +90 -0
  40. package/esm2015/public_api.js +10 -1
  41. package/fesm2015/colijnit-catalog.js +1221 -80
  42. package/fesm2015/colijnit-catalog.js.map +1 -1
  43. package/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.component.d.ts +11 -0
  44. package/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.module.d.ts +2 -0
  45. package/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.scss +0 -0
  46. package/lib/component/catalog-stock-comparison-list/style/_layout.scss +5 -0
  47. package/lib/component/catalog-stock-comparison-list/style/_material-definition.scss +0 -0
  48. package/lib/component/catalog-stock-comparison-list/style/_theme.scss +4 -0
  49. package/lib/component/catalog-stock-comparison-list/style/material.scss +4 -0
  50. package/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.component.d.ts +16 -0
  51. package/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.module.d.ts +2 -0
  52. package/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.scss +88 -0
  53. package/lib/component/catalog-stock-comparison-tile/style/_layout.scss +16 -0
  54. package/lib/component/catalog-stock-comparison-tile/style/_material-definition.scss +0 -0
  55. package/lib/component/catalog-stock-comparison-tile/style/_theme.scss +4 -0
  56. package/lib/component/catalog-stock-comparison-tile/style/material.scss +4 -0
  57. package/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.component.d.ts +11 -0
  58. package/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.module.d.ts +2 -0
  59. package/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.scss +0 -0
  60. package/lib/component/catalog-stock-overview-list/style/_layout.scss +5 -0
  61. package/lib/component/catalog-stock-overview-list/style/_material-definition.scss +0 -0
  62. package/lib/component/catalog-stock-overview-list/style/_theme.scss +4 -0
  63. package/lib/component/catalog-stock-overview-list/style/material.scss +4 -0
  64. package/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.component.d.ts +16 -0
  65. package/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.module.d.ts +2 -0
  66. package/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.scss +86 -0
  67. package/lib/component/catalog-stock-overview-tile/style/_layout.scss +16 -0
  68. package/lib/component/catalog-stock-overview-tile/style/_material-definition.scss +0 -0
  69. package/lib/component/catalog-stock-overview-tile/style/_theme.scss +4 -0
  70. package/lib/component/catalog-stock-overview-tile/style/material.scss +4 -0
  71. package/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.component.d.ts +11 -0
  72. package/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.module.d.ts +2 -0
  73. package/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.scss +0 -0
  74. package/lib/component/catalog-warehouse-transfers-list/style/_layout.scss +5 -0
  75. package/lib/component/catalog-warehouse-transfers-list/style/_material-definition.scss +0 -0
  76. package/lib/component/catalog-warehouse-transfers-list/style/_theme.scss +4 -0
  77. package/lib/component/catalog-warehouse-transfers-list/style/material.scss +4 -0
  78. package/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.component.d.ts +16 -0
  79. package/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.module.d.ts +2 -0
  80. package/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.scss +92 -0
  81. package/lib/component/catalog-warehouse-transfers-tile/style/_layout.scss +16 -0
  82. package/lib/component/catalog-warehouse-transfers-tile/style/_material-definition.scss +0 -0
  83. package/lib/component/catalog-warehouse-transfers-tile/style/_theme.scss +4 -0
  84. package/lib/component/catalog-warehouse-transfers-tile/style/material.scss +4 -0
  85. package/lib/model/article-stock-comparison-search-grid-result.d.ts +5 -0
  86. package/lib/model/article-stock-comparison-search-grid-selection.d.ts +15 -0
  87. package/lib/model/article-stock-comparison-search-tile-result.d.ts +5 -0
  88. package/lib/model/article-stock-comparison-search-tile-selection.d.ts +15 -0
  89. package/lib/model/article-stock-search-grid-selection.d.ts +21 -0
  90. package/lib/model/article-stock-search-tile-selection.d.ts +15 -0
  91. package/lib/model/article-stock-transfer-search-grid-result.d.ts +5 -0
  92. package/lib/model/article-stock-transfer-search-grid-selection.d.ts +21 -0
  93. package/lib/model/article-stock-transfer-search-tile-result.d.ts +5 -0
  94. package/lib/model/article-stock-transfer-search-tile-selection.d.ts +16 -0
  95. package/lib/model/articles-stock-search-grid-result.d.ts +5 -0
  96. package/lib/model/articles-stock-search-tile-result.d.ts +5 -0
  97. package/lib/service/catalog-connector-adapter.service.d.ts +18 -0
  98. package/lib/service/catalog-connector.service.d.ts +18 -0
  99. package/lib/service/catalog-stock-comparison.service.d.ts +30 -0
  100. package/lib/service/catalog-stock-transfer.service.d.ts +30 -0
  101. package/lib/service/catalog-stock.service.d.ts +30 -0
  102. package/package.json +2 -2
  103. package/public_api.d.ts +9 -0
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, EventEmitter, Component, ViewEncapsulation, Input, Output, HostBinding, ChangeDetectorRef, ViewChild, ElementRef, Pipe, NgModule, Host, Directive, HostListener, ViewChildren } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
- import { __awaiter } from 'tslib';
4
+ import { __awaiter, __decorate } from 'tslib';
5
5
  import { Subject, BehaviorSubject, Observable } from 'rxjs';
6
6
  import { Options } from '@colijnit/ioneconnector/build/model/options';
7
7
  import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
@@ -32,9 +32,10 @@ import { Transaction } from '@colijnit/transactionapi/build/transaction';
32
32
  import { ExternalCatalogStartupInfo } from '@colijnit/articleapi/build/model/external-catalog-startup-info';
33
33
  import { Color } from '@colijnit/mainapi/build/model/color.bo';
34
34
  import { TransactionInfoResponse } from '@colijnit/transactionapi/build/model/transaction-info-response.bo';
35
+ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date-field.decorator';
35
36
  import { ObjectUtils } from '@colijnit/ioneconnector/build/utils/object-utils';
36
37
  import { FileUtils } from '@colijnit/ioneconnector/build/utils/file-utils';
37
- import { FilterViewmodel, FilterItemViewmodel, FilterItemModule, InputTextModule, ButtonModule, IconModule, FilterItemMode as FilterItemMode$1, InputDatePickerModule, IconCollapseHandleModule, CoDialogModule, ListOfValuesModule, CheckmarkOverlayModule, ImageModule, OverlayModule, OverlayService, InputSearchModule, PaginationBarModule } from '@colijnit/corecomponents_v12';
38
+ import { FilterViewmodel, FilterItemViewmodel, FilterItemModule, InputTextModule, ButtonModule, IconModule, FilterItemMode as FilterItemMode$1, InputDatePickerModule, IconCollapseHandleModule, CoDialogModule, ListOfValuesModule, CheckmarkOverlayModule, ImageModule, OverlayModule, OverlayService, InputSearchModule, PaginationBarModule, SimpleGridModule } from '@colijnit/corecomponents_v12';
38
39
  import { PagingParameters } from '@colijnit/ioneconnector/build/model/paging-parameters';
39
40
  import { trigger, state, style, transition, animate } from '@angular/animations';
40
41
  import * as i1 from '@angular/platform-browser';
@@ -42,6 +43,9 @@ import { DomSanitizer } from '@angular/platform-browser';
42
43
  import { InputCheckboxModule, SliderComponent, IconModule as IconModule$1, CheckboxSelectModule, PriceDisplayPipeModule, ButtonModule as ButtonModule$1 } from '@colijnit/corecomponents';
43
44
  import { DomainName } from '@colijnit/mainapi/build/enum/domain-name.enum';
44
45
  import { FilterItemMode } from '@colijnit/corecomponents_v12/';
46
+ import { ArticleStockSearchRequest } from '@colijnit/articleapi/build/model/article-stock-search-request';
47
+ import { ArticleStockTransferSearchRequest } from '@colijnit/articleapi/build/model/article-stock-transfer-search-request';
48
+ import { ArticleStockComparisonSearchRequest } from '@colijnit/articleapi/build/model/article-stock-comparison-search-request';
45
49
  import { ExternalCatalogTypes } from '@colijnit/transactionapi/build/enum/external-catalog-types.enum';
46
50
 
47
51
  // this file is dynamically created, do not change this
@@ -49,8 +53,8 @@ class Version {
49
53
  constructor() {
50
54
  this.name = "@colijnit/catalog";
51
55
  this.description = "iOne Catalog module based on Angular 12";
52
- this.symVer = "255.1.1";
53
- this.publishDate = "7/18/2024, 3:04:00 PM";
56
+ this.symVer = "255.1.3";
57
+ this.publishDate = "13/08/2024, 09:50:34";
54
58
  }
55
59
  }
56
60
 
@@ -272,6 +276,48 @@ CatalogSettingsService.ctorParameters = () => [
272
276
  class ArticlesSearchResult {
273
277
  }
274
278
 
279
+ class ArticleStockSearchTileSelection extends ArticleExtended {
280
+ }
281
+
282
+ class ArticleStockSearchGridSelection extends ArticleExtended {
283
+ }
284
+
285
+ class ArticlesStockSearchTileResult {
286
+ }
287
+
288
+ class ArticlesStockSearchGridResult {
289
+ }
290
+
291
+ class ArticleStockTransferSearchGridResult {
292
+ }
293
+
294
+ class ArticleStockTransferSearchGridSelection extends ArticleExtended {
295
+ }
296
+ __decorate([
297
+ DateField()
298
+ ], ArticleStockTransferSearchGridSelection.prototype, "changeDate", void 0);
299
+ __decorate([
300
+ DateField()
301
+ ], ArticleStockTransferSearchGridSelection.prototype, "creationDate", void 0);
302
+
303
+ class ArticleStockTransferSearchTileResult {
304
+ }
305
+
306
+ class ArticleStockTransferSearchTileSelection extends ArticleExtended {
307
+ }
308
+
309
+ class ArticleStockComparisonSearchTileResult {
310
+ }
311
+
312
+ class ArticleStockComparisonSearchTileSelection extends ArticleExtended {
313
+ }
314
+
315
+ class ArticleStockComparisonSearchGridResult {
316
+ }
317
+
318
+ class ArticleStockComparisonSearchGridSelection extends ArticleExtended {
319
+ }
320
+
275
321
  class CatalogConnectorAdapterService {
276
322
  constructor() {
277
323
  this.controllerInitialized = new BehaviorSubject(false);
@@ -351,6 +397,123 @@ class CatalogConnectorAdapterService {
351
397
  }
352
398
  });
353
399
  }
400
+ getArticlesForStockSearchTile(params, showLoader = true) {
401
+ return __awaiter(this, void 0, void 0, function* () {
402
+ const response = yield this.connector.searchArticlesForTileView(params, showLoader);
403
+ if (response && response.validationResult && response.validationResult.success) {
404
+ const result = new ArticlesStockSearchTileResult();
405
+ result.count = response.pagingParameters.resultCount;
406
+ result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockSearchTileSelection, response.resultObjects);
407
+ return result;
408
+ }
409
+ else {
410
+ console.error(response.validationMessagesAsString);
411
+ }
412
+ });
413
+ }
414
+ getArticlesForStockSearchGrid(params, showLoader = true) {
415
+ return __awaiter(this, void 0, void 0, function* () {
416
+ const response = yield this.connector.searchArticlesForGridView(params, showLoader);
417
+ if (response && response.validationResult && response.validationResult.success) {
418
+ const result = new ArticlesStockSearchGridResult();
419
+ result.count = response.pagingParameters.resultCount;
420
+ result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockSearchGridSelection, response.resultObjects);
421
+ return result;
422
+ }
423
+ else {
424
+ console.error(response.validationMessagesAsString);
425
+ }
426
+ });
427
+ }
428
+ getArticleGridViewExcelFile(params, showLoader = true) {
429
+ return __awaiter(this, void 0, void 0, function* () {
430
+ const response = yield this.connector.getArticleGridViewExcelFile(params, showLoader);
431
+ if (response && response.validationResult && response.validationResult.success) {
432
+ return this._boFactory.makeBOArrayFromRawBackendDataArray([], response.resultObjects);
433
+ }
434
+ else {
435
+ console.error(response.validationMessagesAsString);
436
+ }
437
+ });
438
+ }
439
+ getArticlesForStockTransferSearchTile(params, showLoader = true) {
440
+ return __awaiter(this, void 0, void 0, function* () {
441
+ const response = yield this.connector.searchTransferArticlesForTileView(params, showLoader);
442
+ if (response && response.validationResult && response.validationResult.success) {
443
+ const result = new ArticleStockTransferSearchTileResult();
444
+ result.count = response.pagingParameters.resultCount;
445
+ result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockTransferSearchTileSelection, response.resultObjects);
446
+ return result;
447
+ }
448
+ else {
449
+ console.error(response.validationMessagesAsString);
450
+ }
451
+ });
452
+ }
453
+ getArticlesForStockTransferSearchGrid(params, showLoader = true) {
454
+ return __awaiter(this, void 0, void 0, function* () {
455
+ const response = yield this.connector.searchTransferArticlesForGridView(params, showLoader);
456
+ if (response && response.validationResult && response.validationResult.success) {
457
+ const result = new ArticleStockTransferSearchGridResult();
458
+ result.count = response.pagingParameters.resultCount;
459
+ result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockTransferSearchGridSelection, response.resultObjects);
460
+ return result;
461
+ }
462
+ else {
463
+ console.error(response.validationMessagesAsString);
464
+ }
465
+ });
466
+ }
467
+ getTransferArticleGridViewExcelFile(params, showLoader = true) {
468
+ return __awaiter(this, void 0, void 0, function* () {
469
+ const response = yield this.connector.getTransferArticleGridViewExcelFile(params, showLoader);
470
+ if (response && response.validationResult && response.validationResult.success) {
471
+ return this._boFactory.makeBOArrayFromRawBackendDataArray([], response.resultObjects);
472
+ }
473
+ else {
474
+ console.error(response.validationMessagesAsString);
475
+ }
476
+ });
477
+ }
478
+ getArticlesForStockComparisonSearchTile(params, showLoader = true) {
479
+ return __awaiter(this, void 0, void 0, function* () {
480
+ const response = yield this.connector.searchComparisonArticlesForTileView(params, showLoader);
481
+ if (response && response.validationResult && response.validationResult.success) {
482
+ const result = new ArticleStockComparisonSearchTileResult();
483
+ result.count = response.pagingParameters.resultCount;
484
+ result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockComparisonSearchTileSelection, response.resultObjects);
485
+ return result;
486
+ }
487
+ else {
488
+ console.error(response.validationMessagesAsString);
489
+ }
490
+ });
491
+ }
492
+ getArticlesForStockComparisonSearchGrid(params, showLoader = true) {
493
+ return __awaiter(this, void 0, void 0, function* () {
494
+ const response = yield this.connector.searchComparisonArticlesForGridView(params, showLoader);
495
+ if (response && response.validationResult && response.validationResult.success) {
496
+ const result = new ArticleStockComparisonSearchGridResult();
497
+ result.count = response.pagingParameters.resultCount;
498
+ result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockComparisonSearchGridSelection, response.resultObjects);
499
+ return result;
500
+ }
501
+ else {
502
+ console.error(response.validationMessagesAsString);
503
+ }
504
+ });
505
+ }
506
+ getComparisonArticleGridViewExcelFile(params, showLoader = true) {
507
+ return __awaiter(this, void 0, void 0, function* () {
508
+ const response = yield this.connector.getComparisonArticleGridViewExcelFile(params, showLoader);
509
+ if (response && response.validationResult && response.validationResult.success) {
510
+ return this._boFactory.makeBOArrayFromRawBackendDataArray([], response.resultObjects);
511
+ }
512
+ else {
513
+ console.error(response.validationMessagesAsString);
514
+ }
515
+ });
516
+ }
354
517
  getCatalogDefinitions(showLoader = true) {
355
518
  return __awaiter(this, void 0, void 0, function* () {
356
519
  const response = yield this.connector.getCatalogDefinitions(showLoader);
@@ -1201,6 +1364,51 @@ class CatalogConnectorService {
1201
1364
  }).getValue(publicationCode);
1202
1365
  });
1203
1366
  }
1367
+ getArticlesForStockSearchTile(params, showLoader = true) {
1368
+ return __awaiter(this, void 0, void 0, function* () {
1369
+ return this._adapterService.getArticlesForStockSearchTile(params, showLoader);
1370
+ });
1371
+ }
1372
+ getArticlesForStockSearchGrid(params, showLoader = true) {
1373
+ return __awaiter(this, void 0, void 0, function* () {
1374
+ return this._adapterService.getArticlesForStockSearchGrid(params, showLoader);
1375
+ });
1376
+ }
1377
+ getArticleGridViewExcelFile(params, showLoader = true) {
1378
+ return __awaiter(this, void 0, void 0, function* () {
1379
+ return this._adapterService.getArticleGridViewExcelFile(params, showLoader);
1380
+ });
1381
+ }
1382
+ getArticlesForStockTransferSearchTile(params, showLoader = true) {
1383
+ return __awaiter(this, void 0, void 0, function* () {
1384
+ return this._adapterService.getArticlesForStockTransferSearchTile(params, showLoader);
1385
+ });
1386
+ }
1387
+ getArticlesForStockTransferSearchGrid(params, showLoader = true) {
1388
+ return __awaiter(this, void 0, void 0, function* () {
1389
+ return this._adapterService.getArticlesForStockTransferSearchGrid(params, showLoader);
1390
+ });
1391
+ }
1392
+ getTransferArticleGridViewExcelFile(params, showLoader = true) {
1393
+ return __awaiter(this, void 0, void 0, function* () {
1394
+ return this._adapterService.getTransferArticleGridViewExcelFile(params, showLoader);
1395
+ });
1396
+ }
1397
+ getArticlesForStockComparisonSearchTile(params, showLoader = true) {
1398
+ return __awaiter(this, void 0, void 0, function* () {
1399
+ return this._adapterService.getArticlesForStockComparisonSearchTile(params, showLoader);
1400
+ });
1401
+ }
1402
+ getArticlesForStockComparisonSearchGrid(params, showLoader = true) {
1403
+ return __awaiter(this, void 0, void 0, function* () {
1404
+ return this._adapterService.getArticlesForStockComparisonSearchGrid(params, showLoader);
1405
+ });
1406
+ }
1407
+ getComparisonArticleGridViewExcelFile(params, showLoader = true) {
1408
+ return __awaiter(this, void 0, void 0, function* () {
1409
+ return this._adapterService.getComparisonArticleGridViewExcelFile(params, showLoader);
1410
+ });
1411
+ }
1204
1412
  getCatalogDefinitions(showLoader = true) {
1205
1413
  return __awaiter(this, void 0, void 0, function* () {
1206
1414
  return this._selectMultipleCacheService.requestCache(CatalogDefinition, () => {
@@ -3552,96 +3760,342 @@ CatalogNavigationModule.decorators = [
3552
3760
  },] }
3553
3761
  ];
3554
3762
 
3555
- class CatalogNavigationService {
3556
- constructor(_catalog, _iOne, _optionsService, _imageService) {
3557
- this._catalog = _catalog;
3558
- this._iOne = _iOne;
3559
- this._optionsService = _optionsService;
3560
- this._imageService = _imageService;
3763
+ class CatalogStockService {
3764
+ constructor(_filterService, _catalogConnectorService, _settingsService, _optionService) {
3765
+ this._filterService = _filterService;
3766
+ this._catalogConnectorService = _catalogConnectorService;
3767
+ this._settingsService = _settingsService;
3768
+ this._optionService = _optionService;
3769
+ this.searchRequest = new ArticleExtendedRequest();
3770
+ this.stockSearchRequest = new ArticleStockSearchRequest();
3771
+ this.articlesPerPage = 20;
3772
+ this.tileArticles = [];
3773
+ this.gridArticles = [];
3774
+ this._currentPage = 1;
3561
3775
  this._subs = [];
3562
- this._connectionMade = false;
3563
- this._optionsSet = false;
3564
- this.navigationCategories = [];
3565
- this.allTurnoverGroups = [];
3566
- // this._subs.push(
3567
- // this._iOne.controllerInitialized.subscribe((initialized: boolean) => {
3568
- // if (initialized) {
3569
- // this._connectionMade = true;
3570
- // this.getCategories();
3571
- // }
3572
- // }),
3573
- // this._optionsService.parametersSet.subscribe((set: boolean) => {
3574
- // if (set) {
3575
- // this._optionsSet = true;
3576
- // this.getCategories();
3577
- // }
3578
- // })
3579
- // );
3580
- }
3581
- ngOnDestroy() {
3582
- this._subs.forEach(s => s.unsubscribe());
3583
- }
3584
- setCategory(category) {
3585
- // this._catalog.category = category;
3776
+ this._subs.push(this._optionService.parametersSet.subscribe((isSet) => {
3777
+ if (isSet) {
3778
+ if (this._settingsService.settings.catalogParameters) {
3779
+ this.searchRequest = this._settingsService.settings.catalogParameters;
3780
+ }
3781
+ }
3782
+ }));
3586
3783
  }
3587
- setTurnoverGroup(turnoverGroup) {
3588
- // this._catalog.turnoverGroup = turnoverGroup;
3784
+ get currentPage() {
3785
+ return this._currentPage;
3589
3786
  }
3590
- setExternalSourceUrl(url) {
3591
- this._catalog.externalSourceUrl = url;
3787
+ set currentPage(value) {
3788
+ this._currentPage = value;
3789
+ this.searchArticlesForTileView(false);
3592
3790
  }
3593
- setIoneSourceUrl(url, ioneUrl, id, username, password) {
3594
- this._catalog.ioneSourceUrl = url + '?url=' + ioneUrl + '&id=' + id + '&user=' + username + '&pass=' + password;
3791
+ ngOnDestroy() {
3792
+ this._subs.forEach(s => s.unsubscribe());
3595
3793
  }
3596
- navigateToHome() {
3597
- this._catalog.reset();
3794
+ searchArticlesForTileView(resetPaging = true, resetRequestParameters = false) {
3795
+ let lowerBound;
3796
+ if (!resetPaging) {
3797
+ lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
3798
+ }
3799
+ else {
3800
+ this._currentPage = 1;
3801
+ lowerBound = 1;
3802
+ }
3803
+ this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
3804
+ this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeWarehouse: '', rangeStockStatus: '' });
3805
+ this._catalogConnectorService.getArticlesForStockSearchTile(this.stockSearchRequest).then((result) => {
3806
+ this.tileArticles = result && result.articles ? result.articles : [];
3807
+ this.resultCount = result && result.count ? result.count : 0;
3808
+ this._filterService.getFilters(this.searchRequest);
3809
+ });
3598
3810
  }
3599
- getCategories() {
3600
- return __awaiter(this, void 0, void 0, function* () {
3601
- // if (this._optionsSet && this._connectionMade) {
3602
- // try {
3603
- // this._iOne.getArticleCategories(this._optionsService.parameters.publicationCode).then((cats: ArticleCategory[]) => {
3604
- // this._catalog.sortTurnoverGroups(cats);
3605
- // this.navigationCategories = cats;
3606
- // this.navigationCategories.forEach(cat => this._imageService.getCategoryImage(cat));
3607
- // this.getTurnoverGroupList();
3608
- // });
3609
- // } catch (e) {
3610
- //
3611
- // }
3612
- // }
3811
+ searchArticlesForGridView(resetPaging = true, resetRequestParameters = false) {
3812
+ let lowerBound;
3813
+ if (!resetPaging) {
3814
+ lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
3815
+ }
3816
+ else {
3817
+ this._currentPage = 1;
3818
+ lowerBound = 1;
3819
+ }
3820
+ this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
3821
+ this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeWarehouse: '', rangeStockStatus: '' });
3822
+ this._catalogConnectorService.getArticlesForStockSearchGrid(this.stockSearchRequest).then((result) => {
3823
+ this.gridArticles = result && result.articles ? result.articles : [];
3824
+ this.resultCount = result && result.count ? result.count : 0;
3825
+ this._filterService.getFilters(this.searchRequest);
3613
3826
  });
3614
3827
  }
3615
- getTurnoverGroupList() {
3616
- this.navigationCategories.forEach((category) => {
3617
- category.turnoverGroups.forEach(tog => this._imageService.getTurnoverGroupImage(tog));
3618
- this.allTurnoverGroups.push(...category.turnoverGroups);
3828
+ getArticleGridViewExcelFile() {
3829
+ this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeWarehouse: '', rangeStockStatus: '' });
3830
+ this._catalogConnectorService.getArticleGridViewExcelFile(this.stockSearchRequest).then((result) => {
3831
+ console.log('export: ', result);
3619
3832
  });
3620
3833
  }
3621
3834
  }
3622
- CatalogNavigationService.decorators = [
3835
+ CatalogStockService.decorators = [
3623
3836
  { type: Injectable }
3624
3837
  ];
3625
- CatalogNavigationService.ctorParameters = () => [
3626
- { type: CatalogService },
3838
+ CatalogStockService.ctorParameters = () => [
3839
+ { type: CatalogFilterService },
3627
3840
  { type: CatalogConnectorService },
3628
- { type: CatalogOptionsService },
3629
- { type: CatalogImageService }
3841
+ { type: CatalogSettingsService },
3842
+ { type: CatalogOptionsService }
3630
3843
  ];
3631
3844
 
3632
- class CatalogSearchComponent {
3633
- constructor(_settingsService, _catalogService, _catalogSearchService, _catalogEventService, iconCacheService) {
3845
+ class CatalogStockTransferService {
3846
+ constructor(_filterService, _catalogConnectorService, _settingsService, _optionService) {
3847
+ this._filterService = _filterService;
3848
+ this._catalogConnectorService = _catalogConnectorService;
3634
3849
  this._settingsService = _settingsService;
3635
- this._catalogService = _catalogService;
3636
- this._catalogSearchService = _catalogSearchService;
3637
- this._catalogEventService = _catalogEventService;
3638
- this.iconCacheService = iconCacheService;
3639
- this.icons = IconEnum;
3640
- this.createFrozenArticle = true;
3641
- this.showNavigation = false;
3642
- this.showLandingPage = false;
3643
- this.showFilter = false;
3644
- this.showViewModes = true;
3850
+ this._optionService = _optionService;
3851
+ this.searchRequest = new ArticleExtendedRequest();
3852
+ this.stockSearchRequest = new ArticleStockTransferSearchRequest();
3853
+ this.articlesPerPage = 20;
3854
+ this.transferTileArticles = [];
3855
+ this.transferGridArticles = [];
3856
+ this._currentPage = 1;
3857
+ this._subs = [];
3858
+ this._subs.push(this._optionService.parametersSet.subscribe((isSet) => {
3859
+ if (isSet) {
3860
+ if (this._settingsService.settings.catalogParameters) {
3861
+ this.searchRequest = this._settingsService.settings.catalogParameters;
3862
+ }
3863
+ }
3864
+ }));
3865
+ }
3866
+ get currentPage() {
3867
+ return this._currentPage;
3868
+ }
3869
+ set currentPage(value) {
3870
+ this._currentPage = value;
3871
+ this.searchArticlesForTileView(false);
3872
+ }
3873
+ ngOnDestroy() {
3874
+ this._subs.forEach(s => s.unsubscribe());
3875
+ }
3876
+ searchArticlesForTileView(resetPaging = true, resetRequestParameters = false) {
3877
+ let lowerBound;
3878
+ if (!resetPaging) {
3879
+ lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
3880
+ }
3881
+ else {
3882
+ this._currentPage = 1;
3883
+ lowerBound = 1;
3884
+ }
3885
+ this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
3886
+ this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeStockStatus: '', rangeSourceWarehouse: '', rangeTargetWarehouse: '' });
3887
+ this._catalogConnectorService.getArticlesForStockTransferSearchTile(this.stockSearchRequest).then((result) => {
3888
+ this.transferTileArticles = result && result.articles ? result.articles : [];
3889
+ this.resultCount = result && result.count ? result.count : 0;
3890
+ this._filterService.getFilters(this.searchRequest);
3891
+ });
3892
+ }
3893
+ searchArticlesForGridView(resetPaging = true, resetRequestParameters = false) {
3894
+ let lowerBound;
3895
+ if (!resetPaging) {
3896
+ lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
3897
+ }
3898
+ else {
3899
+ this._currentPage = 1;
3900
+ lowerBound = 1;
3901
+ }
3902
+ this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
3903
+ this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeStockStatus: '', rangeSourceWarehouse: '', rangeTargetWarehouse: '' });
3904
+ this._catalogConnectorService.getArticlesForStockTransferSearchGrid(this.stockSearchRequest).then((result) => {
3905
+ this.transferGridArticles = result && result.articles ? result.articles : [];
3906
+ this.resultCount = result && result.count ? result.count : 0;
3907
+ this._filterService.getFilters(this.searchRequest);
3908
+ });
3909
+ }
3910
+ getArticleGridViewExcelFile() {
3911
+ this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeStockStatus: '', rangeSourceWarehouse: '', rangeTargetWarehouse: '' });
3912
+ this._catalogConnectorService.getTransferArticleGridViewExcelFile(this.stockSearchRequest).then((result) => {
3913
+ console.log('export: ', result);
3914
+ });
3915
+ }
3916
+ }
3917
+ CatalogStockTransferService.decorators = [
3918
+ { type: Injectable }
3919
+ ];
3920
+ CatalogStockTransferService.ctorParameters = () => [
3921
+ { type: CatalogFilterService },
3922
+ { type: CatalogConnectorService },
3923
+ { type: CatalogSettingsService },
3924
+ { type: CatalogOptionsService }
3925
+ ];
3926
+
3927
+ class CatalogNavigationService {
3928
+ constructor(_catalog, _iOne, _optionsService, _imageService) {
3929
+ this._catalog = _catalog;
3930
+ this._iOne = _iOne;
3931
+ this._optionsService = _optionsService;
3932
+ this._imageService = _imageService;
3933
+ this._subs = [];
3934
+ this._connectionMade = false;
3935
+ this._optionsSet = false;
3936
+ this.navigationCategories = [];
3937
+ this.allTurnoverGroups = [];
3938
+ // this._subs.push(
3939
+ // this._iOne.controllerInitialized.subscribe((initialized: boolean) => {
3940
+ // if (initialized) {
3941
+ // this._connectionMade = true;
3942
+ // this.getCategories();
3943
+ // }
3944
+ // }),
3945
+ // this._optionsService.parametersSet.subscribe((set: boolean) => {
3946
+ // if (set) {
3947
+ // this._optionsSet = true;
3948
+ // this.getCategories();
3949
+ // }
3950
+ // })
3951
+ // );
3952
+ }
3953
+ ngOnDestroy() {
3954
+ this._subs.forEach(s => s.unsubscribe());
3955
+ }
3956
+ setCategory(category) {
3957
+ // this._catalog.category = category;
3958
+ }
3959
+ setTurnoverGroup(turnoverGroup) {
3960
+ // this._catalog.turnoverGroup = turnoverGroup;
3961
+ }
3962
+ setExternalSourceUrl(url) {
3963
+ this._catalog.externalSourceUrl = url;
3964
+ }
3965
+ setIoneSourceUrl(url, ioneUrl, id, username, password) {
3966
+ this._catalog.ioneSourceUrl = url + '?url=' + ioneUrl + '&id=' + id + '&user=' + username + '&pass=' + password;
3967
+ }
3968
+ navigateToHome() {
3969
+ this._catalog.reset();
3970
+ }
3971
+ getCategories() {
3972
+ return __awaiter(this, void 0, void 0, function* () {
3973
+ // if (this._optionsSet && this._connectionMade) {
3974
+ // try {
3975
+ // this._iOne.getArticleCategories(this._optionsService.parameters.publicationCode).then((cats: ArticleCategory[]) => {
3976
+ // this._catalog.sortTurnoverGroups(cats);
3977
+ // this.navigationCategories = cats;
3978
+ // this.navigationCategories.forEach(cat => this._imageService.getCategoryImage(cat));
3979
+ // this.getTurnoverGroupList();
3980
+ // });
3981
+ // } catch (e) {
3982
+ //
3983
+ // }
3984
+ // }
3985
+ });
3986
+ }
3987
+ getTurnoverGroupList() {
3988
+ this.navigationCategories.forEach((category) => {
3989
+ category.turnoverGroups.forEach(tog => this._imageService.getTurnoverGroupImage(tog));
3990
+ this.allTurnoverGroups.push(...category.turnoverGroups);
3991
+ });
3992
+ }
3993
+ }
3994
+ CatalogNavigationService.decorators = [
3995
+ { type: Injectable }
3996
+ ];
3997
+ CatalogNavigationService.ctorParameters = () => [
3998
+ { type: CatalogService },
3999
+ { type: CatalogConnectorService },
4000
+ { type: CatalogOptionsService },
4001
+ { type: CatalogImageService }
4002
+ ];
4003
+
4004
+ class CatalogStockComparisonService {
4005
+ constructor(_filterService, _catalogConnectorService, _settingsService, _optionService) {
4006
+ this._filterService = _filterService;
4007
+ this._catalogConnectorService = _catalogConnectorService;
4008
+ this._settingsService = _settingsService;
4009
+ this._optionService = _optionService;
4010
+ this.searchRequest = new ArticleExtendedRequest();
4011
+ this.stockSearchRequest = new ArticleStockComparisonSearchRequest();
4012
+ this.articlesPerPage = 20;
4013
+ this.comparisonTileArticles = [];
4014
+ this.comparisonGridArticles = [];
4015
+ this._currentPage = 1;
4016
+ this._subs = [];
4017
+ this._subs.push(this._optionService.parametersSet.subscribe((isSet) => {
4018
+ if (isSet) {
4019
+ if (this._settingsService.settings.catalogParameters) {
4020
+ this.searchRequest = this._settingsService.settings.catalogParameters;
4021
+ }
4022
+ }
4023
+ }));
4024
+ }
4025
+ get currentPage() {
4026
+ return this._currentPage;
4027
+ }
4028
+ set currentPage(value) {
4029
+ this._currentPage = value;
4030
+ this.searchArticlesForTileView(false);
4031
+ }
4032
+ ngOnDestroy() {
4033
+ this._subs.forEach(s => s.unsubscribe());
4034
+ }
4035
+ searchArticlesForTileView(resetPaging = true, resetRequestParameters = false) {
4036
+ let lowerBound;
4037
+ if (!resetPaging) {
4038
+ lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
4039
+ }
4040
+ else {
4041
+ this._currentPage = 1;
4042
+ lowerBound = 1;
4043
+ }
4044
+ this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
4045
+ this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { sourceWarehouse: 0, targetWarehouse: 0 });
4046
+ this._catalogConnectorService.getArticlesForStockComparisonSearchTile(this.stockSearchRequest).then((result) => {
4047
+ this.comparisonTileArticles = result && result.articles ? result.articles : [];
4048
+ this.resultCount = result && result.count ? result.count : 0;
4049
+ this._filterService.getFilters(this.searchRequest);
4050
+ });
4051
+ }
4052
+ searchArticlesForGridView(resetPaging = true, resetRequestParameters = false) {
4053
+ let lowerBound;
4054
+ if (!resetPaging) {
4055
+ lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
4056
+ }
4057
+ else {
4058
+ this._currentPage = 1;
4059
+ lowerBound = 1;
4060
+ }
4061
+ this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
4062
+ this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { sourceWarehouse: 0, targetWarehouse: 0 });
4063
+ this._catalogConnectorService.getArticlesForStockComparisonSearchGrid(this.stockSearchRequest).then((result) => {
4064
+ this.comparisonGridArticles = result && result.articles ? result.articles : [];
4065
+ this.resultCount = result && result.count ? result.count : 0;
4066
+ this._filterService.getFilters(this.searchRequest);
4067
+ });
4068
+ }
4069
+ getArticleGridViewExcelFile() {
4070
+ this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { sourceWarehouse: 0, targetWarehouse: 0 });
4071
+ this._catalogConnectorService.getComparisonArticleGridViewExcelFile(this.stockSearchRequest).then((result) => {
4072
+ console.log('export: ', result);
4073
+ });
4074
+ }
4075
+ }
4076
+ CatalogStockComparisonService.decorators = [
4077
+ { type: Injectable }
4078
+ ];
4079
+ CatalogStockComparisonService.ctorParameters = () => [
4080
+ { type: CatalogFilterService },
4081
+ { type: CatalogConnectorService },
4082
+ { type: CatalogSettingsService },
4083
+ { type: CatalogOptionsService }
4084
+ ];
4085
+
4086
+ class CatalogSearchComponent {
4087
+ constructor(_settingsService, _catalogService, _catalogSearchService, _catalogEventService, iconCacheService) {
4088
+ this._settingsService = _settingsService;
4089
+ this._catalogService = _catalogService;
4090
+ this._catalogSearchService = _catalogSearchService;
4091
+ this._catalogEventService = _catalogEventService;
4092
+ this.iconCacheService = iconCacheService;
4093
+ this.icons = IconEnum;
4094
+ this.createFrozenArticle = true;
4095
+ this.showNavigation = false;
4096
+ this.showLandingPage = false;
4097
+ this.showFilter = false;
4098
+ this.showViewModes = true;
3645
4099
  this.settingsChange = new EventEmitter();
3646
4100
  this.onLookAtArticleButtonClick = new EventEmitter();
3647
4101
  this.onArButtonClick = new EventEmitter();
@@ -3793,7 +4247,10 @@ CatalogSearchComponent.decorators = [
3793
4247
  CatalogConnectorAdapterService,
3794
4248
  CatalogService,
3795
4249
  CatalogSettingsService,
3796
- CatalogSearchService
4250
+ CatalogSearchService,
4251
+ CatalogStockService,
4252
+ CatalogStockComparisonService,
4253
+ CatalogStockTransferService
3797
4254
  ],
3798
4255
  encapsulation: ViewEncapsulation.None,
3799
4256
  animations: [
@@ -4606,6 +5063,681 @@ CatalogSearchResultListModule.decorators = [
4606
5063
  },] }
4607
5064
  ];
4608
5065
 
5066
+ class CatalogStockOverviewTileComponent {
5067
+ constructor(iconCache, catalogStockService) {
5068
+ this.iconCache = iconCache;
5069
+ this.catalogStockService = catalogStockService;
5070
+ this.showClass = true;
5071
+ this.icons = IconEnum;
5072
+ this.valutaSymbol = '€';
5073
+ }
5074
+ ngOnInit() {
5075
+ this.catalogStockService.searchArticlesForTileView();
5076
+ }
5077
+ onPreviousClick() {
5078
+ this.catalogStockService.currentPage -= 1;
5079
+ }
5080
+ onNextClick() {
5081
+ this.catalogStockService.currentPage += 1;
5082
+ }
5083
+ onPageClick(pageNr) {
5084
+ this.catalogStockService.currentPage = pageNr;
5085
+ }
5086
+ }
5087
+ CatalogStockOverviewTileComponent.decorators = [
5088
+ { type: Component, args: [{
5089
+ selector: 'co-catalog-stock-overview-tile',
5090
+ template: `
5091
+ <div class="article-tiles">
5092
+ <div class="article-tile" *ngFor="let article of catalogStockService.tileArticles">
5093
+ <div class="image">
5094
+ <co-image class="co-image" [source]="article.imageData"></co-image>
5095
+ </div>
5096
+ <div class="brand" [innerText]="article.buyerDescription"></div>
5097
+ <div class="product" [innerText]="article.name"></div>
5098
+ <div class="description" [innerText]="article.description"></div>
5099
+ <div class="price">
5100
+ <span [innerText]="'FROM' | localize"></span>&nbsp;
5101
+ <span [innerText]="article.price | priceDisplay:valutaSymbol"></span>
5102
+ </div>
5103
+ <div class="article-info">
5104
+ <div class="product-num">
5105
+ <co-icon [iconData]="iconCache.getIcon(icons.BarsFilter)"></co-icon>
5106
+ <span [innerText]="article.goodId"></span>
5107
+ </div>
5108
+ <div class="turnover-group">
5109
+ <span [innerText]="'GROUP' | localize"></span>:
5110
+ <span [innerText]="article.turnoverGroupDescr"></span>
5111
+ </div>
5112
+ <div class="stock-quantity">
5113
+ <span [innerText]="'AMOUNT_IN_STOCK' | localize"></span>:
5114
+ <span [innerText]="article.quantity"></span>
5115
+ </div>
5116
+ <div class="direct-available">
5117
+ Direct available:
5118
+ <span [innerText]="article.nowAvailable"></span>
5119
+ </div>
5120
+ <div class="details">Details</div>
5121
+ </div>
5122
+ </div>
5123
+ </div>
5124
+ <co-pagination-bar
5125
+ *ngIf="catalogStockService.tileArticles?.length > 0"
5126
+ [currentPage]="catalogStockService.currentPage"
5127
+ [itemsPerPage]="catalogStockService.articlesPerPage"
5128
+ [totalItems]="catalogStockService.resultCount"
5129
+ [previousLabel]="'PREVIOUS' | localize"
5130
+ [nextLabel]="'NEXT' | localize"
5131
+ [autoHide]="true"
5132
+ [directionLinks]="true"
5133
+ [paginationRange]="8"
5134
+ (previousClick)="onPreviousClick()"
5135
+ (nextClick)="onNextClick()"
5136
+ (pageClick)="onPageClick($event)">
5137
+ </co-pagination-bar>
5138
+ `,
5139
+ encapsulation: ViewEncapsulation.None,
5140
+ styles: [".article-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,.5fr));grid-gap:20px;gap:20px;padding:40px 0;z-index:1}.article-tile{padding:10px;border:1px solid #DCE4EA}.article-tile .image{display:flex;align-items:center;justify-content:center;overflow:hidden;width:100%;height:150px}.article-tile .image .co-image{height:100%;width:-moz-fit-content;width:fit-content}.article-tile .image .no-image-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:.2;width:150px;height:150px}.article-tile .image .no-image-wrapper .no-image{height:50%;width:50%}.article-tile .image .no-image-wrapper .no-image span{font-size:14px}.article-tile .brand,.article-tile .description{margin-bottom:10px}.article-tile .product,.article-tile .price{margin-bottom:10px;font-weight:bold}.article-tile .article-info{display:grid;grid-template-columns:repeat(2,1fr);grid-row-gap:10px;row-gap:10px}.article-tile .product-num{display:flex;align-items:center}.article-tile .product-num co-icon{width:10px;height:10px;margin-right:5px}.article-tile .details{font-weight:bold;color:#1a73e8;cursor:pointer}.article-tile .details:hover{text-decoration:underline}\n"]
5141
+ },] }
5142
+ ];
5143
+ CatalogStockOverviewTileComponent.ctorParameters = () => [
5144
+ { type: IconCacheService },
5145
+ { type: CatalogStockService }
5146
+ ];
5147
+ CatalogStockOverviewTileComponent.propDecorators = {
5148
+ showClass: [{ type: HostBinding, args: ['class.co-catalog-stock-overview-tile',] }]
5149
+ };
5150
+
5151
+ class CatalogStockOverviewTileModule {
5152
+ }
5153
+ CatalogStockOverviewTileModule.decorators = [
5154
+ { type: NgModule, args: [{
5155
+ imports: [
5156
+ CommonModule,
5157
+ PipeModule,
5158
+ IconModule,
5159
+ ImageModule,
5160
+ PriceDisplayPipeModule,
5161
+ PaginationBarModule,
5162
+ ],
5163
+ declarations: [
5164
+ CatalogStockOverviewTileComponent
5165
+ ],
5166
+ exports: [
5167
+ CatalogStockOverviewTileComponent
5168
+ ]
5169
+ },] }
5170
+ ];
5171
+
5172
+ class CatalogStockOverviewListComponent {
5173
+ constructor(catalogStockService) {
5174
+ this.catalogStockService = catalogStockService;
5175
+ this.showClass = true;
5176
+ }
5177
+ ngOnInit() {
5178
+ this.catalogStockService.searchArticlesForGridView();
5179
+ }
5180
+ onPreviousClick() {
5181
+ this.catalogStockService.currentPage -= 1;
5182
+ }
5183
+ onNextClick() {
5184
+ this.catalogStockService.currentPage += 1;
5185
+ }
5186
+ onPageClick(pageNr) {
5187
+ this.catalogStockService.currentPage = pageNr;
5188
+ }
5189
+ }
5190
+ CatalogStockOverviewListComponent.decorators = [
5191
+ { type: Component, args: [{
5192
+ selector: 'co-catalog-stock-overview-list',
5193
+ template: `
5194
+ <co-simple-grid [data]="this.catalogStockService.gridArticles">
5195
+ <co-simple-grid-column
5196
+ [headerText]="'ARTICLE_NUMBER' | localize"
5197
+ [field]="'articleNumber'">
5198
+ </co-simple-grid-column>
5199
+ <co-simple-grid-column
5200
+ [headerText]="'ARTICLE_DESCRIPTION' | localize"
5201
+ [field]="'articleDescription'">
5202
+ </co-simple-grid-column>
5203
+ <co-simple-grid-column
5204
+ [headerText]="'SUPER_ARTICLE' | localize"
5205
+ [field]="'name'">
5206
+ </co-simple-grid-column>
5207
+ <co-simple-grid-column
5208
+ [headerText]="'TURNOVER_GROUP' | localize"
5209
+ [field]="'turnoverGroupDescr'">
5210
+ </co-simple-grid-column>
5211
+ <co-simple-grid-column
5212
+ [headerText]="'SUPPLIER' | localize"
5213
+ [field]="'standardSupplier'">
5214
+ </co-simple-grid-column>
5215
+ <co-simple-grid-column
5216
+ [headerText]="'STOREROOM' | localize"
5217
+ [field]="'warehouseDescription'">
5218
+ </co-simple-grid-column>
5219
+ <co-simple-grid-column
5220
+ [headerText]="'LOCATION' | localize"
5221
+ [field]="'stockLocationDescription'">
5222
+ </co-simple-grid-column>
5223
+ <co-simple-grid-column
5224
+ [headerText]="'STOCK' | localize"
5225
+ [field]="'amount'">
5226
+ </co-simple-grid-column>
5227
+ <co-simple-grid-column
5228
+ [headerText]="'TOTAL_ARTICLES_IN_ORDER' | localize"
5229
+ [field]="'quantityInOrders'">
5230
+ </co-simple-grid-column>
5231
+ <co-simple-grid-column
5232
+ [headerText]="'PURCHASEORDERS' | localize"
5233
+ [field]="'quantityInPurchaseOrders'">
5234
+ </co-simple-grid-column>
5235
+ <co-simple-grid-column
5236
+ [headerText]="'BATCH_NO' | localize"
5237
+ [field]="'batchNumber'">
5238
+ </co-simple-grid-column>
5239
+ <co-simple-grid-column
5240
+ [headerText]="'SERIAL_NO' | localize"
5241
+ [field]="'serialNumber'">
5242
+ </co-simple-grid-column>
5243
+ <co-simple-grid-column
5244
+ [headerText]="'DIRECTLY_AVAILABLE' | localize"
5245
+ [field]="'nowAvailable'">
5246
+ </co-simple-grid-column>
5247
+ </co-simple-grid>
5248
+ <co-pagination-bar
5249
+ *ngIf="catalogStockService.gridArticles?.length > 0"
5250
+ [currentPage]="catalogStockService.currentPage"
5251
+ [itemsPerPage]="catalogStockService.articlesPerPage"
5252
+ [totalItems]="catalogStockService.resultCount"
5253
+ [previousLabel]="'PREVIOUS' | localize"
5254
+ [nextLabel]="'NEXT' | localize"
5255
+ [autoHide]="true"
5256
+ [directionLinks]="true"
5257
+ [paginationRange]="8"
5258
+ (previousClick)="onPreviousClick()"
5259
+ (nextClick)="onNextClick()"
5260
+ (pageClick)="onPageClick($event)">
5261
+ </co-pagination-bar>
5262
+ `,
5263
+ encapsulation: ViewEncapsulation.None,
5264
+ styles: [""]
5265
+ },] }
5266
+ ];
5267
+ CatalogStockOverviewListComponent.ctorParameters = () => [
5268
+ { type: CatalogStockService }
5269
+ ];
5270
+ CatalogStockOverviewListComponent.propDecorators = {
5271
+ showClass: [{ type: HostBinding, args: ['class.co-catalog-stock-overview-list',] }]
5272
+ };
5273
+
5274
+ class CatalogStockOverviewListModule {
5275
+ }
5276
+ CatalogStockOverviewListModule.decorators = [
5277
+ { type: NgModule, args: [{
5278
+ imports: [
5279
+ CommonModule,
5280
+ PipeModule,
5281
+ SimpleGridModule,
5282
+ PaginationBarModule
5283
+ ],
5284
+ declarations: [
5285
+ CatalogStockOverviewListComponent
5286
+ ],
5287
+ exports: [
5288
+ CatalogStockOverviewListComponent
5289
+ ]
5290
+ },] }
5291
+ ];
5292
+
5293
+ class CatalogStockComparisonTileComponent {
5294
+ constructor(iconCache, catalogStockComparisonService) {
5295
+ this.iconCache = iconCache;
5296
+ this.catalogStockComparisonService = catalogStockComparisonService;
5297
+ this.showClass = true;
5298
+ this.icons = IconEnum;
5299
+ this.valutaSymbol = '€';
5300
+ }
5301
+ ngOnInit() {
5302
+ this.catalogStockComparisonService.searchArticlesForTileView();
5303
+ }
5304
+ onPreviousClick() {
5305
+ this.catalogStockComparisonService.currentPage -= 1;
5306
+ }
5307
+ onNextClick() {
5308
+ this.catalogStockComparisonService.currentPage += 1;
5309
+ }
5310
+ onPageClick(pageNr) {
5311
+ this.catalogStockComparisonService.currentPage = pageNr;
5312
+ }
5313
+ }
5314
+ CatalogStockComparisonTileComponent.decorators = [
5315
+ { type: Component, args: [{
5316
+ selector: 'co-catalog-stock-comparison-tile',
5317
+ template: `
5318
+ <div class="article-tiles">
5319
+ <div class="article-tile" *ngFor="let article of catalogStockComparisonService.comparisonTileArticles">
5320
+ <div class="image">
5321
+ <co-image class="co-image" [source]="article.imageData"></co-image>
5322
+ </div>
5323
+ <div class="brand" [innerText]="article.brandDescription"></div>
5324
+ <div class="product" [innerText]="article.name"></div>
5325
+ <div class="description" [innerText]="article.description"></div>
5326
+ <div class="price">
5327
+ <span [innerText]="'FROM' | localize"></span>&nbsp;
5328
+ <span [innerText]="article.price | priceDisplay:valutaSymbol"></span>
5329
+ </div>
5330
+ <div class="one-liner">
5331
+ <div class="product-num">
5332
+ <co-icon [iconData]="iconCache.getIcon(icons.BarsFilter)"></co-icon>
5333
+ <span [innerText]="article.goodId"></span>
5334
+ </div>
5335
+ <div class="turnover-group">
5336
+ <span [innerText]="'GROUP' | localize"></span>:
5337
+ <span [innerText]="article.turnoverGroupDescr"></span>
5338
+ </div>
5339
+ </div>
5340
+ <div class="tile-item">
5341
+ <span [innerText]="'SOURCE_WAREHOUSE' | localize"></span>:
5342
+ <strong [innerText]="article.sourceWarehouseQuantity"></strong>
5343
+ </div>
5344
+ <div class="tile-item">
5345
+ <span [innerText]="'TARGET_WAREHOUSE' | localize"></span>:
5346
+ <strong [innerText]="article.targetWarehouseQuantity"></strong>
5347
+ </div>
5348
+ <div class="details">Details</div>
5349
+ </div>
5350
+ </div>
5351
+ <co-pagination-bar
5352
+ *ngIf="catalogStockComparisonService.comparisonTileArticles?.length > 0"
5353
+ [currentPage]="catalogStockComparisonService.currentPage"
5354
+ [itemsPerPage]="catalogStockComparisonService.articlesPerPage"
5355
+ [totalItems]="catalogStockComparisonService.resultCount"
5356
+ [previousLabel]="'PREVIOUS' | localize"
5357
+ [nextLabel]="'NEXT' | localize"
5358
+ [autoHide]="true"
5359
+ [directionLinks]="true"
5360
+ [paginationRange]="8"
5361
+ (previousClick)="onPreviousClick()"
5362
+ (nextClick)="onNextClick()"
5363
+ (pageClick)="onPageClick($event)">
5364
+ </co-pagination-bar>
5365
+ `,
5366
+ encapsulation: ViewEncapsulation.None,
5367
+ styles: [".article-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,.5fr));grid-gap:20px;gap:20px;padding:40px 0;z-index:1}.article-tile{padding:10px;border:1px solid #DCE4EA}.article-tile .image{display:flex;align-items:center;justify-content:center;overflow:hidden;width:100%;height:150px}.article-tile .image .co-image{height:100%;width:-moz-fit-content;width:fit-content}.article-tile .image .no-image-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:.2;width:150px;height:150px}.article-tile .image .no-image-wrapper .no-image{height:50%;width:50%}.article-tile .image .no-image-wrapper .no-image span{font-size:14px}.article-tile .brand,.article-tile .description,.article-tile .tile-item{margin-bottom:10px}.article-tile .product,.article-tile .price{margin-bottom:10px;font-weight:bold}.article-tile .one-liner{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.article-tile .product-num{display:flex;align-items:center}.article-tile .product-num co-icon{width:10px;height:10px;margin-right:5px}.article-tile .details{font-weight:bold;color:#1a73e8;cursor:pointer}.article-tile .details:hover{text-decoration:underline}\n"]
5368
+ },] }
5369
+ ];
5370
+ CatalogStockComparisonTileComponent.ctorParameters = () => [
5371
+ { type: IconCacheService },
5372
+ { type: CatalogStockComparisonService }
5373
+ ];
5374
+ CatalogStockComparisonTileComponent.propDecorators = {
5375
+ showClass: [{ type: HostBinding, args: ['class.co-catalog-stock-comparison-tile',] }]
5376
+ };
5377
+
5378
+ class CatalogStockComparisonTileModule {
5379
+ }
5380
+ CatalogStockComparisonTileModule.decorators = [
5381
+ { type: NgModule, args: [{
5382
+ imports: [
5383
+ CommonModule,
5384
+ PipeModule,
5385
+ IconModule,
5386
+ ImageModule,
5387
+ PriceDisplayPipeModule,
5388
+ PaginationBarModule,
5389
+ ],
5390
+ declarations: [
5391
+ CatalogStockComparisonTileComponent
5392
+ ],
5393
+ exports: [
5394
+ CatalogStockComparisonTileComponent
5395
+ ]
5396
+ },] }
5397
+ ];
5398
+
5399
+ class CatalogStockComparisonListComponent {
5400
+ constructor(catalogStockComparisonService) {
5401
+ this.catalogStockComparisonService = catalogStockComparisonService;
5402
+ this.showClass = true;
5403
+ }
5404
+ ngOnInit() {
5405
+ this.catalogStockComparisonService.searchArticlesForGridView();
5406
+ }
5407
+ onPreviousClick() {
5408
+ this.catalogStockComparisonService.currentPage -= 1;
5409
+ }
5410
+ onNextClick() {
5411
+ this.catalogStockComparisonService.currentPage += 1;
5412
+ }
5413
+ onPageClick(pageNr) {
5414
+ this.catalogStockComparisonService.currentPage = pageNr;
5415
+ }
5416
+ }
5417
+ CatalogStockComparisonListComponent.decorators = [
5418
+ { type: Component, args: [{
5419
+ selector: 'co-catalog-stock-comparison-list',
5420
+ template: `
5421
+ <co-simple-grid [data]="this.catalogStockComparisonService.comparisonGridArticles">
5422
+ <co-simple-grid-column
5423
+ [headerText]="'ARTICLE_NUMBER' | localize"
5424
+ [field]="'articleNumber'">
5425
+ </co-simple-grid-column>
5426
+ <co-simple-grid-column
5427
+ [headerText]="'ARTICLE_DESCRIPTION' | localize"
5428
+ [field]="'articleDescription'">
5429
+ </co-simple-grid-column>
5430
+ <co-simple-grid-column
5431
+ [headerText]="'SUPER_ARTICLE' | localize"
5432
+ [field]="'name'">
5433
+ </co-simple-grid-column>
5434
+ <co-simple-grid-column
5435
+ [headerText]="'TURNOVER_GROUP' | localize"
5436
+ [field]="'turnoverGroupDescr'">
5437
+ </co-simple-grid-column>
5438
+ <co-simple-grid-column
5439
+ [headerText]="'SUPPLIER' | localize"
5440
+ [field]="'standardSupplier'">
5441
+ </co-simple-grid-column>
5442
+ <co-simple-grid-column
5443
+ [headerText]="'STOREROOM' | localize"
5444
+ [field]="'sourceWarehouseDescription'">
5445
+ </co-simple-grid-column>
5446
+ <co-simple-grid-column
5447
+ [headerText]="'Quantity source'"
5448
+ [field]="'sourceWarehouseQuantity'">
5449
+ </co-simple-grid-column>
5450
+ <co-simple-grid-column
5451
+ [headerText]="'TARGET_WAREHOUSE' | localize"
5452
+ [field]="'targetWarehouseDescription'">
5453
+ </co-simple-grid-column>
5454
+ <co-simple-grid-column
5455
+ [headerText]="'STOCK' | localize"
5456
+ [field]="'targetWarehouseQuantity'">
5457
+ </co-simple-grid-column>
5458
+ </co-simple-grid>
5459
+ <co-pagination-bar
5460
+ *ngIf="catalogStockComparisonService.comparisonGridArticles?.length > 0"
5461
+ [currentPage]="catalogStockComparisonService.currentPage"
5462
+ [itemsPerPage]="catalogStockComparisonService.articlesPerPage"
5463
+ [totalItems]="catalogStockComparisonService.resultCount"
5464
+ [previousLabel]="'PREVIOUS' | localize"
5465
+ [nextLabel]="'NEXT' | localize"
5466
+ [autoHide]="true"
5467
+ [directionLinks]="true"
5468
+ [paginationRange]="8"
5469
+ (previousClick)="onPreviousClick()"
5470
+ (nextClick)="onNextClick()"
5471
+ (pageClick)="onPageClick($event)">
5472
+ </co-pagination-bar>
5473
+ `,
5474
+ encapsulation: ViewEncapsulation.None,
5475
+ styles: [""]
5476
+ },] }
5477
+ ];
5478
+ CatalogStockComparisonListComponent.ctorParameters = () => [
5479
+ { type: CatalogStockComparisonService }
5480
+ ];
5481
+ CatalogStockComparisonListComponent.propDecorators = {
5482
+ showClass: [{ type: HostBinding, args: ['class.co-catalog-stock-comparison-list',] }]
5483
+ };
5484
+
5485
+ class CatalogStockComparisonListModule {
5486
+ }
5487
+ CatalogStockComparisonListModule.decorators = [
5488
+ { type: NgModule, args: [{
5489
+ imports: [
5490
+ CommonModule,
5491
+ PipeModule,
5492
+ SimpleGridModule,
5493
+ PaginationBarModule
5494
+ ],
5495
+ declarations: [
5496
+ CatalogStockComparisonListComponent
5497
+ ],
5498
+ exports: [
5499
+ CatalogStockComparisonListComponent
5500
+ ]
5501
+ },] }
5502
+ ];
5503
+
5504
+ class CatalogWarehouseTransfersTileComponent {
5505
+ constructor(iconCache, catalogStockTransferService) {
5506
+ this.iconCache = iconCache;
5507
+ this.catalogStockTransferService = catalogStockTransferService;
5508
+ this.showClass = true;
5509
+ this.icons = IconEnum;
5510
+ this.valutaSymbol = '€';
5511
+ }
5512
+ ngOnInit() {
5513
+ this.catalogStockTransferService.searchArticlesForTileView();
5514
+ }
5515
+ onPreviousClick() {
5516
+ this.catalogStockTransferService.currentPage -= 1;
5517
+ }
5518
+ onNextClick() {
5519
+ this.catalogStockTransferService.currentPage += 1;
5520
+ }
5521
+ onPageClick(pageNr) {
5522
+ this.catalogStockTransferService.currentPage = pageNr;
5523
+ }
5524
+ }
5525
+ CatalogWarehouseTransfersTileComponent.decorators = [
5526
+ { type: Component, args: [{
5527
+ selector: 'co-catalog-warehouse-transfers-tile',
5528
+ template: `
5529
+ <div class="article-tiles">
5530
+ <div class="article-tile" *ngFor="let article of catalogStockTransferService.transferTileArticles">
5531
+ <div class="image">
5532
+ <co-image class="co-image" [source]="article.imageData"></co-image>
5533
+ </div>
5534
+ <div class="brand" [innerText]="article.buyerDescription"></div>
5535
+ <div class="product" [innerText]="article.name"></div>
5536
+ <div class="description" [innerText]="article.description"></div>
5537
+ <div class="price">
5538
+ <span [innerText]="'FROM' | localize"></span>&nbsp;
5539
+ <span [innerText]="article.price | priceDisplay:valutaSymbol"></span>
5540
+ </div>
5541
+ <div class="one-liner">
5542
+ <div class="product-num">
5543
+ <co-icon [iconData]="iconCache.getIcon(icons.BarsFilter)"></co-icon>
5544
+ <span [innerText]="article.goodId"></span>
5545
+ </div>
5546
+ <div class="turnover-group">
5547
+ <span [innerText]="'GROUP' | localize"></span>:
5548
+ <span [innerText]="article.turnoverGroupDescr"></span>
5549
+ </div>
5550
+ </div>
5551
+ <div class="tile-item">
5552
+ <span [innerText]="'SOURCE_WAREHOUSE' | localize"></span>:
5553
+ <strong [innerText]="article.sourceWarehouseNumber"></strong>
5554
+ </div>
5555
+ <div class="tile-item">
5556
+ <span [innerText]="'TARGET_WAREHOUSE' | localize"></span>:
5557
+ <strong [innerText]="article.targetWarehouseNumber"></strong>
5558
+ </div>
5559
+ <div class="one-liner">
5560
+ <div>
5561
+ <span>Number overbooked</span>:
5562
+ <strong [innerText]="article.quantityOverbooked"></strong>
5563
+ </div>
5564
+ <div class="details">Details</div>
5565
+ </div>
5566
+ </div>
5567
+ </div>
5568
+ <co-pagination-bar
5569
+ *ngIf="catalogStockTransferService.transferTileArticles?.length > 0"
5570
+ [currentPage]="catalogStockTransferService.currentPage"
5571
+ [itemsPerPage]="catalogStockTransferService.articlesPerPage"
5572
+ [totalItems]="catalogStockTransferService.resultCount"
5573
+ [previousLabel]="'PREVIOUS' | localize"
5574
+ [nextLabel]="'NEXT' | localize"
5575
+ [autoHide]="true"
5576
+ [directionLinks]="true"
5577
+ [paginationRange]="8"
5578
+ (previousClick)="onPreviousClick()"
5579
+ (nextClick)="onNextClick()"
5580
+ (pageClick)="onPageClick($event)">
5581
+ </co-pagination-bar>
5582
+ `,
5583
+ encapsulation: ViewEncapsulation.None,
5584
+ styles: [".article-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,.5fr));grid-gap:20px;gap:20px;padding:40px 0;z-index:1}.article-tile{padding:10px;border:1px solid #DCE4EA}.article-tile .image{display:flex;align-items:center;justify-content:center;overflow:hidden;width:100%;height:150px}.article-tile .image .co-image{height:100%;width:-moz-fit-content;width:fit-content}.article-tile .image .no-image-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:.2;width:150px;height:150px}.article-tile .image .no-image-wrapper .no-image{height:50%;width:50%}.article-tile .image .no-image-wrapper .no-image span{font-size:14px}.article-tile .brand,.article-tile .description,.article-tile .tile-item{margin-bottom:10px}.article-tile .product,.article-tile .price{margin-bottom:10px;font-weight:bold}.article-tile .one-liner{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.article-tile .one-liner:last-of-type{margin:0}.article-tile .product-num{display:flex;align-items:center}.article-tile .product-num co-icon{width:10px;height:10px;margin-right:5px}.article-tile .details{font-weight:bold;color:#1a73e8;cursor:pointer}.article-tile .details:hover{text-decoration:underline}\n"]
5585
+ },] }
5586
+ ];
5587
+ CatalogWarehouseTransfersTileComponent.ctorParameters = () => [
5588
+ { type: IconCacheService },
5589
+ { type: CatalogStockTransferService }
5590
+ ];
5591
+ CatalogWarehouseTransfersTileComponent.propDecorators = {
5592
+ showClass: [{ type: HostBinding, args: ['class.co-catalog-warehouse-transfers-tile',] }]
5593
+ };
5594
+
5595
+ class CatalogWarehouseTransfersTileModule {
5596
+ }
5597
+ CatalogWarehouseTransfersTileModule.decorators = [
5598
+ { type: NgModule, args: [{
5599
+ imports: [
5600
+ CommonModule,
5601
+ PipeModule,
5602
+ IconModule,
5603
+ ImageModule,
5604
+ PriceDisplayPipeModule,
5605
+ PaginationBarModule,
5606
+ ],
5607
+ declarations: [
5608
+ CatalogWarehouseTransfersTileComponent
5609
+ ],
5610
+ exports: [
5611
+ CatalogWarehouseTransfersTileComponent
5612
+ ]
5613
+ },] }
5614
+ ];
5615
+
5616
+ class CatalogWarehouseTransfersListComponent {
5617
+ constructor(catalogStockTransferService) {
5618
+ this.catalogStockTransferService = catalogStockTransferService;
5619
+ this.showClass = true;
5620
+ }
5621
+ ngOnInit() {
5622
+ this.catalogStockTransferService.searchArticlesForGridView();
5623
+ }
5624
+ onPreviousClick() {
5625
+ this.catalogStockTransferService.currentPage -= 1;
5626
+ }
5627
+ onNextClick() {
5628
+ this.catalogStockTransferService.currentPage += 1;
5629
+ }
5630
+ onPageClick(pageNr) {
5631
+ this.catalogStockTransferService.currentPage = pageNr;
5632
+ }
5633
+ }
5634
+ CatalogWarehouseTransfersListComponent.decorators = [
5635
+ { type: Component, args: [{
5636
+ selector: 'co-catalog-warehouse-transfers-list',
5637
+ template: `
5638
+ <co-simple-grid [data]="this.catalogStockTransferService.transferGridArticles">
5639
+ <co-simple-grid-column
5640
+ [headerText]="'ARTICLE_NUMBER' | localize"
5641
+ [field]="'articleNumber'">
5642
+ </co-simple-grid-column>
5643
+ <co-simple-grid-column
5644
+ [headerText]="'ARTICLE_DESCRIPTION' | localize"
5645
+ [field]="'description'">
5646
+ </co-simple-grid-column>
5647
+ <co-simple-grid-column
5648
+ [headerText]="'SUPER_ARTICLE' | localize"
5649
+ [field]="'name'">
5650
+ </co-simple-grid-column>
5651
+ <co-simple-grid-column
5652
+ [headerText]="'TURNOVER_GROUP' | localize"
5653
+ [field]="'turnoverGroupDescr'">
5654
+ </co-simple-grid-column>
5655
+ <co-simple-grid-column
5656
+ [headerText]="'SUPPLIER' | localize"
5657
+ [field]="'supplierNumber'">
5658
+ </co-simple-grid-column>
5659
+ <co-simple-grid-column
5660
+ [headerText]="'SOURCE_WAREHOUSE' | localize"
5661
+ [field]="'sourceWarehouseNumber'">
5662
+ </co-simple-grid-column>
5663
+ <co-simple-grid-column
5664
+ [headerText]="'SOURCE_LOCATION' | localize"
5665
+ [field]="'sourceLocation'">
5666
+ </co-simple-grid-column>
5667
+ <co-simple-grid-column
5668
+ [headerText]="'TARGET_WAREHOUSE' | localize"
5669
+ [field]="'targetWarehouseNumber'">
5670
+ </co-simple-grid-column>
5671
+ <co-simple-grid-column
5672
+ [headerText]="'TARGET_LOCATION' | localize"
5673
+ [field]="'targetLocation'">
5674
+ </co-simple-grid-column>
5675
+ <co-simple-grid-column
5676
+ [headerText]="'SERIAL_NO' | localize"
5677
+ [field]="'serialNumber'">
5678
+ </co-simple-grid-column>
5679
+ <co-simple-grid-column
5680
+ [headerText]="'BATCH_NO' | localize"
5681
+ [field]="'batchNumber'">
5682
+ </co-simple-grid-column>
5683
+ <co-simple-grid-column
5684
+ [headerText]="'QUANTITY' | localize"
5685
+ [field]="'quantity'">
5686
+ </co-simple-grid-column>
5687
+ <co-simple-grid-column
5688
+ [headerText]="'CREATION_DATE' | localize"
5689
+ [field]="'creationDate'">
5690
+ </co-simple-grid-column>
5691
+ <co-simple-grid-column
5692
+ [headerText]="'USER' | localize"
5693
+ [field]="'user'">
5694
+ </co-simple-grid-column>
5695
+ </co-simple-grid>
5696
+ <co-pagination-bar
5697
+ *ngIf="catalogStockTransferService.transferGridArticles?.length > 0"
5698
+ [currentPage]="catalogStockTransferService.currentPage"
5699
+ [itemsPerPage]="catalogStockTransferService.articlesPerPage"
5700
+ [totalItems]="catalogStockTransferService.resultCount"
5701
+ [previousLabel]="'PREVIOUS' | localize"
5702
+ [nextLabel]="'NEXT' | localize"
5703
+ [autoHide]="true"
5704
+ [directionLinks]="true"
5705
+ [paginationRange]="8"
5706
+ (previousClick)="onPreviousClick()"
5707
+ (nextClick)="onNextClick()"
5708
+ (pageClick)="onPageClick($event)">
5709
+ </co-pagination-bar>
5710
+ `,
5711
+ encapsulation: ViewEncapsulation.None,
5712
+ styles: [""]
5713
+ },] }
5714
+ ];
5715
+ CatalogWarehouseTransfersListComponent.ctorParameters = () => [
5716
+ { type: CatalogStockTransferService }
5717
+ ];
5718
+ CatalogWarehouseTransfersListComponent.propDecorators = {
5719
+ showClass: [{ type: HostBinding, args: ['class.co-catalog-warehouse-transfers-list',] }]
5720
+ };
5721
+
5722
+ class CatalogWarehouseTransfersListModule {
5723
+ }
5724
+ CatalogWarehouseTransfersListModule.decorators = [
5725
+ { type: NgModule, args: [{
5726
+ imports: [
5727
+ CommonModule,
5728
+ PipeModule,
5729
+ SimpleGridModule,
5730
+ PaginationBarModule
5731
+ ],
5732
+ declarations: [
5733
+ CatalogWarehouseTransfersListComponent
5734
+ ],
5735
+ exports: [
5736
+ CatalogWarehouseTransfersListComponent
5737
+ ]
5738
+ },] }
5739
+ ];
5740
+
4609
5741
  class CatalogSearchModule {
4610
5742
  static ForRoot() {
4611
5743
  return {
@@ -4624,7 +5756,10 @@ class CatalogSearchModule {
4624
5756
  CatalogConnectorAdapterService,
4625
5757
  CatalogService,
4626
5758
  CatalogSettingsService,
4627
- CatalogSearchService
5759
+ CatalogSearchService,
5760
+ CatalogStockService,
5761
+ CatalogStockComparisonService,
5762
+ CatalogStockTransferService
4628
5763
  ]
4629
5764
  };
4630
5765
  }
@@ -4637,6 +5772,12 @@ CatalogSearchModule.decorators = [
4637
5772
  CatalogSearchHeaderModule,
4638
5773
  CatalogSearchResultTileModule,
4639
5774
  CatalogSearchResultListModule,
5775
+ CatalogStockOverviewTileModule,
5776
+ CatalogStockOverviewListModule,
5777
+ CatalogStockComparisonTileModule,
5778
+ CatalogStockComparisonListModule,
5779
+ CatalogWarehouseTransfersTileModule,
5780
+ CatalogWarehouseTransfersListModule,
4640
5781
  CatalogCategoriesModule,
4641
5782
  CatalogExternalSourcesModule,
4642
5783
  CatalogNavigationModule,
@@ -4838,5 +5979,5 @@ CatalogExternalSourceModule.decorators = [
4838
5979
  * Generated bundle index. Do not edit.
4839
5980
  */
4840
5981
 
4841
- export { BusinessObjectCacheManagerService, CatalogArticleListModule, CatalogArticleTileModule, CatalogCategoriesModule, CatalogConnectorAdapterService, CatalogConnectorService, CatalogEventService, CatalogExternalSourceModule, CatalogExternalSourcesModule, CatalogFilterModule, CatalogFilterService, CatalogImageService, CatalogNavigationModule, CatalogNavigationService, CatalogOptionsService, CatalogSearchHeaderModule, CatalogSearchModule, CatalogSearchResultListModule, CatalogSearchResultTileModule, CatalogSearchService, CatalogService, CatalogSettingsService, SelectMultipleCacheService, SelectMultipleParameterizedCacheService, SelectSingleCacheService, SelectSingleParameterizedCacheService, Version, CatalogFilterCategoriesModule as ɵa, PipeModule as ɵb, VisibilityObserverDirective as ɵba, CatalogSearchResultTileComponent as ɵbb, CatalogSearchBaseComponent as ɵbc, CatalogArticleListComponent as ɵbd, CatalogSearchResultListComponent as ɵbe, CatalogSearchComponent as ɵbf, CatalogExternalSourceComponent as ɵbg, LocalizePipe as ɵc, DictionaryService as ɵd, CatalogFilterCategoriesComponent as ɵe, CatalogFilterContentGeneralModule as ɵf, CatalogFilterItemModule as ɵg, CatalogFilterItemComponent as ɵh, CacheField as ɵi, CatalogFilterContentGeneralComponent as ɵj, IconCacheService as ɵk, CatalogFilterContentPurchaseModule as ɵl, CatalogFilterContentPurchaseComponent as ɵm, CatalogFilterContentLogisticsModule as ɵn, CatalogFilterContentLogisticsComponent as ɵo, CatalogFilterComponent as ɵp, ResponsiveTextModule as ɵq, ResponsiveTextComponent as ɵr, CatalogCategoriesComponent as ɵs, CatalogExternalSourcesComponent as ɵt, CatalogNavigationComponent as ɵu, CatalogSearchHeaderComponent as ɵv, CatalogArticleTileComponent as ɵw, ArticleBaseComponent as ɵx, VisibilityObserverModule as ɵy, VisibilityObserverMasterDirective as ɵz };
5982
+ export { BusinessObjectCacheManagerService, CatalogArticleListModule, CatalogArticleTileModule, CatalogCategoriesModule, CatalogConnectorAdapterService, CatalogConnectorService, CatalogEventService, CatalogExternalSourceModule, CatalogExternalSourcesModule, CatalogFilterModule, CatalogFilterService, CatalogImageService, CatalogNavigationModule, CatalogNavigationService, CatalogOptionsService, CatalogSearchHeaderModule, CatalogSearchModule, CatalogSearchResultListModule, CatalogSearchResultTileModule, CatalogSearchService, CatalogService, CatalogSettingsService, CatalogStockComparisonListModule, CatalogStockComparisonService, CatalogStockComparisonTileModule, CatalogStockOverviewListModule, CatalogStockOverviewTileModule, CatalogStockService, CatalogStockTransferService, CatalogWarehouseTransfersListModule, CatalogWarehouseTransfersTileModule, SelectMultipleCacheService, SelectMultipleParameterizedCacheService, SelectSingleCacheService, SelectSingleParameterizedCacheService, Version, CatalogFilterCategoriesModule as ɵa, PipeModule as ɵb, VisibilityObserverDirective as ɵba, CatalogSearchResultTileComponent as ɵbb, CatalogSearchBaseComponent as ɵbc, CatalogArticleListComponent as ɵbd, CatalogSearchResultListComponent as ɵbe, CatalogStockOverviewTileComponent as ɵbf, CatalogStockOverviewListComponent as ɵbg, CatalogStockComparisonTileComponent as ɵbh, CatalogStockComparisonListComponent as ɵbi, CatalogWarehouseTransfersTileComponent as ɵbj, CatalogWarehouseTransfersListComponent as ɵbk, CatalogSearchComponent as ɵbl, CatalogExternalSourceComponent as ɵbm, LocalizePipe as ɵc, DictionaryService as ɵd, CatalogFilterCategoriesComponent as ɵe, CatalogFilterContentGeneralModule as ɵf, CatalogFilterItemModule as ɵg, CatalogFilterItemComponent as ɵh, CacheField as ɵi, CatalogFilterContentGeneralComponent as ɵj, IconCacheService as ɵk, CatalogFilterContentPurchaseModule as ɵl, CatalogFilterContentPurchaseComponent as ɵm, CatalogFilterContentLogisticsModule as ɵn, CatalogFilterContentLogisticsComponent as ɵo, CatalogFilterComponent as ɵp, ResponsiveTextModule as ɵq, ResponsiveTextComponent as ɵr, CatalogCategoriesComponent as ɵs, CatalogExternalSourcesComponent as ɵt, CatalogNavigationComponent as ɵu, CatalogSearchHeaderComponent as ɵv, CatalogArticleTileComponent as ɵw, ArticleBaseComponent as ɵx, VisibilityObserverModule as ɵy, VisibilityObserverMasterDirective as ɵz };
4842
5983
  //# sourceMappingURL=colijnit-catalog.js.map