@colijnit/catalog 12.1.41 → 12.1.43
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 +128 -64
- 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-external-source/catalog-external-source.component.js +14 -3
- package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +6 -12
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +45 -1
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.js +4 -2
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +2 -71
- 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 +8 -2
- package/esm2015/lib/service/catalog-settings.service.js +8 -3
- package/esm2015/lib/service/catalog.service.js +1 -7
- package/fesm2015/colijnit-catalog.js +129 -117
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-external-source/catalog-external-source.component.d.ts +8 -3
- package/lib/component/catalog-filter/catalog-filter.component.d.ts +3 -4
- package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +1 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +0 -1
- 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 +5 -3
- package/lib/service/catalog-options.service.d.ts +0 -1
- package/lib/service/catalog-search.service.d.ts +3 -1
- package/lib/service/catalog.service.d.ts +0 -2
- package/package.json +6 -6
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
3
|
import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
|
|
4
4
|
import { ExternalSettingsInterface } from '../../enum/external-settings.interface';
|
|
5
5
|
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
6
6
|
import { CatalogConnectorService } from '../../service/catalog-connector.service';
|
|
7
|
-
|
|
7
|
+
import { CatalogEventService } from "../../service/catalog-event.service";
|
|
8
|
+
export declare class CatalogExternalSourceComponent implements OnInit {
|
|
8
9
|
private _sanitizer;
|
|
9
10
|
private _catalogConnectorService;
|
|
11
|
+
private _appEventService;
|
|
10
12
|
set externalSource(value: ExternalSource);
|
|
11
13
|
get externalSource(): ExternalSource;
|
|
12
14
|
title: string;
|
|
@@ -23,6 +25,7 @@ export declare class CatalogExternalSourceComponent {
|
|
|
23
25
|
article: ArticleListObjectExtended;
|
|
24
26
|
settings: ExternalSettingsInterface;
|
|
25
27
|
}>;
|
|
28
|
+
addArticleClick: EventEmitter<string>;
|
|
26
29
|
showClass: boolean;
|
|
27
30
|
showCatalog: boolean;
|
|
28
31
|
safeUrl: SafeResourceUrl;
|
|
@@ -30,7 +33,9 @@ export declare class CatalogExternalSourceComponent {
|
|
|
30
33
|
externalUrl: string;
|
|
31
34
|
externalSettings: any;
|
|
32
35
|
private _externalSource;
|
|
33
|
-
|
|
36
|
+
private _subs;
|
|
37
|
+
constructor(_sanitizer: DomSanitizer, _catalogConnectorService: CatalogConnectorService, _appEventService: CatalogEventService);
|
|
38
|
+
ngOnInit(): void;
|
|
34
39
|
handleArticleClick(article: ArticleListObjectExtended): void;
|
|
35
40
|
private _prepareExternalSource;
|
|
36
41
|
}
|
|
@@ -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;
|
|
@@ -30,6 +30,7 @@ export declare class CatalogFilterContentGeneralComponent implements OnInit, OnD
|
|
|
30
30
|
constructor(catalogSearchService: CatalogSearchService, filterService: CatalogFilterService, iconCache: IconCacheService, _catalogConnectorService: CatalogConnectorService, _adapterService: CatalogConnectorAdapterService);
|
|
31
31
|
ngOnInit(): void;
|
|
32
32
|
ngOnDestroy(): void;
|
|
33
|
+
handleAllChanged(value: boolean): void;
|
|
33
34
|
private _setCollections;
|
|
34
35
|
private _setStoreGroups;
|
|
35
36
|
private _setInOutCollection;
|
|
@@ -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
|
}
|
|
@@ -19,8 +19,9 @@ import { PriceList } from '@colijnit/transactionapi/build/model/price-list';
|
|
|
19
19
|
import { RelationListObject } from '@colijnit/relationapi/build/model/relation-list-object.bo';
|
|
20
20
|
import { CoRVDomainValue } from '@colijnit/mainapi/build/model/co-rv-domain-value.bo';
|
|
21
21
|
import { Category } from '@colijnit/mainapi/build/model/category.bo';
|
|
22
|
-
import { Preset } from
|
|
23
|
-
import { UserGroup } from
|
|
22
|
+
import { Preset } from '@colijnit/mainapi/build/model/preset.bo';
|
|
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;
|
|
@@ -25,7 +27,7 @@ export declare class CatalogSearchService implements OnDestroy {
|
|
|
25
27
|
private _category;
|
|
26
28
|
private _turnoverGroup;
|
|
27
29
|
private _subs;
|
|
28
|
-
constructor(_filterService: CatalogFilterService, _catalogConnectorService: CatalogConnectorService, _settingsService: CatalogSettingsService, _optionService: CatalogOptionsService);
|
|
30
|
+
constructor(_filterService: CatalogFilterService, _catalogConnectorService: CatalogConnectorService, _catalogConnectorAdapterService: CatalogConnectorAdapterService, _settingsService: CatalogSettingsService, _optionService: CatalogOptionsService);
|
|
29
31
|
ngOnDestroy(): void;
|
|
30
32
|
searchArticles(resetPaging?: boolean): void;
|
|
31
33
|
resetFilters(search?: boolean): void;
|
|
@@ -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.43",
|
|
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",
|