@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
|
@@ -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.55";
|
|
34
|
+
this.publishDate = "15-12-2023 12:08:44";
|
|
35
35
|
}
|
|
36
36
|
return Version;
|
|
37
37
|
}());
|
|
@@ -3887,6 +3887,7 @@
|
|
|
3887
3887
|
this.showClass = true;
|
|
3888
3888
|
this.mobileMenuToggle = false;
|
|
3889
3889
|
this.categories = [];
|
|
3890
|
+
this.externalSources = [];
|
|
3890
3891
|
this.turnoverGroups = [];
|
|
3891
3892
|
this.showCollectionOverlay = false;
|
|
3892
3893
|
this.showExternalOverlay = false;
|
|
@@ -3921,10 +3922,12 @@
|
|
|
3921
3922
|
CatalogNavigationComponent.prototype.ngOnInit = function () {
|
|
3922
3923
|
var _this = this;
|
|
3923
3924
|
this.categories.length = 0;
|
|
3925
|
+
this.externalSources.length = 0;
|
|
3924
3926
|
this.turnoverGroups.length = 0;
|
|
3925
3927
|
this._subs.push(this._adapterService.controllerInitialized.subscribe(function (initialized) {
|
|
3926
3928
|
if (initialized) {
|
|
3927
3929
|
_this.getCategories();
|
|
3930
|
+
_this.getExternalSources();
|
|
3928
3931
|
}
|
|
3929
3932
|
}));
|
|
3930
3933
|
};
|
|
@@ -3947,6 +3950,20 @@
|
|
|
3947
3950
|
});
|
|
3948
3951
|
});
|
|
3949
3952
|
};
|
|
3953
|
+
CatalogNavigationComponent.prototype.getExternalSources = function () {
|
|
3954
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3955
|
+
var _this = this;
|
|
3956
|
+
return __generator(this, function (_a) {
|
|
3957
|
+
this._adapterService.getCatalogDefinitions().then(function (defs) { return __awaiter(_this, void 0, void 0, function () {
|
|
3958
|
+
return __generator(this, function (_a) {
|
|
3959
|
+
this.externalSources = defs;
|
|
3960
|
+
return [2 /*return*/];
|
|
3961
|
+
});
|
|
3962
|
+
}); });
|
|
3963
|
+
return [2 /*return*/];
|
|
3964
|
+
});
|
|
3965
|
+
});
|
|
3966
|
+
};
|
|
3950
3967
|
CatalogNavigationComponent.prototype.prepareTurnoverGroups = function () {
|
|
3951
3968
|
var _this = this;
|
|
3952
3969
|
if (this.categories && this.categories.length > 0) {
|
|
@@ -4027,7 +4044,7 @@
|
|
|
4027
4044
|
CatalogNavigationComponent.decorators = [
|
|
4028
4045
|
{ type: i0.Component, args: [{
|
|
4029
4046
|
selector: 'co-catalog-navigation',
|
|
4030
|
-
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
|
|
4047
|
+
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 <ng-container *ngIf=\"categories && categories.length > 0\">\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\" *ngIf=\"showCollectionOverlay\" @showHideOverlay \n [overlay]=\"collectionParentForOverlay\"\n [inline]=\"true\"\n [keepInView]=\"true\" \n [view]=\"view\" \n [fullSize]=\"true\">\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 </ng-container>\n <ng-container *ngIf=\"externalSources && externalSources.length > 0\">\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\" *ngIf=\"showExternalOverlay\" @showHideOverlay \n [overlay]=\"externalParentForOverlay\" \n [inline]=\"true\"\n [keepInView]=\"true\" \n [view]=\"view\" \n [fullSize]=\"true\">\n <co-catalog-external-sources (externalSourceClick)=\"handleExternalSourceClick($event)\"></co-catalog-external-sources>\n </div>\n </div>\n </ng-container>\n </div>\n ",
|
|
4031
4048
|
providers: [
|
|
4032
4049
|
corecomponents_v12.OverlayService
|
|
4033
4050
|
],
|
|
@@ -4297,7 +4314,7 @@
|
|
|
4297
4314
|
case 0: return [4 /*yield*/, this._settingsService.initializeSettings()];
|
|
4298
4315
|
case 1:
|
|
4299
4316
|
_a.sent();
|
|
4300
|
-
this._catalogService.init(this._settings);
|
|
4317
|
+
this._catalogService.init(this._settings, true);
|
|
4301
4318
|
this._subs.push(this._catalogEventService.addArticleButtonClick.subscribe(function (article) {
|
|
4302
4319
|
_this.onAddArticleButtonClick.emit(article);
|
|
4303
4320
|
}), this._catalogEventService.arButtonClick.subscribe(function (article) {
|
|
@@ -4317,6 +4334,9 @@
|
|
|
4317
4334
|
CatalogSearchComponent.prototype.ngOnDestroy = function () {
|
|
4318
4335
|
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
4319
4336
|
};
|
|
4337
|
+
CatalogSearchComponent.prototype.handleHomeClick = function ($event) {
|
|
4338
|
+
this._catalogSearchService.resetFilters();
|
|
4339
|
+
};
|
|
4320
4340
|
CatalogSearchComponent.prototype.handleCategoryClick = function (category) {
|
|
4321
4341
|
this._catalogSearchService.category = category;
|
|
4322
4342
|
};
|
|
@@ -4331,7 +4351,7 @@
|
|
|
4331
4351
|
CatalogSearchComponent.decorators = [
|
|
4332
4352
|
{ type: i0.Component, args: [{
|
|
4333
4353
|
selector: 'co-catalog-search',
|
|
4334
|
-
template: "\n <div class=\"catalog-search-wrapper\">\n <ng-container *ngIf=\"showFilter\">\n <div class=\"filter-content\" @showHideFilter>\n <div class=\"search-filter-panel-header-wrapper\">\n <div class=\"search-filter-panel-header\">\n <span [textContent]=\"'Filters'\"></span>\n <co-icon class=\"filter-reset-icon clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.SyncAlt)\"\n (click)=\"handleResetButtonClick($event)\">\n </co-icon>\n </div>\n <co-icon class=\"clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.Cancel)\"\n (click)=\"showFilter = false\">\n </co-icon>\n </div>\n\n <!--filter-content-->\n <div class=\"search-filter-wrapper narrow-scrollbar\">\n <co-catalog-filter [showResetFilter]=\"true\"></co-catalog-filter>\n </div>\n </div>\n </ng-container>\n <div class=\"search-content-wrapper\" #contentView>\n <div class=\"search-header\">\n <div class=\"search-catalog-title-wrapper\">\n <div class=\"catalog-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.WebCatalog)\"></co-icon>\n <div class=\"catalog-title\" [textContent]=\"title\"></div>\n </div>\n <div class=\"catalog-sub-title\" [textContent]=\"subTitle\"></div>\n </div>\n <co-catalog-search-header [placeholder]=\"searchPlaceholder\"\n (filterIconClick)=\"showFilter = !showFilter\"></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\"\n [view]=\"contentView\"\n (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"\n (externalSourceClick)=\"onExternalSourceClick.emit($event)\"\n ></co-catalog-navigation>\n <co-catalog-categories *ngIf=\"showLandingPage\" (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"></co-catalog-categories>\n <div class=\"search-content\">\n <ng-container *ngIf=\"mode === 'tile'\">\n <co-catalog-search-result-tile\n [createFrozenArticle]=\"createFrozenArticle\"\n ></co-catalog-search-result-tile>\n </ng-container>\n <ng-container *ngIf=\"mode === 'list'\">\n <co-catalog-search-result-list\n [createFrozenArticle]=\"createFrozenArticle\"\n ></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 ",
|
|
4354
|
+
template: "\n <div class=\"catalog-search-wrapper\">\n <ng-container *ngIf=\"showFilter\">\n <div class=\"filter-content\" @showHideFilter>\n <div class=\"search-filter-panel-header-wrapper\">\n <div class=\"search-filter-panel-header\">\n <span [textContent]=\"'Filters'\"></span>\n <co-icon class=\"filter-reset-icon clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.SyncAlt)\"\n (click)=\"handleResetButtonClick($event)\">\n </co-icon>\n </div>\n <co-icon class=\"clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.Cancel)\"\n (click)=\"showFilter = false\">\n </co-icon>\n </div>\n\n <!--filter-content-->\n <div class=\"search-filter-wrapper narrow-scrollbar\">\n <co-catalog-filter [showResetFilter]=\"true\"></co-catalog-filter>\n </div>\n </div>\n </ng-container>\n <div class=\"search-content-wrapper\" #contentView>\n <div class=\"search-header\">\n <div class=\"search-catalog-title-wrapper\">\n <div class=\"catalog-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.WebCatalog)\"></co-icon>\n <div class=\"catalog-title\" [textContent]=\"title\"></div>\n </div>\n <div class=\"catalog-sub-title\" [textContent]=\"subTitle\"></div>\n </div>\n <co-catalog-search-header [placeholder]=\"searchPlaceholder\"\n (filterIconClick)=\"showFilter = !showFilter\"></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\"\n [view]=\"contentView\"\n (homeClick)=\"handleHomeClick($event)\"\n (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"\n (externalSourceClick)=\"onExternalSourceClick.emit($event)\"\n ></co-catalog-navigation>\n <co-catalog-categories *ngIf=\"showLandingPage\" (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"></co-catalog-categories>\n <div class=\"search-content\">\n <ng-container *ngIf=\"mode === 'tile'\">\n <co-catalog-search-result-tile\n [createFrozenArticle]=\"createFrozenArticle\"\n ></co-catalog-search-result-tile>\n </ng-container>\n <ng-container *ngIf=\"mode === 'list'\">\n <co-catalog-search-result-list\n [createFrozenArticle]=\"createFrozenArticle\"\n ></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 ",
|
|
4335
4355
|
providers: [
|
|
4336
4356
|
SelectSingleCacheService,
|
|
4337
4357
|
SelectMultipleCacheService,
|
|
@@ -4439,16 +4459,25 @@
|
|
|
4439
4459
|
function CatalogSearchBaseComponent(catalogSearchService) {
|
|
4440
4460
|
this.catalogSearchService = catalogSearchService;
|
|
4441
4461
|
this.createFrozenArticle = true;
|
|
4462
|
+
this.elements = [];
|
|
4442
4463
|
}
|
|
4443
4464
|
CatalogSearchBaseComponent.prototype.onPreviousClick = function () {
|
|
4465
|
+
this._scrollIntoView();
|
|
4444
4466
|
this.catalogSearchService.currentPage -= 1;
|
|
4445
4467
|
};
|
|
4446
4468
|
CatalogSearchBaseComponent.prototype.onNextClick = function () {
|
|
4469
|
+
this._scrollIntoView();
|
|
4447
4470
|
this.catalogSearchService.currentPage += 1;
|
|
4448
4471
|
};
|
|
4449
4472
|
CatalogSearchBaseComponent.prototype.onPageClick = function (pageNr) {
|
|
4473
|
+
this._scrollIntoView();
|
|
4450
4474
|
this.catalogSearchService.currentPage = pageNr;
|
|
4451
4475
|
};
|
|
4476
|
+
CatalogSearchBaseComponent.prototype._scrollIntoView = function () {
|
|
4477
|
+
if (this.elements && this.elements.length > 0) {
|
|
4478
|
+
this.elements[0].nativeElement.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' });
|
|
4479
|
+
}
|
|
4480
|
+
};
|
|
4452
4481
|
return CatalogSearchBaseComponent;
|
|
4453
4482
|
}());
|
|
4454
4483
|
CatalogSearchBaseComponent.decorators = [
|
|
@@ -4461,40 +4490,6 @@
|
|
|
4461
4490
|
createFrozenArticle: [{ type: i0.Input }]
|
|
4462
4491
|
};
|
|
4463
4492
|
|
|
4464
|
-
var CatalogSearchResultTileComponent = /** @class */ (function (_super) {
|
|
4465
|
-
__extends(CatalogSearchResultTileComponent, _super);
|
|
4466
|
-
function CatalogSearchResultTileComponent() {
|
|
4467
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
4468
|
-
_this.createFrozenArticle = true;
|
|
4469
|
-
_this.onLookAtArticleButtonClick = new i0.EventEmitter();
|
|
4470
|
-
_this.onArButtonClick = new i0.EventEmitter();
|
|
4471
|
-
_this.onAddArticleButtonClick = new i0.EventEmitter();
|
|
4472
|
-
_this.onArticleClick = new i0.EventEmitter();
|
|
4473
|
-
_this.onStockDetailsClick = new i0.EventEmitter();
|
|
4474
|
-
_this.showClass = true;
|
|
4475
|
-
_this.smallScrollbar = true;
|
|
4476
|
-
return _this;
|
|
4477
|
-
}
|
|
4478
|
-
return CatalogSearchResultTileComponent;
|
|
4479
|
-
}(CatalogSearchBaseComponent));
|
|
4480
|
-
CatalogSearchResultTileComponent.decorators = [
|
|
4481
|
-
{ type: i0.Component, args: [{
|
|
4482
|
-
selector: 'co-catalog-search-result-tile',
|
|
4483
|
-
template: "\n <div class=\"article-cards\" visibilityObserverMaster>\n <ng-container *ngFor=\"let article of catalogSearchService.articles\">\n <co-catalog-article-tile\n visibilityObserver\n #intersection=\"intersection\"\n [observerEnabled]=\"!article.imageData\"\n [createFrozenArticle]=\"createFrozenArticle\"\n [showing]=\"intersection.isIntersecting\"\n [article]=\"article\"\n (onArticleClick)=\"onArticleClick.emit($event)\"\n (onAddArticleButtonClick)=\"onAddArticleButtonClick.emit($event)\"\n (onArButtonClick)=\"onArButtonClick.emit($event)\"\n (onLookAtArticleButtonClick)=\"onLookAtArticleButtonClick.emit($event)\"\n (onStockDetailsClick)=\"onStockDetailsClick.emit($event)\"\n >\n </co-catalog-article-tile>\n </ng-container>\n </div>\n <co-pagination-bar *ngIf=\"catalogSearchService.articles?.length > 0\"\n [currentPage]=\"catalogSearchService.currentPage\"\n [itemsPerPage]=\"catalogSearchService.articlesPerPage\"\n [totalItems]=\"catalogSearchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"true\"\n [paginationRange]=\"8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n ",
|
|
4484
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
4485
|
-
},] }
|
|
4486
|
-
];
|
|
4487
|
-
CatalogSearchResultTileComponent.propDecorators = {
|
|
4488
|
-
createFrozenArticle: [{ type: i0.Input }],
|
|
4489
|
-
onLookAtArticleButtonClick: [{ type: i0.Output }],
|
|
4490
|
-
onArButtonClick: [{ type: i0.Output }],
|
|
4491
|
-
onAddArticleButtonClick: [{ type: i0.Output }],
|
|
4492
|
-
onArticleClick: [{ type: i0.Output }],
|
|
4493
|
-
onStockDetailsClick: [{ type: i0.Output }],
|
|
4494
|
-
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search-result-tile',] }],
|
|
4495
|
-
smallScrollbar: [{ type: i0.HostBinding, args: ['class.co-small-scrollbar',] }]
|
|
4496
|
-
};
|
|
4497
|
-
|
|
4498
4493
|
var ArticleBaseComponent = /** @class */ (function () {
|
|
4499
4494
|
function ArticleBaseComponent(iconCache, catalogService, options, _iOne, _changeDetector, _appEventService, _imageService, _settingsService) {
|
|
4500
4495
|
this.iconCache = iconCache;
|
|
@@ -4714,6 +4709,50 @@
|
|
|
4714
4709
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-article-tile',] }]
|
|
4715
4710
|
};
|
|
4716
4711
|
|
|
4712
|
+
var CatalogSearchResultTileComponent = /** @class */ (function (_super) {
|
|
4713
|
+
__extends(CatalogSearchResultTileComponent, _super);
|
|
4714
|
+
function CatalogSearchResultTileComponent() {
|
|
4715
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
4716
|
+
_this.createFrozenArticle = true;
|
|
4717
|
+
_this.onLookAtArticleButtonClick = new i0.EventEmitter();
|
|
4718
|
+
_this.onArButtonClick = new i0.EventEmitter();
|
|
4719
|
+
_this.onAddArticleButtonClick = new i0.EventEmitter();
|
|
4720
|
+
_this.onArticleClick = new i0.EventEmitter();
|
|
4721
|
+
_this.onStockDetailsClick = new i0.EventEmitter();
|
|
4722
|
+
_this.showClass = true;
|
|
4723
|
+
_this.smallScrollbar = true;
|
|
4724
|
+
return _this;
|
|
4725
|
+
}
|
|
4726
|
+
Object.defineProperty(CatalogSearchResultTileComponent.prototype, "viewChildren", {
|
|
4727
|
+
set: function (children) {
|
|
4728
|
+
if (children) {
|
|
4729
|
+
this.elements = children.toArray();
|
|
4730
|
+
}
|
|
4731
|
+
},
|
|
4732
|
+
enumerable: false,
|
|
4733
|
+
configurable: true
|
|
4734
|
+
});
|
|
4735
|
+
return CatalogSearchResultTileComponent;
|
|
4736
|
+
}(CatalogSearchBaseComponent));
|
|
4737
|
+
CatalogSearchResultTileComponent.decorators = [
|
|
4738
|
+
{ type: i0.Component, args: [{
|
|
4739
|
+
selector: 'co-catalog-search-result-tile',
|
|
4740
|
+
template: "\n <div class=\"article-cards\" visibilityObserverMaster>\n <ng-container *ngFor=\"let article of catalogSearchService.articles\">\n <co-catalog-article-tile\n visibilityObserver\n #intersection=\"intersection\"\n [observerEnabled]=\"!article.imageData\"\n [createFrozenArticle]=\"createFrozenArticle\"\n [showing]=\"intersection.isIntersecting\"\n [article]=\"article\"\n (onArticleClick)=\"onArticleClick.emit($event)\"\n (onAddArticleButtonClick)=\"onAddArticleButtonClick.emit($event)\"\n (onArButtonClick)=\"onArButtonClick.emit($event)\"\n (onLookAtArticleButtonClick)=\"onLookAtArticleButtonClick.emit($event)\"\n (onStockDetailsClick)=\"onStockDetailsClick.emit($event)\"\n >\n </co-catalog-article-tile>\n </ng-container>\n </div>\n <co-pagination-bar *ngIf=\"catalogSearchService.articles?.length > 0\"\n [currentPage]=\"catalogSearchService.currentPage\"\n [itemsPerPage]=\"catalogSearchService.articlesPerPage\"\n [totalItems]=\"catalogSearchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"true\"\n [paginationRange]=\"8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n ",
|
|
4741
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
4742
|
+
},] }
|
|
4743
|
+
];
|
|
4744
|
+
CatalogSearchResultTileComponent.propDecorators = {
|
|
4745
|
+
viewChildren: [{ type: i0.ViewChildren, args: [CatalogArticleTileComponent, { read: i0.ElementRef },] }],
|
|
4746
|
+
createFrozenArticle: [{ type: i0.Input }],
|
|
4747
|
+
onLookAtArticleButtonClick: [{ type: i0.Output }],
|
|
4748
|
+
onArButtonClick: [{ type: i0.Output }],
|
|
4749
|
+
onAddArticleButtonClick: [{ type: i0.Output }],
|
|
4750
|
+
onArticleClick: [{ type: i0.Output }],
|
|
4751
|
+
onStockDetailsClick: [{ type: i0.Output }],
|
|
4752
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search-result-tile',] }],
|
|
4753
|
+
smallScrollbar: [{ type: i0.HostBinding, args: ['class.co-small-scrollbar',] }]
|
|
4754
|
+
};
|
|
4755
|
+
|
|
4717
4756
|
var CatalogArticleTileModule = /** @class */ (function () {
|
|
4718
4757
|
function CatalogArticleTileModule() {
|
|
4719
4758
|
}
|
|
@@ -4897,27 +4936,6 @@
|
|
|
4897
4936
|
},] }
|
|
4898
4937
|
];
|
|
4899
4938
|
|
|
4900
|
-
var CatalogSearchResultListComponent = /** @class */ (function (_super) {
|
|
4901
|
-
__extends(CatalogSearchResultListComponent, _super);
|
|
4902
|
-
function CatalogSearchResultListComponent() {
|
|
4903
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
4904
|
-
}
|
|
4905
|
-
CatalogSearchResultListComponent.prototype.showClass = function () {
|
|
4906
|
-
return true;
|
|
4907
|
-
};
|
|
4908
|
-
return CatalogSearchResultListComponent;
|
|
4909
|
-
}(CatalogSearchBaseComponent));
|
|
4910
|
-
CatalogSearchResultListComponent.decorators = [
|
|
4911
|
-
{ type: i0.Component, args: [{
|
|
4912
|
-
selector: 'co-catalog-search-result-list',
|
|
4913
|
-
template: "\n <div class=\"article-cards\" visibilityObserverMaster>\n <ng-container *ngFor=\"let article of catalogSearchService.articles\">\n <co-catalog-article-list\n visibilityObserver\n #intersection=\"intersection\"\n [observerEnabled]=\"!article.imageData\"\n [createFrozenArticle]=\"createFrozenArticle\"\n [showing]=\"intersection.isIntersecting\"\n [article]=\"article\"\n >\n </co-catalog-article-list>\n </ng-container>\n </div>\n <co-pagination-bar *ngIf=\"catalogSearchService.articles?.length > 0\"\n [currentPage]=\"catalogSearchService.currentPage\"\n [itemsPerPage]=\"catalogSearchService.articlesPerPage\"\n [totalItems]=\"catalogSearchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"true\"\n [paginationRange]=\"8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n ",
|
|
4914
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
4915
|
-
},] }
|
|
4916
|
-
];
|
|
4917
|
-
CatalogSearchResultListComponent.propDecorators = {
|
|
4918
|
-
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search-result-list',] }]
|
|
4919
|
-
};
|
|
4920
|
-
|
|
4921
4939
|
var CatalogArticleListComponent = /** @class */ (function (_super) {
|
|
4922
4940
|
__extends(CatalogArticleListComponent, _super);
|
|
4923
4941
|
function CatalogArticleListComponent() {
|
|
@@ -4939,6 +4957,37 @@
|
|
|
4939
4957
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-article-list',] }]
|
|
4940
4958
|
};
|
|
4941
4959
|
|
|
4960
|
+
var CatalogSearchResultListComponent = /** @class */ (function (_super) {
|
|
4961
|
+
__extends(CatalogSearchResultListComponent, _super);
|
|
4962
|
+
function CatalogSearchResultListComponent() {
|
|
4963
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
4964
|
+
}
|
|
4965
|
+
Object.defineProperty(CatalogSearchResultListComponent.prototype, "viewChildren", {
|
|
4966
|
+
set: function (children) {
|
|
4967
|
+
if (children) {
|
|
4968
|
+
this.elements = children.toArray();
|
|
4969
|
+
}
|
|
4970
|
+
},
|
|
4971
|
+
enumerable: false,
|
|
4972
|
+
configurable: true
|
|
4973
|
+
});
|
|
4974
|
+
CatalogSearchResultListComponent.prototype.showClass = function () {
|
|
4975
|
+
return true;
|
|
4976
|
+
};
|
|
4977
|
+
return CatalogSearchResultListComponent;
|
|
4978
|
+
}(CatalogSearchBaseComponent));
|
|
4979
|
+
CatalogSearchResultListComponent.decorators = [
|
|
4980
|
+
{ type: i0.Component, args: [{
|
|
4981
|
+
selector: 'co-catalog-search-result-list',
|
|
4982
|
+
template: "\n <div class=\"article-cards\" visibilityObserverMaster>\n <ng-container *ngFor=\"let article of catalogSearchService.articles\">\n <co-catalog-article-list\n visibilityObserver\n #intersection=\"intersection\"\n [observerEnabled]=\"!article.imageData\"\n [createFrozenArticle]=\"createFrozenArticle\"\n [showing]=\"intersection.isIntersecting\"\n [article]=\"article\"\n >\n </co-catalog-article-list>\n </ng-container>\n </div>\n <co-pagination-bar *ngIf=\"catalogSearchService.articles?.length > 0\"\n [currentPage]=\"catalogSearchService.currentPage\"\n [itemsPerPage]=\"catalogSearchService.articlesPerPage\"\n [totalItems]=\"catalogSearchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"true\"\n [paginationRange]=\"8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n ",
|
|
4983
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
4984
|
+
},] }
|
|
4985
|
+
];
|
|
4986
|
+
CatalogSearchResultListComponent.propDecorators = {
|
|
4987
|
+
viewChildren: [{ type: i0.ViewChildren, args: [CatalogArticleListComponent, { read: i0.ElementRef },] }],
|
|
4988
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search-result-list',] }]
|
|
4989
|
+
};
|
|
4990
|
+
|
|
4942
4991
|
var CatalogArticleListModule = /** @class */ (function () {
|
|
4943
4992
|
function CatalogArticleListModule() {
|
|
4944
4993
|
}
|