@colijnit/catalog 12.1.26 → 12.1.28
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 +27 -137
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/lib/cache/cache-field.js +2 -2
- package/esm2015/lib/cache/parameter-cache-field.js +3 -3
- package/esm2015/lib/cache/service/select-multiple-cache.service.js +4 -4
- package/esm2015/lib/cache/service/select-multiple-parameterized-cache.service.js +4 -4
- package/esm2015/lib/cache/service/select-single-cache.service.js +3 -3
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.component.js +3 -2
- package/esm2015/lib/component/catalog-external-sources/catalog-external-sources.component.js +6 -6
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +12 -7
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.module.js +4 -4
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +3 -5
- package/esm2015/lib/pipe/localize.pipe.js +1 -1
- package/esm2015/lib/service/catalog-connector.service.js +1 -1
- package/esm2015/lib/service/catalog-options.service.js +1 -1
- package/esm2015/lib/service/catalog-search.service.js +9 -19
- package/esm2015/lib/service/catalog.service.js +3 -127
- package/esm2015/lib/service/dictionary.service.js +4 -4
- package/esm2015/lib/service/icon-cache.service.js +4 -4
- package/fesm2015/colijnit-catalog.js +33 -163
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/cache/cache-field.d.ts +1 -1
- package/lib/cache/service/select-multiple-cache.service.d.ts +3 -3
- package/lib/cache/service/select-multiple-parameterized-cache.service.d.ts +5 -5
- package/lib/cache/service/select-single-cache.service.d.ts +4 -4
- package/lib/component/catalog-article-tile/style/_layout.scss +13 -8
- package/lib/component/catalog-article-tile/style/_material-definition.scss +1 -0
- package/lib/component/catalog-article-tile/style/_theme.scss +1 -0
- package/lib/component/catalog-categories/style/_layout.scss +3 -0
- package/lib/component/catalog-categories/style/_material-definition.scss +3 -0
- package/lib/component/catalog-external-sources/catalog-external-sources.component.d.ts +2 -1
- package/lib/component/catalog-external-sources/style/_layout.scss +13 -21
- package/lib/component/catalog-external-sources/style/_material-definition.scss +5 -4
- package/lib/component/catalog-external-sources/style/_theme.scss +3 -1
- package/lib/component/catalog-navigation/catalog-navigation.component.d.ts +3 -0
- package/lib/component/catalog-navigation/style/_layout.scss +8 -0
- package/lib/component/catalog-navigation/style/_material-definition.scss +8 -3
- package/lib/component/catalog-navigation/style/_theme.scss +3 -0
- package/lib/service/catalog-options.service.d.ts +1 -1
- package/lib/service/catalog-search.service.d.ts +1 -4
- package/lib/service/catalog.service.d.ts +0 -11
- package/lib/service/dictionary.service.d.ts +1 -1
- package/lib/service/icon-cache.service.d.ts +2 -2
- package/package.json +2 -2
- package/esm2015/lib/interface/order-by.interface.js +0 -2
- package/lib/interface/order-by.interface.d.ts +0 -4
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
function Version() {
|
|
31
31
|
this.name = "@colijnit/catalog";
|
|
32
32
|
this.description = "iOne Catalog module based on Angular 12";
|
|
33
|
-
this.symVer = "12.1.
|
|
34
|
-
this.publishDate = "
|
|
33
|
+
this.symVer = "12.1.28";
|
|
34
|
+
this.publishDate = "21-4-2023 16:40:30";
|
|
35
35
|
}
|
|
36
36
|
return Version;
|
|
37
37
|
}());
|
|
@@ -2230,7 +2230,6 @@
|
|
|
2230
2230
|
this._settingsService = _settingsService;
|
|
2231
2231
|
this._optionService = _optionService;
|
|
2232
2232
|
this.searchRequest = new articleExtendedRequest.ArticleExtendedRequest();
|
|
2233
|
-
this.previousSearchRequest = new articleExtendedRequest.ArticleExtendedRequest();
|
|
2234
2233
|
// public activeSearchViewMode: SearchViewMode = SearchViewMode.FullScreen;
|
|
2235
2234
|
// public activeSearchBarViewMode: SearchbarViewMode = SearchbarViewMode.Expanded;
|
|
2236
2235
|
this.showFilterSidebar = false;
|
|
@@ -2241,6 +2240,9 @@
|
|
|
2241
2240
|
this._subs = [];
|
|
2242
2241
|
this._subs.push(this._optionService.parametersSet.subscribe(function (isSet) {
|
|
2243
2242
|
if (isSet) {
|
|
2243
|
+
if (_this._settingsService.settings.catalogParameters) {
|
|
2244
|
+
_this.searchRequest = _this._settingsService.settings.catalogParameters;
|
|
2245
|
+
}
|
|
2244
2246
|
if (_this._settingsService.settings.options.searchOnStart) {
|
|
2245
2247
|
_this.searchArticles();
|
|
2246
2248
|
}
|
|
@@ -2322,12 +2324,6 @@
|
|
|
2322
2324
|
CatalogSearchService.prototype.searchArticles = function (getFilters) {
|
|
2323
2325
|
var _this = this;
|
|
2324
2326
|
if (getFilters === void 0) { getFilters = true; }
|
|
2325
|
-
if (this._settingsService.settings.catalogParameters) {
|
|
2326
|
-
this.searchRequest.publicationCode = this._settingsService.settings.catalogParameters.publicationCode;
|
|
2327
|
-
}
|
|
2328
|
-
if (this.isNewGeneralSearch()) {
|
|
2329
|
-
this._currentPage = 1;
|
|
2330
|
-
}
|
|
2331
2327
|
var lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
|
|
2332
2328
|
this.searchRequest.paging = new pagingParameters.PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
|
|
2333
2329
|
this._catalogConnectorService.getArticlesForCatalog(this.searchRequest).then(function (result) {
|
|
@@ -2338,23 +2334,18 @@
|
|
|
2338
2334
|
_this._filterService.getFilters(_this.searchRequest);
|
|
2339
2335
|
}
|
|
2340
2336
|
});
|
|
2341
|
-
this.setPreviousSearchRequest();
|
|
2342
2337
|
};
|
|
2343
|
-
CatalogSearchService.prototype.resetFilters = function () {
|
|
2344
|
-
|
|
2338
|
+
CatalogSearchService.prototype.resetFilters = function (search) {
|
|
2339
|
+
if (search === void 0) { search = true; }
|
|
2345
2340
|
this._resetRequest();
|
|
2346
|
-
this.
|
|
2347
|
-
|
|
2341
|
+
this.articles.length = 0;
|
|
2342
|
+
if (search) {
|
|
2343
|
+
this.searchArticles();
|
|
2344
|
+
}
|
|
2348
2345
|
};
|
|
2349
2346
|
CatalogSearchService.prototype._resetRequest = function () {
|
|
2350
2347
|
this.searchRequest = new articleExtendedRequest.ArticleExtendedRequest();
|
|
2351
2348
|
};
|
|
2352
|
-
CatalogSearchService.prototype.setPreviousSearchRequest = function () {
|
|
2353
|
-
this.previousSearchRequest = Object.assign({}, this.searchRequest);
|
|
2354
|
-
};
|
|
2355
|
-
CatalogSearchService.prototype.isNewGeneralSearch = function () {
|
|
2356
|
-
return this.previousSearchRequest && this.previousSearchRequest.general !== this.searchRequest.general;
|
|
2357
|
-
};
|
|
2358
2349
|
// public get fullscreen(): boolean {
|
|
2359
2350
|
// return this.activeSearchViewMode === SearchViewMode.FullScreen;
|
|
2360
2351
|
// }
|
|
@@ -2440,7 +2431,7 @@
|
|
|
2440
2431
|
// this.ensureDataListsLoaded();
|
|
2441
2432
|
this.articlesPerPage = this._settingsService.settings.options.maxItemsPerPage;
|
|
2442
2433
|
if (this._settingsService.settings.options.searchOnStart) {
|
|
2443
|
-
this.searchArticles();
|
|
2434
|
+
this._catalogSearchService.searchArticles();
|
|
2444
2435
|
}
|
|
2445
2436
|
}
|
|
2446
2437
|
return [2 /*return*/];
|
|
@@ -2448,18 +2439,8 @@
|
|
|
2448
2439
|
}); }), this.optionsService.parametersSet.subscribe(function (set) {
|
|
2449
2440
|
if (set) {
|
|
2450
2441
|
_this.defaultOptions = _this.optionsService.parameters;
|
|
2451
|
-
// this._createDefaultRequest();
|
|
2452
|
-
// if (this.optionsService.parameters.general && this._settingsService.settings.options.searchOnStart) {
|
|
2453
|
-
// this._setRequestParametersAndProps(null, null, this.optionsService.parameters.general.split(' '));
|
|
2454
|
-
// this.searchArticles();
|
|
2455
|
-
// }
|
|
2456
2442
|
}
|
|
2457
2443
|
}));
|
|
2458
|
-
/*
|
|
2459
|
-
this.doArticleSearchThrottledFunc = this.utils.getAsThrottledFunction(() => {
|
|
2460
|
-
return this.doSearchArticles();
|
|
2461
|
-
}, this.minMillisBetweenArticleSearches, this);
|
|
2462
|
-
*/
|
|
2463
2444
|
}
|
|
2464
2445
|
Object.defineProperty(CatalogService.prototype, "externalSourceUrl", {
|
|
2465
2446
|
get: function () {
|
|
@@ -2535,10 +2516,6 @@
|
|
|
2535
2516
|
get: function () {
|
|
2536
2517
|
return this._currentPage;
|
|
2537
2518
|
},
|
|
2538
|
-
set: function (value) {
|
|
2539
|
-
this._currentPage = value;
|
|
2540
|
-
this.doSearchArticles(false);
|
|
2541
|
-
},
|
|
2542
2519
|
enumerable: false,
|
|
2543
2520
|
configurable: true
|
|
2544
2521
|
});
|
|
@@ -2566,7 +2543,7 @@
|
|
|
2566
2543
|
var _this = this;
|
|
2567
2544
|
return __generator(this, function (_a) {
|
|
2568
2545
|
switch (_a.label) {
|
|
2569
|
-
case 0: return [4 /*yield*/, this.connector.getArticleCategories(this.
|
|
2546
|
+
case 0: return [4 /*yield*/, this.connector.getArticleCategories(this.settingsService.settings.catalogParameters.publicationCode)];
|
|
2570
2547
|
case 1:
|
|
2571
2548
|
categories = _a.sent();
|
|
2572
2549
|
if (categories && categories.length > 0) {
|
|
@@ -2597,104 +2574,10 @@
|
|
|
2597
2574
|
});
|
|
2598
2575
|
});
|
|
2599
2576
|
};
|
|
2600
|
-
// public filterOnCollection(collection: FilterItemViewmodel[]): void {
|
|
2601
|
-
// if (!collection || collection.length === 0) {
|
|
2602
|
-
// return;
|
|
2603
|
-
// }
|
|
2604
|
-
// let cleared: boolean = false;
|
|
2605
|
-
// let filterRange: string[] = [];
|
|
2606
|
-
// const searchFilterProp: string = this._filterService.getFilterItemMap(collection[0].filter.filterName);
|
|
2607
|
-
// if (searchFilterProp) {
|
|
2608
|
-
// collection.forEach((viewModel: FilterItemViewmodel) => {
|
|
2609
|
-
// if (!cleared) {
|
|
2610
|
-
// this.articleSearchFilters[searchFilterProp] = '';
|
|
2611
|
-
// cleared = true;
|
|
2612
|
-
// }
|
|
2613
|
-
// if (viewModel.checked) {
|
|
2614
|
-
// filterRange.push(`?='${viewModel.code}'`);
|
|
2615
|
-
// }
|
|
2616
|
-
// });
|
|
2617
|
-
// this.articleSearchFilters[searchFilterProp] = filterRange.join(',');
|
|
2618
|
-
// this.searchArticles();
|
|
2619
|
-
// }
|
|
2620
|
-
// }
|
|
2621
|
-
CatalogService.prototype.changeOrderBy = function (orderBy) {
|
|
2622
|
-
this._currentOrderBy = orderBy.id;
|
|
2623
|
-
this._sortArticleList();
|
|
2624
|
-
};
|
|
2625
|
-
CatalogService.prototype.searchArticles = function () {
|
|
2626
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2627
|
-
var _this = this;
|
|
2628
|
-
return __generator(this, function (_a) {
|
|
2629
|
-
if (!this._controllerInitialized) {
|
|
2630
|
-
return [2 /*return*/];
|
|
2631
|
-
}
|
|
2632
|
-
clearTimeout(this._searchTimer);
|
|
2633
|
-
this._searchTimer = setTimeout(function () {
|
|
2634
|
-
_this.searchTextChanged.next(_this._filterText);
|
|
2635
|
-
_this.doArticleSearchThrottledFunc.call(_this);
|
|
2636
|
-
}, 400);
|
|
2637
|
-
return [2 /*return*/];
|
|
2638
|
-
});
|
|
2639
|
-
});
|
|
2640
|
-
};
|
|
2641
|
-
CatalogService.prototype.resetFilters = function () {
|
|
2642
|
-
// this._createDefaultRequest();
|
|
2643
|
-
// this.category = null;
|
|
2644
|
-
// this.turnoverGroup = null;
|
|
2645
|
-
// if (this.filterText !== null) {
|
|
2646
|
-
// this.filterText = this.filterText.slice();
|
|
2647
|
-
// }
|
|
2648
|
-
// this.onResetFilters.next();
|
|
2649
|
-
};
|
|
2650
2577
|
CatalogService.prototype.reset = function () {
|
|
2651
2578
|
this.showCatOrTurnoverGroupArticles = false;
|
|
2652
2579
|
this.showExternalSource = false;
|
|
2653
2580
|
};
|
|
2654
|
-
CatalogService.prototype.ensureDataListsLoaded = function () {
|
|
2655
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2656
|
-
return __generator(this, function (_a) {
|
|
2657
|
-
return [2 /*return*/];
|
|
2658
|
-
});
|
|
2659
|
-
});
|
|
2660
|
-
};
|
|
2661
|
-
// POST: this.articlesOnShowcase contains all articles for given search parameters.
|
|
2662
|
-
CatalogService.prototype.doSearchArticles = function (getFilters) {
|
|
2663
|
-
if (getFilters === void 0) { getFilters = true; }
|
|
2664
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2665
|
-
return __generator(this, function (_a) {
|
|
2666
|
-
return [2 /*return*/];
|
|
2667
|
-
});
|
|
2668
|
-
});
|
|
2669
|
-
};
|
|
2670
|
-
// public sortTurnoverGroups(categories: ArticleCategory[]): void {
|
|
2671
|
-
// }
|
|
2672
|
-
//
|
|
2673
|
-
CatalogService.prototype._sortArticleList = function () {
|
|
2674
|
-
switch (this._currentOrderBy) {
|
|
2675
|
-
case 1:
|
|
2676
|
-
this._sortArticleListByArticleNr();
|
|
2677
|
-
break;
|
|
2678
|
-
case 2:
|
|
2679
|
-
this._sortArticleListByArticleName();
|
|
2680
|
-
break;
|
|
2681
|
-
}
|
|
2682
|
-
};
|
|
2683
|
-
CatalogService.prototype._sortArticleListByArticleNr = function () {
|
|
2684
|
-
var newList = this.filteredArticlesOnShowcase.sort(function (a, b) { return a.articleNumber > b.articleNumber ? 1 : -1; });
|
|
2685
|
-
this.filteredArticlesOnShowcase = newList.slice();
|
|
2686
|
-
};
|
|
2687
|
-
CatalogService.prototype._sortArticleListByArticleName = function () {
|
|
2688
|
-
var newList = this.filteredArticlesOnShowcase.sort(function (a, b) {
|
|
2689
|
-
var first = a.name ? a.name : a.description;
|
|
2690
|
-
var second = b.name ? b.name : b.description;
|
|
2691
|
-
return first > second ? 1 : -1;
|
|
2692
|
-
});
|
|
2693
|
-
this.filteredArticlesOnShowcase = newList.slice();
|
|
2694
|
-
};
|
|
2695
|
-
CatalogService.prototype._createDefaultRequest = function () {
|
|
2696
|
-
this.articleSearchFilters = Object.assign({}, this.defaultOptions);
|
|
2697
|
-
};
|
|
2698
2581
|
return CatalogService;
|
|
2699
2582
|
}());
|
|
2700
2583
|
CatalogService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogService_Factory() { return new CatalogService(i0__namespace.ɵɵinject(CatalogConnectorService), i0__namespace.ɵɵinject(CatalogConnectorAdapterService), i0__namespace.ɵɵinject(CatalogSettingsService), i0__namespace.ɵɵinject(CatalogOptionsService), i0__namespace.ɵɵinject(CatalogImageService), i0__namespace.ɵɵinject(CatalogSettingsService), i0__namespace.ɵɵinject(CatalogFilterService), i0__namespace.ɵɵinject(CatalogSearchService)); }, token: CatalogService, providedIn: "root" });
|
|
@@ -3137,6 +3020,7 @@
|
|
|
3137
3020
|
this.homeClick = new i0.EventEmitter();
|
|
3138
3021
|
this.categoryClick = new i0.EventEmitter();
|
|
3139
3022
|
this.turnoverGroupClick = new i0.EventEmitter();
|
|
3023
|
+
this.externalSourceClick = new i0.EventEmitter();
|
|
3140
3024
|
this.minified = false;
|
|
3141
3025
|
this.showClass = true;
|
|
3142
3026
|
this.mobileMenuToggle = false;
|
|
@@ -3208,6 +3092,9 @@
|
|
|
3208
3092
|
CatalogNavigationComponent.prototype.handleTurnoverGroupClick = function (event, turnovergroupNr) {
|
|
3209
3093
|
this.turnoverGroupClick.emit(turnovergroupNr);
|
|
3210
3094
|
};
|
|
3095
|
+
CatalogNavigationComponent.prototype.handleExternalSourceClick = function (externalSource) {
|
|
3096
|
+
this.externalSourceClick.emit(externalSource);
|
|
3097
|
+
};
|
|
3211
3098
|
CatalogNavigationComponent.prototype.onToggleMobileMenu = function () {
|
|
3212
3099
|
this.mobileMenuToggle = !this.mobileMenuToggle;
|
|
3213
3100
|
};
|
|
@@ -3269,7 +3156,7 @@
|
|
|
3269
3156
|
CatalogNavigationComponent.decorators = [
|
|
3270
3157
|
{ type: i0.Component, args: [{
|
|
3271
3158
|
selector: 'co-catalog-navigation',
|
|
3272
|
-
template: "\n <div class=\"navigation-wrapper\" [class.minified]=\"minified\">\n <div class=\"navigation-item-wrapper\">\n <a class=\"
|
|
3159
|
+
template: "\n <div class=\"navigation-wrapper\" [class.minified]=\"minified\">\n <div class=\"navigation-item-wrapper\">\n <a class=\"home-link\" (click)=\"handleHomeClick($event)\" [textContent]=\"homeLabel\"></a>\n </div>\n <div class=\"navigation-item-wrapper\" [class.active]=\"mobileMenuToggle\" (click)=\"onToggleMobileMenu()\" \n (mouseover)=\"handleShowCollectionOverlay()\" \n (mouseleave)=\"handleHideCollectionOverlay()\" \n overlayParent #collectionParentForOverlay=\"overlayParent\">\n <co-icon class=\"hamburger-icon\" [iconData]=\"iconCache.getIcon(icons.Hamburger)\"></co-icon>\n <span [textContent]=\"collectionLabel\"></span>\n <div class=\"navigation-overlay-wrapper\" [overlay]=\"collectionParentForOverlay\" [keepInView]=\"true\" *ngIf=\"showCollectionOverlay\" @showHideOverlay>\n <div class=\"navigation-category-column-wrapper\" *ngFor=\"let category of categories\">\n <div class=\"navigation-category\" [textContent]=\"category.category\" (click)=\"handleCategoryClick($event, category.category)\"></div>\n <div class=\"navigation-turnovergroup-wrapper\">\n <div class=\"navigation-turnovergroup\" *ngFor=\"let turnoverGroup of category.turnoverGroups\" [textContent]=\"turnoverGroup.description\" (click)=\"handleTurnoverGroupClick($event, turnoverGroup.turnovergroupNr)\"></div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"navigation-item-wrapper\" [class.active]=\"mobileMenuToggle\" (click)=\"onToggleMobileMenu()\" \n (mouseover)=\"handleShowExternalOverlay()\"\n (mouseleave)=\"handleHideExternalOverlay()\"\n overlayParent #externalParentForOverlay=\"overlayParent\">\n <co-icon class=\"hamburger-icon\" [iconData]=\"iconCache.getIcon(icons.Ar)\"></co-icon>\n <span [textContent]=\"externalSourcesLabel\"></span>\n <div class=\"navigation-overlay-wrapper\" [overlay]=\"externalParentForOverlay\" [keepInView]=\"true\" *ngIf=\"showExternalOverlay\" @showHideOverlay>\n <co-catalog-external-sources (externalSourceClick)=\"handleExternalSourceClick($event)\"></co-catalog-external-sources>\n </div>\n </div>\n </div>\n ",
|
|
3273
3160
|
animations: [
|
|
3274
3161
|
animations.trigger('showHideOverlay', [
|
|
3275
3162
|
animations.state('void', animations.style({ height: '0' })),
|
|
@@ -3293,6 +3180,7 @@
|
|
|
3293
3180
|
homeClick: [{ type: i0.Output }],
|
|
3294
3181
|
categoryClick: [{ type: i0.Output }],
|
|
3295
3182
|
turnoverGroupClick: [{ type: i0.Output }],
|
|
3183
|
+
externalSourceClick: [{ type: i0.Output }],
|
|
3296
3184
|
minified: [{ type: i0.Input }],
|
|
3297
3185
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-navigation',] }]
|
|
3298
3186
|
};
|
|
@@ -3309,6 +3197,7 @@
|
|
|
3309
3197
|
function CatalogExternalSourcesComponent(_catalogConnectorService, _imageService) {
|
|
3310
3198
|
this._catalogConnectorService = _catalogConnectorService;
|
|
3311
3199
|
this._imageService = _imageService;
|
|
3200
|
+
this.externalSourceClick = new i0.EventEmitter();
|
|
3312
3201
|
this.externalSourceViewModels = [];
|
|
3313
3202
|
}
|
|
3314
3203
|
CatalogExternalSourcesComponent.prototype.showClass = function () {
|
|
@@ -3354,7 +3243,7 @@
|
|
|
3354
3243
|
CatalogExternalSourcesComponent.decorators = [
|
|
3355
3244
|
{ type: i0.Component, args: [{
|
|
3356
3245
|
selector: 'co-catalog-external-sources',
|
|
3357
|
-
template: "\n <ng-container *ngIf=\"externalSourceViewModels && externalSourceViewModels.length > 0\">\n <div class=\"catalog-external-sources-wrapper\">\n <div class=\"external-source-item\" *ngFor=\"let externalSourceViewModel of externalSourceViewModels\"
|
|
3246
|
+
template: "\n <ng-container *ngIf=\"externalSourceViewModels && externalSourceViewModels.length > 0\">\n <div class=\"catalog-external-sources-wrapper\">\n <div class=\"external-source-item\" *ngFor=\"let externalSourceViewModel of externalSourceViewModels\" (click)=\"externalSourceClick.emit(externalSourceViewModel)\">\n <div class=\"external-source-description\" [textContent]=\"externalSourceViewModel.catalogDefinition.name\"></div>\n <co-image [source]=\"externalSourceViewModel.catalogDefinition.imageData\"></co-image>\n </div>\n </div>\n </ng-container>\n ",
|
|
3358
3247
|
encapsulation: i0.ViewEncapsulation.None
|
|
3359
3248
|
},] }
|
|
3360
3249
|
];
|
|
@@ -3363,6 +3252,7 @@
|
|
|
3363
3252
|
{ type: CatalogImageService }
|
|
3364
3253
|
]; };
|
|
3365
3254
|
CatalogExternalSourcesComponent.propDecorators = {
|
|
3255
|
+
externalSourceClick: [{ type: i0.Output }],
|
|
3366
3256
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-external-sources',] }]
|
|
3367
3257
|
};
|
|
3368
3258
|
|
|
@@ -3399,8 +3289,8 @@
|
|
|
3399
3289
|
common.CommonModule,
|
|
3400
3290
|
corecomponents.IconModule,
|
|
3401
3291
|
CatalogFilterModule,
|
|
3402
|
-
|
|
3403
|
-
|
|
3292
|
+
CatalogExternalSourcesModule,
|
|
3293
|
+
corecomponents_v12.OverlayModule
|
|
3404
3294
|
],
|
|
3405
3295
|
declarations: [
|
|
3406
3296
|
CatalogNavigationComponent
|
|
@@ -3417,7 +3307,7 @@
|
|
|
3417
3307
|
this._catalogEventService = _catalogEventService;
|
|
3418
3308
|
this.showNavigation = false;
|
|
3419
3309
|
this.showFilter = false;
|
|
3420
|
-
this.showViewModes =
|
|
3310
|
+
this.showViewModes = true;
|
|
3421
3311
|
this.onLookAtArticleButtonClick = new i0.EventEmitter();
|
|
3422
3312
|
this.onArButtonClick = new i0.EventEmitter();
|
|
3423
3313
|
this.onAddArticleButtonClick = new i0.EventEmitter();
|
|
@@ -3458,7 +3348,7 @@
|
|
|
3458
3348
|
CatalogSearchComponent.decorators = [
|
|
3459
3349
|
{ type: i0.Component, args: [{
|
|
3460
3350
|
selector: 'co-catalog-search',
|
|
3461
|
-
template: "\n <
|
|
3351
|
+
template: "\n <div class=\"catalog-search-wrapper\">\n <ng-container *ngIf=\"showFilter\">\n <div class=\"filter-content\">\n <co-catalog-filter [showResetFilter]=\"true\"></co-catalog-filter>\n </div>\n </ng-container>\n <div class=\"search-content-wrapper\">\n <div class=\"search-header\">\n<!--\n <co-catalog-external-sources></co-catalog-external-sources>\n-->\n <co-catalog-search-header [placeholder]=\"'Zoeken naar artikelen'\"></co-catalog-search-header>\n </div>\n <ng-container *ngIf=\"showViewModes\">\n <button (click)=\"mode = 'tile'\">tile</button>\n <button (click)=\"mode = 'list'\">list</button>\n <button (click)=\"mode = 'grid'\">grid</button>\n </ng-container>\n <co-catalog-navigation *ngIf=\"showNavigation\" (categoryClick)=\"handleCategoryClick($event)\" (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"></co-catalog-navigation>\n <co-catalog-categories (categoryClick)=\"handleCategoryClick($event)\" (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"></co-catalog-categories>\n <div class=\"search-content\">\n <ng-container *ngIf=\"mode === 'tile'\">\n <co-catalog-search-result-tile></co-catalog-search-result-tile>\n </ng-container>\n <ng-container *ngIf=\"mode === 'list'\">\n <co-catalog-search-result-list></co-catalog-search-result-list>\n </ng-container>\n <ng-container *ngIf=\"mode === 'grid'\">\n <!--\n <co-catalog-search-result></co-catalog-search-result>\n -->\n </ng-container>\n </div>\n </div>\n </div>\n ",
|
|
3462
3352
|
encapsulation: i0.ViewEncapsulation.None
|
|
3463
3353
|
},] }
|
|
3464
3354
|
];
|
|
@@ -3755,7 +3645,7 @@
|
|
|
3755
3645
|
CatalogArticleTileComponent.decorators = [
|
|
3756
3646
|
{ type: i0.Component, args: [{
|
|
3757
3647
|
selector: 'co-catalog-article-tile',
|
|
3758
|
-
template: "\n <div class=\"article-tile-wrapper\">\n <div class=\"card-wrapper\">\n <div class=\"image\">\n <co-image class=\"co-image\" [source]=\"article.imageData\"></co-image>\n </div>\n <div class=\"button-wrapper\">\n <co-icon *ngIf=\"threeD\" [iconData]=\"iconCache.getIcon(icons.ThreeD)\" class=\"pointer\"></co-icon>\n <co-icon *ngIf=\"threeD && options.showARButton\" class=\"pointer\"\n [iconData]=\"iconCache.getIcon(icons.Ar)\"\n (click)=\"handleArButtonClick($event)\"\n ></co-icon>\n </div>\n </div>\n <div class=\"description-wrapper\">\n <!--\n <div class=\"main\">\n -->\n <div class=\"main-top\">\n <div *ngIf=\"!!turnover\" class=\"turnover\" [innerText]=\"removeHtmlTags(turnover)\"></div>\n <div
|
|
3648
|
+
template: "\n <div class=\"article-tile-wrapper\">\n <div class=\"card-wrapper\">\n <div class=\"image\">\n <co-image class=\"co-image\" [source]=\"article.imageData\"></co-image>\n </div>\n <div class=\"button-wrapper\">\n <co-icon *ngIf=\"threeD\" [iconData]=\"iconCache.getIcon(icons.ThreeD)\" class=\"pointer\"></co-icon>\n <co-icon *ngIf=\"threeD && options.showARButton\" class=\"pointer\"\n [iconData]=\"iconCache.getIcon(icons.Ar)\"\n (click)=\"handleArButtonClick($event)\"\n ></co-icon>\n </div>\n </div>\n <div class=\"description-wrapper\">\n <!--\n <div class=\"main\">\n -->\n <div class=\"main-top\">\n <div *ngIf=\"!!turnover\" class=\"turnover\" [innerText]=\"removeHtmlTags(turnover)\"></div>\n <div class=\"name\" [innerText]=\"removeHtmlTags(article.name)\"></div>\n <div class=\"description\" [innerText]=\"removeHtmlTags(article.description)\"></div>\n </div>\n <div class=\"main-bottom\">\n <div class=\"main-bottom-left\">\n <div *ngIf=\"!!article?.price\" class=\"price\" [innerText]=\"article?.price | priceDisplay:valutaSymbol\"></div>\n <div *ngIf=\"!!article?.articleNumber\" class=\"sku\">\n <span [innerText]=\"'sku' | localize\"></span>:\n <span [innerText]=\"article.articleNumber\"></span>\n </div>\n <div *ngIf=\"stock_available\" (click)=\"handleStockDetailsButtonClick($event)\" class=\"stock\"\n [innerText]=\"stock_available\"></div>\n <div *ngIf=\"!stock_available\" (click)=\"handleStockDetailsButtonClick($event)\" class=\"stock not-in-stock\"\n [innerText]=\"'Niet op voorraad'\"></div>\n </div>\n <div *ngIf=\"options.showAddArticleButton\" class=\"on-article-buttons\">\n <co-button *ngIf=\"!configurable\"\n [label]=\"options.addArticleButtonText\"\n class=\"open-icon action pointer\"\n (onClick)=\"handleAddArticleButtonClick($event)\"\n [iconData]=\"iconCache.getIcon(icons.AddToCartDrop)\">\n </co-button>\n <co-button *ngIf=\"configurable\"\n [label]=\"options.lookAtArticleButtonText\"\n class=\"open-icon action pointer\"\n (onClick)=\"handleLookAtArticleButtonClick($event)\"\n [iconData]=\"iconCache.getIcon(icons.MagicWand)\">\n </co-button>\n <!--co-button\n [label]=\"options.stockButtonText\"\n class=\"open-icon action pointer stock\"\n (onClick)=\"handleStockDetailsButtonClick($event)\"\n [iconData]=\"iconCache.getIcon(icons.Truck)\">\n </co-button-->\n </div>\n </div>\n </div>\n </div>\n ",
|
|
3759
3649
|
encapsulation: i0.ViewEncapsulation.None
|
|
3760
3650
|
},] }
|
|
3761
3651
|
];
|