@colijnit/catalog 9.1.0 → 12.0.2
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/app/components/catalog/article-card/article-card.component.d.ts +5 -2
- package/app/components/catalog/catalog-filter/catalog-filter.component.d.ts +1 -1
- package/app/components/catalog/filter-items/filter-items.component.d.ts +2 -8
- package/app/components/top-content/top-content.component.d.ts +1 -1
- package/app/ione-catalog.component.d.ts +1 -1
- package/app/model/settings-options.d.ts +1 -0
- package/app/service/app-event.service.d.ts +1 -1
- package/app/service/dictionary.service.d.ts +3 -5
- package/app/service/i-one-connector-adapter.service.d.ts +1 -0
- package/app/service/i-one-controller.service.d.ts +1 -0
- package/app/service/icon-cache.service.d.ts +2 -2
- package/app/service/options.service.d.ts +1 -0
- package/app/service/product-catalog-controller.service.d.ts +3 -0
- package/bundles/colijnit-catalog.umd.js +864 -722
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/app/base/base-component.js +1 -1
- package/esm2015/app/components/catalog/article-card/article-card.component.js +77 -56
- package/esm2015/app/components/catalog/catalog/catalog.component.js +13 -15
- package/esm2015/app/components/catalog/catalog-filter/catalog-filter.component.js +25 -29
- package/esm2015/app/components/catalog/catalog-page/catalog-page.component.js +14 -16
- package/esm2015/app/components/catalog/filter-items/filter-items.component.js +17 -49
- package/esm2015/app/components/core/icon-handle/icon-handle.component.js +15 -22
- package/esm2015/app/components/core/label-field/label-field.component.js +13 -17
- package/esm2015/app/components/left-content/left-content.component.js +10 -12
- package/esm2015/app/components/main-content/main-content.component.js +10 -12
- package/esm2015/app/components/navigation/navigation.component.js +13 -15
- package/esm2015/app/components/top-content/top-content.component.js +22 -26
- package/esm2015/app/enum/catalog-product-filter.enum.js +1 -1
- package/esm2015/app/enum/icon.enum.js +1 -1
- package/esm2015/app/enum/language-code.enum.js +1 -1
- package/esm2015/app/enum/level-indicator-level.enum.js +1 -1
- package/esm2015/app/interface/filter-item.js +2 -1
- package/esm2015/app/interface/order-by.interface.js +2 -1
- package/esm2015/app/ione-catalog.component.js +27 -43
- package/esm2015/app/ione-catalog.module.js +90 -101
- package/esm2015/app/layout.directive.js +15 -23
- package/esm2015/app/model/icon.js +1 -1
- package/esm2015/app/model/settings-options.js +2 -1
- package/esm2015/app/model/settings.js +1 -1
- package/esm2015/app/pipe/greater-than-zero.pipe.js +9 -11
- package/esm2015/app/pipe/localize.pipe.js +8 -12
- package/esm2015/app/service/app-event.service.js +8 -10
- package/esm2015/app/service/dictionary.service.js +14 -24
- package/esm2015/app/service/i-one-connector-adapter.service.js +10 -8
- package/esm2015/app/service/i-one-controller.service.js +10 -8
- package/esm2015/app/service/icon-cache.service.js +9 -11
- package/esm2015/app/service/navigation.service.js +11 -11
- package/esm2015/app/service/options.service.js +13 -12
- package/esm2015/app/service/product-catalog-controller.service.js +49 -8
- package/esm2015/app/service/settings.service.js +7 -8
- package/esm2015/app/utils/json-utils.service.js +8 -9
- package/esm2015/app/utils/string-utils.js +1 -1
- package/esm2015/app/utils/utils.service.js +7 -8
- package/esm2015/colijnit-catalog.js +1 -1
- package/esm2015/public_api.js +1 -1
- package/fesm2015/colijnit-catalog.js +478 -482
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/package.json +22 -21
- package/bundles/colijnit-catalog.umd.min.js +0 -16
- package/bundles/colijnit-catalog.umd.min.js.map +0 -1
- package/css/styles.css +0 -85
- package/esm5/app/base/base-component.js +0 -7
- package/esm5/app/components/catalog/article-card/article-card.component.js +0 -145
- package/esm5/app/components/catalog/catalog/catalog.component.js +0 -36
- package/esm5/app/components/catalog/catalog-filter/catalog-filter.component.js +0 -217
- package/esm5/app/components/catalog/catalog-page/catalog-page.component.js +0 -73
- package/esm5/app/components/catalog/filter-items/filter-items.component.js +0 -86
- package/esm5/app/components/core/icon-handle/icon-handle.component.js +0 -44
- package/esm5/app/components/core/label-field/label-field.component.js +0 -23
- package/esm5/app/components/left-content/left-content.component.js +0 -18
- package/esm5/app/components/main-content/main-content.component.js +0 -18
- package/esm5/app/components/navigation/navigation.component.js +0 -63
- package/esm5/app/components/top-content/top-content.component.js +0 -51
- package/esm5/app/enum/catalog-product-filter.enum.js +0 -9
- package/esm5/app/enum/icon.enum.js +0 -22
- package/esm5/app/enum/language-code.enum.js +0 -8
- package/esm5/app/enum/level-indicator-level.enum.js +0 -7
- package/esm5/app/interface/filter-item.js +0 -1
- package/esm5/app/interface/order-by.interface.js +0 -1
- package/esm5/app/ione-catalog.component.js +0 -158
- package/esm5/app/ione-catalog.module.js +0 -104
- package/esm5/app/layout.directive.js +0 -89
- package/esm5/app/model/icon.js +0 -21
- package/esm5/app/model/settings-options.js +0 -16
- package/esm5/app/model/settings.js +0 -11
- package/esm5/app/pipe/greater-than-zero.pipe.js +0 -21
- package/esm5/app/pipe/localize.pipe.js +0 -33
- package/esm5/app/service/app-event.service.js +0 -21
- package/esm5/app/service/dictionary.service.js +0 -123
- package/esm5/app/service/i-one-connector-adapter.service.js +0 -76
- package/esm5/app/service/i-one-controller.service.js +0 -150
- package/esm5/app/service/icon-cache.service.js +0 -42
- package/esm5/app/service/navigation.service.js +0 -72
- package/esm5/app/service/options.service.js +0 -131
- package/esm5/app/service/product-catalog-controller.service.js +0 -697
- package/esm5/app/service/settings.service.js +0 -94
- package/esm5/app/utils/json-utils.service.js +0 -39
- package/esm5/app/utils/string-utils.js +0 -45
- package/esm5/app/utils/utils.service.js +0 -135
- package/esm5/colijnit-catalog.js +0 -32
- package/esm5/public_api.js +0 -2
- package/fesm5/colijnit-catalog.js +0 -2721
- package/fesm5/colijnit-catalog.js.map +0 -1
- package/typings.d.ts +0 -5
|
@@ -15,8 +15,8 @@ export declare class ArticleCardComponent {
|
|
|
15
15
|
private _changeDetector;
|
|
16
16
|
private _appEventService;
|
|
17
17
|
readonly Icons: typeof IconEnum;
|
|
18
|
-
get article(): ArticleExtendedDto;
|
|
19
18
|
set article(value: ArticleExtendedDto);
|
|
19
|
+
get article(): ArticleExtendedDto;
|
|
20
20
|
imageData: string;
|
|
21
21
|
price: number | string;
|
|
22
22
|
level: LevelIndicatorLevel;
|
|
@@ -32,11 +32,14 @@ export declare class ArticleCardComponent {
|
|
|
32
32
|
configurable: boolean;
|
|
33
33
|
threeD: boolean;
|
|
34
34
|
description: string;
|
|
35
|
+
valutaSymbol: string;
|
|
35
36
|
onHostClick(event: MouseEvent): void;
|
|
36
37
|
constructor(iconCache: IconCacheService, catalog: ProductCatalogControllerService, options: OptionsService, _iOne: IOneControllerService, _changeDetector: ChangeDetectorRef, _appEventService: AppEventService);
|
|
37
38
|
handleLookAtArticleButtonClick(event: MouseEvent): void;
|
|
38
|
-
handleAddArticleButtonClick(event: MouseEvent): void
|
|
39
|
+
handleAddArticleButtonClick(event: MouseEvent): Promise<void>;
|
|
39
40
|
handleArButtonClick(event: MouseEvent): void;
|
|
40
41
|
removeHtmlTags(desc: string): string;
|
|
42
|
+
private _getJSONFromArticleObject;
|
|
41
43
|
private _detectChanges;
|
|
44
|
+
private _getThumbNailImagesAndPrice;
|
|
42
45
|
}
|
|
@@ -4,7 +4,7 @@ import { ProductCatalogControllerService } from '../../../service/product-catalo
|
|
|
4
4
|
import { IconEnum } from '../../../enum/icon.enum';
|
|
5
5
|
import { CatalogProductFilter } from '../../../enum/catalog-product-filter.enum';
|
|
6
6
|
import { SliderComponent } from '@colijnit/corecomponents';
|
|
7
|
-
import { NumericalRange } from '@colijnit/corecomponents/
|
|
7
|
+
import { NumericalRange } from '@colijnit/corecomponents/lib/core/model/numerical-range';
|
|
8
8
|
import { IconCacheService } from '../../../service/icon-cache.service';
|
|
9
9
|
import { OptionsService } from '../../../service/options.service';
|
|
10
10
|
export declare class CatalogFilterComponent implements OnInit, OnDestroy {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { IconCacheService } from '../../../service/icon-cache.service';
|
|
3
3
|
import { IconEnum } from '../../../enum/icon.enum';
|
|
4
4
|
import { SafeHtml } from '@angular/platform-browser';
|
|
5
5
|
import { FilterItem } from '../../../interface/filter-item';
|
|
6
6
|
import { ProductCatalogControllerService } from '../../../service/product-catalog-controller.service';
|
|
7
|
-
export declare class FilterItemsComponent
|
|
7
|
+
export declare class FilterItemsComponent {
|
|
8
8
|
private _iconCache;
|
|
9
9
|
private _productCatalogControllerService;
|
|
10
10
|
icons: typeof IconEnum;
|
|
@@ -12,15 +12,9 @@ export declare class FilterItemsComponent implements OnInit {
|
|
|
12
12
|
description: string;
|
|
13
13
|
customColors: boolean;
|
|
14
14
|
filterCollectionChange: EventEmitter<void>;
|
|
15
|
-
collapsed: boolean;
|
|
16
|
-
filterScrollItem: ElementRef;
|
|
17
|
-
get collapseText(): string;
|
|
18
15
|
collapseIconData: SafeHtml;
|
|
19
16
|
private _subs;
|
|
20
17
|
constructor(_iconCache: IconCacheService, _productCatalogControllerService: ProductCatalogControllerService);
|
|
21
|
-
ngOnInit(): void;
|
|
22
18
|
handleInputClick(item: FilterItem, checked: boolean): void;
|
|
23
|
-
handleCollapseClick(event: MouseEvent): void;
|
|
24
|
-
getHasMoreFilterItems(amount: number): boolean;
|
|
25
19
|
resetFilterItems(): void;
|
|
26
20
|
}
|
|
@@ -12,5 +12,5 @@ export declare class TopContentComponent implements OnInit {
|
|
|
12
12
|
constructor(catalog: ProductCatalogControllerService, iconCache: IconCacheService);
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
onHandleClick(event: MouseEvent): void;
|
|
15
|
-
|
|
15
|
+
onSubmitSearch(event: any): void;
|
|
16
16
|
}
|
|
@@ -26,7 +26,7 @@ export declare class IoneCatalogComponent implements OnInit, OnDestroy {
|
|
|
26
26
|
onAddToCart: EventEmitter<string>;
|
|
27
27
|
onAddToQuote: EventEmitter<string>;
|
|
28
28
|
onLookAtArticleButtonClick: EventEmitter<ArticleExtendedDto>;
|
|
29
|
-
onAddArticleButtonClick: EventEmitter<
|
|
29
|
+
onAddArticleButtonClick: EventEmitter<string>;
|
|
30
30
|
onArticleClick: EventEmitter<ArticleExtendedDto>;
|
|
31
31
|
onArButtonClick: EventEmitter<ArticleExtendedDto>;
|
|
32
32
|
_subs: Subscription[];
|
|
@@ -2,7 +2,7 @@ import { Subject } from 'rxjs';
|
|
|
2
2
|
import { ArticleExtendedDto } from '@colijnit/ioneconnector/build/model/article-extended-dto';
|
|
3
3
|
export declare class AppEventService {
|
|
4
4
|
lookAtArticleButtonClick: Subject<ArticleExtendedDto>;
|
|
5
|
-
addArticleButtonClick: Subject<
|
|
5
|
+
addArticleButtonClick: Subject<string>;
|
|
6
6
|
arButtonClick: Subject<ArticleExtendedDto>;
|
|
7
7
|
articleClick: Subject<ArticleExtendedDto>;
|
|
8
8
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
1
|
+
import { JsonUtilsService } from "../utils/json-utils.service";
|
|
2
|
+
import { Subject } from "rxjs";
|
|
4
3
|
export declare class DictionaryService {
|
|
5
|
-
private _http;
|
|
6
4
|
private _jsonUtils;
|
|
7
5
|
private readonly dictionaryUrl;
|
|
8
6
|
get language(): string;
|
|
@@ -14,7 +12,7 @@ export declare class DictionaryService {
|
|
|
14
12
|
private _dictionaries;
|
|
15
13
|
private _language;
|
|
16
14
|
private readonly _placeholder;
|
|
17
|
-
constructor(
|
|
15
|
+
constructor(_jsonUtils: JsonUtilsService);
|
|
18
16
|
getLanguageCode(lc: string): string;
|
|
19
17
|
setDictionary(language: string, additionalTranslationFile?: string): Promise<void>;
|
|
20
18
|
/**
|
|
@@ -40,5 +40,6 @@ export declare class IOneConnectorAdapterService {
|
|
|
40
40
|
getConcepts(): Promise<Concept[]>;
|
|
41
41
|
getSelectorArticleThumbnail(documentKey: string): Promise<string>;
|
|
42
42
|
getArticlePrice(goodId: number): Promise<ArticlePrice>;
|
|
43
|
+
getJsonArticleFlatTree(goodId: number): Promise<void>;
|
|
43
44
|
getArticle(skuOrId: string): Promise<Article>;
|
|
44
45
|
}
|
|
@@ -47,6 +47,7 @@ export declare class IOneControllerService implements OnDestroy {
|
|
|
47
47
|
getConcepts(): Promise<Concept[]>;
|
|
48
48
|
getSelectorArticleThumbnail(documentKey: string): Promise<string>;
|
|
49
49
|
getArticlePrice(goodId: number): Promise<ArticlePrice>;
|
|
50
|
+
getJsonArticleFlatTree(goodId: number): Promise<any>;
|
|
50
51
|
private _getConnectorSettings;
|
|
51
52
|
onShowLoaderChange(showLoader: boolean): void;
|
|
52
53
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IconEnum } from "../enum/icon.enum";
|
|
2
|
+
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
3
3
|
export declare class IconCacheService {
|
|
4
4
|
private _sanitizer;
|
|
5
5
|
/**
|
|
@@ -21,6 +21,7 @@ export declare class OptionsService implements OnDestroy {
|
|
|
21
21
|
get showARButton(): boolean;
|
|
22
22
|
get addArticleButtonText(): string;
|
|
23
23
|
get lookAtArticleButtonText(): string;
|
|
24
|
+
get sortTurnoverGroupsByAlphabet(): boolean;
|
|
24
25
|
set parameters(value: GetArticlesForCatalogRequest);
|
|
25
26
|
get parameters(): GetArticlesForCatalogRequest;
|
|
26
27
|
}
|
|
@@ -14,6 +14,7 @@ import { Atmosphere } from '@colijnit/ioneconnector/build/model/atmosphere';
|
|
|
14
14
|
import { Concept } from '@colijnit/ioneconnector/build/model/concept';
|
|
15
15
|
import { OrderByInterface } from '../interface/order-by.interface';
|
|
16
16
|
import { ArticleExtendedDto } from '@colijnit/ioneconnector/build/model/article-extended-dto';
|
|
17
|
+
import { ArticleCategory } from '@colijnit/ioneconnector/build/model/article-category';
|
|
17
18
|
export declare class ColorFilter extends Color implements FilterItem {
|
|
18
19
|
active: boolean;
|
|
19
20
|
count: number;
|
|
@@ -115,10 +116,12 @@ export declare class ProductCatalogControllerService implements OnDestroy {
|
|
|
115
116
|
getBrandDescription(id: number): string;
|
|
116
117
|
ensureDataListsLoaded(): Promise<void>;
|
|
117
118
|
doSearchArticles(): Promise<void>;
|
|
119
|
+
removeAndReplaceAllFilters(): void;
|
|
118
120
|
filterOnPrice(): void;
|
|
119
121
|
filterArticles(): Promise<void>;
|
|
120
122
|
hasFilterItems(filter: FilterItem[]): boolean;
|
|
121
123
|
hasCheckedFilterItems(filter: FilterItem[]): boolean;
|
|
124
|
+
sortTurnoverGroups(categories: ArticleCategory[]): void;
|
|
122
125
|
private _sortArticleList;
|
|
123
126
|
private _sortArticleListByArticleNr;
|
|
124
127
|
private _sortArticleListByArticleName;
|