@colijnit/catalog 12.1.11 → 12.1.13
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 +3 -1
- package/app/components/catalog/catalog-filter/catalog-filter.component.d.ts +5 -2
- package/app/model/settings.d.ts +1 -0
- package/app/service/i-one-controller.service.d.ts +2 -0
- package/bundles/colijnit-catalog.umd.js +91 -26
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/app/components/catalog/article-card/article-card.component.js +16 -13
- package/esm2015/app/components/catalog/catalog-filter/catalog-filter.component.js +17 -6
- package/esm2015/app/ione-catalog.component.js +29 -29
- package/esm2015/app/ione-catalog.module.js +3 -3
- package/esm2015/app/model/settings.js +2 -1
- package/esm2015/app/service/filter.service.js +1 -1
- package/esm2015/app/service/i-one-controller.service.js +17 -5
- package/esm2015/app/service/settings.service.js +4 -1
- package/fesm2015/colijnit-catalog.js +80 -50
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/package.json +2 -2
|
@@ -8,6 +8,7 @@ import { OptionsService } from '../../../service/options.service';
|
|
|
8
8
|
import { AppEventService } from '../../../service/app-event.service';
|
|
9
9
|
import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
10
10
|
import { ImageService } from '../../../service/image.service';
|
|
11
|
+
import { SettingsService } from '../../../service/settings.service';
|
|
11
12
|
export declare class ArticleCardComponent {
|
|
12
13
|
iconCache: IconCacheService;
|
|
13
14
|
catalog: CatalogService;
|
|
@@ -16,6 +17,7 @@ export declare class ArticleCardComponent {
|
|
|
16
17
|
private _changeDetector;
|
|
17
18
|
private _appEventService;
|
|
18
19
|
private _imageService;
|
|
20
|
+
private _settingsService;
|
|
19
21
|
readonly icons: typeof IconEnum;
|
|
20
22
|
set article(value: ArticleExtended);
|
|
21
23
|
get article(): ArticleExtended;
|
|
@@ -38,7 +40,7 @@ export declare class ArticleCardComponent {
|
|
|
38
40
|
valutaSymbol: string;
|
|
39
41
|
stockDetails: boolean;
|
|
40
42
|
onHostClick(event: MouseEvent): void;
|
|
41
|
-
constructor(iconCache: IconCacheService, catalog: CatalogService, options: OptionsService, _iOne: IOneControllerService, _changeDetector: ChangeDetectorRef, _appEventService: AppEventService, _imageService: ImageService);
|
|
43
|
+
constructor(iconCache: IconCacheService, catalog: CatalogService, options: OptionsService, _iOne: IOneControllerService, _changeDetector: ChangeDetectorRef, _appEventService: AppEventService, _imageService: ImageService, _settingsService: SettingsService);
|
|
42
44
|
handleLookAtArticleButtonClick(event: MouseEvent): void;
|
|
43
45
|
handleAddArticleButtonClick(event: MouseEvent): Promise<void>;
|
|
44
46
|
handleStockDetailsButtonClick(event: MouseEvent): void;
|
|
@@ -24,12 +24,15 @@ export declare class CatalogFilterComponent implements OnInit, OnDestroy {
|
|
|
24
24
|
constructor(catalog: CatalogService, filterService: FilterService, iconCache: IconCacheService, optionsService: OptionsService, changeDetector: ChangeDetectorRef);
|
|
25
25
|
ngOnInit(): void;
|
|
26
26
|
ngOnDestroy(): void;
|
|
27
|
+
initializePriceFilterMinMax(): void;
|
|
27
28
|
resetFilters(event: MouseEvent): void;
|
|
28
29
|
onHandleClick(event: MouseEvent): void;
|
|
29
30
|
updatePriceInputs(range: NumericalRange): void;
|
|
30
31
|
updateSliderRange(): void;
|
|
31
|
-
updatePriceFrom(
|
|
32
|
-
updatePriceTo(
|
|
32
|
+
updatePriceFrom(): void;
|
|
33
|
+
updatePriceTo(): void;
|
|
34
|
+
setPriceMinToDefault(): void;
|
|
35
|
+
setPriceMaxToDefault(): void;
|
|
33
36
|
filterOnPrice(): void;
|
|
34
37
|
handleCollectionChange(collection: FilterItemViewmodel[]): void;
|
|
35
38
|
filterOnItem(item: FilterItemViewmodel): void;
|
package/app/model/settings.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { Articles } from '@colijnit/articleapi/build/articles';
|
|
|
9
9
|
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
10
10
|
import { ArticleSearchFilterSelections } from '@colijnit/articleapi/build/model/article-search-filter-selections';
|
|
11
11
|
import { ArticleSearchFilterMaxAndMinPrice } from '@colijnit/articleapi/build/model/article-search-filter-max-and-min-price';
|
|
12
|
+
import { ArticlePrice } from '@colijnit/articleapi/build/model/article-price';
|
|
12
13
|
export declare class IOneControllerService implements OnDestroy {
|
|
13
14
|
get shouldShowLoader(): boolean;
|
|
14
15
|
controllerInitialized: BehaviorSubject<boolean>;
|
|
@@ -37,6 +38,7 @@ export declare class IOneControllerService implements OnDestroy {
|
|
|
37
38
|
getTagsFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
38
39
|
getTurnoverGroupFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
39
40
|
getSelectorArticleThumbnail(documentId: number): Promise<string>;
|
|
41
|
+
getArticlePrice(goodId: number, type: string): Promise<ArticlePrice>;
|
|
40
42
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
|
|
41
43
|
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: number, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
42
44
|
onShowLoaderChange(showLoader: boolean): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@colijnit/articleapi/build/model/article-extended.bo'), require('@colijnit/articleapi/build/model/article-category'), require('@colijnit/articleapi/build/model/catalog-definition.bo'), require('@colijnit/articleapi/build/service/business-object-factory'), require('@colijnit/articleapi/build/articles'), require('@colijnit/articleapi/build/model/external-source.bo'), require('@colijnit/articleapi/build/model/article-search-filter-selections'), require('@colijnit/articleapi/build/model/article-search-filter-max-and-min-price'), require('@colijnit/articleapi/build/model/paging-parameters'), require('@colijnit/articleapi/build/utils/file-utils'), require('@angular/platform-browser'), require('@angular/animations'), require('@colijnit/corecomponents'), require('@angular/common'), require('@angular/forms'), require('@colijnit/corecomponents_v12')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/catalog', ['exports', '@angular/core', 'rxjs', '@colijnit/articleapi/build/model/article-extended.bo', '@colijnit/articleapi/build/model/article-category', '@colijnit/articleapi/build/model/catalog-definition.bo', '@colijnit/articleapi/build/service/business-object-factory', '@colijnit/articleapi/build/articles', '@colijnit/articleapi/build/model/external-source.bo', '@colijnit/articleapi/build/model/article-search-filter-selections', '@colijnit/articleapi/build/model/article-search-filter-max-and-min-price', '@colijnit/articleapi/build/model/paging-parameters', '@colijnit/articleapi/build/utils/file-utils', '@angular/platform-browser', '@angular/animations', '@colijnit/corecomponents', '@angular/common', '@angular/forms', '@colijnit/corecomponents_v12'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.catalog = {}), global.ng.core, global.rxjs, global.articleExtended_bo, global.articleCategory, global.catalogDefinition_bo, global.businessObjectFactory, global.articles, global.externalSource_bo, global.articleSearchFilterSelections, global.articleSearchFilterMaxAndMinPrice, global.pagingParameters, global.fileUtils, global.ng.platformBrowser, global.ng.animations, global.corecomponents, global.ng.common, global.ng.forms, global.corecomponents_v12));
|
|
5
|
-
})(this, (function (exports, i0, rxjs, articleExtended_bo, articleCategory, catalogDefinition_bo, businessObjectFactory, articles, externalSource_bo, articleSearchFilterSelections, articleSearchFilterMaxAndMinPrice, pagingParameters, fileUtils, platformBrowser, animations, corecomponents, common, forms, corecomponents_v12) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@colijnit/articleapi/build/model/article-extended.bo'), require('@colijnit/articleapi/build/model/article-category'), require('@colijnit/articleapi/build/model/catalog-definition.bo'), require('@colijnit/articleapi/build/service/business-object-factory'), require('@colijnit/articleapi/build/articles'), require('@colijnit/articleapi/build/model/external-source.bo'), require('@colijnit/articleapi/build/model/article-search-filter-selections'), require('@colijnit/articleapi/build/model/article-search-filter-max-and-min-price'), require('@colijnit/articleapi/build/model/article-price'), require('@colijnit/articleapi/build/model/get-article-price-request'), require('@colijnit/articleapi/build/model/paging-parameters'), require('@colijnit/articleapi/build/utils/file-utils'), require('@angular/platform-browser'), require('@angular/animations'), require('@colijnit/corecomponents'), require('@angular/common'), require('@angular/forms'), require('@angular/platform-browser/animations'), require('@colijnit/corecomponents_v12')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@colijnit/catalog', ['exports', '@angular/core', 'rxjs', '@colijnit/articleapi/build/model/article-extended.bo', '@colijnit/articleapi/build/model/article-category', '@colijnit/articleapi/build/model/catalog-definition.bo', '@colijnit/articleapi/build/service/business-object-factory', '@colijnit/articleapi/build/articles', '@colijnit/articleapi/build/model/external-source.bo', '@colijnit/articleapi/build/model/article-search-filter-selections', '@colijnit/articleapi/build/model/article-search-filter-max-and-min-price', '@colijnit/articleapi/build/model/article-price', '@colijnit/articleapi/build/model/get-article-price-request', '@colijnit/articleapi/build/model/paging-parameters', '@colijnit/articleapi/build/utils/file-utils', '@angular/platform-browser', '@angular/animations', '@colijnit/corecomponents', '@angular/common', '@angular/forms', '@angular/platform-browser/animations', '@colijnit/corecomponents_v12'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.catalog = {}), global.ng.core, global.rxjs, global.articleExtended_bo, global.articleCategory, global.catalogDefinition_bo, global.businessObjectFactory, global.articles, global.externalSource_bo, global.articleSearchFilterSelections, global.articleSearchFilterMaxAndMinPrice, global.articlePrice, global.getArticlePriceRequest, global.pagingParameters, global.fileUtils, global.ng.platformBrowser, global.ng.animations, global.corecomponents, global.ng.common, global.ng.forms, global.ng.platformBrowser.animations, global.corecomponents_v12));
|
|
5
|
+
})(this, (function (exports, i0, rxjs, articleExtended_bo, articleCategory, catalogDefinition_bo, businessObjectFactory, articles, externalSource_bo, articleSearchFilterSelections, articleSearchFilterMaxAndMinPrice, articlePrice, getArticlePriceRequest, pagingParameters, fileUtils, platformBrowser, animations, corecomponents, common, forms, animations$1, corecomponents_v12) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -757,10 +757,29 @@
|
|
|
757
757
|
});
|
|
758
758
|
});
|
|
759
759
|
};
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
760
|
+
IOneControllerService.prototype.getArticlePrice = function (goodId, type) {
|
|
761
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
762
|
+
var request, response;
|
|
763
|
+
return __generator(this, function (_a) {
|
|
764
|
+
switch (_a.label) {
|
|
765
|
+
case 0:
|
|
766
|
+
request = new getArticlePriceRequest.GetArticlePriceRequest();
|
|
767
|
+
request.goodId = goodId;
|
|
768
|
+
request.priceListType = type;
|
|
769
|
+
return [4 /*yield*/, this.connector.getArticlePrice(request)];
|
|
770
|
+
case 1:
|
|
771
|
+
response = _a.sent();
|
|
772
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
773
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(articlePrice.ArticlePrice, response.resultObject)];
|
|
774
|
+
}
|
|
775
|
+
else {
|
|
776
|
+
console.error(response.validationResult.getFullErrorString());
|
|
777
|
+
}
|
|
778
|
+
return [2 /*return*/];
|
|
779
|
+
}
|
|
780
|
+
});
|
|
781
|
+
});
|
|
782
|
+
};
|
|
764
783
|
IOneControllerService.prototype.getDocumentContent = function (docId, thumbnail) {
|
|
765
784
|
if (thumbnail === void 0) { thumbnail = true; }
|
|
766
785
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1145,6 +1164,7 @@
|
|
|
1145
1164
|
function Settings() {
|
|
1146
1165
|
this.session = undefined;
|
|
1147
1166
|
this.useEncryption = true;
|
|
1167
|
+
this.type = "V";
|
|
1148
1168
|
this.options = new SettingsOptions();
|
|
1149
1169
|
}
|
|
1150
1170
|
return Settings;
|
|
@@ -1209,6 +1229,9 @@
|
|
|
1209
1229
|
if (obj.hasOwnProperty('additionalTranslationFile')) {
|
|
1210
1230
|
this.settings.additionalTranslationFile = obj['additionalTranslationFile'];
|
|
1211
1231
|
}
|
|
1232
|
+
if (obj.hasOwnProperty('type')) {
|
|
1233
|
+
this.settings.type = obj['type'];
|
|
1234
|
+
}
|
|
1212
1235
|
if (obj.hasOwnProperty('options')) {
|
|
1213
1236
|
Object.assign(this.settings.options, obj['options']);
|
|
1214
1237
|
}
|
|
@@ -2110,6 +2133,7 @@
|
|
|
2110
2133
|
if (window.innerWidth <= 950) {
|
|
2111
2134
|
this.collapsed = true;
|
|
2112
2135
|
}
|
|
2136
|
+
this.initializePriceFilterMinMax();
|
|
2113
2137
|
this.detectChanges();
|
|
2114
2138
|
};
|
|
2115
2139
|
CatalogFilterComponent.prototype.ngOnDestroy = function () {
|
|
@@ -2118,6 +2142,10 @@
|
|
|
2118
2142
|
x.unsubscribe();
|
|
2119
2143
|
});
|
|
2120
2144
|
};
|
|
2145
|
+
CatalogFilterComponent.prototype.initializePriceFilterMinMax = function () {
|
|
2146
|
+
this._min = this.filterService.priceMinFilter;
|
|
2147
|
+
this._max = this.filterService.priceMaxFilter;
|
|
2148
|
+
};
|
|
2121
2149
|
CatalogFilterComponent.prototype.resetFilters = function (event) {
|
|
2122
2150
|
this.catalog.resetFilters();
|
|
2123
2151
|
};
|
|
@@ -2134,15 +2162,21 @@
|
|
|
2134
2162
|
this.priceSlider.setUpperBound(this.filterService.priceMaxFilter, false);
|
|
2135
2163
|
}
|
|
2136
2164
|
};
|
|
2137
|
-
CatalogFilterComponent.prototype.updatePriceFrom = function (
|
|
2138
|
-
this.filterService.priceMinFilter = value ? parseInt(value, 0) : this._min;
|
|
2165
|
+
CatalogFilterComponent.prototype.updatePriceFrom = function () {
|
|
2139
2166
|
this.updateSliderRange();
|
|
2140
2167
|
};
|
|
2141
|
-
CatalogFilterComponent.prototype.updatePriceTo = function (
|
|
2142
|
-
this.filterService.priceMaxFilter = value ? parseInt(value, 0) : this._max;
|
|
2168
|
+
CatalogFilterComponent.prototype.updatePriceTo = function () {
|
|
2143
2169
|
this.updateSliderRange();
|
|
2144
2170
|
};
|
|
2171
|
+
CatalogFilterComponent.prototype.setPriceMinToDefault = function () {
|
|
2172
|
+
this.filterService.priceMinFilter = this._min;
|
|
2173
|
+
};
|
|
2174
|
+
CatalogFilterComponent.prototype.setPriceMaxToDefault = function () {
|
|
2175
|
+
this.filterService.priceMaxFilter = this._max;
|
|
2176
|
+
};
|
|
2145
2177
|
CatalogFilterComponent.prototype.filterOnPrice = function () {
|
|
2178
|
+
this.filterService.priceMinFilter = !!this.filterService.priceMinFilter ? this.filterService.priceMinFilter : this._min;
|
|
2179
|
+
this.filterService.priceMaxFilter = !!this.filterService.priceMaxFilter ? this.filterService.priceMaxFilter : this._max;
|
|
2146
2180
|
// some user error protection
|
|
2147
2181
|
var trueLowerBound = Math.min(this.filterService.priceMinFilter, this.filterService.priceMaxFilter);
|
|
2148
2182
|
var trueUpperBound = Math.max(this.filterService.priceMinFilter, this.filterService.priceMaxFilter);
|
|
@@ -2183,7 +2217,7 @@
|
|
|
2183
2217
|
CatalogFilterComponent.decorators = [
|
|
2184
2218
|
{ type: i0.Component, args: [{
|
|
2185
2219
|
selector: 'app-catalog-filter',
|
|
2186
|
-
template: "<div class=\"narrow-scrollbar hide-on-collapse\">\r\n <div *ngIf=\"!collapsed\" class=\"filter-title title-bottom-border block-center-align\">\r\n\r\n <h3 [textContent]=\"'FILTER' | localize\"></h3>\r\n <div class=\"handle-wrapper\">\r\n <co-icon class=\"filter-reset-icon\" [iconData]=\"iconCache.getIcon(icons.SyncAlt)\"></co-icon>\r\n <div class=\"filter-reset\" [textContent]=\"'RESET_FILTER' | localize\" (click)=\"resetFilters($event)\"></div>\r\n <app-icon-handle [icon]=\"icons.ArrowScrollLeft\" (onHandleClick)=\"onHandleClick($event)\"></app-icon-handle>\r\n </div>\r\n </div>\r\n\r\n <div class=\"catalog-filter-price-input-wrapper\">\r\n <label class=\"temp\">Price</label>\r\n <div class=\"price-inputs\">\r\n <co-input-text\r\n class=\"price-from\"\r\n [type]=\"'number'\"\r\n [label]=\"'BASELINE_PRICE' | localize\"\r\n [(model)]=\"filterService.priceMinFilter\"\r\n (modelChange)=\"updatePriceFrom(
|
|
2220
|
+
template: "<div class=\"narrow-scrollbar hide-on-collapse\">\r\n <div *ngIf=\"!collapsed\" class=\"filter-title title-bottom-border block-center-align\">\r\n\r\n <h3 [textContent]=\"'FILTER' | localize\"></h3>\r\n <div class=\"handle-wrapper\">\r\n <co-icon class=\"filter-reset-icon\" [iconData]=\"iconCache.getIcon(icons.SyncAlt)\"></co-icon>\r\n <div class=\"filter-reset\" [textContent]=\"'RESET_FILTER' | localize\" (click)=\"resetFilters($event)\"></div>\r\n <app-icon-handle [icon]=\"icons.ArrowScrollLeft\" (onHandleClick)=\"onHandleClick($event)\"></app-icon-handle>\r\n </div>\r\n </div>\r\n\r\n <div class=\"catalog-filter-price-input-wrapper\">\r\n <label class=\"temp\">Price</label>\r\n <div class=\"price-inputs\">\r\n <co-input-text\r\n class=\"price-from\"\r\n [type]=\"'number'\"\r\n [label]=\"'BASELINE_PRICE' | localize\"\r\n [(model)]=\"filterService.priceMinFilter\"\r\n (clearIconClick)=\"setPriceMinToDefault()\"\r\n (modelChange)=\"updatePriceFrom()\"\r\n customWidth\r\n ></co-input-text>\r\n <co-input-text\r\n class=\"price-to\"\r\n [type]=\"'number'\"\r\n [label]=\"'PRICE_TO' | localize\"\r\n [(model)]=\"filterService.priceMaxFilter\"\r\n (clearIconClick)=\"setPriceMaxToDefault()\"\r\n (modelChange)=\"updatePriceTo()\"\r\n customWidth\r\n ></co-input-text>\r\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\r\n </div>\r\n </div>\r\n <div class=\"catalog-filter-wrapper\">\r\n <co-filter-item\r\n [expanded]=true\r\n [customContent]=\"true\"\r\n class=\"no-header\"\r\n >\r\n <label class=\"temp\">Modified date</label>\r\n <co-input-date\r\n [(model)]=\"catalog.articleSearchFilters.dateModified\"\r\n (modelChange)=\"catalog.searchArticles()\"\r\n ></co-input-date>\r\n </co-filter-item>\r\n <div class=\"catalog-filter-item\" *ngFor=\"let filter of filterService.filters\">\r\n <co-filter-item\r\n [placeholder]=\"filter.filterName\"\r\n [collection]=\"filter.filterItems\"\r\n [showLessLabel]=\"'Bekijk minder...'\"\r\n [showMoreLabel]=\"'Bekijk meer...'\"\r\n [searchPlaceholder]=\"'Zoeken...'\"\r\n [expanded]=true\r\n [initialLimit]=5\r\n (collectionChange)=\"handleCollectionChange($event)\"\r\n ></co-filter-item>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2187
2221
|
animations: [
|
|
2188
2222
|
animations.trigger('showFilterItem', [
|
|
2189
2223
|
animations.state('closed', animations.style({ height: '80px' })),
|
|
@@ -2477,7 +2511,7 @@
|
|
|
2477
2511
|
};
|
|
2478
2512
|
|
|
2479
2513
|
var ArticleCardComponent = /** @class */ (function () {
|
|
2480
|
-
function ArticleCardComponent(iconCache, catalog, options, _iOne, _changeDetector, _appEventService, _imageService) {
|
|
2514
|
+
function ArticleCardComponent(iconCache, catalog, options, _iOne, _changeDetector, _appEventService, _imageService, _settingsService) {
|
|
2481
2515
|
this.iconCache = iconCache;
|
|
2482
2516
|
this.catalog = catalog;
|
|
2483
2517
|
this.options = options;
|
|
@@ -2485,6 +2519,7 @@
|
|
|
2485
2519
|
this._changeDetector = _changeDetector;
|
|
2486
2520
|
this._appEventService = _appEventService;
|
|
2487
2521
|
this._imageService = _imageService;
|
|
2522
|
+
this._settingsService = _settingsService;
|
|
2488
2523
|
this.icons = IconEnum;
|
|
2489
2524
|
this.isSelected = false;
|
|
2490
2525
|
this.isSmallModus = false;
|
|
@@ -2572,18 +2607,19 @@
|
|
|
2572
2607
|
this._changeDetector.detectChanges();
|
|
2573
2608
|
};
|
|
2574
2609
|
ArticleCardComponent.prototype._getThumbNailImagesAndPrice = function () {
|
|
2610
|
+
var _this = this;
|
|
2575
2611
|
if (this._article) {
|
|
2576
2612
|
this._imageService.getArticleImage(this._article);
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2613
|
+
this._iOne.getArticlePrice(this._article.goodId, this._settingsService.settings.type).then(function (price) {
|
|
2614
|
+
if (price) {
|
|
2615
|
+
_this._article.baselinePrice = price.baselinePrice;
|
|
2616
|
+
_this._article.price = price.basePrice;
|
|
2617
|
+
_this._article.suppliedPrice = price.suppliedPrice;
|
|
2618
|
+
if (price.articleDescription !== undefined && price.articleDescription !== '') {
|
|
2619
|
+
_this._article.description = price.articleDescription;
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
});
|
|
2587
2623
|
}
|
|
2588
2624
|
};
|
|
2589
2625
|
return ArticleCardComponent;
|
|
@@ -2602,7 +2638,8 @@
|
|
|
2602
2638
|
{ type: IOneControllerService },
|
|
2603
2639
|
{ type: i0.ChangeDetectorRef },
|
|
2604
2640
|
{ type: AppEventService },
|
|
2605
|
-
{ type: ImageService }
|
|
2641
|
+
{ type: ImageService },
|
|
2642
|
+
{ type: SettingsService }
|
|
2606
2643
|
]; };
|
|
2607
2644
|
ArticleCardComponent.propDecorators = {
|
|
2608
2645
|
article: [{ type: i0.Input }],
|
|
@@ -2881,6 +2918,34 @@
|
|
|
2881
2918
|
IoneCatalogComponent.prototype.ngOnInit = function () {
|
|
2882
2919
|
return __awaiter(this, void 0, void 0, function () {
|
|
2883
2920
|
return __generator(this, function (_a) {
|
|
2921
|
+
this.settings = {
|
|
2922
|
+
url: 'http://130.62.7.55:8888/ione/',
|
|
2923
|
+
schema: '815',
|
|
2924
|
+
version: '252',
|
|
2925
|
+
branch: '1',
|
|
2926
|
+
assetPath: 'https://cdn1.colijn-it.nl/content43/',
|
|
2927
|
+
username: 'gast3',
|
|
2928
|
+
password: 'gast3',
|
|
2929
|
+
// languageCode: 'DE',
|
|
2930
|
+
useEncryption: true,
|
|
2931
|
+
additionalTranslationFile: 'https://cdn1.colijn-it.nl/content43/assets/develop_nl_NL.json',
|
|
2932
|
+
options: {
|
|
2933
|
+
// showAddToCart: true,
|
|
2934
|
+
// showPriceFilter: true,
|
|
2935
|
+
// showLookAtArticleButton: true,
|
|
2936
|
+
// lookAtArticleButtonText: 'look attt',
|
|
2937
|
+
// showAddArticleButton: true,
|
|
2938
|
+
// addArticleButtonText: 'addddd'
|
|
2939
|
+
},
|
|
2940
|
+
catalogParameters: {
|
|
2941
|
+
showCustomizedArticles: false,
|
|
2942
|
+
showConfigurableArticles: true,
|
|
2943
|
+
showInactiveArticles: false,
|
|
2944
|
+
showRegularArticles: true,
|
|
2945
|
+
showCompositionArticles: false,
|
|
2946
|
+
publicationCode: 64
|
|
2947
|
+
}
|
|
2948
|
+
};
|
|
2884
2949
|
return [2 /*return*/];
|
|
2885
2950
|
});
|
|
2886
2951
|
});
|
|
@@ -3243,7 +3308,7 @@
|
|
|
3243
3308
|
IoneCatalogModule.decorators = [
|
|
3244
3309
|
{ type: i0.NgModule, args: [{
|
|
3245
3310
|
imports: [
|
|
3246
|
-
|
|
3311
|
+
animations$1.BrowserAnimationsModule,
|
|
3247
3312
|
common.CommonModule,
|
|
3248
3313
|
corecomponents.InputTextModule,
|
|
3249
3314
|
corecomponents.PaginationModule,
|