@colijnit/catalog 12.1.27 → 12.1.29

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.
Files changed (47) hide show
  1. package/bundles/colijnit-catalog.umd.js +31 -248
  2. package/bundles/colijnit-catalog.umd.js.map +1 -1
  3. package/colijnit-catalog.d.ts +13 -17
  4. package/colijnit-catalog.metadata.json +1 -1
  5. package/esm2015/colijnit-catalog.js +14 -18
  6. package/esm2015/lib/cache/cache-field.js +2 -2
  7. package/esm2015/lib/cache/parameter-cache-field.js +3 -3
  8. package/esm2015/lib/cache/service/select-multiple-cache.service.js +4 -4
  9. package/esm2015/lib/cache/service/select-multiple-parameterized-cache.service.js +4 -4
  10. package/esm2015/lib/cache/service/select-single-cache.service.js +3 -3
  11. package/esm2015/lib/catalog-version.js +3 -3
  12. package/esm2015/lib/component/base/article-base.component.js +7 -1
  13. package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.component.js +3 -2
  14. package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +2 -2
  15. package/esm2015/lib/component/catalog-navigation/catalog-navigation.module.js +2 -2
  16. package/esm2015/lib/component/catalog-search/catalog-search.component.js +5 -3
  17. package/esm2015/lib/pipe/localize.pipe.js +1 -1
  18. package/esm2015/lib/service/catalog-connector.service.js +1 -1
  19. package/esm2015/lib/service/catalog-options.service.js +1 -1
  20. package/esm2015/lib/service/catalog.service.js +2 -126
  21. package/esm2015/lib/service/dictionary.service.js +4 -4
  22. package/esm2015/lib/service/icon-cache.service.js +4 -4
  23. package/esm2015/public_api.js +2 -1
  24. package/fesm2015/colijnit-catalog.js +19 -239
  25. package/fesm2015/colijnit-catalog.js.map +1 -1
  26. package/lib/cache/cache-field.d.ts +1 -1
  27. package/lib/cache/service/select-multiple-cache.service.d.ts +3 -3
  28. package/lib/cache/service/select-multiple-parameterized-cache.service.d.ts +5 -5
  29. package/lib/cache/service/select-single-cache.service.d.ts +4 -4
  30. package/lib/component/catalog-article-tile/style/_layout.scss +13 -8
  31. package/lib/component/catalog-article-tile/style/_material-definition.scss +1 -0
  32. package/lib/component/catalog-article-tile/style/_theme.scss +1 -0
  33. package/lib/component/catalog-search/catalog-search.component.d.ts +1 -0
  34. package/lib/service/catalog-options.service.d.ts +1 -1
  35. package/lib/service/catalog.service.d.ts +0 -11
  36. package/lib/service/dictionary.service.d.ts +1 -1
  37. package/lib/service/icon-cache.service.d.ts +2 -2
  38. package/package.json +1 -1
  39. package/public_api.d.ts +1 -0
  40. package/esm2015/lib/directive/overlay/overlay-parent.directive.js +0 -19
  41. package/esm2015/lib/directive/overlay/overlay.directive.js +0 -73
  42. package/esm2015/lib/directive/overlay/overlay.module.js +0 -18
  43. package/esm2015/lib/interface/order-by.interface.js +0 -2
  44. package/lib/directive/overlay/overlay-parent.directive.d.ts +0 -6
  45. package/lib/directive/overlay/overlay.directive.d.ts +0 -15
  46. package/lib/directive/overlay/overlay.module.d.ts +0 -2
  47. 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.27";
34
- this.publishDate = "13-4-2023 18:09:01";
33
+ this.symVer = "12.1.29";
34
+ this.publishDate = "22-4-2023 12:13:18";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -2431,7 +2431,7 @@
2431
2431
  // this.ensureDataListsLoaded();
2432
2432
  this.articlesPerPage = this._settingsService.settings.options.maxItemsPerPage;
2433
2433
  if (this._settingsService.settings.options.searchOnStart) {
2434
- this.searchArticles();
2434
+ this._catalogSearchService.searchArticles();
2435
2435
  }
2436
2436
  }
2437
2437
  return [2 /*return*/];
@@ -2439,18 +2439,8 @@
2439
2439
  }); }), this.optionsService.parametersSet.subscribe(function (set) {
2440
2440
  if (set) {
2441
2441
  _this.defaultOptions = _this.optionsService.parameters;
2442
- // this._createDefaultRequest();
2443
- // if (this.optionsService.parameters.general && this._settingsService.settings.options.searchOnStart) {
2444
- // this._setRequestParametersAndProps(null, null, this.optionsService.parameters.general.split(' '));
2445
- // this.searchArticles();
2446
- // }
2447
2442
  }
2448
2443
  }));
