@colijnit/catalog 12.1.35 → 12.1.36
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 +105 -39
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/lib/cache/service/business-object-cache-manager.service.js +1 -1
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/catalog-categories/catalog-categories.component.js +15 -4
- package/esm2015/lib/component/catalog-categories/catalog-categories.module.js +2 -2
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +5 -4
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +4 -2
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +18 -5
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +5 -1
- package/esm2015/lib/model/settings.js +2 -2
- package/esm2015/lib/service/catalog-connector-adapter.service.js +16 -4
- package/esm2015/lib/service/catalog.service.js +14 -1
- package/fesm2015/colijnit-catalog.js +70 -17
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-categories/catalog-categories.component.d.ts +7 -3
- package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +2 -1
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +2 -1
- package/lib/component/catalog-navigation/catalog-navigation.component.d.ts +5 -1
- package/lib/component/catalog-search/catalog-search.component.d.ts +1 -0
- package/lib/model/settings.d.ts +1 -1
- package/lib/service/catalog-connector-adapter.service.d.ts +5 -1
- package/lib/service/catalog.service.d.ts +4 -0
- package/package.json +7 -7
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { CatalogService } from '../../service/catalog.service';
|
|
3
3
|
import { ArticleCategory } from '@colijnit/articleapi/build/model/article-category';
|
|
4
4
|
import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-group-image.bo';
|
|
5
|
-
|
|
5
|
+
import { CatalogConnectorAdapterService } from '../../service/catalog-connector-adapter.service';
|
|
6
|
+
export declare class CatalogCategoriesComponent implements OnInit, OnDestroy {
|
|
6
7
|
private _catalogService;
|
|
8
|
+
private _adapterService;
|
|
7
9
|
showTurnoverGroups: boolean;
|
|
8
10
|
categoryClick: EventEmitter<string>;
|
|
9
11
|
turnoverGroupClick: EventEmitter<string>;
|
|
@@ -11,8 +13,10 @@ export declare class CatalogCategoriesComponent implements OnInit {
|
|
|
11
13
|
showClass(): boolean;
|
|
12
14
|
categories: ArticleCategory[];
|
|
13
15
|
turnoverGroups: TurnoverGroupImage[];
|
|
14
|
-
|
|
16
|
+
private _subs;
|
|
17
|
+
constructor(_catalogService: CatalogService, _adapterService: CatalogConnectorAdapterService);
|
|
15
18
|
ngOnInit(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
16
20
|
getCategories(): Promise<void>;
|
|
17
21
|
prepareTurnoverGroups(): void;
|
|
18
22
|
handleCategoryClick(event: MouseEvent, category: string): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { FilterItemViewmodel } from '@colijnit/corecomponents_v12';
|
|
2
|
+
import { FilterItemMode, FilterItemViewmodel } from '@colijnit/corecomponents_v12';
|
|
3
3
|
import { CatalogFilterService } from '../../../service/catalog-filter.service';
|
|
4
4
|
import { IconCacheService } from '../../../service/icon-cache.service';
|
|
5
5
|
import { IconEnum } from '../../../enum/icon.enum';
|
|
@@ -12,6 +12,7 @@ export declare class CatalogFilterContentGeneralComponent implements OnInit, OnD
|
|
|
12
12
|
iconCache: IconCacheService;
|
|
13
13
|
private _catalogConnectorService;
|
|
14
14
|
private _adapterService;
|
|
15
|
+
readonly modes: typeof FilterItemMode;
|
|
15
16
|
showClass(): boolean;
|
|
16
17
|
readonly icons: typeof IconEnum;
|
|
17
18
|
private _min;
|
|
@@ -3,7 +3,7 @@ import { IconCacheService } from "../../../service/icon-cache.service";
|
|
|
3
3
|
import { IconEnum } from "../../../enum/icon.enum";
|
|
4
4
|
import { SliderComponent } from "@colijnit/corecomponents";
|
|
5
5
|
import { CatalogSearchService } from "../../../service/catalog-search.service";
|
|
6
|
-
import { FilterItemViewmodel } from
|
|
6
|
+
import { FilterItemMode, FilterItemViewmodel } from '@colijnit/corecomponents_v12';
|
|
7
7
|
import { CatalogConnectorService } from "../../../service/catalog-connector.service";
|
|
8
8
|
import { CatalogFilterService } from "../../../service/catalog-filter.service";
|
|
9
9
|
import { CatalogConnectorAdapterService } from '../../../service/catalog-connector-adapter.service';
|
|
@@ -13,6 +13,7 @@ export declare class CatalogFilterContentPurchaseComponent implements OnInit, On
|
|
|
13
13
|
filterService: CatalogFilterService;
|
|
14
14
|
private _catalogConnectorService;
|
|
15
15
|
private _adapterService;
|
|
16
|
+
readonly modes: typeof FilterItemMode;
|
|
16
17
|
readonly icons: typeof IconEnum;
|
|
17
18
|
showClass(): boolean;
|
|
18
19
|
priceSlider: SliderComponent;
|
|
@@ -6,10 +6,12 @@ import { CatalogEventService } from '../../service/catalog-event.service';
|
|
|
6
6
|
import { ArticleCategory } from '@colijnit/articleapi/build/model/article-category';
|
|
7
7
|
import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-group-image.bo';
|
|
8
8
|
import { ExternalSourceViewmodel } from '../../model/external-source-viewmodel';
|
|
9
|
+
import { CatalogConnectorAdapterService } from '../../service/catalog-connector-adapter.service';
|
|
9
10
|
export declare class CatalogNavigationComponent {
|
|
10
11
|
iconCache: IconCacheService;
|
|
11
12
|
catalogService: CatalogService;
|
|
12
13
|
private _appEventService;
|
|
14
|
+
private _adapterService;
|
|
13
15
|
readonly icons: typeof IconEnum;
|
|
14
16
|
homeLabel: string;
|
|
15
17
|
collectionLabel: string;
|
|
@@ -33,8 +35,10 @@ export declare class CatalogNavigationComponent {
|
|
|
33
35
|
showExternalOverlay: boolean;
|
|
34
36
|
get internalList(): any[];
|
|
35
37
|
get externalList(): any[];
|
|
36
|
-
|
|
38
|
+
private _subs;
|
|
39
|
+
constructor(iconCache: IconCacheService, catalogService: CatalogService, _appEventService: CatalogEventService, _adapterService: CatalogConnectorAdapterService);
|
|
37
40
|
ngOnInit(): void;
|
|
41
|
+
ngOnDestroy(): void;
|
|
38
42
|
getCategories(): Promise<void>;
|
|
39
43
|
prepareTurnoverGroups(): void;
|
|
40
44
|
handleCategoryClick(event: MouseEvent, category: string): void;
|
|
@@ -39,4 +39,5 @@ export declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
39
39
|
handleCategoryClick(category: string): void;
|
|
40
40
|
handleTurnoverGroupClick(turnoverGroup: string): void;
|
|
41
41
|
handleResetButtonClick(event: MouseEvent): void;
|
|
42
|
+
handleGetTransactionClick(): void;
|
|
42
43
|
}
|
package/lib/model/settings.d.ts
CHANGED
|
@@ -15,9 +15,10 @@ import { StoreGroup } from '@colijnit/mainapi/build/model/store-group.bo';
|
|
|
15
15
|
import { CoDomainValue } from '@colijnit/mainapi/build/model/co-domain-value.bo';
|
|
16
16
|
import { DomainName } from '@colijnit/mainapi/build/enum/domain-name.enum';
|
|
17
17
|
import { RelationListObject } from '@colijnit/relationapi/build/model/relation-list-object.bo';
|
|
18
|
-
import { PriceList } from '@colijnit/transactionapi/build/model/price-list';
|
|
19
18
|
import { CoRVDomainValue } from '@colijnit/mainapi/build/model/co-rv-domain-value.bo';
|
|
20
19
|
import { Category } from '@colijnit/mainapi/build/model/category.bo';
|
|
20
|
+
import { PriceList } from '@colijnit/transactionapi/build/model/price-list';
|
|
21
|
+
import { Transaction } from '@colijnit/transactionapi/build/transaction';
|
|
21
22
|
export declare class CatalogConnectorAdapterService {
|
|
22
23
|
get shouldShowLoader(): boolean;
|
|
23
24
|
controllerInitialized: BehaviorSubject<boolean>;
|
|
@@ -25,6 +26,7 @@ export declare class CatalogConnectorAdapterService {
|
|
|
25
26
|
connector?: Articles;
|
|
26
27
|
relationConnector?: RelationApi;
|
|
27
28
|
mainConnector?: MainApi;
|
|
29
|
+
transactionConnector: Transaction;
|
|
28
30
|
private connectorOptions;
|
|
29
31
|
private _boFactory;
|
|
30
32
|
private _shouldShowLoader;
|
|
@@ -58,6 +60,8 @@ export declare class CatalogConnectorAdapterService {
|
|
|
58
60
|
getSelectorArticleThumbnail(documentId: number): Promise<string>;
|
|
59
61
|
getArticlePrice(goodId: number, type: string): Promise<ArticlePrice>;
|
|
60
62
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
|
|
63
|
+
addWebSessionTransactionLine(sku: string, quantity: number): void;
|
|
64
|
+
getWebTransaction(): void;
|
|
61
65
|
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: number, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
62
66
|
onShowLoaderChange(showLoader: boolean): void;
|
|
63
67
|
}
|
|
@@ -20,6 +20,7 @@ export declare class CatalogService {
|
|
|
20
20
|
private _filterService;
|
|
21
21
|
private _catalogSearchService;
|
|
22
22
|
externalSourceChanged: BehaviorSubject<boolean>;
|
|
23
|
+
controllerInitialized: BehaviorSubject<boolean>;
|
|
23
24
|
set externalSourceUrl(url: string);
|
|
24
25
|
set ioneSourceUrl(url: string);
|
|
25
26
|
get externalSourceUrl(): string;
|
|
@@ -61,7 +62,10 @@ export declare class CatalogService {
|
|
|
61
62
|
constructor(connector: CatalogConnectorService, connectorAdapter: CatalogConnectorAdapterService, settingsService: CatalogSettingsService, optionsService: CatalogOptionsService, _imageService: CatalogImageService, _filterService: CatalogFilterService, _catalogSearchService: CatalogSearchService);
|
|
62
63
|
ngOnDestroy(): void;
|
|
63
64
|
init(settings: any, forceReload?: boolean): Promise<void>;
|
|
65
|
+
initConnector(settings: any, forceReload?: boolean): Promise<void>;
|
|
64
66
|
getCategories(): Promise<ArticleCategory[]>;
|
|
65
67
|
prepareTurnoverGroupImage(group: TurnoverGroupImage): Promise<void>;
|
|
68
|
+
addWebSessionTransactionLine(sku: string, quantity: number): void;
|
|
69
|
+
getWebTransaction(): void;
|
|
66
70
|
reset(): void;
|
|
67
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/catalog",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.36",
|
|
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.26",
|
|
21
|
+
"@colijnit/transactionapi": ">=1.1.93",
|
|
22
22
|
"@colijnit/corecomponents": ">=1.12.0",
|
|
23
|
-
"@colijnit/corecomponents_v12": ">=12.1.
|
|
24
|
-
"@colijnit/ioneconnector": ">=
|
|
25
|
-
"@colijnit/relationapi": ">=1.0.
|
|
26
|
-
"@colijnit/mainapi": ">=1.0.
|
|
23
|
+
"@colijnit/corecomponents_v12": ">=12.1.8",
|
|
24
|
+
"@colijnit/ioneconnector": ">=3.1.0",
|
|
25
|
+
"@colijnit/relationapi": ">=1.0.7",
|
|
26
|
+
"@colijnit/mainapi": ">=1.0.21",
|
|
27
27
|
"@types/three": ">=0.125.0",
|
|
28
28
|
"@tweenjs/tween.js": ">=17.2.0",
|
|
29
29
|
"core-js": ">=2.5.4",
|