@colijnit/catalog 255.1.1 → 255.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/colijnit-catalog.umd.js +1085 -35
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.d.ts +8 -2
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/colijnit-catalog.js +9 -3
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +8 -2
- package/esm2015/lib/component/catalog-search/catalog-search.module.js +20 -2
- package/esm2015/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.component.js +88 -0
- package/esm2015/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.module.js +24 -0
- package/esm2015/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.component.js +89 -0
- package/esm2015/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.module.js +27 -0
- package/esm2015/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.component.js +104 -0
- package/esm2015/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.module.js +24 -0
- package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.component.js +89 -0
- package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.module.js +27 -0
- package/esm2015/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.component.js +108 -0
- package/esm2015/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.module.js +24 -0
- package/esm2015/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.component.js +95 -0
- package/esm2015/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.module.js +27 -0
- package/esm2015/lib/model/article-stock-comparison-search-grid-result.js +3 -0
- package/esm2015/lib/model/article-stock-comparison-search-grid-selection.js +4 -0
- package/esm2015/lib/model/article-stock-comparison-search-tile-result.js +3 -0
- package/esm2015/lib/model/article-stock-comparison-search-tile-selection.js +4 -0
- package/esm2015/lib/model/article-stock-search-grid-selection.js +4 -0
- package/esm2015/lib/model/article-stock-search-tile-selection.js +4 -0
- package/esm2015/lib/model/article-stock-transfer-search-grid-result.js +3 -0
- package/esm2015/lib/model/article-stock-transfer-search-grid-selection.js +12 -0
- package/esm2015/lib/model/article-stock-transfer-search-tile-result.js +3 -0
- package/esm2015/lib/model/article-stock-transfer-search-tile-selection.js +4 -0
- package/esm2015/lib/model/articles-stock-search-grid-result.js +3 -0
- package/esm2015/lib/model/articles-stock-search-tile-result.js +3 -0
- package/esm2015/lib/service/catalog-connector-adapter.service.js +110 -1
- package/esm2015/lib/service/catalog-connector.service.js +36 -1
- package/esm2015/lib/service/catalog-search.service.js +1 -1
- package/esm2015/lib/service/catalog-stock-comparison.service.js +84 -0
- package/esm2015/lib/service/catalog-stock-transfer.service.js +84 -0
- package/esm2015/lib/service/catalog-stock.service.js +91 -0
- package/esm2015/public_api.js +10 -1
- package/fesm2015/colijnit-catalog.js +1126 -26
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.component.d.ts +11 -0
- package/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.module.d.ts +2 -0
- package/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.scss +0 -0
- package/lib/component/catalog-stock-comparison-list/style/_layout.scss +5 -0
- package/lib/component/catalog-stock-comparison-list/style/_material-definition.scss +0 -0
- package/lib/component/catalog-stock-comparison-list/style/_theme.scss +4 -0
- package/lib/component/catalog-stock-comparison-list/style/material.scss +4 -0
- package/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.component.d.ts +16 -0
- package/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.module.d.ts +2 -0
- package/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.scss +88 -0
- package/lib/component/catalog-stock-comparison-tile/style/_layout.scss +16 -0
- package/lib/component/catalog-stock-comparison-tile/style/_material-definition.scss +0 -0
- package/lib/component/catalog-stock-comparison-tile/style/_theme.scss +4 -0
- package/lib/component/catalog-stock-comparison-tile/style/material.scss +4 -0
- package/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.component.d.ts +11 -0
- package/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.module.d.ts +2 -0
- package/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.scss +0 -0
- package/lib/component/catalog-stock-overview-list/style/_layout.scss +5 -0
- package/lib/component/catalog-stock-overview-list/style/_material-definition.scss +0 -0
- package/lib/component/catalog-stock-overview-list/style/_theme.scss +4 -0
- package/lib/component/catalog-stock-overview-list/style/material.scss +4 -0
- package/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.component.d.ts +16 -0
- package/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.module.d.ts +2 -0
- package/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.scss +86 -0
- package/lib/component/catalog-stock-overview-tile/style/_layout.scss +16 -0
- package/lib/component/catalog-stock-overview-tile/style/_material-definition.scss +0 -0
- package/lib/component/catalog-stock-overview-tile/style/_theme.scss +4 -0
- package/lib/component/catalog-stock-overview-tile/style/material.scss +4 -0
- package/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.component.d.ts +11 -0
- package/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.module.d.ts +2 -0
- package/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.scss +0 -0
- package/lib/component/catalog-warehouse-transfers-list/style/_layout.scss +5 -0
- package/lib/component/catalog-warehouse-transfers-list/style/_material-definition.scss +0 -0
- package/lib/component/catalog-warehouse-transfers-list/style/_theme.scss +4 -0
- package/lib/component/catalog-warehouse-transfers-list/style/material.scss +4 -0
- package/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.component.d.ts +16 -0
- package/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.module.d.ts +2 -0
- package/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.scss +92 -0
- package/lib/component/catalog-warehouse-transfers-tile/style/_layout.scss +16 -0
- package/lib/component/catalog-warehouse-transfers-tile/style/_material-definition.scss +0 -0
- package/lib/component/catalog-warehouse-transfers-tile/style/_theme.scss +4 -0
- package/lib/component/catalog-warehouse-transfers-tile/style/material.scss +4 -0
- package/lib/model/article-stock-comparison-search-grid-result.d.ts +5 -0
- package/lib/model/article-stock-comparison-search-grid-selection.d.ts +15 -0
- package/lib/model/article-stock-comparison-search-tile-result.d.ts +5 -0
- package/lib/model/article-stock-comparison-search-tile-selection.d.ts +15 -0
- package/lib/model/article-stock-search-grid-selection.d.ts +21 -0
- package/lib/model/article-stock-search-tile-selection.d.ts +15 -0
- package/lib/model/article-stock-transfer-search-grid-result.d.ts +5 -0
- package/lib/model/article-stock-transfer-search-grid-selection.d.ts +21 -0
- package/lib/model/article-stock-transfer-search-tile-result.d.ts +5 -0
- package/lib/model/article-stock-transfer-search-tile-selection.d.ts +16 -0
- package/lib/model/articles-stock-search-grid-result.d.ts +5 -0
- package/lib/model/articles-stock-search-tile-result.d.ts +5 -0
- package/lib/service/catalog-connector-adapter.service.d.ts +16 -0
- package/lib/service/catalog-connector.service.d.ts +16 -0
- package/lib/service/catalog-stock-comparison.service.d.ts +29 -0
- package/lib/service/catalog-stock-transfer.service.d.ts +29 -0
- package/lib/service/catalog-stock.service.d.ts +32 -0
- package/package.json +2 -2
- 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.
|
|
53
|
-
this.publishDate = "
|
|
56
|
+
this.symVer = "255.1.2";
|
|
57
|
+
this.publishDate = "07/08/2024, 18:54:37";
|
|
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,103 @@ 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
|
+
// return <unknown>this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockSearchTileSelection, response.resultObjects) as ArticleStockSearchTileSelection[];
|
|
409
|
+
}
|
|
410
|
+
else {
|
|
411
|
+
console.error(response.validationMessagesAsString);
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
getArticlesForStockSearchGrid(params, showLoader = true) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
const response = yield this.connector.searchArticlesForGridView(params, showLoader);
|
|
418
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
419
|
+
const result = new ArticlesStockSearchGridResult();
|
|
420
|
+
result.count = response.pagingParameters.resultCount;
|
|
421
|
+
result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockSearchGridSelection, response.resultObjects);
|
|
422
|
+
return result;
|
|
423
|
+
// return <unknown>this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockSearchGridSelection, response.resultObjects) as ArticleStockSearchGridSelection[];
|
|
424
|
+
}
|
|
425
|
+
else {
|
|
426
|
+
console.error(response.validationMessagesAsString);
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
getArticlesForStockTransferSearchTile(params, showLoader = true) {
|
|
431
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
+
const response = yield this.connector.searchTransferArticlesForTileView(params, showLoader);
|
|
433
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
434
|
+
const result = new ArticleStockTransferSearchTileResult();
|
|
435
|
+
result.count = response.pagingParameters.resultCount;
|
|
436
|
+
result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockTransferSearchTileSelection, response.resultObjects);
|
|
437
|
+
return result;
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
console.error(response.validationMessagesAsString);
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
getArticlesForStockTransferSearchGrid(params, showLoader = true) {
|
|
445
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
446
|
+
const response = yield this.connector.searchTransferArticlesForGridView(params, showLoader);
|
|
447
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
448
|
+
const result = new ArticleStockTransferSearchGridResult();
|
|
449
|
+
result.count = response.pagingParameters.resultCount;
|
|
450
|
+
result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockTransferSearchGridSelection, response.resultObjects);
|
|
451
|
+
return result;
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
console.error(response.validationMessagesAsString);
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
getArticlesForStockComparisonSearchTile(params, showLoader = true) {
|
|
459
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
460
|
+
const response = yield this.connector.searchComparisonArticlesForTileView(params, showLoader);
|
|
461
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
462
|
+
const result = new ArticleStockComparisonSearchTileResult();
|
|
463
|
+
result.count = response.pagingParameters.resultCount;
|
|
464
|
+
result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockComparisonSearchTileSelection, response.resultObjects);
|
|
465
|
+
return result;
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
console.error(response.validationMessagesAsString);
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
getArticlesForStockComparisonSearchGrid(params, showLoader = true) {
|
|
473
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
474
|
+
const response = yield this.connector.searchComparisonArticlesForGridView(params, showLoader);
|
|
475
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
476
|
+
const result = new ArticleStockComparisonSearchGridResult();
|
|
477
|
+
result.count = response.pagingParameters.resultCount;
|
|
478
|
+
result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockComparisonSearchGridSelection, response.resultObjects);
|
|
479
|
+
return result;
|
|
480
|
+
}
|
|
481
|
+
else {
|
|
482
|
+
console.error(response.validationMessagesAsString);
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
getArticleGridViewExcelFile(params, showLoader = true) {
|
|
487
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
488
|
+
const response = yield this.connector.getArticleGridViewExcelFile(params, showLoader);
|
|
489
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
490
|
+
return this._boFactory.makeBOArrayFromRawBackendDataArray([], response.resultObjects);
|
|
491
|
+
}
|
|
492
|
+
else {
|
|
493
|
+
console.error(response.validationMessagesAsString);
|
|
494
|
+
}
|
|
495
|
+
});
|
|
496
|
+
}
|
|
354
497
|
getCatalogDefinitions(showLoader = true) {
|
|
355
498
|
return __awaiter(this, void 0, void 0, function* () {
|
|
356
499
|
const response = yield this.connector.getCatalogDefinitions(showLoader);
|
|
@@ -1201,6 +1344,41 @@ class CatalogConnectorService {
|
|
|
1201
1344
|
}).getValue(publicationCode);
|
|
1202
1345
|
});
|
|
1203
1346
|
}
|
|
1347
|
+
getArticlesForStockSearchTile(params, showLoader = true) {
|
|
1348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1349
|
+
return this._adapterService.getArticlesForStockSearchTile(params, showLoader);
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
getArticlesForStockSearchGrid(params, showLoader = true) {
|
|
1353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1354
|
+
return this._adapterService.getArticlesForStockSearchGrid(params, showLoader);
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
getArticlesForStockTransferSearchTile(params, showLoader = true) {
|
|
1358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1359
|
+
return this._adapterService.getArticlesForStockTransferSearchTile(params, showLoader);
|
|
1360
|
+
});
|
|
1361
|
+
}
|
|
1362
|
+
getArticlesForStockTransferSearchGrid(params, showLoader = true) {
|
|
1363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1364
|
+
return this._adapterService.getArticlesForStockTransferSearchGrid(params, showLoader);
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
getArticlesForStockComparisonSearchTile(params, showLoader = true) {
|
|
1368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1369
|
+
return this._adapterService.getArticlesForStockComparisonSearchTile(params, showLoader);
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
getArticlesForStockComparisonSearchGrid(params, showLoader = true) {
|
|
1373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1374
|
+
return this._adapterService.getArticlesForStockComparisonSearchGrid(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
|
+
}
|
|
1204
1382
|
getCatalogDefinitions(showLoader = true) {
|
|
1205
1383
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1206
1384
|
return this._selectMultipleCacheService.requestCache(CatalogDefinition, () => {
|
|
@@ -3552,6 +3730,165 @@ CatalogNavigationModule.decorators = [
|
|
|
3552
3730
|
},] }
|
|
3553
3731
|
];
|
|
3554
3732
|
|
|
3733
|
+
class CatalogStockService {
|
|
3734
|
+
constructor(_filterService, _catalogConnectorService, _settingsService, _optionService) {
|
|
3735
|
+
this._filterService = _filterService;
|
|
3736
|
+
this._catalogConnectorService = _catalogConnectorService;
|
|
3737
|
+
this._settingsService = _settingsService;
|
|
3738
|
+
this._optionService = _optionService;
|
|
3739
|
+
this.searchRequest = new ArticleExtendedRequest();
|
|
3740
|
+
this.stockSearchRequest = new ArticleStockSearchRequest();
|
|
3741
|
+
this.articlesPerPage = 20;
|
|
3742
|
+
this.tileArticles = [];
|
|
3743
|
+
this.gridArticles = [];
|
|
3744
|
+
this.transferTileArticles = [];
|
|
3745
|
+
this._currentPage = 1;
|
|
3746
|
+
this._subs = [];
|
|
3747
|
+
this._subs.push(this._optionService.parametersSet.subscribe((isSet) => {
|
|
3748
|
+
if (isSet) {
|
|
3749
|
+
if (this._settingsService.settings.catalogParameters) {
|
|
3750
|
+
this.searchRequest = this._settingsService.settings.catalogParameters;
|
|
3751
|
+
}
|
|
3752
|
+
}
|
|
3753
|
+
}));
|
|
3754
|
+
}
|
|
3755
|
+
get currentPage() {
|
|
3756
|
+
return this._currentPage;
|
|
3757
|
+
}
|
|
3758
|
+
set currentPage(value) {
|
|
3759
|
+
this._currentPage = value;
|
|
3760
|
+
this.searchArticlesForTileView(false);
|
|
3761
|
+
}
|
|
3762
|
+
ngOnDestroy() {
|
|
3763
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
3764
|
+
}
|
|
3765
|
+
searchArticlesForTileView(resetPaging = true, resetRequestParameters = false) {
|
|
3766
|
+
let lowerBound;
|
|
3767
|
+
if (!resetPaging) {
|
|
3768
|
+
lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
|
|
3769
|
+
}
|
|
3770
|
+
else {
|
|
3771
|
+
this._currentPage = 1;
|
|
3772
|
+
lowerBound = 1;
|
|
3773
|
+
}
|
|
3774
|
+
this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
|
|
3775
|
+
this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeWarehouse: '', rangeStockStatus: '' });
|
|
3776
|
+
this._catalogConnectorService.getArticlesForStockSearchTile(this.stockSearchRequest).then((result) => {
|
|
3777
|
+
this.tileArticles = result && result.articles ? result.articles : [];
|
|
3778
|
+
this.resultCount = result && result.count ? result.count : 0;
|
|
3779
|
+
this._filterService.getFilters(this.searchRequest);
|
|
3780
|
+
});
|
|
3781
|
+
}
|
|
3782
|
+
searchArticlesForGridView(resetPaging = true, resetRequestParameters = false) {
|
|
3783
|
+
let lowerBound;
|
|
3784
|
+
if (!resetPaging) {
|
|
3785
|
+
lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
|
|
3786
|
+
}
|
|
3787
|
+
else {
|
|
3788
|
+
this._currentPage = 1;
|
|
3789
|
+
lowerBound = 1;
|
|
3790
|
+
}
|
|
3791
|
+
this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
|
|
3792
|
+
this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeWarehouse: '', rangeStockStatus: '' });
|
|
3793
|
+
this._catalogConnectorService.getArticlesForStockSearchGrid(this.stockSearchRequest).then((result) => {
|
|
3794
|
+
this.gridArticles = result && result.articles ? result.articles : [];
|
|
3795
|
+
this.resultCount = result && result.count ? result.count : 0;
|
|
3796
|
+
this._filterService.getFilters(this.searchRequest);
|
|
3797
|
+
});
|
|
3798
|
+
}
|
|
3799
|
+
getArticleGridViewExcelFile() {
|
|
3800
|
+
this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeWarehouse: '', rangeStockStatus: '' });
|
|
3801
|
+
this._catalogConnectorService.getArticleGridViewExcelFile(this.stockSearchRequest).then((result) => {
|
|
3802
|
+
console.log('export: ', result);
|
|
3803
|
+
});
|
|
3804
|
+
}
|
|
3805
|
+
}
|
|
3806
|
+
CatalogStockService.decorators = [
|
|
3807
|
+
{ type: Injectable }
|
|
3808
|
+
];
|
|
3809
|
+
CatalogStockService.ctorParameters = () => [
|
|
3810
|
+
{ type: CatalogFilterService },
|
|
3811
|
+
{ type: CatalogConnectorService },
|
|
3812
|
+
{ type: CatalogSettingsService },
|
|
3813
|
+
{ type: CatalogOptionsService }
|
|
3814
|
+
];
|
|
3815
|
+
|
|
3816
|
+
class CatalogStockTransferService {
|
|
3817
|
+
constructor(_filterService, _catalogConnectorService, _settingsService, _optionService) {
|
|
3818
|
+
this._filterService = _filterService;
|
|
3819
|
+
this._catalogConnectorService = _catalogConnectorService;
|
|
3820
|
+
this._settingsService = _settingsService;
|
|
3821
|
+
this._optionService = _optionService;
|
|
3822
|
+
this.searchRequest = new ArticleExtendedRequest();
|
|
3823
|
+
this.stockSearchRequest = new ArticleStockTransferSearchRequest();
|
|
3824
|
+
this.articlesPerPage = 20;
|
|
3825
|
+
this.transferTileArticles = [];
|
|
3826
|
+
this.transferGridArticles = [];
|
|
3827
|
+
this._currentPage = 1;
|
|
3828
|
+
this._subs = [];
|
|
3829
|
+
this._subs.push(this._optionService.parametersSet.subscribe((isSet) => {
|
|
3830
|
+
if (isSet) {
|
|
3831
|
+
if (this._settingsService.settings.catalogParameters) {
|
|
3832
|
+
this.searchRequest = this._settingsService.settings.catalogParameters;
|
|
3833
|
+
}
|
|
3834
|
+
}
|
|
3835
|
+
}));
|
|
3836
|
+
}
|
|
3837
|
+
get currentPage() {
|
|
3838
|
+
return this._currentPage;
|
|
3839
|
+
}
|
|
3840
|
+
set currentPage(value) {
|
|
3841
|
+
this._currentPage = value;
|
|
3842
|
+
this.searchArticlesForTileView(false);
|
|
3843
|
+
}
|
|
3844
|
+
ngOnDestroy() {
|
|
3845
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
3846
|
+
}
|
|
3847
|
+
searchArticlesForTileView(resetPaging = true, resetRequestParameters = false) {
|
|
3848
|
+
let lowerBound;
|
|
3849
|
+
if (!resetPaging) {
|
|
3850
|
+
lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
|
|
3851
|
+
}
|
|
3852
|
+
else {
|
|
3853
|
+
this._currentPage = 1;
|
|
3854
|
+
lowerBound = 1;
|
|
3855
|
+
}
|
|
3856
|
+
this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
|
|
3857
|
+
this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeStockStatus: '', rangeSourceWarehouse: '', rangeTargetWarehouse: '' });
|
|
3858
|
+
this._catalogConnectorService.getArticlesForStockTransferSearchTile(this.stockSearchRequest).then((result) => {
|
|
3859
|
+
this.transferTileArticles = result && result.articles ? result.articles : [];
|
|
3860
|
+
this.resultCount = result && result.count ? result.count : 0;
|
|
3861
|
+
this._filterService.getFilters(this.searchRequest);
|
|
3862
|
+
});
|
|
3863
|
+
}
|
|
3864
|
+
searchArticlesForGridView(resetPaging = true, resetRequestParameters = false) {
|
|
3865
|
+
let lowerBound;
|
|
3866
|
+
if (!resetPaging) {
|
|
3867
|
+
lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
|
|
3868
|
+
}
|
|
3869
|
+
else {
|
|
3870
|
+
this._currentPage = 1;
|
|
3871
|
+
lowerBound = 1;
|
|
3872
|
+
}
|
|
3873
|
+
this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
|
|
3874
|
+
this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeStockStatus: '', rangeSourceWarehouse: '', rangeTargetWarehouse: '' });
|
|
3875
|
+
this._catalogConnectorService.getArticlesForStockTransferSearchGrid(this.stockSearchRequest).then((result) => {
|
|
3876
|
+
this.transferGridArticles = result && result.articles ? result.articles : [];
|
|
3877
|
+
this.resultCount = result && result.count ? result.count : 0;
|
|
3878
|
+
this._filterService.getFilters(this.searchRequest);
|
|
3879
|
+
});
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3882
|
+
CatalogStockTransferService.decorators = [
|
|
3883
|
+
{ type: Injectable }
|
|
3884
|
+
];
|
|
3885
|
+
CatalogStockTransferService.ctorParameters = () => [
|
|
3886
|
+
{ type: CatalogFilterService },
|
|
3887
|
+
{ type: CatalogConnectorService },
|
|
3888
|
+
{ type: CatalogSettingsService },
|
|
3889
|
+
{ type: CatalogOptionsService }
|
|
3890
|
+
];
|
|
3891
|
+
|
|
3555
3892
|
class CatalogNavigationService {
|
|
3556
3893
|
constructor(_catalog, _iOne, _optionsService, _imageService) {
|
|
3557
3894
|
this._catalog = _catalog;
|
|
@@ -3629,26 +3966,102 @@ CatalogNavigationService.ctorParameters = () => [
|
|
|
3629
3966
|
{ type: CatalogImageService }
|
|
3630
3967
|
];
|
|
3631
3968
|
|
|
3632
|
-
class
|
|
3633
|
-
constructor(
|
|
3969
|
+
class CatalogStockComparisonService {
|
|
3970
|
+
constructor(_filterService, _catalogConnectorService, _settingsService, _optionService) {
|
|
3971
|
+
this._filterService = _filterService;
|
|
3972
|
+
this._catalogConnectorService = _catalogConnectorService;
|
|
3634
3973
|
this._settingsService = _settingsService;
|
|
3635
|
-
this.
|
|
3636
|
-
this.
|
|
3637
|
-
this.
|
|
3638
|
-
this.
|
|
3639
|
-
this.
|
|
3640
|
-
this.
|
|
3641
|
-
this.
|
|
3642
|
-
this.
|
|
3643
|
-
this.
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3974
|
+
this._optionService = _optionService;
|
|
3975
|
+
this.searchRequest = new ArticleExtendedRequest();
|
|
3976
|
+
this.stockSearchRequest = new ArticleStockComparisonSearchRequest();
|
|
3977
|
+
this.articlesPerPage = 20;
|
|
3978
|
+
this.comparisonTileArticles = [];
|
|
3979
|
+
this.comparisonGridArticles = [];
|
|
3980
|
+
this._currentPage = 1;
|
|
3981
|
+
this._subs = [];
|
|
3982
|
+
this._subs.push(this._optionService.parametersSet.subscribe((isSet) => {
|
|
3983
|
+
if (isSet) {
|
|
3984
|
+
if (this._settingsService.settings.catalogParameters) {
|
|
3985
|
+
this.searchRequest = this._settingsService.settings.catalogParameters;
|
|
3986
|
+
}
|
|
3987
|
+
}
|
|
3988
|
+
}));
|
|
3989
|
+
}
|
|
3990
|
+
get currentPage() {
|
|
3991
|
+
return this._currentPage;
|
|
3992
|
+
}
|
|
3993
|
+
set currentPage(value) {
|
|
3994
|
+
this._currentPage = value;
|
|
3995
|
+
this.searchArticlesForTileView(false);
|
|
3996
|
+
}
|
|
3997
|
+
ngOnDestroy() {
|
|
3998
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
3999
|
+
}
|
|
4000
|
+
searchArticlesForTileView(resetPaging = true, resetRequestParameters = false) {
|
|
4001
|
+
let lowerBound;
|
|
4002
|
+
if (!resetPaging) {
|
|
4003
|
+
lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
|
|
4004
|
+
}
|
|
4005
|
+
else {
|
|
4006
|
+
this._currentPage = 1;
|
|
4007
|
+
lowerBound = 1;
|
|
4008
|
+
}
|
|
4009
|
+
this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
|
|
4010
|
+
this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { sourceWarehouse: 0, targetWarehouse: 0 });
|
|
4011
|
+
this._catalogConnectorService.getArticlesForStockComparisonSearchTile(this.stockSearchRequest).then((result) => {
|
|
4012
|
+
this.comparisonTileArticles = result && result.articles ? result.articles : [];
|
|
4013
|
+
this.resultCount = result && result.count ? result.count : 0;
|
|
4014
|
+
this._filterService.getFilters(this.searchRequest);
|
|
4015
|
+
});
|
|
4016
|
+
}
|
|
4017
|
+
searchArticlesForGridView(resetPaging = true, resetRequestParameters = false) {
|
|
4018
|
+
let lowerBound;
|
|
4019
|
+
if (!resetPaging) {
|
|
4020
|
+
lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
|
|
4021
|
+
}
|
|
4022
|
+
else {
|
|
4023
|
+
this._currentPage = 1;
|
|
4024
|
+
lowerBound = 1;
|
|
4025
|
+
}
|
|
4026
|
+
this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
|
|
4027
|
+
this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { sourceWarehouse: 0, targetWarehouse: 0 });
|
|
4028
|
+
this._catalogConnectorService.getArticlesForStockComparisonSearchGrid(this.stockSearchRequest).then((result) => {
|
|
4029
|
+
this.comparisonGridArticles = result && result.articles ? result.articles : [];
|
|
4030
|
+
this.resultCount = result && result.count ? result.count : 0;
|
|
4031
|
+
this._filterService.getFilters(this.searchRequest);
|
|
4032
|
+
});
|
|
4033
|
+
}
|
|
4034
|
+
}
|
|
4035
|
+
CatalogStockComparisonService.decorators = [
|
|
4036
|
+
{ type: Injectable }
|
|
4037
|
+
];
|
|
4038
|
+
CatalogStockComparisonService.ctorParameters = () => [
|
|
4039
|
+
{ type: CatalogFilterService },
|
|
4040
|
+
{ type: CatalogConnectorService },
|
|
4041
|
+
{ type: CatalogSettingsService },
|
|
4042
|
+
{ type: CatalogOptionsService }
|
|
4043
|
+
];
|
|
4044
|
+
|
|
4045
|
+
class CatalogSearchComponent {
|
|
4046
|
+
constructor(_settingsService, _catalogService, _catalogSearchService, _catalogEventService, iconCacheService) {
|
|
4047
|
+
this._settingsService = _settingsService;
|
|
4048
|
+
this._catalogService = _catalogService;
|
|
4049
|
+
this._catalogSearchService = _catalogSearchService;
|
|
4050
|
+
this._catalogEventService = _catalogEventService;
|
|
4051
|
+
this.iconCacheService = iconCacheService;
|
|
4052
|
+
this.icons = IconEnum;
|
|
4053
|
+
this.createFrozenArticle = true;
|
|
4054
|
+
this.showNavigation = false;
|
|
4055
|
+
this.showLandingPage = false;
|
|
4056
|
+
this.showFilter = false;
|
|
4057
|
+
this.showViewModes = true;
|
|
4058
|
+
this.settingsChange = new EventEmitter();
|
|
4059
|
+
this.onLookAtArticleButtonClick = new EventEmitter();
|
|
4060
|
+
this.onArButtonClick = new EventEmitter();
|
|
4061
|
+
this.onAddArticleButtonClick = new EventEmitter();
|
|
4062
|
+
this.onArticleClick = new EventEmitter();
|
|
4063
|
+
this.onStockDetailsClick = new EventEmitter();
|
|
4064
|
+
this.onExternalSourceClick = new EventEmitter();
|
|
3652
4065
|
this.mode = 'tile';
|
|
3653
4066
|
this.showCategories = true;
|
|
3654
4067
|
this._subs = [];
|
|
@@ -3793,7 +4206,10 @@ CatalogSearchComponent.decorators = [
|
|
|
3793
4206
|
CatalogConnectorAdapterService,
|
|
3794
4207
|
CatalogService,
|
|
3795
4208
|
CatalogSettingsService,
|
|
3796
|
-
CatalogSearchService
|
|
4209
|
+
CatalogSearchService,
|
|
4210
|
+
CatalogStockService,
|
|
4211
|
+
CatalogStockComparisonService,
|
|
4212
|
+
CatalogStockTransferService
|
|
3797
4213
|
],
|
|
3798
4214
|
encapsulation: ViewEncapsulation.None,
|
|
3799
4215
|
animations: [
|
|
@@ -4606,6 +5022,681 @@ CatalogSearchResultListModule.decorators = [
|
|
|
4606
5022
|
},] }
|
|
4607
5023
|
];
|
|
4608
5024
|
|
|
5025
|
+
class CatalogStockOverviewTileComponent {
|
|
5026
|
+
constructor(iconCache, catalogStockService) {
|
|
5027
|
+
this.iconCache = iconCache;
|
|
5028
|
+
this.catalogStockService = catalogStockService;
|
|
5029
|
+
this.showClass = true;
|
|
5030
|
+
this.icons = IconEnum;
|
|
5031
|
+
this.valutaSymbol = '€';
|
|
5032
|
+
}
|
|
5033
|
+
ngOnInit() {
|
|
5034
|
+
this.catalogStockService.searchArticlesForTileView();
|
|
5035
|
+
}
|
|
5036
|
+
onPreviousClick() {
|
|
5037
|
+
this.catalogStockService.currentPage -= 1;
|
|
5038
|
+
}
|
|
5039
|
+
onNextClick() {
|
|
5040
|
+
this.catalogStockService.currentPage += 1;
|
|
5041
|
+
}
|
|
5042
|
+
onPageClick(pageNr) {
|
|
5043
|
+
this.catalogStockService.currentPage = pageNr;
|
|
5044
|
+
}
|
|
5045
|
+
}
|
|
5046
|
+
CatalogStockOverviewTileComponent.decorators = [
|
|
5047
|
+
{ type: Component, args: [{
|
|
5048
|
+
selector: 'co-catalog-stock-overview-tile',
|
|
5049
|
+
template: `
|
|
5050
|
+
<div class="article-tiles">
|
|
5051
|
+
<div class="article-tile" *ngFor="let article of catalogStockService.tileArticles">
|
|
5052
|
+
<div class="image">
|
|
5053
|
+
<co-image class="co-image" [source]="article.imageData"></co-image>
|
|
5054
|
+
</div>
|
|
5055
|
+
<div class="brand" [innerText]="article.buyerDescription"></div>
|
|
5056
|
+
<div class="product" [innerText]="article.name"></div>
|
|
5057
|
+
<div class="description" [innerText]="article.description"></div>
|
|
5058
|
+
<div class="price">
|
|
5059
|
+
<span [innerText]="'FROM' | localize"></span>
|
|
5060
|
+
<span [innerText]="article.price | priceDisplay:valutaSymbol"></span>
|
|
5061
|
+
</div>
|
|
5062
|
+
<div class="article-info">
|
|
5063
|
+
<div class="product-num">
|
|
5064
|
+
<co-icon [iconData]="iconCache.getIcon(icons.BarsFilter)"></co-icon>
|
|
5065
|
+
<span [innerText]="article.goodId"></span>
|
|
5066
|
+
</div>
|
|
5067
|
+
<div class="turnover-group">
|
|
5068
|
+
<span [innerText]="'GROUP' | localize"></span>:
|
|
5069
|
+
<span [innerText]="article.turnoverGroupDescr"></span>
|
|
5070
|
+
</div>
|
|
5071
|
+
<div class="stock-quantity">
|
|
5072
|
+
<span [innerText]="'AMOUNT_IN_STOCK' | localize"></span>:
|
|
5073
|
+
<span [innerText]="article.quantity"></span>
|
|
5074
|
+
</div>
|
|
5075
|
+
<div class="direct-available">
|
|
5076
|
+
Direct available:
|
|
5077
|
+
<span [innerText]="article.nowAvailable"></span>
|
|
5078
|
+
</div>
|
|
5079
|
+
<div class="details">Details</div>
|
|
5080
|
+
</div>
|
|
5081
|
+
</div>
|
|
5082
|
+
</div>
|
|
5083
|
+
<co-pagination-bar
|
|
5084
|
+
*ngIf="catalogStockService.tileArticles?.length > 0"
|
|
5085
|
+
[currentPage]="catalogStockService.currentPage"
|
|
5086
|
+
[itemsPerPage]="catalogStockService.articlesPerPage"
|
|
5087
|
+
[totalItems]="catalogStockService.resultCount"
|
|
5088
|
+
[previousLabel]="'PREVIOUS' | localize"
|
|
5089
|
+
[nextLabel]="'NEXT' | localize"
|
|
5090
|
+
[autoHide]="true"
|
|
5091
|
+
[directionLinks]="true"
|
|
5092
|
+
[paginationRange]="8"
|
|
5093
|
+
(previousClick)="onPreviousClick()"
|
|
5094
|
+
(nextClick)="onNextClick()"
|
|
5095
|
+
(pageClick)="onPageClick($event)">
|
|
5096
|
+
</co-pagination-bar>
|
|
5097
|
+
`,
|
|
5098
|
+
encapsulation: ViewEncapsulation.None,
|
|
5099
|
+
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"]
|
|
5100
|
+
},] }
|
|
5101
|
+
];
|
|
5102
|
+
CatalogStockOverviewTileComponent.ctorParameters = () => [
|
|
5103
|
+
{ type: IconCacheService },
|
|
5104
|
+
{ type: CatalogStockService }
|
|
5105
|
+
];
|
|
5106
|
+
CatalogStockOverviewTileComponent.propDecorators = {
|
|
5107
|
+
showClass: [{ type: HostBinding, args: ['class.co-catalog-stock-overview-tile',] }]
|
|
5108
|
+
};
|
|
5109
|
+
|
|
5110
|
+
class CatalogStockOverviewTileModule {
|
|
5111
|
+
}
|
|
5112
|
+
CatalogStockOverviewTileModule.decorators = [
|
|
5113
|
+
{ type: NgModule, args: [{
|
|
5114
|
+
imports: [
|
|
5115
|
+
CommonModule,
|
|
5116
|
+
PipeModule,
|
|
5117
|
+
IconModule,
|
|
5118
|
+
ImageModule,
|
|
5119
|
+
PriceDisplayPipeModule,
|
|
5120
|
+
PaginationBarModule,
|
|
5121
|
+
],
|
|
5122
|
+
declarations: [
|
|
5123
|
+
CatalogStockOverviewTileComponent
|
|
5124
|
+
],
|
|
5125
|
+
exports: [
|
|
5126
|
+
CatalogStockOverviewTileComponent
|
|
5127
|
+
]
|
|
5128
|
+
},] }
|
|
5129
|
+
];
|
|
5130
|
+
|
|
5131
|
+
class CatalogStockOverviewListComponent {
|
|
5132
|
+
constructor(catalogStockService) {
|
|
5133
|
+
this.catalogStockService = catalogStockService;
|
|
5134
|
+
this.showClass = true;
|
|
5135
|
+
}
|
|
5136
|
+
ngOnInit() {
|
|
5137
|
+
this.catalogStockService.searchArticlesForGridView();
|
|
5138
|
+
}
|
|
5139
|
+
onPreviousClick() {
|
|
5140
|
+
this.catalogStockService.currentPage -= 1;
|
|
5141
|
+
}
|
|
5142
|
+
onNextClick() {
|
|
5143
|
+
this.catalogStockService.currentPage += 1;
|
|
5144
|
+
}
|
|
5145
|
+
onPageClick(pageNr) {
|
|
5146
|
+
this.catalogStockService.currentPage = pageNr;
|
|
5147
|
+
}
|
|
5148
|
+
}
|
|
5149
|
+
CatalogStockOverviewListComponent.decorators = [
|
|
5150
|
+
{ type: Component, args: [{
|
|
5151
|
+
selector: 'co-catalog-stock-overview-list',
|
|
5152
|
+
template: `
|
|
5153
|
+
<co-simple-grid [data]="this.catalogStockService.gridArticles">
|
|
5154
|
+
<co-simple-grid-column
|
|
5155
|
+
[headerText]="'ARTICLE_NUMBER' | localize"
|
|
5156
|
+
[field]="'articleNumber'">
|
|
5157
|
+
</co-simple-grid-column>
|
|
5158
|
+
<co-simple-grid-column
|
|
5159
|
+
[headerText]="'ARTICLE_DESCRIPTION' | localize"
|
|
5160
|
+
[field]="'articleDescription'">
|
|
5161
|
+
</co-simple-grid-column>
|
|
5162
|
+
<co-simple-grid-column
|
|
5163
|
+
[headerText]="'SUPER_ARTICLE' | localize"
|
|
5164
|
+
[field]="'name'">
|
|
5165
|
+
</co-simple-grid-column>
|
|
5166
|
+
<co-simple-grid-column
|
|
5167
|
+
[headerText]="'TURNOVER_GROUP' | localize"
|
|
5168
|
+
[field]="'turnoverGroupDescr'">
|
|
5169
|
+
</co-simple-grid-column>
|
|
5170
|
+
<co-simple-grid-column
|
|
5171
|
+
[headerText]="'SUPPLIER' | localize"
|
|
5172
|
+
[field]="'standardSupplier'">
|
|
5173
|
+
</co-simple-grid-column>
|
|
5174
|
+
<co-simple-grid-column
|
|
5175
|
+
[headerText]="'STOREROOM' | localize"
|
|
5176
|
+
[field]="'warehouseDescription'">
|
|
5177
|
+
</co-simple-grid-column>
|
|
5178
|
+
<co-simple-grid-column
|
|
5179
|
+
[headerText]="'LOCATION' | localize"
|
|
5180
|
+
[field]="'stockLocationDescription'">
|
|
5181
|
+
</co-simple-grid-column>
|
|
5182
|
+
<co-simple-grid-column
|
|
5183
|
+
[headerText]="'STOCK' | localize"
|
|
5184
|
+
[field]="'amount'">
|
|
5185
|
+
</co-simple-grid-column>
|
|
5186
|
+
<co-simple-grid-column
|
|
5187
|
+
[headerText]="'TOTAL_ARTICLES_IN_ORDER' | localize"
|
|
5188
|
+
[field]="'quantityInOrders'">
|
|
5189
|
+
</co-simple-grid-column>
|
|
5190
|
+
<co-simple-grid-column
|
|
5191
|
+
[headerText]="'PURCHASEORDERS' | localize"
|
|
5192
|
+
[field]="'quantityInPurchaseOrders'">
|
|
5193
|
+
</co-simple-grid-column>
|
|
5194
|
+
<co-simple-grid-column
|
|
5195
|
+
[headerText]="'BATCH_NO' | localize"
|
|
5196
|
+
[field]="'batchNumber'">
|
|
5197
|
+
</co-simple-grid-column>
|
|
5198
|
+
<co-simple-grid-column
|
|
5199
|
+
[headerText]="'SERIAL_NO' | localize"
|
|
5200
|
+
[field]="'serialNumber'">
|
|
5201
|
+
</co-simple-grid-column>
|
|
5202
|
+
<co-simple-grid-column
|
|
5203
|
+
[headerText]="'DIRECTLY_AVAILABLE' | localize"
|
|
5204
|
+
[field]="'nowAvailable'">
|
|
5205
|
+
</co-simple-grid-column>
|
|
5206
|
+
</co-simple-grid>
|
|
5207
|
+
<co-pagination-bar
|
|
5208
|
+
*ngIf="catalogStockService.gridArticles?.length > 0"
|
|
5209
|
+
[currentPage]="catalogStockService.currentPage"
|
|
5210
|
+
[itemsPerPage]="catalogStockService.articlesPerPage"
|
|
5211
|
+
[totalItems]="catalogStockService.resultCount"
|
|
5212
|
+
[previousLabel]="'PREVIOUS' | localize"
|
|
5213
|
+
[nextLabel]="'NEXT' | localize"
|
|
5214
|
+
[autoHide]="true"
|
|
5215
|
+
[directionLinks]="true"
|
|
5216
|
+
[paginationRange]="8"
|
|
5217
|
+
(previousClick)="onPreviousClick()"
|
|
5218
|
+
(nextClick)="onNextClick()"
|
|
5219
|
+
(pageClick)="onPageClick($event)">
|
|
5220
|
+
</co-pagination-bar>
|
|
5221
|
+
`,
|
|
5222
|
+
encapsulation: ViewEncapsulation.None,
|
|
5223
|
+
styles: [""]
|
|
5224
|
+
},] }
|
|
5225
|
+
];
|
|
5226
|
+
CatalogStockOverviewListComponent.ctorParameters = () => [
|
|
5227
|
+
{ type: CatalogStockService }
|
|
5228
|
+
];
|
|
5229
|
+
CatalogStockOverviewListComponent.propDecorators = {
|
|
5230
|
+
showClass: [{ type: HostBinding, args: ['class.co-catalog-stock-overview-list',] }]
|
|
5231
|
+
};
|
|
5232
|
+
|
|
5233
|
+
class CatalogStockOverviewListModule {
|
|
5234
|
+
}
|
|
5235
|
+
CatalogStockOverviewListModule.decorators = [
|
|
5236
|
+
{ type: NgModule, args: [{
|
|
5237
|
+
imports: [
|
|
5238
|
+
CommonModule,
|
|
5239
|
+
PipeModule,
|
|
5240
|
+
SimpleGridModule,
|
|
5241
|
+
PaginationBarModule
|
|
5242
|
+
],
|
|
5243
|
+
declarations: [
|
|
5244
|
+
CatalogStockOverviewListComponent
|
|
5245
|
+
],
|
|
5246
|
+
exports: [
|
|
5247
|
+
CatalogStockOverviewListComponent
|
|
5248
|
+
]
|
|
5249
|
+
},] }
|
|
5250
|
+
];
|
|
5251
|
+
|
|
5252
|
+
class CatalogStockComparisonTileComponent {
|
|
5253
|
+
constructor(iconCache, catalogStockComparisonService) {
|
|
5254
|
+
this.iconCache = iconCache;
|
|
5255
|
+
this.catalogStockComparisonService = catalogStockComparisonService;
|
|
5256
|
+
this.showClass = true;
|
|
5257
|
+
this.icons = IconEnum;
|
|
5258
|
+
this.valutaSymbol = '€';
|
|
5259
|
+
}
|
|
5260
|
+
ngOnInit() {
|
|
5261
|
+
this.catalogStockComparisonService.searchArticlesForTileView();
|
|
5262
|
+
}
|
|
5263
|
+
onPreviousClick() {
|
|
5264
|
+
this.catalogStockComparisonService.currentPage -= 1;
|
|
5265
|
+
}
|
|
5266
|
+
onNextClick() {
|
|
5267
|
+
this.catalogStockComparisonService.currentPage += 1;
|
|
5268
|
+
}
|
|
5269
|
+
onPageClick(pageNr) {
|
|
5270
|
+
this.catalogStockComparisonService.currentPage = pageNr;
|
|
5271
|
+
}
|
|
5272
|
+
}
|
|
5273
|
+
CatalogStockComparisonTileComponent.decorators = [
|
|
5274
|
+
{ type: Component, args: [{
|
|
5275
|
+
selector: 'co-catalog-stock-comparison-tile',
|
|
5276
|
+
template: `
|
|
5277
|
+
<div class="article-tiles">
|
|
5278
|
+
<div class="article-tile" *ngFor="let article of catalogStockComparisonService.comparisonTileArticles">
|
|
5279
|
+
<div class="image">
|
|
5280
|
+
<co-image class="co-image" [source]="article.imageData"></co-image>
|
|
5281
|
+
</div>
|
|
5282
|
+
<div class="brand" [innerText]="article.brandDescription"></div>
|
|
5283
|
+
<div class="product" [innerText]="article.name"></div>
|
|
5284
|
+
<div class="description" [innerText]="article.description"></div>
|
|
5285
|
+
<div class="price">
|
|
5286
|
+
<span [innerText]="'FROM' | localize"></span>
|
|
5287
|
+
<span [innerText]="article.price | priceDisplay:valutaSymbol"></span>
|
|
5288
|
+
</div>
|
|
5289
|
+
<div class="one-liner">
|
|
5290
|
+
<div class="product-num">
|
|
5291
|
+
<co-icon [iconData]="iconCache.getIcon(icons.BarsFilter)"></co-icon>
|
|
5292
|
+
<span [innerText]="article.goodId"></span>
|
|
5293
|
+
</div>
|
|
5294
|
+
<div class="turnover-group">
|
|
5295
|
+
<span [innerText]="'GROUP' | localize"></span>:
|
|
5296
|
+
<span [innerText]="article.turnoverGroupDescr"></span>
|
|
5297
|
+
</div>
|
|
5298
|
+
</div>
|
|
5299
|
+
<div class="tile-item">
|
|
5300
|
+
<span [innerText]="'SOURCE_WAREHOUSE' | localize"></span>:
|
|
5301
|
+
<strong [innerText]="article.sourceWarehouseQuantity"></strong>
|
|
5302
|
+
</div>
|
|
5303
|
+
<div class="tile-item">
|
|
5304
|
+
<span [innerText]="'TARGET_WAREHOUSE' | localize"></span>:
|
|
5305
|
+
<strong [innerText]="article.targetWarehouseQuantity"></strong>
|
|
5306
|
+
</div>
|
|
5307
|
+
<div class="details">Details</div>
|
|
5308
|
+
</div>
|
|
5309
|
+
</div>
|
|
5310
|
+
<co-pagination-bar
|
|
5311
|
+
*ngIf="catalogStockComparisonService.comparisonTileArticles?.length > 0"
|
|
5312
|
+
[currentPage]="catalogStockComparisonService.currentPage"
|
|
5313
|
+
[itemsPerPage]="catalogStockComparisonService.articlesPerPage"
|
|
5314
|
+
[totalItems]="catalogStockComparisonService.resultCount"
|
|
5315
|
+
[previousLabel]="'PREVIOUS' | localize"
|
|
5316
|
+
[nextLabel]="'NEXT' | localize"
|
|
5317
|
+
[autoHide]="true"
|
|
5318
|
+
[directionLinks]="true"
|
|
5319
|
+
[paginationRange]="8"
|
|
5320
|
+
(previousClick)="onPreviousClick()"
|
|
5321
|
+
(nextClick)="onNextClick()"
|
|
5322
|
+
(pageClick)="onPageClick($event)">
|
|
5323
|
+
</co-pagination-bar>
|
|
5324
|
+
`,
|
|
5325
|
+
encapsulation: ViewEncapsulation.None,
|
|
5326
|
+
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"]
|
|
5327
|
+
},] }
|
|
5328
|
+
];
|
|
5329
|
+
CatalogStockComparisonTileComponent.ctorParameters = () => [
|
|
5330
|
+
{ type: IconCacheService },
|
|
5331
|
+
{ type: CatalogStockComparisonService }
|
|
5332
|
+
];
|
|
5333
|
+
CatalogStockComparisonTileComponent.propDecorators = {
|
|
5334
|
+
showClass: [{ type: HostBinding, args: ['class.co-catalog-stock-comparison-tile',] }]
|
|
5335
|
+
};
|
|
5336
|
+
|
|
5337
|
+
class CatalogStockComparisonTileModule {
|
|
5338
|
+
}
|
|
5339
|
+
CatalogStockComparisonTileModule.decorators = [
|
|
5340
|
+
{ type: NgModule, args: [{
|
|
5341
|
+
imports: [
|
|
5342
|
+
CommonModule,
|
|
5343
|
+
PipeModule,
|
|
5344
|
+
IconModule,
|
|
5345
|
+
ImageModule,
|
|
5346
|
+
PriceDisplayPipeModule,
|
|
5347
|
+
PaginationBarModule,
|
|
5348
|
+
],
|
|
5349
|
+
declarations: [
|
|
5350
|
+
CatalogStockComparisonTileComponent
|
|
5351
|
+
],
|
|
5352
|
+
exports: [
|
|
5353
|
+
CatalogStockComparisonTileComponent
|
|
5354
|
+
]
|
|
5355
|
+
},] }
|
|
5356
|
+
];
|
|
5357
|
+
|
|
5358
|
+
class CatalogStockComparisonListComponent {
|
|
5359
|
+
constructor(catalogStockComparisonService) {
|
|
5360
|
+
this.catalogStockComparisonService = catalogStockComparisonService;
|
|
5361
|
+
this.showClass = true;
|
|
5362
|
+
}
|
|
5363
|
+
ngOnInit() {
|
|
5364
|
+
this.catalogStockComparisonService.searchArticlesForGridView();
|
|
5365
|
+
}
|
|
5366
|
+
onPreviousClick() {
|
|
5367
|
+
this.catalogStockComparisonService.currentPage -= 1;
|
|
5368
|
+
}
|
|
5369
|
+
onNextClick() {
|
|
5370
|
+
this.catalogStockComparisonService.currentPage += 1;
|
|
5371
|
+
}
|
|
5372
|
+
onPageClick(pageNr) {
|
|
5373
|
+
this.catalogStockComparisonService.currentPage = pageNr;
|
|
5374
|
+
}
|
|
5375
|
+
}
|
|
5376
|
+
CatalogStockComparisonListComponent.decorators = [
|
|
5377
|
+
{ type: Component, args: [{
|
|
5378
|
+
selector: 'co-catalog-stock-comparison-list',
|
|
5379
|
+
template: `
|
|
5380
|
+
<co-simple-grid [data]="this.catalogStockComparisonService.comparisonGridArticles">
|
|
5381
|
+
<co-simple-grid-column
|
|
5382
|
+
[headerText]="'ARTICLE_NUMBER' | localize"
|
|
5383
|
+
[field]="'articleNumber'">
|
|
5384
|
+
</co-simple-grid-column>
|
|
5385
|
+
<co-simple-grid-column
|
|
5386
|
+
[headerText]="'ARTICLE_DESCRIPTION' | localize"
|
|
5387
|
+
[field]="'articleDescription'">
|
|
5388
|
+
</co-simple-grid-column>
|
|
5389
|
+
<co-simple-grid-column
|
|
5390
|
+
[headerText]="'SUPER_ARTICLE' | localize"
|
|
5391
|
+
[field]="'name'">
|
|
5392
|
+
</co-simple-grid-column>
|
|
5393
|
+
<co-simple-grid-column
|
|
5394
|
+
[headerText]="'TURNOVER_GROUP' | localize"
|
|
5395
|
+
[field]="'turnoverGroupDescr'">
|
|
5396
|
+
</co-simple-grid-column>
|
|
5397
|
+
<co-simple-grid-column
|
|
5398
|
+
[headerText]="'SUPPLIER' | localize"
|
|
5399
|
+
[field]="'standardSupplier'">
|
|
5400
|
+
</co-simple-grid-column>
|
|
5401
|
+
<co-simple-grid-column
|
|
5402
|
+
[headerText]="'STOREROOM' | localize"
|
|
5403
|
+
[field]="'sourceWarehouseDescription'">
|
|
5404
|
+
</co-simple-grid-column>
|
|
5405
|
+
<co-simple-grid-column
|
|
5406
|
+
[headerText]="'Quantity source'"
|
|
5407
|
+
[field]="'sourceWarehouseQuantity'">
|
|
5408
|
+
</co-simple-grid-column>
|
|
5409
|
+
<co-simple-grid-column
|
|
5410
|
+
[headerText]="'TARGET_WAREHOUSE' | localize"
|
|
5411
|
+
[field]="'targetWarehouseDescription'">
|
|
5412
|
+
</co-simple-grid-column>
|
|
5413
|
+
<co-simple-grid-column
|
|
5414
|
+
[headerText]="'STOCK' | localize"
|
|
5415
|
+
[field]="'targetWarehouseQuantity'">
|
|
5416
|
+
</co-simple-grid-column>
|
|
5417
|
+
</co-simple-grid>
|
|
5418
|
+
<co-pagination-bar
|
|
5419
|
+
*ngIf="catalogStockComparisonService.comparisonGridArticles?.length > 0"
|
|
5420
|
+
[currentPage]="catalogStockComparisonService.currentPage"
|
|
5421
|
+
[itemsPerPage]="catalogStockComparisonService.articlesPerPage"
|
|
5422
|
+
[totalItems]="catalogStockComparisonService.resultCount"
|
|
5423
|
+
[previousLabel]="'PREVIOUS' | localize"
|
|
5424
|
+
[nextLabel]="'NEXT' | localize"
|
|
5425
|
+
[autoHide]="true"
|
|
5426
|
+
[directionLinks]="true"
|
|
5427
|
+
[paginationRange]="8"
|
|
5428
|
+
(previousClick)="onPreviousClick()"
|
|
5429
|
+
(nextClick)="onNextClick()"
|
|
5430
|
+
(pageClick)="onPageClick($event)">
|
|
5431
|
+
</co-pagination-bar>
|
|
5432
|
+
`,
|
|
5433
|
+
encapsulation: ViewEncapsulation.None,
|
|
5434
|
+
styles: [""]
|
|
5435
|
+
},] }
|
|
5436
|
+
];
|
|
5437
|
+
CatalogStockComparisonListComponent.ctorParameters = () => [
|
|
5438
|
+
{ type: CatalogStockComparisonService }
|
|
5439
|
+
];
|
|
5440
|
+
CatalogStockComparisonListComponent.propDecorators = {
|
|
5441
|
+
showClass: [{ type: HostBinding, args: ['class.co-catalog-stock-comparison-list',] }]
|
|
5442
|
+
};
|
|
5443
|
+
|
|
5444
|
+
class CatalogStockComparisonListModule {
|
|
5445
|
+
}
|
|
5446
|
+
CatalogStockComparisonListModule.decorators = [
|
|
5447
|
+
{ type: NgModule, args: [{
|
|
5448
|
+
imports: [
|
|
5449
|
+
CommonModule,
|
|
5450
|
+
PipeModule,
|
|
5451
|
+
SimpleGridModule,
|
|
5452
|
+
PaginationBarModule
|
|
5453
|
+
],
|
|
5454
|
+
declarations: [
|
|
5455
|
+
CatalogStockComparisonListComponent
|
|
5456
|
+
],
|
|
5457
|
+
exports: [
|
|
5458
|
+
CatalogStockComparisonListComponent
|
|
5459
|
+
]
|
|
5460
|
+
},] }
|
|
5461
|
+
];
|
|
5462
|
+
|
|
5463
|
+
class CatalogWarehouseTransfersTileComponent {
|
|
5464
|
+
constructor(iconCache, catalogStockTransferService) {
|
|
5465
|
+
this.iconCache = iconCache;
|
|
5466
|
+
this.catalogStockTransferService = catalogStockTransferService;
|
|
5467
|
+
this.showClass = true;
|
|
5468
|
+
this.icons = IconEnum;
|
|
5469
|
+
this.valutaSymbol = '€';
|
|
5470
|
+
}
|
|
5471
|
+
ngOnInit() {
|
|
5472
|
+
this.catalogStockTransferService.searchArticlesForTileView();
|
|
5473
|
+
}
|
|
5474
|
+
onPreviousClick() {
|
|
5475
|
+
this.catalogStockTransferService.currentPage -= 1;
|
|
5476
|
+
}
|
|
5477
|
+
onNextClick() {
|
|
5478
|
+
this.catalogStockTransferService.currentPage += 1;
|
|
5479
|
+
}
|
|
5480
|
+
onPageClick(pageNr) {
|
|
5481
|
+
this.catalogStockTransferService.currentPage = pageNr;
|
|
5482
|
+
}
|
|
5483
|
+
}
|
|
5484
|
+
CatalogWarehouseTransfersTileComponent.decorators = [
|
|
5485
|
+
{ type: Component, args: [{
|
|
5486
|
+
selector: 'co-catalog-warehouse-transfers-tile',
|
|
5487
|
+
template: `
|
|
5488
|
+
<div class="article-tiles">
|
|
5489
|
+
<div class="article-tile" *ngFor="let article of catalogStockTransferService.transferTileArticles">
|
|
5490
|
+
<div class="image">
|
|
5491
|
+
<co-image class="co-image" [source]="article.imageData"></co-image>
|
|
5492
|
+
</div>
|
|
5493
|
+
<div class="brand" [innerText]="article.buyerDescription"></div>
|
|
5494
|
+
<div class="product" [innerText]="article.name"></div>
|
|
5495
|
+
<div class="description" [innerText]="article.description"></div>
|
|
5496
|
+
<div class="price">
|
|
5497
|
+
<span [innerText]="'FROM' | localize"></span>
|
|
5498
|
+
<span [innerText]="article.price | priceDisplay:valutaSymbol"></span>
|
|
5499
|
+
</div>
|
|
5500
|
+
<div class="one-liner">
|
|
5501
|
+
<div class="product-num">
|
|
5502
|
+
<co-icon [iconData]="iconCache.getIcon(icons.BarsFilter)"></co-icon>
|
|
5503
|
+
<span [innerText]="article.goodId"></span>
|
|
5504
|
+
</div>
|
|
5505
|
+
<div class="turnover-group">
|
|
5506
|
+
<span [innerText]="'GROUP' | localize"></span>:
|
|
5507
|
+
<span [innerText]="article.turnoverGroupDescr"></span>
|
|
5508
|
+
</div>
|
|
5509
|
+
</div>
|
|
5510
|
+
<div class="tile-item">
|
|
5511
|
+
<span [innerText]="'SOURCE_WAREHOUSE' | localize"></span>:
|
|
5512
|
+
<strong [innerText]="article.sourceWarehouseNumber"></strong>
|
|
5513
|
+
</div>
|
|
5514
|
+
<div class="tile-item">
|
|
5515
|
+
<span [innerText]="'TARGET_WAREHOUSE' | localize"></span>:
|
|
5516
|
+
<strong [innerText]="article.targetWarehouseNumber"></strong>
|
|
5517
|
+
</div>
|
|
5518
|
+
<div class="one-liner">
|
|
5519
|
+
<div>
|
|
5520
|
+
<span>Number overbooked</span>:
|
|
5521
|
+
<strong [innerText]="article.quantityOverbooked"></strong>
|
|
5522
|
+
</div>
|
|
5523
|
+
<div class="details">Details</div>
|
|
5524
|
+
</div>
|
|
5525
|
+
</div>
|
|
5526
|
+
</div>
|
|
5527
|
+
<co-pagination-bar
|
|
5528
|
+
*ngIf="catalogStockTransferService.transferTileArticles?.length > 0"
|
|
5529
|
+
[currentPage]="catalogStockTransferService.currentPage"
|
|
5530
|
+
[itemsPerPage]="catalogStockTransferService.articlesPerPage"
|
|
5531
|
+
[totalItems]="catalogStockTransferService.resultCount"
|
|
5532
|
+
[previousLabel]="'PREVIOUS' | localize"
|
|
5533
|
+
[nextLabel]="'NEXT' | localize"
|
|
5534
|
+
[autoHide]="true"
|
|
5535
|
+
[directionLinks]="true"
|
|
5536
|
+
[paginationRange]="8"
|
|
5537
|
+
(previousClick)="onPreviousClick()"
|
|
5538
|
+
(nextClick)="onNextClick()"
|
|
5539
|
+
(pageClick)="onPageClick($event)">
|
|
5540
|
+
</co-pagination-bar>
|
|
5541
|
+
`,
|
|
5542
|
+
encapsulation: ViewEncapsulation.None,
|
|
5543
|
+
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"]
|
|
5544
|
+
},] }
|
|
5545
|
+
];
|
|
5546
|
+
CatalogWarehouseTransfersTileComponent.ctorParameters = () => [
|
|
5547
|
+
{ type: IconCacheService },
|
|
5548
|
+
{ type: CatalogStockTransferService }
|
|
5549
|
+
];
|
|
5550
|
+
CatalogWarehouseTransfersTileComponent.propDecorators = {
|
|
5551
|
+
showClass: [{ type: HostBinding, args: ['class.co-catalog-warehouse-transfers-tile',] }]
|
|
5552
|
+
};
|
|
5553
|
+
|
|
5554
|
+
class CatalogWarehouseTransfersTileModule {
|
|
5555
|
+
}
|
|
5556
|
+
CatalogWarehouseTransfersTileModule.decorators = [
|
|
5557
|
+
{ type: NgModule, args: [{
|
|
5558
|
+
imports: [
|
|
5559
|
+
CommonModule,
|
|
5560
|
+
PipeModule,
|
|
5561
|
+
IconModule,
|
|
5562
|
+
ImageModule,
|
|
5563
|
+
PriceDisplayPipeModule,
|
|
5564
|
+
PaginationBarModule,
|
|
5565
|
+
],
|
|
5566
|
+
declarations: [
|
|
5567
|
+
CatalogWarehouseTransfersTileComponent
|
|
5568
|
+
],
|
|
5569
|
+
exports: [
|
|
5570
|
+
CatalogWarehouseTransfersTileComponent
|
|
5571
|
+
]
|
|
5572
|
+
},] }
|
|
5573
|
+
];
|
|
5574
|
+
|
|
5575
|
+
class CatalogWarehouseTransfersListComponent {
|
|
5576
|
+
constructor(catalogStockTransferService) {
|
|
5577
|
+
this.catalogStockTransferService = catalogStockTransferService;
|
|
5578
|
+
this.showClass = true;
|
|
5579
|
+
}
|
|
5580
|
+
ngOnInit() {
|
|
5581
|
+
this.catalogStockTransferService.searchArticlesForGridView();
|
|
5582
|
+
}
|
|
5583
|
+
onPreviousClick() {
|
|
5584
|
+
this.catalogStockTransferService.currentPage -= 1;
|
|
5585
|
+
}
|
|
5586
|
+
onNextClick() {
|
|
5587
|
+
this.catalogStockTransferService.currentPage += 1;
|
|
5588
|
+
}
|
|
5589
|
+
onPageClick(pageNr) {
|
|
5590
|
+
this.catalogStockTransferService.currentPage = pageNr;
|
|
5591
|
+
}
|
|
5592
|
+
}
|
|
5593
|
+
CatalogWarehouseTransfersListComponent.decorators = [
|
|
5594
|
+
{ type: Component, args: [{
|
|
5595
|
+
selector: 'co-catalog-warehouse-transfers-list',
|
|
5596
|
+
template: `
|
|
5597
|
+
<co-simple-grid [data]="this.catalogStockTransferService.transferGridArticles">
|
|
5598
|
+
<co-simple-grid-column
|
|
5599
|
+
[headerText]="'ARTICLE_NUMBER' | localize"
|
|
5600
|
+
[field]="'articleNumber'">
|
|
5601
|
+
</co-simple-grid-column>
|
|
5602
|
+
<co-simple-grid-column
|
|
5603
|
+
[headerText]="'ARTICLE_DESCRIPTION' | localize"
|
|
5604
|
+
[field]="'description'">
|
|
5605
|
+
</co-simple-grid-column>
|
|
5606
|
+
<co-simple-grid-column
|
|
5607
|
+
[headerText]="'SUPER_ARTICLE' | localize"
|
|
5608
|
+
[field]="'name'">
|
|
5609
|
+
</co-simple-grid-column>
|
|
5610
|
+
<co-simple-grid-column
|
|
5611
|
+
[headerText]="'TURNOVER_GROUP' | localize"
|
|
5612
|
+
[field]="'turnoverGroupDescr'">
|
|
5613
|
+
</co-simple-grid-column>
|
|
5614
|
+
<co-simple-grid-column
|
|
5615
|
+
[headerText]="'SUPPLIER' | localize"
|
|
5616
|
+
[field]="'supplierNumber'">
|
|
5617
|
+
</co-simple-grid-column>
|
|
5618
|
+
<co-simple-grid-column
|
|
5619
|
+
[headerText]="'SOURCE_WAREHOUSE' | localize"
|
|
5620
|
+
[field]="'sourceWarehouseNumber'">
|
|
5621
|
+
</co-simple-grid-column>
|
|
5622
|
+
<co-simple-grid-column
|
|
5623
|
+
[headerText]="'SOURCE_LOCATION' | localize"
|
|
5624
|
+
[field]="'sourceLocation'">
|
|
5625
|
+
</co-simple-grid-column>
|
|
5626
|
+
<co-simple-grid-column
|
|
5627
|
+
[headerText]="'TARGET_WAREHOUSE' | localize"
|
|
5628
|
+
[field]="'targetWarehouseNumber'">
|
|
5629
|
+
</co-simple-grid-column>
|
|
5630
|
+
<co-simple-grid-column
|
|
5631
|
+
[headerText]="'TARGET_LOCATION' | localize"
|
|
5632
|
+
[field]="'targetLocation'">
|
|
5633
|
+
</co-simple-grid-column>
|
|
5634
|
+
<co-simple-grid-column
|
|
5635
|
+
[headerText]="'SERIAL_NO' | localize"
|
|
5636
|
+
[field]="'serialNumber'">
|
|
5637
|
+
</co-simple-grid-column>
|
|
5638
|
+
<co-simple-grid-column
|
|
5639
|
+
[headerText]="'BATCH_NO' | localize"
|
|
5640
|
+
[field]="'batchNumber'">
|
|
5641
|
+
</co-simple-grid-column>
|
|
5642
|
+
<co-simple-grid-column
|
|
5643
|
+
[headerText]="'QUANTITY' | localize"
|
|
5644
|
+
[field]="'quantity'">
|
|
5645
|
+
</co-simple-grid-column>
|
|
5646
|
+
<co-simple-grid-column
|
|
5647
|
+
[headerText]="'CREATION_DATE' | localize"
|
|
5648
|
+
[field]="'creationDate'">
|
|
5649
|
+
</co-simple-grid-column>
|
|
5650
|
+
<co-simple-grid-column
|
|
5651
|
+
[headerText]="'USER' | localize"
|
|
5652
|
+
[field]="'user'">
|
|
5653
|
+
</co-simple-grid-column>
|
|
5654
|
+
</co-simple-grid>
|
|
5655
|
+
<co-pagination-bar
|
|
5656
|
+
*ngIf="catalogStockTransferService.transferGridArticles?.length > 0"
|
|
5657
|
+
[currentPage]="catalogStockTransferService.currentPage"
|
|
5658
|
+
[itemsPerPage]="catalogStockTransferService.articlesPerPage"
|
|
5659
|
+
[totalItems]="catalogStockTransferService.resultCount"
|
|
5660
|
+
[previousLabel]="'PREVIOUS' | localize"
|
|
5661
|
+
[nextLabel]="'NEXT' | localize"
|
|
5662
|
+
[autoHide]="true"
|
|
5663
|
+
[directionLinks]="true"
|
|
5664
|
+
[paginationRange]="8"
|
|
5665
|
+
(previousClick)="onPreviousClick()"
|
|
5666
|
+
(nextClick)="onNextClick()"
|
|
5667
|
+
(pageClick)="onPageClick($event)">
|
|
5668
|
+
</co-pagination-bar>
|
|
5669
|
+
`,
|
|
5670
|
+
encapsulation: ViewEncapsulation.None,
|
|
5671
|
+
styles: [""]
|
|
5672
|
+
},] }
|
|
5673
|
+
];
|
|
5674
|
+
CatalogWarehouseTransfersListComponent.ctorParameters = () => [
|
|
5675
|
+
{ type: CatalogStockTransferService }
|
|
5676
|
+
];
|
|
5677
|
+
CatalogWarehouseTransfersListComponent.propDecorators = {
|
|
5678
|
+
showClass: [{ type: HostBinding, args: ['class.co-catalog-warehouse-transfers-list',] }]
|
|
5679
|
+
};
|
|
5680
|
+
|
|
5681
|
+
class CatalogWarehouseTransfersListModule {
|
|
5682
|
+
}
|
|
5683
|
+
CatalogWarehouseTransfersListModule.decorators = [
|
|
5684
|
+
{ type: NgModule, args: [{
|
|
5685
|
+
imports: [
|
|
5686
|
+
CommonModule,
|
|
5687
|
+
PipeModule,
|
|
5688
|
+
SimpleGridModule,
|
|
5689
|
+
PaginationBarModule
|
|
5690
|
+
],
|
|
5691
|
+
declarations: [
|
|
5692
|
+
CatalogWarehouseTransfersListComponent
|
|
5693
|
+
],
|
|
5694
|
+
exports: [
|
|
5695
|
+
CatalogWarehouseTransfersListComponent
|
|
5696
|
+
]
|
|
5697
|
+
},] }
|
|
5698
|
+
];
|
|
5699
|
+
|
|
4609
5700
|
class CatalogSearchModule {
|
|
4610
5701
|
static ForRoot() {
|
|
4611
5702
|
return {
|
|
@@ -4624,7 +5715,10 @@ class CatalogSearchModule {
|
|
|
4624
5715
|
CatalogConnectorAdapterService,
|
|
4625
5716
|
CatalogService,
|
|
4626
5717
|
CatalogSettingsService,
|
|
4627
|
-
CatalogSearchService
|
|
5718
|
+
CatalogSearchService,
|
|
5719
|
+
CatalogStockService,
|
|
5720
|
+
CatalogStockComparisonService,
|
|
5721
|
+
CatalogStockTransferService
|
|
4628
5722
|
]
|
|
4629
5723
|
};
|
|
4630
5724
|
}
|
|
@@ -4637,6 +5731,12 @@ CatalogSearchModule.decorators = [
|
|
|
4637
5731
|
CatalogSearchHeaderModule,
|
|
4638
5732
|
CatalogSearchResultTileModule,
|
|
4639
5733
|
CatalogSearchResultListModule,
|
|
5734
|
+
CatalogStockOverviewTileModule,
|
|
5735
|
+
CatalogStockOverviewListModule,
|
|
5736
|
+
CatalogStockComparisonTileModule,
|
|
5737
|
+
CatalogStockComparisonListModule,
|
|
5738
|
+
CatalogWarehouseTransfersTileModule,
|
|
5739
|
+
CatalogWarehouseTransfersListModule,
|
|
4640
5740
|
CatalogCategoriesModule,
|
|
4641
5741
|
CatalogExternalSourcesModule,
|
|
4642
5742
|
CatalogNavigationModule,
|
|
@@ -4838,5 +5938,5 @@ CatalogExternalSourceModule.decorators = [
|
|
|
4838
5938
|
* Generated bundle index. Do not edit.
|
|
4839
5939
|
*/
|
|
4840
5940
|
|
|
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,
|
|
5941
|
+
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
5942
|
//# sourceMappingURL=colijnit-catalog.js.map
|