@colijnit/catalog 12.1.40 → 12.1.42
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 +116 -67
- 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/base/article-base.component.js +19 -1
- package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +6 -12
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +19 -17
- package/esm2015/lib/model/settings-options.js +1 -2
- package/esm2015/lib/model/settings.js +2 -1
- package/esm2015/lib/service/catalog-connector-adapter.service.js +6 -4
- package/esm2015/lib/service/catalog-connector.service.js +11 -1
- package/esm2015/lib/service/catalog-options.service.js +1 -4
- package/esm2015/lib/service/catalog-search.service.js +21 -18
- package/esm2015/lib/service/catalog-settings.service.js +8 -3
- package/esm2015/lib/service/catalog.service.js +1 -7
- package/fesm2015/colijnit-catalog.js +83 -60
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-filter/catalog-filter.component.d.ts +3 -4
- package/lib/component/catalog-search/catalog-search.component.d.ts +2 -1
- package/lib/model/settings-options.d.ts +0 -1
- package/lib/model/settings.d.ts +1 -0
- package/lib/service/catalog-connector-adapter.service.d.ts +3 -2
- package/lib/service/catalog-connector.service.d.ts +3 -1
- package/lib/service/catalog-options.service.d.ts +0 -1
- package/lib/service/catalog-search.service.d.ts +5 -4
- package/lib/service/catalog.service.d.ts +0 -2
- package/package.json +6 -6
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { IconEnum } from '../../enum/icon.enum';
|
|
3
3
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
4
|
-
import { CatalogOptionsService } from '../../service/catalog-options.service';
|
|
5
4
|
import { CatalogConnectorService } from '../../service/catalog-connector.service';
|
|
6
5
|
import { UserGroup } from '@colijnit/mainapi/build/model/user-group.bo';
|
|
7
6
|
import { CatalogSearchService } from '../../service/catalog-search.service';
|
|
8
7
|
import { CatalogConnectorAdapterService } from '../../service/catalog-connector-adapter.service';
|
|
8
|
+
import { CatalogSettingsService } from '../../service/catalog-settings.service';
|
|
9
9
|
export declare class CatalogFilterComponent implements OnInit {
|
|
10
10
|
iconCache: IconCacheService;
|
|
11
|
-
|
|
11
|
+
private _settingsService;
|
|
12
12
|
private changeDetector;
|
|
13
13
|
private _catalogConnectorService;
|
|
14
14
|
private _adapterService;
|
|
@@ -24,11 +24,10 @@ export declare class CatalogFilterComponent implements OnInit {
|
|
|
24
24
|
showSavePopup: boolean;
|
|
25
25
|
showClass(): boolean;
|
|
26
26
|
filterCategories: string[];
|
|
27
|
-
collapsed: boolean;
|
|
28
27
|
private _destroyed;
|
|
29
28
|
userGroupsChosen: UserGroup[];
|
|
30
29
|
private _subs;
|
|
31
|
-
constructor(iconCache: IconCacheService,
|
|
30
|
+
constructor(iconCache: IconCacheService, _settingsService: CatalogSettingsService, changeDetector: ChangeDetectorRef, _catalogConnectorService: CatalogConnectorService, _adapterService: CatalogConnectorAdapterService, searchService: CatalogSearchService);
|
|
32
31
|
ngOnInit(): void;
|
|
33
32
|
ngOnDestroy(): void;
|
|
34
33
|
private getUserGroups;
|
|
@@ -33,8 +33,9 @@ export declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
33
33
|
mode: string;
|
|
34
34
|
showCategories: boolean;
|
|
35
35
|
private _subs;
|
|
36
|
+
private _settings;
|
|
36
37
|
constructor(_settingsService: CatalogSettingsService, _catalogService: CatalogService, _catalogSearchService: CatalogSearchService, _catalogEventService: CatalogEventService, iconCacheService: IconCacheService);
|
|
37
|
-
ngOnInit(): void
|
|
38
|
+
ngOnInit(): Promise<void>;
|
|
38
39
|
ngOnDestroy(): void;
|
|
39
40
|
handleCategoryClick(category: string): void;
|
|
40
41
|
handleTurnoverGroupClick(turnoverGroup: string): void;
|
package/lib/model/settings.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Options } from '@colijnit/ioneconnector/build/model/options';
|
|
|
3
3
|
export declare class CatalogSettings extends Options {
|
|
4
4
|
additionalTranslationFile: string;
|
|
5
5
|
type: string;
|
|
6
|
+
createWebOrder: boolean;
|
|
6
7
|
catalogParameters: any;
|
|
7
8
|
options: SettingsOptions;
|
|
8
9
|
useLoginEncryption: boolean;
|
|
@@ -2,6 +2,7 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
2
2
|
import { Articles } from '@colijnit/articleapi/build/articles';
|
|
3
3
|
import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
|
|
4
4
|
import { ArticlesSearchResult } from '../model/articles-search-result';
|
|
5
|
+
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
5
6
|
import { ArticleCategory } from '@colijnit/articleapi/build/model/article-category';
|
|
6
7
|
import { CatalogDefinition } from '@colijnit/articleapi/build/model/catalog-definition.bo';
|
|
7
8
|
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
@@ -67,8 +68,8 @@ export declare class CatalogConnectorAdapterService {
|
|
|
67
68
|
getSelectorArticleThumbnail(documentId: number): Promise<string>;
|
|
68
69
|
getArticlePrice(goodId: number, type: string): Promise<ArticlePrice>;
|
|
69
70
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
|
|
70
|
-
addWebSessionTransactionLine(sku: string, quantity: number):
|
|
71
|
-
getWebTransaction():
|
|
71
|
+
addWebSessionTransactionLine(sku: string, quantity: number): Promise<DataServiceResponseData>;
|
|
72
|
+
getWebTransaction(): Promise<DataServiceResponseData>;
|
|
72
73
|
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: number, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
73
74
|
onShowLoaderChange(showLoader: boolean): void;
|
|
74
75
|
}
|
|
@@ -21,6 +21,7 @@ import { CoRVDomainValue } from '@colijnit/mainapi/build/model/co-rv-domain-valu
|
|
|
21
21
|
import { Category } from '@colijnit/mainapi/build/model/category.bo';
|
|
22
22
|
import { Preset } from "@colijnit/mainapi/build/model/preset.bo";
|
|
23
23
|
import { UserGroup } from "@colijnit/mainapi/build/model/user-group.bo";
|
|
24
|
+
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
24
25
|
export declare class CatalogConnectorService {
|
|
25
26
|
private _adapterService;
|
|
26
27
|
private _selectSingleCacheService;
|
|
@@ -61,5 +62,6 @@ export declare class CatalogConnectorService {
|
|
|
61
62
|
updatePreset(presetName: string): Promise<boolean>;
|
|
62
63
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
|
|
63
64
|
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: number, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
64
|
-
|
|
65
|
+
addWebSessionTransactionLine(sku: string, quantity: number): Promise<DataServiceResponseData>;
|
|
66
|
+
getWebTransaction(): void;
|
|
65
67
|
}
|
|
@@ -13,7 +13,6 @@ export declare class CatalogOptionsService implements OnDestroy {
|
|
|
13
13
|
constructor(_dictionary: DictionaryService, _settingsService: CatalogSettingsService);
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
15
|
get showBrandFilter(): boolean;
|
|
16
|
-
get collapseFilterByDefault(): boolean;
|
|
17
16
|
get showPriceFilter(): boolean;
|
|
18
17
|
get showAddArticleButton(): boolean;
|
|
19
18
|
get showStockIndication(): boolean;
|
|
@@ -5,9 +5,11 @@ import { CatalogFilterService } from './catalog-filter.service';
|
|
|
5
5
|
import { CatalogConnectorService } from './catalog-connector.service';
|
|
6
6
|
import { CatalogSettingsService } from './catalog-settings.service';
|
|
7
7
|
import { CatalogOptionsService } from './catalog-options.service';
|
|
8
|
+
import { CatalogConnectorAdapterService } from './catalog-connector-adapter.service';
|
|
8
9
|
export declare class CatalogSearchService implements OnDestroy {
|
|
9
10
|
private _filterService;
|
|
10
11
|
private _catalogConnectorService;
|
|
12
|
+
private _catalogConnectorAdapterService;
|
|
11
13
|
private _settingsService;
|
|
12
14
|
private _optionService;
|
|
13
15
|
searchRequest: ArticleExtendedRequest;
|
|
@@ -24,15 +26,14 @@ export declare class CatalogSearchService implements OnDestroy {
|
|
|
24
26
|
private _currentPage;
|
|
25
27
|
private _category;
|
|
26
28
|
private _turnoverGroup;
|
|
27
|
-
private _filterText;
|
|
28
29
|
private _subs;
|
|
29
|
-
constructor(_filterService: CatalogFilterService, _catalogConnectorService: CatalogConnectorService, _settingsService: CatalogSettingsService, _optionService: CatalogOptionsService);
|
|
30
|
+
constructor(_filterService: CatalogFilterService, _catalogConnectorService: CatalogConnectorService, _catalogConnectorAdapterService: CatalogConnectorAdapterService, _settingsService: CatalogSettingsService, _optionService: CatalogOptionsService);
|
|
30
31
|
ngOnDestroy(): void;
|
|
31
|
-
searchArticles(
|
|
32
|
+
searchArticles(resetPaging?: boolean): void;
|
|
32
33
|
resetFilters(search?: boolean): void;
|
|
33
|
-
private _resetRequest;
|
|
34
34
|
toggleFilter(): void;
|
|
35
35
|
handleHideFilter(): void;
|
|
36
36
|
handleResetFilter(): void;
|
|
37
|
+
private _resetRequest;
|
|
37
38
|
private _setRequestParametersAndProps;
|
|
38
39
|
}
|
|
@@ -65,7 +65,5 @@ export declare class CatalogService {
|
|
|
65
65
|
initConnector(settings: any, forceReload?: boolean): Promise<void>;
|
|
66
66
|
getCategories(): Promise<ArticleCategory[]>;
|
|
67
67
|
prepareTurnoverGroupImage(group: TurnoverGroupImage): Promise<void>;
|
|
68
|
-
addWebSessionTransactionLine(sku: string, quantity: number): void;
|
|
69
|
-
getWebTransaction(): void;
|
|
70
68
|
reset(): void;
|
|
71
69
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/catalog",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.42",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "iOne Catalog module based on Angular 12",
|
|
6
6
|
"repository": "npm/npm",
|
|
@@ -17,13 +17,13 @@
|
|
|
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": ">=1.0.
|
|
21
|
-
"@colijnit/transactionapi": ">=1.1.
|
|
20
|
+
"@colijnit/articleapi": ">=1.0.27",
|
|
21
|
+
"@colijnit/transactionapi": ">=1.1.99",
|
|
22
22
|
"@colijnit/corecomponents": ">=1.12.0",
|
|
23
23
|
"@colijnit/corecomponents_v12": ">=12.1.8",
|
|
24
|
-
"@colijnit/ioneconnector": ">=3.1.
|
|
25
|
-
"@colijnit/relationapi": ">=1.0.
|
|
26
|
-
"@colijnit/mainapi": ">=1.0.
|
|
24
|
+
"@colijnit/ioneconnector": ">=3.1.5",
|
|
25
|
+
"@colijnit/relationapi": ">=1.0.8",
|
|
26
|
+
"@colijnit/mainapi": ">=1.0.23",
|
|
27
27
|
"@types/three": ">=0.125.0",
|
|
28
28
|
"@tweenjs/tween.js": ">=17.2.0",
|
|
29
29
|
"core-js": ">=2.5.4",
|