@colijnit/catalog 12.1.48 → 12.1.50
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 +81 -13
- 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 +21 -4
- package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.component.js +2 -5
- package/esm2015/lib/model/settings.js +3 -1
- package/esm2015/lib/service/catalog-connector-adapter.service.js +13 -2
- package/esm2015/lib/service/catalog-connector.service.js +6 -1
- package/esm2015/lib/service/catalog-search.service.js +24 -4
- package/fesm2015/colijnit-catalog.js +64 -14
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/base/article-base.component.d.ts +3 -1
- package/lib/model/settings.d.ts +2 -1
- package/lib/service/catalog-connector-adapter.service.d.ts +3 -2
- package/lib/service/catalog-connector.service.d.ts +3 -2
- package/lib/service/catalog-search.service.d.ts +5 -0
- package/package.json +1 -1
|
@@ -46,6 +46,8 @@ export declare abstract class ArticleBaseComponent {
|
|
|
46
46
|
name: string;
|
|
47
47
|
valutaSymbol: string;
|
|
48
48
|
turnover: string;
|
|
49
|
+
stockLabel: string;
|
|
50
|
+
inStock: boolean;
|
|
49
51
|
private _article;
|
|
50
52
|
constructor(iconCache: IconCacheService, catalogService: CatalogService, options: CatalogOptionsService, _iOne: CatalogConnectorService, _changeDetector: ChangeDetectorRef, _appEventService: CatalogEventService, _imageService: CatalogImageService, _settingsService: CatalogSettingsService);
|
|
51
53
|
handleLookAtArticleButtonClick(event: MouseEvent): void;
|
|
@@ -55,5 +57,5 @@ export declare abstract class ArticleBaseComponent {
|
|
|
55
57
|
removeHtmlTags(desc: string): string;
|
|
56
58
|
private _getJSONFromArticleObject;
|
|
57
59
|
private _detectChanges;
|
|
58
|
-
private
|
|
60
|
+
private _getThumbNailImagesPriceAndStock;
|
|
59
61
|
}
|
package/lib/model/settings.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { SettingsOptions } from './settings-options';
|
|
2
2
|
import { Options } from '@colijnit/ioneconnector/build/model/options';
|
|
3
|
+
import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
|
|
3
4
|
export declare class CatalogSettings extends Options {
|
|
4
5
|
additionalTranslationFile: string;
|
|
5
6
|
type: string;
|
|
6
7
|
createWebOrder: boolean;
|
|
7
|
-
catalogParameters:
|
|
8
|
+
catalogParameters: ArticleExtendedRequest;
|
|
8
9
|
options: SettingsOptions;
|
|
9
10
|
useLoginEncryption: boolean;
|
|
10
11
|
}
|
|
@@ -22,8 +22,8 @@ import { Preset } from '@colijnit/mainapi/build/model/preset.bo';
|
|
|
22
22
|
import { UserGroup } from '@colijnit/mainapi/build/model/user-group.bo';
|
|
23
23
|
import { PriceList } from '@colijnit/transactionapi/build/model/price-list';
|
|
24
24
|
import { Transaction } from '@colijnit/transactionapi/build/transaction';
|
|
25
|
-
import { ExternalCatalogStartupInfoRequest } from
|
|
26
|
-
import { ExternalCatalogStartupInfo } from
|
|
25
|
+
import { ExternalCatalogStartupInfoRequest } from '@colijnit/articleapi/build/model/external-catalog-startup-info-request';
|
|
26
|
+
import { ExternalCatalogStartupInfo } from '@colijnit/articleapi/build/model/external-catalog-startup-info';
|
|
27
27
|
export declare class CatalogConnectorAdapterService {
|
|
28
28
|
get shouldShowLoader(): boolean;
|
|
29
29
|
controllerInitialized: BehaviorSubject<boolean>;
|
|
@@ -69,6 +69,7 @@ export declare class CatalogConnectorAdapterService {
|
|
|
69
69
|
updatePreset(presetName: string): Promise<boolean>;
|
|
70
70
|
getWebViewStartupInfo(request: ExternalCatalogStartupInfoRequest): Promise<ExternalCatalogStartupInfo>;
|
|
71
71
|
getSelectorArticleThumbnail(documentId: number): Promise<string>;
|
|
72
|
+
getArtStockStatus(goodId: number): Promise<number>;
|
|
72
73
|
getArticlePrice(goodId: number, type: string): Promise<ArticlePrice>;
|
|
73
74
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
|
|
74
75
|
addWebSessionTransactionLine(sku: string, quantity: number): Promise<DataServiceResponseData>;
|
|
@@ -22,8 +22,8 @@ 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
24
|
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
25
|
-
import { ExternalCatalogStartupInfoRequest } from
|
|
26
|
-
import { ExternalCatalogStartupInfo } from
|
|
25
|
+
import { ExternalCatalogStartupInfoRequest } from '@colijnit/articleapi/build/model/external-catalog-startup-info-request';
|
|
26
|
+
import { ExternalCatalogStartupInfo } from '@colijnit/articleapi/build/model/external-catalog-startup-info';
|
|
27
27
|
export declare class CatalogConnectorService {
|
|
28
28
|
private _adapterService;
|
|
29
29
|
private _selectSingleCacheService;
|
|
@@ -50,6 +50,7 @@ export declare class CatalogConnectorService {
|
|
|
50
50
|
getTagsFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
51
51
|
getTurnoverGroupFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
52
52
|
getBrandFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
53
|
+
getArtStockStatus(goodId: number): Promise<number>;
|
|
53
54
|
getArticlePrice(goodId: number, type: string): Promise<ArticlePrice>;
|
|
54
55
|
getStoreGroups(): Promise<StoreGroup[]>;
|
|
55
56
|
getCategories(): Promise<Category[]>;
|
|
@@ -4,6 +4,7 @@ import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extend
|
|
|
4
4
|
import { CatalogFilterService } from './catalog-filter.service';
|
|
5
5
|
import { CatalogConnectorService } from './catalog-connector.service';
|
|
6
6
|
import { CatalogSettingsService } from './catalog-settings.service';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
7
8
|
import { CatalogOptionsService } from './catalog-options.service';
|
|
8
9
|
import { CatalogConnectorAdapterService } from './catalog-connector-adapter.service';
|
|
9
10
|
export declare class CatalogSearchService implements OnDestroy {
|
|
@@ -15,6 +16,7 @@ export declare class CatalogSearchService implements OnDestroy {
|
|
|
15
16
|
searchRequest: ArticleExtendedRequest;
|
|
16
17
|
showFilterSidebar: boolean;
|
|
17
18
|
articles: ArticleExtended[];
|
|
19
|
+
set clearCacheObservable(value: Observable<any>);
|
|
18
20
|
set turnoverGroup(value: string);
|
|
19
21
|
get turnoverGroup(): string;
|
|
20
22
|
set category(value: string);
|
|
@@ -23,6 +25,8 @@ export declare class CatalogSearchService implements OnDestroy {
|
|
|
23
25
|
resultCount: number;
|
|
24
26
|
get currentPage(): number;
|
|
25
27
|
set currentPage(value: number);
|
|
28
|
+
private _clearCacheObservable;
|
|
29
|
+
private _clearCacheSubscription;
|
|
26
30
|
private _currentPage;
|
|
27
31
|
private _category;
|
|
28
32
|
private _turnoverGroup;
|
|
@@ -34,6 +38,7 @@ export declare class CatalogSearchService implements OnDestroy {
|
|
|
34
38
|
toggleFilter(): void;
|
|
35
39
|
handleHideFilter(): void;
|
|
36
40
|
handleResetFilter(): void;
|
|
41
|
+
private _clearCache;
|
|
37
42
|
private _resetRequest;
|
|
38
43
|
private _setRequestParametersAndProps;
|
|
39
44
|
}
|