2449
- /*
2450
- this.doArticleSearchThrottledFunc = this.utils.getAsThrottledFunction(() => {
2451
- return this.doSearchArticles();
2452
- }, this.minMillisBetweenArticleSearches, this);
2453
- */
2454
2444
  }
2455
2445
  Object.defineProperty(CatalogService.prototype, "externalSourceUrl", {
2456
2446
  get: function () {
@@ -2526,10 +2516,6 @@
2526
2516
  get: function () {
2527
2517
  return this._currentPage;
2528
2518
  },
2529
- set: function (value) {
2530
- this._currentPage = value;
2531
- this.doSearchArticles(false);
2532
- },
2533
2519
  enumerable: false,
2534
2520
  configurable: true
2535
2521
  });
@@ -2588,104 +2574,10 @@
2588
2574
  });
2589
2575
  });
2590
2576
  };
2591
- // public filterOnCollection(collection: FilterItemViewmodel[]): void {
2592
- // if (!collection || collection.length === 0) {
2593
- // return;
2594
- // }
2595
- // let cleared: boolean = false;
2596
- // let filterRange: string[] = [];
2597
- // const searchFilterProp: string = this._filterService.getFilterItemMap(collection[0].filter.filterName);
2598
- // if (searchFilterProp) {
2599
- // collection.forEach((viewModel: FilterItemViewmodel) => {
2600
- // if (!cleared) {
2601
- // this.articleSearchFilters[searchFilterProp] = '';
2602
- // cleared = true;
2603
- // }
2604
- // if (viewModel.checked) {
2605
- // filterRange.push(`?='${viewModel.code}'`);
2606
- // }
2607
- // });
2608
- // this.articleSearchFilters[searchFilterProp] = filterRange.join(',');
2609
- // this.searchArticles();
2610
- // }
2611
- // }
2612
- CatalogService.prototype.changeOrderBy = function (orderBy) {
2613
- this._currentOrderBy = orderBy.id;
2614
- this._sortArticleList();
2615
- };
2616
- CatalogService.prototype.searchArticles = function () {
2617
- return __awaiter(this, void 0, void 0, function () {
2618
- var _this = this;
2619
- return __generator(this, function (_a) {
2620
- if (!this._controllerInitialized) {
2621
- return [2 /*return*/];
2622
- }
2623
- clearTimeout(this._searchTimer);
2624
- this._searchTimer = setTimeout(function () {
2625
- _this.searchTextChanged.next(_this._filterText);
2626
- _this.doArticleSearchThrottledFunc.call(_this);
2627
- }, 400);
2628
- return [2 /*return*/];
2629
- });
2630
- });
2631
- };
2632
- CatalogService.prototype.resetFilters = function () {
2633
- // this._createDefaultRequest();
2634
- // this.category = null;
2635
- // this.turnoverGroup = null;
2636
- // if (this.filterText !== null) {
2637
- // this.filterText = this.filterText.slice();
2638
- // }
2639
- // this.onResetFilters.next();
2640
- };
2641
2577
  CatalogService.prototype.reset = function () {
2642
2578
  this.showCatOrTurnoverGroupArticles = false;
2643
2579
  this.showExternalSource = false;
2644
2580
  };
2645
- CatalogService.prototype.ensureDataListsLoaded = function () {
2646
- return __awaiter(this, void 0, void 0, function () {
2647
- return __generator(this, function (_a) {
2648
- return [2 /*return*/];
2649
- });
2650
- });
2651
- };
2652
- // POST: this.articlesOnShowcase contains all articles for given search parameters.
2653
- CatalogService.prototype.doSearchArticles = function (getFilters) {
2654
- if (getFilters === void 0) { getFilters = true; }
2655
- return __awaiter(this, void 0, void 0, function () {
2656
- return __generator(this, function (_a) {
2657
- return [2 /*return*/];
2658
- });
2659
- });
2660
- };
2661
- // public sortTurnoverGroups(categories: ArticleCategory[]): void {
2662
- // }
2663
- //
2664
- CatalogService.prototype._sortArticleList = function () {
2665
- switch (this._currentOrderBy) {
2666
- case 1:
2667
- this._sortArticleListByArticleNr();
2668
- break;
2669
- case 2:
2670
- this._sortArticleListByArticleName();
2671
- break;
2672
- }
2673
- };
2674
- CatalogService.prototype._sortArticleListByArticleNr = function () {
2675
- var newList = this.filteredArticlesOnShowcase.sort(function (a, b) { return a.articleNumber > b.articleNumber ? 1 : -1; });
2676
- this.filteredArticlesOnShowcase = newList.slice();
2677
- };
2678
- CatalogService.prototype._sortArticleListByArticleName = function () {
2679
- var newList = this.filteredArticlesOnShowcase.sort(function (a, b) {
2680
- var first = a.name ? a.name : a.description;
2681
- var second = b.name ? b.name : b.description;
2682
- return first > second ? 1 : -1;
2683
- });
2684
- this.filteredArticlesOnShowcase = newList.slice();
2685
- };
2686
- CatalogService.prototype._createDefaultRequest = function () {
2687
- this.articleSearchFilters = Object.assign({}, this.defaultOptions);
2688
- };
2689
2581
  return CatalogService;
