@colijnit/catalog 12.1.53 → 12.1.55
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 +109 -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 +46 -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 +180 -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
package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation } from '@angular/core';
|
|
1
|
+
import { Component, ElementRef, EventEmitter, HostBinding, Input, Output, ViewChildren, ViewEncapsulation } from '@angular/core';
|
|
2
2
|
import { CatalogSearchBaseComponent } from '../base/catalog-search-base.component';
|
|
3
|
+
import { CatalogArticleTileComponent } from '../catalog-article-tile/catalog-article-tile.component';
|
|
3
4
|
export class CatalogSearchResultTileComponent extends CatalogSearchBaseComponent {
|
|
4
5
|
constructor() {
|
|
5
6
|
super(...arguments);
|
|
@@ -12,6 +13,11 @@ export class CatalogSearchResultTileComponent extends CatalogSearchBaseComponent
|
|
|
12
13
|
this.showClass = true;
|
|
13
14
|
this.smallScrollbar = true;
|
|
14
15
|
}
|
|
16
|
+
set viewChildren(children) {
|
|
17
|
+
if (children) {
|
|
18
|
+
this.elements = children.toArray();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
15
21
|
}
|
|
16
22
|
CatalogSearchResultTileComponent.decorators = [
|
|
17
23
|
{ type: Component, args: [{
|
|
@@ -53,6 +59,7 @@ CatalogSearchResultTileComponent.decorators = [
|
|
|
53
59
|
},] }
|
|
54
60
|
];
|
|
55
61
|
CatalogSearchResultTileComponent.propDecorators = {
|
|
62
|
+
viewChildren: [{ type: ViewChildren, args: [CatalogArticleTileComponent, { read: ElementRef },] }],
|
|
56
63
|
createFrozenArticle: [{ type: Input }],
|
|
57
64
|
onLookAtArticleButtonClick: [{ type: Output }],
|
|
58
65
|
onArButtonClick: [{ type: Output }],
|
|
@@ -62,4 +69,4 @@ CatalogSearchResultTileComponent.propDecorators = {
|
|
|
62
69
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-result-tile',] }],
|
|
63
70
|
smallScrollbar: [{ type: HostBinding, args: ['class.co-small-scrollbar',] }]
|
|
64
71
|
};
|
|
65
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
72
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0YWxvZy1zZWFyY2gtcmVzdWx0LXRpbGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2F0YWxvZy9zcmMvbGliL2NvbXBvbmVudC9jYXRhbG9nLXNlYXJjaC1yZXN1bHQtdGlsZS9jYXRhbG9nLXNlYXJjaC1yZXN1bHQtdGlsZS5jb21wb25lbnQudHMiXSwibm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wibGV0IGFydGljbGUgb2YgY2F0YWxvZ1NlYXJjaFNlcnZpY2UuYXJ0aWNsZXNcIj5cclxuICAgICAgICAgICAgICAgIDxjby1jYXRhbG9nLWFydGljbGUtdGlsZVxyXG4gICAgICAgICAgICAgICAgICAgICAgICB2aXNpYmlsaXR5T2JzZXJ2ZXJcclxuICAgICAgICAgICAgICAgICAgICAgICAgI2ludGVyc2VjdGlvbj1cImludGVyc2VjdGlvblwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtvYnNlcnZlckVuYWJsZWRdPVwiIWFydGljbGUuaW1hZ2VEYXRhXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgW2NyZWF0ZUZyb3plbkFydGljbGVdPVwiY3JlYXRlRnJvemVuQXJ0aWNsZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtzaG93aW5nXT1cImludGVyc2VjdGlvbi5pc0ludGVyc2VjdGluZ1wiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIFthcnRpY2xlXT1cImFydGljbGVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAob25BcnRpY2xlQ2xpY2spPVwib25BcnRpY2xlQ2xpY2suZW1pdCgkZXZlbnQpXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgKG9uQWRkQXJ0aWNsZUJ1dHRvbkNsaWNrKT1cIm9uQWRkQXJ0aWNsZUJ1dHRvbkNsaWNrLmVtaXQoJGV2ZW50KVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIChvbkFyQnV0dG9uQ2xpY2spPVwib25BckJ1dHRvbkNsaWNrLmVtaXQoJGV2ZW50KVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIChvbkxvb2tBdEFydGljbGVCdXR0b25DbGljayk9XCJvbkxvb2tBdEFydGljbGVCdXR0b25DbGljay5lbWl0KCRldmVudClcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAob25TdG9ja0RldGFpbHNDbGljayk9XCJvblN0b2NrRGV0YWlsc0NsaWNrLmVtaXQoJGV2ZW50KVwiXHJcbiAgICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICA8L2NvLWNhdGFsb2ctYXJ0aWNsZS10aWxlPlxyXG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuICAgICAgICA8L2Rpdj5cclxuICAgICAgICA8Y28tcGFnaW5hdGlvbi1iYXIgKm5nSWY9XCJjYXRhbG9nU2VhcmNoU2VydmljZS5hcnRpY2xlcz8ubGVuZ3RoID4gMFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtjdXJyZW50UGFnZV09XCJjYXRhbG9nU2VhcmNoU2VydmljZS5jdXJyZW50UGFnZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtpdGVtc1BlclBhZ2VdPVwiY2F0YWxvZ1NlYXJjaFNlcnZpY2UuYXJ0aWNsZXNQZXJQYWdlXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgW3RvdGFsSXRlbXNdPVwiY2F0YWxvZ1NlYXJjaFNlcnZpY2UucmVzdWx0Q291bnRcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbcHJldmlvdXNMYWJlbF09XCInUFJFVklPVVMnIHwgbG9jYWxpemVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbbmV4dExhYmVsXT1cIidORVhUJyB8IGxvY2FsaXplXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgW2F1dG9IaWRlXT1cInRydWVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbZGlyZWN0aW9uTGlua3NdPVwidHJ1ZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtwYWdpbmF0aW9uUmFuZ2VdPVwiOFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIChwcmV2aW91c0NsaWNrKT1cIm9uUHJldmlvdXNDbGljaygpXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgKG5leHRDbG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pYyBvbkFkZEFydGljbGVCdXR0b25DbGljazogRXZlbnRFbWl0dGVyPHN0cmluZyB8IEFydGljbGVFeHRlbmRlZD4gPSBuZXcgRXZlbnRFbWl0dGVyPHN0cmluZyB8IEFydGljbGVFeHRlbmRlZD4oKTtcclxuXHJcbiAgICBAT3V0cHV0KClcclxuICAgIHB1YmxpYyBvbkFydGljbGVDbGljazogRXZlbnRFbWl0dGVyPEFydGljbGVFeHRlbmRlZD4gPSBuZXcgRXZlbnRFbWl0dGVyPEFydGljbGVFeHRlbmRlZD4oKTtcclxuXHJcbiAgICBAT3V0cHV0KClcclxuICAgIHB1YmxpYyBvblN0b2NrRGV0YWlsc0NsaWNrOiBFdmVudEVtaXR0ZXI8QXJ0aWNsZUV4dGVuZGVkPiA9IG5ldyBFdmVudEVtaXR0ZXI8QXJ0aWNsZUV4dGVuZGVkPigpO1xyXG5cclxuICAgIEBIb3N0QmluZGluZygnY2xhc3MuY28tY2F0YWxvZy1zZWFyY2gtcmVzdWx0LXRpbGUnKVxyXG4gICAgcHVibGljIHNob3dDbGFzczogYm9vbGVhbiA9IHRydWU7XHJcblxyXG4gICAgQEhvc3RCaW5kaW5nKCdjbGFzcy5jby1zbWFsbC1zY3JvbGxiYXInKVxyXG4gICAgcHVibGljIHNtYWxsU2Nyb2xsYmFyOiBib29sZWFuID0gdHJ1ZTtcclxuXHJcbn1cclxuIl19
|
|
@@ -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.55";
|
|
53
|
+
this.publishDate = "15-12-2023 12:08:44";
|
|
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,10 +3157,12 @@ 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) {
|
|
3162
3164
|
this.getCategories();
|
|
3165
|
+
this.getExternalSources();
|
|
3163
3166
|
}
|
|
3164
3167
|
}));
|
|
3165
3168
|
}
|
|
@@ -3178,6 +3181,13 @@ class CatalogNavigationComponent {
|
|
|
3178
3181
|
}
|
|
3179
3182
|
});
|
|
3180
3183
|
}
|
|
3184
|
+
getExternalSources() {
|
|
3185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3186
|
+
this._adapterService.getCatalogDefinitions().then((defs) => __awaiter(this, void 0, void 0, function* () {
|
|
3187
|
+
this.externalSources = defs;
|
|
3188
|
+
}));
|
|
3189
|
+
});
|
|
3190
|
+
}
|
|
3181
3191
|
prepareTurnoverGroups() {
|
|
3182
3192
|
if (this.categories && this.categories.length > 0) {
|
|
3183
3193
|
this.categories.forEach((category) => {
|
|
@@ -3260,41 +3270,45 @@ CatalogNavigationComponent.decorators = [
|
|
|
3260
3270
|
<div class="navigation-item-wrapper">
|
|
3261
3271
|
<a class="home-link" (click)="handleHomeClick($event)" [textContent]="homeLabel"></a>
|
|
3262
3272
|
</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"
|
|
3273
|
+
<ng-container *ngIf="categories && categories.length > 0">
|
|
3274
|
+
<div class="navigation-item-wrapper" [class.active]="mobileMenuToggle" (click)="onToggleMobileMenu()"
|
|
3275
|
+
(mouseover)="handleShowCollectionOverlay()"
|
|
3276
|
+
(mouseleave)="handleHideCollectionOverlay()"
|
|
3277
|
+
overlayParent #collectionParentForOverlay="overlayParent">
|
|
3278
|
+
<co-icon class="hamburger-icon" [iconData]="iconCache.getIcon(icons.Hamburger)"></co-icon>
|
|
3279
|
+
<span [textContent]="collectionLabel"></span>
|
|
3280
|
+
<div class="navigation-overlay-wrapper" *ngIf="showCollectionOverlay" @showHideOverlay
|
|
3281
|
+
[overlay]="collectionParentForOverlay"
|
|
3282
|
+
[inline]="true"
|
|
3283
|
+
[keepInView]="true"
|
|
3284
|
+
[view]="view"
|
|
3285
|
+
[fullSize]="true">
|
|
3286
|
+
<div class="navigation-category-column-wrapper" *ngFor="let category of categories">
|
|
3287
|
+
<div class="navigation-category" [textContent]="category.category" (click)="handleCategoryClick($event, category.category)"></div>
|
|
3288
|
+
<div class="navigation-turnovergroup-wrapper">
|
|
3289
|
+
<div class="navigation-turnovergroup" *ngFor="let turnoverGroup of category.turnoverGroups" [textContent]="turnoverGroup.description" (click)="handleTurnoverGroupClick($event, turnoverGroup.turnovergroupNr)"></div>
|
|
3290
|
+
</div>
|
|
3279
3291
|
</div>
|
|
3280
3292
|
</div>
|
|
3281
3293
|
</div>
|
|
3282
|
-
</
|
|
3283
|
-
<
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3294
|
+
</ng-container>
|
|
3295
|
+
<ng-container *ngIf="externalSources && externalSources.length > 0">
|
|
3296
|
+
<div class="navigation-item-wrapper" [class.active]="mobileMenuToggle" (click)="onToggleMobileMenu()"
|
|
3297
|
+
(mouseover)="handleShowExternalOverlay()"
|
|
3298
|
+
(mouseleave)="handleHideExternalOverlay()"
|
|
3299
|
+
overlayParent #externalParentForOverlay="overlayParent">
|
|
3300
|
+
<co-icon class="hamburger-icon" [iconData]="iconCache.getIcon(icons.Ar)"></co-icon>
|
|
3301
|
+
<span [textContent]="externalSourcesLabel"></span>
|
|
3302
|
+
<div class="navigation-overlay-wrapper" *ngIf="showExternalOverlay" @showHideOverlay
|
|
3303
|
+
[overlay]="externalParentForOverlay"
|
|
3304
|
+
[inline]="true"
|
|
3305
|
+
[keepInView]="true"
|
|
3306
|
+
[view]="view"
|
|
3307
|
+
[fullSize]="true">
|
|
3308
|
+
<co-catalog-external-sources (externalSourceClick)="handleExternalSourceClick($event)"></co-catalog-external-sources>
|
|
3309
|
+
</div>
|
|
3296
3310
|
</div>
|
|
3297
|
-
</
|
|
3311
|
+
</ng-container>
|
|
3298
3312
|
</div>
|
|
3299
3313
|
`,
|
|
3300
3314
|
providers: [
|
|
@@ -3539,7 +3553,7 @@ class CatalogSearchComponent {
|
|
|
3539
3553
|
ngOnInit() {
|
|
3540
3554
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3541
3555
|
yield this._settingsService.initializeSettings();
|
|
3542
|
-
this._catalogService.init(this._settings);
|
|
3556
|
+
this._catalogService.init(this._settings, true);
|
|
3543
3557
|
this._subs.push(this._catalogEventService.addArticleButtonClick.subscribe((article) => {
|
|
3544
3558
|
this.onAddArticleButtonClick.emit(article);
|
|
3545
3559
|
}), this._catalogEventService.arButtonClick.subscribe((article) => {
|
|
@@ -3556,6 +3570,9 @@ class CatalogSearchComponent {
|
|
|
3556
3570
|
ngOnDestroy() {
|
|
3557
3571
|
this._subs.forEach(s => s.unsubscribe());
|
|
3558
3572
|
}
|
|
3573
|
+
handleHomeClick($event) {
|
|
3574
|
+
this._catalogSearchService.resetFilters();
|
|
3575
|
+
}
|
|
3559
3576
|
handleCategoryClick(category) {
|
|
3560
3577
|
this._catalogSearchService.category = category;
|
|
3561
3578
|
}
|
|
@@ -3612,6 +3629,7 @@ CatalogSearchComponent.decorators = [
|
|
|
3612
3629
|
</ng-container>
|
|
3613
3630
|
<co-catalog-navigation *ngIf="showNavigation"
|
|
3614
3631
|
[view]="contentView"
|
|
3632
|
+
(homeClick)="handleHomeClick($event)"
|
|
3615
3633
|
(categoryClick)="handleCategoryClick($event)"
|
|
3616
3634
|
(turnoverGroupClick)="handleTurnoverGroupClick($event)"
|
|
3617
3635
|
(externalSourceClick)="onExternalSourceClick.emit($event)"
|
|
@@ -3756,16 +3774,25 @@ class CatalogSearchBaseComponent {
|
|
|
3756
3774
|
constructor(catalogSearchService) {
|
|
3757
3775
|
this.catalogSearchService = catalogSearchService;
|
|
3758
3776
|
this.createFrozenArticle = true;
|
|
3777
|
+
this.elements = [];
|
|
3759
3778
|
}
|
|
3760
3779
|
onPreviousClick() {
|
|
3780
|
+
this._scrollIntoView();
|
|
3761
3781
|
this.catalogSearchService.currentPage -= 1;
|
|
3762
3782
|
}
|
|
3763
3783
|
onNextClick() {
|
|
3784
|
+
this._scrollIntoView();
|
|
3764
3785
|
this.catalogSearchService.currentPage += 1;
|
|
3765
3786
|
}
|
|
3766
3787
|
onPageClick(pageNr) {
|
|
3788
|
+
this._scrollIntoView();
|
|
3767
3789
|
this.catalogSearchService.currentPage = pageNr;
|
|
3768
3790
|
}
|
|
3791
|
+
_scrollIntoView() {
|
|
3792
|
+
if (this.elements && this.elements.length > 0) {
|
|
3793
|
+
this.elements[0].nativeElement.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' });
|
|
3794
|
+
}
|
|
3795
|
+
}
|
|
3769
3796
|
}
|
|
3770
3797
|
CatalogSearchBaseComponent.decorators = [
|
|
3771
3798
|
{ type: Directive }
|
|
@@ -3777,69 +3804,6 @@ CatalogSearchBaseComponent.propDecorators = {
|
|
|
3777
3804
|
createFrozenArticle: [{ type: Input }]
|
|
3778
3805
|
};
|
|
3779
3806
|
|
|
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
3807
|
class ArticleBaseComponent {
|
|
3844
3808
|
constructor(iconCache, catalogService, options, _iOne, _changeDetector, _appEventService, _imageService, _settingsService) {
|
|
3845
3809
|
this.iconCache = iconCache;
|
|
@@ -4084,6 +4048,75 @@ CatalogArticleTileComponent.propDecorators = {
|
|
|
4084
4048
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-article-tile',] }]
|
|
4085
4049
|
};
|
|
4086
4050
|
|
|
4051
|
+
class CatalogSearchResultTileComponent extends CatalogSearchBaseComponent {
|
|
4052
|
+
constructor() {
|
|
4053
|
+
super(...arguments);
|
|
4054
|
+
this.createFrozenArticle = true;
|
|
4055
|
+
this.onLookAtArticleButtonClick = new EventEmitter();
|
|
4056
|
+
this.onArButtonClick = new EventEmitter();
|
|
4057
|
+
this.onAddArticleButtonClick = new EventEmitter();
|
|
4058
|
+
this.onArticleClick = new EventEmitter();
|
|
4059
|
+
this.onStockDetailsClick = new EventEmitter();
|
|
4060
|
+
this.showClass = true;
|
|
4061
|
+
this.smallScrollbar = true;
|
|
4062
|
+
}
|
|
4063
|
+
set viewChildren(children) {
|
|
4064
|
+
if (children) {
|
|
4065
|
+
this.elements = children.toArray();
|
|
4066
|
+
}
|
|
4067
|
+
}
|
|
4068
|
+
}
|
|
4069
|
+
CatalogSearchResultTileComponent.decorators = [
|
|
4070
|
+
{ type: Component, args: [{
|
|
4071
|
+
selector: 'co-catalog-search-result-tile',
|
|
4072
|
+
template: `
|
|
4073
|
+
<div class="article-cards" visibilityObserverMaster>
|
|
4074
|
+
<ng-container *ngFor="let article of catalogSearchService.articles">
|
|
4075
|
+
<co-catalog-article-tile
|
|
4076
|
+
visibilityObserver
|
|
4077
|
+
#intersection="intersection"
|
|
4078
|
+
[observerEnabled]="!article.imageData"
|
|
4079
|
+
[createFrozenArticle]="createFrozenArticle"
|
|
4080
|
+
[showing]="intersection.isIntersecting"
|
|
4081
|
+
[article]="article"
|
|
4082
|
+
(onArticleClick)="onArticleClick.emit($event)"
|
|
4083
|
+
(onAddArticleButtonClick)="onAddArticleButtonClick.emit($event)"
|
|
4084
|
+
(onArButtonClick)="onArButtonClick.emit($event)"
|
|
4085
|
+
(onLookAtArticleButtonClick)="onLookAtArticleButtonClick.emit($event)"
|
|
4086
|
+
(onStockDetailsClick)="onStockDetailsClick.emit($event)"
|
|
4087
|
+
>
|
|
4088
|
+
</co-catalog-article-tile>
|
|
4089
|
+
</ng-container>
|
|
4090
|
+
</div>
|
|
4091
|
+
<co-pagination-bar *ngIf="catalogSearchService.articles?.length > 0"
|
|
4092
|
+
[currentPage]="catalogSearchService.currentPage"
|
|
4093
|
+
[itemsPerPage]="catalogSearchService.articlesPerPage"
|
|
4094
|
+
[totalItems]="catalogSearchService.resultCount"
|
|
4095
|
+
[previousLabel]="'PREVIOUS' | localize"
|
|
4096
|
+
[nextLabel]="'NEXT' | localize"
|
|
4097
|
+
[autoHide]="true"
|
|
4098
|
+
[directionLinks]="true"
|
|
4099
|
+
[paginationRange]="8"
|
|
4100
|
+
(previousClick)="onPreviousClick()"
|
|
4101
|
+
(nextClick)="onNextClick()"
|
|
4102
|
+
(pageClick)="onPageClick($event)">
|
|
4103
|
+
</co-pagination-bar>
|
|
4104
|
+
`,
|
|
4105
|
+
encapsulation: ViewEncapsulation.None
|
|
4106
|
+
},] }
|
|
4107
|
+
];
|
|
4108
|
+
CatalogSearchResultTileComponent.propDecorators = {
|
|
4109
|
+
viewChildren: [{ type: ViewChildren, args: [CatalogArticleTileComponent, { read: ElementRef },] }],
|
|
4110
|
+
createFrozenArticle: [{ type: Input }],
|
|
4111
|
+
onLookAtArticleButtonClick: [{ type: Output }],
|
|
4112
|
+
onArButtonClick: [{ type: Output }],
|
|
4113
|
+
onAddArticleButtonClick: [{ type: Output }],
|
|
4114
|
+
onArticleClick: [{ type: Output }],
|
|
4115
|
+
onStockDetailsClick: [{ type: Output }],
|
|
4116
|
+
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-result-tile',] }],
|
|
4117
|
+
smallScrollbar: [{ type: HostBinding, args: ['class.co-small-scrollbar',] }]
|
|
4118
|
+
};
|
|
4119
|
+
|
|
4087
4120
|
class CatalogArticleTileModule {
|
|
4088
4121
|
}
|
|
4089
4122
|
CatalogArticleTileModule.decorators = [
|
|
@@ -4243,49 +4276,6 @@ CatalogSearchResultTileModule.decorators = [
|
|
|
4243
4276
|
},] }
|
|
4244
4277
|
];
|
|
4245
4278
|
|
|
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
4279
|
class CatalogArticleListComponent extends ArticleBaseComponent {
|
|
4290
4280
|
showClass() {
|
|
4291
4281
|
return true;
|
|
@@ -4370,6 +4360,55 @@ CatalogArticleListComponent.propDecorators = {
|
|
|
4370
4360
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-article-list',] }]
|
|
4371
4361
|
};
|
|
4372
4362
|
|
|
4363
|
+
class CatalogSearchResultListComponent extends CatalogSearchBaseComponent {
|
|
4364
|
+
set viewChildren(children) {
|
|
4365
|
+
if (children) {
|
|
4366
|
+
this.elements = children.toArray();
|
|
4367
|
+
}
|
|
4368
|
+
}
|
|
4369
|
+
showClass() {
|
|
4370
|
+
return true;
|
|
4371
|
+
}
|
|
4372
|
+
}
|
|
4373
|
+
CatalogSearchResultListComponent.decorators = [
|
|
4374
|
+
{ type: Component, args: [{
|
|
4375
|
+
selector: 'co-catalog-search-result-list',
|
|
4376
|
+
template: `
|
|
4377
|
+
<div class="article-cards" visibilityObserverMaster>
|
|
4378
|
+
<ng-container *ngFor="let article of catalogSearchService.articles">
|
|
4379
|
+
<co-catalog-article-list
|
|
4380
|
+
visibilityObserver
|
|
4381
|
+
#intersection="intersection"
|
|
4382
|
+
[observerEnabled]="!article.imageData"
|
|
4383
|
+
[createFrozenArticle]="createFrozenArticle"
|
|
4384
|
+
[showing]="intersection.isIntersecting"
|
|
4385
|
+
[article]="article"
|
|
4386
|
+
>
|
|
4387
|
+
</co-catalog-article-list>
|
|
4388
|
+
</ng-container>
|
|
4389
|
+
</div>
|
|
4390
|
+
<co-pagination-bar *ngIf="catalogSearchService.articles?.length > 0"
|
|
4391
|
+
[currentPage]="catalogSearchService.currentPage"
|
|
4392
|
+
[itemsPerPage]="catalogSearchService.articlesPerPage"
|
|
4393
|
+
[totalItems]="catalogSearchService.resultCount"
|
|
4394
|
+
[previousLabel]="'PREVIOUS' | localize"
|
|
4395
|
+
[nextLabel]="'NEXT' | localize"
|
|
4396
|
+
[autoHide]="true"
|
|
4397
|
+
[directionLinks]="true"
|
|
4398
|
+
[paginationRange]="8"
|
|
4399
|
+
(previousClick)="onPreviousClick()"
|
|
4400
|
+
(nextClick)="onNextClick()"
|
|
4401
|
+
(pageClick)="onPageClick($event)">
|
|
4402
|
+
</co-pagination-bar>
|
|
4403
|
+
`,
|
|
4404
|
+
encapsulation: ViewEncapsulation.None
|
|
4405
|
+
},] }
|
|
4406
|
+
];
|
|
4407
|
+
CatalogSearchResultListComponent.propDecorators = {
|
|
4408
|
+
viewChildren: [{ type: ViewChildren, args: [CatalogArticleListComponent, { read: ElementRef },] }],
|
|
4409
|
+
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-result-list',] }]
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4373
4412
|
class CatalogArticleListModule {
|
|
4374
4413
|
}
|
|
4375
4414
|
CatalogArticleListModule.decorators = [
|