@colijnit/catalog 12.1.52 → 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 +129 -63
- 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/article-base.component.js +12 -4
- package/esm2015/lib/component/base/catalog-search-base.component.js +15 -2
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +8 -5
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +45 -32
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +16 -6
- package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.component.js +10 -2
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +12 -2
- package/esm2015/lib/service/catalog-event.service.js +1 -1
- package/fesm2015/colijnit-catalog.js +207 -145
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/base/article-base.component.d.ts +2 -1
- package/lib/component/base/catalog-search-base.component.d.ts +4 -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 +3 -1
- 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 +3 -1
- package/lib/service/catalog-event.service.d.ts +1 -1
- 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.54";
|
|
34
|
+
this.publishDate = "6-12-2023 16:40:16";
|
|
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,6 +3922,7 @@
|
|
|
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) {
|
|
@@ -3947,6 +3949,20 @@
|
|
|
3947
3949
|
});
|
|
3948
3950
|
});
|
|
3949
3951
|
};
|
|
3952
|
+
CatalogNavigationComponent.prototype.getExternalSources = function () {
|
|
3953
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3954
|
+
var _this = this;
|
|
3955
|
+
return __generator(this, function (_a) {
|
|
3956
|
+
this._adapterService.getCatalogDefinitions().then(function (defs) { return __awaiter(_this, void 0, void 0, function () {
|
|
3957
|
+
return __generator(this, function (_a) {
|
|
3958
|
+
this.externalSources = defs;
|
|
3959
|
+
return [2 /*return*/];
|
|
3960
|
+
});
|
|
3961
|
+
}); });
|
|
3962
|
+
return [2 /*return*/];
|
|
3963
|
+
});
|
|
3964
|
+
});
|
|
3965
|
+
};
|
|
3950
3966
|
CatalogNavigationComponent.prototype.prepareTurnoverGroups = function () {
|
|
3951
3967
|
var _this = this;
|
|
3952
3968
|
if (this.categories && this.categories.length > 0) {
|
|
@@ -4027,7 +4043,7 @@
|
|
|
4027
4043
|
CatalogNavigationComponent.decorators = [
|
|
4028
4044
|
{ type: i0.Component, args: [{
|
|
4029
4045
|
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
|
|
4046
|
+
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
4047
|
providers: [
|
|
4032
4048
|
corecomponents_v12.OverlayService
|
|
4033
4049
|
],
|
|
@@ -4256,6 +4272,7 @@
|
|
|
4256
4272
|
this._catalogEventService = _catalogEventService;
|
|
4257
4273
|
this.iconCacheService = iconCacheService;
|
|
4258
4274
|
this.icons = IconEnum;
|
|
4275
|
+
this.createFrozenArticle = true;
|
|
4259
4276
|
this.showNavigation = false;
|
|
4260
4277
|
this.showLandingPage = false;
|
|
4261
4278
|
this.showFilter = false;
|
|
@@ -4296,9 +4313,9 @@
|
|
|
4296
4313
|
case 0: return [4 /*yield*/, this._settingsService.initializeSettings()];
|
|
4297
4314
|
case 1:
|
|
4298
4315
|
_a.sent();
|
|
4299
|
-
this._catalogService.init(this._settings);
|
|
4300
|
-
this._subs.push(this._catalogEventService.addArticleButtonClick.subscribe(function (
|
|
4301
|
-
_this.onAddArticleButtonClick.emit(
|
|
4316
|
+
this._catalogService.init(this._settings, true);
|
|
4317
|
+
this._subs.push(this._catalogEventService.addArticleButtonClick.subscribe(function (article) {
|
|
4318
|
+
_this.onAddArticleButtonClick.emit(article);
|
|
4302
4319
|
}), this._catalogEventService.arButtonClick.subscribe(function (article) {
|
|
4303
4320
|
_this.onArButtonClick.emit(article);
|
|
4304
4321
|
}), this._catalogEventService.articleClick.subscribe(function (article) {
|
|
@@ -4316,6 +4333,9 @@
|
|
|
4316
4333
|
CatalogSearchComponent.prototype.ngOnDestroy = function () {
|
|
4317
4334
|
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
4318
4335
|
};
|
|
4336
|
+
CatalogSearchComponent.prototype.handleHomeClick = function ($event) {
|
|
4337
|
+
this._catalogSearchService.resetFilters();
|
|
4338
|
+
};
|
|
4319
4339
|
CatalogSearchComponent.prototype.handleCategoryClick = function (category) {
|
|
4320
4340
|
this._catalogSearchService.category = category;
|
|
4321
4341
|
};
|
|
@@ -4330,7 +4350,7 @@
|
|
|
4330
4350
|
CatalogSearchComponent.decorators = [
|
|
4331
4351
|
{ type: i0.Component, args: [{
|
|
4332
4352
|
selector: 'co-catalog-search',
|
|
4333
|
-
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></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 ",
|
|
4353
|
+
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 ",
|
|
4334
4354
|
providers: [
|
|
4335
4355
|
SelectSingleCacheService,
|
|
4336
4356
|
SelectMultipleCacheService,
|
|
@@ -4369,6 +4389,7 @@
|
|
|
4369
4389
|
title: [{ type: i0.Input }],
|
|
4370
4390
|
subTitle: [{ type: i0.Input }],
|
|
4371
4391
|
searchPlaceholder: [{ type: i0.Input }],
|
|
4392
|
+
createFrozenArticle: [{ type: i0.Input }],
|
|
4372
4393
|
showNavigation: [{ type: i0.Input }],
|
|
4373
4394
|
showLandingPage: [{ type: i0.Input }],
|
|
4374
4395
|
showFilter: [{ type: i0.Input }],
|
|
@@ -4436,16 +4457,26 @@
|
|
|
4436
4457
|
var CatalogSearchBaseComponent = /** @class */ (function () {
|
|
4437
4458
|
function CatalogSearchBaseComponent(catalogSearchService) {
|
|
4438
4459
|
this.catalogSearchService = catalogSearchService;
|
|
4460
|
+
this.createFrozenArticle = true;
|
|
4461
|
+
this.elements = [];
|
|
4439
4462
|
}
|
|
4440
4463
|
CatalogSearchBaseComponent.prototype.onPreviousClick = function () {
|
|
4464
|
+
this._scrollIntoView();
|
|
4441
4465
|
this.catalogSearchService.currentPage -= 1;
|
|
4442
4466
|
};
|
|
4443
4467
|
CatalogSearchBaseComponent.prototype.onNextClick = function () {
|
|
4468
|
+
this._scrollIntoView();
|
|
4444
4469
|
this.catalogSearchService.currentPage += 1;
|
|
4445
4470
|
};
|
|
4446
4471
|
CatalogSearchBaseComponent.prototype.onPageClick = function (pageNr) {
|
|
4472
|
+
this._scrollIntoView();
|
|
4447
4473
|
this.catalogSearchService.currentPage = pageNr;
|
|
4448
4474
|
};
|
|
4475
|
+
CatalogSearchBaseComponent.prototype._scrollIntoView = function () {
|
|
4476
|
+
if (this.elements && this.elements.length > 0) {
|
|
4477
|
+
this.elements[0].nativeElement.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' });
|
|
4478
|
+
}
|
|
4479
|
+
};
|
|
4449
4480
|
return CatalogSearchBaseComponent;
|
|
4450
4481
|
}());
|
|
4451
4482
|
CatalogSearchBaseComponent.decorators = [
|
|
@@ -4453,38 +4484,9 @@
|
|
|
4453
4484
|
];
|
|
4454
4485
|
CatalogSearchBaseComponent.ctorParameters = function () { return [
|
|
4455
4486
|
{ type: CatalogSearchService }
|
|
4456
|
-
]; };
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
__extends(CatalogSearchResultTileComponent, _super);
|
|
4460
|
-
function CatalogSearchResultTileComponent() {
|
|
4461
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
4462
|
-
_this.onLookAtArticleButtonClick = new i0.EventEmitter();
|
|
4463
|
-
_this.onArButtonClick = new i0.EventEmitter();
|
|
4464
|
-
_this.onAddArticleButtonClick = new i0.EventEmitter();
|
|
4465
|
-
_this.onArticleClick = new i0.EventEmitter();
|
|
4466
|
-
_this.onStockDetailsClick = new i0.EventEmitter();
|
|
4467
|
-
_this.showClass = true;
|
|
4468
|
-
_this.smallScrollbar = true;
|
|
4469
|
-
return _this;
|
|
4470
|
-
}
|
|
4471
|
-
return CatalogSearchResultTileComponent;
|
|
4472
|
-
}(CatalogSearchBaseComponent));
|
|
4473
|
-
CatalogSearchResultTileComponent.decorators = [
|
|
4474
|
-
{ type: i0.Component, args: [{
|
|
4475
|
-
selector: 'co-catalog-search-result-tile',
|
|
4476
|
-
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 [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 ",
|
|
4477
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
4478
|
-
},] }
|
|
4479
|
-
];
|
|
4480
|
-
CatalogSearchResultTileComponent.propDecorators = {
|
|
4481
|
-
onLookAtArticleButtonClick: [{ type: i0.Output }],
|
|
4482
|
-
onArButtonClick: [{ type: i0.Output }],
|
|
4483
|
-
onAddArticleButtonClick: [{ type: i0.Output }],
|
|
4484
|
-
onArticleClick: [{ type: i0.Output }],
|
|
4485
|
-
onStockDetailsClick: [{ type: i0.Output }],
|
|
4486
|
-
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search-result-tile',] }],
|
|
4487
|
-
smallScrollbar: [{ type: i0.HostBinding, args: ['class.co-small-scrollbar',] }]
|
|
4487
|
+
]; };
|
|
4488
|
+
CatalogSearchBaseComponent.propDecorators = {
|
|
4489
|
+
createFrozenArticle: [{ type: i0.Input }]
|
|
4488
4490
|
};
|
|
4489
4491
|
|
|
4490
4492
|
var ArticleBaseComponent = /** @class */ (function () {
|
|
@@ -4498,6 +4500,7 @@
|
|
|
4498
4500
|
this._imageService = _imageService;
|
|
4499
4501
|
this._settingsService = _settingsService;
|
|
4500
4502
|
this.icons = IconEnum;
|
|
4503
|
+
this.createFrozenArticle = true;
|
|
4501
4504
|
this.isSelected = false;
|
|
4502
4505
|
this.isSmallModus = false;
|
|
4503
4506
|
this.hasMagnifierButton = false;
|
|
@@ -4564,12 +4567,18 @@
|
|
|
4564
4567
|
switch (_a.label) {
|
|
4565
4568
|
case 0:
|
|
4566
4569
|
event.stopPropagation();
|
|
4570
|
+
if (!this.createFrozenArticle) return [3 /*break*/, 2];
|
|
4567
4571
|
return [4 /*yield*/, this._getJSONFromArticleObject(this.article)];
|
|
4568
4572
|
case 1:
|
|
4569
4573
|
json = _a.sent();
|
|
4570
4574
|
this._appEventService.addArticleButtonClick.next(json);
|
|
4571
4575
|
this.onAddArticleButtonClick.emit(json);
|
|
4572
|
-
return [
|
|
4576
|
+
return [3 /*break*/, 3];
|
|
4577
|
+
case 2:
|
|
4578
|
+
this._appEventService.addArticleButtonClick.next(this.article);
|
|
4579
|
+
this.onAddArticleButtonClick.emit(this.article);
|
|
4580
|
+
_a.label = 3;
|
|
4581
|
+
case 3: return [2 /*return*/];
|
|
4573
4582
|
}
|
|
4574
4583
|
});
|
|
4575
4584
|
});
|
|
@@ -4659,6 +4668,7 @@
|
|
|
4659
4668
|
article: [{ type: i0.Input }],
|
|
4660
4669
|
showing: [{ type: i0.Input }],
|
|
4661
4670
|
imageData: [{ type: i0.Input }],
|
|
4671
|
+
createFrozenArticle: [{ type: i0.Input }],
|
|
4662
4672
|
price: [{ type: i0.Input }],
|
|
4663
4673
|
isSelected: [{ type: i0.Input }],
|
|
4664
4674
|
isSmallModus: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.small-modus',] }],
|
|
@@ -4698,6 +4708,50 @@
|
|
|
4698
4708
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-article-tile',] }]
|
|
4699
4709
|
};
|
|
4700
4710
|
|
|
4711
|
+
var CatalogSearchResultTileComponent = /** @class */ (function (_super) {
|
|
4712
|
+
__extends(CatalogSearchResultTileComponent, _super);
|
|
4713
|
+
function CatalogSearchResultTileComponent() {
|
|
4714
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
4715
|
+
_this.createFrozenArticle = true;
|
|
4716
|
+
_this.onLookAtArticleButtonClick = new i0.EventEmitter();
|
|
4717
|
+
_this.onArButtonClick = new i0.EventEmitter();
|
|
4718
|
+
_this.onAddArticleButtonClick = new i0.EventEmitter();
|
|
4719
|
+
_this.onArticleClick = new i0.EventEmitter();
|
|
4720
|
+
_this.onStockDetailsClick = new i0.EventEmitter();
|
|
4721
|
+
_this.showClass = true;
|
|
4722
|
+
_this.smallScrollbar = true;
|
|
4723
|
+
return _this;
|
|
4724
|
+
}
|
|
4725
|
+
Object.defineProperty(CatalogSearchResultTileComponent.prototype, "viewChildren", {
|
|
4726
|
+
set: function (children) {
|
|
4727
|
+
if (children) {
|
|
4728
|
+
this.elements = children.toArray();
|
|
4729
|
+
}
|
|
4730
|
+
},
|
|
4731
|
+
enumerable: false,
|
|
4732
|
+
configurable: true
|
|
4733
|
+
});
|
|
4734
|
+
return CatalogSearchResultTileComponent;
|
|
4735
|
+
}(CatalogSearchBaseComponent));
|
|
4736
|
+
CatalogSearchResultTileComponent.decorators = [
|
|
4737
|
+
{ type: i0.Component, args: [{
|
|
4738
|
+
selector: 'co-catalog-search-result-tile',
|
|
4739
|
+
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 ",
|
|
4740
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
4741
|
+
},] }
|
|
4742
|
+
];
|
|
4743
|
+
CatalogSearchResultTileComponent.propDecorators = {
|
|
4744
|
+
viewChildren: [{ type: i0.ViewChildren, args: [CatalogArticleTileComponent, { read: i0.ElementRef },] }],
|
|
4745
|
+
createFrozenArticle: [{ type: i0.Input }],
|
|
4746
|
+
onLookAtArticleButtonClick: [{ type: i0.Output }],
|
|
4747
|
+
onArButtonClick: [{ type: i0.Output }],
|
|
4748
|
+
onAddArticleButtonClick: [{ type: i0.Output }],
|
|
4749
|
+
onArticleClick: [{ type: i0.Output }],
|
|
4750
|
+
onStockDetailsClick: [{ type: i0.Output }],
|
|
4751
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search-result-tile',] }],
|
|
4752
|
+
smallScrollbar: [{ type: i0.HostBinding, args: ['class.co-small-scrollbar',] }]
|
|
4753
|
+
};
|
|
4754
|
+
|
|
4701
4755
|
var CatalogArticleTileModule = /** @class */ (function () {
|
|
4702
4756
|
function CatalogArticleTileModule() {
|
|
4703
4757
|
}
|
|
@@ -4881,27 +4935,6 @@
|
|
|
4881
4935
|
},] }
|
|
4882
4936
|
];
|
|
4883
4937
|
|
|
4884
|
-
var CatalogSearchResultListComponent = /** @class */ (function (_super) {
|
|
4885
|
-
__extends(CatalogSearchResultListComponent, _super);
|
|
4886
|
-
function CatalogSearchResultListComponent() {
|
|
4887
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
4888
|
-
}
|
|
4889
|
-
CatalogSearchResultListComponent.prototype.showClass = function () {
|
|
4890
|
-
return true;
|
|
4891
|
-
};
|
|
4892
|
-
return CatalogSearchResultListComponent;
|
|
4893
|
-
}(CatalogSearchBaseComponent));
|
|
4894
|
-
CatalogSearchResultListComponent.decorators = [
|
|
4895
|
-
{ type: i0.Component, args: [{
|
|
4896
|
-
selector: 'co-catalog-search-result-list',
|
|
4897
|
-
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 [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 ",
|
|
4898
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
4899
|
-
},] }
|
|
4900
|
-
];
|
|
4901
|
-
CatalogSearchResultListComponent.propDecorators = {
|
|
4902
|
-
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search-result-list',] }]
|
|
4903
|
-
};
|
|
4904
|
-
|
|
4905
4938
|
var CatalogArticleListComponent = /** @class */ (function (_super) {
|
|
4906
4939
|
__extends(CatalogArticleListComponent, _super);
|
|
4907
4940
|
function CatalogArticleListComponent() {
|
|
@@ -4923,6 +4956,37 @@
|
|
|
4923
4956
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-article-list',] }]
|
|
4924
4957
|
};
|
|
4925
4958
|
|
|
4959
|
+
var CatalogSearchResultListComponent = /** @class */ (function (_super) {
|
|
4960
|
+
__extends(CatalogSearchResultListComponent, _super);
|
|
4961
|
+
function CatalogSearchResultListComponent() {
|
|
4962
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
4963
|
+
}
|
|
4964
|
+
Object.defineProperty(CatalogSearchResultListComponent.prototype, "viewChildren", {
|
|
4965
|
+
set: function (children) {
|
|
4966
|
+
if (children) {
|
|
4967
|
+
this.elements = children.toArray();
|
|
4968
|
+
}
|
|
4969
|
+
},
|
|
4970
|
+
enumerable: false,
|
|
4971
|
+
configurable: true
|
|
4972
|
+
});
|
|
4973
|
+
CatalogSearchResultListComponent.prototype.showClass = function () {
|
|
4974
|
+
return true;
|
|
4975
|
+
};
|
|
4976
|
+
return CatalogSearchResultListComponent;
|
|
4977
|
+
}(CatalogSearchBaseComponent));
|
|
4978
|
+
CatalogSearchResultListComponent.decorators = [
|
|
4979
|
+
{ type: i0.Component, args: [{
|
|
4980
|
+
selector: 'co-catalog-search-result-list',
|
|
4981
|
+
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 ",
|
|
4982
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
4983
|
+
},] }
|
|
4984
|
+
];
|
|
4985
|
+
CatalogSearchResultListComponent.propDecorators = {
|
|
4986
|
+
viewChildren: [{ type: i0.ViewChildren, args: [CatalogArticleListComponent, { read: i0.ElementRef },] }],
|
|
4987
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search-result-list',] }]
|
|
4988
|
+
};
|
|
4989
|
+
|
|
4926
4990
|
var CatalogArticleListModule = /** @class */ (function () {
|
|
4927
4991
|
function CatalogArticleListModule() {
|
|
4928
4992
|
}
|
|
@@ -5073,8 +5137,10 @@
|
|
|
5073
5137
|
});
|
|
5074
5138
|
CatalogExternalSourceComponent.prototype.ngOnInit = function () {
|
|
5075
5139
|
var _this = this;
|
|
5076
|
-
this._subs.push(this._appEventService.addArticleButtonClick.subscribe(function (
|
|
5077
|
-
|
|
5140
|
+
this._subs.push(this._appEventService.addArticleButtonClick.subscribe(function (article) {
|
|
5141
|
+
if (!(article instanceof articleExtended_bo.ArticleExtended)) {
|
|
5142
|
+
_this.addArticleClick.next(article);
|
|
5143
|
+
}
|
|
5078
5144
|
}));
|
|
5079
5145
|
};
|
|
5080
5146
|
CatalogExternalSourceComponent.prototype.handleArticleClick = function (article) {
|