2690
2582
  }());
2691
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" });
@@ -3264,7 +3156,7 @@
3264
3156
  CatalogNavigationComponent.decorators = [
3265
3157
  { type: i0.Component, args: [{
3266
3158
  selector: 'co-catalog-navigation',
3267
- 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.description)\"></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 ",
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 ",
3268
3160
  animations: [
3269
3161
  animations.trigger('showHideOverlay', [
3270
3162
  animations.state('void', animations.style({ height: '0' })),
@@ -3386,121 +3278,6 @@
3386
3278
  },] }
3387
3279
  ];
3388
3280
 
3389
- var OverlayDirective = /** @class */ (function () {
3390
- function OverlayDirective(elementRef) {
3391
- this.keepInView = false;
3392
- this._elementRef = elementRef;
3393
- }
3394
- Object.defineProperty(OverlayDirective.prototype, "parent", {
3395
- set: function (value) {
3396
- if (value && value.elementRef) {
3397
- this._parent = value.elementRef;
3398
- }
3399
- else {
3400
- if (this._parent) {
3401
- this._observer.disconnect();
3402
- }
3403
- }
3404
- },
3405
- enumerable: false,
3406
- configurable: true
3407
- });
3408
- OverlayDirective.prototype.handleScroll = function (event) {
3409
- this._checkAndPlaceElement();
3410
- };
3411
- OverlayDirective.prototype.ngOnDestroy = function () {
3412
- // document.removeEventListener("scroll", (event) => this._handleScroll(event), false);
3413
- this._observer.disconnect();
3414
- this._elementRef = undefined;
3415
- this._parent = undefined;
3416
- };
3417
- OverlayDirective.prototype.ngOnInit = function () {
3418
- var _this = this;
3419
- // document.addEventListener("scroll", (event) => this._handleScroll(event), false);
3420
- this._checkAndPlaceElement();
3421
- this._observer = new ResizeObserver(function (entries) {
3422
- _this._checkAndPlaceElement();
3423
- });
3424
- this._observer.observe(document.body);
3425
- };
3426
- OverlayDirective.prototype._checkAndPlaceElement = function () {
3427
- var elementRect = this._elementRef.nativeElement.getBoundingClientRect();
3428
- var parentRect = this._parent.nativeElement.getBoundingClientRect();
3429
- this._placeElement(window.innerHeight, window.innerWidth, parentRect, elementRect);
3430
- };
3431
- OverlayDirective.prototype._placeElement = function (bottom, right, parentRect, elementRect) {
3432
- if (bottom < parentRect.bottom + elementRect.height) { // make sure it fits at the bottom
3433
- this._elementRef.nativeElement.style.top = (parentRect.top - elementRect.height) + "px";
3434
- }
3435
- else {
3436
- this._elementRef.nativeElement.style.top = parentRect.bottom + "px";
3437
- }
3438
- if (this.keepInView) {
3439
- if (elementRect.right > window.innerWidth) {
3440
- //see if we can move it to the left
3441
- if ((window.innerWidth - elementRect.width) > 0) {
3442
- this._elementRef.nativeElement.style.left = (window.innerWidth - elementRect.width) + "px";
3443
- }
3444
- else { //resize so it fits into view
3445
- this._elementRef.nativeElement.style.width = window.innerWidth + "px";
3446
- this._elementRef.nativeElement.style.left = 0;
3447
- }
3448
- }
3449
- }
3450
- };
3451
- return OverlayDirective;
3452
- }());
3453
- OverlayDirective.decorators = [
3454
- { type: i0.Directive, args: [{
3455
- selector: "[overlay]"
3456
- },] }
3457
- ];
3458
- OverlayDirective.ctorParameters = function () { return [
3459
- { type: i0.ElementRef }
3460
- ]; };
3461
- OverlayDirective.propDecorators = {
3462
- parent: [{ type: i0.Input, args: ["overlay",] }],
3463
- keepInView: [{ type: i0.Input }],
3464
- handleScroll: [{ type: i0.HostListener, args: ["document:scroll", ["$event"],] }]
3465
- };
3466
-
3467
- var OverlayParentDirective = /** @class */ (function () {
3468
- function OverlayParentDirective(elementRef) {
3469
- this.elementRef = elementRef;
3470
- }
3471
- OverlayParentDirective.prototype.ngOnDestroy = function () {
3472
- this.elementRef = undefined;
3473
- };
3474
- return OverlayParentDirective;
3475
- }());
3476
- OverlayParentDirective.decorators = [
3477
- { type: i0.Directive, args: [{
3478
- selector: '[overlayParent]',
3479
- exportAs: 'overlayParent'
3480
- },] }
3481
- ];
3482
- OverlayParentDirective.ctorParameters = function () { return [
3483
- { type: i0.ElementRef }
3484
- ]; };
3485
-
3486
- var OverlayModule = /** @class */ (function () {
3487
- function OverlayModule() {
3488
- }
3489
- return OverlayModule;
3490
- }());
3491
- OverlayModule.decorators = [
3492
- { type: i0.NgModule, args: [{
3493
- declarations: [
3494
- OverlayDirective,
3495
- OverlayParentDirective
3496
- ],
3497
- exports: [
3498
- OverlayDirective,
3499
- OverlayParentDirective
3500
- ]
3501
- },] }
3502
- ];
3503
-
3504
3281
  var CatalogNavigationModule = /** @class */ (function () {
3505
3282
  function CatalogNavigationModule() {
3506
3283
  }
@@ -3513,7 +3290,7 @@
3513
3290
  corecomponents.IconModule,
3514
3291
  CatalogFilterModule,
3515
3292
  CatalogExternalSourcesModule,
3516
- OverlayModule
3293
+ corecomponents_v12.OverlayModule
3517
3294
  ],
3518
3295
  declarations: [
3519
3296
  CatalogNavigationComponent
@@ -3529,6 +3306,7 @@
3529
3306
  this._catalogSearchService = _catalogSearchService;
3530
3307
  this._catalogEventService = _catalogEventService;
3531
3308
  this.showNavigation = false;
3309
+ this.showLandingPage = false;
3532
3310
  this.showFilter = false;
3533
3311
  this.showViewModes = false;
3534
3312
  this.onLookAtArticleButtonClick = new i0.EventEmitter();
@@ -3571,7 +3349,7 @@
3571
3349
  CatalogSearchComponent.decorators = [
3572
3350
  { type: i0.Component, args: [{
3573
3351
  selector: 'co-catalog-search',
3574
- 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\"></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 ",
3352
+ 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 *ngIf=\"showLandingPage\" (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 ",
3575
3353
  encapsulation: i0.ViewEncapsulation.None
3576
3354
  },] }
3577
3355
  ];
@@ -3581,6 +3359,7 @@
3581
3359
  ]; };
3582
3360
  CatalogSearchComponent.propDecorators = {
3583
3361
  showNavigation: [{ type: i0.Input }],
3362
+ showLandingPage: [{ type: i0.Input }],
3584
3363
  showFilter: [{ type: i0.Input }],
3585
3364
  showViewModes: [{ type: i0.Input }],
3586
3365
  onLookAtArticleButtonClick: [{ type: i0.Output }],
@@ -3786,6 +3565,9 @@
3786
3565
  this.onArButtonClick.emit(this.article);
3787
3566
  };
3788
3567
  ArticleBaseComponent.prototype.removeHtmlTags = function (desc) {
3568
+ if (!desc) {
3569
+ return "";
3570
+ }
3789
3571
  desc = desc.replace(/\r?\n|\r/, '');
3790
3572
  return desc;
3791
3573
  };
@@ -3793,7 +3575,11 @@
3793
3575
  return __awaiter(this, void 0, void 0, function () {
3794
3576
  return __generator(this, function (_a) {
3795
3577
  switch (_a.label) {
3796
- case 0: return [4 /*yield*/, this._iOne.getJsonArticleFlatTree(article.goodId, article.goodType, 1)];
3578
+ case 0:
3579
+ if (!article) {
3580
+ return [2 /*return*/, ""];
3581
+ }
3582
+ return [4 /*yield*/, this._iOne.getJsonArticleFlatTree(article.goodId, article.goodType, 1)];
3797
3583
  case 1: return [2 /*return*/, _a.sent()];
3798
3584
  }
3799
3585
  });
@@ -3868,7 +3654,7 @@
3868
3654
  CatalogArticleTileComponent.decorators = [
3869
3655
  { type: i0.Component, args: [{
3870
3656
  selector: 'co-catalog-article-tile',
3871
- 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 *ngIf=\"!!name\" class=\"description\" [innerText]=\"removeHtmlTags(name)\"></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 ",
3657
+ 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 ",
3872
3658
  encapsulation: i0.ViewEncapsulation.None
3873
3659
  },] }
3874
3660
  ];
@@ -4251,6 +4037,7 @@
4251
4037
  exports.CatalogArticleListModule = CatalogArticleListModule;
4252
4038
  exports.CatalogArticleTileModule = CatalogArticleTileModule;
4253
4039
  exports.CatalogCategoriesModule = CatalogCategoriesModule;
4040
+ exports.CatalogEventService = CatalogEventService;
4254
4041
  exports.CatalogExternalSourceModule = CatalogExternalSourceModule;
4255
4042
  exports.CatalogExternalSourcesModule = CatalogExternalSourcesModule;
4256
4043
  exports.CatalogFilterModule = CatalogFilterModule;
@@ -4264,17 +4051,13 @@
4264
4051
  exports.Version = Version;
4265
4052
  exports["ɵa"] = CatalogFilterComponent;
4266
4053
  exports["ɵb"] = CatalogFilterService;
4267
- exports["ɵba"] = CatalogArticleTileComponent;
4268
- exports["ɵbb"] = ArticleBaseComponent;
4269
- exports["ɵbc"] = VisibilityObserverModule;
4270
- exports["ɵbd"] = VisibilityObserverMasterDirective;
4271
- exports["ɵbe"] = VisibilityObserverDirective;
4272
- exports["ɵbf"] = CatalogSearchResultTileComponent;
4273
- exports["ɵbg"] = CatalogSearchBaseComponent;
4274
- exports["ɵbh"] = CatalogArticleListComponent;
4275
- exports["ɵbi"] = CatalogSearchResultListComponent;
4276
- exports["ɵbj"] = CatalogSearchComponent;
4277
- exports["ɵbk"] = CatalogExternalSourceComponent;
4054
+ exports["ɵba"] = VisibilityObserverDirective;
4055
+ exports["ɵbb"] = CatalogSearchResultTileComponent;
4056
+ exports["ɵbc"] = CatalogSearchBaseComponent;
4057
+ exports["ɵbd"] = CatalogArticleListComponent;
4058
+ exports["ɵbe"] = CatalogSearchResultListComponent;
4059
+ exports["ɵbf"] = CatalogSearchComponent;
4060
+ exports["ɵbg"] = CatalogExternalSourceComponent;
4278
4061
  exports["ɵc"] = CatalogConnectorService;
4279
4062
  exports["ɵd"] = CatalogConnectorAdapterService;
4280
4063
  exports["ɵe"] = SelectSingleCacheService;
@@ -4293,12 +4076,12 @@
4293
4076
  exports["ɵr"] = CatalogCategoriesComponent;
4294
4077
  exports["ɵs"] = CatalogImageService;
4295
4078
  exports["ɵt"] = CatalogExternalSourcesComponent;
4296
- exports["ɵu"] = OverlayModule;
4297
- exports["ɵv"] = OverlayDirective;
4298
- exports["ɵw"] = OverlayParentDirective;
4299
- exports["ɵx"] = CatalogNavigationComponent;
4300
- exports["ɵy"] = CatalogEventService;
4301
- exports["ɵz"] = CatalogSearchHeaderComponent;
4079
+ exports["ɵu"] = CatalogNavigationComponent;
4080
+ exports["ɵv"] = CatalogSearchHeaderComponent;
4081
+ exports["ɵw"] = CatalogArticleTileComponent;
4082
+ exports["ɵx"] = ArticleBaseComponent;
4083
+ exports["ɵy"] = VisibilityObserverModule;
4084
+ exports["ɵz"] = VisibilityObserverMasterDirective;
4302
4085
 
4303
4086
  Object.defineProperty(exports, '__esModule', { value: true });
4304
4087