@colijnit/catalog 255.1.2 → 255.1.4
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 +124 -24
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +29 -15
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +178 -27
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +1 -1
- package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.component.js +1 -1
- package/esm2015/lib/service/catalog-connector-adapter.service.js +25 -5
- package/esm2015/lib/service/catalog-connector.service.js +13 -3
- package/esm2015/lib/service/catalog-stock-comparison.service.js +7 -1
- package/esm2015/lib/service/catalog-stock-transfer.service.js +7 -1
- package/esm2015/lib/service/catalog-stock.service.js +1 -2
- package/esm2015/lib/service/catalog.service.js +13 -1
- package/fesm2015/colijnit-catalog.js +267 -51
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-filter/catalog-filter.component.d.ts +10 -6
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +9 -2
- package/lib/service/catalog-connector-adapter.service.d.ts +3 -1
- package/lib/service/catalog-connector.service.d.ts +3 -1
- package/lib/service/catalog-stock-comparison.service.d.ts +1 -0
- package/lib/service/catalog-stock-transfer.service.d.ts +1 -0
- package/lib/service/catalog-stock.service.d.ts +0 -2
- package/lib/service/catalog.service.d.ts +10 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { IconEnum } from '../../enum/icon.enum';
|
|
3
3
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
4
4
|
import { CatalogConnectorService } from '../../service/catalog-connector.service';
|
|
@@ -6,13 +6,15 @@ import { UserGroup } from '@colijnit/mainapi/build/model/user-group.bo';
|
|
|
6
6
|
import { CatalogSearchService } from '../../service/catalog-search.service';
|
|
7
7
|
import { CatalogConnectorAdapterService } from '../../service/catalog-connector-adapter.service';
|
|
8
8
|
import { CatalogSettingsService } from '../../service/catalog-settings.service';
|
|
9
|
-
|
|
9
|
+
import { CatalogService, StockView } from "../../service/catalog.service";
|
|
10
|
+
export declare class CatalogFilterComponent implements OnInit, OnDestroy {
|
|
10
11
|
iconCache: IconCacheService;
|
|
12
|
+
catalogService: CatalogService;
|
|
13
|
+
searchService: CatalogSearchService;
|
|
11
14
|
private _settingsService;
|
|
12
15
|
private changeDetector;
|
|
13
16
|
private _catalogConnectorService;
|
|
14
17
|
private _adapterService;
|
|
15
|
-
searchService: CatalogSearchService;
|
|
16
18
|
readonly icons: typeof IconEnum;
|
|
17
19
|
userGroupCollection: UserGroup[];
|
|
18
20
|
updatePreset: boolean;
|
|
@@ -24,13 +26,15 @@ export declare class CatalogFilterComponent implements OnInit {
|
|
|
24
26
|
showSavePopup: boolean;
|
|
25
27
|
showClass(): boolean;
|
|
26
28
|
filterCategories: string[];
|
|
27
|
-
private _destroyed;
|
|
28
29
|
userGroupsChosen: UserGroup[];
|
|
30
|
+
activeStockView: StockView;
|
|
29
31
|
private _subs;
|
|
30
|
-
|
|
32
|
+
private _destroyed;
|
|
33
|
+
constructor(iconCache: IconCacheService, catalogService: CatalogService, searchService: CatalogSearchService, _settingsService: CatalogSettingsService, changeDetector: ChangeDetectorRef, _catalogConnectorService: CatalogConnectorService, _adapterService: CatalogConnectorAdapterService);
|
|
31
34
|
ngOnInit(): void;
|
|
32
35
|
ngOnDestroy(): void;
|
|
33
|
-
private getUserGroups;
|
|
34
36
|
handleCategoryClick(cat: string): void;
|
|
37
|
+
private getUserGroups;
|
|
38
|
+
private _showActiveCategory;
|
|
35
39
|
private detectChanges;
|
|
36
40
|
}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
1
2
|
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
2
3
|
import { IconEnum } from "../../../enum/icon.enum";
|
|
3
4
|
import { SliderComponent } from "@colijnit/corecomponents";
|
|
4
5
|
import { CatalogSearchService } from "../../../service/catalog-search.service";
|
|
5
6
|
import { FilterItemMode } from "@colijnit/corecomponents_v12";
|
|
6
|
-
|
|
7
|
+
import { CatalogService, StockView } from "../../../service/catalog.service";
|
|
8
|
+
export declare class CatalogFilterContentLogisticsComponent implements OnInit, OnDestroy {
|
|
7
9
|
catalogSearchService: CatalogSearchService;
|
|
8
10
|
iconCache: IconCacheService;
|
|
11
|
+
catalogService: CatalogService;
|
|
9
12
|
showClass(): boolean;
|
|
10
13
|
priceSlider: SliderComponent;
|
|
11
14
|
readonly modes: typeof FilterItemMode;
|
|
12
15
|
readonly icons: typeof IconEnum;
|
|
13
|
-
|
|
16
|
+
activeStockView: StockView;
|
|
17
|
+
readonly StockView: typeof StockView;
|
|
18
|
+
private _subs;
|
|
19
|
+
constructor(catalogSearchService: CatalogSearchService, iconCache: IconCacheService, catalogService: CatalogService);
|
|
14
20
|
ngOnInit(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
15
22
|
}
|
|
@@ -53,11 +53,13 @@ export declare class CatalogConnectorAdapterService {
|
|
|
53
53
|
getArticleCategories(publicationCode: number): Promise<ArticleCategory[]>;
|
|
54
54
|
getArticlesForStockSearchTile(params: ArticleStockSearchRequest, showLoader?: boolean): Promise<ArticlesStockSearchTileResult>;
|
|
55
55
|
getArticlesForStockSearchGrid(params: ArticleStockSearchRequest, showLoader?: boolean): Promise<ArticlesStockSearchGridResult>;
|
|
56
|
+
getArticleGridViewExcelFile(params: ArticleStockSearchRequest, showLoader?: boolean): Promise<any[]>;
|
|
56
57
|
getArticlesForStockTransferSearchTile(params: ArticleStockTransferSearchRequest, showLoader?: boolean): Promise<ArticleStockTransferSearchTileResult>;
|
|
57
58
|
getArticlesForStockTransferSearchGrid(params: ArticleStockTransferSearchRequest, showLoader?: boolean): Promise<ArticleStockTransferSearchGridResult>;
|
|
59
|
+
getTransferArticleGridViewExcelFile(params: ArticleStockTransferSearchRequest, showLoader?: boolean): Promise<any[]>;
|
|
58
60
|
getArticlesForStockComparisonSearchTile(params: ArticleStockComparisonSearchRequest, showLoader?: boolean): Promise<ArticleStockComparisonSearchTileResult>;
|
|
59
61
|
getArticlesForStockComparisonSearchGrid(params: ArticleStockComparisonSearchRequest, showLoader?: boolean): Promise<ArticleStockComparisonSearchGridResult>;
|
|
60
|
-
|
|
62
|
+
getComparisonArticleGridViewExcelFile(params: ArticleStockComparisonSearchRequest, showLoader?: boolean): Promise<any[]>;
|
|
61
63
|
getCatalogDefinitions(showLoader?: boolean): Promise<CatalogDefinition[]>;
|
|
62
64
|
getExternalSource(externalSourceId: number, showLoader?: boolean): Promise<ExternalSource>;
|
|
63
65
|
getCatalogFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
@@ -47,11 +47,13 @@ export declare class CatalogConnectorService {
|
|
|
47
47
|
getArticleCategories(publicationCode: number): Promise<ArticleCategory[]>;
|
|
48
48
|
getArticlesForStockSearchTile(params: ArticleStockSearchRequest, showLoader?: boolean): Promise<ArticlesStockSearchTileResult>;
|
|
49
49
|
getArticlesForStockSearchGrid(params: ArticleStockSearchRequest, showLoader?: boolean): Promise<ArticlesStockSearchGridResult>;
|
|
50
|
+
getArticleGridViewExcelFile(params: ArticleStockSearchRequest, showLoader?: boolean): Promise<any[]>;
|
|
50
51
|
getArticlesForStockTransferSearchTile(params: ArticleStockTransferSearchRequest, showLoader?: boolean): Promise<ArticleStockTransferSearchTileResult>;
|
|
51
52
|
getArticlesForStockTransferSearchGrid(params: ArticleStockTransferSearchRequest, showLoader?: boolean): Promise<ArticleStockTransferSearchGridResult>;
|
|
53
|
+
getTransferArticleGridViewExcelFile(params: ArticleStockTransferSearchRequest, showLoader?: boolean): Promise<any[]>;
|
|
52
54
|
getArticlesForStockComparisonSearchTile(params: ArticleStockComparisonSearchRequest, showLoader?: boolean): Promise<ArticleStockComparisonSearchTileResult>;
|
|
53
55
|
getArticlesForStockComparisonSearchGrid(params: ArticleStockComparisonSearchRequest, showLoader?: boolean): Promise<ArticleStockComparisonSearchGridResult>;
|
|
54
|
-
|
|
56
|
+
getComparisonArticleGridViewExcelFile(params: ArticleStockComparisonSearchRequest, showLoader?: boolean): Promise<any[]>;
|
|
55
57
|
getCatalogDefinitions(showLoader?: boolean): Promise<CatalogDefinition[]>;
|
|
56
58
|
getExternalSource(externalSourceId: number, showLoader?: boolean): Promise<ExternalSource>;
|
|
57
59
|
getCatalogFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
@@ -26,4 +26,5 @@ export declare class CatalogStockComparisonService implements OnDestroy {
|
|
|
26
26
|
ngOnDestroy(): void;
|
|
27
27
|
searchArticlesForTileView(resetPaging?: boolean, resetRequestParameters?: boolean): void;
|
|
28
28
|
searchArticlesForGridView(resetPaging?: boolean, resetRequestParameters?: boolean): void;
|
|
29
|
+
getArticleGridViewExcelFile(): void;
|
|
29
30
|
}
|
|
@@ -26,4 +26,5 @@ export declare class CatalogStockTransferService implements OnDestroy {
|
|
|
26
26
|
ngOnDestroy(): void;
|
|
27
27
|
searchArticlesForTileView(resetPaging?: boolean, resetRequestParameters?: boolean): void;
|
|
28
28
|
searchArticlesForGridView(resetPaging?: boolean, resetRequestParameters?: boolean): void;
|
|
29
|
+
getArticleGridViewExcelFile(): void;
|
|
29
30
|
}
|
|
@@ -7,7 +7,6 @@ import { CatalogSettingsService } from "./catalog-settings.service";
|
|
|
7
7
|
import { CatalogOptionsService } from "./catalog-options.service";
|
|
8
8
|
import { ArticleExtendedRequest } from "@colijnit/articleapi/build/model/article-extended-request";
|
|
9
9
|
import { ArticleStockSearchGridSelection } from "../model/article-stock-search-grid-selection";
|
|
10
|
-
import { ArticleStockTransferSearchGridSelection } from "../model/article-stock-transfer-search-grid-selection";
|
|
11
10
|
export declare class CatalogStockService implements OnDestroy {
|
|
12
11
|
private _filterService;
|
|
13
12
|
private _catalogConnectorService;
|
|
@@ -19,7 +18,6 @@ export declare class CatalogStockService implements OnDestroy {
|
|
|
19
18
|
resultCount: number;
|
|
20
19
|
tileArticles: ArticleStockSearchTileSelection[];
|
|
21
20
|
gridArticles: ArticleStockSearchGridSelection[];
|
|
22
|
-
transferTileArticles: ArticleStockTransferSearchGridSelection[];
|
|
23
21
|
get currentPage(): number;
|
|
24
22
|
set currentPage(value: number);
|
|
25
23
|
private _currentPage;
|
|
@@ -3,7 +3,7 @@ import { CatalogConnectorService } from './catalog-connector.service';
|
|
|
3
3
|
import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
|
|
4
4
|
import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
5
5
|
import { ExternalSourceViewmodel } from '../model/external-source-viewmodel';
|
|
6
|
-
import { BehaviorSubject, Subject } from 'rxjs';
|
|
6
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
7
7
|
import { CatalogOptionsService } from './catalog-options.service';
|
|
8
8
|
import { CatalogImageService } from './catalog-image.service';
|
|
9
9
|
import { CatalogFilterService } from './catalog-filter.service';
|
|
@@ -43,6 +43,8 @@ export declare class CatalogService {
|
|
|
43
43
|
searchTextChanged: Subject<string[]>;
|
|
44
44
|
showPageChanged: Subject<number>;
|
|
45
45
|
onResetFilters: Subject<void>;
|
|
46
|
+
activeStockViewSubject: BehaviorSubject<StockView>;
|
|
47
|
+
activeStockView: Observable<StockView>;
|
|
46
48
|
resultCount: number;
|
|
47
49
|
get currentPage(): number;
|
|
48
50
|
private _currentPage;
|
|
@@ -66,4 +68,11 @@ export declare class CatalogService {
|
|
|
66
68
|
getCategories(): Promise<ArticleCategory[]>;
|
|
67
69
|
prepareTurnoverGroupImage(group: TurnoverGroupImage): Promise<void>;
|
|
68
70
|
reset(): void;
|
|
71
|
+
setActiveStockView(value: StockView): void;
|
|
72
|
+
}
|
|
73
|
+
export declare enum StockView {
|
|
74
|
+
PriceCards = "PriceCards",
|
|
75
|
+
StockOverview = "StockOverview",
|
|
76
|
+
WarehouseTransfers = "WarehouseTransfers",
|
|
77
|
+
StockComparison = "StockComparison"
|
|
69
78
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/catalog",
|
|
3
|
-
"version": "255.1.
|
|
3
|
+
"version": "255.1.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "iOne Catalog module based on Angular 12",
|
|
6
6
|
"repository": "npm/npm",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@angular/platform-browser": ">=12.2.7",
|
|
18
18
|
"@angular/platform-browser-dynamic": ">=12.2.7",
|
|
19
19
|
"@angular/router": ">=12.2.7",
|
|
20
|
-
"@colijnit/articleapi": ">=255.1.
|
|
20
|
+
"@colijnit/articleapi": ">=255.1.3",
|
|
21
21
|
"@colijnit/transactionapi": ">=255.1.1",
|
|
22
22
|
"@colijnit/corecomponents": ">=1.12.8",
|
|
23
23
|
"@colijnit/corecomponents_v12": ">=255.1.1",
|