@colijnit/catalog 12.1.53 → 12.1.54
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 +108 -60
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/base/catalog-search-base.component.js +10 -1
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +3 -3
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +45 -32
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +6 -2
- package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.component.js +9 -2
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +9 -2
- package/fesm2015/colijnit-catalog.js +179 -141
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/base/catalog-search-base.component.d.ts +3 -0
- package/lib/component/catalog-external-source/catalog-external-source.component.d.ts +2 -2
- package/lib/component/catalog-navigation/catalog-navigation.component.d.ts +3 -0
- package/lib/component/catalog-search/catalog-search.component.d.ts +1 -0
- package/lib/component/catalog-search-result-list/catalog-search-result-list.component.d.ts +1 -0
- package/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter, Component, ViewEncapsulation, Input, Output, HostBinding, ChangeDetectorRef, ViewChild, ElementRef, Pipe, NgModule, Host, Directive, HostListener } from '@angular/core';
|
|
2
|
+
import { Injectable, EventEmitter, Component, ViewEncapsulation, Input, Output, HostBinding, ChangeDetectorRef, ViewChild, ElementRef, Pipe, NgModule, Host, Directive, HostListener, ViewChildren } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import { __awaiter } from 'tslib';
|
|
5
5
|
import { Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
@@ -49,8 +49,8 @@ class Version {
|
|
|
49
49
|
constructor() {
|
|
50
50
|
this.name = "@colijnit/catalog";
|
|
51
51
|
this.description = "iOne Catalog module based on Angular 12";
|
|
52
|
-
this.symVer = "12.1.
|
|
53
|
-
this.publishDate = "
|
|
52
|
+
this.symVer = "12.1.54";
|
|
53
|
+
this.publishDate = "6-12-2023 16:40:16";
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -3131,6 +3131,7 @@ class CatalogNavigationComponent {
|
|
|
3131
3131
|
this.showClass = true;
|
|
3132
3132
|
this.mobileMenuToggle = false;
|
|
3133
3133
|
this.categories = [];
|
|
3134
|
+
this.externalSources = [];
|
|
3134
3135
|
this.turnoverGroups = [];
|
|
3135
3136
|
this.showCollectionOverlay = false;
|
|
3136
3137
|
this.showExternalOverlay = false;
|
|
@@ -3156,6 +3157,7 @@ class CatalogNavigationComponent {
|
|
|
3156
3157
|
}
|
|
3157
3158
|
ngOnInit() {
|
|
3158
3159
|
this.categories.length = 0;
|
|
3160
|
+
this.externalSources.length = 0;
|
|
3159
3161
|
this.turnoverGroups.length = 0;
|
|
3160
3162
|
this._subs.push(this._adapterService.controllerInitialized.subscribe((initialized) => {
|
|
3161
3163
|
if (initialized) {
|
|
@@ -3178,6 +3180,13 @@ class CatalogNavigationComponent {
|
|
|
3178
3180
|
}
|
|
3179
3181
|
});
|
|
3180
3182
|
}
|
|
3183
|
+
getExternalSources() {
|
|
3184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3185
|
+
this._adapterService.getCatalogDefinitions().then((defs) => __awaiter(this, void 0, void 0, function* () {
|
|
3186
|
+
this.externalSources = defs;
|
|
3187
|
+
}));
|
|
3188
|
+
});
|
|
3189
|
+
}
|
|
3181
3190
|
prepareTurnoverGroups() {
|
|
3182
3191
|
if (this.categories && this.categories.length > 0) {
|
|
3183
3192
|
this.categories.forEach((category) => {
|
|
@@ -3260,41 +3269,45 @@ CatalogNavigationComponent.decorators = [
|
|
|
3260
3269
|
<div class="navigation-item-wrapper">
|
|
3261
3270
|
<a class="home-link" (click)="handleHomeClick($event)" [textContent]="homeLabel"></a>
|
|
3262
3271
|
</div>
|
|
3263
|
-
<
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
<div class="navigation-category"
|
|
3277
|
-
|
|
3278
|
-
<div class="navigation-turnovergroup"
|
|
3272
|
+
<ng-container *ngIf="categories && categories.length > 0">
|
|
3273
|
+
<div class="navigation-item-wrapper" [class.active]="mobileMenuToggle" (click)="onToggleMobileMenu()"
|
|
3274
|
+
(mouseover)="handleShowCollectionOverlay()"
|
|
3275
|
+
(mouseleave)="handleHideCollectionOverlay()"
|
|
3276
|
+
overlayParent #collectionParentForOverlay="overlayParent">
|
|
3277
|
+
<co-icon class="hamburger-icon" [iconData]="iconCache.getIcon(icons.Hamburger)"></co-icon>
|
|
3278
|
+
<span [textContent]="collectionLabel"></span>
|
|
3279
|
+
<div class="navigation-overlay-wrapper" *ngIf="showCollectionOverlay" @showHideOverlay
|
|
3280
|
+
[overlay]="collectionParentForOverlay"
|
|
3281
|
+
[inline]="true"
|
|
3282
|
+
[keepInView]="true"
|
|
3283
|
+
[view]="view"
|
|
3284
|
+
[fullSize]="true">
|
|
3285
|
+
<div class="navigation-category-column-wrapper" *ngFor="let category of categories">
|
|
3286
|
+
<div class="navigation-category" [textContent]="category.category" (click)="handleCategoryClick($event, category.category)"></div>
|
|
3287
|
+
<div class="navigation-turnovergroup-wrapper">
|
|
3288
|
+
<div class="navigation-turnovergroup" *ngFor="let turnoverGroup of category.turnoverGroups" [textContent]="turnoverGroup.description" (click)="handleTurnoverGroupClick($event, turnoverGroup.turnovergroupNr)"></div>
|
|
3289
|
+
</div>
|
|
3279
3290
|
</div>
|
|
3280
3291
|
</div>
|
|
3281
3292
|
</div>
|
|
3282
|
-
</
|
|
3283
|
-
<
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3293
|
+
</ng-container>
|
|
3294
|
+
<ng-container *ngIf="externalSources && externalSources.length > 0">
|
|
3295
|
+
<div class="navigation-item-wrapper" [class.active]="mobileMenuToggle" (click)="onToggleMobileMenu()"
|
|
3296
|
+
(mouseover)="handleShowExternalOverlay()"
|
|
3297
|
+
(mouseleave)="handleHideExternalOverlay()"
|
|
3298
|
+
overlayParent #externalParentForOverlay="overlayParent">
|
|
3299
|
+
<co-icon class="hamburger-icon" [iconData]="iconCache.getIcon(icons.Ar)"></co-icon>
|
|
3300
|
+
<span [textContent]="externalSourcesLabel"></span>
|
|
3301
|
+
<div class="navigation-overlay-wrapper" *ngIf="showExternalOverlay" @showHideOverlay
|
|
3302
|
+
[overlay]="externalParentForOverlay"
|
|
3303
|
+
[inline]="true"
|
|
3304
|
+
[keepInView]="true"
|
|
3305
|
+
[view]="view"
|
|
3306
|
+
[fullSize]="true">
|
|
3307
|
+
<co-catalog-external-sources (externalSourceClick)="handleExternalSourceClick($event)"></co-catalog-external-sources>
|
|
3308
|
+
</div>
|
|
3296
3309
|
</div>
|
|
3297
|
-
</
|
|
3310
|
+
</ng-container>
|
|
3298
3311
|
</div>
|
|
3299
3312
|
`,
|
|
3300
3313
|
providers: [
|
|
@@ -3539,7 +3552,7 @@ class CatalogSearchComponent {
|
|
|
3539
3552
|
ngOnInit() {
|
|
3540
3553
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3541
3554
|
yield this._settingsService.initializeSettings();
|
|
3542
|
-
this._catalogService.init(this._settings);
|
|
3555
|
+
this._catalogService.init(this._settings, true);
|
|
3543
3556
|
this._subs.push(this._catalogEventService.addArticleButtonClick.subscribe((article) => {
|
|
3544
3557
|
this.onAddArticleButtonClick.emit(article);
|
|
3545
3558
|
}), this._catalogEventService.arButtonClick.subscribe((article) => {
|
|
@@ -3556,6 +3569,9 @@ class CatalogSearchComponent {
|
|
|
3556
3569
|
ngOnDestroy() {
|
|
3557
3570
|
this._subs.forEach(s => s.unsubscribe());
|
|
3558
3571
|
}
|
|
3572
|
+
handleHomeClick($event) {
|
|
3573
|
+
this._catalogSearchService.resetFilters();
|
|
3574
|
+
}
|
|
3559
3575
|
handleCategoryClick(category) {
|
|
3560
3576
|
this._catalogSearchService.category = category;
|
|
3561
3577
|
}
|
|
@@ -3612,6 +3628,7 @@ CatalogSearchComponent.decorators = [
|
|
|
3612
3628
|
</ng-container>
|
|
3613
3629
|
<co-catalog-navigation *ngIf="showNavigation"
|
|
3614
3630
|
[view]="contentView"
|
|
3631
|
+
(homeClick)="handleHomeClick($event)"
|
|
3615
3632
|
(categoryClick)="handleCategoryClick($event)"
|
|
3616
3633
|
(turnoverGroupClick)="handleTurnoverGroupClick($event)"
|
|
3617
3634
|
(externalSourceClick)="onExternalSourceClick.emit($event)"
|
|
@@ -3756,16 +3773,25 @@ class CatalogSearchBaseComponent {
|
|
|
3756
3773
|
constructor(catalogSearchService) {
|
|
3757
3774
|
this.catalogSearchService = catalogSearchService;
|
|
3758
3775
|
this.createFrozenArticle = true;
|
|
3776
|
+
this.elements = [];
|
|
3759
3777
|
}
|
|
3760
3778
|
onPreviousClick() {
|
|
3779
|
+
this._scrollIntoView();
|
|
3761
3780
|
this.catalogSearchService.currentPage -= 1;
|
|
3762
3781
|
}
|
|
3763
3782
|
onNextClick() {
|
|
3783
|
+
this._scrollIntoView();
|
|
3764
3784
|
this.catalogSearchService.currentPage += 1;
|
|
3765
3785
|
}
|
|
3766
3786
|
onPageClick(pageNr) {
|
|
3787
|
+
this._scrollIntoView();
|
|
3767
3788
|
this.catalogSearchService.currentPage = pageNr;
|
|
3768
3789
|
}
|
|
3790
|
+
_scrollIntoView() {
|
|
3791
|
+
if (this.elements && this.elements.length > 0) {
|
|
3792
|
+
this.elements[0].nativeElement.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' });
|
|
3793
|
+
}
|
|
3794
|
+
}
|
|
3769
3795
|
}
|
|
3770
3796
|
CatalogSearchBaseComponent.decorators = [
|
|
3771
3797
|
{ type: Directive }
|
|
@@ -3777,69 +3803,6 @@ CatalogSearchBaseComponent.propDecorators = {
|
|
|
3777
3803
|
createFrozenArticle: [{ type: Input }]
|
|
3778
3804
|
};
|
|
3779
3805
|
|
|
3780
|
-
class CatalogSearchResultTileComponent extends CatalogSearchBaseComponent {
|
|
3781
|
-
constructor() {
|
|
3782
|
-
super(...arguments);
|
|
3783
|
-
this.createFrozenArticle = true;
|
|
3784
|
-
this.onLookAtArticleButtonClick = new EventEmitter();
|
|
3785
|
-
this.onArButtonClick = new EventEmitter();
|
|
3786
|
-
this.onAddArticleButtonClick = new EventEmitter();
|
|
3787
|
-
this.onArticleClick = new EventEmitter();
|
|
3788
|
-
this.onStockDetailsClick = new EventEmitter();
|
|
3789
|
-
this.showClass = true;
|
|
3790
|
-
this.smallScrollbar = true;
|
|
3791
|
-
}
|
|
3792
|
-
}
|
|
3793
|
-
CatalogSearchResultTileComponent.decorators = [
|
|
3794
|
-
{ type: Component, args: [{
|
|
3795
|
-
selector: 'co-catalog-search-result-tile',
|
|
3796
|
-
template: `
|
|
3797
|
-
<div class="article-cards" visibilityObserverMaster>
|
|
3798
|
-
<ng-container *ngFor="let article of catalogSearchService.articles">
|
|
3799
|
-
<co-catalog-article-tile
|
|
3800
|
-
visibilityObserver
|
|
3801
|
-
#intersection="intersection"
|
|
3802
|
-
[observerEnabled]="!article.imageData"
|
|
3803
|
-
[createFrozenArticle]="createFrozenArticle"
|
|
3804
|
-
[showing]="intersection.isIntersecting"
|
|
3805
|
-
[article]="article"
|
|
3806
|
-
(onArticleClick)="onArticleClick.emit($event)"
|
|
3807
|
-
(onAddArticleButtonClick)="onAddArticleButtonClick.emit($event)"
|
|
3808
|
-
(onArButtonClick)="onArButtonClick.emit($event)"
|
|
3809
|
-
(onLookAtArticleButtonClick)="onLookAtArticleButtonClick.emit($event)"
|
|
3810
|
-
(onStockDetailsClick)="onStockDetailsClick.emit($event)"
|
|
3811
|
-
>
|
|
3812
|
-
</co-catalog-article-tile>
|
|
3813
|
-
</ng-container>
|
|
3814
|
-
</div>
|
|
3815
|
-
<co-pagination-bar *ngIf="catalogSearchService.articles?.length > 0"
|
|
3816
|
-
[currentPage]="catalogSearchService.currentPage"
|
|
3817
|
-
[itemsPerPage]="catalogSearchService.articlesPerPage"
|
|
3818
|
-
[totalItems]="catalogSearchService.resultCount"
|
|
3819
|
-
[previousLabel]="'PREVIOUS' | localize"
|
|
3820
|
-
[nextLabel]="'NEXT' | localize"
|
|
3821
|
-
[autoHide]="true"
|
|
3822
|
-
[directionLinks]="true"
|
|
3823
|
-
[paginationRange]="8"
|
|
3824
|
-
(previousClick)="onPreviousClick()"
|
|
3825
|
-
(nextClick)="onNextClick()"
|
|
3826
|
-
(pageClick)="onPageClick($event)">
|
|
3827
|
-
</co-pagination-bar>
|
|
3828
|
-
`,
|
|
3829
|
-
encapsulation: ViewEncapsulation.None
|
|
3830
|
-
},] }
|
|
3831
|
-
];
|
|
3832
|
-
CatalogSearchResultTileComponent.propDecorators = {
|
|
3833
|
-
createFrozenArticle: [{ type: Input }],
|
|
3834
|
-
onLookAtArticleButtonClick: [{ type: Output }],
|
|
3835
|
-
onArButtonClick: [{ type: Output }],
|
|
3836
|
-
onAddArticleButtonClick: [{ type: Output }],
|
|
3837
|
-
onArticleClick: [{ type: Output }],
|
|
3838
|
-
onStockDetailsClick: [{ type: Output }],
|
|
3839
|
-
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-result-tile',] }],
|
|
3840
|
-
smallScrollbar: [{ type: HostBinding, args: ['class.co-small-scrollbar',] }]
|
|
3841
|
-
};
|
|
3842
|
-
|
|
3843
3806
|
class ArticleBaseComponent {
|
|
3844
3807
|
constructor(iconCache, catalogService, options, _iOne, _changeDetector, _appEventService, _imageService, _settingsService) {
|
|
3845
3808
|
this.iconCache = iconCache;
|
|
@@ -4084,6 +4047,75 @@ CatalogArticleTileComponent.propDecorators = {
|
|
|
4084
4047
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-article-tile',] }]
|
|
4085
4048
|
};
|
|
4086
4049
|
|
|
4050
|
+
class CatalogSearchResultTileComponent extends CatalogSearchBaseComponent {
|
|
4051
|
+
constructor() {
|
|
4052
|
+
super(...arguments);
|
|
4053
|
+
this.createFrozenArticle = true;
|
|
4054
|
+
this.onLookAtArticleButtonClick = new EventEmitter();
|
|
4055
|
+
this.onArButtonClick = new EventEmitter();
|
|
4056
|
+
this.onAddArticleButtonClick = new EventEmitter();
|
|
4057
|
+
this.onArticleClick = new EventEmitter();
|
|
4058
|
+
this.onStockDetailsClick = new EventEmitter();
|
|
4059
|
+
this.showClass = true;
|
|
4060
|
+
this.smallScrollbar = true;
|
|
4061
|
+
}
|
|
4062
|
+
set viewChildren(children) {
|
|
4063
|
+
if (children) {
|
|
4064
|
+
this.elements = children.toArray();
|
|
4065
|
+
}
|
|
4066
|
+
}
|
|
4067
|
+
}
|
|
4068
|
+
CatalogSearchResultTileComponent.decorators = [
|
|
4069
|
+
{ type: Component, args: [{
|
|
4070
|
+
selector: 'co-catalog-search-result-tile',
|
|
4071
|
+
template: `
|
|
4072
|
+
<div class="article-cards" visibilityObserverMaster>
|
|
4073
|
+
<ng-container *ngFor="let article of catalogSearchService.articles">
|
|
4074
|
+
<co-catalog-article-tile
|
|
4075
|
+
visibilityObserver
|
|
4076
|
+
#intersection="intersection"
|
|
4077
|
+
[observerEnabled]="!article.imageData"
|
|
4078
|
+
[createFrozenArticle]="createFrozenArticle"
|
|
4079
|
+
[showing]="intersection.isIntersecting"
|
|
4080
|
+
[article]="article"
|
|
4081
|
+
(onArticleClick)="onArticleClick.emit($event)"
|
|
4082
|
+
(onAddArticleButtonClick)="onAddArticleButtonClick.emit($event)"
|
|
4083
|
+
(onArButtonClick)="onArButtonClick.emit($event)"
|
|
4084
|
+
(onLookAtArticleButtonClick)="onLookAtArticleButtonClick.emit($event)"
|
|
4085
|
+
(onStockDetailsClick)="onStockDetailsClick.emit($event)"
|
|
4086
|
+
>
|
|
4087
|
+
</co-catalog-article-tile>
|
|
4088
|
+
</ng-container>
|
|
4089
|
+
</div>
|
|
4090
|
+
<co-pagination-bar *ngIf="catalogSearchService.articles?.length > 0"
|
|
4091
|
+
[currentPage]="catalogSearchService.currentPage"
|
|
4092
|
+
[itemsPerPage]="catalogSearchService.articlesPerPage"
|
|
4093
|
+
[totalItems]="catalogSearchService.resultCount"
|
|
4094
|
+
[previousLabel]="'PREVIOUS' | localize"
|
|
4095
|
+
[nextLabel]="'NEXT' | localize"
|
|
4096
|
+
[autoHide]="true"
|
|
4097
|
+
[directionLinks]="true"
|
|
4098
|
+
[paginationRange]="8"
|
|
4099
|
+
(previousClick)="onPreviousClick()"
|
|
4100
|
+
(nextClick)="onNextClick()"
|
|
4101
|
+
(pageClick)="onPageClick($event)">
|
|
4102
|
+
</co-pagination-bar>
|
|
4103
|
+
`,
|
|
4104
|
+
encapsulation: ViewEncapsulation.None
|
|
4105
|
+
},] }
|
|
4106
|
+
];
|
|
4107
|
+
CatalogSearchResultTileComponent.propDecorators = {
|
|
4108
|
+
viewChildren: [{ type: ViewChildren, args: [CatalogArticleTileComponent, { read: ElementRef },] }],
|
|
4109
|
+
createFrozenArticle: [{ type: Input }],
|
|
4110
|
+
onLookAtArticleButtonClick: [{ type: Output }],
|
|
4111
|
+
onArButtonClick: [{ type: Output }],
|
|
4112
|
+
onAddArticleButtonClick: [{ type: Output }],
|
|
4113
|
+
onArticleClick: [{ type: Output }],
|
|
4114
|
+
onStockDetailsClick: [{ type: Output }],
|
|
4115
|
+
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-result-tile',] }],
|
|
4116
|
+
smallScrollbar: [{ type: HostBinding, args: ['class.co-small-scrollbar',] }]
|
|
4117
|
+
};
|
|
4118
|
+
|
|
4087
4119
|
class CatalogArticleTileModule {
|
|
4088
4120
|
}
|
|
4089
4121
|
CatalogArticleTileModule.decorators = [
|
|
@@ -4243,49 +4275,6 @@ CatalogSearchResultTileModule.decorators = [
|
|
|
4243
4275
|
},] }
|
|
4244
4276
|
];
|
|
4245
4277
|
|
|
4246
|
-
class CatalogSearchResultListComponent extends CatalogSearchBaseComponent {
|
|
4247
|
-
showClass() {
|
|
4248
|
-
return true;
|
|
4249
|
-
}
|
|
4250
|
-
}
|
|
4251
|
-
CatalogSearchResultListComponent.decorators = [
|
|
4252
|
-
{ type: Component, args: [{
|
|
4253
|
-
selector: 'co-catalog-search-result-list',
|
|
4254
|
-
template: `
|
|
4255
|
-
<div class="article-cards" visibilityObserverMaster>
|
|
4256
|
-
<ng-container *ngFor="let article of catalogSearchService.articles">
|
|
4257
|
-
<co-catalog-article-list
|
|
4258
|
-
visibilityObserver
|
|
4259
|
-
#intersection="intersection"
|
|
4260
|
-
[observerEnabled]="!article.imageData"
|
|
4261
|
-
[createFrozenArticle]="createFrozenArticle"
|
|
4262
|
-
[showing]="intersection.isIntersecting"
|
|
4263
|
-
[article]="article"
|
|
4264
|
-
>
|
|
4265
|
-
</co-catalog-article-list>
|
|
4266
|
-
</ng-container>
|
|
4267
|
-
</div>
|
|
4268
|
-
<co-pagination-bar *ngIf="catalogSearchService.articles?.length > 0"
|
|
4269
|
-
[currentPage]="catalogSearchService.currentPage"
|
|
4270
|
-
[itemsPerPage]="catalogSearchService.articlesPerPage"
|
|
4271
|
-
[totalItems]="catalogSearchService.resultCount"
|
|
4272
|
-
[previousLabel]="'PREVIOUS' | localize"
|
|
4273
|
-
[nextLabel]="'NEXT' | localize"
|
|
4274
|
-
[autoHide]="true"
|
|
4275
|
-
[directionLinks]="true"
|
|
4276
|
-
[paginationRange]="8"
|
|
4277
|
-
(previousClick)="onPreviousClick()"
|
|
4278
|
-
(nextClick)="onNextClick()"
|
|
4279
|
-
(pageClick)="onPageClick($event)">
|
|
4280
|
-
</co-pagination-bar>
|
|
4281
|
-
`,
|
|
4282
|
-
encapsulation: ViewEncapsulation.None
|
|
4283
|
-
},] }
|
|
4284
|
-
];
|
|
4285
|
-
CatalogSearchResultListComponent.propDecorators = {
|
|
4286
|
-
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-result-list',] }]
|
|
4287
|
-
};
|
|
4288
|
-
|
|
4289
4278
|
class CatalogArticleListComponent extends ArticleBaseComponent {
|
|
4290
4279
|
showClass() {
|
|
4291
4280
|
return true;
|
|
@@ -4370,6 +4359,55 @@ CatalogArticleListComponent.propDecorators = {
|
|
|
4370
4359
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-article-list',] }]
|
|
4371
4360
|
};
|
|
4372
4361
|
|
|
4362
|
+
class CatalogSearchResultListComponent extends CatalogSearchBaseComponent {
|
|
4363
|
+
set viewChildren(children) {
|
|
4364
|
+
if (children) {
|
|
4365
|
+
this.elements = children.toArray();
|
|
4366
|
+
}
|
|
4367
|
+
}
|
|
4368
|
+
showClass() {
|
|
4369
|
+
return true;
|
|
4370
|
+
}
|
|
4371
|
+
}
|
|
4372
|
+
CatalogSearchResultListComponent.decorators = [
|
|
4373
|
+
{ type: Component, args: [{
|
|
4374
|
+
selector: 'co-catalog-search-result-list',
|
|
4375
|
+
template: `
|
|
4376
|
+
<div class="article-cards" visibilityObserverMaster>
|
|
4377
|
+
<ng-container *ngFor="let article of catalogSearchService.articles">
|
|
4378
|
+
<co-catalog-article-list
|
|
4379
|
+
visibilityObserver
|
|
4380
|
+
#intersection="intersection"
|
|
4381
|
+
[observerEnabled]="!article.imageData"
|
|
4382
|
+
[createFrozenArticle]="createFrozenArticle"
|
|
4383
|
+
[showing]="intersection.isIntersecting"
|
|
4384
|
+
[article]="article"
|
|
4385
|
+
>
|
|
4386
|
+
</co-catalog-article-list>
|
|
4387
|
+
</ng-container>
|
|
4388
|
+
</div>
|
|
4389
|
+
<co-pagination-bar *ngIf="catalogSearchService.articles?.length > 0"
|
|
4390
|
+
[currentPage]="catalogSearchService.currentPage"
|
|
4391
|
+
[itemsPerPage]="catalogSearchService.articlesPerPage"
|
|
4392
|
+
[totalItems]="catalogSearchService.resultCount"
|
|
4393
|
+
[previousLabel]="'PREVIOUS' | localize"
|
|
4394
|
+
[nextLabel]="'NEXT' | localize"
|
|
4395
|
+
[autoHide]="true"
|
|
4396
|
+
[directionLinks]="true"
|
|
4397
|
+
[paginationRange]="8"
|
|
4398
|
+
(previousClick)="onPreviousClick()"
|
|
4399
|
+
(nextClick)="onNextClick()"
|
|
4400
|
+
(pageClick)="onPageClick($event)">
|
|
4401
|
+
</co-pagination-bar>
|
|
4402
|
+
`,
|
|
4403
|
+
encapsulation: ViewEncapsulation.None
|
|
4404
|
+
},] }
|
|
4405
|
+
];
|
|
4406
|
+
CatalogSearchResultListComponent.propDecorators = {
|
|
4407
|
+
viewChildren: [{ type: ViewChildren, args: [CatalogArticleListComponent, { read: ElementRef },] }],
|
|
4408
|
+
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-result-list',] }]
|
|
4409
|
+
};
|
|
4410
|
+
|
|
4373
4411
|
class CatalogArticleListModule {
|
|
4374
4412
|
}
|
|
4375
4413
|
CatalogArticleListModule.decorators = [
|